@ckeditor/ckeditor5-revision-history 35.3.0 → 35.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +7 -7
  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 _0x5e0b=['root','_fixOperation','currentRevision','dataDowncast','createPositionBefore','processor','_reset','sourcePosition','revision','_createInitialRevision','rootName','from','getData','config','elementEnd','repository','getCurrentRevisionId','_source','_loadState','getWalker','insert','_handleOperation','_diffRoots','_lastTo','isEnabled','revisionHistory.resumeUnsavedRevision','_baseRoots','_addPendingAction','Users','_markers','length','keys','markerToData','_saveMetaData','childCount','_touchedMarkers','max','filter','init','_isInit','fromVersion','toData','_operations','_clone','version','_appendChild','_startingRevisionId','_getViewJson','getLatestVersion','conversion','keepParagraph','_initialRevisionId','add','item','_calculateMetaData','editor-initial-data-replaced-with-revision-data','_touched','name','locale','getRootNames','_makeRevision','remove','_processRootBeforeSave','oldRange','clear','RevisionsRepository','createPositionAt','_loadRevisionData','clone','marked','_pendingAction','has','hasContent','creator','updateRevisions','_handleMoveOperation','type','history','_copyMarkers','forEach','getRoot','pluginName','graveyardPosition','includes','parse','bind','_createCurrentRevision','position','NEGATIVE_INFINITY','vid','toModel','ready','_prepareViewToSave','isReady','sendBufferedUpdates','_rootNames','range','previousPosition','createRangeIn','getNodeByPath','_update','parent','userId','shift','update','find','initialData','nodes','delete','afterInit','set','elementStart','targetPosition','_getVidAttributeName','split','getChild','_savedMetaData','_baseIdsRoots','finally','buildRevisionData','reinsert','_makeModelFromViewString','children','getRevisionDocumentData','PendingActions','_isPendingUpdate','_transformMarkers','_removeRevisionMarkers','for','startsWith','document','push','getRevisions','sort','getMovedRangeStart','_removePendingAction','view','setRevisionData','insertions','createdAt','element','paragraph','_getState','size','$text','merge','_startingVersion','_execute','getTransformedByOperation','_handleSplitOperation','createPositionFromPath','_revisionId','resolve','collaboration.channelId','authors','vid_start','_handleMarkerOperation','move','stringify','define','trim','_replaceEditorDataWithRevisionData','_setConversion','offsetSize','values','_findInsertionIndex','offset','authorsIds','_fixPosition','addRevision','getRevision','toVersion','stickiness','addRevisionData','loadState','source','_authorId','splitPosition','upcast','_revisionDataBuilder','getAttribute','RealTimeCollaborationClient','text','data','then','creatorId','_bufferedUpdates','reInit','getTime','marker','dataToMarker','newRange','get','_removeMetaData','useFillerType','plugins','_loadedStateData','getAttributes','tableCell','string','isPendingUpdate','_markChanges','_saveEmptyMetaData','_bufferUpdate','_continueCurrentRevision','editing','_getFromVersion','map','getOperations','documentFragment','model','adapter','start','toView','slice','diffData','getIndex','nodeAfter','attributes','editor','insertion','initial','vid_end','_makeIdsRoot','_cloneOperation','revision-end','$graveyard','getChildren','markers','_getBaseVids','deletions','_generateTape','baseVersion','_getPreviousFrom','PENDING_ACTION_REVISION_HISTORY','_lastFrom','createRange','_idsRoots','_fixRange','getAncestors','end','revision-start','reverse','_setAttribute','path','_applyOperations','insertionPosition','requires'];(function(_0x107a56,_0x5e0bc7){const _0x1b2f1a=function(_0x41d2c3){while(--_0x41d2c3){_0x107a56['push'](_0x107a56['shift']());}};_0x1b2f1a(++_0x5e0bc7);}(_0x5e0b,0xa9));const _0x1b2f=function(_0x107a56,_0x5e0bc7){_0x107a56=_0x107a56-0x0;let _0x1b2f1a=_0x5e0b[_0x107a56];return _0x1b2f1a;};import{Users as _0x28a163}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x21d08d,PendingActions as _0x14cfcf}from'ckeditor5/src/core';import{logWarning as _0x12b7e5,uid as _0x333ed5}from'ckeditor5/src/utils';import{Position as _0x57323c,Range as _0x561f91,Element as _0x5731e8,DocumentFragment as _0x5ab7a7,ViewText as _0x4c415b,ViewElement as _0x42304f,ViewContainerElement as _0x2665dc,ViewAttributeElement as _0x15006d,ViewEmptyElement as _0x486dcb,ViewRawElement as _0x40d326,ViewUIElement as _0x4045e8,ViewDocumentFragment as _0x2e8905}from'ckeditor5/src/engine';import _0x59f988 from'./revisionsrepository';import{getTranslation as _0x430d45}from'./utils/common-translations';const J={'c':_0x2665dc,'a':_0x15006d,'e':_0x486dcb,'r':_0x40d326,'u':_0x4045e8};export default class u extends _0x21d08d{static get[_0x1b2f('0xa0')](){return'RevisionTracker';}static get[_0x1b2f('0x4e')](){return[_0x28a163,_0x59f988,_0x14cfcf];}constructor(..._0x10bf27){super(..._0x10bf27),this[_0x1b2f('0x2a')]=null,this[_0x1b2f('0xbd')](_0x1b2f('0xac'),!0x1),this[_0x1b2f('0xbd')](_0x1b2f('0x67'),!0x0),this[_0x1b2f('0x51')]=null;const _0x57377e=_0x333ed5();this[_0x1b2f('0x60')]={'history':this[_0x1b2f('0x32')][_0x1b2f('0x29')][_0x1b2f('0xd1')][_0x1b2f('0x9c')],'getLatestVersion':()=>Promise[_0x1b2f('0xe7')](this[_0x1b2f('0x32')][_0x1b2f('0x29')]['document'][_0x1b2f('0x7b')]),'getCurrentRevisionId':()=>_0x57377e},this[_0x1b2f('0xa')]=new B(this['editor']),this[_0x1b2f('0x82')]=this[_0x1b2f('0x32')]['config'][_0x1b2f('0x17')]('collaboration.channelId')||_0x1b2f('0x34'),this[_0x1b2f('0xbd')](_0x1b2f('0x1f'),!0x1),this['_bufferedUpdates']=new Map(),this[_0x1b2f('0x32')][_0x1b2f('0x5c')][_0x1b2f('0xee')]('revisionHistory.resumeUnsavedRevision',!0x0),this['_loadedStateData']=null,this[_0x1b2f('0x32')][_0x1b2f('0x80')][_0x1b2f('0xcf')](_0x1b2f('0x9'))[_0x1b2f('0x15')]({'view':_0x1b2f('0x57')});}['init'](){this['repository']=this['editor'][_0x1b2f('0x1a')]['get'](_0x1b2f('0x90')),this[_0x1b2f('0xf1')](),this[_0x1b2f('0x32')]['data']['on'](_0x1b2f('0xaa'),()=>{const _0x10701e=this[_0x1b2f('0x5e')]['getRevision'](0x0),_0x391da9=_0x10701e&&null===_0x10701e[_0x1b2f('0x98')]?_0x10701e:null;if(this[_0x1b2f('0x23')]=!!_0x391da9&&this[_0x1b2f('0x32')][_0x1b2f('0x5c')]['get'](_0x1b2f('0x68')),this[_0x1b2f('0x32')][_0x1b2f('0x1a')][_0x1b2f('0x96')](_0x1b2f('0xc'))){const _0x4b3d27=this[_0x1b2f('0x60')][_0x1b2f('0x5f')](),_0x3b3f93=this['repository'][_0x1b2f('0x1')](_0x4b3d27);if(_0x3b3f93)this[_0x1b2f('0xe1')]=_0x3b3f93[_0x1b2f('0x77')],this['_continueCurrentRevision']=!0x1;else{const _0x1cff38=this['_source'][_0x1b2f('0x9c')][_0x1b2f('0x79')][_0x1b2f('0xb8')](_0x384d0d=>!_0x384d0d[_0x1b2f('0x76')]),_0x165300=_0x1cff38?_0x1cff38[_0x1b2f('0x3f')]:this['_source'][_0x1b2f('0x9c')][_0x1b2f('0x7b')];_0x10701e?(_0x10701e[_0x1b2f('0x2')]<_0x165300&&_0x10701e[_0x1b2f('0xb3')]({'toVersion':_0x165300}),this[_0x1b2f('0x23')]?(this[_0x1b2f('0x60')][_0x1b2f('0x5f')]=()=>_0x391da9['id'],this[_0x1b2f('0xe1')]=_0x391da9['fromVersion']):(this['_startingVersion']=_0x10701e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this[_0x1b2f('0xe1')]=_0x165300,this['_continueCurrentRevision']=!0x1);}}else _0x391da9&&(this['editor'][_0x1b2f('0x29')][_0x1b2f('0xd1')]['history'][_0x1b2f('0x7b')]=Math[_0x1b2f('0x73')](_0x391da9[_0x1b2f('0x2')],this[_0x1b2f('0x32')][_0x1b2f('0x29')][_0x1b2f('0xd1')][_0x1b2f('0x9c')]['version']),_0x391da9[_0x1b2f('0x77')]===_0x391da9['toVersion']?(0x0!==_0x391da9[_0x1b2f('0x77')]&&(this[_0x1b2f('0x60')][_0x1b2f('0x5f')]=()=>_0x391da9['id']),this[_0x1b2f('0x23')]=!0x1):this[_0x1b2f('0x23')]&&(this[_0x1b2f('0x60')][_0x1b2f('0x5f')]=()=>_0x391da9['id'],this['_startingVersion']=_0x391da9[_0x1b2f('0x77')])),this[_0x1b2f('0x23')]||(this[_0x1b2f('0xe1')]=this[_0x1b2f('0x32')][_0x1b2f('0x29')]['document'][_0x1b2f('0x7b')]);this[_0x1b2f('0xa')][_0x1b2f('0x75')](this[_0x1b2f('0x60')][_0x1b2f('0x9c')]),this['_createInitialRevision'](this['_startingVersion']),this[_0x1b2f('0xa5')](this[_0x1b2f('0xe1')]),this['adapter']&&this[_0x1b2f('0xad')]();}),this[_0x1b2f('0xa4')]('isReady')['to'](this,_0x1b2f('0xcc'),_0x429bf6=>!_0x429bf6);}async[_0x1b2f('0xbc')](){if(this['repository'][_0x1b2f('0x6d')]>0x0){const _0x4db99d=this[_0x1b2f('0x5e')][_0x1b2f('0x1')](0x0),_0x3e5b4a=await this[_0x1b2f('0xca')](_0x4db99d);this['_replaceEditorDataWithRevisionData'](_0x3e5b4a);}}['setSource'](_0x151d82){this[_0x1b2f('0x60')]=_0x151d82;}async[_0x1b2f('0xb7')](){const _0x4e33f0=await this['_source'][_0x1b2f('0x7f')]();if(_0x4e33f0>this[_0x1b2f('0x51')]['toVersion']){await this[_0x1b2f('0x61')]();const _0x5f3149=this[_0x1b2f('0xc6')]({'revision':this['currentRevision'],'to':_0x4e33f0});_0x5f3149[_0x1b2f('0xe9')]=_0x5f3149['authorsIds'][_0x1b2f('0x26')](_0x47f8b6=>this['editor'][_0x1b2f('0x1a')][_0x1b2f('0x17')]('Users')['getUser'](_0x47f8b6)),this['currentRevision'][_0x1b2f('0xb3')](_0x5f3149);}}async[_0x1b2f('0x61')](){this[_0x1b2f('0x23')]&&!this['_loadedStateData']&&(await this[_0x1b2f('0x92')](this[_0x1b2f('0x51')]),this[_0x1b2f('0xa')][_0x1b2f('0x5')](this['currentRevision']),this[_0x1b2f('0x1b')]={'fromVersion':this[_0x1b2f('0x51')]['fromVersion'],'authors':this[_0x1b2f('0x51')][_0x1b2f('0xe9')][_0x1b2f('0x2d')]()});}async['saveRevision'](_0x2df93c={},_0x11af43=null){const _0x46e2d6=[];await this[_0x1b2f('0x61')](),this[_0x1b2f('0x23')]=!0x1,_0x11af43>this[_0x1b2f('0x51')][_0x1b2f('0x2')]&&(_0x11af43=null),null===_0x11af43&&(_0x11af43=await this[_0x1b2f('0x60')][_0x1b2f('0x7f')]());const _0xffd1a1=this[_0x1b2f('0x25')](_0x11af43),_0xa76bf2=this['buildRevisionData']({'from':_0xffd1a1,'to':_0x11af43});if(this[_0x1b2f('0x51')][_0x1b2f('0x2')]<_0x11af43){const _0x31cc4b=this[_0x1b2f('0xc6')]({'revision':this[_0x1b2f('0x51')],'from':_0x11af43,'to':_0x11af43});_0x31cc4b[_0x1b2f('0xe9')]=[],_0x31cc4b[_0x1b2f('0xf6')]=[],_0x31cc4b['id']=this[_0x1b2f('0x51')]['id'],this[_0x1b2f('0x51')][_0x1b2f('0xb3')](_0x31cc4b,!0x0),delete _0x31cc4b[_0x1b2f('0xe9')],_0x46e2d6[_0x1b2f('0xd2')](_0x31cc4b);}_0x2df93c['creatorId']=this[_0x1b2f('0x32')][_0x1b2f('0x1a')]['get'](_0x1b2f('0x6b'))['me']['id'],_0x2df93c[_0x1b2f('0x88')]=_0x2df93c[_0x1b2f('0x88')]||null,_0x2df93c['id']=_0x2df93c['id']||_0x333ed5(),_0x2df93c={..._0x2df93c,..._0xa76bf2};const _0x1dc27e=this[_0x1b2f('0x4')](_0x2df93c);_0x46e2d6['push'](_0x2df93c);const _0x4830d3=this['repository'][_0x1b2f('0x2f')](_0x1dc27e);if(0x0!==_0x4830d3){const _0x323efb=this[_0x1b2f('0x5e')][_0x1b2f('0x1')](_0x4830d3-0x1);if(_0x323efb['fromVersion']!==_0x11af43){const _0xadfc28=this['_revisionDataBuilder'][_0x1b2f('0x5b')](_0x11af43,_0x323efb['toVersion']),_0x203a18={'id':_0x323efb['id'],'diffData':_0xadfc28[_0x1b2f('0x2e')],'authorsIds':_0xadfc28[_0x1b2f('0xf6')],'authors':_0xadfc28[_0x1b2f('0xf6')][_0x1b2f('0x26')](_0x103d16=>this[_0x1b2f('0x32')][_0x1b2f('0x1a')][_0x1b2f('0x17')](_0x1b2f('0x6b'))['getUser'](_0x103d16)),'fromVersion':_0x11af43};_0x323efb===this['currentRevision']&&(_0x203a18[_0x1b2f('0xda')]=new Date(_0x2df93c[_0x1b2f('0xda')][_0x1b2f('0x13')]()+0xa)),_0x323efb['_update'](_0x203a18,!0x0),delete _0x203a18[_0x1b2f('0xe9')],_0x46e2d6['push'](_0x203a18);}}if(this[_0x1b2f('0x2a')]){for(const _0x6e5141 of _0x46e2d6)this['_bufferUpdate'](_0x6e5141['id'],_0x6e5141,!0x0);this[_0x1b2f('0xad')]();}return _0x1dc27e;}[_0x1b2f('0x4')](_0x19d467){const _0x2dac11=this[_0x1b2f('0x5e')]['createRevision'](_0x19d467);return this[_0x1b2f('0x2a')]&&_0x2dac11['on'](_0x1b2f('0xb3'),(_0x11bb88,_0x4d7c2d,_0x4d2505)=>{_0x4d2505||(this[_0x1b2f('0x22')](_0x4d7c2d['id'],_0x4d7c2d,!0x0),this[_0x1b2f('0xad')]());}),this[_0x1b2f('0x5e')][_0x1b2f('0x0')](_0x2dac11,this[_0x1b2f('0xf4')](_0x2dac11)),_0x2dac11;}async['getRevisionDocumentData'](_0x15283a){await this['_loadRevisionData'](_0x15283a);const _0x462e28={};for(const _0x5ae347 in _0x15283a[_0x1b2f('0x2e')]){const _0x45f020=this[_0x1b2f('0xce')](JSON[_0x1b2f('0xa3')](_0x15283a[_0x1b2f('0x2e')][_0x5ae347]['insertions'])),_0x56103c=this[_0x1b2f('0x32')][_0x1b2f('0x24')][_0x1b2f('0xd7')][_0x1b2f('0xd1')],_0x39e8e2=new _0x2e8905(_0x56103c,_0x45f020['map'](_0x4302b1=>j(_0x4302b1,this[_0x1b2f('0x32')])));this[_0x1b2f('0x32')][_0x1b2f('0xe')][_0x1b2f('0x54')][_0x1b2f('0x19')](_0x1b2f('0x94')),_0x462e28[_0x5ae347]=this[_0x1b2f('0x32')][_0x1b2f('0xe')][_0x1b2f('0x54')][_0x1b2f('0x78')](_0x39e8e2),this[_0x1b2f('0x32')][_0x1b2f('0xe')][_0x1b2f('0x54')]['useFillerType']('default');}return _0x462e28;}[_0x1b2f('0xad')](){if(0x0===this[_0x1b2f('0x11')]['size'])return;if(this[_0x1b2f('0xcc')])return;let _0x5d2ac0=Array[_0x1b2f('0x5a')](this[_0x1b2f('0x11')][_0x1b2f('0xf3')]());this[_0x1b2f('0x11')][_0x1b2f('0x8f')]();for(let _0xac1115=0x0;_0xac1115<_0x5d2ac0[_0x1b2f('0x6d')];_0xac1115++){const _0x56a3e3=_0x5d2ac0[_0xac1115];let _0x489e11=!0x1;for(const _0x28493b of Object[_0x1b2f('0x6e')](_0x56a3e3))void 0x0===_0x56a3e3[_0x28493b]?delete _0x56a3e3[_0x28493b]:'id'!==_0x28493b&&(_0x489e11=!0x0);_0x489e11||(_0x5d2ac0[_0xac1115]=null);}if(_0x5d2ac0=_0x5d2ac0['filter'](_0x3fbda5=>null!==_0x3fbda5),!_0x5d2ac0[_0x1b2f('0x6d')])return;for(let _0x108ae2=0x0;_0x108ae2<_0x5d2ac0[_0x1b2f('0x6d')];_0x108ae2++){const _0x37f0a3=_0x5d2ac0[_0x108ae2];void 0x0!==_0x37f0a3['fromVersion']&&void 0x0===_0x37f0a3[_0x1b2f('0x2')]&&(_0x37f0a3[_0x1b2f('0x2')]=this[_0x1b2f('0x5e')][_0x1b2f('0x1')](_0x37f0a3['id'])[_0x1b2f('0x2')]),void 0x0!==_0x37f0a3[_0x1b2f('0x2')]&&void 0x0===_0x37f0a3['fromVersion']&&(_0x37f0a3['fromVersion']=this[_0x1b2f('0x5e')][_0x1b2f('0x1')](_0x37f0a3['id'])[_0x1b2f('0x77')]);}const _0x134057=this[_0x1b2f('0x32')][_0x1b2f('0x5c')]['get'](_0x1b2f('0xe8'));this[_0x1b2f('0xcc')]=!0x0,this[_0x1b2f('0x6a')](),this['adapter'][_0x1b2f('0x99')](_0x5d2ac0,_0x134057)[_0x1b2f('0xc5')](()=>{this[_0x1b2f('0xcc')]=!0x1;})[_0x1b2f('0xf')](_0x10d6fe=>{if(_0x10d6fe)for(const _0x30f037 of _0x10d6fe)this[_0x1b2f('0xd8')]({'id':_0x30f037['id'],'createdAt':_0x30f037[_0x1b2f('0xda')]});this[_0x1b2f('0xd6')](),this[_0x1b2f('0xad')]();});}[_0x1b2f('0xf0')](_0x281e74){let _0x29cb04=this[_0x1b2f('0x32')]['config']['get'](_0x1b2f('0xb9'));if(void 0x0===_0x29cb04){_0x29cb04={};for(const _0x2b3b93 of this[_0x1b2f('0x32')]['model'][_0x1b2f('0xd1')][_0x1b2f('0x8a')]())_0x29cb04[_0x2b3b93]='';}_0x1b2f('0x1e')==typeof _0x29cb04&&(_0x29cb04={'main':_0x29cb04});let _0x566305=!0x1;for(const _0x36b4b9 of Object[_0x1b2f('0x6e')](_0x29cb04))_0x281e74[_0x36b4b9]&&(_0x29cb04[_0x36b4b9]!==_0x281e74[_0x36b4b9]&&''!==_0x29cb04[_0x36b4b9][_0x1b2f('0xef')]()&&(_0x566305=!0x0),_0x29cb04[_0x36b4b9]=_0x281e74[_0x36b4b9]);_0x566305&&_0x12b7e5(_0x1b2f('0x86')),this[_0x1b2f('0x32')]['config'][_0x1b2f('0xbd')](_0x1b2f('0xb9'),_0x29cb04);}[_0x1b2f('0x6a')](){if(!this[_0x1b2f('0x95')]){const _0x33c4ee=this[_0x1b2f('0x32')][_0x1b2f('0x1a')][_0x1b2f('0x17')](_0x1b2f('0xcb'));this[_0x1b2f('0x95')]=_0x33c4ee[_0x1b2f('0x83')](_0x430d45(this['editor']['locale'],_0x1b2f('0x41')));}}[_0x1b2f('0xd6')](){this[_0x1b2f('0x95')]&&(this[_0x1b2f('0x32')][_0x1b2f('0x1a')]['get'](_0x1b2f('0xcb'))[_0x1b2f('0x8c')](this['_pendingAction']),this[_0x1b2f('0x95')]=null);}[_0x1b2f('0xf4')](_0x118616){const _0xe5f2df=this[_0x1b2f('0x5e')][_0x1b2f('0xd3')]();_0xe5f2df[_0x1b2f('0x49')]();let _0x2d5e68=0x0;for(;_0x2d5e68<_0xe5f2df[_0x1b2f('0x6d')];){const _0x2453f2=_0xe5f2df[_0x2d5e68];if(_0x2453f2===this[_0x1b2f('0x51')]){_0x2d5e68++;continue;}if(_0x2453f2['id']===this[_0x1b2f('0x82')])break;const _0x288b37=_0x118616[_0x1b2f('0x2')]-_0x2453f2['toVersion']||_0x118616['fromVersion']-_0x2453f2[_0x1b2f('0x77')];if(_0x288b37>0x0)break;if(_0x288b37<0x0)_0x2d5e68++;else{if(!_0x118616[_0x1b2f('0x98')]&&_0x2453f2['creator'])break;if(_0x2453f2[_0x1b2f('0x98')]||!_0x118616[_0x1b2f('0x98')]){if(_0x118616[_0x1b2f('0xda')]>_0x2453f2['createdAt'])break;_0x2d5e68++;}else _0x2d5e68++;}}return _0x2d5e68;}[_0x1b2f('0xd8')](_0x2d5ddf){const _0x331cd4=this[_0x1b2f('0x5e')][_0x1b2f('0x1')](_0x2d5ddf['id']);if(_0x2d5ddf[_0x1b2f('0xda')]&&(_0x2d5ddf[_0x1b2f('0xda')]=new Date(_0x2d5ddf[_0x1b2f('0xda')])),_0x2d5ddf[_0x1b2f('0xf6')]){const _0xf20c87=this[_0x1b2f('0x32')][_0x1b2f('0x1a')]['get']('Users');_0x2d5ddf['authors']=_0x2d5ddf[_0x1b2f('0xf6')][_0x1b2f('0x26')](_0xba1b4c=>_0xf20c87['getUser'](_0xba1b4c));}_0x331cd4[_0x1b2f('0xb3')](_0x2d5ddf,!0x0);}[_0x1b2f('0xc6')]({revision:_0x40a619=null,from:_0x2a7843=null,to:_0x5bf18a=null}){_0x2a7843=null!==_0x2a7843?_0x2a7843:_0x40a619['fromVersion'],_0x5bf18a=null!==_0x5bf18a?_0x5bf18a:_0x40a619[_0x1b2f('0x2')];const _0x5994a3=this[_0x1b2f('0xa')][_0x1b2f('0x5b')](_0x2a7843,_0x5bf18a),_0x3736c3={'diffData':_0x5994a3['diffData'],'authorsIds':_0x5994a3[_0x1b2f('0xf6')],'fromVersion':_0x2a7843,'toVersion':_0x5bf18a};if(!_0x40a619||_0x5bf18a!==_0x40a619[_0x1b2f('0x2')]){const _0x82314e=_0x5bf18a-0x1,_0x1555df=this['_source']['history']['getOperation'](_0x82314e);_0x3736c3[_0x1b2f('0xda')]=_0x1555df&&_0x1555df[_0x1b2f('0xda')]||new Date();}if(this['_loadedStateData']&&_0x2a7843===this[_0x1b2f('0x1b')][_0x1b2f('0x77')])for(const _0xc2e8c4 of this[_0x1b2f('0x1b')][_0x1b2f('0xe9')])_0x3736c3[_0x1b2f('0xf6')][_0x1b2f('0xa2')](_0xc2e8c4['id'])||_0x3736c3[_0x1b2f('0xf6')]['push'](_0xc2e8c4['id']);return _0x3736c3;}[_0x1b2f('0x92')](_0x4255d3){if(!_0x4255d3||_0x4255d3['diffData'])return Promise[_0x1b2f('0xe7')]();{const _0x39ba64=this[_0x1b2f('0x32')][_0x1b2f('0x5c')][_0x1b2f('0x17')](_0x1b2f('0xe8'));return this['adapter'][_0x1b2f('0x1')]({'channelId':_0x39ba64,'revisionId':_0x4255d3['id']})[_0x1b2f('0xf')](_0x3bef46=>{_0x4255d3[_0x1b2f('0x2e')]=_0x3bef46[_0x1b2f('0x2e')];});}}[_0x1b2f('0x22')](_0xf5dc6c,_0x542333,_0x1e2b35){if(this[_0x1b2f('0x11')][_0x1b2f('0x96')](_0xf5dc6c)){const _0x505c77=this[_0x1b2f('0x11')][_0x1b2f('0x17')](_0xf5dc6c);_0x542333=_0x1e2b35?{..._0x505c77,..._0x542333}:{..._0x542333,..._0x505c77};}this[_0x1b2f('0x11')][_0x1b2f('0xbd')](_0xf5dc6c,_0x542333);}[_0x1b2f('0x25')](_0xc69c24){const _0x242e5a=this[_0x1b2f('0x5e')][_0x1b2f('0xd3')]();_0x242e5a['reverse'](),_0x242e5a[_0x1b2f('0xb6')]();const _0xd810b4=_0x242e5a[_0x1b2f('0xb8')](_0x14d34a=>_0x14d34a[_0x1b2f('0x2')]<=_0xc69c24)[_0x1b2f('0x2')];return _0xd810b4<this[_0x1b2f('0xe1')]?this[_0x1b2f('0xe1')]:_0xd810b4;}[_0x1b2f('0x58')](_0x142374){const _0x123564=this[_0x1b2f('0x5e')]['getRevision'](this[_0x1b2f('0x5e')][_0x1b2f('0x6d')]-0x1);if(_0x123564)this[_0x1b2f('0x82')]=_0x123564['id'];else{const _0x3ff09f=!this[_0x1b2f('0x32')]['model'][_0x1b2f('0xd1')]['roots'][_0x1b2f('0xb8')](_0x36de27=>this['editor'][_0x1b2f('0x29')][_0x1b2f('0x97')](_0x36de27)),_0x461b1e=this['editor']['plugins'][_0x1b2f('0x17')](_0x1b2f('0x6b'))['me']['id'],_0x5e7ab7=_0x430d45(this[_0x1b2f('0x32')][_0x1b2f('0x89')],_0x3ff09f?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x142374,'to':_0x142374,'id':this[_0x1b2f('0x82')],'name':_0x5e7ab7,'creatorId':_0x461b1e});}}[_0x1b2f('0xa5')](_0x1d667d){const _0x2d8a9f=this[_0x1b2f('0x60')][_0x1b2f('0x5f')]();this[_0x1b2f('0x51')]=this[_0x1b2f('0x5e')][_0x1b2f('0x1')](_0x2d8a9f),this[_0x1b2f('0x51')]||(this[_0x1b2f('0x51')]=this[_0x1b2f('0x8b')]({'from':_0x1d667d,'to':_0x1d667d,'id':_0x2d8a9f,'name':'','creatorId':null}));}['_makeRevision']({name:_0x53fb5c,from:_0x108019,to:_0x19b93e,creatorId:_0x28019a,id:_0xdec74b}){const _0x321887=this['buildRevisionData']({'from':_0x108019,'to':_0x19b93e});_0x321887[_0x1b2f('0x88')]=_0x53fb5c,_0x321887[_0x1b2f('0x10')]=_0x28019a,_0x321887['id']=_0xdec74b;const _0xe4b0d=this[_0x1b2f('0x4')](_0x321887);return this[_0x1b2f('0x2a')]&&this[_0x1b2f('0x22')](_0x321887['id'],_0x321887,!0x0),_0xe4b0d;}[_0x1b2f('0xf1')](){this['editor'][_0x1b2f('0x80')][_0x1b2f('0xcf')](_0x1b2f('0x52'))[_0x1b2f('0x6f')]({'model':'revision'});}[_0x1b2f('0xce')](_0x11b1ef){return(_0x11b1ef=_0x11b1ef[_0x1b2f('0x74')](_0x1d33e7=>!_0x1d33e7[_0x1b2f('0x88')]||_0x1b2f('0x48')!==_0x1d33e7[_0x1b2f('0x88')]&&_0x1b2f('0x38')!==_0x1d33e7[_0x1b2f('0x88')]))[_0x1b2f('0x9e')](_0x15651d=>{_0x1b2f('0x1e')!=typeof _0x15651d&&(_0x15651d[_0x1b2f('0xc9')]=this['_removeRevisionMarkers'](_0x15651d[_0x1b2f('0xc9')]),_0x15651d[_0x1b2f('0x31')]=_0x15651d['attributes'][_0x1b2f('0x74')](_0x11fcb5=>!_0x11fcb5[0x0][_0x1b2f('0xd0')]('data-revision-')));}),_0x11b1ef;}}function j(_0x310e56,_0xe96c04){const _0x5ae60c=_0xe96c04[_0x1b2f('0x24')][_0x1b2f('0xd7')]['document'];if('string'==typeof _0x310e56)return new _0x4c415b(_0x5ae60c,_0x310e56);{const _0x47ffbf=_0x310e56[_0x1b2f('0xc9')][_0x1b2f('0x26')](_0x257769=>j(_0x257769,_0xe96c04));return new(J[_0x310e56['type']]||_0x42304f)(_0x5ae60c,_0x310e56[_0x1b2f('0x88')],_0x310e56[_0x1b2f('0x31')],_0x47ffbf);}}class B{constructor(_0x38ac17){this['editor']=_0x38ac17,this['_savedMetaData']=new Map(),this[_0x1b2f('0x42')]=-0x1,this[_0x1b2f('0x66')]=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this[_0x1b2f('0x69')]=new Map(),this[_0x1b2f('0x44')]=new Map(),this[_0x1b2f('0xc4')]=new Map(),this[_0x1b2f('0x87')]=new Map(),this[_0x1b2f('0x72')]=new Map(),this[_0x1b2f('0xe6')]=0x1,this['_rootNames']=this[_0x1b2f('0x32')]['model'][_0x1b2f('0xd1')][_0x1b2f('0x8a')](),this['_rootNames']['push'](_0x1b2f('0x39'));}[_0x1b2f('0x75')](_0x3f27af){this[_0x1b2f('0x6')]=_0x3f27af;const _0x3b26f1=new Map();for(const _0x28a245 of this[_0x1b2f('0xae')]){const _0x4fe16d=H(this[_0x1b2f('0x32')][_0x1b2f('0x29')]['document'][_0x1b2f('0x9f')](_0x28a245));_0x3b26f1[_0x1b2f('0xbd')](_0x28a245,_0x4fe16d);}const _0x6421b9=Array[_0x1b2f('0x5a')](this[_0x1b2f('0x32')][_0x1b2f('0x29')][_0x1b2f('0x3b')])[_0x1b2f('0x26')](_0x18f831=>[_0x18f831[_0x1b2f('0x88')],_0x18f831['getRange']()]),_0x358800=this[_0x1b2f('0x6')][_0x1b2f('0x7b')];this[_0x1b2f('0x70')](_0x358800,_0x3b26f1,_0x6421b9),this[_0x1b2f('0x7d')]=this[_0x1b2f('0xe6')];}[_0x1b2f('0x5b')](_0x5bd2fc,_0x802893){if(this[_0x1b2f('0x42')]===_0x5bd2fc&&this[_0x1b2f('0x66')]<=_0x802893)this[_0x1b2f('0xc3')][_0x1b2f('0xde')]>0x1&&this[_0x1b2f('0x18')](this[_0x1b2f('0x66')]),this[_0x1b2f('0x4c')](this[_0x1b2f('0x66')],_0x802893,!0x0);else{if(!this['_savedMetaData']['has'](_0x5bd2fc)){const _0x503197=this[_0x1b2f('0x40')](_0x5bd2fc);this[_0x1b2f('0x85')](_0x503197,_0x5bd2fc,!0x1);}this[_0x1b2f('0x85')](_0x5bd2fc,_0x802893,!0x0);}return this['_lastFrom']=_0x5bd2fc,this[_0x1b2f('0x66')]=_0x802893,this[_0x1b2f('0xdd')]();}[_0x1b2f('0x5')](_0x2f1ca8){this[_0x1b2f('0x55')](),this['_lastFrom']=_0x2f1ca8[_0x1b2f('0x77')],this[_0x1b2f('0x66')]=_0x2f1ca8[_0x1b2f('0x2')];for(const _0x3a4fc9 in _0x2f1ca8[_0x1b2f('0x2e')]){const _0x1764fc=this[_0x1b2f('0xc8')](_0x2f1ca8[_0x1b2f('0x2e')][_0x3a4fc9][_0x1b2f('0x3d')]);_0x1764fc[_0x1b2f('0x59')]=_0x3a4fc9,this[_0x1b2f('0x69')][_0x1b2f('0xbd')](_0x3a4fc9,_0x1764fc);const _0x4d8f48=this['_makeIdsRoot'](_0x1764fc);this[_0x1b2f('0xc4')][_0x1b2f('0xbd')](_0x3a4fc9,_0x4d8f48);for(const [_0x24b3e9,_0x23464f]of _0x1764fc[_0x1b2f('0x3b')]){if(!_0x24b3e9[_0x1b2f('0xd0')]('revision:'))continue;const _0x392565=_0x24b3e9[_0x1b2f('0xc1')](':')[0x2];for(const _0x59c076 of _0x23464f['getWalker']({'singleCharacters':!0x0})){const _0x1a4ee0=this['_getVidAttributeName'](_0x59c076),_0x19cc57=_0x1b2f('0x5d')==_0x59c076[_0x1b2f('0x9b')]?_0x59c076[_0x1b2f('0xb0')][_0x1b2f('0x4b')][_0x1b2f('0x2d')](0x0,-0x1):_0x59c076[_0x1b2f('0xb0')][_0x1b2f('0x4b')],_0x232769=_0x4d8f48['getNodeByPath'](_0x19cc57)[_0x1b2f('0xb')](_0x1a4ee0);this[_0x1b2f('0x87')]['set'](_0x232769,{'userId':_0x392565});}}}this[_0x1b2f('0x7d')]=this[_0x1b2f('0xe6')];const _0x32ba00=[...Array(this[_0x1b2f('0xe6')])['keys']()]['slice'](0x1)[_0x1b2f('0x74')](_0x138d27=>!this['_touched'][_0x1b2f('0x96')](_0x138d27));let _0x1475ac=0x0;for(const _0x4fd138 in _0x2f1ca8[_0x1b2f('0x2e')]){const _0x4b4677=this[_0x1b2f('0xc8')](_0x2f1ca8[_0x1b2f('0x2e')][_0x4fd138][_0x1b2f('0xd9')]);_0x4b4677['rootName']=_0x4fd138,this[_0x1b2f('0x65')][_0x1b2f('0xbd')](_0x4fd138,_0x4b4677);const _0x1c36de=this['_makeIdsRoot'](_0x4b4677,Number[_0x1b2f('0xa7')]);this['_idsRoots'][_0x1b2f('0xbd')](_0x4fd138,_0x1c36de);for(const [_0x3e5590,_0x49ee99]of _0x4b4677['markers']){if(!_0x3e5590['startsWith']('revision:'))continue;const _0x571ec0=_0x3e5590[_0x1b2f('0xc1')](':')[0x2];for(const _0x32a6f6 of _0x49ee99[_0x1b2f('0x62')]({'singleCharacters':!0x0})){const _0xdb954d=this[_0x1b2f('0xc0')](_0x32a6f6),_0xf26a02=this['_revisionId']++,_0x592ee8=_0x1b2f('0x5d')==_0x32a6f6['type']?_0x32a6f6[_0x1b2f('0xb0')][_0x1b2f('0x4b')][_0x1b2f('0x2d')](0x0,-0x1):_0x32a6f6[_0x1b2f('0xb0')]['path'];_0x1c36de[_0x1b2f('0xb2')](_0x592ee8)[_0x1b2f('0x4a')](_0xdb954d,_0xf26a02),this[_0x1b2f('0x87')][_0x1b2f('0xbd')](_0xf26a02,{'userId':_0x571ec0});}}for(const _0x2f5d5c of this[_0x1b2f('0x32')]['model'][_0x1b2f('0xb1')](_0x4b4677)['getWalker']({'singleCharacters':!0x0})){const _0x3e02c9=this['_getVidAttributeName'](_0x2f5d5c),_0x19c6f4=_0x1b2f('0x5d')==_0x2f5d5c[_0x1b2f('0x9b')]?_0x2f5d5c[_0x1b2f('0xb0')]['path'][_0x1b2f('0x2d')](0x0,-0x1):_0x2f5d5c[_0x1b2f('0xb0')][_0x1b2f('0x4b')],_0x5b8a66=_0x1c36de['getNodeByPath'](_0x19c6f4);_0x5b8a66[_0x1b2f('0xb')](_0x3e02c9)>0x0||_0x5b8a66[_0x1b2f('0x4a')](_0x3e02c9,_0x32ba00[_0x1475ac++]);}const _0x2eb298=new _0x5ab7a7();_0x2eb298[_0x1b2f('0x59')]='$graveyard',this['_baseRoots']['set'](_0x1b2f('0x39'),_0x2eb298),this['_baseIdsRoots'][_0x1b2f('0xbd')](_0x1b2f('0x39'),this['_makeIdsRoot'](_0x2eb298,0x1));const _0x20cf74=new _0x5ab7a7();_0x20cf74[_0x1b2f('0x59')]='$graveyard',this[_0x1b2f('0x65')][_0x1b2f('0xbd')](_0x1b2f('0x39'),_0x20cf74),this[_0x1b2f('0x44')][_0x1b2f('0xbd')]('$graveyard',this['_makeIdsRoot'](_0x20cf74,0x1));for(const [_0x102de0,_0x3d4636]of _0x4b4677['markers'])_0x102de0[_0x1b2f('0xd0')]('revision:')||this['_markers'][_0x1b2f('0xbd')](_0x102de0,_0x3d4636);}const _0x485a4a=Array[_0x1b2f('0x5a')](this[_0x1b2f('0x65')])[_0x1b2f('0x26')](([_0x2a56ff,_0x2c2053])=>[_0x2a56ff,H(_0x2c2053)]);this[_0x1b2f('0x70')](this[_0x1b2f('0x66')],_0x485a4a,this[_0x1b2f('0x6c')]);}[_0x1b2f('0xc8')](_0x5312f0){const _0x53e1c3=JSON[_0x1b2f('0xa3')](_0x5312f0),_0x3b2d1a=this[_0x1b2f('0x32')]['editing']['view']['document'],_0x22e315=new _0x2e8905(_0x3b2d1a,_0x53e1c3[_0x1b2f('0x26')](_0x4a040c=>j(_0x4a040c,this['editor'])));return this[_0x1b2f('0x32')][_0x1b2f('0xe')][_0x1b2f('0xa9')](_0x22e315);}[_0x1b2f('0x21')](){const _0x1f2529=new Map();for(const _0x201d3e of this['_rootNames']){const _0x1864e4=new _0x5ab7a7();_0x1864e4['rootName']=_0x201d3e,_0x1f2529[_0x1b2f('0xbd')](_0x201d3e,_0x1864e4);}this[_0x1b2f('0x70')](Number['NEGATIVE_INFINITY'],_0x1f2529,[]);}[_0x1b2f('0x70')](_0x45fab9,_0x35f804,_0x2f1cdc){const _0x1c4d06=new Map(_0x35f804),_0x26a9d1=new Map();for(const [_0x30dd5c,_0x505aa9]of _0x2f1cdc)_0x26a9d1[_0x1b2f('0xbd')](_0x30dd5c,{'start':_0x505aa9[_0x1b2f('0x2b')][_0x1b2f('0x93')](),'end':_0x505aa9[_0x1b2f('0x47')][_0x1b2f('0x93')](),'rootName':_0x505aa9['root']['rootName']});this[_0x1b2f('0xc3')][_0x1b2f('0xbd')](_0x45fab9,{'roots':_0x1c4d06,'markers':_0x26a9d1});}['_removeMetaData'](_0xe67f31){this[_0x1b2f('0xc3')]['delete'](_0xe67f31);}[_0x1b2f('0x12')](){this[_0x1b2f('0x55')](),this['_lastFrom']=-0x1,this[_0x1b2f('0x66')]=-0x1,this[_0x1b2f('0xc3')]['clear'](),this['init'](this[_0x1b2f('0x6')]);}['_reset'](){this[_0x1b2f('0x87')][_0x1b2f('0x8f')](),this[_0x1b2f('0x72')][_0x1b2f('0x8f')](),this[_0x1b2f('0x65')]['clear'](),this[_0x1b2f('0x69')][_0x1b2f('0x8f')](),this[_0x1b2f('0x44')]['clear'](),this[_0x1b2f('0xc4')]['clear'](),this[_0x1b2f('0x6c')][_0x1b2f('0x8f')](),this[_0x1b2f('0xe6')]=0x1,this['_startingRevisionId']=this[_0x1b2f('0xe6')];}[_0x1b2f('0x36')](_0x2540e0,_0x5ae429=null){let _0x11487f=null;_0x2540e0['is'](_0x1b2f('0x28'))||(_0x11487f=new _0x5731e8(_0x2540e0[_0x1b2f('0x88')],{'vid_start':null===_0x5ae429?this[_0x1b2f('0xe6')]++:_0x5ae429++}));const _0x48b124=[];for(const _0x322ed7 of _0x2540e0[_0x1b2f('0x3a')]())if(_0x322ed7['is'](_0x1b2f('0xdb'))){_0x48b124[_0x1b2f('0xd2')](this['_makeIdsRoot'](_0x322ed7,_0x5ae429));const _0x330170=_0x48b124[_0x48b124[_0x1b2f('0x6d')]-0x1];null!==_0x5ae429&&(_0x5ae429=_0x330170['is']('element',_0x1b2f('0xdf'))?_0x330170[_0x1b2f('0xb')](_0x1b2f('0xa8'))+0x1:_0x330170[_0x1b2f('0xb')](_0x1b2f('0x35'))+0x1);}else for(let _0x3b548c=0x0;_0x3b548c<_0x322ed7[_0x1b2f('0xf2')];_0x3b548c++)_0x48b124['push'](new _0x5731e8(_0x1b2f('0xdf'),{'vid':null===_0x5ae429?this[_0x1b2f('0xe6')]++:_0x5ae429++}));if(_0x2540e0['is'](_0x1b2f('0x28'))){const _0x4b0cfd=new _0x5ab7a7(_0x48b124);return _0x4b0cfd[_0x1b2f('0x59')]=_0x2540e0[_0x1b2f('0x59')],_0x4b0cfd;}return _0x11487f[_0x1b2f('0x4a')](_0x1b2f('0x35'),null===_0x5ae429?this[_0x1b2f('0xe6')]++:_0x5ae429++),_0x11487f['_insertChild'](0x0,_0x48b124),_0x11487f;}[_0x1b2f('0x85')](_0x2ce7ce,_0x3839bd,_0x440067){this[_0x1b2f('0x55')]();const {roots:_0x29e070,markers:_0x21c1a8}=this[_0x1b2f('0xc3')][_0x1b2f('0x17')](_0x2ce7ce);this[_0x1b2f('0x69')]=new Map(_0x29e070);for(const [_0x781120,_0x58e332]of this[_0x1b2f('0x69')])if('$graveyard'!==_0x781120&&(this[_0x1b2f('0x65')][_0x1b2f('0xbd')](_0x781120,H(_0x58e332)),_0x440067)){const _0x46a075=this[_0x1b2f('0xe6')];this['_idsRoots'][_0x1b2f('0xbd')](_0x781120,this[_0x1b2f('0x36')](_0x58e332)),this[_0x1b2f('0xc4')][_0x1b2f('0xbd')](_0x781120,this[_0x1b2f('0x36')](_0x58e332,_0x46a075));}this[_0x1b2f('0x7d')]=this[_0x1b2f('0xe6')],this[_0x1b2f('0x65')][_0x1b2f('0xbd')](_0x1b2f('0x39'),H(this[_0x1b2f('0x69')][_0x1b2f('0x17')](_0x1b2f('0x39')))),_0x440067&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this[_0x1b2f('0x69')]['get']('$graveyard')));for(const [_0x66f43,_0x112e0d]of _0x21c1a8){const _0x3eb77f=this[_0x1b2f('0x69')][_0x1b2f('0x17')](_0x112e0d[_0x1b2f('0x59')]),_0x1defa6=this[_0x1b2f('0x65')][_0x1b2f('0x17')](_0x112e0d['rootName']),_0x181306=new _0x561f91(this['_fixPosition'](_0x112e0d[_0x1b2f('0x2b')],_0x3eb77f),this[_0x1b2f('0xf7')](_0x112e0d[_0x1b2f('0x47')],_0x3eb77f)),_0x5f1f42=this[_0x1b2f('0x45')](_0x181306,_0x1defa6);_0x3eb77f[_0x1b2f('0x3b')][_0x1b2f('0xbd')](_0x66f43,_0x181306),this[_0x1b2f('0x6c')][_0x1b2f('0xbd')](_0x66f43,_0x5f1f42);}this[_0x1b2f('0x4c')](_0x2ce7ce,_0x3839bd,_0x440067);}[_0x1b2f('0x4c')](_0x4ab86a,_0x49ab0d,_0x48c8b8){for(const _0x2d1310 of this[_0x1b2f('0x6')][_0x1b2f('0x27')](_0x4ab86a,_0x49ab0d))this[_0x1b2f('0x64')](_0x2d1310,_0x48c8b8);for(const _0x2c6855 of this[_0x1b2f('0x65')]['values']())_0x2c6855[_0x1b2f('0x3b')]['clear']();for(const [_0x24a027,_0x2974e9]of this[_0x1b2f('0x6c')]){this['_diffRoots'][_0x1b2f('0x17')](_0x2974e9['root'][_0x1b2f('0x59')])[_0x1b2f('0x3b')]['set'](_0x24a027,_0x2974e9[_0x1b2f('0x93')]());}this[_0x1b2f('0x70')](_0x49ab0d,Array[_0x1b2f('0x5a')](this[_0x1b2f('0x65')])[_0x1b2f('0x26')](([_0x398f00,_0x2f82cb])=>[_0x398f00,H(_0x2f82cb)]),this[_0x1b2f('0x6c')]);}[_0x1b2f('0x40')](_0x23e74f){const _0x755e01=Array[_0x1b2f('0x5a')](this[_0x1b2f('0xc3')][_0x1b2f('0x6e')]());_0x755e01[_0x1b2f('0xd4')]((_0x588669,_0xa6daf9)=>_0x588669-_0xa6daf9),_0x755e01[_0x1b2f('0x49')]();for(const _0x31d30b of _0x755e01)if(_0x31d30b<_0x23e74f)return _0x31d30b;return this[_0x1b2f('0x21')](),Number[_0x1b2f('0xa7')];}['_copyMarkers'](_0x46068e,_0x15443f){const _0xa8903b=Array[_0x1b2f('0x5a')](_0x15443f[_0x1b2f('0x3b')])[_0x1b2f('0x26')](([_0x281ad3,_0x2e5997])=>[_0x281ad3,this['_fixRange'](_0x2e5997,_0x46068e)]);_0x46068e[_0x1b2f('0x3b')]=new Map(_0xa8903b);}[_0x1b2f('0xcd')](_0x552ee1){for(const _0x41780b of this[_0x1b2f('0x6c')]['values']()){const _0x4b033c=_0x41780b[_0x1b2f('0xe3')](_0x552ee1),_0x408619=_0x561f91['_createFromRanges'](_0x4b033c);_0x41780b[_0x1b2f('0x2b')]=_0x408619[_0x1b2f('0x2b')],_0x41780b[_0x1b2f('0x47')]=_0x408619['end'];}}['_handleOperation'](_0x34b3fd,_0x2a5bf9){const _0x5637cc=this[_0x1b2f('0x37')](_0x34b3fd,this['_diffRoots']);if(_0x1b2f('0x14')!==_0x34b3fd[_0x1b2f('0x9b')]&&(_0x5637cc[_0x1b2f('0xe2')](),this[_0x1b2f('0xcd')](_0x5637cc)),_0x2a5bf9)switch(_0x5637cc[_0x1b2f('0x9b')]){case _0x1b2f('0x63'):this['_handleInsertOperation'](_0x34b3fd);break;case _0x1b2f('0xec'):case _0x1b2f('0x8c'):case _0x1b2f('0xc7'):this[_0x1b2f('0x9a')](_0x34b3fd);break;case _0x1b2f('0xe0'):this['_handleMergeOperation'](_0x34b3fd);break;case'split':this[_0x1b2f('0xe4')](_0x34b3fd);break;case _0x1b2f('0x14'):this[_0x1b2f('0xeb')](_0x34b3fd);}}[_0x1b2f('0x37')](_0x382dfa,_0x1d4680){const _0x34b127=_0x382dfa[_0x1b2f('0x93')]();return _0x34b127[_0x1b2f('0x7')]=_0x382dfa['_authorId'],this[_0x1b2f('0x50')](_0x34b127,_0x1d4680),_0x34b127;}[_0x1b2f('0x3c')](_0x19f361){return _0x19f361[_0x1b2f('0x26')](_0x151153=>{const _0x235e10=this[_0x1b2f('0xc0')](_0x151153);return Number(_0x151153[_0x1b2f('0x84')][_0x1b2f('0xb')](_0x235e10));});}['_generateTape'](_0x104142,_0x4d280d){if(_0x104142['is'](_0x1b2f('0xdb'),_0x1b2f('0xdf')))_0x4d280d[_0x1b2f('0xd2')]({'item':_0x104142,'type':_0x1b2f('0xd')});else{_0x104142['is'](_0x1b2f('0xdb'))&&_0x4d280d[_0x1b2f('0xd2')]({'item':_0x104142,'type':_0x1b2f('0xbe')});for(const _0x567171 of _0x104142['getChildren']())this[_0x1b2f('0x3e')](_0x567171,_0x4d280d);_0x104142['is'](_0x1b2f('0xdb'))&&_0x4d280d[_0x1b2f('0xd2')]({'item':_0x104142,'type':_0x1b2f('0x5d')});}return _0x4d280d;}['_getState'](){const _0x14b72f=this[_0x1b2f('0x32')][_0x1b2f('0x29')][_0x1b2f('0xd1')][_0x1b2f('0x8a')](),_0x2554fb=new Map(this[_0x1b2f('0x87')]),_0x1422f1=new Map(_0x2554fb),_0x361a5c=new Map(),_0x2974fe={'insertions':{},'deletions':{}},_0x77cc96={'insertions':{},'deletions':{}},_0x51b410=new Map();for(const _0x5cb043 of _0x14b72f){const _0x46023c=this[_0x1b2f('0x65')][_0x1b2f('0x17')](_0x5cb043),_0x26cdf4=this[_0x1b2f('0x69')][_0x1b2f('0x17')](_0x5cb043);_0x2974fe[_0x1b2f('0xd9')][_0x5cb043]=H(_0x46023c),_0x2974fe['deletions'][_0x5cb043]=H(_0x26cdf4),this[_0x1b2f('0x9d')](_0x2974fe[_0x1b2f('0x3d')][_0x5cb043],_0x26cdf4),this['_copyMarkers'](_0x2974fe[_0x1b2f('0xd9')][_0x5cb043],_0x46023c),_0x77cc96[_0x1b2f('0xd9')][_0x5cb043]=this[_0x1b2f('0x3e')](this[_0x1b2f('0x44')]['get'](_0x5cb043),[]),_0x77cc96['deletions'][_0x5cb043]=this[_0x1b2f('0x3e')](this[_0x1b2f('0xc4')][_0x1b2f('0x17')](_0x5cb043),[]);}for(const _0x55e2af of _0x14b72f){const _0x42aed9=_0x77cc96[_0x1b2f('0xd9')][_0x55e2af];for(const _0x3ad68c of _0x42aed9){const _0x3f54cc=this[_0x1b2f('0xc0')](_0x3ad68c),_0x1a8a64=_0x3ad68c['item']['getAttribute'](_0x3f54cc);_0x1422f1[_0x1b2f('0xbb')](_0x1a8a64),_0x1a8a64>=this['_startingRevisionId']&&_0x361a5c[_0x1b2f('0xbd')](_0x1a8a64,_0x2554fb[_0x1b2f('0x17')](_0x1a8a64));}}for(const _0x44467a of _0x14b72f){const _0x46f659=_0x77cc96[_0x1b2f('0xd9')][_0x44467a],_0x35fdf5=this[_0x1b2f('0x3c')](_0x77cc96[_0x1b2f('0x3d')][_0x44467a]);let _0x18e2ad=0x0;for(const _0x12e531 of _0x46f659){const _0x784ce4=this[_0x1b2f('0xc0')](_0x12e531),_0x2960ff=_0x12e531[_0x1b2f('0x84')]['getAttribute'](_0x784ce4);if(!_0x361a5c['has'](_0x2960ff)&&!_0x51b410[_0x1b2f('0x96')](_0x2960ff)){if(_0x1422f1[_0x1b2f('0x96')](_0x2960ff))_0x18e2ad++;else{if(_0x2960ff!=_0x35fdf5[_0x18e2ad]){const _0x150715=_0x2554fb[_0x1b2f('0x17')](_0x2960ff)||_0x2554fb[_0x1b2f('0x17')](_0x35fdf5[_0x18e2ad]);for(;_0x2960ff!=_0x35fdf5[_0x18e2ad];)_0x1422f1[_0x1b2f('0x96')](_0x35fdf5[_0x18e2ad])||(_0x51b410[_0x1b2f('0xbd')](_0x35fdf5[_0x18e2ad],_0x150715),_0x2554fb[_0x1b2f('0xbd')](_0x35fdf5[_0x18e2ad],_0x150715)),_0x18e2ad++;}_0x18e2ad++;}}}}for(const _0x3afb64 of _0x14b72f){const _0x2a32d8=_0x77cc96[_0x1b2f('0xd9')][_0x3afb64];for(const _0x1c93b5 of _0x2a32d8){const _0x66b7ea=this[_0x1b2f('0xc0')](_0x1c93b5),_0x41db39=_0x1c93b5[_0x1b2f('0x84')][_0x1b2f('0xb')](_0x66b7ea);if(_0x51b410['has'](_0x41db39)){const _0x4a5007=_0x51b410[_0x1b2f('0x17')](_0x41db39);_0x1422f1[_0x1b2f('0x96')](_0x41db39)||_0x1422f1[_0x1b2f('0xbd')](_0x41db39,{..._0x4a5007}),_0x361a5c['set'](_0x41db39,{..._0x4a5007});}}}for(const _0x191287 of _0x1422f1[_0x1b2f('0x6e')]())_0x191287>=this[_0x1b2f('0x7d')]&&_0x1422f1['delete'](_0x191287);const _0x2f1d32=new Map();for(const _0x48656c of _0x14b72f){let _0x32c203=_0x77cc96['insertions'][_0x48656c];for(const _0x4a23ab of _0x32c203)if(_0x4a23ab[_0x1b2f('0x84')]['is'](_0x1b2f('0xdb'),_0x1b2f('0x1d'))){const _0x244de6=this[_0x1b2f('0xc0')](_0x4a23ab),_0x31aa24=_0x4a23ab[_0x1b2f('0x84')]['getAttribute'](_0x244de6);if(_0x361a5c['has'](_0x31aa24)){const _0x5f47d9=_0x4a23ab['item'][_0x1b2f('0xb4')][_0x1b2f('0xb4')][_0x1b2f('0xb')](_0x1b2f('0xea')),_0x413612=_0x2f1d32['get'](_0x5f47d9)||new Set();_0x413612[_0x1b2f('0x83')](_0x361a5c['get'](_0x31aa24)[_0x1b2f('0xb5')]),_0x2f1d32[_0x1b2f('0xbd')](_0x5f47d9,_0x413612);}}_0x32c203=_0x77cc96[_0x1b2f('0x3d')][_0x48656c];for(const _0x581a18 of _0x32c203)if(_0x581a18[_0x1b2f('0x84')]['is']('element',_0x1b2f('0x1d'))){const _0x2a85b1=this[_0x1b2f('0xc0')](_0x581a18),_0x3c1074=_0x581a18['item']['getAttribute'](_0x2a85b1);if(_0x1422f1[_0x1b2f('0x96')](_0x3c1074)){const _0x2a94cb=_0x581a18[_0x1b2f('0x84')][_0x1b2f('0xb4')][_0x1b2f('0xb4')][_0x1b2f('0xb')]('vid_start'),_0x35efe6=_0x2f1d32[_0x1b2f('0x17')](_0x2a94cb)||new Set();_0x35efe6[_0x1b2f('0x83')](_0x1422f1[_0x1b2f('0x17')](_0x3c1074)[_0x1b2f('0xb5')]),_0x2f1d32[_0x1b2f('0xbd')](_0x2a94cb,_0x35efe6);}}for(const _0x58ae9a of _0x2f1d32[_0x1b2f('0x6e')]())(_0x361a5c['has'](_0x58ae9a)||_0x1422f1[_0x1b2f('0x96')](_0x58ae9a))&&_0x2f1d32[_0x1b2f('0xbb')](_0x58ae9a);}for(const _0x334c3d of _0x14b72f){const _0x2abb77=_0x77cc96[_0x1b2f('0xd9')][_0x334c3d];let _0x42b2c2=null,_0x118292=null;for(const _0xeb37e5 of _0x2abb77){const _0x240ca6=this[_0x1b2f('0xc0')](_0xeb37e5),_0x5d7fb5=_0xeb37e5[_0x1b2f('0x84')]['getAttribute'](_0x240ca6),_0x4bac70=_0x2f1d32[_0x1b2f('0x17')](_0x5d7fb5);_0x4bac70&&_0x1b2f('0xbe')==_0xeb37e5[_0x1b2f('0x9b')]&&(_0x42b2c2=Array[_0x1b2f('0x5a')](_0x4bac70)[0x0],_0x118292=_0xeb37e5[_0x1b2f('0x84')]['getAttribute'](_0x1b2f('0x35'))),_0x42b2c2&&(_0x1422f1[_0x1b2f('0xbd')](_0x5d7fb5,{'userId':_0x42b2c2}),_0x361a5c[_0x1b2f('0xbd')](_0x5d7fb5,{'userId':_0x42b2c2})),_0x5d7fb5==_0x118292&&(_0x42b2c2=null,_0x118292=null);}}const _0x8d797e={},_0x2d8aa5=new Set();for(const _0x5f059b of _0x14b72f){const _0x37a736=_0x2974fe['deletions'][_0x5f059b],_0x28f582=_0x2974fe[_0x1b2f('0xd9')][_0x5f059b];for(const {userId:_0x152114}of this[_0x1b2f('0x72')][_0x1b2f('0xf3')]())null!==_0x152114&&_0x2d8aa5[_0x1b2f('0x83')](_0x152114);this[_0x1b2f('0x20')](_0x28f582,_0x77cc96[_0x1b2f('0xd9')][_0x5f059b],_0x361a5c,_0x1b2f('0x33'),_0x2d8aa5),this[_0x1b2f('0x20')](_0x37a736,_0x77cc96[_0x1b2f('0x3d')][_0x5f059b],_0x1422f1,'deletion',_0x2d8aa5),_0x8d797e[_0x5f059b]={'insertions':this['_prepareViewToSave'](_0x28f582),'deletions':this[_0x1b2f('0xab')](_0x37a736)};}return{'diffData':_0x8d797e,'authorsIds':Array['from'](_0x2d8aa5)};}[_0x1b2f('0x8d')](_0x3392fc){for(const [,_0x364c8d]of _0x3392fc[_0x1b2f('0x3b')]){const _0x4e0b18=_0x364c8d['start'][_0x1b2f('0x46')]()[_0x1b2f('0x74')](_0x27ee05=>_0x1b2f('0x1d')==_0x27ee05[_0x1b2f('0x88')]);for(const _0x1f087e of _0x4e0b18)0x1==_0x1f087e[_0x1b2f('0x71')]&&_0x1f087e[_0x1b2f('0xc2')](0x0)['is']('element',_0x1b2f('0xdc'))&&_0x1f087e[_0x1b2f('0xc2')](0x0)[_0x1b2f('0x4a')](_0x1b2f('0x81'),!0x0);}}[_0x1b2f('0xab')](_0x3e17ed){this[_0x1b2f('0x8d')](_0x3e17ed);const _0x59f743=this[_0x1b2f('0x32')][_0x1b2f('0xe')][_0x1b2f('0x2c')](_0x3e17ed,{}),_0x35850f=Array['from'](_0x59f743[_0x1b2f('0x3a')]())[_0x1b2f('0x26')](_0x4ab8ba=>this[_0x1b2f('0x7e')](_0x4ab8ba));return JSON[_0x1b2f('0xed')](_0x35850f);}['_getViewJson'](_0x69a6bc){if(_0x69a6bc['is'](_0x1b2f('0xd')))return _0x69a6bc[_0x1b2f('0xe')];return{'type':Object['keys'](J)['find'](_0x415a59=>_0x69a6bc instanceof J[_0x415a59]),'name':_0x69a6bc[_0x1b2f('0x88')],'attributes':Array['from'](_0x69a6bc[_0x1b2f('0x1c')]()),'children':Array[_0x1b2f('0x5a')](_0x69a6bc[_0x1b2f('0x3a')]())[_0x1b2f('0x26')](_0x3199b5=>this[_0x1b2f('0x7e')](_0x3199b5))};}[_0x1b2f('0x20')](_0x2d1b4c,_0x5acdb1,_0x429ce9,_0x3aa6b5,_0x2fe03c){let _0xd63c2a=null,_0x591ceb=null,_0x1b7c2f=0x0;const _0x44afab=this['editor'][_0x1b2f('0x29')];for(let _0x51eef6=0x0;_0x51eef6<_0x5acdb1[_0x1b2f('0x6d')];_0x51eef6++){const _0x453438=this['_getVidAttributeName'](_0x5acdb1[_0x51eef6]),_0x138457=_0x5acdb1[_0x51eef6][_0x1b2f('0x84')]['getAttribute'](_0x453438),_0x255e3b=_0x429ce9[_0x1b2f('0x17')](_0x138457),_0x57b4d8=_0x51eef6==_0x5acdb1[_0x1b2f('0x6d')]-0x1;(!_0xd63c2a&&_0x255e3b&&(_0xd63c2a=_0x255e3b,_0x591ceb=_0x5acdb1[_0x51eef6]),_0xd63c2a&&(!_0x255e3b||_0x255e3b[_0x1b2f('0xb5')]!=_0xd63c2a[_0x1b2f('0xb5')]))&&(_0x1e2c26(_0x255e3b,q(_0x591ceb,_0x2d1b4c,_0x44afab),q(_0x5acdb1[_0x51eef6],_0x2d1b4c,_0x44afab)),_0xd63c2a=_0x255e3b||null,_0x591ceb=_0x255e3b?_0x5acdb1[_0x51eef6]:null),_0xd63c2a&&_0x57b4d8&&_0x1e2c26(_0x255e3b,q(_0x591ceb,_0x2d1b4c,_0x44afab),G(_0x5acdb1[_0x51eef6],_0x2d1b4c,_0x44afab));}function _0x1e2c26(_0x407305,_0x1b73d4,_0x5721f5){const _0x571389=_0xd63c2a[_0x1b2f('0xb5')],_0x140422='revision:'+_0x3aa6b5+':'+_0x571389+':'+_0x1b7c2f++,_0x113623=_0x44afab[_0x1b2f('0x43')](_0x1b73d4,_0x5721f5);_0x2d1b4c[_0x1b2f('0x3b')][_0x1b2f('0xbd')](_0x140422,_0x113623),null!==_0x571389&&_0x2fe03c[_0x1b2f('0x83')](_0x571389);}}[_0x1b2f('0xc0')](_0x4ecbab){switch(_0x4ecbab['type']){case _0x1b2f('0xbe'):return'vid_start';case _0x1b2f('0x5d'):return _0x1b2f('0x35');default:return _0x1b2f('0xa8');}}[_0x1b2f('0x50')](_0x3e8233,_0x5914b6){_0x3e8233['baseVersion']=null;for(const _0x28a854 in _0x3e8233){if(_0x3e8233[_0x28a854]instanceof _0x57323c){const _0xe6c7f8=_0x5914b6[_0x1b2f('0x17')](_0x3e8233[_0x28a854]['root'][_0x1b2f('0x59')]);_0x3e8233[_0x28a854]=this[_0x1b2f('0xf7')](_0x3e8233[_0x28a854],_0xe6c7f8);}if(_0x3e8233[_0x28a854]instanceof _0x561f91){const _0x24ba60=_0x5914b6[_0x1b2f('0x17')](_0x3e8233[_0x28a854]['root'][_0x1b2f('0x59')]);_0x3e8233[_0x28a854]=this['_fixRange'](_0x3e8233[_0x28a854],_0x24ba60);}}_0x3e8233['root']&&(_0x3e8233[_0x1b2f('0x4f')]=_0x5914b6[_0x1b2f('0x17')](_0x3e8233[_0x1b2f('0x4f')][_0x1b2f('0x59')]));}['_fixRange'](_0x16e989,_0x4d01fc){return this[_0x1b2f('0x32')][_0x1b2f('0x29')][_0x1b2f('0x43')](this[_0x1b2f('0xf7')](_0x16e989[_0x1b2f('0x2b')],_0x4d01fc),this[_0x1b2f('0xf7')](_0x16e989['end'],_0x4d01fc));}[_0x1b2f('0xf7')](_0x44d1f4,_0xe67dc3){return this[_0x1b2f('0x32')][_0x1b2f('0x29')][_0x1b2f('0xe5')](_0xe67dc3,_0x44d1f4[_0x1b2f('0x4b')],_0x44d1f4[_0x1b2f('0x3')]);}['_handleInsertOperation'](_0x1f169b){const _0x5b9ada=this[_0x1b2f('0x44')][_0x1b2f('0x17')](_0x1f169b[_0x1b2f('0xa6')][_0x1b2f('0x4f')][_0x1b2f('0x59')]),_0x1086cd=this[_0x1b2f('0xf7')](_0x1f169b[_0x1b2f('0xa6')],_0x5b9ada),_0x2e7827=null===_0x1f169b[_0x1b2f('0x7')]?null:_0x1f169b[_0x1b2f('0x7')]||this[_0x1b2f('0x32')][_0x1b2f('0x1a')]['get']('Users')['me']['id'],_0x262477=_0x1086cd[_0x1b2f('0xb4')],_0x1bd13b=this[_0x1b2f('0xe6')],_0x576062=[];for(const _0x562daa of _0x1f169b[_0x1b2f('0xba')])if(_0x562daa['is']('element'))_0x576062['push'](this[_0x1b2f('0x36')](_0x562daa));else for(let _0x2ffe67=0x0;_0x2ffe67<_0x562daa['offsetSize'];_0x2ffe67++)_0x576062[_0x1b2f('0xd2')](new _0x5731e8('$text',{'vid':this[_0x1b2f('0xe6')]++}));const _0x451b6a=this['_revisionId'];for(let _0x2cb5ec=_0x1bd13b;_0x2cb5ec<_0x451b6a;_0x2cb5ec++)this[_0x1b2f('0x87')][_0x1b2f('0xbd')](_0x2cb5ec,{'userId':_0x2e7827});_0x262477['_insertChild'](_0x1086cd[_0x1b2f('0xf5')],_0x576062);}[_0x1b2f('0x9a')](_0x4db8f2){(_0x4db8f2=this[_0x1b2f('0x37')](_0x4db8f2,this[_0x1b2f('0x44')]))[_0x1b2f('0xe2')]();const _0x275fbe=null===_0x4db8f2[_0x1b2f('0x7')]?null:_0x4db8f2[_0x1b2f('0x7')]||this[_0x1b2f('0x32')][_0x1b2f('0x1a')][_0x1b2f('0x17')]('Users')['me']['id'],_0x23a4ea=_0x4db8f2[_0x1b2f('0xd5')](),_0x197270=_0x23a4ea['parent'],_0x962f66=_0x23a4ea[_0x1b2f('0xf5')];!function _0x58b34f(_0x46355e,_0x1f53b7,_0x15890b,_0x4b9ef3){for(let _0x2cdd36=_0x15890b;_0x2cdd36<_0x4b9ef3;_0x2cdd36++){const _0x1323a5=_0x1f53b7['getChild'](_0x2cdd36);_0x1323a5['is']('element',_0x1b2f('0xdf'))?_0x46355e['set'](_0x1323a5[_0x1b2f('0xb')](_0x1b2f('0xa8')),{'userId':_0x275fbe}):(_0x46355e[_0x1b2f('0xbd')](_0x1323a5['getAttribute'](_0x1b2f('0xea')),{'userId':_0x275fbe}),_0x58b34f(_0x46355e,_0x1323a5,0x0,_0x1323a5[_0x1b2f('0x71')]),_0x46355e['set'](_0x1323a5[_0x1b2f('0xb')](_0x1b2f('0x35')),{'userId':_0x275fbe}));}}(this[_0x1b2f('0x87')],_0x197270,_0x962f66,_0x962f66+_0x4db8f2['howMany']);}['_handleMergeOperation'](_0x2de3a9){const _0x2fe136=null===(_0x2de3a9=this[_0x1b2f('0x37')](_0x2de3a9,this[_0x1b2f('0x44')]))[_0x1b2f('0x7')]?null:_0x2de3a9[_0x1b2f('0x7')]||this[_0x1b2f('0x32')]['plugins']['get'](_0x1b2f('0x6b'))['me']['id'],_0x29a6be=_0x2de3a9[_0x1b2f('0xbf')][_0x1b2f('0xb4')],_0x50334f=_0x2de3a9[_0x1b2f('0x56')]['parent'],_0x4bba29=_0x29a6be[_0x1b2f('0xb')](_0x1b2f('0x35')),_0x210197=_0x50334f[_0x1b2f('0xb')](_0x1b2f('0xea'));_0x29a6be[_0x1b2f('0x4a')](_0x1b2f('0x35'),_0x50334f[_0x1b2f('0xb')](_0x1b2f('0x35'))),_0x50334f['_setAttribute'](_0x1b2f('0x35'),_0x4bba29),this[_0x1b2f('0x87')][_0x1b2f('0xbd')](_0x210197,{'userId':_0x2fe136}),this[_0x1b2f('0x87')]['set'](_0x4bba29,{'userId':_0x2fe136}),_0x2de3a9[_0x1b2f('0xe2')]();}[_0x1b2f('0xe4')](_0x4cacbc){const _0x52e5a8=null===(_0x4cacbc=this[_0x1b2f('0x37')](_0x4cacbc,this[_0x1b2f('0x44')]))[_0x1b2f('0x7')]?null:_0x4cacbc[_0x1b2f('0x7')]||this[_0x1b2f('0x32')][_0x1b2f('0x1a')][_0x1b2f('0x17')]('Users')['me']['id'],_0x59961b=_0x4cacbc[_0x1b2f('0xa1')],_0x27732d=_0x4cacbc[_0x1b2f('0x8')]['parent'];_0x4cacbc[_0x1b2f('0xe2')]();const _0x135a66=_0x27732d[_0x1b2f('0xb')](_0x1b2f('0x35')),_0x40ecae=_0x4cacbc[_0x1b2f('0x4d')][_0x1b2f('0x30')];if(_0x59961b){const _0x3cb45b=_0x40ecae[_0x1b2f('0xb')](_0x1b2f('0x35')),_0x29cca5=_0x27732d[_0x1b2f('0xb')](_0x1b2f('0x35'));_0x27732d['_setAttribute'](_0x1b2f('0x35'),_0x3cb45b),_0x40ecae['_setAttribute'](_0x1b2f('0x35'),_0x29cca5),this[_0x1b2f('0x87')]['set'](_0x27732d[_0x1b2f('0xb')](_0x1b2f('0x35')),{'userId':_0x52e5a8}),this[_0x1b2f('0x87')]['set'](_0x40ecae[_0x1b2f('0xb')]('vid_start'),{'userId':_0x52e5a8});}else{const _0x5f0ea1=this[_0x1b2f('0xe6')]++,_0x55a90b=this[_0x1b2f('0xe6')]++;_0x27732d[_0x1b2f('0x4a')](_0x1b2f('0x35'),_0x5f0ea1),_0x40ecae[_0x1b2f('0x4a')](_0x1b2f('0xea'),_0x55a90b),_0x40ecae[_0x1b2f('0x4a')](_0x1b2f('0x35'),_0x135a66),this[_0x1b2f('0x87')][_0x1b2f('0xbd')](_0x5f0ea1,{'userId':_0x52e5a8}),this[_0x1b2f('0x87')][_0x1b2f('0xbd')](_0x55a90b,{'userId':_0x52e5a8});}}[_0x1b2f('0xeb')](_0x8a693f){if(!_0x8a693f['affectsData'])return;const _0x53b9c0=(_0x8a693f=this[_0x1b2f('0x37')](_0x8a693f,this[_0x1b2f('0x65')]))[_0x1b2f('0x8e')]?_0x8a693f[_0x1b2f('0x8e')][_0x1b2f('0x4f')]:null,_0x23ae5b=_0x8a693f[_0x1b2f('0x16')]?_0x8a693f[_0x1b2f('0x16')][_0x1b2f('0x4f')]:null;_0x53b9c0&&this[_0x1b2f('0x6c')][_0x1b2f('0xbb')](_0x8a693f[_0x1b2f('0x88')]),_0x23ae5b&&this[_0x1b2f('0x6c')]['set'](_0x8a693f[_0x1b2f('0x88')],_0x8a693f[_0x1b2f('0x16')]['clone']());const _0x3e3c80=null===_0x8a693f[_0x1b2f('0x7')]?null:_0x8a693f[_0x1b2f('0x7')]||this[_0x1b2f('0x32')][_0x1b2f('0x1a')][_0x1b2f('0x17')](_0x1b2f('0x6b'))['me']['id'],_0x15e60c=_0x8a693f[_0x1b2f('0x88')];if(!this['_touchedMarkers']['has'](_0x15e60c))return void this['_touchedMarkers'][_0x1b2f('0xbd')](_0x15e60c,{'range':_0x8a693f[_0x1b2f('0x8e')],'userId':_0x3e3c80});const _0x22898d=this[_0x1b2f('0x72')]['get'](_0x15e60c),_0x7768d5=_0x22898d[_0x1b2f('0xaf')],_0x5f3693=_0x8a693f[_0x1b2f('0x16')];null==_0x7768d5&&null==_0x5f3693||_0x7768d5&&_0x5f3693&&_0x7768d5['isEqual'](_0x5f3693)?this['_touchedMarkers'][_0x1b2f('0xbb')](_0x8a693f[_0x1b2f('0x88')]):_0x22898d[_0x1b2f('0xb5')]=_0x3e3c80;}}function H(_0xfb9b5d){const _0x34e932=new _0x5ab7a7();_0x34e932[_0x1b2f('0x59')]=_0xfb9b5d[_0x1b2f('0x59')];for(const _0x5080a8 of _0xfb9b5d[_0x1b2f('0x3a')]()){const _0x1be289=_0x5080a8[_0x1b2f('0x7a')](!0x0);_0x34e932[_0x1b2f('0x7c')](_0x1be289);}return _0x34e932;}function q(_0x275eea,_0xfd03c1,_0x5e2558){const _0x4f58d5=_0x1b2f('0x5d')==_0x275eea[_0x1b2f('0x9b')]?_0x5e2558[_0x1b2f('0x91')](_0x275eea[_0x1b2f('0x84')],'end'):_0x5e2558[_0x1b2f('0x53')](_0x275eea[_0x1b2f('0x84')]);return _0x4f58d5[_0x1b2f('0x4f')]=_0xfd03c1,_0x4f58d5;}function G(_0x5dff92,_0x1f1b2d,_0x311e92){const _0x52f232='elementStart'==_0x5dff92[_0x1b2f('0x9b')]?_0x311e92[_0x1b2f('0x91')](_0x5dff92[_0x1b2f('0x84')],0x0):_0x311e92['createPositionAfter'](_0x5dff92[_0x1b2f('0x84')]);return _0x52f232['root']=_0x1f1b2d,_0x52f232;}
