@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230807.0 → 0.0.0-nightly-20230808.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/LICENSE.md +5 -5
  2. package/README.md +10 -10
  3. package/build/revision-history.js +1 -1
  4. package/package.json +6 -6
  5. package/src/changeitem.js +1 -1
  6. package/src/editor/revisionviewereditor.js +1 -1
  7. package/src/editor/revisionviewereditorui.js +1 -1
  8. package/src/editor/revisionviewereditoruiview.js +1 -1
  9. package/src/revision.js +1 -1
  10. package/src/revisiondiff.js +1 -1
  11. package/src/revisionhistory.js +1 -1
  12. package/src/revisionsrepository.js +1 -1
  13. package/src/revisiontracker.js +1 -1
  14. package/src/revisionviewer.js +1 -1
  15. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  16. package/src/ui/revision/revisionauthorview.js +1 -1
  17. package/src/ui/revision/revisionnameview.js +1 -1
  18. package/src/ui/revision/revisionview.js +1 -1
  19. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  20. package/src/ui/revision/subrevisionview.js +1 -1
  21. package/src/ui/revision/utils.js +1 -1
  22. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  23. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  26. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  27. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  28. package/src/ui/revisionssidebar/utils.js +1 -1
  29. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  30. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  31. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  32. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  33. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ce1=['size','attributes','_handleMarkerOperation','_makeRevision','addRootAttribute','_copyMarkers','_revisionDataBuilder','elementStart','_authorId','_setConversion','ready','offsetSize','startsWith','creatorId','childCount','_setAttribute','_appendChild','_cloneOperation','_lastFrom','_loadState','for','addRevisionData','finally','graveyardPosition','position','$graveyard','_initialRevisionId','getRevisionRootsAttributes','userId','delete','vid_end','_handleRootAttributeOperation','howMany','_markChanges','_handleMergeOperation','_fixRange','_addPendingAction','reverse','revision','toView','_source','_touchedMarkers','pluginName','buildRevisionData','_getVidAttributeName','initial','_makeModelFromViewString','config','key','children','Users','_handleRootOperation','changeRootAttribute','slice','deletion','_getViewJson','isAdd','hasContent','item','_handleMoveOperation','map','saveRevision','element','_handleSplitOperation','createPositionFromPath','editor-initial-data-replaced-with-revision-data','root','parent','get','baseVersion','remove','dataDowncast','upcast','createPositionAfter','filter','getIndex','_insertChild','oldRange','NEGATIVE_INFINITY','repository','authors','history','newRange','name','isEqual','detachRoot','_continueCurrentRevision','_transformMarkers','split','includes','_touchedRoots','getWalker','sendBufferedUpdates','_removeMetaData','_applyOperations','vid_start','insertionPosition','_operations','locale','Initial\x20revision','_replaceEditorDataWithRevisionData','move','insertions','_bufferUpdate','end','keepParagraph','model','from','getRootNames','PENDING_ACTION_REVISION_HISTORY','_loadRevisionData','bind','revision-start','_isPendingUpdate','document','adapter','insert','getOperation','set','_getFromVersion','_isAttached','getLatestVersion','collaboration.channelId','removeRootAttribute','nodes','getData','getAncestors','requires','RealTimeCollaborationClient','createRange','deletions','_isInit','add','_baseRoots','elementEnd','type','_removePendingAction','initialData','getRevisions','_clone','_getBaseVids','_revisionId','_calculateMetaData','addRevision','getTransformedByOperation','rootName','values','_getState','_pendingAction','isReady','_generateTape','push','_savedMetaData','editing','dataToMarker','Empty\x20document','length','_idsRoots','source','_makeIdsRoot','documentFragment','path','markerToData','splitPosition','max','getUser','marked','version','affectsData','createPositionAt','_markers','createRangeIn','_diffRoots','_baseRootsAttributes','_processRootBeforeSave','_baseIdsRoots','newValue','data','reInit','attributesAfter','attachChange','_saveMetaData','loadState','afterInit','previousPosition','markers','editor','currentRevision','default','PendingActions','revision:','view','clear','_fixPosition','_touched','getNodeByPath','processor','clone','createPositionBefore','roots','find','getCurrentRevisionId','targetPosition','$text','getAttribute','_bufferedUpdates','getRevision','creator','_createInitialRevision','RevisionsRepository','update','getChildren','_handleInsertOperation','vid','_lastTo','insertion','nodeAfter','start','keys','plugins','trim','_handleOperation','getChild','_reset','marker','getAttributes','useFillerType','data-revision-','has','_createCurrentRevision','rootsAttributes','_fixOperation','tableCell','range','createdAt','RevisionTracker','updateRevisions','getRevisionDocumentData','authorsIds','fromEntries','_diffRootsAttributes','some','getMovedRangeStart','toVersion','setSource','_removeRevisionMarkers','init','stringify','fromVersion','parse','getRoot','getOperations','forEach','paragraph','offset','_update','_findInsertionIndex','_createFromRanges','conversion','_startingVersion','string','then','_prepareViewToSave','_execute','stickiness','isAttached','_loadedStateData','_getPreviousFrom','setRevisionData','_startingRevisionId','sort','diffData'];(function(_0x429730,_0x4ce167){const _0x50fe70=function(_0x399159){while(--_0x399159){_0x429730['push'](_0x429730['shift']());}};_0x50fe70(++_0x4ce167);}(_0x4ce1,0x17b));const _0x50fe=function(_0x429730,_0x4ce167){_0x429730=_0x429730-0x0;let _0x50fe70=_0x4ce1[_0x429730];return _0x50fe70;};import{Users as _0x1129fb}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0xdf8ace,PendingActions as _0x566baa}from'ckeditor5/src/core';import{logWarning as _0x5dc35f,uid as _0x5ca389}from'ckeditor5/src/utils';import{Position as _0x42716c,Range as _0x4ce064,Element as _0x59be18,DocumentFragment as _0x1ad183,ViewText as _0x2a6498,ViewElement as _0x5dd5eb,ViewContainerElement as _0x55cbf6,ViewAttributeElement as _0x129dc6,ViewEmptyElement as _0x1f2be4,ViewRawElement as _0x1cc95e,ViewUIElement as _0x54edc1,ViewDocumentFragment as _0x20ce28}from'ckeditor5/src/engine';import _0xf5fa97 from'./revisionsrepository';import{getTranslation as _0x4b8e3b}from'./utils/common-translations';import{cloneDeep as _0x12af63,isEqual as _0x50686d}from'lodash-es';const B={'c':_0x55cbf6,'a':_0x129dc6,'e':_0x1f2be4,'r':_0x1cc95e,'u':_0x54edc1};export default class l extends _0xdf8ace{static get[_0x50fe('0xcf')](){return _0x50fe('0x80');}static get[_0x50fe('0x14')](){return[_0x1129fb,_0xf5fa97,_0x566baa];}constructor(_0x1c2236){super(_0x1c2236),this[_0x50fe('0x8')]=null,this[_0x50fe('0x50')]=null,this[_0x50fe('0xab')]=new H(this['editor']),this[_0x50fe('0xbf')]=this['editor']['config']['get'](_0x50fe('0xf'))||_0x50fe('0xd2'),this[_0x50fe('0x62')]=new Map(),this['_loadedStateData']=null;const _0x101466=_0x5ca389();this['_source']={'history':this['editor'][_0x50fe('0x10f')]['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor'][_0x50fe('0x10f')]['document']['version']),'getCurrentRevisionId':()=>_0x101466},this[_0x50fe('0xb')](_0x50fe('0x2a'),!0x1),this[_0x50fe('0xb')]('isEnabled',!0x0),this[_0x50fe('0xb')](_0x50fe('0x6'),!0x1),this[_0x50fe('0x4f')]['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x50fe('0x4f')][_0x50fe('0x97')][_0x50fe('0xb9')](_0x50fe('0xed'))[_0x50fe('0x2f')]({'view':'revision'});}[_0x50fe('0x8b')](){this[_0x50fe('0xf4')]=this[_0x50fe('0x4f')]['plugins'][_0x50fe('0xe9')](_0x50fe('0x66')),this[_0x50fe('0xae')](),this[_0x50fe('0x4f')][_0x50fe('0x46')]['on'](_0x50fe('0xaf'),()=>{const _0x5a4e9a=this[_0x50fe('0xf4')][_0x50fe('0x63')](0x0),_0x313990=_0x5a4e9a&&null===_0x5a4e9a[_0x50fe('0x64')]?_0x5a4e9a:null;if(this[_0x50fe('0xfb')]=!!_0x313990&&this[_0x50fe('0x4f')][_0x50fe('0xd4')][_0x50fe('0xe9')]('revisionHistory.resumeUnsavedRevision'),this[_0x50fe('0x4f')]['plugins']['has'](_0x50fe('0x15'))){const _0x64973b=this['_source'][_0x50fe('0x5e')](),_0x4c136e=this[_0x50fe('0xf4')][_0x50fe('0x63')](_0x64973b);if(_0x4c136e)this[_0x50fe('0x98')]=_0x4c136e[_0x50fe('0x8d')],this[_0x50fe('0xfb')]=!0x1;else{const _0x4ada49=this[_0x50fe('0xcd')][_0x50fe('0xf6')][_0x50fe('0x106')][_0x50fe('0x5d')](_0x52ca09=>!_0x52ca09[_0x50fe('0x18')]),_0x228483=_0x4ada49?_0x4ada49[_0x50fe('0xea')]:this[_0x50fe('0xcd')][_0x50fe('0xf6')][_0x50fe('0x3c')];_0x5a4e9a?(_0x5a4e9a[_0x50fe('0x88')]<_0x228483&&_0x5a4e9a['_update']({'toVersion':_0x228483}),this[_0x50fe('0xfb')]?(this['_source'][_0x50fe('0x5e')]=()=>_0x313990['id'],this[_0x50fe('0x98')]=_0x313990['fromVersion']):(this[_0x50fe('0x98')]=_0x5a4e9a[_0x50fe('0x88')],this[_0x50fe('0xfb')]=!0x1)):(this[_0x50fe('0x98')]=_0x228483,this[_0x50fe('0xfb')]=!0x1);}}else _0x313990&&(this[_0x50fe('0x4f')][_0x50fe('0x10f')][_0x50fe('0x7')][_0x50fe('0xf6')]['version']=Math[_0x50fe('0x39')](_0x313990[_0x50fe('0x88')],this[_0x50fe('0x4f')][_0x50fe('0x10f')][_0x50fe('0x7')][_0x50fe('0xf6')][_0x50fe('0x3c')]),_0x313990[_0x50fe('0x8d')]===_0x313990[_0x50fe('0x88')]?(0x0!==_0x313990[_0x50fe('0x8d')]&&(this[_0x50fe('0xcd')][_0x50fe('0x5e')]=()=>_0x313990['id']),this[_0x50fe('0xfb')]=!0x1):this[_0x50fe('0xfb')]&&(this[_0x50fe('0xcd')][_0x50fe('0x5e')]=()=>_0x313990['id'],this[_0x50fe('0x98')]=_0x313990[_0x50fe('0x8d')])),this['_continueCurrentRevision']||(this['_startingVersion']=this[_0x50fe('0x4f')][_0x50fe('0x10f')][_0x50fe('0x7')][_0x50fe('0x3c')]);this[_0x50fe('0xab')][_0x50fe('0x8b')](this[_0x50fe('0xcd')][_0x50fe('0xf6')]),this['_createInitialRevision'](this[_0x50fe('0x98')]),this[_0x50fe('0x7a')](this[_0x50fe('0x98')]),this[_0x50fe('0x8')]&&this[_0x50fe('0x101')]();}),this[_0x50fe('0x4')](_0x50fe('0x2a'))['to'](this,_0x50fe('0x6'),_0x23b093=>!_0x23b093);}async[_0x50fe('0x4c')](){if(this['repository'][_0x50fe('0x31')]>0x0){const _0x373f10=this[_0x50fe('0xf4')][_0x50fe('0x63')](0x0),_0x1fbdcd=await this[_0x50fe('0x82')](_0x373f10),_0x59fee0=await this[_0x50fe('0xc0')](_0x373f10);this[_0x50fe('0x109')](_0x1fbdcd,_0x59fee0);}}[_0x50fe('0x89')](_0x51235b){this[_0x50fe('0xcd')]=_0x51235b;}async[_0x50fe('0x67')](){const _0xe321a1=await this['_source'][_0x50fe('0xe')]();if(_0xe321a1>this[_0x50fe('0x50')]['toVersion']){await this[_0x50fe('0xb8')]();const _0x359e4c=this[_0x50fe('0xd0')]({'revision':this[_0x50fe('0x50')],'to':_0xe321a1});_0x359e4c[_0x50fe('0xf5')]=_0x359e4c[_0x50fe('0x83')][_0x50fe('0xe1')](_0x54698b=>this[_0x50fe('0x4f')][_0x50fe('0x70')][_0x50fe('0xe9')](_0x50fe('0xd7'))['getUser'](_0x54698b)),this[_0x50fe('0x50')][_0x50fe('0x94')](_0x359e4c);}}async[_0x50fe('0xb8')](){this[_0x50fe('0xfb')]&&!this[_0x50fe('0x9f')]&&(await this[_0x50fe('0x3')](this[_0x50fe('0x50')]),this[_0x50fe('0xab')][_0x50fe('0x4b')](this[_0x50fe('0x50')]),this[_0x50fe('0x9f')]={'fromVersion':this['currentRevision'][_0x50fe('0x8d')],'authors':this['currentRevision'][_0x50fe('0xf5')][_0x50fe('0xda')]()});}async[_0x50fe('0xe2')](_0xc501a2={},_0x34915f=null){const _0x2809d8=[];await this[_0x50fe('0xb8')](),this['_continueCurrentRevision']=!0x1,_0x34915f>this[_0x50fe('0x50')][_0x50fe('0x88')]&&(_0x34915f=null),null===_0x34915f&&(_0x34915f=await this[_0x50fe('0xcd')][_0x50fe('0xe')]());const _0x256373=this['_getFromVersion'](_0x34915f),_0x39a3c4=this['buildRevisionData']({'from':_0x256373,'to':_0x34915f});if(this['currentRevision']['toVersion']<_0x34915f){const _0x4002fe=this['buildRevisionData']({'revision':this[_0x50fe('0x50')],'from':_0x34915f,'to':_0x34915f});_0x4002fe['authors']=[],_0x4002fe[_0x50fe('0x83')]=[],_0x4002fe['id']=this['currentRevision']['id'],this[_0x50fe('0x50')]['_update'](_0x4002fe,!0x0),delete _0x4002fe[_0x50fe('0xf5')],_0x2809d8[_0x50fe('0x2c')](_0x4002fe);}_0xc501a2['creatorId']=this[_0x50fe('0x4f')][_0x50fe('0x70')][_0x50fe('0xe9')](_0x50fe('0xd7'))['me']['id'],_0xc501a2[_0x50fe('0xf8')]=_0xc501a2[_0x50fe('0xf8')]||null,_0xc501a2['id']=_0xc501a2['id']||_0x5ca389(),_0xc501a2={..._0xc501a2,..._0x39a3c4};const _0x3e85bd=this['addRevisionData'](_0xc501a2);_0x2809d8['push'](_0xc501a2);const _0x875a18=this[_0x50fe('0xf4')][_0x50fe('0xf0')](_0x3e85bd);if(0x0!==_0x875a18){const _0x4e5f04=this['repository'][_0x50fe('0x63')](_0x875a18-0x1);if(_0x4e5f04[_0x50fe('0x8d')]!==_0x34915f){const _0x599ec8=this[_0x50fe('0xab')][_0x50fe('0x12')](_0x34915f,_0x4e5f04[_0x50fe('0x88')]),_0x4e2f08={'id':_0x4e5f04['id'],'diffData':_0x599ec8[_0x50fe('0xa4')],'authorsIds':_0x599ec8[_0x50fe('0x83')],'authors':_0x599ec8[_0x50fe('0x83')]['map'](_0x3d3547=>this['editor'][_0x50fe('0x70')]['get'](_0x50fe('0xd7'))[_0x50fe('0x3a')](_0x3d3547)),'fromVersion':_0x34915f};_0x4e5f04===this[_0x50fe('0x50')]&&(_0x4e2f08[_0x50fe('0x7f')]=new Date(_0xc501a2[_0x50fe('0x7f')]['getTime']()+0xa)),_0x4e5f04[_0x50fe('0x94')](_0x4e2f08,!0x0),delete _0x4e2f08[_0x50fe('0xf5')],_0x2809d8[_0x50fe('0x2c')](_0x4e2f08);}}if(this[_0x50fe('0x8')]){for(const _0xa3652f of _0x2809d8)this[_0x50fe('0x10c')](_0xa3652f['id'],_0xa3652f,!0x0);this['sendBufferedUpdates']();}return _0x3e85bd;}['addRevisionData'](_0xd1732f){const _0x384c27=this['repository']['createRevision'](_0xd1732f);return this[_0x50fe('0x8')]&&_0x384c27['on'](_0x50fe('0x94'),(_0x4e9a12,_0x15267f,_0x41c42a)=>{_0x41c42a||(this['_bufferUpdate'](_0x15267f['id'],_0x15267f,!0x0),this['sendBufferedUpdates']());}),this[_0x50fe('0xf4')][_0x50fe('0x24')](_0x384c27,this['_findInsertionIndex'](_0x384c27)),_0x384c27;}async[_0x50fe('0x82')](_0x134c80){await this[_0x50fe('0x3')](_0x134c80);const _0x410b20={};for(const _0x542cfe in _0x134c80['diffData']){if(_0x134c80[_0x50fe('0xa4')][_0x542cfe]['attachChange']&&!_0x134c80[_0x50fe('0xa4')][_0x542cfe][_0x50fe('0x49')]['isAttached'])continue;const _0x348ad5=this[_0x50fe('0x8a')](JSON[_0x50fe('0x8e')](_0x134c80[_0x50fe('0xa4')][_0x542cfe][_0x50fe('0x10b')])),_0x2e45b2=this['editor']['editing'][_0x50fe('0x54')][_0x50fe('0x7')],_0x26ce88=new _0x20ce28(_0x2e45b2,_0x348ad5[_0x50fe('0xe1')](_0x355caf=>J(_0x355caf,this[_0x50fe('0x4f')])));this[_0x50fe('0x4f')]['data'][_0x50fe('0x59')][_0x50fe('0x77')](_0x50fe('0x3b')),_0x410b20[_0x542cfe]=this[_0x50fe('0x4f')]['data'][_0x50fe('0x59')]['toData'](_0x26ce88),this[_0x50fe('0x4f')][_0x50fe('0x46')][_0x50fe('0x59')]['useFillerType'](_0x50fe('0x51'));}return _0x410b20;}async['getRevisionRootsAttributes'](_0x39d072){await this[_0x50fe('0x3')](_0x39d072);const _0x2f617a={};for(const _0x2dee30 in _0x39d072[_0x50fe('0xa4')])_0x39d072[_0x50fe('0xa4')][_0x2dee30][_0x50fe('0x49')]&&!_0x39d072['diffData'][_0x2dee30][_0x50fe('0x49')][_0x50fe('0x9e')]||(_0x2f617a[_0x2dee30]=_0x39d072['diffData'][_0x2dee30][_0x50fe('0x48')]||{});return _0x2f617a;}[_0x50fe('0x101')](){if(0x0===this[_0x50fe('0x62')]['size'])return;if(this['_isPendingUpdate'])return;let _0x44c89b=Array[_0x50fe('0x0')](this['_bufferedUpdates'][_0x50fe('0x27')]());this['_bufferedUpdates'][_0x50fe('0x55')]();for(let _0x2a7f20=0x0;_0x2a7f20<_0x44c89b[_0x50fe('0x31')];_0x2a7f20++){const _0x412e5f=_0x44c89b[_0x2a7f20];let _0x21aa30=!0x1;for(const _0x5ea35c of Object[_0x50fe('0x6f')](_0x412e5f))void 0x0===_0x412e5f[_0x5ea35c]?delete _0x412e5f[_0x5ea35c]:'id'!==_0x5ea35c&&(_0x21aa30=!0x0);_0x21aa30||(_0x44c89b[_0x2a7f20]=null);}if(_0x44c89b=_0x44c89b[_0x50fe('0xef')](_0x1aa105=>null!==_0x1aa105),!_0x44c89b['length'])return;for(let _0x32c9e3=0x0;_0x32c9e3<_0x44c89b[_0x50fe('0x31')];_0x32c9e3++){const _0x573941=_0x44c89b[_0x32c9e3];void 0x0!==_0x573941['fromVersion']&&void 0x0===_0x573941[_0x50fe('0x88')]&&(_0x573941[_0x50fe('0x88')]=this['repository'][_0x50fe('0x63')](_0x573941['id'])[_0x50fe('0x88')]),void 0x0!==_0x573941[_0x50fe('0x88')]&&void 0x0===_0x573941[_0x50fe('0x8d')]&&(_0x573941[_0x50fe('0x8d')]=this[_0x50fe('0xf4')][_0x50fe('0x63')](_0x573941['id'])[_0x50fe('0x8d')]);}const _0x44ff7e=this['editor'][_0x50fe('0xd4')]['get'](_0x50fe('0xf'));this[_0x50fe('0x6')]=!0x0,this['_addPendingAction'](),this[_0x50fe('0x8')][_0x50fe('0x81')](_0x44c89b,_0x44ff7e)[_0x50fe('0xbb')](()=>{this['_isPendingUpdate']=!0x1;})[_0x50fe('0x9a')](_0xa85022=>{if(_0xa85022)for(const _0x3f6af3 of _0xa85022)this[_0x50fe('0xa1')]({'id':_0x3f6af3['id'],'createdAt':_0x3f6af3['createdAt']});this[_0x50fe('0x1d')](),this['sendBufferedUpdates']();});}[_0x50fe('0x109')](_0x3041b3,_0xd4eea8){let _0x553bd7=this[_0x50fe('0x4f')][_0x50fe('0xd4')]['get'](_0x50fe('0x1e')),_0x47ae10=this[_0x50fe('0x4f')][_0x50fe('0xd4')]['get'](_0x50fe('0x7b'));if(void 0x0===_0x553bd7){_0x553bd7={};for(const _0x4c4ab9 of this[_0x50fe('0x4f')][_0x50fe('0x10f')]['document'][_0x50fe('0x1')]())_0x553bd7[_0x4c4ab9]='';}if(_0x50fe('0x99')==typeof _0x553bd7&&(_0x553bd7={'main':_0x553bd7}),void 0x0===_0x47ae10){_0x47ae10={};for(const _0x4d9944 of this['editor'][_0x50fe('0x10f')][_0x50fe('0x7')][_0x50fe('0x1')]())_0x47ae10[_0x4d9944]={};}let _0x45f5b8=!0x1;const _0x355fa3=Object[_0x50fe('0x6f')](_0x553bd7),_0x279c29=Object[_0x50fe('0x6f')](_0x3041b3);for(const _0x48806a of _0x355fa3){if(_0x553bd7[_0x48806a]!==_0x3041b3[_0x48806a]&&''!==_0x553bd7[_0x48806a][_0x50fe('0x71')]()){_0x45f5b8=!0x0;break;}if(!_0x50686d(_0x47ae10[_0x48806a],_0xd4eea8[_0x48806a])&&Object['keys'](_0x47ae10[_0x48806a])[_0x50fe('0x31')]>0x0){_0x45f5b8=!0x0;break;}}_0x45f5b8||(_0x45f5b8=_0x279c29[_0x50fe('0x86')](_0x58faa3=>!this['editor']['model'][_0x50fe('0x7')][_0x50fe('0x8f')](_0x58faa3))),_0x45f5b8&&_0x5dc35f(_0x50fe('0xe6'),{'editorData':_0x553bd7,'editorRootsAttributes':_0x47ae10,'revisionData':_0x3041b3,'revisionRootsAttributes':_0xd4eea8}),this[_0x50fe('0x4f')]['config'][_0x50fe('0xb')]('initialData',_0x3041b3),this[_0x50fe('0x4f')]['config'][_0x50fe('0xb')](_0x50fe('0x7b'),_0xd4eea8);}[_0x50fe('0xc9')](){if(!this[_0x50fe('0x29')]){const _0x41f58c=this[_0x50fe('0x4f')][_0x50fe('0x70')][_0x50fe('0xe9')](_0x50fe('0x52'));this[_0x50fe('0x29')]=_0x41f58c[_0x50fe('0x19')](_0x4b8e3b(this['editor'][_0x50fe('0x107')],_0x50fe('0x2')));}}[_0x50fe('0x1d')](){this[_0x50fe('0x29')]&&(this[_0x50fe('0x4f')]['plugins'][_0x50fe('0xe9')](_0x50fe('0x52'))['remove'](this['_pendingAction']),this[_0x50fe('0x29')]=null);}[_0x50fe('0x95')](_0x2df5b6){const _0x510744=this[_0x50fe('0xf4')][_0x50fe('0x1f')]();_0x510744[_0x50fe('0xca')]();let _0xab46aa=0x0;for(;_0xab46aa<_0x510744[_0x50fe('0x31')];){const _0xa0dd3c=_0x510744[_0xab46aa];if(_0xa0dd3c===this[_0x50fe('0x50')]){_0xab46aa++;continue;}if(_0xa0dd3c['id']===this['_initialRevisionId'])break;const _0x19e242=_0x2df5b6[_0x50fe('0x88')]-_0xa0dd3c[_0x50fe('0x88')]||_0x2df5b6[_0x50fe('0x8d')]-_0xa0dd3c[_0x50fe('0x8d')];if(_0x19e242>0x0)break;if(_0x19e242<0x0)_0xab46aa++;else{if(!_0x2df5b6[_0x50fe('0x64')]&&_0xa0dd3c[_0x50fe('0x64')])break;if(_0xa0dd3c[_0x50fe('0x64')]||!_0x2df5b6[_0x50fe('0x64')]){if(_0x2df5b6['createdAt']>_0xa0dd3c['createdAt'])break;_0xab46aa++;}else _0xab46aa++;}}return _0xab46aa;}[_0x50fe('0xa1')](_0x1e0380){const _0x2ef8a0=this[_0x50fe('0xf4')]['getRevision'](_0x1e0380['id']);if(_0x1e0380[_0x50fe('0x7f')]&&(_0x1e0380[_0x50fe('0x7f')]=new Date(_0x1e0380[_0x50fe('0x7f')])),_0x1e0380[_0x50fe('0x83')]){const _0x29e392=this[_0x50fe('0x4f')][_0x50fe('0x70')][_0x50fe('0xe9')](_0x50fe('0xd7'));_0x1e0380[_0x50fe('0xf5')]=_0x1e0380[_0x50fe('0x83')][_0x50fe('0xe1')](_0x2c9c44=>_0x29e392[_0x50fe('0x3a')](_0x2c9c44));}_0x2ef8a0[_0x50fe('0x94')](_0x1e0380,!0x0);}[_0x50fe('0xd0')]({revision:_0x5afa36=null,from:_0x3b9695=null,to:_0x434f57=null}){_0x3b9695=null!==_0x3b9695?_0x3b9695:_0x5afa36[_0x50fe('0x8d')],_0x434f57=null!==_0x434f57?_0x434f57:_0x5afa36['toVersion'];const _0x405ddc=this[_0x50fe('0xab')]['getData'](_0x3b9695,_0x434f57),_0x5e88c0={'diffData':_0x405ddc[_0x50fe('0xa4')],'authorsIds':_0x405ddc[_0x50fe('0x83')],'fromVersion':_0x3b9695,'toVersion':_0x434f57};if(!_0x5afa36||_0x434f57!==_0x5afa36[_0x50fe('0x88')]){const _0x3b6e28=_0x434f57-0x1,_0x1f6711=this['_source']['history'][_0x50fe('0xa')](_0x3b6e28);_0x5e88c0[_0x50fe('0x7f')]=_0x1f6711&&_0x1f6711['createdAt']||new Date();}if(this[_0x50fe('0x9f')]&&_0x3b9695===this[_0x50fe('0x9f')][_0x50fe('0x8d')])for(const _0x5315e4 of this[_0x50fe('0x9f')][_0x50fe('0xf5')])_0x5e88c0[_0x50fe('0x83')][_0x50fe('0xfe')](_0x5315e4['id'])||_0x5e88c0[_0x50fe('0x83')][_0x50fe('0x2c')](_0x5315e4['id']);return _0x5e88c0;}[_0x50fe('0x3')](_0xf9e75f){if(!_0xf9e75f||_0xf9e75f[_0x50fe('0xa4')])return Promise['resolve']();{const _0x417e1b=this['editor'][_0x50fe('0xd4')][_0x50fe('0xe9')](_0x50fe('0xf'));return this[_0x50fe('0x8')]['getRevision']({'channelId':_0x417e1b,'revisionId':_0xf9e75f['id']})[_0x50fe('0x9a')](_0x3fca99=>{_0xf9e75f[_0x50fe('0xa4')]=_0x3fca99[_0x50fe('0xa4')];});}}[_0x50fe('0x10c')](_0x262d2b,_0x3f2c33,_0x26197c){if(this[_0x50fe('0x62')]['has'](_0x262d2b)){const _0x4e06ec=this[_0x50fe('0x62')]['get'](_0x262d2b);_0x3f2c33=_0x26197c?{..._0x4e06ec,..._0x3f2c33}:{..._0x3f2c33,..._0x4e06ec};}this[_0x50fe('0x62')][_0x50fe('0xb')](_0x262d2b,_0x3f2c33);}[_0x50fe('0xc')](_0x458416){const _0x3c5514=this['repository'][_0x50fe('0x1f')]();_0x3c5514['reverse'](),_0x3c5514['shift']();const _0x17f8e3=_0x3c5514['find'](_0x59bc2f=>_0x59bc2f['toVersion']<=_0x458416)[_0x50fe('0x88')];return _0x17f8e3<this[_0x50fe('0x98')]?this[_0x50fe('0x98')]:_0x17f8e3;}[_0x50fe('0x65')](_0x453382){const _0x255a84=this[_0x50fe('0xf4')][_0x50fe('0x63')](this[_0x50fe('0xf4')][_0x50fe('0x31')]-0x1);if(_0x255a84)this[_0x50fe('0xbf')]=_0x255a84['id'];else{const _0x3cd780=!this[_0x50fe('0x4f')][_0x50fe('0x10f')][_0x50fe('0x7')][_0x50fe('0x5c')][_0x50fe('0x5d')](_0x4d081b=>this[_0x50fe('0x4f')][_0x50fe('0x10f')][_0x50fe('0xde')](_0x4d081b)),_0x994f54=this['editor']['plugins'][_0x50fe('0xe9')](_0x50fe('0xd7'))['me']['id'],_0x51a3a1=_0x4b8e3b(this[_0x50fe('0x4f')][_0x50fe('0x107')],_0x3cd780?_0x50fe('0x30'):_0x50fe('0x108'));this['_makeRevision']({'from':_0x453382,'to':_0x453382,'id':this[_0x50fe('0xbf')],'name':_0x51a3a1,'creatorId':_0x994f54});}}[_0x50fe('0x7a')](_0x161a14){const _0x5be4e2=this['_source'][_0x50fe('0x5e')]();this[_0x50fe('0x50')]=this[_0x50fe('0xf4')][_0x50fe('0x63')](_0x5be4e2),this['currentRevision']||(this[_0x50fe('0x50')]=this['_makeRevision']({'from':_0x161a14,'to':_0x161a14,'id':_0x5be4e2,'name':'','creatorId':null}));}[_0x50fe('0xa8')]({name:_0x1a3bc8,from:_0x352fcd,to:_0x1f17c9,creatorId:_0x1a139c,id:_0xbf4688}){const _0xa32f55=this[_0x50fe('0xd0')]({'from':_0x352fcd,'to':_0x1f17c9});_0xa32f55['name']=_0x1a3bc8,_0xa32f55[_0x50fe('0xb2')]=_0x1a139c,_0xa32f55['id']=_0xbf4688;const _0x2c7a4c=this[_0x50fe('0xba')](_0xa32f55);return this['adapter']&&this['_bufferUpdate'](_0xa32f55['id'],_0xa32f55,!0x0),_0x2c7a4c;}[_0x50fe('0xae')](){this[_0x50fe('0x4f')]['conversion'][_0x50fe('0xb9')](_0x50fe('0xec'))[_0x50fe('0x37')]({'model':_0x50fe('0xcb')});}[_0x50fe('0x8a')](_0x1aa635){return(_0x1aa635=_0x1aa635[_0x50fe('0xef')](_0x34d450=>!_0x34d450[_0x50fe('0xf8')]||_0x50fe('0x5')!==_0x34d450[_0x50fe('0xf8')]&&'revision-end'!==_0x34d450[_0x50fe('0xf8')]))[_0x50fe('0x91')](_0xf2a94a=>{'string'!=typeof _0xf2a94a&&(_0xf2a94a[_0x50fe('0xd6')]=this['_removeRevisionMarkers'](_0xf2a94a[_0x50fe('0xd6')]),_0xf2a94a[_0x50fe('0xa6')]=_0xf2a94a[_0x50fe('0xa6')][_0x50fe('0xef')](_0x5a6371=>!_0x5a6371[0x0][_0x50fe('0xb1')](_0x50fe('0x78'))));}),_0x1aa635;}}function J(_0x52671f,_0x2a134b){const _0x59fd59=_0x2a134b['editing'][_0x50fe('0x54')][_0x50fe('0x7')];if(_0x50fe('0x99')==typeof _0x52671f)return new _0x2a6498(_0x59fd59,_0x52671f);{const _0x260a37=_0x52671f[_0x50fe('0xd6')][_0x50fe('0xe1')](_0x283e81=>J(_0x283e81,_0x2a134b));return new(B[_0x52671f[(_0x50fe('0x1c'))]]||_0x5dd5eb)(_0x59fd59,_0x52671f[_0x50fe('0xf8')],_0x52671f[_0x50fe('0xa6')],_0x260a37);}}class H{constructor(_0x1c4059){this[_0x50fe('0x4f')]=_0x1c4059,this[_0x50fe('0x2d')]=new Map(),this[_0x50fe('0xb7')]=-0x1,this[_0x50fe('0x6b')]=-0x1,this[_0x50fe('0x3f')]=new Map(),this[_0x50fe('0x41')]=new Map(),this[_0x50fe('0x85')]=new Map(),this[_0x50fe('0x1a')]=new Map(),this[_0x50fe('0x42')]=new Map(),this['_idsRoots']=new Map(),this[_0x50fe('0x44')]=new Map(),this[_0x50fe('0x57')]=new Map(),this[_0x50fe('0xce')]=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x22f38d){this[_0x50fe('0x33')]=_0x22f38d;const _0x3981ad=new Map(),_0x32a574=new Map(),_0x23f43a=this[_0x50fe('0x4f')][_0x50fe('0x10f')][_0x50fe('0x7')][_0x50fe('0x5c')]['map'](_0x2dae70=>_0x2dae70[_0x50fe('0x26')]);for(const _0x532d97 of _0x23f43a){const _0x28069a=this['editor']['model'][_0x50fe('0x7')][_0x50fe('0x8f')](_0x532d97),_0x286996=q(_0x28069a);_0x3981ad['set'](_0x532d97,_0x286996),_0x32a574[_0x50fe('0xb')](_0x532d97,Object[_0x50fe('0x84')](_0x28069a[_0x50fe('0x76')]()));}const _0xc0987a=Array[_0x50fe('0x0')](this['editor'][_0x50fe('0x10f')]['markers'])[_0x50fe('0xe1')](_0x23aeef=>[_0x23aeef[_0x50fe('0xf8')],_0x23aeef['getRange']()]),_0x2896cf=this[_0x50fe('0x33')]['version'];this[_0x50fe('0x4a')](_0x2896cf,_0x3981ad,_0xc0987a,_0x32a574),this[_0x50fe('0xa2')]=this['_revisionId'];const _0x39fcb2=new Map(),_0x4e3811=new Map();for(const _0xb5b52f of _0x23f43a){const _0x1c307c=G(_0xb5b52f);_0x39fcb2[_0x50fe('0xb')](_0xb5b52f,_0x1c307c),_0x4e3811[_0x50fe('0xb')](_0xb5b52f,{});}this[_0x50fe('0x4a')](Number[_0x50fe('0xf3')],_0x39fcb2,[],_0x4e3811);}['getData'](_0x534d7e,_0x58c193){if(this[_0x50fe('0xb7')]===_0x534d7e&&this['_lastTo']<=_0x58c193)this[_0x50fe('0x2d')][_0x50fe('0xa5')]>0x1&&this[_0x50fe('0x102')](this['_lastTo']),this['_applyOperations'](this[_0x50fe('0x6b')],_0x58c193,!0x0);else{if(!this[_0x50fe('0x2d')][_0x50fe('0x79')](_0x534d7e)){const _0x12cb94=this[_0x50fe('0xa0')](_0x534d7e);this[_0x50fe('0x23')](_0x12cb94,_0x534d7e,!0x1);}this[_0x50fe('0x23')](_0x534d7e,_0x58c193,!0x0);}return this['_lastFrom']=_0x534d7e,this['_lastTo']=_0x58c193,this['_getState']();}[_0x50fe('0x4b')](_0x9db0b3){this[_0x50fe('0x74')](),this['_lastFrom']=_0x9db0b3['fromVersion'],this[_0x50fe('0x6b')]=_0x9db0b3['toVersion'];for(const _0x1b0224 in _0x9db0b3[_0x50fe('0xa4')]){const _0x173e65=_0x9db0b3[_0x50fe('0xa4')][_0x1b0224]['attachChange'],_0x47451d=_0x12af63(_0x9db0b3[_0x50fe('0xa4')][_0x1b0224]['attributesBefore'])||{},_0x4a9c93=this[_0x50fe('0xd3')](_0x9db0b3['diffData'][_0x1b0224][_0x50fe('0x17')]);_0x4a9c93['rootName']=_0x1b0224,_0x4a9c93[_0x50fe('0xd')]=!_0x173e65||!_0x173e65['isAttached'],_0x4a9c93['isAttached']=()=>_0x4a9c93[_0x50fe('0xd')],this['_baseRoots'][_0x50fe('0xb')](_0x1b0224,_0x4a9c93),this[_0x50fe('0x42')][_0x50fe('0xb')](_0x1b0224,_0x47451d),_0x173e65&&this[_0x50fe('0xff')]['set'](_0x1b0224,_0x173e65);const _0x3f9d38=this[_0x50fe('0x34')](_0x4a9c93);this[_0x50fe('0x44')]['set'](_0x1b0224,_0x3f9d38);for(const [_0x3d9fba,_0x4a11f1]of _0x4a9c93['markers']){if(!_0x3d9fba[_0x50fe('0xb1')](_0x50fe('0x53')))continue;const _0x5d5613=_0x3d9fba[_0x50fe('0xfd')](':')[0x2];for(const _0x5b25c2 of _0x4a11f1[_0x50fe('0x100')]({'singleCharacters':!0x0})){const _0x4abd9a=this[_0x50fe('0xd1')](_0x5b25c2),_0x28a524=_0x50fe('0x1b')==_0x5b25c2[_0x50fe('0x1c')]?_0x5b25c2[_0x50fe('0x4d')][_0x50fe('0x36')][_0x50fe('0xda')](0x0,-0x1):_0x5b25c2['previousPosition'][_0x50fe('0x36')],_0x41844c=_0x3f9d38[_0x50fe('0x58')](_0x28a524)[_0x50fe('0x61')](_0x4abd9a);this[_0x50fe('0x57')][_0x50fe('0xb')](_0x41844c,{'userId':_0x5d5613});}}}this[_0x50fe('0xa2')]=this[_0x50fe('0x22')];const _0x533c10=[...Array(this[_0x50fe('0x22')])['keys']()][_0x50fe('0xda')](0x1)[_0x50fe('0xef')](_0x816e31=>!this['_touched'][_0x50fe('0x79')](_0x816e31));let _0x251b3f=0x0;const _0x44934d=new Map();for(const _0x28ed46 in _0x9db0b3['diffData']){const _0x15f8a0=_0x9db0b3[_0x50fe('0xa4')][_0x28ed46][_0x50fe('0x49')],_0x25caa6=_0x12af63(_0x9db0b3[_0x50fe('0xa4')][_0x28ed46][_0x50fe('0x48')])||{},_0x4af9fb=this[_0x50fe('0xd3')](_0x9db0b3['diffData'][_0x28ed46][_0x50fe('0x10b')]);_0x4af9fb[_0x50fe('0x26')]=_0x28ed46,_0x4af9fb[_0x50fe('0xd')]=!_0x15f8a0||_0x15f8a0[_0x50fe('0x9e')],_0x4af9fb[_0x50fe('0x9e')]=()=>_0x4af9fb['_isAttached'],this[_0x50fe('0x41')]['set'](_0x28ed46,_0x4af9fb),this[_0x50fe('0x85')][_0x50fe('0xb')](_0x28ed46,_0x25caa6);const _0x256baf=this[_0x50fe('0x34')](_0x4af9fb,Number[_0x50fe('0xf3')]);this[_0x50fe('0x32')]['set'](_0x28ed46,_0x256baf),_0x44934d['set'](_0x28ed46,_0x4af9fb[_0x50fe('0x9e')]()?_0x25caa6:{});for(const [_0x264bc2,_0x83fdbd]of _0x4af9fb[_0x50fe('0x4e')]){if(!_0x264bc2['startsWith'](_0x50fe('0x53')))continue;const _0x493d9f=_0x264bc2[_0x50fe('0xfd')](':')[0x2];for(const _0x390fb6 of _0x83fdbd['getWalker']({'singleCharacters':!0x0})){const _0x1e0100=this[_0x50fe('0xd1')](_0x390fb6),_0x25c380=this['_revisionId']++,_0x580afb=_0x50fe('0x1b')==_0x390fb6[_0x50fe('0x1c')]?_0x390fb6['previousPosition'][_0x50fe('0x36')][_0x50fe('0xda')](0x0,-0x1):_0x390fb6[_0x50fe('0x4d')]['path'];_0x256baf[_0x50fe('0x58')](_0x580afb)[_0x50fe('0xb4')](_0x1e0100,_0x25c380),this['_touched']['set'](_0x25c380,{'userId':_0x493d9f});}}for(const _0x5c175d of this['editor'][_0x50fe('0x10f')][_0x50fe('0x40')](_0x4af9fb)['getWalker']({'singleCharacters':!0x0})){const _0xf2a90f=this[_0x50fe('0xd1')](_0x5c175d),_0x4a66c2=_0x50fe('0x1b')==_0x5c175d[_0x50fe('0x1c')]?_0x5c175d['previousPosition'][_0x50fe('0x36')][_0x50fe('0xda')](0x0,-0x1):_0x5c175d[_0x50fe('0x4d')][_0x50fe('0x36')],_0x10cc1c=_0x256baf[_0x50fe('0x58')](_0x4a66c2);_0x10cc1c[_0x50fe('0x61')](_0xf2a90f)>0x0||_0x10cc1c[_0x50fe('0xb4')](_0xf2a90f,_0x533c10[_0x251b3f++]);}for(const [_0x4987e2,_0x20cb01]of _0x4af9fb[_0x50fe('0x4e')])_0x4987e2[_0x50fe('0xb1')](_0x50fe('0x53'))||this[_0x50fe('0x3f')][_0x50fe('0xb')](_0x4987e2,_0x20cb01);}const _0x2a9d76=G(_0x50fe('0xbe'));this['_baseRoots'][_0x50fe('0xb')](_0x50fe('0xbe'),_0x2a9d76),this[_0x50fe('0x44')][_0x50fe('0xb')]('$graveyard',this[_0x50fe('0x34')](_0x2a9d76,0x1));const _0x72e7=G(_0x50fe('0xbe'));this['_diffRoots'][_0x50fe('0xb')](_0x50fe('0xbe'),_0x72e7),this[_0x50fe('0x32')][_0x50fe('0xb')](_0x50fe('0xbe'),this[_0x50fe('0x34')](_0x72e7,0x1));const _0x1f65de=Array[_0x50fe('0x0')](this[_0x50fe('0x41')])['map'](([_0x3b5ca7,_0x5c602a])=>[_0x3b5ca7,q(_0x5c602a)]);this[_0x50fe('0x4a')](this[_0x50fe('0x6b')],_0x1f65de,this[_0x50fe('0x3f')],_0x44934d);}['_makeModelFromViewString'](_0x2c4bc4){const _0x23119d=JSON[_0x50fe('0x8e')](_0x2c4bc4),_0x1bd968=this[_0x50fe('0x4f')][_0x50fe('0x2e')]['view'][_0x50fe('0x7')],_0x5b8804=new _0x20ce28(_0x1bd968,_0x23119d[_0x50fe('0xe1')](_0x343257=>J(_0x343257,this[_0x50fe('0x4f')])));return this[_0x50fe('0x4f')][_0x50fe('0x46')]['toModel'](_0x5b8804);}[_0x50fe('0x4a')](_0xa0287,_0x599a6a,_0x47cd8f,_0x16af19){const _0x57e4e8=new Map(_0x599a6a),_0x4aec99=new Map(_0x12af63(_0x16af19)),_0x3ff457=new Map();for(const [_0x36584d,_0x3aad06]of _0x47cd8f)_0x3ff457[_0x50fe('0xb')](_0x36584d,{'start':_0x3aad06[_0x50fe('0x6e')][_0x50fe('0x5a')](),'end':_0x3aad06[_0x50fe('0x10d')][_0x50fe('0x5a')](),'rootName':_0x3aad06[_0x50fe('0xe7')]['rootName']});this['_savedMetaData'][_0x50fe('0xb')](_0xa0287,{'roots':_0x57e4e8,'markers':_0x3ff457,'rootsAttributes':_0x4aec99});}[_0x50fe('0x102')](_0x5cc0d6){this['_savedMetaData'][_0x50fe('0xc2')](_0x5cc0d6);}[_0x50fe('0x47')](){this[_0x50fe('0x74')](),this[_0x50fe('0xb7')]=-0x1,this[_0x50fe('0x6b')]=-0x1,this[_0x50fe('0x2d')][_0x50fe('0x55')](),this['init'](this[_0x50fe('0x33')]);}[_0x50fe('0x74')](){this[_0x50fe('0x57')]['clear'](),this[_0x50fe('0xce')]['clear'](),this[_0x50fe('0xff')][_0x50fe('0x55')](),this[_0x50fe('0x41')][_0x50fe('0x55')](),this[_0x50fe('0x85')][_0x50fe('0x55')](),this[_0x50fe('0x1a')][_0x50fe('0x55')](),this[_0x50fe('0x42')][_0x50fe('0x55')](),this[_0x50fe('0x32')][_0x50fe('0x55')](),this[_0x50fe('0x44')][_0x50fe('0x55')](),this[_0x50fe('0x3f')][_0x50fe('0x55')](),this[_0x50fe('0x22')]=0x1,this[_0x50fe('0xa2')]=this[_0x50fe('0x22')];}[_0x50fe('0x34')](_0xdce4f2,_0x77a087=null){let _0x1aeb9f=null;_0xdce4f2['is']('documentFragment')||(_0x1aeb9f=new _0x59be18(_0xdce4f2[_0x50fe('0xf8')],{'vid_start':null===_0x77a087?this[_0x50fe('0x22')]++:_0x77a087++}));const _0x389cbc=[];for(const _0x3fb0ab of _0xdce4f2[_0x50fe('0x68')]())if(_0x3fb0ab['is'](_0x50fe('0xe3'))){_0x389cbc[_0x50fe('0x2c')](this[_0x50fe('0x34')](_0x3fb0ab,_0x77a087));const _0x230b00=_0x389cbc[_0x389cbc[_0x50fe('0x31')]-0x1];null!==_0x77a087&&(_0x77a087=_0x230b00['is'](_0x50fe('0xe3'),'$text')?_0x230b00['getAttribute'](_0x50fe('0x6a'))+0x1:_0x230b00[_0x50fe('0x61')]('vid_end')+0x1);}else for(let _0x41c3a7=0x0;_0x41c3a7<_0x3fb0ab[_0x50fe('0xb0')];_0x41c3a7++)_0x389cbc[_0x50fe('0x2c')](new _0x59be18('$text',{'vid':null===_0x77a087?this[_0x50fe('0x22')]++:_0x77a087++}));if(_0xdce4f2['is'](_0x50fe('0x35'))){const _0xe7cc24=G(_0xdce4f2[_0x50fe('0x26')]);return _0xe7cc24[_0x50fe('0xf1')](0x0,_0x389cbc),_0xe7cc24;}return _0x1aeb9f[_0x50fe('0xb4')](_0x50fe('0xc3'),null===_0x77a087?this[_0x50fe('0x22')]++:_0x77a087++),_0x1aeb9f[_0x50fe('0xf1')](0x0,_0x389cbc),_0x1aeb9f;}[_0x50fe('0x23')](_0x331e68,_0x47bd76,_0x1cb427){this[_0x50fe('0x74')]();const {roots:_0x518742,markers:_0x5e938e,rootsAttributes:_0x23c5d6}=this['_savedMetaData'][_0x50fe('0xe9')](_0x331e68);this[_0x50fe('0x1a')]=new Map(_0x518742),this['_baseRootsAttributes']=new Map(_0x12af63(_0x23c5d6));for(const [_0x945f80,_0x5a8002]of this[_0x50fe('0x1a')])if(_0x50fe('0xbe')!==_0x945f80&&(this['_diffRoots']['set'](_0x945f80,q(_0x5a8002)),this[_0x50fe('0x85')]=new Map(_0x12af63(_0x23c5d6)),_0x1cb427)){const _0x23583a=this[_0x50fe('0x22')];this['_idsRoots']['set'](_0x945f80,this[_0x50fe('0x34')](_0x5a8002)),this[_0x50fe('0x44')][_0x50fe('0xb')](_0x945f80,this[_0x50fe('0x34')](_0x5a8002,_0x23583a));}this['_startingRevisionId']=this[_0x50fe('0x22')],this[_0x50fe('0x41')][_0x50fe('0xb')](_0x50fe('0xbe'),q(this[_0x50fe('0x1a')][_0x50fe('0xe9')](_0x50fe('0xbe')))),_0x1cb427&&this[_0x50fe('0x32')]['set']('$graveyard',this['_makeIdsRoot'](this[_0x50fe('0x1a')][_0x50fe('0xe9')](_0x50fe('0xbe'))));for(const [_0x1cf7eb,_0x1b7e12]of _0x5e938e){const _0x73739=this[_0x50fe('0x1a')][_0x50fe('0xe9')](_0x1b7e12[_0x50fe('0x26')]),_0x496840=this['_diffRoots'][_0x50fe('0xe9')](_0x1b7e12[_0x50fe('0x26')]),_0x1bfb87=new _0x4ce064(this['_fixPosition'](_0x1b7e12['start'],_0x73739),this[_0x50fe('0x56')](_0x1b7e12[_0x50fe('0x10d')],_0x73739)),_0x3a0ff0=this[_0x50fe('0xc8')](_0x1bfb87,_0x496840);_0x73739[_0x50fe('0x4e')][_0x50fe('0xb')](_0x1cf7eb,_0x1bfb87),this[_0x50fe('0x3f')]['set'](_0x1cf7eb,_0x3a0ff0);}this[_0x50fe('0x103')](_0x331e68,_0x47bd76,_0x1cb427);}[_0x50fe('0x103')](_0xb0b003,_0x4af11a,_0x359115){for(const _0x302d5d of this[_0x50fe('0x33')][_0x50fe('0x90')](_0xb0b003,_0x4af11a))this[_0x50fe('0x72')](_0x302d5d,_0x359115);for(const _0x3b3690 of this[_0x50fe('0x41')]['values']())_0x3b3690[_0x50fe('0x4e')][_0x50fe('0x55')]();for(const [_0x4a9358,_0x3f4c1c]of this[_0x50fe('0x3f')]){this[_0x50fe('0x41')]['get'](_0x3f4c1c[_0x50fe('0xe7')]['rootName'])[_0x50fe('0x4e')]['set'](_0x4a9358,_0x3f4c1c['clone']());}const _0x33d401=new Map(),_0x5f07c3=new Map();for(const [_0x4e241c,_0x23a3cd]of this['_diffRoots'])_0x33d401['set'](_0x4e241c,q(_0x23a3cd)),_0x5f07c3[_0x50fe('0xb')](_0x4e241c,this[_0x50fe('0x85')][_0x50fe('0xe9')](_0x4e241c));this[_0x50fe('0x4a')](_0x4af11a,_0x33d401,this[_0x50fe('0x3f')],_0x5f07c3);}[_0x50fe('0xa0')](_0x16619c){const _0x192f36=Array[_0x50fe('0x0')](this[_0x50fe('0x2d')]['keys']());_0x192f36[_0x50fe('0xa3')]((_0x43dc7a,_0x2b82cd)=>_0x43dc7a-_0x2b82cd),_0x192f36['reverse']();for(const _0x3c386b of _0x192f36)if(_0x3c386b<_0x16619c)return _0x3c386b;return Number['NEGATIVE_INFINITY'];}[_0x50fe('0xaa')](_0x55961c,_0x579287){const _0x3e68af=Array['from'](_0x579287['markers'])['map'](([_0x130f96,_0x146030])=>[_0x130f96,this['_fixRange'](_0x146030,_0x55961c)]);_0x55961c[_0x50fe('0x4e')]=new Map(_0x3e68af);}['_transformMarkers'](_0x546026){for(const _0x215209 of this[_0x50fe('0x3f')][_0x50fe('0x27')]()){const _0x88a5f7=_0x215209[_0x50fe('0x25')](_0x546026),_0x1a7107=_0x4ce064[_0x50fe('0x96')](_0x88a5f7);_0x215209[_0x50fe('0x6e')]=_0x1a7107['start'],_0x215209['end']=_0x1a7107[_0x50fe('0x10d')];}}[_0x50fe('0x72')](_0x2abbae,_0xdfff3d){if('addRoot'==_0x2abbae[_0x50fe('0x1c')]||_0x50fe('0xfa')==_0x2abbae[_0x50fe('0x1c')])return void this[_0x50fe('0xd8')](_0x2abbae,_0xdfff3d);if(_0x50fe('0x9')==_0x2abbae[_0x50fe('0x1c')]){const _0x26bbda=_0x2abbae[_0x50fe('0xbd')][_0x50fe('0xe7')][_0x50fe('0x26')];this[_0x50fe('0x41')][_0x50fe('0x79')](_0x26bbda)||(this[_0x50fe('0x41')]['set'](_0x26bbda,G(_0x26bbda,!0x0)),this[_0x50fe('0x85')]['set'](_0x26bbda,{}),_0xdfff3d&&this[_0x50fe('0x32')][_0x50fe('0xb')](_0x26bbda,G(_0x26bbda,!0x0)));}else{if(_0x50fe('0xa9')==_0x2abbae[_0x50fe('0x1c')]||_0x50fe('0x10')==_0x2abbae[_0x50fe('0x1c')]||_0x50fe('0xd9')==_0x2abbae[_0x50fe('0x1c')])return void this[_0x50fe('0xc4')](_0x2abbae);}const _0x23c3d5=this[_0x50fe('0xb6')](_0x2abbae,this[_0x50fe('0x41')]);if(_0x50fe('0x75')!==_0x2abbae[_0x50fe('0x1c')]&&(_0x23c3d5[_0x50fe('0x9c')](),this[_0x50fe('0xfc')](_0x23c3d5)),_0xdfff3d)switch(_0x23c3d5[_0x50fe('0x1c')]){case _0x50fe('0x9'):this[_0x50fe('0x69')](_0x2abbae);break;case _0x50fe('0x10a'):case _0x50fe('0xeb'):case'reinsert':this['_handleMoveOperation'](_0x2abbae);break;case'merge':this[_0x50fe('0xc7')](_0x2abbae);break;case _0x50fe('0xfd'):this[_0x50fe('0xe4')](_0x2abbae);break;case _0x50fe('0x75'):this[_0x50fe('0xa7')](_0x2abbae);}}[_0x50fe('0xb6')](_0x29f6d5,_0x40296e){const _0xc9e574=_0x29f6d5[_0x50fe('0x5a')]();return _0xc9e574[_0x50fe('0xad')]=_0x29f6d5[_0x50fe('0xad')],this[_0x50fe('0x7c')](_0xc9e574,_0x40296e),_0xc9e574;}[_0x50fe('0x21')](_0x3d9e30){return _0x3d9e30[_0x50fe('0xe1')](_0x27819b=>{const _0x3a491f=this[_0x50fe('0xd1')](_0x27819b);return Number(_0x27819b[_0x50fe('0xdf')][_0x50fe('0x61')](_0x3a491f));});}[_0x50fe('0x2b')](_0x151949,_0x338a6f){if(_0x151949['is'](_0x50fe('0xe3'),_0x50fe('0x60')))_0x338a6f['push']({'item':_0x151949,'type':'text'});else{_0x151949['is'](_0x50fe('0xe3'))&&_0x338a6f[_0x50fe('0x2c')]({'item':_0x151949,'type':_0x50fe('0xac')});for(const _0xd064a of _0x151949['getChildren']())this[_0x50fe('0x2b')](_0xd064a,_0x338a6f);_0x151949['is'](_0x50fe('0xe3'))&&_0x338a6f['push']({'item':_0x151949,'type':'elementEnd'});}return _0x338a6f;}[_0x50fe('0x28')](){const _0x4d4def=new Map(this[_0x50fe('0x57')]),_0x376b2c=new Map(_0x4d4def),_0x108fb3=new Map(),_0xbf2961={'insertions':{},'deletions':{}},_0x198852={'insertions':{},'deletions':{}},_0x1896cc=new Map(),_0x1de033=new Set([...this[_0x50fe('0x1a')][_0x50fe('0x6f')](),...this[_0x50fe('0x41')][_0x50fe('0x6f')]()]);_0x1de033[_0x50fe('0xc2')](_0x50fe('0xbe'));for(const _0x57af5d of _0x1de033){const _0xbb3915=this['_diffRoots'][_0x50fe('0xe9')](_0x57af5d)||G(_0x57af5d,!0x1),_0x302d54=this[_0x50fe('0x1a')][_0x50fe('0xe9')](_0x57af5d)||G(_0x57af5d,!0x1);_0xbb3915['isAttached']()||_0x302d54[_0x50fe('0x9e')]()?(_0xbf2961[_0x50fe('0x10b')][_0x57af5d]=q(_0xbb3915),_0xbf2961['deletions'][_0x57af5d]=q(_0x302d54),this[_0x50fe('0xaa')](_0xbf2961[_0x50fe('0x17')][_0x57af5d],_0x302d54),this[_0x50fe('0xaa')](_0xbf2961[_0x50fe('0x10b')][_0x57af5d],_0xbb3915),_0x198852[_0x50fe('0x10b')][_0x57af5d]=this['_generateTape'](this['_idsRoots']['get'](_0x57af5d),[]),_0x198852[_0x50fe('0x17')][_0x57af5d]=this[_0x50fe('0x2b')](this[_0x50fe('0x44')][_0x50fe('0xe9')](_0x57af5d)||G(_0x57af5d,!0x1),[])):_0x1de033[_0x50fe('0xc2')](_0x57af5d);}for(const _0x392c33 of _0x1de033){const _0x20fe0e=_0x198852[_0x50fe('0x10b')][_0x392c33];for(const _0x513142 of _0x20fe0e){const _0x15ef2e=this[_0x50fe('0xd1')](_0x513142),_0x58e1a3=_0x513142[_0x50fe('0xdf')][_0x50fe('0x61')](_0x15ef2e);_0x376b2c[_0x50fe('0xc2')](_0x58e1a3),_0x58e1a3>=this[_0x50fe('0xa2')]&&_0x108fb3[_0x50fe('0xb')](_0x58e1a3,_0x4d4def['get'](_0x58e1a3));}}for(const _0x349749 of _0x1de033){const _0x1693ee=_0x198852[_0x50fe('0x10b')][_0x349749],_0xed29d9=this['_getBaseVids'](_0x198852[_0x50fe('0x17')][_0x349749]);let _0x5389d8=0x0;for(const _0x25f18e of _0x1693ee){const _0x3e6311=this[_0x50fe('0xd1')](_0x25f18e),_0x1ad19a=_0x25f18e[_0x50fe('0xdf')][_0x50fe('0x61')](_0x3e6311);if(!_0x108fb3[_0x50fe('0x79')](_0x1ad19a)&&!_0x1896cc[_0x50fe('0x79')](_0x1ad19a)){if(_0x376b2c[_0x50fe('0x79')](_0x1ad19a))_0x5389d8++;else{if(_0x1ad19a!=_0xed29d9[_0x5389d8]){const _0x251415=_0x4d4def['get'](_0x1ad19a)||_0x4d4def[_0x50fe('0xe9')](_0xed29d9[_0x5389d8]);for(;_0x1ad19a!=_0xed29d9[_0x5389d8];)_0x376b2c[_0x50fe('0x79')](_0xed29d9[_0x5389d8])||(_0x1896cc['set'](_0xed29d9[_0x5389d8],_0x251415),_0x4d4def[_0x50fe('0xb')](_0xed29d9[_0x5389d8],_0x251415)),_0x5389d8++;}_0x5389d8++;}}}}for(const _0x28fecb of _0x1de033){const _0x5e52b0=_0x198852[_0x50fe('0x10b')][_0x28fecb];for(const _0x37965a of _0x5e52b0){const _0x1b8f2f=this['_getVidAttributeName'](_0x37965a),_0x124442=_0x37965a[_0x50fe('0xdf')][_0x50fe('0x61')](_0x1b8f2f);if(_0x1896cc[_0x50fe('0x79')](_0x124442)){const _0x3c3b5f=_0x1896cc[_0x50fe('0xe9')](_0x124442);_0x376b2c[_0x50fe('0x79')](_0x124442)||_0x376b2c[_0x50fe('0xb')](_0x124442,{..._0x3c3b5f}),_0x108fb3[_0x50fe('0xb')](_0x124442,{..._0x3c3b5f});}}}for(const _0x13a7bf of _0x376b2c[_0x50fe('0x6f')]())_0x13a7bf>=this[_0x50fe('0xa2')]&&_0x376b2c[_0x50fe('0xc2')](_0x13a7bf);const _0x457d48=new Map();for(const _0x18414e of _0x1de033){let _0x5f40d3=_0x198852[_0x50fe('0x10b')][_0x18414e];for(const _0x4e4697 of _0x5f40d3)if(_0x4e4697[_0x50fe('0xdf')]['is']('element',_0x50fe('0x7d'))){const _0x22c97f=this[_0x50fe('0xd1')](_0x4e4697),_0x944e71=_0x4e4697[_0x50fe('0xdf')][_0x50fe('0x61')](_0x22c97f);if(_0x108fb3[_0x50fe('0x79')](_0x944e71)){const _0x39e377=_0x4e4697[_0x50fe('0xdf')]['parent']['parent'][_0x50fe('0x61')](_0x50fe('0x104')),_0x2d4c88=_0x457d48[_0x50fe('0xe9')](_0x39e377)||new Set();_0x2d4c88['add'](_0x108fb3['get'](_0x944e71)['userId']),_0x457d48[_0x50fe('0xb')](_0x39e377,_0x2d4c88);}}_0x5f40d3=_0x198852[_0x50fe('0x17')][_0x18414e];for(const _0x4cdab6 of _0x5f40d3)if(_0x4cdab6[_0x50fe('0xdf')]['is'](_0x50fe('0xe3'),_0x50fe('0x7d'))){const _0x12dc6e=this[_0x50fe('0xd1')](_0x4cdab6),_0x2a0426=_0x4cdab6[_0x50fe('0xdf')][_0x50fe('0x61')](_0x12dc6e);if(_0x376b2c['has'](_0x2a0426)){const _0x49e80f=_0x4cdab6[_0x50fe('0xdf')][_0x50fe('0xe8')][_0x50fe('0xe8')][_0x50fe('0x61')](_0x50fe('0x104')),_0x4af140=_0x457d48[_0x50fe('0xe9')](_0x49e80f)||new Set();_0x4af140['add'](_0x376b2c[_0x50fe('0xe9')](_0x2a0426)[_0x50fe('0xc1')]),_0x457d48['set'](_0x49e80f,_0x4af140);}}for(const _0x1ee18c of _0x457d48[_0x50fe('0x6f')]())(_0x108fb3[_0x50fe('0x79')](_0x1ee18c)||_0x376b2c[_0x50fe('0x79')](_0x1ee18c))&&_0x457d48['delete'](_0x1ee18c);}for(const _0x582128 of _0x1de033){const _0x31728d=_0x198852['insertions'][_0x582128];let _0x39e184=null,_0x3e52b6=null;for(const _0x2c0895 of _0x31728d){const _0x379438=this[_0x50fe('0xd1')](_0x2c0895),_0x49c62b=_0x2c0895[_0x50fe('0xdf')][_0x50fe('0x61')](_0x379438),_0x1f771a=_0x457d48[_0x50fe('0xe9')](_0x49c62b);_0x1f771a&&_0x50fe('0xac')==_0x2c0895[_0x50fe('0x1c')]&&(_0x39e184=Array[_0x50fe('0x0')](_0x1f771a)[0x0],_0x3e52b6=_0x2c0895[_0x50fe('0xdf')]['getAttribute'](_0x50fe('0xc3'))),_0x39e184&&(_0x376b2c[_0x50fe('0xb')](_0x49c62b,{'userId':_0x39e184}),_0x108fb3['set'](_0x49c62b,{'userId':_0x39e184})),_0x49c62b==_0x3e52b6&&(_0x39e184=null,_0x3e52b6=null);}}const _0x43ffb5={},_0x11dd8f=new Set();for(const _0x597d07 of _0x1de033){const _0x1585b3=_0xbf2961[_0x50fe('0x17')][_0x597d07],_0x15410d=_0xbf2961[_0x50fe('0x10b')][_0x597d07];for(const {userId:_0x3edd5b}of this['_touchedMarkers']['values']())null!==_0x3edd5b&&_0x11dd8f['add'](_0x3edd5b);for(const {userId:_0x173214}of this[_0x50fe('0xff')]['values']())null!==_0x173214&&_0x11dd8f[_0x50fe('0x19')](_0x173214);this[_0x50fe('0xc6')](_0x15410d,_0x198852[_0x50fe('0x10b')][_0x597d07],_0x108fb3,_0x50fe('0x6c'),_0x11dd8f),this[_0x50fe('0xc6')](_0x1585b3,_0x198852[_0x50fe('0x17')][_0x597d07],_0x376b2c,_0x50fe('0xdb'),_0x11dd8f),_0x43ffb5[_0x597d07]={'insertions':this[_0x50fe('0x9b')](_0x15410d),'deletions':this[_0x50fe('0x9b')](_0x1585b3),'attachChange':this['_touchedRoots']['get'](_0x597d07)||null,'attributesBefore':_0x12af63(this['_baseRootsAttributes']['get'](_0x597d07))||{},'attributesAfter':_0x12af63(this[_0x50fe('0x85')][_0x50fe('0xe9')](_0x597d07))};}return{'diffData':_0x43ffb5,'authorsIds':Array['from'](_0x11dd8f)};}[_0x50fe('0x43')](_0x236385){for(const [,_0xeec3e8]of _0x236385['markers']){const _0x262abd=_0xeec3e8[_0x50fe('0x6e')][_0x50fe('0x13')]()[_0x50fe('0xef')](_0x4d90e7=>_0x50fe('0x7d')==_0x4d90e7[_0x50fe('0xf8')]);for(const _0x44766b of _0x262abd)0x1==_0x44766b[_0x50fe('0xb3')]&&_0x44766b['getChild'](0x0)['is'](_0x50fe('0xe3'),_0x50fe('0x92'))&&_0x44766b[_0x50fe('0x73')](0x0)[_0x50fe('0xb4')](_0x50fe('0x10e'),!0x0);}}[_0x50fe('0x9b')](_0x4f5000){this[_0x50fe('0x43')](_0x4f5000);const _0x3cb57a=this[_0x50fe('0x4f')]['data'][_0x50fe('0xcc')](_0x4f5000,{}),_0x79fc6d=Array['from'](_0x3cb57a[_0x50fe('0x68')]())['map'](_0x8d3816=>this[_0x50fe('0xdc')](_0x8d3816));return JSON[_0x50fe('0x8c')](_0x79fc6d);}[_0x50fe('0xdc')](_0x3e5f95){if(_0x3e5f95['is'](_0x50fe('0x60')))return _0x3e5f95['data'];{const _0x1b1e8b=_0x3e5f95;return{'type':Object[_0x50fe('0x6f')](B)[_0x50fe('0x5d')](_0x332418=>_0x3e5f95 instanceof B[_0x332418]),'name':_0x1b1e8b['name'],'attributes':Array['from'](_0x1b1e8b['getAttributes']()),'children':Array[_0x50fe('0x0')](_0x1b1e8b[_0x50fe('0x68')]())['map'](_0x2e319f=>this[_0x50fe('0xdc')](_0x2e319f))};}}[_0x50fe('0xc6')](_0x2e53e1,_0x747081,_0x58d5fc,_0x2d8f69,_0x1f7c7b){let _0x42f6d3=null,_0x2a2c6e=null,_0x3cd105=0x0;const _0x833d17=this[_0x50fe('0x4f')]['model'];for(let _0x51393f=0x0;_0x51393f<_0x747081['length'];_0x51393f++){const _0x5386a7=this[_0x50fe('0xd1')](_0x747081[_0x51393f]),_0x12d588=_0x747081[_0x51393f]['item'][_0x50fe('0x61')](_0x5386a7),_0x1d3a6e=_0x58d5fc[_0x50fe('0xe9')](_0x12d588),_0x3c28f0=_0x51393f==_0x747081[_0x50fe('0x31')]-0x1;(!_0x42f6d3&&_0x1d3a6e&&(_0x42f6d3=_0x1d3a6e,_0x2a2c6e=_0x747081[_0x51393f]),_0x42f6d3&&(!_0x1d3a6e||_0x1d3a6e[_0x50fe('0xc1')]!=_0x42f6d3['userId']))&&(_0x14d97b(_0x1d3a6e,L(_0x2a2c6e,_0x2e53e1,_0x833d17),L(_0x747081[_0x51393f],_0x2e53e1,_0x833d17)),_0x42f6d3=_0x1d3a6e||null,_0x2a2c6e=_0x1d3a6e?_0x747081[_0x51393f]:null),_0x42f6d3&&_0x3c28f0&&_0x14d97b(_0x1d3a6e,L(_0x2a2c6e,_0x2e53e1,_0x833d17),W(_0x747081[_0x51393f],_0x2e53e1,_0x833d17));}function _0x14d97b(_0x425880,_0x33b868,_0x556f7c){const _0x13495e=_0x42f6d3['userId'],_0x3180ee='revision:'+_0x2d8f69+':'+_0x13495e+':'+_0x3cd105++,_0x79b619=_0x833d17[_0x50fe('0x16')](_0x33b868,_0x556f7c);_0x2e53e1[_0x50fe('0x4e')][_0x50fe('0xb')](_0x3180ee,_0x79b619),null!==_0x13495e&&_0x1f7c7b[_0x50fe('0x19')](_0x13495e);}}[_0x50fe('0xd1')](_0x333867){switch(_0x333867['type']){case _0x50fe('0xac'):return _0x50fe('0x104');case _0x50fe('0x1b'):return _0x50fe('0xc3');default:return _0x50fe('0x6a');}}[_0x50fe('0x7c')](_0xcc6d85,_0x172e9b){_0xcc6d85['baseVersion']=null;for(const _0x12b3db in _0xcc6d85){const _0x241166=_0xcc6d85[_0x12b3db];if(_0x241166 instanceof _0x42716c){const _0x5b3c7e=_0x172e9b[_0x50fe('0xe9')](_0x241166[_0x50fe('0xe7')][_0x50fe('0x26')]);_0xcc6d85[_0x12b3db]=this[_0x50fe('0x56')](_0x241166,_0x5b3c7e);}if(_0x241166 instanceof _0x4ce064){const _0x2da5a8=_0x172e9b[_0x50fe('0xe9')](_0x241166[_0x50fe('0xe7')][_0x50fe('0x26')]);_0xcc6d85[_0x12b3db]=this[_0x50fe('0xc8')](_0x241166,_0x2da5a8);}_0x50fe('0xe7')===_0x12b3db&&(_0xcc6d85['root']=_0x172e9b[_0x50fe('0xe9')](_0xcc6d85[_0x50fe('0xe7')][_0x50fe('0x26')]));}}[_0x50fe('0xc8')](_0xb1a989,_0x131d53){return this[_0x50fe('0x4f')][_0x50fe('0x10f')][_0x50fe('0x16')](this[_0x50fe('0x56')](_0xb1a989[_0x50fe('0x6e')],_0x131d53),this[_0x50fe('0x56')](_0xb1a989['end'],_0x131d53));}[_0x50fe('0x56')](_0x37e820,_0x242e17){return this[_0x50fe('0x4f')][_0x50fe('0x10f')][_0x50fe('0xe5')](_0x242e17,_0x37e820['path'],_0x37e820['stickiness']);}['_handleInsertOperation'](_0x4ba2b1){const _0x54f936=this[_0x50fe('0x32')][_0x50fe('0xe9')](_0x4ba2b1['position'][_0x50fe('0xe7')][_0x50fe('0x26')]),_0x136b0c=this[_0x50fe('0x56')](_0x4ba2b1[_0x50fe('0xbd')],_0x54f936),_0x49e98f=null===_0x4ba2b1[_0x50fe('0xad')]?null:_0x4ba2b1[_0x50fe('0xad')]||this['editor'][_0x50fe('0x70')][_0x50fe('0xe9')](_0x50fe('0xd7'))['me']['id'],_0x2fcd76=_0x136b0c[_0x50fe('0xe8')],_0x310476=this[_0x50fe('0x22')],_0x282483=[];for(const _0x5da985 of _0x4ba2b1[_0x50fe('0x11')])if(_0x5da985['is'](_0x50fe('0xe3')))_0x282483['push'](this['_makeIdsRoot'](_0x5da985));else for(let _0x5999a8=0x0;_0x5999a8<_0x5da985[_0x50fe('0xb0')];_0x5999a8++)_0x282483['push'](new _0x59be18('$text',{'vid':this[_0x50fe('0x22')]++}));const _0x40b86f=this[_0x50fe('0x22')];for(let _0x2246ae=_0x310476;_0x2246ae<_0x40b86f;_0x2246ae++)this[_0x50fe('0x57')][_0x50fe('0xb')](_0x2246ae,{'userId':_0x49e98f});_0x2fcd76[_0x50fe('0xf1')](_0x136b0c[_0x50fe('0x93')],_0x282483);}[_0x50fe('0xe0')](_0x2e140e){(_0x2e140e=this[_0x50fe('0xb6')](_0x2e140e,this[_0x50fe('0x32')]))[_0x50fe('0x9c')]();const _0x3d115a=null===_0x2e140e['_authorId']?null:_0x2e140e[_0x50fe('0xad')]||this[_0x50fe('0x4f')][_0x50fe('0x70')][_0x50fe('0xe9')](_0x50fe('0xd7'))['me']['id'],_0x1820b3=_0x2e140e[_0x50fe('0x87')](),_0x3cba97=_0x1820b3['parent'],_0x414da3=_0x1820b3['offset'];!function _0x36a75f(_0x10d44d,_0x10f2d5,_0x114d78,_0x16f3c5){for(let _0x36c302=_0x114d78;_0x36c302<_0x16f3c5;_0x36c302++){const _0xde6497=_0x10f2d5[_0x50fe('0x73')](_0x36c302);_0xde6497['is']('element',_0x50fe('0x60'))?_0x10d44d[_0x50fe('0xb')](_0xde6497[_0x50fe('0x61')](_0x50fe('0x6a')),{'userId':_0x3d115a}):(_0x10d44d[_0x50fe('0xb')](_0xde6497[_0x50fe('0x61')](_0x50fe('0x104')),{'userId':_0x3d115a}),_0x36a75f(_0x10d44d,_0xde6497,0x0,_0xde6497[_0x50fe('0xb3')]),_0x10d44d[_0x50fe('0xb')](_0xde6497[_0x50fe('0x61')](_0x50fe('0xc3')),{'userId':_0x3d115a}));}}(this[_0x50fe('0x57')],_0x3cba97,_0x414da3,_0x414da3+_0x2e140e[_0x50fe('0xc5')]);}[_0x50fe('0xc7')](_0x1304e9){const _0x2f5674=null===(_0x1304e9=this['_cloneOperation'](_0x1304e9,this[_0x50fe('0x32')]))[_0x50fe('0xad')]?null:_0x1304e9[_0x50fe('0xad')]||this[_0x50fe('0x4f')]['plugins'][_0x50fe('0xe9')]('Users')['me']['id'],_0x34e64e=_0x1304e9[_0x50fe('0x5f')][_0x50fe('0xe8')],_0x4c8026=_0x1304e9['sourcePosition']['parent'],_0xed046c=_0x34e64e['getAttribute'](_0x50fe('0xc3')),_0x5cf523=_0x4c8026[_0x50fe('0x61')](_0x50fe('0x104'));_0x34e64e[_0x50fe('0xb4')](_0x50fe('0xc3'),_0x4c8026[_0x50fe('0x61')](_0x50fe('0xc3'))),_0x4c8026['_setAttribute'](_0x50fe('0xc3'),_0xed046c),this['_touched'][_0x50fe('0xb')](_0x5cf523,{'userId':_0x2f5674}),this[_0x50fe('0x57')]['set'](_0xed046c,{'userId':_0x2f5674}),_0x1304e9['_execute']();}[_0x50fe('0xe4')](_0x53eb04){const _0x188ff3=null===(_0x53eb04=this[_0x50fe('0xb6')](_0x53eb04,this[_0x50fe('0x32')]))['_authorId']?null:_0x53eb04[_0x50fe('0xad')]||this['editor'][_0x50fe('0x70')][_0x50fe('0xe9')]('Users')['me']['id'],_0x2b85be=_0x53eb04[_0x50fe('0xbc')],_0x4b620b=_0x53eb04[_0x50fe('0x38')]['parent'];_0x53eb04[_0x50fe('0x9c')]();const _0x18842e=_0x4b620b[_0x50fe('0x61')](_0x50fe('0xc3')),_0x5afb75=_0x53eb04[_0x50fe('0x105')][_0x50fe('0x6d')];if(_0x2b85be){const _0x28ee51=_0x5afb75[_0x50fe('0x61')](_0x50fe('0xc3')),_0x5e8530=_0x4b620b['getAttribute'](_0x50fe('0xc3'));_0x4b620b[_0x50fe('0xb4')]('vid_end',_0x28ee51),_0x5afb75[_0x50fe('0xb4')](_0x50fe('0xc3'),_0x5e8530),this['_touched'][_0x50fe('0xb')](_0x4b620b[_0x50fe('0x61')](_0x50fe('0xc3')),{'userId':_0x188ff3}),this[_0x50fe('0x57')][_0x50fe('0xb')](_0x5afb75[_0x50fe('0x61')](_0x50fe('0x104')),{'userId':_0x188ff3});}else{const _0x45913a=this['_revisionId']++,_0x1a7eef=this['_revisionId']++;_0x4b620b[_0x50fe('0xb4')](_0x50fe('0xc3'),_0x45913a),_0x5afb75[_0x50fe('0xb4')]('vid_start',_0x1a7eef),_0x5afb75['_setAttribute'](_0x50fe('0xc3'),_0x18842e),this[_0x50fe('0x57')][_0x50fe('0xb')](_0x45913a,{'userId':_0x188ff3}),this[_0x50fe('0x57')][_0x50fe('0xb')](_0x1a7eef,{'userId':_0x188ff3});}}[_0x50fe('0xa7')](_0x4a05e0){if(!_0x4a05e0[_0x50fe('0x3d')])return;const _0x558673=(_0x4a05e0=this[_0x50fe('0xb6')](_0x4a05e0,this['_diffRoots']))[_0x50fe('0xf2')]?_0x4a05e0[_0x50fe('0xf2')]['root']:null,_0x254462=_0x4a05e0[_0x50fe('0xf7')]?_0x4a05e0[_0x50fe('0xf7')][_0x50fe('0xe7')]:null;_0x558673&&this['_markers'][_0x50fe('0xc2')](_0x4a05e0[_0x50fe('0xf8')]),_0x254462&&this[_0x50fe('0x3f')][_0x50fe('0xb')](_0x4a05e0[_0x50fe('0xf8')],_0x4a05e0[_0x50fe('0xf7')][_0x50fe('0x5a')]());const _0x266d08=null===_0x4a05e0[_0x50fe('0xad')]?null:_0x4a05e0[_0x50fe('0xad')]||this['editor'][_0x50fe('0x70')][_0x50fe('0xe9')]('Users')['me']['id'],_0x191a41=_0x4a05e0[_0x50fe('0xf8')];if(!this['_touchedMarkers'][_0x50fe('0x79')](_0x191a41))return void this[_0x50fe('0xce')]['set'](_0x191a41,{'range':_0x4a05e0[_0x50fe('0xf2')],'userId':_0x266d08});const _0x358246=this[_0x50fe('0xce')][_0x50fe('0xe9')](_0x191a41),_0x1dc9a2=_0x358246[_0x50fe('0x7e')],_0x16d897=_0x4a05e0[_0x50fe('0xf7')];null==_0x1dc9a2&&null==_0x16d897||_0x1dc9a2&&_0x16d897&&_0x1dc9a2[_0x50fe('0xf9')](_0x16d897)?this[_0x50fe('0xce')][_0x50fe('0xc2')](_0x4a05e0[_0x50fe('0xf8')]):_0x358246[_0x50fe('0xc1')]=_0x266d08;}['_handleRootOperation'](_0x3b06bf,_0x4786a9){this['_diffRoots'][_0x50fe('0x79')](_0x3b06bf[_0x50fe('0x26')])?this[_0x50fe('0x41')][_0x50fe('0xe9')](_0x3b06bf[_0x50fe('0x26')])[_0x50fe('0xd')]=_0x3b06bf['isAdd']:(this['_diffRoots']['set'](_0x3b06bf[_0x50fe('0x26')],G(_0x3b06bf[_0x50fe('0x26')],!0x0)),this[_0x50fe('0x85')][_0x50fe('0xb')](_0x3b06bf[_0x50fe('0x26')],{}),_0x4786a9&&this[_0x50fe('0x32')][_0x50fe('0xb')](_0x3b06bf[_0x50fe('0x26')],G(_0x3b06bf['rootName'],!0x0)));const _0x5c0382=null===_0x3b06bf['_authorId']?null:_0x3b06bf['_authorId']||this['editor']['plugins'][_0x50fe('0xe9')]('Users')['me']['id'],_0x3c590c=this[_0x50fe('0xff')]['get'](_0x3b06bf[_0x50fe('0x26')]);_0x3c590c&&_0x3c590c[_0x50fe('0xc1')]===_0x5c0382?this[_0x50fe('0xff')][_0x50fe('0xc2')](_0x3b06bf['rootName']):this['_touchedRoots'][_0x50fe('0xb')](_0x3b06bf['rootName'],{'userId':_0x5c0382,'isAttached':_0x3b06bf[_0x50fe('0xdd')]});}[_0x50fe('0xc4')](_0x108973){const _0x3da32a=this[_0x50fe('0x85')][_0x50fe('0xe9')](_0x108973[_0x50fe('0xe7')][_0x50fe('0x26')]);null===_0x108973['newValue']?delete _0x3da32a[_0x108973[_0x50fe('0xd5')]]:_0x3da32a[_0x108973[_0x50fe('0xd5')]]=_0x108973[_0x50fe('0x45')];}}function q(_0x27679a){const _0xe39569=G(_0x27679a[_0x50fe('0x26')],_0x27679a[_0x50fe('0x9e')]());for(const _0x4a1671 of _0x27679a[_0x50fe('0x68')]()){const _0x32aa7f=_0x4a1671[_0x50fe('0x20')](!0x0);_0xe39569[_0x50fe('0xb5')](_0x32aa7f);}return _0xe39569;}function G(_0xe71c5c,_0x4f8494=!0x0){const _0x396f04=new _0x1ad183();return _0x396f04['rootName']=_0xe71c5c,_0x396f04['_isAttached']=_0x4f8494,_0x396f04[_0x50fe('0x9e')]=()=>_0x396f04[_0x50fe('0xd')],_0x396f04;}function L(_0x4419eb,_0x56aebc,_0xc5241f){const _0x3ab08e=_0x50fe('0x1b')==_0x4419eb[_0x50fe('0x1c')]?_0xc5241f[_0x50fe('0x3e')](_0x4419eb['item'],_0x50fe('0x10d')):_0xc5241f[_0x50fe('0x5b')](_0x4419eb[_0x50fe('0xdf')]);return _0xc5241f[_0x50fe('0xe5')](_0x56aebc,_0x3ab08e[_0x50fe('0x36')],_0x3ab08e[_0x50fe('0x9d')]);}function W(_0x33269b,_0x3d0148,_0x72382){const _0x571aa9=_0x50fe('0xac')==_0x33269b[_0x50fe('0x1c')]?_0x72382['createPositionAt'](_0x33269b['item'],0x0):_0x72382[_0x50fe('0xee')](_0x33269b['item']);return _0x72382[_0x50fe('0xe5')](_0x3d0148,_0x571aa9[_0x50fe('0x36')],_0x571aa9[_0x50fe('0x9d')]);}
23
+ const _0x10c7=['vid_start','_saveMetaData','baseVersion','define','insertion','createPositionFromPath','saveRevision','_replaceEditorDataWithRevisionData','key','_getState','_createCurrentRevision','_bufferedUpdates','clone','createPositionAt','_copyMarkers','offset','length','useFillerType','revision','resolve','targetPosition','NEGATIVE_INFINITY','_handleMergeOperation','_getBaseVids','filter','_loadRevisionData','ready','createPositionAfter','getData','_handleMarkerOperation','_appendChild','Users','getRevisionDocumentData','string','end','getAncestors','attributesBefore','_processRootBeforeSave','howMany','size','$graveyard','_addPendingAction','deletion','split','getLatestVersion','clear','getRoot','marker','hasContent','_fixRange','getOperation','config','getRevisionRootsAttributes','getUser','loadState','_prepareViewToSave','initial','name','authors','getTime','PendingActions','plugins','rootName','_startingRevisionId','toData','get','_removeRevisionMarkers','slice','isReady','RevisionsRepository','_handleRootAttributeOperation','_makeIdsRoot','then','getOperations','editor','_startingVersion','reverse','repository','_savedMetaData','sendBufferedUpdates','removeRootAttribute','diffData','_execute','_getPreviousFrom','vid_end','text','item','type','_initialRevisionId','newValue','add','finally','graveyardPosition','afterInit','roots','from','update','_diffRootsAttributes','_markChanges','history','_touched','start','_makeModelFromViewString','stickiness','_fixPosition','_applyOperations','_getFromVersion','fromEntries','_lastTo','createRangeIn','reinsert','_touchedRoots','_createFromRanges','max','elementEnd','position','getChild','_source','editing','revisionHistory.resumeUnsavedRevision','_setConversion','_revisionDataBuilder','_authorId','values','for','find','_handleSplitOperation','processor','map','detachRoot','getWalker','rootsAttributes','_makeRevision','oldRange','model','_insertChild','_bufferUpdate','_loadedStateData','addRootAttribute','_getVidAttributeName','affectsData','_lastFrom','revision-end','_isInit','attributes','addRevision','insert','_handleInsertOperation','_removeMetaData','creatorId','createRange','getRange','parent','sort','has','elementStart','_baseRoots','getRevisions','_transformMarkers','insertions','_createInitialRevision','_handleOperation','_calculateMetaData','_pendingAction','startsWith','tableCell','_getViewJson','attachChange','userId','version','getChildren','data','_isPendingUpdate','isEqual','attributesAfter','nodeAfter','bind','keys','vid','offsetSize','buildRevisionData','_handleMoveOperation','$text','childCount','_loadState','PENDING_ACTION_REVISION_HISTORY','merge','includes','forEach','_idsRoots','_setAttribute','RevisionTracker','_findInsertionIndex','shift','revision:','addRevisionData','path','set','init','setRevisionData','addRoot','documentFragment','createdAt','setSource','_handleRootOperation','isAdd','_baseIdsRoots','root','getAttribute','_removePendingAction','push','collaboration.channelId','_operations','getIndex','element','currentRevision','previousPosition','_markers','_generateTape','initialData','getCurrentRevisionId','_revisionId','marked','_baseRootsAttributes','dataDowncast','_fixOperation','newRange','keepParagraph','splitPosition','_isAttached','updateRevisions','isAttached','authorsIds','toView','default','RealTimeCollaborationClient','isEnabled','_touchedMarkers','delete','_clone','fromVersion','getTransformedByOperation','_diffRoots','Initial\x20revision','Empty\x20document','markers','document','_update','children','adapter','toModel','_continueCurrentRevision','dataToMarker','data-revision-','source','parse','_cloneOperation','getRevision','creator','getNodeByPath','view','toVersion','deletions'];(function(_0x6c1ab,_0x10c75e){const _0x362434=function(_0x2f0689){while(--_0x2f0689){_0x6c1ab['push'](_0x6c1ab['shift']());}};_0x362434(++_0x10c75e);}(_0x10c7,0x65));const _0x3624=function(_0x6c1ab,_0x10c75e){_0x6c1ab=_0x6c1ab-0x0;let _0x362434=_0x10c7[_0x6c1ab];return _0x362434;};import{Users as _0x262bd9}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x203884,PendingActions as _0x291ba2}from'ckeditor5/src/core';import{logWarning as _0x19a1a8,uid as _0x3437af}from'ckeditor5/src/utils';import{Position as _0x1442ec,Range as _0x5d635b,Element as _0x58fcf1,DocumentFragment as _0x4414b4,ViewText as _0x31721e,ViewElement as _0x4b5d7b,ViewContainerElement as _0xae999,ViewAttributeElement as _0x3a3f2b,ViewEmptyElement as _0x485689,ViewRawElement as _0x4d9a26,ViewUIElement as _0xde4d20,ViewDocumentFragment as _0x4331b3}from'ckeditor5/src/engine';import _0x30e224 from'./revisionsrepository';import{getTranslation as _0x252512}from'./utils/common-translations';import{cloneDeep as _0x324ce0,isEqual as _0x5af5cb}from'lodash-es';const B={'c':_0xae999,'a':_0x3a3f2b,'e':_0x485689,'r':_0x4d9a26,'u':_0xde4d20};export default class l extends _0x203884{static get['pluginName'](){return _0x3624('0x5a');}static get['requires'](){return[_0x262bd9,_0x30e224,_0x291ba2];}constructor(_0x560ac5){super(_0x560ac5),this[_0x3624('0x94')]=null,this[_0x3624('0x72')]=null,this[_0x3624('0x14')]=new H(this[_0x3624('0xec')]),this[_0x3624('0xfa')]=this[_0x3624('0xec')][_0x3624('0xd5')][_0x3624('0xe3')](_0x3624('0x6e'))||_0x3624('0xda'),this[_0x3624('0xad')]=new Map(),this[_0x3624('0x24')]=null;const _0x4c8522=_0x3437af();this[_0x3624('0x10')]={'history':this[_0x3624('0xec')][_0x3624('0x21')]['document'][_0x3624('0x105')],'getLatestVersion':()=>Promise['resolve'](this[_0x3624('0xec')][_0x3624('0x21')][_0x3624('0x91')][_0x3624('0x44')]),'getCurrentRevisionId':()=>_0x4c8522},this[_0x3624('0x60')](_0x3624('0xe6'),!0x1),this[_0x3624('0x60')](_0x3624('0x87'),!0x0),this[_0x3624('0x60')](_0x3624('0x47'),!0x1),this[_0x3624('0xec')][_0x3624('0xd5')][_0x3624('0xa5')](_0x3624('0x12'),!0x0),this[_0x3624('0xec')]['conversion'][_0x3624('0x17')]('upcast')[_0x3624('0x97')]({'view':'revision'});}[_0x3624('0x61')](){this[_0x3624('0xef')]=this[_0x3624('0xec')][_0x3624('0xdf')]['get'](_0x3624('0xe7')),this[_0x3624('0x13')](),this[_0x3624('0xec')][_0x3624('0x46')]['on'](_0x3624('0xbc'),()=>{const _0x340e15=this[_0x3624('0xef')][_0x3624('0x9c')](0x0),_0x2cc7a0=_0x340e15&&null===_0x340e15[_0x3624('0x9d')]?_0x340e15:null;if(this['_continueCurrentRevision']=!!_0x2cc7a0&&this['editor']['config']['get'](_0x3624('0x12')),this[_0x3624('0xec')][_0x3624('0xdf')][_0x3624('0x35')](_0x3624('0x86'))){const _0x2b5a20=this[_0x3624('0x10')]['getCurrentRevisionId'](),_0xf9dcc0=this['repository'][_0x3624('0x9c')](_0x2b5a20);if(_0xf9dcc0)this[_0x3624('0xed')]=_0xf9dcc0[_0x3624('0x8b')],this[_0x3624('0x96')]=!0x1;else{const _0xbae0eb=this[_0x3624('0x10')]['history'][_0x3624('0x6f')]['find'](_0x3cf6eb=>!_0x3cf6eb[_0x3624('0x2a')]),_0xd79979=_0xbae0eb?_0xbae0eb[_0x3624('0xa4')]:this[_0x3624('0x10')][_0x3624('0x105')][_0x3624('0x44')];_0x340e15?(_0x340e15['toVersion']<_0xd79979&&_0x340e15[_0x3624('0x92')]({'toVersion':_0xd79979}),this['_continueCurrentRevision']?(this['_source'][_0x3624('0x77')]=()=>_0x2cc7a0['id'],this[_0x3624('0xed')]=_0x2cc7a0[_0x3624('0x8b')]):(this[_0x3624('0xed')]=_0x340e15[_0x3624('0xa0')],this[_0x3624('0x96')]=!0x1)):(this['_startingVersion']=_0xd79979,this[_0x3624('0x96')]=!0x1);}}else _0x2cc7a0&&(this[_0x3624('0xec')][_0x3624('0x21')]['document']['history'][_0x3624('0x44')]=Math[_0x3624('0xc')](_0x2cc7a0[_0x3624('0xa0')],this['editor'][_0x3624('0x21')][_0x3624('0x91')][_0x3624('0x105')][_0x3624('0x44')]),_0x2cc7a0[_0x3624('0x8b')]===_0x2cc7a0[_0x3624('0xa0')]?(0x0!==_0x2cc7a0[_0x3624('0x8b')]&&(this[_0x3624('0x10')][_0x3624('0x77')]=()=>_0x2cc7a0['id']),this[_0x3624('0x96')]=!0x1):this[_0x3624('0x96')]&&(this[_0x3624('0x10')][_0x3624('0x77')]=()=>_0x2cc7a0['id'],this['_startingVersion']=_0x2cc7a0[_0x3624('0x8b')])),this[_0x3624('0x96')]||(this[_0x3624('0xed')]=this[_0x3624('0xec')][_0x3624('0x21')][_0x3624('0x91')][_0x3624('0x44')]);this[_0x3624('0x14')][_0x3624('0x61')](this[_0x3624('0x10')][_0x3624('0x105')]),this[_0x3624('0x3b')](this[_0x3624('0xed')]),this[_0x3624('0xac')](this['_startingVersion']),this[_0x3624('0x94')]&&this[_0x3624('0xf1')]();}),this[_0x3624('0x4b')](_0x3624('0xe6'))['to'](this,'_isPendingUpdate',_0x1524e5=>!_0x1524e5);}async[_0x3624('0xff')](){if(this['repository'][_0x3624('0xb2')]>0x0){const _0x546aeb=this[_0x3624('0xef')][_0x3624('0x9c')](0x0),_0x56ac49=await this['getRevisionDocumentData'](_0x546aeb),_0x11ab66=await this[_0x3624('0xd6')](_0x546aeb);this[_0x3624('0xa9')](_0x56ac49,_0x11ab66);}}[_0x3624('0x66')](_0x470824){this[_0x3624('0x10')]=_0x470824;}async[_0x3624('0x102')](){const _0x21aa18=await this[_0x3624('0x10')][_0x3624('0xce')]();if(_0x21aa18>this[_0x3624('0x72')][_0x3624('0xa0')]){await this[_0x3624('0x53')]();const _0x10f7ba=this[_0x3624('0x4f')]({'revision':this[_0x3624('0x72')],'to':_0x21aa18});_0x10f7ba[_0x3624('0xdc')]=_0x10f7ba[_0x3624('0x83')][_0x3624('0x1b')](_0x5063cf=>this[_0x3624('0xec')][_0x3624('0xdf')][_0x3624('0xe3')](_0x3624('0xc1'))[_0x3624('0xd7')](_0x5063cf)),this[_0x3624('0x72')][_0x3624('0x92')](_0x10f7ba);}}async['_loadState'](){this[_0x3624('0x96')]&&!this['_loadedStateData']&&(await this[_0x3624('0xbb')](this[_0x3624('0x72')]),this['_revisionDataBuilder']['loadState'](this[_0x3624('0x72')]),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this[_0x3624('0x72')][_0x3624('0xdc')][_0x3624('0xe5')]()});}async[_0x3624('0xa8')](_0xa18f1b={},_0x48f8b3=null){const _0x441b32=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x48f8b3>this[_0x3624('0x72')]['toVersion']&&(_0x48f8b3=null),null===_0x48f8b3&&(_0x48f8b3=await this[_0x3624('0x10')][_0x3624('0xce')]());const _0x3ef711=this[_0x3624('0x5')](_0x48f8b3),_0x353f4e=this[_0x3624('0x4f')]({'from':_0x3ef711,'to':_0x48f8b3});if(this[_0x3624('0x72')][_0x3624('0xa0')]<_0x48f8b3){const _0x12db31=this[_0x3624('0x4f')]({'revision':this[_0x3624('0x72')],'from':_0x48f8b3,'to':_0x48f8b3});_0x12db31['authors']=[],_0x12db31[_0x3624('0x83')]=[],_0x12db31['id']=this[_0x3624('0x72')]['id'],this[_0x3624('0x72')][_0x3624('0x92')](_0x12db31,!0x0),delete _0x12db31[_0x3624('0xdc')],_0x441b32[_0x3624('0x6d')](_0x12db31);}_0xa18f1b[_0x3624('0x30')]=this['editor'][_0x3624('0xdf')]['get'](_0x3624('0xc1'))['me']['id'],_0xa18f1b[_0x3624('0xdb')]=_0xa18f1b[_0x3624('0xdb')]||null,_0xa18f1b['id']=_0xa18f1b['id']||_0x3437af(),_0xa18f1b={..._0xa18f1b,..._0x353f4e};const _0x2ec6a6=this['addRevisionData'](_0xa18f1b);_0x441b32[_0x3624('0x6d')](_0xa18f1b);const _0x230751=this['repository'][_0x3624('0x70')](_0x2ec6a6);if(0x0!==_0x230751){const _0x90ace=this[_0x3624('0xef')][_0x3624('0x9c')](_0x230751-0x1);if(_0x90ace['fromVersion']!==_0x48f8b3){const _0x16f4ba=this[_0x3624('0x14')][_0x3624('0xbe')](_0x48f8b3,_0x90ace[_0x3624('0xa0')]),_0xe9fdb9={'id':_0x90ace['id'],'diffData':_0x16f4ba[_0x3624('0xf3')],'authorsIds':_0x16f4ba[_0x3624('0x83')],'authors':_0x16f4ba[_0x3624('0x83')][_0x3624('0x1b')](_0x127e93=>this[_0x3624('0xec')][_0x3624('0xdf')][_0x3624('0xe3')](_0x3624('0xc1'))[_0x3624('0xd7')](_0x127e93)),'fromVersion':_0x48f8b3};_0x90ace===this['currentRevision']&&(_0xe9fdb9[_0x3624('0x65')]=new Date(_0xa18f1b[_0x3624('0x65')][_0x3624('0xdd')]()+0xa)),_0x90ace[_0x3624('0x92')](_0xe9fdb9,!0x0),delete _0xe9fdb9['authors'],_0x441b32[_0x3624('0x6d')](_0xe9fdb9);}}if(this[_0x3624('0x94')]){for(const _0x737f8d of _0x441b32)this[_0x3624('0x23')](_0x737f8d['id'],_0x737f8d,!0x0);this['sendBufferedUpdates']();}return _0x2ec6a6;}[_0x3624('0x5e')](_0x1927f3){const _0x540d55=this[_0x3624('0xef')]['createRevision'](_0x1927f3);return this['adapter']&&_0x540d55['on'](_0x3624('0x92'),(_0x511704,_0x43c183,_0x14109c)=>{_0x14109c||(this[_0x3624('0x23')](_0x43c183['id'],_0x43c183,!0x0),this[_0x3624('0xf1')]());}),this[_0x3624('0xef')][_0x3624('0x2c')](_0x540d55,this[_0x3624('0x5b')](_0x540d55)),_0x540d55;}async[_0x3624('0xc2')](_0x32ef07){await this['_loadRevisionData'](_0x32ef07);const _0x1eb3ae={};for(const _0x5b6970 in _0x32ef07['diffData']){if(_0x32ef07[_0x3624('0xf3')][_0x5b6970][_0x3624('0x42')]&&!_0x32ef07['diffData'][_0x5b6970][_0x3624('0x42')][_0x3624('0x82')])continue;const _0x3beadd=this[_0x3624('0xe4')](JSON[_0x3624('0x9a')](_0x32ef07[_0x3624('0xf3')][_0x5b6970][_0x3624('0x3a')])),_0xe884fd=this[_0x3624('0xec')][_0x3624('0x11')]['view']['document'],_0x9135dd=new _0x4331b3(_0xe884fd,_0x3beadd['map'](_0x2e1011=>J(_0x2e1011,this[_0x3624('0xec')])));this[_0x3624('0xec')][_0x3624('0x46')]['processor'][_0x3624('0xb3')](_0x3624('0x79')),_0x1eb3ae[_0x5b6970]=this[_0x3624('0xec')][_0x3624('0x46')][_0x3624('0x1a')][_0x3624('0xe2')](_0x9135dd),this[_0x3624('0xec')]['data'][_0x3624('0x1a')][_0x3624('0xb3')](_0x3624('0x85'));}return _0x1eb3ae;}async[_0x3624('0xd6')](_0xee63fa){await this[_0x3624('0xbb')](_0xee63fa);const _0x588c5d={};for(const _0x1e7bcb in _0xee63fa[_0x3624('0xf3')])_0xee63fa[_0x3624('0xf3')][_0x1e7bcb][_0x3624('0x42')]&&!_0xee63fa['diffData'][_0x1e7bcb][_0x3624('0x42')][_0x3624('0x82')]||(_0x588c5d[_0x1e7bcb]=_0xee63fa[_0x3624('0xf3')][_0x1e7bcb][_0x3624('0x49')]||{});return _0x588c5d;}[_0x3624('0xf1')](){if(0x0===this['_bufferedUpdates'][_0x3624('0xc9')])return;if(this[_0x3624('0x47')])return;let _0x1008d2=Array[_0x3624('0x101')](this[_0x3624('0xad')][_0x3624('0x16')]());this['_bufferedUpdates'][_0x3624('0xcf')]();for(let _0x2c9bee=0x0;_0x2c9bee<_0x1008d2[_0x3624('0xb2')];_0x2c9bee++){const _0x4398bd=_0x1008d2[_0x2c9bee];let _0xdad1c1=!0x1;for(const _0x4e3ed8 of Object[_0x3624('0x4c')](_0x4398bd))void 0x0===_0x4398bd[_0x4e3ed8]?delete _0x4398bd[_0x4e3ed8]:'id'!==_0x4e3ed8&&(_0xdad1c1=!0x0);_0xdad1c1||(_0x1008d2[_0x2c9bee]=null);}if(_0x1008d2=_0x1008d2[_0x3624('0xba')](_0xca2954=>null!==_0xca2954),!_0x1008d2[_0x3624('0xb2')])return;for(let _0x1c38b1=0x0;_0x1c38b1<_0x1008d2[_0x3624('0xb2')];_0x1c38b1++){const _0x4514db=_0x1008d2[_0x1c38b1];void 0x0!==_0x4514db['fromVersion']&&void 0x0===_0x4514db[_0x3624('0xa0')]&&(_0x4514db[_0x3624('0xa0')]=this[_0x3624('0xef')][_0x3624('0x9c')](_0x4514db['id'])['toVersion']),void 0x0!==_0x4514db['toVersion']&&void 0x0===_0x4514db[_0x3624('0x8b')]&&(_0x4514db[_0x3624('0x8b')]=this[_0x3624('0xef')][_0x3624('0x9c')](_0x4514db['id'])[_0x3624('0x8b')]);}const _0x2d03ec=this['editor'][_0x3624('0xd5')][_0x3624('0xe3')]('collaboration.channelId');this[_0x3624('0x47')]=!0x0,this[_0x3624('0xcb')](),this['adapter'][_0x3624('0x81')](_0x1008d2,_0x2d03ec)[_0x3624('0xfd')](()=>{this[_0x3624('0x47')]=!0x1;})[_0x3624('0xea')](_0x3053e6=>{if(_0x3053e6)for(const _0x4c4615 of _0x3053e6)this[_0x3624('0x62')]({'id':_0x4c4615['id'],'createdAt':_0x4c4615[_0x3624('0x65')]});this[_0x3624('0x6c')](),this[_0x3624('0xf1')]();});}[_0x3624('0xa9')](_0x339fc9,_0x385dd1){let _0x366b45=this[_0x3624('0xec')][_0x3624('0xd5')]['get']('initialData'),_0x10561c=this[_0x3624('0xec')][_0x3624('0xd5')][_0x3624('0xe3')](_0x3624('0x1e'));if(void 0x0===_0x366b45){_0x366b45={};for(const _0x352892 of this[_0x3624('0xec')]['model']['document']['getRootNames']())_0x366b45[_0x352892]='';}if(_0x3624('0xc3')==typeof _0x366b45&&(_0x366b45={'main':_0x366b45}),void 0x0===_0x10561c){_0x10561c={};for(const _0x3dd21b of this[_0x3624('0xec')][_0x3624('0x21')][_0x3624('0x91')]['getRootNames']())_0x10561c[_0x3dd21b]={};}let _0x594520=!0x1;const _0x3e8403=Object[_0x3624('0x4c')](_0x366b45),_0x24997f=Object['keys'](_0x339fc9);for(const _0x458a10 of _0x3e8403){if(_0x366b45[_0x458a10]!==_0x339fc9[_0x458a10]&&''!==_0x366b45[_0x458a10]['trim']()){_0x594520=!0x0;break;}if(!_0x5af5cb(_0x10561c[_0x458a10],_0x385dd1[_0x458a10])&&Object[_0x3624('0x4c')](_0x10561c[_0x458a10])[_0x3624('0xb2')]>0x0){_0x594520=!0x0;break;}}_0x594520||(_0x594520=_0x24997f['some'](_0x44c2b4=>!this[_0x3624('0xec')][_0x3624('0x21')][_0x3624('0x91')][_0x3624('0xd0')](_0x44c2b4))),_0x594520&&_0x19a1a8('editor-initial-data-replaced-with-revision-data',{'editorData':_0x366b45,'editorRootsAttributes':_0x10561c,'revisionData':_0x339fc9,'revisionRootsAttributes':_0x385dd1}),this[_0x3624('0xec')]['config'][_0x3624('0x60')](_0x3624('0x76'),_0x339fc9),this[_0x3624('0xec')][_0x3624('0xd5')]['set'](_0x3624('0x1e'),_0x385dd1);}[_0x3624('0xcb')](){if(!this[_0x3624('0x3e')]){const _0x3efcdc=this[_0x3624('0xec')][_0x3624('0xdf')]['get'](_0x3624('0xde'));this[_0x3624('0x3e')]=_0x3efcdc[_0x3624('0xfc')](_0x252512(this[_0x3624('0xec')]['locale'],_0x3624('0x54')));}}[_0x3624('0x6c')](){this[_0x3624('0x3e')]&&(this[_0x3624('0xec')]['plugins'][_0x3624('0xe3')](_0x3624('0xde'))['remove'](this[_0x3624('0x3e')]),this['_pendingAction']=null);}[_0x3624('0x5b')](_0xfca5b1){const _0x12fe99=this[_0x3624('0xef')]['getRevisions']();_0x12fe99[_0x3624('0xee')]();let _0x430821=0x0;for(;_0x430821<_0x12fe99[_0x3624('0xb2')];){const _0x48a8df=_0x12fe99[_0x430821];if(_0x48a8df===this[_0x3624('0x72')]){_0x430821++;continue;}if(_0x48a8df['id']===this[_0x3624('0xfa')])break;const _0x27bbab=_0xfca5b1[_0x3624('0xa0')]-_0x48a8df[_0x3624('0xa0')]||_0xfca5b1[_0x3624('0x8b')]-_0x48a8df[_0x3624('0x8b')];if(_0x27bbab>0x0)break;if(_0x27bbab<0x0)_0x430821++;else{if(!_0xfca5b1[_0x3624('0x9d')]&&_0x48a8df[_0x3624('0x9d')])break;if(_0x48a8df['creator']||!_0xfca5b1['creator']){if(_0xfca5b1['createdAt']>_0x48a8df[_0x3624('0x65')])break;_0x430821++;}else _0x430821++;}}return _0x430821;}[_0x3624('0x62')](_0x360405){const _0x4fc28b=this[_0x3624('0xef')]['getRevision'](_0x360405['id']);if(_0x360405['createdAt']&&(_0x360405[_0x3624('0x65')]=new Date(_0x360405[_0x3624('0x65')])),_0x360405[_0x3624('0x83')]){const _0x8cf5f8=this[_0x3624('0xec')][_0x3624('0xdf')][_0x3624('0xe3')](_0x3624('0xc1'));_0x360405[_0x3624('0xdc')]=_0x360405[_0x3624('0x83')][_0x3624('0x1b')](_0x10ac9a=>_0x8cf5f8[_0x3624('0xd7')](_0x10ac9a));}_0x4fc28b[_0x3624('0x92')](_0x360405,!0x0);}[_0x3624('0x4f')]({revision:_0x49c149=null,from:_0x15f78e=null,to:_0x10a5e8=null}){_0x15f78e=null!==_0x15f78e?_0x15f78e:_0x49c149[_0x3624('0x8b')],_0x10a5e8=null!==_0x10a5e8?_0x10a5e8:_0x49c149[_0x3624('0xa0')];const _0x2ab139=this[_0x3624('0x14')][_0x3624('0xbe')](_0x15f78e,_0x10a5e8),_0x2a1c04={'diffData':_0x2ab139[_0x3624('0xf3')],'authorsIds':_0x2ab139[_0x3624('0x83')],'fromVersion':_0x15f78e,'toVersion':_0x10a5e8};if(!_0x49c149||_0x10a5e8!==_0x49c149[_0x3624('0xa0')]){const _0x4d18dc=_0x10a5e8-0x1,_0x54050e=this['_source'][_0x3624('0x105')][_0x3624('0xd4')](_0x4d18dc);_0x2a1c04[_0x3624('0x65')]=_0x54050e&&_0x54050e[_0x3624('0x65')]||new Date();}if(this['_loadedStateData']&&_0x15f78e===this[_0x3624('0x24')][_0x3624('0x8b')])for(const _0x55c7a4 of this[_0x3624('0x24')][_0x3624('0xdc')])_0x2a1c04[_0x3624('0x83')][_0x3624('0x56')](_0x55c7a4['id'])||_0x2a1c04[_0x3624('0x83')][_0x3624('0x6d')](_0x55c7a4['id']);return _0x2a1c04;}[_0x3624('0xbb')](_0x4e578f){if(!_0x4e578f||_0x4e578f['diffData'])return Promise[_0x3624('0xb5')]();{const _0x3f403d=this[_0x3624('0xec')][_0x3624('0xd5')]['get'](_0x3624('0x6e'));return this[_0x3624('0x94')][_0x3624('0x9c')]({'channelId':_0x3f403d,'revisionId':_0x4e578f['id']})[_0x3624('0xea')](_0x74db17=>{_0x4e578f[_0x3624('0xf3')]=_0x74db17['diffData'];});}}[_0x3624('0x23')](_0x5f1fad,_0x412e43,_0x4b56da){if(this[_0x3624('0xad')][_0x3624('0x35')](_0x5f1fad)){const _0x2972d0=this[_0x3624('0xad')][_0x3624('0xe3')](_0x5f1fad);_0x412e43=_0x4b56da?{..._0x2972d0,..._0x412e43}:{..._0x412e43,..._0x2972d0};}this[_0x3624('0xad')][_0x3624('0x60')](_0x5f1fad,_0x412e43);}[_0x3624('0x5')](_0x58b45f){const _0x53bdae=this['repository'][_0x3624('0x38')]();_0x53bdae[_0x3624('0xee')](),_0x53bdae[_0x3624('0x5c')]();const _0x1fdad8=_0x53bdae['find'](_0x4a23a2=>_0x4a23a2['toVersion']<=_0x58b45f)[_0x3624('0xa0')];return _0x1fdad8<this[_0x3624('0xed')]?this[_0x3624('0xed')]:_0x1fdad8;}[_0x3624('0x3b')](_0x1f9d12){const _0x44e9e7=this['repository'][_0x3624('0x9c')](this[_0x3624('0xef')]['length']-0x1);if(_0x44e9e7)this['_initialRevisionId']=_0x44e9e7['id'];else{const _0x2c7f06=!this[_0x3624('0xec')][_0x3624('0x21')][_0x3624('0x91')][_0x3624('0x100')][_0x3624('0x18')](_0x3d2e78=>this['editor']['model'][_0x3624('0xd2')](_0x3d2e78)),_0x704f40=this[_0x3624('0xec')][_0x3624('0xdf')]['get'](_0x3624('0xc1'))['me']['id'],_0x18dc31=_0x252512(this[_0x3624('0xec')]['locale'],_0x2c7f06?_0x3624('0x8f'):_0x3624('0x8e'));this['_makeRevision']({'from':_0x1f9d12,'to':_0x1f9d12,'id':this[_0x3624('0xfa')],'name':_0x18dc31,'creatorId':_0x704f40});}}[_0x3624('0xac')](_0x9834da){const _0x5d31e3=this[_0x3624('0x10')][_0x3624('0x77')]();this[_0x3624('0x72')]=this[_0x3624('0xef')][_0x3624('0x9c')](_0x5d31e3),this[_0x3624('0x72')]||(this['currentRevision']=this[_0x3624('0x1f')]({'from':_0x9834da,'to':_0x9834da,'id':_0x5d31e3,'name':'','creatorId':null}));}[_0x3624('0x1f')]({name:_0x37e8c3,from:_0x56672a,to:_0x22bfe4,creatorId:_0x4e2bee,id:_0x3d8624}){const _0x32145d=this[_0x3624('0x4f')]({'from':_0x56672a,'to':_0x22bfe4});_0x32145d[_0x3624('0xdb')]=_0x37e8c3,_0x32145d['creatorId']=_0x4e2bee,_0x32145d['id']=_0x3d8624;const _0x1e54ec=this[_0x3624('0x5e')](_0x32145d);return this[_0x3624('0x94')]&&this['_bufferUpdate'](_0x32145d['id'],_0x32145d,!0x0),_0x1e54ec;}['_setConversion'](){this['editor']['conversion'][_0x3624('0x17')](_0x3624('0x7b'))['markerToData']({'model':_0x3624('0xb4')});}['_removeRevisionMarkers'](_0x4a9cd5){return(_0x4a9cd5=_0x4a9cd5['filter'](_0x3894f6=>!_0x3894f6['name']||'revision-start'!==_0x3894f6['name']&&_0x3624('0x29')!==_0x3894f6['name']))[_0x3624('0x57')](_0x1ba6ab=>{_0x3624('0xc3')!=typeof _0x1ba6ab&&(_0x1ba6ab[_0x3624('0x93')]=this[_0x3624('0xe4')](_0x1ba6ab[_0x3624('0x93')]),_0x1ba6ab[_0x3624('0x2b')]=_0x1ba6ab[_0x3624('0x2b')][_0x3624('0xba')](_0xb6de24=>!_0xb6de24[0x0]['startsWith'](_0x3624('0x98'))));}),_0x4a9cd5;}}function J(_0x3b0cb2,_0xae2f29){const _0x3f57fb=_0xae2f29[_0x3624('0x11')][_0x3624('0x9f')][_0x3624('0x91')];if('string'==typeof _0x3b0cb2)return new _0x31721e(_0x3f57fb,_0x3b0cb2);{const _0x466da9=_0x3b0cb2[_0x3624('0x93')][_0x3624('0x1b')](_0x1bf68f=>J(_0x1bf68f,_0xae2f29));return new(B[_0x3b0cb2[(_0x3624('0xf9'))]]||_0x4b5d7b)(_0x3f57fb,_0x3b0cb2[_0x3624('0xdb')],_0x3b0cb2[_0x3624('0x2b')],_0x466da9);}}class H{constructor(_0x2eacef){this[_0x3624('0xec')]=_0x2eacef,this[_0x3624('0xf0')]=new Map(),this[_0x3624('0x28')]=-0x1,this[_0x3624('0x7')]=-0x1,this[_0x3624('0x74')]=new Map(),this[_0x3624('0x8d')]=new Map(),this[_0x3624('0x103')]=new Map(),this[_0x3624('0x37')]=new Map(),this[_0x3624('0x7a')]=new Map(),this[_0x3624('0x58')]=new Map(),this[_0x3624('0x69')]=new Map(),this[_0x3624('0x106')]=new Map(),this[_0x3624('0x88')]=new Map(),this[_0x3624('0xa')]=new Map(),this[_0x3624('0x78')]=0x1;}[_0x3624('0x61')](_0x148e29){this[_0x3624('0x99')]=_0x148e29;const _0x5642c8=new Map(),_0x580155=new Map(),_0x675b31=this[_0x3624('0xec')][_0x3624('0x21')][_0x3624('0x91')][_0x3624('0x100')][_0x3624('0x1b')](_0x56cf4e=>_0x56cf4e[_0x3624('0xe0')]);for(const _0x458c1e of _0x675b31){const _0x22cf1a=this[_0x3624('0xec')]['model'][_0x3624('0x91')][_0x3624('0xd0')](_0x458c1e),_0x457ca7=q(_0x22cf1a);_0x5642c8[_0x3624('0x60')](_0x458c1e,_0x457ca7),_0x580155['set'](_0x458c1e,Object[_0x3624('0x6')](_0x22cf1a['getAttributes']()));}const _0x12b6b5=Array[_0x3624('0x101')](this[_0x3624('0xec')][_0x3624('0x21')][_0x3624('0x90')])[_0x3624('0x1b')](_0x2c9b2c=>[_0x2c9b2c[_0x3624('0xdb')],_0x2c9b2c[_0x3624('0x32')]()]),_0x733b9=this['source'][_0x3624('0x44')];this['_saveMetaData'](_0x733b9,_0x5642c8,_0x12b6b5,_0x580155),this[_0x3624('0xe1')]=this['_revisionId'];const _0x52ff1c=new Map(),_0x4de239=new Map();for(const _0x230cd2 of _0x675b31){const _0x49fea5=G(_0x230cd2);_0x52ff1c['set'](_0x230cd2,_0x49fea5),_0x4de239['set'](_0x230cd2,{});}this[_0x3624('0xa3')](Number[_0x3624('0xb7')],_0x52ff1c,[],_0x4de239);}[_0x3624('0xbe')](_0x1129bd,_0x5f451f){if(this[_0x3624('0x28')]===_0x1129bd&&this[_0x3624('0x7')]<=_0x5f451f)this[_0x3624('0xf0')]['size']>0x1&&this['_removeMetaData'](this[_0x3624('0x7')]),this[_0x3624('0x4')](this[_0x3624('0x7')],_0x5f451f,!0x0);else{if(!this[_0x3624('0xf0')][_0x3624('0x35')](_0x1129bd)){const _0x3cffa3=this[_0x3624('0xf5')](_0x1129bd);this[_0x3624('0x3d')](_0x3cffa3,_0x1129bd,!0x1);}this[_0x3624('0x3d')](_0x1129bd,_0x5f451f,!0x0);}return this[_0x3624('0x28')]=_0x1129bd,this[_0x3624('0x7')]=_0x5f451f,this['_getState']();}[_0x3624('0xd8')](_0x3b44e6){this['_reset'](),this[_0x3624('0x28')]=_0x3b44e6['fromVersion'],this[_0x3624('0x7')]=_0x3b44e6['toVersion'];for(const _0x143db6 in _0x3b44e6[_0x3624('0xf3')]){const _0x119dd3=_0x3b44e6[_0x3624('0xf3')][_0x143db6]['attachChange'],_0x1c002e=_0x324ce0(_0x3b44e6[_0x3624('0xf3')][_0x143db6][_0x3624('0xc6')])||{},_0x187d24=this[_0x3624('0x1')](_0x3b44e6[_0x3624('0xf3')][_0x143db6]['deletions']);_0x187d24[_0x3624('0xe0')]=_0x143db6,_0x187d24['_isAttached']=!_0x119dd3||!_0x119dd3[_0x3624('0x82')],_0x187d24[_0x3624('0x82')]=()=>_0x187d24[_0x3624('0x80')],this[_0x3624('0x37')][_0x3624('0x60')](_0x143db6,_0x187d24),this[_0x3624('0x7a')][_0x3624('0x60')](_0x143db6,_0x1c002e),_0x119dd3&&this['_touchedRoots'][_0x3624('0x60')](_0x143db6,_0x119dd3);const _0x5b9c97=this[_0x3624('0xe9')](_0x187d24);this[_0x3624('0x69')]['set'](_0x143db6,_0x5b9c97);for(const [_0x365b01,_0x459d0c]of _0x187d24['markers']){if(!_0x365b01[_0x3624('0x3f')](_0x3624('0x5d')))continue;const _0x2a38d9=_0x365b01[_0x3624('0xcd')](':')[0x2];for(const _0x17ab4e of _0x459d0c[_0x3624('0x1d')]({'singleCharacters':!0x0})){const _0x483fa5=this[_0x3624('0x26')](_0x17ab4e),_0x56f2c3='elementEnd'==_0x17ab4e[_0x3624('0xf9')]?_0x17ab4e[_0x3624('0x73')][_0x3624('0x5f')]['slice'](0x0,-0x1):_0x17ab4e['previousPosition'][_0x3624('0x5f')],_0x52e06e=_0x5b9c97[_0x3624('0x9e')](_0x56f2c3)[_0x3624('0x6b')](_0x483fa5);this[_0x3624('0x106')]['set'](_0x52e06e,{'userId':_0x2a38d9});}}}this[_0x3624('0xe1')]=this['_revisionId'];const _0x248a20=[...Array(this[_0x3624('0x78')])[_0x3624('0x4c')]()][_0x3624('0xe5')](0x1)[_0x3624('0xba')](_0x5d421e=>!this[_0x3624('0x106')][_0x3624('0x35')](_0x5d421e));let _0x5ef373=0x0;const _0x2acc5a=new Map();for(const _0x3f8cc8 in _0x3b44e6[_0x3624('0xf3')]){const _0x22103d=_0x3b44e6[_0x3624('0xf3')][_0x3f8cc8]['attachChange'],_0x57f2b4=_0x324ce0(_0x3b44e6[_0x3624('0xf3')][_0x3f8cc8]['attributesAfter'])||{},_0x395d87=this[_0x3624('0x1')](_0x3b44e6['diffData'][_0x3f8cc8]['insertions']);_0x395d87[_0x3624('0xe0')]=_0x3f8cc8,_0x395d87[_0x3624('0x80')]=!_0x22103d||_0x22103d[_0x3624('0x82')],_0x395d87[_0x3624('0x82')]=()=>_0x395d87['_isAttached'],this[_0x3624('0x8d')][_0x3624('0x60')](_0x3f8cc8,_0x395d87),this[_0x3624('0x103')][_0x3624('0x60')](_0x3f8cc8,_0x57f2b4);const _0x385a2d=this[_0x3624('0xe9')](_0x395d87,Number[_0x3624('0xb7')]);this[_0x3624('0x58')][_0x3624('0x60')](_0x3f8cc8,_0x385a2d),_0x2acc5a['set'](_0x3f8cc8,_0x395d87['isAttached']()?_0x57f2b4:{});for(const [_0x55e353,_0x5eb266]of _0x395d87[_0x3624('0x90')]){if(!_0x55e353[_0x3624('0x3f')](_0x3624('0x5d')))continue;const _0x46ed98=_0x55e353[_0x3624('0xcd')](':')[0x2];for(const _0x3095da of _0x5eb266['getWalker']({'singleCharacters':!0x0})){const _0x4f7cb4=this['_getVidAttributeName'](_0x3095da),_0xdce8b6=this['_revisionId']++,_0x5678d2=_0x3624('0xd')==_0x3095da[_0x3624('0xf9')]?_0x3095da[_0x3624('0x73')]['path'][_0x3624('0xe5')](0x0,-0x1):_0x3095da['previousPosition'][_0x3624('0x5f')];_0x385a2d[_0x3624('0x9e')](_0x5678d2)[_0x3624('0x59')](_0x4f7cb4,_0xdce8b6),this[_0x3624('0x106')]['set'](_0xdce8b6,{'userId':_0x46ed98});}}for(const _0x43eff2 of this['editor']['model'][_0x3624('0x8')](_0x395d87)[_0x3624('0x1d')]({'singleCharacters':!0x0})){const _0x4d8086=this[_0x3624('0x26')](_0x43eff2),_0x481381=_0x3624('0xd')==_0x43eff2[_0x3624('0xf9')]?_0x43eff2[_0x3624('0x73')][_0x3624('0x5f')][_0x3624('0xe5')](0x0,-0x1):_0x43eff2[_0x3624('0x73')]['path'],_0x51389c=_0x385a2d[_0x3624('0x9e')](_0x481381);_0x51389c['getAttribute'](_0x4d8086)>0x0||_0x51389c[_0x3624('0x59')](_0x4d8086,_0x248a20[_0x5ef373++]);}for(const [_0x554b06,_0x1b18be]of _0x395d87['markers'])_0x554b06[_0x3624('0x3f')](_0x3624('0x5d'))||this['_markers'][_0x3624('0x60')](_0x554b06,_0x1b18be);}const _0x23c1ef=G(_0x3624('0xca'));this[_0x3624('0x37')][_0x3624('0x60')]('$graveyard',_0x23c1ef),this[_0x3624('0x69')][_0x3624('0x60')]('$graveyard',this[_0x3624('0xe9')](_0x23c1ef,0x1));const _0x1d1a9e=G('$graveyard');this['_diffRoots'][_0x3624('0x60')]('$graveyard',_0x1d1a9e),this[_0x3624('0x58')][_0x3624('0x60')](_0x3624('0xca'),this['_makeIdsRoot'](_0x1d1a9e,0x1));const _0x30862e=Array[_0x3624('0x101')](this[_0x3624('0x8d')])[_0x3624('0x1b')](([_0x1f4e73,_0x4cad3c])=>[_0x1f4e73,q(_0x4cad3c)]);this[_0x3624('0xa3')](this[_0x3624('0x7')],_0x30862e,this[_0x3624('0x74')],_0x2acc5a);}[_0x3624('0x1')](_0x7a6383){const _0x550d90=JSON[_0x3624('0x9a')](_0x7a6383),_0x11dd86=this[_0x3624('0xec')][_0x3624('0x11')][_0x3624('0x9f')][_0x3624('0x91')],_0x46b79a=new _0x4331b3(_0x11dd86,_0x550d90[_0x3624('0x1b')](_0x149553=>J(_0x149553,this[_0x3624('0xec')])));return this[_0x3624('0xec')]['data'][_0x3624('0x95')](_0x46b79a);}[_0x3624('0xa3')](_0x1a94be,_0x966bd,_0x52558a,_0x21ee31){const _0x40b4ea=new Map(_0x966bd),_0x2835f7=new Map(_0x324ce0(_0x21ee31)),_0x51a117=new Map();for(const [_0x4bc23f,_0x29a10c]of _0x52558a)_0x51a117['set'](_0x4bc23f,{'start':_0x29a10c[_0x3624('0x0')]['clone'](),'end':_0x29a10c[_0x3624('0xc4')]['clone'](),'rootName':_0x29a10c[_0x3624('0x6a')][_0x3624('0xe0')]});this[_0x3624('0xf0')][_0x3624('0x60')](_0x1a94be,{'roots':_0x40b4ea,'markers':_0x51a117,'rootsAttributes':_0x2835f7});}[_0x3624('0x2f')](_0x2cc5f6){this[_0x3624('0xf0')][_0x3624('0x89')](_0x2cc5f6);}['reInit'](){this['_reset'](),this[_0x3624('0x28')]=-0x1,this[_0x3624('0x7')]=-0x1,this['_savedMetaData']['clear'](),this[_0x3624('0x61')](this[_0x3624('0x99')]);}['_reset'](){this[_0x3624('0x106')][_0x3624('0xcf')](),this[_0x3624('0x88')][_0x3624('0xcf')](),this['_touchedRoots'][_0x3624('0xcf')](),this['_diffRoots'][_0x3624('0xcf')](),this[_0x3624('0x103')][_0x3624('0xcf')](),this[_0x3624('0x37')][_0x3624('0xcf')](),this[_0x3624('0x7a')][_0x3624('0xcf')](),this[_0x3624('0x58')][_0x3624('0xcf')](),this[_0x3624('0x69')][_0x3624('0xcf')](),this[_0x3624('0x74')]['clear'](),this[_0x3624('0x78')]=0x1,this[_0x3624('0xe1')]=this[_0x3624('0x78')];}['_makeIdsRoot'](_0x3fdebb,_0x4a0382=null){let _0x5d836a=null;_0x3fdebb['is'](_0x3624('0x64'))||(_0x5d836a=new _0x58fcf1(_0x3fdebb['name'],{'vid_start':null===_0x4a0382?this['_revisionId']++:_0x4a0382++}));const _0x5895e4=[];for(const _0x375845 of _0x3fdebb[_0x3624('0x45')]())if(_0x375845['is'](_0x3624('0x71'))){_0x5895e4[_0x3624('0x6d')](this[_0x3624('0xe9')](_0x375845,_0x4a0382));const _0x3e00e1=_0x5895e4[_0x5895e4[_0x3624('0xb2')]-0x1];null!==_0x4a0382&&(_0x4a0382=_0x3e00e1['is'](_0x3624('0x71'),_0x3624('0x51'))?_0x3e00e1[_0x3624('0x6b')](_0x3624('0x4d'))+0x1:_0x3e00e1[_0x3624('0x6b')](_0x3624('0xf6'))+0x1);}else for(let _0x6d65aa=0x0;_0x6d65aa<_0x375845[_0x3624('0x4e')];_0x6d65aa++)_0x5895e4[_0x3624('0x6d')](new _0x58fcf1(_0x3624('0x51'),{'vid':null===_0x4a0382?this[_0x3624('0x78')]++:_0x4a0382++}));if(_0x3fdebb['is']('documentFragment')){const _0x356fc2=G(_0x3fdebb[_0x3624('0xe0')]);return _0x356fc2[_0x3624('0x22')](0x0,_0x5895e4),_0x356fc2;}return _0x5d836a[_0x3624('0x59')](_0x3624('0xf6'),null===_0x4a0382?this[_0x3624('0x78')]++:_0x4a0382++),_0x5d836a[_0x3624('0x22')](0x0,_0x5895e4),_0x5d836a;}['_calculateMetaData'](_0x479afd,_0x16ccbe,_0xbcf972){this['_reset']();const {roots:_0xb13865,markers:_0x5a52ce,rootsAttributes:_0x51b0fe}=this['_savedMetaData']['get'](_0x479afd);this[_0x3624('0x37')]=new Map(_0xb13865),this[_0x3624('0x7a')]=new Map(_0x324ce0(_0x51b0fe));for(const [_0x123bee,_0x243423]of this[_0x3624('0x37')])if(_0x3624('0xca')!==_0x123bee&&(this[_0x3624('0x8d')][_0x3624('0x60')](_0x123bee,q(_0x243423)),this['_diffRootsAttributes']=new Map(_0x324ce0(_0x51b0fe)),_0xbcf972)){const _0x45565f=this['_revisionId'];this['_idsRoots'][_0x3624('0x60')](_0x123bee,this[_0x3624('0xe9')](_0x243423)),this['_baseIdsRoots'][_0x3624('0x60')](_0x123bee,this[_0x3624('0xe9')](_0x243423,_0x45565f));}this[_0x3624('0xe1')]=this['_revisionId'],this['_diffRoots'][_0x3624('0x60')](_0x3624('0xca'),q(this['_baseRoots'][_0x3624('0xe3')]('$graveyard'))),_0xbcf972&&this['_idsRoots'][_0x3624('0x60')](_0x3624('0xca'),this[_0x3624('0xe9')](this[_0x3624('0x37')][_0x3624('0xe3')](_0x3624('0xca'))));for(const [_0x33a79c,_0x19040b]of _0x5a52ce){const _0x250c72=this['_baseRoots']['get'](_0x19040b[_0x3624('0xe0')]),_0x86607a=this[_0x3624('0x8d')][_0x3624('0xe3')](_0x19040b[_0x3624('0xe0')]),_0x2c4478=new _0x5d635b(this[_0x3624('0x3')](_0x19040b['start'],_0x250c72),this['_fixPosition'](_0x19040b[_0x3624('0xc4')],_0x250c72)),_0x500007=this[_0x3624('0xd3')](_0x2c4478,_0x86607a);_0x250c72[_0x3624('0x90')]['set'](_0x33a79c,_0x2c4478),this[_0x3624('0x74')][_0x3624('0x60')](_0x33a79c,_0x500007);}this[_0x3624('0x4')](_0x479afd,_0x16ccbe,_0xbcf972);}[_0x3624('0x4')](_0x36701f,_0x34e766,_0x230caf){for(const _0x38f027 of this[_0x3624('0x99')][_0x3624('0xeb')](_0x36701f,_0x34e766))this['_handleOperation'](_0x38f027,_0x230caf);for(const _0xd83963 of this[_0x3624('0x8d')][_0x3624('0x16')]())_0xd83963['markers'][_0x3624('0xcf')]();for(const [_0x50fcd2,_0x126fef]of this['_markers']){this[_0x3624('0x8d')]['get'](_0x126fef[_0x3624('0x6a')][_0x3624('0xe0')])[_0x3624('0x90')][_0x3624('0x60')](_0x50fcd2,_0x126fef[_0x3624('0xae')]());}const _0x8ed165=new Map(),_0x1d0f02=new Map();for(const [_0x3bea87,_0x2c9368]of this[_0x3624('0x8d')])_0x8ed165[_0x3624('0x60')](_0x3bea87,q(_0x2c9368)),_0x1d0f02['set'](_0x3bea87,this['_diffRootsAttributes'][_0x3624('0xe3')](_0x3bea87));this[_0x3624('0xa3')](_0x34e766,_0x8ed165,this[_0x3624('0x74')],_0x1d0f02);}[_0x3624('0xf5')](_0x5190d6){const _0x1e5939=Array[_0x3624('0x101')](this['_savedMetaData'][_0x3624('0x4c')]());_0x1e5939[_0x3624('0x34')]((_0x3e0387,_0x5866db)=>_0x3e0387-_0x5866db),_0x1e5939[_0x3624('0xee')]();for(const _0x3670fc of _0x1e5939)if(_0x3670fc<_0x5190d6)return _0x3670fc;return Number[_0x3624('0xb7')];}['_copyMarkers'](_0x3b1794,_0x5e60a2){const _0x48d382=Array['from'](_0x5e60a2[_0x3624('0x90')])[_0x3624('0x1b')](([_0x4622ff,_0x575924])=>[_0x4622ff,this[_0x3624('0xd3')](_0x575924,_0x3b1794)]);_0x3b1794['markers']=new Map(_0x48d382);}['_transformMarkers'](_0x13161a){for(const _0xa5769 of this[_0x3624('0x74')][_0x3624('0x16')]()){const _0x4009ad=_0xa5769[_0x3624('0x8c')](_0x13161a),_0x43815b=_0x5d635b[_0x3624('0xb')](_0x4009ad);_0xa5769[_0x3624('0x0')]=_0x43815b['start'],_0xa5769['end']=_0x43815b['end'];}}[_0x3624('0x3c')](_0x5ed538,_0x2adf36){if(_0x3624('0x63')==_0x5ed538[_0x3624('0xf9')]||_0x3624('0x1c')==_0x5ed538[_0x3624('0xf9')])return void this['_handleRootOperation'](_0x5ed538,_0x2adf36);if(_0x3624('0x2d')==_0x5ed538[_0x3624('0xf9')]){const _0x4c80d9=_0x5ed538['position']['root']['rootName'];this[_0x3624('0x8d')]['has'](_0x4c80d9)||(this[_0x3624('0x8d')]['set'](_0x4c80d9,G(_0x4c80d9,!0x0)),this['_diffRootsAttributes'][_0x3624('0x60')](_0x4c80d9,{}),_0x2adf36&&this[_0x3624('0x58')][_0x3624('0x60')](_0x4c80d9,G(_0x4c80d9,!0x0)));}else{if(_0x3624('0x25')==_0x5ed538[_0x3624('0xf9')]||_0x3624('0xf2')==_0x5ed538[_0x3624('0xf9')]||'changeRootAttribute'==_0x5ed538[_0x3624('0xf9')])return void this[_0x3624('0xe8')](_0x5ed538);}const _0x147eb7=this[_0x3624('0x9b')](_0x5ed538,this[_0x3624('0x8d')]);if(_0x3624('0xd1')!==_0x5ed538[_0x3624('0xf9')]&&(_0x147eb7['_execute'](),this[_0x3624('0x39')](_0x147eb7)),_0x2adf36)switch(_0x147eb7[_0x3624('0xf9')]){case'insert':this[_0x3624('0x2e')](_0x5ed538);break;case'move':case'remove':case _0x3624('0x9'):this[_0x3624('0x50')](_0x5ed538);break;case _0x3624('0x55'):this[_0x3624('0xb8')](_0x5ed538);break;case _0x3624('0xcd'):this[_0x3624('0x19')](_0x5ed538);break;case'marker':this[_0x3624('0xbf')](_0x5ed538);}}[_0x3624('0x9b')](_0x535645,_0x2292ac){const _0xc7fb32=_0x535645['clone']();return _0xc7fb32[_0x3624('0x15')]=_0x535645[_0x3624('0x15')],this[_0x3624('0x7c')](_0xc7fb32,_0x2292ac),_0xc7fb32;}['_getBaseVids'](_0x1013b7){return _0x1013b7[_0x3624('0x1b')](_0x3f9ed5=>{const _0x313d92=this[_0x3624('0x26')](_0x3f9ed5);return Number(_0x3f9ed5[_0x3624('0xf8')]['getAttribute'](_0x313d92));});}[_0x3624('0x75')](_0x14d276,_0x469360){if(_0x14d276['is'](_0x3624('0x71'),'$text'))_0x469360[_0x3624('0x6d')]({'item':_0x14d276,'type':_0x3624('0xf7')});else{_0x14d276['is'](_0x3624('0x71'))&&_0x469360[_0x3624('0x6d')]({'item':_0x14d276,'type':_0x3624('0x36')});for(const _0x43388a of _0x14d276['getChildren']())this[_0x3624('0x75')](_0x43388a,_0x469360);_0x14d276['is'](_0x3624('0x71'))&&_0x469360[_0x3624('0x6d')]({'item':_0x14d276,'type':'elementEnd'});}return _0x469360;}[_0x3624('0xab')](){const _0x320656=new Map(this[_0x3624('0x106')]),_0x21fdb4=new Map(_0x320656),_0x5de8f0=new Map(),_0x20ef25={'insertions':{},'deletions':{}},_0x75d87e={'insertions':{},'deletions':{}},_0x431c93=new Map(),_0x544267=new Set([...this['_baseRoots'][_0x3624('0x4c')](),...this[_0x3624('0x8d')][_0x3624('0x4c')]()]);_0x544267[_0x3624('0x89')](_0x3624('0xca'));for(const _0x575026 of _0x544267){const _0x413a73=this[_0x3624('0x8d')][_0x3624('0xe3')](_0x575026)||G(_0x575026,!0x1),_0x28db5d=this[_0x3624('0x37')][_0x3624('0xe3')](_0x575026)||G(_0x575026,!0x1);_0x413a73[_0x3624('0x82')]()||_0x28db5d[_0x3624('0x82')]()?(_0x20ef25[_0x3624('0x3a')][_0x575026]=q(_0x413a73),_0x20ef25[_0x3624('0xa1')][_0x575026]=q(_0x28db5d),this['_copyMarkers'](_0x20ef25[_0x3624('0xa1')][_0x575026],_0x28db5d),this[_0x3624('0xb0')](_0x20ef25[_0x3624('0x3a')][_0x575026],_0x413a73),_0x75d87e[_0x3624('0x3a')][_0x575026]=this[_0x3624('0x75')](this['_idsRoots'][_0x3624('0xe3')](_0x575026),[]),_0x75d87e[_0x3624('0xa1')][_0x575026]=this[_0x3624('0x75')](this['_baseIdsRoots'][_0x3624('0xe3')](_0x575026)||G(_0x575026,!0x1),[])):_0x544267[_0x3624('0x89')](_0x575026);}for(const _0x5c6eff of _0x544267){const _0x35486b=_0x75d87e[_0x3624('0x3a')][_0x5c6eff];for(const _0x1f7c2d of _0x35486b){const _0x2000fa=this[_0x3624('0x26')](_0x1f7c2d),_0x569869=_0x1f7c2d['item'][_0x3624('0x6b')](_0x2000fa);_0x21fdb4[_0x3624('0x89')](_0x569869),_0x569869>=this['_startingRevisionId']&&_0x5de8f0['set'](_0x569869,_0x320656[_0x3624('0xe3')](_0x569869));}}for(const _0x579195 of _0x544267){const _0x535335=_0x75d87e[_0x3624('0x3a')][_0x579195],_0x5b4e51=this[_0x3624('0xb9')](_0x75d87e['deletions'][_0x579195]);let _0x432d7b=0x0;for(const _0xcd3559 of _0x535335){const _0x318477=this['_getVidAttributeName'](_0xcd3559),_0x3e3a44=_0xcd3559[_0x3624('0xf8')]['getAttribute'](_0x318477);if(!_0x5de8f0[_0x3624('0x35')](_0x3e3a44)&&!_0x431c93['has'](_0x3e3a44)){if(_0x21fdb4[_0x3624('0x35')](_0x3e3a44))_0x432d7b++;else{if(_0x3e3a44!=_0x5b4e51[_0x432d7b]){const _0x33c618=_0x320656[_0x3624('0xe3')](_0x3e3a44)||_0x320656[_0x3624('0xe3')](_0x5b4e51[_0x432d7b]);for(;_0x3e3a44!=_0x5b4e51[_0x432d7b];)_0x21fdb4['has'](_0x5b4e51[_0x432d7b])||(_0x431c93['set'](_0x5b4e51[_0x432d7b],_0x33c618),_0x320656[_0x3624('0x60')](_0x5b4e51[_0x432d7b],_0x33c618)),_0x432d7b++;}_0x432d7b++;}}}}for(const _0x28745b of _0x544267){const _0x2b17c1=_0x75d87e[_0x3624('0x3a')][_0x28745b];for(const _0x20dfc7 of _0x2b17c1){const _0xe32dcd=this[_0x3624('0x26')](_0x20dfc7),_0x268ced=_0x20dfc7[_0x3624('0xf8')][_0x3624('0x6b')](_0xe32dcd);if(_0x431c93['has'](_0x268ced)){const _0x3b4708=_0x431c93['get'](_0x268ced);_0x21fdb4['has'](_0x268ced)||_0x21fdb4[_0x3624('0x60')](_0x268ced,{..._0x3b4708}),_0x5de8f0[_0x3624('0x60')](_0x268ced,{..._0x3b4708});}}}for(const _0x2027f2 of _0x21fdb4[_0x3624('0x4c')]())_0x2027f2>=this[_0x3624('0xe1')]&&_0x21fdb4['delete'](_0x2027f2);const _0x3469fa=new Map();for(const _0x4e3d32 of _0x544267){let _0x3af8ff=_0x75d87e[_0x3624('0x3a')][_0x4e3d32];for(const _0x395296 of _0x3af8ff)if(_0x395296[_0x3624('0xf8')]['is'](_0x3624('0x71'),_0x3624('0x40'))){const _0x322853=this['_getVidAttributeName'](_0x395296),_0x3b7d5e=_0x395296[_0x3624('0xf8')][_0x3624('0x6b')](_0x322853);if(_0x5de8f0['has'](_0x3b7d5e)){const _0x55a059=_0x395296[_0x3624('0xf8')][_0x3624('0x33')]['parent'][_0x3624('0x6b')](_0x3624('0xa2')),_0x2e03d4=_0x3469fa[_0x3624('0xe3')](_0x55a059)||new Set();_0x2e03d4[_0x3624('0xfc')](_0x5de8f0['get'](_0x3b7d5e)[_0x3624('0x43')]),_0x3469fa[_0x3624('0x60')](_0x55a059,_0x2e03d4);}}_0x3af8ff=_0x75d87e[_0x3624('0xa1')][_0x4e3d32];for(const _0x595b07 of _0x3af8ff)if(_0x595b07[_0x3624('0xf8')]['is'](_0x3624('0x71'),_0x3624('0x40'))){const _0xc6f2dc=this['_getVidAttributeName'](_0x595b07),_0x133934=_0x595b07[_0x3624('0xf8')]['getAttribute'](_0xc6f2dc);if(_0x21fdb4[_0x3624('0x35')](_0x133934)){const _0x43d362=_0x595b07['item'][_0x3624('0x33')]['parent'][_0x3624('0x6b')](_0x3624('0xa2')),_0x354885=_0x3469fa[_0x3624('0xe3')](_0x43d362)||new Set();_0x354885[_0x3624('0xfc')](_0x21fdb4[_0x3624('0xe3')](_0x133934)[_0x3624('0x43')]),_0x3469fa['set'](_0x43d362,_0x354885);}}for(const _0x32e553 of _0x3469fa[_0x3624('0x4c')]())(_0x5de8f0[_0x3624('0x35')](_0x32e553)||_0x21fdb4['has'](_0x32e553))&&_0x3469fa['delete'](_0x32e553);}for(const _0x2de908 of _0x544267){const _0x50d214=_0x75d87e[_0x3624('0x3a')][_0x2de908];let _0x3830dc=null,_0x39b426=null;for(const _0x20c376 of _0x50d214){const _0xb3dae9=this[_0x3624('0x26')](_0x20c376),_0x5cac12=_0x20c376[_0x3624('0xf8')][_0x3624('0x6b')](_0xb3dae9),_0x41a8d8=_0x3469fa[_0x3624('0xe3')](_0x5cac12);_0x41a8d8&&_0x3624('0x36')==_0x20c376[_0x3624('0xf9')]&&(_0x3830dc=Array[_0x3624('0x101')](_0x41a8d8)[0x0],_0x39b426=_0x20c376[_0x3624('0xf8')]['getAttribute'](_0x3624('0xf6'))),_0x3830dc&&(_0x21fdb4[_0x3624('0x60')](_0x5cac12,{'userId':_0x3830dc}),_0x5de8f0[_0x3624('0x60')](_0x5cac12,{'userId':_0x3830dc})),_0x5cac12==_0x39b426&&(_0x3830dc=null,_0x39b426=null);}}const _0x497080={},_0x306fbc=new Set();for(const _0x12265c of _0x544267){const _0x5c025b=_0x20ef25[_0x3624('0xa1')][_0x12265c],_0x15d633=_0x20ef25['insertions'][_0x12265c];for(const {userId:_0x2914d0}of this[_0x3624('0x88')][_0x3624('0x16')]())null!==_0x2914d0&&_0x306fbc[_0x3624('0xfc')](_0x2914d0);for(const {userId:_0x86fe76}of this['_touchedRoots'][_0x3624('0x16')]())null!==_0x86fe76&&_0x306fbc[_0x3624('0xfc')](_0x86fe76);this[_0x3624('0x104')](_0x15d633,_0x75d87e[_0x3624('0x3a')][_0x12265c],_0x5de8f0,_0x3624('0xa6'),_0x306fbc),this['_markChanges'](_0x5c025b,_0x75d87e[_0x3624('0xa1')][_0x12265c],_0x21fdb4,_0x3624('0xcc'),_0x306fbc),_0x497080[_0x12265c]={'insertions':this[_0x3624('0xd9')](_0x15d633),'deletions':this['_prepareViewToSave'](_0x5c025b),'attachChange':this[_0x3624('0xa')][_0x3624('0xe3')](_0x12265c)||null,'attributesBefore':_0x324ce0(this['_baseRootsAttributes']['get'](_0x12265c))||{},'attributesAfter':_0x324ce0(this[_0x3624('0x103')]['get'](_0x12265c))};}return{'diffData':_0x497080,'authorsIds':Array[_0x3624('0x101')](_0x306fbc)};}[_0x3624('0xc7')](_0x5ab4c8){for(const [,_0x5a55d4]of _0x5ab4c8['markers']){const _0x1221a3=_0x5a55d4[_0x3624('0x0')][_0x3624('0xc5')]()[_0x3624('0xba')](_0x24d430=>_0x3624('0x40')==_0x24d430[_0x3624('0xdb')]);for(const _0x1c2119 of _0x1221a3)0x1==_0x1c2119[_0x3624('0x52')]&&_0x1c2119[_0x3624('0xf')](0x0)['is'](_0x3624('0x71'),'paragraph')&&_0x1c2119[_0x3624('0xf')](0x0)[_0x3624('0x59')](_0x3624('0x7e'),!0x0);}}[_0x3624('0xd9')](_0x2c85b0){this[_0x3624('0xc7')](_0x2c85b0);const _0x437f00=this['editor'][_0x3624('0x46')][_0x3624('0x84')](_0x2c85b0,{}),_0x16b7c2=Array[_0x3624('0x101')](_0x437f00[_0x3624('0x45')]())[_0x3624('0x1b')](_0x2566bc=>this[_0x3624('0x41')](_0x2566bc));return JSON['stringify'](_0x16b7c2);}[_0x3624('0x41')](_0x3ff4d3){if(_0x3ff4d3['is']('$text'))return _0x3ff4d3[_0x3624('0x46')];{const _0x4e0a50=_0x3ff4d3;return{'type':Object[_0x3624('0x4c')](B)[_0x3624('0x18')](_0x3137f2=>_0x3ff4d3 instanceof B[_0x3137f2]),'name':_0x4e0a50[_0x3624('0xdb')],'attributes':Array[_0x3624('0x101')](_0x4e0a50['getAttributes']()),'children':Array[_0x3624('0x101')](_0x4e0a50[_0x3624('0x45')]())[_0x3624('0x1b')](_0x38a027=>this['_getViewJson'](_0x38a027))};}}[_0x3624('0x104')](_0x2f2af3,_0x4be8d2,_0x325b73,_0x292ee7,_0x17b3ea){let _0x319a44=null,_0x20c7d9=null,_0x581047=0x0;const _0x46f47f=this[_0x3624('0xec')][_0x3624('0x21')];for(let _0x4ed58f=0x0;_0x4ed58f<_0x4be8d2[_0x3624('0xb2')];_0x4ed58f++){const _0x20acb2=this[_0x3624('0x26')](_0x4be8d2[_0x4ed58f]),_0x5772c6=_0x4be8d2[_0x4ed58f][_0x3624('0xf8')][_0x3624('0x6b')](_0x20acb2),_0x38eecf=_0x325b73['get'](_0x5772c6),_0x11291f=_0x4ed58f==_0x4be8d2[_0x3624('0xb2')]-0x1;(!_0x319a44&&_0x38eecf&&(_0x319a44=_0x38eecf,_0x20c7d9=_0x4be8d2[_0x4ed58f]),_0x319a44&&(!_0x38eecf||_0x38eecf[_0x3624('0x43')]!=_0x319a44[_0x3624('0x43')]))&&(_0x59eed8(_0x38eecf,L(_0x20c7d9,_0x2f2af3,_0x46f47f),L(_0x4be8d2[_0x4ed58f],_0x2f2af3,_0x46f47f)),_0x319a44=_0x38eecf||null,_0x20c7d9=_0x38eecf?_0x4be8d2[_0x4ed58f]:null),_0x319a44&&_0x11291f&&_0x59eed8(_0x38eecf,L(_0x20c7d9,_0x2f2af3,_0x46f47f),W(_0x4be8d2[_0x4ed58f],_0x2f2af3,_0x46f47f));}function _0x59eed8(_0x371bd0,_0x556f2e,_0xbee001){const _0x3a0eda=_0x319a44[_0x3624('0x43')],_0x4dc258=_0x3624('0x5d')+_0x292ee7+':'+_0x3a0eda+':'+_0x581047++,_0x4c911a=_0x46f47f[_0x3624('0x31')](_0x556f2e,_0xbee001);_0x2f2af3[_0x3624('0x90')][_0x3624('0x60')](_0x4dc258,_0x4c911a),null!==_0x3a0eda&&_0x17b3ea[_0x3624('0xfc')](_0x3a0eda);}}[_0x3624('0x26')](_0x8c0827){switch(_0x8c0827[_0x3624('0xf9')]){case'elementStart':return _0x3624('0xa2');case _0x3624('0xd'):return _0x3624('0xf6');default:return _0x3624('0x4d');}}[_0x3624('0x7c')](_0x5101c2,_0x547be4){_0x5101c2['baseVersion']=null;for(const _0x5ed5b3 in _0x5101c2){const _0x24f6ac=_0x5101c2[_0x5ed5b3];if(_0x24f6ac instanceof _0x1442ec){const _0x220832=_0x547be4[_0x3624('0xe3')](_0x24f6ac[_0x3624('0x6a')][_0x3624('0xe0')]);_0x5101c2[_0x5ed5b3]=this[_0x3624('0x3')](_0x24f6ac,_0x220832);}if(_0x24f6ac instanceof _0x5d635b){const _0x3cc85b=_0x547be4[_0x3624('0xe3')](_0x24f6ac[_0x3624('0x6a')][_0x3624('0xe0')]);_0x5101c2[_0x5ed5b3]=this['_fixRange'](_0x24f6ac,_0x3cc85b);}_0x3624('0x6a')===_0x5ed5b3&&(_0x5101c2['root']=_0x547be4[_0x3624('0xe3')](_0x5101c2[_0x3624('0x6a')][_0x3624('0xe0')]));}}[_0x3624('0xd3')](_0x23005e,_0x57357b){return this['editor'][_0x3624('0x21')][_0x3624('0x31')](this[_0x3624('0x3')](_0x23005e[_0x3624('0x0')],_0x57357b),this['_fixPosition'](_0x23005e[_0x3624('0xc4')],_0x57357b));}[_0x3624('0x3')](_0x1f84b2,_0x15534d){return this[_0x3624('0xec')][_0x3624('0x21')][_0x3624('0xa7')](_0x15534d,_0x1f84b2[_0x3624('0x5f')],_0x1f84b2[_0x3624('0x2')]);}[_0x3624('0x2e')](_0x4afd02){const _0x12383a=this['_idsRoots'][_0x3624('0xe3')](_0x4afd02[_0x3624('0xe')][_0x3624('0x6a')][_0x3624('0xe0')]),_0x178fdc=this[_0x3624('0x3')](_0x4afd02['position'],_0x12383a),_0x7557d=null===_0x4afd02[_0x3624('0x15')]?null:_0x4afd02[_0x3624('0x15')]||this[_0x3624('0xec')][_0x3624('0xdf')][_0x3624('0xe3')]('Users')['me']['id'],_0x175f81=_0x178fdc['parent'],_0x57df60=this[_0x3624('0x78')],_0x2c6adf=[];for(const _0x2a9141 of _0x4afd02['nodes'])if(_0x2a9141['is'](_0x3624('0x71')))_0x2c6adf[_0x3624('0x6d')](this[_0x3624('0xe9')](_0x2a9141));else for(let _0x555766=0x0;_0x555766<_0x2a9141['offsetSize'];_0x555766++)_0x2c6adf[_0x3624('0x6d')](new _0x58fcf1(_0x3624('0x51'),{'vid':this[_0x3624('0x78')]++}));const _0x28f658=this[_0x3624('0x78')];for(let _0x43b8e6=_0x57df60;_0x43b8e6<_0x28f658;_0x43b8e6++)this['_touched'][_0x3624('0x60')](_0x43b8e6,{'userId':_0x7557d});_0x175f81[_0x3624('0x22')](_0x178fdc[_0x3624('0xb1')],_0x2c6adf);}[_0x3624('0x50')](_0x58c105){(_0x58c105=this[_0x3624('0x9b')](_0x58c105,this['_idsRoots']))[_0x3624('0xf4')]();const _0x21504c=null===_0x58c105[_0x3624('0x15')]?null:_0x58c105[_0x3624('0x15')]||this[_0x3624('0xec')]['plugins'][_0x3624('0xe3')](_0x3624('0xc1'))['me']['id'],_0x17e7c5=_0x58c105['getMovedRangeStart'](),_0x29d8d3=_0x17e7c5['parent'],_0x3b2360=_0x17e7c5[_0x3624('0xb1')];!function _0x118bd1(_0x166595,_0x1b0aa0,_0x226856,_0x1ad584){for(let _0x4dc751=_0x226856;_0x4dc751<_0x1ad584;_0x4dc751++){const _0x3044e7=_0x1b0aa0['getChild'](_0x4dc751);_0x3044e7['is'](_0x3624('0x71'),_0x3624('0x51'))?_0x166595[_0x3624('0x60')](_0x3044e7[_0x3624('0x6b')](_0x3624('0x4d')),{'userId':_0x21504c}):(_0x166595[_0x3624('0x60')](_0x3044e7[_0x3624('0x6b')](_0x3624('0xa2')),{'userId':_0x21504c}),_0x118bd1(_0x166595,_0x3044e7,0x0,_0x3044e7[_0x3624('0x52')]),_0x166595[_0x3624('0x60')](_0x3044e7[_0x3624('0x6b')](_0x3624('0xf6')),{'userId':_0x21504c}));}}(this[_0x3624('0x106')],_0x29d8d3,_0x3b2360,_0x3b2360+_0x58c105[_0x3624('0xc8')]);}[_0x3624('0xb8')](_0x23bce6){const _0x3f2929=null===(_0x23bce6=this['_cloneOperation'](_0x23bce6,this[_0x3624('0x58')]))['_authorId']?null:_0x23bce6[_0x3624('0x15')]||this[_0x3624('0xec')][_0x3624('0xdf')][_0x3624('0xe3')]('Users')['me']['id'],_0x9cad53=_0x23bce6[_0x3624('0xb6')]['parent'],_0x582c8a=_0x23bce6['sourcePosition'][_0x3624('0x33')],_0x4f51bc=_0x9cad53[_0x3624('0x6b')](_0x3624('0xf6')),_0x243905=_0x582c8a[_0x3624('0x6b')](_0x3624('0xa2'));_0x9cad53[_0x3624('0x59')](_0x3624('0xf6'),_0x582c8a[_0x3624('0x6b')]('vid_end')),_0x582c8a['_setAttribute'](_0x3624('0xf6'),_0x4f51bc),this[_0x3624('0x106')][_0x3624('0x60')](_0x243905,{'userId':_0x3f2929}),this[_0x3624('0x106')][_0x3624('0x60')](_0x4f51bc,{'userId':_0x3f2929}),_0x23bce6[_0x3624('0xf4')]();}[_0x3624('0x19')](_0x16dd1f){const _0x3bcd85=null===(_0x16dd1f=this[_0x3624('0x9b')](_0x16dd1f,this['_idsRoots']))[_0x3624('0x15')]?null:_0x16dd1f[_0x3624('0x15')]||this[_0x3624('0xec')][_0x3624('0xdf')][_0x3624('0xe3')](_0x3624('0xc1'))['me']['id'],_0x119ecc=_0x16dd1f[_0x3624('0xfe')],_0x844e50=_0x16dd1f[_0x3624('0x7f')][_0x3624('0x33')];_0x16dd1f['_execute']();const _0x300a42=_0x844e50[_0x3624('0x6b')](_0x3624('0xf6')),_0x381c74=_0x16dd1f['insertionPosition'][_0x3624('0x4a')];if(_0x119ecc){const _0x1c0a2c=_0x381c74[_0x3624('0x6b')](_0x3624('0xf6')),_0xd1baf7=_0x844e50[_0x3624('0x6b')](_0x3624('0xf6'));_0x844e50[_0x3624('0x59')](_0x3624('0xf6'),_0x1c0a2c),_0x381c74['_setAttribute'](_0x3624('0xf6'),_0xd1baf7),this[_0x3624('0x106')][_0x3624('0x60')](_0x844e50['getAttribute'](_0x3624('0xf6')),{'userId':_0x3bcd85}),this[_0x3624('0x106')][_0x3624('0x60')](_0x381c74['getAttribute'](_0x3624('0xa2')),{'userId':_0x3bcd85});}else{const _0x3ef16e=this[_0x3624('0x78')]++,_0x188cef=this[_0x3624('0x78')]++;_0x844e50[_0x3624('0x59')](_0x3624('0xf6'),_0x3ef16e),_0x381c74[_0x3624('0x59')](_0x3624('0xa2'),_0x188cef),_0x381c74['_setAttribute'](_0x3624('0xf6'),_0x300a42),this[_0x3624('0x106')][_0x3624('0x60')](_0x3ef16e,{'userId':_0x3bcd85}),this['_touched'][_0x3624('0x60')](_0x188cef,{'userId':_0x3bcd85});}}[_0x3624('0xbf')](_0x19b5ca){if(!_0x19b5ca[_0x3624('0x27')])return;const _0x188c18=(_0x19b5ca=this[_0x3624('0x9b')](_0x19b5ca,this[_0x3624('0x8d')]))[_0x3624('0x20')]?_0x19b5ca['oldRange'][_0x3624('0x6a')]:null,_0x47ec04=_0x19b5ca['newRange']?_0x19b5ca[_0x3624('0x7d')]['root']:null;_0x188c18&&this[_0x3624('0x74')][_0x3624('0x89')](_0x19b5ca[_0x3624('0xdb')]),_0x47ec04&&this[_0x3624('0x74')][_0x3624('0x60')](_0x19b5ca['name'],_0x19b5ca[_0x3624('0x7d')]['clone']());const _0x357093=null===_0x19b5ca['_authorId']?null:_0x19b5ca['_authorId']||this[_0x3624('0xec')][_0x3624('0xdf')][_0x3624('0xe3')](_0x3624('0xc1'))['me']['id'],_0x2f46db=_0x19b5ca[_0x3624('0xdb')];if(!this[_0x3624('0x88')][_0x3624('0x35')](_0x2f46db))return void this[_0x3624('0x88')][_0x3624('0x60')](_0x2f46db,{'range':_0x19b5ca[_0x3624('0x20')],'userId':_0x357093});const _0x24d9e6=this['_touchedMarkers'][_0x3624('0xe3')](_0x2f46db),_0x186313=_0x24d9e6['range'],_0xc8356=_0x19b5ca[_0x3624('0x7d')];null==_0x186313&&null==_0xc8356||_0x186313&&_0xc8356&&_0x186313[_0x3624('0x48')](_0xc8356)?this['_touchedMarkers']['delete'](_0x19b5ca[_0x3624('0xdb')]):_0x24d9e6['userId']=_0x357093;}[_0x3624('0x67')](_0x2fbc39,_0x21e1e4){this[_0x3624('0x8d')]['has'](_0x2fbc39[_0x3624('0xe0')])?this[_0x3624('0x8d')][_0x3624('0xe3')](_0x2fbc39[_0x3624('0xe0')])['_isAttached']=_0x2fbc39[_0x3624('0x68')]:(this[_0x3624('0x8d')][_0x3624('0x60')](_0x2fbc39[_0x3624('0xe0')],G(_0x2fbc39[_0x3624('0xe0')],!0x0)),this[_0x3624('0x103')][_0x3624('0x60')](_0x2fbc39[_0x3624('0xe0')],{}),_0x21e1e4&&this[_0x3624('0x58')][_0x3624('0x60')](_0x2fbc39[_0x3624('0xe0')],G(_0x2fbc39[_0x3624('0xe0')],!0x0)));const _0x67bb27=null===_0x2fbc39[_0x3624('0x15')]?null:_0x2fbc39[_0x3624('0x15')]||this[_0x3624('0xec')][_0x3624('0xdf')][_0x3624('0xe3')]('Users')['me']['id'],_0x29e1a3=this[_0x3624('0xa')][_0x3624('0xe3')](_0x2fbc39['rootName']);_0x29e1a3&&_0x29e1a3['userId']===_0x67bb27?this['_touchedRoots'][_0x3624('0x89')](_0x2fbc39['rootName']):this[_0x3624('0xa')][_0x3624('0x60')](_0x2fbc39[_0x3624('0xe0')],{'userId':_0x67bb27,'isAttached':_0x2fbc39[_0x3624('0x68')]});}[_0x3624('0xe8')](_0x439b5c){const _0x398587=this['_diffRootsAttributes'][_0x3624('0xe3')](_0x439b5c['root'][_0x3624('0xe0')]);null===_0x439b5c[_0x3624('0xfb')]?delete _0x398587[_0x439b5c[_0x3624('0xaa')]]:_0x398587[_0x439b5c[_0x3624('0xaa')]]=_0x439b5c[_0x3624('0xfb')];}}function q(_0x533044){const _0x1b3abd=G(_0x533044[_0x3624('0xe0')],_0x533044[_0x3624('0x82')]());for(const _0x56ed81 of _0x533044['getChildren']()){const _0x53ee54=_0x56ed81[_0x3624('0x8a')](!0x0);_0x1b3abd[_0x3624('0xc0')](_0x53ee54);}return _0x1b3abd;}function G(_0xaeab48,_0x5ba1e9=!0x0){const _0xd47c10=new _0x4414b4();return _0xd47c10['rootName']=_0xaeab48,_0xd47c10[_0x3624('0x80')]=_0x5ba1e9,_0xd47c10[_0x3624('0x82')]=()=>_0xd47c10['_isAttached'],_0xd47c10;}function L(_0x69aa5b,_0x270950,_0x58ea91){const _0x3ae1c9='elementEnd'==_0x69aa5b[_0x3624('0xf9')]?_0x58ea91[_0x3624('0xaf')](_0x69aa5b[_0x3624('0xf8')],'end'):_0x58ea91['createPositionBefore'](_0x69aa5b[_0x3624('0xf8')]);return _0x58ea91['createPositionFromPath'](_0x270950,_0x3ae1c9[_0x3624('0x5f')],_0x3ae1c9['stickiness']);}function W(_0xfc196a,_0xf14f70,_0x39d395){const _0x447c4e=_0x3624('0x36')==_0xfc196a[_0x3624('0xf9')]?_0x39d395[_0x3624('0xaf')](_0xfc196a['item'],0x0):_0x39d395[_0x3624('0xbd')](_0xfc196a[_0x3624('0xf8')]);return _0x39d395[_0x3624('0xa7')](_0xf14f70,_0x447c4e[_0x3624('0x5f')],_0x447c4e[_0x3624('0x2')]);}