@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231214.0 → 0.0.0-nightly-20231216.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 +7 -6
- package/src/augmentation.d.ts +1 -1
- package/src/changeitem.d.ts +3 -3
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.d.ts +3 -3
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.d.ts +3 -3
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.d.ts +3 -3
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.d.ts +11 -11
- package/src/index.js +1 -1
- package/src/revision.d.ts +3 -3
- package/src/revision.js +1 -1
- package/src/revisiondiff.d.ts +3 -3
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.d.ts +6 -6
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryadapter.d.ts +1 -1
- package/src/revisionsrepository.d.ts +3 -3
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.d.ts +5 -5
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.d.ts +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.d.ts +6 -6
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.d.ts +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.d.ts +3 -3
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +2 -2
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.d.ts +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.d.ts +3 -3
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +5 -5
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.d.ts +6 -6
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.d.ts +3 -3
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.d.ts +2 -2
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.d.ts +3 -3
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.d.ts +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 _0x47ff=['_createInitialRevision','startsWith','getAttribute','_isInit','_pendingAction','createdAt','loadState','documentFragment','_processRootBeforeSave','init','max','getRevisionRootsAttributes','_prepareViewToSave','_removePendingAction','elementStart','_clone','size','creatorId','getRevisions','revision','_makeModelFromViewString','createPositionAt','addRootAttribute','_handleInsertOperation','_idsRoots','includes','getOperations','PendingActions','elementEnd','_touched','_continueCurrentRevision','_generateTape','saveRevision','length','createRange','conversion','createRevision','authorsIds','getData','end','_loadState','isEnabled','_loadedStateData','add','_reset','default','getUser','NEGATIVE_INFINITY','_removeRevisionMarkers','type','getAttributes','nodeAfter','source','_handleOperation','_baseRootsAttributes','getLatestVersion','_getVidAttributeName','shift','element','model','insertions','_isAttached','getIndex','stringify','map','_diffRootsAttributes','split','parent','nodes','getRevision','_appendChild','_lastTo','_replaceEditorDataWithRevisionData','getRootNames','changeRootAttribute','attachChange','_applyOperations','insert','_makeIdsRoot','_saveMetaData','_operations','buildRevisionData','_isPendingUpdate','_handleMarkerOperation','define','item','getAncestors','createPositionAfter','data-revision-','revision:','diffData','_touchedMarkers','values','then','rootsAttributes','addRevisionData','toVersion','newValue','stickiness','_addPendingAction','sendBufferedUpdates','range','$text','attributes','find','key','_handleRootAttributeOperation','trim','collaboration.channelId','isAttached','from','toView','_createCurrentRevision','paragraph','forEach','_revisionDataBuilder','config','userId','getTransformedByOperation','_fixRange','_removeMetaData','removeRootAttribute','string','some','_getState','_getPreviousFrom','document','markerToData','repository','parse','isAdd','_getBaseVids','_setConversion','_handleMoveOperation','_handleRootOperation','vid','_bufferedUpdates','markers','splitPosition','afterInit','createPositionFromPath','fromEntries','oldRange','roots','processor','fromVersion','_insertChild','push','tableCell','start','_setAttribute','data','_touchedRoots','offset','remove','resolve','upcast','hasContent','getRevisionDocumentData','version','getCurrentRevisionId','deletion','_startingRevisionId','getNodeByPath','createRangeIn','has','rootName','addRevision','RevisionTracker','getChildren','isEqual','update','toData','_authorId','text','_diffRoots','finally','childCount','vid_start','reInit','PENDING_ACTION_REVISION_HISTORY','useFillerType','_findInsertionIndex','deletions','reinsert','authors','_handleMergeOperation','_bufferUpdate','_baseIdsRoots','_cloneOperation','plugins','clone','Users','offsetSize','_source','_execute','detachRoot','RevisionsRepository','previousPosition','_initialRevisionId','getWalker','get','_update','updateRevisions','pluginName','affectsData','currentRevision','keys','vid_end','_handleSplitOperation','path','isReady','_getFromVersion','_getViewJson','_revisionId','clear','setSource','filter','_markers','attributesAfter','_savedMetaData','getChild','requires','_loadRevisionData','slice','delete','$graveyard','_startingVersion','getRange','setRevisionData','editor','getOperation','getRoot','newRange','howMany','reverse','sort','_fixPosition','dataDowncast','RealTimeCollaborationClient','graveyardPosition','marker','locale','editor-initial-data-replaced-with-revision-data','for','history','creator','_calculateMetaData','dataToMarker','_baseRoots','_markChanges','set','adapter','createPositionBefore','children','Initial\x20revision','sourcePosition','_lastFrom','insertion','revisionHistory.resumeUnsavedRevision','baseVersion','getTime','root','name','_copyMarkers','position','view'];(function(_0x4cf2ea,_0x47ff92){const _0x431f25=function(_0x201a3b){while(--_0x201a3b){_0x4cf2ea['push'](_0x4cf2ea['shift']());}};_0x431f25(++_0x47ff92);}(_0x47ff,0x1a7));const _0x431f=function(_0x4cf2ea,_0x47ff92){_0x4cf2ea=_0x4cf2ea-0x0;let _0x431f25=_0x47ff[_0x4cf2ea];return _0x431f25;};import{Users as _0x424797}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x3b6270,PendingActions as _0x472035}from'ckeditor5/src/core';import{logWarning as _0xf7151,uid as _0x42ca40}from'ckeditor5/src/utils';import{Position as _0x1514a2,Range as _0x1415b9,Element as _0x25a114,DocumentFragment as _0x273bfd,ViewText as _0x2598fb,ViewElement as _0x460c82,ViewContainerElement as _0x1d0ae5,ViewAttributeElement as _0x111191,ViewEmptyElement as _0xdb150c,ViewRawElement as _0x4cf16e,ViewUIElement as _0x4e7a3e,ViewDocumentFragment as _0x384c62}from'ckeditor5/src/engine';import _0x349da8 from'./revisionsrepository';import{getTranslation as _0x1b642f}from'./utils/common-translations';import{cloneDeep as _0x330c50,isEqual as _0x1a1441}from'lodash-es';const B={'c':_0x1d0ae5,'a':_0x111191,'e':_0xdb150c,'r':_0x4cf16e,'u':_0x4e7a3e};export default class l extends _0x3b6270{static get[_0x431f('0x30')](){return _0x431f('0xc');}static get[_0x431f('0x42')](){return[_0x424797,_0x349da8,_0x472035];}constructor(_0x3dd448){super(_0x3dd448),this['adapter']=null,this[_0x431f('0x32')]=null,this['_revisionDataBuilder']=new H(this[_0x431f('0x4a')]),this[_0x431f('0x2b')]=this[_0x431f('0x4a')][_0x431f('0xe3')][_0x431f('0x2d')](_0x431f('0xdb'))||'initial',this[_0x431f('0xf7')]=new Map(),this[_0x431f('0x99')]=null;const _0x4ebcc6=_0x42ca40();this[_0x431f('0x26')]={'history':this[_0x431f('0x4a')][_0x431f('0xaa')][_0x431f('0xed')][_0x431f('0x59')],'getLatestVersion':()=>Promise[_0x431f('0x10a')](this[_0x431f('0x4a')]['model'][_0x431f('0xed')][_0x431f('0x3')]),'getCurrentRevisionId':()=>_0x4ebcc6},this[_0x431f('0x5f')]('isReady',!0x1),this['set'](_0x431f('0x98'),!0x0),this[_0x431f('0x5f')](_0x431f('0xc1'),!0x1),this[_0x431f('0x4a')][_0x431f('0xe3')][_0x431f('0xc3')](_0x431f('0x67'),!0x0),this[_0x431f('0x4a')][_0x431f('0x92')]['for'](_0x431f('0x0'))[_0x431f('0x5c')]({'view':_0x431f('0x82')});}[_0x431f('0x78')](){this['repository']=this['editor'][_0x431f('0x22')][_0x431f('0x2d')](_0x431f('0x29')),this['_setConversion'](),this['editor'][_0x431f('0x106')]['on']('ready',()=>{const _0x12c52b=this[_0x431f('0xef')]['getRevision'](0x0),_0x112fb4=_0x12c52b&&null===_0x12c52b[_0x431f('0x5a')]?_0x12c52b:null;if(this[_0x431f('0x8d')]=!!_0x112fb4&&this[_0x431f('0x4a')][_0x431f('0xe3')]['get']('revisionHistory.resumeUnsavedRevision'),this[_0x431f('0x4a')][_0x431f('0x22')][_0x431f('0x9')](_0x431f('0x53'))){const _0x366fa5=this[_0x431f('0x26')][_0x431f('0x4')](),_0x1df14b=this[_0x431f('0xef')][_0x431f('0xb4')](_0x366fa5);if(_0x1df14b)this[_0x431f('0x47')]=_0x1df14b[_0x431f('0x100')],this['_continueCurrentRevision']=!0x1;else{const _0x366330=this[_0x431f('0x26')]['history'][_0x431f('0xbf')]['find'](_0x3089ba=>!_0x3089ba[_0x431f('0x72')]),_0x112e47=_0x366330?_0x366330[_0x431f('0x68')]:this[_0x431f('0x26')][_0x431f('0x59')][_0x431f('0x3')];_0x12c52b?(_0x12c52b[_0x431f('0xcf')]<_0x112e47&&_0x12c52b[_0x431f('0x2e')]({'toVersion':_0x112e47}),this['_continueCurrentRevision']?(this[_0x431f('0x26')][_0x431f('0x4')]=()=>_0x112fb4['id'],this['_startingVersion']=_0x112fb4['fromVersion']):(this['_startingVersion']=_0x12c52b[_0x431f('0xcf')],this['_continueCurrentRevision']=!0x1)):(this[_0x431f('0x47')]=_0x112e47,this[_0x431f('0x8d')]=!0x1);}}else _0x112fb4&&(this[_0x431f('0x4a')][_0x431f('0xaa')]['document']['history']['version']=Math[_0x431f('0x79')](_0x112fb4['toVersion'],this[_0x431f('0x4a')][_0x431f('0xaa')][_0x431f('0xed')][_0x431f('0x59')][_0x431f('0x3')]),_0x112fb4[_0x431f('0x100')]===_0x112fb4[_0x431f('0xcf')]?(0x0!==_0x112fb4[_0x431f('0x100')]&&(this[_0x431f('0x26')][_0x431f('0x4')]=()=>_0x112fb4['id']),this['_continueCurrentRevision']=!0x1):this[_0x431f('0x8d')]&&(this[_0x431f('0x26')][_0x431f('0x4')]=()=>_0x112fb4['id'],this[_0x431f('0x47')]=_0x112fb4[_0x431f('0x100')])),this[_0x431f('0x8d')]||(this['_startingVersion']=this['editor'][_0x431f('0xaa')][_0x431f('0xed')][_0x431f('0x3')]);this[_0x431f('0xe2')][_0x431f('0x78')](this[_0x431f('0x26')][_0x431f('0x59')]),this[_0x431f('0x6f')](this[_0x431f('0x47')]),this[_0x431f('0xdf')](this[_0x431f('0x47')]),this[_0x431f('0x60')]&&this['sendBufferedUpdates']();}),this['bind'](_0x431f('0x37'))['to'](this,_0x431f('0xc1'),_0x237bf8=>!_0x237bf8);}async[_0x431f('0xfa')](){if(this['repository'][_0x431f('0x90')]>0x0){const _0x439602=this[_0x431f('0xef')][_0x431f('0xb4')](0x0),_0x2e94a4=await this['getRevisionDocumentData'](_0x439602),_0x5f4657=await this[_0x431f('0x7a')](_0x439602);this[_0x431f('0xb7')](_0x2e94a4,_0x5f4657);}}[_0x431f('0x3c')](_0x55db5e){this[_0x431f('0x26')]=_0x55db5e;}async[_0x431f('0xf')](){const _0xbaa81=await this[_0x431f('0x26')][_0x431f('0xa6')]();if(_0xbaa81>this[_0x431f('0x32')]['toVersion']){await this[_0x431f('0x97')]();const _0x454e03=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xbaa81});_0x454e03[_0x431f('0x1d')]=_0x454e03[_0x431f('0x94')][_0x431f('0xaf')](_0x4371fe=>this[_0x431f('0x4a')][_0x431f('0x22')]['get'](_0x431f('0x24'))[_0x431f('0x9d')](_0x4371fe)),this['currentRevision'][_0x431f('0x2e')](_0x454e03);}}async[_0x431f('0x97')](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this[_0x431f('0x43')](this[_0x431f('0x32')]),this[_0x431f('0xe2')][_0x431f('0x75')](this[_0x431f('0x32')]),this['_loadedStateData']={'fromVersion':this[_0x431f('0x32')][_0x431f('0x100')],'authors':this['currentRevision'][_0x431f('0x1d')][_0x431f('0x44')]()});}async[_0x431f('0x8f')](_0x3a9303={},_0x12a10d=null){const _0x1eea68=[];await this[_0x431f('0x97')](),this[_0x431f('0x8d')]=!0x1,_0x12a10d>this[_0x431f('0x32')][_0x431f('0xcf')]&&(_0x12a10d=null),null===_0x12a10d&&(_0x12a10d=await this[_0x431f('0x26')][_0x431f('0xa6')]());const _0x589342=this['_getFromVersion'](_0x12a10d),_0xc6da9e=this[_0x431f('0xc0')]({'from':_0x589342,'to':_0x12a10d});if(this['currentRevision'][_0x431f('0xcf')]<_0x12a10d){const _0xdb5cb5=this[_0x431f('0xc0')]({'revision':this[_0x431f('0x32')],'from':_0x12a10d,'to':_0x12a10d});_0xdb5cb5[_0x431f('0x1d')]=[],_0xdb5cb5['authorsIds']=[],_0xdb5cb5['id']=this[_0x431f('0x32')]['id'],this[_0x431f('0x32')]['_update'](_0xdb5cb5,!0x0),delete _0xdb5cb5[_0x431f('0x1d')],_0x1eea68[_0x431f('0x102')](_0xdb5cb5);}_0x3a9303[_0x431f('0x80')]=this['editor']['plugins']['get'](_0x431f('0x24'))['me']['id'],_0x3a9303['name']=_0x3a9303[_0x431f('0x6b')]||null,_0x3a9303['id']=_0x3a9303['id']||_0x42ca40(),_0x3a9303={..._0x3a9303,..._0xc6da9e};const _0x5a06e4=this[_0x431f('0xce')](_0x3a9303);_0x1eea68[_0x431f('0x102')](_0x3a9303);const _0x5d5e5b=this[_0x431f('0xef')][_0x431f('0xad')](_0x5a06e4);if(0x0!==_0x5d5e5b){const _0x1bf2ae=this[_0x431f('0xef')][_0x431f('0xb4')](_0x5d5e5b-0x1);if(_0x1bf2ae[_0x431f('0x100')]!==_0x12a10d){const _0x45a5d2=this['_revisionDataBuilder'][_0x431f('0x95')](_0x12a10d,_0x1bf2ae[_0x431f('0xcf')]),_0x17c071={'id':_0x1bf2ae['id'],'diffData':_0x45a5d2[_0x431f('0xc9')],'authorsIds':_0x45a5d2['authorsIds'],'authors':_0x45a5d2['authorsIds'][_0x431f('0xaf')](_0x97da81=>this[_0x431f('0x4a')][_0x431f('0x22')][_0x431f('0x2d')]('Users')[_0x431f('0x9d')](_0x97da81)),'fromVersion':_0x12a10d};_0x1bf2ae===this[_0x431f('0x32')]&&(_0x17c071['createdAt']=new Date(_0x3a9303[_0x431f('0x74')][_0x431f('0x69')]()+0xa)),_0x1bf2ae['_update'](_0x17c071,!0x0),delete _0x17c071[_0x431f('0x1d')],_0x1eea68[_0x431f('0x102')](_0x17c071);}}if(this['adapter']){for(const _0x421465 of _0x1eea68)this['_bufferUpdate'](_0x421465['id'],_0x421465,!0x0);this['sendBufferedUpdates']();}return _0x5a06e4;}[_0x431f('0xce')](_0x1bcc82){const _0xb9f5db=this[_0x431f('0xef')][_0x431f('0x93')](_0x1bcc82);return this[_0x431f('0x60')]&&_0xb9f5db['on'](_0x431f('0x2e'),(_0x16e9be,_0x33c935,_0x3507e9)=>{_0x3507e9||(this['_bufferUpdate'](_0x33c935['id'],_0x33c935,!0x0),this[_0x431f('0xd3')]());}),this[_0x431f('0xef')][_0x431f('0xb')](_0xb9f5db,this[_0x431f('0x1a')](_0xb9f5db)),_0xb9f5db;}async[_0x431f('0x2')](_0x327a6a){await this[_0x431f('0x43')](_0x327a6a);const _0x394827={};for(const _0x26be76 in _0x327a6a[_0x431f('0xc9')]){if(_0x327a6a[_0x431f('0xc9')][_0x26be76][_0x431f('0xba')]&&!_0x327a6a['diffData'][_0x26be76][_0x431f('0xba')][_0x431f('0xdc')])continue;const _0x3c9c47=this['_removeRevisionMarkers'](JSON[_0x431f('0xf0')](_0x327a6a[_0x431f('0xc9')][_0x26be76][_0x431f('0xab')])),_0xc68e59=this[_0x431f('0x4a')]['editing'][_0x431f('0x6e')][_0x431f('0xed')],_0x531315=new _0x384c62(_0xc68e59,_0x3c9c47[_0x431f('0xaf')](_0x476e20=>J(_0x476e20,this['editor'])));this['editor'][_0x431f('0x106')][_0x431f('0xff')][_0x431f('0x19')]('marked'),_0x394827[_0x26be76]=this['editor'][_0x431f('0x106')]['processor'][_0x431f('0x10')](_0x531315),this[_0x431f('0x4a')][_0x431f('0x106')][_0x431f('0xff')][_0x431f('0x19')](_0x431f('0x9c'));}return _0x394827;}async[_0x431f('0x7a')](_0x5d3193){await this['_loadRevisionData'](_0x5d3193);const _0x27a59b={};for(const _0x99dd31 in _0x5d3193[_0x431f('0xc9')])_0x5d3193[_0x431f('0xc9')][_0x99dd31][_0x431f('0xba')]&&!_0x5d3193[_0x431f('0xc9')][_0x99dd31]['attachChange']['isAttached']||(_0x27a59b[_0x99dd31]=_0x5d3193[_0x431f('0xc9')][_0x99dd31][_0x431f('0x3f')]||{});return _0x27a59b;}[_0x431f('0xd3')](){if(0x0===this[_0x431f('0xf7')]['size'])return;if(this['_isPendingUpdate'])return;let _0x4f89dc=Array[_0x431f('0xdd')](this[_0x431f('0xf7')][_0x431f('0xcb')]());this[_0x431f('0xf7')][_0x431f('0x3b')]();for(let _0x2bbfaa=0x0;_0x2bbfaa<_0x4f89dc['length'];_0x2bbfaa++){const _0x6ba7fa=_0x4f89dc[_0x2bbfaa];let _0x361df2=!0x1;for(const _0x386424 of Object[_0x431f('0x33')](_0x6ba7fa))void 0x0===_0x6ba7fa[_0x386424]?delete _0x6ba7fa[_0x386424]:'id'!==_0x386424&&(_0x361df2=!0x0);_0x361df2||(_0x4f89dc[_0x2bbfaa]=null);}if(_0x4f89dc=_0x4f89dc['filter'](_0x44160=>null!==_0x44160),!_0x4f89dc['length'])return;for(let _0x40027a=0x0;_0x40027a<_0x4f89dc['length'];_0x40027a++){const _0x50b5b1=_0x4f89dc[_0x40027a];void 0x0!==_0x50b5b1[_0x431f('0x100')]&&void 0x0===_0x50b5b1[_0x431f('0xcf')]&&(_0x50b5b1[_0x431f('0xcf')]=this[_0x431f('0xef')][_0x431f('0xb4')](_0x50b5b1['id'])[_0x431f('0xcf')]),void 0x0!==_0x50b5b1[_0x431f('0xcf')]&&void 0x0===_0x50b5b1[_0x431f('0x100')]&&(_0x50b5b1['fromVersion']=this[_0x431f('0xef')][_0x431f('0xb4')](_0x50b5b1['id'])[_0x431f('0x100')]);}const _0x50a3b8=this[_0x431f('0x4a')][_0x431f('0xe3')][_0x431f('0x2d')](_0x431f('0xdb'));this['_isPendingUpdate']=!0x0,this[_0x431f('0xd2')](),this[_0x431f('0x60')][_0x431f('0x2f')](_0x4f89dc,_0x50a3b8)[_0x431f('0x14')](()=>{this[_0x431f('0xc1')]=!0x1;})[_0x431f('0xcc')](_0x38da4b=>{if(_0x38da4b)for(const _0x5dd45c of _0x38da4b)this[_0x431f('0x49')]({'id':_0x5dd45c['id'],'createdAt':_0x5dd45c['createdAt']});this[_0x431f('0x7c')](),this[_0x431f('0xd3')]();});}[_0x431f('0xb7')](_0x2cb053,_0x4faca7){let _0x59fb88=this[_0x431f('0x4a')][_0x431f('0xe3')][_0x431f('0x2d')]('initialData'),_0x24aa98=this['editor'][_0x431f('0xe3')][_0x431f('0x2d')](_0x431f('0xcd'));if(void 0x0===_0x59fb88){_0x59fb88={};for(const _0x177464 of this[_0x431f('0x4a')][_0x431f('0xaa')][_0x431f('0xed')][_0x431f('0xb8')]())_0x59fb88[_0x177464]='';}if('string'==typeof _0x59fb88&&(_0x59fb88={'main':_0x59fb88}),void 0x0===_0x24aa98){_0x24aa98={};for(const _0x3b4581 of this[_0x431f('0x4a')][_0x431f('0xaa')][_0x431f('0xed')][_0x431f('0xb8')]())_0x24aa98[_0x3b4581]={};}let _0x39f5ac=!0x1;const _0x52bfac=Object['keys'](_0x59fb88),_0x120175=Object['keys'](_0x2cb053);for(const _0x3b900e of _0x52bfac){if(_0x59fb88[_0x3b900e]!==_0x2cb053[_0x3b900e]&&''!==_0x59fb88[_0x3b900e][_0x431f('0xda')]()){_0x39f5ac=!0x0;break;}if(!_0x1a1441(_0x24aa98[_0x3b900e],_0x4faca7[_0x3b900e])&&Object['keys'](_0x24aa98[_0x3b900e])[_0x431f('0x90')]>0x0){_0x39f5ac=!0x0;break;}}_0x39f5ac||(_0x39f5ac=_0x120175[_0x431f('0xea')](_0x4ebdd8=>!this[_0x431f('0x4a')][_0x431f('0xaa')][_0x431f('0xed')][_0x431f('0x4c')](_0x4ebdd8))),_0x39f5ac&&_0xf7151(_0x431f('0x57'),{'editorData':_0x59fb88,'editorRootsAttributes':_0x24aa98,'revisionData':_0x2cb053,'revisionRootsAttributes':_0x4faca7}),this[_0x431f('0x4a')][_0x431f('0xe3')][_0x431f('0x5f')]('initialData',_0x2cb053),this[_0x431f('0x4a')][_0x431f('0xe3')][_0x431f('0x5f')](_0x431f('0xcd'),_0x4faca7);}[_0x431f('0xd2')](){if(!this[_0x431f('0x73')]){const _0x20487d=this[_0x431f('0x4a')][_0x431f('0x22')]['get'](_0x431f('0x8a'));this[_0x431f('0x73')]=_0x20487d[_0x431f('0x9a')](_0x1b642f(this['editor'][_0x431f('0x56')],_0x431f('0x18')));}}[_0x431f('0x7c')](){this[_0x431f('0x73')]&&(this[_0x431f('0x4a')][_0x431f('0x22')][_0x431f('0x2d')](_0x431f('0x8a'))[_0x431f('0x109')](this['_pendingAction']),this[_0x431f('0x73')]=null);}[_0x431f('0x1a')](_0x2d3140){const _0x48d7ab=this['repository'][_0x431f('0x81')]();_0x48d7ab['reverse']();let _0x1fee62=0x0;for(;_0x1fee62<_0x48d7ab[_0x431f('0x90')];){const _0x4b1ff1=_0x48d7ab[_0x1fee62];if(_0x4b1ff1===this[_0x431f('0x32')]){_0x1fee62++;continue;}if(_0x4b1ff1['id']===this[_0x431f('0x2b')])break;const _0x2b4cc7=_0x2d3140[_0x431f('0xcf')]-_0x4b1ff1['toVersion']||_0x2d3140[_0x431f('0x100')]-_0x4b1ff1[_0x431f('0x100')];if(_0x2b4cc7>0x0)break;if(_0x2b4cc7<0x0)_0x1fee62++;else{if(!_0x2d3140[_0x431f('0x5a')]&&_0x4b1ff1[_0x431f('0x5a')])break;if(_0x4b1ff1[_0x431f('0x5a')]||!_0x2d3140[_0x431f('0x5a')]){if(_0x2d3140[_0x431f('0x74')]>_0x4b1ff1[_0x431f('0x74')])break;_0x1fee62++;}else _0x1fee62++;}}return _0x1fee62;}['setRevisionData'](_0x3030e8){const _0x51e486=this['repository'][_0x431f('0xb4')](_0x3030e8['id']);if(_0x3030e8['createdAt']&&(_0x3030e8['createdAt']=new Date(_0x3030e8[_0x431f('0x74')])),_0x3030e8[_0x431f('0x94')]){const _0x1d3b90=this['editor']['plugins']['get']('Users');_0x3030e8[_0x431f('0x1d')]=_0x3030e8[_0x431f('0x94')][_0x431f('0xaf')](_0x1ffcbb=>_0x1d3b90['getUser'](_0x1ffcbb));}_0x51e486[_0x431f('0x2e')](_0x3030e8,!0x0);}[_0x431f('0xc0')]({revision:_0x18bea6=null,from:_0x45fef0=null,to:_0x3f081a=null}){_0x45fef0=null!==_0x45fef0?_0x45fef0:_0x18bea6[_0x431f('0x100')],_0x3f081a=null!==_0x3f081a?_0x3f081a:_0x18bea6[_0x431f('0xcf')];const _0x281565=this['_revisionDataBuilder'][_0x431f('0x95')](_0x45fef0,_0x3f081a),_0x1e565c={'diffData':_0x281565[_0x431f('0xc9')],'authorsIds':_0x281565[_0x431f('0x94')],'fromVersion':_0x45fef0,'toVersion':_0x3f081a};if(!_0x18bea6||_0x3f081a!==_0x18bea6[_0x431f('0xcf')]){const _0xc37e1a=_0x3f081a-0x1,_0x9e7cef=this['_source'][_0x431f('0x59')][_0x431f('0x4b')](_0xc37e1a);_0x1e565c[_0x431f('0x74')]=_0x9e7cef&&_0x9e7cef[_0x431f('0x74')]||new Date();}if(this[_0x431f('0x99')]&&_0x45fef0===this[_0x431f('0x99')][_0x431f('0x100')])for(const _0x486c33 of this[_0x431f('0x99')][_0x431f('0x1d')])_0x1e565c[_0x431f('0x94')][_0x431f('0x88')](_0x486c33['id'])||_0x1e565c[_0x431f('0x94')][_0x431f('0x102')](_0x486c33['id']);return _0x1e565c;}[_0x431f('0x43')](_0x511da0){if(!_0x511da0||_0x511da0[_0x431f('0xc9')])return Promise['resolve']();{const _0x3e1642=this['editor'][_0x431f('0xe3')][_0x431f('0x2d')](_0x431f('0xdb'));return this[_0x431f('0x60')][_0x431f('0xb4')]({'channelId':_0x3e1642,'revisionId':_0x511da0['id']})['then'](_0x140e9c=>{_0x511da0[_0x431f('0xc9')]=_0x140e9c[_0x431f('0xc9')];});}}[_0x431f('0x1f')](_0x23665b,_0x3b684a,_0x5e0555){if(this['_bufferedUpdates'][_0x431f('0x9')](_0x23665b)){const _0x49f677=this['_bufferedUpdates'][_0x431f('0x2d')](_0x23665b);_0x3b684a=_0x5e0555?{..._0x49f677,..._0x3b684a}:{..._0x3b684a,..._0x49f677};}this[_0x431f('0xf7')][_0x431f('0x5f')](_0x23665b,_0x3b684a);}[_0x431f('0x38')](_0x241783){const _0x4cec56=this[_0x431f('0xef')][_0x431f('0x81')]();_0x4cec56[_0x431f('0x4f')](),_0x4cec56[_0x431f('0xa8')]();const _0x126057=_0x4cec56[_0x431f('0xd7')](_0x4f51f6=>_0x4f51f6[_0x431f('0xcf')]<=_0x241783)['toVersion'];return _0x126057<this[_0x431f('0x47')]?this[_0x431f('0x47')]:_0x126057;}[_0x431f('0x6f')](_0x232a65){const _0x478cde=this[_0x431f('0xef')][_0x431f('0xb4')](this[_0x431f('0xef')][_0x431f('0x90')]-0x1);if(_0x478cde)this[_0x431f('0x2b')]=_0x478cde['id'];else{const _0x361397=!this[_0x431f('0x4a')][_0x431f('0xaa')][_0x431f('0xed')][_0x431f('0xfe')][_0x431f('0xd7')](_0x32500c=>this[_0x431f('0x4a')][_0x431f('0xaa')][_0x431f('0x1')](_0x32500c)),_0x44eb70=this[_0x431f('0x4a')][_0x431f('0x22')][_0x431f('0x2d')]('Users')['me']['id'],_0xb6ed4b=_0x1b642f(this[_0x431f('0x4a')][_0x431f('0x56')],_0x361397?'Empty\x20document':_0x431f('0x63'));this['_makeRevision']({'from':_0x232a65,'to':_0x232a65,'id':this['_initialRevisionId'],'name':_0xb6ed4b,'creatorId':_0x44eb70});}}[_0x431f('0xdf')](_0x1b6887){const _0x4cf537=this[_0x431f('0x26')]['getCurrentRevisionId']();this['currentRevision']=this[_0x431f('0xef')][_0x431f('0xb4')](_0x4cf537),this['currentRevision']||(this[_0x431f('0x32')]=this['_makeRevision']({'from':_0x1b6887,'to':_0x1b6887,'id':_0x4cf537,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4c67dc,from:_0x4c4f01,to:_0x281502,creatorId:_0x458a2d,id:_0x50f1c7}){const _0x53426c=this['buildRevisionData']({'from':_0x4c4f01,'to':_0x281502});_0x53426c[_0x431f('0x6b')]=_0x4c67dc,_0x53426c[_0x431f('0x80')]=_0x458a2d,_0x53426c['id']=_0x50f1c7;const _0x366a91=this[_0x431f('0xce')](_0x53426c);return this[_0x431f('0x60')]&&this[_0x431f('0x1f')](_0x53426c['id'],_0x53426c,!0x0),_0x366a91;}[_0x431f('0xf3')](){this[_0x431f('0x4a')][_0x431f('0x92')][_0x431f('0x58')](_0x431f('0x52'))[_0x431f('0xee')]({'model':'revision'});}[_0x431f('0x9f')](_0x4cc2ff){return(_0x4cc2ff=_0x4cc2ff[_0x431f('0x3d')](_0x243928=>!_0x243928[_0x431f('0x6b')]||'revision-start'!==_0x243928['name']&&'revision-end'!==_0x243928[_0x431f('0x6b')]))[_0x431f('0xe1')](_0x2523fc=>{_0x431f('0xe9')!=typeof _0x2523fc&&(_0x2523fc[_0x431f('0x62')]=this['_removeRevisionMarkers'](_0x2523fc['children']),_0x2523fc[_0x431f('0xd6')]=_0x2523fc[_0x431f('0xd6')][_0x431f('0x3d')](_0x35b920=>!_0x35b920[0x0][_0x431f('0x70')](_0x431f('0xc7'))));}),_0x4cc2ff;}}function J(_0x5856f4,_0xcea817){const _0x570285=_0xcea817['editing'][_0x431f('0x6e')][_0x431f('0xed')];if(_0x431f('0xe9')==typeof _0x5856f4)return new _0x2598fb(_0x570285,_0x5856f4);{const _0x2d294f=_0x5856f4['children'][_0x431f('0xaf')](_0x43ae43=>J(_0x43ae43,_0xcea817));return new(B[_0x5856f4['type']]||_0x460c82)(_0x570285,_0x5856f4[_0x431f('0x6b')],_0x5856f4[_0x431f('0xd6')],_0x2d294f);}}class H{constructor(_0x3dce30){this[_0x431f('0x4a')]=_0x3dce30,this[_0x431f('0x40')]=new Map(),this[_0x431f('0x65')]=-0x1,this[_0x431f('0xb6')]=-0x1,this[_0x431f('0x3e')]=new Map(),this[_0x431f('0x13')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x431f('0x5d')]=new Map(),this[_0x431f('0xa5')]=new Map(),this[_0x431f('0x87')]=new Map(),this[_0x431f('0x20')]=new Map(),this[_0x431f('0x8c')]=new Map(),this[_0x431f('0xca')]=new Map(),this[_0x431f('0x107')]=new Map(),this['_revisionId']=0x1;}['init'](_0x3b2c20){this[_0x431f('0xa3')]=_0x3b2c20;const _0x18ae80=new Map(),_0x316419=new Map(),_0x13d20f=this['editor']['model'][_0x431f('0xed')][_0x431f('0xfe')]['map'](_0x2721be=>_0x2721be[_0x431f('0xa')]);for(const _0x36338c of _0x13d20f){const _0x153d3f=this[_0x431f('0x4a')][_0x431f('0xaa')]['document'][_0x431f('0x4c')](_0x36338c),_0x2c8315=q(_0x153d3f);_0x18ae80[_0x431f('0x5f')](_0x36338c,_0x2c8315),_0x316419['set'](_0x36338c,Object[_0x431f('0xfc')](_0x153d3f[_0x431f('0xa1')]()));}const _0x13dee0=Array[_0x431f('0xdd')](this['editor']['model'][_0x431f('0xf8')])['map'](_0x493179=>[_0x493179[_0x431f('0x6b')],_0x493179[_0x431f('0x48')]()]),_0x58de0e=this[_0x431f('0xa3')]['version'];this[_0x431f('0xbe')](_0x58de0e,_0x18ae80,_0x13dee0,_0x316419),this[_0x431f('0x6')]=this[_0x431f('0x3a')];const _0xefc32a=new Map(),_0x173d9c=new Map();for(const _0x3f8f51 of _0x13d20f){const _0x166d78=G(_0x3f8f51);_0xefc32a['set'](_0x3f8f51,_0x166d78),_0x173d9c[_0x431f('0x5f')](_0x3f8f51,{});}this[_0x431f('0xbe')](Number[_0x431f('0x9e')],_0xefc32a,[],_0x173d9c);}['getData'](_0x177ae1,_0x18eedb){if(this['_lastFrom']===_0x177ae1&&this['_lastTo']<=_0x18eedb)this['_savedMetaData'][_0x431f('0x7f')]>0x1&&this['_removeMetaData'](this[_0x431f('0xb6')]),this[_0x431f('0xbb')](this['_lastTo'],_0x18eedb,!0x0);else{if(!this['_savedMetaData'][_0x431f('0x9')](_0x177ae1)){const _0x17a147=this['_getPreviousFrom'](_0x177ae1);this[_0x431f('0x5b')](_0x17a147,_0x177ae1,!0x1);}this[_0x431f('0x5b')](_0x177ae1,_0x18eedb,!0x0);}return this[_0x431f('0x65')]=_0x177ae1,this[_0x431f('0xb6')]=_0x18eedb,this[_0x431f('0xeb')]();}['loadState'](_0x3ab7de){this['_reset'](),this['_lastFrom']=_0x3ab7de[_0x431f('0x100')],this[_0x431f('0xb6')]=_0x3ab7de[_0x431f('0xcf')];for(const _0x1df3ba in _0x3ab7de[_0x431f('0xc9')]){const _0x324aa7=_0x3ab7de['diffData'][_0x1df3ba][_0x431f('0xba')],_0x1e8c95=_0x330c50(_0x3ab7de['diffData'][_0x1df3ba]['attributesBefore'])||{},_0x1b292e=this[_0x431f('0x83')](_0x3ab7de[_0x431f('0xc9')][_0x1df3ba][_0x431f('0x1b')]);_0x1b292e[_0x431f('0xa')]=_0x1df3ba,_0x1b292e['_isAttached']=!_0x324aa7||!_0x324aa7[_0x431f('0xdc')],_0x1b292e[_0x431f('0xdc')]=()=>_0x1b292e[_0x431f('0xac')],this[_0x431f('0x5d')][_0x431f('0x5f')](_0x1df3ba,_0x1b292e),this['_baseRootsAttributes'][_0x431f('0x5f')](_0x1df3ba,_0x1e8c95),_0x324aa7&&this[_0x431f('0x107')][_0x431f('0x5f')](_0x1df3ba,_0x324aa7);const _0x50767c=this['_makeIdsRoot'](_0x1b292e);this['_baseIdsRoots'][_0x431f('0x5f')](_0x1df3ba,_0x50767c);for(const [_0x82670f,_0x47c8f3]of _0x1b292e[_0x431f('0xf8')]){if(!_0x82670f[_0x431f('0x70')](_0x431f('0xc8')))continue;const _0x11779e=_0x82670f['split'](':')[0x2];for(const _0xdaf8a8 of _0x47c8f3[_0x431f('0x2c')]({'singleCharacters':!0x0})){const _0x3ddcb9=this[_0x431f('0xa7')](_0xdaf8a8),_0x2daa0e='elementEnd'==_0xdaf8a8[_0x431f('0xa0')]?_0xdaf8a8[_0x431f('0x2a')][_0x431f('0x36')]['slice'](0x0,-0x1):_0xdaf8a8[_0x431f('0x2a')]['path'],_0x52bfeb=_0x50767c['getNodeByPath'](_0x2daa0e)['getAttribute'](_0x3ddcb9);this['_touched'][_0x431f('0x5f')](_0x52bfeb,{'userId':_0x11779e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2be552=[...Array(this[_0x431f('0x3a')])[_0x431f('0x33')]()]['slice'](0x1)[_0x431f('0x3d')](_0x4a1e6e=>!this['_touched'][_0x431f('0x9')](_0x4a1e6e));let _0x44aeae=0x0;const _0x43152a=new Map();for(const _0x4f1b21 in _0x3ab7de[_0x431f('0xc9')]){const _0x2d2a4d=_0x3ab7de['diffData'][_0x4f1b21][_0x431f('0xba')],_0x1aef0e=_0x330c50(_0x3ab7de[_0x431f('0xc9')][_0x4f1b21][_0x431f('0x3f')])||{},_0x25abf0=this[_0x431f('0x83')](_0x3ab7de[_0x431f('0xc9')][_0x4f1b21][_0x431f('0xab')]);_0x25abf0[_0x431f('0xa')]=_0x4f1b21,_0x25abf0[_0x431f('0xac')]=!_0x2d2a4d||_0x2d2a4d[_0x431f('0xdc')],_0x25abf0[_0x431f('0xdc')]=()=>_0x25abf0['_isAttached'],this['_diffRoots']['set'](_0x4f1b21,_0x25abf0),this['_diffRootsAttributes']['set'](_0x4f1b21,_0x1aef0e);const _0x483ccd=this[_0x431f('0xbd')](_0x25abf0,Number[_0x431f('0x9e')]);this['_idsRoots'][_0x431f('0x5f')](_0x4f1b21,_0x483ccd),_0x43152a['set'](_0x4f1b21,_0x25abf0['isAttached']()?_0x1aef0e:{});for(const [_0x3e4126,_0x5291ef]of _0x25abf0[_0x431f('0xf8')]){if(!_0x3e4126[_0x431f('0x70')](_0x431f('0xc8')))continue;const _0x131ca7=_0x3e4126[_0x431f('0xb1')](':')[0x2];for(const _0x452d08 of _0x5291ef['getWalker']({'singleCharacters':!0x0})){const _0x53bd85=this[_0x431f('0xa7')](_0x452d08),_0x2cb1cc=this['_revisionId']++,_0xffcf60='elementEnd'==_0x452d08[_0x431f('0xa0')]?_0x452d08[_0x431f('0x2a')][_0x431f('0x36')][_0x431f('0x44')](0x0,-0x1):_0x452d08['previousPosition']['path'];_0x483ccd[_0x431f('0x7')](_0xffcf60)[_0x431f('0x105')](_0x53bd85,_0x2cb1cc),this['_touched']['set'](_0x2cb1cc,{'userId':_0x131ca7});}}for(const _0x26a91f of this[_0x431f('0x4a')][_0x431f('0xaa')][_0x431f('0x8')](_0x25abf0)[_0x431f('0x2c')]({'singleCharacters':!0x0})){const _0x4b143a=this[_0x431f('0xa7')](_0x26a91f),_0x32a2e2=_0x431f('0x8b')==_0x26a91f['type']?_0x26a91f['previousPosition'][_0x431f('0x36')][_0x431f('0x44')](0x0,-0x1):_0x26a91f['previousPosition'][_0x431f('0x36')],_0x52a4b3=_0x483ccd[_0x431f('0x7')](_0x32a2e2);_0x52a4b3[_0x431f('0x71')](_0x4b143a)>0x0||_0x52a4b3[_0x431f('0x105')](_0x4b143a,_0x2be552[_0x44aeae++]);}for(const [_0x4f7f33,_0x4c6299]of _0x25abf0[_0x431f('0xf8')])_0x4f7f33[_0x431f('0x70')]('revision:')||this[_0x431f('0x3e')][_0x431f('0x5f')](_0x4f7f33,_0x4c6299);}const _0x47ab30=G('$graveyard');this['_baseRoots'][_0x431f('0x5f')]('$graveyard',_0x47ab30),this[_0x431f('0x20')][_0x431f('0x5f')](_0x431f('0x46'),this[_0x431f('0xbd')](_0x47ab30,0x1));const _0x435c4a=G(_0x431f('0x46'));this[_0x431f('0x13')]['set'](_0x431f('0x46'),_0x435c4a),this[_0x431f('0x87')][_0x431f('0x5f')](_0x431f('0x46'),this[_0x431f('0xbd')](_0x435c4a,0x1));const _0x3daf41=Array[_0x431f('0xdd')](this['_diffRoots'])[_0x431f('0xaf')](([_0x5a12b6,_0x43380f])=>[_0x5a12b6,q(_0x43380f)]);this[_0x431f('0xbe')](this[_0x431f('0xb6')],_0x3daf41,this[_0x431f('0x3e')],_0x43152a);}[_0x431f('0x83')](_0x4185fb){const _0x20862d=JSON[_0x431f('0xf0')](_0x4185fb),_0x187397=this[_0x431f('0x4a')]['editing'][_0x431f('0x6e')][_0x431f('0xed')],_0x22a49b=new _0x384c62(_0x187397,_0x20862d[_0x431f('0xaf')](_0x264bbf=>J(_0x264bbf,this[_0x431f('0x4a')])));return this[_0x431f('0x4a')][_0x431f('0x106')]['toModel'](_0x22a49b);}[_0x431f('0xbe')](_0xcfe73b,_0x238e75,_0x1a56dc,_0x19ce22){const _0x20d6e5=new Map(_0x238e75),_0x46d34b=new Map(_0x330c50(_0x19ce22)),_0xbd7c10=new Map();for(const [_0x330cd8,_0x1cf4d1]of _0x1a56dc)_0xbd7c10[_0x431f('0x5f')](_0x330cd8,{'start':_0x1cf4d1[_0x431f('0x104')]['clone'](),'end':_0x1cf4d1[_0x431f('0x96')][_0x431f('0x23')](),'rootName':_0x1cf4d1['root'][_0x431f('0xa')]});this[_0x431f('0x40')][_0x431f('0x5f')](_0xcfe73b,{'roots':_0x20d6e5,'markers':_0xbd7c10,'rootsAttributes':_0x46d34b});}[_0x431f('0xe7')](_0x1e6d7f){this[_0x431f('0x40')][_0x431f('0x45')](_0x1e6d7f);}[_0x431f('0x17')](){this[_0x431f('0x9b')](),this[_0x431f('0x65')]=-0x1,this[_0x431f('0xb6')]=-0x1,this[_0x431f('0x40')][_0x431f('0x3b')](),this[_0x431f('0x78')](this['source']);}[_0x431f('0x9b')](){this[_0x431f('0x8c')]['clear'](),this[_0x431f('0xca')][_0x431f('0x3b')](),this[_0x431f('0x107')][_0x431f('0x3b')](),this[_0x431f('0x13')][_0x431f('0x3b')](),this[_0x431f('0xb0')][_0x431f('0x3b')](),this['_baseRoots'][_0x431f('0x3b')](),this['_baseRootsAttributes'][_0x431f('0x3b')](),this[_0x431f('0x87')][_0x431f('0x3b')](),this['_baseIdsRoots'][_0x431f('0x3b')](),this[_0x431f('0x3e')][_0x431f('0x3b')](),this[_0x431f('0x3a')]=0x1,this[_0x431f('0x6')]=this[_0x431f('0x3a')];}[_0x431f('0xbd')](_0x322896,_0x3af1af=null){let _0x3cc60d=null;_0x322896['is']('documentFragment')||(_0x3cc60d=new _0x25a114(_0x322896[_0x431f('0x6b')],{'vid_start':null===_0x3af1af?this[_0x431f('0x3a')]++:_0x3af1af++}));const _0x2ab93f=[];for(const _0x54dfd4 of _0x322896['getChildren']())if(_0x54dfd4['is']('element')){_0x2ab93f[_0x431f('0x102')](this[_0x431f('0xbd')](_0x54dfd4,_0x3af1af));const _0x153ab4=_0x2ab93f[_0x2ab93f['length']-0x1];null!==_0x3af1af&&(_0x3af1af=_0x153ab4['is'](_0x431f('0xa9'),_0x431f('0xd5'))?_0x153ab4[_0x431f('0x71')](_0x431f('0xf6'))+0x1:_0x153ab4[_0x431f('0x71')](_0x431f('0x34'))+0x1);}else for(let _0x3cc415=0x0;_0x3cc415<_0x54dfd4[_0x431f('0x25')];_0x3cc415++)_0x2ab93f[_0x431f('0x102')](new _0x25a114(_0x431f('0xd5'),{'vid':null===_0x3af1af?this['_revisionId']++:_0x3af1af++}));if(_0x322896['is'](_0x431f('0x76'))){const _0x103f6e=G(_0x322896['rootName']);return _0x103f6e[_0x431f('0x101')](0x0,_0x2ab93f),_0x103f6e;}return _0x3cc60d[_0x431f('0x105')]('vid_end',null===_0x3af1af?this[_0x431f('0x3a')]++:_0x3af1af++),_0x3cc60d[_0x431f('0x101')](0x0,_0x2ab93f),_0x3cc60d;}[_0x431f('0x5b')](_0x29bb48,_0x3f832b,_0x27d040){this[_0x431f('0x9b')]();const {roots:_0x137010,markers:_0x5bca46,rootsAttributes:_0x39ebcb}=this[_0x431f('0x40')]['get'](_0x29bb48);this[_0x431f('0x5d')]=new Map(_0x137010),this[_0x431f('0xa5')]=new Map(_0x330c50(_0x39ebcb));for(const [_0x1138c1,_0x18d58d]of this['_baseRoots'])if(_0x431f('0x46')!==_0x1138c1&&(this['_diffRoots'][_0x431f('0x5f')](_0x1138c1,q(_0x18d58d)),this[_0x431f('0xb0')]=new Map(_0x330c50(_0x39ebcb)),_0x27d040)){const _0x260514=this[_0x431f('0x3a')];this['_idsRoots']['set'](_0x1138c1,this['_makeIdsRoot'](_0x18d58d)),this[_0x431f('0x20')][_0x431f('0x5f')](_0x1138c1,this['_makeIdsRoot'](_0x18d58d,_0x260514));}this[_0x431f('0x6')]=this[_0x431f('0x3a')],this[_0x431f('0x13')]['set'](_0x431f('0x46'),q(this[_0x431f('0x5d')]['get'](_0x431f('0x46')))),_0x27d040&&this[_0x431f('0x87')][_0x431f('0x5f')](_0x431f('0x46'),this[_0x431f('0xbd')](this[_0x431f('0x5d')][_0x431f('0x2d')](_0x431f('0x46'))));for(const [_0x25c2d4,_0x2fb0f8]of _0x5bca46){const _0x516d37=this[_0x431f('0x5d')][_0x431f('0x2d')](_0x2fb0f8[_0x431f('0xa')]),_0x2023f3=this[_0x431f('0x13')][_0x431f('0x2d')](_0x2fb0f8['rootName']),_0x3c131a=new _0x1415b9(this[_0x431f('0x51')](_0x2fb0f8[_0x431f('0x104')],_0x516d37),this[_0x431f('0x51')](_0x2fb0f8[_0x431f('0x96')],_0x516d37)),_0x30a4c1=this[_0x431f('0xe6')](_0x3c131a,_0x2023f3);_0x516d37[_0x431f('0xf8')]['set'](_0x25c2d4,_0x3c131a),this[_0x431f('0x3e')][_0x431f('0x5f')](_0x25c2d4,_0x30a4c1);}this['_applyOperations'](_0x29bb48,_0x3f832b,_0x27d040);}['_applyOperations'](_0x58ee0d,_0x3fa8ca,_0x219c57){for(const _0x5f008f of this[_0x431f('0xa3')][_0x431f('0x89')](_0x58ee0d,_0x3fa8ca))this[_0x431f('0xa4')](_0x5f008f,_0x219c57);for(const _0x7bdaea of this[_0x431f('0x13')][_0x431f('0xcb')]())_0x7bdaea[_0x431f('0xf8')][_0x431f('0x3b')]();for(const [_0x27d846,_0xe25650]of this[_0x431f('0x3e')]){this[_0x431f('0x13')][_0x431f('0x2d')](_0xe25650[_0x431f('0x6a')][_0x431f('0xa')])[_0x431f('0xf8')]['set'](_0x27d846,_0xe25650[_0x431f('0x23')]());}const _0x16161d=new Map(),_0x3373e2=new Map();for(const [_0x45d128,_0x3ca2d3]of this[_0x431f('0x13')])_0x16161d[_0x431f('0x5f')](_0x45d128,q(_0x3ca2d3)),_0x3373e2['set'](_0x45d128,this['_diffRootsAttributes'][_0x431f('0x2d')](_0x45d128));this[_0x431f('0xbe')](_0x3fa8ca,_0x16161d,this[_0x431f('0x3e')],_0x3373e2);}[_0x431f('0xec')](_0x5eae43){const _0x66ff0=Array[_0x431f('0xdd')](this[_0x431f('0x40')][_0x431f('0x33')]());_0x66ff0[_0x431f('0x50')]((_0x34d483,_0x1487fa)=>_0x34d483-_0x1487fa),_0x66ff0[_0x431f('0x4f')]();for(const _0x318cb3 of _0x66ff0)if(_0x318cb3<_0x5eae43)return _0x318cb3;return Number[_0x431f('0x9e')];}[_0x431f('0x6c')](_0x51ecbc,_0x4ca55c){const _0x55a6c8=Array['from'](_0x4ca55c['markers'])['map'](([_0x2cb04b,_0x4b9bb9])=>[_0x2cb04b,this['_fixRange'](_0x4b9bb9,_0x51ecbc)]);_0x51ecbc[_0x431f('0xf8')]=new Map(_0x55a6c8);}['_transformMarkers'](_0x2ee541){for(const _0x1aaba0 of this['_markers']['values']()){const _0x3dfe9f=_0x1aaba0[_0x431f('0xe5')](_0x2ee541),_0x261829=_0x1415b9['_createFromRanges'](_0x3dfe9f);_0x1aaba0[_0x431f('0x104')]=_0x261829['start'],_0x1aaba0[_0x431f('0x96')]=_0x261829[_0x431f('0x96')];}}[_0x431f('0xa4')](_0xc29844,_0x408c6d){if('addRoot'==_0xc29844[_0x431f('0xa0')]||_0x431f('0x28')==_0xc29844[_0x431f('0xa0')])return void this[_0x431f('0xf5')](_0xc29844,_0x408c6d);if(_0x431f('0xbc')==_0xc29844[_0x431f('0xa0')]){const _0x31ebfe=_0xc29844['position'][_0x431f('0x6a')][_0x431f('0xa')];this[_0x431f('0x13')][_0x431f('0x9')](_0x31ebfe)||(this[_0x431f('0x13')][_0x431f('0x5f')](_0x31ebfe,G(_0x31ebfe,!0x0)),this[_0x431f('0xb0')][_0x431f('0x5f')](_0x31ebfe,{}),_0x408c6d&&this[_0x431f('0x87')][_0x431f('0x5f')](_0x31ebfe,G(_0x31ebfe,!0x0)));}else{if(_0x431f('0x85')==_0xc29844[_0x431f('0xa0')]||_0x431f('0xe8')==_0xc29844[_0x431f('0xa0')]||_0x431f('0xb9')==_0xc29844[_0x431f('0xa0')])return void this[_0x431f('0xd9')](_0xc29844);}const _0x6cfe66=this[_0x431f('0x21')](_0xc29844,this[_0x431f('0x13')]);if(_0x431f('0x55')!==_0xc29844['type']&&(_0x6cfe66[_0x431f('0x27')](),this['_transformMarkers'](_0x6cfe66)),_0x408c6d)switch(_0x6cfe66[_0x431f('0xa0')]){case _0x431f('0xbc'):this[_0x431f('0x86')](_0xc29844);break;case'move':case _0x431f('0x109'):case _0x431f('0x1c'):this[_0x431f('0xf4')](_0xc29844);break;case'merge':this[_0x431f('0x1e')](_0xc29844);break;case _0x431f('0xb1'):this['_handleSplitOperation'](_0xc29844);break;case _0x431f('0x55'):this[_0x431f('0xc2')](_0xc29844);}}[_0x431f('0x21')](_0x1dbbe3,_0xa18747){const _0x2d642c=_0x1dbbe3[_0x431f('0x23')]();return _0x2d642c[_0x431f('0x11')]=_0x1dbbe3[_0x431f('0x11')],this['_fixOperation'](_0x2d642c,_0xa18747),_0x2d642c;}[_0x431f('0xf2')](_0x159ba5){return _0x159ba5[_0x431f('0xaf')](_0x41184b=>{const _0x2ab020=this[_0x431f('0xa7')](_0x41184b);return Number(_0x41184b['item'][_0x431f('0x71')](_0x2ab020));});}[_0x431f('0x8e')](_0x43c6c4,_0x13db03){if(_0x43c6c4['is'](_0x431f('0xa9'),'$text'))_0x13db03[_0x431f('0x102')]({'item':_0x43c6c4,'type':_0x431f('0x12')});else{_0x43c6c4['is']('element')&&_0x13db03[_0x431f('0x102')]({'item':_0x43c6c4,'type':_0x431f('0x7d')});for(const _0x20f405 of _0x43c6c4['getChildren']())this[_0x431f('0x8e')](_0x20f405,_0x13db03);_0x43c6c4['is'](_0x431f('0xa9'))&&_0x13db03[_0x431f('0x102')]({'item':_0x43c6c4,'type':_0x431f('0x8b')});}return _0x13db03;}[_0x431f('0xeb')](){const _0xb53861=new Map(this['_touched']),_0x515ee3=new Map(_0xb53861),_0xf5d2a0=new Map(),_0x446551={'insertions':{},'deletions':{}},_0x4ca124={'insertions':{},'deletions':{}},_0x49197e=new Map(),_0x316e0a=new Set([...this['_baseRoots'][_0x431f('0x33')](),...this[_0x431f('0x13')]['keys']()]);_0x316e0a[_0x431f('0x45')]('$graveyard');for(const _0x20117b of _0x316e0a){const _0x288047=this[_0x431f('0x13')][_0x431f('0x2d')](_0x20117b)||G(_0x20117b,!0x1),_0x55ce86=this[_0x431f('0x5d')][_0x431f('0x2d')](_0x20117b)||G(_0x20117b,!0x1);_0x288047[_0x431f('0xdc')]()||_0x55ce86[_0x431f('0xdc')]()?(_0x446551[_0x431f('0xab')][_0x20117b]=q(_0x288047),_0x446551[_0x431f('0x1b')][_0x20117b]=q(_0x55ce86),this[_0x431f('0x6c')](_0x446551[_0x431f('0x1b')][_0x20117b],_0x55ce86),this[_0x431f('0x6c')](_0x446551[_0x431f('0xab')][_0x20117b],_0x288047),_0x4ca124[_0x431f('0xab')][_0x20117b]=this['_generateTape'](this[_0x431f('0x87')][_0x431f('0x2d')](_0x20117b),[]),_0x4ca124[_0x431f('0x1b')][_0x20117b]=this[_0x431f('0x8e')](this[_0x431f('0x20')][_0x431f('0x2d')](_0x20117b)||G(_0x20117b,!0x1),[])):_0x316e0a[_0x431f('0x45')](_0x20117b);}for(const _0x5b30eb of _0x316e0a){const _0x44ba6c=_0x4ca124[_0x431f('0xab')][_0x5b30eb];for(const _0x52f5bf of _0x44ba6c){const _0x57c278=this[_0x431f('0xa7')](_0x52f5bf),_0x197b19=_0x52f5bf['item'][_0x431f('0x71')](_0x57c278);_0x515ee3['delete'](_0x197b19),_0x197b19>=this[_0x431f('0x6')]&&_0xf5d2a0['set'](_0x197b19,_0xb53861['get'](_0x197b19));}}for(const _0x29d9d2 of _0x316e0a){const _0x5cd657=_0x4ca124[_0x431f('0xab')][_0x29d9d2],_0x3160a3=this[_0x431f('0xf2')](_0x4ca124[_0x431f('0x1b')][_0x29d9d2]);let _0x1df3d5=0x0;for(const _0x1f0132 of _0x5cd657){const _0x5c556a=this[_0x431f('0xa7')](_0x1f0132),_0x11d836=_0x1f0132['item'][_0x431f('0x71')](_0x5c556a);if(!_0xf5d2a0[_0x431f('0x9')](_0x11d836)&&!_0x49197e[_0x431f('0x9')](_0x11d836)){if(_0x515ee3[_0x431f('0x9')](_0x11d836))_0x1df3d5++;else{if(_0x11d836!=_0x3160a3[_0x1df3d5]){const _0x4da5b7=_0xb53861['get'](_0x11d836)||_0xb53861['get'](_0x3160a3[_0x1df3d5]);for(;_0x11d836!=_0x3160a3[_0x1df3d5];)_0x515ee3[_0x431f('0x9')](_0x3160a3[_0x1df3d5])||(_0x49197e[_0x431f('0x5f')](_0x3160a3[_0x1df3d5],_0x4da5b7),_0xb53861[_0x431f('0x5f')](_0x3160a3[_0x1df3d5],_0x4da5b7)),_0x1df3d5++;}_0x1df3d5++;}}}}for(const _0x3344cf of _0x316e0a){const _0x33cecb=_0x4ca124['insertions'][_0x3344cf];for(const _0x2a8b0c of _0x33cecb){const _0x4fc4f0=this[_0x431f('0xa7')](_0x2a8b0c),_0x452e14=_0x2a8b0c[_0x431f('0xc4')][_0x431f('0x71')](_0x4fc4f0);if(_0x49197e[_0x431f('0x9')](_0x452e14)){const _0x4e77a3=_0x49197e['get'](_0x452e14);_0x515ee3['has'](_0x452e14)||_0x515ee3[_0x431f('0x5f')](_0x452e14,{..._0x4e77a3}),_0xf5d2a0[_0x431f('0x5f')](_0x452e14,{..._0x4e77a3});}}}for(const _0x48fd58 of _0x515ee3[_0x431f('0x33')]())_0x48fd58>=this[_0x431f('0x6')]&&_0x515ee3[_0x431f('0x45')](_0x48fd58);const _0x1d188e=new Map();for(const _0x34eaf4 of _0x316e0a){let _0x3565ce=_0x4ca124['insertions'][_0x34eaf4];for(const _0x34df1f of _0x3565ce)if(_0x34df1f[_0x431f('0xc4')]['is'](_0x431f('0xa9'),_0x431f('0x103'))){const _0x3f9d3e=this['_getVidAttributeName'](_0x34df1f),_0x152b6f=_0x34df1f[_0x431f('0xc4')][_0x431f('0x71')](_0x3f9d3e);if(_0xf5d2a0['has'](_0x152b6f)){const _0x562210=_0x34df1f['item'][_0x431f('0xb2')][_0x431f('0xb2')][_0x431f('0x71')]('vid_start'),_0x2b3d20=_0x1d188e[_0x431f('0x2d')](_0x562210)||new Set();_0x2b3d20['add'](_0xf5d2a0[_0x431f('0x2d')](_0x152b6f)['userId']),_0x1d188e[_0x431f('0x5f')](_0x562210,_0x2b3d20);}}_0x3565ce=_0x4ca124[_0x431f('0x1b')][_0x34eaf4];for(const _0x5567e9 of _0x3565ce)if(_0x5567e9[_0x431f('0xc4')]['is'](_0x431f('0xa9'),_0x431f('0x103'))){const _0x284c5c=this[_0x431f('0xa7')](_0x5567e9),_0x298511=_0x5567e9[_0x431f('0xc4')][_0x431f('0x71')](_0x284c5c);if(_0x515ee3[_0x431f('0x9')](_0x298511)){const _0x33d268=_0x5567e9['item'][_0x431f('0xb2')][_0x431f('0xb2')][_0x431f('0x71')](_0x431f('0x16')),_0x529537=_0x1d188e[_0x431f('0x2d')](_0x33d268)||new Set();_0x529537['add'](_0x515ee3[_0x431f('0x2d')](_0x298511)['userId']),_0x1d188e[_0x431f('0x5f')](_0x33d268,_0x529537);}}for(const _0x59d1ba of _0x1d188e['keys']())(_0xf5d2a0[_0x431f('0x9')](_0x59d1ba)||_0x515ee3['has'](_0x59d1ba))&&_0x1d188e['delete'](_0x59d1ba);}for(const _0x668dcd of _0x316e0a){const _0x49f8ff=_0x4ca124[_0x431f('0xab')][_0x668dcd];let _0x5f0de8=null,_0x275d09=null;for(const _0x522e19 of _0x49f8ff){const _0x666a24=this[_0x431f('0xa7')](_0x522e19),_0x3c008c=_0x522e19['item']['getAttribute'](_0x666a24),_0x419c12=_0x1d188e[_0x431f('0x2d')](_0x3c008c);_0x419c12&&_0x431f('0x7d')==_0x522e19[_0x431f('0xa0')]&&(_0x5f0de8=Array[_0x431f('0xdd')](_0x419c12)[0x0],_0x275d09=_0x522e19[_0x431f('0xc4')][_0x431f('0x71')](_0x431f('0x34'))),_0x5f0de8&&(_0x515ee3[_0x431f('0x5f')](_0x3c008c,{'userId':_0x5f0de8}),_0xf5d2a0[_0x431f('0x5f')](_0x3c008c,{'userId':_0x5f0de8})),_0x3c008c==_0x275d09&&(_0x5f0de8=null,_0x275d09=null);}}const _0x44aaf2={},_0xc7041c=new Set();for(const _0x147a25 of _0x316e0a){const _0x3fe381=_0x446551[_0x431f('0x1b')][_0x147a25],_0x2f87cc=_0x446551[_0x431f('0xab')][_0x147a25];for(const {userId:_0x1147b6}of this[_0x431f('0xca')][_0x431f('0xcb')]())null!==_0x1147b6&&_0xc7041c[_0x431f('0x9a')](_0x1147b6);for(const {userId:_0xbaa47b}of this['_touchedRoots'][_0x431f('0xcb')]())null!==_0xbaa47b&&_0xc7041c[_0x431f('0x9a')](_0xbaa47b);this['_markChanges'](_0x2f87cc,_0x4ca124[_0x431f('0xab')][_0x147a25],_0xf5d2a0,_0x431f('0x66'),_0xc7041c),this[_0x431f('0x5e')](_0x3fe381,_0x4ca124[_0x431f('0x1b')][_0x147a25],_0x515ee3,_0x431f('0x5'),_0xc7041c),_0x44aaf2[_0x147a25]={'insertions':this[_0x431f('0x7b')](_0x2f87cc),'deletions':this[_0x431f('0x7b')](_0x3fe381),'attachChange':this[_0x431f('0x107')][_0x431f('0x2d')](_0x147a25)||null,'attributesBefore':_0x330c50(this[_0x431f('0xa5')][_0x431f('0x2d')](_0x147a25))||{},'attributesAfter':_0x330c50(this[_0x431f('0xb0')][_0x431f('0x2d')](_0x147a25))};}return{'diffData':_0x44aaf2,'authorsIds':Array['from'](_0xc7041c)};}[_0x431f('0x77')](_0x3f75e6){for(const [,_0x25ebb2]of _0x3f75e6[_0x431f('0xf8')]){const _0x3f4981=_0x25ebb2['start'][_0x431f('0xc5')]()[_0x431f('0x3d')](_0x297a49=>'tableCell'==_0x297a49[_0x431f('0x6b')]);for(const _0x1ab334 of _0x3f4981)0x1==_0x1ab334[_0x431f('0x15')]&&_0x1ab334[_0x431f('0x41')](0x0)['is'](_0x431f('0xa9'),_0x431f('0xe0'))&&_0x1ab334[_0x431f('0x41')](0x0)[_0x431f('0x105')]('keepParagraph',!0x0);}}[_0x431f('0x7b')](_0x5333c6){this['_processRootBeforeSave'](_0x5333c6);const _0x11324a=this[_0x431f('0x4a')][_0x431f('0x106')][_0x431f('0xde')](_0x5333c6,{}),_0xcb892e=Array[_0x431f('0xdd')](_0x11324a[_0x431f('0xd')]())[_0x431f('0xaf')](_0x348b92=>this['_getViewJson'](_0x348b92));return JSON[_0x431f('0xae')](_0xcb892e);}[_0x431f('0x39')](_0x50b7e3){if(_0x50b7e3['is'](_0x431f('0xd5')))return _0x50b7e3[_0x431f('0x106')];{const _0x32f9b4=_0x50b7e3;return{'type':Object[_0x431f('0x33')](B)[_0x431f('0xd7')](_0xd2729b=>_0x50b7e3 instanceof B[_0xd2729b]),'name':_0x32f9b4[_0x431f('0x6b')],'attributes':Array[_0x431f('0xdd')](_0x32f9b4[_0x431f('0xa1')]()),'children':Array[_0x431f('0xdd')](_0x32f9b4[_0x431f('0xd')]())[_0x431f('0xaf')](_0x4e2f4f=>this[_0x431f('0x39')](_0x4e2f4f))};}}[_0x431f('0x5e')](_0x46e0d6,_0x132762,_0x57394e,_0xb86111,_0x45c345){let _0x3c5d0b=null,_0x4f7be2=null,_0x59766a=0x0;const _0x2e6cd6=this['editor']['model'];for(let _0x450b26=0x0;_0x450b26<_0x132762[_0x431f('0x90')];_0x450b26++){const _0x8451c9=this[_0x431f('0xa7')](_0x132762[_0x450b26]),_0x8c0995=_0x132762[_0x450b26][_0x431f('0xc4')][_0x431f('0x71')](_0x8451c9),_0x160474=_0x57394e[_0x431f('0x2d')](_0x8c0995),_0x6e8e8f=_0x450b26==_0x132762['length']-0x1;(!_0x3c5d0b&&_0x160474&&(_0x3c5d0b=_0x160474,_0x4f7be2=_0x132762[_0x450b26]),_0x3c5d0b&&(!_0x160474||_0x160474[_0x431f('0xe4')]!=_0x3c5d0b[_0x431f('0xe4')]))&&(_0x2a5e7d(_0x160474,L(_0x4f7be2,_0x46e0d6,_0x2e6cd6),L(_0x132762[_0x450b26],_0x46e0d6,_0x2e6cd6)),_0x3c5d0b=_0x160474||null,_0x4f7be2=_0x160474?_0x132762[_0x450b26]:null),_0x3c5d0b&&_0x6e8e8f&&_0x2a5e7d(_0x160474,L(_0x4f7be2,_0x46e0d6,_0x2e6cd6),W(_0x132762[_0x450b26],_0x46e0d6,_0x2e6cd6));}function _0x2a5e7d(_0x2d7047,_0x3abc12,_0x2c418a){const _0x548890=_0x3c5d0b[_0x431f('0xe4')],_0x522f48='revision:'+_0xb86111+':'+_0x548890+':'+_0x59766a++,_0xd8f105=_0x2e6cd6[_0x431f('0x91')](_0x3abc12,_0x2c418a);_0x46e0d6[_0x431f('0xf8')]['set'](_0x522f48,_0xd8f105),null!==_0x548890&&_0x45c345[_0x431f('0x9a')](_0x548890);}}['_getVidAttributeName'](_0x15d324){switch(_0x15d324['type']){case _0x431f('0x7d'):return _0x431f('0x16');case _0x431f('0x8b'):return _0x431f('0x34');default:return'vid';}}['_fixOperation'](_0x1d670c,_0x1d8bbe){_0x1d670c[_0x431f('0x68')]=null;for(const _0x2f7aae in _0x1d670c){const _0x2a74a7=_0x1d670c[_0x2f7aae];if(_0x2a74a7 instanceof _0x1514a2){const _0x1df449=_0x1d8bbe[_0x431f('0x2d')](_0x2a74a7[_0x431f('0x6a')][_0x431f('0xa')]);_0x1d670c[_0x2f7aae]=this['_fixPosition'](_0x2a74a7,_0x1df449);}if(_0x2a74a7 instanceof _0x1415b9){const _0x2ec5d4=_0x1d8bbe[_0x431f('0x2d')](_0x2a74a7[_0x431f('0x6a')][_0x431f('0xa')]);_0x1d670c[_0x2f7aae]=this[_0x431f('0xe6')](_0x2a74a7,_0x2ec5d4);}_0x431f('0x6a')===_0x2f7aae&&(_0x1d670c[_0x431f('0x6a')]=_0x1d8bbe[_0x431f('0x2d')](_0x1d670c[_0x431f('0x6a')][_0x431f('0xa')]));}}['_fixRange'](_0x552f88,_0x3d5cbb){return this[_0x431f('0x4a')]['model'][_0x431f('0x91')](this[_0x431f('0x51')](_0x552f88[_0x431f('0x104')],_0x3d5cbb),this[_0x431f('0x51')](_0x552f88[_0x431f('0x96')],_0x3d5cbb));}[_0x431f('0x51')](_0xb17852,_0x2d70ad){return this[_0x431f('0x4a')][_0x431f('0xaa')][_0x431f('0xfb')](_0x2d70ad,_0xb17852[_0x431f('0x36')],_0xb17852['stickiness']);}[_0x431f('0x86')](_0x2eb1c4){const _0x1f2974=this[_0x431f('0x87')][_0x431f('0x2d')](_0x2eb1c4[_0x431f('0x6d')]['root'][_0x431f('0xa')]),_0xbf6a9d=this[_0x431f('0x51')](_0x2eb1c4[_0x431f('0x6d')],_0x1f2974),_0x499922=null===_0x2eb1c4[_0x431f('0x11')]?null:_0x2eb1c4[_0x431f('0x11')]||this[_0x431f('0x4a')][_0x431f('0x22')][_0x431f('0x2d')](_0x431f('0x24'))['me']['id'],_0x5861ab=_0xbf6a9d[_0x431f('0xb2')],_0x1accbb=this['_revisionId'],_0x428025=[];for(const _0x171722 of _0x2eb1c4[_0x431f('0xb3')])if(_0x171722['is'](_0x431f('0xa9')))_0x428025[_0x431f('0x102')](this['_makeIdsRoot'](_0x171722));else for(let _0x1b151f=0x0;_0x1b151f<_0x171722[_0x431f('0x25')];_0x1b151f++)_0x428025[_0x431f('0x102')](new _0x25a114(_0x431f('0xd5'),{'vid':this[_0x431f('0x3a')]++}));const _0x5069f1=this[_0x431f('0x3a')];for(let _0x48dd65=_0x1accbb;_0x48dd65<_0x5069f1;_0x48dd65++)this[_0x431f('0x8c')][_0x431f('0x5f')](_0x48dd65,{'userId':_0x499922});_0x5861ab['_insertChild'](_0xbf6a9d['offset'],_0x428025);}[_0x431f('0xf4')](_0x5538b3){(_0x5538b3=this[_0x431f('0x21')](_0x5538b3,this[_0x431f('0x87')]))[_0x431f('0x27')]();const _0x4e16cd=null===_0x5538b3['_authorId']?null:_0x5538b3[_0x431f('0x11')]||this[_0x431f('0x4a')]['plugins'][_0x431f('0x2d')](_0x431f('0x24'))['me']['id'],_0x4eda6e=_0x5538b3['getMovedRangeStart'](),_0x5d4091=_0x4eda6e[_0x431f('0xb2')],_0x55aafb=_0x4eda6e[_0x431f('0x108')];!function _0x4bdda5(_0x16cbf0,_0x2d1604,_0x4477e4,_0x1aaec7){for(let _0x41628f=_0x4477e4;_0x41628f<_0x1aaec7;_0x41628f++){const _0xd37257=_0x2d1604[_0x431f('0x41')](_0x41628f);_0xd37257['is'](_0x431f('0xa9'),'$text')?_0x16cbf0[_0x431f('0x5f')](_0xd37257[_0x431f('0x71')](_0x431f('0xf6')),{'userId':_0x4e16cd}):(_0x16cbf0[_0x431f('0x5f')](_0xd37257[_0x431f('0x71')]('vid_start'),{'userId':_0x4e16cd}),_0x4bdda5(_0x16cbf0,_0xd37257,0x0,_0xd37257['childCount']),_0x16cbf0['set'](_0xd37257[_0x431f('0x71')]('vid_end'),{'userId':_0x4e16cd}));}}(this[_0x431f('0x8c')],_0x5d4091,_0x55aafb,_0x55aafb+_0x5538b3[_0x431f('0x4e')]);}['_handleMergeOperation'](_0x4d5649){const _0x2129d1=null===(_0x4d5649=this[_0x431f('0x21')](_0x4d5649,this['_idsRoots']))['_authorId']?null:_0x4d5649['_authorId']||this[_0x431f('0x4a')][_0x431f('0x22')][_0x431f('0x2d')](_0x431f('0x24'))['me']['id'],_0x5e1748=_0x4d5649['targetPosition'][_0x431f('0xb2')],_0x98815e=_0x4d5649[_0x431f('0x64')][_0x431f('0xb2')],_0x24cf70=_0x5e1748[_0x431f('0x71')](_0x431f('0x34')),_0x432ce7=_0x98815e[_0x431f('0x71')](_0x431f('0x16'));_0x5e1748['_setAttribute'](_0x431f('0x34'),_0x98815e['getAttribute'](_0x431f('0x34'))),_0x98815e[_0x431f('0x105')](_0x431f('0x34'),_0x24cf70),this[_0x431f('0x8c')][_0x431f('0x5f')](_0x432ce7,{'userId':_0x2129d1}),this[_0x431f('0x8c')][_0x431f('0x5f')](_0x24cf70,{'userId':_0x2129d1}),_0x4d5649['_execute']();}[_0x431f('0x35')](_0x27dc6e){const _0x35b8db=null===(_0x27dc6e=this['_cloneOperation'](_0x27dc6e,this[_0x431f('0x87')]))[_0x431f('0x11')]?null:_0x27dc6e[_0x431f('0x11')]||this[_0x431f('0x4a')][_0x431f('0x22')][_0x431f('0x2d')](_0x431f('0x24'))['me']['id'],_0x299826=_0x27dc6e[_0x431f('0x54')],_0x57ce8b=_0x27dc6e[_0x431f('0xf9')][_0x431f('0xb2')];_0x27dc6e[_0x431f('0x27')]();const _0x4b3e12=_0x57ce8b['getAttribute'](_0x431f('0x34')),_0x1cd5a1=_0x27dc6e['insertionPosition'][_0x431f('0xa2')];if(_0x299826){const _0x221743=_0x1cd5a1[_0x431f('0x71')]('vid_end'),_0x320a68=_0x57ce8b[_0x431f('0x71')](_0x431f('0x34'));_0x57ce8b[_0x431f('0x105')](_0x431f('0x34'),_0x221743),_0x1cd5a1[_0x431f('0x105')]('vid_end',_0x320a68),this[_0x431f('0x8c')]['set'](_0x57ce8b[_0x431f('0x71')](_0x431f('0x34')),{'userId':_0x35b8db}),this[_0x431f('0x8c')][_0x431f('0x5f')](_0x1cd5a1[_0x431f('0x71')](_0x431f('0x16')),{'userId':_0x35b8db});}else{const _0x536b81=this[_0x431f('0x3a')]++,_0xcc7f5a=this['_revisionId']++;_0x57ce8b[_0x431f('0x105')]('vid_end',_0x536b81),_0x1cd5a1[_0x431f('0x105')]('vid_start',_0xcc7f5a),_0x1cd5a1[_0x431f('0x105')](_0x431f('0x34'),_0x4b3e12),this['_touched'][_0x431f('0x5f')](_0x536b81,{'userId':_0x35b8db}),this[_0x431f('0x8c')][_0x431f('0x5f')](_0xcc7f5a,{'userId':_0x35b8db});}}[_0x431f('0xc2')](_0x9863d8){if(!_0x9863d8[_0x431f('0x31')])return;const _0x42e2fa=(_0x9863d8=this[_0x431f('0x21')](_0x9863d8,this['_diffRoots']))[_0x431f('0xfd')]?_0x9863d8['oldRange'][_0x431f('0x6a')]:null,_0x4ddde1=_0x9863d8['newRange']?_0x9863d8['newRange']['root']:null;_0x42e2fa&&this['_markers'][_0x431f('0x45')](_0x9863d8[_0x431f('0x6b')]),_0x4ddde1&&this[_0x431f('0x3e')][_0x431f('0x5f')](_0x9863d8[_0x431f('0x6b')],_0x9863d8[_0x431f('0x4d')][_0x431f('0x23')]());const _0x3d6727=null===_0x9863d8[_0x431f('0x11')]?null:_0x9863d8[_0x431f('0x11')]||this[_0x431f('0x4a')][_0x431f('0x22')]['get'](_0x431f('0x24'))['me']['id'],_0x2f8089=_0x9863d8[_0x431f('0x6b')];if(!this[_0x431f('0xca')][_0x431f('0x9')](_0x2f8089))return void this[_0x431f('0xca')][_0x431f('0x5f')](_0x2f8089,{'range':_0x9863d8[_0x431f('0xfd')],'userId':_0x3d6727});const _0xb38375=this[_0x431f('0xca')][_0x431f('0x2d')](_0x2f8089),_0x43114c=_0xb38375[_0x431f('0xd4')],_0x4f059=_0x9863d8['newRange'];null==_0x43114c&&null==_0x4f059||_0x43114c&&_0x4f059&&_0x43114c[_0x431f('0xe')](_0x4f059)?this['_touchedMarkers'][_0x431f('0x45')](_0x9863d8[_0x431f('0x6b')]):_0xb38375[_0x431f('0xe4')]=_0x3d6727;}[_0x431f('0xf5')](_0x55cbff,_0x4a94c2){this['_diffRoots'][_0x431f('0x9')](_0x55cbff[_0x431f('0xa')])?this[_0x431f('0x13')][_0x431f('0x2d')](_0x55cbff['rootName'])[_0x431f('0xac')]=_0x55cbff[_0x431f('0xf1')]:(this[_0x431f('0x13')][_0x431f('0x5f')](_0x55cbff[_0x431f('0xa')],G(_0x55cbff[_0x431f('0xa')],!0x0)),this['_diffRootsAttributes'][_0x431f('0x5f')](_0x55cbff[_0x431f('0xa')],{}),_0x4a94c2&&this['_idsRoots'][_0x431f('0x5f')](_0x55cbff[_0x431f('0xa')],G(_0x55cbff[_0x431f('0xa')],!0x0)));const _0x2cce31=null===_0x55cbff[_0x431f('0x11')]?null:_0x55cbff[_0x431f('0x11')]||this['editor']['plugins'][_0x431f('0x2d')](_0x431f('0x24'))['me']['id'],_0x4414dd=this[_0x431f('0x107')][_0x431f('0x2d')](_0x55cbff['rootName']);_0x4414dd&&_0x4414dd[_0x431f('0xe4')]===_0x2cce31?this[_0x431f('0x107')][_0x431f('0x45')](_0x55cbff[_0x431f('0xa')]):this[_0x431f('0x107')]['set'](_0x55cbff[_0x431f('0xa')],{'userId':_0x2cce31,'isAttached':_0x55cbff[_0x431f('0xf1')]});}['_handleRootAttributeOperation'](_0x248d9b){const _0x37d917=this['_diffRootsAttributes'][_0x431f('0x2d')](_0x248d9b['root']['rootName']);null===_0x248d9b['newValue']?delete _0x37d917[_0x248d9b['key']]:_0x37d917[_0x248d9b[_0x431f('0xd8')]]=_0x248d9b[_0x431f('0xd0')];}}function q(_0x486d42){const _0x200ec0=G(_0x486d42[_0x431f('0xa')],_0x486d42[_0x431f('0xdc')]());for(const _0x45930d of _0x486d42[_0x431f('0xd')]()){const _0x3db13c=_0x45930d[_0x431f('0x7e')](!0x0);_0x200ec0[_0x431f('0xb5')](_0x3db13c);}return _0x200ec0;}function G(_0x32d71c,_0x148f70=!0x0){const _0x3465b1=new _0x273bfd();return _0x3465b1[_0x431f('0xa')]=_0x32d71c,_0x3465b1[_0x431f('0xac')]=_0x148f70,_0x3465b1[_0x431f('0xdc')]=()=>_0x3465b1['_isAttached'],_0x3465b1;}function L(_0xbe3614,_0x2c8ed8,_0x8b25f8){const _0x1f4f25='elementEnd'==_0xbe3614[_0x431f('0xa0')]?_0x8b25f8[_0x431f('0x84')](_0xbe3614[_0x431f('0xc4')],_0x431f('0x96')):_0x8b25f8[_0x431f('0x61')](_0xbe3614[_0x431f('0xc4')]);return _0x8b25f8['createPositionFromPath'](_0x2c8ed8,_0x1f4f25[_0x431f('0x36')],_0x1f4f25[_0x431f('0xd1')]);}function W(_0x2ca15b,_0x2eb0a2,_0x455364){const _0x1dbdb5=_0x431f('0x7d')==_0x2ca15b[_0x431f('0xa0')]?_0x455364[_0x431f('0x84')](_0x2ca15b[_0x431f('0xc4')],0x0):_0x455364[_0x431f('0xc6')](_0x2ca15b['item']);return _0x455364[_0x431f('0xfb')](_0x2eb0a2,_0x1dbdb5[_0x431f('0x36')],_0x1dbdb5[_0x431f('0xd1')]);}
|
|
23
|
+
const _0x5551=['_startingVersion','paragraph','finally','documentFragment','_cloneOperation','userId','some','_initialRevisionId','type','graveyardPosition','_handleMergeOperation','adapter','_savedMetaData','childCount','_setConversion','_copyMarkers','nodes','createRange','toVersion','Initial\x20revision','getChildren','$text','getTime','getAttributes','initial','loadState','NEGATIVE_INFINITY','currentRevision','rootName','_getVidAttributeName','_handleRootOperation','offsetSize','_touched','getRevisionRootsAttributes','_makeModelFromViewString','tableCell','_baseRootsAttributes','init','getIndex','setRevisionData','_handleRootAttributeOperation','rootsAttributes','createRangeIn','_pendingAction','parent','RevisionsRepository','forEach','createPositionAt','_startingRevisionId','baseVersion','name','_bufferUpdate','marked','element','nodeAfter','newRange','bind','then','editor','plugins','reInit','item','_execute','size','includes','initialData','_diffRoots','getWalker','find','_transformMarkers','_diffRootsAttributes','howMany','vid','_loadRevisionData','addRoot','addRevision','keepParagraph','stickiness','attachChange','processor','_source','version','getRootNames','clear','_getState','document','saveRevision','_getPreviousFrom','start','newValue','max','createPositionBefore','_fixOperation','_markers','data','_baseIdsRoots','values','insertion','from','getRange','getRevision','_findInsertionIndex','getUser','insert','createPositionAfter','set','_createInitialRevision','_revisionDataBuilder','startsWith','split','getAttribute','children','_loadState','splitPosition','root','_isAttached','range','_markChanges','_calculateMetaData','_touchedMarkers','_touchedRoots','_handleMarkerOperation','conversion','deletions','roots','_isPendingUpdate','_saveMetaData','_handleInsertOperation','length','config','attributesAfter','insertionPosition','ready','isEnabled','repository','fromVersion','getNodeByPath','slice','revision-start','reverse','addRevisionData','merge','_loadedStateData','oldRange','isReady','getChild','getOperations','clone','source','_continueCurrentRevision','isAttached','_fixRange','vid_end','creatorId','_removePendingAction','toModel','_idsRoots','_makeIdsRoot','RealTimeCollaborationClient','setSource','createPositionFromPath','keys','getData','_insertChild','update','getCurrentRevisionId','_prepareViewToSave','has','upcast','insertions','vid_start','elementEnd','delete','getMovedRangeStart','map','isAdd','marker','filter','offset','authors','removeRootAttribute','editing','detachRoot','_applyOperations','collaboration.channelId','Empty\x20document','_handleMoveOperation','getLatestVersion','get','previousPosition','_removeRevisionMarkers','creator','addRootAttribute','markers','view','_getViewJson','_handleSplitOperation','reinsert','add','changeRootAttribute','elementStart','resolve','revision:','move','parse','createRevision','_authorId','markerToData','end','_update','_removeMetaData','attributesBefore','deletion','_reset','for','_setAttribute','stringify','_revisionId','_lastTo','_getBaseVids','push','useFillerType','buildRevisionData','attributes','dataToMarker','_generateTape','_replaceEditorDataWithRevisionData','position','diffData','revisionHistory.resumeUnsavedRevision','locale','authorsIds','createdAt','_makeRevision','string','default','sort','requires','key','_lastFrom','_bufferedUpdates','$graveyard','history','_createCurrentRevision','path','getTransformedByOperation','_processRootBeforeSave','_baseRoots','sourcePosition','PendingActions','_fixPosition','_handleOperation','getRevisions','afterInit','model','Users','sendBufferedUpdates','getRevisionDocumentData'];(function(_0x4f7c66,_0x555155){const _0x5baade=function(_0x21d88b){while(--_0x21d88b){_0x4f7c66['push'](_0x4f7c66['shift']());}};_0x5baade(++_0x555155);}(_0x5551,0x1b2));const _0x5baa=function(_0x4f7c66,_0x555155){_0x4f7c66=_0x4f7c66-0x0;let _0x5baade=_0x5551[_0x4f7c66];return _0x5baade;};import{Users as _0x1c48af}from'ckeditor5-collaboration/src/collaboration-core.js';import{Plugin as _0x2c0e82,PendingActions as _0x3ae1a3}from'ckeditor5/src/core.js';import{logWarning as _0x14a173,uid as _0x4ecd17}from'ckeditor5/src/utils.js';import{Position as _0x5a9ecf,Range as _0x419fb2,Element as _0x49c8c5,DocumentFragment as _0x574b2b,ViewText as _0x25f39a,ViewElement as _0x5097e5,ViewContainerElement as _0x323064,ViewAttributeElement as _0x3cd380,ViewEmptyElement as _0x3684b0,ViewRawElement as _0x872415,ViewUIElement as _0x35cb09,ViewDocumentFragment as _0x4eed07}from'ckeditor5/src/engine.js';import _0x428a92 from'./revisionsrepository.js';import{getTranslation as _0x2f53a5}from'./utils/common-translations.js';import{cloneDeep as _0x2b1147,isEqual as _0x343dc0}from'lodash-es';const B={'c':_0x323064,'a':_0x3cd380,'e':_0x3684b0,'r':_0x872415,'u':_0x35cb09};export default class l extends _0x2c0e82{static get['pluginName'](){return'RevisionTracker';}static get[_0x5baa('0x3d')](){return[_0x1c48af,_0x428a92,_0x3ae1a3];}constructor(_0x5be922){super(_0x5be922),this['adapter']=null,this[_0x5baa('0x6d')]=null,this[_0x5baa('0xbd')]=new H(this[_0x5baa('0x8c')]),this[_0x5baa('0x59')]=this[_0x5baa('0x8c')][_0x5baa('0xd3')]['get'](_0x5baa('0x8'))||_0x5baa('0x6a'),this['_bufferedUpdates']=new Map(),this[_0x5baa('0xe0')]=null;const _0x4d55cd=_0x4ecd17();this[_0x5baa('0xa2')]={'history':this[_0x5baa('0x8c')][_0x5baa('0x4e')][_0x5baa('0xa7')]['history'],'getLatestVersion':()=>Promise[_0x5baa('0x19')](this[_0x5baa('0x8c')]['model'][_0x5baa('0xa7')][_0x5baa('0xa3')]),'getCurrentRevisionId':()=>_0x4d55cd},this['set'](_0x5baa('0xe2'),!0x1),this[_0x5baa('0xbb')](_0x5baa('0xd7'),!0x0),this[_0x5baa('0xbb')](_0x5baa('0xcf'),!0x1),this[_0x5baa('0x8c')]['config']['define'](_0x5baa('0x35'),!0x0),this[_0x5baa('0x8c')]['conversion']['for'](_0x5baa('0xfa'))[_0x5baa('0x30')]({'view':'revision'});}[_0x5baa('0x77')](){this['repository']=this[_0x5baa('0x8c')][_0x5baa('0x8d')][_0x5baa('0xc')](_0x5baa('0x7f')),this[_0x5baa('0x60')](),this[_0x5baa('0x8c')]['data']['on'](_0x5baa('0xd6'),()=>{const _0x86492e=this[_0x5baa('0xd8')][_0x5baa('0xb6')](0x0),_0x586a6d=_0x86492e&&null===_0x86492e[_0x5baa('0xf')]?_0x86492e:null;if(this[_0x5baa('0xe7')]=!!_0x586a6d&&this[_0x5baa('0x8c')]['config'][_0x5baa('0xc')](_0x5baa('0x35')),this[_0x5baa('0x8c')][_0x5baa('0x8d')][_0x5baa('0xf9')](_0x5baa('0xf0'))){const _0x3b67dd=this[_0x5baa('0xa2')]['getCurrentRevisionId'](),_0x342e13=this[_0x5baa('0xd8')][_0x5baa('0xb6')](_0x3b67dd);if(_0x342e13)this[_0x5baa('0x52')]=_0x342e13[_0x5baa('0xd9')],this[_0x5baa('0xe7')]=!0x1;else{const _0x34e7a8=this[_0x5baa('0xa2')][_0x5baa('0x42')]['_operations'][_0x5baa('0x96')](_0x11bf2f=>!_0x11bf2f['_isInit']),_0xc54fd7=_0x34e7a8?_0x34e7a8[_0x5baa('0x83')]:this[_0x5baa('0xa2')]['history'][_0x5baa('0xa3')];_0x86492e?(_0x86492e[_0x5baa('0x64')]<_0xc54fd7&&_0x86492e[_0x5baa('0x21')]({'toVersion':_0xc54fd7}),this['_continueCurrentRevision']?(this['_source'][_0x5baa('0xf7')]=()=>_0x586a6d['id'],this[_0x5baa('0x52')]=_0x586a6d[_0x5baa('0xd9')]):(this['_startingVersion']=_0x86492e['toVersion'],this[_0x5baa('0xe7')]=!0x1)):(this['_startingVersion']=_0xc54fd7,this[_0x5baa('0xe7')]=!0x1);}}else _0x586a6d&&(this[_0x5baa('0x8c')]['model'][_0x5baa('0xa7')]['history'][_0x5baa('0xa3')]=Math[_0x5baa('0xac')](_0x586a6d[_0x5baa('0x64')],this[_0x5baa('0x8c')][_0x5baa('0x4e')][_0x5baa('0xa7')][_0x5baa('0x42')][_0x5baa('0xa3')]),_0x586a6d[_0x5baa('0xd9')]===_0x586a6d['toVersion']?(0x0!==_0x586a6d[_0x5baa('0xd9')]&&(this[_0x5baa('0xa2')][_0x5baa('0xf7')]=()=>_0x586a6d['id']),this[_0x5baa('0xe7')]=!0x1):this[_0x5baa('0xe7')]&&(this[_0x5baa('0xa2')][_0x5baa('0xf7')]=()=>_0x586a6d['id'],this[_0x5baa('0x52')]=_0x586a6d[_0x5baa('0xd9')])),this[_0x5baa('0xe7')]||(this[_0x5baa('0x52')]=this['editor'][_0x5baa('0x4e')]['document'][_0x5baa('0xa3')]);this['_revisionDataBuilder'][_0x5baa('0x77')](this[_0x5baa('0xa2')]['history']),this[_0x5baa('0xbc')](this[_0x5baa('0x52')]),this[_0x5baa('0x43')](this['_startingVersion']),this[_0x5baa('0x5d')]&&this[_0x5baa('0x50')]();}),this[_0x5baa('0x8a')](_0x5baa('0xe2'))['to'](this,_0x5baa('0xcf'),_0x2d4acd=>!_0x2d4acd);}async[_0x5baa('0x4d')](){if(this[_0x5baa('0xd8')][_0x5baa('0xd2')]>0x0){const _0x2977f6=this[_0x5baa('0xd8')]['getRevision'](0x0),_0x5b4d77=await this[_0x5baa('0x51')](_0x2977f6),_0x4c72a2=await this[_0x5baa('0x73')](_0x2977f6);this[_0x5baa('0x32')](_0x5b4d77,_0x4c72a2);}}[_0x5baa('0xf1')](_0x2eb3cb){this[_0x5baa('0xa2')]=_0x2eb3cb;}async[_0x5baa('0xf6')](){const _0x1e5ac8=await this[_0x5baa('0xa2')]['getLatestVersion']();if(_0x1e5ac8>this[_0x5baa('0x6d')][_0x5baa('0x64')]){await this[_0x5baa('0xc2')]();const _0xf0c65=this[_0x5baa('0x2e')]({'revision':this[_0x5baa('0x6d')],'to':_0x1e5ac8});_0xf0c65[_0x5baa('0x3')]=_0xf0c65[_0x5baa('0x37')]['map'](_0x46c150=>this[_0x5baa('0x8c')][_0x5baa('0x8d')]['get']('Users')['getUser'](_0x46c150)),this[_0x5baa('0x6d')][_0x5baa('0x21')](_0xf0c65);}}async['_loadState'](){this[_0x5baa('0xe7')]&&!this[_0x5baa('0xe0')]&&(await this[_0x5baa('0x9b')](this['currentRevision']),this[_0x5baa('0xbd')][_0x5baa('0x6b')](this['currentRevision']),this[_0x5baa('0xe0')]={'fromVersion':this[_0x5baa('0x6d')]['fromVersion'],'authors':this[_0x5baa('0x6d')]['authors'][_0x5baa('0xdb')]()});}async[_0x5baa('0xa8')](_0x32a638={},_0x41f8a5=null){const _0x5ab908=[];await this['_loadState'](),this[_0x5baa('0xe7')]=!0x1,_0x41f8a5>this[_0x5baa('0x6d')]['toVersion']&&(_0x41f8a5=null),null===_0x41f8a5&&(_0x41f8a5=await this[_0x5baa('0xa2')][_0x5baa('0xb')]());const _0x150667=this['_getFromVersion'](_0x41f8a5),_0x441c71=this['buildRevisionData']({'from':_0x150667,'to':_0x41f8a5});if(this[_0x5baa('0x6d')][_0x5baa('0x64')]<_0x41f8a5){const _0x4576a0=this[_0x5baa('0x2e')]({'revision':this[_0x5baa('0x6d')],'from':_0x41f8a5,'to':_0x41f8a5});_0x4576a0['authors']=[],_0x4576a0[_0x5baa('0x37')]=[],_0x4576a0['id']=this['currentRevision']['id'],this['currentRevision'][_0x5baa('0x21')](_0x4576a0,!0x0),delete _0x4576a0[_0x5baa('0x3')],_0x5ab908[_0x5baa('0x2c')](_0x4576a0);}_0x32a638['creatorId']=this[_0x5baa('0x8c')][_0x5baa('0x8d')]['get']('Users')['me']['id'],_0x32a638[_0x5baa('0x84')]=_0x32a638['name']||null,_0x32a638['id']=_0x32a638['id']||_0x4ecd17(),_0x32a638={..._0x32a638,..._0x441c71};const _0x29c08e=this[_0x5baa('0xde')](_0x32a638);_0x5ab908[_0x5baa('0x2c')](_0x32a638);const _0x81b8f5=this[_0x5baa('0xd8')][_0x5baa('0x78')](_0x29c08e);if(0x0!==_0x81b8f5){const _0x5dc407=this['repository'][_0x5baa('0xb6')](_0x81b8f5-0x1);if(_0x5dc407[_0x5baa('0xd9')]!==_0x41f8a5){const _0x526380=this[_0x5baa('0xbd')][_0x5baa('0xf4')](_0x41f8a5,_0x5dc407[_0x5baa('0x64')]),_0x38b184={'id':_0x5dc407['id'],'diffData':_0x526380[_0x5baa('0x34')],'authorsIds':_0x526380[_0x5baa('0x37')],'authors':_0x526380[_0x5baa('0x37')][_0x5baa('0x100')](_0x626df7=>this[_0x5baa('0x8c')]['plugins'][_0x5baa('0xc')]('Users')['getUser'](_0x626df7)),'fromVersion':_0x41f8a5};_0x5dc407===this['currentRevision']&&(_0x38b184['createdAt']=new Date(_0x32a638[_0x5baa('0x38')][_0x5baa('0x68')]()+0xa)),_0x5dc407['_update'](_0x38b184,!0x0),delete _0x38b184[_0x5baa('0x3')],_0x5ab908[_0x5baa('0x2c')](_0x38b184);}}if(this['adapter']){for(const _0x160db6 of _0x5ab908)this[_0x5baa('0x85')](_0x160db6['id'],_0x160db6,!0x0);this[_0x5baa('0x50')]();}return _0x29c08e;}[_0x5baa('0xde')](_0x5167b5){const _0x46ddbb=this[_0x5baa('0xd8')][_0x5baa('0x1d')](_0x5167b5);return this[_0x5baa('0x5d')]&&_0x46ddbb['on']('_update',(_0x3eb9e1,_0x59018f,_0x3f8d2c)=>{_0x3f8d2c||(this['_bufferUpdate'](_0x59018f['id'],_0x59018f,!0x0),this[_0x5baa('0x50')]());}),this['repository'][_0x5baa('0x9d')](_0x46ddbb,this[_0x5baa('0xb7')](_0x46ddbb)),_0x46ddbb;}async[_0x5baa('0x51')](_0x29c9e6){await this[_0x5baa('0x9b')](_0x29c9e6);const _0x12fd67={};for(const _0x187025 in _0x29c9e6['diffData']){if(_0x29c9e6['diffData'][_0x187025][_0x5baa('0xa0')]&&!_0x29c9e6[_0x5baa('0x34')][_0x187025]['attachChange'][_0x5baa('0xe8')])continue;const _0x5b3ab9=this[_0x5baa('0xe')](JSON[_0x5baa('0x1c')](_0x29c9e6[_0x5baa('0x34')][_0x187025]['insertions'])),_0x222837=this[_0x5baa('0x8c')]['editing'][_0x5baa('0x12')][_0x5baa('0xa7')],_0x50a00e=new _0x4eed07(_0x222837,_0x5b3ab9[_0x5baa('0x100')](_0x3dd0a9=>J(_0x3dd0a9,this[_0x5baa('0x8c')])));this[_0x5baa('0x8c')][_0x5baa('0xb0')][_0x5baa('0xa1')][_0x5baa('0x2d')](_0x5baa('0x86')),_0x12fd67[_0x187025]=this[_0x5baa('0x8c')]['data'][_0x5baa('0xa1')]['toData'](_0x50a00e),this[_0x5baa('0x8c')][_0x5baa('0xb0')]['processor']['useFillerType'](_0x5baa('0x3b'));}return _0x12fd67;}async[_0x5baa('0x73')](_0x148cdf){await this[_0x5baa('0x9b')](_0x148cdf);const _0x5c7841={};for(const _0xbffaa in _0x148cdf[_0x5baa('0x34')])_0x148cdf['diffData'][_0xbffaa]['attachChange']&&!_0x148cdf[_0x5baa('0x34')][_0xbffaa][_0x5baa('0xa0')]['isAttached']||(_0x5c7841[_0xbffaa]=_0x148cdf[_0x5baa('0x34')][_0xbffaa]['attributesAfter']||{});return _0x5c7841;}[_0x5baa('0x50')](){if(0x0===this[_0x5baa('0x40')]['size'])return;if(this[_0x5baa('0xcf')])return;let _0x28a545=Array[_0x5baa('0xb4')](this[_0x5baa('0x40')][_0x5baa('0xb2')]());this['_bufferedUpdates'][_0x5baa('0xa5')]();for(let _0xe7cb44=0x0;_0xe7cb44<_0x28a545[_0x5baa('0xd2')];_0xe7cb44++){const _0x3bcb1f=_0x28a545[_0xe7cb44];let _0x96ac21=!0x1;for(const _0x4549de of Object['keys'](_0x3bcb1f))void 0x0===_0x3bcb1f[_0x4549de]?delete _0x3bcb1f[_0x4549de]:'id'!==_0x4549de&&(_0x96ac21=!0x0);_0x96ac21||(_0x28a545[_0xe7cb44]=null);}if(_0x28a545=_0x28a545[_0x5baa('0x1')](_0x3d27bd=>null!==_0x3d27bd),!_0x28a545['length'])return;for(let _0x1ae288=0x0;_0x1ae288<_0x28a545[_0x5baa('0xd2')];_0x1ae288++){const _0x3356d7=_0x28a545[_0x1ae288];void 0x0!==_0x3356d7['fromVersion']&&void 0x0===_0x3356d7[_0x5baa('0x64')]&&(_0x3356d7[_0x5baa('0x64')]=this[_0x5baa('0xd8')][_0x5baa('0xb6')](_0x3356d7['id'])['toVersion']),void 0x0!==_0x3356d7['toVersion']&&void 0x0===_0x3356d7[_0x5baa('0xd9')]&&(_0x3356d7[_0x5baa('0xd9')]=this[_0x5baa('0xd8')][_0x5baa('0xb6')](_0x3356d7['id'])[_0x5baa('0xd9')]);}const _0xcee4ee=this[_0x5baa('0x8c')]['config']['get'](_0x5baa('0x8'));this[_0x5baa('0xcf')]=!0x0,this['_addPendingAction'](),this[_0x5baa('0x5d')]['updateRevisions'](_0x28a545,_0xcee4ee)[_0x5baa('0x54')](()=>{this[_0x5baa('0xcf')]=!0x1;})[_0x5baa('0x8b')](_0x1ba3e1=>{if(_0x1ba3e1)for(const _0x4edbfa of _0x1ba3e1)this[_0x5baa('0x79')]({'id':_0x4edbfa['id'],'createdAt':_0x4edbfa[_0x5baa('0x38')]});this[_0x5baa('0xec')](),this[_0x5baa('0x50')]();});}[_0x5baa('0x32')](_0x20e6ac,_0x4694c1){let _0x5a532f=this[_0x5baa('0x8c')]['config']['get'](_0x5baa('0x93')),_0x21ca85=this['editor'][_0x5baa('0xd3')][_0x5baa('0xc')](_0x5baa('0x7b'));if(void 0x0===_0x5a532f){_0x5a532f={};for(const _0x4b8de2 of this['editor'][_0x5baa('0x4e')][_0x5baa('0xa7')][_0x5baa('0xa4')]())_0x5a532f[_0x4b8de2]='';}if(_0x5baa('0x3a')==typeof _0x5a532f&&(_0x5a532f={'main':_0x5a532f}),void 0x0===_0x21ca85){_0x21ca85={};for(const _0x3b2618 of this[_0x5baa('0x8c')][_0x5baa('0x4e')]['document'][_0x5baa('0xa4')]())_0x21ca85[_0x3b2618]={};}let _0x2d32f2=!0x1;const _0xfd3d8a=Object[_0x5baa('0xf3')](_0x5a532f),_0x563c80=Object[_0x5baa('0xf3')](_0x20e6ac);for(const _0x3648e2 of _0xfd3d8a){if(_0x5a532f[_0x3648e2]!==_0x20e6ac[_0x3648e2]&&''!==_0x5a532f[_0x3648e2]['trim']()){_0x2d32f2=!0x0;break;}if(!_0x343dc0(_0x21ca85[_0x3648e2],_0x4694c1[_0x3648e2])&&Object[_0x5baa('0xf3')](_0x21ca85[_0x3648e2])['length']>0x0){_0x2d32f2=!0x0;break;}}_0x2d32f2||(_0x2d32f2=_0x563c80[_0x5baa('0x58')](_0xa8f42b=>!this[_0x5baa('0x8c')]['model'][_0x5baa('0xa7')]['getRoot'](_0xa8f42b))),_0x2d32f2&&_0x14a173('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5a532f,'editorRootsAttributes':_0x21ca85,'revisionData':_0x20e6ac,'revisionRootsAttributes':_0x4694c1}),this[_0x5baa('0x8c')][_0x5baa('0xd3')][_0x5baa('0xbb')]('initialData',_0x20e6ac),this['editor']['config'][_0x5baa('0xbb')]('rootsAttributes',_0x4694c1);}['_addPendingAction'](){if(!this[_0x5baa('0x7d')]){const _0x52615b=this[_0x5baa('0x8c')][_0x5baa('0x8d')][_0x5baa('0xc')](_0x5baa('0x49'));this['_pendingAction']=_0x52615b[_0x5baa('0x16')](_0x2f53a5(this[_0x5baa('0x8c')][_0x5baa('0x36')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x5baa('0xec')](){this[_0x5baa('0x7d')]&&(this['editor'][_0x5baa('0x8d')][_0x5baa('0xc')](_0x5baa('0x49'))['remove'](this[_0x5baa('0x7d')]),this['_pendingAction']=null);}[_0x5baa('0xb7')](_0x34d56f){const _0x4caf5d=this['repository'][_0x5baa('0x4c')]();_0x4caf5d[_0x5baa('0xdd')]();let _0x4b55c6=0x0;for(;_0x4b55c6<_0x4caf5d[_0x5baa('0xd2')];){const _0x383c7c=_0x4caf5d[_0x4b55c6];if(_0x383c7c===this['currentRevision']){_0x4b55c6++;continue;}if(_0x383c7c['id']===this[_0x5baa('0x59')])break;const _0x300581=_0x34d56f[_0x5baa('0x64')]-_0x383c7c[_0x5baa('0x64')]||_0x34d56f[_0x5baa('0xd9')]-_0x383c7c[_0x5baa('0xd9')];if(_0x300581>0x0)break;if(_0x300581<0x0)_0x4b55c6++;else{if(!_0x34d56f[_0x5baa('0xf')]&&_0x383c7c['creator'])break;if(_0x383c7c[_0x5baa('0xf')]||!_0x34d56f[_0x5baa('0xf')]){if(_0x34d56f['createdAt']>_0x383c7c['createdAt'])break;_0x4b55c6++;}else _0x4b55c6++;}}return _0x4b55c6;}[_0x5baa('0x79')](_0xc6b236){const _0x4d362e=this['repository'][_0x5baa('0xb6')](_0xc6b236['id']);if(_0xc6b236[_0x5baa('0x38')]&&(_0xc6b236[_0x5baa('0x38')]=new Date(_0xc6b236['createdAt'])),_0xc6b236[_0x5baa('0x37')]){const _0x40d595=this['editor']['plugins'][_0x5baa('0xc')](_0x5baa('0x4f'));_0xc6b236[_0x5baa('0x3')]=_0xc6b236[_0x5baa('0x37')]['map'](_0x27ac48=>_0x40d595[_0x5baa('0xb8')](_0x27ac48));}_0x4d362e[_0x5baa('0x21')](_0xc6b236,!0x0);}[_0x5baa('0x2e')]({revision:_0x563a61=null,from:_0x1f71b9=null,to:_0xe27945=null}){_0x1f71b9=null!==_0x1f71b9?_0x1f71b9:_0x563a61['fromVersion'],_0xe27945=null!==_0xe27945?_0xe27945:_0x563a61[_0x5baa('0x64')];const _0x552808=this[_0x5baa('0xbd')][_0x5baa('0xf4')](_0x1f71b9,_0xe27945),_0x15c701={'diffData':_0x552808['diffData'],'authorsIds':_0x552808[_0x5baa('0x37')],'fromVersion':_0x1f71b9,'toVersion':_0xe27945};if(!_0x563a61||_0xe27945!==_0x563a61[_0x5baa('0x64')]){const _0x4386e4=_0xe27945-0x1,_0x33c369=this['_source'][_0x5baa('0x42')]['getOperation'](_0x4386e4);_0x15c701[_0x5baa('0x38')]=_0x33c369&&_0x33c369[_0x5baa('0x38')]||new Date();}if(this[_0x5baa('0xe0')]&&_0x1f71b9===this['_loadedStateData'][_0x5baa('0xd9')])for(const _0x784f55 of this[_0x5baa('0xe0')]['authors'])_0x15c701[_0x5baa('0x37')][_0x5baa('0x92')](_0x784f55['id'])||_0x15c701[_0x5baa('0x37')][_0x5baa('0x2c')](_0x784f55['id']);return _0x15c701;}['_loadRevisionData'](_0x4ad695){if(!_0x4ad695||_0x4ad695[_0x5baa('0x34')])return Promise[_0x5baa('0x19')]();{const _0x2538e6=this[_0x5baa('0x8c')][_0x5baa('0xd3')][_0x5baa('0xc')](_0x5baa('0x8'));return this[_0x5baa('0x5d')]['getRevision']({'channelId':_0x2538e6,'revisionId':_0x4ad695['id']})[_0x5baa('0x8b')](_0x108730=>{_0x4ad695[_0x5baa('0x34')]=_0x108730[_0x5baa('0x34')];});}}[_0x5baa('0x85')](_0x40906d,_0x12b6f0,_0x5007cf){if(this[_0x5baa('0x40')]['has'](_0x40906d)){const _0x39ea10=this[_0x5baa('0x40')]['get'](_0x40906d);_0x12b6f0=_0x5007cf?{..._0x39ea10,..._0x12b6f0}:{..._0x12b6f0,..._0x39ea10};}this[_0x5baa('0x40')][_0x5baa('0xbb')](_0x40906d,_0x12b6f0);}['_getFromVersion'](_0x90ca7d){const _0x20240a=this[_0x5baa('0xd8')][_0x5baa('0x4c')]();_0x20240a['reverse'](),_0x20240a['shift']();const _0xcb77a3=_0x20240a[_0x5baa('0x96')](_0x5b280c=>_0x5b280c[_0x5baa('0x64')]<=_0x90ca7d)[_0x5baa('0x64')];return _0xcb77a3<this[_0x5baa('0x52')]?this[_0x5baa('0x52')]:_0xcb77a3;}[_0x5baa('0xbc')](_0x5b9437){const _0x108964=this['repository'][_0x5baa('0xb6')](this[_0x5baa('0xd8')][_0x5baa('0xd2')]-0x1);if(_0x108964)this[_0x5baa('0x59')]=_0x108964['id'];else{const _0x18fee1=!this[_0x5baa('0x8c')][_0x5baa('0x4e')][_0x5baa('0xa7')][_0x5baa('0xce')][_0x5baa('0x96')](_0x1d2079=>this[_0x5baa('0x8c')][_0x5baa('0x4e')]['hasContent'](_0x1d2079)),_0x4b0a4b=this[_0x5baa('0x8c')][_0x5baa('0x8d')]['get'](_0x5baa('0x4f'))['me']['id'],_0x12a094=_0x2f53a5(this['editor'][_0x5baa('0x36')],_0x18fee1?_0x5baa('0x9'):_0x5baa('0x65'));this[_0x5baa('0x39')]({'from':_0x5b9437,'to':_0x5b9437,'id':this[_0x5baa('0x59')],'name':_0x12a094,'creatorId':_0x4b0a4b});}}['_createCurrentRevision'](_0x39da02){const _0x5212cd=this[_0x5baa('0xa2')]['getCurrentRevisionId']();this[_0x5baa('0x6d')]=this['repository'][_0x5baa('0xb6')](_0x5212cd),this[_0x5baa('0x6d')]||(this['currentRevision']=this['_makeRevision']({'from':_0x39da02,'to':_0x39da02,'id':_0x5212cd,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1c03c8,from:_0x29ec16,to:_0x4f077d,creatorId:_0x42a810,id:_0x58d6de}){const _0x127738=this[_0x5baa('0x2e')]({'from':_0x29ec16,'to':_0x4f077d});_0x127738[_0x5baa('0x84')]=_0x1c03c8,_0x127738[_0x5baa('0xeb')]=_0x42a810,_0x127738['id']=_0x58d6de;const _0x34c11e=this[_0x5baa('0xde')](_0x127738);return this[_0x5baa('0x5d')]&&this[_0x5baa('0x85')](_0x127738['id'],_0x127738,!0x0),_0x34c11e;}[_0x5baa('0x60')](){this['editor'][_0x5baa('0xcc')][_0x5baa('0x26')]('dataDowncast')[_0x5baa('0x1f')]({'model':'revision'});}[_0x5baa('0xe')](_0x387691){return(_0x387691=_0x387691['filter'](_0x454ff2=>!_0x454ff2[_0x5baa('0x84')]||_0x5baa('0xdc')!==_0x454ff2[_0x5baa('0x84')]&&'revision-end'!==_0x454ff2[_0x5baa('0x84')]))[_0x5baa('0x80')](_0x49447e=>{_0x5baa('0x3a')!=typeof _0x49447e&&(_0x49447e['children']=this[_0x5baa('0xe')](_0x49447e[_0x5baa('0xc1')]),_0x49447e[_0x5baa('0x2f')]=_0x49447e[_0x5baa('0x2f')]['filter'](_0x2d026c=>!_0x2d026c[0x0][_0x5baa('0xbe')]('data-revision-')));}),_0x387691;}}function J(_0x140d3b,_0x3a2d6e){const _0x28c717=_0x3a2d6e[_0x5baa('0x5')][_0x5baa('0x12')][_0x5baa('0xa7')];if(_0x5baa('0x3a')==typeof _0x140d3b)return new _0x25f39a(_0x28c717,_0x140d3b);{const _0x2858f7=_0x140d3b[_0x5baa('0xc1')]['map'](_0x43bc8b=>J(_0x43bc8b,_0x3a2d6e));return new(B[_0x140d3b[(_0x5baa('0x5a'))]]||_0x5097e5)(_0x28c717,_0x140d3b['name'],_0x140d3b[_0x5baa('0x2f')],_0x2858f7);}}class H{constructor(_0x59a8a1){this[_0x5baa('0x8c')]=_0x59a8a1,this[_0x5baa('0x5e')]=new Map(),this[_0x5baa('0x3f')]=-0x1,this[_0x5baa('0x2a')]=-0x1,this[_0x5baa('0xaf')]=new Map(),this[_0x5baa('0x94')]=new Map(),this[_0x5baa('0x98')]=new Map(),this['_baseRoots']=new Map(),this[_0x5baa('0x76')]=new Map(),this[_0x5baa('0xee')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x5baa('0x72')]=new Map(),this[_0x5baa('0xc9')]=new Map(),this[_0x5baa('0xca')]=new Map(),this[_0x5baa('0x29')]=0x1;}[_0x5baa('0x77')](_0x2fbbf3){this['source']=_0x2fbbf3;const _0x2f0082=new Map(),_0x3c54b6=new Map(),_0x38d898=this[_0x5baa('0x8c')][_0x5baa('0x4e')][_0x5baa('0xa7')]['roots'][_0x5baa('0x100')](_0xd92d5a=>_0xd92d5a[_0x5baa('0x6e')]);for(const _0x36faf1 of _0x38d898){const _0x1350e7=this['editor'][_0x5baa('0x4e')][_0x5baa('0xa7')]['getRoot'](_0x36faf1),_0x1d2f5b=q(_0x1350e7);_0x2f0082[_0x5baa('0xbb')](_0x36faf1,_0x1d2f5b),_0x3c54b6[_0x5baa('0xbb')](_0x36faf1,Object['fromEntries'](_0x1350e7[_0x5baa('0x69')]()));}const _0x307a82=Array[_0x5baa('0xb4')](this[_0x5baa('0x8c')][_0x5baa('0x4e')][_0x5baa('0x11')])[_0x5baa('0x100')](_0x13c591=>[_0x13c591['name'],_0x13c591[_0x5baa('0xb5')]()]),_0x3c7bba=this[_0x5baa('0xe6')][_0x5baa('0xa3')];this[_0x5baa('0xd0')](_0x3c7bba,_0x2f0082,_0x307a82,_0x3c54b6),this['_startingRevisionId']=this['_revisionId'];const _0x53acc0=new Map(),_0x451bd4=new Map();for(const _0x56fbf8 of _0x38d898){const _0x1b4687=G(_0x56fbf8);_0x53acc0[_0x5baa('0xbb')](_0x56fbf8,_0x1b4687),_0x451bd4[_0x5baa('0xbb')](_0x56fbf8,{});}this[_0x5baa('0xd0')](Number[_0x5baa('0x6c')],_0x53acc0,[],_0x451bd4);}['getData'](_0x4218cb,_0x25f8f7){if(this[_0x5baa('0x3f')]===_0x4218cb&&this['_lastTo']<=_0x25f8f7)this[_0x5baa('0x5e')][_0x5baa('0x91')]>0x1&&this['_removeMetaData'](this[_0x5baa('0x2a')]),this['_applyOperations'](this[_0x5baa('0x2a')],_0x25f8f7,!0x0);else{if(!this[_0x5baa('0x5e')][_0x5baa('0xf9')](_0x4218cb)){const _0xc979f0=this[_0x5baa('0xa9')](_0x4218cb);this[_0x5baa('0xc8')](_0xc979f0,_0x4218cb,!0x1);}this[_0x5baa('0xc8')](_0x4218cb,_0x25f8f7,!0x0);}return this[_0x5baa('0x3f')]=_0x4218cb,this['_lastTo']=_0x25f8f7,this[_0x5baa('0xa6')]();}['loadState'](_0x218716){this[_0x5baa('0x25')](),this['_lastFrom']=_0x218716[_0x5baa('0xd9')],this['_lastTo']=_0x218716[_0x5baa('0x64')];for(const _0x31fd28 in _0x218716[_0x5baa('0x34')]){const _0x31e765=_0x218716[_0x5baa('0x34')][_0x31fd28][_0x5baa('0xa0')],_0x14e440=_0x2b1147(_0x218716[_0x5baa('0x34')][_0x31fd28][_0x5baa('0x23')])||{},_0x1800f5=this[_0x5baa('0x74')](_0x218716[_0x5baa('0x34')][_0x31fd28][_0x5baa('0xcd')]);_0x1800f5[_0x5baa('0x6e')]=_0x31fd28,_0x1800f5['_isAttached']=!_0x31e765||!_0x31e765[_0x5baa('0xe8')],_0x1800f5['isAttached']=()=>_0x1800f5[_0x5baa('0xc5')],this[_0x5baa('0x47')][_0x5baa('0xbb')](_0x31fd28,_0x1800f5),this[_0x5baa('0x76')][_0x5baa('0xbb')](_0x31fd28,_0x14e440),_0x31e765&&this[_0x5baa('0xca')][_0x5baa('0xbb')](_0x31fd28,_0x31e765);const _0x5d1d4b=this[_0x5baa('0xef')](_0x1800f5);this[_0x5baa('0xb1')][_0x5baa('0xbb')](_0x31fd28,_0x5d1d4b);for(const [_0x11b2e3,_0x4e5045]of _0x1800f5['markers']){if(!_0x11b2e3[_0x5baa('0xbe')]('revision:'))continue;const _0xf8bfe2=_0x11b2e3[_0x5baa('0xbf')](':')[0x2];for(const _0x490d2b of _0x4e5045[_0x5baa('0x95')]({'singleCharacters':!0x0})){const _0xa95d56=this['_getVidAttributeName'](_0x490d2b),_0x4c8fec=_0x5baa('0xfd')==_0x490d2b['type']?_0x490d2b['previousPosition'][_0x5baa('0x44')][_0x5baa('0xdb')](0x0,-0x1):_0x490d2b[_0x5baa('0xd')][_0x5baa('0x44')],_0x571df9=_0x5d1d4b['getNodeByPath'](_0x4c8fec)[_0x5baa('0xc0')](_0xa95d56);this['_touched'][_0x5baa('0xbb')](_0x571df9,{'userId':_0xf8bfe2});}}}this[_0x5baa('0x82')]=this[_0x5baa('0x29')];const _0x2912f7=[...Array(this[_0x5baa('0x29')])[_0x5baa('0xf3')]()][_0x5baa('0xdb')](0x1)['filter'](_0x561042=>!this['_touched'][_0x5baa('0xf9')](_0x561042));let _0xe6c0fb=0x0;const _0x45c365=new Map();for(const _0x8d9947 in _0x218716[_0x5baa('0x34')]){const _0x20bdaa=_0x218716[_0x5baa('0x34')][_0x8d9947][_0x5baa('0xa0')],_0x109528=_0x2b1147(_0x218716[_0x5baa('0x34')][_0x8d9947][_0x5baa('0xd4')])||{},_0x3de187=this[_0x5baa('0x74')](_0x218716['diffData'][_0x8d9947][_0x5baa('0xfb')]);_0x3de187[_0x5baa('0x6e')]=_0x8d9947,_0x3de187[_0x5baa('0xc5')]=!_0x20bdaa||_0x20bdaa[_0x5baa('0xe8')],_0x3de187[_0x5baa('0xe8')]=()=>_0x3de187['_isAttached'],this['_diffRoots']['set'](_0x8d9947,_0x3de187),this[_0x5baa('0x98')][_0x5baa('0xbb')](_0x8d9947,_0x109528);const _0x4e1293=this[_0x5baa('0xef')](_0x3de187,Number[_0x5baa('0x6c')]);this['_idsRoots'][_0x5baa('0xbb')](_0x8d9947,_0x4e1293),_0x45c365[_0x5baa('0xbb')](_0x8d9947,_0x3de187[_0x5baa('0xe8')]()?_0x109528:{});for(const [_0x6dfe6e,_0x2e2d0d]of _0x3de187[_0x5baa('0x11')]){if(!_0x6dfe6e[_0x5baa('0xbe')]('revision:'))continue;const _0x1e1581=_0x6dfe6e['split'](':')[0x2];for(const _0x31155c of _0x2e2d0d[_0x5baa('0x95')]({'singleCharacters':!0x0})){const _0x2d3ee4=this[_0x5baa('0x6f')](_0x31155c),_0x620ee4=this['_revisionId']++,_0x314f82=_0x5baa('0xfd')==_0x31155c[_0x5baa('0x5a')]?_0x31155c[_0x5baa('0xd')][_0x5baa('0x44')]['slice'](0x0,-0x1):_0x31155c['previousPosition'][_0x5baa('0x44')];_0x4e1293[_0x5baa('0xda')](_0x314f82)[_0x5baa('0x27')](_0x2d3ee4,_0x620ee4),this[_0x5baa('0x72')]['set'](_0x620ee4,{'userId':_0x1e1581});}}for(const _0x294412 of this[_0x5baa('0x8c')]['model'][_0x5baa('0x7c')](_0x3de187)[_0x5baa('0x95')]({'singleCharacters':!0x0})){const _0x3c9242=this['_getVidAttributeName'](_0x294412),_0x53412d=_0x5baa('0xfd')==_0x294412[_0x5baa('0x5a')]?_0x294412[_0x5baa('0xd')][_0x5baa('0x44')][_0x5baa('0xdb')](0x0,-0x1):_0x294412['previousPosition'][_0x5baa('0x44')],_0x587396=_0x4e1293[_0x5baa('0xda')](_0x53412d);_0x587396[_0x5baa('0xc0')](_0x3c9242)>0x0||_0x587396['_setAttribute'](_0x3c9242,_0x2912f7[_0xe6c0fb++]);}for(const [_0x394a6c,_0x4d963a]of _0x3de187[_0x5baa('0x11')])_0x394a6c[_0x5baa('0xbe')]('revision:')||this[_0x5baa('0xaf')][_0x5baa('0xbb')](_0x394a6c,_0x4d963a);}const _0x2909ac=G(_0x5baa('0x41'));this[_0x5baa('0x47')]['set'](_0x5baa('0x41'),_0x2909ac),this[_0x5baa('0xb1')]['set'](_0x5baa('0x41'),this[_0x5baa('0xef')](_0x2909ac,0x1));const _0x22ca8b=G(_0x5baa('0x41'));this[_0x5baa('0x94')][_0x5baa('0xbb')](_0x5baa('0x41'),_0x22ca8b),this[_0x5baa('0xee')][_0x5baa('0xbb')](_0x5baa('0x41'),this[_0x5baa('0xef')](_0x22ca8b,0x1));const _0x3be222=Array[_0x5baa('0xb4')](this[_0x5baa('0x94')])[_0x5baa('0x100')](([_0x56dde9,_0x46a7ec])=>[_0x56dde9,q(_0x46a7ec)]);this[_0x5baa('0xd0')](this[_0x5baa('0x2a')],_0x3be222,this[_0x5baa('0xaf')],_0x45c365);}[_0x5baa('0x74')](_0x967787){const _0x4bcc39=JSON[_0x5baa('0x1c')](_0x967787),_0x567432=this['editor'][_0x5baa('0x5')][_0x5baa('0x12')][_0x5baa('0xa7')],_0x511552=new _0x4eed07(_0x567432,_0x4bcc39['map'](_0x289168=>J(_0x289168,this[_0x5baa('0x8c')])));return this['editor'][_0x5baa('0xb0')][_0x5baa('0xed')](_0x511552);}['_saveMetaData'](_0x5c22b3,_0x26cfb8,_0x4d82df,_0x56ef55){const _0x49de1d=new Map(_0x26cfb8),_0x1f53bb=new Map(_0x2b1147(_0x56ef55)),_0x2d3203=new Map();for(const [_0xfbd72,_0x3af140]of _0x4d82df)_0x2d3203['set'](_0xfbd72,{'start':_0x3af140[_0x5baa('0xaa')]['clone'](),'end':_0x3af140[_0x5baa('0x20')][_0x5baa('0xe5')](),'rootName':_0x3af140['root'][_0x5baa('0x6e')]});this[_0x5baa('0x5e')]['set'](_0x5c22b3,{'roots':_0x49de1d,'markers':_0x2d3203,'rootsAttributes':_0x1f53bb});}[_0x5baa('0x22')](_0x2e48a5){this[_0x5baa('0x5e')][_0x5baa('0xfe')](_0x2e48a5);}[_0x5baa('0x8e')](){this[_0x5baa('0x25')](),this[_0x5baa('0x3f')]=-0x1,this[_0x5baa('0x2a')]=-0x1,this[_0x5baa('0x5e')][_0x5baa('0xa5')](),this[_0x5baa('0x77')](this[_0x5baa('0xe6')]);}[_0x5baa('0x25')](){this[_0x5baa('0x72')][_0x5baa('0xa5')](),this['_touchedMarkers'][_0x5baa('0xa5')](),this[_0x5baa('0xca')][_0x5baa('0xa5')](),this[_0x5baa('0x94')][_0x5baa('0xa5')](),this[_0x5baa('0x98')][_0x5baa('0xa5')](),this[_0x5baa('0x47')][_0x5baa('0xa5')](),this[_0x5baa('0x76')][_0x5baa('0xa5')](),this[_0x5baa('0xee')][_0x5baa('0xa5')](),this[_0x5baa('0xb1')][_0x5baa('0xa5')](),this[_0x5baa('0xaf')][_0x5baa('0xa5')](),this['_revisionId']=0x1,this['_startingRevisionId']=this[_0x5baa('0x29')];}[_0x5baa('0xef')](_0x4b9ffc,_0x2f3d01=null){let _0x237285=null;_0x4b9ffc['is'](_0x5baa('0x55'))||(_0x237285=new _0x49c8c5(_0x4b9ffc[_0x5baa('0x84')],{'vid_start':null===_0x2f3d01?this[_0x5baa('0x29')]++:_0x2f3d01++}));const _0x4fdb32=[];for(const _0x120ec0 of _0x4b9ffc[_0x5baa('0x66')]())if(_0x120ec0['is'](_0x5baa('0x87'))){_0x4fdb32['push'](this[_0x5baa('0xef')](_0x120ec0,_0x2f3d01));const _0x157d2d=_0x4fdb32[_0x4fdb32[_0x5baa('0xd2')]-0x1];null!==_0x2f3d01&&(_0x2f3d01=_0x157d2d['is'](_0x5baa('0x87'),_0x5baa('0x67'))?_0x157d2d[_0x5baa('0xc0')](_0x5baa('0x9a'))+0x1:_0x157d2d['getAttribute'](_0x5baa('0xea'))+0x1);}else for(let _0x4215f5=0x0;_0x4215f5<_0x120ec0['offsetSize'];_0x4215f5++)_0x4fdb32[_0x5baa('0x2c')](new _0x49c8c5(_0x5baa('0x67'),{'vid':null===_0x2f3d01?this[_0x5baa('0x29')]++:_0x2f3d01++}));if(_0x4b9ffc['is'](_0x5baa('0x55'))){const _0x4c3359=G(_0x4b9ffc[_0x5baa('0x6e')]);return _0x4c3359['_insertChild'](0x0,_0x4fdb32),_0x4c3359;}return _0x237285['_setAttribute']('vid_end',null===_0x2f3d01?this[_0x5baa('0x29')]++:_0x2f3d01++),_0x237285[_0x5baa('0xf5')](0x0,_0x4fdb32),_0x237285;}[_0x5baa('0xc8')](_0x519913,_0x260866,_0x34a92c){this[_0x5baa('0x25')]();const {roots:_0x5e124b,markers:_0x45a9fe,rootsAttributes:_0x2289d9}=this[_0x5baa('0x5e')][_0x5baa('0xc')](_0x519913);this['_baseRoots']=new Map(_0x5e124b),this[_0x5baa('0x76')]=new Map(_0x2b1147(_0x2289d9));for(const [_0xd7f8b8,_0x1c7d78]of this[_0x5baa('0x47')])if(_0x5baa('0x41')!==_0xd7f8b8&&(this[_0x5baa('0x94')][_0x5baa('0xbb')](_0xd7f8b8,q(_0x1c7d78)),this[_0x5baa('0x98')]=new Map(_0x2b1147(_0x2289d9)),_0x34a92c)){const _0x2762ca=this[_0x5baa('0x29')];this[_0x5baa('0xee')][_0x5baa('0xbb')](_0xd7f8b8,this[_0x5baa('0xef')](_0x1c7d78)),this['_baseIdsRoots']['set'](_0xd7f8b8,this[_0x5baa('0xef')](_0x1c7d78,_0x2762ca));}this[_0x5baa('0x82')]=this[_0x5baa('0x29')],this['_diffRoots']['set']('$graveyard',q(this[_0x5baa('0x47')][_0x5baa('0xc')](_0x5baa('0x41')))),_0x34a92c&&this[_0x5baa('0xee')][_0x5baa('0xbb')](_0x5baa('0x41'),this[_0x5baa('0xef')](this[_0x5baa('0x47')][_0x5baa('0xc')]('$graveyard')));for(const [_0x2b8d8b,_0x3e5f04]of _0x45a9fe){const _0x464abc=this['_baseRoots'][_0x5baa('0xc')](_0x3e5f04[_0x5baa('0x6e')]),_0x517ddc=this[_0x5baa('0x94')][_0x5baa('0xc')](_0x3e5f04['rootName']),_0xa36eb9=new _0x419fb2(this[_0x5baa('0x4a')](_0x3e5f04[_0x5baa('0xaa')],_0x464abc),this[_0x5baa('0x4a')](_0x3e5f04[_0x5baa('0x20')],_0x464abc)),_0x4bcaa0=this['_fixRange'](_0xa36eb9,_0x517ddc);_0x464abc['markers'][_0x5baa('0xbb')](_0x2b8d8b,_0xa36eb9),this[_0x5baa('0xaf')]['set'](_0x2b8d8b,_0x4bcaa0);}this[_0x5baa('0x7')](_0x519913,_0x260866,_0x34a92c);}['_applyOperations'](_0x2cc4aa,_0x2afc17,_0x283564){for(const _0x352dd1 of this['source'][_0x5baa('0xe4')](_0x2cc4aa,_0x2afc17))this[_0x5baa('0x4b')](_0x352dd1,_0x283564);for(const _0xc2e157 of this['_diffRoots'][_0x5baa('0xb2')]())_0xc2e157['markers'][_0x5baa('0xa5')]();for(const [_0x1bed14,_0x36cd50]of this[_0x5baa('0xaf')]){this[_0x5baa('0x94')][_0x5baa('0xc')](_0x36cd50['root'][_0x5baa('0x6e')])[_0x5baa('0x11')][_0x5baa('0xbb')](_0x1bed14,_0x36cd50['clone']());}const _0x3815fe=new Map(),_0x29c9c4=new Map();for(const [_0x4b7e25,_0x225c6b]of this[_0x5baa('0x94')])_0x3815fe[_0x5baa('0xbb')](_0x4b7e25,q(_0x225c6b)),_0x29c9c4[_0x5baa('0xbb')](_0x4b7e25,this[_0x5baa('0x98')][_0x5baa('0xc')](_0x4b7e25));this[_0x5baa('0xd0')](_0x2afc17,_0x3815fe,this['_markers'],_0x29c9c4);}['_getPreviousFrom'](_0x5aa0a0){const _0x466c26=Array[_0x5baa('0xb4')](this[_0x5baa('0x5e')]['keys']());_0x466c26[_0x5baa('0x3c')]((_0x24b34c,_0x3cd1a4)=>_0x24b34c-_0x3cd1a4),_0x466c26[_0x5baa('0xdd')]();for(const _0x5305a1 of _0x466c26)if(_0x5305a1<_0x5aa0a0)return _0x5305a1;return Number[_0x5baa('0x6c')];}[_0x5baa('0x61')](_0x1432c8,_0x179db5){const _0x2551b0=Array[_0x5baa('0xb4')](_0x179db5[_0x5baa('0x11')])['map'](([_0x322db0,_0x11e1e1])=>[_0x322db0,this[_0x5baa('0xe9')](_0x11e1e1,_0x1432c8)]);_0x1432c8[_0x5baa('0x11')]=new Map(_0x2551b0);}[_0x5baa('0x97')](_0x32a9a4){for(const _0x37db92 of this[_0x5baa('0xaf')][_0x5baa('0xb2')]()){const _0x4598a0=_0x37db92[_0x5baa('0x45')](_0x32a9a4),_0x552ed5=_0x419fb2['_createFromRanges'](_0x4598a0);_0x37db92[_0x5baa('0xaa')]=_0x552ed5[_0x5baa('0xaa')],_0x37db92[_0x5baa('0x20')]=_0x552ed5[_0x5baa('0x20')];}}[_0x5baa('0x4b')](_0x4636bb,_0x156f57){if(_0x5baa('0x9c')==_0x4636bb['type']||_0x5baa('0x6')==_0x4636bb[_0x5baa('0x5a')])return void this[_0x5baa('0x70')](_0x4636bb,_0x156f57);if(_0x5baa('0xb9')==_0x4636bb[_0x5baa('0x5a')]){const _0xc4b92a=_0x4636bb[_0x5baa('0x33')][_0x5baa('0xc4')][_0x5baa('0x6e')];this[_0x5baa('0x94')]['has'](_0xc4b92a)||(this[_0x5baa('0x94')]['set'](_0xc4b92a,G(_0xc4b92a,!0x0)),this[_0x5baa('0x98')][_0x5baa('0xbb')](_0xc4b92a,{}),_0x156f57&&this[_0x5baa('0xee')][_0x5baa('0xbb')](_0xc4b92a,G(_0xc4b92a,!0x0)));}else{if(_0x5baa('0x10')==_0x4636bb[_0x5baa('0x5a')]||_0x5baa('0x4')==_0x4636bb[_0x5baa('0x5a')]||_0x5baa('0x17')==_0x4636bb['type'])return void this['_handleRootAttributeOperation'](_0x4636bb);}const _0x4e470f=this[_0x5baa('0x56')](_0x4636bb,this['_diffRoots']);if(_0x5baa('0x0')!==_0x4636bb[_0x5baa('0x5a')]&&(_0x4e470f[_0x5baa('0x90')](),this[_0x5baa('0x97')](_0x4e470f)),_0x156f57)switch(_0x4e470f[_0x5baa('0x5a')]){case _0x5baa('0xb9'):this[_0x5baa('0xd1')](_0x4636bb);break;case _0x5baa('0x1b'):case'remove':case _0x5baa('0x15'):this[_0x5baa('0xa')](_0x4636bb);break;case _0x5baa('0xdf'):this[_0x5baa('0x5c')](_0x4636bb);break;case _0x5baa('0xbf'):this[_0x5baa('0x14')](_0x4636bb);break;case _0x5baa('0x0'):this[_0x5baa('0xcb')](_0x4636bb);}}[_0x5baa('0x56')](_0x13708a,_0x1fc776){const _0xa9014e=_0x13708a[_0x5baa('0xe5')]();return _0xa9014e['_authorId']=_0x13708a[_0x5baa('0x1e')],this[_0x5baa('0xae')](_0xa9014e,_0x1fc776),_0xa9014e;}[_0x5baa('0x2b')](_0x46191f){return _0x46191f[_0x5baa('0x100')](_0x3ab4ff=>{const _0x58ee28=this['_getVidAttributeName'](_0x3ab4ff);return Number(_0x3ab4ff['item'][_0x5baa('0xc0')](_0x58ee28));});}[_0x5baa('0x31')](_0x44dc66,_0x57bb96){if(_0x44dc66['is'](_0x5baa('0x87'),'$text'))_0x57bb96[_0x5baa('0x2c')]({'item':_0x44dc66,'type':'text'});else{_0x44dc66['is'](_0x5baa('0x87'))&&_0x57bb96[_0x5baa('0x2c')]({'item':_0x44dc66,'type':'elementStart'});for(const _0x1f81e2 of _0x44dc66['getChildren']())this[_0x5baa('0x31')](_0x1f81e2,_0x57bb96);_0x44dc66['is'](_0x5baa('0x87'))&&_0x57bb96[_0x5baa('0x2c')]({'item':_0x44dc66,'type':_0x5baa('0xfd')});}return _0x57bb96;}[_0x5baa('0xa6')](){const _0x5e4eec=new Map(this[_0x5baa('0x72')]),_0x314f13=new Map(_0x5e4eec),_0x1673e8=new Map(),_0x209d2e={'insertions':{},'deletions':{}},_0x4b2da7={'insertions':{},'deletions':{}},_0x34a668=new Map(),_0x557484=new Set([...this[_0x5baa('0x47')][_0x5baa('0xf3')](),...this['_diffRoots'][_0x5baa('0xf3')]()]);_0x557484[_0x5baa('0xfe')](_0x5baa('0x41'));for(const _0x581e90 of _0x557484){const _0x270aa0=this[_0x5baa('0x94')][_0x5baa('0xc')](_0x581e90)||G(_0x581e90,!0x1),_0x3c1b73=this['_baseRoots'][_0x5baa('0xc')](_0x581e90)||G(_0x581e90,!0x1);_0x270aa0[_0x5baa('0xe8')]()||_0x3c1b73['isAttached']()?(_0x209d2e[_0x5baa('0xfb')][_0x581e90]=q(_0x270aa0),_0x209d2e[_0x5baa('0xcd')][_0x581e90]=q(_0x3c1b73),this[_0x5baa('0x61')](_0x209d2e[_0x5baa('0xcd')][_0x581e90],_0x3c1b73),this['_copyMarkers'](_0x209d2e[_0x5baa('0xfb')][_0x581e90],_0x270aa0),_0x4b2da7[_0x5baa('0xfb')][_0x581e90]=this[_0x5baa('0x31')](this[_0x5baa('0xee')][_0x5baa('0xc')](_0x581e90),[]),_0x4b2da7[_0x5baa('0xcd')][_0x581e90]=this[_0x5baa('0x31')](this['_baseIdsRoots'][_0x5baa('0xc')](_0x581e90)||G(_0x581e90,!0x1),[])):_0x557484['delete'](_0x581e90);}for(const _0x8f25ba of _0x557484){const _0x2f56d6=_0x4b2da7['insertions'][_0x8f25ba];for(const _0x8b3531 of _0x2f56d6){const _0x404d09=this[_0x5baa('0x6f')](_0x8b3531),_0x4b2a03=_0x8b3531[_0x5baa('0x8f')][_0x5baa('0xc0')](_0x404d09);_0x314f13[_0x5baa('0xfe')](_0x4b2a03),_0x4b2a03>=this[_0x5baa('0x82')]&&_0x1673e8[_0x5baa('0xbb')](_0x4b2a03,_0x5e4eec[_0x5baa('0xc')](_0x4b2a03));}}for(const _0x186a84 of _0x557484){const _0x1e8b06=_0x4b2da7[_0x5baa('0xfb')][_0x186a84],_0x350c98=this['_getBaseVids'](_0x4b2da7[_0x5baa('0xcd')][_0x186a84]);let _0x192d79=0x0;for(const _0x543240 of _0x1e8b06){const _0x41b7d3=this['_getVidAttributeName'](_0x543240),_0x4bb6e3=_0x543240[_0x5baa('0x8f')]['getAttribute'](_0x41b7d3);if(!_0x1673e8[_0x5baa('0xf9')](_0x4bb6e3)&&!_0x34a668[_0x5baa('0xf9')](_0x4bb6e3)){if(_0x314f13[_0x5baa('0xf9')](_0x4bb6e3))_0x192d79++;else{if(_0x4bb6e3!=_0x350c98[_0x192d79]){const _0x38accb=_0x5e4eec[_0x5baa('0xc')](_0x4bb6e3)||_0x5e4eec[_0x5baa('0xc')](_0x350c98[_0x192d79]);for(;_0x4bb6e3!=_0x350c98[_0x192d79];)_0x314f13[_0x5baa('0xf9')](_0x350c98[_0x192d79])||(_0x34a668['set'](_0x350c98[_0x192d79],_0x38accb),_0x5e4eec['set'](_0x350c98[_0x192d79],_0x38accb)),_0x192d79++;}_0x192d79++;}}}}for(const _0x39e8a3 of _0x557484){const _0x5c7f66=_0x4b2da7[_0x5baa('0xfb')][_0x39e8a3];for(const _0x169e87 of _0x5c7f66){const _0x45b0b4=this[_0x5baa('0x6f')](_0x169e87),_0x429940=_0x169e87[_0x5baa('0x8f')]['getAttribute'](_0x45b0b4);if(_0x34a668['has'](_0x429940)){const _0x26dc5a=_0x34a668[_0x5baa('0xc')](_0x429940);_0x314f13['has'](_0x429940)||_0x314f13['set'](_0x429940,{..._0x26dc5a}),_0x1673e8[_0x5baa('0xbb')](_0x429940,{..._0x26dc5a});}}}for(const _0x8a7b13 of _0x314f13[_0x5baa('0xf3')]())_0x8a7b13>=this['_startingRevisionId']&&_0x314f13[_0x5baa('0xfe')](_0x8a7b13);const _0x13e012=new Map();for(const _0x3aae5e of _0x557484){let _0x39293d=_0x4b2da7[_0x5baa('0xfb')][_0x3aae5e];for(const _0x4e8497 of _0x39293d)if(_0x4e8497[_0x5baa('0x8f')]['is']('element',_0x5baa('0x75'))){const _0x55d0aa=this[_0x5baa('0x6f')](_0x4e8497),_0x449d1c=_0x4e8497[_0x5baa('0x8f')][_0x5baa('0xc0')](_0x55d0aa);if(_0x1673e8[_0x5baa('0xf9')](_0x449d1c)){const _0x388c77=_0x4e8497['item']['parent'][_0x5baa('0x7e')]['getAttribute'](_0x5baa('0xfc')),_0xf917dc=_0x13e012[_0x5baa('0xc')](_0x388c77)||new Set();_0xf917dc[_0x5baa('0x16')](_0x1673e8['get'](_0x449d1c)[_0x5baa('0x57')]),_0x13e012['set'](_0x388c77,_0xf917dc);}}_0x39293d=_0x4b2da7[_0x5baa('0xcd')][_0x3aae5e];for(const _0x111a1c of _0x39293d)if(_0x111a1c[_0x5baa('0x8f')]['is']('element',_0x5baa('0x75'))){const _0x4352aa=this[_0x5baa('0x6f')](_0x111a1c),_0x437b7d=_0x111a1c[_0x5baa('0x8f')][_0x5baa('0xc0')](_0x4352aa);if(_0x314f13[_0x5baa('0xf9')](_0x437b7d)){const _0x4c7135=_0x111a1c[_0x5baa('0x8f')][_0x5baa('0x7e')][_0x5baa('0x7e')][_0x5baa('0xc0')](_0x5baa('0xfc')),_0x24919d=_0x13e012[_0x5baa('0xc')](_0x4c7135)||new Set();_0x24919d[_0x5baa('0x16')](_0x314f13[_0x5baa('0xc')](_0x437b7d)[_0x5baa('0x57')]),_0x13e012[_0x5baa('0xbb')](_0x4c7135,_0x24919d);}}for(const _0xe89098 of _0x13e012[_0x5baa('0xf3')]())(_0x1673e8['has'](_0xe89098)||_0x314f13['has'](_0xe89098))&&_0x13e012[_0x5baa('0xfe')](_0xe89098);}for(const _0x2f0bce of _0x557484){const _0x13281f=_0x4b2da7[_0x5baa('0xfb')][_0x2f0bce];let _0x283481=null,_0xd7b357=null;for(const _0x77c941 of _0x13281f){const _0x503adf=this[_0x5baa('0x6f')](_0x77c941),_0x3f1e43=_0x77c941[_0x5baa('0x8f')]['getAttribute'](_0x503adf),_0x247f16=_0x13e012[_0x5baa('0xc')](_0x3f1e43);_0x247f16&&'elementStart'==_0x77c941[_0x5baa('0x5a')]&&(_0x283481=Array[_0x5baa('0xb4')](_0x247f16)[0x0],_0xd7b357=_0x77c941[_0x5baa('0x8f')][_0x5baa('0xc0')](_0x5baa('0xea'))),_0x283481&&(_0x314f13[_0x5baa('0xbb')](_0x3f1e43,{'userId':_0x283481}),_0x1673e8[_0x5baa('0xbb')](_0x3f1e43,{'userId':_0x283481})),_0x3f1e43==_0xd7b357&&(_0x283481=null,_0xd7b357=null);}}const _0x5e0795={},_0x30f608=new Set();for(const _0x3aa6c2 of _0x557484){const _0x207d0a=_0x209d2e[_0x5baa('0xcd')][_0x3aa6c2],_0x344db9=_0x209d2e[_0x5baa('0xfb')][_0x3aa6c2];for(const {userId:_0x4fbbb8}of this['_touchedMarkers'][_0x5baa('0xb2')]())null!==_0x4fbbb8&&_0x30f608[_0x5baa('0x16')](_0x4fbbb8);for(const {userId:_0x2db555}of this['_touchedRoots'][_0x5baa('0xb2')]())null!==_0x2db555&&_0x30f608[_0x5baa('0x16')](_0x2db555);this[_0x5baa('0xc7')](_0x344db9,_0x4b2da7[_0x5baa('0xfb')][_0x3aa6c2],_0x1673e8,_0x5baa('0xb3'),_0x30f608),this[_0x5baa('0xc7')](_0x207d0a,_0x4b2da7[_0x5baa('0xcd')][_0x3aa6c2],_0x314f13,_0x5baa('0x24'),_0x30f608),_0x5e0795[_0x3aa6c2]={'insertions':this['_prepareViewToSave'](_0x344db9),'deletions':this[_0x5baa('0xf8')](_0x207d0a),'attachChange':this[_0x5baa('0xca')][_0x5baa('0xc')](_0x3aa6c2)||null,'attributesBefore':_0x2b1147(this[_0x5baa('0x76')][_0x5baa('0xc')](_0x3aa6c2))||{},'attributesAfter':_0x2b1147(this[_0x5baa('0x98')]['get'](_0x3aa6c2))};}return{'diffData':_0x5e0795,'authorsIds':Array[_0x5baa('0xb4')](_0x30f608)};}[_0x5baa('0x46')](_0x29652a){for(const [,_0x2385fa]of _0x29652a[_0x5baa('0x11')]){const _0x55d890=_0x2385fa[_0x5baa('0xaa')]['getAncestors']()[_0x5baa('0x1')](_0x280850=>_0x5baa('0x75')==_0x280850[_0x5baa('0x84')]);for(const _0x6bcbd4 of _0x55d890)0x1==_0x6bcbd4[_0x5baa('0x5f')]&&_0x6bcbd4[_0x5baa('0xe3')](0x0)['is'](_0x5baa('0x87'),_0x5baa('0x53'))&&_0x6bcbd4['getChild'](0x0)[_0x5baa('0x27')](_0x5baa('0x9e'),!0x0);}}[_0x5baa('0xf8')](_0x2a7e8c){this[_0x5baa('0x46')](_0x2a7e8c);const _0x542931=this[_0x5baa('0x8c')][_0x5baa('0xb0')]['toView'](_0x2a7e8c,{}),_0x3ec066=Array['from'](_0x542931[_0x5baa('0x66')]())[_0x5baa('0x100')](_0x29d921=>this['_getViewJson'](_0x29d921));return JSON[_0x5baa('0x28')](_0x3ec066);}[_0x5baa('0x13')](_0x1945b7){if(_0x1945b7['is'](_0x5baa('0x67')))return _0x1945b7[_0x5baa('0xb0')];{const _0x4b4aab=_0x1945b7;return{'type':Object[_0x5baa('0xf3')](B)[_0x5baa('0x96')](_0x18b00e=>_0x1945b7 instanceof B[_0x18b00e]),'name':_0x4b4aab[_0x5baa('0x84')],'attributes':Array[_0x5baa('0xb4')](_0x4b4aab[_0x5baa('0x69')]()),'children':Array[_0x5baa('0xb4')](_0x4b4aab['getChildren']())[_0x5baa('0x100')](_0x47b3ae=>this[_0x5baa('0x13')](_0x47b3ae))};}}[_0x5baa('0xc7')](_0x4abe4f,_0x56e7dc,_0x528f5f,_0x1931e2,_0xea395b){let _0x260496=null,_0x328a81=null,_0x2f4bf3=0x0;const _0x57f48d=this['editor'][_0x5baa('0x4e')];for(let _0x4f6d96=0x0;_0x4f6d96<_0x56e7dc[_0x5baa('0xd2')];_0x4f6d96++){const _0x53af6e=this[_0x5baa('0x6f')](_0x56e7dc[_0x4f6d96]),_0x1d3c39=_0x56e7dc[_0x4f6d96]['item'][_0x5baa('0xc0')](_0x53af6e),_0x2660d8=_0x528f5f['get'](_0x1d3c39),_0x426c88=_0x4f6d96==_0x56e7dc['length']-0x1;(!_0x260496&&_0x2660d8&&(_0x260496=_0x2660d8,_0x328a81=_0x56e7dc[_0x4f6d96]),_0x260496&&(!_0x2660d8||_0x2660d8['userId']!=_0x260496['userId']))&&(_0x15ea05(_0x2660d8,L(_0x328a81,_0x4abe4f,_0x57f48d),L(_0x56e7dc[_0x4f6d96],_0x4abe4f,_0x57f48d)),_0x260496=_0x2660d8||null,_0x328a81=_0x2660d8?_0x56e7dc[_0x4f6d96]:null),_0x260496&&_0x426c88&&_0x15ea05(_0x2660d8,L(_0x328a81,_0x4abe4f,_0x57f48d),W(_0x56e7dc[_0x4f6d96],_0x4abe4f,_0x57f48d));}function _0x15ea05(_0x49a5d7,_0x19076d,_0x13449a){const _0x211527=_0x260496[_0x5baa('0x57')],_0x125065=_0x5baa('0x1a')+_0x1931e2+':'+_0x211527+':'+_0x2f4bf3++,_0x43405c=_0x57f48d[_0x5baa('0x63')](_0x19076d,_0x13449a);_0x4abe4f[_0x5baa('0x11')][_0x5baa('0xbb')](_0x125065,_0x43405c),null!==_0x211527&&_0xea395b[_0x5baa('0x16')](_0x211527);}}[_0x5baa('0x6f')](_0x344214){switch(_0x344214[_0x5baa('0x5a')]){case _0x5baa('0x18'):return _0x5baa('0xfc');case'elementEnd':return'vid_end';default:return'vid';}}[_0x5baa('0xae')](_0x10b739,_0x373f13){_0x10b739[_0x5baa('0x83')]=null;for(const _0x1afe97 in _0x10b739){const _0x206d20=_0x10b739[_0x1afe97];if(_0x206d20 instanceof _0x5a9ecf){const _0x2eed1a=_0x373f13[_0x5baa('0xc')](_0x206d20[_0x5baa('0xc4')][_0x5baa('0x6e')]);_0x10b739[_0x1afe97]=this['_fixPosition'](_0x206d20,_0x2eed1a);}if(_0x206d20 instanceof _0x419fb2){const _0x294c1b=_0x373f13[_0x5baa('0xc')](_0x206d20[_0x5baa('0xc4')][_0x5baa('0x6e')]);_0x10b739[_0x1afe97]=this[_0x5baa('0xe9')](_0x206d20,_0x294c1b);}_0x5baa('0xc4')===_0x1afe97&&(_0x10b739[_0x5baa('0xc4')]=_0x373f13['get'](_0x10b739[_0x5baa('0xc4')]['rootName']));}}[_0x5baa('0xe9')](_0x5bd6e5,_0x202cc4){return this[_0x5baa('0x8c')]['model'][_0x5baa('0x63')](this['_fixPosition'](_0x5bd6e5[_0x5baa('0xaa')],_0x202cc4),this[_0x5baa('0x4a')](_0x5bd6e5[_0x5baa('0x20')],_0x202cc4));}[_0x5baa('0x4a')](_0x24a989,_0x2cbd33){return this[_0x5baa('0x8c')][_0x5baa('0x4e')][_0x5baa('0xf2')](_0x2cbd33,_0x24a989['path'],_0x24a989[_0x5baa('0x9f')]);}[_0x5baa('0xd1')](_0x48f888){const _0x5c3d8e=this[_0x5baa('0xee')][_0x5baa('0xc')](_0x48f888[_0x5baa('0x33')][_0x5baa('0xc4')]['rootName']),_0x130e9e=this[_0x5baa('0x4a')](_0x48f888[_0x5baa('0x33')],_0x5c3d8e),_0x26d070=null===_0x48f888[_0x5baa('0x1e')]?null:_0x48f888[_0x5baa('0x1e')]||this['editor']['plugins']['get']('Users')['me']['id'],_0x2ac817=_0x130e9e[_0x5baa('0x7e')],_0x1cc01e=this['_revisionId'],_0x8c0752=[];for(const _0x1927d3 of _0x48f888[_0x5baa('0x62')])if(_0x1927d3['is'](_0x5baa('0x87')))_0x8c0752['push'](this['_makeIdsRoot'](_0x1927d3));else for(let _0x26d662=0x0;_0x26d662<_0x1927d3[_0x5baa('0x71')];_0x26d662++)_0x8c0752['push'](new _0x49c8c5(_0x5baa('0x67'),{'vid':this[_0x5baa('0x29')]++}));const _0x179a2e=this[_0x5baa('0x29')];for(let _0x475c53=_0x1cc01e;_0x475c53<_0x179a2e;_0x475c53++)this[_0x5baa('0x72')][_0x5baa('0xbb')](_0x475c53,{'userId':_0x26d070});_0x2ac817[_0x5baa('0xf5')](_0x130e9e[_0x5baa('0x2')],_0x8c0752);}[_0x5baa('0xa')](_0x166190){(_0x166190=this[_0x5baa('0x56')](_0x166190,this[_0x5baa('0xee')]))[_0x5baa('0x90')]();const _0x5860eb=null===_0x166190[_0x5baa('0x1e')]?null:_0x166190['_authorId']||this[_0x5baa('0x8c')][_0x5baa('0x8d')]['get']('Users')['me']['id'],_0x228eff=_0x166190[_0x5baa('0xff')](),_0x1ff294=_0x228eff[_0x5baa('0x7e')],_0x9f4c85=_0x228eff[_0x5baa('0x2')];!function _0x370e87(_0x2966a4,_0xa367f8,_0x16735d,_0xc5d94a){for(let _0x4adcff=_0x16735d;_0x4adcff<_0xc5d94a;_0x4adcff++){const _0xff2163=_0xa367f8[_0x5baa('0xe3')](_0x4adcff);_0xff2163['is'](_0x5baa('0x87'),_0x5baa('0x67'))?_0x2966a4['set'](_0xff2163[_0x5baa('0xc0')]('vid'),{'userId':_0x5860eb}):(_0x2966a4['set'](_0xff2163[_0x5baa('0xc0')]('vid_start'),{'userId':_0x5860eb}),_0x370e87(_0x2966a4,_0xff2163,0x0,_0xff2163[_0x5baa('0x5f')]),_0x2966a4[_0x5baa('0xbb')](_0xff2163[_0x5baa('0xc0')]('vid_end'),{'userId':_0x5860eb}));}}(this[_0x5baa('0x72')],_0x1ff294,_0x9f4c85,_0x9f4c85+_0x166190[_0x5baa('0x99')]);}[_0x5baa('0x5c')](_0x4d93bd){const _0x3dc5c0=null===(_0x4d93bd=this[_0x5baa('0x56')](_0x4d93bd,this[_0x5baa('0xee')]))[_0x5baa('0x1e')]?null:_0x4d93bd['_authorId']||this[_0x5baa('0x8c')][_0x5baa('0x8d')]['get']('Users')['me']['id'],_0x5071ad=_0x4d93bd['targetPosition'][_0x5baa('0x7e')],_0x1a6fa8=_0x4d93bd[_0x5baa('0x48')]['parent'],_0x182cfc=_0x5071ad[_0x5baa('0xc0')](_0x5baa('0xea')),_0x5cc95e=_0x1a6fa8[_0x5baa('0xc0')](_0x5baa('0xfc'));_0x5071ad['_setAttribute'](_0x5baa('0xea'),_0x1a6fa8[_0x5baa('0xc0')](_0x5baa('0xea'))),_0x1a6fa8[_0x5baa('0x27')](_0x5baa('0xea'),_0x182cfc),this['_touched'][_0x5baa('0xbb')](_0x5cc95e,{'userId':_0x3dc5c0}),this['_touched'][_0x5baa('0xbb')](_0x182cfc,{'userId':_0x3dc5c0}),_0x4d93bd[_0x5baa('0x90')]();}[_0x5baa('0x14')](_0x340551){const _0x35bd65=null===(_0x340551=this[_0x5baa('0x56')](_0x340551,this[_0x5baa('0xee')]))[_0x5baa('0x1e')]?null:_0x340551[_0x5baa('0x1e')]||this['editor'][_0x5baa('0x8d')]['get'](_0x5baa('0x4f'))['me']['id'],_0x3eb3d8=_0x340551[_0x5baa('0x5b')],_0x2edede=_0x340551[_0x5baa('0xc3')][_0x5baa('0x7e')];_0x340551[_0x5baa('0x90')]();const _0x5a4207=_0x2edede[_0x5baa('0xc0')](_0x5baa('0xea')),_0x2b4849=_0x340551[_0x5baa('0xd5')][_0x5baa('0x88')];if(_0x3eb3d8){const _0xe46057=_0x2b4849[_0x5baa('0xc0')](_0x5baa('0xea')),_0x4f9b84=_0x2edede['getAttribute']('vid_end');_0x2edede[_0x5baa('0x27')](_0x5baa('0xea'),_0xe46057),_0x2b4849[_0x5baa('0x27')](_0x5baa('0xea'),_0x4f9b84),this[_0x5baa('0x72')][_0x5baa('0xbb')](_0x2edede[_0x5baa('0xc0')](_0x5baa('0xea')),{'userId':_0x35bd65}),this[_0x5baa('0x72')][_0x5baa('0xbb')](_0x2b4849[_0x5baa('0xc0')]('vid_start'),{'userId':_0x35bd65});}else{const _0x4490b6=this[_0x5baa('0x29')]++,_0x4555f8=this[_0x5baa('0x29')]++;_0x2edede['_setAttribute']('vid_end',_0x4490b6),_0x2b4849[_0x5baa('0x27')](_0x5baa('0xfc'),_0x4555f8),_0x2b4849[_0x5baa('0x27')]('vid_end',_0x5a4207),this['_touched']['set'](_0x4490b6,{'userId':_0x35bd65}),this[_0x5baa('0x72')][_0x5baa('0xbb')](_0x4555f8,{'userId':_0x35bd65});}}[_0x5baa('0xcb')](_0xb74511){if(!_0xb74511['affectsData'])return;const _0x255701=(_0xb74511=this['_cloneOperation'](_0xb74511,this[_0x5baa('0x94')]))[_0x5baa('0xe1')]?_0xb74511[_0x5baa('0xe1')][_0x5baa('0xc4')]:null,_0x2e27ca=_0xb74511[_0x5baa('0x89')]?_0xb74511['newRange'][_0x5baa('0xc4')]:null;_0x255701&&this[_0x5baa('0xaf')][_0x5baa('0xfe')](_0xb74511[_0x5baa('0x84')]),_0x2e27ca&&this[_0x5baa('0xaf')][_0x5baa('0xbb')](_0xb74511[_0x5baa('0x84')],_0xb74511['newRange'][_0x5baa('0xe5')]());const _0x4684e5=null===_0xb74511['_authorId']?null:_0xb74511[_0x5baa('0x1e')]||this['editor']['plugins'][_0x5baa('0xc')]('Users')['me']['id'],_0x42da87=_0xb74511[_0x5baa('0x84')];if(!this['_touchedMarkers'][_0x5baa('0xf9')](_0x42da87))return void this['_touchedMarkers'][_0x5baa('0xbb')](_0x42da87,{'range':_0xb74511[_0x5baa('0xe1')],'userId':_0x4684e5});const _0x5634d9=this[_0x5baa('0xc9')]['get'](_0x42da87),_0x3fd58c=_0x5634d9[_0x5baa('0xc6')],_0x1c9221=_0xb74511[_0x5baa('0x89')];null==_0x3fd58c&&null==_0x1c9221||_0x3fd58c&&_0x1c9221&&_0x3fd58c['isEqual'](_0x1c9221)?this[_0x5baa('0xc9')][_0x5baa('0xfe')](_0xb74511[_0x5baa('0x84')]):_0x5634d9[_0x5baa('0x57')]=_0x4684e5;}[_0x5baa('0x70')](_0x2038a6,_0x2e9b38){this[_0x5baa('0x94')][_0x5baa('0xf9')](_0x2038a6[_0x5baa('0x6e')])?this[_0x5baa('0x94')]['get'](_0x2038a6[_0x5baa('0x6e')])['_isAttached']=_0x2038a6[_0x5baa('0x101')]:(this['_diffRoots']['set'](_0x2038a6[_0x5baa('0x6e')],G(_0x2038a6[_0x5baa('0x6e')],!0x0)),this[_0x5baa('0x98')]['set'](_0x2038a6['rootName'],{}),_0x2e9b38&&this[_0x5baa('0xee')][_0x5baa('0xbb')](_0x2038a6['rootName'],G(_0x2038a6[_0x5baa('0x6e')],!0x0)));const _0x28ae4d=null===_0x2038a6[_0x5baa('0x1e')]?null:_0x2038a6[_0x5baa('0x1e')]||this[_0x5baa('0x8c')][_0x5baa('0x8d')][_0x5baa('0xc')](_0x5baa('0x4f'))['me']['id'],_0x319714=this[_0x5baa('0xca')][_0x5baa('0xc')](_0x2038a6[_0x5baa('0x6e')]);_0x319714&&_0x319714['userId']===_0x28ae4d?this[_0x5baa('0xca')][_0x5baa('0xfe')](_0x2038a6['rootName']):this[_0x5baa('0xca')]['set'](_0x2038a6[_0x5baa('0x6e')],{'userId':_0x28ae4d,'isAttached':_0x2038a6[_0x5baa('0x101')]});}[_0x5baa('0x7a')](_0xb9cb75){const _0x46db14=this['_diffRootsAttributes']['get'](_0xb9cb75[_0x5baa('0xc4')][_0x5baa('0x6e')]);null===_0xb9cb75[_0x5baa('0xab')]?delete _0x46db14[_0xb9cb75[_0x5baa('0x3e')]]:_0x46db14[_0xb9cb75['key']]=_0xb9cb75[_0x5baa('0xab')];}}function q(_0x5b7b47){const _0x5eab30=G(_0x5b7b47[_0x5baa('0x6e')],_0x5b7b47[_0x5baa('0xe8')]());for(const _0x7944b1 of _0x5b7b47[_0x5baa('0x66')]()){const _0x310fe4=_0x7944b1['_clone'](!0x0);_0x5eab30['_appendChild'](_0x310fe4);}return _0x5eab30;}function G(_0x22f171,_0x54e7d7=!0x0){const _0x28c0fd=new _0x574b2b();return _0x28c0fd[_0x5baa('0x6e')]=_0x22f171,_0x28c0fd['_isAttached']=_0x54e7d7,_0x28c0fd[_0x5baa('0xe8')]=()=>_0x28c0fd[_0x5baa('0xc5')],_0x28c0fd;}function L(_0x492644,_0xcc173d,_0x25a819){const _0x369257=_0x5baa('0xfd')==_0x492644[_0x5baa('0x5a')]?_0x25a819[_0x5baa('0x81')](_0x492644[_0x5baa('0x8f')],_0x5baa('0x20')):_0x25a819[_0x5baa('0xad')](_0x492644[_0x5baa('0x8f')]);return _0x25a819[_0x5baa('0xf2')](_0xcc173d,_0x369257['path'],_0x369257[_0x5baa('0x9f')]);}function W(_0x336ab9,_0x22ea7f,_0x38f446){const _0x5214cd=_0x5baa('0x18')==_0x336ab9['type']?_0x38f446[_0x5baa('0x81')](_0x336ab9[_0x5baa('0x8f')],0x0):_0x38f446[_0x5baa('0xba')](_0x336ab9[_0x5baa('0x8f')]);return _0x38f446[_0x5baa('0xf2')](_0x22ea7f,_0x5214cd[_0x5baa('0x44')],_0x5214cd[_0x5baa('0x9f')]);}
|