@ckeditor/ckeditor5-revision-history 38.0.0-rc.0 → 38.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisiontracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x170e=['_isPendingUpdate','isReady','model','children','update','updateRevisions','howMany','root','reInit','_replaceEditorDataWithRevisionData','keys','_prepareViewToSave','plugins','repository','_createInitialRevision','markerToData','config','nodeAfter','data-revision-','elementEnd','_fixPosition','_loadedStateData','_getBaseVids','key','revisionHistory.resumeUnsavedRevision','revision-end','attributes','previousPosition','start','vid','createPositionFromPath','getCurrentRevisionId','attributesAfter','_handleRootAttributeOperation','_initialRoots','_lastTo','splitPosition','reverse','PendingActions','split','insertions','getRevisions','history','document','insert','_idsRoots','_markChanges','upcast','_removeRevisionMarkers','toModel','_reset','reinsert','_handleMoveOperation','shift','_execute','dataDowncast','_createFromRanges','_processRootBeforeSave','$text','end','createPositionAfter','affectsData','size','Empty\x20document','from','_saveMetaData','_initialRevisionId','marker','_source','_removePendingAction','_touchedMarkers','toData','fromVersion','setRevisionData','length','_insertChild','item','createdAt','initialData','startsWith','rootName','currentRevision','oldRange','ready','element','getAncestors','vid_start','source','getUser','_update','bind','_removeMetaData','_handleInsertOperation','_makeRevision','roots','toVersion','processor','remove','rootsAttributes','collaboration.channelId','saveRevision','editor','revision:','set','afterInit','createRange','locale','getRoot','_touched','Users','markers','toView','_transformMarkers','creatorId','addRevision','move','_handleRootOperation','addRootAttribute','_applyOperations','_getState','_makeModelFromViewString','attachChange','sendBufferedUpdates','init','_bufferedUpdates','string','documentFragment','revision','Initial\x20revision','_bufferUpdate','range','_clone','clear','position','revision-start','_findInsertionIndex','getNodeByPath','delete','view','getChild','getChildren','_lastFrom','elementStart','includes','_isInit','push','getAttributes','_startingVersion','createRevision','_generateTape','_calculateMetaData','newRange','resolve','max','creator','RevisionTracker','getRange','name','type','path','_baseRootsAttributes','useFillerType','NEGATIVE_INFINITY','authorsIds','_diffRoots','find','version','getIndex','_touchedRoots','RealTimeCollaborationClient','isEqual','keepParagraph','createPositionAt','_loadRevisionData','setSource','getWalker','_markers','_diffRootsAttributes','_fixRange','_handleMarkerOperation','clone','isAdd','parent','_cloneOperation','hasContent','buildRevisionData','_addPendingAction','RevisionsRepository','filter','getAttribute','_setConversion','stickiness','merge','_handleSplitOperation','_revisionDataBuilder','getRevisionDocumentData','_baseIdsRoots','dataToMarker','_loadState','deletion','some','_getVidAttributeName','diffData','_copyMarkers','requires','for','map','_handleOperation','get','_continueCurrentRevision','_isAttached','vid_end','tableCell','add','_pendingAction','editing','_startingRevisionId','conversion','isAttached','define','authors','getRevision','userId','getTime','_savedMetaData','_revisionId','has','newValue','_handleMergeOperation','_authorId','addRevisionData','attributesBefore','nodes','graveyardPosition','targetPosition','createPositionBefore','getRootNames','deletions','then','_getPreviousFrom','_createCurrentRevision','getRevisionRootsAttributes','paragraph','_setAttribute','_getFromVersion','_makeIdsRoot','getData','getLatestVersion','_baseRoots','data','slice','baseVersion','loadState','parse','offsetSize','values','adapter','_fixOperation','isEnabled','getTransformedByOperation','finally','$graveyard','forEach'];(function(_0x44854e,_0x170e17){const _0x584882=function(_0x429d74){while(--_0x429d74){_0x44854e['push'](_0x44854e['shift']());}};_0x584882(++_0x170e17);}(_0x170e,0x184));const _0x5848=function(_0x44854e,_0x170e17){_0x44854e=_0x44854e-0x0;let _0x584882=_0x170e[_0x44854e];return _0x584882;};import{Users as _0x1a6a68}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x34844c,PendingActions as _0xfdd86a}from'ckeditor5/src/core';import{logWarning as _0x1461fb,uid as _0x31c0d1}from'ckeditor5/src/utils';import{Position as _0x5cf6ce,Range as _0x325215,Element as _0xff880d,DocumentFragment as _0x2edb62,ViewText as _0x4a0d50,ViewElement as _0x6a31b0,ViewContainerElement as _0x20aef9,ViewAttributeElement as _0x301b3c,ViewEmptyElement as _0x3e16a4,ViewRawElement as _0x45d35d,ViewUIElement as _0x3d25ea,ViewDocumentFragment as _0x27b500}from'ckeditor5/src/engine';import _0x222cd5 from'./revisionsrepository';import{getTranslation as _0x20a1bb}from'./utils/common-translations';import{cloneDeep as _0x1a20f3,isEqual as _0xa78a5b}from'lodash-es';const j={'c':_0x20aef9,'a':_0x301b3c,'e':_0x3e16a4,'r':_0x45d35d,'u':_0x3d25ea};export default class l extends _0x34844c{static get['pluginName'](){return _0x5848('0x1e');}static get[_0x5848('0x4f')](){return[_0x1a6a68,_0x222cd5,_0xfdd86a];}constructor(_0x5daa1b){super(_0x5daa1b),this['adapter']=null,this[_0x5848('0xdb')]=null,this['_revisionDataBuilder']=new T(this[_0x5848('0xef')]),this[_0x5848('0xcc')]=this[_0x5848('0xef')][_0x5848('0x9a')]['get'](_0x5848('0xed'))||'initial',this[_0x5848('0x106')]=new Map(),this[_0x5848('0x9f')]=null;const _0x4e287c=_0x31c0d1();this[_0x5848('0xce')]={'history':this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0xb4')],'getLatestVersion':()=>Promise[_0x5848('0x1b')](this[_0x5848('0xef')][_0x5848('0x8c')]['document']['version']),'getCurrentRevisionId':()=>_0x4e287c},this['set'](_0x5848('0x8b'),!0x1),this[_0x5848('0xf1')](_0x5848('0x85'),!0x0),this['set'](_0x5848('0x8a'),!0x1),this[_0x5848('0xef')][_0x5848('0x9a')][_0x5848('0x5e')](_0x5848('0xa2'),!0x0),this[_0x5848('0xef')][_0x5848('0x5c')][_0x5848('0x50')](_0x5848('0xb9'))[_0x5848('0x48')]({'view':_0x5848('0x2')});}[_0x5848('0x105')](){this[_0x5848('0x97')]=this['editor'][_0x5848('0x96')]['get'](_0x5848('0x3e')),this[_0x5848('0x41')](),this[_0x5848('0xef')][_0x5848('0x7c')]['on'](_0x5848('0xdd'),()=>{const _0x54f114=this['repository'][_0x5848('0x60')](0x0),_0x58c4f9=_0x54f114&&null===_0x54f114['creator']?_0x54f114:null;if(this['_continueCurrentRevision']=!!_0x58c4f9&&this['editor']['config']['get'](_0x5848('0xa2')),this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x65')](_0x5848('0x2c'))){const _0x2e4d3d=this[_0x5848('0xce')][_0x5848('0xa9')](),_0x1a2cc3=this[_0x5848('0x97')][_0x5848('0x60')](_0x2e4d3d);if(_0x1a2cc3)this[_0x5848('0x16')]=_0x1a2cc3['fromVersion'],this[_0x5848('0x54')]=!0x1;else{const _0x41b3d2=this['_source'][_0x5848('0xb4')]['_operations'][_0x5848('0x28')](_0x45f996=>!_0x45f996[_0x5848('0x13')]),_0x3ebd81=_0x41b3d2?_0x41b3d2[_0x5848('0x7e')]:this[_0x5848('0xce')][_0x5848('0xb4')][_0x5848('0x29')];_0x54f114?(_0x54f114[_0x5848('0xe9')]<_0x3ebd81&&_0x54f114[_0x5848('0xe3')]({'toVersion':_0x3ebd81}),this['_continueCurrentRevision']?(this[_0x5848('0xce')][_0x5848('0xa9')]=()=>_0x58c4f9['id'],this[_0x5848('0x16')]=_0x58c4f9[_0x5848('0xd2')]):(this['_startingVersion']=_0x54f114['toVersion'],this[_0x5848('0x54')]=!0x1)):(this['_startingVersion']=_0x3ebd81,this[_0x5848('0x54')]=!0x1);}}else _0x58c4f9&&(this[_0x5848('0xef')]['model'][_0x5848('0xb5')][_0x5848('0xb4')][_0x5848('0x29')]=Math[_0x5848('0x1c')](_0x58c4f9[_0x5848('0xe9')],this['editor']['model'][_0x5848('0xb5')][_0x5848('0xb4')][_0x5848('0x29')]),_0x58c4f9[_0x5848('0xd2')]===_0x58c4f9['toVersion']?(0x0!==_0x58c4f9[_0x5848('0xd2')]&&(this['_source'][_0x5848('0xa9')]=()=>_0x58c4f9['id']),this['_continueCurrentRevision']=!0x1):this[_0x5848('0x54')]&&(this[_0x5848('0xce')][_0x5848('0xa9')]=()=>_0x58c4f9['id'],this[_0x5848('0x16')]=_0x58c4f9[_0x5848('0xd2')])),this['_continueCurrentRevision']||(this[_0x5848('0x16')]=this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0x29')]);this[_0x5848('0x45')]['init'](this[_0x5848('0xce')][_0x5848('0xb4')]),this[_0x5848('0x98')](this['_startingVersion']),this[_0x5848('0x73')](this['_startingVersion']),this[_0x5848('0x83')]&&this[_0x5848('0x104')]();}),this[_0x5848('0xe4')](_0x5848('0x8b'))['to'](this,_0x5848('0x8a'),_0x2aa687=>!_0x2aa687);}async[_0x5848('0xf2')](){if(this[_0x5848('0x97')][_0x5848('0xd4')]>0x0){const _0x4fea36=this['repository'][_0x5848('0x60')](0x0),_0x1ea2f7=await this[_0x5848('0x46')](_0x4fea36),_0x3d111c=await this[_0x5848('0x74')](_0x4fea36);this['_replaceEditorDataWithRevisionData'](_0x1ea2f7,_0x3d111c);}}[_0x5848('0x31')](_0x1f989c){this[_0x5848('0xce')]=_0x1f989c;}async[_0x5848('0x8e')](){const _0x2520e8=await this['_source'][_0x5848('0x7a')]();if(_0x2520e8>this[_0x5848('0xdb')][_0x5848('0xe9')]){await this[_0x5848('0x49')]();const _0x2ff7db=this['buildRevisionData']({'revision':this[_0x5848('0xdb')],'to':_0x2520e8});_0x2ff7db[_0x5848('0x5f')]=_0x2ff7db[_0x5848('0x26')]['map'](_0x5300c2=>this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x53')](_0x5848('0xf7'))[_0x5848('0xe2')](_0x5300c2)),this[_0x5848('0xdb')][_0x5848('0xe3')](_0x2ff7db);}}async['_loadState'](){this['_continueCurrentRevision']&&!this[_0x5848('0x9f')]&&(await this[_0x5848('0x30')](this[_0x5848('0xdb')]),this[_0x5848('0x45')][_0x5848('0x7f')](this['currentRevision']),this[_0x5848('0x9f')]={'fromVersion':this[_0x5848('0xdb')][_0x5848('0xd2')],'authors':this[_0x5848('0xdb')][_0x5848('0x5f')][_0x5848('0x7d')]()});}async[_0x5848('0xee')](_0x1dca98={},_0x44a843=null){const _0x4a009b=[];await this['_loadState'](),this[_0x5848('0x54')]=!0x1,_0x44a843>this[_0x5848('0xdb')][_0x5848('0xe9')]&&(_0x44a843=null),null===_0x44a843&&(_0x44a843=await this[_0x5848('0xce')]['getLatestVersion']());const _0x104468=this[_0x5848('0x77')](_0x44a843),_0x224943=this[_0x5848('0x3c')]({'from':_0x104468,'to':_0x44a843});if(this[_0x5848('0xdb')][_0x5848('0xe9')]<_0x44a843){const _0x6d1434=this[_0x5848('0x3c')]({'revision':this[_0x5848('0xdb')],'from':_0x44a843,'to':_0x44a843});_0x6d1434[_0x5848('0x5f')]=[],_0x6d1434[_0x5848('0x26')]=[],_0x6d1434['id']=this[_0x5848('0xdb')]['id'],this[_0x5848('0xdb')]['_update'](_0x6d1434,!0x0),delete _0x6d1434[_0x5848('0x5f')],_0x4a009b[_0x5848('0x14')](_0x6d1434);}_0x1dca98[_0x5848('0xfb')]=this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x53')]('Users')['me']['id'],_0x1dca98[_0x5848('0x20')]=_0x1dca98[_0x5848('0x20')]||null,_0x1dca98['id']=_0x1dca98['id']||_0x31c0d1(),_0x1dca98={..._0x1dca98,..._0x224943};const _0x305b20=this['addRevisionData'](_0x1dca98);_0x4a009b['push'](_0x1dca98);const _0x1e8cb6=this['repository'][_0x5848('0x2a')](_0x305b20);if(0x0!==_0x1e8cb6){const _0x3bbd18=this[_0x5848('0x97')][_0x5848('0x60')](_0x1e8cb6-0x1);if(_0x3bbd18[_0x5848('0xd2')]!==_0x44a843){const _0x3544c4=this[_0x5848('0x45')]['getData'](_0x44a843,_0x3bbd18['toVersion']),_0xb5a21c={'id':_0x3bbd18['id'],'diffData':_0x3544c4['diffData'],'authorsIds':_0x3544c4['authorsIds'],'authors':_0x3544c4[_0x5848('0x26')][_0x5848('0x51')](_0x497d45=>this[_0x5848('0xef')]['plugins'][_0x5848('0x53')](_0x5848('0xf7'))['getUser'](_0x497d45)),'fromVersion':_0x44a843};_0x3bbd18===this[_0x5848('0xdb')]&&(_0xb5a21c['createdAt']=new Date(_0x1dca98[_0x5848('0xd7')][_0x5848('0x62')]()+0xa)),_0x3bbd18[_0x5848('0xe3')](_0xb5a21c,!0x0),delete _0xb5a21c['authors'],_0x4a009b[_0x5848('0x14')](_0xb5a21c);}}if(this[_0x5848('0x83')]){for(const _0x115e42 of _0x4a009b)this[_0x5848('0x4')](_0x115e42['id'],_0x115e42,!0x0);this[_0x5848('0x104')]();}return _0x305b20;}[_0x5848('0x69')](_0x30738d){const _0x560f6c=this[_0x5848('0x97')][_0x5848('0x17')](_0x30738d);return this[_0x5848('0x83')]&&_0x560f6c['on']('_update',(_0x21ad72,_0xba6b1b,_0x1fb655)=>{_0x1fb655||(this['_bufferUpdate'](_0xba6b1b['id'],_0xba6b1b,!0x0),this['sendBufferedUpdates']());}),this['repository'][_0x5848('0xfc')](_0x560f6c,this[_0x5848('0xa')](_0x560f6c)),_0x560f6c;}async['getRevisionDocumentData'](_0x277a3e){await this[_0x5848('0x30')](_0x277a3e);const _0x41a5c4={};for(const _0x3f93d5 in _0x277a3e[_0x5848('0x4d')]){if(_0x277a3e['diffData'][_0x3f93d5]['attachChange']&&!_0x277a3e[_0x5848('0x4d')][_0x3f93d5]['attachChange'][_0x5848('0x5d')])continue;const _0x238ea4=this[_0x5848('0xba')](JSON[_0x5848('0x80')](_0x277a3e['diffData'][_0x3f93d5][_0x5848('0xb2')])),_0x1f90df=this['editor']['editing'][_0x5848('0xd')]['document'],_0x4834ce=new _0x27b500(_0x1f90df,_0x238ea4['map'](_0xa25a08=>F(_0xa25a08,this['editor'])));this[_0x5848('0xef')]['data']['processor']['useFillerType']('marked'),_0x41a5c4[_0x3f93d5]=this[_0x5848('0xef')][_0x5848('0x7c')][_0x5848('0xea')][_0x5848('0xd1')](_0x4834ce),this['editor']['data'][_0x5848('0xea')][_0x5848('0x24')]('default');}return _0x41a5c4;}async['getRevisionRootsAttributes'](_0xefd3a6){await this[_0x5848('0x30')](_0xefd3a6);const _0xfc244a={};for(const _0x2fa8c1 in _0xefd3a6[_0x5848('0x4d')])_0xefd3a6['diffData'][_0x2fa8c1][_0x5848('0x103')]&&!_0xefd3a6[_0x5848('0x4d')][_0x2fa8c1][_0x5848('0x103')][_0x5848('0x5d')]||(_0xfc244a[_0x2fa8c1]=_0xefd3a6[_0x5848('0x4d')][_0x2fa8c1][_0x5848('0xaa')]||{});return _0xfc244a;}['sendBufferedUpdates'](){if(0x0===this[_0x5848('0x106')][_0x5848('0xc8')])return;if(this[_0x5848('0x8a')])return;let _0x5e5f16=Array[_0x5848('0xca')](this[_0x5848('0x106')][_0x5848('0x82')]());this[_0x5848('0x106')]['clear']();for(let _0x4da5a5=0x0;_0x4da5a5<_0x5e5f16[_0x5848('0xd4')];_0x4da5a5++){const _0x5681e2=_0x5e5f16[_0x4da5a5];let _0x1d72b7=!0x1;for(const _0x17d447 of Object['keys'](_0x5681e2))void 0x0===_0x5681e2[_0x17d447]?delete _0x5681e2[_0x17d447]:'id'!==_0x17d447&&(_0x1d72b7=!0x0);_0x1d72b7||(_0x5e5f16[_0x4da5a5]=null);}if(_0x5e5f16=_0x5e5f16['filter'](_0x5d4666=>null!==_0x5d4666),!_0x5e5f16[_0x5848('0xd4')])return;for(let _0x16b662=0x0;_0x16b662<_0x5e5f16[_0x5848('0xd4')];_0x16b662++){const _0x3da442=_0x5e5f16[_0x16b662];void 0x0!==_0x3da442['fromVersion']&&void 0x0===_0x3da442[_0x5848('0xe9')]&&(_0x3da442[_0x5848('0xe9')]=this[_0x5848('0x97')][_0x5848('0x60')](_0x3da442['id'])['toVersion']),void 0x0!==_0x3da442[_0x5848('0xe9')]&&void 0x0===_0x3da442[_0x5848('0xd2')]&&(_0x3da442[_0x5848('0xd2')]=this[_0x5848('0x97')][_0x5848('0x60')](_0x3da442['id'])[_0x5848('0xd2')]);}const _0x203ebe=this[_0x5848('0xef')][_0x5848('0x9a')]['get'](_0x5848('0xed'));this[_0x5848('0x8a')]=!0x0,this[_0x5848('0x3d')](),this[_0x5848('0x83')][_0x5848('0x8f')](_0x5e5f16,_0x203ebe)[_0x5848('0x87')](()=>{this[_0x5848('0x8a')]=!0x1;})[_0x5848('0x71')](_0xbd48ff=>{if(_0xbd48ff)for(const _0x1b4343 of _0xbd48ff)this['setRevisionData']({'id':_0x1b4343['id'],'createdAt':_0x1b4343[_0x5848('0xd7')]});this['_removePendingAction'](),this[_0x5848('0x104')]();});}[_0x5848('0x93')](_0x19233e,_0x2f5be8){let _0x913122=this[_0x5848('0xef')][_0x5848('0x9a')]['get'](_0x5848('0xd8')),_0xa23260=this[_0x5848('0xef')][_0x5848('0x9a')][_0x5848('0x53')](_0x5848('0xec'));if(void 0x0===_0x913122){_0x913122={};for(const _0x4f5962 of this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0x6f')]())_0x913122[_0x4f5962]='';}if(_0x5848('0x0')==typeof _0x913122&&(_0x913122={'main':_0x913122}),void 0x0===_0xa23260){_0xa23260={};for(const _0x466a91 of this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0x6f')]())_0xa23260[_0x466a91]={};}let _0x5ad8c6=!0x1;const _0xc1e762=Object[_0x5848('0x94')](_0x913122),_0x4e6283=Object[_0x5848('0x94')](_0x19233e);for(const _0x559c37 of _0xc1e762){if(_0x913122[_0x559c37]!==_0x19233e[_0x559c37]&&''!==_0x913122[_0x559c37]['trim']()){_0x5ad8c6=!0x0;break;}if(!_0xa78a5b(_0xa23260[_0x559c37],_0x2f5be8[_0x559c37])&&Object[_0x5848('0x94')](_0xa23260[_0x559c37])[_0x5848('0xd4')]>0x0){_0x5ad8c6=!0x0;break;}}_0x5ad8c6||(_0x5ad8c6=_0x4e6283[_0x5848('0x4b')](_0x49bbcd=>!_0xc1e762[_0x5848('0x12')](_0x49bbcd))),_0x5ad8c6&&_0x1461fb('editor-initial-data-replaced-with-revision-data',{'editorData':_0x913122,'editorRootsAttributes':_0xa23260,'revisionData':_0x19233e,'revisionRootsAttributes':_0x2f5be8}),this['editor']['config']['set'](_0x5848('0xd8'),_0x19233e),this[_0x5848('0xef')][_0x5848('0x9a')][_0x5848('0xf1')](_0x5848('0xec'),_0x2f5be8);}[_0x5848('0x3d')](){if(!this[_0x5848('0x59')]){const _0x25a1e2=this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x53')](_0x5848('0xb0'));this[_0x5848('0x59')]=_0x25a1e2[_0x5848('0x58')](_0x20a1bb(this[_0x5848('0xef')][_0x5848('0xf4')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x5848('0xcf')](){this[_0x5848('0x59')]&&(this['editor'][_0x5848('0x96')]['get']('PendingActions')['remove'](this[_0x5848('0x59')]),this[_0x5848('0x59')]=null);}[_0x5848('0xa')](_0xed97a4){const _0xa7ba5=this[_0x5848('0x97')][_0x5848('0xb3')]();_0xa7ba5[_0x5848('0xaf')]();let _0x2d6a2a=0x0;for(;_0x2d6a2a<_0xa7ba5['length'];){const _0x1481d4=_0xa7ba5[_0x2d6a2a];if(_0x1481d4===this[_0x5848('0xdb')]){_0x2d6a2a++;continue;}if(_0x1481d4['id']===this[_0x5848('0xcc')])break;const _0x149689=_0xed97a4[_0x5848('0xe9')]-_0x1481d4[_0x5848('0xe9')]||_0xed97a4[_0x5848('0xd2')]-_0x1481d4['fromVersion'];if(_0x149689>0x0)break;if(_0x149689<0x0)_0x2d6a2a++;else{if(!_0xed97a4['creator']&&_0x1481d4[_0x5848('0x1d')])break;if(_0x1481d4[_0x5848('0x1d')]||!_0xed97a4['creator']){if(_0xed97a4[_0x5848('0xd7')]>_0x1481d4[_0x5848('0xd7')])break;_0x2d6a2a++;}else _0x2d6a2a++;}}return _0x2d6a2a;}[_0x5848('0xd3')](_0x2a9955){const _0x39d767=this[_0x5848('0x97')]['getRevision'](_0x2a9955['id']);if(_0x2a9955[_0x5848('0xd7')]&&(_0x2a9955[_0x5848('0xd7')]=new Date(_0x2a9955[_0x5848('0xd7')])),_0x2a9955[_0x5848('0x26')]){const _0x517c88=this['editor']['plugins']['get'](_0x5848('0xf7'));_0x2a9955[_0x5848('0x5f')]=_0x2a9955[_0x5848('0x26')][_0x5848('0x51')](_0x318d7b=>_0x517c88[_0x5848('0xe2')](_0x318d7b));}_0x39d767[_0x5848('0xe3')](_0x2a9955,!0x0);}['buildRevisionData']({revision:_0xe990b8=null,from:_0x72646b=null,to:_0x109cc6=null}){_0x72646b=null!==_0x72646b?_0x72646b:_0xe990b8[_0x5848('0xd2')],_0x109cc6=null!==_0x109cc6?_0x109cc6:_0xe990b8[_0x5848('0xe9')];const _0xcfd75f=this[_0x5848('0x45')]['getData'](_0x72646b,_0x109cc6),_0x1b84c8={'diffData':_0xcfd75f[_0x5848('0x4d')],'authorsIds':_0xcfd75f[_0x5848('0x26')],'fromVersion':_0x72646b,'toVersion':_0x109cc6};if(!_0xe990b8||_0x109cc6!==_0xe990b8[_0x5848('0xe9')]){const _0x3fe118=_0x109cc6-0x1,_0x4cdf19=this[_0x5848('0xce')][_0x5848('0xb4')]['getOperation'](_0x3fe118);_0x1b84c8['createdAt']=_0x4cdf19&&_0x4cdf19[_0x5848('0xd7')]||new Date();}if(this[_0x5848('0x9f')]&&_0x72646b===this['_loadedStateData'][_0x5848('0xd2')])for(const _0x18c804 of this[_0x5848('0x9f')]['authors'])_0x1b84c8['authorsIds'][_0x5848('0x12')](_0x18c804['id'])||_0x1b84c8[_0x5848('0x26')][_0x5848('0x14')](_0x18c804['id']);return _0x1b84c8;}['_loadRevisionData'](_0x11747e){if(!_0x11747e||_0x11747e[_0x5848('0x4d')])return Promise['resolve']();{const _0x5d4d15=this['editor'][_0x5848('0x9a')][_0x5848('0x53')]('collaboration.channelId');return this[_0x5848('0x83')][_0x5848('0x60')]({'channelId':_0x5d4d15,'revisionId':_0x11747e['id']})['then'](_0x2e9d88=>{_0x11747e[_0x5848('0x4d')]=_0x2e9d88['diffData'];});}}['_bufferUpdate'](_0x500ea5,_0x3e5c8d,_0x40a137){if(this[_0x5848('0x106')][_0x5848('0x65')](_0x500ea5)){const _0x400865=this['_bufferedUpdates'][_0x5848('0x53')](_0x500ea5);_0x3e5c8d=_0x40a137?{..._0x400865,..._0x3e5c8d}:{..._0x3e5c8d,..._0x400865};}this[_0x5848('0x106')]['set'](_0x500ea5,_0x3e5c8d);}[_0x5848('0x77')](_0x238965){const _0x5de286=this['repository'][_0x5848('0xb3')]();_0x5de286[_0x5848('0xaf')](),_0x5de286[_0x5848('0xbf')]();const _0x354486=_0x5de286[_0x5848('0x28')](_0x201afb=>_0x201afb[_0x5848('0xe9')]<=_0x238965)['toVersion'];return _0x354486<this['_startingVersion']?this[_0x5848('0x16')]:_0x354486;}['_createInitialRevision'](_0x5674ca){const _0x34eab4=this[_0x5848('0x97')][_0x5848('0x60')](this[_0x5848('0x97')][_0x5848('0xd4')]-0x1);if(_0x34eab4)this[_0x5848('0xcc')]=_0x34eab4['id'];else{const _0x44c998=!this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0xe8')][_0x5848('0x28')](_0x16b8c4=>this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0x3b')](_0x16b8c4)),_0x4e010d=this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x53')]('Users')['me']['id'],_0x554a6c=_0x20a1bb(this[_0x5848('0xef')][_0x5848('0xf4')],_0x44c998?_0x5848('0xc9'):_0x5848('0x3'));this[_0x5848('0xe7')]({'from':_0x5674ca,'to':_0x5674ca,'id':this['_initialRevisionId'],'name':_0x554a6c,'creatorId':_0x4e010d});}}[_0x5848('0x73')](_0x21d2af){const _0x47129b=this[_0x5848('0xce')][_0x5848('0xa9')]();this['currentRevision']=this[_0x5848('0x97')][_0x5848('0x60')](_0x47129b),this[_0x5848('0xdb')]||(this[_0x5848('0xdb')]=this[_0x5848('0xe7')]({'from':_0x21d2af,'to':_0x21d2af,'id':_0x47129b,'name':'','creatorId':null}));}[_0x5848('0xe7')]({name:_0x4214a6,from:_0x2f01d2,to:_0x46021e,creatorId:_0x1e893a,id:_0x1f2713}){const _0x39f9f9=this['buildRevisionData']({'from':_0x2f01d2,'to':_0x46021e});_0x39f9f9[_0x5848('0x20')]=_0x4214a6,_0x39f9f9[_0x5848('0xfb')]=_0x1e893a,_0x39f9f9['id']=_0x1f2713;const _0x370776=this[_0x5848('0x69')](_0x39f9f9);return this[_0x5848('0x83')]&&this['_bufferUpdate'](_0x39f9f9['id'],_0x39f9f9,!0x0),_0x370776;}['_setConversion'](){this[_0x5848('0xef')][_0x5848('0x5c')][_0x5848('0x50')](_0x5848('0xc1'))[_0x5848('0x99')]({'model':'revision'});}[_0x5848('0xba')](_0x5e1a89){return(_0x5e1a89=_0x5e1a89[_0x5848('0x3f')](_0xfe9db3=>!_0xfe9db3['name']||_0x5848('0x9')!==_0xfe9db3[_0x5848('0x20')]&&_0x5848('0xa3')!==_0xfe9db3[_0x5848('0x20')]))[_0x5848('0x89')](_0xeecb02=>{_0x5848('0x0')!=typeof _0xeecb02&&(_0xeecb02[_0x5848('0x8d')]=this[_0x5848('0xba')](_0xeecb02[_0x5848('0x8d')]),_0xeecb02['attributes']=_0xeecb02[_0x5848('0xa4')][_0x5848('0x3f')](_0x8a8c6a=>!_0x8a8c6a[0x0]['startsWith'](_0x5848('0x9c'))));}),_0x5e1a89;}}function F(_0x2e7b7b,_0x3480e0){const _0x42ae79=_0x3480e0[_0x5848('0x5a')][_0x5848('0xd')]['document'];if(_0x5848('0x0')==typeof _0x2e7b7b)return new _0x4a0d50(_0x42ae79,_0x2e7b7b);{const _0x385323=_0x2e7b7b[_0x5848('0x8d')][_0x5848('0x51')](_0x530269=>F(_0x530269,_0x3480e0));return new(j[_0x2e7b7b[(_0x5848('0x21'))]]||_0x6a31b0)(_0x42ae79,_0x2e7b7b[_0x5848('0x20')],_0x2e7b7b['attributes'],_0x385323);}}class T{constructor(_0x21b36f){this[_0x5848('0xef')]=_0x21b36f,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this[_0x5848('0xad')]=-0x1,this[_0x5848('0x33')]=new Map(),this['_diffRoots']=new Map(),this[_0x5848('0x34')]=new Map(),this[_0x5848('0x7b')]=new Map(),this[_0x5848('0x23')]=new Map(),this[_0x5848('0xb7')]=new Map(),this[_0x5848('0x47')]=new Map(),this[_0x5848('0xf6')]=new Map(),this['_touchedMarkers']=new Map(),this[_0x5848('0x2b')]=new Map(),this[_0x5848('0x64')]=0x1,this[_0x5848('0xac')]=this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0x6f')](),this[_0x5848('0xac')][_0x5848('0x14')](_0x5848('0x88'));}[_0x5848('0x105')](_0x2550a5){this[_0x5848('0xe1')]=_0x2550a5;const _0x72b35b=new Map(),_0x18d540=new Map(),_0x5361a3=this['editor'][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0x6f')](!0x0);_0x5361a3[_0x5848('0x14')]('$graveyard');for(const _0x4fd033 of _0x5361a3){const _0x2b35a8=this['editor'][_0x5848('0x8c')]['document'][_0x5848('0xf5')](_0x4fd033),_0x1501b7=B(_0x2b35a8);_0x72b35b[_0x5848('0xf1')](_0x4fd033,_0x1501b7),_0x18d540[_0x5848('0xf1')](_0x4fd033,Object['fromEntries'](_0x2b35a8['getAttributes']()));}const _0x9cd1b6=Array['from'](this[_0x5848('0xef')]['model'][_0x5848('0xf8')])[_0x5848('0x51')](_0x2e6581=>[_0x2e6581[_0x5848('0x20')],_0x2e6581[_0x5848('0x1f')]()]),_0x353739=this[_0x5848('0xe1')][_0x5848('0x29')];this['_saveMetaData'](_0x353739,_0x72b35b,_0x9cd1b6,_0x18d540),this[_0x5848('0x5b')]=this['_revisionId'];const _0x5ddc28=new Map(),_0x2596ca=new Map();for(const _0x53a146 of this[_0x5848('0xac')]){const _0x1a76a3=J(_0x53a146);_0x5ddc28[_0x5848('0xf1')](_0x53a146,_0x1a76a3),_0x2596ca[_0x5848('0xf1')](_0x53a146,{});}this[_0x5848('0xcb')](Number[_0x5848('0x25')],_0x5ddc28,[],_0x2596ca);}[_0x5848('0x79')](_0x319154,_0x5b5849){if(this[_0x5848('0x10')]===_0x319154&&this[_0x5848('0xad')]<=_0x5b5849)this[_0x5848('0x63')]['size']>0x1&&this[_0x5848('0xe5')](this[_0x5848('0xad')]),this['_applyOperations'](this[_0x5848('0xad')],_0x5b5849,!0x0);else{if(!this[_0x5848('0x63')]['has'](_0x319154)){const _0x42389e=this[_0x5848('0x72')](_0x319154);this['_calculateMetaData'](_0x42389e,_0x319154,!0x1);}this[_0x5848('0x19')](_0x319154,_0x5b5849,!0x0);}return this[_0x5848('0x10')]=_0x319154,this['_lastTo']=_0x5b5849,this[_0x5848('0x101')]();}[_0x5848('0x7f')](_0xdf5efe){this[_0x5848('0xbc')](),this['_lastFrom']=_0xdf5efe[_0x5848('0xd2')],this['_lastTo']=_0xdf5efe[_0x5848('0xe9')];for(const _0x390c38 in _0xdf5efe[_0x5848('0x4d')]){const _0x4027cc=_0xdf5efe[_0x5848('0x4d')][_0x390c38][_0x5848('0x103')],_0x5d4f77=_0x1a20f3(_0xdf5efe[_0x5848('0x4d')][_0x390c38][_0x5848('0x6a')])||{},_0x45de3c=this[_0x5848('0x102')](_0xdf5efe[_0x5848('0x4d')][_0x390c38][_0x5848('0x70')]);_0x45de3c['rootName']=_0x390c38,_0x45de3c[_0x5848('0x55')]=!_0x4027cc||!_0x4027cc[_0x5848('0x5d')],_0x45de3c['isAttached']=()=>_0x45de3c[_0x5848('0x55')],this[_0x5848('0x7b')]['set'](_0x390c38,_0x45de3c),this[_0x5848('0x23')][_0x5848('0xf1')](_0x390c38,_0x5d4f77),_0x4027cc&&this[_0x5848('0x2b')][_0x5848('0xf1')](_0x390c38,_0x4027cc);const _0x4e5f47=this[_0x5848('0x78')](_0x45de3c);this[_0x5848('0x47')][_0x5848('0xf1')](_0x390c38,_0x4e5f47);for(const [_0x1a8aa2,_0x31380d]of _0x45de3c[_0x5848('0xf8')]){if(!_0x1a8aa2[_0x5848('0xd9')](_0x5848('0xf0')))continue;const _0x1e6523=_0x1a8aa2['split'](':')[0x2];for(const _0x5c67a6 of _0x31380d[_0x5848('0x32')]({'singleCharacters':!0x0})){const _0x3001c1=this[_0x5848('0x4c')](_0x5c67a6),_0x24ab94=_0x5848('0x9d')==_0x5c67a6[_0x5848('0x21')]?_0x5c67a6['previousPosition']['path']['slice'](0x0,-0x1):_0x5c67a6[_0x5848('0xa5')][_0x5848('0x22')],_0x13791c=_0x4e5f47[_0x5848('0xb')](_0x24ab94)[_0x5848('0x40')](_0x3001c1);this[_0x5848('0xf6')][_0x5848('0xf1')](_0x13791c,{'userId':_0x1e6523});}}}this[_0x5848('0x5b')]=this['_revisionId'];const _0x320835=[...Array(this[_0x5848('0x64')])[_0x5848('0x94')]()]['slice'](0x1)['filter'](_0x4aa281=>!this['_touched']['has'](_0x4aa281));let _0x4cf247=0x0;const _0x404bcf=new Map();for(const _0x572c10 in _0xdf5efe['diffData']){const _0x588e9d=_0xdf5efe[_0x5848('0x4d')][_0x572c10][_0x5848('0x103')],_0x399cc7=_0x1a20f3(_0xdf5efe[_0x5848('0x4d')][_0x572c10][_0x5848('0xaa')])||{},_0x1d0a5c=this[_0x5848('0x102')](_0xdf5efe[_0x5848('0x4d')][_0x572c10]['insertions']);_0x1d0a5c[_0x5848('0xda')]=_0x572c10,_0x1d0a5c[_0x5848('0x55')]=!_0x588e9d||_0x588e9d[_0x5848('0x5d')],_0x1d0a5c[_0x5848('0x5d')]=()=>_0x1d0a5c['_isAttached'],this[_0x5848('0x27')][_0x5848('0xf1')](_0x572c10,_0x1d0a5c),this[_0x5848('0x34')][_0x5848('0xf1')](_0x572c10,_0x399cc7);const _0x965183=this[_0x5848('0x78')](_0x1d0a5c,Number[_0x5848('0x25')]);this[_0x5848('0xb7')]['set'](_0x572c10,_0x965183),_0x404bcf['set'](_0x572c10,_0x1d0a5c[_0x5848('0x5d')]()?_0x399cc7:{});for(const [_0x5355ca,_0x202300]of _0x1d0a5c[_0x5848('0xf8')]){if(!_0x5355ca[_0x5848('0xd9')](_0x5848('0xf0')))continue;const _0x398a3c=_0x5355ca[_0x5848('0xb1')](':')[0x2];for(const _0x27afc9 of _0x202300[_0x5848('0x32')]({'singleCharacters':!0x0})){const _0x1713e9=this[_0x5848('0x4c')](_0x27afc9),_0x76c766=this['_revisionId']++,_0x283089='elementEnd'==_0x27afc9[_0x5848('0x21')]?_0x27afc9[_0x5848('0xa5')][_0x5848('0x22')][_0x5848('0x7d')](0x0,-0x1):_0x27afc9[_0x5848('0xa5')][_0x5848('0x22')];_0x965183['getNodeByPath'](_0x283089)[_0x5848('0x76')](_0x1713e9,_0x76c766),this[_0x5848('0xf6')]['set'](_0x76c766,{'userId':_0x398a3c});}}for(const _0x343414 of this[_0x5848('0xef')][_0x5848('0x8c')]['createRangeIn'](_0x1d0a5c)[_0x5848('0x32')]({'singleCharacters':!0x0})){const _0xbade6c=this[_0x5848('0x4c')](_0x343414),_0x63a914=_0x5848('0x9d')==_0x343414['type']?_0x343414['previousPosition'][_0x5848('0x22')]['slice'](0x0,-0x1):_0x343414[_0x5848('0xa5')][_0x5848('0x22')],_0x24963f=_0x965183[_0x5848('0xb')](_0x63a914);_0x24963f['getAttribute'](_0xbade6c)>0x0||_0x24963f[_0x5848('0x76')](_0xbade6c,_0x320835[_0x4cf247++]);}for(const [_0x31314c,_0x5370a2]of _0x1d0a5c[_0x5848('0xf8')])_0x31314c['startsWith'](_0x5848('0xf0'))||this[_0x5848('0x33')]['set'](_0x31314c,_0x5370a2);}const _0x16a159=J(_0x5848('0x88'));this[_0x5848('0x7b')][_0x5848('0xf1')]('$graveyard',_0x16a159),this[_0x5848('0x47')][_0x5848('0xf1')](_0x5848('0x88'),this[_0x5848('0x78')](_0x16a159,0x1));const _0x1db5a2=J(_0x5848('0x88'));this[_0x5848('0x27')][_0x5848('0xf1')](_0x5848('0x88'),_0x1db5a2),this[_0x5848('0xb7')][_0x5848('0xf1')]('$graveyard',this['_makeIdsRoot'](_0x1db5a2,0x1));const _0x5ac608=Array['from'](this[_0x5848('0x27')])[_0x5848('0x51')](([_0x43a984,_0x338203])=>[_0x43a984,B(_0x338203)]);this[_0x5848('0xcb')](this[_0x5848('0xad')],_0x5ac608,this[_0x5848('0x33')],_0x404bcf);}[_0x5848('0x102')](_0x3a5596){const _0x4f012f=JSON[_0x5848('0x80')](_0x3a5596),_0x490355=this[_0x5848('0xef')][_0x5848('0x5a')]['view'][_0x5848('0xb5')],_0x33ecb3=new _0x27b500(_0x490355,_0x4f012f[_0x5848('0x51')](_0x42e951=>F(_0x42e951,this[_0x5848('0xef')])));return this['editor']['data'][_0x5848('0xbb')](_0x33ecb3);}[_0x5848('0xcb')](_0x5b118e,_0x3b6b30,_0x2977de,_0x465ceb){const _0x187d82=new Map(_0x3b6b30),_0x23c0db=new Map(_0x1a20f3(_0x465ceb)),_0x13681c=new Map();for(const [_0x6f96e1,_0x4753eb]of _0x2977de)_0x13681c[_0x5848('0xf1')](_0x6f96e1,{'start':_0x4753eb[_0x5848('0xa6')]['clone'](),'end':_0x4753eb[_0x5848('0xc5')][_0x5848('0x37')](),'rootName':_0x4753eb[_0x5848('0x91')][_0x5848('0xda')]});this['_savedMetaData'][_0x5848('0xf1')](_0x5b118e,{'roots':_0x187d82,'markers':_0x13681c,'rootsAttributes':_0x23c0db});}[_0x5848('0xe5')](_0x199486){this[_0x5848('0x63')][_0x5848('0xc')](_0x199486);}[_0x5848('0x92')](){this['_reset'](),this[_0x5848('0x10')]=-0x1,this[_0x5848('0xad')]=-0x1,this['_savedMetaData'][_0x5848('0x7')](),this[_0x5848('0x105')](this[_0x5848('0xe1')]);}[_0x5848('0xbc')](){this['_touched'][_0x5848('0x7')](),this['_touchedMarkers'][_0x5848('0x7')](),this[_0x5848('0x2b')][_0x5848('0x7')](),this['_diffRoots'][_0x5848('0x7')](),this[_0x5848('0x34')][_0x5848('0x7')](),this[_0x5848('0x7b')]['clear'](),this[_0x5848('0x23')][_0x5848('0x7')](),this[_0x5848('0xb7')][_0x5848('0x7')](),this[_0x5848('0x47')][_0x5848('0x7')](),this[_0x5848('0x33')][_0x5848('0x7')](),this[_0x5848('0x64')]=0x1,this[_0x5848('0x5b')]=this['_revisionId'];}[_0x5848('0x78')](_0x4aef02,_0x562078=null){let _0x15ba03=null;_0x4aef02['is'](_0x5848('0x1'))||(_0x15ba03=new _0xff880d(_0x4aef02[_0x5848('0x20')],{'vid_start':null===_0x562078?this['_revisionId']++:_0x562078++}));const _0x2d0b9b=[];for(const _0xdee884 of _0x4aef02['getChildren']())if(_0xdee884['is'](_0x5848('0xde'))){_0x2d0b9b[_0x5848('0x14')](this['_makeIdsRoot'](_0xdee884,_0x562078));const _0x1dc338=_0x2d0b9b[_0x2d0b9b[_0x5848('0xd4')]-0x1];null!==_0x562078&&(_0x562078=_0x1dc338['is'](_0x5848('0xde'),_0x5848('0xc4'))?_0x1dc338[_0x5848('0x40')](_0x5848('0xa7'))+0x1:_0x1dc338[_0x5848('0x40')](_0x5848('0x56'))+0x1);}else for(let _0x34d5d4=0x0;_0x34d5d4<_0xdee884[_0x5848('0x81')];_0x34d5d4++)_0x2d0b9b['push'](new _0xff880d(_0x5848('0xc4'),{'vid':null===_0x562078?this[_0x5848('0x64')]++:_0x562078++}));if(_0x4aef02['is']('documentFragment')){const _0x60b564=J(_0x4aef02[_0x5848('0xda')]);return _0x60b564[_0x5848('0xd5')](0x0,_0x2d0b9b),_0x60b564;}return _0x15ba03[_0x5848('0x76')]('vid_end',null===_0x562078?this['_revisionId']++:_0x562078++),_0x15ba03['_insertChild'](0x0,_0x2d0b9b),_0x15ba03;}[_0x5848('0x19')](_0x5a3c2e,_0x495786,_0x400aff){this[_0x5848('0xbc')]();const {roots:_0x3585ff,markers:_0x49694e,rootsAttributes:_0x2b33aa}=this[_0x5848('0x63')][_0x5848('0x53')](_0x5a3c2e);this[_0x5848('0x7b')]=new Map(_0x3585ff),this[_0x5848('0x23')]=new Map(_0x1a20f3(_0x2b33aa));for(const [_0x1d93c2,_0x54bd38]of this['_baseRoots'])if(_0x5848('0x88')!==_0x1d93c2&&(this[_0x5848('0x27')]['set'](_0x1d93c2,B(_0x54bd38)),this['_diffRootsAttributes']=new Map(_0x1a20f3(_0x2b33aa)),_0x400aff)){const _0x328a1d=this[_0x5848('0x64')];this['_idsRoots'][_0x5848('0xf1')](_0x1d93c2,this['_makeIdsRoot'](_0x54bd38)),this[_0x5848('0x47')][_0x5848('0xf1')](_0x1d93c2,this[_0x5848('0x78')](_0x54bd38,_0x328a1d));}this[_0x5848('0x5b')]=this[_0x5848('0x64')],this[_0x5848('0x27')][_0x5848('0xf1')](_0x5848('0x88'),B(this[_0x5848('0x7b')]['get'](_0x5848('0x88')))),_0x400aff&&this[_0x5848('0xb7')]['set']('$graveyard',this[_0x5848('0x78')](this[_0x5848('0x7b')][_0x5848('0x53')](_0x5848('0x88'))));for(const [_0x183e99,_0x443b11]of _0x49694e){const _0x3d572a=this[_0x5848('0x7b')][_0x5848('0x53')](_0x443b11[_0x5848('0xda')]),_0x27e87a=this['_diffRoots'][_0x5848('0x53')](_0x443b11['rootName']),_0x383afe=new _0x325215(this[_0x5848('0x9e')](_0x443b11[_0x5848('0xa6')],_0x3d572a),this[_0x5848('0x9e')](_0x443b11['end'],_0x3d572a)),_0x3dcc29=this[_0x5848('0x35')](_0x383afe,_0x27e87a);_0x3d572a[_0x5848('0xf8')][_0x5848('0xf1')](_0x183e99,_0x383afe),this[_0x5848('0x33')]['set'](_0x183e99,_0x3dcc29);}this[_0x5848('0x100')](_0x5a3c2e,_0x495786,_0x400aff);}[_0x5848('0x100')](_0x28e70c,_0xd5cf94,_0x68da8f){for(const _0x47c3c7 of this['source']['getOperations'](_0x28e70c,_0xd5cf94))this[_0x5848('0x52')](_0x47c3c7,_0x68da8f);for(const _0x21a05c of this[_0x5848('0x27')][_0x5848('0x82')]())_0x21a05c[_0x5848('0xf8')][_0x5848('0x7')]();for(const [_0x589540,_0x2f245f]of this[_0x5848('0x33')]){this['_diffRoots']['get'](_0x2f245f[_0x5848('0x91')][_0x5848('0xda')])[_0x5848('0xf8')][_0x5848('0xf1')](_0x589540,_0x2f245f['clone']());}const _0x1e5439=new Map(),_0x2a4ae5=new Map();for(const [_0x372b77,_0x204426]of this['_diffRoots'])_0x1e5439[_0x5848('0xf1')](_0x372b77,B(_0x204426)),_0x2a4ae5['set'](_0x372b77,this[_0x5848('0x34')][_0x5848('0x53')](_0x372b77));this[_0x5848('0xcb')](_0xd5cf94,_0x1e5439,this[_0x5848('0x33')],_0x2a4ae5);}[_0x5848('0x72')](_0x49ed40){const _0x2fc8fa=Array[_0x5848('0xca')](this[_0x5848('0x63')][_0x5848('0x94')]());_0x2fc8fa['sort']((_0xb2c73e,_0x40b2ec)=>_0xb2c73e-_0x40b2ec),_0x2fc8fa[_0x5848('0xaf')]();for(const _0x7314e9 of _0x2fc8fa)if(_0x7314e9<_0x49ed40)return _0x7314e9;return Number['NEGATIVE_INFINITY'];}[_0x5848('0x4e')](_0x19342c,_0x4a1a18){const _0x151e50=Array[_0x5848('0xca')](_0x4a1a18[_0x5848('0xf8')])['map'](([_0x5726c2,_0x1dc0fe])=>[_0x5726c2,this[_0x5848('0x35')](_0x1dc0fe,_0x19342c)]);_0x19342c[_0x5848('0xf8')]=new Map(_0x151e50);}['_transformMarkers'](_0x1f0330){for(const _0x1ae008 of this[_0x5848('0x33')][_0x5848('0x82')]()){const _0x50149d=_0x1ae008[_0x5848('0x86')](_0x1f0330),_0x3fa2e9=_0x325215[_0x5848('0xc2')](_0x50149d);_0x1ae008[_0x5848('0xa6')]=_0x3fa2e9[_0x5848('0xa6')],_0x1ae008[_0x5848('0xc5')]=_0x3fa2e9[_0x5848('0xc5')];}}[_0x5848('0x52')](_0x29e121,_0x23ae0b){if('addRoot'==_0x29e121['type']||'detachRoot'==_0x29e121[_0x5848('0x21')])return void this[_0x5848('0xfe')](_0x29e121,_0x23ae0b);if(_0x5848('0xb6')==_0x29e121['type']){const _0x507f98=_0x29e121[_0x5848('0x8')][_0x5848('0x91')][_0x5848('0xda')];this[_0x5848('0x27')][_0x5848('0x65')](_0x507f98)||(this[_0x5848('0x27')][_0x5848('0xf1')](_0x507f98,J(_0x507f98,!0x0)),this[_0x5848('0x34')][_0x5848('0xf1')](_0x507f98,{}),_0x23ae0b&&this[_0x5848('0xb7')]['set'](_0x507f98,J(_0x507f98,!0x0)));}if(_0x5848('0xff')==_0x29e121['type']||'removeRootAttribute'==_0x29e121[_0x5848('0x21')]||'changeRootAttribute'==_0x29e121[_0x5848('0x21')])return void this[_0x5848('0xab')](_0x29e121);const _0x150237=this[_0x5848('0x3a')](_0x29e121,this[_0x5848('0x27')]);if(_0x5848('0xcd')!==_0x29e121[_0x5848('0x21')]&&(_0x150237[_0x5848('0xc0')](),this[_0x5848('0xfa')](_0x150237)),_0x23ae0b)switch(_0x150237[_0x5848('0x21')]){case _0x5848('0xb6'):this[_0x5848('0xe6')](_0x29e121);break;case _0x5848('0xfd'):case _0x5848('0xeb'):case _0x5848('0xbd'):this['_handleMoveOperation'](_0x29e121);break;case _0x5848('0x43'):this[_0x5848('0x67')](_0x29e121);break;case _0x5848('0xb1'):this[_0x5848('0x44')](_0x29e121);break;case'marker':this[_0x5848('0x36')](_0x29e121);}}[_0x5848('0x3a')](_0x130013,_0x48cffd){const _0x2ae05f=_0x130013[_0x5848('0x37')]();return _0x2ae05f['_authorId']=_0x130013[_0x5848('0x68')],this[_0x5848('0x84')](_0x2ae05f,_0x48cffd),_0x2ae05f;}[_0x5848('0xa0')](_0x4aa2f9){return _0x4aa2f9[_0x5848('0x51')](_0x4d36d1=>{const _0x310de0=this['_getVidAttributeName'](_0x4d36d1);return Number(_0x4d36d1[_0x5848('0xd6')][_0x5848('0x40')](_0x310de0));});}[_0x5848('0x18')](_0x5f575a,_0x400662){if(_0x5f575a['is'](_0x5848('0xde'),_0x5848('0xc4')))_0x400662[_0x5848('0x14')]({'item':_0x5f575a,'type':'text'});else{_0x5f575a['is']('element')&&_0x400662[_0x5848('0x14')]({'item':_0x5f575a,'type':'elementStart'});for(const _0x342a31 of _0x5f575a[_0x5848('0xf')]())this['_generateTape'](_0x342a31,_0x400662);_0x5f575a['is'](_0x5848('0xde'))&&_0x400662[_0x5848('0x14')]({'item':_0x5f575a,'type':_0x5848('0x9d')});}return _0x400662;}['_getState'](){const _0xaf0202=new Map(this[_0x5848('0xf6')]),_0x1607f9=new Map(_0xaf0202),_0x3bab6f=new Map(),_0xd3cfb2={'insertions':{},'deletions':{}},_0xe03a61={'insertions':{},'deletions':{}},_0x93cea4=new Map(),_0xfdc68c=new Set([...this[_0x5848('0x7b')][_0x5848('0x94')](),...this[_0x5848('0x27')][_0x5848('0x94')]()]);_0xfdc68c[_0x5848('0xc')]('$graveyard');for(const _0x2093d4 of _0xfdc68c){const _0x1b7edf=this[_0x5848('0x27')][_0x5848('0x53')](_0x2093d4)||J(_0x2093d4,!0x1),_0x3d38da=this[_0x5848('0x7b')][_0x5848('0x53')](_0x2093d4)||J(_0x2093d4,!0x1);_0x1b7edf['isAttached']()||_0x3d38da[_0x5848('0x5d')]()?(_0xd3cfb2[_0x5848('0xb2')][_0x2093d4]=B(_0x1b7edf),_0xd3cfb2[_0x5848('0x70')][_0x2093d4]=B(_0x3d38da),this[_0x5848('0x4e')](_0xd3cfb2['deletions'][_0x2093d4],_0x3d38da),this[_0x5848('0x4e')](_0xd3cfb2[_0x5848('0xb2')][_0x2093d4],_0x1b7edf),_0xe03a61[_0x5848('0xb2')][_0x2093d4]=this[_0x5848('0x18')](this['_idsRoots']['get'](_0x2093d4),[]),_0xe03a61[_0x5848('0x70')][_0x2093d4]=this[_0x5848('0x18')](this['_baseIdsRoots'][_0x5848('0x53')](_0x2093d4)||J(_0x2093d4,!0x1),[])):_0xfdc68c['delete'](_0x2093d4);}for(const _0x5dd3ce of _0xfdc68c){const _0x585f05=_0xe03a61[_0x5848('0xb2')][_0x5dd3ce];for(const _0x12236f of _0x585f05){const _0x3081ef=this[_0x5848('0x4c')](_0x12236f),_0x46f284=_0x12236f[_0x5848('0xd6')][_0x5848('0x40')](_0x3081ef);_0x1607f9[_0x5848('0xc')](_0x46f284),_0x46f284>=this['_startingRevisionId']&&_0x3bab6f[_0x5848('0xf1')](_0x46f284,_0xaf0202[_0x5848('0x53')](_0x46f284));}}for(const _0x5f0c82 of _0xfdc68c){const _0x55d8b4=_0xe03a61[_0x5848('0xb2')][_0x5f0c82],_0x21b007=this['_getBaseVids'](_0xe03a61[_0x5848('0x70')][_0x5f0c82]);let _0x435e01=0x0;for(const _0x5e6522 of _0x55d8b4){const _0x2dcb58=this[_0x5848('0x4c')](_0x5e6522),_0x384f=_0x5e6522[_0x5848('0xd6')][_0x5848('0x40')](_0x2dcb58);if(!_0x3bab6f[_0x5848('0x65')](_0x384f)&&!_0x93cea4[_0x5848('0x65')](_0x384f)){if(_0x1607f9[_0x5848('0x65')](_0x384f))_0x435e01++;else{if(_0x384f!=_0x21b007[_0x435e01]){const _0x1fcf90=_0xaf0202['get'](_0x384f)||_0xaf0202['get'](_0x21b007[_0x435e01]);for(;_0x384f!=_0x21b007[_0x435e01];)_0x1607f9['has'](_0x21b007[_0x435e01])||(_0x93cea4[_0x5848('0xf1')](_0x21b007[_0x435e01],_0x1fcf90),_0xaf0202['set'](_0x21b007[_0x435e01],_0x1fcf90)),_0x435e01++;}_0x435e01++;}}}}for(const _0x3f4d13 of _0xfdc68c){const _0xcac51c=_0xe03a61[_0x5848('0xb2')][_0x3f4d13];for(const _0x55a87e of _0xcac51c){const _0x28591a=this[_0x5848('0x4c')](_0x55a87e),_0x26ea51=_0x55a87e[_0x5848('0xd6')][_0x5848('0x40')](_0x28591a);if(_0x93cea4[_0x5848('0x65')](_0x26ea51)){const _0x27f1d4=_0x93cea4['get'](_0x26ea51);_0x1607f9[_0x5848('0x65')](_0x26ea51)||_0x1607f9[_0x5848('0xf1')](_0x26ea51,{..._0x27f1d4}),_0x3bab6f[_0x5848('0xf1')](_0x26ea51,{..._0x27f1d4});}}}for(const _0x591466 of _0x1607f9[_0x5848('0x94')]())_0x591466>=this[_0x5848('0x5b')]&&_0x1607f9['delete'](_0x591466);const _0x17ca21=new Map();for(const _0x36ef5e of _0xfdc68c){let _0x4a6fdd=_0xe03a61['insertions'][_0x36ef5e];for(const _0x410333 of _0x4a6fdd)if(_0x410333[_0x5848('0xd6')]['is'](_0x5848('0xde'),_0x5848('0x57'))){const _0x99e570=this[_0x5848('0x4c')](_0x410333),_0x2c7e26=_0x410333[_0x5848('0xd6')][_0x5848('0x40')](_0x99e570);if(_0x3bab6f[_0x5848('0x65')](_0x2c7e26)){const _0x291290=_0x410333['item'][_0x5848('0x39')][_0x5848('0x39')]['getAttribute']('vid_start'),_0x2bfa59=_0x17ca21['get'](_0x291290)||new Set();_0x2bfa59['add'](_0x3bab6f['get'](_0x2c7e26)[_0x5848('0x61')]),_0x17ca21[_0x5848('0xf1')](_0x291290,_0x2bfa59);}}_0x4a6fdd=_0xe03a61[_0x5848('0x70')][_0x36ef5e];for(const _0x3c04da of _0x4a6fdd)if(_0x3c04da[_0x5848('0xd6')]['is'](_0x5848('0xde'),'tableCell')){const _0x1425d1=this[_0x5848('0x4c')](_0x3c04da),_0x590778=_0x3c04da[_0x5848('0xd6')][_0x5848('0x40')](_0x1425d1);if(_0x1607f9['has'](_0x590778)){const _0x3b3247=_0x3c04da['item'][_0x5848('0x39')][_0x5848('0x39')][_0x5848('0x40')]('vid_start'),_0x108e15=_0x17ca21[_0x5848('0x53')](_0x3b3247)||new Set();_0x108e15['add'](_0x1607f9[_0x5848('0x53')](_0x590778)[_0x5848('0x61')]),_0x17ca21[_0x5848('0xf1')](_0x3b3247,_0x108e15);}}for(const _0x5399bd of _0x17ca21['keys']())(_0x3bab6f[_0x5848('0x65')](_0x5399bd)||_0x1607f9[_0x5848('0x65')](_0x5399bd))&&_0x17ca21[_0x5848('0xc')](_0x5399bd);}for(const _0x30dfed of _0xfdc68c){const _0x22b9a2=_0xe03a61['insertions'][_0x30dfed];let _0x343536=null,_0x34cf67=null;for(const _0x397a39 of _0x22b9a2){const _0x7d2af2=this[_0x5848('0x4c')](_0x397a39),_0x247a7a=_0x397a39[_0x5848('0xd6')]['getAttribute'](_0x7d2af2),_0x394944=_0x17ca21['get'](_0x247a7a);_0x394944&&_0x5848('0x11')==_0x397a39['type']&&(_0x343536=Array[_0x5848('0xca')](_0x394944)[0x0],_0x34cf67=_0x397a39['item'][_0x5848('0x40')](_0x5848('0x56'))),_0x343536&&(_0x1607f9[_0x5848('0xf1')](_0x247a7a,{'userId':_0x343536}),_0x3bab6f['set'](_0x247a7a,{'userId':_0x343536})),_0x247a7a==_0x34cf67&&(_0x343536=null,_0x34cf67=null);}}const _0x56b9a0={},_0x59d97d=new Set();for(const _0x18c5bf of _0xfdc68c){const _0x458fcb=_0xd3cfb2['deletions'][_0x18c5bf],_0x18e975=_0xd3cfb2[_0x5848('0xb2')][_0x18c5bf];for(const {userId:_0x1bebef}of this['_touchedMarkers'][_0x5848('0x82')]())null!==_0x1bebef&&_0x59d97d['add'](_0x1bebef);for(const {userId:_0x46fb9c}of this['_touchedRoots'][_0x5848('0x82')]())null!==_0x46fb9c&&_0x59d97d['add'](_0x46fb9c);this[_0x5848('0xb8')](_0x18e975,_0xe03a61[_0x5848('0xb2')][_0x18c5bf],_0x3bab6f,'insertion',_0x59d97d),this[_0x5848('0xb8')](_0x458fcb,_0xe03a61['deletions'][_0x18c5bf],_0x1607f9,_0x5848('0x4a'),_0x59d97d),_0x56b9a0[_0x18c5bf]={'insertions':this[_0x5848('0x95')](_0x18e975),'deletions':this[_0x5848('0x95')](_0x458fcb),'attachChange':this[_0x5848('0x2b')][_0x5848('0x53')](_0x18c5bf)||null,'attributesBefore':_0x1a20f3(this['_baseRootsAttributes'][_0x5848('0x53')](_0x18c5bf))||{},'attributesAfter':_0x1a20f3(this[_0x5848('0x34')]['get'](_0x18c5bf))};}return{'diffData':_0x56b9a0,'authorsIds':Array['from'](_0x59d97d)};}['_processRootBeforeSave'](_0x178dc7){for(const [,_0x167ee2]of _0x178dc7[_0x5848('0xf8')]){const _0x3695ed=_0x167ee2[_0x5848('0xa6')][_0x5848('0xdf')]()[_0x5848('0x3f')](_0x147095=>'tableCell'==_0x147095[_0x5848('0x20')]);for(const _0x1f3891 of _0x3695ed)0x1==_0x1f3891['childCount']&&_0x1f3891[_0x5848('0xe')](0x0)['is']('element',_0x5848('0x75'))&&_0x1f3891['getChild'](0x0)[_0x5848('0x76')](_0x5848('0x2e'),!0x0);}}[_0x5848('0x95')](_0x4681d6){this[_0x5848('0xc3')](_0x4681d6);const _0x1681d0=this['editor'][_0x5848('0x7c')][_0x5848('0xf9')](_0x4681d6,{}),_0x2bae2a=Array[_0x5848('0xca')](_0x1681d0['getChildren']())[_0x5848('0x51')](_0x44284f=>this['_getViewJson'](_0x44284f));return JSON['stringify'](_0x2bae2a);}['_getViewJson'](_0x1fc4ec){if(_0x1fc4ec['is'](_0x5848('0xc4')))return _0x1fc4ec[_0x5848('0x7c')];{const _0x41836d=_0x1fc4ec;return{'type':Object['keys'](j)['find'](_0x13ca77=>_0x1fc4ec instanceof j[_0x13ca77]),'name':_0x41836d[_0x5848('0x20')],'attributes':Array[_0x5848('0xca')](_0x41836d[_0x5848('0x15')]()),'children':Array[_0x5848('0xca')](_0x41836d['getChildren']())[_0x5848('0x51')](_0x3972c4=>this['_getViewJson'](_0x3972c4))};}}['_markChanges'](_0x1d7f6b,_0x6a6c49,_0x95d36e,_0x86b9c0,_0x384f7d){let _0x11fd68=null,_0x51616b=null,_0x351c93=0x0;const _0x16967c=this[_0x5848('0xef')][_0x5848('0x8c')];for(let _0x1caab6=0x0;_0x1caab6<_0x6a6c49[_0x5848('0xd4')];_0x1caab6++){const _0x58984f=this['_getVidAttributeName'](_0x6a6c49[_0x1caab6]),_0x6e9da9=_0x6a6c49[_0x1caab6][_0x5848('0xd6')][_0x5848('0x40')](_0x58984f),_0x14f561=_0x95d36e[_0x5848('0x53')](_0x6e9da9),_0x597c71=_0x1caab6==_0x6a6c49[_0x5848('0xd4')]-0x1;(!_0x11fd68&&_0x14f561&&(_0x11fd68=_0x14f561,_0x51616b=_0x6a6c49[_0x1caab6]),_0x11fd68&&(!_0x14f561||_0x14f561[_0x5848('0x61')]!=_0x11fd68[_0x5848('0x61')]))&&(_0x4580f6(_0x14f561,H(_0x51616b,_0x1d7f6b,_0x16967c),H(_0x6a6c49[_0x1caab6],_0x1d7f6b,_0x16967c)),_0x11fd68=_0x14f561||null,_0x51616b=_0x14f561?_0x6a6c49[_0x1caab6]:null),_0x11fd68&&_0x597c71&&_0x4580f6(_0x14f561,H(_0x51616b,_0x1d7f6b,_0x16967c),q(_0x6a6c49[_0x1caab6],_0x1d7f6b,_0x16967c));}function _0x4580f6(_0x1959ed,_0x3af606,_0x122370){const _0x1bdc58=_0x11fd68[_0x5848('0x61')],_0x150bf9=_0x5848('0xf0')+_0x86b9c0+':'+_0x1bdc58+':'+_0x351c93++,_0x21df43=_0x16967c[_0x5848('0xf3')](_0x3af606,_0x122370);_0x1d7f6b[_0x5848('0xf8')][_0x5848('0xf1')](_0x150bf9,_0x21df43),null!==_0x1bdc58&&_0x384f7d[_0x5848('0x58')](_0x1bdc58);}}[_0x5848('0x4c')](_0x15b305){switch(_0x15b305[_0x5848('0x21')]){case _0x5848('0x11'):return _0x5848('0xe0');case _0x5848('0x9d'):return _0x5848('0x56');default:return'vid';}}['_fixOperation'](_0x203c29,_0x178a6b){_0x203c29['baseVersion']=null;for(const _0x116bf1 in _0x203c29){const _0x1662bf=_0x203c29[_0x116bf1];if(_0x1662bf instanceof _0x5cf6ce){const _0x5707de=_0x178a6b[_0x5848('0x53')](_0x1662bf[_0x5848('0x91')][_0x5848('0xda')]);_0x203c29[_0x116bf1]=this[_0x5848('0x9e')](_0x1662bf,_0x5707de);}if(_0x1662bf instanceof _0x325215){const _0x47e539=_0x178a6b['get'](_0x1662bf[_0x5848('0x91')][_0x5848('0xda')]);_0x203c29[_0x116bf1]=this[_0x5848('0x35')](_0x1662bf,_0x47e539);}_0x5848('0x91')===_0x116bf1&&(_0x203c29[_0x5848('0x91')]=_0x178a6b[_0x5848('0x53')](_0x203c29[_0x5848('0x91')][_0x5848('0xda')]));}}[_0x5848('0x35')](_0x50bfa1,_0x525f99){return this['editor']['model'][_0x5848('0xf3')](this[_0x5848('0x9e')](_0x50bfa1[_0x5848('0xa6')],_0x525f99),this[_0x5848('0x9e')](_0x50bfa1[_0x5848('0xc5')],_0x525f99));}[_0x5848('0x9e')](_0x348592,_0x17b3dc){return this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xa8')](_0x17b3dc,_0x348592[_0x5848('0x22')],_0x348592[_0x5848('0x42')]);}['_handleInsertOperation'](_0x1b44fa){const _0x3f6ed0=this[_0x5848('0xb7')][_0x5848('0x53')](_0x1b44fa[_0x5848('0x8')][_0x5848('0x91')][_0x5848('0xda')]),_0x13318d=this[_0x5848('0x9e')](_0x1b44fa[_0x5848('0x8')],_0x3f6ed0),_0x520dd7=null===_0x1b44fa['_authorId']?null:_0x1b44fa['_authorId']||this['editor']['plugins'][_0x5848('0x53')]('Users')['me']['id'],_0x4d052f=_0x13318d['parent'],_0x16d18e=this[_0x5848('0x64')],_0x3d1c68=[];for(const _0x373d8b of _0x1b44fa[_0x5848('0x6b')])if(_0x373d8b['is']('element'))_0x3d1c68[_0x5848('0x14')](this[_0x5848('0x78')](_0x373d8b));else for(let _0x46540a=0x0;_0x46540a<_0x373d8b['offsetSize'];_0x46540a++)_0x3d1c68['push'](new _0xff880d('$text',{'vid':this['_revisionId']++}));const _0x11c6c8=this[_0x5848('0x64')];for(let _0x2b1e37=_0x16d18e;_0x2b1e37<_0x11c6c8;_0x2b1e37++)this[_0x5848('0xf6')][_0x5848('0xf1')](_0x2b1e37,{'userId':_0x520dd7});_0x4d052f[_0x5848('0xd5')](_0x13318d['offset'],_0x3d1c68);}[_0x5848('0xbe')](_0x15329e){(_0x15329e=this[_0x5848('0x3a')](_0x15329e,this[_0x5848('0xb7')]))[_0x5848('0xc0')]();const _0x34f79b=null===_0x15329e[_0x5848('0x68')]?null:_0x15329e['_authorId']||this[_0x5848('0xef')]['plugins'][_0x5848('0x53')](_0x5848('0xf7'))['me']['id'],_0x1a23ef=_0x15329e['getMovedRangeStart'](),_0x3119b5=_0x1a23ef[_0x5848('0x39')],_0x9474ce=_0x1a23ef['offset'];!function _0x54a64e(_0x4a4cea,_0x2c68f8,_0x25e142,_0x5ec7e3){for(let _0x294934=_0x25e142;_0x294934<_0x5ec7e3;_0x294934++){const _0x22d496=_0x2c68f8[_0x5848('0xe')](_0x294934);_0x22d496['is'](_0x5848('0xde'),_0x5848('0xc4'))?_0x4a4cea[_0x5848('0xf1')](_0x22d496[_0x5848('0x40')](_0x5848('0xa7')),{'userId':_0x34f79b}):(_0x4a4cea[_0x5848('0xf1')](_0x22d496[_0x5848('0x40')](_0x5848('0xe0')),{'userId':_0x34f79b}),_0x54a64e(_0x4a4cea,_0x22d496,0x0,_0x22d496['childCount']),_0x4a4cea[_0x5848('0xf1')](_0x22d496[_0x5848('0x40')](_0x5848('0x56')),{'userId':_0x34f79b}));}}(this[_0x5848('0xf6')],_0x3119b5,_0x9474ce,_0x9474ce+_0x15329e[_0x5848('0x90')]);}[_0x5848('0x67')](_0x2381c2){const _0x23ebe7=null===(_0x2381c2=this['_cloneOperation'](_0x2381c2,this[_0x5848('0xb7')]))['_authorId']?null:_0x2381c2[_0x5848('0x68')]||this['editor']['plugins']['get'](_0x5848('0xf7'))['me']['id'],_0x2d2306=_0x2381c2[_0x5848('0x6d')][_0x5848('0x39')],_0x4839fc=_0x2381c2['sourcePosition'][_0x5848('0x39')],_0x143f8a=_0x2d2306[_0x5848('0x40')](_0x5848('0x56')),_0x3e6737=_0x4839fc[_0x5848('0x40')](_0x5848('0xe0'));_0x2d2306[_0x5848('0x76')](_0x5848('0x56'),_0x4839fc[_0x5848('0x40')]('vid_end')),_0x4839fc[_0x5848('0x76')]('vid_end',_0x143f8a),this[_0x5848('0xf6')]['set'](_0x3e6737,{'userId':_0x23ebe7}),this[_0x5848('0xf6')]['set'](_0x143f8a,{'userId':_0x23ebe7}),_0x2381c2[_0x5848('0xc0')]();}['_handleSplitOperation'](_0x56da36){const _0x3e3a90=null===(_0x56da36=this[_0x5848('0x3a')](_0x56da36,this[_0x5848('0xb7')]))[_0x5848('0x68')]?null:_0x56da36['_authorId']||this[_0x5848('0xef')][_0x5848('0x96')]['get'](_0x5848('0xf7'))['me']['id'],_0x5f22b3=_0x56da36[_0x5848('0x6c')],_0xefa9f6=_0x56da36[_0x5848('0xae')][_0x5848('0x39')];_0x56da36[_0x5848('0xc0')]();const _0x148be6=_0xefa9f6['getAttribute'](_0x5848('0x56')),_0x5d3580=_0x56da36['insertionPosition'][_0x5848('0x9b')];if(_0x5f22b3){const _0x1c74b5=_0x5d3580['getAttribute'](_0x5848('0x56')),_0x5e1f9b=_0xefa9f6[_0x5848('0x40')](_0x5848('0x56'));_0xefa9f6[_0x5848('0x76')](_0x5848('0x56'),_0x1c74b5),_0x5d3580[_0x5848('0x76')]('vid_end',_0x5e1f9b),this[_0x5848('0xf6')][_0x5848('0xf1')](_0xefa9f6['getAttribute']('vid_end'),{'userId':_0x3e3a90}),this[_0x5848('0xf6')][_0x5848('0xf1')](_0x5d3580[_0x5848('0x40')](_0x5848('0xe0')),{'userId':_0x3e3a90});}else{const _0x2f12d0=this[_0x5848('0x64')]++,_0x1d4787=this[_0x5848('0x64')]++;_0xefa9f6[_0x5848('0x76')](_0x5848('0x56'),_0x2f12d0),_0x5d3580[_0x5848('0x76')]('vid_start',_0x1d4787),_0x5d3580[_0x5848('0x76')](_0x5848('0x56'),_0x148be6),this[_0x5848('0xf6')]['set'](_0x2f12d0,{'userId':_0x3e3a90}),this[_0x5848('0xf6')]['set'](_0x1d4787,{'userId':_0x3e3a90});}}[_0x5848('0x36')](_0x5c7f35){if(!_0x5c7f35[_0x5848('0xc7')])return;const _0x4b6fa9=(_0x5c7f35=this[_0x5848('0x3a')](_0x5c7f35,this[_0x5848('0x27')]))[_0x5848('0xdc')]?_0x5c7f35[_0x5848('0xdc')][_0x5848('0x91')]:null,_0x51f1cd=_0x5c7f35[_0x5848('0x1a')]?_0x5c7f35['newRange'][_0x5848('0x91')]:null;_0x4b6fa9&&this['_markers'][_0x5848('0xc')](_0x5c7f35[_0x5848('0x20')]),_0x51f1cd&&this['_markers'][_0x5848('0xf1')](_0x5c7f35['name'],_0x5c7f35[_0x5848('0x1a')]['clone']());const _0x2ecc28=null===_0x5c7f35[_0x5848('0x68')]?null:_0x5c7f35['_authorId']||this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x53')](_0x5848('0xf7'))['me']['id'],_0x5dcdf9=_0x5c7f35[_0x5848('0x20')];if(!this[_0x5848('0xd0')]['has'](_0x5dcdf9))return void this[_0x5848('0xd0')][_0x5848('0xf1')](_0x5dcdf9,{'range':_0x5c7f35[_0x5848('0xdc')],'userId':_0x2ecc28});const _0x44a0a0=this[_0x5848('0xd0')][_0x5848('0x53')](_0x5dcdf9),_0x1dd533=_0x44a0a0[_0x5848('0x5')],_0x1d71bc=_0x5c7f35[_0x5848('0x1a')];null==_0x1dd533&&null==_0x1d71bc||_0x1dd533&&_0x1d71bc&&_0x1dd533[_0x5848('0x2d')](_0x1d71bc)?this[_0x5848('0xd0')][_0x5848('0xc')](_0x5c7f35[_0x5848('0x20')]):_0x44a0a0[_0x5848('0x61')]=_0x2ecc28;}[_0x5848('0xfe')](_0x2e8d5d,_0x26830c){this[_0x5848('0x27')]['has'](_0x2e8d5d['rootName'])?this[_0x5848('0x27')]['get'](_0x2e8d5d[_0x5848('0xda')])[_0x5848('0x55')]=_0x2e8d5d[_0x5848('0x38')]:(this['_diffRoots'][_0x5848('0xf1')](_0x2e8d5d[_0x5848('0xda')],J(_0x2e8d5d[_0x5848('0xda')],!0x0)),this['_diffRootsAttributes'][_0x5848('0xf1')](_0x2e8d5d['rootName'],{}),_0x26830c&&this['_idsRoots'][_0x5848('0xf1')](_0x2e8d5d[_0x5848('0xda')],J(_0x2e8d5d['rootName'],!0x0)));const _0x45e843=null===_0x2e8d5d[_0x5848('0x68')]?null:_0x2e8d5d['_authorId']||this[_0x5848('0xef')]['plugins'][_0x5848('0x53')](_0x5848('0xf7'))['me']['id'],_0x2f5f48=this[_0x5848('0x2b')]['get'](_0x2e8d5d[_0x5848('0xda')]);_0x2f5f48&&_0x2f5f48[_0x5848('0x61')]===_0x45e843?this[_0x5848('0x2b')]['delete'](_0x2e8d5d[_0x5848('0xda')]):this[_0x5848('0x2b')][_0x5848('0xf1')](_0x2e8d5d[_0x5848('0xda')],{'userId':_0x45e843,'isAttached':_0x2e8d5d[_0x5848('0x38')]});}[_0x5848('0xab')](_0xf0809d){const _0x43bcd8=this[_0x5848('0x34')][_0x5848('0x53')](_0xf0809d[_0x5848('0x91')][_0x5848('0xda')]);null===_0xf0809d[_0x5848('0x66')]?delete _0x43bcd8[_0xf0809d[_0x5848('0xa1')]]:_0x43bcd8[_0xf0809d[_0x5848('0xa1')]]=_0xf0809d[_0x5848('0x66')];}}function B(_0xf61e04){const _0x5d7896=J(_0xf61e04[_0x5848('0xda')],_0xf61e04['isAttached']());for(const _0x2b5200 of _0xf61e04[_0x5848('0xf')]()){const _0x47743a=_0x2b5200[_0x5848('0x6')](!0x0);_0x5d7896['_appendChild'](_0x47743a);}return _0x5d7896;}function J(_0x4a76fa,_0x510292=!0x0){const _0x1ea547=new _0x2edb62();return _0x1ea547[_0x5848('0xda')]=_0x4a76fa,_0x1ea547[_0x5848('0x55')]=_0x510292,_0x1ea547[_0x5848('0x5d')]=()=>_0x1ea547[_0x5848('0x55')],_0x1ea547;}function H(_0xb1dfac,_0x3c93ce,_0x47fdf2){const _0x4ac448=_0x5848('0x9d')==_0xb1dfac[_0x5848('0x21')]?_0x47fdf2[_0x5848('0x2f')](_0xb1dfac[_0x5848('0xd6')],'end'):_0x47fdf2[_0x5848('0x6e')](_0xb1dfac[_0x5848('0xd6')]);return _0x47fdf2['createPositionFromPath'](_0x3c93ce,_0x4ac448[_0x5848('0x22')],_0x4ac448['stickiness']);}function q(_0x52bdda,_0x2e7753,_0x28fcc0){const _0x4b7ba5=_0x5848('0x11')==_0x52bdda[_0x5848('0x21')]?_0x28fcc0['createPositionAt'](_0x52bdda['item'],0x0):_0x28fcc0[_0x5848('0xc6')](_0x52bdda['item']);return _0x28fcc0['createPositionFromPath'](_0x2e7753,_0x4b7ba5[_0x5848('0x22')],_0x4b7ba5['stickiness']);}
|
|
23
|
+
const _0x1a1b=['view','locale','_getBaseVids','key','creatorId','fromVersion','range','detachRoot','sendBufferedUpdates','RevisionTracker','howMany','_getState','nodes','_startingRevisionId','data','_isInit','createRevision','insertions','_loadRevisionData','_removeMetaData','bind','previousPosition','collaboration.channelId','_applyOperations','_revisionDataBuilder','_idsRoots','RevisionsRepository','_handleRootAttributeOperation','length','documentFragment','attributesAfter','_diffRoots','_markers','_touchedRoots','elementStart','addRevision','_startingVersion','start','offsetSize','initial','loadState','roots','getChild','getCurrentRevisionId','find','_baseIdsRoots','insertion','_saveMetaData','element','position','history','default','markerToData','get','isEnabled','RealTimeCollaborationClient','attributes','getRoot','userId','isAttached','reInit','getUser','_createInitialRevision','size','authors','_handleSplitOperation','_baseRootsAttributes','push','useFillerType','split','reinsert','attachChange','_getVidAttributeName','repository','createRange','setSource','_handleMarkerOperation','vid','createPositionAt','_fixRange','getLatestVersion','_markChanges','set','authorsIds','has','_isPendingUpdate','revision-start','oldRange','_revisionId','getChildren','newRange','getRange','affectsData','marker','toData','setRevisionData','includes','delete','_handleRootOperation','_baseRoots','item','toView','_insertChild','isReady','merge','_getFromVersion','resolve','offset','isEqual','stickiness','baseVersion','insert','_getViewJson','initialData','graveyardPosition','addRevisionData','end','_copyMarkers','_fixPosition','revision','string','_fixOperation','_clone','$text','getWalker','_continueCurrentRevision','getAttributes','shift','getNodeByPath','dataDowncast','parse','_touchedMarkers','getRevisionDocumentData','map','removeRootAttribute','move','editor-initial-data-replaced-with-revision-data','addRoot','startsWith','config','clone','_handleMoveOperation','trim','_bufferedUpdates','root','elementEnd','model','path','_createCurrentRevision','diffData','childCount','_makeIdsRoot','_execute','source','editing','fromEntries','keepParagraph','_transformMarkers','_calculateMetaData','_lastTo','deletion','some','isAdd','values','_touched','_authorId','getRevisionRootsAttributes','clear','getAttribute','_lastFrom','from','insertionPosition','vid_end','getTransformedByOperation','max','PendingActions','toVersion','_loadState','rootsAttributes','_getPreviousFrom','getOperation','_setAttribute','_savedMetaData','type','_initialRevisionId','sort','_cloneOperation','keys','newValue','toModel','pluginName','sourcePosition','version','revision-end','_appendChild','markers','creator','createdAt','_handleMergeOperation','createRangeIn','adapter','_update','_source','slice','processor','name','conversion','add','_makeModelFromViewString','_diffRootsAttributes','_pendingAction','_setConversion','hasContent','_handleInsertOperation','upcast','createPositionFromPath','PENDING_ACTION_REVISION_HISTORY','document','rootName','getAncestors','ready','vid_start','getData','_handleOperation','_generateTape','buildRevisionData','filter','revision:','tableCell','_initialRoots','plugins','afterInit','remove','_makeRevision','createPositionAfter','getTime','_loadedStateData','NEGATIVE_INFINITY','_createFromRanges','then','saveRevision','_bufferUpdate','Users','currentRevision','_removePendingAction','requires','_isAttached','deletions','_replaceEditorDataWithRevisionData','reverse','children','forEach','getRootNames','$graveyard','revisionHistory.resumeUnsavedRevision','editor','_findInsertionIndex','paragraph','getIndex','getRevision','updateRevisions','_removeRevisionMarkers','for','define','init','parent','_prepareViewToSave','targetPosition'];(function(_0x428d8c,_0x1a1bc5){const _0x4dd5ff=function(_0x34d596){while(--_0x34d596){_0x428d8c['push'](_0x428d8c['shift']());}};_0x4dd5ff(++_0x1a1bc5);}(_0x1a1b,0x17b));const _0x4dd5=function(_0x428d8c,_0x1a1bc5){_0x428d8c=_0x428d8c-0x0;let _0x4dd5ff=_0x1a1b[_0x428d8c];return _0x4dd5ff;};import{Users as _0x4b38ff}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x1b1345,PendingActions as _0x16e63f}from'ckeditor5/src/core';import{logWarning as _0x2f3209,uid as _0x1906ad}from'ckeditor5/src/utils';import{Position as _0x3ba29e,Range as _0x5d0701,Element as _0x4bbddb,DocumentFragment as _0xa7f566,ViewText as _0x182b62,ViewElement as _0xcad7c8,ViewContainerElement as _0x51b763,ViewAttributeElement as _0x375ece,ViewEmptyElement as _0x3fb80c,ViewRawElement as _0x2fdb4f,ViewUIElement as _0x5eb3e1,ViewDocumentFragment as _0x43e6fd}from'ckeditor5/src/engine';import _0x41a4bb from'./revisionsrepository';import{getTranslation as _0x829b0}from'./utils/common-translations';import{cloneDeep as _0x5bdcbe,isEqual as _0x490a96}from'lodash-es';const j={'c':_0x51b763,'a':_0x375ece,'e':_0x3fb80c,'r':_0x2fdb4f,'u':_0x5eb3e1};export default class l extends _0x1b1345{static get[_0x4dd5('0x4f')](){return _0x4dd5('0xa6');}static get[_0x4dd5('0x86')](){return[_0x4b38ff,_0x41a4bb,_0x16e63f];}constructor(_0x4aca61){super(_0x4aca61),this['adapter']=null,this['currentRevision']=null,this[_0x4dd5('0xb5')]=new T(this[_0x4dd5('0x90')]),this[_0x4dd5('0x49')]=this[_0x4dd5('0x90')]['config'][_0x4dd5('0xd2')](_0x4dd5('0xb3'))||_0x4dd5('0xc4'),this[_0x4dd5('0x20')]=new Map(),this[_0x4dd5('0x7d')]=null;const _0xc9355a=_0x1906ad();this[_0x4dd5('0x5b')]={'history':this['editor'][_0x4dd5('0x23')][_0x4dd5('0x6a')][_0x4dd5('0xcf')],'getLatestVersion':()=>Promise[_0x4dd5('0x107')](this['editor'][_0x4dd5('0x23')][_0x4dd5('0x6a')][_0x4dd5('0x51')]),'getCurrentRevisionId':()=>_0xc9355a},this['set'](_0x4dd5('0x104'),!0x1),this[_0x4dd5('0xef')](_0x4dd5('0xd3'),!0x0),this[_0x4dd5('0xef')](_0x4dd5('0xf2'),!0x1),this[_0x4dd5('0x90')]['config'][_0x4dd5('0x98')](_0x4dd5('0x8f'),!0x0),this[_0x4dd5('0x90')]['conversion']['for'](_0x4dd5('0x67'))['dataToMarker']({'view':_0x4dd5('0x8')});}[_0x4dd5('0x99')](){this[_0x4dd5('0xe6')]=this[_0x4dd5('0x90')][_0x4dd5('0x77')][_0x4dd5('0xd2')](_0x4dd5('0xb7')),this[_0x4dd5('0x64')](),this[_0x4dd5('0x90')][_0x4dd5('0xab')]['on'](_0x4dd5('0x6d'),()=>{const _0x50cc49=this[_0x4dd5('0xe6')][_0x4dd5('0x94')](0x0),_0x488da5=_0x50cc49&&null===_0x50cc49['creator']?_0x50cc49:null;if(this['_continueCurrentRevision']=!!_0x488da5&&this[_0x4dd5('0x90')][_0x4dd5('0x1c')][_0x4dd5('0xd2')](_0x4dd5('0x8f')),this[_0x4dd5('0x90')][_0x4dd5('0x77')][_0x4dd5('0xf1')](_0x4dd5('0xd4'))){const _0x30c00f=this[_0x4dd5('0x5b')][_0x4dd5('0xc8')](),_0x34158c=this['repository']['getRevision'](_0x30c00f);if(_0x34158c)this['_startingVersion']=_0x34158c[_0x4dd5('0xa2')],this[_0x4dd5('0xe')]=!0x1;else{const _0x2f7185=this['_source'][_0x4dd5('0xcf')]['_operations'][_0x4dd5('0xc9')](_0x54a14c=>!_0x54a14c[_0x4dd5('0xac')]),_0x52e089=_0x2f7185?_0x2f7185[_0x4dd5('0x10b')]:this[_0x4dd5('0x5b')][_0x4dd5('0xcf')][_0x4dd5('0x51')];_0x50cc49?(_0x50cc49['toVersion']<_0x52e089&&_0x50cc49[_0x4dd5('0x5a')]({'toVersion':_0x52e089}),this[_0x4dd5('0xe')]?(this[_0x4dd5('0x5b')]['getCurrentRevisionId']=()=>_0x488da5['id'],this[_0x4dd5('0xc1')]=_0x488da5[_0x4dd5('0xa2')]):(this[_0x4dd5('0xc1')]=_0x50cc49[_0x4dd5('0x41')],this[_0x4dd5('0xe')]=!0x1)):(this[_0x4dd5('0xc1')]=_0x52e089,this[_0x4dd5('0xe')]=!0x1);}}else _0x488da5&&(this[_0x4dd5('0x90')][_0x4dd5('0x23')][_0x4dd5('0x6a')][_0x4dd5('0xcf')]['version']=Math[_0x4dd5('0x3f')](_0x488da5[_0x4dd5('0x41')],this[_0x4dd5('0x90')][_0x4dd5('0x23')]['document'][_0x4dd5('0xcf')][_0x4dd5('0x51')]),_0x488da5[_0x4dd5('0xa2')]===_0x488da5['toVersion']?(0x0!==_0x488da5['fromVersion']&&(this[_0x4dd5('0x5b')][_0x4dd5('0xc8')]=()=>_0x488da5['id']),this[_0x4dd5('0xe')]=!0x1):this[_0x4dd5('0xe')]&&(this[_0x4dd5('0x5b')][_0x4dd5('0xc8')]=()=>_0x488da5['id'],this[_0x4dd5('0xc1')]=_0x488da5[_0x4dd5('0xa2')])),this[_0x4dd5('0xe')]||(this[_0x4dd5('0xc1')]=this[_0x4dd5('0x90')]['model']['document'][_0x4dd5('0x51')]);this[_0x4dd5('0xb5')][_0x4dd5('0x99')](this[_0x4dd5('0x5b')][_0x4dd5('0xcf')]),this['_createInitialRevision'](this[_0x4dd5('0xc1')]),this['_createCurrentRevision'](this[_0x4dd5('0xc1')]),this['adapter']&&this['sendBufferedUpdates']();}),this[_0x4dd5('0xb1')]('isReady')['to'](this,_0x4dd5('0xf2'),_0x9ad9a0=>!_0x9ad9a0);}async[_0x4dd5('0x78')](){if(this[_0x4dd5('0xe6')][_0x4dd5('0xb9')]>0x0){const _0xea2f5b=this[_0x4dd5('0xe6')][_0x4dd5('0x94')](0x0),_0xb00a7=await this[_0x4dd5('0x15')](_0xea2f5b),_0x114ec5=await this[_0x4dd5('0x37')](_0xea2f5b);this[_0x4dd5('0x89')](_0xb00a7,_0x114ec5);}}[_0x4dd5('0xe8')](_0x53e772){this[_0x4dd5('0x5b')]=_0x53e772;}async['update'](){const _0x558fb8=await this['_source'][_0x4dd5('0xed')]();if(_0x558fb8>this[_0x4dd5('0x84')][_0x4dd5('0x41')]){await this[_0x4dd5('0x42')]();const _0x54fcde=this['buildRevisionData']({'revision':this[_0x4dd5('0x84')],'to':_0x558fb8});_0x54fcde['authors']=_0x54fcde[_0x4dd5('0xf0')][_0x4dd5('0x16')](_0x25cbc2=>this[_0x4dd5('0x90')][_0x4dd5('0x77')][_0x4dd5('0xd2')](_0x4dd5('0x83'))[_0x4dd5('0xda')](_0x25cbc2)),this[_0x4dd5('0x84')][_0x4dd5('0x5a')](_0x54fcde);}}async[_0x4dd5('0x42')](){this[_0x4dd5('0xe')]&&!this[_0x4dd5('0x7d')]&&(await this['_loadRevisionData'](this['currentRevision']),this[_0x4dd5('0xb5')][_0x4dd5('0xc5')](this[_0x4dd5('0x84')]),this[_0x4dd5('0x7d')]={'fromVersion':this[_0x4dd5('0x84')][_0x4dd5('0xa2')],'authors':this[_0x4dd5('0x84')][_0x4dd5('0xdd')][_0x4dd5('0x5c')]()});}async[_0x4dd5('0x81')](_0x208b49={},_0x58064e=null){const _0x47eb46=[];await this[_0x4dd5('0x42')](),this[_0x4dd5('0xe')]=!0x1,_0x58064e>this['currentRevision'][_0x4dd5('0x41')]&&(_0x58064e=null),null===_0x58064e&&(_0x58064e=await this[_0x4dd5('0x5b')][_0x4dd5('0xed')]());const _0x3f2cde=this[_0x4dd5('0x106')](_0x58064e),_0x293a97=this[_0x4dd5('0x72')]({'from':_0x3f2cde,'to':_0x58064e});if(this['currentRevision'][_0x4dd5('0x41')]<_0x58064e){const _0x1d72a4=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x58064e,'to':_0x58064e});_0x1d72a4[_0x4dd5('0xdd')]=[],_0x1d72a4['authorsIds']=[],_0x1d72a4['id']=this[_0x4dd5('0x84')]['id'],this[_0x4dd5('0x84')][_0x4dd5('0x5a')](_0x1d72a4,!0x0),delete _0x1d72a4['authors'],_0x47eb46[_0x4dd5('0xe0')](_0x1d72a4);}_0x208b49[_0x4dd5('0xa1')]=this[_0x4dd5('0x90')][_0x4dd5('0x77')]['get'](_0x4dd5('0x83'))['me']['id'],_0x208b49[_0x4dd5('0x5e')]=_0x208b49['name']||null,_0x208b49['id']=_0x208b49['id']||_0x1906ad(),_0x208b49={..._0x208b49,..._0x293a97};const _0x11d3e5=this[_0x4dd5('0x4')](_0x208b49);_0x47eb46[_0x4dd5('0xe0')](_0x208b49);const _0x597a7a=this[_0x4dd5('0xe6')][_0x4dd5('0x93')](_0x11d3e5);if(0x0!==_0x597a7a){const _0x5e6336=this[_0x4dd5('0xe6')][_0x4dd5('0x94')](_0x597a7a-0x1);if(_0x5e6336[_0x4dd5('0xa2')]!==_0x58064e){const _0x1da376=this[_0x4dd5('0xb5')][_0x4dd5('0x6f')](_0x58064e,_0x5e6336[_0x4dd5('0x41')]),_0x94a3d4={'id':_0x5e6336['id'],'diffData':_0x1da376['diffData'],'authorsIds':_0x1da376[_0x4dd5('0xf0')],'authors':_0x1da376[_0x4dd5('0xf0')][_0x4dd5('0x16')](_0x10b7a0=>this[_0x4dd5('0x90')][_0x4dd5('0x77')][_0x4dd5('0xd2')](_0x4dd5('0x83'))[_0x4dd5('0xda')](_0x10b7a0)),'fromVersion':_0x58064e};_0x5e6336===this['currentRevision']&&(_0x94a3d4[_0x4dd5('0x56')]=new Date(_0x208b49[_0x4dd5('0x56')][_0x4dd5('0x7c')]()+0xa)),_0x5e6336[_0x4dd5('0x5a')](_0x94a3d4,!0x0),delete _0x94a3d4[_0x4dd5('0xdd')],_0x47eb46[_0x4dd5('0xe0')](_0x94a3d4);}}if(this[_0x4dd5('0x59')]){for(const _0x18270a of _0x47eb46)this[_0x4dd5('0x82')](_0x18270a['id'],_0x18270a,!0x0);this[_0x4dd5('0xa5')]();}return _0x11d3e5;}[_0x4dd5('0x4')](_0x34614e){const _0x507a0a=this[_0x4dd5('0xe6')][_0x4dd5('0xad')](_0x34614e);return this[_0x4dd5('0x59')]&&_0x507a0a['on']('_update',(_0x1b01ea,_0x5e7998,_0x390c3c)=>{_0x390c3c||(this[_0x4dd5('0x82')](_0x5e7998['id'],_0x5e7998,!0x0),this[_0x4dd5('0xa5')]());}),this['repository'][_0x4dd5('0xc0')](_0x507a0a,this[_0x4dd5('0x91')](_0x507a0a)),_0x507a0a;}async['getRevisionDocumentData'](_0x30b927){await this[_0x4dd5('0xaf')](_0x30b927);const _0x5f4188={};for(const _0x48fa9d in _0x30b927['diffData']){if(_0x30b927[_0x4dd5('0x26')][_0x48fa9d]['attachChange']&&!_0x30b927[_0x4dd5('0x26')][_0x48fa9d][_0x4dd5('0xe4')][_0x4dd5('0xd8')])continue;const _0x42363c=this[_0x4dd5('0x96')](JSON[_0x4dd5('0x13')](_0x30b927[_0x4dd5('0x26')][_0x48fa9d][_0x4dd5('0xae')])),_0x131e2d=this[_0x4dd5('0x90')][_0x4dd5('0x2b')][_0x4dd5('0x9d')][_0x4dd5('0x6a')],_0x2c2cd3=new _0x43e6fd(_0x131e2d,_0x42363c[_0x4dd5('0x16')](_0x4a5fc1=>F(_0x4a5fc1,this['editor'])));this[_0x4dd5('0x90')]['data'][_0x4dd5('0x5d')][_0x4dd5('0xe1')]('marked'),_0x5f4188[_0x48fa9d]=this[_0x4dd5('0x90')][_0x4dd5('0xab')][_0x4dd5('0x5d')][_0x4dd5('0xfb')](_0x2c2cd3),this[_0x4dd5('0x90')][_0x4dd5('0xab')][_0x4dd5('0x5d')][_0x4dd5('0xe1')](_0x4dd5('0xd0'));}return _0x5f4188;}async[_0x4dd5('0x37')](_0xd79fd9){await this[_0x4dd5('0xaf')](_0xd79fd9);const _0x48fb60={};for(const _0x5cac4d in _0xd79fd9[_0x4dd5('0x26')])_0xd79fd9[_0x4dd5('0x26')][_0x5cac4d][_0x4dd5('0xe4')]&&!_0xd79fd9[_0x4dd5('0x26')][_0x5cac4d][_0x4dd5('0xe4')][_0x4dd5('0xd8')]||(_0x48fb60[_0x5cac4d]=_0xd79fd9['diffData'][_0x5cac4d][_0x4dd5('0xbb')]||{});return _0x48fb60;}[_0x4dd5('0xa5')](){if(0x0===this[_0x4dd5('0x20')][_0x4dd5('0xdc')])return;if(this[_0x4dd5('0xf2')])return;let _0x4247e3=Array[_0x4dd5('0x3b')](this[_0x4dd5('0x20')][_0x4dd5('0x34')]());this[_0x4dd5('0x20')]['clear']();for(let _0x15c69c=0x0;_0x15c69c<_0x4247e3[_0x4dd5('0xb9')];_0x15c69c++){const _0x3f8fe8=_0x4247e3[_0x15c69c];let _0x7fcfbb=!0x1;for(const _0x1c5441 of Object[_0x4dd5('0x4c')](_0x3f8fe8))void 0x0===_0x3f8fe8[_0x1c5441]?delete _0x3f8fe8[_0x1c5441]:'id'!==_0x1c5441&&(_0x7fcfbb=!0x0);_0x7fcfbb||(_0x4247e3[_0x15c69c]=null);}if(_0x4247e3=_0x4247e3[_0x4dd5('0x73')](_0x181fdb=>null!==_0x181fdb),!_0x4247e3[_0x4dd5('0xb9')])return;for(let _0x51331a=0x0;_0x51331a<_0x4247e3[_0x4dd5('0xb9')];_0x51331a++){const _0x13617d=_0x4247e3[_0x51331a];void 0x0!==_0x13617d[_0x4dd5('0xa2')]&&void 0x0===_0x13617d[_0x4dd5('0x41')]&&(_0x13617d[_0x4dd5('0x41')]=this['repository'][_0x4dd5('0x94')](_0x13617d['id'])[_0x4dd5('0x41')]),void 0x0!==_0x13617d[_0x4dd5('0x41')]&&void 0x0===_0x13617d['fromVersion']&&(_0x13617d[_0x4dd5('0xa2')]=this[_0x4dd5('0xe6')]['getRevision'](_0x13617d['id'])[_0x4dd5('0xa2')]);}const _0xb53411=this['editor'][_0x4dd5('0x1c')]['get'](_0x4dd5('0xb3'));this[_0x4dd5('0xf2')]=!0x0,this['_addPendingAction'](),this[_0x4dd5('0x59')][_0x4dd5('0x95')](_0x4247e3,_0xb53411)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x326feb=>{if(_0x326feb)for(const _0x357cd2 of _0x326feb)this[_0x4dd5('0xfc')]({'id':_0x357cd2['id'],'createdAt':_0x357cd2[_0x4dd5('0x56')]});this[_0x4dd5('0x85')](),this['sendBufferedUpdates']();});}[_0x4dd5('0x89')](_0x527fcd,_0x23ff17){let _0x5f4bbc=this[_0x4dd5('0x90')][_0x4dd5('0x1c')]['get'](_0x4dd5('0x2')),_0x25ad82=this[_0x4dd5('0x90')]['config'][_0x4dd5('0xd2')](_0x4dd5('0x43'));if(void 0x0===_0x5f4bbc){_0x5f4bbc={};for(const _0x5e6b00 of this[_0x4dd5('0x90')][_0x4dd5('0x23')][_0x4dd5('0x6a')]['getRootNames']())_0x5f4bbc[_0x5e6b00]='';}if(_0x4dd5('0x9')==typeof _0x5f4bbc&&(_0x5f4bbc={'main':_0x5f4bbc}),void 0x0===_0x25ad82){_0x25ad82={};for(const _0x13ee4e of this[_0x4dd5('0x90')][_0x4dd5('0x23')][_0x4dd5('0x6a')][_0x4dd5('0x8d')]())_0x25ad82[_0x13ee4e]={};}let _0x3958a1=!0x1;const _0x37ea5f=Object['keys'](_0x5f4bbc),_0x83a468=Object[_0x4dd5('0x4c')](_0x527fcd);for(const _0x1f1fbd of _0x37ea5f){if(_0x5f4bbc[_0x1f1fbd]!==_0x527fcd[_0x1f1fbd]&&''!==_0x5f4bbc[_0x1f1fbd][_0x4dd5('0x1f')]()){_0x3958a1=!0x0;break;}if(!_0x490a96(_0x25ad82[_0x1f1fbd],_0x23ff17[_0x1f1fbd])&&Object['keys'](_0x25ad82[_0x1f1fbd])['length']>0x0){_0x3958a1=!0x0;break;}}_0x3958a1||(_0x3958a1=_0x83a468[_0x4dd5('0x32')](_0x1024da=>!_0x37ea5f[_0x4dd5('0xfd')](_0x1024da))),_0x3958a1&&_0x2f3209(_0x4dd5('0x19'),{'editorData':_0x5f4bbc,'editorRootsAttributes':_0x25ad82,'revisionData':_0x527fcd,'revisionRootsAttributes':_0x23ff17}),this[_0x4dd5('0x90')][_0x4dd5('0x1c')][_0x4dd5('0xef')](_0x4dd5('0x2'),_0x527fcd),this[_0x4dd5('0x90')][_0x4dd5('0x1c')][_0x4dd5('0xef')]('rootsAttributes',_0x23ff17);}['_addPendingAction'](){if(!this[_0x4dd5('0x63')]){const _0x42cd3e=this[_0x4dd5('0x90')][_0x4dd5('0x77')]['get'](_0x4dd5('0x40'));this[_0x4dd5('0x63')]=_0x42cd3e['add'](_0x829b0(this['editor'][_0x4dd5('0x9e')],_0x4dd5('0x69')));}}['_removePendingAction'](){this[_0x4dd5('0x63')]&&(this[_0x4dd5('0x90')]['plugins']['get'](_0x4dd5('0x40'))[_0x4dd5('0x79')](this[_0x4dd5('0x63')]),this[_0x4dd5('0x63')]=null);}[_0x4dd5('0x91')](_0x535759){const _0x4bace3=this['repository']['getRevisions']();_0x4bace3[_0x4dd5('0x8a')]();let _0x4b803e=0x0;for(;_0x4b803e<_0x4bace3[_0x4dd5('0xb9')];){const _0x94f1a1=_0x4bace3[_0x4b803e];if(_0x94f1a1===this[_0x4dd5('0x84')]){_0x4b803e++;continue;}if(_0x94f1a1['id']===this[_0x4dd5('0x49')])break;const _0x2515a0=_0x535759[_0x4dd5('0x41')]-_0x94f1a1['toVersion']||_0x535759[_0x4dd5('0xa2')]-_0x94f1a1[_0x4dd5('0xa2')];if(_0x2515a0>0x0)break;if(_0x2515a0<0x0)_0x4b803e++;else{if(!_0x535759[_0x4dd5('0x55')]&&_0x94f1a1[_0x4dd5('0x55')])break;if(_0x94f1a1['creator']||!_0x535759['creator']){if(_0x535759[_0x4dd5('0x56')]>_0x94f1a1[_0x4dd5('0x56')])break;_0x4b803e++;}else _0x4b803e++;}}return _0x4b803e;}['setRevisionData'](_0x37301a){const _0x313af2=this[_0x4dd5('0xe6')]['getRevision'](_0x37301a['id']);if(_0x37301a[_0x4dd5('0x56')]&&(_0x37301a[_0x4dd5('0x56')]=new Date(_0x37301a[_0x4dd5('0x56')])),_0x37301a[_0x4dd5('0xf0')]){const _0x5e3333=this[_0x4dd5('0x90')][_0x4dd5('0x77')][_0x4dd5('0xd2')](_0x4dd5('0x83'));_0x37301a[_0x4dd5('0xdd')]=_0x37301a[_0x4dd5('0xf0')][_0x4dd5('0x16')](_0x14b9ec=>_0x5e3333[_0x4dd5('0xda')](_0x14b9ec));}_0x313af2[_0x4dd5('0x5a')](_0x37301a,!0x0);}[_0x4dd5('0x72')]({revision:_0x154128=null,from:_0x32bf72=null,to:_0x375993=null}){_0x32bf72=null!==_0x32bf72?_0x32bf72:_0x154128['fromVersion'],_0x375993=null!==_0x375993?_0x375993:_0x154128[_0x4dd5('0x41')];const _0x54ac20=this['_revisionDataBuilder']['getData'](_0x32bf72,_0x375993),_0x118df3={'diffData':_0x54ac20[_0x4dd5('0x26')],'authorsIds':_0x54ac20['authorsIds'],'fromVersion':_0x32bf72,'toVersion':_0x375993};if(!_0x154128||_0x375993!==_0x154128['toVersion']){const _0x2dca54=_0x375993-0x1,_0x34012b=this[_0x4dd5('0x5b')][_0x4dd5('0xcf')][_0x4dd5('0x45')](_0x2dca54);_0x118df3[_0x4dd5('0x56')]=_0x34012b&&_0x34012b[_0x4dd5('0x56')]||new Date();}if(this[_0x4dd5('0x7d')]&&_0x32bf72===this[_0x4dd5('0x7d')][_0x4dd5('0xa2')])for(const _0x541955 of this[_0x4dd5('0x7d')][_0x4dd5('0xdd')])_0x118df3[_0x4dd5('0xf0')][_0x4dd5('0xfd')](_0x541955['id'])||_0x118df3[_0x4dd5('0xf0')]['push'](_0x541955['id']);return _0x118df3;}['_loadRevisionData'](_0x4cfd7c){if(!_0x4cfd7c||_0x4cfd7c['diffData'])return Promise[_0x4dd5('0x107')]();{const _0x3260fd=this[_0x4dd5('0x90')][_0x4dd5('0x1c')][_0x4dd5('0xd2')](_0x4dd5('0xb3'));return this[_0x4dd5('0x59')]['getRevision']({'channelId':_0x3260fd,'revisionId':_0x4cfd7c['id']})[_0x4dd5('0x80')](_0x19cff6=>{_0x4cfd7c[_0x4dd5('0x26')]=_0x19cff6[_0x4dd5('0x26')];});}}[_0x4dd5('0x82')](_0x2403dc,_0x3197ae,_0x21be00){if(this[_0x4dd5('0x20')][_0x4dd5('0xf1')](_0x2403dc)){const _0x183ee7=this[_0x4dd5('0x20')][_0x4dd5('0xd2')](_0x2403dc);_0x3197ae=_0x21be00?{..._0x183ee7,..._0x3197ae}:{..._0x3197ae,..._0x183ee7};}this[_0x4dd5('0x20')][_0x4dd5('0xef')](_0x2403dc,_0x3197ae);}[_0x4dd5('0x106')](_0x51ee26){const _0x2c4633=this[_0x4dd5('0xe6')]['getRevisions']();_0x2c4633[_0x4dd5('0x8a')](),_0x2c4633[_0x4dd5('0x10')]();const _0x955cae=_0x2c4633['find'](_0x37914f=>_0x37914f[_0x4dd5('0x41')]<=_0x51ee26)[_0x4dd5('0x41')];return _0x955cae<this[_0x4dd5('0xc1')]?this[_0x4dd5('0xc1')]:_0x955cae;}[_0x4dd5('0xdb')](_0x63fff4){const _0x2ee4fe=this[_0x4dd5('0xe6')][_0x4dd5('0x94')](this[_0x4dd5('0xe6')]['length']-0x1);if(_0x2ee4fe)this[_0x4dd5('0x49')]=_0x2ee4fe['id'];else{const _0x5ceebb=!this['editor'][_0x4dd5('0x23')][_0x4dd5('0x6a')][_0x4dd5('0xc6')]['find'](_0x3df601=>this['editor'][_0x4dd5('0x23')][_0x4dd5('0x65')](_0x3df601)),_0x2a963f=this['editor'][_0x4dd5('0x77')]['get'](_0x4dd5('0x83'))['me']['id'],_0x37641b=_0x829b0(this['editor'][_0x4dd5('0x9e')],_0x5ceebb?'Empty\x20document':'Initial\x20revision');this[_0x4dd5('0x7a')]({'from':_0x63fff4,'to':_0x63fff4,'id':this[_0x4dd5('0x49')],'name':_0x37641b,'creatorId':_0x2a963f});}}[_0x4dd5('0x25')](_0x52f367){const _0x963ea5=this['_source'][_0x4dd5('0xc8')]();this[_0x4dd5('0x84')]=this[_0x4dd5('0xe6')][_0x4dd5('0x94')](_0x963ea5),this['currentRevision']||(this[_0x4dd5('0x84')]=this[_0x4dd5('0x7a')]({'from':_0x52f367,'to':_0x52f367,'id':_0x963ea5,'name':'','creatorId':null}));}[_0x4dd5('0x7a')]({name:_0x325221,from:_0x1d839e,to:_0xb4ae2a,creatorId:_0x52921b,id:_0xf97ca}){const _0x886477=this[_0x4dd5('0x72')]({'from':_0x1d839e,'to':_0xb4ae2a});_0x886477[_0x4dd5('0x5e')]=_0x325221,_0x886477['creatorId']=_0x52921b,_0x886477['id']=_0xf97ca;const _0x5c2a2c=this[_0x4dd5('0x4')](_0x886477);return this['adapter']&&this['_bufferUpdate'](_0x886477['id'],_0x886477,!0x0),_0x5c2a2c;}[_0x4dd5('0x64')](){this[_0x4dd5('0x90')][_0x4dd5('0x5f')][_0x4dd5('0x97')](_0x4dd5('0x12'))[_0x4dd5('0xd1')]({'model':_0x4dd5('0x8')});}['_removeRevisionMarkers'](_0x536cae){return(_0x536cae=_0x536cae[_0x4dd5('0x73')](_0x47ab56=>!_0x47ab56['name']||_0x4dd5('0xf3')!==_0x47ab56[_0x4dd5('0x5e')]&&_0x4dd5('0x52')!==_0x47ab56[_0x4dd5('0x5e')]))[_0x4dd5('0x8c')](_0x544f9e=>{_0x4dd5('0x9')!=typeof _0x544f9e&&(_0x544f9e[_0x4dd5('0x8b')]=this[_0x4dd5('0x96')](_0x544f9e['children']),_0x544f9e[_0x4dd5('0xd5')]=_0x544f9e[_0x4dd5('0xd5')][_0x4dd5('0x73')](_0x40d70b=>!_0x40d70b[0x0][_0x4dd5('0x1b')]('data-revision-')));}),_0x536cae;}}function F(_0x4f195f,_0x60598a){const _0x567074=_0x60598a[_0x4dd5('0x2b')]['view'][_0x4dd5('0x6a')];if('string'==typeof _0x4f195f)return new _0x182b62(_0x567074,_0x4f195f);{const _0x12816b=_0x4f195f[_0x4dd5('0x8b')][_0x4dd5('0x16')](_0x3bb07d=>F(_0x3bb07d,_0x60598a));return new(j[_0x4f195f[(_0x4dd5('0x48'))]]||_0xcad7c8)(_0x567074,_0x4f195f[_0x4dd5('0x5e')],_0x4f195f[_0x4dd5('0xd5')],_0x12816b);}}class T{constructor(_0x146a6b){this[_0x4dd5('0x90')]=_0x146a6b,this[_0x4dd5('0x47')]=new Map(),this['_lastFrom']=-0x1,this[_0x4dd5('0x30')]=-0x1,this[_0x4dd5('0xbd')]=new Map(),this[_0x4dd5('0xbc')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x4dd5('0x100')]=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this[_0x4dd5('0xca')]=new Map(),this[_0x4dd5('0x35')]=new Map(),this[_0x4dd5('0x14')]=new Map(),this[_0x4dd5('0xbe')]=new Map(),this['_revisionId']=0x1,this[_0x4dd5('0x76')]=this[_0x4dd5('0x90')]['model'][_0x4dd5('0x6a')]['getRootNames'](),this[_0x4dd5('0x76')][_0x4dd5('0xe0')]('$graveyard');}['init'](_0x584a81){this[_0x4dd5('0x2a')]=_0x584a81;const _0x5b04ce=new Map(),_0xdae952=new Map(),_0x308f59=this[_0x4dd5('0x90')][_0x4dd5('0x23')]['document']['getRootNames'](!0x0);_0x308f59[_0x4dd5('0xe0')](_0x4dd5('0x8e'));for(const _0x43e10b of _0x308f59){const _0x28e3fb=this['editor'][_0x4dd5('0x23')]['document'][_0x4dd5('0xd6')](_0x43e10b),_0x4232b8=B(_0x28e3fb);_0x5b04ce['set'](_0x43e10b,_0x4232b8),_0xdae952[_0x4dd5('0xef')](_0x43e10b,Object[_0x4dd5('0x2c')](_0x28e3fb[_0x4dd5('0xf')]()));}const _0x5b38bc=Array[_0x4dd5('0x3b')](this[_0x4dd5('0x90')][_0x4dd5('0x23')]['markers'])[_0x4dd5('0x16')](_0x35b340=>[_0x35b340[_0x4dd5('0x5e')],_0x35b340[_0x4dd5('0xf8')]()]),_0x4c445c=this[_0x4dd5('0x2a')][_0x4dd5('0x51')];this[_0x4dd5('0xcc')](_0x4c445c,_0x5b04ce,_0x5b38bc,_0xdae952),this['_startingRevisionId']=this[_0x4dd5('0xf5')];const _0x5e2fbf=new Map(),_0x56f0b6=new Map();for(const _0x3e9209 of this[_0x4dd5('0x76')]){const _0x4ba63c=J(_0x3e9209);_0x5e2fbf['set'](_0x3e9209,_0x4ba63c),_0x56f0b6[_0x4dd5('0xef')](_0x3e9209,{});}this[_0x4dd5('0xcc')](Number[_0x4dd5('0x7e')],_0x5e2fbf,[],_0x56f0b6);}[_0x4dd5('0x6f')](_0x341ef3,_0x5de71c){if(this[_0x4dd5('0x3a')]===_0x341ef3&&this[_0x4dd5('0x30')]<=_0x5de71c)this['_savedMetaData'][_0x4dd5('0xdc')]>0x1&&this[_0x4dd5('0xb0')](this[_0x4dd5('0x30')]),this[_0x4dd5('0xb4')](this[_0x4dd5('0x30')],_0x5de71c,!0x0);else{if(!this[_0x4dd5('0x47')][_0x4dd5('0xf1')](_0x341ef3)){const _0x32e872=this[_0x4dd5('0x44')](_0x341ef3);this[_0x4dd5('0x2f')](_0x32e872,_0x341ef3,!0x1);}this[_0x4dd5('0x2f')](_0x341ef3,_0x5de71c,!0x0);}return this[_0x4dd5('0x3a')]=_0x341ef3,this['_lastTo']=_0x5de71c,this[_0x4dd5('0xa8')]();}[_0x4dd5('0xc5')](_0x39d6d5){this['_reset'](),this['_lastFrom']=_0x39d6d5[_0x4dd5('0xa2')],this[_0x4dd5('0x30')]=_0x39d6d5['toVersion'];for(const _0x3694c1 in _0x39d6d5[_0x4dd5('0x26')]){const _0x5d9569=_0x39d6d5['diffData'][_0x3694c1]['attachChange'],_0x17924a=_0x5bdcbe(_0x39d6d5[_0x4dd5('0x26')][_0x3694c1]['attributesBefore'])||{},_0x3baa01=this[_0x4dd5('0x61')](_0x39d6d5[_0x4dd5('0x26')][_0x3694c1][_0x4dd5('0x88')]);_0x3baa01[_0x4dd5('0x6b')]=_0x3694c1,_0x3baa01[_0x4dd5('0x87')]=!_0x5d9569||!_0x5d9569[_0x4dd5('0xd8')],_0x3baa01[_0x4dd5('0xd8')]=()=>_0x3baa01['_isAttached'],this[_0x4dd5('0x100')][_0x4dd5('0xef')](_0x3694c1,_0x3baa01),this[_0x4dd5('0xdf')][_0x4dd5('0xef')](_0x3694c1,_0x17924a),_0x5d9569&&this['_touchedRoots'][_0x4dd5('0xef')](_0x3694c1,_0x5d9569);const _0x3b4da9=this[_0x4dd5('0x28')](_0x3baa01);this[_0x4dd5('0xca')]['set'](_0x3694c1,_0x3b4da9);for(const [_0x17f88b,_0x32db4a]of _0x3baa01[_0x4dd5('0x54')]){if(!_0x17f88b[_0x4dd5('0x1b')]('revision:'))continue;const _0x3f2d75=_0x17f88b['split'](':')[0x2];for(const _0x520cb8 of _0x32db4a['getWalker']({'singleCharacters':!0x0})){const _0x508ace=this['_getVidAttributeName'](_0x520cb8),_0x1a8562='elementEnd'==_0x520cb8['type']?_0x520cb8['previousPosition'][_0x4dd5('0x24')]['slice'](0x0,-0x1):_0x520cb8['previousPosition']['path'],_0x30ff4d=_0x3b4da9[_0x4dd5('0x11')](_0x1a8562)[_0x4dd5('0x39')](_0x508ace);this['_touched']['set'](_0x30ff4d,{'userId':_0x3f2d75});}}}this[_0x4dd5('0xaa')]=this[_0x4dd5('0xf5')];const _0x72e717=[...Array(this['_revisionId'])[_0x4dd5('0x4c')]()][_0x4dd5('0x5c')](0x1)[_0x4dd5('0x73')](_0x484371=>!this[_0x4dd5('0x35')][_0x4dd5('0xf1')](_0x484371));let _0x399170=0x0;const _0xebd323=new Map();for(const _0x12b487 in _0x39d6d5[_0x4dd5('0x26')]){const _0xf7d30f=_0x39d6d5[_0x4dd5('0x26')][_0x12b487][_0x4dd5('0xe4')],_0x43b104=_0x5bdcbe(_0x39d6d5['diffData'][_0x12b487][_0x4dd5('0xbb')])||{},_0x4557f7=this[_0x4dd5('0x61')](_0x39d6d5[_0x4dd5('0x26')][_0x12b487][_0x4dd5('0xae')]);_0x4557f7[_0x4dd5('0x6b')]=_0x12b487,_0x4557f7[_0x4dd5('0x87')]=!_0xf7d30f||_0xf7d30f[_0x4dd5('0xd8')],_0x4557f7[_0x4dd5('0xd8')]=()=>_0x4557f7['_isAttached'],this['_diffRoots'][_0x4dd5('0xef')](_0x12b487,_0x4557f7),this[_0x4dd5('0x62')][_0x4dd5('0xef')](_0x12b487,_0x43b104);const _0x116267=this[_0x4dd5('0x28')](_0x4557f7,Number[_0x4dd5('0x7e')]);this[_0x4dd5('0xb6')][_0x4dd5('0xef')](_0x12b487,_0x116267),_0xebd323['set'](_0x12b487,_0x4557f7[_0x4dd5('0xd8')]()?_0x43b104:{});for(const [_0xdd0eac,_0x5299ad]of _0x4557f7[_0x4dd5('0x54')]){if(!_0xdd0eac[_0x4dd5('0x1b')](_0x4dd5('0x74')))continue;const _0x358aee=_0xdd0eac[_0x4dd5('0xe2')](':')[0x2];for(const _0x4f6711 of _0x5299ad[_0x4dd5('0xd')]({'singleCharacters':!0x0})){const _0x402486=this[_0x4dd5('0xe5')](_0x4f6711),_0x84bcd7=this[_0x4dd5('0xf5')]++,_0x54b10e='elementEnd'==_0x4f6711[_0x4dd5('0x48')]?_0x4f6711[_0x4dd5('0xb2')]['path'][_0x4dd5('0x5c')](0x0,-0x1):_0x4f6711[_0x4dd5('0xb2')][_0x4dd5('0x24')];_0x116267['getNodeByPath'](_0x54b10e)[_0x4dd5('0x46')](_0x402486,_0x84bcd7),this[_0x4dd5('0x35')][_0x4dd5('0xef')](_0x84bcd7,{'userId':_0x358aee});}}for(const _0x43407c of this[_0x4dd5('0x90')]['model'][_0x4dd5('0x58')](_0x4557f7)[_0x4dd5('0xd')]({'singleCharacters':!0x0})){const _0x57385c=this[_0x4dd5('0xe5')](_0x43407c),_0x122062='elementEnd'==_0x43407c['type']?_0x43407c['previousPosition'][_0x4dd5('0x24')][_0x4dd5('0x5c')](0x0,-0x1):_0x43407c[_0x4dd5('0xb2')][_0x4dd5('0x24')],_0x29b2a8=_0x116267['getNodeByPath'](_0x122062);_0x29b2a8[_0x4dd5('0x39')](_0x57385c)>0x0||_0x29b2a8[_0x4dd5('0x46')](_0x57385c,_0x72e717[_0x399170++]);}for(const [_0x43fbc0,_0x4df78f]of _0x4557f7['markers'])_0x43fbc0['startsWith']('revision:')||this['_markers'][_0x4dd5('0xef')](_0x43fbc0,_0x4df78f);}const _0xca9071=J('$graveyard');this[_0x4dd5('0x100')][_0x4dd5('0xef')](_0x4dd5('0x8e'),_0xca9071),this['_baseIdsRoots'][_0x4dd5('0xef')](_0x4dd5('0x8e'),this[_0x4dd5('0x28')](_0xca9071,0x1));const _0xe45f62=J(_0x4dd5('0x8e'));this['_diffRoots'][_0x4dd5('0xef')](_0x4dd5('0x8e'),_0xe45f62),this[_0x4dd5('0xb6')][_0x4dd5('0xef')](_0x4dd5('0x8e'),this['_makeIdsRoot'](_0xe45f62,0x1));const _0x5ccd08=Array['from'](this[_0x4dd5('0xbc')])['map'](([_0x411a88,_0x49ee8d])=>[_0x411a88,B(_0x49ee8d)]);this['_saveMetaData'](this['_lastTo'],_0x5ccd08,this['_markers'],_0xebd323);}[_0x4dd5('0x61')](_0x156da4){const _0x4c6274=JSON[_0x4dd5('0x13')](_0x156da4),_0x10008b=this[_0x4dd5('0x90')][_0x4dd5('0x2b')][_0x4dd5('0x9d')][_0x4dd5('0x6a')],_0x12764f=new _0x43e6fd(_0x10008b,_0x4c6274[_0x4dd5('0x16')](_0x17b116=>F(_0x17b116,this[_0x4dd5('0x90')])));return this['editor'][_0x4dd5('0xab')][_0x4dd5('0x4e')](_0x12764f);}['_saveMetaData'](_0xc77f12,_0x201266,_0x2c7d82,_0x4f2cba){const _0x2f1ca9=new Map(_0x201266),_0x524216=new Map(_0x5bdcbe(_0x4f2cba)),_0x3555ab=new Map();for(const [_0x49262e,_0xe076ef]of _0x2c7d82)_0x3555ab[_0x4dd5('0xef')](_0x49262e,{'start':_0xe076ef['start'][_0x4dd5('0x1d')](),'end':_0xe076ef[_0x4dd5('0x5')][_0x4dd5('0x1d')](),'rootName':_0xe076ef['root'][_0x4dd5('0x6b')]});this[_0x4dd5('0x47')]['set'](_0xc77f12,{'roots':_0x2f1ca9,'markers':_0x3555ab,'rootsAttributes':_0x524216});}[_0x4dd5('0xb0')](_0x395c08){this[_0x4dd5('0x47')][_0x4dd5('0xfe')](_0x395c08);}[_0x4dd5('0xd9')](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData'][_0x4dd5('0x38')](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers'][_0x4dd5('0x38')](),this['_touchedRoots'][_0x4dd5('0x38')](),this['_diffRoots'][_0x4dd5('0x38')](),this[_0x4dd5('0x62')]['clear'](),this[_0x4dd5('0x100')][_0x4dd5('0x38')](),this[_0x4dd5('0xdf')][_0x4dd5('0x38')](),this[_0x4dd5('0xb6')][_0x4dd5('0x38')](),this[_0x4dd5('0xca')][_0x4dd5('0x38')](),this[_0x4dd5('0xbd')]['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this[_0x4dd5('0xf5')];}['_makeIdsRoot'](_0x2d7f0c,_0x4ea68c=null){let _0x55d380=null;_0x2d7f0c['is'](_0x4dd5('0xba'))||(_0x55d380=new _0x4bbddb(_0x2d7f0c['name'],{'vid_start':null===_0x4ea68c?this[_0x4dd5('0xf5')]++:_0x4ea68c++}));const _0x23af60=[];for(const _0x8fb61b of _0x2d7f0c[_0x4dd5('0xf6')]())if(_0x8fb61b['is'](_0x4dd5('0xcd'))){_0x23af60[_0x4dd5('0xe0')](this[_0x4dd5('0x28')](_0x8fb61b,_0x4ea68c));const _0x33c7c7=_0x23af60[_0x23af60[_0x4dd5('0xb9')]-0x1];null!==_0x4ea68c&&(_0x4ea68c=_0x33c7c7['is'](_0x4dd5('0xcd'),_0x4dd5('0xc'))?_0x33c7c7['getAttribute'](_0x4dd5('0xea'))+0x1:_0x33c7c7[_0x4dd5('0x39')](_0x4dd5('0x3d'))+0x1);}else for(let _0x4d884e=0x0;_0x4d884e<_0x8fb61b[_0x4dd5('0xc3')];_0x4d884e++)_0x23af60['push'](new _0x4bbddb(_0x4dd5('0xc'),{'vid':null===_0x4ea68c?this[_0x4dd5('0xf5')]++:_0x4ea68c++}));if(_0x2d7f0c['is']('documentFragment')){const _0x141a4b=J(_0x2d7f0c['rootName']);return _0x141a4b[_0x4dd5('0x103')](0x0,_0x23af60),_0x141a4b;}return _0x55d380[_0x4dd5('0x46')](_0x4dd5('0x3d'),null===_0x4ea68c?this[_0x4dd5('0xf5')]++:_0x4ea68c++),_0x55d380[_0x4dd5('0x103')](0x0,_0x23af60),_0x55d380;}[_0x4dd5('0x2f')](_0x4cc779,_0x313154,_0x50f65f){this['_reset']();const {roots:_0x423778,markers:_0x80e74d,rootsAttributes:_0xabc87a}=this[_0x4dd5('0x47')]['get'](_0x4cc779);this['_baseRoots']=new Map(_0x423778),this[_0x4dd5('0xdf')]=new Map(_0x5bdcbe(_0xabc87a));for(const [_0x5155c1,_0x218152]of this[_0x4dd5('0x100')])if(_0x4dd5('0x8e')!==_0x5155c1&&(this[_0x4dd5('0xbc')][_0x4dd5('0xef')](_0x5155c1,B(_0x218152)),this[_0x4dd5('0x62')]=new Map(_0x5bdcbe(_0xabc87a)),_0x50f65f)){const _0x1e53c8=this['_revisionId'];this[_0x4dd5('0xb6')][_0x4dd5('0xef')](_0x5155c1,this['_makeIdsRoot'](_0x218152)),this[_0x4dd5('0xca')][_0x4dd5('0xef')](_0x5155c1,this[_0x4dd5('0x28')](_0x218152,_0x1e53c8));}this[_0x4dd5('0xaa')]=this['_revisionId'],this[_0x4dd5('0xbc')]['set'](_0x4dd5('0x8e'),B(this[_0x4dd5('0x100')][_0x4dd5('0xd2')](_0x4dd5('0x8e')))),_0x50f65f&&this[_0x4dd5('0xb6')][_0x4dd5('0xef')]('$graveyard',this['_makeIdsRoot'](this[_0x4dd5('0x100')][_0x4dd5('0xd2')](_0x4dd5('0x8e'))));for(const [_0x4c55db,_0x1091bc]of _0x80e74d){const _0x3df9d4=this['_baseRoots'][_0x4dd5('0xd2')](_0x1091bc[_0x4dd5('0x6b')]),_0x203310=this[_0x4dd5('0xbc')][_0x4dd5('0xd2')](_0x1091bc[_0x4dd5('0x6b')]),_0xed48b2=new _0x5d0701(this[_0x4dd5('0x7')](_0x1091bc[_0x4dd5('0xc2')],_0x3df9d4),this['_fixPosition'](_0x1091bc[_0x4dd5('0x5')],_0x3df9d4)),_0x13e016=this[_0x4dd5('0xec')](_0xed48b2,_0x203310);_0x3df9d4['markers']['set'](_0x4c55db,_0xed48b2),this[_0x4dd5('0xbd')]['set'](_0x4c55db,_0x13e016);}this['_applyOperations'](_0x4cc779,_0x313154,_0x50f65f);}[_0x4dd5('0xb4')](_0x5703b9,_0x4bbe86,_0x3d8432){for(const _0x5c7cef of this['source']['getOperations'](_0x5703b9,_0x4bbe86))this[_0x4dd5('0x70')](_0x5c7cef,_0x3d8432);for(const _0x2db8df of this[_0x4dd5('0xbc')][_0x4dd5('0x34')]())_0x2db8df[_0x4dd5('0x54')][_0x4dd5('0x38')]();for(const [_0x335cc6,_0x32dc99]of this[_0x4dd5('0xbd')]){this[_0x4dd5('0xbc')][_0x4dd5('0xd2')](_0x32dc99[_0x4dd5('0x21')][_0x4dd5('0x6b')])[_0x4dd5('0x54')][_0x4dd5('0xef')](_0x335cc6,_0x32dc99['clone']());}const _0x414f26=new Map(),_0x32b77a=new Map();for(const [_0x45a823,_0x2936fb]of this[_0x4dd5('0xbc')])_0x414f26['set'](_0x45a823,B(_0x2936fb)),_0x32b77a[_0x4dd5('0xef')](_0x45a823,this[_0x4dd5('0x62')][_0x4dd5('0xd2')](_0x45a823));this[_0x4dd5('0xcc')](_0x4bbe86,_0x414f26,this[_0x4dd5('0xbd')],_0x32b77a);}[_0x4dd5('0x44')](_0x5b4b2b){const _0x251bf3=Array['from'](this[_0x4dd5('0x47')][_0x4dd5('0x4c')]());_0x251bf3[_0x4dd5('0x4a')]((_0x4760d2,_0x1c21e9)=>_0x4760d2-_0x1c21e9),_0x251bf3[_0x4dd5('0x8a')]();for(const _0x1f720b of _0x251bf3)if(_0x1f720b<_0x5b4b2b)return _0x1f720b;return Number[_0x4dd5('0x7e')];}[_0x4dd5('0x6')](_0x2223ba,_0x44d3e0){const _0x512c7=Array['from'](_0x44d3e0[_0x4dd5('0x54')])[_0x4dd5('0x16')](([_0x527a54,_0x2850c7])=>[_0x527a54,this[_0x4dd5('0xec')](_0x2850c7,_0x2223ba)]);_0x2223ba['markers']=new Map(_0x512c7);}['_transformMarkers'](_0x1eec9a){for(const _0x37e712 of this[_0x4dd5('0xbd')][_0x4dd5('0x34')]()){const _0x448b21=_0x37e712[_0x4dd5('0x3e')](_0x1eec9a),_0x2aa6bd=_0x5d0701[_0x4dd5('0x7f')](_0x448b21);_0x37e712[_0x4dd5('0xc2')]=_0x2aa6bd[_0x4dd5('0xc2')],_0x37e712[_0x4dd5('0x5')]=_0x2aa6bd[_0x4dd5('0x5')];}}['_handleOperation'](_0x2aa9f1,_0x58bc82){if(_0x4dd5('0x1a')==_0x2aa9f1[_0x4dd5('0x48')]||_0x4dd5('0xa4')==_0x2aa9f1[_0x4dd5('0x48')])return void this[_0x4dd5('0xff')](_0x2aa9f1,_0x58bc82);if(_0x4dd5('0x0')==_0x2aa9f1['type']){const _0x1c3b1f=_0x2aa9f1[_0x4dd5('0xce')]['root'][_0x4dd5('0x6b')];this['_diffRoots']['has'](_0x1c3b1f)||(this[_0x4dd5('0xbc')]['set'](_0x1c3b1f,J(_0x1c3b1f,!0x0)),this[_0x4dd5('0x62')][_0x4dd5('0xef')](_0x1c3b1f,{}),_0x58bc82&&this[_0x4dd5('0xb6')]['set'](_0x1c3b1f,J(_0x1c3b1f,!0x0)));}if('addRootAttribute'==_0x2aa9f1['type']||_0x4dd5('0x17')==_0x2aa9f1[_0x4dd5('0x48')]||'changeRootAttribute'==_0x2aa9f1['type'])return void this[_0x4dd5('0xb8')](_0x2aa9f1);const _0x4f8d88=this[_0x4dd5('0x4b')](_0x2aa9f1,this['_diffRoots']);if('marker'!==_0x2aa9f1[_0x4dd5('0x48')]&&(_0x4f8d88[_0x4dd5('0x29')](),this[_0x4dd5('0x2e')](_0x4f8d88)),_0x58bc82)switch(_0x4f8d88[_0x4dd5('0x48')]){case _0x4dd5('0x0'):this[_0x4dd5('0x66')](_0x2aa9f1);break;case _0x4dd5('0x18'):case _0x4dd5('0x79'):case _0x4dd5('0xe3'):this[_0x4dd5('0x1e')](_0x2aa9f1);break;case _0x4dd5('0x105'):this[_0x4dd5('0x57')](_0x2aa9f1);break;case'split':this['_handleSplitOperation'](_0x2aa9f1);break;case _0x4dd5('0xfa'):this[_0x4dd5('0xe9')](_0x2aa9f1);}}[_0x4dd5('0x4b')](_0x133609,_0x18316e){const _0x251452=_0x133609[_0x4dd5('0x1d')]();return _0x251452['_authorId']=_0x133609['_authorId'],this[_0x4dd5('0xa')](_0x251452,_0x18316e),_0x251452;}[_0x4dd5('0x9f')](_0x618dff){return _0x618dff['map'](_0x454bc7=>{const _0x3d6163=this['_getVidAttributeName'](_0x454bc7);return Number(_0x454bc7[_0x4dd5('0x101')]['getAttribute'](_0x3d6163));});}[_0x4dd5('0x71')](_0x30697f,_0x4b934c){if(_0x30697f['is'](_0x4dd5('0xcd'),'$text'))_0x4b934c[_0x4dd5('0xe0')]({'item':_0x30697f,'type':'text'});else{_0x30697f['is'](_0x4dd5('0xcd'))&&_0x4b934c[_0x4dd5('0xe0')]({'item':_0x30697f,'type':_0x4dd5('0xbf')});for(const _0x42b8a2 of _0x30697f['getChildren']())this[_0x4dd5('0x71')](_0x42b8a2,_0x4b934c);_0x30697f['is'](_0x4dd5('0xcd'))&&_0x4b934c[_0x4dd5('0xe0')]({'item':_0x30697f,'type':'elementEnd'});}return _0x4b934c;}[_0x4dd5('0xa8')](){const _0x4e9b43=new Map(this[_0x4dd5('0x35')]),_0x41b9ed=new Map(_0x4e9b43),_0x58d741=new Map(),_0x13bd66={'insertions':{},'deletions':{}},_0x270a6b={'insertions':{},'deletions':{}},_0xe61f3f=new Map(),_0x5bf6c6=new Set([...this[_0x4dd5('0x100')][_0x4dd5('0x4c')](),...this[_0x4dd5('0xbc')][_0x4dd5('0x4c')]()]);_0x5bf6c6[_0x4dd5('0xfe')]('$graveyard');for(const _0x3094f0 of _0x5bf6c6){const _0x33624e=this[_0x4dd5('0xbc')][_0x4dd5('0xd2')](_0x3094f0)||J(_0x3094f0,!0x1),_0x5ac43b=this[_0x4dd5('0x100')][_0x4dd5('0xd2')](_0x3094f0)||J(_0x3094f0,!0x1);_0x33624e['isAttached']()||_0x5ac43b[_0x4dd5('0xd8')]()?(_0x13bd66[_0x4dd5('0xae')][_0x3094f0]=B(_0x33624e),_0x13bd66['deletions'][_0x3094f0]=B(_0x5ac43b),this[_0x4dd5('0x6')](_0x13bd66['deletions'][_0x3094f0],_0x5ac43b),this[_0x4dd5('0x6')](_0x13bd66['insertions'][_0x3094f0],_0x33624e),_0x270a6b['insertions'][_0x3094f0]=this['_generateTape'](this[_0x4dd5('0xb6')][_0x4dd5('0xd2')](_0x3094f0),[]),_0x270a6b[_0x4dd5('0x88')][_0x3094f0]=this[_0x4dd5('0x71')](this[_0x4dd5('0xca')][_0x4dd5('0xd2')](_0x3094f0)||J(_0x3094f0,!0x1),[])):_0x5bf6c6[_0x4dd5('0xfe')](_0x3094f0);}for(const _0x13e180 of _0x5bf6c6){const _0x56996e=_0x270a6b[_0x4dd5('0xae')][_0x13e180];for(const _0xc43ab0 of _0x56996e){const _0x44a962=this[_0x4dd5('0xe5')](_0xc43ab0),_0x2320fe=_0xc43ab0[_0x4dd5('0x101')][_0x4dd5('0x39')](_0x44a962);_0x41b9ed[_0x4dd5('0xfe')](_0x2320fe),_0x2320fe>=this[_0x4dd5('0xaa')]&&_0x58d741['set'](_0x2320fe,_0x4e9b43['get'](_0x2320fe));}}for(const _0x1d37b1 of _0x5bf6c6){const _0x4ae217=_0x270a6b['insertions'][_0x1d37b1],_0x1bf307=this['_getBaseVids'](_0x270a6b[_0x4dd5('0x88')][_0x1d37b1]);let _0x3a9410=0x0;for(const _0x4b6773 of _0x4ae217){const _0x162e0b=this[_0x4dd5('0xe5')](_0x4b6773),_0x676f37=_0x4b6773['item'][_0x4dd5('0x39')](_0x162e0b);if(!_0x58d741[_0x4dd5('0xf1')](_0x676f37)&&!_0xe61f3f[_0x4dd5('0xf1')](_0x676f37)){if(_0x41b9ed[_0x4dd5('0xf1')](_0x676f37))_0x3a9410++;else{if(_0x676f37!=_0x1bf307[_0x3a9410]){const _0x245135=_0x4e9b43[_0x4dd5('0xd2')](_0x676f37)||_0x4e9b43[_0x4dd5('0xd2')](_0x1bf307[_0x3a9410]);for(;_0x676f37!=_0x1bf307[_0x3a9410];)_0x41b9ed[_0x4dd5('0xf1')](_0x1bf307[_0x3a9410])||(_0xe61f3f['set'](_0x1bf307[_0x3a9410],_0x245135),_0x4e9b43['set'](_0x1bf307[_0x3a9410],_0x245135)),_0x3a9410++;}_0x3a9410++;}}}}for(const _0x497d0a of _0x5bf6c6){const _0x5d6111=_0x270a6b[_0x4dd5('0xae')][_0x497d0a];for(const _0x4cb696 of _0x5d6111){const _0x3ae469=this['_getVidAttributeName'](_0x4cb696),_0x4e7baf=_0x4cb696[_0x4dd5('0x101')][_0x4dd5('0x39')](_0x3ae469);if(_0xe61f3f[_0x4dd5('0xf1')](_0x4e7baf)){const _0x5a1af8=_0xe61f3f[_0x4dd5('0xd2')](_0x4e7baf);_0x41b9ed[_0x4dd5('0xf1')](_0x4e7baf)||_0x41b9ed['set'](_0x4e7baf,{..._0x5a1af8}),_0x58d741[_0x4dd5('0xef')](_0x4e7baf,{..._0x5a1af8});}}}for(const _0x9955da of _0x41b9ed[_0x4dd5('0x4c')]())_0x9955da>=this[_0x4dd5('0xaa')]&&_0x41b9ed[_0x4dd5('0xfe')](_0x9955da);const _0x52ddf7=new Map();for(const _0x27c3fc of _0x5bf6c6){let _0x3b2904=_0x270a6b[_0x4dd5('0xae')][_0x27c3fc];for(const _0x1d0332 of _0x3b2904)if(_0x1d0332['item']['is'](_0x4dd5('0xcd'),_0x4dd5('0x75'))){const _0x373ff6=this[_0x4dd5('0xe5')](_0x1d0332),_0x6acfda=_0x1d0332[_0x4dd5('0x101')][_0x4dd5('0x39')](_0x373ff6);if(_0x58d741[_0x4dd5('0xf1')](_0x6acfda)){const _0x3e8204=_0x1d0332[_0x4dd5('0x101')][_0x4dd5('0x9a')]['parent'][_0x4dd5('0x39')](_0x4dd5('0x6e')),_0x597bd4=_0x52ddf7[_0x4dd5('0xd2')](_0x3e8204)||new Set();_0x597bd4[_0x4dd5('0x60')](_0x58d741['get'](_0x6acfda)[_0x4dd5('0xd7')]),_0x52ddf7[_0x4dd5('0xef')](_0x3e8204,_0x597bd4);}}_0x3b2904=_0x270a6b[_0x4dd5('0x88')][_0x27c3fc];for(const _0x1ce66c of _0x3b2904)if(_0x1ce66c[_0x4dd5('0x101')]['is']('element',_0x4dd5('0x75'))){const _0x2843d5=this['_getVidAttributeName'](_0x1ce66c),_0x2da4ff=_0x1ce66c['item'][_0x4dd5('0x39')](_0x2843d5);if(_0x41b9ed['has'](_0x2da4ff)){const _0x9ba114=_0x1ce66c[_0x4dd5('0x101')][_0x4dd5('0x9a')]['parent']['getAttribute'](_0x4dd5('0x6e')),_0x1c26f7=_0x52ddf7[_0x4dd5('0xd2')](_0x9ba114)||new Set();_0x1c26f7[_0x4dd5('0x60')](_0x41b9ed[_0x4dd5('0xd2')](_0x2da4ff)[_0x4dd5('0xd7')]),_0x52ddf7['set'](_0x9ba114,_0x1c26f7);}}for(const _0x1d43d9 of _0x52ddf7[_0x4dd5('0x4c')]())(_0x58d741['has'](_0x1d43d9)||_0x41b9ed[_0x4dd5('0xf1')](_0x1d43d9))&&_0x52ddf7[_0x4dd5('0xfe')](_0x1d43d9);}for(const _0x42d623 of _0x5bf6c6){const _0x628be7=_0x270a6b[_0x4dd5('0xae')][_0x42d623];let _0x1f0f00=null,_0x461ff8=null;for(const _0x39b118 of _0x628be7){const _0x4a31a1=this[_0x4dd5('0xe5')](_0x39b118),_0x5aaed6=_0x39b118[_0x4dd5('0x101')][_0x4dd5('0x39')](_0x4a31a1),_0x5cb165=_0x52ddf7[_0x4dd5('0xd2')](_0x5aaed6);_0x5cb165&&_0x4dd5('0xbf')==_0x39b118[_0x4dd5('0x48')]&&(_0x1f0f00=Array['from'](_0x5cb165)[0x0],_0x461ff8=_0x39b118[_0x4dd5('0x101')][_0x4dd5('0x39')](_0x4dd5('0x3d'))),_0x1f0f00&&(_0x41b9ed[_0x4dd5('0xef')](_0x5aaed6,{'userId':_0x1f0f00}),_0x58d741[_0x4dd5('0xef')](_0x5aaed6,{'userId':_0x1f0f00})),_0x5aaed6==_0x461ff8&&(_0x1f0f00=null,_0x461ff8=null);}}const _0x731ef7={},_0x6c5c8a=new Set();for(const _0x53bc5f of _0x5bf6c6){const _0x40112d=_0x13bd66['deletions'][_0x53bc5f],_0x81f74=_0x13bd66[_0x4dd5('0xae')][_0x53bc5f];for(const {userId:_0x4b7627}of this[_0x4dd5('0x14')]['values']())null!==_0x4b7627&&_0x6c5c8a[_0x4dd5('0x60')](_0x4b7627);for(const {userId:_0x50e62c}of this[_0x4dd5('0xbe')][_0x4dd5('0x34')]())null!==_0x50e62c&&_0x6c5c8a[_0x4dd5('0x60')](_0x50e62c);this[_0x4dd5('0xee')](_0x81f74,_0x270a6b[_0x4dd5('0xae')][_0x53bc5f],_0x58d741,_0x4dd5('0xcb'),_0x6c5c8a),this[_0x4dd5('0xee')](_0x40112d,_0x270a6b[_0x4dd5('0x88')][_0x53bc5f],_0x41b9ed,_0x4dd5('0x31'),_0x6c5c8a),_0x731ef7[_0x53bc5f]={'insertions':this['_prepareViewToSave'](_0x81f74),'deletions':this[_0x4dd5('0x9b')](_0x40112d),'attachChange':this[_0x4dd5('0xbe')]['get'](_0x53bc5f)||null,'attributesBefore':_0x5bdcbe(this['_baseRootsAttributes']['get'](_0x53bc5f))||{},'attributesAfter':_0x5bdcbe(this['_diffRootsAttributes']['get'](_0x53bc5f))};}return{'diffData':_0x731ef7,'authorsIds':Array[_0x4dd5('0x3b')](_0x6c5c8a)};}['_processRootBeforeSave'](_0x2342b9){for(const [,_0x4b27c]of _0x2342b9[_0x4dd5('0x54')]){const _0x22efe2=_0x4b27c[_0x4dd5('0xc2')][_0x4dd5('0x6c')]()[_0x4dd5('0x73')](_0x3caca7=>_0x4dd5('0x75')==_0x3caca7['name']);for(const _0x328d1c of _0x22efe2)0x1==_0x328d1c[_0x4dd5('0x27')]&&_0x328d1c[_0x4dd5('0xc7')](0x0)['is'](_0x4dd5('0xcd'),_0x4dd5('0x92'))&&_0x328d1c[_0x4dd5('0xc7')](0x0)['_setAttribute'](_0x4dd5('0x2d'),!0x0);}}[_0x4dd5('0x9b')](_0x43b074){this['_processRootBeforeSave'](_0x43b074);const _0x56d589=this[_0x4dd5('0x90')][_0x4dd5('0xab')][_0x4dd5('0x102')](_0x43b074,{}),_0x3a23bc=Array[_0x4dd5('0x3b')](_0x56d589[_0x4dd5('0xf6')]())[_0x4dd5('0x16')](_0x1c8a43=>this[_0x4dd5('0x1')](_0x1c8a43));return JSON['stringify'](_0x3a23bc);}[_0x4dd5('0x1')](_0x3fa59b){if(_0x3fa59b['is'](_0x4dd5('0xc')))return _0x3fa59b[_0x4dd5('0xab')];{const _0x401fa2=_0x3fa59b;return{'type':Object['keys'](j)[_0x4dd5('0xc9')](_0x1b2f14=>_0x3fa59b instanceof j[_0x1b2f14]),'name':_0x401fa2[_0x4dd5('0x5e')],'attributes':Array[_0x4dd5('0x3b')](_0x401fa2[_0x4dd5('0xf')]()),'children':Array[_0x4dd5('0x3b')](_0x401fa2[_0x4dd5('0xf6')]())[_0x4dd5('0x16')](_0x312b2b=>this[_0x4dd5('0x1')](_0x312b2b))};}}[_0x4dd5('0xee')](_0x2a9ebe,_0x3e2952,_0x415289,_0x334d9d,_0x4c11d6){let _0x512010=null,_0x274b09=null,_0x211764=0x0;const _0x49dc24=this[_0x4dd5('0x90')][_0x4dd5('0x23')];for(let _0x27391c=0x0;_0x27391c<_0x3e2952['length'];_0x27391c++){const _0x4d4f70=this[_0x4dd5('0xe5')](_0x3e2952[_0x27391c]),_0xbf0ae0=_0x3e2952[_0x27391c]['item']['getAttribute'](_0x4d4f70),_0x2c05ae=_0x415289[_0x4dd5('0xd2')](_0xbf0ae0),_0x2adb55=_0x27391c==_0x3e2952[_0x4dd5('0xb9')]-0x1;(!_0x512010&&_0x2c05ae&&(_0x512010=_0x2c05ae,_0x274b09=_0x3e2952[_0x27391c]),_0x512010&&(!_0x2c05ae||_0x2c05ae['userId']!=_0x512010[_0x4dd5('0xd7')]))&&(_0x2f5182(_0x2c05ae,H(_0x274b09,_0x2a9ebe,_0x49dc24),H(_0x3e2952[_0x27391c],_0x2a9ebe,_0x49dc24)),_0x512010=_0x2c05ae||null,_0x274b09=_0x2c05ae?_0x3e2952[_0x27391c]:null),_0x512010&&_0x2adb55&&_0x2f5182(_0x2c05ae,H(_0x274b09,_0x2a9ebe,_0x49dc24),q(_0x3e2952[_0x27391c],_0x2a9ebe,_0x49dc24));}function _0x2f5182(_0x939559,_0x530b18,_0x28b18b){const _0x5a56e4=_0x512010['userId'],_0x1c95cb=_0x4dd5('0x74')+_0x334d9d+':'+_0x5a56e4+':'+_0x211764++,_0xb52c88=_0x49dc24[_0x4dd5('0xe7')](_0x530b18,_0x28b18b);_0x2a9ebe[_0x4dd5('0x54')][_0x4dd5('0xef')](_0x1c95cb,_0xb52c88),null!==_0x5a56e4&&_0x4c11d6[_0x4dd5('0x60')](_0x5a56e4);}}[_0x4dd5('0xe5')](_0x4d3a7c){switch(_0x4d3a7c[_0x4dd5('0x48')]){case'elementStart':return _0x4dd5('0x6e');case'elementEnd':return _0x4dd5('0x3d');default:return _0x4dd5('0xea');}}[_0x4dd5('0xa')](_0x1ea002,_0x3b4b55){_0x1ea002['baseVersion']=null;for(const _0x3a93c1 in _0x1ea002){const _0x2f2841=_0x1ea002[_0x3a93c1];if(_0x2f2841 instanceof _0x3ba29e){const _0xfb48c6=_0x3b4b55[_0x4dd5('0xd2')](_0x2f2841['root'][_0x4dd5('0x6b')]);_0x1ea002[_0x3a93c1]=this[_0x4dd5('0x7')](_0x2f2841,_0xfb48c6);}if(_0x2f2841 instanceof _0x5d0701){const _0x58c79e=_0x3b4b55[_0x4dd5('0xd2')](_0x2f2841[_0x4dd5('0x21')]['rootName']);_0x1ea002[_0x3a93c1]=this[_0x4dd5('0xec')](_0x2f2841,_0x58c79e);}_0x4dd5('0x21')===_0x3a93c1&&(_0x1ea002['root']=_0x3b4b55[_0x4dd5('0xd2')](_0x1ea002[_0x4dd5('0x21')][_0x4dd5('0x6b')]));}}[_0x4dd5('0xec')](_0x1ccad2,_0xaf212d){return this[_0x4dd5('0x90')][_0x4dd5('0x23')][_0x4dd5('0xe7')](this[_0x4dd5('0x7')](_0x1ccad2[_0x4dd5('0xc2')],_0xaf212d),this[_0x4dd5('0x7')](_0x1ccad2[_0x4dd5('0x5')],_0xaf212d));}['_fixPosition'](_0x142d75,_0xbcd49d){return this[_0x4dd5('0x90')][_0x4dd5('0x23')][_0x4dd5('0x68')](_0xbcd49d,_0x142d75[_0x4dd5('0x24')],_0x142d75['stickiness']);}[_0x4dd5('0x66')](_0x2b7f60){const _0x251b4e=this['_idsRoots'][_0x4dd5('0xd2')](_0x2b7f60[_0x4dd5('0xce')]['root'][_0x4dd5('0x6b')]),_0x4a99ec=this[_0x4dd5('0x7')](_0x2b7f60[_0x4dd5('0xce')],_0x251b4e),_0x1767dc=null===_0x2b7f60[_0x4dd5('0x36')]?null:_0x2b7f60[_0x4dd5('0x36')]||this[_0x4dd5('0x90')][_0x4dd5('0x77')][_0x4dd5('0xd2')](_0x4dd5('0x83'))['me']['id'],_0x270d34=_0x4a99ec[_0x4dd5('0x9a')],_0x51b637=this['_revisionId'],_0x2065ff=[];for(const _0x5de3fa of _0x2b7f60[_0x4dd5('0xa9')])if(_0x5de3fa['is']('element'))_0x2065ff['push'](this['_makeIdsRoot'](_0x5de3fa));else for(let _0xceb3a6=0x0;_0xceb3a6<_0x5de3fa[_0x4dd5('0xc3')];_0xceb3a6++)_0x2065ff[_0x4dd5('0xe0')](new _0x4bbddb('$text',{'vid':this['_revisionId']++}));const _0x109b09=this[_0x4dd5('0xf5')];for(let _0x2a8229=_0x51b637;_0x2a8229<_0x109b09;_0x2a8229++)this[_0x4dd5('0x35')][_0x4dd5('0xef')](_0x2a8229,{'userId':_0x1767dc});_0x270d34[_0x4dd5('0x103')](_0x4a99ec[_0x4dd5('0x108')],_0x2065ff);}[_0x4dd5('0x1e')](_0x5186fb){(_0x5186fb=this[_0x4dd5('0x4b')](_0x5186fb,this[_0x4dd5('0xb6')]))['_execute']();const _0xa77d6d=null===_0x5186fb[_0x4dd5('0x36')]?null:_0x5186fb[_0x4dd5('0x36')]||this[_0x4dd5('0x90')][_0x4dd5('0x77')][_0x4dd5('0xd2')](_0x4dd5('0x83'))['me']['id'],_0x47f8e3=_0x5186fb['getMovedRangeStart'](),_0x342cb1=_0x47f8e3[_0x4dd5('0x9a')],_0x3cd84d=_0x47f8e3[_0x4dd5('0x108')];!function _0x5cb33a(_0x245a33,_0x246654,_0xab0ea1,_0x534793){for(let _0x39f4e7=_0xab0ea1;_0x39f4e7<_0x534793;_0x39f4e7++){const _0x5db45f=_0x246654[_0x4dd5('0xc7')](_0x39f4e7);_0x5db45f['is'](_0x4dd5('0xcd'),_0x4dd5('0xc'))?_0x245a33[_0x4dd5('0xef')](_0x5db45f[_0x4dd5('0x39')](_0x4dd5('0xea')),{'userId':_0xa77d6d}):(_0x245a33[_0x4dd5('0xef')](_0x5db45f[_0x4dd5('0x39')]('vid_start'),{'userId':_0xa77d6d}),_0x5cb33a(_0x245a33,_0x5db45f,0x0,_0x5db45f[_0x4dd5('0x27')]),_0x245a33[_0x4dd5('0xef')](_0x5db45f['getAttribute'](_0x4dd5('0x3d')),{'userId':_0xa77d6d}));}}(this['_touched'],_0x342cb1,_0x3cd84d,_0x3cd84d+_0x5186fb[_0x4dd5('0xa7')]);}[_0x4dd5('0x57')](_0x551691){const _0xdcdcc9=null===(_0x551691=this[_0x4dd5('0x4b')](_0x551691,this[_0x4dd5('0xb6')]))[_0x4dd5('0x36')]?null:_0x551691[_0x4dd5('0x36')]||this['editor'][_0x4dd5('0x77')][_0x4dd5('0xd2')](_0x4dd5('0x83'))['me']['id'],_0x38df7c=_0x551691[_0x4dd5('0x9c')]['parent'],_0x2f5faf=_0x551691[_0x4dd5('0x50')][_0x4dd5('0x9a')],_0x1d3f72=_0x38df7c['getAttribute'](_0x4dd5('0x3d')),_0x1729b4=_0x2f5faf[_0x4dd5('0x39')](_0x4dd5('0x6e'));_0x38df7c[_0x4dd5('0x46')](_0x4dd5('0x3d'),_0x2f5faf['getAttribute'](_0x4dd5('0x3d'))),_0x2f5faf[_0x4dd5('0x46')]('vid_end',_0x1d3f72),this[_0x4dd5('0x35')][_0x4dd5('0xef')](_0x1729b4,{'userId':_0xdcdcc9}),this[_0x4dd5('0x35')][_0x4dd5('0xef')](_0x1d3f72,{'userId':_0xdcdcc9}),_0x551691[_0x4dd5('0x29')]();}[_0x4dd5('0xde')](_0x501c7f){const _0x414a5e=null===(_0x501c7f=this[_0x4dd5('0x4b')](_0x501c7f,this[_0x4dd5('0xb6')]))[_0x4dd5('0x36')]?null:_0x501c7f[_0x4dd5('0x36')]||this['editor'][_0x4dd5('0x77')][_0x4dd5('0xd2')](_0x4dd5('0x83'))['me']['id'],_0x59f3a4=_0x501c7f[_0x4dd5('0x3')],_0x3af5bb=_0x501c7f['splitPosition'][_0x4dd5('0x9a')];_0x501c7f[_0x4dd5('0x29')]();const _0x4e6112=_0x3af5bb[_0x4dd5('0x39')](_0x4dd5('0x3d')),_0x1fd471=_0x501c7f[_0x4dd5('0x3c')]['nodeAfter'];if(_0x59f3a4){const _0x3b82c2=_0x1fd471[_0x4dd5('0x39')]('vid_end'),_0x4f3128=_0x3af5bb[_0x4dd5('0x39')]('vid_end');_0x3af5bb[_0x4dd5('0x46')](_0x4dd5('0x3d'),_0x3b82c2),_0x1fd471['_setAttribute'](_0x4dd5('0x3d'),_0x4f3128),this[_0x4dd5('0x35')]['set'](_0x3af5bb[_0x4dd5('0x39')]('vid_end'),{'userId':_0x414a5e}),this[_0x4dd5('0x35')][_0x4dd5('0xef')](_0x1fd471[_0x4dd5('0x39')]('vid_start'),{'userId':_0x414a5e});}else{const _0x2c452a=this[_0x4dd5('0xf5')]++,_0x4fcf3e=this[_0x4dd5('0xf5')]++;_0x3af5bb['_setAttribute'](_0x4dd5('0x3d'),_0x2c452a),_0x1fd471[_0x4dd5('0x46')](_0x4dd5('0x6e'),_0x4fcf3e),_0x1fd471[_0x4dd5('0x46')](_0x4dd5('0x3d'),_0x4e6112),this['_touched'][_0x4dd5('0xef')](_0x2c452a,{'userId':_0x414a5e}),this[_0x4dd5('0x35')][_0x4dd5('0xef')](_0x4fcf3e,{'userId':_0x414a5e});}}[_0x4dd5('0xe9')](_0x46a6f1){if(!_0x46a6f1[_0x4dd5('0xf9')])return;const _0x4907c3=(_0x46a6f1=this[_0x4dd5('0x4b')](_0x46a6f1,this[_0x4dd5('0xbc')]))['oldRange']?_0x46a6f1[_0x4dd5('0xf4')][_0x4dd5('0x21')]:null,_0xf777d7=_0x46a6f1[_0x4dd5('0xf7')]?_0x46a6f1['newRange'][_0x4dd5('0x21')]:null;_0x4907c3&&this['_markers'][_0x4dd5('0xfe')](_0x46a6f1[_0x4dd5('0x5e')]),_0xf777d7&&this[_0x4dd5('0xbd')]['set'](_0x46a6f1[_0x4dd5('0x5e')],_0x46a6f1['newRange'][_0x4dd5('0x1d')]());const _0x565dc6=null===_0x46a6f1[_0x4dd5('0x36')]?null:_0x46a6f1[_0x4dd5('0x36')]||this[_0x4dd5('0x90')]['plugins'][_0x4dd5('0xd2')](_0x4dd5('0x83'))['me']['id'],_0x415cf5=_0x46a6f1[_0x4dd5('0x5e')];if(!this[_0x4dd5('0x14')][_0x4dd5('0xf1')](_0x415cf5))return void this[_0x4dd5('0x14')][_0x4dd5('0xef')](_0x415cf5,{'range':_0x46a6f1[_0x4dd5('0xf4')],'userId':_0x565dc6});const _0x2e9ff3=this['_touchedMarkers'][_0x4dd5('0xd2')](_0x415cf5),_0x9a5984=_0x2e9ff3[_0x4dd5('0xa3')],_0x5d5cc5=_0x46a6f1['newRange'];null==_0x9a5984&&null==_0x5d5cc5||_0x9a5984&&_0x5d5cc5&&_0x9a5984[_0x4dd5('0x109')](_0x5d5cc5)?this['_touchedMarkers']['delete'](_0x46a6f1[_0x4dd5('0x5e')]):_0x2e9ff3[_0x4dd5('0xd7')]=_0x565dc6;}[_0x4dd5('0xff')](_0x44d883,_0x540f1d){this[_0x4dd5('0xbc')][_0x4dd5('0xf1')](_0x44d883[_0x4dd5('0x6b')])?this['_diffRoots'][_0x4dd5('0xd2')](_0x44d883[_0x4dd5('0x6b')])[_0x4dd5('0x87')]=_0x44d883[_0x4dd5('0x33')]:(this['_diffRoots'][_0x4dd5('0xef')](_0x44d883[_0x4dd5('0x6b')],J(_0x44d883['rootName'],!0x0)),this[_0x4dd5('0x62')][_0x4dd5('0xef')](_0x44d883[_0x4dd5('0x6b')],{}),_0x540f1d&&this['_idsRoots'][_0x4dd5('0xef')](_0x44d883['rootName'],J(_0x44d883[_0x4dd5('0x6b')],!0x0)));const _0x3443f0=null===_0x44d883[_0x4dd5('0x36')]?null:_0x44d883[_0x4dd5('0x36')]||this[_0x4dd5('0x90')]['plugins'][_0x4dd5('0xd2')](_0x4dd5('0x83'))['me']['id'],_0x116da5=this['_touchedRoots'][_0x4dd5('0xd2')](_0x44d883[_0x4dd5('0x6b')]);_0x116da5&&_0x116da5[_0x4dd5('0xd7')]===_0x3443f0?this[_0x4dd5('0xbe')][_0x4dd5('0xfe')](_0x44d883[_0x4dd5('0x6b')]):this[_0x4dd5('0xbe')][_0x4dd5('0xef')](_0x44d883[_0x4dd5('0x6b')],{'userId':_0x3443f0,'isAttached':_0x44d883[_0x4dd5('0x33')]});}['_handleRootAttributeOperation'](_0x47458d){const _0x1f939b=this[_0x4dd5('0x62')][_0x4dd5('0xd2')](_0x47458d['root']['rootName']);null===_0x47458d['newValue']?delete _0x1f939b[_0x47458d[_0x4dd5('0xa0')]]:_0x1f939b[_0x47458d[_0x4dd5('0xa0')]]=_0x47458d[_0x4dd5('0x4d')];}}function B(_0x5bbb46){const _0x4e5b12=J(_0x5bbb46[_0x4dd5('0x6b')],_0x5bbb46['isAttached']());for(const _0x410b0f of _0x5bbb46[_0x4dd5('0xf6')]()){const _0x11ddd5=_0x410b0f[_0x4dd5('0xb')](!0x0);_0x4e5b12[_0x4dd5('0x53')](_0x11ddd5);}return _0x4e5b12;}function J(_0x250ac8,_0x57192c=!0x0){const _0x531db6=new _0xa7f566();return _0x531db6[_0x4dd5('0x6b')]=_0x250ac8,_0x531db6[_0x4dd5('0x87')]=_0x57192c,_0x531db6[_0x4dd5('0xd8')]=()=>_0x531db6[_0x4dd5('0x87')],_0x531db6;}function H(_0x4ea95e,_0x36fdf7,_0x378353){const _0x107405=_0x4dd5('0x22')==_0x4ea95e[_0x4dd5('0x48')]?_0x378353[_0x4dd5('0xeb')](_0x4ea95e['item'],_0x4dd5('0x5')):_0x378353['createPositionBefore'](_0x4ea95e['item']);return _0x378353[_0x4dd5('0x68')](_0x36fdf7,_0x107405[_0x4dd5('0x24')],_0x107405[_0x4dd5('0x10a')]);}function q(_0x20570a,_0x18add9,_0x52e646){const _0x3a6d6e=_0x4dd5('0xbf')==_0x20570a[_0x4dd5('0x48')]?_0x52e646[_0x4dd5('0xeb')](_0x20570a[_0x4dd5('0x101')],0x0):_0x52e646[_0x4dd5('0x7b')](_0x20570a[_0x4dd5('0x101')]);return _0x52e646[_0x4dd5('0x68')](_0x18add9,_0x3a6d6e['path'],_0x3a6d6e[_0x4dd5('0x10a')]);}
|