@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231107.0 → 0.0.0-nightly-20231108.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 _0x33ad=['vid_end','_handleMoveOperation','init','editor','has','element','get','children','_saveMetaData','item','remove','revisionHistory.resumeUnsavedRevision','_initialRevisionId','getUser','getMovedRangeStart','_clone','adapter','_baseRootsAttributes','_isInit','getAttribute','_handleMarkerOperation','affectsData','document','_loadState','conversion','define','config','_handleRootAttributeOperation','insertionPosition','addRoot','end','markerToData','revision','userId','hasContent','isEqual','_baseRoots','splitPosition','_setAttribute','createRange','getRoot','_fixRange','version','_lastTo','getRevisions','createPositionAfter','source','toModel','keys','root','_handleRootOperation','markers','fromVersion','delete','howMany','for','size','NEGATIVE_INFINITY','previousPosition','_makeIdsRoot','_revisionId','deletions','_handleInsertOperation','newValue','_calculateMetaData','buildRevisionData','_generateTape','_findInsertionIndex','_savedMetaData','ready','shift','insertion','_markChanges','_diffRoots','_removeRevisionMarkers','offsetSize','vid','_fixPosition','_setConversion','pluginName','childCount','saveRevision','currentRevision','insert','_handleMergeOperation','addRevisionData','Empty\x20document','_loadRevisionData','creatorId','editor-initial-data-replaced-with-revision-data','collaboration.channelId','_revisionDataBuilder','changeRootAttribute','filter','authorsIds','_operations','_getViewJson','getIndex','_createFromRanges','_touched','_makeModelFromViewString','_insertChild','documentFragment','_diffRootsAttributes','_authorId','offset','startsWith','start','string','resolve','creator','_bufferedUpdates','plugins','oldRange','_isPendingUpdate','addRootAttribute','revision-start','createdAt','getLatestVersion','_startingRevisionId','getRevisionRootsAttributes','editing','revision:','dataToMarker','newRange','_prepareViewToSave','trim','text','_transformMarkers','getTime','isReady','RevisionTracker','Users','some','set','max','nodes','parse','isAdd','_markers','_applyOperations','authors','name','values','stickiness','initialData','rootName','range','history','tableCell','processor','_baseIdsRoots','reInit','from','_execute','length','initial','_loadedStateData','createPositionAt','getChildren','useFillerType','_cloneOperation','merge','targetPosition','slice','key','add','attributesAfter','getCurrentRevisionId','parent','_replaceEditorDataWithRevisionData','stringify','toVersion','locale','_removePendingAction','toView','repository','view','_isAttached','clear','isAttached','fromEntries','find','path','deletion','createPositionFromPath','_update','$graveyard','_fixOperation','bind','_processRootBeforeSave','model','_getBaseVids','isEnabled','_reset','_getState','attributes','clone','_handleSplitOperation','_bufferUpdate','loadState','diffData','attachChange','keepParagraph','_getVidAttributeName','getAttributes','getChild','getRootNames','map','_pendingAction','update','afterInit','split','getOperations','_lastFrom','$text','forEach','sendBufferedUpdates','elementStart','_source','data','setRevisionData','baseVersion','_continueCurrentRevision','getNodeByPath','getRevision','_idsRoots','revision-end','attributesBefore','reverse','_getFromVersion','push','getData','_getPreviousFrom','type','dataDowncast','_removeMetaData','upcast','_addPendingAction','_touchedMarkers','toData','getRevisionDocumentData','_createInitialRevision','PENDING_ACTION_REVISION_HISTORY','_startingVersion','sourcePosition','_touchedRoots','insertions','getOperation','removeRootAttribute','rootsAttributes','createPositionBefore','addRevision','getWalker','updateRevisions','vid_start','createRevision','position','_makeRevision','roots','_copyMarkers','elementEnd'];(function(_0x5c3074,_0x33adc6){const _0x5cf2c4=function(_0x2a6012){while(--_0x2a6012){_0x5c3074['push'](_0x5c3074['shift']());}};_0x5cf2c4(++_0x33adc6);}(_0x33ad,0x1e7));const _0x5cf2=function(_0x5c3074,_0x33adc6){_0x5c3074=_0x5c3074-0x0;let _0x5cf2c4=_0x33ad[_0x5c3074];return _0x5cf2c4;};import{Users as _0x48f056}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x536510,PendingActions as _0x20e1f4}from'ckeditor5/src/core';import{logWarning as _0x2c2fd0,uid as _0x5c1603}from'ckeditor5/src/utils';import{Position as _0x20373b,Range as _0x3397d3,Element as _0x5c04ee,DocumentFragment as _0x4ebffa,ViewText as _0x1b245b,ViewElement as _0x14aedc,ViewContainerElement as _0x38157c,ViewAttributeElement as _0xd2dc42,ViewEmptyElement as _0x27cc7a,ViewRawElement as _0x4d4167,ViewUIElement as _0x206399,ViewDocumentFragment as _0x5e5223}from'ckeditor5/src/engine';import _0x2ee279 from'./revisionsrepository';import{getTranslation as _0x420efb}from'./utils/common-translations';import{cloneDeep as _0x1f1eda,isEqual as _0x77f02e}from'lodash-es';const B={'c':_0x38157c,'a':_0xd2dc42,'e':_0x27cc7a,'r':_0x4d4167,'u':_0x206399};export default class l extends _0x536510{static get[_0x5cf2('0x74')](){return _0x5cf2('0xa8');}static get['requires'](){return[_0x48f056,_0x2ee279,_0x20e1f4];}constructor(_0x489e54){super(_0x489e54),this[_0x5cf2('0x35')]=null,this[_0x5cf2('0x77')]=null,this['_revisionDataBuilder']=new H(this[_0x5cf2('0x28')]),this[_0x5cf2('0x31')]=this['editor'][_0x5cf2('0x3f')][_0x5cf2('0x2b')](_0x5cf2('0x7f'))||_0x5cf2('0xc1'),this['_bufferedUpdates']=new Map(),this[_0x5cf2('0xc2')]=null;const _0x5d33b5=_0x5c1603();this[_0x5cf2('0x100')]={'history':this[_0x5cf2('0x28')][_0x5cf2('0xe4')][_0x5cf2('0x3b')][_0x5cf2('0xb9')],'getLatestVersion':()=>Promise[_0x5cf2('0x92')](this[_0x5cf2('0x28')][_0x5cf2('0xe4')][_0x5cf2('0x3b')]['version']),'getCurrentRevisionId':()=>_0x5d33b5},this[_0x5cf2('0xab')](_0x5cf2('0xa7'),!0x1),this['set'](_0x5cf2('0xe6'),!0x0),this['set']('_isPendingUpdate',!0x1),this['editor'][_0x5cf2('0x3f')][_0x5cf2('0x3e')](_0x5cf2('0x30'),!0x0),this[_0x5cf2('0x28')][_0x5cf2('0x3d')][_0x5cf2('0x5c')](_0x5cf2('0xc'))[_0x5cf2('0xa0')]({'view':'revision'});}[_0x5cf2('0x27')](){this['repository']=this[_0x5cf2('0x28')][_0x5cf2('0x95')][_0x5cf2('0x2b')]('RevisionsRepository'),this[_0x5cf2('0x73')](),this[_0x5cf2('0x28')]['data']['on'](_0x5cf2('0x6a'),()=>{const _0x4908fe=this[_0x5cf2('0xd5')][_0x5cf2('0x0')](0x0),_0x43e1a5=_0x4908fe&&null===_0x4908fe[_0x5cf2('0x93')]?_0x4908fe:null;if(this[_0x5cf2('0x104')]=!!_0x43e1a5&&this[_0x5cf2('0x28')]['config'][_0x5cf2('0x2b')](_0x5cf2('0x30')),this[_0x5cf2('0x28')][_0x5cf2('0x95')][_0x5cf2('0x29')]('RealTimeCollaborationClient')){const _0xd15ba2=this[_0x5cf2('0x100')][_0x5cf2('0xcd')](),_0x1e4359=this[_0x5cf2('0xd5')]['getRevision'](_0xd15ba2);if(_0x1e4359)this[_0x5cf2('0x13')]=_0x1e4359[_0x5cf2('0x59')],this[_0x5cf2('0x104')]=!0x1;else{const _0xa67ee4=this['_source'][_0x5cf2('0xb9')][_0x5cf2('0x84')][_0x5cf2('0xdb')](_0x4f1045=>!_0x4f1045[_0x5cf2('0x37')]),_0x213cfa=_0xa67ee4?_0xa67ee4[_0x5cf2('0x103')]:this['_source'][_0x5cf2('0xb9')][_0x5cf2('0x4f')];_0x4908fe?(_0x4908fe['toVersion']<_0x213cfa&&_0x4908fe[_0x5cf2('0xdf')]({'toVersion':_0x213cfa}),this[_0x5cf2('0x104')]?(this[_0x5cf2('0x100')][_0x5cf2('0xcd')]=()=>_0x43e1a5['id'],this['_startingVersion']=_0x43e1a5[_0x5cf2('0x59')]):(this[_0x5cf2('0x13')]=_0x4908fe[_0x5cf2('0xd1')],this[_0x5cf2('0x104')]=!0x1)):(this['_startingVersion']=_0x213cfa,this[_0x5cf2('0x104')]=!0x1);}}else _0x43e1a5&&(this[_0x5cf2('0x28')]['model'][_0x5cf2('0x3b')][_0x5cf2('0xb9')][_0x5cf2('0x4f')]=Math[_0x5cf2('0xac')](_0x43e1a5[_0x5cf2('0xd1')],this[_0x5cf2('0x28')][_0x5cf2('0xe4')][_0x5cf2('0x3b')][_0x5cf2('0xb9')][_0x5cf2('0x4f')]),_0x43e1a5[_0x5cf2('0x59')]===_0x43e1a5[_0x5cf2('0xd1')]?(0x0!==_0x43e1a5['fromVersion']&&(this[_0x5cf2('0x100')][_0x5cf2('0xcd')]=()=>_0x43e1a5['id']),this[_0x5cf2('0x104')]=!0x1):this[_0x5cf2('0x104')]&&(this[_0x5cf2('0x100')][_0x5cf2('0xcd')]=()=>_0x43e1a5['id'],this[_0x5cf2('0x13')]=_0x43e1a5['fromVersion'])),this[_0x5cf2('0x104')]||(this[_0x5cf2('0x13')]=this[_0x5cf2('0x28')][_0x5cf2('0xe4')][_0x5cf2('0x3b')][_0x5cf2('0x4f')]);this[_0x5cf2('0x80')][_0x5cf2('0x27')](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this[_0x5cf2('0x13')]),this[_0x5cf2('0x35')]&&this[_0x5cf2('0xfe')]();}),this[_0x5cf2('0xe2')](_0x5cf2('0xa7'))['to'](this,_0x5cf2('0x97'),_0x3efcbe=>!_0x3efcbe);}async[_0x5cf2('0xf8')](){if(this[_0x5cf2('0xd5')][_0x5cf2('0xc0')]>0x0){const _0x216705=this[_0x5cf2('0xd5')][_0x5cf2('0x0')](0x0),_0x5c561d=await this[_0x5cf2('0x10')](_0x216705),_0x2978b6=await this[_0x5cf2('0x9d')](_0x216705);this[_0x5cf2('0xcf')](_0x5c561d,_0x2978b6);}}['setSource'](_0x49482a){this[_0x5cf2('0x100')]=_0x49482a;}async[_0x5cf2('0xf7')](){const _0x53c9f6=await this['_source']['getLatestVersion']();if(_0x53c9f6>this[_0x5cf2('0x77')][_0x5cf2('0xd1')]){await this[_0x5cf2('0x3c')]();const _0x216663=this['buildRevisionData']({'revision':this[_0x5cf2('0x77')],'to':_0x53c9f6});_0x216663[_0x5cf2('0xb2')]=_0x216663[_0x5cf2('0x83')][_0x5cf2('0xf5')](_0x2dd3bd=>this['editor']['plugins'][_0x5cf2('0x2b')]('Users')['getUser'](_0x2dd3bd)),this[_0x5cf2('0x77')]['_update'](_0x216663);}}async[_0x5cf2('0x3c')](){this['_continueCurrentRevision']&&!this[_0x5cf2('0xc2')]&&(await this[_0x5cf2('0x7c')](this[_0x5cf2('0x77')]),this[_0x5cf2('0x80')][_0x5cf2('0xed')](this[_0x5cf2('0x77')]),this['_loadedStateData']={'fromVersion':this['currentRevision'][_0x5cf2('0x59')],'authors':this[_0x5cf2('0x77')][_0x5cf2('0xb2')][_0x5cf2('0xc9')]()});}async[_0x5cf2('0x76')](_0x5c8e7a={},_0x12116f=null){const _0x41fe6e=[];await this[_0x5cf2('0x3c')](),this[_0x5cf2('0x104')]=!0x1,_0x12116f>this[_0x5cf2('0x77')][_0x5cf2('0xd1')]&&(_0x12116f=null),null===_0x12116f&&(_0x12116f=await this['_source'][_0x5cf2('0x9b')]());const _0x28b199=this[_0x5cf2('0x5')](_0x12116f),_0x2bb6de=this['buildRevisionData']({'from':_0x28b199,'to':_0x12116f});if(this['currentRevision'][_0x5cf2('0xd1')]<_0x12116f){const _0x583a57=this[_0x5cf2('0x66')]({'revision':this[_0x5cf2('0x77')],'from':_0x12116f,'to':_0x12116f});_0x583a57[_0x5cf2('0xb2')]=[],_0x583a57['authorsIds']=[],_0x583a57['id']=this['currentRevision']['id'],this[_0x5cf2('0x77')]['_update'](_0x583a57,!0x0),delete _0x583a57[_0x5cf2('0xb2')],_0x41fe6e[_0x5cf2('0x6')](_0x583a57);}_0x5c8e7a[_0x5cf2('0x7d')]=this[_0x5cf2('0x28')][_0x5cf2('0x95')][_0x5cf2('0x2b')](_0x5cf2('0xa9'))['me']['id'],_0x5c8e7a[_0x5cf2('0xb3')]=_0x5c8e7a[_0x5cf2('0xb3')]||null,_0x5c8e7a['id']=_0x5c8e7a['id']||_0x5c1603(),_0x5c8e7a={..._0x5c8e7a,..._0x2bb6de};const _0x266d1e=this[_0x5cf2('0x7a')](_0x5c8e7a);_0x41fe6e['push'](_0x5c8e7a);const _0x5e86f1=this[_0x5cf2('0xd5')][_0x5cf2('0x86')](_0x266d1e);if(0x0!==_0x5e86f1){const _0x5f3501=this[_0x5cf2('0xd5')][_0x5cf2('0x0')](_0x5e86f1-0x1);if(_0x5f3501[_0x5cf2('0x59')]!==_0x12116f){const _0xfa28a8=this[_0x5cf2('0x80')][_0x5cf2('0x7')](_0x12116f,_0x5f3501[_0x5cf2('0xd1')]),_0x6f678c={'id':_0x5f3501['id'],'diffData':_0xfa28a8['diffData'],'authorsIds':_0xfa28a8[_0x5cf2('0x83')],'authors':_0xfa28a8[_0x5cf2('0x83')][_0x5cf2('0xf5')](_0xd82649=>this[_0x5cf2('0x28')][_0x5cf2('0x95')][_0x5cf2('0x2b')]('Users')[_0x5cf2('0x32')](_0xd82649)),'fromVersion':_0x12116f};_0x5f3501===this['currentRevision']&&(_0x6f678c[_0x5cf2('0x9a')]=new Date(_0x5c8e7a[_0x5cf2('0x9a')][_0x5cf2('0xa6')]()+0xa)),_0x5f3501[_0x5cf2('0xdf')](_0x6f678c,!0x0),delete _0x6f678c['authors'],_0x41fe6e[_0x5cf2('0x6')](_0x6f678c);}}if(this[_0x5cf2('0x35')]){for(const _0x2fca70 of _0x41fe6e)this[_0x5cf2('0xec')](_0x2fca70['id'],_0x2fca70,!0x0);this[_0x5cf2('0xfe')]();}return _0x266d1e;}[_0x5cf2('0x7a')](_0x548f91){const _0x28bb85=this['repository'][_0x5cf2('0x1f')](_0x548f91);return this[_0x5cf2('0x35')]&&_0x28bb85['on'](_0x5cf2('0xdf'),(_0x46993d,_0x527807,_0x51bac6)=>{_0x51bac6||(this[_0x5cf2('0xec')](_0x527807['id'],_0x527807,!0x0),this[_0x5cf2('0xfe')]());}),this[_0x5cf2('0xd5')][_0x5cf2('0x1b')](_0x28bb85,this[_0x5cf2('0x68')](_0x28bb85)),_0x28bb85;}async['getRevisionDocumentData'](_0x2634f1){await this['_loadRevisionData'](_0x2634f1);const _0x261955={};for(const _0xa1e9eb in _0x2634f1['diffData']){if(_0x2634f1[_0x5cf2('0xee')][_0xa1e9eb][_0x5cf2('0xef')]&&!_0x2634f1[_0x5cf2('0xee')][_0xa1e9eb][_0x5cf2('0xef')]['isAttached'])continue;const _0x15d86a=this[_0x5cf2('0x6f')](JSON[_0x5cf2('0xae')](_0x2634f1[_0x5cf2('0xee')][_0xa1e9eb][_0x5cf2('0x16')])),_0x50e76e=this[_0x5cf2('0x28')]['editing']['view']['document'],_0x4fde59=new _0x5e5223(_0x50e76e,_0x15d86a[_0x5cf2('0xf5')](_0x440ace=>J(_0x440ace,this[_0x5cf2('0x28')])));this[_0x5cf2('0x28')][_0x5cf2('0x101')][_0x5cf2('0xbb')][_0x5cf2('0xc5')]('marked'),_0x261955[_0xa1e9eb]=this['editor'][_0x5cf2('0x101')][_0x5cf2('0xbb')][_0x5cf2('0xf')](_0x4fde59),this[_0x5cf2('0x28')][_0x5cf2('0x101')][_0x5cf2('0xbb')][_0x5cf2('0xc5')]('default');}return _0x261955;}async[_0x5cf2('0x9d')](_0x201017){await this['_loadRevisionData'](_0x201017);const _0x31e963={};for(const _0x50c291 in _0x201017['diffData'])_0x201017[_0x5cf2('0xee')][_0x50c291][_0x5cf2('0xef')]&&!_0x201017['diffData'][_0x50c291][_0x5cf2('0xef')][_0x5cf2('0xd9')]||(_0x31e963[_0x50c291]=_0x201017['diffData'][_0x50c291][_0x5cf2('0xcc')]||{});return _0x31e963;}[_0x5cf2('0xfe')](){if(0x0===this['_bufferedUpdates'][_0x5cf2('0x5d')])return;if(this[_0x5cf2('0x97')])return;let _0x40f55e=Array[_0x5cf2('0xbe')](this['_bufferedUpdates']['values']());this[_0x5cf2('0x94')][_0x5cf2('0xd8')]();for(let _0x3d62bf=0x0;_0x3d62bf<_0x40f55e['length'];_0x3d62bf++){const _0x47fc36=_0x40f55e[_0x3d62bf];let _0x1258ea=!0x1;for(const _0x18a3b9 of Object[_0x5cf2('0x55')](_0x47fc36))void 0x0===_0x47fc36[_0x18a3b9]?delete _0x47fc36[_0x18a3b9]:'id'!==_0x18a3b9&&(_0x1258ea=!0x0);_0x1258ea||(_0x40f55e[_0x3d62bf]=null);}if(_0x40f55e=_0x40f55e[_0x5cf2('0x82')](_0x13e989=>null!==_0x13e989),!_0x40f55e[_0x5cf2('0xc0')])return;for(let _0x1fbe44=0x0;_0x1fbe44<_0x40f55e[_0x5cf2('0xc0')];_0x1fbe44++){const _0x5087df=_0x40f55e[_0x1fbe44];void 0x0!==_0x5087df[_0x5cf2('0x59')]&&void 0x0===_0x5087df[_0x5cf2('0xd1')]&&(_0x5087df[_0x5cf2('0xd1')]=this[_0x5cf2('0xd5')][_0x5cf2('0x0')](_0x5087df['id'])[_0x5cf2('0xd1')]),void 0x0!==_0x5087df[_0x5cf2('0xd1')]&&void 0x0===_0x5087df[_0x5cf2('0x59')]&&(_0x5087df[_0x5cf2('0x59')]=this[_0x5cf2('0xd5')]['getRevision'](_0x5087df['id'])[_0x5cf2('0x59')]);}const _0x112857=this[_0x5cf2('0x28')]['config'][_0x5cf2('0x2b')](_0x5cf2('0x7f'));this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this[_0x5cf2('0x35')][_0x5cf2('0x1d')](_0x40f55e,_0x112857)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x278b9c=>{if(_0x278b9c)for(const _0x59f2be of _0x278b9c)this[_0x5cf2('0x102')]({'id':_0x59f2be['id'],'createdAt':_0x59f2be[_0x5cf2('0x9a')]});this[_0x5cf2('0xd3')](),this[_0x5cf2('0xfe')]();});}[_0x5cf2('0xcf')](_0x376440,_0x353fc9){let _0x57ff1f=this[_0x5cf2('0x28')][_0x5cf2('0x3f')][_0x5cf2('0x2b')](_0x5cf2('0xb6')),_0x493030=this['editor'][_0x5cf2('0x3f')][_0x5cf2('0x2b')](_0x5cf2('0x19'));if(void 0x0===_0x57ff1f){_0x57ff1f={};for(const _0x38df98 of this[_0x5cf2('0x28')][_0x5cf2('0xe4')][_0x5cf2('0x3b')][_0x5cf2('0xf4')]())_0x57ff1f[_0x38df98]='';}if(_0x5cf2('0x91')==typeof _0x57ff1f&&(_0x57ff1f={'main':_0x57ff1f}),void 0x0===_0x493030){_0x493030={};for(const _0x3f371f of this['editor']['model'][_0x5cf2('0x3b')]['getRootNames']())_0x493030[_0x3f371f]={};}let _0x549275=!0x1;const _0x189e77=Object[_0x5cf2('0x55')](_0x57ff1f),_0x5f3eb8=Object[_0x5cf2('0x55')](_0x376440);for(const _0x5d0116 of _0x189e77){if(_0x57ff1f[_0x5d0116]!==_0x376440[_0x5d0116]&&''!==_0x57ff1f[_0x5d0116][_0x5cf2('0xa3')]()){_0x549275=!0x0;break;}if(!_0x77f02e(_0x493030[_0x5d0116],_0x353fc9[_0x5d0116])&&Object[_0x5cf2('0x55')](_0x493030[_0x5d0116])[_0x5cf2('0xc0')]>0x0){_0x549275=!0x0;break;}}_0x549275||(_0x549275=_0x5f3eb8[_0x5cf2('0xaa')](_0x5c41c7=>!this[_0x5cf2('0x28')]['model'][_0x5cf2('0x3b')][_0x5cf2('0x4d')](_0x5c41c7))),_0x549275&&_0x2c2fd0(_0x5cf2('0x7e'),{'editorData':_0x57ff1f,'editorRootsAttributes':_0x493030,'revisionData':_0x376440,'revisionRootsAttributes':_0x353fc9}),this[_0x5cf2('0x28')][_0x5cf2('0x3f')][_0x5cf2('0xab')]('initialData',_0x376440),this[_0x5cf2('0x28')][_0x5cf2('0x3f')][_0x5cf2('0xab')](_0x5cf2('0x19'),_0x353fc9);}[_0x5cf2('0xd')](){if(!this['_pendingAction']){const _0x3a27a7=this[_0x5cf2('0x28')][_0x5cf2('0x95')]['get']('PendingActions');this[_0x5cf2('0xf6')]=_0x3a27a7[_0x5cf2('0xcb')](_0x420efb(this[_0x5cf2('0x28')][_0x5cf2('0xd2')],_0x5cf2('0x12')));}}['_removePendingAction'](){this['_pendingAction']&&(this[_0x5cf2('0x28')][_0x5cf2('0x95')][_0x5cf2('0x2b')]('PendingActions')[_0x5cf2('0x2f')](this[_0x5cf2('0xf6')]),this[_0x5cf2('0xf6')]=null);}[_0x5cf2('0x68')](_0x17e7c3){const _0x12face=this['repository'][_0x5cf2('0x51')]();_0x12face[_0x5cf2('0x4')]();let _0x13c098=0x0;for(;_0x13c098<_0x12face[_0x5cf2('0xc0')];){const _0x17174c=_0x12face[_0x13c098];if(_0x17174c===this['currentRevision']){_0x13c098++;continue;}if(_0x17174c['id']===this[_0x5cf2('0x31')])break;const _0x13b7ec=_0x17e7c3[_0x5cf2('0xd1')]-_0x17174c['toVersion']||_0x17e7c3[_0x5cf2('0x59')]-_0x17174c[_0x5cf2('0x59')];if(_0x13b7ec>0x0)break;if(_0x13b7ec<0x0)_0x13c098++;else{if(!_0x17e7c3[_0x5cf2('0x93')]&&_0x17174c[_0x5cf2('0x93')])break;if(_0x17174c[_0x5cf2('0x93')]||!_0x17e7c3[_0x5cf2('0x93')]){if(_0x17e7c3[_0x5cf2('0x9a')]>_0x17174c['createdAt'])break;_0x13c098++;}else _0x13c098++;}}return _0x13c098;}[_0x5cf2('0x102')](_0x219284){const _0x254443=this[_0x5cf2('0xd5')][_0x5cf2('0x0')](_0x219284['id']);if(_0x219284['createdAt']&&(_0x219284['createdAt']=new Date(_0x219284[_0x5cf2('0x9a')])),_0x219284['authorsIds']){const _0x3a3eaa=this[_0x5cf2('0x28')][_0x5cf2('0x95')][_0x5cf2('0x2b')](_0x5cf2('0xa9'));_0x219284[_0x5cf2('0xb2')]=_0x219284[_0x5cf2('0x83')][_0x5cf2('0xf5')](_0x177317=>_0x3a3eaa['getUser'](_0x177317));}_0x254443[_0x5cf2('0xdf')](_0x219284,!0x0);}[_0x5cf2('0x66')]({revision:_0x566675=null,from:_0x3262a8=null,to:_0x2aa91d=null}){_0x3262a8=null!==_0x3262a8?_0x3262a8:_0x566675['fromVersion'],_0x2aa91d=null!==_0x2aa91d?_0x2aa91d:_0x566675[_0x5cf2('0xd1')];const _0x13dfba=this[_0x5cf2('0x80')]['getData'](_0x3262a8,_0x2aa91d),_0x64085={'diffData':_0x13dfba['diffData'],'authorsIds':_0x13dfba[_0x5cf2('0x83')],'fromVersion':_0x3262a8,'toVersion':_0x2aa91d};if(!_0x566675||_0x2aa91d!==_0x566675[_0x5cf2('0xd1')]){const _0x18bd80=_0x2aa91d-0x1,_0x2a2b1b=this[_0x5cf2('0x100')]['history'][_0x5cf2('0x17')](_0x18bd80);_0x64085[_0x5cf2('0x9a')]=_0x2a2b1b&&_0x2a2b1b['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3262a8===this[_0x5cf2('0xc2')]['fromVersion'])for(const _0x1244d9 of this['_loadedStateData'][_0x5cf2('0xb2')])_0x64085[_0x5cf2('0x83')]['includes'](_0x1244d9['id'])||_0x64085[_0x5cf2('0x83')][_0x5cf2('0x6')](_0x1244d9['id']);return _0x64085;}[_0x5cf2('0x7c')](_0x226a5d){if(!_0x226a5d||_0x226a5d[_0x5cf2('0xee')])return Promise[_0x5cf2('0x92')]();{const _0x197ca3=this['editor']['config'][_0x5cf2('0x2b')](_0x5cf2('0x7f'));return this['adapter'][_0x5cf2('0x0')]({'channelId':_0x197ca3,'revisionId':_0x226a5d['id']})['then'](_0x2ba52e=>{_0x226a5d['diffData']=_0x2ba52e[_0x5cf2('0xee')];});}}['_bufferUpdate'](_0x601875,_0x3cbd25,_0x4cb8a2){if(this[_0x5cf2('0x94')]['has'](_0x601875)){const _0x36a9ae=this[_0x5cf2('0x94')][_0x5cf2('0x2b')](_0x601875);_0x3cbd25=_0x4cb8a2?{..._0x36a9ae,..._0x3cbd25}:{..._0x3cbd25,..._0x36a9ae};}this[_0x5cf2('0x94')][_0x5cf2('0xab')](_0x601875,_0x3cbd25);}[_0x5cf2('0x5')](_0x183084){const _0x3eab78=this[_0x5cf2('0xd5')][_0x5cf2('0x51')]();_0x3eab78[_0x5cf2('0x4')](),_0x3eab78[_0x5cf2('0x6b')]();const _0xc8884f=_0x3eab78[_0x5cf2('0xdb')](_0x4d9d57=>_0x4d9d57[_0x5cf2('0xd1')]<=_0x183084)['toVersion'];return _0xc8884f<this[_0x5cf2('0x13')]?this[_0x5cf2('0x13')]:_0xc8884f;}[_0x5cf2('0x11')](_0x492217){const _0x58e6ee=this[_0x5cf2('0xd5')][_0x5cf2('0x0')](this[_0x5cf2('0xd5')][_0x5cf2('0xc0')]-0x1);if(_0x58e6ee)this['_initialRevisionId']=_0x58e6ee['id'];else{const _0xb18cd8=!this[_0x5cf2('0x28')]['model']['document'][_0x5cf2('0x22')][_0x5cf2('0xdb')](_0x57eb5c=>this[_0x5cf2('0x28')][_0x5cf2('0xe4')][_0x5cf2('0x47')](_0x57eb5c)),_0x26f42d=this[_0x5cf2('0x28')][_0x5cf2('0x95')][_0x5cf2('0x2b')]('Users')['me']['id'],_0x18daeb=_0x420efb(this[_0x5cf2('0x28')]['locale'],_0xb18cd8?_0x5cf2('0x7b'):'Initial\x20revision');this[_0x5cf2('0x21')]({'from':_0x492217,'to':_0x492217,'id':this[_0x5cf2('0x31')],'name':_0x18daeb,'creatorId':_0x26f42d});}}['_createCurrentRevision'](_0x3022f2){const _0x2149a2=this[_0x5cf2('0x100')][_0x5cf2('0xcd')]();this['currentRevision']=this[_0x5cf2('0xd5')][_0x5cf2('0x0')](_0x2149a2),this['currentRevision']||(this[_0x5cf2('0x77')]=this['_makeRevision']({'from':_0x3022f2,'to':_0x3022f2,'id':_0x2149a2,'name':'','creatorId':null}));}[_0x5cf2('0x21')]({name:_0xbbe01a,from:_0x834b15,to:_0x43c603,creatorId:_0x407f23,id:_0x25ccc6}){const _0x23dd0b=this[_0x5cf2('0x66')]({'from':_0x834b15,'to':_0x43c603});_0x23dd0b[_0x5cf2('0xb3')]=_0xbbe01a,_0x23dd0b[_0x5cf2('0x7d')]=_0x407f23,_0x23dd0b['id']=_0x25ccc6;const _0x4c890b=this['addRevisionData'](_0x23dd0b);return this['adapter']&&this[_0x5cf2('0xec')](_0x23dd0b['id'],_0x23dd0b,!0x0),_0x4c890b;}[_0x5cf2('0x73')](){this[_0x5cf2('0x28')][_0x5cf2('0x3d')][_0x5cf2('0x5c')](_0x5cf2('0xa'))[_0x5cf2('0x44')]({'model':_0x5cf2('0x45')});}[_0x5cf2('0x6f')](_0x26c34d){return(_0x26c34d=_0x26c34d[_0x5cf2('0x82')](_0x1096c2=>!_0x1096c2[_0x5cf2('0xb3')]||_0x5cf2('0x99')!==_0x1096c2[_0x5cf2('0xb3')]&&_0x5cf2('0x2')!==_0x1096c2[_0x5cf2('0xb3')]))[_0x5cf2('0xfd')](_0x47e5ff=>{_0x5cf2('0x91')!=typeof _0x47e5ff&&(_0x47e5ff['children']=this['_removeRevisionMarkers'](_0x47e5ff['children']),_0x47e5ff[_0x5cf2('0xe9')]=_0x47e5ff['attributes'][_0x5cf2('0x82')](_0x59444c=>!_0x59444c[0x0][_0x5cf2('0x8f')]('data-revision-')));}),_0x26c34d;}}function J(_0x2dc510,_0x59bba6){const _0x3bbac1=_0x59bba6[_0x5cf2('0x9e')][_0x5cf2('0xd6')][_0x5cf2('0x3b')];if(_0x5cf2('0x91')==typeof _0x2dc510)return new _0x1b245b(_0x3bbac1,_0x2dc510);{const _0x2d93d4=_0x2dc510[_0x5cf2('0x2c')]['map'](_0x20b41c=>J(_0x20b41c,_0x59bba6));return new(B[_0x2dc510[(_0x5cf2('0x9'))]]||_0x14aedc)(_0x3bbac1,_0x2dc510['name'],_0x2dc510[_0x5cf2('0xe9')],_0x2d93d4);}}class H{constructor(_0x18cfaa){this[_0x5cf2('0x28')]=_0x18cfaa,this[_0x5cf2('0x69')]=new Map(),this[_0x5cf2('0xfb')]=-0x1,this[_0x5cf2('0x50')]=-0x1,this[_0x5cf2('0xb0')]=new Map(),this[_0x5cf2('0x6e')]=new Map(),this[_0x5cf2('0x8c')]=new Map(),this[_0x5cf2('0x49')]=new Map(),this[_0x5cf2('0x36')]=new Map(),this[_0x5cf2('0x1')]=new Map(),this[_0x5cf2('0xbc')]=new Map(),this['_touched']=new Map(),this[_0x5cf2('0xe')]=new Map(),this[_0x5cf2('0x15')]=new Map(),this[_0x5cf2('0x61')]=0x1;}['init'](_0xc064fd){this['source']=_0xc064fd;const _0x3d1e6a=new Map(),_0x17c487=new Map(),_0x5f52c9=this[_0x5cf2('0x28')][_0x5cf2('0xe4')]['document'][_0x5cf2('0x22')]['map'](_0x1e01cc=>_0x1e01cc[_0x5cf2('0xb7')]);for(const _0xc2fb8d of _0x5f52c9){const _0x45c00c=this[_0x5cf2('0x28')][_0x5cf2('0xe4')][_0x5cf2('0x3b')]['getRoot'](_0xc2fb8d),_0x3f9ab5=q(_0x45c00c);_0x3d1e6a['set'](_0xc2fb8d,_0x3f9ab5),_0x17c487['set'](_0xc2fb8d,Object[_0x5cf2('0xda')](_0x45c00c[_0x5cf2('0xf2')]()));}const _0x1b9d70=Array[_0x5cf2('0xbe')](this[_0x5cf2('0x28')][_0x5cf2('0xe4')][_0x5cf2('0x58')])['map'](_0x918a2a=>[_0x918a2a['name'],_0x918a2a['getRange']()]),_0x595568=this[_0x5cf2('0x53')][_0x5cf2('0x4f')];this[_0x5cf2('0x2d')](_0x595568,_0x3d1e6a,_0x1b9d70,_0x17c487),this[_0x5cf2('0x9c')]=this[_0x5cf2('0x61')];const _0xdb698b=new Map(),_0x4bb2d7=new Map();for(const _0x52bfb2 of _0x5f52c9){const _0x27b408=G(_0x52bfb2);_0xdb698b[_0x5cf2('0xab')](_0x52bfb2,_0x27b408),_0x4bb2d7[_0x5cf2('0xab')](_0x52bfb2,{});}this[_0x5cf2('0x2d')](Number['NEGATIVE_INFINITY'],_0xdb698b,[],_0x4bb2d7);}[_0x5cf2('0x7')](_0x5d3fea,_0x4975af){if(this[_0x5cf2('0xfb')]===_0x5d3fea&&this[_0x5cf2('0x50')]<=_0x4975af)this[_0x5cf2('0x69')][_0x5cf2('0x5d')]>0x1&&this[_0x5cf2('0xb')](this['_lastTo']),this[_0x5cf2('0xb1')](this[_0x5cf2('0x50')],_0x4975af,!0x0);else{if(!this[_0x5cf2('0x69')][_0x5cf2('0x29')](_0x5d3fea)){const _0x283552=this[_0x5cf2('0x8')](_0x5d3fea);this[_0x5cf2('0x65')](_0x283552,_0x5d3fea,!0x1);}this[_0x5cf2('0x65')](_0x5d3fea,_0x4975af,!0x0);}return this[_0x5cf2('0xfb')]=_0x5d3fea,this[_0x5cf2('0x50')]=_0x4975af,this[_0x5cf2('0xe8')]();}['loadState'](_0x10ca6e){this[_0x5cf2('0xe7')](),this['_lastFrom']=_0x10ca6e[_0x5cf2('0x59')],this[_0x5cf2('0x50')]=_0x10ca6e[_0x5cf2('0xd1')];for(const _0x13821f in _0x10ca6e[_0x5cf2('0xee')]){const _0x3e017a=_0x10ca6e[_0x5cf2('0xee')][_0x13821f][_0x5cf2('0xef')],_0x2f5e89=_0x1f1eda(_0x10ca6e['diffData'][_0x13821f][_0x5cf2('0x3')])||{},_0x270315=this[_0x5cf2('0x89')](_0x10ca6e[_0x5cf2('0xee')][_0x13821f][_0x5cf2('0x62')]);_0x270315[_0x5cf2('0xb7')]=_0x13821f,_0x270315[_0x5cf2('0xd7')]=!_0x3e017a||!_0x3e017a[_0x5cf2('0xd9')],_0x270315[_0x5cf2('0xd9')]=()=>_0x270315[_0x5cf2('0xd7')],this[_0x5cf2('0x49')][_0x5cf2('0xab')](_0x13821f,_0x270315),this[_0x5cf2('0x36')][_0x5cf2('0xab')](_0x13821f,_0x2f5e89),_0x3e017a&&this[_0x5cf2('0x15')][_0x5cf2('0xab')](_0x13821f,_0x3e017a);const _0x5b1062=this['_makeIdsRoot'](_0x270315);this['_baseIdsRoots'][_0x5cf2('0xab')](_0x13821f,_0x5b1062);for(const [_0x32e762,_0xe3db99]of _0x270315[_0x5cf2('0x58')]){if(!_0x32e762['startsWith'](_0x5cf2('0x9f')))continue;const _0x5f27ec=_0x32e762[_0x5cf2('0xf9')](':')[0x2];for(const _0x1e935a of _0xe3db99[_0x5cf2('0x1c')]({'singleCharacters':!0x0})){const _0x28324c=this[_0x5cf2('0xf1')](_0x1e935a),_0x2b2a0b=_0x5cf2('0x24')==_0x1e935a[_0x5cf2('0x9')]?_0x1e935a['previousPosition'][_0x5cf2('0xdc')][_0x5cf2('0xc9')](0x0,-0x1):_0x1e935a[_0x5cf2('0x5f')][_0x5cf2('0xdc')],_0x41f012=_0x5b1062[_0x5cf2('0x105')](_0x2b2a0b)[_0x5cf2('0x38')](_0x28324c);this['_touched'][_0x5cf2('0xab')](_0x41f012,{'userId':_0x5f27ec});}}}this[_0x5cf2('0x9c')]=this[_0x5cf2('0x61')];const _0x7762d7=[...Array(this[_0x5cf2('0x61')])[_0x5cf2('0x55')]()][_0x5cf2('0xc9')](0x1)[_0x5cf2('0x82')](_0x1b2ee2=>!this['_touched'][_0x5cf2('0x29')](_0x1b2ee2));let _0x211968=0x0;const _0x211c6b=new Map();for(const _0x519104 in _0x10ca6e[_0x5cf2('0xee')]){const _0x360d4a=_0x10ca6e[_0x5cf2('0xee')][_0x519104][_0x5cf2('0xef')],_0x4cf84c=_0x1f1eda(_0x10ca6e['diffData'][_0x519104][_0x5cf2('0xcc')])||{},_0xf2fa27=this[_0x5cf2('0x89')](_0x10ca6e[_0x5cf2('0xee')][_0x519104]['insertions']);_0xf2fa27['rootName']=_0x519104,_0xf2fa27[_0x5cf2('0xd7')]=!_0x360d4a||_0x360d4a[_0x5cf2('0xd9')],_0xf2fa27[_0x5cf2('0xd9')]=()=>_0xf2fa27[_0x5cf2('0xd7')],this['_diffRoots']['set'](_0x519104,_0xf2fa27),this['_diffRootsAttributes'][_0x5cf2('0xab')](_0x519104,_0x4cf84c);const _0x54e9fe=this[_0x5cf2('0x60')](_0xf2fa27,Number[_0x5cf2('0x5e')]);this[_0x5cf2('0x1')][_0x5cf2('0xab')](_0x519104,_0x54e9fe),_0x211c6b[_0x5cf2('0xab')](_0x519104,_0xf2fa27['isAttached']()?_0x4cf84c:{});for(const [_0x70096c,_0x32ec3b]of _0xf2fa27[_0x5cf2('0x58')]){if(!_0x70096c[_0x5cf2('0x8f')](_0x5cf2('0x9f')))continue;const _0x1798b2=_0x70096c['split'](':')[0x2];for(const _0x4d5bbb of _0x32ec3b[_0x5cf2('0x1c')]({'singleCharacters':!0x0})){const _0x5a96ef=this[_0x5cf2('0xf1')](_0x4d5bbb),_0x21edda=this[_0x5cf2('0x61')]++,_0x29d389='elementEnd'==_0x4d5bbb[_0x5cf2('0x9')]?_0x4d5bbb[_0x5cf2('0x5f')][_0x5cf2('0xdc')][_0x5cf2('0xc9')](0x0,-0x1):_0x4d5bbb['previousPosition'][_0x5cf2('0xdc')];_0x54e9fe[_0x5cf2('0x105')](_0x29d389)[_0x5cf2('0x4b')](_0x5a96ef,_0x21edda),this[_0x5cf2('0x88')]['set'](_0x21edda,{'userId':_0x1798b2});}}for(const _0xa46fa6 of this['editor'][_0x5cf2('0xe4')]['createRangeIn'](_0xf2fa27)[_0x5cf2('0x1c')]({'singleCharacters':!0x0})){const _0x4620e1=this[_0x5cf2('0xf1')](_0xa46fa6),_0x1c101f=_0x5cf2('0x24')==_0xa46fa6[_0x5cf2('0x9')]?_0xa46fa6['previousPosition'][_0x5cf2('0xdc')]['slice'](0x0,-0x1):_0xa46fa6[_0x5cf2('0x5f')][_0x5cf2('0xdc')],_0x18f053=_0x54e9fe[_0x5cf2('0x105')](_0x1c101f);_0x18f053['getAttribute'](_0x4620e1)>0x0||_0x18f053[_0x5cf2('0x4b')](_0x4620e1,_0x7762d7[_0x211968++]);}for(const [_0x32332f,_0x4108a6]of _0xf2fa27[_0x5cf2('0x58')])_0x32332f[_0x5cf2('0x8f')](_0x5cf2('0x9f'))||this[_0x5cf2('0xb0')][_0x5cf2('0xab')](_0x32332f,_0x4108a6);}const _0x51a555=G(_0x5cf2('0xe0'));this[_0x5cf2('0x49')][_0x5cf2('0xab')](_0x5cf2('0xe0'),_0x51a555),this[_0x5cf2('0xbc')]['set']('$graveyard',this[_0x5cf2('0x60')](_0x51a555,0x1));const _0x344cb0=G(_0x5cf2('0xe0'));this[_0x5cf2('0x6e')][_0x5cf2('0xab')]('$graveyard',_0x344cb0),this[_0x5cf2('0x1')][_0x5cf2('0xab')](_0x5cf2('0xe0'),this[_0x5cf2('0x60')](_0x344cb0,0x1));const _0x107a15=Array['from'](this['_diffRoots'])[_0x5cf2('0xf5')](([_0x3a5d22,_0x39000f])=>[_0x3a5d22,q(_0x39000f)]);this[_0x5cf2('0x2d')](this[_0x5cf2('0x50')],_0x107a15,this[_0x5cf2('0xb0')],_0x211c6b);}[_0x5cf2('0x89')](_0x368e46){const _0xf5dab6=JSON['parse'](_0x368e46),_0x548812=this['editor'][_0x5cf2('0x9e')][_0x5cf2('0xd6')][_0x5cf2('0x3b')],_0x7b8ef5=new _0x5e5223(_0x548812,_0xf5dab6['map'](_0x37b4d4=>J(_0x37b4d4,this[_0x5cf2('0x28')])));return this[_0x5cf2('0x28')][_0x5cf2('0x101')][_0x5cf2('0x54')](_0x7b8ef5);}[_0x5cf2('0x2d')](_0x381425,_0xe1c3d3,_0x5bef72,_0x5ee486){const _0x481f33=new Map(_0xe1c3d3),_0x43a646=new Map(_0x1f1eda(_0x5ee486)),_0x517499=new Map();for(const [_0x3f2cde,_0x32b736]of _0x5bef72)_0x517499[_0x5cf2('0xab')](_0x3f2cde,{'start':_0x32b736[_0x5cf2('0x90')][_0x5cf2('0xea')](),'end':_0x32b736[_0x5cf2('0x43')][_0x5cf2('0xea')](),'rootName':_0x32b736[_0x5cf2('0x56')][_0x5cf2('0xb7')]});this[_0x5cf2('0x69')][_0x5cf2('0xab')](_0x381425,{'roots':_0x481f33,'markers':_0x517499,'rootsAttributes':_0x43a646});}['_removeMetaData'](_0x539efe){this['_savedMetaData'][_0x5cf2('0x5a')](_0x539efe);}[_0x5cf2('0xbd')](){this[_0x5cf2('0xe7')](),this[_0x5cf2('0xfb')]=-0x1,this[_0x5cf2('0x50')]=-0x1,this[_0x5cf2('0x69')][_0x5cf2('0xd8')](),this[_0x5cf2('0x27')](this['source']);}[_0x5cf2('0xe7')](){this[_0x5cf2('0x88')][_0x5cf2('0xd8')](),this[_0x5cf2('0xe')][_0x5cf2('0xd8')](),this[_0x5cf2('0x15')][_0x5cf2('0xd8')](),this[_0x5cf2('0x6e')]['clear'](),this[_0x5cf2('0x8c')]['clear'](),this[_0x5cf2('0x49')][_0x5cf2('0xd8')](),this[_0x5cf2('0x36')][_0x5cf2('0xd8')](),this[_0x5cf2('0x1')][_0x5cf2('0xd8')](),this[_0x5cf2('0xbc')][_0x5cf2('0xd8')](),this[_0x5cf2('0xb0')][_0x5cf2('0xd8')](),this[_0x5cf2('0x61')]=0x1,this['_startingRevisionId']=this[_0x5cf2('0x61')];}[_0x5cf2('0x60')](_0x4e7dc4,_0x5024de=null){let _0x4550fd=null;_0x4e7dc4['is']('documentFragment')||(_0x4550fd=new _0x5c04ee(_0x4e7dc4[_0x5cf2('0xb3')],{'vid_start':null===_0x5024de?this[_0x5cf2('0x61')]++:_0x5024de++}));const _0x5b879c=[];for(const _0x3f8dc4 of _0x4e7dc4[_0x5cf2('0xc4')]())if(_0x3f8dc4['is'](_0x5cf2('0x2a'))){_0x5b879c['push'](this[_0x5cf2('0x60')](_0x3f8dc4,_0x5024de));const _0x58776e=_0x5b879c[_0x5b879c['length']-0x1];null!==_0x5024de&&(_0x5024de=_0x58776e['is'](_0x5cf2('0x2a'),_0x5cf2('0xfc'))?_0x58776e[_0x5cf2('0x38')]('vid')+0x1:_0x58776e['getAttribute'](_0x5cf2('0x25'))+0x1);}else for(let _0x4a5c27=0x0;_0x4a5c27<_0x3f8dc4[_0x5cf2('0x70')];_0x4a5c27++)_0x5b879c[_0x5cf2('0x6')](new _0x5c04ee(_0x5cf2('0xfc'),{'vid':null===_0x5024de?this[_0x5cf2('0x61')]++:_0x5024de++}));if(_0x4e7dc4['is'](_0x5cf2('0x8b'))){const _0x515ac1=G(_0x4e7dc4['rootName']);return _0x515ac1[_0x5cf2('0x8a')](0x0,_0x5b879c),_0x515ac1;}return _0x4550fd[_0x5cf2('0x4b')](_0x5cf2('0x25'),null===_0x5024de?this[_0x5cf2('0x61')]++:_0x5024de++),_0x4550fd['_insertChild'](0x0,_0x5b879c),_0x4550fd;}[_0x5cf2('0x65')](_0x50bb00,_0x2e7cad,_0x2f46f5){this['_reset']();const {roots:_0x3c3e82,markers:_0x2c9b8a,rootsAttributes:_0x13888b}=this[_0x5cf2('0x69')][_0x5cf2('0x2b')](_0x50bb00);this[_0x5cf2('0x49')]=new Map(_0x3c3e82),this[_0x5cf2('0x36')]=new Map(_0x1f1eda(_0x13888b));for(const [_0x45a16b,_0xbacf96]of this[_0x5cf2('0x49')])if(_0x5cf2('0xe0')!==_0x45a16b&&(this[_0x5cf2('0x6e')][_0x5cf2('0xab')](_0x45a16b,q(_0xbacf96)),this[_0x5cf2('0x8c')]=new Map(_0x1f1eda(_0x13888b)),_0x2f46f5)){const _0x5adf04=this['_revisionId'];this[_0x5cf2('0x1')][_0x5cf2('0xab')](_0x45a16b,this[_0x5cf2('0x60')](_0xbacf96)),this['_baseIdsRoots'][_0x5cf2('0xab')](_0x45a16b,this['_makeIdsRoot'](_0xbacf96,_0x5adf04));}this[_0x5cf2('0x9c')]=this['_revisionId'],this[_0x5cf2('0x6e')][_0x5cf2('0xab')]('$graveyard',q(this[_0x5cf2('0x49')][_0x5cf2('0x2b')](_0x5cf2('0xe0')))),_0x2f46f5&&this['_idsRoots']['set'](_0x5cf2('0xe0'),this[_0x5cf2('0x60')](this[_0x5cf2('0x49')][_0x5cf2('0x2b')](_0x5cf2('0xe0'))));for(const [_0x5263ea,_0x865586]of _0x2c9b8a){const _0xc07843=this['_baseRoots'][_0x5cf2('0x2b')](_0x865586[_0x5cf2('0xb7')]),_0x29bf3d=this['_diffRoots']['get'](_0x865586[_0x5cf2('0xb7')]),_0x52dfd2=new _0x3397d3(this[_0x5cf2('0x72')](_0x865586[_0x5cf2('0x90')],_0xc07843),this['_fixPosition'](_0x865586['end'],_0xc07843)),_0x50d5d3=this[_0x5cf2('0x4e')](_0x52dfd2,_0x29bf3d);_0xc07843[_0x5cf2('0x58')][_0x5cf2('0xab')](_0x5263ea,_0x52dfd2),this[_0x5cf2('0xb0')][_0x5cf2('0xab')](_0x5263ea,_0x50d5d3);}this['_applyOperations'](_0x50bb00,_0x2e7cad,_0x2f46f5);}[_0x5cf2('0xb1')](_0x5114a3,_0x12d06f,_0x32e429){for(const _0x1d67b8 of this['source'][_0x5cf2('0xfa')](_0x5114a3,_0x12d06f))this['_handleOperation'](_0x1d67b8,_0x32e429);for(const _0x152636 of this[_0x5cf2('0x6e')][_0x5cf2('0xb4')]())_0x152636['markers'][_0x5cf2('0xd8')]();for(const [_0x59f8db,_0x15ece1]of this[_0x5cf2('0xb0')]){this[_0x5cf2('0x6e')][_0x5cf2('0x2b')](_0x15ece1[_0x5cf2('0x56')][_0x5cf2('0xb7')])[_0x5cf2('0x58')][_0x5cf2('0xab')](_0x59f8db,_0x15ece1['clone']());}const _0x57e0ea=new Map(),_0x414d54=new Map();for(const [_0x3515e8,_0x11343a]of this[_0x5cf2('0x6e')])_0x57e0ea[_0x5cf2('0xab')](_0x3515e8,q(_0x11343a)),_0x414d54['set'](_0x3515e8,this[_0x5cf2('0x8c')][_0x5cf2('0x2b')](_0x3515e8));this[_0x5cf2('0x2d')](_0x12d06f,_0x57e0ea,this['_markers'],_0x414d54);}[_0x5cf2('0x8')](_0x56bbe4){const _0x2bbab1=Array[_0x5cf2('0xbe')](this[_0x5cf2('0x69')][_0x5cf2('0x55')]());_0x2bbab1['sort']((_0x2cc49d,_0x51f1f1)=>_0x2cc49d-_0x51f1f1),_0x2bbab1[_0x5cf2('0x4')]();for(const _0x1c660e of _0x2bbab1)if(_0x1c660e<_0x56bbe4)return _0x1c660e;return Number['NEGATIVE_INFINITY'];}[_0x5cf2('0x23')](_0x505dd4,_0x28fd6d){const _0x473fba=Array['from'](_0x28fd6d[_0x5cf2('0x58')])[_0x5cf2('0xf5')](([_0x40b0fc,_0x4f1006])=>[_0x40b0fc,this[_0x5cf2('0x4e')](_0x4f1006,_0x505dd4)]);_0x505dd4[_0x5cf2('0x58')]=new Map(_0x473fba);}['_transformMarkers'](_0x9d2432){for(const _0x390503 of this['_markers']['values']()){const _0x4bda22=_0x390503['getTransformedByOperation'](_0x9d2432),_0x1ecacd=_0x3397d3[_0x5cf2('0x87')](_0x4bda22);_0x390503[_0x5cf2('0x90')]=_0x1ecacd[_0x5cf2('0x90')],_0x390503[_0x5cf2('0x43')]=_0x1ecacd[_0x5cf2('0x43')];}}['_handleOperation'](_0x12dfb2,_0x41be62){if(_0x5cf2('0x42')==_0x12dfb2[_0x5cf2('0x9')]||'detachRoot'==_0x12dfb2[_0x5cf2('0x9')])return void this['_handleRootOperation'](_0x12dfb2,_0x41be62);if(_0x5cf2('0x78')==_0x12dfb2[_0x5cf2('0x9')]){const _0x3d656e=_0x12dfb2[_0x5cf2('0x20')][_0x5cf2('0x56')]['rootName'];this[_0x5cf2('0x6e')][_0x5cf2('0x29')](_0x3d656e)||(this['_diffRoots'][_0x5cf2('0xab')](_0x3d656e,G(_0x3d656e,!0x0)),this[_0x5cf2('0x8c')][_0x5cf2('0xab')](_0x3d656e,{}),_0x41be62&&this['_idsRoots'][_0x5cf2('0xab')](_0x3d656e,G(_0x3d656e,!0x0)));}else{if(_0x5cf2('0x98')==_0x12dfb2[_0x5cf2('0x9')]||_0x5cf2('0x18')==_0x12dfb2[_0x5cf2('0x9')]||_0x5cf2('0x81')==_0x12dfb2[_0x5cf2('0x9')])return void this[_0x5cf2('0x40')](_0x12dfb2);}const _0xc9c310=this['_cloneOperation'](_0x12dfb2,this[_0x5cf2('0x6e')]);if('marker'!==_0x12dfb2[_0x5cf2('0x9')]&&(_0xc9c310[_0x5cf2('0xbf')](),this[_0x5cf2('0xa5')](_0xc9c310)),_0x41be62)switch(_0xc9c310['type']){case _0x5cf2('0x78'):this['_handleInsertOperation'](_0x12dfb2);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x12dfb2);break;case _0x5cf2('0xc7'):this[_0x5cf2('0x79')](_0x12dfb2);break;case _0x5cf2('0xf9'):this[_0x5cf2('0xeb')](_0x12dfb2);break;case'marker':this[_0x5cf2('0x39')](_0x12dfb2);}}[_0x5cf2('0xc6')](_0x3e29f8,_0x386faa){const _0x4ad1b4=_0x3e29f8[_0x5cf2('0xea')]();return _0x4ad1b4[_0x5cf2('0x8d')]=_0x3e29f8[_0x5cf2('0x8d')],this[_0x5cf2('0xe1')](_0x4ad1b4,_0x386faa),_0x4ad1b4;}[_0x5cf2('0xe5')](_0x133698){return _0x133698[_0x5cf2('0xf5')](_0xa656fe=>{const _0x422e25=this[_0x5cf2('0xf1')](_0xa656fe);return Number(_0xa656fe[_0x5cf2('0x2e')][_0x5cf2('0x38')](_0x422e25));});}[_0x5cf2('0x67')](_0x331eae,_0x114572){if(_0x331eae['is'](_0x5cf2('0x2a'),'$text'))_0x114572[_0x5cf2('0x6')]({'item':_0x331eae,'type':_0x5cf2('0xa4')});else{_0x331eae['is'](_0x5cf2('0x2a'))&&_0x114572['push']({'item':_0x331eae,'type':_0x5cf2('0xff')});for(const _0x4065cb of _0x331eae['getChildren']())this[_0x5cf2('0x67')](_0x4065cb,_0x114572);_0x331eae['is'](_0x5cf2('0x2a'))&&_0x114572[_0x5cf2('0x6')]({'item':_0x331eae,'type':_0x5cf2('0x24')});}return _0x114572;}[_0x5cf2('0xe8')](){const _0x5bf2df=new Map(this[_0x5cf2('0x88')]),_0x1e9655=new Map(_0x5bf2df),_0x19becb=new Map(),_0x443c2a={'insertions':{},'deletions':{}},_0x4d3c93={'insertions':{},'deletions':{}},_0x34bbce=new Map(),_0x454084=new Set([...this[_0x5cf2('0x49')][_0x5cf2('0x55')](),...this[_0x5cf2('0x6e')][_0x5cf2('0x55')]()]);_0x454084['delete']('$graveyard');for(const _0x5f3c88 of _0x454084){const _0x4675b9=this['_diffRoots'][_0x5cf2('0x2b')](_0x5f3c88)||G(_0x5f3c88,!0x1),_0x836afe=this[_0x5cf2('0x49')][_0x5cf2('0x2b')](_0x5f3c88)||G(_0x5f3c88,!0x1);_0x4675b9[_0x5cf2('0xd9')]()||_0x836afe[_0x5cf2('0xd9')]()?(_0x443c2a[_0x5cf2('0x16')][_0x5f3c88]=q(_0x4675b9),_0x443c2a['deletions'][_0x5f3c88]=q(_0x836afe),this[_0x5cf2('0x23')](_0x443c2a[_0x5cf2('0x62')][_0x5f3c88],_0x836afe),this[_0x5cf2('0x23')](_0x443c2a[_0x5cf2('0x16')][_0x5f3c88],_0x4675b9),_0x4d3c93[_0x5cf2('0x16')][_0x5f3c88]=this['_generateTape'](this[_0x5cf2('0x1')][_0x5cf2('0x2b')](_0x5f3c88),[]),_0x4d3c93[_0x5cf2('0x62')][_0x5f3c88]=this['_generateTape'](this[_0x5cf2('0xbc')][_0x5cf2('0x2b')](_0x5f3c88)||G(_0x5f3c88,!0x1),[])):_0x454084[_0x5cf2('0x5a')](_0x5f3c88);}for(const _0x59cf2d of _0x454084){const _0x22c910=_0x4d3c93['insertions'][_0x59cf2d];for(const _0x53a4dc of _0x22c910){const _0x158fab=this[_0x5cf2('0xf1')](_0x53a4dc),_0x22c88d=_0x53a4dc['item']['getAttribute'](_0x158fab);_0x1e9655[_0x5cf2('0x5a')](_0x22c88d),_0x22c88d>=this[_0x5cf2('0x9c')]&&_0x19becb[_0x5cf2('0xab')](_0x22c88d,_0x5bf2df[_0x5cf2('0x2b')](_0x22c88d));}}for(const _0xb5dc48 of _0x454084){const _0x4011f0=_0x4d3c93[_0x5cf2('0x16')][_0xb5dc48],_0x53d75e=this[_0x5cf2('0xe5')](_0x4d3c93[_0x5cf2('0x62')][_0xb5dc48]);let _0xbce174=0x0;for(const _0x13de59 of _0x4011f0){const _0x1dc83a=this[_0x5cf2('0xf1')](_0x13de59),_0x36298f=_0x13de59[_0x5cf2('0x2e')][_0x5cf2('0x38')](_0x1dc83a);if(!_0x19becb[_0x5cf2('0x29')](_0x36298f)&&!_0x34bbce[_0x5cf2('0x29')](_0x36298f)){if(_0x1e9655['has'](_0x36298f))_0xbce174++;else{if(_0x36298f!=_0x53d75e[_0xbce174]){const _0x536f69=_0x5bf2df[_0x5cf2('0x2b')](_0x36298f)||_0x5bf2df[_0x5cf2('0x2b')](_0x53d75e[_0xbce174]);for(;_0x36298f!=_0x53d75e[_0xbce174];)_0x1e9655[_0x5cf2('0x29')](_0x53d75e[_0xbce174])||(_0x34bbce[_0x5cf2('0xab')](_0x53d75e[_0xbce174],_0x536f69),_0x5bf2df[_0x5cf2('0xab')](_0x53d75e[_0xbce174],_0x536f69)),_0xbce174++;}_0xbce174++;}}}}for(const _0x4ce013 of _0x454084){const _0x1d33d2=_0x4d3c93[_0x5cf2('0x16')][_0x4ce013];for(const _0x50e400 of _0x1d33d2){const _0x1c1f7b=this[_0x5cf2('0xf1')](_0x50e400),_0x4f5fdd=_0x50e400[_0x5cf2('0x2e')][_0x5cf2('0x38')](_0x1c1f7b);if(_0x34bbce[_0x5cf2('0x29')](_0x4f5fdd)){const _0x243515=_0x34bbce[_0x5cf2('0x2b')](_0x4f5fdd);_0x1e9655['has'](_0x4f5fdd)||_0x1e9655[_0x5cf2('0xab')](_0x4f5fdd,{..._0x243515}),_0x19becb[_0x5cf2('0xab')](_0x4f5fdd,{..._0x243515});}}}for(const _0x15156f of _0x1e9655[_0x5cf2('0x55')]())_0x15156f>=this['_startingRevisionId']&&_0x1e9655[_0x5cf2('0x5a')](_0x15156f);const _0x8aea0a=new Map();for(const _0x4043bb of _0x454084){let _0x15a17e=_0x4d3c93[_0x5cf2('0x16')][_0x4043bb];for(const _0x497f20 of _0x15a17e)if(_0x497f20[_0x5cf2('0x2e')]['is'](_0x5cf2('0x2a'),_0x5cf2('0xba'))){const _0x5cccd4=this['_getVidAttributeName'](_0x497f20),_0x300402=_0x497f20[_0x5cf2('0x2e')][_0x5cf2('0x38')](_0x5cccd4);if(_0x19becb[_0x5cf2('0x29')](_0x300402)){const _0x3b64ff=_0x497f20['item']['parent']['parent'][_0x5cf2('0x38')](_0x5cf2('0x1e')),_0x2fcf7f=_0x8aea0a[_0x5cf2('0x2b')](_0x3b64ff)||new Set();_0x2fcf7f[_0x5cf2('0xcb')](_0x19becb['get'](_0x300402)['userId']),_0x8aea0a[_0x5cf2('0xab')](_0x3b64ff,_0x2fcf7f);}}_0x15a17e=_0x4d3c93[_0x5cf2('0x62')][_0x4043bb];for(const _0x359c19 of _0x15a17e)if(_0x359c19['item']['is']('element',_0x5cf2('0xba'))){const _0x36270b=this['_getVidAttributeName'](_0x359c19),_0x5a07d8=_0x359c19[_0x5cf2('0x2e')][_0x5cf2('0x38')](_0x36270b);if(_0x1e9655[_0x5cf2('0x29')](_0x5a07d8)){const _0x5444c4=_0x359c19['item'][_0x5cf2('0xce')][_0x5cf2('0xce')][_0x5cf2('0x38')](_0x5cf2('0x1e')),_0x47e1cb=_0x8aea0a[_0x5cf2('0x2b')](_0x5444c4)||new Set();_0x47e1cb['add'](_0x1e9655[_0x5cf2('0x2b')](_0x5a07d8)[_0x5cf2('0x46')]),_0x8aea0a[_0x5cf2('0xab')](_0x5444c4,_0x47e1cb);}}for(const _0x5ea9c of _0x8aea0a[_0x5cf2('0x55')]())(_0x19becb[_0x5cf2('0x29')](_0x5ea9c)||_0x1e9655[_0x5cf2('0x29')](_0x5ea9c))&&_0x8aea0a[_0x5cf2('0x5a')](_0x5ea9c);}for(const _0x3a81d2 of _0x454084){const _0x592143=_0x4d3c93['insertions'][_0x3a81d2];let _0x5b89fb=null,_0x3b0ec0=null;for(const _0xf97ce2 of _0x592143){const _0x3fe51e=this[_0x5cf2('0xf1')](_0xf97ce2),_0x2dc80a=_0xf97ce2[_0x5cf2('0x2e')][_0x5cf2('0x38')](_0x3fe51e),_0x5007fd=_0x8aea0a[_0x5cf2('0x2b')](_0x2dc80a);_0x5007fd&&_0x5cf2('0xff')==_0xf97ce2[_0x5cf2('0x9')]&&(_0x5b89fb=Array[_0x5cf2('0xbe')](_0x5007fd)[0x0],_0x3b0ec0=_0xf97ce2[_0x5cf2('0x2e')][_0x5cf2('0x38')]('vid_end')),_0x5b89fb&&(_0x1e9655[_0x5cf2('0xab')](_0x2dc80a,{'userId':_0x5b89fb}),_0x19becb[_0x5cf2('0xab')](_0x2dc80a,{'userId':_0x5b89fb})),_0x2dc80a==_0x3b0ec0&&(_0x5b89fb=null,_0x3b0ec0=null);}}const _0x185ddf={},_0x297dcc=new Set();for(const _0x484dc1 of _0x454084){const _0x2bc2b3=_0x443c2a[_0x5cf2('0x62')][_0x484dc1],_0x221021=_0x443c2a[_0x5cf2('0x16')][_0x484dc1];for(const {userId:_0x160012}of this[_0x5cf2('0xe')][_0x5cf2('0xb4')]())null!==_0x160012&&_0x297dcc['add'](_0x160012);for(const {userId:_0x37da99}of this[_0x5cf2('0x15')][_0x5cf2('0xb4')]())null!==_0x37da99&&_0x297dcc[_0x5cf2('0xcb')](_0x37da99);this[_0x5cf2('0x6d')](_0x221021,_0x4d3c93[_0x5cf2('0x16')][_0x484dc1],_0x19becb,_0x5cf2('0x6c'),_0x297dcc),this[_0x5cf2('0x6d')](_0x2bc2b3,_0x4d3c93[_0x5cf2('0x62')][_0x484dc1],_0x1e9655,_0x5cf2('0xdd'),_0x297dcc),_0x185ddf[_0x484dc1]={'insertions':this[_0x5cf2('0xa2')](_0x221021),'deletions':this['_prepareViewToSave'](_0x2bc2b3),'attachChange':this[_0x5cf2('0x15')][_0x5cf2('0x2b')](_0x484dc1)||null,'attributesBefore':_0x1f1eda(this[_0x5cf2('0x36')][_0x5cf2('0x2b')](_0x484dc1))||{},'attributesAfter':_0x1f1eda(this[_0x5cf2('0x8c')][_0x5cf2('0x2b')](_0x484dc1))};}return{'diffData':_0x185ddf,'authorsIds':Array['from'](_0x297dcc)};}[_0x5cf2('0xe3')](_0x25e5ed){for(const [,_0x4ed77b]of _0x25e5ed['markers']){const _0x1bfb74=_0x4ed77b['start']['getAncestors']()['filter'](_0x50d18d=>_0x5cf2('0xba')==_0x50d18d[_0x5cf2('0xb3')]);for(const _0x21020d of _0x1bfb74)0x1==_0x21020d[_0x5cf2('0x75')]&&_0x21020d[_0x5cf2('0xf3')](0x0)['is'](_0x5cf2('0x2a'),'paragraph')&&_0x21020d['getChild'](0x0)[_0x5cf2('0x4b')](_0x5cf2('0xf0'),!0x0);}}['_prepareViewToSave'](_0x4fda8d){this[_0x5cf2('0xe3')](_0x4fda8d);const _0x51836a=this[_0x5cf2('0x28')][_0x5cf2('0x101')][_0x5cf2('0xd4')](_0x4fda8d,{}),_0xb6a3ac=Array[_0x5cf2('0xbe')](_0x51836a[_0x5cf2('0xc4')]())[_0x5cf2('0xf5')](_0x1fe848=>this[_0x5cf2('0x85')](_0x1fe848));return JSON[_0x5cf2('0xd0')](_0xb6a3ac);}[_0x5cf2('0x85')](_0x1a7bc5){if(_0x1a7bc5['is'](_0x5cf2('0xfc')))return _0x1a7bc5[_0x5cf2('0x101')];{const _0x1d232e=_0x1a7bc5;return{'type':Object[_0x5cf2('0x55')](B)[_0x5cf2('0xdb')](_0x2ccefa=>_0x1a7bc5 instanceof B[_0x2ccefa]),'name':_0x1d232e[_0x5cf2('0xb3')],'attributes':Array[_0x5cf2('0xbe')](_0x1d232e[_0x5cf2('0xf2')]()),'children':Array[_0x5cf2('0xbe')](_0x1d232e['getChildren']())['map'](_0x3fa8b4=>this[_0x5cf2('0x85')](_0x3fa8b4))};}}['_markChanges'](_0x388f86,_0x257642,_0x59b288,_0x13d17f,_0x1d48fb){let _0x266024=null,_0x4ab92c=null,_0x9e14d3=0x0;const _0x4e0baa=this[_0x5cf2('0x28')][_0x5cf2('0xe4')];for(let _0x3168d3=0x0;_0x3168d3<_0x257642[_0x5cf2('0xc0')];_0x3168d3++){const _0x16b9e1=this[_0x5cf2('0xf1')](_0x257642[_0x3168d3]),_0x1599ae=_0x257642[_0x3168d3][_0x5cf2('0x2e')][_0x5cf2('0x38')](_0x16b9e1),_0xdb1b8d=_0x59b288['get'](_0x1599ae),_0x23e5f9=_0x3168d3==_0x257642[_0x5cf2('0xc0')]-0x1;(!_0x266024&&_0xdb1b8d&&(_0x266024=_0xdb1b8d,_0x4ab92c=_0x257642[_0x3168d3]),_0x266024&&(!_0xdb1b8d||_0xdb1b8d[_0x5cf2('0x46')]!=_0x266024[_0x5cf2('0x46')]))&&(_0x5327f1(_0xdb1b8d,L(_0x4ab92c,_0x388f86,_0x4e0baa),L(_0x257642[_0x3168d3],_0x388f86,_0x4e0baa)),_0x266024=_0xdb1b8d||null,_0x4ab92c=_0xdb1b8d?_0x257642[_0x3168d3]:null),_0x266024&&_0x23e5f9&&_0x5327f1(_0xdb1b8d,L(_0x4ab92c,_0x388f86,_0x4e0baa),W(_0x257642[_0x3168d3],_0x388f86,_0x4e0baa));}function _0x5327f1(_0x2d82ed,_0x547b4e,_0x387c14){const _0x50aa9d=_0x266024[_0x5cf2('0x46')],_0x2d1872='revision:'+_0x13d17f+':'+_0x50aa9d+':'+_0x9e14d3++,_0x4b9b2c=_0x4e0baa[_0x5cf2('0x4c')](_0x547b4e,_0x387c14);_0x388f86['markers'][_0x5cf2('0xab')](_0x2d1872,_0x4b9b2c),null!==_0x50aa9d&&_0x1d48fb[_0x5cf2('0xcb')](_0x50aa9d);}}['_getVidAttributeName'](_0x4a4260){switch(_0x4a4260[_0x5cf2('0x9')]){case _0x5cf2('0xff'):return _0x5cf2('0x1e');case _0x5cf2('0x24'):return _0x5cf2('0x25');default:return _0x5cf2('0x71');}}[_0x5cf2('0xe1')](_0x4cd168,_0x32cbeb){_0x4cd168['baseVersion']=null;for(const _0x2bcf84 in _0x4cd168){const _0x21bd8c=_0x4cd168[_0x2bcf84];if(_0x21bd8c instanceof _0x20373b){const _0x22ae49=_0x32cbeb['get'](_0x21bd8c[_0x5cf2('0x56')][_0x5cf2('0xb7')]);_0x4cd168[_0x2bcf84]=this[_0x5cf2('0x72')](_0x21bd8c,_0x22ae49);}if(_0x21bd8c instanceof _0x3397d3){const _0x24a40f=_0x32cbeb[_0x5cf2('0x2b')](_0x21bd8c[_0x5cf2('0x56')][_0x5cf2('0xb7')]);_0x4cd168[_0x2bcf84]=this[_0x5cf2('0x4e')](_0x21bd8c,_0x24a40f);}_0x5cf2('0x56')===_0x2bcf84&&(_0x4cd168[_0x5cf2('0x56')]=_0x32cbeb['get'](_0x4cd168[_0x5cf2('0x56')][_0x5cf2('0xb7')]));}}[_0x5cf2('0x4e')](_0x3ceee2,_0x518a03){return this[_0x5cf2('0x28')][_0x5cf2('0xe4')]['createRange'](this[_0x5cf2('0x72')](_0x3ceee2[_0x5cf2('0x90')],_0x518a03),this[_0x5cf2('0x72')](_0x3ceee2[_0x5cf2('0x43')],_0x518a03));}[_0x5cf2('0x72')](_0x4a3eaa,_0xcb9aed){return this[_0x5cf2('0x28')][_0x5cf2('0xe4')][_0x5cf2('0xde')](_0xcb9aed,_0x4a3eaa['path'],_0x4a3eaa[_0x5cf2('0xb5')]);}[_0x5cf2('0x63')](_0x29ea0d){const _0x31fa44=this[_0x5cf2('0x1')][_0x5cf2('0x2b')](_0x29ea0d[_0x5cf2('0x20')]['root']['rootName']),_0x2b658e=this[_0x5cf2('0x72')](_0x29ea0d[_0x5cf2('0x20')],_0x31fa44),_0x4c55d3=null===_0x29ea0d['_authorId']?null:_0x29ea0d[_0x5cf2('0x8d')]||this['editor'][_0x5cf2('0x95')][_0x5cf2('0x2b')](_0x5cf2('0xa9'))['me']['id'],_0x175028=_0x2b658e[_0x5cf2('0xce')],_0x59f0e2=this[_0x5cf2('0x61')],_0x3959d7=[];for(const _0x142d47 of _0x29ea0d[_0x5cf2('0xad')])if(_0x142d47['is'](_0x5cf2('0x2a')))_0x3959d7[_0x5cf2('0x6')](this[_0x5cf2('0x60')](_0x142d47));else for(let _0x18387=0x0;_0x18387<_0x142d47[_0x5cf2('0x70')];_0x18387++)_0x3959d7[_0x5cf2('0x6')](new _0x5c04ee('$text',{'vid':this[_0x5cf2('0x61')]++}));const _0x30016d=this['_revisionId'];for(let _0x39d504=_0x59f0e2;_0x39d504<_0x30016d;_0x39d504++)this[_0x5cf2('0x88')][_0x5cf2('0xab')](_0x39d504,{'userId':_0x4c55d3});_0x175028[_0x5cf2('0x8a')](_0x2b658e[_0x5cf2('0x8e')],_0x3959d7);}[_0x5cf2('0x26')](_0x2e4842){(_0x2e4842=this[_0x5cf2('0xc6')](_0x2e4842,this[_0x5cf2('0x1')]))[_0x5cf2('0xbf')]();const _0x4e4f5f=null===_0x2e4842[_0x5cf2('0x8d')]?null:_0x2e4842[_0x5cf2('0x8d')]||this['editor'][_0x5cf2('0x95')][_0x5cf2('0x2b')]('Users')['me']['id'],_0x190052=_0x2e4842[_0x5cf2('0x33')](),_0x411e57=_0x190052[_0x5cf2('0xce')],_0x46eeb8=_0x190052[_0x5cf2('0x8e')];!function _0x47a387(_0x58f138,_0x416154,_0x4da75d,_0xff9c62){for(let _0x548f79=_0x4da75d;_0x548f79<_0xff9c62;_0x548f79++){const _0x18caac=_0x416154['getChild'](_0x548f79);_0x18caac['is']('element',_0x5cf2('0xfc'))?_0x58f138[_0x5cf2('0xab')](_0x18caac['getAttribute'](_0x5cf2('0x71')),{'userId':_0x4e4f5f}):(_0x58f138[_0x5cf2('0xab')](_0x18caac[_0x5cf2('0x38')]('vid_start'),{'userId':_0x4e4f5f}),_0x47a387(_0x58f138,_0x18caac,0x0,_0x18caac[_0x5cf2('0x75')]),_0x58f138[_0x5cf2('0xab')](_0x18caac['getAttribute'](_0x5cf2('0x25')),{'userId':_0x4e4f5f}));}}(this[_0x5cf2('0x88')],_0x411e57,_0x46eeb8,_0x46eeb8+_0x2e4842[_0x5cf2('0x5b')]);}[_0x5cf2('0x79')](_0x4b9b6d){const _0x301b0b=null===(_0x4b9b6d=this['_cloneOperation'](_0x4b9b6d,this[_0x5cf2('0x1')]))[_0x5cf2('0x8d')]?null:_0x4b9b6d[_0x5cf2('0x8d')]||this[_0x5cf2('0x28')][_0x5cf2('0x95')][_0x5cf2('0x2b')]('Users')['me']['id'],_0x3b98fe=_0x4b9b6d[_0x5cf2('0xc8')][_0x5cf2('0xce')],_0x36e374=_0x4b9b6d[_0x5cf2('0x14')][_0x5cf2('0xce')],_0x468036=_0x3b98fe[_0x5cf2('0x38')]('vid_end'),_0x2189fd=_0x36e374[_0x5cf2('0x38')]('vid_start');_0x3b98fe['_setAttribute']('vid_end',_0x36e374[_0x5cf2('0x38')](_0x5cf2('0x25'))),_0x36e374[_0x5cf2('0x4b')]('vid_end',_0x468036),this[_0x5cf2('0x88')][_0x5cf2('0xab')](_0x2189fd,{'userId':_0x301b0b}),this[_0x5cf2('0x88')][_0x5cf2('0xab')](_0x468036,{'userId':_0x301b0b}),_0x4b9b6d[_0x5cf2('0xbf')]();}['_handleSplitOperation'](_0x111c49){const _0x17f39b=null===(_0x111c49=this['_cloneOperation'](_0x111c49,this[_0x5cf2('0x1')]))[_0x5cf2('0x8d')]?null:_0x111c49['_authorId']||this[_0x5cf2('0x28')][_0x5cf2('0x95')][_0x5cf2('0x2b')](_0x5cf2('0xa9'))['me']['id'],_0x2022d6=_0x111c49['graveyardPosition'],_0xd3798c=_0x111c49[_0x5cf2('0x4a')][_0x5cf2('0xce')];_0x111c49[_0x5cf2('0xbf')]();const _0x4e6c3d=_0xd3798c[_0x5cf2('0x38')](_0x5cf2('0x25')),_0x2605c6=_0x111c49[_0x5cf2('0x41')]['nodeAfter'];if(_0x2022d6){const _0x21bfb4=_0x2605c6['getAttribute'](_0x5cf2('0x25')),_0x432125=_0xd3798c['getAttribute'](_0x5cf2('0x25'));_0xd3798c[_0x5cf2('0x4b')](_0x5cf2('0x25'),_0x21bfb4),_0x2605c6['_setAttribute'](_0x5cf2('0x25'),_0x432125),this[_0x5cf2('0x88')][_0x5cf2('0xab')](_0xd3798c[_0x5cf2('0x38')](_0x5cf2('0x25')),{'userId':_0x17f39b}),this[_0x5cf2('0x88')][_0x5cf2('0xab')](_0x2605c6[_0x5cf2('0x38')](_0x5cf2('0x1e')),{'userId':_0x17f39b});}else{const _0x5bea19=this[_0x5cf2('0x61')]++,_0x44d57b=this[_0x5cf2('0x61')]++;_0xd3798c[_0x5cf2('0x4b')](_0x5cf2('0x25'),_0x5bea19),_0x2605c6[_0x5cf2('0x4b')](_0x5cf2('0x1e'),_0x44d57b),_0x2605c6[_0x5cf2('0x4b')](_0x5cf2('0x25'),_0x4e6c3d),this[_0x5cf2('0x88')][_0x5cf2('0xab')](_0x5bea19,{'userId':_0x17f39b}),this[_0x5cf2('0x88')][_0x5cf2('0xab')](_0x44d57b,{'userId':_0x17f39b});}}['_handleMarkerOperation'](_0x2027e6){if(!_0x2027e6[_0x5cf2('0x3a')])return;const _0x66865d=(_0x2027e6=this['_cloneOperation'](_0x2027e6,this[_0x5cf2('0x6e')]))['oldRange']?_0x2027e6[_0x5cf2('0x96')][_0x5cf2('0x56')]:null,_0x37a74e=_0x2027e6['newRange']?_0x2027e6['newRange'][_0x5cf2('0x56')]:null;_0x66865d&&this['_markers'][_0x5cf2('0x5a')](_0x2027e6[_0x5cf2('0xb3')]),_0x37a74e&&this[_0x5cf2('0xb0')][_0x5cf2('0xab')](_0x2027e6[_0x5cf2('0xb3')],_0x2027e6[_0x5cf2('0xa1')][_0x5cf2('0xea')]());const _0x258f7d=null===_0x2027e6['_authorId']?null:_0x2027e6[_0x5cf2('0x8d')]||this[_0x5cf2('0x28')][_0x5cf2('0x95')]['get']('Users')['me']['id'],_0x41d743=_0x2027e6[_0x5cf2('0xb3')];if(!this[_0x5cf2('0xe')]['has'](_0x41d743))return void this['_touchedMarkers']['set'](_0x41d743,{'range':_0x2027e6[_0x5cf2('0x96')],'userId':_0x258f7d});const _0xc83ebc=this['_touchedMarkers']['get'](_0x41d743),_0x4db306=_0xc83ebc[_0x5cf2('0xb8')],_0x21a663=_0x2027e6[_0x5cf2('0xa1')];null==_0x4db306&&null==_0x21a663||_0x4db306&&_0x21a663&&_0x4db306[_0x5cf2('0x48')](_0x21a663)?this[_0x5cf2('0xe')]['delete'](_0x2027e6[_0x5cf2('0xb3')]):_0xc83ebc['userId']=_0x258f7d;}[_0x5cf2('0x57')](_0x437e6b,_0x3f0c10){this[_0x5cf2('0x6e')][_0x5cf2('0x29')](_0x437e6b[_0x5cf2('0xb7')])?this[_0x5cf2('0x6e')]['get'](_0x437e6b[_0x5cf2('0xb7')])[_0x5cf2('0xd7')]=_0x437e6b[_0x5cf2('0xaf')]:(this['_diffRoots'][_0x5cf2('0xab')](_0x437e6b[_0x5cf2('0xb7')],G(_0x437e6b[_0x5cf2('0xb7')],!0x0)),this[_0x5cf2('0x8c')][_0x5cf2('0xab')](_0x437e6b['rootName'],{}),_0x3f0c10&&this['_idsRoots'][_0x5cf2('0xab')](_0x437e6b[_0x5cf2('0xb7')],G(_0x437e6b['rootName'],!0x0)));const _0x1961be=null===_0x437e6b['_authorId']?null:_0x437e6b['_authorId']||this[_0x5cf2('0x28')]['plugins'][_0x5cf2('0x2b')](_0x5cf2('0xa9'))['me']['id'],_0x233235=this[_0x5cf2('0x15')][_0x5cf2('0x2b')](_0x437e6b[_0x5cf2('0xb7')]);_0x233235&&_0x233235[_0x5cf2('0x46')]===_0x1961be?this[_0x5cf2('0x15')][_0x5cf2('0x5a')](_0x437e6b[_0x5cf2('0xb7')]):this[_0x5cf2('0x15')]['set'](_0x437e6b['rootName'],{'userId':_0x1961be,'isAttached':_0x437e6b['isAdd']});}[_0x5cf2('0x40')](_0x3cc4b9){const _0x57c5a4=this[_0x5cf2('0x8c')]['get'](_0x3cc4b9['root'][_0x5cf2('0xb7')]);null===_0x3cc4b9[_0x5cf2('0x64')]?delete _0x57c5a4[_0x3cc4b9[_0x5cf2('0xca')]]:_0x57c5a4[_0x3cc4b9[_0x5cf2('0xca')]]=_0x3cc4b9[_0x5cf2('0x64')];}}function q(_0x15b272){const _0x4d8297=G(_0x15b272[_0x5cf2('0xb7')],_0x15b272[_0x5cf2('0xd9')]());for(const _0x144c4d of _0x15b272[_0x5cf2('0xc4')]()){const _0x40523c=_0x144c4d[_0x5cf2('0x34')](!0x0);_0x4d8297['_appendChild'](_0x40523c);}return _0x4d8297;}function G(_0x11f197,_0x519d16=!0x0){const _0x235689=new _0x4ebffa();return _0x235689[_0x5cf2('0xb7')]=_0x11f197,_0x235689[_0x5cf2('0xd7')]=_0x519d16,_0x235689[_0x5cf2('0xd9')]=()=>_0x235689[_0x5cf2('0xd7')],_0x235689;}function L(_0xe03178,_0x5087a8,_0x3451cc){const _0x1c7f02=_0x5cf2('0x24')==_0xe03178[_0x5cf2('0x9')]?_0x3451cc['createPositionAt'](_0xe03178[_0x5cf2('0x2e')],'end'):_0x3451cc[_0x5cf2('0x1a')](_0xe03178['item']);return _0x3451cc[_0x5cf2('0xde')](_0x5087a8,_0x1c7f02[_0x5cf2('0xdc')],_0x1c7f02['stickiness']);}function W(_0x2f65c2,_0x41fc15,_0x1a2bc2){const _0xe433e6=_0x5cf2('0xff')==_0x2f65c2[_0x5cf2('0x9')]?_0x1a2bc2[_0x5cf2('0xc3')](_0x2f65c2['item'],0x0):_0x1a2bc2[_0x5cf2('0x52')](_0x2f65c2['item']);return _0x1a2bc2[_0x5cf2('0xde')](_0x41fc15,_0xe433e6[_0x5cf2('0xdc')],_0xe433e6[_0x5cf2('0xb5')]);}
|
|
23
|
+
const _0x12be=['_appendChild','_saveMetaData','move','PENDING_ACTION_REVISION_HISTORY','setRevisionData','_loadRevisionData','creator','_fixOperation','roots','elementEnd','_clone','getRevisions','_idsRoots','_setConversion','PendingActions','addRoot','splitPosition','clone','_startingVersion','$graveyard','_getVidAttributeName','currentRevision','revision:','offset','root','creatorId','createRange','getIndex','_startingRevisionId','_setAttribute','_removePendingAction','map','_baseRoots','getRoot','_handleMarkerOperation','reverse','childCount','affectsData','sort','getAttributes','history','userId','_getState','saveRevision','_makeModelFromViewString','_handleRootOperation','default','_touchedMarkers','split','parse','getCurrentRevisionId','getTransformedByOperation','_processRootBeforeSave','getRootNames','createPositionFromPath','length','repository','elementStart','getWalker','addRootAttribute','startsWith','offsetSize','paragraph','_execute','_update','_getFromVersion','path','getMovedRangeStart','processor','_addPendingAction','get','init','has','baseVersion','filter','detachRoot','element','createPositionBefore','authorsIds','resolve','NEGATIVE_INFINITY','pluginName','_touchedRoots','version','string','_touched','set','isReady','upcast','remove','merge','sendBufferedUpdates','RealTimeCollaborationClient','reInit','_removeMetaData','howMany','define','authors','_fixRange','parent','editing','insertions','insertion','fromVersion','_operations','_isAttached','getUser','addRevisionData','type','finally','toVersion','_copyMarkers','_generateTape','_calculateMetaData','createRevision','insert','tableCell','targetPosition','_cloneOperation','add','_bufferedUpdates','getAttribute','graveyardPosition','dataDowncast','editor-initial-data-replaced-with-revision-data','start','attributes','_reset','_getBaseVids','_bufferUpdate','_getViewJson','vid','documentFragment','data','_markers','name','Empty\x20document','initialData','collaboration.channelId','_findInsertionIndex','plugins','useFillerType','_revisionDataBuilder','$text','source','attributesAfter','updateRevisions','key','values','afterInit','end','_handleOperation','markers','toModel','Users','_handleMergeOperation','find','_createCurrentRevision','includes','size','rootsAttributes','_source','_lastTo','view','revision','_revisionId','revision-start','editor','marker','slice','from','max','getData','_savedMetaData','vid_end','getChild','Initial\x20revision','_diffRoots','item','_baseIdsRoots','keys','ready','range','getChildren','config','previousPosition','toData','rootName','_continueCurrentRevision','_markChanges','marked','_lastFrom','getNodeByPath','locale','update','newRange','some','_handleInsertOperation','_handleRootAttributeOperation','push','isAttached','isAdd','diffData','_diffRootsAttributes','vid_start','_fixPosition','_insertChild','forEach','delete','_loadedStateData','_handleSplitOperation','_replaceEditorDataWithRevisionData','_removeRevisionMarkers','createdAt','hasContent','getRevisionDocumentData','_transformMarkers','_pendingAction','getRevisionRootsAttributes','_prepareViewToSave','_initialRevisionId','position','_baseRootsAttributes','adapter','_createInitialRevision','dataToMarker','newValue','markerToData','model','_getPreviousFrom','_makeIdsRoot','getRevision','shift','stickiness','revisionHistory.resumeUnsavedRevision','isEqual','document','clear','oldRange','getLatestVersion','addRevision','buildRevisionData','sourcePosition','deletions','attachChange','_isPendingUpdate','_authorId','insertionPosition','createRangeIn','_handleMoveOperation','_loadState'];(function(_0x776bfb,_0x12be39){const _0x2c0b10=function(_0x3c4674){while(--_0x3c4674){_0x776bfb['push'](_0x776bfb['shift']());}};_0x2c0b10(++_0x12be39);}(_0x12be,0x83));const _0x2c0b=function(_0x776bfb,_0x12be39){_0x776bfb=_0x776bfb-0x0;let _0x2c0b10=_0x12be[_0x776bfb];return _0x2c0b10;};import{Users as _0x276391}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0xb570c7,PendingActions as _0x39e5bf}from'ckeditor5/src/core';import{logWarning as _0x576186,uid as _0x227241}from'ckeditor5/src/utils';import{Position as _0x4283bc,Range as _0x404c31,Element as _0x5bade4,DocumentFragment as _0x109000,ViewText as _0x4aaea1,ViewElement as _0x11d8dc,ViewContainerElement as _0x376bd1,ViewAttributeElement as _0x4ec881,ViewEmptyElement as _0x41c37c,ViewRawElement as _0x441b42,ViewUIElement as _0x1c04ea,ViewDocumentFragment as _0x463056}from'ckeditor5/src/engine';import _0x155ac5 from'./revisionsrepository';import{getTranslation as _0x4619e9}from'./utils/common-translations';import{cloneDeep as _0x8233d4,isEqual as _0x44e8be}from'lodash-es';const B={'c':_0x376bd1,'a':_0x4ec881,'e':_0x41c37c,'r':_0x441b42,'u':_0x1c04ea};export default class l extends _0xb570c7{static get[_0x2c0b('0xc9')](){return'RevisionTracker';}static get['requires'](){return[_0x276391,_0x155ac5,_0x39e5bf];}constructor(_0x52f83c){super(_0x52f83c),this[_0x2c0b('0x5c')]=null,this['currentRevision']=null,this[_0x2c0b('0xb')]=new H(this[_0x2c0b('0x24')]),this[_0x2c0b('0x59')]=this['editor'][_0x2c0b('0x35')][_0x2c0b('0xbe')](_0x2c0b('0x7'))||'initial',this[_0x2c0b('0xf0')]=new Map(),this['_loadedStateData']=null;const _0x464d32=_0x227241();this[_0x2c0b('0x1e')]={'history':this['editor'][_0x2c0b('0x61')][_0x2c0b('0x69')][_0x2c0b('0xa0')],'getLatestVersion':()=>Promise[_0x2c0b('0xc7')](this[_0x2c0b('0x24')][_0x2c0b('0x61')]['document'][_0x2c0b('0xcb')]),'getCurrentRevisionId':()=>_0x464d32},this[_0x2c0b('0xce')](_0x2c0b('0xcf'),!0x1),this[_0x2c0b('0xce')]('isEnabled',!0x0),this[_0x2c0b('0xce')](_0x2c0b('0x72'),!0x1),this[_0x2c0b('0x24')][_0x2c0b('0x35')][_0x2c0b('0xd8')]('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for'](_0x2c0b('0xd0'))[_0x2c0b('0x5e')]({'view':_0x2c0b('0x21')});}[_0x2c0b('0xbf')](){this[_0x2c0b('0xb0')]=this['editor'][_0x2c0b('0x9')][_0x2c0b('0xbe')]('RevisionsRepository'),this[_0x2c0b('0x85')](),this[_0x2c0b('0x24')][_0x2c0b('0x2')]['on'](_0x2c0b('0x32'),()=>{const _0x5c00cf=this[_0x2c0b('0xb0')][_0x2c0b('0x64')](0x0),_0x494d5f=_0x5c00cf&&null===_0x5c00cf['creator']?_0x5c00cf:null;if(this[_0x2c0b('0x39')]=!!_0x494d5f&&this[_0x2c0b('0x24')][_0x2c0b('0x35')][_0x2c0b('0xbe')](_0x2c0b('0x67')),this[_0x2c0b('0x24')][_0x2c0b('0x9')][_0x2c0b('0xc0')](_0x2c0b('0xd4'))){const _0x4908be=this[_0x2c0b('0x1e')]['getCurrentRevisionId'](),_0x38549e=this[_0x2c0b('0xb0')][_0x2c0b('0x64')](_0x4908be);if(_0x38549e)this[_0x2c0b('0x8a')]=_0x38549e[_0x2c0b('0xdf')],this['_continueCurrentRevision']=!0x1;else{const _0x473502=this[_0x2c0b('0x1e')][_0x2c0b('0xa0')][_0x2c0b('0xe0')][_0x2c0b('0x19')](_0x6a17b=>!_0x6a17b['_isInit']),_0x2430a6=_0x473502?_0x473502[_0x2c0b('0xc1')]:this['_source'][_0x2c0b('0xa0')][_0x2c0b('0xcb')];_0x5c00cf?(_0x5c00cf[_0x2c0b('0xe6')]<_0x2430a6&&_0x5c00cf[_0x2c0b('0xb8')]({'toVersion':_0x2430a6}),this['_continueCurrentRevision']?(this[_0x2c0b('0x1e')]['getCurrentRevisionId']=()=>_0x494d5f['id'],this[_0x2c0b('0x8a')]=_0x494d5f[_0x2c0b('0xdf')]):(this['_startingVersion']=_0x5c00cf['toVersion'],this[_0x2c0b('0x39')]=!0x1)):(this[_0x2c0b('0x8a')]=_0x2430a6,this['_continueCurrentRevision']=!0x1);}}else _0x494d5f&&(this[_0x2c0b('0x24')]['model'][_0x2c0b('0x69')][_0x2c0b('0xa0')][_0x2c0b('0xcb')]=Math[_0x2c0b('0x28')](_0x494d5f['toVersion'],this['editor'][_0x2c0b('0x61')][_0x2c0b('0x69')][_0x2c0b('0xa0')][_0x2c0b('0xcb')]),_0x494d5f['fromVersion']===_0x494d5f[_0x2c0b('0xe6')]?(0x0!==_0x494d5f[_0x2c0b('0xdf')]&&(this[_0x2c0b('0x1e')]['getCurrentRevisionId']=()=>_0x494d5f['id']),this[_0x2c0b('0x39')]=!0x1):this['_continueCurrentRevision']&&(this[_0x2c0b('0x1e')]['getCurrentRevisionId']=()=>_0x494d5f['id'],this['_startingVersion']=_0x494d5f[_0x2c0b('0xdf')])),this[_0x2c0b('0x39')]||(this[_0x2c0b('0x8a')]=this[_0x2c0b('0x24')][_0x2c0b('0x61')]['document']['version']);this[_0x2c0b('0xb')]['init'](this[_0x2c0b('0x1e')][_0x2c0b('0xa0')]),this['_createInitialRevision'](this['_startingVersion']),this[_0x2c0b('0x1a')](this['_startingVersion']),this['adapter']&&this[_0x2c0b('0xd3')]();}),this['bind'](_0x2c0b('0xcf'))['to'](this,_0x2c0b('0x72'),_0x6a11ff=>!_0x6a11ff);}async[_0x2c0b('0x12')](){if(this['repository'][_0x2c0b('0xaf')]>0x0){const _0x505c31=this[_0x2c0b('0xb0')][_0x2c0b('0x64')](0x0),_0x2a5ce6=await this['getRevisionDocumentData'](_0x505c31),_0x3c3f70=await this[_0x2c0b('0x57')](_0x505c31);this['_replaceEditorDataWithRevisionData'](_0x2a5ce6,_0x3c3f70);}}['setSource'](_0x15cd26){this[_0x2c0b('0x1e')]=_0x15cd26;}async[_0x2c0b('0x3f')](){const _0x1ff8b8=await this[_0x2c0b('0x1e')][_0x2c0b('0x6c')]();if(_0x1ff8b8>this[_0x2c0b('0x8d')][_0x2c0b('0xe6')]){await this['_loadState']();const _0x2b5fc7=this[_0x2c0b('0x6e')]({'revision':this['currentRevision'],'to':_0x1ff8b8});_0x2b5fc7[_0x2c0b('0xd9')]=_0x2b5fc7[_0x2c0b('0xc6')]['map'](_0x12d517=>this[_0x2c0b('0x24')][_0x2c0b('0x9')][_0x2c0b('0xbe')](_0x2c0b('0x17'))[_0x2c0b('0xe2')](_0x12d517)),this['currentRevision'][_0x2c0b('0xb8')](_0x2b5fc7);}}async[_0x2c0b('0x77')](){this[_0x2c0b('0x39')]&&!this['_loadedStateData']&&(await this[_0x2c0b('0x7d')](this['currentRevision']),this[_0x2c0b('0xb')]['loadState'](this[_0x2c0b('0x8d')]),this[_0x2c0b('0x4e')]={'fromVersion':this['currentRevision'][_0x2c0b('0xdf')],'authors':this[_0x2c0b('0x8d')][_0x2c0b('0xd9')]['slice']()});}async[_0x2c0b('0xa3')](_0x4ace1b={},_0x4a0123=null){const _0x3c4ed2=[];await this[_0x2c0b('0x77')](),this['_continueCurrentRevision']=!0x1,_0x4a0123>this[_0x2c0b('0x8d')][_0x2c0b('0xe6')]&&(_0x4a0123=null),null===_0x4a0123&&(_0x4a0123=await this[_0x2c0b('0x1e')][_0x2c0b('0x6c')]());const _0x5ddf52=this['_getFromVersion'](_0x4a0123),_0xc8eb55=this[_0x2c0b('0x6e')]({'from':_0x5ddf52,'to':_0x4a0123});if(this[_0x2c0b('0x8d')][_0x2c0b('0xe6')]<_0x4a0123){const _0x26fcc9=this['buildRevisionData']({'revision':this[_0x2c0b('0x8d')],'from':_0x4a0123,'to':_0x4a0123});_0x26fcc9[_0x2c0b('0xd9')]=[],_0x26fcc9['authorsIds']=[],_0x26fcc9['id']=this[_0x2c0b('0x8d')]['id'],this[_0x2c0b('0x8d')][_0x2c0b('0xb8')](_0x26fcc9,!0x0),delete _0x26fcc9[_0x2c0b('0xd9')],_0x3c4ed2[_0x2c0b('0x44')](_0x26fcc9);}_0x4ace1b[_0x2c0b('0x91')]=this[_0x2c0b('0x24')]['plugins'][_0x2c0b('0xbe')](_0x2c0b('0x17'))['me']['id'],_0x4ace1b[_0x2c0b('0x4')]=_0x4ace1b['name']||null,_0x4ace1b['id']=_0x4ace1b['id']||_0x227241(),_0x4ace1b={..._0x4ace1b,..._0xc8eb55};const _0x6d95f0=this[_0x2c0b('0xe3')](_0x4ace1b);_0x3c4ed2[_0x2c0b('0x44')](_0x4ace1b);const _0x3f09fe=this[_0x2c0b('0xb0')][_0x2c0b('0x93')](_0x6d95f0);if(0x0!==_0x3f09fe){const _0x2f0848=this[_0x2c0b('0xb0')][_0x2c0b('0x64')](_0x3f09fe-0x1);if(_0x2f0848[_0x2c0b('0xdf')]!==_0x4a0123){const _0x453f62=this['_revisionDataBuilder'][_0x2c0b('0x29')](_0x4a0123,_0x2f0848[_0x2c0b('0xe6')]),_0x5eae3e={'id':_0x2f0848['id'],'diffData':_0x453f62[_0x2c0b('0x47')],'authorsIds':_0x453f62['authorsIds'],'authors':_0x453f62['authorsIds'][_0x2c0b('0x97')](_0x2cc3ac=>this[_0x2c0b('0x24')]['plugins']['get'](_0x2c0b('0x17'))[_0x2c0b('0xe2')](_0x2cc3ac)),'fromVersion':_0x4a0123};_0x2f0848===this[_0x2c0b('0x8d')]&&(_0x5eae3e[_0x2c0b('0x52')]=new Date(_0x4ace1b[_0x2c0b('0x52')]['getTime']()+0xa)),_0x2f0848[_0x2c0b('0xb8')](_0x5eae3e,!0x0),delete _0x5eae3e[_0x2c0b('0xd9')],_0x3c4ed2[_0x2c0b('0x44')](_0x5eae3e);}}if(this[_0x2c0b('0x5c')]){for(const _0x499385 of _0x3c4ed2)this['_bufferUpdate'](_0x499385['id'],_0x499385,!0x0);this[_0x2c0b('0xd3')]();}return _0x6d95f0;}[_0x2c0b('0xe3')](_0x52ffdf){const _0x22adb3=this[_0x2c0b('0xb0')][_0x2c0b('0xea')](_0x52ffdf);return this[_0x2c0b('0x5c')]&&_0x22adb3['on'](_0x2c0b('0xb8'),(_0x369fca,_0x4163c6,_0x1aa252)=>{_0x1aa252||(this[_0x2c0b('0xf9')](_0x4163c6['id'],_0x4163c6,!0x0),this[_0x2c0b('0xd3')]());}),this[_0x2c0b('0xb0')][_0x2c0b('0x6d')](_0x22adb3,this[_0x2c0b('0x8')](_0x22adb3)),_0x22adb3;}async[_0x2c0b('0x54')](_0x16cfbc){await this[_0x2c0b('0x7d')](_0x16cfbc);const _0x88219c={};for(const _0x22c890 in _0x16cfbc['diffData']){if(_0x16cfbc[_0x2c0b('0x47')][_0x22c890][_0x2c0b('0x71')]&&!_0x16cfbc['diffData'][_0x22c890][_0x2c0b('0x71')]['isAttached'])continue;const _0x48fc9f=this[_0x2c0b('0x51')](JSON['parse'](_0x16cfbc[_0x2c0b('0x47')][_0x22c890][_0x2c0b('0xdd')])),_0x12fc08=this[_0x2c0b('0x24')][_0x2c0b('0xdc')][_0x2c0b('0x20')][_0x2c0b('0x69')],_0x2ba2ea=new _0x463056(_0x12fc08,_0x48fc9f[_0x2c0b('0x97')](_0x41aee0=>J(_0x41aee0,this[_0x2c0b('0x24')])));this[_0x2c0b('0x24')][_0x2c0b('0x2')][_0x2c0b('0xbc')][_0x2c0b('0xa')](_0x2c0b('0x3b')),_0x88219c[_0x22c890]=this['editor']['data'][_0x2c0b('0xbc')][_0x2c0b('0x37')](_0x2ba2ea),this['editor'][_0x2c0b('0x2')]['processor']['useFillerType'](_0x2c0b('0xa6'));}return _0x88219c;}async[_0x2c0b('0x57')](_0x45d0e8){await this['_loadRevisionData'](_0x45d0e8);const _0x45e83={};for(const _0x183b07 in _0x45d0e8[_0x2c0b('0x47')])_0x45d0e8[_0x2c0b('0x47')][_0x183b07][_0x2c0b('0x71')]&&!_0x45d0e8[_0x2c0b('0x47')][_0x183b07][_0x2c0b('0x71')][_0x2c0b('0x45')]||(_0x45e83[_0x183b07]=_0x45d0e8['diffData'][_0x183b07][_0x2c0b('0xe')]||{});return _0x45e83;}[_0x2c0b('0xd3')](){if(0x0===this[_0x2c0b('0xf0')]['size'])return;if(this[_0x2c0b('0x72')])return;let _0x518b8b=Array['from'](this['_bufferedUpdates'][_0x2c0b('0x11')]());this[_0x2c0b('0xf0')][_0x2c0b('0x6a')]();for(let _0x2b028e=0x0;_0x2b028e<_0x518b8b[_0x2c0b('0xaf')];_0x2b028e++){const _0x29f715=_0x518b8b[_0x2b028e];let _0x3b8dfa=!0x1;for(const _0xc961cf of Object[_0x2c0b('0x31')](_0x29f715))void 0x0===_0x29f715[_0xc961cf]?delete _0x29f715[_0xc961cf]:'id'!==_0xc961cf&&(_0x3b8dfa=!0x0);_0x3b8dfa||(_0x518b8b[_0x2b028e]=null);}if(_0x518b8b=_0x518b8b[_0x2c0b('0xc2')](_0xefe338=>null!==_0xefe338),!_0x518b8b[_0x2c0b('0xaf')])return;for(let _0x219798=0x0;_0x219798<_0x518b8b[_0x2c0b('0xaf')];_0x219798++){const _0x22cdde=_0x518b8b[_0x219798];void 0x0!==_0x22cdde['fromVersion']&&void 0x0===_0x22cdde[_0x2c0b('0xe6')]&&(_0x22cdde[_0x2c0b('0xe6')]=this[_0x2c0b('0xb0')]['getRevision'](_0x22cdde['id'])[_0x2c0b('0xe6')]),void 0x0!==_0x22cdde['toVersion']&&void 0x0===_0x22cdde[_0x2c0b('0xdf')]&&(_0x22cdde[_0x2c0b('0xdf')]=this[_0x2c0b('0xb0')][_0x2c0b('0x64')](_0x22cdde['id'])[_0x2c0b('0xdf')]);}const _0x411a00=this[_0x2c0b('0x24')][_0x2c0b('0x35')][_0x2c0b('0xbe')](_0x2c0b('0x7'));this[_0x2c0b('0x72')]=!0x0,this[_0x2c0b('0xbd')](),this[_0x2c0b('0x5c')][_0x2c0b('0xf')](_0x518b8b,_0x411a00)[_0x2c0b('0xe5')](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xe3d9db=>{if(_0xe3d9db)for(const _0x3f9597 of _0xe3d9db)this[_0x2c0b('0x7c')]({'id':_0x3f9597['id'],'createdAt':_0x3f9597[_0x2c0b('0x52')]});this['_removePendingAction'](),this[_0x2c0b('0xd3')]();});}[_0x2c0b('0x50')](_0x5a5728,_0x1dabd6){let _0x2767e1=this[_0x2c0b('0x24')][_0x2c0b('0x35')]['get'](_0x2c0b('0x6')),_0x168505=this[_0x2c0b('0x24')]['config'][_0x2c0b('0xbe')](_0x2c0b('0x1d'));if(void 0x0===_0x2767e1){_0x2767e1={};for(const _0x6477c1 of this[_0x2c0b('0x24')][_0x2c0b('0x61')][_0x2c0b('0x69')][_0x2c0b('0xad')]())_0x2767e1[_0x6477c1]='';}if(_0x2c0b('0xcc')==typeof _0x2767e1&&(_0x2767e1={'main':_0x2767e1}),void 0x0===_0x168505){_0x168505={};for(const _0x46be78 of this['editor'][_0x2c0b('0x61')][_0x2c0b('0x69')][_0x2c0b('0xad')]())_0x168505[_0x46be78]={};}let _0x145d29=!0x1;const _0x9fa51b=Object[_0x2c0b('0x31')](_0x2767e1),_0x4b185d=Object['keys'](_0x5a5728);for(const _0x3063df of _0x9fa51b){if(_0x2767e1[_0x3063df]!==_0x5a5728[_0x3063df]&&''!==_0x2767e1[_0x3063df]['trim']()){_0x145d29=!0x0;break;}if(!_0x44e8be(_0x168505[_0x3063df],_0x1dabd6[_0x3063df])&&Object[_0x2c0b('0x31')](_0x168505[_0x3063df])[_0x2c0b('0xaf')]>0x0){_0x145d29=!0x0;break;}}_0x145d29||(_0x145d29=_0x4b185d[_0x2c0b('0x41')](_0x1c8ef7=>!this[_0x2c0b('0x24')][_0x2c0b('0x61')][_0x2c0b('0x69')]['getRoot'](_0x1c8ef7))),_0x145d29&&_0x576186(_0x2c0b('0xf4'),{'editorData':_0x2767e1,'editorRootsAttributes':_0x168505,'revisionData':_0x5a5728,'revisionRootsAttributes':_0x1dabd6}),this[_0x2c0b('0x24')][_0x2c0b('0x35')][_0x2c0b('0xce')](_0x2c0b('0x6'),_0x5a5728),this[_0x2c0b('0x24')][_0x2c0b('0x35')][_0x2c0b('0xce')](_0x2c0b('0x1d'),_0x1dabd6);}[_0x2c0b('0xbd')](){if(!this[_0x2c0b('0x56')]){const _0x42b829=this['editor'][_0x2c0b('0x9')][_0x2c0b('0xbe')]('PendingActions');this[_0x2c0b('0x56')]=_0x42b829['add'](_0x4619e9(this[_0x2c0b('0x24')][_0x2c0b('0x3e')],_0x2c0b('0x7b')));}}[_0x2c0b('0x96')](){this[_0x2c0b('0x56')]&&(this[_0x2c0b('0x24')]['plugins'][_0x2c0b('0xbe')](_0x2c0b('0x86'))[_0x2c0b('0xd1')](this[_0x2c0b('0x56')]),this[_0x2c0b('0x56')]=null);}[_0x2c0b('0x8')](_0x4ca2d7){const _0x130856=this['repository'][_0x2c0b('0x83')]();_0x130856[_0x2c0b('0x9b')]();let _0x285994=0x0;for(;_0x285994<_0x130856['length'];){const _0x3844ae=_0x130856[_0x285994];if(_0x3844ae===this['currentRevision']){_0x285994++;continue;}if(_0x3844ae['id']===this[_0x2c0b('0x59')])break;const _0x2193e9=_0x4ca2d7[_0x2c0b('0xe6')]-_0x3844ae['toVersion']||_0x4ca2d7['fromVersion']-_0x3844ae[_0x2c0b('0xdf')];if(_0x2193e9>0x0)break;if(_0x2193e9<0x0)_0x285994++;else{if(!_0x4ca2d7[_0x2c0b('0x7e')]&&_0x3844ae['creator'])break;if(_0x3844ae[_0x2c0b('0x7e')]||!_0x4ca2d7[_0x2c0b('0x7e')]){if(_0x4ca2d7[_0x2c0b('0x52')]>_0x3844ae[_0x2c0b('0x52')])break;_0x285994++;}else _0x285994++;}}return _0x285994;}[_0x2c0b('0x7c')](_0x559bb6){const _0x3e8088=this[_0x2c0b('0xb0')]['getRevision'](_0x559bb6['id']);if(_0x559bb6[_0x2c0b('0x52')]&&(_0x559bb6[_0x2c0b('0x52')]=new Date(_0x559bb6[_0x2c0b('0x52')])),_0x559bb6[_0x2c0b('0xc6')]){const _0x2d69c4=this[_0x2c0b('0x24')][_0x2c0b('0x9')]['get'](_0x2c0b('0x17'));_0x559bb6['authors']=_0x559bb6[_0x2c0b('0xc6')]['map'](_0x3d254d=>_0x2d69c4[_0x2c0b('0xe2')](_0x3d254d));}_0x3e8088['_update'](_0x559bb6,!0x0);}[_0x2c0b('0x6e')]({revision:_0x4b0f54=null,from:_0xee324c=null,to:_0x204d54=null}){_0xee324c=null!==_0xee324c?_0xee324c:_0x4b0f54[_0x2c0b('0xdf')],_0x204d54=null!==_0x204d54?_0x204d54:_0x4b0f54[_0x2c0b('0xe6')];const _0x34b29a=this[_0x2c0b('0xb')][_0x2c0b('0x29')](_0xee324c,_0x204d54),_0x100752={'diffData':_0x34b29a['diffData'],'authorsIds':_0x34b29a[_0x2c0b('0xc6')],'fromVersion':_0xee324c,'toVersion':_0x204d54};if(!_0x4b0f54||_0x204d54!==_0x4b0f54[_0x2c0b('0xe6')]){const _0x215214=_0x204d54-0x1,_0x3d9e2f=this[_0x2c0b('0x1e')]['history']['getOperation'](_0x215214);_0x100752[_0x2c0b('0x52')]=_0x3d9e2f&&_0x3d9e2f['createdAt']||new Date();}if(this[_0x2c0b('0x4e')]&&_0xee324c===this[_0x2c0b('0x4e')][_0x2c0b('0xdf')])for(const _0x412eb5 of this['_loadedStateData'][_0x2c0b('0xd9')])_0x100752['authorsIds'][_0x2c0b('0x1b')](_0x412eb5['id'])||_0x100752[_0x2c0b('0xc6')]['push'](_0x412eb5['id']);return _0x100752;}[_0x2c0b('0x7d')](_0x1fb0b6){if(!_0x1fb0b6||_0x1fb0b6[_0x2c0b('0x47')])return Promise['resolve']();{const _0x4abddb=this[_0x2c0b('0x24')][_0x2c0b('0x35')][_0x2c0b('0xbe')]('collaboration.channelId');return this[_0x2c0b('0x5c')]['getRevision']({'channelId':_0x4abddb,'revisionId':_0x1fb0b6['id']})['then'](_0x4f97b3=>{_0x1fb0b6[_0x2c0b('0x47')]=_0x4f97b3[_0x2c0b('0x47')];});}}['_bufferUpdate'](_0x549077,_0x15427b,_0xebddca){if(this[_0x2c0b('0xf0')][_0x2c0b('0xc0')](_0x549077)){const _0x57293b=this['_bufferedUpdates'][_0x2c0b('0xbe')](_0x549077);_0x15427b=_0xebddca?{..._0x57293b,..._0x15427b}:{..._0x15427b,..._0x57293b};}this[_0x2c0b('0xf0')]['set'](_0x549077,_0x15427b);}[_0x2c0b('0xb9')](_0x2c9e5e){const _0x758512=this[_0x2c0b('0xb0')][_0x2c0b('0x83')]();_0x758512[_0x2c0b('0x9b')](),_0x758512[_0x2c0b('0x65')]();const _0x90c179=_0x758512[_0x2c0b('0x19')](_0x3fc983=>_0x3fc983[_0x2c0b('0xe6')]<=_0x2c9e5e)['toVersion'];return _0x90c179<this[_0x2c0b('0x8a')]?this[_0x2c0b('0x8a')]:_0x90c179;}[_0x2c0b('0x5d')](_0x547ef3){const _0x1bd515=this['repository'][_0x2c0b('0x64')](this[_0x2c0b('0xb0')][_0x2c0b('0xaf')]-0x1);if(_0x1bd515)this['_initialRevisionId']=_0x1bd515['id'];else{const _0x5c5c73=!this[_0x2c0b('0x24')][_0x2c0b('0x61')][_0x2c0b('0x69')][_0x2c0b('0x80')][_0x2c0b('0x19')](_0x344303=>this['editor']['model'][_0x2c0b('0x53')](_0x344303)),_0x21203b=this[_0x2c0b('0x24')][_0x2c0b('0x9')][_0x2c0b('0xbe')](_0x2c0b('0x17'))['me']['id'],_0x2386f7=_0x4619e9(this[_0x2c0b('0x24')][_0x2c0b('0x3e')],_0x5c5c73?_0x2c0b('0x5'):_0x2c0b('0x2d'));this['_makeRevision']({'from':_0x547ef3,'to':_0x547ef3,'id':this[_0x2c0b('0x59')],'name':_0x2386f7,'creatorId':_0x21203b});}}[_0x2c0b('0x1a')](_0x545cd0){const _0x20acae=this[_0x2c0b('0x1e')][_0x2c0b('0xaa')]();this[_0x2c0b('0x8d')]=this[_0x2c0b('0xb0')][_0x2c0b('0x64')](_0x20acae),this['currentRevision']||(this[_0x2c0b('0x8d')]=this['_makeRevision']({'from':_0x545cd0,'to':_0x545cd0,'id':_0x20acae,'name':'','creatorId':null}));}['_makeRevision']({name:_0x83a405,from:_0x33cb07,to:_0x3cc167,creatorId:_0x290be2,id:_0x481d06}){const _0x4f70ee=this[_0x2c0b('0x6e')]({'from':_0x33cb07,'to':_0x3cc167});_0x4f70ee[_0x2c0b('0x4')]=_0x83a405,_0x4f70ee[_0x2c0b('0x91')]=_0x290be2,_0x4f70ee['id']=_0x481d06;const _0x53d0a1=this[_0x2c0b('0xe3')](_0x4f70ee);return this['adapter']&&this[_0x2c0b('0xf9')](_0x4f70ee['id'],_0x4f70ee,!0x0),_0x53d0a1;}['_setConversion'](){this[_0x2c0b('0x24')]['conversion']['for'](_0x2c0b('0xf3'))[_0x2c0b('0x60')]({'model':_0x2c0b('0x21')});}[_0x2c0b('0x51')](_0x2273ff){return(_0x2273ff=_0x2273ff[_0x2c0b('0xc2')](_0xf318cf=>!_0xf318cf[_0x2c0b('0x4')]||_0x2c0b('0x23')!==_0xf318cf['name']&&'revision-end'!==_0xf318cf['name']))[_0x2c0b('0x4c')](_0x3235e3=>{_0x2c0b('0xcc')!=typeof _0x3235e3&&(_0x3235e3['children']=this[_0x2c0b('0x51')](_0x3235e3['children']),_0x3235e3[_0x2c0b('0xf6')]=_0x3235e3[_0x2c0b('0xf6')][_0x2c0b('0xc2')](_0x43179c=>!_0x43179c[0x0][_0x2c0b('0xb4')]('data-revision-')));}),_0x2273ff;}}function J(_0x35d684,_0x45af78){const _0x3eeca0=_0x45af78['editing']['view'][_0x2c0b('0x69')];if(_0x2c0b('0xcc')==typeof _0x35d684)return new _0x4aaea1(_0x3eeca0,_0x35d684);{const _0x7d9740=_0x35d684['children'][_0x2c0b('0x97')](_0x2eb460=>J(_0x2eb460,_0x45af78));return new(B[_0x35d684[(_0x2c0b('0xe4'))]]||_0x11d8dc)(_0x3eeca0,_0x35d684[_0x2c0b('0x4')],_0x35d684[_0x2c0b('0xf6')],_0x7d9740);}}class H{constructor(_0x1f62be){this[_0x2c0b('0x24')]=_0x1f62be,this[_0x2c0b('0x2a')]=new Map(),this['_lastFrom']=-0x1,this[_0x2c0b('0x1f')]=-0x1,this[_0x2c0b('0x3')]=new Map(),this[_0x2c0b('0x2e')]=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x2c0b('0x84')]=new Map(),this[_0x2c0b('0x30')]=new Map(),this[_0x2c0b('0xcd')]=new Map(),this[_0x2c0b('0xa7')]=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}[_0x2c0b('0xbf')](_0x3351ec){this[_0x2c0b('0xd')]=_0x3351ec;const _0x4d288d=new Map(),_0x2db6ba=new Map(),_0x54efa3=this['editor'][_0x2c0b('0x61')][_0x2c0b('0x69')]['roots'][_0x2c0b('0x97')](_0x961e3f=>_0x961e3f['rootName']);for(const _0x53952e of _0x54efa3){const _0x5f32f0=this['editor'][_0x2c0b('0x61')]['document'][_0x2c0b('0x99')](_0x53952e),_0x296238=q(_0x5f32f0);_0x4d288d['set'](_0x53952e,_0x296238),_0x2db6ba[_0x2c0b('0xce')](_0x53952e,Object['fromEntries'](_0x5f32f0[_0x2c0b('0x9f')]()));}const _0x126f37=Array[_0x2c0b('0x27')](this[_0x2c0b('0x24')][_0x2c0b('0x61')][_0x2c0b('0x15')])[_0x2c0b('0x97')](_0x3cbf17=>[_0x3cbf17[_0x2c0b('0x4')],_0x3cbf17['getRange']()]),_0x4f2195=this['source']['version'];this['_saveMetaData'](_0x4f2195,_0x4d288d,_0x126f37,_0x2db6ba),this[_0x2c0b('0x94')]=this[_0x2c0b('0x22')];const _0x388c5b=new Map(),_0x5e5b5a=new Map();for(const _0x11df91 of _0x54efa3){const _0x2cb0c3=G(_0x11df91);_0x388c5b['set'](_0x11df91,_0x2cb0c3),_0x5e5b5a[_0x2c0b('0xce')](_0x11df91,{});}this[_0x2c0b('0x79')](Number[_0x2c0b('0xc8')],_0x388c5b,[],_0x5e5b5a);}[_0x2c0b('0x29')](_0x412024,_0x4d6d22){if(this[_0x2c0b('0x3c')]===_0x412024&&this['_lastTo']<=_0x4d6d22)this[_0x2c0b('0x2a')][_0x2c0b('0x1c')]>0x1&&this[_0x2c0b('0xd6')](this[_0x2c0b('0x1f')]),this['_applyOperations'](this[_0x2c0b('0x1f')],_0x4d6d22,!0x0);else{if(!this['_savedMetaData'][_0x2c0b('0xc0')](_0x412024)){const _0x4e3f61=this[_0x2c0b('0x62')](_0x412024);this[_0x2c0b('0xe9')](_0x4e3f61,_0x412024,!0x1);}this[_0x2c0b('0xe9')](_0x412024,_0x4d6d22,!0x0);}return this[_0x2c0b('0x3c')]=_0x412024,this[_0x2c0b('0x1f')]=_0x4d6d22,this[_0x2c0b('0xa2')]();}['loadState'](_0x477e8e){this[_0x2c0b('0xf7')](),this[_0x2c0b('0x3c')]=_0x477e8e[_0x2c0b('0xdf')],this[_0x2c0b('0x1f')]=_0x477e8e['toVersion'];for(const _0x255c7d in _0x477e8e[_0x2c0b('0x47')]){const _0x56d8fb=_0x477e8e[_0x2c0b('0x47')][_0x255c7d][_0x2c0b('0x71')],_0x5bd385=_0x8233d4(_0x477e8e['diffData'][_0x255c7d]['attributesBefore'])||{},_0x40fe61=this[_0x2c0b('0xa4')](_0x477e8e[_0x2c0b('0x47')][_0x255c7d]['deletions']);_0x40fe61[_0x2c0b('0x38')]=_0x255c7d,_0x40fe61['_isAttached']=!_0x56d8fb||!_0x56d8fb[_0x2c0b('0x45')],_0x40fe61['isAttached']=()=>_0x40fe61['_isAttached'],this[_0x2c0b('0x98')][_0x2c0b('0xce')](_0x255c7d,_0x40fe61),this['_baseRootsAttributes'][_0x2c0b('0xce')](_0x255c7d,_0x5bd385),_0x56d8fb&&this['_touchedRoots'][_0x2c0b('0xce')](_0x255c7d,_0x56d8fb);const _0x5bcce3=this[_0x2c0b('0x63')](_0x40fe61);this[_0x2c0b('0x30')][_0x2c0b('0xce')](_0x255c7d,_0x5bcce3);for(const [_0x555285,_0x293d0a]of _0x40fe61[_0x2c0b('0x15')]){if(!_0x555285['startsWith'](_0x2c0b('0x8e')))continue;const _0x11aa3f=_0x555285[_0x2c0b('0xa8')](':')[0x2];for(const _0xd4a126 of _0x293d0a[_0x2c0b('0xb2')]({'singleCharacters':!0x0})){const _0x5b08b1=this[_0x2c0b('0x8c')](_0xd4a126),_0x4f6bde=_0x2c0b('0x81')==_0xd4a126[_0x2c0b('0xe4')]?_0xd4a126['previousPosition'][_0x2c0b('0xba')][_0x2c0b('0x26')](0x0,-0x1):_0xd4a126[_0x2c0b('0x36')][_0x2c0b('0xba')],_0xb7a0ea=_0x5bcce3['getNodeByPath'](_0x4f6bde)[_0x2c0b('0xf1')](_0x5b08b1);this['_touched'][_0x2c0b('0xce')](_0xb7a0ea,{'userId':_0x11aa3f});}}}this[_0x2c0b('0x94')]=this['_revisionId'];const _0x3adde3=[...Array(this['_revisionId'])[_0x2c0b('0x31')]()]['slice'](0x1)[_0x2c0b('0xc2')](_0x188e3f=>!this[_0x2c0b('0xcd')]['has'](_0x188e3f));let _0x232b57=0x0;const _0x2290a2=new Map();for(const _0x3ff9f7 in _0x477e8e[_0x2c0b('0x47')]){const _0x1e3719=_0x477e8e[_0x2c0b('0x47')][_0x3ff9f7][_0x2c0b('0x71')],_0x46f48c=_0x8233d4(_0x477e8e[_0x2c0b('0x47')][_0x3ff9f7]['attributesAfter'])||{},_0x1d2b2a=this[_0x2c0b('0xa4')](_0x477e8e['diffData'][_0x3ff9f7][_0x2c0b('0xdd')]);_0x1d2b2a[_0x2c0b('0x38')]=_0x3ff9f7,_0x1d2b2a[_0x2c0b('0xe1')]=!_0x1e3719||_0x1e3719[_0x2c0b('0x45')],_0x1d2b2a[_0x2c0b('0x45')]=()=>_0x1d2b2a['_isAttached'],this[_0x2c0b('0x2e')][_0x2c0b('0xce')](_0x3ff9f7,_0x1d2b2a),this[_0x2c0b('0x48')][_0x2c0b('0xce')](_0x3ff9f7,_0x46f48c);const _0x3474dd=this['_makeIdsRoot'](_0x1d2b2a,Number[_0x2c0b('0xc8')]);this[_0x2c0b('0x84')]['set'](_0x3ff9f7,_0x3474dd),_0x2290a2[_0x2c0b('0xce')](_0x3ff9f7,_0x1d2b2a[_0x2c0b('0x45')]()?_0x46f48c:{});for(const [_0xd6af53,_0x4798b6]of _0x1d2b2a[_0x2c0b('0x15')]){if(!_0xd6af53[_0x2c0b('0xb4')](_0x2c0b('0x8e')))continue;const _0x5b7da3=_0xd6af53[_0x2c0b('0xa8')](':')[0x2];for(const _0x28c503 of _0x4798b6[_0x2c0b('0xb2')]({'singleCharacters':!0x0})){const _0x791da7=this[_0x2c0b('0x8c')](_0x28c503),_0x1c6ea8=this['_revisionId']++,_0x3d8a61='elementEnd'==_0x28c503[_0x2c0b('0xe4')]?_0x28c503[_0x2c0b('0x36')]['path'][_0x2c0b('0x26')](0x0,-0x1):_0x28c503[_0x2c0b('0x36')]['path'];_0x3474dd[_0x2c0b('0x3d')](_0x3d8a61)[_0x2c0b('0x95')](_0x791da7,_0x1c6ea8),this['_touched'][_0x2c0b('0xce')](_0x1c6ea8,{'userId':_0x5b7da3});}}for(const _0x1181ce of this[_0x2c0b('0x24')][_0x2c0b('0x61')][_0x2c0b('0x75')](_0x1d2b2a)[_0x2c0b('0xb2')]({'singleCharacters':!0x0})){const _0x5c1e8d=this[_0x2c0b('0x8c')](_0x1181ce),_0x4befd0=_0x2c0b('0x81')==_0x1181ce['type']?_0x1181ce[_0x2c0b('0x36')][_0x2c0b('0xba')]['slice'](0x0,-0x1):_0x1181ce[_0x2c0b('0x36')]['path'],_0x164f4f=_0x3474dd[_0x2c0b('0x3d')](_0x4befd0);_0x164f4f[_0x2c0b('0xf1')](_0x5c1e8d)>0x0||_0x164f4f[_0x2c0b('0x95')](_0x5c1e8d,_0x3adde3[_0x232b57++]);}for(const [_0x2fa410,_0x2c4fa9]of _0x1d2b2a[_0x2c0b('0x15')])_0x2fa410[_0x2c0b('0xb4')](_0x2c0b('0x8e'))||this['_markers'][_0x2c0b('0xce')](_0x2fa410,_0x2c4fa9);}const _0x3631d3=G('$graveyard');this['_baseRoots'][_0x2c0b('0xce')](_0x2c0b('0x8b'),_0x3631d3),this[_0x2c0b('0x30')][_0x2c0b('0xce')]('$graveyard',this[_0x2c0b('0x63')](_0x3631d3,0x1));const _0x1b7f14=G(_0x2c0b('0x8b'));this['_diffRoots'][_0x2c0b('0xce')](_0x2c0b('0x8b'),_0x1b7f14),this[_0x2c0b('0x84')]['set'](_0x2c0b('0x8b'),this[_0x2c0b('0x63')](_0x1b7f14,0x1));const _0x4c5574=Array['from'](this[_0x2c0b('0x2e')])[_0x2c0b('0x97')](([_0x51a190,_0x19f35b])=>[_0x51a190,q(_0x19f35b)]);this[_0x2c0b('0x79')](this[_0x2c0b('0x1f')],_0x4c5574,this['_markers'],_0x2290a2);}['_makeModelFromViewString'](_0x7f04ef){const _0x32c5ad=JSON[_0x2c0b('0xa9')](_0x7f04ef),_0x31ff69=this[_0x2c0b('0x24')][_0x2c0b('0xdc')][_0x2c0b('0x20')][_0x2c0b('0x69')],_0x41c103=new _0x463056(_0x31ff69,_0x32c5ad['map'](_0x12b878=>J(_0x12b878,this[_0x2c0b('0x24')])));return this[_0x2c0b('0x24')][_0x2c0b('0x2')][_0x2c0b('0x16')](_0x41c103);}[_0x2c0b('0x79')](_0x5508c2,_0x1af05f,_0x73f99,_0x5becb3){const _0x18f29f=new Map(_0x1af05f),_0x55c7c0=new Map(_0x8233d4(_0x5becb3)),_0x3fad1a=new Map();for(const [_0x309f58,_0x4c4e9d]of _0x73f99)_0x3fad1a['set'](_0x309f58,{'start':_0x4c4e9d[_0x2c0b('0xf5')][_0x2c0b('0x89')](),'end':_0x4c4e9d[_0x2c0b('0x13')][_0x2c0b('0x89')](),'rootName':_0x4c4e9d[_0x2c0b('0x90')][_0x2c0b('0x38')]});this[_0x2c0b('0x2a')][_0x2c0b('0xce')](_0x5508c2,{'roots':_0x18f29f,'markers':_0x3fad1a,'rootsAttributes':_0x55c7c0});}[_0x2c0b('0xd6')](_0x3b4052){this[_0x2c0b('0x2a')][_0x2c0b('0x4d')](_0x3b4052);}[_0x2c0b('0xd5')](){this[_0x2c0b('0xf7')](),this[_0x2c0b('0x3c')]=-0x1,this[_0x2c0b('0x1f')]=-0x1,this[_0x2c0b('0x2a')][_0x2c0b('0x6a')](),this[_0x2c0b('0xbf')](this['source']);}['_reset'](){this[_0x2c0b('0xcd')][_0x2c0b('0x6a')](),this[_0x2c0b('0xa7')][_0x2c0b('0x6a')](),this['_touchedRoots']['clear'](),this[_0x2c0b('0x2e')][_0x2c0b('0x6a')](),this[_0x2c0b('0x48')][_0x2c0b('0x6a')](),this[_0x2c0b('0x98')][_0x2c0b('0x6a')](),this['_baseRootsAttributes'][_0x2c0b('0x6a')](),this['_idsRoots']['clear'](),this[_0x2c0b('0x30')]['clear'](),this[_0x2c0b('0x3')]['clear'](),this['_revisionId']=0x1,this[_0x2c0b('0x94')]=this[_0x2c0b('0x22')];}[_0x2c0b('0x63')](_0x75a8bd,_0x358973=null){let _0x5ccd84=null;_0x75a8bd['is'](_0x2c0b('0x1'))||(_0x5ccd84=new _0x5bade4(_0x75a8bd['name'],{'vid_start':null===_0x358973?this[_0x2c0b('0x22')]++:_0x358973++}));const _0x143539=[];for(const _0x25400f of _0x75a8bd[_0x2c0b('0x34')]())if(_0x25400f['is'](_0x2c0b('0xc4'))){_0x143539[_0x2c0b('0x44')](this['_makeIdsRoot'](_0x25400f,_0x358973));const _0x4c84cf=_0x143539[_0x143539[_0x2c0b('0xaf')]-0x1];null!==_0x358973&&(_0x358973=_0x4c84cf['is']('element',_0x2c0b('0xc'))?_0x4c84cf[_0x2c0b('0xf1')](_0x2c0b('0x0'))+0x1:_0x4c84cf['getAttribute'](_0x2c0b('0x2b'))+0x1);}else for(let _0x212fbe=0x0;_0x212fbe<_0x25400f[_0x2c0b('0xb5')];_0x212fbe++)_0x143539[_0x2c0b('0x44')](new _0x5bade4(_0x2c0b('0xc'),{'vid':null===_0x358973?this[_0x2c0b('0x22')]++:_0x358973++}));if(_0x75a8bd['is'](_0x2c0b('0x1'))){const _0x4104f6=G(_0x75a8bd[_0x2c0b('0x38')]);return _0x4104f6[_0x2c0b('0x4b')](0x0,_0x143539),_0x4104f6;}return _0x5ccd84['_setAttribute'](_0x2c0b('0x2b'),null===_0x358973?this[_0x2c0b('0x22')]++:_0x358973++),_0x5ccd84[_0x2c0b('0x4b')](0x0,_0x143539),_0x5ccd84;}[_0x2c0b('0xe9')](_0x30d8d9,_0x29b4f6,_0x328289){this[_0x2c0b('0xf7')]();const {roots:_0x2b2301,markers:_0x4cdf13,rootsAttributes:_0xb3c9cb}=this[_0x2c0b('0x2a')][_0x2c0b('0xbe')](_0x30d8d9);this[_0x2c0b('0x98')]=new Map(_0x2b2301),this[_0x2c0b('0x5b')]=new Map(_0x8233d4(_0xb3c9cb));for(const [_0x4ec3d6,_0x3f2269]of this['_baseRoots'])if(_0x2c0b('0x8b')!==_0x4ec3d6&&(this[_0x2c0b('0x2e')][_0x2c0b('0xce')](_0x4ec3d6,q(_0x3f2269)),this[_0x2c0b('0x48')]=new Map(_0x8233d4(_0xb3c9cb)),_0x328289)){const _0x18a235=this['_revisionId'];this[_0x2c0b('0x84')]['set'](_0x4ec3d6,this['_makeIdsRoot'](_0x3f2269)),this[_0x2c0b('0x30')][_0x2c0b('0xce')](_0x4ec3d6,this[_0x2c0b('0x63')](_0x3f2269,_0x18a235));}this[_0x2c0b('0x94')]=this[_0x2c0b('0x22')],this[_0x2c0b('0x2e')]['set'](_0x2c0b('0x8b'),q(this['_baseRoots'][_0x2c0b('0xbe')](_0x2c0b('0x8b')))),_0x328289&&this[_0x2c0b('0x84')][_0x2c0b('0xce')](_0x2c0b('0x8b'),this[_0x2c0b('0x63')](this[_0x2c0b('0x98')]['get']('$graveyard')));for(const [_0x5a075b,_0x5cf501]of _0x4cdf13){const _0x213f4f=this['_baseRoots'][_0x2c0b('0xbe')](_0x5cf501[_0x2c0b('0x38')]),_0xee3eb4=this['_diffRoots'][_0x2c0b('0xbe')](_0x5cf501['rootName']),_0x302bc1=new _0x404c31(this[_0x2c0b('0x4a')](_0x5cf501['start'],_0x213f4f),this['_fixPosition'](_0x5cf501['end'],_0x213f4f)),_0x3eab18=this[_0x2c0b('0xda')](_0x302bc1,_0xee3eb4);_0x213f4f[_0x2c0b('0x15')]['set'](_0x5a075b,_0x302bc1),this[_0x2c0b('0x3')][_0x2c0b('0xce')](_0x5a075b,_0x3eab18);}this['_applyOperations'](_0x30d8d9,_0x29b4f6,_0x328289);}['_applyOperations'](_0x3cf4e0,_0x8f161,_0x50cd80){for(const _0x101410 of this['source']['getOperations'](_0x3cf4e0,_0x8f161))this[_0x2c0b('0x14')](_0x101410,_0x50cd80);for(const _0x477425 of this[_0x2c0b('0x2e')][_0x2c0b('0x11')]())_0x477425[_0x2c0b('0x15')]['clear']();for(const [_0x24071f,_0x12b7cc]of this[_0x2c0b('0x3')]){this[_0x2c0b('0x2e')][_0x2c0b('0xbe')](_0x12b7cc['root'][_0x2c0b('0x38')])[_0x2c0b('0x15')][_0x2c0b('0xce')](_0x24071f,_0x12b7cc[_0x2c0b('0x89')]());}const _0x31fd24=new Map(),_0x5792c9=new Map();for(const [_0x550425,_0x2320c1]of this[_0x2c0b('0x2e')])_0x31fd24[_0x2c0b('0xce')](_0x550425,q(_0x2320c1)),_0x5792c9['set'](_0x550425,this[_0x2c0b('0x48')][_0x2c0b('0xbe')](_0x550425));this[_0x2c0b('0x79')](_0x8f161,_0x31fd24,this[_0x2c0b('0x3')],_0x5792c9);}[_0x2c0b('0x62')](_0x5dee0c){const _0x36974a=Array[_0x2c0b('0x27')](this[_0x2c0b('0x2a')][_0x2c0b('0x31')]());_0x36974a[_0x2c0b('0x9e')]((_0x530367,_0x167297)=>_0x530367-_0x167297),_0x36974a[_0x2c0b('0x9b')]();for(const _0x329958 of _0x36974a)if(_0x329958<_0x5dee0c)return _0x329958;return Number[_0x2c0b('0xc8')];}[_0x2c0b('0xe7')](_0x33e127,_0x39aa0b){const _0x4f7b9b=Array[_0x2c0b('0x27')](_0x39aa0b[_0x2c0b('0x15')])[_0x2c0b('0x97')](([_0x52a09c,_0x51d287])=>[_0x52a09c,this[_0x2c0b('0xda')](_0x51d287,_0x33e127)]);_0x33e127[_0x2c0b('0x15')]=new Map(_0x4f7b9b);}[_0x2c0b('0x55')](_0x2b2528){for(const _0x4d45db of this[_0x2c0b('0x3')][_0x2c0b('0x11')]()){const _0x4969fc=_0x4d45db[_0x2c0b('0xab')](_0x2b2528),_0x2d7e64=_0x404c31['_createFromRanges'](_0x4969fc);_0x4d45db[_0x2c0b('0xf5')]=_0x2d7e64[_0x2c0b('0xf5')],_0x4d45db['end']=_0x2d7e64[_0x2c0b('0x13')];}}[_0x2c0b('0x14')](_0x519ad2,_0x627be8){if(_0x2c0b('0x87')==_0x519ad2['type']||_0x2c0b('0xc3')==_0x519ad2[_0x2c0b('0xe4')])return void this[_0x2c0b('0xa5')](_0x519ad2,_0x627be8);if('insert'==_0x519ad2[_0x2c0b('0xe4')]){const _0x527160=_0x519ad2['position']['root'][_0x2c0b('0x38')];this[_0x2c0b('0x2e')][_0x2c0b('0xc0')](_0x527160)||(this[_0x2c0b('0x2e')][_0x2c0b('0xce')](_0x527160,G(_0x527160,!0x0)),this['_diffRootsAttributes'][_0x2c0b('0xce')](_0x527160,{}),_0x627be8&&this[_0x2c0b('0x84')][_0x2c0b('0xce')](_0x527160,G(_0x527160,!0x0)));}else{if(_0x2c0b('0xb3')==_0x519ad2[_0x2c0b('0xe4')]||'removeRootAttribute'==_0x519ad2[_0x2c0b('0xe4')]||'changeRootAttribute'==_0x519ad2[_0x2c0b('0xe4')])return void this[_0x2c0b('0x43')](_0x519ad2);}const _0x20f8c6=this[_0x2c0b('0xee')](_0x519ad2,this[_0x2c0b('0x2e')]);if(_0x2c0b('0x25')!==_0x519ad2[_0x2c0b('0xe4')]&&(_0x20f8c6['_execute'](),this[_0x2c0b('0x55')](_0x20f8c6)),_0x627be8)switch(_0x20f8c6['type']){case _0x2c0b('0xeb'):this[_0x2c0b('0x42')](_0x519ad2);break;case _0x2c0b('0x7a'):case _0x2c0b('0xd1'):case'reinsert':this[_0x2c0b('0x76')](_0x519ad2);break;case _0x2c0b('0xd2'):this[_0x2c0b('0x18')](_0x519ad2);break;case _0x2c0b('0xa8'):this[_0x2c0b('0x4f')](_0x519ad2);break;case _0x2c0b('0x25'):this[_0x2c0b('0x9a')](_0x519ad2);}}[_0x2c0b('0xee')](_0x29084c,_0x2bf231){const _0x54ce31=_0x29084c['clone']();return _0x54ce31['_authorId']=_0x29084c[_0x2c0b('0x73')],this[_0x2c0b('0x7f')](_0x54ce31,_0x2bf231),_0x54ce31;}[_0x2c0b('0xf8')](_0x2c4802){return _0x2c4802[_0x2c0b('0x97')](_0x52cc30=>{const _0x1909c9=this[_0x2c0b('0x8c')](_0x52cc30);return Number(_0x52cc30['item']['getAttribute'](_0x1909c9));});}[_0x2c0b('0xe8')](_0x211a56,_0x324565){if(_0x211a56['is'](_0x2c0b('0xc4'),_0x2c0b('0xc')))_0x324565[_0x2c0b('0x44')]({'item':_0x211a56,'type':'text'});else{_0x211a56['is'](_0x2c0b('0xc4'))&&_0x324565[_0x2c0b('0x44')]({'item':_0x211a56,'type':_0x2c0b('0xb1')});for(const _0x2ceb41 of _0x211a56[_0x2c0b('0x34')]())this[_0x2c0b('0xe8')](_0x2ceb41,_0x324565);_0x211a56['is'](_0x2c0b('0xc4'))&&_0x324565[_0x2c0b('0x44')]({'item':_0x211a56,'type':_0x2c0b('0x81')});}return _0x324565;}[_0x2c0b('0xa2')](){const _0x3ad463=new Map(this[_0x2c0b('0xcd')]),_0x48098f=new Map(_0x3ad463),_0x45cf95=new Map(),_0x96242a={'insertions':{},'deletions':{}},_0x1e8199={'insertions':{},'deletions':{}},_0x3c2695=new Map(),_0x3a5159=new Set([...this['_baseRoots'][_0x2c0b('0x31')](),...this['_diffRoots']['keys']()]);_0x3a5159[_0x2c0b('0x4d')](_0x2c0b('0x8b'));for(const _0x31ad95 of _0x3a5159){const _0x1a96cf=this['_diffRoots'][_0x2c0b('0xbe')](_0x31ad95)||G(_0x31ad95,!0x1),_0x3a2b7d=this[_0x2c0b('0x98')][_0x2c0b('0xbe')](_0x31ad95)||G(_0x31ad95,!0x1);_0x1a96cf[_0x2c0b('0x45')]()||_0x3a2b7d[_0x2c0b('0x45')]()?(_0x96242a[_0x2c0b('0xdd')][_0x31ad95]=q(_0x1a96cf),_0x96242a[_0x2c0b('0x70')][_0x31ad95]=q(_0x3a2b7d),this[_0x2c0b('0xe7')](_0x96242a[_0x2c0b('0x70')][_0x31ad95],_0x3a2b7d),this['_copyMarkers'](_0x96242a[_0x2c0b('0xdd')][_0x31ad95],_0x1a96cf),_0x1e8199[_0x2c0b('0xdd')][_0x31ad95]=this[_0x2c0b('0xe8')](this[_0x2c0b('0x84')]['get'](_0x31ad95),[]),_0x1e8199[_0x2c0b('0x70')][_0x31ad95]=this['_generateTape'](this[_0x2c0b('0x30')][_0x2c0b('0xbe')](_0x31ad95)||G(_0x31ad95,!0x1),[])):_0x3a5159[_0x2c0b('0x4d')](_0x31ad95);}for(const _0xea7a of _0x3a5159){const _0x4a0324=_0x1e8199['insertions'][_0xea7a];for(const _0x5dcfe0 of _0x4a0324){const _0xebdd9=this[_0x2c0b('0x8c')](_0x5dcfe0),_0x1a546f=_0x5dcfe0['item'][_0x2c0b('0xf1')](_0xebdd9);_0x48098f[_0x2c0b('0x4d')](_0x1a546f),_0x1a546f>=this[_0x2c0b('0x94')]&&_0x45cf95['set'](_0x1a546f,_0x3ad463[_0x2c0b('0xbe')](_0x1a546f));}}for(const _0x20bdab of _0x3a5159){const _0x1d1264=_0x1e8199['insertions'][_0x20bdab],_0x26dd59=this['_getBaseVids'](_0x1e8199['deletions'][_0x20bdab]);let _0x43eee8=0x0;for(const _0x119805 of _0x1d1264){const _0x33f7b1=this['_getVidAttributeName'](_0x119805),_0x1b8a99=_0x119805[_0x2c0b('0x2f')][_0x2c0b('0xf1')](_0x33f7b1);if(!_0x45cf95[_0x2c0b('0xc0')](_0x1b8a99)&&!_0x3c2695['has'](_0x1b8a99)){if(_0x48098f[_0x2c0b('0xc0')](_0x1b8a99))_0x43eee8++;else{if(_0x1b8a99!=_0x26dd59[_0x43eee8]){const _0x2ce19a=_0x3ad463[_0x2c0b('0xbe')](_0x1b8a99)||_0x3ad463[_0x2c0b('0xbe')](_0x26dd59[_0x43eee8]);for(;_0x1b8a99!=_0x26dd59[_0x43eee8];)_0x48098f['has'](_0x26dd59[_0x43eee8])||(_0x3c2695[_0x2c0b('0xce')](_0x26dd59[_0x43eee8],_0x2ce19a),_0x3ad463[_0x2c0b('0xce')](_0x26dd59[_0x43eee8],_0x2ce19a)),_0x43eee8++;}_0x43eee8++;}}}}for(const _0x2a1d3d of _0x3a5159){const _0x371076=_0x1e8199['insertions'][_0x2a1d3d];for(const _0xc2dc38 of _0x371076){const _0x5a5948=this['_getVidAttributeName'](_0xc2dc38),_0x4bb546=_0xc2dc38[_0x2c0b('0x2f')][_0x2c0b('0xf1')](_0x5a5948);if(_0x3c2695[_0x2c0b('0xc0')](_0x4bb546)){const _0x4b921f=_0x3c2695[_0x2c0b('0xbe')](_0x4bb546);_0x48098f[_0x2c0b('0xc0')](_0x4bb546)||_0x48098f[_0x2c0b('0xce')](_0x4bb546,{..._0x4b921f}),_0x45cf95['set'](_0x4bb546,{..._0x4b921f});}}}for(const _0x556557 of _0x48098f['keys']())_0x556557>=this['_startingRevisionId']&&_0x48098f[_0x2c0b('0x4d')](_0x556557);const _0x506f55=new Map();for(const _0x5a6418 of _0x3a5159){let _0x3ef2df=_0x1e8199[_0x2c0b('0xdd')][_0x5a6418];for(const _0x26b2c6 of _0x3ef2df)if(_0x26b2c6['item']['is']('element',_0x2c0b('0xec'))){const _0x14cae4=this[_0x2c0b('0x8c')](_0x26b2c6),_0x1699d9=_0x26b2c6[_0x2c0b('0x2f')][_0x2c0b('0xf1')](_0x14cae4);if(_0x45cf95[_0x2c0b('0xc0')](_0x1699d9)){const _0x3d0363=_0x26b2c6['item'][_0x2c0b('0xdb')]['parent'][_0x2c0b('0xf1')](_0x2c0b('0x49')),_0xe80521=_0x506f55[_0x2c0b('0xbe')](_0x3d0363)||new Set();_0xe80521[_0x2c0b('0xef')](_0x45cf95[_0x2c0b('0xbe')](_0x1699d9)[_0x2c0b('0xa1')]),_0x506f55[_0x2c0b('0xce')](_0x3d0363,_0xe80521);}}_0x3ef2df=_0x1e8199[_0x2c0b('0x70')][_0x5a6418];for(const _0x28daf5 of _0x3ef2df)if(_0x28daf5['item']['is'](_0x2c0b('0xc4'),'tableCell')){const _0x313a29=this[_0x2c0b('0x8c')](_0x28daf5),_0x3bd623=_0x28daf5['item'][_0x2c0b('0xf1')](_0x313a29);if(_0x48098f[_0x2c0b('0xc0')](_0x3bd623)){const _0x18603=_0x28daf5[_0x2c0b('0x2f')][_0x2c0b('0xdb')]['parent'][_0x2c0b('0xf1')]('vid_start'),_0x261e49=_0x506f55[_0x2c0b('0xbe')](_0x18603)||new Set();_0x261e49[_0x2c0b('0xef')](_0x48098f[_0x2c0b('0xbe')](_0x3bd623)[_0x2c0b('0xa1')]),_0x506f55['set'](_0x18603,_0x261e49);}}for(const _0x45b810 of _0x506f55[_0x2c0b('0x31')]())(_0x45cf95[_0x2c0b('0xc0')](_0x45b810)||_0x48098f[_0x2c0b('0xc0')](_0x45b810))&&_0x506f55[_0x2c0b('0x4d')](_0x45b810);}for(const _0x23d249 of _0x3a5159){const _0x1e5c40=_0x1e8199[_0x2c0b('0xdd')][_0x23d249];let _0x505cd9=null,_0x13ac65=null;for(const _0x45e863 of _0x1e5c40){const _0x214a40=this['_getVidAttributeName'](_0x45e863),_0x33faf7=_0x45e863[_0x2c0b('0x2f')][_0x2c0b('0xf1')](_0x214a40),_0x20965b=_0x506f55[_0x2c0b('0xbe')](_0x33faf7);_0x20965b&&_0x2c0b('0xb1')==_0x45e863[_0x2c0b('0xe4')]&&(_0x505cd9=Array[_0x2c0b('0x27')](_0x20965b)[0x0],_0x13ac65=_0x45e863[_0x2c0b('0x2f')][_0x2c0b('0xf1')]('vid_end')),_0x505cd9&&(_0x48098f['set'](_0x33faf7,{'userId':_0x505cd9}),_0x45cf95[_0x2c0b('0xce')](_0x33faf7,{'userId':_0x505cd9})),_0x33faf7==_0x13ac65&&(_0x505cd9=null,_0x13ac65=null);}}const _0x5263db={},_0x5a579a=new Set();for(const _0x521a65 of _0x3a5159){const _0x441275=_0x96242a[_0x2c0b('0x70')][_0x521a65],_0x367608=_0x96242a['insertions'][_0x521a65];for(const {userId:_0x23fdf3}of this[_0x2c0b('0xa7')][_0x2c0b('0x11')]())null!==_0x23fdf3&&_0x5a579a[_0x2c0b('0xef')](_0x23fdf3);for(const {userId:_0x336a90}of this[_0x2c0b('0xca')][_0x2c0b('0x11')]())null!==_0x336a90&&_0x5a579a['add'](_0x336a90);this['_markChanges'](_0x367608,_0x1e8199[_0x2c0b('0xdd')][_0x521a65],_0x45cf95,_0x2c0b('0xde'),_0x5a579a),this[_0x2c0b('0x3a')](_0x441275,_0x1e8199['deletions'][_0x521a65],_0x48098f,'deletion',_0x5a579a),_0x5263db[_0x521a65]={'insertions':this[_0x2c0b('0x58')](_0x367608),'deletions':this[_0x2c0b('0x58')](_0x441275),'attachChange':this[_0x2c0b('0xca')][_0x2c0b('0xbe')](_0x521a65)||null,'attributesBefore':_0x8233d4(this[_0x2c0b('0x5b')]['get'](_0x521a65))||{},'attributesAfter':_0x8233d4(this[_0x2c0b('0x48')][_0x2c0b('0xbe')](_0x521a65))};}return{'diffData':_0x5263db,'authorsIds':Array['from'](_0x5a579a)};}[_0x2c0b('0xac')](_0x5bd389){for(const [,_0x2c42b9]of _0x5bd389[_0x2c0b('0x15')]){const _0x48625c=_0x2c42b9[_0x2c0b('0xf5')]['getAncestors']()[_0x2c0b('0xc2')](_0x3765cc=>_0x2c0b('0xec')==_0x3765cc[_0x2c0b('0x4')]);for(const _0x52bc25 of _0x48625c)0x1==_0x52bc25['childCount']&&_0x52bc25[_0x2c0b('0x2c')](0x0)['is']('element',_0x2c0b('0xb6'))&&_0x52bc25[_0x2c0b('0x2c')](0x0)['_setAttribute']('keepParagraph',!0x0);}}[_0x2c0b('0x58')](_0x499ae0){this[_0x2c0b('0xac')](_0x499ae0);const _0x241bb5=this[_0x2c0b('0x24')][_0x2c0b('0x2')]['toView'](_0x499ae0,{}),_0x1747ce=Array[_0x2c0b('0x27')](_0x241bb5[_0x2c0b('0x34')]())[_0x2c0b('0x97')](_0x100b00=>this[_0x2c0b('0xfa')](_0x100b00));return JSON['stringify'](_0x1747ce);}[_0x2c0b('0xfa')](_0x59e6ea){if(_0x59e6ea['is'](_0x2c0b('0xc')))return _0x59e6ea[_0x2c0b('0x2')];{const _0x5574cb=_0x59e6ea;return{'type':Object[_0x2c0b('0x31')](B)[_0x2c0b('0x19')](_0x3609f6=>_0x59e6ea instanceof B[_0x3609f6]),'name':_0x5574cb['name'],'attributes':Array[_0x2c0b('0x27')](_0x5574cb[_0x2c0b('0x9f')]()),'children':Array['from'](_0x5574cb[_0x2c0b('0x34')]())[_0x2c0b('0x97')](_0x36f72e=>this[_0x2c0b('0xfa')](_0x36f72e))};}}[_0x2c0b('0x3a')](_0x353c27,_0x5c377b,_0x5149b4,_0x5cc52c,_0x1e18e6){let _0x22d2b2=null,_0x339a95=null,_0x4b874b=0x0;const _0x4c35d7=this['editor'][_0x2c0b('0x61')];for(let _0x4b6c68=0x0;_0x4b6c68<_0x5c377b[_0x2c0b('0xaf')];_0x4b6c68++){const _0x29862b=this['_getVidAttributeName'](_0x5c377b[_0x4b6c68]),_0x428733=_0x5c377b[_0x4b6c68][_0x2c0b('0x2f')][_0x2c0b('0xf1')](_0x29862b),_0x173b7d=_0x5149b4[_0x2c0b('0xbe')](_0x428733),_0x536871=_0x4b6c68==_0x5c377b[_0x2c0b('0xaf')]-0x1;(!_0x22d2b2&&_0x173b7d&&(_0x22d2b2=_0x173b7d,_0x339a95=_0x5c377b[_0x4b6c68]),_0x22d2b2&&(!_0x173b7d||_0x173b7d[_0x2c0b('0xa1')]!=_0x22d2b2['userId']))&&(_0x561877(_0x173b7d,L(_0x339a95,_0x353c27,_0x4c35d7),L(_0x5c377b[_0x4b6c68],_0x353c27,_0x4c35d7)),_0x22d2b2=_0x173b7d||null,_0x339a95=_0x173b7d?_0x5c377b[_0x4b6c68]:null),_0x22d2b2&&_0x536871&&_0x561877(_0x173b7d,L(_0x339a95,_0x353c27,_0x4c35d7),W(_0x5c377b[_0x4b6c68],_0x353c27,_0x4c35d7));}function _0x561877(_0x25b902,_0x31ddb1,_0x5bbebe){const _0x2d7e07=_0x22d2b2[_0x2c0b('0xa1')],_0x58477d=_0x2c0b('0x8e')+_0x5cc52c+':'+_0x2d7e07+':'+_0x4b874b++,_0x5196a9=_0x4c35d7[_0x2c0b('0x92')](_0x31ddb1,_0x5bbebe);_0x353c27[_0x2c0b('0x15')]['set'](_0x58477d,_0x5196a9),null!==_0x2d7e07&&_0x1e18e6['add'](_0x2d7e07);}}[_0x2c0b('0x8c')](_0x134749){switch(_0x134749[_0x2c0b('0xe4')]){case _0x2c0b('0xb1'):return'vid_start';case _0x2c0b('0x81'):return _0x2c0b('0x2b');default:return _0x2c0b('0x0');}}[_0x2c0b('0x7f')](_0x1b47f1,_0x11b526){_0x1b47f1['baseVersion']=null;for(const _0x2c590f in _0x1b47f1){const _0x148cf1=_0x1b47f1[_0x2c590f];if(_0x148cf1 instanceof _0x4283bc){const _0x267f05=_0x11b526[_0x2c0b('0xbe')](_0x148cf1[_0x2c0b('0x90')][_0x2c0b('0x38')]);_0x1b47f1[_0x2c590f]=this['_fixPosition'](_0x148cf1,_0x267f05);}if(_0x148cf1 instanceof _0x404c31){const _0x21ee32=_0x11b526[_0x2c0b('0xbe')](_0x148cf1[_0x2c0b('0x90')]['rootName']);_0x1b47f1[_0x2c590f]=this[_0x2c0b('0xda')](_0x148cf1,_0x21ee32);}_0x2c0b('0x90')===_0x2c590f&&(_0x1b47f1[_0x2c0b('0x90')]=_0x11b526[_0x2c0b('0xbe')](_0x1b47f1[_0x2c0b('0x90')]['rootName']));}}[_0x2c0b('0xda')](_0x508f14,_0x3fd6b5){return this[_0x2c0b('0x24')][_0x2c0b('0x61')][_0x2c0b('0x92')](this['_fixPosition'](_0x508f14[_0x2c0b('0xf5')],_0x3fd6b5),this[_0x2c0b('0x4a')](_0x508f14[_0x2c0b('0x13')],_0x3fd6b5));}[_0x2c0b('0x4a')](_0x43fd16,_0xc63ee3){return this[_0x2c0b('0x24')][_0x2c0b('0x61')][_0x2c0b('0xae')](_0xc63ee3,_0x43fd16[_0x2c0b('0xba')],_0x43fd16[_0x2c0b('0x66')]);}['_handleInsertOperation'](_0x87df57){const _0x4bdcb9=this['_idsRoots'][_0x2c0b('0xbe')](_0x87df57[_0x2c0b('0x5a')][_0x2c0b('0x90')][_0x2c0b('0x38')]),_0x58b74b=this['_fixPosition'](_0x87df57[_0x2c0b('0x5a')],_0x4bdcb9),_0x2e4fbb=null===_0x87df57[_0x2c0b('0x73')]?null:_0x87df57[_0x2c0b('0x73')]||this['editor'][_0x2c0b('0x9')][_0x2c0b('0xbe')](_0x2c0b('0x17'))['me']['id'],_0x5cc072=_0x58b74b['parent'],_0x5d6faf=this[_0x2c0b('0x22')],_0x8e5ec2=[];for(const _0x1fa3d5 of _0x87df57['nodes'])if(_0x1fa3d5['is'](_0x2c0b('0xc4')))_0x8e5ec2[_0x2c0b('0x44')](this[_0x2c0b('0x63')](_0x1fa3d5));else for(let _0x86ce39=0x0;_0x86ce39<_0x1fa3d5['offsetSize'];_0x86ce39++)_0x8e5ec2[_0x2c0b('0x44')](new _0x5bade4(_0x2c0b('0xc'),{'vid':this[_0x2c0b('0x22')]++}));const _0x1a3459=this[_0x2c0b('0x22')];for(let _0x2ba1b3=_0x5d6faf;_0x2ba1b3<_0x1a3459;_0x2ba1b3++)this[_0x2c0b('0xcd')]['set'](_0x2ba1b3,{'userId':_0x2e4fbb});_0x5cc072['_insertChild'](_0x58b74b[_0x2c0b('0x8f')],_0x8e5ec2);}[_0x2c0b('0x76')](_0x3b0ea6){(_0x3b0ea6=this[_0x2c0b('0xee')](_0x3b0ea6,this['_idsRoots']))[_0x2c0b('0xb7')]();const _0x484fe4=null===_0x3b0ea6[_0x2c0b('0x73')]?null:_0x3b0ea6[_0x2c0b('0x73')]||this['editor'][_0x2c0b('0x9')][_0x2c0b('0xbe')](_0x2c0b('0x17'))['me']['id'],_0x56af48=_0x3b0ea6[_0x2c0b('0xbb')](),_0x5c1ed2=_0x56af48[_0x2c0b('0xdb')],_0x5b57dd=_0x56af48[_0x2c0b('0x8f')];!function _0x46d1af(_0x31fa51,_0x5a0310,_0x32a140,_0x361057){for(let _0x42975c=_0x32a140;_0x42975c<_0x361057;_0x42975c++){const _0x11a69f=_0x5a0310[_0x2c0b('0x2c')](_0x42975c);_0x11a69f['is']('element','$text')?_0x31fa51['set'](_0x11a69f['getAttribute'](_0x2c0b('0x0')),{'userId':_0x484fe4}):(_0x31fa51[_0x2c0b('0xce')](_0x11a69f['getAttribute'](_0x2c0b('0x49')),{'userId':_0x484fe4}),_0x46d1af(_0x31fa51,_0x11a69f,0x0,_0x11a69f[_0x2c0b('0x9c')]),_0x31fa51[_0x2c0b('0xce')](_0x11a69f[_0x2c0b('0xf1')]('vid_end'),{'userId':_0x484fe4}));}}(this[_0x2c0b('0xcd')],_0x5c1ed2,_0x5b57dd,_0x5b57dd+_0x3b0ea6[_0x2c0b('0xd7')]);}[_0x2c0b('0x18')](_0x2d915b){const _0x191461=null===(_0x2d915b=this[_0x2c0b('0xee')](_0x2d915b,this['_idsRoots']))[_0x2c0b('0x73')]?null:_0x2d915b[_0x2c0b('0x73')]||this[_0x2c0b('0x24')]['plugins'][_0x2c0b('0xbe')](_0x2c0b('0x17'))['me']['id'],_0x1c7358=_0x2d915b[_0x2c0b('0xed')][_0x2c0b('0xdb')],_0x1df7da=_0x2d915b[_0x2c0b('0x6f')][_0x2c0b('0xdb')],_0x4eb055=_0x1c7358[_0x2c0b('0xf1')](_0x2c0b('0x2b')),_0x4eeb27=_0x1df7da[_0x2c0b('0xf1')]('vid_start');_0x1c7358[_0x2c0b('0x95')]('vid_end',_0x1df7da[_0x2c0b('0xf1')](_0x2c0b('0x2b'))),_0x1df7da[_0x2c0b('0x95')]('vid_end',_0x4eb055),this[_0x2c0b('0xcd')][_0x2c0b('0xce')](_0x4eeb27,{'userId':_0x191461}),this[_0x2c0b('0xcd')]['set'](_0x4eb055,{'userId':_0x191461}),_0x2d915b['_execute']();}[_0x2c0b('0x4f')](_0x297a5b){const _0x3d4c0d=null===(_0x297a5b=this['_cloneOperation'](_0x297a5b,this['_idsRoots']))['_authorId']?null:_0x297a5b['_authorId']||this[_0x2c0b('0x24')][_0x2c0b('0x9')]['get'](_0x2c0b('0x17'))['me']['id'],_0x2bbb6d=_0x297a5b[_0x2c0b('0xf2')],_0x4d9a72=_0x297a5b[_0x2c0b('0x88')]['parent'];_0x297a5b['_execute']();const _0x1d2db4=_0x4d9a72[_0x2c0b('0xf1')](_0x2c0b('0x2b')),_0x37031d=_0x297a5b[_0x2c0b('0x74')]['nodeAfter'];if(_0x2bbb6d){const _0x31a9c1=_0x37031d[_0x2c0b('0xf1')](_0x2c0b('0x2b')),_0x15e242=_0x4d9a72[_0x2c0b('0xf1')](_0x2c0b('0x2b'));_0x4d9a72['_setAttribute'](_0x2c0b('0x2b'),_0x31a9c1),_0x37031d[_0x2c0b('0x95')]('vid_end',_0x15e242),this[_0x2c0b('0xcd')][_0x2c0b('0xce')](_0x4d9a72[_0x2c0b('0xf1')](_0x2c0b('0x2b')),{'userId':_0x3d4c0d}),this[_0x2c0b('0xcd')][_0x2c0b('0xce')](_0x37031d[_0x2c0b('0xf1')]('vid_start'),{'userId':_0x3d4c0d});}else{const _0x1b6939=this[_0x2c0b('0x22')]++,_0x378f9c=this[_0x2c0b('0x22')]++;_0x4d9a72[_0x2c0b('0x95')]('vid_end',_0x1b6939),_0x37031d[_0x2c0b('0x95')]('vid_start',_0x378f9c),_0x37031d[_0x2c0b('0x95')](_0x2c0b('0x2b'),_0x1d2db4),this['_touched'][_0x2c0b('0xce')](_0x1b6939,{'userId':_0x3d4c0d}),this[_0x2c0b('0xcd')]['set'](_0x378f9c,{'userId':_0x3d4c0d});}}[_0x2c0b('0x9a')](_0x11419f){if(!_0x11419f[_0x2c0b('0x9d')])return;const _0x23c2b9=(_0x11419f=this[_0x2c0b('0xee')](_0x11419f,this[_0x2c0b('0x2e')]))[_0x2c0b('0x6b')]?_0x11419f[_0x2c0b('0x6b')][_0x2c0b('0x90')]:null,_0x5b5ede=_0x11419f[_0x2c0b('0x40')]?_0x11419f[_0x2c0b('0x40')][_0x2c0b('0x90')]:null;_0x23c2b9&&this[_0x2c0b('0x3')]['delete'](_0x11419f[_0x2c0b('0x4')]),_0x5b5ede&&this[_0x2c0b('0x3')][_0x2c0b('0xce')](_0x11419f[_0x2c0b('0x4')],_0x11419f['newRange'][_0x2c0b('0x89')]());const _0x42a3a8=null===_0x11419f[_0x2c0b('0x73')]?null:_0x11419f[_0x2c0b('0x73')]||this[_0x2c0b('0x24')]['plugins']['get'](_0x2c0b('0x17'))['me']['id'],_0x29f996=_0x11419f['name'];if(!this[_0x2c0b('0xa7')][_0x2c0b('0xc0')](_0x29f996))return void this[_0x2c0b('0xa7')][_0x2c0b('0xce')](_0x29f996,{'range':_0x11419f[_0x2c0b('0x6b')],'userId':_0x42a3a8});const _0x18ef07=this[_0x2c0b('0xa7')][_0x2c0b('0xbe')](_0x29f996),_0xd49778=_0x18ef07[_0x2c0b('0x33')],_0x3bef83=_0x11419f[_0x2c0b('0x40')];null==_0xd49778&&null==_0x3bef83||_0xd49778&&_0x3bef83&&_0xd49778[_0x2c0b('0x68')](_0x3bef83)?this['_touchedMarkers'][_0x2c0b('0x4d')](_0x11419f[_0x2c0b('0x4')]):_0x18ef07[_0x2c0b('0xa1')]=_0x42a3a8;}[_0x2c0b('0xa5')](_0x3139a9,_0x1e6af7){this[_0x2c0b('0x2e')][_0x2c0b('0xc0')](_0x3139a9[_0x2c0b('0x38')])?this[_0x2c0b('0x2e')][_0x2c0b('0xbe')](_0x3139a9['rootName'])[_0x2c0b('0xe1')]=_0x3139a9[_0x2c0b('0x46')]:(this[_0x2c0b('0x2e')][_0x2c0b('0xce')](_0x3139a9[_0x2c0b('0x38')],G(_0x3139a9[_0x2c0b('0x38')],!0x0)),this['_diffRootsAttributes'][_0x2c0b('0xce')](_0x3139a9[_0x2c0b('0x38')],{}),_0x1e6af7&&this['_idsRoots'][_0x2c0b('0xce')](_0x3139a9[_0x2c0b('0x38')],G(_0x3139a9[_0x2c0b('0x38')],!0x0)));const _0x41d14f=null===_0x3139a9[_0x2c0b('0x73')]?null:_0x3139a9[_0x2c0b('0x73')]||this[_0x2c0b('0x24')]['plugins'][_0x2c0b('0xbe')]('Users')['me']['id'],_0x1bfb0a=this[_0x2c0b('0xca')][_0x2c0b('0xbe')](_0x3139a9['rootName']);_0x1bfb0a&&_0x1bfb0a[_0x2c0b('0xa1')]===_0x41d14f?this[_0x2c0b('0xca')]['delete'](_0x3139a9[_0x2c0b('0x38')]):this[_0x2c0b('0xca')]['set'](_0x3139a9['rootName'],{'userId':_0x41d14f,'isAttached':_0x3139a9[_0x2c0b('0x46')]});}['_handleRootAttributeOperation'](_0x2d53fc){const _0x5de40a=this[_0x2c0b('0x48')][_0x2c0b('0xbe')](_0x2d53fc['root']['rootName']);null===_0x2d53fc[_0x2c0b('0x5f')]?delete _0x5de40a[_0x2d53fc[_0x2c0b('0x10')]]:_0x5de40a[_0x2d53fc[_0x2c0b('0x10')]]=_0x2d53fc[_0x2c0b('0x5f')];}}function q(_0x4ba8bb){const _0x1b1043=G(_0x4ba8bb[_0x2c0b('0x38')],_0x4ba8bb['isAttached']());for(const _0x2717f3 of _0x4ba8bb[_0x2c0b('0x34')]()){const _0x526f8d=_0x2717f3[_0x2c0b('0x82')](!0x0);_0x1b1043[_0x2c0b('0x78')](_0x526f8d);}return _0x1b1043;}function G(_0x1f99a4,_0x126d30=!0x0){const _0x1a08bc=new _0x109000();return _0x1a08bc['rootName']=_0x1f99a4,_0x1a08bc['_isAttached']=_0x126d30,_0x1a08bc['isAttached']=()=>_0x1a08bc[_0x2c0b('0xe1')],_0x1a08bc;}function L(_0x3e90a5,_0x5b3072,_0x458b80){const _0x3e14fe='elementEnd'==_0x3e90a5[_0x2c0b('0xe4')]?_0x458b80['createPositionAt'](_0x3e90a5[_0x2c0b('0x2f')],_0x2c0b('0x13')):_0x458b80[_0x2c0b('0xc5')](_0x3e90a5[_0x2c0b('0x2f')]);return _0x458b80[_0x2c0b('0xae')](_0x5b3072,_0x3e14fe[_0x2c0b('0xba')],_0x3e14fe['stickiness']);}function W(_0x41cb78,_0x6c657,_0x463a62){const _0x218041=_0x2c0b('0xb1')==_0x41cb78[_0x2c0b('0xe4')]?_0x463a62['createPositionAt'](_0x41cb78[_0x2c0b('0x2f')],0x0):_0x463a62['createPositionAfter'](_0x41cb78[_0x2c0b('0x2f')]);return _0x463a62['createPositionFromPath'](_0x6c657,_0x218041['path'],_0x218041[_0x2c0b('0x66')]);}
|