@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231013.0 → 0.0.0-nightly-20231015.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 _0x6b6e=['reverse','children','push','getAttribute','rootsAttributes','oldRange','createPositionAt','previousPosition','NEGATIVE_INFINITY','offset','_touchedMarkers','_findInsertionIndex','revision','ready','_replaceEditorDataWithRevisionData','getRevisionRootsAttributes','loadState','getRevisionDocumentData','bind','add','map','string','includes','_getVidAttributeName','creatorId','getAttributes','text','getNodeByPath','tableCell','_revisionDataBuilder','fromVersion','getUser','trim','reInit','length','_handleInsertOperation','processor','Users','set','baseVersion','default','_revisionId','_clone','_makeModelFromViewString','_isInit','type','filter','useFillerType','removeRootAttribute','_fixPosition','setSource','plugins','keys','config','_setConversion','_handleMergeOperation','_touched','_execute','start','_operations','history','move','isAttached','revision-start','_startingVersion','getOperation','root','init','attributesBefore','_fixRange','getWalker','graveyardPosition','end','editing','values','key','forEach','getRootNames','toVersion','remove','attributes','size','insertions','stringify','PENDING_ACTION_REVISION_HISTORY','view','find','_insertChild','saveRevision','requires','_removeMetaData','isEqual','$graveyard','_markChanges','attachChange','_isPendingUpdate','markerToData','_reset','position','RealTimeCollaborationClient','initial','newRange','conversion','_prepareViewToSave','_getViewJson','currentRevision','createRangeIn','dataDowncast','clone','_savedMetaData','finally','authors','insertion','_handleMoveOperation','has','_fixOperation','changeRootAttribute','splitPosition','_processRootBeforeSave','_makeRevision','range','_baseRootsAttributes','addRevisionData','getRevisions','setRevisionData','authorsIds','_transformMarkers','createPositionFromPath','_loadedStateData','rootName','slice','sendBufferedUpdates','_handleOperation','_removePendingAction','_pendingAction','offsetSize','data-revision-','_authorId','_diffRoots','element','_copyMarkers','detachRoot','_calculateMetaData','editor','paragraph','_removeRevisionMarkers','afterInit','addRoot','_createCurrentRevision','_lastFrom','isAdd','createRange','pluginName','_createInitialRevision','_handleRootOperation','childCount','_createFromRanges','reinsert','toModel','getCurrentRevisionId','elementStart','document','startsWith','_handleRootAttributeOperation','diffData','get','initialData','delete','name','getLatestVersion','marker','markers','repository','isEnabled','collaboration.channelId','deletions','getMovedRangeStart','hasContent','parse','$text','_diffRootsAttributes','_bufferUpdate','getTransformedByOperation','_appendChild','RevisionsRepository','_markers','resolve','version','_initialRevisionId','model','getAncestors','parent','upcast','_baseRoots','then','_loadState','for','isReady','define','_update','vid','_startingRevisionId','insertionPosition','revision:','_getBaseVids','getRoot','editor-initial-data-replaced-with-revision-data','addRevision','roots','locale','_baseIdsRoots','source','_getFromVersion','vid_end','merge','from','clear','getIndex','_saveMetaData','_loadRevisionData','item','stickiness','_handleMarkerOperation','getChildren','targetPosition','update','attributesAfter','userId','getData','sort','elementEnd','getTime','updateRevisions','_touchedRoots','fromEntries','_source','PendingActions','adapter','toView','_addPendingAction','_setAttribute','documentFragment','_idsRoots','revisionHistory.resumeUnsavedRevision','_getState','getRevision','_isAttached','vid_start','data','creator','deletion','getChild','createPositionAfter','_applyOperations','_lastTo','Empty\x20document','sourcePosition','newValue','Initial\x20revision','_handleSplitOperation','RevisionTracker','getRange','path','_bufferedUpdates','buildRevisionData','createdAt','_generateTape','_continueCurrentRevision','_makeIdsRoot','_cloneOperation','split','createPositionBefore','nodeAfter','dataToMarker'];(function(_0x2022bc,_0x6b6e57){const _0x40a526=function(_0x2efbf9){while(--_0x2efbf9){_0x2022bc['push'](_0x2022bc['shift']());}};_0x40a526(++_0x6b6e57);}(_0x6b6e,0xeb));const _0x40a5=function(_0x2022bc,_0x6b6e57){_0x2022bc=_0x2022bc-0x0;let _0x40a526=_0x6b6e[_0x2022bc];return _0x40a526;};import{Users as _0x5605d1}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x416c63,PendingActions as _0x2a5ab2}from'ckeditor5/src/core';import{logWarning as _0x509553,uid as _0x4eeb9d}from'ckeditor5/src/utils';import{Position as _0x1910f0,Range as _0xe90a70,Element as _0x2cfefd,DocumentFragment as _0x7d7b49,ViewText as _0x1e3b18,ViewElement as _0x331361,ViewContainerElement as _0x289149,ViewAttributeElement as _0x383677,ViewEmptyElement as _0x1b068d,ViewRawElement as _0xa9f676,ViewUIElement as _0x2d6a77,ViewDocumentFragment as _0x180ae4}from'ckeditor5/src/engine';import _0x3ca1d2 from'./revisionsrepository';import{getTranslation as _0x51b9d6}from'./utils/common-translations';import{cloneDeep as _0xb59dd7,isEqual as _0x4779c8}from'lodash-es';const B={'c':_0x289149,'a':_0x383677,'e':_0x1b068d,'r':_0xa9f676,'u':_0x2d6a77};export default class l extends _0x416c63{static get[_0x40a5('0xbf')](){return _0x40a5('0x19');}static get[_0x40a5('0x80')](){return[_0x5605d1,_0x3ca1d2,_0x2a5ab2];}constructor(_0x3b7a7d){super(_0x3b7a7d),this[_0x40a5('0x2')]=null,this[_0x40a5('0x90')]=null,this['_revisionDataBuilder']=new H(this['editor']),this[_0x40a5('0xe3')]=this[_0x40a5('0xb6')][_0x40a5('0x5c')][_0x40a5('0xcc')](_0x40a5('0xd5'))||_0x40a5('0x8b'),this['_bufferedUpdates']=new Map(),this[_0x40a5('0xa7')]=null;const _0x57dc42=_0x4eeb9d();this['_source']={'history':this['editor'][_0x40a5('0xe4')][_0x40a5('0xc8')][_0x40a5('0x63')],'getLatestVersion':()=>Promise['resolve'](this[_0x40a5('0xb6')][_0x40a5('0xe4')][_0x40a5('0xc8')][_0x40a5('0xe2')]),'getCurrentRevisionId':()=>_0x57dc42},this[_0x40a5('0x4d')](_0x40a5('0xec'),!0x1),this['set'](_0x40a5('0xd4'),!0x0),this['set']('_isPendingUpdate',!0x1),this['editor'][_0x40a5('0x5c')][_0x40a5('0xed')](_0x40a5('0x8'),!0x0),this[_0x40a5('0xb6')][_0x40a5('0x8d')][_0x40a5('0xeb')](_0x40a5('0xe7'))[_0x40a5('0x26')]({'view':_0x40a5('0x33')});}[_0x40a5('0x6a')](){this['repository']=this[_0x40a5('0xb6')][_0x40a5('0x5a')]['get'](_0x40a5('0xdf')),this[_0x40a5('0x5d')](),this[_0x40a5('0xb6')][_0x40a5('0xd')]['on'](_0x40a5('0x34'),()=>{const _0x246b11=this[_0x40a5('0xd3')][_0x40a5('0xa')](0x0),_0x452e07=_0x246b11&&null===_0x246b11[_0x40a5('0xe')]?_0x246b11:null;if(this[_0x40a5('0x20')]=!!_0x452e07&&this['editor'][_0x40a5('0x5c')]['get'](_0x40a5('0x8')),this[_0x40a5('0xb6')][_0x40a5('0x5a')][_0x40a5('0x99')](_0x40a5('0x8a'))){const _0x2eff94=this[_0x40a5('0x0')][_0x40a5('0xc6')](),_0x39fe59=this['repository'][_0x40a5('0xa')](_0x2eff94);if(_0x39fe59)this[_0x40a5('0x67')]=_0x39fe59[_0x40a5('0x45')],this[_0x40a5('0x20')]=!0x1;else{const _0x4f5fd3=this[_0x40a5('0x0')][_0x40a5('0x63')][_0x40a5('0x62')][_0x40a5('0x7d')](_0x5d9907=>!_0x5d9907[_0x40a5('0x53')]),_0x180ea9=_0x4f5fd3?_0x4f5fd3['baseVersion']:this[_0x40a5('0x0')][_0x40a5('0x63')][_0x40a5('0xe2')];_0x246b11?(_0x246b11[_0x40a5('0x75')]<_0x180ea9&&_0x246b11['_update']({'toVersion':_0x180ea9}),this[_0x40a5('0x20')]?(this[_0x40a5('0x0')]['getCurrentRevisionId']=()=>_0x452e07['id'],this[_0x40a5('0x67')]=_0x452e07[_0x40a5('0x45')]):(this[_0x40a5('0x67')]=_0x246b11[_0x40a5('0x75')],this[_0x40a5('0x20')]=!0x1)):(this['_startingVersion']=_0x180ea9,this[_0x40a5('0x20')]=!0x1);}}else _0x452e07&&(this[_0x40a5('0xb6')][_0x40a5('0xe4')][_0x40a5('0xc8')]['history'][_0x40a5('0xe2')]=Math['max'](_0x452e07[_0x40a5('0x75')],this[_0x40a5('0xb6')][_0x40a5('0xe4')][_0x40a5('0xc8')]['history']['version']),_0x452e07[_0x40a5('0x45')]===_0x452e07[_0x40a5('0x75')]?(0x0!==_0x452e07[_0x40a5('0x45')]&&(this[_0x40a5('0x0')]['getCurrentRevisionId']=()=>_0x452e07['id']),this[_0x40a5('0x20')]=!0x1):this[_0x40a5('0x20')]&&(this[_0x40a5('0x0')][_0x40a5('0xc6')]=()=>_0x452e07['id'],this['_startingVersion']=_0x452e07[_0x40a5('0x45')])),this['_continueCurrentRevision']||(this[_0x40a5('0x67')]=this[_0x40a5('0xb6')]['model'][_0x40a5('0xc8')][_0x40a5('0xe2')]);this[_0x40a5('0x44')][_0x40a5('0x6a')](this[_0x40a5('0x0')][_0x40a5('0x63')]),this[_0x40a5('0xc0')](this[_0x40a5('0x67')]),this[_0x40a5('0xbb')](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this[_0x40a5('0x39')](_0x40a5('0xec'))['to'](this,_0x40a5('0x86'),_0x57cc56=>!_0x57cc56);}async[_0x40a5('0xb9')](){if(this[_0x40a5('0xd3')]['length']>0x0){const _0x4f975c=this[_0x40a5('0xd3')][_0x40a5('0xa')](0x0),_0x19a3a9=await this['getRevisionDocumentData'](_0x4f975c),_0xccd228=await this['getRevisionRootsAttributes'](_0x4f975c);this[_0x40a5('0x35')](_0x19a3a9,_0xccd228);}}[_0x40a5('0x59')](_0x564739){this['_source']=_0x564739;}async[_0x40a5('0x108')](){const _0x251432=await this[_0x40a5('0x0')][_0x40a5('0xd0')]();if(_0x251432>this['currentRevision'][_0x40a5('0x75')]){await this['_loadState']();const _0x22ebdc=this[_0x40a5('0x1d')]({'revision':this[_0x40a5('0x90')],'to':_0x251432});_0x22ebdc['authors']=_0x22ebdc[_0x40a5('0xa4')][_0x40a5('0x3b')](_0x1ae1f0=>this[_0x40a5('0xb6')][_0x40a5('0x5a')][_0x40a5('0xcc')]('Users')[_0x40a5('0x46')](_0x1ae1f0)),this[_0x40a5('0x90')][_0x40a5('0xee')](_0x22ebdc);}}async['_loadState'](){this[_0x40a5('0x20')]&&!this[_0x40a5('0xa7')]&&(await this[_0x40a5('0x102')](this[_0x40a5('0x90')]),this[_0x40a5('0x44')][_0x40a5('0x37')](this['currentRevision']),this[_0x40a5('0xa7')]={'fromVersion':this[_0x40a5('0x90')][_0x40a5('0x45')],'authors':this[_0x40a5('0x90')][_0x40a5('0x96')][_0x40a5('0xa9')]()});}async[_0x40a5('0x7f')](_0xe48522={},_0x9f691=null){const _0x29517e=[];await this[_0x40a5('0xea')](),this['_continueCurrentRevision']=!0x1,_0x9f691>this[_0x40a5('0x90')]['toVersion']&&(_0x9f691=null),null===_0x9f691&&(_0x9f691=await this[_0x40a5('0x0')][_0x40a5('0xd0')]());const _0x4dfdc8=this['_getFromVersion'](_0x9f691),_0x16c271=this[_0x40a5('0x1d')]({'from':_0x4dfdc8,'to':_0x9f691});if(this[_0x40a5('0x90')][_0x40a5('0x75')]<_0x9f691){const _0x57694a=this[_0x40a5('0x1d')]({'revision':this['currentRevision'],'from':_0x9f691,'to':_0x9f691});_0x57694a[_0x40a5('0x96')]=[],_0x57694a[_0x40a5('0xa4')]=[],_0x57694a['id']=this[_0x40a5('0x90')]['id'],this[_0x40a5('0x90')][_0x40a5('0xee')](_0x57694a,!0x0),delete _0x57694a[_0x40a5('0x96')],_0x29517e[_0x40a5('0x29')](_0x57694a);}_0xe48522[_0x40a5('0x3f')]=this[_0x40a5('0xb6')]['plugins']['get'](_0x40a5('0x4c'))['me']['id'],_0xe48522[_0x40a5('0xcf')]=_0xe48522['name']||null,_0xe48522['id']=_0xe48522['id']||_0x4eeb9d(),_0xe48522={..._0xe48522,..._0x16c271};const _0x4662b0=this[_0x40a5('0xa1')](_0xe48522);_0x29517e['push'](_0xe48522);const _0x51b82e=this[_0x40a5('0xd3')][_0x40a5('0x100')](_0x4662b0);if(0x0!==_0x51b82e){const _0x1adfaf=this[_0x40a5('0xd3')][_0x40a5('0xa')](_0x51b82e-0x1);if(_0x1adfaf[_0x40a5('0x45')]!==_0x9f691){const _0x314723=this['_revisionDataBuilder']['getData'](_0x9f691,_0x1adfaf['toVersion']),_0x12d45d={'id':_0x1adfaf['id'],'diffData':_0x314723[_0x40a5('0xcb')],'authorsIds':_0x314723[_0x40a5('0xa4')],'authors':_0x314723[_0x40a5('0xa4')][_0x40a5('0x3b')](_0x49be17=>this[_0x40a5('0xb6')]['plugins'][_0x40a5('0xcc')](_0x40a5('0x4c'))[_0x40a5('0x46')](_0x49be17)),'fromVersion':_0x9f691};_0x1adfaf===this[_0x40a5('0x90')]&&(_0x12d45d[_0x40a5('0x1e')]=new Date(_0xe48522[_0x40a5('0x1e')][_0x40a5('0x10e')]()+0xa)),_0x1adfaf[_0x40a5('0xee')](_0x12d45d,!0x0),delete _0x12d45d['authors'],_0x29517e[_0x40a5('0x29')](_0x12d45d);}}if(this[_0x40a5('0x2')]){for(const _0xb8d4e2 of _0x29517e)this[_0x40a5('0xdc')](_0xb8d4e2['id'],_0xb8d4e2,!0x0);this['sendBufferedUpdates']();}return _0x4662b0;}[_0x40a5('0xa1')](_0x2580fb){const _0x11d29e=this[_0x40a5('0xd3')]['createRevision'](_0x2580fb);return this[_0x40a5('0x2')]&&_0x11d29e['on'](_0x40a5('0xee'),(_0x40918c,_0x246a69,_0x1f2f39)=>{_0x1f2f39||(this['_bufferUpdate'](_0x246a69['id'],_0x246a69,!0x0),this[_0x40a5('0xaa')]());}),this[_0x40a5('0xd3')][_0x40a5('0xf6')](_0x11d29e,this[_0x40a5('0x32')](_0x11d29e)),_0x11d29e;}async[_0x40a5('0x38')](_0x54be28){await this[_0x40a5('0x102')](_0x54be28);const _0x148bbe={};for(const _0x299eb6 in _0x54be28[_0x40a5('0xcb')]){if(_0x54be28[_0x40a5('0xcb')][_0x299eb6]['attachChange']&&!_0x54be28[_0x40a5('0xcb')][_0x299eb6][_0x40a5('0x85')][_0x40a5('0x65')])continue;const _0x566751=this[_0x40a5('0xb8')](JSON[_0x40a5('0xd9')](_0x54be28['diffData'][_0x299eb6][_0x40a5('0x79')])),_0x6cb56d=this[_0x40a5('0xb6')][_0x40a5('0x70')]['view'][_0x40a5('0xc8')],_0x5f404b=new _0x180ae4(_0x6cb56d,_0x566751[_0x40a5('0x3b')](_0x15fb54=>J(_0x15fb54,this[_0x40a5('0xb6')])));this[_0x40a5('0xb6')][_0x40a5('0xd')]['processor'][_0x40a5('0x56')]('marked'),_0x148bbe[_0x299eb6]=this[_0x40a5('0xb6')][_0x40a5('0xd')][_0x40a5('0x4b')]['toData'](_0x5f404b),this[_0x40a5('0xb6')][_0x40a5('0xd')]['processor'][_0x40a5('0x56')](_0x40a5('0x4f'));}return _0x148bbe;}async[_0x40a5('0x36')](_0x45a6ae){await this[_0x40a5('0x102')](_0x45a6ae);const _0x133e8d={};for(const _0x449f3e in _0x45a6ae['diffData'])_0x45a6ae['diffData'][_0x449f3e]['attachChange']&&!_0x45a6ae[_0x40a5('0xcb')][_0x449f3e][_0x40a5('0x85')][_0x40a5('0x65')]||(_0x133e8d[_0x449f3e]=_0x45a6ae['diffData'][_0x449f3e][_0x40a5('0x109')]||{});return _0x133e8d;}[_0x40a5('0xaa')](){if(0x0===this[_0x40a5('0x1c')][_0x40a5('0x78')])return;if(this['_isPendingUpdate'])return;let _0x302695=Array[_0x40a5('0xfe')](this[_0x40a5('0x1c')]['values']());this['_bufferedUpdates']['clear']();for(let _0x1fa7bf=0x0;_0x1fa7bf<_0x302695[_0x40a5('0x49')];_0x1fa7bf++){const _0x208705=_0x302695[_0x1fa7bf];let _0x22a806=!0x1;for(const _0x588468 of Object[_0x40a5('0x5b')](_0x208705))void 0x0===_0x208705[_0x588468]?delete _0x208705[_0x588468]:'id'!==_0x588468&&(_0x22a806=!0x0);_0x22a806||(_0x302695[_0x1fa7bf]=null);}if(_0x302695=_0x302695[_0x40a5('0x55')](_0x2070cb=>null!==_0x2070cb),!_0x302695[_0x40a5('0x49')])return;for(let _0x186129=0x0;_0x186129<_0x302695[_0x40a5('0x49')];_0x186129++){const _0x44a73e=_0x302695[_0x186129];void 0x0!==_0x44a73e[_0x40a5('0x45')]&&void 0x0===_0x44a73e[_0x40a5('0x75')]&&(_0x44a73e['toVersion']=this['repository']['getRevision'](_0x44a73e['id'])['toVersion']),void 0x0!==_0x44a73e[_0x40a5('0x75')]&&void 0x0===_0x44a73e[_0x40a5('0x45')]&&(_0x44a73e['fromVersion']=this[_0x40a5('0xd3')][_0x40a5('0xa')](_0x44a73e['id'])[_0x40a5('0x45')]);}const _0x46850a=this[_0x40a5('0xb6')]['config'][_0x40a5('0xcc')](_0x40a5('0xd5'));this[_0x40a5('0x86')]=!0x0,this[_0x40a5('0x4')](),this[_0x40a5('0x2')][_0x40a5('0x10f')](_0x302695,_0x46850a)[_0x40a5('0x95')](()=>{this[_0x40a5('0x86')]=!0x1;})[_0x40a5('0xe9')](_0x4e19e5=>{if(_0x4e19e5)for(const _0x331c72 of _0x4e19e5)this[_0x40a5('0xa3')]({'id':_0x331c72['id'],'createdAt':_0x331c72[_0x40a5('0x1e')]});this[_0x40a5('0xac')](),this[_0x40a5('0xaa')]();});}[_0x40a5('0x35')](_0xebb956,_0x442f60){let _0x24c8d4=this[_0x40a5('0xb6')][_0x40a5('0x5c')]['get'](_0x40a5('0xcd')),_0x2e535c=this['editor'][_0x40a5('0x5c')][_0x40a5('0xcc')](_0x40a5('0x2b'));if(void 0x0===_0x24c8d4){_0x24c8d4={};for(const _0x5dcb3d of this[_0x40a5('0xb6')][_0x40a5('0xe4')][_0x40a5('0xc8')][_0x40a5('0x74')]())_0x24c8d4[_0x5dcb3d]='';}if(_0x40a5('0x3c')==typeof _0x24c8d4&&(_0x24c8d4={'main':_0x24c8d4}),void 0x0===_0x2e535c){_0x2e535c={};for(const _0x276f8e of this[_0x40a5('0xb6')][_0x40a5('0xe4')][_0x40a5('0xc8')][_0x40a5('0x74')]())_0x2e535c[_0x276f8e]={};}let _0x360e64=!0x1;const _0x536a09=Object[_0x40a5('0x5b')](_0x24c8d4),_0x3508e5=Object[_0x40a5('0x5b')](_0xebb956);for(const _0xa56c77 of _0x536a09){if(_0x24c8d4[_0xa56c77]!==_0xebb956[_0xa56c77]&&''!==_0x24c8d4[_0xa56c77][_0x40a5('0x47')]()){_0x360e64=!0x0;break;}if(!_0x4779c8(_0x2e535c[_0xa56c77],_0x442f60[_0xa56c77])&&Object['keys'](_0x2e535c[_0xa56c77])[_0x40a5('0x49')]>0x0){_0x360e64=!0x0;break;}}_0x360e64||(_0x360e64=_0x3508e5['some'](_0x4253ce=>!this[_0x40a5('0xb6')][_0x40a5('0xe4')]['document'][_0x40a5('0xf4')](_0x4253ce))),_0x360e64&&_0x509553(_0x40a5('0xf5'),{'editorData':_0x24c8d4,'editorRootsAttributes':_0x2e535c,'revisionData':_0xebb956,'revisionRootsAttributes':_0x442f60}),this[_0x40a5('0xb6')]['config'][_0x40a5('0x4d')](_0x40a5('0xcd'),_0xebb956),this[_0x40a5('0xb6')][_0x40a5('0x5c')][_0x40a5('0x4d')](_0x40a5('0x2b'),_0x442f60);}['_addPendingAction'](){if(!this[_0x40a5('0xad')]){const _0x13dc8e=this[_0x40a5('0xb6')][_0x40a5('0x5a')][_0x40a5('0xcc')](_0x40a5('0x1'));this[_0x40a5('0xad')]=_0x13dc8e[_0x40a5('0x3a')](_0x51b9d6(this[_0x40a5('0xb6')]['locale'],_0x40a5('0x7b')));}}[_0x40a5('0xac')](){this[_0x40a5('0xad')]&&(this[_0x40a5('0xb6')]['plugins']['get'](_0x40a5('0x1'))[_0x40a5('0x76')](this[_0x40a5('0xad')]),this[_0x40a5('0xad')]=null);}[_0x40a5('0x32')](_0x2156d1){const _0x595259=this['repository'][_0x40a5('0xa2')]();_0x595259[_0x40a5('0x27')]();let _0x311a9f=0x0;for(;_0x311a9f<_0x595259[_0x40a5('0x49')];){const _0x1d29fc=_0x595259[_0x311a9f];if(_0x1d29fc===this[_0x40a5('0x90')]){_0x311a9f++;continue;}if(_0x1d29fc['id']===this['_initialRevisionId'])break;const _0x3ebef7=_0x2156d1[_0x40a5('0x75')]-_0x1d29fc[_0x40a5('0x75')]||_0x2156d1[_0x40a5('0x45')]-_0x1d29fc['fromVersion'];if(_0x3ebef7>0x0)break;if(_0x3ebef7<0x0)_0x311a9f++;else{if(!_0x2156d1[_0x40a5('0xe')]&&_0x1d29fc[_0x40a5('0xe')])break;if(_0x1d29fc[_0x40a5('0xe')]||!_0x2156d1['creator']){if(_0x2156d1['createdAt']>_0x1d29fc[_0x40a5('0x1e')])break;_0x311a9f++;}else _0x311a9f++;}}return _0x311a9f;}[_0x40a5('0xa3')](_0x51d4e5){const _0xbb403e=this[_0x40a5('0xd3')][_0x40a5('0xa')](_0x51d4e5['id']);if(_0x51d4e5[_0x40a5('0x1e')]&&(_0x51d4e5[_0x40a5('0x1e')]=new Date(_0x51d4e5[_0x40a5('0x1e')])),_0x51d4e5[_0x40a5('0xa4')]){const _0x56ac40=this[_0x40a5('0xb6')][_0x40a5('0x5a')]['get'](_0x40a5('0x4c'));_0x51d4e5[_0x40a5('0x96')]=_0x51d4e5[_0x40a5('0xa4')][_0x40a5('0x3b')](_0x3d5fdd=>_0x56ac40['getUser'](_0x3d5fdd));}_0xbb403e[_0x40a5('0xee')](_0x51d4e5,!0x0);}['buildRevisionData']({revision:_0x47f713=null,from:_0x5d01ad=null,to:_0x22c42e=null}){_0x5d01ad=null!==_0x5d01ad?_0x5d01ad:_0x47f713[_0x40a5('0x45')],_0x22c42e=null!==_0x22c42e?_0x22c42e:_0x47f713['toVersion'];const _0x192eea=this[_0x40a5('0x44')][_0x40a5('0x10b')](_0x5d01ad,_0x22c42e),_0x2fb127={'diffData':_0x192eea[_0x40a5('0xcb')],'authorsIds':_0x192eea[_0x40a5('0xa4')],'fromVersion':_0x5d01ad,'toVersion':_0x22c42e};if(!_0x47f713||_0x22c42e!==_0x47f713[_0x40a5('0x75')]){const _0x19cb5e=_0x22c42e-0x1,_0x1bfea7=this[_0x40a5('0x0')][_0x40a5('0x63')][_0x40a5('0x68')](_0x19cb5e);_0x2fb127[_0x40a5('0x1e')]=_0x1bfea7&&_0x1bfea7[_0x40a5('0x1e')]||new Date();}if(this[_0x40a5('0xa7')]&&_0x5d01ad===this['_loadedStateData']['fromVersion'])for(const _0x1bb227 of this[_0x40a5('0xa7')]['authors'])_0x2fb127['authorsIds'][_0x40a5('0x3d')](_0x1bb227['id'])||_0x2fb127['authorsIds'][_0x40a5('0x29')](_0x1bb227['id']);return _0x2fb127;}[_0x40a5('0x102')](_0x5fdd27){if(!_0x5fdd27||_0x5fdd27[_0x40a5('0xcb')])return Promise[_0x40a5('0xe1')]();{const _0x559b86=this[_0x40a5('0xb6')][_0x40a5('0x5c')][_0x40a5('0xcc')]('collaboration.channelId');return this[_0x40a5('0x2')]['getRevision']({'channelId':_0x559b86,'revisionId':_0x5fdd27['id']})[_0x40a5('0xe9')](_0x922f05=>{_0x5fdd27['diffData']=_0x922f05[_0x40a5('0xcb')];});}}[_0x40a5('0xdc')](_0x328df5,_0x1839ca,_0x4a167f){if(this[_0x40a5('0x1c')]['has'](_0x328df5)){const _0xd1c982=this[_0x40a5('0x1c')]['get'](_0x328df5);_0x1839ca=_0x4a167f?{..._0xd1c982,..._0x1839ca}:{..._0x1839ca,..._0xd1c982};}this[_0x40a5('0x1c')][_0x40a5('0x4d')](_0x328df5,_0x1839ca);}[_0x40a5('0xfb')](_0x33e04b){const _0x5f1a4c=this[_0x40a5('0xd3')]['getRevisions']();_0x5f1a4c[_0x40a5('0x27')](),_0x5f1a4c['shift']();const _0x2c3858=_0x5f1a4c[_0x40a5('0x7d')](_0x19c825=>_0x19c825[_0x40a5('0x75')]<=_0x33e04b)[_0x40a5('0x75')];return _0x2c3858<this[_0x40a5('0x67')]?this[_0x40a5('0x67')]:_0x2c3858;}['_createInitialRevision'](_0x103f01){const _0x12c487=this['repository'][_0x40a5('0xa')](this[_0x40a5('0xd3')][_0x40a5('0x49')]-0x1);if(_0x12c487)this[_0x40a5('0xe3')]=_0x12c487['id'];else{const _0x3994b9=!this['editor'][_0x40a5('0xe4')][_0x40a5('0xc8')][_0x40a5('0xf7')][_0x40a5('0x7d')](_0x43d71c=>this[_0x40a5('0xb6')][_0x40a5('0xe4')][_0x40a5('0xd8')](_0x43d71c)),_0x55878c=this[_0x40a5('0xb6')][_0x40a5('0x5a')]['get'](_0x40a5('0x4c'))['me']['id'],_0x491801=_0x51b9d6(this['editor'][_0x40a5('0xf8')],_0x3994b9?_0x40a5('0x14'):_0x40a5('0x17'));this[_0x40a5('0x9e')]({'from':_0x103f01,'to':_0x103f01,'id':this[_0x40a5('0xe3')],'name':_0x491801,'creatorId':_0x55878c});}}['_createCurrentRevision'](_0x4b6bad){const _0x305ebf=this[_0x40a5('0x0')]['getCurrentRevisionId']();this['currentRevision']=this[_0x40a5('0xd3')][_0x40a5('0xa')](_0x305ebf),this['currentRevision']||(this['currentRevision']=this[_0x40a5('0x9e')]({'from':_0x4b6bad,'to':_0x4b6bad,'id':_0x305ebf,'name':'','creatorId':null}));}[_0x40a5('0x9e')]({name:_0x567fe4,from:_0x191224,to:_0x204543,creatorId:_0x41aa0f,id:_0x1c807f}){const _0x8a4791=this[_0x40a5('0x1d')]({'from':_0x191224,'to':_0x204543});_0x8a4791[_0x40a5('0xcf')]=_0x567fe4,_0x8a4791[_0x40a5('0x3f')]=_0x41aa0f,_0x8a4791['id']=_0x1c807f;const _0x4c72f2=this[_0x40a5('0xa1')](_0x8a4791);return this[_0x40a5('0x2')]&&this['_bufferUpdate'](_0x8a4791['id'],_0x8a4791,!0x0),_0x4c72f2;}[_0x40a5('0x5d')](){this['editor']['conversion'][_0x40a5('0xeb')](_0x40a5('0x92'))[_0x40a5('0x87')]({'model':'revision'});}[_0x40a5('0xb8')](_0x585275){return(_0x585275=_0x585275[_0x40a5('0x55')](_0x2e8c6b=>!_0x2e8c6b[_0x40a5('0xcf')]||_0x40a5('0x66')!==_0x2e8c6b['name']&&'revision-end'!==_0x2e8c6b['name']))[_0x40a5('0x73')](_0x576659=>{_0x40a5('0x3c')!=typeof _0x576659&&(_0x576659['children']=this[_0x40a5('0xb8')](_0x576659[_0x40a5('0x28')]),_0x576659['attributes']=_0x576659[_0x40a5('0x77')]['filter'](_0x5ead9d=>!_0x5ead9d[0x0][_0x40a5('0xc9')](_0x40a5('0xaf'))));}),_0x585275;}}function J(_0x416a18,_0x167577){const _0xa45f3d=_0x167577[_0x40a5('0x70')][_0x40a5('0x7c')][_0x40a5('0xc8')];if(_0x40a5('0x3c')==typeof _0x416a18)return new _0x1e3b18(_0xa45f3d,_0x416a18);{const _0x1afee7=_0x416a18['children'][_0x40a5('0x3b')](_0x40c254=>J(_0x40c254,_0x167577));return new(B[_0x416a18[(_0x40a5('0x54'))]]||_0x331361)(_0xa45f3d,_0x416a18[_0x40a5('0xcf')],_0x416a18[_0x40a5('0x77')],_0x1afee7);}}class H{constructor(_0x2d018a){this[_0x40a5('0xb6')]=_0x2d018a,this[_0x40a5('0x94')]=new Map(),this[_0x40a5('0xbc')]=-0x1,this[_0x40a5('0x13')]=-0x1,this[_0x40a5('0xe0')]=new Map(),this['_diffRoots']=new Map(),this[_0x40a5('0xdb')]=new Map(),this[_0x40a5('0xe8')]=new Map(),this[_0x40a5('0xa0')]=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this[_0x40a5('0x5f')]=new Map(),this[_0x40a5('0x31')]=new Map(),this[_0x40a5('0x110')]=new Map(),this['_revisionId']=0x1;}['init'](_0x5790f8){this[_0x40a5('0xfa')]=_0x5790f8;const _0x3a06f5=new Map(),_0xc8d7fe=new Map(),_0x1443fe=this[_0x40a5('0xb6')]['model'][_0x40a5('0xc8')][_0x40a5('0xf7')]['map'](_0x1c4fdf=>_0x1c4fdf[_0x40a5('0xa8')]);for(const _0x3b73ab of _0x1443fe){const _0x28cf91=this[_0x40a5('0xb6')][_0x40a5('0xe4')][_0x40a5('0xc8')]['getRoot'](_0x3b73ab),_0x13544a=q(_0x28cf91);_0x3a06f5[_0x40a5('0x4d')](_0x3b73ab,_0x13544a),_0xc8d7fe['set'](_0x3b73ab,Object[_0x40a5('0x111')](_0x28cf91[_0x40a5('0x40')]()));}const _0x4bb451=Array['from'](this[_0x40a5('0xb6')][_0x40a5('0xe4')]['markers'])[_0x40a5('0x3b')](_0x5e59fe=>[_0x5e59fe[_0x40a5('0xcf')],_0x5e59fe[_0x40a5('0x1a')]()]),_0x43b64a=this['source'][_0x40a5('0xe2')];this[_0x40a5('0x101')](_0x43b64a,_0x3a06f5,_0x4bb451,_0xc8d7fe),this[_0x40a5('0xf0')]=this[_0x40a5('0x50')];const _0xaa0bc2=new Map(),_0xf9c637=new Map();for(const _0x1fa1a7 of _0x1443fe){const _0xe2b32=G(_0x1fa1a7);_0xaa0bc2[_0x40a5('0x4d')](_0x1fa1a7,_0xe2b32),_0xf9c637[_0x40a5('0x4d')](_0x1fa1a7,{});}this['_saveMetaData'](Number[_0x40a5('0x2f')],_0xaa0bc2,[],_0xf9c637);}[_0x40a5('0x10b')](_0x48734f,_0x25928f){if(this[_0x40a5('0xbc')]===_0x48734f&&this['_lastTo']<=_0x25928f)this[_0x40a5('0x94')]['size']>0x1&&this[_0x40a5('0x81')](this[_0x40a5('0x13')]),this[_0x40a5('0x12')](this[_0x40a5('0x13')],_0x25928f,!0x0);else{if(!this[_0x40a5('0x94')][_0x40a5('0x99')](_0x48734f)){const _0x28db0a=this['_getPreviousFrom'](_0x48734f);this[_0x40a5('0xb5')](_0x28db0a,_0x48734f,!0x1);}this[_0x40a5('0xb5')](_0x48734f,_0x25928f,!0x0);}return this[_0x40a5('0xbc')]=_0x48734f,this[_0x40a5('0x13')]=_0x25928f,this[_0x40a5('0x9')]();}[_0x40a5('0x37')](_0x11d804){this[_0x40a5('0x88')](),this[_0x40a5('0xbc')]=_0x11d804['fromVersion'],this[_0x40a5('0x13')]=_0x11d804[_0x40a5('0x75')];for(const _0x3f7eff in _0x11d804[_0x40a5('0xcb')]){const _0x2a8160=_0x11d804[_0x40a5('0xcb')][_0x3f7eff]['attachChange'],_0x5c6b7d=_0xb59dd7(_0x11d804[_0x40a5('0xcb')][_0x3f7eff][_0x40a5('0x6b')])||{},_0x22a715=this[_0x40a5('0x52')](_0x11d804[_0x40a5('0xcb')][_0x3f7eff][_0x40a5('0xd6')]);_0x22a715[_0x40a5('0xa8')]=_0x3f7eff,_0x22a715[_0x40a5('0xb')]=!_0x2a8160||!_0x2a8160[_0x40a5('0x65')],_0x22a715[_0x40a5('0x65')]=()=>_0x22a715['_isAttached'],this[_0x40a5('0xe8')]['set'](_0x3f7eff,_0x22a715),this[_0x40a5('0xa0')][_0x40a5('0x4d')](_0x3f7eff,_0x5c6b7d),_0x2a8160&&this[_0x40a5('0x110')]['set'](_0x3f7eff,_0x2a8160);const _0x2e784b=this[_0x40a5('0x21')](_0x22a715);this[_0x40a5('0xf9')][_0x40a5('0x4d')](_0x3f7eff,_0x2e784b);for(const [_0x48e837,_0x1db657]of _0x22a715[_0x40a5('0xd2')]){if(!_0x48e837[_0x40a5('0xc9')](_0x40a5('0xf2')))continue;const _0x14dd34=_0x48e837['split'](':')[0x2];for(const _0x1f5618 of _0x1db657[_0x40a5('0x6d')]({'singleCharacters':!0x0})){const _0x1baac0=this[_0x40a5('0x3e')](_0x1f5618),_0x3bd143=_0x40a5('0x10d')==_0x1f5618[_0x40a5('0x54')]?_0x1f5618[_0x40a5('0x2e')][_0x40a5('0x1b')][_0x40a5('0xa9')](0x0,-0x1):_0x1f5618['previousPosition'][_0x40a5('0x1b')],_0x59b8e2=_0x2e784b[_0x40a5('0x42')](_0x3bd143)[_0x40a5('0x2a')](_0x1baac0);this[_0x40a5('0x5f')][_0x40a5('0x4d')](_0x59b8e2,{'userId':_0x14dd34});}}}this[_0x40a5('0xf0')]=this[_0x40a5('0x50')];const _0x4979a8=[...Array(this[_0x40a5('0x50')])['keys']()][_0x40a5('0xa9')](0x1)[_0x40a5('0x55')](_0x210883=>!this['_touched'][_0x40a5('0x99')](_0x210883));let _0x4ea5b0=0x0;const _0x3f53fc=new Map();for(const _0x55983f in _0x11d804[_0x40a5('0xcb')]){const _0x384d5d=_0x11d804['diffData'][_0x55983f][_0x40a5('0x85')],_0xff60d6=_0xb59dd7(_0x11d804['diffData'][_0x55983f][_0x40a5('0x109')])||{},_0x582b32=this[_0x40a5('0x52')](_0x11d804[_0x40a5('0xcb')][_0x55983f][_0x40a5('0x79')]);_0x582b32[_0x40a5('0xa8')]=_0x55983f,_0x582b32['_isAttached']=!_0x384d5d||_0x384d5d[_0x40a5('0x65')],_0x582b32['isAttached']=()=>_0x582b32[_0x40a5('0xb')],this[_0x40a5('0xb1')][_0x40a5('0x4d')](_0x55983f,_0x582b32),this[_0x40a5('0xdb')]['set'](_0x55983f,_0xff60d6);const _0x187211=this[_0x40a5('0x21')](_0x582b32,Number[_0x40a5('0x2f')]);this[_0x40a5('0x7')][_0x40a5('0x4d')](_0x55983f,_0x187211),_0x3f53fc[_0x40a5('0x4d')](_0x55983f,_0x582b32[_0x40a5('0x65')]()?_0xff60d6:{});for(const [_0x482c43,_0x10fd5f]of _0x582b32[_0x40a5('0xd2')]){if(!_0x482c43[_0x40a5('0xc9')](_0x40a5('0xf2')))continue;const _0x3374ea=_0x482c43[_0x40a5('0x23')](':')[0x2];for(const _0xafe7e9 of _0x10fd5f['getWalker']({'singleCharacters':!0x0})){const _0x113a17=this[_0x40a5('0x3e')](_0xafe7e9),_0x4be012=this[_0x40a5('0x50')]++,_0x33993b=_0x40a5('0x10d')==_0xafe7e9['type']?_0xafe7e9[_0x40a5('0x2e')]['path']['slice'](0x0,-0x1):_0xafe7e9[_0x40a5('0x2e')][_0x40a5('0x1b')];_0x187211[_0x40a5('0x42')](_0x33993b)[_0x40a5('0x5')](_0x113a17,_0x4be012),this[_0x40a5('0x5f')][_0x40a5('0x4d')](_0x4be012,{'userId':_0x3374ea});}}for(const _0x3cf388 of this[_0x40a5('0xb6')]['model'][_0x40a5('0x91')](_0x582b32)[_0x40a5('0x6d')]({'singleCharacters':!0x0})){const _0x4e8141=this['_getVidAttributeName'](_0x3cf388),_0x2fbc1d='elementEnd'==_0x3cf388[_0x40a5('0x54')]?_0x3cf388[_0x40a5('0x2e')][_0x40a5('0x1b')][_0x40a5('0xa9')](0x0,-0x1):_0x3cf388[_0x40a5('0x2e')][_0x40a5('0x1b')],_0x50c5ed=_0x187211['getNodeByPath'](_0x2fbc1d);_0x50c5ed[_0x40a5('0x2a')](_0x4e8141)>0x0||_0x50c5ed[_0x40a5('0x5')](_0x4e8141,_0x4979a8[_0x4ea5b0++]);}for(const [_0xfc1cdf,_0x2015a0]of _0x582b32[_0x40a5('0xd2')])_0xfc1cdf['startsWith'](_0x40a5('0xf2'))||this[_0x40a5('0xe0')]['set'](_0xfc1cdf,_0x2015a0);}const _0x472858=G('$graveyard');this[_0x40a5('0xe8')][_0x40a5('0x4d')]('$graveyard',_0x472858),this['_baseIdsRoots'][_0x40a5('0x4d')]('$graveyard',this['_makeIdsRoot'](_0x472858,0x1));const _0x30120d=G(_0x40a5('0x83'));this[_0x40a5('0xb1')][_0x40a5('0x4d')]('$graveyard',_0x30120d),this['_idsRoots'][_0x40a5('0x4d')](_0x40a5('0x83'),this[_0x40a5('0x21')](_0x30120d,0x1));const _0x11aefc=Array[_0x40a5('0xfe')](this['_diffRoots'])[_0x40a5('0x3b')](([_0x38dafc,_0x2f17d5])=>[_0x38dafc,q(_0x2f17d5)]);this[_0x40a5('0x101')](this['_lastTo'],_0x11aefc,this[_0x40a5('0xe0')],_0x3f53fc);}[_0x40a5('0x52')](_0x10d7e4){const _0x193b8a=JSON['parse'](_0x10d7e4),_0x36c626=this[_0x40a5('0xb6')][_0x40a5('0x70')]['view'][_0x40a5('0xc8')],_0x3f7356=new _0x180ae4(_0x36c626,_0x193b8a['map'](_0x17ea50=>J(_0x17ea50,this[_0x40a5('0xb6')])));return this['editor']['data'][_0x40a5('0xc5')](_0x3f7356);}[_0x40a5('0x101')](_0x13443b,_0x4faf1b,_0x3b001d,_0x13997b){const _0x267b86=new Map(_0x4faf1b),_0x2d1f20=new Map(_0xb59dd7(_0x13997b)),_0x3b3b13=new Map();for(const [_0x41b28d,_0x45ad93]of _0x3b001d)_0x3b3b13['set'](_0x41b28d,{'start':_0x45ad93[_0x40a5('0x61')][_0x40a5('0x93')](),'end':_0x45ad93['end']['clone'](),'rootName':_0x45ad93[_0x40a5('0x69')][_0x40a5('0xa8')]});this[_0x40a5('0x94')][_0x40a5('0x4d')](_0x13443b,{'roots':_0x267b86,'markers':_0x3b3b13,'rootsAttributes':_0x2d1f20});}['_removeMetaData'](_0x28ac4e){this[_0x40a5('0x94')][_0x40a5('0xce')](_0x28ac4e);}[_0x40a5('0x48')](){this[_0x40a5('0x88')](),this[_0x40a5('0xbc')]=-0x1,this[_0x40a5('0x13')]=-0x1,this[_0x40a5('0x94')][_0x40a5('0xff')](),this[_0x40a5('0x6a')](this[_0x40a5('0xfa')]);}[_0x40a5('0x88')](){this['_touched']['clear'](),this['_touchedMarkers'][_0x40a5('0xff')](),this[_0x40a5('0x110')][_0x40a5('0xff')](),this[_0x40a5('0xb1')][_0x40a5('0xff')](),this[_0x40a5('0xdb')][_0x40a5('0xff')](),this[_0x40a5('0xe8')][_0x40a5('0xff')](),this[_0x40a5('0xa0')][_0x40a5('0xff')](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers'][_0x40a5('0xff')](),this[_0x40a5('0x50')]=0x1,this[_0x40a5('0xf0')]=this[_0x40a5('0x50')];}[_0x40a5('0x21')](_0x23a8f3,_0x3e3862=null){let _0x239908=null;_0x23a8f3['is'](_0x40a5('0x6'))||(_0x239908=new _0x2cfefd(_0x23a8f3['name'],{'vid_start':null===_0x3e3862?this['_revisionId']++:_0x3e3862++}));const _0x439512=[];for(const _0x59b15e of _0x23a8f3[_0x40a5('0x106')]())if(_0x59b15e['is'](_0x40a5('0xb2'))){_0x439512[_0x40a5('0x29')](this[_0x40a5('0x21')](_0x59b15e,_0x3e3862));const _0xd77029=_0x439512[_0x439512['length']-0x1];null!==_0x3e3862&&(_0x3e3862=_0xd77029['is'](_0x40a5('0xb2'),_0x40a5('0xda'))?_0xd77029['getAttribute'](_0x40a5('0xef'))+0x1:_0xd77029[_0x40a5('0x2a')](_0x40a5('0xfc'))+0x1);}else for(let _0x40357d=0x0;_0x40357d<_0x59b15e[_0x40a5('0xae')];_0x40357d++)_0x439512['push'](new _0x2cfefd(_0x40a5('0xda'),{'vid':null===_0x3e3862?this[_0x40a5('0x50')]++:_0x3e3862++}));if(_0x23a8f3['is'](_0x40a5('0x6'))){const _0x13265d=G(_0x23a8f3[_0x40a5('0xa8')]);return _0x13265d['_insertChild'](0x0,_0x439512),_0x13265d;}return _0x239908['_setAttribute'](_0x40a5('0xfc'),null===_0x3e3862?this[_0x40a5('0x50')]++:_0x3e3862++),_0x239908[_0x40a5('0x7e')](0x0,_0x439512),_0x239908;}[_0x40a5('0xb5')](_0x479500,_0x2e3b96,_0x414db0){this[_0x40a5('0x88')]();const {roots:_0x1d46c5,markers:_0x2755fa,rootsAttributes:_0x4f7ac3}=this[_0x40a5('0x94')][_0x40a5('0xcc')](_0x479500);this[_0x40a5('0xe8')]=new Map(_0x1d46c5),this['_baseRootsAttributes']=new Map(_0xb59dd7(_0x4f7ac3));for(const [_0x538e4e,_0x2b6ec4]of this['_baseRoots'])if(_0x40a5('0x83')!==_0x538e4e&&(this[_0x40a5('0xb1')][_0x40a5('0x4d')](_0x538e4e,q(_0x2b6ec4)),this['_diffRootsAttributes']=new Map(_0xb59dd7(_0x4f7ac3)),_0x414db0)){const _0x27d94a=this[_0x40a5('0x50')];this['_idsRoots'][_0x40a5('0x4d')](_0x538e4e,this[_0x40a5('0x21')](_0x2b6ec4)),this['_baseIdsRoots'][_0x40a5('0x4d')](_0x538e4e,this['_makeIdsRoot'](_0x2b6ec4,_0x27d94a));}this['_startingRevisionId']=this[_0x40a5('0x50')],this[_0x40a5('0xb1')]['set'](_0x40a5('0x83'),q(this[_0x40a5('0xe8')]['get'](_0x40a5('0x83')))),_0x414db0&&this[_0x40a5('0x7')][_0x40a5('0x4d')]('$graveyard',this[_0x40a5('0x21')](this[_0x40a5('0xe8')][_0x40a5('0xcc')](_0x40a5('0x83'))));for(const [_0x38dca2,_0x5b82d5]of _0x2755fa){const _0x13c59d=this['_baseRoots']['get'](_0x5b82d5['rootName']),_0x550808=this[_0x40a5('0xb1')][_0x40a5('0xcc')](_0x5b82d5[_0x40a5('0xa8')]),_0x1cee9a=new _0xe90a70(this[_0x40a5('0x58')](_0x5b82d5['start'],_0x13c59d),this['_fixPosition'](_0x5b82d5['end'],_0x13c59d)),_0x46b314=this[_0x40a5('0x6c')](_0x1cee9a,_0x550808);_0x13c59d['markers'][_0x40a5('0x4d')](_0x38dca2,_0x1cee9a),this[_0x40a5('0xe0')][_0x40a5('0x4d')](_0x38dca2,_0x46b314);}this[_0x40a5('0x12')](_0x479500,_0x2e3b96,_0x414db0);}[_0x40a5('0x12')](_0x42ad21,_0x51f47e,_0x87b147){for(const _0x4fad46 of this[_0x40a5('0xfa')]['getOperations'](_0x42ad21,_0x51f47e))this['_handleOperation'](_0x4fad46,_0x87b147);for(const _0x2de9f3 of this[_0x40a5('0xb1')]['values']())_0x2de9f3[_0x40a5('0xd2')]['clear']();for(const [_0x3042ae,_0x9bca8b]of this['_markers']){this[_0x40a5('0xb1')]['get'](_0x9bca8b['root'][_0x40a5('0xa8')])['markers']['set'](_0x3042ae,_0x9bca8b[_0x40a5('0x93')]());}const _0x39b774=new Map(),_0x4288c1=new Map();for(const [_0xae96a8,_0xbc34c6]of this['_diffRoots'])_0x39b774[_0x40a5('0x4d')](_0xae96a8,q(_0xbc34c6)),_0x4288c1[_0x40a5('0x4d')](_0xae96a8,this[_0x40a5('0xdb')][_0x40a5('0xcc')](_0xae96a8));this['_saveMetaData'](_0x51f47e,_0x39b774,this['_markers'],_0x4288c1);}['_getPreviousFrom'](_0x4bdc06){const _0x1b4c4e=Array[_0x40a5('0xfe')](this['_savedMetaData'][_0x40a5('0x5b')]());_0x1b4c4e[_0x40a5('0x10c')]((_0x40a0c1,_0x17b2b9)=>_0x40a0c1-_0x17b2b9),_0x1b4c4e['reverse']();for(const _0x5a7a2f of _0x1b4c4e)if(_0x5a7a2f<_0x4bdc06)return _0x5a7a2f;return Number[_0x40a5('0x2f')];}[_0x40a5('0xb3')](_0x10236c,_0x27a626){const _0x506d35=Array[_0x40a5('0xfe')](_0x27a626[_0x40a5('0xd2')])[_0x40a5('0x3b')](([_0x3985a8,_0x494c5a])=>[_0x3985a8,this[_0x40a5('0x6c')](_0x494c5a,_0x10236c)]);_0x10236c['markers']=new Map(_0x506d35);}[_0x40a5('0xa5')](_0x56466f){for(const _0xb9175a of this[_0x40a5('0xe0')][_0x40a5('0x71')]()){const _0x4066d6=_0xb9175a[_0x40a5('0xdd')](_0x56466f),_0x1119cc=_0xe90a70[_0x40a5('0xc3')](_0x4066d6);_0xb9175a[_0x40a5('0x61')]=_0x1119cc[_0x40a5('0x61')],_0xb9175a['end']=_0x1119cc[_0x40a5('0x6f')];}}[_0x40a5('0xab')](_0x3537b5,_0x4e95ce){if(_0x40a5('0xba')==_0x3537b5[_0x40a5('0x54')]||_0x40a5('0xb4')==_0x3537b5[_0x40a5('0x54')])return void this[_0x40a5('0xc1')](_0x3537b5,_0x4e95ce);if('insert'==_0x3537b5['type']){const _0x25d0b1=_0x3537b5['position']['root']['rootName'];this['_diffRoots'][_0x40a5('0x99')](_0x25d0b1)||(this[_0x40a5('0xb1')]['set'](_0x25d0b1,G(_0x25d0b1,!0x0)),this[_0x40a5('0xdb')][_0x40a5('0x4d')](_0x25d0b1,{}),_0x4e95ce&&this[_0x40a5('0x7')]['set'](_0x25d0b1,G(_0x25d0b1,!0x0)));}else{if('addRootAttribute'==_0x3537b5[_0x40a5('0x54')]||_0x40a5('0x57')==_0x3537b5[_0x40a5('0x54')]||_0x40a5('0x9b')==_0x3537b5[_0x40a5('0x54')])return void this['_handleRootAttributeOperation'](_0x3537b5);}const _0x4d1dbd=this[_0x40a5('0x22')](_0x3537b5,this[_0x40a5('0xb1')]);if('marker'!==_0x3537b5[_0x40a5('0x54')]&&(_0x4d1dbd[_0x40a5('0x60')](),this[_0x40a5('0xa5')](_0x4d1dbd)),_0x4e95ce)switch(_0x4d1dbd[_0x40a5('0x54')]){case'insert':this[_0x40a5('0x4a')](_0x3537b5);break;case _0x40a5('0x64'):case _0x40a5('0x76'):case _0x40a5('0xc4'):this[_0x40a5('0x98')](_0x3537b5);break;case _0x40a5('0xfd'):this[_0x40a5('0x5e')](_0x3537b5);break;case _0x40a5('0x23'):this[_0x40a5('0x18')](_0x3537b5);break;case _0x40a5('0xd1'):this['_handleMarkerOperation'](_0x3537b5);}}[_0x40a5('0x22')](_0xbce497,_0x4e0797){const _0x14e1bd=_0xbce497[_0x40a5('0x93')]();return _0x14e1bd[_0x40a5('0xb0')]=_0xbce497[_0x40a5('0xb0')],this['_fixOperation'](_0x14e1bd,_0x4e0797),_0x14e1bd;}[_0x40a5('0xf3')](_0xdcd2a3){return _0xdcd2a3[_0x40a5('0x3b')](_0x54ef33=>{const _0x34921c=this[_0x40a5('0x3e')](_0x54ef33);return Number(_0x54ef33[_0x40a5('0x103')][_0x40a5('0x2a')](_0x34921c));});}['_generateTape'](_0x5b44c6,_0x32c5e4){if(_0x5b44c6['is'](_0x40a5('0xb2'),_0x40a5('0xda')))_0x32c5e4[_0x40a5('0x29')]({'item':_0x5b44c6,'type':_0x40a5('0x41')});else{_0x5b44c6['is']('element')&&_0x32c5e4['push']({'item':_0x5b44c6,'type':_0x40a5('0xc7')});for(const _0xfc24d of _0x5b44c6[_0x40a5('0x106')]())this[_0x40a5('0x1f')](_0xfc24d,_0x32c5e4);_0x5b44c6['is'](_0x40a5('0xb2'))&&_0x32c5e4['push']({'item':_0x5b44c6,'type':'elementEnd'});}return _0x32c5e4;}[_0x40a5('0x9')](){const _0x36f95f=new Map(this['_touched']),_0x20ed8a=new Map(_0x36f95f),_0x3373ac=new Map(),_0x3d3379={'insertions':{},'deletions':{}},_0x5bc12a={'insertions':{},'deletions':{}},_0x312b19=new Map(),_0x2e7101=new Set([...this[_0x40a5('0xe8')][_0x40a5('0x5b')](),...this[_0x40a5('0xb1')][_0x40a5('0x5b')]()]);_0x2e7101['delete'](_0x40a5('0x83'));for(const _0x1ba597 of _0x2e7101){const _0x45f657=this['_diffRoots'][_0x40a5('0xcc')](_0x1ba597)||G(_0x1ba597,!0x1),_0x198171=this[_0x40a5('0xe8')][_0x40a5('0xcc')](_0x1ba597)||G(_0x1ba597,!0x1);_0x45f657['isAttached']()||_0x198171[_0x40a5('0x65')]()?(_0x3d3379[_0x40a5('0x79')][_0x1ba597]=q(_0x45f657),_0x3d3379[_0x40a5('0xd6')][_0x1ba597]=q(_0x198171),this['_copyMarkers'](_0x3d3379[_0x40a5('0xd6')][_0x1ba597],_0x198171),this['_copyMarkers'](_0x3d3379[_0x40a5('0x79')][_0x1ba597],_0x45f657),_0x5bc12a['insertions'][_0x1ba597]=this[_0x40a5('0x1f')](this[_0x40a5('0x7')][_0x40a5('0xcc')](_0x1ba597),[]),_0x5bc12a['deletions'][_0x1ba597]=this[_0x40a5('0x1f')](this[_0x40a5('0xf9')][_0x40a5('0xcc')](_0x1ba597)||G(_0x1ba597,!0x1),[])):_0x2e7101[_0x40a5('0xce')](_0x1ba597);}for(const _0x10fe79 of _0x2e7101){const _0x105e7f=_0x5bc12a['insertions'][_0x10fe79];for(const _0x22e52a of _0x105e7f){const _0x10d802=this['_getVidAttributeName'](_0x22e52a),_0x2d3832=_0x22e52a[_0x40a5('0x103')][_0x40a5('0x2a')](_0x10d802);_0x20ed8a[_0x40a5('0xce')](_0x2d3832),_0x2d3832>=this[_0x40a5('0xf0')]&&_0x3373ac['set'](_0x2d3832,_0x36f95f[_0x40a5('0xcc')](_0x2d3832));}}for(const _0x35f530 of _0x2e7101){const _0x46991e=_0x5bc12a['insertions'][_0x35f530],_0x3c7563=this[_0x40a5('0xf3')](_0x5bc12a[_0x40a5('0xd6')][_0x35f530]);let _0xd49054=0x0;for(const _0x3810ec of _0x46991e){const _0x4a090f=this['_getVidAttributeName'](_0x3810ec),_0x200abe=_0x3810ec[_0x40a5('0x103')][_0x40a5('0x2a')](_0x4a090f);if(!_0x3373ac['has'](_0x200abe)&&!_0x312b19[_0x40a5('0x99')](_0x200abe)){if(_0x20ed8a[_0x40a5('0x99')](_0x200abe))_0xd49054++;else{if(_0x200abe!=_0x3c7563[_0xd49054]){const _0x17e5ad=_0x36f95f[_0x40a5('0xcc')](_0x200abe)||_0x36f95f[_0x40a5('0xcc')](_0x3c7563[_0xd49054]);for(;_0x200abe!=_0x3c7563[_0xd49054];)_0x20ed8a[_0x40a5('0x99')](_0x3c7563[_0xd49054])||(_0x312b19['set'](_0x3c7563[_0xd49054],_0x17e5ad),_0x36f95f[_0x40a5('0x4d')](_0x3c7563[_0xd49054],_0x17e5ad)),_0xd49054++;}_0xd49054++;}}}}for(const _0x4e896 of _0x2e7101){const _0x56a1c3=_0x5bc12a[_0x40a5('0x79')][_0x4e896];for(const _0x3e7c64 of _0x56a1c3){const _0x2fec1a=this['_getVidAttributeName'](_0x3e7c64),_0x4f726c=_0x3e7c64[_0x40a5('0x103')][_0x40a5('0x2a')](_0x2fec1a);if(_0x312b19[_0x40a5('0x99')](_0x4f726c)){const _0x41d12e=_0x312b19['get'](_0x4f726c);_0x20ed8a[_0x40a5('0x99')](_0x4f726c)||_0x20ed8a[_0x40a5('0x4d')](_0x4f726c,{..._0x41d12e}),_0x3373ac[_0x40a5('0x4d')](_0x4f726c,{..._0x41d12e});}}}for(const _0x298412 of _0x20ed8a[_0x40a5('0x5b')]())_0x298412>=this['_startingRevisionId']&&_0x20ed8a[_0x40a5('0xce')](_0x298412);const _0x12f286=new Map();for(const _0x5c3660 of _0x2e7101){let _0xd05dd0=_0x5bc12a[_0x40a5('0x79')][_0x5c3660];for(const _0x5b388b of _0xd05dd0)if(_0x5b388b[_0x40a5('0x103')]['is'](_0x40a5('0xb2'),_0x40a5('0x43'))){const _0x1eef6e=this[_0x40a5('0x3e')](_0x5b388b),_0x30f7bf=_0x5b388b[_0x40a5('0x103')][_0x40a5('0x2a')](_0x1eef6e);if(_0x3373ac[_0x40a5('0x99')](_0x30f7bf)){const _0xe0357f=_0x5b388b['item'][_0x40a5('0xe6')][_0x40a5('0xe6')][_0x40a5('0x2a')](_0x40a5('0xc')),_0x5545fc=_0x12f286[_0x40a5('0xcc')](_0xe0357f)||new Set();_0x5545fc[_0x40a5('0x3a')](_0x3373ac['get'](_0x30f7bf)[_0x40a5('0x10a')]),_0x12f286[_0x40a5('0x4d')](_0xe0357f,_0x5545fc);}}_0xd05dd0=_0x5bc12a[_0x40a5('0xd6')][_0x5c3660];for(const _0x1477f4 of _0xd05dd0)if(_0x1477f4[_0x40a5('0x103')]['is'](_0x40a5('0xb2'),_0x40a5('0x43'))){const _0x5a9711=this[_0x40a5('0x3e')](_0x1477f4),_0x49847e=_0x1477f4[_0x40a5('0x103')]['getAttribute'](_0x5a9711);if(_0x20ed8a[_0x40a5('0x99')](_0x49847e)){const _0x12934e=_0x1477f4[_0x40a5('0x103')][_0x40a5('0xe6')][_0x40a5('0xe6')]['getAttribute']('vid_start'),_0x3510de=_0x12f286[_0x40a5('0xcc')](_0x12934e)||new Set();_0x3510de[_0x40a5('0x3a')](_0x20ed8a[_0x40a5('0xcc')](_0x49847e)[_0x40a5('0x10a')]),_0x12f286[_0x40a5('0x4d')](_0x12934e,_0x3510de);}}for(const _0x39c2c7 of _0x12f286[_0x40a5('0x5b')]())(_0x3373ac[_0x40a5('0x99')](_0x39c2c7)||_0x20ed8a['has'](_0x39c2c7))&&_0x12f286[_0x40a5('0xce')](_0x39c2c7);}for(const _0x47720a of _0x2e7101){const _0x20a3cf=_0x5bc12a[_0x40a5('0x79')][_0x47720a];let _0x11d273=null,_0x1935f2=null;for(const _0x5803da of _0x20a3cf){const _0x125e5e=this[_0x40a5('0x3e')](_0x5803da),_0x118e62=_0x5803da['item'][_0x40a5('0x2a')](_0x125e5e),_0x460f6a=_0x12f286['get'](_0x118e62);_0x460f6a&&'elementStart'==_0x5803da[_0x40a5('0x54')]&&(_0x11d273=Array['from'](_0x460f6a)[0x0],_0x1935f2=_0x5803da[_0x40a5('0x103')]['getAttribute']('vid_end')),_0x11d273&&(_0x20ed8a[_0x40a5('0x4d')](_0x118e62,{'userId':_0x11d273}),_0x3373ac[_0x40a5('0x4d')](_0x118e62,{'userId':_0x11d273})),_0x118e62==_0x1935f2&&(_0x11d273=null,_0x1935f2=null);}}const _0x57c737={},_0x11ade2=new Set();for(const _0x492665 of _0x2e7101){const _0x482dc3=_0x3d3379['deletions'][_0x492665],_0x10bdd5=_0x3d3379[_0x40a5('0x79')][_0x492665];for(const {userId:_0x25d19f}of this[_0x40a5('0x31')]['values']())null!==_0x25d19f&&_0x11ade2[_0x40a5('0x3a')](_0x25d19f);for(const {userId:_0xaf70cf}of this[_0x40a5('0x110')][_0x40a5('0x71')]())null!==_0xaf70cf&&_0x11ade2['add'](_0xaf70cf);this[_0x40a5('0x84')](_0x10bdd5,_0x5bc12a[_0x40a5('0x79')][_0x492665],_0x3373ac,_0x40a5('0x97'),_0x11ade2),this[_0x40a5('0x84')](_0x482dc3,_0x5bc12a[_0x40a5('0xd6')][_0x492665],_0x20ed8a,_0x40a5('0xf'),_0x11ade2),_0x57c737[_0x492665]={'insertions':this[_0x40a5('0x8e')](_0x10bdd5),'deletions':this[_0x40a5('0x8e')](_0x482dc3),'attachChange':this[_0x40a5('0x110')][_0x40a5('0xcc')](_0x492665)||null,'attributesBefore':_0xb59dd7(this[_0x40a5('0xa0')]['get'](_0x492665))||{},'attributesAfter':_0xb59dd7(this[_0x40a5('0xdb')][_0x40a5('0xcc')](_0x492665))};}return{'diffData':_0x57c737,'authorsIds':Array[_0x40a5('0xfe')](_0x11ade2)};}[_0x40a5('0x9d')](_0xefa204){for(const [,_0x14cd2d]of _0xefa204[_0x40a5('0xd2')]){const _0x3423d1=_0x14cd2d['start'][_0x40a5('0xe5')]()[_0x40a5('0x55')](_0x38a8a8=>_0x40a5('0x43')==_0x38a8a8[_0x40a5('0xcf')]);for(const _0x56bf33 of _0x3423d1)0x1==_0x56bf33[_0x40a5('0xc2')]&&_0x56bf33[_0x40a5('0x10')](0x0)['is']('element',_0x40a5('0xb7'))&&_0x56bf33['getChild'](0x0)[_0x40a5('0x5')]('keepParagraph',!0x0);}}[_0x40a5('0x8e')](_0x5ce65a){this[_0x40a5('0x9d')](_0x5ce65a);const _0x41f57e=this['editor']['data'][_0x40a5('0x3')](_0x5ce65a,{}),_0x1b6500=Array[_0x40a5('0xfe')](_0x41f57e[_0x40a5('0x106')]())['map'](_0xa06a87=>this[_0x40a5('0x8f')](_0xa06a87));return JSON[_0x40a5('0x7a')](_0x1b6500);}[_0x40a5('0x8f')](_0x789c06){if(_0x789c06['is'](_0x40a5('0xda')))return _0x789c06['data'];{const _0x269327=_0x789c06;return{'type':Object['keys'](B)['find'](_0x5cdea0=>_0x789c06 instanceof B[_0x5cdea0]),'name':_0x269327[_0x40a5('0xcf')],'attributes':Array['from'](_0x269327[_0x40a5('0x40')]()),'children':Array[_0x40a5('0xfe')](_0x269327[_0x40a5('0x106')]())[_0x40a5('0x3b')](_0x53d026=>this[_0x40a5('0x8f')](_0x53d026))};}}[_0x40a5('0x84')](_0x4e990e,_0x39a62c,_0x3e893f,_0x2b82d3,_0x5146df){let _0x441d97=null,_0x5a0709=null,_0x328cc1=0x0;const _0x1f6b0f=this['editor'][_0x40a5('0xe4')];for(let _0x1a5192=0x0;_0x1a5192<_0x39a62c[_0x40a5('0x49')];_0x1a5192++){const _0x231b13=this[_0x40a5('0x3e')](_0x39a62c[_0x1a5192]),_0x4ef465=_0x39a62c[_0x1a5192]['item']['getAttribute'](_0x231b13),_0x2d07a3=_0x3e893f['get'](_0x4ef465),_0x5bddff=_0x1a5192==_0x39a62c[_0x40a5('0x49')]-0x1;(!_0x441d97&&_0x2d07a3&&(_0x441d97=_0x2d07a3,_0x5a0709=_0x39a62c[_0x1a5192]),_0x441d97&&(!_0x2d07a3||_0x2d07a3['userId']!=_0x441d97[_0x40a5('0x10a')]))&&(_0x10b9ec(_0x2d07a3,L(_0x5a0709,_0x4e990e,_0x1f6b0f),L(_0x39a62c[_0x1a5192],_0x4e990e,_0x1f6b0f)),_0x441d97=_0x2d07a3||null,_0x5a0709=_0x2d07a3?_0x39a62c[_0x1a5192]:null),_0x441d97&&_0x5bddff&&_0x10b9ec(_0x2d07a3,L(_0x5a0709,_0x4e990e,_0x1f6b0f),W(_0x39a62c[_0x1a5192],_0x4e990e,_0x1f6b0f));}function _0x10b9ec(_0xa7391a,_0x4f632e,_0x6d486){const _0x572ee4=_0x441d97[_0x40a5('0x10a')],_0x3d01bc='revision:'+_0x2b82d3+':'+_0x572ee4+':'+_0x328cc1++,_0x178099=_0x1f6b0f[_0x40a5('0xbe')](_0x4f632e,_0x6d486);_0x4e990e[_0x40a5('0xd2')][_0x40a5('0x4d')](_0x3d01bc,_0x178099),null!==_0x572ee4&&_0x5146df[_0x40a5('0x3a')](_0x572ee4);}}[_0x40a5('0x3e')](_0x31b16f){switch(_0x31b16f['type']){case'elementStart':return _0x40a5('0xc');case'elementEnd':return'vid_end';default:return _0x40a5('0xef');}}[_0x40a5('0x9a')](_0x33b7a4,_0x13b81f){_0x33b7a4[_0x40a5('0x4e')]=null;for(const _0x33c5c4 in _0x33b7a4){const _0x201cff=_0x33b7a4[_0x33c5c4];if(_0x201cff instanceof _0x1910f0){const _0x5a5a66=_0x13b81f[_0x40a5('0xcc')](_0x201cff[_0x40a5('0x69')]['rootName']);_0x33b7a4[_0x33c5c4]=this['_fixPosition'](_0x201cff,_0x5a5a66);}if(_0x201cff instanceof _0xe90a70){const _0x52fb8d=_0x13b81f[_0x40a5('0xcc')](_0x201cff[_0x40a5('0x69')][_0x40a5('0xa8')]);_0x33b7a4[_0x33c5c4]=this['_fixRange'](_0x201cff,_0x52fb8d);}'root'===_0x33c5c4&&(_0x33b7a4[_0x40a5('0x69')]=_0x13b81f[_0x40a5('0xcc')](_0x33b7a4['root']['rootName']));}}[_0x40a5('0x6c')](_0x28c426,_0x395cd7){return this[_0x40a5('0xb6')][_0x40a5('0xe4')][_0x40a5('0xbe')](this['_fixPosition'](_0x28c426[_0x40a5('0x61')],_0x395cd7),this['_fixPosition'](_0x28c426['end'],_0x395cd7));}[_0x40a5('0x58')](_0x7146d2,_0x229f2f){return this['editor'][_0x40a5('0xe4')][_0x40a5('0xa6')](_0x229f2f,_0x7146d2[_0x40a5('0x1b')],_0x7146d2[_0x40a5('0x104')]);}['_handleInsertOperation'](_0x455a87){const _0x3e4558=this[_0x40a5('0x7')][_0x40a5('0xcc')](_0x455a87['position']['root']['rootName']),_0x12e275=this[_0x40a5('0x58')](_0x455a87[_0x40a5('0x89')],_0x3e4558),_0x232402=null===_0x455a87[_0x40a5('0xb0')]?null:_0x455a87['_authorId']||this['editor'][_0x40a5('0x5a')][_0x40a5('0xcc')](_0x40a5('0x4c'))['me']['id'],_0x214821=_0x12e275[_0x40a5('0xe6')],_0x18b747=this['_revisionId'],_0x2326be=[];for(const _0xd5f0fb of _0x455a87['nodes'])if(_0xd5f0fb['is'](_0x40a5('0xb2')))_0x2326be[_0x40a5('0x29')](this[_0x40a5('0x21')](_0xd5f0fb));else for(let _0x44498d=0x0;_0x44498d<_0xd5f0fb[_0x40a5('0xae')];_0x44498d++)_0x2326be[_0x40a5('0x29')](new _0x2cfefd('$text',{'vid':this['_revisionId']++}));const _0x339174=this['_revisionId'];for(let _0x42eb35=_0x18b747;_0x42eb35<_0x339174;_0x42eb35++)this[_0x40a5('0x5f')]['set'](_0x42eb35,{'userId':_0x232402});_0x214821[_0x40a5('0x7e')](_0x12e275[_0x40a5('0x30')],_0x2326be);}[_0x40a5('0x98')](_0x243a09){(_0x243a09=this[_0x40a5('0x22')](_0x243a09,this[_0x40a5('0x7')]))['_execute']();const _0x59f09e=null===_0x243a09[_0x40a5('0xb0')]?null:_0x243a09['_authorId']||this[_0x40a5('0xb6')]['plugins'][_0x40a5('0xcc')]('Users')['me']['id'],_0x32d48b=_0x243a09[_0x40a5('0xd7')](),_0x45c34f=_0x32d48b['parent'],_0x393fab=_0x32d48b[_0x40a5('0x30')];!function _0x234076(_0x5b8e3d,_0x82b2d4,_0x7cfcaf,_0x4850ed){for(let _0x55ddad=_0x7cfcaf;_0x55ddad<_0x4850ed;_0x55ddad++){const _0x5e6400=_0x82b2d4[_0x40a5('0x10')](_0x55ddad);_0x5e6400['is'](_0x40a5('0xb2'),_0x40a5('0xda'))?_0x5b8e3d[_0x40a5('0x4d')](_0x5e6400['getAttribute'](_0x40a5('0xef')),{'userId':_0x59f09e}):(_0x5b8e3d[_0x40a5('0x4d')](_0x5e6400[_0x40a5('0x2a')](_0x40a5('0xc')),{'userId':_0x59f09e}),_0x234076(_0x5b8e3d,_0x5e6400,0x0,_0x5e6400['childCount']),_0x5b8e3d['set'](_0x5e6400[_0x40a5('0x2a')](_0x40a5('0xfc')),{'userId':_0x59f09e}));}}(this[_0x40a5('0x5f')],_0x45c34f,_0x393fab,_0x393fab+_0x243a09['howMany']);}[_0x40a5('0x5e')](_0x1536ce){const _0x539a50=null===(_0x1536ce=this[_0x40a5('0x22')](_0x1536ce,this[_0x40a5('0x7')]))[_0x40a5('0xb0')]?null:_0x1536ce[_0x40a5('0xb0')]||this[_0x40a5('0xb6')][_0x40a5('0x5a')][_0x40a5('0xcc')](_0x40a5('0x4c'))['me']['id'],_0x175acb=_0x1536ce[_0x40a5('0x107')][_0x40a5('0xe6')],_0x1ff9ea=_0x1536ce[_0x40a5('0x15')]['parent'],_0x3d4c08=_0x175acb[_0x40a5('0x2a')](_0x40a5('0xfc')),_0x2f374f=_0x1ff9ea['getAttribute'](_0x40a5('0xc'));_0x175acb[_0x40a5('0x5')](_0x40a5('0xfc'),_0x1ff9ea[_0x40a5('0x2a')]('vid_end')),_0x1ff9ea[_0x40a5('0x5')](_0x40a5('0xfc'),_0x3d4c08),this[_0x40a5('0x5f')]['set'](_0x2f374f,{'userId':_0x539a50}),this[_0x40a5('0x5f')][_0x40a5('0x4d')](_0x3d4c08,{'userId':_0x539a50}),_0x1536ce['_execute']();}[_0x40a5('0x18')](_0x3ebbce){const _0x41abcc=null===(_0x3ebbce=this['_cloneOperation'](_0x3ebbce,this[_0x40a5('0x7')]))['_authorId']?null:_0x3ebbce[_0x40a5('0xb0')]||this['editor'][_0x40a5('0x5a')][_0x40a5('0xcc')](_0x40a5('0x4c'))['me']['id'],_0xc3ed9f=_0x3ebbce[_0x40a5('0x6e')],_0x1bacfa=_0x3ebbce[_0x40a5('0x9c')][_0x40a5('0xe6')];_0x3ebbce['_execute']();const _0x4a0f03=_0x1bacfa[_0x40a5('0x2a')](_0x40a5('0xfc')),_0xb7e491=_0x3ebbce[_0x40a5('0xf1')][_0x40a5('0x25')];if(_0xc3ed9f){const _0x512678=_0xb7e491[_0x40a5('0x2a')](_0x40a5('0xfc')),_0x32cd24=_0x1bacfa[_0x40a5('0x2a')](_0x40a5('0xfc'));_0x1bacfa[_0x40a5('0x5')]('vid_end',_0x512678),_0xb7e491[_0x40a5('0x5')](_0x40a5('0xfc'),_0x32cd24),this[_0x40a5('0x5f')]['set'](_0x1bacfa[_0x40a5('0x2a')](_0x40a5('0xfc')),{'userId':_0x41abcc}),this[_0x40a5('0x5f')][_0x40a5('0x4d')](_0xb7e491[_0x40a5('0x2a')](_0x40a5('0xc')),{'userId':_0x41abcc});}else{const _0x1c68af=this[_0x40a5('0x50')]++,_0x42f97c=this['_revisionId']++;_0x1bacfa[_0x40a5('0x5')](_0x40a5('0xfc'),_0x1c68af),_0xb7e491[_0x40a5('0x5')](_0x40a5('0xc'),_0x42f97c),_0xb7e491[_0x40a5('0x5')](_0x40a5('0xfc'),_0x4a0f03),this[_0x40a5('0x5f')][_0x40a5('0x4d')](_0x1c68af,{'userId':_0x41abcc}),this['_touched']['set'](_0x42f97c,{'userId':_0x41abcc});}}[_0x40a5('0x105')](_0x112c46){if(!_0x112c46['affectsData'])return;const _0xcca4c4=(_0x112c46=this[_0x40a5('0x22')](_0x112c46,this[_0x40a5('0xb1')]))[_0x40a5('0x2c')]?_0x112c46[_0x40a5('0x2c')][_0x40a5('0x69')]:null,_0x12320d=_0x112c46[_0x40a5('0x8c')]?_0x112c46[_0x40a5('0x8c')]['root']:null;_0xcca4c4&&this[_0x40a5('0xe0')][_0x40a5('0xce')](_0x112c46['name']),_0x12320d&&this[_0x40a5('0xe0')][_0x40a5('0x4d')](_0x112c46[_0x40a5('0xcf')],_0x112c46[_0x40a5('0x8c')]['clone']());const _0x3b8948=null===_0x112c46[_0x40a5('0xb0')]?null:_0x112c46[_0x40a5('0xb0')]||this[_0x40a5('0xb6')][_0x40a5('0x5a')][_0x40a5('0xcc')](_0x40a5('0x4c'))['me']['id'],_0x242343=_0x112c46[_0x40a5('0xcf')];if(!this['_touchedMarkers']['has'](_0x242343))return void this[_0x40a5('0x31')][_0x40a5('0x4d')](_0x242343,{'range':_0x112c46[_0x40a5('0x2c')],'userId':_0x3b8948});const _0x57b42a=this[_0x40a5('0x31')][_0x40a5('0xcc')](_0x242343),_0x587618=_0x57b42a[_0x40a5('0x9f')],_0x1d2228=_0x112c46[_0x40a5('0x8c')];null==_0x587618&&null==_0x1d2228||_0x587618&&_0x1d2228&&_0x587618[_0x40a5('0x82')](_0x1d2228)?this[_0x40a5('0x31')][_0x40a5('0xce')](_0x112c46[_0x40a5('0xcf')]):_0x57b42a['userId']=_0x3b8948;}[_0x40a5('0xc1')](_0x363b5f,_0x30371c){this[_0x40a5('0xb1')][_0x40a5('0x99')](_0x363b5f[_0x40a5('0xa8')])?this['_diffRoots'][_0x40a5('0xcc')](_0x363b5f[_0x40a5('0xa8')])[_0x40a5('0xb')]=_0x363b5f[_0x40a5('0xbd')]:(this['_diffRoots'][_0x40a5('0x4d')](_0x363b5f[_0x40a5('0xa8')],G(_0x363b5f['rootName'],!0x0)),this[_0x40a5('0xdb')][_0x40a5('0x4d')](_0x363b5f[_0x40a5('0xa8')],{}),_0x30371c&&this['_idsRoots'][_0x40a5('0x4d')](_0x363b5f[_0x40a5('0xa8')],G(_0x363b5f[_0x40a5('0xa8')],!0x0)));const _0x535198=null===_0x363b5f[_0x40a5('0xb0')]?null:_0x363b5f[_0x40a5('0xb0')]||this[_0x40a5('0xb6')][_0x40a5('0x5a')][_0x40a5('0xcc')](_0x40a5('0x4c'))['me']['id'],_0x255053=this['_touchedRoots'][_0x40a5('0xcc')](_0x363b5f[_0x40a5('0xa8')]);_0x255053&&_0x255053['userId']===_0x535198?this[_0x40a5('0x110')][_0x40a5('0xce')](_0x363b5f[_0x40a5('0xa8')]):this['_touchedRoots']['set'](_0x363b5f[_0x40a5('0xa8')],{'userId':_0x535198,'isAttached':_0x363b5f[_0x40a5('0xbd')]});}[_0x40a5('0xca')](_0x5180ea){const _0x5b540b=this[_0x40a5('0xdb')][_0x40a5('0xcc')](_0x5180ea['root'][_0x40a5('0xa8')]);null===_0x5180ea['newValue']?delete _0x5b540b[_0x5180ea[_0x40a5('0x72')]]:_0x5b540b[_0x5180ea[_0x40a5('0x72')]]=_0x5180ea[_0x40a5('0x16')];}}function q(_0xfd3f3e){const _0x4ac176=G(_0xfd3f3e[_0x40a5('0xa8')],_0xfd3f3e[_0x40a5('0x65')]());for(const _0x5dab50 of _0xfd3f3e[_0x40a5('0x106')]()){const _0x334f8b=_0x5dab50[_0x40a5('0x51')](!0x0);_0x4ac176[_0x40a5('0xde')](_0x334f8b);}return _0x4ac176;}function G(_0x3a7254,_0x3cfa86=!0x0){const _0x3ba934=new _0x7d7b49();return _0x3ba934['rootName']=_0x3a7254,_0x3ba934[_0x40a5('0xb')]=_0x3cfa86,_0x3ba934[_0x40a5('0x65')]=()=>_0x3ba934[_0x40a5('0xb')],_0x3ba934;}function L(_0x1c2172,_0x4ada67,_0x3e8484){const _0x55e5bd=_0x40a5('0x10d')==_0x1c2172[_0x40a5('0x54')]?_0x3e8484[_0x40a5('0x2d')](_0x1c2172['item'],'end'):_0x3e8484[_0x40a5('0x24')](_0x1c2172[_0x40a5('0x103')]);return _0x3e8484[_0x40a5('0xa6')](_0x4ada67,_0x55e5bd[_0x40a5('0x1b')],_0x55e5bd[_0x40a5('0x104')]);}function W(_0x409849,_0x250dfb,_0x2e468a){const _0x55cd8e=_0x40a5('0xc7')==_0x409849[_0x40a5('0x54')]?_0x2e468a[_0x40a5('0x2d')](_0x409849[_0x40a5('0x103')],0x0):_0x2e468a[_0x40a5('0x11')](_0x409849[_0x40a5('0x103')]);return _0x2e468a['createPositionFromPath'](_0x250dfb,_0x55cd8e[_0x40a5('0x1b')],_0x55cd8e[_0x40a5('0x104')]);}
|
|
23
|
+
const _0x89ec=['slice','offsetSize','attributesAfter','diffData','getRevisionRootsAttributes','_diffRoots','getAttribute','vid_end','init','item','removeRootAttribute','_loadRevisionData','isAdd','_continueCurrentRevision','authorsIds','_handleMergeOperation','offset','insertionPosition','insertion','merge','_findInsertionIndex','$graveyard','getRevisions','Initial\x20revision','shift','newValue','_insertChild','end','children','_getViewJson','RealTimeCollaborationClient','finally','loadState','_createCurrentRevision','_clone','_lastFrom','update','_handleInsertOperation','_savedMetaData','_makeIdsRoot','setRevisionData','getCurrentRevisionId','fromVersion','isAttached','documentFragment','has','getRootNames','getWalker','childCount','_createInitialRevision','_applyOperations','key','editor','conversion','_markers','_loadedStateData','find','paragraph','roots','_saveMetaData','_replaceEditorDataWithRevisionData','reinsert','_prepareViewToSave','_processRootBeforeSave','collaboration.channelId','_handleMoveOperation','size','getUser','reInit','name','currentRevision','setSource','_touchedMarkers','_handleMarkerOperation','upcast','_getVidAttributeName','set','insertions','revision-start','_generateTape','_getBaseVids','start','reverse','_setAttribute','document','_calculateMetaData','length','deletions','$text','dataToMarker','locale','buildRevisionData','revision-end','_revisionDataBuilder','rootName','graveyardPosition','getChildren','getRevisionDocumentData','_isAttached','repository','sourcePosition','addRevisionData','_baseRootsAttributes','_idsRoots','_baseIdsRoots','adapter','for','createRangeIn','getRevision','_removeRevisionMarkers','createdAt','elementEnd','_makeModelFromViewString','data-revision-','trim','_pendingAction','attributes','_isPendingUpdate','_cloneOperation','some','keepParagraph','oldRange','add','getOperations','from','dataDowncast','deletion','_loadState','_touched','_copyMarkers','revisionHistory.resumeUnsavedRevision','sort','addRoot','_handleRootOperation','getAttributes','attachChange','creator','_source','version','PendingActions','tableCell','type','getNodeByPath','PENDING_ACTION_REVISION_HISTORY','affectsData','_createFromRanges','_authorId','map','_bufferedUpdates','getChild','creatorId','split','toView','keys','requires','nodes','_makeRevision','sendBufferedUpdates','createPositionAt','insert','push','clear','ready','position','_handleSplitOperation','baseVersion','_getPreviousFrom','_execute','_touchedRoots','marked','_removePendingAction','root','createRange','fromEntries','RevisionTracker','createRevision','delete','parse','getIndex','forEach','revision:','_fixRange','resolve','stickiness','define','then','userId','isEnabled','hasContent','Users','move','previousPosition','stringify','getMovedRangeStart','elementStart','rootsAttributes','element','startsWith','getLatestVersion','Empty\x20document','_lastTo','string','toData','_setConversion','useFillerType','data','NEGATIVE_INFINITY','_getFromVersion','isEqual','_handleOperation','_operations','_fixOperation','isReady','_fixPosition','markers','view','plugins','_revisionId','initialData','afterInit','text','get','toVersion','nodeAfter','RevisionsRepository','createPositionFromPath','filter','clone','markerToData','createPositionBefore','history','processor','_markChanges','createPositionAfter','vid_start','saveRevision','default','includes','_reset','_diffRootsAttributes','getRange','splitPosition','_startingRevisionId','getData','_removeMetaData','getRoot','max','_initialRevisionId','_transformMarkers','_update','config','pluginName','editing','_getState','updateRevisions','_addPendingAction','revision','values','addRevision','_startingVersion','source','marker','parent','vid','path','_bufferUpdate','authors','model','newRange','_baseRoots'];(function(_0x47d868,_0x89ec69){const _0x5e20fe=function(_0x54bd56){while(--_0x54bd56){_0x47d868['push'](_0x47d868['shift']());}};_0x5e20fe(++_0x89ec69);}(_0x89ec,0x192));const _0x5e20=function(_0x47d868,_0x89ec69){_0x47d868=_0x47d868-0x0;let _0x5e20fe=_0x89ec[_0x47d868];return _0x5e20fe;};import{Users as _0x1ec901}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x16814d,PendingActions as _0x3046e3}from'ckeditor5/src/core';import{logWarning as _0x514e5f,uid as _0x4ab4fb}from'ckeditor5/src/utils';import{Position as _0x3af9e3,Range as _0x472eca,Element as _0x1232af,DocumentFragment as _0x4ea7a3,ViewText as _0x505f06,ViewElement as _0x8fa111,ViewContainerElement as _0x45a9c5,ViewAttributeElement as _0x5b525b,ViewEmptyElement as _0x46e0ac,ViewRawElement as _0x4ac50d,ViewUIElement as _0x5dcfe0,ViewDocumentFragment as _0x5185bc}from'ckeditor5/src/engine';import _0x58b8d4 from'./revisionsrepository';import{getTranslation as _0x3c1f4c}from'./utils/common-translations';import{cloneDeep as _0x3c23d6,isEqual as _0x39ebcc}from'lodash-es';const B={'c':_0x45a9c5,'a':_0x5b525b,'e':_0x46e0ac,'r':_0x4ac50d,'u':_0x5dcfe0};export default class l extends _0x16814d{static get[_0x5e20('0x77')](){return _0x5e20('0x2a');}static get[_0x5e20('0x16')](){return[_0x1ec901,_0x58b8d4,_0x3046e3];}constructor(_0x53faed){super(_0x53faed),this[_0x5e20('0xf3')]=null,this['currentRevision']=null,this[_0x5e20('0xe7')]=new H(this[_0x5e20('0xbe')]),this[_0x5e20('0x73')]=this[_0x5e20('0xbe')]['config'][_0x5e20('0x59')]('collaboration.channelId')||'initial',this[_0x5e20('0x10')]=new Map(),this[_0x5e20('0xc1')]=null;const _0x1017ef=_0x4ab4fb();this[_0x5e20('0x5')]={'history':this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0xde')][_0x5e20('0x62')],'getLatestVersion':()=>Promise['resolve'](this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0xde')][_0x5e20('0x6')]),'getCurrentRevisionId':()=>_0x1017ef},this[_0x5e20('0xd6')]('isReady',!0x1),this[_0x5e20('0xd6')](_0x5e20('0x37'),!0x0),this[_0x5e20('0xd6')](_0x5e20('0xff'),!0x1),this[_0x5e20('0xbe')][_0x5e20('0x76')][_0x5e20('0x34')]('revisionHistory.resumeUnsavedRevision',!0x0),this['editor'][_0x5e20('0xbf')][_0x5e20('0xf4')](_0x5e20('0xd4'))[_0x5e20('0xe3')]({'view':_0x5e20('0x7c')});}[_0x5e20('0x92')](){this[_0x5e20('0xed')]=this[_0x5e20('0xbe')][_0x5e20('0x54')][_0x5e20('0x59')](_0x5e20('0x5c')),this[_0x5e20('0x47')](),this[_0x5e20('0xbe')][_0x5e20('0x49')]['on'](_0x5e20('0x1e'),()=>{const _0x314f62=this['repository'][_0x5e20('0xf6')](0x0),_0x4608bb=_0x314f62&&null===_0x314f62[_0x5e20('0x4')]?_0x314f62:null;if(this[_0x5e20('0x97')]=!!_0x4608bb&&this[_0x5e20('0xbe')][_0x5e20('0x76')]['get'](_0x5e20('0x10c')),this[_0x5e20('0xbe')]['plugins']['has'](_0x5e20('0xa8'))){const _0x1bc30a=this[_0x5e20('0x5')][_0x5e20('0xb3')](),_0xf7fd9e=this['repository'][_0x5e20('0xf6')](_0x1bc30a);if(_0xf7fd9e)this[_0x5e20('0x7f')]=_0xf7fd9e[_0x5e20('0xb4')],this[_0x5e20('0x97')]=!0x1;else{const _0x3e30cc=this[_0x5e20('0x5')][_0x5e20('0x62')][_0x5e20('0x4e')][_0x5e20('0xc2')](_0x2bd910=>!_0x2bd910['_isInit']),_0x1c0ece=_0x3e30cc?_0x3e30cc[_0x5e20('0x21')]:this[_0x5e20('0x5')][_0x5e20('0x62')][_0x5e20('0x6')];_0x314f62?(_0x314f62[_0x5e20('0x5a')]<_0x1c0ece&&_0x314f62['_update']({'toVersion':_0x1c0ece}),this[_0x5e20('0x97')]?(this[_0x5e20('0x5')]['getCurrentRevisionId']=()=>_0x4608bb['id'],this['_startingVersion']=_0x4608bb['fromVersion']):(this[_0x5e20('0x7f')]=_0x314f62[_0x5e20('0x5a')],this[_0x5e20('0x97')]=!0x1)):(this[_0x5e20('0x7f')]=_0x1c0ece,this[_0x5e20('0x97')]=!0x1);}}else _0x4608bb&&(this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0xde')][_0x5e20('0x62')][_0x5e20('0x6')]=Math[_0x5e20('0x72')](_0x4608bb[_0x5e20('0x5a')],this[_0x5e20('0xbe')]['model']['document'][_0x5e20('0x62')][_0x5e20('0x6')]),_0x4608bb['fromVersion']===_0x4608bb[_0x5e20('0x5a')]?(0x0!==_0x4608bb[_0x5e20('0xb4')]&&(this[_0x5e20('0x5')][_0x5e20('0xb3')]=()=>_0x4608bb['id']),this[_0x5e20('0x97')]=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4608bb['id'],this['_startingVersion']=_0x4608bb[_0x5e20('0xb4')])),this[_0x5e20('0x97')]||(this[_0x5e20('0x7f')]=this[_0x5e20('0xbe')]['model'][_0x5e20('0xde')][_0x5e20('0x6')]);this[_0x5e20('0xe7')][_0x5e20('0x92')](this[_0x5e20('0x5')][_0x5e20('0x62')]),this[_0x5e20('0xbb')](this[_0x5e20('0x7f')]),this[_0x5e20('0xab')](this['_startingVersion']),this[_0x5e20('0xf3')]&&this['sendBufferedUpdates']();}),this['bind'](_0x5e20('0x50'))['to'](this,'_isPendingUpdate',_0x378a4e=>!_0x378a4e);}async[_0x5e20('0x57')](){if(this[_0x5e20('0xed')][_0x5e20('0xe0')]>0x0){const _0x47bc3a=this[_0x5e20('0xed')][_0x5e20('0xf6')](0x0),_0x309caa=await this[_0x5e20('0xeb')](_0x47bc3a),_0xcb65ed=await this[_0x5e20('0x8e')](_0x47bc3a);this['_replaceEditorDataWithRevisionData'](_0x309caa,_0xcb65ed);}}[_0x5e20('0xd1')](_0x5d4c5e){this[_0x5e20('0x5')]=_0x5d4c5e;}async[_0x5e20('0xae')](){const _0x3e74e1=await this[_0x5e20('0x5')][_0x5e20('0x42')]();if(_0x3e74e1>this['currentRevision']['toVersion']){await this['_loadState']();const _0x28ed59=this['buildRevisionData']({'revision':this[_0x5e20('0xd0')],'to':_0x3e74e1});_0x28ed59[_0x5e20('0x86')]=_0x28ed59[_0x5e20('0x98')][_0x5e20('0xf')](_0x487396=>this[_0x5e20('0xbe')][_0x5e20('0x54')][_0x5e20('0x59')]('Users')['getUser'](_0x487396)),this[_0x5e20('0xd0')][_0x5e20('0x75')](_0x28ed59);}}async['_loadState'](){this[_0x5e20('0x97')]&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this[_0x5e20('0xd0')]),this[_0x5e20('0xe7')][_0x5e20('0xaa')](this[_0x5e20('0xd0')]),this['_loadedStateData']={'fromVersion':this[_0x5e20('0xd0')][_0x5e20('0xb4')],'authors':this[_0x5e20('0xd0')][_0x5e20('0x86')][_0x5e20('0x8a')]()});}async[_0x5e20('0x67')](_0x292212={},_0xed352b=null){const _0x392887=[];await this[_0x5e20('0x109')](),this['_continueCurrentRevision']=!0x1,_0xed352b>this[_0x5e20('0xd0')][_0x5e20('0x5a')]&&(_0xed352b=null),null===_0xed352b&&(_0xed352b=await this[_0x5e20('0x5')]['getLatestVersion']());const _0x5b9651=this[_0x5e20('0x4b')](_0xed352b),_0xc51363=this[_0x5e20('0xe5')]({'from':_0x5b9651,'to':_0xed352b});if(this['currentRevision'][_0x5e20('0x5a')]<_0xed352b){const _0x2ed8bd=this[_0x5e20('0xe5')]({'revision':this['currentRevision'],'from':_0xed352b,'to':_0xed352b});_0x2ed8bd['authors']=[],_0x2ed8bd[_0x5e20('0x98')]=[],_0x2ed8bd['id']=this['currentRevision']['id'],this[_0x5e20('0xd0')][_0x5e20('0x75')](_0x2ed8bd,!0x0),delete _0x2ed8bd[_0x5e20('0x86')],_0x392887[_0x5e20('0x1c')](_0x2ed8bd);}_0x292212[_0x5e20('0x12')]=this['editor']['plugins'][_0x5e20('0x59')](_0x5e20('0x39'))['me']['id'],_0x292212[_0x5e20('0xcf')]=_0x292212['name']||null,_0x292212['id']=_0x292212['id']||_0x4ab4fb(),_0x292212={..._0x292212,..._0xc51363};const _0x11a0b2=this[_0x5e20('0xef')](_0x292212);_0x392887[_0x5e20('0x1c')](_0x292212);const _0xbb48fe=this[_0x5e20('0xed')][_0x5e20('0x2e')](_0x11a0b2);if(0x0!==_0xbb48fe){const _0x2735c0=this[_0x5e20('0xed')]['getRevision'](_0xbb48fe-0x1);if(_0x2735c0['fromVersion']!==_0xed352b){const _0x25124a=this['_revisionDataBuilder'][_0x5e20('0x6f')](_0xed352b,_0x2735c0[_0x5e20('0x5a')]),_0x4653bc={'id':_0x2735c0['id'],'diffData':_0x25124a[_0x5e20('0x8d')],'authorsIds':_0x25124a['authorsIds'],'authors':_0x25124a[_0x5e20('0x98')][_0x5e20('0xf')](_0x3e7530=>this[_0x5e20('0xbe')][_0x5e20('0x54')][_0x5e20('0x59')](_0x5e20('0x39'))[_0x5e20('0xcd')](_0x3e7530)),'fromVersion':_0xed352b};_0x2735c0===this[_0x5e20('0xd0')]&&(_0x4653bc['createdAt']=new Date(_0x292212[_0x5e20('0xf8')]['getTime']()+0xa)),_0x2735c0['_update'](_0x4653bc,!0x0),delete _0x4653bc[_0x5e20('0x86')],_0x392887[_0x5e20('0x1c')](_0x4653bc);}}if(this[_0x5e20('0xf3')]){for(const _0x3db971 of _0x392887)this[_0x5e20('0x85')](_0x3db971['id'],_0x3db971,!0x0);this[_0x5e20('0x19')]();}return _0x11a0b2;}[_0x5e20('0xef')](_0x417762){const _0x3cd5db=this[_0x5e20('0xed')][_0x5e20('0x2b')](_0x417762);return this[_0x5e20('0xf3')]&&_0x3cd5db['on'](_0x5e20('0x75'),(_0x2a7300,_0x241aa9,_0x5f48ea)=>{_0x5f48ea||(this['_bufferUpdate'](_0x241aa9['id'],_0x241aa9,!0x0),this[_0x5e20('0x19')]());}),this[_0x5e20('0xed')][_0x5e20('0x7e')](_0x3cd5db,this[_0x5e20('0x9e')](_0x3cd5db)),_0x3cd5db;}async[_0x5e20('0xeb')](_0x4078ce){await this[_0x5e20('0x95')](_0x4078ce);const _0x23ef0b={};for(const _0x35b415 in _0x4078ce[_0x5e20('0x8d')]){if(_0x4078ce[_0x5e20('0x8d')][_0x35b415][_0x5e20('0x3')]&&!_0x4078ce['diffData'][_0x35b415][_0x5e20('0x3')][_0x5e20('0xb5')])continue;const _0xb47462=this[_0x5e20('0xf7')](JSON['parse'](_0x4078ce[_0x5e20('0x8d')][_0x35b415][_0x5e20('0xd7')])),_0x79d15e=this[_0x5e20('0xbe')][_0x5e20('0x78')]['view'][_0x5e20('0xde')],_0x420c28=new _0x5185bc(_0x79d15e,_0xb47462[_0x5e20('0xf')](_0x1a0b5a=>J(_0x1a0b5a,this[_0x5e20('0xbe')])));this[_0x5e20('0xbe')][_0x5e20('0x49')][_0x5e20('0x63')][_0x5e20('0x48')](_0x5e20('0x25')),_0x23ef0b[_0x35b415]=this[_0x5e20('0xbe')][_0x5e20('0x49')]['processor'][_0x5e20('0x46')](_0x420c28),this[_0x5e20('0xbe')][_0x5e20('0x49')][_0x5e20('0x63')][_0x5e20('0x48')](_0x5e20('0x68'));}return _0x23ef0b;}async[_0x5e20('0x8e')](_0x4d1d33){await this['_loadRevisionData'](_0x4d1d33);const _0x485839={};for(const _0x36cfea in _0x4d1d33[_0x5e20('0x8d')])_0x4d1d33['diffData'][_0x36cfea][_0x5e20('0x3')]&&!_0x4d1d33['diffData'][_0x36cfea]['attachChange'][_0x5e20('0xb5')]||(_0x485839[_0x36cfea]=_0x4d1d33[_0x5e20('0x8d')][_0x36cfea][_0x5e20('0x8c')]||{});return _0x485839;}[_0x5e20('0x19')](){if(0x0===this[_0x5e20('0x10')][_0x5e20('0xcc')])return;if(this['_isPendingUpdate'])return;let _0x179c79=Array['from'](this['_bufferedUpdates'][_0x5e20('0x7d')]());this[_0x5e20('0x10')][_0x5e20('0x1d')]();for(let _0x4e2e78=0x0;_0x4e2e78<_0x179c79[_0x5e20('0xe0')];_0x4e2e78++){const _0x3ed019=_0x179c79[_0x4e2e78];let _0x1ef497=!0x1;for(const _0x4a833d of Object['keys'](_0x3ed019))void 0x0===_0x3ed019[_0x4a833d]?delete _0x3ed019[_0x4a833d]:'id'!==_0x4a833d&&(_0x1ef497=!0x0);_0x1ef497||(_0x179c79[_0x4e2e78]=null);}if(_0x179c79=_0x179c79[_0x5e20('0x5e')](_0x28de80=>null!==_0x28de80),!_0x179c79[_0x5e20('0xe0')])return;for(let _0x5466e5=0x0;_0x5466e5<_0x179c79['length'];_0x5466e5++){const _0x452eae=_0x179c79[_0x5466e5];void 0x0!==_0x452eae[_0x5e20('0xb4')]&&void 0x0===_0x452eae[_0x5e20('0x5a')]&&(_0x452eae[_0x5e20('0x5a')]=this[_0x5e20('0xed')][_0x5e20('0xf6')](_0x452eae['id'])['toVersion']),void 0x0!==_0x452eae[_0x5e20('0x5a')]&&void 0x0===_0x452eae[_0x5e20('0xb4')]&&(_0x452eae['fromVersion']=this['repository'][_0x5e20('0xf6')](_0x452eae['id'])[_0x5e20('0xb4')]);}const _0x141cf6=this[_0x5e20('0xbe')][_0x5e20('0x76')][_0x5e20('0x59')](_0x5e20('0xca'));this[_0x5e20('0xff')]=!0x0,this[_0x5e20('0x7b')](),this[_0x5e20('0xf3')][_0x5e20('0x7a')](_0x179c79,_0x141cf6)[_0x5e20('0xa9')](()=>{this[_0x5e20('0xff')]=!0x1;})[_0x5e20('0x35')](_0x2fecf4=>{if(_0x2fecf4)for(const _0x45f608 of _0x2fecf4)this[_0x5e20('0xb2')]({'id':_0x45f608['id'],'createdAt':_0x45f608[_0x5e20('0xf8')]});this[_0x5e20('0x26')](),this[_0x5e20('0x19')]();});}[_0x5e20('0xc6')](_0x3e48f6,_0x36aa1b){let _0x222865=this[_0x5e20('0xbe')][_0x5e20('0x76')][_0x5e20('0x59')](_0x5e20('0x56')),_0x150861=this['editor'][_0x5e20('0x76')][_0x5e20('0x59')](_0x5e20('0x3f'));if(void 0x0===_0x222865){_0x222865={};for(const _0x488de7 of this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0xde')][_0x5e20('0xb8')]())_0x222865[_0x488de7]='';}if(_0x5e20('0x45')==typeof _0x222865&&(_0x222865={'main':_0x222865}),void 0x0===_0x150861){_0x150861={};for(const _0x3ce0d5 of this[_0x5e20('0xbe')]['model'][_0x5e20('0xde')][_0x5e20('0xb8')]())_0x150861[_0x3ce0d5]={};}let _0x220500=!0x1;const _0x4ef09c=Object[_0x5e20('0x15')](_0x222865),_0x5ef873=Object['keys'](_0x3e48f6);for(const _0x233231 of _0x4ef09c){if(_0x222865[_0x233231]!==_0x3e48f6[_0x233231]&&''!==_0x222865[_0x233231][_0x5e20('0xfc')]()){_0x220500=!0x0;break;}if(!_0x39ebcc(_0x150861[_0x233231],_0x36aa1b[_0x233231])&&Object[_0x5e20('0x15')](_0x150861[_0x233231])[_0x5e20('0xe0')]>0x0){_0x220500=!0x0;break;}}_0x220500||(_0x220500=_0x5ef873[_0x5e20('0x101')](_0x547e4a=>!this[_0x5e20('0xbe')][_0x5e20('0x87')]['document'][_0x5e20('0x71')](_0x547e4a))),_0x220500&&_0x514e5f('editor-initial-data-replaced-with-revision-data',{'editorData':_0x222865,'editorRootsAttributes':_0x150861,'revisionData':_0x3e48f6,'revisionRootsAttributes':_0x36aa1b}),this[_0x5e20('0xbe')]['config']['set']('initialData',_0x3e48f6),this[_0x5e20('0xbe')][_0x5e20('0x76')][_0x5e20('0xd6')](_0x5e20('0x3f'),_0x36aa1b);}['_addPendingAction'](){if(!this[_0x5e20('0xfd')]){const _0x5069dc=this[_0x5e20('0xbe')][_0x5e20('0x54')]['get'](_0x5e20('0x7'));this[_0x5e20('0xfd')]=_0x5069dc[_0x5e20('0x104')](_0x3c1f4c(this[_0x5e20('0xbe')][_0x5e20('0xe4')],_0x5e20('0xb')));}}[_0x5e20('0x26')](){this[_0x5e20('0xfd')]&&(this['editor']['plugins'][_0x5e20('0x59')](_0x5e20('0x7'))['remove'](this[_0x5e20('0xfd')]),this[_0x5e20('0xfd')]=null);}[_0x5e20('0x9e')](_0x26cfea){const _0xcccdb0=this[_0x5e20('0xed')][_0x5e20('0xa0')]();_0xcccdb0['reverse']();let _0xd4dfae=0x0;for(;_0xd4dfae<_0xcccdb0[_0x5e20('0xe0')];){const _0x37e044=_0xcccdb0[_0xd4dfae];if(_0x37e044===this[_0x5e20('0xd0')]){_0xd4dfae++;continue;}if(_0x37e044['id']===this['_initialRevisionId'])break;const _0x5b9cfb=_0x26cfea[_0x5e20('0x5a')]-_0x37e044[_0x5e20('0x5a')]||_0x26cfea[_0x5e20('0xb4')]-_0x37e044[_0x5e20('0xb4')];if(_0x5b9cfb>0x0)break;if(_0x5b9cfb<0x0)_0xd4dfae++;else{if(!_0x26cfea[_0x5e20('0x4')]&&_0x37e044[_0x5e20('0x4')])break;if(_0x37e044[_0x5e20('0x4')]||!_0x26cfea['creator']){if(_0x26cfea[_0x5e20('0xf8')]>_0x37e044[_0x5e20('0xf8')])break;_0xd4dfae++;}else _0xd4dfae++;}}return _0xd4dfae;}[_0x5e20('0xb2')](_0x406453){const _0x3f739b=this[_0x5e20('0xed')][_0x5e20('0xf6')](_0x406453['id']);if(_0x406453[_0x5e20('0xf8')]&&(_0x406453[_0x5e20('0xf8')]=new Date(_0x406453[_0x5e20('0xf8')])),_0x406453[_0x5e20('0x98')]){const _0xe6306=this['editor'][_0x5e20('0x54')][_0x5e20('0x59')](_0x5e20('0x39'));_0x406453[_0x5e20('0x86')]=_0x406453[_0x5e20('0x98')][_0x5e20('0xf')](_0x245112=>_0xe6306['getUser'](_0x245112));}_0x3f739b[_0x5e20('0x75')](_0x406453,!0x0);}[_0x5e20('0xe5')]({revision:_0x25b5e1=null,from:_0x5e81fa=null,to:_0x53f10c=null}){_0x5e81fa=null!==_0x5e81fa?_0x5e81fa:_0x25b5e1[_0x5e20('0xb4')],_0x53f10c=null!==_0x53f10c?_0x53f10c:_0x25b5e1[_0x5e20('0x5a')];const _0x2fbc4f=this[_0x5e20('0xe7')][_0x5e20('0x6f')](_0x5e81fa,_0x53f10c),_0x4c88ae={'diffData':_0x2fbc4f[_0x5e20('0x8d')],'authorsIds':_0x2fbc4f['authorsIds'],'fromVersion':_0x5e81fa,'toVersion':_0x53f10c};if(!_0x25b5e1||_0x53f10c!==_0x25b5e1[_0x5e20('0x5a')]){const _0x4dcd1f=_0x53f10c-0x1,_0x4d496a=this[_0x5e20('0x5')][_0x5e20('0x62')]['getOperation'](_0x4dcd1f);_0x4c88ae['createdAt']=_0x4d496a&&_0x4d496a[_0x5e20('0xf8')]||new Date();}if(this['_loadedStateData']&&_0x5e81fa===this[_0x5e20('0xc1')][_0x5e20('0xb4')])for(const _0x4761cb of this[_0x5e20('0xc1')]['authors'])_0x4c88ae['authorsIds'][_0x5e20('0x69')](_0x4761cb['id'])||_0x4c88ae[_0x5e20('0x98')][_0x5e20('0x1c')](_0x4761cb['id']);return _0x4c88ae;}[_0x5e20('0x95')](_0x4cce19){if(!_0x4cce19||_0x4cce19[_0x5e20('0x8d')])return Promise[_0x5e20('0x32')]();{const _0x2fbd34=this[_0x5e20('0xbe')][_0x5e20('0x76')][_0x5e20('0x59')](_0x5e20('0xca'));return this[_0x5e20('0xf3')][_0x5e20('0xf6')]({'channelId':_0x2fbd34,'revisionId':_0x4cce19['id']})[_0x5e20('0x35')](_0x2d72a4=>{_0x4cce19['diffData']=_0x2d72a4['diffData'];});}}[_0x5e20('0x85')](_0x4445cb,_0x5a5685,_0x28244c){if(this['_bufferedUpdates'][_0x5e20('0xb7')](_0x4445cb)){const _0x472a19=this['_bufferedUpdates'][_0x5e20('0x59')](_0x4445cb);_0x5a5685=_0x28244c?{..._0x472a19,..._0x5a5685}:{..._0x5a5685,..._0x472a19};}this[_0x5e20('0x10')]['set'](_0x4445cb,_0x5a5685);}['_getFromVersion'](_0x57a2aa){const _0x3e7590=this[_0x5e20('0xed')]['getRevisions']();_0x3e7590[_0x5e20('0xdc')](),_0x3e7590[_0x5e20('0xa2')]();const _0x3a74e7=_0x3e7590[_0x5e20('0xc2')](_0x343795=>_0x343795['toVersion']<=_0x57a2aa)[_0x5e20('0x5a')];return _0x3a74e7<this[_0x5e20('0x7f')]?this[_0x5e20('0x7f')]:_0x3a74e7;}[_0x5e20('0xbb')](_0x19b6bc){const _0x4ae738=this[_0x5e20('0xed')][_0x5e20('0xf6')](this[_0x5e20('0xed')][_0x5e20('0xe0')]-0x1);if(_0x4ae738)this['_initialRevisionId']=_0x4ae738['id'];else{const _0x45f3a3=!this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0xde')][_0x5e20('0xc4')][_0x5e20('0xc2')](_0x1a2fa9=>this[_0x5e20('0xbe')]['model'][_0x5e20('0x38')](_0x1a2fa9)),_0x1adbf7=this['editor']['plugins'][_0x5e20('0x59')]('Users')['me']['id'],_0x3fd5fd=_0x3c1f4c(this[_0x5e20('0xbe')][_0x5e20('0xe4')],_0x45f3a3?_0x5e20('0x43'):_0x5e20('0xa1'));this['_makeRevision']({'from':_0x19b6bc,'to':_0x19b6bc,'id':this[_0x5e20('0x73')],'name':_0x3fd5fd,'creatorId':_0x1adbf7});}}[_0x5e20('0xab')](_0x4bcf94){const _0x1c6416=this[_0x5e20('0x5')]['getCurrentRevisionId']();this[_0x5e20('0xd0')]=this[_0x5e20('0xed')]['getRevision'](_0x1c6416),this[_0x5e20('0xd0')]||(this['currentRevision']=this[_0x5e20('0x18')]({'from':_0x4bcf94,'to':_0x4bcf94,'id':_0x1c6416,'name':'','creatorId':null}));}['_makeRevision']({name:_0x338721,from:_0x483606,to:_0xf3a27d,creatorId:_0x3d83f3,id:_0x4a662f}){const _0x4a4488=this[_0x5e20('0xe5')]({'from':_0x483606,'to':_0xf3a27d});_0x4a4488[_0x5e20('0xcf')]=_0x338721,_0x4a4488[_0x5e20('0x12')]=_0x3d83f3,_0x4a4488['id']=_0x4a662f;const _0x597c02=this[_0x5e20('0xef')](_0x4a4488);return this['adapter']&&this[_0x5e20('0x85')](_0x4a4488['id'],_0x4a4488,!0x0),_0x597c02;}[_0x5e20('0x47')](){this[_0x5e20('0xbe')][_0x5e20('0xbf')]['for'](_0x5e20('0x107'))[_0x5e20('0x60')]({'model':_0x5e20('0x7c')});}[_0x5e20('0xf7')](_0x3c6c8a){return(_0x3c6c8a=_0x3c6c8a[_0x5e20('0x5e')](_0x2cea56=>!_0x2cea56[_0x5e20('0xcf')]||_0x5e20('0xd8')!==_0x2cea56[_0x5e20('0xcf')]&&_0x5e20('0xe6')!==_0x2cea56[_0x5e20('0xcf')]))[_0x5e20('0x2f')](_0x3f4b33=>{'string'!=typeof _0x3f4b33&&(_0x3f4b33[_0x5e20('0xa6')]=this[_0x5e20('0xf7')](_0x3f4b33[_0x5e20('0xa6')]),_0x3f4b33[_0x5e20('0xfe')]=_0x3f4b33[_0x5e20('0xfe')]['filter'](_0x4ceb7d=>!_0x4ceb7d[0x0][_0x5e20('0x41')](_0x5e20('0xfb'))));}),_0x3c6c8a;}}function J(_0x38f30e,_0x1ec764){const _0x49f818=_0x1ec764['editing'][_0x5e20('0x53')]['document'];if('string'==typeof _0x38f30e)return new _0x505f06(_0x49f818,_0x38f30e);{const _0x55b7cf=_0x38f30e[_0x5e20('0xa6')][_0x5e20('0xf')](_0x5dc890=>J(_0x5dc890,_0x1ec764));return new(B[_0x38f30e[(_0x5e20('0x9'))]]||_0x8fa111)(_0x49f818,_0x38f30e[_0x5e20('0xcf')],_0x38f30e[_0x5e20('0xfe')],_0x55b7cf);}}class H{constructor(_0x3bfaa7){this[_0x5e20('0xbe')]=_0x3bfaa7,this[_0x5e20('0xb0')]=new Map(),this[_0x5e20('0xad')]=-0x1,this[_0x5e20('0x44')]=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x5e20('0x89')]=new Map(),this[_0x5e20('0xf0')]=new Map(),this[_0x5e20('0xf1')]=new Map(),this[_0x5e20('0xf2')]=new Map(),this[_0x5e20('0x10a')]=new Map(),this[_0x5e20('0xd2')]=new Map(),this[_0x5e20('0x24')]=new Map(),this[_0x5e20('0x55')]=0x1;}[_0x5e20('0x92')](_0x42f119){this[_0x5e20('0x80')]=_0x42f119;const _0x4a4cad=new Map(),_0x26e4fb=new Map(),_0x22e4ef=this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0xde')]['roots'][_0x5e20('0xf')](_0x1d0bc2=>_0x1d0bc2[_0x5e20('0xe8')]);for(const _0x28f8a1 of _0x22e4ef){const _0x239911=this['editor'][_0x5e20('0x87')][_0x5e20('0xde')][_0x5e20('0x71')](_0x28f8a1),_0x93c641=q(_0x239911);_0x4a4cad['set'](_0x28f8a1,_0x93c641),_0x26e4fb['set'](_0x28f8a1,Object[_0x5e20('0x29')](_0x239911['getAttributes']()));}const _0x45b634=Array[_0x5e20('0x106')](this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0x52')])[_0x5e20('0xf')](_0xb58bb3=>[_0xb58bb3[_0x5e20('0xcf')],_0xb58bb3[_0x5e20('0x6c')]()]),_0x4093b4=this['source'][_0x5e20('0x6')];this[_0x5e20('0xc5')](_0x4093b4,_0x4a4cad,_0x45b634,_0x26e4fb),this['_startingRevisionId']=this[_0x5e20('0x55')];const _0x16eb4f=new Map(),_0x14c0da=new Map();for(const _0x278c31 of _0x22e4ef){const _0x5034f2=G(_0x278c31);_0x16eb4f[_0x5e20('0xd6')](_0x278c31,_0x5034f2),_0x14c0da['set'](_0x278c31,{});}this['_saveMetaData'](Number[_0x5e20('0x4a')],_0x16eb4f,[],_0x14c0da);}['getData'](_0x420ccf,_0x552256){if(this[_0x5e20('0xad')]===_0x420ccf&&this[_0x5e20('0x44')]<=_0x552256)this['_savedMetaData']['size']>0x1&&this[_0x5e20('0x70')](this[_0x5e20('0x44')]),this[_0x5e20('0xbc')](this['_lastTo'],_0x552256,!0x0);else{if(!this[_0x5e20('0xb0')][_0x5e20('0xb7')](_0x420ccf)){const _0x591222=this[_0x5e20('0x22')](_0x420ccf);this[_0x5e20('0xdf')](_0x591222,_0x420ccf,!0x1);}this[_0x5e20('0xdf')](_0x420ccf,_0x552256,!0x0);}return this[_0x5e20('0xad')]=_0x420ccf,this[_0x5e20('0x44')]=_0x552256,this[_0x5e20('0x79')]();}[_0x5e20('0xaa')](_0x326497){this['_reset'](),this['_lastFrom']=_0x326497[_0x5e20('0xb4')],this[_0x5e20('0x44')]=_0x326497['toVersion'];for(const _0x4214d0 in _0x326497[_0x5e20('0x8d')]){const _0x2bd31c=_0x326497[_0x5e20('0x8d')][_0x4214d0][_0x5e20('0x3')],_0x266750=_0x3c23d6(_0x326497[_0x5e20('0x8d')][_0x4214d0]['attributesBefore'])||{},_0x21ce1d=this[_0x5e20('0xfa')](_0x326497[_0x5e20('0x8d')][_0x4214d0][_0x5e20('0xe1')]);_0x21ce1d[_0x5e20('0xe8')]=_0x4214d0,_0x21ce1d[_0x5e20('0xec')]=!_0x2bd31c||!_0x2bd31c[_0x5e20('0xb5')],_0x21ce1d[_0x5e20('0xb5')]=()=>_0x21ce1d[_0x5e20('0xec')],this[_0x5e20('0x89')]['set'](_0x4214d0,_0x21ce1d),this['_baseRootsAttributes'][_0x5e20('0xd6')](_0x4214d0,_0x266750),_0x2bd31c&&this['_touchedRoots']['set'](_0x4214d0,_0x2bd31c);const _0x77e495=this['_makeIdsRoot'](_0x21ce1d);this[_0x5e20('0xf2')]['set'](_0x4214d0,_0x77e495);for(const [_0xf51d37,_0x275bdb]of _0x21ce1d[_0x5e20('0x52')]){if(!_0xf51d37['startsWith'](_0x5e20('0x30')))continue;const _0x18b728=_0xf51d37[_0x5e20('0x13')](':')[0x2];for(const _0x45fa39 of _0x275bdb[_0x5e20('0xb9')]({'singleCharacters':!0x0})){const _0x2e1215=this[_0x5e20('0xd5')](_0x45fa39),_0x32eb47=_0x5e20('0xf9')==_0x45fa39['type']?_0x45fa39[_0x5e20('0x3b')][_0x5e20('0x84')][_0x5e20('0x8a')](0x0,-0x1):_0x45fa39[_0x5e20('0x3b')][_0x5e20('0x84')],_0x30df38=_0x77e495[_0x5e20('0xa')](_0x32eb47)['getAttribute'](_0x2e1215);this[_0x5e20('0x10a')]['set'](_0x30df38,{'userId':_0x18b728});}}}this['_startingRevisionId']=this[_0x5e20('0x55')];const _0x53a4b9=[...Array(this[_0x5e20('0x55')])[_0x5e20('0x15')]()]['slice'](0x1)[_0x5e20('0x5e')](_0x27cd8c=>!this[_0x5e20('0x10a')][_0x5e20('0xb7')](_0x27cd8c));let _0x2c9d4d=0x0;const _0x54be54=new Map();for(const _0x3d069a in _0x326497[_0x5e20('0x8d')]){const _0x49a685=_0x326497[_0x5e20('0x8d')][_0x3d069a][_0x5e20('0x3')],_0x2475e6=_0x3c23d6(_0x326497[_0x5e20('0x8d')][_0x3d069a][_0x5e20('0x8c')])||{},_0x3a88df=this[_0x5e20('0xfa')](_0x326497[_0x5e20('0x8d')][_0x3d069a]['insertions']);_0x3a88df['rootName']=_0x3d069a,_0x3a88df[_0x5e20('0xec')]=!_0x49a685||_0x49a685['isAttached'],_0x3a88df[_0x5e20('0xb5')]=()=>_0x3a88df[_0x5e20('0xec')],this[_0x5e20('0x8f')][_0x5e20('0xd6')](_0x3d069a,_0x3a88df),this[_0x5e20('0x6b')][_0x5e20('0xd6')](_0x3d069a,_0x2475e6);const _0x333261=this[_0x5e20('0xb1')](_0x3a88df,Number[_0x5e20('0x4a')]);this['_idsRoots'][_0x5e20('0xd6')](_0x3d069a,_0x333261),_0x54be54[_0x5e20('0xd6')](_0x3d069a,_0x3a88df[_0x5e20('0xb5')]()?_0x2475e6:{});for(const [_0x17aa5c,_0x361bd3]of _0x3a88df['markers']){if(!_0x17aa5c[_0x5e20('0x41')]('revision:'))continue;const _0x322cbc=_0x17aa5c[_0x5e20('0x13')](':')[0x2];for(const _0x369a38 of _0x361bd3[_0x5e20('0xb9')]({'singleCharacters':!0x0})){const _0x80e10f=this['_getVidAttributeName'](_0x369a38),_0x3b696a=this[_0x5e20('0x55')]++,_0x1e1f94=_0x5e20('0xf9')==_0x369a38['type']?_0x369a38[_0x5e20('0x3b')][_0x5e20('0x84')][_0x5e20('0x8a')](0x0,-0x1):_0x369a38['previousPosition'][_0x5e20('0x84')];_0x333261[_0x5e20('0xa')](_0x1e1f94)['_setAttribute'](_0x80e10f,_0x3b696a),this[_0x5e20('0x10a')][_0x5e20('0xd6')](_0x3b696a,{'userId':_0x322cbc});}}for(const _0x2b9453 of this['editor'][_0x5e20('0x87')][_0x5e20('0xf5')](_0x3a88df)[_0x5e20('0xb9')]({'singleCharacters':!0x0})){const _0xdc06c5=this[_0x5e20('0xd5')](_0x2b9453),_0x493f50=_0x5e20('0xf9')==_0x2b9453[_0x5e20('0x9')]?_0x2b9453['previousPosition']['path']['slice'](0x0,-0x1):_0x2b9453[_0x5e20('0x3b')]['path'],_0x286e35=_0x333261[_0x5e20('0xa')](_0x493f50);_0x286e35[_0x5e20('0x90')](_0xdc06c5)>0x0||_0x286e35['_setAttribute'](_0xdc06c5,_0x53a4b9[_0x2c9d4d++]);}for(const [_0x4b4cd2,_0x19a9fc]of _0x3a88df[_0x5e20('0x52')])_0x4b4cd2[_0x5e20('0x41')]('revision:')||this[_0x5e20('0xc0')][_0x5e20('0xd6')](_0x4b4cd2,_0x19a9fc);}const _0x3a3175=G(_0x5e20('0x9f'));this[_0x5e20('0x89')][_0x5e20('0xd6')]('$graveyard',_0x3a3175),this[_0x5e20('0xf2')][_0x5e20('0xd6')](_0x5e20('0x9f'),this['_makeIdsRoot'](_0x3a3175,0x1));const _0x104b4f=G('$graveyard');this[_0x5e20('0x8f')][_0x5e20('0xd6')](_0x5e20('0x9f'),_0x104b4f),this['_idsRoots'][_0x5e20('0xd6')](_0x5e20('0x9f'),this[_0x5e20('0xb1')](_0x104b4f,0x1));const _0x4a064a=Array[_0x5e20('0x106')](this['_diffRoots'])[_0x5e20('0xf')](([_0x569bdb,_0x4c9fc7])=>[_0x569bdb,q(_0x4c9fc7)]);this[_0x5e20('0xc5')](this['_lastTo'],_0x4a064a,this[_0x5e20('0xc0')],_0x54be54);}[_0x5e20('0xfa')](_0x22fc6a){const _0x3143f6=JSON[_0x5e20('0x2d')](_0x22fc6a),_0x49dc4b=this['editor']['editing'][_0x5e20('0x53')]['document'],_0x16f088=new _0x5185bc(_0x49dc4b,_0x3143f6[_0x5e20('0xf')](_0x446df8=>J(_0x446df8,this[_0x5e20('0xbe')])));return this['editor'][_0x5e20('0x49')]['toModel'](_0x16f088);}[_0x5e20('0xc5')](_0xb801e6,_0x4cbe03,_0x42c810,_0x4b03f4){const _0x539aa6=new Map(_0x4cbe03),_0x266bb2=new Map(_0x3c23d6(_0x4b03f4)),_0x5b3350=new Map();for(const [_0x2af8d1,_0x304596]of _0x42c810)_0x5b3350[_0x5e20('0xd6')](_0x2af8d1,{'start':_0x304596[_0x5e20('0xdb')][_0x5e20('0x5f')](),'end':_0x304596[_0x5e20('0xa5')][_0x5e20('0x5f')](),'rootName':_0x304596['root']['rootName']});this[_0x5e20('0xb0')][_0x5e20('0xd6')](_0xb801e6,{'roots':_0x539aa6,'markers':_0x5b3350,'rootsAttributes':_0x266bb2});}['_removeMetaData'](_0x4ab34b){this[_0x5e20('0xb0')][_0x5e20('0x2c')](_0x4ab34b);}[_0x5e20('0xce')](){this[_0x5e20('0x6a')](),this['_lastFrom']=-0x1,this[_0x5e20('0x44')]=-0x1,this[_0x5e20('0xb0')][_0x5e20('0x1d')](),this[_0x5e20('0x92')](this[_0x5e20('0x80')]);}[_0x5e20('0x6a')](){this[_0x5e20('0x10a')][_0x5e20('0x1d')](),this[_0x5e20('0xd2')][_0x5e20('0x1d')](),this[_0x5e20('0x24')]['clear'](),this[_0x5e20('0x8f')]['clear'](),this['_diffRootsAttributes'][_0x5e20('0x1d')](),this[_0x5e20('0x89')][_0x5e20('0x1d')](),this[_0x5e20('0xf0')][_0x5e20('0x1d')](),this[_0x5e20('0xf1')][_0x5e20('0x1d')](),this[_0x5e20('0xf2')][_0x5e20('0x1d')](),this[_0x5e20('0xc0')][_0x5e20('0x1d')](),this[_0x5e20('0x55')]=0x1,this[_0x5e20('0x6e')]=this['_revisionId'];}[_0x5e20('0xb1')](_0x356d3d,_0x207351=null){let _0x3678f0=null;_0x356d3d['is'](_0x5e20('0xb6'))||(_0x3678f0=new _0x1232af(_0x356d3d[_0x5e20('0xcf')],{'vid_start':null===_0x207351?this[_0x5e20('0x55')]++:_0x207351++}));const _0xe8e7da=[];for(const _0xd4c3e2 of _0x356d3d[_0x5e20('0xea')]())if(_0xd4c3e2['is'](_0x5e20('0x40'))){_0xe8e7da['push'](this['_makeIdsRoot'](_0xd4c3e2,_0x207351));const _0x239733=_0xe8e7da[_0xe8e7da[_0x5e20('0xe0')]-0x1];null!==_0x207351&&(_0x207351=_0x239733['is'](_0x5e20('0x40'),'$text')?_0x239733[_0x5e20('0x90')](_0x5e20('0x83'))+0x1:_0x239733[_0x5e20('0x90')](_0x5e20('0x91'))+0x1);}else for(let _0x46dd9b=0x0;_0x46dd9b<_0xd4c3e2['offsetSize'];_0x46dd9b++)_0xe8e7da[_0x5e20('0x1c')](new _0x1232af(_0x5e20('0xe2'),{'vid':null===_0x207351?this['_revisionId']++:_0x207351++}));if(_0x356d3d['is'](_0x5e20('0xb6'))){const _0x43470e=G(_0x356d3d[_0x5e20('0xe8')]);return _0x43470e['_insertChild'](0x0,_0xe8e7da),_0x43470e;}return _0x3678f0[_0x5e20('0xdd')]('vid_end',null===_0x207351?this['_revisionId']++:_0x207351++),_0x3678f0[_0x5e20('0xa4')](0x0,_0xe8e7da),_0x3678f0;}[_0x5e20('0xdf')](_0x17e942,_0x1f9e66,_0x3bb6cc){this[_0x5e20('0x6a')]();const {roots:_0x4289f5,markers:_0xed5fa,rootsAttributes:_0x46028f}=this['_savedMetaData'][_0x5e20('0x59')](_0x17e942);this[_0x5e20('0x89')]=new Map(_0x4289f5),this['_baseRootsAttributes']=new Map(_0x3c23d6(_0x46028f));for(const [_0xee0754,_0x30a977]of this[_0x5e20('0x89')])if(_0x5e20('0x9f')!==_0xee0754&&(this[_0x5e20('0x8f')][_0x5e20('0xd6')](_0xee0754,q(_0x30a977)),this['_diffRootsAttributes']=new Map(_0x3c23d6(_0x46028f)),_0x3bb6cc)){const _0x53b932=this[_0x5e20('0x55')];this[_0x5e20('0xf1')][_0x5e20('0xd6')](_0xee0754,this[_0x5e20('0xb1')](_0x30a977)),this['_baseIdsRoots'][_0x5e20('0xd6')](_0xee0754,this[_0x5e20('0xb1')](_0x30a977,_0x53b932));}this[_0x5e20('0x6e')]=this[_0x5e20('0x55')],this[_0x5e20('0x8f')][_0x5e20('0xd6')](_0x5e20('0x9f'),q(this['_baseRoots']['get'](_0x5e20('0x9f')))),_0x3bb6cc&&this[_0x5e20('0xf1')][_0x5e20('0xd6')]('$graveyard',this[_0x5e20('0xb1')](this[_0x5e20('0x89')][_0x5e20('0x59')]('$graveyard')));for(const [_0x524411,_0x342c05]of _0xed5fa){const _0x549124=this[_0x5e20('0x89')][_0x5e20('0x59')](_0x342c05[_0x5e20('0xe8')]),_0x2389bb=this[_0x5e20('0x8f')][_0x5e20('0x59')](_0x342c05[_0x5e20('0xe8')]),_0x42846a=new _0x472eca(this[_0x5e20('0x51')](_0x342c05[_0x5e20('0xdb')],_0x549124),this[_0x5e20('0x51')](_0x342c05[_0x5e20('0xa5')],_0x549124)),_0x5e6973=this[_0x5e20('0x31')](_0x42846a,_0x2389bb);_0x549124['markers'][_0x5e20('0xd6')](_0x524411,_0x42846a),this[_0x5e20('0xc0')]['set'](_0x524411,_0x5e6973);}this[_0x5e20('0xbc')](_0x17e942,_0x1f9e66,_0x3bb6cc);}[_0x5e20('0xbc')](_0x44c7cc,_0x15e740,_0x18fd8e){for(const _0x38f833 of this[_0x5e20('0x80')][_0x5e20('0x105')](_0x44c7cc,_0x15e740))this[_0x5e20('0x4d')](_0x38f833,_0x18fd8e);for(const _0x23b5be of this[_0x5e20('0x8f')][_0x5e20('0x7d')]())_0x23b5be[_0x5e20('0x52')]['clear']();for(const [_0x113b52,_0x29b4e3]of this[_0x5e20('0xc0')]){this[_0x5e20('0x8f')][_0x5e20('0x59')](_0x29b4e3['root'][_0x5e20('0xe8')])[_0x5e20('0x52')][_0x5e20('0xd6')](_0x113b52,_0x29b4e3[_0x5e20('0x5f')]());}const _0x1fce10=new Map(),_0x4cfe29=new Map();for(const [_0x3ad339,_0x4da7bf]of this[_0x5e20('0x8f')])_0x1fce10[_0x5e20('0xd6')](_0x3ad339,q(_0x4da7bf)),_0x4cfe29[_0x5e20('0xd6')](_0x3ad339,this[_0x5e20('0x6b')]['get'](_0x3ad339));this[_0x5e20('0xc5')](_0x15e740,_0x1fce10,this[_0x5e20('0xc0')],_0x4cfe29);}[_0x5e20('0x22')](_0x2b6db8){const _0xec70a0=Array[_0x5e20('0x106')](this[_0x5e20('0xb0')][_0x5e20('0x15')]());_0xec70a0[_0x5e20('0x10d')]((_0x1aec18,_0x158466)=>_0x1aec18-_0x158466),_0xec70a0[_0x5e20('0xdc')]();for(const _0x59ff95 of _0xec70a0)if(_0x59ff95<_0x2b6db8)return _0x59ff95;return Number['NEGATIVE_INFINITY'];}[_0x5e20('0x10b')](_0x1df6c1,_0x22c43d){const _0x52bb1e=Array['from'](_0x22c43d['markers'])[_0x5e20('0xf')](([_0x27836d,_0x20369c])=>[_0x27836d,this[_0x5e20('0x31')](_0x20369c,_0x1df6c1)]);_0x1df6c1[_0x5e20('0x52')]=new Map(_0x52bb1e);}[_0x5e20('0x74')](_0x32201e){for(const _0xcfb3b9 of this['_markers']['values']()){const _0x2e6d95=_0xcfb3b9['getTransformedByOperation'](_0x32201e),_0x3618de=_0x472eca[_0x5e20('0xd')](_0x2e6d95);_0xcfb3b9[_0x5e20('0xdb')]=_0x3618de[_0x5e20('0xdb')],_0xcfb3b9[_0x5e20('0xa5')]=_0x3618de[_0x5e20('0xa5')];}}[_0x5e20('0x4d')](_0x25b6f7,_0x1ac249){if(_0x5e20('0x0')==_0x25b6f7[_0x5e20('0x9')]||'detachRoot'==_0x25b6f7[_0x5e20('0x9')])return void this[_0x5e20('0x1')](_0x25b6f7,_0x1ac249);if(_0x5e20('0x1b')==_0x25b6f7[_0x5e20('0x9')]){const _0x8440c0=_0x25b6f7[_0x5e20('0x1f')][_0x5e20('0x27')]['rootName'];this[_0x5e20('0x8f')][_0x5e20('0xb7')](_0x8440c0)||(this[_0x5e20('0x8f')][_0x5e20('0xd6')](_0x8440c0,G(_0x8440c0,!0x0)),this[_0x5e20('0x6b')][_0x5e20('0xd6')](_0x8440c0,{}),_0x1ac249&&this[_0x5e20('0xf1')]['set'](_0x8440c0,G(_0x8440c0,!0x0)));}else{if('addRootAttribute'==_0x25b6f7[_0x5e20('0x9')]||_0x5e20('0x94')==_0x25b6f7[_0x5e20('0x9')]||'changeRootAttribute'==_0x25b6f7['type'])return void this['_handleRootAttributeOperation'](_0x25b6f7);}const _0x443a22=this[_0x5e20('0x100')](_0x25b6f7,this[_0x5e20('0x8f')]);if(_0x5e20('0x81')!==_0x25b6f7[_0x5e20('0x9')]&&(_0x443a22[_0x5e20('0x23')](),this[_0x5e20('0x74')](_0x443a22)),_0x1ac249)switch(_0x443a22['type']){case'insert':this['_handleInsertOperation'](_0x25b6f7);break;case _0x5e20('0x3a'):case'remove':case _0x5e20('0xc7'):this[_0x5e20('0xcb')](_0x25b6f7);break;case _0x5e20('0x9d'):this[_0x5e20('0x99')](_0x25b6f7);break;case _0x5e20('0x13'):this[_0x5e20('0x20')](_0x25b6f7);break;case _0x5e20('0x81'):this[_0x5e20('0xd3')](_0x25b6f7);}}[_0x5e20('0x100')](_0x60f297,_0x76d528){const _0xe94266=_0x60f297[_0x5e20('0x5f')]();return _0xe94266[_0x5e20('0xe')]=_0x60f297[_0x5e20('0xe')],this['_fixOperation'](_0xe94266,_0x76d528),_0xe94266;}[_0x5e20('0xda')](_0x11ea6c){return _0x11ea6c[_0x5e20('0xf')](_0x19812d=>{const _0x43460f=this[_0x5e20('0xd5')](_0x19812d);return Number(_0x19812d[_0x5e20('0x93')][_0x5e20('0x90')](_0x43460f));});}['_generateTape'](_0x5f1842,_0x36f833){if(_0x5f1842['is'](_0x5e20('0x40'),_0x5e20('0xe2')))_0x36f833[_0x5e20('0x1c')]({'item':_0x5f1842,'type':_0x5e20('0x58')});else{_0x5f1842['is'](_0x5e20('0x40'))&&_0x36f833[_0x5e20('0x1c')]({'item':_0x5f1842,'type':_0x5e20('0x3e')});for(const _0x172c40 of _0x5f1842[_0x5e20('0xea')]())this[_0x5e20('0xd9')](_0x172c40,_0x36f833);_0x5f1842['is'](_0x5e20('0x40'))&&_0x36f833[_0x5e20('0x1c')]({'item':_0x5f1842,'type':_0x5e20('0xf9')});}return _0x36f833;}[_0x5e20('0x79')](){const _0x2b00b4=new Map(this[_0x5e20('0x10a')]),_0x3c0c28=new Map(_0x2b00b4),_0x43d4d4=new Map(),_0x4a9138={'insertions':{},'deletions':{}},_0x15570c={'insertions':{},'deletions':{}},_0x215d08=new Map(),_0xd69901=new Set([...this[_0x5e20('0x89')][_0x5e20('0x15')](),...this[_0x5e20('0x8f')][_0x5e20('0x15')]()]);_0xd69901[_0x5e20('0x2c')](_0x5e20('0x9f'));for(const _0x4a6d66 of _0xd69901){const _0x6b33ac=this[_0x5e20('0x8f')]['get'](_0x4a6d66)||G(_0x4a6d66,!0x1),_0x385d4c=this[_0x5e20('0x89')]['get'](_0x4a6d66)||G(_0x4a6d66,!0x1);_0x6b33ac[_0x5e20('0xb5')]()||_0x385d4c['isAttached']()?(_0x4a9138['insertions'][_0x4a6d66]=q(_0x6b33ac),_0x4a9138[_0x5e20('0xe1')][_0x4a6d66]=q(_0x385d4c),this[_0x5e20('0x10b')](_0x4a9138[_0x5e20('0xe1')][_0x4a6d66],_0x385d4c),this[_0x5e20('0x10b')](_0x4a9138[_0x5e20('0xd7')][_0x4a6d66],_0x6b33ac),_0x15570c[_0x5e20('0xd7')][_0x4a6d66]=this[_0x5e20('0xd9')](this[_0x5e20('0xf1')][_0x5e20('0x59')](_0x4a6d66),[]),_0x15570c[_0x5e20('0xe1')][_0x4a6d66]=this[_0x5e20('0xd9')](this['_baseIdsRoots'][_0x5e20('0x59')](_0x4a6d66)||G(_0x4a6d66,!0x1),[])):_0xd69901[_0x5e20('0x2c')](_0x4a6d66);}for(const _0xc893e0 of _0xd69901){const _0x155413=_0x15570c[_0x5e20('0xd7')][_0xc893e0];for(const _0x208871 of _0x155413){const _0x3e9e41=this['_getVidAttributeName'](_0x208871),_0x311ad9=_0x208871[_0x5e20('0x93')][_0x5e20('0x90')](_0x3e9e41);_0x3c0c28[_0x5e20('0x2c')](_0x311ad9),_0x311ad9>=this[_0x5e20('0x6e')]&&_0x43d4d4[_0x5e20('0xd6')](_0x311ad9,_0x2b00b4[_0x5e20('0x59')](_0x311ad9));}}for(const _0x5ee3ba of _0xd69901){const _0x38f522=_0x15570c[_0x5e20('0xd7')][_0x5ee3ba],_0x30b8c0=this[_0x5e20('0xda')](_0x15570c[_0x5e20('0xe1')][_0x5ee3ba]);let _0x3ccfbe=0x0;for(const _0x22d741 of _0x38f522){const _0x40555c=this[_0x5e20('0xd5')](_0x22d741),_0x274a9b=_0x22d741[_0x5e20('0x93')][_0x5e20('0x90')](_0x40555c);if(!_0x43d4d4[_0x5e20('0xb7')](_0x274a9b)&&!_0x215d08[_0x5e20('0xb7')](_0x274a9b)){if(_0x3c0c28[_0x5e20('0xb7')](_0x274a9b))_0x3ccfbe++;else{if(_0x274a9b!=_0x30b8c0[_0x3ccfbe]){const _0xc3df59=_0x2b00b4[_0x5e20('0x59')](_0x274a9b)||_0x2b00b4[_0x5e20('0x59')](_0x30b8c0[_0x3ccfbe]);for(;_0x274a9b!=_0x30b8c0[_0x3ccfbe];)_0x3c0c28[_0x5e20('0xb7')](_0x30b8c0[_0x3ccfbe])||(_0x215d08['set'](_0x30b8c0[_0x3ccfbe],_0xc3df59),_0x2b00b4[_0x5e20('0xd6')](_0x30b8c0[_0x3ccfbe],_0xc3df59)),_0x3ccfbe++;}_0x3ccfbe++;}}}}for(const _0x5ac0de of _0xd69901){const _0x803a06=_0x15570c[_0x5e20('0xd7')][_0x5ac0de];for(const _0x481056 of _0x803a06){const _0x5d2c94=this['_getVidAttributeName'](_0x481056),_0x205506=_0x481056[_0x5e20('0x93')]['getAttribute'](_0x5d2c94);if(_0x215d08[_0x5e20('0xb7')](_0x205506)){const _0x250e28=_0x215d08[_0x5e20('0x59')](_0x205506);_0x3c0c28[_0x5e20('0xb7')](_0x205506)||_0x3c0c28[_0x5e20('0xd6')](_0x205506,{..._0x250e28}),_0x43d4d4[_0x5e20('0xd6')](_0x205506,{..._0x250e28});}}}for(const _0x9deb4c of _0x3c0c28['keys']())_0x9deb4c>=this['_startingRevisionId']&&_0x3c0c28['delete'](_0x9deb4c);const _0x511620=new Map();for(const _0x36a726 of _0xd69901){let _0x292def=_0x15570c['insertions'][_0x36a726];for(const _0x21c058 of _0x292def)if(_0x21c058[_0x5e20('0x93')]['is'](_0x5e20('0x40'),_0x5e20('0x8'))){const _0x42136a=this['_getVidAttributeName'](_0x21c058),_0x472bde=_0x21c058[_0x5e20('0x93')][_0x5e20('0x90')](_0x42136a);if(_0x43d4d4[_0x5e20('0xb7')](_0x472bde)){const _0x104123=_0x21c058['item'][_0x5e20('0x82')]['parent']['getAttribute'](_0x5e20('0x66')),_0x1c848c=_0x511620['get'](_0x104123)||new Set();_0x1c848c['add'](_0x43d4d4[_0x5e20('0x59')](_0x472bde)['userId']),_0x511620[_0x5e20('0xd6')](_0x104123,_0x1c848c);}}_0x292def=_0x15570c[_0x5e20('0xe1')][_0x36a726];for(const _0x2f26da of _0x292def)if(_0x2f26da[_0x5e20('0x93')]['is']('element',_0x5e20('0x8'))){const _0x114fbe=this[_0x5e20('0xd5')](_0x2f26da),_0x4df7e1=_0x2f26da[_0x5e20('0x93')]['getAttribute'](_0x114fbe);if(_0x3c0c28[_0x5e20('0xb7')](_0x4df7e1)){const _0x5ad43f=_0x2f26da[_0x5e20('0x93')]['parent']['parent'][_0x5e20('0x90')](_0x5e20('0x66')),_0x1bd39d=_0x511620[_0x5e20('0x59')](_0x5ad43f)||new Set();_0x1bd39d[_0x5e20('0x104')](_0x3c0c28['get'](_0x4df7e1)[_0x5e20('0x36')]),_0x511620[_0x5e20('0xd6')](_0x5ad43f,_0x1bd39d);}}for(const _0x500d93 of _0x511620[_0x5e20('0x15')]())(_0x43d4d4[_0x5e20('0xb7')](_0x500d93)||_0x3c0c28[_0x5e20('0xb7')](_0x500d93))&&_0x511620[_0x5e20('0x2c')](_0x500d93);}for(const _0x1913ad of _0xd69901){const _0x4b72a0=_0x15570c[_0x5e20('0xd7')][_0x1913ad];let _0x438819=null,_0x53b4d4=null;for(const _0xee7314 of _0x4b72a0){const _0x1b8391=this['_getVidAttributeName'](_0xee7314),_0x5d64c9=_0xee7314['item']['getAttribute'](_0x1b8391),_0x3d361b=_0x511620['get'](_0x5d64c9);_0x3d361b&&'elementStart'==_0xee7314['type']&&(_0x438819=Array['from'](_0x3d361b)[0x0],_0x53b4d4=_0xee7314[_0x5e20('0x93')][_0x5e20('0x90')]('vid_end')),_0x438819&&(_0x3c0c28['set'](_0x5d64c9,{'userId':_0x438819}),_0x43d4d4[_0x5e20('0xd6')](_0x5d64c9,{'userId':_0x438819})),_0x5d64c9==_0x53b4d4&&(_0x438819=null,_0x53b4d4=null);}}const _0x290f50={},_0x255ec6=new Set();for(const _0x50d0f0 of _0xd69901){const _0xadfce1=_0x4a9138[_0x5e20('0xe1')][_0x50d0f0],_0x4705f8=_0x4a9138[_0x5e20('0xd7')][_0x50d0f0];for(const {userId:_0x2329f3}of this[_0x5e20('0xd2')][_0x5e20('0x7d')]())null!==_0x2329f3&&_0x255ec6[_0x5e20('0x104')](_0x2329f3);for(const {userId:_0x12a288}of this['_touchedRoots'][_0x5e20('0x7d')]())null!==_0x12a288&&_0x255ec6[_0x5e20('0x104')](_0x12a288);this[_0x5e20('0x64')](_0x4705f8,_0x15570c[_0x5e20('0xd7')][_0x50d0f0],_0x43d4d4,_0x5e20('0x9c'),_0x255ec6),this[_0x5e20('0x64')](_0xadfce1,_0x15570c[_0x5e20('0xe1')][_0x50d0f0],_0x3c0c28,_0x5e20('0x108'),_0x255ec6),_0x290f50[_0x50d0f0]={'insertions':this[_0x5e20('0xc8')](_0x4705f8),'deletions':this[_0x5e20('0xc8')](_0xadfce1),'attachChange':this[_0x5e20('0x24')]['get'](_0x50d0f0)||null,'attributesBefore':_0x3c23d6(this['_baseRootsAttributes'][_0x5e20('0x59')](_0x50d0f0))||{},'attributesAfter':_0x3c23d6(this[_0x5e20('0x6b')][_0x5e20('0x59')](_0x50d0f0))};}return{'diffData':_0x290f50,'authorsIds':Array[_0x5e20('0x106')](_0x255ec6)};}['_processRootBeforeSave'](_0x5e636a){for(const [,_0x887c5b]of _0x5e636a[_0x5e20('0x52')]){const _0x38072b=_0x887c5b[_0x5e20('0xdb')]['getAncestors']()[_0x5e20('0x5e')](_0x337341=>_0x5e20('0x8')==_0x337341['name']);for(const _0x538ea2 of _0x38072b)0x1==_0x538ea2[_0x5e20('0xba')]&&_0x538ea2['getChild'](0x0)['is'](_0x5e20('0x40'),_0x5e20('0xc3'))&&_0x538ea2[_0x5e20('0x11')](0x0)[_0x5e20('0xdd')](_0x5e20('0x102'),!0x0);}}[_0x5e20('0xc8')](_0x5a13a8){this[_0x5e20('0xc9')](_0x5a13a8);const _0x480a80=this['editor'][_0x5e20('0x49')][_0x5e20('0x14')](_0x5a13a8,{}),_0x384259=Array['from'](_0x480a80[_0x5e20('0xea')]())['map'](_0x338dfe=>this[_0x5e20('0xa7')](_0x338dfe));return JSON[_0x5e20('0x3c')](_0x384259);}[_0x5e20('0xa7')](_0x5f378a){if(_0x5f378a['is']('$text'))return _0x5f378a['data'];{const _0x111b0b=_0x5f378a;return{'type':Object['keys'](B)[_0x5e20('0xc2')](_0x5cfce9=>_0x5f378a instanceof B[_0x5cfce9]),'name':_0x111b0b[_0x5e20('0xcf')],'attributes':Array['from'](_0x111b0b[_0x5e20('0x2')]()),'children':Array[_0x5e20('0x106')](_0x111b0b['getChildren']())['map'](_0x279e83=>this[_0x5e20('0xa7')](_0x279e83))};}}[_0x5e20('0x64')](_0x31b326,_0xb5574d,_0x2e415e,_0x2d65c3,_0x41b050){let _0x19e09d=null,_0x3e597b=null,_0x2751c1=0x0;const _0x4f76d6=this['editor'][_0x5e20('0x87')];for(let _0x2d1e10=0x0;_0x2d1e10<_0xb5574d[_0x5e20('0xe0')];_0x2d1e10++){const _0x348a11=this['_getVidAttributeName'](_0xb5574d[_0x2d1e10]),_0x52cc54=_0xb5574d[_0x2d1e10][_0x5e20('0x93')][_0x5e20('0x90')](_0x348a11),_0x3ecfb5=_0x2e415e['get'](_0x52cc54),_0x29ac9d=_0x2d1e10==_0xb5574d[_0x5e20('0xe0')]-0x1;(!_0x19e09d&&_0x3ecfb5&&(_0x19e09d=_0x3ecfb5,_0x3e597b=_0xb5574d[_0x2d1e10]),_0x19e09d&&(!_0x3ecfb5||_0x3ecfb5[_0x5e20('0x36')]!=_0x19e09d[_0x5e20('0x36')]))&&(_0x9303a2(_0x3ecfb5,L(_0x3e597b,_0x31b326,_0x4f76d6),L(_0xb5574d[_0x2d1e10],_0x31b326,_0x4f76d6)),_0x19e09d=_0x3ecfb5||null,_0x3e597b=_0x3ecfb5?_0xb5574d[_0x2d1e10]:null),_0x19e09d&&_0x29ac9d&&_0x9303a2(_0x3ecfb5,L(_0x3e597b,_0x31b326,_0x4f76d6),W(_0xb5574d[_0x2d1e10],_0x31b326,_0x4f76d6));}function _0x9303a2(_0x45a6a7,_0x4d41f2,_0xdde57f){const _0x2bd60c=_0x19e09d['userId'],_0x3bd81e='revision:'+_0x2d65c3+':'+_0x2bd60c+':'+_0x2751c1++,_0x23ef9f=_0x4f76d6[_0x5e20('0x28')](_0x4d41f2,_0xdde57f);_0x31b326['markers'][_0x5e20('0xd6')](_0x3bd81e,_0x23ef9f),null!==_0x2bd60c&&_0x41b050[_0x5e20('0x104')](_0x2bd60c);}}['_getVidAttributeName'](_0x268d24){switch(_0x268d24['type']){case'elementStart':return _0x5e20('0x66');case _0x5e20('0xf9'):return'vid_end';default:return _0x5e20('0x83');}}[_0x5e20('0x4f')](_0x2d3238,_0x3c49d7){_0x2d3238[_0x5e20('0x21')]=null;for(const _0x400387 in _0x2d3238){const _0x1cae1a=_0x2d3238[_0x400387];if(_0x1cae1a instanceof _0x3af9e3){const _0x34c0ef=_0x3c49d7[_0x5e20('0x59')](_0x1cae1a[_0x5e20('0x27')]['rootName']);_0x2d3238[_0x400387]=this[_0x5e20('0x51')](_0x1cae1a,_0x34c0ef);}if(_0x1cae1a instanceof _0x472eca){const _0x3f21ea=_0x3c49d7[_0x5e20('0x59')](_0x1cae1a[_0x5e20('0x27')][_0x5e20('0xe8')]);_0x2d3238[_0x400387]=this[_0x5e20('0x31')](_0x1cae1a,_0x3f21ea);}_0x5e20('0x27')===_0x400387&&(_0x2d3238[_0x5e20('0x27')]=_0x3c49d7[_0x5e20('0x59')](_0x2d3238['root'][_0x5e20('0xe8')]));}}[_0x5e20('0x31')](_0x4a927f,_0x1aa344){return this[_0x5e20('0xbe')]['model']['createRange'](this['_fixPosition'](_0x4a927f[_0x5e20('0xdb')],_0x1aa344),this['_fixPosition'](_0x4a927f[_0x5e20('0xa5')],_0x1aa344));}[_0x5e20('0x51')](_0x81e81e,_0x4367d2){return this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0x5d')](_0x4367d2,_0x81e81e[_0x5e20('0x84')],_0x81e81e[_0x5e20('0x33')]);}[_0x5e20('0xaf')](_0x3655af){const _0x27def3=this[_0x5e20('0xf1')][_0x5e20('0x59')](_0x3655af[_0x5e20('0x1f')][_0x5e20('0x27')]['rootName']),_0x5aec1c=this['_fixPosition'](_0x3655af[_0x5e20('0x1f')],_0x27def3),_0x23b7fc=null===_0x3655af['_authorId']?null:_0x3655af['_authorId']||this[_0x5e20('0xbe')][_0x5e20('0x54')][_0x5e20('0x59')](_0x5e20('0x39'))['me']['id'],_0x54bea5=_0x5aec1c[_0x5e20('0x82')],_0x1105e7=this[_0x5e20('0x55')],_0x451eb3=[];for(const _0x39b897 of _0x3655af[_0x5e20('0x17')])if(_0x39b897['is'](_0x5e20('0x40')))_0x451eb3[_0x5e20('0x1c')](this[_0x5e20('0xb1')](_0x39b897));else for(let _0x2efc0e=0x0;_0x2efc0e<_0x39b897[_0x5e20('0x8b')];_0x2efc0e++)_0x451eb3[_0x5e20('0x1c')](new _0x1232af(_0x5e20('0xe2'),{'vid':this['_revisionId']++}));const _0x4e9381=this['_revisionId'];for(let _0x12adfd=_0x1105e7;_0x12adfd<_0x4e9381;_0x12adfd++)this['_touched'][_0x5e20('0xd6')](_0x12adfd,{'userId':_0x23b7fc});_0x54bea5[_0x5e20('0xa4')](_0x5aec1c[_0x5e20('0x9a')],_0x451eb3);}[_0x5e20('0xcb')](_0x39696e){(_0x39696e=this[_0x5e20('0x100')](_0x39696e,this[_0x5e20('0xf1')]))[_0x5e20('0x23')]();const _0x15f5e2=null===_0x39696e[_0x5e20('0xe')]?null:_0x39696e[_0x5e20('0xe')]||this[_0x5e20('0xbe')][_0x5e20('0x54')][_0x5e20('0x59')]('Users')['me']['id'],_0x332d95=_0x39696e[_0x5e20('0x3d')](),_0x3a75cb=_0x332d95[_0x5e20('0x82')],_0x39c5f2=_0x332d95[_0x5e20('0x9a')];!function _0x500953(_0x254bdd,_0x3f0c1a,_0x223a80,_0x22f9fb){for(let _0x498378=_0x223a80;_0x498378<_0x22f9fb;_0x498378++){const _0x423458=_0x3f0c1a[_0x5e20('0x11')](_0x498378);_0x423458['is'](_0x5e20('0x40'),'$text')?_0x254bdd[_0x5e20('0xd6')](_0x423458[_0x5e20('0x90')](_0x5e20('0x83')),{'userId':_0x15f5e2}):(_0x254bdd[_0x5e20('0xd6')](_0x423458[_0x5e20('0x90')]('vid_start'),{'userId':_0x15f5e2}),_0x500953(_0x254bdd,_0x423458,0x0,_0x423458[_0x5e20('0xba')]),_0x254bdd['set'](_0x423458[_0x5e20('0x90')]('vid_end'),{'userId':_0x15f5e2}));}}(this[_0x5e20('0x10a')],_0x3a75cb,_0x39c5f2,_0x39c5f2+_0x39696e['howMany']);}[_0x5e20('0x99')](_0xadb308){const _0x4580ce=null===(_0xadb308=this[_0x5e20('0x100')](_0xadb308,this[_0x5e20('0xf1')]))['_authorId']?null:_0xadb308['_authorId']||this[_0x5e20('0xbe')][_0x5e20('0x54')][_0x5e20('0x59')](_0x5e20('0x39'))['me']['id'],_0x140ecc=_0xadb308['targetPosition'][_0x5e20('0x82')],_0x4d71e3=_0xadb308[_0x5e20('0xee')][_0x5e20('0x82')],_0x198b61=_0x140ecc[_0x5e20('0x90')](_0x5e20('0x91')),_0x990cf9=_0x4d71e3[_0x5e20('0x90')](_0x5e20('0x66'));_0x140ecc[_0x5e20('0xdd')](_0x5e20('0x91'),_0x4d71e3[_0x5e20('0x90')]('vid_end')),_0x4d71e3[_0x5e20('0xdd')](_0x5e20('0x91'),_0x198b61),this[_0x5e20('0x10a')][_0x5e20('0xd6')](_0x990cf9,{'userId':_0x4580ce}),this[_0x5e20('0x10a')][_0x5e20('0xd6')](_0x198b61,{'userId':_0x4580ce}),_0xadb308[_0x5e20('0x23')]();}[_0x5e20('0x20')](_0x4dae14){const _0x3abf26=null===(_0x4dae14=this[_0x5e20('0x100')](_0x4dae14,this[_0x5e20('0xf1')]))[_0x5e20('0xe')]?null:_0x4dae14[_0x5e20('0xe')]||this['editor'][_0x5e20('0x54')][_0x5e20('0x59')](_0x5e20('0x39'))['me']['id'],_0x42bdd4=_0x4dae14[_0x5e20('0xe9')],_0x51ec70=_0x4dae14[_0x5e20('0x6d')][_0x5e20('0x82')];_0x4dae14[_0x5e20('0x23')]();const _0x46eb6c=_0x51ec70[_0x5e20('0x90')]('vid_end'),_0x2b6f30=_0x4dae14[_0x5e20('0x9b')][_0x5e20('0x5b')];if(_0x42bdd4){const _0x3506d8=_0x2b6f30[_0x5e20('0x90')]('vid_end'),_0x3b125a=_0x51ec70[_0x5e20('0x90')](_0x5e20('0x91'));_0x51ec70['_setAttribute']('vid_end',_0x3506d8),_0x2b6f30['_setAttribute']('vid_end',_0x3b125a),this['_touched'][_0x5e20('0xd6')](_0x51ec70[_0x5e20('0x90')]('vid_end'),{'userId':_0x3abf26}),this['_touched'][_0x5e20('0xd6')](_0x2b6f30[_0x5e20('0x90')](_0x5e20('0x66')),{'userId':_0x3abf26});}else{const _0x585602=this[_0x5e20('0x55')]++,_0x83c61d=this[_0x5e20('0x55')]++;_0x51ec70[_0x5e20('0xdd')](_0x5e20('0x91'),_0x585602),_0x2b6f30['_setAttribute']('vid_start',_0x83c61d),_0x2b6f30[_0x5e20('0xdd')](_0x5e20('0x91'),_0x46eb6c),this['_touched'][_0x5e20('0xd6')](_0x585602,{'userId':_0x3abf26}),this[_0x5e20('0x10a')][_0x5e20('0xd6')](_0x83c61d,{'userId':_0x3abf26});}}[_0x5e20('0xd3')](_0x594ceb){if(!_0x594ceb[_0x5e20('0xc')])return;const _0x555f16=(_0x594ceb=this['_cloneOperation'](_0x594ceb,this[_0x5e20('0x8f')]))[_0x5e20('0x103')]?_0x594ceb[_0x5e20('0x103')][_0x5e20('0x27')]:null,_0x224d02=_0x594ceb[_0x5e20('0x88')]?_0x594ceb[_0x5e20('0x88')]['root']:null;_0x555f16&&this[_0x5e20('0xc0')][_0x5e20('0x2c')](_0x594ceb[_0x5e20('0xcf')]),_0x224d02&&this[_0x5e20('0xc0')]['set'](_0x594ceb[_0x5e20('0xcf')],_0x594ceb['newRange']['clone']());const _0x738c3f=null===_0x594ceb[_0x5e20('0xe')]?null:_0x594ceb[_0x5e20('0xe')]||this['editor']['plugins'][_0x5e20('0x59')](_0x5e20('0x39'))['me']['id'],_0x479dd0=_0x594ceb[_0x5e20('0xcf')];if(!this['_touchedMarkers'][_0x5e20('0xb7')](_0x479dd0))return void this[_0x5e20('0xd2')][_0x5e20('0xd6')](_0x479dd0,{'range':_0x594ceb['oldRange'],'userId':_0x738c3f});const _0x7cd578=this[_0x5e20('0xd2')]['get'](_0x479dd0),_0x2d1213=_0x7cd578['range'],_0x2220dd=_0x594ceb[_0x5e20('0x88')];null==_0x2d1213&&null==_0x2220dd||_0x2d1213&&_0x2220dd&&_0x2d1213[_0x5e20('0x4c')](_0x2220dd)?this['_touchedMarkers'][_0x5e20('0x2c')](_0x594ceb[_0x5e20('0xcf')]):_0x7cd578['userId']=_0x738c3f;}[_0x5e20('0x1')](_0x578bf1,_0x4ed742){this[_0x5e20('0x8f')][_0x5e20('0xb7')](_0x578bf1[_0x5e20('0xe8')])?this[_0x5e20('0x8f')][_0x5e20('0x59')](_0x578bf1[_0x5e20('0xe8')])[_0x5e20('0xec')]=_0x578bf1[_0x5e20('0x96')]:(this[_0x5e20('0x8f')][_0x5e20('0xd6')](_0x578bf1[_0x5e20('0xe8')],G(_0x578bf1['rootName'],!0x0)),this[_0x5e20('0x6b')][_0x5e20('0xd6')](_0x578bf1['rootName'],{}),_0x4ed742&&this[_0x5e20('0xf1')][_0x5e20('0xd6')](_0x578bf1[_0x5e20('0xe8')],G(_0x578bf1[_0x5e20('0xe8')],!0x0)));const _0x4d5901=null===_0x578bf1[_0x5e20('0xe')]?null:_0x578bf1[_0x5e20('0xe')]||this[_0x5e20('0xbe')][_0x5e20('0x54')][_0x5e20('0x59')]('Users')['me']['id'],_0x19cd36=this[_0x5e20('0x24')][_0x5e20('0x59')](_0x578bf1[_0x5e20('0xe8')]);_0x19cd36&&_0x19cd36[_0x5e20('0x36')]===_0x4d5901?this[_0x5e20('0x24')][_0x5e20('0x2c')](_0x578bf1[_0x5e20('0xe8')]):this[_0x5e20('0x24')][_0x5e20('0xd6')](_0x578bf1[_0x5e20('0xe8')],{'userId':_0x4d5901,'isAttached':_0x578bf1[_0x5e20('0x96')]});}['_handleRootAttributeOperation'](_0x4015f3){const _0x137da1=this['_diffRootsAttributes'][_0x5e20('0x59')](_0x4015f3['root'][_0x5e20('0xe8')]);null===_0x4015f3[_0x5e20('0xa3')]?delete _0x137da1[_0x4015f3[_0x5e20('0xbd')]]:_0x137da1[_0x4015f3[_0x5e20('0xbd')]]=_0x4015f3[_0x5e20('0xa3')];}}function q(_0x2d0dc6){const _0x29dbaf=G(_0x2d0dc6[_0x5e20('0xe8')],_0x2d0dc6['isAttached']());for(const _0x1815ca of _0x2d0dc6['getChildren']()){const _0x2b7bfb=_0x1815ca[_0x5e20('0xac')](!0x0);_0x29dbaf['_appendChild'](_0x2b7bfb);}return _0x29dbaf;}function G(_0x30eef7,_0x5e9af4=!0x0){const _0x51e7a9=new _0x4ea7a3();return _0x51e7a9['rootName']=_0x30eef7,_0x51e7a9[_0x5e20('0xec')]=_0x5e9af4,_0x51e7a9['isAttached']=()=>_0x51e7a9[_0x5e20('0xec')],_0x51e7a9;}function L(_0x2eb5c1,_0x47952a,_0x42a262){const _0x1b914f='elementEnd'==_0x2eb5c1['type']?_0x42a262['createPositionAt'](_0x2eb5c1[_0x5e20('0x93')],_0x5e20('0xa5')):_0x42a262[_0x5e20('0x61')](_0x2eb5c1['item']);return _0x42a262['createPositionFromPath'](_0x47952a,_0x1b914f[_0x5e20('0x84')],_0x1b914f[_0x5e20('0x33')]);}function W(_0x483205,_0x1ee568,_0x59c0c2){const _0x56a9e7=_0x5e20('0x3e')==_0x483205['type']?_0x59c0c2[_0x5e20('0x1a')](_0x483205[_0x5e20('0x93')],0x0):_0x59c0c2[_0x5e20('0x65')](_0x483205[_0x5e20('0x93')]);return _0x59c0c2['createPositionFromPath'](_0x1ee568,_0x56a9e7[_0x5e20('0x84')],_0x56a9e7[_0x5e20('0x33')]);}
|