@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231027.0 → 0.0.0-nightly-20231028.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 +6 -6
  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 _0x200e=['find','_handleMoveOperation','vid_start','parent','update','_handleRootAttributeOperation','_setAttribute','_startingVersion','afterInit','sort','get','_continueCurrentRevision','splitPosition','_makeModelFromViewString','_replaceEditorDataWithRevisionData','_touchedRoots','slice','_isPendingUpdate','startsWith','element','nodeAfter','reverse','getAttributes','push','pluginName','_getFromVersion','RevisionTracker','_getState','_prepareViewToSave','adapter','roots','documentFragment','path','_revisionId','vid','baseVersion','_setConversion','config','_pendingAction','stickiness','getTransformedByOperation','_createCurrentRevision','_loadedStateData','_reset','_appendChild','removeRootAttribute','_transformMarkers','keepParagraph','upcast','_markChanges','_handleMarkerOperation','Empty\x20document','_calculateMetaData','repository','revision-end','root','previousPosition','_getBaseVids','toModel','_handleOperation','RevisionsRepository','addRootAttribute','document','creatorId','PendingActions','vid_end','name','_clone','_removeRevisionMarkers','NEGATIVE_INFINITY','resolve','processor','move','saveRevision','clone','howMany','buildRevisionData','type','bind','rootName','source','size','define','_createInitialRevision','clear','init','newRange','_fixOperation','$graveyard','getAncestors','authorsIds','_touched','userId','rootsAttributes','map','set','for','_lastTo','_diffRoots','_lastFrom','_removePendingAction','collaboration.channelId','createRange','reInit','data','_isAttached','filter','fromVersion','markers','_makeRevision','_baseIdsRoots','deletions','_baseRootsAttributes','_copyMarkers','createPositionFromPath','_fixPosition','oldRange','editing','start','_idsRoots','_handleMergeOperation','attachChange','_handleSplitOperation','useFillerType','_diffRootsAttributes','getRevision','marked','revisionHistory.resumeUnsavedRevision','getRevisions','toView','plugins','getNodeByPath','markerToData','insert','attributesAfter','_getViewJson','marker','createPositionAfter','from','_touchedMarkers','parse','PENDING_ACTION_REVISION_HISTORY','addRoot','getMovedRangeStart','_applyOperations','merge','_execute','_handleInsertOperation','affectsData','getUser','remove','_initialRevisionId','loadState','ready','_processRootBeforeSave','locale','_operations','_findInsertionIndex','insertions','_authorId','_handleRootOperation','add','_cloneOperation','authors','_saveMetaData','toVersion','createPositionAt','key','createdAt','_isInit','_addPendingAction','_makeIdsRoot','forEach','editor','isEnabled','changeRootAttribute','_fixRange','deletion','version','detachRoot','position','delete','getTime','creator','_getVidAttributeName','addRevisionData','trim','insertion','elementStart','currentRevision','_source','some','getRevisionRootsAttributes','_loadState','tableCell','offsetSize','string','_revisionDataBuilder','data-revision-','keys','Users','setRevisionData','newValue','_markers','isEqual','$text','graveyardPosition','getAttribute','attributesBefore','isAdd','_createFromRanges','targetPosition','_bufferUpdate','_baseRoots','getData','createRangeIn','offset','length','_savedMetaData','_update','diffData','split','_removeMetaData','Initial\x20revision','elementEnd','getWalker','item','_startingRevisionId','initialData','updateRevisions','revision:','attributes','_generateTape','getChild','getCurrentRevisionId','getRootNames','_getPreviousFrom','isAttached','_loadRevisionData','sendBufferedUpdates','view','getOperation','_bufferedUpdates','end','getIndex','model','conversion','_insertChild','dataToMarker','isReady','getChildren','values','history','has','shift','children','getRoot'];(function(_0x31ab5d,_0x200e09){const _0x1f29bc=function(_0x14e5ff){while(--_0x14e5ff){_0x31ab5d['push'](_0x31ab5d['shift']());}};_0x1f29bc(++_0x200e09);}(_0x200e,0x134));const _0x1f29=function(_0x31ab5d,_0x200e09){_0x31ab5d=_0x31ab5d-0x0;let _0x1f29bc=_0x200e[_0x31ab5d];return _0x1f29bc;};import{Users as _0x321e13}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x3e8263,PendingActions as _0x26c8cd}from'ckeditor5/src/core';import{logWarning as _0x142348,uid as _0x417ca5}from'ckeditor5/src/utils';import{Position as _0x19e12c,Range as _0x2de140,Element as _0x28cd05,DocumentFragment as _0x4511db,ViewText as _0x594c3f,ViewElement as _0x16218f,ViewContainerElement as _0x2529b5,ViewAttributeElement as _0x5e3a86,ViewEmptyElement as _0x2c951f,ViewRawElement as _0x5c6b3e,ViewUIElement as _0x8bb71c,ViewDocumentFragment as _0x1fbff7}from'ckeditor5/src/engine';import _0x483f09 from'./revisionsrepository';import{getTranslation as _0x3119a5}from'./utils/common-translations';import{cloneDeep as _0x1b57dc,isEqual as _0x43a38b}from'lodash-es';const B={'c':_0x2529b5,'a':_0x5e3a86,'e':_0x2c951f,'r':_0x5c6b3e,'u':_0x8bb71c};export default class l extends _0x3e8263{static get[_0x1f29('0xe6')](){return _0x1f29('0xe8');}static get['requires'](){return[_0x321e13,_0x483f09,_0x26c8cd];}constructor(_0x3fac25){super(_0x3fac25),this['adapter']=null,this[_0x1f29('0x8a')]=null,this['_revisionDataBuilder']=new H(this[_0x1f29('0x7a')]),this['_initialRevisionId']=this[_0x1f29('0x7a')]['config'][_0x1f29('0xd8')](_0x1f29('0x32'))||'initial',this[_0x1f29('0xbf')]=new Map(),this[_0x1f29('0xf8')]=null;const _0x5bc68c=_0x417ca5();this['_source']={'history':this[_0x1f29('0x7a')]['model'][_0x1f29('0xb')][_0x1f29('0xc9')],'getLatestVersion':()=>Promise[_0x1f29('0x13')](this[_0x1f29('0x7a')]['model']['document'][_0x1f29('0x7f')]),'getCurrentRevisionId':()=>_0x5bc68c},this['set']('isReady',!0x1),this[_0x1f29('0x2c')](_0x1f29('0x7b'),!0x0),this['set'](_0x1f29('0xdf'),!0x1),this[_0x1f29('0x7a')][_0x1f29('0xf3')][_0x1f29('0x1f')](_0x1f29('0x4c'),!0x0),this[_0x1f29('0x7a')][_0x1f29('0xc3')][_0x1f29('0x2d')](_0x1f29('0xfe'))[_0x1f29('0xc5')]({'view':'revision'});}['init'](){this['repository']=this[_0x1f29('0x7a')]['plugins'][_0x1f29('0xd8')](_0x1f29('0x9')),this['_setConversion'](),this['editor'][_0x1f29('0x35')]['on'](_0x1f29('0x66'),()=>{const _0x4fe4e2=this[_0x1f29('0x2')][_0x1f29('0x4a')](0x0),_0x4fcb7f=_0x4fe4e2&&null===_0x4fe4e2[_0x1f29('0x84')]?_0x4fe4e2:null;if(this[_0x1f29('0xd9')]=!!_0x4fcb7f&&this[_0x1f29('0x7a')][_0x1f29('0xf3')][_0x1f29('0xd8')]('revisionHistory.resumeUnsavedRevision'),this[_0x1f29('0x7a')][_0x1f29('0x4f')]['has']('RealTimeCollaborationClient')){const _0x527166=this[_0x1f29('0x8b')]['getCurrentRevisionId'](),_0xb04883=this[_0x1f29('0x2')][_0x1f29('0x4a')](_0x527166);if(_0xb04883)this[_0x1f29('0xd5')]=_0xb04883[_0x1f29('0x38')],this[_0x1f29('0xd9')]=!0x1;else{const _0x360cbd=this[_0x1f29('0x8b')]['history'][_0x1f29('0x69')]['find'](_0x479cb5=>!_0x479cb5[_0x1f29('0x76')]),_0x5f14fa=_0x360cbd?_0x360cbd[_0x1f29('0xf1')]:this[_0x1f29('0x8b')][_0x1f29('0xc9')]['version'];_0x4fe4e2?(_0x4fe4e2['toVersion']<_0x5f14fa&&_0x4fe4e2['_update']({'toVersion':_0x5f14fa}),this[_0x1f29('0xd9')]?(this[_0x1f29('0x8b')][_0x1f29('0xb7')]=()=>_0x4fcb7f['id'],this[_0x1f29('0xd5')]=_0x4fcb7f[_0x1f29('0x38')]):(this[_0x1f29('0xd5')]=_0x4fe4e2[_0x1f29('0x72')],this[_0x1f29('0xd9')]=!0x1)):(this[_0x1f29('0xd5')]=_0x5f14fa,this[_0x1f29('0xd9')]=!0x1);}}else _0x4fcb7f&&(this[_0x1f29('0x7a')][_0x1f29('0xc2')][_0x1f29('0xb')]['history'][_0x1f29('0x7f')]=Math['max'](_0x4fcb7f[_0x1f29('0x72')],this['editor'][_0x1f29('0xc2')]['document'][_0x1f29('0xc9')]['version']),_0x4fcb7f['fromVersion']===_0x4fcb7f[_0x1f29('0x72')]?(0x0!==_0x4fcb7f['fromVersion']&&(this[_0x1f29('0x8b')][_0x1f29('0xb7')]=()=>_0x4fcb7f['id']),this[_0x1f29('0xd9')]=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4fcb7f['id'],this[_0x1f29('0xd5')]=_0x4fcb7f[_0x1f29('0x38')])),this[_0x1f29('0xd9')]||(this[_0x1f29('0xd5')]=this[_0x1f29('0x7a')][_0x1f29('0xc2')][_0x1f29('0xb')][_0x1f29('0x7f')]);this[_0x1f29('0x92')][_0x1f29('0x22')](this[_0x1f29('0x8b')]['history']),this[_0x1f29('0x20')](this[_0x1f29('0xd5')]),this[_0x1f29('0xf7')](this[_0x1f29('0xd5')]),this[_0x1f29('0xeb')]&&this[_0x1f29('0xbc')]();}),this[_0x1f29('0x1b')](_0x1f29('0xc6'))['to'](this,_0x1f29('0xdf'),_0x2f9fda=>!_0x2f9fda);}async[_0x1f29('0xd6')](){if(this[_0x1f29('0x2')][_0x1f29('0xa6')]>0x0){const _0x3bec93=this[_0x1f29('0x2')][_0x1f29('0x4a')](0x0),_0x106d87=await this['getRevisionDocumentData'](_0x3bec93),_0x38de4f=await this[_0x1f29('0x8d')](_0x3bec93);this[_0x1f29('0xdc')](_0x106d87,_0x38de4f);}}['setSource'](_0xc2c6f3){this[_0x1f29('0x8b')]=_0xc2c6f3;}async[_0x1f29('0xd2')](){const _0x3d3439=await this[_0x1f29('0x8b')]['getLatestVersion']();if(_0x3d3439>this[_0x1f29('0x8a')][_0x1f29('0x72')]){await this[_0x1f29('0x8e')]();const _0x590be1=this[_0x1f29('0x19')]({'revision':this[_0x1f29('0x8a')],'to':_0x3d3439});_0x590be1[_0x1f29('0x70')]=_0x590be1[_0x1f29('0x27')]['map'](_0x314ff7=>this[_0x1f29('0x7a')][_0x1f29('0x4f')][_0x1f29('0xd8')](_0x1f29('0x95'))[_0x1f29('0x62')](_0x314ff7)),this[_0x1f29('0x8a')][_0x1f29('0xa8')](_0x590be1);}}async[_0x1f29('0x8e')](){this['_continueCurrentRevision']&&!this[_0x1f29('0xf8')]&&(await this['_loadRevisionData'](this[_0x1f29('0x8a')]),this['_revisionDataBuilder']['loadState'](this[_0x1f29('0x8a')]),this[_0x1f29('0xf8')]={'fromVersion':this['currentRevision']['fromVersion'],'authors':this[_0x1f29('0x8a')][_0x1f29('0x70')][_0x1f29('0xde')]()});}async[_0x1f29('0x16')](_0x2156d7={},_0x1946fc=null){const _0x3db560=[];await this[_0x1f29('0x8e')](),this[_0x1f29('0xd9')]=!0x1,_0x1946fc>this[_0x1f29('0x8a')]['toVersion']&&(_0x1946fc=null),null===_0x1946fc&&(_0x1946fc=await this[_0x1f29('0x8b')]['getLatestVersion']());const _0x3c0af0=this[_0x1f29('0xe7')](_0x1946fc),_0x389e86=this[_0x1f29('0x19')]({'from':_0x3c0af0,'to':_0x1946fc});if(this[_0x1f29('0x8a')]['toVersion']<_0x1946fc){const _0x15e79b=this[_0x1f29('0x19')]({'revision':this['currentRevision'],'from':_0x1946fc,'to':_0x1946fc});_0x15e79b[_0x1f29('0x70')]=[],_0x15e79b[_0x1f29('0x27')]=[],_0x15e79b['id']=this[_0x1f29('0x8a')]['id'],this[_0x1f29('0x8a')]['_update'](_0x15e79b,!0x0),delete _0x15e79b[_0x1f29('0x70')],_0x3db560['push'](_0x15e79b);}_0x2156d7[_0x1f29('0xc')]=this[_0x1f29('0x7a')][_0x1f29('0x4f')][_0x1f29('0xd8')]('Users')['me']['id'],_0x2156d7[_0x1f29('0xf')]=_0x2156d7[_0x1f29('0xf')]||null,_0x2156d7['id']=_0x2156d7['id']||_0x417ca5(),_0x2156d7={..._0x2156d7,..._0x389e86};const _0x499a66=this[_0x1f29('0x86')](_0x2156d7);_0x3db560[_0x1f29('0xe5')](_0x2156d7);const _0x1296a9=this[_0x1f29('0x2')][_0x1f29('0xc1')](_0x499a66);if(0x0!==_0x1296a9){const _0x5accb6=this['repository']['getRevision'](_0x1296a9-0x1);if(_0x5accb6[_0x1f29('0x38')]!==_0x1946fc){const _0x571baf=this[_0x1f29('0x92')][_0x1f29('0xa3')](_0x1946fc,_0x5accb6['toVersion']),_0x4720c0={'id':_0x5accb6['id'],'diffData':_0x571baf[_0x1f29('0xa9')],'authorsIds':_0x571baf['authorsIds'],'authors':_0x571baf['authorsIds'][_0x1f29('0x2b')](_0x596e95=>this[_0x1f29('0x7a')][_0x1f29('0x4f')]['get'](_0x1f29('0x95'))['getUser'](_0x596e95)),'fromVersion':_0x1946fc};_0x5accb6===this[_0x1f29('0x8a')]&&(_0x4720c0[_0x1f29('0x75')]=new Date(_0x2156d7[_0x1f29('0x75')][_0x1f29('0x83')]()+0xa)),_0x5accb6[_0x1f29('0xa8')](_0x4720c0,!0x0),delete _0x4720c0['authors'],_0x3db560[_0x1f29('0xe5')](_0x4720c0);}}if(this['adapter']){for(const _0x1c78e0 of _0x3db560)this[_0x1f29('0xa1')](_0x1c78e0['id'],_0x1c78e0,!0x0);this[_0x1f29('0xbc')]();}return _0x499a66;}[_0x1f29('0x86')](_0x1260fd){const _0x2d41da=this[_0x1f29('0x2')]['createRevision'](_0x1260fd);return this[_0x1f29('0xeb')]&&_0x2d41da['on'](_0x1f29('0xa8'),(_0x1c127d,_0x430dcc,_0x8f97fd)=>{_0x8f97fd||(this[_0x1f29('0xa1')](_0x430dcc['id'],_0x430dcc,!0x0),this[_0x1f29('0xbc')]());}),this[_0x1f29('0x2')]['addRevision'](_0x2d41da,this[_0x1f29('0x6a')](_0x2d41da)),_0x2d41da;}async['getRevisionDocumentData'](_0x490f5b){await this[_0x1f29('0xbb')](_0x490f5b);const _0x4f20fa={};for(const _0x252fb6 in _0x490f5b[_0x1f29('0xa9')]){if(_0x490f5b['diffData'][_0x252fb6][_0x1f29('0x46')]&&!_0x490f5b[_0x1f29('0xa9')][_0x252fb6][_0x1f29('0x46')]['isAttached'])continue;const _0x46b334=this[_0x1f29('0x11')](JSON[_0x1f29('0x59')](_0x490f5b[_0x1f29('0xa9')][_0x252fb6][_0x1f29('0x6b')])),_0xc7f6c3=this['editor']['editing'][_0x1f29('0xbd')][_0x1f29('0xb')],_0x2fb254=new _0x1fbff7(_0xc7f6c3,_0x46b334[_0x1f29('0x2b')](_0x37a7c5=>J(_0x37a7c5,this['editor'])));this[_0x1f29('0x7a')][_0x1f29('0x35')][_0x1f29('0x14')]['useFillerType'](_0x1f29('0x4b')),_0x4f20fa[_0x252fb6]=this[_0x1f29('0x7a')][_0x1f29('0x35')][_0x1f29('0x14')]['toData'](_0x2fb254),this[_0x1f29('0x7a')][_0x1f29('0x35')][_0x1f29('0x14')][_0x1f29('0x48')]('default');}return _0x4f20fa;}async['getRevisionRootsAttributes'](_0x57a6b4){await this[_0x1f29('0xbb')](_0x57a6b4);const _0x30cd39={};for(const _0x52eae3 in _0x57a6b4[_0x1f29('0xa9')])_0x57a6b4[_0x1f29('0xa9')][_0x52eae3]['attachChange']&&!_0x57a6b4[_0x1f29('0xa9')][_0x52eae3][_0x1f29('0x46')][_0x1f29('0xba')]||(_0x30cd39[_0x52eae3]=_0x57a6b4[_0x1f29('0xa9')][_0x52eae3][_0x1f29('0x53')]||{});return _0x30cd39;}[_0x1f29('0xbc')](){if(0x0===this[_0x1f29('0xbf')]['size'])return;if(this[_0x1f29('0xdf')])return;let _0x55d913=Array['from'](this[_0x1f29('0xbf')][_0x1f29('0xc8')]());this[_0x1f29('0xbf')][_0x1f29('0x21')]();for(let _0x5a814c=0x0;_0x5a814c<_0x55d913[_0x1f29('0xa6')];_0x5a814c++){const _0x16a24a=_0x55d913[_0x5a814c];let _0x1fc65a=!0x1;for(const _0x4b43fb of Object['keys'](_0x16a24a))void 0x0===_0x16a24a[_0x4b43fb]?delete _0x16a24a[_0x4b43fb]:'id'!==_0x4b43fb&&(_0x1fc65a=!0x0);_0x1fc65a||(_0x55d913[_0x5a814c]=null);}if(_0x55d913=_0x55d913[_0x1f29('0x37')](_0x569836=>null!==_0x569836),!_0x55d913[_0x1f29('0xa6')])return;for(let _0xe76265=0x0;_0xe76265<_0x55d913[_0x1f29('0xa6')];_0xe76265++){const _0x48b261=_0x55d913[_0xe76265];void 0x0!==_0x48b261['fromVersion']&&void 0x0===_0x48b261[_0x1f29('0x72')]&&(_0x48b261['toVersion']=this['repository'][_0x1f29('0x4a')](_0x48b261['id'])[_0x1f29('0x72')]),void 0x0!==_0x48b261['toVersion']&&void 0x0===_0x48b261[_0x1f29('0x38')]&&(_0x48b261[_0x1f29('0x38')]=this[_0x1f29('0x2')][_0x1f29('0x4a')](_0x48b261['id'])[_0x1f29('0x38')]);}const _0x568f50=this[_0x1f29('0x7a')][_0x1f29('0xf3')][_0x1f29('0xd8')](_0x1f29('0x32'));this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this[_0x1f29('0xeb')][_0x1f29('0xb2')](_0x55d913,_0x568f50)['finally'](()=>{this[_0x1f29('0xdf')]=!0x1;})['then'](_0x4955af=>{if(_0x4955af)for(const _0x39bc1b of _0x4955af)this[_0x1f29('0x96')]({'id':_0x39bc1b['id'],'createdAt':_0x39bc1b[_0x1f29('0x75')]});this[_0x1f29('0x31')](),this[_0x1f29('0xbc')]();});}[_0x1f29('0xdc')](_0x1b5c92,_0x37cfeb){let _0x49e05d=this[_0x1f29('0x7a')][_0x1f29('0xf3')][_0x1f29('0xd8')](_0x1f29('0xb1')),_0x41680e=this[_0x1f29('0x7a')][_0x1f29('0xf3')][_0x1f29('0xd8')](_0x1f29('0x2a'));if(void 0x0===_0x49e05d){_0x49e05d={};for(const _0xc026eb of this['editor'][_0x1f29('0xc2')][_0x1f29('0xb')][_0x1f29('0xb8')]())_0x49e05d[_0xc026eb]='';}if(_0x1f29('0x91')==typeof _0x49e05d&&(_0x49e05d={'main':_0x49e05d}),void 0x0===_0x41680e){_0x41680e={};for(const _0x400d23 of this['editor']['model']['document'][_0x1f29('0xb8')]())_0x41680e[_0x400d23]={};}let _0x3b6905=!0x1;const _0x54353f=Object[_0x1f29('0x94')](_0x49e05d),_0x457065=Object[_0x1f29('0x94')](_0x1b5c92);for(const _0x2e326b of _0x54353f){if(_0x49e05d[_0x2e326b]!==_0x1b5c92[_0x2e326b]&&''!==_0x49e05d[_0x2e326b][_0x1f29('0x87')]()){_0x3b6905=!0x0;break;}if(!_0x43a38b(_0x41680e[_0x2e326b],_0x37cfeb[_0x2e326b])&&Object[_0x1f29('0x94')](_0x41680e[_0x2e326b])[_0x1f29('0xa6')]>0x0){_0x3b6905=!0x0;break;}}_0x3b6905||(_0x3b6905=_0x457065[_0x1f29('0x8c')](_0x12a87e=>!this[_0x1f29('0x7a')][_0x1f29('0xc2')][_0x1f29('0xb')][_0x1f29('0xcd')](_0x12a87e))),_0x3b6905&&_0x142348('editor-initial-data-replaced-with-revision-data',{'editorData':_0x49e05d,'editorRootsAttributes':_0x41680e,'revisionData':_0x1b5c92,'revisionRootsAttributes':_0x37cfeb}),this['editor'][_0x1f29('0xf3')][_0x1f29('0x2c')](_0x1f29('0xb1'),_0x1b5c92),this[_0x1f29('0x7a')][_0x1f29('0xf3')][_0x1f29('0x2c')]('rootsAttributes',_0x37cfeb);}[_0x1f29('0x77')](){if(!this[_0x1f29('0xf4')]){const _0x273618=this['editor']['plugins'][_0x1f29('0xd8')](_0x1f29('0xd'));this[_0x1f29('0xf4')]=_0x273618[_0x1f29('0x6e')](_0x3119a5(this[_0x1f29('0x7a')][_0x1f29('0x68')],_0x1f29('0x5a')));}}[_0x1f29('0x31')](){this[_0x1f29('0xf4')]&&(this[_0x1f29('0x7a')][_0x1f29('0x4f')][_0x1f29('0xd8')]('PendingActions')[_0x1f29('0x63')](this['_pendingAction']),this['_pendingAction']=null);}[_0x1f29('0x6a')](_0x5c8646){const _0x30bd73=this[_0x1f29('0x2')][_0x1f29('0x4d')]();_0x30bd73[_0x1f29('0xe3')]();let _0x11b1d6=0x0;for(;_0x11b1d6<_0x30bd73[_0x1f29('0xa6')];){const _0x34abf3=_0x30bd73[_0x11b1d6];if(_0x34abf3===this[_0x1f29('0x8a')]){_0x11b1d6++;continue;}if(_0x34abf3['id']===this[_0x1f29('0x64')])break;const _0x2ca914=_0x5c8646[_0x1f29('0x72')]-_0x34abf3[_0x1f29('0x72')]||_0x5c8646['fromVersion']-_0x34abf3[_0x1f29('0x38')];if(_0x2ca914>0x0)break;if(_0x2ca914<0x0)_0x11b1d6++;else{if(!_0x5c8646[_0x1f29('0x84')]&&_0x34abf3[_0x1f29('0x84')])break;if(_0x34abf3[_0x1f29('0x84')]||!_0x5c8646[_0x1f29('0x84')]){if(_0x5c8646[_0x1f29('0x75')]>_0x34abf3[_0x1f29('0x75')])break;_0x11b1d6++;}else _0x11b1d6++;}}return _0x11b1d6;}['setRevisionData'](_0x244442){const _0x5a3b6c=this[_0x1f29('0x2')]['getRevision'](_0x244442['id']);if(_0x244442['createdAt']&&(_0x244442['createdAt']=new Date(_0x244442[_0x1f29('0x75')])),_0x244442[_0x1f29('0x27')]){const _0x209415=this[_0x1f29('0x7a')][_0x1f29('0x4f')][_0x1f29('0xd8')]('Users');_0x244442['authors']=_0x244442[_0x1f29('0x27')][_0x1f29('0x2b')](_0x69297b=>_0x209415[_0x1f29('0x62')](_0x69297b));}_0x5a3b6c[_0x1f29('0xa8')](_0x244442,!0x0);}['buildRevisionData']({revision:_0x658b1f=null,from:_0xb72fa9=null,to:_0x3a4120=null}){_0xb72fa9=null!==_0xb72fa9?_0xb72fa9:_0x658b1f[_0x1f29('0x38')],_0x3a4120=null!==_0x3a4120?_0x3a4120:_0x658b1f['toVersion'];const _0x505ef8=this[_0x1f29('0x92')][_0x1f29('0xa3')](_0xb72fa9,_0x3a4120),_0x3431b9={'diffData':_0x505ef8['diffData'],'authorsIds':_0x505ef8['authorsIds'],'fromVersion':_0xb72fa9,'toVersion':_0x3a4120};if(!_0x658b1f||_0x3a4120!==_0x658b1f['toVersion']){const _0x34e6da=_0x3a4120-0x1,_0x418307=this['_source'][_0x1f29('0xc9')][_0x1f29('0xbe')](_0x34e6da);_0x3431b9[_0x1f29('0x75')]=_0x418307&&_0x418307[_0x1f29('0x75')]||new Date();}if(this[_0x1f29('0xf8')]&&_0xb72fa9===this[_0x1f29('0xf8')][_0x1f29('0x38')])for(const _0x5da380 of this['_loadedStateData'][_0x1f29('0x70')])_0x3431b9[_0x1f29('0x27')]['includes'](_0x5da380['id'])||_0x3431b9[_0x1f29('0x27')][_0x1f29('0xe5')](_0x5da380['id']);return _0x3431b9;}[_0x1f29('0xbb')](_0x36816a){if(!_0x36816a||_0x36816a[_0x1f29('0xa9')])return Promise['resolve']();{const _0x1b7758=this[_0x1f29('0x7a')]['config'][_0x1f29('0xd8')](_0x1f29('0x32'));return this[_0x1f29('0xeb')][_0x1f29('0x4a')]({'channelId':_0x1b7758,'revisionId':_0x36816a['id']})['then'](_0x31d360=>{_0x36816a[_0x1f29('0xa9')]=_0x31d360[_0x1f29('0xa9')];});}}[_0x1f29('0xa1')](_0x54acc8,_0x225e51,_0x46eb3c){if(this[_0x1f29('0xbf')]['has'](_0x54acc8)){const _0x636291=this[_0x1f29('0xbf')]['get'](_0x54acc8);_0x225e51=_0x46eb3c?{..._0x636291,..._0x225e51}:{..._0x225e51,..._0x636291};}this[_0x1f29('0xbf')][_0x1f29('0x2c')](_0x54acc8,_0x225e51);}[_0x1f29('0xe7')](_0x3866d1){const _0x10fd57=this[_0x1f29('0x2')][_0x1f29('0x4d')]();_0x10fd57[_0x1f29('0xe3')](),_0x10fd57[_0x1f29('0xcb')]();const _0x2838bd=_0x10fd57[_0x1f29('0xce')](_0x41a1b2=>_0x41a1b2[_0x1f29('0x72')]<=_0x3866d1)[_0x1f29('0x72')];return _0x2838bd<this['_startingVersion']?this[_0x1f29('0xd5')]:_0x2838bd;}[_0x1f29('0x20')](_0x228428){const _0x4a9bbd=this['repository'][_0x1f29('0x4a')](this['repository'][_0x1f29('0xa6')]-0x1);if(_0x4a9bbd)this[_0x1f29('0x64')]=_0x4a9bbd['id'];else{const _0x1ad74b=!this[_0x1f29('0x7a')][_0x1f29('0xc2')][_0x1f29('0xb')]['roots'][_0x1f29('0xce')](_0x1d6e3c=>this[_0x1f29('0x7a')][_0x1f29('0xc2')]['hasContent'](_0x1d6e3c)),_0x4db3dc=this[_0x1f29('0x7a')]['plugins'][_0x1f29('0xd8')](_0x1f29('0x95'))['me']['id'],_0x44dc5d=_0x3119a5(this[_0x1f29('0x7a')][_0x1f29('0x68')],_0x1ad74b?_0x1f29('0x0'):_0x1f29('0xac'));this[_0x1f29('0x3a')]({'from':_0x228428,'to':_0x228428,'id':this['_initialRevisionId'],'name':_0x44dc5d,'creatorId':_0x4db3dc});}}[_0x1f29('0xf7')](_0x3c408d){const _0x2e8808=this[_0x1f29('0x8b')][_0x1f29('0xb7')]();this[_0x1f29('0x8a')]=this[_0x1f29('0x2')][_0x1f29('0x4a')](_0x2e8808),this[_0x1f29('0x8a')]||(this[_0x1f29('0x8a')]=this['_makeRevision']({'from':_0x3c408d,'to':_0x3c408d,'id':_0x2e8808,'name':'','creatorId':null}));}[_0x1f29('0x3a')]({name:_0x3dd255,from:_0x2705bd,to:_0x127986,creatorId:_0x18e653,id:_0x3dba9f}){const _0x547ef1=this[_0x1f29('0x19')]({'from':_0x2705bd,'to':_0x127986});_0x547ef1['name']=_0x3dd255,_0x547ef1['creatorId']=_0x18e653,_0x547ef1['id']=_0x3dba9f;const _0x5792c8=this[_0x1f29('0x86')](_0x547ef1);return this[_0x1f29('0xeb')]&&this[_0x1f29('0xa1')](_0x547ef1['id'],_0x547ef1,!0x0),_0x5792c8;}[_0x1f29('0xf2')](){this[_0x1f29('0x7a')]['conversion']['for']('dataDowncast')[_0x1f29('0x51')]({'model':'revision'});}[_0x1f29('0x11')](_0x37f347){return(_0x37f347=_0x37f347[_0x1f29('0x37')](_0x41aa6b=>!_0x41aa6b[_0x1f29('0xf')]||'revision-start'!==_0x41aa6b[_0x1f29('0xf')]&&_0x1f29('0x3')!==_0x41aa6b[_0x1f29('0xf')]))[_0x1f29('0x79')](_0x30e85b=>{_0x1f29('0x91')!=typeof _0x30e85b&&(_0x30e85b[_0x1f29('0xcc')]=this[_0x1f29('0x11')](_0x30e85b['children']),_0x30e85b[_0x1f29('0xb4')]=_0x30e85b['attributes']['filter'](_0x120205=>!_0x120205[0x0][_0x1f29('0xe0')](_0x1f29('0x93'))));}),_0x37f347;}}function J(_0x296803,_0x59547d){const _0x1d3d90=_0x59547d[_0x1f29('0x42')][_0x1f29('0xbd')][_0x1f29('0xb')];if(_0x1f29('0x91')==typeof _0x296803)return new _0x594c3f(_0x1d3d90,_0x296803);{const _0x3864a9=_0x296803[_0x1f29('0xcc')][_0x1f29('0x2b')](_0x4db38b=>J(_0x4db38b,_0x59547d));return new(B[_0x296803[(_0x1f29('0x1a'))]]||_0x16218f)(_0x1d3d90,_0x296803[_0x1f29('0xf')],_0x296803['attributes'],_0x3864a9);}}class H{constructor(_0x5998f7){this['editor']=_0x5998f7,this[_0x1f29('0xa7')]=new Map(),this[_0x1f29('0x30')]=-0x1,this[_0x1f29('0x2e')]=-0x1,this[_0x1f29('0x98')]=new Map(),this[_0x1f29('0x2f')]=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x1f29('0x44')]=new Map(),this[_0x1f29('0x3b')]=new Map(),this[_0x1f29('0x28')]=new Map(),this[_0x1f29('0x58')]=new Map(),this[_0x1f29('0xdd')]=new Map(),this[_0x1f29('0xef')]=0x1;}[_0x1f29('0x22')](_0x3cc63b){this['source']=_0x3cc63b;const _0x40f6c9=new Map(),_0x22c20d=new Map(),_0x7a6d62=this[_0x1f29('0x7a')][_0x1f29('0xc2')][_0x1f29('0xb')][_0x1f29('0xec')][_0x1f29('0x2b')](_0x436648=>_0x436648[_0x1f29('0x1c')]);for(const _0x403be2 of _0x7a6d62){const _0x199d6c=this[_0x1f29('0x7a')][_0x1f29('0xc2')][_0x1f29('0xb')][_0x1f29('0xcd')](_0x403be2),_0x20c5da=q(_0x199d6c);_0x40f6c9['set'](_0x403be2,_0x20c5da),_0x22c20d[_0x1f29('0x2c')](_0x403be2,Object['fromEntries'](_0x199d6c[_0x1f29('0xe4')]()));}const _0x58b9d1=Array[_0x1f29('0x57')](this[_0x1f29('0x7a')][_0x1f29('0xc2')][_0x1f29('0x39')])[_0x1f29('0x2b')](_0x295ff2=>[_0x295ff2['name'],_0x295ff2['getRange']()]),_0x2ae40b=this['source'][_0x1f29('0x7f')];this[_0x1f29('0x71')](_0x2ae40b,_0x40f6c9,_0x58b9d1,_0x22c20d),this[_0x1f29('0xb0')]=this[_0x1f29('0xef')];const _0x56eb01=new Map(),_0x4406d4=new Map();for(const _0x2a8da0 of _0x7a6d62){const _0x3a3796=G(_0x2a8da0);_0x56eb01[_0x1f29('0x2c')](_0x2a8da0,_0x3a3796),_0x4406d4[_0x1f29('0x2c')](_0x2a8da0,{});}this[_0x1f29('0x71')](Number[_0x1f29('0x12')],_0x56eb01,[],_0x4406d4);}[_0x1f29('0xa3')](_0x46c258,_0x201a04){if(this[_0x1f29('0x30')]===_0x46c258&&this['_lastTo']<=_0x201a04)this['_savedMetaData'][_0x1f29('0x1e')]>0x1&&this[_0x1f29('0xab')](this['_lastTo']),this[_0x1f29('0x5d')](this[_0x1f29('0x2e')],_0x201a04,!0x0);else{if(!this[_0x1f29('0xa7')][_0x1f29('0xca')](_0x46c258)){const _0x262f75=this[_0x1f29('0xb9')](_0x46c258);this[_0x1f29('0x1')](_0x262f75,_0x46c258,!0x1);}this[_0x1f29('0x1')](_0x46c258,_0x201a04,!0x0);}return this[_0x1f29('0x30')]=_0x46c258,this[_0x1f29('0x2e')]=_0x201a04,this[_0x1f29('0xe9')]();}[_0x1f29('0x65')](_0x1c0a68){this[_0x1f29('0xf9')](),this[_0x1f29('0x30')]=_0x1c0a68['fromVersion'],this[_0x1f29('0x2e')]=_0x1c0a68[_0x1f29('0x72')];for(const _0x2aaba4 in _0x1c0a68[_0x1f29('0xa9')]){const _0x3e4e6d=_0x1c0a68[_0x1f29('0xa9')][_0x2aaba4][_0x1f29('0x46')],_0xf24c93=_0x1b57dc(_0x1c0a68[_0x1f29('0xa9')][_0x2aaba4][_0x1f29('0x9d')])||{},_0x5df279=this[_0x1f29('0xdb')](_0x1c0a68[_0x1f29('0xa9')][_0x2aaba4][_0x1f29('0x3c')]);_0x5df279[_0x1f29('0x1c')]=_0x2aaba4,_0x5df279[_0x1f29('0x36')]=!_0x3e4e6d||!_0x3e4e6d['isAttached'],_0x5df279[_0x1f29('0xba')]=()=>_0x5df279[_0x1f29('0x36')],this[_0x1f29('0xa2')][_0x1f29('0x2c')](_0x2aaba4,_0x5df279),this[_0x1f29('0x3d')][_0x1f29('0x2c')](_0x2aaba4,_0xf24c93),_0x3e4e6d&&this['_touchedRoots'][_0x1f29('0x2c')](_0x2aaba4,_0x3e4e6d);const _0x94471f=this['_makeIdsRoot'](_0x5df279);this[_0x1f29('0x3b')][_0x1f29('0x2c')](_0x2aaba4,_0x94471f);for(const [_0x5b695b,_0x51a1c1]of _0x5df279[_0x1f29('0x39')]){if(!_0x5b695b[_0x1f29('0xe0')](_0x1f29('0xb3')))continue;const _0x45182c=_0x5b695b[_0x1f29('0xaa')](':')[0x2];for(const _0x56c5aa of _0x51a1c1[_0x1f29('0xae')]({'singleCharacters':!0x0})){const _0x4932e0=this['_getVidAttributeName'](_0x56c5aa),_0x1e61cb=_0x1f29('0xad')==_0x56c5aa[_0x1f29('0x1a')]?_0x56c5aa[_0x1f29('0x5')][_0x1f29('0xee')]['slice'](0x0,-0x1):_0x56c5aa['previousPosition']['path'],_0x5b5774=_0x94471f['getNodeByPath'](_0x1e61cb)[_0x1f29('0x9c')](_0x4932e0);this['_touched'][_0x1f29('0x2c')](_0x5b5774,{'userId':_0x45182c});}}}this[_0x1f29('0xb0')]=this[_0x1f29('0xef')];const _0x243cc3=[...Array(this[_0x1f29('0xef')])[_0x1f29('0x94')]()][_0x1f29('0xde')](0x1)[_0x1f29('0x37')](_0x162000=>!this[_0x1f29('0x28')][_0x1f29('0xca')](_0x162000));let _0x8e3657=0x0;const _0x286797=new Map();for(const _0x4c5a24 in _0x1c0a68[_0x1f29('0xa9')]){const _0x1e9b60=_0x1c0a68[_0x1f29('0xa9')][_0x4c5a24][_0x1f29('0x46')],_0x23cfeb=_0x1b57dc(_0x1c0a68[_0x1f29('0xa9')][_0x4c5a24][_0x1f29('0x53')])||{},_0x2c69fb=this[_0x1f29('0xdb')](_0x1c0a68['diffData'][_0x4c5a24]['insertions']);_0x2c69fb[_0x1f29('0x1c')]=_0x4c5a24,_0x2c69fb['_isAttached']=!_0x1e9b60||_0x1e9b60[_0x1f29('0xba')],_0x2c69fb[_0x1f29('0xba')]=()=>_0x2c69fb[_0x1f29('0x36')],this[_0x1f29('0x2f')][_0x1f29('0x2c')](_0x4c5a24,_0x2c69fb),this[_0x1f29('0x49')]['set'](_0x4c5a24,_0x23cfeb);const _0x29348c=this[_0x1f29('0x78')](_0x2c69fb,Number[_0x1f29('0x12')]);this['_idsRoots']['set'](_0x4c5a24,_0x29348c),_0x286797['set'](_0x4c5a24,_0x2c69fb[_0x1f29('0xba')]()?_0x23cfeb:{});for(const [_0x17ec72,_0x20190a]of _0x2c69fb[_0x1f29('0x39')]){if(!_0x17ec72[_0x1f29('0xe0')]('revision:'))continue;const _0x24f0d2=_0x17ec72[_0x1f29('0xaa')](':')[0x2];for(const _0x8ea1f6 of _0x20190a['getWalker']({'singleCharacters':!0x0})){const _0x2f1728=this[_0x1f29('0x85')](_0x8ea1f6),_0x556b2a=this[_0x1f29('0xef')]++,_0x58044c=_0x1f29('0xad')==_0x8ea1f6[_0x1f29('0x1a')]?_0x8ea1f6['previousPosition'][_0x1f29('0xee')]['slice'](0x0,-0x1):_0x8ea1f6[_0x1f29('0x5')][_0x1f29('0xee')];_0x29348c['getNodeByPath'](_0x58044c)['_setAttribute'](_0x2f1728,_0x556b2a),this[_0x1f29('0x28')]['set'](_0x556b2a,{'userId':_0x24f0d2});}}for(const _0x4ad030 of this['editor'][_0x1f29('0xc2')][_0x1f29('0xa4')](_0x2c69fb)[_0x1f29('0xae')]({'singleCharacters':!0x0})){const _0x295d6e=this[_0x1f29('0x85')](_0x4ad030),_0x36ab69=_0x1f29('0xad')==_0x4ad030[_0x1f29('0x1a')]?_0x4ad030[_0x1f29('0x5')]['path'][_0x1f29('0xde')](0x0,-0x1):_0x4ad030[_0x1f29('0x5')][_0x1f29('0xee')],_0x3bd169=_0x29348c[_0x1f29('0x50')](_0x36ab69);_0x3bd169['getAttribute'](_0x295d6e)>0x0||_0x3bd169[_0x1f29('0xd4')](_0x295d6e,_0x243cc3[_0x8e3657++]);}for(const [_0x4d0ff2,_0xa08f2e]of _0x2c69fb[_0x1f29('0x39')])_0x4d0ff2[_0x1f29('0xe0')](_0x1f29('0xb3'))||this[_0x1f29('0x98')]['set'](_0x4d0ff2,_0xa08f2e);}const _0x2f1cc8=G(_0x1f29('0x25'));this['_baseRoots'][_0x1f29('0x2c')](_0x1f29('0x25'),_0x2f1cc8),this['_baseIdsRoots'][_0x1f29('0x2c')](_0x1f29('0x25'),this[_0x1f29('0x78')](_0x2f1cc8,0x1));const _0x2747e4=G(_0x1f29('0x25'));this[_0x1f29('0x2f')]['set'](_0x1f29('0x25'),_0x2747e4),this[_0x1f29('0x44')][_0x1f29('0x2c')](_0x1f29('0x25'),this[_0x1f29('0x78')](_0x2747e4,0x1));const _0x2efe6c=Array[_0x1f29('0x57')](this['_diffRoots'])[_0x1f29('0x2b')](([_0x39814f,_0x45bada])=>[_0x39814f,q(_0x45bada)]);this['_saveMetaData'](this[_0x1f29('0x2e')],_0x2efe6c,this['_markers'],_0x286797);}[_0x1f29('0xdb')](_0x148967){const _0xbb70d9=JSON[_0x1f29('0x59')](_0x148967),_0x535ccf=this[_0x1f29('0x7a')][_0x1f29('0x42')]['view'][_0x1f29('0xb')],_0x5e2315=new _0x1fbff7(_0x535ccf,_0xbb70d9[_0x1f29('0x2b')](_0x231751=>J(_0x231751,this[_0x1f29('0x7a')])));return this[_0x1f29('0x7a')][_0x1f29('0x35')][_0x1f29('0x7')](_0x5e2315);}[_0x1f29('0x71')](_0x256c49,_0x3f7eca,_0x565671,_0xaf4d59){const _0x6e3105=new Map(_0x3f7eca),_0x201378=new Map(_0x1b57dc(_0xaf4d59)),_0x2d9b43=new Map();for(const [_0x538d93,_0x7cf2f0]of _0x565671)_0x2d9b43[_0x1f29('0x2c')](_0x538d93,{'start':_0x7cf2f0['start'][_0x1f29('0x17')](),'end':_0x7cf2f0[_0x1f29('0xc0')][_0x1f29('0x17')](),'rootName':_0x7cf2f0[_0x1f29('0x4')]['rootName']});this[_0x1f29('0xa7')][_0x1f29('0x2c')](_0x256c49,{'roots':_0x6e3105,'markers':_0x2d9b43,'rootsAttributes':_0x201378});}[_0x1f29('0xab')](_0x5e38bd){this[_0x1f29('0xa7')]['delete'](_0x5e38bd);}[_0x1f29('0x34')](){this[_0x1f29('0xf9')](),this['_lastFrom']=-0x1,this[_0x1f29('0x2e')]=-0x1,this[_0x1f29('0xa7')][_0x1f29('0x21')](),this['init'](this[_0x1f29('0x1d')]);}[_0x1f29('0xf9')](){this[_0x1f29('0x28')][_0x1f29('0x21')](),this['_touchedMarkers'][_0x1f29('0x21')](),this['_touchedRoots'][_0x1f29('0x21')](),this[_0x1f29('0x2f')][_0x1f29('0x21')](),this[_0x1f29('0x49')][_0x1f29('0x21')](),this[_0x1f29('0xa2')][_0x1f29('0x21')](),this[_0x1f29('0x3d')][_0x1f29('0x21')](),this[_0x1f29('0x44')][_0x1f29('0x21')](),this[_0x1f29('0x3b')][_0x1f29('0x21')](),this[_0x1f29('0x98')][_0x1f29('0x21')](),this[_0x1f29('0xef')]=0x1,this[_0x1f29('0xb0')]=this[_0x1f29('0xef')];}[_0x1f29('0x78')](_0x4a62bc,_0x2270b6=null){let _0x26243e=null;_0x4a62bc['is'](_0x1f29('0xed'))||(_0x26243e=new _0x28cd05(_0x4a62bc[_0x1f29('0xf')],{'vid_start':null===_0x2270b6?this[_0x1f29('0xef')]++:_0x2270b6++}));const _0x19c759=[];for(const _0x1b8157 of _0x4a62bc['getChildren']())if(_0x1b8157['is'](_0x1f29('0xe1'))){_0x19c759[_0x1f29('0xe5')](this[_0x1f29('0x78')](_0x1b8157,_0x2270b6));const _0x38fd96=_0x19c759[_0x19c759[_0x1f29('0xa6')]-0x1];null!==_0x2270b6&&(_0x2270b6=_0x38fd96['is'](_0x1f29('0xe1'),'$text')?_0x38fd96['getAttribute']('vid')+0x1:_0x38fd96[_0x1f29('0x9c')](_0x1f29('0xe'))+0x1);}else for(let _0x2ee088=0x0;_0x2ee088<_0x1b8157[_0x1f29('0x90')];_0x2ee088++)_0x19c759[_0x1f29('0xe5')](new _0x28cd05('$text',{'vid':null===_0x2270b6?this[_0x1f29('0xef')]++:_0x2270b6++}));if(_0x4a62bc['is']('documentFragment')){const _0x10fe74=G(_0x4a62bc['rootName']);return _0x10fe74['_insertChild'](0x0,_0x19c759),_0x10fe74;}return _0x26243e[_0x1f29('0xd4')](_0x1f29('0xe'),null===_0x2270b6?this['_revisionId']++:_0x2270b6++),_0x26243e[_0x1f29('0xc4')](0x0,_0x19c759),_0x26243e;}[_0x1f29('0x1')](_0x53b9d7,_0x4ae781,_0x55f694){this[_0x1f29('0xf9')]();const {roots:_0x199106,markers:_0x17372b,rootsAttributes:_0xf0ac01}=this[_0x1f29('0xa7')][_0x1f29('0xd8')](_0x53b9d7);this[_0x1f29('0xa2')]=new Map(_0x199106),this['_baseRootsAttributes']=new Map(_0x1b57dc(_0xf0ac01));for(const [_0x46dcd0,_0x4971c9]of this[_0x1f29('0xa2')])if(_0x1f29('0x25')!==_0x46dcd0&&(this[_0x1f29('0x2f')][_0x1f29('0x2c')](_0x46dcd0,q(_0x4971c9)),this[_0x1f29('0x49')]=new Map(_0x1b57dc(_0xf0ac01)),_0x55f694)){const _0x4d9f67=this[_0x1f29('0xef')];this['_idsRoots']['set'](_0x46dcd0,this[_0x1f29('0x78')](_0x4971c9)),this['_baseIdsRoots']['set'](_0x46dcd0,this['_makeIdsRoot'](_0x4971c9,_0x4d9f67));}this[_0x1f29('0xb0')]=this['_revisionId'],this[_0x1f29('0x2f')]['set'](_0x1f29('0x25'),q(this['_baseRoots'][_0x1f29('0xd8')]('$graveyard'))),_0x55f694&&this[_0x1f29('0x44')][_0x1f29('0x2c')](_0x1f29('0x25'),this['_makeIdsRoot'](this[_0x1f29('0xa2')][_0x1f29('0xd8')]('$graveyard')));for(const [_0x194ade,_0x3311e5]of _0x17372b){const _0x5aee49=this[_0x1f29('0xa2')][_0x1f29('0xd8')](_0x3311e5[_0x1f29('0x1c')]),_0x26fe11=this[_0x1f29('0x2f')][_0x1f29('0xd8')](_0x3311e5[_0x1f29('0x1c')]),_0x10edc4=new _0x2de140(this[_0x1f29('0x40')](_0x3311e5['start'],_0x5aee49),this[_0x1f29('0x40')](_0x3311e5[_0x1f29('0xc0')],_0x5aee49)),_0x20d46d=this['_fixRange'](_0x10edc4,_0x26fe11);_0x5aee49['markers'][_0x1f29('0x2c')](_0x194ade,_0x10edc4),this['_markers'][_0x1f29('0x2c')](_0x194ade,_0x20d46d);}this[_0x1f29('0x5d')](_0x53b9d7,_0x4ae781,_0x55f694);}[_0x1f29('0x5d')](_0x282039,_0x4ebacf,_0x2161c8){for(const _0x309f5e of this[_0x1f29('0x1d')]['getOperations'](_0x282039,_0x4ebacf))this[_0x1f29('0x8')](_0x309f5e,_0x2161c8);for(const _0x61bad5 of this[_0x1f29('0x2f')][_0x1f29('0xc8')]())_0x61bad5['markers']['clear']();for(const [_0x4bb889,_0x4104da]of this[_0x1f29('0x98')]){this[_0x1f29('0x2f')][_0x1f29('0xd8')](_0x4104da[_0x1f29('0x4')]['rootName'])[_0x1f29('0x39')]['set'](_0x4bb889,_0x4104da[_0x1f29('0x17')]());}const _0x3ef526=new Map(),_0x23bbf3=new Map();for(const [_0x2bd340,_0x1ebf62]of this[_0x1f29('0x2f')])_0x3ef526[_0x1f29('0x2c')](_0x2bd340,q(_0x1ebf62)),_0x23bbf3[_0x1f29('0x2c')](_0x2bd340,this[_0x1f29('0x49')][_0x1f29('0xd8')](_0x2bd340));this[_0x1f29('0x71')](_0x4ebacf,_0x3ef526,this[_0x1f29('0x98')],_0x23bbf3);}[_0x1f29('0xb9')](_0x3eb1ed){const _0x22e28c=Array['from'](this[_0x1f29('0xa7')]['keys']());_0x22e28c[_0x1f29('0xd7')]((_0x47be1c,_0x3a64b5)=>_0x47be1c-_0x3a64b5),_0x22e28c[_0x1f29('0xe3')]();for(const _0x44f2cc of _0x22e28c)if(_0x44f2cc<_0x3eb1ed)return _0x44f2cc;return Number[_0x1f29('0x12')];}[_0x1f29('0x3e')](_0x1a8c3d,_0x422303){const _0x51a033=Array['from'](_0x422303['markers'])[_0x1f29('0x2b')](([_0xdad5d0,_0x40b331])=>[_0xdad5d0,this[_0x1f29('0x7d')](_0x40b331,_0x1a8c3d)]);_0x1a8c3d[_0x1f29('0x39')]=new Map(_0x51a033);}[_0x1f29('0xfc')](_0x191820){for(const _0x1911c6 of this[_0x1f29('0x98')][_0x1f29('0xc8')]()){const _0x255a2b=_0x1911c6[_0x1f29('0xf6')](_0x191820),_0x55e465=_0x2de140[_0x1f29('0x9f')](_0x255a2b);_0x1911c6[_0x1f29('0x43')]=_0x55e465[_0x1f29('0x43')],_0x1911c6[_0x1f29('0xc0')]=_0x55e465['end'];}}[_0x1f29('0x8')](_0x1c4115,_0x57049e){if(_0x1f29('0x5b')==_0x1c4115[_0x1f29('0x1a')]||_0x1f29('0x80')==_0x1c4115[_0x1f29('0x1a')])return void this[_0x1f29('0x6d')](_0x1c4115,_0x57049e);if('insert'==_0x1c4115['type']){const _0x1ae47d=_0x1c4115[_0x1f29('0x81')]['root'][_0x1f29('0x1c')];this['_diffRoots'][_0x1f29('0xca')](_0x1ae47d)||(this[_0x1f29('0x2f')]['set'](_0x1ae47d,G(_0x1ae47d,!0x0)),this[_0x1f29('0x49')][_0x1f29('0x2c')](_0x1ae47d,{}),_0x57049e&&this[_0x1f29('0x44')]['set'](_0x1ae47d,G(_0x1ae47d,!0x0)));}else{if(_0x1f29('0xa')==_0x1c4115['type']||_0x1f29('0xfb')==_0x1c4115[_0x1f29('0x1a')]||_0x1f29('0x7c')==_0x1c4115['type'])return void this[_0x1f29('0xd3')](_0x1c4115);}const _0x5f04a0=this[_0x1f29('0x6f')](_0x1c4115,this[_0x1f29('0x2f')]);if(_0x1f29('0x55')!==_0x1c4115[_0x1f29('0x1a')]&&(_0x5f04a0['_execute'](),this['_transformMarkers'](_0x5f04a0)),_0x57049e)switch(_0x5f04a0[_0x1f29('0x1a')]){case _0x1f29('0x52'):this[_0x1f29('0x60')](_0x1c4115);break;case _0x1f29('0x15'):case _0x1f29('0x63'):case'reinsert':this[_0x1f29('0xcf')](_0x1c4115);break;case _0x1f29('0x5e'):this[_0x1f29('0x45')](_0x1c4115);break;case'split':this[_0x1f29('0x47')](_0x1c4115);break;case'marker':this[_0x1f29('0x100')](_0x1c4115);}}[_0x1f29('0x6f')](_0x538630,_0x3ad94a){const _0x481ef4=_0x538630[_0x1f29('0x17')]();return _0x481ef4[_0x1f29('0x6c')]=_0x538630['_authorId'],this['_fixOperation'](_0x481ef4,_0x3ad94a),_0x481ef4;}[_0x1f29('0x6')](_0x214a41){return _0x214a41[_0x1f29('0x2b')](_0x321108=>{const _0x3917c6=this[_0x1f29('0x85')](_0x321108);return Number(_0x321108[_0x1f29('0xaf')][_0x1f29('0x9c')](_0x3917c6));});}[_0x1f29('0xb5')](_0x4b9fe0,_0x4a7d10){if(_0x4b9fe0['is'](_0x1f29('0xe1'),_0x1f29('0x9a')))_0x4a7d10[_0x1f29('0xe5')]({'item':_0x4b9fe0,'type':'text'});else{_0x4b9fe0['is'](_0x1f29('0xe1'))&&_0x4a7d10[_0x1f29('0xe5')]({'item':_0x4b9fe0,'type':_0x1f29('0x89')});for(const _0x207c68 of _0x4b9fe0[_0x1f29('0xc7')]())this[_0x1f29('0xb5')](_0x207c68,_0x4a7d10);_0x4b9fe0['is'](_0x1f29('0xe1'))&&_0x4a7d10[_0x1f29('0xe5')]({'item':_0x4b9fe0,'type':_0x1f29('0xad')});}return _0x4a7d10;}[_0x1f29('0xe9')](){const _0x28f178=new Map(this[_0x1f29('0x28')]),_0x38d503=new Map(_0x28f178),_0x8cc198=new Map(),_0x3b5fa5={'insertions':{},'deletions':{}},_0x3df87b={'insertions':{},'deletions':{}},_0x20d75b=new Map(),_0x3a9e15=new Set([...this[_0x1f29('0xa2')]['keys'](),...this[_0x1f29('0x2f')][_0x1f29('0x94')]()]);_0x3a9e15[_0x1f29('0x82')](_0x1f29('0x25'));for(const _0x56a744 of _0x3a9e15){const _0x4f719e=this[_0x1f29('0x2f')]['get'](_0x56a744)||G(_0x56a744,!0x1),_0x335408=this[_0x1f29('0xa2')]['get'](_0x56a744)||G(_0x56a744,!0x1);_0x4f719e[_0x1f29('0xba')]()||_0x335408[_0x1f29('0xba')]()?(_0x3b5fa5[_0x1f29('0x6b')][_0x56a744]=q(_0x4f719e),_0x3b5fa5[_0x1f29('0x3c')][_0x56a744]=q(_0x335408),this[_0x1f29('0x3e')](_0x3b5fa5[_0x1f29('0x3c')][_0x56a744],_0x335408),this[_0x1f29('0x3e')](_0x3b5fa5[_0x1f29('0x6b')][_0x56a744],_0x4f719e),_0x3df87b[_0x1f29('0x6b')][_0x56a744]=this['_generateTape'](this[_0x1f29('0x44')][_0x1f29('0xd8')](_0x56a744),[]),_0x3df87b[_0x1f29('0x3c')][_0x56a744]=this[_0x1f29('0xb5')](this['_baseIdsRoots'][_0x1f29('0xd8')](_0x56a744)||G(_0x56a744,!0x1),[])):_0x3a9e15[_0x1f29('0x82')](_0x56a744);}for(const _0x2a4248 of _0x3a9e15){const _0x10e600=_0x3df87b[_0x1f29('0x6b')][_0x2a4248];for(const _0x21921d of _0x10e600){const _0x15e20e=this[_0x1f29('0x85')](_0x21921d),_0x2babfa=_0x21921d[_0x1f29('0xaf')][_0x1f29('0x9c')](_0x15e20e);_0x38d503[_0x1f29('0x82')](_0x2babfa),_0x2babfa>=this['_startingRevisionId']&&_0x8cc198[_0x1f29('0x2c')](_0x2babfa,_0x28f178[_0x1f29('0xd8')](_0x2babfa));}}for(const _0x4760e3 of _0x3a9e15){const _0x184289=_0x3df87b[_0x1f29('0x6b')][_0x4760e3],_0x49e95f=this['_getBaseVids'](_0x3df87b[_0x1f29('0x3c')][_0x4760e3]);let _0x520ab2=0x0;for(const _0x37296d of _0x184289){const _0x53c3b8=this[_0x1f29('0x85')](_0x37296d),_0x34535c=_0x37296d[_0x1f29('0xaf')][_0x1f29('0x9c')](_0x53c3b8);if(!_0x8cc198[_0x1f29('0xca')](_0x34535c)&&!_0x20d75b[_0x1f29('0xca')](_0x34535c)){if(_0x38d503[_0x1f29('0xca')](_0x34535c))_0x520ab2++;else{if(_0x34535c!=_0x49e95f[_0x520ab2]){const _0x922f14=_0x28f178[_0x1f29('0xd8')](_0x34535c)||_0x28f178['get'](_0x49e95f[_0x520ab2]);for(;_0x34535c!=_0x49e95f[_0x520ab2];)_0x38d503[_0x1f29('0xca')](_0x49e95f[_0x520ab2])||(_0x20d75b[_0x1f29('0x2c')](_0x49e95f[_0x520ab2],_0x922f14),_0x28f178[_0x1f29('0x2c')](_0x49e95f[_0x520ab2],_0x922f14)),_0x520ab2++;}_0x520ab2++;}}}}for(const _0x277548 of _0x3a9e15){const _0x58d662=_0x3df87b['insertions'][_0x277548];for(const _0x2f1295 of _0x58d662){const _0x5a3fa8=this['_getVidAttributeName'](_0x2f1295),_0x3b338a=_0x2f1295[_0x1f29('0xaf')][_0x1f29('0x9c')](_0x5a3fa8);if(_0x20d75b['has'](_0x3b338a)){const _0x155955=_0x20d75b[_0x1f29('0xd8')](_0x3b338a);_0x38d503[_0x1f29('0xca')](_0x3b338a)||_0x38d503[_0x1f29('0x2c')](_0x3b338a,{..._0x155955}),_0x8cc198[_0x1f29('0x2c')](_0x3b338a,{..._0x155955});}}}for(const _0x2a049e of _0x38d503[_0x1f29('0x94')]())_0x2a049e>=this[_0x1f29('0xb0')]&&_0x38d503['delete'](_0x2a049e);const _0x56a950=new Map();for(const _0xa70fce of _0x3a9e15){let _0x1a9ce8=_0x3df87b[_0x1f29('0x6b')][_0xa70fce];for(const _0x178cf9 of _0x1a9ce8)if(_0x178cf9[_0x1f29('0xaf')]['is']('element',_0x1f29('0x8f'))){const _0x4a4d7a=this[_0x1f29('0x85')](_0x178cf9),_0x5022a7=_0x178cf9[_0x1f29('0xaf')]['getAttribute'](_0x4a4d7a);if(_0x8cc198[_0x1f29('0xca')](_0x5022a7)){const _0x104e19=_0x178cf9['item'][_0x1f29('0xd1')][_0x1f29('0xd1')][_0x1f29('0x9c')]('vid_start'),_0x28e5a5=_0x56a950[_0x1f29('0xd8')](_0x104e19)||new Set();_0x28e5a5['add'](_0x8cc198[_0x1f29('0xd8')](_0x5022a7)[_0x1f29('0x29')]),_0x56a950[_0x1f29('0x2c')](_0x104e19,_0x28e5a5);}}_0x1a9ce8=_0x3df87b[_0x1f29('0x3c')][_0xa70fce];for(const _0x492a09 of _0x1a9ce8)if(_0x492a09[_0x1f29('0xaf')]['is'](_0x1f29('0xe1'),_0x1f29('0x8f'))){const _0x169f49=this[_0x1f29('0x85')](_0x492a09),_0x16237c=_0x492a09['item']['getAttribute'](_0x169f49);if(_0x38d503[_0x1f29('0xca')](_0x16237c)){const _0x9dfa43=_0x492a09[_0x1f29('0xaf')][_0x1f29('0xd1')]['parent'][_0x1f29('0x9c')]('vid_start'),_0x2af587=_0x56a950[_0x1f29('0xd8')](_0x9dfa43)||new Set();_0x2af587['add'](_0x38d503[_0x1f29('0xd8')](_0x16237c)[_0x1f29('0x29')]),_0x56a950[_0x1f29('0x2c')](_0x9dfa43,_0x2af587);}}for(const _0x37fcd8 of _0x56a950[_0x1f29('0x94')]())(_0x8cc198['has'](_0x37fcd8)||_0x38d503[_0x1f29('0xca')](_0x37fcd8))&&_0x56a950['delete'](_0x37fcd8);}for(const _0xf01ba2 of _0x3a9e15){const _0x1b5d66=_0x3df87b[_0x1f29('0x6b')][_0xf01ba2];let _0x4234c4=null,_0x432ed8=null;for(const _0x10586c of _0x1b5d66){const _0x5b1cb5=this[_0x1f29('0x85')](_0x10586c),_0x296ec6=_0x10586c['item'][_0x1f29('0x9c')](_0x5b1cb5),_0x2a736d=_0x56a950[_0x1f29('0xd8')](_0x296ec6);_0x2a736d&&_0x1f29('0x89')==_0x10586c[_0x1f29('0x1a')]&&(_0x4234c4=Array[_0x1f29('0x57')](_0x2a736d)[0x0],_0x432ed8=_0x10586c['item']['getAttribute']('vid_end')),_0x4234c4&&(_0x38d503[_0x1f29('0x2c')](_0x296ec6,{'userId':_0x4234c4}),_0x8cc198[_0x1f29('0x2c')](_0x296ec6,{'userId':_0x4234c4})),_0x296ec6==_0x432ed8&&(_0x4234c4=null,_0x432ed8=null);}}const _0x25e060={},_0x656c45=new Set();for(const _0x266a5f of _0x3a9e15){const _0x3c7b44=_0x3b5fa5[_0x1f29('0x3c')][_0x266a5f],_0x1710f7=_0x3b5fa5[_0x1f29('0x6b')][_0x266a5f];for(const {userId:_0x576c66}of this[_0x1f29('0x58')][_0x1f29('0xc8')]())null!==_0x576c66&&_0x656c45[_0x1f29('0x6e')](_0x576c66);for(const {userId:_0x25919a}of this[_0x1f29('0xdd')][_0x1f29('0xc8')]())null!==_0x25919a&&_0x656c45['add'](_0x25919a);this[_0x1f29('0xff')](_0x1710f7,_0x3df87b[_0x1f29('0x6b')][_0x266a5f],_0x8cc198,_0x1f29('0x88'),_0x656c45),this[_0x1f29('0xff')](_0x3c7b44,_0x3df87b['deletions'][_0x266a5f],_0x38d503,_0x1f29('0x7e'),_0x656c45),_0x25e060[_0x266a5f]={'insertions':this[_0x1f29('0xea')](_0x1710f7),'deletions':this[_0x1f29('0xea')](_0x3c7b44),'attachChange':this[_0x1f29('0xdd')]['get'](_0x266a5f)||null,'attributesBefore':_0x1b57dc(this[_0x1f29('0x3d')][_0x1f29('0xd8')](_0x266a5f))||{},'attributesAfter':_0x1b57dc(this['_diffRootsAttributes'][_0x1f29('0xd8')](_0x266a5f))};}return{'diffData':_0x25e060,'authorsIds':Array[_0x1f29('0x57')](_0x656c45)};}[_0x1f29('0x67')](_0x2ff0bb){for(const [,_0x12f5c7]of _0x2ff0bb['markers']){const _0x8c658b=_0x12f5c7[_0x1f29('0x43')][_0x1f29('0x26')]()[_0x1f29('0x37')](_0x2fae05=>_0x1f29('0x8f')==_0x2fae05[_0x1f29('0xf')]);for(const _0x3def2c of _0x8c658b)0x1==_0x3def2c['childCount']&&_0x3def2c['getChild'](0x0)['is'](_0x1f29('0xe1'),'paragraph')&&_0x3def2c[_0x1f29('0xb6')](0x0)['_setAttribute'](_0x1f29('0xfd'),!0x0);}}[_0x1f29('0xea')](_0x8c96e){this[_0x1f29('0x67')](_0x8c96e);const _0x160142=this[_0x1f29('0x7a')]['data'][_0x1f29('0x4e')](_0x8c96e,{}),_0x450097=Array[_0x1f29('0x57')](_0x160142['getChildren']())[_0x1f29('0x2b')](_0x109e1b=>this[_0x1f29('0x54')](_0x109e1b));return JSON['stringify'](_0x450097);}[_0x1f29('0x54')](_0x2842c3){if(_0x2842c3['is']('$text'))return _0x2842c3[_0x1f29('0x35')];{const _0x36e1c7=_0x2842c3;return{'type':Object[_0x1f29('0x94')](B)[_0x1f29('0xce')](_0x1ee94d=>_0x2842c3 instanceof B[_0x1ee94d]),'name':_0x36e1c7[_0x1f29('0xf')],'attributes':Array['from'](_0x36e1c7[_0x1f29('0xe4')]()),'children':Array[_0x1f29('0x57')](_0x36e1c7[_0x1f29('0xc7')]())['map'](_0x2b4e45=>this['_getViewJson'](_0x2b4e45))};}}['_markChanges'](_0x2f45cc,_0x40139e,_0x4919b5,_0x28b350,_0x16fd66){let _0x512370=null,_0xf35eb4=null,_0x474059=0x0;const _0x20c394=this[_0x1f29('0x7a')][_0x1f29('0xc2')];for(let _0x4eb6b2=0x0;_0x4eb6b2<_0x40139e[_0x1f29('0xa6')];_0x4eb6b2++){const _0x177b06=this[_0x1f29('0x85')](_0x40139e[_0x4eb6b2]),_0x7d597c=_0x40139e[_0x4eb6b2][_0x1f29('0xaf')][_0x1f29('0x9c')](_0x177b06),_0xbf32f7=_0x4919b5['get'](_0x7d597c),_0x2abdd4=_0x4eb6b2==_0x40139e[_0x1f29('0xa6')]-0x1;(!_0x512370&&_0xbf32f7&&(_0x512370=_0xbf32f7,_0xf35eb4=_0x40139e[_0x4eb6b2]),_0x512370&&(!_0xbf32f7||_0xbf32f7[_0x1f29('0x29')]!=_0x512370['userId']))&&(_0x31f8bf(_0xbf32f7,L(_0xf35eb4,_0x2f45cc,_0x20c394),L(_0x40139e[_0x4eb6b2],_0x2f45cc,_0x20c394)),_0x512370=_0xbf32f7||null,_0xf35eb4=_0xbf32f7?_0x40139e[_0x4eb6b2]:null),_0x512370&&_0x2abdd4&&_0x31f8bf(_0xbf32f7,L(_0xf35eb4,_0x2f45cc,_0x20c394),W(_0x40139e[_0x4eb6b2],_0x2f45cc,_0x20c394));}function _0x31f8bf(_0x3cbbc7,_0x313156,_0x1b835d){const _0x496d9c=_0x512370['userId'],_0x163f25=_0x1f29('0xb3')+_0x28b350+':'+_0x496d9c+':'+_0x474059++,_0x1e404e=_0x20c394['createRange'](_0x313156,_0x1b835d);_0x2f45cc[_0x1f29('0x39')][_0x1f29('0x2c')](_0x163f25,_0x1e404e),null!==_0x496d9c&&_0x16fd66[_0x1f29('0x6e')](_0x496d9c);}}[_0x1f29('0x85')](_0x5b9792){switch(_0x5b9792[_0x1f29('0x1a')]){case _0x1f29('0x89'):return _0x1f29('0xd0');case _0x1f29('0xad'):return'vid_end';default:return _0x1f29('0xf0');}}[_0x1f29('0x24')](_0x1fba83,_0x5d2dc2){_0x1fba83[_0x1f29('0xf1')]=null;for(const _0x242ff7 in _0x1fba83){const _0x2c92d5=_0x1fba83[_0x242ff7];if(_0x2c92d5 instanceof _0x19e12c){const _0x2b2a31=_0x5d2dc2[_0x1f29('0xd8')](_0x2c92d5[_0x1f29('0x4')][_0x1f29('0x1c')]);_0x1fba83[_0x242ff7]=this[_0x1f29('0x40')](_0x2c92d5,_0x2b2a31);}if(_0x2c92d5 instanceof _0x2de140){const _0xa0dfa0=_0x5d2dc2['get'](_0x2c92d5[_0x1f29('0x4')][_0x1f29('0x1c')]);_0x1fba83[_0x242ff7]=this[_0x1f29('0x7d')](_0x2c92d5,_0xa0dfa0);}_0x1f29('0x4')===_0x242ff7&&(_0x1fba83['root']=_0x5d2dc2[_0x1f29('0xd8')](_0x1fba83[_0x1f29('0x4')][_0x1f29('0x1c')]));}}['_fixRange'](_0x50f9bd,_0x2bd9b9){return this[_0x1f29('0x7a')]['model'][_0x1f29('0x33')](this['_fixPosition'](_0x50f9bd[_0x1f29('0x43')],_0x2bd9b9),this[_0x1f29('0x40')](_0x50f9bd[_0x1f29('0xc0')],_0x2bd9b9));}[_0x1f29('0x40')](_0x35f3f4,_0x3da807){return this['editor'][_0x1f29('0xc2')][_0x1f29('0x3f')](_0x3da807,_0x35f3f4[_0x1f29('0xee')],_0x35f3f4[_0x1f29('0xf5')]);}[_0x1f29('0x60')](_0x257ccb){const _0x2ffe80=this[_0x1f29('0x44')][_0x1f29('0xd8')](_0x257ccb[_0x1f29('0x81')][_0x1f29('0x4')]['rootName']),_0x146437=this['_fixPosition'](_0x257ccb['position'],_0x2ffe80),_0x3729ea=null===_0x257ccb['_authorId']?null:_0x257ccb['_authorId']||this['editor'][_0x1f29('0x4f')][_0x1f29('0xd8')](_0x1f29('0x95'))['me']['id'],_0xd7a74=_0x146437['parent'],_0x31a4c2=this[_0x1f29('0xef')],_0x39bd74=[];for(const _0x14d9e7 of _0x257ccb['nodes'])if(_0x14d9e7['is'](_0x1f29('0xe1')))_0x39bd74[_0x1f29('0xe5')](this[_0x1f29('0x78')](_0x14d9e7));else for(let _0x462c8d=0x0;_0x462c8d<_0x14d9e7['offsetSize'];_0x462c8d++)_0x39bd74[_0x1f29('0xe5')](new _0x28cd05(_0x1f29('0x9a'),{'vid':this[_0x1f29('0xef')]++}));const _0x46304a=this[_0x1f29('0xef')];for(let _0x110147=_0x31a4c2;_0x110147<_0x46304a;_0x110147++)this[_0x1f29('0x28')][_0x1f29('0x2c')](_0x110147,{'userId':_0x3729ea});_0xd7a74[_0x1f29('0xc4')](_0x146437[_0x1f29('0xa5')],_0x39bd74);}['_handleMoveOperation'](_0x3af8a2){(_0x3af8a2=this['_cloneOperation'](_0x3af8a2,this[_0x1f29('0x44')]))[_0x1f29('0x5f')]();const _0x5d6fea=null===_0x3af8a2[_0x1f29('0x6c')]?null:_0x3af8a2['_authorId']||this[_0x1f29('0x7a')]['plugins']['get'](_0x1f29('0x95'))['me']['id'],_0x1170e7=_0x3af8a2[_0x1f29('0x5c')](),_0x121143=_0x1170e7['parent'],_0x1584ba=_0x1170e7['offset'];!function _0x496559(_0x1085f9,_0x2959f8,_0xd33947,_0x121331){for(let _0x3ce174=_0xd33947;_0x3ce174<_0x121331;_0x3ce174++){const _0x1bb9fd=_0x2959f8[_0x1f29('0xb6')](_0x3ce174);_0x1bb9fd['is'](_0x1f29('0xe1'),_0x1f29('0x9a'))?_0x1085f9['set'](_0x1bb9fd['getAttribute']('vid'),{'userId':_0x5d6fea}):(_0x1085f9[_0x1f29('0x2c')](_0x1bb9fd[_0x1f29('0x9c')](_0x1f29('0xd0')),{'userId':_0x5d6fea}),_0x496559(_0x1085f9,_0x1bb9fd,0x0,_0x1bb9fd['childCount']),_0x1085f9[_0x1f29('0x2c')](_0x1bb9fd['getAttribute']('vid_end'),{'userId':_0x5d6fea}));}}(this[_0x1f29('0x28')],_0x121143,_0x1584ba,_0x1584ba+_0x3af8a2[_0x1f29('0x18')]);}[_0x1f29('0x45')](_0x52acee){const _0x46b870=null===(_0x52acee=this['_cloneOperation'](_0x52acee,this['_idsRoots']))[_0x1f29('0x6c')]?null:_0x52acee['_authorId']||this['editor'][_0x1f29('0x4f')]['get'](_0x1f29('0x95'))['me']['id'],_0x363725=_0x52acee[_0x1f29('0xa0')][_0x1f29('0xd1')],_0xe6ea3a=_0x52acee['sourcePosition'][_0x1f29('0xd1')],_0x5ac2d9=_0x363725[_0x1f29('0x9c')](_0x1f29('0xe')),_0x19a440=_0xe6ea3a[_0x1f29('0x9c')]('vid_start');_0x363725['_setAttribute'](_0x1f29('0xe'),_0xe6ea3a['getAttribute'](_0x1f29('0xe'))),_0xe6ea3a[_0x1f29('0xd4')](_0x1f29('0xe'),_0x5ac2d9),this[_0x1f29('0x28')]['set'](_0x19a440,{'userId':_0x46b870}),this['_touched']['set'](_0x5ac2d9,{'userId':_0x46b870}),_0x52acee['_execute']();}[_0x1f29('0x47')](_0x28df17){const _0x2b7736=null===(_0x28df17=this['_cloneOperation'](_0x28df17,this[_0x1f29('0x44')]))['_authorId']?null:_0x28df17[_0x1f29('0x6c')]||this[_0x1f29('0x7a')][_0x1f29('0x4f')][_0x1f29('0xd8')](_0x1f29('0x95'))['me']['id'],_0x98363b=_0x28df17[_0x1f29('0x9b')],_0x174b66=_0x28df17[_0x1f29('0xda')][_0x1f29('0xd1')];_0x28df17[_0x1f29('0x5f')]();const _0x8a67c2=_0x174b66['getAttribute'](_0x1f29('0xe')),_0x41b7bf=_0x28df17['insertionPosition'][_0x1f29('0xe2')];if(_0x98363b){const _0x598396=_0x41b7bf[_0x1f29('0x9c')](_0x1f29('0xe')),_0x404dc4=_0x174b66[_0x1f29('0x9c')]('vid_end');_0x174b66[_0x1f29('0xd4')](_0x1f29('0xe'),_0x598396),_0x41b7bf[_0x1f29('0xd4')](_0x1f29('0xe'),_0x404dc4),this['_touched'][_0x1f29('0x2c')](_0x174b66['getAttribute'](_0x1f29('0xe')),{'userId':_0x2b7736}),this[_0x1f29('0x28')][_0x1f29('0x2c')](_0x41b7bf[_0x1f29('0x9c')](_0x1f29('0xd0')),{'userId':_0x2b7736});}else{const _0x2e18ef=this[_0x1f29('0xef')]++,_0x5d0fd9=this[_0x1f29('0xef')]++;_0x174b66[_0x1f29('0xd4')](_0x1f29('0xe'),_0x2e18ef),_0x41b7bf[_0x1f29('0xd4')](_0x1f29('0xd0'),_0x5d0fd9),_0x41b7bf['_setAttribute'](_0x1f29('0xe'),_0x8a67c2),this[_0x1f29('0x28')][_0x1f29('0x2c')](_0x2e18ef,{'userId':_0x2b7736}),this[_0x1f29('0x28')]['set'](_0x5d0fd9,{'userId':_0x2b7736});}}[_0x1f29('0x100')](_0x359429){if(!_0x359429[_0x1f29('0x61')])return;const _0x2ec924=(_0x359429=this[_0x1f29('0x6f')](_0x359429,this[_0x1f29('0x2f')]))[_0x1f29('0x41')]?_0x359429[_0x1f29('0x41')][_0x1f29('0x4')]:null,_0x6dbacf=_0x359429[_0x1f29('0x23')]?_0x359429['newRange'][_0x1f29('0x4')]:null;_0x2ec924&&this[_0x1f29('0x98')][_0x1f29('0x82')](_0x359429['name']),_0x6dbacf&&this[_0x1f29('0x98')][_0x1f29('0x2c')](_0x359429[_0x1f29('0xf')],_0x359429[_0x1f29('0x23')][_0x1f29('0x17')]());const _0x3c1541=null===_0x359429[_0x1f29('0x6c')]?null:_0x359429['_authorId']||this[_0x1f29('0x7a')][_0x1f29('0x4f')][_0x1f29('0xd8')]('Users')['me']['id'],_0x447f5e=_0x359429[_0x1f29('0xf')];if(!this['_touchedMarkers'][_0x1f29('0xca')](_0x447f5e))return void this[_0x1f29('0x58')][_0x1f29('0x2c')](_0x447f5e,{'range':_0x359429['oldRange'],'userId':_0x3c1541});const _0x3e84cd=this[_0x1f29('0x58')][_0x1f29('0xd8')](_0x447f5e),_0x2a2718=_0x3e84cd['range'],_0x4f907e=_0x359429['newRange'];null==_0x2a2718&&null==_0x4f907e||_0x2a2718&&_0x4f907e&&_0x2a2718[_0x1f29('0x99')](_0x4f907e)?this['_touchedMarkers']['delete'](_0x359429[_0x1f29('0xf')]):_0x3e84cd[_0x1f29('0x29')]=_0x3c1541;}[_0x1f29('0x6d')](_0x28fe79,_0x395e49){this['_diffRoots'][_0x1f29('0xca')](_0x28fe79[_0x1f29('0x1c')])?this[_0x1f29('0x2f')][_0x1f29('0xd8')](_0x28fe79['rootName'])['_isAttached']=_0x28fe79['isAdd']:(this[_0x1f29('0x2f')][_0x1f29('0x2c')](_0x28fe79[_0x1f29('0x1c')],G(_0x28fe79['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x28fe79[_0x1f29('0x1c')],{}),_0x395e49&&this[_0x1f29('0x44')][_0x1f29('0x2c')](_0x28fe79[_0x1f29('0x1c')],G(_0x28fe79[_0x1f29('0x1c')],!0x0)));const _0x30321a=null===_0x28fe79[_0x1f29('0x6c')]?null:_0x28fe79[_0x1f29('0x6c')]||this[_0x1f29('0x7a')][_0x1f29('0x4f')]['get']('Users')['me']['id'],_0x4aebb3=this[_0x1f29('0xdd')][_0x1f29('0xd8')](_0x28fe79[_0x1f29('0x1c')]);_0x4aebb3&&_0x4aebb3['userId']===_0x30321a?this[_0x1f29('0xdd')][_0x1f29('0x82')](_0x28fe79[_0x1f29('0x1c')]):this['_touchedRoots'][_0x1f29('0x2c')](_0x28fe79[_0x1f29('0x1c')],{'userId':_0x30321a,'isAttached':_0x28fe79[_0x1f29('0x9e')]});}['_handleRootAttributeOperation'](_0x25e2f5){const _0x47d5ca=this['_diffRootsAttributes'][_0x1f29('0xd8')](_0x25e2f5[_0x1f29('0x4')]['rootName']);null===_0x25e2f5[_0x1f29('0x97')]?delete _0x47d5ca[_0x25e2f5[_0x1f29('0x74')]]:_0x47d5ca[_0x25e2f5[_0x1f29('0x74')]]=_0x25e2f5[_0x1f29('0x97')];}}function q(_0x2d2a08){const _0x3e440b=G(_0x2d2a08[_0x1f29('0x1c')],_0x2d2a08[_0x1f29('0xba')]());for(const _0x3b3242 of _0x2d2a08['getChildren']()){const _0x13f20e=_0x3b3242[_0x1f29('0x10')](!0x0);_0x3e440b[_0x1f29('0xfa')](_0x13f20e);}return _0x3e440b;}function G(_0x1afb8d,_0x376058=!0x0){const _0x4407bc=new _0x4511db();return _0x4407bc[_0x1f29('0x1c')]=_0x1afb8d,_0x4407bc[_0x1f29('0x36')]=_0x376058,_0x4407bc[_0x1f29('0xba')]=()=>_0x4407bc[_0x1f29('0x36')],_0x4407bc;}function L(_0x48cb90,_0x2e1f5a,_0x51f2a7){const _0x609dd8=_0x1f29('0xad')==_0x48cb90[_0x1f29('0x1a')]?_0x51f2a7[_0x1f29('0x73')](_0x48cb90[_0x1f29('0xaf')],_0x1f29('0xc0')):_0x51f2a7['createPositionBefore'](_0x48cb90[_0x1f29('0xaf')]);return _0x51f2a7[_0x1f29('0x3f')](_0x2e1f5a,_0x609dd8[_0x1f29('0xee')],_0x609dd8[_0x1f29('0xf5')]);}function W(_0x5dd8ee,_0x5221af,_0x1be0f4){const _0x3ba51f=_0x1f29('0x89')==_0x5dd8ee[_0x1f29('0x1a')]?_0x1be0f4[_0x1f29('0x73')](_0x5dd8ee[_0x1f29('0xaf')],0x0):_0x1be0f4[_0x1f29('0x56')](_0x5dd8ee[_0x1f29('0xaf')]);return _0x1be0f4[_0x1f29('0x3f')](_0x5221af,_0x3ba51f[_0x1f29('0xee')],_0x3ba51f[_0x1f29('0xf5')]);}
23
+ const _0x73fd=['_revisionId','remove','some','insertions','startsWith','getNodeByPath','_replaceEditorDataWithRevisionData','Initial\x20revision','_fixOperation','isAttached','newRange','_savedMetaData','upcast','_getPreviousFrom','_baseIdsRoots','nodeAfter','path','_touched','define','push','NEGATIVE_INFINITY','getOperation','_handleRootAttributeOperation','get','getOperations','length','_makeIdsRoot','getRevision','view','_handleMoveOperation','elementEnd','_applyOperations','markers','sendBufferedUpdates','afterInit','setSource','createRevision','key','_processRootBeforeSave','authorsIds','_fixRange','RealTimeCollaborationClient','childCount','fromEntries','_isInit','_touchedMarkers','getTransformedByOperation','creator','createPositionFromPath','useFillerType','markerToData','_baseRootsAttributes','document','editor','getRootNames','parent','getWalker','diffData','_setAttribute','rootName','_loadState','buildRevisionData','_loadRevisionData','reinsert','_lastFrom','sort','_handleOperation','init','Users','name','_fixPosition','revisionHistory.resumeUnsavedRevision','PENDING_ACTION_REVISION_HISTORY','elementStart','_getState','_startingVersion','getIndex','_authorId','fromVersion','finally','_diffRootsAttributes','_handleSplitOperation','revision','rootsAttributes','deletions','getData','baseVersion','for','then','keys','getRoot','$graveyard','_idsRoots','_getVidAttributeName','createRangeIn','currentRevision','getRevisionDocumentData','attributesAfter','addRoot','createPositionBefore','isEqual','size','revision-end','_touchedRoots','sourcePosition','_handleMergeOperation','text','deletion','vid','loadState','_revisionDataBuilder','previousPosition','_update','processor','RevisionTracker','reverse','PendingActions','$text','element','addRevisionData','stringify','getRevisionRootsAttributes','attributes','initial','_reset','detachRoot','includes','_copyMarkers','model','createPositionAt','getLatestVersion','reInit','start','shift','_execute','find','ready','getTime','getUser','addRevision','_getFromVersion','_initialRevisionId','isEnabled','stickiness','toView','isAdd','getCurrentRevisionId','requires','item','clone','repository','createdAt','toVersion','_generateTape','collaboration.channelId','howMany','_continueCurrentRevision','targetPosition','insert','position','_pendingAction','getMovedRangeStart','_prepareViewToSave','_clone','_lastTo','_calculateMetaData','marker','_isPendingUpdate','authors','_bufferUpdate','pluginName','userId','values','default','bind','_cloneOperation','clear','toData','updateRevisions','_baseRoots','vid_start','version','filter','revision-start','_diffRoots','children','getAttributes','splitPosition','roots','_startingRevisionId','adapter','createPositionAfter','delete','_setConversion','setRevisionData','RevisionsRepository','split','_handleMarkerOperation','from','newValue','toModel','_handleInsertOperation','_removeRevisionMarkers','vid_end','_removePendingAction','_makeRevision','type','insertion','_addPendingAction','_transformMarkers','string','_getViewJson','getAttribute','getRevisions','data-revision-','source','getAncestors','max','data','_makeModelFromViewString','_bufferedUpdates','addRootAttribute','documentFragment','creatorId','_removeMetaData','locale','offset','initialData','move','history','root','set','_handleRootOperation','trim','_saveMetaData','config','add','parse','conversion','_markers','offsetSize','slice','_createInitialRevision','_getBaseVids','getChild','getChildren','_insertChild','tableCell','merge','forEach','resolve','isReady','oldRange','_isAttached','end','map','range','_createFromRanges','attachChange','plugins','insertionPosition','saveRevision','_source','editing','has','_loadedStateData','revision:'];(function(_0x2937d4,_0x73fd16){const _0xde56c7=function(_0x141b0f){while(--_0x141b0f){_0x2937d4['push'](_0x2937d4['shift']());}};_0xde56c7(++_0x73fd16);}(_0x73fd,0x111));const _0xde56=function(_0x2937d4,_0x73fd16){_0x2937d4=_0x2937d4-0x0;let _0xde56c7=_0x73fd[_0x2937d4];return _0xde56c7;};import{Users as _0x5e0294}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x368f27,PendingActions as _0x2a1572}from'ckeditor5/src/core';import{logWarning as _0x3ae405,uid as _0x3bba7f}from'ckeditor5/src/utils';import{Position as _0x4604a3,Range as _0x927a0c,Element as _0x4332cf,DocumentFragment as _0x5ac983,ViewText as _0x4ff27b,ViewElement as _0x35bfc4,ViewContainerElement as _0x1146e9,ViewAttributeElement as _0x5c83a2,ViewEmptyElement as _0xb18041,ViewRawElement as _0x43dd33,ViewUIElement as _0x2ba385,ViewDocumentFragment as _0x3823ce}from'ckeditor5/src/engine';import _0x443790 from'./revisionsrepository';import{getTranslation as _0x1601b7}from'./utils/common-translations';import{cloneDeep as _0x4bd79b,isEqual as _0x3cb537}from'lodash-es';const B={'c':_0x1146e9,'a':_0x5c83a2,'e':_0xb18041,'r':_0x43dd33,'u':_0x2ba385};export default class l extends _0x368f27{static get[_0xde56('0xa4')](){return _0xde56('0x6c');}static get[_0xde56('0x8d')](){return[_0x5e0294,_0x443790,_0x2a1572];}constructor(_0x2e0e40){super(_0x2e0e40),this[_0xde56('0xb8')]=null,this[_0xde56('0x59')]=null,this[_0xde56('0x68')]=new H(this[_0xde56('0x2f')]),this[_0xde56('0x87')]=this[_0xde56('0x2f')]['config'][_0xde56('0x11')]('collaboration.channelId')||_0xde56('0x75'),this[_0xde56('0xd6')]=new Map(),this['_loadedStateData']=null;const _0x3df10a=_0x3bba7f();this[_0xde56('0x100')]={'history':this[_0xde56('0x2f')][_0xde56('0x7a')]['document']['history'],'getLatestVersion':()=>Promise[_0xde56('0xf4')](this[_0xde56('0x2f')][_0xde56('0x7a')][_0xde56('0x2e')][_0xde56('0xaf')]),'getCurrentRevisionId':()=>_0x3df10a},this[_0xde56('0xe1')]('isReady',!0x1),this[_0xde56('0xe1')](_0xde56('0x88'),!0x0),this['set'](_0xde56('0xa1'),!0x1),this[_0xde56('0x2f')][_0xde56('0xe5')][_0xde56('0xc')](_0xde56('0x41'),!0x0),this[_0xde56('0x2f')][_0xde56('0xe8')][_0xde56('0x51')](_0xde56('0x6'))['dataToMarker']({'view':'revision'});}[_0xde56('0x3d')](){this[_0xde56('0x90')]=this[_0xde56('0x2f')][_0xde56('0xfd')]['get'](_0xde56('0xbd')),this[_0xde56('0xbb')](),this['editor']['data']['on'](_0xde56('0x82'),()=>{const _0x2fa6fe=this[_0xde56('0x90')][_0xde56('0x15')](0x0),_0x417c6f=_0x2fa6fe&&null===_0x2fa6fe['creator']?_0x2fa6fe:null;if(this[_0xde56('0x96')]=!!_0x417c6f&&this[_0xde56('0x2f')][_0xde56('0xe5')][_0xde56('0x11')](_0xde56('0x41')),this[_0xde56('0x2f')][_0xde56('0xfd')]['has'](_0xde56('0x23'))){const _0x193c1e=this[_0xde56('0x100')]['getCurrentRevisionId'](),_0x12b05d=this['repository'][_0xde56('0x15')](_0x193c1e);if(_0x12b05d)this[_0xde56('0x45')]=_0x12b05d[_0xde56('0x48')],this['_continueCurrentRevision']=!0x1;else{const _0x21be33=this[_0xde56('0x100')][_0xde56('0xdf')]['_operations']['find'](_0x27da08=>!_0x27da08[_0xde56('0x26')]),_0x388e74=_0x21be33?_0x21be33[_0xde56('0x50')]:this[_0xde56('0x100')]['history']['version'];_0x2fa6fe?(_0x2fa6fe[_0xde56('0x92')]<_0x388e74&&_0x2fa6fe[_0xde56('0x6a')]({'toVersion':_0x388e74}),this[_0xde56('0x96')]?(this[_0xde56('0x100')][_0xde56('0x8c')]=()=>_0x417c6f['id'],this[_0xde56('0x45')]=_0x417c6f[_0xde56('0x48')]):(this[_0xde56('0x45')]=_0x2fa6fe['toVersion'],this['_continueCurrentRevision']=!0x1)):(this[_0xde56('0x45')]=_0x388e74,this['_continueCurrentRevision']=!0x1);}}else _0x417c6f&&(this[_0xde56('0x2f')]['model'][_0xde56('0x2e')][_0xde56('0xdf')]['version']=Math[_0xde56('0xd3')](_0x417c6f[_0xde56('0x92')],this[_0xde56('0x2f')][_0xde56('0x7a')]['document']['history'][_0xde56('0xaf')]),_0x417c6f[_0xde56('0x48')]===_0x417c6f[_0xde56('0x92')]?(0x0!==_0x417c6f[_0xde56('0x48')]&&(this[_0xde56('0x100')][_0xde56('0x8c')]=()=>_0x417c6f['id']),this['_continueCurrentRevision']=!0x1):this[_0xde56('0x96')]&&(this['_source'][_0xde56('0x8c')]=()=>_0x417c6f['id'],this[_0xde56('0x45')]=_0x417c6f[_0xde56('0x48')])),this['_continueCurrentRevision']||(this[_0xde56('0x45')]=this['editor'][_0xde56('0x7a')][_0xde56('0x2e')]['version']);this[_0xde56('0x68')][_0xde56('0x3d')](this[_0xde56('0x100')][_0xde56('0xdf')]),this[_0xde56('0xec')](this['_startingVersion']),this['_createCurrentRevision'](this[_0xde56('0x45')]),this[_0xde56('0xb8')]&&this['sendBufferedUpdates']();}),this[_0xde56('0xa8')](_0xde56('0xf5'))['to'](this,_0xde56('0xa1'),_0x245de9=>!_0x245de9);}async[_0xde56('0x1c')](){if(this[_0xde56('0x90')][_0xde56('0x13')]>0x0){const _0x511ef2=this['repository'][_0xde56('0x15')](0x0),_0x5c018b=await this[_0xde56('0x5a')](_0x511ef2),_0x5a5c2a=await this[_0xde56('0x73')](_0x511ef2);this[_0xde56('0x0')](_0x5c018b,_0x5a5c2a);}}[_0xde56('0x1d')](_0x4629ec){this[_0xde56('0x100')]=_0x4629ec;}async['update'](){const _0x1b4fc1=await this[_0xde56('0x100')][_0xde56('0x7c')]();if(_0x1b4fc1>this[_0xde56('0x59')][_0xde56('0x92')]){await this[_0xde56('0x36')]();const _0x100dd8=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1b4fc1});_0x100dd8[_0xde56('0xa2')]=_0x100dd8[_0xde56('0x21')][_0xde56('0xf9')](_0x3645cb=>this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')]('Users')[_0xde56('0x84')](_0x3645cb)),this[_0xde56('0x59')][_0xde56('0x6a')](_0x100dd8);}}async[_0xde56('0x36')](){this[_0xde56('0x96')]&&!this['_loadedStateData']&&(await this[_0xde56('0x38')](this[_0xde56('0x59')]),this[_0xde56('0x68')]['loadState'](this[_0xde56('0x59')]),this[_0xde56('0x103')]={'fromVersion':this['currentRevision'][_0xde56('0x48')],'authors':this['currentRevision'][_0xde56('0xa2')][_0xde56('0xeb')]()});}async[_0xde56('0xff')](_0x364470={},_0x77935c=null){const _0x15c46e=[];await this[_0xde56('0x36')](),this[_0xde56('0x96')]=!0x1,_0x77935c>this[_0xde56('0x59')][_0xde56('0x92')]&&(_0x77935c=null),null===_0x77935c&&(_0x77935c=await this[_0xde56('0x100')][_0xde56('0x7c')]());const _0x39ab89=this[_0xde56('0x86')](_0x77935c),_0x4fe7d9=this['buildRevisionData']({'from':_0x39ab89,'to':_0x77935c});if(this['currentRevision'][_0xde56('0x92')]<_0x77935c){const _0x13cff5=this[_0xde56('0x37')]({'revision':this[_0xde56('0x59')],'from':_0x77935c,'to':_0x77935c});_0x13cff5[_0xde56('0xa2')]=[],_0x13cff5[_0xde56('0x21')]=[],_0x13cff5['id']=this['currentRevision']['id'],this[_0xde56('0x59')][_0xde56('0x6a')](_0x13cff5,!0x0),delete _0x13cff5[_0xde56('0xa2')],_0x15c46e[_0xde56('0xd')](_0x13cff5);}_0x364470[_0xde56('0xd9')]=this['editor'][_0xde56('0xfd')]['get'](_0xde56('0x3e'))['me']['id'],_0x364470['name']=_0x364470['name']||null,_0x364470['id']=_0x364470['id']||_0x3bba7f(),_0x364470={..._0x364470,..._0x4fe7d9};const _0x5f0e91=this[_0xde56('0x71')](_0x364470);_0x15c46e['push'](_0x364470);const _0x1b4376=this[_0xde56('0x90')][_0xde56('0x46')](_0x5f0e91);if(0x0!==_0x1b4376){const _0x44af18=this['repository'][_0xde56('0x15')](_0x1b4376-0x1);if(_0x44af18[_0xde56('0x48')]!==_0x77935c){const _0x3f9321=this[_0xde56('0x68')]['getData'](_0x77935c,_0x44af18[_0xde56('0x92')]),_0x5910e8={'id':_0x44af18['id'],'diffData':_0x3f9321[_0xde56('0x33')],'authorsIds':_0x3f9321[_0xde56('0x21')],'authors':_0x3f9321[_0xde56('0x21')][_0xde56('0xf9')](_0x17638c=>this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')]('Users')['getUser'](_0x17638c)),'fromVersion':_0x77935c};_0x44af18===this['currentRevision']&&(_0x5910e8['createdAt']=new Date(_0x364470[_0xde56('0x91')][_0xde56('0x83')]()+0xa)),_0x44af18[_0xde56('0x6a')](_0x5910e8,!0x0),delete _0x5910e8[_0xde56('0xa2')],_0x15c46e[_0xde56('0xd')](_0x5910e8);}}if(this[_0xde56('0xb8')]){for(const _0x4e58ab of _0x15c46e)this[_0xde56('0xa3')](_0x4e58ab['id'],_0x4e58ab,!0x0);this[_0xde56('0x1b')]();}return _0x5f0e91;}['addRevisionData'](_0x1398f5){const _0x28fc2c=this[_0xde56('0x90')][_0xde56('0x1e')](_0x1398f5);return this[_0xde56('0xb8')]&&_0x28fc2c['on']('_update',(_0x14efab,_0x5e7306,_0x182f84)=>{_0x182f84||(this[_0xde56('0xa3')](_0x5e7306['id'],_0x5e7306,!0x0),this[_0xde56('0x1b')]());}),this['repository'][_0xde56('0x85')](_0x28fc2c,this['_findInsertionIndex'](_0x28fc2c)),_0x28fc2c;}async[_0xde56('0x5a')](_0x5da642){await this[_0xde56('0x38')](_0x5da642);const _0x2f177d={};for(const _0x5e7721 in _0x5da642[_0xde56('0x33')]){if(_0x5da642[_0xde56('0x33')][_0x5e7721]['attachChange']&&!_0x5da642['diffData'][_0x5e7721][_0xde56('0xfc')][_0xde56('0x3')])continue;const _0x470279=this[_0xde56('0xc4')](JSON[_0xde56('0xe7')](_0x5da642[_0xde56('0x33')][_0x5e7721][_0xde56('0x108')])),_0x2f7e0a=this[_0xde56('0x2f')][_0xde56('0x101')]['view'][_0xde56('0x2e')],_0x3b4ac9=new _0x3823ce(_0x2f7e0a,_0x470279[_0xde56('0xf9')](_0x52559d=>J(_0x52559d,this[_0xde56('0x2f')])));this['editor'][_0xde56('0xd4')][_0xde56('0x6b')][_0xde56('0x2b')]('marked'),_0x2f177d[_0x5e7721]=this[_0xde56('0x2f')]['data']['processor'][_0xde56('0xab')](_0x3b4ac9),this[_0xde56('0x2f')]['data'][_0xde56('0x6b')][_0xde56('0x2b')](_0xde56('0xa7'));}return _0x2f177d;}async[_0xde56('0x73')](_0x5420b5){await this[_0xde56('0x38')](_0x5420b5);const _0x367f26={};for(const _0x571c1d in _0x5420b5['diffData'])_0x5420b5[_0xde56('0x33')][_0x571c1d]['attachChange']&&!_0x5420b5[_0xde56('0x33')][_0x571c1d][_0xde56('0xfc')]['isAttached']||(_0x367f26[_0x571c1d]=_0x5420b5['diffData'][_0x571c1d][_0xde56('0x5b')]||{});return _0x367f26;}[_0xde56('0x1b')](){if(0x0===this[_0xde56('0xd6')][_0xde56('0x5f')])return;if(this['_isPendingUpdate'])return;let _0x30f970=Array[_0xde56('0xc0')](this[_0xde56('0xd6')][_0xde56('0xa6')]());this[_0xde56('0xd6')][_0xde56('0xaa')]();for(let _0x3597eb=0x0;_0x3597eb<_0x30f970['length'];_0x3597eb++){const _0x47a4ef=_0x30f970[_0x3597eb];let _0x185121=!0x1;for(const _0x1c2881 of Object[_0xde56('0x53')](_0x47a4ef))void 0x0===_0x47a4ef[_0x1c2881]?delete _0x47a4ef[_0x1c2881]:'id'!==_0x1c2881&&(_0x185121=!0x0);_0x185121||(_0x30f970[_0x3597eb]=null);}if(_0x30f970=_0x30f970[_0xde56('0xb0')](_0x424eb2=>null!==_0x424eb2),!_0x30f970[_0xde56('0x13')])return;for(let _0x2886cf=0x0;_0x2886cf<_0x30f970[_0xde56('0x13')];_0x2886cf++){const _0x467e52=_0x30f970[_0x2886cf];void 0x0!==_0x467e52['fromVersion']&&void 0x0===_0x467e52[_0xde56('0x92')]&&(_0x467e52[_0xde56('0x92')]=this[_0xde56('0x90')][_0xde56('0x15')](_0x467e52['id'])['toVersion']),void 0x0!==_0x467e52[_0xde56('0x92')]&&void 0x0===_0x467e52[_0xde56('0x48')]&&(_0x467e52[_0xde56('0x48')]=this[_0xde56('0x90')][_0xde56('0x15')](_0x467e52['id'])['fromVersion']);}const _0x423df7=this[_0xde56('0x2f')][_0xde56('0xe5')][_0xde56('0x11')](_0xde56('0x94'));this['_isPendingUpdate']=!0x0,this[_0xde56('0xca')](),this[_0xde56('0xb8')][_0xde56('0xac')](_0x30f970,_0x423df7)[_0xde56('0x49')](()=>{this['_isPendingUpdate']=!0x1;})[_0xde56('0x52')](_0x1a4ae6=>{if(_0x1a4ae6)for(const _0x1afeee of _0x1a4ae6)this[_0xde56('0xbc')]({'id':_0x1afeee['id'],'createdAt':_0x1afeee[_0xde56('0x91')]});this[_0xde56('0xc6')](),this[_0xde56('0x1b')]();});}['_replaceEditorDataWithRevisionData'](_0xd31fb8,_0x25f839){let _0x5dd055=this[_0xde56('0x2f')][_0xde56('0xe5')][_0xde56('0x11')](_0xde56('0xdd')),_0x84b605=this[_0xde56('0x2f')]['config'][_0xde56('0x11')](_0xde56('0x4d'));if(void 0x0===_0x5dd055){_0x5dd055={};for(const _0x5603e2 of this[_0xde56('0x2f')][_0xde56('0x7a')][_0xde56('0x2e')][_0xde56('0x30')]())_0x5dd055[_0x5603e2]='';}if(_0xde56('0xcc')==typeof _0x5dd055&&(_0x5dd055={'main':_0x5dd055}),void 0x0===_0x84b605){_0x84b605={};for(const _0x2d7fac of this[_0xde56('0x2f')]['model'][_0xde56('0x2e')][_0xde56('0x30')]())_0x84b605[_0x2d7fac]={};}let _0x42b4a4=!0x1;const _0x56153f=Object[_0xde56('0x53')](_0x5dd055),_0x50214d=Object[_0xde56('0x53')](_0xd31fb8);for(const _0x4926d9 of _0x56153f){if(_0x5dd055[_0x4926d9]!==_0xd31fb8[_0x4926d9]&&''!==_0x5dd055[_0x4926d9][_0xde56('0xe3')]()){_0x42b4a4=!0x0;break;}if(!_0x3cb537(_0x84b605[_0x4926d9],_0x25f839[_0x4926d9])&&Object[_0xde56('0x53')](_0x84b605[_0x4926d9])[_0xde56('0x13')]>0x0){_0x42b4a4=!0x0;break;}}_0x42b4a4||(_0x42b4a4=_0x50214d[_0xde56('0x107')](_0x127d79=>!this[_0xde56('0x2f')]['model'][_0xde56('0x2e')][_0xde56('0x54')](_0x127d79))),_0x42b4a4&&_0x3ae405('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5dd055,'editorRootsAttributes':_0x84b605,'revisionData':_0xd31fb8,'revisionRootsAttributes':_0x25f839}),this[_0xde56('0x2f')]['config'][_0xde56('0xe1')](_0xde56('0xdd'),_0xd31fb8),this['editor'][_0xde56('0xe5')][_0xde56('0xe1')](_0xde56('0x4d'),_0x25f839);}['_addPendingAction'](){if(!this[_0xde56('0x9a')]){const _0x1f285d=this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')](_0xde56('0x6e'));this[_0xde56('0x9a')]=_0x1f285d[_0xde56('0xe6')](_0x1601b7(this[_0xde56('0x2f')][_0xde56('0xdb')],_0xde56('0x42')));}}[_0xde56('0xc6')](){this[_0xde56('0x9a')]&&(this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')]('PendingActions')['remove'](this[_0xde56('0x9a')]),this[_0xde56('0x9a')]=null);}['_findInsertionIndex'](_0x1254c1){const _0x209958=this['repository'][_0xde56('0xcf')]();_0x209958[_0xde56('0x6d')]();let _0x527f5c=0x0;for(;_0x527f5c<_0x209958[_0xde56('0x13')];){const _0x1d1e53=_0x209958[_0x527f5c];if(_0x1d1e53===this[_0xde56('0x59')]){_0x527f5c++;continue;}if(_0x1d1e53['id']===this[_0xde56('0x87')])break;const _0x17cf03=_0x1254c1[_0xde56('0x92')]-_0x1d1e53[_0xde56('0x92')]||_0x1254c1[_0xde56('0x48')]-_0x1d1e53[_0xde56('0x48')];if(_0x17cf03>0x0)break;if(_0x17cf03<0x0)_0x527f5c++;else{if(!_0x1254c1[_0xde56('0x29')]&&_0x1d1e53[_0xde56('0x29')])break;if(_0x1d1e53[_0xde56('0x29')]||!_0x1254c1[_0xde56('0x29')]){if(_0x1254c1[_0xde56('0x91')]>_0x1d1e53[_0xde56('0x91')])break;_0x527f5c++;}else _0x527f5c++;}}return _0x527f5c;}['setRevisionData'](_0x1b5f02){const _0x1bb1c7=this['repository']['getRevision'](_0x1b5f02['id']);if(_0x1b5f02[_0xde56('0x91')]&&(_0x1b5f02[_0xde56('0x91')]=new Date(_0x1b5f02[_0xde56('0x91')])),_0x1b5f02[_0xde56('0x21')]){const _0x42aeb9=this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')](_0xde56('0x3e'));_0x1b5f02[_0xde56('0xa2')]=_0x1b5f02[_0xde56('0x21')][_0xde56('0xf9')](_0x57d6d9=>_0x42aeb9[_0xde56('0x84')](_0x57d6d9));}_0x1bb1c7[_0xde56('0x6a')](_0x1b5f02,!0x0);}[_0xde56('0x37')]({revision:_0x1bdcc4=null,from:_0x25fe8a=null,to:_0x3a2634=null}){_0x25fe8a=null!==_0x25fe8a?_0x25fe8a:_0x1bdcc4['fromVersion'],_0x3a2634=null!==_0x3a2634?_0x3a2634:_0x1bdcc4[_0xde56('0x92')];const _0x190563=this['_revisionDataBuilder'][_0xde56('0x4f')](_0x25fe8a,_0x3a2634),_0x267fdd={'diffData':_0x190563['diffData'],'authorsIds':_0x190563['authorsIds'],'fromVersion':_0x25fe8a,'toVersion':_0x3a2634};if(!_0x1bdcc4||_0x3a2634!==_0x1bdcc4[_0xde56('0x92')]){const _0x34b4fd=_0x3a2634-0x1,_0x2276dc=this[_0xde56('0x100')][_0xde56('0xdf')][_0xde56('0xf')](_0x34b4fd);_0x267fdd['createdAt']=_0x2276dc&&_0x2276dc[_0xde56('0x91')]||new Date();}if(this['_loadedStateData']&&_0x25fe8a===this['_loadedStateData']['fromVersion'])for(const _0x1e96e5 of this[_0xde56('0x103')][_0xde56('0xa2')])_0x267fdd[_0xde56('0x21')][_0xde56('0x78')](_0x1e96e5['id'])||_0x267fdd['authorsIds'][_0xde56('0xd')](_0x1e96e5['id']);return _0x267fdd;}[_0xde56('0x38')](_0x59fc0f){if(!_0x59fc0f||_0x59fc0f[_0xde56('0x33')])return Promise[_0xde56('0xf4')]();{const _0x4068b0=this[_0xde56('0x2f')]['config']['get'](_0xde56('0x94'));return this[_0xde56('0xb8')][_0xde56('0x15')]({'channelId':_0x4068b0,'revisionId':_0x59fc0f['id']})[_0xde56('0x52')](_0x3495a1=>{_0x59fc0f[_0xde56('0x33')]=_0x3495a1['diffData'];});}}['_bufferUpdate'](_0x5345bd,_0x4bbc30,_0x1e100a){if(this[_0xde56('0xd6')][_0xde56('0x102')](_0x5345bd)){const _0x301b52=this[_0xde56('0xd6')]['get'](_0x5345bd);_0x4bbc30=_0x1e100a?{..._0x301b52,..._0x4bbc30}:{..._0x4bbc30,..._0x301b52};}this['_bufferedUpdates'][_0xde56('0xe1')](_0x5345bd,_0x4bbc30);}[_0xde56('0x86')](_0x1c4fa1){const _0x8b2a4f=this[_0xde56('0x90')][_0xde56('0xcf')]();_0x8b2a4f[_0xde56('0x6d')](),_0x8b2a4f[_0xde56('0x7f')]();const _0x12a7d3=_0x8b2a4f[_0xde56('0x81')](_0x59255a=>_0x59255a[_0xde56('0x92')]<=_0x1c4fa1)[_0xde56('0x92')];return _0x12a7d3<this['_startingVersion']?this[_0xde56('0x45')]:_0x12a7d3;}[_0xde56('0xec')](_0x4c8183){const _0x82a3cf=this['repository'][_0xde56('0x15')](this[_0xde56('0x90')][_0xde56('0x13')]-0x1);if(_0x82a3cf)this[_0xde56('0x87')]=_0x82a3cf['id'];else{const _0x30b81d=!this[_0xde56('0x2f')][_0xde56('0x7a')][_0xde56('0x2e')][_0xde56('0xb6')]['find'](_0x3f2294=>this[_0xde56('0x2f')][_0xde56('0x7a')]['hasContent'](_0x3f2294)),_0x3f0dd0=this[_0xde56('0x2f')][_0xde56('0xfd')]['get']('Users')['me']['id'],_0x83be3b=_0x1601b7(this[_0xde56('0x2f')][_0xde56('0xdb')],_0x30b81d?'Empty\x20document':_0xde56('0x1'));this['_makeRevision']({'from':_0x4c8183,'to':_0x4c8183,'id':this[_0xde56('0x87')],'name':_0x83be3b,'creatorId':_0x3f0dd0});}}['_createCurrentRevision'](_0x4c450b){const _0x378722=this[_0xde56('0x100')]['getCurrentRevisionId']();this[_0xde56('0x59')]=this[_0xde56('0x90')][_0xde56('0x15')](_0x378722),this[_0xde56('0x59')]||(this[_0xde56('0x59')]=this[_0xde56('0xc7')]({'from':_0x4c450b,'to':_0x4c450b,'id':_0x378722,'name':'','creatorId':null}));}[_0xde56('0xc7')]({name:_0x1d1f6e,from:_0x4d69e9,to:_0x65ec96,creatorId:_0x3655e9,id:_0x69c760}){const _0x2fc309=this[_0xde56('0x37')]({'from':_0x4d69e9,'to':_0x65ec96});_0x2fc309[_0xde56('0x3f')]=_0x1d1f6e,_0x2fc309[_0xde56('0xd9')]=_0x3655e9,_0x2fc309['id']=_0x69c760;const _0x21d6d7=this[_0xde56('0x71')](_0x2fc309);return this[_0xde56('0xb8')]&&this[_0xde56('0xa3')](_0x2fc309['id'],_0x2fc309,!0x0),_0x21d6d7;}['_setConversion'](){this[_0xde56('0x2f')][_0xde56('0xe8')][_0xde56('0x51')]('dataDowncast')[_0xde56('0x2c')]({'model':_0xde56('0x4c')});}[_0xde56('0xc4')](_0x5509b4){return(_0x5509b4=_0x5509b4[_0xde56('0xb0')](_0x1a2062=>!_0x1a2062[_0xde56('0x3f')]||_0xde56('0xb1')!==_0x1a2062[_0xde56('0x3f')]&&_0xde56('0x60')!==_0x1a2062[_0xde56('0x3f')]))[_0xde56('0xf3')](_0x1400ec=>{_0xde56('0xcc')!=typeof _0x1400ec&&(_0x1400ec['children']=this[_0xde56('0xc4')](_0x1400ec[_0xde56('0xb3')]),_0x1400ec[_0xde56('0x74')]=_0x1400ec[_0xde56('0x74')][_0xde56('0xb0')](_0x20ded8=>!_0x20ded8[0x0][_0xde56('0x109')](_0xde56('0xd0'))));}),_0x5509b4;}}function J(_0x41aa39,_0x22390b){const _0x407e4f=_0x22390b[_0xde56('0x101')]['view'][_0xde56('0x2e')];if(_0xde56('0xcc')==typeof _0x41aa39)return new _0x4ff27b(_0x407e4f,_0x41aa39);{const _0x36e6ee=_0x41aa39[_0xde56('0xb3')]['map'](_0x570130=>J(_0x570130,_0x22390b));return new(B[_0x41aa39[(_0xde56('0xc8'))]]||_0x35bfc4)(_0x407e4f,_0x41aa39[_0xde56('0x3f')],_0x41aa39[_0xde56('0x74')],_0x36e6ee);}}class H{constructor(_0x5e9046){this[_0xde56('0x2f')]=_0x5e9046,this[_0xde56('0x5')]=new Map(),this[_0xde56('0x3a')]=-0x1,this[_0xde56('0x9e')]=-0x1,this[_0xde56('0xe9')]=new Map(),this[_0xde56('0xb2')]=new Map(),this[_0xde56('0x4a')]=new Map(),this[_0xde56('0xad')]=new Map(),this['_baseRootsAttributes']=new Map(),this[_0xde56('0x56')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0xde56('0xb')]=new Map(),this[_0xde56('0x27')]=new Map(),this[_0xde56('0x61')]=new Map(),this['_revisionId']=0x1;}[_0xde56('0x3d')](_0x3738cb){this[_0xde56('0xd1')]=_0x3738cb;const _0x50058d=new Map(),_0x18ba21=new Map(),_0x5696a9=this[_0xde56('0x2f')][_0xde56('0x7a')][_0xde56('0x2e')][_0xde56('0xb6')][_0xde56('0xf9')](_0xbb2b74=>_0xbb2b74[_0xde56('0x35')]);for(const _0x1db9d4 of _0x5696a9){const _0x2d9d95=this[_0xde56('0x2f')]['model'][_0xde56('0x2e')]['getRoot'](_0x1db9d4),_0x224a40=q(_0x2d9d95);_0x50058d[_0xde56('0xe1')](_0x1db9d4,_0x224a40),_0x18ba21[_0xde56('0xe1')](_0x1db9d4,Object[_0xde56('0x25')](_0x2d9d95[_0xde56('0xb4')]()));}const _0x1ab1ed=Array[_0xde56('0xc0')](this[_0xde56('0x2f')][_0xde56('0x7a')][_0xde56('0x1a')])[_0xde56('0xf9')](_0x4fe6c9=>[_0x4fe6c9['name'],_0x4fe6c9['getRange']()]),_0x5c42b9=this[_0xde56('0xd1')][_0xde56('0xaf')];this['_saveMetaData'](_0x5c42b9,_0x50058d,_0x1ab1ed,_0x18ba21),this[_0xde56('0xb7')]=this[_0xde56('0x105')];const _0x2a938b=new Map(),_0x18bbcb=new Map();for(const _0x5a2fe2 of _0x5696a9){const _0x164f99=G(_0x5a2fe2);_0x2a938b['set'](_0x5a2fe2,_0x164f99),_0x18bbcb[_0xde56('0xe1')](_0x5a2fe2,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2a938b,[],_0x18bbcb);}[_0xde56('0x4f')](_0x46a5a6,_0x31e09d){if(this[_0xde56('0x3a')]===_0x46a5a6&&this[_0xde56('0x9e')]<=_0x31e09d)this[_0xde56('0x5')][_0xde56('0x5f')]>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this[_0xde56('0x9e')],_0x31e09d,!0x0);else{if(!this[_0xde56('0x5')][_0xde56('0x102')](_0x46a5a6)){const _0x36d34b=this[_0xde56('0x7')](_0x46a5a6);this['_calculateMetaData'](_0x36d34b,_0x46a5a6,!0x1);}this[_0xde56('0x9f')](_0x46a5a6,_0x31e09d,!0x0);}return this[_0xde56('0x3a')]=_0x46a5a6,this[_0xde56('0x9e')]=_0x31e09d,this[_0xde56('0x44')]();}[_0xde56('0x67')](_0x4fa9d8){this[_0xde56('0x76')](),this[_0xde56('0x3a')]=_0x4fa9d8[_0xde56('0x48')],this[_0xde56('0x9e')]=_0x4fa9d8[_0xde56('0x92')];for(const _0x69a97d in _0x4fa9d8[_0xde56('0x33')]){const _0xc4b5ae=_0x4fa9d8['diffData'][_0x69a97d][_0xde56('0xfc')],_0x4e8950=_0x4bd79b(_0x4fa9d8[_0xde56('0x33')][_0x69a97d]['attributesBefore'])||{},_0x1e2d86=this[_0xde56('0xd5')](_0x4fa9d8[_0xde56('0x33')][_0x69a97d][_0xde56('0x4e')]);_0x1e2d86[_0xde56('0x35')]=_0x69a97d,_0x1e2d86[_0xde56('0xf7')]=!_0xc4b5ae||!_0xc4b5ae[_0xde56('0x3')],_0x1e2d86[_0xde56('0x3')]=()=>_0x1e2d86[_0xde56('0xf7')],this[_0xde56('0xad')]['set'](_0x69a97d,_0x1e2d86),this['_baseRootsAttributes'][_0xde56('0xe1')](_0x69a97d,_0x4e8950),_0xc4b5ae&&this[_0xde56('0x61')][_0xde56('0xe1')](_0x69a97d,_0xc4b5ae);const _0x7d6c84=this[_0xde56('0x14')](_0x1e2d86);this[_0xde56('0x8')][_0xde56('0xe1')](_0x69a97d,_0x7d6c84);for(const [_0xa5c350,_0x43e531]of _0x1e2d86[_0xde56('0x1a')]){if(!_0xa5c350[_0xde56('0x109')](_0xde56('0x104')))continue;const _0x46a947=_0xa5c350[_0xde56('0xbe')](':')[0x2];for(const _0xa0ea25 of _0x43e531[_0xde56('0x32')]({'singleCharacters':!0x0})){const _0x117ae4=this[_0xde56('0x57')](_0xa0ea25),_0x24c550=_0xde56('0x18')==_0xa0ea25[_0xde56('0xc8')]?_0xa0ea25[_0xde56('0x69')][_0xde56('0xa')]['slice'](0x0,-0x1):_0xa0ea25[_0xde56('0x69')][_0xde56('0xa')],_0xe0715e=_0x7d6c84[_0xde56('0x10a')](_0x24c550)[_0xde56('0xce')](_0x117ae4);this['_touched'][_0xde56('0xe1')](_0xe0715e,{'userId':_0x46a947});}}}this[_0xde56('0xb7')]=this[_0xde56('0x105')];const _0x5ffd55=[...Array(this[_0xde56('0x105')])[_0xde56('0x53')]()][_0xde56('0xeb')](0x1)[_0xde56('0xb0')](_0x4cb27d=>!this[_0xde56('0xb')]['has'](_0x4cb27d));let _0x342a58=0x0;const _0x405f24=new Map();for(const _0x3e1494 in _0x4fa9d8['diffData']){const _0x35c971=_0x4fa9d8['diffData'][_0x3e1494][_0xde56('0xfc')],_0x5ea663=_0x4bd79b(_0x4fa9d8['diffData'][_0x3e1494][_0xde56('0x5b')])||{},_0x32fa2a=this[_0xde56('0xd5')](_0x4fa9d8['diffData'][_0x3e1494][_0xde56('0x108')]);_0x32fa2a[_0xde56('0x35')]=_0x3e1494,_0x32fa2a[_0xde56('0xf7')]=!_0x35c971||_0x35c971['isAttached'],_0x32fa2a['isAttached']=()=>_0x32fa2a['_isAttached'],this[_0xde56('0xb2')]['set'](_0x3e1494,_0x32fa2a),this[_0xde56('0x4a')]['set'](_0x3e1494,_0x5ea663);const _0x3999e2=this[_0xde56('0x14')](_0x32fa2a,Number[_0xde56('0xe')]);this['_idsRoots']['set'](_0x3e1494,_0x3999e2),_0x405f24['set'](_0x3e1494,_0x32fa2a[_0xde56('0x3')]()?_0x5ea663:{});for(const [_0x1220cc,_0x4ad81d]of _0x32fa2a['markers']){if(!_0x1220cc[_0xde56('0x109')]('revision:'))continue;const _0x22fcc8=_0x1220cc['split'](':')[0x2];for(const _0x2c8404 of _0x4ad81d[_0xde56('0x32')]({'singleCharacters':!0x0})){const _0x42a194=this[_0xde56('0x57')](_0x2c8404),_0xbb4b19=this[_0xde56('0x105')]++,_0x1988f5='elementEnd'==_0x2c8404[_0xde56('0xc8')]?_0x2c8404[_0xde56('0x69')][_0xde56('0xa')][_0xde56('0xeb')](0x0,-0x1):_0x2c8404['previousPosition'][_0xde56('0xa')];_0x3999e2['getNodeByPath'](_0x1988f5)[_0xde56('0x34')](_0x42a194,_0xbb4b19),this[_0xde56('0xb')][_0xde56('0xe1')](_0xbb4b19,{'userId':_0x22fcc8});}}for(const _0x2cfe8e of this['editor'][_0xde56('0x7a')][_0xde56('0x58')](_0x32fa2a)['getWalker']({'singleCharacters':!0x0})){const _0x2baafb=this[_0xde56('0x57')](_0x2cfe8e),_0x3b35ae='elementEnd'==_0x2cfe8e[_0xde56('0xc8')]?_0x2cfe8e['previousPosition'][_0xde56('0xa')][_0xde56('0xeb')](0x0,-0x1):_0x2cfe8e[_0xde56('0x69')][_0xde56('0xa')],_0x14e613=_0x3999e2[_0xde56('0x10a')](_0x3b35ae);_0x14e613['getAttribute'](_0x2baafb)>0x0||_0x14e613[_0xde56('0x34')](_0x2baafb,_0x5ffd55[_0x342a58++]);}for(const [_0x48588a,_0x4d9d00]of _0x32fa2a[_0xde56('0x1a')])_0x48588a[_0xde56('0x109')]('revision:')||this['_markers'][_0xde56('0xe1')](_0x48588a,_0x4d9d00);}const _0xf6d8b6=G(_0xde56('0x55'));this[_0xde56('0xad')][_0xde56('0xe1')](_0xde56('0x55'),_0xf6d8b6),this[_0xde56('0x8')][_0xde56('0xe1')](_0xde56('0x55'),this[_0xde56('0x14')](_0xf6d8b6,0x1));const _0x443fce=G(_0xde56('0x55'));this['_diffRoots'][_0xde56('0xe1')](_0xde56('0x55'),_0x443fce),this['_idsRoots'][_0xde56('0xe1')](_0xde56('0x55'),this[_0xde56('0x14')](_0x443fce,0x1));const _0x1bd1cd=Array[_0xde56('0xc0')](this['_diffRoots'])['map'](([_0x55d51e,_0x5859fa])=>[_0x55d51e,q(_0x5859fa)]);this['_saveMetaData'](this['_lastTo'],_0x1bd1cd,this[_0xde56('0xe9')],_0x405f24);}[_0xde56('0xd5')](_0x414d18){const _0x15c4ab=JSON[_0xde56('0xe7')](_0x414d18),_0x2cfd3f=this[_0xde56('0x2f')][_0xde56('0x101')][_0xde56('0x16')][_0xde56('0x2e')],_0x5ec648=new _0x3823ce(_0x2cfd3f,_0x15c4ab['map'](_0x1a26f8=>J(_0x1a26f8,this[_0xde56('0x2f')])));return this[_0xde56('0x2f')]['data'][_0xde56('0xc2')](_0x5ec648);}[_0xde56('0xe4')](_0x41cf01,_0x151323,_0x2183e1,_0x543ee9){const _0x426b96=new Map(_0x151323),_0x53e13e=new Map(_0x4bd79b(_0x543ee9)),_0x1e5df6=new Map();for(const [_0x56a3ec,_0x20540c]of _0x2183e1)_0x1e5df6[_0xde56('0xe1')](_0x56a3ec,{'start':_0x20540c[_0xde56('0x7e')][_0xde56('0x8f')](),'end':_0x20540c[_0xde56('0xf8')][_0xde56('0x8f')](),'rootName':_0x20540c[_0xde56('0xe0')][_0xde56('0x35')]});this[_0xde56('0x5')]['set'](_0x41cf01,{'roots':_0x426b96,'markers':_0x1e5df6,'rootsAttributes':_0x53e13e});}[_0xde56('0xda')](_0x45321e){this[_0xde56('0x5')]['delete'](_0x45321e);}[_0xde56('0x7d')](){this['_reset'](),this[_0xde56('0x3a')]=-0x1,this[_0xde56('0x9e')]=-0x1,this[_0xde56('0x5')]['clear'](),this[_0xde56('0x3d')](this[_0xde56('0xd1')]);}[_0xde56('0x76')](){this[_0xde56('0xb')][_0xde56('0xaa')](),this['_touchedMarkers'][_0xde56('0xaa')](),this['_touchedRoots'][_0xde56('0xaa')](),this[_0xde56('0xb2')][_0xde56('0xaa')](),this[_0xde56('0x4a')]['clear'](),this[_0xde56('0xad')][_0xde56('0xaa')](),this[_0xde56('0x2d')][_0xde56('0xaa')](),this['_idsRoots']['clear'](),this['_baseIdsRoots'][_0xde56('0xaa')](),this[_0xde56('0xe9')][_0xde56('0xaa')](),this[_0xde56('0x105')]=0x1,this[_0xde56('0xb7')]=this[_0xde56('0x105')];}['_makeIdsRoot'](_0x583e4f,_0x1880b0=null){let _0x3b3bc6=null;_0x583e4f['is'](_0xde56('0xd8'))||(_0x3b3bc6=new _0x4332cf(_0x583e4f[_0xde56('0x3f')],{'vid_start':null===_0x1880b0?this[_0xde56('0x105')]++:_0x1880b0++}));const _0x29eadd=[];for(const _0x13a809 of _0x583e4f['getChildren']())if(_0x13a809['is'](_0xde56('0x70'))){_0x29eadd[_0xde56('0xd')](this[_0xde56('0x14')](_0x13a809,_0x1880b0));const _0x216571=_0x29eadd[_0x29eadd[_0xde56('0x13')]-0x1];null!==_0x1880b0&&(_0x1880b0=_0x216571['is'](_0xde56('0x70'),'$text')?_0x216571[_0xde56('0xce')]('vid')+0x1:_0x216571[_0xde56('0xce')](_0xde56('0xc5'))+0x1);}else for(let _0x6487a6=0x0;_0x6487a6<_0x13a809[_0xde56('0xea')];_0x6487a6++)_0x29eadd[_0xde56('0xd')](new _0x4332cf('$text',{'vid':null===_0x1880b0?this[_0xde56('0x105')]++:_0x1880b0++}));if(_0x583e4f['is']('documentFragment')){const _0x42ae6b=G(_0x583e4f[_0xde56('0x35')]);return _0x42ae6b['_insertChild'](0x0,_0x29eadd),_0x42ae6b;}return _0x3b3bc6[_0xde56('0x34')](_0xde56('0xc5'),null===_0x1880b0?this[_0xde56('0x105')]++:_0x1880b0++),_0x3b3bc6[_0xde56('0xf0')](0x0,_0x29eadd),_0x3b3bc6;}[_0xde56('0x9f')](_0x53388e,_0x26c6b8,_0x55961c){this[_0xde56('0x76')]();const {roots:_0x4b0305,markers:_0x14b706,rootsAttributes:_0x3c8f92}=this['_savedMetaData'][_0xde56('0x11')](_0x53388e);this[_0xde56('0xad')]=new Map(_0x4b0305),this[_0xde56('0x2d')]=new Map(_0x4bd79b(_0x3c8f92));for(const [_0x1b5fde,_0x130f0a]of this[_0xde56('0xad')])if(_0xde56('0x55')!==_0x1b5fde&&(this[_0xde56('0xb2')][_0xde56('0xe1')](_0x1b5fde,q(_0x130f0a)),this[_0xde56('0x4a')]=new Map(_0x4bd79b(_0x3c8f92)),_0x55961c)){const _0x5bd3cc=this['_revisionId'];this[_0xde56('0x56')][_0xde56('0xe1')](_0x1b5fde,this[_0xde56('0x14')](_0x130f0a)),this['_baseIdsRoots'][_0xde56('0xe1')](_0x1b5fde,this[_0xde56('0x14')](_0x130f0a,_0x5bd3cc));}this['_startingRevisionId']=this[_0xde56('0x105')],this[_0xde56('0xb2')]['set'](_0xde56('0x55'),q(this[_0xde56('0xad')][_0xde56('0x11')]('$graveyard'))),_0x55961c&&this['_idsRoots'][_0xde56('0xe1')](_0xde56('0x55'),this[_0xde56('0x14')](this[_0xde56('0xad')][_0xde56('0x11')](_0xde56('0x55'))));for(const [_0x295bf7,_0x55dc93]of _0x14b706){const _0x416221=this['_baseRoots'][_0xde56('0x11')](_0x55dc93['rootName']),_0x18984a=this['_diffRoots']['get'](_0x55dc93['rootName']),_0x2066ea=new _0x927a0c(this[_0xde56('0x40')](_0x55dc93[_0xde56('0x7e')],_0x416221),this[_0xde56('0x40')](_0x55dc93[_0xde56('0xf8')],_0x416221)),_0x5ce9f0=this[_0xde56('0x22')](_0x2066ea,_0x18984a);_0x416221[_0xde56('0x1a')]['set'](_0x295bf7,_0x2066ea),this[_0xde56('0xe9')][_0xde56('0xe1')](_0x295bf7,_0x5ce9f0);}this[_0xde56('0x19')](_0x53388e,_0x26c6b8,_0x55961c);}[_0xde56('0x19')](_0x15c830,_0x3089da,_0x5062df){for(const _0x1d3b81 of this[_0xde56('0xd1')][_0xde56('0x12')](_0x15c830,_0x3089da))this[_0xde56('0x3c')](_0x1d3b81,_0x5062df);for(const _0xf698a of this[_0xde56('0xb2')][_0xde56('0xa6')]())_0xf698a[_0xde56('0x1a')][_0xde56('0xaa')]();for(const [_0x226507,_0x1b6c21]of this[_0xde56('0xe9')]){this[_0xde56('0xb2')][_0xde56('0x11')](_0x1b6c21['root'][_0xde56('0x35')])[_0xde56('0x1a')][_0xde56('0xe1')](_0x226507,_0x1b6c21[_0xde56('0x8f')]());}const _0x21b189=new Map(),_0x193cfd=new Map();for(const [_0x5ca712,_0x4d0239]of this[_0xde56('0xb2')])_0x21b189[_0xde56('0xe1')](_0x5ca712,q(_0x4d0239)),_0x193cfd[_0xde56('0xe1')](_0x5ca712,this['_diffRootsAttributes'][_0xde56('0x11')](_0x5ca712));this[_0xde56('0xe4')](_0x3089da,_0x21b189,this[_0xde56('0xe9')],_0x193cfd);}[_0xde56('0x7')](_0x143a95){const _0x267dc6=Array[_0xde56('0xc0')](this[_0xde56('0x5')][_0xde56('0x53')]());_0x267dc6[_0xde56('0x3b')]((_0x55f8ef,_0x4b811f)=>_0x55f8ef-_0x4b811f),_0x267dc6[_0xde56('0x6d')]();for(const _0x3f6401 of _0x267dc6)if(_0x3f6401<_0x143a95)return _0x3f6401;return Number[_0xde56('0xe')];}['_copyMarkers'](_0xfa35dd,_0x1189c8){const _0x450eca=Array['from'](_0x1189c8[_0xde56('0x1a')])[_0xde56('0xf9')](([_0x577c94,_0x43837a])=>[_0x577c94,this[_0xde56('0x22')](_0x43837a,_0xfa35dd)]);_0xfa35dd[_0xde56('0x1a')]=new Map(_0x450eca);}[_0xde56('0xcb')](_0x1dd685){for(const _0x487b9a of this[_0xde56('0xe9')][_0xde56('0xa6')]()){const _0x276591=_0x487b9a[_0xde56('0x28')](_0x1dd685),_0x255a99=_0x927a0c[_0xde56('0xfb')](_0x276591);_0x487b9a[_0xde56('0x7e')]=_0x255a99[_0xde56('0x7e')],_0x487b9a[_0xde56('0xf8')]=_0x255a99[_0xde56('0xf8')];}}[_0xde56('0x3c')](_0x22deef,_0x3e1826){if(_0xde56('0x5c')==_0x22deef[_0xde56('0xc8')]||_0xde56('0x77')==_0x22deef['type'])return void this['_handleRootOperation'](_0x22deef,_0x3e1826);if(_0xde56('0x98')==_0x22deef[_0xde56('0xc8')]){const _0x5ab315=_0x22deef[_0xde56('0x99')][_0xde56('0xe0')][_0xde56('0x35')];this[_0xde56('0xb2')][_0xde56('0x102')](_0x5ab315)||(this[_0xde56('0xb2')][_0xde56('0xe1')](_0x5ab315,G(_0x5ab315,!0x0)),this['_diffRootsAttributes']['set'](_0x5ab315,{}),_0x3e1826&&this[_0xde56('0x56')][_0xde56('0xe1')](_0x5ab315,G(_0x5ab315,!0x0)));}else{if(_0xde56('0xd7')==_0x22deef[_0xde56('0xc8')]||'removeRootAttribute'==_0x22deef[_0xde56('0xc8')]||'changeRootAttribute'==_0x22deef[_0xde56('0xc8')])return void this[_0xde56('0x10')](_0x22deef);}const _0x52e054=this[_0xde56('0xa9')](_0x22deef,this[_0xde56('0xb2')]);if('marker'!==_0x22deef[_0xde56('0xc8')]&&(_0x52e054['_execute'](),this[_0xde56('0xcb')](_0x52e054)),_0x3e1826)switch(_0x52e054['type']){case _0xde56('0x98'):this[_0xde56('0xc3')](_0x22deef);break;case _0xde56('0xde'):case _0xde56('0x106'):case _0xde56('0x39'):this[_0xde56('0x17')](_0x22deef);break;case _0xde56('0xf2'):this[_0xde56('0x63')](_0x22deef);break;case'split':this[_0xde56('0x4b')](_0x22deef);break;case _0xde56('0xa0'):this[_0xde56('0xbf')](_0x22deef);}}[_0xde56('0xa9')](_0x4616d3,_0x49705f){const _0x363565=_0x4616d3[_0xde56('0x8f')]();return _0x363565[_0xde56('0x47')]=_0x4616d3['_authorId'],this[_0xde56('0x2')](_0x363565,_0x49705f),_0x363565;}[_0xde56('0xed')](_0x1cdce2){return _0x1cdce2['map'](_0x4c90ea=>{const _0x4a6851=this[_0xde56('0x57')](_0x4c90ea);return Number(_0x4c90ea[_0xde56('0x8e')][_0xde56('0xce')](_0x4a6851));});}['_generateTape'](_0x28c00d,_0xa95ac2){if(_0x28c00d['is']('element','$text'))_0xa95ac2['push']({'item':_0x28c00d,'type':_0xde56('0x64')});else{_0x28c00d['is']('element')&&_0xa95ac2[_0xde56('0xd')]({'item':_0x28c00d,'type':_0xde56('0x43')});for(const _0x3399b0 of _0x28c00d[_0xde56('0xef')]())this[_0xde56('0x93')](_0x3399b0,_0xa95ac2);_0x28c00d['is']('element')&&_0xa95ac2['push']({'item':_0x28c00d,'type':'elementEnd'});}return _0xa95ac2;}['_getState'](){const _0x3f7909=new Map(this['_touched']),_0xecf87f=new Map(_0x3f7909),_0xd074f2=new Map(),_0x410ceb={'insertions':{},'deletions':{}},_0x222c32={'insertions':{},'deletions':{}},_0x4734c6=new Map(),_0x13c985=new Set([...this[_0xde56('0xad')][_0xde56('0x53')](),...this['_diffRoots'][_0xde56('0x53')]()]);_0x13c985[_0xde56('0xba')](_0xde56('0x55'));for(const _0x2939a8 of _0x13c985){const _0x2fd0f4=this[_0xde56('0xb2')][_0xde56('0x11')](_0x2939a8)||G(_0x2939a8,!0x1),_0x567d83=this['_baseRoots'][_0xde56('0x11')](_0x2939a8)||G(_0x2939a8,!0x1);_0x2fd0f4[_0xde56('0x3')]()||_0x567d83[_0xde56('0x3')]()?(_0x410ceb[_0xde56('0x108')][_0x2939a8]=q(_0x2fd0f4),_0x410ceb[_0xde56('0x4e')][_0x2939a8]=q(_0x567d83),this[_0xde56('0x79')](_0x410ceb[_0xde56('0x4e')][_0x2939a8],_0x567d83),this['_copyMarkers'](_0x410ceb[_0xde56('0x108')][_0x2939a8],_0x2fd0f4),_0x222c32[_0xde56('0x108')][_0x2939a8]=this[_0xde56('0x93')](this['_idsRoots'][_0xde56('0x11')](_0x2939a8),[]),_0x222c32['deletions'][_0x2939a8]=this[_0xde56('0x93')](this[_0xde56('0x8')][_0xde56('0x11')](_0x2939a8)||G(_0x2939a8,!0x1),[])):_0x13c985[_0xde56('0xba')](_0x2939a8);}for(const _0x1f6de4 of _0x13c985){const _0x183e15=_0x222c32['insertions'][_0x1f6de4];for(const _0x1c9812 of _0x183e15){const _0x23819f=this[_0xde56('0x57')](_0x1c9812),_0x125721=_0x1c9812['item']['getAttribute'](_0x23819f);_0xecf87f[_0xde56('0xba')](_0x125721),_0x125721>=this[_0xde56('0xb7')]&&_0xd074f2[_0xde56('0xe1')](_0x125721,_0x3f7909[_0xde56('0x11')](_0x125721));}}for(const _0x213603 of _0x13c985){const _0x38c5fa=_0x222c32[_0xde56('0x108')][_0x213603],_0x9dd4=this[_0xde56('0xed')](_0x222c32[_0xde56('0x4e')][_0x213603]);let _0x2411a9=0x0;for(const _0x5c48b6 of _0x38c5fa){const _0x16c517=this[_0xde56('0x57')](_0x5c48b6),_0x318b8e=_0x5c48b6[_0xde56('0x8e')]['getAttribute'](_0x16c517);if(!_0xd074f2['has'](_0x318b8e)&&!_0x4734c6['has'](_0x318b8e)){if(_0xecf87f[_0xde56('0x102')](_0x318b8e))_0x2411a9++;else{if(_0x318b8e!=_0x9dd4[_0x2411a9]){const _0x3d3a68=_0x3f7909[_0xde56('0x11')](_0x318b8e)||_0x3f7909[_0xde56('0x11')](_0x9dd4[_0x2411a9]);for(;_0x318b8e!=_0x9dd4[_0x2411a9];)_0xecf87f['has'](_0x9dd4[_0x2411a9])||(_0x4734c6[_0xde56('0xe1')](_0x9dd4[_0x2411a9],_0x3d3a68),_0x3f7909[_0xde56('0xe1')](_0x9dd4[_0x2411a9],_0x3d3a68)),_0x2411a9++;}_0x2411a9++;}}}}for(const _0x166f0e of _0x13c985){const _0x2df668=_0x222c32['insertions'][_0x166f0e];for(const _0x4a14cf of _0x2df668){const _0xed88f9=this[_0xde56('0x57')](_0x4a14cf),_0x5e4e05=_0x4a14cf[_0xde56('0x8e')][_0xde56('0xce')](_0xed88f9);if(_0x4734c6[_0xde56('0x102')](_0x5e4e05)){const _0x19f6b0=_0x4734c6[_0xde56('0x11')](_0x5e4e05);_0xecf87f[_0xde56('0x102')](_0x5e4e05)||_0xecf87f[_0xde56('0xe1')](_0x5e4e05,{..._0x19f6b0}),_0xd074f2[_0xde56('0xe1')](_0x5e4e05,{..._0x19f6b0});}}}for(const _0x311f6d of _0xecf87f[_0xde56('0x53')]())_0x311f6d>=this[_0xde56('0xb7')]&&_0xecf87f['delete'](_0x311f6d);const _0x466ecb=new Map();for(const _0x5bef60 of _0x13c985){let _0x2abb49=_0x222c32[_0xde56('0x108')][_0x5bef60];for(const _0x38c191 of _0x2abb49)if(_0x38c191['item']['is'](_0xde56('0x70'),_0xde56('0xf1'))){const _0x475302=this['_getVidAttributeName'](_0x38c191),_0x1cdbf8=_0x38c191[_0xde56('0x8e')]['getAttribute'](_0x475302);if(_0xd074f2[_0xde56('0x102')](_0x1cdbf8)){const _0x1c71f3=_0x38c191[_0xde56('0x8e')][_0xde56('0x31')][_0xde56('0x31')][_0xde56('0xce')](_0xde56('0xae')),_0x122db3=_0x466ecb[_0xde56('0x11')](_0x1c71f3)||new Set();_0x122db3[_0xde56('0xe6')](_0xd074f2['get'](_0x1cdbf8)['userId']),_0x466ecb[_0xde56('0xe1')](_0x1c71f3,_0x122db3);}}_0x2abb49=_0x222c32[_0xde56('0x4e')][_0x5bef60];for(const _0x54895f of _0x2abb49)if(_0x54895f[_0xde56('0x8e')]['is'](_0xde56('0x70'),'tableCell')){const _0x145402=this['_getVidAttributeName'](_0x54895f),_0x921039=_0x54895f[_0xde56('0x8e')]['getAttribute'](_0x145402);if(_0xecf87f[_0xde56('0x102')](_0x921039)){const _0x4507e8=_0x54895f['item'][_0xde56('0x31')][_0xde56('0x31')][_0xde56('0xce')](_0xde56('0xae')),_0x30a574=_0x466ecb[_0xde56('0x11')](_0x4507e8)||new Set();_0x30a574['add'](_0xecf87f[_0xde56('0x11')](_0x921039)[_0xde56('0xa5')]),_0x466ecb[_0xde56('0xe1')](_0x4507e8,_0x30a574);}}for(const _0x8508b2 of _0x466ecb['keys']())(_0xd074f2[_0xde56('0x102')](_0x8508b2)||_0xecf87f['has'](_0x8508b2))&&_0x466ecb[_0xde56('0xba')](_0x8508b2);}for(const _0x3bdc55 of _0x13c985){const _0x2a5c7f=_0x222c32[_0xde56('0x108')][_0x3bdc55];let _0x4f729f=null,_0x3cf3a6=null;for(const _0x3a704e of _0x2a5c7f){const _0x44ff89=this[_0xde56('0x57')](_0x3a704e),_0x103036=_0x3a704e[_0xde56('0x8e')][_0xde56('0xce')](_0x44ff89),_0x57cda7=_0x466ecb['get'](_0x103036);_0x57cda7&&_0xde56('0x43')==_0x3a704e[_0xde56('0xc8')]&&(_0x4f729f=Array[_0xde56('0xc0')](_0x57cda7)[0x0],_0x3cf3a6=_0x3a704e['item']['getAttribute'](_0xde56('0xc5'))),_0x4f729f&&(_0xecf87f[_0xde56('0xe1')](_0x103036,{'userId':_0x4f729f}),_0xd074f2['set'](_0x103036,{'userId':_0x4f729f})),_0x103036==_0x3cf3a6&&(_0x4f729f=null,_0x3cf3a6=null);}}const _0x20cae1={},_0x292893=new Set();for(const _0x55cf97 of _0x13c985){const _0x11e7a7=_0x410ceb[_0xde56('0x4e')][_0x55cf97],_0x224d92=_0x410ceb['insertions'][_0x55cf97];for(const {userId:_0x4874c8}of this[_0xde56('0x27')][_0xde56('0xa6')]())null!==_0x4874c8&&_0x292893['add'](_0x4874c8);for(const {userId:_0x2a5e52}of this[_0xde56('0x61')][_0xde56('0xa6')]())null!==_0x2a5e52&&_0x292893['add'](_0x2a5e52);this['_markChanges'](_0x224d92,_0x222c32[_0xde56('0x108')][_0x55cf97],_0xd074f2,_0xde56('0xc9'),_0x292893),this['_markChanges'](_0x11e7a7,_0x222c32[_0xde56('0x4e')][_0x55cf97],_0xecf87f,_0xde56('0x65'),_0x292893),_0x20cae1[_0x55cf97]={'insertions':this[_0xde56('0x9c')](_0x224d92),'deletions':this[_0xde56('0x9c')](_0x11e7a7),'attachChange':this[_0xde56('0x61')]['get'](_0x55cf97)||null,'attributesBefore':_0x4bd79b(this[_0xde56('0x2d')][_0xde56('0x11')](_0x55cf97))||{},'attributesAfter':_0x4bd79b(this[_0xde56('0x4a')][_0xde56('0x11')](_0x55cf97))};}return{'diffData':_0x20cae1,'authorsIds':Array['from'](_0x292893)};}[_0xde56('0x20')](_0x1d8660){for(const [,_0x55d4de]of _0x1d8660[_0xde56('0x1a')]){const _0x26ee75=_0x55d4de[_0xde56('0x7e')][_0xde56('0xd2')]()[_0xde56('0xb0')](_0x50ff64=>_0xde56('0xf1')==_0x50ff64[_0xde56('0x3f')]);for(const _0xe9f03f of _0x26ee75)0x1==_0xe9f03f[_0xde56('0x24')]&&_0xe9f03f[_0xde56('0xee')](0x0)['is']('element','paragraph')&&_0xe9f03f[_0xde56('0xee')](0x0)[_0xde56('0x34')]('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xcf0c7c){this['_processRootBeforeSave'](_0xcf0c7c);const _0x3d5db6=this[_0xde56('0x2f')][_0xde56('0xd4')][_0xde56('0x8a')](_0xcf0c7c,{}),_0x167afa=Array[_0xde56('0xc0')](_0x3d5db6[_0xde56('0xef')]())[_0xde56('0xf9')](_0x42cf86=>this['_getViewJson'](_0x42cf86));return JSON[_0xde56('0x72')](_0x167afa);}[_0xde56('0xcd')](_0x31ef95){if(_0x31ef95['is']('$text'))return _0x31ef95[_0xde56('0xd4')];{const _0x2869c6=_0x31ef95;return{'type':Object['keys'](B)[_0xde56('0x81')](_0x10538b=>_0x31ef95 instanceof B[_0x10538b]),'name':_0x2869c6[_0xde56('0x3f')],'attributes':Array[_0xde56('0xc0')](_0x2869c6[_0xde56('0xb4')]()),'children':Array[_0xde56('0xc0')](_0x2869c6[_0xde56('0xef')]())['map'](_0x4e7903=>this[_0xde56('0xcd')](_0x4e7903))};}}['_markChanges'](_0x4d3b2b,_0x2d0ec7,_0x3041ea,_0xbf0149,_0x56f2be){let _0x3ca54a=null,_0x10007c=null,_0x54a6fc=0x0;const _0x450797=this[_0xde56('0x2f')][_0xde56('0x7a')];for(let _0x41c436=0x0;_0x41c436<_0x2d0ec7['length'];_0x41c436++){const _0x3b21ed=this['_getVidAttributeName'](_0x2d0ec7[_0x41c436]),_0x1854e1=_0x2d0ec7[_0x41c436][_0xde56('0x8e')][_0xde56('0xce')](_0x3b21ed),_0x40e85c=_0x3041ea[_0xde56('0x11')](_0x1854e1),_0x5d61a5=_0x41c436==_0x2d0ec7[_0xde56('0x13')]-0x1;(!_0x3ca54a&&_0x40e85c&&(_0x3ca54a=_0x40e85c,_0x10007c=_0x2d0ec7[_0x41c436]),_0x3ca54a&&(!_0x40e85c||_0x40e85c['userId']!=_0x3ca54a[_0xde56('0xa5')]))&&(_0xbbfd94(_0x40e85c,L(_0x10007c,_0x4d3b2b,_0x450797),L(_0x2d0ec7[_0x41c436],_0x4d3b2b,_0x450797)),_0x3ca54a=_0x40e85c||null,_0x10007c=_0x40e85c?_0x2d0ec7[_0x41c436]:null),_0x3ca54a&&_0x5d61a5&&_0xbbfd94(_0x40e85c,L(_0x10007c,_0x4d3b2b,_0x450797),W(_0x2d0ec7[_0x41c436],_0x4d3b2b,_0x450797));}function _0xbbfd94(_0x3a8c96,_0x254c08,_0x20e56f){const _0x10ef6e=_0x3ca54a[_0xde56('0xa5')],_0x449232='revision:'+_0xbf0149+':'+_0x10ef6e+':'+_0x54a6fc++,_0x30bfbe=_0x450797['createRange'](_0x254c08,_0x20e56f);_0x4d3b2b[_0xde56('0x1a')][_0xde56('0xe1')](_0x449232,_0x30bfbe),null!==_0x10ef6e&&_0x56f2be['add'](_0x10ef6e);}}[_0xde56('0x57')](_0x1828f1){switch(_0x1828f1['type']){case'elementStart':return _0xde56('0xae');case _0xde56('0x18'):return'vid_end';default:return _0xde56('0x66');}}['_fixOperation'](_0x5acab6,_0x51f5f1){_0x5acab6[_0xde56('0x50')]=null;for(const _0x1321a8 in _0x5acab6){const _0x1b6d63=_0x5acab6[_0x1321a8];if(_0x1b6d63 instanceof _0x4604a3){const _0x1e99c9=_0x51f5f1['get'](_0x1b6d63[_0xde56('0xe0')]['rootName']);_0x5acab6[_0x1321a8]=this[_0xde56('0x40')](_0x1b6d63,_0x1e99c9);}if(_0x1b6d63 instanceof _0x927a0c){const _0x1882c5=_0x51f5f1['get'](_0x1b6d63[_0xde56('0xe0')][_0xde56('0x35')]);_0x5acab6[_0x1321a8]=this[_0xde56('0x22')](_0x1b6d63,_0x1882c5);}'root'===_0x1321a8&&(_0x5acab6[_0xde56('0xe0')]=_0x51f5f1[_0xde56('0x11')](_0x5acab6['root'][_0xde56('0x35')]));}}['_fixRange'](_0x14a3bc,_0x2d84d7){return this[_0xde56('0x2f')][_0xde56('0x7a')]['createRange'](this[_0xde56('0x40')](_0x14a3bc[_0xde56('0x7e')],_0x2d84d7),this[_0xde56('0x40')](_0x14a3bc[_0xde56('0xf8')],_0x2d84d7));}[_0xde56('0x40')](_0x5bcdf7,_0x51650b){return this[_0xde56('0x2f')][_0xde56('0x7a')]['createPositionFromPath'](_0x51650b,_0x5bcdf7[_0xde56('0xa')],_0x5bcdf7[_0xde56('0x89')]);}[_0xde56('0xc3')](_0x452033){const _0x1e7277=this[_0xde56('0x56')][_0xde56('0x11')](_0x452033[_0xde56('0x99')][_0xde56('0xe0')][_0xde56('0x35')]),_0x57c40f=this['_fixPosition'](_0x452033['position'],_0x1e7277),_0x19f247=null===_0x452033[_0xde56('0x47')]?null:_0x452033[_0xde56('0x47')]||this['editor'][_0xde56('0xfd')]['get'](_0xde56('0x3e'))['me']['id'],_0x41c91e=_0x57c40f['parent'],_0x58671b=this['_revisionId'],_0x57b3f3=[];for(const _0x1571d0 of _0x452033['nodes'])if(_0x1571d0['is'](_0xde56('0x70')))_0x57b3f3[_0xde56('0xd')](this[_0xde56('0x14')](_0x1571d0));else for(let _0x1549d4=0x0;_0x1549d4<_0x1571d0[_0xde56('0xea')];_0x1549d4++)_0x57b3f3[_0xde56('0xd')](new _0x4332cf(_0xde56('0x6f'),{'vid':this[_0xde56('0x105')]++}));const _0x3e28e1=this['_revisionId'];for(let _0x312815=_0x58671b;_0x312815<_0x3e28e1;_0x312815++)this[_0xde56('0xb')][_0xde56('0xe1')](_0x312815,{'userId':_0x19f247});_0x41c91e[_0xde56('0xf0')](_0x57c40f[_0xde56('0xdc')],_0x57b3f3);}[_0xde56('0x17')](_0x170838){(_0x170838=this[_0xde56('0xa9')](_0x170838,this[_0xde56('0x56')]))['_execute']();const _0x22dd3b=null===_0x170838[_0xde56('0x47')]?null:_0x170838[_0xde56('0x47')]||this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')]('Users')['me']['id'],_0x536e78=_0x170838[_0xde56('0x9b')](),_0x1822bd=_0x536e78[_0xde56('0x31')],_0x547119=_0x536e78['offset'];!function _0x5dd79d(_0x593346,_0x33e599,_0x53bba4,_0x4bc79e){for(let _0x5e7446=_0x53bba4;_0x5e7446<_0x4bc79e;_0x5e7446++){const _0x4a9585=_0x33e599[_0xde56('0xee')](_0x5e7446);_0x4a9585['is']('element',_0xde56('0x6f'))?_0x593346['set'](_0x4a9585['getAttribute'](_0xde56('0x66')),{'userId':_0x22dd3b}):(_0x593346[_0xde56('0xe1')](_0x4a9585[_0xde56('0xce')](_0xde56('0xae')),{'userId':_0x22dd3b}),_0x5dd79d(_0x593346,_0x4a9585,0x0,_0x4a9585['childCount']),_0x593346[_0xde56('0xe1')](_0x4a9585[_0xde56('0xce')](_0xde56('0xc5')),{'userId':_0x22dd3b}));}}(this[_0xde56('0xb')],_0x1822bd,_0x547119,_0x547119+_0x170838[_0xde56('0x95')]);}[_0xde56('0x63')](_0x5e4f98){const _0x4945b1=null===(_0x5e4f98=this['_cloneOperation'](_0x5e4f98,this[_0xde56('0x56')]))[_0xde56('0x47')]?null:_0x5e4f98[_0xde56('0x47')]||this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')](_0xde56('0x3e'))['me']['id'],_0x693e50=_0x5e4f98[_0xde56('0x97')][_0xde56('0x31')],_0x247c5a=_0x5e4f98[_0xde56('0x62')][_0xde56('0x31')],_0x5cff64=_0x693e50['getAttribute'](_0xde56('0xc5')),_0x58772d=_0x247c5a['getAttribute'](_0xde56('0xae'));_0x693e50[_0xde56('0x34')](_0xde56('0xc5'),_0x247c5a[_0xde56('0xce')](_0xde56('0xc5'))),_0x247c5a['_setAttribute'](_0xde56('0xc5'),_0x5cff64),this[_0xde56('0xb')][_0xde56('0xe1')](_0x58772d,{'userId':_0x4945b1}),this[_0xde56('0xb')][_0xde56('0xe1')](_0x5cff64,{'userId':_0x4945b1}),_0x5e4f98[_0xde56('0x80')]();}[_0xde56('0x4b')](_0x58f249){const _0x55172f=null===(_0x58f249=this[_0xde56('0xa9')](_0x58f249,this['_idsRoots']))[_0xde56('0x47')]?null:_0x58f249[_0xde56('0x47')]||this[_0xde56('0x2f')][_0xde56('0xfd')]['get'](_0xde56('0x3e'))['me']['id'],_0x5cab59=_0x58f249['graveyardPosition'],_0x43d349=_0x58f249[_0xde56('0xb5')][_0xde56('0x31')];_0x58f249[_0xde56('0x80')]();const _0x374bd7=_0x43d349['getAttribute']('vid_end'),_0x596309=_0x58f249[_0xde56('0xfe')][_0xde56('0x9')];if(_0x5cab59){const _0x167162=_0x596309[_0xde56('0xce')](_0xde56('0xc5')),_0x180666=_0x43d349[_0xde56('0xce')](_0xde56('0xc5'));_0x43d349[_0xde56('0x34')]('vid_end',_0x167162),_0x596309[_0xde56('0x34')](_0xde56('0xc5'),_0x180666),this[_0xde56('0xb')][_0xde56('0xe1')](_0x43d349[_0xde56('0xce')](_0xde56('0xc5')),{'userId':_0x55172f}),this['_touched'][_0xde56('0xe1')](_0x596309[_0xde56('0xce')](_0xde56('0xae')),{'userId':_0x55172f});}else{const _0x400ad9=this[_0xde56('0x105')]++,_0x225f6e=this[_0xde56('0x105')]++;_0x43d349[_0xde56('0x34')](_0xde56('0xc5'),_0x400ad9),_0x596309[_0xde56('0x34')](_0xde56('0xae'),_0x225f6e),_0x596309[_0xde56('0x34')]('vid_end',_0x374bd7),this['_touched'][_0xde56('0xe1')](_0x400ad9,{'userId':_0x55172f}),this['_touched'][_0xde56('0xe1')](_0x225f6e,{'userId':_0x55172f});}}[_0xde56('0xbf')](_0x39de99){if(!_0x39de99['affectsData'])return;const _0xc33c3=(_0x39de99=this[_0xde56('0xa9')](_0x39de99,this[_0xde56('0xb2')]))['oldRange']?_0x39de99[_0xde56('0xf6')][_0xde56('0xe0')]:null,_0xbe8aa4=_0x39de99[_0xde56('0x4')]?_0x39de99[_0xde56('0x4')][_0xde56('0xe0')]:null;_0xc33c3&&this[_0xde56('0xe9')][_0xde56('0xba')](_0x39de99[_0xde56('0x3f')]),_0xbe8aa4&&this[_0xde56('0xe9')][_0xde56('0xe1')](_0x39de99[_0xde56('0x3f')],_0x39de99['newRange']['clone']());const _0x35f1b6=null===_0x39de99[_0xde56('0x47')]?null:_0x39de99[_0xde56('0x47')]||this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')]('Users')['me']['id'],_0x2a2d33=_0x39de99['name'];if(!this[_0xde56('0x27')][_0xde56('0x102')](_0x2a2d33))return void this['_touchedMarkers'][_0xde56('0xe1')](_0x2a2d33,{'range':_0x39de99[_0xde56('0xf6')],'userId':_0x35f1b6});const _0x598b1a=this[_0xde56('0x27')][_0xde56('0x11')](_0x2a2d33),_0x55f041=_0x598b1a[_0xde56('0xfa')],_0x37a3a7=_0x39de99[_0xde56('0x4')];null==_0x55f041&&null==_0x37a3a7||_0x55f041&&_0x37a3a7&&_0x55f041[_0xde56('0x5e')](_0x37a3a7)?this[_0xde56('0x27')][_0xde56('0xba')](_0x39de99[_0xde56('0x3f')]):_0x598b1a[_0xde56('0xa5')]=_0x35f1b6;}[_0xde56('0xe2')](_0x55b490,_0x439961){this[_0xde56('0xb2')][_0xde56('0x102')](_0x55b490['rootName'])?this['_diffRoots'][_0xde56('0x11')](_0x55b490[_0xde56('0x35')])[_0xde56('0xf7')]=_0x55b490['isAdd']:(this[_0xde56('0xb2')][_0xde56('0xe1')](_0x55b490[_0xde56('0x35')],G(_0x55b490[_0xde56('0x35')],!0x0)),this['_diffRootsAttributes']['set'](_0x55b490[_0xde56('0x35')],{}),_0x439961&&this[_0xde56('0x56')][_0xde56('0xe1')](_0x55b490['rootName'],G(_0x55b490[_0xde56('0x35')],!0x0)));const _0x2a688e=null===_0x55b490[_0xde56('0x47')]?null:_0x55b490[_0xde56('0x47')]||this[_0xde56('0x2f')][_0xde56('0xfd')]['get'](_0xde56('0x3e'))['me']['id'],_0x22669d=this[_0xde56('0x61')][_0xde56('0x11')](_0x55b490[_0xde56('0x35')]);_0x22669d&&_0x22669d[_0xde56('0xa5')]===_0x2a688e?this['_touchedRoots'][_0xde56('0xba')](_0x55b490[_0xde56('0x35')]):this[_0xde56('0x61')][_0xde56('0xe1')](_0x55b490['rootName'],{'userId':_0x2a688e,'isAttached':_0x55b490[_0xde56('0x8b')]});}[_0xde56('0x10')](_0x1879f3){const _0x265dd0=this[_0xde56('0x4a')][_0xde56('0x11')](_0x1879f3[_0xde56('0xe0')]['rootName']);null===_0x1879f3[_0xde56('0xc1')]?delete _0x265dd0[_0x1879f3[_0xde56('0x1f')]]:_0x265dd0[_0x1879f3[_0xde56('0x1f')]]=_0x1879f3['newValue'];}}function q(_0x2df869){const _0x50eda9=G(_0x2df869[_0xde56('0x35')],_0x2df869[_0xde56('0x3')]());for(const _0x42d016 of _0x2df869[_0xde56('0xef')]()){const _0xa2bb5=_0x42d016[_0xde56('0x9d')](!0x0);_0x50eda9['_appendChild'](_0xa2bb5);}return _0x50eda9;}function G(_0x1785db,_0x228530=!0x0){const _0x3c9d51=new _0x5ac983();return _0x3c9d51[_0xde56('0x35')]=_0x1785db,_0x3c9d51[_0xde56('0xf7')]=_0x228530,_0x3c9d51[_0xde56('0x3')]=()=>_0x3c9d51['_isAttached'],_0x3c9d51;}function L(_0x23d44b,_0x1e60bf,_0x47890f){const _0x57526d=_0xde56('0x18')==_0x23d44b[_0xde56('0xc8')]?_0x47890f[_0xde56('0x7b')](_0x23d44b['item'],_0xde56('0xf8')):_0x47890f[_0xde56('0x5d')](_0x23d44b[_0xde56('0x8e')]);return _0x47890f[_0xde56('0x2a')](_0x1e60bf,_0x57526d[_0xde56('0xa')],_0x57526d[_0xde56('0x89')]);}function W(_0x11c4dd,_0x2c4f9e,_0x472779){const _0x3c6bc8=_0xde56('0x43')==_0x11c4dd[_0xde56('0xc8')]?_0x472779[_0xde56('0x7b')](_0x11c4dd[_0xde56('0x8e')],0x0):_0x472779[_0xde56('0xb9')](_0x11c4dd[_0xde56('0x8e')]);return _0x472779['createPositionFromPath'](_0x2c4f9e,_0x3c6bc8[_0xde56('0xa')],_0x3c6bc8[_0xde56('0x89')]);}