@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240125.0 → 0.0.0-nightly-20240127.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.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +5 -5
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xecb2=['_execute','delete','clone','currentRevision','createRangeIn','offsetSize','documentFragment','parent','getRootNames','sort','_handleInsertOperation','init','_diffRoots','processor','isAttached','version','insertionPosition','stringify','fromVersion','toVersion','from','previousPosition','afterInit','reInit','for','history','_loadRevisionData','getTransformedByOperation','_makeIdsRoot','_handleMergeOperation','revision:','dataToMarker','model','getRevisionRootsAttributes','define','diffData','markerToData','_createInitialRevision','stickiness','_getVidAttributeName','element','addRoot','insertions','initialData','authorsIds','clear','rootsAttributes','trim','remove','createPositionFromPath','updateRevisions','Empty\x20document','graveyardPosition','bind','getData','addRevision','createdAt','createPositionAt','_saveMetaData','getIndex','attributesAfter','start','$text','_processRootBeforeSave','_removePendingAction','plugins','_generateTape','slice','deletions','_createCurrentRevision','splitPosition','_authorId','NEGATIVE_INFINITY','_isPendingUpdate','has','_loadedStateData','map','_source','_getBaseVids','_addPendingAction','getLatestVersion','length','split','pluginName','_touched','_clone','_idsRoots','set','oldRange','_handleMoveOperation','getRange','creatorId','affectsData','root','RealTimeCollaborationClient','getTime','setRevisionData','filter','marked','editor','_operations','_update','_replaceEditorDataWithRevisionData','_markChanges','resolve','_startingRevisionId','paragraph','_transformMarkers','_prepareViewToSave','_fixOperation','_continueCurrentRevision','forEach','tableCell','keys','vid_start','userId','isAdd','type','_insertChild','getRoot','createRevision','newRange','getWalker','get','position','_touchedRoots','_getState','_makeModelFromViewString','getRevision','_appendChild','_baseRoots','initial','_setConversion','attributes','repository','end','howMany','then','key','getOperations','_isInit','markers','marker','_lastTo','$graveyard','creator','_findInsertionIndex','push','useFillerType','default','_createFromRanges','revision-end','_markers','_removeMetaData','_revisionId','_lastFrom','elementEnd','_handleOperation','adapter','collaboration.channelId','values','getCurrentRevisionId','update','deletion','_removeRevisionMarkers','find','item','editing','_cloneOperation','name','insert','sendBufferedUpdates','PendingActions','getAttribute','authors','_bufferUpdate','loadState','_fixPosition','dataDowncast','isReady','max','_handleSplitOperation','Initial\x20revision','_baseRootsAttributes','fromEntries','_isAttached','_handleRootAttributeOperation','attributesBefore','_reset','rootName','_getViewJson','path','removeRootAttribute','data','revisionHistory.resumeUnsavedRevision','_loadState','_revisionDataBuilder','getAncestors','_diffRootsAttributes','shift','roots','string','add','parse','addRevisionData','children','getOperation','vid_end','nodeAfter','getRevisionDocumentData','locale','_initialRevisionId','_savedMetaData','revision-start','_calculateMetaData','config','startsWith','isEqual','_pendingAction','attachChange','sourcePosition','_getPreviousFrom','reverse','finally','getChildren','_handleMarkerOperation','buildRevisionData','move','getMovedRangeStart','_bufferedUpdates','getNodeByPath','newValue','_copyMarkers','view','createRange','_applyOperations','source','conversion','vid','revision','size','isEnabled','Users','getChild','baseVersion','_fixRange','elementStart','_touchedMarkers','_handleRootOperation','data-revision-','getRevisions','document','changeRootAttribute','RevisionTracker','_makeRevision','childCount','_baseIdsRoots','_setAttribute','_startingVersion'];(function(_0xfa79b8,_0xecb2b2){const _0x3241f8=function(_0x270162){while(--_0x270162){_0xfa79b8['push'](_0xfa79b8['shift']());}};_0x3241f8(++_0xecb2b2);}(_0xecb2,0xa5));const _0x3241=function(_0xfa79b8,_0xecb2b2){_0xfa79b8=_0xfa79b8-0x0;let _0x3241f8=_0xecb2[_0xfa79b8];return _0x3241f8;};import{Users as _0x370923}from'ckeditor5-collaboration/src/collaboration-core.js';import{Plugin as _0x2d6e89,PendingActions as _0x30d7b3}from'ckeditor5/src/core.js';import{logWarning as _0x4f215e,uid as _0x20680c}from'ckeditor5/src/utils.js';import{Position as _0x27058a,Range as _0x39f223,Element as _0x20f26a,DocumentFragment as _0x33b03c,ViewText as _0x34ecdc,ViewElement as _0x2d6c17,ViewContainerElement as _0x30f5eb,ViewAttributeElement as _0x418302,ViewEmptyElement as _0x3906b5,ViewRawElement as _0x4bfff8,ViewUIElement as _0x4ae1a5,ViewDocumentFragment as _0x3b0c8f}from'ckeditor5/src/engine.js';import _0x87a3c3 from'./revisionsrepository.js';import{getTranslation as _0xfcf7a8}from'./utils/common-translations.js';import{cloneDeep as _0x3bfbe7,isEqual as _0x78a64d}from'lodash-es';const B={'c':_0x30f5eb,'a':_0x418302,'e':_0x3906b5,'r':_0x4bfff8,'u':_0x4ae1a5};export default class l extends _0x2d6e89{static get[_0x3241('0xb1')](){return _0x3241('0x58');}static get['requires'](){return[_0x370923,_0x87a3c3,_0x30d7b3];}constructor(_0x29f002){super(_0x29f002),this[_0x3241('0xfc')]=null,this[_0x3241('0x61')]=null,this[_0x3241('0x1f')]=new H(this['editor']),this['_initialRevisionId']=this[_0x3241('0xc1')][_0x3241('0x32')][_0x3241('0xd9')](_0x3241('0xfd'))||_0x3241('0xe1'),this[_0x3241('0x40')]=new Map(),this[_0x3241('0xa9')]=null;const _0x104719=_0x20680c();this['_source']={'history':this['editor'][_0x3241('0x7e')][_0x3241('0x56')][_0x3241('0x77')],'getLatestVersion':()=>Promise['resolve'](this['editor'][_0x3241('0x7e')][_0x3241('0x56')]['version']),'getCurrentRevisionId':()=>_0x104719},this[_0x3241('0xb5')](_0x3241('0xe'),!0x1),this[_0x3241('0xb5')](_0x3241('0x4c'),!0x0),this[_0x3241('0xb5')]('_isPendingUpdate',!0x1),this[_0x3241('0xc1')][_0x3241('0x32')][_0x3241('0x80')](_0x3241('0x1d'),!0x0),this[_0x3241('0xc1')][_0x3241('0x48')][_0x3241('0x76')]('upcast')[_0x3241('0x7d')]({'view':_0x3241('0x4a')});}[_0x3241('0x69')](){this['repository']=this['editor'][_0x3241('0x9f')]['get']('RevisionsRepository'),this[_0x3241('0xe2')](),this[_0x3241('0xc1')][_0x3241('0x1c')]['on']('ready',()=>{const _0x5ee652=this[_0x3241('0xe4')][_0x3241('0xde')](0x0),_0x13884b=_0x5ee652&&null===_0x5ee652[_0x3241('0xef')]?_0x5ee652:null;if(this['_continueCurrentRevision']=!!_0x13884b&&this[_0x3241('0xc1')][_0x3241('0x32')][_0x3241('0xd9')](_0x3241('0x1d')),this[_0x3241('0xc1')][_0x3241('0x9f')][_0x3241('0xa8')](_0x3241('0xbc'))){const _0x26e54f=this['_source'][_0x3241('0xff')](),_0x3bd491=this[_0x3241('0xe4')][_0x3241('0xde')](_0x26e54f);if(_0x3bd491)this['_startingVersion']=_0x3bd491[_0x3241('0x70')],this['_continueCurrentRevision']=!0x1;else{const _0x1a6d37=this['_source']['history'][_0x3241('0xc2')][_0x3241('0x0')](_0x3b2de4=>!_0x3b2de4[_0x3241('0xea')]),_0x2af165=_0x1a6d37?_0x1a6d37[_0x3241('0x4f')]:this[_0x3241('0xab')][_0x3241('0x77')][_0x3241('0x6d')];_0x5ee652?(_0x5ee652[_0x3241('0x71')]<_0x2af165&&_0x5ee652[_0x3241('0xc3')]({'toVersion':_0x2af165}),this[_0x3241('0xcc')]?(this[_0x3241('0xab')]['getCurrentRevisionId']=()=>_0x13884b['id'],this['_startingVersion']=_0x13884b[_0x3241('0x70')]):(this[_0x3241('0x5d')]=_0x5ee652[_0x3241('0x71')],this[_0x3241('0xcc')]=!0x1)):(this['_startingVersion']=_0x2af165,this[_0x3241('0xcc')]=!0x1);}}else _0x13884b&&(this[_0x3241('0xc1')][_0x3241('0x7e')]['document']['history'][_0x3241('0x6d')]=Math[_0x3241('0xf')](_0x13884b[_0x3241('0x71')],this[_0x3241('0xc1')][_0x3241('0x7e')][_0x3241('0x56')][_0x3241('0x77')][_0x3241('0x6d')]),_0x13884b['fromVersion']===_0x13884b[_0x3241('0x71')]?(0x0!==_0x13884b['fromVersion']&&(this['_source'][_0x3241('0xff')]=()=>_0x13884b['id']),this[_0x3241('0xcc')]=!0x1):this[_0x3241('0xcc')]&&(this[_0x3241('0xab')]['getCurrentRevisionId']=()=>_0x13884b['id'],this['_startingVersion']=_0x13884b[_0x3241('0x70')])),this[_0x3241('0xcc')]||(this[_0x3241('0x5d')]=this[_0x3241('0xc1')][_0x3241('0x7e')][_0x3241('0x56')][_0x3241('0x6d')]);this['_revisionDataBuilder'][_0x3241('0x69')](this['_source']['history']),this[_0x3241('0x83')](this[_0x3241('0x5d')]),this[_0x3241('0xa3')](this[_0x3241('0x5d')]),this[_0x3241('0xfc')]&&this[_0x3241('0x6')]();}),this[_0x3241('0x93')](_0x3241('0xe'))['to'](this,'_isPendingUpdate',_0x391715=>!_0x391715);}async[_0x3241('0x74')](){if(this[_0x3241('0xe4')]['length']>0x0){const _0x3afee8=this[_0x3241('0xe4')][_0x3241('0xde')](0x0),_0x4adc12=await this['getRevisionDocumentData'](_0x3afee8),_0x1a794d=await this[_0x3241('0x7f')](_0x3afee8);this[_0x3241('0xc4')](_0x4adc12,_0x1a794d);}}['setSource'](_0x52136b){this[_0x3241('0xab')]=_0x52136b;}async[_0x3241('0x100')](){const _0x18546f=await this[_0x3241('0xab')][_0x3241('0xae')]();if(_0x18546f>this[_0x3241('0x61')][_0x3241('0x71')]){await this[_0x3241('0x1e')]();const _0x48a9fa=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x18546f});_0x48a9fa['authors']=_0x48a9fa['authorsIds'][_0x3241('0xaa')](_0x4c99ce=>this[_0x3241('0xc1')][_0x3241('0x9f')]['get']('Users')['getUser'](_0x4c99ce)),this[_0x3241('0x61')][_0x3241('0xc3')](_0x48a9fa);}}async[_0x3241('0x1e')](){this[_0x3241('0xcc')]&&!this[_0x3241('0xa9')]&&(await this['_loadRevisionData'](this[_0x3241('0x61')]),this[_0x3241('0x1f')][_0x3241('0xb')](this[_0x3241('0x61')]),this['_loadedStateData']={'fromVersion':this[_0x3241('0x61')][_0x3241('0x70')],'authors':this[_0x3241('0x61')][_0x3241('0x9')][_0x3241('0xa1')]()});}async['saveRevision'](_0x594959={},_0x21ffce=null){const _0x565194=[];await this[_0x3241('0x1e')](),this['_continueCurrentRevision']=!0x1,_0x21ffce>this['currentRevision'][_0x3241('0x71')]&&(_0x21ffce=null),null===_0x21ffce&&(_0x21ffce=await this[_0x3241('0xab')][_0x3241('0xae')]());const _0x5b7095=this['_getFromVersion'](_0x21ffce),_0x1f3c6a=this[_0x3241('0x3d')]({'from':_0x5b7095,'to':_0x21ffce});if(this['currentRevision'][_0x3241('0x71')]<_0x21ffce){const _0x3b9554=this[_0x3241('0x3d')]({'revision':this[_0x3241('0x61')],'from':_0x21ffce,'to':_0x21ffce});_0x3b9554[_0x3241('0x9')]=[],_0x3b9554[_0x3241('0x8a')]=[],_0x3b9554['id']=this[_0x3241('0x61')]['id'],this[_0x3241('0x61')][_0x3241('0xc3')](_0x3b9554,!0x0),delete _0x3b9554[_0x3241('0x9')],_0x565194[_0x3241('0xf1')](_0x3b9554);}_0x594959[_0x3241('0xb9')]=this['editor'][_0x3241('0x9f')]['get'](_0x3241('0x4d'))['me']['id'],_0x594959[_0x3241('0x4')]=_0x594959['name']||null,_0x594959['id']=_0x594959['id']||_0x20680c(),_0x594959={..._0x594959,..._0x1f3c6a};const _0x322b77=this[_0x3241('0x27')](_0x594959);_0x565194[_0x3241('0xf1')](_0x594959);const _0x4ff584=this[_0x3241('0xe4')][_0x3241('0x99')](_0x322b77);if(0x0!==_0x4ff584){const _0x22fd95=this[_0x3241('0xe4')][_0x3241('0xde')](_0x4ff584-0x1);if(_0x22fd95[_0x3241('0x70')]!==_0x21ffce){const _0x14e015=this[_0x3241('0x1f')][_0x3241('0x94')](_0x21ffce,_0x22fd95[_0x3241('0x71')]),_0x2fa5b1={'id':_0x22fd95['id'],'diffData':_0x14e015[_0x3241('0x81')],'authorsIds':_0x14e015[_0x3241('0x8a')],'authors':_0x14e015['authorsIds'][_0x3241('0xaa')](_0x2e6379=>this[_0x3241('0xc1')][_0x3241('0x9f')][_0x3241('0xd9')](_0x3241('0x4d'))['getUser'](_0x2e6379)),'fromVersion':_0x21ffce};_0x22fd95===this[_0x3241('0x61')]&&(_0x2fa5b1[_0x3241('0x96')]=new Date(_0x594959[_0x3241('0x96')][_0x3241('0xbd')]()+0xa)),_0x22fd95[_0x3241('0xc3')](_0x2fa5b1,!0x0),delete _0x2fa5b1[_0x3241('0x9')],_0x565194[_0x3241('0xf1')](_0x2fa5b1);}}if(this[_0x3241('0xfc')]){for(const _0x4e6e88 of _0x565194)this[_0x3241('0xa')](_0x4e6e88['id'],_0x4e6e88,!0x0);this[_0x3241('0x6')]();}return _0x322b77;}['addRevisionData'](_0x3a5d10){const _0x53e7e4=this[_0x3241('0xe4')][_0x3241('0xd6')](_0x3a5d10);return this[_0x3241('0xfc')]&&_0x53e7e4['on'](_0x3241('0xc3'),(_0x1872c9,_0x188966,_0xd78c6d)=>{_0xd78c6d||(this['_bufferUpdate'](_0x188966['id'],_0x188966,!0x0),this[_0x3241('0x6')]());}),this[_0x3241('0xe4')][_0x3241('0x95')](_0x53e7e4,this['_findInsertionIndex'](_0x53e7e4)),_0x53e7e4;}async[_0x3241('0x2c')](_0x1267e9){await this[_0x3241('0x78')](_0x1267e9);const _0x49aef1={};for(const _0x2da62e in _0x1267e9[_0x3241('0x81')]){if(_0x1267e9[_0x3241('0x81')][_0x2da62e][_0x3241('0x36')]&&!_0x1267e9[_0x3241('0x81')][_0x2da62e][_0x3241('0x36')]['isAttached'])continue;const _0x563b0e=this[_0x3241('0x102')](JSON['parse'](_0x1267e9[_0x3241('0x81')][_0x2da62e][_0x3241('0x88')])),_0x3f8c90=this[_0x3241('0xc1')]['editing'][_0x3241('0x44')][_0x3241('0x56')],_0x2ca655=new _0x3b0c8f(_0x3f8c90,_0x563b0e[_0x3241('0xaa')](_0x14a100=>J(_0x14a100,this[_0x3241('0xc1')])));this[_0x3241('0xc1')][_0x3241('0x1c')][_0x3241('0x6b')][_0x3241('0xf2')](_0x3241('0xc0')),_0x49aef1[_0x2da62e]=this[_0x3241('0xc1')][_0x3241('0x1c')][_0x3241('0x6b')]['toData'](_0x2ca655),this['editor']['data'][_0x3241('0x6b')]['useFillerType'](_0x3241('0xf3'));}return _0x49aef1;}async['getRevisionRootsAttributes'](_0x5ccf24){await this['_loadRevisionData'](_0x5ccf24);const _0x309a27={};for(const _0x26bf84 in _0x5ccf24['diffData'])_0x5ccf24[_0x3241('0x81')][_0x26bf84]['attachChange']&&!_0x5ccf24[_0x3241('0x81')][_0x26bf84][_0x3241('0x36')][_0x3241('0x6c')]||(_0x309a27[_0x26bf84]=_0x5ccf24[_0x3241('0x81')][_0x26bf84][_0x3241('0x9a')]||{});return _0x309a27;}[_0x3241('0x6')](){if(0x0===this[_0x3241('0x40')]['size'])return;if(this[_0x3241('0xa7')])return;let _0x3c8447=Array['from'](this[_0x3241('0x40')][_0x3241('0xfe')]());this[_0x3241('0x40')][_0x3241('0x8b')]();for(let _0x3a4101=0x0;_0x3a4101<_0x3c8447[_0x3241('0xaf')];_0x3a4101++){const _0x32eb87=_0x3c8447[_0x3a4101];let _0x3d5a6b=!0x1;for(const _0x3b3d51 of Object[_0x3241('0xcf')](_0x32eb87))void 0x0===_0x32eb87[_0x3b3d51]?delete _0x32eb87[_0x3b3d51]:'id'!==_0x3b3d51&&(_0x3d5a6b=!0x0);_0x3d5a6b||(_0x3c8447[_0x3a4101]=null);}if(_0x3c8447=_0x3c8447[_0x3241('0xbf')](_0x355d9c=>null!==_0x355d9c),!_0x3c8447[_0x3241('0xaf')])return;for(let _0x53ebba=0x0;_0x53ebba<_0x3c8447['length'];_0x53ebba++){const _0x2f3b00=_0x3c8447[_0x53ebba];void 0x0!==_0x2f3b00[_0x3241('0x70')]&&void 0x0===_0x2f3b00[_0x3241('0x71')]&&(_0x2f3b00[_0x3241('0x71')]=this['repository']['getRevision'](_0x2f3b00['id'])[_0x3241('0x71')]),void 0x0!==_0x2f3b00[_0x3241('0x71')]&&void 0x0===_0x2f3b00['fromVersion']&&(_0x2f3b00[_0x3241('0x70')]=this['repository'][_0x3241('0xde')](_0x2f3b00['id'])[_0x3241('0x70')]);}const _0x3e2564=this['editor'][_0x3241('0x32')]['get'](_0x3241('0xfd'));this[_0x3241('0xa7')]=!0x0,this[_0x3241('0xad')](),this[_0x3241('0xfc')][_0x3241('0x90')](_0x3c8447,_0x3e2564)[_0x3241('0x3a')](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x412655=>{if(_0x412655)for(const _0x11d05b of _0x412655)this[_0x3241('0xbe')]({'id':_0x11d05b['id'],'createdAt':_0x11d05b['createdAt']});this[_0x3241('0x9e')](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x362ce5,_0x4deced){let _0x220853=this['editor']['config'][_0x3241('0xd9')](_0x3241('0x89')),_0x19fb44=this[_0x3241('0xc1')][_0x3241('0x32')][_0x3241('0xd9')](_0x3241('0x8c'));if(void 0x0===_0x220853){_0x220853={};for(const _0x352240 of this[_0x3241('0xc1')][_0x3241('0x7e')]['document'][_0x3241('0x66')]())_0x220853[_0x352240]='';}if(_0x3241('0x24')==typeof _0x220853&&(_0x220853={'main':_0x220853}),void 0x0===_0x19fb44){_0x19fb44={};for(const _0x26ea96 of this[_0x3241('0xc1')]['model'][_0x3241('0x56')][_0x3241('0x66')]())_0x19fb44[_0x26ea96]={};}let _0x3ea3e1=!0x1;const _0x5014b2=Object[_0x3241('0xcf')](_0x220853),_0x4c0448=Object[_0x3241('0xcf')](_0x362ce5);for(const _0x2f8cfc of _0x5014b2){if(_0x220853[_0x2f8cfc]!==_0x362ce5[_0x2f8cfc]&&''!==_0x220853[_0x2f8cfc][_0x3241('0x8d')]()){_0x3ea3e1=!0x0;break;}if(!_0x78a64d(_0x19fb44[_0x2f8cfc],_0x4deced[_0x2f8cfc])&&Object['keys'](_0x19fb44[_0x2f8cfc])[_0x3241('0xaf')]>0x0){_0x3ea3e1=!0x0;break;}}_0x3ea3e1||(_0x3ea3e1=_0x4c0448['some'](_0x55f472=>!this[_0x3241('0xc1')][_0x3241('0x7e')][_0x3241('0x56')][_0x3241('0xd5')](_0x55f472))),_0x3ea3e1&&_0x4f215e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x220853,'editorRootsAttributes':_0x19fb44,'revisionData':_0x362ce5,'revisionRootsAttributes':_0x4deced}),this[_0x3241('0xc1')][_0x3241('0x32')][_0x3241('0xb5')](_0x3241('0x89'),_0x362ce5),this[_0x3241('0xc1')]['config'][_0x3241('0xb5')]('rootsAttributes',_0x4deced);}['_addPendingAction'](){if(!this[_0x3241('0x35')]){const _0xbe93c7=this[_0x3241('0xc1')][_0x3241('0x9f')][_0x3241('0xd9')](_0x3241('0x7'));this['_pendingAction']=_0xbe93c7[_0x3241('0x25')](_0xfcf7a8(this['editor'][_0x3241('0x2d')],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this[_0x3241('0x35')]&&(this[_0x3241('0xc1')][_0x3241('0x9f')][_0x3241('0xd9')]('PendingActions')[_0x3241('0x8e')](this[_0x3241('0x35')]),this['_pendingAction']=null);}[_0x3241('0xf0')](_0xc084ec){const _0x33f76e=this['repository'][_0x3241('0x55')]();_0x33f76e['reverse']();let _0x2708f4=0x0;for(;_0x2708f4<_0x33f76e[_0x3241('0xaf')];){const _0x175fed=_0x33f76e[_0x2708f4];if(_0x175fed===this[_0x3241('0x61')]){_0x2708f4++;continue;}if(_0x175fed['id']===this[_0x3241('0x2e')])break;const _0x55f53a=_0xc084ec['toVersion']-_0x175fed[_0x3241('0x71')]||_0xc084ec['fromVersion']-_0x175fed[_0x3241('0x70')];if(_0x55f53a>0x0)break;if(_0x55f53a<0x0)_0x2708f4++;else{if(!_0xc084ec[_0x3241('0xef')]&&_0x175fed['creator'])break;if(_0x175fed[_0x3241('0xef')]||!_0xc084ec[_0x3241('0xef')]){if(_0xc084ec['createdAt']>_0x175fed[_0x3241('0x96')])break;_0x2708f4++;}else _0x2708f4++;}}return _0x2708f4;}['setRevisionData'](_0x4f9a28){const _0x2d9b96=this[_0x3241('0xe4')][_0x3241('0xde')](_0x4f9a28['id']);if(_0x4f9a28[_0x3241('0x96')]&&(_0x4f9a28[_0x3241('0x96')]=new Date(_0x4f9a28[_0x3241('0x96')])),_0x4f9a28[_0x3241('0x8a')]){const _0x2b78f5=this[_0x3241('0xc1')][_0x3241('0x9f')][_0x3241('0xd9')](_0x3241('0x4d'));_0x4f9a28[_0x3241('0x9')]=_0x4f9a28['authorsIds']['map'](_0x20a36e=>_0x2b78f5['getUser'](_0x20a36e));}_0x2d9b96[_0x3241('0xc3')](_0x4f9a28,!0x0);}['buildRevisionData']({revision:_0x2acf0d=null,from:_0x3c3931=null,to:_0x287a2e=null}){_0x3c3931=null!==_0x3c3931?_0x3c3931:_0x2acf0d['fromVersion'],_0x287a2e=null!==_0x287a2e?_0x287a2e:_0x2acf0d[_0x3241('0x71')];const _0x447269=this[_0x3241('0x1f')][_0x3241('0x94')](_0x3c3931,_0x287a2e),_0x474826={'diffData':_0x447269[_0x3241('0x81')],'authorsIds':_0x447269[_0x3241('0x8a')],'fromVersion':_0x3c3931,'toVersion':_0x287a2e};if(!_0x2acf0d||_0x287a2e!==_0x2acf0d['toVersion']){const _0x4342bb=_0x287a2e-0x1,_0x47271c=this[_0x3241('0xab')][_0x3241('0x77')][_0x3241('0x29')](_0x4342bb);_0x474826['createdAt']=_0x47271c&&_0x47271c[_0x3241('0x96')]||new Date();}if(this[_0x3241('0xa9')]&&_0x3c3931===this[_0x3241('0xa9')][_0x3241('0x70')])for(const _0x3a2b96 of this[_0x3241('0xa9')][_0x3241('0x9')])_0x474826['authorsIds']['includes'](_0x3a2b96['id'])||_0x474826[_0x3241('0x8a')]['push'](_0x3a2b96['id']);return _0x474826;}[_0x3241('0x78')](_0x53d6f1){if(!_0x53d6f1||_0x53d6f1['diffData'])return Promise[_0x3241('0xc6')]();{const _0x31b1b6=this[_0x3241('0xc1')][_0x3241('0x32')]['get'](_0x3241('0xfd'));return this[_0x3241('0xfc')]['getRevision']({'channelId':_0x31b1b6,'revisionId':_0x53d6f1['id']})[_0x3241('0xe7')](_0x21843d=>{_0x53d6f1[_0x3241('0x81')]=_0x21843d[_0x3241('0x81')];});}}['_bufferUpdate'](_0x197ddc,_0x3990f5,_0x3bd405){if(this['_bufferedUpdates'][_0x3241('0xa8')](_0x197ddc)){const _0x5c58ee=this[_0x3241('0x40')]['get'](_0x197ddc);_0x3990f5=_0x3bd405?{..._0x5c58ee,..._0x3990f5}:{..._0x3990f5,..._0x5c58ee};}this[_0x3241('0x40')][_0x3241('0xb5')](_0x197ddc,_0x3990f5);}['_getFromVersion'](_0x53f3f7){const _0x515277=this[_0x3241('0xe4')]['getRevisions']();_0x515277[_0x3241('0x39')](),_0x515277[_0x3241('0x22')]();const _0x466fb8=_0x515277[_0x3241('0x0')](_0x1a7b58=>_0x1a7b58['toVersion']<=_0x53f3f7)[_0x3241('0x71')];return _0x466fb8<this['_startingVersion']?this['_startingVersion']:_0x466fb8;}[_0x3241('0x83')](_0x300e6e){const _0x31de8f=this['repository'][_0x3241('0xde')](this['repository'][_0x3241('0xaf')]-0x1);if(_0x31de8f)this['_initialRevisionId']=_0x31de8f['id'];else{const _0x20d86a=!this[_0x3241('0xc1')]['model'][_0x3241('0x56')]['roots'][_0x3241('0x0')](_0x571203=>this[_0x3241('0xc1')][_0x3241('0x7e')]['hasContent'](_0x571203)),_0x4a3244=this[_0x3241('0xc1')][_0x3241('0x9f')][_0x3241('0xd9')]('Users')['me']['id'],_0x26dea1=_0xfcf7a8(this[_0x3241('0xc1')]['locale'],_0x20d86a?_0x3241('0x91'):_0x3241('0x11'));this[_0x3241('0x59')]({'from':_0x300e6e,'to':_0x300e6e,'id':this[_0x3241('0x2e')],'name':_0x26dea1,'creatorId':_0x4a3244});}}[_0x3241('0xa3')](_0x12f7eb){const _0x2aabdc=this[_0x3241('0xab')][_0x3241('0xff')]();this[_0x3241('0x61')]=this[_0x3241('0xe4')][_0x3241('0xde')](_0x2aabdc),this['currentRevision']||(this[_0x3241('0x61')]=this[_0x3241('0x59')]({'from':_0x12f7eb,'to':_0x12f7eb,'id':_0x2aabdc,'name':'','creatorId':null}));}['_makeRevision']({name:_0x44fe25,from:_0x5956d6,to:_0x383fd9,creatorId:_0x591691,id:_0x5b1999}){const _0x4a22d4=this['buildRevisionData']({'from':_0x5956d6,'to':_0x383fd9});_0x4a22d4[_0x3241('0x4')]=_0x44fe25,_0x4a22d4[_0x3241('0xb9')]=_0x591691,_0x4a22d4['id']=_0x5b1999;const _0x146bc4=this[_0x3241('0x27')](_0x4a22d4);return this['adapter']&&this[_0x3241('0xa')](_0x4a22d4['id'],_0x4a22d4,!0x0),_0x146bc4;}[_0x3241('0xe2')](){this[_0x3241('0xc1')][_0x3241('0x48')][_0x3241('0x76')](_0x3241('0xd'))[_0x3241('0x82')]({'model':_0x3241('0x4a')});}[_0x3241('0x102')](_0x4ca2ac){return(_0x4ca2ac=_0x4ca2ac[_0x3241('0xbf')](_0x366a10=>!_0x366a10[_0x3241('0x4')]||_0x3241('0x30')!==_0x366a10[_0x3241('0x4')]&&_0x3241('0xf5')!==_0x366a10[_0x3241('0x4')]))[_0x3241('0xcd')](_0x547135=>{_0x3241('0x24')!=typeof _0x547135&&(_0x547135['children']=this['_removeRevisionMarkers'](_0x547135[_0x3241('0x28')]),_0x547135['attributes']=_0x547135[_0x3241('0xe3')][_0x3241('0xbf')](_0x1f729a=>!_0x1f729a[0x0][_0x3241('0x33')](_0x3241('0x54'))));}),_0x4ca2ac;}}function J(_0x1cbacb,_0x219ae0){const _0x232816=_0x219ae0[_0x3241('0x2')]['view']['document'];if('string'==typeof _0x1cbacb)return new _0x34ecdc(_0x232816,_0x1cbacb);{const _0x5e15c9=_0x1cbacb[_0x3241('0x28')]['map'](_0x290504=>J(_0x290504,_0x219ae0));return new(B[_0x1cbacb[(_0x3241('0xd3'))]]||_0x2d6c17)(_0x232816,_0x1cbacb[_0x3241('0x4')],_0x1cbacb['attributes'],_0x5e15c9);}}class H{constructor(_0x3c8bdd){this[_0x3241('0xc1')]=_0x3c8bdd,this[_0x3241('0x2f')]=new Map(),this[_0x3241('0xf9')]=-0x1,this[_0x3241('0xed')]=-0x1,this[_0x3241('0xf6')]=new Map(),this[_0x3241('0x6a')]=new Map(),this[_0x3241('0x21')]=new Map(),this[_0x3241('0xe0')]=new Map(),this[_0x3241('0x12')]=new Map(),this[_0x3241('0xb4')]=new Map(),this[_0x3241('0x5b')]=new Map(),this[_0x3241('0xb2')]=new Map(),this[_0x3241('0x52')]=new Map(),this[_0x3241('0xdb')]=new Map(),this[_0x3241('0xf8')]=0x1;}[_0x3241('0x69')](_0x170eef){this[_0x3241('0x47')]=_0x170eef;const _0x23915b=new Map(),_0x4becde=new Map(),_0x2a9043=this['editor'][_0x3241('0x7e')][_0x3241('0x56')][_0x3241('0x23')]['map'](_0x3b3901=>_0x3b3901[_0x3241('0x18')]);for(const _0x4a26c1 of _0x2a9043){const _0x4fa5e1=this['editor'][_0x3241('0x7e')]['document'][_0x3241('0xd5')](_0x4a26c1),_0x583f00=q(_0x4fa5e1);_0x23915b[_0x3241('0xb5')](_0x4a26c1,_0x583f00),_0x4becde[_0x3241('0xb5')](_0x4a26c1,Object[_0x3241('0x13')](_0x4fa5e1['getAttributes']()));}const _0x1dde10=Array['from'](this[_0x3241('0xc1')][_0x3241('0x7e')]['markers'])[_0x3241('0xaa')](_0x595b10=>[_0x595b10[_0x3241('0x4')],_0x595b10[_0x3241('0xb8')]()]),_0x11154f=this[_0x3241('0x47')][_0x3241('0x6d')];this['_saveMetaData'](_0x11154f,_0x23915b,_0x1dde10,_0x4becde),this[_0x3241('0xc7')]=this[_0x3241('0xf8')];const _0x426346=new Map(),_0x2c8850=new Map();for(const _0x15b40a of _0x2a9043){const _0x502eba=G(_0x15b40a);_0x426346[_0x3241('0xb5')](_0x15b40a,_0x502eba),_0x2c8850['set'](_0x15b40a,{});}this[_0x3241('0x98')](Number[_0x3241('0xa6')],_0x426346,[],_0x2c8850);}['getData'](_0x4346b5,_0x34295a){if(this[_0x3241('0xf9')]===_0x4346b5&&this[_0x3241('0xed')]<=_0x34295a)this[_0x3241('0x2f')][_0x3241('0x4b')]>0x1&&this[_0x3241('0xf7')](this[_0x3241('0xed')]),this[_0x3241('0x46')](this[_0x3241('0xed')],_0x34295a,!0x0);else{if(!this[_0x3241('0x2f')]['has'](_0x4346b5)){const _0x15af79=this['_getPreviousFrom'](_0x4346b5);this[_0x3241('0x31')](_0x15af79,_0x4346b5,!0x1);}this[_0x3241('0x31')](_0x4346b5,_0x34295a,!0x0);}return this[_0x3241('0xf9')]=_0x4346b5,this[_0x3241('0xed')]=_0x34295a,this[_0x3241('0xdc')]();}[_0x3241('0xb')](_0x2ed391){this[_0x3241('0x17')](),this[_0x3241('0xf9')]=_0x2ed391['fromVersion'],this[_0x3241('0xed')]=_0x2ed391[_0x3241('0x71')];for(const _0x2edb14 in _0x2ed391['diffData']){const _0x562212=_0x2ed391[_0x3241('0x81')][_0x2edb14][_0x3241('0x36')],_0x137924=_0x3bfbe7(_0x2ed391[_0x3241('0x81')][_0x2edb14][_0x3241('0x16')])||{},_0x5ae044=this[_0x3241('0xdd')](_0x2ed391['diffData'][_0x2edb14]['deletions']);_0x5ae044[_0x3241('0x18')]=_0x2edb14,_0x5ae044[_0x3241('0x14')]=!_0x562212||!_0x562212[_0x3241('0x6c')],_0x5ae044[_0x3241('0x6c')]=()=>_0x5ae044[_0x3241('0x14')],this[_0x3241('0xe0')]['set'](_0x2edb14,_0x5ae044),this[_0x3241('0x12')][_0x3241('0xb5')](_0x2edb14,_0x137924),_0x562212&&this[_0x3241('0xdb')][_0x3241('0xb5')](_0x2edb14,_0x562212);const _0x1fd303=this[_0x3241('0x7a')](_0x5ae044);this[_0x3241('0x5b')][_0x3241('0xb5')](_0x2edb14,_0x1fd303);for(const [_0x39e99f,_0x33368b]of _0x5ae044['markers']){if(!_0x39e99f[_0x3241('0x33')](_0x3241('0x7c')))continue;const _0x5ed62e=_0x39e99f[_0x3241('0xb0')](':')[0x2];for(const _0x3251b3 of _0x33368b[_0x3241('0xd8')]({'singleCharacters':!0x0})){const _0x5d3ab1=this[_0x3241('0x85')](_0x3251b3),_0x352b6d=_0x3241('0xfa')==_0x3251b3[_0x3241('0xd3')]?_0x3251b3[_0x3241('0x73')]['path'][_0x3241('0xa1')](0x0,-0x1):_0x3251b3[_0x3241('0x73')]['path'],_0x263789=_0x1fd303[_0x3241('0x41')](_0x352b6d)[_0x3241('0x8')](_0x5d3ab1);this[_0x3241('0xb2')][_0x3241('0xb5')](_0x263789,{'userId':_0x5ed62e});}}}this['_startingRevisionId']=this[_0x3241('0xf8')];const _0x2fd71b=[...Array(this[_0x3241('0xf8')])[_0x3241('0xcf')]()]['slice'](0x1)['filter'](_0x8a059f=>!this[_0x3241('0xb2')][_0x3241('0xa8')](_0x8a059f));let _0x3da81b=0x0;const _0x3a7477=new Map();for(const _0x4d1bac in _0x2ed391[_0x3241('0x81')]){const _0x4e130f=_0x2ed391['diffData'][_0x4d1bac][_0x3241('0x36')],_0x242e5b=_0x3bfbe7(_0x2ed391[_0x3241('0x81')][_0x4d1bac][_0x3241('0x9a')])||{},_0x1e7979=this[_0x3241('0xdd')](_0x2ed391['diffData'][_0x4d1bac][_0x3241('0x88')]);_0x1e7979['rootName']=_0x4d1bac,_0x1e7979['_isAttached']=!_0x4e130f||_0x4e130f[_0x3241('0x6c')],_0x1e7979[_0x3241('0x6c')]=()=>_0x1e7979[_0x3241('0x14')],this[_0x3241('0x6a')][_0x3241('0xb5')](_0x4d1bac,_0x1e7979),this[_0x3241('0x21')][_0x3241('0xb5')](_0x4d1bac,_0x242e5b);const _0xb81bc=this[_0x3241('0x7a')](_0x1e7979,Number[_0x3241('0xa6')]);this[_0x3241('0xb4')][_0x3241('0xb5')](_0x4d1bac,_0xb81bc),_0x3a7477[_0x3241('0xb5')](_0x4d1bac,_0x1e7979[_0x3241('0x6c')]()?_0x242e5b:{});for(const [_0x3dc064,_0x501599]of _0x1e7979[_0x3241('0xeb')]){if(!_0x3dc064[_0x3241('0x33')](_0x3241('0x7c')))continue;const _0x41c564=_0x3dc064[_0x3241('0xb0')](':')[0x2];for(const _0x11b3cd of _0x501599['getWalker']({'singleCharacters':!0x0})){const _0x27e76a=this['_getVidAttributeName'](_0x11b3cd),_0x4b410e=this['_revisionId']++,_0x2bd72e='elementEnd'==_0x11b3cd[_0x3241('0xd3')]?_0x11b3cd[_0x3241('0x73')][_0x3241('0x1a')][_0x3241('0xa1')](0x0,-0x1):_0x11b3cd[_0x3241('0x73')][_0x3241('0x1a')];_0xb81bc[_0x3241('0x41')](_0x2bd72e)[_0x3241('0x5c')](_0x27e76a,_0x4b410e),this['_touched'][_0x3241('0xb5')](_0x4b410e,{'userId':_0x41c564});}}for(const _0xd8234e of this['editor'][_0x3241('0x7e')][_0x3241('0x62')](_0x1e7979)[_0x3241('0xd8')]({'singleCharacters':!0x0})){const _0x207154=this[_0x3241('0x85')](_0xd8234e),_0x4a85cd=_0x3241('0xfa')==_0xd8234e[_0x3241('0xd3')]?_0xd8234e['previousPosition'][_0x3241('0x1a')][_0x3241('0xa1')](0x0,-0x1):_0xd8234e[_0x3241('0x73')]['path'],_0x514cb7=_0xb81bc[_0x3241('0x41')](_0x4a85cd);_0x514cb7[_0x3241('0x8')](_0x207154)>0x0||_0x514cb7[_0x3241('0x5c')](_0x207154,_0x2fd71b[_0x3da81b++]);}for(const [_0x5eacf0,_0x10ddae]of _0x1e7979[_0x3241('0xeb')])_0x5eacf0[_0x3241('0x33')](_0x3241('0x7c'))||this['_markers'][_0x3241('0xb5')](_0x5eacf0,_0x10ddae);}const _0x1186d6=G(_0x3241('0xee'));this[_0x3241('0xe0')][_0x3241('0xb5')](_0x3241('0xee'),_0x1186d6),this[_0x3241('0x5b')][_0x3241('0xb5')](_0x3241('0xee'),this[_0x3241('0x7a')](_0x1186d6,0x1));const _0x118c29=G(_0x3241('0xee'));this['_diffRoots'][_0x3241('0xb5')](_0x3241('0xee'),_0x118c29),this[_0x3241('0xb4')][_0x3241('0xb5')]('$graveyard',this[_0x3241('0x7a')](_0x118c29,0x1));const _0x2b87d0=Array[_0x3241('0x72')](this[_0x3241('0x6a')])[_0x3241('0xaa')](([_0x53ea20,_0x127e44])=>[_0x53ea20,q(_0x127e44)]);this[_0x3241('0x98')](this[_0x3241('0xed')],_0x2b87d0,this['_markers'],_0x3a7477);}[_0x3241('0xdd')](_0x519795){const _0x5d688a=JSON[_0x3241('0x26')](_0x519795),_0xe873b9=this['editor'][_0x3241('0x2')]['view'][_0x3241('0x56')],_0x27c3ad=new _0x3b0c8f(_0xe873b9,_0x5d688a[_0x3241('0xaa')](_0x5c722e=>J(_0x5c722e,this[_0x3241('0xc1')])));return this['editor'][_0x3241('0x1c')]['toModel'](_0x27c3ad);}[_0x3241('0x98')](_0x201ed5,_0x39f3c6,_0x1909f7,_0x1c9101){const _0xcb5fc1=new Map(_0x39f3c6),_0x5ba537=new Map(_0x3bfbe7(_0x1c9101)),_0x1b592c=new Map();for(const [_0x18b305,_0x47e4f1]of _0x1909f7)_0x1b592c[_0x3241('0xb5')](_0x18b305,{'start':_0x47e4f1[_0x3241('0x9b')][_0x3241('0x60')](),'end':_0x47e4f1[_0x3241('0xe5')]['clone'](),'rootName':_0x47e4f1[_0x3241('0xbb')][_0x3241('0x18')]});this[_0x3241('0x2f')][_0x3241('0xb5')](_0x201ed5,{'roots':_0xcb5fc1,'markers':_0x1b592c,'rootsAttributes':_0x5ba537});}['_removeMetaData'](_0x3cb8b3){this[_0x3241('0x2f')][_0x3241('0x5f')](_0x3cb8b3);}[_0x3241('0x75')](){this[_0x3241('0x17')](),this[_0x3241('0xf9')]=-0x1,this['_lastTo']=-0x1,this['_savedMetaData'][_0x3241('0x8b')](),this[_0x3241('0x69')](this[_0x3241('0x47')]);}[_0x3241('0x17')](){this[_0x3241('0xb2')][_0x3241('0x8b')](),this[_0x3241('0x52')][_0x3241('0x8b')](),this[_0x3241('0xdb')][_0x3241('0x8b')](),this[_0x3241('0x6a')][_0x3241('0x8b')](),this['_diffRootsAttributes'][_0x3241('0x8b')](),this[_0x3241('0xe0')][_0x3241('0x8b')](),this[_0x3241('0x12')][_0x3241('0x8b')](),this[_0x3241('0xb4')][_0x3241('0x8b')](),this[_0x3241('0x5b')]['clear'](),this[_0x3241('0xf6')][_0x3241('0x8b')](),this[_0x3241('0xf8')]=0x1,this['_startingRevisionId']=this[_0x3241('0xf8')];}[_0x3241('0x7a')](_0x463a75,_0x5c503d=null){let _0x353504=null;_0x463a75['is'](_0x3241('0x64'))||(_0x353504=new _0x20f26a(_0x463a75[_0x3241('0x4')],{'vid_start':null===_0x5c503d?this[_0x3241('0xf8')]++:_0x5c503d++}));const _0x1da044=[];for(const _0x45407f of _0x463a75[_0x3241('0x3b')]())if(_0x45407f['is'](_0x3241('0x86'))){_0x1da044[_0x3241('0xf1')](this[_0x3241('0x7a')](_0x45407f,_0x5c503d));const _0x5c6a78=_0x1da044[_0x1da044[_0x3241('0xaf')]-0x1];null!==_0x5c503d&&(_0x5c503d=_0x5c6a78['is']('element',_0x3241('0x9c'))?_0x5c6a78[_0x3241('0x8')](_0x3241('0x49'))+0x1:_0x5c6a78[_0x3241('0x8')](_0x3241('0x2a'))+0x1);}else for(let _0x26512e=0x0;_0x26512e<_0x45407f[_0x3241('0x63')];_0x26512e++)_0x1da044[_0x3241('0xf1')](new _0x20f26a(_0x3241('0x9c'),{'vid':null===_0x5c503d?this[_0x3241('0xf8')]++:_0x5c503d++}));if(_0x463a75['is'](_0x3241('0x64'))){const _0x5a29df=G(_0x463a75[_0x3241('0x18')]);return _0x5a29df['_insertChild'](0x0,_0x1da044),_0x5a29df;}return _0x353504['_setAttribute'](_0x3241('0x2a'),null===_0x5c503d?this[_0x3241('0xf8')]++:_0x5c503d++),_0x353504['_insertChild'](0x0,_0x1da044),_0x353504;}[_0x3241('0x31')](_0x280006,_0x3a25a6,_0x4edf30){this['_reset']();const {roots:_0x308a0e,markers:_0xbe4c72,rootsAttributes:_0x10d3f7}=this[_0x3241('0x2f')][_0x3241('0xd9')](_0x280006);this[_0x3241('0xe0')]=new Map(_0x308a0e),this[_0x3241('0x12')]=new Map(_0x3bfbe7(_0x10d3f7));for(const [_0xa2d88e,_0x31ef8b]of this[_0x3241('0xe0')])if('$graveyard'!==_0xa2d88e&&(this[_0x3241('0x6a')][_0x3241('0xb5')](_0xa2d88e,q(_0x31ef8b)),this['_diffRootsAttributes']=new Map(_0x3bfbe7(_0x10d3f7)),_0x4edf30)){const _0x2243f4=this['_revisionId'];this[_0x3241('0xb4')]['set'](_0xa2d88e,this['_makeIdsRoot'](_0x31ef8b)),this[_0x3241('0x5b')][_0x3241('0xb5')](_0xa2d88e,this[_0x3241('0x7a')](_0x31ef8b,_0x2243f4));}this[_0x3241('0xc7')]=this[_0x3241('0xf8')],this[_0x3241('0x6a')][_0x3241('0xb5')](_0x3241('0xee'),q(this['_baseRoots'][_0x3241('0xd9')]('$graveyard'))),_0x4edf30&&this[_0x3241('0xb4')]['set']('$graveyard',this[_0x3241('0x7a')](this['_baseRoots']['get'](_0x3241('0xee'))));for(const [_0x5a4e21,_0x590382]of _0xbe4c72){const _0x3e86b9=this['_baseRoots']['get'](_0x590382['rootName']),_0x14e212=this[_0x3241('0x6a')]['get'](_0x590382['rootName']),_0x31c031=new _0x39f223(this[_0x3241('0xc')](_0x590382[_0x3241('0x9b')],_0x3e86b9),this[_0x3241('0xc')](_0x590382[_0x3241('0xe5')],_0x3e86b9)),_0x59f29f=this['_fixRange'](_0x31c031,_0x14e212);_0x3e86b9['markers'][_0x3241('0xb5')](_0x5a4e21,_0x31c031),this[_0x3241('0xf6')][_0x3241('0xb5')](_0x5a4e21,_0x59f29f);}this['_applyOperations'](_0x280006,_0x3a25a6,_0x4edf30);}['_applyOperations'](_0x24e3aa,_0x1b09f3,_0x7860ea){for(const _0x5501c2 of this[_0x3241('0x47')][_0x3241('0xe9')](_0x24e3aa,_0x1b09f3))this[_0x3241('0xfb')](_0x5501c2,_0x7860ea);for(const _0xd41911 of this[_0x3241('0x6a')][_0x3241('0xfe')]())_0xd41911['markers'][_0x3241('0x8b')]();for(const [_0x26e342,_0x3cb7a7]of this[_0x3241('0xf6')]){this[_0x3241('0x6a')][_0x3241('0xd9')](_0x3cb7a7['root'][_0x3241('0x18')])[_0x3241('0xeb')][_0x3241('0xb5')](_0x26e342,_0x3cb7a7['clone']());}const _0x1428ce=new Map(),_0x3a4e74=new Map();for(const [_0x4e1385,_0x3c7d39]of this[_0x3241('0x6a')])_0x1428ce['set'](_0x4e1385,q(_0x3c7d39)),_0x3a4e74['set'](_0x4e1385,this[_0x3241('0x21')][_0x3241('0xd9')](_0x4e1385));this[_0x3241('0x98')](_0x1b09f3,_0x1428ce,this[_0x3241('0xf6')],_0x3a4e74);}[_0x3241('0x38')](_0xe77125){const _0x505952=Array[_0x3241('0x72')](this[_0x3241('0x2f')][_0x3241('0xcf')]());_0x505952[_0x3241('0x67')]((_0xa046d1,_0xbdb79d)=>_0xa046d1-_0xbdb79d),_0x505952[_0x3241('0x39')]();for(const _0x522548 of _0x505952)if(_0x522548<_0xe77125)return _0x522548;return Number[_0x3241('0xa6')];}[_0x3241('0x43')](_0x10377a,_0x4e9c29){const _0x32923e=Array['from'](_0x4e9c29[_0x3241('0xeb')])[_0x3241('0xaa')](([_0x3c4620,_0xe2557])=>[_0x3c4620,this[_0x3241('0x50')](_0xe2557,_0x10377a)]);_0x10377a[_0x3241('0xeb')]=new Map(_0x32923e);}[_0x3241('0xc9')](_0x55ab65){for(const _0x357262 of this['_markers'][_0x3241('0xfe')]()){const _0x4a4780=_0x357262[_0x3241('0x79')](_0x55ab65),_0x1dd377=_0x39f223[_0x3241('0xf4')](_0x4a4780);_0x357262['start']=_0x1dd377[_0x3241('0x9b')],_0x357262[_0x3241('0xe5')]=_0x1dd377[_0x3241('0xe5')];}}[_0x3241('0xfb')](_0x5d0e2c,_0x213ee9){if(_0x3241('0x87')==_0x5d0e2c[_0x3241('0xd3')]||'detachRoot'==_0x5d0e2c[_0x3241('0xd3')])return void this[_0x3241('0x53')](_0x5d0e2c,_0x213ee9);if(_0x3241('0x5')==_0x5d0e2c[_0x3241('0xd3')]){const _0xce2691=_0x5d0e2c['position']['root']['rootName'];this[_0x3241('0x6a')]['has'](_0xce2691)||(this[_0x3241('0x6a')][_0x3241('0xb5')](_0xce2691,G(_0xce2691,!0x0)),this[_0x3241('0x21')][_0x3241('0xb5')](_0xce2691,{}),_0x213ee9&&this[_0x3241('0xb4')][_0x3241('0xb5')](_0xce2691,G(_0xce2691,!0x0)));}else{if('addRootAttribute'==_0x5d0e2c[_0x3241('0xd3')]||_0x3241('0x1b')==_0x5d0e2c[_0x3241('0xd3')]||_0x3241('0x57')==_0x5d0e2c[_0x3241('0xd3')])return void this[_0x3241('0x15')](_0x5d0e2c);}const _0x27ac90=this[_0x3241('0x3')](_0x5d0e2c,this[_0x3241('0x6a')]);if('marker'!==_0x5d0e2c[_0x3241('0xd3')]&&(_0x27ac90[_0x3241('0x5e')](),this['_transformMarkers'](_0x27ac90)),_0x213ee9)switch(_0x27ac90[_0x3241('0xd3')]){case _0x3241('0x5'):this[_0x3241('0x68')](_0x5d0e2c);break;case _0x3241('0x3e'):case _0x3241('0x8e'):case'reinsert':this[_0x3241('0xb7')](_0x5d0e2c);break;case'merge':this[_0x3241('0x7b')](_0x5d0e2c);break;case'split':this[_0x3241('0x10')](_0x5d0e2c);break;case _0x3241('0xec'):this[_0x3241('0x3c')](_0x5d0e2c);}}[_0x3241('0x3')](_0x5b96d0,_0x4e771e){const _0x35c76e=_0x5b96d0[_0x3241('0x60')]();return _0x35c76e[_0x3241('0xa5')]=_0x5b96d0[_0x3241('0xa5')],this[_0x3241('0xcb')](_0x35c76e,_0x4e771e),_0x35c76e;}['_getBaseVids'](_0x49c865){return _0x49c865[_0x3241('0xaa')](_0x35cca8=>{const _0x10096a=this[_0x3241('0x85')](_0x35cca8);return Number(_0x35cca8[_0x3241('0x1')][_0x3241('0x8')](_0x10096a));});}[_0x3241('0xa0')](_0x64fa84,_0x29a1c1){if(_0x64fa84['is']('element','$text'))_0x29a1c1['push']({'item':_0x64fa84,'type':'text'});else{_0x64fa84['is']('element')&&_0x29a1c1[_0x3241('0xf1')]({'item':_0x64fa84,'type':_0x3241('0x51')});for(const _0x4e7950 of _0x64fa84[_0x3241('0x3b')]())this['_generateTape'](_0x4e7950,_0x29a1c1);_0x64fa84['is'](_0x3241('0x86'))&&_0x29a1c1[_0x3241('0xf1')]({'item':_0x64fa84,'type':'elementEnd'});}return _0x29a1c1;}[_0x3241('0xdc')](){const _0x2aea82=new Map(this[_0x3241('0xb2')]),_0x13eaf1=new Map(_0x2aea82),_0x57500e=new Map(),_0x3a5541={'insertions':{},'deletions':{}},_0x5df041={'insertions':{},'deletions':{}},_0x28b4f5=new Map(),_0x27e67a=new Set([...this[_0x3241('0xe0')]['keys'](),...this[_0x3241('0x6a')][_0x3241('0xcf')]()]);_0x27e67a[_0x3241('0x5f')]('$graveyard');for(const _0x4fd411 of _0x27e67a){const _0x429e3f=this[_0x3241('0x6a')][_0x3241('0xd9')](_0x4fd411)||G(_0x4fd411,!0x1),_0x48ed50=this[_0x3241('0xe0')][_0x3241('0xd9')](_0x4fd411)||G(_0x4fd411,!0x1);_0x429e3f[_0x3241('0x6c')]()||_0x48ed50['isAttached']()?(_0x3a5541[_0x3241('0x88')][_0x4fd411]=q(_0x429e3f),_0x3a5541[_0x3241('0xa2')][_0x4fd411]=q(_0x48ed50),this[_0x3241('0x43')](_0x3a5541['deletions'][_0x4fd411],_0x48ed50),this['_copyMarkers'](_0x3a5541[_0x3241('0x88')][_0x4fd411],_0x429e3f),_0x5df041[_0x3241('0x88')][_0x4fd411]=this['_generateTape'](this[_0x3241('0xb4')][_0x3241('0xd9')](_0x4fd411),[]),_0x5df041[_0x3241('0xa2')][_0x4fd411]=this[_0x3241('0xa0')](this['_baseIdsRoots']['get'](_0x4fd411)||G(_0x4fd411,!0x1),[])):_0x27e67a[_0x3241('0x5f')](_0x4fd411);}for(const _0x3d9bc6 of _0x27e67a){const _0x126cb5=_0x5df041[_0x3241('0x88')][_0x3d9bc6];for(const _0x59c3dc of _0x126cb5){const _0x568fdf=this[_0x3241('0x85')](_0x59c3dc),_0x30922e=_0x59c3dc[_0x3241('0x1')][_0x3241('0x8')](_0x568fdf);_0x13eaf1[_0x3241('0x5f')](_0x30922e),_0x30922e>=this[_0x3241('0xc7')]&&_0x57500e[_0x3241('0xb5')](_0x30922e,_0x2aea82['get'](_0x30922e));}}for(const _0x210408 of _0x27e67a){const _0x860de7=_0x5df041[_0x3241('0x88')][_0x210408],_0x51fd42=this[_0x3241('0xac')](_0x5df041['deletions'][_0x210408]);let _0x43167d=0x0;for(const _0x3339d9 of _0x860de7){const _0x2f1495=this[_0x3241('0x85')](_0x3339d9),_0x42ce6c=_0x3339d9[_0x3241('0x1')][_0x3241('0x8')](_0x2f1495);if(!_0x57500e[_0x3241('0xa8')](_0x42ce6c)&&!_0x28b4f5['has'](_0x42ce6c)){if(_0x13eaf1[_0x3241('0xa8')](_0x42ce6c))_0x43167d++;else{if(_0x42ce6c!=_0x51fd42[_0x43167d]){const _0xf50504=_0x2aea82[_0x3241('0xd9')](_0x42ce6c)||_0x2aea82['get'](_0x51fd42[_0x43167d]);for(;_0x42ce6c!=_0x51fd42[_0x43167d];)_0x13eaf1[_0x3241('0xa8')](_0x51fd42[_0x43167d])||(_0x28b4f5[_0x3241('0xb5')](_0x51fd42[_0x43167d],_0xf50504),_0x2aea82[_0x3241('0xb5')](_0x51fd42[_0x43167d],_0xf50504)),_0x43167d++;}_0x43167d++;}}}}for(const _0x271208 of _0x27e67a){const _0xe6d3b8=_0x5df041[_0x3241('0x88')][_0x271208];for(const _0x260480 of _0xe6d3b8){const _0x1a522b=this['_getVidAttributeName'](_0x260480),_0x51d5d9=_0x260480[_0x3241('0x1')][_0x3241('0x8')](_0x1a522b);if(_0x28b4f5[_0x3241('0xa8')](_0x51d5d9)){const _0x268827=_0x28b4f5[_0x3241('0xd9')](_0x51d5d9);_0x13eaf1[_0x3241('0xa8')](_0x51d5d9)||_0x13eaf1[_0x3241('0xb5')](_0x51d5d9,{..._0x268827}),_0x57500e[_0x3241('0xb5')](_0x51d5d9,{..._0x268827});}}}for(const _0x4a3615 of _0x13eaf1[_0x3241('0xcf')]())_0x4a3615>=this[_0x3241('0xc7')]&&_0x13eaf1['delete'](_0x4a3615);const _0x539363=new Map();for(const _0x5c7be7 of _0x27e67a){let _0x232053=_0x5df041[_0x3241('0x88')][_0x5c7be7];for(const _0x2d4512 of _0x232053)if(_0x2d4512[_0x3241('0x1')]['is'](_0x3241('0x86'),_0x3241('0xce'))){const _0x3c5d13=this[_0x3241('0x85')](_0x2d4512),_0x2e147b=_0x2d4512[_0x3241('0x1')]['getAttribute'](_0x3c5d13);if(_0x57500e[_0x3241('0xa8')](_0x2e147b)){const _0xbd5a64=_0x2d4512['item'][_0x3241('0x65')]['parent']['getAttribute'](_0x3241('0xd0')),_0x280216=_0x539363[_0x3241('0xd9')](_0xbd5a64)||new Set();_0x280216[_0x3241('0x25')](_0x57500e[_0x3241('0xd9')](_0x2e147b)[_0x3241('0xd1')]),_0x539363['set'](_0xbd5a64,_0x280216);}}_0x232053=_0x5df041[_0x3241('0xa2')][_0x5c7be7];for(const _0x1b2ea6 of _0x232053)if(_0x1b2ea6[_0x3241('0x1')]['is'](_0x3241('0x86'),_0x3241('0xce'))){const _0x1e00be=this['_getVidAttributeName'](_0x1b2ea6),_0x849040=_0x1b2ea6[_0x3241('0x1')][_0x3241('0x8')](_0x1e00be);if(_0x13eaf1[_0x3241('0xa8')](_0x849040)){const _0x45c807=_0x1b2ea6[_0x3241('0x1')][_0x3241('0x65')]['parent']['getAttribute'](_0x3241('0xd0')),_0x46e88d=_0x539363['get'](_0x45c807)||new Set();_0x46e88d[_0x3241('0x25')](_0x13eaf1['get'](_0x849040)[_0x3241('0xd1')]),_0x539363[_0x3241('0xb5')](_0x45c807,_0x46e88d);}}for(const _0x30c425 of _0x539363[_0x3241('0xcf')]())(_0x57500e[_0x3241('0xa8')](_0x30c425)||_0x13eaf1[_0x3241('0xa8')](_0x30c425))&&_0x539363[_0x3241('0x5f')](_0x30c425);}for(const _0x11b809 of _0x27e67a){const _0x3e6405=_0x5df041[_0x3241('0x88')][_0x11b809];let _0x4bca01=null,_0x3969a3=null;for(const _0x505edb of _0x3e6405){const _0xdbdc59=this[_0x3241('0x85')](_0x505edb),_0x24b7d6=_0x505edb[_0x3241('0x1')]['getAttribute'](_0xdbdc59),_0x26fcd6=_0x539363[_0x3241('0xd9')](_0x24b7d6);_0x26fcd6&&_0x3241('0x51')==_0x505edb[_0x3241('0xd3')]&&(_0x4bca01=Array[_0x3241('0x72')](_0x26fcd6)[0x0],_0x3969a3=_0x505edb[_0x3241('0x1')][_0x3241('0x8')]('vid_end')),_0x4bca01&&(_0x13eaf1[_0x3241('0xb5')](_0x24b7d6,{'userId':_0x4bca01}),_0x57500e[_0x3241('0xb5')](_0x24b7d6,{'userId':_0x4bca01})),_0x24b7d6==_0x3969a3&&(_0x4bca01=null,_0x3969a3=null);}}const _0x1bb14d={},_0x206bbf=new Set();for(const _0x34e803 of _0x27e67a){const _0x4f9d0d=_0x3a5541[_0x3241('0xa2')][_0x34e803],_0x57992f=_0x3a5541[_0x3241('0x88')][_0x34e803];for(const {userId:_0x16c2f5}of this[_0x3241('0x52')]['values']())null!==_0x16c2f5&&_0x206bbf['add'](_0x16c2f5);for(const {userId:_0x33f566}of this[_0x3241('0xdb')][_0x3241('0xfe')]())null!==_0x33f566&&_0x206bbf['add'](_0x33f566);this[_0x3241('0xc5')](_0x57992f,_0x5df041[_0x3241('0x88')][_0x34e803],_0x57500e,'insertion',_0x206bbf),this[_0x3241('0xc5')](_0x4f9d0d,_0x5df041['deletions'][_0x34e803],_0x13eaf1,_0x3241('0x101'),_0x206bbf),_0x1bb14d[_0x34e803]={'insertions':this['_prepareViewToSave'](_0x57992f),'deletions':this[_0x3241('0xca')](_0x4f9d0d),'attachChange':this[_0x3241('0xdb')]['get'](_0x34e803)||null,'attributesBefore':_0x3bfbe7(this['_baseRootsAttributes'][_0x3241('0xd9')](_0x34e803))||{},'attributesAfter':_0x3bfbe7(this[_0x3241('0x21')][_0x3241('0xd9')](_0x34e803))};}return{'diffData':_0x1bb14d,'authorsIds':Array[_0x3241('0x72')](_0x206bbf)};}[_0x3241('0x9d')](_0x5d02a0){for(const [,_0x3b3341]of _0x5d02a0['markers']){const _0xf44ca=_0x3b3341[_0x3241('0x9b')][_0x3241('0x20')]()['filter'](_0x3f40b0=>_0x3241('0xce')==_0x3f40b0[_0x3241('0x4')]);for(const _0x2b9805 of _0xf44ca)0x1==_0x2b9805['childCount']&&_0x2b9805[_0x3241('0x4e')](0x0)['is'](_0x3241('0x86'),_0x3241('0xc8'))&&_0x2b9805[_0x3241('0x4e')](0x0)['_setAttribute']('keepParagraph',!0x0);}}[_0x3241('0xca')](_0x32a422){this[_0x3241('0x9d')](_0x32a422);const _0x4a8d74=this[_0x3241('0xc1')][_0x3241('0x1c')]['toView'](_0x32a422,{}),_0x17bd7e=Array[_0x3241('0x72')](_0x4a8d74[_0x3241('0x3b')]())[_0x3241('0xaa')](_0x15ac55=>this['_getViewJson'](_0x15ac55));return JSON[_0x3241('0x6f')](_0x17bd7e);}[_0x3241('0x19')](_0x414e74){if(_0x414e74['is']('$text'))return _0x414e74[_0x3241('0x1c')];{const _0x50417f=_0x414e74;return{'type':Object['keys'](B)[_0x3241('0x0')](_0x255490=>_0x414e74 instanceof B[_0x255490]),'name':_0x50417f[_0x3241('0x4')],'attributes':Array['from'](_0x50417f['getAttributes']()),'children':Array[_0x3241('0x72')](_0x50417f[_0x3241('0x3b')]())[_0x3241('0xaa')](_0x16f7e3=>this[_0x3241('0x19')](_0x16f7e3))};}}[_0x3241('0xc5')](_0x4ecda5,_0x1a5f3b,_0x3f2b6f,_0x45decd,_0x40eb4b){let _0x477d45=null,_0x599897=null,_0x3aadd2=0x0;const _0x12ec3e=this[_0x3241('0xc1')]['model'];for(let _0x33e5da=0x0;_0x33e5da<_0x1a5f3b[_0x3241('0xaf')];_0x33e5da++){const _0x51cf6b=this[_0x3241('0x85')](_0x1a5f3b[_0x33e5da]),_0x272d6b=_0x1a5f3b[_0x33e5da]['item']['getAttribute'](_0x51cf6b),_0x4d5c05=_0x3f2b6f[_0x3241('0xd9')](_0x272d6b),_0x37b123=_0x33e5da==_0x1a5f3b[_0x3241('0xaf')]-0x1;(!_0x477d45&&_0x4d5c05&&(_0x477d45=_0x4d5c05,_0x599897=_0x1a5f3b[_0x33e5da]),_0x477d45&&(!_0x4d5c05||_0x4d5c05[_0x3241('0xd1')]!=_0x477d45[_0x3241('0xd1')]))&&(_0x2141b9(_0x4d5c05,L(_0x599897,_0x4ecda5,_0x12ec3e),L(_0x1a5f3b[_0x33e5da],_0x4ecda5,_0x12ec3e)),_0x477d45=_0x4d5c05||null,_0x599897=_0x4d5c05?_0x1a5f3b[_0x33e5da]:null),_0x477d45&&_0x37b123&&_0x2141b9(_0x4d5c05,L(_0x599897,_0x4ecda5,_0x12ec3e),W(_0x1a5f3b[_0x33e5da],_0x4ecda5,_0x12ec3e));}function _0x2141b9(_0x5e1c89,_0x3e9889,_0x40c89d){const _0x4e70ab=_0x477d45['userId'],_0x2f860d=_0x3241('0x7c')+_0x45decd+':'+_0x4e70ab+':'+_0x3aadd2++,_0x13e0be=_0x12ec3e[_0x3241('0x45')](_0x3e9889,_0x40c89d);_0x4ecda5['markers'][_0x3241('0xb5')](_0x2f860d,_0x13e0be),null!==_0x4e70ab&&_0x40eb4b[_0x3241('0x25')](_0x4e70ab);}}['_getVidAttributeName'](_0x1a96f8){switch(_0x1a96f8[_0x3241('0xd3')]){case _0x3241('0x51'):return _0x3241('0xd0');case'elementEnd':return _0x3241('0x2a');default:return _0x3241('0x49');}}[_0x3241('0xcb')](_0x6fcf95,_0x2ba0fa){_0x6fcf95[_0x3241('0x4f')]=null;for(const _0x4fe942 in _0x6fcf95){const _0x56785e=_0x6fcf95[_0x4fe942];if(_0x56785e instanceof _0x27058a){const _0x955917=_0x2ba0fa['get'](_0x56785e[_0x3241('0xbb')][_0x3241('0x18')]);_0x6fcf95[_0x4fe942]=this[_0x3241('0xc')](_0x56785e,_0x955917);}if(_0x56785e instanceof _0x39f223){const _0x432510=_0x2ba0fa['get'](_0x56785e[_0x3241('0xbb')]['rootName']);_0x6fcf95[_0x4fe942]=this[_0x3241('0x50')](_0x56785e,_0x432510);}'root'===_0x4fe942&&(_0x6fcf95[_0x3241('0xbb')]=_0x2ba0fa[_0x3241('0xd9')](_0x6fcf95[_0x3241('0xbb')]['rootName']));}}['_fixRange'](_0x574a0f,_0x5848d0){return this[_0x3241('0xc1')][_0x3241('0x7e')][_0x3241('0x45')](this[_0x3241('0xc')](_0x574a0f[_0x3241('0x9b')],_0x5848d0),this['_fixPosition'](_0x574a0f[_0x3241('0xe5')],_0x5848d0));}['_fixPosition'](_0x899b7d,_0x1f565b){return this[_0x3241('0xc1')][_0x3241('0x7e')][_0x3241('0x8f')](_0x1f565b,_0x899b7d[_0x3241('0x1a')],_0x899b7d[_0x3241('0x84')]);}[_0x3241('0x68')](_0x5f4ed7){const _0x5a623a=this[_0x3241('0xb4')][_0x3241('0xd9')](_0x5f4ed7[_0x3241('0xda')]['root'][_0x3241('0x18')]),_0x513a56=this[_0x3241('0xc')](_0x5f4ed7[_0x3241('0xda')],_0x5a623a),_0x2ebc87=null===_0x5f4ed7[_0x3241('0xa5')]?null:_0x5f4ed7[_0x3241('0xa5')]||this[_0x3241('0xc1')][_0x3241('0x9f')][_0x3241('0xd9')](_0x3241('0x4d'))['me']['id'],_0xacd052=_0x513a56['parent'],_0x4f45ee=this[_0x3241('0xf8')],_0x5a965b=[];for(const _0x26b1ce of _0x5f4ed7['nodes'])if(_0x26b1ce['is'](_0x3241('0x86')))_0x5a965b[_0x3241('0xf1')](this[_0x3241('0x7a')](_0x26b1ce));else for(let _0x4c1a27=0x0;_0x4c1a27<_0x26b1ce[_0x3241('0x63')];_0x4c1a27++)_0x5a965b[_0x3241('0xf1')](new _0x20f26a('$text',{'vid':this[_0x3241('0xf8')]++}));const _0x250250=this[_0x3241('0xf8')];for(let _0x47bfee=_0x4f45ee;_0x47bfee<_0x250250;_0x47bfee++)this['_touched'][_0x3241('0xb5')](_0x47bfee,{'userId':_0x2ebc87});_0xacd052[_0x3241('0xd4')](_0x513a56['offset'],_0x5a965b);}[_0x3241('0xb7')](_0x90df8){(_0x90df8=this[_0x3241('0x3')](_0x90df8,this['_idsRoots']))[_0x3241('0x5e')]();const _0x19634c=null===_0x90df8[_0x3241('0xa5')]?null:_0x90df8[_0x3241('0xa5')]||this[_0x3241('0xc1')]['plugins'][_0x3241('0xd9')](_0x3241('0x4d'))['me']['id'],_0x1de9f0=_0x90df8[_0x3241('0x3f')](),_0x505c08=_0x1de9f0[_0x3241('0x65')],_0x5b9857=_0x1de9f0['offset'];!function _0x50e025(_0x175945,_0x4e45e1,_0x103b7b,_0x5b519a){for(let _0x6501f2=_0x103b7b;_0x6501f2<_0x5b519a;_0x6501f2++){const _0x56743e=_0x4e45e1[_0x3241('0x4e')](_0x6501f2);_0x56743e['is'](_0x3241('0x86'),_0x3241('0x9c'))?_0x175945['set'](_0x56743e[_0x3241('0x8')](_0x3241('0x49')),{'userId':_0x19634c}):(_0x175945[_0x3241('0xb5')](_0x56743e[_0x3241('0x8')](_0x3241('0xd0')),{'userId':_0x19634c}),_0x50e025(_0x175945,_0x56743e,0x0,_0x56743e[_0x3241('0x5a')]),_0x175945[_0x3241('0xb5')](_0x56743e['getAttribute'](_0x3241('0x2a')),{'userId':_0x19634c}));}}(this['_touched'],_0x505c08,_0x5b9857,_0x5b9857+_0x90df8[_0x3241('0xe6')]);}[_0x3241('0x7b')](_0x1dbbb5){const _0x137eae=null===(_0x1dbbb5=this[_0x3241('0x3')](_0x1dbbb5,this[_0x3241('0xb4')]))['_authorId']?null:_0x1dbbb5[_0x3241('0xa5')]||this['editor']['plugins'][_0x3241('0xd9')]('Users')['me']['id'],_0x260166=_0x1dbbb5['targetPosition'][_0x3241('0x65')],_0x2747bb=_0x1dbbb5[_0x3241('0x37')][_0x3241('0x65')],_0x2c44ec=_0x260166['getAttribute'](_0x3241('0x2a')),_0x571d7d=_0x2747bb[_0x3241('0x8')]('vid_start');_0x260166[_0x3241('0x5c')]('vid_end',_0x2747bb['getAttribute'](_0x3241('0x2a'))),_0x2747bb[_0x3241('0x5c')](_0x3241('0x2a'),_0x2c44ec),this['_touched'][_0x3241('0xb5')](_0x571d7d,{'userId':_0x137eae}),this[_0x3241('0xb2')][_0x3241('0xb5')](_0x2c44ec,{'userId':_0x137eae}),_0x1dbbb5['_execute']();}[_0x3241('0x10')](_0x332086){const _0x33f77e=null===(_0x332086=this['_cloneOperation'](_0x332086,this['_idsRoots']))[_0x3241('0xa5')]?null:_0x332086[_0x3241('0xa5')]||this[_0x3241('0xc1')][_0x3241('0x9f')][_0x3241('0xd9')]('Users')['me']['id'],_0x597317=_0x332086[_0x3241('0x92')],_0x31c8f1=_0x332086[_0x3241('0xa4')]['parent'];_0x332086[_0x3241('0x5e')]();const _0x489de6=_0x31c8f1['getAttribute'](_0x3241('0x2a')),_0x2e2115=_0x332086[_0x3241('0x6e')][_0x3241('0x2b')];if(_0x597317){const _0x1ef3af=_0x2e2115[_0x3241('0x8')](_0x3241('0x2a')),_0x341026=_0x31c8f1['getAttribute'](_0x3241('0x2a'));_0x31c8f1[_0x3241('0x5c')](_0x3241('0x2a'),_0x1ef3af),_0x2e2115[_0x3241('0x5c')](_0x3241('0x2a'),_0x341026),this['_touched'][_0x3241('0xb5')](_0x31c8f1['getAttribute'](_0x3241('0x2a')),{'userId':_0x33f77e}),this[_0x3241('0xb2')][_0x3241('0xb5')](_0x2e2115['getAttribute']('vid_start'),{'userId':_0x33f77e});}else{const _0x3f04de=this['_revisionId']++,_0x512cf4=this[_0x3241('0xf8')]++;_0x31c8f1[_0x3241('0x5c')](_0x3241('0x2a'),_0x3f04de),_0x2e2115[_0x3241('0x5c')](_0x3241('0xd0'),_0x512cf4),_0x2e2115[_0x3241('0x5c')](_0x3241('0x2a'),_0x489de6),this[_0x3241('0xb2')][_0x3241('0xb5')](_0x3f04de,{'userId':_0x33f77e}),this[_0x3241('0xb2')][_0x3241('0xb5')](_0x512cf4,{'userId':_0x33f77e});}}[_0x3241('0x3c')](_0x334f13){if(!_0x334f13[_0x3241('0xba')])return;const _0x36b111=(_0x334f13=this[_0x3241('0x3')](_0x334f13,this['_diffRoots']))[_0x3241('0xb6')]?_0x334f13[_0x3241('0xb6')][_0x3241('0xbb')]:null,_0x5eaab4=_0x334f13[_0x3241('0xd7')]?_0x334f13[_0x3241('0xd7')][_0x3241('0xbb')]:null;_0x36b111&&this['_markers']['delete'](_0x334f13[_0x3241('0x4')]),_0x5eaab4&&this[_0x3241('0xf6')][_0x3241('0xb5')](_0x334f13[_0x3241('0x4')],_0x334f13[_0x3241('0xd7')][_0x3241('0x60')]());const _0x2dd372=null===_0x334f13[_0x3241('0xa5')]?null:_0x334f13[_0x3241('0xa5')]||this['editor'][_0x3241('0x9f')][_0x3241('0xd9')](_0x3241('0x4d'))['me']['id'],_0x2ab76f=_0x334f13[_0x3241('0x4')];if(!this[_0x3241('0x52')]['has'](_0x2ab76f))return void this['_touchedMarkers'][_0x3241('0xb5')](_0x2ab76f,{'range':_0x334f13[_0x3241('0xb6')],'userId':_0x2dd372});const _0x355606=this[_0x3241('0x52')][_0x3241('0xd9')](_0x2ab76f),_0x3d1a2f=_0x355606['range'],_0x47b980=_0x334f13[_0x3241('0xd7')];null==_0x3d1a2f&&null==_0x47b980||_0x3d1a2f&&_0x47b980&&_0x3d1a2f[_0x3241('0x34')](_0x47b980)?this[_0x3241('0x52')][_0x3241('0x5f')](_0x334f13['name']):_0x355606[_0x3241('0xd1')]=_0x2dd372;}[_0x3241('0x53')](_0x34803c,_0x4800ba){this['_diffRoots'][_0x3241('0xa8')](_0x34803c[_0x3241('0x18')])?this['_diffRoots'][_0x3241('0xd9')](_0x34803c[_0x3241('0x18')])[_0x3241('0x14')]=_0x34803c['isAdd']:(this[_0x3241('0x6a')][_0x3241('0xb5')](_0x34803c[_0x3241('0x18')],G(_0x34803c[_0x3241('0x18')],!0x0)),this[_0x3241('0x21')]['set'](_0x34803c['rootName'],{}),_0x4800ba&&this[_0x3241('0xb4')][_0x3241('0xb5')](_0x34803c[_0x3241('0x18')],G(_0x34803c[_0x3241('0x18')],!0x0)));const _0x5f6267=null===_0x34803c[_0x3241('0xa5')]?null:_0x34803c[_0x3241('0xa5')]||this['editor']['plugins']['get'](_0x3241('0x4d'))['me']['id'],_0x3d5154=this[_0x3241('0xdb')][_0x3241('0xd9')](_0x34803c['rootName']);_0x3d5154&&_0x3d5154['userId']===_0x5f6267?this[_0x3241('0xdb')][_0x3241('0x5f')](_0x34803c[_0x3241('0x18')]):this[_0x3241('0xdb')][_0x3241('0xb5')](_0x34803c['rootName'],{'userId':_0x5f6267,'isAttached':_0x34803c[_0x3241('0xd2')]});}[_0x3241('0x15')](_0x45ce7e){const _0xdc1c29=this['_diffRootsAttributes'][_0x3241('0xd9')](_0x45ce7e[_0x3241('0xbb')][_0x3241('0x18')]);null===_0x45ce7e['newValue']?delete _0xdc1c29[_0x45ce7e[_0x3241('0xe8')]]:_0xdc1c29[_0x45ce7e[_0x3241('0xe8')]]=_0x45ce7e[_0x3241('0x42')];}}function q(_0x3a0c9d){const _0x75b9aa=G(_0x3a0c9d[_0x3241('0x18')],_0x3a0c9d['isAttached']());for(const _0x1dd75c of _0x3a0c9d[_0x3241('0x3b')]()){const _0x4b7f1c=_0x1dd75c[_0x3241('0xb3')](!0x0);_0x75b9aa[_0x3241('0xdf')](_0x4b7f1c);}return _0x75b9aa;}function G(_0x1c7ed3,_0x5289c9=!0x0){const _0x400555=new _0x33b03c();return _0x400555[_0x3241('0x18')]=_0x1c7ed3,_0x400555['_isAttached']=_0x5289c9,_0x400555[_0x3241('0x6c')]=()=>_0x400555[_0x3241('0x14')],_0x400555;}function L(_0x1a4de0,_0x14c477,_0x40f849){const _0x37f0da='elementEnd'==_0x1a4de0[_0x3241('0xd3')]?_0x40f849[_0x3241('0x97')](_0x1a4de0['item'],'end'):_0x40f849['createPositionBefore'](_0x1a4de0[_0x3241('0x1')]);return _0x40f849[_0x3241('0x8f')](_0x14c477,_0x37f0da['path'],_0x37f0da[_0x3241('0x84')]);}function W(_0x185556,_0x415476,_0x17af3b){const _0x49f3a6='elementStart'==_0x185556[_0x3241('0xd3')]?_0x17af3b[_0x3241('0x97')](_0x185556[_0x3241('0x1')],0x0):_0x17af3b['createPositionAfter'](_0x185556[_0x3241('0x1')]);return _0x17af3b[_0x3241('0x8f')](_0x415476,_0x49f3a6['path'],_0x49f3a6[_0x3241('0x84')]);}
23
+ const _0xeadf=['text','getRevisionDocumentData','reverse','authors','markerToData','_handleRootAttributeOperation','_fixOperation','insert','addRevisionData','documentFragment','_makeIdsRoot','howMany','adapter','_update','_handleMergeOperation','_isPendingUpdate','_getFromVersion','getMovedRangeStart','startsWith','data-revision-','_execute','clone','_handleRootOperation','attributes','offsetSize','$text','start','filter','marked','getRange','_touchedRoots','getRoot','string','_diffRootsAttributes','clear','baseVersion','_getVidAttributeName','_source','_getBaseVids','slice','getWalker','$graveyard','revisionHistory.resumeUnsavedRevision','_touchedMarkers','_appendChild','revision-start','_getPreviousFrom','PendingActions','insertion','hasContent','insertionPosition','changeRootAttribute','NEGATIVE_INFINITY','ready','_copyMarkers','define','toVersion','parse','keys','sort','isEnabled','_revisionId','_initialRevisionId','size','_removeMetaData','_handleInsertOperation','attributesAfter','default','key','_lastTo','bind','splitPosition','getRevisions','_createInitialRevision','vid_start','creatorId','_prepareViewToSave','_makeModelFromViewString','createdAt','getOperations','trim','source','deletions','_setConversion','affectsData','graveyardPosition','remove','sendBufferedUpdates','marker','pluginName','vid_end','Users','_pendingAction','_transformMarkers','_applyOperations','getCurrentRevisionId','update','getAttribute','_savedMetaData','add','fromVersion','_fixRange','newRange','repository','createPositionAt','_removeRevisionMarkers','reinsert','_processRootBeforeSave','stickiness','paragraph','addRoot','editor-initial-data-replaced-with-revision-data','_reset','max','detachRoot','getNodeByPath','_loadRevisionData','authorsIds','collaboration.channelId','sourcePosition','parent','dataToMarker','view','RevisionsRepository','has','_handleMoveOperation','resolve','_touched','rootName','_fixPosition','_setAttribute','childCount','setRevisionData','toView','type','isAdd','end','path','document','forEach','_bufferUpdate','nodes','editor','isReady','values','getTransformedByOperation','_cloneOperation','currentRevision','delete','getUser','getAttributes','_saveMetaData','PENDING_ACTION_REVISION_HISTORY','processor','RealTimeCollaborationClient','markers','for','_handleSplitOperation','fromEntries','_baseIdsRoots','attachChange','previousPosition','deletion','newValue','item','_revisionDataBuilder','_generateTape','elementEnd','length','find','dataDowncast','config','_isAttached','history','elementStart','_handleMarkerOperation','afterInit','_startingVersion','element','_baseRoots','upcast','conversion','creator','_baseRootsAttributes','requires','getTime','toModel','_startingRevisionId','set','roots','insertions','getChildren','locale','getLatestVersion','_idsRoots','_markChanges','rootsAttributes','model','revision','createRange','_handleOperation','_loadState','_replaceEditorDataWithRevisionData','get','loadState','revision:','plugins','initial','push','_operations','_lastFrom','range','_getViewJson','diffData','_calculateMetaData','attributesBefore','getData','from','_getState','createRangeIn','init','split','keepParagraph','getRootNames','some','initialData','move','editing','useFillerType','_loadedStateData','createPositionFromPath','nodeAfter','_markers','_findInsertionIndex','stringify','userId','position','map','root','oldRange','getChild','_removePendingAction','addRootAttribute','createRevision','_authorId','updateRevisions','data','createPositionAfter','name','isAttached','targetPosition','isEqual','children','addRevision','version','_diffRoots','_makeRevision','_bufferedUpdates','getRevision','then','vid','offset','RevisionTracker','_continueCurrentRevision','getRevisionRootsAttributes','buildRevisionData','_insertChild'];(function(_0x3656a3,_0xeadf20){const _0xb29412=function(_0x5e410a){while(--_0x5e410a){_0x3656a3['push'](_0x3656a3['shift']());}};_0xb29412(++_0xeadf20);}(_0xeadf,0x148));const _0xb294=function(_0x3656a3,_0xeadf20){_0x3656a3=_0x3656a3-0x0;let _0xb29412=_0xeadf[_0x3656a3];return _0xb29412;};import{Users as _0x205325}from'ckeditor5-collaboration/src/collaboration-core.js';import{Plugin as _0x5b06d8,PendingActions as _0x1a84b9}from'ckeditor5/src/core.js';import{logWarning as _0x55f9fe,uid as _0x50aa1e}from'ckeditor5/src/utils.js';import{Position as _0x107561,Range as _0x46fc21,Element as _0x1c3e05,DocumentFragment as _0x14a268,ViewText as _0x4f29a0,ViewElement as _0x1d8ab7,ViewContainerElement as _0x13166d,ViewAttributeElement as _0x15e5fa,ViewEmptyElement as _0x5bed4c,ViewRawElement as _0x2aff85,ViewUIElement as _0x28bf67,ViewDocumentFragment as _0x557bb1}from'ckeditor5/src/engine.js';import _0x720cc4 from'./revisionsrepository.js';import{getTranslation as _0x2eacc3}from'./utils/common-translations.js';import{cloneDeep as _0x712917,isEqual as _0x55fa2f}from'lodash-es';const B={'c':_0x13166d,'a':_0x15e5fa,'e':_0x5bed4c,'r':_0x2aff85,'u':_0x28bf67};export default class l extends _0x5b06d8{static get[_0xb294('0x1c')](){return _0xb294('0xc9');}static get[_0xb294('0x7b')](){return[_0x205325,_0x720cc4,_0x1a84b9];}constructor(_0x2b11bd){super(_0x2b11bd),this['adapter']=null,this[_0xb294('0x56')]=null,this[_0xb294('0x68')]=new H(this[_0xb294('0x51')]),this[_0xb294('0x1')]=this[_0xb294('0x51')][_0xb294('0x6e')][_0xb294('0x8e')]('collaboration.channelId')||_0xb294('0x92'),this[_0xb294('0xc4')]=new Map(),this[_0xb294('0xa8')]=null;const _0x43f4e6=_0x50aa1e();this[_0xb294('0xf3')]={'history':this[_0xb294('0x51')][_0xb294('0x88')][_0xb294('0x4d')]['history'],'getLatestVersion':()=>Promise[_0xb294('0x41')](this['editor'][_0xb294('0x88')]['document'][_0xb294('0xc1')]),'getCurrentRevisionId':()=>_0x43f4e6},this['set'](_0xb294('0x52'),!0x1),this['set'](_0xb294('0x10a'),!0x0),this['set']('_isPendingUpdate',!0x1),this[_0xb294('0x51')][_0xb294('0x6e')][_0xb294('0x105')](_0xb294('0xf8'),!0x0),this[_0xb294('0x51')][_0xb294('0x78')][_0xb294('0x5f')](_0xb294('0x77'))[_0xb294('0x3c')]({'view':_0xb294('0x89')});}[_0xb294('0x9f')](){this[_0xb294('0x2a')]=this[_0xb294('0x51')][_0xb294('0x91')]['get'](_0xb294('0x3e')),this[_0xb294('0x16')](),this[_0xb294('0x51')][_0xb294('0xb9')]['on'](_0xb294('0x103'),()=>{const _0x40c2e1=this[_0xb294('0x2a')][_0xb294('0xc5')](0x0),_0x1ad1f9=_0x40c2e1&&null===_0x40c2e1['creator']?_0x40c2e1:null;if(this[_0xb294('0xca')]=!!_0x1ad1f9&&this[_0xb294('0x51')]['config'][_0xb294('0x8e')]('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins'][_0xb294('0x3f')](_0xb294('0x5d'))){const _0x538510=this[_0xb294('0xf3')][_0xb294('0x22')](),_0x29de1d=this[_0xb294('0x2a')]['getRevision'](_0x538510);if(_0x29de1d)this[_0xb294('0x74')]=_0x29de1d[_0xb294('0x27')],this[_0xb294('0xca')]=!0x1;else{const _0x12dd95=this[_0xb294('0xf3')][_0xb294('0x70')][_0xb294('0x94')][_0xb294('0x6c')](_0x42d9eb=>!_0x42d9eb['_isInit']),_0x40a8de=_0x12dd95?_0x12dd95['baseVersion']:this[_0xb294('0xf3')][_0xb294('0x70')][_0xb294('0xc1')];_0x40c2e1?(_0x40c2e1['toVersion']<_0x40a8de&&_0x40c2e1[_0xb294('0xdb')]({'toVersion':_0x40a8de}),this[_0xb294('0xca')]?(this[_0xb294('0xf3')][_0xb294('0x22')]=()=>_0x1ad1f9['id'],this[_0xb294('0x74')]=_0x1ad1f9[_0xb294('0x27')]):(this[_0xb294('0x74')]=_0x40c2e1['toVersion'],this[_0xb294('0xca')]=!0x1)):(this[_0xb294('0x74')]=_0x40a8de,this[_0xb294('0xca')]=!0x1);}}else _0x1ad1f9&&(this[_0xb294('0x51')][_0xb294('0x88')]['document'][_0xb294('0x70')][_0xb294('0xc1')]=Math[_0xb294('0x34')](_0x1ad1f9[_0xb294('0x106')],this[_0xb294('0x51')][_0xb294('0x88')]['document'][_0xb294('0x70')][_0xb294('0xc1')]),_0x1ad1f9[_0xb294('0x27')]===_0x1ad1f9['toVersion']?(0x0!==_0x1ad1f9[_0xb294('0x27')]&&(this['_source'][_0xb294('0x22')]=()=>_0x1ad1f9['id']),this[_0xb294('0xca')]=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1ad1f9['id'],this[_0xb294('0x74')]=_0x1ad1f9['fromVersion'])),this['_continueCurrentRevision']||(this[_0xb294('0x74')]=this[_0xb294('0x51')][_0xb294('0x88')][_0xb294('0x4d')][_0xb294('0xc1')]);this[_0xb294('0x68')][_0xb294('0x9f')](this[_0xb294('0xf3')]['history']),this[_0xb294('0xc')](this[_0xb294('0x74')]),this['_createCurrentRevision'](this[_0xb294('0x74')]),this[_0xb294('0xda')]&&this['sendBufferedUpdates']();}),this[_0xb294('0x9')](_0xb294('0x52'))['to'](this,'_isPendingUpdate',_0x37d58e=>!_0x37d58e);}async[_0xb294('0x73')](){if(this[_0xb294('0x2a')][_0xb294('0x6b')]>0x0){const _0x141304=this[_0xb294('0x2a')][_0xb294('0xc5')](0x0),_0x2f68ad=await this['getRevisionDocumentData'](_0x141304),_0x3b0cc1=await this[_0xb294('0xcb')](_0x141304);this['_replaceEditorDataWithRevisionData'](_0x2f68ad,_0x3b0cc1);}}['setSource'](_0x2f6b38){this[_0xb294('0xf3')]=_0x2f6b38;}async[_0xb294('0x23')](){const _0x4802e4=await this[_0xb294('0xf3')][_0xb294('0x84')]();if(_0x4802e4>this['currentRevision']['toVersion']){await this[_0xb294('0x8c')]();const _0x18638d=this[_0xb294('0xcc')]({'revision':this[_0xb294('0x56')],'to':_0x4802e4});_0x18638d[_0xb294('0xd1')]=_0x18638d[_0xb294('0x38')][_0xb294('0xb0')](_0x284b6b=>this['editor'][_0xb294('0x91')]['get'](_0xb294('0x1e'))[_0xb294('0x58')](_0x284b6b)),this[_0xb294('0x56')][_0xb294('0xdb')](_0x18638d);}}async[_0xb294('0x8c')](){this[_0xb294('0xca')]&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this[_0xb294('0x68')][_0xb294('0x8f')](this[_0xb294('0x56')]),this['_loadedStateData']={'fromVersion':this[_0xb294('0x56')][_0xb294('0x27')],'authors':this[_0xb294('0x56')][_0xb294('0xd1')][_0xb294('0xf5')]()});}async['saveRevision'](_0x15315d={},_0x1f2165=null){const _0x26f16a=[];await this[_0xb294('0x8c')](),this[_0xb294('0xca')]=!0x1,_0x1f2165>this['currentRevision'][_0xb294('0x106')]&&(_0x1f2165=null),null===_0x1f2165&&(_0x1f2165=await this['_source'][_0xb294('0x84')]());const _0x5154b8=this[_0xb294('0xde')](_0x1f2165),_0x5e0d72=this[_0xb294('0xcc')]({'from':_0x5154b8,'to':_0x1f2165});if(this[_0xb294('0x56')][_0xb294('0x106')]<_0x1f2165){const _0x4e2c97=this[_0xb294('0xcc')]({'revision':this[_0xb294('0x56')],'from':_0x1f2165,'to':_0x1f2165});_0x4e2c97['authors']=[],_0x4e2c97[_0xb294('0x38')]=[],_0x4e2c97['id']=this[_0xb294('0x56')]['id'],this[_0xb294('0x56')][_0xb294('0xdb')](_0x4e2c97,!0x0),delete _0x4e2c97[_0xb294('0xd1')],_0x26f16a[_0xb294('0x93')](_0x4e2c97);}_0x15315d[_0xb294('0xe')]=this['editor'][_0xb294('0x91')]['get'](_0xb294('0x1e'))['me']['id'],_0x15315d['name']=_0x15315d[_0xb294('0xbb')]||null,_0x15315d['id']=_0x15315d['id']||_0x50aa1e(),_0x15315d={..._0x15315d,..._0x5e0d72};const _0x42a6a7=this[_0xb294('0xd6')](_0x15315d);_0x26f16a[_0xb294('0x93')](_0x15315d);const _0x19073b=this[_0xb294('0x2a')]['getIndex'](_0x42a6a7);if(0x0!==_0x19073b){const _0x2e06c7=this[_0xb294('0x2a')]['getRevision'](_0x19073b-0x1);if(_0x2e06c7[_0xb294('0x27')]!==_0x1f2165){const _0x4f99f8=this['_revisionDataBuilder'][_0xb294('0x9b')](_0x1f2165,_0x2e06c7['toVersion']),_0x29bddd={'id':_0x2e06c7['id'],'diffData':_0x4f99f8['diffData'],'authorsIds':_0x4f99f8[_0xb294('0x38')],'authors':_0x4f99f8['authorsIds'][_0xb294('0xb0')](_0x10624a=>this[_0xb294('0x51')][_0xb294('0x91')][_0xb294('0x8e')]('Users')[_0xb294('0x58')](_0x10624a)),'fromVersion':_0x1f2165};_0x2e06c7===this[_0xb294('0x56')]&&(_0x29bddd[_0xb294('0x11')]=new Date(_0x15315d[_0xb294('0x11')][_0xb294('0x7c')]()+0xa)),_0x2e06c7['_update'](_0x29bddd,!0x0),delete _0x29bddd[_0xb294('0xd1')],_0x26f16a[_0xb294('0x93')](_0x29bddd);}}if(this['adapter']){for(const _0x3062f5 of _0x26f16a)this[_0xb294('0x4f')](_0x3062f5['id'],_0x3062f5,!0x0);this[_0xb294('0x1a')]();}return _0x42a6a7;}['addRevisionData'](_0x584e77){const _0x44c3be=this['repository'][_0xb294('0xb6')](_0x584e77);return this[_0xb294('0xda')]&&_0x44c3be['on'](_0xb294('0xdb'),(_0x3c2cf5,_0x2ec625,_0x50cfb9)=>{_0x50cfb9||(this[_0xb294('0x4f')](_0x2ec625['id'],_0x2ec625,!0x0),this[_0xb294('0x1a')]());}),this['repository'][_0xb294('0xc0')](_0x44c3be,this[_0xb294('0xac')](_0x44c3be)),_0x44c3be;}async[_0xb294('0xcf')](_0x2c371b){await this[_0xb294('0x37')](_0x2c371b);const _0x46cccb={};for(const _0x4020b1 in _0x2c371b[_0xb294('0x98')]){if(_0x2c371b[_0xb294('0x98')][_0x4020b1]['attachChange']&&!_0x2c371b[_0xb294('0x98')][_0x4020b1][_0xb294('0x63')]['isAttached'])continue;const _0x9899ac=this[_0xb294('0x2c')](JSON[_0xb294('0x107')](_0x2c371b[_0xb294('0x98')][_0x4020b1]['insertions'])),_0x32e33d=this[_0xb294('0x51')][_0xb294('0xa6')][_0xb294('0x3d')][_0xb294('0x4d')],_0x32a505=new _0x557bb1(_0x32e33d,_0x9899ac[_0xb294('0xb0')](_0x2cfa58=>J(_0x2cfa58,this[_0xb294('0x51')])));this[_0xb294('0x51')][_0xb294('0xb9')][_0xb294('0x5c')][_0xb294('0xa7')](_0xb294('0xea')),_0x46cccb[_0x4020b1]=this[_0xb294('0x51')][_0xb294('0xb9')]['processor']['toData'](_0x32a505),this[_0xb294('0x51')][_0xb294('0xb9')]['processor'][_0xb294('0xa7')](_0xb294('0x6'));}return _0x46cccb;}async[_0xb294('0xcb')](_0x503f47){await this['_loadRevisionData'](_0x503f47);const _0x455ea9={};for(const _0x513892 in _0x503f47['diffData'])_0x503f47[_0xb294('0x98')][_0x513892][_0xb294('0x63')]&&!_0x503f47[_0xb294('0x98')][_0x513892][_0xb294('0x63')][_0xb294('0xbc')]||(_0x455ea9[_0x513892]=_0x503f47[_0xb294('0x98')][_0x513892][_0xb294('0x5')]||{});return _0x455ea9;}['sendBufferedUpdates'](){if(0x0===this[_0xb294('0xc4')][_0xb294('0x2')])return;if(this[_0xb294('0xdd')])return;let _0x20f34e=Array[_0xb294('0x9c')](this[_0xb294('0xc4')][_0xb294('0x53')]());this[_0xb294('0xc4')][_0xb294('0xf0')]();for(let _0x479741=0x0;_0x479741<_0x20f34e[_0xb294('0x6b')];_0x479741++){const _0x56d42b=_0x20f34e[_0x479741];let _0x525544=!0x1;for(const _0x3be810 of Object[_0xb294('0x108')](_0x56d42b))void 0x0===_0x56d42b[_0x3be810]?delete _0x56d42b[_0x3be810]:'id'!==_0x3be810&&(_0x525544=!0x0);_0x525544||(_0x20f34e[_0x479741]=null);}if(_0x20f34e=_0x20f34e[_0xb294('0xe9')](_0x4ccbc8=>null!==_0x4ccbc8),!_0x20f34e[_0xb294('0x6b')])return;for(let _0x5e25d7=0x0;_0x5e25d7<_0x20f34e[_0xb294('0x6b')];_0x5e25d7++){const _0x36045c=_0x20f34e[_0x5e25d7];void 0x0!==_0x36045c['fromVersion']&&void 0x0===_0x36045c['toVersion']&&(_0x36045c[_0xb294('0x106')]=this['repository']['getRevision'](_0x36045c['id'])[_0xb294('0x106')]),void 0x0!==_0x36045c['toVersion']&&void 0x0===_0x36045c['fromVersion']&&(_0x36045c[_0xb294('0x27')]=this[_0xb294('0x2a')][_0xb294('0xc5')](_0x36045c['id'])['fromVersion']);}const _0x39353d=this[_0xb294('0x51')][_0xb294('0x6e')][_0xb294('0x8e')](_0xb294('0x39'));this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this[_0xb294('0xda')][_0xb294('0xb8')](_0x20f34e,_0x39353d)['finally'](()=>{this[_0xb294('0xdd')]=!0x1;})[_0xb294('0xc6')](_0x4d45cc=>{if(_0x4d45cc)for(const _0x113bef of _0x4d45cc)this[_0xb294('0x47')]({'id':_0x113bef['id'],'createdAt':_0x113bef[_0xb294('0x11')]});this[_0xb294('0xb4')](),this[_0xb294('0x1a')]();});}[_0xb294('0x8d')](_0x365cdc,_0x2d814b){let _0xed4106=this[_0xb294('0x51')]['config']['get'](_0xb294('0xa4')),_0x11d7f7=this[_0xb294('0x51')][_0xb294('0x6e')]['get'](_0xb294('0x87'));if(void 0x0===_0xed4106){_0xed4106={};for(const _0x341ee0 of this[_0xb294('0x51')][_0xb294('0x88')]['document'][_0xb294('0xa2')]())_0xed4106[_0x341ee0]='';}if('string'==typeof _0xed4106&&(_0xed4106={'main':_0xed4106}),void 0x0===_0x11d7f7){_0x11d7f7={};for(const _0x14f3fe of this[_0xb294('0x51')][_0xb294('0x88')][_0xb294('0x4d')][_0xb294('0xa2')]())_0x11d7f7[_0x14f3fe]={};}let _0x20241a=!0x1;const _0x50db04=Object[_0xb294('0x108')](_0xed4106),_0x341c89=Object[_0xb294('0x108')](_0x365cdc);for(const _0x53c454 of _0x50db04){if(_0xed4106[_0x53c454]!==_0x365cdc[_0x53c454]&&''!==_0xed4106[_0x53c454][_0xb294('0x13')]()){_0x20241a=!0x0;break;}if(!_0x55fa2f(_0x11d7f7[_0x53c454],_0x2d814b[_0x53c454])&&Object[_0xb294('0x108')](_0x11d7f7[_0x53c454])[_0xb294('0x6b')]>0x0){_0x20241a=!0x0;break;}}_0x20241a||(_0x20241a=_0x341c89[_0xb294('0xa3')](_0x4133f7=>!this['editor']['model'][_0xb294('0x4d')][_0xb294('0xed')](_0x4133f7))),_0x20241a&&_0x55f9fe(_0xb294('0x32'),{'editorData':_0xed4106,'editorRootsAttributes':_0x11d7f7,'revisionData':_0x365cdc,'revisionRootsAttributes':_0x2d814b}),this[_0xb294('0x51')][_0xb294('0x6e')][_0xb294('0x7f')](_0xb294('0xa4'),_0x365cdc),this[_0xb294('0x51')][_0xb294('0x6e')][_0xb294('0x7f')](_0xb294('0x87'),_0x2d814b);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1bf690=this[_0xb294('0x51')][_0xb294('0x91')][_0xb294('0x8e')]('PendingActions');this[_0xb294('0x1f')]=_0x1bf690['add'](_0x2eacc3(this['editor'][_0xb294('0x83')],_0xb294('0x5b')));}}[_0xb294('0xb4')](){this['_pendingAction']&&(this[_0xb294('0x51')][_0xb294('0x91')][_0xb294('0x8e')](_0xb294('0xfd'))[_0xb294('0x19')](this[_0xb294('0x1f')]),this[_0xb294('0x1f')]=null);}[_0xb294('0xac')](_0x29a9a1){const _0x4044c1=this[_0xb294('0x2a')]['getRevisions']();_0x4044c1[_0xb294('0xd0')]();let _0x259ce4=0x0;for(;_0x259ce4<_0x4044c1[_0xb294('0x6b')];){const _0x509bd3=_0x4044c1[_0x259ce4];if(_0x509bd3===this[_0xb294('0x56')]){_0x259ce4++;continue;}if(_0x509bd3['id']===this[_0xb294('0x1')])break;const _0x12a57e=_0x29a9a1['toVersion']-_0x509bd3[_0xb294('0x106')]||_0x29a9a1[_0xb294('0x27')]-_0x509bd3[_0xb294('0x27')];if(_0x12a57e>0x0)break;if(_0x12a57e<0x0)_0x259ce4++;else{if(!_0x29a9a1[_0xb294('0x79')]&&_0x509bd3[_0xb294('0x79')])break;if(_0x509bd3[_0xb294('0x79')]||!_0x29a9a1['creator']){if(_0x29a9a1[_0xb294('0x11')]>_0x509bd3[_0xb294('0x11')])break;_0x259ce4++;}else _0x259ce4++;}}return _0x259ce4;}['setRevisionData'](_0x4673d7){const _0x23918b=this['repository'][_0xb294('0xc5')](_0x4673d7['id']);if(_0x4673d7['createdAt']&&(_0x4673d7[_0xb294('0x11')]=new Date(_0x4673d7[_0xb294('0x11')])),_0x4673d7['authorsIds']){const _0x2dcea9=this[_0xb294('0x51')]['plugins'][_0xb294('0x8e')](_0xb294('0x1e'));_0x4673d7[_0xb294('0xd1')]=_0x4673d7[_0xb294('0x38')][_0xb294('0xb0')](_0x5a5243=>_0x2dcea9[_0xb294('0x58')](_0x5a5243));}_0x23918b[_0xb294('0xdb')](_0x4673d7,!0x0);}['buildRevisionData']({revision:_0x28bcfe=null,from:_0x1661a4=null,to:_0x5216b4=null}){_0x1661a4=null!==_0x1661a4?_0x1661a4:_0x28bcfe[_0xb294('0x27')],_0x5216b4=null!==_0x5216b4?_0x5216b4:_0x28bcfe['toVersion'];const _0x1ca43b=this['_revisionDataBuilder'][_0xb294('0x9b')](_0x1661a4,_0x5216b4),_0x4847d2={'diffData':_0x1ca43b[_0xb294('0x98')],'authorsIds':_0x1ca43b[_0xb294('0x38')],'fromVersion':_0x1661a4,'toVersion':_0x5216b4};if(!_0x28bcfe||_0x5216b4!==_0x28bcfe[_0xb294('0x106')]){const _0x28a555=_0x5216b4-0x1,_0x163c9e=this[_0xb294('0xf3')][_0xb294('0x70')]['getOperation'](_0x28a555);_0x4847d2[_0xb294('0x11')]=_0x163c9e&&_0x163c9e['createdAt']||new Date();}if(this[_0xb294('0xa8')]&&_0x1661a4===this['_loadedStateData'][_0xb294('0x27')])for(const _0x22013c of this[_0xb294('0xa8')][_0xb294('0xd1')])_0x4847d2[_0xb294('0x38')]['includes'](_0x22013c['id'])||_0x4847d2['authorsIds'][_0xb294('0x93')](_0x22013c['id']);return _0x4847d2;}[_0xb294('0x37')](_0x597771){if(!_0x597771||_0x597771[_0xb294('0x98')])return Promise[_0xb294('0x41')]();{const _0x58a57a=this['editor'][_0xb294('0x6e')][_0xb294('0x8e')](_0xb294('0x39'));return this['adapter'][_0xb294('0xc5')]({'channelId':_0x58a57a,'revisionId':_0x597771['id']})['then'](_0x2c53f1=>{_0x597771['diffData']=_0x2c53f1['diffData'];});}}[_0xb294('0x4f')](_0x133a56,_0xd06974,_0x4b8571){if(this[_0xb294('0xc4')]['has'](_0x133a56)){const _0x25c78d=this[_0xb294('0xc4')][_0xb294('0x8e')](_0x133a56);_0xd06974=_0x4b8571?{..._0x25c78d,..._0xd06974}:{..._0xd06974,..._0x25c78d};}this[_0xb294('0xc4')][_0xb294('0x7f')](_0x133a56,_0xd06974);}[_0xb294('0xde')](_0x4d0848){const _0x5b9164=this[_0xb294('0x2a')][_0xb294('0xb')]();_0x5b9164[_0xb294('0xd0')](),_0x5b9164['shift']();const _0x18f044=_0x5b9164[_0xb294('0x6c')](_0x309cd3=>_0x309cd3['toVersion']<=_0x4d0848)[_0xb294('0x106')];return _0x18f044<this[_0xb294('0x74')]?this[_0xb294('0x74')]:_0x18f044;}[_0xb294('0xc')](_0x1ae211){const _0x1836dc=this[_0xb294('0x2a')][_0xb294('0xc5')](this[_0xb294('0x2a')]['length']-0x1);if(_0x1836dc)this[_0xb294('0x1')]=_0x1836dc['id'];else{const _0x2ed90d=!this[_0xb294('0x51')][_0xb294('0x88')][_0xb294('0x4d')][_0xb294('0x80')]['find'](_0x35b5b4=>this[_0xb294('0x51')][_0xb294('0x88')][_0xb294('0xff')](_0x35b5b4)),_0x231fcc=this['editor'][_0xb294('0x91')]['get']('Users')['me']['id'],_0x8f5e19=_0x2eacc3(this[_0xb294('0x51')][_0xb294('0x83')],_0x2ed90d?'Empty\x20document':'Initial\x20revision');this[_0xb294('0xc3')]({'from':_0x1ae211,'to':_0x1ae211,'id':this['_initialRevisionId'],'name':_0x8f5e19,'creatorId':_0x231fcc});}}['_createCurrentRevision'](_0x1c645c){const _0x531aa=this[_0xb294('0xf3')][_0xb294('0x22')]();this[_0xb294('0x56')]=this[_0xb294('0x2a')]['getRevision'](_0x531aa),this['currentRevision']||(this[_0xb294('0x56')]=this[_0xb294('0xc3')]({'from':_0x1c645c,'to':_0x1c645c,'id':_0x531aa,'name':'','creatorId':null}));}[_0xb294('0xc3')]({name:_0xe9c896,from:_0x819949,to:_0x10790e,creatorId:_0x40868d,id:_0x310c4a}){const _0x198b37=this[_0xb294('0xcc')]({'from':_0x819949,'to':_0x10790e});_0x198b37[_0xb294('0xbb')]=_0xe9c896,_0x198b37['creatorId']=_0x40868d,_0x198b37['id']=_0x310c4a;const _0x283bb4=this[_0xb294('0xd6')](_0x198b37);return this[_0xb294('0xda')]&&this[_0xb294('0x4f')](_0x198b37['id'],_0x198b37,!0x0),_0x283bb4;}[_0xb294('0x16')](){this['editor']['conversion'][_0xb294('0x5f')](_0xb294('0x6d'))[_0xb294('0xd2')]({'model':_0xb294('0x89')});}[_0xb294('0x2c')](_0x15fe3a){return(_0x15fe3a=_0x15fe3a[_0xb294('0xe9')](_0x265120=>!_0x265120[_0xb294('0xbb')]||_0xb294('0xfb')!==_0x265120['name']&&'revision-end'!==_0x265120[_0xb294('0xbb')]))[_0xb294('0x4e')](_0x4c2390=>{_0xb294('0xee')!=typeof _0x4c2390&&(_0x4c2390['children']=this['_removeRevisionMarkers'](_0x4c2390[_0xb294('0xbf')]),_0x4c2390[_0xb294('0xe5')]=_0x4c2390[_0xb294('0xe5')]['filter'](_0x3f1898=>!_0x3f1898[0x0][_0xb294('0xe0')](_0xb294('0xe1'))));}),_0x15fe3a;}}function J(_0x2a33a8,_0x291146){const _0x1c5d10=_0x291146[_0xb294('0xa6')]['view'][_0xb294('0x4d')];if(_0xb294('0xee')==typeof _0x2a33a8)return new _0x4f29a0(_0x1c5d10,_0x2a33a8);{const _0x20e8f2=_0x2a33a8['children'][_0xb294('0xb0')](_0x566f4d=>J(_0x566f4d,_0x291146));return new(B[_0x2a33a8[(_0xb294('0x49'))]]||_0x1d8ab7)(_0x1c5d10,_0x2a33a8[_0xb294('0xbb')],_0x2a33a8[_0xb294('0xe5')],_0x20e8f2);}}class H{constructor(_0x1a6a20){this[_0xb294('0x51')]=_0x1a6a20,this[_0xb294('0x25')]=new Map(),this[_0xb294('0x95')]=-0x1,this[_0xb294('0x8')]=-0x1,this['_markers']=new Map(),this[_0xb294('0xc2')]=new Map(),this[_0xb294('0xef')]=new Map(),this[_0xb294('0x76')]=new Map(),this[_0xb294('0x7a')]=new Map(),this['_idsRoots']=new Map(),this[_0xb294('0x62')]=new Map(),this[_0xb294('0x42')]=new Map(),this['_touchedMarkers']=new Map(),this[_0xb294('0xec')]=new Map(),this[_0xb294('0x0')]=0x1;}['init'](_0x3e607d){this[_0xb294('0x14')]=_0x3e607d;const _0x52ba1a=new Map(),_0xdecc5a=new Map(),_0x125c6d=this[_0xb294('0x51')][_0xb294('0x88')][_0xb294('0x4d')][_0xb294('0x80')][_0xb294('0xb0')](_0x43f3be=>_0x43f3be['rootName']);for(const _0xb357a7 of _0x125c6d){const _0x9678dc=this[_0xb294('0x51')][_0xb294('0x88')]['document'][_0xb294('0xed')](_0xb357a7),_0x435f6e=q(_0x9678dc);_0x52ba1a[_0xb294('0x7f')](_0xb357a7,_0x435f6e),_0xdecc5a[_0xb294('0x7f')](_0xb357a7,Object[_0xb294('0x61')](_0x9678dc[_0xb294('0x59')]()));}const _0x54b732=Array[_0xb294('0x9c')](this['editor'][_0xb294('0x88')][_0xb294('0x5e')])[_0xb294('0xb0')](_0x2a5f21=>[_0x2a5f21[_0xb294('0xbb')],_0x2a5f21[_0xb294('0xeb')]()]),_0x286936=this[_0xb294('0x14')][_0xb294('0xc1')];this['_saveMetaData'](_0x286936,_0x52ba1a,_0x54b732,_0xdecc5a),this[_0xb294('0x7e')]=this[_0xb294('0x0')];const _0x52aaed=new Map(),_0x3efa8f=new Map();for(const _0x1502c0 of _0x125c6d){const _0x1e92c2=G(_0x1502c0);_0x52aaed[_0xb294('0x7f')](_0x1502c0,_0x1e92c2),_0x3efa8f[_0xb294('0x7f')](_0x1502c0,{});}this[_0xb294('0x5a')](Number[_0xb294('0x102')],_0x52aaed,[],_0x3efa8f);}[_0xb294('0x9b')](_0x2d3681,_0x3e4357){if(this['_lastFrom']===_0x2d3681&&this[_0xb294('0x8')]<=_0x3e4357)this['_savedMetaData'][_0xb294('0x2')]>0x1&&this[_0xb294('0x3')](this[_0xb294('0x8')]),this[_0xb294('0x21')](this['_lastTo'],_0x3e4357,!0x0);else{if(!this[_0xb294('0x25')][_0xb294('0x3f')](_0x2d3681)){const _0x5bf517=this['_getPreviousFrom'](_0x2d3681);this[_0xb294('0x99')](_0x5bf517,_0x2d3681,!0x1);}this[_0xb294('0x99')](_0x2d3681,_0x3e4357,!0x0);}return this[_0xb294('0x95')]=_0x2d3681,this[_0xb294('0x8')]=_0x3e4357,this[_0xb294('0x9d')]();}[_0xb294('0x8f')](_0x5ebf7d){this['_reset'](),this[_0xb294('0x95')]=_0x5ebf7d[_0xb294('0x27')],this[_0xb294('0x8')]=_0x5ebf7d['toVersion'];for(const _0x16b3d7 in _0x5ebf7d['diffData']){const _0x402dda=_0x5ebf7d[_0xb294('0x98')][_0x16b3d7][_0xb294('0x63')],_0x1811b4=_0x712917(_0x5ebf7d['diffData'][_0x16b3d7][_0xb294('0x9a')])||{},_0x40d16b=this[_0xb294('0x10')](_0x5ebf7d['diffData'][_0x16b3d7]['deletions']);_0x40d16b[_0xb294('0x43')]=_0x16b3d7,_0x40d16b[_0xb294('0x6f')]=!_0x402dda||!_0x402dda[_0xb294('0xbc')],_0x40d16b[_0xb294('0xbc')]=()=>_0x40d16b[_0xb294('0x6f')],this[_0xb294('0x76')][_0xb294('0x7f')](_0x16b3d7,_0x40d16b),this[_0xb294('0x7a')][_0xb294('0x7f')](_0x16b3d7,_0x1811b4),_0x402dda&&this[_0xb294('0xec')][_0xb294('0x7f')](_0x16b3d7,_0x402dda);const _0x5df5f3=this[_0xb294('0xd8')](_0x40d16b);this[_0xb294('0x62')]['set'](_0x16b3d7,_0x5df5f3);for(const [_0x11f22c,_0x224692]of _0x40d16b[_0xb294('0x5e')]){if(!_0x11f22c[_0xb294('0xe0')](_0xb294('0x90')))continue;const _0xe44f87=_0x11f22c[_0xb294('0xa0')](':')[0x2];for(const _0x1b95f2 of _0x224692[_0xb294('0xf6')]({'singleCharacters':!0x0})){const _0x56bdef=this[_0xb294('0xf2')](_0x1b95f2),_0x2a9e40='elementEnd'==_0x1b95f2[_0xb294('0x49')]?_0x1b95f2[_0xb294('0x64')][_0xb294('0x4c')][_0xb294('0xf5')](0x0,-0x1):_0x1b95f2[_0xb294('0x64')][_0xb294('0x4c')],_0x520c6d=_0x5df5f3[_0xb294('0x36')](_0x2a9e40)[_0xb294('0x24')](_0x56bdef);this[_0xb294('0x42')]['set'](_0x520c6d,{'userId':_0xe44f87});}}}this[_0xb294('0x7e')]=this[_0xb294('0x0')];const _0x406334=[...Array(this[_0xb294('0x0')])[_0xb294('0x108')]()]['slice'](0x1)[_0xb294('0xe9')](_0x33958b=>!this[_0xb294('0x42')]['has'](_0x33958b));let _0x42026f=0x0;const _0x22f8b6=new Map();for(const _0x126cec in _0x5ebf7d[_0xb294('0x98')]){const _0x5d18e8=_0x5ebf7d[_0xb294('0x98')][_0x126cec][_0xb294('0x63')],_0x13ef2b=_0x712917(_0x5ebf7d[_0xb294('0x98')][_0x126cec]['attributesAfter'])||{},_0x586f33=this[_0xb294('0x10')](_0x5ebf7d[_0xb294('0x98')][_0x126cec][_0xb294('0x81')]);_0x586f33['rootName']=_0x126cec,_0x586f33['_isAttached']=!_0x5d18e8||_0x5d18e8['isAttached'],_0x586f33[_0xb294('0xbc')]=()=>_0x586f33[_0xb294('0x6f')],this[_0xb294('0xc2')][_0xb294('0x7f')](_0x126cec,_0x586f33),this[_0xb294('0xef')][_0xb294('0x7f')](_0x126cec,_0x13ef2b);const _0x2220e2=this[_0xb294('0xd8')](_0x586f33,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x126cec,_0x2220e2),_0x22f8b6[_0xb294('0x7f')](_0x126cec,_0x586f33[_0xb294('0xbc')]()?_0x13ef2b:{});for(const [_0x1e6f66,_0x146967]of _0x586f33[_0xb294('0x5e')]){if(!_0x1e6f66['startsWith']('revision:'))continue;const _0x315f05=_0x1e6f66[_0xb294('0xa0')](':')[0x2];for(const _0x456b11 of _0x146967[_0xb294('0xf6')]({'singleCharacters':!0x0})){const _0x248f88=this[_0xb294('0xf2')](_0x456b11),_0x26a58a=this[_0xb294('0x0')]++,_0x2dff8d=_0xb294('0x6a')==_0x456b11[_0xb294('0x49')]?_0x456b11[_0xb294('0x64')][_0xb294('0x4c')]['slice'](0x0,-0x1):_0x456b11['previousPosition']['path'];_0x2220e2['getNodeByPath'](_0x2dff8d)[_0xb294('0x45')](_0x248f88,_0x26a58a),this[_0xb294('0x42')][_0xb294('0x7f')](_0x26a58a,{'userId':_0x315f05});}}for(const _0x4f3f27 of this[_0xb294('0x51')][_0xb294('0x88')][_0xb294('0x9e')](_0x586f33)['getWalker']({'singleCharacters':!0x0})){const _0x2d1054=this[_0xb294('0xf2')](_0x4f3f27),_0x5ee433='elementEnd'==_0x4f3f27[_0xb294('0x49')]?_0x4f3f27[_0xb294('0x64')][_0xb294('0x4c')][_0xb294('0xf5')](0x0,-0x1):_0x4f3f27[_0xb294('0x64')][_0xb294('0x4c')],_0x30e289=_0x2220e2['getNodeByPath'](_0x5ee433);_0x30e289[_0xb294('0x24')](_0x2d1054)>0x0||_0x30e289[_0xb294('0x45')](_0x2d1054,_0x406334[_0x42026f++]);}for(const [_0x5ee4d6,_0x5c99de]of _0x586f33[_0xb294('0x5e')])_0x5ee4d6[_0xb294('0xe0')](_0xb294('0x90'))||this[_0xb294('0xab')][_0xb294('0x7f')](_0x5ee4d6,_0x5c99de);}const _0x5f2165=G(_0xb294('0xf7'));this[_0xb294('0x76')][_0xb294('0x7f')](_0xb294('0xf7'),_0x5f2165),this[_0xb294('0x62')][_0xb294('0x7f')](_0xb294('0xf7'),this[_0xb294('0xd8')](_0x5f2165,0x1));const _0xefa7e6=G('$graveyard');this[_0xb294('0xc2')][_0xb294('0x7f')]('$graveyard',_0xefa7e6),this[_0xb294('0x85')]['set'](_0xb294('0xf7'),this['_makeIdsRoot'](_0xefa7e6,0x1));const _0x54bec8=Array[_0xb294('0x9c')](this['_diffRoots'])[_0xb294('0xb0')](([_0x346bb3,_0x326b36])=>[_0x346bb3,q(_0x326b36)]);this['_saveMetaData'](this[_0xb294('0x8')],_0x54bec8,this[_0xb294('0xab')],_0x22f8b6);}[_0xb294('0x10')](_0x436143){const _0x3b6710=JSON[_0xb294('0x107')](_0x436143),_0x56f596=this[_0xb294('0x51')][_0xb294('0xa6')][_0xb294('0x3d')]['document'],_0x13defe=new _0x557bb1(_0x56f596,_0x3b6710['map'](_0x5053f1=>J(_0x5053f1,this[_0xb294('0x51')])));return this['editor'][_0xb294('0xb9')][_0xb294('0x7d')](_0x13defe);}[_0xb294('0x5a')](_0x4e962c,_0x1fc207,_0x1c0efb,_0x3d3f2f){const _0x1484eb=new Map(_0x1fc207),_0x344130=new Map(_0x712917(_0x3d3f2f)),_0x33e838=new Map();for(const [_0x358ea4,_0x536b99]of _0x1c0efb)_0x33e838[_0xb294('0x7f')](_0x358ea4,{'start':_0x536b99[_0xb294('0xe8')][_0xb294('0xe3')](),'end':_0x536b99[_0xb294('0x4b')][_0xb294('0xe3')](),'rootName':_0x536b99[_0xb294('0xb1')]['rootName']});this['_savedMetaData'][_0xb294('0x7f')](_0x4e962c,{'roots':_0x1484eb,'markers':_0x33e838,'rootsAttributes':_0x344130});}[_0xb294('0x3')](_0x2fe7b9){this['_savedMetaData'][_0xb294('0x57')](_0x2fe7b9);}['reInit'](){this[_0xb294('0x33')](),this[_0xb294('0x95')]=-0x1,this[_0xb294('0x8')]=-0x1,this[_0xb294('0x25')][_0xb294('0xf0')](),this[_0xb294('0x9f')](this['source']);}[_0xb294('0x33')](){this['_touched']['clear'](),this[_0xb294('0xf9')][_0xb294('0xf0')](),this[_0xb294('0xec')]['clear'](),this[_0xb294('0xc2')][_0xb294('0xf0')](),this[_0xb294('0xef')][_0xb294('0xf0')](),this[_0xb294('0x76')]['clear'](),this[_0xb294('0x7a')][_0xb294('0xf0')](),this[_0xb294('0x85')][_0xb294('0xf0')](),this[_0xb294('0x62')][_0xb294('0xf0')](),this[_0xb294('0xab')][_0xb294('0xf0')](),this[_0xb294('0x0')]=0x1,this[_0xb294('0x7e')]=this[_0xb294('0x0')];}['_makeIdsRoot'](_0x3a5bac,_0x285ff7=null){let _0x4f7bbc=null;_0x3a5bac['is'](_0xb294('0xd7'))||(_0x4f7bbc=new _0x1c3e05(_0x3a5bac[_0xb294('0xbb')],{'vid_start':null===_0x285ff7?this[_0xb294('0x0')]++:_0x285ff7++}));const _0x169bc2=[];for(const _0x422530 of _0x3a5bac[_0xb294('0x82')]())if(_0x422530['is']('element')){_0x169bc2[_0xb294('0x93')](this['_makeIdsRoot'](_0x422530,_0x285ff7));const _0x271c5c=_0x169bc2[_0x169bc2[_0xb294('0x6b')]-0x1];null!==_0x285ff7&&(_0x285ff7=_0x271c5c['is'](_0xb294('0x75'),_0xb294('0xe7'))?_0x271c5c[_0xb294('0x24')](_0xb294('0xc7'))+0x1:_0x271c5c['getAttribute'](_0xb294('0x1d'))+0x1);}else for(let _0xe02519=0x0;_0xe02519<_0x422530[_0xb294('0xe6')];_0xe02519++)_0x169bc2[_0xb294('0x93')](new _0x1c3e05('$text',{'vid':null===_0x285ff7?this[_0xb294('0x0')]++:_0x285ff7++}));if(_0x3a5bac['is']('documentFragment')){const _0x3b82f4=G(_0x3a5bac[_0xb294('0x43')]);return _0x3b82f4[_0xb294('0xcd')](0x0,_0x169bc2),_0x3b82f4;}return _0x4f7bbc[_0xb294('0x45')]('vid_end',null===_0x285ff7?this[_0xb294('0x0')]++:_0x285ff7++),_0x4f7bbc[_0xb294('0xcd')](0x0,_0x169bc2),_0x4f7bbc;}['_calculateMetaData'](_0x35418e,_0x475fdf,_0x18d291){this[_0xb294('0x33')]();const {roots:_0xe3532a,markers:_0xd53a4e,rootsAttributes:_0x590824}=this[_0xb294('0x25')][_0xb294('0x8e')](_0x35418e);this[_0xb294('0x76')]=new Map(_0xe3532a),this[_0xb294('0x7a')]=new Map(_0x712917(_0x590824));for(const [_0x151987,_0x581621]of this[_0xb294('0x76')])if(_0xb294('0xf7')!==_0x151987&&(this[_0xb294('0xc2')]['set'](_0x151987,q(_0x581621)),this['_diffRootsAttributes']=new Map(_0x712917(_0x590824)),_0x18d291)){const _0x3106f1=this['_revisionId'];this[_0xb294('0x85')][_0xb294('0x7f')](_0x151987,this[_0xb294('0xd8')](_0x581621)),this[_0xb294('0x62')]['set'](_0x151987,this[_0xb294('0xd8')](_0x581621,_0x3106f1));}this[_0xb294('0x7e')]=this[_0xb294('0x0')],this[_0xb294('0xc2')][_0xb294('0x7f')]('$graveyard',q(this[_0xb294('0x76')]['get'](_0xb294('0xf7')))),_0x18d291&&this['_idsRoots'][_0xb294('0x7f')]('$graveyard',this[_0xb294('0xd8')](this[_0xb294('0x76')]['get']('$graveyard')));for(const [_0x311b32,_0x1a0e27]of _0xd53a4e){const _0x27bc88=this[_0xb294('0x76')][_0xb294('0x8e')](_0x1a0e27[_0xb294('0x43')]),_0x40e314=this[_0xb294('0xc2')][_0xb294('0x8e')](_0x1a0e27['rootName']),_0x34ad42=new _0x46fc21(this[_0xb294('0x44')](_0x1a0e27[_0xb294('0xe8')],_0x27bc88),this[_0xb294('0x44')](_0x1a0e27['end'],_0x27bc88)),_0x595b34=this['_fixRange'](_0x34ad42,_0x40e314);_0x27bc88['markers'][_0xb294('0x7f')](_0x311b32,_0x34ad42),this[_0xb294('0xab')][_0xb294('0x7f')](_0x311b32,_0x595b34);}this['_applyOperations'](_0x35418e,_0x475fdf,_0x18d291);}['_applyOperations'](_0x917f3,_0x309805,_0xfd4405){for(const _0x4d8377 of this[_0xb294('0x14')][_0xb294('0x12')](_0x917f3,_0x309805))this[_0xb294('0x8b')](_0x4d8377,_0xfd4405);for(const _0x5b6514 of this[_0xb294('0xc2')][_0xb294('0x53')]())_0x5b6514[_0xb294('0x5e')][_0xb294('0xf0')]();for(const [_0x2f217e,_0x50b5e5]of this[_0xb294('0xab')]){this[_0xb294('0xc2')]['get'](_0x50b5e5[_0xb294('0xb1')][_0xb294('0x43')])[_0xb294('0x5e')][_0xb294('0x7f')](_0x2f217e,_0x50b5e5[_0xb294('0xe3')]());}const _0x270b3e=new Map(),_0xc347f5=new Map();for(const [_0x34bbce,_0x2ae156]of this['_diffRoots'])_0x270b3e['set'](_0x34bbce,q(_0x2ae156)),_0xc347f5[_0xb294('0x7f')](_0x34bbce,this['_diffRootsAttributes'][_0xb294('0x8e')](_0x34bbce));this['_saveMetaData'](_0x309805,_0x270b3e,this[_0xb294('0xab')],_0xc347f5);}[_0xb294('0xfc')](_0x2cbd33){const _0x18befa=Array[_0xb294('0x9c')](this[_0xb294('0x25')]['keys']());_0x18befa[_0xb294('0x109')]((_0x444042,_0x2fdec6)=>_0x444042-_0x2fdec6),_0x18befa[_0xb294('0xd0')]();for(const _0x10e536 of _0x18befa)if(_0x10e536<_0x2cbd33)return _0x10e536;return Number[_0xb294('0x102')];}[_0xb294('0x104')](_0x5b07b6,_0xc90b48){const _0x40c34b=Array['from'](_0xc90b48[_0xb294('0x5e')])['map'](([_0xc7ee46,_0x527a9b])=>[_0xc7ee46,this[_0xb294('0x28')](_0x527a9b,_0x5b07b6)]);_0x5b07b6[_0xb294('0x5e')]=new Map(_0x40c34b);}[_0xb294('0x20')](_0x243b66){for(const _0x3b8edd of this[_0xb294('0xab')][_0xb294('0x53')]()){const _0x211f46=_0x3b8edd[_0xb294('0x54')](_0x243b66),_0x1152b0=_0x46fc21['_createFromRanges'](_0x211f46);_0x3b8edd[_0xb294('0xe8')]=_0x1152b0['start'],_0x3b8edd[_0xb294('0x4b')]=_0x1152b0[_0xb294('0x4b')];}}['_handleOperation'](_0x5cbb89,_0x411038){if(_0xb294('0x31')==_0x5cbb89[_0xb294('0x49')]||_0xb294('0x35')==_0x5cbb89[_0xb294('0x49')])return void this[_0xb294('0xe4')](_0x5cbb89,_0x411038);if(_0xb294('0xd5')==_0x5cbb89[_0xb294('0x49')]){const _0x1fd6a4=_0x5cbb89[_0xb294('0xaf')][_0xb294('0xb1')][_0xb294('0x43')];this[_0xb294('0xc2')]['has'](_0x1fd6a4)||(this[_0xb294('0xc2')][_0xb294('0x7f')](_0x1fd6a4,G(_0x1fd6a4,!0x0)),this[_0xb294('0xef')][_0xb294('0x7f')](_0x1fd6a4,{}),_0x411038&&this[_0xb294('0x85')][_0xb294('0x7f')](_0x1fd6a4,G(_0x1fd6a4,!0x0)));}else{if(_0xb294('0xb5')==_0x5cbb89['type']||'removeRootAttribute'==_0x5cbb89[_0xb294('0x49')]||_0xb294('0x101')==_0x5cbb89[_0xb294('0x49')])return void this[_0xb294('0xd3')](_0x5cbb89);}const _0x51ecaa=this[_0xb294('0x55')](_0x5cbb89,this[_0xb294('0xc2')]);if(_0xb294('0x1b')!==_0x5cbb89[_0xb294('0x49')]&&(_0x51ecaa[_0xb294('0xe2')](),this[_0xb294('0x20')](_0x51ecaa)),_0x411038)switch(_0x51ecaa[_0xb294('0x49')]){case'insert':this[_0xb294('0x4')](_0x5cbb89);break;case _0xb294('0xa5'):case _0xb294('0x19'):case _0xb294('0x2d'):this[_0xb294('0x40')](_0x5cbb89);break;case'merge':this[_0xb294('0xdc')](_0x5cbb89);break;case _0xb294('0xa0'):this[_0xb294('0x60')](_0x5cbb89);break;case _0xb294('0x1b'):this[_0xb294('0x72')](_0x5cbb89);}}[_0xb294('0x55')](_0x297abd,_0x2b9df7){const _0x5379d3=_0x297abd[_0xb294('0xe3')]();return _0x5379d3[_0xb294('0xb7')]=_0x297abd['_authorId'],this['_fixOperation'](_0x5379d3,_0x2b9df7),_0x5379d3;}['_getBaseVids'](_0x315a1f){return _0x315a1f[_0xb294('0xb0')](_0x552e6f=>{const _0xf435e2=this[_0xb294('0xf2')](_0x552e6f);return Number(_0x552e6f[_0xb294('0x67')][_0xb294('0x24')](_0xf435e2));});}[_0xb294('0x69')](_0x475e00,_0x28b534){if(_0x475e00['is'](_0xb294('0x75'),'$text'))_0x28b534['push']({'item':_0x475e00,'type':_0xb294('0xce')});else{_0x475e00['is'](_0xb294('0x75'))&&_0x28b534[_0xb294('0x93')]({'item':_0x475e00,'type':_0xb294('0x71')});for(const _0x49dd59 of _0x475e00['getChildren']())this[_0xb294('0x69')](_0x49dd59,_0x28b534);_0x475e00['is']('element')&&_0x28b534[_0xb294('0x93')]({'item':_0x475e00,'type':_0xb294('0x6a')});}return _0x28b534;}['_getState'](){const _0x558d00=new Map(this[_0xb294('0x42')]),_0x27f957=new Map(_0x558d00),_0x591bee=new Map(),_0x13b73d={'insertions':{},'deletions':{}},_0x3957d5={'insertions':{},'deletions':{}},_0x2ec10f=new Map(),_0x489c70=new Set([...this[_0xb294('0x76')][_0xb294('0x108')](),...this[_0xb294('0xc2')]['keys']()]);_0x489c70[_0xb294('0x57')]('$graveyard');for(const _0x25dcc9 of _0x489c70){const _0x3560d3=this[_0xb294('0xc2')][_0xb294('0x8e')](_0x25dcc9)||G(_0x25dcc9,!0x1),_0x264982=this[_0xb294('0x76')][_0xb294('0x8e')](_0x25dcc9)||G(_0x25dcc9,!0x1);_0x3560d3['isAttached']()||_0x264982['isAttached']()?(_0x13b73d['insertions'][_0x25dcc9]=q(_0x3560d3),_0x13b73d['deletions'][_0x25dcc9]=q(_0x264982),this[_0xb294('0x104')](_0x13b73d[_0xb294('0x15')][_0x25dcc9],_0x264982),this[_0xb294('0x104')](_0x13b73d[_0xb294('0x81')][_0x25dcc9],_0x3560d3),_0x3957d5[_0xb294('0x81')][_0x25dcc9]=this[_0xb294('0x69')](this[_0xb294('0x85')][_0xb294('0x8e')](_0x25dcc9),[]),_0x3957d5[_0xb294('0x15')][_0x25dcc9]=this[_0xb294('0x69')](this[_0xb294('0x62')][_0xb294('0x8e')](_0x25dcc9)||G(_0x25dcc9,!0x1),[])):_0x489c70[_0xb294('0x57')](_0x25dcc9);}for(const _0x29a43e of _0x489c70){const _0x26e054=_0x3957d5[_0xb294('0x81')][_0x29a43e];for(const _0x29843a of _0x26e054){const _0xc17da4=this[_0xb294('0xf2')](_0x29843a),_0x32b7e7=_0x29843a[_0xb294('0x67')][_0xb294('0x24')](_0xc17da4);_0x27f957[_0xb294('0x57')](_0x32b7e7),_0x32b7e7>=this['_startingRevisionId']&&_0x591bee[_0xb294('0x7f')](_0x32b7e7,_0x558d00[_0xb294('0x8e')](_0x32b7e7));}}for(const _0xdc62cb of _0x489c70){const _0x526910=_0x3957d5[_0xb294('0x81')][_0xdc62cb],_0x4b0352=this[_0xb294('0xf4')](_0x3957d5[_0xb294('0x15')][_0xdc62cb]);let _0x4ee12b=0x0;for(const _0x23bfac of _0x526910){const _0x48a95f=this[_0xb294('0xf2')](_0x23bfac),_0x19aa84=_0x23bfac[_0xb294('0x67')][_0xb294('0x24')](_0x48a95f);if(!_0x591bee['has'](_0x19aa84)&&!_0x2ec10f[_0xb294('0x3f')](_0x19aa84)){if(_0x27f957[_0xb294('0x3f')](_0x19aa84))_0x4ee12b++;else{if(_0x19aa84!=_0x4b0352[_0x4ee12b]){const _0x2a68c2=_0x558d00['get'](_0x19aa84)||_0x558d00[_0xb294('0x8e')](_0x4b0352[_0x4ee12b]);for(;_0x19aa84!=_0x4b0352[_0x4ee12b];)_0x27f957[_0xb294('0x3f')](_0x4b0352[_0x4ee12b])||(_0x2ec10f[_0xb294('0x7f')](_0x4b0352[_0x4ee12b],_0x2a68c2),_0x558d00[_0xb294('0x7f')](_0x4b0352[_0x4ee12b],_0x2a68c2)),_0x4ee12b++;}_0x4ee12b++;}}}}for(const _0x54058f of _0x489c70){const _0x248281=_0x3957d5['insertions'][_0x54058f];for(const _0x31bbf5 of _0x248281){const _0x2d173d=this[_0xb294('0xf2')](_0x31bbf5),_0x1eb47e=_0x31bbf5[_0xb294('0x67')][_0xb294('0x24')](_0x2d173d);if(_0x2ec10f[_0xb294('0x3f')](_0x1eb47e)){const _0x4f34e5=_0x2ec10f[_0xb294('0x8e')](_0x1eb47e);_0x27f957[_0xb294('0x3f')](_0x1eb47e)||_0x27f957[_0xb294('0x7f')](_0x1eb47e,{..._0x4f34e5}),_0x591bee[_0xb294('0x7f')](_0x1eb47e,{..._0x4f34e5});}}}for(const _0x297e72 of _0x27f957['keys']())_0x297e72>=this[_0xb294('0x7e')]&&_0x27f957['delete'](_0x297e72);const _0x1051d0=new Map();for(const _0x308142 of _0x489c70){let _0x2e84b0=_0x3957d5['insertions'][_0x308142];for(const _0x1876cf of _0x2e84b0)if(_0x1876cf[_0xb294('0x67')]['is'](_0xb294('0x75'),'tableCell')){const _0x59e838=this['_getVidAttributeName'](_0x1876cf),_0x310303=_0x1876cf['item'][_0xb294('0x24')](_0x59e838);if(_0x591bee[_0xb294('0x3f')](_0x310303)){const _0x20c643=_0x1876cf[_0xb294('0x67')][_0xb294('0x3b')][_0xb294('0x3b')][_0xb294('0x24')](_0xb294('0xd')),_0x318b4b=_0x1051d0[_0xb294('0x8e')](_0x20c643)||new Set();_0x318b4b[_0xb294('0x26')](_0x591bee[_0xb294('0x8e')](_0x310303)[_0xb294('0xae')]),_0x1051d0['set'](_0x20c643,_0x318b4b);}}_0x2e84b0=_0x3957d5[_0xb294('0x15')][_0x308142];for(const _0x4e3cfc of _0x2e84b0)if(_0x4e3cfc['item']['is'](_0xb294('0x75'),'tableCell')){const _0x18ccb8=this[_0xb294('0xf2')](_0x4e3cfc),_0x54ac22=_0x4e3cfc[_0xb294('0x67')][_0xb294('0x24')](_0x18ccb8);if(_0x27f957[_0xb294('0x3f')](_0x54ac22)){const _0x220d1c=_0x4e3cfc[_0xb294('0x67')][_0xb294('0x3b')]['parent'][_0xb294('0x24')]('vid_start'),_0x4aa045=_0x1051d0[_0xb294('0x8e')](_0x220d1c)||new Set();_0x4aa045[_0xb294('0x26')](_0x27f957[_0xb294('0x8e')](_0x54ac22)[_0xb294('0xae')]),_0x1051d0[_0xb294('0x7f')](_0x220d1c,_0x4aa045);}}for(const _0x3e17fb of _0x1051d0[_0xb294('0x108')]())(_0x591bee['has'](_0x3e17fb)||_0x27f957[_0xb294('0x3f')](_0x3e17fb))&&_0x1051d0[_0xb294('0x57')](_0x3e17fb);}for(const _0xb73bc8 of _0x489c70){const _0x48ab78=_0x3957d5[_0xb294('0x81')][_0xb73bc8];let _0x2fdc2b=null,_0x57afd8=null;for(const _0x34e3f4 of _0x48ab78){const _0x49c5d4=this['_getVidAttributeName'](_0x34e3f4),_0xed9fee=_0x34e3f4[_0xb294('0x67')][_0xb294('0x24')](_0x49c5d4),_0x1b46d4=_0x1051d0['get'](_0xed9fee);_0x1b46d4&&_0xb294('0x71')==_0x34e3f4[_0xb294('0x49')]&&(_0x2fdc2b=Array[_0xb294('0x9c')](_0x1b46d4)[0x0],_0x57afd8=_0x34e3f4[_0xb294('0x67')]['getAttribute'](_0xb294('0x1d'))),_0x2fdc2b&&(_0x27f957[_0xb294('0x7f')](_0xed9fee,{'userId':_0x2fdc2b}),_0x591bee['set'](_0xed9fee,{'userId':_0x2fdc2b})),_0xed9fee==_0x57afd8&&(_0x2fdc2b=null,_0x57afd8=null);}}const _0x42ba0d={},_0x52d659=new Set();for(const _0x412307 of _0x489c70){const _0x218390=_0x13b73d[_0xb294('0x15')][_0x412307],_0x2f13d9=_0x13b73d['insertions'][_0x412307];for(const {userId:_0x390771}of this[_0xb294('0xf9')][_0xb294('0x53')]())null!==_0x390771&&_0x52d659['add'](_0x390771);for(const {userId:_0xc407c9}of this[_0xb294('0xec')][_0xb294('0x53')]())null!==_0xc407c9&&_0x52d659[_0xb294('0x26')](_0xc407c9);this[_0xb294('0x86')](_0x2f13d9,_0x3957d5[_0xb294('0x81')][_0x412307],_0x591bee,_0xb294('0xfe'),_0x52d659),this[_0xb294('0x86')](_0x218390,_0x3957d5[_0xb294('0x15')][_0x412307],_0x27f957,_0xb294('0x65'),_0x52d659),_0x42ba0d[_0x412307]={'insertions':this[_0xb294('0xf')](_0x2f13d9),'deletions':this[_0xb294('0xf')](_0x218390),'attachChange':this[_0xb294('0xec')][_0xb294('0x8e')](_0x412307)||null,'attributesBefore':_0x712917(this[_0xb294('0x7a')][_0xb294('0x8e')](_0x412307))||{},'attributesAfter':_0x712917(this[_0xb294('0xef')]['get'](_0x412307))};}return{'diffData':_0x42ba0d,'authorsIds':Array[_0xb294('0x9c')](_0x52d659)};}['_processRootBeforeSave'](_0x10c13c){for(const [,_0xb829d9]of _0x10c13c[_0xb294('0x5e')]){const _0x23e5be=_0xb829d9[_0xb294('0xe8')]['getAncestors']()[_0xb294('0xe9')](_0x2c8e98=>'tableCell'==_0x2c8e98['name']);for(const _0x2fb160 of _0x23e5be)0x1==_0x2fb160['childCount']&&_0x2fb160[_0xb294('0xb3')](0x0)['is'](_0xb294('0x75'),_0xb294('0x30'))&&_0x2fb160['getChild'](0x0)[_0xb294('0x45')](_0xb294('0xa1'),!0x0);}}['_prepareViewToSave'](_0x560c47){this[_0xb294('0x2e')](_0x560c47);const _0xdd92b2=this['editor'][_0xb294('0xb9')][_0xb294('0x48')](_0x560c47,{}),_0x53ef29=Array[_0xb294('0x9c')](_0xdd92b2[_0xb294('0x82')]())['map'](_0x58c39a=>this[_0xb294('0x97')](_0x58c39a));return JSON[_0xb294('0xad')](_0x53ef29);}['_getViewJson'](_0xb2c856){if(_0xb2c856['is']('$text'))return _0xb2c856['data'];{const _0x5c3c81=_0xb2c856;return{'type':Object[_0xb294('0x108')](B)['find'](_0x25ebb7=>_0xb2c856 instanceof B[_0x25ebb7]),'name':_0x5c3c81[_0xb294('0xbb')],'attributes':Array[_0xb294('0x9c')](_0x5c3c81['getAttributes']()),'children':Array[_0xb294('0x9c')](_0x5c3c81[_0xb294('0x82')]())[_0xb294('0xb0')](_0x28a218=>this[_0xb294('0x97')](_0x28a218))};}}[_0xb294('0x86')](_0x17be29,_0x1c97eb,_0x5decf5,_0x3404a2,_0xdcf2df){let _0x5ad6a2=null,_0x4fef26=null,_0x56c3d8=0x0;const _0x5b2c3f=this[_0xb294('0x51')][_0xb294('0x88')];for(let _0x3f2df5=0x0;_0x3f2df5<_0x1c97eb[_0xb294('0x6b')];_0x3f2df5++){const _0x2bc5cc=this[_0xb294('0xf2')](_0x1c97eb[_0x3f2df5]),_0x3ec51b=_0x1c97eb[_0x3f2df5][_0xb294('0x67')][_0xb294('0x24')](_0x2bc5cc),_0x261ad9=_0x5decf5[_0xb294('0x8e')](_0x3ec51b),_0x1e00d4=_0x3f2df5==_0x1c97eb['length']-0x1;(!_0x5ad6a2&&_0x261ad9&&(_0x5ad6a2=_0x261ad9,_0x4fef26=_0x1c97eb[_0x3f2df5]),_0x5ad6a2&&(!_0x261ad9||_0x261ad9['userId']!=_0x5ad6a2['userId']))&&(_0x49deb3(_0x261ad9,L(_0x4fef26,_0x17be29,_0x5b2c3f),L(_0x1c97eb[_0x3f2df5],_0x17be29,_0x5b2c3f)),_0x5ad6a2=_0x261ad9||null,_0x4fef26=_0x261ad9?_0x1c97eb[_0x3f2df5]:null),_0x5ad6a2&&_0x1e00d4&&_0x49deb3(_0x261ad9,L(_0x4fef26,_0x17be29,_0x5b2c3f),W(_0x1c97eb[_0x3f2df5],_0x17be29,_0x5b2c3f));}function _0x49deb3(_0x47483c,_0x964449,_0x27b961){const _0xb8ed03=_0x5ad6a2[_0xb294('0xae')],_0x40bac5=_0xb294('0x90')+_0x3404a2+':'+_0xb8ed03+':'+_0x56c3d8++,_0x13b0de=_0x5b2c3f[_0xb294('0x8a')](_0x964449,_0x27b961);_0x17be29['markers'][_0xb294('0x7f')](_0x40bac5,_0x13b0de),null!==_0xb8ed03&&_0xdcf2df[_0xb294('0x26')](_0xb8ed03);}}[_0xb294('0xf2')](_0x23a0c){switch(_0x23a0c[_0xb294('0x49')]){case _0xb294('0x71'):return _0xb294('0xd');case'elementEnd':return'vid_end';default:return _0xb294('0xc7');}}[_0xb294('0xd4')](_0x8f3fab,_0x415ca7){_0x8f3fab[_0xb294('0xf1')]=null;for(const _0x10e783 in _0x8f3fab){const _0x53d56d=_0x8f3fab[_0x10e783];if(_0x53d56d instanceof _0x107561){const _0x311bc3=_0x415ca7['get'](_0x53d56d['root'][_0xb294('0x43')]);_0x8f3fab[_0x10e783]=this[_0xb294('0x44')](_0x53d56d,_0x311bc3);}if(_0x53d56d instanceof _0x46fc21){const _0x39a5b5=_0x415ca7['get'](_0x53d56d[_0xb294('0xb1')][_0xb294('0x43')]);_0x8f3fab[_0x10e783]=this['_fixRange'](_0x53d56d,_0x39a5b5);}'root'===_0x10e783&&(_0x8f3fab[_0xb294('0xb1')]=_0x415ca7[_0xb294('0x8e')](_0x8f3fab[_0xb294('0xb1')][_0xb294('0x43')]));}}[_0xb294('0x28')](_0x33f6f5,_0x8f6602){return this[_0xb294('0x51')][_0xb294('0x88')][_0xb294('0x8a')](this[_0xb294('0x44')](_0x33f6f5[_0xb294('0xe8')],_0x8f6602),this[_0xb294('0x44')](_0x33f6f5['end'],_0x8f6602));}[_0xb294('0x44')](_0x4d7048,_0x1fd3dc){return this[_0xb294('0x51')][_0xb294('0x88')][_0xb294('0xa9')](_0x1fd3dc,_0x4d7048[_0xb294('0x4c')],_0x4d7048[_0xb294('0x2f')]);}['_handleInsertOperation'](_0x555307){const _0x307fb0=this['_idsRoots'][_0xb294('0x8e')](_0x555307['position']['root'][_0xb294('0x43')]),_0x2a177b=this[_0xb294('0x44')](_0x555307[_0xb294('0xaf')],_0x307fb0),_0x3afffc=null===_0x555307['_authorId']?null:_0x555307[_0xb294('0xb7')]||this[_0xb294('0x51')][_0xb294('0x91')][_0xb294('0x8e')](_0xb294('0x1e'))['me']['id'],_0x378261=_0x2a177b[_0xb294('0x3b')],_0x25519e=this[_0xb294('0x0')],_0x567a05=[];for(const _0x5d7ac4 of _0x555307[_0xb294('0x50')])if(_0x5d7ac4['is']('element'))_0x567a05[_0xb294('0x93')](this['_makeIdsRoot'](_0x5d7ac4));else for(let _0x93734e=0x0;_0x93734e<_0x5d7ac4[_0xb294('0xe6')];_0x93734e++)_0x567a05['push'](new _0x1c3e05(_0xb294('0xe7'),{'vid':this[_0xb294('0x0')]++}));const _0x1fb16d=this[_0xb294('0x0')];for(let _0x12c3d6=_0x25519e;_0x12c3d6<_0x1fb16d;_0x12c3d6++)this[_0xb294('0x42')][_0xb294('0x7f')](_0x12c3d6,{'userId':_0x3afffc});_0x378261[_0xb294('0xcd')](_0x2a177b['offset'],_0x567a05);}[_0xb294('0x40')](_0x41f858){(_0x41f858=this[_0xb294('0x55')](_0x41f858,this[_0xb294('0x85')]))[_0xb294('0xe2')]();const _0x103aa0=null===_0x41f858[_0xb294('0xb7')]?null:_0x41f858[_0xb294('0xb7')]||this['editor'][_0xb294('0x91')]['get'](_0xb294('0x1e'))['me']['id'],_0xae63d5=_0x41f858[_0xb294('0xdf')](),_0x2e862c=_0xae63d5[_0xb294('0x3b')],_0x34062d=_0xae63d5[_0xb294('0xc8')];!function _0x18afdb(_0xf87eb8,_0x3ad4a3,_0x550652,_0x3cd101){for(let _0x4f8acf=_0x550652;_0x4f8acf<_0x3cd101;_0x4f8acf++){const _0x4a3664=_0x3ad4a3[_0xb294('0xb3')](_0x4f8acf);_0x4a3664['is'](_0xb294('0x75'),_0xb294('0xe7'))?_0xf87eb8[_0xb294('0x7f')](_0x4a3664['getAttribute'](_0xb294('0xc7')),{'userId':_0x103aa0}):(_0xf87eb8[_0xb294('0x7f')](_0x4a3664[_0xb294('0x24')](_0xb294('0xd')),{'userId':_0x103aa0}),_0x18afdb(_0xf87eb8,_0x4a3664,0x0,_0x4a3664[_0xb294('0x46')]),_0xf87eb8['set'](_0x4a3664[_0xb294('0x24')](_0xb294('0x1d')),{'userId':_0x103aa0}));}}(this[_0xb294('0x42')],_0x2e862c,_0x34062d,_0x34062d+_0x41f858[_0xb294('0xd9')]);}['_handleMergeOperation'](_0x355038){const _0x2f1bae=null===(_0x355038=this[_0xb294('0x55')](_0x355038,this['_idsRoots']))[_0xb294('0xb7')]?null:_0x355038[_0xb294('0xb7')]||this['editor']['plugins'][_0xb294('0x8e')](_0xb294('0x1e'))['me']['id'],_0x17c507=_0x355038[_0xb294('0xbd')]['parent'],_0x533938=_0x355038[_0xb294('0x3a')][_0xb294('0x3b')],_0x2b5e6a=_0x17c507[_0xb294('0x24')](_0xb294('0x1d')),_0x5e75eb=_0x533938[_0xb294('0x24')](_0xb294('0xd'));_0x17c507[_0xb294('0x45')]('vid_end',_0x533938[_0xb294('0x24')](_0xb294('0x1d'))),_0x533938[_0xb294('0x45')](_0xb294('0x1d'),_0x2b5e6a),this[_0xb294('0x42')][_0xb294('0x7f')](_0x5e75eb,{'userId':_0x2f1bae}),this['_touched']['set'](_0x2b5e6a,{'userId':_0x2f1bae}),_0x355038[_0xb294('0xe2')]();}['_handleSplitOperation'](_0x40d184){const _0x534305=null===(_0x40d184=this['_cloneOperation'](_0x40d184,this[_0xb294('0x85')]))['_authorId']?null:_0x40d184[_0xb294('0xb7')]||this[_0xb294('0x51')]['plugins'][_0xb294('0x8e')]('Users')['me']['id'],_0x16b97a=_0x40d184[_0xb294('0x18')],_0x1d27d1=_0x40d184[_0xb294('0xa')][_0xb294('0x3b')];_0x40d184['_execute']();const _0x20ce96=_0x1d27d1['getAttribute'](_0xb294('0x1d')),_0x156d95=_0x40d184[_0xb294('0x100')][_0xb294('0xaa')];if(_0x16b97a){const _0x1e2a48=_0x156d95[_0xb294('0x24')](_0xb294('0x1d')),_0x9bc875=_0x1d27d1[_0xb294('0x24')](_0xb294('0x1d'));_0x1d27d1[_0xb294('0x45')](_0xb294('0x1d'),_0x1e2a48),_0x156d95[_0xb294('0x45')]('vid_end',_0x9bc875),this[_0xb294('0x42')]['set'](_0x1d27d1[_0xb294('0x24')](_0xb294('0x1d')),{'userId':_0x534305}),this[_0xb294('0x42')][_0xb294('0x7f')](_0x156d95['getAttribute']('vid_start'),{'userId':_0x534305});}else{const _0x2beed7=this['_revisionId']++,_0x5dd80e=this[_0xb294('0x0')]++;_0x1d27d1['_setAttribute'](_0xb294('0x1d'),_0x2beed7),_0x156d95[_0xb294('0x45')](_0xb294('0xd'),_0x5dd80e),_0x156d95[_0xb294('0x45')](_0xb294('0x1d'),_0x20ce96),this[_0xb294('0x42')][_0xb294('0x7f')](_0x2beed7,{'userId':_0x534305}),this[_0xb294('0x42')][_0xb294('0x7f')](_0x5dd80e,{'userId':_0x534305});}}[_0xb294('0x72')](_0x2d5134){if(!_0x2d5134[_0xb294('0x17')])return;const _0x138a72=(_0x2d5134=this[_0xb294('0x55')](_0x2d5134,this[_0xb294('0xc2')]))[_0xb294('0xb2')]?_0x2d5134[_0xb294('0xb2')]['root']:null,_0x5e9c66=_0x2d5134[_0xb294('0x29')]?_0x2d5134[_0xb294('0x29')][_0xb294('0xb1')]:null;_0x138a72&&this[_0xb294('0xab')][_0xb294('0x57')](_0x2d5134[_0xb294('0xbb')]),_0x5e9c66&&this['_markers'][_0xb294('0x7f')](_0x2d5134[_0xb294('0xbb')],_0x2d5134[_0xb294('0x29')][_0xb294('0xe3')]());const _0x5a2a3e=null===_0x2d5134[_0xb294('0xb7')]?null:_0x2d5134[_0xb294('0xb7')]||this[_0xb294('0x51')][_0xb294('0x91')]['get'](_0xb294('0x1e'))['me']['id'],_0x390019=_0x2d5134[_0xb294('0xbb')];if(!this[_0xb294('0xf9')][_0xb294('0x3f')](_0x390019))return void this[_0xb294('0xf9')][_0xb294('0x7f')](_0x390019,{'range':_0x2d5134[_0xb294('0xb2')],'userId':_0x5a2a3e});const _0x4a08f4=this[_0xb294('0xf9')]['get'](_0x390019),_0x35ee05=_0x4a08f4[_0xb294('0x96')],_0x5c24a2=_0x2d5134['newRange'];null==_0x35ee05&&null==_0x5c24a2||_0x35ee05&&_0x5c24a2&&_0x35ee05[_0xb294('0xbe')](_0x5c24a2)?this[_0xb294('0xf9')]['delete'](_0x2d5134[_0xb294('0xbb')]):_0x4a08f4[_0xb294('0xae')]=_0x5a2a3e;}[_0xb294('0xe4')](_0x2ddb07,_0x5e14a1){this['_diffRoots'][_0xb294('0x3f')](_0x2ddb07[_0xb294('0x43')])?this[_0xb294('0xc2')][_0xb294('0x8e')](_0x2ddb07['rootName'])['_isAttached']=_0x2ddb07[_0xb294('0x4a')]:(this[_0xb294('0xc2')]['set'](_0x2ddb07[_0xb294('0x43')],G(_0x2ddb07['rootName'],!0x0)),this[_0xb294('0xef')]['set'](_0x2ddb07[_0xb294('0x43')],{}),_0x5e14a1&&this[_0xb294('0x85')][_0xb294('0x7f')](_0x2ddb07[_0xb294('0x43')],G(_0x2ddb07['rootName'],!0x0)));const _0x29255f=null===_0x2ddb07[_0xb294('0xb7')]?null:_0x2ddb07['_authorId']||this['editor'][_0xb294('0x91')]['get'](_0xb294('0x1e'))['me']['id'],_0x1af689=this[_0xb294('0xec')][_0xb294('0x8e')](_0x2ddb07[_0xb294('0x43')]);_0x1af689&&_0x1af689[_0xb294('0xae')]===_0x29255f?this[_0xb294('0xec')]['delete'](_0x2ddb07[_0xb294('0x43')]):this['_touchedRoots'][_0xb294('0x7f')](_0x2ddb07[_0xb294('0x43')],{'userId':_0x29255f,'isAttached':_0x2ddb07[_0xb294('0x4a')]});}[_0xb294('0xd3')](_0x1c946e){const _0x111cd9=this['_diffRootsAttributes']['get'](_0x1c946e[_0xb294('0xb1')][_0xb294('0x43')]);null===_0x1c946e[_0xb294('0x66')]?delete _0x111cd9[_0x1c946e[_0xb294('0x7')]]:_0x111cd9[_0x1c946e[_0xb294('0x7')]]=_0x1c946e['newValue'];}}function q(_0x153130){const _0x572c82=G(_0x153130[_0xb294('0x43')],_0x153130[_0xb294('0xbc')]());for(const _0x4ec2ef of _0x153130[_0xb294('0x82')]()){const _0x5db42e=_0x4ec2ef['_clone'](!0x0);_0x572c82[_0xb294('0xfa')](_0x5db42e);}return _0x572c82;}function G(_0x244c14,_0x184a39=!0x0){const _0x46a4a6=new _0x14a268();return _0x46a4a6[_0xb294('0x43')]=_0x244c14,_0x46a4a6['_isAttached']=_0x184a39,_0x46a4a6[_0xb294('0xbc')]=()=>_0x46a4a6['_isAttached'],_0x46a4a6;}function L(_0x39ef6a,_0x2309d0,_0x16bd0e){const _0x19936b='elementEnd'==_0x39ef6a[_0xb294('0x49')]?_0x16bd0e[_0xb294('0x2b')](_0x39ef6a['item'],_0xb294('0x4b')):_0x16bd0e['createPositionBefore'](_0x39ef6a[_0xb294('0x67')]);return _0x16bd0e['createPositionFromPath'](_0x2309d0,_0x19936b[_0xb294('0x4c')],_0x19936b[_0xb294('0x2f')]);}function W(_0x2cd472,_0x15f038,_0xa8f6f5){const _0x2e1f14='elementStart'==_0x2cd472[_0xb294('0x49')]?_0xa8f6f5[_0xb294('0x2b')](_0x2cd472[_0xb294('0x67')],0x0):_0xa8f6f5[_0xb294('0xba')](_0x2cd472['item']);return _0xa8f6f5[_0xb294('0xa9')](_0x15f038,_0x2e1f14[_0xb294('0x4c')],_0x2e1f14[_0xb294('0x2f')]);}