@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231124.0 → 0.0.0-nightly-20231126.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5cfb=['previousPosition','_baseRootsAttributes','isEqual','baseVersion','creatorId','_execute','setRevisionData','trim','merge','_createInitialRevision','RevisionTracker','authorsIds','_revisionId','createPositionFromPath','rootsAttributes','name','forEach','initialData','set','_bufferedUpdates','roots','_transformMarkers','length','isAttached','config','userId','_setConversion','tableCell','vid','isEnabled','adapter','revision','_fixRange','repository','insertions','_bufferUpdate','_authorId','marked','attributes','children','dataToMarker','collaboration.channelId','_fixOperation','childCount','stickiness','_getBaseVids','text','getTime','getCurrentRevisionId','shift','reverse','_saveMetaData','_reset','getOperations','revisionHistory.resumeUnsavedRevision','editor-initial-data-replaced-with-revision-data','nodes','addRootAttribute','sourcePosition','_isPendingUpdate','keys','push','attachChange','oldRange','_createCurrentRevision','_getState','_getFromVersion','default','_makeRevision','fromEntries','string','creator','_touchedRoots','diffData','revision:','getRevisionRootsAttributes','getRoot','finally','useFillerType','_prepareViewToSave','view','define','size','filter','vid_end','_clone','startsWith','parent','_makeModelFromViewString','Users','init','createdAt','_handleMarkerOperation','_loadState','get','_addPendingAction','addRoot','howMany','hasContent','_lastTo','has','upcast','_startingRevisionId','values','fromVersion','_revisionDataBuilder','clear','range','getAttributes','_baseRoots','position','remove','deletions','path','_cloneOperation','getChildren','_loadRevisionData','find','_processRootBeforeSave','getRevisions','deletion','$text','_touched','pluginName','documentFragment','toView','PendingActions','getLatestVersion','locale','authors','getUser','getChild','root','_lastFrom','_replaceEditorDataWithRevisionData','history','_markers','_applyOperations','move','revision-start','_idsRoots','getOperation','_removeRevisionMarkers','elementStart','newRange','getNodeByPath','source','_markChanges','_calculateMetaData','resolve','getData','addRevisionData','_isInit','model','_copyMarkers','_initialRevisionId','RealTimeCollaborationClient','_baseIdsRoots','saveRevision','type','start','editing','conversion','dataDowncast','marker','splitPosition','nodeAfter','toData','getAttribute','bind','_diffRootsAttributes','offsetSize','key','_removePendingAction','loadState','getRange','isReady','getIndex','_startingVersion','editor','data','revision-end','createPositionBefore','delete','from','_findInsertionIndex','_handleOperation','some','markers','afterInit','_fixPosition','_savedMetaData','PENDING_ACTION_REVISION_HISTORY','_getPreviousFrom','data-revision-','slice','ready','_source','split','_removeMetaData','buildRevisionData','_handleRootAttributeOperation','_handleInsertOperation','removeRootAttribute','_update','document','toModel','toVersion','_makeIdsRoot','_touchedMarkers','update','sendBufferedUpdates','_getViewJson','_isAttached','_loadedStateData','insertionPosition','getRevisionDocumentData','then','stringify','getRootNames','isAdd','createRevision','getMovedRangeStart','_handleMergeOperation','NEGATIVE_INFINITY','rootName','processor','initial','detachRoot','attributesAfter','end','max','paragraph','map','_generateTape','_continueCurrentRevision','elementEnd','insert','version','_setAttribute','createRangeIn','currentRevision','add','createPositionAfter','_handleMoveOperation','addRevision','getWalker','_insertChild','attributesBefore','$graveyard','changeRootAttribute','newValue','plugins','_diffRoots','item','_createFromRanges','_pendingAction','offset','vid_start','_handleSplitOperation','getRevision','clone','_getVidAttributeName','createPositionAt','graveyardPosition','element'];(function(_0x3c5c1a,_0x5cfb37){const _0x1b49c9=function(_0x5325b3){while(--_0x5325b3){_0x3c5c1a['push'](_0x3c5c1a['shift']());}};_0x1b49c9(++_0x5cfb37);}(_0x5cfb,0x161));const _0x1b49=function(_0x3c5c1a,_0x5cfb37){_0x3c5c1a=_0x3c5c1a-0x0;let _0x1b49c9=_0x5cfb[_0x3c5c1a];return _0x1b49c9;};import{Users as _0x410585}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x5ca3f8,PendingActions as _0x42776f}from'ckeditor5/src/core';import{logWarning as _0x486473,uid as _0x16bf9f}from'ckeditor5/src/utils';import{Position as _0x357d8b,Range as _0x1948b6,Element as _0x46b245,DocumentFragment as _0x49f90d,ViewText as _0x50d6bf,ViewElement as _0xbff4c3,ViewContainerElement as _0x5a9c4e,ViewAttributeElement as _0x348b15,ViewEmptyElement as _0x53fd01,ViewRawElement as _0xdfd34,ViewUIElement as _0x2e2aca,ViewDocumentFragment as _0x1b6ec3}from'ckeditor5/src/engine';import _0x2d5c56 from'./revisionsrepository';import{getTranslation as _0x56dae8}from'./utils/common-translations';import{cloneDeep as _0x4b3567,isEqual as _0x41d495}from'lodash-es';const B={'c':_0x5a9c4e,'a':_0x348b15,'e':_0x53fd01,'r':_0xdfd34,'u':_0x2e2aca};export default class l extends _0x5ca3f8{static get[_0x1b49('0x24')](){return _0x1b49('0xbd');}static get['requires'](){return[_0x410585,_0x2d5c56,_0x42776f];}constructor(_0x413d5a){super(_0x413d5a),this[_0x1b49('0xd1')]=null,this['currentRevision']=null,this[_0x1b49('0x12')]=new H(this['editor']),this[_0x1b49('0x44')]=this[_0x1b49('0x5c')][_0x1b49('0xcb')]['get'](_0x1b49('0xdc'))||_0x1b49('0x8c'),this[_0x1b49('0xc6')]=new Map(),this[_0x1b49('0x7f')]=null;const _0x55927b=_0x16bf9f();this[_0x1b49('0x6e')]={'history':this['editor']['model'][_0x1b49('0x76')][_0x1b49('0x30')],'getLatestVersion':()=>Promise['resolve'](this[_0x1b49('0x5c')]['model']['document'][_0x1b49('0x97')]),'getCurrentRevisionId':()=>_0x55927b},this['set'](_0x1b49('0x59'),!0x1),this[_0x1b49('0xc5')](_0x1b49('0xd0'),!0x0),this[_0x1b49('0xc5')]('_isPendingUpdate',!0x1),this['editor'][_0x1b49('0xcb')][_0x1b49('0x104')](_0x1b49('0xe9'),!0x0),this[_0x1b49('0x5c')][_0x1b49('0x4b')]['for'](_0x1b49('0xe'))[_0x1b49('0xdb')]({'view':_0x1b49('0xd2')});}[_0x1b49('0x3')](){this['repository']=this[_0x1b49('0x5c')]['plugins']['get']('RevisionsRepository'),this[_0x1b49('0xcd')](),this[_0x1b49('0x5c')][_0x1b49('0x5d')]['on'](_0x1b49('0x6d'),()=>{const _0x212dcc=this['repository'][_0x1b49('0xad')](0x0),_0x571aa0=_0x212dcc&&null===_0x212dcc[_0x1b49('0xfa')]?_0x212dcc:null;if(this[_0x1b49('0x94')]=!!_0x571aa0&&this['editor']['config']['get'](_0x1b49('0xe9')),this[_0x1b49('0x5c')][_0x1b49('0xa5')][_0x1b49('0xd')](_0x1b49('0x45'))){const _0x428798=this['_source'][_0x1b49('0xe3')](),_0x4ff3ff=this['repository']['getRevision'](_0x428798);if(_0x4ff3ff)this[_0x1b49('0x5b')]=_0x4ff3ff[_0x1b49('0x11')],this[_0x1b49('0x94')]=!0x1;else{const _0x22ae0d=this[_0x1b49('0x6e')][_0x1b49('0x30')]['_operations'][_0x1b49('0x1e')](_0x43090c=>!_0x43090c[_0x1b49('0x41')]),_0x410845=_0x22ae0d?_0x22ae0d[_0x1b49('0xb6')]:this[_0x1b49('0x6e')][_0x1b49('0x30')]['version'];_0x212dcc?(_0x212dcc[_0x1b49('0x78')]<_0x410845&&_0x212dcc[_0x1b49('0x75')]({'toVersion':_0x410845}),this[_0x1b49('0x94')]?(this[_0x1b49('0x6e')][_0x1b49('0xe3')]=()=>_0x571aa0['id'],this[_0x1b49('0x5b')]=_0x571aa0[_0x1b49('0x11')]):(this[_0x1b49('0x5b')]=_0x212dcc[_0x1b49('0x78')],this['_continueCurrentRevision']=!0x1)):(this[_0x1b49('0x5b')]=_0x410845,this[_0x1b49('0x94')]=!0x1);}}else _0x571aa0&&(this[_0x1b49('0x5c')]['model'][_0x1b49('0x76')][_0x1b49('0x30')][_0x1b49('0x97')]=Math[_0x1b49('0x90')](_0x571aa0[_0x1b49('0x78')],this[_0x1b49('0x5c')][_0x1b49('0x42')][_0x1b49('0x76')][_0x1b49('0x30')][_0x1b49('0x97')]),_0x571aa0[_0x1b49('0x11')]===_0x571aa0[_0x1b49('0x78')]?(0x0!==_0x571aa0[_0x1b49('0x11')]&&(this[_0x1b49('0x6e')]['getCurrentRevisionId']=()=>_0x571aa0['id']),this[_0x1b49('0x94')]=!0x1):this['_continueCurrentRevision']&&(this[_0x1b49('0x6e')][_0x1b49('0xe3')]=()=>_0x571aa0['id'],this[_0x1b49('0x5b')]=_0x571aa0[_0x1b49('0x11')])),this['_continueCurrentRevision']||(this[_0x1b49('0x5b')]=this['editor'][_0x1b49('0x42')]['document']['version']);this['_revisionDataBuilder']['init'](this[_0x1b49('0x6e')][_0x1b49('0x30')]),this['_createInitialRevision'](this[_0x1b49('0x5b')]),this[_0x1b49('0xf3')](this[_0x1b49('0x5b')]),this[_0x1b49('0xd1')]&&this[_0x1b49('0x7c')]();}),this[_0x1b49('0x52')]('isReady')['to'](this,_0x1b49('0xee'),_0xd17749=>!_0xd17749);}async[_0x1b49('0x66')](){if(this['repository'][_0x1b49('0xc9')]>0x0){const _0x2914de=this['repository'][_0x1b49('0xad')](0x0),_0x51da63=await this['getRevisionDocumentData'](_0x2914de),_0x1e519e=await this[_0x1b49('0xfe')](_0x2914de);this['_replaceEditorDataWithRevisionData'](_0x51da63,_0x1e519e);}}['setSource'](_0xd3de6e){this[_0x1b49('0x6e')]=_0xd3de6e;}async[_0x1b49('0x7b')](){const _0x565165=await this[_0x1b49('0x6e')][_0x1b49('0x28')]();if(_0x565165>this[_0x1b49('0x9a')][_0x1b49('0x78')]){await this[_0x1b49('0x6')]();const _0x38c242=this[_0x1b49('0x71')]({'revision':this[_0x1b49('0x9a')],'to':_0x565165});_0x38c242[_0x1b49('0x2a')]=_0x38c242[_0x1b49('0xbe')][_0x1b49('0x92')](_0x5b4323=>this['editor'][_0x1b49('0xa5')]['get'](_0x1b49('0x2'))[_0x1b49('0x2b')](_0x5b4323)),this[_0x1b49('0x9a')]['_update'](_0x38c242);}}async[_0x1b49('0x6')](){this[_0x1b49('0x94')]&&!this[_0x1b49('0x7f')]&&(await this['_loadRevisionData'](this['currentRevision']),this[_0x1b49('0x12')][_0x1b49('0x57')](this[_0x1b49('0x9a')]),this[_0x1b49('0x7f')]={'fromVersion':this[_0x1b49('0x9a')][_0x1b49('0x11')],'authors':this[_0x1b49('0x9a')]['authors'][_0x1b49('0x6c')]()});}async[_0x1b49('0x47')](_0x5caa84={},_0x57d699=null){const _0x2d5718=[];await this[_0x1b49('0x6')](),this[_0x1b49('0x94')]=!0x1,_0x57d699>this[_0x1b49('0x9a')]['toVersion']&&(_0x57d699=null),null===_0x57d699&&(_0x57d699=await this[_0x1b49('0x6e')][_0x1b49('0x28')]());const _0x2f19ed=this[_0x1b49('0xf5')](_0x57d699),_0x318350=this['buildRevisionData']({'from':_0x2f19ed,'to':_0x57d699});if(this[_0x1b49('0x9a')]['toVersion']<_0x57d699){const _0x3b2ec6=this[_0x1b49('0x71')]({'revision':this[_0x1b49('0x9a')],'from':_0x57d699,'to':_0x57d699});_0x3b2ec6[_0x1b49('0x2a')]=[],_0x3b2ec6['authorsIds']=[],_0x3b2ec6['id']=this[_0x1b49('0x9a')]['id'],this['currentRevision'][_0x1b49('0x75')](_0x3b2ec6,!0x0),delete _0x3b2ec6['authors'],_0x2d5718[_0x1b49('0xf0')](_0x3b2ec6);}_0x5caa84[_0x1b49('0xb7')]=this[_0x1b49('0x5c')]['plugins'][_0x1b49('0x7')]('Users')['me']['id'],_0x5caa84[_0x1b49('0xc2')]=_0x5caa84['name']||null,_0x5caa84['id']=_0x5caa84['id']||_0x16bf9f(),_0x5caa84={..._0x5caa84,..._0x318350};const _0x569c5c=this['addRevisionData'](_0x5caa84);_0x2d5718[_0x1b49('0xf0')](_0x5caa84);const _0x1474d6=this[_0x1b49('0xd4')][_0x1b49('0x5a')](_0x569c5c);if(0x0!==_0x1474d6){const _0xfcd5e=this[_0x1b49('0xd4')]['getRevision'](_0x1474d6-0x1);if(_0xfcd5e[_0x1b49('0x11')]!==_0x57d699){const _0x51a32f=this[_0x1b49('0x12')][_0x1b49('0x3f')](_0x57d699,_0xfcd5e[_0x1b49('0x78')]),_0x12122a={'id':_0xfcd5e['id'],'diffData':_0x51a32f[_0x1b49('0xfc')],'authorsIds':_0x51a32f['authorsIds'],'authors':_0x51a32f[_0x1b49('0xbe')][_0x1b49('0x92')](_0x194c53=>this['editor'][_0x1b49('0xa5')][_0x1b49('0x7')](_0x1b49('0x2'))[_0x1b49('0x2b')](_0x194c53)),'fromVersion':_0x57d699};_0xfcd5e===this[_0x1b49('0x9a')]&&(_0x12122a[_0x1b49('0x4')]=new Date(_0x5caa84[_0x1b49('0x4')][_0x1b49('0xe2')]()+0xa)),_0xfcd5e[_0x1b49('0x75')](_0x12122a,!0x0),delete _0x12122a[_0x1b49('0x2a')],_0x2d5718[_0x1b49('0xf0')](_0x12122a);}}if(this[_0x1b49('0xd1')]){for(const _0x47425a of _0x2d5718)this[_0x1b49('0xd6')](_0x47425a['id'],_0x47425a,!0x0);this['sendBufferedUpdates']();}return _0x569c5c;}[_0x1b49('0x40')](_0x1bf730){const _0x229fdd=this[_0x1b49('0xd4')][_0x1b49('0x86')](_0x1bf730);return this[_0x1b49('0xd1')]&&_0x229fdd['on'](_0x1b49('0x75'),(_0x49ca5d,_0x5c42f0,_0x5c80a8)=>{_0x5c80a8||(this['_bufferUpdate'](_0x5c42f0['id'],_0x5c42f0,!0x0),this[_0x1b49('0x7c')]());}),this[_0x1b49('0xd4')][_0x1b49('0x9e')](_0x229fdd,this[_0x1b49('0x62')](_0x229fdd)),_0x229fdd;}async[_0x1b49('0x81')](_0xfe5265){await this[_0x1b49('0x1d')](_0xfe5265);const _0x13667d={};for(const _0x29d552 in _0xfe5265[_0x1b49('0xfc')]){if(_0xfe5265['diffData'][_0x29d552][_0x1b49('0xf1')]&&!_0xfe5265[_0x1b49('0xfc')][_0x29d552][_0x1b49('0xf1')]['isAttached'])continue;const _0x141bcd=this[_0x1b49('0x37')](JSON['parse'](_0xfe5265[_0x1b49('0xfc')][_0x29d552][_0x1b49('0xd5')])),_0x4a1abd=this[_0x1b49('0x5c')]['editing'][_0x1b49('0x103')][_0x1b49('0x76')],_0x3c4ce1=new _0x1b6ec3(_0x4a1abd,_0x141bcd[_0x1b49('0x92')](_0x48c7e6=>J(_0x48c7e6,this[_0x1b49('0x5c')])));this[_0x1b49('0x5c')][_0x1b49('0x5d')][_0x1b49('0x8b')][_0x1b49('0x101')](_0x1b49('0xd8')),_0x13667d[_0x29d552]=this[_0x1b49('0x5c')]['data'][_0x1b49('0x8b')][_0x1b49('0x50')](_0x3c4ce1),this[_0x1b49('0x5c')][_0x1b49('0x5d')][_0x1b49('0x8b')][_0x1b49('0x101')](_0x1b49('0xf6'));}return _0x13667d;}async[_0x1b49('0xfe')](_0x2e348a){await this[_0x1b49('0x1d')](_0x2e348a);const _0x1b43f5={};for(const _0x33ae1c in _0x2e348a['diffData'])_0x2e348a[_0x1b49('0xfc')][_0x33ae1c][_0x1b49('0xf1')]&&!_0x2e348a[_0x1b49('0xfc')][_0x33ae1c]['attachChange'][_0x1b49('0xca')]||(_0x1b43f5[_0x33ae1c]=_0x2e348a[_0x1b49('0xfc')][_0x33ae1c]['attributesAfter']||{});return _0x1b43f5;}[_0x1b49('0x7c')](){if(0x0===this[_0x1b49('0xc6')][_0x1b49('0x105')])return;if(this[_0x1b49('0xee')])return;let _0x1eb7e0=Array[_0x1b49('0x61')](this[_0x1b49('0xc6')]['values']());this[_0x1b49('0xc6')]['clear']();for(let _0x45849d=0x0;_0x45849d<_0x1eb7e0[_0x1b49('0xc9')];_0x45849d++){const _0x1cd87b=_0x1eb7e0[_0x45849d];let _0x3a4cd9=!0x1;for(const _0x387c05 of Object[_0x1b49('0xef')](_0x1cd87b))void 0x0===_0x1cd87b[_0x387c05]?delete _0x1cd87b[_0x387c05]:'id'!==_0x387c05&&(_0x3a4cd9=!0x0);_0x3a4cd9||(_0x1eb7e0[_0x45849d]=null);}if(_0x1eb7e0=_0x1eb7e0[_0x1b49('0x106')](_0x3d1d9b=>null!==_0x3d1d9b),!_0x1eb7e0[_0x1b49('0xc9')])return;for(let _0x348667=0x0;_0x348667<_0x1eb7e0[_0x1b49('0xc9')];_0x348667++){const _0x1fc836=_0x1eb7e0[_0x348667];void 0x0!==_0x1fc836['fromVersion']&&void 0x0===_0x1fc836[_0x1b49('0x78')]&&(_0x1fc836['toVersion']=this[_0x1b49('0xd4')][_0x1b49('0xad')](_0x1fc836['id'])[_0x1b49('0x78')]),void 0x0!==_0x1fc836['toVersion']&&void 0x0===_0x1fc836[_0x1b49('0x11')]&&(_0x1fc836[_0x1b49('0x11')]=this[_0x1b49('0xd4')][_0x1b49('0xad')](_0x1fc836['id'])[_0x1b49('0x11')]);}const _0x5566d9=this[_0x1b49('0x5c')][_0x1b49('0xcb')]['get']('collaboration.channelId');this[_0x1b49('0xee')]=!0x0,this[_0x1b49('0x8')](),this[_0x1b49('0xd1')]['updateRevisions'](_0x1eb7e0,_0x5566d9)[_0x1b49('0x100')](()=>{this[_0x1b49('0xee')]=!0x1;})[_0x1b49('0x82')](_0x1a9629=>{if(_0x1a9629)for(const _0x1f32b4 of _0x1a9629)this[_0x1b49('0xb9')]({'id':_0x1f32b4['id'],'createdAt':_0x1f32b4[_0x1b49('0x4')]});this['_removePendingAction'](),this[_0x1b49('0x7c')]();});}[_0x1b49('0x2f')](_0x11e2aa,_0xeaa805){let _0x1ad29b=this['editor'][_0x1b49('0xcb')][_0x1b49('0x7')](_0x1b49('0xc4')),_0x554df5=this[_0x1b49('0x5c')][_0x1b49('0xcb')][_0x1b49('0x7')](_0x1b49('0xc1'));if(void 0x0===_0x1ad29b){_0x1ad29b={};for(const _0x40a410 of this[_0x1b49('0x5c')][_0x1b49('0x42')][_0x1b49('0x76')][_0x1b49('0x84')]())_0x1ad29b[_0x40a410]='';}if(_0x1b49('0xf9')==typeof _0x1ad29b&&(_0x1ad29b={'main':_0x1ad29b}),void 0x0===_0x554df5){_0x554df5={};for(const _0x4d7d0e of this['editor'][_0x1b49('0x42')]['document'][_0x1b49('0x84')]())_0x554df5[_0x4d7d0e]={};}let _0x4afe3a=!0x1;const _0x4c46f8=Object[_0x1b49('0xef')](_0x1ad29b),_0x360347=Object[_0x1b49('0xef')](_0x11e2aa);for(const _0x465ce1 of _0x4c46f8){if(_0x1ad29b[_0x465ce1]!==_0x11e2aa[_0x465ce1]&&''!==_0x1ad29b[_0x465ce1][_0x1b49('0xba')]()){_0x4afe3a=!0x0;break;}if(!_0x41d495(_0x554df5[_0x465ce1],_0xeaa805[_0x465ce1])&&Object[_0x1b49('0xef')](_0x554df5[_0x465ce1])[_0x1b49('0xc9')]>0x0){_0x4afe3a=!0x0;break;}}_0x4afe3a||(_0x4afe3a=_0x360347[_0x1b49('0x64')](_0x5d3c76=>!this[_0x1b49('0x5c')][_0x1b49('0x42')][_0x1b49('0x76')][_0x1b49('0xff')](_0x5d3c76))),_0x4afe3a&&_0x486473(_0x1b49('0xea'),{'editorData':_0x1ad29b,'editorRootsAttributes':_0x554df5,'revisionData':_0x11e2aa,'revisionRootsAttributes':_0xeaa805}),this[_0x1b49('0x5c')][_0x1b49('0xcb')][_0x1b49('0xc5')]('initialData',_0x11e2aa),this[_0x1b49('0x5c')][_0x1b49('0xcb')][_0x1b49('0xc5')]('rootsAttributes',_0xeaa805);}[_0x1b49('0x8')](){if(!this[_0x1b49('0xa9')]){const _0x327c87=this[_0x1b49('0x5c')][_0x1b49('0xa5')][_0x1b49('0x7')](_0x1b49('0x27'));this[_0x1b49('0xa9')]=_0x327c87[_0x1b49('0x9b')](_0x56dae8(this['editor'][_0x1b49('0x29')],_0x1b49('0x69')));}}[_0x1b49('0x56')](){this[_0x1b49('0xa9')]&&(this[_0x1b49('0x5c')][_0x1b49('0xa5')][_0x1b49('0x7')](_0x1b49('0x27'))[_0x1b49('0x18')](this['_pendingAction']),this['_pendingAction']=null);}[_0x1b49('0x62')](_0x32d651){const _0x3912df=this[_0x1b49('0xd4')][_0x1b49('0x20')]();_0x3912df['reverse']();let _0x4d57c2=0x0;for(;_0x4d57c2<_0x3912df[_0x1b49('0xc9')];){const _0x2691f1=_0x3912df[_0x4d57c2];if(_0x2691f1===this[_0x1b49('0x9a')]){_0x4d57c2++;continue;}if(_0x2691f1['id']===this['_initialRevisionId'])break;const _0x1dadd5=_0x32d651[_0x1b49('0x78')]-_0x2691f1['toVersion']||_0x32d651[_0x1b49('0x11')]-_0x2691f1[_0x1b49('0x11')];if(_0x1dadd5>0x0)break;if(_0x1dadd5<0x0)_0x4d57c2++;else{if(!_0x32d651['creator']&&_0x2691f1[_0x1b49('0xfa')])break;if(_0x2691f1[_0x1b49('0xfa')]||!_0x32d651['creator']){if(_0x32d651[_0x1b49('0x4')]>_0x2691f1['createdAt'])break;_0x4d57c2++;}else _0x4d57c2++;}}return _0x4d57c2;}[_0x1b49('0xb9')](_0x486252){const _0x299fff=this[_0x1b49('0xd4')][_0x1b49('0xad')](_0x486252['id']);if(_0x486252[_0x1b49('0x4')]&&(_0x486252[_0x1b49('0x4')]=new Date(_0x486252[_0x1b49('0x4')])),_0x486252[_0x1b49('0xbe')]){const _0x2e6d17=this['editor']['plugins']['get'](_0x1b49('0x2'));_0x486252[_0x1b49('0x2a')]=_0x486252['authorsIds'][_0x1b49('0x92')](_0x784764=>_0x2e6d17[_0x1b49('0x2b')](_0x784764));}_0x299fff['_update'](_0x486252,!0x0);}[_0x1b49('0x71')]({revision:_0x1eadda=null,from:_0x4066d3=null,to:_0x885c6c=null}){_0x4066d3=null!==_0x4066d3?_0x4066d3:_0x1eadda['fromVersion'],_0x885c6c=null!==_0x885c6c?_0x885c6c:_0x1eadda[_0x1b49('0x78')];const _0x5580be=this[_0x1b49('0x12')][_0x1b49('0x3f')](_0x4066d3,_0x885c6c),_0x51ed2b={'diffData':_0x5580be['diffData'],'authorsIds':_0x5580be[_0x1b49('0xbe')],'fromVersion':_0x4066d3,'toVersion':_0x885c6c};if(!_0x1eadda||_0x885c6c!==_0x1eadda[_0x1b49('0x78')]){const _0x1d3fa5=_0x885c6c-0x1,_0x441d84=this[_0x1b49('0x6e')]['history'][_0x1b49('0x36')](_0x1d3fa5);_0x51ed2b[_0x1b49('0x4')]=_0x441d84&&_0x441d84[_0x1b49('0x4')]||new Date();}if(this[_0x1b49('0x7f')]&&_0x4066d3===this['_loadedStateData'][_0x1b49('0x11')])for(const _0x34b0e7 of this['_loadedStateData'][_0x1b49('0x2a')])_0x51ed2b[_0x1b49('0xbe')]['includes'](_0x34b0e7['id'])||_0x51ed2b['authorsIds'][_0x1b49('0xf0')](_0x34b0e7['id']);return _0x51ed2b;}[_0x1b49('0x1d')](_0x3a793a){if(!_0x3a793a||_0x3a793a[_0x1b49('0xfc')])return Promise[_0x1b49('0x3e')]();{const _0x16d54b=this['editor']['config'][_0x1b49('0x7')](_0x1b49('0xdc'));return this[_0x1b49('0xd1')][_0x1b49('0xad')]({'channelId':_0x16d54b,'revisionId':_0x3a793a['id']})[_0x1b49('0x82')](_0x3ed036=>{_0x3a793a[_0x1b49('0xfc')]=_0x3ed036[_0x1b49('0xfc')];});}}[_0x1b49('0xd6')](_0x42b206,_0x398a09,_0x2e1ec3){if(this['_bufferedUpdates'][_0x1b49('0xd')](_0x42b206)){const _0x4e9699=this[_0x1b49('0xc6')][_0x1b49('0x7')](_0x42b206);_0x398a09=_0x2e1ec3?{..._0x4e9699,..._0x398a09}:{..._0x398a09,..._0x4e9699};}this[_0x1b49('0xc6')]['set'](_0x42b206,_0x398a09);}[_0x1b49('0xf5')](_0x127f25){const _0x3d569a=this[_0x1b49('0xd4')]['getRevisions']();_0x3d569a['reverse'](),_0x3d569a[_0x1b49('0xe4')]();const _0x5c4fa8=_0x3d569a['find'](_0xa8fcf6=>_0xa8fcf6[_0x1b49('0x78')]<=_0x127f25)[_0x1b49('0x78')];return _0x5c4fa8<this[_0x1b49('0x5b')]?this[_0x1b49('0x5b')]:_0x5c4fa8;}[_0x1b49('0xbc')](_0x215538){const _0xd1f110=this[_0x1b49('0xd4')][_0x1b49('0xad')](this[_0x1b49('0xd4')][_0x1b49('0xc9')]-0x1);if(_0xd1f110)this[_0x1b49('0x44')]=_0xd1f110['id'];else{const _0x591e80=!this[_0x1b49('0x5c')]['model'][_0x1b49('0x76')][_0x1b49('0xc7')][_0x1b49('0x1e')](_0x3e27d8=>this[_0x1b49('0x5c')][_0x1b49('0x42')][_0x1b49('0xb')](_0x3e27d8)),_0x5ee601=this[_0x1b49('0x5c')]['plugins'][_0x1b49('0x7')](_0x1b49('0x2'))['me']['id'],_0x55132d=_0x56dae8(this['editor']['locale'],_0x591e80?'Empty\x20document':'Initial\x20revision');this[_0x1b49('0xf7')]({'from':_0x215538,'to':_0x215538,'id':this[_0x1b49('0x44')],'name':_0x55132d,'creatorId':_0x5ee601});}}['_createCurrentRevision'](_0x1bc208){const _0x2d438f=this[_0x1b49('0x6e')][_0x1b49('0xe3')]();this[_0x1b49('0x9a')]=this[_0x1b49('0xd4')]['getRevision'](_0x2d438f),this['currentRevision']||(this[_0x1b49('0x9a')]=this['_makeRevision']({'from':_0x1bc208,'to':_0x1bc208,'id':_0x2d438f,'name':'','creatorId':null}));}[_0x1b49('0xf7')]({name:_0x7028ef,from:_0x496103,to:_0x1603c4,creatorId:_0x4f69a7,id:_0x3f793f}){const _0x1cc02f=this[_0x1b49('0x71')]({'from':_0x496103,'to':_0x1603c4});_0x1cc02f[_0x1b49('0xc2')]=_0x7028ef,_0x1cc02f[_0x1b49('0xb7')]=_0x4f69a7,_0x1cc02f['id']=_0x3f793f;const _0x2eb1d2=this[_0x1b49('0x40')](_0x1cc02f);return this[_0x1b49('0xd1')]&&this[_0x1b49('0xd6')](_0x1cc02f['id'],_0x1cc02f,!0x0),_0x2eb1d2;}[_0x1b49('0xcd')](){this['editor'][_0x1b49('0x4b')]['for'](_0x1b49('0x4c'))['markerToData']({'model':_0x1b49('0xd2')});}['_removeRevisionMarkers'](_0x8c03be){return(_0x8c03be=_0x8c03be[_0x1b49('0x106')](_0x428172=>!_0x428172[_0x1b49('0xc2')]||_0x1b49('0x34')!==_0x428172[_0x1b49('0xc2')]&&_0x1b49('0x5e')!==_0x428172[_0x1b49('0xc2')]))[_0x1b49('0xc3')](_0x285eb8=>{_0x1b49('0xf9')!=typeof _0x285eb8&&(_0x285eb8[_0x1b49('0xda')]=this[_0x1b49('0x37')](_0x285eb8[_0x1b49('0xda')]),_0x285eb8[_0x1b49('0xd9')]=_0x285eb8[_0x1b49('0xd9')][_0x1b49('0x106')](_0x196860=>!_0x196860[0x0][_0x1b49('0x109')](_0x1b49('0x6b'))));}),_0x8c03be;}}function J(_0x438dd2,_0x1f2a9f){const _0x2dac47=_0x1f2a9f[_0x1b49('0x4a')]['view'][_0x1b49('0x76')];if(_0x1b49('0xf9')==typeof _0x438dd2)return new _0x50d6bf(_0x2dac47,_0x438dd2);{const _0x3146a3=_0x438dd2[_0x1b49('0xda')]['map'](_0xb0fda4=>J(_0xb0fda4,_0x1f2a9f));return new(B[_0x438dd2[(_0x1b49('0x48'))]]||_0xbff4c3)(_0x2dac47,_0x438dd2[_0x1b49('0xc2')],_0x438dd2[_0x1b49('0xd9')],_0x3146a3);}}class H{constructor(_0x3b96d8){this[_0x1b49('0x5c')]=_0x3b96d8,this[_0x1b49('0x68')]=new Map(),this['_lastFrom']=-0x1,this[_0x1b49('0xc')]=-0x1,this['_markers']=new Map(),this[_0x1b49('0xa6')]=new Map(),this[_0x1b49('0x53')]=new Map(),this[_0x1b49('0x16')]=new Map(),this[_0x1b49('0xb4')]=new Map(),this['_idsRoots']=new Map(),this[_0x1b49('0x46')]=new Map(),this[_0x1b49('0x23')]=new Map(),this[_0x1b49('0x7a')]=new Map(),this['_touchedRoots']=new Map(),this[_0x1b49('0xbf')]=0x1;}['init'](_0x21cd98){this[_0x1b49('0x3b')]=_0x21cd98;const _0x40a0fe=new Map(),_0x589e6c=new Map(),_0x45f0eb=this['editor']['model']['document'][_0x1b49('0xc7')][_0x1b49('0x92')](_0x122208=>_0x122208[_0x1b49('0x8a')]);for(const _0x9531a6 of _0x45f0eb){const _0x2afc1a=this[_0x1b49('0x5c')]['model'][_0x1b49('0x76')][_0x1b49('0xff')](_0x9531a6),_0x4f5d5a=q(_0x2afc1a);_0x40a0fe[_0x1b49('0xc5')](_0x9531a6,_0x4f5d5a),_0x589e6c[_0x1b49('0xc5')](_0x9531a6,Object[_0x1b49('0xf8')](_0x2afc1a[_0x1b49('0x15')]()));}const _0x2696bf=Array[_0x1b49('0x61')](this[_0x1b49('0x5c')][_0x1b49('0x42')][_0x1b49('0x65')])['map'](_0x24f4d2=>[_0x24f4d2['name'],_0x24f4d2[_0x1b49('0x58')]()]),_0xc6cdd5=this[_0x1b49('0x3b')][_0x1b49('0x97')];this['_saveMetaData'](_0xc6cdd5,_0x40a0fe,_0x2696bf,_0x589e6c),this[_0x1b49('0xf')]=this[_0x1b49('0xbf')];const _0x23026e=new Map(),_0x154758=new Map();for(const _0x282406 of _0x45f0eb){const _0x24ca40=G(_0x282406);_0x23026e[_0x1b49('0xc5')](_0x282406,_0x24ca40),_0x154758[_0x1b49('0xc5')](_0x282406,{});}this['_saveMetaData'](Number[_0x1b49('0x89')],_0x23026e,[],_0x154758);}[_0x1b49('0x3f')](_0x328198,_0x307aa0){if(this[_0x1b49('0x2e')]===_0x328198&&this[_0x1b49('0xc')]<=_0x307aa0)this[_0x1b49('0x68')][_0x1b49('0x105')]>0x1&&this[_0x1b49('0x70')](this[_0x1b49('0xc')]),this['_applyOperations'](this['_lastTo'],_0x307aa0,!0x0);else{if(!this[_0x1b49('0x68')][_0x1b49('0xd')](_0x328198)){const _0x430830=this['_getPreviousFrom'](_0x328198);this[_0x1b49('0x3d')](_0x430830,_0x328198,!0x1);}this[_0x1b49('0x3d')](_0x328198,_0x307aa0,!0x0);}return this[_0x1b49('0x2e')]=_0x328198,this[_0x1b49('0xc')]=_0x307aa0,this[_0x1b49('0xf4')]();}[_0x1b49('0x57')](_0x11d58e){this['_reset'](),this[_0x1b49('0x2e')]=_0x11d58e[_0x1b49('0x11')],this[_0x1b49('0xc')]=_0x11d58e[_0x1b49('0x78')];for(const _0x4a40f8 in _0x11d58e['diffData']){const _0x12738b=_0x11d58e[_0x1b49('0xfc')][_0x4a40f8][_0x1b49('0xf1')],_0xfdbd48=_0x4b3567(_0x11d58e['diffData'][_0x4a40f8][_0x1b49('0xa1')])||{},_0x569feb=this['_makeModelFromViewString'](_0x11d58e[_0x1b49('0xfc')][_0x4a40f8][_0x1b49('0x19')]);_0x569feb[_0x1b49('0x8a')]=_0x4a40f8,_0x569feb[_0x1b49('0x7e')]=!_0x12738b||!_0x12738b[_0x1b49('0xca')],_0x569feb[_0x1b49('0xca')]=()=>_0x569feb['_isAttached'],this['_baseRoots']['set'](_0x4a40f8,_0x569feb),this[_0x1b49('0xb4')][_0x1b49('0xc5')](_0x4a40f8,_0xfdbd48),_0x12738b&&this['_touchedRoots'][_0x1b49('0xc5')](_0x4a40f8,_0x12738b);const _0x412860=this['_makeIdsRoot'](_0x569feb);this[_0x1b49('0x46')][_0x1b49('0xc5')](_0x4a40f8,_0x412860);for(const [_0x19a353,_0x58abbc]of _0x569feb[_0x1b49('0x65')]){if(!_0x19a353[_0x1b49('0x109')](_0x1b49('0xfd')))continue;const _0x2f2061=_0x19a353[_0x1b49('0x6f')](':')[0x2];for(const _0x3582be of _0x58abbc[_0x1b49('0x9f')]({'singleCharacters':!0x0})){const _0x9d6e92=this['_getVidAttributeName'](_0x3582be),_0x36920b=_0x1b49('0x95')==_0x3582be[_0x1b49('0x48')]?_0x3582be[_0x1b49('0xb3')]['path'][_0x1b49('0x6c')](0x0,-0x1):_0x3582be[_0x1b49('0xb3')][_0x1b49('0x1a')],_0x419ca4=_0x412860['getNodeByPath'](_0x36920b)[_0x1b49('0x51')](_0x9d6e92);this[_0x1b49('0x23')][_0x1b49('0xc5')](_0x419ca4,{'userId':_0x2f2061});}}}this[_0x1b49('0xf')]=this['_revisionId'];const _0x4823c8=[...Array(this['_revisionId'])[_0x1b49('0xef')]()]['slice'](0x1)[_0x1b49('0x106')](_0x1377cc=>!this[_0x1b49('0x23')][_0x1b49('0xd')](_0x1377cc));let _0x5767fa=0x0;const _0x3db80a=new Map();for(const _0x5c5553 in _0x11d58e[_0x1b49('0xfc')]){const _0x41fe06=_0x11d58e[_0x1b49('0xfc')][_0x5c5553][_0x1b49('0xf1')],_0x1b9a9d=_0x4b3567(_0x11d58e[_0x1b49('0xfc')][_0x5c5553][_0x1b49('0x8e')])||{},_0x5d1b34=this[_0x1b49('0x1')](_0x11d58e['diffData'][_0x5c5553]['insertions']);_0x5d1b34['rootName']=_0x5c5553,_0x5d1b34[_0x1b49('0x7e')]=!_0x41fe06||_0x41fe06['isAttached'],_0x5d1b34[_0x1b49('0xca')]=()=>_0x5d1b34[_0x1b49('0x7e')],this[_0x1b49('0xa6')]['set'](_0x5c5553,_0x5d1b34),this[_0x1b49('0x53')]['set'](_0x5c5553,_0x1b9a9d);const _0x56a628=this[_0x1b49('0x79')](_0x5d1b34,Number[_0x1b49('0x89')]);this[_0x1b49('0x35')][_0x1b49('0xc5')](_0x5c5553,_0x56a628),_0x3db80a[_0x1b49('0xc5')](_0x5c5553,_0x5d1b34[_0x1b49('0xca')]()?_0x1b9a9d:{});for(const [_0x4d19dd,_0xbbe8cc]of _0x5d1b34[_0x1b49('0x65')]){if(!_0x4d19dd['startsWith']('revision:'))continue;const _0xfb3e2d=_0x4d19dd['split'](':')[0x2];for(const _0x3c0c5a of _0xbbe8cc['getWalker']({'singleCharacters':!0x0})){const _0x16af4a=this[_0x1b49('0xaf')](_0x3c0c5a),_0x3891bd=this[_0x1b49('0xbf')]++,_0x2bbb18='elementEnd'==_0x3c0c5a['type']?_0x3c0c5a[_0x1b49('0xb3')]['path'][_0x1b49('0x6c')](0x0,-0x1):_0x3c0c5a[_0x1b49('0xb3')]['path'];_0x56a628[_0x1b49('0x3a')](_0x2bbb18)[_0x1b49('0x98')](_0x16af4a,_0x3891bd),this[_0x1b49('0x23')][_0x1b49('0xc5')](_0x3891bd,{'userId':_0xfb3e2d});}}for(const _0xb4e4a3 of this[_0x1b49('0x5c')][_0x1b49('0x42')][_0x1b49('0x99')](_0x5d1b34)['getWalker']({'singleCharacters':!0x0})){const _0x3f0944=this['_getVidAttributeName'](_0xb4e4a3),_0x736736=_0x1b49('0x95')==_0xb4e4a3[_0x1b49('0x48')]?_0xb4e4a3['previousPosition'][_0x1b49('0x1a')][_0x1b49('0x6c')](0x0,-0x1):_0xb4e4a3[_0x1b49('0xb3')][_0x1b49('0x1a')],_0x33ab3a=_0x56a628[_0x1b49('0x3a')](_0x736736);_0x33ab3a[_0x1b49('0x51')](_0x3f0944)>0x0||_0x33ab3a[_0x1b49('0x98')](_0x3f0944,_0x4823c8[_0x5767fa++]);}for(const [_0x21794a,_0x5acb67]of _0x5d1b34[_0x1b49('0x65')])_0x21794a[_0x1b49('0x109')](_0x1b49('0xfd'))||this[_0x1b49('0x31')]['set'](_0x21794a,_0x5acb67);}const _0x43a2d1=G(_0x1b49('0xa2'));this[_0x1b49('0x16')][_0x1b49('0xc5')](_0x1b49('0xa2'),_0x43a2d1),this['_baseIdsRoots']['set'](_0x1b49('0xa2'),this['_makeIdsRoot'](_0x43a2d1,0x1));const _0x40af92=G('$graveyard');this[_0x1b49('0xa6')][_0x1b49('0xc5')](_0x1b49('0xa2'),_0x40af92),this[_0x1b49('0x35')]['set'](_0x1b49('0xa2'),this[_0x1b49('0x79')](_0x40af92,0x1));const _0x5ed5e3=Array[_0x1b49('0x61')](this['_diffRoots'])[_0x1b49('0x92')](([_0xa112e0,_0x54add0])=>[_0xa112e0,q(_0x54add0)]);this[_0x1b49('0xe6')](this['_lastTo'],_0x5ed5e3,this[_0x1b49('0x31')],_0x3db80a);}[_0x1b49('0x1')](_0x4df32b){const _0x4b916a=JSON['parse'](_0x4df32b),_0x91076f=this[_0x1b49('0x5c')]['editing'][_0x1b49('0x103')][_0x1b49('0x76')],_0x2c611b=new _0x1b6ec3(_0x91076f,_0x4b916a['map'](_0x1d5e07=>J(_0x1d5e07,this[_0x1b49('0x5c')])));return this[_0x1b49('0x5c')][_0x1b49('0x5d')][_0x1b49('0x77')](_0x2c611b);}['_saveMetaData'](_0x4ff472,_0x1d1200,_0x243956,_0x1ec451){const _0x466219=new Map(_0x1d1200),_0x59d2fb=new Map(_0x4b3567(_0x1ec451)),_0x476e9d=new Map();for(const [_0x39d73e,_0xe65721]of _0x243956)_0x476e9d['set'](_0x39d73e,{'start':_0xe65721[_0x1b49('0x49')][_0x1b49('0xae')](),'end':_0xe65721[_0x1b49('0x8f')]['clone'](),'rootName':_0xe65721[_0x1b49('0x2d')][_0x1b49('0x8a')]});this[_0x1b49('0x68')]['set'](_0x4ff472,{'roots':_0x466219,'markers':_0x476e9d,'rootsAttributes':_0x59d2fb});}[_0x1b49('0x70')](_0x4104da){this['_savedMetaData']['delete'](_0x4104da);}['reInit'](){this[_0x1b49('0xe7')](),this[_0x1b49('0x2e')]=-0x1,this[_0x1b49('0xc')]=-0x1,this[_0x1b49('0x68')][_0x1b49('0x13')](),this[_0x1b49('0x3')](this[_0x1b49('0x3b')]);}[_0x1b49('0xe7')](){this[_0x1b49('0x23')][_0x1b49('0x13')](),this[_0x1b49('0x7a')][_0x1b49('0x13')](),this[_0x1b49('0xfb')][_0x1b49('0x13')](),this[_0x1b49('0xa6')][_0x1b49('0x13')](),this['_diffRootsAttributes'][_0x1b49('0x13')](),this[_0x1b49('0x16')][_0x1b49('0x13')](),this['_baseRootsAttributes'][_0x1b49('0x13')](),this[_0x1b49('0x35')][_0x1b49('0x13')](),this[_0x1b49('0x46')][_0x1b49('0x13')](),this['_markers'][_0x1b49('0x13')](),this[_0x1b49('0xbf')]=0x1,this[_0x1b49('0xf')]=this[_0x1b49('0xbf')];}[_0x1b49('0x79')](_0x5c33db,_0xc9b9b6=null){let _0x59ff99=null;_0x5c33db['is']('documentFragment')||(_0x59ff99=new _0x46b245(_0x5c33db[_0x1b49('0xc2')],{'vid_start':null===_0xc9b9b6?this[_0x1b49('0xbf')]++:_0xc9b9b6++}));const _0x419b0f=[];for(const _0x52ee16 of _0x5c33db[_0x1b49('0x1c')]())if(_0x52ee16['is'](_0x1b49('0xb2'))){_0x419b0f['push'](this['_makeIdsRoot'](_0x52ee16,_0xc9b9b6));const _0x46f8df=_0x419b0f[_0x419b0f[_0x1b49('0xc9')]-0x1];null!==_0xc9b9b6&&(_0xc9b9b6=_0x46f8df['is']('element',_0x1b49('0x22'))?_0x46f8df[_0x1b49('0x51')]('vid')+0x1:_0x46f8df['getAttribute']('vid_end')+0x1);}else for(let _0xe2d355=0x0;_0xe2d355<_0x52ee16[_0x1b49('0x54')];_0xe2d355++)_0x419b0f[_0x1b49('0xf0')](new _0x46b245(_0x1b49('0x22'),{'vid':null===_0xc9b9b6?this[_0x1b49('0xbf')]++:_0xc9b9b6++}));if(_0x5c33db['is'](_0x1b49('0x25'))){const _0x14fe75=G(_0x5c33db[_0x1b49('0x8a')]);return _0x14fe75[_0x1b49('0xa0')](0x0,_0x419b0f),_0x14fe75;}return _0x59ff99['_setAttribute'](_0x1b49('0x107'),null===_0xc9b9b6?this[_0x1b49('0xbf')]++:_0xc9b9b6++),_0x59ff99[_0x1b49('0xa0')](0x0,_0x419b0f),_0x59ff99;}[_0x1b49('0x3d')](_0x45aa47,_0x4fbd5f,_0x798305){this[_0x1b49('0xe7')]();const {roots:_0x3496e4,markers:_0x3a609f,rootsAttributes:_0x152072}=this[_0x1b49('0x68')]['get'](_0x45aa47);this[_0x1b49('0x16')]=new Map(_0x3496e4),this[_0x1b49('0xb4')]=new Map(_0x4b3567(_0x152072));for(const [_0x1250d7,_0x485f0a]of this['_baseRoots'])if('$graveyard'!==_0x1250d7&&(this['_diffRoots']['set'](_0x1250d7,q(_0x485f0a)),this['_diffRootsAttributes']=new Map(_0x4b3567(_0x152072)),_0x798305)){const _0x545e13=this[_0x1b49('0xbf')];this[_0x1b49('0x35')]['set'](_0x1250d7,this['_makeIdsRoot'](_0x485f0a)),this['_baseIdsRoots'][_0x1b49('0xc5')](_0x1250d7,this[_0x1b49('0x79')](_0x485f0a,_0x545e13));}this[_0x1b49('0xf')]=this[_0x1b49('0xbf')],this['_diffRoots'][_0x1b49('0xc5')](_0x1b49('0xa2'),q(this[_0x1b49('0x16')][_0x1b49('0x7')]('$graveyard'))),_0x798305&&this[_0x1b49('0x35')][_0x1b49('0xc5')](_0x1b49('0xa2'),this[_0x1b49('0x79')](this[_0x1b49('0x16')][_0x1b49('0x7')](_0x1b49('0xa2'))));for(const [_0x30899e,_0x3c608c]of _0x3a609f){const _0x88124c=this[_0x1b49('0x16')]['get'](_0x3c608c[_0x1b49('0x8a')]),_0x382225=this[_0x1b49('0xa6')]['get'](_0x3c608c['rootName']),_0x5e930a=new _0x1948b6(this[_0x1b49('0x67')](_0x3c608c[_0x1b49('0x49')],_0x88124c),this[_0x1b49('0x67')](_0x3c608c[_0x1b49('0x8f')],_0x88124c)),_0x5d7ae3=this['_fixRange'](_0x5e930a,_0x382225);_0x88124c[_0x1b49('0x65')][_0x1b49('0xc5')](_0x30899e,_0x5e930a),this[_0x1b49('0x31')][_0x1b49('0xc5')](_0x30899e,_0x5d7ae3);}this[_0x1b49('0x32')](_0x45aa47,_0x4fbd5f,_0x798305);}[_0x1b49('0x32')](_0x157654,_0x35a3aa,_0x189dc7){for(const _0x3cb262 of this[_0x1b49('0x3b')][_0x1b49('0xe8')](_0x157654,_0x35a3aa))this[_0x1b49('0x63')](_0x3cb262,_0x189dc7);for(const _0x5698df of this[_0x1b49('0xa6')][_0x1b49('0x10')]())_0x5698df[_0x1b49('0x65')]['clear']();for(const [_0xb30bf5,_0x322dda]of this[_0x1b49('0x31')]){this[_0x1b49('0xa6')][_0x1b49('0x7')](_0x322dda[_0x1b49('0x2d')]['rootName'])[_0x1b49('0x65')][_0x1b49('0xc5')](_0xb30bf5,_0x322dda[_0x1b49('0xae')]());}const _0x968f42=new Map(),_0x3d387d=new Map();for(const [_0x206002,_0x49fb7f]of this[_0x1b49('0xa6')])_0x968f42[_0x1b49('0xc5')](_0x206002,q(_0x49fb7f)),_0x3d387d[_0x1b49('0xc5')](_0x206002,this['_diffRootsAttributes'][_0x1b49('0x7')](_0x206002));this['_saveMetaData'](_0x35a3aa,_0x968f42,this[_0x1b49('0x31')],_0x3d387d);}[_0x1b49('0x6a')](_0x43e850){const _0x1f1c00=Array[_0x1b49('0x61')](this[_0x1b49('0x68')][_0x1b49('0xef')]());_0x1f1c00['sort']((_0x115a6a,_0x4730de)=>_0x115a6a-_0x4730de),_0x1f1c00[_0x1b49('0xe5')]();for(const _0x369940 of _0x1f1c00)if(_0x369940<_0x43e850)return _0x369940;return Number[_0x1b49('0x89')];}[_0x1b49('0x43')](_0x14db92,_0xbafe85){const _0x5e2fc2=Array[_0x1b49('0x61')](_0xbafe85[_0x1b49('0x65')])[_0x1b49('0x92')](([_0x51d970,_0x58e627])=>[_0x51d970,this[_0x1b49('0xd3')](_0x58e627,_0x14db92)]);_0x14db92['markers']=new Map(_0x5e2fc2);}[_0x1b49('0xc8')](_0x52ba33){for(const _0x1bd113 of this[_0x1b49('0x31')]['values']()){const _0x2b6b7b=_0x1bd113['getTransformedByOperation'](_0x52ba33),_0x347ab3=_0x1948b6[_0x1b49('0xa8')](_0x2b6b7b);_0x1bd113['start']=_0x347ab3[_0x1b49('0x49')],_0x1bd113[_0x1b49('0x8f')]=_0x347ab3[_0x1b49('0x8f')];}}[_0x1b49('0x63')](_0x30f4b4,_0x53633b){if(_0x1b49('0x9')==_0x30f4b4[_0x1b49('0x48')]||_0x1b49('0x8d')==_0x30f4b4['type'])return void this['_handleRootOperation'](_0x30f4b4,_0x53633b);if(_0x1b49('0x96')==_0x30f4b4[_0x1b49('0x48')]){const _0x98cbe1=_0x30f4b4['position']['root']['rootName'];this['_diffRoots'][_0x1b49('0xd')](_0x98cbe1)||(this['_diffRoots'][_0x1b49('0xc5')](_0x98cbe1,G(_0x98cbe1,!0x0)),this['_diffRootsAttributes'][_0x1b49('0xc5')](_0x98cbe1,{}),_0x53633b&&this['_idsRoots'][_0x1b49('0xc5')](_0x98cbe1,G(_0x98cbe1,!0x0)));}else{if(_0x1b49('0xec')==_0x30f4b4['type']||_0x1b49('0x74')==_0x30f4b4['type']||_0x1b49('0xa3')==_0x30f4b4[_0x1b49('0x48')])return void this[_0x1b49('0x72')](_0x30f4b4);}const _0x40e9e8=this['_cloneOperation'](_0x30f4b4,this['_diffRoots']);if(_0x1b49('0x4d')!==_0x30f4b4[_0x1b49('0x48')]&&(_0x40e9e8['_execute'](),this[_0x1b49('0xc8')](_0x40e9e8)),_0x53633b)switch(_0x40e9e8[_0x1b49('0x48')]){case'insert':this[_0x1b49('0x73')](_0x30f4b4);break;case _0x1b49('0x33'):case _0x1b49('0x18'):case'reinsert':this[_0x1b49('0x9d')](_0x30f4b4);break;case _0x1b49('0xbb'):this[_0x1b49('0x88')](_0x30f4b4);break;case _0x1b49('0x6f'):this['_handleSplitOperation'](_0x30f4b4);break;case _0x1b49('0x4d'):this[_0x1b49('0x5')](_0x30f4b4);}}[_0x1b49('0x1b')](_0x49f3cb,_0x25c5d6){const _0x448036=_0x49f3cb['clone']();return _0x448036[_0x1b49('0xd7')]=_0x49f3cb['_authorId'],this[_0x1b49('0xdd')](_0x448036,_0x25c5d6),_0x448036;}['_getBaseVids'](_0x3ce812){return _0x3ce812[_0x1b49('0x92')](_0xc64e7d=>{const _0x2fed66=this[_0x1b49('0xaf')](_0xc64e7d);return Number(_0xc64e7d[_0x1b49('0xa7')]['getAttribute'](_0x2fed66));});}[_0x1b49('0x93')](_0x4cc702,_0x4636f7){if(_0x4cc702['is']('element',_0x1b49('0x22')))_0x4636f7[_0x1b49('0xf0')]({'item':_0x4cc702,'type':_0x1b49('0xe1')});else{_0x4cc702['is']('element')&&_0x4636f7[_0x1b49('0xf0')]({'item':_0x4cc702,'type':'elementStart'});for(const _0x52a8de of _0x4cc702[_0x1b49('0x1c')]())this['_generateTape'](_0x52a8de,_0x4636f7);_0x4cc702['is'](_0x1b49('0xb2'))&&_0x4636f7[_0x1b49('0xf0')]({'item':_0x4cc702,'type':_0x1b49('0x95')});}return _0x4636f7;}['_getState'](){const _0x402a79=new Map(this[_0x1b49('0x23')]),_0x33a277=new Map(_0x402a79),_0x47188c=new Map(),_0x23fe53={'insertions':{},'deletions':{}},_0x2b8246={'insertions':{},'deletions':{}},_0x50ad0f=new Map(),_0x451ae2=new Set([...this[_0x1b49('0x16')]['keys'](),...this[_0x1b49('0xa6')][_0x1b49('0xef')]()]);_0x451ae2[_0x1b49('0x60')](_0x1b49('0xa2'));for(const _0x44b246 of _0x451ae2){const _0x3285a0=this[_0x1b49('0xa6')][_0x1b49('0x7')](_0x44b246)||G(_0x44b246,!0x1),_0x5587a7=this[_0x1b49('0x16')][_0x1b49('0x7')](_0x44b246)||G(_0x44b246,!0x1);_0x3285a0['isAttached']()||_0x5587a7['isAttached']()?(_0x23fe53[_0x1b49('0xd5')][_0x44b246]=q(_0x3285a0),_0x23fe53[_0x1b49('0x19')][_0x44b246]=q(_0x5587a7),this[_0x1b49('0x43')](_0x23fe53['deletions'][_0x44b246],_0x5587a7),this[_0x1b49('0x43')](_0x23fe53[_0x1b49('0xd5')][_0x44b246],_0x3285a0),_0x2b8246['insertions'][_0x44b246]=this[_0x1b49('0x93')](this[_0x1b49('0x35')][_0x1b49('0x7')](_0x44b246),[]),_0x2b8246['deletions'][_0x44b246]=this[_0x1b49('0x93')](this[_0x1b49('0x46')][_0x1b49('0x7')](_0x44b246)||G(_0x44b246,!0x1),[])):_0x451ae2['delete'](_0x44b246);}for(const _0x46f9fa of _0x451ae2){const _0x2ed20f=_0x2b8246[_0x1b49('0xd5')][_0x46f9fa];for(const _0x13fc3f of _0x2ed20f){const _0x58be88=this[_0x1b49('0xaf')](_0x13fc3f),_0x4a906d=_0x13fc3f[_0x1b49('0xa7')][_0x1b49('0x51')](_0x58be88);_0x33a277[_0x1b49('0x60')](_0x4a906d),_0x4a906d>=this[_0x1b49('0xf')]&&_0x47188c[_0x1b49('0xc5')](_0x4a906d,_0x402a79[_0x1b49('0x7')](_0x4a906d));}}for(const _0x228cd6 of _0x451ae2){const _0x478c84=_0x2b8246[_0x1b49('0xd5')][_0x228cd6],_0x2d9040=this[_0x1b49('0xe0')](_0x2b8246[_0x1b49('0x19')][_0x228cd6]);let _0x1c232e=0x0;for(const _0x1f2895 of _0x478c84){const _0x189acb=this[_0x1b49('0xaf')](_0x1f2895),_0x3580fa=_0x1f2895[_0x1b49('0xa7')]['getAttribute'](_0x189acb);if(!_0x47188c['has'](_0x3580fa)&&!_0x50ad0f[_0x1b49('0xd')](_0x3580fa)){if(_0x33a277[_0x1b49('0xd')](_0x3580fa))_0x1c232e++;else{if(_0x3580fa!=_0x2d9040[_0x1c232e]){const _0xc7c94=_0x402a79[_0x1b49('0x7')](_0x3580fa)||_0x402a79['get'](_0x2d9040[_0x1c232e]);for(;_0x3580fa!=_0x2d9040[_0x1c232e];)_0x33a277[_0x1b49('0xd')](_0x2d9040[_0x1c232e])||(_0x50ad0f[_0x1b49('0xc5')](_0x2d9040[_0x1c232e],_0xc7c94),_0x402a79[_0x1b49('0xc5')](_0x2d9040[_0x1c232e],_0xc7c94)),_0x1c232e++;}_0x1c232e++;}}}}for(const _0x86060a of _0x451ae2){const _0x2941cf=_0x2b8246[_0x1b49('0xd5')][_0x86060a];for(const _0x44212c of _0x2941cf){const _0x233a04=this[_0x1b49('0xaf')](_0x44212c),_0x350736=_0x44212c[_0x1b49('0xa7')][_0x1b49('0x51')](_0x233a04);if(_0x50ad0f[_0x1b49('0xd')](_0x350736)){const _0x570dcb=_0x50ad0f['get'](_0x350736);_0x33a277[_0x1b49('0xd')](_0x350736)||_0x33a277[_0x1b49('0xc5')](_0x350736,{..._0x570dcb}),_0x47188c[_0x1b49('0xc5')](_0x350736,{..._0x570dcb});}}}for(const _0x5b3a26 of _0x33a277[_0x1b49('0xef')]())_0x5b3a26>=this[_0x1b49('0xf')]&&_0x33a277[_0x1b49('0x60')](_0x5b3a26);const _0x551635=new Map();for(const _0x125bf9 of _0x451ae2){let _0x3dd78e=_0x2b8246['insertions'][_0x125bf9];for(const _0x39d594 of _0x3dd78e)if(_0x39d594['item']['is']('element',_0x1b49('0xce'))){const _0x39bd4d=this[_0x1b49('0xaf')](_0x39d594),_0xab1700=_0x39d594[_0x1b49('0xa7')]['getAttribute'](_0x39bd4d);if(_0x47188c[_0x1b49('0xd')](_0xab1700)){const _0x253a42=_0x39d594['item'][_0x1b49('0x0')][_0x1b49('0x0')][_0x1b49('0x51')](_0x1b49('0xab')),_0x20c3ee=_0x551635[_0x1b49('0x7')](_0x253a42)||new Set();_0x20c3ee[_0x1b49('0x9b')](_0x47188c[_0x1b49('0x7')](_0xab1700)[_0x1b49('0xcc')]),_0x551635['set'](_0x253a42,_0x20c3ee);}}_0x3dd78e=_0x2b8246[_0x1b49('0x19')][_0x125bf9];for(const _0xa09f9f of _0x3dd78e)if(_0xa09f9f[_0x1b49('0xa7')]['is'](_0x1b49('0xb2'),'tableCell')){const _0x5212ea=this[_0x1b49('0xaf')](_0xa09f9f),_0x56eba5=_0xa09f9f['item'][_0x1b49('0x51')](_0x5212ea);if(_0x33a277[_0x1b49('0xd')](_0x56eba5)){const _0xff131d=_0xa09f9f['item'][_0x1b49('0x0')][_0x1b49('0x0')]['getAttribute'](_0x1b49('0xab')),_0x49e6e0=_0x551635['get'](_0xff131d)||new Set();_0x49e6e0[_0x1b49('0x9b')](_0x33a277[_0x1b49('0x7')](_0x56eba5)[_0x1b49('0xcc')]),_0x551635['set'](_0xff131d,_0x49e6e0);}}for(const _0x36d9b1 of _0x551635['keys']())(_0x47188c[_0x1b49('0xd')](_0x36d9b1)||_0x33a277[_0x1b49('0xd')](_0x36d9b1))&&_0x551635[_0x1b49('0x60')](_0x36d9b1);}for(const _0x3e4eb9 of _0x451ae2){const _0x542514=_0x2b8246[_0x1b49('0xd5')][_0x3e4eb9];let _0x52dc26=null,_0xbf6ac7=null;for(const _0x124204 of _0x542514){const _0x4c4c52=this[_0x1b49('0xaf')](_0x124204),_0x51fefb=_0x124204[_0x1b49('0xa7')][_0x1b49('0x51')](_0x4c4c52),_0x1553a9=_0x551635[_0x1b49('0x7')](_0x51fefb);_0x1553a9&&_0x1b49('0x38')==_0x124204[_0x1b49('0x48')]&&(_0x52dc26=Array['from'](_0x1553a9)[0x0],_0xbf6ac7=_0x124204[_0x1b49('0xa7')][_0x1b49('0x51')]('vid_end')),_0x52dc26&&(_0x33a277[_0x1b49('0xc5')](_0x51fefb,{'userId':_0x52dc26}),_0x47188c[_0x1b49('0xc5')](_0x51fefb,{'userId':_0x52dc26})),_0x51fefb==_0xbf6ac7&&(_0x52dc26=null,_0xbf6ac7=null);}}const _0x5d5c09={},_0x278a87=new Set();for(const _0x11be58 of _0x451ae2){const _0x5118e1=_0x23fe53[_0x1b49('0x19')][_0x11be58],_0x57a8c9=_0x23fe53[_0x1b49('0xd5')][_0x11be58];for(const {userId:_0x47306c}of this[_0x1b49('0x7a')][_0x1b49('0x10')]())null!==_0x47306c&&_0x278a87[_0x1b49('0x9b')](_0x47306c);for(const {userId:_0x3e196f}of this['_touchedRoots'][_0x1b49('0x10')]())null!==_0x3e196f&&_0x278a87[_0x1b49('0x9b')](_0x3e196f);this['_markChanges'](_0x57a8c9,_0x2b8246[_0x1b49('0xd5')][_0x11be58],_0x47188c,'insertion',_0x278a87),this[_0x1b49('0x3c')](_0x5118e1,_0x2b8246[_0x1b49('0x19')][_0x11be58],_0x33a277,_0x1b49('0x21'),_0x278a87),_0x5d5c09[_0x11be58]={'insertions':this['_prepareViewToSave'](_0x57a8c9),'deletions':this[_0x1b49('0x102')](_0x5118e1),'attachChange':this['_touchedRoots'][_0x1b49('0x7')](_0x11be58)||null,'attributesBefore':_0x4b3567(this[_0x1b49('0xb4')]['get'](_0x11be58))||{},'attributesAfter':_0x4b3567(this['_diffRootsAttributes']['get'](_0x11be58))};}return{'diffData':_0x5d5c09,'authorsIds':Array['from'](_0x278a87)};}[_0x1b49('0x1f')](_0x314c69){for(const [,_0x1be3e6]of _0x314c69[_0x1b49('0x65')]){const _0x21d988=_0x1be3e6[_0x1b49('0x49')]['getAncestors']()[_0x1b49('0x106')](_0x1d5c46=>'tableCell'==_0x1d5c46[_0x1b49('0xc2')]);for(const _0x4f61c9 of _0x21d988)0x1==_0x4f61c9[_0x1b49('0xde')]&&_0x4f61c9[_0x1b49('0x2c')](0x0)['is'](_0x1b49('0xb2'),_0x1b49('0x91'))&&_0x4f61c9[_0x1b49('0x2c')](0x0)['_setAttribute']('keepParagraph',!0x0);}}[_0x1b49('0x102')](_0x2cc496){this[_0x1b49('0x1f')](_0x2cc496);const _0x4da61d=this[_0x1b49('0x5c')]['data'][_0x1b49('0x26')](_0x2cc496,{}),_0x5102cc=Array['from'](_0x4da61d[_0x1b49('0x1c')]())['map'](_0x464323=>this[_0x1b49('0x7d')](_0x464323));return JSON[_0x1b49('0x83')](_0x5102cc);}[_0x1b49('0x7d')](_0x16e9b3){if(_0x16e9b3['is'](_0x1b49('0x22')))return _0x16e9b3[_0x1b49('0x5d')];{const _0x43e1f9=_0x16e9b3;return{'type':Object[_0x1b49('0xef')](B)[_0x1b49('0x1e')](_0x5d70ea=>_0x16e9b3 instanceof B[_0x5d70ea]),'name':_0x43e1f9['name'],'attributes':Array['from'](_0x43e1f9['getAttributes']()),'children':Array[_0x1b49('0x61')](_0x43e1f9['getChildren']())[_0x1b49('0x92')](_0xad1910=>this[_0x1b49('0x7d')](_0xad1910))};}}[_0x1b49('0x3c')](_0x258308,_0x31d5ca,_0x41e7e5,_0x34b5eb,_0x3bc28a){let _0x1d5fcb=null,_0x2e1cd3=null,_0x35f7dc=0x0;const _0x49bd0b=this[_0x1b49('0x5c')]['model'];for(let _0x587437=0x0;_0x587437<_0x31d5ca[_0x1b49('0xc9')];_0x587437++){const _0x1519f4=this[_0x1b49('0xaf')](_0x31d5ca[_0x587437]),_0x2df059=_0x31d5ca[_0x587437][_0x1b49('0xa7')][_0x1b49('0x51')](_0x1519f4),_0x1d765f=_0x41e7e5['get'](_0x2df059),_0x16a552=_0x587437==_0x31d5ca['length']-0x1;(!_0x1d5fcb&&_0x1d765f&&(_0x1d5fcb=_0x1d765f,_0x2e1cd3=_0x31d5ca[_0x587437]),_0x1d5fcb&&(!_0x1d765f||_0x1d765f[_0x1b49('0xcc')]!=_0x1d5fcb[_0x1b49('0xcc')]))&&(_0x4c0454(_0x1d765f,L(_0x2e1cd3,_0x258308,_0x49bd0b),L(_0x31d5ca[_0x587437],_0x258308,_0x49bd0b)),_0x1d5fcb=_0x1d765f||null,_0x2e1cd3=_0x1d765f?_0x31d5ca[_0x587437]:null),_0x1d5fcb&&_0x16a552&&_0x4c0454(_0x1d765f,L(_0x2e1cd3,_0x258308,_0x49bd0b),W(_0x31d5ca[_0x587437],_0x258308,_0x49bd0b));}function _0x4c0454(_0x22ea44,_0x1b978d,_0x54cc42){const _0x1bed9b=_0x1d5fcb['userId'],_0x121db5=_0x1b49('0xfd')+_0x34b5eb+':'+_0x1bed9b+':'+_0x35f7dc++,_0x42ee9e=_0x49bd0b['createRange'](_0x1b978d,_0x54cc42);_0x258308[_0x1b49('0x65')]['set'](_0x121db5,_0x42ee9e),null!==_0x1bed9b&&_0x3bc28a['add'](_0x1bed9b);}}[_0x1b49('0xaf')](_0x1c3e33){switch(_0x1c3e33['type']){case _0x1b49('0x38'):return _0x1b49('0xab');case _0x1b49('0x95'):return'vid_end';default:return _0x1b49('0xcf');}}[_0x1b49('0xdd')](_0x5631a6,_0x1358fa){_0x5631a6[_0x1b49('0xb6')]=null;for(const _0x7f2c26 in _0x5631a6){const _0x5738eb=_0x5631a6[_0x7f2c26];if(_0x5738eb instanceof _0x357d8b){const _0x1ab888=_0x1358fa['get'](_0x5738eb[_0x1b49('0x2d')][_0x1b49('0x8a')]);_0x5631a6[_0x7f2c26]=this[_0x1b49('0x67')](_0x5738eb,_0x1ab888);}if(_0x5738eb instanceof _0x1948b6){const _0x27e581=_0x1358fa[_0x1b49('0x7')](_0x5738eb[_0x1b49('0x2d')][_0x1b49('0x8a')]);_0x5631a6[_0x7f2c26]=this[_0x1b49('0xd3')](_0x5738eb,_0x27e581);}_0x1b49('0x2d')===_0x7f2c26&&(_0x5631a6[_0x1b49('0x2d')]=_0x1358fa['get'](_0x5631a6[_0x1b49('0x2d')]['rootName']));}}[_0x1b49('0xd3')](_0x2bff68,_0x31a062){return this[_0x1b49('0x5c')][_0x1b49('0x42')]['createRange'](this['_fixPosition'](_0x2bff68['start'],_0x31a062),this[_0x1b49('0x67')](_0x2bff68['end'],_0x31a062));}['_fixPosition'](_0x258d61,_0x3f05e9){return this[_0x1b49('0x5c')][_0x1b49('0x42')]['createPositionFromPath'](_0x3f05e9,_0x258d61['path'],_0x258d61['stickiness']);}['_handleInsertOperation'](_0xf91d29){const _0x23adfb=this[_0x1b49('0x35')][_0x1b49('0x7')](_0xf91d29[_0x1b49('0x17')][_0x1b49('0x2d')][_0x1b49('0x8a')]),_0x13c947=this[_0x1b49('0x67')](_0xf91d29[_0x1b49('0x17')],_0x23adfb),_0x51bb92=null===_0xf91d29[_0x1b49('0xd7')]?null:_0xf91d29['_authorId']||this[_0x1b49('0x5c')]['plugins']['get'](_0x1b49('0x2'))['me']['id'],_0x2b900d=_0x13c947['parent'],_0x4124d2=this[_0x1b49('0xbf')],_0x34d25a=[];for(const _0x2266af of _0xf91d29[_0x1b49('0xeb')])if(_0x2266af['is'](_0x1b49('0xb2')))_0x34d25a['push'](this[_0x1b49('0x79')](_0x2266af));else for(let _0x3a2bb4=0x0;_0x3a2bb4<_0x2266af['offsetSize'];_0x3a2bb4++)_0x34d25a['push'](new _0x46b245('$text',{'vid':this['_revisionId']++}));const _0x311892=this[_0x1b49('0xbf')];for(let _0x435330=_0x4124d2;_0x435330<_0x311892;_0x435330++)this['_touched']['set'](_0x435330,{'userId':_0x51bb92});_0x2b900d[_0x1b49('0xa0')](_0x13c947[_0x1b49('0xaa')],_0x34d25a);}[_0x1b49('0x9d')](_0x37982d){(_0x37982d=this[_0x1b49('0x1b')](_0x37982d,this[_0x1b49('0x35')]))[_0x1b49('0xb8')]();const _0x2c325b=null===_0x37982d[_0x1b49('0xd7')]?null:_0x37982d['_authorId']||this['editor']['plugins']['get'](_0x1b49('0x2'))['me']['id'],_0x213e22=_0x37982d[_0x1b49('0x87')](),_0x3ebe19=_0x213e22[_0x1b49('0x0')],_0x49cc57=_0x213e22[_0x1b49('0xaa')];!function _0x244f34(_0x3a5b7c,_0x1a2aa0,_0x12da1c,_0x56e7e4){for(let _0x5107ed=_0x12da1c;_0x5107ed<_0x56e7e4;_0x5107ed++){const _0x509be5=_0x1a2aa0[_0x1b49('0x2c')](_0x5107ed);_0x509be5['is'](_0x1b49('0xb2'),_0x1b49('0x22'))?_0x3a5b7c[_0x1b49('0xc5')](_0x509be5[_0x1b49('0x51')](_0x1b49('0xcf')),{'userId':_0x2c325b}):(_0x3a5b7c[_0x1b49('0xc5')](_0x509be5[_0x1b49('0x51')]('vid_start'),{'userId':_0x2c325b}),_0x244f34(_0x3a5b7c,_0x509be5,0x0,_0x509be5[_0x1b49('0xde')]),_0x3a5b7c['set'](_0x509be5['getAttribute']('vid_end'),{'userId':_0x2c325b}));}}(this[_0x1b49('0x23')],_0x3ebe19,_0x49cc57,_0x49cc57+_0x37982d[_0x1b49('0xa')]);}[_0x1b49('0x88')](_0x1f0bef){const _0x3e65db=null===(_0x1f0bef=this['_cloneOperation'](_0x1f0bef,this['_idsRoots']))[_0x1b49('0xd7')]?null:_0x1f0bef[_0x1b49('0xd7')]||this[_0x1b49('0x5c')][_0x1b49('0xa5')]['get'](_0x1b49('0x2'))['me']['id'],_0x4181d6=_0x1f0bef['targetPosition'][_0x1b49('0x0')],_0x2afb2b=_0x1f0bef[_0x1b49('0xed')]['parent'],_0x3afc4c=_0x4181d6['getAttribute']('vid_end'),_0x22af32=_0x2afb2b[_0x1b49('0x51')](_0x1b49('0xab'));_0x4181d6[_0x1b49('0x98')]('vid_end',_0x2afb2b[_0x1b49('0x51')](_0x1b49('0x107'))),_0x2afb2b[_0x1b49('0x98')](_0x1b49('0x107'),_0x3afc4c),this[_0x1b49('0x23')][_0x1b49('0xc5')](_0x22af32,{'userId':_0x3e65db}),this[_0x1b49('0x23')][_0x1b49('0xc5')](_0x3afc4c,{'userId':_0x3e65db}),_0x1f0bef[_0x1b49('0xb8')]();}[_0x1b49('0xac')](_0x3df133){const _0x5b4cac=null===(_0x3df133=this[_0x1b49('0x1b')](_0x3df133,this[_0x1b49('0x35')]))[_0x1b49('0xd7')]?null:_0x3df133[_0x1b49('0xd7')]||this[_0x1b49('0x5c')]['plugins']['get'](_0x1b49('0x2'))['me']['id'],_0x35bd52=_0x3df133[_0x1b49('0xb1')],_0x3e3308=_0x3df133[_0x1b49('0x4e')][_0x1b49('0x0')];_0x3df133[_0x1b49('0xb8')]();const _0x2a173a=_0x3e3308[_0x1b49('0x51')](_0x1b49('0x107')),_0x539d40=_0x3df133[_0x1b49('0x80')][_0x1b49('0x4f')];if(_0x35bd52){const _0x26fdf0=_0x539d40[_0x1b49('0x51')](_0x1b49('0x107')),_0x6d5851=_0x3e3308['getAttribute']('vid_end');_0x3e3308['_setAttribute']('vid_end',_0x26fdf0),_0x539d40[_0x1b49('0x98')](_0x1b49('0x107'),_0x6d5851),this[_0x1b49('0x23')][_0x1b49('0xc5')](_0x3e3308[_0x1b49('0x51')](_0x1b49('0x107')),{'userId':_0x5b4cac}),this[_0x1b49('0x23')][_0x1b49('0xc5')](_0x539d40[_0x1b49('0x51')]('vid_start'),{'userId':_0x5b4cac});}else{const _0x2db6e8=this[_0x1b49('0xbf')]++,_0x290e54=this['_revisionId']++;_0x3e3308[_0x1b49('0x98')](_0x1b49('0x107'),_0x2db6e8),_0x539d40[_0x1b49('0x98')]('vid_start',_0x290e54),_0x539d40[_0x1b49('0x98')](_0x1b49('0x107'),_0x2a173a),this['_touched'][_0x1b49('0xc5')](_0x2db6e8,{'userId':_0x5b4cac}),this[_0x1b49('0x23')][_0x1b49('0xc5')](_0x290e54,{'userId':_0x5b4cac});}}[_0x1b49('0x5')](_0x5ea35e){if(!_0x5ea35e['affectsData'])return;const _0x507aaf=(_0x5ea35e=this['_cloneOperation'](_0x5ea35e,this[_0x1b49('0xa6')]))['oldRange']?_0x5ea35e[_0x1b49('0xf2')][_0x1b49('0x2d')]:null,_0x832b38=_0x5ea35e['newRange']?_0x5ea35e[_0x1b49('0x39')]['root']:null;_0x507aaf&&this['_markers'][_0x1b49('0x60')](_0x5ea35e['name']),_0x832b38&&this[_0x1b49('0x31')][_0x1b49('0xc5')](_0x5ea35e[_0x1b49('0xc2')],_0x5ea35e[_0x1b49('0x39')][_0x1b49('0xae')]());const _0x516299=null===_0x5ea35e[_0x1b49('0xd7')]?null:_0x5ea35e[_0x1b49('0xd7')]||this[_0x1b49('0x5c')][_0x1b49('0xa5')][_0x1b49('0x7')](_0x1b49('0x2'))['me']['id'],_0x129e13=_0x5ea35e[_0x1b49('0xc2')];if(!this[_0x1b49('0x7a')][_0x1b49('0xd')](_0x129e13))return void this[_0x1b49('0x7a')][_0x1b49('0xc5')](_0x129e13,{'range':_0x5ea35e['oldRange'],'userId':_0x516299});const _0x3198fc=this[_0x1b49('0x7a')]['get'](_0x129e13),_0x1a2696=_0x3198fc[_0x1b49('0x14')],_0x57dce7=_0x5ea35e[_0x1b49('0x39')];null==_0x1a2696&&null==_0x57dce7||_0x1a2696&&_0x57dce7&&_0x1a2696[_0x1b49('0xb5')](_0x57dce7)?this['_touchedMarkers'][_0x1b49('0x60')](_0x5ea35e[_0x1b49('0xc2')]):_0x3198fc[_0x1b49('0xcc')]=_0x516299;}['_handleRootOperation'](_0x11d980,_0x4672e7){this[_0x1b49('0xa6')]['has'](_0x11d980[_0x1b49('0x8a')])?this[_0x1b49('0xa6')]['get'](_0x11d980[_0x1b49('0x8a')])['_isAttached']=_0x11d980[_0x1b49('0x85')]:(this[_0x1b49('0xa6')]['set'](_0x11d980['rootName'],G(_0x11d980[_0x1b49('0x8a')],!0x0)),this['_diffRootsAttributes']['set'](_0x11d980['rootName'],{}),_0x4672e7&&this[_0x1b49('0x35')][_0x1b49('0xc5')](_0x11d980[_0x1b49('0x8a')],G(_0x11d980[_0x1b49('0x8a')],!0x0)));const _0x5a46d4=null===_0x11d980[_0x1b49('0xd7')]?null:_0x11d980[_0x1b49('0xd7')]||this['editor'][_0x1b49('0xa5')]['get'](_0x1b49('0x2'))['me']['id'],_0x10ac5c=this['_touchedRoots'][_0x1b49('0x7')](_0x11d980['rootName']);_0x10ac5c&&_0x10ac5c['userId']===_0x5a46d4?this[_0x1b49('0xfb')][_0x1b49('0x60')](_0x11d980[_0x1b49('0x8a')]):this[_0x1b49('0xfb')][_0x1b49('0xc5')](_0x11d980[_0x1b49('0x8a')],{'userId':_0x5a46d4,'isAttached':_0x11d980[_0x1b49('0x85')]});}[_0x1b49('0x72')](_0x1ac558){const _0xd51a32=this['_diffRootsAttributes']['get'](_0x1ac558['root']['rootName']);null===_0x1ac558['newValue']?delete _0xd51a32[_0x1ac558['key']]:_0xd51a32[_0x1ac558[_0x1b49('0x55')]]=_0x1ac558[_0x1b49('0xa4')];}}function q(_0x529368){const _0xb24028=G(_0x529368['rootName'],_0x529368[_0x1b49('0xca')]());for(const _0x2c614a of _0x529368[_0x1b49('0x1c')]()){const _0x29c08d=_0x2c614a[_0x1b49('0x108')](!0x0);_0xb24028['_appendChild'](_0x29c08d);}return _0xb24028;}function G(_0x2ddcd5,_0x49a1c9=!0x0){const _0x4fd87c=new _0x49f90d();return _0x4fd87c['rootName']=_0x2ddcd5,_0x4fd87c['_isAttached']=_0x49a1c9,_0x4fd87c[_0x1b49('0xca')]=()=>_0x4fd87c[_0x1b49('0x7e')],_0x4fd87c;}function L(_0x58fc5a,_0x3579eb,_0x419f56){const _0x109d89=_0x1b49('0x95')==_0x58fc5a[_0x1b49('0x48')]?_0x419f56[_0x1b49('0xb0')](_0x58fc5a[_0x1b49('0xa7')],_0x1b49('0x8f')):_0x419f56[_0x1b49('0x5f')](_0x58fc5a['item']);return _0x419f56[_0x1b49('0xc0')](_0x3579eb,_0x109d89[_0x1b49('0x1a')],_0x109d89[_0x1b49('0xdf')]);}function W(_0x432f62,_0x260a00,_0x546711){const _0x5dd3b4='elementStart'==_0x432f62[_0x1b49('0x48')]?_0x546711['createPositionAt'](_0x432f62[_0x1b49('0xa7')],0x0):_0x546711[_0x1b49('0x9c')](_0x432f62['item']);return _0x546711[_0x1b49('0xc0')](_0x260a00,_0x5dd3b4[_0x1b49('0x1a')],_0x5dd3b4['stickiness']);}
23
+ const _0x3589=['attachChange','repository','keepParagraph','userId','data','version','diffData','_makeModelFromViewString','_handleRootAttributeOperation','revisionHistory.resumeUnsavedRevision','forEach','getChild','trim','remove','updateRevisions','_createInitialRevision','authors','length','model','find','toView','Initial\x20revision','addRootAttribute','$text','_fixPosition','_replaceEditorDataWithRevisionData','clear','startsWith','toVersion','locale','end','elementEnd','vid_end','plugins','getData','get','upcast','source','getRevisionDocumentData','getRange','includes','_markers','slice','_generateTape','baseVersion','editor','_getBaseVids','reverse','define','_getViewJson','text','offsetSize','default','getRoot','_touchedRoots','view','creator','collaboration.channelId','add','reInit','key','_makeRevision','rootsAttributes','deletions','requires','adapter','_calculateMetaData','revision:','_bufferedUpdates','processor','_getVidAttributeName','_loadState','_source','_baseRootsAttributes','revision-end','push','nodes','type','childCount','map','getRevisions','item','splitPosition','_execute','attributes','insertion','_diffRootsAttributes','$graveyard','getChildren','_findInsertionIndex','set','string','_handleMoveOperation','for','loadState','rootName','_createFromRanges','RevisionTracker','parent','_initialRevisionId','isEqual','elementStart','max','_setAttribute','_idsRoots','history','editing','keys','_handleMarkerOperation','getAttribute','_transformMarkers','vid_start','createRevision','sourcePosition','_baseRoots','_clone','RevisionsRepository','initial','split','reinsert','_reset','getMovedRangeStart','NEGATIVE_INFINITY','buildRevisionData','toData','values','_handleMergeOperation','saveRevision','isEnabled','_lastFrom','_loadedStateData','_revisionId','_insertChild','_addPendingAction','Users','addRevisionData','element','_cloneOperation','_copyMarkers','document','path','_appendChild','_fixRange','getLatestVersion','_revisionDataBuilder','PendingActions','setRevisionData','createPositionFromPath','_startingRevisionId','roots','tableCell','root','_prepareViewToSave','_getPreviousFrom','newRange','getUser','createRange','init','_saveMetaData','getNodeByPath','position','graveyardPosition','insertionPosition','ready','createPositionAfter','_lastTo','previousPosition','isAttached','_isAttached','addRoot','howMany','conversion','_createCurrentRevision','insert','creatorId','start','name','_authorId','authorsIds','_getState','insertions','PENDING_ACTION_REVISION_HISTORY','_continueCurrentRevision','_update','move','children','paragraph','from','range','revision','_touchedMarkers','bind','_setConversion','targetPosition','finally','_savedMetaData','update','hasContent','getCurrentRevisionId','_removeMetaData','initialData','_touched','affectsData','offset','_handleSplitOperation','getRevision','_operations','isAdd','useFillerType','_makeIdsRoot','_markChanges','_pendingAction','nodeAfter','removeRootAttribute','getIndex','fromEntries','detachRoot','_loadRevisionData','size','filter','config','afterInit','shift','_applyOperations','getOperation','_getFromVersion','isReady','deletion','createdAt','getRevisionRootsAttributes','getWalker','merge','then','createPositionAt','setSource','dataToMarker','_removePendingAction','parse','markers','getAttributes','getAncestors','delete','_fixOperation','has','createRangeIn','sendBufferedUpdates','_startingVersion','addRevision','currentRevision','_isPendingUpdate','getOperations','stringify','_handleOperation','vid','_bufferUpdate','clone','stickiness','_diffRoots','fromVersion','RealTimeCollaborationClient','_handleInsertOperation','some','oldRange','_removeRevisionMarkers','_baseIdsRoots','getRootNames'];(function(_0x450ccf,_0x358982){const _0x3f60f4=function(_0x2933e4){while(--_0x2933e4){_0x450ccf['push'](_0x450ccf['shift']());}};_0x3f60f4(++_0x358982);}(_0x3589,0x186));const _0x3f60=function(_0x450ccf,_0x358982){_0x450ccf=_0x450ccf-0x0;let _0x3f60f4=_0x3589[_0x450ccf];return _0x3f60f4;};import{Users as _0x3cd5e8}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x5c36c4,PendingActions as _0x145c42}from'ckeditor5/src/core';import{logWarning as _0x10d96a,uid as _0xcc8e31}from'ckeditor5/src/utils';import{Position as _0xba1a39,Range as _0x90af34,Element as _0x2cfae2,DocumentFragment as _0x2943f8,ViewText as _0x727ddd,ViewElement as _0x573196,ViewContainerElement as _0x3793fb,ViewAttributeElement as _0x3ce3bb,ViewEmptyElement as _0x2680d1,ViewRawElement as _0x53b171,ViewUIElement as _0x1153b7,ViewDocumentFragment as _0x391344}from'ckeditor5/src/engine';import _0x42705a from'./revisionsrepository';import{getTranslation as _0x574f8b}from'./utils/common-translations';import{cloneDeep as _0x136f39,isEqual as _0x4cb03c}from'lodash-es';const B={'c':_0x3793fb,'a':_0x3ce3bb,'e':_0x2680d1,'r':_0x53b171,'u':_0x1153b7};export default class l extends _0x5c36c4{static get['pluginName'](){return _0x3f60('0xef');}static get[_0x3f60('0xce')](){return[_0x3cd5e8,_0x42705a,_0x145c42];}constructor(_0x32c741){super(_0x32c741),this[_0x3f60('0xcf')]=null,this['currentRevision']=null,this[_0x3f60('0x14')]=new H(this[_0x3f60('0xbb')]),this[_0x3f60('0xf1')]=this[_0x3f60('0xbb')]['config'][_0x3f60('0xb1')](_0x3f60('0xc7'))||_0x3f60('0x103'),this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2532b0=_0xcc8e31();this[_0x3f60('0xd6')]={'history':this['editor'][_0x3f60('0xa0')]['document'][_0x3f60('0xf7')],'getLatestVersion':()=>Promise['resolve'](this[_0x3f60('0xbb')][_0x3f60('0xa0')][_0x3f60('0xf')][_0x3f60('0x93')]),'getCurrentRevisionId':()=>_0x2532b0},this['set'](_0x3f60('0x66'),!0x1),this[_0x3f60('0xe8')](_0x3f60('0x4'),!0x0),this[_0x3f60('0xe8')](_0x3f60('0x7d'),!0x1),this['editor'][_0x3f60('0x60')][_0x3f60('0xbe')](_0x3f60('0x97'),!0x0),this[_0x3f60('0xbb')][_0x3f60('0x2f')][_0x3f60('0xeb')](_0x3f60('0xb2'))[_0x3f60('0x6f')]({'view':_0x3f60('0x41')});}['init'](){this[_0x3f60('0x8f')]=this['editor'][_0x3f60('0xaf')]['get'](_0x3f60('0x102')),this[_0x3f60('0x44')](),this['editor'][_0x3f60('0x92')]['on'](_0x3f60('0x27'),()=>{const _0x489479=this[_0x3f60('0x8f')][_0x3f60('0x51')](0x0),_0x389b55=_0x489479&&null===_0x489479[_0x3f60('0xc6')]?_0x489479:null;if(this[_0x3f60('0x3a')]=!!_0x389b55&&this['editor']['config'][_0x3f60('0xb1')](_0x3f60('0x97')),this[_0x3f60('0xbb')][_0x3f60('0xaf')]['has'](_0x3f60('0x87'))){const _0x5a68d3=this[_0x3f60('0xd6')]['getCurrentRevisionId'](),_0x2dd35c=this['repository'][_0x3f60('0x51')](_0x5a68d3);if(_0x2dd35c)this[_0x3f60('0x7a')]=_0x2dd35c[_0x3f60('0x86')],this[_0x3f60('0x3a')]=!0x1;else{const _0x1f1647=this[_0x3f60('0xd6')]['history'][_0x3f60('0x52')][_0x3f60('0xa1')](_0x5bcc53=>!_0x5bcc53['_isInit']),_0x228b30=_0x1f1647?_0x1f1647['baseVersion']:this[_0x3f60('0xd6')][_0x3f60('0xf7')]['version'];_0x489479?(_0x489479[_0x3f60('0xaa')]<_0x228b30&&_0x489479[_0x3f60('0x3b')]({'toVersion':_0x228b30}),this[_0x3f60('0x3a')]?(this[_0x3f60('0xd6')]['getCurrentRevisionId']=()=>_0x389b55['id'],this['_startingVersion']=_0x389b55[_0x3f60('0x86')]):(this[_0x3f60('0x7a')]=_0x489479['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x228b30,this[_0x3f60('0x3a')]=!0x1);}}else _0x389b55&&(this[_0x3f60('0xbb')][_0x3f60('0xa0')][_0x3f60('0xf')][_0x3f60('0xf7')][_0x3f60('0x93')]=Math[_0x3f60('0xf4')](_0x389b55[_0x3f60('0xaa')],this[_0x3f60('0xbb')][_0x3f60('0xa0')][_0x3f60('0xf')]['history'][_0x3f60('0x93')]),_0x389b55[_0x3f60('0x86')]===_0x389b55['toVersion']?(0x0!==_0x389b55[_0x3f60('0x86')]&&(this[_0x3f60('0xd6')]['getCurrentRevisionId']=()=>_0x389b55['id']),this[_0x3f60('0x3a')]=!0x1):this['_continueCurrentRevision']&&(this[_0x3f60('0xd6')][_0x3f60('0x4a')]=()=>_0x389b55['id'],this[_0x3f60('0x7a')]=_0x389b55['fromVersion'])),this['_continueCurrentRevision']||(this[_0x3f60('0x7a')]=this[_0x3f60('0xbb')]['model'][_0x3f60('0xf')]['version']);this[_0x3f60('0x14')][_0x3f60('0x21')](this['_source'][_0x3f60('0xf7')]),this[_0x3f60('0x9d')](this[_0x3f60('0x7a')]),this[_0x3f60('0x30')](this[_0x3f60('0x7a')]),this['adapter']&&this[_0x3f60('0x79')]();}),this[_0x3f60('0x43')](_0x3f60('0x66'))['to'](this,_0x3f60('0x7d'),_0x1af08b=>!_0x1af08b);}async[_0x3f60('0x61')](){if(this[_0x3f60('0x8f')][_0x3f60('0x9f')]>0x0){const _0x276961=this[_0x3f60('0x8f')]['getRevision'](0x0),_0xbdc86e=await this['getRevisionDocumentData'](_0x276961),_0x5d0599=await this[_0x3f60('0x69')](_0x276961);this[_0x3f60('0xa7')](_0xbdc86e,_0x5d0599);}}[_0x3f60('0x6e')](_0x45095d){this[_0x3f60('0xd6')]=_0x45095d;}async[_0x3f60('0x48')](){const _0x17be47=await this[_0x3f60('0xd6')][_0x3f60('0x13')]();if(_0x17be47>this['currentRevision'][_0x3f60('0xaa')]){await this['_loadState']();const _0x1f941f=this['buildRevisionData']({'revision':this[_0x3f60('0x7c')],'to':_0x17be47});_0x1f941f[_0x3f60('0x9e')]=_0x1f941f[_0x3f60('0x36')]['map'](_0x26d921=>this[_0x3f60('0xbb')]['plugins'][_0x3f60('0xb1')](_0x3f60('0xa'))['getUser'](_0x26d921)),this[_0x3f60('0x7c')][_0x3f60('0x3b')](_0x1f941f);}}async['_loadState'](){this['_continueCurrentRevision']&&!this[_0x3f60('0x6')]&&(await this[_0x3f60('0x5d')](this[_0x3f60('0x7c')]),this[_0x3f60('0x14')]['loadState'](this[_0x3f60('0x7c')]),this[_0x3f60('0x6')]={'fromVersion':this[_0x3f60('0x7c')][_0x3f60('0x86')],'authors':this[_0x3f60('0x7c')]['authors'][_0x3f60('0xb8')]()});}async[_0x3f60('0x3')](_0x3d56ab={},_0x52785e=null){const _0x2793ee=[];await this[_0x3f60('0xd5')](),this[_0x3f60('0x3a')]=!0x1,_0x52785e>this[_0x3f60('0x7c')][_0x3f60('0xaa')]&&(_0x52785e=null),null===_0x52785e&&(_0x52785e=await this[_0x3f60('0xd6')][_0x3f60('0x13')]());const _0x42a196=this[_0x3f60('0x65')](_0x52785e),_0x9cfdcd=this['buildRevisionData']({'from':_0x42a196,'to':_0x52785e});if(this[_0x3f60('0x7c')][_0x3f60('0xaa')]<_0x52785e){const _0x282b5d=this[_0x3f60('0x109')]({'revision':this[_0x3f60('0x7c')],'from':_0x52785e,'to':_0x52785e});_0x282b5d[_0x3f60('0x9e')]=[],_0x282b5d[_0x3f60('0x36')]=[],_0x282b5d['id']=this[_0x3f60('0x7c')]['id'],this[_0x3f60('0x7c')][_0x3f60('0x3b')](_0x282b5d,!0x0),delete _0x282b5d[_0x3f60('0x9e')],_0x2793ee[_0x3f60('0xd9')](_0x282b5d);}_0x3d56ab['creatorId']=this[_0x3f60('0xbb')][_0x3f60('0xaf')]['get'](_0x3f60('0xa'))['me']['id'],_0x3d56ab[_0x3f60('0x34')]=_0x3d56ab[_0x3f60('0x34')]||null,_0x3d56ab['id']=_0x3d56ab['id']||_0xcc8e31(),_0x3d56ab={..._0x3d56ab,..._0x9cfdcd};const _0x381f46=this[_0x3f60('0xb')](_0x3d56ab);_0x2793ee[_0x3f60('0xd9')](_0x3d56ab);const _0x1a2a86=this['repository'][_0x3f60('0x5a')](_0x381f46);if(0x0!==_0x1a2a86){const _0x56906c=this['repository'][_0x3f60('0x51')](_0x1a2a86-0x1);if(_0x56906c[_0x3f60('0x86')]!==_0x52785e){const _0x3ca037=this[_0x3f60('0x14')]['getData'](_0x52785e,_0x56906c[_0x3f60('0xaa')]),_0x100b0a={'id':_0x56906c['id'],'diffData':_0x3ca037['diffData'],'authorsIds':_0x3ca037[_0x3f60('0x36')],'authors':_0x3ca037[_0x3f60('0x36')][_0x3f60('0xdd')](_0x5adac0=>this[_0x3f60('0xbb')][_0x3f60('0xaf')]['get']('Users')['getUser'](_0x5adac0)),'fromVersion':_0x52785e};_0x56906c===this[_0x3f60('0x7c')]&&(_0x100b0a[_0x3f60('0x68')]=new Date(_0x3d56ab['createdAt']['getTime']()+0xa)),_0x56906c['_update'](_0x100b0a,!0x0),delete _0x100b0a[_0x3f60('0x9e')],_0x2793ee['push'](_0x100b0a);}}if(this[_0x3f60('0xcf')]){for(const _0x1ecd49 of _0x2793ee)this[_0x3f60('0x82')](_0x1ecd49['id'],_0x1ecd49,!0x0);this[_0x3f60('0x79')]();}return _0x381f46;}[_0x3f60('0xb')](_0x1ea7df){const _0x2111e6=this[_0x3f60('0x8f')][_0x3f60('0xfe')](_0x1ea7df);return this[_0x3f60('0xcf')]&&_0x2111e6['on'](_0x3f60('0x3b'),(_0x5868d3,_0x33da6c,_0x2d148e)=>{_0x2d148e||(this['_bufferUpdate'](_0x33da6c['id'],_0x33da6c,!0x0),this[_0x3f60('0x79')]());}),this['repository'][_0x3f60('0x7b')](_0x2111e6,this[_0x3f60('0xe7')](_0x2111e6)),_0x2111e6;}async[_0x3f60('0xb4')](_0x41cadd){await this[_0x3f60('0x5d')](_0x41cadd);const _0x5bf103={};for(const _0x58bc54 in _0x41cadd['diffData']){if(_0x41cadd['diffData'][_0x58bc54][_0x3f60('0x8e')]&&!_0x41cadd[_0x3f60('0x94')][_0x58bc54]['attachChange']['isAttached'])continue;const _0x3c2e4d=this[_0x3f60('0x8b')](JSON[_0x3f60('0x71')](_0x41cadd[_0x3f60('0x94')][_0x58bc54][_0x3f60('0x38')])),_0x2dfc2c=this[_0x3f60('0xbb')][_0x3f60('0xf8')][_0x3f60('0xc5')][_0x3f60('0xf')],_0x1897f6=new _0x391344(_0x2dfc2c,_0x3c2e4d[_0x3f60('0xdd')](_0x359024=>J(_0x359024,this[_0x3f60('0xbb')])));this['editor'][_0x3f60('0x92')]['processor'][_0x3f60('0x54')]('marked'),_0x5bf103[_0x58bc54]=this[_0x3f60('0xbb')]['data'][_0x3f60('0xd3')][_0x3f60('0x0')](_0x1897f6),this[_0x3f60('0xbb')][_0x3f60('0x92')][_0x3f60('0xd3')][_0x3f60('0x54')](_0x3f60('0xc2'));}return _0x5bf103;}async[_0x3f60('0x69')](_0x2f80a9){await this[_0x3f60('0x5d')](_0x2f80a9);const _0x2e0b31={};for(const _0x4cca65 in _0x2f80a9[_0x3f60('0x94')])_0x2f80a9['diffData'][_0x4cca65][_0x3f60('0x8e')]&&!_0x2f80a9['diffData'][_0x4cca65]['attachChange'][_0x3f60('0x2b')]||(_0x2e0b31[_0x4cca65]=_0x2f80a9[_0x3f60('0x94')][_0x4cca65]['attributesAfter']||{});return _0x2e0b31;}[_0x3f60('0x79')](){if(0x0===this[_0x3f60('0xd2')][_0x3f60('0x5e')])return;if(this[_0x3f60('0x7d')])return;let _0x33e19d=Array[_0x3f60('0x3f')](this['_bufferedUpdates'][_0x3f60('0x1')]());this[_0x3f60('0xd2')][_0x3f60('0xa8')]();for(let _0x30cd78=0x0;_0x30cd78<_0x33e19d[_0x3f60('0x9f')];_0x30cd78++){const _0xbbaa68=_0x33e19d[_0x30cd78];let _0x40c49e=!0x1;for(const _0x49f00b of Object[_0x3f60('0xf9')](_0xbbaa68))void 0x0===_0xbbaa68[_0x49f00b]?delete _0xbbaa68[_0x49f00b]:'id'!==_0x49f00b&&(_0x40c49e=!0x0);_0x40c49e||(_0x33e19d[_0x30cd78]=null);}if(_0x33e19d=_0x33e19d['filter'](_0x306eb4=>null!==_0x306eb4),!_0x33e19d[_0x3f60('0x9f')])return;for(let _0x565bcc=0x0;_0x565bcc<_0x33e19d['length'];_0x565bcc++){const _0x37a4b3=_0x33e19d[_0x565bcc];void 0x0!==_0x37a4b3[_0x3f60('0x86')]&&void 0x0===_0x37a4b3['toVersion']&&(_0x37a4b3[_0x3f60('0xaa')]=this[_0x3f60('0x8f')]['getRevision'](_0x37a4b3['id'])[_0x3f60('0xaa')]),void 0x0!==_0x37a4b3['toVersion']&&void 0x0===_0x37a4b3[_0x3f60('0x86')]&&(_0x37a4b3[_0x3f60('0x86')]=this[_0x3f60('0x8f')]['getRevision'](_0x37a4b3['id'])['fromVersion']);}const _0x275a81=this[_0x3f60('0xbb')]['config'][_0x3f60('0xb1')](_0x3f60('0xc7'));this[_0x3f60('0x7d')]=!0x0,this[_0x3f60('0x9')](),this[_0x3f60('0xcf')][_0x3f60('0x9c')](_0x33e19d,_0x275a81)[_0x3f60('0x46')](()=>{this['_isPendingUpdate']=!0x1;})[_0x3f60('0x6c')](_0x505c00=>{if(_0x505c00)for(const _0x2adf55 of _0x505c00)this[_0x3f60('0x16')]({'id':_0x2adf55['id'],'createdAt':_0x2adf55[_0x3f60('0x68')]});this['_removePendingAction'](),this[_0x3f60('0x79')]();});}[_0x3f60('0xa7')](_0x17dffd,_0x945ec8){let _0x42bed3=this['editor'][_0x3f60('0x60')][_0x3f60('0xb1')]('initialData'),_0x260ba5=this[_0x3f60('0xbb')]['config'][_0x3f60('0xb1')](_0x3f60('0xcc'));if(void 0x0===_0x42bed3){_0x42bed3={};for(const _0x55c96d of this[_0x3f60('0xbb')][_0x3f60('0xa0')][_0x3f60('0xf')]['getRootNames']())_0x42bed3[_0x55c96d]='';}if(_0x3f60('0xe9')==typeof _0x42bed3&&(_0x42bed3={'main':_0x42bed3}),void 0x0===_0x260ba5){_0x260ba5={};for(const _0x507314 of this[_0x3f60('0xbb')]['model'][_0x3f60('0xf')][_0x3f60('0x8d')]())_0x260ba5[_0x507314]={};}let _0x15fa5c=!0x1;const _0x9b2ea4=Object['keys'](_0x42bed3),_0x512926=Object[_0x3f60('0xf9')](_0x17dffd);for(const _0x33f3ca of _0x9b2ea4){if(_0x42bed3[_0x33f3ca]!==_0x17dffd[_0x33f3ca]&&''!==_0x42bed3[_0x33f3ca][_0x3f60('0x9a')]()){_0x15fa5c=!0x0;break;}if(!_0x4cb03c(_0x260ba5[_0x33f3ca],_0x945ec8[_0x33f3ca])&&Object[_0x3f60('0xf9')](_0x260ba5[_0x33f3ca])['length']>0x0){_0x15fa5c=!0x0;break;}}_0x15fa5c||(_0x15fa5c=_0x512926[_0x3f60('0x89')](_0x55b8da=>!this[_0x3f60('0xbb')][_0x3f60('0xa0')]['document']['getRoot'](_0x55b8da))),_0x15fa5c&&_0x10d96a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x42bed3,'editorRootsAttributes':_0x260ba5,'revisionData':_0x17dffd,'revisionRootsAttributes':_0x945ec8}),this[_0x3f60('0xbb')][_0x3f60('0x60')]['set'](_0x3f60('0x4c'),_0x17dffd),this[_0x3f60('0xbb')][_0x3f60('0x60')]['set'](_0x3f60('0xcc'),_0x945ec8);}[_0x3f60('0x9')](){if(!this[_0x3f60('0x57')]){const _0x500066=this[_0x3f60('0xbb')][_0x3f60('0xaf')]['get'](_0x3f60('0x15'));this[_0x3f60('0x57')]=_0x500066['add'](_0x574f8b(this[_0x3f60('0xbb')][_0x3f60('0xab')],_0x3f60('0x39')));}}[_0x3f60('0x70')](){this['_pendingAction']&&(this[_0x3f60('0xbb')][_0x3f60('0xaf')]['get'](_0x3f60('0x15'))[_0x3f60('0x9b')](this[_0x3f60('0x57')]),this[_0x3f60('0x57')]=null);}[_0x3f60('0xe7')](_0x2156d1){const _0x44ffb4=this[_0x3f60('0x8f')][_0x3f60('0xde')]();_0x44ffb4[_0x3f60('0xbd')]();let _0x2b9dc3=0x0;for(;_0x2b9dc3<_0x44ffb4['length'];){const _0x1393bd=_0x44ffb4[_0x2b9dc3];if(_0x1393bd===this[_0x3f60('0x7c')]){_0x2b9dc3++;continue;}if(_0x1393bd['id']===this['_initialRevisionId'])break;const _0x3f7247=_0x2156d1[_0x3f60('0xaa')]-_0x1393bd['toVersion']||_0x2156d1['fromVersion']-_0x1393bd[_0x3f60('0x86')];if(_0x3f7247>0x0)break;if(_0x3f7247<0x0)_0x2b9dc3++;else{if(!_0x2156d1[_0x3f60('0xc6')]&&_0x1393bd[_0x3f60('0xc6')])break;if(_0x1393bd[_0x3f60('0xc6')]||!_0x2156d1[_0x3f60('0xc6')]){if(_0x2156d1[_0x3f60('0x68')]>_0x1393bd[_0x3f60('0x68')])break;_0x2b9dc3++;}else _0x2b9dc3++;}}return _0x2b9dc3;}['setRevisionData'](_0x304882){const _0x4de2aa=this[_0x3f60('0x8f')][_0x3f60('0x51')](_0x304882['id']);if(_0x304882[_0x3f60('0x68')]&&(_0x304882[_0x3f60('0x68')]=new Date(_0x304882['createdAt'])),_0x304882['authorsIds']){const _0x3bbd04=this[_0x3f60('0xbb')][_0x3f60('0xaf')]['get'](_0x3f60('0xa'));_0x304882[_0x3f60('0x9e')]=_0x304882[_0x3f60('0x36')][_0x3f60('0xdd')](_0x5c57a3=>_0x3bbd04[_0x3f60('0x1f')](_0x5c57a3));}_0x4de2aa[_0x3f60('0x3b')](_0x304882,!0x0);}[_0x3f60('0x109')]({revision:_0x282281=null,from:_0x238c09=null,to:_0x3e57b4=null}){_0x238c09=null!==_0x238c09?_0x238c09:_0x282281[_0x3f60('0x86')],_0x3e57b4=null!==_0x3e57b4?_0x3e57b4:_0x282281[_0x3f60('0xaa')];const _0x57e9cc=this[_0x3f60('0x14')][_0x3f60('0xb0')](_0x238c09,_0x3e57b4),_0x3fbeb4={'diffData':_0x57e9cc[_0x3f60('0x94')],'authorsIds':_0x57e9cc[_0x3f60('0x36')],'fromVersion':_0x238c09,'toVersion':_0x3e57b4};if(!_0x282281||_0x3e57b4!==_0x282281['toVersion']){const _0x48e6b4=_0x3e57b4-0x1,_0x1a4a7c=this[_0x3f60('0xd6')][_0x3f60('0xf7')][_0x3f60('0x64')](_0x48e6b4);_0x3fbeb4['createdAt']=_0x1a4a7c&&_0x1a4a7c[_0x3f60('0x68')]||new Date();}if(this[_0x3f60('0x6')]&&_0x238c09===this[_0x3f60('0x6')][_0x3f60('0x86')])for(const _0x21c626 of this[_0x3f60('0x6')]['authors'])_0x3fbeb4['authorsIds'][_0x3f60('0xb6')](_0x21c626['id'])||_0x3fbeb4['authorsIds'][_0x3f60('0xd9')](_0x21c626['id']);return _0x3fbeb4;}[_0x3f60('0x5d')](_0x330c02){if(!_0x330c02||_0x330c02[_0x3f60('0x94')])return Promise['resolve']();{const _0x31dfc1=this[_0x3f60('0xbb')]['config']['get'](_0x3f60('0xc7'));return this[_0x3f60('0xcf')][_0x3f60('0x51')]({'channelId':_0x31dfc1,'revisionId':_0x330c02['id']})[_0x3f60('0x6c')](_0x4a1025=>{_0x330c02[_0x3f60('0x94')]=_0x4a1025[_0x3f60('0x94')];});}}[_0x3f60('0x82')](_0x1abeec,_0x23a6a7,_0x32c684){if(this[_0x3f60('0xd2')][_0x3f60('0x77')](_0x1abeec)){const _0x3434bd=this[_0x3f60('0xd2')][_0x3f60('0xb1')](_0x1abeec);_0x23a6a7=_0x32c684?{..._0x3434bd,..._0x23a6a7}:{..._0x23a6a7,..._0x3434bd};}this[_0x3f60('0xd2')][_0x3f60('0xe8')](_0x1abeec,_0x23a6a7);}[_0x3f60('0x65')](_0x208bf4){const _0x520f8b=this[_0x3f60('0x8f')][_0x3f60('0xde')]();_0x520f8b[_0x3f60('0xbd')](),_0x520f8b[_0x3f60('0x62')]();const _0x2fee7b=_0x520f8b[_0x3f60('0xa1')](_0x127f63=>_0x127f63['toVersion']<=_0x208bf4)[_0x3f60('0xaa')];return _0x2fee7b<this[_0x3f60('0x7a')]?this['_startingVersion']:_0x2fee7b;}[_0x3f60('0x9d')](_0x563ac7){const _0xe83d07=this[_0x3f60('0x8f')][_0x3f60('0x51')](this[_0x3f60('0x8f')]['length']-0x1);if(_0xe83d07)this['_initialRevisionId']=_0xe83d07['id'];else{const _0x7599eb=!this[_0x3f60('0xbb')]['model'][_0x3f60('0xf')][_0x3f60('0x19')][_0x3f60('0xa1')](_0x1062ec=>this['editor']['model'][_0x3f60('0x49')](_0x1062ec)),_0x24d456=this[_0x3f60('0xbb')][_0x3f60('0xaf')][_0x3f60('0xb1')](_0x3f60('0xa'))['me']['id'],_0x3e1bff=_0x574f8b(this[_0x3f60('0xbb')]['locale'],_0x7599eb?'Empty\x20document':_0x3f60('0xa3'));this[_0x3f60('0xcb')]({'from':_0x563ac7,'to':_0x563ac7,'id':this[_0x3f60('0xf1')],'name':_0x3e1bff,'creatorId':_0x24d456});}}[_0x3f60('0x30')](_0x524852){const _0x1e0293=this['_source'][_0x3f60('0x4a')]();this[_0x3f60('0x7c')]=this[_0x3f60('0x8f')]['getRevision'](_0x1e0293),this[_0x3f60('0x7c')]||(this['currentRevision']=this[_0x3f60('0xcb')]({'from':_0x524852,'to':_0x524852,'id':_0x1e0293,'name':'','creatorId':null}));}['_makeRevision']({name:_0x24f006,from:_0x4736a3,to:_0x30dc27,creatorId:_0x3283d9,id:_0x4bbc86}){const _0x1c94c6=this[_0x3f60('0x109')]({'from':_0x4736a3,'to':_0x30dc27});_0x1c94c6[_0x3f60('0x34')]=_0x24f006,_0x1c94c6[_0x3f60('0x32')]=_0x3283d9,_0x1c94c6['id']=_0x4bbc86;const _0x2586cf=this[_0x3f60('0xb')](_0x1c94c6);return this[_0x3f60('0xcf')]&&this[_0x3f60('0x82')](_0x1c94c6['id'],_0x1c94c6,!0x0),_0x2586cf;}[_0x3f60('0x44')](){this[_0x3f60('0xbb')][_0x3f60('0x2f')][_0x3f60('0xeb')]('dataDowncast')['markerToData']({'model':_0x3f60('0x41')});}[_0x3f60('0x8b')](_0x4ad89a){return(_0x4ad89a=_0x4ad89a['filter'](_0x1bddb8=>!_0x1bddb8['name']||'revision-start'!==_0x1bddb8['name']&&_0x3f60('0xd8')!==_0x1bddb8[_0x3f60('0x34')]))[_0x3f60('0x98')](_0xc3e01a=>{_0x3f60('0xe9')!=typeof _0xc3e01a&&(_0xc3e01a[_0x3f60('0x3d')]=this[_0x3f60('0x8b')](_0xc3e01a[_0x3f60('0x3d')]),_0xc3e01a[_0x3f60('0xe2')]=_0xc3e01a[_0x3f60('0xe2')][_0x3f60('0x5f')](_0x15f970=>!_0x15f970[0x0][_0x3f60('0xa9')]('data-revision-')));}),_0x4ad89a;}}function J(_0x56a99d,_0xae1f73){const _0x148ded=_0xae1f73['editing'][_0x3f60('0xc5')]['document'];if(_0x3f60('0xe9')==typeof _0x56a99d)return new _0x727ddd(_0x148ded,_0x56a99d);{const _0x57b9f1=_0x56a99d[_0x3f60('0x3d')]['map'](_0x48d1b5=>J(_0x48d1b5,_0xae1f73));return new(B[_0x56a99d[(_0x3f60('0xdb'))]]||_0x573196)(_0x148ded,_0x56a99d[_0x3f60('0x34')],_0x56a99d[_0x3f60('0xe2')],_0x57b9f1);}}class H{constructor(_0x1e7710){this[_0x3f60('0xbb')]=_0x1e7710,this[_0x3f60('0x47')]=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this[_0x3f60('0xb7')]=new Map(),this[_0x3f60('0x85')]=new Map(),this[_0x3f60('0xe4')]=new Map(),this[_0x3f60('0x100')]=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this[_0x3f60('0x8c')]=new Map(),this[_0x3f60('0x4d')]=new Map(),this[_0x3f60('0x42')]=new Map(),this[_0x3f60('0xc4')]=new Map(),this[_0x3f60('0x7')]=0x1;}[_0x3f60('0x21')](_0x46bd7a){this[_0x3f60('0xb3')]=_0x46bd7a;const _0x32c9f6=new Map(),_0x28eff0=new Map(),_0xafd021=this[_0x3f60('0xbb')][_0x3f60('0xa0')][_0x3f60('0xf')][_0x3f60('0x19')][_0x3f60('0xdd')](_0x1431bb=>_0x1431bb[_0x3f60('0xed')]);for(const _0x267eef of _0xafd021){const _0x132bce=this[_0x3f60('0xbb')]['model'][_0x3f60('0xf')][_0x3f60('0xc3')](_0x267eef),_0x562e65=q(_0x132bce);_0x32c9f6[_0x3f60('0xe8')](_0x267eef,_0x562e65),_0x28eff0[_0x3f60('0xe8')](_0x267eef,Object[_0x3f60('0x5b')](_0x132bce[_0x3f60('0x73')]()));}const _0x56e00f=Array[_0x3f60('0x3f')](this[_0x3f60('0xbb')][_0x3f60('0xa0')][_0x3f60('0x72')])[_0x3f60('0xdd')](_0x27d804=>[_0x27d804[_0x3f60('0x34')],_0x27d804[_0x3f60('0xb5')]()]),_0x544044=this[_0x3f60('0xb3')][_0x3f60('0x93')];this[_0x3f60('0x22')](_0x544044,_0x32c9f6,_0x56e00f,_0x28eff0),this[_0x3f60('0x18')]=this[_0x3f60('0x7')];const _0x13862a=new Map(),_0x32a55b=new Map();for(const _0x43550f of _0xafd021){const _0x2016c6=G(_0x43550f);_0x13862a[_0x3f60('0xe8')](_0x43550f,_0x2016c6),_0x32a55b[_0x3f60('0xe8')](_0x43550f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x13862a,[],_0x32a55b);}[_0x3f60('0xb0')](_0x2aad37,_0x216ba7){if(this[_0x3f60('0x5')]===_0x2aad37&&this[_0x3f60('0x29')]<=_0x216ba7)this['_savedMetaData'][_0x3f60('0x5e')]>0x1&&this[_0x3f60('0x4b')](this[_0x3f60('0x29')]),this[_0x3f60('0x63')](this[_0x3f60('0x29')],_0x216ba7,!0x0);else{if(!this[_0x3f60('0x47')][_0x3f60('0x77')](_0x2aad37)){const _0xc344d4=this[_0x3f60('0x1d')](_0x2aad37);this[_0x3f60('0xd0')](_0xc344d4,_0x2aad37,!0x1);}this[_0x3f60('0xd0')](_0x2aad37,_0x216ba7,!0x0);}return this[_0x3f60('0x5')]=_0x2aad37,this[_0x3f60('0x29')]=_0x216ba7,this[_0x3f60('0x37')]();}[_0x3f60('0xec')](_0x3492bb){this['_reset'](),this[_0x3f60('0x5')]=_0x3492bb['fromVersion'],this[_0x3f60('0x29')]=_0x3492bb[_0x3f60('0xaa')];for(const _0xf3a280 in _0x3492bb['diffData']){const _0x530191=_0x3492bb[_0x3f60('0x94')][_0xf3a280][_0x3f60('0x8e')],_0x37f5d9=_0x136f39(_0x3492bb[_0x3f60('0x94')][_0xf3a280]['attributesBefore'])||{},_0xc624ac=this['_makeModelFromViewString'](_0x3492bb['diffData'][_0xf3a280][_0x3f60('0xcd')]);_0xc624ac[_0x3f60('0xed')]=_0xf3a280,_0xc624ac[_0x3f60('0x2c')]=!_0x530191||!_0x530191[_0x3f60('0x2b')],_0xc624ac[_0x3f60('0x2b')]=()=>_0xc624ac['_isAttached'],this[_0x3f60('0x100')][_0x3f60('0xe8')](_0xf3a280,_0xc624ac),this[_0x3f60('0xd7')][_0x3f60('0xe8')](_0xf3a280,_0x37f5d9),_0x530191&&this['_touchedRoots']['set'](_0xf3a280,_0x530191);const _0x25b911=this[_0x3f60('0x55')](_0xc624ac);this[_0x3f60('0x8c')]['set'](_0xf3a280,_0x25b911);for(const [_0x2e2175,_0x279c35]of _0xc624ac[_0x3f60('0x72')]){if(!_0x2e2175[_0x3f60('0xa9')](_0x3f60('0xd1')))continue;const _0x397439=_0x2e2175[_0x3f60('0x104')](':')[0x2];for(const _0x14d6c2 of _0x279c35[_0x3f60('0x6a')]({'singleCharacters':!0x0})){const _0x2082de=this[_0x3f60('0xd4')](_0x14d6c2),_0x18a265='elementEnd'==_0x14d6c2[_0x3f60('0xdb')]?_0x14d6c2[_0x3f60('0x2a')]['path'][_0x3f60('0xb8')](0x0,-0x1):_0x14d6c2[_0x3f60('0x2a')]['path'],_0x376643=_0x25b911['getNodeByPath'](_0x18a265)[_0x3f60('0xfb')](_0x2082de);this[_0x3f60('0x4d')]['set'](_0x376643,{'userId':_0x397439});}}}this[_0x3f60('0x18')]=this[_0x3f60('0x7')];const _0x1bd92e=[...Array(this[_0x3f60('0x7')])[_0x3f60('0xf9')]()]['slice'](0x1)[_0x3f60('0x5f')](_0x5f3e4e=>!this[_0x3f60('0x4d')][_0x3f60('0x77')](_0x5f3e4e));let _0x3abb23=0x0;const _0x374355=new Map();for(const _0x2dc4a9 in _0x3492bb['diffData']){const _0x4b4f3b=_0x3492bb['diffData'][_0x2dc4a9][_0x3f60('0x8e')],_0x533cd5=_0x136f39(_0x3492bb[_0x3f60('0x94')][_0x2dc4a9]['attributesAfter'])||{},_0x52da58=this[_0x3f60('0x95')](_0x3492bb[_0x3f60('0x94')][_0x2dc4a9]['insertions']);_0x52da58[_0x3f60('0xed')]=_0x2dc4a9,_0x52da58[_0x3f60('0x2c')]=!_0x4b4f3b||_0x4b4f3b['isAttached'],_0x52da58[_0x3f60('0x2b')]=()=>_0x52da58[_0x3f60('0x2c')],this[_0x3f60('0x85')][_0x3f60('0xe8')](_0x2dc4a9,_0x52da58),this[_0x3f60('0xe4')][_0x3f60('0xe8')](_0x2dc4a9,_0x533cd5);const _0x169168=this[_0x3f60('0x55')](_0x52da58,Number[_0x3f60('0x108')]);this[_0x3f60('0xf6')]['set'](_0x2dc4a9,_0x169168),_0x374355[_0x3f60('0xe8')](_0x2dc4a9,_0x52da58['isAttached']()?_0x533cd5:{});for(const [_0x19531a,_0x39ce1e]of _0x52da58[_0x3f60('0x72')]){if(!_0x19531a[_0x3f60('0xa9')](_0x3f60('0xd1')))continue;const _0x124fae=_0x19531a[_0x3f60('0x104')](':')[0x2];for(const _0x1f3fea of _0x39ce1e[_0x3f60('0x6a')]({'singleCharacters':!0x0})){const _0x1e424c=this['_getVidAttributeName'](_0x1f3fea),_0x3198c2=this[_0x3f60('0x7')]++,_0x561a34=_0x3f60('0xad')==_0x1f3fea[_0x3f60('0xdb')]?_0x1f3fea['previousPosition'][_0x3f60('0x10')][_0x3f60('0xb8')](0x0,-0x1):_0x1f3fea['previousPosition']['path'];_0x169168[_0x3f60('0x23')](_0x561a34)['_setAttribute'](_0x1e424c,_0x3198c2),this['_touched'][_0x3f60('0xe8')](_0x3198c2,{'userId':_0x124fae});}}for(const _0x4b8d8c of this['editor'][_0x3f60('0xa0')][_0x3f60('0x78')](_0x52da58)[_0x3f60('0x6a')]({'singleCharacters':!0x0})){const _0x3941b7=this[_0x3f60('0xd4')](_0x4b8d8c),_0x2ba971=_0x3f60('0xad')==_0x4b8d8c[_0x3f60('0xdb')]?_0x4b8d8c['previousPosition'][_0x3f60('0x10')][_0x3f60('0xb8')](0x0,-0x1):_0x4b8d8c[_0x3f60('0x2a')]['path'],_0x36f4e8=_0x169168[_0x3f60('0x23')](_0x2ba971);_0x36f4e8['getAttribute'](_0x3941b7)>0x0||_0x36f4e8[_0x3f60('0xf5')](_0x3941b7,_0x1bd92e[_0x3abb23++]);}for(const [_0xd04756,_0x2e8919]of _0x52da58[_0x3f60('0x72')])_0xd04756[_0x3f60('0xa9')](_0x3f60('0xd1'))||this['_markers'][_0x3f60('0xe8')](_0xd04756,_0x2e8919);}const _0x37340b=G(_0x3f60('0xe5'));this[_0x3f60('0x100')][_0x3f60('0xe8')](_0x3f60('0xe5'),_0x37340b),this[_0x3f60('0x8c')][_0x3f60('0xe8')]('$graveyard',this[_0x3f60('0x55')](_0x37340b,0x1));const _0x5d3af2=G(_0x3f60('0xe5'));this[_0x3f60('0x85')][_0x3f60('0xe8')](_0x3f60('0xe5'),_0x5d3af2),this[_0x3f60('0xf6')]['set'](_0x3f60('0xe5'),this[_0x3f60('0x55')](_0x5d3af2,0x1));const _0xdf674=Array[_0x3f60('0x3f')](this[_0x3f60('0x85')])['map'](([_0x33c6f9,_0x56e352])=>[_0x33c6f9,q(_0x56e352)]);this[_0x3f60('0x22')](this[_0x3f60('0x29')],_0xdf674,this[_0x3f60('0xb7')],_0x374355);}[_0x3f60('0x95')](_0x55a51d){const _0x4bd514=JSON[_0x3f60('0x71')](_0x55a51d),_0x4bdfe9=this[_0x3f60('0xbb')][_0x3f60('0xf8')][_0x3f60('0xc5')][_0x3f60('0xf')],_0x12794e=new _0x391344(_0x4bdfe9,_0x4bd514[_0x3f60('0xdd')](_0x661a12=>J(_0x661a12,this[_0x3f60('0xbb')])));return this[_0x3f60('0xbb')][_0x3f60('0x92')]['toModel'](_0x12794e);}[_0x3f60('0x22')](_0x4915fe,_0x4e3cb2,_0x2e4f1b,_0x302e31){const _0x45356b=new Map(_0x4e3cb2),_0x8d1042=new Map(_0x136f39(_0x302e31)),_0x1bb644=new Map();for(const [_0x27b33f,_0x409510]of _0x2e4f1b)_0x1bb644['set'](_0x27b33f,{'start':_0x409510[_0x3f60('0x33')][_0x3f60('0x83')](),'end':_0x409510[_0x3f60('0xac')]['clone'](),'rootName':_0x409510['root']['rootName']});this['_savedMetaData'][_0x3f60('0xe8')](_0x4915fe,{'roots':_0x45356b,'markers':_0x1bb644,'rootsAttributes':_0x8d1042});}[_0x3f60('0x4b')](_0xcfc32e){this[_0x3f60('0x47')][_0x3f60('0x75')](_0xcfc32e);}[_0x3f60('0xc9')](){this[_0x3f60('0x106')](),this[_0x3f60('0x5')]=-0x1,this[_0x3f60('0x29')]=-0x1,this[_0x3f60('0x47')]['clear'](),this[_0x3f60('0x21')](this[_0x3f60('0xb3')]);}[_0x3f60('0x106')](){this[_0x3f60('0x4d')][_0x3f60('0xa8')](),this[_0x3f60('0x42')][_0x3f60('0xa8')](),this['_touchedRoots'][_0x3f60('0xa8')](),this[_0x3f60('0x85')][_0x3f60('0xa8')](),this['_diffRootsAttributes'][_0x3f60('0xa8')](),this[_0x3f60('0x100')][_0x3f60('0xa8')](),this[_0x3f60('0xd7')][_0x3f60('0xa8')](),this[_0x3f60('0xf6')]['clear'](),this[_0x3f60('0x8c')][_0x3f60('0xa8')](),this['_markers'][_0x3f60('0xa8')](),this[_0x3f60('0x7')]=0x1,this[_0x3f60('0x18')]=this[_0x3f60('0x7')];}[_0x3f60('0x55')](_0x44c7be,_0x45c224=null){let _0x152f55=null;_0x44c7be['is']('documentFragment')||(_0x152f55=new _0x2cfae2(_0x44c7be['name'],{'vid_start':null===_0x45c224?this['_revisionId']++:_0x45c224++}));const _0x2c37bd=[];for(const _0xa136b4 of _0x44c7be[_0x3f60('0xe6')]())if(_0xa136b4['is'](_0x3f60('0xc'))){_0x2c37bd[_0x3f60('0xd9')](this['_makeIdsRoot'](_0xa136b4,_0x45c224));const _0x39a7fc=_0x2c37bd[_0x2c37bd[_0x3f60('0x9f')]-0x1];null!==_0x45c224&&(_0x45c224=_0x39a7fc['is'](_0x3f60('0xc'),'$text')?_0x39a7fc['getAttribute']('vid')+0x1:_0x39a7fc[_0x3f60('0xfb')](_0x3f60('0xae'))+0x1);}else for(let _0x23451f=0x0;_0x23451f<_0xa136b4[_0x3f60('0xc1')];_0x23451f++)_0x2c37bd[_0x3f60('0xd9')](new _0x2cfae2(_0x3f60('0xa5'),{'vid':null===_0x45c224?this[_0x3f60('0x7')]++:_0x45c224++}));if(_0x44c7be['is']('documentFragment')){const _0x4b98be=G(_0x44c7be[_0x3f60('0xed')]);return _0x4b98be[_0x3f60('0x8')](0x0,_0x2c37bd),_0x4b98be;}return _0x152f55[_0x3f60('0xf5')](_0x3f60('0xae'),null===_0x45c224?this['_revisionId']++:_0x45c224++),_0x152f55['_insertChild'](0x0,_0x2c37bd),_0x152f55;}[_0x3f60('0xd0')](_0x4ce210,_0x5eb110,_0x314779){this['_reset']();const {roots:_0x25e75c,markers:_0x2083e5,rootsAttributes:_0x1da7fd}=this['_savedMetaData'][_0x3f60('0xb1')](_0x4ce210);this['_baseRoots']=new Map(_0x25e75c),this['_baseRootsAttributes']=new Map(_0x136f39(_0x1da7fd));for(const [_0x3eef03,_0x36cf22]of this['_baseRoots'])if(_0x3f60('0xe5')!==_0x3eef03&&(this['_diffRoots']['set'](_0x3eef03,q(_0x36cf22)),this[_0x3f60('0xe4')]=new Map(_0x136f39(_0x1da7fd)),_0x314779)){const _0x4ae84f=this[_0x3f60('0x7')];this[_0x3f60('0xf6')]['set'](_0x3eef03,this['_makeIdsRoot'](_0x36cf22)),this['_baseIdsRoots'][_0x3f60('0xe8')](_0x3eef03,this[_0x3f60('0x55')](_0x36cf22,_0x4ae84f));}this[_0x3f60('0x18')]=this['_revisionId'],this['_diffRoots'][_0x3f60('0xe8')](_0x3f60('0xe5'),q(this['_baseRoots']['get'](_0x3f60('0xe5')))),_0x314779&&this[_0x3f60('0xf6')][_0x3f60('0xe8')](_0x3f60('0xe5'),this[_0x3f60('0x55')](this[_0x3f60('0x100')]['get'](_0x3f60('0xe5'))));for(const [_0x5402d1,_0x53276c]of _0x2083e5){const _0x56ce0a=this[_0x3f60('0x100')][_0x3f60('0xb1')](_0x53276c[_0x3f60('0xed')]),_0x35b728=this['_diffRoots'][_0x3f60('0xb1')](_0x53276c['rootName']),_0x4229b3=new _0x90af34(this[_0x3f60('0xa6')](_0x53276c[_0x3f60('0x33')],_0x56ce0a),this[_0x3f60('0xa6')](_0x53276c[_0x3f60('0xac')],_0x56ce0a)),_0x127cbb=this['_fixRange'](_0x4229b3,_0x35b728);_0x56ce0a[_0x3f60('0x72')]['set'](_0x5402d1,_0x4229b3),this[_0x3f60('0xb7')][_0x3f60('0xe8')](_0x5402d1,_0x127cbb);}this[_0x3f60('0x63')](_0x4ce210,_0x5eb110,_0x314779);}['_applyOperations'](_0x52cada,_0x2b8251,_0x118e9d){for(const _0x4f47f8 of this[_0x3f60('0xb3')][_0x3f60('0x7e')](_0x52cada,_0x2b8251))this[_0x3f60('0x80')](_0x4f47f8,_0x118e9d);for(const _0x5f08c9 of this['_diffRoots'][_0x3f60('0x1')]())_0x5f08c9[_0x3f60('0x72')][_0x3f60('0xa8')]();for(const [_0x46b5e2,_0x183a0a]of this[_0x3f60('0xb7')]){this[_0x3f60('0x85')][_0x3f60('0xb1')](_0x183a0a[_0x3f60('0x1b')][_0x3f60('0xed')])[_0x3f60('0x72')][_0x3f60('0xe8')](_0x46b5e2,_0x183a0a['clone']());}const _0x5d264b=new Map(),_0x2c915e=new Map();for(const [_0x4a94fe,_0x2fb02e]of this[_0x3f60('0x85')])_0x5d264b[_0x3f60('0xe8')](_0x4a94fe,q(_0x2fb02e)),_0x2c915e[_0x3f60('0xe8')](_0x4a94fe,this[_0x3f60('0xe4')][_0x3f60('0xb1')](_0x4a94fe));this[_0x3f60('0x22')](_0x2b8251,_0x5d264b,this[_0x3f60('0xb7')],_0x2c915e);}['_getPreviousFrom'](_0x18affe){const _0xe5b268=Array[_0x3f60('0x3f')](this['_savedMetaData']['keys']());_0xe5b268['sort']((_0x2bad7d,_0x4314cc)=>_0x2bad7d-_0x4314cc),_0xe5b268[_0x3f60('0xbd')]();for(const _0x2ffd65 of _0xe5b268)if(_0x2ffd65<_0x18affe)return _0x2ffd65;return Number[_0x3f60('0x108')];}[_0x3f60('0xe')](_0x51134b,_0x47e5f4){const _0x45e593=Array[_0x3f60('0x3f')](_0x47e5f4[_0x3f60('0x72')])['map'](([_0x5f3b96,_0x356574])=>[_0x5f3b96,this[_0x3f60('0x12')](_0x356574,_0x51134b)]);_0x51134b[_0x3f60('0x72')]=new Map(_0x45e593);}[_0x3f60('0xfc')](_0x3377fd){for(const _0x11e977 of this[_0x3f60('0xb7')][_0x3f60('0x1')]()){const _0xc3c3c0=_0x11e977['getTransformedByOperation'](_0x3377fd),_0x19bb42=_0x90af34[_0x3f60('0xee')](_0xc3c3c0);_0x11e977['start']=_0x19bb42[_0x3f60('0x33')],_0x11e977['end']=_0x19bb42[_0x3f60('0xac')];}}[_0x3f60('0x80')](_0x82a5da,_0x469cc3){if(_0x3f60('0x2d')==_0x82a5da['type']||_0x3f60('0x5c')==_0x82a5da[_0x3f60('0xdb')])return void this['_handleRootOperation'](_0x82a5da,_0x469cc3);if(_0x3f60('0x31')==_0x82a5da[_0x3f60('0xdb')]){const _0x2f8c4f=_0x82a5da[_0x3f60('0x24')][_0x3f60('0x1b')]['rootName'];this['_diffRoots'][_0x3f60('0x77')](_0x2f8c4f)||(this[_0x3f60('0x85')]['set'](_0x2f8c4f,G(_0x2f8c4f,!0x0)),this['_diffRootsAttributes']['set'](_0x2f8c4f,{}),_0x469cc3&&this[_0x3f60('0xf6')][_0x3f60('0xe8')](_0x2f8c4f,G(_0x2f8c4f,!0x0)));}else{if(_0x3f60('0xa4')==_0x82a5da[_0x3f60('0xdb')]||_0x3f60('0x59')==_0x82a5da[_0x3f60('0xdb')]||'changeRootAttribute'==_0x82a5da[_0x3f60('0xdb')])return void this[_0x3f60('0x96')](_0x82a5da);}const _0xd8d2bc=this['_cloneOperation'](_0x82a5da,this[_0x3f60('0x85')]);if('marker'!==_0x82a5da[_0x3f60('0xdb')]&&(_0xd8d2bc['_execute'](),this['_transformMarkers'](_0xd8d2bc)),_0x469cc3)switch(_0xd8d2bc[_0x3f60('0xdb')]){case _0x3f60('0x31'):this[_0x3f60('0x88')](_0x82a5da);break;case _0x3f60('0x3c'):case _0x3f60('0x9b'):case _0x3f60('0x105'):this[_0x3f60('0xea')](_0x82a5da);break;case _0x3f60('0x6b'):this[_0x3f60('0x2')](_0x82a5da);break;case _0x3f60('0x104'):this[_0x3f60('0x50')](_0x82a5da);break;case'marker':this[_0x3f60('0xfa')](_0x82a5da);}}[_0x3f60('0xd')](_0x1c53ac,_0x13ceb5){const _0x5c633a=_0x1c53ac[_0x3f60('0x83')]();return _0x5c633a[_0x3f60('0x35')]=_0x1c53ac[_0x3f60('0x35')],this[_0x3f60('0x76')](_0x5c633a,_0x13ceb5),_0x5c633a;}[_0x3f60('0xbc')](_0x1f414a){return _0x1f414a[_0x3f60('0xdd')](_0x69ad7c=>{const _0x384238=this['_getVidAttributeName'](_0x69ad7c);return Number(_0x69ad7c['item']['getAttribute'](_0x384238));});}[_0x3f60('0xb9')](_0x26a99e,_0x3690a4){if(_0x26a99e['is'](_0x3f60('0xc'),_0x3f60('0xa5')))_0x3690a4[_0x3f60('0xd9')]({'item':_0x26a99e,'type':_0x3f60('0xc0')});else{_0x26a99e['is'](_0x3f60('0xc'))&&_0x3690a4['push']({'item':_0x26a99e,'type':'elementStart'});for(const _0x2cdfb1 of _0x26a99e[_0x3f60('0xe6')]())this[_0x3f60('0xb9')](_0x2cdfb1,_0x3690a4);_0x26a99e['is'](_0x3f60('0xc'))&&_0x3690a4[_0x3f60('0xd9')]({'item':_0x26a99e,'type':'elementEnd'});}return _0x3690a4;}['_getState'](){const _0xaf7383=new Map(this[_0x3f60('0x4d')]),_0x322b21=new Map(_0xaf7383),_0x3d37cb=new Map(),_0x7c6dc8={'insertions':{},'deletions':{}},_0x8c3eac={'insertions':{},'deletions':{}},_0xed6ed3=new Map(),_0x52378a=new Set([...this['_baseRoots'][_0x3f60('0xf9')](),...this[_0x3f60('0x85')][_0x3f60('0xf9')]()]);_0x52378a[_0x3f60('0x75')](_0x3f60('0xe5'));for(const _0x588a1f of _0x52378a){const _0x268958=this['_diffRoots'][_0x3f60('0xb1')](_0x588a1f)||G(_0x588a1f,!0x1),_0x2d79af=this[_0x3f60('0x100')][_0x3f60('0xb1')](_0x588a1f)||G(_0x588a1f,!0x1);_0x268958['isAttached']()||_0x2d79af[_0x3f60('0x2b')]()?(_0x7c6dc8['insertions'][_0x588a1f]=q(_0x268958),_0x7c6dc8[_0x3f60('0xcd')][_0x588a1f]=q(_0x2d79af),this[_0x3f60('0xe')](_0x7c6dc8['deletions'][_0x588a1f],_0x2d79af),this[_0x3f60('0xe')](_0x7c6dc8['insertions'][_0x588a1f],_0x268958),_0x8c3eac[_0x3f60('0x38')][_0x588a1f]=this['_generateTape'](this[_0x3f60('0xf6')][_0x3f60('0xb1')](_0x588a1f),[]),_0x8c3eac[_0x3f60('0xcd')][_0x588a1f]=this[_0x3f60('0xb9')](this[_0x3f60('0x8c')]['get'](_0x588a1f)||G(_0x588a1f,!0x1),[])):_0x52378a['delete'](_0x588a1f);}for(const _0x18772d of _0x52378a){const _0x45bbd2=_0x8c3eac[_0x3f60('0x38')][_0x18772d];for(const _0x3592d3 of _0x45bbd2){const _0x8a33f3=this[_0x3f60('0xd4')](_0x3592d3),_0x435874=_0x3592d3[_0x3f60('0xdf')][_0x3f60('0xfb')](_0x8a33f3);_0x322b21[_0x3f60('0x75')](_0x435874),_0x435874>=this[_0x3f60('0x18')]&&_0x3d37cb[_0x3f60('0xe8')](_0x435874,_0xaf7383['get'](_0x435874));}}for(const _0x2f69e4 of _0x52378a){const _0x381721=_0x8c3eac[_0x3f60('0x38')][_0x2f69e4],_0x3ee380=this[_0x3f60('0xbc')](_0x8c3eac[_0x3f60('0xcd')][_0x2f69e4]);let _0x39f337=0x0;for(const _0x5d4e10 of _0x381721){const _0x74ccb0=this[_0x3f60('0xd4')](_0x5d4e10),_0x35c34d=_0x5d4e10[_0x3f60('0xdf')]['getAttribute'](_0x74ccb0);if(!_0x3d37cb[_0x3f60('0x77')](_0x35c34d)&&!_0xed6ed3[_0x3f60('0x77')](_0x35c34d)){if(_0x322b21['has'](_0x35c34d))_0x39f337++;else{if(_0x35c34d!=_0x3ee380[_0x39f337]){const _0x1a6ff2=_0xaf7383[_0x3f60('0xb1')](_0x35c34d)||_0xaf7383[_0x3f60('0xb1')](_0x3ee380[_0x39f337]);for(;_0x35c34d!=_0x3ee380[_0x39f337];)_0x322b21[_0x3f60('0x77')](_0x3ee380[_0x39f337])||(_0xed6ed3[_0x3f60('0xe8')](_0x3ee380[_0x39f337],_0x1a6ff2),_0xaf7383[_0x3f60('0xe8')](_0x3ee380[_0x39f337],_0x1a6ff2)),_0x39f337++;}_0x39f337++;}}}}for(const _0x591fae of _0x52378a){const _0x3ba30f=_0x8c3eac['insertions'][_0x591fae];for(const _0x1a51f6 of _0x3ba30f){const _0x26195a=this[_0x3f60('0xd4')](_0x1a51f6),_0x321857=_0x1a51f6[_0x3f60('0xdf')][_0x3f60('0xfb')](_0x26195a);if(_0xed6ed3[_0x3f60('0x77')](_0x321857)){const _0x4e9c76=_0xed6ed3['get'](_0x321857);_0x322b21[_0x3f60('0x77')](_0x321857)||_0x322b21[_0x3f60('0xe8')](_0x321857,{..._0x4e9c76}),_0x3d37cb['set'](_0x321857,{..._0x4e9c76});}}}for(const _0x272948 of _0x322b21[_0x3f60('0xf9')]())_0x272948>=this[_0x3f60('0x18')]&&_0x322b21[_0x3f60('0x75')](_0x272948);const _0x131c31=new Map();for(const _0x3e1dc9 of _0x52378a){let _0x398ac1=_0x8c3eac[_0x3f60('0x38')][_0x3e1dc9];for(const _0x5965da of _0x398ac1)if(_0x5965da[_0x3f60('0xdf')]['is'](_0x3f60('0xc'),_0x3f60('0x1a'))){const _0x5aa647=this[_0x3f60('0xd4')](_0x5965da),_0x13dcaf=_0x5965da[_0x3f60('0xdf')][_0x3f60('0xfb')](_0x5aa647);if(_0x3d37cb[_0x3f60('0x77')](_0x13dcaf)){const _0x469334=_0x5965da[_0x3f60('0xdf')][_0x3f60('0xf0')][_0x3f60('0xf0')][_0x3f60('0xfb')](_0x3f60('0xfd')),_0x59b129=_0x131c31[_0x3f60('0xb1')](_0x469334)||new Set();_0x59b129['add'](_0x3d37cb[_0x3f60('0xb1')](_0x13dcaf)['userId']),_0x131c31[_0x3f60('0xe8')](_0x469334,_0x59b129);}}_0x398ac1=_0x8c3eac[_0x3f60('0xcd')][_0x3e1dc9];for(const _0x4c0f9e of _0x398ac1)if(_0x4c0f9e[_0x3f60('0xdf')]['is'](_0x3f60('0xc'),_0x3f60('0x1a'))){const _0x1c2480=this[_0x3f60('0xd4')](_0x4c0f9e),_0x7d386d=_0x4c0f9e[_0x3f60('0xdf')]['getAttribute'](_0x1c2480);if(_0x322b21[_0x3f60('0x77')](_0x7d386d)){const _0x5898c7=_0x4c0f9e[_0x3f60('0xdf')][_0x3f60('0xf0')]['parent'][_0x3f60('0xfb')](_0x3f60('0xfd')),_0x1d4dcd=_0x131c31['get'](_0x5898c7)||new Set();_0x1d4dcd[_0x3f60('0xc8')](_0x322b21[_0x3f60('0xb1')](_0x7d386d)[_0x3f60('0x91')]),_0x131c31[_0x3f60('0xe8')](_0x5898c7,_0x1d4dcd);}}for(const _0x1b953 of _0x131c31[_0x3f60('0xf9')]())(_0x3d37cb[_0x3f60('0x77')](_0x1b953)||_0x322b21[_0x3f60('0x77')](_0x1b953))&&_0x131c31[_0x3f60('0x75')](_0x1b953);}for(const _0x55e039 of _0x52378a){const _0x17fcb9=_0x8c3eac[_0x3f60('0x38')][_0x55e039];let _0x320441=null,_0x58c764=null;for(const _0x3dac8d of _0x17fcb9){const _0xc8ff95=this['_getVidAttributeName'](_0x3dac8d),_0x507498=_0x3dac8d[_0x3f60('0xdf')][_0x3f60('0xfb')](_0xc8ff95),_0x35ff49=_0x131c31['get'](_0x507498);_0x35ff49&&_0x3f60('0xf3')==_0x3dac8d[_0x3f60('0xdb')]&&(_0x320441=Array[_0x3f60('0x3f')](_0x35ff49)[0x0],_0x58c764=_0x3dac8d['item'][_0x3f60('0xfb')](_0x3f60('0xae'))),_0x320441&&(_0x322b21[_0x3f60('0xe8')](_0x507498,{'userId':_0x320441}),_0x3d37cb[_0x3f60('0xe8')](_0x507498,{'userId':_0x320441})),_0x507498==_0x58c764&&(_0x320441=null,_0x58c764=null);}}const _0x12e423={},_0x5b1fbb=new Set();for(const _0x2b9fe1 of _0x52378a){const _0x150398=_0x7c6dc8[_0x3f60('0xcd')][_0x2b9fe1],_0x5cc7e7=_0x7c6dc8[_0x3f60('0x38')][_0x2b9fe1];for(const {userId:_0x3cec78}of this[_0x3f60('0x42')]['values']())null!==_0x3cec78&&_0x5b1fbb[_0x3f60('0xc8')](_0x3cec78);for(const {userId:_0x39fd5f}of this['_touchedRoots'][_0x3f60('0x1')]())null!==_0x39fd5f&&_0x5b1fbb['add'](_0x39fd5f);this[_0x3f60('0x56')](_0x5cc7e7,_0x8c3eac['insertions'][_0x2b9fe1],_0x3d37cb,_0x3f60('0xe3'),_0x5b1fbb),this['_markChanges'](_0x150398,_0x8c3eac[_0x3f60('0xcd')][_0x2b9fe1],_0x322b21,_0x3f60('0x67'),_0x5b1fbb),_0x12e423[_0x2b9fe1]={'insertions':this[_0x3f60('0x1c')](_0x5cc7e7),'deletions':this[_0x3f60('0x1c')](_0x150398),'attachChange':this[_0x3f60('0xc4')][_0x3f60('0xb1')](_0x2b9fe1)||null,'attributesBefore':_0x136f39(this['_baseRootsAttributes'][_0x3f60('0xb1')](_0x2b9fe1))||{},'attributesAfter':_0x136f39(this[_0x3f60('0xe4')]['get'](_0x2b9fe1))};}return{'diffData':_0x12e423,'authorsIds':Array[_0x3f60('0x3f')](_0x5b1fbb)};}['_processRootBeforeSave'](_0x17bbf4){for(const [,_0x4719ec]of _0x17bbf4[_0x3f60('0x72')]){const _0x3b4d3a=_0x4719ec[_0x3f60('0x33')][_0x3f60('0x74')]()[_0x3f60('0x5f')](_0x553901=>_0x3f60('0x1a')==_0x553901[_0x3f60('0x34')]);for(const _0x2d6b76 of _0x3b4d3a)0x1==_0x2d6b76[_0x3f60('0xdc')]&&_0x2d6b76[_0x3f60('0x99')](0x0)['is'](_0x3f60('0xc'),_0x3f60('0x3e'))&&_0x2d6b76[_0x3f60('0x99')](0x0)[_0x3f60('0xf5')](_0x3f60('0x90'),!0x0);}}[_0x3f60('0x1c')](_0x17c6e0){this['_processRootBeforeSave'](_0x17c6e0);const _0x52dea4=this['editor'][_0x3f60('0x92')][_0x3f60('0xa2')](_0x17c6e0,{}),_0x56ccd1=Array[_0x3f60('0x3f')](_0x52dea4[_0x3f60('0xe6')]())[_0x3f60('0xdd')](_0x4b8c09=>this['_getViewJson'](_0x4b8c09));return JSON[_0x3f60('0x7f')](_0x56ccd1);}['_getViewJson'](_0x367716){if(_0x367716['is'](_0x3f60('0xa5')))return _0x367716['data'];{const _0x2e7028=_0x367716;return{'type':Object[_0x3f60('0xf9')](B)[_0x3f60('0xa1')](_0x14e007=>_0x367716 instanceof B[_0x14e007]),'name':_0x2e7028[_0x3f60('0x34')],'attributes':Array[_0x3f60('0x3f')](_0x2e7028[_0x3f60('0x73')]()),'children':Array[_0x3f60('0x3f')](_0x2e7028['getChildren']())['map'](_0x1fbf55=>this[_0x3f60('0xbf')](_0x1fbf55))};}}[_0x3f60('0x56')](_0x158f6c,_0x129242,_0x4eb7b9,_0x2c1e9a,_0x30b48d){let _0x4dd3b4=null,_0x5ea173=null,_0x41edc7=0x0;const _0x17c353=this[_0x3f60('0xbb')][_0x3f60('0xa0')];for(let _0x227b81=0x0;_0x227b81<_0x129242[_0x3f60('0x9f')];_0x227b81++){const _0x1f54b3=this[_0x3f60('0xd4')](_0x129242[_0x227b81]),_0x1a03d8=_0x129242[_0x227b81][_0x3f60('0xdf')][_0x3f60('0xfb')](_0x1f54b3),_0x8c4da5=_0x4eb7b9[_0x3f60('0xb1')](_0x1a03d8),_0x4e769a=_0x227b81==_0x129242[_0x3f60('0x9f')]-0x1;(!_0x4dd3b4&&_0x8c4da5&&(_0x4dd3b4=_0x8c4da5,_0x5ea173=_0x129242[_0x227b81]),_0x4dd3b4&&(!_0x8c4da5||_0x8c4da5[_0x3f60('0x91')]!=_0x4dd3b4[_0x3f60('0x91')]))&&(_0x163ffe(_0x8c4da5,L(_0x5ea173,_0x158f6c,_0x17c353),L(_0x129242[_0x227b81],_0x158f6c,_0x17c353)),_0x4dd3b4=_0x8c4da5||null,_0x5ea173=_0x8c4da5?_0x129242[_0x227b81]:null),_0x4dd3b4&&_0x4e769a&&_0x163ffe(_0x8c4da5,L(_0x5ea173,_0x158f6c,_0x17c353),W(_0x129242[_0x227b81],_0x158f6c,_0x17c353));}function _0x163ffe(_0x36c27a,_0x404c5d,_0x5a8c37){const _0xbb166e=_0x4dd3b4[_0x3f60('0x91')],_0x9e777a=_0x3f60('0xd1')+_0x2c1e9a+':'+_0xbb166e+':'+_0x41edc7++,_0x13fad2=_0x17c353['createRange'](_0x404c5d,_0x5a8c37);_0x158f6c[_0x3f60('0x72')]['set'](_0x9e777a,_0x13fad2),null!==_0xbb166e&&_0x30b48d['add'](_0xbb166e);}}[_0x3f60('0xd4')](_0x44057d){switch(_0x44057d[_0x3f60('0xdb')]){case'elementStart':return'vid_start';case'elementEnd':return _0x3f60('0xae');default:return _0x3f60('0x81');}}[_0x3f60('0x76')](_0x16a5e9,_0x111bcd){_0x16a5e9[_0x3f60('0xba')]=null;for(const _0x50e9a0 in _0x16a5e9){const _0x2ec02a=_0x16a5e9[_0x50e9a0];if(_0x2ec02a instanceof _0xba1a39){const _0x46bddc=_0x111bcd[_0x3f60('0xb1')](_0x2ec02a['root'][_0x3f60('0xed')]);_0x16a5e9[_0x50e9a0]=this[_0x3f60('0xa6')](_0x2ec02a,_0x46bddc);}if(_0x2ec02a instanceof _0x90af34){const _0x14beeb=_0x111bcd[_0x3f60('0xb1')](_0x2ec02a[_0x3f60('0x1b')][_0x3f60('0xed')]);_0x16a5e9[_0x50e9a0]=this[_0x3f60('0x12')](_0x2ec02a,_0x14beeb);}_0x3f60('0x1b')===_0x50e9a0&&(_0x16a5e9[_0x3f60('0x1b')]=_0x111bcd['get'](_0x16a5e9[_0x3f60('0x1b')][_0x3f60('0xed')]));}}[_0x3f60('0x12')](_0x15b097,_0x3864c7){return this['editor']['model'][_0x3f60('0x20')](this[_0x3f60('0xa6')](_0x15b097[_0x3f60('0x33')],_0x3864c7),this['_fixPosition'](_0x15b097['end'],_0x3864c7));}[_0x3f60('0xa6')](_0x2f96e5,_0x394009){return this[_0x3f60('0xbb')][_0x3f60('0xa0')][_0x3f60('0x17')](_0x394009,_0x2f96e5['path'],_0x2f96e5['stickiness']);}[_0x3f60('0x88')](_0x4b89c3){const _0x31098e=this[_0x3f60('0xf6')]['get'](_0x4b89c3['position'][_0x3f60('0x1b')]['rootName']),_0x5f7442=this[_0x3f60('0xa6')](_0x4b89c3[_0x3f60('0x24')],_0x31098e),_0x974c24=null===_0x4b89c3[_0x3f60('0x35')]?null:_0x4b89c3[_0x3f60('0x35')]||this[_0x3f60('0xbb')]['plugins']['get'](_0x3f60('0xa'))['me']['id'],_0x2a4367=_0x5f7442[_0x3f60('0xf0')],_0x58ad72=this['_revisionId'],_0x45634=[];for(const _0x287ccb of _0x4b89c3[_0x3f60('0xda')])if(_0x287ccb['is'](_0x3f60('0xc')))_0x45634['push'](this['_makeIdsRoot'](_0x287ccb));else for(let _0xb9ffa2=0x0;_0xb9ffa2<_0x287ccb['offsetSize'];_0xb9ffa2++)_0x45634[_0x3f60('0xd9')](new _0x2cfae2(_0x3f60('0xa5'),{'vid':this['_revisionId']++}));const _0xd294cd=this[_0x3f60('0x7')];for(let _0x48aa38=_0x58ad72;_0x48aa38<_0xd294cd;_0x48aa38++)this[_0x3f60('0x4d')][_0x3f60('0xe8')](_0x48aa38,{'userId':_0x974c24});_0x2a4367[_0x3f60('0x8')](_0x5f7442[_0x3f60('0x4f')],_0x45634);}['_handleMoveOperation'](_0x1ba4e9){(_0x1ba4e9=this[_0x3f60('0xd')](_0x1ba4e9,this['_idsRoots']))['_execute']();const _0x5706e4=null===_0x1ba4e9[_0x3f60('0x35')]?null:_0x1ba4e9['_authorId']||this[_0x3f60('0xbb')][_0x3f60('0xaf')][_0x3f60('0xb1')](_0x3f60('0xa'))['me']['id'],_0x5bacb6=_0x1ba4e9[_0x3f60('0x107')](),_0x1c5418=_0x5bacb6[_0x3f60('0xf0')],_0x4ac695=_0x5bacb6[_0x3f60('0x4f')];!function _0x5c7a6b(_0x153540,_0x1c8658,_0x2befdb,_0x4e5262){for(let _0x2d58b6=_0x2befdb;_0x2d58b6<_0x4e5262;_0x2d58b6++){const _0x3d4d2c=_0x1c8658[_0x3f60('0x99')](_0x2d58b6);_0x3d4d2c['is'](_0x3f60('0xc'),_0x3f60('0xa5'))?_0x153540[_0x3f60('0xe8')](_0x3d4d2c['getAttribute'](_0x3f60('0x81')),{'userId':_0x5706e4}):(_0x153540[_0x3f60('0xe8')](_0x3d4d2c['getAttribute'](_0x3f60('0xfd')),{'userId':_0x5706e4}),_0x5c7a6b(_0x153540,_0x3d4d2c,0x0,_0x3d4d2c[_0x3f60('0xdc')]),_0x153540['set'](_0x3d4d2c[_0x3f60('0xfb')]('vid_end'),{'userId':_0x5706e4}));}}(this[_0x3f60('0x4d')],_0x1c5418,_0x4ac695,_0x4ac695+_0x1ba4e9[_0x3f60('0x2e')]);}['_handleMergeOperation'](_0x20ffb2){const _0x558d64=null===(_0x20ffb2=this[_0x3f60('0xd')](_0x20ffb2,this[_0x3f60('0xf6')]))[_0x3f60('0x35')]?null:_0x20ffb2[_0x3f60('0x35')]||this['editor'][_0x3f60('0xaf')][_0x3f60('0xb1')]('Users')['me']['id'],_0x204b7a=_0x20ffb2[_0x3f60('0x45')][_0x3f60('0xf0')],_0x19bcd5=_0x20ffb2[_0x3f60('0xff')]['parent'],_0x31690f=_0x204b7a[_0x3f60('0xfb')](_0x3f60('0xae')),_0xc7f06c=_0x19bcd5['getAttribute'](_0x3f60('0xfd'));_0x204b7a[_0x3f60('0xf5')](_0x3f60('0xae'),_0x19bcd5['getAttribute'](_0x3f60('0xae'))),_0x19bcd5[_0x3f60('0xf5')]('vid_end',_0x31690f),this['_touched'][_0x3f60('0xe8')](_0xc7f06c,{'userId':_0x558d64}),this[_0x3f60('0x4d')][_0x3f60('0xe8')](_0x31690f,{'userId':_0x558d64}),_0x20ffb2[_0x3f60('0xe1')]();}[_0x3f60('0x50')](_0x2afa6b){const _0x7a0e6c=null===(_0x2afa6b=this[_0x3f60('0xd')](_0x2afa6b,this[_0x3f60('0xf6')]))[_0x3f60('0x35')]?null:_0x2afa6b['_authorId']||this['editor']['plugins'][_0x3f60('0xb1')](_0x3f60('0xa'))['me']['id'],_0x3ff57a=_0x2afa6b[_0x3f60('0x25')],_0x3cfd68=_0x2afa6b[_0x3f60('0xe0')][_0x3f60('0xf0')];_0x2afa6b['_execute']();const _0x1d8cc7=_0x3cfd68[_0x3f60('0xfb')](_0x3f60('0xae')),_0x558a98=_0x2afa6b[_0x3f60('0x26')][_0x3f60('0x58')];if(_0x3ff57a){const _0x17aeae=_0x558a98[_0x3f60('0xfb')](_0x3f60('0xae')),_0x328823=_0x3cfd68['getAttribute'](_0x3f60('0xae'));_0x3cfd68['_setAttribute'](_0x3f60('0xae'),_0x17aeae),_0x558a98[_0x3f60('0xf5')](_0x3f60('0xae'),_0x328823),this[_0x3f60('0x4d')][_0x3f60('0xe8')](_0x3cfd68[_0x3f60('0xfb')](_0x3f60('0xae')),{'userId':_0x7a0e6c}),this[_0x3f60('0x4d')]['set'](_0x558a98['getAttribute']('vid_start'),{'userId':_0x7a0e6c});}else{const _0x311ddc=this['_revisionId']++,_0x121409=this['_revisionId']++;_0x3cfd68[_0x3f60('0xf5')](_0x3f60('0xae'),_0x311ddc),_0x558a98['_setAttribute'](_0x3f60('0xfd'),_0x121409),_0x558a98[_0x3f60('0xf5')]('vid_end',_0x1d8cc7),this[_0x3f60('0x4d')]['set'](_0x311ddc,{'userId':_0x7a0e6c}),this[_0x3f60('0x4d')][_0x3f60('0xe8')](_0x121409,{'userId':_0x7a0e6c});}}['_handleMarkerOperation'](_0x3f26c2){if(!_0x3f26c2[_0x3f60('0x4e')])return;const _0x5cfb59=(_0x3f26c2=this['_cloneOperation'](_0x3f26c2,this[_0x3f60('0x85')]))[_0x3f60('0x8a')]?_0x3f26c2[_0x3f60('0x8a')]['root']:null,_0x16758c=_0x3f26c2[_0x3f60('0x1e')]?_0x3f26c2['newRange'][_0x3f60('0x1b')]:null;_0x5cfb59&&this[_0x3f60('0xb7')][_0x3f60('0x75')](_0x3f26c2[_0x3f60('0x34')]),_0x16758c&&this[_0x3f60('0xb7')][_0x3f60('0xe8')](_0x3f26c2[_0x3f60('0x34')],_0x3f26c2[_0x3f60('0x1e')][_0x3f60('0x83')]());const _0x422d36=null===_0x3f26c2[_0x3f60('0x35')]?null:_0x3f26c2['_authorId']||this[_0x3f60('0xbb')][_0x3f60('0xaf')]['get'](_0x3f60('0xa'))['me']['id'],_0x5cd648=_0x3f26c2[_0x3f60('0x34')];if(!this[_0x3f60('0x42')][_0x3f60('0x77')](_0x5cd648))return void this[_0x3f60('0x42')][_0x3f60('0xe8')](_0x5cd648,{'range':_0x3f26c2[_0x3f60('0x8a')],'userId':_0x422d36});const _0x323cee=this[_0x3f60('0x42')][_0x3f60('0xb1')](_0x5cd648),_0xb37448=_0x323cee[_0x3f60('0x40')],_0x51fdd5=_0x3f26c2[_0x3f60('0x1e')];null==_0xb37448&&null==_0x51fdd5||_0xb37448&&_0x51fdd5&&_0xb37448[_0x3f60('0xf2')](_0x51fdd5)?this[_0x3f60('0x42')][_0x3f60('0x75')](_0x3f26c2[_0x3f60('0x34')]):_0x323cee[_0x3f60('0x91')]=_0x422d36;}['_handleRootOperation'](_0x5041a4,_0x221530){this[_0x3f60('0x85')][_0x3f60('0x77')](_0x5041a4['rootName'])?this[_0x3f60('0x85')]['get'](_0x5041a4['rootName'])[_0x3f60('0x2c')]=_0x5041a4[_0x3f60('0x53')]:(this[_0x3f60('0x85')][_0x3f60('0xe8')](_0x5041a4[_0x3f60('0xed')],G(_0x5041a4[_0x3f60('0xed')],!0x0)),this[_0x3f60('0xe4')][_0x3f60('0xe8')](_0x5041a4['rootName'],{}),_0x221530&&this[_0x3f60('0xf6')]['set'](_0x5041a4[_0x3f60('0xed')],G(_0x5041a4[_0x3f60('0xed')],!0x0)));const _0x54b3d1=null===_0x5041a4[_0x3f60('0x35')]?null:_0x5041a4[_0x3f60('0x35')]||this['editor'][_0x3f60('0xaf')][_0x3f60('0xb1')](_0x3f60('0xa'))['me']['id'],_0x50bcf7=this[_0x3f60('0xc4')][_0x3f60('0xb1')](_0x5041a4[_0x3f60('0xed')]);_0x50bcf7&&_0x50bcf7[_0x3f60('0x91')]===_0x54b3d1?this[_0x3f60('0xc4')]['delete'](_0x5041a4['rootName']):this[_0x3f60('0xc4')]['set'](_0x5041a4[_0x3f60('0xed')],{'userId':_0x54b3d1,'isAttached':_0x5041a4['isAdd']});}['_handleRootAttributeOperation'](_0x2aa51b){const _0x43ca1f=this['_diffRootsAttributes'][_0x3f60('0xb1')](_0x2aa51b[_0x3f60('0x1b')][_0x3f60('0xed')]);null===_0x2aa51b['newValue']?delete _0x43ca1f[_0x2aa51b[_0x3f60('0xca')]]:_0x43ca1f[_0x2aa51b[_0x3f60('0xca')]]=_0x2aa51b['newValue'];}}function q(_0x511f95){const _0x44e8bf=G(_0x511f95[_0x3f60('0xed')],_0x511f95[_0x3f60('0x2b')]());for(const _0x14d719 of _0x511f95['getChildren']()){const _0x486a2c=_0x14d719[_0x3f60('0x101')](!0x0);_0x44e8bf[_0x3f60('0x11')](_0x486a2c);}return _0x44e8bf;}function G(_0x52212d,_0x45d0e4=!0x0){const _0x1d645a=new _0x2943f8();return _0x1d645a[_0x3f60('0xed')]=_0x52212d,_0x1d645a['_isAttached']=_0x45d0e4,_0x1d645a[_0x3f60('0x2b')]=()=>_0x1d645a[_0x3f60('0x2c')],_0x1d645a;}function L(_0x2c6f7b,_0x5712bf,_0xfe8ed6){const _0x1d5886=_0x3f60('0xad')==_0x2c6f7b[_0x3f60('0xdb')]?_0xfe8ed6[_0x3f60('0x6d')](_0x2c6f7b[_0x3f60('0xdf')],_0x3f60('0xac')):_0xfe8ed6['createPositionBefore'](_0x2c6f7b['item']);return _0xfe8ed6['createPositionFromPath'](_0x5712bf,_0x1d5886['path'],_0x1d5886[_0x3f60('0x84')]);}function W(_0x58a1a0,_0x184aa9,_0x3eb80d){const _0xfa3eed='elementStart'==_0x58a1a0[_0x3f60('0xdb')]?_0x3eb80d[_0x3f60('0x6d')](_0x58a1a0[_0x3f60('0xdf')],0x0):_0x3eb80d[_0x3f60('0x28')](_0x58a1a0[_0x3f60('0xdf')]);return _0x3eb80d[_0x3f60('0x17')](_0x184aa9,_0xfa3eed[_0x3f60('0x10')],_0xfa3eed[_0x3f60('0x84')]);}