@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231019.0 → 0.0.0-nightly-20231020.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 _0x36aa=['markers','editor','elementEnd','push','_removePendingAction','getRootNames','toModel','_touched','editing','init','loadState','_startingRevisionId','NEGATIVE_INFINITY','length','fromVersion','_cloneOperation','createRevision','hasContent','_diffRoots','upcast','$graveyard','howMany','values','revision-end','move','getWalker','nodes','toVersion','_loadState','version','_baseRootsAttributes','_saveMetaData','type','view','_copyMarkers','_baseRoots','deletions','insertions','define','_fixRange','_lastFrom','_isAttached','range','for','collaboration.channelId','model','max','newRange','startsWith','sort','createPositionAt','sourcePosition','getOperations','stringify','RealTimeCollaborationClient','getAncestors','_getVidAttributeName','getLatestVersion','requires','filter','initialData','resolve','children','getTransformedByOperation','insert','initial','graveyardPosition','documentFragment','adapter','locale','RevisionTracker','_fixPosition','history','getOperation','_isPendingUpdate','tableCell','_startingVersion','merge','position','parent','setRevisionData','_reset','name','_applyOperations','isAttached','targetPosition','then','root','end','_setAttribute','changeRootAttribute','editor-initial-data-replaced-with-revision-data','_findInsertionIndex','conversion','shift','dataDowncast','add','buildRevisionData','_handleRootOperation','plugins','_generateTape','getNodeByPath','previousPosition','_appendChild','revisionHistory.resumeUnsavedRevision','has','repository','getIndex','_revisionDataBuilder','creatorId','_setConversion','_loadRevisionData','_diffRootsAttributes','clear','vid','getMovedRangeStart','nodeAfter','source','from','deletion','_getState','Users','_revisionId','marker','_addPendingAction','bind','attributesAfter','useFillerType','getCurrentRevisionId','setSource','PendingActions','ready','getRoot','_authorId','saveRevision','removeRootAttribute','_makeRevision','default','_makeModelFromViewString','start','path','set','delete','_prepareViewToSave','afterInit','revision-start','_insertChild','_baseIdsRoots','userId','document','_bufferUpdate','_transformMarkers','slice','_lastTo','createdAt','clone','_getViewJson','currentRevision','_handleRootAttributeOperation','baseVersion','rootsAttributes','key','size','sendBufferedUpdates','_touchedRoots','getRevision','attachChange','getAttribute','_source','_processRootBeforeSave','_handleSplitOperation','splitPosition','element','_idsRoots','newValue','_execute','rootName','processor','getRevisions','vid_start','_bufferedUpdates','getRevisionRootsAttributes','affectsData','_initialRevisionId','createPositionFromPath','authorsIds','pluginName','offset','_removeRevisionMarkers','remove','addRevisionData','revision','markerToData','data','some','_continueCurrentRevision','_handleMarkerOperation','_createFromRanges','_handleOperation','_pendingAction','getTime','keys','getRange','elementStart','_makeIdsRoot','isReady','revision:','getRevisionDocumentData','creator','_markers','item','includes','split','oldRange','getChildren','string','stickiness','Initial\x20revision','_operations','_touchedMarkers','authors','parse','getChild','_update','_loadedStateData','_replaceEditorDataWithRevisionData','addRootAttribute','_calculateMetaData','_removeMetaData','config','PENDING_ACTION_REVISION_HISTORY','_savedMetaData','getAttributes','map','forEach','_getFromVersion','_createInitialRevision','text','reInit','$text','_handleMoveOperation','_clone','getData','_handleMergeOperation','diffData','roots','_createCurrentRevision','_handleInsertOperation','_getPreviousFrom','_markChanges','fromEntries','find','marked','vid_end','childCount','reverse','attributesBefore','get','createRange'];(function(_0x4fda3b,_0x36aa49){const _0x4bcfe0=function(_0x19bd8e){while(--_0x19bd8e){_0x4fda3b['push'](_0x4fda3b['shift']());}};_0x4bcfe0(++_0x36aa49);}(_0x36aa,0x1b3));const _0x4bcf=function(_0x4fda3b,_0x36aa49){_0x4fda3b=_0x4fda3b-0x0;let _0x4bcfe0=_0x36aa[_0x4fda3b];return _0x4bcfe0;};import{Users as _0x1f58e9}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x383466,PendingActions as _0xce835e}from'ckeditor5/src/core';import{logWarning as _0x582bc9,uid as _0x20ef15}from'ckeditor5/src/utils';import{Position as _0x50936b,Range as _0x222ffc,Element as _0x51760e,DocumentFragment as _0x3d02d9,ViewText as _0x43569e,ViewElement as _0x231e56,ViewContainerElement as _0x266150,ViewAttributeElement as _0x35cc56,ViewEmptyElement as _0x18eaf0,ViewRawElement as _0xe8d954,ViewUIElement as _0x2f7984,ViewDocumentFragment as _0x19b0bc}from'ckeditor5/src/engine';import _0x147d52 from'./revisionsrepository';import{getTranslation as _0x574bfc}from'./utils/common-translations';import{cloneDeep as _0x5d6016,isEqual as _0x16af73}from'lodash-es';const B={'c':_0x266150,'a':_0x35cc56,'e':_0x18eaf0,'r':_0xe8d954,'u':_0x2f7984};export default class l extends _0x383466{static get[_0x4bcf('0xa')](){return _0x4bcf('0x99');}static get[_0x4bcf('0x8d')](){return[_0x1f58e9,_0x147d52,_0xce835e];}constructor(_0x162a81){super(_0x162a81),this[_0x4bcf('0x97')]=null,this[_0x4bcf('0xf0')]=null,this[_0x4bcf('0xbf')]=new H(this[_0x4bcf('0x54')]),this[_0x4bcf('0x7')]=this[_0x4bcf('0x54')][_0x4bcf('0x35')][_0x4bcf('0x51')](_0x4bcf('0x7f'))||_0x4bcf('0x94'),this[_0x4bcf('0x4')]=new Map(),this[_0x4bcf('0x30')]=null;const _0x42cffd=_0x20ef15();this[_0x4bcf('0xfb')]={'history':this['editor']['model']['document'][_0x4bcf('0x9b')],'getLatestVersion':()=>Promise[_0x4bcf('0x90')](this[_0x4bcf('0x54')][_0x4bcf('0x80')][_0x4bcf('0xe8')][_0x4bcf('0x70')]),'getCurrentRevisionId':()=>_0x42cffd},this['set'](_0x4bcf('0x1d'),!0x1),this[_0x4bcf('0xe0')]('isEnabled',!0x0),this[_0x4bcf('0xe0')](_0x4bcf('0x9d'),!0x1),this['editor'][_0x4bcf('0x35')][_0x4bcf('0x79')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x4bcf('0x54')][_0x4bcf('0xb0')][_0x4bcf('0x7e')](_0x4bcf('0x66'))['dataToMarker']({'view':_0x4bcf('0xf')});}[_0x4bcf('0x5c')](){this[_0x4bcf('0xbd')]=this[_0x4bcf('0x54')][_0x4bcf('0xb6')]['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on'](_0x4bcf('0xd6'),()=>{const _0x39d799=this[_0x4bcf('0xbd')][_0x4bcf('0xf8')](0x0),_0x326052=_0x39d799&&null===_0x39d799['creator']?_0x39d799:null;if(this[_0x4bcf('0x13')]=!!_0x326052&&this[_0x4bcf('0x54')]['config']['get'](_0x4bcf('0xbb')),this['editor'][_0x4bcf('0xb6')][_0x4bcf('0xbc')](_0x4bcf('0x89'))){const _0x565061=this[_0x4bcf('0xfb')][_0x4bcf('0xd3')](),_0x4c82a1=this[_0x4bcf('0xbd')][_0x4bcf('0xf8')](_0x565061);if(_0x4c82a1)this[_0x4bcf('0x9f')]=_0x4c82a1[_0x4bcf('0x61')],this['_continueCurrentRevision']=!0x1;else{const _0x338d27=this[_0x4bcf('0xfb')]['history'][_0x4bcf('0x2a')][_0x4bcf('0x4b')](_0x288190=>!_0x288190['_isInit']),_0x48711a=_0x338d27?_0x338d27[_0x4bcf('0xf2')]:this[_0x4bcf('0xfb')][_0x4bcf('0x9b')][_0x4bcf('0x70')];_0x39d799?(_0x39d799[_0x4bcf('0x6e')]<_0x48711a&&_0x39d799[_0x4bcf('0x2f')]({'toVersion':_0x48711a}),this[_0x4bcf('0x13')]?(this[_0x4bcf('0xfb')]['getCurrentRevisionId']=()=>_0x326052['id'],this[_0x4bcf('0x9f')]=_0x326052[_0x4bcf('0x61')]):(this['_startingVersion']=_0x39d799[_0x4bcf('0x6e')],this[_0x4bcf('0x13')]=!0x1)):(this[_0x4bcf('0x9f')]=_0x48711a,this[_0x4bcf('0x13')]=!0x1);}}else _0x326052&&(this[_0x4bcf('0x54')]['model'][_0x4bcf('0xe8')][_0x4bcf('0x9b')][_0x4bcf('0x70')]=Math[_0x4bcf('0x81')](_0x326052[_0x4bcf('0x6e')],this['editor'][_0x4bcf('0x80')][_0x4bcf('0xe8')][_0x4bcf('0x9b')]['version']),_0x326052[_0x4bcf('0x61')]===_0x326052[_0x4bcf('0x6e')]?(0x0!==_0x326052[_0x4bcf('0x61')]&&(this[_0x4bcf('0xfb')][_0x4bcf('0xd3')]=()=>_0x326052['id']),this[_0x4bcf('0x13')]=!0x1):this[_0x4bcf('0x13')]&&(this['_source'][_0x4bcf('0xd3')]=()=>_0x326052['id'],this[_0x4bcf('0x9f')]=_0x326052[_0x4bcf('0x61')])),this[_0x4bcf('0x13')]||(this['_startingVersion']=this['editor'][_0x4bcf('0x80')]['document']['version']);this[_0x4bcf('0xbf')][_0x4bcf('0x5c')](this[_0x4bcf('0xfb')][_0x4bcf('0x9b')]),this[_0x4bcf('0x3c')](this[_0x4bcf('0x9f')]),this[_0x4bcf('0x46')](this[_0x4bcf('0x9f')]),this[_0x4bcf('0x97')]&&this['sendBufferedUpdates']();}),this[_0x4bcf('0xd0')]('isReady')['to'](this,_0x4bcf('0x9d'),_0x559366=>!_0x559366);}async[_0x4bcf('0xe3')](){if(this['repository'][_0x4bcf('0x60')]>0x0){const _0x41a35b=this['repository'][_0x4bcf('0xf8')](0x0),_0x339d98=await this[_0x4bcf('0x1f')](_0x41a35b),_0x3d3d55=await this[_0x4bcf('0x5')](_0x41a35b);this[_0x4bcf('0x31')](_0x339d98,_0x3d3d55);}}[_0x4bcf('0xd4')](_0x1f0323){this[_0x4bcf('0xfb')]=_0x1f0323;}async['update'](){const _0x346d57=await this[_0x4bcf('0xfb')][_0x4bcf('0x8c')]();if(_0x346d57>this[_0x4bcf('0xf0')][_0x4bcf('0x6e')]){await this[_0x4bcf('0x6f')]();const _0x28961e=this[_0x4bcf('0xb4')]({'revision':this['currentRevision'],'to':_0x346d57});_0x28961e[_0x4bcf('0x2c')]=_0x28961e['authorsIds'][_0x4bcf('0x39')](_0x219788=>this[_0x4bcf('0x54')]['plugins'][_0x4bcf('0x51')](_0x4bcf('0xcc'))['getUser'](_0x219788)),this[_0x4bcf('0xf0')]['_update'](_0x28961e);}}async[_0x4bcf('0x6f')](){this['_continueCurrentRevision']&&!this[_0x4bcf('0x30')]&&(await this[_0x4bcf('0xc2')](this[_0x4bcf('0xf0')]),this[_0x4bcf('0xbf')]['loadState'](this[_0x4bcf('0xf0')]),this[_0x4bcf('0x30')]={'fromVersion':this[_0x4bcf('0xf0')][_0x4bcf('0x61')],'authors':this[_0x4bcf('0xf0')][_0x4bcf('0x2c')][_0x4bcf('0xeb')]()});}async[_0x4bcf('0xd9')](_0x278a18={},_0x345b40=null){const _0x6bdba5=[];await this[_0x4bcf('0x6f')](),this[_0x4bcf('0x13')]=!0x1,_0x345b40>this[_0x4bcf('0xf0')][_0x4bcf('0x6e')]&&(_0x345b40=null),null===_0x345b40&&(_0x345b40=await this[_0x4bcf('0xfb')]['getLatestVersion']());const _0xe04916=this[_0x4bcf('0x3b')](_0x345b40),_0x536e2c=this[_0x4bcf('0xb4')]({'from':_0xe04916,'to':_0x345b40});if(this[_0x4bcf('0xf0')][_0x4bcf('0x6e')]<_0x345b40){const _0x7144cb=this[_0x4bcf('0xb4')]({'revision':this[_0x4bcf('0xf0')],'from':_0x345b40,'to':_0x345b40});_0x7144cb[_0x4bcf('0x2c')]=[],_0x7144cb['authorsIds']=[],_0x7144cb['id']=this['currentRevision']['id'],this['currentRevision'][_0x4bcf('0x2f')](_0x7144cb,!0x0),delete _0x7144cb[_0x4bcf('0x2c')],_0x6bdba5[_0x4bcf('0x56')](_0x7144cb);}_0x278a18[_0x4bcf('0xc0')]=this[_0x4bcf('0x54')][_0x4bcf('0xb6')][_0x4bcf('0x51')](_0x4bcf('0xcc'))['me']['id'],_0x278a18[_0x4bcf('0xa5')]=_0x278a18[_0x4bcf('0xa5')]||null,_0x278a18['id']=_0x278a18['id']||_0x20ef15(),_0x278a18={..._0x278a18,..._0x536e2c};const _0x49a984=this[_0x4bcf('0xe')](_0x278a18);_0x6bdba5[_0x4bcf('0x56')](_0x278a18);const _0x2b0e48=this[_0x4bcf('0xbd')][_0x4bcf('0xbe')](_0x49a984);if(0x0!==_0x2b0e48){const _0x12ac3f=this[_0x4bcf('0xbd')][_0x4bcf('0xf8')](_0x2b0e48-0x1);if(_0x12ac3f[_0x4bcf('0x61')]!==_0x345b40){const _0x4500ac=this['_revisionDataBuilder'][_0x4bcf('0x42')](_0x345b40,_0x12ac3f[_0x4bcf('0x6e')]),_0x1283bb={'id':_0x12ac3f['id'],'diffData':_0x4500ac[_0x4bcf('0x44')],'authorsIds':_0x4500ac['authorsIds'],'authors':_0x4500ac['authorsIds'][_0x4bcf('0x39')](_0x37f443=>this[_0x4bcf('0x54')]['plugins'][_0x4bcf('0x51')](_0x4bcf('0xcc'))['getUser'](_0x37f443)),'fromVersion':_0x345b40};_0x12ac3f===this[_0x4bcf('0xf0')]&&(_0x1283bb['createdAt']=new Date(_0x278a18['createdAt'][_0x4bcf('0x18')]()+0xa)),_0x12ac3f[_0x4bcf('0x2f')](_0x1283bb,!0x0),delete _0x1283bb[_0x4bcf('0x2c')],_0x6bdba5['push'](_0x1283bb);}}if(this[_0x4bcf('0x97')]){for(const _0x52df0d of _0x6bdba5)this[_0x4bcf('0xe9')](_0x52df0d['id'],_0x52df0d,!0x0);this[_0x4bcf('0xf6')]();}return _0x49a984;}['addRevisionData'](_0x45089c){const _0x5c6e32=this['repository'][_0x4bcf('0x63')](_0x45089c);return this[_0x4bcf('0x97')]&&_0x5c6e32['on'](_0x4bcf('0x2f'),(_0x298ce1,_0x31e37f,_0x2e0054)=>{_0x2e0054||(this['_bufferUpdate'](_0x31e37f['id'],_0x31e37f,!0x0),this[_0x4bcf('0xf6')]());}),this[_0x4bcf('0xbd')]['addRevision'](_0x5c6e32,this['_findInsertionIndex'](_0x5c6e32)),_0x5c6e32;}async[_0x4bcf('0x1f')](_0x1c000f){await this[_0x4bcf('0xc2')](_0x1c000f);const _0x2ef05e={};for(const _0x33701e in _0x1c000f['diffData']){if(_0x1c000f[_0x4bcf('0x44')][_0x33701e][_0x4bcf('0xf9')]&&!_0x1c000f[_0x4bcf('0x44')][_0x33701e][_0x4bcf('0xf9')][_0x4bcf('0xa7')])continue;const _0x488426=this[_0x4bcf('0xc')](JSON[_0x4bcf('0x2d')](_0x1c000f['diffData'][_0x33701e][_0x4bcf('0x78')])),_0x4ccc39=this[_0x4bcf('0x54')]['editing'][_0x4bcf('0x74')][_0x4bcf('0xe8')],_0x3897ef=new _0x19b0bc(_0x4ccc39,_0x488426[_0x4bcf('0x39')](_0x335403=>J(_0x335403,this[_0x4bcf('0x54')])));this[_0x4bcf('0x54')][_0x4bcf('0x11')][_0x4bcf('0x1')][_0x4bcf('0xd2')](_0x4bcf('0x4c')),_0x2ef05e[_0x33701e]=this[_0x4bcf('0x54')][_0x4bcf('0x11')][_0x4bcf('0x1')]['toData'](_0x3897ef),this[_0x4bcf('0x54')][_0x4bcf('0x11')][_0x4bcf('0x1')]['useFillerType'](_0x4bcf('0xdc'));}return _0x2ef05e;}async[_0x4bcf('0x5')](_0x487f14){await this['_loadRevisionData'](_0x487f14);const _0x501cbb={};for(const _0x12b9a4 in _0x487f14[_0x4bcf('0x44')])_0x487f14[_0x4bcf('0x44')][_0x12b9a4]['attachChange']&&!_0x487f14[_0x4bcf('0x44')][_0x12b9a4][_0x4bcf('0xf9')][_0x4bcf('0xa7')]||(_0x501cbb[_0x12b9a4]=_0x487f14[_0x4bcf('0x44')][_0x12b9a4][_0x4bcf('0xd1')]||{});return _0x501cbb;}[_0x4bcf('0xf6')](){if(0x0===this[_0x4bcf('0x4')]['size'])return;if(this[_0x4bcf('0x9d')])return;let _0x4b2a09=Array[_0x4bcf('0xc9')](this['_bufferedUpdates'][_0x4bcf('0x69')]());this[_0x4bcf('0x4')][_0x4bcf('0xc4')]();for(let _0x4d575b=0x0;_0x4d575b<_0x4b2a09[_0x4bcf('0x60')];_0x4d575b++){const _0x1fc701=_0x4b2a09[_0x4d575b];let _0x37d020=!0x1;for(const _0x8848c1 of Object[_0x4bcf('0x19')](_0x1fc701))void 0x0===_0x1fc701[_0x8848c1]?delete _0x1fc701[_0x8848c1]:'id'!==_0x8848c1&&(_0x37d020=!0x0);_0x37d020||(_0x4b2a09[_0x4d575b]=null);}if(_0x4b2a09=_0x4b2a09[_0x4bcf('0x8e')](_0x4a3c03=>null!==_0x4a3c03),!_0x4b2a09[_0x4bcf('0x60')])return;for(let _0x70f514=0x0;_0x70f514<_0x4b2a09['length'];_0x70f514++){const _0x222800=_0x4b2a09[_0x70f514];void 0x0!==_0x222800[_0x4bcf('0x61')]&&void 0x0===_0x222800[_0x4bcf('0x6e')]&&(_0x222800[_0x4bcf('0x6e')]=this[_0x4bcf('0xbd')]['getRevision'](_0x222800['id'])[_0x4bcf('0x6e')]),void 0x0!==_0x222800[_0x4bcf('0x6e')]&&void 0x0===_0x222800[_0x4bcf('0x61')]&&(_0x222800[_0x4bcf('0x61')]=this[_0x4bcf('0xbd')]['getRevision'](_0x222800['id'])['fromVersion']);}const _0x3da89b=this[_0x4bcf('0x54')][_0x4bcf('0x35')][_0x4bcf('0x51')]('collaboration.channelId');this[_0x4bcf('0x9d')]=!0x0,this[_0x4bcf('0xcf')](),this['adapter']['updateRevisions'](_0x4b2a09,_0x3da89b)['finally'](()=>{this[_0x4bcf('0x9d')]=!0x1;})[_0x4bcf('0xa9')](_0x405b64=>{if(_0x405b64)for(const _0x113174 of _0x405b64)this[_0x4bcf('0xa3')]({'id':_0x113174['id'],'createdAt':_0x113174[_0x4bcf('0xed')]});this[_0x4bcf('0x57')](),this[_0x4bcf('0xf6')]();});}[_0x4bcf('0x31')](_0x5372d7,_0x35508d){let _0x10ab50=this[_0x4bcf('0x54')][_0x4bcf('0x35')][_0x4bcf('0x51')](_0x4bcf('0x8f')),_0x976735=this[_0x4bcf('0x54')][_0x4bcf('0x35')][_0x4bcf('0x51')](_0x4bcf('0xf3'));if(void 0x0===_0x10ab50){_0x10ab50={};for(const _0x2e7431 of this[_0x4bcf('0x54')][_0x4bcf('0x80')]['document'][_0x4bcf('0x58')]())_0x10ab50[_0x2e7431]='';}if(_0x4bcf('0x27')==typeof _0x10ab50&&(_0x10ab50={'main':_0x10ab50}),void 0x0===_0x976735){_0x976735={};for(const _0x598d9a of this[_0x4bcf('0x54')][_0x4bcf('0x80')][_0x4bcf('0xe8')][_0x4bcf('0x58')]())_0x976735[_0x598d9a]={};}let _0x407547=!0x1;const _0x2ae889=Object[_0x4bcf('0x19')](_0x10ab50),_0x443301=Object[_0x4bcf('0x19')](_0x5372d7);for(const _0x44d4cc of _0x2ae889){if(_0x10ab50[_0x44d4cc]!==_0x5372d7[_0x44d4cc]&&''!==_0x10ab50[_0x44d4cc]['trim']()){_0x407547=!0x0;break;}if(!_0x16af73(_0x976735[_0x44d4cc],_0x35508d[_0x44d4cc])&&Object[_0x4bcf('0x19')](_0x976735[_0x44d4cc])[_0x4bcf('0x60')]>0x0){_0x407547=!0x0;break;}}_0x407547||(_0x407547=_0x443301[_0x4bcf('0x12')](_0x41a2d3=>!this[_0x4bcf('0x54')]['model'][_0x4bcf('0xe8')][_0x4bcf('0xd7')](_0x41a2d3))),_0x407547&&_0x582bc9(_0x4bcf('0xae'),{'editorData':_0x10ab50,'editorRootsAttributes':_0x976735,'revisionData':_0x5372d7,'revisionRootsAttributes':_0x35508d}),this[_0x4bcf('0x54')][_0x4bcf('0x35')][_0x4bcf('0xe0')]('initialData',_0x5372d7),this[_0x4bcf('0x54')]['config'][_0x4bcf('0xe0')](_0x4bcf('0xf3'),_0x35508d);}[_0x4bcf('0xcf')](){if(!this[_0x4bcf('0x17')]){const _0xde5405=this[_0x4bcf('0x54')][_0x4bcf('0xb6')]['get']('PendingActions');this[_0x4bcf('0x17')]=_0xde5405[_0x4bcf('0xb3')](_0x574bfc(this[_0x4bcf('0x54')]['locale'],_0x4bcf('0x36')));}}[_0x4bcf('0x57')](){this[_0x4bcf('0x17')]&&(this[_0x4bcf('0x54')]['plugins'][_0x4bcf('0x51')](_0x4bcf('0xd5'))[_0x4bcf('0xd')](this[_0x4bcf('0x17')]),this['_pendingAction']=null);}[_0x4bcf('0xaf')](_0xaa33d1){const _0x2aa385=this[_0x4bcf('0xbd')][_0x4bcf('0x2')]();_0x2aa385[_0x4bcf('0x4f')]();let _0x542fc3=0x0;for(;_0x542fc3<_0x2aa385[_0x4bcf('0x60')];){const _0xec740e=_0x2aa385[_0x542fc3];if(_0xec740e===this[_0x4bcf('0xf0')]){_0x542fc3++;continue;}if(_0xec740e['id']===this[_0x4bcf('0x7')])break;const _0x510dba=_0xaa33d1['toVersion']-_0xec740e[_0x4bcf('0x6e')]||_0xaa33d1[_0x4bcf('0x61')]-_0xec740e[_0x4bcf('0x61')];if(_0x510dba>0x0)break;if(_0x510dba<0x0)_0x542fc3++;else{if(!_0xaa33d1[_0x4bcf('0x20')]&&_0xec740e[_0x4bcf('0x20')])break;if(_0xec740e[_0x4bcf('0x20')]||!_0xaa33d1[_0x4bcf('0x20')]){if(_0xaa33d1['createdAt']>_0xec740e[_0x4bcf('0xed')])break;_0x542fc3++;}else _0x542fc3++;}}return _0x542fc3;}[_0x4bcf('0xa3')](_0x2c83e8){const _0x57f051=this[_0x4bcf('0xbd')]['getRevision'](_0x2c83e8['id']);if(_0x2c83e8['createdAt']&&(_0x2c83e8[_0x4bcf('0xed')]=new Date(_0x2c83e8[_0x4bcf('0xed')])),_0x2c83e8[_0x4bcf('0x9')]){const _0x472162=this[_0x4bcf('0x54')][_0x4bcf('0xb6')]['get'](_0x4bcf('0xcc'));_0x2c83e8['authors']=_0x2c83e8['authorsIds'][_0x4bcf('0x39')](_0x53be8a=>_0x472162['getUser'](_0x53be8a));}_0x57f051[_0x4bcf('0x2f')](_0x2c83e8,!0x0);}[_0x4bcf('0xb4')]({revision:_0x2f548c=null,from:_0x3f9b17=null,to:_0xef9464=null}){_0x3f9b17=null!==_0x3f9b17?_0x3f9b17:_0x2f548c[_0x4bcf('0x61')],_0xef9464=null!==_0xef9464?_0xef9464:_0x2f548c[_0x4bcf('0x6e')];const _0x1e7d09=this[_0x4bcf('0xbf')][_0x4bcf('0x42')](_0x3f9b17,_0xef9464),_0x8f803d={'diffData':_0x1e7d09[_0x4bcf('0x44')],'authorsIds':_0x1e7d09[_0x4bcf('0x9')],'fromVersion':_0x3f9b17,'toVersion':_0xef9464};if(!_0x2f548c||_0xef9464!==_0x2f548c[_0x4bcf('0x6e')]){const _0x1e0e39=_0xef9464-0x1,_0x220777=this[_0x4bcf('0xfb')][_0x4bcf('0x9b')][_0x4bcf('0x9c')](_0x1e0e39);_0x8f803d[_0x4bcf('0xed')]=_0x220777&&_0x220777['createdAt']||new Date();}if(this[_0x4bcf('0x30')]&&_0x3f9b17===this[_0x4bcf('0x30')]['fromVersion'])for(const _0x225d7b of this[_0x4bcf('0x30')]['authors'])_0x8f803d[_0x4bcf('0x9')][_0x4bcf('0x23')](_0x225d7b['id'])||_0x8f803d[_0x4bcf('0x9')]['push'](_0x225d7b['id']);return _0x8f803d;}[_0x4bcf('0xc2')](_0x216adb){if(!_0x216adb||_0x216adb['diffData'])return Promise[_0x4bcf('0x90')]();{const _0x24c243=this[_0x4bcf('0x54')]['config']['get'](_0x4bcf('0x7f'));return this[_0x4bcf('0x97')][_0x4bcf('0xf8')]({'channelId':_0x24c243,'revisionId':_0x216adb['id']})['then'](_0x3b6f32=>{_0x216adb['diffData']=_0x3b6f32[_0x4bcf('0x44')];});}}[_0x4bcf('0xe9')](_0x1d8ca6,_0x2ec2dc,_0x46d64e){if(this[_0x4bcf('0x4')][_0x4bcf('0xbc')](_0x1d8ca6)){const _0x31bbd1=this['_bufferedUpdates'][_0x4bcf('0x51')](_0x1d8ca6);_0x2ec2dc=_0x46d64e?{..._0x31bbd1,..._0x2ec2dc}:{..._0x2ec2dc,..._0x31bbd1};}this[_0x4bcf('0x4')]['set'](_0x1d8ca6,_0x2ec2dc);}[_0x4bcf('0x3b')](_0x2bb984){const _0xa57585=this[_0x4bcf('0xbd')][_0x4bcf('0x2')]();_0xa57585[_0x4bcf('0x4f')](),_0xa57585[_0x4bcf('0xb1')]();const _0x39887f=_0xa57585['find'](_0x416595=>_0x416595[_0x4bcf('0x6e')]<=_0x2bb984)[_0x4bcf('0x6e')];return _0x39887f<this['_startingVersion']?this['_startingVersion']:_0x39887f;}[_0x4bcf('0x3c')](_0x315857){const _0x3929b3=this[_0x4bcf('0xbd')]['getRevision'](this[_0x4bcf('0xbd')]['length']-0x1);if(_0x3929b3)this[_0x4bcf('0x7')]=_0x3929b3['id'];else{const _0x5112be=!this[_0x4bcf('0x54')][_0x4bcf('0x80')][_0x4bcf('0xe8')][_0x4bcf('0x45')]['find'](_0x3ac8c8=>this[_0x4bcf('0x54')][_0x4bcf('0x80')][_0x4bcf('0x64')](_0x3ac8c8)),_0x46e46a=this[_0x4bcf('0x54')][_0x4bcf('0xb6')]['get'](_0x4bcf('0xcc'))['me']['id'],_0x1024b6=_0x574bfc(this[_0x4bcf('0x54')][_0x4bcf('0x98')],_0x5112be?'Empty\x20document':_0x4bcf('0x29'));this[_0x4bcf('0xdb')]({'from':_0x315857,'to':_0x315857,'id':this['_initialRevisionId'],'name':_0x1024b6,'creatorId':_0x46e46a});}}[_0x4bcf('0x46')](_0x22dff4){const _0x5d815d=this[_0x4bcf('0xfb')][_0x4bcf('0xd3')]();this[_0x4bcf('0xf0')]=this[_0x4bcf('0xbd')][_0x4bcf('0xf8')](_0x5d815d),this[_0x4bcf('0xf0')]||(this[_0x4bcf('0xf0')]=this[_0x4bcf('0xdb')]({'from':_0x22dff4,'to':_0x22dff4,'id':_0x5d815d,'name':'','creatorId':null}));}[_0x4bcf('0xdb')]({name:_0x43057c,from:_0x4cbce0,to:_0x4d3cd5,creatorId:_0x3a7ac3,id:_0x12f7b4}){const _0xd72ed7=this['buildRevisionData']({'from':_0x4cbce0,'to':_0x4d3cd5});_0xd72ed7[_0x4bcf('0xa5')]=_0x43057c,_0xd72ed7['creatorId']=_0x3a7ac3,_0xd72ed7['id']=_0x12f7b4;const _0x3cadf4=this[_0x4bcf('0xe')](_0xd72ed7);return this[_0x4bcf('0x97')]&&this['_bufferUpdate'](_0xd72ed7['id'],_0xd72ed7,!0x0),_0x3cadf4;}[_0x4bcf('0xc1')](){this[_0x4bcf('0x54')][_0x4bcf('0xb0')]['for'](_0x4bcf('0xb2'))[_0x4bcf('0x10')]({'model':_0x4bcf('0xf')});}[_0x4bcf('0xc')](_0x30d3f6){return(_0x30d3f6=_0x30d3f6[_0x4bcf('0x8e')](_0xa20af=>!_0xa20af[_0x4bcf('0xa5')]||_0x4bcf('0xe4')!==_0xa20af[_0x4bcf('0xa5')]&&_0x4bcf('0x6a')!==_0xa20af['name']))[_0x4bcf('0x3a')](_0x5cec41=>{_0x4bcf('0x27')!=typeof _0x5cec41&&(_0x5cec41['children']=this[_0x4bcf('0xc')](_0x5cec41[_0x4bcf('0x91')]),_0x5cec41['attributes']=_0x5cec41['attributes']['filter'](_0x131775=>!_0x131775[0x0][_0x4bcf('0x83')]('data-revision-')));}),_0x30d3f6;}}function J(_0x33cdcf,_0x314271){const _0x1996cf=_0x314271[_0x4bcf('0x5b')]['view']['document'];if(_0x4bcf('0x27')==typeof _0x33cdcf)return new _0x43569e(_0x1996cf,_0x33cdcf);{const _0x30bf94=_0x33cdcf[_0x4bcf('0x91')][_0x4bcf('0x39')](_0x535a3b=>J(_0x535a3b,_0x314271));return new(B[_0x33cdcf[(_0x4bcf('0x73'))]]||_0x231e56)(_0x1996cf,_0x33cdcf['name'],_0x33cdcf['attributes'],_0x30bf94);}}class H{constructor(_0x143bd7){this[_0x4bcf('0x54')]=_0x143bd7,this[_0x4bcf('0x37')]=new Map(),this[_0x4bcf('0x7b')]=-0x1,this[_0x4bcf('0xec')]=-0x1,this[_0x4bcf('0x21')]=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x4bcf('0x100')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x4bcf('0x5a')]=new Map(),this[_0x4bcf('0x2b')]=new Map(),this[_0x4bcf('0xf7')]=new Map(),this[_0x4bcf('0xcd')]=0x1;}[_0x4bcf('0x5c')](_0x26342d){this[_0x4bcf('0xc8')]=_0x26342d;const _0x1ccf54=new Map(),_0x36d458=new Map(),_0x1f11a0=this[_0x4bcf('0x54')]['model'][_0x4bcf('0xe8')]['roots'][_0x4bcf('0x39')](_0x444762=>_0x444762[_0x4bcf('0x0')]);for(const _0x5ef164 of _0x1f11a0){const _0xb54ed5=this[_0x4bcf('0x54')][_0x4bcf('0x80')][_0x4bcf('0xe8')][_0x4bcf('0xd7')](_0x5ef164),_0x5c5c14=q(_0xb54ed5);_0x1ccf54[_0x4bcf('0xe0')](_0x5ef164,_0x5c5c14),_0x36d458[_0x4bcf('0xe0')](_0x5ef164,Object[_0x4bcf('0x4a')](_0xb54ed5['getAttributes']()));}const _0x1b862d=Array[_0x4bcf('0xc9')](this[_0x4bcf('0x54')][_0x4bcf('0x80')]['markers'])['map'](_0x59b378=>[_0x59b378['name'],_0x59b378[_0x4bcf('0x1a')]()]),_0xd6cbd1=this[_0x4bcf('0xc8')][_0x4bcf('0x70')];this[_0x4bcf('0x72')](_0xd6cbd1,_0x1ccf54,_0x1b862d,_0x36d458),this[_0x4bcf('0x5e')]=this[_0x4bcf('0xcd')];const _0x410558=new Map(),_0x56f967=new Map();for(const _0x594e4c of _0x1f11a0){const _0x4ea8f3=G(_0x594e4c);_0x410558[_0x4bcf('0xe0')](_0x594e4c,_0x4ea8f3),_0x56f967['set'](_0x594e4c,{});}this[_0x4bcf('0x72')](Number[_0x4bcf('0x5f')],_0x410558,[],_0x56f967);}['getData'](_0x1dbd9e,_0x2bff31){if(this['_lastFrom']===_0x1dbd9e&&this[_0x4bcf('0xec')]<=_0x2bff31)this[_0x4bcf('0x37')][_0x4bcf('0xf5')]>0x1&&this[_0x4bcf('0x34')](this[_0x4bcf('0xec')]),this[_0x4bcf('0xa6')](this['_lastTo'],_0x2bff31,!0x0);else{if(!this['_savedMetaData']['has'](_0x1dbd9e)){const _0x3778d7=this[_0x4bcf('0x48')](_0x1dbd9e);this[_0x4bcf('0x33')](_0x3778d7,_0x1dbd9e,!0x1);}this[_0x4bcf('0x33')](_0x1dbd9e,_0x2bff31,!0x0);}return this['_lastFrom']=_0x1dbd9e,this[_0x4bcf('0xec')]=_0x2bff31,this[_0x4bcf('0xcb')]();}[_0x4bcf('0x5d')](_0x3d6440){this[_0x4bcf('0xa4')](),this[_0x4bcf('0x7b')]=_0x3d6440[_0x4bcf('0x61')],this[_0x4bcf('0xec')]=_0x3d6440[_0x4bcf('0x6e')];for(const _0x4b6dc5 in _0x3d6440[_0x4bcf('0x44')]){const _0x2f7cc6=_0x3d6440[_0x4bcf('0x44')][_0x4b6dc5]['attachChange'],_0x1c13d5=_0x5d6016(_0x3d6440[_0x4bcf('0x44')][_0x4b6dc5][_0x4bcf('0x50')])||{},_0x5ea24a=this['_makeModelFromViewString'](_0x3d6440['diffData'][_0x4b6dc5][_0x4bcf('0x77')]);_0x5ea24a['rootName']=_0x4b6dc5,_0x5ea24a[_0x4bcf('0x7c')]=!_0x2f7cc6||!_0x2f7cc6[_0x4bcf('0xa7')],_0x5ea24a[_0x4bcf('0xa7')]=()=>_0x5ea24a[_0x4bcf('0x7c')],this[_0x4bcf('0x76')][_0x4bcf('0xe0')](_0x4b6dc5,_0x5ea24a),this['_baseRootsAttributes'][_0x4bcf('0xe0')](_0x4b6dc5,_0x1c13d5),_0x2f7cc6&&this['_touchedRoots'][_0x4bcf('0xe0')](_0x4b6dc5,_0x2f7cc6);const _0x41055d=this[_0x4bcf('0x1c')](_0x5ea24a);this[_0x4bcf('0xe6')][_0x4bcf('0xe0')](_0x4b6dc5,_0x41055d);for(const [_0x9904c5,_0x30d5e4]of _0x5ea24a[_0x4bcf('0x53')]){if(!_0x9904c5[_0x4bcf('0x83')](_0x4bcf('0x1e')))continue;const _0x168f64=_0x9904c5['split'](':')[0x2];for(const _0x20aeb7 of _0x30d5e4[_0x4bcf('0x6c')]({'singleCharacters':!0x0})){const _0x542f81=this['_getVidAttributeName'](_0x20aeb7),_0x2c9208=_0x4bcf('0x55')==_0x20aeb7[_0x4bcf('0x73')]?_0x20aeb7['previousPosition'][_0x4bcf('0xdf')][_0x4bcf('0xeb')](0x0,-0x1):_0x20aeb7[_0x4bcf('0xb9')]['path'],_0x59e43e=_0x41055d['getNodeByPath'](_0x2c9208)[_0x4bcf('0xfa')](_0x542f81);this[_0x4bcf('0x5a')]['set'](_0x59e43e,{'userId':_0x168f64});}}}this[_0x4bcf('0x5e')]=this[_0x4bcf('0xcd')];const _0x540619=[...Array(this[_0x4bcf('0xcd')])[_0x4bcf('0x19')]()][_0x4bcf('0xeb')](0x1)[_0x4bcf('0x8e')](_0x49f8eb=>!this[_0x4bcf('0x5a')][_0x4bcf('0xbc')](_0x49f8eb));let _0x536079=0x0;const _0x4e600b=new Map();for(const _0xee3b02 in _0x3d6440[_0x4bcf('0x44')]){const _0x599a01=_0x3d6440[_0x4bcf('0x44')][_0xee3b02][_0x4bcf('0xf9')],_0x14ea99=_0x5d6016(_0x3d6440[_0x4bcf('0x44')][_0xee3b02][_0x4bcf('0xd1')])||{},_0x33575d=this[_0x4bcf('0xdd')](_0x3d6440[_0x4bcf('0x44')][_0xee3b02][_0x4bcf('0x78')]);_0x33575d[_0x4bcf('0x0')]=_0xee3b02,_0x33575d[_0x4bcf('0x7c')]=!_0x599a01||_0x599a01['isAttached'],_0x33575d['isAttached']=()=>_0x33575d[_0x4bcf('0x7c')],this['_diffRoots']['set'](_0xee3b02,_0x33575d),this['_diffRootsAttributes'][_0x4bcf('0xe0')](_0xee3b02,_0x14ea99);const _0x5be0f6=this[_0x4bcf('0x1c')](_0x33575d,Number['NEGATIVE_INFINITY']);this[_0x4bcf('0x100')][_0x4bcf('0xe0')](_0xee3b02,_0x5be0f6),_0x4e600b[_0x4bcf('0xe0')](_0xee3b02,_0x33575d[_0x4bcf('0xa7')]()?_0x14ea99:{});for(const [_0x2126cd,_0x4cab65]of _0x33575d[_0x4bcf('0x53')]){if(!_0x2126cd['startsWith'](_0x4bcf('0x1e')))continue;const _0x874303=_0x2126cd[_0x4bcf('0x24')](':')[0x2];for(const _0x4de4ac of _0x4cab65[_0x4bcf('0x6c')]({'singleCharacters':!0x0})){const _0x158cf7=this[_0x4bcf('0x8b')](_0x4de4ac),_0x3f886a=this['_revisionId']++,_0x25df19=_0x4bcf('0x55')==_0x4de4ac[_0x4bcf('0x73')]?_0x4de4ac[_0x4bcf('0xb9')][_0x4bcf('0xdf')][_0x4bcf('0xeb')](0x0,-0x1):_0x4de4ac[_0x4bcf('0xb9')][_0x4bcf('0xdf')];_0x5be0f6[_0x4bcf('0xb8')](_0x25df19)[_0x4bcf('0xac')](_0x158cf7,_0x3f886a),this['_touched'][_0x4bcf('0xe0')](_0x3f886a,{'userId':_0x874303});}}for(const _0x215d52 of this['editor'][_0x4bcf('0x80')]['createRangeIn'](_0x33575d)['getWalker']({'singleCharacters':!0x0})){const _0xe5d0bc=this[_0x4bcf('0x8b')](_0x215d52),_0x1a14a9=_0x4bcf('0x55')==_0x215d52[_0x4bcf('0x73')]?_0x215d52[_0x4bcf('0xb9')][_0x4bcf('0xdf')]['slice'](0x0,-0x1):_0x215d52[_0x4bcf('0xb9')][_0x4bcf('0xdf')],_0x319088=_0x5be0f6['getNodeByPath'](_0x1a14a9);_0x319088['getAttribute'](_0xe5d0bc)>0x0||_0x319088[_0x4bcf('0xac')](_0xe5d0bc,_0x540619[_0x536079++]);}for(const [_0x5d8a4d,_0x4c42fb]of _0x33575d[_0x4bcf('0x53')])_0x5d8a4d['startsWith'](_0x4bcf('0x1e'))||this[_0x4bcf('0x21')][_0x4bcf('0xe0')](_0x5d8a4d,_0x4c42fb);}const _0x3ecd29=G(_0x4bcf('0x67'));this[_0x4bcf('0x76')][_0x4bcf('0xe0')](_0x4bcf('0x67'),_0x3ecd29),this[_0x4bcf('0xe6')][_0x4bcf('0xe0')]('$graveyard',this[_0x4bcf('0x1c')](_0x3ecd29,0x1));const _0x16296=G(_0x4bcf('0x67'));this['_diffRoots']['set'](_0x4bcf('0x67'),_0x16296),this[_0x4bcf('0x100')][_0x4bcf('0xe0')](_0x4bcf('0x67'),this['_makeIdsRoot'](_0x16296,0x1));const _0x4ba3a6=Array[_0x4bcf('0xc9')](this[_0x4bcf('0x65')])[_0x4bcf('0x39')](([_0x466aee,_0x1e5c4b])=>[_0x466aee,q(_0x1e5c4b)]);this[_0x4bcf('0x72')](this[_0x4bcf('0xec')],_0x4ba3a6,this['_markers'],_0x4e600b);}[_0x4bcf('0xdd')](_0x1d5a90){const _0xc11685=JSON[_0x4bcf('0x2d')](_0x1d5a90),_0x377601=this[_0x4bcf('0x54')]['editing']['view'][_0x4bcf('0xe8')],_0x4791ed=new _0x19b0bc(_0x377601,_0xc11685['map'](_0x5a52fe=>J(_0x5a52fe,this[_0x4bcf('0x54')])));return this[_0x4bcf('0x54')]['data'][_0x4bcf('0x59')](_0x4791ed);}[_0x4bcf('0x72')](_0x215588,_0x4dd396,_0x4179d2,_0x250e66){const _0x513031=new Map(_0x4dd396),_0x202281=new Map(_0x5d6016(_0x250e66)),_0x4c1cbf=new Map();for(const [_0x11c3af,_0x501233]of _0x4179d2)_0x4c1cbf[_0x4bcf('0xe0')](_0x11c3af,{'start':_0x501233[_0x4bcf('0xde')][_0x4bcf('0xee')](),'end':_0x501233[_0x4bcf('0xab')][_0x4bcf('0xee')](),'rootName':_0x501233[_0x4bcf('0xaa')]['rootName']});this[_0x4bcf('0x37')][_0x4bcf('0xe0')](_0x215588,{'roots':_0x513031,'markers':_0x4c1cbf,'rootsAttributes':_0x202281});}['_removeMetaData'](_0xdcafcf){this['_savedMetaData'][_0x4bcf('0xe1')](_0xdcafcf);}[_0x4bcf('0x3e')](){this[_0x4bcf('0xa4')](),this['_lastFrom']=-0x1,this[_0x4bcf('0xec')]=-0x1,this[_0x4bcf('0x37')][_0x4bcf('0xc4')](),this[_0x4bcf('0x5c')](this[_0x4bcf('0xc8')]);}['_reset'](){this[_0x4bcf('0x5a')][_0x4bcf('0xc4')](),this[_0x4bcf('0x2b')]['clear'](),this[_0x4bcf('0xf7')][_0x4bcf('0xc4')](),this[_0x4bcf('0x65')]['clear'](),this[_0x4bcf('0xc3')][_0x4bcf('0xc4')](),this[_0x4bcf('0x76')]['clear'](),this[_0x4bcf('0x71')][_0x4bcf('0xc4')](),this[_0x4bcf('0x100')][_0x4bcf('0xc4')](),this['_baseIdsRoots'][_0x4bcf('0xc4')](),this[_0x4bcf('0x21')][_0x4bcf('0xc4')](),this['_revisionId']=0x1,this[_0x4bcf('0x5e')]=this[_0x4bcf('0xcd')];}[_0x4bcf('0x1c')](_0x4c6fc0,_0x2a0ef9=null){let _0x5720d8=null;_0x4c6fc0['is'](_0x4bcf('0x96'))||(_0x5720d8=new _0x51760e(_0x4c6fc0[_0x4bcf('0xa5')],{'vid_start':null===_0x2a0ef9?this[_0x4bcf('0xcd')]++:_0x2a0ef9++}));const _0x4f928e=[];for(const _0x3566ba of _0x4c6fc0['getChildren']())if(_0x3566ba['is'](_0x4bcf('0xff'))){_0x4f928e[_0x4bcf('0x56')](this[_0x4bcf('0x1c')](_0x3566ba,_0x2a0ef9));const _0x2f7e98=_0x4f928e[_0x4f928e[_0x4bcf('0x60')]-0x1];null!==_0x2a0ef9&&(_0x2a0ef9=_0x2f7e98['is']('element',_0x4bcf('0x3f'))?_0x2f7e98[_0x4bcf('0xfa')]('vid')+0x1:_0x2f7e98[_0x4bcf('0xfa')](_0x4bcf('0x4d'))+0x1);}else for(let _0x3a8225=0x0;_0x3a8225<_0x3566ba['offsetSize'];_0x3a8225++)_0x4f928e['push'](new _0x51760e(_0x4bcf('0x3f'),{'vid':null===_0x2a0ef9?this[_0x4bcf('0xcd')]++:_0x2a0ef9++}));if(_0x4c6fc0['is'](_0x4bcf('0x96'))){const _0x3c7d1b=G(_0x4c6fc0['rootName']);return _0x3c7d1b[_0x4bcf('0xe5')](0x0,_0x4f928e),_0x3c7d1b;}return _0x5720d8[_0x4bcf('0xac')](_0x4bcf('0x4d'),null===_0x2a0ef9?this[_0x4bcf('0xcd')]++:_0x2a0ef9++),_0x5720d8[_0x4bcf('0xe5')](0x0,_0x4f928e),_0x5720d8;}['_calculateMetaData'](_0x159d58,_0x1423e3,_0x1ddf36){this[_0x4bcf('0xa4')]();const {roots:_0x258679,markers:_0x11a19d,rootsAttributes:_0x234dc4}=this[_0x4bcf('0x37')][_0x4bcf('0x51')](_0x159d58);this[_0x4bcf('0x76')]=new Map(_0x258679),this[_0x4bcf('0x71')]=new Map(_0x5d6016(_0x234dc4));for(const [_0x2a0ad4,_0x8c8279]of this[_0x4bcf('0x76')])if('$graveyard'!==_0x2a0ad4&&(this[_0x4bcf('0x65')][_0x4bcf('0xe0')](_0x2a0ad4,q(_0x8c8279)),this[_0x4bcf('0xc3')]=new Map(_0x5d6016(_0x234dc4)),_0x1ddf36)){const _0x192767=this[_0x4bcf('0xcd')];this[_0x4bcf('0x100')]['set'](_0x2a0ad4,this[_0x4bcf('0x1c')](_0x8c8279)),this[_0x4bcf('0xe6')][_0x4bcf('0xe0')](_0x2a0ad4,this['_makeIdsRoot'](_0x8c8279,_0x192767));}this['_startingRevisionId']=this[_0x4bcf('0xcd')],this[_0x4bcf('0x65')][_0x4bcf('0xe0')]('$graveyard',q(this[_0x4bcf('0x76')]['get'](_0x4bcf('0x67')))),_0x1ddf36&&this['_idsRoots'][_0x4bcf('0xe0')](_0x4bcf('0x67'),this[_0x4bcf('0x1c')](this['_baseRoots'][_0x4bcf('0x51')]('$graveyard')));for(const [_0x56b25d,_0x57fd9e]of _0x11a19d){const _0x3c7e7e=this[_0x4bcf('0x76')][_0x4bcf('0x51')](_0x57fd9e[_0x4bcf('0x0')]),_0x205428=this[_0x4bcf('0x65')][_0x4bcf('0x51')](_0x57fd9e['rootName']),_0x37d0f0=new _0x222ffc(this['_fixPosition'](_0x57fd9e[_0x4bcf('0xde')],_0x3c7e7e),this[_0x4bcf('0x9a')](_0x57fd9e[_0x4bcf('0xab')],_0x3c7e7e)),_0x302b0a=this['_fixRange'](_0x37d0f0,_0x205428);_0x3c7e7e[_0x4bcf('0x53')][_0x4bcf('0xe0')](_0x56b25d,_0x37d0f0),this[_0x4bcf('0x21')][_0x4bcf('0xe0')](_0x56b25d,_0x302b0a);}this[_0x4bcf('0xa6')](_0x159d58,_0x1423e3,_0x1ddf36);}[_0x4bcf('0xa6')](_0x5896b6,_0x19b721,_0x3a2f6a){for(const _0x292e90 of this[_0x4bcf('0xc8')][_0x4bcf('0x87')](_0x5896b6,_0x19b721))this['_handleOperation'](_0x292e90,_0x3a2f6a);for(const _0x257217 of this[_0x4bcf('0x65')][_0x4bcf('0x69')]())_0x257217[_0x4bcf('0x53')]['clear']();for(const [_0x4523b1,_0x5c23ea]of this[_0x4bcf('0x21')]){this[_0x4bcf('0x65')]['get'](_0x5c23ea[_0x4bcf('0xaa')][_0x4bcf('0x0')])[_0x4bcf('0x53')]['set'](_0x4523b1,_0x5c23ea[_0x4bcf('0xee')]());}const _0x501516=new Map(),_0x5edfed=new Map();for(const [_0x46e202,_0x47794b]of this[_0x4bcf('0x65')])_0x501516[_0x4bcf('0xe0')](_0x46e202,q(_0x47794b)),_0x5edfed[_0x4bcf('0xe0')](_0x46e202,this[_0x4bcf('0xc3')][_0x4bcf('0x51')](_0x46e202));this['_saveMetaData'](_0x19b721,_0x501516,this['_markers'],_0x5edfed);}[_0x4bcf('0x48')](_0x36f5c1){const _0x4ca52f=Array[_0x4bcf('0xc9')](this['_savedMetaData'][_0x4bcf('0x19')]());_0x4ca52f[_0x4bcf('0x84')]((_0x5a555d,_0x47ce74)=>_0x5a555d-_0x47ce74),_0x4ca52f[_0x4bcf('0x4f')]();for(const _0x2cb355 of _0x4ca52f)if(_0x2cb355<_0x36f5c1)return _0x2cb355;return Number['NEGATIVE_INFINITY'];}[_0x4bcf('0x75')](_0x3268a4,_0x26ccb1){const _0x344422=Array['from'](_0x26ccb1['markers'])['map'](([_0x5db1a5,_0x52cdfe])=>[_0x5db1a5,this['_fixRange'](_0x52cdfe,_0x3268a4)]);_0x3268a4[_0x4bcf('0x53')]=new Map(_0x344422);}[_0x4bcf('0xea')](_0x254b32){for(const _0x1bfd18 of this[_0x4bcf('0x21')][_0x4bcf('0x69')]()){const _0x1bcd24=_0x1bfd18[_0x4bcf('0x92')](_0x254b32),_0x5fe991=_0x222ffc[_0x4bcf('0x15')](_0x1bcd24);_0x1bfd18[_0x4bcf('0xde')]=_0x5fe991[_0x4bcf('0xde')],_0x1bfd18[_0x4bcf('0xab')]=_0x5fe991[_0x4bcf('0xab')];}}[_0x4bcf('0x16')](_0x40b304,_0x4c3633){if('addRoot'==_0x40b304[_0x4bcf('0x73')]||'detachRoot'==_0x40b304[_0x4bcf('0x73')])return void this['_handleRootOperation'](_0x40b304,_0x4c3633);if(_0x4bcf('0x93')==_0x40b304[_0x4bcf('0x73')]){const _0x8ca050=_0x40b304['position'][_0x4bcf('0xaa')][_0x4bcf('0x0')];this[_0x4bcf('0x65')][_0x4bcf('0xbc')](_0x8ca050)||(this[_0x4bcf('0x65')]['set'](_0x8ca050,G(_0x8ca050,!0x0)),this['_diffRootsAttributes'][_0x4bcf('0xe0')](_0x8ca050,{}),_0x4c3633&&this[_0x4bcf('0x100')][_0x4bcf('0xe0')](_0x8ca050,G(_0x8ca050,!0x0)));}else{if(_0x4bcf('0x32')==_0x40b304['type']||_0x4bcf('0xda')==_0x40b304[_0x4bcf('0x73')]||_0x4bcf('0xad')==_0x40b304[_0x4bcf('0x73')])return void this[_0x4bcf('0xf1')](_0x40b304);}const _0x31f676=this['_cloneOperation'](_0x40b304,this[_0x4bcf('0x65')]);if(_0x4bcf('0xce')!==_0x40b304['type']&&(_0x31f676['_execute'](),this[_0x4bcf('0xea')](_0x31f676)),_0x4c3633)switch(_0x31f676['type']){case _0x4bcf('0x93'):this[_0x4bcf('0x47')](_0x40b304);break;case _0x4bcf('0x6b'):case'remove':case'reinsert':this[_0x4bcf('0x40')](_0x40b304);break;case _0x4bcf('0xa0'):this[_0x4bcf('0x43')](_0x40b304);break;case _0x4bcf('0x24'):this[_0x4bcf('0xfd')](_0x40b304);break;case _0x4bcf('0xce'):this[_0x4bcf('0x14')](_0x40b304);}}[_0x4bcf('0x62')](_0x4ad0c4,_0x33cc80){const _0x78931=_0x4ad0c4['clone']();return _0x78931[_0x4bcf('0xd8')]=_0x4ad0c4[_0x4bcf('0xd8')],this['_fixOperation'](_0x78931,_0x33cc80),_0x78931;}['_getBaseVids'](_0x3e86a9){return _0x3e86a9[_0x4bcf('0x39')](_0x5bc1b2=>{const _0x413822=this[_0x4bcf('0x8b')](_0x5bc1b2);return Number(_0x5bc1b2[_0x4bcf('0x22')]['getAttribute'](_0x413822));});}[_0x4bcf('0xb7')](_0x3f5979,_0x3ecccb){if(_0x3f5979['is']('element',_0x4bcf('0x3f')))_0x3ecccb[_0x4bcf('0x56')]({'item':_0x3f5979,'type':_0x4bcf('0x3d')});else{_0x3f5979['is']('element')&&_0x3ecccb[_0x4bcf('0x56')]({'item':_0x3f5979,'type':_0x4bcf('0x1b')});for(const _0x53456f of _0x3f5979[_0x4bcf('0x26')]())this['_generateTape'](_0x53456f,_0x3ecccb);_0x3f5979['is'](_0x4bcf('0xff'))&&_0x3ecccb[_0x4bcf('0x56')]({'item':_0x3f5979,'type':_0x4bcf('0x55')});}return _0x3ecccb;}['_getState'](){const _0x247c84=new Map(this['_touched']),_0x435883=new Map(_0x247c84),_0x169064=new Map(),_0x489b38={'insertions':{},'deletions':{}},_0xb5d2cf={'insertions':{},'deletions':{}},_0x1a344b=new Map(),_0x19e87d=new Set([...this[_0x4bcf('0x76')][_0x4bcf('0x19')](),...this[_0x4bcf('0x65')]['keys']()]);_0x19e87d[_0x4bcf('0xe1')](_0x4bcf('0x67'));for(const _0x3ee2ef of _0x19e87d){const _0x32969c=this[_0x4bcf('0x65')]['get'](_0x3ee2ef)||G(_0x3ee2ef,!0x1),_0x3724e2=this['_baseRoots'][_0x4bcf('0x51')](_0x3ee2ef)||G(_0x3ee2ef,!0x1);_0x32969c[_0x4bcf('0xa7')]()||_0x3724e2[_0x4bcf('0xa7')]()?(_0x489b38[_0x4bcf('0x78')][_0x3ee2ef]=q(_0x32969c),_0x489b38[_0x4bcf('0x77')][_0x3ee2ef]=q(_0x3724e2),this['_copyMarkers'](_0x489b38[_0x4bcf('0x77')][_0x3ee2ef],_0x3724e2),this[_0x4bcf('0x75')](_0x489b38[_0x4bcf('0x78')][_0x3ee2ef],_0x32969c),_0xb5d2cf[_0x4bcf('0x78')][_0x3ee2ef]=this[_0x4bcf('0xb7')](this[_0x4bcf('0x100')][_0x4bcf('0x51')](_0x3ee2ef),[]),_0xb5d2cf[_0x4bcf('0x77')][_0x3ee2ef]=this[_0x4bcf('0xb7')](this[_0x4bcf('0xe6')][_0x4bcf('0x51')](_0x3ee2ef)||G(_0x3ee2ef,!0x1),[])):_0x19e87d[_0x4bcf('0xe1')](_0x3ee2ef);}for(const _0x11f05e of _0x19e87d){const _0x3b1381=_0xb5d2cf[_0x4bcf('0x78')][_0x11f05e];for(const _0x309627 of _0x3b1381){const _0xd92785=this['_getVidAttributeName'](_0x309627),_0x54554f=_0x309627[_0x4bcf('0x22')][_0x4bcf('0xfa')](_0xd92785);_0x435883[_0x4bcf('0xe1')](_0x54554f),_0x54554f>=this[_0x4bcf('0x5e')]&&_0x169064['set'](_0x54554f,_0x247c84[_0x4bcf('0x51')](_0x54554f));}}for(const _0xa568d3 of _0x19e87d){const _0x1977e1=_0xb5d2cf[_0x4bcf('0x78')][_0xa568d3],_0x1e35e4=this['_getBaseVids'](_0xb5d2cf[_0x4bcf('0x77')][_0xa568d3]);let _0x2cdb22=0x0;for(const _0x4341b6 of _0x1977e1){const _0x281165=this['_getVidAttributeName'](_0x4341b6),_0x45cfd2=_0x4341b6[_0x4bcf('0x22')][_0x4bcf('0xfa')](_0x281165);if(!_0x169064[_0x4bcf('0xbc')](_0x45cfd2)&&!_0x1a344b[_0x4bcf('0xbc')](_0x45cfd2)){if(_0x435883[_0x4bcf('0xbc')](_0x45cfd2))_0x2cdb22++;else{if(_0x45cfd2!=_0x1e35e4[_0x2cdb22]){const _0x2ddaab=_0x247c84[_0x4bcf('0x51')](_0x45cfd2)||_0x247c84[_0x4bcf('0x51')](_0x1e35e4[_0x2cdb22]);for(;_0x45cfd2!=_0x1e35e4[_0x2cdb22];)_0x435883['has'](_0x1e35e4[_0x2cdb22])||(_0x1a344b[_0x4bcf('0xe0')](_0x1e35e4[_0x2cdb22],_0x2ddaab),_0x247c84[_0x4bcf('0xe0')](_0x1e35e4[_0x2cdb22],_0x2ddaab)),_0x2cdb22++;}_0x2cdb22++;}}}}for(const _0x455cd6 of _0x19e87d){const _0x5395ee=_0xb5d2cf['insertions'][_0x455cd6];for(const _0x372d2e of _0x5395ee){const _0x2fe903=this[_0x4bcf('0x8b')](_0x372d2e),_0xdd0700=_0x372d2e[_0x4bcf('0x22')]['getAttribute'](_0x2fe903);if(_0x1a344b['has'](_0xdd0700)){const _0x2d71b1=_0x1a344b[_0x4bcf('0x51')](_0xdd0700);_0x435883[_0x4bcf('0xbc')](_0xdd0700)||_0x435883['set'](_0xdd0700,{..._0x2d71b1}),_0x169064[_0x4bcf('0xe0')](_0xdd0700,{..._0x2d71b1});}}}for(const _0x2f3721 of _0x435883[_0x4bcf('0x19')]())_0x2f3721>=this[_0x4bcf('0x5e')]&&_0x435883[_0x4bcf('0xe1')](_0x2f3721);const _0xd6ecef=new Map();for(const _0x559221 of _0x19e87d){let _0x21288f=_0xb5d2cf[_0x4bcf('0x78')][_0x559221];for(const _0x459839 of _0x21288f)if(_0x459839['item']['is'](_0x4bcf('0xff'),_0x4bcf('0x9e'))){const _0x1cad3c=this[_0x4bcf('0x8b')](_0x459839),_0x1734ee=_0x459839[_0x4bcf('0x22')][_0x4bcf('0xfa')](_0x1cad3c);if(_0x169064[_0x4bcf('0xbc')](_0x1734ee)){const _0x33e8a3=_0x459839[_0x4bcf('0x22')]['parent'][_0x4bcf('0xa2')][_0x4bcf('0xfa')](_0x4bcf('0x3')),_0x52c78c=_0xd6ecef['get'](_0x33e8a3)||new Set();_0x52c78c[_0x4bcf('0xb3')](_0x169064['get'](_0x1734ee)[_0x4bcf('0xe7')]),_0xd6ecef['set'](_0x33e8a3,_0x52c78c);}}_0x21288f=_0xb5d2cf[_0x4bcf('0x77')][_0x559221];for(const _0x522d56 of _0x21288f)if(_0x522d56[_0x4bcf('0x22')]['is'](_0x4bcf('0xff'),'tableCell')){const _0x119636=this['_getVidAttributeName'](_0x522d56),_0x4d0dce=_0x522d56[_0x4bcf('0x22')][_0x4bcf('0xfa')](_0x119636);if(_0x435883[_0x4bcf('0xbc')](_0x4d0dce)){const _0x3ca640=_0x522d56[_0x4bcf('0x22')][_0x4bcf('0xa2')][_0x4bcf('0xa2')]['getAttribute'](_0x4bcf('0x3')),_0x2b4bbb=_0xd6ecef[_0x4bcf('0x51')](_0x3ca640)||new Set();_0x2b4bbb[_0x4bcf('0xb3')](_0x435883[_0x4bcf('0x51')](_0x4d0dce)['userId']),_0xd6ecef['set'](_0x3ca640,_0x2b4bbb);}}for(const _0x5aa53c of _0xd6ecef['keys']())(_0x169064[_0x4bcf('0xbc')](_0x5aa53c)||_0x435883[_0x4bcf('0xbc')](_0x5aa53c))&&_0xd6ecef[_0x4bcf('0xe1')](_0x5aa53c);}for(const _0x3527de of _0x19e87d){const _0x2f2732=_0xb5d2cf['insertions'][_0x3527de];let _0x47d8c2=null,_0x5ba7cc=null;for(const _0x2444aa of _0x2f2732){const _0x18b07c=this[_0x4bcf('0x8b')](_0x2444aa),_0x666c2c=_0x2444aa[_0x4bcf('0x22')][_0x4bcf('0xfa')](_0x18b07c),_0x32df31=_0xd6ecef[_0x4bcf('0x51')](_0x666c2c);_0x32df31&&_0x4bcf('0x1b')==_0x2444aa[_0x4bcf('0x73')]&&(_0x47d8c2=Array[_0x4bcf('0xc9')](_0x32df31)[0x0],_0x5ba7cc=_0x2444aa['item'][_0x4bcf('0xfa')](_0x4bcf('0x4d'))),_0x47d8c2&&(_0x435883[_0x4bcf('0xe0')](_0x666c2c,{'userId':_0x47d8c2}),_0x169064['set'](_0x666c2c,{'userId':_0x47d8c2})),_0x666c2c==_0x5ba7cc&&(_0x47d8c2=null,_0x5ba7cc=null);}}const _0xfb1bf0={},_0xd0ce7=new Set();for(const _0x2b99ef of _0x19e87d){const _0x3ea6a6=_0x489b38[_0x4bcf('0x77')][_0x2b99ef],_0x2c8401=_0x489b38[_0x4bcf('0x78')][_0x2b99ef];for(const {userId:_0x2783b6}of this[_0x4bcf('0x2b')][_0x4bcf('0x69')]())null!==_0x2783b6&&_0xd0ce7[_0x4bcf('0xb3')](_0x2783b6);for(const {userId:_0x900306}of this[_0x4bcf('0xf7')][_0x4bcf('0x69')]())null!==_0x900306&&_0xd0ce7[_0x4bcf('0xb3')](_0x900306);this['_markChanges'](_0x2c8401,_0xb5d2cf['insertions'][_0x2b99ef],_0x169064,'insertion',_0xd0ce7),this['_markChanges'](_0x3ea6a6,_0xb5d2cf[_0x4bcf('0x77')][_0x2b99ef],_0x435883,_0x4bcf('0xca'),_0xd0ce7),_0xfb1bf0[_0x2b99ef]={'insertions':this[_0x4bcf('0xe2')](_0x2c8401),'deletions':this[_0x4bcf('0xe2')](_0x3ea6a6),'attachChange':this['_touchedRoots'][_0x4bcf('0x51')](_0x2b99ef)||null,'attributesBefore':_0x5d6016(this[_0x4bcf('0x71')][_0x4bcf('0x51')](_0x2b99ef))||{},'attributesAfter':_0x5d6016(this[_0x4bcf('0xc3')][_0x4bcf('0x51')](_0x2b99ef))};}return{'diffData':_0xfb1bf0,'authorsIds':Array[_0x4bcf('0xc9')](_0xd0ce7)};}[_0x4bcf('0xfc')](_0x2c398f){for(const [,_0x97c49]of _0x2c398f[_0x4bcf('0x53')]){const _0x58af07=_0x97c49[_0x4bcf('0xde')][_0x4bcf('0x8a')]()[_0x4bcf('0x8e')](_0x97545d=>_0x4bcf('0x9e')==_0x97545d[_0x4bcf('0xa5')]);for(const _0xb0bedb of _0x58af07)0x1==_0xb0bedb[_0x4bcf('0x4e')]&&_0xb0bedb[_0x4bcf('0x2e')](0x0)['is'](_0x4bcf('0xff'),'paragraph')&&_0xb0bedb['getChild'](0x0)[_0x4bcf('0xac')]('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1097dd){this[_0x4bcf('0xfc')](_0x1097dd);const _0x4e681a=this['editor'][_0x4bcf('0x11')]['toView'](_0x1097dd,{}),_0x47d5d0=Array['from'](_0x4e681a[_0x4bcf('0x26')]())[_0x4bcf('0x39')](_0x31549e=>this[_0x4bcf('0xef')](_0x31549e));return JSON[_0x4bcf('0x88')](_0x47d5d0);}[_0x4bcf('0xef')](_0x49eb95){if(_0x49eb95['is'](_0x4bcf('0x3f')))return _0x49eb95[_0x4bcf('0x11')];{const _0x2f5ed0=_0x49eb95;return{'type':Object[_0x4bcf('0x19')](B)['find'](_0x3c4096=>_0x49eb95 instanceof B[_0x3c4096]),'name':_0x2f5ed0[_0x4bcf('0xa5')],'attributes':Array['from'](_0x2f5ed0[_0x4bcf('0x38')]()),'children':Array[_0x4bcf('0xc9')](_0x2f5ed0['getChildren']())[_0x4bcf('0x39')](_0x19ec55=>this['_getViewJson'](_0x19ec55))};}}[_0x4bcf('0x49')](_0x1a19b5,_0x1f9403,_0x5a00de,_0x2c631d,_0x3808bf){let _0x34e52f=null,_0x3c6056=null,_0x3a5cb8=0x0;const _0x15d0dd=this[_0x4bcf('0x54')][_0x4bcf('0x80')];for(let _0x4f36e6=0x0;_0x4f36e6<_0x1f9403[_0x4bcf('0x60')];_0x4f36e6++){const _0x8554ff=this[_0x4bcf('0x8b')](_0x1f9403[_0x4f36e6]),_0x1e5b1e=_0x1f9403[_0x4f36e6][_0x4bcf('0x22')][_0x4bcf('0xfa')](_0x8554ff),_0x1fe281=_0x5a00de['get'](_0x1e5b1e),_0xd3aa2=_0x4f36e6==_0x1f9403[_0x4bcf('0x60')]-0x1;(!_0x34e52f&&_0x1fe281&&(_0x34e52f=_0x1fe281,_0x3c6056=_0x1f9403[_0x4f36e6]),_0x34e52f&&(!_0x1fe281||_0x1fe281[_0x4bcf('0xe7')]!=_0x34e52f[_0x4bcf('0xe7')]))&&(_0x5dea73(_0x1fe281,L(_0x3c6056,_0x1a19b5,_0x15d0dd),L(_0x1f9403[_0x4f36e6],_0x1a19b5,_0x15d0dd)),_0x34e52f=_0x1fe281||null,_0x3c6056=_0x1fe281?_0x1f9403[_0x4f36e6]:null),_0x34e52f&&_0xd3aa2&&_0x5dea73(_0x1fe281,L(_0x3c6056,_0x1a19b5,_0x15d0dd),W(_0x1f9403[_0x4f36e6],_0x1a19b5,_0x15d0dd));}function _0x5dea73(_0x4498c9,_0x294a09,_0x190901){const _0x3b9cad=_0x34e52f[_0x4bcf('0xe7')],_0xdaf14='revision:'+_0x2c631d+':'+_0x3b9cad+':'+_0x3a5cb8++,_0x17975d=_0x15d0dd['createRange'](_0x294a09,_0x190901);_0x1a19b5[_0x4bcf('0x53')]['set'](_0xdaf14,_0x17975d),null!==_0x3b9cad&&_0x3808bf[_0x4bcf('0xb3')](_0x3b9cad);}}[_0x4bcf('0x8b')](_0x351bd9){switch(_0x351bd9[_0x4bcf('0x73')]){case'elementStart':return _0x4bcf('0x3');case'elementEnd':return'vid_end';default:return _0x4bcf('0xc5');}}['_fixOperation'](_0x4ab931,_0x57dbb2){_0x4ab931[_0x4bcf('0xf2')]=null;for(const _0x35ab98 in _0x4ab931){const _0x4988e7=_0x4ab931[_0x35ab98];if(_0x4988e7 instanceof _0x50936b){const _0xa0cc5a=_0x57dbb2['get'](_0x4988e7[_0x4bcf('0xaa')][_0x4bcf('0x0')]);_0x4ab931[_0x35ab98]=this[_0x4bcf('0x9a')](_0x4988e7,_0xa0cc5a);}if(_0x4988e7 instanceof _0x222ffc){const _0x553750=_0x57dbb2['get'](_0x4988e7['root']['rootName']);_0x4ab931[_0x35ab98]=this['_fixRange'](_0x4988e7,_0x553750);}_0x4bcf('0xaa')===_0x35ab98&&(_0x4ab931[_0x4bcf('0xaa')]=_0x57dbb2[_0x4bcf('0x51')](_0x4ab931[_0x4bcf('0xaa')][_0x4bcf('0x0')]));}}[_0x4bcf('0x7a')](_0x4bbdd5,_0x5f3197){return this['editor'][_0x4bcf('0x80')][_0x4bcf('0x52')](this['_fixPosition'](_0x4bbdd5[_0x4bcf('0xde')],_0x5f3197),this['_fixPosition'](_0x4bbdd5[_0x4bcf('0xab')],_0x5f3197));}[_0x4bcf('0x9a')](_0x53f474,_0xae27ee){return this[_0x4bcf('0x54')][_0x4bcf('0x80')]['createPositionFromPath'](_0xae27ee,_0x53f474['path'],_0x53f474[_0x4bcf('0x28')]);}[_0x4bcf('0x47')](_0x45d2fe){const _0x30a00c=this['_idsRoots'][_0x4bcf('0x51')](_0x45d2fe['position']['root'][_0x4bcf('0x0')]),_0x41a6b1=this[_0x4bcf('0x9a')](_0x45d2fe[_0x4bcf('0xa1')],_0x30a00c),_0x166588=null===_0x45d2fe['_authorId']?null:_0x45d2fe[_0x4bcf('0xd8')]||this[_0x4bcf('0x54')][_0x4bcf('0xb6')][_0x4bcf('0x51')](_0x4bcf('0xcc'))['me']['id'],_0x34ea71=_0x41a6b1[_0x4bcf('0xa2')],_0x752eb3=this[_0x4bcf('0xcd')],_0x1b178c=[];for(const _0x32865d of _0x45d2fe[_0x4bcf('0x6d')])if(_0x32865d['is'](_0x4bcf('0xff')))_0x1b178c['push'](this[_0x4bcf('0x1c')](_0x32865d));else for(let _0x3152f4=0x0;_0x3152f4<_0x32865d['offsetSize'];_0x3152f4++)_0x1b178c['push'](new _0x51760e(_0x4bcf('0x3f'),{'vid':this['_revisionId']++}));const _0x1b3288=this['_revisionId'];for(let _0x278838=_0x752eb3;_0x278838<_0x1b3288;_0x278838++)this[_0x4bcf('0x5a')][_0x4bcf('0xe0')](_0x278838,{'userId':_0x166588});_0x34ea71['_insertChild'](_0x41a6b1['offset'],_0x1b178c);}['_handleMoveOperation'](_0x19e84b){(_0x19e84b=this[_0x4bcf('0x62')](_0x19e84b,this[_0x4bcf('0x100')]))[_0x4bcf('0x102')]();const _0x4951e8=null===_0x19e84b[_0x4bcf('0xd8')]?null:_0x19e84b[_0x4bcf('0xd8')]||this[_0x4bcf('0x54')][_0x4bcf('0xb6')][_0x4bcf('0x51')]('Users')['me']['id'],_0x5eac43=_0x19e84b[_0x4bcf('0xc6')](),_0x1da679=_0x5eac43[_0x4bcf('0xa2')],_0x382a54=_0x5eac43[_0x4bcf('0xb')];!function _0x17bdec(_0x5e80e9,_0x25b9ab,_0x5232f,_0x364709){for(let _0x44fc17=_0x5232f;_0x44fc17<_0x364709;_0x44fc17++){const _0x42fcd4=_0x25b9ab[_0x4bcf('0x2e')](_0x44fc17);_0x42fcd4['is'](_0x4bcf('0xff'),_0x4bcf('0x3f'))?_0x5e80e9[_0x4bcf('0xe0')](_0x42fcd4[_0x4bcf('0xfa')](_0x4bcf('0xc5')),{'userId':_0x4951e8}):(_0x5e80e9[_0x4bcf('0xe0')](_0x42fcd4[_0x4bcf('0xfa')](_0x4bcf('0x3')),{'userId':_0x4951e8}),_0x17bdec(_0x5e80e9,_0x42fcd4,0x0,_0x42fcd4[_0x4bcf('0x4e')]),_0x5e80e9[_0x4bcf('0xe0')](_0x42fcd4[_0x4bcf('0xfa')](_0x4bcf('0x4d')),{'userId':_0x4951e8}));}}(this[_0x4bcf('0x5a')],_0x1da679,_0x382a54,_0x382a54+_0x19e84b[_0x4bcf('0x68')]);}['_handleMergeOperation'](_0x4299c1){const _0x3382b0=null===(_0x4299c1=this[_0x4bcf('0x62')](_0x4299c1,this[_0x4bcf('0x100')]))[_0x4bcf('0xd8')]?null:_0x4299c1[_0x4bcf('0xd8')]||this['editor']['plugins'][_0x4bcf('0x51')](_0x4bcf('0xcc'))['me']['id'],_0x57dab6=_0x4299c1[_0x4bcf('0xa8')][_0x4bcf('0xa2')],_0xedf9ba=_0x4299c1[_0x4bcf('0x86')][_0x4bcf('0xa2')],_0x2b9097=_0x57dab6['getAttribute'](_0x4bcf('0x4d')),_0x2797b6=_0xedf9ba[_0x4bcf('0xfa')](_0x4bcf('0x3'));_0x57dab6[_0x4bcf('0xac')](_0x4bcf('0x4d'),_0xedf9ba[_0x4bcf('0xfa')](_0x4bcf('0x4d'))),_0xedf9ba[_0x4bcf('0xac')](_0x4bcf('0x4d'),_0x2b9097),this[_0x4bcf('0x5a')][_0x4bcf('0xe0')](_0x2797b6,{'userId':_0x3382b0}),this['_touched'][_0x4bcf('0xe0')](_0x2b9097,{'userId':_0x3382b0}),_0x4299c1[_0x4bcf('0x102')]();}[_0x4bcf('0xfd')](_0x61312e){const _0x1df619=null===(_0x61312e=this[_0x4bcf('0x62')](_0x61312e,this[_0x4bcf('0x100')]))[_0x4bcf('0xd8')]?null:_0x61312e[_0x4bcf('0xd8')]||this['editor'][_0x4bcf('0xb6')][_0x4bcf('0x51')](_0x4bcf('0xcc'))['me']['id'],_0xaf2e83=_0x61312e[_0x4bcf('0x95')],_0x55afe5=_0x61312e[_0x4bcf('0xfe')]['parent'];_0x61312e[_0x4bcf('0x102')]();const _0x4189e9=_0x55afe5[_0x4bcf('0xfa')](_0x4bcf('0x4d')),_0x4a1e9e=_0x61312e['insertionPosition'][_0x4bcf('0xc7')];if(_0xaf2e83){const _0x1b25df=_0x4a1e9e[_0x4bcf('0xfa')](_0x4bcf('0x4d')),_0x5d9b7f=_0x55afe5[_0x4bcf('0xfa')](_0x4bcf('0x4d'));_0x55afe5[_0x4bcf('0xac')](_0x4bcf('0x4d'),_0x1b25df),_0x4a1e9e[_0x4bcf('0xac')]('vid_end',_0x5d9b7f),this[_0x4bcf('0x5a')][_0x4bcf('0xe0')](_0x55afe5['getAttribute']('vid_end'),{'userId':_0x1df619}),this[_0x4bcf('0x5a')][_0x4bcf('0xe0')](_0x4a1e9e[_0x4bcf('0xfa')](_0x4bcf('0x3')),{'userId':_0x1df619});}else{const _0x2ea6ab=this[_0x4bcf('0xcd')]++,_0x423ae7=this[_0x4bcf('0xcd')]++;_0x55afe5[_0x4bcf('0xac')](_0x4bcf('0x4d'),_0x2ea6ab),_0x4a1e9e[_0x4bcf('0xac')](_0x4bcf('0x3'),_0x423ae7),_0x4a1e9e[_0x4bcf('0xac')](_0x4bcf('0x4d'),_0x4189e9),this[_0x4bcf('0x5a')][_0x4bcf('0xe0')](_0x2ea6ab,{'userId':_0x1df619}),this['_touched'][_0x4bcf('0xe0')](_0x423ae7,{'userId':_0x1df619});}}[_0x4bcf('0x14')](_0x1c2f31){if(!_0x1c2f31[_0x4bcf('0x6')])return;const _0x4b4862=(_0x1c2f31=this[_0x4bcf('0x62')](_0x1c2f31,this[_0x4bcf('0x65')]))[_0x4bcf('0x25')]?_0x1c2f31[_0x4bcf('0x25')][_0x4bcf('0xaa')]:null,_0x2c2fe5=_0x1c2f31['newRange']?_0x1c2f31[_0x4bcf('0x82')][_0x4bcf('0xaa')]:null;_0x4b4862&&this[_0x4bcf('0x21')]['delete'](_0x1c2f31[_0x4bcf('0xa5')]),_0x2c2fe5&&this[_0x4bcf('0x21')][_0x4bcf('0xe0')](_0x1c2f31['name'],_0x1c2f31[_0x4bcf('0x82')][_0x4bcf('0xee')]());const _0x5374be=null===_0x1c2f31['_authorId']?null:_0x1c2f31[_0x4bcf('0xd8')]||this[_0x4bcf('0x54')][_0x4bcf('0xb6')][_0x4bcf('0x51')]('Users')['me']['id'],_0x505364=_0x1c2f31[_0x4bcf('0xa5')];if(!this[_0x4bcf('0x2b')]['has'](_0x505364))return void this[_0x4bcf('0x2b')]['set'](_0x505364,{'range':_0x1c2f31[_0x4bcf('0x25')],'userId':_0x5374be});const _0x223a44=this['_touchedMarkers'][_0x4bcf('0x51')](_0x505364),_0x1eb5e7=_0x223a44[_0x4bcf('0x7d')],_0x222697=_0x1c2f31[_0x4bcf('0x82')];null==_0x1eb5e7&&null==_0x222697||_0x1eb5e7&&_0x222697&&_0x1eb5e7['isEqual'](_0x222697)?this[_0x4bcf('0x2b')]['delete'](_0x1c2f31[_0x4bcf('0xa5')]):_0x223a44[_0x4bcf('0xe7')]=_0x5374be;}[_0x4bcf('0xb5')](_0x212981,_0x477285){this[_0x4bcf('0x65')][_0x4bcf('0xbc')](_0x212981[_0x4bcf('0x0')])?this[_0x4bcf('0x65')][_0x4bcf('0x51')](_0x212981[_0x4bcf('0x0')])[_0x4bcf('0x7c')]=_0x212981['isAdd']:(this[_0x4bcf('0x65')]['set'](_0x212981[_0x4bcf('0x0')],G(_0x212981[_0x4bcf('0x0')],!0x0)),this[_0x4bcf('0xc3')]['set'](_0x212981[_0x4bcf('0x0')],{}),_0x477285&&this['_idsRoots'][_0x4bcf('0xe0')](_0x212981[_0x4bcf('0x0')],G(_0x212981[_0x4bcf('0x0')],!0x0)));const _0x5ba938=null===_0x212981[_0x4bcf('0xd8')]?null:_0x212981[_0x4bcf('0xd8')]||this[_0x4bcf('0x54')][_0x4bcf('0xb6')]['get']('Users')['me']['id'],_0x336efb=this['_touchedRoots'][_0x4bcf('0x51')](_0x212981['rootName']);_0x336efb&&_0x336efb[_0x4bcf('0xe7')]===_0x5ba938?this['_touchedRoots']['delete'](_0x212981[_0x4bcf('0x0')]):this[_0x4bcf('0xf7')]['set'](_0x212981[_0x4bcf('0x0')],{'userId':_0x5ba938,'isAttached':_0x212981['isAdd']});}[_0x4bcf('0xf1')](_0x266329){const _0x2ec5a4=this[_0x4bcf('0xc3')][_0x4bcf('0x51')](_0x266329[_0x4bcf('0xaa')][_0x4bcf('0x0')]);null===_0x266329[_0x4bcf('0x101')]?delete _0x2ec5a4[_0x266329['key']]:_0x2ec5a4[_0x266329[_0x4bcf('0xf4')]]=_0x266329['newValue'];}}function q(_0x4f60a5){const _0x2e460a=G(_0x4f60a5[_0x4bcf('0x0')],_0x4f60a5[_0x4bcf('0xa7')]());for(const _0x316e6e of _0x4f60a5[_0x4bcf('0x26')]()){const _0x2e22dc=_0x316e6e[_0x4bcf('0x41')](!0x0);_0x2e460a[_0x4bcf('0xba')](_0x2e22dc);}return _0x2e460a;}function G(_0x379568,_0x1ae300=!0x0){const _0x2e5be1=new _0x3d02d9();return _0x2e5be1['rootName']=_0x379568,_0x2e5be1[_0x4bcf('0x7c')]=_0x1ae300,_0x2e5be1[_0x4bcf('0xa7')]=()=>_0x2e5be1[_0x4bcf('0x7c')],_0x2e5be1;}function L(_0x25af54,_0x5bc838,_0x134327){const _0x2836a9=_0x4bcf('0x55')==_0x25af54[_0x4bcf('0x73')]?_0x134327[_0x4bcf('0x85')](_0x25af54[_0x4bcf('0x22')],'end'):_0x134327['createPositionBefore'](_0x25af54[_0x4bcf('0x22')]);return _0x134327[_0x4bcf('0x8')](_0x5bc838,_0x2836a9[_0x4bcf('0xdf')],_0x2836a9[_0x4bcf('0x28')]);}function W(_0xba2e4c,_0xf102b6,_0x16db42){const _0x7a548d=_0x4bcf('0x1b')==_0xba2e4c[_0x4bcf('0x73')]?_0x16db42['createPositionAt'](_0xba2e4c[_0x4bcf('0x22')],0x0):_0x16db42['createPositionAfter'](_0xba2e4c[_0x4bcf('0x22')]);return _0x16db42['createPositionFromPath'](_0xf102b6,_0x7a548d[_0x4bcf('0xdf')],_0x7a548d[_0x4bcf('0x28')]);}
23
+ const _0x3a8a=['_update','_copyMarkers','_handleMergeOperation','_handleInsertOperation','values','_handleMoveOperation','_execute','createRevision','revision-end','_replaceEditorDataWithRevisionData','_findInsertionIndex','getMovedRangeStart','toVersion','getAttributes','_baseRoots','removeRootAttribute','newValue','then','reInit','getRevisionDocumentData','vid_start','history','baseVersion','vid_end','addRevisionData','text','_fixPosition','rootName','split','getRootNames','resolve','insertionPosition','getNodeByPath','getWalker','_saveMetaData','_removePendingAction','parent','_getState','markers','slice','createPositionBefore','$text','newRange','graveyardPosition','getRange','toData','position','PendingActions','detachRoot','oldRange','_handleOperation','NEGATIVE_INFINITY','forEach','init','pluginName','item','_lastFrom','_loadedStateData','keys','elementStart','element','_applyOperations','_baseRootsAttributes','config','Empty\x20document','initialData','dataDowncast','_revisionId','set','dataToMarker','_diffRoots','_touchedRoots','reverse','getIndex','loadState','Users','fromEntries','hasContent','useFillerType','_bufferUpdate','childCount','RevisionsRepository','createPositionAt','push','insert','_calculateMetaData','revision:','repository','_idsRoots','_revisionDataBuilder','type','data-revision-','createPositionFromPath','_getPreviousFrom','editing','marked','keepParagraph','_startingRevisionId','offsetSize','_cloneOperation','revision','_isInit','targetPosition','some','_createInitialRevision','stringify','conversion','data','updateRevisions','end','revisionHistory.resumeUnsavedRevision','_bufferedUpdates','size','_pendingAction','update','_getViewJson','document','elementEnd','getTransformedByOperation','$graveyard','name','adapter','_insertChild','add','diffData','getRevisions','_loadState','finally','marker','nodes','setRevisionData','version','getData','authorsIds','currentRevision','PENDING_ACTION_REVISION_HISTORY','tableCell','sort','collaboration.channelId','_startingVersion','addRoot','getCurrentRevisionId','_loadRevisionData','toModel','insertions','processor','attachChange','clear','paragraph','reinsert','roots','_getBaseVids','for','_isAttached','_baseIdsRoots','key','remove','upcast','_authorId','_fixOperation','buildRevisionData','define','bind','ready','_fixRange','_markers','startsWith','_markChanges','isAttached','offset','plugins','_handleRootOperation','editor','_setConversion','authors','_touched','creator','_prepareViewToSave','path','insertion','locale','attributes','_setAttribute','getRevisionRootsAttributes','root','getOperations','createdAt','range','_source','markerToData','source','_generateTape','getAncestors','max','editor-initial-data-replaced-with-revision-data','_removeMetaData','Initial\x20revision','setSource','_handleMarkerOperation','delete','_makeRevision','_reset','_processRootBeforeSave','creatorId','_createCurrentRevision','_initialRevisionId','_touchedMarkers','has','getOperation','createRange','getChildren','RealTimeCollaborationClient','default','getRoot','affectsData','move','deletions','from','_makeModelFromViewString','fromVersion','addRevision','_getFromVersion','changeRootAttribute','getRevision','_continueCurrentRevision','_handleRootAttributeOperation','vid','_diffRootsAttributes','getChild','_makeIdsRoot','_lastTo','start','howMany','_getVidAttributeName','getAttribute','_createFromRanges','_isPendingUpdate','sendBufferedUpdates','view','createPositionAfter','_removeRevisionMarkers','filter','splitPosition','stickiness','length','userId','requires','isAdd','_addPendingAction','_savedMetaData','revision-start','_clone','find','includes','clone','previousPosition','parse','model','getTime','getUser','string','map','merge','get','attributesAfter','children'];(function(_0x9c8229,_0x3a8a75){const _0x447b25=function(_0x3b32b3){while(--_0x3b32b3){_0x9c8229['push'](_0x9c8229['shift']());}};_0x447b25(++_0x3a8a75);}(_0x3a8a,0x8d));const _0x447b=function(_0x9c8229,_0x3a8a75){_0x9c8229=_0x9c8229-0x0;let _0x447b25=_0x3a8a[_0x9c8229];return _0x447b25;};import{Users as _0x5db9c5}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x158453,PendingActions as _0x5c2e01}from'ckeditor5/src/core';import{logWarning as _0x48526a,uid as _0x47e9ae}from'ckeditor5/src/utils';import{Position as _0x579325,Range as _0x395b8d,Element as _0x3e5557,DocumentFragment as _0x182bce,ViewText as _0x26c9e1,ViewElement as _0x53ede4,ViewContainerElement as _0x316f9d,ViewAttributeElement as _0x376172,ViewEmptyElement as _0x15ec21,ViewRawElement as _0x23106e,ViewUIElement as _0x56b103,ViewDocumentFragment as _0xbf4b3d}from'ckeditor5/src/engine';import _0x463573 from'./revisionsrepository';import{getTranslation as _0x2b410f}from'./utils/common-translations';import{cloneDeep as _0x383954,isEqual as _0x212335}from'lodash-es';const B={'c':_0x316f9d,'a':_0x376172,'e':_0x15ec21,'r':_0x23106e,'u':_0x56b103};export default class l extends _0x158453{static get[_0x447b('0xb3')](){return'RevisionTracker';}static get[_0x447b('0x69')](){return[_0x5db9c5,_0x463573,_0x5c2e01];}constructor(_0x49cd1b){super(_0x49cd1b),this[_0x447b('0xf6')]=null,this[_0x447b('0x103')]=null,this[_0x447b('0xd6')]=new H(this[_0x447b('0x1f')]),this[_0x447b('0x40')]=this['editor']['config'][_0x447b('0x7a')](_0x447b('0x107'))||'initial',this[_0x447b('0xec')]=new Map(),this[_0x447b('0xb6')]=null;const _0xe6f480=_0x47e9ae();this[_0x447b('0x2f')]={'history':this['editor'][_0x447b('0x74')]['document'][_0x447b('0x92')],'getLatestVersion':()=>Promise[_0x447b('0x9b')](this['editor'][_0x447b('0x74')][_0x447b('0xf1')]['version']),'getCurrentRevisionId':()=>_0xe6f480},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this[_0x447b('0xc1')](_0x447b('0x5f'),!0x1),this['editor'][_0x447b('0xbc')][_0x447b('0x14')](_0x447b('0xeb'),!0x0),this[_0x447b('0x1f')][_0x447b('0xe7')][_0x447b('0xb')](_0x447b('0x10'))[_0x447b('0xc2')]({'view':'revision'});}[_0x447b('0xb2')](){this['repository']=this[_0x447b('0x1f')][_0x447b('0x1d')][_0x447b('0x7a')](_0x447b('0xce')),this[_0x447b('0x20')](),this['editor']['data']['on'](_0x447b('0x16'),()=>{const _0x61046c=this['repository'][_0x447b('0x52')](0x0),_0x699b2d=_0x61046c&&null===_0x61046c[_0x447b('0x23')]?_0x61046c:null;if(this[_0x447b('0x53')]=!!_0x699b2d&&this[_0x447b('0x1f')][_0x447b('0xbc')][_0x447b('0x7a')](_0x447b('0xeb')),this['editor']['plugins'][_0x447b('0x42')](_0x447b('0x46'))){const _0x366893=this['_source']['getCurrentRevisionId'](),_0x5def9b=this[_0x447b('0xd4')][_0x447b('0x52')](_0x366893);if(_0x5def9b)this['_startingVersion']=_0x5def9b['fromVersion'],this[_0x447b('0x53')]=!0x1;else{const _0x1b514b=this[_0x447b('0x2f')]['history']['_operations'][_0x447b('0x6f')](_0x12e96e=>!_0x12e96e[_0x447b('0xe2')]),_0x1d004c=_0x1b514b?_0x1b514b[_0x447b('0x93')]:this[_0x447b('0x2f')][_0x447b('0x92')][_0x447b('0x100')];_0x61046c?(_0x61046c['toVersion']<_0x1d004c&&_0x61046c['_update']({'toVersion':_0x1d004c}),this[_0x447b('0x53')]?(this[_0x447b('0x2f')]['getCurrentRevisionId']=()=>_0x699b2d['id'],this[_0x447b('0x108')]=_0x699b2d[_0x447b('0x4e')]):(this[_0x447b('0x108')]=_0x61046c[_0x447b('0x89')],this['_continueCurrentRevision']=!0x1)):(this[_0x447b('0x108')]=_0x1d004c,this['_continueCurrentRevision']=!0x1);}}else _0x699b2d&&(this['editor'][_0x447b('0x74')][_0x447b('0xf1')]['history']['version']=Math[_0x447b('0x34')](_0x699b2d[_0x447b('0x89')],this[_0x447b('0x1f')][_0x447b('0x74')]['document'][_0x447b('0x92')][_0x447b('0x100')]),_0x699b2d[_0x447b('0x4e')]===_0x699b2d[_0x447b('0x89')]?(0x0!==_0x699b2d[_0x447b('0x4e')]&&(this[_0x447b('0x2f')]['getCurrentRevisionId']=()=>_0x699b2d['id']),this[_0x447b('0x53')]=!0x1):this[_0x447b('0x53')]&&(this[_0x447b('0x2f')][_0x447b('0x0')]=()=>_0x699b2d['id'],this[_0x447b('0x108')]=_0x699b2d[_0x447b('0x4e')])),this[_0x447b('0x53')]||(this[_0x447b('0x108')]=this[_0x447b('0x1f')]['model'][_0x447b('0xf1')][_0x447b('0x100')]);this['_revisionDataBuilder']['init'](this[_0x447b('0x2f')][_0x447b('0x92')]),this[_0x447b('0xe5')](this[_0x447b('0x108')]),this[_0x447b('0x3f')](this[_0x447b('0x108')]),this[_0x447b('0xf6')]&&this[_0x447b('0x60')]();}),this[_0x447b('0x15')]('isReady')['to'](this,'_isPendingUpdate',_0x5aae90=>!_0x5aae90);}async['afterInit'](){if(this[_0x447b('0xd4')][_0x447b('0x67')]>0x0){const _0x1686f5=this[_0x447b('0xd4')][_0x447b('0x52')](0x0),_0xcc4d51=await this[_0x447b('0x90')](_0x1686f5),_0x61e5b=await this[_0x447b('0x2a')](_0x1686f5);this[_0x447b('0x86')](_0xcc4d51,_0x61e5b);}}[_0x447b('0x38')](_0x5496ff){this[_0x447b('0x2f')]=_0x5496ff;}async[_0x447b('0xef')](){const _0x433c12=await this[_0x447b('0x2f')]['getLatestVersion']();if(_0x433c12>this[_0x447b('0x103')][_0x447b('0x89')]){await this['_loadState']();const _0x58e008=this[_0x447b('0x13')]({'revision':this[_0x447b('0x103')],'to':_0x433c12});_0x58e008[_0x447b('0x21')]=_0x58e008[_0x447b('0x102')][_0x447b('0x78')](_0x104964=>this[_0x447b('0x1f')]['plugins'][_0x447b('0x7a')](_0x447b('0xc8'))[_0x447b('0x76')](_0x104964)),this[_0x447b('0x103')][_0x447b('0x7d')](_0x58e008);}}async['_loadState'](){this[_0x447b('0x53')]&&!this[_0x447b('0xb6')]&&(await this[_0x447b('0x1')](this['currentRevision']),this[_0x447b('0xd6')][_0x447b('0xc7')](this[_0x447b('0x103')]),this[_0x447b('0xb6')]={'fromVersion':this['currentRevision'][_0x447b('0x4e')],'authors':this[_0x447b('0x103')]['authors'][_0x447b('0xa4')]()});}async['saveRevision'](_0x35ee77={},_0xd58e0c=null){const _0x2d17dc=[];await this[_0x447b('0xfb')](),this[_0x447b('0x53')]=!0x1,_0xd58e0c>this[_0x447b('0x103')][_0x447b('0x89')]&&(_0xd58e0c=null),null===_0xd58e0c&&(_0xd58e0c=await this[_0x447b('0x2f')]['getLatestVersion']());const _0x402b24=this[_0x447b('0x50')](_0xd58e0c),_0x418ede=this[_0x447b('0x13')]({'from':_0x402b24,'to':_0xd58e0c});if(this['currentRevision']['toVersion']<_0xd58e0c){const _0x105bf6=this['buildRevisionData']({'revision':this[_0x447b('0x103')],'from':_0xd58e0c,'to':_0xd58e0c});_0x105bf6[_0x447b('0x21')]=[],_0x105bf6[_0x447b('0x102')]=[],_0x105bf6['id']=this[_0x447b('0x103')]['id'],this['currentRevision']['_update'](_0x105bf6,!0x0),delete _0x105bf6[_0x447b('0x21')],_0x2d17dc[_0x447b('0xd0')](_0x105bf6);}_0x35ee77['creatorId']=this[_0x447b('0x1f')][_0x447b('0x1d')][_0x447b('0x7a')]('Users')['me']['id'],_0x35ee77[_0x447b('0xf5')]=_0x35ee77[_0x447b('0xf5')]||null,_0x35ee77['id']=_0x35ee77['id']||_0x47e9ae(),_0x35ee77={..._0x35ee77,..._0x418ede};const _0x3af36d=this[_0x447b('0x95')](_0x35ee77);_0x2d17dc['push'](_0x35ee77);const _0x52201a=this[_0x447b('0xd4')][_0x447b('0xc6')](_0x3af36d);if(0x0!==_0x52201a){const _0xd2c324=this[_0x447b('0xd4')]['getRevision'](_0x52201a-0x1);if(_0xd2c324[_0x447b('0x4e')]!==_0xd58e0c){const _0x4e3cd4=this[_0x447b('0xd6')]['getData'](_0xd58e0c,_0xd2c324[_0x447b('0x89')]),_0x28ceb3={'id':_0xd2c324['id'],'diffData':_0x4e3cd4[_0x447b('0xf9')],'authorsIds':_0x4e3cd4['authorsIds'],'authors':_0x4e3cd4[_0x447b('0x102')]['map'](_0x188715=>this[_0x447b('0x1f')][_0x447b('0x1d')][_0x447b('0x7a')]('Users')[_0x447b('0x76')](_0x188715)),'fromVersion':_0xd58e0c};_0xd2c324===this['currentRevision']&&(_0x28ceb3[_0x447b('0x2d')]=new Date(_0x35ee77[_0x447b('0x2d')][_0x447b('0x75')]()+0xa)),_0xd2c324[_0x447b('0x7d')](_0x28ceb3,!0x0),delete _0x28ceb3[_0x447b('0x21')],_0x2d17dc[_0x447b('0xd0')](_0x28ceb3);}}if(this[_0x447b('0xf6')]){for(const _0x1da6ef of _0x2d17dc)this['_bufferUpdate'](_0x1da6ef['id'],_0x1da6ef,!0x0);this[_0x447b('0x60')]();}return _0x3af36d;}[_0x447b('0x95')](_0x2cb477){const _0x4d4a79=this['repository'][_0x447b('0x84')](_0x2cb477);return this[_0x447b('0xf6')]&&_0x4d4a79['on'](_0x447b('0x7d'),(_0x2a0af9,_0x5ab925,_0x324c09)=>{_0x324c09||(this[_0x447b('0xcc')](_0x5ab925['id'],_0x5ab925,!0x0),this[_0x447b('0x60')]());}),this[_0x447b('0xd4')][_0x447b('0x4f')](_0x4d4a79,this[_0x447b('0x87')](_0x4d4a79)),_0x4d4a79;}async[_0x447b('0x90')](_0x5e0c87){await this[_0x447b('0x1')](_0x5e0c87);const _0x26f644={};for(const _0x154893 in _0x5e0c87[_0x447b('0xf9')]){if(_0x5e0c87[_0x447b('0xf9')][_0x154893][_0x447b('0x5')]&&!_0x5e0c87[_0x447b('0xf9')][_0x154893][_0x447b('0x5')][_0x447b('0x1b')])continue;const _0x144df0=this['_removeRevisionMarkers'](JSON[_0x447b('0x73')](_0x5e0c87['diffData'][_0x154893][_0x447b('0x3')])),_0x42dcc8=this[_0x447b('0x1f')][_0x447b('0xdb')][_0x447b('0x61')][_0x447b('0xf1')],_0x2454ca=new _0xbf4b3d(_0x42dcc8,_0x144df0[_0x447b('0x78')](_0x1ac1f7=>J(_0x1ac1f7,this[_0x447b('0x1f')])));this['editor'][_0x447b('0xe8')][_0x447b('0x4')][_0x447b('0xcb')](_0x447b('0xdc')),_0x26f644[_0x154893]=this['editor'][_0x447b('0xe8')]['processor'][_0x447b('0xaa')](_0x2454ca),this[_0x447b('0x1f')][_0x447b('0xe8')][_0x447b('0x4')][_0x447b('0xcb')](_0x447b('0x47'));}return _0x26f644;}async[_0x447b('0x2a')](_0x21f6a3){await this['_loadRevisionData'](_0x21f6a3);const _0x57a623={};for(const _0x4341ea in _0x21f6a3[_0x447b('0xf9')])_0x21f6a3[_0x447b('0xf9')][_0x4341ea][_0x447b('0x5')]&&!_0x21f6a3[_0x447b('0xf9')][_0x4341ea][_0x447b('0x5')]['isAttached']||(_0x57a623[_0x4341ea]=_0x21f6a3[_0x447b('0xf9')][_0x4341ea][_0x447b('0x7b')]||{});return _0x57a623;}[_0x447b('0x60')](){if(0x0===this[_0x447b('0xec')][_0x447b('0xed')])return;if(this['_isPendingUpdate'])return;let _0x2c5bce=Array['from'](this[_0x447b('0xec')][_0x447b('0x81')]());this[_0x447b('0xec')][_0x447b('0x6')]();for(let _0x304271=0x0;_0x304271<_0x2c5bce[_0x447b('0x67')];_0x304271++){const _0x28808e=_0x2c5bce[_0x304271];let _0xa47982=!0x1;for(const _0x5fa47c of Object[_0x447b('0xb7')](_0x28808e))void 0x0===_0x28808e[_0x5fa47c]?delete _0x28808e[_0x5fa47c]:'id'!==_0x5fa47c&&(_0xa47982=!0x0);_0xa47982||(_0x2c5bce[_0x304271]=null);}if(_0x2c5bce=_0x2c5bce[_0x447b('0x64')](_0x2fe2f7=>null!==_0x2fe2f7),!_0x2c5bce[_0x447b('0x67')])return;for(let _0x16cfbe=0x0;_0x16cfbe<_0x2c5bce[_0x447b('0x67')];_0x16cfbe++){const _0x580f0d=_0x2c5bce[_0x16cfbe];void 0x0!==_0x580f0d[_0x447b('0x4e')]&&void 0x0===_0x580f0d[_0x447b('0x89')]&&(_0x580f0d[_0x447b('0x89')]=this[_0x447b('0xd4')]['getRevision'](_0x580f0d['id'])[_0x447b('0x89')]),void 0x0!==_0x580f0d[_0x447b('0x89')]&&void 0x0===_0x580f0d[_0x447b('0x4e')]&&(_0x580f0d['fromVersion']=this[_0x447b('0xd4')][_0x447b('0x52')](_0x580f0d['id'])[_0x447b('0x4e')]);}const _0x43d1fd=this[_0x447b('0x1f')][_0x447b('0xbc')]['get'](_0x447b('0x107'));this['_isPendingUpdate']=!0x0,this[_0x447b('0x6b')](),this[_0x447b('0xf6')][_0x447b('0xe9')](_0x2c5bce,_0x43d1fd)[_0x447b('0xfc')](()=>{this['_isPendingUpdate']=!0x1;})[_0x447b('0x8e')](_0x23a6d3=>{if(_0x23a6d3)for(const _0x256430 of _0x23a6d3)this[_0x447b('0xff')]({'id':_0x256430['id'],'createdAt':_0x256430[_0x447b('0x2d')]});this[_0x447b('0xa0')](),this[_0x447b('0x60')]();});}[_0x447b('0x86')](_0x2bf68a,_0x87a9e1){let _0x447bd6=this['editor'][_0x447b('0xbc')][_0x447b('0x7a')]('initialData'),_0x3bddbf=this[_0x447b('0x1f')][_0x447b('0xbc')][_0x447b('0x7a')]('rootsAttributes');if(void 0x0===_0x447bd6){_0x447bd6={};for(const _0x211ed1 of this[_0x447b('0x1f')][_0x447b('0x74')]['document'][_0x447b('0x9a')]())_0x447bd6[_0x211ed1]='';}if('string'==typeof _0x447bd6&&(_0x447bd6={'main':_0x447bd6}),void 0x0===_0x3bddbf){_0x3bddbf={};for(const _0x14f8d1 of this[_0x447b('0x1f')][_0x447b('0x74')][_0x447b('0xf1')]['getRootNames']())_0x3bddbf[_0x14f8d1]={};}let _0x14a9e0=!0x1;const _0x4aefc0=Object['keys'](_0x447bd6),_0x49f515=Object[_0x447b('0xb7')](_0x2bf68a);for(const _0x171872 of _0x4aefc0){if(_0x447bd6[_0x171872]!==_0x2bf68a[_0x171872]&&''!==_0x447bd6[_0x171872]['trim']()){_0x14a9e0=!0x0;break;}if(!_0x212335(_0x3bddbf[_0x171872],_0x87a9e1[_0x171872])&&Object[_0x447b('0xb7')](_0x3bddbf[_0x171872])[_0x447b('0x67')]>0x0){_0x14a9e0=!0x0;break;}}_0x14a9e0||(_0x14a9e0=_0x49f515[_0x447b('0xe4')](_0x15f745=>!this[_0x447b('0x1f')]['model'][_0x447b('0xf1')][_0x447b('0x48')](_0x15f745))),_0x14a9e0&&_0x48526a(_0x447b('0x35'),{'editorData':_0x447bd6,'editorRootsAttributes':_0x3bddbf,'revisionData':_0x2bf68a,'revisionRootsAttributes':_0x87a9e1}),this[_0x447b('0x1f')][_0x447b('0xbc')][_0x447b('0xc1')](_0x447b('0xbe'),_0x2bf68a),this[_0x447b('0x1f')][_0x447b('0xbc')][_0x447b('0xc1')]('rootsAttributes',_0x87a9e1);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xbd29ac=this['editor']['plugins'][_0x447b('0x7a')](_0x447b('0xac'));this[_0x447b('0xee')]=_0xbd29ac[_0x447b('0xf8')](_0x2b410f(this[_0x447b('0x1f')][_0x447b('0x27')],_0x447b('0x104')));}}[_0x447b('0xa0')](){this[_0x447b('0xee')]&&(this['editor'][_0x447b('0x1d')]['get'](_0x447b('0xac'))['remove'](this[_0x447b('0xee')]),this[_0x447b('0xee')]=null);}[_0x447b('0x87')](_0x286290){const _0x34d82e=this['repository'][_0x447b('0xfa')]();_0x34d82e['reverse']();let _0x3b58ed=0x0;for(;_0x3b58ed<_0x34d82e[_0x447b('0x67')];){const _0x391868=_0x34d82e[_0x3b58ed];if(_0x391868===this[_0x447b('0x103')]){_0x3b58ed++;continue;}if(_0x391868['id']===this[_0x447b('0x40')])break;const _0x4512cd=_0x286290[_0x447b('0x89')]-_0x391868['toVersion']||_0x286290['fromVersion']-_0x391868[_0x447b('0x4e')];if(_0x4512cd>0x0)break;if(_0x4512cd<0x0)_0x3b58ed++;else{if(!_0x286290[_0x447b('0x23')]&&_0x391868[_0x447b('0x23')])break;if(_0x391868[_0x447b('0x23')]||!_0x286290[_0x447b('0x23')]){if(_0x286290[_0x447b('0x2d')]>_0x391868[_0x447b('0x2d')])break;_0x3b58ed++;}else _0x3b58ed++;}}return _0x3b58ed;}[_0x447b('0xff')](_0x577969){const _0x2d8e45=this[_0x447b('0xd4')][_0x447b('0x52')](_0x577969['id']);if(_0x577969[_0x447b('0x2d')]&&(_0x577969[_0x447b('0x2d')]=new Date(_0x577969[_0x447b('0x2d')])),_0x577969[_0x447b('0x102')]){const _0xbfc71c=this[_0x447b('0x1f')]['plugins']['get'](_0x447b('0xc8'));_0x577969[_0x447b('0x21')]=_0x577969[_0x447b('0x102')]['map'](_0x1a41ab=>_0xbfc71c['getUser'](_0x1a41ab));}_0x2d8e45[_0x447b('0x7d')](_0x577969,!0x0);}[_0x447b('0x13')]({revision:_0x544f97=null,from:_0x1e67e4=null,to:_0x46ea48=null}){_0x1e67e4=null!==_0x1e67e4?_0x1e67e4:_0x544f97[_0x447b('0x4e')],_0x46ea48=null!==_0x46ea48?_0x46ea48:_0x544f97['toVersion'];const _0x4d7249=this['_revisionDataBuilder']['getData'](_0x1e67e4,_0x46ea48),_0x29bd8b={'diffData':_0x4d7249[_0x447b('0xf9')],'authorsIds':_0x4d7249[_0x447b('0x102')],'fromVersion':_0x1e67e4,'toVersion':_0x46ea48};if(!_0x544f97||_0x46ea48!==_0x544f97['toVersion']){const _0x247f30=_0x46ea48-0x1,_0x595a68=this[_0x447b('0x2f')]['history'][_0x447b('0x43')](_0x247f30);_0x29bd8b[_0x447b('0x2d')]=_0x595a68&&_0x595a68[_0x447b('0x2d')]||new Date();}if(this['_loadedStateData']&&_0x1e67e4===this[_0x447b('0xb6')]['fromVersion'])for(const _0x5bdbb4 of this[_0x447b('0xb6')][_0x447b('0x21')])_0x29bd8b[_0x447b('0x102')][_0x447b('0x70')](_0x5bdbb4['id'])||_0x29bd8b[_0x447b('0x102')][_0x447b('0xd0')](_0x5bdbb4['id']);return _0x29bd8b;}['_loadRevisionData'](_0x4763f2){if(!_0x4763f2||_0x4763f2[_0x447b('0xf9')])return Promise[_0x447b('0x9b')]();{const _0x2e7dd4=this[_0x447b('0x1f')]['config']['get']('collaboration.channelId');return this[_0x447b('0xf6')][_0x447b('0x52')]({'channelId':_0x2e7dd4,'revisionId':_0x4763f2['id']})['then'](_0x2411b6=>{_0x4763f2[_0x447b('0xf9')]=_0x2411b6[_0x447b('0xf9')];});}}['_bufferUpdate'](_0x5f4e2d,_0x267585,_0x38329b){if(this[_0x447b('0xec')]['has'](_0x5f4e2d)){const _0x1c1418=this['_bufferedUpdates']['get'](_0x5f4e2d);_0x267585=_0x38329b?{..._0x1c1418,..._0x267585}:{..._0x267585,..._0x1c1418};}this[_0x447b('0xec')]['set'](_0x5f4e2d,_0x267585);}[_0x447b('0x50')](_0x1b858f){const _0x55a1f8=this[_0x447b('0xd4')]['getRevisions']();_0x55a1f8[_0x447b('0xc5')](),_0x55a1f8['shift']();const _0xe19074=_0x55a1f8[_0x447b('0x6f')](_0x227f1d=>_0x227f1d[_0x447b('0x89')]<=_0x1b858f)['toVersion'];return _0xe19074<this[_0x447b('0x108')]?this[_0x447b('0x108')]:_0xe19074;}[_0x447b('0xe5')](_0x1b62bd){const _0x4bf1a4=this[_0x447b('0xd4')][_0x447b('0x52')](this[_0x447b('0xd4')][_0x447b('0x67')]-0x1);if(_0x4bf1a4)this[_0x447b('0x40')]=_0x4bf1a4['id'];else{const _0x32227b=!this[_0x447b('0x1f')][_0x447b('0x74')]['document'][_0x447b('0x9')][_0x447b('0x6f')](_0x2ed239=>this[_0x447b('0x1f')]['model'][_0x447b('0xca')](_0x2ed239)),_0x4ddad2=this[_0x447b('0x1f')][_0x447b('0x1d')][_0x447b('0x7a')](_0x447b('0xc8'))['me']['id'],_0x13ce05=_0x2b410f(this['editor']['locale'],_0x32227b?_0x447b('0xbd'):_0x447b('0x37'));this[_0x447b('0x3b')]({'from':_0x1b62bd,'to':_0x1b62bd,'id':this['_initialRevisionId'],'name':_0x13ce05,'creatorId':_0x4ddad2});}}[_0x447b('0x3f')](_0x29e360){const _0x5d8656=this[_0x447b('0x2f')][_0x447b('0x0')]();this[_0x447b('0x103')]=this[_0x447b('0xd4')][_0x447b('0x52')](_0x5d8656),this['currentRevision']||(this[_0x447b('0x103')]=this[_0x447b('0x3b')]({'from':_0x29e360,'to':_0x29e360,'id':_0x5d8656,'name':'','creatorId':null}));}[_0x447b('0x3b')]({name:_0x2e6cff,from:_0x210ec7,to:_0x5b886d,creatorId:_0x22a24f,id:_0x4d53b5}){const _0x4ef612=this[_0x447b('0x13')]({'from':_0x210ec7,'to':_0x5b886d});_0x4ef612[_0x447b('0xf5')]=_0x2e6cff,_0x4ef612[_0x447b('0x3e')]=_0x22a24f,_0x4ef612['id']=_0x4d53b5;const _0x46ef07=this[_0x447b('0x95')](_0x4ef612);return this[_0x447b('0xf6')]&&this[_0x447b('0xcc')](_0x4ef612['id'],_0x4ef612,!0x0),_0x46ef07;}[_0x447b('0x20')](){this[_0x447b('0x1f')][_0x447b('0xe7')]['for'](_0x447b('0xbf'))[_0x447b('0x30')]({'model':_0x447b('0xe1')});}[_0x447b('0x63')](_0x480b0e){return(_0x480b0e=_0x480b0e[_0x447b('0x64')](_0x1db0da=>!_0x1db0da[_0x447b('0xf5')]||_0x447b('0x6d')!==_0x1db0da[_0x447b('0xf5')]&&_0x447b('0x85')!==_0x1db0da[_0x447b('0xf5')]))[_0x447b('0xb1')](_0x65505c=>{_0x447b('0x77')!=typeof _0x65505c&&(_0x65505c[_0x447b('0x7c')]=this[_0x447b('0x63')](_0x65505c['children']),_0x65505c[_0x447b('0x28')]=_0x65505c[_0x447b('0x28')]['filter'](_0x352f07=>!_0x352f07[0x0][_0x447b('0x19')](_0x447b('0xd8'))));}),_0x480b0e;}}function J(_0x4b3afa,_0x810b60){const _0x498661=_0x810b60[_0x447b('0xdb')]['view'][_0x447b('0xf1')];if('string'==typeof _0x4b3afa)return new _0x26c9e1(_0x498661,_0x4b3afa);{const _0x2163ef=_0x4b3afa[_0x447b('0x7c')][_0x447b('0x78')](_0x2dbccd=>J(_0x2dbccd,_0x810b60));return new(B[_0x4b3afa[(_0x447b('0xd7'))]]||_0x53ede4)(_0x498661,_0x4b3afa[_0x447b('0xf5')],_0x4b3afa[_0x447b('0x28')],_0x2163ef);}}class H{constructor(_0x48447a){this[_0x447b('0x1f')]=_0x48447a,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this[_0x447b('0x59')]=-0x1,this[_0x447b('0x18')]=new Map(),this[_0x447b('0xc3')]=new Map(),this[_0x447b('0x56')]=new Map(),this[_0x447b('0x8b')]=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this[_0x447b('0xd')]=new Map(),this[_0x447b('0x22')]=new Map(),this['_touchedMarkers']=new Map(),this[_0x447b('0xc4')]=new Map(),this[_0x447b('0xc0')]=0x1;}[_0x447b('0xb2')](_0xfda0b2){this['source']=_0xfda0b2;const _0x1e5cb4=new Map(),_0x41317f=new Map(),_0x51b6a2=this[_0x447b('0x1f')][_0x447b('0x74')][_0x447b('0xf1')]['roots'][_0x447b('0x78')](_0x373928=>_0x373928[_0x447b('0x98')]);for(const _0x6433af of _0x51b6a2){const _0x4e5c3d=this[_0x447b('0x1f')][_0x447b('0x74')]['document'][_0x447b('0x48')](_0x6433af),_0x359202=q(_0x4e5c3d);_0x1e5cb4[_0x447b('0xc1')](_0x6433af,_0x359202),_0x41317f[_0x447b('0xc1')](_0x6433af,Object[_0x447b('0xc9')](_0x4e5c3d['getAttributes']()));}const _0x4f88a7=Array[_0x447b('0x4c')](this[_0x447b('0x1f')]['model'][_0x447b('0xa3')])[_0x447b('0x78')](_0x4d2b2b=>[_0x4d2b2b[_0x447b('0xf5')],_0x4d2b2b[_0x447b('0xa9')]()]),_0xd1ab01=this[_0x447b('0x31')][_0x447b('0x100')];this[_0x447b('0x9f')](_0xd1ab01,_0x1e5cb4,_0x4f88a7,_0x41317f),this[_0x447b('0xde')]=this[_0x447b('0xc0')];const _0x551488=new Map(),_0x27a1a0=new Map();for(const _0x1f2ab8 of _0x51b6a2){const _0x47d1a7=G(_0x1f2ab8);_0x551488[_0x447b('0xc1')](_0x1f2ab8,_0x47d1a7),_0x27a1a0[_0x447b('0xc1')](_0x1f2ab8,{});}this[_0x447b('0x9f')](Number[_0x447b('0xb0')],_0x551488,[],_0x27a1a0);}[_0x447b('0x101')](_0x18d85b,_0x598e09){if(this[_0x447b('0xb5')]===_0x18d85b&&this[_0x447b('0x59')]<=_0x598e09)this[_0x447b('0x6c')][_0x447b('0xed')]>0x1&&this['_removeMetaData'](this[_0x447b('0x59')]),this[_0x447b('0xba')](this[_0x447b('0x59')],_0x598e09,!0x0);else{if(!this[_0x447b('0x6c')][_0x447b('0x42')](_0x18d85b)){const _0x994675=this[_0x447b('0xda')](_0x18d85b);this[_0x447b('0xd2')](_0x994675,_0x18d85b,!0x1);}this[_0x447b('0xd2')](_0x18d85b,_0x598e09,!0x0);}return this[_0x447b('0xb5')]=_0x18d85b,this['_lastTo']=_0x598e09,this[_0x447b('0xa2')]();}['loadState'](_0x37c4fd){this[_0x447b('0x3c')](),this[_0x447b('0xb5')]=_0x37c4fd['fromVersion'],this[_0x447b('0x59')]=_0x37c4fd[_0x447b('0x89')];for(const _0x58caad in _0x37c4fd['diffData']){const _0xff352e=_0x37c4fd[_0x447b('0xf9')][_0x58caad][_0x447b('0x5')],_0x3307e6=_0x383954(_0x37c4fd[_0x447b('0xf9')][_0x58caad]['attributesBefore'])||{},_0x965b4=this[_0x447b('0x4d')](_0x37c4fd[_0x447b('0xf9')][_0x58caad][_0x447b('0x4b')]);_0x965b4[_0x447b('0x98')]=_0x58caad,_0x965b4[_0x447b('0xc')]=!_0xff352e||!_0xff352e[_0x447b('0x1b')],_0x965b4[_0x447b('0x1b')]=()=>_0x965b4[_0x447b('0xc')],this['_baseRoots'][_0x447b('0xc1')](_0x58caad,_0x965b4),this[_0x447b('0xbb')][_0x447b('0xc1')](_0x58caad,_0x3307e6),_0xff352e&&this[_0x447b('0xc4')][_0x447b('0xc1')](_0x58caad,_0xff352e);const _0x14393c=this[_0x447b('0x58')](_0x965b4);this['_baseIdsRoots'][_0x447b('0xc1')](_0x58caad,_0x14393c);for(const [_0x457794,_0x2a53fd]of _0x965b4[_0x447b('0xa3')]){if(!_0x457794[_0x447b('0x19')](_0x447b('0xd3')))continue;const _0x2de970=_0x457794[_0x447b('0x99')](':')[0x2];for(const _0x473531 of _0x2a53fd[_0x447b('0x9e')]({'singleCharacters':!0x0})){const _0x4417a7=this[_0x447b('0x5c')](_0x473531),_0x4ae5fa=_0x447b('0xf2')==_0x473531[_0x447b('0xd7')]?_0x473531[_0x447b('0x72')]['path'][_0x447b('0xa4')](0x0,-0x1):_0x473531[_0x447b('0x72')][_0x447b('0x25')],_0x134536=_0x14393c[_0x447b('0x9d')](_0x4ae5fa)[_0x447b('0x5d')](_0x4417a7);this[_0x447b('0x22')][_0x447b('0xc1')](_0x134536,{'userId':_0x2de970});}}}this[_0x447b('0xde')]=this[_0x447b('0xc0')];const _0x3c51fe=[...Array(this[_0x447b('0xc0')])[_0x447b('0xb7')]()][_0x447b('0xa4')](0x1)[_0x447b('0x64')](_0x2e9053=>!this[_0x447b('0x22')][_0x447b('0x42')](_0x2e9053));let _0x146c1c=0x0;const _0x5ce3c1=new Map();for(const _0x2ff23b in _0x37c4fd[_0x447b('0xf9')]){const _0x2cbda3=_0x37c4fd[_0x447b('0xf9')][_0x2ff23b][_0x447b('0x5')],_0x8a79c5=_0x383954(_0x37c4fd[_0x447b('0xf9')][_0x2ff23b]['attributesAfter'])||{},_0x2430da=this['_makeModelFromViewString'](_0x37c4fd[_0x447b('0xf9')][_0x2ff23b]['insertions']);_0x2430da[_0x447b('0x98')]=_0x2ff23b,_0x2430da['_isAttached']=!_0x2cbda3||_0x2cbda3[_0x447b('0x1b')],_0x2430da[_0x447b('0x1b')]=()=>_0x2430da[_0x447b('0xc')],this[_0x447b('0xc3')][_0x447b('0xc1')](_0x2ff23b,_0x2430da),this[_0x447b('0x56')][_0x447b('0xc1')](_0x2ff23b,_0x8a79c5);const _0x29e77c=this[_0x447b('0x58')](_0x2430da,Number[_0x447b('0xb0')]);this[_0x447b('0xd5')][_0x447b('0xc1')](_0x2ff23b,_0x29e77c),_0x5ce3c1[_0x447b('0xc1')](_0x2ff23b,_0x2430da['isAttached']()?_0x8a79c5:{});for(const [_0x175388,_0x2cc145]of _0x2430da[_0x447b('0xa3')]){if(!_0x175388[_0x447b('0x19')](_0x447b('0xd3')))continue;const _0x2fa7d1=_0x175388[_0x447b('0x99')](':')[0x2];for(const _0x13624f of _0x2cc145['getWalker']({'singleCharacters':!0x0})){const _0x3da8f7=this[_0x447b('0x5c')](_0x13624f),_0x3a2035=this['_revisionId']++,_0x3a553c='elementEnd'==_0x13624f[_0x447b('0xd7')]?_0x13624f['previousPosition'][_0x447b('0x25')][_0x447b('0xa4')](0x0,-0x1):_0x13624f[_0x447b('0x72')][_0x447b('0x25')];_0x29e77c[_0x447b('0x9d')](_0x3a553c)['_setAttribute'](_0x3da8f7,_0x3a2035),this[_0x447b('0x22')][_0x447b('0xc1')](_0x3a2035,{'userId':_0x2fa7d1});}}for(const _0x30f8f1 of this[_0x447b('0x1f')]['model']['createRangeIn'](_0x2430da)[_0x447b('0x9e')]({'singleCharacters':!0x0})){const _0x1dabf0=this['_getVidAttributeName'](_0x30f8f1),_0x2863d0=_0x447b('0xf2')==_0x30f8f1[_0x447b('0xd7')]?_0x30f8f1['previousPosition']['path']['slice'](0x0,-0x1):_0x30f8f1['previousPosition'][_0x447b('0x25')],_0x1d6fa3=_0x29e77c[_0x447b('0x9d')](_0x2863d0);_0x1d6fa3[_0x447b('0x5d')](_0x1dabf0)>0x0||_0x1d6fa3[_0x447b('0x29')](_0x1dabf0,_0x3c51fe[_0x146c1c++]);}for(const [_0x5a8139,_0xa453e0]of _0x2430da['markers'])_0x5a8139['startsWith'](_0x447b('0xd3'))||this[_0x447b('0x18')]['set'](_0x5a8139,_0xa453e0);}const _0x1677af=G(_0x447b('0xf4'));this[_0x447b('0x8b')][_0x447b('0xc1')](_0x447b('0xf4'),_0x1677af),this[_0x447b('0xd')][_0x447b('0xc1')](_0x447b('0xf4'),this[_0x447b('0x58')](_0x1677af,0x1));const _0x2696e1=G(_0x447b('0xf4'));this[_0x447b('0xc3')]['set'](_0x447b('0xf4'),_0x2696e1),this['_idsRoots'][_0x447b('0xc1')]('$graveyard',this[_0x447b('0x58')](_0x2696e1,0x1));const _0x160920=Array[_0x447b('0x4c')](this[_0x447b('0xc3')])[_0x447b('0x78')](([_0x3931e3,_0x40bd18])=>[_0x3931e3,q(_0x40bd18)]);this[_0x447b('0x9f')](this['_lastTo'],_0x160920,this[_0x447b('0x18')],_0x5ce3c1);}[_0x447b('0x4d')](_0x191580){const _0x134394=JSON['parse'](_0x191580),_0x12063a=this[_0x447b('0x1f')][_0x447b('0xdb')][_0x447b('0x61')][_0x447b('0xf1')],_0x27bd27=new _0xbf4b3d(_0x12063a,_0x134394[_0x447b('0x78')](_0x2f17ec=>J(_0x2f17ec,this[_0x447b('0x1f')])));return this[_0x447b('0x1f')]['data'][_0x447b('0x2')](_0x27bd27);}[_0x447b('0x9f')](_0x402cbb,_0xbc69c4,_0x478f98,_0xd961cc){const _0x4ec103=new Map(_0xbc69c4),_0x193e97=new Map(_0x383954(_0xd961cc)),_0x48100e=new Map();for(const [_0xc23eb8,_0x249b0c]of _0x478f98)_0x48100e[_0x447b('0xc1')](_0xc23eb8,{'start':_0x249b0c[_0x447b('0x5a')][_0x447b('0x71')](),'end':_0x249b0c[_0x447b('0xea')]['clone'](),'rootName':_0x249b0c[_0x447b('0x2b')][_0x447b('0x98')]});this[_0x447b('0x6c')][_0x447b('0xc1')](_0x402cbb,{'roots':_0x4ec103,'markers':_0x48100e,'rootsAttributes':_0x193e97});}[_0x447b('0x36')](_0x11174b){this[_0x447b('0x6c')][_0x447b('0x3a')](_0x11174b);}[_0x447b('0x8f')](){this[_0x447b('0x3c')](),this[_0x447b('0xb5')]=-0x1,this[_0x447b('0x59')]=-0x1,this[_0x447b('0x6c')]['clear'](),this[_0x447b('0xb2')](this[_0x447b('0x31')]);}[_0x447b('0x3c')](){this[_0x447b('0x22')][_0x447b('0x6')](),this[_0x447b('0x41')]['clear'](),this['_touchedRoots']['clear'](),this[_0x447b('0xc3')][_0x447b('0x6')](),this[_0x447b('0x56')][_0x447b('0x6')](),this['_baseRoots'][_0x447b('0x6')](),this[_0x447b('0xbb')][_0x447b('0x6')](),this[_0x447b('0xd5')][_0x447b('0x6')](),this['_baseIdsRoots'][_0x447b('0x6')](),this[_0x447b('0x18')][_0x447b('0x6')](),this[_0x447b('0xc0')]=0x1,this['_startingRevisionId']=this[_0x447b('0xc0')];}['_makeIdsRoot'](_0x152e14,_0xa3d156=null){let _0x14993c=null;_0x152e14['is']('documentFragment')||(_0x14993c=new _0x3e5557(_0x152e14[_0x447b('0xf5')],{'vid_start':null===_0xa3d156?this['_revisionId']++:_0xa3d156++}));const _0x5b2396=[];for(const _0x1d9b09 of _0x152e14[_0x447b('0x45')]())if(_0x1d9b09['is']('element')){_0x5b2396[_0x447b('0xd0')](this[_0x447b('0x58')](_0x1d9b09,_0xa3d156));const _0x120c75=_0x5b2396[_0x5b2396[_0x447b('0x67')]-0x1];null!==_0xa3d156&&(_0xa3d156=_0x120c75['is'](_0x447b('0xb9'),_0x447b('0xa6'))?_0x120c75[_0x447b('0x5d')]('vid')+0x1:_0x120c75[_0x447b('0x5d')](_0x447b('0x94'))+0x1);}else for(let _0x7966ec=0x0;_0x7966ec<_0x1d9b09[_0x447b('0xdf')];_0x7966ec++)_0x5b2396['push'](new _0x3e5557(_0x447b('0xa6'),{'vid':null===_0xa3d156?this['_revisionId']++:_0xa3d156++}));if(_0x152e14['is']('documentFragment')){const _0x579335=G(_0x152e14[_0x447b('0x98')]);return _0x579335[_0x447b('0xf7')](0x0,_0x5b2396),_0x579335;}return _0x14993c[_0x447b('0x29')]('vid_end',null===_0xa3d156?this[_0x447b('0xc0')]++:_0xa3d156++),_0x14993c[_0x447b('0xf7')](0x0,_0x5b2396),_0x14993c;}[_0x447b('0xd2')](_0x2f47a0,_0x1ca8d8,_0x26330c){this[_0x447b('0x3c')]();const {roots:_0x429b9e,markers:_0x235172,rootsAttributes:_0x430913}=this['_savedMetaData'][_0x447b('0x7a')](_0x2f47a0);this['_baseRoots']=new Map(_0x429b9e),this[_0x447b('0xbb')]=new Map(_0x383954(_0x430913));for(const [_0x2ff229,_0x507ae3]of this[_0x447b('0x8b')])if('$graveyard'!==_0x2ff229&&(this['_diffRoots'][_0x447b('0xc1')](_0x2ff229,q(_0x507ae3)),this[_0x447b('0x56')]=new Map(_0x383954(_0x430913)),_0x26330c)){const _0x5a75cc=this['_revisionId'];this[_0x447b('0xd5')][_0x447b('0xc1')](_0x2ff229,this[_0x447b('0x58')](_0x507ae3)),this[_0x447b('0xd')][_0x447b('0xc1')](_0x2ff229,this[_0x447b('0x58')](_0x507ae3,_0x5a75cc));}this[_0x447b('0xde')]=this[_0x447b('0xc0')],this[_0x447b('0xc3')][_0x447b('0xc1')]('$graveyard',q(this['_baseRoots'][_0x447b('0x7a')](_0x447b('0xf4')))),_0x26330c&&this[_0x447b('0xd5')]['set'](_0x447b('0xf4'),this['_makeIdsRoot'](this['_baseRoots'][_0x447b('0x7a')]('$graveyard')));for(const [_0x14f4a1,_0x1a6052]of _0x235172){const _0x55b1eb=this[_0x447b('0x8b')][_0x447b('0x7a')](_0x1a6052[_0x447b('0x98')]),_0x5483c3=this[_0x447b('0xc3')][_0x447b('0x7a')](_0x1a6052[_0x447b('0x98')]),_0x5c13e5=new _0x395b8d(this['_fixPosition'](_0x1a6052[_0x447b('0x5a')],_0x55b1eb),this[_0x447b('0x97')](_0x1a6052[_0x447b('0xea')],_0x55b1eb)),_0x354f52=this['_fixRange'](_0x5c13e5,_0x5483c3);_0x55b1eb[_0x447b('0xa3')][_0x447b('0xc1')](_0x14f4a1,_0x5c13e5),this[_0x447b('0x18')][_0x447b('0xc1')](_0x14f4a1,_0x354f52);}this[_0x447b('0xba')](_0x2f47a0,_0x1ca8d8,_0x26330c);}['_applyOperations'](_0x5f23cd,_0xed1c58,_0x56daa3){for(const _0x2310d9 of this['source'][_0x447b('0x2c')](_0x5f23cd,_0xed1c58))this['_handleOperation'](_0x2310d9,_0x56daa3);for(const _0x16a2a4 of this[_0x447b('0xc3')]['values']())_0x16a2a4[_0x447b('0xa3')][_0x447b('0x6')]();for(const [_0x5b8f0d,_0x378b44]of this[_0x447b('0x18')]){this[_0x447b('0xc3')][_0x447b('0x7a')](_0x378b44['root'][_0x447b('0x98')])[_0x447b('0xa3')][_0x447b('0xc1')](_0x5b8f0d,_0x378b44[_0x447b('0x71')]());}const _0x2d1f4f=new Map(),_0x32084c=new Map();for(const [_0x489987,_0x3ff3ae]of this[_0x447b('0xc3')])_0x2d1f4f['set'](_0x489987,q(_0x3ff3ae)),_0x32084c[_0x447b('0xc1')](_0x489987,this[_0x447b('0x56')][_0x447b('0x7a')](_0x489987));this[_0x447b('0x9f')](_0xed1c58,_0x2d1f4f,this[_0x447b('0x18')],_0x32084c);}[_0x447b('0xda')](_0x309163){const _0x2f965a=Array['from'](this[_0x447b('0x6c')][_0x447b('0xb7')]());_0x2f965a[_0x447b('0x106')]((_0x1d76b7,_0x450a64)=>_0x1d76b7-_0x450a64),_0x2f965a['reverse']();for(const _0x5093b1 of _0x2f965a)if(_0x5093b1<_0x309163)return _0x5093b1;return Number['NEGATIVE_INFINITY'];}[_0x447b('0x7e')](_0x781b69,_0x44d140){const _0x1a402d=Array[_0x447b('0x4c')](_0x44d140['markers'])['map'](([_0x4ec92d,_0x2ab538])=>[_0x4ec92d,this['_fixRange'](_0x2ab538,_0x781b69)]);_0x781b69[_0x447b('0xa3')]=new Map(_0x1a402d);}['_transformMarkers'](_0x126d6a){for(const _0x3c118b of this['_markers'][_0x447b('0x81')]()){const _0x3ff2c8=_0x3c118b[_0x447b('0xf3')](_0x126d6a),_0x43c79f=_0x395b8d[_0x447b('0x5e')](_0x3ff2c8);_0x3c118b[_0x447b('0x5a')]=_0x43c79f[_0x447b('0x5a')],_0x3c118b[_0x447b('0xea')]=_0x43c79f['end'];}}[_0x447b('0xaf')](_0x5e2f50,_0xd8543a){if(_0x447b('0x109')==_0x5e2f50[_0x447b('0xd7')]||_0x447b('0xad')==_0x5e2f50[_0x447b('0xd7')])return void this[_0x447b('0x1e')](_0x5e2f50,_0xd8543a);if(_0x447b('0xd1')==_0x5e2f50[_0x447b('0xd7')]){const _0x45f2f0=_0x5e2f50[_0x447b('0xab')]['root'][_0x447b('0x98')];this['_diffRoots'][_0x447b('0x42')](_0x45f2f0)||(this[_0x447b('0xc3')][_0x447b('0xc1')](_0x45f2f0,G(_0x45f2f0,!0x0)),this[_0x447b('0x56')][_0x447b('0xc1')](_0x45f2f0,{}),_0xd8543a&&this[_0x447b('0xd5')]['set'](_0x45f2f0,G(_0x45f2f0,!0x0)));}else{if('addRootAttribute'==_0x5e2f50[_0x447b('0xd7')]||_0x447b('0x8c')==_0x5e2f50[_0x447b('0xd7')]||_0x447b('0x51')==_0x5e2f50[_0x447b('0xd7')])return void this[_0x447b('0x54')](_0x5e2f50);}const _0xc9b832=this[_0x447b('0xe0')](_0x5e2f50,this[_0x447b('0xc3')]);if(_0x447b('0xfd')!==_0x5e2f50['type']&&(_0xc9b832[_0x447b('0x83')](),this['_transformMarkers'](_0xc9b832)),_0xd8543a)switch(_0xc9b832[_0x447b('0xd7')]){case _0x447b('0xd1'):this[_0x447b('0x80')](_0x5e2f50);break;case _0x447b('0x4a'):case _0x447b('0xf'):case _0x447b('0x8'):this['_handleMoveOperation'](_0x5e2f50);break;case _0x447b('0x79'):this[_0x447b('0x7f')](_0x5e2f50);break;case'split':this['_handleSplitOperation'](_0x5e2f50);break;case _0x447b('0xfd'):this[_0x447b('0x39')](_0x5e2f50);}}['_cloneOperation'](_0x25d3c9,_0x2525be){const _0x570ba1=_0x25d3c9[_0x447b('0x71')]();return _0x570ba1[_0x447b('0x11')]=_0x25d3c9[_0x447b('0x11')],this[_0x447b('0x12')](_0x570ba1,_0x2525be),_0x570ba1;}[_0x447b('0xa')](_0x109698){return _0x109698[_0x447b('0x78')](_0x9aed93=>{const _0x1fac55=this[_0x447b('0x5c')](_0x9aed93);return Number(_0x9aed93[_0x447b('0xb4')][_0x447b('0x5d')](_0x1fac55));});}[_0x447b('0x32')](_0x36eac0,_0x25f911){if(_0x36eac0['is']('element',_0x447b('0xa6')))_0x25f911['push']({'item':_0x36eac0,'type':_0x447b('0x96')});else{_0x36eac0['is'](_0x447b('0xb9'))&&_0x25f911[_0x447b('0xd0')]({'item':_0x36eac0,'type':_0x447b('0xb8')});for(const _0x1a3371 of _0x36eac0[_0x447b('0x45')]())this['_generateTape'](_0x1a3371,_0x25f911);_0x36eac0['is'](_0x447b('0xb9'))&&_0x25f911[_0x447b('0xd0')]({'item':_0x36eac0,'type':'elementEnd'});}return _0x25f911;}[_0x447b('0xa2')](){const _0x2c67f8=new Map(this['_touched']),_0x42e611=new Map(_0x2c67f8),_0x14d389=new Map(),_0x8e7b20={'insertions':{},'deletions':{}},_0x47954d={'insertions':{},'deletions':{}},_0x88125b=new Map(),_0x41ab5a=new Set([...this['_baseRoots'][_0x447b('0xb7')](),...this[_0x447b('0xc3')][_0x447b('0xb7')]()]);_0x41ab5a[_0x447b('0x3a')](_0x447b('0xf4'));for(const _0x68d0ad of _0x41ab5a){const _0x5c3367=this['_diffRoots']['get'](_0x68d0ad)||G(_0x68d0ad,!0x1),_0x471953=this[_0x447b('0x8b')][_0x447b('0x7a')](_0x68d0ad)||G(_0x68d0ad,!0x1);_0x5c3367[_0x447b('0x1b')]()||_0x471953['isAttached']()?(_0x8e7b20['insertions'][_0x68d0ad]=q(_0x5c3367),_0x8e7b20['deletions'][_0x68d0ad]=q(_0x471953),this[_0x447b('0x7e')](_0x8e7b20[_0x447b('0x4b')][_0x68d0ad],_0x471953),this['_copyMarkers'](_0x8e7b20[_0x447b('0x3')][_0x68d0ad],_0x5c3367),_0x47954d[_0x447b('0x3')][_0x68d0ad]=this[_0x447b('0x32')](this[_0x447b('0xd5')][_0x447b('0x7a')](_0x68d0ad),[]),_0x47954d[_0x447b('0x4b')][_0x68d0ad]=this[_0x447b('0x32')](this[_0x447b('0xd')]['get'](_0x68d0ad)||G(_0x68d0ad,!0x1),[])):_0x41ab5a[_0x447b('0x3a')](_0x68d0ad);}for(const _0x10201e of _0x41ab5a){const _0x325674=_0x47954d[_0x447b('0x3')][_0x10201e];for(const _0x10f7a3 of _0x325674){const _0x3ab8f5=this['_getVidAttributeName'](_0x10f7a3),_0x132f31=_0x10f7a3[_0x447b('0xb4')]['getAttribute'](_0x3ab8f5);_0x42e611['delete'](_0x132f31),_0x132f31>=this[_0x447b('0xde')]&&_0x14d389[_0x447b('0xc1')](_0x132f31,_0x2c67f8['get'](_0x132f31));}}for(const _0x48ff72 of _0x41ab5a){const _0x12ecd5=_0x47954d[_0x447b('0x3')][_0x48ff72],_0x157e43=this[_0x447b('0xa')](_0x47954d[_0x447b('0x4b')][_0x48ff72]);let _0x3e581d=0x0;for(const _0x3e545f of _0x12ecd5){const _0x3b28c0=this[_0x447b('0x5c')](_0x3e545f),_0x131dc7=_0x3e545f[_0x447b('0xb4')][_0x447b('0x5d')](_0x3b28c0);if(!_0x14d389[_0x447b('0x42')](_0x131dc7)&&!_0x88125b[_0x447b('0x42')](_0x131dc7)){if(_0x42e611['has'](_0x131dc7))_0x3e581d++;else{if(_0x131dc7!=_0x157e43[_0x3e581d]){const _0x2df238=_0x2c67f8[_0x447b('0x7a')](_0x131dc7)||_0x2c67f8['get'](_0x157e43[_0x3e581d]);for(;_0x131dc7!=_0x157e43[_0x3e581d];)_0x42e611[_0x447b('0x42')](_0x157e43[_0x3e581d])||(_0x88125b[_0x447b('0xc1')](_0x157e43[_0x3e581d],_0x2df238),_0x2c67f8[_0x447b('0xc1')](_0x157e43[_0x3e581d],_0x2df238)),_0x3e581d++;}_0x3e581d++;}}}}for(const _0x13c19c of _0x41ab5a){const _0x5c6e1a=_0x47954d[_0x447b('0x3')][_0x13c19c];for(const _0x24abec of _0x5c6e1a){const _0x49db58=this[_0x447b('0x5c')](_0x24abec),_0x14f8ab=_0x24abec['item'][_0x447b('0x5d')](_0x49db58);if(_0x88125b[_0x447b('0x42')](_0x14f8ab)){const _0x50b911=_0x88125b['get'](_0x14f8ab);_0x42e611[_0x447b('0x42')](_0x14f8ab)||_0x42e611[_0x447b('0xc1')](_0x14f8ab,{..._0x50b911}),_0x14d389['set'](_0x14f8ab,{..._0x50b911});}}}for(const _0x224b29 of _0x42e611[_0x447b('0xb7')]())_0x224b29>=this[_0x447b('0xde')]&&_0x42e611['delete'](_0x224b29);const _0x492bd2=new Map();for(const _0x26541e of _0x41ab5a){let _0x4e7b04=_0x47954d[_0x447b('0x3')][_0x26541e];for(const _0x28eb3d of _0x4e7b04)if(_0x28eb3d[_0x447b('0xb4')]['is'](_0x447b('0xb9'),'tableCell')){const _0x5eb397=this[_0x447b('0x5c')](_0x28eb3d),_0x2d3e13=_0x28eb3d[_0x447b('0xb4')][_0x447b('0x5d')](_0x5eb397);if(_0x14d389[_0x447b('0x42')](_0x2d3e13)){const _0x2eefac=_0x28eb3d[_0x447b('0xb4')][_0x447b('0xa1')][_0x447b('0xa1')]['getAttribute'](_0x447b('0x91')),_0x289409=_0x492bd2[_0x447b('0x7a')](_0x2eefac)||new Set();_0x289409[_0x447b('0xf8')](_0x14d389[_0x447b('0x7a')](_0x2d3e13)[_0x447b('0x68')]),_0x492bd2[_0x447b('0xc1')](_0x2eefac,_0x289409);}}_0x4e7b04=_0x47954d['deletions'][_0x26541e];for(const _0x23bb58 of _0x4e7b04)if(_0x23bb58[_0x447b('0xb4')]['is'](_0x447b('0xb9'),_0x447b('0x105'))){const _0xa2216e=this[_0x447b('0x5c')](_0x23bb58),_0xed8a47=_0x23bb58[_0x447b('0xb4')][_0x447b('0x5d')](_0xa2216e);if(_0x42e611['has'](_0xed8a47)){const _0xc7dc01=_0x23bb58[_0x447b('0xb4')][_0x447b('0xa1')][_0x447b('0xa1')][_0x447b('0x5d')]('vid_start'),_0x462f5c=_0x492bd2[_0x447b('0x7a')](_0xc7dc01)||new Set();_0x462f5c[_0x447b('0xf8')](_0x42e611[_0x447b('0x7a')](_0xed8a47)[_0x447b('0x68')]),_0x492bd2['set'](_0xc7dc01,_0x462f5c);}}for(const _0x4a13cd of _0x492bd2[_0x447b('0xb7')]())(_0x14d389[_0x447b('0x42')](_0x4a13cd)||_0x42e611[_0x447b('0x42')](_0x4a13cd))&&_0x492bd2[_0x447b('0x3a')](_0x4a13cd);}for(const _0x482e28 of _0x41ab5a){const _0x2ee20e=_0x47954d[_0x447b('0x3')][_0x482e28];let _0x45172b=null,_0x6b109f=null;for(const _0x248cc1 of _0x2ee20e){const _0x533c7a=this[_0x447b('0x5c')](_0x248cc1),_0x44e595=_0x248cc1[_0x447b('0xb4')][_0x447b('0x5d')](_0x533c7a),_0x2a3bc5=_0x492bd2[_0x447b('0x7a')](_0x44e595);_0x2a3bc5&&_0x447b('0xb8')==_0x248cc1[_0x447b('0xd7')]&&(_0x45172b=Array['from'](_0x2a3bc5)[0x0],_0x6b109f=_0x248cc1[_0x447b('0xb4')][_0x447b('0x5d')](_0x447b('0x94'))),_0x45172b&&(_0x42e611[_0x447b('0xc1')](_0x44e595,{'userId':_0x45172b}),_0x14d389[_0x447b('0xc1')](_0x44e595,{'userId':_0x45172b})),_0x44e595==_0x6b109f&&(_0x45172b=null,_0x6b109f=null);}}const _0xe962e={},_0x23835a=new Set();for(const _0x286434 of _0x41ab5a){const _0xb866b4=_0x8e7b20[_0x447b('0x4b')][_0x286434],_0x3e112f=_0x8e7b20[_0x447b('0x3')][_0x286434];for(const {userId:_0x364d73}of this['_touchedMarkers']['values']())null!==_0x364d73&&_0x23835a[_0x447b('0xf8')](_0x364d73);for(const {userId:_0xaa0faa}of this[_0x447b('0xc4')][_0x447b('0x81')]())null!==_0xaa0faa&&_0x23835a[_0x447b('0xf8')](_0xaa0faa);this['_markChanges'](_0x3e112f,_0x47954d[_0x447b('0x3')][_0x286434],_0x14d389,_0x447b('0x26'),_0x23835a),this[_0x447b('0x1a')](_0xb866b4,_0x47954d['deletions'][_0x286434],_0x42e611,'deletion',_0x23835a),_0xe962e[_0x286434]={'insertions':this[_0x447b('0x24')](_0x3e112f),'deletions':this[_0x447b('0x24')](_0xb866b4),'attachChange':this[_0x447b('0xc4')][_0x447b('0x7a')](_0x286434)||null,'attributesBefore':_0x383954(this[_0x447b('0xbb')][_0x447b('0x7a')](_0x286434))||{},'attributesAfter':_0x383954(this['_diffRootsAttributes'][_0x447b('0x7a')](_0x286434))};}return{'diffData':_0xe962e,'authorsIds':Array[_0x447b('0x4c')](_0x23835a)};}[_0x447b('0x3d')](_0x5700b1){for(const [,_0x396200]of _0x5700b1['markers']){const _0x544f8a=_0x396200[_0x447b('0x5a')][_0x447b('0x33')]()[_0x447b('0x64')](_0x65f5b7=>_0x447b('0x105')==_0x65f5b7[_0x447b('0xf5')]);for(const _0x49ed8d of _0x544f8a)0x1==_0x49ed8d['childCount']&&_0x49ed8d['getChild'](0x0)['is'](_0x447b('0xb9'),_0x447b('0x7'))&&_0x49ed8d[_0x447b('0x57')](0x0)[_0x447b('0x29')](_0x447b('0xdd'),!0x0);}}[_0x447b('0x24')](_0x444685){this['_processRootBeforeSave'](_0x444685);const _0x58b55f=this[_0x447b('0x1f')][_0x447b('0xe8')]['toView'](_0x444685,{}),_0x134bfc=Array['from'](_0x58b55f[_0x447b('0x45')]())[_0x447b('0x78')](_0x4876fe=>this[_0x447b('0xf0')](_0x4876fe));return JSON[_0x447b('0xe6')](_0x134bfc);}[_0x447b('0xf0')](_0x29a051){if(_0x29a051['is']('$text'))return _0x29a051[_0x447b('0xe8')];{const _0x23332c=_0x29a051;return{'type':Object[_0x447b('0xb7')](B)['find'](_0x43ae52=>_0x29a051 instanceof B[_0x43ae52]),'name':_0x23332c[_0x447b('0xf5')],'attributes':Array[_0x447b('0x4c')](_0x23332c[_0x447b('0x8a')]()),'children':Array[_0x447b('0x4c')](_0x23332c[_0x447b('0x45')]())[_0x447b('0x78')](_0x257a12=>this['_getViewJson'](_0x257a12))};}}[_0x447b('0x1a')](_0x161a90,_0x2d18b2,_0x46fcfa,_0x5e698b,_0x10e46a){let _0x28c114=null,_0x9a7d87=null,_0x5dee40=0x0;const _0x51e3f2=this[_0x447b('0x1f')][_0x447b('0x74')];for(let _0x4cd877=0x0;_0x4cd877<_0x2d18b2['length'];_0x4cd877++){const _0x12bab6=this[_0x447b('0x5c')](_0x2d18b2[_0x4cd877]),_0x181fde=_0x2d18b2[_0x4cd877][_0x447b('0xb4')]['getAttribute'](_0x12bab6),_0x54694b=_0x46fcfa[_0x447b('0x7a')](_0x181fde),_0xf67766=_0x4cd877==_0x2d18b2[_0x447b('0x67')]-0x1;(!_0x28c114&&_0x54694b&&(_0x28c114=_0x54694b,_0x9a7d87=_0x2d18b2[_0x4cd877]),_0x28c114&&(!_0x54694b||_0x54694b[_0x447b('0x68')]!=_0x28c114['userId']))&&(_0x3712f9(_0x54694b,L(_0x9a7d87,_0x161a90,_0x51e3f2),L(_0x2d18b2[_0x4cd877],_0x161a90,_0x51e3f2)),_0x28c114=_0x54694b||null,_0x9a7d87=_0x54694b?_0x2d18b2[_0x4cd877]:null),_0x28c114&&_0xf67766&&_0x3712f9(_0x54694b,L(_0x9a7d87,_0x161a90,_0x51e3f2),W(_0x2d18b2[_0x4cd877],_0x161a90,_0x51e3f2));}function _0x3712f9(_0x23c006,_0x4a32f0,_0x482066){const _0x1be19e=_0x28c114[_0x447b('0x68')],_0x3f9c25='revision:'+_0x5e698b+':'+_0x1be19e+':'+_0x5dee40++,_0x40228a=_0x51e3f2[_0x447b('0x44')](_0x4a32f0,_0x482066);_0x161a90['markers'][_0x447b('0xc1')](_0x3f9c25,_0x40228a),null!==_0x1be19e&&_0x10e46a['add'](_0x1be19e);}}[_0x447b('0x5c')](_0x5cbe47){switch(_0x5cbe47[_0x447b('0xd7')]){case _0x447b('0xb8'):return _0x447b('0x91');case _0x447b('0xf2'):return _0x447b('0x94');default:return'vid';}}['_fixOperation'](_0x34e1e9,_0x241a52){_0x34e1e9[_0x447b('0x93')]=null;for(const _0x1f02bd in _0x34e1e9){const _0xc28895=_0x34e1e9[_0x1f02bd];if(_0xc28895 instanceof _0x579325){const _0x21cdc0=_0x241a52[_0x447b('0x7a')](_0xc28895['root'][_0x447b('0x98')]);_0x34e1e9[_0x1f02bd]=this[_0x447b('0x97')](_0xc28895,_0x21cdc0);}if(_0xc28895 instanceof _0x395b8d){const _0x1c5a89=_0x241a52[_0x447b('0x7a')](_0xc28895['root'][_0x447b('0x98')]);_0x34e1e9[_0x1f02bd]=this[_0x447b('0x17')](_0xc28895,_0x1c5a89);}'root'===_0x1f02bd&&(_0x34e1e9[_0x447b('0x2b')]=_0x241a52['get'](_0x34e1e9[_0x447b('0x2b')][_0x447b('0x98')]));}}['_fixRange'](_0x3a9466,_0x13225d){return this[_0x447b('0x1f')]['model'][_0x447b('0x44')](this[_0x447b('0x97')](_0x3a9466[_0x447b('0x5a')],_0x13225d),this['_fixPosition'](_0x3a9466[_0x447b('0xea')],_0x13225d));}[_0x447b('0x97')](_0x5bba48,_0x5161ee){return this[_0x447b('0x1f')]['model'][_0x447b('0xd9')](_0x5161ee,_0x5bba48[_0x447b('0x25')],_0x5bba48[_0x447b('0x66')]);}['_handleInsertOperation'](_0x91f75f){const _0x472db0=this[_0x447b('0xd5')]['get'](_0x91f75f[_0x447b('0xab')]['root'][_0x447b('0x98')]),_0x496df6=this['_fixPosition'](_0x91f75f[_0x447b('0xab')],_0x472db0),_0x51c641=null===_0x91f75f[_0x447b('0x11')]?null:_0x91f75f[_0x447b('0x11')]||this[_0x447b('0x1f')]['plugins']['get'](_0x447b('0xc8'))['me']['id'],_0x29ecea=_0x496df6[_0x447b('0xa1')],_0xa50574=this[_0x447b('0xc0')],_0xc7a2ae=[];for(const _0x3e2d6c of _0x91f75f[_0x447b('0xfe')])if(_0x3e2d6c['is']('element'))_0xc7a2ae['push'](this[_0x447b('0x58')](_0x3e2d6c));else for(let _0x9266d3=0x0;_0x9266d3<_0x3e2d6c[_0x447b('0xdf')];_0x9266d3++)_0xc7a2ae[_0x447b('0xd0')](new _0x3e5557(_0x447b('0xa6'),{'vid':this['_revisionId']++}));const _0x5df034=this[_0x447b('0xc0')];for(let _0x5df20a=_0xa50574;_0x5df20a<_0x5df034;_0x5df20a++)this[_0x447b('0x22')][_0x447b('0xc1')](_0x5df20a,{'userId':_0x51c641});_0x29ecea['_insertChild'](_0x496df6[_0x447b('0x1c')],_0xc7a2ae);}[_0x447b('0x82')](_0x2162ce){(_0x2162ce=this[_0x447b('0xe0')](_0x2162ce,this[_0x447b('0xd5')]))[_0x447b('0x83')]();const _0x1ed799=null===_0x2162ce['_authorId']?null:_0x2162ce['_authorId']||this[_0x447b('0x1f')][_0x447b('0x1d')][_0x447b('0x7a')](_0x447b('0xc8'))['me']['id'],_0x909932=_0x2162ce[_0x447b('0x88')](),_0x5a7608=_0x909932[_0x447b('0xa1')],_0x10a340=_0x909932[_0x447b('0x1c')];!function _0x25b4c9(_0x500538,_0x444826,_0x2d54eb,_0x1dd074){for(let _0x225367=_0x2d54eb;_0x225367<_0x1dd074;_0x225367++){const _0x4801d2=_0x444826[_0x447b('0x57')](_0x225367);_0x4801d2['is'](_0x447b('0xb9'),_0x447b('0xa6'))?_0x500538[_0x447b('0xc1')](_0x4801d2['getAttribute'](_0x447b('0x55')),{'userId':_0x1ed799}):(_0x500538['set'](_0x4801d2[_0x447b('0x5d')](_0x447b('0x91')),{'userId':_0x1ed799}),_0x25b4c9(_0x500538,_0x4801d2,0x0,_0x4801d2[_0x447b('0xcd')]),_0x500538[_0x447b('0xc1')](_0x4801d2[_0x447b('0x5d')](_0x447b('0x94')),{'userId':_0x1ed799}));}}(this[_0x447b('0x22')],_0x5a7608,_0x10a340,_0x10a340+_0x2162ce[_0x447b('0x5b')]);}[_0x447b('0x7f')](_0x3626fb){const _0x117b6a=null===(_0x3626fb=this['_cloneOperation'](_0x3626fb,this[_0x447b('0xd5')]))[_0x447b('0x11')]?null:_0x3626fb[_0x447b('0x11')]||this[_0x447b('0x1f')][_0x447b('0x1d')][_0x447b('0x7a')](_0x447b('0xc8'))['me']['id'],_0x3551c9=_0x3626fb[_0x447b('0xe3')][_0x447b('0xa1')],_0x4549a6=_0x3626fb['sourcePosition'][_0x447b('0xa1')],_0x281837=_0x3551c9[_0x447b('0x5d')](_0x447b('0x94')),_0x5492c2=_0x4549a6['getAttribute'](_0x447b('0x91'));_0x3551c9[_0x447b('0x29')]('vid_end',_0x4549a6['getAttribute']('vid_end')),_0x4549a6[_0x447b('0x29')](_0x447b('0x94'),_0x281837),this[_0x447b('0x22')][_0x447b('0xc1')](_0x5492c2,{'userId':_0x117b6a}),this[_0x447b('0x22')][_0x447b('0xc1')](_0x281837,{'userId':_0x117b6a}),_0x3626fb[_0x447b('0x83')]();}['_handleSplitOperation'](_0xee0d62){const _0x39fbad=null===(_0xee0d62=this[_0x447b('0xe0')](_0xee0d62,this[_0x447b('0xd5')]))[_0x447b('0x11')]?null:_0xee0d62['_authorId']||this[_0x447b('0x1f')][_0x447b('0x1d')][_0x447b('0x7a')](_0x447b('0xc8'))['me']['id'],_0x41e2af=_0xee0d62[_0x447b('0xa8')],_0x4458d3=_0xee0d62[_0x447b('0x65')]['parent'];_0xee0d62['_execute']();const _0x369538=_0x4458d3['getAttribute'](_0x447b('0x94')),_0x22db49=_0xee0d62[_0x447b('0x9c')]['nodeAfter'];if(_0x41e2af){const _0x3c987b=_0x22db49[_0x447b('0x5d')](_0x447b('0x94')),_0x548da1=_0x4458d3[_0x447b('0x5d')](_0x447b('0x94'));_0x4458d3[_0x447b('0x29')](_0x447b('0x94'),_0x3c987b),_0x22db49[_0x447b('0x29')](_0x447b('0x94'),_0x548da1),this[_0x447b('0x22')][_0x447b('0xc1')](_0x4458d3[_0x447b('0x5d')](_0x447b('0x94')),{'userId':_0x39fbad}),this['_touched'][_0x447b('0xc1')](_0x22db49[_0x447b('0x5d')](_0x447b('0x91')),{'userId':_0x39fbad});}else{const _0x4d963a=this['_revisionId']++,_0x5b203b=this['_revisionId']++;_0x4458d3[_0x447b('0x29')]('vid_end',_0x4d963a),_0x22db49[_0x447b('0x29')](_0x447b('0x91'),_0x5b203b),_0x22db49['_setAttribute'](_0x447b('0x94'),_0x369538),this['_touched'][_0x447b('0xc1')](_0x4d963a,{'userId':_0x39fbad}),this[_0x447b('0x22')][_0x447b('0xc1')](_0x5b203b,{'userId':_0x39fbad});}}[_0x447b('0x39')](_0x557983){if(!_0x557983[_0x447b('0x49')])return;const _0x44c7e8=(_0x557983=this[_0x447b('0xe0')](_0x557983,this[_0x447b('0xc3')]))[_0x447b('0xae')]?_0x557983['oldRange'][_0x447b('0x2b')]:null,_0x3c85a8=_0x557983[_0x447b('0xa7')]?_0x557983[_0x447b('0xa7')][_0x447b('0x2b')]:null;_0x44c7e8&&this[_0x447b('0x18')][_0x447b('0x3a')](_0x557983['name']),_0x3c85a8&&this[_0x447b('0x18')][_0x447b('0xc1')](_0x557983[_0x447b('0xf5')],_0x557983[_0x447b('0xa7')][_0x447b('0x71')]());const _0x22af91=null===_0x557983['_authorId']?null:_0x557983[_0x447b('0x11')]||this['editor'][_0x447b('0x1d')][_0x447b('0x7a')](_0x447b('0xc8'))['me']['id'],_0x1240bd=_0x557983[_0x447b('0xf5')];if(!this[_0x447b('0x41')][_0x447b('0x42')](_0x1240bd))return void this[_0x447b('0x41')][_0x447b('0xc1')](_0x1240bd,{'range':_0x557983[_0x447b('0xae')],'userId':_0x22af91});const _0x45a140=this[_0x447b('0x41')][_0x447b('0x7a')](_0x1240bd),_0x50102c=_0x45a140[_0x447b('0x2e')],_0x11cc72=_0x557983[_0x447b('0xa7')];null==_0x50102c&&null==_0x11cc72||_0x50102c&&_0x11cc72&&_0x50102c['isEqual'](_0x11cc72)?this[_0x447b('0x41')][_0x447b('0x3a')](_0x557983[_0x447b('0xf5')]):_0x45a140['userId']=_0x22af91;}[_0x447b('0x1e')](_0x1e185d,_0x4200f4){this['_diffRoots'][_0x447b('0x42')](_0x1e185d[_0x447b('0x98')])?this[_0x447b('0xc3')][_0x447b('0x7a')](_0x1e185d[_0x447b('0x98')])[_0x447b('0xc')]=_0x1e185d['isAdd']:(this['_diffRoots'][_0x447b('0xc1')](_0x1e185d[_0x447b('0x98')],G(_0x1e185d[_0x447b('0x98')],!0x0)),this[_0x447b('0x56')]['set'](_0x1e185d[_0x447b('0x98')],{}),_0x4200f4&&this[_0x447b('0xd5')][_0x447b('0xc1')](_0x1e185d[_0x447b('0x98')],G(_0x1e185d[_0x447b('0x98')],!0x0)));const _0x20a2cc=null===_0x1e185d[_0x447b('0x11')]?null:_0x1e185d[_0x447b('0x11')]||this[_0x447b('0x1f')]['plugins'][_0x447b('0x7a')](_0x447b('0xc8'))['me']['id'],_0x19af1c=this[_0x447b('0xc4')][_0x447b('0x7a')](_0x1e185d[_0x447b('0x98')]);_0x19af1c&&_0x19af1c[_0x447b('0x68')]===_0x20a2cc?this['_touchedRoots'][_0x447b('0x3a')](_0x1e185d[_0x447b('0x98')]):this[_0x447b('0xc4')][_0x447b('0xc1')](_0x1e185d[_0x447b('0x98')],{'userId':_0x20a2cc,'isAttached':_0x1e185d[_0x447b('0x6a')]});}[_0x447b('0x54')](_0x5e4823){const _0x5db960=this[_0x447b('0x56')]['get'](_0x5e4823[_0x447b('0x2b')][_0x447b('0x98')]);null===_0x5e4823[_0x447b('0x8d')]?delete _0x5db960[_0x5e4823[_0x447b('0xe')]]:_0x5db960[_0x5e4823[_0x447b('0xe')]]=_0x5e4823['newValue'];}}function q(_0x2cdfcd){const _0x4fbf59=G(_0x2cdfcd[_0x447b('0x98')],_0x2cdfcd['isAttached']());for(const _0x2e66fe of _0x2cdfcd['getChildren']()){const _0x33d86e=_0x2e66fe[_0x447b('0x6e')](!0x0);_0x4fbf59['_appendChild'](_0x33d86e);}return _0x4fbf59;}function G(_0x436410,_0x534f90=!0x0){const _0x4210c1=new _0x182bce();return _0x4210c1[_0x447b('0x98')]=_0x436410,_0x4210c1[_0x447b('0xc')]=_0x534f90,_0x4210c1[_0x447b('0x1b')]=()=>_0x4210c1['_isAttached'],_0x4210c1;}function L(_0x23d5bf,_0x1173cb,_0x280cae){const _0x3b673f='elementEnd'==_0x23d5bf['type']?_0x280cae[_0x447b('0xcf')](_0x23d5bf[_0x447b('0xb4')],'end'):_0x280cae[_0x447b('0xa5')](_0x23d5bf['item']);return _0x280cae[_0x447b('0xd9')](_0x1173cb,_0x3b673f[_0x447b('0x25')],_0x3b673f['stickiness']);}function W(_0x359cab,_0x1053d6,_0x2c2ab9){const _0x47d607=_0x447b('0xb8')==_0x359cab[_0x447b('0xd7')]?_0x2c2ab9['createPositionAt'](_0x359cab['item'],0x0):_0x2c2ab9[_0x447b('0x62')](_0x359cab[_0x447b('0xb4')]);return _0x2c2ab9[_0x447b('0xd9')](_0x1053d6,_0x47d607[_0x447b('0x25')],_0x47d607['stickiness']);}