@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240129.0 → 0.0.0-nightly-20240131.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 _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')]);}
23
+ const _0x2f25=['config','_processRootBeforeSave','model','nodeAfter','_generateTape','_touchedRoots','deletion','ready','for','elementEnd','length','_setAttribute','path','_getPreviousFrom','document','_authorId','isEqual','$text','baseVersion','addRootAttribute','_baseRootsAttributes','getMovedRangeStart','define','getRange','_update','previousPosition','version','get','requires','newValue','name','upcast','vid','getChildren','shift','insertions','pluginName','stringify','marker','from','_removeRevisionMarkers','delete','_markers','howMany','update','_handleRootAttributeOperation','_pendingAction','root','newRange','_handleOperation','parent','getCurrentRevisionId','_setConversion','trim','PENDING_ACTION_REVISION_HISTORY','has','NEGATIVE_INFINITY','finally','RealTimeCollaborationClient','getNodeByPath','getRevisionDocumentData','_findInsertionIndex','_operations','_handleMergeOperation','dataToMarker','getAttribute','history','setRevisionData','getRevision','getAncestors','updateRevisions','move','_baseIdsRoots','remove','addRoot','position','userId','_insertChild','loadState','editing','_startingRevisionId','revisionHistory.resumeUnsavedRevision','offset','adapter','attributesBefore','_bufferedUpdates','_getFromVersion','_savedMetaData','_getState','find','init','parse','editor','_execute','add','_source','toData','saveRevision','key','_lastTo','createRangeIn','tableCell','_transformMarkers','_handleRootOperation','_fixRange','affectsData','some','getData','RevisionTracker','_cloneOperation','filter','conversion','nodes','_isPendingUpdate','_makeModelFromViewString','isAttached','_startingVersion','clone','_loadState','plugins','createdAt','PendingActions','_getBaseVids','_diffRootsAttributes','_baseRoots','split','_createInitialRevision','elementStart','source','addRevisionData','_continueCurrentRevision','data-revision-','createRange','getLatestVersion','attachChange','slice','_createCurrentRevision','getUser','_handleSplitOperation','attributes','createRevision','deletions','revision-end','vid_start','_initialRevisionId','size','isEnabled','keepParagraph','$graveyard','fromVersion','clear','element','range','_revisionId','_saveMetaData','_clone','keys','view','toVersion','bind','_calculateMetaData','creator','set','startsWith','isReady','_loadedStateData','vid_end','then','merge','_makeRevision','processor','buildRevisionData','rootName','getAttributes','getRoot','max','_applyOperations','addRevision','resolve','createPositionFromPath','collaboration.channelId','initial','_loadRevisionData','_reset','RevisionsRepository','_isAttached','toView','rootsAttributes','_idsRoots','type','attributesAfter','end','childCount','roots','sendBufferedUpdates','hasContent','marked','removeRootAttribute','setSource','isAdd','string','children','Users','stickiness','fromEntries','push','graveyardPosition','documentFragment','_markChanges','markers','paragraph','_handleInsertOperation','_handleMoveOperation','getOperations','_bufferUpdate','createPositionAt','diffData','createPositionBefore','_touchedMarkers','_getVidAttributeName','revision:','_touched','item','start','reverse','data','_fixOperation','_appendChild','_makeIdsRoot','creatorId','_copyMarkers','authors','_removePendingAction','_prepareViewToSave','currentRevision','text','getWalker','includes','oldRange','_fixPosition','useFillerType','_lastFrom','createPositionAfter','insert','repository','offsetSize','initialData','_diffRoots','detachRoot','map','values','_revisionDataBuilder','_removeMetaData','dataDowncast','getChild','reInit','sourcePosition','authorsIds','getTransformedByOperation','_getViewJson'];(function(_0x29dd1e,_0x2f25f0){const _0x42335=function(_0x53cf2b){while(--_0x53cf2b){_0x29dd1e['push'](_0x29dd1e['shift']());}};_0x42335(++_0x2f25f0);}(_0x2f25,0x114));const _0x4233=function(_0x29dd1e,_0x2f25f0){_0x29dd1e=_0x29dd1e-0x0;let _0x42335=_0x2f25[_0x29dd1e];return _0x42335;};import{Users as _0x110352}from'ckeditor5-collaboration/src/collaboration-core.js';import{Plugin as _0x5beb56,PendingActions as _0x16fed9}from'ckeditor5/src/core.js';import{logWarning as _0x140905,uid as _0x1a562c}from'ckeditor5/src/utils.js';import{Position as _0x15b85a,Range as _0x346d9c,Element as _0x803ef4,DocumentFragment as _0x52d8b,ViewText as _0x5354fa,ViewElement as _0x46b10d,ViewContainerElement as _0x58f8c8,ViewAttributeElement as _0x55dd97,ViewEmptyElement as _0x24e1d1,ViewRawElement as _0x210509,ViewUIElement as _0x3bd765,ViewDocumentFragment as _0x660609}from'ckeditor5/src/engine.js';import _0x4fa119 from'./revisionsrepository.js';import{getTranslation as _0x53f580}from'./utils/common-translations.js';import{cloneDeep as _0x2df165,isEqual as _0x34d25e}from'lodash-es';const B={'c':_0x58f8c8,'a':_0x55dd97,'e':_0x24e1d1,'r':_0x210509,'u':_0x3bd765};export default class l extends _0x5beb56{static get[_0x4233('0x14')](){return _0x4233('0x5c');}static get[_0x4233('0xc')](){return[_0x110352,_0x4fa119,_0x16fed9];}constructor(_0x2f7346){super(_0x2f7346),this[_0x4233('0x43')]=null,this[_0x4233('0xda')]=null,this[_0x4233('0xeb')]=new H(this['editor']),this[_0x4233('0x80')]=this[_0x4233('0x4c')][_0x4233('0xf4')][_0x4233('0xb')](_0x4233('0xa4'))||_0x4233('0xa5'),this['_bufferedUpdates']=new Map(),this[_0x4233('0x95')]=null;const _0x1233c8=_0x1a562c();this[_0x4233('0x4f')]={'history':this[_0x4233('0x4c')][_0x4233('0xf6')]['document']['history'],'getLatestVersion':()=>Promise[_0x4233('0xa2')](this[_0x4233('0x4c')][_0x4233('0xf6')][_0x4233('0x102')]['version']),'getCurrentRevisionId':()=>_0x1233c8},this[_0x4233('0x92')](_0x4233('0x94'),!0x1),this[_0x4233('0x92')](_0x4233('0x82'),!0x0),this[_0x4233('0x92')](_0x4233('0x61'),!0x1),this['editor'][_0x4233('0xf4')][_0x4233('0x6')](_0x4233('0x41'),!0x0),this[_0x4233('0x4c')]['conversion'][_0x4233('0xfc')](_0x4233('0xf'))[_0x4233('0x30')]({'view':'revision'});}[_0x4233('0x4a')](){this[_0x4233('0xe4')]=this['editor']['plugins']['get'](_0x4233('0xa8')),this['_setConversion'](),this[_0x4233('0x4c')]['data']['on'](_0x4233('0xfb'),()=>{const _0x2dfed0=this['repository'][_0x4233('0x34')](0x0),_0x6516e2=_0x2dfed0&&null===_0x2dfed0['creator']?_0x2dfed0:null;if(this[_0x4233('0x72')]=!!_0x6516e2&&this[_0x4233('0x4c')][_0x4233('0xf4')]['get'](_0x4233('0x41')),this['editor'][_0x4233('0x67')]['has'](_0x4233('0x2a'))){const _0x58a61d=this[_0x4233('0x4f')][_0x4233('0x23')](),_0x4cbe41=this['repository'][_0x4233('0x34')](_0x58a61d);if(_0x4cbe41)this[_0x4233('0x64')]=_0x4cbe41[_0x4233('0x85')],this['_continueCurrentRevision']=!0x1;else{const _0x3ecf61=this[_0x4233('0x4f')]['history'][_0x4233('0x2e')][_0x4233('0x49')](_0x541817=>!_0x541817['_isInit']),_0x296d9e=_0x3ecf61?_0x3ecf61[_0x4233('0x2')]:this['_source']['history'][_0x4233('0xa')];_0x2dfed0?(_0x2dfed0['toVersion']<_0x296d9e&&_0x2dfed0[_0x4233('0x8')]({'toVersion':_0x296d9e}),this[_0x4233('0x72')]?(this[_0x4233('0x4f')][_0x4233('0x23')]=()=>_0x6516e2['id'],this[_0x4233('0x64')]=_0x6516e2[_0x4233('0x85')]):(this[_0x4233('0x64')]=_0x2dfed0[_0x4233('0x8e')],this[_0x4233('0x72')]=!0x1)):(this[_0x4233('0x64')]=_0x296d9e,this[_0x4233('0x72')]=!0x1);}}else _0x6516e2&&(this[_0x4233('0x4c')][_0x4233('0xf6')][_0x4233('0x102')]['history'][_0x4233('0xa')]=Math[_0x4233('0x9f')](_0x6516e2[_0x4233('0x8e')],this['editor'][_0x4233('0xf6')][_0x4233('0x102')]['history']['version']),_0x6516e2[_0x4233('0x85')]===_0x6516e2[_0x4233('0x8e')]?(0x0!==_0x6516e2['fromVersion']&&(this[_0x4233('0x4f')]['getCurrentRevisionId']=()=>_0x6516e2['id']),this['_continueCurrentRevision']=!0x1):this[_0x4233('0x72')]&&(this[_0x4233('0x4f')][_0x4233('0x23')]=()=>_0x6516e2['id'],this['_startingVersion']=_0x6516e2[_0x4233('0x85')])),this[_0x4233('0x72')]||(this[_0x4233('0x64')]=this['editor'][_0x4233('0xf6')][_0x4233('0x102')][_0x4233('0xa')]);this[_0x4233('0xeb')]['init'](this[_0x4233('0x4f')][_0x4233('0x32')]),this[_0x4233('0x6e')](this[_0x4233('0x64')]),this[_0x4233('0x78')](this[_0x4233('0x64')]),this[_0x4233('0x43')]&&this[_0x4233('0xb2')]();}),this[_0x4233('0x8f')](_0x4233('0x94'))['to'](this,_0x4233('0x61'),_0x58c204=>!_0x58c204);}async['afterInit'](){if(this[_0x4233('0xe4')]['length']>0x0){const _0x410fe9=this[_0x4233('0xe4')][_0x4233('0x34')](0x0),_0x1f4d5a=await this['getRevisionDocumentData'](_0x410fe9),_0x4fdcb4=await this['getRevisionRootsAttributes'](_0x410fe9);this['_replaceEditorDataWithRevisionData'](_0x1f4d5a,_0x4fdcb4);}}[_0x4233('0xb6')](_0x5bb4b7){this['_source']=_0x5bb4b7;}async[_0x4233('0x1c')](){const _0x10812c=await this[_0x4233('0x4f')][_0x4233('0x75')]();if(_0x10812c>this[_0x4233('0xda')]['toVersion']){await this['_loadState']();const _0x513613=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x10812c});_0x513613[_0x4233('0xd7')]=_0x513613[_0x4233('0xf1')][_0x4233('0xe9')](_0x3a1b0f=>this[_0x4233('0x4c')]['plugins']['get'](_0x4233('0xba'))[_0x4233('0x79')](_0x3a1b0f)),this[_0x4233('0xda')][_0x4233('0x8')](_0x513613);}}async[_0x4233('0x66')](){this[_0x4233('0x72')]&&!this[_0x4233('0x95')]&&(await this[_0x4233('0xa6')](this[_0x4233('0xda')]),this[_0x4233('0xeb')]['loadState'](this[_0x4233('0xda')]),this['_loadedStateData']={'fromVersion':this['currentRevision'][_0x4233('0x85')],'authors':this[_0x4233('0xda')][_0x4233('0xd7')][_0x4233('0x77')]()});}async[_0x4233('0x51')](_0x8b5d70={},_0x4f2f91=null){const _0x1206ed=[];await this[_0x4233('0x66')](),this[_0x4233('0x72')]=!0x1,_0x4f2f91>this['currentRevision'][_0x4233('0x8e')]&&(_0x4f2f91=null),null===_0x4f2f91&&(_0x4f2f91=await this[_0x4233('0x4f')][_0x4233('0x75')]());const _0x13a465=this[_0x4233('0x46')](_0x4f2f91),_0x2b7e02=this[_0x4233('0x9b')]({'from':_0x13a465,'to':_0x4f2f91});if(this['currentRevision'][_0x4233('0x8e')]<_0x4f2f91){const _0x4f42ee=this[_0x4233('0x9b')]({'revision':this[_0x4233('0xda')],'from':_0x4f2f91,'to':_0x4f2f91});_0x4f42ee[_0x4233('0xd7')]=[],_0x4f42ee[_0x4233('0xf1')]=[],_0x4f42ee['id']=this['currentRevision']['id'],this[_0x4233('0xda')]['_update'](_0x4f42ee,!0x0),delete _0x4f42ee[_0x4233('0xd7')],_0x1206ed['push'](_0x4f42ee);}_0x8b5d70[_0x4233('0xd5')]=this[_0x4233('0x4c')][_0x4233('0x67')][_0x4233('0xb')](_0x4233('0xba'))['me']['id'],_0x8b5d70[_0x4233('0xe')]=_0x8b5d70[_0x4233('0xe')]||null,_0x8b5d70['id']=_0x8b5d70['id']||_0x1a562c(),_0x8b5d70={..._0x8b5d70,..._0x2b7e02};const _0x5ad87a=this[_0x4233('0x71')](_0x8b5d70);_0x1206ed[_0x4233('0xbd')](_0x8b5d70);const _0x3f7ae9=this['repository']['getIndex'](_0x5ad87a);if(0x0!==_0x3f7ae9){const _0x328f02=this[_0x4233('0xe4')][_0x4233('0x34')](_0x3f7ae9-0x1);if(_0x328f02[_0x4233('0x85')]!==_0x4f2f91){const _0x4f8efb=this[_0x4233('0xeb')][_0x4233('0x5b')](_0x4f2f91,_0x328f02[_0x4233('0x8e')]),_0x707798={'id':_0x328f02['id'],'diffData':_0x4f8efb[_0x4233('0xc8')],'authorsIds':_0x4f8efb[_0x4233('0xf1')],'authors':_0x4f8efb[_0x4233('0xf1')][_0x4233('0xe9')](_0x4e84d9=>this[_0x4233('0x4c')][_0x4233('0x67')][_0x4233('0xb')](_0x4233('0xba'))[_0x4233('0x79')](_0x4e84d9)),'fromVersion':_0x4f2f91};_0x328f02===this[_0x4233('0xda')]&&(_0x707798[_0x4233('0x68')]=new Date(_0x8b5d70[_0x4233('0x68')]['getTime']()+0xa)),_0x328f02[_0x4233('0x8')](_0x707798,!0x0),delete _0x707798[_0x4233('0xd7')],_0x1206ed['push'](_0x707798);}}if(this[_0x4233('0x43')]){for(const _0x178c96 of _0x1206ed)this[_0x4233('0xc6')](_0x178c96['id'],_0x178c96,!0x0);this[_0x4233('0xb2')]();}return _0x5ad87a;}[_0x4233('0x71')](_0x206101){const _0x572ad1=this[_0x4233('0xe4')][_0x4233('0x7c')](_0x206101);return this[_0x4233('0x43')]&&_0x572ad1['on']('_update',(_0x52d8cd,_0x350d63,_0x1f29e6)=>{_0x1f29e6||(this['_bufferUpdate'](_0x350d63['id'],_0x350d63,!0x0),this[_0x4233('0xb2')]());}),this[_0x4233('0xe4')][_0x4233('0xa1')](_0x572ad1,this[_0x4233('0x2d')](_0x572ad1)),_0x572ad1;}async[_0x4233('0x2c')](_0x251368){await this[_0x4233('0xa6')](_0x251368);const _0x1c4915={};for(const _0x32597f in _0x251368['diffData']){if(_0x251368[_0x4233('0xc8')][_0x32597f][_0x4233('0x76')]&&!_0x251368[_0x4233('0xc8')][_0x32597f][_0x4233('0x76')]['isAttached'])continue;const _0x781875=this['_removeRevisionMarkers'](JSON['parse'](_0x251368[_0x4233('0xc8')][_0x32597f][_0x4233('0x13')])),_0x3d626c=this[_0x4233('0x4c')][_0x4233('0x3f')][_0x4233('0x8d')][_0x4233('0x102')],_0x37704b=new _0x660609(_0x3d626c,_0x781875['map'](_0xd9e0fb=>J(_0xd9e0fb,this[_0x4233('0x4c')])));this[_0x4233('0x4c')][_0x4233('0xd1')][_0x4233('0x9a')][_0x4233('0xe0')](_0x4233('0xb4')),_0x1c4915[_0x32597f]=this[_0x4233('0x4c')][_0x4233('0xd1')][_0x4233('0x9a')][_0x4233('0x50')](_0x37704b),this[_0x4233('0x4c')]['data'][_0x4233('0x9a')][_0x4233('0xe0')]('default');}return _0x1c4915;}async['getRevisionRootsAttributes'](_0x354092){await this[_0x4233('0xa6')](_0x354092);const _0x135eb7={};for(const _0x20a037 in _0x354092['diffData'])_0x354092['diffData'][_0x20a037][_0x4233('0x76')]&&!_0x354092[_0x4233('0xc8')][_0x20a037][_0x4233('0x76')][_0x4233('0x63')]||(_0x135eb7[_0x20a037]=_0x354092[_0x4233('0xc8')][_0x20a037]['attributesAfter']||{});return _0x135eb7;}['sendBufferedUpdates'](){if(0x0===this[_0x4233('0x45')][_0x4233('0x81')])return;if(this[_0x4233('0x61')])return;let _0x13635e=Array['from'](this['_bufferedUpdates'][_0x4233('0xea')]());this[_0x4233('0x45')][_0x4233('0x86')]();for(let _0x3b03e6=0x0;_0x3b03e6<_0x13635e[_0x4233('0xfe')];_0x3b03e6++){const _0x3f175b=_0x13635e[_0x3b03e6];let _0x2eb205=!0x1;for(const _0x400f94 of Object[_0x4233('0x8c')](_0x3f175b))void 0x0===_0x3f175b[_0x400f94]?delete _0x3f175b[_0x400f94]:'id'!==_0x400f94&&(_0x2eb205=!0x0);_0x2eb205||(_0x13635e[_0x3b03e6]=null);}if(_0x13635e=_0x13635e['filter'](_0x3f8a56=>null!==_0x3f8a56),!_0x13635e[_0x4233('0xfe')])return;for(let _0x3af09e=0x0;_0x3af09e<_0x13635e[_0x4233('0xfe')];_0x3af09e++){const _0xd5462a=_0x13635e[_0x3af09e];void 0x0!==_0xd5462a['fromVersion']&&void 0x0===_0xd5462a['toVersion']&&(_0xd5462a[_0x4233('0x8e')]=this[_0x4233('0xe4')][_0x4233('0x34')](_0xd5462a['id'])['toVersion']),void 0x0!==_0xd5462a[_0x4233('0x8e')]&&void 0x0===_0xd5462a[_0x4233('0x85')]&&(_0xd5462a[_0x4233('0x85')]=this[_0x4233('0xe4')]['getRevision'](_0xd5462a['id'])[_0x4233('0x85')]);}const _0xa76e87=this[_0x4233('0x4c')][_0x4233('0xf4')][_0x4233('0xb')](_0x4233('0xa4'));this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this[_0x4233('0x43')][_0x4233('0x36')](_0x13635e,_0xa76e87)[_0x4233('0x29')](()=>{this[_0x4233('0x61')]=!0x1;})[_0x4233('0x97')](_0x5d895a=>{if(_0x5d895a)for(const _0x2335ae of _0x5d895a)this[_0x4233('0x33')]({'id':_0x2335ae['id'],'createdAt':_0x2335ae['createdAt']});this[_0x4233('0xd8')](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x59125d,_0x4ad76a){let _0x38bd04=this[_0x4233('0x4c')]['config'][_0x4233('0xb')](_0x4233('0xe6')),_0x22126e=this['editor'][_0x4233('0xf4')][_0x4233('0xb')]('rootsAttributes');if(void 0x0===_0x38bd04){_0x38bd04={};for(const _0x66b4aa of this[_0x4233('0x4c')]['model']['document']['getRootNames']())_0x38bd04[_0x66b4aa]='';}if('string'==typeof _0x38bd04&&(_0x38bd04={'main':_0x38bd04}),void 0x0===_0x22126e){_0x22126e={};for(const _0x11f326 of this['editor']['model']['document']['getRootNames']())_0x22126e[_0x11f326]={};}let _0x3757eb=!0x1;const _0x5e5ac4=Object[_0x4233('0x8c')](_0x38bd04),_0xac8927=Object['keys'](_0x59125d);for(const _0x239f66 of _0x5e5ac4){if(_0x38bd04[_0x239f66]!==_0x59125d[_0x239f66]&&''!==_0x38bd04[_0x239f66][_0x4233('0x25')]()){_0x3757eb=!0x0;break;}if(!_0x34d25e(_0x22126e[_0x239f66],_0x4ad76a[_0x239f66])&&Object['keys'](_0x22126e[_0x239f66])[_0x4233('0xfe')]>0x0){_0x3757eb=!0x0;break;}}_0x3757eb||(_0x3757eb=_0xac8927[_0x4233('0x5a')](_0x29ce09=>!this[_0x4233('0x4c')][_0x4233('0xf6')][_0x4233('0x102')][_0x4233('0x9e')](_0x29ce09))),_0x3757eb&&_0x140905('editor-initial-data-replaced-with-revision-data',{'editorData':_0x38bd04,'editorRootsAttributes':_0x22126e,'revisionData':_0x59125d,'revisionRootsAttributes':_0x4ad76a}),this['editor'][_0x4233('0xf4')][_0x4233('0x92')](_0x4233('0xe6'),_0x59125d),this[_0x4233('0x4c')][_0x4233('0xf4')][_0x4233('0x92')](_0x4233('0xab'),_0x4ad76a);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5f1a99=this[_0x4233('0x4c')]['plugins'][_0x4233('0xb')](_0x4233('0x69'));this[_0x4233('0x1e')]=_0x5f1a99['add'](_0x53f580(this[_0x4233('0x4c')]['locale'],_0x4233('0x26')));}}['_removePendingAction'](){this[_0x4233('0x1e')]&&(this[_0x4233('0x4c')]['plugins'][_0x4233('0xb')](_0x4233('0x69'))['remove'](this[_0x4233('0x1e')]),this['_pendingAction']=null);}[_0x4233('0x2d')](_0x19756c){const _0x30a7f4=this[_0x4233('0xe4')]['getRevisions']();_0x30a7f4[_0x4233('0xd0')]();let _0x29f932=0x0;for(;_0x29f932<_0x30a7f4['length'];){const _0x33f640=_0x30a7f4[_0x29f932];if(_0x33f640===this[_0x4233('0xda')]){_0x29f932++;continue;}if(_0x33f640['id']===this[_0x4233('0x80')])break;const _0xc8a6b7=_0x19756c[_0x4233('0x8e')]-_0x33f640[_0x4233('0x8e')]||_0x19756c[_0x4233('0x85')]-_0x33f640[_0x4233('0x85')];if(_0xc8a6b7>0x0)break;if(_0xc8a6b7<0x0)_0x29f932++;else{if(!_0x19756c['creator']&&_0x33f640[_0x4233('0x91')])break;if(_0x33f640[_0x4233('0x91')]||!_0x19756c[_0x4233('0x91')]){if(_0x19756c[_0x4233('0x68')]>_0x33f640[_0x4233('0x68')])break;_0x29f932++;}else _0x29f932++;}}return _0x29f932;}[_0x4233('0x33')](_0x20c6fb){const _0xf7e132=this[_0x4233('0xe4')][_0x4233('0x34')](_0x20c6fb['id']);if(_0x20c6fb[_0x4233('0x68')]&&(_0x20c6fb['createdAt']=new Date(_0x20c6fb[_0x4233('0x68')])),_0x20c6fb['authorsIds']){const _0x4f3662=this[_0x4233('0x4c')][_0x4233('0x67')]['get']('Users');_0x20c6fb[_0x4233('0xd7')]=_0x20c6fb['authorsIds'][_0x4233('0xe9')](_0x2e6503=>_0x4f3662[_0x4233('0x79')](_0x2e6503));}_0xf7e132['_update'](_0x20c6fb,!0x0);}[_0x4233('0x9b')]({revision:_0x3da6c6=null,from:_0x4030a4=null,to:_0x398e96=null}){_0x4030a4=null!==_0x4030a4?_0x4030a4:_0x3da6c6[_0x4233('0x85')],_0x398e96=null!==_0x398e96?_0x398e96:_0x3da6c6['toVersion'];const _0x2a3bb6=this[_0x4233('0xeb')][_0x4233('0x5b')](_0x4030a4,_0x398e96),_0x1aaa36={'diffData':_0x2a3bb6['diffData'],'authorsIds':_0x2a3bb6['authorsIds'],'fromVersion':_0x4030a4,'toVersion':_0x398e96};if(!_0x3da6c6||_0x398e96!==_0x3da6c6[_0x4233('0x8e')]){const _0x34ade6=_0x398e96-0x1,_0x4a919d=this[_0x4233('0x4f')][_0x4233('0x32')]['getOperation'](_0x34ade6);_0x1aaa36[_0x4233('0x68')]=_0x4a919d&&_0x4a919d[_0x4233('0x68')]||new Date();}if(this[_0x4233('0x95')]&&_0x4030a4===this[_0x4233('0x95')][_0x4233('0x85')])for(const _0x3e6952 of this['_loadedStateData'][_0x4233('0xd7')])_0x1aaa36[_0x4233('0xf1')][_0x4233('0xdd')](_0x3e6952['id'])||_0x1aaa36[_0x4233('0xf1')][_0x4233('0xbd')](_0x3e6952['id']);return _0x1aaa36;}['_loadRevisionData'](_0x5dfa0b){if(!_0x5dfa0b||_0x5dfa0b[_0x4233('0xc8')])return Promise[_0x4233('0xa2')]();{const _0x3cbfe6=this[_0x4233('0x4c')][_0x4233('0xf4')][_0x4233('0xb')](_0x4233('0xa4'));return this[_0x4233('0x43')][_0x4233('0x34')]({'channelId':_0x3cbfe6,'revisionId':_0x5dfa0b['id']})[_0x4233('0x97')](_0x61827a=>{_0x5dfa0b[_0x4233('0xc8')]=_0x61827a[_0x4233('0xc8')];});}}[_0x4233('0xc6')](_0x4cc20a,_0x425e23,_0x3b394b){if(this['_bufferedUpdates'][_0x4233('0x27')](_0x4cc20a)){const _0xaf3083=this[_0x4233('0x45')][_0x4233('0xb')](_0x4cc20a);_0x425e23=_0x3b394b?{..._0xaf3083,..._0x425e23}:{..._0x425e23,..._0xaf3083};}this[_0x4233('0x45')][_0x4233('0x92')](_0x4cc20a,_0x425e23);}[_0x4233('0x46')](_0x3d35b2){const _0x5060c5=this['repository']['getRevisions']();_0x5060c5[_0x4233('0xd0')](),_0x5060c5[_0x4233('0x12')]();const _0x376198=_0x5060c5[_0x4233('0x49')](_0x4ad43a=>_0x4ad43a[_0x4233('0x8e')]<=_0x3d35b2)[_0x4233('0x8e')];return _0x376198<this[_0x4233('0x64')]?this['_startingVersion']:_0x376198;}[_0x4233('0x6e')](_0x314260){const _0x41d999=this[_0x4233('0xe4')]['getRevision'](this[_0x4233('0xe4')][_0x4233('0xfe')]-0x1);if(_0x41d999)this[_0x4233('0x80')]=_0x41d999['id'];else{const _0x1bff41=!this['editor']['model'][_0x4233('0x102')][_0x4233('0xb1')][_0x4233('0x49')](_0x1eaec8=>this[_0x4233('0x4c')]['model'][_0x4233('0xb3')](_0x1eaec8)),_0x2720c2=this[_0x4233('0x4c')][_0x4233('0x67')][_0x4233('0xb')]('Users')['me']['id'],_0x4f58b7=_0x53f580(this[_0x4233('0x4c')]['locale'],_0x1bff41?'Empty\x20document':'Initial\x20revision');this[_0x4233('0x99')]({'from':_0x314260,'to':_0x314260,'id':this[_0x4233('0x80')],'name':_0x4f58b7,'creatorId':_0x2720c2});}}[_0x4233('0x78')](_0x786795){const _0x3f0fdb=this[_0x4233('0x4f')][_0x4233('0x23')]();this['currentRevision']=this[_0x4233('0xe4')][_0x4233('0x34')](_0x3f0fdb),this[_0x4233('0xda')]||(this['currentRevision']=this[_0x4233('0x99')]({'from':_0x786795,'to':_0x786795,'id':_0x3f0fdb,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4d2a1e,from:_0x5092c3,to:_0x2decb8,creatorId:_0x335206,id:_0x395903}){const _0x81f1d6=this[_0x4233('0x9b')]({'from':_0x5092c3,'to':_0x2decb8});_0x81f1d6[_0x4233('0xe')]=_0x4d2a1e,_0x81f1d6['creatorId']=_0x335206,_0x81f1d6['id']=_0x395903;const _0x113467=this['addRevisionData'](_0x81f1d6);return this['adapter']&&this[_0x4233('0xc6')](_0x81f1d6['id'],_0x81f1d6,!0x0),_0x113467;}[_0x4233('0x24')](){this[_0x4233('0x4c')][_0x4233('0x5f')][_0x4233('0xfc')](_0x4233('0xed'))['markerToData']({'model':'revision'});}[_0x4233('0x18')](_0x1e7e49){return(_0x1e7e49=_0x1e7e49[_0x4233('0x5e')](_0x5cd100=>!_0x5cd100[_0x4233('0xe')]||'revision-start'!==_0x5cd100['name']&&_0x4233('0x7e')!==_0x5cd100[_0x4233('0xe')]))['forEach'](_0x2c8c60=>{_0x4233('0xb8')!=typeof _0x2c8c60&&(_0x2c8c60[_0x4233('0xb9')]=this[_0x4233('0x18')](_0x2c8c60[_0x4233('0xb9')]),_0x2c8c60[_0x4233('0x7b')]=_0x2c8c60[_0x4233('0x7b')][_0x4233('0x5e')](_0x470f33=>!_0x470f33[0x0][_0x4233('0x93')](_0x4233('0x73'))));}),_0x1e7e49;}}function J(_0x4c3cea,_0x522556){const _0x3bca17=_0x522556[_0x4233('0x3f')][_0x4233('0x8d')][_0x4233('0x102')];if(_0x4233('0xb8')==typeof _0x4c3cea)return new _0x5354fa(_0x3bca17,_0x4c3cea);{const _0x508598=_0x4c3cea['children']['map'](_0x343f92=>J(_0x343f92,_0x522556));return new(B[_0x4c3cea[(_0x4233('0xad'))]]||_0x46b10d)(_0x3bca17,_0x4c3cea[_0x4233('0xe')],_0x4c3cea['attributes'],_0x508598);}}class H{constructor(_0x398ce8){this[_0x4233('0x4c')]=_0x398ce8,this[_0x4233('0x47')]=new Map(),this[_0x4233('0xe1')]=-0x1,this[_0x4233('0x53')]=-0x1,this[_0x4233('0x1a')]=new Map(),this[_0x4233('0xe7')]=new Map(),this[_0x4233('0x6b')]=new Map(),this[_0x4233('0x6c')]=new Map(),this[_0x4233('0x4')]=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this[_0x4233('0xcd')]=new Map(),this['_touchedMarkers']=new Map(),this[_0x4233('0xf9')]=new Map(),this[_0x4233('0x89')]=0x1;}[_0x4233('0x4a')](_0x59ca91){this[_0x4233('0x70')]=_0x59ca91;const _0x2d8c6c=new Map(),_0x2c9f13=new Map(),_0x39502f=this[_0x4233('0x4c')]['model'][_0x4233('0x102')][_0x4233('0xb1')]['map'](_0x55d90a=>_0x55d90a[_0x4233('0x9c')]);for(const _0x18c1ca of _0x39502f){const _0x3fedaa=this['editor'][_0x4233('0xf6')]['document'][_0x4233('0x9e')](_0x18c1ca),_0x23c1bc=q(_0x3fedaa);_0x2d8c6c[_0x4233('0x92')](_0x18c1ca,_0x23c1bc),_0x2c9f13[_0x4233('0x92')](_0x18c1ca,Object[_0x4233('0xbc')](_0x3fedaa[_0x4233('0x9d')]()));}const _0x2529c1=Array[_0x4233('0x17')](this[_0x4233('0x4c')][_0x4233('0xf6')][_0x4233('0xc1')])[_0x4233('0xe9')](_0x16ced8=>[_0x16ced8[_0x4233('0xe')],_0x16ced8[_0x4233('0x7')]()]),_0x10b66a=this[_0x4233('0x70')][_0x4233('0xa')];this[_0x4233('0x8a')](_0x10b66a,_0x2d8c6c,_0x2529c1,_0x2c9f13),this[_0x4233('0x40')]=this[_0x4233('0x89')];const _0xa24849=new Map(),_0x4b10d7=new Map();for(const _0x39fd6c of _0x39502f){const _0x495d28=G(_0x39fd6c);_0xa24849[_0x4233('0x92')](_0x39fd6c,_0x495d28),_0x4b10d7[_0x4233('0x92')](_0x39fd6c,{});}this[_0x4233('0x8a')](Number[_0x4233('0x28')],_0xa24849,[],_0x4b10d7);}['getData'](_0x4be0fb,_0xaeb411){if(this['_lastFrom']===_0x4be0fb&&this[_0x4233('0x53')]<=_0xaeb411)this[_0x4233('0x47')][_0x4233('0x81')]>0x1&&this['_removeMetaData'](this[_0x4233('0x53')]),this[_0x4233('0xa0')](this['_lastTo'],_0xaeb411,!0x0);else{if(!this['_savedMetaData']['has'](_0x4be0fb)){const _0x18fcf2=this[_0x4233('0x101')](_0x4be0fb);this[_0x4233('0x90')](_0x18fcf2,_0x4be0fb,!0x1);}this['_calculateMetaData'](_0x4be0fb,_0xaeb411,!0x0);}return this[_0x4233('0xe1')]=_0x4be0fb,this[_0x4233('0x53')]=_0xaeb411,this[_0x4233('0x48')]();}[_0x4233('0x3e')](_0x1f30b7){this[_0x4233('0xa7')](),this[_0x4233('0xe1')]=_0x1f30b7[_0x4233('0x85')],this[_0x4233('0x53')]=_0x1f30b7[_0x4233('0x8e')];for(const _0x1debfe in _0x1f30b7[_0x4233('0xc8')]){const _0x51bae0=_0x1f30b7[_0x4233('0xc8')][_0x1debfe][_0x4233('0x76')],_0x3f289c=_0x2df165(_0x1f30b7['diffData'][_0x1debfe][_0x4233('0x44')])||{},_0x3883b6=this[_0x4233('0x62')](_0x1f30b7[_0x4233('0xc8')][_0x1debfe][_0x4233('0x7d')]);_0x3883b6[_0x4233('0x9c')]=_0x1debfe,_0x3883b6[_0x4233('0xa9')]=!_0x51bae0||!_0x51bae0[_0x4233('0x63')],_0x3883b6[_0x4233('0x63')]=()=>_0x3883b6['_isAttached'],this['_baseRoots']['set'](_0x1debfe,_0x3883b6),this['_baseRootsAttributes']['set'](_0x1debfe,_0x3f289c),_0x51bae0&&this[_0x4233('0xf9')][_0x4233('0x92')](_0x1debfe,_0x51bae0);const _0x29ce13=this[_0x4233('0xd4')](_0x3883b6);this['_baseIdsRoots'][_0x4233('0x92')](_0x1debfe,_0x29ce13);for(const [_0x2c6e05,_0x2a98da]of _0x3883b6[_0x4233('0xc1')]){if(!_0x2c6e05[_0x4233('0x93')](_0x4233('0xcc')))continue;const _0x5316b7=_0x2c6e05['split'](':')[0x2];for(const _0x2fa378 of _0x2a98da[_0x4233('0xdc')]({'singleCharacters':!0x0})){const _0x29bcc1=this['_getVidAttributeName'](_0x2fa378),_0x1d8f9a=_0x4233('0xfd')==_0x2fa378[_0x4233('0xad')]?_0x2fa378[_0x4233('0x9')][_0x4233('0x100')][_0x4233('0x77')](0x0,-0x1):_0x2fa378[_0x4233('0x9')][_0x4233('0x100')],_0x4ff72e=_0x29ce13['getNodeByPath'](_0x1d8f9a)[_0x4233('0x31')](_0x29bcc1);this[_0x4233('0xcd')]['set'](_0x4ff72e,{'userId':_0x5316b7});}}}this['_startingRevisionId']=this['_revisionId'];const _0x24c019=[...Array(this['_revisionId'])[_0x4233('0x8c')]()]['slice'](0x1)[_0x4233('0x5e')](_0x3a050f=>!this[_0x4233('0xcd')][_0x4233('0x27')](_0x3a050f));let _0x1003c7=0x0;const _0x5035ff=new Map();for(const _0x5642c2 in _0x1f30b7[_0x4233('0xc8')]){const _0x445429=_0x1f30b7['diffData'][_0x5642c2]['attachChange'],_0x430468=_0x2df165(_0x1f30b7[_0x4233('0xc8')][_0x5642c2][_0x4233('0xae')])||{},_0x69cecf=this[_0x4233('0x62')](_0x1f30b7[_0x4233('0xc8')][_0x5642c2]['insertions']);_0x69cecf['rootName']=_0x5642c2,_0x69cecf['_isAttached']=!_0x445429||_0x445429[_0x4233('0x63')],_0x69cecf['isAttached']=()=>_0x69cecf[_0x4233('0xa9')],this['_diffRoots'][_0x4233('0x92')](_0x5642c2,_0x69cecf),this[_0x4233('0x6b')][_0x4233('0x92')](_0x5642c2,_0x430468);const _0x13fa5a=this[_0x4233('0xd4')](_0x69cecf,Number[_0x4233('0x28')]);this[_0x4233('0xac')]['set'](_0x5642c2,_0x13fa5a),_0x5035ff[_0x4233('0x92')](_0x5642c2,_0x69cecf[_0x4233('0x63')]()?_0x430468:{});for(const [_0xa8858a,_0x284752]of _0x69cecf[_0x4233('0xc1')]){if(!_0xa8858a['startsWith'](_0x4233('0xcc')))continue;const _0x28fc8c=_0xa8858a['split'](':')[0x2];for(const _0x4ece51 of _0x284752['getWalker']({'singleCharacters':!0x0})){const _0xe0c800=this[_0x4233('0xcb')](_0x4ece51),_0x414ec7=this[_0x4233('0x89')]++,_0x418005=_0x4233('0xfd')==_0x4ece51['type']?_0x4ece51[_0x4233('0x9')][_0x4233('0x100')]['slice'](0x0,-0x1):_0x4ece51['previousPosition'][_0x4233('0x100')];_0x13fa5a['getNodeByPath'](_0x418005)[_0x4233('0xff')](_0xe0c800,_0x414ec7),this['_touched'][_0x4233('0x92')](_0x414ec7,{'userId':_0x28fc8c});}}for(const _0x36ba09 of this[_0x4233('0x4c')][_0x4233('0xf6')][_0x4233('0x54')](_0x69cecf)['getWalker']({'singleCharacters':!0x0})){const _0x32013e=this['_getVidAttributeName'](_0x36ba09),_0x50edf6=_0x4233('0xfd')==_0x36ba09[_0x4233('0xad')]?_0x36ba09[_0x4233('0x9')]['path'][_0x4233('0x77')](0x0,-0x1):_0x36ba09['previousPosition'][_0x4233('0x100')],_0x2aff40=_0x13fa5a[_0x4233('0x2b')](_0x50edf6);_0x2aff40[_0x4233('0x31')](_0x32013e)>0x0||_0x2aff40[_0x4233('0xff')](_0x32013e,_0x24c019[_0x1003c7++]);}for(const [_0x55dfb8,_0x5a6428]of _0x69cecf['markers'])_0x55dfb8[_0x4233('0x93')]('revision:')||this['_markers'][_0x4233('0x92')](_0x55dfb8,_0x5a6428);}const _0x16629c=G(_0x4233('0x84'));this[_0x4233('0x6c')][_0x4233('0x92')](_0x4233('0x84'),_0x16629c),this[_0x4233('0x38')][_0x4233('0x92')]('$graveyard',this[_0x4233('0xd4')](_0x16629c,0x1));const _0x1e157e=G(_0x4233('0x84'));this[_0x4233('0xe7')][_0x4233('0x92')](_0x4233('0x84'),_0x1e157e),this[_0x4233('0xac')]['set'](_0x4233('0x84'),this[_0x4233('0xd4')](_0x1e157e,0x1));const _0x5e8158=Array['from'](this[_0x4233('0xe7')])[_0x4233('0xe9')](([_0x49062d,_0xf7f7cc])=>[_0x49062d,q(_0xf7f7cc)]);this[_0x4233('0x8a')](this['_lastTo'],_0x5e8158,this['_markers'],_0x5035ff);}[_0x4233('0x62')](_0x2362b2){const _0x34e700=JSON[_0x4233('0x4b')](_0x2362b2),_0x256e1c=this[_0x4233('0x4c')][_0x4233('0x3f')][_0x4233('0x8d')][_0x4233('0x102')],_0x1f55c5=new _0x660609(_0x256e1c,_0x34e700[_0x4233('0xe9')](_0x3e1adb=>J(_0x3e1adb,this[_0x4233('0x4c')])));return this[_0x4233('0x4c')][_0x4233('0xd1')]['toModel'](_0x1f55c5);}[_0x4233('0x8a')](_0x364d53,_0x1428a5,_0x3e8549,_0x1dc428){const _0x4d96df=new Map(_0x1428a5),_0x252204=new Map(_0x2df165(_0x1dc428)),_0x1e47ae=new Map();for(const [_0x33aad7,_0xc38941]of _0x3e8549)_0x1e47ae[_0x4233('0x92')](_0x33aad7,{'start':_0xc38941['start'][_0x4233('0x65')](),'end':_0xc38941[_0x4233('0xaf')][_0x4233('0x65')](),'rootName':_0xc38941[_0x4233('0x1f')][_0x4233('0x9c')]});this[_0x4233('0x47')][_0x4233('0x92')](_0x364d53,{'roots':_0x4d96df,'markers':_0x1e47ae,'rootsAttributes':_0x252204});}[_0x4233('0xec')](_0x579093){this['_savedMetaData'][_0x4233('0x19')](_0x579093);}[_0x4233('0xef')](){this[_0x4233('0xa7')](),this[_0x4233('0xe1')]=-0x1,this[_0x4233('0x53')]=-0x1,this[_0x4233('0x47')][_0x4233('0x86')](),this[_0x4233('0x4a')](this[_0x4233('0x70')]);}[_0x4233('0xa7')](){this[_0x4233('0xcd')][_0x4233('0x86')](),this[_0x4233('0xca')][_0x4233('0x86')](),this[_0x4233('0xf9')][_0x4233('0x86')](),this[_0x4233('0xe7')][_0x4233('0x86')](),this[_0x4233('0x6b')][_0x4233('0x86')](),this[_0x4233('0x6c')][_0x4233('0x86')](),this[_0x4233('0x4')][_0x4233('0x86')](),this[_0x4233('0xac')]['clear'](),this[_0x4233('0x38')][_0x4233('0x86')](),this[_0x4233('0x1a')][_0x4233('0x86')](),this[_0x4233('0x89')]=0x1,this['_startingRevisionId']=this[_0x4233('0x89')];}[_0x4233('0xd4')](_0x509c56,_0x61703d=null){let _0x4434fd=null;_0x509c56['is'](_0x4233('0xbf'))||(_0x4434fd=new _0x803ef4(_0x509c56[_0x4233('0xe')],{'vid_start':null===_0x61703d?this['_revisionId']++:_0x61703d++}));const _0x32a049=[];for(const _0x3d6168 of _0x509c56[_0x4233('0x11')]())if(_0x3d6168['is'](_0x4233('0x87'))){_0x32a049['push'](this['_makeIdsRoot'](_0x3d6168,_0x61703d));const _0x1eee47=_0x32a049[_0x32a049['length']-0x1];null!==_0x61703d&&(_0x61703d=_0x1eee47['is']('element',_0x4233('0x1'))?_0x1eee47[_0x4233('0x31')]('vid')+0x1:_0x1eee47[_0x4233('0x31')](_0x4233('0x96'))+0x1);}else for(let _0x597ccf=0x0;_0x597ccf<_0x3d6168[_0x4233('0xe5')];_0x597ccf++)_0x32a049[_0x4233('0xbd')](new _0x803ef4(_0x4233('0x1'),{'vid':null===_0x61703d?this['_revisionId']++:_0x61703d++}));if(_0x509c56['is']('documentFragment')){const _0x4eae61=G(_0x509c56['rootName']);return _0x4eae61[_0x4233('0x3d')](0x0,_0x32a049),_0x4eae61;}return _0x4434fd[_0x4233('0xff')](_0x4233('0x96'),null===_0x61703d?this['_revisionId']++:_0x61703d++),_0x4434fd[_0x4233('0x3d')](0x0,_0x32a049),_0x4434fd;}[_0x4233('0x90')](_0xa6bef6,_0x41f5d3,_0x26e2ad){this[_0x4233('0xa7')]();const {roots:_0x1b8dca,markers:_0xebcc1e,rootsAttributes:_0x8db2e9}=this[_0x4233('0x47')][_0x4233('0xb')](_0xa6bef6);this[_0x4233('0x6c')]=new Map(_0x1b8dca),this[_0x4233('0x4')]=new Map(_0x2df165(_0x8db2e9));for(const [_0x5791f5,_0x39bfc4]of this[_0x4233('0x6c')])if(_0x4233('0x84')!==_0x5791f5&&(this[_0x4233('0xe7')][_0x4233('0x92')](_0x5791f5,q(_0x39bfc4)),this[_0x4233('0x6b')]=new Map(_0x2df165(_0x8db2e9)),_0x26e2ad)){const _0x328367=this[_0x4233('0x89')];this['_idsRoots']['set'](_0x5791f5,this[_0x4233('0xd4')](_0x39bfc4)),this[_0x4233('0x38')]['set'](_0x5791f5,this[_0x4233('0xd4')](_0x39bfc4,_0x328367));}this['_startingRevisionId']=this[_0x4233('0x89')],this[_0x4233('0xe7')]['set'](_0x4233('0x84'),q(this[_0x4233('0x6c')]['get'](_0x4233('0x84')))),_0x26e2ad&&this['_idsRoots']['set'](_0x4233('0x84'),this['_makeIdsRoot'](this[_0x4233('0x6c')][_0x4233('0xb')](_0x4233('0x84'))));for(const [_0x5175f1,_0x33c6d7]of _0xebcc1e){const _0x7b6a8e=this[_0x4233('0x6c')][_0x4233('0xb')](_0x33c6d7['rootName']),_0x249bd7=this[_0x4233('0xe7')][_0x4233('0xb')](_0x33c6d7[_0x4233('0x9c')]),_0x1e66c3=new _0x346d9c(this[_0x4233('0xdf')](_0x33c6d7[_0x4233('0xcf')],_0x7b6a8e),this['_fixPosition'](_0x33c6d7[_0x4233('0xaf')],_0x7b6a8e)),_0x22a1f4=this[_0x4233('0x58')](_0x1e66c3,_0x249bd7);_0x7b6a8e['markers'][_0x4233('0x92')](_0x5175f1,_0x1e66c3),this['_markers'][_0x4233('0x92')](_0x5175f1,_0x22a1f4);}this['_applyOperations'](_0xa6bef6,_0x41f5d3,_0x26e2ad);}[_0x4233('0xa0')](_0x3bf550,_0x506021,_0x397c15){for(const _0x54b83d of this[_0x4233('0x70')][_0x4233('0xc5')](_0x3bf550,_0x506021))this['_handleOperation'](_0x54b83d,_0x397c15);for(const _0x43433f of this['_diffRoots'][_0x4233('0xea')]())_0x43433f[_0x4233('0xc1')][_0x4233('0x86')]();for(const [_0x5b2c49,_0x5c347a]of this['_markers']){this[_0x4233('0xe7')][_0x4233('0xb')](_0x5c347a[_0x4233('0x1f')][_0x4233('0x9c')])[_0x4233('0xc1')][_0x4233('0x92')](_0x5b2c49,_0x5c347a[_0x4233('0x65')]());}const _0x1af885=new Map(),_0x5c190f=new Map();for(const [_0x13996d,_0x1c560b]of this[_0x4233('0xe7')])_0x1af885[_0x4233('0x92')](_0x13996d,q(_0x1c560b)),_0x5c190f['set'](_0x13996d,this['_diffRootsAttributes'][_0x4233('0xb')](_0x13996d));this[_0x4233('0x8a')](_0x506021,_0x1af885,this[_0x4233('0x1a')],_0x5c190f);}[_0x4233('0x101')](_0x5f25f5){const _0x1d6644=Array['from'](this[_0x4233('0x47')][_0x4233('0x8c')]());_0x1d6644['sort']((_0x15452b,_0x3680ba)=>_0x15452b-_0x3680ba),_0x1d6644[_0x4233('0xd0')]();for(const _0x233989 of _0x1d6644)if(_0x233989<_0x5f25f5)return _0x233989;return Number[_0x4233('0x28')];}[_0x4233('0xd6')](_0x512cc4,_0x5c82e2){const _0x1baaeb=Array[_0x4233('0x17')](_0x5c82e2['markers'])[_0x4233('0xe9')](([_0xf93f05,_0x11b14b])=>[_0xf93f05,this[_0x4233('0x58')](_0x11b14b,_0x512cc4)]);_0x512cc4[_0x4233('0xc1')]=new Map(_0x1baaeb);}['_transformMarkers'](_0x2b1bed){for(const _0x198a62 of this['_markers'][_0x4233('0xea')]()){const _0x3c28a3=_0x198a62[_0x4233('0xf2')](_0x2b1bed),_0x2e8f62=_0x346d9c['_createFromRanges'](_0x3c28a3);_0x198a62['start']=_0x2e8f62[_0x4233('0xcf')],_0x198a62[_0x4233('0xaf')]=_0x2e8f62[_0x4233('0xaf')];}}[_0x4233('0x21')](_0x3f3d12,_0x181426){if(_0x4233('0x3a')==_0x3f3d12[_0x4233('0xad')]||_0x4233('0xe8')==_0x3f3d12[_0x4233('0xad')])return void this[_0x4233('0x57')](_0x3f3d12,_0x181426);if(_0x4233('0xe3')==_0x3f3d12[_0x4233('0xad')]){const _0x1c4ebd=_0x3f3d12[_0x4233('0x3b')]['root'][_0x4233('0x9c')];this[_0x4233('0xe7')][_0x4233('0x27')](_0x1c4ebd)||(this[_0x4233('0xe7')]['set'](_0x1c4ebd,G(_0x1c4ebd,!0x0)),this['_diffRootsAttributes'][_0x4233('0x92')](_0x1c4ebd,{}),_0x181426&&this[_0x4233('0xac')][_0x4233('0x92')](_0x1c4ebd,G(_0x1c4ebd,!0x0)));}else{if(_0x4233('0x3')==_0x3f3d12[_0x4233('0xad')]||_0x4233('0xb5')==_0x3f3d12[_0x4233('0xad')]||'changeRootAttribute'==_0x3f3d12['type'])return void this[_0x4233('0x1d')](_0x3f3d12);}const _0x48ea20=this[_0x4233('0x5d')](_0x3f3d12,this['_diffRoots']);if('marker'!==_0x3f3d12[_0x4233('0xad')]&&(_0x48ea20[_0x4233('0x4d')](),this[_0x4233('0x56')](_0x48ea20)),_0x181426)switch(_0x48ea20['type']){case _0x4233('0xe3'):this[_0x4233('0xc3')](_0x3f3d12);break;case _0x4233('0x37'):case _0x4233('0x39'):case'reinsert':this[_0x4233('0xc4')](_0x3f3d12);break;case _0x4233('0x98'):this[_0x4233('0x2f')](_0x3f3d12);break;case _0x4233('0x6d'):this[_0x4233('0x7a')](_0x3f3d12);break;case _0x4233('0x16'):this['_handleMarkerOperation'](_0x3f3d12);}}[_0x4233('0x5d')](_0x4f3802,_0x56e941){const _0x49c887=_0x4f3802[_0x4233('0x65')]();return _0x49c887[_0x4233('0x103')]=_0x4f3802['_authorId'],this[_0x4233('0xd2')](_0x49c887,_0x56e941),_0x49c887;}[_0x4233('0x6a')](_0x4d2be2){return _0x4d2be2[_0x4233('0xe9')](_0x261e8e=>{const _0x3ec34b=this[_0x4233('0xcb')](_0x261e8e);return Number(_0x261e8e['item'][_0x4233('0x31')](_0x3ec34b));});}[_0x4233('0xf8')](_0x3776ce,_0x31a814){if(_0x3776ce['is'](_0x4233('0x87'),_0x4233('0x1')))_0x31a814[_0x4233('0xbd')]({'item':_0x3776ce,'type':_0x4233('0xdb')});else{_0x3776ce['is']('element')&&_0x31a814[_0x4233('0xbd')]({'item':_0x3776ce,'type':_0x4233('0x6f')});for(const _0x3c0254 of _0x3776ce[_0x4233('0x11')]())this[_0x4233('0xf8')](_0x3c0254,_0x31a814);_0x3776ce['is'](_0x4233('0x87'))&&_0x31a814[_0x4233('0xbd')]({'item':_0x3776ce,'type':_0x4233('0xfd')});}return _0x31a814;}[_0x4233('0x48')](){const _0x427d03=new Map(this['_touched']),_0x535079=new Map(_0x427d03),_0x4854da=new Map(),_0x572006={'insertions':{},'deletions':{}},_0xdef1b8={'insertions':{},'deletions':{}},_0x4a9b77=new Map(),_0x3c5fc7=new Set([...this[_0x4233('0x6c')][_0x4233('0x8c')](),...this[_0x4233('0xe7')]['keys']()]);_0x3c5fc7['delete'](_0x4233('0x84'));for(const _0x27eb2a of _0x3c5fc7){const _0x53e34c=this[_0x4233('0xe7')][_0x4233('0xb')](_0x27eb2a)||G(_0x27eb2a,!0x1),_0x398bb5=this[_0x4233('0x6c')][_0x4233('0xb')](_0x27eb2a)||G(_0x27eb2a,!0x1);_0x53e34c['isAttached']()||_0x398bb5[_0x4233('0x63')]()?(_0x572006[_0x4233('0x13')][_0x27eb2a]=q(_0x53e34c),_0x572006[_0x4233('0x7d')][_0x27eb2a]=q(_0x398bb5),this[_0x4233('0xd6')](_0x572006['deletions'][_0x27eb2a],_0x398bb5),this[_0x4233('0xd6')](_0x572006['insertions'][_0x27eb2a],_0x53e34c),_0xdef1b8[_0x4233('0x13')][_0x27eb2a]=this[_0x4233('0xf8')](this[_0x4233('0xac')]['get'](_0x27eb2a),[]),_0xdef1b8[_0x4233('0x7d')][_0x27eb2a]=this[_0x4233('0xf8')](this[_0x4233('0x38')][_0x4233('0xb')](_0x27eb2a)||G(_0x27eb2a,!0x1),[])):_0x3c5fc7['delete'](_0x27eb2a);}for(const _0x2a09b3 of _0x3c5fc7){const _0x4a000b=_0xdef1b8[_0x4233('0x13')][_0x2a09b3];for(const _0x287877 of _0x4a000b){const _0x406430=this[_0x4233('0xcb')](_0x287877),_0x2a26bd=_0x287877[_0x4233('0xce')][_0x4233('0x31')](_0x406430);_0x535079[_0x4233('0x19')](_0x2a26bd),_0x2a26bd>=this[_0x4233('0x40')]&&_0x4854da[_0x4233('0x92')](_0x2a26bd,_0x427d03['get'](_0x2a26bd));}}for(const _0x52e82b of _0x3c5fc7){const _0x5ef463=_0xdef1b8[_0x4233('0x13')][_0x52e82b],_0x7b4b4c=this[_0x4233('0x6a')](_0xdef1b8[_0x4233('0x7d')][_0x52e82b]);let _0x87f876=0x0;for(const _0x4df1d3 of _0x5ef463){const _0x27ddee=this['_getVidAttributeName'](_0x4df1d3),_0x4976f6=_0x4df1d3[_0x4233('0xce')][_0x4233('0x31')](_0x27ddee);if(!_0x4854da[_0x4233('0x27')](_0x4976f6)&&!_0x4a9b77['has'](_0x4976f6)){if(_0x535079[_0x4233('0x27')](_0x4976f6))_0x87f876++;else{if(_0x4976f6!=_0x7b4b4c[_0x87f876]){const _0xfb8034=_0x427d03[_0x4233('0xb')](_0x4976f6)||_0x427d03[_0x4233('0xb')](_0x7b4b4c[_0x87f876]);for(;_0x4976f6!=_0x7b4b4c[_0x87f876];)_0x535079['has'](_0x7b4b4c[_0x87f876])||(_0x4a9b77[_0x4233('0x92')](_0x7b4b4c[_0x87f876],_0xfb8034),_0x427d03[_0x4233('0x92')](_0x7b4b4c[_0x87f876],_0xfb8034)),_0x87f876++;}_0x87f876++;}}}}for(const _0x52a377 of _0x3c5fc7){const _0x139a40=_0xdef1b8[_0x4233('0x13')][_0x52a377];for(const _0x4d713d of _0x139a40){const _0x1976c3=this[_0x4233('0xcb')](_0x4d713d),_0x219cbb=_0x4d713d[_0x4233('0xce')][_0x4233('0x31')](_0x1976c3);if(_0x4a9b77['has'](_0x219cbb)){const _0x4768b7=_0x4a9b77['get'](_0x219cbb);_0x535079['has'](_0x219cbb)||_0x535079[_0x4233('0x92')](_0x219cbb,{..._0x4768b7}),_0x4854da[_0x4233('0x92')](_0x219cbb,{..._0x4768b7});}}}for(const _0x6775f9 of _0x535079[_0x4233('0x8c')]())_0x6775f9>=this[_0x4233('0x40')]&&_0x535079[_0x4233('0x19')](_0x6775f9);const _0xdd08eb=new Map();for(const _0x59722c of _0x3c5fc7){let _0x10d482=_0xdef1b8[_0x4233('0x13')][_0x59722c];for(const _0x1a797e of _0x10d482)if(_0x1a797e[_0x4233('0xce')]['is']('element',_0x4233('0x55'))){const _0x494a9b=this[_0x4233('0xcb')](_0x1a797e),_0x572bbc=_0x1a797e[_0x4233('0xce')][_0x4233('0x31')](_0x494a9b);if(_0x4854da[_0x4233('0x27')](_0x572bbc)){const _0x403ba3=_0x1a797e[_0x4233('0xce')][_0x4233('0x22')][_0x4233('0x22')]['getAttribute']('vid_start'),_0x15e72f=_0xdd08eb['get'](_0x403ba3)||new Set();_0x15e72f[_0x4233('0x4e')](_0x4854da[_0x4233('0xb')](_0x572bbc)[_0x4233('0x3c')]),_0xdd08eb[_0x4233('0x92')](_0x403ba3,_0x15e72f);}}_0x10d482=_0xdef1b8[_0x4233('0x7d')][_0x59722c];for(const _0x15d185 of _0x10d482)if(_0x15d185['item']['is'](_0x4233('0x87'),'tableCell')){const _0x1060dd=this[_0x4233('0xcb')](_0x15d185),_0x26dd59=_0x15d185['item'][_0x4233('0x31')](_0x1060dd);if(_0x535079[_0x4233('0x27')](_0x26dd59)){const _0x4eab0b=_0x15d185[_0x4233('0xce')]['parent'][_0x4233('0x22')][_0x4233('0x31')](_0x4233('0x7f')),_0xc676da=_0xdd08eb[_0x4233('0xb')](_0x4eab0b)||new Set();_0xc676da[_0x4233('0x4e')](_0x535079[_0x4233('0xb')](_0x26dd59)[_0x4233('0x3c')]),_0xdd08eb[_0x4233('0x92')](_0x4eab0b,_0xc676da);}}for(const _0x3251d0 of _0xdd08eb[_0x4233('0x8c')]())(_0x4854da[_0x4233('0x27')](_0x3251d0)||_0x535079[_0x4233('0x27')](_0x3251d0))&&_0xdd08eb['delete'](_0x3251d0);}for(const _0x5dae45 of _0x3c5fc7){const _0x408cd5=_0xdef1b8[_0x4233('0x13')][_0x5dae45];let _0x4ddfe1=null,_0x5775ad=null;for(const _0x4cb999 of _0x408cd5){const _0x418f3e=this[_0x4233('0xcb')](_0x4cb999),_0x54ed06=_0x4cb999[_0x4233('0xce')]['getAttribute'](_0x418f3e),_0x16ff5d=_0xdd08eb[_0x4233('0xb')](_0x54ed06);_0x16ff5d&&_0x4233('0x6f')==_0x4cb999[_0x4233('0xad')]&&(_0x4ddfe1=Array['from'](_0x16ff5d)[0x0],_0x5775ad=_0x4cb999[_0x4233('0xce')][_0x4233('0x31')](_0x4233('0x96'))),_0x4ddfe1&&(_0x535079['set'](_0x54ed06,{'userId':_0x4ddfe1}),_0x4854da[_0x4233('0x92')](_0x54ed06,{'userId':_0x4ddfe1})),_0x54ed06==_0x5775ad&&(_0x4ddfe1=null,_0x5775ad=null);}}const _0x56a4a9={},_0x2f0ff0=new Set();for(const _0x27aa7c of _0x3c5fc7){const _0xe99dd6=_0x572006[_0x4233('0x7d')][_0x27aa7c],_0x53cfd8=_0x572006[_0x4233('0x13')][_0x27aa7c];for(const {userId:_0x1ee991}of this[_0x4233('0xca')][_0x4233('0xea')]())null!==_0x1ee991&&_0x2f0ff0[_0x4233('0x4e')](_0x1ee991);for(const {userId:_0xeb1505}of this[_0x4233('0xf9')][_0x4233('0xea')]())null!==_0xeb1505&&_0x2f0ff0[_0x4233('0x4e')](_0xeb1505);this['_markChanges'](_0x53cfd8,_0xdef1b8['insertions'][_0x27aa7c],_0x4854da,'insertion',_0x2f0ff0),this[_0x4233('0xc0')](_0xe99dd6,_0xdef1b8[_0x4233('0x7d')][_0x27aa7c],_0x535079,_0x4233('0xfa'),_0x2f0ff0),_0x56a4a9[_0x27aa7c]={'insertions':this[_0x4233('0xd9')](_0x53cfd8),'deletions':this[_0x4233('0xd9')](_0xe99dd6),'attachChange':this[_0x4233('0xf9')][_0x4233('0xb')](_0x27aa7c)||null,'attributesBefore':_0x2df165(this[_0x4233('0x4')][_0x4233('0xb')](_0x27aa7c))||{},'attributesAfter':_0x2df165(this['_diffRootsAttributes'][_0x4233('0xb')](_0x27aa7c))};}return{'diffData':_0x56a4a9,'authorsIds':Array[_0x4233('0x17')](_0x2f0ff0)};}[_0x4233('0xf5')](_0x4dd187){for(const [,_0x10be31]of _0x4dd187[_0x4233('0xc1')]){const _0x54014f=_0x10be31[_0x4233('0xcf')][_0x4233('0x35')]()[_0x4233('0x5e')](_0xede1f2=>_0x4233('0x55')==_0xede1f2['name']);for(const _0x415b02 of _0x54014f)0x1==_0x415b02[_0x4233('0xb0')]&&_0x415b02[_0x4233('0xee')](0x0)['is'](_0x4233('0x87'),_0x4233('0xc2'))&&_0x415b02['getChild'](0x0)[_0x4233('0xff')](_0x4233('0x83'),!0x0);}}[_0x4233('0xd9')](_0x8b3e8){this[_0x4233('0xf5')](_0x8b3e8);const _0xf7eaa1=this[_0x4233('0x4c')][_0x4233('0xd1')][_0x4233('0xaa')](_0x8b3e8,{}),_0x5a23d1=Array[_0x4233('0x17')](_0xf7eaa1[_0x4233('0x11')]())[_0x4233('0xe9')](_0x366fba=>this['_getViewJson'](_0x366fba));return JSON[_0x4233('0x15')](_0x5a23d1);}[_0x4233('0xf3')](_0x545c29){if(_0x545c29['is'](_0x4233('0x1')))return _0x545c29[_0x4233('0xd1')];{const _0xbb679=_0x545c29;return{'type':Object[_0x4233('0x8c')](B)['find'](_0x1a1821=>_0x545c29 instanceof B[_0x1a1821]),'name':_0xbb679['name'],'attributes':Array[_0x4233('0x17')](_0xbb679['getAttributes']()),'children':Array[_0x4233('0x17')](_0xbb679[_0x4233('0x11')]())['map'](_0x5bf5be=>this['_getViewJson'](_0x5bf5be))};}}['_markChanges'](_0x2f58b9,_0xb03cc,_0x162e62,_0x591a00,_0x3002aa){let _0x4aed0d=null,_0x463dbb=null,_0x576ea0=0x0;const _0x57e934=this['editor'][_0x4233('0xf6')];for(let _0x2921e2=0x0;_0x2921e2<_0xb03cc[_0x4233('0xfe')];_0x2921e2++){const _0x9adace=this['_getVidAttributeName'](_0xb03cc[_0x2921e2]),_0x5eaac4=_0xb03cc[_0x2921e2][_0x4233('0xce')]['getAttribute'](_0x9adace),_0xb92f2d=_0x162e62['get'](_0x5eaac4),_0x516e46=_0x2921e2==_0xb03cc['length']-0x1;(!_0x4aed0d&&_0xb92f2d&&(_0x4aed0d=_0xb92f2d,_0x463dbb=_0xb03cc[_0x2921e2]),_0x4aed0d&&(!_0xb92f2d||_0xb92f2d[_0x4233('0x3c')]!=_0x4aed0d[_0x4233('0x3c')]))&&(_0x189b99(_0xb92f2d,L(_0x463dbb,_0x2f58b9,_0x57e934),L(_0xb03cc[_0x2921e2],_0x2f58b9,_0x57e934)),_0x4aed0d=_0xb92f2d||null,_0x463dbb=_0xb92f2d?_0xb03cc[_0x2921e2]:null),_0x4aed0d&&_0x516e46&&_0x189b99(_0xb92f2d,L(_0x463dbb,_0x2f58b9,_0x57e934),W(_0xb03cc[_0x2921e2],_0x2f58b9,_0x57e934));}function _0x189b99(_0x27ed4f,_0x26754b,_0x2f4be5){const _0x3d82bf=_0x4aed0d[_0x4233('0x3c')],_0x484429=_0x4233('0xcc')+_0x591a00+':'+_0x3d82bf+':'+_0x576ea0++,_0x288232=_0x57e934[_0x4233('0x74')](_0x26754b,_0x2f4be5);_0x2f58b9[_0x4233('0xc1')][_0x4233('0x92')](_0x484429,_0x288232),null!==_0x3d82bf&&_0x3002aa[_0x4233('0x4e')](_0x3d82bf);}}[_0x4233('0xcb')](_0x5f1ae7){switch(_0x5f1ae7[_0x4233('0xad')]){case _0x4233('0x6f'):return _0x4233('0x7f');case _0x4233('0xfd'):return'vid_end';default:return _0x4233('0x10');}}[_0x4233('0xd2')](_0x50a2dd,_0x33f3f2){_0x50a2dd[_0x4233('0x2')]=null;for(const _0x11f7ca in _0x50a2dd){const _0x38e3f2=_0x50a2dd[_0x11f7ca];if(_0x38e3f2 instanceof _0x15b85a){const _0x48bbb9=_0x33f3f2[_0x4233('0xb')](_0x38e3f2[_0x4233('0x1f')][_0x4233('0x9c')]);_0x50a2dd[_0x11f7ca]=this['_fixPosition'](_0x38e3f2,_0x48bbb9);}if(_0x38e3f2 instanceof _0x346d9c){const _0x3e1605=_0x33f3f2[_0x4233('0xb')](_0x38e3f2[_0x4233('0x1f')][_0x4233('0x9c')]);_0x50a2dd[_0x11f7ca]=this[_0x4233('0x58')](_0x38e3f2,_0x3e1605);}_0x4233('0x1f')===_0x11f7ca&&(_0x50a2dd[_0x4233('0x1f')]=_0x33f3f2['get'](_0x50a2dd[_0x4233('0x1f')][_0x4233('0x9c')]));}}[_0x4233('0x58')](_0x11b36c,_0x506588){return this[_0x4233('0x4c')][_0x4233('0xf6')][_0x4233('0x74')](this[_0x4233('0xdf')](_0x11b36c[_0x4233('0xcf')],_0x506588),this['_fixPosition'](_0x11b36c[_0x4233('0xaf')],_0x506588));}['_fixPosition'](_0x45bee3,_0x22d341){return this[_0x4233('0x4c')]['model'][_0x4233('0xa3')](_0x22d341,_0x45bee3[_0x4233('0x100')],_0x45bee3[_0x4233('0xbb')]);}[_0x4233('0xc3')](_0x35a5bc){const _0x4f6f23=this['_idsRoots'][_0x4233('0xb')](_0x35a5bc[_0x4233('0x3b')][_0x4233('0x1f')][_0x4233('0x9c')]),_0x45c8ae=this[_0x4233('0xdf')](_0x35a5bc['position'],_0x4f6f23),_0x25a595=null===_0x35a5bc['_authorId']?null:_0x35a5bc[_0x4233('0x103')]||this[_0x4233('0x4c')][_0x4233('0x67')][_0x4233('0xb')](_0x4233('0xba'))['me']['id'],_0x53f9e1=_0x45c8ae[_0x4233('0x22')],_0x596b3a=this[_0x4233('0x89')],_0x1ea810=[];for(const _0x560b3e of _0x35a5bc[_0x4233('0x60')])if(_0x560b3e['is'](_0x4233('0x87')))_0x1ea810['push'](this[_0x4233('0xd4')](_0x560b3e));else for(let _0xad5c10=0x0;_0xad5c10<_0x560b3e['offsetSize'];_0xad5c10++)_0x1ea810[_0x4233('0xbd')](new _0x803ef4(_0x4233('0x1'),{'vid':this[_0x4233('0x89')]++}));const _0x4be922=this[_0x4233('0x89')];for(let _0x58bdc7=_0x596b3a;_0x58bdc7<_0x4be922;_0x58bdc7++)this[_0x4233('0xcd')][_0x4233('0x92')](_0x58bdc7,{'userId':_0x25a595});_0x53f9e1['_insertChild'](_0x45c8ae[_0x4233('0x42')],_0x1ea810);}[_0x4233('0xc4')](_0xf8b97d){(_0xf8b97d=this[_0x4233('0x5d')](_0xf8b97d,this['_idsRoots']))[_0x4233('0x4d')]();const _0x170e4d=null===_0xf8b97d['_authorId']?null:_0xf8b97d[_0x4233('0x103')]||this['editor'][_0x4233('0x67')][_0x4233('0xb')](_0x4233('0xba'))['me']['id'],_0x1372a8=_0xf8b97d[_0x4233('0x5')](),_0x164167=_0x1372a8[_0x4233('0x22')],_0x53d558=_0x1372a8['offset'];!function _0x2dcc44(_0x56eff9,_0x2c8a2f,_0x8a975b,_0x29a5ce){for(let _0xcfa0=_0x8a975b;_0xcfa0<_0x29a5ce;_0xcfa0++){const _0xe88fa=_0x2c8a2f[_0x4233('0xee')](_0xcfa0);_0xe88fa['is'](_0x4233('0x87'),_0x4233('0x1'))?_0x56eff9[_0x4233('0x92')](_0xe88fa[_0x4233('0x31')](_0x4233('0x10')),{'userId':_0x170e4d}):(_0x56eff9['set'](_0xe88fa['getAttribute'](_0x4233('0x7f')),{'userId':_0x170e4d}),_0x2dcc44(_0x56eff9,_0xe88fa,0x0,_0xe88fa[_0x4233('0xb0')]),_0x56eff9[_0x4233('0x92')](_0xe88fa[_0x4233('0x31')](_0x4233('0x96')),{'userId':_0x170e4d}));}}(this[_0x4233('0xcd')],_0x164167,_0x53d558,_0x53d558+_0xf8b97d[_0x4233('0x1b')]);}['_handleMergeOperation'](_0x52489b){const _0x2739b4=null===(_0x52489b=this[_0x4233('0x5d')](_0x52489b,this[_0x4233('0xac')]))[_0x4233('0x103')]?null:_0x52489b[_0x4233('0x103')]||this[_0x4233('0x4c')][_0x4233('0x67')][_0x4233('0xb')](_0x4233('0xba'))['me']['id'],_0x164f7b=_0x52489b['targetPosition'][_0x4233('0x22')],_0x52db95=_0x52489b[_0x4233('0xf0')][_0x4233('0x22')],_0x79127e=_0x164f7b[_0x4233('0x31')](_0x4233('0x96')),_0x476e11=_0x52db95['getAttribute'](_0x4233('0x7f'));_0x164f7b[_0x4233('0xff')]('vid_end',_0x52db95[_0x4233('0x31')](_0x4233('0x96'))),_0x52db95[_0x4233('0xff')](_0x4233('0x96'),_0x79127e),this[_0x4233('0xcd')][_0x4233('0x92')](_0x476e11,{'userId':_0x2739b4}),this[_0x4233('0xcd')]['set'](_0x79127e,{'userId':_0x2739b4}),_0x52489b['_execute']();}['_handleSplitOperation'](_0x372830){const _0xeff180=null===(_0x372830=this[_0x4233('0x5d')](_0x372830,this['_idsRoots']))[_0x4233('0x103')]?null:_0x372830[_0x4233('0x103')]||this[_0x4233('0x4c')][_0x4233('0x67')][_0x4233('0xb')](_0x4233('0xba'))['me']['id'],_0x33f798=_0x372830[_0x4233('0xbe')],_0x348513=_0x372830['splitPosition'][_0x4233('0x22')];_0x372830[_0x4233('0x4d')]();const _0x3e6c9a=_0x348513[_0x4233('0x31')](_0x4233('0x96')),_0x17b6dd=_0x372830['insertionPosition'][_0x4233('0xf7')];if(_0x33f798){const _0x18e8fe=_0x17b6dd[_0x4233('0x31')](_0x4233('0x96')),_0x5e9f2c=_0x348513['getAttribute'](_0x4233('0x96'));_0x348513['_setAttribute'](_0x4233('0x96'),_0x18e8fe),_0x17b6dd['_setAttribute'](_0x4233('0x96'),_0x5e9f2c),this[_0x4233('0xcd')][_0x4233('0x92')](_0x348513[_0x4233('0x31')]('vid_end'),{'userId':_0xeff180}),this[_0x4233('0xcd')][_0x4233('0x92')](_0x17b6dd[_0x4233('0x31')]('vid_start'),{'userId':_0xeff180});}else{const _0x463661=this[_0x4233('0x89')]++,_0x33b854=this[_0x4233('0x89')]++;_0x348513[_0x4233('0xff')](_0x4233('0x96'),_0x463661),_0x17b6dd[_0x4233('0xff')](_0x4233('0x7f'),_0x33b854),_0x17b6dd['_setAttribute'](_0x4233('0x96'),_0x3e6c9a),this['_touched'][_0x4233('0x92')](_0x463661,{'userId':_0xeff180}),this[_0x4233('0xcd')][_0x4233('0x92')](_0x33b854,{'userId':_0xeff180});}}['_handleMarkerOperation'](_0x47db8b){if(!_0x47db8b[_0x4233('0x59')])return;const _0x7a20c9=(_0x47db8b=this[_0x4233('0x5d')](_0x47db8b,this['_diffRoots']))[_0x4233('0xde')]?_0x47db8b[_0x4233('0xde')]['root']:null,_0x43ee4a=_0x47db8b[_0x4233('0x20')]?_0x47db8b[_0x4233('0x20')][_0x4233('0x1f')]:null;_0x7a20c9&&this[_0x4233('0x1a')][_0x4233('0x19')](_0x47db8b['name']),_0x43ee4a&&this[_0x4233('0x1a')][_0x4233('0x92')](_0x47db8b[_0x4233('0xe')],_0x47db8b['newRange']['clone']());const _0x3b554c=null===_0x47db8b['_authorId']?null:_0x47db8b[_0x4233('0x103')]||this[_0x4233('0x4c')]['plugins'][_0x4233('0xb')](_0x4233('0xba'))['me']['id'],_0x5e3e39=_0x47db8b['name'];if(!this['_touchedMarkers'][_0x4233('0x27')](_0x5e3e39))return void this[_0x4233('0xca')]['set'](_0x5e3e39,{'range':_0x47db8b[_0x4233('0xde')],'userId':_0x3b554c});const _0x4632e3=this[_0x4233('0xca')][_0x4233('0xb')](_0x5e3e39),_0xd7371e=_0x4632e3[_0x4233('0x88')],_0xf13100=_0x47db8b[_0x4233('0x20')];null==_0xd7371e&&null==_0xf13100||_0xd7371e&&_0xf13100&&_0xd7371e[_0x4233('0x0')](_0xf13100)?this[_0x4233('0xca')][_0x4233('0x19')](_0x47db8b[_0x4233('0xe')]):_0x4632e3[_0x4233('0x3c')]=_0x3b554c;}['_handleRootOperation'](_0x3dbc48,_0x165fd2){this['_diffRoots'][_0x4233('0x27')](_0x3dbc48[_0x4233('0x9c')])?this[_0x4233('0xe7')][_0x4233('0xb')](_0x3dbc48[_0x4233('0x9c')])[_0x4233('0xa9')]=_0x3dbc48[_0x4233('0xb7')]:(this[_0x4233('0xe7')][_0x4233('0x92')](_0x3dbc48[_0x4233('0x9c')],G(_0x3dbc48['rootName'],!0x0)),this[_0x4233('0x6b')][_0x4233('0x92')](_0x3dbc48['rootName'],{}),_0x165fd2&&this[_0x4233('0xac')]['set'](_0x3dbc48[_0x4233('0x9c')],G(_0x3dbc48['rootName'],!0x0)));const _0x2f40a1=null===_0x3dbc48[_0x4233('0x103')]?null:_0x3dbc48[_0x4233('0x103')]||this[_0x4233('0x4c')][_0x4233('0x67')][_0x4233('0xb')](_0x4233('0xba'))['me']['id'],_0x52435d=this[_0x4233('0xf9')]['get'](_0x3dbc48[_0x4233('0x9c')]);_0x52435d&&_0x52435d['userId']===_0x2f40a1?this['_touchedRoots'][_0x4233('0x19')](_0x3dbc48[_0x4233('0x9c')]):this[_0x4233('0xf9')]['set'](_0x3dbc48[_0x4233('0x9c')],{'userId':_0x2f40a1,'isAttached':_0x3dbc48[_0x4233('0xb7')]});}[_0x4233('0x1d')](_0x57cd0b){const _0x3963b4=this[_0x4233('0x6b')][_0x4233('0xb')](_0x57cd0b['root']['rootName']);null===_0x57cd0b['newValue']?delete _0x3963b4[_0x57cd0b[_0x4233('0x52')]]:_0x3963b4[_0x57cd0b[_0x4233('0x52')]]=_0x57cd0b[_0x4233('0xd')];}}function q(_0x2036c5){const _0x5ceca0=G(_0x2036c5[_0x4233('0x9c')],_0x2036c5['isAttached']());for(const _0x2884e9 of _0x2036c5[_0x4233('0x11')]()){const _0x56fa10=_0x2884e9[_0x4233('0x8b')](!0x0);_0x5ceca0[_0x4233('0xd3')](_0x56fa10);}return _0x5ceca0;}function G(_0x363775,_0x437aaf=!0x0){const _0x53746e=new _0x52d8b();return _0x53746e[_0x4233('0x9c')]=_0x363775,_0x53746e[_0x4233('0xa9')]=_0x437aaf,_0x53746e['isAttached']=()=>_0x53746e[_0x4233('0xa9')],_0x53746e;}function L(_0x4988c3,_0x4422bf,_0x3bac06){const _0x151607='elementEnd'==_0x4988c3[_0x4233('0xad')]?_0x3bac06[_0x4233('0xc7')](_0x4988c3[_0x4233('0xce')],_0x4233('0xaf')):_0x3bac06[_0x4233('0xc9')](_0x4988c3[_0x4233('0xce')]);return _0x3bac06['createPositionFromPath'](_0x4422bf,_0x151607[_0x4233('0x100')],_0x151607['stickiness']);}function W(_0x5a0821,_0x2736c5,_0x3cee55){const _0x2e2001=_0x4233('0x6f')==_0x5a0821[_0x4233('0xad')]?_0x3cee55['createPositionAt'](_0x5a0821[_0x4233('0xce')],0x0):_0x3cee55[_0x4233('0xe2')](_0x5a0821['item']);return _0x3cee55[_0x4233('0xa3')](_0x2736c5,_0x2e2001[_0x4233('0x100')],_0x2e2001['stickiness']);}