@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230726.0 → 0.0.0-nightly-20230728.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 _0x1734=['_makeModelFromViewString','_touchedMarkers','_applyOperations','_revisionId','document','toModel','revision:','attributes','RevisionTracker','_touched','_copyMarkers','afterInit','_handleMarkerOperation','getTime','rootName','root','getChild','_touchedRoots','processor','getWalker','offsetSize','end','authorsIds','PendingActions','position','view','forEach','buildRevisionData','_clone','graveyardPosition','_loadState','_bufferedUpdates','_baseRoots','sourcePosition','_revisionDataBuilder','finally','getAncestors','stickiness','_savedMetaData','model','creatorId','vid_start','attachChange','revision','_isInit','shift','set','type','$text','toData','initialData','define','dataDowncast','getRoot','currentRevision','insert','useFillerType','_reset','previousPosition','values','elementEnd','add','version','revisionHistory.resumeUnsavedRevision','push','_loadedStateData','_markers','_calculateMetaData','marked','requires','createdAt','locale','move','_removePendingAction','_saveMetaData','_getVidAttributeName','_createCurrentRevision','tableCell','_createFromRanges','delete','PENDING_ACTION_REVISION_HISTORY','_continueCurrentRevision','_processRootBeforeSave','RevisionsRepository','_removeRevisionMarkers','_isAttached','length','baseVersion','_pendingAction','keys','_execute','start','_operations','config','editor','bind','updateRevisions','history','sendBufferedUpdates','documentFragment','_addPendingAction','source','_transformMarkers','getTransformedByOperation','_createInitialRevision','toVersion','_update','_setConversion','offset','Users','$graveyard','then','getChildren','filter','createRange','getRange','startsWith','getRevisionDocumentData','getRevisionRootsAttributes','getLatestVersion','merge','stringify','editing','authors','has','insertions','_startingRevisionId','split','children','targetPosition','childCount','_setAttribute','oldRange','_replaceEditorDataWithRevisionData','addRevision','_handleSplitOperation','_insertChild','userId','fromEntries','repository','_diffRootsAttributes','createPositionAfter','string','find','paragraph','reverse','newValue','max','_findInsertionIndex','revision-start','isReady','_getPreviousFrom','getIndex','markers','RealTimeCollaborationClient','getUser','_diffRoots','clone','deletions','vid_end','isEnabled','element','parse','_initialRoots','loadState','nodeAfter','_fixRange','_makeIdsRoot','roots','_handleMergeOperation','_appendChild','isAttached','key','getCurrentRevisionId','ready','adapter','_lastFrom','path','marker','_fixPosition','_getViewJson','deletion','_handleInsertOperation','keepParagraph','_getState','Empty\x20document','text','_bufferUpdate','newRange','_handleOperation','range','createRevision','splitPosition','getAttributes','toView','clear','elementStart','getRevisions','get','insertion','getOperation','reinsert','update','howMany','markerToData','data-revision-','isEqual','setRevisionData','_authorId','diffData','parent','name','isAdd','_handleRootOperation','reInit','pluginName','getRootNames','_removeMetaData','conversion','_startingVersion','_loadRevisionData','from','editor-initial-data-replaced-with-revision-data','addRootAttribute','getData','_baseIdsRoots','sort','slice','attributesAfter','NEGATIVE_INFINITY','init','fromVersion','createPositionAt','item','setSource','_cloneOperation','creator','Initial\x20revision','map','getMovedRangeStart','createPositionFromPath','resolve','dataToMarker','addRevisionData','createRangeIn','_makeRevision','_idsRoots','_generateTape','collaboration.channelId','_initialRevisionId','rootsAttributes','_getFromVersion','getRevision','_handleRootAttributeOperation','_markChanges','_getBaseVids','_handleMoveOperation','size','vid','_isPendingUpdate','_baseRootsAttributes','includes','for','getNodeByPath','_fixOperation','_source','data','getAttribute','_prepareViewToSave','plugins','initial','_lastTo'];(function(_0x458fe1,_0x17349d){const _0x4c25bd=function(_0x32d0ca){while(--_0x32d0ca){_0x458fe1['push'](_0x458fe1['shift']());}};_0x4c25bd(++_0x17349d);}(_0x1734,0x188));const _0x4c25=function(_0x458fe1,_0x17349d){_0x458fe1=_0x458fe1-0x0;let _0x4c25bd=_0x1734[_0x458fe1];return _0x4c25bd;};import{Users as _0x4d228a}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x2808ac,PendingActions as _0x2899c8}from'ckeditor5/src/core';import{logWarning as _0x591ce1,uid as _0x311898}from'ckeditor5/src/utils';import{Position as _0x6ee2fe,Range as _0xd70dd2,Element as _0x41c059,DocumentFragment as _0x2f2bb2,ViewText as _0x240c52,ViewElement as _0x7a24be,ViewContainerElement as _0x1c9168,ViewAttributeElement as _0x3090fd,ViewEmptyElement as _0x1446b0,ViewRawElement as _0x4d1ce3,ViewUIElement as _0x5f1f5c,ViewDocumentFragment as _0xdb876f}from'ckeditor5/src/engine';import _0x68eede from'./revisionsrepository';import{getTranslation as _0x1c72f5}from'./utils/common-translations';import{cloneDeep as _0x461a48,isEqual as _0x4e452f}from'lodash-es';const B={'c':_0x1c9168,'a':_0x3090fd,'e':_0x1446b0,'r':_0x4d1ce3,'u':_0x5f1f5c};export default class l extends _0x2808ac{static get[_0x4c25('0x5f')](){return _0x4c25('0xa0');}static get[_0x4c25('0xdd')](){return[_0x4d228a,_0x68eede,_0x2899c8];}constructor(_0x35d3b2){super(_0x35d3b2),this[_0x4c25('0x37')]=null,this[_0x4c25('0xce')]=null,this[_0x4c25('0xba')]=new H(this['editor']),this[_0x4c25('0x81')]=this[_0x4c25('0xf6')][_0x4c25('0xf5')][_0x4c25('0x4e')](_0x4c25('0x80'))||_0x4c25('0x96'),this[_0x4c25('0xb7')]=new Map(),this[_0x4c25('0xd9')]=null;const _0x4bd836=_0x311898();this[_0x4c25('0x91')]={'history':this[_0x4c25('0xf6')][_0x4c25('0xbf')][_0x4c25('0x9c')][_0x4c25('0xf9')],'getLatestVersion':()=>Promise[_0x4c25('0x79')](this['editor'][_0x4c25('0xbf')][_0x4c25('0x9c')][_0x4c25('0xd6')]),'getCurrentRevisionId':()=>_0x4bd836},this[_0x4c25('0xc6')](_0x4c25('0x1e'),!0x1),this[_0x4c25('0xc6')](_0x4c25('0x28'),!0x0),this['set'](_0x4c25('0x8b'),!0x1),this['editor'][_0x4c25('0xf5')][_0x4c25('0xcb')](_0x4c25('0xd7'),!0x0),this[_0x4c25('0xf6')][_0x4c25('0x62')][_0x4c25('0x8e')]('upcast')[_0x4c25('0x7a')]({'view':'revision'});}[_0x4c25('0x6e')](){this[_0x4c25('0x13')]=this[_0x4c25('0xf6')][_0x4c25('0x95')]['get'](_0x4c25('0xeb')),this['_setConversion'](),this[_0x4c25('0xf6')][_0x4c25('0x92')]['on'](_0x4c25('0x36'),()=>{const _0x11f052=this[_0x4c25('0x13')][_0x4c25('0x84')](0x0),_0x118436=_0x11f052&&null===_0x11f052['creator']?_0x11f052:null;if(this[_0x4c25('0xe9')]=!!_0x118436&&this['editor']['config'][_0x4c25('0x4e')](_0x4c25('0xd7')),this['editor'][_0x4c25('0x95')]['has'](_0x4c25('0x22'))){const _0x3d78ab=this[_0x4c25('0x91')][_0x4c25('0x35')](),_0x49dbae=this[_0x4c25('0x13')]['getRevision'](_0x3d78ab);if(_0x49dbae)this['_startingVersion']=_0x49dbae[_0x4c25('0x6f')],this[_0x4c25('0xe9')]=!0x1;else{const _0x5b6750=this[_0x4c25('0x91')][_0x4c25('0xf9')][_0x4c25('0xf4')]['find'](_0x30d755=>!_0x30d755[_0x4c25('0xc4')]),_0x23a079=_0x5b6750?_0x5b6750[_0x4c25('0xef')]:this['_source']['history'][_0x4c25('0xd6')];_0x11f052?(_0x11f052[_0x4c25('0x101')]<_0x23a079&&_0x11f052['_update']({'toVersion':_0x23a079}),this[_0x4c25('0xe9')]?(this['_source'][_0x4c25('0x35')]=()=>_0x118436['id'],this['_startingVersion']=_0x118436[_0x4c25('0x6f')]):(this[_0x4c25('0x63')]=_0x11f052[_0x4c25('0x101')],this[_0x4c25('0xe9')]=!0x1)):(this[_0x4c25('0x63')]=_0x23a079,this[_0x4c25('0xe9')]=!0x1);}}else _0x118436&&(this[_0x4c25('0xf6')][_0x4c25('0xbf')][_0x4c25('0x9c')][_0x4c25('0xf9')][_0x4c25('0xd6')]=Math[_0x4c25('0x1b')](_0x118436[_0x4c25('0x101')],this[_0x4c25('0xf6')]['model'][_0x4c25('0x9c')]['history']['version']),_0x118436[_0x4c25('0x6f')]===_0x118436[_0x4c25('0x101')]?(0x0!==_0x118436[_0x4c25('0x6f')]&&(this[_0x4c25('0x91')]['getCurrentRevisionId']=()=>_0x118436['id']),this[_0x4c25('0xe9')]=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x118436['id'],this[_0x4c25('0x63')]=_0x118436[_0x4c25('0x6f')])),this[_0x4c25('0xe9')]||(this[_0x4c25('0x63')]=this[_0x4c25('0xf6')]['model'][_0x4c25('0x9c')][_0x4c25('0xd6')]);this[_0x4c25('0xba')]['init'](this[_0x4c25('0x91')][_0x4c25('0xf9')]),this[_0x4c25('0x100')](this[_0x4c25('0x63')]),this['_createCurrentRevision'](this[_0x4c25('0x63')]),this[_0x4c25('0x37')]&&this['sendBufferedUpdates']();}),this[_0x4c25('0xf7')]('isReady')['to'](this,_0x4c25('0x8b'),_0x435575=>!_0x435575);}async[_0x4c25('0xa3')](){if(this[_0x4c25('0x13')]['length']>0x0){const _0x2e4a0f=this[_0x4c25('0x13')]['getRevision'](0x0),_0x22df4a=await this[_0x4c25('0x10d')](_0x2e4a0f),_0x15d957=await this[_0x4c25('0x10e')](_0x2e4a0f);this[_0x4c25('0xd')](_0x22df4a,_0x15d957);}}[_0x4c25('0x72')](_0x413455){this['_source']=_0x413455;}async[_0x4c25('0x52')](){const _0x165f61=await this[_0x4c25('0x91')][_0x4c25('0x10f')]();if(_0x165f61>this[_0x4c25('0xce')][_0x4c25('0x101')]){await this[_0x4c25('0xb6')]();const _0x254f08=this['buildRevisionData']({'revision':this[_0x4c25('0xce')],'to':_0x165f61});_0x254f08[_0x4c25('0x3')]=_0x254f08['authorsIds']['map'](_0x32a132=>this[_0x4c25('0xf6')][_0x4c25('0x95')][_0x4c25('0x4e')](_0x4c25('0x105'))[_0x4c25('0x23')](_0x32a132)),this[_0x4c25('0xce')]['_update'](_0x254f08);}}async[_0x4c25('0xb6')](){this[_0x4c25('0xe9')]&&!this['_loadedStateData']&&(await this[_0x4c25('0x64')](this[_0x4c25('0xce')]),this[_0x4c25('0xba')][_0x4c25('0x2c')](this['currentRevision']),this['_loadedStateData']={'fromVersion':this[_0x4c25('0xce')][_0x4c25('0x6f')],'authors':this[_0x4c25('0xce')][_0x4c25('0x3')][_0x4c25('0x6b')]()});}async['saveRevision'](_0x2e7c33={},_0x5ac2f9=null){const _0x509d80=[];await this[_0x4c25('0xb6')](),this['_continueCurrentRevision']=!0x1,_0x5ac2f9>this['currentRevision'][_0x4c25('0x101')]&&(_0x5ac2f9=null),null===_0x5ac2f9&&(_0x5ac2f9=await this['_source']['getLatestVersion']());const _0xe200b9=this[_0x4c25('0x83')](_0x5ac2f9),_0x1c1dbe=this['buildRevisionData']({'from':_0xe200b9,'to':_0x5ac2f9});if(this['currentRevision'][_0x4c25('0x101')]<_0x5ac2f9){const _0x3fb5e6=this['buildRevisionData']({'revision':this[_0x4c25('0xce')],'from':_0x5ac2f9,'to':_0x5ac2f9});_0x3fb5e6[_0x4c25('0x3')]=[],_0x3fb5e6['authorsIds']=[],_0x3fb5e6['id']=this[_0x4c25('0xce')]['id'],this[_0x4c25('0xce')][_0x4c25('0x102')](_0x3fb5e6,!0x0),delete _0x3fb5e6['authors'],_0x509d80[_0x4c25('0xd8')](_0x3fb5e6);}_0x2e7c33[_0x4c25('0xc0')]=this[_0x4c25('0xf6')]['plugins']['get']('Users')['me']['id'],_0x2e7c33[_0x4c25('0x5b')]=_0x2e7c33[_0x4c25('0x5b')]||null,_0x2e7c33['id']=_0x2e7c33['id']||_0x311898(),_0x2e7c33={..._0x2e7c33,..._0x1c1dbe};const _0x1de13c=this['addRevisionData'](_0x2e7c33);_0x509d80[_0x4c25('0xd8')](_0x2e7c33);const _0x4b6d58=this[_0x4c25('0x13')][_0x4c25('0x20')](_0x1de13c);if(0x0!==_0x4b6d58){const _0x2fd93e=this[_0x4c25('0x13')]['getRevision'](_0x4b6d58-0x1);if(_0x2fd93e['fromVersion']!==_0x5ac2f9){const _0x4a8cc7=this['_revisionDataBuilder'][_0x4c25('0x68')](_0x5ac2f9,_0x2fd93e[_0x4c25('0x101')]),_0x55f4c3={'id':_0x2fd93e['id'],'diffData':_0x4a8cc7[_0x4c25('0x59')],'authorsIds':_0x4a8cc7[_0x4c25('0xae')],'authors':_0x4a8cc7[_0x4c25('0xae')][_0x4c25('0x76')](_0x36b2dc=>this['editor'][_0x4c25('0x95')]['get'](_0x4c25('0x105'))['getUser'](_0x36b2dc)),'fromVersion':_0x5ac2f9};_0x2fd93e===this[_0x4c25('0xce')]&&(_0x55f4c3[_0x4c25('0xde')]=new Date(_0x2e7c33[_0x4c25('0xde')][_0x4c25('0xa5')]()+0xa)),_0x2fd93e['_update'](_0x55f4c3,!0x0),delete _0x55f4c3[_0x4c25('0x3')],_0x509d80[_0x4c25('0xd8')](_0x55f4c3);}}if(this[_0x4c25('0x37')]){for(const _0x2bfdac of _0x509d80)this['_bufferUpdate'](_0x2bfdac['id'],_0x2bfdac,!0x0);this[_0x4c25('0xfa')]();}return _0x1de13c;}[_0x4c25('0x7b')](_0x2b4eac){const _0x49b7c2=this[_0x4c25('0x13')][_0x4c25('0x47')](_0x2b4eac);return this['adapter']&&_0x49b7c2['on']('_update',(_0x54c296,_0x4e27b6,_0x4b879c)=>{_0x4b879c||(this['_bufferUpdate'](_0x4e27b6['id'],_0x4e27b6,!0x0),this[_0x4c25('0xfa')]());}),this[_0x4c25('0x13')][_0x4c25('0xe')](_0x49b7c2,this[_0x4c25('0x1c')](_0x49b7c2)),_0x49b7c2;}async[_0x4c25('0x10d')](_0xe5ba9a){await this['_loadRevisionData'](_0xe5ba9a);const _0x2fe0be={};for(const _0x2ada4c in _0xe5ba9a[_0x4c25('0x59')]){if(_0xe5ba9a[_0x4c25('0x59')][_0x2ada4c][_0x4c25('0xc2')]&&!_0xe5ba9a['diffData'][_0x2ada4c]['attachChange'][_0x4c25('0x33')])continue;const _0x24b358=this[_0x4c25('0xec')](JSON[_0x4c25('0x2a')](_0xe5ba9a['diffData'][_0x2ada4c]['insertions'])),_0xebf7c7=this[_0x4c25('0xf6')][_0x4c25('0x2')][_0x4c25('0xb1')][_0x4c25('0x9c')],_0x2ff830=new _0xdb876f(_0xebf7c7,_0x24b358[_0x4c25('0x76')](_0x1402b4=>J(_0x1402b4,this['editor'])));this[_0x4c25('0xf6')][_0x4c25('0x92')]['processor'][_0x4c25('0xd0')](_0x4c25('0xdc')),_0x2fe0be[_0x2ada4c]=this[_0x4c25('0xf6')][_0x4c25('0x92')][_0x4c25('0xaa')][_0x4c25('0xc9')](_0x2ff830),this['editor'][_0x4c25('0x92')][_0x4c25('0xaa')][_0x4c25('0xd0')]('default');}return _0x2fe0be;}async[_0x4c25('0x10e')](_0x2669dd){await this['_loadRevisionData'](_0x2669dd);const _0x374c03={};for(const _0x1bb138 in _0x2669dd[_0x4c25('0x59')])_0x2669dd[_0x4c25('0x59')][_0x1bb138][_0x4c25('0xc2')]&&!_0x2669dd[_0x4c25('0x59')][_0x1bb138][_0x4c25('0xc2')][_0x4c25('0x33')]||(_0x374c03[_0x1bb138]=_0x2669dd['diffData'][_0x1bb138][_0x4c25('0x6c')]||{});return _0x374c03;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates'][_0x4c25('0x89')])return;if(this[_0x4c25('0x8b')])return;let _0x5c59c4=Array[_0x4c25('0x65')](this[_0x4c25('0xb7')][_0x4c25('0xd3')]());this[_0x4c25('0xb7')][_0x4c25('0x4b')]();for(let _0x547975=0x0;_0x547975<_0x5c59c4[_0x4c25('0xee')];_0x547975++){const _0x6b91e0=_0x5c59c4[_0x547975];let _0x29b27d=!0x1;for(const _0x85efea of Object[_0x4c25('0xf1')](_0x6b91e0))void 0x0===_0x6b91e0[_0x85efea]?delete _0x6b91e0[_0x85efea]:'id'!==_0x85efea&&(_0x29b27d=!0x0);_0x29b27d||(_0x5c59c4[_0x547975]=null);}if(_0x5c59c4=_0x5c59c4[_0x4c25('0x109')](_0x2432b8=>null!==_0x2432b8),!_0x5c59c4[_0x4c25('0xee')])return;for(let _0x3d5d2d=0x0;_0x3d5d2d<_0x5c59c4[_0x4c25('0xee')];_0x3d5d2d++){const _0xf7658e=_0x5c59c4[_0x3d5d2d];void 0x0!==_0xf7658e[_0x4c25('0x6f')]&&void 0x0===_0xf7658e[_0x4c25('0x101')]&&(_0xf7658e[_0x4c25('0x101')]=this[_0x4c25('0x13')]['getRevision'](_0xf7658e['id'])[_0x4c25('0x101')]),void 0x0!==_0xf7658e[_0x4c25('0x101')]&&void 0x0===_0xf7658e[_0x4c25('0x6f')]&&(_0xf7658e[_0x4c25('0x6f')]=this[_0x4c25('0x13')][_0x4c25('0x84')](_0xf7658e['id'])['fromVersion']);}const _0x1ebc16=this[_0x4c25('0xf6')][_0x4c25('0xf5')][_0x4c25('0x4e')](_0x4c25('0x80'));this[_0x4c25('0x8b')]=!0x0,this[_0x4c25('0xfc')](),this[_0x4c25('0x37')][_0x4c25('0xf8')](_0x5c59c4,_0x1ebc16)[_0x4c25('0xbb')](()=>{this[_0x4c25('0x8b')]=!0x1;})[_0x4c25('0x107')](_0x321cd1=>{if(_0x321cd1)for(const _0x57d958 of _0x321cd1)this[_0x4c25('0x57')]({'id':_0x57d958['id'],'createdAt':_0x57d958[_0x4c25('0xde')]});this[_0x4c25('0xe1')](),this[_0x4c25('0xfa')]();});}['_replaceEditorDataWithRevisionData'](_0x5e7a49,_0xb44367){let _0x2db64b=this[_0x4c25('0xf6')]['config']['get'](_0x4c25('0xca')),_0x28cc83=this['editor']['config']['get'](_0x4c25('0x82'));if(void 0x0===_0x2db64b){_0x2db64b={};for(const _0x50e828 of this[_0x4c25('0xf6')][_0x4c25('0xbf')][_0x4c25('0x9c')][_0x4c25('0x60')]())_0x2db64b[_0x50e828]='';}if(_0x4c25('0x16')==typeof _0x2db64b&&(_0x2db64b={'main':_0x2db64b}),void 0x0===_0x28cc83){_0x28cc83={};for(const _0x18c191 of this['editor'][_0x4c25('0xbf')][_0x4c25('0x9c')][_0x4c25('0x60')]())_0x28cc83[_0x18c191]={};}let _0x372b91=!0x1;const _0x49e76f=Object['keys'](_0x2db64b),_0x593245=Object['keys'](_0x5e7a49);for(const _0x5d1e5c of _0x49e76f){if(_0x2db64b[_0x5d1e5c]!==_0x5e7a49[_0x5d1e5c]&&''!==_0x2db64b[_0x5d1e5c]['trim']()){_0x372b91=!0x0;break;}if(!_0x4e452f(_0x28cc83[_0x5d1e5c],_0xb44367[_0x5d1e5c])&&Object[_0x4c25('0xf1')](_0x28cc83[_0x5d1e5c])[_0x4c25('0xee')]>0x0){_0x372b91=!0x0;break;}}_0x372b91||(_0x372b91=_0x593245['some'](_0x499170=>!_0x49e76f[_0x4c25('0x8d')](_0x499170))),_0x372b91&&_0x591ce1(_0x4c25('0x66'),{'editorData':_0x2db64b,'editorRootsAttributes':_0x28cc83,'revisionData':_0x5e7a49,'revisionRootsAttributes':_0xb44367}),this[_0x4c25('0xf6')][_0x4c25('0xf5')][_0x4c25('0xc6')](_0x4c25('0xca'),_0x5e7a49),this[_0x4c25('0xf6')][_0x4c25('0xf5')][_0x4c25('0xc6')](_0x4c25('0x82'),_0xb44367);}[_0x4c25('0xfc')](){if(!this['_pendingAction']){const _0x2b0974=this[_0x4c25('0xf6')][_0x4c25('0x95')][_0x4c25('0x4e')](_0x4c25('0xaf'));this['_pendingAction']=_0x2b0974[_0x4c25('0xd5')](_0x1c72f5(this['editor'][_0x4c25('0xdf')],_0x4c25('0xe8')));}}['_removePendingAction'](){this[_0x4c25('0xf0')]&&(this['editor'][_0x4c25('0x95')]['get'](_0x4c25('0xaf'))['remove'](this[_0x4c25('0xf0')]),this[_0x4c25('0xf0')]=null);}[_0x4c25('0x1c')](_0xf9e9d8){const _0x2816de=this[_0x4c25('0x13')]['getRevisions']();_0x2816de[_0x4c25('0x19')]();let _0x1b8aac=0x0;for(;_0x1b8aac<_0x2816de[_0x4c25('0xee')];){const _0x3f6f89=_0x2816de[_0x1b8aac];if(_0x3f6f89===this[_0x4c25('0xce')]){_0x1b8aac++;continue;}if(_0x3f6f89['id']===this[_0x4c25('0x81')])break;const _0x2552b6=_0xf9e9d8['toVersion']-_0x3f6f89[_0x4c25('0x101')]||_0xf9e9d8[_0x4c25('0x6f')]-_0x3f6f89[_0x4c25('0x6f')];if(_0x2552b6>0x0)break;if(_0x2552b6<0x0)_0x1b8aac++;else{if(!_0xf9e9d8[_0x4c25('0x74')]&&_0x3f6f89['creator'])break;if(_0x3f6f89['creator']||!_0xf9e9d8['creator']){if(_0xf9e9d8[_0x4c25('0xde')]>_0x3f6f89[_0x4c25('0xde')])break;_0x1b8aac++;}else _0x1b8aac++;}}return _0x1b8aac;}[_0x4c25('0x57')](_0x412785){const _0x2f6d82=this[_0x4c25('0x13')][_0x4c25('0x84')](_0x412785['id']);if(_0x412785['createdAt']&&(_0x412785[_0x4c25('0xde')]=new Date(_0x412785[_0x4c25('0xde')])),_0x412785[_0x4c25('0xae')]){const _0x1231c1=this[_0x4c25('0xf6')][_0x4c25('0x95')]['get']('Users');_0x412785[_0x4c25('0x3')]=_0x412785[_0x4c25('0xae')][_0x4c25('0x76')](_0x50ec9c=>_0x1231c1[_0x4c25('0x23')](_0x50ec9c));}_0x2f6d82[_0x4c25('0x102')](_0x412785,!0x0);}['buildRevisionData']({revision:_0x14e9c0=null,from:_0x3fecc2=null,to:_0x4fa1da=null}){_0x3fecc2=null!==_0x3fecc2?_0x3fecc2:_0x14e9c0[_0x4c25('0x6f')],_0x4fa1da=null!==_0x4fa1da?_0x4fa1da:_0x14e9c0[_0x4c25('0x101')];const _0xe3f9dc=this[_0x4c25('0xba')][_0x4c25('0x68')](_0x3fecc2,_0x4fa1da),_0x159c73={'diffData':_0xe3f9dc['diffData'],'authorsIds':_0xe3f9dc['authorsIds'],'fromVersion':_0x3fecc2,'toVersion':_0x4fa1da};if(!_0x14e9c0||_0x4fa1da!==_0x14e9c0[_0x4c25('0x101')]){const _0x1e2fc1=_0x4fa1da-0x1,_0x457baa=this[_0x4c25('0x91')][_0x4c25('0xf9')][_0x4c25('0x50')](_0x1e2fc1);_0x159c73[_0x4c25('0xde')]=_0x457baa&&_0x457baa[_0x4c25('0xde')]||new Date();}if(this['_loadedStateData']&&_0x3fecc2===this[_0x4c25('0xd9')][_0x4c25('0x6f')])for(const _0x54e9fc of this[_0x4c25('0xd9')][_0x4c25('0x3')])_0x159c73[_0x4c25('0xae')][_0x4c25('0x8d')](_0x54e9fc['id'])||_0x159c73[_0x4c25('0xae')][_0x4c25('0xd8')](_0x54e9fc['id']);return _0x159c73;}[_0x4c25('0x64')](_0xc3b518){if(!_0xc3b518||_0xc3b518[_0x4c25('0x59')])return Promise[_0x4c25('0x79')]();{const _0x2b98a2=this['editor'][_0x4c25('0xf5')][_0x4c25('0x4e')](_0x4c25('0x80'));return this[_0x4c25('0x37')]['getRevision']({'channelId':_0x2b98a2,'revisionId':_0xc3b518['id']})['then'](_0xf34960=>{_0xc3b518[_0x4c25('0x59')]=_0xf34960['diffData'];});}}[_0x4c25('0x43')](_0x41f9b2,_0x5966ca,_0x4c6ff0){if(this[_0x4c25('0xb7')][_0x4c25('0x4')](_0x41f9b2)){const _0x342a2e=this['_bufferedUpdates']['get'](_0x41f9b2);_0x5966ca=_0x4c6ff0?{..._0x342a2e,..._0x5966ca}:{..._0x5966ca,..._0x342a2e};}this['_bufferedUpdates'][_0x4c25('0xc6')](_0x41f9b2,_0x5966ca);}[_0x4c25('0x83')](_0x11a2c9){const _0x2f1289=this[_0x4c25('0x13')][_0x4c25('0x4d')]();_0x2f1289[_0x4c25('0x19')](),_0x2f1289[_0x4c25('0xc5')]();const _0x41802d=_0x2f1289[_0x4c25('0x17')](_0x40c419=>_0x40c419[_0x4c25('0x101')]<=_0x11a2c9)['toVersion'];return _0x41802d<this[_0x4c25('0x63')]?this['_startingVersion']:_0x41802d;}['_createInitialRevision'](_0xdba7c6){const _0x4c22e3=this[_0x4c25('0x13')][_0x4c25('0x84')](this[_0x4c25('0x13')]['length']-0x1);if(_0x4c22e3)this[_0x4c25('0x81')]=_0x4c22e3['id'];else{const _0x2976a0=!this[_0x4c25('0xf6')][_0x4c25('0xbf')]['document'][_0x4c25('0x30')][_0x4c25('0x17')](_0x12691e=>this[_0x4c25('0xf6')][_0x4c25('0xbf')]['hasContent'](_0x12691e)),_0x35adb0=this['editor']['plugins'][_0x4c25('0x4e')](_0x4c25('0x105'))['me']['id'],_0x456ae4=_0x1c72f5(this['editor'][_0x4c25('0xdf')],_0x2976a0?_0x4c25('0x41'):_0x4c25('0x75'));this[_0x4c25('0x7d')]({'from':_0xdba7c6,'to':_0xdba7c6,'id':this['_initialRevisionId'],'name':_0x456ae4,'creatorId':_0x35adb0});}}[_0x4c25('0xe4')](_0x111ede){const _0x2c8741=this['_source']['getCurrentRevisionId']();this[_0x4c25('0xce')]=this[_0x4c25('0x13')][_0x4c25('0x84')](_0x2c8741),this['currentRevision']||(this[_0x4c25('0xce')]=this[_0x4c25('0x7d')]({'from':_0x111ede,'to':_0x111ede,'id':_0x2c8741,'name':'','creatorId':null}));}[_0x4c25('0x7d')]({name:_0x2e9aea,from:_0x3a7346,to:_0x1cb377,creatorId:_0x33f598,id:_0x6a94f4}){const _0x551c9a=this[_0x4c25('0xb3')]({'from':_0x3a7346,'to':_0x1cb377});_0x551c9a['name']=_0x2e9aea,_0x551c9a[_0x4c25('0xc0')]=_0x33f598,_0x551c9a['id']=_0x6a94f4;const _0x3e653f=this[_0x4c25('0x7b')](_0x551c9a);return this[_0x4c25('0x37')]&&this['_bufferUpdate'](_0x551c9a['id'],_0x551c9a,!0x0),_0x3e653f;}[_0x4c25('0x103')](){this['editor'][_0x4c25('0x62')][_0x4c25('0x8e')](_0x4c25('0xcc'))[_0x4c25('0x54')]({'model':_0x4c25('0xc3')});}[_0x4c25('0xec')](_0x36c922){return(_0x36c922=_0x36c922[_0x4c25('0x109')](_0x152952=>!_0x152952[_0x4c25('0x5b')]||_0x4c25('0x1d')!==_0x152952['name']&&'revision-end'!==_0x152952[_0x4c25('0x5b')]))[_0x4c25('0xb2')](_0x36ab00=>{_0x4c25('0x16')!=typeof _0x36ab00&&(_0x36ab00[_0x4c25('0x8')]=this[_0x4c25('0xec')](_0x36ab00['children']),_0x36ab00['attributes']=_0x36ab00[_0x4c25('0x9f')][_0x4c25('0x109')](_0x161130=>!_0x161130[0x0][_0x4c25('0x10c')](_0x4c25('0x55'))));}),_0x36c922;}}function J(_0x1d3e5f,_0x319b51){const _0x1c8feb=_0x319b51[_0x4c25('0x2')][_0x4c25('0xb1')][_0x4c25('0x9c')];if('string'==typeof _0x1d3e5f)return new _0x240c52(_0x1c8feb,_0x1d3e5f);{const _0x32ac8c=_0x1d3e5f[_0x4c25('0x8')][_0x4c25('0x76')](_0x793abc=>J(_0x793abc,_0x319b51));return new(B[_0x1d3e5f[(_0x4c25('0xc7'))]]||_0x7a24be)(_0x1c8feb,_0x1d3e5f[_0x4c25('0x5b')],_0x1d3e5f[_0x4c25('0x9f')],_0x32ac8c);}}class H{constructor(_0x5f41ba){this['editor']=_0x5f41ba,this['_savedMetaData']=new Map(),this[_0x4c25('0x38')]=-0x1,this[_0x4c25('0x97')]=-0x1,this[_0x4c25('0xda')]=new Map(),this[_0x4c25('0x24')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x4c25('0xb8')]=new Map(),this[_0x4c25('0x8c')]=new Map(),this[_0x4c25('0x7e')]=new Map(),this[_0x4c25('0x69')]=new Map(),this[_0x4c25('0xa1')]=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this[_0x4c25('0x9b')]=0x1,this[_0x4c25('0x2b')]=this[_0x4c25('0xf6')]['model'][_0x4c25('0x9c')][_0x4c25('0x60')](),this[_0x4c25('0x2b')][_0x4c25('0xd8')](_0x4c25('0x106'));}[_0x4c25('0x6e')](_0x18218e){this['source']=_0x18218e;const _0x58699a=new Map(),_0xb12ee3=new Map(),_0x32a130=this[_0x4c25('0xf6')][_0x4c25('0xbf')]['document']['getRootNames'](!0x0);_0x32a130[_0x4c25('0xd8')](_0x4c25('0x106'));for(const _0x339d09 of _0x32a130){const _0x4f5a33=this['editor'][_0x4c25('0xbf')][_0x4c25('0x9c')][_0x4c25('0xcd')](_0x339d09),_0x1c5213=q(_0x4f5a33);_0x58699a[_0x4c25('0xc6')](_0x339d09,_0x1c5213),_0xb12ee3['set'](_0x339d09,Object[_0x4c25('0x12')](_0x4f5a33[_0x4c25('0x49')]()));}const _0x3f4669=Array[_0x4c25('0x65')](this[_0x4c25('0xf6')][_0x4c25('0xbf')][_0x4c25('0x21')])[_0x4c25('0x76')](_0x2e215d=>[_0x2e215d[_0x4c25('0x5b')],_0x2e215d[_0x4c25('0x10b')]()]),_0x1f11bb=this[_0x4c25('0xfd')][_0x4c25('0xd6')];this['_saveMetaData'](_0x1f11bb,_0x58699a,_0x3f4669,_0xb12ee3),this['_startingRevisionId']=this[_0x4c25('0x9b')];const _0x51c0eb=new Map(),_0x1c2127=new Map();for(const _0x3dbf47 of this[_0x4c25('0x2b')]){const _0x462a72=G(_0x3dbf47);_0x51c0eb[_0x4c25('0xc6')](_0x3dbf47,_0x462a72),_0x1c2127[_0x4c25('0xc6')](_0x3dbf47,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x51c0eb,[],_0x1c2127);}['getData'](_0xc2960f,_0x2ff6db){if(this[_0x4c25('0x38')]===_0xc2960f&&this[_0x4c25('0x97')]<=_0x2ff6db)this['_savedMetaData'][_0x4c25('0x89')]>0x1&&this['_removeMetaData'](this[_0x4c25('0x97')]),this[_0x4c25('0x9a')](this[_0x4c25('0x97')],_0x2ff6db,!0x0);else{if(!this[_0x4c25('0xbe')][_0x4c25('0x4')](_0xc2960f)){const _0x2af241=this[_0x4c25('0x1f')](_0xc2960f);this[_0x4c25('0xdb')](_0x2af241,_0xc2960f,!0x1);}this[_0x4c25('0xdb')](_0xc2960f,_0x2ff6db,!0x0);}return this['_lastFrom']=_0xc2960f,this[_0x4c25('0x97')]=_0x2ff6db,this[_0x4c25('0x40')]();}[_0x4c25('0x2c')](_0x16deb0){this[_0x4c25('0xd1')](),this[_0x4c25('0x38')]=_0x16deb0['fromVersion'],this[_0x4c25('0x97')]=_0x16deb0[_0x4c25('0x101')];for(const _0x52f066 in _0x16deb0['diffData']){const _0x54f822=_0x16deb0[_0x4c25('0x59')][_0x52f066][_0x4c25('0xc2')],_0x1c6102=_0x461a48(_0x16deb0[_0x4c25('0x59')][_0x52f066]['attributesBefore'])||{},_0x1dc22f=this[_0x4c25('0x98')](_0x16deb0[_0x4c25('0x59')][_0x52f066][_0x4c25('0x26')]);_0x1dc22f[_0x4c25('0xa6')]=_0x52f066,_0x1dc22f[_0x4c25('0xed')]=!_0x54f822||!_0x54f822['isAttached'],_0x1dc22f[_0x4c25('0x33')]=()=>_0x1dc22f[_0x4c25('0xed')],this['_baseRoots']['set'](_0x52f066,_0x1dc22f),this[_0x4c25('0x8c')][_0x4c25('0xc6')](_0x52f066,_0x1c6102),_0x54f822&&this['_touchedRoots'][_0x4c25('0xc6')](_0x52f066,_0x54f822);const _0x4932a3=this[_0x4c25('0x2f')](_0x1dc22f);this[_0x4c25('0x69')][_0x4c25('0xc6')](_0x52f066,_0x4932a3);for(const [_0x157fc7,_0x536309]of _0x1dc22f[_0x4c25('0x21')]){if(!_0x157fc7['startsWith'](_0x4c25('0x9e')))continue;const _0x1eea88=_0x157fc7[_0x4c25('0x7')](':')[0x2];for(const _0x12dda2 of _0x536309[_0x4c25('0xab')]({'singleCharacters':!0x0})){const _0x56f3ea=this[_0x4c25('0xe3')](_0x12dda2),_0x1d15b3=_0x4c25('0xd4')==_0x12dda2[_0x4c25('0xc7')]?_0x12dda2[_0x4c25('0xd2')][_0x4c25('0x39')][_0x4c25('0x6b')](0x0,-0x1):_0x12dda2['previousPosition'][_0x4c25('0x39')],_0x2790e7=_0x4932a3[_0x4c25('0x8f')](_0x1d15b3)[_0x4c25('0x93')](_0x56f3ea);this[_0x4c25('0xa1')][_0x4c25('0xc6')](_0x2790e7,{'userId':_0x1eea88});}}}this[_0x4c25('0x6')]=this[_0x4c25('0x9b')];const _0x49dbf1=[...Array(this[_0x4c25('0x9b')])[_0x4c25('0xf1')]()][_0x4c25('0x6b')](0x1)[_0x4c25('0x109')](_0x258296=>!this[_0x4c25('0xa1')]['has'](_0x258296));let _0x337be9=0x0;const _0x1ea1e9=new Map();for(const _0x2d29e1 in _0x16deb0[_0x4c25('0x59')]){const _0x35a5b7=_0x16deb0[_0x4c25('0x59')][_0x2d29e1][_0x4c25('0xc2')],_0x3f9af7=_0x461a48(_0x16deb0[_0x4c25('0x59')][_0x2d29e1][_0x4c25('0x6c')])||{},_0x2479c3=this[_0x4c25('0x98')](_0x16deb0['diffData'][_0x2d29e1][_0x4c25('0x5')]);_0x2479c3[_0x4c25('0xa6')]=_0x2d29e1,_0x2479c3[_0x4c25('0xed')]=!_0x35a5b7||_0x35a5b7[_0x4c25('0x33')],_0x2479c3[_0x4c25('0x33')]=()=>_0x2479c3['_isAttached'],this['_diffRoots'][_0x4c25('0xc6')](_0x2d29e1,_0x2479c3),this[_0x4c25('0x14')][_0x4c25('0xc6')](_0x2d29e1,_0x3f9af7);const _0x1af9af=this[_0x4c25('0x2f')](_0x2479c3,Number[_0x4c25('0x6d')]);this[_0x4c25('0x7e')][_0x4c25('0xc6')](_0x2d29e1,_0x1af9af),_0x1ea1e9[_0x4c25('0xc6')](_0x2d29e1,_0x2479c3[_0x4c25('0x33')]()?_0x3f9af7:{});for(const [_0xc4c4c1,_0x431b59]of _0x2479c3[_0x4c25('0x21')]){if(!_0xc4c4c1[_0x4c25('0x10c')]('revision:'))continue;const _0x566772=_0xc4c4c1['split'](':')[0x2];for(const _0x50ab19 of _0x431b59[_0x4c25('0xab')]({'singleCharacters':!0x0})){const _0x1b01f2=this[_0x4c25('0xe3')](_0x50ab19),_0x43be0c=this[_0x4c25('0x9b')]++,_0x1fd92b=_0x4c25('0xd4')==_0x50ab19[_0x4c25('0xc7')]?_0x50ab19['previousPosition'][_0x4c25('0x39')][_0x4c25('0x6b')](0x0,-0x1):_0x50ab19[_0x4c25('0xd2')]['path'];_0x1af9af[_0x4c25('0x8f')](_0x1fd92b)[_0x4c25('0xb')](_0x1b01f2,_0x43be0c),this['_touched'][_0x4c25('0xc6')](_0x43be0c,{'userId':_0x566772});}}for(const _0x36b110 of this[_0x4c25('0xf6')][_0x4c25('0xbf')][_0x4c25('0x7c')](_0x2479c3)[_0x4c25('0xab')]({'singleCharacters':!0x0})){const _0x5dd389=this['_getVidAttributeName'](_0x36b110),_0x180b86='elementEnd'==_0x36b110[_0x4c25('0xc7')]?_0x36b110[_0x4c25('0xd2')][_0x4c25('0x39')]['slice'](0x0,-0x1):_0x36b110[_0x4c25('0xd2')]['path'],_0x23b233=_0x1af9af[_0x4c25('0x8f')](_0x180b86);_0x23b233[_0x4c25('0x93')](_0x5dd389)>0x0||_0x23b233[_0x4c25('0xb')](_0x5dd389,_0x49dbf1[_0x337be9++]);}for(const [_0x486818,_0xeab78b]of _0x2479c3[_0x4c25('0x21')])_0x486818['startsWith']('revision:')||this[_0x4c25('0xda')][_0x4c25('0xc6')](_0x486818,_0xeab78b);}const _0x120b17=G(_0x4c25('0x106'));this[_0x4c25('0xb8')][_0x4c25('0xc6')]('$graveyard',_0x120b17),this['_baseIdsRoots'][_0x4c25('0xc6')](_0x4c25('0x106'),this[_0x4c25('0x2f')](_0x120b17,0x1));const _0x1090f5=G(_0x4c25('0x106'));this[_0x4c25('0x24')][_0x4c25('0xc6')]('$graveyard',_0x1090f5),this[_0x4c25('0x7e')][_0x4c25('0xc6')](_0x4c25('0x106'),this[_0x4c25('0x2f')](_0x1090f5,0x1));const _0x1105ac=Array[_0x4c25('0x65')](this[_0x4c25('0x24')])[_0x4c25('0x76')](([_0x327ab1,_0x313b4a])=>[_0x327ab1,q(_0x313b4a)]);this[_0x4c25('0xe2')](this[_0x4c25('0x97')],_0x1105ac,this[_0x4c25('0xda')],_0x1ea1e9);}['_makeModelFromViewString'](_0x442c6d){const _0x3d862e=JSON[_0x4c25('0x2a')](_0x442c6d),_0x1596fb=this[_0x4c25('0xf6')][_0x4c25('0x2')]['view']['document'],_0x2a1657=new _0xdb876f(_0x1596fb,_0x3d862e[_0x4c25('0x76')](_0x5d3743=>J(_0x5d3743,this[_0x4c25('0xf6')])));return this[_0x4c25('0xf6')][_0x4c25('0x92')][_0x4c25('0x9d')](_0x2a1657);}[_0x4c25('0xe2')](_0x4535e6,_0x4b43cb,_0x2f51e6,_0x5e9e1c){const _0x5a0118=new Map(_0x4b43cb),_0x58cdfb=new Map(_0x461a48(_0x5e9e1c)),_0x1fb5ad=new Map();for(const [_0x2429fe,_0xb79445]of _0x2f51e6)_0x1fb5ad['set'](_0x2429fe,{'start':_0xb79445[_0x4c25('0xf3')][_0x4c25('0x25')](),'end':_0xb79445['end'][_0x4c25('0x25')](),'rootName':_0xb79445[_0x4c25('0xa7')][_0x4c25('0xa6')]});this[_0x4c25('0xbe')][_0x4c25('0xc6')](_0x4535e6,{'roots':_0x5a0118,'markers':_0x1fb5ad,'rootsAttributes':_0x58cdfb});}[_0x4c25('0x61')](_0x40c76b){this[_0x4c25('0xbe')]['delete'](_0x40c76b);}[_0x4c25('0x5e')](){this['_reset'](),this[_0x4c25('0x38')]=-0x1,this[_0x4c25('0x97')]=-0x1,this[_0x4c25('0xbe')][_0x4c25('0x4b')](),this[_0x4c25('0x6e')](this[_0x4c25('0xfd')]);}[_0x4c25('0xd1')](){this['_touched']['clear'](),this['_touchedMarkers'][_0x4c25('0x4b')](),this[_0x4c25('0xa9')][_0x4c25('0x4b')](),this[_0x4c25('0x24')][_0x4c25('0x4b')](),this['_diffRootsAttributes'][_0x4c25('0x4b')](),this[_0x4c25('0xb8')][_0x4c25('0x4b')](),this['_baseRootsAttributes'][_0x4c25('0x4b')](),this[_0x4c25('0x7e')][_0x4c25('0x4b')](),this[_0x4c25('0x69')][_0x4c25('0x4b')](),this['_markers'][_0x4c25('0x4b')](),this[_0x4c25('0x9b')]=0x1,this[_0x4c25('0x6')]=this[_0x4c25('0x9b')];}[_0x4c25('0x2f')](_0x31309a,_0x1d97e3=null){let _0x3db2c7=null;_0x31309a['is'](_0x4c25('0xfb'))||(_0x3db2c7=new _0x41c059(_0x31309a[_0x4c25('0x5b')],{'vid_start':null===_0x1d97e3?this[_0x4c25('0x9b')]++:_0x1d97e3++}));const _0x190f7a=[];for(const _0x15e2a2 of _0x31309a['getChildren']())if(_0x15e2a2['is']('element')){_0x190f7a['push'](this['_makeIdsRoot'](_0x15e2a2,_0x1d97e3));const _0x5135f7=_0x190f7a[_0x190f7a['length']-0x1];null!==_0x1d97e3&&(_0x1d97e3=_0x5135f7['is'](_0x4c25('0x29'),_0x4c25('0xc8'))?_0x5135f7['getAttribute'](_0x4c25('0x8a'))+0x1:_0x5135f7['getAttribute'](_0x4c25('0x27'))+0x1);}else for(let _0x3df1ae=0x0;_0x3df1ae<_0x15e2a2[_0x4c25('0xac')];_0x3df1ae++)_0x190f7a[_0x4c25('0xd8')](new _0x41c059(_0x4c25('0xc8'),{'vid':null===_0x1d97e3?this[_0x4c25('0x9b')]++:_0x1d97e3++}));if(_0x31309a['is']('documentFragment')){const _0x3280f2=G(_0x31309a[_0x4c25('0xa6')]);return _0x3280f2[_0x4c25('0x10')](0x0,_0x190f7a),_0x3280f2;}return _0x3db2c7[_0x4c25('0xb')]('vid_end',null===_0x1d97e3?this[_0x4c25('0x9b')]++:_0x1d97e3++),_0x3db2c7[_0x4c25('0x10')](0x0,_0x190f7a),_0x3db2c7;}['_calculateMetaData'](_0x26ff6d,_0x3c3b32,_0x39edd8){this[_0x4c25('0xd1')]();const {roots:_0x2457e1,markers:_0x2c5063,rootsAttributes:_0x48df78}=this[_0x4c25('0xbe')][_0x4c25('0x4e')](_0x26ff6d);this['_baseRoots']=new Map(_0x2457e1),this[_0x4c25('0x8c')]=new Map(_0x461a48(_0x48df78));for(const [_0x506468,_0x29cd36]of this[_0x4c25('0xb8')])if('$graveyard'!==_0x506468&&(this['_diffRoots'][_0x4c25('0xc6')](_0x506468,q(_0x29cd36)),this[_0x4c25('0x14')]=new Map(_0x461a48(_0x48df78)),_0x39edd8)){const _0x6ee8c9=this[_0x4c25('0x9b')];this[_0x4c25('0x7e')]['set'](_0x506468,this[_0x4c25('0x2f')](_0x29cd36)),this[_0x4c25('0x69')]['set'](_0x506468,this['_makeIdsRoot'](_0x29cd36,_0x6ee8c9));}this[_0x4c25('0x6')]=this[_0x4c25('0x9b')],this[_0x4c25('0x24')][_0x4c25('0xc6')](_0x4c25('0x106'),q(this[_0x4c25('0xb8')]['get']('$graveyard'))),_0x39edd8&&this[_0x4c25('0x7e')]['set']('$graveyard',this[_0x4c25('0x2f')](this[_0x4c25('0xb8')][_0x4c25('0x4e')]('$graveyard')));for(const [_0x53f870,_0x2f48c9]of _0x2c5063){const _0x5cf7cd=this[_0x4c25('0xb8')][_0x4c25('0x4e')](_0x2f48c9['rootName']),_0x9bea6=this['_diffRoots'][_0x4c25('0x4e')](_0x2f48c9[_0x4c25('0xa6')]),_0x376167=new _0xd70dd2(this[_0x4c25('0x3b')](_0x2f48c9[_0x4c25('0xf3')],_0x5cf7cd),this['_fixPosition'](_0x2f48c9[_0x4c25('0xad')],_0x5cf7cd)),_0x5f0ee8=this[_0x4c25('0x2e')](_0x376167,_0x9bea6);_0x5cf7cd[_0x4c25('0x21')]['set'](_0x53f870,_0x376167),this[_0x4c25('0xda')]['set'](_0x53f870,_0x5f0ee8);}this[_0x4c25('0x9a')](_0x26ff6d,_0x3c3b32,_0x39edd8);}['_applyOperations'](_0x34b369,_0x2fe0bd,_0x192b5a){for(const _0x1edfc3 of this[_0x4c25('0xfd')]['getOperations'](_0x34b369,_0x2fe0bd))this[_0x4c25('0x45')](_0x1edfc3,_0x192b5a);for(const _0x26b757 of this['_diffRoots'][_0x4c25('0xd3')]())_0x26b757[_0x4c25('0x21')][_0x4c25('0x4b')]();for(const [_0x47195f,_0x1b2771]of this[_0x4c25('0xda')]){this[_0x4c25('0x24')][_0x4c25('0x4e')](_0x1b2771[_0x4c25('0xa7')][_0x4c25('0xa6')])[_0x4c25('0x21')][_0x4c25('0xc6')](_0x47195f,_0x1b2771[_0x4c25('0x25')]());}const _0x207e96=new Map(),_0x34a6c5=new Map();for(const [_0x5bcb93,_0x97f623]of this[_0x4c25('0x24')])_0x207e96['set'](_0x5bcb93,q(_0x97f623)),_0x34a6c5[_0x4c25('0xc6')](_0x5bcb93,this[_0x4c25('0x14')][_0x4c25('0x4e')](_0x5bcb93));this[_0x4c25('0xe2')](_0x2fe0bd,_0x207e96,this[_0x4c25('0xda')],_0x34a6c5);}[_0x4c25('0x1f')](_0x248a31){const _0x68cac6=Array[_0x4c25('0x65')](this[_0x4c25('0xbe')]['keys']());_0x68cac6[_0x4c25('0x6a')]((_0x4e171f,_0xa9fe3e)=>_0x4e171f-_0xa9fe3e),_0x68cac6['reverse']();for(const _0x546162 of _0x68cac6)if(_0x546162<_0x248a31)return _0x546162;return Number['NEGATIVE_INFINITY'];}[_0x4c25('0xa2')](_0x332e0a,_0x5ec24d){const _0x4418e3=Array['from'](_0x5ec24d[_0x4c25('0x21')])[_0x4c25('0x76')](([_0x3059a9,_0x5c518b])=>[_0x3059a9,this[_0x4c25('0x2e')](_0x5c518b,_0x332e0a)]);_0x332e0a[_0x4c25('0x21')]=new Map(_0x4418e3);}[_0x4c25('0xfe')](_0x16f78d){for(const _0x4ff690 of this[_0x4c25('0xda')][_0x4c25('0xd3')]()){const _0x4428aa=_0x4ff690[_0x4c25('0xff')](_0x16f78d),_0x1906d0=_0xd70dd2[_0x4c25('0xe6')](_0x4428aa);_0x4ff690['start']=_0x1906d0[_0x4c25('0xf3')],_0x4ff690[_0x4c25('0xad')]=_0x1906d0[_0x4c25('0xad')];}}['_handleOperation'](_0x515d92,_0xd6932d){if('addRoot'==_0x515d92['type']||'detachRoot'==_0x515d92['type'])return void this[_0x4c25('0x5d')](_0x515d92,_0xd6932d);if(_0x4c25('0xcf')==_0x515d92['type']){const _0x5099a9=_0x515d92[_0x4c25('0xb0')][_0x4c25('0xa7')][_0x4c25('0xa6')];this[_0x4c25('0x24')][_0x4c25('0x4')](_0x5099a9)||(this['_diffRoots']['set'](_0x5099a9,G(_0x5099a9,!0x0)),this[_0x4c25('0x14')]['set'](_0x5099a9,{}),_0xd6932d&&this[_0x4c25('0x7e')]['set'](_0x5099a9,G(_0x5099a9,!0x0)));}if(_0x4c25('0x67')==_0x515d92[_0x4c25('0xc7')]||'removeRootAttribute'==_0x515d92[_0x4c25('0xc7')]||'changeRootAttribute'==_0x515d92[_0x4c25('0xc7')])return void this[_0x4c25('0x85')](_0x515d92);const _0x57e77c=this[_0x4c25('0x73')](_0x515d92,this[_0x4c25('0x24')]);if(_0x4c25('0x3a')!==_0x515d92[_0x4c25('0xc7')]&&(_0x57e77c[_0x4c25('0xf2')](),this[_0x4c25('0xfe')](_0x57e77c)),_0xd6932d)switch(_0x57e77c[_0x4c25('0xc7')]){case _0x4c25('0xcf'):this[_0x4c25('0x3e')](_0x515d92);break;case _0x4c25('0xe0'):case'remove':case _0x4c25('0x51'):this[_0x4c25('0x88')](_0x515d92);break;case _0x4c25('0x0'):this[_0x4c25('0x31')](_0x515d92);break;case _0x4c25('0x7'):this['_handleSplitOperation'](_0x515d92);break;case _0x4c25('0x3a'):this[_0x4c25('0xa4')](_0x515d92);}}[_0x4c25('0x73')](_0xb398a4,_0x3bbe62){const _0x273463=_0xb398a4[_0x4c25('0x25')]();return _0x273463[_0x4c25('0x58')]=_0xb398a4[_0x4c25('0x58')],this[_0x4c25('0x90')](_0x273463,_0x3bbe62),_0x273463;}[_0x4c25('0x87')](_0x566035){return _0x566035[_0x4c25('0x76')](_0x2d2f30=>{const _0x239eec=this[_0x4c25('0xe3')](_0x2d2f30);return Number(_0x2d2f30[_0x4c25('0x71')][_0x4c25('0x93')](_0x239eec));});}['_generateTape'](_0x30b598,_0x5ee334){if(_0x30b598['is']('element',_0x4c25('0xc8')))_0x5ee334['push']({'item':_0x30b598,'type':_0x4c25('0x42')});else{_0x30b598['is'](_0x4c25('0x29'))&&_0x5ee334['push']({'item':_0x30b598,'type':_0x4c25('0x4c')});for(const _0x4e9364 of _0x30b598[_0x4c25('0x108')]())this[_0x4c25('0x7f')](_0x4e9364,_0x5ee334);_0x30b598['is'](_0x4c25('0x29'))&&_0x5ee334[_0x4c25('0xd8')]({'item':_0x30b598,'type':_0x4c25('0xd4')});}return _0x5ee334;}[_0x4c25('0x40')](){const _0x52b59b=new Map(this[_0x4c25('0xa1')]),_0x4bad39=new Map(_0x52b59b),_0x4e513f=new Map(),_0x98c92e={'insertions':{},'deletions':{}},_0x5cecd0={'insertions':{},'deletions':{}},_0x22a397=new Map(),_0x3b1f98=new Set([...this['_baseRoots'][_0x4c25('0xf1')](),...this[_0x4c25('0x24')][_0x4c25('0xf1')]()]);_0x3b1f98[_0x4c25('0xe7')](_0x4c25('0x106'));for(const _0xbcb362 of _0x3b1f98){const _0xce24d3=this[_0x4c25('0x24')][_0x4c25('0x4e')](_0xbcb362)||G(_0xbcb362,!0x1),_0x2331a4=this[_0x4c25('0xb8')][_0x4c25('0x4e')](_0xbcb362)||G(_0xbcb362,!0x1);_0xce24d3[_0x4c25('0x33')]()||_0x2331a4[_0x4c25('0x33')]()?(_0x98c92e[_0x4c25('0x5')][_0xbcb362]=q(_0xce24d3),_0x98c92e[_0x4c25('0x26')][_0xbcb362]=q(_0x2331a4),this[_0x4c25('0xa2')](_0x98c92e[_0x4c25('0x26')][_0xbcb362],_0x2331a4),this['_copyMarkers'](_0x98c92e['insertions'][_0xbcb362],_0xce24d3),_0x5cecd0[_0x4c25('0x5')][_0xbcb362]=this[_0x4c25('0x7f')](this['_idsRoots'][_0x4c25('0x4e')](_0xbcb362),[]),_0x5cecd0[_0x4c25('0x26')][_0xbcb362]=this[_0x4c25('0x7f')](this[_0x4c25('0x69')][_0x4c25('0x4e')](_0xbcb362)||G(_0xbcb362,!0x1),[])):_0x3b1f98[_0x4c25('0xe7')](_0xbcb362);}for(const _0x1cfad0 of _0x3b1f98){const _0x3392e0=_0x5cecd0[_0x4c25('0x5')][_0x1cfad0];for(const _0x46d57a of _0x3392e0){const _0x21c2d2=this[_0x4c25('0xe3')](_0x46d57a),_0x2ac5a0=_0x46d57a['item'][_0x4c25('0x93')](_0x21c2d2);_0x4bad39[_0x4c25('0xe7')](_0x2ac5a0),_0x2ac5a0>=this[_0x4c25('0x6')]&&_0x4e513f[_0x4c25('0xc6')](_0x2ac5a0,_0x52b59b['get'](_0x2ac5a0));}}for(const _0x219409 of _0x3b1f98){const _0x3a402e=_0x5cecd0[_0x4c25('0x5')][_0x219409],_0x33982b=this[_0x4c25('0x87')](_0x5cecd0['deletions'][_0x219409]);let _0xeb8d4c=0x0;for(const _0x4606c6 of _0x3a402e){const _0x438396=this['_getVidAttributeName'](_0x4606c6),_0x5d84d3=_0x4606c6[_0x4c25('0x71')][_0x4c25('0x93')](_0x438396);if(!_0x4e513f[_0x4c25('0x4')](_0x5d84d3)&&!_0x22a397[_0x4c25('0x4')](_0x5d84d3)){if(_0x4bad39[_0x4c25('0x4')](_0x5d84d3))_0xeb8d4c++;else{if(_0x5d84d3!=_0x33982b[_0xeb8d4c]){const _0x2fbc30=_0x52b59b['get'](_0x5d84d3)||_0x52b59b[_0x4c25('0x4e')](_0x33982b[_0xeb8d4c]);for(;_0x5d84d3!=_0x33982b[_0xeb8d4c];)_0x4bad39[_0x4c25('0x4')](_0x33982b[_0xeb8d4c])||(_0x22a397['set'](_0x33982b[_0xeb8d4c],_0x2fbc30),_0x52b59b[_0x4c25('0xc6')](_0x33982b[_0xeb8d4c],_0x2fbc30)),_0xeb8d4c++;}_0xeb8d4c++;}}}}for(const _0x1c9379 of _0x3b1f98){const _0x2db8f0=_0x5cecd0[_0x4c25('0x5')][_0x1c9379];for(const _0x4a45fd of _0x2db8f0){const _0x4757d4=this['_getVidAttributeName'](_0x4a45fd),_0x2145ff=_0x4a45fd[_0x4c25('0x71')][_0x4c25('0x93')](_0x4757d4);if(_0x22a397[_0x4c25('0x4')](_0x2145ff)){const _0x121047=_0x22a397[_0x4c25('0x4e')](_0x2145ff);_0x4bad39['has'](_0x2145ff)||_0x4bad39[_0x4c25('0xc6')](_0x2145ff,{..._0x121047}),_0x4e513f[_0x4c25('0xc6')](_0x2145ff,{..._0x121047});}}}for(const _0x583bb7 of _0x4bad39[_0x4c25('0xf1')]())_0x583bb7>=this['_startingRevisionId']&&_0x4bad39['delete'](_0x583bb7);const _0x58ef84=new Map();for(const _0x5d5da6 of _0x3b1f98){let _0x5543ff=_0x5cecd0[_0x4c25('0x5')][_0x5d5da6];for(const _0x53177e of _0x5543ff)if(_0x53177e[_0x4c25('0x71')]['is'](_0x4c25('0x29'),_0x4c25('0xe5'))){const _0x7b3823=this[_0x4c25('0xe3')](_0x53177e),_0x29d478=_0x53177e[_0x4c25('0x71')][_0x4c25('0x93')](_0x7b3823);if(_0x4e513f[_0x4c25('0x4')](_0x29d478)){const _0x179d8d=_0x53177e[_0x4c25('0x71')][_0x4c25('0x5a')]['parent'][_0x4c25('0x93')](_0x4c25('0xc1')),_0x2ab499=_0x58ef84[_0x4c25('0x4e')](_0x179d8d)||new Set();_0x2ab499[_0x4c25('0xd5')](_0x4e513f[_0x4c25('0x4e')](_0x29d478)[_0x4c25('0x11')]),_0x58ef84['set'](_0x179d8d,_0x2ab499);}}_0x5543ff=_0x5cecd0['deletions'][_0x5d5da6];for(const _0x4f2c6f of _0x5543ff)if(_0x4f2c6f['item']['is'](_0x4c25('0x29'),'tableCell')){const _0x46574b=this['_getVidAttributeName'](_0x4f2c6f),_0x4de2e3=_0x4f2c6f[_0x4c25('0x71')][_0x4c25('0x93')](_0x46574b);if(_0x4bad39[_0x4c25('0x4')](_0x4de2e3)){const _0x121653=_0x4f2c6f['item'][_0x4c25('0x5a')][_0x4c25('0x5a')][_0x4c25('0x93')](_0x4c25('0xc1')),_0x20032b=_0x58ef84['get'](_0x121653)||new Set();_0x20032b['add'](_0x4bad39['get'](_0x4de2e3)[_0x4c25('0x11')]),_0x58ef84['set'](_0x121653,_0x20032b);}}for(const _0x2beec4 of _0x58ef84['keys']())(_0x4e513f[_0x4c25('0x4')](_0x2beec4)||_0x4bad39[_0x4c25('0x4')](_0x2beec4))&&_0x58ef84['delete'](_0x2beec4);}for(const _0x54428b of _0x3b1f98){const _0x1975a0=_0x5cecd0[_0x4c25('0x5')][_0x54428b];let _0x5a7aac=null,_0x5a0009=null;for(const _0x1f4fd5 of _0x1975a0){const _0x1ec4b5=this['_getVidAttributeName'](_0x1f4fd5),_0x7c3493=_0x1f4fd5['item'][_0x4c25('0x93')](_0x1ec4b5),_0x378383=_0x58ef84['get'](_0x7c3493);_0x378383&&_0x4c25('0x4c')==_0x1f4fd5['type']&&(_0x5a7aac=Array['from'](_0x378383)[0x0],_0x5a0009=_0x1f4fd5['item'][_0x4c25('0x93')](_0x4c25('0x27'))),_0x5a7aac&&(_0x4bad39['set'](_0x7c3493,{'userId':_0x5a7aac}),_0x4e513f['set'](_0x7c3493,{'userId':_0x5a7aac})),_0x7c3493==_0x5a0009&&(_0x5a7aac=null,_0x5a0009=null);}}const _0x5b2645={},_0x541033=new Set();for(const _0x4ada1e of _0x3b1f98){const _0x2d10d2=_0x98c92e[_0x4c25('0x26')][_0x4ada1e],_0x1f9b8b=_0x98c92e[_0x4c25('0x5')][_0x4ada1e];for(const {userId:_0xab462e}of this[_0x4c25('0x99')][_0x4c25('0xd3')]())null!==_0xab462e&&_0x541033[_0x4c25('0xd5')](_0xab462e);for(const {userId:_0x3f82b1}of this[_0x4c25('0xa9')]['values']())null!==_0x3f82b1&&_0x541033['add'](_0x3f82b1);this[_0x4c25('0x86')](_0x1f9b8b,_0x5cecd0[_0x4c25('0x5')][_0x4ada1e],_0x4e513f,_0x4c25('0x4f'),_0x541033),this['_markChanges'](_0x2d10d2,_0x5cecd0[_0x4c25('0x26')][_0x4ada1e],_0x4bad39,_0x4c25('0x3d'),_0x541033),_0x5b2645[_0x4ada1e]={'insertions':this[_0x4c25('0x94')](_0x1f9b8b),'deletions':this[_0x4c25('0x94')](_0x2d10d2),'attachChange':this[_0x4c25('0xa9')][_0x4c25('0x4e')](_0x4ada1e)||null,'attributesBefore':_0x461a48(this[_0x4c25('0x8c')][_0x4c25('0x4e')](_0x4ada1e))||{},'attributesAfter':_0x461a48(this[_0x4c25('0x14')][_0x4c25('0x4e')](_0x4ada1e))};}return{'diffData':_0x5b2645,'authorsIds':Array[_0x4c25('0x65')](_0x541033)};}[_0x4c25('0xea')](_0x4b282f){for(const [,_0x4763d7]of _0x4b282f[_0x4c25('0x21')]){const _0x130382=_0x4763d7['start'][_0x4c25('0xbc')]()['filter'](_0x2d834b=>_0x4c25('0xe5')==_0x2d834b[_0x4c25('0x5b')]);for(const _0x41ce6e of _0x130382)0x1==_0x41ce6e[_0x4c25('0xa')]&&_0x41ce6e[_0x4c25('0xa8')](0x0)['is'](_0x4c25('0x29'),_0x4c25('0x18'))&&_0x41ce6e['getChild'](0x0)['_setAttribute'](_0x4c25('0x3f'),!0x0);}}[_0x4c25('0x94')](_0x3997a9){this[_0x4c25('0xea')](_0x3997a9);const _0x41f897=this['editor']['data'][_0x4c25('0x4a')](_0x3997a9,{}),_0x23b2a6=Array[_0x4c25('0x65')](_0x41f897['getChildren']())['map'](_0x43b4ff=>this['_getViewJson'](_0x43b4ff));return JSON[_0x4c25('0x1')](_0x23b2a6);}['_getViewJson'](_0x26e1fa){if(_0x26e1fa['is'](_0x4c25('0xc8')))return _0x26e1fa[_0x4c25('0x92')];{const _0x892a2d=_0x26e1fa;return{'type':Object[_0x4c25('0xf1')](B)[_0x4c25('0x17')](_0x461cc2=>_0x26e1fa instanceof B[_0x461cc2]),'name':_0x892a2d['name'],'attributes':Array[_0x4c25('0x65')](_0x892a2d[_0x4c25('0x49')]()),'children':Array[_0x4c25('0x65')](_0x892a2d[_0x4c25('0x108')]())[_0x4c25('0x76')](_0x25f388=>this[_0x4c25('0x3c')](_0x25f388))};}}[_0x4c25('0x86')](_0x30e69d,_0x5709f9,_0x40c08c,_0x51ea74,_0x5f505e){let _0x44a2e1=null,_0x54bc8c=null,_0x4871cc=0x0;const _0x538095=this['editor'][_0x4c25('0xbf')];for(let _0x4e7c4c=0x0;_0x4e7c4c<_0x5709f9['length'];_0x4e7c4c++){const _0x2e3a55=this[_0x4c25('0xe3')](_0x5709f9[_0x4e7c4c]),_0x1b2331=_0x5709f9[_0x4e7c4c][_0x4c25('0x71')][_0x4c25('0x93')](_0x2e3a55),_0x161363=_0x40c08c['get'](_0x1b2331),_0x5b70c0=_0x4e7c4c==_0x5709f9[_0x4c25('0xee')]-0x1;(!_0x44a2e1&&_0x161363&&(_0x44a2e1=_0x161363,_0x54bc8c=_0x5709f9[_0x4e7c4c]),_0x44a2e1&&(!_0x161363||_0x161363[_0x4c25('0x11')]!=_0x44a2e1[_0x4c25('0x11')]))&&(_0x131c1f(_0x161363,L(_0x54bc8c,_0x30e69d,_0x538095),L(_0x5709f9[_0x4e7c4c],_0x30e69d,_0x538095)),_0x44a2e1=_0x161363||null,_0x54bc8c=_0x161363?_0x5709f9[_0x4e7c4c]:null),_0x44a2e1&&_0x5b70c0&&_0x131c1f(_0x161363,L(_0x54bc8c,_0x30e69d,_0x538095),W(_0x5709f9[_0x4e7c4c],_0x30e69d,_0x538095));}function _0x131c1f(_0x4db321,_0x2de2d1,_0x21f93d){const _0x478fac=_0x44a2e1[_0x4c25('0x11')],_0x2055a9='revision:'+_0x51ea74+':'+_0x478fac+':'+_0x4871cc++,_0x460225=_0x538095[_0x4c25('0x10a')](_0x2de2d1,_0x21f93d);_0x30e69d[_0x4c25('0x21')][_0x4c25('0xc6')](_0x2055a9,_0x460225),null!==_0x478fac&&_0x5f505e[_0x4c25('0xd5')](_0x478fac);}}[_0x4c25('0xe3')](_0x2a4466){switch(_0x2a4466[_0x4c25('0xc7')]){case _0x4c25('0x4c'):return _0x4c25('0xc1');case'elementEnd':return'vid_end';default:return _0x4c25('0x8a');}}[_0x4c25('0x90')](_0x524289,_0x88b2b2){_0x524289['baseVersion']=null;for(const _0x37c2b2 in _0x524289){const _0x58303e=_0x524289[_0x37c2b2];if(_0x58303e instanceof _0x6ee2fe){const _0x2e8efe=_0x88b2b2[_0x4c25('0x4e')](_0x58303e[_0x4c25('0xa7')][_0x4c25('0xa6')]);_0x524289[_0x37c2b2]=this[_0x4c25('0x3b')](_0x58303e,_0x2e8efe);}if(_0x58303e instanceof _0xd70dd2){const _0x418308=_0x88b2b2[_0x4c25('0x4e')](_0x58303e[_0x4c25('0xa7')][_0x4c25('0xa6')]);_0x524289[_0x37c2b2]=this[_0x4c25('0x2e')](_0x58303e,_0x418308);}_0x4c25('0xa7')===_0x37c2b2&&(_0x524289['root']=_0x88b2b2[_0x4c25('0x4e')](_0x524289[_0x4c25('0xa7')][_0x4c25('0xa6')]));}}['_fixRange'](_0x32af6c,_0x426b3e){return this[_0x4c25('0xf6')][_0x4c25('0xbf')][_0x4c25('0x10a')](this[_0x4c25('0x3b')](_0x32af6c[_0x4c25('0xf3')],_0x426b3e),this[_0x4c25('0x3b')](_0x32af6c[_0x4c25('0xad')],_0x426b3e));}[_0x4c25('0x3b')](_0x50a745,_0x141156){return this[_0x4c25('0xf6')][_0x4c25('0xbf')]['createPositionFromPath'](_0x141156,_0x50a745[_0x4c25('0x39')],_0x50a745['stickiness']);}[_0x4c25('0x3e')](_0x487962){const _0xb93d8=this[_0x4c25('0x7e')][_0x4c25('0x4e')](_0x487962[_0x4c25('0xb0')]['root']['rootName']),_0x5d4edc=this[_0x4c25('0x3b')](_0x487962[_0x4c25('0xb0')],_0xb93d8),_0x785972=null===_0x487962[_0x4c25('0x58')]?null:_0x487962[_0x4c25('0x58')]||this[_0x4c25('0xf6')]['plugins'][_0x4c25('0x4e')](_0x4c25('0x105'))['me']['id'],_0x4ba9c2=_0x5d4edc[_0x4c25('0x5a')],_0x248f21=this[_0x4c25('0x9b')],_0x342695=[];for(const _0x5731b8 of _0x487962['nodes'])if(_0x5731b8['is'](_0x4c25('0x29')))_0x342695[_0x4c25('0xd8')](this[_0x4c25('0x2f')](_0x5731b8));else for(let _0x530884=0x0;_0x530884<_0x5731b8[_0x4c25('0xac')];_0x530884++)_0x342695[_0x4c25('0xd8')](new _0x41c059(_0x4c25('0xc8'),{'vid':this['_revisionId']++}));const _0xa84638=this['_revisionId'];for(let _0x1a7bc6=_0x248f21;_0x1a7bc6<_0xa84638;_0x1a7bc6++)this[_0x4c25('0xa1')][_0x4c25('0xc6')](_0x1a7bc6,{'userId':_0x785972});_0x4ba9c2[_0x4c25('0x10')](_0x5d4edc['offset'],_0x342695);}[_0x4c25('0x88')](_0x2cf576){(_0x2cf576=this[_0x4c25('0x73')](_0x2cf576,this[_0x4c25('0x7e')]))['_execute']();const _0x388cdc=null===_0x2cf576[_0x4c25('0x58')]?null:_0x2cf576[_0x4c25('0x58')]||this[_0x4c25('0xf6')]['plugins']['get'](_0x4c25('0x105'))['me']['id'],_0x3d35a1=_0x2cf576[_0x4c25('0x77')](),_0x32761c=_0x3d35a1['parent'],_0x34df02=_0x3d35a1[_0x4c25('0x104')];!function _0x552fa2(_0x4bf36c,_0x5b9ee8,_0x536311,_0x599f34){for(let _0xd665c3=_0x536311;_0xd665c3<_0x599f34;_0xd665c3++){const _0x5292dc=_0x5b9ee8[_0x4c25('0xa8')](_0xd665c3);_0x5292dc['is'](_0x4c25('0x29'),_0x4c25('0xc8'))?_0x4bf36c[_0x4c25('0xc6')](_0x5292dc[_0x4c25('0x93')](_0x4c25('0x8a')),{'userId':_0x388cdc}):(_0x4bf36c[_0x4c25('0xc6')](_0x5292dc[_0x4c25('0x93')](_0x4c25('0xc1')),{'userId':_0x388cdc}),_0x552fa2(_0x4bf36c,_0x5292dc,0x0,_0x5292dc[_0x4c25('0xa')]),_0x4bf36c['set'](_0x5292dc[_0x4c25('0x93')]('vid_end'),{'userId':_0x388cdc}));}}(this[_0x4c25('0xa1')],_0x32761c,_0x34df02,_0x34df02+_0x2cf576[_0x4c25('0x53')]);}[_0x4c25('0x31')](_0x32f100){const _0x1f9587=null===(_0x32f100=this[_0x4c25('0x73')](_0x32f100,this[_0x4c25('0x7e')]))['_authorId']?null:_0x32f100[_0x4c25('0x58')]||this['editor'][_0x4c25('0x95')]['get']('Users')['me']['id'],_0x26fc6b=_0x32f100[_0x4c25('0x9')][_0x4c25('0x5a')],_0xc08eb6=_0x32f100[_0x4c25('0xb9')][_0x4c25('0x5a')],_0x1db2b2=_0x26fc6b[_0x4c25('0x93')]('vid_end'),_0x5bb874=_0xc08eb6[_0x4c25('0x93')]('vid_start');_0x26fc6b[_0x4c25('0xb')](_0x4c25('0x27'),_0xc08eb6['getAttribute'](_0x4c25('0x27'))),_0xc08eb6['_setAttribute'](_0x4c25('0x27'),_0x1db2b2),this[_0x4c25('0xa1')][_0x4c25('0xc6')](_0x5bb874,{'userId':_0x1f9587}),this[_0x4c25('0xa1')]['set'](_0x1db2b2,{'userId':_0x1f9587}),_0x32f100[_0x4c25('0xf2')]();}[_0x4c25('0xf')](_0x32317f){const _0x9dd9c6=null===(_0x32317f=this['_cloneOperation'](_0x32317f,this[_0x4c25('0x7e')]))[_0x4c25('0x58')]?null:_0x32317f[_0x4c25('0x58')]||this['editor']['plugins'][_0x4c25('0x4e')](_0x4c25('0x105'))['me']['id'],_0x3b9d1b=_0x32317f[_0x4c25('0xb5')],_0x54d7f3=_0x32317f[_0x4c25('0x48')][_0x4c25('0x5a')];_0x32317f[_0x4c25('0xf2')]();const _0x130db=_0x54d7f3[_0x4c25('0x93')]('vid_end'),_0x300361=_0x32317f['insertionPosition'][_0x4c25('0x2d')];if(_0x3b9d1b){const _0x474f88=_0x300361[_0x4c25('0x93')](_0x4c25('0x27')),_0x4cc494=_0x54d7f3[_0x4c25('0x93')](_0x4c25('0x27'));_0x54d7f3[_0x4c25('0xb')](_0x4c25('0x27'),_0x474f88),_0x300361[_0x4c25('0xb')](_0x4c25('0x27'),_0x4cc494),this[_0x4c25('0xa1')]['set'](_0x54d7f3[_0x4c25('0x93')]('vid_end'),{'userId':_0x9dd9c6}),this[_0x4c25('0xa1')][_0x4c25('0xc6')](_0x300361[_0x4c25('0x93')]('vid_start'),{'userId':_0x9dd9c6});}else{const _0xd83341=this['_revisionId']++,_0x3aed6f=this[_0x4c25('0x9b')]++;_0x54d7f3[_0x4c25('0xb')](_0x4c25('0x27'),_0xd83341),_0x300361[_0x4c25('0xb')](_0x4c25('0xc1'),_0x3aed6f),_0x300361[_0x4c25('0xb')](_0x4c25('0x27'),_0x130db),this[_0x4c25('0xa1')]['set'](_0xd83341,{'userId':_0x9dd9c6}),this['_touched']['set'](_0x3aed6f,{'userId':_0x9dd9c6});}}[_0x4c25('0xa4')](_0x1372ea){if(!_0x1372ea['affectsData'])return;const _0x5ccaba=(_0x1372ea=this[_0x4c25('0x73')](_0x1372ea,this['_diffRoots']))['oldRange']?_0x1372ea[_0x4c25('0xc')][_0x4c25('0xa7')]:null,_0x507458=_0x1372ea[_0x4c25('0x44')]?_0x1372ea['newRange'][_0x4c25('0xa7')]:null;_0x5ccaba&&this['_markers'][_0x4c25('0xe7')](_0x1372ea[_0x4c25('0x5b')]),_0x507458&&this[_0x4c25('0xda')][_0x4c25('0xc6')](_0x1372ea[_0x4c25('0x5b')],_0x1372ea[_0x4c25('0x44')][_0x4c25('0x25')]());const _0x10cdbe=null===_0x1372ea['_authorId']?null:_0x1372ea[_0x4c25('0x58')]||this['editor'][_0x4c25('0x95')]['get'](_0x4c25('0x105'))['me']['id'],_0x5e2fdb=_0x1372ea['name'];if(!this['_touchedMarkers'][_0x4c25('0x4')](_0x5e2fdb))return void this[_0x4c25('0x99')][_0x4c25('0xc6')](_0x5e2fdb,{'range':_0x1372ea[_0x4c25('0xc')],'userId':_0x10cdbe});const _0x42012a=this['_touchedMarkers'][_0x4c25('0x4e')](_0x5e2fdb),_0x3d3229=_0x42012a[_0x4c25('0x46')],_0xfc76a0=_0x1372ea['newRange'];null==_0x3d3229&&null==_0xfc76a0||_0x3d3229&&_0xfc76a0&&_0x3d3229[_0x4c25('0x56')](_0xfc76a0)?this[_0x4c25('0x99')][_0x4c25('0xe7')](_0x1372ea[_0x4c25('0x5b')]):_0x42012a['userId']=_0x10cdbe;}[_0x4c25('0x5d')](_0x12fe94,_0x14d908){this['_diffRoots'][_0x4c25('0x4')](_0x12fe94[_0x4c25('0xa6')])?this['_diffRoots'][_0x4c25('0x4e')](_0x12fe94[_0x4c25('0xa6')])[_0x4c25('0xed')]=_0x12fe94['isAdd']:(this[_0x4c25('0x24')][_0x4c25('0xc6')](_0x12fe94[_0x4c25('0xa6')],G(_0x12fe94[_0x4c25('0xa6')],!0x0)),this[_0x4c25('0x14')][_0x4c25('0xc6')](_0x12fe94['rootName'],{}),_0x14d908&&this[_0x4c25('0x7e')]['set'](_0x12fe94['rootName'],G(_0x12fe94[_0x4c25('0xa6')],!0x0)));const _0x221f10=null===_0x12fe94['_authorId']?null:_0x12fe94[_0x4c25('0x58')]||this[_0x4c25('0xf6')][_0x4c25('0x95')]['get']('Users')['me']['id'],_0x14b9aa=this['_touchedRoots'][_0x4c25('0x4e')](_0x12fe94[_0x4c25('0xa6')]);_0x14b9aa&&_0x14b9aa[_0x4c25('0x11')]===_0x221f10?this[_0x4c25('0xa9')][_0x4c25('0xe7')](_0x12fe94['rootName']):this[_0x4c25('0xa9')]['set'](_0x12fe94[_0x4c25('0xa6')],{'userId':_0x221f10,'isAttached':_0x12fe94[_0x4c25('0x5c')]});}[_0x4c25('0x85')](_0x21ec01){const _0x4ae8d6=this[_0x4c25('0x14')][_0x4c25('0x4e')](_0x21ec01[_0x4c25('0xa7')][_0x4c25('0xa6')]);null===_0x21ec01[_0x4c25('0x1a')]?delete _0x4ae8d6[_0x21ec01[_0x4c25('0x34')]]:_0x4ae8d6[_0x21ec01[_0x4c25('0x34')]]=_0x21ec01[_0x4c25('0x1a')];}}function q(_0x84667){const _0x1d64cf=G(_0x84667[_0x4c25('0xa6')],_0x84667[_0x4c25('0x33')]());for(const _0x56f000 of _0x84667['getChildren']()){const _0x146233=_0x56f000[_0x4c25('0xb4')](!0x0);_0x1d64cf[_0x4c25('0x32')](_0x146233);}return _0x1d64cf;}function G(_0x44e237,_0x4aa3c9=!0x0){const _0x44ce81=new _0x2f2bb2();return _0x44ce81[_0x4c25('0xa6')]=_0x44e237,_0x44ce81['_isAttached']=_0x4aa3c9,_0x44ce81[_0x4c25('0x33')]=()=>_0x44ce81['_isAttached'],_0x44ce81;}function L(_0x187055,_0x4d756d,_0x1444b2){const _0x7ec3a=_0x4c25('0xd4')==_0x187055[_0x4c25('0xc7')]?_0x1444b2[_0x4c25('0x70')](_0x187055[_0x4c25('0x71')],_0x4c25('0xad')):_0x1444b2['createPositionBefore'](_0x187055[_0x4c25('0x71')]);return _0x1444b2[_0x4c25('0x78')](_0x4d756d,_0x7ec3a['path'],_0x7ec3a[_0x4c25('0xbd')]);}function W(_0x5194bf,_0x4da930,_0x2186c2){const _0x1ff444=_0x4c25('0x4c')==_0x5194bf[_0x4c25('0xc7')]?_0x2186c2[_0x4c25('0x70')](_0x5194bf[_0x4c25('0x71')],0x0):_0x2186c2[_0x4c25('0x15')](_0x5194bf[_0x4c25('0x71')]);return _0x2186c2[_0x4c25('0x78')](_0x4da930,_0x1ff444['path'],_0x1ff444[_0x4c25('0xbd')]);}
|
|
23
|
+
const _0x1049=['marked','_pendingAction','vid','getWalker','_applyOperations','document','_lastTo','collaboration.channelId','_createInitialRevision','insert','children','fromEntries','markerToData','toVersion','plugins','_handleMoveOperation','addRevisionData','ready','isReady','baseVersion','_getPreviousFrom','_isInit','diffData','stringify','_copyMarkers','attributesBefore','affectsData','revisionHistory.resumeUnsavedRevision','reverse','_startingVersion','initialData','marker','clear','_replaceEditorDataWithRevisionData','_isAttached','type','newRange','howMany','_revisionDataBuilder','path','_getVidAttributeName','_createCurrentRevision','offset','shift','delete','get','_makeModelFromViewString','previousPosition','has','createRevision','_update','editing','keepParagraph','_loadedStateData','getAttributes','name','_initialRevisionId','upcast','startsWith','attributesAfter','_makeIdsRoot','split','move','stickiness','includes','_diffRootsAttributes','find','_handleRootOperation','locale','_setAttribute','currentRevision','revision-end','pluginName','_getState','newValue','root','authorsIds','_appendChild','item','_source','_baseIdsRoots','view','sourcePosition','reinsert','resolve','offsetSize','position','parent','Empty\x20document','push','getChild','isAttached','documentFragment','sendBufferedUpdates','size','_diffRoots','_touchedMarkers','map','_reset','vid_start','insertionPosition','deletions','Users','PendingActions','getNodeByPath','_calculateMetaData','_clone','init','$graveyard','_getBaseVids','_removePendingAction','getOperation','getRange','attachChange','conversion','_baseRootsAttributes','add','toData','getRevisions','createPositionBefore','_loadRevisionData','_findInsertionIndex','keys','update','adapter','length','remove','nodes','_startingRevisionId','_handleInsertOperation','getCurrentRevisionId','getAttribute','_continueCurrentRevision','nodeAfter','vid_end','createPositionAt','revision-start','creatorId','createPositionAfter','_makeRevision','set','_markers','revision','_bufferUpdate','_handleMarkerOperation','isAdd','fromVersion','userId','_savedMetaData','reInit','roots','_saveMetaData','processor','_loadState','rootsAttributes','config','getRoot','history','_execute','_lastFrom','createdAt','_bufferedUpdates','PENDING_ACTION_REVISION_HISTORY','_removeRevisionMarkers','getRootNames','_touched','initial','_cloneOperation','start','loadState','buildRevisionData','createPositionFromPath','_prepareViewToSave','creator','_setConversion','end','attributes','addRoot','merge','setRevisionData','repository','revision:','_handleSplitOperation','getRevisionRootsAttributes','addRootAttribute','_fixPosition','string','_revisionId','_handleMergeOperation','_getFromVersion','$text','_markChanges','deletion','for','bind','_transformMarkers','getData','_getViewJson','graveyardPosition','_authorId','rootName','data','values','createRange','key','_idsRoots','paragraph','clone','addRevision','RevisionsRepository','some','_processRootBeforeSave','_insertChild','dataToMarker','hasContent','editor','oldRange','_generateTape','useFillerType','getLatestVersion','authors','_isPendingUpdate','insertions','slice','updateRevisions','forEach','elementStart','filter','element','tableCell','_handleOperation','getUser','_touchedRoots','markers','insertion','_addPendingAction','from','source','parse','removeRootAttribute','detachRoot','getRevisionDocumentData','getChildren','version','then','_baseRoots','getRevision','_handleRootAttributeOperation','max','toModel','_fixRange','RealTimeCollaborationClient','model','NEGATIVE_INFINITY','elementEnd','createRangeIn'];(function(_0x5e7034,_0x1049f8){const _0x28a2ca=function(_0x2e8506){while(--_0x2e8506){_0x5e7034['push'](_0x5e7034['shift']());}};_0x28a2ca(++_0x1049f8);}(_0x1049,0x1f1));const _0x28a2=function(_0x5e7034,_0x1049f8){_0x5e7034=_0x5e7034-0x0;let _0x28a2ca=_0x1049[_0x5e7034];return _0x28a2ca;};import{Users as _0x525a76}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x210168,PendingActions as _0x309a48}from'ckeditor5/src/core';import{logWarning as _0x183192,uid as _0x418475}from'ckeditor5/src/utils';import{Position as _0x31e047,Range as _0x51c84c,Element as _0x2b9992,DocumentFragment as _0x262073,ViewText as _0x175c36,ViewElement as _0x5777b2,ViewContainerElement as _0x3a74ed,ViewAttributeElement as _0x594d20,ViewEmptyElement as _0xbac4c,ViewRawElement as _0x13afa5,ViewUIElement as _0x33fb6e,ViewDocumentFragment as _0x2ed0a2}from'ckeditor5/src/engine';import _0x37c2bd from'./revisionsrepository';import{getTranslation as _0x1eaa92}from'./utils/common-translations';import{cloneDeep as _0x29ed97,isEqual as _0x1b3a03}from'lodash-es';const B={'c':_0x3a74ed,'a':_0x594d20,'e':_0xbac4c,'r':_0x13afa5,'u':_0x33fb6e};export default class l extends _0x210168{static get[_0x28a2('0x57')](){return'RevisionTracker';}static get['requires'](){return[_0x525a76,_0x37c2bd,_0x309a48];}constructor(_0x9281fb){super(_0x9281fb),this[_0x28a2('0x8b')]=null,this[_0x28a2('0x55')]=null,this[_0x28a2('0x35')]=new H(this[_0x28a2('0xe6')]),this['_initialRevisionId']=this[_0x28a2('0xe6')]['config'][_0x28a2('0x3c')]('collaboration.channelId')||_0x28a2('0xb5'),this['_bufferedUpdates']=new Map(),this[_0x28a2('0x44')]=null;const _0x124027=_0x418475();this[_0x28a2('0x5e')]={'history':this[_0x28a2('0xe6')]['model'][_0x28a2('0x14')][_0x28a2('0xac')],'getLatestVersion':()=>Promise[_0x28a2('0x63')](this['editor'][_0x28a2('0xb')][_0x28a2('0x14')][_0x28a2('0x2')]),'getCurrentRevisionId':()=>_0x124027},this[_0x28a2('0x9b')]('isReady',!0x1),this['set']('isEnabled',!0x0),this['set'](_0x28a2('0xec'),!0x1),this[_0x28a2('0xe6')]['config']['define'](_0x28a2('0x2a'),!0x0),this[_0x28a2('0xe6')][_0x28a2('0x81')][_0x28a2('0xd0')](_0x28a2('0x48'))[_0x28a2('0xe4')]({'view':_0x28a2('0x9d')});}[_0x28a2('0x7a')](){this[_0x28a2('0xc3')]=this[_0x28a2('0xe6')][_0x28a2('0x1d')][_0x28a2('0x3c')](_0x28a2('0xe0')),this['_setConversion'](),this[_0x28a2('0xe6')][_0x28a2('0xd8')]['on'](_0x28a2('0x20'),()=>{const _0x177746=this[_0x28a2('0xc3')][_0x28a2('0x5')](0x0),_0x4454d2=_0x177746&&null===_0x177746[_0x28a2('0xbc')]?_0x177746:null;if(this[_0x28a2('0x93')]=!!_0x4454d2&&this[_0x28a2('0xe6')]['config'][_0x28a2('0x3c')](_0x28a2('0x2a')),this[_0x28a2('0xe6')][_0x28a2('0x1d')]['has'](_0x28a2('0xa'))){const _0x9b917e=this[_0x28a2('0x5e')][_0x28a2('0x91')](),_0x2d748c=this[_0x28a2('0xc3')]['getRevision'](_0x9b917e);if(_0x2d748c)this[_0x28a2('0x2c')]=_0x2d748c[_0x28a2('0xa1')],this[_0x28a2('0x93')]=!0x1;else{const _0x2ee004=this['_source'][_0x28a2('0xac')]['_operations'][_0x28a2('0x51')](_0x41838a=>!_0x41838a[_0x28a2('0x24')]),_0x12e05f=_0x2ee004?_0x2ee004[_0x28a2('0x22')]:this[_0x28a2('0x5e')][_0x28a2('0xac')][_0x28a2('0x2')];_0x177746?(_0x177746[_0x28a2('0x1c')]<_0x12e05f&&_0x177746[_0x28a2('0x41')]({'toVersion':_0x12e05f}),this[_0x28a2('0x93')]?(this[_0x28a2('0x5e')]['getCurrentRevisionId']=()=>_0x4454d2['id'],this[_0x28a2('0x2c')]=_0x4454d2[_0x28a2('0xa1')]):(this[_0x28a2('0x2c')]=_0x177746[_0x28a2('0x1c')],this[_0x28a2('0x93')]=!0x1)):(this[_0x28a2('0x2c')]=_0x12e05f,this[_0x28a2('0x93')]=!0x1);}}else _0x4454d2&&(this[_0x28a2('0xe6')][_0x28a2('0xb')][_0x28a2('0x14')][_0x28a2('0xac')][_0x28a2('0x2')]=Math[_0x28a2('0x7')](_0x4454d2['toVersion'],this['editor'][_0x28a2('0xb')][_0x28a2('0x14')][_0x28a2('0xac')][_0x28a2('0x2')]),_0x4454d2[_0x28a2('0xa1')]===_0x4454d2[_0x28a2('0x1c')]?(0x0!==_0x4454d2[_0x28a2('0xa1')]&&(this[_0x28a2('0x5e')][_0x28a2('0x91')]=()=>_0x4454d2['id']),this[_0x28a2('0x93')]=!0x1):this['_continueCurrentRevision']&&(this[_0x28a2('0x5e')][_0x28a2('0x91')]=()=>_0x4454d2['id'],this[_0x28a2('0x2c')]=_0x4454d2[_0x28a2('0xa1')])),this['_continueCurrentRevision']||(this[_0x28a2('0x2c')]=this[_0x28a2('0xe6')][_0x28a2('0xb')][_0x28a2('0x14')]['version']);this[_0x28a2('0x35')]['init'](this[_0x28a2('0x5e')]['history']),this[_0x28a2('0x17')](this[_0x28a2('0x2c')]),this[_0x28a2('0x38')](this[_0x28a2('0x2c')]),this[_0x28a2('0x8b')]&&this['sendBufferedUpdates']();}),this[_0x28a2('0xd1')](_0x28a2('0x21'))['to'](this,_0x28a2('0xec'),_0x3f8f2a=>!_0x3f8f2a);}async['afterInit'](){if(this[_0x28a2('0xc3')][_0x28a2('0x8c')]>0x0){const _0x51a518=this[_0x28a2('0xc3')]['getRevision'](0x0),_0x565860=await this[_0x28a2('0x0')](_0x51a518),_0x4b09aa=await this[_0x28a2('0xc6')](_0x51a518);this['_replaceEditorDataWithRevisionData'](_0x565860,_0x4b09aa);}}['setSource'](_0xd50ef2){this[_0x28a2('0x5e')]=_0xd50ef2;}async[_0x28a2('0x8a')](){const _0x1126d2=await this['_source'][_0x28a2('0xea')]();if(_0x1126d2>this[_0x28a2('0x55')][_0x28a2('0x1c')]){await this[_0x28a2('0xa8')]();const _0x520d32=this[_0x28a2('0xb9')]({'revision':this[_0x28a2('0x55')],'to':_0x1126d2});_0x520d32['authors']=_0x520d32['authorsIds'][_0x28a2('0x70')](_0x2165ab=>this[_0x28a2('0xe6')][_0x28a2('0x1d')][_0x28a2('0x3c')](_0x28a2('0x75'))['getUser'](_0x2165ab)),this[_0x28a2('0x55')]['_update'](_0x520d32);}}async['_loadState'](){this['_continueCurrentRevision']&&!this[_0x28a2('0x44')]&&(await this[_0x28a2('0x87')](this['currentRevision']),this[_0x28a2('0x35')][_0x28a2('0xb8')](this[_0x28a2('0x55')]),this[_0x28a2('0x44')]={'fromVersion':this[_0x28a2('0x55')][_0x28a2('0xa1')],'authors':this[_0x28a2('0x55')][_0x28a2('0xeb')][_0x28a2('0xee')]()});}async['saveRevision'](_0x3afc8d={},_0x5b252e=null){const _0x36b757=[];await this['_loadState'](),this[_0x28a2('0x93')]=!0x1,_0x5b252e>this[_0x28a2('0x55')][_0x28a2('0x1c')]&&(_0x5b252e=null),null===_0x5b252e&&(_0x5b252e=await this[_0x28a2('0x5e')][_0x28a2('0xea')]());const _0x337d67=this[_0x28a2('0xcc')](_0x5b252e),_0x5b7302=this[_0x28a2('0xb9')]({'from':_0x337d67,'to':_0x5b252e});if(this[_0x28a2('0x55')]['toVersion']<_0x5b252e){const _0x241e7a=this['buildRevisionData']({'revision':this[_0x28a2('0x55')],'from':_0x5b252e,'to':_0x5b252e});_0x241e7a[_0x28a2('0xeb')]=[],_0x241e7a[_0x28a2('0x5b')]=[],_0x241e7a['id']=this[_0x28a2('0x55')]['id'],this[_0x28a2('0x55')][_0x28a2('0x41')](_0x241e7a,!0x0),delete _0x241e7a[_0x28a2('0xeb')],_0x36b757['push'](_0x241e7a);}_0x3afc8d[_0x28a2('0x98')]=this[_0x28a2('0xe6')][_0x28a2('0x1d')][_0x28a2('0x3c')](_0x28a2('0x75'))['me']['id'],_0x3afc8d[_0x28a2('0x46')]=_0x3afc8d[_0x28a2('0x46')]||null,_0x3afc8d['id']=_0x3afc8d['id']||_0x418475(),_0x3afc8d={..._0x3afc8d,..._0x5b7302};const _0x2026c9=this['addRevisionData'](_0x3afc8d);_0x36b757[_0x28a2('0x68')](_0x3afc8d);const _0x48fe6d=this[_0x28a2('0xc3')]['getIndex'](_0x2026c9);if(0x0!==_0x48fe6d){const _0x3af6ac=this[_0x28a2('0xc3')][_0x28a2('0x5')](_0x48fe6d-0x1);if(_0x3af6ac[_0x28a2('0xa1')]!==_0x5b252e){const _0x2b6252=this[_0x28a2('0x35')][_0x28a2('0xd3')](_0x5b252e,_0x3af6ac['toVersion']),_0x1289d0={'id':_0x3af6ac['id'],'diffData':_0x2b6252[_0x28a2('0x25')],'authorsIds':_0x2b6252[_0x28a2('0x5b')],'authors':_0x2b6252['authorsIds'][_0x28a2('0x70')](_0x220013=>this[_0x28a2('0xe6')][_0x28a2('0x1d')][_0x28a2('0x3c')]('Users')[_0x28a2('0xf6')](_0x220013)),'fromVersion':_0x5b252e};_0x3af6ac===this['currentRevision']&&(_0x1289d0[_0x28a2('0xaf')]=new Date(_0x3afc8d[_0x28a2('0xaf')]['getTime']()+0xa)),_0x3af6ac[_0x28a2('0x41')](_0x1289d0,!0x0),delete _0x1289d0[_0x28a2('0xeb')],_0x36b757[_0x28a2('0x68')](_0x1289d0);}}if(this[_0x28a2('0x8b')]){for(const _0x5c7ae8 of _0x36b757)this[_0x28a2('0x9e')](_0x5c7ae8['id'],_0x5c7ae8,!0x0);this['sendBufferedUpdates']();}return _0x2026c9;}['addRevisionData'](_0x4f96ed){const _0x3a7965=this[_0x28a2('0xc3')][_0x28a2('0x40')](_0x4f96ed);return this[_0x28a2('0x8b')]&&_0x3a7965['on']('_update',(_0x4a72c7,_0x2d28ce,_0x3da2ae)=>{_0x3da2ae||(this[_0x28a2('0x9e')](_0x2d28ce['id'],_0x2d28ce,!0x0),this[_0x28a2('0x6c')]());}),this[_0x28a2('0xc3')][_0x28a2('0xdf')](_0x3a7965,this[_0x28a2('0x88')](_0x3a7965)),_0x3a7965;}async[_0x28a2('0x0')](_0x473dc9){await this[_0x28a2('0x87')](_0x473dc9);const _0x4633e8={};for(const _0xe3f20 in _0x473dc9['diffData']){if(_0x473dc9['diffData'][_0xe3f20]['attachChange']&&!_0x473dc9[_0x28a2('0x25')][_0xe3f20]['attachChange'][_0x28a2('0x6a')])continue;const _0x8b2e9e=this[_0x28a2('0xb2')](JSON[_0x28a2('0xfd')](_0x473dc9[_0x28a2('0x25')][_0xe3f20][_0x28a2('0xed')])),_0xccb18b=this[_0x28a2('0xe6')][_0x28a2('0x42')]['view'][_0x28a2('0x14')],_0xf2bb8=new _0x2ed0a2(_0xccb18b,_0x8b2e9e[_0x28a2('0x70')](_0x1443a8=>J(_0x1443a8,this['editor'])));this['editor']['data'][_0x28a2('0xa7')]['useFillerType'](_0x28a2('0xf')),_0x4633e8[_0xe3f20]=this[_0x28a2('0xe6')]['data'][_0x28a2('0xa7')][_0x28a2('0x84')](_0xf2bb8),this[_0x28a2('0xe6')]['data'][_0x28a2('0xa7')][_0x28a2('0xe9')]('default');}return _0x4633e8;}async[_0x28a2('0xc6')](_0x4d64db){await this['_loadRevisionData'](_0x4d64db);const _0x40f6c5={};for(const _0x2b73e0 in _0x4d64db[_0x28a2('0x25')])_0x4d64db['diffData'][_0x2b73e0][_0x28a2('0x80')]&&!_0x4d64db[_0x28a2('0x25')][_0x2b73e0][_0x28a2('0x80')][_0x28a2('0x6a')]||(_0x40f6c5[_0x2b73e0]=_0x4d64db[_0x28a2('0x25')][_0x2b73e0][_0x28a2('0x4a')]||{});return _0x40f6c5;}[_0x28a2('0x6c')](){if(0x0===this[_0x28a2('0xb0')][_0x28a2('0x6d')])return;if(this[_0x28a2('0xec')])return;let _0x42b633=Array[_0x28a2('0xfb')](this['_bufferedUpdates']['values']());this[_0x28a2('0xb0')][_0x28a2('0x2f')]();for(let _0x450a03=0x0;_0x450a03<_0x42b633['length'];_0x450a03++){const _0x278e9f=_0x42b633[_0x450a03];let _0x43ef0c=!0x1;for(const _0x221d22 of Object[_0x28a2('0x89')](_0x278e9f))void 0x0===_0x278e9f[_0x221d22]?delete _0x278e9f[_0x221d22]:'id'!==_0x221d22&&(_0x43ef0c=!0x0);_0x43ef0c||(_0x42b633[_0x450a03]=null);}if(_0x42b633=_0x42b633[_0x28a2('0xf2')](_0x3f9c3d=>null!==_0x3f9c3d),!_0x42b633[_0x28a2('0x8c')])return;for(let _0x4754ad=0x0;_0x4754ad<_0x42b633[_0x28a2('0x8c')];_0x4754ad++){const _0xa9f776=_0x42b633[_0x4754ad];void 0x0!==_0xa9f776[_0x28a2('0xa1')]&&void 0x0===_0xa9f776[_0x28a2('0x1c')]&&(_0xa9f776['toVersion']=this[_0x28a2('0xc3')][_0x28a2('0x5')](_0xa9f776['id'])['toVersion']),void 0x0!==_0xa9f776[_0x28a2('0x1c')]&&void 0x0===_0xa9f776[_0x28a2('0xa1')]&&(_0xa9f776['fromVersion']=this[_0x28a2('0xc3')][_0x28a2('0x5')](_0xa9f776['id'])[_0x28a2('0xa1')]);}const _0x1f80e9=this[_0x28a2('0xe6')][_0x28a2('0xaa')][_0x28a2('0x3c')](_0x28a2('0x16'));this[_0x28a2('0xec')]=!0x0,this[_0x28a2('0xfa')](),this[_0x28a2('0x8b')][_0x28a2('0xef')](_0x42b633,_0x1f80e9)['finally'](()=>{this[_0x28a2('0xec')]=!0x1;})[_0x28a2('0x3')](_0x106fb4=>{if(_0x106fb4)for(const _0x2572ff of _0x106fb4)this[_0x28a2('0xc2')]({'id':_0x2572ff['id'],'createdAt':_0x2572ff[_0x28a2('0xaf')]});this[_0x28a2('0x7d')](),this['sendBufferedUpdates']();});}[_0x28a2('0x30')](_0x4d4030,_0x5c225b){let _0x36d4af=this['editor'][_0x28a2('0xaa')][_0x28a2('0x3c')](_0x28a2('0x2d')),_0x205422=this[_0x28a2('0xe6')]['config'][_0x28a2('0x3c')](_0x28a2('0xa9'));if(void 0x0===_0x36d4af){_0x36d4af={};for(const _0x27574b of this['editor']['model'][_0x28a2('0x14')][_0x28a2('0xb3')]())_0x36d4af[_0x27574b]='';}if(_0x28a2('0xc9')==typeof _0x36d4af&&(_0x36d4af={'main':_0x36d4af}),void 0x0===_0x205422){_0x205422={};for(const _0x448748 of this[_0x28a2('0xe6')][_0x28a2('0xb')][_0x28a2('0x14')]['getRootNames']())_0x205422[_0x448748]={};}let _0x1e0401=!0x1;const _0x5e1f4b=Object[_0x28a2('0x89')](_0x36d4af),_0x3cc05a=Object[_0x28a2('0x89')](_0x4d4030);for(const _0x4fca5e of _0x5e1f4b){if(_0x36d4af[_0x4fca5e]!==_0x4d4030[_0x4fca5e]&&''!==_0x36d4af[_0x4fca5e]['trim']()){_0x1e0401=!0x0;break;}if(!_0x1b3a03(_0x205422[_0x4fca5e],_0x5c225b[_0x4fca5e])&&Object[_0x28a2('0x89')](_0x205422[_0x4fca5e])['length']>0x0){_0x1e0401=!0x0;break;}}_0x1e0401||(_0x1e0401=_0x3cc05a[_0x28a2('0xe1')](_0x4e109c=>!this[_0x28a2('0xe6')][_0x28a2('0xb')][_0x28a2('0x14')][_0x28a2('0xab')](_0x4e109c))),_0x1e0401&&_0x183192('editor-initial-data-replaced-with-revision-data',{'editorData':_0x36d4af,'editorRootsAttributes':_0x205422,'revisionData':_0x4d4030,'revisionRootsAttributes':_0x5c225b}),this[_0x28a2('0xe6')][_0x28a2('0xaa')][_0x28a2('0x9b')](_0x28a2('0x2d'),_0x4d4030),this[_0x28a2('0xe6')][_0x28a2('0xaa')]['set'](_0x28a2('0xa9'),_0x5c225b);}[_0x28a2('0xfa')](){if(!this[_0x28a2('0x10')]){const _0x113c3f=this[_0x28a2('0xe6')]['plugins']['get'](_0x28a2('0x76'));this[_0x28a2('0x10')]=_0x113c3f[_0x28a2('0x83')](_0x1eaa92(this[_0x28a2('0xe6')][_0x28a2('0x53')],_0x28a2('0xb1')));}}['_removePendingAction'](){this[_0x28a2('0x10')]&&(this['editor']['plugins']['get'](_0x28a2('0x76'))[_0x28a2('0x8d')](this[_0x28a2('0x10')]),this[_0x28a2('0x10')]=null);}[_0x28a2('0x88')](_0x5d82d3){const _0x237c5a=this[_0x28a2('0xc3')][_0x28a2('0x85')]();_0x237c5a[_0x28a2('0x2b')]();let _0x1e0997=0x0;for(;_0x1e0997<_0x237c5a['length'];){const _0x310d56=_0x237c5a[_0x1e0997];if(_0x310d56===this[_0x28a2('0x55')]){_0x1e0997++;continue;}if(_0x310d56['id']===this[_0x28a2('0x47')])break;const _0x20fd9e=_0x5d82d3[_0x28a2('0x1c')]-_0x310d56[_0x28a2('0x1c')]||_0x5d82d3[_0x28a2('0xa1')]-_0x310d56[_0x28a2('0xa1')];if(_0x20fd9e>0x0)break;if(_0x20fd9e<0x0)_0x1e0997++;else{if(!_0x5d82d3[_0x28a2('0xbc')]&&_0x310d56['creator'])break;if(_0x310d56[_0x28a2('0xbc')]||!_0x5d82d3[_0x28a2('0xbc')]){if(_0x5d82d3[_0x28a2('0xaf')]>_0x310d56['createdAt'])break;_0x1e0997++;}else _0x1e0997++;}}return _0x1e0997;}['setRevisionData'](_0x2c4e78){const _0xb75408=this[_0x28a2('0xc3')]['getRevision'](_0x2c4e78['id']);if(_0x2c4e78[_0x28a2('0xaf')]&&(_0x2c4e78[_0x28a2('0xaf')]=new Date(_0x2c4e78[_0x28a2('0xaf')])),_0x2c4e78[_0x28a2('0x5b')]){const _0x3ab484=this[_0x28a2('0xe6')]['plugins'][_0x28a2('0x3c')](_0x28a2('0x75'));_0x2c4e78['authors']=_0x2c4e78[_0x28a2('0x5b')][_0x28a2('0x70')](_0x148c8c=>_0x3ab484[_0x28a2('0xf6')](_0x148c8c));}_0xb75408[_0x28a2('0x41')](_0x2c4e78,!0x0);}['buildRevisionData']({revision:_0x51b46d=null,from:_0x95ffce=null,to:_0x42475a=null}){_0x95ffce=null!==_0x95ffce?_0x95ffce:_0x51b46d[_0x28a2('0xa1')],_0x42475a=null!==_0x42475a?_0x42475a:_0x51b46d['toVersion'];const _0x167421=this[_0x28a2('0x35')][_0x28a2('0xd3')](_0x95ffce,_0x42475a),_0x4b1ebd={'diffData':_0x167421[_0x28a2('0x25')],'authorsIds':_0x167421['authorsIds'],'fromVersion':_0x95ffce,'toVersion':_0x42475a};if(!_0x51b46d||_0x42475a!==_0x51b46d[_0x28a2('0x1c')]){const _0x11fff8=_0x42475a-0x1,_0x59a93d=this[_0x28a2('0x5e')]['history'][_0x28a2('0x7e')](_0x11fff8);_0x4b1ebd[_0x28a2('0xaf')]=_0x59a93d&&_0x59a93d[_0x28a2('0xaf')]||new Date();}if(this['_loadedStateData']&&_0x95ffce===this[_0x28a2('0x44')][_0x28a2('0xa1')])for(const _0x24e1dd of this[_0x28a2('0x44')][_0x28a2('0xeb')])_0x4b1ebd['authorsIds'][_0x28a2('0x4f')](_0x24e1dd['id'])||_0x4b1ebd['authorsIds'][_0x28a2('0x68')](_0x24e1dd['id']);return _0x4b1ebd;}['_loadRevisionData'](_0xa32c89){if(!_0xa32c89||_0xa32c89[_0x28a2('0x25')])return Promise['resolve']();{const _0x2e6db1=this['editor'][_0x28a2('0xaa')][_0x28a2('0x3c')](_0x28a2('0x16'));return this['adapter'][_0x28a2('0x5')]({'channelId':_0x2e6db1,'revisionId':_0xa32c89['id']})['then'](_0x440f86=>{_0xa32c89[_0x28a2('0x25')]=_0x440f86['diffData'];});}}[_0x28a2('0x9e')](_0x4b8407,_0x2cbeab,_0x32f774){if(this['_bufferedUpdates'][_0x28a2('0x3f')](_0x4b8407)){const _0x143730=this[_0x28a2('0xb0')][_0x28a2('0x3c')](_0x4b8407);_0x2cbeab=_0x32f774?{..._0x143730,..._0x2cbeab}:{..._0x2cbeab,..._0x143730};}this['_bufferedUpdates']['set'](_0x4b8407,_0x2cbeab);}['_getFromVersion'](_0xa87187){const _0x5c344f=this[_0x28a2('0xc3')][_0x28a2('0x85')]();_0x5c344f[_0x28a2('0x2b')](),_0x5c344f[_0x28a2('0x3a')]();const _0x35d78d=_0x5c344f['find'](_0x5df3be=>_0x5df3be['toVersion']<=_0xa87187)[_0x28a2('0x1c')];return _0x35d78d<this[_0x28a2('0x2c')]?this[_0x28a2('0x2c')]:_0x35d78d;}[_0x28a2('0x17')](_0x126770){const _0x14beec=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x14beec)this[_0x28a2('0x47')]=_0x14beec['id'];else{const _0x67fef9=!this[_0x28a2('0xe6')]['model'][_0x28a2('0x14')]['roots']['find'](_0x19c2a9=>this[_0x28a2('0xe6')][_0x28a2('0xb')][_0x28a2('0xe5')](_0x19c2a9)),_0x58ce2e=this[_0x28a2('0xe6')][_0x28a2('0x1d')][_0x28a2('0x3c')](_0x28a2('0x75'))['me']['id'],_0x31036c=_0x1eaa92(this[_0x28a2('0xe6')][_0x28a2('0x53')],_0x67fef9?_0x28a2('0x67'):'Initial\x20revision');this['_makeRevision']({'from':_0x126770,'to':_0x126770,'id':this[_0x28a2('0x47')],'name':_0x31036c,'creatorId':_0x58ce2e});}}[_0x28a2('0x38')](_0x4b13be){const _0x3cf874=this[_0x28a2('0x5e')]['getCurrentRevisionId']();this[_0x28a2('0x55')]=this[_0x28a2('0xc3')][_0x28a2('0x5')](_0x3cf874),this[_0x28a2('0x55')]||(this['currentRevision']=this['_makeRevision']({'from':_0x4b13be,'to':_0x4b13be,'id':_0x3cf874,'name':'','creatorId':null}));}[_0x28a2('0x9a')]({name:_0xffc322,from:_0x54633a,to:_0xf3b809,creatorId:_0xcadce6,id:_0x330098}){const _0x280558=this[_0x28a2('0xb9')]({'from':_0x54633a,'to':_0xf3b809});_0x280558['name']=_0xffc322,_0x280558['creatorId']=_0xcadce6,_0x280558['id']=_0x330098;const _0x4967fa=this[_0x28a2('0x1f')](_0x280558);return this[_0x28a2('0x8b')]&&this[_0x28a2('0x9e')](_0x280558['id'],_0x280558,!0x0),_0x4967fa;}[_0x28a2('0xbd')](){this[_0x28a2('0xe6')][_0x28a2('0x81')]['for']('dataDowncast')[_0x28a2('0x1b')]({'model':_0x28a2('0x9d')});}[_0x28a2('0xb2')](_0x13cef7){return(_0x13cef7=_0x13cef7[_0x28a2('0xf2')](_0x3605c1=>!_0x3605c1[_0x28a2('0x46')]||_0x28a2('0x97')!==_0x3605c1['name']&&_0x28a2('0x56')!==_0x3605c1[_0x28a2('0x46')]))[_0x28a2('0xf0')](_0x48f77c=>{_0x28a2('0xc9')!=typeof _0x48f77c&&(_0x48f77c['children']=this['_removeRevisionMarkers'](_0x48f77c['children']),_0x48f77c[_0x28a2('0xbf')]=_0x48f77c['attributes']['filter'](_0x42c013=>!_0x42c013[0x0][_0x28a2('0x49')]('data-revision-')));}),_0x13cef7;}}function J(_0x3782f0,_0x2cf899){const _0x2ae884=_0x2cf899[_0x28a2('0x42')][_0x28a2('0x60')][_0x28a2('0x14')];if(_0x28a2('0xc9')==typeof _0x3782f0)return new _0x175c36(_0x2ae884,_0x3782f0);{const _0x58a9e=_0x3782f0[_0x28a2('0x19')]['map'](_0x486d4f=>J(_0x486d4f,_0x2cf899));return new(B[_0x3782f0[(_0x28a2('0x32'))]]||_0x5777b2)(_0x2ae884,_0x3782f0[_0x28a2('0x46')],_0x3782f0[_0x28a2('0xbf')],_0x58a9e);}}class H{constructor(_0x1a83d8){this[_0x28a2('0xe6')]=_0x1a83d8,this[_0x28a2('0xa3')]=new Map(),this['_lastFrom']=-0x1,this[_0x28a2('0x15')]=-0x1,this[_0x28a2('0x9c')]=new Map(),this[_0x28a2('0x6e')]=new Map(),this[_0x28a2('0x50')]=new Map(),this[_0x28a2('0x4')]=new Map(),this[_0x28a2('0x82')]=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this[_0x28a2('0x6f')]=new Map(),this[_0x28a2('0xf7')]=new Map(),this[_0x28a2('0xca')]=0x1;}[_0x28a2('0x7a')](_0x3f27c4){this['source']=_0x3f27c4;const _0xbd72f=new Map(),_0x258d35=new Map(),_0x4230ce=this[_0x28a2('0xe6')][_0x28a2('0xb')][_0x28a2('0x14')][_0x28a2('0xa5')]['map'](_0x18e2d8=>_0x18e2d8[_0x28a2('0xd7')]);for(const _0x4feef5 of _0x4230ce){const _0x2c4c9b=this[_0x28a2('0xe6')][_0x28a2('0xb')][_0x28a2('0x14')][_0x28a2('0xab')](_0x4feef5),_0xfdf515=q(_0x2c4c9b);_0xbd72f[_0x28a2('0x9b')](_0x4feef5,_0xfdf515),_0x258d35[_0x28a2('0x9b')](_0x4feef5,Object[_0x28a2('0x1a')](_0x2c4c9b[_0x28a2('0x45')]()));}const _0xa4581e=Array[_0x28a2('0xfb')](this[_0x28a2('0xe6')][_0x28a2('0xb')][_0x28a2('0xf8')])['map'](_0x5cbbfd=>[_0x5cbbfd['name'],_0x5cbbfd[_0x28a2('0x7f')]()]),_0xb36784=this[_0x28a2('0xfc')]['version'];this[_0x28a2('0xa6')](_0xb36784,_0xbd72f,_0xa4581e,_0x258d35),this[_0x28a2('0x8f')]=this['_revisionId'];const _0x308fe2=new Map(),_0x45ef6c=new Map();for(const _0x7e4166 of _0x4230ce){const _0xa309fb=G(_0x7e4166);_0x308fe2[_0x28a2('0x9b')](_0x7e4166,_0xa309fb),_0x45ef6c[_0x28a2('0x9b')](_0x7e4166,{});}this[_0x28a2('0xa6')](Number[_0x28a2('0xc')],_0x308fe2,[],_0x45ef6c);}[_0x28a2('0xd3')](_0x4de931,_0x39e22f){if(this[_0x28a2('0xae')]===_0x4de931&&this['_lastTo']<=_0x39e22f)this[_0x28a2('0xa3')]['size']>0x1&&this['_removeMetaData'](this[_0x28a2('0x15')]),this[_0x28a2('0x13')](this[_0x28a2('0x15')],_0x39e22f,!0x0);else{if(!this[_0x28a2('0xa3')]['has'](_0x4de931)){const _0x1d4f04=this[_0x28a2('0x23')](_0x4de931);this['_calculateMetaData'](_0x1d4f04,_0x4de931,!0x1);}this[_0x28a2('0x78')](_0x4de931,_0x39e22f,!0x0);}return this[_0x28a2('0xae')]=_0x4de931,this[_0x28a2('0x15')]=_0x39e22f,this[_0x28a2('0x58')]();}[_0x28a2('0xb8')](_0x525fd5){this[_0x28a2('0x71')](),this[_0x28a2('0xae')]=_0x525fd5[_0x28a2('0xa1')],this[_0x28a2('0x15')]=_0x525fd5[_0x28a2('0x1c')];for(const _0x5a9b58 in _0x525fd5[_0x28a2('0x25')]){const _0x3a9e71=_0x525fd5[_0x28a2('0x25')][_0x5a9b58][_0x28a2('0x80')],_0x1f232c=_0x29ed97(_0x525fd5['diffData'][_0x5a9b58][_0x28a2('0x28')])||{},_0x35038b=this['_makeModelFromViewString'](_0x525fd5[_0x28a2('0x25')][_0x5a9b58][_0x28a2('0x74')]);_0x35038b[_0x28a2('0xd7')]=_0x5a9b58,_0x35038b[_0x28a2('0x31')]=!_0x3a9e71||!_0x3a9e71['isAttached'],_0x35038b[_0x28a2('0x6a')]=()=>_0x35038b[_0x28a2('0x31')],this['_baseRoots'][_0x28a2('0x9b')](_0x5a9b58,_0x35038b),this['_baseRootsAttributes'][_0x28a2('0x9b')](_0x5a9b58,_0x1f232c),_0x3a9e71&&this[_0x28a2('0xf7')][_0x28a2('0x9b')](_0x5a9b58,_0x3a9e71);const _0xb7889a=this[_0x28a2('0x4b')](_0x35038b);this['_baseIdsRoots'][_0x28a2('0x9b')](_0x5a9b58,_0xb7889a);for(const [_0x450d0c,_0x4e486c]of _0x35038b['markers']){if(!_0x450d0c[_0x28a2('0x49')]('revision:'))continue;const _0x14bb77=_0x450d0c[_0x28a2('0x4c')](':')[0x2];for(const _0x285f04 of _0x4e486c[_0x28a2('0x12')]({'singleCharacters':!0x0})){const _0x4c311d=this['_getVidAttributeName'](_0x285f04),_0x2af4e5=_0x28a2('0xd')==_0x285f04[_0x28a2('0x32')]?_0x285f04[_0x28a2('0x3e')][_0x28a2('0x36')]['slice'](0x0,-0x1):_0x285f04[_0x28a2('0x3e')][_0x28a2('0x36')],_0x10e2c8=_0xb7889a[_0x28a2('0x77')](_0x2af4e5)[_0x28a2('0x92')](_0x4c311d);this[_0x28a2('0xb4')]['set'](_0x10e2c8,{'userId':_0x14bb77});}}}this['_startingRevisionId']=this[_0x28a2('0xca')];const _0x5ea213=[...Array(this[_0x28a2('0xca')])[_0x28a2('0x89')]()][_0x28a2('0xee')](0x1)['filter'](_0x588874=>!this['_touched']['has'](_0x588874));let _0x5f3858=0x0;const _0x462af1=new Map();for(const _0xea4e1f in _0x525fd5[_0x28a2('0x25')]){const _0x16b1f7=_0x525fd5[_0x28a2('0x25')][_0xea4e1f][_0x28a2('0x80')],_0x3dd438=_0x29ed97(_0x525fd5[_0x28a2('0x25')][_0xea4e1f]['attributesAfter'])||{},_0x2308af=this[_0x28a2('0x3d')](_0x525fd5[_0x28a2('0x25')][_0xea4e1f][_0x28a2('0xed')]);_0x2308af[_0x28a2('0xd7')]=_0xea4e1f,_0x2308af[_0x28a2('0x31')]=!_0x16b1f7||_0x16b1f7[_0x28a2('0x6a')],_0x2308af[_0x28a2('0x6a')]=()=>_0x2308af['_isAttached'],this[_0x28a2('0x6e')]['set'](_0xea4e1f,_0x2308af),this[_0x28a2('0x50')]['set'](_0xea4e1f,_0x3dd438);const _0x2350ce=this[_0x28a2('0x4b')](_0x2308af,Number[_0x28a2('0xc')]);this['_idsRoots'][_0x28a2('0x9b')](_0xea4e1f,_0x2350ce),_0x462af1[_0x28a2('0x9b')](_0xea4e1f,_0x2308af[_0x28a2('0x6a')]()?_0x3dd438:{});for(const [_0x56e234,_0x30647e]of _0x2308af[_0x28a2('0xf8')]){if(!_0x56e234[_0x28a2('0x49')](_0x28a2('0xc4')))continue;const _0x54ddf7=_0x56e234[_0x28a2('0x4c')](':')[0x2];for(const _0x175b8d of _0x30647e['getWalker']({'singleCharacters':!0x0})){const _0x4aa3cd=this['_getVidAttributeName'](_0x175b8d),_0x30081a=this[_0x28a2('0xca')]++,_0x4c5b64=_0x28a2('0xd')==_0x175b8d['type']?_0x175b8d[_0x28a2('0x3e')][_0x28a2('0x36')][_0x28a2('0xee')](0x0,-0x1):_0x175b8d[_0x28a2('0x3e')][_0x28a2('0x36')];_0x2350ce[_0x28a2('0x77')](_0x4c5b64)[_0x28a2('0x54')](_0x4aa3cd,_0x30081a),this[_0x28a2('0xb4')][_0x28a2('0x9b')](_0x30081a,{'userId':_0x54ddf7});}}for(const _0x412f6a of this[_0x28a2('0xe6')][_0x28a2('0xb')][_0x28a2('0xe')](_0x2308af)['getWalker']({'singleCharacters':!0x0})){const _0x206dc1=this['_getVidAttributeName'](_0x412f6a),_0xe1d509=_0x28a2('0xd')==_0x412f6a['type']?_0x412f6a[_0x28a2('0x3e')]['path'][_0x28a2('0xee')](0x0,-0x1):_0x412f6a['previousPosition'][_0x28a2('0x36')],_0x464981=_0x2350ce[_0x28a2('0x77')](_0xe1d509);_0x464981[_0x28a2('0x92')](_0x206dc1)>0x0||_0x464981[_0x28a2('0x54')](_0x206dc1,_0x5ea213[_0x5f3858++]);}for(const [_0x4e9d2c,_0x135b47]of _0x2308af[_0x28a2('0xf8')])_0x4e9d2c[_0x28a2('0x49')](_0x28a2('0xc4'))||this[_0x28a2('0x9c')]['set'](_0x4e9d2c,_0x135b47);}const _0x460869=G(_0x28a2('0x7b'));this[_0x28a2('0x4')][_0x28a2('0x9b')](_0x28a2('0x7b'),_0x460869),this[_0x28a2('0x5f')][_0x28a2('0x9b')]('$graveyard',this['_makeIdsRoot'](_0x460869,0x1));const _0x1d3659=G('$graveyard');this[_0x28a2('0x6e')][_0x28a2('0x9b')]('$graveyard',_0x1d3659),this[_0x28a2('0xdc')][_0x28a2('0x9b')](_0x28a2('0x7b'),this[_0x28a2('0x4b')](_0x1d3659,0x1));const _0x2227c1=Array[_0x28a2('0xfb')](this['_diffRoots'])['map'](([_0x40625d,_0x39643b])=>[_0x40625d,q(_0x39643b)]);this[_0x28a2('0xa6')](this['_lastTo'],_0x2227c1,this[_0x28a2('0x9c')],_0x462af1);}[_0x28a2('0x3d')](_0x124f6f){const _0x439556=JSON[_0x28a2('0xfd')](_0x124f6f),_0x55ba2b=this[_0x28a2('0xe6')]['editing'][_0x28a2('0x60')][_0x28a2('0x14')],_0x5b0734=new _0x2ed0a2(_0x55ba2b,_0x439556[_0x28a2('0x70')](_0x44577b=>J(_0x44577b,this[_0x28a2('0xe6')])));return this[_0x28a2('0xe6')][_0x28a2('0xd8')][_0x28a2('0x8')](_0x5b0734);}[_0x28a2('0xa6')](_0x1ed5f9,_0x4739be,_0x12c2f4,_0x21bf0c){const _0x2fedac=new Map(_0x4739be),_0x12e32b=new Map(_0x29ed97(_0x21bf0c)),_0x46583b=new Map();for(const [_0x7e9c2c,_0xee892b]of _0x12c2f4)_0x46583b[_0x28a2('0x9b')](_0x7e9c2c,{'start':_0xee892b[_0x28a2('0xb7')][_0x28a2('0xde')](),'end':_0xee892b['end'][_0x28a2('0xde')](),'rootName':_0xee892b[_0x28a2('0x5a')]['rootName']});this['_savedMetaData'][_0x28a2('0x9b')](_0x1ed5f9,{'roots':_0x2fedac,'markers':_0x46583b,'rootsAttributes':_0x12e32b});}['_removeMetaData'](_0x2a4edd){this[_0x28a2('0xa3')][_0x28a2('0x3b')](_0x2a4edd);}[_0x28a2('0xa4')](){this['_reset'](),this[_0x28a2('0xae')]=-0x1,this[_0x28a2('0x15')]=-0x1,this[_0x28a2('0xa3')][_0x28a2('0x2f')](),this[_0x28a2('0x7a')](this[_0x28a2('0xfc')]);}[_0x28a2('0x71')](){this[_0x28a2('0xb4')][_0x28a2('0x2f')](),this['_touchedMarkers'][_0x28a2('0x2f')](),this['_touchedRoots'][_0x28a2('0x2f')](),this['_diffRoots'][_0x28a2('0x2f')](),this[_0x28a2('0x50')][_0x28a2('0x2f')](),this[_0x28a2('0x4')]['clear'](),this[_0x28a2('0x82')][_0x28a2('0x2f')](),this[_0x28a2('0xdc')][_0x28a2('0x2f')](),this[_0x28a2('0x5f')][_0x28a2('0x2f')](),this[_0x28a2('0x9c')][_0x28a2('0x2f')](),this['_revisionId']=0x1,this[_0x28a2('0x8f')]=this[_0x28a2('0xca')];}[_0x28a2('0x4b')](_0x831d91,_0x51f6ec=null){let _0x134873=null;_0x831d91['is'](_0x28a2('0x6b'))||(_0x134873=new _0x2b9992(_0x831d91[_0x28a2('0x46')],{'vid_start':null===_0x51f6ec?this[_0x28a2('0xca')]++:_0x51f6ec++}));const _0x3bbffd=[];for(const _0x40cce2 of _0x831d91['getChildren']())if(_0x40cce2['is']('element')){_0x3bbffd[_0x28a2('0x68')](this[_0x28a2('0x4b')](_0x40cce2,_0x51f6ec));const _0x41d81b=_0x3bbffd[_0x3bbffd[_0x28a2('0x8c')]-0x1];null!==_0x51f6ec&&(_0x51f6ec=_0x41d81b['is'](_0x28a2('0xf3'),_0x28a2('0xcd'))?_0x41d81b[_0x28a2('0x92')](_0x28a2('0x11'))+0x1:_0x41d81b[_0x28a2('0x92')](_0x28a2('0x95'))+0x1);}else for(let _0x34d6e3=0x0;_0x34d6e3<_0x40cce2['offsetSize'];_0x34d6e3++)_0x3bbffd[_0x28a2('0x68')](new _0x2b9992('$text',{'vid':null===_0x51f6ec?this['_revisionId']++:_0x51f6ec++}));if(_0x831d91['is']('documentFragment')){const _0x53125b=G(_0x831d91[_0x28a2('0xd7')]);return _0x53125b['_insertChild'](0x0,_0x3bbffd),_0x53125b;}return _0x134873['_setAttribute'](_0x28a2('0x95'),null===_0x51f6ec?this['_revisionId']++:_0x51f6ec++),_0x134873[_0x28a2('0xe3')](0x0,_0x3bbffd),_0x134873;}[_0x28a2('0x78')](_0x3dabef,_0x26d1ab,_0x7b33a0){this[_0x28a2('0x71')]();const {roots:_0x435f4c,markers:_0xa929b2,rootsAttributes:_0x2c8567}=this[_0x28a2('0xa3')]['get'](_0x3dabef);this[_0x28a2('0x4')]=new Map(_0x435f4c),this[_0x28a2('0x82')]=new Map(_0x29ed97(_0x2c8567));for(const [_0x2bedf5,_0x5e648b]of this[_0x28a2('0x4')])if(_0x28a2('0x7b')!==_0x2bedf5&&(this[_0x28a2('0x6e')]['set'](_0x2bedf5,q(_0x5e648b)),this[_0x28a2('0x50')]=new Map(_0x29ed97(_0x2c8567)),_0x7b33a0)){const _0x363d19=this[_0x28a2('0xca')];this[_0x28a2('0xdc')]['set'](_0x2bedf5,this['_makeIdsRoot'](_0x5e648b)),this[_0x28a2('0x5f')][_0x28a2('0x9b')](_0x2bedf5,this[_0x28a2('0x4b')](_0x5e648b,_0x363d19));}this[_0x28a2('0x8f')]=this[_0x28a2('0xca')],this[_0x28a2('0x6e')][_0x28a2('0x9b')](_0x28a2('0x7b'),q(this[_0x28a2('0x4')][_0x28a2('0x3c')]('$graveyard'))),_0x7b33a0&&this[_0x28a2('0xdc')]['set'](_0x28a2('0x7b'),this[_0x28a2('0x4b')](this['_baseRoots'][_0x28a2('0x3c')](_0x28a2('0x7b'))));for(const [_0xb14d98,_0x2e4734]of _0xa929b2){const _0x21f925=this[_0x28a2('0x4')]['get'](_0x2e4734[_0x28a2('0xd7')]),_0x4f63ca=this['_diffRoots'][_0x28a2('0x3c')](_0x2e4734[_0x28a2('0xd7')]),_0x493071=new _0x51c84c(this[_0x28a2('0xc8')](_0x2e4734[_0x28a2('0xb7')],_0x21f925),this[_0x28a2('0xc8')](_0x2e4734['end'],_0x21f925)),_0x38c241=this[_0x28a2('0x9')](_0x493071,_0x4f63ca);_0x21f925['markers'][_0x28a2('0x9b')](_0xb14d98,_0x493071),this[_0x28a2('0x9c')][_0x28a2('0x9b')](_0xb14d98,_0x38c241);}this[_0x28a2('0x13')](_0x3dabef,_0x26d1ab,_0x7b33a0);}[_0x28a2('0x13')](_0x17ff93,_0x5e5a9d,_0x2504c9){for(const _0xa8afac of this[_0x28a2('0xfc')]['getOperations'](_0x17ff93,_0x5e5a9d))this[_0x28a2('0xf5')](_0xa8afac,_0x2504c9);for(const _0x45b9c6 of this[_0x28a2('0x6e')][_0x28a2('0xd9')]())_0x45b9c6['markers'][_0x28a2('0x2f')]();for(const [_0x46097c,_0x55c90b]of this[_0x28a2('0x9c')]){this['_diffRoots']['get'](_0x55c90b[_0x28a2('0x5a')][_0x28a2('0xd7')])[_0x28a2('0xf8')][_0x28a2('0x9b')](_0x46097c,_0x55c90b['clone']());}const _0xa9e02d=new Map(),_0x559de9=new Map();for(const [_0x2ad656,_0x5547d4]of this[_0x28a2('0x6e')])_0xa9e02d[_0x28a2('0x9b')](_0x2ad656,q(_0x5547d4)),_0x559de9[_0x28a2('0x9b')](_0x2ad656,this[_0x28a2('0x50')][_0x28a2('0x3c')](_0x2ad656));this['_saveMetaData'](_0x5e5a9d,_0xa9e02d,this[_0x28a2('0x9c')],_0x559de9);}[_0x28a2('0x23')](_0x26bbc6){const _0x4ed57f=Array[_0x28a2('0xfb')](this[_0x28a2('0xa3')]['keys']());_0x4ed57f['sort']((_0x239d64,_0x30f49b)=>_0x239d64-_0x30f49b),_0x4ed57f['reverse']();for(const _0x390b7b of _0x4ed57f)if(_0x390b7b<_0x26bbc6)return _0x390b7b;return Number[_0x28a2('0xc')];}[_0x28a2('0x27')](_0x54caac,_0x3337cc){const _0x5d953c=Array[_0x28a2('0xfb')](_0x3337cc[_0x28a2('0xf8')])[_0x28a2('0x70')](([_0x49cd5e,_0xe43618])=>[_0x49cd5e,this[_0x28a2('0x9')](_0xe43618,_0x54caac)]);_0x54caac['markers']=new Map(_0x5d953c);}[_0x28a2('0xd2')](_0x112cdd){for(const _0x275f06 of this[_0x28a2('0x9c')][_0x28a2('0xd9')]()){const _0x45b6e0=_0x275f06['getTransformedByOperation'](_0x112cdd),_0x4edb93=_0x51c84c['_createFromRanges'](_0x45b6e0);_0x275f06[_0x28a2('0xb7')]=_0x4edb93[_0x28a2('0xb7')],_0x275f06['end']=_0x4edb93[_0x28a2('0xbe')];}}['_handleOperation'](_0x2f6566,_0x194d93){if(_0x28a2('0xc0')==_0x2f6566['type']||_0x28a2('0xff')==_0x2f6566[_0x28a2('0x32')])return void this[_0x28a2('0x52')](_0x2f6566,_0x194d93);if(_0x28a2('0x18')==_0x2f6566[_0x28a2('0x32')]){const _0x55b7d4=_0x2f6566['position'][_0x28a2('0x5a')][_0x28a2('0xd7')];this[_0x28a2('0x6e')][_0x28a2('0x3f')](_0x55b7d4)||(this['_diffRoots'][_0x28a2('0x9b')](_0x55b7d4,G(_0x55b7d4,!0x0)),this[_0x28a2('0x50')]['set'](_0x55b7d4,{}),_0x194d93&&this[_0x28a2('0xdc')][_0x28a2('0x9b')](_0x55b7d4,G(_0x55b7d4,!0x0)));}else{if(_0x28a2('0xc7')==_0x2f6566[_0x28a2('0x32')]||_0x28a2('0xfe')==_0x2f6566[_0x28a2('0x32')]||'changeRootAttribute'==_0x2f6566[_0x28a2('0x32')])return void this[_0x28a2('0x6')](_0x2f6566);}const _0x3fd2c=this[_0x28a2('0xb6')](_0x2f6566,this[_0x28a2('0x6e')]);if('marker'!==_0x2f6566[_0x28a2('0x32')]&&(_0x3fd2c['_execute'](),this[_0x28a2('0xd2')](_0x3fd2c)),_0x194d93)switch(_0x3fd2c[_0x28a2('0x32')]){case _0x28a2('0x18'):this[_0x28a2('0x90')](_0x2f6566);break;case _0x28a2('0x4d'):case _0x28a2('0x8d'):case _0x28a2('0x62'):this[_0x28a2('0x1e')](_0x2f6566);break;case _0x28a2('0xc1'):this[_0x28a2('0xcb')](_0x2f6566);break;case _0x28a2('0x4c'):this[_0x28a2('0xc5')](_0x2f6566);break;case _0x28a2('0x2e'):this[_0x28a2('0x9f')](_0x2f6566);}}[_0x28a2('0xb6')](_0x48e268,_0x37c0b7){const _0x136833=_0x48e268[_0x28a2('0xde')]();return _0x136833[_0x28a2('0xd6')]=_0x48e268['_authorId'],this['_fixOperation'](_0x136833,_0x37c0b7),_0x136833;}[_0x28a2('0x7c')](_0x18ad39){return _0x18ad39[_0x28a2('0x70')](_0x270cee=>{const _0x27af04=this[_0x28a2('0x37')](_0x270cee);return Number(_0x270cee[_0x28a2('0x5d')][_0x28a2('0x92')](_0x27af04));});}[_0x28a2('0xe8')](_0x166bd8,_0x5735ec){if(_0x166bd8['is'](_0x28a2('0xf3'),'$text'))_0x5735ec[_0x28a2('0x68')]({'item':_0x166bd8,'type':'text'});else{_0x166bd8['is']('element')&&_0x5735ec['push']({'item':_0x166bd8,'type':_0x28a2('0xf1')});for(const _0x45d429 of _0x166bd8[_0x28a2('0x1')]())this[_0x28a2('0xe8')](_0x45d429,_0x5735ec);_0x166bd8['is'](_0x28a2('0xf3'))&&_0x5735ec['push']({'item':_0x166bd8,'type':_0x28a2('0xd')});}return _0x5735ec;}[_0x28a2('0x58')](){const _0x11e87a=new Map(this[_0x28a2('0xb4')]),_0x3449f3=new Map(_0x11e87a),_0xba4c19=new Map(),_0x5907eb={'insertions':{},'deletions':{}},_0x1422af={'insertions':{},'deletions':{}},_0x59ce30=new Map(),_0x4ffac4=new Set([...this['_baseRoots'][_0x28a2('0x89')](),...this[_0x28a2('0x6e')][_0x28a2('0x89')]()]);_0x4ffac4[_0x28a2('0x3b')](_0x28a2('0x7b'));for(const _0xfd89fd of _0x4ffac4){const _0x296a14=this['_diffRoots'][_0x28a2('0x3c')](_0xfd89fd)||G(_0xfd89fd,!0x1),_0xc38c44=this[_0x28a2('0x4')][_0x28a2('0x3c')](_0xfd89fd)||G(_0xfd89fd,!0x1);_0x296a14[_0x28a2('0x6a')]()||_0xc38c44['isAttached']()?(_0x5907eb[_0x28a2('0xed')][_0xfd89fd]=q(_0x296a14),_0x5907eb[_0x28a2('0x74')][_0xfd89fd]=q(_0xc38c44),this[_0x28a2('0x27')](_0x5907eb[_0x28a2('0x74')][_0xfd89fd],_0xc38c44),this['_copyMarkers'](_0x5907eb['insertions'][_0xfd89fd],_0x296a14),_0x1422af['insertions'][_0xfd89fd]=this[_0x28a2('0xe8')](this[_0x28a2('0xdc')][_0x28a2('0x3c')](_0xfd89fd),[]),_0x1422af[_0x28a2('0x74')][_0xfd89fd]=this[_0x28a2('0xe8')](this[_0x28a2('0x5f')][_0x28a2('0x3c')](_0xfd89fd)||G(_0xfd89fd,!0x1),[])):_0x4ffac4[_0x28a2('0x3b')](_0xfd89fd);}for(const _0x389cd0 of _0x4ffac4){const _0x3587e2=_0x1422af[_0x28a2('0xed')][_0x389cd0];for(const _0x4b89a6 of _0x3587e2){const _0x4e5d89=this[_0x28a2('0x37')](_0x4b89a6),_0x2083c3=_0x4b89a6[_0x28a2('0x5d')][_0x28a2('0x92')](_0x4e5d89);_0x3449f3[_0x28a2('0x3b')](_0x2083c3),_0x2083c3>=this[_0x28a2('0x8f')]&&_0xba4c19['set'](_0x2083c3,_0x11e87a['get'](_0x2083c3));}}for(const _0x5ca3c6 of _0x4ffac4){const _0x31b626=_0x1422af[_0x28a2('0xed')][_0x5ca3c6],_0x344d9c=this[_0x28a2('0x7c')](_0x1422af[_0x28a2('0x74')][_0x5ca3c6]);let _0xc437bb=0x0;for(const _0x18e646 of _0x31b626){const _0x1e163a=this[_0x28a2('0x37')](_0x18e646),_0x3f72dd=_0x18e646['item'][_0x28a2('0x92')](_0x1e163a);if(!_0xba4c19[_0x28a2('0x3f')](_0x3f72dd)&&!_0x59ce30[_0x28a2('0x3f')](_0x3f72dd)){if(_0x3449f3[_0x28a2('0x3f')](_0x3f72dd))_0xc437bb++;else{if(_0x3f72dd!=_0x344d9c[_0xc437bb]){const _0x257e4e=_0x11e87a[_0x28a2('0x3c')](_0x3f72dd)||_0x11e87a[_0x28a2('0x3c')](_0x344d9c[_0xc437bb]);for(;_0x3f72dd!=_0x344d9c[_0xc437bb];)_0x3449f3['has'](_0x344d9c[_0xc437bb])||(_0x59ce30['set'](_0x344d9c[_0xc437bb],_0x257e4e),_0x11e87a[_0x28a2('0x9b')](_0x344d9c[_0xc437bb],_0x257e4e)),_0xc437bb++;}_0xc437bb++;}}}}for(const _0x3053db of _0x4ffac4){const _0x55b801=_0x1422af['insertions'][_0x3053db];for(const _0x2a8683 of _0x55b801){const _0x3058d3=this[_0x28a2('0x37')](_0x2a8683),_0x479a33=_0x2a8683[_0x28a2('0x5d')][_0x28a2('0x92')](_0x3058d3);if(_0x59ce30[_0x28a2('0x3f')](_0x479a33)){const _0x2ede9e=_0x59ce30['get'](_0x479a33);_0x3449f3['has'](_0x479a33)||_0x3449f3[_0x28a2('0x9b')](_0x479a33,{..._0x2ede9e}),_0xba4c19[_0x28a2('0x9b')](_0x479a33,{..._0x2ede9e});}}}for(const _0xac6548 of _0x3449f3[_0x28a2('0x89')]())_0xac6548>=this[_0x28a2('0x8f')]&&_0x3449f3[_0x28a2('0x3b')](_0xac6548);const _0x459e4d=new Map();for(const _0x53dc0f of _0x4ffac4){let _0x54d4e6=_0x1422af[_0x28a2('0xed')][_0x53dc0f];for(const _0xb99478 of _0x54d4e6)if(_0xb99478['item']['is'](_0x28a2('0xf3'),_0x28a2('0xf4'))){const _0x230d22=this[_0x28a2('0x37')](_0xb99478),_0x1f7e94=_0xb99478[_0x28a2('0x5d')][_0x28a2('0x92')](_0x230d22);if(_0xba4c19[_0x28a2('0x3f')](_0x1f7e94)){const _0x299768=_0xb99478[_0x28a2('0x5d')]['parent'][_0x28a2('0x66')]['getAttribute'](_0x28a2('0x72')),_0x1072fb=_0x459e4d[_0x28a2('0x3c')](_0x299768)||new Set();_0x1072fb[_0x28a2('0x83')](_0xba4c19[_0x28a2('0x3c')](_0x1f7e94)[_0x28a2('0xa2')]),_0x459e4d[_0x28a2('0x9b')](_0x299768,_0x1072fb);}}_0x54d4e6=_0x1422af[_0x28a2('0x74')][_0x53dc0f];for(const _0x13c026 of _0x54d4e6)if(_0x13c026[_0x28a2('0x5d')]['is'](_0x28a2('0xf3'),_0x28a2('0xf4'))){const _0xf9bfa7=this[_0x28a2('0x37')](_0x13c026),_0x4e79b4=_0x13c026[_0x28a2('0x5d')][_0x28a2('0x92')](_0xf9bfa7);if(_0x3449f3['has'](_0x4e79b4)){const _0x90e045=_0x13c026[_0x28a2('0x5d')][_0x28a2('0x66')][_0x28a2('0x66')]['getAttribute'](_0x28a2('0x72')),_0x4eed4b=_0x459e4d[_0x28a2('0x3c')](_0x90e045)||new Set();_0x4eed4b[_0x28a2('0x83')](_0x3449f3[_0x28a2('0x3c')](_0x4e79b4)[_0x28a2('0xa2')]),_0x459e4d[_0x28a2('0x9b')](_0x90e045,_0x4eed4b);}}for(const _0x366c14 of _0x459e4d[_0x28a2('0x89')]())(_0xba4c19['has'](_0x366c14)||_0x3449f3[_0x28a2('0x3f')](_0x366c14))&&_0x459e4d[_0x28a2('0x3b')](_0x366c14);}for(const _0xb81832 of _0x4ffac4){const _0x5c9e93=_0x1422af['insertions'][_0xb81832];let _0x546721=null,_0x5901d4=null;for(const _0x5162c6 of _0x5c9e93){const _0x1d317=this[_0x28a2('0x37')](_0x5162c6),_0x56d74f=_0x5162c6[_0x28a2('0x5d')][_0x28a2('0x92')](_0x1d317),_0x4c7199=_0x459e4d[_0x28a2('0x3c')](_0x56d74f);_0x4c7199&&'elementStart'==_0x5162c6[_0x28a2('0x32')]&&(_0x546721=Array[_0x28a2('0xfb')](_0x4c7199)[0x0],_0x5901d4=_0x5162c6[_0x28a2('0x5d')][_0x28a2('0x92')](_0x28a2('0x95'))),_0x546721&&(_0x3449f3[_0x28a2('0x9b')](_0x56d74f,{'userId':_0x546721}),_0xba4c19[_0x28a2('0x9b')](_0x56d74f,{'userId':_0x546721})),_0x56d74f==_0x5901d4&&(_0x546721=null,_0x5901d4=null);}}const _0x1dcb06={},_0x49bce7=new Set();for(const _0x146270 of _0x4ffac4){const _0x54c34b=_0x5907eb[_0x28a2('0x74')][_0x146270],_0x33c3a2=_0x5907eb[_0x28a2('0xed')][_0x146270];for(const {userId:_0x4b7441}of this[_0x28a2('0x6f')][_0x28a2('0xd9')]())null!==_0x4b7441&&_0x49bce7[_0x28a2('0x83')](_0x4b7441);for(const {userId:_0x2a08c7}of this[_0x28a2('0xf7')][_0x28a2('0xd9')]())null!==_0x2a08c7&&_0x49bce7[_0x28a2('0x83')](_0x2a08c7);this[_0x28a2('0xce')](_0x33c3a2,_0x1422af[_0x28a2('0xed')][_0x146270],_0xba4c19,_0x28a2('0xf9'),_0x49bce7),this['_markChanges'](_0x54c34b,_0x1422af['deletions'][_0x146270],_0x3449f3,_0x28a2('0xcf'),_0x49bce7),_0x1dcb06[_0x146270]={'insertions':this['_prepareViewToSave'](_0x33c3a2),'deletions':this[_0x28a2('0xbb')](_0x54c34b),'attachChange':this[_0x28a2('0xf7')][_0x28a2('0x3c')](_0x146270)||null,'attributesBefore':_0x29ed97(this[_0x28a2('0x82')][_0x28a2('0x3c')](_0x146270))||{},'attributesAfter':_0x29ed97(this[_0x28a2('0x50')]['get'](_0x146270))};}return{'diffData':_0x1dcb06,'authorsIds':Array[_0x28a2('0xfb')](_0x49bce7)};}[_0x28a2('0xe2')](_0x5755ee){for(const [,_0x1769e7]of _0x5755ee['markers']){const _0x903b27=_0x1769e7[_0x28a2('0xb7')]['getAncestors']()[_0x28a2('0xf2')](_0x502836=>_0x28a2('0xf4')==_0x502836[_0x28a2('0x46')]);for(const _0x3eddb7 of _0x903b27)0x1==_0x3eddb7['childCount']&&_0x3eddb7['getChild'](0x0)['is'](_0x28a2('0xf3'),_0x28a2('0xdd'))&&_0x3eddb7[_0x28a2('0x69')](0x0)['_setAttribute'](_0x28a2('0x43'),!0x0);}}[_0x28a2('0xbb')](_0x5a48a6){this[_0x28a2('0xe2')](_0x5a48a6);const _0x53fc1d=this[_0x28a2('0xe6')]['data']['toView'](_0x5a48a6,{}),_0xca0fb=Array[_0x28a2('0xfb')](_0x53fc1d[_0x28a2('0x1')]())[_0x28a2('0x70')](_0x5f4ce9=>this[_0x28a2('0xd4')](_0x5f4ce9));return JSON[_0x28a2('0x26')](_0xca0fb);}[_0x28a2('0xd4')](_0xe309ae){if(_0xe309ae['is'](_0x28a2('0xcd')))return _0xe309ae[_0x28a2('0xd8')];{const _0x53f9ca=_0xe309ae;return{'type':Object[_0x28a2('0x89')](B)['find'](_0x330ad5=>_0xe309ae instanceof B[_0x330ad5]),'name':_0x53f9ca[_0x28a2('0x46')],'attributes':Array[_0x28a2('0xfb')](_0x53f9ca[_0x28a2('0x45')]()),'children':Array[_0x28a2('0xfb')](_0x53f9ca[_0x28a2('0x1')]())[_0x28a2('0x70')](_0x40cd80=>this[_0x28a2('0xd4')](_0x40cd80))};}}[_0x28a2('0xce')](_0x2ce67b,_0x33a8b0,_0x9b1f5f,_0x173e6c,_0x50c676){let _0xb14b5a=null,_0x186ed0=null,_0x4fe401=0x0;const _0x1c933b=this[_0x28a2('0xe6')]['model'];for(let _0xaff098=0x0;_0xaff098<_0x33a8b0[_0x28a2('0x8c')];_0xaff098++){const _0x3bbf80=this[_0x28a2('0x37')](_0x33a8b0[_0xaff098]),_0x4dd026=_0x33a8b0[_0xaff098][_0x28a2('0x5d')][_0x28a2('0x92')](_0x3bbf80),_0x4e734b=_0x9b1f5f['get'](_0x4dd026),_0x4c84d9=_0xaff098==_0x33a8b0['length']-0x1;(!_0xb14b5a&&_0x4e734b&&(_0xb14b5a=_0x4e734b,_0x186ed0=_0x33a8b0[_0xaff098]),_0xb14b5a&&(!_0x4e734b||_0x4e734b[_0x28a2('0xa2')]!=_0xb14b5a[_0x28a2('0xa2')]))&&(_0x2e05cf(_0x4e734b,L(_0x186ed0,_0x2ce67b,_0x1c933b),L(_0x33a8b0[_0xaff098],_0x2ce67b,_0x1c933b)),_0xb14b5a=_0x4e734b||null,_0x186ed0=_0x4e734b?_0x33a8b0[_0xaff098]:null),_0xb14b5a&&_0x4c84d9&&_0x2e05cf(_0x4e734b,L(_0x186ed0,_0x2ce67b,_0x1c933b),W(_0x33a8b0[_0xaff098],_0x2ce67b,_0x1c933b));}function _0x2e05cf(_0x44ac60,_0x2fe06e,_0x490abe){const _0x1dac59=_0xb14b5a[_0x28a2('0xa2')],_0x86f58e='revision:'+_0x173e6c+':'+_0x1dac59+':'+_0x4fe401++,_0x455ec3=_0x1c933b[_0x28a2('0xda')](_0x2fe06e,_0x490abe);_0x2ce67b[_0x28a2('0xf8')]['set'](_0x86f58e,_0x455ec3),null!==_0x1dac59&&_0x50c676['add'](_0x1dac59);}}[_0x28a2('0x37')](_0x1bdd47){switch(_0x1bdd47[_0x28a2('0x32')]){case _0x28a2('0xf1'):return _0x28a2('0x72');case'elementEnd':return _0x28a2('0x95');default:return'vid';}}['_fixOperation'](_0x55b317,_0x2d2504){_0x55b317[_0x28a2('0x22')]=null;for(const _0x541b2e in _0x55b317){const _0x26324f=_0x55b317[_0x541b2e];if(_0x26324f instanceof _0x31e047){const _0x178ca3=_0x2d2504[_0x28a2('0x3c')](_0x26324f[_0x28a2('0x5a')][_0x28a2('0xd7')]);_0x55b317[_0x541b2e]=this[_0x28a2('0xc8')](_0x26324f,_0x178ca3);}if(_0x26324f instanceof _0x51c84c){const _0xd0ead5=_0x2d2504[_0x28a2('0x3c')](_0x26324f['root'][_0x28a2('0xd7')]);_0x55b317[_0x541b2e]=this['_fixRange'](_0x26324f,_0xd0ead5);}'root'===_0x541b2e&&(_0x55b317[_0x28a2('0x5a')]=_0x2d2504['get'](_0x55b317[_0x28a2('0x5a')][_0x28a2('0xd7')]));}}[_0x28a2('0x9')](_0x162115,_0xa46513){return this[_0x28a2('0xe6')][_0x28a2('0xb')]['createRange'](this['_fixPosition'](_0x162115[_0x28a2('0xb7')],_0xa46513),this['_fixPosition'](_0x162115[_0x28a2('0xbe')],_0xa46513));}[_0x28a2('0xc8')](_0x472585,_0x186d80){return this[_0x28a2('0xe6')][_0x28a2('0xb')][_0x28a2('0xba')](_0x186d80,_0x472585['path'],_0x472585[_0x28a2('0x4e')]);}['_handleInsertOperation'](_0x1ae589){const _0x319008=this[_0x28a2('0xdc')][_0x28a2('0x3c')](_0x1ae589[_0x28a2('0x65')][_0x28a2('0x5a')][_0x28a2('0xd7')]),_0xc71cff=this[_0x28a2('0xc8')](_0x1ae589[_0x28a2('0x65')],_0x319008),_0x1bf6dc=null===_0x1ae589[_0x28a2('0xd6')]?null:_0x1ae589[_0x28a2('0xd6')]||this[_0x28a2('0xe6')][_0x28a2('0x1d')][_0x28a2('0x3c')](_0x28a2('0x75'))['me']['id'],_0x9c5516=_0xc71cff[_0x28a2('0x66')],_0x52c11b=this[_0x28a2('0xca')],_0x5e9ef1=[];for(const _0x15ee10 of _0x1ae589[_0x28a2('0x8e')])if(_0x15ee10['is']('element'))_0x5e9ef1[_0x28a2('0x68')](this[_0x28a2('0x4b')](_0x15ee10));else for(let _0x3e816f=0x0;_0x3e816f<_0x15ee10[_0x28a2('0x64')];_0x3e816f++)_0x5e9ef1['push'](new _0x2b9992(_0x28a2('0xcd'),{'vid':this[_0x28a2('0xca')]++}));const _0x121f03=this[_0x28a2('0xca')];for(let _0x1fc8e9=_0x52c11b;_0x1fc8e9<_0x121f03;_0x1fc8e9++)this[_0x28a2('0xb4')][_0x28a2('0x9b')](_0x1fc8e9,{'userId':_0x1bf6dc});_0x9c5516['_insertChild'](_0xc71cff[_0x28a2('0x39')],_0x5e9ef1);}[_0x28a2('0x1e')](_0x2e6d6d){(_0x2e6d6d=this['_cloneOperation'](_0x2e6d6d,this['_idsRoots']))['_execute']();const _0x4520c8=null===_0x2e6d6d[_0x28a2('0xd6')]?null:_0x2e6d6d[_0x28a2('0xd6')]||this[_0x28a2('0xe6')][_0x28a2('0x1d')][_0x28a2('0x3c')](_0x28a2('0x75'))['me']['id'],_0x50e8e4=_0x2e6d6d['getMovedRangeStart'](),_0x89ff46=_0x50e8e4[_0x28a2('0x66')],_0x4c8fd9=_0x50e8e4[_0x28a2('0x39')];!function _0x5c3ab1(_0x5bebf4,_0x21dcdd,_0x2883cc,_0x59c2f5){for(let _0x46b315=_0x2883cc;_0x46b315<_0x59c2f5;_0x46b315++){const _0x28d591=_0x21dcdd[_0x28a2('0x69')](_0x46b315);_0x28d591['is']('element',_0x28a2('0xcd'))?_0x5bebf4[_0x28a2('0x9b')](_0x28d591[_0x28a2('0x92')](_0x28a2('0x11')),{'userId':_0x4520c8}):(_0x5bebf4[_0x28a2('0x9b')](_0x28d591[_0x28a2('0x92')](_0x28a2('0x72')),{'userId':_0x4520c8}),_0x5c3ab1(_0x5bebf4,_0x28d591,0x0,_0x28d591['childCount']),_0x5bebf4[_0x28a2('0x9b')](_0x28d591[_0x28a2('0x92')](_0x28a2('0x95')),{'userId':_0x4520c8}));}}(this[_0x28a2('0xb4')],_0x89ff46,_0x4c8fd9,_0x4c8fd9+_0x2e6d6d[_0x28a2('0x34')]);}[_0x28a2('0xcb')](_0x3c2a69){const _0x3bd901=null===(_0x3c2a69=this[_0x28a2('0xb6')](_0x3c2a69,this[_0x28a2('0xdc')]))[_0x28a2('0xd6')]?null:_0x3c2a69['_authorId']||this['editor'][_0x28a2('0x1d')][_0x28a2('0x3c')](_0x28a2('0x75'))['me']['id'],_0xab1c17=_0x3c2a69['targetPosition'][_0x28a2('0x66')],_0x19bf24=_0x3c2a69[_0x28a2('0x61')][_0x28a2('0x66')],_0x5cf7f1=_0xab1c17['getAttribute'](_0x28a2('0x95')),_0x1c4faf=_0x19bf24['getAttribute'](_0x28a2('0x72'));_0xab1c17[_0x28a2('0x54')]('vid_end',_0x19bf24[_0x28a2('0x92')](_0x28a2('0x95'))),_0x19bf24[_0x28a2('0x54')](_0x28a2('0x95'),_0x5cf7f1),this[_0x28a2('0xb4')][_0x28a2('0x9b')](_0x1c4faf,{'userId':_0x3bd901}),this[_0x28a2('0xb4')][_0x28a2('0x9b')](_0x5cf7f1,{'userId':_0x3bd901}),_0x3c2a69[_0x28a2('0xad')]();}[_0x28a2('0xc5')](_0x2c8f2c){const _0x53e623=null===(_0x2c8f2c=this[_0x28a2('0xb6')](_0x2c8f2c,this['_idsRoots']))[_0x28a2('0xd6')]?null:_0x2c8f2c[_0x28a2('0xd6')]||this[_0x28a2('0xe6')][_0x28a2('0x1d')]['get'](_0x28a2('0x75'))['me']['id'],_0x141734=_0x2c8f2c[_0x28a2('0xd5')],_0x5d68a3=_0x2c8f2c['splitPosition'][_0x28a2('0x66')];_0x2c8f2c[_0x28a2('0xad')]();const _0x520d41=_0x5d68a3[_0x28a2('0x92')](_0x28a2('0x95')),_0x2219e5=_0x2c8f2c[_0x28a2('0x73')][_0x28a2('0x94')];if(_0x141734){const _0x1b75d1=_0x2219e5[_0x28a2('0x92')](_0x28a2('0x95')),_0x410aeb=_0x5d68a3[_0x28a2('0x92')]('vid_end');_0x5d68a3[_0x28a2('0x54')](_0x28a2('0x95'),_0x1b75d1),_0x2219e5[_0x28a2('0x54')](_0x28a2('0x95'),_0x410aeb),this[_0x28a2('0xb4')][_0x28a2('0x9b')](_0x5d68a3[_0x28a2('0x92')](_0x28a2('0x95')),{'userId':_0x53e623}),this[_0x28a2('0xb4')][_0x28a2('0x9b')](_0x2219e5['getAttribute'](_0x28a2('0x72')),{'userId':_0x53e623});}else{const _0x135032=this[_0x28a2('0xca')]++,_0x446025=this[_0x28a2('0xca')]++;_0x5d68a3[_0x28a2('0x54')](_0x28a2('0x95'),_0x135032),_0x2219e5['_setAttribute'](_0x28a2('0x72'),_0x446025),_0x2219e5['_setAttribute'](_0x28a2('0x95'),_0x520d41),this[_0x28a2('0xb4')][_0x28a2('0x9b')](_0x135032,{'userId':_0x53e623}),this[_0x28a2('0xb4')][_0x28a2('0x9b')](_0x446025,{'userId':_0x53e623});}}[_0x28a2('0x9f')](_0x422f39){if(!_0x422f39[_0x28a2('0x29')])return;const _0x303768=(_0x422f39=this[_0x28a2('0xb6')](_0x422f39,this['_diffRoots']))[_0x28a2('0xe7')]?_0x422f39[_0x28a2('0xe7')][_0x28a2('0x5a')]:null,_0x2867a3=_0x422f39[_0x28a2('0x33')]?_0x422f39[_0x28a2('0x33')][_0x28a2('0x5a')]:null;_0x303768&&this['_markers']['delete'](_0x422f39[_0x28a2('0x46')]),_0x2867a3&&this['_markers'][_0x28a2('0x9b')](_0x422f39[_0x28a2('0x46')],_0x422f39['newRange'][_0x28a2('0xde')]());const _0x1eb63e=null===_0x422f39['_authorId']?null:_0x422f39['_authorId']||this['editor'][_0x28a2('0x1d')][_0x28a2('0x3c')](_0x28a2('0x75'))['me']['id'],_0x21d37b=_0x422f39[_0x28a2('0x46')];if(!this[_0x28a2('0x6f')][_0x28a2('0x3f')](_0x21d37b))return void this[_0x28a2('0x6f')]['set'](_0x21d37b,{'range':_0x422f39[_0x28a2('0xe7')],'userId':_0x1eb63e});const _0x2f9497=this[_0x28a2('0x6f')][_0x28a2('0x3c')](_0x21d37b),_0x2d0aea=_0x2f9497['range'],_0x32822e=_0x422f39[_0x28a2('0x33')];null==_0x2d0aea&&null==_0x32822e||_0x2d0aea&&_0x32822e&&_0x2d0aea['isEqual'](_0x32822e)?this[_0x28a2('0x6f')]['delete'](_0x422f39['name']):_0x2f9497[_0x28a2('0xa2')]=_0x1eb63e;}['_handleRootOperation'](_0x59d060,_0x596dc4){this[_0x28a2('0x6e')][_0x28a2('0x3f')](_0x59d060[_0x28a2('0xd7')])?this[_0x28a2('0x6e')][_0x28a2('0x3c')](_0x59d060[_0x28a2('0xd7')])[_0x28a2('0x31')]=_0x59d060[_0x28a2('0xa0')]:(this[_0x28a2('0x6e')][_0x28a2('0x9b')](_0x59d060[_0x28a2('0xd7')],G(_0x59d060[_0x28a2('0xd7')],!0x0)),this[_0x28a2('0x50')][_0x28a2('0x9b')](_0x59d060[_0x28a2('0xd7')],{}),_0x596dc4&&this[_0x28a2('0xdc')]['set'](_0x59d060[_0x28a2('0xd7')],G(_0x59d060[_0x28a2('0xd7')],!0x0)));const _0x263ec9=null===_0x59d060[_0x28a2('0xd6')]?null:_0x59d060['_authorId']||this[_0x28a2('0xe6')][_0x28a2('0x1d')]['get'](_0x28a2('0x75'))['me']['id'],_0x3e268f=this['_touchedRoots'][_0x28a2('0x3c')](_0x59d060['rootName']);_0x3e268f&&_0x3e268f['userId']===_0x263ec9?this[_0x28a2('0xf7')][_0x28a2('0x3b')](_0x59d060[_0x28a2('0xd7')]):this['_touchedRoots'][_0x28a2('0x9b')](_0x59d060['rootName'],{'userId':_0x263ec9,'isAttached':_0x59d060['isAdd']});}[_0x28a2('0x6')](_0x317321){const _0xdda846=this['_diffRootsAttributes'][_0x28a2('0x3c')](_0x317321[_0x28a2('0x5a')][_0x28a2('0xd7')]);null===_0x317321[_0x28a2('0x59')]?delete _0xdda846[_0x317321[_0x28a2('0xdb')]]:_0xdda846[_0x317321[_0x28a2('0xdb')]]=_0x317321['newValue'];}}function q(_0x3140af){const _0x1529fb=G(_0x3140af[_0x28a2('0xd7')],_0x3140af[_0x28a2('0x6a')]());for(const _0x5ac4c1 of _0x3140af[_0x28a2('0x1')]()){const _0x4a1348=_0x5ac4c1[_0x28a2('0x79')](!0x0);_0x1529fb[_0x28a2('0x5c')](_0x4a1348);}return _0x1529fb;}function G(_0x12a5c8,_0x148a45=!0x0){const _0x3751e2=new _0x262073();return _0x3751e2[_0x28a2('0xd7')]=_0x12a5c8,_0x3751e2[_0x28a2('0x31')]=_0x148a45,_0x3751e2[_0x28a2('0x6a')]=()=>_0x3751e2[_0x28a2('0x31')],_0x3751e2;}function L(_0x36ba8f,_0xe0737c,_0x57d767){const _0x4b55d5='elementEnd'==_0x36ba8f[_0x28a2('0x32')]?_0x57d767[_0x28a2('0x96')](_0x36ba8f[_0x28a2('0x5d')],'end'):_0x57d767[_0x28a2('0x86')](_0x36ba8f['item']);return _0x57d767[_0x28a2('0xba')](_0xe0737c,_0x4b55d5['path'],_0x4b55d5['stickiness']);}function W(_0x23f104,_0x5dc98f,_0x5d80fb){const _0x67a6a5=_0x28a2('0xf1')==_0x23f104[_0x28a2('0x32')]?_0x5d80fb[_0x28a2('0x96')](_0x23f104[_0x28a2('0x5d')],0x0):_0x5d80fb[_0x28a2('0x99')](_0x23f104[_0x28a2('0x5d')]);return _0x5d80fb[_0x28a2('0xba')](_0x5dc98f,_0x67a6a5[_0x28a2('0x36')],_0x67a6a5[_0x28a2('0x4e')]);}
|