@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230816.0 → 0.0.0-nightly-20230818.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 _0x2f7b=['isReady','howMany','deletion','authors','addRevisionData','paragraph','newRange','getAncestors','sourcePosition','isAttached','_baseRoots','dataToMarker','keepParagraph','_lastTo','vid_end','remove','clone','config','_source','source','default','_handleRootOperation','_setAttribute','_handleMoveOperation','detachRoot','attributesAfter','clear','max','version','_makeIdsRoot','nodeAfter','_isAttached','document','NEGATIVE_INFINITY','sendBufferedUpdates','getAttribute','name','start','$graveyard','oldRange','dataDowncast','getData','_handleInsertOperation','createPositionFromPath','getTime','reinsert','getRange','revision','_calculateMetaData','_cloneOperation','insertion','_handleSplitOperation','RevisionTracker','createPositionAt','createdAt','_handleRootAttributeOperation','end','parent','_touchedMarkers','_removeRevisionMarkers','_setConversion','_copyMarkers','_markers','_startingRevisionId','isEqual','getOperations','init','_savedMetaData','_generateTape','_loadState','_makeModelFromViewString','_initialRevisionId','RealTimeCollaborationClient','move','getCurrentRevisionId','addRevision','authorsIds','processor','item','_removePendingAction','push','some','hasContent','_handleOperation','getLatestVersion','startsWith','add','splitPosition','initial','getOperation','conversion','data-revision-','loadState','_clone','upcast','define','getWalker','forEach','getRevisionRootsAttributes','_markChanges','_touched','_createInitialRevision','adapter','creatorId','repository','_transformMarkers','insertionPosition','_revisionId','Users','_getFromVersion','elementEnd','editor-initial-data-replaced-with-revision-data','view','sort','rootName','then','key','get','buildRevisionData','_baseIdsRoots','offset','nodes','range','history','updateRevisions','length','Initial\x20revision','diffData','split','currentRevision','getRevisions','for','reverse','filter','includes','tableCell','root','Empty\x20document','editing','documentFragment','RevisionsRepository','graveyardPosition','_loadRevisionData','shift','getNodeByPath','getChildren','vid','delete','data','elementStart','_baseRootsAttributes','_removeMetaData','baseVersion','addRootAttribute','useFillerType','getRoot','markerToData','type','PendingActions','revisionHistory.resumeUnsavedRevision','afterInit','_insertChild','rootsAttributes','_reset','targetPosition','changeRootAttribute','stickiness','getRevision','_loadedStateData','getAttributes','_fixPosition','resolve','size','map','_applyOperations','deletions','_diffRoots','string','update','toVersion','keys','revision:','values','_addPendingAction','vid_start','parse','_getBaseVids','_replaceEditorDataWithRevisionData','newValue','slice','position','_touchedRoots','_getPreviousFrom','getTransformedByOperation','childCount','_isPendingUpdate','initialData','getUser','_fixRange','getRevisionDocumentData','_bufferUpdate','toView','marker','_lastFrom','createPositionBefore','_startingVersion','saveRevision','creator','offsetSize','model','plugins','ready','_diffRootsAttributes','createRangeIn','_findInsertionIndex','_makeRevision','_isInit','bind','set','editor','has','insertions','_createCurrentRevision','children','stringify','markers','path','from','_prepareViewToSave','pluginName','previousPosition','_continueCurrentRevision','_getVidAttributeName','attachChange','attributesBefore','collaboration.channelId','isAdd','_update','_fixOperation','locale','$text','_handleMergeOperation','fromVersion','createPositionAfter','find','_saveMetaData','_authorId','_bufferedUpdates','element','getChild','_getViewJson','_pendingAction','_execute','_idsRoots','_revisionDataBuilder','attributes','roots','setRevisionData','_processRootBeforeSave','toModel','userId','removeRootAttribute','createRange'];(function(_0x257971,_0x2f7b53){const _0x412ce9=function(_0x5d3f1d){while(--_0x5d3f1d){_0x257971['push'](_0x257971['shift']());}};_0x412ce9(++_0x2f7b53);}(_0x2f7b,0x101));const _0x412c=function(_0x257971,_0x2f7b53){_0x257971=_0x257971-0x0;let _0x412ce9=_0x2f7b[_0x257971];return _0x412ce9;};import{Users as _0x4b6697}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x116cf8,PendingActions as _0x14b047}from'ckeditor5/src/core';import{logWarning as _0x4a606e,uid as _0x5e2605}from'ckeditor5/src/utils';import{Position as _0x3e2494,Range as _0xf9f0fc,Element as _0x415faf,DocumentFragment as _0x6c5762,ViewText as _0x369703,ViewElement as _0x537081,ViewContainerElement as _0x63aa92,ViewAttributeElement as _0x2e6b5e,ViewEmptyElement as _0x50ae6e,ViewRawElement as _0x319b93,ViewUIElement as _0x291817,ViewDocumentFragment as _0x144f82}from'ckeditor5/src/engine';import _0x5248e1 from'./revisionsrepository';import{getTranslation as _0x1eff3b}from'./utils/common-translations';import{cloneDeep as _0x46b802,isEqual as _0x442013}from'lodash-es';const B={'c':_0x63aa92,'a':_0x2e6b5e,'e':_0x50ae6e,'r':_0x319b93,'u':_0x291817};export default class l extends _0x116cf8{static get[_0x412c('0xeb')](){return _0x412c('0x3a');}static get['requires'](){return[_0x4b6697,_0x5248e1,_0x14b047];}constructor(_0x2ece17){super(_0x2ece17),this['adapter']=null,this[_0x412c('0x87')]=null,this[_0x412c('0x104')]=new H(this[_0x412c('0xe1')]),this['_initialRevisionId']=this[_0x412c('0xe1')][_0x412c('0x17')][_0x412c('0x7b')]('collaboration.channelId')||_0x412c('0x5e'),this[_0x412c('0xfd')]=new Map(),this[_0x412c('0xae')]=null;const _0x59e949=_0x5e2605();this[_0x412c('0x18')]={'history':this[_0x412c('0xe1')][_0x412c('0xd7')][_0x412c('0x26')][_0x412c('0x81')],'getLatestVersion':()=>Promise[_0x412c('0xb1')](this['editor'][_0x412c('0xd7')][_0x412c('0x26')]['version']),'getCurrentRevisionId':()=>_0x59e949},this[_0x412c('0xe0')](_0x412c('0x6'),!0x1),this[_0x412c('0xe0')]('isEnabled',!0x0),this[_0x412c('0xe0')](_0x412c('0xc9'),!0x1),this[_0x412c('0xe1')]['config'][_0x412c('0x65')](_0x412c('0xa5'),!0x0),this['editor'][_0x412c('0x60')][_0x412c('0x89')](_0x412c('0x64'))[_0x412c('0x11')]({'view':_0x412c('0x35')});}[_0x412c('0x48')](){this[_0x412c('0x6e')]=this[_0x412c('0xe1')][_0x412c('0xd8')][_0x412c('0x7b')](_0x412c('0x92')),this[_0x412c('0x42')](),this[_0x412c('0xe1')][_0x412c('0x9a')]['on'](_0x412c('0xd9'),()=>{const _0x18fbe5=this[_0x412c('0x6e')]['getRevision'](0x0),_0x3ebb0e=_0x18fbe5&&null===_0x18fbe5[_0x412c('0xd5')]?_0x18fbe5:null;if(this[_0x412c('0xed')]=!!_0x3ebb0e&&this['editor'][_0x412c('0x17')][_0x412c('0x7b')](_0x412c('0xa5')),this[_0x412c('0xe1')][_0x412c('0xd8')][_0x412c('0xe2')](_0x412c('0x4e'))){const _0x2a7269=this['_source'][_0x412c('0x50')](),_0x31a094=this[_0x412c('0x6e')][_0x412c('0xad')](_0x2a7269);if(_0x31a094)this['_startingVersion']=_0x31a094[_0x412c('0xf8')],this[_0x412c('0xed')]=!0x1;else{const _0x8ef6d=this['_source']['history']['_operations'][_0x412c('0xfa')](_0xb0c889=>!_0xb0c889[_0x412c('0xde')]),_0x38014c=_0x8ef6d?_0x8ef6d[_0x412c('0x9e')]:this[_0x412c('0x18')][_0x412c('0x81')]['version'];_0x18fbe5?(_0x18fbe5['toVersion']<_0x38014c&&_0x18fbe5[_0x412c('0xf3')]({'toVersion':_0x38014c}),this[_0x412c('0xed')]?(this['_source'][_0x412c('0x50')]=()=>_0x3ebb0e['id'],this[_0x412c('0xd3')]=_0x3ebb0e['fromVersion']):(this[_0x412c('0xd3')]=_0x18fbe5[_0x412c('0xb9')],this[_0x412c('0xed')]=!0x1)):(this[_0x412c('0xd3')]=_0x38014c,this[_0x412c('0xed')]=!0x1);}}else _0x3ebb0e&&(this[_0x412c('0xe1')][_0x412c('0xd7')][_0x412c('0x26')][_0x412c('0x81')][_0x412c('0x22')]=Math[_0x412c('0x21')](_0x3ebb0e[_0x412c('0xb9')],this['editor'][_0x412c('0xd7')][_0x412c('0x26')][_0x412c('0x81')][_0x412c('0x22')]),_0x3ebb0e[_0x412c('0xf8')]===_0x3ebb0e[_0x412c('0xb9')]?(0x0!==_0x3ebb0e[_0x412c('0xf8')]&&(this[_0x412c('0x18')][_0x412c('0x50')]=()=>_0x3ebb0e['id']),this[_0x412c('0xed')]=!0x1):this[_0x412c('0xed')]&&(this[_0x412c('0x18')][_0x412c('0x50')]=()=>_0x3ebb0e['id'],this[_0x412c('0xd3')]=_0x3ebb0e[_0x412c('0xf8')])),this[_0x412c('0xed')]||(this[_0x412c('0xd3')]=this[_0x412c('0xe1')][_0x412c('0xd7')][_0x412c('0x26')][_0x412c('0x22')]);this[_0x412c('0x104')][_0x412c('0x48')](this['_source']['history']),this[_0x412c('0x6b')](this[_0x412c('0xd3')]),this[_0x412c('0xe4')](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this[_0x412c('0xdf')](_0x412c('0x6'))['to'](this,_0x412c('0xc9'),_0x2ab324=>!_0x2ab324);}async[_0x412c('0xa6')](){if(this[_0x412c('0x6e')][_0x412c('0x83')]>0x0){const _0x3a206f=this[_0x412c('0x6e')]['getRevision'](0x0),_0x3be7a7=await this['getRevisionDocumentData'](_0x3a206f),_0x1c9c55=await this[_0x412c('0x68')](_0x3a206f);this[_0x412c('0xc1')](_0x3be7a7,_0x1c9c55);}}['setSource'](_0x3248e8){this[_0x412c('0x18')]=_0x3248e8;}async[_0x412c('0xb8')](){const _0xad9267=await this[_0x412c('0x18')][_0x412c('0x5a')]();if(_0xad9267>this[_0x412c('0x87')][_0x412c('0xb9')]){await this['_loadState']();const _0x2ffaae=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xad9267});_0x2ffaae[_0x412c('0x9')]=_0x2ffaae[_0x412c('0x52')]['map'](_0x30a335=>this[_0x412c('0xe1')][_0x412c('0xd8')][_0x412c('0x7b')]('Users')[_0x412c('0xcb')](_0x30a335)),this[_0x412c('0x87')]['_update'](_0x2ffaae);}}async[_0x412c('0x4b')](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this[_0x412c('0x94')](this['currentRevision']),this[_0x412c('0x104')][_0x412c('0x62')](this[_0x412c('0x87')]),this[_0x412c('0xae')]={'fromVersion':this[_0x412c('0x87')][_0x412c('0xf8')],'authors':this[_0x412c('0x87')][_0x412c('0x9')][_0x412c('0xc3')]()});}async[_0x412c('0xd4')](_0x5eb449={},_0x5b73bc=null){const _0x565f0a=[];await this[_0x412c('0x4b')](),this['_continueCurrentRevision']=!0x1,_0x5b73bc>this['currentRevision'][_0x412c('0xb9')]&&(_0x5b73bc=null),null===_0x5b73bc&&(_0x5b73bc=await this[_0x412c('0x18')][_0x412c('0x5a')]());const _0x287bec=this[_0x412c('0x73')](_0x5b73bc),_0x172ccf=this[_0x412c('0x7c')]({'from':_0x287bec,'to':_0x5b73bc});if(this[_0x412c('0x87')][_0x412c('0xb9')]<_0x5b73bc){const _0x2bf13f=this['buildRevisionData']({'revision':this[_0x412c('0x87')],'from':_0x5b73bc,'to':_0x5b73bc});_0x2bf13f[_0x412c('0x9')]=[],_0x2bf13f['authorsIds']=[],_0x2bf13f['id']=this[_0x412c('0x87')]['id'],this[_0x412c('0x87')]['_update'](_0x2bf13f,!0x0),delete _0x2bf13f[_0x412c('0x9')],_0x565f0a[_0x412c('0x56')](_0x2bf13f);}_0x5eb449[_0x412c('0x6d')]=this[_0x412c('0xe1')][_0x412c('0xd8')][_0x412c('0x7b')]('Users')['me']['id'],_0x5eb449['name']=_0x5eb449['name']||null,_0x5eb449['id']=_0x5eb449['id']||_0x5e2605(),_0x5eb449={..._0x5eb449,..._0x172ccf};const _0x430e2c=this[_0x412c('0xa')](_0x5eb449);_0x565f0a[_0x412c('0x56')](_0x5eb449);const _0x3aa036=this[_0x412c('0x6e')]['getIndex'](_0x430e2c);if(0x0!==_0x3aa036){const _0xc698d8=this[_0x412c('0x6e')][_0x412c('0xad')](_0x3aa036-0x1);if(_0xc698d8[_0x412c('0xf8')]!==_0x5b73bc){const _0xc4417c=this[_0x412c('0x104')][_0x412c('0x2f')](_0x5b73bc,_0xc698d8[_0x412c('0xb9')]),_0x32c287={'id':_0xc698d8['id'],'diffData':_0xc4417c[_0x412c('0x85')],'authorsIds':_0xc4417c['authorsIds'],'authors':_0xc4417c[_0x412c('0x52')]['map'](_0x37b811=>this[_0x412c('0xe1')]['plugins'][_0x412c('0x7b')](_0x412c('0x72'))[_0x412c('0xcb')](_0x37b811)),'fromVersion':_0x5b73bc};_0xc698d8===this[_0x412c('0x87')]&&(_0x32c287['createdAt']=new Date(_0x5eb449[_0x412c('0x3c')][_0x412c('0x32')]()+0xa)),_0xc698d8[_0x412c('0xf3')](_0x32c287,!0x0),delete _0x32c287['authors'],_0x565f0a[_0x412c('0x56')](_0x32c287);}}if(this[_0x412c('0x6c')]){for(const _0x219e5b of _0x565f0a)this[_0x412c('0xce')](_0x219e5b['id'],_0x219e5b,!0x0);this[_0x412c('0x28')]();}return _0x430e2c;}[_0x412c('0xa')](_0x39459e){const _0x861967=this[_0x412c('0x6e')]['createRevision'](_0x39459e);return this[_0x412c('0x6c')]&&_0x861967['on'](_0x412c('0xf3'),(_0x2e7259,_0x3ae153,_0x285c9c)=>{_0x285c9c||(this[_0x412c('0xce')](_0x3ae153['id'],_0x3ae153,!0x0),this['sendBufferedUpdates']());}),this['repository'][_0x412c('0x51')](_0x861967,this[_0x412c('0xdc')](_0x861967)),_0x861967;}async[_0x412c('0xcd')](_0x1fe6b5){await this[_0x412c('0x94')](_0x1fe6b5);const _0x402fc5={};for(const _0x51cd46 in _0x1fe6b5['diffData']){if(_0x1fe6b5[_0x412c('0x85')][_0x51cd46][_0x412c('0xef')]&&!_0x1fe6b5[_0x412c('0x85')][_0x51cd46][_0x412c('0xef')][_0x412c('0xf')])continue;const _0x5a28a5=this[_0x412c('0x41')](JSON[_0x412c('0xbf')](_0x1fe6b5['diffData'][_0x51cd46][_0x412c('0xe3')])),_0x5d0961=this[_0x412c('0xe1')][_0x412c('0x90')][_0x412c('0x76')][_0x412c('0x26')],_0xe9019a=new _0x144f82(_0x5d0961,_0x5a28a5[_0x412c('0xb3')](_0x39cb11=>J(_0x39cb11,this[_0x412c('0xe1')])));this['editor'][_0x412c('0x9a')][_0x412c('0x53')][_0x412c('0xa0')]('marked'),_0x402fc5[_0x51cd46]=this[_0x412c('0xe1')][_0x412c('0x9a')]['processor']['toData'](_0xe9019a),this['editor']['data'][_0x412c('0x53')][_0x412c('0xa0')](_0x412c('0x1a'));}return _0x402fc5;}async[_0x412c('0x68')](_0x7ea1f4){await this[_0x412c('0x94')](_0x7ea1f4);const _0x268670={};for(const _0x1d71fb in _0x7ea1f4[_0x412c('0x85')])_0x7ea1f4[_0x412c('0x85')][_0x1d71fb]['attachChange']&&!_0x7ea1f4[_0x412c('0x85')][_0x1d71fb][_0x412c('0xef')]['isAttached']||(_0x268670[_0x1d71fb]=_0x7ea1f4['diffData'][_0x1d71fb][_0x412c('0x1f')]||{});return _0x268670;}['sendBufferedUpdates'](){if(0x0===this[_0x412c('0xfd')][_0x412c('0xb2')])return;if(this[_0x412c('0xc9')])return;let _0x4ef680=Array[_0x412c('0xe9')](this[_0x412c('0xfd')][_0x412c('0xbc')]());this['_bufferedUpdates'][_0x412c('0x20')]();for(let _0x75bddd=0x0;_0x75bddd<_0x4ef680[_0x412c('0x83')];_0x75bddd++){const _0x4b29c9=_0x4ef680[_0x75bddd];let _0x4fbcaf=!0x1;for(const _0x221d55 of Object[_0x412c('0xba')](_0x4b29c9))void 0x0===_0x4b29c9[_0x221d55]?delete _0x4b29c9[_0x221d55]:'id'!==_0x221d55&&(_0x4fbcaf=!0x0);_0x4fbcaf||(_0x4ef680[_0x75bddd]=null);}if(_0x4ef680=_0x4ef680[_0x412c('0x8b')](_0x3283e4=>null!==_0x3283e4),!_0x4ef680['length'])return;for(let _0xfe0a05=0x0;_0xfe0a05<_0x4ef680[_0x412c('0x83')];_0xfe0a05++){const _0x8c6815=_0x4ef680[_0xfe0a05];void 0x0!==_0x8c6815['fromVersion']&&void 0x0===_0x8c6815[_0x412c('0xb9')]&&(_0x8c6815[_0x412c('0xb9')]=this['repository'][_0x412c('0xad')](_0x8c6815['id'])['toVersion']),void 0x0!==_0x8c6815[_0x412c('0xb9')]&&void 0x0===_0x8c6815['fromVersion']&&(_0x8c6815[_0x412c('0xf8')]=this[_0x412c('0x6e')][_0x412c('0xad')](_0x8c6815['id'])[_0x412c('0xf8')]);}const _0x2cf618=this['editor'][_0x412c('0x17')][_0x412c('0x7b')](_0x412c('0xf1'));this[_0x412c('0xc9')]=!0x0,this[_0x412c('0xbd')](),this['adapter'][_0x412c('0x82')](_0x4ef680,_0x2cf618)['finally'](()=>{this[_0x412c('0xc9')]=!0x1;})['then'](_0xf0d9b8=>{if(_0xf0d9b8)for(const _0x2cbcda of _0xf0d9b8)this[_0x412c('0x0')]({'id':_0x2cbcda['id'],'createdAt':_0x2cbcda['createdAt']});this[_0x412c('0x55')](),this['sendBufferedUpdates']();});}[_0x412c('0xc1')](_0x51c115,_0x2c1a0e){let _0xb7ba45=this[_0x412c('0xe1')][_0x412c('0x17')][_0x412c('0x7b')](_0x412c('0xca')),_0x172ee6=this[_0x412c('0xe1')][_0x412c('0x17')][_0x412c('0x7b')]('rootsAttributes');if(void 0x0===_0xb7ba45){_0xb7ba45={};for(const _0xf12350 of this[_0x412c('0xe1')]['model'][_0x412c('0x26')]['getRootNames']())_0xb7ba45[_0xf12350]='';}if(_0x412c('0xb7')==typeof _0xb7ba45&&(_0xb7ba45={'main':_0xb7ba45}),void 0x0===_0x172ee6){_0x172ee6={};for(const _0x1a9add of this[_0x412c('0xe1')][_0x412c('0xd7')][_0x412c('0x26')]['getRootNames']())_0x172ee6[_0x1a9add]={};}let _0x397713=!0x1;const _0x2b0b18=Object[_0x412c('0xba')](_0xb7ba45),_0x173ba3=Object['keys'](_0x51c115);for(const _0x42728d of _0x2b0b18){if(_0xb7ba45[_0x42728d]!==_0x51c115[_0x42728d]&&''!==_0xb7ba45[_0x42728d]['trim']()){_0x397713=!0x0;break;}if(!_0x442013(_0x172ee6[_0x42728d],_0x2c1a0e[_0x42728d])&&Object[_0x412c('0xba')](_0x172ee6[_0x42728d])[_0x412c('0x83')]>0x0){_0x397713=!0x0;break;}}_0x397713||(_0x397713=_0x173ba3[_0x412c('0x57')](_0x3c43bc=>!this[_0x412c('0xe1')][_0x412c('0xd7')]['document'][_0x412c('0xa1')](_0x3c43bc))),_0x397713&&_0x4a606e(_0x412c('0x75'),{'editorData':_0xb7ba45,'editorRootsAttributes':_0x172ee6,'revisionData':_0x51c115,'revisionRootsAttributes':_0x2c1a0e}),this[_0x412c('0xe1')][_0x412c('0x17')][_0x412c('0xe0')]('initialData',_0x51c115),this[_0x412c('0xe1')]['config'][_0x412c('0xe0')](_0x412c('0xa8'),_0x2c1a0e);}[_0x412c('0xbd')](){if(!this['_pendingAction']){const _0x1178ea=this['editor'][_0x412c('0xd8')][_0x412c('0x7b')]('PendingActions');this[_0x412c('0x101')]=_0x1178ea[_0x412c('0x5c')](_0x1eff3b(this[_0x412c('0xe1')][_0x412c('0xf5')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x412c('0x55')](){this[_0x412c('0x101')]&&(this[_0x412c('0xe1')]['plugins'][_0x412c('0x7b')](_0x412c('0xa4'))[_0x412c('0x15')](this['_pendingAction']),this[_0x412c('0x101')]=null);}[_0x412c('0xdc')](_0x26d2bb){const _0x124882=this[_0x412c('0x6e')][_0x412c('0x88')]();_0x124882[_0x412c('0x8a')]();let _0x4ed957=0x0;for(;_0x4ed957<_0x124882[_0x412c('0x83')];){const _0x44717d=_0x124882[_0x4ed957];if(_0x44717d===this[_0x412c('0x87')]){_0x4ed957++;continue;}if(_0x44717d['id']===this[_0x412c('0x4d')])break;const _0x538541=_0x26d2bb['toVersion']-_0x44717d[_0x412c('0xb9')]||_0x26d2bb[_0x412c('0xf8')]-_0x44717d[_0x412c('0xf8')];if(_0x538541>0x0)break;if(_0x538541<0x0)_0x4ed957++;else{if(!_0x26d2bb[_0x412c('0xd5')]&&_0x44717d[_0x412c('0xd5')])break;if(_0x44717d[_0x412c('0xd5')]||!_0x26d2bb[_0x412c('0xd5')]){if(_0x26d2bb['createdAt']>_0x44717d[_0x412c('0x3c')])break;_0x4ed957++;}else _0x4ed957++;}}return _0x4ed957;}[_0x412c('0x0')](_0x327fce){const _0x42344b=this[_0x412c('0x6e')][_0x412c('0xad')](_0x327fce['id']);if(_0x327fce[_0x412c('0x3c')]&&(_0x327fce['createdAt']=new Date(_0x327fce['createdAt'])),_0x327fce['authorsIds']){const _0x324e59=this[_0x412c('0xe1')][_0x412c('0xd8')][_0x412c('0x7b')]('Users');_0x327fce[_0x412c('0x9')]=_0x327fce[_0x412c('0x52')]['map'](_0x1d0b13=>_0x324e59[_0x412c('0xcb')](_0x1d0b13));}_0x42344b[_0x412c('0xf3')](_0x327fce,!0x0);}['buildRevisionData']({revision:_0xa6841b=null,from:_0x74f135=null,to:_0x2827e3=null}){_0x74f135=null!==_0x74f135?_0x74f135:_0xa6841b[_0x412c('0xf8')],_0x2827e3=null!==_0x2827e3?_0x2827e3:_0xa6841b[_0x412c('0xb9')];const _0x10df92=this[_0x412c('0x104')]['getData'](_0x74f135,_0x2827e3),_0x25a7ed={'diffData':_0x10df92[_0x412c('0x85')],'authorsIds':_0x10df92['authorsIds'],'fromVersion':_0x74f135,'toVersion':_0x2827e3};if(!_0xa6841b||_0x2827e3!==_0xa6841b['toVersion']){const _0x2a4a3f=_0x2827e3-0x1,_0x1b5d56=this[_0x412c('0x18')][_0x412c('0x81')][_0x412c('0x5f')](_0x2a4a3f);_0x25a7ed[_0x412c('0x3c')]=_0x1b5d56&&_0x1b5d56[_0x412c('0x3c')]||new Date();}if(this[_0x412c('0xae')]&&_0x74f135===this[_0x412c('0xae')][_0x412c('0xf8')])for(const _0x5eb436 of this['_loadedStateData']['authors'])_0x25a7ed[_0x412c('0x52')][_0x412c('0x8c')](_0x5eb436['id'])||_0x25a7ed[_0x412c('0x52')][_0x412c('0x56')](_0x5eb436['id']);return _0x25a7ed;}[_0x412c('0x94')](_0x42ee6e){if(!_0x42ee6e||_0x42ee6e[_0x412c('0x85')])return Promise['resolve']();{const _0x13c57f=this[_0x412c('0xe1')]['config'][_0x412c('0x7b')]('collaboration.channelId');return this['adapter'][_0x412c('0xad')]({'channelId':_0x13c57f,'revisionId':_0x42ee6e['id']})[_0x412c('0x79')](_0x113a46=>{_0x42ee6e['diffData']=_0x113a46[_0x412c('0x85')];});}}[_0x412c('0xce')](_0x20c3f0,_0x121c2c,_0x24e1ea){if(this[_0x412c('0xfd')][_0x412c('0xe2')](_0x20c3f0)){const _0x36f3cf=this['_bufferedUpdates'][_0x412c('0x7b')](_0x20c3f0);_0x121c2c=_0x24e1ea?{..._0x36f3cf,..._0x121c2c}:{..._0x121c2c,..._0x36f3cf};}this[_0x412c('0xfd')][_0x412c('0xe0')](_0x20c3f0,_0x121c2c);}['_getFromVersion'](_0x1ab80d){const _0x285443=this[_0x412c('0x6e')][_0x412c('0x88')]();_0x285443[_0x412c('0x8a')](),_0x285443[_0x412c('0x95')]();const _0x1fc098=_0x285443[_0x412c('0xfa')](_0x40c658=>_0x40c658[_0x412c('0xb9')]<=_0x1ab80d)[_0x412c('0xb9')];return _0x1fc098<this[_0x412c('0xd3')]?this[_0x412c('0xd3')]:_0x1fc098;}[_0x412c('0x6b')](_0x5dace8){const _0x1d832f=this[_0x412c('0x6e')][_0x412c('0xad')](this['repository'][_0x412c('0x83')]-0x1);if(_0x1d832f)this['_initialRevisionId']=_0x1d832f['id'];else{const _0x49af03=!this[_0x412c('0xe1')][_0x412c('0xd7')][_0x412c('0x26')][_0x412c('0x106')][_0x412c('0xfa')](_0xe7675a=>this[_0x412c('0xe1')]['model'][_0x412c('0x58')](_0xe7675a)),_0x5960bd=this[_0x412c('0xe1')][_0x412c('0xd8')][_0x412c('0x7b')](_0x412c('0x72'))['me']['id'],_0x48bce2=_0x1eff3b(this[_0x412c('0xe1')]['locale'],_0x49af03?_0x412c('0x8f'):_0x412c('0x84'));this[_0x412c('0xdd')]({'from':_0x5dace8,'to':_0x5dace8,'id':this[_0x412c('0x4d')],'name':_0x48bce2,'creatorId':_0x5960bd});}}[_0x412c('0xe4')](_0x34556f){const _0x14f170=this[_0x412c('0x18')]['getCurrentRevisionId']();this['currentRevision']=this[_0x412c('0x6e')]['getRevision'](_0x14f170),this[_0x412c('0x87')]||(this['currentRevision']=this[_0x412c('0xdd')]({'from':_0x34556f,'to':_0x34556f,'id':_0x14f170,'name':'','creatorId':null}));}[_0x412c('0xdd')]({name:_0x156899,from:_0x5c73f5,to:_0x3a4829,creatorId:_0x3a5df7,id:_0x350acb}){const _0x4a213e=this[_0x412c('0x7c')]({'from':_0x5c73f5,'to':_0x3a4829});_0x4a213e[_0x412c('0x2a')]=_0x156899,_0x4a213e[_0x412c('0x6d')]=_0x3a5df7,_0x4a213e['id']=_0x350acb;const _0x4b69db=this[_0x412c('0xa')](_0x4a213e);return this[_0x412c('0x6c')]&&this[_0x412c('0xce')](_0x4a213e['id'],_0x4a213e,!0x0),_0x4b69db;}[_0x412c('0x42')](){this[_0x412c('0xe1')][_0x412c('0x60')][_0x412c('0x89')](_0x412c('0x2e'))[_0x412c('0xa2')]({'model':_0x412c('0x35')});}[_0x412c('0x41')](_0x121501){return(_0x121501=_0x121501[_0x412c('0x8b')](_0x573702=>!_0x573702[_0x412c('0x2a')]||'revision-start'!==_0x573702[_0x412c('0x2a')]&&'revision-end'!==_0x573702[_0x412c('0x2a')]))[_0x412c('0x67')](_0x389c58=>{_0x412c('0xb7')!=typeof _0x389c58&&(_0x389c58['children']=this[_0x412c('0x41')](_0x389c58[_0x412c('0xe5')]),_0x389c58[_0x412c('0x105')]=_0x389c58[_0x412c('0x105')][_0x412c('0x8b')](_0x438011=>!_0x438011[0x0]['startsWith'](_0x412c('0x61'))));}),_0x121501;}}function J(_0xaa3a05,_0x7d6379){const _0x4fd08c=_0x7d6379['editing'][_0x412c('0x76')][_0x412c('0x26')];if(_0x412c('0xb7')==typeof _0xaa3a05)return new _0x369703(_0x4fd08c,_0xaa3a05);{const _0xbe2b6d=_0xaa3a05['children'][_0x412c('0xb3')](_0x4db18d=>J(_0x4db18d,_0x7d6379));return new(B[_0xaa3a05[(_0x412c('0xa3'))]]||_0x537081)(_0x4fd08c,_0xaa3a05[_0x412c('0x2a')],_0xaa3a05[_0x412c('0x105')],_0xbe2b6d);}}class H{constructor(_0x53566b){this[_0x412c('0xe1')]=_0x53566b,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this[_0x412c('0x13')]=-0x1,this[_0x412c('0x44')]=new Map(),this[_0x412c('0xb6')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x412c('0x10')]=new Map(),this[_0x412c('0x9c')]=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this[_0x412c('0x6a')]=new Map(),this[_0x412c('0x40')]=new Map(),this[_0x412c('0xc5')]=new Map(),this[_0x412c('0x71')]=0x1;}['init'](_0x4179f4){this[_0x412c('0x19')]=_0x4179f4;const _0x589a7a=new Map(),_0x5b265f=new Map(),_0x1cccc0=this[_0x412c('0xe1')]['model']['document'][_0x412c('0x106')][_0x412c('0xb3')](_0x303d7c=>_0x303d7c[_0x412c('0x78')]);for(const _0x488184 of _0x1cccc0){const _0x3a8a21=this[_0x412c('0xe1')][_0x412c('0xd7')][_0x412c('0x26')]['getRoot'](_0x488184),_0xb3bf3a=q(_0x3a8a21);_0x589a7a['set'](_0x488184,_0xb3bf3a),_0x5b265f[_0x412c('0xe0')](_0x488184,Object['fromEntries'](_0x3a8a21[_0x412c('0xaf')]()));}const _0x15f6be=Array[_0x412c('0xe9')](this[_0x412c('0xe1')]['model']['markers'])[_0x412c('0xb3')](_0x3a0e2d=>[_0x3a0e2d[_0x412c('0x2a')],_0x3a0e2d[_0x412c('0x34')]()]),_0x2617b4=this[_0x412c('0x19')][_0x412c('0x22')];this[_0x412c('0xfb')](_0x2617b4,_0x589a7a,_0x15f6be,_0x5b265f),this[_0x412c('0x45')]=this[_0x412c('0x71')];const _0x5518f0=new Map(),_0x4c503c=new Map();for(const _0x15b59d of _0x1cccc0){const _0x5c7cb3=G(_0x15b59d);_0x5518f0[_0x412c('0xe0')](_0x15b59d,_0x5c7cb3),_0x4c503c[_0x412c('0xe0')](_0x15b59d,{});}this[_0x412c('0xfb')](Number[_0x412c('0x27')],_0x5518f0,[],_0x4c503c);}['getData'](_0x5a71cc,_0x289426){if(this[_0x412c('0xd1')]===_0x5a71cc&&this[_0x412c('0x13')]<=_0x289426)this[_0x412c('0x49')]['size']>0x1&&this[_0x412c('0x9d')](this['_lastTo']),this[_0x412c('0xb4')](this[_0x412c('0x13')],_0x289426,!0x0);else{if(!this['_savedMetaData'][_0x412c('0xe2')](_0x5a71cc)){const _0x51f149=this[_0x412c('0xc6')](_0x5a71cc);this[_0x412c('0x36')](_0x51f149,_0x5a71cc,!0x1);}this[_0x412c('0x36')](_0x5a71cc,_0x289426,!0x0);}return this[_0x412c('0xd1')]=_0x5a71cc,this[_0x412c('0x13')]=_0x289426,this['_getState']();}['loadState'](_0x3fe121){this[_0x412c('0xa9')](),this[_0x412c('0xd1')]=_0x3fe121[_0x412c('0xf8')],this[_0x412c('0x13')]=_0x3fe121['toVersion'];for(const _0x248587 in _0x3fe121[_0x412c('0x85')]){const _0x15ba6f=_0x3fe121[_0x412c('0x85')][_0x248587][_0x412c('0xef')],_0x428d5f=_0x46b802(_0x3fe121[_0x412c('0x85')][_0x248587][_0x412c('0xf0')])||{},_0x128df3=this[_0x412c('0x4c')](_0x3fe121[_0x412c('0x85')][_0x248587]['deletions']);_0x128df3['rootName']=_0x248587,_0x128df3['_isAttached']=!_0x15ba6f||!_0x15ba6f[_0x412c('0xf')],_0x128df3[_0x412c('0xf')]=()=>_0x128df3[_0x412c('0x25')],this['_baseRoots'][_0x412c('0xe0')](_0x248587,_0x128df3),this[_0x412c('0x9c')][_0x412c('0xe0')](_0x248587,_0x428d5f),_0x15ba6f&&this[_0x412c('0xc5')]['set'](_0x248587,_0x15ba6f);const _0x4d479b=this['_makeIdsRoot'](_0x128df3);this[_0x412c('0x7d')]['set'](_0x248587,_0x4d479b);for(const [_0x3d90de,_0x3fc3ab]of _0x128df3['markers']){if(!_0x3d90de[_0x412c('0x5b')](_0x412c('0xbb')))continue;const _0x5a4870=_0x3d90de['split'](':')[0x2];for(const _0x14f2e2 of _0x3fc3ab[_0x412c('0x66')]({'singleCharacters':!0x0})){const _0xc89b97=this[_0x412c('0xee')](_0x14f2e2),_0x5550bd=_0x412c('0x74')==_0x14f2e2['type']?_0x14f2e2[_0x412c('0xec')][_0x412c('0xe8')]['slice'](0x0,-0x1):_0x14f2e2[_0x412c('0xec')][_0x412c('0xe8')],_0x4bff6b=_0x4d479b[_0x412c('0x96')](_0x5550bd)[_0x412c('0x29')](_0xc89b97);this['_touched'][_0x412c('0xe0')](_0x4bff6b,{'userId':_0x5a4870});}}}this[_0x412c('0x45')]=this[_0x412c('0x71')];const _0x749d70=[...Array(this[_0x412c('0x71')])['keys']()]['slice'](0x1)[_0x412c('0x8b')](_0x3d3996=>!this[_0x412c('0x6a')][_0x412c('0xe2')](_0x3d3996));let _0x17a5b1=0x0;const _0x6279e4=new Map();for(const _0x4c3bcb in _0x3fe121['diffData']){const _0x12a54d=_0x3fe121[_0x412c('0x85')][_0x4c3bcb][_0x412c('0xef')],_0x6f62df=_0x46b802(_0x3fe121['diffData'][_0x4c3bcb][_0x412c('0x1f')])||{},_0x1caf2a=this['_makeModelFromViewString'](_0x3fe121[_0x412c('0x85')][_0x4c3bcb][_0x412c('0xe3')]);_0x1caf2a[_0x412c('0x78')]=_0x4c3bcb,_0x1caf2a['_isAttached']=!_0x12a54d||_0x12a54d[_0x412c('0xf')],_0x1caf2a['isAttached']=()=>_0x1caf2a[_0x412c('0x25')],this[_0x412c('0xb6')]['set'](_0x4c3bcb,_0x1caf2a),this[_0x412c('0xda')]['set'](_0x4c3bcb,_0x6f62df);const _0x5ebf08=this['_makeIdsRoot'](_0x1caf2a,Number[_0x412c('0x27')]);this[_0x412c('0x103')][_0x412c('0xe0')](_0x4c3bcb,_0x5ebf08),_0x6279e4[_0x412c('0xe0')](_0x4c3bcb,_0x1caf2a[_0x412c('0xf')]()?_0x6f62df:{});for(const [_0x2d3cf0,_0x569097]of _0x1caf2a[_0x412c('0xe7')]){if(!_0x2d3cf0[_0x412c('0x5b')](_0x412c('0xbb')))continue;const _0xf4fe55=_0x2d3cf0[_0x412c('0x86')](':')[0x2];for(const _0x43af1a of _0x569097[_0x412c('0x66')]({'singleCharacters':!0x0})){const _0x140332=this[_0x412c('0xee')](_0x43af1a),_0x150184=this[_0x412c('0x71')]++,_0x3badf6=_0x412c('0x74')==_0x43af1a[_0x412c('0xa3')]?_0x43af1a[_0x412c('0xec')][_0x412c('0xe8')][_0x412c('0xc3')](0x0,-0x1):_0x43af1a[_0x412c('0xec')]['path'];_0x5ebf08[_0x412c('0x96')](_0x3badf6)[_0x412c('0x1c')](_0x140332,_0x150184),this['_touched']['set'](_0x150184,{'userId':_0xf4fe55});}}for(const _0x5c6fda of this[_0x412c('0xe1')][_0x412c('0xd7')][_0x412c('0xdb')](_0x1caf2a)[_0x412c('0x66')]({'singleCharacters':!0x0})){const _0x1951d3=this['_getVidAttributeName'](_0x5c6fda),_0x27e0f6=_0x412c('0x74')==_0x5c6fda[_0x412c('0xa3')]?_0x5c6fda[_0x412c('0xec')]['path'][_0x412c('0xc3')](0x0,-0x1):_0x5c6fda[_0x412c('0xec')][_0x412c('0xe8')],_0x3c022d=_0x5ebf08[_0x412c('0x96')](_0x27e0f6);_0x3c022d[_0x412c('0x29')](_0x1951d3)>0x0||_0x3c022d['_setAttribute'](_0x1951d3,_0x749d70[_0x17a5b1++]);}for(const [_0x32cb92,_0x4e3141]of _0x1caf2a[_0x412c('0xe7')])_0x32cb92[_0x412c('0x5b')](_0x412c('0xbb'))||this[_0x412c('0x44')][_0x412c('0xe0')](_0x32cb92,_0x4e3141);}const _0x158adc=G(_0x412c('0x2c'));this[_0x412c('0x10')][_0x412c('0xe0')](_0x412c('0x2c'),_0x158adc),this[_0x412c('0x7d')][_0x412c('0xe0')]('$graveyard',this[_0x412c('0x23')](_0x158adc,0x1));const _0x1a20b8=G(_0x412c('0x2c'));this[_0x412c('0xb6')][_0x412c('0xe0')](_0x412c('0x2c'),_0x1a20b8),this[_0x412c('0x103')][_0x412c('0xe0')](_0x412c('0x2c'),this[_0x412c('0x23')](_0x1a20b8,0x1));const _0x1f018b=Array[_0x412c('0xe9')](this[_0x412c('0xb6')])[_0x412c('0xb3')](([_0x5ed1ca,_0x5f0ff])=>[_0x5ed1ca,q(_0x5f0ff)]);this[_0x412c('0xfb')](this[_0x412c('0x13')],_0x1f018b,this[_0x412c('0x44')],_0x6279e4);}[_0x412c('0x4c')](_0x2a9e4a){const _0x3e96a0=JSON['parse'](_0x2a9e4a),_0x2d52dc=this['editor']['editing'][_0x412c('0x76')]['document'],_0xf48cde=new _0x144f82(_0x2d52dc,_0x3e96a0[_0x412c('0xb3')](_0x54f443=>J(_0x54f443,this['editor'])));return this['editor'][_0x412c('0x9a')][_0x412c('0x2')](_0xf48cde);}[_0x412c('0xfb')](_0x2c64d0,_0x520d8e,_0x17aea1,_0x2b0cb6){const _0x4da89a=new Map(_0x520d8e),_0x1a9aa9=new Map(_0x46b802(_0x2b0cb6)),_0x5b5c73=new Map();for(const [_0x561e33,_0x57eade]of _0x17aea1)_0x5b5c73[_0x412c('0xe0')](_0x561e33,{'start':_0x57eade[_0x412c('0x2b')][_0x412c('0x16')](),'end':_0x57eade['end']['clone'](),'rootName':_0x57eade[_0x412c('0x8e')][_0x412c('0x78')]});this[_0x412c('0x49')][_0x412c('0xe0')](_0x2c64d0,{'roots':_0x4da89a,'markers':_0x5b5c73,'rootsAttributes':_0x1a9aa9});}[_0x412c('0x9d')](_0x5cb376){this['_savedMetaData'][_0x412c('0x99')](_0x5cb376);}['reInit'](){this[_0x412c('0xa9')](),this[_0x412c('0xd1')]=-0x1,this[_0x412c('0x13')]=-0x1,this[_0x412c('0x49')][_0x412c('0x20')](),this[_0x412c('0x48')](this[_0x412c('0x19')]);}['_reset'](){this['_touched']['clear'](),this[_0x412c('0x40')][_0x412c('0x20')](),this[_0x412c('0xc5')][_0x412c('0x20')](),this['_diffRoots'][_0x412c('0x20')](),this['_diffRootsAttributes'][_0x412c('0x20')](),this[_0x412c('0x10')][_0x412c('0x20')](),this['_baseRootsAttributes'][_0x412c('0x20')](),this['_idsRoots']['clear'](),this['_baseIdsRoots'][_0x412c('0x20')](),this[_0x412c('0x44')][_0x412c('0x20')](),this[_0x412c('0x71')]=0x1,this[_0x412c('0x45')]=this['_revisionId'];}['_makeIdsRoot'](_0x335dc3,_0x89921a=null){let _0x4a899f=null;_0x335dc3['is'](_0x412c('0x91'))||(_0x4a899f=new _0x415faf(_0x335dc3[_0x412c('0x2a')],{'vid_start':null===_0x89921a?this[_0x412c('0x71')]++:_0x89921a++}));const _0x4b7185=[];for(const _0x104250 of _0x335dc3[_0x412c('0x97')]())if(_0x104250['is'](_0x412c('0xfe'))){_0x4b7185['push'](this[_0x412c('0x23')](_0x104250,_0x89921a));const _0x514853=_0x4b7185[_0x4b7185[_0x412c('0x83')]-0x1];null!==_0x89921a&&(_0x89921a=_0x514853['is']('element',_0x412c('0xf6'))?_0x514853[_0x412c('0x29')]('vid')+0x1:_0x514853['getAttribute']('vid_end')+0x1);}else for(let _0x305224=0x0;_0x305224<_0x104250[_0x412c('0xd6')];_0x305224++)_0x4b7185[_0x412c('0x56')](new _0x415faf(_0x412c('0xf6'),{'vid':null===_0x89921a?this['_revisionId']++:_0x89921a++}));if(_0x335dc3['is'](_0x412c('0x91'))){const _0x3e9aca=G(_0x335dc3[_0x412c('0x78')]);return _0x3e9aca[_0x412c('0xa7')](0x0,_0x4b7185),_0x3e9aca;}return _0x4a899f[_0x412c('0x1c')](_0x412c('0x14'),null===_0x89921a?this[_0x412c('0x71')]++:_0x89921a++),_0x4a899f[_0x412c('0xa7')](0x0,_0x4b7185),_0x4a899f;}['_calculateMetaData'](_0x23e523,_0x55def3,_0x48663f){this[_0x412c('0xa9')]();const {roots:_0x486634,markers:_0x15df07,rootsAttributes:_0x906f10}=this['_savedMetaData'][_0x412c('0x7b')](_0x23e523);this[_0x412c('0x10')]=new Map(_0x486634),this[_0x412c('0x9c')]=new Map(_0x46b802(_0x906f10));for(const [_0x2afe91,_0x2afc86]of this[_0x412c('0x10')])if(_0x412c('0x2c')!==_0x2afe91&&(this[_0x412c('0xb6')][_0x412c('0xe0')](_0x2afe91,q(_0x2afc86)),this[_0x412c('0xda')]=new Map(_0x46b802(_0x906f10)),_0x48663f)){const _0x50818e=this[_0x412c('0x71')];this[_0x412c('0x103')]['set'](_0x2afe91,this['_makeIdsRoot'](_0x2afc86)),this[_0x412c('0x7d')][_0x412c('0xe0')](_0x2afe91,this['_makeIdsRoot'](_0x2afc86,_0x50818e));}this[_0x412c('0x45')]=this[_0x412c('0x71')],this[_0x412c('0xb6')][_0x412c('0xe0')](_0x412c('0x2c'),q(this['_baseRoots']['get'](_0x412c('0x2c')))),_0x48663f&&this[_0x412c('0x103')][_0x412c('0xe0')](_0x412c('0x2c'),this['_makeIdsRoot'](this['_baseRoots'][_0x412c('0x7b')](_0x412c('0x2c'))));for(const [_0x5cb0bb,_0x3d8bd5]of _0x15df07){const _0x298ce8=this[_0x412c('0x10')][_0x412c('0x7b')](_0x3d8bd5[_0x412c('0x78')]),_0xe22ad1=this[_0x412c('0xb6')][_0x412c('0x7b')](_0x3d8bd5[_0x412c('0x78')]),_0x159ecb=new _0xf9f0fc(this['_fixPosition'](_0x3d8bd5[_0x412c('0x2b')],_0x298ce8),this[_0x412c('0xb0')](_0x3d8bd5['end'],_0x298ce8)),_0x50026a=this[_0x412c('0xcc')](_0x159ecb,_0xe22ad1);_0x298ce8[_0x412c('0xe7')][_0x412c('0xe0')](_0x5cb0bb,_0x159ecb),this[_0x412c('0x44')]['set'](_0x5cb0bb,_0x50026a);}this['_applyOperations'](_0x23e523,_0x55def3,_0x48663f);}[_0x412c('0xb4')](_0x3d8191,_0x1d5184,_0x19bd31){for(const _0x5dfc4a of this[_0x412c('0x19')][_0x412c('0x47')](_0x3d8191,_0x1d5184))this[_0x412c('0x59')](_0x5dfc4a,_0x19bd31);for(const _0x509370 of this['_diffRoots']['values']())_0x509370[_0x412c('0xe7')][_0x412c('0x20')]();for(const [_0x214f2d,_0x3f22c0]of this[_0x412c('0x44')]){this[_0x412c('0xb6')][_0x412c('0x7b')](_0x3f22c0[_0x412c('0x8e')][_0x412c('0x78')])['markers'][_0x412c('0xe0')](_0x214f2d,_0x3f22c0[_0x412c('0x16')]());}const _0x4f23bc=new Map(),_0x80329b=new Map();for(const [_0x222736,_0x2ae278]of this[_0x412c('0xb6')])_0x4f23bc['set'](_0x222736,q(_0x2ae278)),_0x80329b[_0x412c('0xe0')](_0x222736,this[_0x412c('0xda')]['get'](_0x222736));this['_saveMetaData'](_0x1d5184,_0x4f23bc,this[_0x412c('0x44')],_0x80329b);}[_0x412c('0xc6')](_0x3fab5c){const _0x3c1afd=Array['from'](this['_savedMetaData'][_0x412c('0xba')]());_0x3c1afd[_0x412c('0x77')]((_0x4090eb,_0x5c567f)=>_0x4090eb-_0x5c567f),_0x3c1afd[_0x412c('0x8a')]();for(const _0x1d81c5 of _0x3c1afd)if(_0x1d81c5<_0x3fab5c)return _0x1d81c5;return Number[_0x412c('0x27')];}['_copyMarkers'](_0x62fd5e,_0x5c9ede){const _0x29cdfb=Array[_0x412c('0xe9')](_0x5c9ede['markers'])['map'](([_0x163619,_0x32338b])=>[_0x163619,this['_fixRange'](_0x32338b,_0x62fd5e)]);_0x62fd5e[_0x412c('0xe7')]=new Map(_0x29cdfb);}['_transformMarkers'](_0x590e91){for(const _0x3e803e of this[_0x412c('0x44')][_0x412c('0xbc')]()){const _0x245f72=_0x3e803e[_0x412c('0xc7')](_0x590e91),_0x5963e1=_0xf9f0fc['_createFromRanges'](_0x245f72);_0x3e803e[_0x412c('0x2b')]=_0x5963e1[_0x412c('0x2b')],_0x3e803e[_0x412c('0x3e')]=_0x5963e1[_0x412c('0x3e')];}}[_0x412c('0x59')](_0x5aa58a,_0x31a684){if('addRoot'==_0x5aa58a[_0x412c('0xa3')]||_0x412c('0x1e')==_0x5aa58a[_0x412c('0xa3')])return void this['_handleRootOperation'](_0x5aa58a,_0x31a684);if('insert'==_0x5aa58a[_0x412c('0xa3')]){const _0x3e1591=_0x5aa58a[_0x412c('0xc4')][_0x412c('0x8e')][_0x412c('0x78')];this['_diffRoots'][_0x412c('0xe2')](_0x3e1591)||(this['_diffRoots'][_0x412c('0xe0')](_0x3e1591,G(_0x3e1591,!0x0)),this[_0x412c('0xda')][_0x412c('0xe0')](_0x3e1591,{}),_0x31a684&&this[_0x412c('0x103')]['set'](_0x3e1591,G(_0x3e1591,!0x0)));}else{if(_0x412c('0x9f')==_0x5aa58a[_0x412c('0xa3')]||_0x412c('0x4')==_0x5aa58a['type']||_0x412c('0xab')==_0x5aa58a[_0x412c('0xa3')])return void this[_0x412c('0x3d')](_0x5aa58a);}const _0x22f466=this[_0x412c('0x37')](_0x5aa58a,this[_0x412c('0xb6')]);if(_0x412c('0xd0')!==_0x5aa58a[_0x412c('0xa3')]&&(_0x22f466[_0x412c('0x102')](),this[_0x412c('0x6f')](_0x22f466)),_0x31a684)switch(_0x22f466[_0x412c('0xa3')]){case'insert':this['_handleInsertOperation'](_0x5aa58a);break;case _0x412c('0x4f'):case _0x412c('0x15'):case _0x412c('0x33'):this['_handleMoveOperation'](_0x5aa58a);break;case'merge':this[_0x412c('0xf7')](_0x5aa58a);break;case'split':this[_0x412c('0x39')](_0x5aa58a);break;case _0x412c('0xd0'):this['_handleMarkerOperation'](_0x5aa58a);}}[_0x412c('0x37')](_0x117e14,_0xe8a231){const _0x1fe80d=_0x117e14[_0x412c('0x16')]();return _0x1fe80d[_0x412c('0xfc')]=_0x117e14[_0x412c('0xfc')],this[_0x412c('0xf4')](_0x1fe80d,_0xe8a231),_0x1fe80d;}[_0x412c('0xc0')](_0x11b9eb){return _0x11b9eb[_0x412c('0xb3')](_0x40227=>{const _0x3a60d6=this[_0x412c('0xee')](_0x40227);return Number(_0x40227[_0x412c('0x54')][_0x412c('0x29')](_0x3a60d6));});}[_0x412c('0x4a')](_0x59bbbb,_0x1e510f){if(_0x59bbbb['is'](_0x412c('0xfe'),_0x412c('0xf6')))_0x1e510f['push']({'item':_0x59bbbb,'type':'text'});else{_0x59bbbb['is'](_0x412c('0xfe'))&&_0x1e510f[_0x412c('0x56')]({'item':_0x59bbbb,'type':'elementStart'});for(const _0x3ca357 of _0x59bbbb[_0x412c('0x97')]())this[_0x412c('0x4a')](_0x3ca357,_0x1e510f);_0x59bbbb['is'](_0x412c('0xfe'))&&_0x1e510f[_0x412c('0x56')]({'item':_0x59bbbb,'type':_0x412c('0x74')});}return _0x1e510f;}['_getState'](){const _0x5ac653=new Map(this[_0x412c('0x6a')]),_0x2d7187=new Map(_0x5ac653),_0x23e612=new Map(),_0x204f21={'insertions':{},'deletions':{}},_0x3e345d={'insertions':{},'deletions':{}},_0x3defba=new Map(),_0x43ca27=new Set([...this[_0x412c('0x10')][_0x412c('0xba')](),...this['_diffRoots']['keys']()]);_0x43ca27['delete'](_0x412c('0x2c'));for(const _0x404546 of _0x43ca27){const _0x3090b1=this[_0x412c('0xb6')][_0x412c('0x7b')](_0x404546)||G(_0x404546,!0x1),_0x5585e3=this[_0x412c('0x10')][_0x412c('0x7b')](_0x404546)||G(_0x404546,!0x1);_0x3090b1[_0x412c('0xf')]()||_0x5585e3[_0x412c('0xf')]()?(_0x204f21[_0x412c('0xe3')][_0x404546]=q(_0x3090b1),_0x204f21[_0x412c('0xb5')][_0x404546]=q(_0x5585e3),this[_0x412c('0x43')](_0x204f21['deletions'][_0x404546],_0x5585e3),this['_copyMarkers'](_0x204f21[_0x412c('0xe3')][_0x404546],_0x3090b1),_0x3e345d['insertions'][_0x404546]=this[_0x412c('0x4a')](this[_0x412c('0x103')][_0x412c('0x7b')](_0x404546),[]),_0x3e345d[_0x412c('0xb5')][_0x404546]=this[_0x412c('0x4a')](this[_0x412c('0x7d')][_0x412c('0x7b')](_0x404546)||G(_0x404546,!0x1),[])):_0x43ca27[_0x412c('0x99')](_0x404546);}for(const _0x27193d of _0x43ca27){const _0x2208f8=_0x3e345d[_0x412c('0xe3')][_0x27193d];for(const _0x5a4a4d of _0x2208f8){const _0x3d7bdc=this[_0x412c('0xee')](_0x5a4a4d),_0x478862=_0x5a4a4d['item'][_0x412c('0x29')](_0x3d7bdc);_0x2d7187[_0x412c('0x99')](_0x478862),_0x478862>=this[_0x412c('0x45')]&&_0x23e612[_0x412c('0xe0')](_0x478862,_0x5ac653['get'](_0x478862));}}for(const _0xa2a9ee of _0x43ca27){const _0x3407e3=_0x3e345d[_0x412c('0xe3')][_0xa2a9ee],_0xb36129=this[_0x412c('0xc0')](_0x3e345d[_0x412c('0xb5')][_0xa2a9ee]);let _0x36d280=0x0;for(const _0xd8ea8e of _0x3407e3){const _0x284275=this[_0x412c('0xee')](_0xd8ea8e),_0x587513=_0xd8ea8e[_0x412c('0x54')][_0x412c('0x29')](_0x284275);if(!_0x23e612[_0x412c('0xe2')](_0x587513)&&!_0x3defba[_0x412c('0xe2')](_0x587513)){if(_0x2d7187[_0x412c('0xe2')](_0x587513))_0x36d280++;else{if(_0x587513!=_0xb36129[_0x36d280]){const _0x493521=_0x5ac653[_0x412c('0x7b')](_0x587513)||_0x5ac653['get'](_0xb36129[_0x36d280]);for(;_0x587513!=_0xb36129[_0x36d280];)_0x2d7187[_0x412c('0xe2')](_0xb36129[_0x36d280])||(_0x3defba[_0x412c('0xe0')](_0xb36129[_0x36d280],_0x493521),_0x5ac653[_0x412c('0xe0')](_0xb36129[_0x36d280],_0x493521)),_0x36d280++;}_0x36d280++;}}}}for(const _0x4564bd of _0x43ca27){const _0x2da492=_0x3e345d['insertions'][_0x4564bd];for(const _0x491b50 of _0x2da492){const _0x38aa83=this[_0x412c('0xee')](_0x491b50),_0x3e9986=_0x491b50['item']['getAttribute'](_0x38aa83);if(_0x3defba[_0x412c('0xe2')](_0x3e9986)){const _0x499d1b=_0x3defba[_0x412c('0x7b')](_0x3e9986);_0x2d7187[_0x412c('0xe2')](_0x3e9986)||_0x2d7187[_0x412c('0xe0')](_0x3e9986,{..._0x499d1b}),_0x23e612[_0x412c('0xe0')](_0x3e9986,{..._0x499d1b});}}}for(const _0xa4f26e of _0x2d7187['keys']())_0xa4f26e>=this[_0x412c('0x45')]&&_0x2d7187[_0x412c('0x99')](_0xa4f26e);const _0x7cfb2d=new Map();for(const _0x1f9ec2 of _0x43ca27){let _0x4adc2c=_0x3e345d[_0x412c('0xe3')][_0x1f9ec2];for(const _0x360716 of _0x4adc2c)if(_0x360716[_0x412c('0x54')]['is'](_0x412c('0xfe'),_0x412c('0x8d'))){const _0x54162b=this[_0x412c('0xee')](_0x360716),_0x274fb0=_0x360716[_0x412c('0x54')][_0x412c('0x29')](_0x54162b);if(_0x23e612[_0x412c('0xe2')](_0x274fb0)){const _0x334275=_0x360716[_0x412c('0x54')]['parent'][_0x412c('0x3f')][_0x412c('0x29')]('vid_start'),_0x54894c=_0x7cfb2d[_0x412c('0x7b')](_0x334275)||new Set();_0x54894c[_0x412c('0x5c')](_0x23e612[_0x412c('0x7b')](_0x274fb0)[_0x412c('0x3')]),_0x7cfb2d[_0x412c('0xe0')](_0x334275,_0x54894c);}}_0x4adc2c=_0x3e345d[_0x412c('0xb5')][_0x1f9ec2];for(const _0x1764eb of _0x4adc2c)if(_0x1764eb[_0x412c('0x54')]['is'](_0x412c('0xfe'),_0x412c('0x8d'))){const _0x560df8=this['_getVidAttributeName'](_0x1764eb),_0xb9cbdc=_0x1764eb[_0x412c('0x54')][_0x412c('0x29')](_0x560df8);if(_0x2d7187[_0x412c('0xe2')](_0xb9cbdc)){const _0x49517e=_0x1764eb[_0x412c('0x54')][_0x412c('0x3f')][_0x412c('0x3f')][_0x412c('0x29')]('vid_start'),_0x249523=_0x7cfb2d[_0x412c('0x7b')](_0x49517e)||new Set();_0x249523[_0x412c('0x5c')](_0x2d7187[_0x412c('0x7b')](_0xb9cbdc)[_0x412c('0x3')]),_0x7cfb2d['set'](_0x49517e,_0x249523);}}for(const _0x18ac24 of _0x7cfb2d[_0x412c('0xba')]())(_0x23e612[_0x412c('0xe2')](_0x18ac24)||_0x2d7187[_0x412c('0xe2')](_0x18ac24))&&_0x7cfb2d[_0x412c('0x99')](_0x18ac24);}for(const _0x10a08f of _0x43ca27){const _0x166c3b=_0x3e345d[_0x412c('0xe3')][_0x10a08f];let _0x139de3=null,_0x40a75e=null;for(const _0x288964 of _0x166c3b){const _0x5c590e=this['_getVidAttributeName'](_0x288964),_0x471429=_0x288964['item'][_0x412c('0x29')](_0x5c590e),_0x56ad22=_0x7cfb2d[_0x412c('0x7b')](_0x471429);_0x56ad22&&_0x412c('0x9b')==_0x288964[_0x412c('0xa3')]&&(_0x139de3=Array['from'](_0x56ad22)[0x0],_0x40a75e=_0x288964[_0x412c('0x54')]['getAttribute'](_0x412c('0x14'))),_0x139de3&&(_0x2d7187[_0x412c('0xe0')](_0x471429,{'userId':_0x139de3}),_0x23e612[_0x412c('0xe0')](_0x471429,{'userId':_0x139de3})),_0x471429==_0x40a75e&&(_0x139de3=null,_0x40a75e=null);}}const _0x57b506={},_0x307ba9=new Set();for(const _0x5df229 of _0x43ca27){const _0x10d418=_0x204f21['deletions'][_0x5df229],_0x309979=_0x204f21[_0x412c('0xe3')][_0x5df229];for(const {userId:_0x4da654}of this['_touchedMarkers']['values']())null!==_0x4da654&&_0x307ba9[_0x412c('0x5c')](_0x4da654);for(const {userId:_0x227cd2}of this[_0x412c('0xc5')][_0x412c('0xbc')]())null!==_0x227cd2&&_0x307ba9[_0x412c('0x5c')](_0x227cd2);this[_0x412c('0x69')](_0x309979,_0x3e345d[_0x412c('0xe3')][_0x5df229],_0x23e612,_0x412c('0x38'),_0x307ba9),this[_0x412c('0x69')](_0x10d418,_0x3e345d[_0x412c('0xb5')][_0x5df229],_0x2d7187,_0x412c('0x8'),_0x307ba9),_0x57b506[_0x5df229]={'insertions':this[_0x412c('0xea')](_0x309979),'deletions':this[_0x412c('0xea')](_0x10d418),'attachChange':this['_touchedRoots'][_0x412c('0x7b')](_0x5df229)||null,'attributesBefore':_0x46b802(this['_baseRootsAttributes']['get'](_0x5df229))||{},'attributesAfter':_0x46b802(this['_diffRootsAttributes']['get'](_0x5df229))};}return{'diffData':_0x57b506,'authorsIds':Array['from'](_0x307ba9)};}[_0x412c('0x1')](_0x359fbf){for(const [,_0x296fd4]of _0x359fbf[_0x412c('0xe7')]){const _0x5d5f7b=_0x296fd4[_0x412c('0x2b')][_0x412c('0xd')]()['filter'](_0x3eeda9=>'tableCell'==_0x3eeda9[_0x412c('0x2a')]);for(const _0x943ef8 of _0x5d5f7b)0x1==_0x943ef8[_0x412c('0xc8')]&&_0x943ef8[_0x412c('0xff')](0x0)['is'](_0x412c('0xfe'),_0x412c('0xb'))&&_0x943ef8['getChild'](0x0)[_0x412c('0x1c')](_0x412c('0x12'),!0x0);}}[_0x412c('0xea')](_0x10aa8f){this[_0x412c('0x1')](_0x10aa8f);const _0xcfeb8e=this[_0x412c('0xe1')][_0x412c('0x9a')][_0x412c('0xcf')](_0x10aa8f,{}),_0xe33663=Array[_0x412c('0xe9')](_0xcfeb8e[_0x412c('0x97')]())['map'](_0x6db4b9=>this[_0x412c('0x100')](_0x6db4b9));return JSON[_0x412c('0xe6')](_0xe33663);}[_0x412c('0x100')](_0x25848b){if(_0x25848b['is'](_0x412c('0xf6')))return _0x25848b[_0x412c('0x9a')];{const _0x2791a1=_0x25848b;return{'type':Object['keys'](B)[_0x412c('0xfa')](_0x344513=>_0x25848b instanceof B[_0x344513]),'name':_0x2791a1[_0x412c('0x2a')],'attributes':Array[_0x412c('0xe9')](_0x2791a1[_0x412c('0xaf')]()),'children':Array[_0x412c('0xe9')](_0x2791a1[_0x412c('0x97')]())[_0x412c('0xb3')](_0x3b2956=>this['_getViewJson'](_0x3b2956))};}}[_0x412c('0x69')](_0x2f1de7,_0x406a4e,_0x23f325,_0x51bb18,_0x3c85ba){let _0x27a034=null,_0x4ba11b=null,_0x48fe08=0x0;const _0x1d7b11=this[_0x412c('0xe1')][_0x412c('0xd7')];for(let _0x51da92=0x0;_0x51da92<_0x406a4e[_0x412c('0x83')];_0x51da92++){const _0xee6890=this[_0x412c('0xee')](_0x406a4e[_0x51da92]),_0x3b4354=_0x406a4e[_0x51da92][_0x412c('0x54')][_0x412c('0x29')](_0xee6890),_0x5d5e50=_0x23f325[_0x412c('0x7b')](_0x3b4354),_0x4f3de4=_0x51da92==_0x406a4e[_0x412c('0x83')]-0x1;(!_0x27a034&&_0x5d5e50&&(_0x27a034=_0x5d5e50,_0x4ba11b=_0x406a4e[_0x51da92]),_0x27a034&&(!_0x5d5e50||_0x5d5e50[_0x412c('0x3')]!=_0x27a034[_0x412c('0x3')]))&&(_0x47f024(_0x5d5e50,L(_0x4ba11b,_0x2f1de7,_0x1d7b11),L(_0x406a4e[_0x51da92],_0x2f1de7,_0x1d7b11)),_0x27a034=_0x5d5e50||null,_0x4ba11b=_0x5d5e50?_0x406a4e[_0x51da92]:null),_0x27a034&&_0x4f3de4&&_0x47f024(_0x5d5e50,L(_0x4ba11b,_0x2f1de7,_0x1d7b11),W(_0x406a4e[_0x51da92],_0x2f1de7,_0x1d7b11));}function _0x47f024(_0x46771a,_0xf77009,_0xdebb47){const _0x5523ae=_0x27a034[_0x412c('0x3')],_0x5c521b='revision:'+_0x51bb18+':'+_0x5523ae+':'+_0x48fe08++,_0x31eae0=_0x1d7b11[_0x412c('0x5')](_0xf77009,_0xdebb47);_0x2f1de7[_0x412c('0xe7')]['set'](_0x5c521b,_0x31eae0),null!==_0x5523ae&&_0x3c85ba[_0x412c('0x5c')](_0x5523ae);}}[_0x412c('0xee')](_0x44761d){switch(_0x44761d[_0x412c('0xa3')]){case _0x412c('0x9b'):return'vid_start';case _0x412c('0x74'):return _0x412c('0x14');default:return _0x412c('0x98');}}[_0x412c('0xf4')](_0x5bf0e4,_0x1d572f){_0x5bf0e4[_0x412c('0x9e')]=null;for(const _0xdd9d96 in _0x5bf0e4){const _0x52fb62=_0x5bf0e4[_0xdd9d96];if(_0x52fb62 instanceof _0x3e2494){const _0x29e1=_0x1d572f[_0x412c('0x7b')](_0x52fb62[_0x412c('0x8e')][_0x412c('0x78')]);_0x5bf0e4[_0xdd9d96]=this[_0x412c('0xb0')](_0x52fb62,_0x29e1);}if(_0x52fb62 instanceof _0xf9f0fc){const _0x4be38c=_0x1d572f['get'](_0x52fb62[_0x412c('0x8e')][_0x412c('0x78')]);_0x5bf0e4[_0xdd9d96]=this['_fixRange'](_0x52fb62,_0x4be38c);}_0x412c('0x8e')===_0xdd9d96&&(_0x5bf0e4[_0x412c('0x8e')]=_0x1d572f[_0x412c('0x7b')](_0x5bf0e4[_0x412c('0x8e')][_0x412c('0x78')]));}}[_0x412c('0xcc')](_0x47f610,_0x4fbc57){return this[_0x412c('0xe1')][_0x412c('0xd7')]['createRange'](this[_0x412c('0xb0')](_0x47f610[_0x412c('0x2b')],_0x4fbc57),this[_0x412c('0xb0')](_0x47f610[_0x412c('0x3e')],_0x4fbc57));}[_0x412c('0xb0')](_0x49fbb,_0x179db2){return this[_0x412c('0xe1')][_0x412c('0xd7')][_0x412c('0x31')](_0x179db2,_0x49fbb[_0x412c('0xe8')],_0x49fbb[_0x412c('0xac')]);}[_0x412c('0x30')](_0x3581f7){const _0xe1177e=this[_0x412c('0x103')][_0x412c('0x7b')](_0x3581f7['position']['root'][_0x412c('0x78')]),_0x51afe5=this[_0x412c('0xb0')](_0x3581f7[_0x412c('0xc4')],_0xe1177e),_0x3a06de=null===_0x3581f7[_0x412c('0xfc')]?null:_0x3581f7['_authorId']||this[_0x412c('0xe1')]['plugins'][_0x412c('0x7b')](_0x412c('0x72'))['me']['id'],_0x2a4820=_0x51afe5[_0x412c('0x3f')],_0x3030ef=this[_0x412c('0x71')],_0xf26ee5=[];for(const _0x1f545d of _0x3581f7[_0x412c('0x7f')])if(_0x1f545d['is'](_0x412c('0xfe')))_0xf26ee5[_0x412c('0x56')](this[_0x412c('0x23')](_0x1f545d));else for(let _0x467578=0x0;_0x467578<_0x1f545d[_0x412c('0xd6')];_0x467578++)_0xf26ee5[_0x412c('0x56')](new _0x415faf(_0x412c('0xf6'),{'vid':this[_0x412c('0x71')]++}));const _0x2be36c=this['_revisionId'];for(let _0x2d3730=_0x3030ef;_0x2d3730<_0x2be36c;_0x2d3730++)this[_0x412c('0x6a')]['set'](_0x2d3730,{'userId':_0x3a06de});_0x2a4820['_insertChild'](_0x51afe5[_0x412c('0x7e')],_0xf26ee5);}[_0x412c('0x1d')](_0x46c324){(_0x46c324=this[_0x412c('0x37')](_0x46c324,this['_idsRoots']))[_0x412c('0x102')]();const _0x5ab401=null===_0x46c324['_authorId']?null:_0x46c324[_0x412c('0xfc')]||this[_0x412c('0xe1')][_0x412c('0xd8')][_0x412c('0x7b')]('Users')['me']['id'],_0xfa10b5=_0x46c324['getMovedRangeStart'](),_0x44c9bd=_0xfa10b5['parent'],_0x373484=_0xfa10b5['offset'];!function _0x2b4f1c(_0x919c79,_0x151fff,_0x2214c3,_0x4903cc){for(let _0x43c1b1=_0x2214c3;_0x43c1b1<_0x4903cc;_0x43c1b1++){const _0x5132ea=_0x151fff['getChild'](_0x43c1b1);_0x5132ea['is'](_0x412c('0xfe'),_0x412c('0xf6'))?_0x919c79[_0x412c('0xe0')](_0x5132ea['getAttribute'](_0x412c('0x98')),{'userId':_0x5ab401}):(_0x919c79[_0x412c('0xe0')](_0x5132ea[_0x412c('0x29')](_0x412c('0xbe')),{'userId':_0x5ab401}),_0x2b4f1c(_0x919c79,_0x5132ea,0x0,_0x5132ea['childCount']),_0x919c79[_0x412c('0xe0')](_0x5132ea[_0x412c('0x29')](_0x412c('0x14')),{'userId':_0x5ab401}));}}(this[_0x412c('0x6a')],_0x44c9bd,_0x373484,_0x373484+_0x46c324[_0x412c('0x7')]);}[_0x412c('0xf7')](_0x54d55a){const _0x19f457=null===(_0x54d55a=this[_0x412c('0x37')](_0x54d55a,this[_0x412c('0x103')]))['_authorId']?null:_0x54d55a[_0x412c('0xfc')]||this[_0x412c('0xe1')][_0x412c('0xd8')]['get'](_0x412c('0x72'))['me']['id'],_0x346732=_0x54d55a[_0x412c('0xaa')]['parent'],_0x1f2a64=_0x54d55a[_0x412c('0xe')]['parent'],_0x7b729a=_0x346732[_0x412c('0x29')](_0x412c('0x14')),_0x2d2cbc=_0x1f2a64[_0x412c('0x29')](_0x412c('0xbe'));_0x346732[_0x412c('0x1c')](_0x412c('0x14'),_0x1f2a64[_0x412c('0x29')](_0x412c('0x14'))),_0x1f2a64['_setAttribute']('vid_end',_0x7b729a),this[_0x412c('0x6a')][_0x412c('0xe0')](_0x2d2cbc,{'userId':_0x19f457}),this[_0x412c('0x6a')][_0x412c('0xe0')](_0x7b729a,{'userId':_0x19f457}),_0x54d55a[_0x412c('0x102')]();}[_0x412c('0x39')](_0x45cee8){const _0x3c923d=null===(_0x45cee8=this['_cloneOperation'](_0x45cee8,this['_idsRoots']))[_0x412c('0xfc')]?null:_0x45cee8[_0x412c('0xfc')]||this[_0x412c('0xe1')][_0x412c('0xd8')][_0x412c('0x7b')](_0x412c('0x72'))['me']['id'],_0x1bddaf=_0x45cee8[_0x412c('0x93')],_0x85d0c=_0x45cee8[_0x412c('0x5d')]['parent'];_0x45cee8[_0x412c('0x102')]();const _0x49aabd=_0x85d0c[_0x412c('0x29')]('vid_end'),_0x456486=_0x45cee8[_0x412c('0x70')][_0x412c('0x24')];if(_0x1bddaf){const _0x24101f=_0x456486['getAttribute'](_0x412c('0x14')),_0x461c4f=_0x85d0c[_0x412c('0x29')]('vid_end');_0x85d0c[_0x412c('0x1c')](_0x412c('0x14'),_0x24101f),_0x456486[_0x412c('0x1c')](_0x412c('0x14'),_0x461c4f),this[_0x412c('0x6a')][_0x412c('0xe0')](_0x85d0c[_0x412c('0x29')](_0x412c('0x14')),{'userId':_0x3c923d}),this['_touched']['set'](_0x456486[_0x412c('0x29')](_0x412c('0xbe')),{'userId':_0x3c923d});}else{const _0x254325=this['_revisionId']++,_0x4de8fd=this['_revisionId']++;_0x85d0c['_setAttribute'](_0x412c('0x14'),_0x254325),_0x456486[_0x412c('0x1c')](_0x412c('0xbe'),_0x4de8fd),_0x456486[_0x412c('0x1c')]('vid_end',_0x49aabd),this[_0x412c('0x6a')][_0x412c('0xe0')](_0x254325,{'userId':_0x3c923d}),this[_0x412c('0x6a')][_0x412c('0xe0')](_0x4de8fd,{'userId':_0x3c923d});}}['_handleMarkerOperation'](_0x2c33ea){if(!_0x2c33ea['affectsData'])return;const _0x560d52=(_0x2c33ea=this['_cloneOperation'](_0x2c33ea,this[_0x412c('0xb6')]))[_0x412c('0x2d')]?_0x2c33ea['oldRange'][_0x412c('0x8e')]:null,_0x45a313=_0x2c33ea['newRange']?_0x2c33ea[_0x412c('0xc')][_0x412c('0x8e')]:null;_0x560d52&&this[_0x412c('0x44')][_0x412c('0x99')](_0x2c33ea[_0x412c('0x2a')]),_0x45a313&&this[_0x412c('0x44')][_0x412c('0xe0')](_0x2c33ea['name'],_0x2c33ea[_0x412c('0xc')]['clone']());const _0x445772=null===_0x2c33ea['_authorId']?null:_0x2c33ea[_0x412c('0xfc')]||this[_0x412c('0xe1')][_0x412c('0xd8')][_0x412c('0x7b')](_0x412c('0x72'))['me']['id'],_0x31a77b=_0x2c33ea[_0x412c('0x2a')];if(!this[_0x412c('0x40')][_0x412c('0xe2')](_0x31a77b))return void this[_0x412c('0x40')][_0x412c('0xe0')](_0x31a77b,{'range':_0x2c33ea['oldRange'],'userId':_0x445772});const _0x1b2af5=this['_touchedMarkers'][_0x412c('0x7b')](_0x31a77b),_0x27cfb0=_0x1b2af5[_0x412c('0x80')],_0x2221b5=_0x2c33ea[_0x412c('0xc')];null==_0x27cfb0&&null==_0x2221b5||_0x27cfb0&&_0x2221b5&&_0x27cfb0[_0x412c('0x46')](_0x2221b5)?this[_0x412c('0x40')]['delete'](_0x2c33ea[_0x412c('0x2a')]):_0x1b2af5[_0x412c('0x3')]=_0x445772;}[_0x412c('0x1b')](_0x50a123,_0x2a7280){this[_0x412c('0xb6')]['has'](_0x50a123[_0x412c('0x78')])?this[_0x412c('0xb6')][_0x412c('0x7b')](_0x50a123[_0x412c('0x78')])[_0x412c('0x25')]=_0x50a123['isAdd']:(this[_0x412c('0xb6')][_0x412c('0xe0')](_0x50a123[_0x412c('0x78')],G(_0x50a123[_0x412c('0x78')],!0x0)),this['_diffRootsAttributes'][_0x412c('0xe0')](_0x50a123[_0x412c('0x78')],{}),_0x2a7280&&this[_0x412c('0x103')][_0x412c('0xe0')](_0x50a123[_0x412c('0x78')],G(_0x50a123[_0x412c('0x78')],!0x0)));const _0x34fd7f=null===_0x50a123[_0x412c('0xfc')]?null:_0x50a123[_0x412c('0xfc')]||this[_0x412c('0xe1')][_0x412c('0xd8')]['get'](_0x412c('0x72'))['me']['id'],_0x276c39=this[_0x412c('0xc5')][_0x412c('0x7b')](_0x50a123['rootName']);_0x276c39&&_0x276c39[_0x412c('0x3')]===_0x34fd7f?this['_touchedRoots'][_0x412c('0x99')](_0x50a123[_0x412c('0x78')]):this[_0x412c('0xc5')]['set'](_0x50a123[_0x412c('0x78')],{'userId':_0x34fd7f,'isAttached':_0x50a123[_0x412c('0xf2')]});}[_0x412c('0x3d')](_0x174ee1){const _0x38e3ce=this[_0x412c('0xda')][_0x412c('0x7b')](_0x174ee1[_0x412c('0x8e')][_0x412c('0x78')]);null===_0x174ee1['newValue']?delete _0x38e3ce[_0x174ee1['key']]:_0x38e3ce[_0x174ee1[_0x412c('0x7a')]]=_0x174ee1[_0x412c('0xc2')];}}function q(_0x3231b0){const _0x4f887d=G(_0x3231b0[_0x412c('0x78')],_0x3231b0[_0x412c('0xf')]());for(const _0x744c20 of _0x3231b0[_0x412c('0x97')]()){const _0xe0bf2e=_0x744c20[_0x412c('0x63')](!0x0);_0x4f887d['_appendChild'](_0xe0bf2e);}return _0x4f887d;}function G(_0x3cbe2a,_0x32b62d=!0x0){const _0x358b8d=new _0x6c5762();return _0x358b8d['rootName']=_0x3cbe2a,_0x358b8d[_0x412c('0x25')]=_0x32b62d,_0x358b8d[_0x412c('0xf')]=()=>_0x358b8d['_isAttached'],_0x358b8d;}function L(_0x31c17c,_0x5a96bd,_0x4c8e02){const _0x42f6f4=_0x412c('0x74')==_0x31c17c[_0x412c('0xa3')]?_0x4c8e02[_0x412c('0x3b')](_0x31c17c['item'],_0x412c('0x3e')):_0x4c8e02[_0x412c('0xd2')](_0x31c17c[_0x412c('0x54')]);return _0x4c8e02[_0x412c('0x31')](_0x5a96bd,_0x42f6f4[_0x412c('0xe8')],_0x42f6f4[_0x412c('0xac')]);}function W(_0x48ad2e,_0x4f91aa,_0x13a9a2){const _0x19780b=_0x412c('0x9b')==_0x48ad2e[_0x412c('0xa3')]?_0x13a9a2[_0x412c('0x3b')](_0x48ad2e[_0x412c('0x54')],0x0):_0x13a9a2[_0x412c('0xf9')](_0x48ad2e[_0x412c('0x54')]);return _0x13a9a2['createPositionFromPath'](_0x4f91aa,_0x19780b[_0x412c('0xe8')],_0x19780b[_0x412c('0xac')]);}
23
+ const _0x5118=['_createCurrentRevision','length','authorsIds','attributes','documentFragment','insertion','_addPendingAction','setRevisionData','splitPosition','$graveyard','getIndex','childCount','_handleOperation','upcast','has','_createFromRanges','_lastTo','attachChange','removeRootAttribute','vid','getAncestors','from','updateRevisions','_pendingAction','createPositionAfter','_fixPosition','_bufferedUpdates','getRevisions','repository','getCurrentRevisionId','vid_end','_markChanges','createPositionBefore','elementStart','keepParagraph','_insertChild','insert','root','position','_findInsertionIndex','getChildren','_cloneOperation','offsetSize','default','getRevision','getChild','buildRevisionData','text','_touchedMarkers','_fixOperation','_startingRevisionId','delete','toVersion','clone','rootsAttributes','_getViewJson','_operations','_baseRootsAttributes','markers','shift','getOperation','getTransformedByOperation','string','find','_calculateMetaData','view','_startingVersion','_makeIdsRoot','initial','authors','Users','revision','createdAt','model','_isPendingUpdate','_execute','_appendChild','getUser','pluginName','getTime','rootName','oldRange','dataToMarker','offset','define','_replaceEditorDataWithRevisionData','version','editing','_getFromVersion','_baseRoots','isEqual','_removePendingAction','_isAttached','PendingActions','adapter','_authorId','_markers','size','_diffRoots','get','_handleRootOperation','document','map','creator','_prepareViewToSave','_removeRevisionMarkers','_getVidAttributeName','config','path','creatorId','_removeMetaData','_getPreviousFrom','_loadRevisionData','push','$text','affectsData','_copyMarkers','range','targetPosition','element','includes','split','getRevisionDocumentData','_makeRevision','afterInit','getNodeByPath','addRoot','_handleSplitOperation','createRevision','previousPosition','Initial\x20revision','insertionPosition','reInit','plugins','newRange','newValue','getData','isReady','stringify','RevisionTracker','markerToData','roots','vid_start','_update','NEGATIVE_INFINITY','locale','move','then','attributesAfter','_handleRootAttributeOperation','isAttached','item','values','key','type','_savedMetaData','name','tableCell','parse','createPositionFromPath','_touched','howMany','finally','_revisionDataBuilder','revisionHistory.resumeUnsavedRevision','merge','filter','end','_fixRange','deletion','_baseIdsRoots','_getBaseVids','_clone','collaboration.channelId','clear','processor','elementEnd','_reset','data','stickiness','insertions','currentRevision','keys','_lastFrom','deletions','createRange','_createInitialRevision','graveyardPosition','children','toModel','conversion','getWalker','getMovedRangeStart','slice','start','_loadState','_idsRoots','source','editor','some','trim','baseVersion','_handleMarkerOperation','_getState','hasContent','_transformMarkers','attributesBefore','toData','_isInit','sendBufferedUpdates','sort','getOperations','getAttributes','_saveMetaData','revision:','fromEntries','fromVersion','remove','marked','saveRevision','nodeAfter','getAttribute','for','_touchedRoots','getRoot','_diffRootsAttributes','set','loadState','data-revision-','marker','history','_initialRevisionId','_setAttribute','isAdd','resolve','useFillerType','Empty\x20document','_generateTape','_setConversion','revision-start','startsWith','getRootNames','getRevisionRootsAttributes','_loadedStateData','bind','parent','_processRootBeforeSave','init','diffData','_continueCurrentRevision','_revisionId','paragraph','userId','_applyOperations','reverse','initialData','update','add','_handleMergeOperation','_makeModelFromViewString','_bufferUpdate','revision-end','addRevisionData','_source'];(function(_0x3241c3,_0x51182f){const _0x2c6fa6=function(_0x2871e3){while(--_0x2871e3){_0x3241c3['push'](_0x3241c3['shift']());}};_0x2c6fa6(++_0x51182f);}(_0x5118,0x137));const _0x2c6f=function(_0x3241c3,_0x51182f){_0x3241c3=_0x3241c3-0x0;let _0x2c6fa6=_0x5118[_0x3241c3];return _0x2c6fa6;};import{Users as _0x2f72d3}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0xd14f5c,PendingActions as _0xa2e87b}from'ckeditor5/src/core';import{logWarning as _0x41377c,uid as _0x154040}from'ckeditor5/src/utils';import{Position as _0x4f2d96,Range as _0x20270a,Element as _0x2bfd72,DocumentFragment as _0x381441,ViewText as _0x11c7bb,ViewElement as _0x31128b,ViewContainerElement as _0x7f07bf,ViewAttributeElement as _0x407e78,ViewEmptyElement as _0x505704,ViewRawElement as _0x49524d,ViewUIElement as _0x2e1638,ViewDocumentFragment as _0x4ab740}from'ckeditor5/src/engine';import _0x33a4ba from'./revisionsrepository';import{getTranslation as _0x34622a}from'./utils/common-translations';import{cloneDeep as _0x165835,isEqual as _0x20092c}from'lodash-es';const B={'c':_0x7f07bf,'a':_0x407e78,'e':_0x505704,'r':_0x49524d,'u':_0x2e1638};export default class l extends _0xd14f5c{static get[_0x2c6f('0x1f')](){return _0x2c6f('0x5c');}static get['requires'](){return[_0x2f72d3,_0x33a4ba,_0xa2e87b];}constructor(_0x476ff4){super(_0x476ff4),this[_0x2c6f('0x2f')]=null,this['currentRevision']=null,this['_revisionDataBuilder']=new H(this[_0x2c6f('0x97')]),this['_initialRevisionId']=this[_0x2c6f('0x97')]['config']['get'](_0x2c6f('0x7e'))||_0x2c6f('0x15'),this[_0x2c6f('0xf3')]=new Map(),this['_loadedStateData']=null;const _0x4aa6b1=_0x154040();this[_0x2c6f('0xd8')]={'history':this['editor'][_0x2c6f('0x1a')][_0x2c6f('0x36')]['history'],'getLatestVersion':()=>Promise['resolve'](this['editor'][_0x2c6f('0x1a')][_0x2c6f('0x36')][_0x2c6f('0x27')]),'getCurrentRevisionId':()=>_0x4aa6b1},this['set']('isReady',!0x1),this[_0x2c6f('0xb3')]('isEnabled',!0x0),this[_0x2c6f('0xb3')](_0x2c6f('0x1b'),!0x1),this[_0x2c6f('0x97')][_0x2c6f('0x3c')][_0x2c6f('0x25')](_0x2c6f('0x75'),!0x0),this[_0x2c6f('0x97')][_0x2c6f('0x8f')]['for'](_0x2c6f('0xe6'))[_0x2c6f('0x23')]({'view':_0x2c6f('0x18')});}[_0x2c6f('0xc8')](){this[_0x2c6f('0xf5')]=this['editor'][_0x2c6f('0x56')][_0x2c6f('0x34')]('RevisionsRepository'),this[_0x2c6f('0xbf')](),this[_0x2c6f('0x97')]['data']['on']('ready',()=>{const _0x15d920=this[_0x2c6f('0xf5')][_0x2c6f('0x105')](0x0),_0x295c53=_0x15d920&&null===_0x15d920['creator']?_0x15d920:null;if(this['_continueCurrentRevision']=!!_0x295c53&&this[_0x2c6f('0x97')][_0x2c6f('0x3c')][_0x2c6f('0x34')](_0x2c6f('0x75')),this[_0x2c6f('0x97')]['plugins'][_0x2c6f('0xe7')]('RealTimeCollaborationClient')){const _0xfcf58=this[_0x2c6f('0xd8')]['getCurrentRevisionId'](),_0x3d03bd=this[_0x2c6f('0xf5')]['getRevision'](_0xfcf58);if(_0x3d03bd)this[_0x2c6f('0x13')]=_0x3d03bd[_0x2c6f('0xa9')],this[_0x2c6f('0xca')]=!0x1;else{const _0x31429d=this['_source']['history'][_0x2c6f('0x9')][_0x2c6f('0x10')](_0x1cf2c4=>!_0x1cf2c4[_0x2c6f('0xa1')]),_0x3fc914=_0x31429d?_0x31429d[_0x2c6f('0x9a')]:this[_0x2c6f('0xd8')][_0x2c6f('0xb7')][_0x2c6f('0x27')];_0x15d920?(_0x15d920[_0x2c6f('0x5')]<_0x3fc914&&_0x15d920[_0x2c6f('0x60')]({'toVersion':_0x3fc914}),this[_0x2c6f('0xca')]?(this[_0x2c6f('0xd8')][_0x2c6f('0xf6')]=()=>_0x295c53['id'],this[_0x2c6f('0x13')]=_0x295c53['fromVersion']):(this['_startingVersion']=_0x15d920[_0x2c6f('0x5')],this[_0x2c6f('0xca')]=!0x1)):(this[_0x2c6f('0x13')]=_0x3fc914,this[_0x2c6f('0xca')]=!0x1);}}else _0x295c53&&(this[_0x2c6f('0x97')][_0x2c6f('0x1a')][_0x2c6f('0x36')][_0x2c6f('0xb7')]['version']=Math['max'](_0x295c53[_0x2c6f('0x5')],this[_0x2c6f('0x97')]['model'][_0x2c6f('0x36')][_0x2c6f('0xb7')][_0x2c6f('0x27')]),_0x295c53[_0x2c6f('0xa9')]===_0x295c53[_0x2c6f('0x5')]?(0x0!==_0x295c53[_0x2c6f('0xa9')]&&(this[_0x2c6f('0xd8')][_0x2c6f('0xf6')]=()=>_0x295c53['id']),this['_continueCurrentRevision']=!0x1):this[_0x2c6f('0xca')]&&(this[_0x2c6f('0xd8')]['getCurrentRevisionId']=()=>_0x295c53['id'],this['_startingVersion']=_0x295c53[_0x2c6f('0xa9')])),this[_0x2c6f('0xca')]||(this[_0x2c6f('0x13')]=this[_0x2c6f('0x97')][_0x2c6f('0x1a')][_0x2c6f('0x36')][_0x2c6f('0x27')]);this['_revisionDataBuilder'][_0x2c6f('0xc8')](this[_0x2c6f('0xd8')][_0x2c6f('0xb7')]),this[_0x2c6f('0x8b')](this[_0x2c6f('0x13')]),this[_0x2c6f('0xd9')](this[_0x2c6f('0x13')]),this[_0x2c6f('0x2f')]&&this['sendBufferedUpdates']();}),this[_0x2c6f('0xc5')](_0x2c6f('0x5a'))['to'](this,_0x2c6f('0x1b'),_0x808fd7=>!_0x808fd7);}async[_0x2c6f('0x4d')](){if(this['repository'][_0x2c6f('0xda')]>0x0){const _0x34e5cf=this[_0x2c6f('0xf5')][_0x2c6f('0x105')](0x0),_0x2497db=await this[_0x2c6f('0x4b')](_0x34e5cf),_0x414da6=await this[_0x2c6f('0xc3')](_0x34e5cf);this[_0x2c6f('0x26')](_0x2497db,_0x414da6);}}['setSource'](_0x53806c){this[_0x2c6f('0xd8')]=_0x53806c;}async[_0x2c6f('0xd1')](){const _0x2437fc=await this[_0x2c6f('0xd8')]['getLatestVersion']();if(_0x2437fc>this[_0x2c6f('0x86')][_0x2c6f('0x5')]){await this[_0x2c6f('0x94')]();const _0xc664d1=this[_0x2c6f('0x107')]({'revision':this[_0x2c6f('0x86')],'to':_0x2437fc});_0xc664d1[_0x2c6f('0x16')]=_0xc664d1[_0x2c6f('0xdb')]['map'](_0xfb0609=>this[_0x2c6f('0x97')][_0x2c6f('0x56')][_0x2c6f('0x34')](_0x2c6f('0x17'))[_0x2c6f('0x1e')](_0xfb0609)),this['currentRevision'][_0x2c6f('0x60')](_0xc664d1);}}async[_0x2c6f('0x94')](){this[_0x2c6f('0xca')]&&!this[_0x2c6f('0xc4')]&&(await this[_0x2c6f('0x41')](this['currentRevision']),this[_0x2c6f('0x74')][_0x2c6f('0xb4')](this[_0x2c6f('0x86')]),this[_0x2c6f('0xc4')]={'fromVersion':this[_0x2c6f('0x86')][_0x2c6f('0xa9')],'authors':this['currentRevision']['authors'][_0x2c6f('0x92')]()});}async[_0x2c6f('0xac')](_0x41e6b9={},_0x173245=null){const _0x44280b=[];await this[_0x2c6f('0x94')](),this[_0x2c6f('0xca')]=!0x1,_0x173245>this[_0x2c6f('0x86')][_0x2c6f('0x5')]&&(_0x173245=null),null===_0x173245&&(_0x173245=await this[_0x2c6f('0xd8')]['getLatestVersion']());const _0x184daf=this[_0x2c6f('0x29')](_0x173245),_0x4d5df6=this['buildRevisionData']({'from':_0x184daf,'to':_0x173245});if(this[_0x2c6f('0x86')]['toVersion']<_0x173245){const _0x156253=this[_0x2c6f('0x107')]({'revision':this['currentRevision'],'from':_0x173245,'to':_0x173245});_0x156253['authors']=[],_0x156253['authorsIds']=[],_0x156253['id']=this[_0x2c6f('0x86')]['id'],this['currentRevision'][_0x2c6f('0x60')](_0x156253,!0x0),delete _0x156253[_0x2c6f('0x16')],_0x44280b['push'](_0x156253);}_0x41e6b9[_0x2c6f('0x3e')]=this[_0x2c6f('0x97')]['plugins']['get']('Users')['me']['id'],_0x41e6b9['name']=_0x41e6b9[_0x2c6f('0x6d')]||null,_0x41e6b9['id']=_0x41e6b9['id']||_0x154040(),_0x41e6b9={..._0x41e6b9,..._0x4d5df6};const _0x426d37=this[_0x2c6f('0xd7')](_0x41e6b9);_0x44280b[_0x2c6f('0x42')](_0x41e6b9);const _0x2c588e=this[_0x2c6f('0xf5')][_0x2c6f('0xe3')](_0x426d37);if(0x0!==_0x2c588e){const _0x320d70=this[_0x2c6f('0xf5')][_0x2c6f('0x105')](_0x2c588e-0x1);if(_0x320d70[_0x2c6f('0xa9')]!==_0x173245){const _0x3352ae=this[_0x2c6f('0x74')]['getData'](_0x173245,_0x320d70[_0x2c6f('0x5')]),_0x35ef3f={'id':_0x320d70['id'],'diffData':_0x3352ae[_0x2c6f('0xc9')],'authorsIds':_0x3352ae[_0x2c6f('0xdb')],'authors':_0x3352ae[_0x2c6f('0xdb')][_0x2c6f('0x37')](_0x509d30=>this[_0x2c6f('0x97')][_0x2c6f('0x56')][_0x2c6f('0x34')](_0x2c6f('0x17'))[_0x2c6f('0x1e')](_0x509d30)),'fromVersion':_0x173245};_0x320d70===this['currentRevision']&&(_0x35ef3f['createdAt']=new Date(_0x41e6b9[_0x2c6f('0x19')][_0x2c6f('0x20')]()+0xa)),_0x320d70[_0x2c6f('0x60')](_0x35ef3f,!0x0),delete _0x35ef3f[_0x2c6f('0x16')],_0x44280b[_0x2c6f('0x42')](_0x35ef3f);}}if(this['adapter']){for(const _0x176a0d of _0x44280b)this[_0x2c6f('0xd5')](_0x176a0d['id'],_0x176a0d,!0x0);this[_0x2c6f('0xa2')]();}return _0x426d37;}[_0x2c6f('0xd7')](_0x58ab7a){const _0x119d8c=this[_0x2c6f('0xf5')][_0x2c6f('0x51')](_0x58ab7a);return this[_0x2c6f('0x2f')]&&_0x119d8c['on'](_0x2c6f('0x60'),(_0x311c03,_0x4b1975,_0x5a3f82)=>{_0x5a3f82||(this['_bufferUpdate'](_0x4b1975['id'],_0x4b1975,!0x0),this['sendBufferedUpdates']());}),this[_0x2c6f('0xf5')]['addRevision'](_0x119d8c,this[_0x2c6f('0x100')](_0x119d8c)),_0x119d8c;}async[_0x2c6f('0x4b')](_0x141f8e){await this[_0x2c6f('0x41')](_0x141f8e);const _0x5e5c9c={};for(const _0x234104 in _0x141f8e[_0x2c6f('0xc9')]){if(_0x141f8e[_0x2c6f('0xc9')][_0x234104]['attachChange']&&!_0x141f8e[_0x2c6f('0xc9')][_0x234104][_0x2c6f('0xea')][_0x2c6f('0x67')])continue;const _0x1ea51b=this[_0x2c6f('0x3a')](JSON[_0x2c6f('0x6f')](_0x141f8e['diffData'][_0x234104][_0x2c6f('0x85')])),_0x242b4c=this['editor'][_0x2c6f('0x28')][_0x2c6f('0x12')][_0x2c6f('0x36')],_0x773be6=new _0x4ab740(_0x242b4c,_0x1ea51b[_0x2c6f('0x37')](_0x213d0e=>J(_0x213d0e,this['editor'])));this[_0x2c6f('0x97')][_0x2c6f('0x83')][_0x2c6f('0x80')][_0x2c6f('0xbc')](_0x2c6f('0xab')),_0x5e5c9c[_0x234104]=this[_0x2c6f('0x97')][_0x2c6f('0x83')][_0x2c6f('0x80')][_0x2c6f('0xa0')](_0x773be6),this[_0x2c6f('0x97')][_0x2c6f('0x83')]['processor']['useFillerType'](_0x2c6f('0x104'));}return _0x5e5c9c;}async['getRevisionRootsAttributes'](_0x316ef7){await this[_0x2c6f('0x41')](_0x316ef7);const _0x25252e={};for(const _0x3828cc in _0x316ef7['diffData'])_0x316ef7['diffData'][_0x3828cc]['attachChange']&&!_0x316ef7[_0x2c6f('0xc9')][_0x3828cc]['attachChange'][_0x2c6f('0x67')]||(_0x25252e[_0x3828cc]=_0x316ef7[_0x2c6f('0xc9')][_0x3828cc][_0x2c6f('0x65')]||{});return _0x25252e;}[_0x2c6f('0xa2')](){if(0x0===this[_0x2c6f('0xf3')][_0x2c6f('0x32')])return;if(this[_0x2c6f('0x1b')])return;let _0x966eda=Array[_0x2c6f('0xee')](this[_0x2c6f('0xf3')][_0x2c6f('0x69')]());this['_bufferedUpdates'][_0x2c6f('0x7f')]();for(let _0x41a5dc=0x0;_0x41a5dc<_0x966eda['length'];_0x41a5dc++){const _0x598a50=_0x966eda[_0x41a5dc];let _0x41f57c=!0x1;for(const _0x53bc47 of Object[_0x2c6f('0x87')](_0x598a50))void 0x0===_0x598a50[_0x53bc47]?delete _0x598a50[_0x53bc47]:'id'!==_0x53bc47&&(_0x41f57c=!0x0);_0x41f57c||(_0x966eda[_0x41a5dc]=null);}if(_0x966eda=_0x966eda['filter'](_0x588802=>null!==_0x588802),!_0x966eda['length'])return;for(let _0x2a3eb0=0x0;_0x2a3eb0<_0x966eda[_0x2c6f('0xda')];_0x2a3eb0++){const _0x485a6e=_0x966eda[_0x2a3eb0];void 0x0!==_0x485a6e['fromVersion']&&void 0x0===_0x485a6e[_0x2c6f('0x5')]&&(_0x485a6e[_0x2c6f('0x5')]=this[_0x2c6f('0xf5')][_0x2c6f('0x105')](_0x485a6e['id'])[_0x2c6f('0x5')]),void 0x0!==_0x485a6e['toVersion']&&void 0x0===_0x485a6e[_0x2c6f('0xa9')]&&(_0x485a6e['fromVersion']=this['repository'][_0x2c6f('0x105')](_0x485a6e['id'])[_0x2c6f('0xa9')]);}const _0x2b5ba2=this[_0x2c6f('0x97')]['config'][_0x2c6f('0x34')](_0x2c6f('0x7e'));this['_isPendingUpdate']=!0x0,this[_0x2c6f('0xdf')](),this[_0x2c6f('0x2f')][_0x2c6f('0xef')](_0x966eda,_0x2b5ba2)[_0x2c6f('0x73')](()=>{this[_0x2c6f('0x1b')]=!0x1;})[_0x2c6f('0x64')](_0x347e17=>{if(_0x347e17)for(const _0x56f3ab of _0x347e17)this[_0x2c6f('0xe0')]({'id':_0x56f3ab['id'],'createdAt':_0x56f3ab['createdAt']});this[_0x2c6f('0x2c')](),this[_0x2c6f('0xa2')]();});}[_0x2c6f('0x26')](_0x1465ce,_0x211f9c){let _0x95713f=this[_0x2c6f('0x97')][_0x2c6f('0x3c')][_0x2c6f('0x34')](_0x2c6f('0xd0')),_0x313d0a=this[_0x2c6f('0x97')][_0x2c6f('0x3c')][_0x2c6f('0x34')](_0x2c6f('0x7'));if(void 0x0===_0x95713f){_0x95713f={};for(const _0x2fa771 of this['editor'][_0x2c6f('0x1a')][_0x2c6f('0x36')][_0x2c6f('0xc2')]())_0x95713f[_0x2fa771]='';}if(_0x2c6f('0xf')==typeof _0x95713f&&(_0x95713f={'main':_0x95713f}),void 0x0===_0x313d0a){_0x313d0a={};for(const _0x4fc412 of this[_0x2c6f('0x97')][_0x2c6f('0x1a')][_0x2c6f('0x36')][_0x2c6f('0xc2')]())_0x313d0a[_0x4fc412]={};}let _0x316d1e=!0x1;const _0x336d7f=Object['keys'](_0x95713f),_0x48902d=Object[_0x2c6f('0x87')](_0x1465ce);for(const _0x4120ff of _0x336d7f){if(_0x95713f[_0x4120ff]!==_0x1465ce[_0x4120ff]&&''!==_0x95713f[_0x4120ff][_0x2c6f('0x99')]()){_0x316d1e=!0x0;break;}if(!_0x20092c(_0x313d0a[_0x4120ff],_0x211f9c[_0x4120ff])&&Object[_0x2c6f('0x87')](_0x313d0a[_0x4120ff])[_0x2c6f('0xda')]>0x0){_0x316d1e=!0x0;break;}}_0x316d1e||(_0x316d1e=_0x48902d[_0x2c6f('0x98')](_0x4fa5e3=>!this[_0x2c6f('0x97')]['model'][_0x2c6f('0x36')][_0x2c6f('0xb1')](_0x4fa5e3))),_0x316d1e&&_0x41377c('editor-initial-data-replaced-with-revision-data',{'editorData':_0x95713f,'editorRootsAttributes':_0x313d0a,'revisionData':_0x1465ce,'revisionRootsAttributes':_0x211f9c}),this['editor'][_0x2c6f('0x3c')][_0x2c6f('0xb3')]('initialData',_0x1465ce),this[_0x2c6f('0x97')][_0x2c6f('0x3c')][_0x2c6f('0xb3')](_0x2c6f('0x7'),_0x211f9c);}[_0x2c6f('0xdf')](){if(!this['_pendingAction']){const _0x33ce4d=this[_0x2c6f('0x97')][_0x2c6f('0x56')][_0x2c6f('0x34')](_0x2c6f('0x2e'));this['_pendingAction']=_0x33ce4d[_0x2c6f('0xd2')](_0x34622a(this[_0x2c6f('0x97')][_0x2c6f('0x62')],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this[_0x2c6f('0xf0')]&&(this[_0x2c6f('0x97')][_0x2c6f('0x56')]['get'](_0x2c6f('0x2e'))[_0x2c6f('0xaa')](this[_0x2c6f('0xf0')]),this[_0x2c6f('0xf0')]=null);}[_0x2c6f('0x100')](_0x5ec0ed){const _0x582c18=this[_0x2c6f('0xf5')][_0x2c6f('0xf4')]();_0x582c18[_0x2c6f('0xcf')]();let _0x46db9a=0x0;for(;_0x46db9a<_0x582c18[_0x2c6f('0xda')];){const _0x3d4c8b=_0x582c18[_0x46db9a];if(_0x3d4c8b===this['currentRevision']){_0x46db9a++;continue;}if(_0x3d4c8b['id']===this['_initialRevisionId'])break;const _0xf9c3df=_0x5ec0ed['toVersion']-_0x3d4c8b['toVersion']||_0x5ec0ed[_0x2c6f('0xa9')]-_0x3d4c8b[_0x2c6f('0xa9')];if(_0xf9c3df>0x0)break;if(_0xf9c3df<0x0)_0x46db9a++;else{if(!_0x5ec0ed[_0x2c6f('0x38')]&&_0x3d4c8b[_0x2c6f('0x38')])break;if(_0x3d4c8b[_0x2c6f('0x38')]||!_0x5ec0ed[_0x2c6f('0x38')]){if(_0x5ec0ed['createdAt']>_0x3d4c8b[_0x2c6f('0x19')])break;_0x46db9a++;}else _0x46db9a++;}}return _0x46db9a;}[_0x2c6f('0xe0')](_0x423d06){const _0x22ecde=this[_0x2c6f('0xf5')][_0x2c6f('0x105')](_0x423d06['id']);if(_0x423d06[_0x2c6f('0x19')]&&(_0x423d06[_0x2c6f('0x19')]=new Date(_0x423d06[_0x2c6f('0x19')])),_0x423d06[_0x2c6f('0xdb')]){const _0x5b638a=this[_0x2c6f('0x97')][_0x2c6f('0x56')][_0x2c6f('0x34')](_0x2c6f('0x17'));_0x423d06[_0x2c6f('0x16')]=_0x423d06['authorsIds'][_0x2c6f('0x37')](_0x5d7af7=>_0x5b638a['getUser'](_0x5d7af7));}_0x22ecde[_0x2c6f('0x60')](_0x423d06,!0x0);}[_0x2c6f('0x107')]({revision:_0x366f26=null,from:_0x5a0cce=null,to:_0x3ce034=null}){_0x5a0cce=null!==_0x5a0cce?_0x5a0cce:_0x366f26[_0x2c6f('0xa9')],_0x3ce034=null!==_0x3ce034?_0x3ce034:_0x366f26[_0x2c6f('0x5')];const _0x1d7164=this[_0x2c6f('0x74')][_0x2c6f('0x59')](_0x5a0cce,_0x3ce034),_0x4b7e46={'diffData':_0x1d7164[_0x2c6f('0xc9')],'authorsIds':_0x1d7164[_0x2c6f('0xdb')],'fromVersion':_0x5a0cce,'toVersion':_0x3ce034};if(!_0x366f26||_0x3ce034!==_0x366f26[_0x2c6f('0x5')]){const _0x2ce9bd=_0x3ce034-0x1,_0x3fd647=this[_0x2c6f('0xd8')][_0x2c6f('0xb7')][_0x2c6f('0xd')](_0x2ce9bd);_0x4b7e46[_0x2c6f('0x19')]=_0x3fd647&&_0x3fd647[_0x2c6f('0x19')]||new Date();}if(this[_0x2c6f('0xc4')]&&_0x5a0cce===this[_0x2c6f('0xc4')][_0x2c6f('0xa9')])for(const _0x2f83c1 of this[_0x2c6f('0xc4')][_0x2c6f('0x16')])_0x4b7e46[_0x2c6f('0xdb')][_0x2c6f('0x49')](_0x2f83c1['id'])||_0x4b7e46['authorsIds']['push'](_0x2f83c1['id']);return _0x4b7e46;}[_0x2c6f('0x41')](_0x52392f){if(!_0x52392f||_0x52392f[_0x2c6f('0xc9')])return Promise[_0x2c6f('0xbb')]();{const _0x328bbf=this[_0x2c6f('0x97')]['config'][_0x2c6f('0x34')]('collaboration.channelId');return this[_0x2c6f('0x2f')][_0x2c6f('0x105')]({'channelId':_0x328bbf,'revisionId':_0x52392f['id']})[_0x2c6f('0x64')](_0x1ec1a1=>{_0x52392f['diffData']=_0x1ec1a1[_0x2c6f('0xc9')];});}}[_0x2c6f('0xd5')](_0x183a2a,_0x633194,_0xbda6f0){if(this[_0x2c6f('0xf3')][_0x2c6f('0xe7')](_0x183a2a)){const _0x33954c=this[_0x2c6f('0xf3')][_0x2c6f('0x34')](_0x183a2a);_0x633194=_0xbda6f0?{..._0x33954c,..._0x633194}:{..._0x633194,..._0x33954c};}this[_0x2c6f('0xf3')][_0x2c6f('0xb3')](_0x183a2a,_0x633194);}[_0x2c6f('0x29')](_0x214068){const _0x28b4cc=this[_0x2c6f('0xf5')][_0x2c6f('0xf4')]();_0x28b4cc['reverse'](),_0x28b4cc[_0x2c6f('0xc')]();const _0x502903=_0x28b4cc['find'](_0x29b90d=>_0x29b90d[_0x2c6f('0x5')]<=_0x214068)[_0x2c6f('0x5')];return _0x502903<this[_0x2c6f('0x13')]?this[_0x2c6f('0x13')]:_0x502903;}[_0x2c6f('0x8b')](_0x49dc01){const _0xb3bb71=this[_0x2c6f('0xf5')][_0x2c6f('0x105')](this[_0x2c6f('0xf5')]['length']-0x1);if(_0xb3bb71)this[_0x2c6f('0xb8')]=_0xb3bb71['id'];else{const _0x44d530=!this[_0x2c6f('0x97')]['model'][_0x2c6f('0x36')]['roots'][_0x2c6f('0x10')](_0x20717e=>this[_0x2c6f('0x97')][_0x2c6f('0x1a')][_0x2c6f('0x9d')](_0x20717e)),_0x378e26=this['editor']['plugins'][_0x2c6f('0x34')]('Users')['me']['id'],_0x4a5193=_0x34622a(this[_0x2c6f('0x97')][_0x2c6f('0x62')],_0x44d530?_0x2c6f('0xbd'):_0x2c6f('0x53'));this[_0x2c6f('0x4c')]({'from':_0x49dc01,'to':_0x49dc01,'id':this[_0x2c6f('0xb8')],'name':_0x4a5193,'creatorId':_0x378e26});}}[_0x2c6f('0xd9')](_0xa5873c){const _0x159147=this[_0x2c6f('0xd8')]['getCurrentRevisionId']();this[_0x2c6f('0x86')]=this[_0x2c6f('0xf5')]['getRevision'](_0x159147),this[_0x2c6f('0x86')]||(this[_0x2c6f('0x86')]=this[_0x2c6f('0x4c')]({'from':_0xa5873c,'to':_0xa5873c,'id':_0x159147,'name':'','creatorId':null}));}[_0x2c6f('0x4c')]({name:_0x25de1f,from:_0x47dcd2,to:_0x1ca0e9,creatorId:_0x3a9916,id:_0x32a28a}){const _0x170683=this[_0x2c6f('0x107')]({'from':_0x47dcd2,'to':_0x1ca0e9});_0x170683[_0x2c6f('0x6d')]=_0x25de1f,_0x170683[_0x2c6f('0x3e')]=_0x3a9916,_0x170683['id']=_0x32a28a;const _0x1828d3=this[_0x2c6f('0xd7')](_0x170683);return this[_0x2c6f('0x2f')]&&this['_bufferUpdate'](_0x170683['id'],_0x170683,!0x0),_0x1828d3;}['_setConversion'](){this[_0x2c6f('0x97')][_0x2c6f('0x8f')][_0x2c6f('0xaf')]('dataDowncast')[_0x2c6f('0x5d')]({'model':_0x2c6f('0x18')});}['_removeRevisionMarkers'](_0x12f9b2){return(_0x12f9b2=_0x12f9b2[_0x2c6f('0x77')](_0x2753cb=>!_0x2753cb[_0x2c6f('0x6d')]||_0x2c6f('0xc0')!==_0x2753cb['name']&&_0x2c6f('0xd6')!==_0x2753cb[_0x2c6f('0x6d')]))['forEach'](_0x32957a=>{'string'!=typeof _0x32957a&&(_0x32957a[_0x2c6f('0x8d')]=this['_removeRevisionMarkers'](_0x32957a['children']),_0x32957a[_0x2c6f('0xdc')]=_0x32957a[_0x2c6f('0xdc')][_0x2c6f('0x77')](_0x3c81c9=>!_0x3c81c9[0x0][_0x2c6f('0xc1')](_0x2c6f('0xb5'))));}),_0x12f9b2;}}function J(_0x250b5c,_0x4eb293){const _0x284cb3=_0x4eb293['editing']['view'][_0x2c6f('0x36')];if(_0x2c6f('0xf')==typeof _0x250b5c)return new _0x11c7bb(_0x284cb3,_0x250b5c);{const _0x4d3316=_0x250b5c[_0x2c6f('0x8d')][_0x2c6f('0x37')](_0x47f68f=>J(_0x47f68f,_0x4eb293));return new(B[_0x250b5c[(_0x2c6f('0x6b'))]]||_0x31128b)(_0x284cb3,_0x250b5c['name'],_0x250b5c['attributes'],_0x4d3316);}}class H{constructor(_0x1d7d2a){this[_0x2c6f('0x97')]=_0x1d7d2a,this[_0x2c6f('0x6c')]=new Map(),this[_0x2c6f('0x88')]=-0x1,this[_0x2c6f('0xe9')]=-0x1,this[_0x2c6f('0x31')]=new Map(),this[_0x2c6f('0x33')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x2c6f('0x2a')]=new Map(),this[_0x2c6f('0xa')]=new Map(),this[_0x2c6f('0x95')]=new Map(),this[_0x2c6f('0x7b')]=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this[_0x2c6f('0xb0')]=new Map(),this[_0x2c6f('0xcb')]=0x1;}[_0x2c6f('0xc8')](_0x2c13fe){this[_0x2c6f('0x96')]=_0x2c13fe;const _0x3a41b1=new Map(),_0x4c5fea=new Map(),_0x443fa7=this['editor'][_0x2c6f('0x1a')][_0x2c6f('0x36')][_0x2c6f('0x5e')]['map'](_0xe40376=>_0xe40376[_0x2c6f('0x21')]);for(const _0xf1fd0e of _0x443fa7){const _0x352dbf=this['editor'][_0x2c6f('0x1a')]['document'][_0x2c6f('0xb1')](_0xf1fd0e),_0x403bd3=q(_0x352dbf);_0x3a41b1[_0x2c6f('0xb3')](_0xf1fd0e,_0x403bd3),_0x4c5fea[_0x2c6f('0xb3')](_0xf1fd0e,Object[_0x2c6f('0xa8')](_0x352dbf[_0x2c6f('0xa5')]()));}const _0x133cc4=Array[_0x2c6f('0xee')](this['editor'][_0x2c6f('0x1a')][_0x2c6f('0xb')])['map'](_0x31b8ec=>[_0x31b8ec[_0x2c6f('0x6d')],_0x31b8ec['getRange']()]),_0x116f40=this[_0x2c6f('0x96')][_0x2c6f('0x27')];this[_0x2c6f('0xa6')](_0x116f40,_0x3a41b1,_0x133cc4,_0x4c5fea),this[_0x2c6f('0x3')]=this[_0x2c6f('0xcb')];const _0x3f36e9=new Map(),_0x1c0f5f=new Map();for(const _0x396ca8 of _0x443fa7){const _0x5b95e9=G(_0x396ca8);_0x3f36e9[_0x2c6f('0xb3')](_0x396ca8,_0x5b95e9),_0x1c0f5f[_0x2c6f('0xb3')](_0x396ca8,{});}this[_0x2c6f('0xa6')](Number['NEGATIVE_INFINITY'],_0x3f36e9,[],_0x1c0f5f);}[_0x2c6f('0x59')](_0x2f9921,_0x266d7f){if(this['_lastFrom']===_0x2f9921&&this[_0x2c6f('0xe9')]<=_0x266d7f)this[_0x2c6f('0x6c')][_0x2c6f('0x32')]>0x1&&this[_0x2c6f('0x3f')](this[_0x2c6f('0xe9')]),this[_0x2c6f('0xce')](this[_0x2c6f('0xe9')],_0x266d7f,!0x0);else{if(!this[_0x2c6f('0x6c')]['has'](_0x2f9921)){const _0x151374=this[_0x2c6f('0x40')](_0x2f9921);this[_0x2c6f('0x11')](_0x151374,_0x2f9921,!0x1);}this['_calculateMetaData'](_0x2f9921,_0x266d7f,!0x0);}return this['_lastFrom']=_0x2f9921,this[_0x2c6f('0xe9')]=_0x266d7f,this['_getState']();}[_0x2c6f('0xb4')](_0x3e5b03){this['_reset'](),this[_0x2c6f('0x88')]=_0x3e5b03[_0x2c6f('0xa9')],this['_lastTo']=_0x3e5b03['toVersion'];for(const _0x574e56 in _0x3e5b03['diffData']){const _0x18a18f=_0x3e5b03[_0x2c6f('0xc9')][_0x574e56][_0x2c6f('0xea')],_0x472861=_0x165835(_0x3e5b03[_0x2c6f('0xc9')][_0x574e56][_0x2c6f('0x9f')])||{},_0x501dfc=this[_0x2c6f('0xd4')](_0x3e5b03['diffData'][_0x574e56]['deletions']);_0x501dfc['rootName']=_0x574e56,_0x501dfc[_0x2c6f('0x2d')]=!_0x18a18f||!_0x18a18f['isAttached'],_0x501dfc[_0x2c6f('0x67')]=()=>_0x501dfc[_0x2c6f('0x2d')],this[_0x2c6f('0x2a')][_0x2c6f('0xb3')](_0x574e56,_0x501dfc),this[_0x2c6f('0xa')]['set'](_0x574e56,_0x472861),_0x18a18f&&this[_0x2c6f('0xb0')][_0x2c6f('0xb3')](_0x574e56,_0x18a18f);const _0x5bd5dd=this[_0x2c6f('0x14')](_0x501dfc);this[_0x2c6f('0x7b')][_0x2c6f('0xb3')](_0x574e56,_0x5bd5dd);for(const [_0x59f937,_0x394c53]of _0x501dfc['markers']){if(!_0x59f937[_0x2c6f('0xc1')](_0x2c6f('0xa7')))continue;const _0xdd825f=_0x59f937[_0x2c6f('0x4a')](':')[0x2];for(const _0x1c25bd of _0x394c53[_0x2c6f('0x90')]({'singleCharacters':!0x0})){const _0x304ae1=this[_0x2c6f('0x3b')](_0x1c25bd),_0x4c1ac9=_0x2c6f('0x81')==_0x1c25bd[_0x2c6f('0x6b')]?_0x1c25bd['previousPosition']['path']['slice'](0x0,-0x1):_0x1c25bd['previousPosition'][_0x2c6f('0x3d')],_0x58b780=_0x5bd5dd[_0x2c6f('0x4e')](_0x4c1ac9)['getAttribute'](_0x304ae1);this['_touched'][_0x2c6f('0xb3')](_0x58b780,{'userId':_0xdd825f});}}}this[_0x2c6f('0x3')]=this[_0x2c6f('0xcb')];const _0x402e48=[...Array(this[_0x2c6f('0xcb')])['keys']()][_0x2c6f('0x92')](0x1)[_0x2c6f('0x77')](_0x5ef6c2=>!this[_0x2c6f('0x71')][_0x2c6f('0xe7')](_0x5ef6c2));let _0x4bdd10=0x0;const _0xa25e47=new Map();for(const _0x53f3e4 in _0x3e5b03[_0x2c6f('0xc9')]){const _0x3ea9f6=_0x3e5b03[_0x2c6f('0xc9')][_0x53f3e4][_0x2c6f('0xea')],_0x11f9cf=_0x165835(_0x3e5b03[_0x2c6f('0xc9')][_0x53f3e4][_0x2c6f('0x65')])||{},_0x2e66a5=this['_makeModelFromViewString'](_0x3e5b03[_0x2c6f('0xc9')][_0x53f3e4][_0x2c6f('0x85')]);_0x2e66a5[_0x2c6f('0x21')]=_0x53f3e4,_0x2e66a5['_isAttached']=!_0x3ea9f6||_0x3ea9f6[_0x2c6f('0x67')],_0x2e66a5['isAttached']=()=>_0x2e66a5[_0x2c6f('0x2d')],this[_0x2c6f('0x33')][_0x2c6f('0xb3')](_0x53f3e4,_0x2e66a5),this[_0x2c6f('0xb2')][_0x2c6f('0xb3')](_0x53f3e4,_0x11f9cf);const _0x749c26=this[_0x2c6f('0x14')](_0x2e66a5,Number[_0x2c6f('0x61')]);this[_0x2c6f('0x95')][_0x2c6f('0xb3')](_0x53f3e4,_0x749c26),_0xa25e47[_0x2c6f('0xb3')](_0x53f3e4,_0x2e66a5['isAttached']()?_0x11f9cf:{});for(const [_0x3d5211,_0x5e3926]of _0x2e66a5[_0x2c6f('0xb')]){if(!_0x3d5211['startsWith'](_0x2c6f('0xa7')))continue;const _0x2a614=_0x3d5211[_0x2c6f('0x4a')](':')[0x2];for(const _0x32f5e6 of _0x5e3926[_0x2c6f('0x90')]({'singleCharacters':!0x0})){const _0x43ec68=this['_getVidAttributeName'](_0x32f5e6),_0x12ff7e=this[_0x2c6f('0xcb')]++,_0x4159d7=_0x2c6f('0x81')==_0x32f5e6[_0x2c6f('0x6b')]?_0x32f5e6[_0x2c6f('0x52')]['path']['slice'](0x0,-0x1):_0x32f5e6[_0x2c6f('0x52')][_0x2c6f('0x3d')];_0x749c26[_0x2c6f('0x4e')](_0x4159d7)[_0x2c6f('0xb9')](_0x43ec68,_0x12ff7e),this[_0x2c6f('0x71')][_0x2c6f('0xb3')](_0x12ff7e,{'userId':_0x2a614});}}for(const _0x8fe0b of this[_0x2c6f('0x97')][_0x2c6f('0x1a')]['createRangeIn'](_0x2e66a5)[_0x2c6f('0x90')]({'singleCharacters':!0x0})){const _0x523715=this[_0x2c6f('0x3b')](_0x8fe0b),_0x1fd034=_0x2c6f('0x81')==_0x8fe0b[_0x2c6f('0x6b')]?_0x8fe0b[_0x2c6f('0x52')][_0x2c6f('0x3d')][_0x2c6f('0x92')](0x0,-0x1):_0x8fe0b[_0x2c6f('0x52')][_0x2c6f('0x3d')],_0x405650=_0x749c26[_0x2c6f('0x4e')](_0x1fd034);_0x405650[_0x2c6f('0xae')](_0x523715)>0x0||_0x405650[_0x2c6f('0xb9')](_0x523715,_0x402e48[_0x4bdd10++]);}for(const [_0x390e02,_0xf17ef5]of _0x2e66a5[_0x2c6f('0xb')])_0x390e02[_0x2c6f('0xc1')](_0x2c6f('0xa7'))||this[_0x2c6f('0x31')][_0x2c6f('0xb3')](_0x390e02,_0xf17ef5);}const _0x39bf54=G('$graveyard');this[_0x2c6f('0x2a')][_0x2c6f('0xb3')](_0x2c6f('0xe2'),_0x39bf54),this[_0x2c6f('0x7b')][_0x2c6f('0xb3')]('$graveyard',this[_0x2c6f('0x14')](_0x39bf54,0x1));const _0x17df60=G('$graveyard');this[_0x2c6f('0x33')][_0x2c6f('0xb3')](_0x2c6f('0xe2'),_0x17df60),this[_0x2c6f('0x95')][_0x2c6f('0xb3')](_0x2c6f('0xe2'),this[_0x2c6f('0x14')](_0x17df60,0x1));const _0x48b9a5=Array[_0x2c6f('0xee')](this[_0x2c6f('0x33')])[_0x2c6f('0x37')](([_0x181eea,_0x31fc8c])=>[_0x181eea,q(_0x31fc8c)]);this[_0x2c6f('0xa6')](this[_0x2c6f('0xe9')],_0x48b9a5,this[_0x2c6f('0x31')],_0xa25e47);}[_0x2c6f('0xd4')](_0x4e0f0e){const _0x50fa9c=JSON[_0x2c6f('0x6f')](_0x4e0f0e),_0xf01ba1=this[_0x2c6f('0x97')][_0x2c6f('0x28')][_0x2c6f('0x12')][_0x2c6f('0x36')],_0x6dbbab=new _0x4ab740(_0xf01ba1,_0x50fa9c['map'](_0x198e27=>J(_0x198e27,this['editor'])));return this[_0x2c6f('0x97')]['data'][_0x2c6f('0x8e')](_0x6dbbab);}[_0x2c6f('0xa6')](_0x2c6103,_0x4f052f,_0x156f66,_0x52ccf2){const _0x4a4756=new Map(_0x4f052f),_0x1bb5c6=new Map(_0x165835(_0x52ccf2)),_0x5f3ac5=new Map();for(const [_0x3d239e,_0x126a3c]of _0x156f66)_0x5f3ac5[_0x2c6f('0xb3')](_0x3d239e,{'start':_0x126a3c[_0x2c6f('0x93')]['clone'](),'end':_0x126a3c[_0x2c6f('0x78')]['clone'](),'rootName':_0x126a3c[_0x2c6f('0xfe')][_0x2c6f('0x21')]});this[_0x2c6f('0x6c')][_0x2c6f('0xb3')](_0x2c6103,{'roots':_0x4a4756,'markers':_0x5f3ac5,'rootsAttributes':_0x1bb5c6});}[_0x2c6f('0x3f')](_0x2ed098){this[_0x2c6f('0x6c')][_0x2c6f('0x4')](_0x2ed098);}[_0x2c6f('0x55')](){this[_0x2c6f('0x82')](),this[_0x2c6f('0x88')]=-0x1,this['_lastTo']=-0x1,this[_0x2c6f('0x6c')][_0x2c6f('0x7f')](),this[_0x2c6f('0xc8')](this[_0x2c6f('0x96')]);}['_reset'](){this['_touched'][_0x2c6f('0x7f')](),this[_0x2c6f('0x1')][_0x2c6f('0x7f')](),this[_0x2c6f('0xb0')][_0x2c6f('0x7f')](),this[_0x2c6f('0x33')][_0x2c6f('0x7f')](),this['_diffRootsAttributes']['clear'](),this[_0x2c6f('0x2a')][_0x2c6f('0x7f')](),this['_baseRootsAttributes'][_0x2c6f('0x7f')](),this[_0x2c6f('0x95')]['clear'](),this[_0x2c6f('0x7b')][_0x2c6f('0x7f')](),this[_0x2c6f('0x31')][_0x2c6f('0x7f')](),this[_0x2c6f('0xcb')]=0x1,this['_startingRevisionId']=this[_0x2c6f('0xcb')];}[_0x2c6f('0x14')](_0x17f611,_0x1e99b7=null){let _0x5bdd73=null;_0x17f611['is']('documentFragment')||(_0x5bdd73=new _0x2bfd72(_0x17f611['name'],{'vid_start':null===_0x1e99b7?this['_revisionId']++:_0x1e99b7++}));const _0x5ce822=[];for(const _0x7278e9 of _0x17f611[_0x2c6f('0x101')]())if(_0x7278e9['is']('element')){_0x5ce822[_0x2c6f('0x42')](this[_0x2c6f('0x14')](_0x7278e9,_0x1e99b7));const _0x5b02a0=_0x5ce822[_0x5ce822['length']-0x1];null!==_0x1e99b7&&(_0x1e99b7=_0x5b02a0['is'](_0x2c6f('0x48'),_0x2c6f('0x43'))?_0x5b02a0[_0x2c6f('0xae')](_0x2c6f('0xec'))+0x1:_0x5b02a0[_0x2c6f('0xae')](_0x2c6f('0xf7'))+0x1);}else for(let _0x368c94=0x0;_0x368c94<_0x7278e9[_0x2c6f('0x103')];_0x368c94++)_0x5ce822[_0x2c6f('0x42')](new _0x2bfd72('$text',{'vid':null===_0x1e99b7?this[_0x2c6f('0xcb')]++:_0x1e99b7++}));if(_0x17f611['is'](_0x2c6f('0xdd'))){const _0x5d5abb=G(_0x17f611['rootName']);return _0x5d5abb['_insertChild'](0x0,_0x5ce822),_0x5d5abb;}return _0x5bdd73[_0x2c6f('0xb9')]('vid_end',null===_0x1e99b7?this[_0x2c6f('0xcb')]++:_0x1e99b7++),_0x5bdd73[_0x2c6f('0xfc')](0x0,_0x5ce822),_0x5bdd73;}['_calculateMetaData'](_0x4bf6c3,_0xaf9b13,_0x372e61){this['_reset']();const {roots:_0x37762a,markers:_0x3305b6,rootsAttributes:_0x243d35}=this[_0x2c6f('0x6c')][_0x2c6f('0x34')](_0x4bf6c3);this[_0x2c6f('0x2a')]=new Map(_0x37762a),this['_baseRootsAttributes']=new Map(_0x165835(_0x243d35));for(const [_0x56513d,_0x14cf44]of this[_0x2c6f('0x2a')])if('$graveyard'!==_0x56513d&&(this['_diffRoots']['set'](_0x56513d,q(_0x14cf44)),this[_0x2c6f('0xb2')]=new Map(_0x165835(_0x243d35)),_0x372e61)){const _0x2940fe=this[_0x2c6f('0xcb')];this['_idsRoots'][_0x2c6f('0xb3')](_0x56513d,this[_0x2c6f('0x14')](_0x14cf44)),this[_0x2c6f('0x7b')]['set'](_0x56513d,this['_makeIdsRoot'](_0x14cf44,_0x2940fe));}this[_0x2c6f('0x3')]=this[_0x2c6f('0xcb')],this['_diffRoots']['set'](_0x2c6f('0xe2'),q(this[_0x2c6f('0x2a')]['get']('$graveyard'))),_0x372e61&&this[_0x2c6f('0x95')][_0x2c6f('0xb3')]('$graveyard',this[_0x2c6f('0x14')](this['_baseRoots'][_0x2c6f('0x34')](_0x2c6f('0xe2'))));for(const [_0x3237bc,_0x413c94]of _0x3305b6){const _0x12a91e=this['_baseRoots'][_0x2c6f('0x34')](_0x413c94[_0x2c6f('0x21')]),_0x5b1a80=this[_0x2c6f('0x33')][_0x2c6f('0x34')](_0x413c94['rootName']),_0x1cbed3=new _0x20270a(this[_0x2c6f('0xf2')](_0x413c94['start'],_0x12a91e),this[_0x2c6f('0xf2')](_0x413c94[_0x2c6f('0x78')],_0x12a91e)),_0x9d23ca=this['_fixRange'](_0x1cbed3,_0x5b1a80);_0x12a91e['markers']['set'](_0x3237bc,_0x1cbed3),this['_markers'][_0x2c6f('0xb3')](_0x3237bc,_0x9d23ca);}this[_0x2c6f('0xce')](_0x4bf6c3,_0xaf9b13,_0x372e61);}[_0x2c6f('0xce')](_0x550d19,_0x126e33,_0x2a81f8){for(const _0x5b698a of this[_0x2c6f('0x96')][_0x2c6f('0xa4')](_0x550d19,_0x126e33))this[_0x2c6f('0xe5')](_0x5b698a,_0x2a81f8);for(const _0x36f3f0 of this[_0x2c6f('0x33')]['values']())_0x36f3f0['markers'][_0x2c6f('0x7f')]();for(const [_0x2aa728,_0x44d65f]of this[_0x2c6f('0x31')]){this[_0x2c6f('0x33')]['get'](_0x44d65f[_0x2c6f('0xfe')]['rootName'])[_0x2c6f('0xb')][_0x2c6f('0xb3')](_0x2aa728,_0x44d65f[_0x2c6f('0x6')]());}const _0x599a29=new Map(),_0x5a34a2=new Map();for(const [_0x1f9101,_0x5172b2]of this[_0x2c6f('0x33')])_0x599a29[_0x2c6f('0xb3')](_0x1f9101,q(_0x5172b2)),_0x5a34a2[_0x2c6f('0xb3')](_0x1f9101,this[_0x2c6f('0xb2')][_0x2c6f('0x34')](_0x1f9101));this[_0x2c6f('0xa6')](_0x126e33,_0x599a29,this['_markers'],_0x5a34a2);}['_getPreviousFrom'](_0x211aee){const _0x5aaf63=Array[_0x2c6f('0xee')](this['_savedMetaData'][_0x2c6f('0x87')]());_0x5aaf63[_0x2c6f('0xa3')]((_0x3005ac,_0x5e7955)=>_0x3005ac-_0x5e7955),_0x5aaf63[_0x2c6f('0xcf')]();for(const _0x584816 of _0x5aaf63)if(_0x584816<_0x211aee)return _0x584816;return Number[_0x2c6f('0x61')];}['_copyMarkers'](_0x4b431b,_0x5d0927){const _0x3014da=Array[_0x2c6f('0xee')](_0x5d0927[_0x2c6f('0xb')])[_0x2c6f('0x37')](([_0x3675f9,_0x15a087])=>[_0x3675f9,this[_0x2c6f('0x79')](_0x15a087,_0x4b431b)]);_0x4b431b[_0x2c6f('0xb')]=new Map(_0x3014da);}[_0x2c6f('0x9e')](_0x1b3d8b){for(const _0x4f1d89 of this['_markers'][_0x2c6f('0x69')]()){const _0x5ceb6a=_0x4f1d89[_0x2c6f('0xe')](_0x1b3d8b),_0xd6287d=_0x20270a[_0x2c6f('0xe8')](_0x5ceb6a);_0x4f1d89['start']=_0xd6287d[_0x2c6f('0x93')],_0x4f1d89['end']=_0xd6287d[_0x2c6f('0x78')];}}[_0x2c6f('0xe5')](_0x426d21,_0x419662){if(_0x2c6f('0x4f')==_0x426d21[_0x2c6f('0x6b')]||'detachRoot'==_0x426d21[_0x2c6f('0x6b')])return void this[_0x2c6f('0x35')](_0x426d21,_0x419662);if(_0x2c6f('0xfd')==_0x426d21[_0x2c6f('0x6b')]){const _0x3bc45c=_0x426d21[_0x2c6f('0xff')][_0x2c6f('0xfe')][_0x2c6f('0x21')];this[_0x2c6f('0x33')][_0x2c6f('0xe7')](_0x3bc45c)||(this['_diffRoots'][_0x2c6f('0xb3')](_0x3bc45c,G(_0x3bc45c,!0x0)),this[_0x2c6f('0xb2')][_0x2c6f('0xb3')](_0x3bc45c,{}),_0x419662&&this[_0x2c6f('0x95')][_0x2c6f('0xb3')](_0x3bc45c,G(_0x3bc45c,!0x0)));}else{if('addRootAttribute'==_0x426d21[_0x2c6f('0x6b')]||_0x2c6f('0xeb')==_0x426d21[_0x2c6f('0x6b')]||'changeRootAttribute'==_0x426d21[_0x2c6f('0x6b')])return void this['_handleRootAttributeOperation'](_0x426d21);}const _0x2573e0=this[_0x2c6f('0x102')](_0x426d21,this[_0x2c6f('0x33')]);if(_0x2c6f('0xb6')!==_0x426d21[_0x2c6f('0x6b')]&&(_0x2573e0[_0x2c6f('0x1c')](),this[_0x2c6f('0x9e')](_0x2573e0)),_0x419662)switch(_0x2573e0[_0x2c6f('0x6b')]){case _0x2c6f('0xfd'):this['_handleInsertOperation'](_0x426d21);break;case _0x2c6f('0x63'):case _0x2c6f('0xaa'):case'reinsert':this['_handleMoveOperation'](_0x426d21);break;case _0x2c6f('0x76'):this[_0x2c6f('0xd3')](_0x426d21);break;case _0x2c6f('0x4a'):this[_0x2c6f('0x50')](_0x426d21);break;case'marker':this[_0x2c6f('0x9b')](_0x426d21);}}[_0x2c6f('0x102')](_0x49ddf9,_0x35f676){const _0x25b19e=_0x49ddf9[_0x2c6f('0x6')]();return _0x25b19e['_authorId']=_0x49ddf9['_authorId'],this[_0x2c6f('0x2')](_0x25b19e,_0x35f676),_0x25b19e;}['_getBaseVids'](_0x258614){return _0x258614[_0x2c6f('0x37')](_0x58f04a=>{const _0x16cb2a=this['_getVidAttributeName'](_0x58f04a);return Number(_0x58f04a['item'][_0x2c6f('0xae')](_0x16cb2a));});}[_0x2c6f('0xbe')](_0x556e5b,_0x7c3565){if(_0x556e5b['is'](_0x2c6f('0x48'),'$text'))_0x7c3565[_0x2c6f('0x42')]({'item':_0x556e5b,'type':_0x2c6f('0x0')});else{_0x556e5b['is'](_0x2c6f('0x48'))&&_0x7c3565[_0x2c6f('0x42')]({'item':_0x556e5b,'type':_0x2c6f('0xfa')});for(const _0x778c8c of _0x556e5b[_0x2c6f('0x101')]())this[_0x2c6f('0xbe')](_0x778c8c,_0x7c3565);_0x556e5b['is'](_0x2c6f('0x48'))&&_0x7c3565['push']({'item':_0x556e5b,'type':'elementEnd'});}return _0x7c3565;}[_0x2c6f('0x9c')](){const _0x4f5a91=new Map(this[_0x2c6f('0x71')]),_0x2188ca=new Map(_0x4f5a91),_0xabdbb9=new Map(),_0x22e47d={'insertions':{},'deletions':{}},_0x302e79={'insertions':{},'deletions':{}},_0x897ec9=new Map(),_0x1d8eb0=new Set([...this[_0x2c6f('0x2a')][_0x2c6f('0x87')](),...this['_diffRoots']['keys']()]);_0x1d8eb0['delete']('$graveyard');for(const _0x5c4207 of _0x1d8eb0){const _0x51eda1=this[_0x2c6f('0x33')][_0x2c6f('0x34')](_0x5c4207)||G(_0x5c4207,!0x1),_0x260beb=this[_0x2c6f('0x2a')][_0x2c6f('0x34')](_0x5c4207)||G(_0x5c4207,!0x1);_0x51eda1[_0x2c6f('0x67')]()||_0x260beb[_0x2c6f('0x67')]()?(_0x22e47d[_0x2c6f('0x85')][_0x5c4207]=q(_0x51eda1),_0x22e47d[_0x2c6f('0x89')][_0x5c4207]=q(_0x260beb),this[_0x2c6f('0x45')](_0x22e47d[_0x2c6f('0x89')][_0x5c4207],_0x260beb),this['_copyMarkers'](_0x22e47d['insertions'][_0x5c4207],_0x51eda1),_0x302e79['insertions'][_0x5c4207]=this[_0x2c6f('0xbe')](this[_0x2c6f('0x95')][_0x2c6f('0x34')](_0x5c4207),[]),_0x302e79[_0x2c6f('0x89')][_0x5c4207]=this[_0x2c6f('0xbe')](this['_baseIdsRoots'][_0x2c6f('0x34')](_0x5c4207)||G(_0x5c4207,!0x1),[])):_0x1d8eb0['delete'](_0x5c4207);}for(const _0x466399 of _0x1d8eb0){const _0x5188fe=_0x302e79[_0x2c6f('0x85')][_0x466399];for(const _0x507941 of _0x5188fe){const _0x3b49ba=this[_0x2c6f('0x3b')](_0x507941),_0x3cd8fe=_0x507941[_0x2c6f('0x68')][_0x2c6f('0xae')](_0x3b49ba);_0x2188ca['delete'](_0x3cd8fe),_0x3cd8fe>=this['_startingRevisionId']&&_0xabdbb9['set'](_0x3cd8fe,_0x4f5a91[_0x2c6f('0x34')](_0x3cd8fe));}}for(const _0x4d44e8 of _0x1d8eb0){const _0x2df4a1=_0x302e79[_0x2c6f('0x85')][_0x4d44e8],_0x14e8f5=this[_0x2c6f('0x7c')](_0x302e79[_0x2c6f('0x89')][_0x4d44e8]);let _0x566fa8=0x0;for(const _0x59d1f5 of _0x2df4a1){const _0x18fe94=this['_getVidAttributeName'](_0x59d1f5),_0x3d5ce3=_0x59d1f5['item'][_0x2c6f('0xae')](_0x18fe94);if(!_0xabdbb9[_0x2c6f('0xe7')](_0x3d5ce3)&&!_0x897ec9[_0x2c6f('0xe7')](_0x3d5ce3)){if(_0x2188ca['has'](_0x3d5ce3))_0x566fa8++;else{if(_0x3d5ce3!=_0x14e8f5[_0x566fa8]){const _0x1f52ab=_0x4f5a91[_0x2c6f('0x34')](_0x3d5ce3)||_0x4f5a91['get'](_0x14e8f5[_0x566fa8]);for(;_0x3d5ce3!=_0x14e8f5[_0x566fa8];)_0x2188ca[_0x2c6f('0xe7')](_0x14e8f5[_0x566fa8])||(_0x897ec9['set'](_0x14e8f5[_0x566fa8],_0x1f52ab),_0x4f5a91[_0x2c6f('0xb3')](_0x14e8f5[_0x566fa8],_0x1f52ab)),_0x566fa8++;}_0x566fa8++;}}}}for(const _0x4e9af7 of _0x1d8eb0){const _0x532564=_0x302e79[_0x2c6f('0x85')][_0x4e9af7];for(const _0x433225 of _0x532564){const _0x37e7a5=this[_0x2c6f('0x3b')](_0x433225),_0x14e2ec=_0x433225[_0x2c6f('0x68')][_0x2c6f('0xae')](_0x37e7a5);if(_0x897ec9['has'](_0x14e2ec)){const _0x8b072=_0x897ec9[_0x2c6f('0x34')](_0x14e2ec);_0x2188ca[_0x2c6f('0xe7')](_0x14e2ec)||_0x2188ca[_0x2c6f('0xb3')](_0x14e2ec,{..._0x8b072}),_0xabdbb9[_0x2c6f('0xb3')](_0x14e2ec,{..._0x8b072});}}}for(const _0xc116bc of _0x2188ca[_0x2c6f('0x87')]())_0xc116bc>=this['_startingRevisionId']&&_0x2188ca[_0x2c6f('0x4')](_0xc116bc);const _0x4f4d07=new Map();for(const _0x172098 of _0x1d8eb0){let _0x3654cf=_0x302e79['insertions'][_0x172098];for(const _0x8863cf of _0x3654cf)if(_0x8863cf['item']['is'](_0x2c6f('0x48'),_0x2c6f('0x6e'))){const _0x1d7881=this[_0x2c6f('0x3b')](_0x8863cf),_0x22254c=_0x8863cf[_0x2c6f('0x68')][_0x2c6f('0xae')](_0x1d7881);if(_0xabdbb9[_0x2c6f('0xe7')](_0x22254c)){const _0x3fc460=_0x8863cf[_0x2c6f('0x68')]['parent'][_0x2c6f('0xc6')][_0x2c6f('0xae')](_0x2c6f('0x5f')),_0x2a3599=_0x4f4d07[_0x2c6f('0x34')](_0x3fc460)||new Set();_0x2a3599[_0x2c6f('0xd2')](_0xabdbb9[_0x2c6f('0x34')](_0x22254c)[_0x2c6f('0xcd')]),_0x4f4d07[_0x2c6f('0xb3')](_0x3fc460,_0x2a3599);}}_0x3654cf=_0x302e79['deletions'][_0x172098];for(const _0x251c92 of _0x3654cf)if(_0x251c92[_0x2c6f('0x68')]['is'](_0x2c6f('0x48'),_0x2c6f('0x6e'))){const _0x207409=this['_getVidAttributeName'](_0x251c92),_0x144f6c=_0x251c92[_0x2c6f('0x68')][_0x2c6f('0xae')](_0x207409);if(_0x2188ca[_0x2c6f('0xe7')](_0x144f6c)){const _0x2ac17f=_0x251c92[_0x2c6f('0x68')][_0x2c6f('0xc6')][_0x2c6f('0xc6')]['getAttribute']('vid_start'),_0x34c1b8=_0x4f4d07[_0x2c6f('0x34')](_0x2ac17f)||new Set();_0x34c1b8['add'](_0x2188ca[_0x2c6f('0x34')](_0x144f6c)[_0x2c6f('0xcd')]),_0x4f4d07[_0x2c6f('0xb3')](_0x2ac17f,_0x34c1b8);}}for(const _0x44941a of _0x4f4d07[_0x2c6f('0x87')]())(_0xabdbb9[_0x2c6f('0xe7')](_0x44941a)||_0x2188ca['has'](_0x44941a))&&_0x4f4d07[_0x2c6f('0x4')](_0x44941a);}for(const _0x20c2e6 of _0x1d8eb0){const _0x12d375=_0x302e79['insertions'][_0x20c2e6];let _0x5be0c6=null,_0x47c4f1=null;for(const _0x1db0ed of _0x12d375){const _0x3347c6=this[_0x2c6f('0x3b')](_0x1db0ed),_0x2e06b1=_0x1db0ed[_0x2c6f('0x68')][_0x2c6f('0xae')](_0x3347c6),_0xa64ee8=_0x4f4d07[_0x2c6f('0x34')](_0x2e06b1);_0xa64ee8&&_0x2c6f('0xfa')==_0x1db0ed[_0x2c6f('0x6b')]&&(_0x5be0c6=Array[_0x2c6f('0xee')](_0xa64ee8)[0x0],_0x47c4f1=_0x1db0ed[_0x2c6f('0x68')][_0x2c6f('0xae')](_0x2c6f('0xf7'))),_0x5be0c6&&(_0x2188ca['set'](_0x2e06b1,{'userId':_0x5be0c6}),_0xabdbb9[_0x2c6f('0xb3')](_0x2e06b1,{'userId':_0x5be0c6})),_0x2e06b1==_0x47c4f1&&(_0x5be0c6=null,_0x47c4f1=null);}}const _0x1fae6d={},_0x4cb5ec=new Set();for(const _0x5a80cb of _0x1d8eb0){const _0x498405=_0x22e47d[_0x2c6f('0x89')][_0x5a80cb],_0x4ed96e=_0x22e47d[_0x2c6f('0x85')][_0x5a80cb];for(const {userId:_0x24fa48}of this[_0x2c6f('0x1')][_0x2c6f('0x69')]())null!==_0x24fa48&&_0x4cb5ec[_0x2c6f('0xd2')](_0x24fa48);for(const {userId:_0x18213b}of this[_0x2c6f('0xb0')][_0x2c6f('0x69')]())null!==_0x18213b&&_0x4cb5ec['add'](_0x18213b);this[_0x2c6f('0xf8')](_0x4ed96e,_0x302e79[_0x2c6f('0x85')][_0x5a80cb],_0xabdbb9,_0x2c6f('0xde'),_0x4cb5ec),this[_0x2c6f('0xf8')](_0x498405,_0x302e79[_0x2c6f('0x89')][_0x5a80cb],_0x2188ca,_0x2c6f('0x7a'),_0x4cb5ec),_0x1fae6d[_0x5a80cb]={'insertions':this[_0x2c6f('0x39')](_0x4ed96e),'deletions':this[_0x2c6f('0x39')](_0x498405),'attachChange':this[_0x2c6f('0xb0')][_0x2c6f('0x34')](_0x5a80cb)||null,'attributesBefore':_0x165835(this['_baseRootsAttributes'][_0x2c6f('0x34')](_0x5a80cb))||{},'attributesAfter':_0x165835(this[_0x2c6f('0xb2')]['get'](_0x5a80cb))};}return{'diffData':_0x1fae6d,'authorsIds':Array['from'](_0x4cb5ec)};}['_processRootBeforeSave'](_0x3428a4){for(const [,_0x3a8701]of _0x3428a4[_0x2c6f('0xb')]){const _0x46ec8b=_0x3a8701[_0x2c6f('0x93')][_0x2c6f('0xed')]()[_0x2c6f('0x77')](_0x5ab56e=>_0x2c6f('0x6e')==_0x5ab56e[_0x2c6f('0x6d')]);for(const _0x37e8d5 of _0x46ec8b)0x1==_0x37e8d5[_0x2c6f('0xe4')]&&_0x37e8d5[_0x2c6f('0x106')](0x0)['is']('element',_0x2c6f('0xcc'))&&_0x37e8d5[_0x2c6f('0x106')](0x0)[_0x2c6f('0xb9')](_0x2c6f('0xfb'),!0x0);}}['_prepareViewToSave'](_0x35e761){this[_0x2c6f('0xc7')](_0x35e761);const _0x16f09f=this[_0x2c6f('0x97')][_0x2c6f('0x83')]['toView'](_0x35e761,{}),_0x318e3f=Array[_0x2c6f('0xee')](_0x16f09f[_0x2c6f('0x101')]())[_0x2c6f('0x37')](_0x204f35=>this['_getViewJson'](_0x204f35));return JSON[_0x2c6f('0x5b')](_0x318e3f);}[_0x2c6f('0x8')](_0x333da0){if(_0x333da0['is'](_0x2c6f('0x43')))return _0x333da0['data'];{const _0x1fc7a9=_0x333da0;return{'type':Object['keys'](B)[_0x2c6f('0x10')](_0x1ecc85=>_0x333da0 instanceof B[_0x1ecc85]),'name':_0x1fc7a9['name'],'attributes':Array[_0x2c6f('0xee')](_0x1fc7a9['getAttributes']()),'children':Array['from'](_0x1fc7a9[_0x2c6f('0x101')]())[_0x2c6f('0x37')](_0x3b3946=>this[_0x2c6f('0x8')](_0x3b3946))};}}['_markChanges'](_0x54d606,_0x426126,_0x4fafbe,_0x4c6fa4,_0x1abde9){let _0x5a7b2b=null,_0x18193a=null,_0x1ae484=0x0;const _0x46c855=this[_0x2c6f('0x97')][_0x2c6f('0x1a')];for(let _0x3bf376=0x0;_0x3bf376<_0x426126[_0x2c6f('0xda')];_0x3bf376++){const _0x40d22a=this[_0x2c6f('0x3b')](_0x426126[_0x3bf376]),_0x859e78=_0x426126[_0x3bf376][_0x2c6f('0x68')][_0x2c6f('0xae')](_0x40d22a),_0xfd0ac6=_0x4fafbe[_0x2c6f('0x34')](_0x859e78),_0x59d275=_0x3bf376==_0x426126['length']-0x1;(!_0x5a7b2b&&_0xfd0ac6&&(_0x5a7b2b=_0xfd0ac6,_0x18193a=_0x426126[_0x3bf376]),_0x5a7b2b&&(!_0xfd0ac6||_0xfd0ac6[_0x2c6f('0xcd')]!=_0x5a7b2b[_0x2c6f('0xcd')]))&&(_0x5dd1d4(_0xfd0ac6,L(_0x18193a,_0x54d606,_0x46c855),L(_0x426126[_0x3bf376],_0x54d606,_0x46c855)),_0x5a7b2b=_0xfd0ac6||null,_0x18193a=_0xfd0ac6?_0x426126[_0x3bf376]:null),_0x5a7b2b&&_0x59d275&&_0x5dd1d4(_0xfd0ac6,L(_0x18193a,_0x54d606,_0x46c855),W(_0x426126[_0x3bf376],_0x54d606,_0x46c855));}function _0x5dd1d4(_0xbb6cdb,_0x5b7393,_0xb61c5){const _0x3ffb30=_0x5a7b2b['userId'],_0x1db64c='revision:'+_0x4c6fa4+':'+_0x3ffb30+':'+_0x1ae484++,_0x296e1a=_0x46c855[_0x2c6f('0x8a')](_0x5b7393,_0xb61c5);_0x54d606[_0x2c6f('0xb')]['set'](_0x1db64c,_0x296e1a),null!==_0x3ffb30&&_0x1abde9['add'](_0x3ffb30);}}[_0x2c6f('0x3b')](_0x413960){switch(_0x413960[_0x2c6f('0x6b')]){case _0x2c6f('0xfa'):return _0x2c6f('0x5f');case _0x2c6f('0x81'):return _0x2c6f('0xf7');default:return'vid';}}[_0x2c6f('0x2')](_0x1dc0af,_0x348db3){_0x1dc0af[_0x2c6f('0x9a')]=null;for(const _0x292573 in _0x1dc0af){const _0x4c0439=_0x1dc0af[_0x292573];if(_0x4c0439 instanceof _0x4f2d96){const _0x19ba37=_0x348db3['get'](_0x4c0439[_0x2c6f('0xfe')]['rootName']);_0x1dc0af[_0x292573]=this['_fixPosition'](_0x4c0439,_0x19ba37);}if(_0x4c0439 instanceof _0x20270a){const _0x5c23ce=_0x348db3[_0x2c6f('0x34')](_0x4c0439[_0x2c6f('0xfe')][_0x2c6f('0x21')]);_0x1dc0af[_0x292573]=this[_0x2c6f('0x79')](_0x4c0439,_0x5c23ce);}_0x2c6f('0xfe')===_0x292573&&(_0x1dc0af[_0x2c6f('0xfe')]=_0x348db3[_0x2c6f('0x34')](_0x1dc0af[_0x2c6f('0xfe')][_0x2c6f('0x21')]));}}[_0x2c6f('0x79')](_0x330a7f,_0x46013e){return this[_0x2c6f('0x97')][_0x2c6f('0x1a')][_0x2c6f('0x8a')](this[_0x2c6f('0xf2')](_0x330a7f[_0x2c6f('0x93')],_0x46013e),this[_0x2c6f('0xf2')](_0x330a7f[_0x2c6f('0x78')],_0x46013e));}[_0x2c6f('0xf2')](_0x17cff9,_0x34a530){return this[_0x2c6f('0x97')]['model'][_0x2c6f('0x70')](_0x34a530,_0x17cff9[_0x2c6f('0x3d')],_0x17cff9[_0x2c6f('0x84')]);}['_handleInsertOperation'](_0x377205){const _0x588a0b=this['_idsRoots']['get'](_0x377205[_0x2c6f('0xff')][_0x2c6f('0xfe')]['rootName']),_0x13bee1=this[_0x2c6f('0xf2')](_0x377205[_0x2c6f('0xff')],_0x588a0b),_0x1f91f1=null===_0x377205['_authorId']?null:_0x377205[_0x2c6f('0x30')]||this[_0x2c6f('0x97')]['plugins'][_0x2c6f('0x34')](_0x2c6f('0x17'))['me']['id'],_0x5c34bd=_0x13bee1[_0x2c6f('0xc6')],_0x2858c7=this[_0x2c6f('0xcb')],_0x20a298=[];for(const _0x56e7be of _0x377205['nodes'])if(_0x56e7be['is'](_0x2c6f('0x48')))_0x20a298['push'](this[_0x2c6f('0x14')](_0x56e7be));else for(let _0x1eeb0c=0x0;_0x1eeb0c<_0x56e7be[_0x2c6f('0x103')];_0x1eeb0c++)_0x20a298[_0x2c6f('0x42')](new _0x2bfd72(_0x2c6f('0x43'),{'vid':this[_0x2c6f('0xcb')]++}));const _0x25e3c3=this['_revisionId'];for(let _0x2b1c38=_0x2858c7;_0x2b1c38<_0x25e3c3;_0x2b1c38++)this[_0x2c6f('0x71')][_0x2c6f('0xb3')](_0x2b1c38,{'userId':_0x1f91f1});_0x5c34bd[_0x2c6f('0xfc')](_0x13bee1[_0x2c6f('0x24')],_0x20a298);}['_handleMoveOperation'](_0x163300){(_0x163300=this['_cloneOperation'](_0x163300,this[_0x2c6f('0x95')]))['_execute']();const _0x4ac3a7=null===_0x163300['_authorId']?null:_0x163300[_0x2c6f('0x30')]||this[_0x2c6f('0x97')]['plugins'][_0x2c6f('0x34')](_0x2c6f('0x17'))['me']['id'],_0x263afd=_0x163300[_0x2c6f('0x91')](),_0xd42d9c=_0x263afd[_0x2c6f('0xc6')],_0x423240=_0x263afd['offset'];!function _0x5c555f(_0x48358f,_0x5789a4,_0x4e0fb0,_0x37ac0e){for(let _0x36422d=_0x4e0fb0;_0x36422d<_0x37ac0e;_0x36422d++){const _0x531570=_0x5789a4[_0x2c6f('0x106')](_0x36422d);_0x531570['is']('element',_0x2c6f('0x43'))?_0x48358f[_0x2c6f('0xb3')](_0x531570[_0x2c6f('0xae')](_0x2c6f('0xec')),{'userId':_0x4ac3a7}):(_0x48358f[_0x2c6f('0xb3')](_0x531570[_0x2c6f('0xae')](_0x2c6f('0x5f')),{'userId':_0x4ac3a7}),_0x5c555f(_0x48358f,_0x531570,0x0,_0x531570[_0x2c6f('0xe4')]),_0x48358f[_0x2c6f('0xb3')](_0x531570[_0x2c6f('0xae')](_0x2c6f('0xf7')),{'userId':_0x4ac3a7}));}}(this[_0x2c6f('0x71')],_0xd42d9c,_0x423240,_0x423240+_0x163300[_0x2c6f('0x72')]);}[_0x2c6f('0xd3')](_0x4b8a5a){const _0x177353=null===(_0x4b8a5a=this[_0x2c6f('0x102')](_0x4b8a5a,this['_idsRoots']))[_0x2c6f('0x30')]?null:_0x4b8a5a[_0x2c6f('0x30')]||this[_0x2c6f('0x97')][_0x2c6f('0x56')][_0x2c6f('0x34')]('Users')['me']['id'],_0x88893d=_0x4b8a5a[_0x2c6f('0x47')][_0x2c6f('0xc6')],_0x3c0711=_0x4b8a5a['sourcePosition'][_0x2c6f('0xc6')],_0x455ee9=_0x88893d[_0x2c6f('0xae')]('vid_end'),_0x943870=_0x3c0711[_0x2c6f('0xae')]('vid_start');_0x88893d[_0x2c6f('0xb9')](_0x2c6f('0xf7'),_0x3c0711['getAttribute'](_0x2c6f('0xf7'))),_0x3c0711['_setAttribute'](_0x2c6f('0xf7'),_0x455ee9),this[_0x2c6f('0x71')][_0x2c6f('0xb3')](_0x943870,{'userId':_0x177353}),this['_touched']['set'](_0x455ee9,{'userId':_0x177353}),_0x4b8a5a[_0x2c6f('0x1c')]();}[_0x2c6f('0x50')](_0x1f3645){const _0x11277b=null===(_0x1f3645=this[_0x2c6f('0x102')](_0x1f3645,this[_0x2c6f('0x95')]))['_authorId']?null:_0x1f3645[_0x2c6f('0x30')]||this[_0x2c6f('0x97')][_0x2c6f('0x56')]['get'](_0x2c6f('0x17'))['me']['id'],_0x547602=_0x1f3645[_0x2c6f('0x8c')],_0x4e3f43=_0x1f3645[_0x2c6f('0xe1')][_0x2c6f('0xc6')];_0x1f3645['_execute']();const _0x532833=_0x4e3f43['getAttribute'](_0x2c6f('0xf7')),_0x247f5d=_0x1f3645[_0x2c6f('0x54')][_0x2c6f('0xad')];if(_0x547602){const _0x1ffd4b=_0x247f5d[_0x2c6f('0xae')](_0x2c6f('0xf7')),_0x10de10=_0x4e3f43[_0x2c6f('0xae')](_0x2c6f('0xf7'));_0x4e3f43[_0x2c6f('0xb9')](_0x2c6f('0xf7'),_0x1ffd4b),_0x247f5d[_0x2c6f('0xb9')]('vid_end',_0x10de10),this[_0x2c6f('0x71')][_0x2c6f('0xb3')](_0x4e3f43['getAttribute'](_0x2c6f('0xf7')),{'userId':_0x11277b}),this['_touched'][_0x2c6f('0xb3')](_0x247f5d[_0x2c6f('0xae')](_0x2c6f('0x5f')),{'userId':_0x11277b});}else{const _0x4719a1=this[_0x2c6f('0xcb')]++,_0x325cc3=this[_0x2c6f('0xcb')]++;_0x4e3f43[_0x2c6f('0xb9')](_0x2c6f('0xf7'),_0x4719a1),_0x247f5d[_0x2c6f('0xb9')](_0x2c6f('0x5f'),_0x325cc3),_0x247f5d[_0x2c6f('0xb9')](_0x2c6f('0xf7'),_0x532833),this[_0x2c6f('0x71')][_0x2c6f('0xb3')](_0x4719a1,{'userId':_0x11277b}),this[_0x2c6f('0x71')][_0x2c6f('0xb3')](_0x325cc3,{'userId':_0x11277b});}}[_0x2c6f('0x9b')](_0x2ab684){if(!_0x2ab684[_0x2c6f('0x44')])return;const _0x2e6a00=(_0x2ab684=this[_0x2c6f('0x102')](_0x2ab684,this[_0x2c6f('0x33')]))['oldRange']?_0x2ab684[_0x2c6f('0x22')][_0x2c6f('0xfe')]:null,_0xb7e13=_0x2ab684['newRange']?_0x2ab684[_0x2c6f('0x57')][_0x2c6f('0xfe')]:null;_0x2e6a00&&this[_0x2c6f('0x31')][_0x2c6f('0x4')](_0x2ab684['name']),_0xb7e13&&this[_0x2c6f('0x31')][_0x2c6f('0xb3')](_0x2ab684[_0x2c6f('0x6d')],_0x2ab684[_0x2c6f('0x57')][_0x2c6f('0x6')]());const _0x575c3e=null===_0x2ab684['_authorId']?null:_0x2ab684[_0x2c6f('0x30')]||this['editor'][_0x2c6f('0x56')][_0x2c6f('0x34')](_0x2c6f('0x17'))['me']['id'],_0x4e023e=_0x2ab684[_0x2c6f('0x6d')];if(!this[_0x2c6f('0x1')]['has'](_0x4e023e))return void this[_0x2c6f('0x1')]['set'](_0x4e023e,{'range':_0x2ab684['oldRange'],'userId':_0x575c3e});const _0x5128e5=this[_0x2c6f('0x1')][_0x2c6f('0x34')](_0x4e023e),_0x26a029=_0x5128e5[_0x2c6f('0x46')],_0x27a492=_0x2ab684[_0x2c6f('0x57')];null==_0x26a029&&null==_0x27a492||_0x26a029&&_0x27a492&&_0x26a029[_0x2c6f('0x2b')](_0x27a492)?this[_0x2c6f('0x1')][_0x2c6f('0x4')](_0x2ab684[_0x2c6f('0x6d')]):_0x5128e5['userId']=_0x575c3e;}[_0x2c6f('0x35')](_0x5f50f0,_0x3eafe5){this['_diffRoots'][_0x2c6f('0xe7')](_0x5f50f0['rootName'])?this[_0x2c6f('0x33')]['get'](_0x5f50f0[_0x2c6f('0x21')])[_0x2c6f('0x2d')]=_0x5f50f0[_0x2c6f('0xba')]:(this['_diffRoots'][_0x2c6f('0xb3')](_0x5f50f0[_0x2c6f('0x21')],G(_0x5f50f0[_0x2c6f('0x21')],!0x0)),this[_0x2c6f('0xb2')][_0x2c6f('0xb3')](_0x5f50f0[_0x2c6f('0x21')],{}),_0x3eafe5&&this['_idsRoots']['set'](_0x5f50f0[_0x2c6f('0x21')],G(_0x5f50f0['rootName'],!0x0)));const _0x393af9=null===_0x5f50f0[_0x2c6f('0x30')]?null:_0x5f50f0[_0x2c6f('0x30')]||this[_0x2c6f('0x97')][_0x2c6f('0x56')]['get']('Users')['me']['id'],_0x1db418=this[_0x2c6f('0xb0')][_0x2c6f('0x34')](_0x5f50f0['rootName']);_0x1db418&&_0x1db418[_0x2c6f('0xcd')]===_0x393af9?this['_touchedRoots'][_0x2c6f('0x4')](_0x5f50f0[_0x2c6f('0x21')]):this[_0x2c6f('0xb0')][_0x2c6f('0xb3')](_0x5f50f0[_0x2c6f('0x21')],{'userId':_0x393af9,'isAttached':_0x5f50f0[_0x2c6f('0xba')]});}[_0x2c6f('0x66')](_0x372a9e){const _0x2d8a60=this[_0x2c6f('0xb2')]['get'](_0x372a9e[_0x2c6f('0xfe')][_0x2c6f('0x21')]);null===_0x372a9e[_0x2c6f('0x58')]?delete _0x2d8a60[_0x372a9e[_0x2c6f('0x6a')]]:_0x2d8a60[_0x372a9e['key']]=_0x372a9e[_0x2c6f('0x58')];}}function q(_0x17fb24){const _0x50aa84=G(_0x17fb24['rootName'],_0x17fb24[_0x2c6f('0x67')]());for(const _0x509fdb of _0x17fb24[_0x2c6f('0x101')]()){const _0xfe55e6=_0x509fdb[_0x2c6f('0x7d')](!0x0);_0x50aa84[_0x2c6f('0x1d')](_0xfe55e6);}return _0x50aa84;}function G(_0x2747db,_0xb803b2=!0x0){const _0x1fc4af=new _0x381441();return _0x1fc4af[_0x2c6f('0x21')]=_0x2747db,_0x1fc4af[_0x2c6f('0x2d')]=_0xb803b2,_0x1fc4af[_0x2c6f('0x67')]=()=>_0x1fc4af[_0x2c6f('0x2d')],_0x1fc4af;}function L(_0x1b865f,_0x59306e,_0x3d67c2){const _0x23279d=_0x2c6f('0x81')==_0x1b865f[_0x2c6f('0x6b')]?_0x3d67c2['createPositionAt'](_0x1b865f[_0x2c6f('0x68')],_0x2c6f('0x78')):_0x3d67c2[_0x2c6f('0xf9')](_0x1b865f['item']);return _0x3d67c2[_0x2c6f('0x70')](_0x59306e,_0x23279d[_0x2c6f('0x3d')],_0x23279d[_0x2c6f('0x84')]);}function W(_0x268276,_0x5c510d,_0x3736d3){const _0x34c8c4=_0x2c6f('0xfa')==_0x268276[_0x2c6f('0x6b')]?_0x3736d3['createPositionAt'](_0x268276[_0x2c6f('0x68')],0x0):_0x3736d3[_0x2c6f('0xf1')](_0x268276[_0x2c6f('0x68')]);return _0x3736d3['createPositionFromPath'](_0x5c510d,_0x34c8c4[_0x2c6f('0x3d')],_0x34c8c4[_0x2c6f('0x84')]);}