@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231128.0 → 0.0.0-nightly-20231129.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 _0x41d1=['_insertChild','length','processor','locale','currentRevision','RealTimeCollaborationClient','newValue','clone','_baseIdsRoots','getRootNames','item','root','_continueCurrentRevision','setSource','range','vid_start','fromVersion','addRevisionData','revision-start','document','changeRootAttribute','push','getRevisions','marker','_makeModelFromViewString','editing','getIndex','_operations','getCurrentRevisionId','_generateTape','reInit','_bufferUpdate','getTime','rootName','_revisionDataBuilder','define','_baseRootsAttributes','parse','$graveyard','_saveMetaData','version','_fixRange','max','editor','_execute','setRevisionData','Initial\x20revision','path','conversion','get','_copyMarkers','children','_handleMarkerOperation','remove','_createFromRanges','_loadedStateData','documentFragment','some','paragraph','_setAttribute','_handleOperation','getChild','split','_getBaseVids','saveRevision','afterInit','_pendingAction','stringify','initial','name','insert','_startingVersion','init','attributes','text','Users','oldRange','delete','toVersion','upcast','addRevision','getTransformedByOperation','_update','elementStart','$text','_handleMoveOperation','position','dataDowncast','getRevision','has','_removeRevisionMarkers','_processRootBeforeSave','previousPosition','filter','source','sort','nodes','_markers','reverse','data-revision-','buildRevisionData','createdAt','keys','userId','PENDING_ACTION_REVISION_HISTORY','_touchedRoots','_applyOperations','offsetSize','_createCurrentRevision','revision:','createPositionAt','deletion','getWalker','getMovedRangeStart','authorsIds','_handleMergeOperation','attributesAfter','_isInit','toView','attachChange','model','createPositionAfter','isAdd','_clone','_removePendingAction','repository','_isPendingUpdate','keepParagraph','isAttached','addRootAttribute','_reset','revision','_bufferedUpdates','slice','find','sourcePosition','add','_getViewJson','_loadState','deletions','tableCell','_idsRoots','revisionHistory.resumeUnsavedRevision','Empty\x20document','_lastFrom','collaboration.channelId','_markChanges','bind','element','getUser','getData','_savedMetaData','_makeRevision','roots','offset','end','detachRoot','hasContent','affectsData','parent','_isAttached','getOperations','getRange','_getFromVersion','_getVidAttributeName','shift','_replaceEditorDataWithRevisionData','_fixOperation','clear','_removeMetaData','_prepareViewToSave','fromEntries','default','_revisionId','values','isEnabled','config','_source','baseVersion','_getState','toModel','vid','markers','stickiness','_diffRootsAttributes','_fixPosition','history','revision-end','_diffRoots','_baseRoots','for','data','string','reinsert','insertionPosition','_createInitialRevision','_setConversion','_authorId','_touched','_lastTo','newRange','NEGATIVE_INFINITY','attributesBefore','adapter','_cloneOperation','_handleInsertOperation','toData','elementEnd','createRevision','isEqual','RevisionsRepository','_initialRevisionId','useFillerType','_addPendingAction','view','getOperation','sendBufferedUpdates','dataToMarker','getAttributes','then','creator','startsWith','_calculateMetaData','start','getLatestVersion','type','_transformMarkers','creatorId','createPositionFromPath','graveyardPosition','insertions','from','map','diffData','PendingActions','_startingRevisionId','initialData','getNodeByPath','_makeIdsRoot','ready','resolve','_handleSplitOperation','_findInsertionIndex','key','vid_end','authors','getRoot','childCount','update','requires','_appendChild','targetPosition','_loadRevisionData','getAttribute','_getPreviousFrom','set','isReady','_touchedMarkers','size','rootsAttributes','getChildren','_handleRootAttributeOperation','getRevisionRootsAttributes','plugins'];(function(_0x25ad2a,_0x41d14d){const _0x1cb5ef=function(_0x4ce3b8){while(--_0x4ce3b8){_0x25ad2a['push'](_0x25ad2a['shift']());}};_0x1cb5ef(++_0x41d14d);}(_0x41d1,0x102));const _0x1cb5=function(_0x25ad2a,_0x41d14d){_0x25ad2a=_0x25ad2a-0x0;let _0x1cb5ef=_0x41d1[_0x25ad2a];return _0x1cb5ef;};import{Users as _0x50d32c}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x20083d,PendingActions as _0x6b7474}from'ckeditor5/src/core';import{logWarning as _0x4af4db,uid as _0x28c1c7}from'ckeditor5/src/utils';import{Position as _0x157d24,Range as _0x496dde,Element as _0x1455eb,DocumentFragment as _0x339015,ViewText as _0x169a72,ViewElement as _0x41120e,ViewContainerElement as _0x1c7a76,ViewAttributeElement as _0x1b9fc1,ViewEmptyElement as _0x309378,ViewRawElement as _0x16d8a6,ViewUIElement as _0x444474,ViewDocumentFragment as _0x264f04}from'ckeditor5/src/engine';import _0x8647ac from'./revisionsrepository';import{getTranslation as _0x2abbaf}from'./utils/common-translations';import{cloneDeep as _0x52e955,isEqual as _0x57f184}from'lodash-es';const B={'c':_0x1c7a76,'a':_0x1b9fc1,'e':_0x309378,'r':_0x16d8a6,'u':_0x444474};export default class l extends _0x20083d{static get['pluginName'](){return'RevisionTracker';}static get[_0x1cb5('0xff')](){return[_0x50d32c,_0x8647ac,_0x6b7474];}constructor(_0x7ad733){super(_0x7ad733),this[_0x1cb5('0xd1')]=null,this['currentRevision']=null,this[_0x1cb5('0x28')]=new H(this[_0x1cb5('0x31')]),this[_0x1cb5('0xd9')]=this[_0x1cb5('0x31')][_0x1cb5('0xb6')][_0x1cb5('0x37')](_0x1cb5('0x97'))||_0x1cb5('0x4a'),this[_0x1cb5('0x8a')]=new Map(),this['_loadedStateData']=null;const _0x382b49=_0x28c1c7();this[_0x1cb5('0xb7')]={'history':this['editor'][_0x1cb5('0x7e')][_0x1cb5('0x19')]['history'],'getLatestVersion':()=>Promise[_0x1cb5('0xf6')](this[_0x1cb5('0x31')][_0x1cb5('0x7e')]['document'][_0x1cb5('0x2e')]),'getCurrentRevisionId':()=>_0x382b49},this['set'](_0x1cb5('0x106'),!0x1),this['set'](_0x1cb5('0xb5'),!0x0),this[_0x1cb5('0x105')](_0x1cb5('0x84'),!0x1),this[_0x1cb5('0x31')][_0x1cb5('0xb6')][_0x1cb5('0x29')](_0x1cb5('0x94'),!0x0),this['editor'][_0x1cb5('0x36')][_0x1cb5('0xc4')](_0x1cb5('0x55'))[_0x1cb5('0xdf')]({'view':_0x1cb5('0x89')});}[_0x1cb5('0x4e')](){this['repository']=this['editor']['plugins'][_0x1cb5('0x37')](_0x1cb5('0xd8')),this[_0x1cb5('0xca')](),this[_0x1cb5('0x31')][_0x1cb5('0xc5')]['on'](_0x1cb5('0xf5'),()=>{const _0x17af2d=this[_0x1cb5('0x83')][_0x1cb5('0x5e')](0x0),_0x3457e1=_0x17af2d&&null===_0x17af2d[_0x1cb5('0xe2')]?_0x17af2d:null;if(this['_continueCurrentRevision']=!!_0x3457e1&&this[_0x1cb5('0x31')][_0x1cb5('0xb6')][_0x1cb5('0x37')](_0x1cb5('0x94')),this[_0x1cb5('0x31')][_0x1cb5('0x5')][_0x1cb5('0x5f')](_0x1cb5('0xb'))){const _0x396bfd=this[_0x1cb5('0xb7')][_0x1cb5('0x22')](),_0x523c4e=this[_0x1cb5('0x83')][_0x1cb5('0x5e')](_0x396bfd);if(_0x523c4e)this[_0x1cb5('0x4d')]=_0x523c4e[_0x1cb5('0x16')],this[_0x1cb5('0x12')]=!0x1;else{const _0x36d01e=this[_0x1cb5('0xb7')][_0x1cb5('0xc0')][_0x1cb5('0x21')]['find'](_0x16b298=>!_0x16b298[_0x1cb5('0x7b')]),_0x50d3b1=_0x36d01e?_0x36d01e['baseVersion']:this[_0x1cb5('0xb7')]['history']['version'];_0x17af2d?(_0x17af2d[_0x1cb5('0x54')]<_0x50d3b1&&_0x17af2d[_0x1cb5('0x58')]({'toVersion':_0x50d3b1}),this[_0x1cb5('0x12')]?(this[_0x1cb5('0xb7')][_0x1cb5('0x22')]=()=>_0x3457e1['id'],this[_0x1cb5('0x4d')]=_0x3457e1[_0x1cb5('0x16')]):(this[_0x1cb5('0x4d')]=_0x17af2d[_0x1cb5('0x54')],this[_0x1cb5('0x12')]=!0x1)):(this[_0x1cb5('0x4d')]=_0x50d3b1,this[_0x1cb5('0x12')]=!0x1);}}else _0x3457e1&&(this[_0x1cb5('0x31')]['model'][_0x1cb5('0x19')][_0x1cb5('0xc0')][_0x1cb5('0x2e')]=Math[_0x1cb5('0x30')](_0x3457e1[_0x1cb5('0x54')],this['editor']['model'][_0x1cb5('0x19')][_0x1cb5('0xc0')][_0x1cb5('0x2e')]),_0x3457e1[_0x1cb5('0x16')]===_0x3457e1[_0x1cb5('0x54')]?(0x0!==_0x3457e1[_0x1cb5('0x16')]&&(this[_0x1cb5('0xb7')][_0x1cb5('0x22')]=()=>_0x3457e1['id']),this['_continueCurrentRevision']=!0x1):this[_0x1cb5('0x12')]&&(this['_source'][_0x1cb5('0x22')]=()=>_0x3457e1['id'],this['_startingVersion']=_0x3457e1['fromVersion'])),this[_0x1cb5('0x12')]||(this[_0x1cb5('0x4d')]=this[_0x1cb5('0x31')][_0x1cb5('0x7e')][_0x1cb5('0x19')]['version']);this[_0x1cb5('0x28')][_0x1cb5('0x4e')](this[_0x1cb5('0xb7')][_0x1cb5('0xc0')]),this[_0x1cb5('0xc9')](this[_0x1cb5('0x4d')]),this[_0x1cb5('0x72')](this['_startingVersion']),this[_0x1cb5('0xd1')]&&this[_0x1cb5('0xde')]();}),this[_0x1cb5('0x99')](_0x1cb5('0x106'))['to'](this,_0x1cb5('0x84'),_0x564275=>!_0x564275);}async[_0x1cb5('0x47')](){if(this[_0x1cb5('0x83')][_0x1cb5('0x7')]>0x0){const _0x16acbd=this[_0x1cb5('0x83')][_0x1cb5('0x5e')](0x0),_0x5c0e22=await this['getRevisionDocumentData'](_0x16acbd),_0x121957=await this[_0x1cb5('0x4')](_0x16acbd);this[_0x1cb5('0xac')](_0x5c0e22,_0x121957);}}[_0x1cb5('0x13')](_0x5be9fe){this[_0x1cb5('0xb7')]=_0x5be9fe;}async[_0x1cb5('0xfe')](){const _0x3aaa08=await this['_source'][_0x1cb5('0xe6')]();if(_0x3aaa08>this[_0x1cb5('0xa')][_0x1cb5('0x54')]){await this['_loadState']();const _0x236d35=this['buildRevisionData']({'revision':this[_0x1cb5('0xa')],'to':_0x3aaa08});_0x236d35[_0x1cb5('0xfb')]=_0x236d35[_0x1cb5('0x78')][_0x1cb5('0xee')](_0x77dc5f=>this['editor']['plugins'][_0x1cb5('0x37')]('Users')['getUser'](_0x77dc5f)),this['currentRevision'][_0x1cb5('0x58')](_0x236d35);}}async['_loadState'](){this[_0x1cb5('0x12')]&&!this[_0x1cb5('0x3d')]&&(await this[_0x1cb5('0x102')](this[_0x1cb5('0xa')]),this[_0x1cb5('0x28')]['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision'][_0x1cb5('0x16')],'authors':this['currentRevision'][_0x1cb5('0xfb')][_0x1cb5('0x8b')]()});}async[_0x1cb5('0x46')](_0x5486a7={},_0x4bcbce=null){const _0x177ec1=[];await this[_0x1cb5('0x90')](),this[_0x1cb5('0x12')]=!0x1,_0x4bcbce>this[_0x1cb5('0xa')][_0x1cb5('0x54')]&&(_0x4bcbce=null),null===_0x4bcbce&&(_0x4bcbce=await this[_0x1cb5('0xb7')][_0x1cb5('0xe6')]());const _0x56282c=this['_getFromVersion'](_0x4bcbce),_0x2d67c6=this[_0x1cb5('0x6a')]({'from':_0x56282c,'to':_0x4bcbce});if(this['currentRevision'][_0x1cb5('0x54')]<_0x4bcbce){const _0x51fbbf=this[_0x1cb5('0x6a')]({'revision':this[_0x1cb5('0xa')],'from':_0x4bcbce,'to':_0x4bcbce});_0x51fbbf[_0x1cb5('0xfb')]=[],_0x51fbbf[_0x1cb5('0x78')]=[],_0x51fbbf['id']=this[_0x1cb5('0xa')]['id'],this['currentRevision'][_0x1cb5('0x58')](_0x51fbbf,!0x0),delete _0x51fbbf[_0x1cb5('0xfb')],_0x177ec1[_0x1cb5('0x1b')](_0x51fbbf);}_0x5486a7['creatorId']=this[_0x1cb5('0x31')][_0x1cb5('0x5')][_0x1cb5('0x37')](_0x1cb5('0x51'))['me']['id'],_0x5486a7[_0x1cb5('0x4b')]=_0x5486a7[_0x1cb5('0x4b')]||null,_0x5486a7['id']=_0x5486a7['id']||_0x28c1c7(),_0x5486a7={..._0x5486a7,..._0x2d67c6};const _0xeab861=this[_0x1cb5('0x17')](_0x5486a7);_0x177ec1[_0x1cb5('0x1b')](_0x5486a7);const _0xbfd058=this['repository'][_0x1cb5('0x20')](_0xeab861);if(0x0!==_0xbfd058){const _0x18e841=this[_0x1cb5('0x83')][_0x1cb5('0x5e')](_0xbfd058-0x1);if(_0x18e841[_0x1cb5('0x16')]!==_0x4bcbce){const _0x20a69f=this['_revisionDataBuilder'][_0x1cb5('0x9c')](_0x4bcbce,_0x18e841['toVersion']),_0x53bd33={'id':_0x18e841['id'],'diffData':_0x20a69f[_0x1cb5('0xef')],'authorsIds':_0x20a69f[_0x1cb5('0x78')],'authors':_0x20a69f['authorsIds']['map'](_0x3eed24=>this['editor'][_0x1cb5('0x5')]['get'](_0x1cb5('0x51'))[_0x1cb5('0x9b')](_0x3eed24)),'fromVersion':_0x4bcbce};_0x18e841===this[_0x1cb5('0xa')]&&(_0x53bd33[_0x1cb5('0x6b')]=new Date(_0x5486a7[_0x1cb5('0x6b')][_0x1cb5('0x26')]()+0xa)),_0x18e841[_0x1cb5('0x58')](_0x53bd33,!0x0),delete _0x53bd33[_0x1cb5('0xfb')],_0x177ec1[_0x1cb5('0x1b')](_0x53bd33);}}if(this['adapter']){for(const _0x5d6c86 of _0x177ec1)this[_0x1cb5('0x25')](_0x5d6c86['id'],_0x5d6c86,!0x0);this[_0x1cb5('0xde')]();}return _0xeab861;}['addRevisionData'](_0x5a43ee){const _0x46dc53=this[_0x1cb5('0x83')][_0x1cb5('0xd6')](_0x5a43ee);return this[_0x1cb5('0xd1')]&&_0x46dc53['on'](_0x1cb5('0x58'),(_0x58ab8e,_0x5b19e3,_0x590db5)=>{_0x590db5||(this['_bufferUpdate'](_0x5b19e3['id'],_0x5b19e3,!0x0),this[_0x1cb5('0xde')]());}),this[_0x1cb5('0x83')][_0x1cb5('0x56')](_0x46dc53,this[_0x1cb5('0xf8')](_0x46dc53)),_0x46dc53;}async['getRevisionDocumentData'](_0x1a06cf){await this[_0x1cb5('0x102')](_0x1a06cf);const _0x591d98={};for(const _0x273a7c in _0x1a06cf[_0x1cb5('0xef')]){if(_0x1a06cf['diffData'][_0x273a7c][_0x1cb5('0x7d')]&&!_0x1a06cf[_0x1cb5('0xef')][_0x273a7c]['attachChange'][_0x1cb5('0x86')])continue;const _0x5387c7=this[_0x1cb5('0x60')](JSON['parse'](_0x1a06cf['diffData'][_0x273a7c][_0x1cb5('0xec')])),_0x25d799=this['editor'][_0x1cb5('0x1f')]['view'][_0x1cb5('0x19')],_0x4953ec=new _0x264f04(_0x25d799,_0x5387c7[_0x1cb5('0xee')](_0x18205b=>J(_0x18205b,this[_0x1cb5('0x31')])));this['editor']['data'][_0x1cb5('0x8')]['useFillerType']('marked'),_0x591d98[_0x273a7c]=this[_0x1cb5('0x31')]['data'][_0x1cb5('0x8')][_0x1cb5('0xd4')](_0x4953ec),this['editor'][_0x1cb5('0xc5')][_0x1cb5('0x8')][_0x1cb5('0xda')](_0x1cb5('0xb2'));}return _0x591d98;}async['getRevisionRootsAttributes'](_0x7080e1){await this['_loadRevisionData'](_0x7080e1);const _0x3f038a={};for(const _0x4cb8ee in _0x7080e1[_0x1cb5('0xef')])_0x7080e1[_0x1cb5('0xef')][_0x4cb8ee][_0x1cb5('0x7d')]&&!_0x7080e1[_0x1cb5('0xef')][_0x4cb8ee][_0x1cb5('0x7d')]['isAttached']||(_0x3f038a[_0x4cb8ee]=_0x7080e1[_0x1cb5('0xef')][_0x4cb8ee]['attributesAfter']||{});return _0x3f038a;}[_0x1cb5('0xde')](){if(0x0===this[_0x1cb5('0x8a')][_0x1cb5('0x0')])return;if(this['_isPendingUpdate'])return;let _0x71fcb2=Array[_0x1cb5('0xed')](this[_0x1cb5('0x8a')][_0x1cb5('0xb4')]());this[_0x1cb5('0x8a')]['clear']();for(let _0x5abdb9=0x0;_0x5abdb9<_0x71fcb2['length'];_0x5abdb9++){const _0x245915=_0x71fcb2[_0x5abdb9];let _0x2c4eb5=!0x1;for(const _0x108f67 of Object['keys'](_0x245915))void 0x0===_0x245915[_0x108f67]?delete _0x245915[_0x108f67]:'id'!==_0x108f67&&(_0x2c4eb5=!0x0);_0x2c4eb5||(_0x71fcb2[_0x5abdb9]=null);}if(_0x71fcb2=_0x71fcb2[_0x1cb5('0x63')](_0x5b9de4=>null!==_0x5b9de4),!_0x71fcb2[_0x1cb5('0x7')])return;for(let _0x35aa4f=0x0;_0x35aa4f<_0x71fcb2[_0x1cb5('0x7')];_0x35aa4f++){const _0x218dc6=_0x71fcb2[_0x35aa4f];void 0x0!==_0x218dc6[_0x1cb5('0x16')]&&void 0x0===_0x218dc6[_0x1cb5('0x54')]&&(_0x218dc6['toVersion']=this[_0x1cb5('0x83')][_0x1cb5('0x5e')](_0x218dc6['id'])[_0x1cb5('0x54')]),void 0x0!==_0x218dc6[_0x1cb5('0x54')]&&void 0x0===_0x218dc6[_0x1cb5('0x16')]&&(_0x218dc6[_0x1cb5('0x16')]=this['repository']['getRevision'](_0x218dc6['id'])[_0x1cb5('0x16')]);}const _0x95ffc4=this[_0x1cb5('0x31')]['config'][_0x1cb5('0x37')](_0x1cb5('0x97'));this[_0x1cb5('0x84')]=!0x0,this[_0x1cb5('0xdb')](),this[_0x1cb5('0xd1')]['updateRevisions'](_0x71fcb2,_0x95ffc4)['finally'](()=>{this['_isPendingUpdate']=!0x1;})[_0x1cb5('0xe1')](_0x2adf95=>{if(_0x2adf95)for(const _0x56f6f3 of _0x2adf95)this[_0x1cb5('0x33')]({'id':_0x56f6f3['id'],'createdAt':_0x56f6f3[_0x1cb5('0x6b')]});this[_0x1cb5('0x82')](),this[_0x1cb5('0xde')]();});}[_0x1cb5('0xac')](_0x3c196d,_0x3c56d7){let _0x42b83f=this[_0x1cb5('0x31')][_0x1cb5('0xb6')][_0x1cb5('0x37')]('initialData'),_0x4abcfb=this[_0x1cb5('0x31')][_0x1cb5('0xb6')][_0x1cb5('0x37')](_0x1cb5('0x1'));if(void 0x0===_0x42b83f){_0x42b83f={};for(const _0x396148 of this['editor'][_0x1cb5('0x7e')][_0x1cb5('0x19')]['getRootNames']())_0x42b83f[_0x396148]='';}if(_0x1cb5('0xc6')==typeof _0x42b83f&&(_0x42b83f={'main':_0x42b83f}),void 0x0===_0x4abcfb){_0x4abcfb={};for(const _0x4ae450 of this['editor']['model'][_0x1cb5('0x19')][_0x1cb5('0xf')]())_0x4abcfb[_0x4ae450]={};}let _0x33418f=!0x1;const _0x324e7e=Object[_0x1cb5('0x6c')](_0x42b83f),_0x494800=Object[_0x1cb5('0x6c')](_0x3c196d);for(const _0x200496 of _0x324e7e){if(_0x42b83f[_0x200496]!==_0x3c196d[_0x200496]&&''!==_0x42b83f[_0x200496]['trim']()){_0x33418f=!0x0;break;}if(!_0x57f184(_0x4abcfb[_0x200496],_0x3c56d7[_0x200496])&&Object[_0x1cb5('0x6c')](_0x4abcfb[_0x200496])[_0x1cb5('0x7')]>0x0){_0x33418f=!0x0;break;}}_0x33418f||(_0x33418f=_0x494800[_0x1cb5('0x3f')](_0x5247e0=>!this[_0x1cb5('0x31')][_0x1cb5('0x7e')][_0x1cb5('0x19')][_0x1cb5('0xfc')](_0x5247e0))),_0x33418f&&_0x4af4db('editor-initial-data-replaced-with-revision-data',{'editorData':_0x42b83f,'editorRootsAttributes':_0x4abcfb,'revisionData':_0x3c196d,'revisionRootsAttributes':_0x3c56d7}),this[_0x1cb5('0x31')][_0x1cb5('0xb6')][_0x1cb5('0x105')](_0x1cb5('0xf2'),_0x3c196d),this[_0x1cb5('0x31')][_0x1cb5('0xb6')][_0x1cb5('0x105')]('rootsAttributes',_0x3c56d7);}[_0x1cb5('0xdb')](){if(!this[_0x1cb5('0x48')]){const _0x4cd183=this[_0x1cb5('0x31')][_0x1cb5('0x5')][_0x1cb5('0x37')]('PendingActions');this[_0x1cb5('0x48')]=_0x4cd183['add'](_0x2abbaf(this[_0x1cb5('0x31')]['locale'],_0x1cb5('0x6e')));}}[_0x1cb5('0x82')](){this['_pendingAction']&&(this['editor']['plugins'][_0x1cb5('0x37')](_0x1cb5('0xf0'))[_0x1cb5('0x3b')](this[_0x1cb5('0x48')]),this[_0x1cb5('0x48')]=null);}['_findInsertionIndex'](_0x28b0b5){const _0x2443d2=this[_0x1cb5('0x83')][_0x1cb5('0x1c')]();_0x2443d2[_0x1cb5('0x68')]();let _0x435a53=0x0;for(;_0x435a53<_0x2443d2[_0x1cb5('0x7')];){const _0x581c90=_0x2443d2[_0x435a53];if(_0x581c90===this[_0x1cb5('0xa')]){_0x435a53++;continue;}if(_0x581c90['id']===this[_0x1cb5('0xd9')])break;const _0x4afa95=_0x28b0b5[_0x1cb5('0x54')]-_0x581c90[_0x1cb5('0x54')]||_0x28b0b5[_0x1cb5('0x16')]-_0x581c90[_0x1cb5('0x16')];if(_0x4afa95>0x0)break;if(_0x4afa95<0x0)_0x435a53++;else{if(!_0x28b0b5['creator']&&_0x581c90[_0x1cb5('0xe2')])break;if(_0x581c90[_0x1cb5('0xe2')]||!_0x28b0b5[_0x1cb5('0xe2')]){if(_0x28b0b5['createdAt']>_0x581c90[_0x1cb5('0x6b')])break;_0x435a53++;}else _0x435a53++;}}return _0x435a53;}[_0x1cb5('0x33')](_0x179473){const _0x331fa5=this[_0x1cb5('0x83')][_0x1cb5('0x5e')](_0x179473['id']);if(_0x179473['createdAt']&&(_0x179473['createdAt']=new Date(_0x179473['createdAt'])),_0x179473[_0x1cb5('0x78')]){const _0x4086a7=this['editor']['plugins'][_0x1cb5('0x37')]('Users');_0x179473[_0x1cb5('0xfb')]=_0x179473['authorsIds'][_0x1cb5('0xee')](_0x283ac1=>_0x4086a7[_0x1cb5('0x9b')](_0x283ac1));}_0x331fa5['_update'](_0x179473,!0x0);}['buildRevisionData']({revision:_0x3cbd39=null,from:_0x6017dc=null,to:_0x39e51c=null}){_0x6017dc=null!==_0x6017dc?_0x6017dc:_0x3cbd39[_0x1cb5('0x16')],_0x39e51c=null!==_0x39e51c?_0x39e51c:_0x3cbd39[_0x1cb5('0x54')];const _0x6dffe5=this[_0x1cb5('0x28')][_0x1cb5('0x9c')](_0x6017dc,_0x39e51c),_0x4485b6={'diffData':_0x6dffe5[_0x1cb5('0xef')],'authorsIds':_0x6dffe5[_0x1cb5('0x78')],'fromVersion':_0x6017dc,'toVersion':_0x39e51c};if(!_0x3cbd39||_0x39e51c!==_0x3cbd39[_0x1cb5('0x54')]){const _0x489ccc=_0x39e51c-0x1,_0x5180a3=this[_0x1cb5('0xb7')]['history'][_0x1cb5('0xdd')](_0x489ccc);_0x4485b6['createdAt']=_0x5180a3&&_0x5180a3[_0x1cb5('0x6b')]||new Date();}if(this[_0x1cb5('0x3d')]&&_0x6017dc===this[_0x1cb5('0x3d')][_0x1cb5('0x16')])for(const _0x397f5f of this[_0x1cb5('0x3d')][_0x1cb5('0xfb')])_0x4485b6[_0x1cb5('0x78')]['includes'](_0x397f5f['id'])||_0x4485b6[_0x1cb5('0x78')][_0x1cb5('0x1b')](_0x397f5f['id']);return _0x4485b6;}[_0x1cb5('0x102')](_0x4f90cd){if(!_0x4f90cd||_0x4f90cd[_0x1cb5('0xef')])return Promise[_0x1cb5('0xf6')]();{const _0x596633=this[_0x1cb5('0x31')]['config']['get'](_0x1cb5('0x97'));return this['adapter'][_0x1cb5('0x5e')]({'channelId':_0x596633,'revisionId':_0x4f90cd['id']})[_0x1cb5('0xe1')](_0x201071=>{_0x4f90cd[_0x1cb5('0xef')]=_0x201071[_0x1cb5('0xef')];});}}[_0x1cb5('0x25')](_0x559f98,_0x1ad495,_0x2e5c80){if(this[_0x1cb5('0x8a')][_0x1cb5('0x5f')](_0x559f98)){const _0xa2392b=this['_bufferedUpdates'][_0x1cb5('0x37')](_0x559f98);_0x1ad495=_0x2e5c80?{..._0xa2392b,..._0x1ad495}:{..._0x1ad495,..._0xa2392b};}this[_0x1cb5('0x8a')][_0x1cb5('0x105')](_0x559f98,_0x1ad495);}[_0x1cb5('0xa9')](_0x2de7f0){const _0x32207d=this[_0x1cb5('0x83')][_0x1cb5('0x1c')]();_0x32207d[_0x1cb5('0x68')](),_0x32207d[_0x1cb5('0xab')]();const _0x54566b=_0x32207d[_0x1cb5('0x8c')](_0x5daa6f=>_0x5daa6f[_0x1cb5('0x54')]<=_0x2de7f0)[_0x1cb5('0x54')];return _0x54566b<this[_0x1cb5('0x4d')]?this[_0x1cb5('0x4d')]:_0x54566b;}['_createInitialRevision'](_0x1d8645){const _0x59a1f4=this[_0x1cb5('0x83')][_0x1cb5('0x5e')](this[_0x1cb5('0x83')][_0x1cb5('0x7')]-0x1);if(_0x59a1f4)this[_0x1cb5('0xd9')]=_0x59a1f4['id'];else{const _0x3fbd58=!this['editor'][_0x1cb5('0x7e')][_0x1cb5('0x19')]['roots']['find'](_0x19cdf7=>this[_0x1cb5('0x31')][_0x1cb5('0x7e')][_0x1cb5('0xa3')](_0x19cdf7)),_0x69290d=this['editor']['plugins'][_0x1cb5('0x37')]('Users')['me']['id'],_0x1baea3=_0x2abbaf(this[_0x1cb5('0x31')][_0x1cb5('0x9')],_0x3fbd58?_0x1cb5('0x95'):_0x1cb5('0x34'));this[_0x1cb5('0x9e')]({'from':_0x1d8645,'to':_0x1d8645,'id':this[_0x1cb5('0xd9')],'name':_0x1baea3,'creatorId':_0x69290d});}}['_createCurrentRevision'](_0x2c3ac9){const _0x484678=this[_0x1cb5('0xb7')][_0x1cb5('0x22')]();this[_0x1cb5('0xa')]=this[_0x1cb5('0x83')][_0x1cb5('0x5e')](_0x484678),this[_0x1cb5('0xa')]||(this[_0x1cb5('0xa')]=this[_0x1cb5('0x9e')]({'from':_0x2c3ac9,'to':_0x2c3ac9,'id':_0x484678,'name':'','creatorId':null}));}[_0x1cb5('0x9e')]({name:_0x5d7dd8,from:_0x238f41,to:_0x5a054f,creatorId:_0x3852a9,id:_0x775b27}){const _0x2ba03d=this[_0x1cb5('0x6a')]({'from':_0x238f41,'to':_0x5a054f});_0x2ba03d[_0x1cb5('0x4b')]=_0x5d7dd8,_0x2ba03d[_0x1cb5('0xe9')]=_0x3852a9,_0x2ba03d['id']=_0x775b27;const _0x7dc859=this[_0x1cb5('0x17')](_0x2ba03d);return this[_0x1cb5('0xd1')]&&this[_0x1cb5('0x25')](_0x2ba03d['id'],_0x2ba03d,!0x0),_0x7dc859;}[_0x1cb5('0xca')](){this[_0x1cb5('0x31')][_0x1cb5('0x36')][_0x1cb5('0xc4')](_0x1cb5('0x5d'))['markerToData']({'model':_0x1cb5('0x89')});}[_0x1cb5('0x60')](_0x192a7b){return(_0x192a7b=_0x192a7b[_0x1cb5('0x63')](_0x221974=>!_0x221974[_0x1cb5('0x4b')]||_0x1cb5('0x18')!==_0x221974['name']&&_0x1cb5('0xc1')!==_0x221974[_0x1cb5('0x4b')]))['forEach'](_0x100016=>{'string'!=typeof _0x100016&&(_0x100016[_0x1cb5('0x39')]=this[_0x1cb5('0x60')](_0x100016[_0x1cb5('0x39')]),_0x100016[_0x1cb5('0x4f')]=_0x100016[_0x1cb5('0x4f')][_0x1cb5('0x63')](_0x3f0b2d=>!_0x3f0b2d[0x0]['startsWith'](_0x1cb5('0x69'))));}),_0x192a7b;}}function J(_0x591176,_0x816415){const _0x58c090=_0x816415[_0x1cb5('0x1f')][_0x1cb5('0xdc')][_0x1cb5('0x19')];if(_0x1cb5('0xc6')==typeof _0x591176)return new _0x169a72(_0x58c090,_0x591176);{const _0x122dcf=_0x591176[_0x1cb5('0x39')][_0x1cb5('0xee')](_0x17ef60=>J(_0x17ef60,_0x816415));return new(B[_0x591176['type']]||_0x41120e)(_0x58c090,_0x591176[_0x1cb5('0x4b')],_0x591176[_0x1cb5('0x4f')],_0x122dcf);}}class H{constructor(_0x28eded){this[_0x1cb5('0x31')]=_0x28eded,this[_0x1cb5('0x9d')]=new Map(),this[_0x1cb5('0x96')]=-0x1,this[_0x1cb5('0xcd')]=-0x1,this[_0x1cb5('0x67')]=new Map(),this[_0x1cb5('0xc2')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x1cb5('0xc3')]=new Map(),this[_0x1cb5('0x2a')]=new Map(),this[_0x1cb5('0x93')]=new Map(),this[_0x1cb5('0xe')]=new Map(),this[_0x1cb5('0xcc')]=new Map(),this[_0x1cb5('0x107')]=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}[_0x1cb5('0x4e')](_0x38fd1b){this['source']=_0x38fd1b;const _0x545503=new Map(),_0x4506e8=new Map(),_0x3637cc=this[_0x1cb5('0x31')][_0x1cb5('0x7e')][_0x1cb5('0x19')][_0x1cb5('0x9f')]['map'](_0x439637=>_0x439637[_0x1cb5('0x27')]);for(const _0x3adf67 of _0x3637cc){const _0x5d70ef=this['editor'][_0x1cb5('0x7e')][_0x1cb5('0x19')][_0x1cb5('0xfc')](_0x3adf67),_0x4a9480=q(_0x5d70ef);_0x545503[_0x1cb5('0x105')](_0x3adf67,_0x4a9480),_0x4506e8[_0x1cb5('0x105')](_0x3adf67,Object[_0x1cb5('0xb1')](_0x5d70ef[_0x1cb5('0xe0')]()));}const _0x5d8e34=Array[_0x1cb5('0xed')](this[_0x1cb5('0x31')][_0x1cb5('0x7e')][_0x1cb5('0xbc')])[_0x1cb5('0xee')](_0x10fff9=>[_0x10fff9[_0x1cb5('0x4b')],_0x10fff9[_0x1cb5('0xa8')]()]),_0x54368d=this[_0x1cb5('0x64')][_0x1cb5('0x2e')];this[_0x1cb5('0x2d')](_0x54368d,_0x545503,_0x5d8e34,_0x4506e8),this[_0x1cb5('0xf1')]=this[_0x1cb5('0xb3')];const _0x568aaa=new Map(),_0x2a1093=new Map();for(const _0x127321 of _0x3637cc){const _0x4f2b5b=G(_0x127321);_0x568aaa[_0x1cb5('0x105')](_0x127321,_0x4f2b5b),_0x2a1093['set'](_0x127321,{});}this['_saveMetaData'](Number[_0x1cb5('0xcf')],_0x568aaa,[],_0x2a1093);}[_0x1cb5('0x9c')](_0x507aef,_0x952eae){if(this['_lastFrom']===_0x507aef&&this[_0x1cb5('0xcd')]<=_0x952eae)this['_savedMetaData'][_0x1cb5('0x0')]>0x1&&this[_0x1cb5('0xaf')](this[_0x1cb5('0xcd')]),this[_0x1cb5('0x70')](this['_lastTo'],_0x952eae,!0x0);else{if(!this['_savedMetaData'][_0x1cb5('0x5f')](_0x507aef)){const _0x3d0fb1=this[_0x1cb5('0x104')](_0x507aef);this[_0x1cb5('0xe4')](_0x3d0fb1,_0x507aef,!0x1);}this[_0x1cb5('0xe4')](_0x507aef,_0x952eae,!0x0);}return this['_lastFrom']=_0x507aef,this[_0x1cb5('0xcd')]=_0x952eae,this['_getState']();}['loadState'](_0x225fc8){this[_0x1cb5('0x88')](),this['_lastFrom']=_0x225fc8[_0x1cb5('0x16')],this['_lastTo']=_0x225fc8['toVersion'];for(const _0x548cce in _0x225fc8['diffData']){const _0x780892=_0x225fc8['diffData'][_0x548cce]['attachChange'],_0x28a625=_0x52e955(_0x225fc8[_0x1cb5('0xef')][_0x548cce][_0x1cb5('0xd0')])||{},_0x49df1d=this[_0x1cb5('0x1e')](_0x225fc8[_0x1cb5('0xef')][_0x548cce][_0x1cb5('0x91')]);_0x49df1d[_0x1cb5('0x27')]=_0x548cce,_0x49df1d['_isAttached']=!_0x780892||!_0x780892['isAttached'],_0x49df1d[_0x1cb5('0x86')]=()=>_0x49df1d[_0x1cb5('0xa6')],this['_baseRoots']['set'](_0x548cce,_0x49df1d),this[_0x1cb5('0x2a')][_0x1cb5('0x105')](_0x548cce,_0x28a625),_0x780892&&this[_0x1cb5('0x6f')][_0x1cb5('0x105')](_0x548cce,_0x780892);const _0x2c0326=this[_0x1cb5('0xf4')](_0x49df1d);this[_0x1cb5('0xe')][_0x1cb5('0x105')](_0x548cce,_0x2c0326);for(const [_0x47c323,_0x1e21a0]of _0x49df1d[_0x1cb5('0xbc')]){if(!_0x47c323['startsWith'](_0x1cb5('0x73')))continue;const _0x8b4d5a=_0x47c323[_0x1cb5('0x44')](':')[0x2];for(const _0x6f8a7a of _0x1e21a0['getWalker']({'singleCharacters':!0x0})){const _0x1dccbd=this[_0x1cb5('0xaa')](_0x6f8a7a),_0x548a6f=_0x1cb5('0xd5')==_0x6f8a7a[_0x1cb5('0xe7')]?_0x6f8a7a[_0x1cb5('0x62')][_0x1cb5('0x35')][_0x1cb5('0x8b')](0x0,-0x1):_0x6f8a7a[_0x1cb5('0x62')][_0x1cb5('0x35')],_0x5ac07a=_0x2c0326[_0x1cb5('0xf3')](_0x548a6f)['getAttribute'](_0x1dccbd);this[_0x1cb5('0xcc')][_0x1cb5('0x105')](_0x5ac07a,{'userId':_0x8b4d5a});}}}this[_0x1cb5('0xf1')]=this[_0x1cb5('0xb3')];const _0x31cd17=[...Array(this[_0x1cb5('0xb3')])['keys']()]['slice'](0x1)[_0x1cb5('0x63')](_0x1e3548=>!this[_0x1cb5('0xcc')]['has'](_0x1e3548));let _0x2c353f=0x0;const _0x5b2447=new Map();for(const _0x42c006 in _0x225fc8[_0x1cb5('0xef')]){const _0xc33d84=_0x225fc8[_0x1cb5('0xef')][_0x42c006][_0x1cb5('0x7d')],_0x56c97f=_0x52e955(_0x225fc8['diffData'][_0x42c006][_0x1cb5('0x7a')])||{},_0x3d0224=this['_makeModelFromViewString'](_0x225fc8[_0x1cb5('0xef')][_0x42c006][_0x1cb5('0xec')]);_0x3d0224['rootName']=_0x42c006,_0x3d0224[_0x1cb5('0xa6')]=!_0xc33d84||_0xc33d84[_0x1cb5('0x86')],_0x3d0224[_0x1cb5('0x86')]=()=>_0x3d0224[_0x1cb5('0xa6')],this[_0x1cb5('0xc2')][_0x1cb5('0x105')](_0x42c006,_0x3d0224),this[_0x1cb5('0xbe')][_0x1cb5('0x105')](_0x42c006,_0x56c97f);const _0x23d06a=this[_0x1cb5('0xf4')](_0x3d0224,Number[_0x1cb5('0xcf')]);this[_0x1cb5('0x93')][_0x1cb5('0x105')](_0x42c006,_0x23d06a),_0x5b2447[_0x1cb5('0x105')](_0x42c006,_0x3d0224['isAttached']()?_0x56c97f:{});for(const [_0x1a1610,_0x2ae3ac]of _0x3d0224[_0x1cb5('0xbc')]){if(!_0x1a1610['startsWith'](_0x1cb5('0x73')))continue;const _0x2a748a=_0x1a1610[_0x1cb5('0x44')](':')[0x2];for(const _0x2c3935 of _0x2ae3ac[_0x1cb5('0x76')]({'singleCharacters':!0x0})){const _0x2394eb=this['_getVidAttributeName'](_0x2c3935),_0x4bba61=this[_0x1cb5('0xb3')]++,_0x46d100=_0x1cb5('0xd5')==_0x2c3935[_0x1cb5('0xe7')]?_0x2c3935[_0x1cb5('0x62')][_0x1cb5('0x35')][_0x1cb5('0x8b')](0x0,-0x1):_0x2c3935['previousPosition'][_0x1cb5('0x35')];_0x23d06a[_0x1cb5('0xf3')](_0x46d100)[_0x1cb5('0x41')](_0x2394eb,_0x4bba61),this['_touched'][_0x1cb5('0x105')](_0x4bba61,{'userId':_0x2a748a});}}for(const _0x4494e3 of this[_0x1cb5('0x31')][_0x1cb5('0x7e')]['createRangeIn'](_0x3d0224)[_0x1cb5('0x76')]({'singleCharacters':!0x0})){const _0x59fa2a=this[_0x1cb5('0xaa')](_0x4494e3),_0x9f5638=_0x1cb5('0xd5')==_0x4494e3['type']?_0x4494e3[_0x1cb5('0x62')][_0x1cb5('0x35')][_0x1cb5('0x8b')](0x0,-0x1):_0x4494e3['previousPosition']['path'],_0x579d26=_0x23d06a['getNodeByPath'](_0x9f5638);_0x579d26['getAttribute'](_0x59fa2a)>0x0||_0x579d26['_setAttribute'](_0x59fa2a,_0x31cd17[_0x2c353f++]);}for(const [_0x5f151c,_0x25553d]of _0x3d0224[_0x1cb5('0xbc')])_0x5f151c[_0x1cb5('0xe3')](_0x1cb5('0x73'))||this[_0x1cb5('0x67')]['set'](_0x5f151c,_0x25553d);}const _0x4ef8a9=G('$graveyard');this['_baseRoots']['set'](_0x1cb5('0x2c'),_0x4ef8a9),this[_0x1cb5('0xe')]['set']('$graveyard',this[_0x1cb5('0xf4')](_0x4ef8a9,0x1));const _0x502a26=G(_0x1cb5('0x2c'));this[_0x1cb5('0xc2')][_0x1cb5('0x105')](_0x1cb5('0x2c'),_0x502a26),this[_0x1cb5('0x93')][_0x1cb5('0x105')](_0x1cb5('0x2c'),this[_0x1cb5('0xf4')](_0x502a26,0x1));const _0x29c28a=Array[_0x1cb5('0xed')](this['_diffRoots'])['map'](([_0x17e2c8,_0x2395c5])=>[_0x17e2c8,q(_0x2395c5)]);this[_0x1cb5('0x2d')](this[_0x1cb5('0xcd')],_0x29c28a,this[_0x1cb5('0x67')],_0x5b2447);}[_0x1cb5('0x1e')](_0x1473d4){const _0x5449e4=JSON[_0x1cb5('0x2b')](_0x1473d4),_0x5a47f0=this['editor'][_0x1cb5('0x1f')][_0x1cb5('0xdc')]['document'],_0x4de865=new _0x264f04(_0x5a47f0,_0x5449e4['map'](_0x508730=>J(_0x508730,this['editor'])));return this[_0x1cb5('0x31')][_0x1cb5('0xc5')][_0x1cb5('0xba')](_0x4de865);}['_saveMetaData'](_0x53eecb,_0x1e0252,_0x37c2e5,_0x411d20){const _0x578771=new Map(_0x1e0252),_0x1f7356=new Map(_0x52e955(_0x411d20)),_0xadee82=new Map();for(const [_0x12cae6,_0x98c0d]of _0x37c2e5)_0xadee82[_0x1cb5('0x105')](_0x12cae6,{'start':_0x98c0d[_0x1cb5('0xe5')][_0x1cb5('0xd')](),'end':_0x98c0d[_0x1cb5('0xa1')]['clone'](),'rootName':_0x98c0d[_0x1cb5('0x11')][_0x1cb5('0x27')]});this[_0x1cb5('0x9d')]['set'](_0x53eecb,{'roots':_0x578771,'markers':_0xadee82,'rootsAttributes':_0x1f7356});}[_0x1cb5('0xaf')](_0x4b6afd){this[_0x1cb5('0x9d')][_0x1cb5('0x53')](_0x4b6afd);}[_0x1cb5('0x24')](){this[_0x1cb5('0x88')](),this[_0x1cb5('0x96')]=-0x1,this[_0x1cb5('0xcd')]=-0x1,this[_0x1cb5('0x9d')][_0x1cb5('0xae')](),this[_0x1cb5('0x4e')](this[_0x1cb5('0x64')]);}['_reset'](){this[_0x1cb5('0xcc')][_0x1cb5('0xae')](),this['_touchedMarkers'][_0x1cb5('0xae')](),this[_0x1cb5('0x6f')][_0x1cb5('0xae')](),this[_0x1cb5('0xc2')][_0x1cb5('0xae')](),this['_diffRootsAttributes']['clear'](),this[_0x1cb5('0xc3')][_0x1cb5('0xae')](),this[_0x1cb5('0x2a')][_0x1cb5('0xae')](),this['_idsRoots']['clear'](),this[_0x1cb5('0xe')][_0x1cb5('0xae')](),this[_0x1cb5('0x67')][_0x1cb5('0xae')](),this[_0x1cb5('0xb3')]=0x1,this[_0x1cb5('0xf1')]=this[_0x1cb5('0xb3')];}[_0x1cb5('0xf4')](_0x3b4365,_0x4aced5=null){let _0x1cec84=null;_0x3b4365['is']('documentFragment')||(_0x1cec84=new _0x1455eb(_0x3b4365[_0x1cb5('0x4b')],{'vid_start':null===_0x4aced5?this[_0x1cb5('0xb3')]++:_0x4aced5++}));const _0x59f99e=[];for(const _0x331007 of _0x3b4365['getChildren']())if(_0x331007['is'](_0x1cb5('0x9a'))){_0x59f99e[_0x1cb5('0x1b')](this[_0x1cb5('0xf4')](_0x331007,_0x4aced5));const _0x1d46c8=_0x59f99e[_0x59f99e[_0x1cb5('0x7')]-0x1];null!==_0x4aced5&&(_0x4aced5=_0x1d46c8['is'](_0x1cb5('0x9a'),'$text')?_0x1d46c8[_0x1cb5('0x103')](_0x1cb5('0xbb'))+0x1:_0x1d46c8[_0x1cb5('0x103')]('vid_end')+0x1);}else for(let _0x19681b=0x0;_0x19681b<_0x331007[_0x1cb5('0x71')];_0x19681b++)_0x59f99e[_0x1cb5('0x1b')](new _0x1455eb(_0x1cb5('0x5a'),{'vid':null===_0x4aced5?this['_revisionId']++:_0x4aced5++}));if(_0x3b4365['is'](_0x1cb5('0x3e'))){const _0x4452e4=G(_0x3b4365[_0x1cb5('0x27')]);return _0x4452e4['_insertChild'](0x0,_0x59f99e),_0x4452e4;}return _0x1cec84[_0x1cb5('0x41')](_0x1cb5('0xfa'),null===_0x4aced5?this['_revisionId']++:_0x4aced5++),_0x1cec84[_0x1cb5('0x6')](0x0,_0x59f99e),_0x1cec84;}[_0x1cb5('0xe4')](_0x26eb12,_0x1de36a,_0x30aeef){this['_reset']();const {roots:_0x251714,markers:_0x151c6c,rootsAttributes:_0x5e2ee6}=this[_0x1cb5('0x9d')][_0x1cb5('0x37')](_0x26eb12);this[_0x1cb5('0xc3')]=new Map(_0x251714),this[_0x1cb5('0x2a')]=new Map(_0x52e955(_0x5e2ee6));for(const [_0x3d743d,_0x119ed3]of this[_0x1cb5('0xc3')])if(_0x1cb5('0x2c')!==_0x3d743d&&(this[_0x1cb5('0xc2')]['set'](_0x3d743d,q(_0x119ed3)),this[_0x1cb5('0xbe')]=new Map(_0x52e955(_0x5e2ee6)),_0x30aeef)){const _0x5d414a=this[_0x1cb5('0xb3')];this[_0x1cb5('0x93')]['set'](_0x3d743d,this[_0x1cb5('0xf4')](_0x119ed3)),this[_0x1cb5('0xe')][_0x1cb5('0x105')](_0x3d743d,this[_0x1cb5('0xf4')](_0x119ed3,_0x5d414a));}this[_0x1cb5('0xf1')]=this[_0x1cb5('0xb3')],this[_0x1cb5('0xc2')][_0x1cb5('0x105')](_0x1cb5('0x2c'),q(this[_0x1cb5('0xc3')]['get'](_0x1cb5('0x2c')))),_0x30aeef&&this[_0x1cb5('0x93')]['set'](_0x1cb5('0x2c'),this[_0x1cb5('0xf4')](this[_0x1cb5('0xc3')][_0x1cb5('0x37')](_0x1cb5('0x2c'))));for(const [_0x2b72f1,_0x4b950a]of _0x151c6c){const _0x297579=this[_0x1cb5('0xc3')][_0x1cb5('0x37')](_0x4b950a[_0x1cb5('0x27')]),_0x206ffb=this[_0x1cb5('0xc2')][_0x1cb5('0x37')](_0x4b950a[_0x1cb5('0x27')]),_0x257b0e=new _0x496dde(this[_0x1cb5('0xbf')](_0x4b950a[_0x1cb5('0xe5')],_0x297579),this[_0x1cb5('0xbf')](_0x4b950a[_0x1cb5('0xa1')],_0x297579)),_0x5938c2=this[_0x1cb5('0x2f')](_0x257b0e,_0x206ffb);_0x297579[_0x1cb5('0xbc')][_0x1cb5('0x105')](_0x2b72f1,_0x257b0e),this['_markers']['set'](_0x2b72f1,_0x5938c2);}this[_0x1cb5('0x70')](_0x26eb12,_0x1de36a,_0x30aeef);}['_applyOperations'](_0x419a16,_0x3535cd,_0x20c750){for(const _0x3a2eba of this[_0x1cb5('0x64')][_0x1cb5('0xa7')](_0x419a16,_0x3535cd))this['_handleOperation'](_0x3a2eba,_0x20c750);for(const _0x1aef71 of this[_0x1cb5('0xc2')][_0x1cb5('0xb4')]())_0x1aef71[_0x1cb5('0xbc')][_0x1cb5('0xae')]();for(const [_0x552006,_0xe36e73]of this[_0x1cb5('0x67')]){this[_0x1cb5('0xc2')]['get'](_0xe36e73[_0x1cb5('0x11')][_0x1cb5('0x27')])[_0x1cb5('0xbc')][_0x1cb5('0x105')](_0x552006,_0xe36e73[_0x1cb5('0xd')]());}const _0x562112=new Map(),_0x426fab=new Map();for(const [_0x1d3406,_0x43634c]of this[_0x1cb5('0xc2')])_0x562112[_0x1cb5('0x105')](_0x1d3406,q(_0x43634c)),_0x426fab[_0x1cb5('0x105')](_0x1d3406,this['_diffRootsAttributes'][_0x1cb5('0x37')](_0x1d3406));this[_0x1cb5('0x2d')](_0x3535cd,_0x562112,this[_0x1cb5('0x67')],_0x426fab);}[_0x1cb5('0x104')](_0x443d33){const _0xfb4957=Array[_0x1cb5('0xed')](this[_0x1cb5('0x9d')][_0x1cb5('0x6c')]());_0xfb4957[_0x1cb5('0x65')]((_0x530203,_0x458641)=>_0x530203-_0x458641),_0xfb4957[_0x1cb5('0x68')]();for(const _0x3d16d1 of _0xfb4957)if(_0x3d16d1<_0x443d33)return _0x3d16d1;return Number[_0x1cb5('0xcf')];}['_copyMarkers'](_0x37f696,_0x389936){const _0x54afb1=Array[_0x1cb5('0xed')](_0x389936[_0x1cb5('0xbc')])[_0x1cb5('0xee')](([_0x3589af,_0x50bdd2])=>[_0x3589af,this[_0x1cb5('0x2f')](_0x50bdd2,_0x37f696)]);_0x37f696[_0x1cb5('0xbc')]=new Map(_0x54afb1);}['_transformMarkers'](_0x5417b0){for(const _0x25b254 of this[_0x1cb5('0x67')][_0x1cb5('0xb4')]()){const _0x3090cb=_0x25b254[_0x1cb5('0x57')](_0x5417b0),_0x4e0c51=_0x496dde[_0x1cb5('0x3c')](_0x3090cb);_0x25b254[_0x1cb5('0xe5')]=_0x4e0c51[_0x1cb5('0xe5')],_0x25b254[_0x1cb5('0xa1')]=_0x4e0c51['end'];}}[_0x1cb5('0x42')](_0x290eda,_0x1620bc){if('addRoot'==_0x290eda[_0x1cb5('0xe7')]||_0x1cb5('0xa2')==_0x290eda[_0x1cb5('0xe7')])return void this['_handleRootOperation'](_0x290eda,_0x1620bc);if('insert'==_0x290eda[_0x1cb5('0xe7')]){const _0x5f7bb4=_0x290eda[_0x1cb5('0x5c')][_0x1cb5('0x11')][_0x1cb5('0x27')];this[_0x1cb5('0xc2')][_0x1cb5('0x5f')](_0x5f7bb4)||(this[_0x1cb5('0xc2')][_0x1cb5('0x105')](_0x5f7bb4,G(_0x5f7bb4,!0x0)),this[_0x1cb5('0xbe')][_0x1cb5('0x105')](_0x5f7bb4,{}),_0x1620bc&&this['_idsRoots']['set'](_0x5f7bb4,G(_0x5f7bb4,!0x0)));}else{if(_0x1cb5('0x87')==_0x290eda[_0x1cb5('0xe7')]||'removeRootAttribute'==_0x290eda['type']||_0x1cb5('0x1a')==_0x290eda[_0x1cb5('0xe7')])return void this['_handleRootAttributeOperation'](_0x290eda);}const _0x5a675e=this['_cloneOperation'](_0x290eda,this[_0x1cb5('0xc2')]);if(_0x1cb5('0x1d')!==_0x290eda['type']&&(_0x5a675e[_0x1cb5('0x32')](),this[_0x1cb5('0xe8')](_0x5a675e)),_0x1620bc)switch(_0x5a675e[_0x1cb5('0xe7')]){case _0x1cb5('0x4c'):this[_0x1cb5('0xd3')](_0x290eda);break;case'move':case _0x1cb5('0x3b'):case _0x1cb5('0xc7'):this[_0x1cb5('0x5b')](_0x290eda);break;case'merge':this[_0x1cb5('0x79')](_0x290eda);break;case _0x1cb5('0x44'):this[_0x1cb5('0xf7')](_0x290eda);break;case _0x1cb5('0x1d'):this['_handleMarkerOperation'](_0x290eda);}}['_cloneOperation'](_0x291aae,_0x26d118){const _0x392931=_0x291aae[_0x1cb5('0xd')]();return _0x392931['_authorId']=_0x291aae[_0x1cb5('0xcb')],this[_0x1cb5('0xad')](_0x392931,_0x26d118),_0x392931;}[_0x1cb5('0x45')](_0x3334f4){return _0x3334f4[_0x1cb5('0xee')](_0x148e37=>{const _0x1b9f83=this[_0x1cb5('0xaa')](_0x148e37);return Number(_0x148e37['item']['getAttribute'](_0x1b9f83));});}[_0x1cb5('0x23')](_0x2d630e,_0x189641){if(_0x2d630e['is']('element',_0x1cb5('0x5a')))_0x189641[_0x1cb5('0x1b')]({'item':_0x2d630e,'type':_0x1cb5('0x50')});else{_0x2d630e['is'](_0x1cb5('0x9a'))&&_0x189641['push']({'item':_0x2d630e,'type':_0x1cb5('0x59')});for(const _0x38a8c5 of _0x2d630e['getChildren']())this[_0x1cb5('0x23')](_0x38a8c5,_0x189641);_0x2d630e['is'](_0x1cb5('0x9a'))&&_0x189641['push']({'item':_0x2d630e,'type':_0x1cb5('0xd5')});}return _0x189641;}[_0x1cb5('0xb9')](){const _0x37fa37=new Map(this[_0x1cb5('0xcc')]),_0x118357=new Map(_0x37fa37),_0x1eea29=new Map(),_0x178d93={'insertions':{},'deletions':{}},_0xf91dd2={'insertions':{},'deletions':{}},_0x2b4610=new Map(),_0x4b8ad0=new Set([...this['_baseRoots']['keys'](),...this[_0x1cb5('0xc2')][_0x1cb5('0x6c')]()]);_0x4b8ad0['delete']('$graveyard');for(const _0x3034df of _0x4b8ad0){const _0x1f5264=this['_diffRoots'][_0x1cb5('0x37')](_0x3034df)||G(_0x3034df,!0x1),_0x4dc24d=this[_0x1cb5('0xc3')][_0x1cb5('0x37')](_0x3034df)||G(_0x3034df,!0x1);_0x1f5264[_0x1cb5('0x86')]()||_0x4dc24d[_0x1cb5('0x86')]()?(_0x178d93['insertions'][_0x3034df]=q(_0x1f5264),_0x178d93[_0x1cb5('0x91')][_0x3034df]=q(_0x4dc24d),this[_0x1cb5('0x38')](_0x178d93['deletions'][_0x3034df],_0x4dc24d),this[_0x1cb5('0x38')](_0x178d93[_0x1cb5('0xec')][_0x3034df],_0x1f5264),_0xf91dd2['insertions'][_0x3034df]=this[_0x1cb5('0x23')](this['_idsRoots']['get'](_0x3034df),[]),_0xf91dd2[_0x1cb5('0x91')][_0x3034df]=this[_0x1cb5('0x23')](this[_0x1cb5('0xe')][_0x1cb5('0x37')](_0x3034df)||G(_0x3034df,!0x1),[])):_0x4b8ad0[_0x1cb5('0x53')](_0x3034df);}for(const _0x45e916 of _0x4b8ad0){const _0x1ab122=_0xf91dd2[_0x1cb5('0xec')][_0x45e916];for(const _0x2073df of _0x1ab122){const _0x590593=this[_0x1cb5('0xaa')](_0x2073df),_0x122df2=_0x2073df['item'][_0x1cb5('0x103')](_0x590593);_0x118357[_0x1cb5('0x53')](_0x122df2),_0x122df2>=this[_0x1cb5('0xf1')]&&_0x1eea29['set'](_0x122df2,_0x37fa37[_0x1cb5('0x37')](_0x122df2));}}for(const _0x57f7a8 of _0x4b8ad0){const _0x4b794b=_0xf91dd2['insertions'][_0x57f7a8],_0x2dd11b=this[_0x1cb5('0x45')](_0xf91dd2['deletions'][_0x57f7a8]);let _0x4f9e37=0x0;for(const _0x48ae28 of _0x4b794b){const _0x7ff1d4=this[_0x1cb5('0xaa')](_0x48ae28),_0x46c93a=_0x48ae28[_0x1cb5('0x10')][_0x1cb5('0x103')](_0x7ff1d4);if(!_0x1eea29[_0x1cb5('0x5f')](_0x46c93a)&&!_0x2b4610[_0x1cb5('0x5f')](_0x46c93a)){if(_0x118357['has'](_0x46c93a))_0x4f9e37++;else{if(_0x46c93a!=_0x2dd11b[_0x4f9e37]){const _0x3b8568=_0x37fa37[_0x1cb5('0x37')](_0x46c93a)||_0x37fa37[_0x1cb5('0x37')](_0x2dd11b[_0x4f9e37]);for(;_0x46c93a!=_0x2dd11b[_0x4f9e37];)_0x118357[_0x1cb5('0x5f')](_0x2dd11b[_0x4f9e37])||(_0x2b4610['set'](_0x2dd11b[_0x4f9e37],_0x3b8568),_0x37fa37[_0x1cb5('0x105')](_0x2dd11b[_0x4f9e37],_0x3b8568)),_0x4f9e37++;}_0x4f9e37++;}}}}for(const _0xbabf74 of _0x4b8ad0){const _0x5a280f=_0xf91dd2[_0x1cb5('0xec')][_0xbabf74];for(const _0x31b705 of _0x5a280f){const _0x26aa18=this[_0x1cb5('0xaa')](_0x31b705),_0x4a1b0f=_0x31b705['item'][_0x1cb5('0x103')](_0x26aa18);if(_0x2b4610[_0x1cb5('0x5f')](_0x4a1b0f)){const _0x285146=_0x2b4610[_0x1cb5('0x37')](_0x4a1b0f);_0x118357[_0x1cb5('0x5f')](_0x4a1b0f)||_0x118357['set'](_0x4a1b0f,{..._0x285146}),_0x1eea29[_0x1cb5('0x105')](_0x4a1b0f,{..._0x285146});}}}for(const _0x4da42a of _0x118357[_0x1cb5('0x6c')]())_0x4da42a>=this[_0x1cb5('0xf1')]&&_0x118357[_0x1cb5('0x53')](_0x4da42a);const _0x4a0d44=new Map();for(const _0x5dfe0e of _0x4b8ad0){let _0x21f36a=_0xf91dd2[_0x1cb5('0xec')][_0x5dfe0e];for(const _0x344294 of _0x21f36a)if(_0x344294['item']['is'](_0x1cb5('0x9a'),_0x1cb5('0x92'))){const _0x3c6ddf=this[_0x1cb5('0xaa')](_0x344294),_0x31f686=_0x344294[_0x1cb5('0x10')]['getAttribute'](_0x3c6ddf);if(_0x1eea29[_0x1cb5('0x5f')](_0x31f686)){const _0x4ee62c=_0x344294[_0x1cb5('0x10')][_0x1cb5('0xa5')][_0x1cb5('0xa5')]['getAttribute'](_0x1cb5('0x15')),_0x5ecd46=_0x4a0d44[_0x1cb5('0x37')](_0x4ee62c)||new Set();_0x5ecd46['add'](_0x1eea29[_0x1cb5('0x37')](_0x31f686)[_0x1cb5('0x6d')]),_0x4a0d44['set'](_0x4ee62c,_0x5ecd46);}}_0x21f36a=_0xf91dd2[_0x1cb5('0x91')][_0x5dfe0e];for(const _0x54f957 of _0x21f36a)if(_0x54f957[_0x1cb5('0x10')]['is'](_0x1cb5('0x9a'),_0x1cb5('0x92'))){const _0x4c3c25=this[_0x1cb5('0xaa')](_0x54f957),_0x538c05=_0x54f957[_0x1cb5('0x10')][_0x1cb5('0x103')](_0x4c3c25);if(_0x118357['has'](_0x538c05)){const _0xdafcfc=_0x54f957[_0x1cb5('0x10')][_0x1cb5('0xa5')][_0x1cb5('0xa5')][_0x1cb5('0x103')]('vid_start'),_0x1341dc=_0x4a0d44[_0x1cb5('0x37')](_0xdafcfc)||new Set();_0x1341dc[_0x1cb5('0x8e')](_0x118357[_0x1cb5('0x37')](_0x538c05)[_0x1cb5('0x6d')]),_0x4a0d44[_0x1cb5('0x105')](_0xdafcfc,_0x1341dc);}}for(const _0x4743fb of _0x4a0d44[_0x1cb5('0x6c')]())(_0x1eea29[_0x1cb5('0x5f')](_0x4743fb)||_0x118357[_0x1cb5('0x5f')](_0x4743fb))&&_0x4a0d44['delete'](_0x4743fb);}for(const _0xcf1156 of _0x4b8ad0){const _0x165841=_0xf91dd2[_0x1cb5('0xec')][_0xcf1156];let _0x2f35d1=null,_0x4e17bb=null;for(const _0x192849 of _0x165841){const _0x1949e1=this[_0x1cb5('0xaa')](_0x192849),_0x14fdf6=_0x192849[_0x1cb5('0x10')][_0x1cb5('0x103')](_0x1949e1),_0xfc2ffd=_0x4a0d44[_0x1cb5('0x37')](_0x14fdf6);_0xfc2ffd&&_0x1cb5('0x59')==_0x192849[_0x1cb5('0xe7')]&&(_0x2f35d1=Array[_0x1cb5('0xed')](_0xfc2ffd)[0x0],_0x4e17bb=_0x192849[_0x1cb5('0x10')][_0x1cb5('0x103')]('vid_end')),_0x2f35d1&&(_0x118357[_0x1cb5('0x105')](_0x14fdf6,{'userId':_0x2f35d1}),_0x1eea29[_0x1cb5('0x105')](_0x14fdf6,{'userId':_0x2f35d1})),_0x14fdf6==_0x4e17bb&&(_0x2f35d1=null,_0x4e17bb=null);}}const _0x22c5e4={},_0x420758=new Set();for(const _0x215ced of _0x4b8ad0){const _0x2fffa1=_0x178d93[_0x1cb5('0x91')][_0x215ced],_0x2af6f0=_0x178d93['insertions'][_0x215ced];for(const {userId:_0x2f97ff}of this[_0x1cb5('0x107')][_0x1cb5('0xb4')]())null!==_0x2f97ff&&_0x420758['add'](_0x2f97ff);for(const {userId:_0x49dd18}of this[_0x1cb5('0x6f')]['values']())null!==_0x49dd18&&_0x420758['add'](_0x49dd18);this[_0x1cb5('0x98')](_0x2af6f0,_0xf91dd2['insertions'][_0x215ced],_0x1eea29,'insertion',_0x420758),this[_0x1cb5('0x98')](_0x2fffa1,_0xf91dd2[_0x1cb5('0x91')][_0x215ced],_0x118357,_0x1cb5('0x75'),_0x420758),_0x22c5e4[_0x215ced]={'insertions':this[_0x1cb5('0xb0')](_0x2af6f0),'deletions':this[_0x1cb5('0xb0')](_0x2fffa1),'attachChange':this[_0x1cb5('0x6f')][_0x1cb5('0x37')](_0x215ced)||null,'attributesBefore':_0x52e955(this[_0x1cb5('0x2a')][_0x1cb5('0x37')](_0x215ced))||{},'attributesAfter':_0x52e955(this['_diffRootsAttributes']['get'](_0x215ced))};}return{'diffData':_0x22c5e4,'authorsIds':Array[_0x1cb5('0xed')](_0x420758)};}[_0x1cb5('0x61')](_0x21b9a1){for(const [,_0x431eed]of _0x21b9a1['markers']){const _0x45054c=_0x431eed[_0x1cb5('0xe5')]['getAncestors']()[_0x1cb5('0x63')](_0x366c43=>'tableCell'==_0x366c43[_0x1cb5('0x4b')]);for(const _0x548c4d of _0x45054c)0x1==_0x548c4d[_0x1cb5('0xfd')]&&_0x548c4d[_0x1cb5('0x43')](0x0)['is']('element',_0x1cb5('0x40'))&&_0x548c4d[_0x1cb5('0x43')](0x0)[_0x1cb5('0x41')](_0x1cb5('0x85'),!0x0);}}['_prepareViewToSave'](_0x4c2a85){this[_0x1cb5('0x61')](_0x4c2a85);const _0x2fd018=this['editor'][_0x1cb5('0xc5')][_0x1cb5('0x7c')](_0x4c2a85,{}),_0x5c7899=Array[_0x1cb5('0xed')](_0x2fd018[_0x1cb5('0x2')]())[_0x1cb5('0xee')](_0x2f156c=>this[_0x1cb5('0x8f')](_0x2f156c));return JSON[_0x1cb5('0x49')](_0x5c7899);}[_0x1cb5('0x8f')](_0x2e9462){if(_0x2e9462['is'](_0x1cb5('0x5a')))return _0x2e9462[_0x1cb5('0xc5')];{const _0x1a017c=_0x2e9462;return{'type':Object[_0x1cb5('0x6c')](B)[_0x1cb5('0x8c')](_0x34340d=>_0x2e9462 instanceof B[_0x34340d]),'name':_0x1a017c[_0x1cb5('0x4b')],'attributes':Array[_0x1cb5('0xed')](_0x1a017c[_0x1cb5('0xe0')]()),'children':Array[_0x1cb5('0xed')](_0x1a017c['getChildren']())[_0x1cb5('0xee')](_0x5096cc=>this[_0x1cb5('0x8f')](_0x5096cc))};}}[_0x1cb5('0x98')](_0x999290,_0x4c8c42,_0x1f69c4,_0x300590,_0x5a49e1){let _0x46f5fb=null,_0x55258c=null,_0x5152cc=0x0;const _0x2191d7=this[_0x1cb5('0x31')][_0x1cb5('0x7e')];for(let _0x4202a7=0x0;_0x4202a7<_0x4c8c42['length'];_0x4202a7++){const _0x2921df=this['_getVidAttributeName'](_0x4c8c42[_0x4202a7]),_0x471b28=_0x4c8c42[_0x4202a7][_0x1cb5('0x10')][_0x1cb5('0x103')](_0x2921df),_0x2b5c06=_0x1f69c4[_0x1cb5('0x37')](_0x471b28),_0x3b1261=_0x4202a7==_0x4c8c42['length']-0x1;(!_0x46f5fb&&_0x2b5c06&&(_0x46f5fb=_0x2b5c06,_0x55258c=_0x4c8c42[_0x4202a7]),_0x46f5fb&&(!_0x2b5c06||_0x2b5c06['userId']!=_0x46f5fb[_0x1cb5('0x6d')]))&&(_0x53dbc5(_0x2b5c06,L(_0x55258c,_0x999290,_0x2191d7),L(_0x4c8c42[_0x4202a7],_0x999290,_0x2191d7)),_0x46f5fb=_0x2b5c06||null,_0x55258c=_0x2b5c06?_0x4c8c42[_0x4202a7]:null),_0x46f5fb&&_0x3b1261&&_0x53dbc5(_0x2b5c06,L(_0x55258c,_0x999290,_0x2191d7),W(_0x4c8c42[_0x4202a7],_0x999290,_0x2191d7));}function _0x53dbc5(_0x1fcc3b,_0x3a4bb1,_0x595353){const _0x588014=_0x46f5fb[_0x1cb5('0x6d')],_0x12629f=_0x1cb5('0x73')+_0x300590+':'+_0x588014+':'+_0x5152cc++,_0x2dcb33=_0x2191d7['createRange'](_0x3a4bb1,_0x595353);_0x999290['markers'][_0x1cb5('0x105')](_0x12629f,_0x2dcb33),null!==_0x588014&&_0x5a49e1['add'](_0x588014);}}['_getVidAttributeName'](_0x11247e){switch(_0x11247e[_0x1cb5('0xe7')]){case _0x1cb5('0x59'):return _0x1cb5('0x15');case _0x1cb5('0xd5'):return'vid_end';default:return _0x1cb5('0xbb');}}['_fixOperation'](_0x1132a7,_0x566fe6){_0x1132a7[_0x1cb5('0xb8')]=null;for(const _0x211054 in _0x1132a7){const _0x23974c=_0x1132a7[_0x211054];if(_0x23974c instanceof _0x157d24){const _0x4182dd=_0x566fe6[_0x1cb5('0x37')](_0x23974c[_0x1cb5('0x11')][_0x1cb5('0x27')]);_0x1132a7[_0x211054]=this[_0x1cb5('0xbf')](_0x23974c,_0x4182dd);}if(_0x23974c instanceof _0x496dde){const _0x141d07=_0x566fe6[_0x1cb5('0x37')](_0x23974c[_0x1cb5('0x11')]['rootName']);_0x1132a7[_0x211054]=this[_0x1cb5('0x2f')](_0x23974c,_0x141d07);}_0x1cb5('0x11')===_0x211054&&(_0x1132a7[_0x1cb5('0x11')]=_0x566fe6[_0x1cb5('0x37')](_0x1132a7[_0x1cb5('0x11')][_0x1cb5('0x27')]));}}[_0x1cb5('0x2f')](_0x4f8407,_0x551f24){return this[_0x1cb5('0x31')][_0x1cb5('0x7e')]['createRange'](this['_fixPosition'](_0x4f8407[_0x1cb5('0xe5')],_0x551f24),this[_0x1cb5('0xbf')](_0x4f8407[_0x1cb5('0xa1')],_0x551f24));}[_0x1cb5('0xbf')](_0x12466d,_0x3527f7){return this[_0x1cb5('0x31')]['model'][_0x1cb5('0xea')](_0x3527f7,_0x12466d['path'],_0x12466d[_0x1cb5('0xbd')]);}['_handleInsertOperation'](_0x152928){const _0xb4eae8=this[_0x1cb5('0x93')]['get'](_0x152928[_0x1cb5('0x5c')][_0x1cb5('0x11')]['rootName']),_0x2b5740=this[_0x1cb5('0xbf')](_0x152928[_0x1cb5('0x5c')],_0xb4eae8),_0x3f689f=null===_0x152928[_0x1cb5('0xcb')]?null:_0x152928[_0x1cb5('0xcb')]||this['editor'][_0x1cb5('0x5')][_0x1cb5('0x37')](_0x1cb5('0x51'))['me']['id'],_0x1de324=_0x2b5740[_0x1cb5('0xa5')],_0x1c8698=this[_0x1cb5('0xb3')],_0x3e06d8=[];for(const _0x336984 of _0x152928[_0x1cb5('0x66')])if(_0x336984['is'](_0x1cb5('0x9a')))_0x3e06d8[_0x1cb5('0x1b')](this[_0x1cb5('0xf4')](_0x336984));else for(let _0x50bfa3=0x0;_0x50bfa3<_0x336984[_0x1cb5('0x71')];_0x50bfa3++)_0x3e06d8[_0x1cb5('0x1b')](new _0x1455eb('$text',{'vid':this[_0x1cb5('0xb3')]++}));const _0x37c77=this['_revisionId'];for(let _0x212c20=_0x1c8698;_0x212c20<_0x37c77;_0x212c20++)this[_0x1cb5('0xcc')][_0x1cb5('0x105')](_0x212c20,{'userId':_0x3f689f});_0x1de324[_0x1cb5('0x6')](_0x2b5740['offset'],_0x3e06d8);}[_0x1cb5('0x5b')](_0x50666f){(_0x50666f=this[_0x1cb5('0xd2')](_0x50666f,this[_0x1cb5('0x93')]))[_0x1cb5('0x32')]();const _0x4a235c=null===_0x50666f[_0x1cb5('0xcb')]?null:_0x50666f[_0x1cb5('0xcb')]||this[_0x1cb5('0x31')][_0x1cb5('0x5')][_0x1cb5('0x37')](_0x1cb5('0x51'))['me']['id'],_0x28b590=_0x50666f[_0x1cb5('0x77')](),_0x18367b=_0x28b590['parent'],_0x514067=_0x28b590[_0x1cb5('0xa0')];!function _0x3efaf9(_0x14510e,_0x10f408,_0x1c23a4,_0x351a95){for(let _0x44cfc1=_0x1c23a4;_0x44cfc1<_0x351a95;_0x44cfc1++){const _0xf7dd41=_0x10f408[_0x1cb5('0x43')](_0x44cfc1);_0xf7dd41['is']('element','$text')?_0x14510e[_0x1cb5('0x105')](_0xf7dd41[_0x1cb5('0x103')](_0x1cb5('0xbb')),{'userId':_0x4a235c}):(_0x14510e['set'](_0xf7dd41['getAttribute']('vid_start'),{'userId':_0x4a235c}),_0x3efaf9(_0x14510e,_0xf7dd41,0x0,_0xf7dd41[_0x1cb5('0xfd')]),_0x14510e[_0x1cb5('0x105')](_0xf7dd41[_0x1cb5('0x103')](_0x1cb5('0xfa')),{'userId':_0x4a235c}));}}(this[_0x1cb5('0xcc')],_0x18367b,_0x514067,_0x514067+_0x50666f['howMany']);}[_0x1cb5('0x79')](_0x235271){const _0x48161d=null===(_0x235271=this['_cloneOperation'](_0x235271,this[_0x1cb5('0x93')]))[_0x1cb5('0xcb')]?null:_0x235271[_0x1cb5('0xcb')]||this[_0x1cb5('0x31')]['plugins']['get'](_0x1cb5('0x51'))['me']['id'],_0x851a90=_0x235271[_0x1cb5('0x101')][_0x1cb5('0xa5')],_0x94d2c5=_0x235271[_0x1cb5('0x8d')][_0x1cb5('0xa5')],_0xcc92a8=_0x851a90[_0x1cb5('0x103')]('vid_end'),_0x5b57c7=_0x94d2c5[_0x1cb5('0x103')](_0x1cb5('0x15'));_0x851a90[_0x1cb5('0x41')](_0x1cb5('0xfa'),_0x94d2c5[_0x1cb5('0x103')](_0x1cb5('0xfa'))),_0x94d2c5[_0x1cb5('0x41')](_0x1cb5('0xfa'),_0xcc92a8),this['_touched'][_0x1cb5('0x105')](_0x5b57c7,{'userId':_0x48161d}),this[_0x1cb5('0xcc')][_0x1cb5('0x105')](_0xcc92a8,{'userId':_0x48161d}),_0x235271[_0x1cb5('0x32')]();}[_0x1cb5('0xf7')](_0x4d6cad){const _0x2a7b8f=null===(_0x4d6cad=this[_0x1cb5('0xd2')](_0x4d6cad,this[_0x1cb5('0x93')]))[_0x1cb5('0xcb')]?null:_0x4d6cad['_authorId']||this['editor'][_0x1cb5('0x5')][_0x1cb5('0x37')](_0x1cb5('0x51'))['me']['id'],_0xb87a6b=_0x4d6cad[_0x1cb5('0xeb')],_0x36aa84=_0x4d6cad['splitPosition'][_0x1cb5('0xa5')];_0x4d6cad[_0x1cb5('0x32')]();const _0x544b34=_0x36aa84[_0x1cb5('0x103')](_0x1cb5('0xfa')),_0x34feac=_0x4d6cad[_0x1cb5('0xc8')]['nodeAfter'];if(_0xb87a6b){const _0x1da3f0=_0x34feac[_0x1cb5('0x103')](_0x1cb5('0xfa')),_0x3e7bc2=_0x36aa84[_0x1cb5('0x103')]('vid_end');_0x36aa84[_0x1cb5('0x41')](_0x1cb5('0xfa'),_0x1da3f0),_0x34feac[_0x1cb5('0x41')]('vid_end',_0x3e7bc2),this[_0x1cb5('0xcc')][_0x1cb5('0x105')](_0x36aa84[_0x1cb5('0x103')](_0x1cb5('0xfa')),{'userId':_0x2a7b8f}),this[_0x1cb5('0xcc')][_0x1cb5('0x105')](_0x34feac['getAttribute'](_0x1cb5('0x15')),{'userId':_0x2a7b8f});}else{const _0x49e745=this[_0x1cb5('0xb3')]++,_0x4ba4be=this[_0x1cb5('0xb3')]++;_0x36aa84[_0x1cb5('0x41')]('vid_end',_0x49e745),_0x34feac['_setAttribute'](_0x1cb5('0x15'),_0x4ba4be),_0x34feac[_0x1cb5('0x41')](_0x1cb5('0xfa'),_0x544b34),this[_0x1cb5('0xcc')][_0x1cb5('0x105')](_0x49e745,{'userId':_0x2a7b8f}),this[_0x1cb5('0xcc')]['set'](_0x4ba4be,{'userId':_0x2a7b8f});}}[_0x1cb5('0x3a')](_0x125232){if(!_0x125232[_0x1cb5('0xa4')])return;const _0x5285b1=(_0x125232=this['_cloneOperation'](_0x125232,this[_0x1cb5('0xc2')]))['oldRange']?_0x125232[_0x1cb5('0x52')][_0x1cb5('0x11')]:null,_0x4ed7b2=_0x125232[_0x1cb5('0xce')]?_0x125232[_0x1cb5('0xce')][_0x1cb5('0x11')]:null;_0x5285b1&&this[_0x1cb5('0x67')]['delete'](_0x125232[_0x1cb5('0x4b')]),_0x4ed7b2&&this[_0x1cb5('0x67')][_0x1cb5('0x105')](_0x125232['name'],_0x125232[_0x1cb5('0xce')]['clone']());const _0x123106=null===_0x125232[_0x1cb5('0xcb')]?null:_0x125232[_0x1cb5('0xcb')]||this['editor'][_0x1cb5('0x5')][_0x1cb5('0x37')]('Users')['me']['id'],_0x3c6901=_0x125232[_0x1cb5('0x4b')];if(!this['_touchedMarkers'][_0x1cb5('0x5f')](_0x3c6901))return void this[_0x1cb5('0x107')][_0x1cb5('0x105')](_0x3c6901,{'range':_0x125232[_0x1cb5('0x52')],'userId':_0x123106});const _0x363db0=this[_0x1cb5('0x107')]['get'](_0x3c6901),_0x52d630=_0x363db0[_0x1cb5('0x14')],_0x31961c=_0x125232[_0x1cb5('0xce')];null==_0x52d630&&null==_0x31961c||_0x52d630&&_0x31961c&&_0x52d630[_0x1cb5('0xd7')](_0x31961c)?this[_0x1cb5('0x107')][_0x1cb5('0x53')](_0x125232[_0x1cb5('0x4b')]):_0x363db0[_0x1cb5('0x6d')]=_0x123106;}['_handleRootOperation'](_0x200fcc,_0x1726b5){this[_0x1cb5('0xc2')][_0x1cb5('0x5f')](_0x200fcc[_0x1cb5('0x27')])?this[_0x1cb5('0xc2')][_0x1cb5('0x37')](_0x200fcc['rootName'])[_0x1cb5('0xa6')]=_0x200fcc[_0x1cb5('0x80')]:(this[_0x1cb5('0xc2')][_0x1cb5('0x105')](_0x200fcc[_0x1cb5('0x27')],G(_0x200fcc[_0x1cb5('0x27')],!0x0)),this[_0x1cb5('0xbe')][_0x1cb5('0x105')](_0x200fcc['rootName'],{}),_0x1726b5&&this[_0x1cb5('0x93')][_0x1cb5('0x105')](_0x200fcc[_0x1cb5('0x27')],G(_0x200fcc[_0x1cb5('0x27')],!0x0)));const _0x124d34=null===_0x200fcc[_0x1cb5('0xcb')]?null:_0x200fcc['_authorId']||this[_0x1cb5('0x31')][_0x1cb5('0x5')]['get']('Users')['me']['id'],_0x2c2982=this[_0x1cb5('0x6f')][_0x1cb5('0x37')](_0x200fcc[_0x1cb5('0x27')]);_0x2c2982&&_0x2c2982[_0x1cb5('0x6d')]===_0x124d34?this[_0x1cb5('0x6f')][_0x1cb5('0x53')](_0x200fcc[_0x1cb5('0x27')]):this[_0x1cb5('0x6f')][_0x1cb5('0x105')](_0x200fcc[_0x1cb5('0x27')],{'userId':_0x124d34,'isAttached':_0x200fcc[_0x1cb5('0x80')]});}[_0x1cb5('0x3')](_0x349979){const _0x1d6598=this[_0x1cb5('0xbe')][_0x1cb5('0x37')](_0x349979['root'][_0x1cb5('0x27')]);null===_0x349979[_0x1cb5('0xc')]?delete _0x1d6598[_0x349979[_0x1cb5('0xf9')]]:_0x1d6598[_0x349979[_0x1cb5('0xf9')]]=_0x349979['newValue'];}}function q(_0x5c64fc){const _0xf75d4=G(_0x5c64fc[_0x1cb5('0x27')],_0x5c64fc[_0x1cb5('0x86')]());for(const _0x56558a of _0x5c64fc[_0x1cb5('0x2')]()){const _0x3d621a=_0x56558a[_0x1cb5('0x81')](!0x0);_0xf75d4[_0x1cb5('0x100')](_0x3d621a);}return _0xf75d4;}function G(_0x55a733,_0x2c75cb=!0x0){const _0x115fea=new _0x339015();return _0x115fea[_0x1cb5('0x27')]=_0x55a733,_0x115fea[_0x1cb5('0xa6')]=_0x2c75cb,_0x115fea[_0x1cb5('0x86')]=()=>_0x115fea['_isAttached'],_0x115fea;}function L(_0x36e396,_0x362dff,_0x238b7b){const _0x3d0612=_0x1cb5('0xd5')==_0x36e396['type']?_0x238b7b[_0x1cb5('0x74')](_0x36e396[_0x1cb5('0x10')],_0x1cb5('0xa1')):_0x238b7b['createPositionBefore'](_0x36e396[_0x1cb5('0x10')]);return _0x238b7b[_0x1cb5('0xea')](_0x362dff,_0x3d0612[_0x1cb5('0x35')],_0x3d0612['stickiness']);}function W(_0x17bfac,_0x4112a3,_0x396dd4){const _0x3e03ba='elementStart'==_0x17bfac['type']?_0x396dd4[_0x1cb5('0x74')](_0x17bfac['item'],0x0):_0x396dd4[_0x1cb5('0x7f')](_0x17bfac['item']);return _0x396dd4[_0x1cb5('0xea')](_0x4112a3,_0x3e03ba[_0x1cb5('0x35')],_0x3e03ba['stickiness']);}
23
+ const _0x5107=['buildRevisionData','filter','element','revision','$text','howMany','getAncestors','setRevisionData','_update','string','userId','_handleSplitOperation','_markers','conversion','_touched','updateRevisions','root','createPositionBefore','setSource','fromEntries','Users','revision:','_removePendingAction','_reset','name','start','markerToData','_diffRootsAttributes','getAttributes','push','addRevisionData','getAttribute','_revisionDataBuilder','creatorId','_getVidAttributeName','clone','_createFromRanges','oldRange','_removeMetaData','find','toView','getRoot','_authorId','authors','get','_touchedRoots','_createCurrentRevision','processor','for','addRootAttribute','insert','insertions','getRevisionRootsAttributes','elementStart','_loadState','elementEnd','_baseRootsAttributes','shift','rootsAttributes','Empty\x20document','startsWith','map','paragraph','_handleMarkerOperation','getData','_insertChild','split','locale','_lastTo','key','addRevision','_touchedMarkers','createPositionAt','path','_getViewJson','init','sort','update','merge','_prepareViewToSave','_generateTape','_startingVersion','_diffRoots','_fixPosition','delete','data','deletion','_setAttribute','editing','PENDING_ACTION_REVISION_HISTORY','offset','collaboration.channelId','_getBaseVids','afterInit','_baseRoots','marked','getCurrentRevisionId','loadState','getLatestVersion','_getFromVersion','_markChanges','requires','createRange','getChild','max','values','_makeModelFromViewString','range','_pendingAction','newRange','_makeIdsRoot','_handleMoveOperation','getNodeByPath','authorsIds','isAdd','children','config','version','add','useFillerType','attributesBefore','length','roots','documentFragment','history','attributes','upcast','stringify','createPositionFromPath','isReady','getRevisionDocumentData','sendBufferedUpdates','getOperation','getUser','$graveyard','type','_replaceEditorDataWithRevisionData','repository','_cloneOperation','_getState','toVersion','forEach','adapter','_source','model','getTransformedByOperation','_getPreviousFrom','_continueCurrentRevision','reInit','_setConversion','getRootNames','getChildren','_saveMetaData','_createInitialRevision','_copyMarkers','rootName','childCount','_handleRootOperation','_lastFrom','attachChange','plugins','_fixRange','data-revision-','currentRevision','resolve','nodeAfter','createdAt','default','getMovedRangeStart','previousPosition','keepParagraph','from','Initial\x20revision','NEGATIVE_INFINITY','isEqual','view','_transformMarkers','editor-initial-data-replaced-with-revision-data','_isPendingUpdate','end','_bufferUpdate','_isInit','move','_loadedStateData','_isAttached','nodes','offsetSize','size','creator','includes','_makeRevision','isAttached','tableCell','createRangeIn','_execute','_appendChild','_findInsertionIndex','fromVersion','_calculateMetaData','deletions','_removeRevisionMarkers','getWalker','has','_handleInsertOperation','_fixOperation','stickiness','_idsRoots','addRoot','then','vid_end','getRevisions','hasContent','getRevision','attributesAfter','parent','reverse','remove','parse','_handleMergeOperation','item','reinsert','revisionHistory.resumeUnsavedRevision','position','_addPendingAction','diffData','markers','finally','vid','getTime','dataToMarker','RevisionTracker','define','set','newValue','_loadRevisionData','_revisionId','_handleOperation','keys','_handleRootAttributeOperation','getIndex','editor','initial','marker','vid_start','trim','_startingRevisionId','_bufferedUpdates','_processRootBeforeSave','slice','source','clear','_savedMetaData','insertion','PendingActions','_operations','document','RealTimeCollaborationClient','_initialRevisionId','affectsData','initialData','_clone','_baseIdsRoots'];(function(_0x1900de,_0x5107c7){const _0x210154=function(_0x28151f){while(--_0x28151f){_0x1900de['push'](_0x1900de['shift']());}};_0x210154(++_0x5107c7);}(_0x5107,0xcd));const _0x2101=function(_0x1900de,_0x5107c7){_0x1900de=_0x1900de-0x0;let _0x210154=_0x5107[_0x1900de];return _0x210154;};import{Users as _0x4057f2}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x56b4e8,PendingActions as _0xefaa67}from'ckeditor5/src/core';import{logWarning as _0x486b21,uid as _0x4b524a}from'ckeditor5/src/utils';import{Position as _0x372bce,Range as _0x495a05,Element as _0x25fef9,DocumentFragment as _0x4ab913,ViewText as _0x9942ef,ViewElement as _0x3892a0,ViewContainerElement as _0x86e474,ViewAttributeElement as _0x190749,ViewEmptyElement as _0x34c5f9,ViewRawElement as _0x46b943,ViewUIElement as _0x57d5ec,ViewDocumentFragment as _0xa1f4f6}from'ckeditor5/src/engine';import _0x517989 from'./revisionsrepository';import{getTranslation as _0x138e66}from'./utils/common-translations';import{cloneDeep as _0x1e65fb,isEqual as _0x31c93d}from'lodash-es';const B={'c':_0x86e474,'a':_0x190749,'e':_0x34c5f9,'r':_0x46b943,'u':_0x57d5ec};export default class l extends _0x56b4e8{static get['pluginName'](){return _0x2101('0x19');}static get[_0x2101('0x9e')](){return[_0x4057f2,_0x517989,_0xefaa67];}constructor(_0x3ee674){super(_0x3ee674),this[_0x2101('0xc7')]=null,this[_0x2101('0xdc')]=null,this[_0x2101('0x59')]=new H(this[_0x2101('0x23')]),this[_0x2101('0x34')]=this[_0x2101('0x23')][_0x2101('0xad')][_0x2101('0x65')](_0x2101('0x94'))||_0x2101('0x24'),this[_0x2101('0x29')]=new Map(),this['_loadedStateData']=null;const _0x624447=_0x4b524a();this[_0x2101('0xc8')]={'history':this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0x32')]['history'],'getLatestVersion':()=>Promise['resolve'](this['editor'][_0x2101('0xc9')][_0x2101('0x32')][_0x2101('0xae')]),'getCurrentRevisionId':()=>_0x624447},this[_0x2101('0x1b')](_0x2101('0xba'),!0x1),this[_0x2101('0x1b')]('isEnabled',!0x0),this['set'](_0x2101('0xeb'),!0x1),this[_0x2101('0x23')][_0x2101('0xad')][_0x2101('0x1a')](_0x2101('0x10'),!0x0),this[_0x2101('0x23')][_0x2101('0x46')][_0x2101('0x69')](_0x2101('0xb7'))[_0x2101('0x18')]({'view':_0x2101('0x3c')});}[_0x2101('0x84')](){this[_0x2101('0xc2')]=this['editor'][_0x2101('0xd9')][_0x2101('0x65')]('RevisionsRepository'),this[_0x2101('0xce')](),this[_0x2101('0x23')][_0x2101('0x8e')]['on']('ready',()=>{const _0x5b2cbb=this[_0x2101('0xc2')][_0x2101('0x7')](0x0),_0x3d1deb=_0x5b2cbb&&null===_0x5b2cbb[_0x2101('0xf5')]?_0x5b2cbb:null;if(this[_0x2101('0xcc')]=!!_0x3d1deb&&this[_0x2101('0x23')][_0x2101('0xad')][_0x2101('0x65')](_0x2101('0x10')),this['editor']['plugins'][_0x2101('0x103')](_0x2101('0x33'))){const _0x3da783=this['_source']['getCurrentRevisionId'](),_0x3f1374=this[_0x2101('0xc2')]['getRevision'](_0x3da783);if(_0x3f1374)this[_0x2101('0x8a')]=_0x3f1374[_0x2101('0xfe')],this[_0x2101('0xcc')]=!0x1;else{const _0x55a944=this[_0x2101('0xc8')][_0x2101('0xb5')][_0x2101('0x31')][_0x2101('0x60')](_0x47f7c6=>!_0x47f7c6[_0x2101('0xee')]),_0x16fe8f=_0x55a944?_0x55a944['baseVersion']:this['_source']['history']['version'];_0x5b2cbb?(_0x5b2cbb['toVersion']<_0x16fe8f&&_0x5b2cbb[_0x2101('0x41')]({'toVersion':_0x16fe8f}),this[_0x2101('0xcc')]?(this[_0x2101('0xc8')]['getCurrentRevisionId']=()=>_0x3d1deb['id'],this[_0x2101('0x8a')]=_0x3d1deb[_0x2101('0xfe')]):(this[_0x2101('0x8a')]=_0x5b2cbb[_0x2101('0xc5')],this[_0x2101('0xcc')]=!0x1)):(this[_0x2101('0x8a')]=_0x16fe8f,this[_0x2101('0xcc')]=!0x1);}}else _0x3d1deb&&(this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0x32')][_0x2101('0xb5')][_0x2101('0xae')]=Math[_0x2101('0xa1')](_0x3d1deb['toVersion'],this['editor']['model'][_0x2101('0x32')][_0x2101('0xb5')][_0x2101('0xae')]),_0x3d1deb[_0x2101('0xfe')]===_0x3d1deb['toVersion']?(0x0!==_0x3d1deb[_0x2101('0xfe')]&&(this[_0x2101('0xc8')]['getCurrentRevisionId']=()=>_0x3d1deb['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this[_0x2101('0xc8')][_0x2101('0x99')]=()=>_0x3d1deb['id'],this[_0x2101('0x8a')]=_0x3d1deb[_0x2101('0xfe')])),this['_continueCurrentRevision']||(this[_0x2101('0x8a')]=this[_0x2101('0x23')]['model'][_0x2101('0x32')][_0x2101('0xae')]);this['_revisionDataBuilder']['init'](this[_0x2101('0xc8')][_0x2101('0xb5')]),this[_0x2101('0xd2')](this[_0x2101('0x8a')]),this[_0x2101('0x67')](this[_0x2101('0x8a')]),this['adapter']&&this[_0x2101('0xbc')]();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x46b4fa=>!_0x46b4fa);}async[_0x2101('0x96')](){if(this[_0x2101('0xc2')][_0x2101('0xb2')]>0x0){const _0x6ebee2=this['repository']['getRevision'](0x0),_0x1375d6=await this[_0x2101('0xbb')](_0x6ebee2),_0x5200f8=await this[_0x2101('0x6d')](_0x6ebee2);this[_0x2101('0xc1')](_0x1375d6,_0x5200f8);}}[_0x2101('0x4b')](_0xc14566){this['_source']=_0xc14566;}async[_0x2101('0x86')](){const _0xa6a251=await this[_0x2101('0xc8')]['getLatestVersion']();if(_0xa6a251>this[_0x2101('0xdc')][_0x2101('0xc5')]){await this[_0x2101('0x6f')]();const _0xad9ff1=this[_0x2101('0x39')]({'revision':this[_0x2101('0xdc')],'to':_0xa6a251});_0xad9ff1['authors']=_0xad9ff1[_0x2101('0xaa')][_0x2101('0x76')](_0x2289bf=>this[_0x2101('0x23')][_0x2101('0xd9')][_0x2101('0x65')](_0x2101('0x4d'))[_0x2101('0xbe')](_0x2289bf)),this[_0x2101('0xdc')][_0x2101('0x41')](_0xad9ff1);}}async[_0x2101('0x6f')](){this[_0x2101('0xcc')]&&!this['_loadedStateData']&&(await this[_0x2101('0x1d')](this[_0x2101('0xdc')]),this[_0x2101('0x59')][_0x2101('0x9a')](this['currentRevision']),this[_0x2101('0xf0')]={'fromVersion':this[_0x2101('0xdc')][_0x2101('0xfe')],'authors':this['currentRevision'][_0x2101('0x64')][_0x2101('0x2b')]()});}async['saveRevision'](_0x5ef0b7={},_0x1aff7f=null){const _0x5cb750=[];await this[_0x2101('0x6f')](),this[_0x2101('0xcc')]=!0x1,_0x1aff7f>this[_0x2101('0xdc')]['toVersion']&&(_0x1aff7f=null),null===_0x1aff7f&&(_0x1aff7f=await this[_0x2101('0xc8')][_0x2101('0x9b')]());const _0x4b6304=this[_0x2101('0x9c')](_0x1aff7f),_0x5df4db=this['buildRevisionData']({'from':_0x4b6304,'to':_0x1aff7f});if(this[_0x2101('0xdc')][_0x2101('0xc5')]<_0x1aff7f){const _0x36e646=this[_0x2101('0x39')]({'revision':this['currentRevision'],'from':_0x1aff7f,'to':_0x1aff7f});_0x36e646[_0x2101('0x64')]=[],_0x36e646[_0x2101('0xaa')]=[],_0x36e646['id']=this[_0x2101('0xdc')]['id'],this['currentRevision'][_0x2101('0x41')](_0x36e646,!0x0),delete _0x36e646[_0x2101('0x64')],_0x5cb750[_0x2101('0x56')](_0x36e646);}_0x5ef0b7['creatorId']=this[_0x2101('0x23')]['plugins'][_0x2101('0x65')](_0x2101('0x4d'))['me']['id'],_0x5ef0b7[_0x2101('0x51')]=_0x5ef0b7[_0x2101('0x51')]||null,_0x5ef0b7['id']=_0x5ef0b7['id']||_0x4b524a(),_0x5ef0b7={..._0x5ef0b7,..._0x5df4db};const _0x5645b1=this[_0x2101('0x57')](_0x5ef0b7);_0x5cb750[_0x2101('0x56')](_0x5ef0b7);const _0xa46976=this[_0x2101('0xc2')][_0x2101('0x22')](_0x5645b1);if(0x0!==_0xa46976){const _0x673074=this[_0x2101('0xc2')][_0x2101('0x7')](_0xa46976-0x1);if(_0x673074[_0x2101('0xfe')]!==_0x1aff7f){const _0x4a2533=this['_revisionDataBuilder'][_0x2101('0x79')](_0x1aff7f,_0x673074['toVersion']),_0x3aecfb={'id':_0x673074['id'],'diffData':_0x4a2533['diffData'],'authorsIds':_0x4a2533[_0x2101('0xaa')],'authors':_0x4a2533[_0x2101('0xaa')]['map'](_0x34febc=>this[_0x2101('0x23')][_0x2101('0xd9')][_0x2101('0x65')](_0x2101('0x4d'))[_0x2101('0xbe')](_0x34febc)),'fromVersion':_0x1aff7f};_0x673074===this['currentRevision']&&(_0x3aecfb[_0x2101('0xdf')]=new Date(_0x5ef0b7[_0x2101('0xdf')][_0x2101('0x17')]()+0xa)),_0x673074[_0x2101('0x41')](_0x3aecfb,!0x0),delete _0x3aecfb['authors'],_0x5cb750[_0x2101('0x56')](_0x3aecfb);}}if(this[_0x2101('0xc7')]){for(const _0x3971bd of _0x5cb750)this['_bufferUpdate'](_0x3971bd['id'],_0x3971bd,!0x0);this['sendBufferedUpdates']();}return _0x5645b1;}[_0x2101('0x57')](_0x5612f6){const _0x5aef89=this[_0x2101('0xc2')]['createRevision'](_0x5612f6);return this[_0x2101('0xc7')]&&_0x5aef89['on'](_0x2101('0x41'),(_0x154c66,_0x2e2eb8,_0x509686)=>{_0x509686||(this[_0x2101('0xed')](_0x2e2eb8['id'],_0x2e2eb8,!0x0),this[_0x2101('0xbc')]());}),this[_0x2101('0xc2')][_0x2101('0x7f')](_0x5aef89,this[_0x2101('0xfd')](_0x5aef89)),_0x5aef89;}async[_0x2101('0xbb')](_0x5c023c){await this[_0x2101('0x1d')](_0x5c023c);const _0x2dad83={};for(const _0x4855c9 in _0x5c023c[_0x2101('0x13')]){if(_0x5c023c[_0x2101('0x13')][_0x4855c9][_0x2101('0xd8')]&&!_0x5c023c[_0x2101('0x13')][_0x4855c9][_0x2101('0xd8')][_0x2101('0xf8')])continue;const _0x2b9a4d=this[_0x2101('0x101')](JSON[_0x2101('0xc')](_0x5c023c[_0x2101('0x13')][_0x4855c9][_0x2101('0x6c')])),_0x181653=this[_0x2101('0x23')][_0x2101('0x91')][_0x2101('0xe8')][_0x2101('0x32')],_0x4edbdb=new _0xa1f4f6(_0x181653,_0x2b9a4d[_0x2101('0x76')](_0x5b1b8a=>J(_0x5b1b8a,this[_0x2101('0x23')])));this[_0x2101('0x23')]['data'][_0x2101('0x68')][_0x2101('0xb0')](_0x2101('0x98')),_0x2dad83[_0x4855c9]=this[_0x2101('0x23')][_0x2101('0x8e')][_0x2101('0x68')]['toData'](_0x4edbdb),this[_0x2101('0x23')][_0x2101('0x8e')][_0x2101('0x68')][_0x2101('0xb0')](_0x2101('0xe0'));}return _0x2dad83;}async[_0x2101('0x6d')](_0x281343){await this[_0x2101('0x1d')](_0x281343);const _0x4fd8ca={};for(const _0x3a26f6 in _0x281343[_0x2101('0x13')])_0x281343[_0x2101('0x13')][_0x3a26f6][_0x2101('0xd8')]&&!_0x281343[_0x2101('0x13')][_0x3a26f6][_0x2101('0xd8')]['isAttached']||(_0x4fd8ca[_0x3a26f6]=_0x281343['diffData'][_0x3a26f6][_0x2101('0x8')]||{});return _0x4fd8ca;}['sendBufferedUpdates'](){if(0x0===this[_0x2101('0x29')][_0x2101('0xf4')])return;if(this['_isPendingUpdate'])return;let _0x222ae2=Array[_0x2101('0xe4')](this[_0x2101('0x29')]['values']());this[_0x2101('0x29')][_0x2101('0x2d')]();for(let _0x509efa=0x0;_0x509efa<_0x222ae2['length'];_0x509efa++){const _0x51d4dd=_0x222ae2[_0x509efa];let _0x526237=!0x1;for(const _0x55fb44 of Object[_0x2101('0x20')](_0x51d4dd))void 0x0===_0x51d4dd[_0x55fb44]?delete _0x51d4dd[_0x55fb44]:'id'!==_0x55fb44&&(_0x526237=!0x0);_0x526237||(_0x222ae2[_0x509efa]=null);}if(_0x222ae2=_0x222ae2[_0x2101('0x3a')](_0x391d14=>null!==_0x391d14),!_0x222ae2[_0x2101('0xb2')])return;for(let _0x57c2ec=0x0;_0x57c2ec<_0x222ae2[_0x2101('0xb2')];_0x57c2ec++){const _0x1544e8=_0x222ae2[_0x57c2ec];void 0x0!==_0x1544e8['fromVersion']&&void 0x0===_0x1544e8[_0x2101('0xc5')]&&(_0x1544e8[_0x2101('0xc5')]=this['repository'][_0x2101('0x7')](_0x1544e8['id'])[_0x2101('0xc5')]),void 0x0!==_0x1544e8[_0x2101('0xc5')]&&void 0x0===_0x1544e8[_0x2101('0xfe')]&&(_0x1544e8[_0x2101('0xfe')]=this['repository'][_0x2101('0x7')](_0x1544e8['id'])[_0x2101('0xfe')]);}const _0x405148=this['editor'][_0x2101('0xad')][_0x2101('0x65')](_0x2101('0x94'));this['_isPendingUpdate']=!0x0,this[_0x2101('0x12')](),this['adapter'][_0x2101('0x48')](_0x222ae2,_0x405148)[_0x2101('0x15')](()=>{this[_0x2101('0xeb')]=!0x1;})[_0x2101('0x3')](_0x174dd7=>{if(_0x174dd7)for(const _0x21e897 of _0x174dd7)this[_0x2101('0x40')]({'id':_0x21e897['id'],'createdAt':_0x21e897['createdAt']});this[_0x2101('0x4f')](),this[_0x2101('0xbc')]();});}[_0x2101('0xc1')](_0x180081,_0x300ed0){let _0x4c002a=this[_0x2101('0x23')][_0x2101('0xad')][_0x2101('0x65')](_0x2101('0x36')),_0x4bdc71=this[_0x2101('0x23')]['config'][_0x2101('0x65')]('rootsAttributes');if(void 0x0===_0x4c002a){_0x4c002a={};for(const _0x322d12 of this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0x32')][_0x2101('0xcf')]())_0x4c002a[_0x322d12]='';}if(_0x2101('0x42')==typeof _0x4c002a&&(_0x4c002a={'main':_0x4c002a}),void 0x0===_0x4bdc71){_0x4bdc71={};for(const _0x295aa1 of this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0x32')][_0x2101('0xcf')]())_0x4bdc71[_0x295aa1]={};}let _0x3ba4ed=!0x1;const _0x207357=Object[_0x2101('0x20')](_0x4c002a),_0x580b86=Object[_0x2101('0x20')](_0x180081);for(const _0x2618df of _0x207357){if(_0x4c002a[_0x2618df]!==_0x180081[_0x2618df]&&''!==_0x4c002a[_0x2618df][_0x2101('0x27')]()){_0x3ba4ed=!0x0;break;}if(!_0x31c93d(_0x4bdc71[_0x2618df],_0x300ed0[_0x2618df])&&Object[_0x2101('0x20')](_0x4bdc71[_0x2618df])[_0x2101('0xb2')]>0x0){_0x3ba4ed=!0x0;break;}}_0x3ba4ed||(_0x3ba4ed=_0x580b86['some'](_0x748188=>!this[_0x2101('0x23')]['model'][_0x2101('0x32')][_0x2101('0x62')](_0x748188))),_0x3ba4ed&&_0x486b21(_0x2101('0xea'),{'editorData':_0x4c002a,'editorRootsAttributes':_0x4bdc71,'revisionData':_0x180081,'revisionRootsAttributes':_0x300ed0}),this[_0x2101('0x23')][_0x2101('0xad')][_0x2101('0x1b')](_0x2101('0x36'),_0x180081),this['editor']['config'][_0x2101('0x1b')](_0x2101('0x73'),_0x300ed0);}['_addPendingAction'](){if(!this[_0x2101('0xa5')]){const _0x1ebace=this['editor'][_0x2101('0xd9')][_0x2101('0x65')](_0x2101('0x30'));this['_pendingAction']=_0x1ebace[_0x2101('0xaf')](_0x138e66(this['editor'][_0x2101('0x7c')],_0x2101('0x92')));}}[_0x2101('0x4f')](){this[_0x2101('0xa5')]&&(this[_0x2101('0x23')][_0x2101('0xd9')]['get'](_0x2101('0x30'))[_0x2101('0xb')](this['_pendingAction']),this[_0x2101('0xa5')]=null);}['_findInsertionIndex'](_0x898eb2){const _0xb5da44=this[_0x2101('0xc2')][_0x2101('0x5')]();_0xb5da44[_0x2101('0xa')]();let _0x5cbf9b=0x0;for(;_0x5cbf9b<_0xb5da44[_0x2101('0xb2')];){const _0x433f27=_0xb5da44[_0x5cbf9b];if(_0x433f27===this[_0x2101('0xdc')]){_0x5cbf9b++;continue;}if(_0x433f27['id']===this[_0x2101('0x34')])break;const _0x11c465=_0x898eb2[_0x2101('0xc5')]-_0x433f27[_0x2101('0xc5')]||_0x898eb2['fromVersion']-_0x433f27[_0x2101('0xfe')];if(_0x11c465>0x0)break;if(_0x11c465<0x0)_0x5cbf9b++;else{if(!_0x898eb2['creator']&&_0x433f27[_0x2101('0xf5')])break;if(_0x433f27[_0x2101('0xf5')]||!_0x898eb2[_0x2101('0xf5')]){if(_0x898eb2['createdAt']>_0x433f27['createdAt'])break;_0x5cbf9b++;}else _0x5cbf9b++;}}return _0x5cbf9b;}[_0x2101('0x40')](_0xfa62c9){const _0x40e4ef=this['repository'][_0x2101('0x7')](_0xfa62c9['id']);if(_0xfa62c9['createdAt']&&(_0xfa62c9[_0x2101('0xdf')]=new Date(_0xfa62c9[_0x2101('0xdf')])),_0xfa62c9[_0x2101('0xaa')]){const _0x47877e=this['editor']['plugins'][_0x2101('0x65')](_0x2101('0x4d'));_0xfa62c9[_0x2101('0x64')]=_0xfa62c9[_0x2101('0xaa')]['map'](_0x3bc073=>_0x47877e[_0x2101('0xbe')](_0x3bc073));}_0x40e4ef[_0x2101('0x41')](_0xfa62c9,!0x0);}[_0x2101('0x39')]({revision:_0x15ea68=null,from:_0x473c01=null,to:_0x23dd1d=null}){_0x473c01=null!==_0x473c01?_0x473c01:_0x15ea68[_0x2101('0xfe')],_0x23dd1d=null!==_0x23dd1d?_0x23dd1d:_0x15ea68['toVersion'];const _0x26a495=this['_revisionDataBuilder'][_0x2101('0x79')](_0x473c01,_0x23dd1d),_0x1bb1cd={'diffData':_0x26a495[_0x2101('0x13')],'authorsIds':_0x26a495[_0x2101('0xaa')],'fromVersion':_0x473c01,'toVersion':_0x23dd1d};if(!_0x15ea68||_0x23dd1d!==_0x15ea68[_0x2101('0xc5')]){const _0x351d03=_0x23dd1d-0x1,_0x458ee9=this['_source'][_0x2101('0xb5')][_0x2101('0xbd')](_0x351d03);_0x1bb1cd[_0x2101('0xdf')]=_0x458ee9&&_0x458ee9[_0x2101('0xdf')]||new Date();}if(this[_0x2101('0xf0')]&&_0x473c01===this[_0x2101('0xf0')][_0x2101('0xfe')])for(const _0x25eaac of this['_loadedStateData'][_0x2101('0x64')])_0x1bb1cd[_0x2101('0xaa')][_0x2101('0xf6')](_0x25eaac['id'])||_0x1bb1cd[_0x2101('0xaa')][_0x2101('0x56')](_0x25eaac['id']);return _0x1bb1cd;}[_0x2101('0x1d')](_0x47f0c1){if(!_0x47f0c1||_0x47f0c1[_0x2101('0x13')])return Promise[_0x2101('0xdd')]();{const _0x49b6d1=this['editor'][_0x2101('0xad')]['get'](_0x2101('0x94'));return this[_0x2101('0xc7')]['getRevision']({'channelId':_0x49b6d1,'revisionId':_0x47f0c1['id']})[_0x2101('0x3')](_0x255472=>{_0x47f0c1[_0x2101('0x13')]=_0x255472[_0x2101('0x13')];});}}[_0x2101('0xed')](_0xcc5373,_0xce31bb,_0x9b145e){if(this[_0x2101('0x29')]['has'](_0xcc5373)){const _0x24c40b=this[_0x2101('0x29')]['get'](_0xcc5373);_0xce31bb=_0x9b145e?{..._0x24c40b,..._0xce31bb}:{..._0xce31bb,..._0x24c40b};}this[_0x2101('0x29')][_0x2101('0x1b')](_0xcc5373,_0xce31bb);}['_getFromVersion'](_0x58a105){const _0x538af9=this[_0x2101('0xc2')][_0x2101('0x5')]();_0x538af9['reverse'](),_0x538af9[_0x2101('0x72')]();const _0x94751f=_0x538af9[_0x2101('0x60')](_0x8929fb=>_0x8929fb[_0x2101('0xc5')]<=_0x58a105)['toVersion'];return _0x94751f<this[_0x2101('0x8a')]?this[_0x2101('0x8a')]:_0x94751f;}[_0x2101('0xd2')](_0x2662dc){const _0x454a0e=this[_0x2101('0xc2')][_0x2101('0x7')](this[_0x2101('0xc2')][_0x2101('0xb2')]-0x1);if(_0x454a0e)this[_0x2101('0x34')]=_0x454a0e['id'];else{const _0xb980df=!this[_0x2101('0x23')]['model'][_0x2101('0x32')][_0x2101('0xb3')]['find'](_0x139afc=>this['editor'][_0x2101('0xc9')][_0x2101('0x6')](_0x139afc)),_0x5dd315=this[_0x2101('0x23')][_0x2101('0xd9')][_0x2101('0x65')](_0x2101('0x4d'))['me']['id'],_0xf5b6ee=_0x138e66(this[_0x2101('0x23')][_0x2101('0x7c')],_0xb980df?_0x2101('0x74'):_0x2101('0xe5'));this[_0x2101('0xf7')]({'from':_0x2662dc,'to':_0x2662dc,'id':this[_0x2101('0x34')],'name':_0xf5b6ee,'creatorId':_0x5dd315});}}[_0x2101('0x67')](_0x3ef7ec){const _0x365e96=this[_0x2101('0xc8')][_0x2101('0x99')]();this['currentRevision']=this['repository'][_0x2101('0x7')](_0x365e96),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3ef7ec,'to':_0x3ef7ec,'id':_0x365e96,'name':'','creatorId':null}));}[_0x2101('0xf7')]({name:_0x3a4f95,from:_0x304535,to:_0x50ffa0,creatorId:_0x5cb4ce,id:_0x4a2668}){const _0x3e8bf2=this[_0x2101('0x39')]({'from':_0x304535,'to':_0x50ffa0});_0x3e8bf2[_0x2101('0x51')]=_0x3a4f95,_0x3e8bf2[_0x2101('0x5a')]=_0x5cb4ce,_0x3e8bf2['id']=_0x4a2668;const _0x3a974c=this[_0x2101('0x57')](_0x3e8bf2);return this['adapter']&&this['_bufferUpdate'](_0x3e8bf2['id'],_0x3e8bf2,!0x0),_0x3a974c;}['_setConversion'](){this['editor'][_0x2101('0x46')][_0x2101('0x69')]('dataDowncast')[_0x2101('0x53')]({'model':_0x2101('0x3c')});}[_0x2101('0x101')](_0x22ada8){return(_0x22ada8=_0x22ada8[_0x2101('0x3a')](_0x5a5429=>!_0x5a5429[_0x2101('0x51')]||'revision-start'!==_0x5a5429[_0x2101('0x51')]&&'revision-end'!==_0x5a5429[_0x2101('0x51')]))[_0x2101('0xc6')](_0xe2bac2=>{_0x2101('0x42')!=typeof _0xe2bac2&&(_0xe2bac2['children']=this[_0x2101('0x101')](_0xe2bac2['children']),_0xe2bac2['attributes']=_0xe2bac2[_0x2101('0xb6')][_0x2101('0x3a')](_0x4c2223=>!_0x4c2223[0x0]['startsWith'](_0x2101('0xdb'))));}),_0x22ada8;}}function J(_0x14faea,_0x2da8da){const _0x3ded53=_0x2da8da[_0x2101('0x91')][_0x2101('0xe8')][_0x2101('0x32')];if(_0x2101('0x42')==typeof _0x14faea)return new _0x9942ef(_0x3ded53,_0x14faea);{const _0x17b409=_0x14faea[_0x2101('0xac')]['map'](_0x517ed3=>J(_0x517ed3,_0x2da8da));return new(B[_0x14faea[(_0x2101('0xc0'))]]||_0x3892a0)(_0x3ded53,_0x14faea[_0x2101('0x51')],_0x14faea[_0x2101('0xb6')],_0x17b409);}}class H{constructor(_0x45eef8){this['editor']=_0x45eef8,this[_0x2101('0x2e')]=new Map(),this[_0x2101('0xd7')]=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this[_0x2101('0x8b')]=new Map(),this[_0x2101('0x54')]=new Map(),this[_0x2101('0x97')]=new Map(),this[_0x2101('0x71')]=new Map(),this[_0x2101('0x1')]=new Map(),this[_0x2101('0x38')]=new Map(),this[_0x2101('0x47')]=new Map(),this[_0x2101('0x80')]=new Map(),this[_0x2101('0x66')]=new Map(),this['_revisionId']=0x1;}['init'](_0x931d16){this[_0x2101('0x2c')]=_0x931d16;const _0x54a0c0=new Map(),_0x221426=new Map(),_0x5e56af=this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0x32')]['roots'][_0x2101('0x76')](_0x75e8a1=>_0x75e8a1[_0x2101('0xd4')]);for(const _0x19ac5c of _0x5e56af){const _0x2a057f=this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0x32')][_0x2101('0x62')](_0x19ac5c),_0x2a86cd=q(_0x2a057f);_0x54a0c0['set'](_0x19ac5c,_0x2a86cd),_0x221426[_0x2101('0x1b')](_0x19ac5c,Object[_0x2101('0x4c')](_0x2a057f['getAttributes']()));}const _0x57dda8=Array[_0x2101('0xe4')](this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0x14')])['map'](_0x4ac161=>[_0x4ac161[_0x2101('0x51')],_0x4ac161['getRange']()]),_0x2e2ebc=this[_0x2101('0x2c')][_0x2101('0xae')];this[_0x2101('0xd1')](_0x2e2ebc,_0x54a0c0,_0x57dda8,_0x221426),this[_0x2101('0x28')]=this[_0x2101('0x1e')];const _0x1271c8=new Map(),_0x598327=new Map();for(const _0x13fd88 of _0x5e56af){const _0x98a903=G(_0x13fd88);_0x1271c8[_0x2101('0x1b')](_0x13fd88,_0x98a903),_0x598327['set'](_0x13fd88,{});}this['_saveMetaData'](Number[_0x2101('0xe6')],_0x1271c8,[],_0x598327);}['getData'](_0x15b928,_0x103ba6){if(this['_lastFrom']===_0x15b928&&this[_0x2101('0x7d')]<=_0x103ba6)this[_0x2101('0x2e')]['size']>0x1&&this[_0x2101('0x5f')](this[_0x2101('0x7d')]),this['_applyOperations'](this[_0x2101('0x7d')],_0x103ba6,!0x0);else{if(!this['_savedMetaData'][_0x2101('0x103')](_0x15b928)){const _0x556624=this[_0x2101('0xcb')](_0x15b928);this[_0x2101('0xff')](_0x556624,_0x15b928,!0x1);}this[_0x2101('0xff')](_0x15b928,_0x103ba6,!0x0);}return this[_0x2101('0xd7')]=_0x15b928,this[_0x2101('0x7d')]=_0x103ba6,this[_0x2101('0xc4')]();}[_0x2101('0x9a')](_0x68955){this[_0x2101('0x50')](),this[_0x2101('0xd7')]=_0x68955[_0x2101('0xfe')],this[_0x2101('0x7d')]=_0x68955[_0x2101('0xc5')];for(const _0x571e51 in _0x68955[_0x2101('0x13')]){const _0x66b831=_0x68955[_0x2101('0x13')][_0x571e51][_0x2101('0xd8')],_0x53ba90=_0x1e65fb(_0x68955['diffData'][_0x571e51][_0x2101('0xb1')])||{},_0x314afb=this[_0x2101('0xa3')](_0x68955['diffData'][_0x571e51][_0x2101('0x100')]);_0x314afb[_0x2101('0xd4')]=_0x571e51,_0x314afb['_isAttached']=!_0x66b831||!_0x66b831[_0x2101('0xf8')],_0x314afb[_0x2101('0xf8')]=()=>_0x314afb[_0x2101('0xf1')],this['_baseRoots']['set'](_0x571e51,_0x314afb),this['_baseRootsAttributes'][_0x2101('0x1b')](_0x571e51,_0x53ba90),_0x66b831&&this[_0x2101('0x66')]['set'](_0x571e51,_0x66b831);const _0x5e237b=this[_0x2101('0xa7')](_0x314afb);this[_0x2101('0x38')][_0x2101('0x1b')](_0x571e51,_0x5e237b);for(const [_0x1392e7,_0x251277]of _0x314afb['markers']){if(!_0x1392e7[_0x2101('0x75')]('revision:'))continue;const _0x124247=_0x1392e7[_0x2101('0x7b')](':')[0x2];for(const _0x3e0a5a of _0x251277['getWalker']({'singleCharacters':!0x0})){const _0x28a72b=this['_getVidAttributeName'](_0x3e0a5a),_0x5156c2=_0x2101('0x70')==_0x3e0a5a[_0x2101('0xc0')]?_0x3e0a5a['previousPosition'][_0x2101('0x82')][_0x2101('0x2b')](0x0,-0x1):_0x3e0a5a[_0x2101('0xe2')][_0x2101('0x82')],_0x11743c=_0x5e237b[_0x2101('0xa9')](_0x5156c2)[_0x2101('0x58')](_0x28a72b);this[_0x2101('0x47')]['set'](_0x11743c,{'userId':_0x124247});}}}this[_0x2101('0x28')]=this[_0x2101('0x1e')];const _0x16298d=[...Array(this[_0x2101('0x1e')])[_0x2101('0x20')]()][_0x2101('0x2b')](0x1)['filter'](_0x5a08fa=>!this[_0x2101('0x47')][_0x2101('0x103')](_0x5a08fa));let _0x47f3f9=0x0;const _0x45d552=new Map();for(const _0x3479ef in _0x68955[_0x2101('0x13')]){const _0x1dcf33=_0x68955[_0x2101('0x13')][_0x3479ef]['attachChange'],_0x93c827=_0x1e65fb(_0x68955[_0x2101('0x13')][_0x3479ef][_0x2101('0x8')])||{},_0x3d3ee3=this[_0x2101('0xa3')](_0x68955['diffData'][_0x3479ef]['insertions']);_0x3d3ee3[_0x2101('0xd4')]=_0x3479ef,_0x3d3ee3[_0x2101('0xf1')]=!_0x1dcf33||_0x1dcf33[_0x2101('0xf8')],_0x3d3ee3[_0x2101('0xf8')]=()=>_0x3d3ee3['_isAttached'],this['_diffRoots']['set'](_0x3479ef,_0x3d3ee3),this[_0x2101('0x54')][_0x2101('0x1b')](_0x3479ef,_0x93c827);const _0x15edf6=this['_makeIdsRoot'](_0x3d3ee3,Number[_0x2101('0xe6')]);this[_0x2101('0x1')][_0x2101('0x1b')](_0x3479ef,_0x15edf6),_0x45d552[_0x2101('0x1b')](_0x3479ef,_0x3d3ee3[_0x2101('0xf8')]()?_0x93c827:{});for(const [_0x15ea7c,_0x37ef2f]of _0x3d3ee3[_0x2101('0x14')]){if(!_0x15ea7c[_0x2101('0x75')](_0x2101('0x4e')))continue;const _0x35a1d4=_0x15ea7c[_0x2101('0x7b')](':')[0x2];for(const _0x3efef9 of _0x37ef2f[_0x2101('0x102')]({'singleCharacters':!0x0})){const _0x196627=this['_getVidAttributeName'](_0x3efef9),_0x2726b0=this[_0x2101('0x1e')]++,_0x4c4531=_0x2101('0x70')==_0x3efef9[_0x2101('0xc0')]?_0x3efef9[_0x2101('0xe2')][_0x2101('0x82')][_0x2101('0x2b')](0x0,-0x1):_0x3efef9[_0x2101('0xe2')]['path'];_0x15edf6[_0x2101('0xa9')](_0x4c4531)[_0x2101('0x90')](_0x196627,_0x2726b0),this[_0x2101('0x47')][_0x2101('0x1b')](_0x2726b0,{'userId':_0x35a1d4});}}for(const _0x265b96 of this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0xfa')](_0x3d3ee3)[_0x2101('0x102')]({'singleCharacters':!0x0})){const _0x5e552c=this['_getVidAttributeName'](_0x265b96),_0x35dd3f=_0x2101('0x70')==_0x265b96[_0x2101('0xc0')]?_0x265b96[_0x2101('0xe2')][_0x2101('0x82')]['slice'](0x0,-0x1):_0x265b96[_0x2101('0xe2')]['path'],_0x2fe03a=_0x15edf6['getNodeByPath'](_0x35dd3f);_0x2fe03a[_0x2101('0x58')](_0x5e552c)>0x0||_0x2fe03a['_setAttribute'](_0x5e552c,_0x16298d[_0x47f3f9++]);}for(const [_0x21ca73,_0x505220]of _0x3d3ee3[_0x2101('0x14')])_0x21ca73[_0x2101('0x75')]('revision:')||this[_0x2101('0x45')][_0x2101('0x1b')](_0x21ca73,_0x505220);}const _0x2978bb=G(_0x2101('0xbf'));this[_0x2101('0x97')][_0x2101('0x1b')](_0x2101('0xbf'),_0x2978bb),this['_baseIdsRoots']['set'](_0x2101('0xbf'),this[_0x2101('0xa7')](_0x2978bb,0x1));const _0x10b473=G(_0x2101('0xbf'));this[_0x2101('0x8b')][_0x2101('0x1b')](_0x2101('0xbf'),_0x10b473),this[_0x2101('0x1')][_0x2101('0x1b')](_0x2101('0xbf'),this[_0x2101('0xa7')](_0x10b473,0x1));const _0x27b910=Array['from'](this[_0x2101('0x8b')])[_0x2101('0x76')](([_0x389be3,_0x1fd422])=>[_0x389be3,q(_0x1fd422)]);this['_saveMetaData'](this[_0x2101('0x7d')],_0x27b910,this['_markers'],_0x45d552);}[_0x2101('0xa3')](_0xf90540){const _0xe94d15=JSON[_0x2101('0xc')](_0xf90540),_0x4a1b23=this[_0x2101('0x23')][_0x2101('0x91')]['view']['document'],_0x44903d=new _0xa1f4f6(_0x4a1b23,_0xe94d15['map'](_0x44a1be=>J(_0x44a1be,this['editor'])));return this[_0x2101('0x23')]['data']['toModel'](_0x44903d);}[_0x2101('0xd1')](_0x4ab7ac,_0xaab95d,_0x16a0ea,_0xb00898){const _0x27d9f3=new Map(_0xaab95d),_0x8955e8=new Map(_0x1e65fb(_0xb00898)),_0x38e946=new Map();for(const [_0xc77ec5,_0x52d973]of _0x16a0ea)_0x38e946[_0x2101('0x1b')](_0xc77ec5,{'start':_0x52d973[_0x2101('0x52')]['clone'](),'end':_0x52d973[_0x2101('0xec')][_0x2101('0x5c')](),'rootName':_0x52d973['root']['rootName']});this[_0x2101('0x2e')][_0x2101('0x1b')](_0x4ab7ac,{'roots':_0x27d9f3,'markers':_0x38e946,'rootsAttributes':_0x8955e8});}['_removeMetaData'](_0x7a3c62){this[_0x2101('0x2e')][_0x2101('0x8d')](_0x7a3c62);}[_0x2101('0xcd')](){this[_0x2101('0x50')](),this[_0x2101('0xd7')]=-0x1,this['_lastTo']=-0x1,this[_0x2101('0x2e')][_0x2101('0x2d')](),this[_0x2101('0x84')](this['source']);}[_0x2101('0x50')](){this[_0x2101('0x47')]['clear'](),this[_0x2101('0x80')]['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots'][_0x2101('0x2d')](),this[_0x2101('0x54')][_0x2101('0x2d')](),this['_baseRoots'][_0x2101('0x2d')](),this['_baseRootsAttributes']['clear'](),this[_0x2101('0x1')][_0x2101('0x2d')](),this[_0x2101('0x38')]['clear'](),this[_0x2101('0x45')][_0x2101('0x2d')](),this[_0x2101('0x1e')]=0x1,this[_0x2101('0x28')]=this[_0x2101('0x1e')];}['_makeIdsRoot'](_0x3847ce,_0x50ccd9=null){let _0x6f0ba1=null;_0x3847ce['is'](_0x2101('0xb4'))||(_0x6f0ba1=new _0x25fef9(_0x3847ce[_0x2101('0x51')],{'vid_start':null===_0x50ccd9?this[_0x2101('0x1e')]++:_0x50ccd9++}));const _0x5dfbba=[];for(const _0x3f4521 of _0x3847ce[_0x2101('0xd0')]())if(_0x3f4521['is']('element')){_0x5dfbba[_0x2101('0x56')](this[_0x2101('0xa7')](_0x3f4521,_0x50ccd9));const _0x538ea7=_0x5dfbba[_0x5dfbba[_0x2101('0xb2')]-0x1];null!==_0x50ccd9&&(_0x50ccd9=_0x538ea7['is']('element','$text')?_0x538ea7[_0x2101('0x58')](_0x2101('0x16'))+0x1:_0x538ea7[_0x2101('0x58')](_0x2101('0x4'))+0x1);}else for(let _0x5e9c1b=0x0;_0x5e9c1b<_0x3f4521[_0x2101('0xf3')];_0x5e9c1b++)_0x5dfbba[_0x2101('0x56')](new _0x25fef9(_0x2101('0x3d'),{'vid':null===_0x50ccd9?this['_revisionId']++:_0x50ccd9++}));if(_0x3847ce['is'](_0x2101('0xb4'))){const _0x244463=G(_0x3847ce['rootName']);return _0x244463[_0x2101('0x7a')](0x0,_0x5dfbba),_0x244463;}return _0x6f0ba1['_setAttribute'](_0x2101('0x4'),null===_0x50ccd9?this['_revisionId']++:_0x50ccd9++),_0x6f0ba1['_insertChild'](0x0,_0x5dfbba),_0x6f0ba1;}[_0x2101('0xff')](_0xf65438,_0x309fd4,_0x302146){this[_0x2101('0x50')]();const {roots:_0x5a7cd3,markers:_0x4541e4,rootsAttributes:_0x5bb8be}=this['_savedMetaData'][_0x2101('0x65')](_0xf65438);this[_0x2101('0x97')]=new Map(_0x5a7cd3),this[_0x2101('0x71')]=new Map(_0x1e65fb(_0x5bb8be));for(const [_0x194fc0,_0xebae95]of this[_0x2101('0x97')])if(_0x2101('0xbf')!==_0x194fc0&&(this[_0x2101('0x8b')]['set'](_0x194fc0,q(_0xebae95)),this[_0x2101('0x54')]=new Map(_0x1e65fb(_0x5bb8be)),_0x302146)){const _0x45abd5=this[_0x2101('0x1e')];this[_0x2101('0x1')][_0x2101('0x1b')](_0x194fc0,this[_0x2101('0xa7')](_0xebae95)),this[_0x2101('0x38')][_0x2101('0x1b')](_0x194fc0,this['_makeIdsRoot'](_0xebae95,_0x45abd5));}this[_0x2101('0x28')]=this['_revisionId'],this['_diffRoots'][_0x2101('0x1b')](_0x2101('0xbf'),q(this[_0x2101('0x97')][_0x2101('0x65')](_0x2101('0xbf')))),_0x302146&&this[_0x2101('0x1')][_0x2101('0x1b')](_0x2101('0xbf'),this[_0x2101('0xa7')](this[_0x2101('0x97')]['get']('$graveyard')));for(const [_0x3883df,_0x4003bc]of _0x4541e4){const _0x303f12=this[_0x2101('0x97')][_0x2101('0x65')](_0x4003bc[_0x2101('0xd4')]),_0x5bad87=this['_diffRoots'][_0x2101('0x65')](_0x4003bc[_0x2101('0xd4')]),_0x1429f1=new _0x495a05(this[_0x2101('0x8c')](_0x4003bc['start'],_0x303f12),this[_0x2101('0x8c')](_0x4003bc[_0x2101('0xec')],_0x303f12)),_0x15e56f=this[_0x2101('0xda')](_0x1429f1,_0x5bad87);_0x303f12['markers'][_0x2101('0x1b')](_0x3883df,_0x1429f1),this['_markers'][_0x2101('0x1b')](_0x3883df,_0x15e56f);}this['_applyOperations'](_0xf65438,_0x309fd4,_0x302146);}['_applyOperations'](_0x25a69a,_0x556f29,_0x578455){for(const _0x46558a of this['source']['getOperations'](_0x25a69a,_0x556f29))this[_0x2101('0x1f')](_0x46558a,_0x578455);for(const _0x1bfb31 of this['_diffRoots']['values']())_0x1bfb31[_0x2101('0x14')][_0x2101('0x2d')]();for(const [_0x41ca3f,_0x3255b5]of this['_markers']){this[_0x2101('0x8b')][_0x2101('0x65')](_0x3255b5[_0x2101('0x49')][_0x2101('0xd4')])[_0x2101('0x14')][_0x2101('0x1b')](_0x41ca3f,_0x3255b5[_0x2101('0x5c')]());}const _0x4d1dd4=new Map(),_0x172845=new Map();for(const [_0x52313b,_0x49a0e7]of this[_0x2101('0x8b')])_0x4d1dd4['set'](_0x52313b,q(_0x49a0e7)),_0x172845['set'](_0x52313b,this[_0x2101('0x54')][_0x2101('0x65')](_0x52313b));this[_0x2101('0xd1')](_0x556f29,_0x4d1dd4,this[_0x2101('0x45')],_0x172845);}[_0x2101('0xcb')](_0x29acc4){const _0xe5cabe=Array[_0x2101('0xe4')](this[_0x2101('0x2e')]['keys']());_0xe5cabe[_0x2101('0x85')]((_0x4364f2,_0x458784)=>_0x4364f2-_0x458784),_0xe5cabe['reverse']();for(const _0x19100b of _0xe5cabe)if(_0x19100b<_0x29acc4)return _0x19100b;return Number[_0x2101('0xe6')];}[_0x2101('0xd3')](_0xd9b45a,_0x27ee27){const _0xb69244=Array[_0x2101('0xe4')](_0x27ee27[_0x2101('0x14')])[_0x2101('0x76')](([_0x2cc972,_0x1e8e7a])=>[_0x2cc972,this[_0x2101('0xda')](_0x1e8e7a,_0xd9b45a)]);_0xd9b45a['markers']=new Map(_0xb69244);}[_0x2101('0xe9')](_0x43e431){for(const _0x496ff2 of this[_0x2101('0x45')][_0x2101('0xa2')]()){const _0xfbca26=_0x496ff2[_0x2101('0xca')](_0x43e431),_0x1c8c7c=_0x495a05[_0x2101('0x5d')](_0xfbca26);_0x496ff2[_0x2101('0x52')]=_0x1c8c7c[_0x2101('0x52')],_0x496ff2['end']=_0x1c8c7c[_0x2101('0xec')];}}[_0x2101('0x1f')](_0xbe4639,_0x5b363b){if(_0x2101('0x2')==_0xbe4639[_0x2101('0xc0')]||'detachRoot'==_0xbe4639['type'])return void this['_handleRootOperation'](_0xbe4639,_0x5b363b);if(_0x2101('0x6b')==_0xbe4639['type']){const _0x5b3c2b=_0xbe4639[_0x2101('0x11')]['root'][_0x2101('0xd4')];this[_0x2101('0x8b')][_0x2101('0x103')](_0x5b3c2b)||(this[_0x2101('0x8b')][_0x2101('0x1b')](_0x5b3c2b,G(_0x5b3c2b,!0x0)),this[_0x2101('0x54')][_0x2101('0x1b')](_0x5b3c2b,{}),_0x5b363b&&this[_0x2101('0x1')]['set'](_0x5b3c2b,G(_0x5b3c2b,!0x0)));}else{if(_0x2101('0x6a')==_0xbe4639[_0x2101('0xc0')]||'removeRootAttribute'==_0xbe4639[_0x2101('0xc0')]||'changeRootAttribute'==_0xbe4639[_0x2101('0xc0')])return void this['_handleRootAttributeOperation'](_0xbe4639);}const _0x2ea7cf=this['_cloneOperation'](_0xbe4639,this[_0x2101('0x8b')]);if(_0x2101('0x25')!==_0xbe4639['type']&&(_0x2ea7cf['_execute'](),this[_0x2101('0xe9')](_0x2ea7cf)),_0x5b363b)switch(_0x2ea7cf[_0x2101('0xc0')]){case _0x2101('0x6b'):this[_0x2101('0x104')](_0xbe4639);break;case _0x2101('0xef'):case _0x2101('0xb'):case _0x2101('0xf'):this[_0x2101('0xa8')](_0xbe4639);break;case _0x2101('0x87'):this[_0x2101('0xd')](_0xbe4639);break;case _0x2101('0x7b'):this[_0x2101('0x44')](_0xbe4639);break;case _0x2101('0x25'):this['_handleMarkerOperation'](_0xbe4639);}}[_0x2101('0xc3')](_0x291602,_0x812d86){const _0x3f1265=_0x291602[_0x2101('0x5c')]();return _0x3f1265[_0x2101('0x63')]=_0x291602[_0x2101('0x63')],this[_0x2101('0x105')](_0x3f1265,_0x812d86),_0x3f1265;}[_0x2101('0x95')](_0x24fe4f){return _0x24fe4f[_0x2101('0x76')](_0x3ae0bf=>{const _0x389c3b=this[_0x2101('0x5b')](_0x3ae0bf);return Number(_0x3ae0bf[_0x2101('0xe')][_0x2101('0x58')](_0x389c3b));});}['_generateTape'](_0x37103c,_0x5e8bbe){if(_0x37103c['is'](_0x2101('0x3b'),_0x2101('0x3d')))_0x5e8bbe['push']({'item':_0x37103c,'type':'text'});else{_0x37103c['is'](_0x2101('0x3b'))&&_0x5e8bbe[_0x2101('0x56')]({'item':_0x37103c,'type':_0x2101('0x6e')});for(const _0x4802ce of _0x37103c['getChildren']())this[_0x2101('0x89')](_0x4802ce,_0x5e8bbe);_0x37103c['is']('element')&&_0x5e8bbe[_0x2101('0x56')]({'item':_0x37103c,'type':_0x2101('0x70')});}return _0x5e8bbe;}[_0x2101('0xc4')](){const _0x2b8878=new Map(this[_0x2101('0x47')]),_0x376ed6=new Map(_0x2b8878),_0x5bf22f=new Map(),_0x478e1b={'insertions':{},'deletions':{}},_0x38a075={'insertions':{},'deletions':{}},_0x13014e=new Map(),_0x2d81a1=new Set([...this['_baseRoots'][_0x2101('0x20')](),...this[_0x2101('0x8b')][_0x2101('0x20')]()]);_0x2d81a1[_0x2101('0x8d')](_0x2101('0xbf'));for(const _0x1a67e3 of _0x2d81a1){const _0x49e164=this[_0x2101('0x8b')][_0x2101('0x65')](_0x1a67e3)||G(_0x1a67e3,!0x1),_0x436114=this[_0x2101('0x97')]['get'](_0x1a67e3)||G(_0x1a67e3,!0x1);_0x49e164[_0x2101('0xf8')]()||_0x436114[_0x2101('0xf8')]()?(_0x478e1b[_0x2101('0x6c')][_0x1a67e3]=q(_0x49e164),_0x478e1b[_0x2101('0x100')][_0x1a67e3]=q(_0x436114),this['_copyMarkers'](_0x478e1b['deletions'][_0x1a67e3],_0x436114),this[_0x2101('0xd3')](_0x478e1b[_0x2101('0x6c')][_0x1a67e3],_0x49e164),_0x38a075[_0x2101('0x6c')][_0x1a67e3]=this['_generateTape'](this['_idsRoots'][_0x2101('0x65')](_0x1a67e3),[]),_0x38a075[_0x2101('0x100')][_0x1a67e3]=this['_generateTape'](this['_baseIdsRoots'][_0x2101('0x65')](_0x1a67e3)||G(_0x1a67e3,!0x1),[])):_0x2d81a1[_0x2101('0x8d')](_0x1a67e3);}for(const _0x422460 of _0x2d81a1){const _0x394ed=_0x38a075[_0x2101('0x6c')][_0x422460];for(const _0x45b7ea of _0x394ed){const _0x45c353=this[_0x2101('0x5b')](_0x45b7ea),_0x142e5d=_0x45b7ea[_0x2101('0xe')][_0x2101('0x58')](_0x45c353);_0x376ed6[_0x2101('0x8d')](_0x142e5d),_0x142e5d>=this[_0x2101('0x28')]&&_0x5bf22f['set'](_0x142e5d,_0x2b8878['get'](_0x142e5d));}}for(const _0x5ab833 of _0x2d81a1){const _0x2b1abc=_0x38a075['insertions'][_0x5ab833],_0x4c51f4=this[_0x2101('0x95')](_0x38a075[_0x2101('0x100')][_0x5ab833]);let _0x275cd7=0x0;for(const _0x1c00a7 of _0x2b1abc){const _0x379628=this[_0x2101('0x5b')](_0x1c00a7),_0x44cc14=_0x1c00a7[_0x2101('0xe')][_0x2101('0x58')](_0x379628);if(!_0x5bf22f['has'](_0x44cc14)&&!_0x13014e[_0x2101('0x103')](_0x44cc14)){if(_0x376ed6[_0x2101('0x103')](_0x44cc14))_0x275cd7++;else{if(_0x44cc14!=_0x4c51f4[_0x275cd7]){const _0x207d1f=_0x2b8878[_0x2101('0x65')](_0x44cc14)||_0x2b8878[_0x2101('0x65')](_0x4c51f4[_0x275cd7]);for(;_0x44cc14!=_0x4c51f4[_0x275cd7];)_0x376ed6['has'](_0x4c51f4[_0x275cd7])||(_0x13014e[_0x2101('0x1b')](_0x4c51f4[_0x275cd7],_0x207d1f),_0x2b8878[_0x2101('0x1b')](_0x4c51f4[_0x275cd7],_0x207d1f)),_0x275cd7++;}_0x275cd7++;}}}}for(const _0x4e4a97 of _0x2d81a1){const _0x23de9d=_0x38a075[_0x2101('0x6c')][_0x4e4a97];for(const _0x4fe0e9 of _0x23de9d){const _0x58a8a1=this[_0x2101('0x5b')](_0x4fe0e9),_0x47b935=_0x4fe0e9[_0x2101('0xe')][_0x2101('0x58')](_0x58a8a1);if(_0x13014e[_0x2101('0x103')](_0x47b935)){const _0x2a050e=_0x13014e[_0x2101('0x65')](_0x47b935);_0x376ed6[_0x2101('0x103')](_0x47b935)||_0x376ed6[_0x2101('0x1b')](_0x47b935,{..._0x2a050e}),_0x5bf22f[_0x2101('0x1b')](_0x47b935,{..._0x2a050e});}}}for(const _0x31088d of _0x376ed6[_0x2101('0x20')]())_0x31088d>=this['_startingRevisionId']&&_0x376ed6[_0x2101('0x8d')](_0x31088d);const _0x31717e=new Map();for(const _0x4abe02 of _0x2d81a1){let _0x24c191=_0x38a075[_0x2101('0x6c')][_0x4abe02];for(const _0x26af32 of _0x24c191)if(_0x26af32['item']['is']('element',_0x2101('0xf9'))){const _0x4c8f9f=this[_0x2101('0x5b')](_0x26af32),_0x5bd781=_0x26af32['item'][_0x2101('0x58')](_0x4c8f9f);if(_0x5bf22f['has'](_0x5bd781)){const _0x29f33d=_0x26af32['item'][_0x2101('0x9')][_0x2101('0x9')][_0x2101('0x58')]('vid_start'),_0x511978=_0x31717e['get'](_0x29f33d)||new Set();_0x511978[_0x2101('0xaf')](_0x5bf22f['get'](_0x5bd781)[_0x2101('0x43')]),_0x31717e[_0x2101('0x1b')](_0x29f33d,_0x511978);}}_0x24c191=_0x38a075[_0x2101('0x100')][_0x4abe02];for(const _0xa9cc1e of _0x24c191)if(_0xa9cc1e[_0x2101('0xe')]['is'](_0x2101('0x3b'),_0x2101('0xf9'))){const _0x3ac510=this[_0x2101('0x5b')](_0xa9cc1e),_0x4eb2d9=_0xa9cc1e['item'][_0x2101('0x58')](_0x3ac510);if(_0x376ed6['has'](_0x4eb2d9)){const _0x1bcce8=_0xa9cc1e[_0x2101('0xe')][_0x2101('0x9')][_0x2101('0x9')][_0x2101('0x58')]('vid_start'),_0x2e7712=_0x31717e[_0x2101('0x65')](_0x1bcce8)||new Set();_0x2e7712[_0x2101('0xaf')](_0x376ed6[_0x2101('0x65')](_0x4eb2d9)['userId']),_0x31717e[_0x2101('0x1b')](_0x1bcce8,_0x2e7712);}}for(const _0x28ac43 of _0x31717e[_0x2101('0x20')]())(_0x5bf22f[_0x2101('0x103')](_0x28ac43)||_0x376ed6[_0x2101('0x103')](_0x28ac43))&&_0x31717e[_0x2101('0x8d')](_0x28ac43);}for(const _0x5e3f11 of _0x2d81a1){const _0x1b7b6f=_0x38a075[_0x2101('0x6c')][_0x5e3f11];let _0xdd1417=null,_0x1654d0=null;for(const _0x27ad5c of _0x1b7b6f){const _0x213ef8=this['_getVidAttributeName'](_0x27ad5c),_0x3fb755=_0x27ad5c['item']['getAttribute'](_0x213ef8),_0x438dd3=_0x31717e[_0x2101('0x65')](_0x3fb755);_0x438dd3&&'elementStart'==_0x27ad5c['type']&&(_0xdd1417=Array[_0x2101('0xe4')](_0x438dd3)[0x0],_0x1654d0=_0x27ad5c['item']['getAttribute'](_0x2101('0x4'))),_0xdd1417&&(_0x376ed6[_0x2101('0x1b')](_0x3fb755,{'userId':_0xdd1417}),_0x5bf22f[_0x2101('0x1b')](_0x3fb755,{'userId':_0xdd1417})),_0x3fb755==_0x1654d0&&(_0xdd1417=null,_0x1654d0=null);}}const _0x457897={},_0x4b3678=new Set();for(const _0x2caaa2 of _0x2d81a1){const _0x13a13b=_0x478e1b[_0x2101('0x100')][_0x2caaa2],_0x497901=_0x478e1b[_0x2101('0x6c')][_0x2caaa2];for(const {userId:_0x35b96a}of this['_touchedMarkers'][_0x2101('0xa2')]())null!==_0x35b96a&&_0x4b3678['add'](_0x35b96a);for(const {userId:_0x1fc615}of this[_0x2101('0x66')][_0x2101('0xa2')]())null!==_0x1fc615&&_0x4b3678[_0x2101('0xaf')](_0x1fc615);this[_0x2101('0x9d')](_0x497901,_0x38a075[_0x2101('0x6c')][_0x2caaa2],_0x5bf22f,_0x2101('0x2f'),_0x4b3678),this[_0x2101('0x9d')](_0x13a13b,_0x38a075[_0x2101('0x100')][_0x2caaa2],_0x376ed6,_0x2101('0x8f'),_0x4b3678),_0x457897[_0x2caaa2]={'insertions':this[_0x2101('0x88')](_0x497901),'deletions':this[_0x2101('0x88')](_0x13a13b),'attachChange':this[_0x2101('0x66')][_0x2101('0x65')](_0x2caaa2)||null,'attributesBefore':_0x1e65fb(this[_0x2101('0x71')][_0x2101('0x65')](_0x2caaa2))||{},'attributesAfter':_0x1e65fb(this[_0x2101('0x54')][_0x2101('0x65')](_0x2caaa2))};}return{'diffData':_0x457897,'authorsIds':Array['from'](_0x4b3678)};}[_0x2101('0x2a')](_0x55d23c){for(const [,_0x5c3630]of _0x55d23c[_0x2101('0x14')]){const _0x8f9d8f=_0x5c3630[_0x2101('0x52')][_0x2101('0x3f')]()[_0x2101('0x3a')](_0x1c20ce=>_0x2101('0xf9')==_0x1c20ce['name']);for(const _0x23affa of _0x8f9d8f)0x1==_0x23affa[_0x2101('0xd5')]&&_0x23affa[_0x2101('0xa0')](0x0)['is'](_0x2101('0x3b'),_0x2101('0x77'))&&_0x23affa[_0x2101('0xa0')](0x0)[_0x2101('0x90')](_0x2101('0xe3'),!0x0);}}['_prepareViewToSave'](_0x29e6e0){this[_0x2101('0x2a')](_0x29e6e0);const _0xde05b3=this[_0x2101('0x23')][_0x2101('0x8e')][_0x2101('0x61')](_0x29e6e0,{}),_0x29e5d1=Array[_0x2101('0xe4')](_0xde05b3[_0x2101('0xd0')]())['map'](_0x3c01e5=>this[_0x2101('0x83')](_0x3c01e5));return JSON[_0x2101('0xb8')](_0x29e5d1);}[_0x2101('0x83')](_0x36f438){if(_0x36f438['is'](_0x2101('0x3d')))return _0x36f438[_0x2101('0x8e')];{const _0x39f03b=_0x36f438;return{'type':Object['keys'](B)[_0x2101('0x60')](_0xe5c867=>_0x36f438 instanceof B[_0xe5c867]),'name':_0x39f03b[_0x2101('0x51')],'attributes':Array[_0x2101('0xe4')](_0x39f03b[_0x2101('0x55')]()),'children':Array[_0x2101('0xe4')](_0x39f03b['getChildren']())['map'](_0x5d01ab=>this[_0x2101('0x83')](_0x5d01ab))};}}[_0x2101('0x9d')](_0x48830c,_0x542307,_0xe9ee26,_0x30ddc1,_0x1464b6){let _0x523afe=null,_0x3d860d=null,_0x3c180b=0x0;const _0x193a3f=this[_0x2101('0x23')][_0x2101('0xc9')];for(let _0x5049f4=0x0;_0x5049f4<_0x542307['length'];_0x5049f4++){const _0x1ef074=this['_getVidAttributeName'](_0x542307[_0x5049f4]),_0x4a0b8a=_0x542307[_0x5049f4][_0x2101('0xe')]['getAttribute'](_0x1ef074),_0x2065a7=_0xe9ee26[_0x2101('0x65')](_0x4a0b8a),_0x4b0398=_0x5049f4==_0x542307['length']-0x1;(!_0x523afe&&_0x2065a7&&(_0x523afe=_0x2065a7,_0x3d860d=_0x542307[_0x5049f4]),_0x523afe&&(!_0x2065a7||_0x2065a7[_0x2101('0x43')]!=_0x523afe[_0x2101('0x43')]))&&(_0x4debaf(_0x2065a7,L(_0x3d860d,_0x48830c,_0x193a3f),L(_0x542307[_0x5049f4],_0x48830c,_0x193a3f)),_0x523afe=_0x2065a7||null,_0x3d860d=_0x2065a7?_0x542307[_0x5049f4]:null),_0x523afe&&_0x4b0398&&_0x4debaf(_0x2065a7,L(_0x3d860d,_0x48830c,_0x193a3f),W(_0x542307[_0x5049f4],_0x48830c,_0x193a3f));}function _0x4debaf(_0x165f6e,_0x42dc9f,_0x1ab8e5){const _0x5ef659=_0x523afe[_0x2101('0x43')],_0x563705='revision:'+_0x30ddc1+':'+_0x5ef659+':'+_0x3c180b++,_0xf62a02=_0x193a3f[_0x2101('0x9f')](_0x42dc9f,_0x1ab8e5);_0x48830c[_0x2101('0x14')][_0x2101('0x1b')](_0x563705,_0xf62a02),null!==_0x5ef659&&_0x1464b6[_0x2101('0xaf')](_0x5ef659);}}[_0x2101('0x5b')](_0x598b88){switch(_0x598b88[_0x2101('0xc0')]){case _0x2101('0x6e'):return _0x2101('0x26');case _0x2101('0x70'):return _0x2101('0x4');default:return'vid';}}[_0x2101('0x105')](_0xda091a,_0x4788b7){_0xda091a['baseVersion']=null;for(const _0x22551b in _0xda091a){const _0x5e01e8=_0xda091a[_0x22551b];if(_0x5e01e8 instanceof _0x372bce){const _0x45b009=_0x4788b7[_0x2101('0x65')](_0x5e01e8[_0x2101('0x49')]['rootName']);_0xda091a[_0x22551b]=this[_0x2101('0x8c')](_0x5e01e8,_0x45b009);}if(_0x5e01e8 instanceof _0x495a05){const _0x15e6de=_0x4788b7[_0x2101('0x65')](_0x5e01e8[_0x2101('0x49')][_0x2101('0xd4')]);_0xda091a[_0x22551b]=this['_fixRange'](_0x5e01e8,_0x15e6de);}_0x2101('0x49')===_0x22551b&&(_0xda091a[_0x2101('0x49')]=_0x4788b7[_0x2101('0x65')](_0xda091a[_0x2101('0x49')][_0x2101('0xd4')]));}}[_0x2101('0xda')](_0x349091,_0x32faa9){return this[_0x2101('0x23')]['model'][_0x2101('0x9f')](this[_0x2101('0x8c')](_0x349091[_0x2101('0x52')],_0x32faa9),this[_0x2101('0x8c')](_0x349091[_0x2101('0xec')],_0x32faa9));}['_fixPosition'](_0x3c1071,_0x58e01c){return this[_0x2101('0x23')][_0x2101('0xc9')][_0x2101('0xb9')](_0x58e01c,_0x3c1071[_0x2101('0x82')],_0x3c1071[_0x2101('0x0')]);}[_0x2101('0x104')](_0x5de193){const _0x39dcff=this[_0x2101('0x1')][_0x2101('0x65')](_0x5de193[_0x2101('0x11')][_0x2101('0x49')]['rootName']),_0x56b558=this['_fixPosition'](_0x5de193[_0x2101('0x11')],_0x39dcff),_0x39ace2=null===_0x5de193['_authorId']?null:_0x5de193[_0x2101('0x63')]||this[_0x2101('0x23')][_0x2101('0xd9')][_0x2101('0x65')](_0x2101('0x4d'))['me']['id'],_0xc5c118=_0x56b558['parent'],_0x14adaf=this[_0x2101('0x1e')],_0x10759f=[];for(const _0x353538 of _0x5de193[_0x2101('0xf2')])if(_0x353538['is'](_0x2101('0x3b')))_0x10759f['push'](this['_makeIdsRoot'](_0x353538));else for(let _0x4fe1cc=0x0;_0x4fe1cc<_0x353538[_0x2101('0xf3')];_0x4fe1cc++)_0x10759f[_0x2101('0x56')](new _0x25fef9(_0x2101('0x3d'),{'vid':this[_0x2101('0x1e')]++}));const _0x11366d=this['_revisionId'];for(let _0xc56b04=_0x14adaf;_0xc56b04<_0x11366d;_0xc56b04++)this[_0x2101('0x47')][_0x2101('0x1b')](_0xc56b04,{'userId':_0x39ace2});_0xc5c118[_0x2101('0x7a')](_0x56b558[_0x2101('0x93')],_0x10759f);}[_0x2101('0xa8')](_0x61f826){(_0x61f826=this[_0x2101('0xc3')](_0x61f826,this[_0x2101('0x1')]))[_0x2101('0xfb')]();const _0x141f1c=null===_0x61f826[_0x2101('0x63')]?null:_0x61f826[_0x2101('0x63')]||this['editor']['plugins'][_0x2101('0x65')](_0x2101('0x4d'))['me']['id'],_0x4e8a67=_0x61f826[_0x2101('0xe1')](),_0x527228=_0x4e8a67['parent'],_0x3a40aa=_0x4e8a67[_0x2101('0x93')];!function _0x179681(_0x35601d,_0x183b22,_0x2037ed,_0x316d34){for(let _0x3c2893=_0x2037ed;_0x3c2893<_0x316d34;_0x3c2893++){const _0x34a7ef=_0x183b22['getChild'](_0x3c2893);_0x34a7ef['is']('element',_0x2101('0x3d'))?_0x35601d[_0x2101('0x1b')](_0x34a7ef[_0x2101('0x58')](_0x2101('0x16')),{'userId':_0x141f1c}):(_0x35601d[_0x2101('0x1b')](_0x34a7ef[_0x2101('0x58')](_0x2101('0x26')),{'userId':_0x141f1c}),_0x179681(_0x35601d,_0x34a7ef,0x0,_0x34a7ef[_0x2101('0xd5')]),_0x35601d['set'](_0x34a7ef[_0x2101('0x58')](_0x2101('0x4')),{'userId':_0x141f1c}));}}(this[_0x2101('0x47')],_0x527228,_0x3a40aa,_0x3a40aa+_0x61f826[_0x2101('0x3e')]);}[_0x2101('0xd')](_0x313c2d){const _0x223fd6=null===(_0x313c2d=this[_0x2101('0xc3')](_0x313c2d,this[_0x2101('0x1')]))[_0x2101('0x63')]?null:_0x313c2d[_0x2101('0x63')]||this[_0x2101('0x23')][_0x2101('0xd9')][_0x2101('0x65')]('Users')['me']['id'],_0xbef506=_0x313c2d['targetPosition'][_0x2101('0x9')],_0x5b0470=_0x313c2d['sourcePosition'][_0x2101('0x9')],_0x22a049=_0xbef506[_0x2101('0x58')](_0x2101('0x4')),_0x2b446c=_0x5b0470[_0x2101('0x58')](_0x2101('0x26'));_0xbef506[_0x2101('0x90')](_0x2101('0x4'),_0x5b0470[_0x2101('0x58')](_0x2101('0x4'))),_0x5b0470[_0x2101('0x90')](_0x2101('0x4'),_0x22a049),this['_touched']['set'](_0x2b446c,{'userId':_0x223fd6}),this[_0x2101('0x47')]['set'](_0x22a049,{'userId':_0x223fd6}),_0x313c2d[_0x2101('0xfb')]();}[_0x2101('0x44')](_0x220457){const _0x11f5c5=null===(_0x220457=this[_0x2101('0xc3')](_0x220457,this[_0x2101('0x1')]))['_authorId']?null:_0x220457[_0x2101('0x63')]||this[_0x2101('0x23')]['plugins'][_0x2101('0x65')]('Users')['me']['id'],_0x3ace02=_0x220457['graveyardPosition'],_0x1259c5=_0x220457['splitPosition']['parent'];_0x220457[_0x2101('0xfb')]();const _0x20e4ba=_0x1259c5[_0x2101('0x58')](_0x2101('0x4')),_0x1ad357=_0x220457['insertionPosition'][_0x2101('0xde')];if(_0x3ace02){const _0x10f811=_0x1ad357[_0x2101('0x58')](_0x2101('0x4')),_0x28681d=_0x1259c5[_0x2101('0x58')](_0x2101('0x4'));_0x1259c5[_0x2101('0x90')]('vid_end',_0x10f811),_0x1ad357[_0x2101('0x90')](_0x2101('0x4'),_0x28681d),this[_0x2101('0x47')][_0x2101('0x1b')](_0x1259c5['getAttribute'](_0x2101('0x4')),{'userId':_0x11f5c5}),this['_touched']['set'](_0x1ad357[_0x2101('0x58')](_0x2101('0x26')),{'userId':_0x11f5c5});}else{const _0x201ca8=this[_0x2101('0x1e')]++,_0x436eac=this[_0x2101('0x1e')]++;_0x1259c5['_setAttribute']('vid_end',_0x201ca8),_0x1ad357[_0x2101('0x90')]('vid_start',_0x436eac),_0x1ad357[_0x2101('0x90')](_0x2101('0x4'),_0x20e4ba),this[_0x2101('0x47')][_0x2101('0x1b')](_0x201ca8,{'userId':_0x11f5c5}),this[_0x2101('0x47')][_0x2101('0x1b')](_0x436eac,{'userId':_0x11f5c5});}}[_0x2101('0x78')](_0x5a74fc){if(!_0x5a74fc[_0x2101('0x35')])return;const _0x4058e8=(_0x5a74fc=this[_0x2101('0xc3')](_0x5a74fc,this[_0x2101('0x8b')]))[_0x2101('0x5e')]?_0x5a74fc[_0x2101('0x5e')]['root']:null,_0x325a02=_0x5a74fc[_0x2101('0xa6')]?_0x5a74fc['newRange'][_0x2101('0x49')]:null;_0x4058e8&&this['_markers'][_0x2101('0x8d')](_0x5a74fc[_0x2101('0x51')]),_0x325a02&&this['_markers'][_0x2101('0x1b')](_0x5a74fc[_0x2101('0x51')],_0x5a74fc[_0x2101('0xa6')]['clone']());const _0x42e068=null===_0x5a74fc['_authorId']?null:_0x5a74fc[_0x2101('0x63')]||this[_0x2101('0x23')]['plugins'][_0x2101('0x65')](_0x2101('0x4d'))['me']['id'],_0x50ea85=_0x5a74fc['name'];if(!this[_0x2101('0x80')][_0x2101('0x103')](_0x50ea85))return void this[_0x2101('0x80')]['set'](_0x50ea85,{'range':_0x5a74fc['oldRange'],'userId':_0x42e068});const _0x459459=this[_0x2101('0x80')][_0x2101('0x65')](_0x50ea85),_0xde8b5a=_0x459459[_0x2101('0xa4')],_0x225ef8=_0x5a74fc[_0x2101('0xa6')];null==_0xde8b5a&&null==_0x225ef8||_0xde8b5a&&_0x225ef8&&_0xde8b5a[_0x2101('0xe7')](_0x225ef8)?this[_0x2101('0x80')][_0x2101('0x8d')](_0x5a74fc[_0x2101('0x51')]):_0x459459[_0x2101('0x43')]=_0x42e068;}[_0x2101('0xd6')](_0x21b17e,_0x2e4de7){this[_0x2101('0x8b')][_0x2101('0x103')](_0x21b17e[_0x2101('0xd4')])?this[_0x2101('0x8b')][_0x2101('0x65')](_0x21b17e[_0x2101('0xd4')])[_0x2101('0xf1')]=_0x21b17e[_0x2101('0xab')]:(this[_0x2101('0x8b')]['set'](_0x21b17e[_0x2101('0xd4')],G(_0x21b17e[_0x2101('0xd4')],!0x0)),this[_0x2101('0x54')][_0x2101('0x1b')](_0x21b17e['rootName'],{}),_0x2e4de7&&this[_0x2101('0x1')]['set'](_0x21b17e[_0x2101('0xd4')],G(_0x21b17e[_0x2101('0xd4')],!0x0)));const _0x4026d1=null===_0x21b17e[_0x2101('0x63')]?null:_0x21b17e[_0x2101('0x63')]||this['editor'][_0x2101('0xd9')][_0x2101('0x65')](_0x2101('0x4d'))['me']['id'],_0x227ac4=this[_0x2101('0x66')][_0x2101('0x65')](_0x21b17e[_0x2101('0xd4')]);_0x227ac4&&_0x227ac4['userId']===_0x4026d1?this[_0x2101('0x66')]['delete'](_0x21b17e['rootName']):this[_0x2101('0x66')][_0x2101('0x1b')](_0x21b17e[_0x2101('0xd4')],{'userId':_0x4026d1,'isAttached':_0x21b17e[_0x2101('0xab')]});}[_0x2101('0x21')](_0x2d51b3){const _0x4e9260=this[_0x2101('0x54')][_0x2101('0x65')](_0x2d51b3['root'][_0x2101('0xd4')]);null===_0x2d51b3[_0x2101('0x1c')]?delete _0x4e9260[_0x2d51b3[_0x2101('0x7e')]]:_0x4e9260[_0x2d51b3[_0x2101('0x7e')]]=_0x2d51b3['newValue'];}}function q(_0x1a2609){const _0x431ee9=G(_0x1a2609[_0x2101('0xd4')],_0x1a2609[_0x2101('0xf8')]());for(const _0x4784b5 of _0x1a2609[_0x2101('0xd0')]()){const _0x58072f=_0x4784b5[_0x2101('0x37')](!0x0);_0x431ee9[_0x2101('0xfc')](_0x58072f);}return _0x431ee9;}function G(_0x1f942e,_0x1b325f=!0x0){const _0x1ac6ec=new _0x4ab913();return _0x1ac6ec[_0x2101('0xd4')]=_0x1f942e,_0x1ac6ec[_0x2101('0xf1')]=_0x1b325f,_0x1ac6ec[_0x2101('0xf8')]=()=>_0x1ac6ec[_0x2101('0xf1')],_0x1ac6ec;}function L(_0x40c690,_0xa8abb9,_0x104834){const _0x8ec916=_0x2101('0x70')==_0x40c690[_0x2101('0xc0')]?_0x104834[_0x2101('0x81')](_0x40c690[_0x2101('0xe')],'end'):_0x104834[_0x2101('0x4a')](_0x40c690['item']);return _0x104834[_0x2101('0xb9')](_0xa8abb9,_0x8ec916['path'],_0x8ec916[_0x2101('0x0')]);}function W(_0x2fe149,_0x1c5f14,_0x11d6fb){const _0x83f1dd=_0x2101('0x6e')==_0x2fe149[_0x2101('0xc0')]?_0x11d6fb['createPositionAt'](_0x2fe149[_0x2101('0xe')],0x0):_0x11d6fb['createPositionAfter'](_0x2fe149['item']);return _0x11d6fb['createPositionFromPath'](_0x1c5f14,_0x83f1dd[_0x2101('0x82')],_0x83f1dd[_0x2101('0x0')]);}