@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230630.0 → 0.0.0-nightly-20230702.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.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5479=['revision:','data','_getState','history','paragraph','_getBaseVids','insert','fromEntries','getNodeByPath','length','marked','_createCurrentRevision','dataDowncast','_baseRootsAttributes','editing','position','ready','createPositionBefore','setRevisionData','getWalker','_removePendingAction','rootName','resolve','view','path','removeRootAttribute','_touchedMarkers','data-revision-','vid_end','_transformMarkers','$text','_handleRootOperation','delete','keys','adapter','changeRootAttribute','getCurrentRevisionId','creator','targetPosition','collaboration.channelId','filter','getAttribute','createRangeIn','config','vid_start','_calculateMetaData','setSource','bind','toData','revisionHistory.resumeUnsavedRevision','saveRevision','set','children','_authorId','userId','_handleMarkerOperation','push','createRange','Initial\x20revision','start','newRange','parse','documentFragment','_removeRevisionMarkers','NEGATIVE_INFINITY','toVersion','_loadedStateData','fromVersion','attributesAfter','has','getOperations','element','startsWith','document','_isPendingUpdate','_baseIdsRoots','splitPosition','PENDING_ACTION_REVISION_HISTORY','isAttached','clone','_continueCurrentRevision','tableCell','_idsRoots','sort','newValue','_initialRoots','root','_handleMoveOperation','deletion','add','childCount','getLatestVersion','createPositionAfter','_baseRoots','source','getRevisions','_touched','_replaceEditorDataWithRevisionData','parent','_getVidAttributeName','detachRoot','_copyMarkers','_source','authors','_makeIdsRoot','isEqual','afterInit','initialData','getChild','from','split','then','_makeRevision','getOperation','shift','merge','_appendChild','loadState','_processRootBeforeSave','conversion','_saveMetaData','_removeMetaData','repository','createPositionFromPath','_setConversion','getRevision','range','PendingActions','_cloneOperation','insertion','creatorId','model','_addPendingAction','markerToData','_createFromRanges','markers','_loadRevisionData','$graveyard','max','clear','key','deletions','revision-start','elementEnd','_createInitialRevision','insertions','_lastTo','_generateTape','name','_startingVersion','_reset','_isAttached','size','getRoot','some','_savedMetaData','authorsIds','vid','_touchedRoots','_diffRootsAttributes','_update','map','offsetSize','remove','_revisionId','marker','get','stickiness','getAncestors','item','addRevisionData','toModel','diffData','graveyardPosition','howMany','end','_lastFrom','_startingRevisionId','_revisionDataBuilder','_findInsertionIndex','_handleSplitOperation','Users','currentRevision','for','getMovedRangeStart','baseVersion','_handleOperation','attributes','editor','getAttributes','init','addRoot','sendBufferedUpdates','getRevisionDocumentData','processor','_insertChild','type','RevisionTracker','_fixRange','string','define','find','_bufferedUpdates','reverse','requires','_pendingAction','previousPosition','insertionPosition','createRevision','elementStart','_handleRootAttributeOperation','nodes','_markers','addRevision','_clone','plugins','values','_execute','getUser','_initialRevisionId','isReady','rootsAttributes','_setAttribute','_applyOperations','_loadState','attributesBefore','version','_getPreviousFrom','_prepareViewToSave','finally','getRootNames','buildRevisionData','updateRevisions','getChildren','locale','includes','_getViewJson','_makeModelFromViewString','_diffRoots','createdAt','toView','_bufferUpdate','pluginName','getData','_fixPosition','isAdd','slice','update','_handleInsertOperation','getRange','getRevisionRootsAttributes','createPositionAt','affectsData','_getFromVersion','_markChanges','trim','hasContent','_isInit','revision','attachChange','oldRange'];(function(_0xf912ca,_0x5479bd){const _0x5e16b2=function(_0x3348ad){while(--_0x3348ad){_0xf912ca['push'](_0xf912ca['shift']());}};_0x5e16b2(++_0x5479bd);}(_0x5479,0xa5));const _0x5e16=function(_0xf912ca,_0x5479bd){_0xf912ca=_0xf912ca-0x0;let _0x5e16b2=_0x5479[_0xf912ca];return _0x5e16b2;};import{Users as _0x336836}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x45476f,PendingActions as _0x4fa849}from'ckeditor5/src/core';import{logWarning as _0x4859e6,uid as _0x1d5d09}from'ckeditor5/src/utils';import{Position as _0x359993,Range as _0x1e7e61,Element as _0x2d06a3,DocumentFragment as _0x1ebd11,ViewText as _0x4b58db,ViewElement as _0x69514c,ViewContainerElement as _0x1eca98,ViewAttributeElement as _0x35bb73,ViewEmptyElement as _0x5715ce,ViewRawElement as _0x5a3471,ViewUIElement as _0xaceac0,ViewDocumentFragment as _0x3f7f3c}from'ckeditor5/src/engine';import _0x56f3c0 from'./revisionsrepository';import{getTranslation as _0x28940a}from'./utils/common-translations';import{cloneDeep as _0x563797,isEqual as _0x397e99}from'lodash-es';const F={'c':_0x1eca98,'a':_0x35bb73,'e':_0x5715ce,'r':_0x5a3471,'u':_0xaceac0};export default class u extends _0x45476f{static get[_0x5e16('0x4d')](){return _0x5e16('0x20');}static get[_0x5e16('0x27')](){return[_0x336836,_0x56f3c0,_0x4fa849];}constructor(_0x12b555){super(_0x12b555),this[_0x5e16('0x82')]=null,this[_0x5e16('0x11')]=null,this['_revisionDataBuilder']=new B(this[_0x5e16('0x17')]),this['_initialRevisionId']=this['editor'][_0x5e16('0x8b')][_0x5e16('0x1')](_0x5e16('0x87'))||'initial',this['_bufferedUpdates']=new Map(),this[_0x5e16('0xa2')]=null;const _0x134a65=_0x1d5d09();this[_0x5e16('0xc6')]={'history':this[_0x5e16('0x17')]['model'][_0x5e16('0xa9')]['history'],'getLatestVersion':()=>Promise[_0x5e16('0x76')](this[_0x5e16('0x17')][_0x5e16('0xe3')][_0x5e16('0xa9')][_0x5e16('0x3d')]),'getCurrentRevisionId':()=>_0x134a65},this[_0x5e16('0x93')](_0x5e16('0x37'),!0x1),this[_0x5e16('0x93')]('isEnabled',!0x0),this[_0x5e16('0x93')](_0x5e16('0xaa'),!0x1),this[_0x5e16('0x17')][_0x5e16('0x8b')][_0x5e16('0x23')](_0x5e16('0x91'),!0x0),this['editor']['conversion'][_0x5e16('0x12')]('upcast')['dataToMarker']({'view':_0x5e16('0x5d')});}['init'](){this[_0x5e16('0xda')]=this[_0x5e16('0x17')][_0x5e16('0x32')][_0x5e16('0x1')]('RevisionsRepository'),this[_0x5e16('0xdc')](),this[_0x5e16('0x17')]['data']['on'](_0x5e16('0x70'),()=>{const _0x37f635=this[_0x5e16('0xda')][_0x5e16('0xdd')](0x0),_0x1ff37e=_0x37f635&&null===_0x37f635[_0x5e16('0x85')]?_0x37f635:null;if(this[_0x5e16('0xb0')]=!!_0x1ff37e&&this['editor'][_0x5e16('0x8b')][_0x5e16('0x1')](_0x5e16('0x91')),this['editor'][_0x5e16('0x32')]['has']('RealTimeCollaborationClient')){const _0x141e77=this[_0x5e16('0xc6')]['getCurrentRevisionId'](),_0x17afdc=this[_0x5e16('0xda')]['getRevision'](_0x141e77);if(_0x17afdc)this[_0x5e16('0xf5')]=_0x17afdc[_0x5e16('0xa3')],this[_0x5e16('0xb0')]=!0x1;else{const _0x2d92b0=this[_0x5e16('0xc6')]['history']['_operations'][_0x5e16('0x24')](_0x3aa08f=>!_0x3aa08f[_0x5e16('0x5c')]),_0x2ac143=_0x2d92b0?_0x2d92b0['baseVersion']:this['_source']['history'][_0x5e16('0x3d')];_0x37f635?(_0x37f635[_0x5e16('0xa1')]<_0x2ac143&&_0x37f635['_update']({'toVersion':_0x2ac143}),this[_0x5e16('0xb0')]?(this['_source'][_0x5e16('0x84')]=()=>_0x1ff37e['id'],this[_0x5e16('0xf5')]=_0x1ff37e['fromVersion']):(this[_0x5e16('0xf5')]=_0x37f635[_0x5e16('0xa1')],this[_0x5e16('0xb0')]=!0x1)):(this[_0x5e16('0xf5')]=_0x2ac143,this[_0x5e16('0xb0')]=!0x1);}}else _0x1ff37e&&(this[_0x5e16('0x17')][_0x5e16('0xe3')][_0x5e16('0xa9')]['history'][_0x5e16('0x3d')]=Math[_0x5e16('0xea')](_0x1ff37e[_0x5e16('0xa1')],this[_0x5e16('0x17')]['model'][_0x5e16('0xa9')]['history'][_0x5e16('0x3d')]),_0x1ff37e[_0x5e16('0xa3')]===_0x1ff37e[_0x5e16('0xa1')]?(0x0!==_0x1ff37e['fromVersion']&&(this[_0x5e16('0xc6')][_0x5e16('0x84')]=()=>_0x1ff37e['id']),this['_continueCurrentRevision']=!0x1):this[_0x5e16('0xb0')]&&(this[_0x5e16('0xc6')]['getCurrentRevisionId']=()=>_0x1ff37e['id'],this[_0x5e16('0xf5')]=_0x1ff37e['fromVersion'])),this['_continueCurrentRevision']||(this[_0x5e16('0xf5')]=this[_0x5e16('0x17')]['model'][_0x5e16('0xa9')]['version']);this[_0x5e16('0xd')][_0x5e16('0x19')](this[_0x5e16('0xc6')][_0x5e16('0x63')]),this[_0x5e16('0xf0')](this[_0x5e16('0xf5')]),this[_0x5e16('0x6b')](this['_startingVersion']),this[_0x5e16('0x82')]&&this[_0x5e16('0x1b')]();}),this[_0x5e16('0x8f')](_0x5e16('0x37'))['to'](this,_0x5e16('0xaa'),_0x44ee36=>!_0x44ee36);}async[_0x5e16('0xca')](){if(this['repository'][_0x5e16('0x69')]>0x0){const _0x4e7344=this[_0x5e16('0xda')][_0x5e16('0xdd')](0x0),_0x250001=await this[_0x5e16('0x1c')](_0x4e7344),_0xdac443=await this[_0x5e16('0x55')](_0x4e7344);this[_0x5e16('0xc1')](_0x250001,_0xdac443);}}[_0x5e16('0x8e')](_0x53829a){this[_0x5e16('0xc6')]=_0x53829a;}async[_0x5e16('0x52')](){const _0x4bdbde=await this[_0x5e16('0xc6')][_0x5e16('0xbb')]();if(_0x4bdbde>this[_0x5e16('0x11')][_0x5e16('0xa1')]){await this[_0x5e16('0x3b')]();const _0x3c70f4=this[_0x5e16('0x42')]({'revision':this['currentRevision'],'to':_0x4bdbde});_0x3c70f4[_0x5e16('0xc7')]=_0x3c70f4[_0x5e16('0xfc')]['map'](_0x1ed7ac=>this[_0x5e16('0x17')][_0x5e16('0x32')][_0x5e16('0x1')](_0x5e16('0x10'))[_0x5e16('0x35')](_0x1ed7ac)),this[_0x5e16('0x11')]['_update'](_0x3c70f4);}}async['_loadState'](){this[_0x5e16('0xb0')]&&!this[_0x5e16('0xa2')]&&(await this[_0x5e16('0xe8')](this[_0x5e16('0x11')]),this[_0x5e16('0xd')][_0x5e16('0xd5')](this[_0x5e16('0x11')]),this[_0x5e16('0xa2')]={'fromVersion':this[_0x5e16('0x11')][_0x5e16('0xa3')],'authors':this[_0x5e16('0x11')][_0x5e16('0xc7')][_0x5e16('0x51')]()});}async[_0x5e16('0x92')](_0x18a65f={},_0x3f0e67=null){const _0x3d1b0f=[];await this[_0x5e16('0x3b')](),this[_0x5e16('0xb0')]=!0x1,_0x3f0e67>this['currentRevision'][_0x5e16('0xa1')]&&(_0x3f0e67=null),null===_0x3f0e67&&(_0x3f0e67=await this[_0x5e16('0xc6')]['getLatestVersion']());const _0x2fad71=this[_0x5e16('0x58')](_0x3f0e67),_0x38a894=this[_0x5e16('0x42')]({'from':_0x2fad71,'to':_0x3f0e67});if(this['currentRevision']['toVersion']<_0x3f0e67){const _0x4db386=this[_0x5e16('0x42')]({'revision':this[_0x5e16('0x11')],'from':_0x3f0e67,'to':_0x3f0e67});_0x4db386['authors']=[],_0x4db386[_0x5e16('0xfc')]=[],_0x4db386['id']=this[_0x5e16('0x11')]['id'],this[_0x5e16('0x11')]['_update'](_0x4db386,!0x0),delete _0x4db386[_0x5e16('0xc7')],_0x3d1b0f[_0x5e16('0x98')](_0x4db386);}_0x18a65f[_0x5e16('0xe2')]=this['editor'][_0x5e16('0x32')][_0x5e16('0x1')](_0x5e16('0x10'))['me']['id'],_0x18a65f[_0x5e16('0xf4')]=_0x18a65f[_0x5e16('0xf4')]||null,_0x18a65f['id']=_0x18a65f['id']||_0x1d5d09(),_0x18a65f={..._0x18a65f,..._0x38a894};const _0x49a33c=this['addRevisionData'](_0x18a65f);_0x3d1b0f[_0x5e16('0x98')](_0x18a65f);const _0x1fb29b=this[_0x5e16('0xda')]['getIndex'](_0x49a33c);if(0x0!==_0x1fb29b){const _0x575c3d=this[_0x5e16('0xda')][_0x5e16('0xdd')](_0x1fb29b-0x1);if(_0x575c3d[_0x5e16('0xa3')]!==_0x3f0e67){const _0x216d70=this['_revisionDataBuilder'][_0x5e16('0x4e')](_0x3f0e67,_0x575c3d[_0x5e16('0xa1')]),_0x1c5b57={'id':_0x575c3d['id'],'diffData':_0x216d70['diffData'],'authorsIds':_0x216d70[_0x5e16('0xfc')],'authors':_0x216d70[_0x5e16('0xfc')][_0x5e16('0x101')](_0x28f41f=>this[_0x5e16('0x17')]['plugins'][_0x5e16('0x1')](_0x5e16('0x10'))[_0x5e16('0x35')](_0x28f41f)),'fromVersion':_0x3f0e67};_0x575c3d===this['currentRevision']&&(_0x1c5b57[_0x5e16('0x4a')]=new Date(_0x18a65f[_0x5e16('0x4a')]['getTime']()+0xa)),_0x575c3d[_0x5e16('0x100')](_0x1c5b57,!0x0),delete _0x1c5b57[_0x5e16('0xc7')],_0x3d1b0f[_0x5e16('0x98')](_0x1c5b57);}}if(this[_0x5e16('0x82')]){for(const _0x1eab7c of _0x3d1b0f)this[_0x5e16('0x4c')](_0x1eab7c['id'],_0x1eab7c,!0x0);this['sendBufferedUpdates']();}return _0x49a33c;}[_0x5e16('0x5')](_0x45b714){const _0x5bdb43=this[_0x5e16('0xda')][_0x5e16('0x2b')](_0x45b714);return this[_0x5e16('0x82')]&&_0x5bdb43['on'](_0x5e16('0x100'),(_0x530b93,_0x50972b,_0x36c75f)=>{_0x36c75f||(this[_0x5e16('0x4c')](_0x50972b['id'],_0x50972b,!0x0),this[_0x5e16('0x1b')]());}),this[_0x5e16('0xda')][_0x5e16('0x30')](_0x5bdb43,this[_0x5e16('0xe')](_0x5bdb43)),_0x5bdb43;}async[_0x5e16('0x1c')](_0x3b1c96){await this[_0x5e16('0xe8')](_0x3b1c96);const _0x2ba327={};for(const _0x197308 in _0x3b1c96[_0x5e16('0x7')]){if(_0x3b1c96['diffData'][_0x197308][_0x5e16('0x5e')]&&!_0x3b1c96[_0x5e16('0x7')][_0x197308][_0x5e16('0x5e')][_0x5e16('0xae')])continue;const _0x188dd6=this[_0x5e16('0x9f')](JSON[_0x5e16('0x9d')](_0x3b1c96['diffData'][_0x197308][_0x5e16('0xf1')])),_0x140c0f=this[_0x5e16('0x17')][_0x5e16('0x6e')][_0x5e16('0x77')]['document'],_0x2eb628=new _0x3f7f3c(_0x140c0f,_0x188dd6['map'](_0x4b8a7f=>T(_0x4b8a7f,this[_0x5e16('0x17')])));this['editor'][_0x5e16('0x61')][_0x5e16('0x1d')]['useFillerType'](_0x5e16('0x6a')),_0x2ba327[_0x197308]=this['editor'][_0x5e16('0x61')]['processor'][_0x5e16('0x90')](_0x2eb628),this[_0x5e16('0x17')][_0x5e16('0x61')][_0x5e16('0x1d')]['useFillerType']('default');}return _0x2ba327;}async[_0x5e16('0x55')](_0x39154a){await this['_loadRevisionData'](_0x39154a);const _0x2cbc47={};for(const _0x5dbec3 in _0x39154a[_0x5e16('0x7')])_0x39154a[_0x5e16('0x7')][_0x5dbec3][_0x5e16('0x5e')]&&!_0x39154a[_0x5e16('0x7')][_0x5dbec3]['attachChange'][_0x5e16('0xae')]||(_0x2cbc47[_0x5dbec3]=_0x39154a[_0x5e16('0x7')][_0x5dbec3]['attributesAfter']||{});return _0x2cbc47;}[_0x5e16('0x1b')](){if(0x0===this[_0x5e16('0x25')][_0x5e16('0xf8')])return;if(this[_0x5e16('0xaa')])return;let _0x53001a=Array['from'](this['_bufferedUpdates'][_0x5e16('0x33')]());this[_0x5e16('0x25')][_0x5e16('0xeb')]();for(let _0x477e64=0x0;_0x477e64<_0x53001a[_0x5e16('0x69')];_0x477e64++){const _0x4907bd=_0x53001a[_0x477e64];let _0x27be9c=!0x1;for(const _0x492e55 of Object[_0x5e16('0x81')](_0x4907bd))void 0x0===_0x4907bd[_0x492e55]?delete _0x4907bd[_0x492e55]:'id'!==_0x492e55&&(_0x27be9c=!0x0);_0x27be9c||(_0x53001a[_0x477e64]=null);}if(_0x53001a=_0x53001a[_0x5e16('0x88')](_0x59a72e=>null!==_0x59a72e),!_0x53001a[_0x5e16('0x69')])return;for(let _0x220a65=0x0;_0x220a65<_0x53001a[_0x5e16('0x69')];_0x220a65++){const _0x11650c=_0x53001a[_0x220a65];void 0x0!==_0x11650c[_0x5e16('0xa3')]&&void 0x0===_0x11650c[_0x5e16('0xa1')]&&(_0x11650c[_0x5e16('0xa1')]=this[_0x5e16('0xda')][_0x5e16('0xdd')](_0x11650c['id'])[_0x5e16('0xa1')]),void 0x0!==_0x11650c[_0x5e16('0xa1')]&&void 0x0===_0x11650c[_0x5e16('0xa3')]&&(_0x11650c[_0x5e16('0xa3')]=this['repository'][_0x5e16('0xdd')](_0x11650c['id'])[_0x5e16('0xa3')]);}const _0x188733=this[_0x5e16('0x17')][_0x5e16('0x8b')]['get'](_0x5e16('0x87'));this[_0x5e16('0xaa')]=!0x0,this[_0x5e16('0xe4')](),this['adapter'][_0x5e16('0x43')](_0x53001a,_0x188733)[_0x5e16('0x40')](()=>{this[_0x5e16('0xaa')]=!0x1;})[_0x5e16('0xcf')](_0x1e987b=>{if(_0x1e987b)for(const _0x4c9c9d of _0x1e987b)this[_0x5e16('0x72')]({'id':_0x4c9c9d['id'],'createdAt':_0x4c9c9d[_0x5e16('0x4a')]});this['_removePendingAction'](),this[_0x5e16('0x1b')]();});}[_0x5e16('0xc1')](_0x3ddc66,_0x3f0f52){let _0x10bf19=this[_0x5e16('0x17')]['config'][_0x5e16('0x1')](_0x5e16('0xcb')),_0x154029=this[_0x5e16('0x17')][_0x5e16('0x8b')]['get']('rootsAttributes');if(void 0x0===_0x10bf19){_0x10bf19={};for(const _0x227bee of this[_0x5e16('0x17')][_0x5e16('0xe3')]['document'][_0x5e16('0x41')]())_0x10bf19[_0x227bee]='';}if('string'==typeof _0x10bf19&&(_0x10bf19={'main':_0x10bf19}),void 0x0===_0x154029){_0x154029={};for(const _0x45fb57 of this[_0x5e16('0x17')][_0x5e16('0xe3')]['document'][_0x5e16('0x41')]())_0x154029[_0x45fb57]={};}let _0x4d70a3=!0x1;const _0x603fc7=Object[_0x5e16('0x81')](_0x10bf19),_0x21ea74=Object[_0x5e16('0x81')](_0x3ddc66);for(const _0x177794 of _0x603fc7){if(_0x10bf19[_0x177794]!==_0x3ddc66[_0x177794]&&''!==_0x10bf19[_0x177794][_0x5e16('0x5a')]()){_0x4d70a3=!0x0;break;}if(!_0x397e99(_0x154029[_0x177794],_0x3f0f52[_0x177794])&&Object[_0x5e16('0x81')](_0x154029[_0x177794])['length']>0x0){_0x4d70a3=!0x0;break;}}_0x4d70a3||(_0x4d70a3=_0x21ea74[_0x5e16('0xfa')](_0x3a6970=>!_0x603fc7[_0x5e16('0x46')](_0x3a6970))),_0x4d70a3&&_0x4859e6('editor-initial-data-replaced-with-revision-data',{'editorData':_0x10bf19,'editorRootsAttributes':_0x154029,'revisionData':_0x3ddc66,'revisionRootsAttributes':_0x3f0f52}),this[_0x5e16('0x17')][_0x5e16('0x8b')]['set'](_0x5e16('0xcb'),_0x3ddc66),this[_0x5e16('0x17')][_0x5e16('0x8b')][_0x5e16('0x93')](_0x5e16('0x38'),_0x3f0f52);}[_0x5e16('0xe4')](){if(!this['_pendingAction']){const _0x266285=this['editor'][_0x5e16('0x32')][_0x5e16('0x1')](_0x5e16('0xdf'));this[_0x5e16('0x28')]=_0x266285[_0x5e16('0xb9')](_0x28940a(this['editor'][_0x5e16('0x45')],_0x5e16('0xad')));}}[_0x5e16('0x74')](){this[_0x5e16('0x28')]&&(this[_0x5e16('0x17')][_0x5e16('0x32')]['get'](_0x5e16('0xdf'))[_0x5e16('0x103')](this[_0x5e16('0x28')]),this[_0x5e16('0x28')]=null);}[_0x5e16('0xe')](_0x1c6581){const _0x248a87=this[_0x5e16('0xda')]['getRevisions']();_0x248a87[_0x5e16('0x26')]();let _0x5de026=0x0;for(;_0x5de026<_0x248a87[_0x5e16('0x69')];){const _0x7bd319=_0x248a87[_0x5de026];if(_0x7bd319===this[_0x5e16('0x11')]){_0x5de026++;continue;}if(_0x7bd319['id']===this[_0x5e16('0x36')])break;const _0x2ff42e=_0x1c6581[_0x5e16('0xa1')]-_0x7bd319[_0x5e16('0xa1')]||_0x1c6581[_0x5e16('0xa3')]-_0x7bd319['fromVersion'];if(_0x2ff42e>0x0)break;if(_0x2ff42e<0x0)_0x5de026++;else{if(!_0x1c6581[_0x5e16('0x85')]&&_0x7bd319[_0x5e16('0x85')])break;if(_0x7bd319[_0x5e16('0x85')]||!_0x1c6581[_0x5e16('0x85')]){if(_0x1c6581['createdAt']>_0x7bd319[_0x5e16('0x4a')])break;_0x5de026++;}else _0x5de026++;}}return _0x5de026;}['setRevisionData'](_0x3bb2e4){const _0x14d763=this[_0x5e16('0xda')][_0x5e16('0xdd')](_0x3bb2e4['id']);if(_0x3bb2e4[_0x5e16('0x4a')]&&(_0x3bb2e4['createdAt']=new Date(_0x3bb2e4[_0x5e16('0x4a')])),_0x3bb2e4[_0x5e16('0xfc')]){const _0x530915=this[_0x5e16('0x17')]['plugins'][_0x5e16('0x1')]('Users');_0x3bb2e4['authors']=_0x3bb2e4[_0x5e16('0xfc')][_0x5e16('0x101')](_0x4262df=>_0x530915['getUser'](_0x4262df));}_0x14d763[_0x5e16('0x100')](_0x3bb2e4,!0x0);}[_0x5e16('0x42')]({revision:_0x375834=null,from:_0x4a89ad=null,to:_0x5948b2=null}){_0x4a89ad=null!==_0x4a89ad?_0x4a89ad:_0x375834[_0x5e16('0xa3')],_0x5948b2=null!==_0x5948b2?_0x5948b2:_0x375834['toVersion'];const _0xdcba4e=this['_revisionDataBuilder']['getData'](_0x4a89ad,_0x5948b2),_0x16948a={'diffData':_0xdcba4e[_0x5e16('0x7')],'authorsIds':_0xdcba4e[_0x5e16('0xfc')],'fromVersion':_0x4a89ad,'toVersion':_0x5948b2};if(!_0x375834||_0x5948b2!==_0x375834[_0x5e16('0xa1')]){const _0x108e31=_0x5948b2-0x1,_0x5f0d5f=this[_0x5e16('0xc6')][_0x5e16('0x63')][_0x5e16('0xd1')](_0x108e31);_0x16948a['createdAt']=_0x5f0d5f&&_0x5f0d5f[_0x5e16('0x4a')]||new Date();}if(this[_0x5e16('0xa2')]&&_0x4a89ad===this[_0x5e16('0xa2')][_0x5e16('0xa3')])for(const _0x231d42 of this[_0x5e16('0xa2')][_0x5e16('0xc7')])_0x16948a['authorsIds'][_0x5e16('0x46')](_0x231d42['id'])||_0x16948a['authorsIds'][_0x5e16('0x98')](_0x231d42['id']);return _0x16948a;}[_0x5e16('0xe8')](_0x1d1381){if(!_0x1d1381||_0x1d1381[_0x5e16('0x7')])return Promise[_0x5e16('0x76')]();{const _0x491011=this['editor']['config'][_0x5e16('0x1')](_0x5e16('0x87'));return this['adapter'][_0x5e16('0xdd')]({'channelId':_0x491011,'revisionId':_0x1d1381['id']})['then'](_0x513cc0=>{_0x1d1381['diffData']=_0x513cc0[_0x5e16('0x7')];});}}[_0x5e16('0x4c')](_0x298a21,_0x3b67cf,_0x411aa2){if(this[_0x5e16('0x25')][_0x5e16('0xa5')](_0x298a21)){const _0x5ca374=this[_0x5e16('0x25')][_0x5e16('0x1')](_0x298a21);_0x3b67cf=_0x411aa2?{..._0x5ca374,..._0x3b67cf}:{..._0x3b67cf,..._0x5ca374};}this[_0x5e16('0x25')]['set'](_0x298a21,_0x3b67cf);}[_0x5e16('0x58')](_0x4c5679){const _0x1da2ff=this[_0x5e16('0xda')][_0x5e16('0xbf')]();_0x1da2ff[_0x5e16('0x26')](),_0x1da2ff[_0x5e16('0xd2')]();const _0x4edc12=_0x1da2ff['find'](_0x15885b=>_0x15885b[_0x5e16('0xa1')]<=_0x4c5679)['toVersion'];return _0x4edc12<this[_0x5e16('0xf5')]?this['_startingVersion']:_0x4edc12;}[_0x5e16('0xf0')](_0x2af819){const _0x2b0e48=this[_0x5e16('0xda')][_0x5e16('0xdd')](this[_0x5e16('0xda')]['length']-0x1);if(_0x2b0e48)this[_0x5e16('0x36')]=_0x2b0e48['id'];else{const _0x581b1b=!this[_0x5e16('0x17')][_0x5e16('0xe3')][_0x5e16('0xa9')]['roots']['find'](_0x47cfed=>this[_0x5e16('0x17')][_0x5e16('0xe3')][_0x5e16('0x5b')](_0x47cfed)),_0x1451e3=this[_0x5e16('0x17')]['plugins'][_0x5e16('0x1')](_0x5e16('0x10'))['me']['id'],_0x1789bc=_0x28940a(this[_0x5e16('0x17')]['locale'],_0x581b1b?'Empty\x20document':_0x5e16('0x9a'));this[_0x5e16('0xd0')]({'from':_0x2af819,'to':_0x2af819,'id':this[_0x5e16('0x36')],'name':_0x1789bc,'creatorId':_0x1451e3});}}[_0x5e16('0x6b')](_0x6f8092){const _0xa9cb67=this[_0x5e16('0xc6')][_0x5e16('0x84')]();this[_0x5e16('0x11')]=this[_0x5e16('0xda')][_0x5e16('0xdd')](_0xa9cb67),this[_0x5e16('0x11')]||(this[_0x5e16('0x11')]=this[_0x5e16('0xd0')]({'from':_0x6f8092,'to':_0x6f8092,'id':_0xa9cb67,'name':'','creatorId':null}));}[_0x5e16('0xd0')]({name:_0x82ec9e,from:_0x334663,to:_0x40ebe5,creatorId:_0x115e9a,id:_0x5ef1ac}){const _0x45234e=this['buildRevisionData']({'from':_0x334663,'to':_0x40ebe5});_0x45234e[_0x5e16('0xf4')]=_0x82ec9e,_0x45234e[_0x5e16('0xe2')]=_0x115e9a,_0x45234e['id']=_0x5ef1ac;const _0x5d0ee5=this[_0x5e16('0x5')](_0x45234e);return this['adapter']&&this[_0x5e16('0x4c')](_0x45234e['id'],_0x45234e,!0x0),_0x5d0ee5;}['_setConversion'](){this['editor'][_0x5e16('0xd7')][_0x5e16('0x12')](_0x5e16('0x6c'))[_0x5e16('0xe5')]({'model':_0x5e16('0x5d')});}['_removeRevisionMarkers'](_0x50ca44){return(_0x50ca44=_0x50ca44['filter'](_0x30400c=>!_0x30400c[_0x5e16('0xf4')]||_0x5e16('0xee')!==_0x30400c[_0x5e16('0xf4')]&&'revision-end'!==_0x30400c[_0x5e16('0xf4')]))['forEach'](_0xbd4fa=>{'string'!=typeof _0xbd4fa&&(_0xbd4fa['children']=this['_removeRevisionMarkers'](_0xbd4fa[_0x5e16('0x94')]),_0xbd4fa[_0x5e16('0x16')]=_0xbd4fa[_0x5e16('0x16')][_0x5e16('0x88')](_0x381dee=>!_0x381dee[0x0][_0x5e16('0xa8')](_0x5e16('0x7b'))));}),_0x50ca44;}}function T(_0x4224ec,_0x2ec2d8){const _0x2cb272=_0x2ec2d8['editing']['view']['document'];if(_0x5e16('0x22')==typeof _0x4224ec)return new _0x4b58db(_0x2cb272,_0x4224ec);{const _0x1a85b2=_0x4224ec[_0x5e16('0x94')][_0x5e16('0x101')](_0x39e1e6=>T(_0x39e1e6,_0x2ec2d8));return new(F[_0x4224ec[(_0x5e16('0x1f'))]]||_0x69514c)(_0x2cb272,_0x4224ec[_0x5e16('0xf4')],_0x4224ec[_0x5e16('0x16')],_0x1a85b2);}}class B{constructor(_0x1d6814){this[_0x5e16('0x17')]=_0x1d6814,this[_0x5e16('0xfb')]=new Map(),this[_0x5e16('0xb')]=-0x1,this['_lastTo']=-0x1,this[_0x5e16('0x2f')]=new Map(),this[_0x5e16('0x49')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x5e16('0xbd')]=new Map(),this[_0x5e16('0x6d')]=new Map(),this['_idsRoots']=new Map(),this[_0x5e16('0xab')]=new Map(),this[_0x5e16('0xc0')]=new Map(),this[_0x5e16('0x7a')]=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1,this[_0x5e16('0xb5')]=this['editor']['model'][_0x5e16('0xa9')][_0x5e16('0x41')](),this[_0x5e16('0xb5')][_0x5e16('0x98')](_0x5e16('0xe9'));}[_0x5e16('0x19')](_0x4ed4b9){this['source']=_0x4ed4b9;const _0x1bb4a2=new Map(),_0x47ecf6=new Map(),_0xc2ddc=this[_0x5e16('0x17')][_0x5e16('0xe3')]['document']['getRootNames'](!0x0);_0xc2ddc[_0x5e16('0x98')](_0x5e16('0xe9'));for(const _0x207241 of _0xc2ddc){const _0x4cd5d4=this[_0x5e16('0x17')][_0x5e16('0xe3')][_0x5e16('0xa9')][_0x5e16('0xf9')](_0x207241),_0x5c11df=J(_0x4cd5d4);_0x1bb4a2[_0x5e16('0x93')](_0x207241,_0x5c11df),_0x47ecf6[_0x5e16('0x93')](_0x207241,Object[_0x5e16('0x67')](_0x4cd5d4['getAttributes']()));}const _0x5bb517=Array[_0x5e16('0xcd')](this[_0x5e16('0x17')][_0x5e16('0xe3')][_0x5e16('0xe7')])['map'](_0x588668=>[_0x588668[_0x5e16('0xf4')],_0x588668[_0x5e16('0x54')]()]),_0x526daa=this[_0x5e16('0xbe')][_0x5e16('0x3d')];this[_0x5e16('0xd8')](_0x526daa,_0x1bb4a2,_0x5bb517,_0x47ecf6),this[_0x5e16('0xc')]=this[_0x5e16('0x104')];const _0x46635f=new Map(),_0x26814b=new Map();for(const _0x45886c of this['_initialRoots']){const _0x140584=H(_0x45886c);_0x46635f[_0x5e16('0x93')](_0x45886c,_0x140584),_0x26814b['set'](_0x45886c,{});}this['_saveMetaData'](Number[_0x5e16('0xa0')],_0x46635f,[],_0x26814b);}[_0x5e16('0x4e')](_0x44c63e,_0x5804af){if(this[_0x5e16('0xb')]===_0x44c63e&&this[_0x5e16('0xf2')]<=_0x5804af)this[_0x5e16('0xfb')]['size']>0x1&&this[_0x5e16('0xd9')](this['_lastTo']),this[_0x5e16('0x3a')](this[_0x5e16('0xf2')],_0x5804af,!0x0);else{if(!this[_0x5e16('0xfb')][_0x5e16('0xa5')](_0x44c63e)){const _0x35bf1f=this['_getPreviousFrom'](_0x44c63e);this['_calculateMetaData'](_0x35bf1f,_0x44c63e,!0x1);}this[_0x5e16('0x8d')](_0x44c63e,_0x5804af,!0x0);}return this[_0x5e16('0xb')]=_0x44c63e,this[_0x5e16('0xf2')]=_0x5804af,this[_0x5e16('0x62')]();}[_0x5e16('0xd5')](_0x29ca4c){this[_0x5e16('0xf6')](),this[_0x5e16('0xb')]=_0x29ca4c[_0x5e16('0xa3')],this[_0x5e16('0xf2')]=_0x29ca4c[_0x5e16('0xa1')];for(const _0x1ddbf9 in _0x29ca4c[_0x5e16('0x7')]){const _0x268079=_0x29ca4c['diffData'][_0x1ddbf9][_0x5e16('0x5e')],_0x595cca=_0x563797(_0x29ca4c['diffData'][_0x1ddbf9][_0x5e16('0x3c')])||{},_0x1f147b=this['_makeModelFromViewString'](_0x29ca4c[_0x5e16('0x7')][_0x1ddbf9][_0x5e16('0xed')]);_0x1f147b['rootName']=_0x1ddbf9,_0x1f147b[_0x5e16('0xf7')]=!_0x268079||!_0x268079[_0x5e16('0xae')],_0x1f147b[_0x5e16('0xae')]=()=>_0x1f147b[_0x5e16('0xf7')],this['_baseRoots'][_0x5e16('0x93')](_0x1ddbf9,_0x1f147b),this[_0x5e16('0x6d')][_0x5e16('0x93')](_0x1ddbf9,_0x595cca),_0x268079&&this[_0x5e16('0xfe')][_0x5e16('0x93')](_0x1ddbf9,_0x268079);const _0x43313c=this[_0x5e16('0xc8')](_0x1f147b);this[_0x5e16('0xab')]['set'](_0x1ddbf9,_0x43313c);for(const [_0x23dba6,_0x32374d]of _0x1f147b['markers']){if(!_0x23dba6['startsWith'](_0x5e16('0x60')))continue;const _0x29ba52=_0x23dba6[_0x5e16('0xce')](':')[0x2];for(const _0x14bc50 of _0x32374d[_0x5e16('0x73')]({'singleCharacters':!0x0})){const _0x4919bb=this[_0x5e16('0xc3')](_0x14bc50),_0x54a8d0=_0x5e16('0xef')==_0x14bc50[_0x5e16('0x1f')]?_0x14bc50[_0x5e16('0x29')][_0x5e16('0x78')]['slice'](0x0,-0x1):_0x14bc50[_0x5e16('0x29')]['path'],_0x310ac0=_0x43313c[_0x5e16('0x68')](_0x54a8d0)[_0x5e16('0x89')](_0x4919bb);this[_0x5e16('0xc0')][_0x5e16('0x93')](_0x310ac0,{'userId':_0x29ba52});}}}this[_0x5e16('0xc')]=this['_revisionId'];const _0x2fbdf6=[...Array(this[_0x5e16('0x104')])['keys']()][_0x5e16('0x51')](0x1)[_0x5e16('0x88')](_0x5de33e=>!this['_touched'][_0x5e16('0xa5')](_0x5de33e));let _0x5c6682=0x0;const _0x5623db=new Map();for(const _0x12bb24 in _0x29ca4c[_0x5e16('0x7')]){const _0x59cefb=_0x29ca4c[_0x5e16('0x7')][_0x12bb24]['attachChange'],_0x24b649=_0x563797(_0x29ca4c[_0x5e16('0x7')][_0x12bb24][_0x5e16('0xa4')])||{},_0x4e29b1=this[_0x5e16('0x48')](_0x29ca4c['diffData'][_0x12bb24]['insertions']);_0x4e29b1[_0x5e16('0x75')]=_0x12bb24,_0x4e29b1[_0x5e16('0xf7')]=!_0x59cefb||_0x59cefb[_0x5e16('0xae')],_0x4e29b1[_0x5e16('0xae')]=()=>_0x4e29b1[_0x5e16('0xf7')],this[_0x5e16('0x49')]['set'](_0x12bb24,_0x4e29b1),this[_0x5e16('0xff')][_0x5e16('0x93')](_0x12bb24,_0x24b649);const _0x45d632=this[_0x5e16('0xc8')](_0x4e29b1,Number[_0x5e16('0xa0')]);this[_0x5e16('0xb2')][_0x5e16('0x93')](_0x12bb24,_0x45d632),_0x5623db[_0x5e16('0x93')](_0x12bb24,_0x4e29b1[_0x5e16('0xae')]()?_0x24b649:{});for(const [_0x402b49,_0x266b05]of _0x4e29b1[_0x5e16('0xe7')]){if(!_0x402b49[_0x5e16('0xa8')]('revision:'))continue;const _0x535ed1=_0x402b49[_0x5e16('0xce')](':')[0x2];for(const _0x6541a5 of _0x266b05[_0x5e16('0x73')]({'singleCharacters':!0x0})){const _0x57afef=this['_getVidAttributeName'](_0x6541a5),_0x237125=this[_0x5e16('0x104')]++,_0x22e9eb=_0x5e16('0xef')==_0x6541a5[_0x5e16('0x1f')]?_0x6541a5['previousPosition']['path'][_0x5e16('0x51')](0x0,-0x1):_0x6541a5[_0x5e16('0x29')][_0x5e16('0x78')];_0x45d632[_0x5e16('0x68')](_0x22e9eb)[_0x5e16('0x39')](_0x57afef,_0x237125),this[_0x5e16('0xc0')]['set'](_0x237125,{'userId':_0x535ed1});}}for(const _0x467508 of this[_0x5e16('0x17')][_0x5e16('0xe3')][_0x5e16('0x8a')](_0x4e29b1)[_0x5e16('0x73')]({'singleCharacters':!0x0})){const _0x43f1c7=this[_0x5e16('0xc3')](_0x467508),_0x34d380=_0x5e16('0xef')==_0x467508[_0x5e16('0x1f')]?_0x467508['previousPosition']['path'][_0x5e16('0x51')](0x0,-0x1):_0x467508[_0x5e16('0x29')][_0x5e16('0x78')],_0x4b6824=_0x45d632['getNodeByPath'](_0x34d380);_0x4b6824[_0x5e16('0x89')](_0x43f1c7)>0x0||_0x4b6824[_0x5e16('0x39')](_0x43f1c7,_0x2fbdf6[_0x5c6682++]);}for(const [_0x3f44a8,_0x25ab1a]of _0x4e29b1[_0x5e16('0xe7')])_0x3f44a8[_0x5e16('0xa8')]('revision:')||this[_0x5e16('0x2f')][_0x5e16('0x93')](_0x3f44a8,_0x25ab1a);}const _0x32b4b2=H(_0x5e16('0xe9'));this[_0x5e16('0xbd')][_0x5e16('0x93')](_0x5e16('0xe9'),_0x32b4b2),this[_0x5e16('0xab')][_0x5e16('0x93')](_0x5e16('0xe9'),this[_0x5e16('0xc8')](_0x32b4b2,0x1));const _0x562af9=H(_0x5e16('0xe9'));this['_diffRoots']['set'](_0x5e16('0xe9'),_0x562af9),this[_0x5e16('0xb2')]['set'](_0x5e16('0xe9'),this[_0x5e16('0xc8')](_0x562af9,0x1));const _0x451bbe=Array[_0x5e16('0xcd')](this[_0x5e16('0x49')])[_0x5e16('0x101')](([_0x1b629e,_0x41643c])=>[_0x1b629e,J(_0x41643c)]);this[_0x5e16('0xd8')](this[_0x5e16('0xf2')],_0x451bbe,this[_0x5e16('0x2f')],_0x5623db);}[_0x5e16('0x48')](_0x329733){const _0x1c7416=JSON[_0x5e16('0x9d')](_0x329733),_0x3d29de=this['editor']['editing'][_0x5e16('0x77')][_0x5e16('0xa9')],_0x38b82e=new _0x3f7f3c(_0x3d29de,_0x1c7416[_0x5e16('0x101')](_0x451f9c=>T(_0x451f9c,this[_0x5e16('0x17')])));return this['editor'][_0x5e16('0x61')][_0x5e16('0x6')](_0x38b82e);}[_0x5e16('0xd8')](_0x240f56,_0x294f5e,_0x16bba5,_0x10fc25){const _0x32f046=new Map(_0x294f5e),_0x4136fb=new Map(_0x563797(_0x10fc25)),_0x756855=new Map();for(const [_0x5b9063,_0x57aaeb]of _0x16bba5)_0x756855[_0x5e16('0x93')](_0x5b9063,{'start':_0x57aaeb[_0x5e16('0x9b')]['clone'](),'end':_0x57aaeb['end'][_0x5e16('0xaf')](),'rootName':_0x57aaeb[_0x5e16('0xb6')][_0x5e16('0x75')]});this[_0x5e16('0xfb')]['set'](_0x240f56,{'roots':_0x32f046,'markers':_0x756855,'rootsAttributes':_0x4136fb});}[_0x5e16('0xd9')](_0x377b4b){this[_0x5e16('0xfb')][_0x5e16('0x80')](_0x377b4b);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this[_0x5e16('0xf2')]=-0x1,this['_savedMetaData']['clear'](),this[_0x5e16('0x19')](this[_0x5e16('0xbe')]);}[_0x5e16('0xf6')](){this['_touched']['clear'](),this[_0x5e16('0x7a')][_0x5e16('0xeb')](),this[_0x5e16('0xfe')][_0x5e16('0xeb')](),this[_0x5e16('0x49')][_0x5e16('0xeb')](),this[_0x5e16('0xff')][_0x5e16('0xeb')](),this[_0x5e16('0xbd')]['clear'](),this[_0x5e16('0x6d')][_0x5e16('0xeb')](),this[_0x5e16('0xb2')][_0x5e16('0xeb')](),this[_0x5e16('0xab')]['clear'](),this[_0x5e16('0x2f')][_0x5e16('0xeb')](),this['_revisionId']=0x1,this[_0x5e16('0xc')]=this[_0x5e16('0x104')];}[_0x5e16('0xc8')](_0x29a514,_0x38967d=null){let _0x4fe351=null;_0x29a514['is']('documentFragment')||(_0x4fe351=new _0x2d06a3(_0x29a514[_0x5e16('0xf4')],{'vid_start':null===_0x38967d?this['_revisionId']++:_0x38967d++}));const _0x97e570=[];for(const _0x3da476 of _0x29a514[_0x5e16('0x44')]())if(_0x3da476['is'](_0x5e16('0xa7'))){_0x97e570[_0x5e16('0x98')](this[_0x5e16('0xc8')](_0x3da476,_0x38967d));const _0x6f5422=_0x97e570[_0x97e570[_0x5e16('0x69')]-0x1];null!==_0x38967d&&(_0x38967d=_0x6f5422['is'](_0x5e16('0xa7'),_0x5e16('0x7e'))?_0x6f5422['getAttribute'](_0x5e16('0xfd'))+0x1:_0x6f5422[_0x5e16('0x89')]('vid_end')+0x1);}else for(let _0x501cc4=0x0;_0x501cc4<_0x3da476[_0x5e16('0x102')];_0x501cc4++)_0x97e570[_0x5e16('0x98')](new _0x2d06a3('$text',{'vid':null===_0x38967d?this[_0x5e16('0x104')]++:_0x38967d++}));if(_0x29a514['is'](_0x5e16('0x9e'))){const _0x276ccf=H(_0x29a514[_0x5e16('0x75')]);return _0x276ccf[_0x5e16('0x1e')](0x0,_0x97e570),_0x276ccf;}return _0x4fe351[_0x5e16('0x39')](_0x5e16('0x7c'),null===_0x38967d?this['_revisionId']++:_0x38967d++),_0x4fe351['_insertChild'](0x0,_0x97e570),_0x4fe351;}['_calculateMetaData'](_0x3805be,_0xeb67a6,_0x14da3c){this[_0x5e16('0xf6')]();const {roots:_0x424ede,markers:_0x53f836,rootsAttributes:_0x441efa}=this[_0x5e16('0xfb')][_0x5e16('0x1')](_0x3805be);this[_0x5e16('0xbd')]=new Map(_0x424ede),this[_0x5e16('0x6d')]=new Map(_0x563797(_0x441efa));for(const [_0x40b21e,_0x5c49ae]of this['_baseRoots'])if(_0x5e16('0xe9')!==_0x40b21e&&(this[_0x5e16('0x49')]['set'](_0x40b21e,J(_0x5c49ae)),this[_0x5e16('0xff')]=new Map(_0x563797(_0x441efa)),_0x14da3c)){const _0x156f66=this[_0x5e16('0x104')];this[_0x5e16('0xb2')]['set'](_0x40b21e,this[_0x5e16('0xc8')](_0x5c49ae)),this[_0x5e16('0xab')][_0x5e16('0x93')](_0x40b21e,this[_0x5e16('0xc8')](_0x5c49ae,_0x156f66));}this['_startingRevisionId']=this[_0x5e16('0x104')],this[_0x5e16('0x49')][_0x5e16('0x93')](_0x5e16('0xe9'),J(this[_0x5e16('0xbd')][_0x5e16('0x1')]('$graveyard'))),_0x14da3c&&this[_0x5e16('0xb2')][_0x5e16('0x93')](_0x5e16('0xe9'),this[_0x5e16('0xc8')](this['_baseRoots']['get']('$graveyard')));for(const [_0x2dd607,_0x4ae020]of _0x53f836){const _0x4574db=this[_0x5e16('0xbd')][_0x5e16('0x1')](_0x4ae020[_0x5e16('0x75')]),_0x11bc8b=this[_0x5e16('0x49')][_0x5e16('0x1')](_0x4ae020['rootName']),_0x4f9c8e=new _0x1e7e61(this[_0x5e16('0x4f')](_0x4ae020[_0x5e16('0x9b')],_0x4574db),this[_0x5e16('0x4f')](_0x4ae020[_0x5e16('0xa')],_0x4574db)),_0x4862be=this['_fixRange'](_0x4f9c8e,_0x11bc8b);_0x4574db[_0x5e16('0xe7')][_0x5e16('0x93')](_0x2dd607,_0x4f9c8e),this['_markers'][_0x5e16('0x93')](_0x2dd607,_0x4862be);}this['_applyOperations'](_0x3805be,_0xeb67a6,_0x14da3c);}[_0x5e16('0x3a')](_0x3ba1c2,_0x6db0db,_0x42f4e9){for(const _0x10d6c4 of this['source'][_0x5e16('0xa6')](_0x3ba1c2,_0x6db0db))this[_0x5e16('0x15')](_0x10d6c4,_0x42f4e9);for(const _0x59f15a of this[_0x5e16('0x49')][_0x5e16('0x33')]())_0x59f15a[_0x5e16('0xe7')][_0x5e16('0xeb')]();for(const [_0x1393b6,_0x46be86]of this[_0x5e16('0x2f')]){this['_diffRoots'][_0x5e16('0x1')](_0x46be86[_0x5e16('0xb6')][_0x5e16('0x75')])[_0x5e16('0xe7')][_0x5e16('0x93')](_0x1393b6,_0x46be86[_0x5e16('0xaf')]());}const _0x748d5f=new Map(),_0x218b19=new Map();for(const [_0x63ba80,_0x3b909a]of this[_0x5e16('0x49')])_0x748d5f[_0x5e16('0x93')](_0x63ba80,J(_0x3b909a)),_0x218b19[_0x5e16('0x93')](_0x63ba80,this['_diffRootsAttributes'][_0x5e16('0x1')](_0x63ba80));this[_0x5e16('0xd8')](_0x6db0db,_0x748d5f,this[_0x5e16('0x2f')],_0x218b19);}[_0x5e16('0x3e')](_0x4b5abf){const _0x901df5=Array[_0x5e16('0xcd')](this[_0x5e16('0xfb')][_0x5e16('0x81')]());_0x901df5[_0x5e16('0xb3')]((_0x3c1099,_0x459aae)=>_0x3c1099-_0x459aae),_0x901df5[_0x5e16('0x26')]();for(const _0xf2c591 of _0x901df5)if(_0xf2c591<_0x4b5abf)return _0xf2c591;return Number[_0x5e16('0xa0')];}[_0x5e16('0xc5')](_0x131ff7,_0x5a13cf){const _0x35ce95=Array[_0x5e16('0xcd')](_0x5a13cf[_0x5e16('0xe7')])[_0x5e16('0x101')](([_0x1a285e,_0xde17de])=>[_0x1a285e,this[_0x5e16('0x21')](_0xde17de,_0x131ff7)]);_0x131ff7[_0x5e16('0xe7')]=new Map(_0x35ce95);}[_0x5e16('0x7d')](_0x47a7ad){for(const _0x5b0c5d of this[_0x5e16('0x2f')][_0x5e16('0x33')]()){const _0x481fcd=_0x5b0c5d['getTransformedByOperation'](_0x47a7ad),_0x4419cc=_0x1e7e61[_0x5e16('0xe6')](_0x481fcd);_0x5b0c5d['start']=_0x4419cc[_0x5e16('0x9b')],_0x5b0c5d[_0x5e16('0xa')]=_0x4419cc[_0x5e16('0xa')];}}[_0x5e16('0x15')](_0x193bf9,_0x565814){if(_0x5e16('0x1a')==_0x193bf9[_0x5e16('0x1f')]||_0x5e16('0xc4')==_0x193bf9[_0x5e16('0x1f')])return void this[_0x5e16('0x7f')](_0x193bf9,_0x565814);if(_0x5e16('0x66')==_0x193bf9['type']){const _0x4f243c=_0x193bf9[_0x5e16('0x6f')][_0x5e16('0xb6')][_0x5e16('0x75')];this[_0x5e16('0x49')][_0x5e16('0xa5')](_0x4f243c)||(this['_diffRoots'][_0x5e16('0x93')](_0x4f243c,H(_0x4f243c,!0x0)),this[_0x5e16('0xff')][_0x5e16('0x93')](_0x4f243c,{}),_0x565814&&this['_idsRoots'][_0x5e16('0x93')](_0x4f243c,H(_0x4f243c,!0x0)));}if('addRootAttribute'==_0x193bf9[_0x5e16('0x1f')]||_0x5e16('0x79')==_0x193bf9['type']||_0x5e16('0x83')==_0x193bf9[_0x5e16('0x1f')])return void this[_0x5e16('0x2d')](_0x193bf9);const _0x3acca5=this[_0x5e16('0xe0')](_0x193bf9,this[_0x5e16('0x49')]);if('marker'!==_0x193bf9['type']&&(_0x3acca5[_0x5e16('0x34')](),this[_0x5e16('0x7d')](_0x3acca5)),_0x565814)switch(_0x3acca5[_0x5e16('0x1f')]){case _0x5e16('0x66'):this[_0x5e16('0x53')](_0x193bf9);break;case'move':case _0x5e16('0x103'):case'reinsert':this[_0x5e16('0xb7')](_0x193bf9);break;case _0x5e16('0xd3'):this['_handleMergeOperation'](_0x193bf9);break;case'split':this[_0x5e16('0xf')](_0x193bf9);break;case _0x5e16('0x0'):this[_0x5e16('0x97')](_0x193bf9);}}['_cloneOperation'](_0x167b19,_0x3ac196){const _0x3415fe=_0x167b19['clone']();return _0x3415fe[_0x5e16('0x95')]=_0x167b19[_0x5e16('0x95')],this['_fixOperation'](_0x3415fe,_0x3ac196),_0x3415fe;}[_0x5e16('0x65')](_0x17a5a2){return _0x17a5a2[_0x5e16('0x101')](_0x5a93d8=>{const _0x1bb844=this[_0x5e16('0xc3')](_0x5a93d8);return Number(_0x5a93d8[_0x5e16('0x4')]['getAttribute'](_0x1bb844));});}[_0x5e16('0xf3')](_0x2b8ef6,_0x1e43c2){if(_0x2b8ef6['is']('element',_0x5e16('0x7e')))_0x1e43c2['push']({'item':_0x2b8ef6,'type':'text'});else{_0x2b8ef6['is'](_0x5e16('0xa7'))&&_0x1e43c2['push']({'item':_0x2b8ef6,'type':'elementStart'});for(const _0x947120 of _0x2b8ef6[_0x5e16('0x44')]())this[_0x5e16('0xf3')](_0x947120,_0x1e43c2);_0x2b8ef6['is'](_0x5e16('0xa7'))&&_0x1e43c2[_0x5e16('0x98')]({'item':_0x2b8ef6,'type':'elementEnd'});}return _0x1e43c2;}[_0x5e16('0x62')](){const _0x544c6e=new Map(this[_0x5e16('0xc0')]),_0x216572=new Map(_0x544c6e),_0x5b69bc=new Map(),_0x3d5e82={'insertions':{},'deletions':{}},_0x35a9f6={'insertions':{},'deletions':{}},_0x174678=new Map(),_0x44c4e0=new Set([...this[_0x5e16('0xbd')][_0x5e16('0x81')](),...this[_0x5e16('0x49')]['keys']()]);_0x44c4e0[_0x5e16('0x80')](_0x5e16('0xe9'));for(const _0x1d8c4a of _0x44c4e0){const _0x57787b=this['_diffRoots'][_0x5e16('0x1')](_0x1d8c4a)||H(_0x1d8c4a,!0x1),_0x411bef=this[_0x5e16('0xbd')][_0x5e16('0x1')](_0x1d8c4a)||H(_0x1d8c4a,!0x1);_0x57787b[_0x5e16('0xae')]()||_0x411bef[_0x5e16('0xae')]()?(_0x3d5e82['insertions'][_0x1d8c4a]=J(_0x57787b),_0x3d5e82[_0x5e16('0xed')][_0x1d8c4a]=J(_0x411bef),this[_0x5e16('0xc5')](_0x3d5e82[_0x5e16('0xed')][_0x1d8c4a],_0x411bef),this[_0x5e16('0xc5')](_0x3d5e82[_0x5e16('0xf1')][_0x1d8c4a],_0x57787b),_0x35a9f6[_0x5e16('0xf1')][_0x1d8c4a]=this[_0x5e16('0xf3')](this[_0x5e16('0xb2')][_0x5e16('0x1')](_0x1d8c4a),[]),_0x35a9f6[_0x5e16('0xed')][_0x1d8c4a]=this[_0x5e16('0xf3')](this[_0x5e16('0xab')]['get'](_0x1d8c4a)||H(_0x1d8c4a,!0x1),[])):_0x44c4e0[_0x5e16('0x80')](_0x1d8c4a);}for(const _0x10a6f2 of _0x44c4e0){const _0xd88a48=_0x35a9f6[_0x5e16('0xf1')][_0x10a6f2];for(const _0x1750e5 of _0xd88a48){const _0x482242=this[_0x5e16('0xc3')](_0x1750e5),_0x3c0f45=_0x1750e5[_0x5e16('0x4')][_0x5e16('0x89')](_0x482242);_0x216572[_0x5e16('0x80')](_0x3c0f45),_0x3c0f45>=this[_0x5e16('0xc')]&&_0x5b69bc[_0x5e16('0x93')](_0x3c0f45,_0x544c6e[_0x5e16('0x1')](_0x3c0f45));}}for(const _0x430e47 of _0x44c4e0){const _0x1e6da2=_0x35a9f6[_0x5e16('0xf1')][_0x430e47],_0x591442=this['_getBaseVids'](_0x35a9f6[_0x5e16('0xed')][_0x430e47]);let _0x335bcb=0x0;for(const _0x1ca31b of _0x1e6da2){const _0x2b1c1b=this['_getVidAttributeName'](_0x1ca31b),_0x988117=_0x1ca31b[_0x5e16('0x4')]['getAttribute'](_0x2b1c1b);if(!_0x5b69bc['has'](_0x988117)&&!_0x174678[_0x5e16('0xa5')](_0x988117)){if(_0x216572[_0x5e16('0xa5')](_0x988117))_0x335bcb++;else{if(_0x988117!=_0x591442[_0x335bcb]){const _0x31210=_0x544c6e['get'](_0x988117)||_0x544c6e['get'](_0x591442[_0x335bcb]);for(;_0x988117!=_0x591442[_0x335bcb];)_0x216572[_0x5e16('0xa5')](_0x591442[_0x335bcb])||(_0x174678['set'](_0x591442[_0x335bcb],_0x31210),_0x544c6e[_0x5e16('0x93')](_0x591442[_0x335bcb],_0x31210)),_0x335bcb++;}_0x335bcb++;}}}}for(const _0x3af4a0 of _0x44c4e0){const _0x14ce6c=_0x35a9f6[_0x5e16('0xf1')][_0x3af4a0];for(const _0x3e5414 of _0x14ce6c){const _0x4e3f15=this[_0x5e16('0xc3')](_0x3e5414),_0x28e920=_0x3e5414[_0x5e16('0x4')]['getAttribute'](_0x4e3f15);if(_0x174678[_0x5e16('0xa5')](_0x28e920)){const _0x1ccd34=_0x174678[_0x5e16('0x1')](_0x28e920);_0x216572[_0x5e16('0xa5')](_0x28e920)||_0x216572['set'](_0x28e920,{..._0x1ccd34}),_0x5b69bc[_0x5e16('0x93')](_0x28e920,{..._0x1ccd34});}}}for(const _0x433fb2 of _0x216572[_0x5e16('0x81')]())_0x433fb2>=this[_0x5e16('0xc')]&&_0x216572[_0x5e16('0x80')](_0x433fb2);const _0x4ec66a=new Map();for(const _0x4ec2e1 of _0x44c4e0){let _0x2d1d7c=_0x35a9f6[_0x5e16('0xf1')][_0x4ec2e1];for(const _0x473a35 of _0x2d1d7c)if(_0x473a35['item']['is'](_0x5e16('0xa7'),_0x5e16('0xb1'))){const _0x1b36c4=this[_0x5e16('0xc3')](_0x473a35),_0x98927b=_0x473a35[_0x5e16('0x4')][_0x5e16('0x89')](_0x1b36c4);if(_0x5b69bc[_0x5e16('0xa5')](_0x98927b)){const _0x415ee8=_0x473a35[_0x5e16('0x4')][_0x5e16('0xc2')][_0x5e16('0xc2')][_0x5e16('0x89')](_0x5e16('0x8c')),_0x4dabe0=_0x4ec66a[_0x5e16('0x1')](_0x415ee8)||new Set();_0x4dabe0[_0x5e16('0xb9')](_0x5b69bc[_0x5e16('0x1')](_0x98927b)[_0x5e16('0x96')]),_0x4ec66a[_0x5e16('0x93')](_0x415ee8,_0x4dabe0);}}_0x2d1d7c=_0x35a9f6['deletions'][_0x4ec2e1];for(const _0x25cef6 of _0x2d1d7c)if(_0x25cef6[_0x5e16('0x4')]['is']('element',_0x5e16('0xb1'))){const _0x53c2fe=this['_getVidAttributeName'](_0x25cef6),_0x10e101=_0x25cef6[_0x5e16('0x4')][_0x5e16('0x89')](_0x53c2fe);if(_0x216572['has'](_0x10e101)){const _0x3881db=_0x25cef6[_0x5e16('0x4')][_0x5e16('0xc2')]['parent'][_0x5e16('0x89')](_0x5e16('0x8c')),_0x42d379=_0x4ec66a[_0x5e16('0x1')](_0x3881db)||new Set();_0x42d379[_0x5e16('0xb9')](_0x216572[_0x5e16('0x1')](_0x10e101)[_0x5e16('0x96')]),_0x4ec66a[_0x5e16('0x93')](_0x3881db,_0x42d379);}}for(const _0x3cc6c9 of _0x4ec66a['keys']())(_0x5b69bc[_0x5e16('0xa5')](_0x3cc6c9)||_0x216572['has'](_0x3cc6c9))&&_0x4ec66a[_0x5e16('0x80')](_0x3cc6c9);}for(const _0x290536 of _0x44c4e0){const _0x3b9acb=_0x35a9f6['insertions'][_0x290536];let _0x197332=null,_0x21ae1d=null;for(const _0x1b1adf of _0x3b9acb){const _0x3bbdcb=this[_0x5e16('0xc3')](_0x1b1adf),_0x346cfe=_0x1b1adf[_0x5e16('0x4')]['getAttribute'](_0x3bbdcb),_0x357113=_0x4ec66a[_0x5e16('0x1')](_0x346cfe);_0x357113&&'elementStart'==_0x1b1adf[_0x5e16('0x1f')]&&(_0x197332=Array[_0x5e16('0xcd')](_0x357113)[0x0],_0x21ae1d=_0x1b1adf[_0x5e16('0x4')][_0x5e16('0x89')]('vid_end')),_0x197332&&(_0x216572[_0x5e16('0x93')](_0x346cfe,{'userId':_0x197332}),_0x5b69bc[_0x5e16('0x93')](_0x346cfe,{'userId':_0x197332})),_0x346cfe==_0x21ae1d&&(_0x197332=null,_0x21ae1d=null);}}const _0xb17fae={},_0x3917b3=new Set();for(const _0x763970 of _0x44c4e0){const _0x141709=_0x3d5e82['deletions'][_0x763970],_0x7aba7f=_0x3d5e82['insertions'][_0x763970];for(const {userId:_0x5b7d15}of this[_0x5e16('0x7a')][_0x5e16('0x33')]())null!==_0x5b7d15&&_0x3917b3['add'](_0x5b7d15);for(const {userId:_0x316d51}of this[_0x5e16('0xfe')]['values']())null!==_0x316d51&&_0x3917b3[_0x5e16('0xb9')](_0x316d51);this[_0x5e16('0x59')](_0x7aba7f,_0x35a9f6['insertions'][_0x763970],_0x5b69bc,_0x5e16('0xe1'),_0x3917b3),this[_0x5e16('0x59')](_0x141709,_0x35a9f6[_0x5e16('0xed')][_0x763970],_0x216572,_0x5e16('0xb8'),_0x3917b3),_0xb17fae[_0x763970]={'insertions':this[_0x5e16('0x3f')](_0x7aba7f),'deletions':this[_0x5e16('0x3f')](_0x141709),'attachChange':this[_0x5e16('0xfe')][_0x5e16('0x1')](_0x763970)||null,'attributesBefore':_0x563797(this[_0x5e16('0x6d')][_0x5e16('0x1')](_0x763970))||{},'attributesAfter':_0x563797(this[_0x5e16('0xff')][_0x5e16('0x1')](_0x763970))};}return{'diffData':_0xb17fae,'authorsIds':Array[_0x5e16('0xcd')](_0x3917b3)};}[_0x5e16('0xd6')](_0x364e62){for(const [,_0x234078]of _0x364e62[_0x5e16('0xe7')]){const _0x2536f7=_0x234078[_0x5e16('0x9b')][_0x5e16('0x3')]()[_0x5e16('0x88')](_0x47ca0e=>_0x5e16('0xb1')==_0x47ca0e[_0x5e16('0xf4')]);for(const _0x1a1549 of _0x2536f7)0x1==_0x1a1549[_0x5e16('0xba')]&&_0x1a1549[_0x5e16('0xcc')](0x0)['is'](_0x5e16('0xa7'),_0x5e16('0x64'))&&_0x1a1549[_0x5e16('0xcc')](0x0)[_0x5e16('0x39')]('keepParagraph',!0x0);}}[_0x5e16('0x3f')](_0x3d2107){this[_0x5e16('0xd6')](_0x3d2107);const _0x458b10=this['editor']['data'][_0x5e16('0x4b')](_0x3d2107,{}),_0x12936b=Array[_0x5e16('0xcd')](_0x458b10['getChildren']())[_0x5e16('0x101')](_0x24cb65=>this[_0x5e16('0x47')](_0x24cb65));return JSON['stringify'](_0x12936b);}[_0x5e16('0x47')](_0x2ea8ec){if(_0x2ea8ec['is']('$text'))return _0x2ea8ec[_0x5e16('0x61')];{const _0x5a111d=_0x2ea8ec;return{'type':Object[_0x5e16('0x81')](F)[_0x5e16('0x24')](_0x589b3e=>_0x2ea8ec instanceof F[_0x589b3e]),'name':_0x5a111d[_0x5e16('0xf4')],'attributes':Array['from'](_0x5a111d[_0x5e16('0x18')]()),'children':Array[_0x5e16('0xcd')](_0x5a111d[_0x5e16('0x44')]())[_0x5e16('0x101')](_0x1251bc=>this[_0x5e16('0x47')](_0x1251bc))};}}[_0x5e16('0x59')](_0x39f00b,_0x51ace6,_0x38185,_0x298e45,_0x241444){let _0x34b51a=null,_0x4c4192=null,_0x557e43=0x0;const _0x4a7141=this[_0x5e16('0x17')][_0x5e16('0xe3')];for(let _0x56f2b3=0x0;_0x56f2b3<_0x51ace6['length'];_0x56f2b3++){const _0x3dbb64=this[_0x5e16('0xc3')](_0x51ace6[_0x56f2b3]),_0x4342ae=_0x51ace6[_0x56f2b3][_0x5e16('0x4')]['getAttribute'](_0x3dbb64),_0x217fa5=_0x38185['get'](_0x4342ae),_0x1d6a10=_0x56f2b3==_0x51ace6[_0x5e16('0x69')]-0x1;(!_0x34b51a&&_0x217fa5&&(_0x34b51a=_0x217fa5,_0x4c4192=_0x51ace6[_0x56f2b3]),_0x34b51a&&(!_0x217fa5||_0x217fa5[_0x5e16('0x96')]!=_0x34b51a[_0x5e16('0x96')]))&&(_0x41a49e(_0x217fa5,q(_0x4c4192,_0x39f00b,_0x4a7141),q(_0x51ace6[_0x56f2b3],_0x39f00b,_0x4a7141)),_0x34b51a=_0x217fa5||null,_0x4c4192=_0x217fa5?_0x51ace6[_0x56f2b3]:null),_0x34b51a&&_0x1d6a10&&_0x41a49e(_0x217fa5,q(_0x4c4192,_0x39f00b,_0x4a7141),G(_0x51ace6[_0x56f2b3],_0x39f00b,_0x4a7141));}function _0x41a49e(_0x2163b4,_0x4e2f61,_0x5f4afc){const _0x1dfe51=_0x34b51a['userId'],_0x354b54=_0x5e16('0x60')+_0x298e45+':'+_0x1dfe51+':'+_0x557e43++,_0x2179d2=_0x4a7141[_0x5e16('0x99')](_0x4e2f61,_0x5f4afc);_0x39f00b[_0x5e16('0xe7')][_0x5e16('0x93')](_0x354b54,_0x2179d2),null!==_0x1dfe51&&_0x241444['add'](_0x1dfe51);}}[_0x5e16('0xc3')](_0x312d17){switch(_0x312d17['type']){case _0x5e16('0x2c'):return _0x5e16('0x8c');case _0x5e16('0xef'):return _0x5e16('0x7c');default:return _0x5e16('0xfd');}}['_fixOperation'](_0x5b0718,_0x2ce87d){_0x5b0718[_0x5e16('0x14')]=null;for(const _0x581da5 in _0x5b0718){const _0x24fabd=_0x5b0718[_0x581da5];if(_0x24fabd instanceof _0x359993){const _0x3e93bf=_0x2ce87d['get'](_0x24fabd[_0x5e16('0xb6')][_0x5e16('0x75')]);_0x5b0718[_0x581da5]=this[_0x5e16('0x4f')](_0x24fabd,_0x3e93bf);}if(_0x24fabd instanceof _0x1e7e61){const _0x1935b6=_0x2ce87d[_0x5e16('0x1')](_0x24fabd[_0x5e16('0xb6')]['rootName']);_0x5b0718[_0x581da5]=this['_fixRange'](_0x24fabd,_0x1935b6);}_0x5e16('0xb6')===_0x581da5&&(_0x5b0718['root']=_0x2ce87d[_0x5e16('0x1')](_0x5b0718[_0x5e16('0xb6')][_0x5e16('0x75')]));}}[_0x5e16('0x21')](_0x51243a,_0x188232){return this[_0x5e16('0x17')]['model'][_0x5e16('0x99')](this[_0x5e16('0x4f')](_0x51243a[_0x5e16('0x9b')],_0x188232),this['_fixPosition'](_0x51243a[_0x5e16('0xa')],_0x188232));}[_0x5e16('0x4f')](_0x32c315,_0x49806e){return this[_0x5e16('0x17')]['model'][_0x5e16('0xdb')](_0x49806e,_0x32c315[_0x5e16('0x78')],_0x32c315['stickiness']);}[_0x5e16('0x53')](_0x21aa66){const _0x36755f=this['_idsRoots'][_0x5e16('0x1')](_0x21aa66[_0x5e16('0x6f')][_0x5e16('0xb6')][_0x5e16('0x75')]),_0x5c6bb8=this[_0x5e16('0x4f')](_0x21aa66[_0x5e16('0x6f')],_0x36755f),_0x2aa547=null===_0x21aa66[_0x5e16('0x95')]?null:_0x21aa66[_0x5e16('0x95')]||this[_0x5e16('0x17')][_0x5e16('0x32')][_0x5e16('0x1')](_0x5e16('0x10'))['me']['id'],_0x49732d=_0x5c6bb8[_0x5e16('0xc2')],_0x2cad10=this['_revisionId'],_0x346bb1=[];for(const _0x271cce of _0x21aa66[_0x5e16('0x2e')])if(_0x271cce['is']('element'))_0x346bb1[_0x5e16('0x98')](this[_0x5e16('0xc8')](_0x271cce));else for(let _0x195ea6=0x0;_0x195ea6<_0x271cce['offsetSize'];_0x195ea6++)_0x346bb1['push'](new _0x2d06a3('$text',{'vid':this[_0x5e16('0x104')]++}));const _0x4911e6=this['_revisionId'];for(let _0x28787a=_0x2cad10;_0x28787a<_0x4911e6;_0x28787a++)this[_0x5e16('0xc0')]['set'](_0x28787a,{'userId':_0x2aa547});_0x49732d[_0x5e16('0x1e')](_0x5c6bb8['offset'],_0x346bb1);}[_0x5e16('0xb7')](_0xa0ca){(_0xa0ca=this[_0x5e16('0xe0')](_0xa0ca,this[_0x5e16('0xb2')]))['_execute']();const _0x14986f=null===_0xa0ca[_0x5e16('0x95')]?null:_0xa0ca[_0x5e16('0x95')]||this[_0x5e16('0x17')][_0x5e16('0x32')]['get']('Users')['me']['id'],_0x1fe799=_0xa0ca[_0x5e16('0x13')](),_0x30a801=_0x1fe799[_0x5e16('0xc2')],_0x1b4e02=_0x1fe799['offset'];!function _0x242221(_0x4ab7c6,_0x55719e,_0x33fa66,_0x9f2511){for(let _0xfc504=_0x33fa66;_0xfc504<_0x9f2511;_0xfc504++){const _0x206d91=_0x55719e[_0x5e16('0xcc')](_0xfc504);_0x206d91['is'](_0x5e16('0xa7'),_0x5e16('0x7e'))?_0x4ab7c6[_0x5e16('0x93')](_0x206d91[_0x5e16('0x89')](_0x5e16('0xfd')),{'userId':_0x14986f}):(_0x4ab7c6[_0x5e16('0x93')](_0x206d91[_0x5e16('0x89')](_0x5e16('0x8c')),{'userId':_0x14986f}),_0x242221(_0x4ab7c6,_0x206d91,0x0,_0x206d91[_0x5e16('0xba')]),_0x4ab7c6[_0x5e16('0x93')](_0x206d91[_0x5e16('0x89')]('vid_end'),{'userId':_0x14986f}));}}(this[_0x5e16('0xc0')],_0x30a801,_0x1b4e02,_0x1b4e02+_0xa0ca[_0x5e16('0x9')]);}['_handleMergeOperation'](_0x49d1b4){const _0x1c825f=null===(_0x49d1b4=this['_cloneOperation'](_0x49d1b4,this[_0x5e16('0xb2')]))[_0x5e16('0x95')]?null:_0x49d1b4[_0x5e16('0x95')]||this[_0x5e16('0x17')][_0x5e16('0x32')][_0x5e16('0x1')]('Users')['me']['id'],_0x50b7d2=_0x49d1b4[_0x5e16('0x86')][_0x5e16('0xc2')],_0x3d84ef=_0x49d1b4['sourcePosition'][_0x5e16('0xc2')],_0x4aed82=_0x50b7d2[_0x5e16('0x89')]('vid_end'),_0x179393=_0x3d84ef[_0x5e16('0x89')]('vid_start');_0x50b7d2[_0x5e16('0x39')](_0x5e16('0x7c'),_0x3d84ef['getAttribute']('vid_end')),_0x3d84ef[_0x5e16('0x39')](_0x5e16('0x7c'),_0x4aed82),this[_0x5e16('0xc0')][_0x5e16('0x93')](_0x179393,{'userId':_0x1c825f}),this[_0x5e16('0xc0')][_0x5e16('0x93')](_0x4aed82,{'userId':_0x1c825f}),_0x49d1b4[_0x5e16('0x34')]();}[_0x5e16('0xf')](_0x63d293){const _0x50d223=null===(_0x63d293=this[_0x5e16('0xe0')](_0x63d293,this[_0x5e16('0xb2')]))[_0x5e16('0x95')]?null:_0x63d293[_0x5e16('0x95')]||this[_0x5e16('0x17')]['plugins']['get'](_0x5e16('0x10'))['me']['id'],_0x2cee6a=_0x63d293[_0x5e16('0x8')],_0x5c9639=_0x63d293[_0x5e16('0xac')][_0x5e16('0xc2')];_0x63d293[_0x5e16('0x34')]();const _0x5c5d55=_0x5c9639[_0x5e16('0x89')](_0x5e16('0x7c')),_0x3e5e08=_0x63d293[_0x5e16('0x2a')]['nodeAfter'];if(_0x2cee6a){const _0x36d20f=_0x3e5e08['getAttribute'](_0x5e16('0x7c')),_0x2a2877=_0x5c9639[_0x5e16('0x89')](_0x5e16('0x7c'));_0x5c9639[_0x5e16('0x39')](_0x5e16('0x7c'),_0x36d20f),_0x3e5e08['_setAttribute']('vid_end',_0x2a2877),this[_0x5e16('0xc0')][_0x5e16('0x93')](_0x5c9639[_0x5e16('0x89')](_0x5e16('0x7c')),{'userId':_0x50d223}),this['_touched'][_0x5e16('0x93')](_0x3e5e08[_0x5e16('0x89')]('vid_start'),{'userId':_0x50d223});}else{const _0x16cb22=this[_0x5e16('0x104')]++,_0x247d47=this['_revisionId']++;_0x5c9639[_0x5e16('0x39')](_0x5e16('0x7c'),_0x16cb22),_0x3e5e08['_setAttribute'](_0x5e16('0x8c'),_0x247d47),_0x3e5e08[_0x5e16('0x39')](_0x5e16('0x7c'),_0x5c5d55),this[_0x5e16('0xc0')][_0x5e16('0x93')](_0x16cb22,{'userId':_0x50d223}),this[_0x5e16('0xc0')][_0x5e16('0x93')](_0x247d47,{'userId':_0x50d223});}}['_handleMarkerOperation'](_0xd43e82){if(!_0xd43e82[_0x5e16('0x57')])return;const _0x1ad6ff=(_0xd43e82=this[_0x5e16('0xe0')](_0xd43e82,this[_0x5e16('0x49')]))['oldRange']?_0xd43e82[_0x5e16('0x5f')][_0x5e16('0xb6')]:null,_0x51df8c=_0xd43e82['newRange']?_0xd43e82['newRange']['root']:null;_0x1ad6ff&&this[_0x5e16('0x2f')]['delete'](_0xd43e82['name']),_0x51df8c&&this[_0x5e16('0x2f')]['set'](_0xd43e82[_0x5e16('0xf4')],_0xd43e82[_0x5e16('0x9c')][_0x5e16('0xaf')]());const _0xa49a86=null===_0xd43e82['_authorId']?null:_0xd43e82[_0x5e16('0x95')]||this[_0x5e16('0x17')][_0x5e16('0x32')][_0x5e16('0x1')](_0x5e16('0x10'))['me']['id'],_0x3eb990=_0xd43e82[_0x5e16('0xf4')];if(!this['_touchedMarkers'][_0x5e16('0xa5')](_0x3eb990))return void this[_0x5e16('0x7a')]['set'](_0x3eb990,{'range':_0xd43e82[_0x5e16('0x5f')],'userId':_0xa49a86});const _0x2f6330=this['_touchedMarkers'][_0x5e16('0x1')](_0x3eb990),_0x180f64=_0x2f6330[_0x5e16('0xde')],_0x109001=_0xd43e82[_0x5e16('0x9c')];null==_0x180f64&&null==_0x109001||_0x180f64&&_0x109001&&_0x180f64[_0x5e16('0xc9')](_0x109001)?this[_0x5e16('0x7a')][_0x5e16('0x80')](_0xd43e82[_0x5e16('0xf4')]):_0x2f6330[_0x5e16('0x96')]=_0xa49a86;}[_0x5e16('0x7f')](_0x581c59,_0x5072fa){this[_0x5e16('0x49')][_0x5e16('0xa5')](_0x581c59[_0x5e16('0x75')])?this['_diffRoots'][_0x5e16('0x1')](_0x581c59[_0x5e16('0x75')])['_isAttached']=_0x581c59[_0x5e16('0x50')]:(this[_0x5e16('0x49')][_0x5e16('0x93')](_0x581c59[_0x5e16('0x75')],H(_0x581c59[_0x5e16('0x75')],!0x0)),this[_0x5e16('0xff')][_0x5e16('0x93')](_0x581c59[_0x5e16('0x75')],{}),_0x5072fa&&this['_idsRoots'][_0x5e16('0x93')](_0x581c59[_0x5e16('0x75')],H(_0x581c59[_0x5e16('0x75')],!0x0)));const _0x79104f=null===_0x581c59[_0x5e16('0x95')]?null:_0x581c59['_authorId']||this[_0x5e16('0x17')][_0x5e16('0x32')][_0x5e16('0x1')](_0x5e16('0x10'))['me']['id'],_0x3067c5=this[_0x5e16('0xfe')][_0x5e16('0x1')](_0x581c59[_0x5e16('0x75')]);_0x3067c5&&_0x3067c5[_0x5e16('0x96')]===_0x79104f?this['_touchedRoots'][_0x5e16('0x80')](_0x581c59[_0x5e16('0x75')]):this[_0x5e16('0xfe')][_0x5e16('0x93')](_0x581c59['rootName'],{'userId':_0x79104f,'isAttached':_0x581c59['isAdd']});}[_0x5e16('0x2d')](_0x59ac38){const _0x49f7b4=this['_diffRootsAttributes'][_0x5e16('0x1')](_0x59ac38[_0x5e16('0xb6')]['rootName']);null===_0x59ac38[_0x5e16('0xb4')]?delete _0x49f7b4[_0x59ac38[_0x5e16('0xec')]]:_0x49f7b4[_0x59ac38[_0x5e16('0xec')]]=_0x59ac38[_0x5e16('0xb4')];}}function J(_0x48990a){const _0x41ff5b=H(_0x48990a[_0x5e16('0x75')],_0x48990a['isAttached']());for(const _0x326add of _0x48990a['getChildren']()){const _0x3a65e8=_0x326add[_0x5e16('0x31')](!0x0);_0x41ff5b[_0x5e16('0xd4')](_0x3a65e8);}return _0x41ff5b;}function H(_0x2ef300,_0x1064d9=!0x0){const _0x582c07=new _0x1ebd11();return _0x582c07[_0x5e16('0x75')]=_0x2ef300,_0x582c07[_0x5e16('0xf7')]=_0x1064d9,_0x582c07['isAttached']=()=>_0x582c07[_0x5e16('0xf7')],_0x582c07;}function q(_0x2df6d5,_0x1e2966,_0x201050){const _0x27b1b5=_0x5e16('0xef')==_0x2df6d5[_0x5e16('0x1f')]?_0x201050[_0x5e16('0x56')](_0x2df6d5[_0x5e16('0x4')],_0x5e16('0xa')):_0x201050[_0x5e16('0x71')](_0x2df6d5[_0x5e16('0x4')]);return _0x201050[_0x5e16('0xdb')](_0x1e2966,_0x27b1b5[_0x5e16('0x78')],_0x27b1b5[_0x5e16('0x2')]);}function G(_0x373e48,_0x23d43c,_0x13fad6){const _0x2785c1=_0x5e16('0x2c')==_0x373e48[_0x5e16('0x1f')]?_0x13fad6['createPositionAt'](_0x373e48[_0x5e16('0x4')],0x0):_0x13fad6[_0x5e16('0xbc')](_0x373e48[_0x5e16('0x4')]);return _0x13fad6[_0x5e16('0xdb')](_0x23d43c,_0x2785c1[_0x5e16('0x78')],_0x2785c1[_0x5e16('0x2')]);}
23
+ const _0x515f=['_getViewJson','isReady','config','_lastTo','getRootNames','$text','newValue','getAncestors','_handleRootOperation','keepParagraph','values','getRoot','repository','finally','_appendChild','item','_bufferUpdate','_handleOperation','_idsRoots','markerToData','get','paragraph','fromVersion','getNodeByPath','stringify','fromEntries','_isPendingUpdate','deletions','define','_startingVersion','collaboration.channelId','view','version','buildRevisionData','range','reverse','revisionHistory.resumeUnsavedRevision','type','_lastFrom','end','oldRange','history','bind','marker','nodeAfter','elementEnd','getTime','RevisionTracker','createPositionAt','getRange','_diffRoots','_setConversion','PendingActions','_copyMarkers','delete','clone','attributesBefore','_handleSplitOperation','creatorId','addRootAttribute','rootName','_continueCurrentRevision','split','_addPendingAction','_cloneOperation','NEGATIVE_INFINITY','insertion','length','addRoot','getOperation','isAttached','_generateTape','_update','$graveyard','data','string','merge','_authorId','_fixPosition','_removeMetaData','revision-start','sort','loadState','_source','createdAt','parent','key','authorsIds','_handleInsertOperation','_getVidAttributeName','for','creator','editor-initial-data-replaced-with-revision-data','_getBaseVids','_applyOperations','toView','includes','rootsAttributes','afterInit','isEqual','_makeIdsRoot','getRevisionDocumentData','toModel','offsetSize','_baseRootsAttributes','getRevisionRootsAttributes','roots','remove','_getFromVersion','revision','_execute','getUser','filter','processor','reinsert','RealTimeCollaborationClient','startsWith','saveRevision','getAttribute','position','conversion','_saveMetaData','_makeModelFromViewString','_setAttribute','sendBufferedUpdates','_touchedRoots','createRevision','setRevisionData','clear','start','getWalker','dataToMarker','setSource','detachRoot','from','createPositionBefore','_revisionDataBuilder','find','stickiness','updateRevisions','_transformMarkers','vid_end','_touched','upcast','getLatestVersion','_insertChild','_isAttached','authors','editing','_getState','attributes','howMany','insert','data-revision-','_makeRevision','children','tableCell','getMovedRangeStart','_initialRoots','revision-end','_pendingAction','initial','createPositionFromPath','getCurrentRevisionId','_createInitialRevision','push','userId','childCount','markers','_findInsertionIndex','_diffRootsAttributes','documentFragment','previousPosition','shift','_loadRevisionData','map','insertionPosition','getChildren','document','_baseRoots','isAdd','model','_savedMetaData','isEnabled','marked','getChild','toVersion','newRange','add','getData','vid_start','set','dataDowncast','diffData','createRange','insertions','affectsData','source','slice','root','changeRootAttribute','getRevisions','_baseIdsRoots','Empty\x20document','default','deletion','getRevision','reInit','_handleRootAttributeOperation','offset','size','splitPosition','vid','text','_touchedMarkers','_removePendingAction','max','_startingRevisionId','_loadedStateData','_loadState','useFillerType','move','_replaceEditorDataWithRevisionData','addRevision','_processRootBeforeSave','_handleMoveOperation','sourcePosition','addRevisionData','getOperations','path','hasContent','_fixOperation','ready','nodes','_initialRevisionId','_markers','baseVersion','name','toData','currentRevision','_handleMergeOperation','keys','requires','pluginName','_reset','editor','element','_revisionId','_calculateMetaData','_operations','_bufferedUpdates','PENDING_ACTION_REVISION_HISTORY','has','init','Users','_removeRevisionMarkers','locale','attachChange','parse','_fixRange','resolve','elementStart','then','plugins','_createCurrentRevision','attributesAfter','_createFromRanges','getTransformedByOperation','revision:','adapter','_markChanges'];(function(_0x3ef5dd,_0x515f4c){const _0x5a53ab=function(_0x567cce){while(--_0x567cce){_0x3ef5dd['push'](_0x3ef5dd['shift']());}};_0x5a53ab(++_0x515f4c);}(_0x515f,0x16c));const _0x5a53=function(_0x3ef5dd,_0x515f4c){_0x3ef5dd=_0x3ef5dd-0x0;let _0x5a53ab=_0x515f[_0x3ef5dd];return _0x5a53ab;};import{Users as _0x4cf062}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x57d7d2,PendingActions as _0xcfc59f}from'ckeditor5/src/core';import{logWarning as _0x2c7363,uid as _0x16dc66}from'ckeditor5/src/utils';import{Position as _0x212216,Range as _0x57df39,Element as _0x4097d0,DocumentFragment as _0x11fefb,ViewText as _0x10bbbb,ViewElement as _0x11423a,ViewContainerElement as _0x1ed56a,ViewAttributeElement as _0x44fd5d,ViewEmptyElement as _0x2ce3f,ViewRawElement as _0x466ad5,ViewUIElement as _0x27d01e,ViewDocumentFragment as _0x25fca0}from'ckeditor5/src/engine';import _0x5d2c50 from'./revisionsrepository';import{getTranslation as _0x4dd2ee}from'./utils/common-translations';import{cloneDeep as _0x108074,isEqual as _0x18bf5f}from'lodash-es';const F={'c':_0x1ed56a,'a':_0x44fd5d,'e':_0x2ce3f,'r':_0x466ad5,'u':_0x27d01e};export default class u extends _0x57d7d2{static get[_0x5a53('0x96')](){return _0x5a53('0xe1');}static get[_0x5a53('0x95')](){return[_0x4cf062,_0x5d2c50,_0xcfc59f];}constructor(_0x3f5119){super(_0x3f5119),this['adapter']=null,this[_0x5a53('0x92')]=null,this[_0x5a53('0x2b')]=new B(this[_0x5a53('0x98')]),this[_0x5a53('0x8d')]=this[_0x5a53('0x98')][_0x5a53('0xb4')]['get'](_0x5a53('0xd0'))||_0x5a53('0x44'),this[_0x5a53('0x9d')]=new Map(),this[_0x5a53('0x7d')]=null;const _0x211f3d=_0x16dc66();this[_0x5a53('0x105')]={'history':this[_0x5a53('0x98')][_0x5a53('0x58')][_0x5a53('0x55')]['history'],'getLatestVersion':()=>Promise[_0x5a53('0xa7')](this['editor']['model']['document'][_0x5a53('0xd2')]),'getCurrentRevisionId':()=>_0x211f3d},this[_0x5a53('0x62')]('isReady',!0x1),this[_0x5a53('0x62')](_0x5a53('0x5a'),!0x0),this[_0x5a53('0x62')]('_isPendingUpdate',!0x1),this[_0x5a53('0x98')][_0x5a53('0xb4')][_0x5a53('0xce')](_0x5a53('0xd6'),!0x0),this[_0x5a53('0x98')]['conversion'][_0x5a53('0x10c')](_0x5a53('0x32'))[_0x5a53('0x26')]({'view':_0x5a53('0x10')});}[_0x5a53('0xa0')](){this[_0x5a53('0xbe')]=this['editor'][_0x5a53('0xaa')][_0x5a53('0xc6')]('RevisionsRepository'),this['_setConversion'](),this[_0x5a53('0x98')][_0x5a53('0xfc')]['on'](_0x5a53('0x8b'),()=>{const _0x3d16e9=this[_0x5a53('0xbe')][_0x5a53('0x71')](0x0),_0x433747=_0x3d16e9&&null===_0x3d16e9['creator']?_0x3d16e9:null;if(this['_continueCurrentRevision']=!!_0x433747&&this[_0x5a53('0x98')][_0x5a53('0xb4')]['get'](_0x5a53('0xd6')),this[_0x5a53('0x98')][_0x5a53('0xaa')][_0x5a53('0x9f')](_0x5a53('0x16'))){const _0x1248c2=this[_0x5a53('0x105')]['getCurrentRevisionId'](),_0x8d35cc=this[_0x5a53('0xbe')][_0x5a53('0x71')](_0x1248c2);if(_0x8d35cc)this['_startingVersion']=_0x8d35cc[_0x5a53('0xc8')],this[_0x5a53('0xef')]=!0x1;else{const _0x178a30=this['_source'][_0x5a53('0xdb')][_0x5a53('0x9c')][_0x5a53('0x2c')](_0x30344a=>!_0x30344a['_isInit']),_0x1169a7=_0x178a30?_0x178a30['baseVersion']:this[_0x5a53('0x105')]['history'][_0x5a53('0xd2')];_0x3d16e9?(_0x3d16e9[_0x5a53('0x5d')]<_0x1169a7&&_0x3d16e9[_0x5a53('0xfa')]({'toVersion':_0x1169a7}),this[_0x5a53('0xef')]?(this[_0x5a53('0x105')]['getCurrentRevisionId']=()=>_0x433747['id'],this[_0x5a53('0xcf')]=_0x433747['fromVersion']):(this['_startingVersion']=_0x3d16e9[_0x5a53('0x5d')],this[_0x5a53('0xef')]=!0x1)):(this[_0x5a53('0xcf')]=_0x1169a7,this[_0x5a53('0xef')]=!0x1);}}else _0x433747&&(this[_0x5a53('0x98')][_0x5a53('0x58')]['document'][_0x5a53('0xdb')][_0x5a53('0xd2')]=Math[_0x5a53('0x7b')](_0x433747[_0x5a53('0x5d')],this['editor']['model'][_0x5a53('0x55')][_0x5a53('0xdb')][_0x5a53('0xd2')]),_0x433747[_0x5a53('0xc8')]===_0x433747[_0x5a53('0x5d')]?(0x0!==_0x433747[_0x5a53('0xc8')]&&(this[_0x5a53('0x105')]['getCurrentRevisionId']=()=>_0x433747['id']),this[_0x5a53('0xef')]=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x433747['id'],this['_startingVersion']=_0x433747[_0x5a53('0xc8')])),this['_continueCurrentRevision']||(this[_0x5a53('0xcf')]=this[_0x5a53('0x98')][_0x5a53('0x58')][_0x5a53('0x55')]['version']);this['_revisionDataBuilder'][_0x5a53('0xa0')](this[_0x5a53('0x105')][_0x5a53('0xdb')]),this[_0x5a53('0x47')](this['_startingVersion']),this[_0x5a53('0xab')](this[_0x5a53('0xcf')]),this[_0x5a53('0xb0')]&&this[_0x5a53('0x1f')]();}),this[_0x5a53('0xdc')](_0x5a53('0xb3'))['to'](this,_0x5a53('0xcc'),_0x59d493=>!_0x59d493);}async[_0x5a53('0x5')](){if(this[_0x5a53('0xbe')]['length']>0x0){const _0xf4d3cb=this['repository']['getRevision'](0x0),_0x5c3e50=await this[_0x5a53('0x8')](_0xf4d3cb),_0x2afdf9=await this[_0x5a53('0xc')](_0xf4d3cb);this[_0x5a53('0x81')](_0x5c3e50,_0x2afdf9);}}[_0x5a53('0x27')](_0x9b46e){this['_source']=_0x9b46e;}async['update'](){const _0x5a5a96=await this[_0x5a53('0x105')][_0x5a53('0x33')]();if(_0x5a5a96>this[_0x5a53('0x92')][_0x5a53('0x5d')]){await this[_0x5a53('0x7e')]();const _0x32a780=this[_0x5a53('0xd3')]({'revision':this[_0x5a53('0x92')],'to':_0x5a5a96});_0x32a780[_0x5a53('0x36')]=_0x32a780[_0x5a53('0x109')][_0x5a53('0x52')](_0x4c1f23=>this['editor']['plugins'][_0x5a53('0xc6')](_0x5a53('0xa1'))[_0x5a53('0x12')](_0x4c1f23)),this['currentRevision'][_0x5a53('0xfa')](_0x32a780);}}async[_0x5a53('0x7e')](){this['_continueCurrentRevision']&&!this[_0x5a53('0x7d')]&&(await this[_0x5a53('0x51')](this[_0x5a53('0x92')]),this[_0x5a53('0x2b')]['loadState'](this['currentRevision']),this[_0x5a53('0x7d')]={'fromVersion':this[_0x5a53('0x92')][_0x5a53('0xc8')],'authors':this[_0x5a53('0x92')]['authors'][_0x5a53('0x69')]()});}async[_0x5a53('0x18')](_0x2f7349={},_0x3518c6=null){const _0x2294f9=[];await this[_0x5a53('0x7e')](),this[_0x5a53('0xef')]=!0x1,_0x3518c6>this[_0x5a53('0x92')][_0x5a53('0x5d')]&&(_0x3518c6=null),null===_0x3518c6&&(_0x3518c6=await this[_0x5a53('0x105')]['getLatestVersion']());const _0x4f18bd=this[_0x5a53('0xf')](_0x3518c6),_0x5332dc=this[_0x5a53('0xd3')]({'from':_0x4f18bd,'to':_0x3518c6});if(this[_0x5a53('0x92')]['toVersion']<_0x3518c6){const _0x55fb39=this[_0x5a53('0xd3')]({'revision':this[_0x5a53('0x92')],'from':_0x3518c6,'to':_0x3518c6});_0x55fb39[_0x5a53('0x36')]=[],_0x55fb39[_0x5a53('0x109')]=[],_0x55fb39['id']=this['currentRevision']['id'],this[_0x5a53('0x92')][_0x5a53('0xfa')](_0x55fb39,!0x0),delete _0x55fb39[_0x5a53('0x36')],_0x2294f9[_0x5a53('0x48')](_0x55fb39);}_0x2f7349['creatorId']=this[_0x5a53('0x98')][_0x5a53('0xaa')]['get'](_0x5a53('0xa1'))['me']['id'],_0x2f7349['name']=_0x2f7349[_0x5a53('0x90')]||null,_0x2f7349['id']=_0x2f7349['id']||_0x16dc66(),_0x2f7349={..._0x2f7349,..._0x5332dc};const _0x459608=this[_0x5a53('0x86')](_0x2f7349);_0x2294f9[_0x5a53('0x48')](_0x2f7349);const _0x22b23e=this[_0x5a53('0xbe')]['getIndex'](_0x459608);if(0x0!==_0x22b23e){const _0x212227=this[_0x5a53('0xbe')][_0x5a53('0x71')](_0x22b23e-0x1);if(_0x212227[_0x5a53('0xc8')]!==_0x3518c6){const _0x2dc0=this[_0x5a53('0x2b')][_0x5a53('0x60')](_0x3518c6,_0x212227['toVersion']),_0xaf6197={'id':_0x212227['id'],'diffData':_0x2dc0[_0x5a53('0x64')],'authorsIds':_0x2dc0[_0x5a53('0x109')],'authors':_0x2dc0['authorsIds'][_0x5a53('0x52')](_0x1750a0=>this[_0x5a53('0x98')]['plugins'][_0x5a53('0xc6')](_0x5a53('0xa1'))['getUser'](_0x1750a0)),'fromVersion':_0x3518c6};_0x212227===this[_0x5a53('0x92')]&&(_0xaf6197[_0x5a53('0x106')]=new Date(_0x2f7349[_0x5a53('0x106')][_0x5a53('0xe0')]()+0xa)),_0x212227[_0x5a53('0xfa')](_0xaf6197,!0x0),delete _0xaf6197[_0x5a53('0x36')],_0x2294f9[_0x5a53('0x48')](_0xaf6197);}}if(this['adapter']){for(const _0x153866 of _0x2294f9)this[_0x5a53('0xc2')](_0x153866['id'],_0x153866,!0x0);this[_0x5a53('0x1f')]();}return _0x459608;}['addRevisionData'](_0x392acf){const _0x36491b=this[_0x5a53('0xbe')][_0x5a53('0x21')](_0x392acf);return this['adapter']&&_0x36491b['on'](_0x5a53('0xfa'),(_0x2ffdd5,_0x4b9680,_0x3a11a1)=>{_0x3a11a1||(this[_0x5a53('0xc2')](_0x4b9680['id'],_0x4b9680,!0x0),this['sendBufferedUpdates']());}),this[_0x5a53('0xbe')][_0x5a53('0x82')](_0x36491b,this[_0x5a53('0x4c')](_0x36491b)),_0x36491b;}async[_0x5a53('0x8')](_0xa88ab){await this['_loadRevisionData'](_0xa88ab);const _0x10a8d1={};for(const _0x18bb6f in _0xa88ab['diffData']){if(_0xa88ab[_0x5a53('0x64')][_0x18bb6f]['attachChange']&&!_0xa88ab[_0x5a53('0x64')][_0x18bb6f][_0x5a53('0xa4')][_0x5a53('0xf8')])continue;const _0x1e5aed=this[_0x5a53('0xa2')](JSON[_0x5a53('0xa5')](_0xa88ab[_0x5a53('0x64')][_0x18bb6f][_0x5a53('0x66')])),_0x35371f=this[_0x5a53('0x98')][_0x5a53('0x37')][_0x5a53('0xd1')][_0x5a53('0x55')],_0x175f8a=new _0x25fca0(_0x35371f,_0x1e5aed[_0x5a53('0x52')](_0x55db4f=>T(_0x55db4f,this[_0x5a53('0x98')])));this[_0x5a53('0x98')][_0x5a53('0xfc')][_0x5a53('0x14')][_0x5a53('0x7f')](_0x5a53('0x5b')),_0x10a8d1[_0x18bb6f]=this[_0x5a53('0x98')][_0x5a53('0xfc')][_0x5a53('0x14')][_0x5a53('0x91')](_0x175f8a),this[_0x5a53('0x98')][_0x5a53('0xfc')][_0x5a53('0x14')]['useFillerType'](_0x5a53('0x6f'));}return _0x10a8d1;}async[_0x5a53('0xc')](_0x15099f){await this[_0x5a53('0x51')](_0x15099f);const _0x3e2e08={};for(const _0xe911e2 in _0x15099f['diffData'])_0x15099f['diffData'][_0xe911e2]['attachChange']&&!_0x15099f[_0x5a53('0x64')][_0xe911e2]['attachChange'][_0x5a53('0xf8')]||(_0x3e2e08[_0xe911e2]=_0x15099f[_0x5a53('0x64')][_0xe911e2]['attributesAfter']||{});return _0x3e2e08;}[_0x5a53('0x1f')](){if(0x0===this[_0x5a53('0x9d')][_0x5a53('0x75')])return;if(this[_0x5a53('0xcc')])return;let _0x77176f=Array[_0x5a53('0x29')](this[_0x5a53('0x9d')][_0x5a53('0xbc')]());this[_0x5a53('0x9d')]['clear']();for(let _0x280436=0x0;_0x280436<_0x77176f[_0x5a53('0xf5')];_0x280436++){const _0x485736=_0x77176f[_0x280436];let _0x5f5637=!0x1;for(const _0x33c86b of Object[_0x5a53('0x94')](_0x485736))void 0x0===_0x485736[_0x33c86b]?delete _0x485736[_0x33c86b]:'id'!==_0x33c86b&&(_0x5f5637=!0x0);_0x5f5637||(_0x77176f[_0x280436]=null);}if(_0x77176f=_0x77176f[_0x5a53('0x13')](_0x27202d=>null!==_0x27202d),!_0x77176f[_0x5a53('0xf5')])return;for(let _0x20b0fc=0x0;_0x20b0fc<_0x77176f[_0x5a53('0xf5')];_0x20b0fc++){const _0x53bada=_0x77176f[_0x20b0fc];void 0x0!==_0x53bada['fromVersion']&&void 0x0===_0x53bada[_0x5a53('0x5d')]&&(_0x53bada[_0x5a53('0x5d')]=this['repository'][_0x5a53('0x71')](_0x53bada['id'])[_0x5a53('0x5d')]),void 0x0!==_0x53bada[_0x5a53('0x5d')]&&void 0x0===_0x53bada[_0x5a53('0xc8')]&&(_0x53bada[_0x5a53('0xc8')]=this[_0x5a53('0xbe')]['getRevision'](_0x53bada['id'])[_0x5a53('0xc8')]);}const _0xcaed9e=this[_0x5a53('0x98')][_0x5a53('0xb4')][_0x5a53('0xc6')](_0x5a53('0xd0'));this[_0x5a53('0xcc')]=!0x0,this[_0x5a53('0xf1')](),this[_0x5a53('0xb0')][_0x5a53('0x2e')](_0x77176f,_0xcaed9e)[_0x5a53('0xbf')](()=>{this[_0x5a53('0xcc')]=!0x1;})[_0x5a53('0xa9')](_0x8d4211=>{if(_0x8d4211)for(const _0x59aa89 of _0x8d4211)this['setRevisionData']({'id':_0x59aa89['id'],'createdAt':_0x59aa89['createdAt']});this['_removePendingAction'](),this['sendBufferedUpdates']();});}[_0x5a53('0x81')](_0x3ae424,_0x205a69){let _0xcd931b=this[_0x5a53('0x98')][_0x5a53('0xb4')][_0x5a53('0xc6')]('initialData'),_0x110428=this['editor'][_0x5a53('0xb4')][_0x5a53('0xc6')]('rootsAttributes');if(void 0x0===_0xcd931b){_0xcd931b={};for(const _0x6a7c74 of this[_0x5a53('0x98')][_0x5a53('0x58')]['document'][_0x5a53('0xb6')]())_0xcd931b[_0x6a7c74]='';}if(_0x5a53('0xfd')==typeof _0xcd931b&&(_0xcd931b={'main':_0xcd931b}),void 0x0===_0x110428){_0x110428={};for(const _0x3faa20 of this[_0x5a53('0x98')][_0x5a53('0x58')][_0x5a53('0x55')]['getRootNames']())_0x110428[_0x3faa20]={};}let _0x4af3ec=!0x1;const _0x5c2e7d=Object[_0x5a53('0x94')](_0xcd931b),_0x2ae5f0=Object['keys'](_0x3ae424);for(const _0x1330d2 of _0x5c2e7d){if(_0xcd931b[_0x1330d2]!==_0x3ae424[_0x1330d2]&&''!==_0xcd931b[_0x1330d2]['trim']()){_0x4af3ec=!0x0;break;}if(!_0x18bf5f(_0x110428[_0x1330d2],_0x205a69[_0x1330d2])&&Object[_0x5a53('0x94')](_0x110428[_0x1330d2])[_0x5a53('0xf5')]>0x0){_0x4af3ec=!0x0;break;}}_0x4af3ec||(_0x4af3ec=_0x2ae5f0['some'](_0x35ab20=>!_0x5c2e7d[_0x5a53('0x3')](_0x35ab20))),_0x4af3ec&&_0x2c7363(_0x5a53('0x10e'),{'editorData':_0xcd931b,'editorRootsAttributes':_0x110428,'revisionData':_0x3ae424,'revisionRootsAttributes':_0x205a69}),this[_0x5a53('0x98')][_0x5a53('0xb4')]['set']('initialData',_0x3ae424),this[_0x5a53('0x98')][_0x5a53('0xb4')][_0x5a53('0x62')](_0x5a53('0x4'),_0x205a69);}[_0x5a53('0xf1')](){if(!this[_0x5a53('0x43')]){const _0x11bef5=this[_0x5a53('0x98')]['plugins']['get'](_0x5a53('0xe6'));this[_0x5a53('0x43')]=_0x11bef5['add'](_0x4dd2ee(this[_0x5a53('0x98')]['locale'],_0x5a53('0x9e')));}}[_0x5a53('0x7a')](){this[_0x5a53('0x43')]&&(this['editor'][_0x5a53('0xaa')][_0x5a53('0xc6')](_0x5a53('0xe6'))['remove'](this[_0x5a53('0x43')]),this[_0x5a53('0x43')]=null);}[_0x5a53('0x4c')](_0x32daca){const _0x44ecc6=this[_0x5a53('0xbe')]['getRevisions']();_0x44ecc6[_0x5a53('0xd5')]();let _0x28e8c0=0x0;for(;_0x28e8c0<_0x44ecc6[_0x5a53('0xf5')];){const _0x228851=_0x44ecc6[_0x28e8c0];if(_0x228851===this[_0x5a53('0x92')]){_0x28e8c0++;continue;}if(_0x228851['id']===this[_0x5a53('0x8d')])break;const _0x209600=_0x32daca[_0x5a53('0x5d')]-_0x228851[_0x5a53('0x5d')]||_0x32daca[_0x5a53('0xc8')]-_0x228851[_0x5a53('0xc8')];if(_0x209600>0x0)break;if(_0x209600<0x0)_0x28e8c0++;else{if(!_0x32daca[_0x5a53('0x10d')]&&_0x228851[_0x5a53('0x10d')])break;if(_0x228851[_0x5a53('0x10d')]||!_0x32daca[_0x5a53('0x10d')]){if(_0x32daca[_0x5a53('0x106')]>_0x228851[_0x5a53('0x106')])break;_0x28e8c0++;}else _0x28e8c0++;}}return _0x28e8c0;}[_0x5a53('0x22')](_0x1d4c31){const _0x2feb46=this['repository'][_0x5a53('0x71')](_0x1d4c31['id']);if(_0x1d4c31[_0x5a53('0x106')]&&(_0x1d4c31['createdAt']=new Date(_0x1d4c31[_0x5a53('0x106')])),_0x1d4c31[_0x5a53('0x109')]){const _0x26c5ad=this[_0x5a53('0x98')][_0x5a53('0xaa')]['get'](_0x5a53('0xa1'));_0x1d4c31[_0x5a53('0x36')]=_0x1d4c31['authorsIds'][_0x5a53('0x52')](_0x181ee1=>_0x26c5ad[_0x5a53('0x12')](_0x181ee1));}_0x2feb46[_0x5a53('0xfa')](_0x1d4c31,!0x0);}[_0x5a53('0xd3')]({revision:_0x5bc825=null,from:_0x4e79b2=null,to:_0x46d821=null}){_0x4e79b2=null!==_0x4e79b2?_0x4e79b2:_0x5bc825[_0x5a53('0xc8')],_0x46d821=null!==_0x46d821?_0x46d821:_0x5bc825['toVersion'];const _0x3e4ba9=this[_0x5a53('0x2b')][_0x5a53('0x60')](_0x4e79b2,_0x46d821),_0x1ec2e5={'diffData':_0x3e4ba9[_0x5a53('0x64')],'authorsIds':_0x3e4ba9['authorsIds'],'fromVersion':_0x4e79b2,'toVersion':_0x46d821};if(!_0x5bc825||_0x46d821!==_0x5bc825[_0x5a53('0x5d')]){const _0x41b809=_0x46d821-0x1,_0x2e8244=this[_0x5a53('0x105')][_0x5a53('0xdb')][_0x5a53('0xf7')](_0x41b809);_0x1ec2e5['createdAt']=_0x2e8244&&_0x2e8244['createdAt']||new Date();}if(this[_0x5a53('0x7d')]&&_0x4e79b2===this['_loadedStateData'][_0x5a53('0xc8')])for(const _0x350567 of this['_loadedStateData']['authors'])_0x1ec2e5[_0x5a53('0x109')]['includes'](_0x350567['id'])||_0x1ec2e5[_0x5a53('0x109')][_0x5a53('0x48')](_0x350567['id']);return _0x1ec2e5;}[_0x5a53('0x51')](_0xbac829){if(!_0xbac829||_0xbac829['diffData'])return Promise[_0x5a53('0xa7')]();{const _0x3dd04f=this[_0x5a53('0x98')]['config'][_0x5a53('0xc6')]('collaboration.channelId');return this['adapter'][_0x5a53('0x71')]({'channelId':_0x3dd04f,'revisionId':_0xbac829['id']})[_0x5a53('0xa9')](_0x3a978b=>{_0xbac829[_0x5a53('0x64')]=_0x3a978b[_0x5a53('0x64')];});}}['_bufferUpdate'](_0x1a4dcf,_0x35e9ce,_0x4cdf42){if(this['_bufferedUpdates']['has'](_0x1a4dcf)){const _0x297500=this[_0x5a53('0x9d')][_0x5a53('0xc6')](_0x1a4dcf);_0x35e9ce=_0x4cdf42?{..._0x297500,..._0x35e9ce}:{..._0x35e9ce,..._0x297500};}this['_bufferedUpdates'][_0x5a53('0x62')](_0x1a4dcf,_0x35e9ce);}['_getFromVersion'](_0x5319ea){const _0xb95ae8=this[_0x5a53('0xbe')][_0x5a53('0x6c')]();_0xb95ae8[_0x5a53('0xd5')](),_0xb95ae8[_0x5a53('0x50')]();const _0x12344e=_0xb95ae8[_0x5a53('0x2c')](_0x4dc7c0=>_0x4dc7c0[_0x5a53('0x5d')]<=_0x5319ea)[_0x5a53('0x5d')];return _0x12344e<this[_0x5a53('0xcf')]?this['_startingVersion']:_0x12344e;}[_0x5a53('0x47')](_0x3d2feb){const _0x164562=this[_0x5a53('0xbe')][_0x5a53('0x71')](this[_0x5a53('0xbe')]['length']-0x1);if(_0x164562)this[_0x5a53('0x8d')]=_0x164562['id'];else{const _0x56d4e6=!this['editor'][_0x5a53('0x58')]['document'][_0x5a53('0xd')][_0x5a53('0x2c')](_0x4e8183=>this[_0x5a53('0x98')][_0x5a53('0x58')][_0x5a53('0x89')](_0x4e8183)),_0x186f10=this[_0x5a53('0x98')][_0x5a53('0xaa')][_0x5a53('0xc6')](_0x5a53('0xa1'))['me']['id'],_0x8d414d=_0x4dd2ee(this[_0x5a53('0x98')][_0x5a53('0xa3')],_0x56d4e6?_0x5a53('0x6e'):'Initial\x20revision');this['_makeRevision']({'from':_0x3d2feb,'to':_0x3d2feb,'id':this[_0x5a53('0x8d')],'name':_0x8d414d,'creatorId':_0x186f10});}}[_0x5a53('0xab')](_0x27c574){const _0x432a07=this[_0x5a53('0x105')][_0x5a53('0x46')]();this[_0x5a53('0x92')]=this['repository']['getRevision'](_0x432a07),this['currentRevision']||(this[_0x5a53('0x92')]=this['_makeRevision']({'from':_0x27c574,'to':_0x27c574,'id':_0x432a07,'name':'','creatorId':null}));}[_0x5a53('0x3d')]({name:_0x5e46d4,from:_0x3f607e,to:_0x4d94c8,creatorId:_0xcc3a28,id:_0x552c1f}){const _0x8d472=this[_0x5a53('0xd3')]({'from':_0x3f607e,'to':_0x4d94c8});_0x8d472[_0x5a53('0x90')]=_0x5e46d4,_0x8d472[_0x5a53('0xec')]=_0xcc3a28,_0x8d472['id']=_0x552c1f;const _0x356d95=this[_0x5a53('0x86')](_0x8d472);return this[_0x5a53('0xb0')]&&this['_bufferUpdate'](_0x8d472['id'],_0x8d472,!0x0),_0x356d95;}[_0x5a53('0xe5')](){this[_0x5a53('0x98')][_0x5a53('0x1b')][_0x5a53('0x10c')](_0x5a53('0x63'))[_0x5a53('0xc5')]({'model':'revision'});}[_0x5a53('0xa2')](_0x3187f3){return(_0x3187f3=_0x3187f3[_0x5a53('0x13')](_0x4188c8=>!_0x4188c8[_0x5a53('0x90')]||_0x5a53('0x102')!==_0x4188c8[_0x5a53('0x90')]&&_0x5a53('0x42')!==_0x4188c8[_0x5a53('0x90')]))['forEach'](_0x55a363=>{_0x5a53('0xfd')!=typeof _0x55a363&&(_0x55a363[_0x5a53('0x3e')]=this['_removeRevisionMarkers'](_0x55a363['children']),_0x55a363['attributes']=_0x55a363[_0x5a53('0x39')][_0x5a53('0x13')](_0x42b11a=>!_0x42b11a[0x0]['startsWith'](_0x5a53('0x3c'))));}),_0x3187f3;}}function T(_0xd5efa6,_0x2c9df6){const _0x24cc45=_0x2c9df6[_0x5a53('0x37')][_0x5a53('0xd1')][_0x5a53('0x55')];if(_0x5a53('0xfd')==typeof _0xd5efa6)return new _0x10bbbb(_0x24cc45,_0xd5efa6);{const _0x1476dc=_0xd5efa6['children'][_0x5a53('0x52')](_0x2aa1dd=>T(_0x2aa1dd,_0x2c9df6));return new(F[_0xd5efa6[(_0x5a53('0xd7'))]]||_0x11423a)(_0x24cc45,_0xd5efa6['name'],_0xd5efa6[_0x5a53('0x39')],_0x1476dc);}}class B{constructor(_0x419878){this['editor']=_0x419878,this['_savedMetaData']=new Map(),this[_0x5a53('0xd8')]=-0x1,this[_0x5a53('0xb5')]=-0x1,this[_0x5a53('0x8e')]=new Map(),this[_0x5a53('0xe4')]=new Map(),this[_0x5a53('0x4d')]=new Map(),this[_0x5a53('0x56')]=new Map(),this[_0x5a53('0xb')]=new Map(),this['_idsRoots']=new Map(),this[_0x5a53('0x6d')]=new Map(),this['_touched']=new Map(),this[_0x5a53('0x79')]=new Map(),this[_0x5a53('0x20')]=new Map(),this[_0x5a53('0x9a')]=0x1,this['_initialRoots']=this[_0x5a53('0x98')][_0x5a53('0x58')][_0x5a53('0x55')][_0x5a53('0xb6')](),this[_0x5a53('0x41')]['push'](_0x5a53('0xfb'));}[_0x5a53('0xa0')](_0x3890b0){this[_0x5a53('0x68')]=_0x3890b0;const _0x4e5698=new Map(),_0x266df2=new Map(),_0x379873=this[_0x5a53('0x98')][_0x5a53('0x58')][_0x5a53('0x55')][_0x5a53('0xb6')](!0x0);_0x379873[_0x5a53('0x48')](_0x5a53('0xfb'));for(const _0x270761 of _0x379873){const _0xa5151=this['editor']['model']['document'][_0x5a53('0xbd')](_0x270761),_0xa9fa36=J(_0xa5151);_0x4e5698[_0x5a53('0x62')](_0x270761,_0xa9fa36),_0x266df2[_0x5a53('0x62')](_0x270761,Object[_0x5a53('0xcb')](_0xa5151['getAttributes']()));}const _0x4972b8=Array[_0x5a53('0x29')](this[_0x5a53('0x98')][_0x5a53('0x58')][_0x5a53('0x4b')])[_0x5a53('0x52')](_0x57dce6=>[_0x57dce6[_0x5a53('0x90')],_0x57dce6[_0x5a53('0xe3')]()]),_0x26bc1c=this[_0x5a53('0x68')][_0x5a53('0xd2')];this[_0x5a53('0x1c')](_0x26bc1c,_0x4e5698,_0x4972b8,_0x266df2),this['_startingRevisionId']=this[_0x5a53('0x9a')];const _0x451a62=new Map(),_0x50c3a1=new Map();for(const _0x5c9c71 of this[_0x5a53('0x41')]){const _0x774c83=H(_0x5c9c71);_0x451a62['set'](_0x5c9c71,_0x774c83),_0x50c3a1['set'](_0x5c9c71,{});}this[_0x5a53('0x1c')](Number[_0x5a53('0xf3')],_0x451a62,[],_0x50c3a1);}['getData'](_0x1d088a,_0x3ae9fe){if(this[_0x5a53('0xd8')]===_0x1d088a&&this['_lastTo']<=_0x3ae9fe)this[_0x5a53('0x59')][_0x5a53('0x75')]>0x1&&this[_0x5a53('0x101')](this['_lastTo']),this[_0x5a53('0x1')](this[_0x5a53('0xb5')],_0x3ae9fe,!0x0);else{if(!this[_0x5a53('0x59')][_0x5a53('0x9f')](_0x1d088a)){const _0x2f9f18=this['_getPreviousFrom'](_0x1d088a);this['_calculateMetaData'](_0x2f9f18,_0x1d088a,!0x1);}this[_0x5a53('0x9b')](_0x1d088a,_0x3ae9fe,!0x0);}return this[_0x5a53('0xd8')]=_0x1d088a,this[_0x5a53('0xb5')]=_0x3ae9fe,this[_0x5a53('0x38')]();}[_0x5a53('0x104')](_0xf13801){this[_0x5a53('0x97')](),this[_0x5a53('0xd8')]=_0xf13801[_0x5a53('0xc8')],this[_0x5a53('0xb5')]=_0xf13801[_0x5a53('0x5d')];for(const _0x41ff63 in _0xf13801['diffData']){const _0x4362d9=_0xf13801[_0x5a53('0x64')][_0x41ff63][_0x5a53('0xa4')],_0x36c0bb=_0x108074(_0xf13801['diffData'][_0x41ff63][_0x5a53('0xea')])||{},_0x283972=this[_0x5a53('0x1d')](_0xf13801['diffData'][_0x41ff63][_0x5a53('0xcd')]);_0x283972[_0x5a53('0xee')]=_0x41ff63,_0x283972[_0x5a53('0x35')]=!_0x4362d9||!_0x4362d9[_0x5a53('0xf8')],_0x283972[_0x5a53('0xf8')]=()=>_0x283972[_0x5a53('0x35')],this['_baseRoots'][_0x5a53('0x62')](_0x41ff63,_0x283972),this['_baseRootsAttributes'][_0x5a53('0x62')](_0x41ff63,_0x36c0bb),_0x4362d9&&this[_0x5a53('0x20')][_0x5a53('0x62')](_0x41ff63,_0x4362d9);const _0x164565=this[_0x5a53('0x7')](_0x283972);this['_baseIdsRoots']['set'](_0x41ff63,_0x164565);for(const [_0x2d644e,_0x5c48f9]of _0x283972[_0x5a53('0x4b')]){if(!_0x2d644e[_0x5a53('0x17')](_0x5a53('0xaf')))continue;const _0xbb39b=_0x2d644e[_0x5a53('0xf0')](':')[0x2];for(const _0x31a28b of _0x5c48f9[_0x5a53('0x25')]({'singleCharacters':!0x0})){const _0x27afbb=this[_0x5a53('0x10b')](_0x31a28b),_0x3130a5=_0x5a53('0xdf')==_0x31a28b[_0x5a53('0xd7')]?_0x31a28b[_0x5a53('0x4f')][_0x5a53('0x88')]['slice'](0x0,-0x1):_0x31a28b['previousPosition'][_0x5a53('0x88')],_0x4e2257=_0x164565[_0x5a53('0xc9')](_0x3130a5)['getAttribute'](_0x27afbb);this['_touched']['set'](_0x4e2257,{'userId':_0xbb39b});}}}this[_0x5a53('0x7c')]=this[_0x5a53('0x9a')];const _0x2bedee=[...Array(this[_0x5a53('0x9a')])[_0x5a53('0x94')]()][_0x5a53('0x69')](0x1)['filter'](_0x1e3152=>!this[_0x5a53('0x31')][_0x5a53('0x9f')](_0x1e3152));let _0x3f26c5=0x0;const _0x218ff4=new Map();for(const _0x2a375a in _0xf13801['diffData']){const _0x13a136=_0xf13801[_0x5a53('0x64')][_0x2a375a][_0x5a53('0xa4')],_0x4e7c6e=_0x108074(_0xf13801['diffData'][_0x2a375a][_0x5a53('0xac')])||{},_0x99fe69=this[_0x5a53('0x1d')](_0xf13801['diffData'][_0x2a375a][_0x5a53('0x66')]);_0x99fe69[_0x5a53('0xee')]=_0x2a375a,_0x99fe69['_isAttached']=!_0x13a136||_0x13a136[_0x5a53('0xf8')],_0x99fe69[_0x5a53('0xf8')]=()=>_0x99fe69[_0x5a53('0x35')],this[_0x5a53('0xe4')][_0x5a53('0x62')](_0x2a375a,_0x99fe69),this[_0x5a53('0x4d')][_0x5a53('0x62')](_0x2a375a,_0x4e7c6e);const _0x26edc6=this[_0x5a53('0x7')](_0x99fe69,Number[_0x5a53('0xf3')]);this[_0x5a53('0xc4')][_0x5a53('0x62')](_0x2a375a,_0x26edc6),_0x218ff4[_0x5a53('0x62')](_0x2a375a,_0x99fe69[_0x5a53('0xf8')]()?_0x4e7c6e:{});for(const [_0x1eefa6,_0x2cb8f9]of _0x99fe69[_0x5a53('0x4b')]){if(!_0x1eefa6[_0x5a53('0x17')]('revision:'))continue;const _0x25396a=_0x1eefa6[_0x5a53('0xf0')](':')[0x2];for(const _0x4b169f of _0x2cb8f9[_0x5a53('0x25')]({'singleCharacters':!0x0})){const _0x1372da=this[_0x5a53('0x10b')](_0x4b169f),_0x20e537=this[_0x5a53('0x9a')]++,_0x23be76=_0x5a53('0xdf')==_0x4b169f[_0x5a53('0xd7')]?_0x4b169f['previousPosition']['path']['slice'](0x0,-0x1):_0x4b169f['previousPosition'][_0x5a53('0x88')];_0x26edc6[_0x5a53('0xc9')](_0x23be76)[_0x5a53('0x1e')](_0x1372da,_0x20e537),this['_touched'][_0x5a53('0x62')](_0x20e537,{'userId':_0x25396a});}}for(const _0x3fe8f0 of this[_0x5a53('0x98')]['model']['createRangeIn'](_0x99fe69)[_0x5a53('0x25')]({'singleCharacters':!0x0})){const _0x3f1d1d=this[_0x5a53('0x10b')](_0x3fe8f0),_0x3165fa='elementEnd'==_0x3fe8f0[_0x5a53('0xd7')]?_0x3fe8f0[_0x5a53('0x4f')][_0x5a53('0x88')][_0x5a53('0x69')](0x0,-0x1):_0x3fe8f0[_0x5a53('0x4f')][_0x5a53('0x88')],_0x23157f=_0x26edc6[_0x5a53('0xc9')](_0x3165fa);_0x23157f[_0x5a53('0x19')](_0x3f1d1d)>0x0||_0x23157f[_0x5a53('0x1e')](_0x3f1d1d,_0x2bedee[_0x3f26c5++]);}for(const [_0x13bcf4,_0x50bf72]of _0x99fe69[_0x5a53('0x4b')])_0x13bcf4[_0x5a53('0x17')](_0x5a53('0xaf'))||this['_markers'][_0x5a53('0x62')](_0x13bcf4,_0x50bf72);}const _0x529606=H(_0x5a53('0xfb'));this[_0x5a53('0x56')][_0x5a53('0x62')]('$graveyard',_0x529606),this[_0x5a53('0x6d')][_0x5a53('0x62')]('$graveyard',this[_0x5a53('0x7')](_0x529606,0x1));const _0x241bef=H(_0x5a53('0xfb'));this[_0x5a53('0xe4')][_0x5a53('0x62')]('$graveyard',_0x241bef),this[_0x5a53('0xc4')]['set'](_0x5a53('0xfb'),this[_0x5a53('0x7')](_0x241bef,0x1));const _0x4307c6=Array['from'](this[_0x5a53('0xe4')])[_0x5a53('0x52')](([_0x55ea2c,_0x5a9bdf])=>[_0x55ea2c,J(_0x5a9bdf)]);this['_saveMetaData'](this['_lastTo'],_0x4307c6,this['_markers'],_0x218ff4);}[_0x5a53('0x1d')](_0x21a606){const _0x412779=JSON['parse'](_0x21a606),_0x2fcc72=this[_0x5a53('0x98')][_0x5a53('0x37')][_0x5a53('0xd1')][_0x5a53('0x55')],_0x14fd66=new _0x25fca0(_0x2fcc72,_0x412779[_0x5a53('0x52')](_0x3a70c3=>T(_0x3a70c3,this[_0x5a53('0x98')])));return this['editor']['data'][_0x5a53('0x9')](_0x14fd66);}[_0x5a53('0x1c')](_0x3d4b8f,_0x390b0e,_0x47e927,_0x381362){const _0x3811a4=new Map(_0x390b0e),_0x3d4c87=new Map(_0x108074(_0x381362)),_0x30ea3f=new Map();for(const [_0x44cea0,_0x307bae]of _0x47e927)_0x30ea3f[_0x5a53('0x62')](_0x44cea0,{'start':_0x307bae[_0x5a53('0x24')][_0x5a53('0xe9')](),'end':_0x307bae[_0x5a53('0xd9')][_0x5a53('0xe9')](),'rootName':_0x307bae['root'][_0x5a53('0xee')]});this[_0x5a53('0x59')][_0x5a53('0x62')](_0x3d4b8f,{'roots':_0x3811a4,'markers':_0x30ea3f,'rootsAttributes':_0x3d4c87});}['_removeMetaData'](_0x1742d6){this[_0x5a53('0x59')]['delete'](_0x1742d6);}[_0x5a53('0x72')](){this[_0x5a53('0x97')](),this[_0x5a53('0xd8')]=-0x1,this[_0x5a53('0xb5')]=-0x1,this[_0x5a53('0x59')][_0x5a53('0x23')](),this['init'](this[_0x5a53('0x68')]);}['_reset'](){this[_0x5a53('0x31')][_0x5a53('0x23')](),this[_0x5a53('0x79')][_0x5a53('0x23')](),this[_0x5a53('0x20')][_0x5a53('0x23')](),this['_diffRoots'][_0x5a53('0x23')](),this['_diffRootsAttributes'][_0x5a53('0x23')](),this['_baseRoots'][_0x5a53('0x23')](),this[_0x5a53('0xb')][_0x5a53('0x23')](),this['_idsRoots'][_0x5a53('0x23')](),this[_0x5a53('0x6d')]['clear'](),this[_0x5a53('0x8e')][_0x5a53('0x23')](),this[_0x5a53('0x9a')]=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x34ede0,_0x562e0d=null){let _0x51789f=null;_0x34ede0['is'](_0x5a53('0x4e'))||(_0x51789f=new _0x4097d0(_0x34ede0['name'],{'vid_start':null===_0x562e0d?this[_0x5a53('0x9a')]++:_0x562e0d++}));const _0x5afc13=[];for(const _0x2bfe4f of _0x34ede0[_0x5a53('0x54')]())if(_0x2bfe4f['is'](_0x5a53('0x99'))){_0x5afc13[_0x5a53('0x48')](this['_makeIdsRoot'](_0x2bfe4f,_0x562e0d));const _0x54cfd3=_0x5afc13[_0x5afc13[_0x5a53('0xf5')]-0x1];null!==_0x562e0d&&(_0x562e0d=_0x54cfd3['is'](_0x5a53('0x99'),'$text')?_0x54cfd3[_0x5a53('0x19')](_0x5a53('0x77'))+0x1:_0x54cfd3[_0x5a53('0x19')](_0x5a53('0x30'))+0x1);}else for(let _0xe8a1ac=0x0;_0xe8a1ac<_0x2bfe4f[_0x5a53('0xa')];_0xe8a1ac++)_0x5afc13[_0x5a53('0x48')](new _0x4097d0('$text',{'vid':null===_0x562e0d?this[_0x5a53('0x9a')]++:_0x562e0d++}));if(_0x34ede0['is']('documentFragment')){const _0x3ac009=H(_0x34ede0[_0x5a53('0xee')]);return _0x3ac009[_0x5a53('0x34')](0x0,_0x5afc13),_0x3ac009;}return _0x51789f['_setAttribute'](_0x5a53('0x30'),null===_0x562e0d?this[_0x5a53('0x9a')]++:_0x562e0d++),_0x51789f[_0x5a53('0x34')](0x0,_0x5afc13),_0x51789f;}[_0x5a53('0x9b')](_0x1c0e5f,_0x24e536,_0x258c89){this[_0x5a53('0x97')]();const {roots:_0x43e03c,markers:_0x4a5747,rootsAttributes:_0x25fbdc}=this[_0x5a53('0x59')]['get'](_0x1c0e5f);this[_0x5a53('0x56')]=new Map(_0x43e03c),this['_baseRootsAttributes']=new Map(_0x108074(_0x25fbdc));for(const [_0x297c38,_0x284a27]of this[_0x5a53('0x56')])if(_0x5a53('0xfb')!==_0x297c38&&(this[_0x5a53('0xe4')][_0x5a53('0x62')](_0x297c38,J(_0x284a27)),this[_0x5a53('0x4d')]=new Map(_0x108074(_0x25fbdc)),_0x258c89)){const _0x115141=this[_0x5a53('0x9a')];this[_0x5a53('0xc4')][_0x5a53('0x62')](_0x297c38,this['_makeIdsRoot'](_0x284a27)),this[_0x5a53('0x6d')][_0x5a53('0x62')](_0x297c38,this['_makeIdsRoot'](_0x284a27,_0x115141));}this[_0x5a53('0x7c')]=this[_0x5a53('0x9a')],this[_0x5a53('0xe4')]['set'](_0x5a53('0xfb'),J(this[_0x5a53('0x56')][_0x5a53('0xc6')](_0x5a53('0xfb')))),_0x258c89&&this[_0x5a53('0xc4')][_0x5a53('0x62')](_0x5a53('0xfb'),this['_makeIdsRoot'](this[_0x5a53('0x56')][_0x5a53('0xc6')](_0x5a53('0xfb'))));for(const [_0x3a68c9,_0x2e7e55]of _0x4a5747){const _0xe19bed=this[_0x5a53('0x56')][_0x5a53('0xc6')](_0x2e7e55['rootName']),_0x25af4b=this['_diffRoots'][_0x5a53('0xc6')](_0x2e7e55['rootName']),_0x11356e=new _0x57df39(this[_0x5a53('0x100')](_0x2e7e55['start'],_0xe19bed),this[_0x5a53('0x100')](_0x2e7e55['end'],_0xe19bed)),_0x381476=this['_fixRange'](_0x11356e,_0x25af4b);_0xe19bed[_0x5a53('0x4b')][_0x5a53('0x62')](_0x3a68c9,_0x11356e),this['_markers']['set'](_0x3a68c9,_0x381476);}this[_0x5a53('0x1')](_0x1c0e5f,_0x24e536,_0x258c89);}['_applyOperations'](_0x4ca280,_0x5b4289,_0x5de0d1){for(const _0x200e94 of this[_0x5a53('0x68')][_0x5a53('0x87')](_0x4ca280,_0x5b4289))this[_0x5a53('0xc3')](_0x200e94,_0x5de0d1);for(const _0x49c1fe of this[_0x5a53('0xe4')][_0x5a53('0xbc')]())_0x49c1fe[_0x5a53('0x4b')]['clear']();for(const [_0x25b908,_0x524578]of this[_0x5a53('0x8e')]){this['_diffRoots'][_0x5a53('0xc6')](_0x524578['root'][_0x5a53('0xee')])['markers'][_0x5a53('0x62')](_0x25b908,_0x524578[_0x5a53('0xe9')]());}const _0x4dc4c3=new Map(),_0x42a615=new Map();for(const [_0x58e7f4,_0x1cdc4b]of this['_diffRoots'])_0x4dc4c3[_0x5a53('0x62')](_0x58e7f4,J(_0x1cdc4b)),_0x42a615[_0x5a53('0x62')](_0x58e7f4,this[_0x5a53('0x4d')][_0x5a53('0xc6')](_0x58e7f4));this[_0x5a53('0x1c')](_0x5b4289,_0x4dc4c3,this['_markers'],_0x42a615);}['_getPreviousFrom'](_0x1ac591){const _0x57bf11=Array[_0x5a53('0x29')](this['_savedMetaData'][_0x5a53('0x94')]());_0x57bf11[_0x5a53('0x103')]((_0x33d5d3,_0x288537)=>_0x33d5d3-_0x288537),_0x57bf11[_0x5a53('0xd5')]();for(const _0x36d24d of _0x57bf11)if(_0x36d24d<_0x1ac591)return _0x36d24d;return Number[_0x5a53('0xf3')];}[_0x5a53('0xe7')](_0x1d25c0,_0x42af3e){const _0x3f0964=Array[_0x5a53('0x29')](_0x42af3e[_0x5a53('0x4b')])[_0x5a53('0x52')](([_0x524963,_0x285227])=>[_0x524963,this[_0x5a53('0xa6')](_0x285227,_0x1d25c0)]);_0x1d25c0[_0x5a53('0x4b')]=new Map(_0x3f0964);}[_0x5a53('0x2f')](_0x1cc729){for(const _0x5cee24 of this['_markers'][_0x5a53('0xbc')]()){const _0x2af14e=_0x5cee24[_0x5a53('0xae')](_0x1cc729),_0x28106f=_0x57df39[_0x5a53('0xad')](_0x2af14e);_0x5cee24[_0x5a53('0x24')]=_0x28106f[_0x5a53('0x24')],_0x5cee24[_0x5a53('0xd9')]=_0x28106f[_0x5a53('0xd9')];}}[_0x5a53('0xc3')](_0x116b91,_0x1e73b5){if(_0x5a53('0xf6')==_0x116b91['type']||_0x5a53('0x28')==_0x116b91['type'])return void this[_0x5a53('0xba')](_0x116b91,_0x1e73b5);if(_0x5a53('0x3b')==_0x116b91[_0x5a53('0xd7')]){const _0x3b840f=_0x116b91[_0x5a53('0x1a')][_0x5a53('0x6a')][_0x5a53('0xee')];this['_diffRoots'][_0x5a53('0x9f')](_0x3b840f)||(this[_0x5a53('0xe4')][_0x5a53('0x62')](_0x3b840f,H(_0x3b840f,!0x0)),this[_0x5a53('0x4d')][_0x5a53('0x62')](_0x3b840f,{}),_0x1e73b5&&this[_0x5a53('0xc4')]['set'](_0x3b840f,H(_0x3b840f,!0x0)));}if(_0x5a53('0xed')==_0x116b91['type']||'removeRootAttribute'==_0x116b91[_0x5a53('0xd7')]||_0x5a53('0x6b')==_0x116b91[_0x5a53('0xd7')])return void this[_0x5a53('0x73')](_0x116b91);const _0x4645b1=this[_0x5a53('0xf2')](_0x116b91,this[_0x5a53('0xe4')]);if(_0x5a53('0xdd')!==_0x116b91[_0x5a53('0xd7')]&&(_0x4645b1[_0x5a53('0x11')](),this[_0x5a53('0x2f')](_0x4645b1)),_0x1e73b5)switch(_0x4645b1[_0x5a53('0xd7')]){case _0x5a53('0x3b'):this[_0x5a53('0x10a')](_0x116b91);break;case _0x5a53('0x80'):case _0x5a53('0xe'):case _0x5a53('0x15'):this[_0x5a53('0x84')](_0x116b91);break;case _0x5a53('0xfe'):this[_0x5a53('0x93')](_0x116b91);break;case _0x5a53('0xf0'):this[_0x5a53('0xeb')](_0x116b91);break;case _0x5a53('0xdd'):this['_handleMarkerOperation'](_0x116b91);}}[_0x5a53('0xf2')](_0x2fc9c4,_0x5f8d49){const _0x4eacc5=_0x2fc9c4[_0x5a53('0xe9')]();return _0x4eacc5[_0x5a53('0xff')]=_0x2fc9c4['_authorId'],this[_0x5a53('0x8a')](_0x4eacc5,_0x5f8d49),_0x4eacc5;}[_0x5a53('0x0')](_0x8cd5e2){return _0x8cd5e2[_0x5a53('0x52')](_0x25b489=>{const _0x649b36=this['_getVidAttributeName'](_0x25b489);return Number(_0x25b489[_0x5a53('0xc1')]['getAttribute'](_0x649b36));});}[_0x5a53('0xf9')](_0x393258,_0x480870){if(_0x393258['is'](_0x5a53('0x99'),_0x5a53('0xb7')))_0x480870[_0x5a53('0x48')]({'item':_0x393258,'type':_0x5a53('0x78')});else{_0x393258['is'](_0x5a53('0x99'))&&_0x480870['push']({'item':_0x393258,'type':'elementStart'});for(const _0x3c1142 of _0x393258[_0x5a53('0x54')]())this['_generateTape'](_0x3c1142,_0x480870);_0x393258['is'](_0x5a53('0x99'))&&_0x480870[_0x5a53('0x48')]({'item':_0x393258,'type':_0x5a53('0xdf')});}return _0x480870;}[_0x5a53('0x38')](){const _0x2eff28=new Map(this[_0x5a53('0x31')]),_0x236eea=new Map(_0x2eff28),_0x6c7240=new Map(),_0x10393a={'insertions':{},'deletions':{}},_0x2ff58e={'insertions':{},'deletions':{}},_0x2fbbbc=new Map(),_0x452ce7=new Set([...this[_0x5a53('0x56')][_0x5a53('0x94')](),...this['_diffRoots'][_0x5a53('0x94')]()]);_0x452ce7[_0x5a53('0xe8')](_0x5a53('0xfb'));for(const _0x5008e9 of _0x452ce7){const _0x1f4111=this[_0x5a53('0xe4')]['get'](_0x5008e9)||H(_0x5008e9,!0x1),_0x1163a4=this[_0x5a53('0x56')]['get'](_0x5008e9)||H(_0x5008e9,!0x1);_0x1f4111[_0x5a53('0xf8')]()||_0x1163a4[_0x5a53('0xf8')]()?(_0x10393a[_0x5a53('0x66')][_0x5008e9]=J(_0x1f4111),_0x10393a[_0x5a53('0xcd')][_0x5008e9]=J(_0x1163a4),this['_copyMarkers'](_0x10393a[_0x5a53('0xcd')][_0x5008e9],_0x1163a4),this[_0x5a53('0xe7')](_0x10393a[_0x5a53('0x66')][_0x5008e9],_0x1f4111),_0x2ff58e[_0x5a53('0x66')][_0x5008e9]=this[_0x5a53('0xf9')](this[_0x5a53('0xc4')][_0x5a53('0xc6')](_0x5008e9),[]),_0x2ff58e[_0x5a53('0xcd')][_0x5008e9]=this[_0x5a53('0xf9')](this[_0x5a53('0x6d')][_0x5a53('0xc6')](_0x5008e9)||H(_0x5008e9,!0x1),[])):_0x452ce7['delete'](_0x5008e9);}for(const _0x5ab8fa of _0x452ce7){const _0x373009=_0x2ff58e[_0x5a53('0x66')][_0x5ab8fa];for(const _0x2b1ac3 of _0x373009){const _0x440719=this[_0x5a53('0x10b')](_0x2b1ac3),_0x2b8624=_0x2b1ac3[_0x5a53('0xc1')][_0x5a53('0x19')](_0x440719);_0x236eea[_0x5a53('0xe8')](_0x2b8624),_0x2b8624>=this[_0x5a53('0x7c')]&&_0x6c7240['set'](_0x2b8624,_0x2eff28[_0x5a53('0xc6')](_0x2b8624));}}for(const _0x4439ab of _0x452ce7){const _0x4c1ca6=_0x2ff58e[_0x5a53('0x66')][_0x4439ab],_0x28c420=this[_0x5a53('0x0')](_0x2ff58e[_0x5a53('0xcd')][_0x4439ab]);let _0x4ad667=0x0;for(const _0x557a4a of _0x4c1ca6){const _0x8c2046=this[_0x5a53('0x10b')](_0x557a4a),_0x45915e=_0x557a4a['item'][_0x5a53('0x19')](_0x8c2046);if(!_0x6c7240['has'](_0x45915e)&&!_0x2fbbbc[_0x5a53('0x9f')](_0x45915e)){if(_0x236eea['has'](_0x45915e))_0x4ad667++;else{if(_0x45915e!=_0x28c420[_0x4ad667]){const _0x186187=_0x2eff28[_0x5a53('0xc6')](_0x45915e)||_0x2eff28[_0x5a53('0xc6')](_0x28c420[_0x4ad667]);for(;_0x45915e!=_0x28c420[_0x4ad667];)_0x236eea[_0x5a53('0x9f')](_0x28c420[_0x4ad667])||(_0x2fbbbc[_0x5a53('0x62')](_0x28c420[_0x4ad667],_0x186187),_0x2eff28['set'](_0x28c420[_0x4ad667],_0x186187)),_0x4ad667++;}_0x4ad667++;}}}}for(const _0xcbb73e of _0x452ce7){const _0xd32bad=_0x2ff58e[_0x5a53('0x66')][_0xcbb73e];for(const _0x2fec30 of _0xd32bad){const _0x4c3764=this['_getVidAttributeName'](_0x2fec30),_0x13fdc3=_0x2fec30[_0x5a53('0xc1')]['getAttribute'](_0x4c3764);if(_0x2fbbbc['has'](_0x13fdc3)){const _0x5e674e=_0x2fbbbc[_0x5a53('0xc6')](_0x13fdc3);_0x236eea[_0x5a53('0x9f')](_0x13fdc3)||_0x236eea[_0x5a53('0x62')](_0x13fdc3,{..._0x5e674e}),_0x6c7240[_0x5a53('0x62')](_0x13fdc3,{..._0x5e674e});}}}for(const _0x549301 of _0x236eea['keys']())_0x549301>=this['_startingRevisionId']&&_0x236eea[_0x5a53('0xe8')](_0x549301);const _0x1426ef=new Map();for(const _0x1e3818 of _0x452ce7){let _0x2b6cfb=_0x2ff58e['insertions'][_0x1e3818];for(const _0x311f75 of _0x2b6cfb)if(_0x311f75[_0x5a53('0xc1')]['is']('element',_0x5a53('0x3f'))){const _0x20819d=this[_0x5a53('0x10b')](_0x311f75),_0x52cc1b=_0x311f75['item'][_0x5a53('0x19')](_0x20819d);if(_0x6c7240[_0x5a53('0x9f')](_0x52cc1b)){const _0x4e4170=_0x311f75[_0x5a53('0xc1')]['parent']['parent']['getAttribute']('vid_start'),_0x359f7f=_0x1426ef[_0x5a53('0xc6')](_0x4e4170)||new Set();_0x359f7f[_0x5a53('0x5f')](_0x6c7240[_0x5a53('0xc6')](_0x52cc1b)[_0x5a53('0x49')]),_0x1426ef[_0x5a53('0x62')](_0x4e4170,_0x359f7f);}}_0x2b6cfb=_0x2ff58e[_0x5a53('0xcd')][_0x1e3818];for(const _0x45dd44 of _0x2b6cfb)if(_0x45dd44['item']['is']('element',_0x5a53('0x3f'))){const _0x2a3f30=this[_0x5a53('0x10b')](_0x45dd44),_0x5568c6=_0x45dd44[_0x5a53('0xc1')][_0x5a53('0x19')](_0x2a3f30);if(_0x236eea[_0x5a53('0x9f')](_0x5568c6)){const _0x52ad29=_0x45dd44[_0x5a53('0xc1')][_0x5a53('0x107')][_0x5a53('0x107')][_0x5a53('0x19')](_0x5a53('0x61')),_0x286a8e=_0x1426ef['get'](_0x52ad29)||new Set();_0x286a8e[_0x5a53('0x5f')](_0x236eea[_0x5a53('0xc6')](_0x5568c6)[_0x5a53('0x49')]),_0x1426ef[_0x5a53('0x62')](_0x52ad29,_0x286a8e);}}for(const _0x7a911d of _0x1426ef[_0x5a53('0x94')]())(_0x6c7240[_0x5a53('0x9f')](_0x7a911d)||_0x236eea['has'](_0x7a911d))&&_0x1426ef['delete'](_0x7a911d);}for(const _0x8351f9 of _0x452ce7){const _0x1829f1=_0x2ff58e['insertions'][_0x8351f9];let _0x413c34=null,_0x41bc7f=null;for(const _0x4fdf75 of _0x1829f1){const _0x50b38b=this[_0x5a53('0x10b')](_0x4fdf75),_0x2c6912=_0x4fdf75[_0x5a53('0xc1')][_0x5a53('0x19')](_0x50b38b),_0x757f72=_0x1426ef[_0x5a53('0xc6')](_0x2c6912);_0x757f72&&_0x5a53('0xa8')==_0x4fdf75[_0x5a53('0xd7')]&&(_0x413c34=Array['from'](_0x757f72)[0x0],_0x41bc7f=_0x4fdf75[_0x5a53('0xc1')][_0x5a53('0x19')]('vid_end')),_0x413c34&&(_0x236eea[_0x5a53('0x62')](_0x2c6912,{'userId':_0x413c34}),_0x6c7240[_0x5a53('0x62')](_0x2c6912,{'userId':_0x413c34})),_0x2c6912==_0x41bc7f&&(_0x413c34=null,_0x41bc7f=null);}}const _0x10f2dd={},_0x35da6f=new Set();for(const _0x104289 of _0x452ce7){const _0x4e65e6=_0x10393a['deletions'][_0x104289],_0x2e70f8=_0x10393a['insertions'][_0x104289];for(const {userId:_0x499884}of this['_touchedMarkers'][_0x5a53('0xbc')]())null!==_0x499884&&_0x35da6f[_0x5a53('0x5f')](_0x499884);for(const {userId:_0x3f4097}of this['_touchedRoots']['values']())null!==_0x3f4097&&_0x35da6f[_0x5a53('0x5f')](_0x3f4097);this[_0x5a53('0xb1')](_0x2e70f8,_0x2ff58e[_0x5a53('0x66')][_0x104289],_0x6c7240,_0x5a53('0xf4'),_0x35da6f),this['_markChanges'](_0x4e65e6,_0x2ff58e[_0x5a53('0xcd')][_0x104289],_0x236eea,_0x5a53('0x70'),_0x35da6f),_0x10f2dd[_0x104289]={'insertions':this['_prepareViewToSave'](_0x2e70f8),'deletions':this['_prepareViewToSave'](_0x4e65e6),'attachChange':this[_0x5a53('0x20')][_0x5a53('0xc6')](_0x104289)||null,'attributesBefore':_0x108074(this['_baseRootsAttributes']['get'](_0x104289))||{},'attributesAfter':_0x108074(this[_0x5a53('0x4d')]['get'](_0x104289))};}return{'diffData':_0x10f2dd,'authorsIds':Array[_0x5a53('0x29')](_0x35da6f)};}[_0x5a53('0x83')](_0x462b29){for(const [,_0x430f0a]of _0x462b29['markers']){const _0x1ee49d=_0x430f0a[_0x5a53('0x24')][_0x5a53('0xb9')]()[_0x5a53('0x13')](_0x16deef=>'tableCell'==_0x16deef[_0x5a53('0x90')]);for(const _0x3842d6 of _0x1ee49d)0x1==_0x3842d6[_0x5a53('0x4a')]&&_0x3842d6[_0x5a53('0x5c')](0x0)['is']('element',_0x5a53('0xc7'))&&_0x3842d6[_0x5a53('0x5c')](0x0)[_0x5a53('0x1e')](_0x5a53('0xbb'),!0x0);}}['_prepareViewToSave'](_0x39e478){this[_0x5a53('0x83')](_0x39e478);const _0x44d75c=this[_0x5a53('0x98')][_0x5a53('0xfc')][_0x5a53('0x2')](_0x39e478,{}),_0x19bc12=Array[_0x5a53('0x29')](_0x44d75c['getChildren']())[_0x5a53('0x52')](_0x16d063=>this['_getViewJson'](_0x16d063));return JSON[_0x5a53('0xca')](_0x19bc12);}[_0x5a53('0xb2')](_0x34ffd5){if(_0x34ffd5['is'](_0x5a53('0xb7')))return _0x34ffd5['data'];{const _0x41fd1d=_0x34ffd5;return{'type':Object[_0x5a53('0x94')](F)['find'](_0x5b1dc5=>_0x34ffd5 instanceof F[_0x5b1dc5]),'name':_0x41fd1d['name'],'attributes':Array[_0x5a53('0x29')](_0x41fd1d['getAttributes']()),'children':Array[_0x5a53('0x29')](_0x41fd1d[_0x5a53('0x54')]())[_0x5a53('0x52')](_0x17d1c7=>this['_getViewJson'](_0x17d1c7))};}}[_0x5a53('0xb1')](_0x39e5d4,_0x110209,_0x10cf07,_0x2b4f72,_0x13a2cc){let _0x47547b=null,_0x58ecde=null,_0x2bf021=0x0;const _0x1c609b=this[_0x5a53('0x98')]['model'];for(let _0x44279b=0x0;_0x44279b<_0x110209[_0x5a53('0xf5')];_0x44279b++){const _0x9a3cc=this[_0x5a53('0x10b')](_0x110209[_0x44279b]),_0x302127=_0x110209[_0x44279b]['item']['getAttribute'](_0x9a3cc),_0x414355=_0x10cf07['get'](_0x302127),_0x52ded3=_0x44279b==_0x110209[_0x5a53('0xf5')]-0x1;(!_0x47547b&&_0x414355&&(_0x47547b=_0x414355,_0x58ecde=_0x110209[_0x44279b]),_0x47547b&&(!_0x414355||_0x414355['userId']!=_0x47547b['userId']))&&(_0x15f9ec(_0x414355,q(_0x58ecde,_0x39e5d4,_0x1c609b),q(_0x110209[_0x44279b],_0x39e5d4,_0x1c609b)),_0x47547b=_0x414355||null,_0x58ecde=_0x414355?_0x110209[_0x44279b]:null),_0x47547b&&_0x52ded3&&_0x15f9ec(_0x414355,q(_0x58ecde,_0x39e5d4,_0x1c609b),G(_0x110209[_0x44279b],_0x39e5d4,_0x1c609b));}function _0x15f9ec(_0x2a55a1,_0x593379,_0xc2278c){const _0x173419=_0x47547b[_0x5a53('0x49')],_0x59f3d6=_0x5a53('0xaf')+_0x2b4f72+':'+_0x173419+':'+_0x2bf021++,_0x505e8f=_0x1c609b['createRange'](_0x593379,_0xc2278c);_0x39e5d4['markers'][_0x5a53('0x62')](_0x59f3d6,_0x505e8f),null!==_0x173419&&_0x13a2cc[_0x5a53('0x5f')](_0x173419);}}[_0x5a53('0x10b')](_0x1293be){switch(_0x1293be[_0x5a53('0xd7')]){case _0x5a53('0xa8'):return'vid_start';case'elementEnd':return _0x5a53('0x30');default:return _0x5a53('0x77');}}[_0x5a53('0x8a')](_0x385c5c,_0x5396f0){_0x385c5c[_0x5a53('0x8f')]=null;for(const _0x1a7a67 in _0x385c5c){const _0x2a1dec=_0x385c5c[_0x1a7a67];if(_0x2a1dec instanceof _0x212216){const _0x2cddae=_0x5396f0[_0x5a53('0xc6')](_0x2a1dec['root'][_0x5a53('0xee')]);_0x385c5c[_0x1a7a67]=this[_0x5a53('0x100')](_0x2a1dec,_0x2cddae);}if(_0x2a1dec instanceof _0x57df39){const _0x4a87e6=_0x5396f0[_0x5a53('0xc6')](_0x2a1dec[_0x5a53('0x6a')]['rootName']);_0x385c5c[_0x1a7a67]=this[_0x5a53('0xa6')](_0x2a1dec,_0x4a87e6);}_0x5a53('0x6a')===_0x1a7a67&&(_0x385c5c['root']=_0x5396f0[_0x5a53('0xc6')](_0x385c5c['root'][_0x5a53('0xee')]));}}[_0x5a53('0xa6')](_0xfde71b,_0x25fe59){return this[_0x5a53('0x98')]['model'][_0x5a53('0x65')](this['_fixPosition'](_0xfde71b[_0x5a53('0x24')],_0x25fe59),this[_0x5a53('0x100')](_0xfde71b[_0x5a53('0xd9')],_0x25fe59));}[_0x5a53('0x100')](_0x252e47,_0x2336b8){return this['editor'][_0x5a53('0x58')][_0x5a53('0x45')](_0x2336b8,_0x252e47[_0x5a53('0x88')],_0x252e47[_0x5a53('0x2d')]);}[_0x5a53('0x10a')](_0x3a03d4){const _0x222b84=this[_0x5a53('0xc4')]['get'](_0x3a03d4['position'][_0x5a53('0x6a')][_0x5a53('0xee')]),_0x4bdd9c=this[_0x5a53('0x100')](_0x3a03d4[_0x5a53('0x1a')],_0x222b84),_0x58b37c=null===_0x3a03d4[_0x5a53('0xff')]?null:_0x3a03d4[_0x5a53('0xff')]||this['editor']['plugins'][_0x5a53('0xc6')](_0x5a53('0xa1'))['me']['id'],_0x2bd271=_0x4bdd9c[_0x5a53('0x107')],_0x707400=this[_0x5a53('0x9a')],_0x30d38a=[];for(const _0x4d9f35 of _0x3a03d4[_0x5a53('0x8c')])if(_0x4d9f35['is']('element'))_0x30d38a[_0x5a53('0x48')](this[_0x5a53('0x7')](_0x4d9f35));else for(let _0x42c6bb=0x0;_0x42c6bb<_0x4d9f35[_0x5a53('0xa')];_0x42c6bb++)_0x30d38a[_0x5a53('0x48')](new _0x4097d0(_0x5a53('0xb7'),{'vid':this[_0x5a53('0x9a')]++}));const _0x102f4c=this[_0x5a53('0x9a')];for(let _0x47518d=_0x707400;_0x47518d<_0x102f4c;_0x47518d++)this[_0x5a53('0x31')][_0x5a53('0x62')](_0x47518d,{'userId':_0x58b37c});_0x2bd271['_insertChild'](_0x4bdd9c[_0x5a53('0x74')],_0x30d38a);}[_0x5a53('0x84')](_0x414fda){(_0x414fda=this[_0x5a53('0xf2')](_0x414fda,this[_0x5a53('0xc4')]))[_0x5a53('0x11')]();const _0x43749e=null===_0x414fda[_0x5a53('0xff')]?null:_0x414fda['_authorId']||this['editor'][_0x5a53('0xaa')]['get'](_0x5a53('0xa1'))['me']['id'],_0x402cd2=_0x414fda[_0x5a53('0x40')](),_0x3c296d=_0x402cd2[_0x5a53('0x107')],_0x129ecc=_0x402cd2[_0x5a53('0x74')];!function _0x12c29b(_0x13e6a5,_0x7df781,_0xc5508b,_0x4ee828){for(let _0x234f46=_0xc5508b;_0x234f46<_0x4ee828;_0x234f46++){const _0x506cbc=_0x7df781['getChild'](_0x234f46);_0x506cbc['is'](_0x5a53('0x99'),_0x5a53('0xb7'))?_0x13e6a5['set'](_0x506cbc[_0x5a53('0x19')](_0x5a53('0x77')),{'userId':_0x43749e}):(_0x13e6a5['set'](_0x506cbc[_0x5a53('0x19')](_0x5a53('0x61')),{'userId':_0x43749e}),_0x12c29b(_0x13e6a5,_0x506cbc,0x0,_0x506cbc[_0x5a53('0x4a')]),_0x13e6a5[_0x5a53('0x62')](_0x506cbc[_0x5a53('0x19')]('vid_end'),{'userId':_0x43749e}));}}(this['_touched'],_0x3c296d,_0x129ecc,_0x129ecc+_0x414fda[_0x5a53('0x3a')]);}[_0x5a53('0x93')](_0x148104){const _0x3e3b97=null===(_0x148104=this[_0x5a53('0xf2')](_0x148104,this[_0x5a53('0xc4')]))[_0x5a53('0xff')]?null:_0x148104[_0x5a53('0xff')]||this['editor'][_0x5a53('0xaa')][_0x5a53('0xc6')](_0x5a53('0xa1'))['me']['id'],_0x94ffb9=_0x148104['targetPosition'][_0x5a53('0x107')],_0x4f2a38=_0x148104[_0x5a53('0x85')][_0x5a53('0x107')],_0x45306f=_0x94ffb9['getAttribute'](_0x5a53('0x30')),_0x14856e=_0x4f2a38['getAttribute']('vid_start');_0x94ffb9['_setAttribute'](_0x5a53('0x30'),_0x4f2a38[_0x5a53('0x19')](_0x5a53('0x30'))),_0x4f2a38[_0x5a53('0x1e')]('vid_end',_0x45306f),this[_0x5a53('0x31')][_0x5a53('0x62')](_0x14856e,{'userId':_0x3e3b97}),this['_touched'][_0x5a53('0x62')](_0x45306f,{'userId':_0x3e3b97}),_0x148104[_0x5a53('0x11')]();}['_handleSplitOperation'](_0x4a22c2){const _0x51b6d8=null===(_0x4a22c2=this['_cloneOperation'](_0x4a22c2,this[_0x5a53('0xc4')]))[_0x5a53('0xff')]?null:_0x4a22c2[_0x5a53('0xff')]||this[_0x5a53('0x98')][_0x5a53('0xaa')][_0x5a53('0xc6')]('Users')['me']['id'],_0x1dead3=_0x4a22c2['graveyardPosition'],_0x1b8dd3=_0x4a22c2[_0x5a53('0x76')][_0x5a53('0x107')];_0x4a22c2[_0x5a53('0x11')]();const _0x7a0ccc=_0x1b8dd3[_0x5a53('0x19')](_0x5a53('0x30')),_0x3a84d3=_0x4a22c2[_0x5a53('0x53')][_0x5a53('0xde')];if(_0x1dead3){const _0x500096=_0x3a84d3[_0x5a53('0x19')](_0x5a53('0x30')),_0x3c7056=_0x1b8dd3[_0x5a53('0x19')](_0x5a53('0x30'));_0x1b8dd3['_setAttribute']('vid_end',_0x500096),_0x3a84d3[_0x5a53('0x1e')]('vid_end',_0x3c7056),this[_0x5a53('0x31')][_0x5a53('0x62')](_0x1b8dd3[_0x5a53('0x19')](_0x5a53('0x30')),{'userId':_0x51b6d8}),this[_0x5a53('0x31')][_0x5a53('0x62')](_0x3a84d3[_0x5a53('0x19')](_0x5a53('0x61')),{'userId':_0x51b6d8});}else{const _0x4ab56a=this[_0x5a53('0x9a')]++,_0x5373c1=this[_0x5a53('0x9a')]++;_0x1b8dd3[_0x5a53('0x1e')](_0x5a53('0x30'),_0x4ab56a),_0x3a84d3[_0x5a53('0x1e')](_0x5a53('0x61'),_0x5373c1),_0x3a84d3['_setAttribute'](_0x5a53('0x30'),_0x7a0ccc),this[_0x5a53('0x31')][_0x5a53('0x62')](_0x4ab56a,{'userId':_0x51b6d8}),this['_touched'][_0x5a53('0x62')](_0x5373c1,{'userId':_0x51b6d8});}}['_handleMarkerOperation'](_0x16fe0f){if(!_0x16fe0f[_0x5a53('0x67')])return;const _0x19ea9b=(_0x16fe0f=this[_0x5a53('0xf2')](_0x16fe0f,this[_0x5a53('0xe4')]))['oldRange']?_0x16fe0f[_0x5a53('0xda')][_0x5a53('0x6a')]:null,_0x2e1e76=_0x16fe0f['newRange']?_0x16fe0f[_0x5a53('0x5e')][_0x5a53('0x6a')]:null;_0x19ea9b&&this['_markers'][_0x5a53('0xe8')](_0x16fe0f['name']),_0x2e1e76&&this[_0x5a53('0x8e')]['set'](_0x16fe0f[_0x5a53('0x90')],_0x16fe0f[_0x5a53('0x5e')][_0x5a53('0xe9')]());const _0x52a27b=null===_0x16fe0f[_0x5a53('0xff')]?null:_0x16fe0f[_0x5a53('0xff')]||this[_0x5a53('0x98')][_0x5a53('0xaa')][_0x5a53('0xc6')](_0x5a53('0xa1'))['me']['id'],_0x5c301a=_0x16fe0f['name'];if(!this[_0x5a53('0x79')][_0x5a53('0x9f')](_0x5c301a))return void this[_0x5a53('0x79')][_0x5a53('0x62')](_0x5c301a,{'range':_0x16fe0f[_0x5a53('0xda')],'userId':_0x52a27b});const _0x62bf04=this[_0x5a53('0x79')][_0x5a53('0xc6')](_0x5c301a),_0x348cad=_0x62bf04[_0x5a53('0xd4')],_0x3dbf2a=_0x16fe0f[_0x5a53('0x5e')];null==_0x348cad&&null==_0x3dbf2a||_0x348cad&&_0x3dbf2a&&_0x348cad[_0x5a53('0x6')](_0x3dbf2a)?this['_touchedMarkers'][_0x5a53('0xe8')](_0x16fe0f[_0x5a53('0x90')]):_0x62bf04['userId']=_0x52a27b;}[_0x5a53('0xba')](_0x133d0c,_0x47b049){this['_diffRoots'][_0x5a53('0x9f')](_0x133d0c[_0x5a53('0xee')])?this[_0x5a53('0xe4')][_0x5a53('0xc6')](_0x133d0c[_0x5a53('0xee')])['_isAttached']=_0x133d0c[_0x5a53('0x57')]:(this[_0x5a53('0xe4')][_0x5a53('0x62')](_0x133d0c['rootName'],H(_0x133d0c[_0x5a53('0xee')],!0x0)),this[_0x5a53('0x4d')][_0x5a53('0x62')](_0x133d0c[_0x5a53('0xee')],{}),_0x47b049&&this[_0x5a53('0xc4')][_0x5a53('0x62')](_0x133d0c[_0x5a53('0xee')],H(_0x133d0c[_0x5a53('0xee')],!0x0)));const _0x2d7e97=null===_0x133d0c[_0x5a53('0xff')]?null:_0x133d0c[_0x5a53('0xff')]||this['editor'][_0x5a53('0xaa')][_0x5a53('0xc6')](_0x5a53('0xa1'))['me']['id'],_0x4e349d=this[_0x5a53('0x20')][_0x5a53('0xc6')](_0x133d0c[_0x5a53('0xee')]);_0x4e349d&&_0x4e349d[_0x5a53('0x49')]===_0x2d7e97?this['_touchedRoots']['delete'](_0x133d0c[_0x5a53('0xee')]):this[_0x5a53('0x20')][_0x5a53('0x62')](_0x133d0c[_0x5a53('0xee')],{'userId':_0x2d7e97,'isAttached':_0x133d0c[_0x5a53('0x57')]});}[_0x5a53('0x73')](_0x5d44fa){const _0x369800=this[_0x5a53('0x4d')]['get'](_0x5d44fa[_0x5a53('0x6a')][_0x5a53('0xee')]);null===_0x5d44fa[_0x5a53('0xb8')]?delete _0x369800[_0x5d44fa['key']]:_0x369800[_0x5d44fa[_0x5a53('0x108')]]=_0x5d44fa[_0x5a53('0xb8')];}}function J(_0x2c971f){const _0x5bed38=H(_0x2c971f[_0x5a53('0xee')],_0x2c971f[_0x5a53('0xf8')]());for(const _0x5e1617 of _0x2c971f['getChildren']()){const _0x48570e=_0x5e1617['_clone'](!0x0);_0x5bed38[_0x5a53('0xc0')](_0x48570e);}return _0x5bed38;}function H(_0x42b45d,_0x360480=!0x0){const _0x3cdffa=new _0x11fefb();return _0x3cdffa[_0x5a53('0xee')]=_0x42b45d,_0x3cdffa[_0x5a53('0x35')]=_0x360480,_0x3cdffa[_0x5a53('0xf8')]=()=>_0x3cdffa[_0x5a53('0x35')],_0x3cdffa;}function q(_0x436f37,_0x291686,_0x55b3b9){const _0x524726=_0x5a53('0xdf')==_0x436f37[_0x5a53('0xd7')]?_0x55b3b9[_0x5a53('0xe2')](_0x436f37['item'],_0x5a53('0xd9')):_0x55b3b9[_0x5a53('0x2a')](_0x436f37[_0x5a53('0xc1')]);return _0x55b3b9[_0x5a53('0x45')](_0x291686,_0x524726[_0x5a53('0x88')],_0x524726[_0x5a53('0x2d')]);}function G(_0x3b4bdf,_0x2fc931,_0x47eec4){const _0x35b1be=_0x5a53('0xa8')==_0x3b4bdf[_0x5a53('0xd7')]?_0x47eec4[_0x5a53('0xe2')](_0x3b4bdf[_0x5a53('0xc1')],0x0):_0x47eec4['createPositionAfter'](_0x3b4bdf['item']);return _0x47eec4[_0x5a53('0x45')](_0x2fc931,_0x35b1be['path'],_0x35b1be[_0x5a53('0x2d')]);}