23
+ const _0x9999=['_markChanges','clone','editor-initial-data-replaced-with-revision-data','setRevisionData','attributes','pluginName','string','reInit','getAncestors','_fixOperation','collaboration.channelId','_getVidAttributeName','creatorId','resolve','_copyMarkers','_isInit','createPositionBefore','$graveyard','isEnabled','_revisionId','conversion','remove','_bufferUpdate','_removeMetaData','define','dataToMarker','default','getRevisionDocumentData','root','_getBaseVids','text','document','get','_processRootBeforeSave','_isPendingUpdate','editing','_bufferedUpdates','vid','_transformMarkers','createRangeIn','_baseIdsRoots','_calculateMetaData','_getState','getUser','from','plugins','_execute','_saveEmptyMetaData','_prepareViewToSave','sort','_reset','sendBufferedUpdates','slice','data-revision-','processor','_createInitialRevision','_addPendingAction','getAttribute','documentFragment','revision-end','values','_loadRevisionData','delete','useFillerType','sourcePosition','_baseRoots','repository','vid_end','_source','stickiness','data','_findInsertionIndex','toModel','type','_fixRange','creator','elementEnd','NEGATIVE_INFINITY','view','ready','source','find','name','toVersion','createRange','insertionPosition','afterInit','getChildren','isPendingUpdate','keepParagraph','vid_start','hasContent','clear','markers','tableCell','range','_handleSplitOperation','_makeIdsRoot','_authorId','_lastFrom','_removeRevisionMarkers','element','nodes','addRevisionData','_handleMarkerOperation','getRevision','loadState','_applyOperations','keys','affectsData','graveyardPosition','fromVersion','revision-start','_handleOperation','currentRevision','markerToData','rootName','end','getNodeByPath','_markers','getLatestVersion','merge','history','RevisionsRepository','_handleMergeOperation','newRange','for','createPositionAfter','updateRevisions','getOperations','_makeRevision','$text','_idsRoots','marker','diffData','getCurrentRevisionId','getData','_touched','trim','userId','insertion','getAttributes','offset','getChild','_savedMetaData','howMany','marked','_setAttribute','_startingRevisionId','requires','Users','PendingActions','isReady','_handleInsertOperation','_initialRevisionId','init','_rootNames','createRevision','_loadState','filter','model','_update','startsWith','length','finally','_touchedMarkers','initialData','addRevision','add','_revisionDataBuilder','isEqual','_continueCurrentRevision','saveRevision','getIndex','item','childCount','includes','baseVersion','size','createdAt','Initial\x20revision','split','elementStart','parent','position','_operations','shift','getWalker','_clone','start','reverse','version','update','_fixPosition','revision','has','forEach','path','offsetSize','revision:','_appendChild','map','deletions','adapter','oldRange','getRootNames','_setConversion','toData','dataDowncast','push','getTime','_startingVersion','Empty\x20document','_cloneOperation','editor','_createCurrentRevision','_getViewJson','max','_pendingAction','_insertChild','initial','_makeModelFromViewString','locale','set','insertions','_lastTo','RevisionTracker','_diffRoots','config','createPositionFromPath','_getFromVersion','insert','children','authors','_replaceEditorDataWithRevisionData','_saveMetaData','previousPosition','buildRevisionData','_loadedStateData','revisionHistory.resumeUnsavedRevision','getRevisions','paragraph','reinsert','targetPosition','_generateTape','_handleMoveOperation','getOperation','authorsIds'];(function(_0x210ed7,_0x9999d9){const _0x20c5bb=function(_0x5e8dfd){while(--_0x5e8dfd){_0x210ed7['push'](_0x210ed7['shift']());}};_0x20c5bb(++_0x9999d9);}(_0x9999,0xee));const _0x20c5=function(_0x210ed7,_0x9999d9){_0x210ed7=_0x210ed7-0x0;let _0x20c5bb=_0x9999[_0x210ed7];return _0x20c5bb;};import{Users as _0x2b4837}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x1f6f69,PendingActions as _0x165162}from'ckeditor5/src/core';import{logWarning as _0x2cab67,uid as _0x4dc8d2}from'ckeditor5/src/utils';import{Position as _0x5b495d,Range as _0x14f5b3,Element as _0x4261db,DocumentFragment as _0x1af70e,ViewText as _0x2ae193,ViewElement as _0x57d52e,ViewContainerElement as _0x2a1184,ViewAttributeElement as _0x5c711b,ViewEmptyElement as _0x49fa1c,ViewRawElement as _0x440d63,ViewUIElement as _0x366de3,ViewDocumentFragment as _0x5406ba}from'ckeditor5/src/engine';import _0x3e508b from'./revisionsrepository';import{getTranslation as _0x4d5bdc}from'./utils/common-translations';const J={'c':_0x2a1184,'a':_0x5c711b,'e':_0x49fa1c,'r':_0x440d63,'u':_0x366de3};export default class u extends _0x1f6f69{static get[_0x20c5('0xf')](){return _0x20c5('0xec');}static get[_0x20c5('0x9f')](){return[_0x2b4837,_0x3e508b,_0x165162];}constructor(..._0x47fcc1){super(..._0x47fcc1),this[_0x20c5('0xd5')]=null,this['set']('isReady',!0x1),this[_0x20c5('0xe9')](_0x20c5('0x1c'),!0x0),this[_0x20c5('0x7c')]=null;const _0x3700eb=_0x4dc8d2();this['_source']={'history':this[_0x20c5('0xe0')][_0x20c5('0xaa')]['document'][_0x20c5('0x84')],'getLatestVersion':()=>Promise[_0x20c5('0x17')](this[_0x20c5('0xe0')][_0x20c5('0xaa')][_0x20c5('0x29')]['version']),'getCurrentRevisionId':()=>_0x3700eb},this[_0x20c5('0xb3')]=new B(this[_0x20c5('0xe0')]),this[_0x20c5('0xa4')]=this[_0x20c5('0xe0')][_0x20c5('0xee')][_0x20c5('0x2a')](_0x20c5('0x14'))||_0x20c5('0xe6'),this[_0x20c5('0xe9')](_0x20c5('0x62'),!0x1),this['_bufferedUpdates']=new Map(),this[_0x20c5('0xe0')][_0x20c5('0xee')][_0x20c5('0x22')](_0x20c5('0x1'),!0x0),this[_0x20c5('0x0')]=null,this[_0x20c5('0xe0')][_0x20c5('0x1e')][_0x20c5('0x88')]('upcast')[_0x20c5('0x23')]({'view':_0x20c5('0xcc')});}[_0x20c5('0xa5')](){this[_0x20c5('0x4c')]=this[_0x20c5('0xe0')][_0x20c5('0x37')]['get'](_0x20c5('0x85')),this[_0x20c5('0xd8')](),this['editor']['data']['on'](_0x20c5('0x59'),()=>{const _0x609dcf=this[_0x20c5('0x4c')][_0x20c5('0x73')](0x0),_0xc76ad0=_0x609dcf&&null===_0x609dcf[_0x20c5('0x55')]?_0x609dcf:null;if(this[_0x20c5('0xb5')]=!!_0xc76ad0&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor'][_0x20c5('0x37')][_0x20c5('0xcd')]('RealTimeCollaborationClient')){const _0x2dd9a2=this[_0x20c5('0x4e')][_0x20c5('0x91')](),_0x151100=this[_0x20c5('0x4c')]['getRevision'](_0x2dd9a2);if(_0x151100)this[_0x20c5('0xdd')]=_0x151100[_0x20c5('0x79')],this[_0x20c5('0xb5')]=!0x1;else{const _0xeb2e40=this['_source'][_0x20c5('0x84')][_0x20c5('0xc3')]['find'](_0xaa0635=>!_0xaa0635[_0x20c5('0x19')]),_0x1a6964=_0xeb2e40?_0xeb2e40[_0x20c5('0xbb')]:this[_0x20c5('0x4e')][_0x20c5('0x84')]['version'];_0x609dcf?(_0x609dcf[_0x20c5('0x5d')]<_0x1a6964&&_0x609dcf[_0x20c5('0xab')]({'toVersion':_0x1a6964}),this[_0x20c5('0xb5')]?(this['_source']['getCurrentRevisionId']=()=>_0xc76ad0['id'],this['_startingVersion']=_0xc76ad0[_0x20c5('0x79')]):(this[_0x20c5('0xdd')]=_0x609dcf[_0x20c5('0x5d')],this['_continueCurrentRevision']=!0x1)):(this[_0x20c5('0xdd')]=_0x1a6964,this[_0x20c5('0xb5')]=!0x1);}}else _0xc76ad0&&(this[_0x20c5('0xe0')][_0x20c5('0xaa')][_0x20c5('0x29')][_0x20c5('0x84')][_0x20c5('0xc9')]=Math[_0x20c5('0xe3')](_0xc76ad0[_0x20c5('0x5d')],this[_0x20c5('0xe0')][_0x20c5('0xaa')][_0x20c5('0x29')][_0x20c5('0x84')][_0x20c5('0xc9')]),_0xc76ad0['fromVersion']===_0xc76ad0[_0x20c5('0x5d')]?(0x0!==_0xc76ad0['fromVersion']&&(this[_0x20c5('0x4e')][_0x20c5('0x91')]=()=>_0xc76ad0['id']),this['_continueCurrentRevision']=!0x1):this[_0x20c5('0xb5')]&&(this[_0x20c5('0x4e')]['getCurrentRevisionId']=()=>_0xc76ad0['id'],this[_0x20c5('0xdd')]=_0xc76ad0[_0x20c5('0x79')])),this[_0x20c5('0xb5')]||(this[_0x20c5('0xdd')]=this['editor']['model'][_0x20c5('0x29')][_0x20c5('0xc9')]);this[_0x20c5('0xb3')][_0x20c5('0xa5')](this[_0x20c5('0x4e')][_0x20c5('0x84')]),this[_0x20c5('0x41')](this[_0x20c5('0xdd')]),this[_0x20c5('0xe1')](this['_startingVersion']),this[_0x20c5('0xd5')]&&this[_0x20c5('0x3d')]();}),this['bind'](_0x20c5('0xa2'))['to'](this,_0x20c5('0x2c'),_0x157a00=>!_0x157a00);}async[_0x20c5('0x60')](){if(this['repository'][_0x20c5('0xad')]>0x0){const _0x5f35ac=this[_0x20c5('0x4c')][_0x20c5('0x73')](0x0),_0x3f7fc4=await this[_0x20c5('0x25')](_0x5f35ac);this[_0x20c5('0xf4')](_0x3f7fc4);}}['setSource'](_0x4af4e2){this[_0x20c5('0x4e')]=_0x4af4e2;}async[_0x20c5('0xca')](){const _0x4e4c4f=await this[_0x20c5('0x4e')][_0x20c5('0x82')]();if(_0x4e4c4f>this[_0x20c5('0x7c')][_0x20c5('0x5d')]){await this['_loadState']();const _0x4c88cd=this[_0x20c5('0xf7')]({'revision':this[_0x20c5('0x7c')],'to':_0x4e4c4f});_0x4c88cd[_0x20c5('0xf3')]=_0x4c88cd[_0x20c5('0x9')]['map'](_0x476839=>this[_0x20c5('0xe0')][_0x20c5('0x37')][_0x20c5('0x2a')](_0x20c5('0xa0'))[_0x20c5('0x35')](_0x476839)),this[_0x20c5('0x7c')][_0x20c5('0xab')](_0x4c88cd);}}async['_loadState'](){this[_0x20c5('0xb5')]&&!this[_0x20c5('0x0')]&&(await this[_0x20c5('0x47')](this[_0x20c5('0x7c')]),this[_0x20c5('0xb3')]['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this[_0x20c5('0x7c')]['fromVersion'],'authors':this[_0x20c5('0x7c')]['authors'][_0x20c5('0x3e')]()});}async[_0x20c5('0xb6')](_0x10791e={},_0x3b1616=null){const _0x3b2f21=[];await this[_0x20c5('0xa8')](),this[_0x20c5('0xb5')]=!0x1,_0x3b1616>this[_0x20c5('0x7c')]['toVersion']&&(_0x3b1616=null),null===_0x3b1616&&(_0x3b1616=await this[_0x20c5('0x4e')]['getLatestVersion']());const _0x27eb38=this['_getFromVersion'](_0x3b1616),_0x3a8be2=this[_0x20c5('0xf7')]({'from':_0x27eb38,'to':_0x3b1616});if(this[_0x20c5('0x7c')][_0x20c5('0x5d')]<_0x3b1616){const _0x3ddb03=this[_0x20c5('0xf7')]({'revision':this[_0x20c5('0x7c')],'from':_0x3b1616,'to':_0x3b1616});_0x3ddb03[_0x20c5('0xf3')]=[],_0x3ddb03[_0x20c5('0x9')]=[],_0x3ddb03['id']=this[_0x20c5('0x7c')]['id'],this[_0x20c5('0x7c')][_0x20c5('0xab')](_0x3ddb03,!0x0),delete _0x3ddb03[_0x20c5('0xf3')],_0x3b2f21[_0x20c5('0xdb')](_0x3ddb03);}_0x10791e[_0x20c5('0x16')]=this[_0x20c5('0xe0')]['plugins'][_0x20c5('0x2a')](_0x20c5('0xa0'))['me']['id'],_0x10791e[_0x20c5('0x5c')]=_0x10791e[_0x20c5('0x5c')]||null,_0x10791e['id']=_0x10791e['id']||_0x4dc8d2(),_0x10791e={..._0x10791e,..._0x3a8be2};const _0x5989e7=this[_0x20c5('0x71')](_0x10791e);_0x3b2f21[_0x20c5('0xdb')](_0x10791e);const _0x375b99=this['repository'][_0x20c5('0xb7')](_0x5989e7);if(0x0!==_0x375b99){const _0x740287=this['repository'][_0x20c5('0x73')](_0x375b99-0x1);if(_0x740287[_0x20c5('0x79')]!==_0x3b1616){const _0x1d085f=this[_0x20c5('0xb3')][_0x20c5('0x92')](_0x3b1616,_0x740287[_0x20c5('0x5d')]),_0x56d634={'id':_0x740287['id'],'diffData':_0x1d085f[_0x20c5('0x90')],'authorsIds':_0x1d085f['authorsIds'],'authors':_0x1d085f[_0x20c5('0x9')][_0x20c5('0xd3')](_0x38d2b7=>this[_0x20c5('0xe0')][_0x20c5('0x37')][_0x20c5('0x2a')](_0x20c5('0xa0'))[_0x20c5('0x35')](_0x38d2b7)),'fromVersion':_0x3b1616};_0x740287===this['currentRevision']&&(_0x56d634[_0x20c5('0xbd')]=new Date(_0x10791e['createdAt'][_0x20c5('0xdc')]()+0xa)),_0x740287[_0x20c5('0xab')](_0x56d634,!0x0),delete _0x56d634[_0x20c5('0xf3')],_0x3b2f21[_0x20c5('0xdb')](_0x56d634);}}if(this[_0x20c5('0xd5')]){for(const _0x2a98ce of _0x3b2f21)this[_0x20c5('0x20')](_0x2a98ce['id'],_0x2a98ce,!0x0);this[_0x20c5('0x3d')]();}return _0x5989e7;}[_0x20c5('0x71')](_0x382c2a){const _0x311e11=this['repository'][_0x20c5('0xa7')](_0x382c2a);return this[_0x20c5('0xd5')]&&_0x311e11['on']('_update',(_0x580c8a,_0xe3294c,_0x3e6e61)=>{_0x3e6e61||(this[_0x20c5('0x20')](_0xe3294c['id'],_0xe3294c,!0x0),this[_0x20c5('0x3d')]());}),this[_0x20c5('0x4c')][_0x20c5('0xb1')](_0x311e11,this[_0x20c5('0x51')](_0x311e11)),_0x311e11;}async[_0x20c5('0x25')](_0x49d828){await this[_0x20c5('0x47')](_0x49d828);const _0x8eae43={};for(const _0x2f2ce0 in _0x49d828['diffData']){const _0x4c2d86=this[_0x20c5('0x6e')](JSON['parse'](_0x49d828[_0x20c5('0x90')][_0x2f2ce0][_0x20c5('0xea')])),_0x30b784=this[_0x20c5('0xe0')][_0x20c5('0x2d')]['view']['document'],_0x3ffab9=new _0x5406ba(_0x30b784,_0x4c2d86[_0x20c5('0xd3')](_0x1dda96=>j(_0x1dda96,this['editor'])));this['editor'][_0x20c5('0x50')][_0x20c5('0x40')][_0x20c5('0x49')](_0x20c5('0x9c')),_0x8eae43[_0x2f2ce0]=this[_0x20c5('0xe0')]['data'][_0x20c5('0x40')][_0x20c5('0xd9')](_0x3ffab9),this[_0x20c5('0xe0')][_0x20c5('0x50')]['processor']['useFillerType'](_0x20c5('0x24'));}return _0x8eae43;}[_0x20c5('0x3d')](){if(0x0===this[_0x20c5('0x2e')][_0x20c5('0xbc')])return;if(this[_0x20c5('0x2c')])return;let _0x5114c5=Array['from'](this[_0x20c5('0x2e')][_0x20c5('0x46')]());this[_0x20c5('0x2e')]['clear']();for(let _0x257703=0x0;_0x257703<_0x5114c5[_0x20c5('0xad')];_0x257703++){const _0x5eecf0=_0x5114c5[_0x257703];let _0x54e2c7=!0x1;for(const _0x11752f of Object['keys'](_0x5eecf0))void 0x0===_0x5eecf0[_0x11752f]?delete _0x5eecf0[_0x11752f]:'id'!==_0x11752f&&(_0x54e2c7=!0x0);_0x54e2c7||(_0x5114c5[_0x257703]=null);}if(_0x5114c5=_0x5114c5[_0x20c5('0xa9')](_0x1ef385=>null!==_0x1ef385),!_0x5114c5[_0x20c5('0xad')])return;for(let _0x582748=0x0;_0x582748<_0x5114c5[_0x20c5('0xad')];_0x582748++){const _0x13c51b=_0x5114c5[_0x582748];void 0x0!==_0x13c51b[_0x20c5('0x79')]&&void 0x0===_0x13c51b[_0x20c5('0x5d')]&&(_0x13c51b['toVersion']=this[_0x20c5('0x4c')][_0x20c5('0x73')](_0x13c51b['id'])[_0x20c5('0x5d')]),void 0x0!==_0x13c51b[_0x20c5('0x5d')]&&void 0x0===_0x13c51b[_0x20c5('0x79')]&&(_0x13c51b[_0x20c5('0x79')]=this[_0x20c5('0x4c')]['getRevision'](_0x13c51b['id'])[_0x20c5('0x79')]);}const _0x1d00dc=this['editor'][_0x20c5('0xee')][_0x20c5('0x2a')](_0x20c5('0x14'));this[_0x20c5('0x2c')]=!0x0,this[_0x20c5('0x42')](),this[_0x20c5('0xd5')][_0x20c5('0x8a')](_0x5114c5,_0x1d00dc)[_0x20c5('0xae')](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5c98fb=>{if(_0x5c98fb)for(const _0x66bed7 of _0x5c98fb)this[_0x20c5('0xd')]({'id':_0x66bed7['id'],'createdAt':_0x66bed7[_0x20c5('0xbd')]});this['_removePendingAction'](),this[_0x20c5('0x3d')]();});}[_0x20c5('0xf4')](_0x4d88a0){let _0x19ad72=this[_0x20c5('0xe0')][_0x20c5('0xee')]['get'](_0x20c5('0xb0'));if(void 0x0===_0x19ad72){_0x19ad72={};for(const _0x1e3b2b of this[_0x20c5('0xe0')][_0x20c5('0xaa')][_0x20c5('0x29')][_0x20c5('0xd7')]())_0x19ad72[_0x1e3b2b]='';}_0x20c5('0x10')==typeof _0x19ad72&&(_0x19ad72={'main':_0x19ad72});let _0x71ba88=!0x1;for(const _0x5d983f of Object[_0x20c5('0x76')](_0x19ad72))_0x4d88a0[_0x5d983f]&&(_0x19ad72[_0x5d983f]!==_0x4d88a0[_0x5d983f]&&''!==_0x19ad72[_0x5d983f][_0x20c5('0x94')]()&&(_0x71ba88=!0x0),_0x19ad72[_0x5d983f]=_0x4d88a0[_0x5d983f]);_0x71ba88&&_0x2cab67(_0x20c5('0xc')),this['editor'][_0x20c5('0xee')]['set']('initialData',_0x19ad72);}[_0x20c5('0x42')](){if(!this[_0x20c5('0xe4')]){const _0x1e7d9c=this[_0x20c5('0xe0')][_0x20c5('0x37')][_0x20c5('0x2a')](_0x20c5('0xa1'));this[_0x20c5('0xe4')]=_0x1e7d9c[_0x20c5('0xb2')](_0x4d5bdc(this[_0x20c5('0xe0')]['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this[_0x20c5('0xe4')]&&(this[_0x20c5('0xe0')][_0x20c5('0x37')]['get']('PendingActions')[_0x20c5('0x1f')](this[_0x20c5('0xe4')]),this[_0x20c5('0xe4')]=null);}[_0x20c5('0x51')](_0x8b55df){const _0x2d9410=this['repository'][_0x20c5('0x2')]();_0x2d9410[_0x20c5('0xc8')]();let _0x19982e=0x0;for(;_0x19982e<_0x2d9410[_0x20c5('0xad')];){const _0x43529d=_0x2d9410[_0x19982e];if(_0x43529d===this['currentRevision']){_0x19982e++;continue;}if(_0x43529d['id']===this['_initialRevisionId'])break;const _0x1673c0=_0x8b55df['toVersion']-_0x43529d[_0x20c5('0x5d')]||_0x8b55df[_0x20c5('0x79')]-_0x43529d[_0x20c5('0x79')];if(_0x1673c0>0x0)break;if(_0x1673c0<0x0)_0x19982e++;else{if(!_0x8b55df[_0x20c5('0x55')]&&_0x43529d[_0x20c5('0x55')])break;if(_0x43529d[_0x20c5('0x55')]||!_0x8b55df[_0x20c5('0x55')]){if(_0x8b55df['createdAt']>_0x43529d[_0x20c5('0xbd')])break;_0x19982e++;}else _0x19982e++;}}return _0x19982e;}['setRevisionData'](_0x524716){const _0x20f781=this[_0x20c5('0x4c')][_0x20c5('0x73')](_0x524716['id']);if(_0x524716['createdAt']&&(_0x524716[_0x20c5('0xbd')]=new Date(_0x524716[_0x20c5('0xbd')])),_0x524716[_0x20c5('0x9')]){const _0x37cf2a=this[_0x20c5('0xe0')]['plugins'][_0x20c5('0x2a')](_0x20c5('0xa0'));_0x524716[_0x20c5('0xf3')]=_0x524716['authorsIds'][_0x20c5('0xd3')](_0x56e0dc=>_0x37cf2a[_0x20c5('0x35')](_0x56e0dc));}_0x20f781[_0x20c5('0xab')](_0x524716,!0x0);}[_0x20c5('0xf7')]({revision:_0x181e3f=null,from:_0x188b90=null,to:_0x2dcae7=null}){_0x188b90=null!==_0x188b90?_0x188b90:_0x181e3f['fromVersion'],_0x2dcae7=null!==_0x2dcae7?_0x2dcae7:_0x181e3f[_0x20c5('0x5d')];const _0x27d140=this[_0x20c5('0xb3')][_0x20c5('0x92')](_0x188b90,_0x2dcae7),_0x4846e9={'diffData':_0x27d140[_0x20c5('0x90')],'authorsIds':_0x27d140[_0x20c5('0x9')],'fromVersion':_0x188b90,'toVersion':_0x2dcae7};if(!_0x181e3f||_0x2dcae7!==_0x181e3f[_0x20c5('0x5d')]){const _0x333fd1=_0x2dcae7-0x1,_0x48a049=this['_source']['history'][_0x20c5('0x8')](_0x333fd1);_0x4846e9[_0x20c5('0xbd')]=_0x48a049&&_0x48a049[_0x20c5('0xbd')]||new Date();}if(this[_0x20c5('0x0')]&&_0x188b90===this[_0x20c5('0x0')][_0x20c5('0x79')])for(const _0x10f8ad of this['_loadedStateData'][_0x20c5('0xf3')])_0x4846e9[_0x20c5('0x9')][_0x20c5('0xba')](_0x10f8ad['id'])||_0x4846e9['authorsIds']['push'](_0x10f8ad['id']);return _0x4846e9;}[_0x20c5('0x47')](_0x3c6a8a){if(!_0x3c6a8a||_0x3c6a8a[_0x20c5('0x90')])return Promise[_0x20c5('0x17')]();{const _0x5decca=this[_0x20c5('0xe0')][_0x20c5('0xee')][_0x20c5('0x2a')](_0x20c5('0x14'));return this['adapter'][_0x20c5('0x73')]({'channelId':_0x5decca,'revisionId':_0x3c6a8a['id']})['then'](_0x3f7999=>{_0x3c6a8a[_0x20c5('0x90')]=_0x3f7999['diffData'];});}}[_0x20c5('0x20')](_0x18fe52,_0x4fa948,_0x41dcb0){if(this['_bufferedUpdates'][_0x20c5('0xcd')](_0x18fe52)){const _0x59255f=this['_bufferedUpdates']['get'](_0x18fe52);_0x4fa948=_0x41dcb0?{..._0x59255f,..._0x4fa948}:{..._0x4fa948,..._0x59255f};}this[_0x20c5('0x2e')][_0x20c5('0xe9')](_0x18fe52,_0x4fa948);}[_0x20c5('0xf0')](_0x1279b7){const _0x47ca8e=this[_0x20c5('0x4c')][_0x20c5('0x2')]();_0x47ca8e['reverse'](),_0x47ca8e[_0x20c5('0xc4')]();const _0x20cd99=_0x47ca8e[_0x20c5('0x5b')](_0x1f9a97=>_0x1f9a97['toVersion']<=_0x1279b7)[_0x20c5('0x5d')];return _0x20cd99<this[_0x20c5('0xdd')]?this[_0x20c5('0xdd')]:_0x20cd99;}[_0x20c5('0x41')](_0x318093){const _0x2027be=this[_0x20c5('0x4c')][_0x20c5('0x73')](this[_0x20c5('0x4c')]['length']-0x1);if(_0x2027be)this[_0x20c5('0xa4')]=_0x2027be['id'];else{const _0x17a51c=!this[_0x20c5('0xe0')][_0x20c5('0xaa')]['document']['roots']['find'](_0x19c1d6=>this['editor']['model'][_0x20c5('0x65')](_0x19c1d6)),_0x247d72=this['editor'][_0x20c5('0x37')][_0x20c5('0x2a')]('Users')['me']['id'],_0x47cea6=_0x4d5bdc(this[_0x20c5('0xe0')][_0x20c5('0xe8')],_0x17a51c?_0x20c5('0xde'):_0x20c5('0xbe'));this[_0x20c5('0x8c')]({'from':_0x318093,'to':_0x318093,'id':this[_0x20c5('0xa4')],'name':_0x47cea6,'creatorId':_0x247d72});}}[_0x20c5('0xe1')](_0xddb72){const _0x44b130=this[_0x20c5('0x4e')][_0x20c5('0x91')]();this[_0x20c5('0x7c')]=this[_0x20c5('0x4c')][_0x20c5('0x73')](_0x44b130),this[_0x20c5('0x7c')]||(this[_0x20c5('0x7c')]=this[_0x20c5('0x8c')]({'from':_0xddb72,'to':_0xddb72,'id':_0x44b130,'name':'','creatorId':null}));}[_0x20c5('0x8c')]({name:_0xb57c02,from:_0x12156d,to:_0x424518,creatorId:_0x4a519d,id:_0x2baeb5}){const _0x3365c6=this[_0x20c5('0xf7')]({'from':_0x12156d,'to':_0x424518});_0x3365c6['name']=_0xb57c02,_0x3365c6[_0x20c5('0x16')]=_0x4a519d,_0x3365c6['id']=_0x2baeb5;const _0x4f3852=this['addRevisionData'](_0x3365c6);return this['adapter']&&this['_bufferUpdate'](_0x3365c6['id'],_0x3365c6,!0x0),_0x4f3852;}['_setConversion'](){this[_0x20c5('0xe0')][_0x20c5('0x1e')][_0x20c5('0x88')](_0x20c5('0xda'))[_0x20c5('0x7d')]({'model':_0x20c5('0xcc')});}['_removeRevisionMarkers'](_0x2aa075){return(_0x2aa075=_0x2aa075[_0x20c5('0xa9')](_0x2f0054=>!_0x2f0054[_0x20c5('0x5c')]||_0x20c5('0x7a')!==_0x2f0054[_0x20c5('0x5c')]&&_0x20c5('0x45')!==_0x2f0054[_0x20c5('0x5c')]))[_0x20c5('0xce')](_0x46e3c6=>{_0x20c5('0x10')!=typeof _0x46e3c6&&(_0x46e3c6[_0x20c5('0xf2')]=this[_0x20c5('0x6e')](_0x46e3c6['children']),_0x46e3c6['attributes']=_0x46e3c6['attributes'][_0x20c5('0xa9')](_0xe87fd4=>!_0xe87fd4[0x0]['startsWith'](_0x20c5('0x3f'))));}),_0x2aa075;}}function j(_0x1db8ae,_0x4be03b){const _0x1fcdc1=_0x4be03b['editing'][_0x20c5('0x58')]['document'];if(_0x20c5('0x10')==typeof _0x1db8ae)return new _0x2ae193(_0x1fcdc1,_0x1db8ae);{const _0x110adc=_0x1db8ae[_0x20c5('0xf2')][_0x20c5('0xd3')](_0x327825=>j(_0x327825,_0x4be03b));return new(J[_0x1db8ae['type']]||_0x57d52e)(_0x1fcdc1,_0x1db8ae[_0x20c5('0x5c')],_0x1db8ae[_0x20c5('0xe')],_0x110adc);}}class B{constructor(_0x4f8989){this[_0x20c5('0xe0')]=_0x4f8989,this[_0x20c5('0x9a')]=new Map(),this[_0x20c5('0x6d')]=-0x1,this['_lastTo']=-0x1,this[_0x20c5('0x81')]=new Map(),this['_diffRoots']=new Map(),this[_0x20c5('0x4b')]=new Map(),this[_0x20c5('0x8e')]=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this[_0x20c5('0xaf')]=new Map(),this[_0x20c5('0x1d')]=0x1,this[_0x20c5('0xa6')]=this[_0x20c5('0xe0')]['model'][_0x20c5('0x29')][_0x20c5('0xd7')](),this[_0x20c5('0xa6')]['push'](_0x20c5('0x1b'));}['init'](_0x2335ae){this[_0x20c5('0x5a')]=_0x2335ae;const _0x1eb489=new Map();for(const _0x359127 of this['_rootNames']){const _0x1a809c=H(this[_0x20c5('0xe0')][_0x20c5('0xaa')][_0x20c5('0x29')]['getRoot'](_0x359127));_0x1eb489['set'](_0x359127,_0x1a809c);}const _0x276583=Array[_0x20c5('0x36')](this[_0x20c5('0xe0')][_0x20c5('0xaa')]['markers'])[_0x20c5('0xd3')](_0x3b6ff6=>[_0x3b6ff6[_0x20c5('0x5c')],_0x3b6ff6['getRange']()]),_0x3da17e=this['source'][_0x20c5('0xc9')];this[_0x20c5('0xf5')](_0x3da17e,_0x1eb489,_0x276583),this[_0x20c5('0x9e')]=this['_revisionId'];}[_0x20c5('0x92')](_0x426a43,_0x3d9fbb){if(this[_0x20c5('0x6d')]===_0x426a43&&this[_0x20c5('0xeb')]<=_0x3d9fbb)this[_0x20c5('0x9a')]['size']>0x1&&this[_0x20c5('0x21')](this[_0x20c5('0xeb')]),this[_0x20c5('0x75')](this[_0x20c5('0xeb')],_0x3d9fbb,!0x0);else{if(!this[_0x20c5('0x9a')][_0x20c5('0xcd')](_0x426a43)){const _0x30d8e0=this['_getPreviousFrom'](_0x426a43);this[_0x20c5('0x33')](_0x30d8e0,_0x426a43,!0x1);}this[_0x20c5('0x33')](_0x426a43,_0x3d9fbb,!0x0);}return this[_0x20c5('0x6d')]=_0x426a43,this[_0x20c5('0xeb')]=_0x3d9fbb,this[_0x20c5('0x34')]();}[_0x20c5('0x74')](_0x5eda4c){this[_0x20c5('0x3c')](),this[_0x20c5('0x6d')]=_0x5eda4c[_0x20c5('0x79')],this[_0x20c5('0xeb')]=_0x5eda4c[_0x20c5('0x5d')];for(const _0x185831 in _0x5eda4c[_0x20c5('0x90')]){const _0xe2329e=this[_0x20c5('0xe7')](_0x5eda4c['diffData'][_0x185831]['deletions']);_0xe2329e[_0x20c5('0x7e')]=_0x185831,this[_0x20c5('0x4b')][_0x20c5('0xe9')](_0x185831,_0xe2329e);const _0x1840f5=this[_0x20c5('0x6b')](_0xe2329e);this[_0x20c5('0x32')]['set'](_0x185831,_0x1840f5);for(const [_0x26c1f5,_0xf510ed]of _0xe2329e[_0x20c5('0x67')]){if(!_0x26c1f5['startsWith'](_0x20c5('0xd1')))continue;const _0x252652=_0x26c1f5['split'](':')[0x2];for(const _0x29bf2b of _0xf510ed['getWalker']({'singleCharacters':!0x0})){const _0x45b441=this[_0x20c5('0x15')](_0x29bf2b),_0x500516=_0x20c5('0x56')==_0x29bf2b[_0x20c5('0x53')]?_0x29bf2b[_0x20c5('0xf6')][_0x20c5('0xcf')][_0x20c5('0x3e')](0x0,-0x1):_0x29bf2b[_0x20c5('0xf6')][_0x20c5('0xcf')],_0x5bec86=_0x1840f5[_0x20c5('0x80')](_0x500516)[_0x20c5('0x43')](_0x45b441);this['_touched'][_0x20c5('0xe9')](_0x5bec86,{'userId':_0x252652});}}}this[_0x20c5('0x9e')]=this['_revisionId'];const _0x4f195d=[...Array(this[_0x20c5('0x1d')])[_0x20c5('0x76')]()][_0x20c5('0x3e')](0x1)['filter'](_0xd7ede2=>!this[_0x20c5('0x93')][_0x20c5('0xcd')](_0xd7ede2));let _0x5ac6dc=0x0;for(const _0xc926cc in _0x5eda4c[_0x20c5('0x90')]){const _0x1fca9e=this[_0x20c5('0xe7')](_0x5eda4c[_0x20c5('0x90')][_0xc926cc][_0x20c5('0xea')]);_0x1fca9e['rootName']=_0xc926cc,this[_0x20c5('0xed')][_0x20c5('0xe9')](_0xc926cc,_0x1fca9e);const _0x3ee55e=this['_makeIdsRoot'](_0x1fca9e,Number[_0x20c5('0x57')]);this['_idsRoots'][_0x20c5('0xe9')](_0xc926cc,_0x3ee55e);for(const [_0x4a0992,_0x116572]of _0x1fca9e[_0x20c5('0x67')]){if(!_0x4a0992['startsWith'](_0x20c5('0xd1')))continue;const _0x37cda3=_0x4a0992['split'](':')[0x2];for(const _0x7b9f22 of _0x116572[_0x20c5('0xc5')]({'singleCharacters':!0x0})){const _0x4c1bba=this[_0x20c5('0x15')](_0x7b9f22),_0x599699=this[_0x20c5('0x1d')]++,_0x287220=_0x20c5('0x56')==_0x7b9f22[_0x20c5('0x53')]?_0x7b9f22[_0x20c5('0xf6')][_0x20c5('0xcf')][_0x20c5('0x3e')](0x0,-0x1):_0x7b9f22[_0x20c5('0xf6')][_0x20c5('0xcf')];_0x3ee55e['getNodeByPath'](_0x287220)[_0x20c5('0x9d')](_0x4c1bba,_0x599699),this[_0x20c5('0x93')][_0x20c5('0xe9')](_0x599699,{'userId':_0x37cda3});}}for(const _0x14ab42 of this['editor']['model'][_0x20c5('0x31')](_0x1fca9e)['getWalker']({'singleCharacters':!0x0})){const _0x5c91e6=this[_0x20c5('0x15')](_0x14ab42),_0xb9b17d=_0x20c5('0x56')==_0x14ab42[_0x20c5('0x53')]?_0x14ab42[_0x20c5('0xf6')]['path']['slice'](0x0,-0x1):_0x14ab42[_0x20c5('0xf6')][_0x20c5('0xcf')],_0x5f1502=_0x3ee55e[_0x20c5('0x80')](_0xb9b17d);_0x5f1502[_0x20c5('0x43')](_0x5c91e6)>0x0||_0x5f1502['_setAttribute'](_0x5c91e6,_0x4f195d[_0x5ac6dc++]);}const _0x336492=new _0x1af70e();_0x336492['rootName']='$graveyard',this[_0x20c5('0x4b')][_0x20c5('0xe9')](_0x20c5('0x1b'),_0x336492),this[_0x20c5('0x32')]['set'](_0x20c5('0x1b'),this[_0x20c5('0x6b')](_0x336492,0x1));const _0x3c8cc4=new _0x1af70e();_0x3c8cc4[_0x20c5('0x7e')]=_0x20c5('0x1b'),this[_0x20c5('0xed')][_0x20c5('0xe9')](_0x20c5('0x1b'),_0x3c8cc4),this[_0x20c5('0x8e')]['set'](_0x20c5('0x1b'),this[_0x20c5('0x6b')](_0x3c8cc4,0x1));for(const [_0xe3cba8,_0x1849ae]of _0x1fca9e[_0x20c5('0x67')])_0xe3cba8[_0x20c5('0xac')](_0x20c5('0xd1'))||this[_0x20c5('0x81')]['set'](_0xe3cba8,_0x1849ae);}const _0x115e39=Array['from'](this[_0x20c5('0xed')])[_0x20c5('0xd3')](([_0x377e5d,_0x525b2e])=>[_0x377e5d,H(_0x525b2e)]);this[_0x20c5('0xf5')](this[_0x20c5('0xeb')],_0x115e39,this[_0x20c5('0x81')]);}['_makeModelFromViewString'](_0x46d957){const _0x250382=JSON['parse'](_0x46d957),_0x11e25b=this[_0x20c5('0xe0')][_0x20c5('0x2d')][_0x20c5('0x58')][_0x20c5('0x29')],_0x2401ca=new _0x5406ba(_0x11e25b,_0x250382[_0x20c5('0xd3')](_0x1c093b=>j(_0x1c093b,this[_0x20c5('0xe0')])));return this[_0x20c5('0xe0')]['data'][_0x20c5('0x52')](_0x2401ca);}[_0x20c5('0x39')](){const _0x2bdc19=new Map();for(const _0x4924d6 of this['_rootNames']){const _0x327894=new _0x1af70e();_0x327894['rootName']=_0x4924d6,_0x2bdc19[_0x20c5('0xe9')](_0x4924d6,_0x327894);}this[_0x20c5('0xf5')](Number[_0x20c5('0x57')],_0x2bdc19,[]);}[_0x20c5('0xf5')](_0x5f2bb5,_0x438927,_0x5f2506){const _0x1fd68e=new Map(_0x438927),_0x5ab638=new Map();for(const [_0x35e9af,_0x4fb203]of _0x5f2506)_0x5ab638[_0x20c5('0xe9')](_0x35e9af,{'start':_0x4fb203[_0x20c5('0xc7')]['clone'](),'end':_0x4fb203[_0x20c5('0x7f')][_0x20c5('0xb')](),'rootName':_0x4fb203[_0x20c5('0x26')]['rootName']});this[_0x20c5('0x9a')][_0x20c5('0xe9')](_0x5f2bb5,{'roots':_0x1fd68e,'markers':_0x5ab638});}['_removeMetaData'](_0x116e3e){this[_0x20c5('0x9a')][_0x20c5('0x48')](_0x116e3e);}[_0x20c5('0x11')](){this['_reset'](),this[_0x20c5('0x6d')]=-0x1,this[_0x20c5('0xeb')]=-0x1,this[_0x20c5('0x9a')]['clear'](),this[_0x20c5('0xa5')](this[_0x20c5('0x5a')]);}[_0x20c5('0x3c')](){this[_0x20c5('0x93')][_0x20c5('0x66')](),this[_0x20c5('0xaf')]['clear'](),this[_0x20c5('0xed')][_0x20c5('0x66')](),this[_0x20c5('0x4b')]['clear'](),this[_0x20c5('0x8e')][_0x20c5('0x66')](),this[_0x20c5('0x32')][_0x20c5('0x66')](),this[_0x20c5('0x81')][_0x20c5('0x66')](),this[_0x20c5('0x1d')]=0x1,this[_0x20c5('0x9e')]=this[_0x20c5('0x1d')];}[_0x20c5('0x6b')](_0x290c89,_0xe4a6be=null){let _0x85820=null;_0x290c89['is']('documentFragment')||(_0x85820=new _0x4261db(_0x290c89['name'],{'vid_start':null===_0xe4a6be?this[_0x20c5('0x1d')]++:_0xe4a6be++}));const _0x325918=[];for(const _0x28c29b of _0x290c89[_0x20c5('0x61')]())if(_0x28c29b['is'](_0x20c5('0x6f'))){_0x325918['push'](this[_0x20c5('0x6b')](_0x28c29b,_0xe4a6be));const _0x3fd6d0=_0x325918[_0x325918['length']-0x1];null!==_0xe4a6be&&(_0xe4a6be=_0x3fd6d0['is'](_0x20c5('0x6f'),_0x20c5('0x8d'))?_0x3fd6d0[_0x20c5('0x43')]('vid')+0x1:_0x3fd6d0['getAttribute'](_0x20c5('0x4d'))+0x1);}else for(let _0x382145=0x0;_0x382145<_0x28c29b[_0x20c5('0xd0')];_0x382145++)_0x325918['push'](new _0x4261db(_0x20c5('0x8d'),{'vid':null===_0xe4a6be?this[_0x20c5('0x1d')]++:_0xe4a6be++}));if(_0x290c89['is'](_0x20c5('0x44'))){const _0x23c1df=new _0x1af70e(_0x325918);return _0x23c1df['rootName']=_0x290c89[_0x20c5('0x7e')],_0x23c1df;}return _0x85820['_setAttribute']('vid_end',null===_0xe4a6be?this[_0x20c5('0x1d')]++:_0xe4a6be++),_0x85820[_0x20c5('0xe5')](0x0,_0x325918),_0x85820;}[_0x20c5('0x33')](_0x175ac4,_0x1da69a,_0x572b6a){this[_0x20c5('0x3c')]();const {roots:_0x3f2c80,markers:_0x34d775}=this[_0x20c5('0x9a')][_0x20c5('0x2a')](_0x175ac4);this[_0x20c5('0x4b')]=new Map(_0x3f2c80);for(const [_0x57474d,_0x36c1d4]of this[_0x20c5('0x4b')])if('$graveyard'!==_0x57474d&&(this[_0x20c5('0xed')][_0x20c5('0xe9')](_0x57474d,H(_0x36c1d4)),_0x572b6a)){const _0x333075=this[_0x20c5('0x1d')];this[_0x20c5('0x8e')]['set'](_0x57474d,this['_makeIdsRoot'](_0x36c1d4)),this[_0x20c5('0x32')]['set'](_0x57474d,this[_0x20c5('0x6b')](_0x36c1d4,_0x333075));}this[_0x20c5('0x9e')]=this[_0x20c5('0x1d')],this[_0x20c5('0xed')][_0x20c5('0xe9')](_0x20c5('0x1b'),H(this[_0x20c5('0x4b')]['get'](_0x20c5('0x1b')))),_0x572b6a&&this[_0x20c5('0x8e')][_0x20c5('0xe9')](_0x20c5('0x1b'),this[_0x20c5('0x6b')](this['_baseRoots'][_0x20c5('0x2a')]('$graveyard')));for(const [_0x10d7b1,_0x34491c]of _0x34d775){const _0x44ee77=this[_0x20c5('0x4b')][_0x20c5('0x2a')](_0x34491c[_0x20c5('0x7e')]),_0x5c792f=this[_0x20c5('0xed')]['get'](_0x34491c[_0x20c5('0x7e')]),_0x3a273f=new _0x14f5b3(this['_fixPosition'](_0x34491c[_0x20c5('0xc7')],_0x44ee77),this['_fixPosition'](_0x34491c[_0x20c5('0x7f')],_0x44ee77)),_0x2ccbe4=this[_0x20c5('0x54')](_0x3a273f,_0x5c792f);_0x44ee77['markers'][_0x20c5('0xe9')](_0x10d7b1,_0x3a273f),this['_markers'][_0x20c5('0xe9')](_0x10d7b1,_0x2ccbe4);}this[_0x20c5('0x75')](_0x175ac4,_0x1da69a,_0x572b6a);}[_0x20c5('0x75')](_0x38a8ac,_0x374218,_0x20126c){for(const _0x561326 of this[_0x20c5('0x5a')][_0x20c5('0x8b')](_0x38a8ac,_0x374218))this[_0x20c5('0x7b')](_0x561326,_0x20126c);for(const _0x3e7e07 of this['_diffRoots']['values']())_0x3e7e07['markers'][_0x20c5('0x66')]();for(const [_0x47687d,_0x1d8190]of this[_0x20c5('0x81')]){this[_0x20c5('0xed')][_0x20c5('0x2a')](_0x1d8190['root'][_0x20c5('0x7e')])['markers'][_0x20c5('0xe9')](_0x47687d,_0x1d8190[_0x20c5('0xb')]());}this['_saveMetaData'](_0x374218,Array[_0x20c5('0x36')](this[_0x20c5('0xed')])[_0x20c5('0xd3')](([_0x3247fc,_0x549718])=>[_0x3247fc,H(_0x549718)]),this[_0x20c5('0x81')]);}['_getPreviousFrom'](_0x27df46){const _0x7f1a3f=Array['from'](this['_savedMetaData'][_0x20c5('0x76')]());_0x7f1a3f[_0x20c5('0x3b')]((_0x2480bd,_0x1cafc1)=>_0x2480bd-_0x1cafc1),_0x7f1a3f[_0x20c5('0xc8')]();for(const _0x593d1c of _0x7f1a3f)if(_0x593d1c<_0x27df46)return _0x593d1c;return this[_0x20c5('0x39')](),Number[_0x20c5('0x57')];}[_0x20c5('0x18')](_0x186aae,_0x2c7d26){const _0x4b4bb7=Array[_0x20c5('0x36')](_0x2c7d26[_0x20c5('0x67')])[_0x20c5('0xd3')](([_0x6753e5,_0x44782e])=>[_0x6753e5,this['_fixRange'](_0x44782e,_0x186aae)]);_0x186aae[_0x20c5('0x67')]=new Map(_0x4b4bb7);}[_0x20c5('0x30')](_0x391f06){for(const _0x45e2e2 of this[_0x20c5('0x81')]['values']()){const _0x5c5dca=_0x45e2e2['getTransformedByOperation'](_0x391f06),_0x17cd05=_0x14f5b3['_createFromRanges'](_0x5c5dca);_0x45e2e2[_0x20c5('0xc7')]=_0x17cd05['start'],_0x45e2e2[_0x20c5('0x7f')]=_0x17cd05['end'];}}[_0x20c5('0x7b')](_0x9cccd9,_0x594fb9){const _0x45b1fa=this['_cloneOperation'](_0x9cccd9,this[_0x20c5('0xed')]);if(_0x20c5('0x8f')!==_0x9cccd9['type']&&(_0x45b1fa[_0x20c5('0x38')](),this['_transformMarkers'](_0x45b1fa)),_0x594fb9)switch(_0x45b1fa[_0x20c5('0x53')]){case _0x20c5('0xf1'):this[_0x20c5('0xa3')](_0x9cccd9);break;case'move':case _0x20c5('0x1f'):case _0x20c5('0x4'):this[_0x20c5('0x7')](_0x9cccd9);break;case _0x20c5('0x83'):this[_0x20c5('0x86')](_0x9cccd9);break;case _0x20c5('0xbf'):this['_handleSplitOperation'](_0x9cccd9);break;case _0x20c5('0x8f'):this[_0x20c5('0x72')](_0x9cccd9);}}[_0x20c5('0xdf')](_0x4d4faa,_0x3f8b76){const _0x2131e9=_0x4d4faa[_0x20c5('0xb')]();return _0x2131e9['_authorId']=_0x4d4faa[_0x20c5('0x6c')],this[_0x20c5('0x13')](_0x2131e9,_0x3f8b76),_0x2131e9;}['_getBaseVids'](_0x22f085){return _0x22f085['map'](_0x2dd7b0=>{const _0x5a089f=this[_0x20c5('0x15')](_0x2dd7b0);return Number(_0x2dd7b0[_0x20c5('0xb8')][_0x20c5('0x43')](_0x5a089f));});}['_generateTape'](_0x51f6a3,_0x91a0da){if(_0x51f6a3['is'](_0x20c5('0x6f'),_0x20c5('0x8d')))_0x91a0da[_0x20c5('0xdb')]({'item':_0x51f6a3,'type':_0x20c5('0x28')});else{_0x51f6a3['is']('element')&&_0x91a0da[_0x20c5('0xdb')]({'item':_0x51f6a3,'type':_0x20c5('0xc0')});for(const _0x357788 of _0x51f6a3[_0x20c5('0x61')]())this[_0x20c5('0x6')](_0x357788,_0x91a0da);_0x51f6a3['is'](_0x20c5('0x6f'))&&_0x91a0da[_0x20c5('0xdb')]({'item':_0x51f6a3,'type':'elementEnd'});}return _0x91a0da;}[_0x20c5('0x34')](){const _0x367177=this[_0x20c5('0xe0')][_0x20c5('0xaa')][_0x20c5('0x29')][_0x20c5('0xd7')](),_0x41a90f=new Map(this['_touched']),_0x80f2d3=new Map(_0x41a90f),_0x440e10=new Map(),_0x488867={'insertions':{},'deletions':{}},_0x1c085b={'insertions':{},'deletions':{}},_0x529465=new Map();for(const _0x335c17 of _0x367177){const _0x4dd314=this['_diffRoots'][_0x20c5('0x2a')](_0x335c17),_0x36a244=this[_0x20c5('0x4b')][_0x20c5('0x2a')](_0x335c17);_0x488867[_0x20c5('0xea')][_0x335c17]=H(_0x4dd314),_0x488867['deletions'][_0x335c17]=H(_0x36a244),this[_0x20c5('0x18')](_0x488867[_0x20c5('0xd4')][_0x335c17],_0x36a244),this[_0x20c5('0x18')](_0x488867['insertions'][_0x335c17],_0x4dd314),_0x1c085b[_0x20c5('0xea')][_0x335c17]=this[_0x20c5('0x6')](this[_0x20c5('0x8e')]['get'](_0x335c17),[]),_0x1c085b[_0x20c5('0xd4')][_0x335c17]=this[_0x20c5('0x6')](this[_0x20c5('0x32')][_0x20c5('0x2a')](_0x335c17),[]);}for(const _0x3c3f75 of _0x367177){const _0x5cb204=_0x1c085b['insertions'][_0x3c3f75];for(const _0x51ba1f of _0x5cb204){const _0x3ee760=this[_0x20c5('0x15')](_0x51ba1f),_0x3efe23=_0x51ba1f[_0x20c5('0xb8')]['getAttribute'](_0x3ee760);_0x80f2d3[_0x20c5('0x48')](_0x3efe23),_0x3efe23>=this[_0x20c5('0x9e')]&&_0x440e10['set'](_0x3efe23,_0x41a90f[_0x20c5('0x2a')](_0x3efe23));}}for(const _0x354572 of _0x367177){const _0x2d5fba=_0x1c085b['insertions'][_0x354572],_0x29705f=this[_0x20c5('0x27')](_0x1c085b['deletions'][_0x354572]);let _0x370422=0x0;for(const _0x3c431d of _0x2d5fba){const _0x4459a1=this[_0x20c5('0x15')](_0x3c431d),_0x277ec8=_0x3c431d[_0x20c5('0xb8')]['getAttribute'](_0x4459a1);if(!_0x440e10[_0x20c5('0xcd')](_0x277ec8)&&!_0x529465[_0x20c5('0xcd')](_0x277ec8)){if(_0x80f2d3[_0x20c5('0xcd')](_0x277ec8))_0x370422++;else{if(_0x277ec8!=_0x29705f[_0x370422]){const _0x588008=_0x41a90f[_0x20c5('0x2a')](_0x277ec8)||_0x41a90f[_0x20c5('0x2a')](_0x29705f[_0x370422]);for(;_0x277ec8!=_0x29705f[_0x370422];)_0x80f2d3[_0x20c5('0xcd')](_0x29705f[_0x370422])||(_0x529465['set'](_0x29705f[_0x370422],_0x588008),_0x41a90f[_0x20c5('0xe9')](_0x29705f[_0x370422],_0x588008)),_0x370422++;}_0x370422++;}}}}for(const _0x325103 of _0x367177){const _0x7ef680=_0x1c085b[_0x20c5('0xea')][_0x325103];for(const _0x5cb44f of _0x7ef680){const _0x1338f1=this['_getVidAttributeName'](_0x5cb44f),_0x4f35df=_0x5cb44f[_0x20c5('0xb8')][_0x20c5('0x43')](_0x1338f1);if(_0x529465[_0x20c5('0xcd')](_0x4f35df)){const _0x2c0f21=_0x529465[_0x20c5('0x2a')](_0x4f35df);_0x80f2d3[_0x20c5('0xcd')](_0x4f35df)||_0x80f2d3[_0x20c5('0xe9')](_0x4f35df,{..._0x2c0f21}),_0x440e10['set'](_0x4f35df,{..._0x2c0f21});}}}for(const _0x13c17d of _0x80f2d3[_0x20c5('0x76')]())_0x13c17d>=this[_0x20c5('0x9e')]&&_0x80f2d3['delete'](_0x13c17d);const _0x2d68bc=new Map();for(const _0x1d3443 of _0x367177){let _0x44bc2a=_0x1c085b[_0x20c5('0xea')][_0x1d3443];for(const _0xde280c of _0x44bc2a)if(_0xde280c['item']['is']('element',_0x20c5('0x68'))){const _0x27af18=this[_0x20c5('0x15')](_0xde280c),_0x2c4e05=_0xde280c['item'][_0x20c5('0x43')](_0x27af18);if(_0x440e10['has'](_0x2c4e05)){const _0x19dd8c=_0xde280c[_0x20c5('0xb8')][_0x20c5('0xc1')]['parent'][_0x20c5('0x43')](_0x20c5('0x64')),_0x22596a=_0x2d68bc[_0x20c5('0x2a')](_0x19dd8c)||new Set();_0x22596a[_0x20c5('0xb2')](_0x440e10['get'](_0x2c4e05)[_0x20c5('0x95')]),_0x2d68bc[_0x20c5('0xe9')](_0x19dd8c,_0x22596a);}}_0x44bc2a=_0x1c085b[_0x20c5('0xd4')][_0x1d3443];for(const _0x4940db of _0x44bc2a)if(_0x4940db[_0x20c5('0xb8')]['is'](_0x20c5('0x6f'),_0x20c5('0x68'))){const _0x192770=this[_0x20c5('0x15')](_0x4940db),_0x3db5b6=_0x4940db[_0x20c5('0xb8')][_0x20c5('0x43')](_0x192770);if(_0x80f2d3[_0x20c5('0xcd')](_0x3db5b6)){const _0x5517dd=_0x4940db['item'][_0x20c5('0xc1')][_0x20c5('0xc1')][_0x20c5('0x43')](_0x20c5('0x64')),_0x1bdb12=_0x2d68bc[_0x20c5('0x2a')](_0x5517dd)||new Set();_0x1bdb12[_0x20c5('0xb2')](_0x80f2d3[_0x20c5('0x2a')](_0x3db5b6)[_0x20c5('0x95')]),_0x2d68bc[_0x20c5('0xe9')](_0x5517dd,_0x1bdb12);}}for(const _0x13536d of _0x2d68bc['keys']())(_0x440e10[_0x20c5('0xcd')](_0x13536d)||_0x80f2d3[_0x20c5('0xcd')](_0x13536d))&&_0x2d68bc['delete'](_0x13536d);}for(const _0x32484e of _0x367177){const _0x215abd=_0x1c085b['insertions'][_0x32484e];let _0x2fee4b=null,_0x3c3c84=null;for(const _0x5026b8 of _0x215abd){const _0xe0be09=this[_0x20c5('0x15')](_0x5026b8),_0x2344cb=_0x5026b8[_0x20c5('0xb8')]['getAttribute'](_0xe0be09),_0x2bee13=_0x2d68bc[_0x20c5('0x2a')](_0x2344cb);_0x2bee13&&_0x20c5('0xc0')==_0x5026b8[_0x20c5('0x53')]&&(_0x2fee4b=Array[_0x20c5('0x36')](_0x2bee13)[0x0],_0x3c3c84=_0x5026b8['item'][_0x20c5('0x43')](_0x20c5('0x4d'))),_0x2fee4b&&(_0x80f2d3[_0x20c5('0xe9')](_0x2344cb,{'userId':_0x2fee4b}),_0x440e10[_0x20c5('0xe9')](_0x2344cb,{'userId':_0x2fee4b})),_0x2344cb==_0x3c3c84&&(_0x2fee4b=null,_0x3c3c84=null);}}const _0x2a12f9={},_0x3a217d=new Set();for(const _0x234fe9 of _0x367177){const _0x44c557=_0x488867[_0x20c5('0xd4')][_0x234fe9],_0x2f8f0b=_0x488867['insertions'][_0x234fe9];for(const {userId:_0x57fe87}of this[_0x20c5('0xaf')][_0x20c5('0x46')]())null!==_0x57fe87&&_0x3a217d[_0x20c5('0xb2')](_0x57fe87);this[_0x20c5('0xa')](_0x2f8f0b,_0x1c085b['insertions'][_0x234fe9],_0x440e10,_0x20c5('0x96'),_0x3a217d),this[_0x20c5('0xa')](_0x44c557,_0x1c085b['deletions'][_0x234fe9],_0x80f2d3,'deletion',_0x3a217d),_0x2a12f9[_0x234fe9]={'insertions':this[_0x20c5('0x3a')](_0x2f8f0b),'deletions':this[_0x20c5('0x3a')](_0x44c557)};}return{'diffData':_0x2a12f9,'authorsIds':Array[_0x20c5('0x36')](_0x3a217d)};}['_processRootBeforeSave'](_0x48e92a){for(const [,_0x54a16d]of _0x48e92a[_0x20c5('0x67')]){const _0x4ae0bf=_0x54a16d[_0x20c5('0xc7')][_0x20c5('0x12')]()['filter'](_0x20509f=>_0x20c5('0x68')==_0x20509f['name']);for(const _0x540c98 of _0x4ae0bf)0x1==_0x540c98[_0x20c5('0xb9')]&&_0x540c98[_0x20c5('0x99')](0x0)['is']('element',_0x20c5('0x3'))&&_0x540c98['getChild'](0x0)[_0x20c5('0x9d')](_0x20c5('0x63'),!0x0);}}[_0x20c5('0x3a')](_0x1c1050){this[_0x20c5('0x2b')](_0x1c1050);const _0x20e681=this[_0x20c5('0xe0')][_0x20c5('0x50')]['toView'](_0x1c1050,{}),_0x3b90c8=Array[_0x20c5('0x36')](_0x20e681['getChildren']())[_0x20c5('0xd3')](_0x447457=>this[_0x20c5('0xe2')](_0x447457));return JSON['stringify'](_0x3b90c8);}[_0x20c5('0xe2')](_0x5b1d08){if(_0x5b1d08['is'](_0x20c5('0x28')))return _0x5b1d08['data'];return{'type':Object[_0x20c5('0x76')](J)[_0x20c5('0x5b')](_0x22cc8d=>_0x5b1d08 instanceof J[_0x22cc8d]),'name':_0x5b1d08[_0x20c5('0x5c')],'attributes':Array[_0x20c5('0x36')](_0x5b1d08[_0x20c5('0x97')]()),'children':Array[_0x20c5('0x36')](_0x5b1d08[_0x20c5('0x61')]())['map'](_0x4c57f7=>this[_0x20c5('0xe2')](_0x4c57f7))};}['_markChanges'](_0x3b4467,_0x27327f,_0x21d6d7,_0x58886e,_0x4645fb){let _0xfc45d=null,_0x11f47a=null,_0x44e2ff=0x0;const _0x533ff1=this[_0x20c5('0xe0')][_0x20c5('0xaa')];for(let _0x34418c=0x0;_0x34418c<_0x27327f[_0x20c5('0xad')];_0x34418c++){const _0x2cc4a0=this['_getVidAttributeName'](_0x27327f[_0x34418c]),_0x58d179=_0x27327f[_0x34418c][_0x20c5('0xb8')][_0x20c5('0x43')](_0x2cc4a0),_0x3ff410=_0x21d6d7[_0x20c5('0x2a')](_0x58d179),_0x2d15b1=_0x34418c==_0x27327f[_0x20c5('0xad')]-0x1;(!_0xfc45d&&_0x3ff410&&(_0xfc45d=_0x3ff410,_0x11f47a=_0x27327f[_0x34418c]),_0xfc45d&&(!_0x3ff410||_0x3ff410[_0x20c5('0x95')]!=_0xfc45d['userId']))&&(_0x331b8f(_0x3ff410,q(_0x11f47a,_0x3b4467,_0x533ff1),q(_0x27327f[_0x34418c],_0x3b4467,_0x533ff1)),_0xfc45d=_0x3ff410||null,_0x11f47a=_0x3ff410?_0x27327f[_0x34418c]:null),_0xfc45d&&_0x2d15b1&&_0x331b8f(_0x3ff410,q(_0x11f47a,_0x3b4467,_0x533ff1),G(_0x27327f[_0x34418c],_0x3b4467,_0x533ff1));}function _0x331b8f(_0x352a92,_0x38f328,_0x4c0b17){const _0x500ff6=_0xfc45d['userId'],_0x30d8ad=_0x20c5('0xd1')+_0x58886e+':'+_0x500ff6+':'+_0x44e2ff++,_0x16f3eb=_0x533ff1[_0x20c5('0x5e')](_0x38f328,_0x4c0b17);_0x3b4467[_0x20c5('0x67')][_0x20c5('0xe9')](_0x30d8ad,_0x16f3eb),null!==_0x500ff6&&_0x4645fb[_0x20c5('0xb2')](_0x500ff6);}}[_0x20c5('0x15')](_0x1d2a7d){switch(_0x1d2a7d['type']){case _0x20c5('0xc0'):return _0x20c5('0x64');case _0x20c5('0x56'):return _0x20c5('0x4d');default:return'vid';}}[_0x20c5('0x13')](_0x4f72d7,_0x2f4b7e){_0x4f72d7[_0x20c5('0xbb')]=null;for(const _0x542ff0 in _0x4f72d7){if(_0x4f72d7[_0x542ff0]instanceof _0x5b495d){const _0x309a49=_0x2f4b7e[_0x20c5('0x2a')](_0x4f72d7[_0x542ff0][_0x20c5('0x26')][_0x20c5('0x7e')]);_0x4f72d7[_0x542ff0]=this[_0x20c5('0xcb')](_0x4f72d7[_0x542ff0],_0x309a49);}if(_0x4f72d7[_0x542ff0]instanceof _0x14f5b3){const _0x5e24f0=_0x2f4b7e[_0x20c5('0x2a')](_0x4f72d7[_0x542ff0]['root']['rootName']);_0x4f72d7[_0x542ff0]=this[_0x20c5('0x54')](_0x4f72d7[_0x542ff0],_0x5e24f0);}}_0x4f72d7[_0x20c5('0x26')]&&(_0x4f72d7[_0x20c5('0x26')]=_0x2f4b7e[_0x20c5('0x2a')](_0x4f72d7['root'][_0x20c5('0x7e')]));}[_0x20c5('0x54')](_0x47f600,_0x319dfc){return this[_0x20c5('0xe0')][_0x20c5('0xaa')][_0x20c5('0x5e')](this[_0x20c5('0xcb')](_0x47f600['start'],_0x319dfc),this[_0x20c5('0xcb')](_0x47f600['end'],_0x319dfc));}[_0x20c5('0xcb')](_0x307daf,_0x3b5010){return this[_0x20c5('0xe0')][_0x20c5('0xaa')][_0x20c5('0xef')](_0x3b5010,_0x307daf[_0x20c5('0xcf')],_0x307daf[_0x20c5('0x4f')]);}[_0x20c5('0xa3')](_0x463b5a){const _0x3dbe33=this[_0x20c5('0x8e')][_0x20c5('0x2a')](_0x463b5a[_0x20c5('0xc2')]['root'][_0x20c5('0x7e')]),_0x28667d=this[_0x20c5('0xcb')](_0x463b5a[_0x20c5('0xc2')],_0x3dbe33),_0x474df0=null===_0x463b5a[_0x20c5('0x6c')]?null:_0x463b5a[_0x20c5('0x6c')]||this[_0x20c5('0xe0')][_0x20c5('0x37')]['get'](_0x20c5('0xa0'))['me']['id'],_0x5031a1=_0x28667d[_0x20c5('0xc1')],_0x3abef8=this[_0x20c5('0x1d')],_0x5923e0=[];for(const _0x246d92 of _0x463b5a[_0x20c5('0x70')])if(_0x246d92['is'](_0x20c5('0x6f')))_0x5923e0[_0x20c5('0xdb')](this['_makeIdsRoot'](_0x246d92));else for(let _0x1ba1d3=0x0;_0x1ba1d3<_0x246d92[_0x20c5('0xd0')];_0x1ba1d3++)_0x5923e0['push'](new _0x4261db(_0x20c5('0x8d'),{'vid':this[_0x20c5('0x1d')]++}));const _0x50cc7a=this[_0x20c5('0x1d')];for(let _0x25b6ed=_0x3abef8;_0x25b6ed<_0x50cc7a;_0x25b6ed++)this[_0x20c5('0x93')][_0x20c5('0xe9')](_0x25b6ed,{'userId':_0x474df0});_0x5031a1[_0x20c5('0xe5')](_0x28667d[_0x20c5('0x98')],_0x5923e0);}[_0x20c5('0x7')](_0x176045){(_0x176045=this[_0x20c5('0xdf')](_0x176045,this[_0x20c5('0x8e')]))[_0x20c5('0x38')]();const _0x38d525=null===_0x176045[_0x20c5('0x6c')]?null:_0x176045[_0x20c5('0x6c')]||this[_0x20c5('0xe0')][_0x20c5('0x37')][_0x20c5('0x2a')](_0x20c5('0xa0'))['me']['id'],_0x5be4ad=_0x176045['getMovedRangeStart'](),_0x4cefd3=_0x5be4ad['parent'],_0x1c615c=_0x5be4ad['offset'];!function _0x379f98(_0x451d2b,_0xf94d9,_0x2129d1,_0xb7327e){for(let _0x190fe9=_0x2129d1;_0x190fe9<_0xb7327e;_0x190fe9++){const _0x5813cd=_0xf94d9[_0x20c5('0x99')](_0x190fe9);_0x5813cd['is']('element',_0x20c5('0x8d'))?_0x451d2b[_0x20c5('0xe9')](_0x5813cd[_0x20c5('0x43')](_0x20c5('0x2f')),{'userId':_0x38d525}):(_0x451d2b[_0x20c5('0xe9')](_0x5813cd[_0x20c5('0x43')]('vid_start'),{'userId':_0x38d525}),_0x379f98(_0x451d2b,_0x5813cd,0x0,_0x5813cd[_0x20c5('0xb9')]),_0x451d2b[_0x20c5('0xe9')](_0x5813cd[_0x20c5('0x43')](_0x20c5('0x4d')),{'userId':_0x38d525}));}}(this[_0x20c5('0x93')],_0x4cefd3,_0x1c615c,_0x1c615c+_0x176045[_0x20c5('0x9b')]);}[_0x20c5('0x86')](_0x375dd9){const _0x35ebea=null===(_0x375dd9=this['_cloneOperation'](_0x375dd9,this[_0x20c5('0x8e')]))[_0x20c5('0x6c')]?null:_0x375dd9[_0x20c5('0x6c')]||this[_0x20c5('0xe0')]['plugins']['get']('Users')['me']['id'],_0x2cb8ef=_0x375dd9[_0x20c5('0x5')][_0x20c5('0xc1')],_0x25216f=_0x375dd9[_0x20c5('0x4a')][_0x20c5('0xc1')],_0x57ad6b=_0x2cb8ef['getAttribute'](_0x20c5('0x4d')),_0x2ef473=_0x25216f[_0x20c5('0x43')](_0x20c5('0x64'));_0x2cb8ef['_setAttribute'](_0x20c5('0x4d'),_0x25216f[_0x20c5('0x43')](_0x20c5('0x4d'))),_0x25216f['_setAttribute']('vid_end',_0x57ad6b),this[_0x20c5('0x93')][_0x20c5('0xe9')](_0x2ef473,{'userId':_0x35ebea}),this[_0x20c5('0x93')][_0x20c5('0xe9')](_0x57ad6b,{'userId':_0x35ebea}),_0x375dd9[_0x20c5('0x38')]();}[_0x20c5('0x6a')](_0x7daa6c){const _0x2b6846=null===(_0x7daa6c=this['_cloneOperation'](_0x7daa6c,this[_0x20c5('0x8e')]))[_0x20c5('0x6c')]?null:_0x7daa6c[_0x20c5('0x6c')]||this['editor'][_0x20c5('0x37')][_0x20c5('0x2a')](_0x20c5('0xa0'))['me']['id'],_0x520ffd=_0x7daa6c[_0x20c5('0x78')],_0x198633=_0x7daa6c['splitPosition'][_0x20c5('0xc1')];_0x7daa6c[_0x20c5('0x38')]();const _0xe18d2c=_0x198633[_0x20c5('0x43')]('vid_end'),_0x4854a7=_0x7daa6c[_0x20c5('0x5f')]['nodeAfter'];if(_0x520ffd){const _0x222195=_0x4854a7['getAttribute'](_0x20c5('0x4d')),_0x3cea84=_0x198633[_0x20c5('0x43')]('vid_end');_0x198633['_setAttribute'](_0x20c5('0x4d'),_0x222195),_0x4854a7[_0x20c5('0x9d')]('vid_end',_0x3cea84),this[_0x20c5('0x93')][_0x20c5('0xe9')](_0x198633[_0x20c5('0x43')](_0x20c5('0x4d')),{'userId':_0x2b6846}),this[_0x20c5('0x93')][_0x20c5('0xe9')](_0x4854a7[_0x20c5('0x43')]('vid_start'),{'userId':_0x2b6846});}else{const _0x44bce5=this['_revisionId']++,_0x20b7d9=this[_0x20c5('0x1d')]++;_0x198633[_0x20c5('0x9d')](_0x20c5('0x4d'),_0x44bce5),_0x4854a7[_0x20c5('0x9d')](_0x20c5('0x64'),_0x20b7d9),_0x4854a7[_0x20c5('0x9d')](_0x20c5('0x4d'),_0xe18d2c),this[_0x20c5('0x93')]['set'](_0x44bce5,{'userId':_0x2b6846}),this['_touched'][_0x20c5('0xe9')](_0x20b7d9,{'userId':_0x2b6846});}}[_0x20c5('0x72')](_0x25cd64){if(!_0x25cd64[_0x20c5('0x77')])return;const _0x172c54=(_0x25cd64=this['_cloneOperation'](_0x25cd64,this[_0x20c5('0xed')]))['oldRange']?_0x25cd64['oldRange'][_0x20c5('0x26')]:null,_0x36d1f3=_0x25cd64['newRange']?_0x25cd64['newRange'][_0x20c5('0x26')]:null;_0x172c54&&this['_markers']['delete'](_0x25cd64[_0x20c5('0x5c')]),_0x36d1f3&&this[_0x20c5('0x81')]['set'](_0x25cd64['name'],_0x25cd64[_0x20c5('0x87')][_0x20c5('0xb')]());const _0x12b16c=null===_0x25cd64['_authorId']?null:_0x25cd64[_0x20c5('0x6c')]||this[_0x20c5('0xe0')][_0x20c5('0x37')][_0x20c5('0x2a')](_0x20c5('0xa0'))['me']['id'],_0x168c35=_0x25cd64['name'];if(!this['_touchedMarkers']['has'](_0x168c35))return void this['_touchedMarkers'][_0x20c5('0xe9')](_0x168c35,{'range':_0x25cd64[_0x20c5('0xd6')],'userId':_0x12b16c});const _0x58a43b=this[_0x20c5('0xaf')][_0x20c5('0x2a')](_0x168c35),_0x17790f=_0x58a43b[_0x20c5('0x69')],_0x3cf6d5=_0x25cd64['newRange'];null==_0x17790f&&null==_0x3cf6d5||_0x17790f&&_0x3cf6d5&&_0x17790f[_0x20c5('0xb4')](_0x3cf6d5)?this[_0x20c5('0xaf')]['delete'](_0x25cd64[_0x20c5('0x5c')]):_0x58a43b[_0x20c5('0x95')]=_0x12b16c;}}function H(_0x28b953){const _0x3568fa=new _0x1af70e();_0x3568fa[_0x20c5('0x7e')]=_0x28b953[_0x20c5('0x7e')];for(const _0x359242 of _0x28b953['getChildren']()){const _0x467058=_0x359242[_0x20c5('0xc6')](!0x0);_0x3568fa[_0x20c5('0xd2')](_0x467058);}return _0x3568fa;}function q(_0x1b9a86,_0x23f58c,_0x4d91fe){const _0x531fb6='elementEnd'==_0x1b9a86['type']?_0x4d91fe['createPositionAt'](_0x1b9a86[_0x20c5('0xb8')],_0x20c5('0x7f')):_0x4d91fe[_0x20c5('0x1a')](_0x1b9a86[_0x20c5('0xb8')]);return _0x531fb6[_0x20c5('0x26')]=_0x23f58c,_0x531fb6;}function G(_0xbc79d5,_0x39f42a,_0x263f6d){const _0x180185=_0x20c5('0xc0')==_0xbc79d5[_0x20c5('0x53')]?_0x263f6d['createPositionAt'](_0xbc79d5[_0x20c5('0xb8')],0x0):_0x263f6d[_0x20c5('0x89')](_0xbc79d5[_0x20c5('0xb8')]);return _0x180185[_0x20c5('0x26')]=_0x39f42a,_0x180185;}