@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231029.0 → 0.0.0-nightly-20231031.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 _0x73fd=['_revisionId','remove','some','insertions','startsWith','getNodeByPath','_replaceEditorDataWithRevisionData','Initial\x20revision','_fixOperation','isAttached','newRange','_savedMetaData','upcast','_getPreviousFrom','_baseIdsRoots','nodeAfter','path','_touched','define','push','NEGATIVE_INFINITY','getOperation','_handleRootAttributeOperation','get','getOperations','length','_makeIdsRoot','getRevision','view','_handleMoveOperation','elementEnd','_applyOperations','markers','sendBufferedUpdates','afterInit','setSource','createRevision','key','_processRootBeforeSave','authorsIds','_fixRange','RealTimeCollaborationClient','childCount','fromEntries','_isInit','_touchedMarkers','getTransformedByOperation','creator','createPositionFromPath','useFillerType','markerToData','_baseRootsAttributes','document','editor','getRootNames','parent','getWalker','diffData','_setAttribute','rootName','_loadState','buildRevisionData','_loadRevisionData','reinsert','_lastFrom','sort','_handleOperation','init','Users','name','_fixPosition','revisionHistory.resumeUnsavedRevision','PENDING_ACTION_REVISION_HISTORY','elementStart','_getState','_startingVersion','getIndex','_authorId','fromVersion','finally','_diffRootsAttributes','_handleSplitOperation','revision','rootsAttributes','deletions','getData','baseVersion','for','then','keys','getRoot','$graveyard','_idsRoots','_getVidAttributeName','createRangeIn','currentRevision','getRevisionDocumentData','attributesAfter','addRoot','createPositionBefore','isEqual','size','revision-end','_touchedRoots','sourcePosition','_handleMergeOperation','text','deletion','vid','loadState','_revisionDataBuilder','previousPosition','_update','processor','RevisionTracker','reverse','PendingActions','$text','element','addRevisionData','stringify','getRevisionRootsAttributes','attributes','initial','_reset','detachRoot','includes','_copyMarkers','model','createPositionAt','getLatestVersion','reInit','start','shift','_execute','find','ready','getTime','getUser','addRevision','_getFromVersion','_initialRevisionId','isEnabled','stickiness','toView','isAdd','getCurrentRevisionId','requires','item','clone','repository','createdAt','toVersion','_generateTape','collaboration.channelId','howMany','_continueCurrentRevision','targetPosition','insert','position','_pendingAction','getMovedRangeStart','_prepareViewToSave','_clone','_lastTo','_calculateMetaData','marker','_isPendingUpdate','authors','_bufferUpdate','pluginName','userId','values','default','bind','_cloneOperation','clear','toData','updateRevisions','_baseRoots','vid_start','version','filter','revision-start','_diffRoots','children','getAttributes','splitPosition','roots','_startingRevisionId','adapter','createPositionAfter','delete','_setConversion','setRevisionData','RevisionsRepository','split','_handleMarkerOperation','from','newValue','toModel','_handleInsertOperation','_removeRevisionMarkers','vid_end','_removePendingAction','_makeRevision','type','insertion','_addPendingAction','_transformMarkers','string','_getViewJson','getAttribute','getRevisions','data-revision-','source','getAncestors','max','data','_makeModelFromViewString','_bufferedUpdates','addRootAttribute','documentFragment','creatorId','_removeMetaData','locale','offset','initialData','move','history','root','set','_handleRootOperation','trim','_saveMetaData','config','add','parse','conversion','_markers','offsetSize','slice','_createInitialRevision','_getBaseVids','getChild','getChildren','_insertChild','tableCell','merge','forEach','resolve','isReady','oldRange','_isAttached','end','map','range','_createFromRanges','attachChange','plugins','insertionPosition','saveRevision','_source','editing','has','_loadedStateData','revision:'];(function(_0x2937d4,_0x73fd16){const _0xde56c7=function(_0x141b0f){while(--_0x141b0f){_0x2937d4['push'](_0x2937d4['shift']());}};_0xde56c7(++_0x73fd16);}(_0x73fd,0x111));const _0xde56=function(_0x2937d4,_0x73fd16){_0x2937d4=_0x2937d4-0x0;let _0xde56c7=_0x73fd[_0x2937d4];return _0xde56c7;};import{Users as _0x5e0294}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x368f27,PendingActions as _0x2a1572}from'ckeditor5/src/core';import{logWarning as _0x3ae405,uid as _0x3bba7f}from'ckeditor5/src/utils';import{Position as _0x4604a3,Range as _0x927a0c,Element as _0x4332cf,DocumentFragment as _0x5ac983,ViewText as _0x4ff27b,ViewElement as _0x35bfc4,ViewContainerElement as _0x1146e9,ViewAttributeElement as _0x5c83a2,ViewEmptyElement as _0xb18041,ViewRawElement as _0x43dd33,ViewUIElement as _0x2ba385,ViewDocumentFragment as _0x3823ce}from'ckeditor5/src/engine';import _0x443790 from'./revisionsrepository';import{getTranslation as _0x1601b7}from'./utils/common-translations';import{cloneDeep as _0x4bd79b,isEqual as _0x3cb537}from'lodash-es';const B={'c':_0x1146e9,'a':_0x5c83a2,'e':_0xb18041,'r':_0x43dd33,'u':_0x2ba385};export default class l extends _0x368f27{static get[_0xde56('0xa4')](){return _0xde56('0x6c');}static get[_0xde56('0x8d')](){return[_0x5e0294,_0x443790,_0x2a1572];}constructor(_0x2e0e40){super(_0x2e0e40),this[_0xde56('0xb8')]=null,this[_0xde56('0x59')]=null,this[_0xde56('0x68')]=new H(this[_0xde56('0x2f')]),this[_0xde56('0x87')]=this[_0xde56('0x2f')]['config'][_0xde56('0x11')]('collaboration.channelId')||_0xde56('0x75'),this[_0xde56('0xd6')]=new Map(),this['_loadedStateData']=null;const _0x3df10a=_0x3bba7f();this[_0xde56('0x100')]={'history':this[_0xde56('0x2f')][_0xde56('0x7a')]['document']['history'],'getLatestVersion':()=>Promise[_0xde56('0xf4')](this[_0xde56('0x2f')][_0xde56('0x7a')][_0xde56('0x2e')][_0xde56('0xaf')]),'getCurrentRevisionId':()=>_0x3df10a},this[_0xde56('0xe1')]('isReady',!0x1),this[_0xde56('0xe1')](_0xde56('0x88'),!0x0),this['set'](_0xde56('0xa1'),!0x1),this[_0xde56('0x2f')][_0xde56('0xe5')][_0xde56('0xc')](_0xde56('0x41'),!0x0),this[_0xde56('0x2f')][_0xde56('0xe8')][_0xde56('0x51')](_0xde56('0x6'))['dataToMarker']({'view':'revision'});}[_0xde56('0x3d')](){this[_0xde56('0x90')]=this[_0xde56('0x2f')][_0xde56('0xfd')]['get'](_0xde56('0xbd')),this[_0xde56('0xbb')](),this['editor']['data']['on'](_0xde56('0x82'),()=>{const _0x2fa6fe=this[_0xde56('0x90')][_0xde56('0x15')](0x0),_0x417c6f=_0x2fa6fe&&null===_0x2fa6fe['creator']?_0x2fa6fe:null;if(this[_0xde56('0x96')]=!!_0x417c6f&&this[_0xde56('0x2f')][_0xde56('0xe5')][_0xde56('0x11')](_0xde56('0x41')),this[_0xde56('0x2f')][_0xde56('0xfd')]['has'](_0xde56('0x23'))){const _0x193c1e=this[_0xde56('0x100')]['getCurrentRevisionId'](),_0x12b05d=this['repository'][_0xde56('0x15')](_0x193c1e);if(_0x12b05d)this[_0xde56('0x45')]=_0x12b05d[_0xde56('0x48')],this['_continueCurrentRevision']=!0x1;else{const _0x21be33=this[_0xde56('0x100')][_0xde56('0xdf')]['_operations']['find'](_0x27da08=>!_0x27da08[_0xde56('0x26')]),_0x388e74=_0x21be33?_0x21be33[_0xde56('0x50')]:this[_0xde56('0x100')]['history']['version'];_0x2fa6fe?(_0x2fa6fe[_0xde56('0x92')]<_0x388e74&&_0x2fa6fe[_0xde56('0x6a')]({'toVersion':_0x388e74}),this[_0xde56('0x96')]?(this[_0xde56('0x100')][_0xde56('0x8c')]=()=>_0x417c6f['id'],this[_0xde56('0x45')]=_0x417c6f[_0xde56('0x48')]):(this[_0xde56('0x45')]=_0x2fa6fe['toVersion'],this['_continueCurrentRevision']=!0x1)):(this[_0xde56('0x45')]=_0x388e74,this['_continueCurrentRevision']=!0x1);}}else _0x417c6f&&(this[_0xde56('0x2f')]['model'][_0xde56('0x2e')][_0xde56('0xdf')]['version']=Math[_0xde56('0xd3')](_0x417c6f[_0xde56('0x92')],this[_0xde56('0x2f')][_0xde56('0x7a')]['document']['history'][_0xde56('0xaf')]),_0x417c6f[_0xde56('0x48')]===_0x417c6f[_0xde56('0x92')]?(0x0!==_0x417c6f[_0xde56('0x48')]&&(this[_0xde56('0x100')][_0xde56('0x8c')]=()=>_0x417c6f['id']),this['_continueCurrentRevision']=!0x1):this[_0xde56('0x96')]&&(this['_source'][_0xde56('0x8c')]=()=>_0x417c6f['id'],this[_0xde56('0x45')]=_0x417c6f[_0xde56('0x48')])),this['_continueCurrentRevision']||(this[_0xde56('0x45')]=this['editor'][_0xde56('0x7a')][_0xde56('0x2e')]['version']);this[_0xde56('0x68')][_0xde56('0x3d')](this[_0xde56('0x100')][_0xde56('0xdf')]),this[_0xde56('0xec')](this['_startingVersion']),this['_createCurrentRevision'](this[_0xde56('0x45')]),this[_0xde56('0xb8')]&&this['sendBufferedUpdates']();}),this[_0xde56('0xa8')](_0xde56('0xf5'))['to'](this,_0xde56('0xa1'),_0x245de9=>!_0x245de9);}async[_0xde56('0x1c')](){if(this[_0xde56('0x90')][_0xde56('0x13')]>0x0){const _0x511ef2=this['repository'][_0xde56('0x15')](0x0),_0x5c018b=await this[_0xde56('0x5a')](_0x511ef2),_0x5a5c2a=await this[_0xde56('0x73')](_0x511ef2);this[_0xde56('0x0')](_0x5c018b,_0x5a5c2a);}}[_0xde56('0x1d')](_0x4629ec){this[_0xde56('0x100')]=_0x4629ec;}async['update'](){const _0x1b4fc1=await this[_0xde56('0x100')][_0xde56('0x7c')]();if(_0x1b4fc1>this[_0xde56('0x59')][_0xde56('0x92')]){await this[_0xde56('0x36')]();const _0x100dd8=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1b4fc1});_0x100dd8[_0xde56('0xa2')]=_0x100dd8[_0xde56('0x21')][_0xde56('0xf9')](_0x3645cb=>this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')]('Users')[_0xde56('0x84')](_0x3645cb)),this[_0xde56('0x59')][_0xde56('0x6a')](_0x100dd8);}}async[_0xde56('0x36')](){this[_0xde56('0x96')]&&!this['_loadedStateData']&&(await this[_0xde56('0x38')](this[_0xde56('0x59')]),this[_0xde56('0x68')]['loadState'](this[_0xde56('0x59')]),this[_0xde56('0x103')]={'fromVersion':this['currentRevision'][_0xde56('0x48')],'authors':this['currentRevision'][_0xde56('0xa2')][_0xde56('0xeb')]()});}async[_0xde56('0xff')](_0x364470={},_0x77935c=null){const _0x15c46e=[];await this[_0xde56('0x36')](),this[_0xde56('0x96')]=!0x1,_0x77935c>this[_0xde56('0x59')][_0xde56('0x92')]&&(_0x77935c=null),null===_0x77935c&&(_0x77935c=await this[_0xde56('0x100')][_0xde56('0x7c')]());const _0x39ab89=this[_0xde56('0x86')](_0x77935c),_0x4fe7d9=this['buildRevisionData']({'from':_0x39ab89,'to':_0x77935c});if(this['currentRevision'][_0xde56('0x92')]<_0x77935c){const _0x13cff5=this[_0xde56('0x37')]({'revision':this[_0xde56('0x59')],'from':_0x77935c,'to':_0x77935c});_0x13cff5[_0xde56('0xa2')]=[],_0x13cff5[_0xde56('0x21')]=[],_0x13cff5['id']=this['currentRevision']['id'],this[_0xde56('0x59')][_0xde56('0x6a')](_0x13cff5,!0x0),delete _0x13cff5[_0xde56('0xa2')],_0x15c46e[_0xde56('0xd')](_0x13cff5);}_0x364470[_0xde56('0xd9')]=this['editor'][_0xde56('0xfd')]['get'](_0xde56('0x3e'))['me']['id'],_0x364470['name']=_0x364470['name']||null,_0x364470['id']=_0x364470['id']||_0x3bba7f(),_0x364470={..._0x364470,..._0x4fe7d9};const _0x5f0e91=this[_0xde56('0x71')](_0x364470);_0x15c46e['push'](_0x364470);const _0x1b4376=this[_0xde56('0x90')][_0xde56('0x46')](_0x5f0e91);if(0x0!==_0x1b4376){const _0x44af18=this['repository'][_0xde56('0x15')](_0x1b4376-0x1);if(_0x44af18[_0xde56('0x48')]!==_0x77935c){const _0x3f9321=this[_0xde56('0x68')]['getData'](_0x77935c,_0x44af18[_0xde56('0x92')]),_0x5910e8={'id':_0x44af18['id'],'diffData':_0x3f9321[_0xde56('0x33')],'authorsIds':_0x3f9321[_0xde56('0x21')],'authors':_0x3f9321[_0xde56('0x21')][_0xde56('0xf9')](_0x17638c=>this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')]('Users')['getUser'](_0x17638c)),'fromVersion':_0x77935c};_0x44af18===this['currentRevision']&&(_0x5910e8['createdAt']=new Date(_0x364470[_0xde56('0x91')][_0xde56('0x83')]()+0xa)),_0x44af18[_0xde56('0x6a')](_0x5910e8,!0x0),delete _0x5910e8[_0xde56('0xa2')],_0x15c46e[_0xde56('0xd')](_0x5910e8);}}if(this[_0xde56('0xb8')]){for(const _0x4e58ab of _0x15c46e)this[_0xde56('0xa3')](_0x4e58ab['id'],_0x4e58ab,!0x0);this[_0xde56('0x1b')]();}return _0x5f0e91;}['addRevisionData'](_0x1398f5){const _0x28fc2c=this[_0xde56('0x90')][_0xde56('0x1e')](_0x1398f5);return this[_0xde56('0xb8')]&&_0x28fc2c['on']('_update',(_0x14efab,_0x5e7306,_0x182f84)=>{_0x182f84||(this[_0xde56('0xa3')](_0x5e7306['id'],_0x5e7306,!0x0),this[_0xde56('0x1b')]());}),this['repository'][_0xde56('0x85')](_0x28fc2c,this['_findInsertionIndex'](_0x28fc2c)),_0x28fc2c;}async[_0xde56('0x5a')](_0x5da642){await this[_0xde56('0x38')](_0x5da642);const _0x2f177d={};for(const _0x5e7721 in _0x5da642[_0xde56('0x33')]){if(_0x5da642[_0xde56('0x33')][_0x5e7721]['attachChange']&&!_0x5da642['diffData'][_0x5e7721][_0xde56('0xfc')][_0xde56('0x3')])continue;const _0x470279=this[_0xde56('0xc4')](JSON[_0xde56('0xe7')](_0x5da642[_0xde56('0x33')][_0x5e7721][_0xde56('0x108')])),_0x2f7e0a=this[_0xde56('0x2f')][_0xde56('0x101')]['view'][_0xde56('0x2e')],_0x3b4ac9=new _0x3823ce(_0x2f7e0a,_0x470279[_0xde56('0xf9')](_0x52559d=>J(_0x52559d,this[_0xde56('0x2f')])));this['editor'][_0xde56('0xd4')][_0xde56('0x6b')][_0xde56('0x2b')]('marked'),_0x2f177d[_0x5e7721]=this[_0xde56('0x2f')]['data']['processor'][_0xde56('0xab')](_0x3b4ac9),this[_0xde56('0x2f')]['data'][_0xde56('0x6b')][_0xde56('0x2b')](_0xde56('0xa7'));}return _0x2f177d;}async[_0xde56('0x73')](_0x5420b5){await this[_0xde56('0x38')](_0x5420b5);const _0x367f26={};for(const _0x571c1d in _0x5420b5['diffData'])_0x5420b5[_0xde56('0x33')][_0x571c1d]['attachChange']&&!_0x5420b5[_0xde56('0x33')][_0x571c1d][_0xde56('0xfc')]['isAttached']||(_0x367f26[_0x571c1d]=_0x5420b5['diffData'][_0x571c1d][_0xde56('0x5b')]||{});return _0x367f26;}[_0xde56('0x1b')](){if(0x0===this[_0xde56('0xd6')][_0xde56('0x5f')])return;if(this['_isPendingUpdate'])return;let _0x30f970=Array[_0xde56('0xc0')](this[_0xde56('0xd6')][_0xde56('0xa6')]());this[_0xde56('0xd6')][_0xde56('0xaa')]();for(let _0x3597eb=0x0;_0x3597eb<_0x30f970['length'];_0x3597eb++){const _0x47a4ef=_0x30f970[_0x3597eb];let _0x185121=!0x1;for(const _0x1c2881 of Object[_0xde56('0x53')](_0x47a4ef))void 0x0===_0x47a4ef[_0x1c2881]?delete _0x47a4ef[_0x1c2881]:'id'!==_0x1c2881&&(_0x185121=!0x0);_0x185121||(_0x30f970[_0x3597eb]=null);}if(_0x30f970=_0x30f970[_0xde56('0xb0')](_0x424eb2=>null!==_0x424eb2),!_0x30f970[_0xde56('0x13')])return;for(let _0x2886cf=0x0;_0x2886cf<_0x30f970[_0xde56('0x13')];_0x2886cf++){const _0x467e52=_0x30f970[_0x2886cf];void 0x0!==_0x467e52['fromVersion']&&void 0x0===_0x467e52[_0xde56('0x92')]&&(_0x467e52[_0xde56('0x92')]=this[_0xde56('0x90')][_0xde56('0x15')](_0x467e52['id'])['toVersion']),void 0x0!==_0x467e52[_0xde56('0x92')]&&void 0x0===_0x467e52[_0xde56('0x48')]&&(_0x467e52[_0xde56('0x48')]=this[_0xde56('0x90')][_0xde56('0x15')](_0x467e52['id'])['fromVersion']);}const _0x423df7=this[_0xde56('0x2f')][_0xde56('0xe5')][_0xde56('0x11')](_0xde56('0x94'));this['_isPendingUpdate']=!0x0,this[_0xde56('0xca')](),this[_0xde56('0xb8')][_0xde56('0xac')](_0x30f970,_0x423df7)[_0xde56('0x49')](()=>{this['_isPendingUpdate']=!0x1;})[_0xde56('0x52')](_0x1a4ae6=>{if(_0x1a4ae6)for(const _0x1afeee of _0x1a4ae6)this[_0xde56('0xbc')]({'id':_0x1afeee['id'],'createdAt':_0x1afeee[_0xde56('0x91')]});this[_0xde56('0xc6')](),this[_0xde56('0x1b')]();});}['_replaceEditorDataWithRevisionData'](_0xd31fb8,_0x25f839){let _0x5dd055=this[_0xde56('0x2f')][_0xde56('0xe5')][_0xde56('0x11')](_0xde56('0xdd')),_0x84b605=this[_0xde56('0x2f')]['config'][_0xde56('0x11')](_0xde56('0x4d'));if(void 0x0===_0x5dd055){_0x5dd055={};for(const _0x5603e2 of this[_0xde56('0x2f')][_0xde56('0x7a')][_0xde56('0x2e')][_0xde56('0x30')]())_0x5dd055[_0x5603e2]='';}if(_0xde56('0xcc')==typeof _0x5dd055&&(_0x5dd055={'main':_0x5dd055}),void 0x0===_0x84b605){_0x84b605={};for(const _0x2d7fac of this[_0xde56('0x2f')]['model'][_0xde56('0x2e')][_0xde56('0x30')]())_0x84b605[_0x2d7fac]={};}let _0x42b4a4=!0x1;const _0x56153f=Object[_0xde56('0x53')](_0x5dd055),_0x50214d=Object[_0xde56('0x53')](_0xd31fb8);for(const _0x4926d9 of _0x56153f){if(_0x5dd055[_0x4926d9]!==_0xd31fb8[_0x4926d9]&&''!==_0x5dd055[_0x4926d9][_0xde56('0xe3')]()){_0x42b4a4=!0x0;break;}if(!_0x3cb537(_0x84b605[_0x4926d9],_0x25f839[_0x4926d9])&&Object[_0xde56('0x53')](_0x84b605[_0x4926d9])[_0xde56('0x13')]>0x0){_0x42b4a4=!0x0;break;}}_0x42b4a4||(_0x42b4a4=_0x50214d[_0xde56('0x107')](_0x127d79=>!this[_0xde56('0x2f')]['model'][_0xde56('0x2e')][_0xde56('0x54')](_0x127d79))),_0x42b4a4&&_0x3ae405('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5dd055,'editorRootsAttributes':_0x84b605,'revisionData':_0xd31fb8,'revisionRootsAttributes':_0x25f839}),this[_0xde56('0x2f')]['config'][_0xde56('0xe1')](_0xde56('0xdd'),_0xd31fb8),this['editor'][_0xde56('0xe5')][_0xde56('0xe1')](_0xde56('0x4d'),_0x25f839);}['_addPendingAction'](){if(!this[_0xde56('0x9a')]){const _0x1f285d=this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')](_0xde56('0x6e'));this[_0xde56('0x9a')]=_0x1f285d[_0xde56('0xe6')](_0x1601b7(this[_0xde56('0x2f')][_0xde56('0xdb')],_0xde56('0x42')));}}[_0xde56('0xc6')](){this[_0xde56('0x9a')]&&(this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')]('PendingActions')['remove'](this[_0xde56('0x9a')]),this[_0xde56('0x9a')]=null);}['_findInsertionIndex'](_0x1254c1){const _0x209958=this['repository'][_0xde56('0xcf')]();_0x209958[_0xde56('0x6d')]();let _0x527f5c=0x0;for(;_0x527f5c<_0x209958[_0xde56('0x13')];){const _0x1d1e53=_0x209958[_0x527f5c];if(_0x1d1e53===this[_0xde56('0x59')]){_0x527f5c++;continue;}if(_0x1d1e53['id']===this[_0xde56('0x87')])break;const _0x17cf03=_0x1254c1[_0xde56('0x92')]-_0x1d1e53[_0xde56('0x92')]||_0x1254c1[_0xde56('0x48')]-_0x1d1e53[_0xde56('0x48')];if(_0x17cf03>0x0)break;if(_0x17cf03<0x0)_0x527f5c++;else{if(!_0x1254c1[_0xde56('0x29')]&&_0x1d1e53[_0xde56('0x29')])break;if(_0x1d1e53[_0xde56('0x29')]||!_0x1254c1[_0xde56('0x29')]){if(_0x1254c1[_0xde56('0x91')]>_0x1d1e53[_0xde56('0x91')])break;_0x527f5c++;}else _0x527f5c++;}}return _0x527f5c;}['setRevisionData'](_0x1b5f02){const _0x1bb1c7=this['repository']['getRevision'](_0x1b5f02['id']);if(_0x1b5f02[_0xde56('0x91')]&&(_0x1b5f02[_0xde56('0x91')]=new Date(_0x1b5f02[_0xde56('0x91')])),_0x1b5f02[_0xde56('0x21')]){const _0x42aeb9=this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')](_0xde56('0x3e'));_0x1b5f02[_0xde56('0xa2')]=_0x1b5f02[_0xde56('0x21')][_0xde56('0xf9')](_0x57d6d9=>_0x42aeb9[_0xde56('0x84')](_0x57d6d9));}_0x1bb1c7[_0xde56('0x6a')](_0x1b5f02,!0x0);}[_0xde56('0x37')]({revision:_0x1bdcc4=null,from:_0x25fe8a=null,to:_0x3a2634=null}){_0x25fe8a=null!==_0x25fe8a?_0x25fe8a:_0x1bdcc4['fromVersion'],_0x3a2634=null!==_0x3a2634?_0x3a2634:_0x1bdcc4[_0xde56('0x92')];const _0x190563=this['_revisionDataBuilder'][_0xde56('0x4f')](_0x25fe8a,_0x3a2634),_0x267fdd={'diffData':_0x190563['diffData'],'authorsIds':_0x190563['authorsIds'],'fromVersion':_0x25fe8a,'toVersion':_0x3a2634};if(!_0x1bdcc4||_0x3a2634!==_0x1bdcc4[_0xde56('0x92')]){const _0x34b4fd=_0x3a2634-0x1,_0x2276dc=this[_0xde56('0x100')][_0xde56('0xdf')][_0xde56('0xf')](_0x34b4fd);_0x267fdd['createdAt']=_0x2276dc&&_0x2276dc[_0xde56('0x91')]||new Date();}if(this['_loadedStateData']&&_0x25fe8a===this['_loadedStateData']['fromVersion'])for(const _0x1e96e5 of this[_0xde56('0x103')][_0xde56('0xa2')])_0x267fdd[_0xde56('0x21')][_0xde56('0x78')](_0x1e96e5['id'])||_0x267fdd['authorsIds'][_0xde56('0xd')](_0x1e96e5['id']);return _0x267fdd;}[_0xde56('0x38')](_0x59fc0f){if(!_0x59fc0f||_0x59fc0f[_0xde56('0x33')])return Promise[_0xde56('0xf4')]();{const _0x4068b0=this[_0xde56('0x2f')]['config']['get'](_0xde56('0x94'));return this[_0xde56('0xb8')][_0xde56('0x15')]({'channelId':_0x4068b0,'revisionId':_0x59fc0f['id']})[_0xde56('0x52')](_0x3495a1=>{_0x59fc0f[_0xde56('0x33')]=_0x3495a1['diffData'];});}}['_bufferUpdate'](_0x5345bd,_0x4bbc30,_0x1e100a){if(this[_0xde56('0xd6')][_0xde56('0x102')](_0x5345bd)){const _0x301b52=this[_0xde56('0xd6')]['get'](_0x5345bd);_0x4bbc30=_0x1e100a?{..._0x301b52,..._0x4bbc30}:{..._0x4bbc30,..._0x301b52};}this['_bufferedUpdates'][_0xde56('0xe1')](_0x5345bd,_0x4bbc30);}[_0xde56('0x86')](_0x1c4fa1){const _0x8b2a4f=this[_0xde56('0x90')][_0xde56('0xcf')]();_0x8b2a4f[_0xde56('0x6d')](),_0x8b2a4f[_0xde56('0x7f')]();const _0x12a7d3=_0x8b2a4f[_0xde56('0x81')](_0x59255a=>_0x59255a[_0xde56('0x92')]<=_0x1c4fa1)[_0xde56('0x92')];return _0x12a7d3<this['_startingVersion']?this[_0xde56('0x45')]:_0x12a7d3;}[_0xde56('0xec')](_0x4c8183){const _0x82a3cf=this['repository'][_0xde56('0x15')](this[_0xde56('0x90')][_0xde56('0x13')]-0x1);if(_0x82a3cf)this[_0xde56('0x87')]=_0x82a3cf['id'];else{const _0x30b81d=!this[_0xde56('0x2f')][_0xde56('0x7a')][_0xde56('0x2e')][_0xde56('0xb6')]['find'](_0x3f2294=>this[_0xde56('0x2f')][_0xde56('0x7a')]['hasContent'](_0x3f2294)),_0x3f0dd0=this[_0xde56('0x2f')][_0xde56('0xfd')]['get']('Users')['me']['id'],_0x83be3b=_0x1601b7(this[_0xde56('0x2f')][_0xde56('0xdb')],_0x30b81d?'Empty\x20document':_0xde56('0x1'));this['_makeRevision']({'from':_0x4c8183,'to':_0x4c8183,'id':this[_0xde56('0x87')],'name':_0x83be3b,'creatorId':_0x3f0dd0});}}['_createCurrentRevision'](_0x4c450b){const _0x378722=this[_0xde56('0x100')]['getCurrentRevisionId']();this[_0xde56('0x59')]=this[_0xde56('0x90')][_0xde56('0x15')](_0x378722),this[_0xde56('0x59')]||(this[_0xde56('0x59')]=this[_0xde56('0xc7')]({'from':_0x4c450b,'to':_0x4c450b,'id':_0x378722,'name':'','creatorId':null}));}[_0xde56('0xc7')]({name:_0x1d1f6e,from:_0x4d69e9,to:_0x65ec96,creatorId:_0x3655e9,id:_0x69c760}){const _0x2fc309=this[_0xde56('0x37')]({'from':_0x4d69e9,'to':_0x65ec96});_0x2fc309[_0xde56('0x3f')]=_0x1d1f6e,_0x2fc309[_0xde56('0xd9')]=_0x3655e9,_0x2fc309['id']=_0x69c760;const _0x21d6d7=this[_0xde56('0x71')](_0x2fc309);return this[_0xde56('0xb8')]&&this[_0xde56('0xa3')](_0x2fc309['id'],_0x2fc309,!0x0),_0x21d6d7;}['_setConversion'](){this[_0xde56('0x2f')][_0xde56('0xe8')][_0xde56('0x51')]('dataDowncast')[_0xde56('0x2c')]({'model':_0xde56('0x4c')});}[_0xde56('0xc4')](_0x5509b4){return(_0x5509b4=_0x5509b4[_0xde56('0xb0')](_0x1a2062=>!_0x1a2062[_0xde56('0x3f')]||_0xde56('0xb1')!==_0x1a2062[_0xde56('0x3f')]&&_0xde56('0x60')!==_0x1a2062[_0xde56('0x3f')]))[_0xde56('0xf3')](_0x1400ec=>{_0xde56('0xcc')!=typeof _0x1400ec&&(_0x1400ec['children']=this[_0xde56('0xc4')](_0x1400ec[_0xde56('0xb3')]),_0x1400ec[_0xde56('0x74')]=_0x1400ec[_0xde56('0x74')][_0xde56('0xb0')](_0x20ded8=>!_0x20ded8[0x0][_0xde56('0x109')](_0xde56('0xd0'))));}),_0x5509b4;}}function J(_0x41aa39,_0x22390b){const _0x407e4f=_0x22390b[_0xde56('0x101')]['view'][_0xde56('0x2e')];if(_0xde56('0xcc')==typeof _0x41aa39)return new _0x4ff27b(_0x407e4f,_0x41aa39);{const _0x36e6ee=_0x41aa39[_0xde56('0xb3')]['map'](_0x570130=>J(_0x570130,_0x22390b));return new(B[_0x41aa39[(_0xde56('0xc8'))]]||_0x35bfc4)(_0x407e4f,_0x41aa39[_0xde56('0x3f')],_0x41aa39[_0xde56('0x74')],_0x36e6ee);}}class H{constructor(_0x5e9046){this[_0xde56('0x2f')]=_0x5e9046,this[_0xde56('0x5')]=new Map(),this[_0xde56('0x3a')]=-0x1,this[_0xde56('0x9e')]=-0x1,this[_0xde56('0xe9')]=new Map(),this[_0xde56('0xb2')]=new Map(),this[_0xde56('0x4a')]=new Map(),this[_0xde56('0xad')]=new Map(),this['_baseRootsAttributes']=new Map(),this[_0xde56('0x56')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0xde56('0xb')]=new Map(),this[_0xde56('0x27')]=new Map(),this[_0xde56('0x61')]=new Map(),this['_revisionId']=0x1;}[_0xde56('0x3d')](_0x3738cb){this[_0xde56('0xd1')]=_0x3738cb;const _0x50058d=new Map(),_0x18ba21=new Map(),_0x5696a9=this[_0xde56('0x2f')][_0xde56('0x7a')][_0xde56('0x2e')][_0xde56('0xb6')][_0xde56('0xf9')](_0xbb2b74=>_0xbb2b74[_0xde56('0x35')]);for(const _0x1db9d4 of _0x5696a9){const _0x2d9d95=this[_0xde56('0x2f')]['model'][_0xde56('0x2e')]['getRoot'](_0x1db9d4),_0x224a40=q(_0x2d9d95);_0x50058d[_0xde56('0xe1')](_0x1db9d4,_0x224a40),_0x18ba21[_0xde56('0xe1')](_0x1db9d4,Object[_0xde56('0x25')](_0x2d9d95[_0xde56('0xb4')]()));}const _0x1ab1ed=Array[_0xde56('0xc0')](this[_0xde56('0x2f')][_0xde56('0x7a')][_0xde56('0x1a')])[_0xde56('0xf9')](_0x4fe6c9=>[_0x4fe6c9['name'],_0x4fe6c9['getRange']()]),_0x5c42b9=this[_0xde56('0xd1')][_0xde56('0xaf')];this['_saveMetaData'](_0x5c42b9,_0x50058d,_0x1ab1ed,_0x18ba21),this[_0xde56('0xb7')]=this[_0xde56('0x105')];const _0x2a938b=new Map(),_0x18bbcb=new Map();for(const _0x5a2fe2 of _0x5696a9){const _0x164f99=G(_0x5a2fe2);_0x2a938b['set'](_0x5a2fe2,_0x164f99),_0x18bbcb[_0xde56('0xe1')](_0x5a2fe2,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2a938b,[],_0x18bbcb);}[_0xde56('0x4f')](_0x46a5a6,_0x31e09d){if(this[_0xde56('0x3a')]===_0x46a5a6&&this[_0xde56('0x9e')]<=_0x31e09d)this[_0xde56('0x5')][_0xde56('0x5f')]>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this[_0xde56('0x9e')],_0x31e09d,!0x0);else{if(!this[_0xde56('0x5')][_0xde56('0x102')](_0x46a5a6)){const _0x36d34b=this[_0xde56('0x7')](_0x46a5a6);this['_calculateMetaData'](_0x36d34b,_0x46a5a6,!0x1);}this[_0xde56('0x9f')](_0x46a5a6,_0x31e09d,!0x0);}return this[_0xde56('0x3a')]=_0x46a5a6,this[_0xde56('0x9e')]=_0x31e09d,this[_0xde56('0x44')]();}[_0xde56('0x67')](_0x4fa9d8){this[_0xde56('0x76')](),this[_0xde56('0x3a')]=_0x4fa9d8[_0xde56('0x48')],this[_0xde56('0x9e')]=_0x4fa9d8[_0xde56('0x92')];for(const _0x69a97d in _0x4fa9d8[_0xde56('0x33')]){const _0xc4b5ae=_0x4fa9d8['diffData'][_0x69a97d][_0xde56('0xfc')],_0x4e8950=_0x4bd79b(_0x4fa9d8[_0xde56('0x33')][_0x69a97d]['attributesBefore'])||{},_0x1e2d86=this[_0xde56('0xd5')](_0x4fa9d8[_0xde56('0x33')][_0x69a97d][_0xde56('0x4e')]);_0x1e2d86[_0xde56('0x35')]=_0x69a97d,_0x1e2d86[_0xde56('0xf7')]=!_0xc4b5ae||!_0xc4b5ae[_0xde56('0x3')],_0x1e2d86[_0xde56('0x3')]=()=>_0x1e2d86[_0xde56('0xf7')],this[_0xde56('0xad')]['set'](_0x69a97d,_0x1e2d86),this['_baseRootsAttributes'][_0xde56('0xe1')](_0x69a97d,_0x4e8950),_0xc4b5ae&&this[_0xde56('0x61')][_0xde56('0xe1')](_0x69a97d,_0xc4b5ae);const _0x7d6c84=this[_0xde56('0x14')](_0x1e2d86);this[_0xde56('0x8')][_0xde56('0xe1')](_0x69a97d,_0x7d6c84);for(const [_0xa5c350,_0x43e531]of _0x1e2d86[_0xde56('0x1a')]){if(!_0xa5c350[_0xde56('0x109')](_0xde56('0x104')))continue;const _0x46a947=_0xa5c350[_0xde56('0xbe')](':')[0x2];for(const _0xa0ea25 of _0x43e531[_0xde56('0x32')]({'singleCharacters':!0x0})){const _0x117ae4=this[_0xde56('0x57')](_0xa0ea25),_0x24c550=_0xde56('0x18')==_0xa0ea25[_0xde56('0xc8')]?_0xa0ea25[_0xde56('0x69')][_0xde56('0xa')]['slice'](0x0,-0x1):_0xa0ea25[_0xde56('0x69')][_0xde56('0xa')],_0xe0715e=_0x7d6c84[_0xde56('0x10a')](_0x24c550)[_0xde56('0xce')](_0x117ae4);this['_touched'][_0xde56('0xe1')](_0xe0715e,{'userId':_0x46a947});}}}this[_0xde56('0xb7')]=this[_0xde56('0x105')];const _0x5ffd55=[...Array(this[_0xde56('0x105')])[_0xde56('0x53')]()][_0xde56('0xeb')](0x1)[_0xde56('0xb0')](_0x4cb27d=>!this[_0xde56('0xb')]['has'](_0x4cb27d));let _0x342a58=0x0;const _0x405f24=new Map();for(const _0x3e1494 in _0x4fa9d8['diffData']){const _0x35c971=_0x4fa9d8['diffData'][_0x3e1494][_0xde56('0xfc')],_0x5ea663=_0x4bd79b(_0x4fa9d8['diffData'][_0x3e1494][_0xde56('0x5b')])||{},_0x32fa2a=this[_0xde56('0xd5')](_0x4fa9d8['diffData'][_0x3e1494][_0xde56('0x108')]);_0x32fa2a[_0xde56('0x35')]=_0x3e1494,_0x32fa2a[_0xde56('0xf7')]=!_0x35c971||_0x35c971['isAttached'],_0x32fa2a['isAttached']=()=>_0x32fa2a['_isAttached'],this[_0xde56('0xb2')]['set'](_0x3e1494,_0x32fa2a),this[_0xde56('0x4a')]['set'](_0x3e1494,_0x5ea663);const _0x3999e2=this[_0xde56('0x14')](_0x32fa2a,Number[_0xde56('0xe')]);this['_idsRoots']['set'](_0x3e1494,_0x3999e2),_0x405f24['set'](_0x3e1494,_0x32fa2a[_0xde56('0x3')]()?_0x5ea663:{});for(const [_0x1220cc,_0x4ad81d]of _0x32fa2a['markers']){if(!_0x1220cc[_0xde56('0x109')]('revision:'))continue;const _0x22fcc8=_0x1220cc['split'](':')[0x2];for(const _0x2c8404 of _0x4ad81d[_0xde56('0x32')]({'singleCharacters':!0x0})){const _0x42a194=this[_0xde56('0x57')](_0x2c8404),_0xbb4b19=this[_0xde56('0x105')]++,_0x1988f5='elementEnd'==_0x2c8404[_0xde56('0xc8')]?_0x2c8404[_0xde56('0x69')][_0xde56('0xa')][_0xde56('0xeb')](0x0,-0x1):_0x2c8404['previousPosition'][_0xde56('0xa')];_0x3999e2['getNodeByPath'](_0x1988f5)[_0xde56('0x34')](_0x42a194,_0xbb4b19),this[_0xde56('0xb')][_0xde56('0xe1')](_0xbb4b19,{'userId':_0x22fcc8});}}for(const _0x2cfe8e of this['editor'][_0xde56('0x7a')][_0xde56('0x58')](_0x32fa2a)['getWalker']({'singleCharacters':!0x0})){const _0x2baafb=this[_0xde56('0x57')](_0x2cfe8e),_0x3b35ae='elementEnd'==_0x2cfe8e[_0xde56('0xc8')]?_0x2cfe8e['previousPosition'][_0xde56('0xa')][_0xde56('0xeb')](0x0,-0x1):_0x2cfe8e[_0xde56('0x69')][_0xde56('0xa')],_0x14e613=_0x3999e2[_0xde56('0x10a')](_0x3b35ae);_0x14e613['getAttribute'](_0x2baafb)>0x0||_0x14e613[_0xde56('0x34')](_0x2baafb,_0x5ffd55[_0x342a58++]);}for(const [_0x48588a,_0x4d9d00]of _0x32fa2a[_0xde56('0x1a')])_0x48588a[_0xde56('0x109')]('revision:')||this['_markers'][_0xde56('0xe1')](_0x48588a,_0x4d9d00);}const _0xf6d8b6=G(_0xde56('0x55'));this[_0xde56('0xad')][_0xde56('0xe1')](_0xde56('0x55'),_0xf6d8b6),this[_0xde56('0x8')][_0xde56('0xe1')](_0xde56('0x55'),this[_0xde56('0x14')](_0xf6d8b6,0x1));const _0x443fce=G(_0xde56('0x55'));this['_diffRoots'][_0xde56('0xe1')](_0xde56('0x55'),_0x443fce),this['_idsRoots'][_0xde56('0xe1')](_0xde56('0x55'),this[_0xde56('0x14')](_0x443fce,0x1));const _0x1bd1cd=Array[_0xde56('0xc0')](this['_diffRoots'])['map'](([_0x55d51e,_0x5859fa])=>[_0x55d51e,q(_0x5859fa)]);this['_saveMetaData'](this['_lastTo'],_0x1bd1cd,this[_0xde56('0xe9')],_0x405f24);}[_0xde56('0xd5')](_0x414d18){const _0x15c4ab=JSON[_0xde56('0xe7')](_0x414d18),_0x2cfd3f=this[_0xde56('0x2f')][_0xde56('0x101')][_0xde56('0x16')][_0xde56('0x2e')],_0x5ec648=new _0x3823ce(_0x2cfd3f,_0x15c4ab['map'](_0x1a26f8=>J(_0x1a26f8,this[_0xde56('0x2f')])));return this[_0xde56('0x2f')]['data'][_0xde56('0xc2')](_0x5ec648);}[_0xde56('0xe4')](_0x41cf01,_0x151323,_0x2183e1,_0x543ee9){const _0x426b96=new Map(_0x151323),_0x53e13e=new Map(_0x4bd79b(_0x543ee9)),_0x1e5df6=new Map();for(const [_0x56a3ec,_0x20540c]of _0x2183e1)_0x1e5df6[_0xde56('0xe1')](_0x56a3ec,{'start':_0x20540c[_0xde56('0x7e')][_0xde56('0x8f')](),'end':_0x20540c[_0xde56('0xf8')][_0xde56('0x8f')](),'rootName':_0x20540c[_0xde56('0xe0')][_0xde56('0x35')]});this[_0xde56('0x5')]['set'](_0x41cf01,{'roots':_0x426b96,'markers':_0x1e5df6,'rootsAttributes':_0x53e13e});}[_0xde56('0xda')](_0x45321e){this[_0xde56('0x5')]['delete'](_0x45321e);}[_0xde56('0x7d')](){this['_reset'](),this[_0xde56('0x3a')]=-0x1,this[_0xde56('0x9e')]=-0x1,this[_0xde56('0x5')]['clear'](),this[_0xde56('0x3d')](this[_0xde56('0xd1')]);}[_0xde56('0x76')](){this[_0xde56('0xb')][_0xde56('0xaa')](),this['_touchedMarkers'][_0xde56('0xaa')](),this['_touchedRoots'][_0xde56('0xaa')](),this[_0xde56('0xb2')][_0xde56('0xaa')](),this[_0xde56('0x4a')]['clear'](),this[_0xde56('0xad')][_0xde56('0xaa')](),this[_0xde56('0x2d')][_0xde56('0xaa')](),this['_idsRoots']['clear'](),this['_baseIdsRoots'][_0xde56('0xaa')](),this[_0xde56('0xe9')][_0xde56('0xaa')](),this[_0xde56('0x105')]=0x1,this[_0xde56('0xb7')]=this[_0xde56('0x105')];}['_makeIdsRoot'](_0x583e4f,_0x1880b0=null){let _0x3b3bc6=null;_0x583e4f['is'](_0xde56('0xd8'))||(_0x3b3bc6=new _0x4332cf(_0x583e4f[_0xde56('0x3f')],{'vid_start':null===_0x1880b0?this[_0xde56('0x105')]++:_0x1880b0++}));const _0x29eadd=[];for(const _0x13a809 of _0x583e4f['getChildren']())if(_0x13a809['is'](_0xde56('0x70'))){_0x29eadd[_0xde56('0xd')](this[_0xde56('0x14')](_0x13a809,_0x1880b0));const _0x216571=_0x29eadd[_0x29eadd[_0xde56('0x13')]-0x1];null!==_0x1880b0&&(_0x1880b0=_0x216571['is'](_0xde56('0x70'),'$text')?_0x216571[_0xde56('0xce')]('vid')+0x1:_0x216571[_0xde56('0xce')](_0xde56('0xc5'))+0x1);}else for(let _0x6487a6=0x0;_0x6487a6<_0x13a809[_0xde56('0xea')];_0x6487a6++)_0x29eadd[_0xde56('0xd')](new _0x4332cf('$text',{'vid':null===_0x1880b0?this[_0xde56('0x105')]++:_0x1880b0++}));if(_0x583e4f['is']('documentFragment')){const _0x42ae6b=G(_0x583e4f[_0xde56('0x35')]);return _0x42ae6b['_insertChild'](0x0,_0x29eadd),_0x42ae6b;}return _0x3b3bc6[_0xde56('0x34')](_0xde56('0xc5'),null===_0x1880b0?this[_0xde56('0x105')]++:_0x1880b0++),_0x3b3bc6[_0xde56('0xf0')](0x0,_0x29eadd),_0x3b3bc6;}[_0xde56('0x9f')](_0x53388e,_0x26c6b8,_0x55961c){this[_0xde56('0x76')]();const {roots:_0x4b0305,markers:_0x14b706,rootsAttributes:_0x3c8f92}=this['_savedMetaData'][_0xde56('0x11')](_0x53388e);this[_0xde56('0xad')]=new Map(_0x4b0305),this[_0xde56('0x2d')]=new Map(_0x4bd79b(_0x3c8f92));for(const [_0x1b5fde,_0x130f0a]of this[_0xde56('0xad')])if(_0xde56('0x55')!==_0x1b5fde&&(this[_0xde56('0xb2')][_0xde56('0xe1')](_0x1b5fde,q(_0x130f0a)),this[_0xde56('0x4a')]=new Map(_0x4bd79b(_0x3c8f92)),_0x55961c)){const _0x5bd3cc=this['_revisionId'];this[_0xde56('0x56')][_0xde56('0xe1')](_0x1b5fde,this[_0xde56('0x14')](_0x130f0a)),this['_baseIdsRoots'][_0xde56('0xe1')](_0x1b5fde,this[_0xde56('0x14')](_0x130f0a,_0x5bd3cc));}this['_startingRevisionId']=this[_0xde56('0x105')],this[_0xde56('0xb2')]['set'](_0xde56('0x55'),q(this[_0xde56('0xad')][_0xde56('0x11')]('$graveyard'))),_0x55961c&&this['_idsRoots'][_0xde56('0xe1')](_0xde56('0x55'),this[_0xde56('0x14')](this[_0xde56('0xad')][_0xde56('0x11')](_0xde56('0x55'))));for(const [_0x295bf7,_0x55dc93]of _0x14b706){const _0x416221=this['_baseRoots'][_0xde56('0x11')](_0x55dc93['rootName']),_0x18984a=this['_diffRoots']['get'](_0x55dc93['rootName']),_0x2066ea=new _0x927a0c(this[_0xde56('0x40')](_0x55dc93[_0xde56('0x7e')],_0x416221),this[_0xde56('0x40')](_0x55dc93[_0xde56('0xf8')],_0x416221)),_0x5ce9f0=this[_0xde56('0x22')](_0x2066ea,_0x18984a);_0x416221[_0xde56('0x1a')]['set'](_0x295bf7,_0x2066ea),this[_0xde56('0xe9')][_0xde56('0xe1')](_0x295bf7,_0x5ce9f0);}this[_0xde56('0x19')](_0x53388e,_0x26c6b8,_0x55961c);}[_0xde56('0x19')](_0x15c830,_0x3089da,_0x5062df){for(const _0x1d3b81 of this[_0xde56('0xd1')][_0xde56('0x12')](_0x15c830,_0x3089da))this[_0xde56('0x3c')](_0x1d3b81,_0x5062df);for(const _0xf698a of this[_0xde56('0xb2')][_0xde56('0xa6')]())_0xf698a[_0xde56('0x1a')][_0xde56('0xaa')]();for(const [_0x226507,_0x1b6c21]of this[_0xde56('0xe9')]){this[_0xde56('0xb2')][_0xde56('0x11')](_0x1b6c21['root'][_0xde56('0x35')])[_0xde56('0x1a')][_0xde56('0xe1')](_0x226507,_0x1b6c21[_0xde56('0x8f')]());}const _0x21b189=new Map(),_0x193cfd=new Map();for(const [_0x5ca712,_0x4d0239]of this[_0xde56('0xb2')])_0x21b189[_0xde56('0xe1')](_0x5ca712,q(_0x4d0239)),_0x193cfd[_0xde56('0xe1')](_0x5ca712,this['_diffRootsAttributes'][_0xde56('0x11')](_0x5ca712));this[_0xde56('0xe4')](_0x3089da,_0x21b189,this[_0xde56('0xe9')],_0x193cfd);}[_0xde56('0x7')](_0x143a95){const _0x267dc6=Array[_0xde56('0xc0')](this[_0xde56('0x5')][_0xde56('0x53')]());_0x267dc6[_0xde56('0x3b')]((_0x55f8ef,_0x4b811f)=>_0x55f8ef-_0x4b811f),_0x267dc6[_0xde56('0x6d')]();for(const _0x3f6401 of _0x267dc6)if(_0x3f6401<_0x143a95)return _0x3f6401;return Number[_0xde56('0xe')];}['_copyMarkers'](_0xfa35dd,_0x1189c8){const _0x450eca=Array['from'](_0x1189c8[_0xde56('0x1a')])[_0xde56('0xf9')](([_0x577c94,_0x43837a])=>[_0x577c94,this[_0xde56('0x22')](_0x43837a,_0xfa35dd)]);_0xfa35dd[_0xde56('0x1a')]=new Map(_0x450eca);}[_0xde56('0xcb')](_0x1dd685){for(const _0x487b9a of this[_0xde56('0xe9')][_0xde56('0xa6')]()){const _0x276591=_0x487b9a[_0xde56('0x28')](_0x1dd685),_0x255a99=_0x927a0c[_0xde56('0xfb')](_0x276591);_0x487b9a[_0xde56('0x7e')]=_0x255a99[_0xde56('0x7e')],_0x487b9a[_0xde56('0xf8')]=_0x255a99[_0xde56('0xf8')];}}[_0xde56('0x3c')](_0x22deef,_0x3e1826){if(_0xde56('0x5c')==_0x22deef[_0xde56('0xc8')]||_0xde56('0x77')==_0x22deef['type'])return void this['_handleRootOperation'](_0x22deef,_0x3e1826);if(_0xde56('0x98')==_0x22deef[_0xde56('0xc8')]){const _0x5ab315=_0x22deef[_0xde56('0x99')][_0xde56('0xe0')][_0xde56('0x35')];this[_0xde56('0xb2')][_0xde56('0x102')](_0x5ab315)||(this[_0xde56('0xb2')][_0xde56('0xe1')](_0x5ab315,G(_0x5ab315,!0x0)),this['_diffRootsAttributes']['set'](_0x5ab315,{}),_0x3e1826&&this[_0xde56('0x56')][_0xde56('0xe1')](_0x5ab315,G(_0x5ab315,!0x0)));}else{if(_0xde56('0xd7')==_0x22deef[_0xde56('0xc8')]||'removeRootAttribute'==_0x22deef[_0xde56('0xc8')]||'changeRootAttribute'==_0x22deef[_0xde56('0xc8')])return void this[_0xde56('0x10')](_0x22deef);}const _0x52e054=this[_0xde56('0xa9')](_0x22deef,this[_0xde56('0xb2')]);if('marker'!==_0x22deef[_0xde56('0xc8')]&&(_0x52e054['_execute'](),this[_0xde56('0xcb')](_0x52e054)),_0x3e1826)switch(_0x52e054['type']){case _0xde56('0x98'):this[_0xde56('0xc3')](_0x22deef);break;case _0xde56('0xde'):case _0xde56('0x106'):case _0xde56('0x39'):this[_0xde56('0x17')](_0x22deef);break;case _0xde56('0xf2'):this[_0xde56('0x63')](_0x22deef);break;case'split':this[_0xde56('0x4b')](_0x22deef);break;case _0xde56('0xa0'):this[_0xde56('0xbf')](_0x22deef);}}[_0xde56('0xa9')](_0x4616d3,_0x49705f){const _0x363565=_0x4616d3[_0xde56('0x8f')]();return _0x363565[_0xde56('0x47')]=_0x4616d3['_authorId'],this[_0xde56('0x2')](_0x363565,_0x49705f),_0x363565;}[_0xde56('0xed')](_0x1cdce2){return _0x1cdce2['map'](_0x4c90ea=>{const _0x4a6851=this[_0xde56('0x57')](_0x4c90ea);return Number(_0x4c90ea[_0xde56('0x8e')][_0xde56('0xce')](_0x4a6851));});}['_generateTape'](_0x28c00d,_0xa95ac2){if(_0x28c00d['is']('element','$text'))_0xa95ac2['push']({'item':_0x28c00d,'type':_0xde56('0x64')});else{_0x28c00d['is']('element')&&_0xa95ac2[_0xde56('0xd')]({'item':_0x28c00d,'type':_0xde56('0x43')});for(const _0x3399b0 of _0x28c00d[_0xde56('0xef')]())this[_0xde56('0x93')](_0x3399b0,_0xa95ac2);_0x28c00d['is']('element')&&_0xa95ac2['push']({'item':_0x28c00d,'type':'elementEnd'});}return _0xa95ac2;}['_getState'](){const _0x3f7909=new Map(this['_touched']),_0xecf87f=new Map(_0x3f7909),_0xd074f2=new Map(),_0x410ceb={'insertions':{},'deletions':{}},_0x222c32={'insertions':{},'deletions':{}},_0x4734c6=new Map(),_0x13c985=new Set([...this[_0xde56('0xad')][_0xde56('0x53')](),...this['_diffRoots'][_0xde56('0x53')]()]);_0x13c985[_0xde56('0xba')](_0xde56('0x55'));for(const _0x2939a8 of _0x13c985){const _0x2fd0f4=this[_0xde56('0xb2')][_0xde56('0x11')](_0x2939a8)||G(_0x2939a8,!0x1),_0x567d83=this['_baseRoots'][_0xde56('0x11')](_0x2939a8)||G(_0x2939a8,!0x1);_0x2fd0f4[_0xde56('0x3')]()||_0x567d83[_0xde56('0x3')]()?(_0x410ceb[_0xde56('0x108')][_0x2939a8]=q(_0x2fd0f4),_0x410ceb[_0xde56('0x4e')][_0x2939a8]=q(_0x567d83),this[_0xde56('0x79')](_0x410ceb[_0xde56('0x4e')][_0x2939a8],_0x567d83),this['_copyMarkers'](_0x410ceb[_0xde56('0x108')][_0x2939a8],_0x2fd0f4),_0x222c32[_0xde56('0x108')][_0x2939a8]=this[_0xde56('0x93')](this['_idsRoots'][_0xde56('0x11')](_0x2939a8),[]),_0x222c32['deletions'][_0x2939a8]=this[_0xde56('0x93')](this[_0xde56('0x8')][_0xde56('0x11')](_0x2939a8)||G(_0x2939a8,!0x1),[])):_0x13c985[_0xde56('0xba')](_0x2939a8);}for(const _0x1f6de4 of _0x13c985){const _0x183e15=_0x222c32['insertions'][_0x1f6de4];for(const _0x1c9812 of _0x183e15){const _0x23819f=this[_0xde56('0x57')](_0x1c9812),_0x125721=_0x1c9812['item']['getAttribute'](_0x23819f);_0xecf87f[_0xde56('0xba')](_0x125721),_0x125721>=this[_0xde56('0xb7')]&&_0xd074f2[_0xde56('0xe1')](_0x125721,_0x3f7909[_0xde56('0x11')](_0x125721));}}for(const _0x213603 of _0x13c985){const _0x38c5fa=_0x222c32[_0xde56('0x108')][_0x213603],_0x9dd4=this[_0xde56('0xed')](_0x222c32[_0xde56('0x4e')][_0x213603]);let _0x2411a9=0x0;for(const _0x5c48b6 of _0x38c5fa){const _0x16c517=this[_0xde56('0x57')](_0x5c48b6),_0x318b8e=_0x5c48b6[_0xde56('0x8e')]['getAttribute'](_0x16c517);if(!_0xd074f2['has'](_0x318b8e)&&!_0x4734c6['has'](_0x318b8e)){if(_0xecf87f[_0xde56('0x102')](_0x318b8e))_0x2411a9++;else{if(_0x318b8e!=_0x9dd4[_0x2411a9]){const _0x3d3a68=_0x3f7909[_0xde56('0x11')](_0x318b8e)||_0x3f7909[_0xde56('0x11')](_0x9dd4[_0x2411a9]);for(;_0x318b8e!=_0x9dd4[_0x2411a9];)_0xecf87f['has'](_0x9dd4[_0x2411a9])||(_0x4734c6[_0xde56('0xe1')](_0x9dd4[_0x2411a9],_0x3d3a68),_0x3f7909[_0xde56('0xe1')](_0x9dd4[_0x2411a9],_0x3d3a68)),_0x2411a9++;}_0x2411a9++;}}}}for(const _0x166f0e of _0x13c985){const _0x2df668=_0x222c32['insertions'][_0x166f0e];for(const _0x4a14cf of _0x2df668){const _0xed88f9=this[_0xde56('0x57')](_0x4a14cf),_0x5e4e05=_0x4a14cf[_0xde56('0x8e')][_0xde56('0xce')](_0xed88f9);if(_0x4734c6[_0xde56('0x102')](_0x5e4e05)){const _0x19f6b0=_0x4734c6[_0xde56('0x11')](_0x5e4e05);_0xecf87f[_0xde56('0x102')](_0x5e4e05)||_0xecf87f[_0xde56('0xe1')](_0x5e4e05,{..._0x19f6b0}),_0xd074f2[_0xde56('0xe1')](_0x5e4e05,{..._0x19f6b0});}}}for(const _0x311f6d of _0xecf87f[_0xde56('0x53')]())_0x311f6d>=this[_0xde56('0xb7')]&&_0xecf87f['delete'](_0x311f6d);const _0x466ecb=new Map();for(const _0x5bef60 of _0x13c985){let _0x2abb49=_0x222c32[_0xde56('0x108')][_0x5bef60];for(const _0x38c191 of _0x2abb49)if(_0x38c191['item']['is'](_0xde56('0x70'),_0xde56('0xf1'))){const _0x475302=this['_getVidAttributeName'](_0x38c191),_0x1cdbf8=_0x38c191[_0xde56('0x8e')]['getAttribute'](_0x475302);if(_0xd074f2[_0xde56('0x102')](_0x1cdbf8)){const _0x1c71f3=_0x38c191[_0xde56('0x8e')][_0xde56('0x31')][_0xde56('0x31')][_0xde56('0xce')](_0xde56('0xae')),_0x122db3=_0x466ecb[_0xde56('0x11')](_0x1c71f3)||new Set();_0x122db3[_0xde56('0xe6')](_0xd074f2['get'](_0x1cdbf8)['userId']),_0x466ecb[_0xde56('0xe1')](_0x1c71f3,_0x122db3);}}_0x2abb49=_0x222c32[_0xde56('0x4e')][_0x5bef60];for(const _0x54895f of _0x2abb49)if(_0x54895f[_0xde56('0x8e')]['is'](_0xde56('0x70'),'tableCell')){const _0x145402=this['_getVidAttributeName'](_0x54895f),_0x921039=_0x54895f[_0xde56('0x8e')]['getAttribute'](_0x145402);if(_0xecf87f[_0xde56('0x102')](_0x921039)){const _0x4507e8=_0x54895f['item'][_0xde56('0x31')][_0xde56('0x31')][_0xde56('0xce')](_0xde56('0xae')),_0x30a574=_0x466ecb[_0xde56('0x11')](_0x4507e8)||new Set();_0x30a574['add'](_0xecf87f[_0xde56('0x11')](_0x921039)[_0xde56('0xa5')]),_0x466ecb[_0xde56('0xe1')](_0x4507e8,_0x30a574);}}for(const _0x8508b2 of _0x466ecb['keys']())(_0xd074f2[_0xde56('0x102')](_0x8508b2)||_0xecf87f['has'](_0x8508b2))&&_0x466ecb[_0xde56('0xba')](_0x8508b2);}for(const _0x3bdc55 of _0x13c985){const _0x2a5c7f=_0x222c32[_0xde56('0x108')][_0x3bdc55];let _0x4f729f=null,_0x3cf3a6=null;for(const _0x3a704e of _0x2a5c7f){const _0x44ff89=this[_0xde56('0x57')](_0x3a704e),_0x103036=_0x3a704e[_0xde56('0x8e')][_0xde56('0xce')](_0x44ff89),_0x57cda7=_0x466ecb['get'](_0x103036);_0x57cda7&&_0xde56('0x43')==_0x3a704e[_0xde56('0xc8')]&&(_0x4f729f=Array[_0xde56('0xc0')](_0x57cda7)[0x0],_0x3cf3a6=_0x3a704e['item']['getAttribute'](_0xde56('0xc5'))),_0x4f729f&&(_0xecf87f[_0xde56('0xe1')](_0x103036,{'userId':_0x4f729f}),_0xd074f2['set'](_0x103036,{'userId':_0x4f729f})),_0x103036==_0x3cf3a6&&(_0x4f729f=null,_0x3cf3a6=null);}}const _0x20cae1={},_0x292893=new Set();for(const _0x55cf97 of _0x13c985){const _0x11e7a7=_0x410ceb[_0xde56('0x4e')][_0x55cf97],_0x224d92=_0x410ceb['insertions'][_0x55cf97];for(const {userId:_0x4874c8}of this[_0xde56('0x27')][_0xde56('0xa6')]())null!==_0x4874c8&&_0x292893['add'](_0x4874c8);for(const {userId:_0x2a5e52}of this[_0xde56('0x61')][_0xde56('0xa6')]())null!==_0x2a5e52&&_0x292893['add'](_0x2a5e52);this['_markChanges'](_0x224d92,_0x222c32[_0xde56('0x108')][_0x55cf97],_0xd074f2,_0xde56('0xc9'),_0x292893),this['_markChanges'](_0x11e7a7,_0x222c32[_0xde56('0x4e')][_0x55cf97],_0xecf87f,_0xde56('0x65'),_0x292893),_0x20cae1[_0x55cf97]={'insertions':this[_0xde56('0x9c')](_0x224d92),'deletions':this[_0xde56('0x9c')](_0x11e7a7),'attachChange':this[_0xde56('0x61')]['get'](_0x55cf97)||null,'attributesBefore':_0x4bd79b(this[_0xde56('0x2d')][_0xde56('0x11')](_0x55cf97))||{},'attributesAfter':_0x4bd79b(this[_0xde56('0x4a')][_0xde56('0x11')](_0x55cf97))};}return{'diffData':_0x20cae1,'authorsIds':Array['from'](_0x292893)};}[_0xde56('0x20')](_0x1d8660){for(const [,_0x55d4de]of _0x1d8660[_0xde56('0x1a')]){const _0x26ee75=_0x55d4de[_0xde56('0x7e')][_0xde56('0xd2')]()[_0xde56('0xb0')](_0x50ff64=>_0xde56('0xf1')==_0x50ff64[_0xde56('0x3f')]);for(const _0xe9f03f of _0x26ee75)0x1==_0xe9f03f[_0xde56('0x24')]&&_0xe9f03f[_0xde56('0xee')](0x0)['is']('element','paragraph')&&_0xe9f03f[_0xde56('0xee')](0x0)[_0xde56('0x34')]('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xcf0c7c){this['_processRootBeforeSave'](_0xcf0c7c);const _0x3d5db6=this[_0xde56('0x2f')][_0xde56('0xd4')][_0xde56('0x8a')](_0xcf0c7c,{}),_0x167afa=Array[_0xde56('0xc0')](_0x3d5db6[_0xde56('0xef')]())[_0xde56('0xf9')](_0x42cf86=>this['_getViewJson'](_0x42cf86));return JSON[_0xde56('0x72')](_0x167afa);}[_0xde56('0xcd')](_0x31ef95){if(_0x31ef95['is']('$text'))return _0x31ef95[_0xde56('0xd4')];{const _0x2869c6=_0x31ef95;return{'type':Object['keys'](B)[_0xde56('0x81')](_0x10538b=>_0x31ef95 instanceof B[_0x10538b]),'name':_0x2869c6[_0xde56('0x3f')],'attributes':Array[_0xde56('0xc0')](_0x2869c6[_0xde56('0xb4')]()),'children':Array[_0xde56('0xc0')](_0x2869c6[_0xde56('0xef')]())['map'](_0x4e7903=>this[_0xde56('0xcd')](_0x4e7903))};}}['_markChanges'](_0x4d3b2b,_0x2d0ec7,_0x3041ea,_0xbf0149,_0x56f2be){let _0x3ca54a=null,_0x10007c=null,_0x54a6fc=0x0;const _0x450797=this[_0xde56('0x2f')][_0xde56('0x7a')];for(let _0x41c436=0x0;_0x41c436<_0x2d0ec7['length'];_0x41c436++){const _0x3b21ed=this['_getVidAttributeName'](_0x2d0ec7[_0x41c436]),_0x1854e1=_0x2d0ec7[_0x41c436][_0xde56('0x8e')][_0xde56('0xce')](_0x3b21ed),_0x40e85c=_0x3041ea[_0xde56('0x11')](_0x1854e1),_0x5d61a5=_0x41c436==_0x2d0ec7[_0xde56('0x13')]-0x1;(!_0x3ca54a&&_0x40e85c&&(_0x3ca54a=_0x40e85c,_0x10007c=_0x2d0ec7[_0x41c436]),_0x3ca54a&&(!_0x40e85c||_0x40e85c['userId']!=_0x3ca54a[_0xde56('0xa5')]))&&(_0xbbfd94(_0x40e85c,L(_0x10007c,_0x4d3b2b,_0x450797),L(_0x2d0ec7[_0x41c436],_0x4d3b2b,_0x450797)),_0x3ca54a=_0x40e85c||null,_0x10007c=_0x40e85c?_0x2d0ec7[_0x41c436]:null),_0x3ca54a&&_0x5d61a5&&_0xbbfd94(_0x40e85c,L(_0x10007c,_0x4d3b2b,_0x450797),W(_0x2d0ec7[_0x41c436],_0x4d3b2b,_0x450797));}function _0xbbfd94(_0x3a8c96,_0x254c08,_0x20e56f){const _0x10ef6e=_0x3ca54a[_0xde56('0xa5')],_0x449232='revision:'+_0xbf0149+':'+_0x10ef6e+':'+_0x54a6fc++,_0x30bfbe=_0x450797['createRange'](_0x254c08,_0x20e56f);_0x4d3b2b[_0xde56('0x1a')][_0xde56('0xe1')](_0x449232,_0x30bfbe),null!==_0x10ef6e&&_0x56f2be['add'](_0x10ef6e);}}[_0xde56('0x57')](_0x1828f1){switch(_0x1828f1['type']){case'elementStart':return _0xde56('0xae');case _0xde56('0x18'):return'vid_end';default:return _0xde56('0x66');}}['_fixOperation'](_0x5acab6,_0x51f5f1){_0x5acab6[_0xde56('0x50')]=null;for(const _0x1321a8 in _0x5acab6){const _0x1b6d63=_0x5acab6[_0x1321a8];if(_0x1b6d63 instanceof _0x4604a3){const _0x1e99c9=_0x51f5f1['get'](_0x1b6d63[_0xde56('0xe0')]['rootName']);_0x5acab6[_0x1321a8]=this[_0xde56('0x40')](_0x1b6d63,_0x1e99c9);}if(_0x1b6d63 instanceof _0x927a0c){const _0x1882c5=_0x51f5f1['get'](_0x1b6d63[_0xde56('0xe0')][_0xde56('0x35')]);_0x5acab6[_0x1321a8]=this[_0xde56('0x22')](_0x1b6d63,_0x1882c5);}'root'===_0x1321a8&&(_0x5acab6[_0xde56('0xe0')]=_0x51f5f1[_0xde56('0x11')](_0x5acab6['root'][_0xde56('0x35')]));}}['_fixRange'](_0x14a3bc,_0x2d84d7){return this[_0xde56('0x2f')][_0xde56('0x7a')]['createRange'](this[_0xde56('0x40')](_0x14a3bc[_0xde56('0x7e')],_0x2d84d7),this[_0xde56('0x40')](_0x14a3bc[_0xde56('0xf8')],_0x2d84d7));}[_0xde56('0x40')](_0x5bcdf7,_0x51650b){return this[_0xde56('0x2f')][_0xde56('0x7a')]['createPositionFromPath'](_0x51650b,_0x5bcdf7[_0xde56('0xa')],_0x5bcdf7[_0xde56('0x89')]);}[_0xde56('0xc3')](_0x452033){const _0x1e7277=this[_0xde56('0x56')][_0xde56('0x11')](_0x452033[_0xde56('0x99')][_0xde56('0xe0')][_0xde56('0x35')]),_0x57c40f=this['_fixPosition'](_0x452033['position'],_0x1e7277),_0x19f247=null===_0x452033[_0xde56('0x47')]?null:_0x452033[_0xde56('0x47')]||this['editor'][_0xde56('0xfd')]['get'](_0xde56('0x3e'))['me']['id'],_0x41c91e=_0x57c40f['parent'],_0x58671b=this['_revisionId'],_0x57b3f3=[];for(const _0x1571d0 of _0x452033['nodes'])if(_0x1571d0['is'](_0xde56('0x70')))_0x57b3f3[_0xde56('0xd')](this[_0xde56('0x14')](_0x1571d0));else for(let _0x1549d4=0x0;_0x1549d4<_0x1571d0[_0xde56('0xea')];_0x1549d4++)_0x57b3f3[_0xde56('0xd')](new _0x4332cf(_0xde56('0x6f'),{'vid':this[_0xde56('0x105')]++}));const _0x3e28e1=this['_revisionId'];for(let _0x312815=_0x58671b;_0x312815<_0x3e28e1;_0x312815++)this[_0xde56('0xb')][_0xde56('0xe1')](_0x312815,{'userId':_0x19f247});_0x41c91e[_0xde56('0xf0')](_0x57c40f[_0xde56('0xdc')],_0x57b3f3);}[_0xde56('0x17')](_0x170838){(_0x170838=this[_0xde56('0xa9')](_0x170838,this[_0xde56('0x56')]))['_execute']();const _0x22dd3b=null===_0x170838[_0xde56('0x47')]?null:_0x170838[_0xde56('0x47')]||this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')]('Users')['me']['id'],_0x536e78=_0x170838[_0xde56('0x9b')](),_0x1822bd=_0x536e78[_0xde56('0x31')],_0x547119=_0x536e78['offset'];!function _0x5dd79d(_0x593346,_0x33e599,_0x53bba4,_0x4bc79e){for(let _0x5e7446=_0x53bba4;_0x5e7446<_0x4bc79e;_0x5e7446++){const _0x4a9585=_0x33e599[_0xde56('0xee')](_0x5e7446);_0x4a9585['is']('element',_0xde56('0x6f'))?_0x593346['set'](_0x4a9585['getAttribute'](_0xde56('0x66')),{'userId':_0x22dd3b}):(_0x593346[_0xde56('0xe1')](_0x4a9585[_0xde56('0xce')](_0xde56('0xae')),{'userId':_0x22dd3b}),_0x5dd79d(_0x593346,_0x4a9585,0x0,_0x4a9585['childCount']),_0x593346[_0xde56('0xe1')](_0x4a9585[_0xde56('0xce')](_0xde56('0xc5')),{'userId':_0x22dd3b}));}}(this[_0xde56('0xb')],_0x1822bd,_0x547119,_0x547119+_0x170838[_0xde56('0x95')]);}[_0xde56('0x63')](_0x5e4f98){const _0x4945b1=null===(_0x5e4f98=this['_cloneOperation'](_0x5e4f98,this[_0xde56('0x56')]))[_0xde56('0x47')]?null:_0x5e4f98[_0xde56('0x47')]||this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')](_0xde56('0x3e'))['me']['id'],_0x693e50=_0x5e4f98[_0xde56('0x97')][_0xde56('0x31')],_0x247c5a=_0x5e4f98[_0xde56('0x62')][_0xde56('0x31')],_0x5cff64=_0x693e50['getAttribute'](_0xde56('0xc5')),_0x58772d=_0x247c5a['getAttribute'](_0xde56('0xae'));_0x693e50[_0xde56('0x34')](_0xde56('0xc5'),_0x247c5a[_0xde56('0xce')](_0xde56('0xc5'))),_0x247c5a['_setAttribute'](_0xde56('0xc5'),_0x5cff64),this[_0xde56('0xb')][_0xde56('0xe1')](_0x58772d,{'userId':_0x4945b1}),this[_0xde56('0xb')][_0xde56('0xe1')](_0x5cff64,{'userId':_0x4945b1}),_0x5e4f98[_0xde56('0x80')]();}[_0xde56('0x4b')](_0x58f249){const _0x55172f=null===(_0x58f249=this[_0xde56('0xa9')](_0x58f249,this['_idsRoots']))[_0xde56('0x47')]?null:_0x58f249[_0xde56('0x47')]||this[_0xde56('0x2f')][_0xde56('0xfd')]['get'](_0xde56('0x3e'))['me']['id'],_0x5cab59=_0x58f249['graveyardPosition'],_0x43d349=_0x58f249[_0xde56('0xb5')][_0xde56('0x31')];_0x58f249[_0xde56('0x80')]();const _0x374bd7=_0x43d349['getAttribute']('vid_end'),_0x596309=_0x58f249[_0xde56('0xfe')][_0xde56('0x9')];if(_0x5cab59){const _0x167162=_0x596309[_0xde56('0xce')](_0xde56('0xc5')),_0x180666=_0x43d349[_0xde56('0xce')](_0xde56('0xc5'));_0x43d349[_0xde56('0x34')]('vid_end',_0x167162),_0x596309[_0xde56('0x34')](_0xde56('0xc5'),_0x180666),this[_0xde56('0xb')][_0xde56('0xe1')](_0x43d349[_0xde56('0xce')](_0xde56('0xc5')),{'userId':_0x55172f}),this['_touched'][_0xde56('0xe1')](_0x596309[_0xde56('0xce')](_0xde56('0xae')),{'userId':_0x55172f});}else{const _0x400ad9=this[_0xde56('0x105')]++,_0x225f6e=this[_0xde56('0x105')]++;_0x43d349[_0xde56('0x34')](_0xde56('0xc5'),_0x400ad9),_0x596309[_0xde56('0x34')](_0xde56('0xae'),_0x225f6e),_0x596309[_0xde56('0x34')]('vid_end',_0x374bd7),this['_touched'][_0xde56('0xe1')](_0x400ad9,{'userId':_0x55172f}),this['_touched'][_0xde56('0xe1')](_0x225f6e,{'userId':_0x55172f});}}[_0xde56('0xbf')](_0x39de99){if(!_0x39de99['affectsData'])return;const _0xc33c3=(_0x39de99=this[_0xde56('0xa9')](_0x39de99,this[_0xde56('0xb2')]))['oldRange']?_0x39de99[_0xde56('0xf6')][_0xde56('0xe0')]:null,_0xbe8aa4=_0x39de99[_0xde56('0x4')]?_0x39de99[_0xde56('0x4')][_0xde56('0xe0')]:null;_0xc33c3&&this[_0xde56('0xe9')][_0xde56('0xba')](_0x39de99[_0xde56('0x3f')]),_0xbe8aa4&&this[_0xde56('0xe9')][_0xde56('0xe1')](_0x39de99[_0xde56('0x3f')],_0x39de99['newRange']['clone']());const _0x35f1b6=null===_0x39de99[_0xde56('0x47')]?null:_0x39de99[_0xde56('0x47')]||this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')]('Users')['me']['id'],_0x2a2d33=_0x39de99['name'];if(!this[_0xde56('0x27')][_0xde56('0x102')](_0x2a2d33))return void this['_touchedMarkers'][_0xde56('0xe1')](_0x2a2d33,{'range':_0x39de99[_0xde56('0xf6')],'userId':_0x35f1b6});const _0x598b1a=this[_0xde56('0x27')][_0xde56('0x11')](_0x2a2d33),_0x55f041=_0x598b1a[_0xde56('0xfa')],_0x37a3a7=_0x39de99[_0xde56('0x4')];null==_0x55f041&&null==_0x37a3a7||_0x55f041&&_0x37a3a7&&_0x55f041[_0xde56('0x5e')](_0x37a3a7)?this[_0xde56('0x27')][_0xde56('0xba')](_0x39de99[_0xde56('0x3f')]):_0x598b1a[_0xde56('0xa5')]=_0x35f1b6;}[_0xde56('0xe2')](_0x55b490,_0x439961){this[_0xde56('0xb2')][_0xde56('0x102')](_0x55b490['rootName'])?this['_diffRoots'][_0xde56('0x11')](_0x55b490[_0xde56('0x35')])[_0xde56('0xf7')]=_0x55b490['isAdd']:(this[_0xde56('0xb2')][_0xde56('0xe1')](_0x55b490[_0xde56('0x35')],G(_0x55b490[_0xde56('0x35')],!0x0)),this['_diffRootsAttributes']['set'](_0x55b490[_0xde56('0x35')],{}),_0x439961&&this[_0xde56('0x56')][_0xde56('0xe1')](_0x55b490['rootName'],G(_0x55b490[_0xde56('0x35')],!0x0)));const _0x2a688e=null===_0x55b490[_0xde56('0x47')]?null:_0x55b490[_0xde56('0x47')]||this[_0xde56('0x2f')][_0xde56('0xfd')]['get'](_0xde56('0x3e'))['me']['id'],_0x22669d=this[_0xde56('0x61')][_0xde56('0x11')](_0x55b490[_0xde56('0x35')]);_0x22669d&&_0x22669d[_0xde56('0xa5')]===_0x2a688e?this['_touchedRoots'][_0xde56('0xba')](_0x55b490[_0xde56('0x35')]):this[_0xde56('0x61')][_0xde56('0xe1')](_0x55b490['rootName'],{'userId':_0x2a688e,'isAttached':_0x55b490[_0xde56('0x8b')]});}[_0xde56('0x10')](_0x1879f3){const _0x265dd0=this[_0xde56('0x4a')][_0xde56('0x11')](_0x1879f3[_0xde56('0xe0')]['rootName']);null===_0x1879f3[_0xde56('0xc1')]?delete _0x265dd0[_0x1879f3[_0xde56('0x1f')]]:_0x265dd0[_0x1879f3[_0xde56('0x1f')]]=_0x1879f3['newValue'];}}function q(_0x2df869){const _0x50eda9=G(_0x2df869[_0xde56('0x35')],_0x2df869[_0xde56('0x3')]());for(const _0x42d016 of _0x2df869[_0xde56('0xef')]()){const _0xa2bb5=_0x42d016[_0xde56('0x9d')](!0x0);_0x50eda9['_appendChild'](_0xa2bb5);}return _0x50eda9;}function G(_0x1785db,_0x228530=!0x0){const _0x3c9d51=new _0x5ac983();return _0x3c9d51[_0xde56('0x35')]=_0x1785db,_0x3c9d51[_0xde56('0xf7')]=_0x228530,_0x3c9d51[_0xde56('0x3')]=()=>_0x3c9d51['_isAttached'],_0x3c9d51;}function L(_0x23d44b,_0x1e60bf,_0x47890f){const _0x57526d=_0xde56('0x18')==_0x23d44b[_0xde56('0xc8')]?_0x47890f[_0xde56('0x7b')](_0x23d44b['item'],_0xde56('0xf8')):_0x47890f[_0xde56('0x5d')](_0x23d44b[_0xde56('0x8e')]);return _0x47890f[_0xde56('0x2a')](_0x1e60bf,_0x57526d[_0xde56('0xa')],_0x57526d[_0xde56('0x89')]);}function W(_0x11c4dd,_0x2c4f9e,_0x472779){const _0x3c6bc8=_0xde56('0x43')==_0x11c4dd[_0xde56('0xc8')]?_0x472779[_0xde56('0x7b')](_0x11c4dd[_0xde56('0x8e')],0x0):_0x472779[_0xde56('0xb9')](_0x11c4dd[_0xde56('0x8e')]);return _0x472779['createPositionFromPath'](_0x2c4f9e,_0x3c6bc8[_0xde56('0xa')],_0x3c6bc8[_0xde56('0x89')]);}
23
+ const _0x4c24=['parse','getRevisionDocumentData','_calculateMetaData','move','getRevisionRootsAttributes','roots','_baseRootsAttributes','_revisionId','_loadedStateData','_handleOperation','_cloneOperation','range','push','config','rootName','_startingVersion','_addPendingAction','createRange','splitPosition','fromVersion','name','from','getAncestors','baseVersion','_pendingAction','getMovedRangeStart','type','split','end','revision-end','shift','source','model','sort','getRange','previousPosition','getCurrentRevisionId','creator','loadState','_makeIdsRoot','addRevision','graveyardPosition','history','tableCell','_idsRoots','newValue','createRevision','_findInsertionIndex','start','createRangeIn','_handleInsertOperation','sourcePosition','_getState','bind','currentRevision','document','values','_setAttribute','isAdd','_touchedMarkers','editing','_fixOperation','_handleMarkerOperation','marked','_execute','PendingActions','_markers','_createCurrentRevision','_removeRevisionMarkers','PENDING_ACTION_REVISION_HISTORY','diffData','getRevisions','$text','forEach','reinsert','getData','_handleRootAttributeOperation','_touched','revision:','revisionHistory.resumeUnsavedRevision','_markChanges','insert','_applyOperations','afterInit','_makeRevision','addRevisionData','plugins','offset','ready','vid_start','resolve','toView','map','initialData','_handleSplitOperation','for','RealTimeCollaborationClient','dataToMarker','attachChange','_setConversion','data','_generateTape','parent','delete','some','_getVidAttributeName','reInit','editor-initial-data-replaced-with-revision-data','_appendChild','_replaceEditorDataWithRevisionData','keys','getAttribute','affectsData','_isAttached','documentFragment','vid','version','elementEnd','saveRevision','newRange','remove','filter','processor','_handleMergeOperation','changeRootAttribute','authors','key','_initialRevisionId','reverse','attributesBefore','_handleRootOperation','addRoot','getTime','_bufferedUpdates','setSource','stickiness','vid_end','_update','howMany','getAttributes','getLatestVersion','adapter','_insertChild','revision-start','nodeAfter','_isPendingUpdate','_lastFrom','getChildren','requires','find','createdAt','hasContent','createPositionBefore','$graveyard','element','Initial\x20revision','createPositionAt','define','isAttached','_getBaseVids','path','_makeModelFromViewString','_source','_transformMarkers','_baseRoots','getRevision','targetPosition','slice','size','has','removeRootAttribute','toModel','clone','_removePendingAction','_removeMetaData','initial','oldRange','isEqual','toData','_fixPosition','createPositionAfter','insertion','insertions','repository','item','string','_getFromVersion','_continueCurrentRevision','locale','setRevisionData','getOperation','startsWith','insertionPosition','marker','collaboration.channelId','_diffRoots','userId','children','paragraph','_reset','creatorId','_lastTo','sendBufferedUpdates','nodes','finally','attributes','get','_touchedRoots','data-revision-','_prepareViewToSave','_startingRevisionId','buildRevisionData','_clone','position','length','useFillerType','_createFromRanges','elementStart','_authorId','root','_processRootBeforeSave','_baseIdsRoots','_saveMetaData','editor','init','deletions','_fixRange','authorsIds','_createInitialRevision','max','isReady','_loadRevisionData','_revisionDataBuilder','getUser','createPositionFromPath','view','_operations','getNodeByPath','toVersion','_bufferUpdate','_savedMetaData','NEGATIVE_INFINITY','clear','deletion','add','getWalker','markers','_handleMoveOperation','set','rootsAttributes','offsetSize','_loadState','upcast','_getViewJson','getRoot','getChild','_getPreviousFrom','revision','keepParagraph','Users','_diffRootsAttributes'];(function(_0x480f5f,_0x4c248c){const _0x3f132f=function(_0x2dcfd7){while(--_0x2dcfd7){_0x480f5f['push'](_0x480f5f['shift']());}};_0x3f132f(++_0x4c248c);}(_0x4c24,0x192));const _0x3f13=function(_0x480f5f,_0x4c248c){_0x480f5f=_0x480f5f-0x0;let _0x3f132f=_0x4c24[_0x480f5f];return _0x3f132f;};import{Users as _0x4047f5}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x48f287,PendingActions as _0x42c348}from'ckeditor5/src/core';import{logWarning as _0x4d9010,uid as _0x2c9d59}from'ckeditor5/src/utils';import{Position as _0x4a74c8,Range as _0x21a2c5,Element as _0x330522,DocumentFragment as _0x10fc08,ViewText as _0x2794bb,ViewElement as _0x540977,ViewContainerElement as _0x2b6b74,ViewAttributeElement as _0x167fdc,ViewEmptyElement as _0x1bc59e,ViewRawElement as _0x38a236,ViewUIElement as _0x3cbc81,ViewDocumentFragment as _0x3f558d}from'ckeditor5/src/engine';import _0x9be4db from'./revisionsrepository';import{getTranslation as _0x22cfae}from'./utils/common-translations';import{cloneDeep as _0x5a8efe,isEqual as _0x19f0e8}from'lodash-es';const B={'c':_0x2b6b74,'a':_0x167fdc,'e':_0x1bc59e,'r':_0x38a236,'u':_0x3cbc81};export default class l extends _0x48f287{static get['pluginName'](){return'RevisionTracker';}static get[_0x3f13('0x7')](){return[_0x4047f5,_0x9be4db,_0x42c348];}constructor(_0x2f59bf){super(_0x2f59bf),this[_0x3f13('0x0')]=null,this[_0x3f13('0xae')]=null,this[_0x3f13('0x5b')]=new H(this[_0x3f13('0x52')]),this['_initialRevisionId']=this[_0x3f13('0x52')][_0x3f13('0x85')][_0x3f13('0x41')](_0x3f13('0x35'))||_0x3f13('0x22'),this[_0x3f13('0xfd')]=new Map(),this['_loadedStateData']=null;const _0x23bc73=_0x2c9d59();this[_0x3f13('0x15')]={'history':this[_0x3f13('0x52')]['model'][_0x3f13('0xaf')][_0x3f13('0xa2')],'getLatestVersion':()=>Promise[_0x3f13('0xd2')](this[_0x3f13('0x52')][_0x3f13('0x98')][_0x3f13('0xaf')][_0x3f13('0xec')]),'getCurrentRevisionId':()=>_0x23bc73},this[_0x3f13('0x6b')](_0x3f13('0x59'),!0x1),this[_0x3f13('0x6b')]('isEnabled',!0x0),this[_0x3f13('0x6b')](_0x3f13('0x4'),!0x1),this[_0x3f13('0x52')][_0x3f13('0x85')][_0x3f13('0x10')](_0x3f13('0xc7'),!0x0),this[_0x3f13('0x52')]['conversion'][_0x3f13('0xd7')](_0x3f13('0x6f'))[_0x3f13('0xd9')]({'view':_0x3f13('0x74')});}[_0x3f13('0x53')](){this[_0x3f13('0x2a')]=this['editor']['plugins']['get']('RevisionsRepository'),this[_0x3f13('0xdb')](),this[_0x3f13('0x52')][_0x3f13('0xdc')]['on'](_0x3f13('0xd0'),()=>{const _0x177d1e=this[_0x3f13('0x2a')][_0x3f13('0x18')](0x0),_0x2d0f64=_0x177d1e&&null===_0x177d1e[_0x3f13('0x9d')]?_0x177d1e:null;if(this[_0x3f13('0x2e')]=!!_0x2d0f64&&this[_0x3f13('0x52')][_0x3f13('0x85')]['get'](_0x3f13('0xc7')),this[_0x3f13('0x52')][_0x3f13('0xce')]['has'](_0x3f13('0xd8'))){const _0x42a3af=this[_0x3f13('0x15')][_0x3f13('0x9c')](),_0x58172d=this[_0x3f13('0x2a')][_0x3f13('0x18')](_0x42a3af);if(_0x58172d)this[_0x3f13('0x87')]=_0x58172d[_0x3f13('0x8b')],this[_0x3f13('0x2e')]=!0x1;else{const _0x4b95d4=this['_source'][_0x3f13('0xa2')][_0x3f13('0x5f')][_0x3f13('0x8')](_0x5e7a8c=>!_0x5e7a8c['_isInit']),_0x25e44a=_0x4b95d4?_0x4b95d4[_0x3f13('0x8f')]:this[_0x3f13('0x15')][_0x3f13('0xa2')][_0x3f13('0xec')];_0x177d1e?(_0x177d1e[_0x3f13('0x61')]<_0x25e44a&&_0x177d1e[_0x3f13('0x101')]({'toVersion':_0x25e44a}),this[_0x3f13('0x2e')]?(this[_0x3f13('0x15')][_0x3f13('0x9c')]=()=>_0x2d0f64['id'],this[_0x3f13('0x87')]=_0x2d0f64['fromVersion']):(this['_startingVersion']=_0x177d1e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x25e44a,this[_0x3f13('0x2e')]=!0x1);}}else _0x2d0f64&&(this[_0x3f13('0x52')][_0x3f13('0x98')][_0x3f13('0xaf')][_0x3f13('0xa2')][_0x3f13('0xec')]=Math[_0x3f13('0x58')](_0x2d0f64[_0x3f13('0x61')],this[_0x3f13('0x52')][_0x3f13('0x98')][_0x3f13('0xaf')][_0x3f13('0xa2')][_0x3f13('0xec')]),_0x2d0f64['fromVersion']===_0x2d0f64['toVersion']?(0x0!==_0x2d0f64['fromVersion']&&(this[_0x3f13('0x15')][_0x3f13('0x9c')]=()=>_0x2d0f64['id']),this['_continueCurrentRevision']=!0x1):this[_0x3f13('0x2e')]&&(this[_0x3f13('0x15')][_0x3f13('0x9c')]=()=>_0x2d0f64['id'],this[_0x3f13('0x87')]=_0x2d0f64[_0x3f13('0x8b')])),this[_0x3f13('0x2e')]||(this[_0x3f13('0x87')]=this[_0x3f13('0x52')]['model'][_0x3f13('0xaf')][_0x3f13('0xec')]);this[_0x3f13('0x5b')]['init'](this[_0x3f13('0x15')]['history']),this[_0x3f13('0x57')](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this[_0x3f13('0x0')]&&this[_0x3f13('0x3d')]();}),this[_0x3f13('0xad')](_0x3f13('0x59'))['to'](this,_0x3f13('0x4'),_0x562fa1=>!_0x562fa1);}async[_0x3f13('0xcb')](){if(this['repository'][_0x3f13('0x49')]>0x0){const _0x21bee7=this[_0x3f13('0x2a')][_0x3f13('0x18')](0x0),_0x2262a0=await this[_0x3f13('0x79')](_0x21bee7),_0x57f108=await this[_0x3f13('0x7c')](_0x21bee7);this[_0x3f13('0xe5')](_0x2262a0,_0x57f108);}}[_0x3f13('0xfe')](_0x96986d){this[_0x3f13('0x15')]=_0x96986d;}async['update'](){const _0x1fb324=await this[_0x3f13('0x15')][_0x3f13('0x104')]();if(_0x1fb324>this['currentRevision']['toVersion']){await this[_0x3f13('0x6e')]();const _0x190d38=this[_0x3f13('0x46')]({'revision':this[_0x3f13('0xae')],'to':_0x1fb324});_0x190d38[_0x3f13('0xf5')]=_0x190d38['authorsIds']['map'](_0xae2321=>this[_0x3f13('0x52')][_0x3f13('0xce')][_0x3f13('0x41')](_0x3f13('0x76'))[_0x3f13('0x5c')](_0xae2321)),this[_0x3f13('0xae')][_0x3f13('0x101')](_0x190d38);}}async['_loadState'](){this[_0x3f13('0x2e')]&&!this[_0x3f13('0x80')]&&(await this[_0x3f13('0x5a')](this[_0x3f13('0xae')]),this[_0x3f13('0x5b')][_0x3f13('0x9e')](this[_0x3f13('0xae')]),this[_0x3f13('0x80')]={'fromVersion':this['currentRevision'][_0x3f13('0x8b')],'authors':this[_0x3f13('0xae')][_0x3f13('0xf5')]['slice']()});}async[_0x3f13('0xee')](_0x5ae409={},_0x473327=null){const _0x38db99=[];await this[_0x3f13('0x6e')](),this[_0x3f13('0x2e')]=!0x1,_0x473327>this[_0x3f13('0xae')][_0x3f13('0x61')]&&(_0x473327=null),null===_0x473327&&(_0x473327=await this[_0x3f13('0x15')][_0x3f13('0x104')]());const _0x314d32=this['_getFromVersion'](_0x473327),_0x4266cb=this[_0x3f13('0x46')]({'from':_0x314d32,'to':_0x473327});if(this['currentRevision'][_0x3f13('0x61')]<_0x473327){const _0x4f0335=this['buildRevisionData']({'revision':this[_0x3f13('0xae')],'from':_0x473327,'to':_0x473327});_0x4f0335[_0x3f13('0xf5')]=[],_0x4f0335[_0x3f13('0x56')]=[],_0x4f0335['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4f0335,!0x0),delete _0x4f0335[_0x3f13('0xf5')],_0x38db99[_0x3f13('0x84')](_0x4f0335);}_0x5ae409[_0x3f13('0x3b')]=this[_0x3f13('0x52')]['plugins'][_0x3f13('0x41')](_0x3f13('0x76'))['me']['id'],_0x5ae409[_0x3f13('0x8c')]=_0x5ae409[_0x3f13('0x8c')]||null,_0x5ae409['id']=_0x5ae409['id']||_0x2c9d59(),_0x5ae409={..._0x5ae409,..._0x4266cb};const _0x2e74d4=this['addRevisionData'](_0x5ae409);_0x38db99['push'](_0x5ae409);const _0x230255=this['repository']['getIndex'](_0x2e74d4);if(0x0!==_0x230255){const _0x152756=this[_0x3f13('0x2a')][_0x3f13('0x18')](_0x230255-0x1);if(_0x152756[_0x3f13('0x8b')]!==_0x473327){const _0x545ce6=this[_0x3f13('0x5b')][_0x3f13('0xc3')](_0x473327,_0x152756[_0x3f13('0x61')]),_0x27d813={'id':_0x152756['id'],'diffData':_0x545ce6['diffData'],'authorsIds':_0x545ce6[_0x3f13('0x56')],'authors':_0x545ce6[_0x3f13('0x56')][_0x3f13('0xd4')](_0xc9a353=>this[_0x3f13('0x52')]['plugins']['get'](_0x3f13('0x76'))[_0x3f13('0x5c')](_0xc9a353)),'fromVersion':_0x473327};_0x152756===this['currentRevision']&&(_0x27d813[_0x3f13('0x9')]=new Date(_0x5ae409[_0x3f13('0x9')][_0x3f13('0xfc')]()+0xa)),_0x152756[_0x3f13('0x101')](_0x27d813,!0x0),delete _0x27d813[_0x3f13('0xf5')],_0x38db99[_0x3f13('0x84')](_0x27d813);}}if(this[_0x3f13('0x0')]){for(const _0x54422b of _0x38db99)this[_0x3f13('0x62')](_0x54422b['id'],_0x54422b,!0x0);this[_0x3f13('0x3d')]();}return _0x2e74d4;}[_0x3f13('0xcd')](_0x371942){const _0x183606=this[_0x3f13('0x2a')][_0x3f13('0xa6')](_0x371942);return this['adapter']&&_0x183606['on'](_0x3f13('0x101'),(_0x306736,_0x483579,_0x44ddcf)=>{_0x44ddcf||(this[_0x3f13('0x62')](_0x483579['id'],_0x483579,!0x0),this[_0x3f13('0x3d')]());}),this['repository'][_0x3f13('0xa0')](_0x183606,this[_0x3f13('0xa7')](_0x183606)),_0x183606;}async[_0x3f13('0x79')](_0x439b19){await this[_0x3f13('0x5a')](_0x439b19);const _0x191460={};for(const _0x30d88c in _0x439b19['diffData']){if(_0x439b19['diffData'][_0x30d88c][_0x3f13('0xda')]&&!_0x439b19[_0x3f13('0xbe')][_0x30d88c][_0x3f13('0xda')][_0x3f13('0x11')])continue;const _0x3d283c=this[_0x3f13('0xbc')](JSON[_0x3f13('0x78')](_0x439b19[_0x3f13('0xbe')][_0x30d88c][_0x3f13('0x29')])),_0x37c6f7=this[_0x3f13('0x52')]['editing'][_0x3f13('0x5e')][_0x3f13('0xaf')],_0x1c2e66=new _0x3f558d(_0x37c6f7,_0x3d283c['map'](_0xbcbe34=>J(_0xbcbe34,this[_0x3f13('0x52')])));this['editor'][_0x3f13('0xdc')]['processor'][_0x3f13('0x4a')](_0x3f13('0xb7')),_0x191460[_0x30d88c]=this[_0x3f13('0x52')][_0x3f13('0xdc')][_0x3f13('0xf2')][_0x3f13('0x25')](_0x1c2e66),this[_0x3f13('0x52')][_0x3f13('0xdc')][_0x3f13('0xf2')]['useFillerType']('default');}return _0x191460;}async['getRevisionRootsAttributes'](_0x4d39d5){await this['_loadRevisionData'](_0x4d39d5);const _0x5a7650={};for(const _0x3e00ca in _0x4d39d5[_0x3f13('0xbe')])_0x4d39d5[_0x3f13('0xbe')][_0x3e00ca]['attachChange']&&!_0x4d39d5['diffData'][_0x3e00ca][_0x3f13('0xda')][_0x3f13('0x11')]||(_0x5a7650[_0x3e00ca]=_0x4d39d5[_0x3f13('0xbe')][_0x3e00ca]['attributesAfter']||{});return _0x5a7650;}[_0x3f13('0x3d')](){if(0x0===this['_bufferedUpdates']['size'])return;if(this[_0x3f13('0x4')])return;let _0x5659a0=Array[_0x3f13('0x8d')](this[_0x3f13('0xfd')][_0x3f13('0xb0')]());this[_0x3f13('0xfd')][_0x3f13('0x65')]();for(let _0x389d78=0x0;_0x389d78<_0x5659a0['length'];_0x389d78++){const _0x30bcd7=_0x5659a0[_0x389d78];let _0x532bb8=!0x1;for(const _0x48d9b4 of Object[_0x3f13('0xe6')](_0x30bcd7))void 0x0===_0x30bcd7[_0x48d9b4]?delete _0x30bcd7[_0x48d9b4]:'id'!==_0x48d9b4&&(_0x532bb8=!0x0);_0x532bb8||(_0x5659a0[_0x389d78]=null);}if(_0x5659a0=_0x5659a0[_0x3f13('0xf1')](_0xed6d84=>null!==_0xed6d84),!_0x5659a0['length'])return;for(let _0x27d5cf=0x0;_0x27d5cf<_0x5659a0[_0x3f13('0x49')];_0x27d5cf++){const _0x195776=_0x5659a0[_0x27d5cf];void 0x0!==_0x195776[_0x3f13('0x8b')]&&void 0x0===_0x195776['toVersion']&&(_0x195776['toVersion']=this[_0x3f13('0x2a')][_0x3f13('0x18')](_0x195776['id'])[_0x3f13('0x61')]),void 0x0!==_0x195776[_0x3f13('0x61')]&&void 0x0===_0x195776['fromVersion']&&(_0x195776[_0x3f13('0x8b')]=this['repository'][_0x3f13('0x18')](_0x195776['id'])[_0x3f13('0x8b')]);}const _0x6cb933=this[_0x3f13('0x52')][_0x3f13('0x85')][_0x3f13('0x41')](_0x3f13('0x35'));this['_isPendingUpdate']=!0x0,this[_0x3f13('0x88')](),this[_0x3f13('0x0')]['updateRevisions'](_0x5659a0,_0x6cb933)[_0x3f13('0x3f')](()=>{this[_0x3f13('0x4')]=!0x1;})['then'](_0x451182=>{if(_0x451182)for(const _0x129383 of _0x451182)this[_0x3f13('0x30')]({'id':_0x129383['id'],'createdAt':_0x129383['createdAt']});this['_removePendingAction'](),this[_0x3f13('0x3d')]();});}[_0x3f13('0xe5')](_0x5cb695,_0x43c41e){let _0x862252=this[_0x3f13('0x52')][_0x3f13('0x85')]['get'](_0x3f13('0xd5')),_0x568e8d=this[_0x3f13('0x52')]['config'][_0x3f13('0x41')]('rootsAttributes');if(void 0x0===_0x862252){_0x862252={};for(const _0x3b9aec of this[_0x3f13('0x52')]['model'][_0x3f13('0xaf')]['getRootNames']())_0x862252[_0x3b9aec]='';}if('string'==typeof _0x862252&&(_0x862252={'main':_0x862252}),void 0x0===_0x568e8d){_0x568e8d={};for(const _0x10b173 of this['editor']['model'][_0x3f13('0xaf')]['getRootNames']())_0x568e8d[_0x10b173]={};}let _0x1766ab=!0x1;const _0x512a58=Object[_0x3f13('0xe6')](_0x862252),_0xd35517=Object[_0x3f13('0xe6')](_0x5cb695);for(const _0x4f38e7 of _0x512a58){if(_0x862252[_0x4f38e7]!==_0x5cb695[_0x4f38e7]&&''!==_0x862252[_0x4f38e7]['trim']()){_0x1766ab=!0x0;break;}if(!_0x19f0e8(_0x568e8d[_0x4f38e7],_0x43c41e[_0x4f38e7])&&Object[_0x3f13('0xe6')](_0x568e8d[_0x4f38e7])[_0x3f13('0x49')]>0x0){_0x1766ab=!0x0;break;}}_0x1766ab||(_0x1766ab=_0xd35517[_0x3f13('0xe0')](_0x898c3f=>!this[_0x3f13('0x52')][_0x3f13('0x98')][_0x3f13('0xaf')][_0x3f13('0x71')](_0x898c3f))),_0x1766ab&&_0x4d9010(_0x3f13('0xe3'),{'editorData':_0x862252,'editorRootsAttributes':_0x568e8d,'revisionData':_0x5cb695,'revisionRootsAttributes':_0x43c41e}),this[_0x3f13('0x52')]['config'][_0x3f13('0x6b')](_0x3f13('0xd5'),_0x5cb695),this[_0x3f13('0x52')][_0x3f13('0x85')][_0x3f13('0x6b')](_0x3f13('0x6c'),_0x43c41e);}[_0x3f13('0x88')](){if(!this[_0x3f13('0x90')]){const _0x203e77=this[_0x3f13('0x52')]['plugins'][_0x3f13('0x41')]('PendingActions');this[_0x3f13('0x90')]=_0x203e77['add'](_0x22cfae(this[_0x3f13('0x52')][_0x3f13('0x2f')],_0x3f13('0xbd')));}}[_0x3f13('0x20')](){this[_0x3f13('0x90')]&&(this[_0x3f13('0x52')]['plugins']['get'](_0x3f13('0xb9'))[_0x3f13('0xf0')](this['_pendingAction']),this[_0x3f13('0x90')]=null);}[_0x3f13('0xa7')](_0x2a47c9){const _0x2c41a1=this[_0x3f13('0x2a')]['getRevisions']();_0x2c41a1[_0x3f13('0xf8')]();let _0x17a991=0x0;for(;_0x17a991<_0x2c41a1[_0x3f13('0x49')];){const _0x77741=_0x2c41a1[_0x17a991];if(_0x77741===this['currentRevision']){_0x17a991++;continue;}if(_0x77741['id']===this[_0x3f13('0xf7')])break;const _0x389948=_0x2a47c9['toVersion']-_0x77741[_0x3f13('0x61')]||_0x2a47c9[_0x3f13('0x8b')]-_0x77741[_0x3f13('0x8b')];if(_0x389948>0x0)break;if(_0x389948<0x0)_0x17a991++;else{if(!_0x2a47c9[_0x3f13('0x9d')]&&_0x77741[_0x3f13('0x9d')])break;if(_0x77741['creator']||!_0x2a47c9[_0x3f13('0x9d')]){if(_0x2a47c9[_0x3f13('0x9')]>_0x77741[_0x3f13('0x9')])break;_0x17a991++;}else _0x17a991++;}}return _0x17a991;}[_0x3f13('0x30')](_0x392128){const _0x12009f=this[_0x3f13('0x2a')][_0x3f13('0x18')](_0x392128['id']);if(_0x392128[_0x3f13('0x9')]&&(_0x392128['createdAt']=new Date(_0x392128[_0x3f13('0x9')])),_0x392128[_0x3f13('0x56')]){const _0x3de663=this[_0x3f13('0x52')][_0x3f13('0xce')]['get'](_0x3f13('0x76'));_0x392128[_0x3f13('0xf5')]=_0x392128[_0x3f13('0x56')][_0x3f13('0xd4')](_0x187f00=>_0x3de663[_0x3f13('0x5c')](_0x187f00));}_0x12009f[_0x3f13('0x101')](_0x392128,!0x0);}[_0x3f13('0x46')]({revision:_0x2eb90d=null,from:_0x433624=null,to:_0x58d16b=null}){_0x433624=null!==_0x433624?_0x433624:_0x2eb90d['fromVersion'],_0x58d16b=null!==_0x58d16b?_0x58d16b:_0x2eb90d[_0x3f13('0x61')];const _0x313dcc=this['_revisionDataBuilder']['getData'](_0x433624,_0x58d16b),_0x20da82={'diffData':_0x313dcc['diffData'],'authorsIds':_0x313dcc[_0x3f13('0x56')],'fromVersion':_0x433624,'toVersion':_0x58d16b};if(!_0x2eb90d||_0x58d16b!==_0x2eb90d[_0x3f13('0x61')]){const _0x2dc901=_0x58d16b-0x1,_0x4de0aa=this[_0x3f13('0x15')][_0x3f13('0xa2')][_0x3f13('0x31')](_0x2dc901);_0x20da82['createdAt']=_0x4de0aa&&_0x4de0aa['createdAt']||new Date();}if(this[_0x3f13('0x80')]&&_0x433624===this[_0x3f13('0x80')][_0x3f13('0x8b')])for(const _0x1082e3 of this[_0x3f13('0x80')]['authors'])_0x20da82[_0x3f13('0x56')]['includes'](_0x1082e3['id'])||_0x20da82[_0x3f13('0x56')][_0x3f13('0x84')](_0x1082e3['id']);return _0x20da82;}[_0x3f13('0x5a')](_0x4888e0){if(!_0x4888e0||_0x4888e0[_0x3f13('0xbe')])return Promise[_0x3f13('0xd2')]();{const _0x2fd9ff=this[_0x3f13('0x52')]['config']['get']('collaboration.channelId');return this[_0x3f13('0x0')][_0x3f13('0x18')]({'channelId':_0x2fd9ff,'revisionId':_0x4888e0['id']})['then'](_0x325781=>{_0x4888e0[_0x3f13('0xbe')]=_0x325781[_0x3f13('0xbe')];});}}['_bufferUpdate'](_0x3bbfe6,_0x14d145,_0x1a3856){if(this[_0x3f13('0xfd')][_0x3f13('0x1c')](_0x3bbfe6)){const _0x4c48c8=this[_0x3f13('0xfd')][_0x3f13('0x41')](_0x3bbfe6);_0x14d145=_0x1a3856?{..._0x4c48c8,..._0x14d145}:{..._0x14d145,..._0x4c48c8};}this[_0x3f13('0xfd')][_0x3f13('0x6b')](_0x3bbfe6,_0x14d145);}[_0x3f13('0x2d')](_0x3dda6b){const _0x40ab35=this[_0x3f13('0x2a')][_0x3f13('0xbf')]();_0x40ab35['reverse'](),_0x40ab35[_0x3f13('0x96')]();const _0x299fe2=_0x40ab35['find'](_0x1760d4=>_0x1760d4[_0x3f13('0x61')]<=_0x3dda6b)[_0x3f13('0x61')];return _0x299fe2<this[_0x3f13('0x87')]?this['_startingVersion']:_0x299fe2;}[_0x3f13('0x57')](_0x590816){const _0x445cdf=this['repository'][_0x3f13('0x18')](this[_0x3f13('0x2a')][_0x3f13('0x49')]-0x1);if(_0x445cdf)this[_0x3f13('0xf7')]=_0x445cdf['id'];else{const _0x406cc4=!this[_0x3f13('0x52')][_0x3f13('0x98')][_0x3f13('0xaf')][_0x3f13('0x7d')][_0x3f13('0x8')](_0x1023ae=>this['editor'][_0x3f13('0x98')][_0x3f13('0xa')](_0x1023ae)),_0x427846=this[_0x3f13('0x52')][_0x3f13('0xce')][_0x3f13('0x41')](_0x3f13('0x76'))['me']['id'],_0x3c5314=_0x22cfae(this['editor'][_0x3f13('0x2f')],_0x406cc4?'Empty\x20document':_0x3f13('0xe'));this['_makeRevision']({'from':_0x590816,'to':_0x590816,'id':this[_0x3f13('0xf7')],'name':_0x3c5314,'creatorId':_0x427846});}}[_0x3f13('0xbb')](_0x40906d){const _0x45c87c=this[_0x3f13('0x15')]['getCurrentRevisionId']();this[_0x3f13('0xae')]=this[_0x3f13('0x2a')][_0x3f13('0x18')](_0x45c87c),this['currentRevision']||(this[_0x3f13('0xae')]=this[_0x3f13('0xcc')]({'from':_0x40906d,'to':_0x40906d,'id':_0x45c87c,'name':'','creatorId':null}));}[_0x3f13('0xcc')]({name:_0xfe22a3,from:_0x57d2a3,to:_0x1a6872,creatorId:_0x4434a2,id:_0x56e886}){const _0x25327e=this[_0x3f13('0x46')]({'from':_0x57d2a3,'to':_0x1a6872});_0x25327e[_0x3f13('0x8c')]=_0xfe22a3,_0x25327e[_0x3f13('0x3b')]=_0x4434a2,_0x25327e['id']=_0x56e886;const _0x1109e3=this[_0x3f13('0xcd')](_0x25327e);return this[_0x3f13('0x0')]&&this[_0x3f13('0x62')](_0x25327e['id'],_0x25327e,!0x0),_0x1109e3;}['_setConversion'](){this[_0x3f13('0x52')]['conversion'][_0x3f13('0xd7')]('dataDowncast')['markerToData']({'model':_0x3f13('0x74')});}[_0x3f13('0xbc')](_0x172c5e){return(_0x172c5e=_0x172c5e[_0x3f13('0xf1')](_0x122f15=>!_0x122f15['name']||_0x3f13('0x2')!==_0x122f15['name']&&_0x3f13('0x95')!==_0x122f15[_0x3f13('0x8c')]))[_0x3f13('0xc1')](_0x3be127=>{_0x3f13('0x2c')!=typeof _0x3be127&&(_0x3be127['children']=this[_0x3f13('0xbc')](_0x3be127[_0x3f13('0x38')]),_0x3be127[_0x3f13('0x40')]=_0x3be127['attributes'][_0x3f13('0xf1')](_0x48921d=>!_0x48921d[0x0]['startsWith'](_0x3f13('0x43'))));}),_0x172c5e;}}function J(_0x1dc1de,_0x409ac2){const _0x289314=_0x409ac2[_0x3f13('0xb4')][_0x3f13('0x5e')][_0x3f13('0xaf')];if('string'==typeof _0x1dc1de)return new _0x2794bb(_0x289314,_0x1dc1de);{const _0x988393=_0x1dc1de[_0x3f13('0x38')][_0x3f13('0xd4')](_0x3672de=>J(_0x3672de,_0x409ac2));return new(B[_0x1dc1de['type']]||_0x540977)(_0x289314,_0x1dc1de['name'],_0x1dc1de[_0x3f13('0x40')],_0x988393);}}class H{constructor(_0x482287){this[_0x3f13('0x52')]=_0x482287,this[_0x3f13('0x63')]=new Map(),this[_0x3f13('0x5')]=-0x1,this[_0x3f13('0x3c')]=-0x1,this[_0x3f13('0xba')]=new Map(),this[_0x3f13('0x36')]=new Map(),this[_0x3f13('0x77')]=new Map(),this[_0x3f13('0x17')]=new Map(),this[_0x3f13('0x7e')]=new Map(),this[_0x3f13('0xa4')]=new Map(),this[_0x3f13('0x50')]=new Map(),this[_0x3f13('0xc5')]=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this[_0x3f13('0x7f')]=0x1;}['init'](_0x5de701){this['source']=_0x5de701;const _0x457a47=new Map(),_0x23207a=new Map(),_0x3fa6db=this[_0x3f13('0x52')][_0x3f13('0x98')][_0x3f13('0xaf')][_0x3f13('0x7d')][_0x3f13('0xd4')](_0x26e0e6=>_0x26e0e6[_0x3f13('0x86')]);for(const _0x35567c of _0x3fa6db){const _0x4be4f1=this[_0x3f13('0x52')][_0x3f13('0x98')]['document'][_0x3f13('0x71')](_0x35567c),_0x323bef=q(_0x4be4f1);_0x457a47['set'](_0x35567c,_0x323bef),_0x23207a[_0x3f13('0x6b')](_0x35567c,Object['fromEntries'](_0x4be4f1[_0x3f13('0x103')]()));}const _0x3e71fc=Array[_0x3f13('0x8d')](this['editor'][_0x3f13('0x98')]['markers'])['map'](_0x5c4b86=>[_0x5c4b86[_0x3f13('0x8c')],_0x5c4b86[_0x3f13('0x9a')]()]),_0x293839=this[_0x3f13('0x97')]['version'];this[_0x3f13('0x51')](_0x293839,_0x457a47,_0x3e71fc,_0x23207a),this[_0x3f13('0x45')]=this[_0x3f13('0x7f')];const _0x1fb81a=new Map(),_0x46454c=new Map();for(const _0x2fcfbb of _0x3fa6db){const _0x1aa63b=G(_0x2fcfbb);_0x1fb81a['set'](_0x2fcfbb,_0x1aa63b),_0x46454c[_0x3f13('0x6b')](_0x2fcfbb,{});}this[_0x3f13('0x51')](Number[_0x3f13('0x64')],_0x1fb81a,[],_0x46454c);}[_0x3f13('0xc3')](_0x4827d9,_0x1c8033){if(this['_lastFrom']===_0x4827d9&&this['_lastTo']<=_0x1c8033)this['_savedMetaData'][_0x3f13('0x1b')]>0x1&&this['_removeMetaData'](this[_0x3f13('0x3c')]),this[_0x3f13('0xca')](this[_0x3f13('0x3c')],_0x1c8033,!0x0);else{if(!this[_0x3f13('0x63')][_0x3f13('0x1c')](_0x4827d9)){const _0x4ee467=this[_0x3f13('0x73')](_0x4827d9);this['_calculateMetaData'](_0x4ee467,_0x4827d9,!0x1);}this['_calculateMetaData'](_0x4827d9,_0x1c8033,!0x0);}return this[_0x3f13('0x5')]=_0x4827d9,this[_0x3f13('0x3c')]=_0x1c8033,this[_0x3f13('0xac')]();}[_0x3f13('0x9e')](_0x7b2749){this[_0x3f13('0x3a')](),this[_0x3f13('0x5')]=_0x7b2749[_0x3f13('0x8b')],this['_lastTo']=_0x7b2749[_0x3f13('0x61')];for(const _0x3ee345 in _0x7b2749[_0x3f13('0xbe')]){const _0x1a234f=_0x7b2749[_0x3f13('0xbe')][_0x3ee345][_0x3f13('0xda')],_0x33847b=_0x5a8efe(_0x7b2749['diffData'][_0x3ee345][_0x3f13('0xf9')])||{},_0x2051df=this[_0x3f13('0x14')](_0x7b2749[_0x3f13('0xbe')][_0x3ee345][_0x3f13('0x54')]);_0x2051df[_0x3f13('0x86')]=_0x3ee345,_0x2051df[_0x3f13('0xe9')]=!_0x1a234f||!_0x1a234f[_0x3f13('0x11')],_0x2051df['isAttached']=()=>_0x2051df[_0x3f13('0xe9')],this[_0x3f13('0x17')][_0x3f13('0x6b')](_0x3ee345,_0x2051df),this['_baseRootsAttributes'][_0x3f13('0x6b')](_0x3ee345,_0x33847b),_0x1a234f&&this[_0x3f13('0x42')][_0x3f13('0x6b')](_0x3ee345,_0x1a234f);const _0x5bfe7c=this['_makeIdsRoot'](_0x2051df);this[_0x3f13('0x50')][_0x3f13('0x6b')](_0x3ee345,_0x5bfe7c);for(const [_0x57a65b,_0x106885]of _0x2051df[_0x3f13('0x69')]){if(!_0x57a65b[_0x3f13('0x32')](_0x3f13('0xc6')))continue;const _0xa9920f=_0x57a65b[_0x3f13('0x93')](':')[0x2];for(const _0x55e37a of _0x106885[_0x3f13('0x68')]({'singleCharacters':!0x0})){const _0x5b03dd=this[_0x3f13('0xe1')](_0x55e37a),_0x570262=_0x3f13('0xed')==_0x55e37a[_0x3f13('0x92')]?_0x55e37a[_0x3f13('0x9b')][_0x3f13('0x13')][_0x3f13('0x1a')](0x0,-0x1):_0x55e37a[_0x3f13('0x9b')]['path'],_0x3cebcb=_0x5bfe7c[_0x3f13('0x60')](_0x570262)[_0x3f13('0xe7')](_0x5b03dd);this[_0x3f13('0xc5')][_0x3f13('0x6b')](_0x3cebcb,{'userId':_0xa9920f});}}}this[_0x3f13('0x45')]=this[_0x3f13('0x7f')];const _0x25f5ae=[...Array(this['_revisionId'])[_0x3f13('0xe6')]()][_0x3f13('0x1a')](0x1)[_0x3f13('0xf1')](_0x39cb1f=>!this[_0x3f13('0xc5')][_0x3f13('0x1c')](_0x39cb1f));let _0x5ce4cb=0x0;const _0x21b361=new Map();for(const _0x43e09f in _0x7b2749[_0x3f13('0xbe')]){const _0x3b21b6=_0x7b2749['diffData'][_0x43e09f]['attachChange'],_0x5d1134=_0x5a8efe(_0x7b2749[_0x3f13('0xbe')][_0x43e09f]['attributesAfter'])||{},_0x16f95b=this[_0x3f13('0x14')](_0x7b2749[_0x3f13('0xbe')][_0x43e09f]['insertions']);_0x16f95b['rootName']=_0x43e09f,_0x16f95b[_0x3f13('0xe9')]=!_0x3b21b6||_0x3b21b6[_0x3f13('0x11')],_0x16f95b[_0x3f13('0x11')]=()=>_0x16f95b[_0x3f13('0xe9')],this[_0x3f13('0x36')][_0x3f13('0x6b')](_0x43e09f,_0x16f95b),this[_0x3f13('0x77')][_0x3f13('0x6b')](_0x43e09f,_0x5d1134);const _0x50def2=this[_0x3f13('0x9f')](_0x16f95b,Number[_0x3f13('0x64')]);this[_0x3f13('0xa4')][_0x3f13('0x6b')](_0x43e09f,_0x50def2),_0x21b361[_0x3f13('0x6b')](_0x43e09f,_0x16f95b[_0x3f13('0x11')]()?_0x5d1134:{});for(const [_0x5d500e,_0xd6ed19]of _0x16f95b['markers']){if(!_0x5d500e[_0x3f13('0x32')](_0x3f13('0xc6')))continue;const _0x572fa4=_0x5d500e['split'](':')[0x2];for(const _0x598370 of _0xd6ed19[_0x3f13('0x68')]({'singleCharacters':!0x0})){const _0x2e476c=this['_getVidAttributeName'](_0x598370),_0x44e5bb=this[_0x3f13('0x7f')]++,_0x4dcd86=_0x3f13('0xed')==_0x598370[_0x3f13('0x92')]?_0x598370[_0x3f13('0x9b')][_0x3f13('0x13')][_0x3f13('0x1a')](0x0,-0x1):_0x598370[_0x3f13('0x9b')][_0x3f13('0x13')];_0x50def2[_0x3f13('0x60')](_0x4dcd86)[_0x3f13('0xb1')](_0x2e476c,_0x44e5bb),this[_0x3f13('0xc5')][_0x3f13('0x6b')](_0x44e5bb,{'userId':_0x572fa4});}}for(const _0x5f467c of this[_0x3f13('0x52')]['model'][_0x3f13('0xa9')](_0x16f95b)[_0x3f13('0x68')]({'singleCharacters':!0x0})){const _0x247023=this[_0x3f13('0xe1')](_0x5f467c),_0x12442b='elementEnd'==_0x5f467c['type']?_0x5f467c['previousPosition']['path']['slice'](0x0,-0x1):_0x5f467c['previousPosition']['path'],_0x60a8a1=_0x50def2[_0x3f13('0x60')](_0x12442b);_0x60a8a1['getAttribute'](_0x247023)>0x0||_0x60a8a1[_0x3f13('0xb1')](_0x247023,_0x25f5ae[_0x5ce4cb++]);}for(const [_0x234aa2,_0x492045]of _0x16f95b[_0x3f13('0x69')])_0x234aa2[_0x3f13('0x32')](_0x3f13('0xc6'))||this['_markers'][_0x3f13('0x6b')](_0x234aa2,_0x492045);}const _0x2c173e=G(_0x3f13('0xc'));this['_baseRoots'][_0x3f13('0x6b')](_0x3f13('0xc'),_0x2c173e),this[_0x3f13('0x50')]['set']('$graveyard',this[_0x3f13('0x9f')](_0x2c173e,0x1));const _0x549682=G(_0x3f13('0xc'));this['_diffRoots'][_0x3f13('0x6b')](_0x3f13('0xc'),_0x549682),this[_0x3f13('0xa4')]['set'](_0x3f13('0xc'),this[_0x3f13('0x9f')](_0x549682,0x1));const _0x2e70b0=Array[_0x3f13('0x8d')](this['_diffRoots'])['map'](([_0x3156e6,_0x11984e])=>[_0x3156e6,q(_0x11984e)]);this['_saveMetaData'](this['_lastTo'],_0x2e70b0,this[_0x3f13('0xba')],_0x21b361);}[_0x3f13('0x14')](_0x5d27e2){const _0x394896=JSON[_0x3f13('0x78')](_0x5d27e2),_0x4a57ac=this[_0x3f13('0x52')][_0x3f13('0xb4')][_0x3f13('0x5e')][_0x3f13('0xaf')],_0x4b0ede=new _0x3f558d(_0x4a57ac,_0x394896['map'](_0x26e45a=>J(_0x26e45a,this['editor'])));return this[_0x3f13('0x52')][_0x3f13('0xdc')][_0x3f13('0x1e')](_0x4b0ede);}['_saveMetaData'](_0x31bc9b,_0x34c0b8,_0x5bb80e,_0x5c3e59){const _0x180a33=new Map(_0x34c0b8),_0x287a78=new Map(_0x5a8efe(_0x5c3e59)),_0x3c0e2c=new Map();for(const [_0x3ccc54,_0x6490ad]of _0x5bb80e)_0x3c0e2c[_0x3f13('0x6b')](_0x3ccc54,{'start':_0x6490ad['start']['clone'](),'end':_0x6490ad['end'][_0x3f13('0x1f')](),'rootName':_0x6490ad[_0x3f13('0x4e')][_0x3f13('0x86')]});this[_0x3f13('0x63')][_0x3f13('0x6b')](_0x31bc9b,{'roots':_0x180a33,'markers':_0x3c0e2c,'rootsAttributes':_0x287a78});}[_0x3f13('0x21')](_0x5562b7){this['_savedMetaData'][_0x3f13('0xdf')](_0x5562b7);}[_0x3f13('0xe2')](){this[_0x3f13('0x3a')](),this[_0x3f13('0x5')]=-0x1,this['_lastTo']=-0x1,this[_0x3f13('0x63')]['clear'](),this[_0x3f13('0x53')](this['source']);}[_0x3f13('0x3a')](){this['_touched'][_0x3f13('0x65')](),this[_0x3f13('0xb3')]['clear'](),this[_0x3f13('0x42')]['clear'](),this['_diffRoots'][_0x3f13('0x65')](),this[_0x3f13('0x77')][_0x3f13('0x65')](),this[_0x3f13('0x17')]['clear'](),this[_0x3f13('0x7e')]['clear'](),this[_0x3f13('0xa4')][_0x3f13('0x65')](),this['_baseIdsRoots'][_0x3f13('0x65')](),this[_0x3f13('0xba')]['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this[_0x3f13('0x7f')];}[_0x3f13('0x9f')](_0x5e7802,_0x5380b8=null){let _0x2c04b3=null;_0x5e7802['is'](_0x3f13('0xea'))||(_0x2c04b3=new _0x330522(_0x5e7802['name'],{'vid_start':null===_0x5380b8?this['_revisionId']++:_0x5380b8++}));const _0x1ecae3=[];for(const _0x33804c of _0x5e7802[_0x3f13('0x6')]())if(_0x33804c['is'](_0x3f13('0xd'))){_0x1ecae3[_0x3f13('0x84')](this[_0x3f13('0x9f')](_0x33804c,_0x5380b8));const _0xc800e7=_0x1ecae3[_0x1ecae3[_0x3f13('0x49')]-0x1];null!==_0x5380b8&&(_0x5380b8=_0xc800e7['is'](_0x3f13('0xd'),_0x3f13('0xc0'))?_0xc800e7[_0x3f13('0xe7')]('vid')+0x1:_0xc800e7['getAttribute'](_0x3f13('0x100'))+0x1);}else for(let _0x34bc95=0x0;_0x34bc95<_0x33804c[_0x3f13('0x6d')];_0x34bc95++)_0x1ecae3[_0x3f13('0x84')](new _0x330522(_0x3f13('0xc0'),{'vid':null===_0x5380b8?this[_0x3f13('0x7f')]++:_0x5380b8++}));if(_0x5e7802['is'](_0x3f13('0xea'))){const _0xc5c3d5=G(_0x5e7802[_0x3f13('0x86')]);return _0xc5c3d5[_0x3f13('0x1')](0x0,_0x1ecae3),_0xc5c3d5;}return _0x2c04b3[_0x3f13('0xb1')](_0x3f13('0x100'),null===_0x5380b8?this[_0x3f13('0x7f')]++:_0x5380b8++),_0x2c04b3[_0x3f13('0x1')](0x0,_0x1ecae3),_0x2c04b3;}[_0x3f13('0x7a')](_0x53df5e,_0x1ae000,_0x2fd83e){this[_0x3f13('0x3a')]();const {roots:_0xe26da1,markers:_0x16a441,rootsAttributes:_0x390836}=this[_0x3f13('0x63')][_0x3f13('0x41')](_0x53df5e);this['_baseRoots']=new Map(_0xe26da1),this[_0x3f13('0x7e')]=new Map(_0x5a8efe(_0x390836));for(const [_0x54df92,_0x4ea17f]of this['_baseRoots'])if(_0x3f13('0xc')!==_0x54df92&&(this['_diffRoots'][_0x3f13('0x6b')](_0x54df92,q(_0x4ea17f)),this[_0x3f13('0x77')]=new Map(_0x5a8efe(_0x390836)),_0x2fd83e)){const _0x2cd5d5=this['_revisionId'];this[_0x3f13('0xa4')][_0x3f13('0x6b')](_0x54df92,this[_0x3f13('0x9f')](_0x4ea17f)),this[_0x3f13('0x50')][_0x3f13('0x6b')](_0x54df92,this[_0x3f13('0x9f')](_0x4ea17f,_0x2cd5d5));}this[_0x3f13('0x45')]=this[_0x3f13('0x7f')],this[_0x3f13('0x36')][_0x3f13('0x6b')]('$graveyard',q(this[_0x3f13('0x17')][_0x3f13('0x41')](_0x3f13('0xc')))),_0x2fd83e&&this['_idsRoots'][_0x3f13('0x6b')]('$graveyard',this[_0x3f13('0x9f')](this['_baseRoots'][_0x3f13('0x41')]('$graveyard')));for(const [_0xb70e57,_0x124d2c]of _0x16a441){const _0x30e8ba=this[_0x3f13('0x17')][_0x3f13('0x41')](_0x124d2c[_0x3f13('0x86')]),_0x8af8fe=this[_0x3f13('0x36')][_0x3f13('0x41')](_0x124d2c[_0x3f13('0x86')]),_0x16eb22=new _0x21a2c5(this[_0x3f13('0x26')](_0x124d2c[_0x3f13('0xa8')],_0x30e8ba),this[_0x3f13('0x26')](_0x124d2c[_0x3f13('0x94')],_0x30e8ba)),_0x524c4d=this[_0x3f13('0x55')](_0x16eb22,_0x8af8fe);_0x30e8ba[_0x3f13('0x69')][_0x3f13('0x6b')](_0xb70e57,_0x16eb22),this[_0x3f13('0xba')][_0x3f13('0x6b')](_0xb70e57,_0x524c4d);}this[_0x3f13('0xca')](_0x53df5e,_0x1ae000,_0x2fd83e);}[_0x3f13('0xca')](_0x7d437,_0x5da304,_0x72d63d){for(const _0x455c34 of this[_0x3f13('0x97')]['getOperations'](_0x7d437,_0x5da304))this[_0x3f13('0x81')](_0x455c34,_0x72d63d);for(const _0x133e9b of this[_0x3f13('0x36')][_0x3f13('0xb0')]())_0x133e9b[_0x3f13('0x69')][_0x3f13('0x65')]();for(const [_0x4b3ae0,_0x28b646]of this[_0x3f13('0xba')]){this[_0x3f13('0x36')][_0x3f13('0x41')](_0x28b646[_0x3f13('0x4e')][_0x3f13('0x86')])[_0x3f13('0x69')][_0x3f13('0x6b')](_0x4b3ae0,_0x28b646[_0x3f13('0x1f')]());}const _0x3d290f=new Map(),_0xb02dd1=new Map();for(const [_0x2da18a,_0x5535c5]of this['_diffRoots'])_0x3d290f['set'](_0x2da18a,q(_0x5535c5)),_0xb02dd1[_0x3f13('0x6b')](_0x2da18a,this[_0x3f13('0x77')]['get'](_0x2da18a));this[_0x3f13('0x51')](_0x5da304,_0x3d290f,this['_markers'],_0xb02dd1);}[_0x3f13('0x73')](_0x293637){const _0x3251bd=Array['from'](this[_0x3f13('0x63')][_0x3f13('0xe6')]());_0x3251bd[_0x3f13('0x99')]((_0x14694a,_0x28b051)=>_0x14694a-_0x28b051),_0x3251bd[_0x3f13('0xf8')]();for(const _0x4bbd7b of _0x3251bd)if(_0x4bbd7b<_0x293637)return _0x4bbd7b;return Number[_0x3f13('0x64')];}['_copyMarkers'](_0x48f7cf,_0x4c14f4){const _0x149e95=Array[_0x3f13('0x8d')](_0x4c14f4[_0x3f13('0x69')])['map'](([_0x388568,_0xc5859b])=>[_0x388568,this['_fixRange'](_0xc5859b,_0x48f7cf)]);_0x48f7cf[_0x3f13('0x69')]=new Map(_0x149e95);}['_transformMarkers'](_0x405c81){for(const _0x3128d6 of this['_markers'][_0x3f13('0xb0')]()){const _0x1630e3=_0x3128d6['getTransformedByOperation'](_0x405c81),_0x23bab1=_0x21a2c5[_0x3f13('0x4b')](_0x1630e3);_0x3128d6[_0x3f13('0xa8')]=_0x23bab1['start'],_0x3128d6[_0x3f13('0x94')]=_0x23bab1[_0x3f13('0x94')];}}[_0x3f13('0x81')](_0x448447,_0x5b672e){if(_0x3f13('0xfb')==_0x448447[_0x3f13('0x92')]||'detachRoot'==_0x448447[_0x3f13('0x92')])return void this[_0x3f13('0xfa')](_0x448447,_0x5b672e);if('insert'==_0x448447[_0x3f13('0x92')]){const _0x4f163c=_0x448447[_0x3f13('0x48')][_0x3f13('0x4e')][_0x3f13('0x86')];this[_0x3f13('0x36')][_0x3f13('0x1c')](_0x4f163c)||(this[_0x3f13('0x36')]['set'](_0x4f163c,G(_0x4f163c,!0x0)),this[_0x3f13('0x77')][_0x3f13('0x6b')](_0x4f163c,{}),_0x5b672e&&this[_0x3f13('0xa4')][_0x3f13('0x6b')](_0x4f163c,G(_0x4f163c,!0x0)));}else{if('addRootAttribute'==_0x448447[_0x3f13('0x92')]||_0x3f13('0x1d')==_0x448447['type']||_0x3f13('0xf4')==_0x448447[_0x3f13('0x92')])return void this['_handleRootAttributeOperation'](_0x448447);}const _0x1da407=this[_0x3f13('0x82')](_0x448447,this[_0x3f13('0x36')]);if(_0x3f13('0x34')!==_0x448447[_0x3f13('0x92')]&&(_0x1da407[_0x3f13('0xb8')](),this[_0x3f13('0x16')](_0x1da407)),_0x5b672e)switch(_0x1da407[_0x3f13('0x92')]){case _0x3f13('0xc9'):this[_0x3f13('0xaa')](_0x448447);break;case _0x3f13('0x7b'):case'remove':case _0x3f13('0xc2'):this[_0x3f13('0x6a')](_0x448447);break;case'merge':this[_0x3f13('0xf3')](_0x448447);break;case _0x3f13('0x93'):this[_0x3f13('0xd6')](_0x448447);break;case _0x3f13('0x34'):this[_0x3f13('0xb6')](_0x448447);}}[_0x3f13('0x82')](_0x4f9a9f,_0x1b0c23){const _0x1ad1e5=_0x4f9a9f[_0x3f13('0x1f')]();return _0x1ad1e5['_authorId']=_0x4f9a9f['_authorId'],this[_0x3f13('0xb5')](_0x1ad1e5,_0x1b0c23),_0x1ad1e5;}[_0x3f13('0x12')](_0x5bfab3){return _0x5bfab3[_0x3f13('0xd4')](_0x57742b=>{const _0xe1d926=this[_0x3f13('0xe1')](_0x57742b);return Number(_0x57742b['item'][_0x3f13('0xe7')](_0xe1d926));});}[_0x3f13('0xdd')](_0x2254d7,_0x4fda42){if(_0x2254d7['is']('element','$text'))_0x4fda42['push']({'item':_0x2254d7,'type':'text'});else{_0x2254d7['is'](_0x3f13('0xd'))&&_0x4fda42[_0x3f13('0x84')]({'item':_0x2254d7,'type':_0x3f13('0x4c')});for(const _0x72b2e7 of _0x2254d7[_0x3f13('0x6')]())this[_0x3f13('0xdd')](_0x72b2e7,_0x4fda42);_0x2254d7['is'](_0x3f13('0xd'))&&_0x4fda42['push']({'item':_0x2254d7,'type':_0x3f13('0xed')});}return _0x4fda42;}[_0x3f13('0xac')](){const _0x1851e4=new Map(this[_0x3f13('0xc5')]),_0x3f3890=new Map(_0x1851e4),_0x240255=new Map(),_0x395a91={'insertions':{},'deletions':{}},_0x2f337e={'insertions':{},'deletions':{}},_0x5f4f0b=new Map(),_0x5e79dc=new Set([...this[_0x3f13('0x17')]['keys'](),...this[_0x3f13('0x36')][_0x3f13('0xe6')]()]);_0x5e79dc['delete']('$graveyard');for(const _0x1cb59f of _0x5e79dc){const _0x208363=this[_0x3f13('0x36')][_0x3f13('0x41')](_0x1cb59f)||G(_0x1cb59f,!0x1),_0x1180e2=this[_0x3f13('0x17')][_0x3f13('0x41')](_0x1cb59f)||G(_0x1cb59f,!0x1);_0x208363[_0x3f13('0x11')]()||_0x1180e2[_0x3f13('0x11')]()?(_0x395a91[_0x3f13('0x29')][_0x1cb59f]=q(_0x208363),_0x395a91[_0x3f13('0x54')][_0x1cb59f]=q(_0x1180e2),this['_copyMarkers'](_0x395a91[_0x3f13('0x54')][_0x1cb59f],_0x1180e2),this['_copyMarkers'](_0x395a91[_0x3f13('0x29')][_0x1cb59f],_0x208363),_0x2f337e[_0x3f13('0x29')][_0x1cb59f]=this['_generateTape'](this[_0x3f13('0xa4')]['get'](_0x1cb59f),[]),_0x2f337e[_0x3f13('0x54')][_0x1cb59f]=this['_generateTape'](this[_0x3f13('0x50')][_0x3f13('0x41')](_0x1cb59f)||G(_0x1cb59f,!0x1),[])):_0x5e79dc[_0x3f13('0xdf')](_0x1cb59f);}for(const _0x59a6ed of _0x5e79dc){const _0x571312=_0x2f337e[_0x3f13('0x29')][_0x59a6ed];for(const _0x344ed4 of _0x571312){const _0x20676e=this[_0x3f13('0xe1')](_0x344ed4),_0x487741=_0x344ed4[_0x3f13('0x2b')]['getAttribute'](_0x20676e);_0x3f3890[_0x3f13('0xdf')](_0x487741),_0x487741>=this['_startingRevisionId']&&_0x240255[_0x3f13('0x6b')](_0x487741,_0x1851e4[_0x3f13('0x41')](_0x487741));}}for(const _0x59074c of _0x5e79dc){const _0x1684f6=_0x2f337e[_0x3f13('0x29')][_0x59074c],_0x9d2602=this[_0x3f13('0x12')](_0x2f337e['deletions'][_0x59074c]);let _0x4663b7=0x0;for(const _0x16bac6 of _0x1684f6){const _0x575efe=this[_0x3f13('0xe1')](_0x16bac6),_0x5b99a6=_0x16bac6[_0x3f13('0x2b')][_0x3f13('0xe7')](_0x575efe);if(!_0x240255['has'](_0x5b99a6)&&!_0x5f4f0b['has'](_0x5b99a6)){if(_0x3f3890[_0x3f13('0x1c')](_0x5b99a6))_0x4663b7++;else{if(_0x5b99a6!=_0x9d2602[_0x4663b7]){const _0x3bddc1=_0x1851e4[_0x3f13('0x41')](_0x5b99a6)||_0x1851e4[_0x3f13('0x41')](_0x9d2602[_0x4663b7]);for(;_0x5b99a6!=_0x9d2602[_0x4663b7];)_0x3f3890[_0x3f13('0x1c')](_0x9d2602[_0x4663b7])||(_0x5f4f0b[_0x3f13('0x6b')](_0x9d2602[_0x4663b7],_0x3bddc1),_0x1851e4['set'](_0x9d2602[_0x4663b7],_0x3bddc1)),_0x4663b7++;}_0x4663b7++;}}}}for(const _0x544819 of _0x5e79dc){const _0x354939=_0x2f337e[_0x3f13('0x29')][_0x544819];for(const _0x502bc1 of _0x354939){const _0x11588c=this['_getVidAttributeName'](_0x502bc1),_0x166f1d=_0x502bc1[_0x3f13('0x2b')][_0x3f13('0xe7')](_0x11588c);if(_0x5f4f0b[_0x3f13('0x1c')](_0x166f1d)){const _0x415c43=_0x5f4f0b[_0x3f13('0x41')](_0x166f1d);_0x3f3890[_0x3f13('0x1c')](_0x166f1d)||_0x3f3890[_0x3f13('0x6b')](_0x166f1d,{..._0x415c43}),_0x240255[_0x3f13('0x6b')](_0x166f1d,{..._0x415c43});}}}for(const _0x3d6a63 of _0x3f3890[_0x3f13('0xe6')]())_0x3d6a63>=this[_0x3f13('0x45')]&&_0x3f3890[_0x3f13('0xdf')](_0x3d6a63);const _0x28bdbc=new Map();for(const _0x4e013a of _0x5e79dc){let _0x536ae8=_0x2f337e[_0x3f13('0x29')][_0x4e013a];for(const _0x3e65cb of _0x536ae8)if(_0x3e65cb[_0x3f13('0x2b')]['is']('element',_0x3f13('0xa3'))){const _0x1414a5=this['_getVidAttributeName'](_0x3e65cb),_0x6de885=_0x3e65cb[_0x3f13('0x2b')]['getAttribute'](_0x1414a5);if(_0x240255['has'](_0x6de885)){const _0x13a973=_0x3e65cb[_0x3f13('0x2b')][_0x3f13('0xde')][_0x3f13('0xde')][_0x3f13('0xe7')](_0x3f13('0xd1')),_0x2bc6a9=_0x28bdbc[_0x3f13('0x41')](_0x13a973)||new Set();_0x2bc6a9['add'](_0x240255['get'](_0x6de885)[_0x3f13('0x37')]),_0x28bdbc[_0x3f13('0x6b')](_0x13a973,_0x2bc6a9);}}_0x536ae8=_0x2f337e['deletions'][_0x4e013a];for(const _0x22e150 of _0x536ae8)if(_0x22e150[_0x3f13('0x2b')]['is'](_0x3f13('0xd'),'tableCell')){const _0x300f69=this['_getVidAttributeName'](_0x22e150),_0x389a86=_0x22e150[_0x3f13('0x2b')][_0x3f13('0xe7')](_0x300f69);if(_0x3f3890[_0x3f13('0x1c')](_0x389a86)){const _0x5c185b=_0x22e150[_0x3f13('0x2b')]['parent'][_0x3f13('0xde')][_0x3f13('0xe7')](_0x3f13('0xd1')),_0x596b90=_0x28bdbc[_0x3f13('0x41')](_0x5c185b)||new Set();_0x596b90[_0x3f13('0x67')](_0x3f3890[_0x3f13('0x41')](_0x389a86)['userId']),_0x28bdbc[_0x3f13('0x6b')](_0x5c185b,_0x596b90);}}for(const _0x3dffe5 of _0x28bdbc[_0x3f13('0xe6')]())(_0x240255[_0x3f13('0x1c')](_0x3dffe5)||_0x3f3890[_0x3f13('0x1c')](_0x3dffe5))&&_0x28bdbc[_0x3f13('0xdf')](_0x3dffe5);}for(const _0x4e5320 of _0x5e79dc){const _0x4a1313=_0x2f337e[_0x3f13('0x29')][_0x4e5320];let _0x4f416a=null,_0x170e35=null;for(const _0x235458 of _0x4a1313){const _0x2068cd=this[_0x3f13('0xe1')](_0x235458),_0x8ab909=_0x235458[_0x3f13('0x2b')][_0x3f13('0xe7')](_0x2068cd),_0x43e21b=_0x28bdbc[_0x3f13('0x41')](_0x8ab909);_0x43e21b&&_0x3f13('0x4c')==_0x235458[_0x3f13('0x92')]&&(_0x4f416a=Array[_0x3f13('0x8d')](_0x43e21b)[0x0],_0x170e35=_0x235458[_0x3f13('0x2b')][_0x3f13('0xe7')](_0x3f13('0x100'))),_0x4f416a&&(_0x3f3890[_0x3f13('0x6b')](_0x8ab909,{'userId':_0x4f416a}),_0x240255[_0x3f13('0x6b')](_0x8ab909,{'userId':_0x4f416a})),_0x8ab909==_0x170e35&&(_0x4f416a=null,_0x170e35=null);}}const _0x33153a={},_0x4faf71=new Set();for(const _0x57aa8d of _0x5e79dc){const _0x4ee002=_0x395a91[_0x3f13('0x54')][_0x57aa8d],_0x3ad623=_0x395a91[_0x3f13('0x29')][_0x57aa8d];for(const {userId:_0x23d9be}of this['_touchedMarkers'][_0x3f13('0xb0')]())null!==_0x23d9be&&_0x4faf71[_0x3f13('0x67')](_0x23d9be);for(const {userId:_0x3e9909}of this[_0x3f13('0x42')]['values']())null!==_0x3e9909&&_0x4faf71[_0x3f13('0x67')](_0x3e9909);this[_0x3f13('0xc8')](_0x3ad623,_0x2f337e[_0x3f13('0x29')][_0x57aa8d],_0x240255,_0x3f13('0x28'),_0x4faf71),this[_0x3f13('0xc8')](_0x4ee002,_0x2f337e[_0x3f13('0x54')][_0x57aa8d],_0x3f3890,_0x3f13('0x66'),_0x4faf71),_0x33153a[_0x57aa8d]={'insertions':this[_0x3f13('0x44')](_0x3ad623),'deletions':this[_0x3f13('0x44')](_0x4ee002),'attachChange':this[_0x3f13('0x42')][_0x3f13('0x41')](_0x57aa8d)||null,'attributesBefore':_0x5a8efe(this[_0x3f13('0x7e')][_0x3f13('0x41')](_0x57aa8d))||{},'attributesAfter':_0x5a8efe(this[_0x3f13('0x77')]['get'](_0x57aa8d))};}return{'diffData':_0x33153a,'authorsIds':Array[_0x3f13('0x8d')](_0x4faf71)};}[_0x3f13('0x4f')](_0x111112){for(const [,_0x4a8743]of _0x111112['markers']){const _0x5a459b=_0x4a8743[_0x3f13('0xa8')][_0x3f13('0x8e')]()['filter'](_0x5ebd8d=>'tableCell'==_0x5ebd8d['name']);for(const _0x22de31 of _0x5a459b)0x1==_0x22de31['childCount']&&_0x22de31['getChild'](0x0)['is'](_0x3f13('0xd'),_0x3f13('0x39'))&&_0x22de31['getChild'](0x0)[_0x3f13('0xb1')](_0x3f13('0x75'),!0x0);}}['_prepareViewToSave'](_0x58fbf3){this['_processRootBeforeSave'](_0x58fbf3);const _0x3c39c3=this[_0x3f13('0x52')]['data'][_0x3f13('0xd3')](_0x58fbf3,{}),_0x378fda=Array[_0x3f13('0x8d')](_0x3c39c3[_0x3f13('0x6')]())[_0x3f13('0xd4')](_0x5a73dd=>this['_getViewJson'](_0x5a73dd));return JSON['stringify'](_0x378fda);}[_0x3f13('0x70')](_0x50132b){if(_0x50132b['is'](_0x3f13('0xc0')))return _0x50132b[_0x3f13('0xdc')];{const _0x3534d3=_0x50132b;return{'type':Object['keys'](B)[_0x3f13('0x8')](_0x4e7764=>_0x50132b instanceof B[_0x4e7764]),'name':_0x3534d3[_0x3f13('0x8c')],'attributes':Array[_0x3f13('0x8d')](_0x3534d3[_0x3f13('0x103')]()),'children':Array[_0x3f13('0x8d')](_0x3534d3[_0x3f13('0x6')]())[_0x3f13('0xd4')](_0x26cfe4=>this['_getViewJson'](_0x26cfe4))};}}[_0x3f13('0xc8')](_0x472154,_0xbdf4d9,_0x5268e4,_0x59f07e,_0x4da2a4){let _0x37b8c8=null,_0x22c8c4=null,_0x4da016=0x0;const _0x88cab4=this[_0x3f13('0x52')][_0x3f13('0x98')];for(let _0x97e110=0x0;_0x97e110<_0xbdf4d9[_0x3f13('0x49')];_0x97e110++){const _0x1ce2b2=this[_0x3f13('0xe1')](_0xbdf4d9[_0x97e110]),_0x5d47fd=_0xbdf4d9[_0x97e110][_0x3f13('0x2b')][_0x3f13('0xe7')](_0x1ce2b2),_0x5eb89b=_0x5268e4['get'](_0x5d47fd),_0x1c59c9=_0x97e110==_0xbdf4d9[_0x3f13('0x49')]-0x1;(!_0x37b8c8&&_0x5eb89b&&(_0x37b8c8=_0x5eb89b,_0x22c8c4=_0xbdf4d9[_0x97e110]),_0x37b8c8&&(!_0x5eb89b||_0x5eb89b[_0x3f13('0x37')]!=_0x37b8c8[_0x3f13('0x37')]))&&(_0x43c1a4(_0x5eb89b,L(_0x22c8c4,_0x472154,_0x88cab4),L(_0xbdf4d9[_0x97e110],_0x472154,_0x88cab4)),_0x37b8c8=_0x5eb89b||null,_0x22c8c4=_0x5eb89b?_0xbdf4d9[_0x97e110]:null),_0x37b8c8&&_0x1c59c9&&_0x43c1a4(_0x5eb89b,L(_0x22c8c4,_0x472154,_0x88cab4),W(_0xbdf4d9[_0x97e110],_0x472154,_0x88cab4));}function _0x43c1a4(_0x554d11,_0x22f756,_0x4a6754){const _0x572fcf=_0x37b8c8[_0x3f13('0x37')],_0x44c8b8=_0x3f13('0xc6')+_0x59f07e+':'+_0x572fcf+':'+_0x4da016++,_0x2599d8=_0x88cab4[_0x3f13('0x89')](_0x22f756,_0x4a6754);_0x472154[_0x3f13('0x69')][_0x3f13('0x6b')](_0x44c8b8,_0x2599d8),null!==_0x572fcf&&_0x4da2a4[_0x3f13('0x67')](_0x572fcf);}}[_0x3f13('0xe1')](_0x92976a){switch(_0x92976a[_0x3f13('0x92')]){case _0x3f13('0x4c'):return _0x3f13('0xd1');case _0x3f13('0xed'):return _0x3f13('0x100');default:return _0x3f13('0xeb');}}[_0x3f13('0xb5')](_0x24bdd8,_0x251cb2){_0x24bdd8[_0x3f13('0x8f')]=null;for(const _0x1e230f in _0x24bdd8){const _0x5a8734=_0x24bdd8[_0x1e230f];if(_0x5a8734 instanceof _0x4a74c8){const _0x2959e2=_0x251cb2[_0x3f13('0x41')](_0x5a8734[_0x3f13('0x4e')][_0x3f13('0x86')]);_0x24bdd8[_0x1e230f]=this[_0x3f13('0x26')](_0x5a8734,_0x2959e2);}if(_0x5a8734 instanceof _0x21a2c5){const _0xa02680=_0x251cb2[_0x3f13('0x41')](_0x5a8734[_0x3f13('0x4e')][_0x3f13('0x86')]);_0x24bdd8[_0x1e230f]=this['_fixRange'](_0x5a8734,_0xa02680);}_0x3f13('0x4e')===_0x1e230f&&(_0x24bdd8[_0x3f13('0x4e')]=_0x251cb2['get'](_0x24bdd8[_0x3f13('0x4e')][_0x3f13('0x86')]));}}['_fixRange'](_0x1b25b2,_0x38f0b2){return this['editor'][_0x3f13('0x98')][_0x3f13('0x89')](this[_0x3f13('0x26')](_0x1b25b2['start'],_0x38f0b2),this['_fixPosition'](_0x1b25b2[_0x3f13('0x94')],_0x38f0b2));}[_0x3f13('0x26')](_0x47560c,_0x282382){return this[_0x3f13('0x52')][_0x3f13('0x98')]['createPositionFromPath'](_0x282382,_0x47560c['path'],_0x47560c[_0x3f13('0xff')]);}[_0x3f13('0xaa')](_0x27816a){const _0x356fae=this['_idsRoots'][_0x3f13('0x41')](_0x27816a[_0x3f13('0x48')][_0x3f13('0x4e')][_0x3f13('0x86')]),_0x5aef04=this[_0x3f13('0x26')](_0x27816a[_0x3f13('0x48')],_0x356fae),_0x16c7a1=null===_0x27816a[_0x3f13('0x4d')]?null:_0x27816a[_0x3f13('0x4d')]||this['editor'][_0x3f13('0xce')][_0x3f13('0x41')]('Users')['me']['id'],_0x23f065=_0x5aef04[_0x3f13('0xde')],_0x2c1ddc=this[_0x3f13('0x7f')],_0x39a476=[];for(const _0x486b9a of _0x27816a[_0x3f13('0x3e')])if(_0x486b9a['is'](_0x3f13('0xd')))_0x39a476[_0x3f13('0x84')](this[_0x3f13('0x9f')](_0x486b9a));else for(let _0x4e25fd=0x0;_0x4e25fd<_0x486b9a['offsetSize'];_0x4e25fd++)_0x39a476[_0x3f13('0x84')](new _0x330522(_0x3f13('0xc0'),{'vid':this[_0x3f13('0x7f')]++}));const _0x5787b7=this[_0x3f13('0x7f')];for(let _0x48bc95=_0x2c1ddc;_0x48bc95<_0x5787b7;_0x48bc95++)this[_0x3f13('0xc5')][_0x3f13('0x6b')](_0x48bc95,{'userId':_0x16c7a1});_0x23f065[_0x3f13('0x1')](_0x5aef04[_0x3f13('0xcf')],_0x39a476);}['_handleMoveOperation'](_0x2a2a2c){(_0x2a2a2c=this[_0x3f13('0x82')](_0x2a2a2c,this[_0x3f13('0xa4')]))[_0x3f13('0xb8')]();const _0x520716=null===_0x2a2a2c['_authorId']?null:_0x2a2a2c[_0x3f13('0x4d')]||this[_0x3f13('0x52')][_0x3f13('0xce')][_0x3f13('0x41')](_0x3f13('0x76'))['me']['id'],_0xc74cd5=_0x2a2a2c[_0x3f13('0x91')](),_0x500494=_0xc74cd5[_0x3f13('0xde')],_0x36f860=_0xc74cd5[_0x3f13('0xcf')];!function _0x5d1a4f(_0x23198d,_0x4798fb,_0x3bbdad,_0x3f507c){for(let _0x57d3c8=_0x3bbdad;_0x57d3c8<_0x3f507c;_0x57d3c8++){const _0x1c35e6=_0x4798fb[_0x3f13('0x72')](_0x57d3c8);_0x1c35e6['is']('element',_0x3f13('0xc0'))?_0x23198d[_0x3f13('0x6b')](_0x1c35e6['getAttribute'](_0x3f13('0xeb')),{'userId':_0x520716}):(_0x23198d[_0x3f13('0x6b')](_0x1c35e6[_0x3f13('0xe7')]('vid_start'),{'userId':_0x520716}),_0x5d1a4f(_0x23198d,_0x1c35e6,0x0,_0x1c35e6['childCount']),_0x23198d[_0x3f13('0x6b')](_0x1c35e6[_0x3f13('0xe7')](_0x3f13('0x100')),{'userId':_0x520716}));}}(this[_0x3f13('0xc5')],_0x500494,_0x36f860,_0x36f860+_0x2a2a2c[_0x3f13('0x102')]);}['_handleMergeOperation'](_0x3568dd){const _0x113e0e=null===(_0x3568dd=this['_cloneOperation'](_0x3568dd,this[_0x3f13('0xa4')]))[_0x3f13('0x4d')]?null:_0x3568dd[_0x3f13('0x4d')]||this[_0x3f13('0x52')]['plugins']['get'](_0x3f13('0x76'))['me']['id'],_0x194c75=_0x3568dd[_0x3f13('0x19')][_0x3f13('0xde')],_0x4c7c8e=_0x3568dd[_0x3f13('0xab')][_0x3f13('0xde')],_0x45598d=_0x194c75[_0x3f13('0xe7')](_0x3f13('0x100')),_0x3e736f=_0x4c7c8e[_0x3f13('0xe7')](_0x3f13('0xd1'));_0x194c75[_0x3f13('0xb1')](_0x3f13('0x100'),_0x4c7c8e[_0x3f13('0xe7')]('vid_end')),_0x4c7c8e[_0x3f13('0xb1')](_0x3f13('0x100'),_0x45598d),this[_0x3f13('0xc5')][_0x3f13('0x6b')](_0x3e736f,{'userId':_0x113e0e}),this[_0x3f13('0xc5')][_0x3f13('0x6b')](_0x45598d,{'userId':_0x113e0e}),_0x3568dd[_0x3f13('0xb8')]();}[_0x3f13('0xd6')](_0x41068e){const _0x2c3d61=null===(_0x41068e=this[_0x3f13('0x82')](_0x41068e,this['_idsRoots']))[_0x3f13('0x4d')]?null:_0x41068e[_0x3f13('0x4d')]||this[_0x3f13('0x52')][_0x3f13('0xce')][_0x3f13('0x41')](_0x3f13('0x76'))['me']['id'],_0x5b40c0=_0x41068e[_0x3f13('0xa1')],_0x3bb8bf=_0x41068e[_0x3f13('0x8a')][_0x3f13('0xde')];_0x41068e[_0x3f13('0xb8')]();const _0x24d939=_0x3bb8bf[_0x3f13('0xe7')]('vid_end'),_0x8dfac3=_0x41068e[_0x3f13('0x33')][_0x3f13('0x3')];if(_0x5b40c0){const _0x3e4bb5=_0x8dfac3[_0x3f13('0xe7')]('vid_end'),_0x37c83f=_0x3bb8bf[_0x3f13('0xe7')](_0x3f13('0x100'));_0x3bb8bf[_0x3f13('0xb1')](_0x3f13('0x100'),_0x3e4bb5),_0x8dfac3[_0x3f13('0xb1')]('vid_end',_0x37c83f),this[_0x3f13('0xc5')][_0x3f13('0x6b')](_0x3bb8bf[_0x3f13('0xe7')]('vid_end'),{'userId':_0x2c3d61}),this[_0x3f13('0xc5')]['set'](_0x8dfac3['getAttribute'](_0x3f13('0xd1')),{'userId':_0x2c3d61});}else{const _0x4026c3=this['_revisionId']++,_0x399064=this[_0x3f13('0x7f')]++;_0x3bb8bf['_setAttribute'](_0x3f13('0x100'),_0x4026c3),_0x8dfac3[_0x3f13('0xb1')]('vid_start',_0x399064),_0x8dfac3[_0x3f13('0xb1')](_0x3f13('0x100'),_0x24d939),this['_touched'][_0x3f13('0x6b')](_0x4026c3,{'userId':_0x2c3d61}),this[_0x3f13('0xc5')][_0x3f13('0x6b')](_0x399064,{'userId':_0x2c3d61});}}[_0x3f13('0xb6')](_0x226cdb){if(!_0x226cdb[_0x3f13('0xe8')])return;const _0x48bf43=(_0x226cdb=this['_cloneOperation'](_0x226cdb,this[_0x3f13('0x36')]))[_0x3f13('0x23')]?_0x226cdb[_0x3f13('0x23')]['root']:null,_0x3d97bd=_0x226cdb[_0x3f13('0xef')]?_0x226cdb[_0x3f13('0xef')][_0x3f13('0x4e')]:null;_0x48bf43&&this[_0x3f13('0xba')]['delete'](_0x226cdb[_0x3f13('0x8c')]),_0x3d97bd&&this[_0x3f13('0xba')][_0x3f13('0x6b')](_0x226cdb[_0x3f13('0x8c')],_0x226cdb[_0x3f13('0xef')][_0x3f13('0x1f')]());const _0x2332f8=null===_0x226cdb[_0x3f13('0x4d')]?null:_0x226cdb[_0x3f13('0x4d')]||this[_0x3f13('0x52')]['plugins'][_0x3f13('0x41')](_0x3f13('0x76'))['me']['id'],_0x3773a4=_0x226cdb[_0x3f13('0x8c')];if(!this[_0x3f13('0xb3')][_0x3f13('0x1c')](_0x3773a4))return void this['_touchedMarkers']['set'](_0x3773a4,{'range':_0x226cdb[_0x3f13('0x23')],'userId':_0x2332f8});const _0x39f1dc=this['_touchedMarkers'][_0x3f13('0x41')](_0x3773a4),_0x53ee79=_0x39f1dc[_0x3f13('0x83')],_0x138d26=_0x226cdb[_0x3f13('0xef')];null==_0x53ee79&&null==_0x138d26||_0x53ee79&&_0x138d26&&_0x53ee79[_0x3f13('0x24')](_0x138d26)?this[_0x3f13('0xb3')][_0x3f13('0xdf')](_0x226cdb[_0x3f13('0x8c')]):_0x39f1dc[_0x3f13('0x37')]=_0x2332f8;}[_0x3f13('0xfa')](_0x926851,_0x3abdcf){this[_0x3f13('0x36')]['has'](_0x926851['rootName'])?this[_0x3f13('0x36')][_0x3f13('0x41')](_0x926851[_0x3f13('0x86')])[_0x3f13('0xe9')]=_0x926851[_0x3f13('0xb2')]:(this[_0x3f13('0x36')][_0x3f13('0x6b')](_0x926851[_0x3f13('0x86')],G(_0x926851[_0x3f13('0x86')],!0x0)),this[_0x3f13('0x77')][_0x3f13('0x6b')](_0x926851['rootName'],{}),_0x3abdcf&&this[_0x3f13('0xa4')]['set'](_0x926851['rootName'],G(_0x926851['rootName'],!0x0)));const _0x3e9181=null===_0x926851[_0x3f13('0x4d')]?null:_0x926851[_0x3f13('0x4d')]||this[_0x3f13('0x52')]['plugins'][_0x3f13('0x41')]('Users')['me']['id'],_0x427a99=this['_touchedRoots'][_0x3f13('0x41')](_0x926851['rootName']);_0x427a99&&_0x427a99[_0x3f13('0x37')]===_0x3e9181?this[_0x3f13('0x42')][_0x3f13('0xdf')](_0x926851[_0x3f13('0x86')]):this['_touchedRoots'][_0x3f13('0x6b')](_0x926851[_0x3f13('0x86')],{'userId':_0x3e9181,'isAttached':_0x926851[_0x3f13('0xb2')]});}[_0x3f13('0xc4')](_0x3e0bd1){const _0x3191a0=this[_0x3f13('0x77')]['get'](_0x3e0bd1[_0x3f13('0x4e')]['rootName']);null===_0x3e0bd1[_0x3f13('0xa5')]?delete _0x3191a0[_0x3e0bd1['key']]:_0x3191a0[_0x3e0bd1[_0x3f13('0xf6')]]=_0x3e0bd1['newValue'];}}function q(_0x23b8da){const _0x389a2b=G(_0x23b8da['rootName'],_0x23b8da[_0x3f13('0x11')]());for(const _0x168950 of _0x23b8da[_0x3f13('0x6')]()){const _0x2dc4c5=_0x168950[_0x3f13('0x47')](!0x0);_0x389a2b[_0x3f13('0xe4')](_0x2dc4c5);}return _0x389a2b;}function G(_0x2a6988,_0x18c53c=!0x0){const _0x4eedc7=new _0x10fc08();return _0x4eedc7[_0x3f13('0x86')]=_0x2a6988,_0x4eedc7[_0x3f13('0xe9')]=_0x18c53c,_0x4eedc7[_0x3f13('0x11')]=()=>_0x4eedc7[_0x3f13('0xe9')],_0x4eedc7;}function L(_0x3987af,_0x4a2836,_0x4fbc54){const _0x29a773=_0x3f13('0xed')==_0x3987af[_0x3f13('0x92')]?_0x4fbc54['createPositionAt'](_0x3987af[_0x3f13('0x2b')],_0x3f13('0x94')):_0x4fbc54[_0x3f13('0xb')](_0x3987af[_0x3f13('0x2b')]);return _0x4fbc54[_0x3f13('0x5d')](_0x4a2836,_0x29a773[_0x3f13('0x13')],_0x29a773[_0x3f13('0xff')]);}function W(_0x3847bf,_0x219eef,_0x5e335e){const _0x311570=_0x3f13('0x4c')==_0x3847bf['type']?_0x5e335e[_0x3f13('0xf')](_0x3847bf['item'],0x0):_0x5e335e[_0x3f13('0x27')](_0x3847bf[_0x3f13('0x2b')]);return _0x5e335e[_0x3f13('0x5d')](_0x219eef,_0x311570[_0x3f13('0x13')],_0x311570[_0x3f13('0xff')]);}