@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240117.0 → 0.0.0-nightly-20240119.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 +5 -5
  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 _0x29aa=['newRange','reinsert','elementStart','affectsData','getWalker','getRootNames','_createCurrentRevision','_startingVersion','attributesAfter','conversion','_cloneOperation','_handleRootAttributeOperation','_markers','fromEntries','getMovedRangeStart','init','remove','find','buildRevisionData','detachRoot','_getVidAttributeName','_createFromRanges','nodes','_getFromVersion','push','offsetSize','start','_handleSplitOperation','getRevisionRootsAttributes','_getViewJson','bind','parse','_removeMetaData','_transformMarkers','merge','createPositionAt','insertionPosition','map','_touchedRoots','then','history','getTransformedByOperation','saveRevision','splitPosition','createRevision','setSource','stringify','getRevisionDocumentData','_fixRange','vid_start','_saveMetaData','_copyMarkers','editor-initial-data-replaced-with-revision-data','for','_prepareViewToSave','addRoot','createPositionBefore','_isAttached','view','collaboration.channelId','_makeModelFromViewString','getAncestors','deletions','marker','toView','split','getRevisions','getUser','_baseRootsAttributes','Empty\x20document','upcast','_diffRootsAttributes','isAdd','_getBaseVids','$graveyard','createPositionFromPath','getRevision','_handleMoveOperation','NEGATIVE_INFINITY','fromVersion','key','revision','getAttribute','stickiness','getOperation','insertions','rootName','paragraph','rootsAttributes','nodeAfter','_revisionId','addRootAttribute','_loadedStateData','_reset','forEach','attributesBefore','getData','_applyOperations','insert','add','_update','children','createRange','_startingRevisionId','element','vid_end','_createInitialRevision','editing','finally','plugins','_savedMetaData','_setConversion','keys','_source','keepParagraph','filter','baseVersion','isAttached','_baseIdsRoots','name','delete','Users','getLatestVersion','reInit','parent','isEqual','root','_lastTo','getCurrentRevisionId','_generateTape','isReady','text','includes','_clone','_setAttribute','userId','vid','some','_findInsertionIndex','model','_continueCurrentRevision','config','set','_handleRootOperation','repository','_bufferUpdate','RevisionsRepository','_processRootBeforeSave','marked','editor','authorsIds','changeRootAttribute','_getPreviousFrom','_pendingAction','_removeRevisionMarkers','has','_loadRevisionData','_loadState','elementEnd','item','sort','_handleMarkerOperation','processor','documentFragment','attachChange','_touchedMarkers','_isInit','type','insertion','isEnabled','end','useFillerType','authors','loadState','addRevisionData','_idsRoots','path','RevisionTracker','creator','_replaceEditorDataWithRevisionData','_authorId','range','RealTimeCollaborationClient','_fixOperation','clone','update','getRoot','graveyardPosition','childCount','_initialRevisionId','updateRevisions','_diffRoots','values','size','_isPendingUpdate','initial','revisionHistory.resumeUnsavedRevision','getChild','deletion','_revisionDataBuilder','roots','_lastFrom','diffData','getOperations','getTime','_touched','howMany','version','_bufferedUpdates','locale','resolve','createdAt','data','requires','toData','_markChanges','attributes','default','string','source','addRevision','markerToData','adapter','_makeIdsRoot','hasContent','ready','_calculateMetaData','move','pluginName','PendingActions','document','dataToMarker','getIndex','from','clear','_makeRevision','define','startsWith','creatorId','tableCell','_handleMergeOperation','toVersion','_fixPosition','oldRange','currentRevision','_insertChild','_handleOperation','trim','sendBufferedUpdates','initialData','previousPosition','toModel','PENDING_ACTION_REVISION_HISTORY','_execute','slice','get','_handleInsertOperation','getNodeByPath','_baseRoots','removeRootAttribute','Initial\x20revision','newValue','position','getChildren','getAttributes','markers','revision:','offset','length','$text','reverse'];(function(_0x53b383,_0x29aa0c){const _0x3d3545=function(_0x490e3f){while(--_0x490e3f){_0x53b383['push'](_0x53b383['shift']());}};_0x3d3545(++_0x29aa0c);}(_0x29aa,0x79));const _0x3d35=function(_0x53b383,_0x29aa0c){_0x53b383=_0x53b383-0x0;let _0x3d3545=_0x29aa[_0x53b383];return _0x3d3545;};import{Users as _0x16986d}from'ckeditor5-collaboration/src/collaboration-core.js';import{Plugin as _0x2458e8,PendingActions as _0xd9e4d1}from'ckeditor5/src/core.js';import{logWarning as _0x1299e2,uid as _0x31ab66}from'ckeditor5/src/utils.js';import{Position as _0x50353d,Range as _0x6fc36b,Element as _0x79c212,DocumentFragment as _0x12b99b,ViewText as _0x5a2c68,ViewElement as _0x102aeb,ViewContainerElement as _0x11293e,ViewAttributeElement as _0x25021b,ViewEmptyElement as _0x2bc5e0,ViewRawElement as _0x29cd2b,ViewUIElement as _0x2afe39,ViewDocumentFragment as _0x5996a4}from'ckeditor5/src/engine.js';import _0x528fff from'./revisionsrepository.js';import{getTranslation as _0x45ded3}from'./utils/common-translations.js';import{cloneDeep as _0x3e9716,isEqual as _0x42b746}from'lodash-es';const B={'c':_0x11293e,'a':_0x25021b,'e':_0x2bc5e0,'r':_0x29cd2b,'u':_0x2afe39};export default class l extends _0x2458e8{static get[_0x3d35('0x6b')](){return _0x3d35('0x38');}static get[_0x3d35('0x5c')](){return[_0x16986d,_0x528fff,_0xd9e4d1];}constructor(_0x280e92){super(_0x280e92),this[_0x3d35('0x65')]=null,this[_0x3d35('0x7b')]=null,this['_revisionDataBuilder']=new H(this[_0x3d35('0x1c')]),this[_0x3d35('0x44')]=this['editor'][_0x3d35('0x14')][_0x3d35('0x86')](_0x3d35('0xd1'))||_0x3d35('0x4a'),this[_0x3d35('0x57')]=new Map(),this[_0x3d35('0xf2')]=null;const _0x22e5c2=_0x31ab66();this[_0x3d35('0x107')]={'history':this[_0x3d35('0x1c')]['model'][_0x3d35('0x6d')][_0x3d35('0xbe')],'getLatestVersion':()=>Promise[_0x3d35('0x59')](this[_0x3d35('0x1c')]['model']['document'][_0x3d35('0x56')]),'getCurrentRevisionId':()=>_0x22e5c2},this[_0x3d35('0x15')](_0x3d35('0x9'),!0x1),this[_0x3d35('0x15')](_0x3d35('0x30'),!0x0),this[_0x3d35('0x15')](_0x3d35('0x49'),!0x1),this[_0x3d35('0x1c')][_0x3d35('0x14')][_0x3d35('0x73')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x3d35('0x1c')][_0x3d35('0x9f')][_0x3d35('0xcb')](_0x3d35('0xdc'))[_0x3d35('0x6e')]({'view':_0x3d35('0xe7')});}[_0x3d35('0xa5')](){this[_0x3d35('0x17')]=this['editor']['plugins'][_0x3d35('0x86')](_0x3d35('0x19')),this[_0x3d35('0x105')](),this[_0x3d35('0x1c')][_0x3d35('0x5b')]['on'](_0x3d35('0x68'),()=>{const _0x3918fd=this[_0x3d35('0x17')]['getRevision'](0x0),_0x335194=_0x3918fd&&null===_0x3918fd['creator']?_0x3918fd:null;if(this[_0x3d35('0x13')]=!!_0x335194&&this[_0x3d35('0x1c')][_0x3d35('0x14')][_0x3d35('0x86')](_0x3d35('0x4b')),this[_0x3d35('0x1c')][_0x3d35('0x103')]['has'](_0x3d35('0x3d'))){const _0x1bc16d=this['_source'][_0x3d35('0x7')](),_0x4e747e=this[_0x3d35('0x17')][_0x3d35('0xe2')](_0x1bc16d);if(_0x4e747e)this[_0x3d35('0x9d')]=_0x4e747e[_0x3d35('0xe5')],this['_continueCurrentRevision']=!0x1;else{const _0x53e941=this[_0x3d35('0x107')][_0x3d35('0xbe')]['_operations']['find'](_0x521c8f=>!_0x521c8f[_0x3d35('0x2d')]),_0x3248db=_0x53e941?_0x53e941[_0x3d35('0x10a')]:this['_source'][_0x3d35('0xbe')]['version'];_0x3918fd?(_0x3918fd[_0x3d35('0x78')]<_0x3248db&&_0x3918fd[_0x3d35('0xfa')]({'toVersion':_0x3248db}),this[_0x3d35('0x13')]?(this['_source'][_0x3d35('0x7')]=()=>_0x335194['id'],this[_0x3d35('0x9d')]=_0x335194['fromVersion']):(this['_startingVersion']=_0x3918fd[_0x3d35('0x78')],this[_0x3d35('0x13')]=!0x1)):(this[_0x3d35('0x9d')]=_0x3248db,this[_0x3d35('0x13')]=!0x1);}}else _0x335194&&(this[_0x3d35('0x1c')][_0x3d35('0x12')][_0x3d35('0x6d')][_0x3d35('0xbe')][_0x3d35('0x56')]=Math['max'](_0x335194['toVersion'],this[_0x3d35('0x1c')]['model'][_0x3d35('0x6d')]['history'][_0x3d35('0x56')]),_0x335194[_0x3d35('0xe5')]===_0x335194[_0x3d35('0x78')]?(0x0!==_0x335194['fromVersion']&&(this[_0x3d35('0x107')][_0x3d35('0x7')]=()=>_0x335194['id']),this['_continueCurrentRevision']=!0x1):this[_0x3d35('0x13')]&&(this[_0x3d35('0x107')][_0x3d35('0x7')]=()=>_0x335194['id'],this[_0x3d35('0x9d')]=_0x335194[_0x3d35('0xe5')])),this[_0x3d35('0x13')]||(this[_0x3d35('0x9d')]=this[_0x3d35('0x1c')]['model'][_0x3d35('0x6d')][_0x3d35('0x56')]);this[_0x3d35('0x4e')]['init'](this['_source'][_0x3d35('0xbe')]),this[_0x3d35('0x100')](this['_startingVersion']),this[_0x3d35('0x9c')](this['_startingVersion']),this[_0x3d35('0x65')]&&this[_0x3d35('0x7f')]();}),this[_0x3d35('0xb4')](_0x3d35('0x9'))['to'](this,_0x3d35('0x49'),_0x5e006b=>!_0x5e006b);}async['afterInit'](){if(this[_0x3d35('0x17')][_0x3d35('0x93')]>0x0){const _0x42e66a=this[_0x3d35('0x17')][_0x3d35('0xe2')](0x0),_0x133848=await this['getRevisionDocumentData'](_0x42e66a),_0x1676e7=await this['getRevisionRootsAttributes'](_0x42e66a);this['_replaceEditorDataWithRevisionData'](_0x133848,_0x1676e7);}}[_0x3d35('0xc3')](_0x46e2e9){this[_0x3d35('0x107')]=_0x46e2e9;}async[_0x3d35('0x40')](){const _0x31723b=await this[_0x3d35('0x107')]['getLatestVersion']();if(_0x31723b>this[_0x3d35('0x7b')][_0x3d35('0x78')]){await this['_loadState']();const _0x127271=this['buildRevisionData']({'revision':this[_0x3d35('0x7b')],'to':_0x31723b});_0x127271['authors']=_0x127271['authorsIds'][_0x3d35('0xbb')](_0x136d72=>this[_0x3d35('0x1c')][_0x3d35('0x103')][_0x3d35('0x86')](_0x3d35('0x0'))['getUser'](_0x136d72)),this[_0x3d35('0x7b')][_0x3d35('0xfa')](_0x127271);}}async[_0x3d35('0x24')](){this['_continueCurrentRevision']&&!this[_0x3d35('0xf2')]&&(await this[_0x3d35('0x23')](this['currentRevision']),this[_0x3d35('0x4e')][_0x3d35('0x34')](this['currentRevision']),this[_0x3d35('0xf2')]={'fromVersion':this['currentRevision'][_0x3d35('0xe5')],'authors':this['currentRevision'][_0x3d35('0x33')]['slice']()});}async[_0x3d35('0xc0')](_0x1791dc={},_0x156af2=null){const _0x3b932a=[];await this[_0x3d35('0x24')](),this[_0x3d35('0x13')]=!0x1,_0x156af2>this[_0x3d35('0x7b')]['toVersion']&&(_0x156af2=null),null===_0x156af2&&(_0x156af2=await this[_0x3d35('0x107')][_0x3d35('0x1')]());const _0xc2bbf4=this['_getFromVersion'](_0x156af2),_0xcfb09e=this[_0x3d35('0xa8')]({'from':_0xc2bbf4,'to':_0x156af2});if(this['currentRevision'][_0x3d35('0x78')]<_0x156af2){const _0x2837c2=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x156af2,'to':_0x156af2});_0x2837c2[_0x3d35('0x33')]=[],_0x2837c2[_0x3d35('0x1d')]=[],_0x2837c2['id']=this[_0x3d35('0x7b')]['id'],this[_0x3d35('0x7b')][_0x3d35('0xfa')](_0x2837c2,!0x0),delete _0x2837c2['authors'],_0x3b932a[_0x3d35('0xae')](_0x2837c2);}_0x1791dc[_0x3d35('0x75')]=this[_0x3d35('0x1c')]['plugins']['get']('Users')['me']['id'],_0x1791dc[_0x3d35('0x10d')]=_0x1791dc['name']||null,_0x1791dc['id']=_0x1791dc['id']||_0x31ab66(),_0x1791dc={..._0x1791dc,..._0xcfb09e};const _0x120f8c=this['addRevisionData'](_0x1791dc);_0x3b932a[_0x3d35('0xae')](_0x1791dc);const _0x40c1d1=this['repository'][_0x3d35('0x6f')](_0x120f8c);if(0x0!==_0x40c1d1){const _0x1fdf5e=this[_0x3d35('0x17')]['getRevision'](_0x40c1d1-0x1);if(_0x1fdf5e[_0x3d35('0xe5')]!==_0x156af2){const _0x4ed627=this['_revisionDataBuilder']['getData'](_0x156af2,_0x1fdf5e[_0x3d35('0x78')]),_0x2449f3={'id':_0x1fdf5e['id'],'diffData':_0x4ed627[_0x3d35('0x51')],'authorsIds':_0x4ed627['authorsIds'],'authors':_0x4ed627['authorsIds']['map'](_0x310e37=>this[_0x3d35('0x1c')][_0x3d35('0x103')][_0x3d35('0x86')](_0x3d35('0x0'))[_0x3d35('0xd9')](_0x310e37)),'fromVersion':_0x156af2};_0x1fdf5e===this['currentRevision']&&(_0x2449f3['createdAt']=new Date(_0x1791dc[_0x3d35('0x5a')][_0x3d35('0x53')]()+0xa)),_0x1fdf5e[_0x3d35('0xfa')](_0x2449f3,!0x0),delete _0x2449f3[_0x3d35('0x33')],_0x3b932a['push'](_0x2449f3);}}if(this[_0x3d35('0x65')]){for(const _0x1e69bc of _0x3b932a)this['_bufferUpdate'](_0x1e69bc['id'],_0x1e69bc,!0x0);this[_0x3d35('0x7f')]();}return _0x120f8c;}[_0x3d35('0x35')](_0x476298){const _0x2a574b=this[_0x3d35('0x17')][_0x3d35('0xc2')](_0x476298);return this['adapter']&&_0x2a574b['on']('_update',(_0x3123d3,_0x1e51e9,_0x40c0d5)=>{_0x40c0d5||(this['_bufferUpdate'](_0x1e51e9['id'],_0x1e51e9,!0x0),this[_0x3d35('0x7f')]());}),this['repository'][_0x3d35('0x63')](_0x2a574b,this[_0x3d35('0x11')](_0x2a574b)),_0x2a574b;}async[_0x3d35('0xc5')](_0x295c5d){await this[_0x3d35('0x23')](_0x295c5d);const _0x5b2c7a={};for(const _0x20c32b in _0x295c5d[_0x3d35('0x51')]){if(_0x295c5d[_0x3d35('0x51')][_0x20c32b][_0x3d35('0x2b')]&&!_0x295c5d['diffData'][_0x20c32b]['attachChange'][_0x3d35('0x10b')])continue;const _0xc68089=this[_0x3d35('0x21')](JSON[_0x3d35('0xb5')](_0x295c5d[_0x3d35('0x51')][_0x20c32b][_0x3d35('0xeb')])),_0x43f67f=this[_0x3d35('0x1c')][_0x3d35('0x101')][_0x3d35('0xd0')][_0x3d35('0x6d')],_0x9c6861=new _0x5996a4(_0x43f67f,_0xc68089[_0x3d35('0xbb')](_0x4c34cb=>J(_0x4c34cb,this[_0x3d35('0x1c')])));this[_0x3d35('0x1c')][_0x3d35('0x5b')][_0x3d35('0x29')]['useFillerType'](_0x3d35('0x1b')),_0x5b2c7a[_0x20c32b]=this[_0x3d35('0x1c')][_0x3d35('0x5b')]['processor'][_0x3d35('0x5d')](_0x9c6861),this[_0x3d35('0x1c')][_0x3d35('0x5b')][_0x3d35('0x29')][_0x3d35('0x32')](_0x3d35('0x60'));}return _0x5b2c7a;}async[_0x3d35('0xb2')](_0x4679bf){await this[_0x3d35('0x23')](_0x4679bf);const _0x482fe8={};for(const _0xa0925c in _0x4679bf[_0x3d35('0x51')])_0x4679bf[_0x3d35('0x51')][_0xa0925c][_0x3d35('0x2b')]&&!_0x4679bf[_0x3d35('0x51')][_0xa0925c][_0x3d35('0x2b')]['isAttached']||(_0x482fe8[_0xa0925c]=_0x4679bf[_0x3d35('0x51')][_0xa0925c]['attributesAfter']||{});return _0x482fe8;}[_0x3d35('0x7f')](){if(0x0===this['_bufferedUpdates'][_0x3d35('0x48')])return;if(this[_0x3d35('0x49')])return;let _0x4713ae=Array['from'](this[_0x3d35('0x57')][_0x3d35('0x47')]());this[_0x3d35('0x57')][_0x3d35('0x71')]();for(let _0x2058f9=0x0;_0x2058f9<_0x4713ae[_0x3d35('0x93')];_0x2058f9++){const _0x2d511d=_0x4713ae[_0x2058f9];let _0x4d4964=!0x1;for(const _0x367f69 of Object['keys'](_0x2d511d))void 0x0===_0x2d511d[_0x367f69]?delete _0x2d511d[_0x367f69]:'id'!==_0x367f69&&(_0x4d4964=!0x0);_0x4d4964||(_0x4713ae[_0x2058f9]=null);}if(_0x4713ae=_0x4713ae[_0x3d35('0x109')](_0x4c525f=>null!==_0x4c525f),!_0x4713ae['length'])return;for(let _0x1e25a8=0x0;_0x1e25a8<_0x4713ae[_0x3d35('0x93')];_0x1e25a8++){const _0x19cab7=_0x4713ae[_0x1e25a8];void 0x0!==_0x19cab7[_0x3d35('0xe5')]&&void 0x0===_0x19cab7['toVersion']&&(_0x19cab7[_0x3d35('0x78')]=this[_0x3d35('0x17')]['getRevision'](_0x19cab7['id'])['toVersion']),void 0x0!==_0x19cab7[_0x3d35('0x78')]&&void 0x0===_0x19cab7[_0x3d35('0xe5')]&&(_0x19cab7[_0x3d35('0xe5')]=this[_0x3d35('0x17')][_0x3d35('0xe2')](_0x19cab7['id'])[_0x3d35('0xe5')]);}const _0x265874=this[_0x3d35('0x1c')][_0x3d35('0x14')][_0x3d35('0x86')](_0x3d35('0xd1'));this[_0x3d35('0x49')]=!0x0,this['_addPendingAction'](),this[_0x3d35('0x65')][_0x3d35('0x45')](_0x4713ae,_0x265874)[_0x3d35('0x102')](()=>{this[_0x3d35('0x49')]=!0x1;})[_0x3d35('0xbd')](_0x137410=>{if(_0x137410)for(const _0x5b75b7 of _0x137410)this['setRevisionData']({'id':_0x5b75b7['id'],'createdAt':_0x5b75b7[_0x3d35('0x5a')]});this['_removePendingAction'](),this['sendBufferedUpdates']();});}[_0x3d35('0x3a')](_0x52f8c5,_0x4af1f7){let _0x3507f5=this[_0x3d35('0x1c')][_0x3d35('0x14')]['get'](_0x3d35('0x80')),_0x5165e6=this[_0x3d35('0x1c')][_0x3d35('0x14')]['get'](_0x3d35('0xee'));if(void 0x0===_0x3507f5){_0x3507f5={};for(const _0x36fd61 of this[_0x3d35('0x1c')][_0x3d35('0x12')][_0x3d35('0x6d')][_0x3d35('0x9b')]())_0x3507f5[_0x36fd61]='';}if(_0x3d35('0x61')==typeof _0x3507f5&&(_0x3507f5={'main':_0x3507f5}),void 0x0===_0x5165e6){_0x5165e6={};for(const _0x600472 of this['editor'][_0x3d35('0x12')]['document'][_0x3d35('0x9b')]())_0x5165e6[_0x600472]={};}let _0x32568c=!0x1;const _0x3eb663=Object[_0x3d35('0x106')](_0x3507f5),_0x4acf72=Object[_0x3d35('0x106')](_0x52f8c5);for(const _0x376111 of _0x3eb663){if(_0x3507f5[_0x376111]!==_0x52f8c5[_0x376111]&&''!==_0x3507f5[_0x376111][_0x3d35('0x7e')]()){_0x32568c=!0x0;break;}if(!_0x42b746(_0x5165e6[_0x376111],_0x4af1f7[_0x376111])&&Object[_0x3d35('0x106')](_0x5165e6[_0x376111])[_0x3d35('0x93')]>0x0){_0x32568c=!0x0;break;}}_0x32568c||(_0x32568c=_0x4acf72[_0x3d35('0x10')](_0x3fa244=>!this['editor']['model']['document']['getRoot'](_0x3fa244))),_0x32568c&&_0x1299e2(_0x3d35('0xca'),{'editorData':_0x3507f5,'editorRootsAttributes':_0x5165e6,'revisionData':_0x52f8c5,'revisionRootsAttributes':_0x4af1f7}),this['editor'][_0x3d35('0x14')][_0x3d35('0x15')](_0x3d35('0x80'),_0x52f8c5),this[_0x3d35('0x1c')][_0x3d35('0x14')][_0x3d35('0x15')](_0x3d35('0xee'),_0x4af1f7);}['_addPendingAction'](){if(!this[_0x3d35('0x20')]){const _0xc5ba8a=this[_0x3d35('0x1c')][_0x3d35('0x103')][_0x3d35('0x86')](_0x3d35('0x6c'));this['_pendingAction']=_0xc5ba8a[_0x3d35('0xf9')](_0x45ded3(this[_0x3d35('0x1c')][_0x3d35('0x58')],_0x3d35('0x83')));}}['_removePendingAction'](){this[_0x3d35('0x20')]&&(this[_0x3d35('0x1c')][_0x3d35('0x103')][_0x3d35('0x86')]('PendingActions')['remove'](this[_0x3d35('0x20')]),this[_0x3d35('0x20')]=null);}[_0x3d35('0x11')](_0x15b2bf){const _0x4a1716=this[_0x3d35('0x17')][_0x3d35('0xd8')]();_0x4a1716[_0x3d35('0x95')]();let _0x56cd85=0x0;for(;_0x56cd85<_0x4a1716[_0x3d35('0x93')];){const _0x1cd39f=_0x4a1716[_0x56cd85];if(_0x1cd39f===this[_0x3d35('0x7b')]){_0x56cd85++;continue;}if(_0x1cd39f['id']===this[_0x3d35('0x44')])break;const _0x77f694=_0x15b2bf[_0x3d35('0x78')]-_0x1cd39f[_0x3d35('0x78')]||_0x15b2bf[_0x3d35('0xe5')]-_0x1cd39f[_0x3d35('0xe5')];if(_0x77f694>0x0)break;if(_0x77f694<0x0)_0x56cd85++;else{if(!_0x15b2bf[_0x3d35('0x39')]&&_0x1cd39f[_0x3d35('0x39')])break;if(_0x1cd39f[_0x3d35('0x39')]||!_0x15b2bf['creator']){if(_0x15b2bf['createdAt']>_0x1cd39f['createdAt'])break;_0x56cd85++;}else _0x56cd85++;}}return _0x56cd85;}['setRevisionData'](_0x29e242){const _0x4c14cf=this[_0x3d35('0x17')]['getRevision'](_0x29e242['id']);if(_0x29e242[_0x3d35('0x5a')]&&(_0x29e242[_0x3d35('0x5a')]=new Date(_0x29e242[_0x3d35('0x5a')])),_0x29e242[_0x3d35('0x1d')]){const _0x2d3a6f=this['editor'][_0x3d35('0x103')][_0x3d35('0x86')](_0x3d35('0x0'));_0x29e242['authors']=_0x29e242[_0x3d35('0x1d')][_0x3d35('0xbb')](_0x204043=>_0x2d3a6f[_0x3d35('0xd9')](_0x204043));}_0x4c14cf[_0x3d35('0xfa')](_0x29e242,!0x0);}[_0x3d35('0xa8')]({revision:_0x50689d=null,from:_0x297df0=null,to:_0x523ad0=null}){_0x297df0=null!==_0x297df0?_0x297df0:_0x50689d[_0x3d35('0xe5')],_0x523ad0=null!==_0x523ad0?_0x523ad0:_0x50689d[_0x3d35('0x78')];const _0x321886=this['_revisionDataBuilder'][_0x3d35('0xf6')](_0x297df0,_0x523ad0),_0x484504={'diffData':_0x321886['diffData'],'authorsIds':_0x321886[_0x3d35('0x1d')],'fromVersion':_0x297df0,'toVersion':_0x523ad0};if(!_0x50689d||_0x523ad0!==_0x50689d[_0x3d35('0x78')]){const _0x324fb0=_0x523ad0-0x1,_0xdc68bd=this[_0x3d35('0x107')]['history'][_0x3d35('0xea')](_0x324fb0);_0x484504[_0x3d35('0x5a')]=_0xdc68bd&&_0xdc68bd[_0x3d35('0x5a')]||new Date();}if(this['_loadedStateData']&&_0x297df0===this[_0x3d35('0xf2')][_0x3d35('0xe5')])for(const _0x579124 of this['_loadedStateData'][_0x3d35('0x33')])_0x484504[_0x3d35('0x1d')][_0x3d35('0xb')](_0x579124['id'])||_0x484504['authorsIds'][_0x3d35('0xae')](_0x579124['id']);return _0x484504;}[_0x3d35('0x23')](_0xad3e9){if(!_0xad3e9||_0xad3e9[_0x3d35('0x51')])return Promise[_0x3d35('0x59')]();{const _0x35a5b1=this[_0x3d35('0x1c')][_0x3d35('0x14')]['get'](_0x3d35('0xd1'));return this[_0x3d35('0x65')]['getRevision']({'channelId':_0x35a5b1,'revisionId':_0xad3e9['id']})[_0x3d35('0xbd')](_0x4b054=>{_0xad3e9['diffData']=_0x4b054[_0x3d35('0x51')];});}}[_0x3d35('0x18')](_0x28ef8b,_0x25f7dc,_0x2b9e64){if(this['_bufferedUpdates'][_0x3d35('0x22')](_0x28ef8b)){const _0x54e2ec=this[_0x3d35('0x57')][_0x3d35('0x86')](_0x28ef8b);_0x25f7dc=_0x2b9e64?{..._0x54e2ec,..._0x25f7dc}:{..._0x25f7dc,..._0x54e2ec};}this[_0x3d35('0x57')]['set'](_0x28ef8b,_0x25f7dc);}[_0x3d35('0xad')](_0x135916){const _0x260275=this[_0x3d35('0x17')][_0x3d35('0xd8')]();_0x260275['reverse'](),_0x260275['shift']();const _0x2fc2da=_0x260275[_0x3d35('0xa7')](_0x30d0e4=>_0x30d0e4[_0x3d35('0x78')]<=_0x135916)[_0x3d35('0x78')];return _0x2fc2da<this[_0x3d35('0x9d')]?this[_0x3d35('0x9d')]:_0x2fc2da;}[_0x3d35('0x100')](_0x43aeaa){const _0xbf555f=this[_0x3d35('0x17')][_0x3d35('0xe2')](this[_0x3d35('0x17')][_0x3d35('0x93')]-0x1);if(_0xbf555f)this['_initialRevisionId']=_0xbf555f['id'];else{const _0x504af3=!this[_0x3d35('0x1c')]['model'][_0x3d35('0x6d')][_0x3d35('0x4f')]['find'](_0x4ba9e4=>this[_0x3d35('0x1c')][_0x3d35('0x12')][_0x3d35('0x67')](_0x4ba9e4)),_0x5ddd88=this[_0x3d35('0x1c')][_0x3d35('0x103')][_0x3d35('0x86')](_0x3d35('0x0'))['me']['id'],_0x2ecfe5=_0x45ded3(this[_0x3d35('0x1c')][_0x3d35('0x58')],_0x504af3?_0x3d35('0xdb'):_0x3d35('0x8b'));this[_0x3d35('0x72')]({'from':_0x43aeaa,'to':_0x43aeaa,'id':this[_0x3d35('0x44')],'name':_0x2ecfe5,'creatorId':_0x5ddd88});}}[_0x3d35('0x9c')](_0x5aac45){const _0xf3b286=this[_0x3d35('0x107')][_0x3d35('0x7')]();this[_0x3d35('0x7b')]=this['repository'][_0x3d35('0xe2')](_0xf3b286),this[_0x3d35('0x7b')]||(this[_0x3d35('0x7b')]=this[_0x3d35('0x72')]({'from':_0x5aac45,'to':_0x5aac45,'id':_0xf3b286,'name':'','creatorId':null}));}['_makeRevision']({name:_0x2ddb48,from:_0x5e785d,to:_0x489e4e,creatorId:_0x10fbda,id:_0x594c59}){const _0x499da5=this['buildRevisionData']({'from':_0x5e785d,'to':_0x489e4e});_0x499da5[_0x3d35('0x10d')]=_0x2ddb48,_0x499da5[_0x3d35('0x75')]=_0x10fbda,_0x499da5['id']=_0x594c59;const _0x36d79e=this[_0x3d35('0x35')](_0x499da5);return this[_0x3d35('0x65')]&&this[_0x3d35('0x18')](_0x499da5['id'],_0x499da5,!0x0),_0x36d79e;}['_setConversion'](){this[_0x3d35('0x1c')]['conversion'][_0x3d35('0xcb')]('dataDowncast')[_0x3d35('0x64')]({'model':_0x3d35('0xe7')});}[_0x3d35('0x21')](_0x39c930){return(_0x39c930=_0x39c930[_0x3d35('0x109')](_0x410b2a=>!_0x410b2a['name']||'revision-start'!==_0x410b2a['name']&&'revision-end'!==_0x410b2a[_0x3d35('0x10d')]))[_0x3d35('0xf4')](_0x21a2f2=>{_0x3d35('0x61')!=typeof _0x21a2f2&&(_0x21a2f2[_0x3d35('0xfb')]=this[_0x3d35('0x21')](_0x21a2f2['children']),_0x21a2f2[_0x3d35('0x5f')]=_0x21a2f2['attributes'][_0x3d35('0x109')](_0x4a9c56=>!_0x4a9c56[0x0]['startsWith']('data-revision-')));}),_0x39c930;}}function J(_0x2464ae,_0x25f60f){const _0x5b2baa=_0x25f60f[_0x3d35('0x101')][_0x3d35('0xd0')][_0x3d35('0x6d')];if(_0x3d35('0x61')==typeof _0x2464ae)return new _0x5a2c68(_0x5b2baa,_0x2464ae);{const _0x349371=_0x2464ae[_0x3d35('0xfb')][_0x3d35('0xbb')](_0x22dc3b=>J(_0x22dc3b,_0x25f60f));return new(B[_0x2464ae['type']]||_0x102aeb)(_0x5b2baa,_0x2464ae['name'],_0x2464ae['attributes'],_0x349371);}}class H{constructor(_0x570715){this[_0x3d35('0x1c')]=_0x570715,this[_0x3d35('0x104')]=new Map(),this[_0x3d35('0x50')]=-0x1,this[_0x3d35('0x6')]=-0x1,this[_0x3d35('0xa2')]=new Map(),this[_0x3d35('0x46')]=new Map(),this[_0x3d35('0xdd')]=new Map(),this[_0x3d35('0x89')]=new Map(),this[_0x3d35('0xda')]=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this[_0x3d35('0x2c')]=new Map(),this[_0x3d35('0xbc')]=new Map(),this[_0x3d35('0xf0')]=0x1;}['init'](_0x5436a8){this[_0x3d35('0x62')]=_0x5436a8;const _0xfd20c7=new Map(),_0xba851e=new Map(),_0x5da049=this[_0x3d35('0x1c')][_0x3d35('0x12')]['document']['roots']['map'](_0x2ee53f=>_0x2ee53f['rootName']);for(const _0xe2cfae of _0x5da049){const _0x1b1173=this[_0x3d35('0x1c')][_0x3d35('0x12')]['document'][_0x3d35('0x41')](_0xe2cfae),_0x590a7f=q(_0x1b1173);_0xfd20c7['set'](_0xe2cfae,_0x590a7f),_0xba851e[_0x3d35('0x15')](_0xe2cfae,Object[_0x3d35('0xa3')](_0x1b1173[_0x3d35('0x8f')]()));}const _0x104375=Array[_0x3d35('0x70')](this[_0x3d35('0x1c')][_0x3d35('0x12')][_0x3d35('0x90')])['map'](_0x4954bf=>[_0x4954bf[_0x3d35('0x10d')],_0x4954bf['getRange']()]),_0x21367a=this[_0x3d35('0x62')][_0x3d35('0x56')];this[_0x3d35('0xc8')](_0x21367a,_0xfd20c7,_0x104375,_0xba851e),this[_0x3d35('0xfd')]=this['_revisionId'];const _0x290d32=new Map(),_0x58de9f=new Map();for(const _0x2bdc4d of _0x5da049){const _0x13e7f5=G(_0x2bdc4d);_0x290d32[_0x3d35('0x15')](_0x2bdc4d,_0x13e7f5),_0x58de9f[_0x3d35('0x15')](_0x2bdc4d,{});}this[_0x3d35('0xc8')](Number[_0x3d35('0xe4')],_0x290d32,[],_0x58de9f);}[_0x3d35('0xf6')](_0x5eb11c,_0x226bd5){if(this[_0x3d35('0x50')]===_0x5eb11c&&this[_0x3d35('0x6')]<=_0x226bd5)this['_savedMetaData'][_0x3d35('0x48')]>0x1&&this[_0x3d35('0xb6')](this[_0x3d35('0x6')]),this['_applyOperations'](this['_lastTo'],_0x226bd5,!0x0);else{if(!this[_0x3d35('0x104')][_0x3d35('0x22')](_0x5eb11c)){const _0x4a8923=this[_0x3d35('0x1f')](_0x5eb11c);this[_0x3d35('0x69')](_0x4a8923,_0x5eb11c,!0x1);}this[_0x3d35('0x69')](_0x5eb11c,_0x226bd5,!0x0);}return this[_0x3d35('0x50')]=_0x5eb11c,this['_lastTo']=_0x226bd5,this['_getState']();}[_0x3d35('0x34')](_0x447b70){this[_0x3d35('0xf3')](),this[_0x3d35('0x50')]=_0x447b70[_0x3d35('0xe5')],this[_0x3d35('0x6')]=_0x447b70['toVersion'];for(const _0x4b07d3 in _0x447b70[_0x3d35('0x51')]){const _0x36902b=_0x447b70[_0x3d35('0x51')][_0x4b07d3][_0x3d35('0x2b')],_0x3553dd=_0x3e9716(_0x447b70[_0x3d35('0x51')][_0x4b07d3][_0x3d35('0xf5')])||{},_0x4d6fd9=this['_makeModelFromViewString'](_0x447b70[_0x3d35('0x51')][_0x4b07d3][_0x3d35('0xd4')]);_0x4d6fd9[_0x3d35('0xec')]=_0x4b07d3,_0x4d6fd9['_isAttached']=!_0x36902b||!_0x36902b[_0x3d35('0x10b')],_0x4d6fd9[_0x3d35('0x10b')]=()=>_0x4d6fd9[_0x3d35('0xcf')],this[_0x3d35('0x89')][_0x3d35('0x15')](_0x4b07d3,_0x4d6fd9),this[_0x3d35('0xda')][_0x3d35('0x15')](_0x4b07d3,_0x3553dd),_0x36902b&&this[_0x3d35('0xbc')]['set'](_0x4b07d3,_0x36902b);const _0xd16a19=this[_0x3d35('0x66')](_0x4d6fd9);this[_0x3d35('0x10c')]['set'](_0x4b07d3,_0xd16a19);for(const [_0x3c0a82,_0x2601c8]of _0x4d6fd9[_0x3d35('0x90')]){if(!_0x3c0a82[_0x3d35('0x74')](_0x3d35('0x91')))continue;const _0x383840=_0x3c0a82[_0x3d35('0xd7')](':')[0x2];for(const _0x51c062 of _0x2601c8[_0x3d35('0x9a')]({'singleCharacters':!0x0})){const _0x37de9b=this[_0x3d35('0xaa')](_0x51c062),_0x1c4a0e=_0x3d35('0x25')==_0x51c062[_0x3d35('0x2e')]?_0x51c062[_0x3d35('0x81')]['path'][_0x3d35('0x85')](0x0,-0x1):_0x51c062[_0x3d35('0x81')]['path'],_0x2c6a14=_0xd16a19['getNodeByPath'](_0x1c4a0e)[_0x3d35('0xe8')](_0x37de9b);this[_0x3d35('0x54')]['set'](_0x2c6a14,{'userId':_0x383840});}}}this[_0x3d35('0xfd')]=this['_revisionId'];const _0x1f486b=[...Array(this[_0x3d35('0xf0')])[_0x3d35('0x106')]()][_0x3d35('0x85')](0x1)['filter'](_0x155372=>!this[_0x3d35('0x54')][_0x3d35('0x22')](_0x155372));let _0x43766b=0x0;const _0x295b49=new Map();for(const _0x2aaa7c in _0x447b70['diffData']){const _0x4f22d0=_0x447b70[_0x3d35('0x51')][_0x2aaa7c][_0x3d35('0x2b')],_0xa5bb45=_0x3e9716(_0x447b70['diffData'][_0x2aaa7c][_0x3d35('0x9e')])||{},_0x1dcdf2=this[_0x3d35('0xd2')](_0x447b70[_0x3d35('0x51')][_0x2aaa7c]['insertions']);_0x1dcdf2[_0x3d35('0xec')]=_0x2aaa7c,_0x1dcdf2['_isAttached']=!_0x4f22d0||_0x4f22d0[_0x3d35('0x10b')],_0x1dcdf2[_0x3d35('0x10b')]=()=>_0x1dcdf2[_0x3d35('0xcf')],this[_0x3d35('0x46')][_0x3d35('0x15')](_0x2aaa7c,_0x1dcdf2),this['_diffRootsAttributes']['set'](_0x2aaa7c,_0xa5bb45);const _0x33632b=this[_0x3d35('0x66')](_0x1dcdf2,Number['NEGATIVE_INFINITY']);this[_0x3d35('0x36')][_0x3d35('0x15')](_0x2aaa7c,_0x33632b),_0x295b49[_0x3d35('0x15')](_0x2aaa7c,_0x1dcdf2['isAttached']()?_0xa5bb45:{});for(const [_0x24db34,_0x236b2d]of _0x1dcdf2['markers']){if(!_0x24db34[_0x3d35('0x74')](_0x3d35('0x91')))continue;const _0x417553=_0x24db34[_0x3d35('0xd7')](':')[0x2];for(const _0x56b90e of _0x236b2d[_0x3d35('0x9a')]({'singleCharacters':!0x0})){const _0x1fb95b=this[_0x3d35('0xaa')](_0x56b90e),_0x417824=this[_0x3d35('0xf0')]++,_0x18b268='elementEnd'==_0x56b90e[_0x3d35('0x2e')]?_0x56b90e['previousPosition'][_0x3d35('0x37')]['slice'](0x0,-0x1):_0x56b90e[_0x3d35('0x81')]['path'];_0x33632b['getNodeByPath'](_0x18b268)[_0x3d35('0xd')](_0x1fb95b,_0x417824),this['_touched'][_0x3d35('0x15')](_0x417824,{'userId':_0x417553});}}for(const _0x5d8e58 of this['editor'][_0x3d35('0x12')]['createRangeIn'](_0x1dcdf2)[_0x3d35('0x9a')]({'singleCharacters':!0x0})){const _0x3d053b=this[_0x3d35('0xaa')](_0x5d8e58),_0x186a74='elementEnd'==_0x5d8e58[_0x3d35('0x2e')]?_0x5d8e58['previousPosition']['path'][_0x3d35('0x85')](0x0,-0x1):_0x5d8e58[_0x3d35('0x81')][_0x3d35('0x37')],_0x3d65eb=_0x33632b[_0x3d35('0x88')](_0x186a74);_0x3d65eb['getAttribute'](_0x3d053b)>0x0||_0x3d65eb['_setAttribute'](_0x3d053b,_0x1f486b[_0x43766b++]);}for(const [_0x19db78,_0x313ae7]of _0x1dcdf2[_0x3d35('0x90')])_0x19db78[_0x3d35('0x74')](_0x3d35('0x91'))||this[_0x3d35('0xa2')]['set'](_0x19db78,_0x313ae7);}const _0x1da8fc=G(_0x3d35('0xe0'));this[_0x3d35('0x89')][_0x3d35('0x15')]('$graveyard',_0x1da8fc),this[_0x3d35('0x10c')][_0x3d35('0x15')](_0x3d35('0xe0'),this['_makeIdsRoot'](_0x1da8fc,0x1));const _0x469167=G(_0x3d35('0xe0'));this[_0x3d35('0x46')]['set'](_0x3d35('0xe0'),_0x469167),this[_0x3d35('0x36')][_0x3d35('0x15')](_0x3d35('0xe0'),this[_0x3d35('0x66')](_0x469167,0x1));const _0x44fc7a=Array[_0x3d35('0x70')](this[_0x3d35('0x46')])[_0x3d35('0xbb')](([_0x5d6e7b,_0x428220])=>[_0x5d6e7b,q(_0x428220)]);this[_0x3d35('0xc8')](this[_0x3d35('0x6')],_0x44fc7a,this[_0x3d35('0xa2')],_0x295b49);}['_makeModelFromViewString'](_0x107bcc){const _0x1be6e1=JSON[_0x3d35('0xb5')](_0x107bcc),_0x2affb3=this[_0x3d35('0x1c')][_0x3d35('0x101')][_0x3d35('0xd0')][_0x3d35('0x6d')],_0x1db75c=new _0x5996a4(_0x2affb3,_0x1be6e1[_0x3d35('0xbb')](_0x7f3678=>J(_0x7f3678,this['editor'])));return this[_0x3d35('0x1c')][_0x3d35('0x5b')][_0x3d35('0x82')](_0x1db75c);}[_0x3d35('0xc8')](_0x1b7e4a,_0x5d26eb,_0xd76089,_0x28f815){const _0x37abca=new Map(_0x5d26eb),_0x30521d=new Map(_0x3e9716(_0x28f815)),_0x4f2f17=new Map();for(const [_0x2afe10,_0x46ad74]of _0xd76089)_0x4f2f17[_0x3d35('0x15')](_0x2afe10,{'start':_0x46ad74['start'][_0x3d35('0x3f')](),'end':_0x46ad74[_0x3d35('0x31')][_0x3d35('0x3f')](),'rootName':_0x46ad74[_0x3d35('0x5')][_0x3d35('0xec')]});this[_0x3d35('0x104')][_0x3d35('0x15')](_0x1b7e4a,{'roots':_0x37abca,'markers':_0x4f2f17,'rootsAttributes':_0x30521d});}[_0x3d35('0xb6')](_0x3ccf92){this[_0x3d35('0x104')][_0x3d35('0x10e')](_0x3ccf92);}[_0x3d35('0x2')](){this['_reset'](),this[_0x3d35('0x50')]=-0x1,this[_0x3d35('0x6')]=-0x1,this[_0x3d35('0x104')][_0x3d35('0x71')](),this[_0x3d35('0xa5')](this[_0x3d35('0x62')]);}[_0x3d35('0xf3')](){this[_0x3d35('0x54')]['clear'](),this['_touchedMarkers'][_0x3d35('0x71')](),this[_0x3d35('0xbc')]['clear'](),this[_0x3d35('0x46')][_0x3d35('0x71')](),this[_0x3d35('0xdd')][_0x3d35('0x71')](),this['_baseRoots'][_0x3d35('0x71')](),this[_0x3d35('0xda')][_0x3d35('0x71')](),this[_0x3d35('0x36')]['clear'](),this[_0x3d35('0x10c')][_0x3d35('0x71')](),this[_0x3d35('0xa2')][_0x3d35('0x71')](),this[_0x3d35('0xf0')]=0x1,this['_startingRevisionId']=this[_0x3d35('0xf0')];}['_makeIdsRoot'](_0x560b7d,_0x1e518e=null){let _0x16a4f4=null;_0x560b7d['is'](_0x3d35('0x2a'))||(_0x16a4f4=new _0x79c212(_0x560b7d[_0x3d35('0x10d')],{'vid_start':null===_0x1e518e?this[_0x3d35('0xf0')]++:_0x1e518e++}));const _0x33733e=[];for(const _0x4b2c3b of _0x560b7d[_0x3d35('0x8e')]())if(_0x4b2c3b['is'](_0x3d35('0xfe'))){_0x33733e[_0x3d35('0xae')](this['_makeIdsRoot'](_0x4b2c3b,_0x1e518e));const _0x59fdbc=_0x33733e[_0x33733e[_0x3d35('0x93')]-0x1];null!==_0x1e518e&&(_0x1e518e=_0x59fdbc['is'](_0x3d35('0xfe'),_0x3d35('0x94'))?_0x59fdbc['getAttribute'](_0x3d35('0xf'))+0x1:_0x59fdbc['getAttribute']('vid_end')+0x1);}else for(let _0x10bcbf=0x0;_0x10bcbf<_0x4b2c3b[_0x3d35('0xaf')];_0x10bcbf++)_0x33733e['push'](new _0x79c212(_0x3d35('0x94'),{'vid':null===_0x1e518e?this['_revisionId']++:_0x1e518e++}));if(_0x560b7d['is'](_0x3d35('0x2a'))){const _0x5e41d5=G(_0x560b7d[_0x3d35('0xec')]);return _0x5e41d5[_0x3d35('0x7c')](0x0,_0x33733e),_0x5e41d5;}return _0x16a4f4[_0x3d35('0xd')](_0x3d35('0xff'),null===_0x1e518e?this[_0x3d35('0xf0')]++:_0x1e518e++),_0x16a4f4[_0x3d35('0x7c')](0x0,_0x33733e),_0x16a4f4;}[_0x3d35('0x69')](_0x5fbdc6,_0x49e296,_0x259ad8){this[_0x3d35('0xf3')]();const {roots:_0x22c65b,markers:_0x252f6b,rootsAttributes:_0x152000}=this[_0x3d35('0x104')][_0x3d35('0x86')](_0x5fbdc6);this[_0x3d35('0x89')]=new Map(_0x22c65b),this[_0x3d35('0xda')]=new Map(_0x3e9716(_0x152000));for(const [_0x418bfa,_0x28ca85]of this[_0x3d35('0x89')])if('$graveyard'!==_0x418bfa&&(this['_diffRoots'][_0x3d35('0x15')](_0x418bfa,q(_0x28ca85)),this[_0x3d35('0xdd')]=new Map(_0x3e9716(_0x152000)),_0x259ad8)){const _0x24fa3b=this[_0x3d35('0xf0')];this[_0x3d35('0x36')][_0x3d35('0x15')](_0x418bfa,this['_makeIdsRoot'](_0x28ca85)),this[_0x3d35('0x10c')]['set'](_0x418bfa,this[_0x3d35('0x66')](_0x28ca85,_0x24fa3b));}this[_0x3d35('0xfd')]=this['_revisionId'],this[_0x3d35('0x46')][_0x3d35('0x15')](_0x3d35('0xe0'),q(this[_0x3d35('0x89')][_0x3d35('0x86')]('$graveyard'))),_0x259ad8&&this[_0x3d35('0x36')][_0x3d35('0x15')](_0x3d35('0xe0'),this[_0x3d35('0x66')](this[_0x3d35('0x89')][_0x3d35('0x86')]('$graveyard')));for(const [_0x1ef59e,_0x3bcf2a]of _0x252f6b){const _0x4108c2=this['_baseRoots'][_0x3d35('0x86')](_0x3bcf2a[_0x3d35('0xec')]),_0x136e09=this['_diffRoots'][_0x3d35('0x86')](_0x3bcf2a['rootName']),_0x4053b5=new _0x6fc36b(this[_0x3d35('0x79')](_0x3bcf2a[_0x3d35('0xb0')],_0x4108c2),this['_fixPosition'](_0x3bcf2a['end'],_0x4108c2)),_0x5eaa4d=this[_0x3d35('0xc6')](_0x4053b5,_0x136e09);_0x4108c2[_0x3d35('0x90')][_0x3d35('0x15')](_0x1ef59e,_0x4053b5),this['_markers']['set'](_0x1ef59e,_0x5eaa4d);}this[_0x3d35('0xf7')](_0x5fbdc6,_0x49e296,_0x259ad8);}['_applyOperations'](_0x462f1f,_0x384aa7,_0x5bc922){for(const _0x31c3bb of this[_0x3d35('0x62')][_0x3d35('0x52')](_0x462f1f,_0x384aa7))this[_0x3d35('0x7d')](_0x31c3bb,_0x5bc922);for(const _0x27662 of this[_0x3d35('0x46')]['values']())_0x27662[_0x3d35('0x90')]['clear']();for(const [_0x4b5aaa,_0x4169db]of this['_markers']){this[_0x3d35('0x46')][_0x3d35('0x86')](_0x4169db[_0x3d35('0x5')][_0x3d35('0xec')])[_0x3d35('0x90')][_0x3d35('0x15')](_0x4b5aaa,_0x4169db['clone']());}const _0x27c8b5=new Map(),_0x5e4a7d=new Map();for(const [_0x6ae7b0,_0x37d322]of this[_0x3d35('0x46')])_0x27c8b5[_0x3d35('0x15')](_0x6ae7b0,q(_0x37d322)),_0x5e4a7d[_0x3d35('0x15')](_0x6ae7b0,this['_diffRootsAttributes'][_0x3d35('0x86')](_0x6ae7b0));this[_0x3d35('0xc8')](_0x384aa7,_0x27c8b5,this['_markers'],_0x5e4a7d);}[_0x3d35('0x1f')](_0x46b200){const _0x4b7899=Array['from'](this[_0x3d35('0x104')][_0x3d35('0x106')]());_0x4b7899[_0x3d35('0x27')]((_0x1fdfe2,_0x18a5ad)=>_0x1fdfe2-_0x18a5ad),_0x4b7899[_0x3d35('0x95')]();for(const _0x28c182 of _0x4b7899)if(_0x28c182<_0x46b200)return _0x28c182;return Number[_0x3d35('0xe4')];}[_0x3d35('0xc9')](_0x5ccd02,_0x19334f){const _0x4190ff=Array[_0x3d35('0x70')](_0x19334f[_0x3d35('0x90')])[_0x3d35('0xbb')](([_0x16634a,_0x4ad0eb])=>[_0x16634a,this[_0x3d35('0xc6')](_0x4ad0eb,_0x5ccd02)]);_0x5ccd02[_0x3d35('0x90')]=new Map(_0x4190ff);}['_transformMarkers'](_0x1ec3c5){for(const _0x4c59f6 of this['_markers']['values']()){const _0x35a736=_0x4c59f6[_0x3d35('0xbf')](_0x1ec3c5),_0xcc5ce3=_0x6fc36b[_0x3d35('0xab')](_0x35a736);_0x4c59f6[_0x3d35('0xb0')]=_0xcc5ce3['start'],_0x4c59f6[_0x3d35('0x31')]=_0xcc5ce3[_0x3d35('0x31')];}}[_0x3d35('0x7d')](_0x2b67d6,_0x1f34e6){if(_0x3d35('0xcd')==_0x2b67d6[_0x3d35('0x2e')]||_0x3d35('0xa9')==_0x2b67d6[_0x3d35('0x2e')])return void this[_0x3d35('0x16')](_0x2b67d6,_0x1f34e6);if(_0x3d35('0xf8')==_0x2b67d6['type']){const _0x1d821a=_0x2b67d6[_0x3d35('0x8d')][_0x3d35('0x5')]['rootName'];this[_0x3d35('0x46')]['has'](_0x1d821a)||(this['_diffRoots'][_0x3d35('0x15')](_0x1d821a,G(_0x1d821a,!0x0)),this['_diffRootsAttributes'][_0x3d35('0x15')](_0x1d821a,{}),_0x1f34e6&&this[_0x3d35('0x36')][_0x3d35('0x15')](_0x1d821a,G(_0x1d821a,!0x0)));}else{if(_0x3d35('0xf1')==_0x2b67d6[_0x3d35('0x2e')]||_0x3d35('0x8a')==_0x2b67d6[_0x3d35('0x2e')]||_0x3d35('0x1e')==_0x2b67d6[_0x3d35('0x2e')])return void this[_0x3d35('0xa1')](_0x2b67d6);}const _0x138bf3=this['_cloneOperation'](_0x2b67d6,this[_0x3d35('0x46')]);if(_0x3d35('0xd5')!==_0x2b67d6[_0x3d35('0x2e')]&&(_0x138bf3[_0x3d35('0x84')](),this[_0x3d35('0xb7')](_0x138bf3)),_0x1f34e6)switch(_0x138bf3[_0x3d35('0x2e')]){case'insert':this[_0x3d35('0x87')](_0x2b67d6);break;case _0x3d35('0x6a'):case _0x3d35('0xa6'):case _0x3d35('0x97'):this[_0x3d35('0xe3')](_0x2b67d6);break;case _0x3d35('0xb8'):this[_0x3d35('0x77')](_0x2b67d6);break;case _0x3d35('0xd7'):this[_0x3d35('0xb1')](_0x2b67d6);break;case _0x3d35('0xd5'):this[_0x3d35('0x28')](_0x2b67d6);}}[_0x3d35('0xa0')](_0x30359f,_0xfa9dda){const _0x1014b1=_0x30359f[_0x3d35('0x3f')]();return _0x1014b1['_authorId']=_0x30359f[_0x3d35('0x3b')],this[_0x3d35('0x3e')](_0x1014b1,_0xfa9dda),_0x1014b1;}[_0x3d35('0xdf')](_0x372444){return _0x372444[_0x3d35('0xbb')](_0x1043dc=>{const _0x1d254e=this['_getVidAttributeName'](_0x1043dc);return Number(_0x1043dc[_0x3d35('0x26')][_0x3d35('0xe8')](_0x1d254e));});}[_0x3d35('0x8')](_0x157cff,_0x272aac){if(_0x157cff['is'](_0x3d35('0xfe'),'$text'))_0x272aac[_0x3d35('0xae')]({'item':_0x157cff,'type':_0x3d35('0xa')});else{_0x157cff['is']('element')&&_0x272aac['push']({'item':_0x157cff,'type':_0x3d35('0x98')});for(const _0xc89705 of _0x157cff['getChildren']())this[_0x3d35('0x8')](_0xc89705,_0x272aac);_0x157cff['is'](_0x3d35('0xfe'))&&_0x272aac['push']({'item':_0x157cff,'type':_0x3d35('0x25')});}return _0x272aac;}['_getState'](){const _0x13fe62=new Map(this[_0x3d35('0x54')]),_0xc3724d=new Map(_0x13fe62),_0x1eca97=new Map(),_0x50f0c5={'insertions':{},'deletions':{}},_0x3ebeab={'insertions':{},'deletions':{}},_0x515bc8=new Map(),_0x5d0abb=new Set([...this['_baseRoots'][_0x3d35('0x106')](),...this[_0x3d35('0x46')][_0x3d35('0x106')]()]);_0x5d0abb['delete']('$graveyard');for(const _0x430a4b of _0x5d0abb){const _0x8f407f=this[_0x3d35('0x46')]['get'](_0x430a4b)||G(_0x430a4b,!0x1),_0x45cde3=this[_0x3d35('0x89')][_0x3d35('0x86')](_0x430a4b)||G(_0x430a4b,!0x1);_0x8f407f['isAttached']()||_0x45cde3[_0x3d35('0x10b')]()?(_0x50f0c5[_0x3d35('0xeb')][_0x430a4b]=q(_0x8f407f),_0x50f0c5['deletions'][_0x430a4b]=q(_0x45cde3),this['_copyMarkers'](_0x50f0c5[_0x3d35('0xd4')][_0x430a4b],_0x45cde3),this[_0x3d35('0xc9')](_0x50f0c5[_0x3d35('0xeb')][_0x430a4b],_0x8f407f),_0x3ebeab[_0x3d35('0xeb')][_0x430a4b]=this['_generateTape'](this[_0x3d35('0x36')][_0x3d35('0x86')](_0x430a4b),[]),_0x3ebeab[_0x3d35('0xd4')][_0x430a4b]=this[_0x3d35('0x8')](this[_0x3d35('0x10c')][_0x3d35('0x86')](_0x430a4b)||G(_0x430a4b,!0x1),[])):_0x5d0abb['delete'](_0x430a4b);}for(const _0x5df372 of _0x5d0abb){const _0x181a25=_0x3ebeab[_0x3d35('0xeb')][_0x5df372];for(const _0x13cbb6 of _0x181a25){const _0x3c53d1=this[_0x3d35('0xaa')](_0x13cbb6),_0x133ade=_0x13cbb6['item']['getAttribute'](_0x3c53d1);_0xc3724d['delete'](_0x133ade),_0x133ade>=this[_0x3d35('0xfd')]&&_0x1eca97[_0x3d35('0x15')](_0x133ade,_0x13fe62[_0x3d35('0x86')](_0x133ade));}}for(const _0x1cd624 of _0x5d0abb){const _0x12fb25=_0x3ebeab['insertions'][_0x1cd624],_0x2fd6d0=this[_0x3d35('0xdf')](_0x3ebeab[_0x3d35('0xd4')][_0x1cd624]);let _0x10bcea=0x0;for(const _0x2fc6e2 of _0x12fb25){const _0x2179cd=this[_0x3d35('0xaa')](_0x2fc6e2),_0x13620b=_0x2fc6e2[_0x3d35('0x26')][_0x3d35('0xe8')](_0x2179cd);if(!_0x1eca97[_0x3d35('0x22')](_0x13620b)&&!_0x515bc8[_0x3d35('0x22')](_0x13620b)){if(_0xc3724d[_0x3d35('0x22')](_0x13620b))_0x10bcea++;else{if(_0x13620b!=_0x2fd6d0[_0x10bcea]){const _0x573d4f=_0x13fe62[_0x3d35('0x86')](_0x13620b)||_0x13fe62['get'](_0x2fd6d0[_0x10bcea]);for(;_0x13620b!=_0x2fd6d0[_0x10bcea];)_0xc3724d[_0x3d35('0x22')](_0x2fd6d0[_0x10bcea])||(_0x515bc8['set'](_0x2fd6d0[_0x10bcea],_0x573d4f),_0x13fe62[_0x3d35('0x15')](_0x2fd6d0[_0x10bcea],_0x573d4f)),_0x10bcea++;}_0x10bcea++;}}}}for(const _0x143977 of _0x5d0abb){const _0x41ccd8=_0x3ebeab[_0x3d35('0xeb')][_0x143977];for(const _0x149178 of _0x41ccd8){const _0x41f4a0=this[_0x3d35('0xaa')](_0x149178),_0x559caa=_0x149178['item'][_0x3d35('0xe8')](_0x41f4a0);if(_0x515bc8[_0x3d35('0x22')](_0x559caa)){const _0x4830d4=_0x515bc8['get'](_0x559caa);_0xc3724d[_0x3d35('0x22')](_0x559caa)||_0xc3724d['set'](_0x559caa,{..._0x4830d4}),_0x1eca97[_0x3d35('0x15')](_0x559caa,{..._0x4830d4});}}}for(const _0x34ec93 of _0xc3724d[_0x3d35('0x106')]())_0x34ec93>=this['_startingRevisionId']&&_0xc3724d['delete'](_0x34ec93);const _0x4859a6=new Map();for(const _0x1fcc1b of _0x5d0abb){let _0x12b3d5=_0x3ebeab[_0x3d35('0xeb')][_0x1fcc1b];for(const _0x3fb189 of _0x12b3d5)if(_0x3fb189[_0x3d35('0x26')]['is'](_0x3d35('0xfe'),_0x3d35('0x76'))){const _0x97b699=this[_0x3d35('0xaa')](_0x3fb189),_0x45f9de=_0x3fb189[_0x3d35('0x26')][_0x3d35('0xe8')](_0x97b699);if(_0x1eca97['has'](_0x45f9de)){const _0x57a3b2=_0x3fb189[_0x3d35('0x26')]['parent'][_0x3d35('0x3')][_0x3d35('0xe8')]('vid_start'),_0x47ac2b=_0x4859a6[_0x3d35('0x86')](_0x57a3b2)||new Set();_0x47ac2b[_0x3d35('0xf9')](_0x1eca97[_0x3d35('0x86')](_0x45f9de)[_0x3d35('0xe')]),_0x4859a6[_0x3d35('0x15')](_0x57a3b2,_0x47ac2b);}}_0x12b3d5=_0x3ebeab[_0x3d35('0xd4')][_0x1fcc1b];for(const _0x225fd0 of _0x12b3d5)if(_0x225fd0['item']['is'](_0x3d35('0xfe'),_0x3d35('0x76'))){const _0x22798b=this['_getVidAttributeName'](_0x225fd0),_0x4efec2=_0x225fd0[_0x3d35('0x26')]['getAttribute'](_0x22798b);if(_0xc3724d[_0x3d35('0x22')](_0x4efec2)){const _0x49424c=_0x225fd0[_0x3d35('0x26')][_0x3d35('0x3')][_0x3d35('0x3')][_0x3d35('0xe8')](_0x3d35('0xc7')),_0x65f6b=_0x4859a6['get'](_0x49424c)||new Set();_0x65f6b[_0x3d35('0xf9')](_0xc3724d[_0x3d35('0x86')](_0x4efec2)[_0x3d35('0xe')]),_0x4859a6[_0x3d35('0x15')](_0x49424c,_0x65f6b);}}for(const _0x42a133 of _0x4859a6[_0x3d35('0x106')]())(_0x1eca97[_0x3d35('0x22')](_0x42a133)||_0xc3724d[_0x3d35('0x22')](_0x42a133))&&_0x4859a6[_0x3d35('0x10e')](_0x42a133);}for(const _0x2a5c66 of _0x5d0abb){const _0x3085d=_0x3ebeab[_0x3d35('0xeb')][_0x2a5c66];let _0x1eb16f=null,_0x30245d=null;for(const _0x16b636 of _0x3085d){const _0x1e9da8=this['_getVidAttributeName'](_0x16b636),_0x1b699=_0x16b636[_0x3d35('0x26')][_0x3d35('0xe8')](_0x1e9da8),_0x2e5384=_0x4859a6[_0x3d35('0x86')](_0x1b699);_0x2e5384&&_0x3d35('0x98')==_0x16b636['type']&&(_0x1eb16f=Array['from'](_0x2e5384)[0x0],_0x30245d=_0x16b636[_0x3d35('0x26')][_0x3d35('0xe8')](_0x3d35('0xff'))),_0x1eb16f&&(_0xc3724d[_0x3d35('0x15')](_0x1b699,{'userId':_0x1eb16f}),_0x1eca97[_0x3d35('0x15')](_0x1b699,{'userId':_0x1eb16f})),_0x1b699==_0x30245d&&(_0x1eb16f=null,_0x30245d=null);}}const _0x37fef5={},_0x45a801=new Set();for(const _0x2f6e76 of _0x5d0abb){const _0x400c06=_0x50f0c5[_0x3d35('0xd4')][_0x2f6e76],_0x51ea54=_0x50f0c5[_0x3d35('0xeb')][_0x2f6e76];for(const {userId:_0x42eff4}of this[_0x3d35('0x2c')]['values']())null!==_0x42eff4&&_0x45a801[_0x3d35('0xf9')](_0x42eff4);for(const {userId:_0x34c050}of this[_0x3d35('0xbc')][_0x3d35('0x47')]())null!==_0x34c050&&_0x45a801[_0x3d35('0xf9')](_0x34c050);this[_0x3d35('0x5e')](_0x51ea54,_0x3ebeab[_0x3d35('0xeb')][_0x2f6e76],_0x1eca97,_0x3d35('0x2f'),_0x45a801),this[_0x3d35('0x5e')](_0x400c06,_0x3ebeab[_0x3d35('0xd4')][_0x2f6e76],_0xc3724d,_0x3d35('0x4d'),_0x45a801),_0x37fef5[_0x2f6e76]={'insertions':this[_0x3d35('0xcc')](_0x51ea54),'deletions':this['_prepareViewToSave'](_0x400c06),'attachChange':this[_0x3d35('0xbc')][_0x3d35('0x86')](_0x2f6e76)||null,'attributesBefore':_0x3e9716(this[_0x3d35('0xda')]['get'](_0x2f6e76))||{},'attributesAfter':_0x3e9716(this[_0x3d35('0xdd')]['get'](_0x2f6e76))};}return{'diffData':_0x37fef5,'authorsIds':Array['from'](_0x45a801)};}[_0x3d35('0x1a')](_0x1f5648){for(const [,_0x461e9b]of _0x1f5648[_0x3d35('0x90')]){const _0x4c67ba=_0x461e9b[_0x3d35('0xb0')][_0x3d35('0xd3')]()[_0x3d35('0x109')](_0x19c9f9=>'tableCell'==_0x19c9f9['name']);for(const _0x985057 of _0x4c67ba)0x1==_0x985057[_0x3d35('0x43')]&&_0x985057[_0x3d35('0x4c')](0x0)['is']('element',_0x3d35('0xed'))&&_0x985057[_0x3d35('0x4c')](0x0)[_0x3d35('0xd')](_0x3d35('0x108'),!0x0);}}[_0x3d35('0xcc')](_0x5d0798){this[_0x3d35('0x1a')](_0x5d0798);const _0x129481=this['editor'][_0x3d35('0x5b')][_0x3d35('0xd6')](_0x5d0798,{}),_0x463211=Array[_0x3d35('0x70')](_0x129481[_0x3d35('0x8e')]())[_0x3d35('0xbb')](_0x26cf0b=>this[_0x3d35('0xb3')](_0x26cf0b));return JSON[_0x3d35('0xc4')](_0x463211);}[_0x3d35('0xb3')](_0x58e69a){if(_0x58e69a['is'](_0x3d35('0x94')))return _0x58e69a[_0x3d35('0x5b')];{const _0x3cfbaf=_0x58e69a;return{'type':Object['keys'](B)[_0x3d35('0xa7')](_0x3bbb66=>_0x58e69a instanceof B[_0x3bbb66]),'name':_0x3cfbaf[_0x3d35('0x10d')],'attributes':Array[_0x3d35('0x70')](_0x3cfbaf['getAttributes']()),'children':Array[_0x3d35('0x70')](_0x3cfbaf[_0x3d35('0x8e')]())[_0x3d35('0xbb')](_0x2766f6=>this[_0x3d35('0xb3')](_0x2766f6))};}}[_0x3d35('0x5e')](_0x5e53a7,_0x4f33f5,_0x201dac,_0x4dae8a,_0x555178){let _0x9b0167=null,_0x5450f1=null,_0x3478c0=0x0;const _0x506717=this[_0x3d35('0x1c')][_0x3d35('0x12')];for(let _0x24fb2e=0x0;_0x24fb2e<_0x4f33f5[_0x3d35('0x93')];_0x24fb2e++){const _0x3f8866=this[_0x3d35('0xaa')](_0x4f33f5[_0x24fb2e]),_0x58612d=_0x4f33f5[_0x24fb2e][_0x3d35('0x26')][_0x3d35('0xe8')](_0x3f8866),_0xb61a87=_0x201dac[_0x3d35('0x86')](_0x58612d),_0xceec8e=_0x24fb2e==_0x4f33f5[_0x3d35('0x93')]-0x1;(!_0x9b0167&&_0xb61a87&&(_0x9b0167=_0xb61a87,_0x5450f1=_0x4f33f5[_0x24fb2e]),_0x9b0167&&(!_0xb61a87||_0xb61a87[_0x3d35('0xe')]!=_0x9b0167[_0x3d35('0xe')]))&&(_0x14bc5d(_0xb61a87,L(_0x5450f1,_0x5e53a7,_0x506717),L(_0x4f33f5[_0x24fb2e],_0x5e53a7,_0x506717)),_0x9b0167=_0xb61a87||null,_0x5450f1=_0xb61a87?_0x4f33f5[_0x24fb2e]:null),_0x9b0167&&_0xceec8e&&_0x14bc5d(_0xb61a87,L(_0x5450f1,_0x5e53a7,_0x506717),W(_0x4f33f5[_0x24fb2e],_0x5e53a7,_0x506717));}function _0x14bc5d(_0x43c25e,_0x2c682f,_0x36ae7c){const _0x4eb6a6=_0x9b0167[_0x3d35('0xe')],_0x5d3e17=_0x3d35('0x91')+_0x4dae8a+':'+_0x4eb6a6+':'+_0x3478c0++,_0x27cb6a=_0x506717[_0x3d35('0xfc')](_0x2c682f,_0x36ae7c);_0x5e53a7[_0x3d35('0x90')][_0x3d35('0x15')](_0x5d3e17,_0x27cb6a),null!==_0x4eb6a6&&_0x555178[_0x3d35('0xf9')](_0x4eb6a6);}}[_0x3d35('0xaa')](_0x4e1321){switch(_0x4e1321['type']){case _0x3d35('0x98'):return _0x3d35('0xc7');case _0x3d35('0x25'):return'vid_end';default:return _0x3d35('0xf');}}[_0x3d35('0x3e')](_0x57eefa,_0x2bc7d5){_0x57eefa[_0x3d35('0x10a')]=null;for(const _0x208982 in _0x57eefa){const _0x1e09e7=_0x57eefa[_0x208982];if(_0x1e09e7 instanceof _0x50353d){const _0x291200=_0x2bc7d5[_0x3d35('0x86')](_0x1e09e7[_0x3d35('0x5')]['rootName']);_0x57eefa[_0x208982]=this['_fixPosition'](_0x1e09e7,_0x291200);}if(_0x1e09e7 instanceof _0x6fc36b){const _0x19468a=_0x2bc7d5[_0x3d35('0x86')](_0x1e09e7[_0x3d35('0x5')][_0x3d35('0xec')]);_0x57eefa[_0x208982]=this[_0x3d35('0xc6')](_0x1e09e7,_0x19468a);}_0x3d35('0x5')===_0x208982&&(_0x57eefa['root']=_0x2bc7d5[_0x3d35('0x86')](_0x57eefa[_0x3d35('0x5')][_0x3d35('0xec')]));}}[_0x3d35('0xc6')](_0x47b746,_0xe8c86d){return this[_0x3d35('0x1c')]['model'][_0x3d35('0xfc')](this['_fixPosition'](_0x47b746[_0x3d35('0xb0')],_0xe8c86d),this[_0x3d35('0x79')](_0x47b746['end'],_0xe8c86d));}[_0x3d35('0x79')](_0x185e03,_0x1005fb){return this[_0x3d35('0x1c')][_0x3d35('0x12')][_0x3d35('0xe1')](_0x1005fb,_0x185e03[_0x3d35('0x37')],_0x185e03['stickiness']);}[_0x3d35('0x87')](_0x60e618){const _0x3b84e7=this[_0x3d35('0x36')][_0x3d35('0x86')](_0x60e618['position']['root']['rootName']),_0x4209b4=this['_fixPosition'](_0x60e618[_0x3d35('0x8d')],_0x3b84e7),_0x334e8f=null===_0x60e618['_authorId']?null:_0x60e618[_0x3d35('0x3b')]||this['editor']['plugins'][_0x3d35('0x86')](_0x3d35('0x0'))['me']['id'],_0x88dabc=_0x4209b4[_0x3d35('0x3')],_0x259a24=this[_0x3d35('0xf0')],_0xf77561=[];for(const _0x5df4a7 of _0x60e618[_0x3d35('0xac')])if(_0x5df4a7['is'](_0x3d35('0xfe')))_0xf77561[_0x3d35('0xae')](this['_makeIdsRoot'](_0x5df4a7));else for(let _0x93e473=0x0;_0x93e473<_0x5df4a7['offsetSize'];_0x93e473++)_0xf77561[_0x3d35('0xae')](new _0x79c212(_0x3d35('0x94'),{'vid':this[_0x3d35('0xf0')]++}));const _0x1fe1f3=this[_0x3d35('0xf0')];for(let _0x3c98ad=_0x259a24;_0x3c98ad<_0x1fe1f3;_0x3c98ad++)this[_0x3d35('0x54')][_0x3d35('0x15')](_0x3c98ad,{'userId':_0x334e8f});_0x88dabc[_0x3d35('0x7c')](_0x4209b4[_0x3d35('0x92')],_0xf77561);}[_0x3d35('0xe3')](_0x571f41){(_0x571f41=this['_cloneOperation'](_0x571f41,this[_0x3d35('0x36')]))[_0x3d35('0x84')]();const _0x2a250f=null===_0x571f41['_authorId']?null:_0x571f41[_0x3d35('0x3b')]||this[_0x3d35('0x1c')]['plugins'][_0x3d35('0x86')](_0x3d35('0x0'))['me']['id'],_0x57e29d=_0x571f41[_0x3d35('0xa4')](),_0x395b4d=_0x57e29d[_0x3d35('0x3')],_0x12baa8=_0x57e29d['offset'];!function _0xd73861(_0x2f51b8,_0x480ae1,_0xdea798,_0x173e2b){for(let _0x24de30=_0xdea798;_0x24de30<_0x173e2b;_0x24de30++){const _0x192126=_0x480ae1[_0x3d35('0x4c')](_0x24de30);_0x192126['is'](_0x3d35('0xfe'),'$text')?_0x2f51b8['set'](_0x192126['getAttribute']('vid'),{'userId':_0x2a250f}):(_0x2f51b8['set'](_0x192126['getAttribute']('vid_start'),{'userId':_0x2a250f}),_0xd73861(_0x2f51b8,_0x192126,0x0,_0x192126[_0x3d35('0x43')]),_0x2f51b8[_0x3d35('0x15')](_0x192126[_0x3d35('0xe8')]('vid_end'),{'userId':_0x2a250f}));}}(this[_0x3d35('0x54')],_0x395b4d,_0x12baa8,_0x12baa8+_0x571f41[_0x3d35('0x55')]);}[_0x3d35('0x77')](_0x1dfe9b){const _0x2062f5=null===(_0x1dfe9b=this[_0x3d35('0xa0')](_0x1dfe9b,this[_0x3d35('0x36')]))[_0x3d35('0x3b')]?null:_0x1dfe9b['_authorId']||this[_0x3d35('0x1c')][_0x3d35('0x103')]['get']('Users')['me']['id'],_0x969e6a=_0x1dfe9b['targetPosition'][_0x3d35('0x3')],_0x27f2ab=_0x1dfe9b['sourcePosition']['parent'],_0x483b72=_0x969e6a[_0x3d35('0xe8')](_0x3d35('0xff')),_0x5a3e45=_0x27f2ab[_0x3d35('0xe8')]('vid_start');_0x969e6a[_0x3d35('0xd')]('vid_end',_0x27f2ab[_0x3d35('0xe8')](_0x3d35('0xff'))),_0x27f2ab[_0x3d35('0xd')](_0x3d35('0xff'),_0x483b72),this[_0x3d35('0x54')][_0x3d35('0x15')](_0x5a3e45,{'userId':_0x2062f5}),this['_touched']['set'](_0x483b72,{'userId':_0x2062f5}),_0x1dfe9b['_execute']();}['_handleSplitOperation'](_0x2e564c){const _0x1c1b8d=null===(_0x2e564c=this[_0x3d35('0xa0')](_0x2e564c,this[_0x3d35('0x36')]))[_0x3d35('0x3b')]?null:_0x2e564c['_authorId']||this[_0x3d35('0x1c')][_0x3d35('0x103')][_0x3d35('0x86')](_0x3d35('0x0'))['me']['id'],_0x549e5a=_0x2e564c[_0x3d35('0x42')],_0x323960=_0x2e564c[_0x3d35('0xc1')][_0x3d35('0x3')];_0x2e564c[_0x3d35('0x84')]();const _0x446234=_0x323960[_0x3d35('0xe8')]('vid_end'),_0x2605ae=_0x2e564c[_0x3d35('0xba')][_0x3d35('0xef')];if(_0x549e5a){const _0x1d1ad2=_0x2605ae[_0x3d35('0xe8')](_0x3d35('0xff')),_0x5c3fca=_0x323960[_0x3d35('0xe8')](_0x3d35('0xff'));_0x323960[_0x3d35('0xd')](_0x3d35('0xff'),_0x1d1ad2),_0x2605ae[_0x3d35('0xd')](_0x3d35('0xff'),_0x5c3fca),this[_0x3d35('0x54')][_0x3d35('0x15')](_0x323960[_0x3d35('0xe8')]('vid_end'),{'userId':_0x1c1b8d}),this[_0x3d35('0x54')][_0x3d35('0x15')](_0x2605ae['getAttribute'](_0x3d35('0xc7')),{'userId':_0x1c1b8d});}else{const _0x36c0ea=this[_0x3d35('0xf0')]++,_0x2cb1e6=this[_0x3d35('0xf0')]++;_0x323960[_0x3d35('0xd')](_0x3d35('0xff'),_0x36c0ea),_0x2605ae[_0x3d35('0xd')](_0x3d35('0xc7'),_0x2cb1e6),_0x2605ae['_setAttribute']('vid_end',_0x446234),this[_0x3d35('0x54')][_0x3d35('0x15')](_0x36c0ea,{'userId':_0x1c1b8d}),this[_0x3d35('0x54')][_0x3d35('0x15')](_0x2cb1e6,{'userId':_0x1c1b8d});}}['_handleMarkerOperation'](_0x5ed605){if(!_0x5ed605[_0x3d35('0x99')])return;const _0x6ab9fd=(_0x5ed605=this[_0x3d35('0xa0')](_0x5ed605,this[_0x3d35('0x46')]))[_0x3d35('0x7a')]?_0x5ed605[_0x3d35('0x7a')][_0x3d35('0x5')]:null,_0x34ba73=_0x5ed605[_0x3d35('0x96')]?_0x5ed605['newRange']['root']:null;_0x6ab9fd&&this[_0x3d35('0xa2')][_0x3d35('0x10e')](_0x5ed605[_0x3d35('0x10d')]),_0x34ba73&&this[_0x3d35('0xa2')][_0x3d35('0x15')](_0x5ed605[_0x3d35('0x10d')],_0x5ed605['newRange'][_0x3d35('0x3f')]());const _0x3a9dc9=null===_0x5ed605[_0x3d35('0x3b')]?null:_0x5ed605[_0x3d35('0x3b')]||this['editor'][_0x3d35('0x103')][_0x3d35('0x86')]('Users')['me']['id'],_0x56553e=_0x5ed605[_0x3d35('0x10d')];if(!this['_touchedMarkers']['has'](_0x56553e))return void this[_0x3d35('0x2c')][_0x3d35('0x15')](_0x56553e,{'range':_0x5ed605[_0x3d35('0x7a')],'userId':_0x3a9dc9});const _0xd027aa=this[_0x3d35('0x2c')]['get'](_0x56553e),_0x284b18=_0xd027aa[_0x3d35('0x3c')],_0x1a4803=_0x5ed605[_0x3d35('0x96')];null==_0x284b18&&null==_0x1a4803||_0x284b18&&_0x1a4803&&_0x284b18[_0x3d35('0x4')](_0x1a4803)?this[_0x3d35('0x2c')][_0x3d35('0x10e')](_0x5ed605[_0x3d35('0x10d')]):_0xd027aa[_0x3d35('0xe')]=_0x3a9dc9;}[_0x3d35('0x16')](_0x5c2061,_0x1bad79){this[_0x3d35('0x46')][_0x3d35('0x22')](_0x5c2061[_0x3d35('0xec')])?this['_diffRoots'][_0x3d35('0x86')](_0x5c2061[_0x3d35('0xec')])[_0x3d35('0xcf')]=_0x5c2061[_0x3d35('0xde')]:(this['_diffRoots'][_0x3d35('0x15')](_0x5c2061[_0x3d35('0xec')],G(_0x5c2061[_0x3d35('0xec')],!0x0)),this[_0x3d35('0xdd')][_0x3d35('0x15')](_0x5c2061[_0x3d35('0xec')],{}),_0x1bad79&&this[_0x3d35('0x36')]['set'](_0x5c2061['rootName'],G(_0x5c2061[_0x3d35('0xec')],!0x0)));const _0x555bc5=null===_0x5c2061['_authorId']?null:_0x5c2061[_0x3d35('0x3b')]||this[_0x3d35('0x1c')]['plugins']['get'](_0x3d35('0x0'))['me']['id'],_0x422093=this[_0x3d35('0xbc')]['get'](_0x5c2061[_0x3d35('0xec')]);_0x422093&&_0x422093[_0x3d35('0xe')]===_0x555bc5?this[_0x3d35('0xbc')][_0x3d35('0x10e')](_0x5c2061[_0x3d35('0xec')]):this['_touchedRoots'][_0x3d35('0x15')](_0x5c2061[_0x3d35('0xec')],{'userId':_0x555bc5,'isAttached':_0x5c2061['isAdd']});}[_0x3d35('0xa1')](_0x3a70a2){const _0x45f483=this[_0x3d35('0xdd')][_0x3d35('0x86')](_0x3a70a2[_0x3d35('0x5')]['rootName']);null===_0x3a70a2[_0x3d35('0x8c')]?delete _0x45f483[_0x3a70a2[_0x3d35('0xe6')]]:_0x45f483[_0x3a70a2['key']]=_0x3a70a2[_0x3d35('0x8c')];}}function q(_0x3b42b9){const _0x3493f5=G(_0x3b42b9[_0x3d35('0xec')],_0x3b42b9['isAttached']());for(const _0x2475b0 of _0x3b42b9[_0x3d35('0x8e')]()){const _0x437106=_0x2475b0[_0x3d35('0xc')](!0x0);_0x3493f5['_appendChild'](_0x437106);}return _0x3493f5;}function G(_0x361ad0,_0x19fdf2=!0x0){const _0x45f78a=new _0x12b99b();return _0x45f78a['rootName']=_0x361ad0,_0x45f78a[_0x3d35('0xcf')]=_0x19fdf2,_0x45f78a['isAttached']=()=>_0x45f78a[_0x3d35('0xcf')],_0x45f78a;}function L(_0x43bbe8,_0x252cff,_0x4330d3){const _0x2addf6=_0x3d35('0x25')==_0x43bbe8[_0x3d35('0x2e')]?_0x4330d3[_0x3d35('0xb9')](_0x43bbe8['item'],'end'):_0x4330d3[_0x3d35('0xce')](_0x43bbe8[_0x3d35('0x26')]);return _0x4330d3[_0x3d35('0xe1')](_0x252cff,_0x2addf6['path'],_0x2addf6[_0x3d35('0xe9')]);}function W(_0x4c6a70,_0x188085,_0x5e1fd4){const _0x164e87=_0x3d35('0x98')==_0x4c6a70[_0x3d35('0x2e')]?_0x5e1fd4[_0x3d35('0xb9')](_0x4c6a70[_0x3d35('0x26')],0x0):_0x5e1fd4['createPositionAfter'](_0x4c6a70[_0x3d35('0x26')]);return _0x5e1fd4[_0x3d35('0xe1')](_0x188085,_0x164e87[_0x3d35('0x37')],_0x164e87[_0x3d35('0xe9')]);}
23
+ const _0x689f=['getRevisionDocumentData','size','creator','createPositionBefore','_lastTo','_revisionId','revisionHistory.resumeUnsavedRevision','authorsIds','model','_lastFrom','getOperations','toData','deletions','roots','_makeRevision','processor','getChildren','split','insertion','toVersion','_calculateMetaData','_source','_getBaseVids','history','plugins','insertionPosition','_processRootBeforeSave','version','offsetSize','vid_end','_markers','for','getMovedRangeStart','resolve','userId','dataToMarker','sort','reinsert','nodes','pluginName','toModel','elementStart','add','_startingVersion','string','oldRange','buildRevisionData','offset','diffData','requires','getOperation','updateRevisions','_isPendingUpdate','_update','range','upcast','_idsRoots','start','_baseRootsAttributes','_handleOperation','parse','$graveyard','_isAttached','clear','initial','keys','_getPreviousFrom','getData','getAttributes','_cloneOperation','elementEnd','length','newValue','tableCell','type','_loadedStateData','markers','name','currentRevision','getAttribute','attachChange','getNodeByPath','NEGATIVE_INFINITY','getRevision','getRootNames','clone','attributesAfter','getUser','RevisionsRepository','markerToData','reInit','$text','createRange','marked','fromVersion','delete','paragraph','_createCurrentRevision','Initial\x20revision','_appendChild','getRevisionRootsAttributes','_bufferUpdate','item','addRevisionData','loadState','isAdd','createPositionAfter','root','end','children','getCurrentRevisionId','remove','authors','Empty\x20document','getRange','then','_operations','_removeMetaData','createdAt','_insertChild','_transformMarkers','_setAttribute','getChild','config','collaboration.channelId','changeRootAttribute','_makeModelFromViewString','from','source','_baseRoots','getIndex','_authorId','revision','howMany','vid','insert','newRange','_getState','data','_clone','editor','_applyOperations','createRangeIn','isEqual','splitPosition','sendBufferedUpdates','getLatestVersion','_execute','addRootAttribute','stickiness','_reset','_revisionDataBuilder','_markChanges','attributes','_loadRevisionData','_pendingAction','documentFragment','_makeIdsRoot','initialData','isEnabled','_replaceEditorDataWithRevisionData','baseVersion','getRevisions','_getFromVersion','setRevisionData','filter','parent','_handleInsertOperation','data-revision-','_startingRevisionId','createPositionAt','creatorId','RealTimeCollaborationClient','_handleSplitOperation','getTransformedByOperation','isAttached','graveyardPosition','_diffRootsAttributes','keepParagraph','has','fromEntries','_fixPosition','_handleMergeOperation','_copyMarkers','map','_bufferedUpdates','_touchedMarkers','_fixRange','createPositionFromPath','startsWith','_saveMetaData','repository','_getVidAttributeName','editor-initial-data-replaced-with-revision-data','previousPosition','nodeAfter','merge','marker','includes','getRoot','reverse','_removeRevisionMarkers','values','rootsAttributes','_getViewJson','_diffRoots','getAncestors','getWalker','_handleMarkerOperation','element','set','childCount','init','addRoot','finally','RevisionTracker','getTime','bind','document','_fixOperation','_baseIdsRoots','_handleMoveOperation','_touchedRoots','_continueCurrentRevision','createRevision','revision:','shift','rootName','revision-start','_savedMetaData','_touched','revision-end','_loadState','locale','_initialRevisionId','insertions','_handleRootOperation','view','find','isReady','targetPosition','push','_prepareViewToSave','adapter','PendingActions','editing','path','useFillerType','_handleRootAttributeOperation','text','setSource','trim','_findInsertionIndex','some','position','update','vid_start','_generateTape','_createInitialRevision','get','_setConversion','affectsData','conversion','slice','Users','stringify'];(function(_0x967d48,_0x689f12){const _0xde461b=function(_0x96bde2){while(--_0x96bde2){_0x967d48['push'](_0x967d48['shift']());}};_0xde461b(++_0x689f12);}(_0x689f,0x8b));const _0xde46=function(_0x967d48,_0x689f12){_0x967d48=_0x967d48-0x0;let _0xde461b=_0x689f[_0x967d48];return _0xde461b;};import{Users as _0x48ef1b}from'ckeditor5-collaboration/src/collaboration-core.js';import{Plugin as _0x883c34,PendingActions as _0x351d21}from'ckeditor5/src/core.js';import{logWarning as _0x171f83,uid as _0x285583}from'ckeditor5/src/utils.js';import{Position as _0x5115d2,Range as _0x4af96f,Element as _0x4d2765,DocumentFragment as _0x578f11,ViewText as _0x78ac39,ViewElement as _0x16b40f,ViewContainerElement as _0xfa7524,ViewAttributeElement as _0x12b585,ViewEmptyElement as _0x4cc66f,ViewRawElement as _0x3d69d5,ViewUIElement as _0xec8fce,ViewDocumentFragment as _0x80e81a}from'ckeditor5/src/engine.js';import _0x110ca3 from'./revisionsrepository.js';import{getTranslation as _0x10fbb0}from'./utils/common-translations.js';import{cloneDeep as _0x5f2d28,isEqual as _0xd84e66}from'lodash-es';const B={'c':_0xfa7524,'a':_0x12b585,'e':_0x4cc66f,'r':_0x3d69d5,'u':_0xec8fce};export default class l extends _0x883c34{static get[_0xde46('0xa6')](){return _0xde46('0x4c');}static get[_0xde46('0xb0')](){return[_0x48ef1b,_0x110ca3,_0x351d21];}constructor(_0xb2f43a){super(_0xb2f43a),this[_0xde46('0x68')]=null,this[_0xde46('0xcd')]=null,this[_0xde46('0xc')]=new H(this['editor']),this[_0xde46('0x5f')]=this['editor'][_0xde46('0xfa')][_0xde46('0x78')](_0xde46('0xfb'))||_0xde46('0xbf'),this[_0xde46('0x2e')]=new Map(),this['_loadedStateData']=null;const _0x2bae69=_0x285583();this['_source']={'history':this[_0xde46('0x1')]['model']['document'][_0xde46('0x96')],'getLatestVersion':()=>Promise[_0xde46('0xa0')](this[_0xde46('0x1')][_0xde46('0x87')][_0xde46('0x4f')][_0xde46('0x9a')]),'getCurrentRevisionId':()=>_0x2bae69},this[_0xde46('0x47')]('isReady',!0x1),this['set'](_0xde46('0x14'),!0x0),this[_0xde46('0x47')](_0xde46('0xb3'),!0x1),this[_0xde46('0x1')]['config']['define'](_0xde46('0x85'),!0x0),this[_0xde46('0x1')][_0xde46('0x7b')][_0xde46('0x9e')](_0xde46('0xb6'))[_0xde46('0xa2')]({'view':_0xde46('0x103')});}[_0xde46('0x49')](){this[_0xde46('0x34')]=this[_0xde46('0x1')][_0xde46('0x97')][_0xde46('0x78')](_0xde46('0xd7')),this[_0xde46('0x79')](),this[_0xde46('0x1')][_0xde46('0x109')]['on']('ready',()=>{const _0xe0786e=this['repository'][_0xde46('0xd2')](0x0),_0x2ac813=_0xe0786e&&null===_0xe0786e[_0xde46('0x81')]?_0xe0786e:null;if(this[_0xde46('0x54')]=!!_0x2ac813&&this[_0xde46('0x1')]['config']['get']('revisionHistory.resumeUnsavedRevision'),this[_0xde46('0x1')][_0xde46('0x97')][_0xde46('0x28')](_0xde46('0x21'))){const _0x100119=this[_0xde46('0x94')][_0xde46('0xed')](),_0x17c8bf=this[_0xde46('0x34')][_0xde46('0xd2')](_0x100119);if(_0x17c8bf)this[_0xde46('0xaa')]=_0x17c8bf[_0xde46('0xdd')],this[_0xde46('0x54')]=!0x1;else{const _0x278991=this[_0xde46('0x94')]['history'][_0xde46('0xf3')][_0xde46('0x63')](_0x3f4e64=>!_0x3f4e64['_isInit']),_0x2c6c5c=_0x278991?_0x278991[_0xde46('0x16')]:this[_0xde46('0x94')]['history'][_0xde46('0x9a')];_0xe0786e?(_0xe0786e[_0xde46('0x92')]<_0x2c6c5c&&_0xe0786e['_update']({'toVersion':_0x2c6c5c}),this[_0xde46('0x54')]?(this['_source'][_0xde46('0xed')]=()=>_0x2ac813['id'],this[_0xde46('0xaa')]=_0x2ac813[_0xde46('0xdd')]):(this['_startingVersion']=_0xe0786e[_0xde46('0x92')],this['_continueCurrentRevision']=!0x1)):(this[_0xde46('0xaa')]=_0x2c6c5c,this['_continueCurrentRevision']=!0x1);}}else _0x2ac813&&(this[_0xde46('0x1')][_0xde46('0x87')][_0xde46('0x4f')]['history'][_0xde46('0x9a')]=Math['max'](_0x2ac813[_0xde46('0x92')],this[_0xde46('0x1')][_0xde46('0x87')][_0xde46('0x4f')][_0xde46('0x96')]['version']),_0x2ac813[_0xde46('0xdd')]===_0x2ac813[_0xde46('0x92')]?(0x0!==_0x2ac813[_0xde46('0xdd')]&&(this[_0xde46('0x94')][_0xde46('0xed')]=()=>_0x2ac813['id']),this[_0xde46('0x54')]=!0x1):this[_0xde46('0x54')]&&(this[_0xde46('0x94')][_0xde46('0xed')]=()=>_0x2ac813['id'],this[_0xde46('0xaa')]=_0x2ac813[_0xde46('0xdd')])),this[_0xde46('0x54')]||(this[_0xde46('0xaa')]=this[_0xde46('0x1')]['model'][_0xde46('0x4f')][_0xde46('0x9a')]);this[_0xde46('0xc')][_0xde46('0x49')](this['_source'][_0xde46('0x96')]),this[_0xde46('0x77')](this[_0xde46('0xaa')]),this[_0xde46('0xe0')](this[_0xde46('0xaa')]),this['adapter']&&this[_0xde46('0x6')]();}),this[_0xde46('0x4e')](_0xde46('0x64'))['to'](this,_0xde46('0xb3'),_0x14d7ae=>!_0x14d7ae);}async['afterInit'](){if(this[_0xde46('0x34')][_0xde46('0xc6')]>0x0){const _0x5134b6=this[_0xde46('0x34')][_0xde46('0xd2')](0x0),_0x1faa3b=await this[_0xde46('0x7f')](_0x5134b6),_0x43c549=await this[_0xde46('0xe3')](_0x5134b6);this[_0xde46('0x15')](_0x1faa3b,_0x43c549);}}[_0xde46('0x6f')](_0xa53dc2){this[_0xde46('0x94')]=_0xa53dc2;}async[_0xde46('0x74')](){const _0x5ba32d=await this[_0xde46('0x94')]['getLatestVersion']();if(_0x5ba32d>this[_0xde46('0xcd')][_0xde46('0x92')]){await this[_0xde46('0x5d')]();const _0x4d016a=this[_0xde46('0xad')]({'revision':this[_0xde46('0xcd')],'to':_0x5ba32d});_0x4d016a[_0xde46('0xef')]=_0x4d016a['authorsIds'][_0xde46('0x2d')](_0x3db070=>this[_0xde46('0x1')][_0xde46('0x97')][_0xde46('0x78')](_0xde46('0x7d'))[_0xde46('0xd6')](_0x3db070)),this[_0xde46('0xcd')][_0xde46('0xb4')](_0x4d016a);}}async[_0xde46('0x5d')](){this['_continueCurrentRevision']&&!this[_0xde46('0xca')]&&(await this[_0xde46('0xf')](this[_0xde46('0xcd')]),this[_0xde46('0xc')][_0xde46('0xe7')](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision'][_0xde46('0xdd')],'authors':this[_0xde46('0xcd')][_0xde46('0xef')]['slice']()});}async['saveRevision'](_0x227009={},_0x4a774a=null){const _0x417f08=[];await this[_0xde46('0x5d')](),this['_continueCurrentRevision']=!0x1,_0x4a774a>this['currentRevision']['toVersion']&&(_0x4a774a=null),null===_0x4a774a&&(_0x4a774a=await this['_source'][_0xde46('0x7')]());const _0xd2c047=this[_0xde46('0x18')](_0x4a774a),_0x5c63f9=this['buildRevisionData']({'from':_0xd2c047,'to':_0x4a774a});if(this[_0xde46('0xcd')][_0xde46('0x92')]<_0x4a774a){const _0x4b0d1d=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4a774a,'to':_0x4a774a});_0x4b0d1d[_0xde46('0xef')]=[],_0x4b0d1d[_0xde46('0x86')]=[],_0x4b0d1d['id']=this[_0xde46('0xcd')]['id'],this['currentRevision'][_0xde46('0xb4')](_0x4b0d1d,!0x0),delete _0x4b0d1d[_0xde46('0xef')],_0x417f08['push'](_0x4b0d1d);}_0x227009['creatorId']=this[_0xde46('0x1')][_0xde46('0x97')][_0xde46('0x78')]('Users')['me']['id'],_0x227009[_0xde46('0xcc')]=_0x227009['name']||null,_0x227009['id']=_0x227009['id']||_0x285583(),_0x227009={..._0x227009,..._0x5c63f9};const _0xd1a876=this[_0xde46('0xe6')](_0x227009);_0x417f08[_0xde46('0x66')](_0x227009);const _0x1b9f60=this[_0xde46('0x34')][_0xde46('0x101')](_0xd1a876);if(0x0!==_0x1b9f60){const _0xa4b6b5=this['repository'][_0xde46('0xd2')](_0x1b9f60-0x1);if(_0xa4b6b5[_0xde46('0xdd')]!==_0x4a774a){const _0x3289c3=this[_0xde46('0xc')][_0xde46('0xc2')](_0x4a774a,_0xa4b6b5[_0xde46('0x92')]),_0x178880={'id':_0xa4b6b5['id'],'diffData':_0x3289c3[_0xde46('0xaf')],'authorsIds':_0x3289c3[_0xde46('0x86')],'authors':_0x3289c3[_0xde46('0x86')][_0xde46('0x2d')](_0x3d54d3=>this[_0xde46('0x1')][_0xde46('0x97')]['get'](_0xde46('0x7d'))[_0xde46('0xd6')](_0x3d54d3)),'fromVersion':_0x4a774a};_0xa4b6b5===this[_0xde46('0xcd')]&&(_0x178880[_0xde46('0xf5')]=new Date(_0x227009[_0xde46('0xf5')][_0xde46('0x4d')]()+0xa)),_0xa4b6b5[_0xde46('0xb4')](_0x178880,!0x0),delete _0x178880[_0xde46('0xef')],_0x417f08['push'](_0x178880);}}if(this['adapter']){for(const _0x150321 of _0x417f08)this[_0xde46('0xe4')](_0x150321['id'],_0x150321,!0x0);this[_0xde46('0x6')]();}return _0xd1a876;}[_0xde46('0xe6')](_0x2419e3){const _0x1e41e6=this[_0xde46('0x34')][_0xde46('0x55')](_0x2419e3);return this[_0xde46('0x68')]&&_0x1e41e6['on'](_0xde46('0xb4'),(_0x22c585,_0x7ca76c,_0x4358f5)=>{_0x4358f5||(this[_0xde46('0xe4')](_0x7ca76c['id'],_0x7ca76c,!0x0),this[_0xde46('0x6')]());}),this['repository']['addRevision'](_0x1e41e6,this[_0xde46('0x71')](_0x1e41e6)),_0x1e41e6;}async[_0xde46('0x7f')](_0x2be96e){await this[_0xde46('0xf')](_0x2be96e);const _0x7d62e7={};for(const _0x11d1d5 in _0x2be96e[_0xde46('0xaf')]){if(_0x2be96e[_0xde46('0xaf')][_0x11d1d5]['attachChange']&&!_0x2be96e['diffData'][_0x11d1d5][_0xde46('0xcf')]['isAttached'])continue;const _0xca7a9f=this['_removeRevisionMarkers'](JSON['parse'](_0x2be96e[_0xde46('0xaf')][_0x11d1d5][_0xde46('0x60')])),_0x35c531=this[_0xde46('0x1')][_0xde46('0x6a')][_0xde46('0x62')][_0xde46('0x4f')],_0x596194=new _0x80e81a(_0x35c531,_0xca7a9f[_0xde46('0x2d')](_0x5aa43c=>J(_0x5aa43c,this['editor'])));this['editor'][_0xde46('0x109')][_0xde46('0x8e')][_0xde46('0x6c')](_0xde46('0xdc')),_0x7d62e7[_0x11d1d5]=this['editor']['data'][_0xde46('0x8e')][_0xde46('0x8a')](_0x596194),this[_0xde46('0x1')][_0xde46('0x109')][_0xde46('0x8e')][_0xde46('0x6c')]('default');}return _0x7d62e7;}async[_0xde46('0xe3')](_0x5464f5){await this[_0xde46('0xf')](_0x5464f5);const _0x36e9f1={};for(const _0x4f236f in _0x5464f5['diffData'])_0x5464f5[_0xde46('0xaf')][_0x4f236f][_0xde46('0xcf')]&&!_0x5464f5[_0xde46('0xaf')][_0x4f236f][_0xde46('0xcf')]['isAttached']||(_0x36e9f1[_0x4f236f]=_0x5464f5['diffData'][_0x4f236f]['attributesAfter']||{});return _0x36e9f1;}[_0xde46('0x6')](){if(0x0===this['_bufferedUpdates']['size'])return;if(this[_0xde46('0xb3')])return;let _0x2ebfa4=Array[_0xde46('0xfe')](this[_0xde46('0x2e')][_0xde46('0x3f')]());this[_0xde46('0x2e')][_0xde46('0xbe')]();for(let _0x1ed81c=0x0;_0x1ed81c<_0x2ebfa4[_0xde46('0xc6')];_0x1ed81c++){const _0x10ea39=_0x2ebfa4[_0x1ed81c];let _0x467790=!0x1;for(const _0x52ce5c of Object[_0xde46('0xc0')](_0x10ea39))void 0x0===_0x10ea39[_0x52ce5c]?delete _0x10ea39[_0x52ce5c]:'id'!==_0x52ce5c&&(_0x467790=!0x0);_0x467790||(_0x2ebfa4[_0x1ed81c]=null);}if(_0x2ebfa4=_0x2ebfa4['filter'](_0x261833=>null!==_0x261833),!_0x2ebfa4['length'])return;for(let _0xdb92d1=0x0;_0xdb92d1<_0x2ebfa4[_0xde46('0xc6')];_0xdb92d1++){const _0x2e2377=_0x2ebfa4[_0xdb92d1];void 0x0!==_0x2e2377['fromVersion']&&void 0x0===_0x2e2377['toVersion']&&(_0x2e2377['toVersion']=this[_0xde46('0x34')]['getRevision'](_0x2e2377['id'])[_0xde46('0x92')]),void 0x0!==_0x2e2377[_0xde46('0x92')]&&void 0x0===_0x2e2377[_0xde46('0xdd')]&&(_0x2e2377['fromVersion']=this[_0xde46('0x34')][_0xde46('0xd2')](_0x2e2377['id'])[_0xde46('0xdd')]);}const _0xc0ed4e=this[_0xde46('0x1')][_0xde46('0xfa')][_0xde46('0x78')](_0xde46('0xfb'));this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this[_0xde46('0x68')][_0xde46('0xb2')](_0x2ebfa4,_0xc0ed4e)[_0xde46('0x4b')](()=>{this['_isPendingUpdate']=!0x1;})[_0xde46('0xf2')](_0x22f721=>{if(_0x22f721)for(const _0x2aeb6c of _0x22f721)this[_0xde46('0x19')]({'id':_0x2aeb6c['id'],'createdAt':_0x2aeb6c[_0xde46('0xf5')]});this['_removePendingAction'](),this['sendBufferedUpdates']();});}[_0xde46('0x15')](_0x44848a,_0x278ec7){let _0x2e56eb=this[_0xde46('0x1')][_0xde46('0xfa')][_0xde46('0x78')](_0xde46('0x13')),_0x5a78ad=this['editor'][_0xde46('0xfa')][_0xde46('0x78')](_0xde46('0x40'));if(void 0x0===_0x2e56eb){_0x2e56eb={};for(const _0x11c5ee of this['editor'][_0xde46('0x87')][_0xde46('0x4f')]['getRootNames']())_0x2e56eb[_0x11c5ee]='';}if(_0xde46('0xab')==typeof _0x2e56eb&&(_0x2e56eb={'main':_0x2e56eb}),void 0x0===_0x5a78ad){_0x5a78ad={};for(const _0x1d224c of this[_0xde46('0x1')][_0xde46('0x87')][_0xde46('0x4f')][_0xde46('0xd3')]())_0x5a78ad[_0x1d224c]={};}let _0x4894be=!0x1;const _0x41f7f4=Object[_0xde46('0xc0')](_0x2e56eb),_0x36db01=Object['keys'](_0x44848a);for(const _0x10239e of _0x41f7f4){if(_0x2e56eb[_0x10239e]!==_0x44848a[_0x10239e]&&''!==_0x2e56eb[_0x10239e][_0xde46('0x70')]()){_0x4894be=!0x0;break;}if(!_0xd84e66(_0x5a78ad[_0x10239e],_0x278ec7[_0x10239e])&&Object['keys'](_0x5a78ad[_0x10239e])[_0xde46('0xc6')]>0x0){_0x4894be=!0x0;break;}}_0x4894be||(_0x4894be=_0x36db01[_0xde46('0x72')](_0x30a77f=>!this['editor']['model'][_0xde46('0x4f')]['getRoot'](_0x30a77f))),_0x4894be&&_0x171f83(_0xde46('0x36'),{'editorData':_0x2e56eb,'editorRootsAttributes':_0x5a78ad,'revisionData':_0x44848a,'revisionRootsAttributes':_0x278ec7}),this['editor'][_0xde46('0xfa')]['set'](_0xde46('0x13'),_0x44848a),this[_0xde46('0x1')][_0xde46('0xfa')][_0xde46('0x47')]('rootsAttributes',_0x278ec7);}['_addPendingAction'](){if(!this[_0xde46('0x10')]){const _0x444691=this[_0xde46('0x1')]['plugins'][_0xde46('0x78')](_0xde46('0x69'));this[_0xde46('0x10')]=_0x444691[_0xde46('0xa9')](_0x10fbb0(this[_0xde46('0x1')][_0xde46('0x5e')],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this[_0xde46('0x10')]&&(this[_0xde46('0x1')][_0xde46('0x97')][_0xde46('0x78')]('PendingActions')[_0xde46('0xee')](this[_0xde46('0x10')]),this['_pendingAction']=null);}[_0xde46('0x71')](_0x2fc885){const _0x142c1a=this[_0xde46('0x34')][_0xde46('0x17')]();_0x142c1a[_0xde46('0x3d')]();let _0x2b6006=0x0;for(;_0x2b6006<_0x142c1a[_0xde46('0xc6')];){const _0x4fb64b=_0x142c1a[_0x2b6006];if(_0x4fb64b===this[_0xde46('0xcd')]){_0x2b6006++;continue;}if(_0x4fb64b['id']===this[_0xde46('0x5f')])break;const _0x2766b3=_0x2fc885['toVersion']-_0x4fb64b['toVersion']||_0x2fc885[_0xde46('0xdd')]-_0x4fb64b[_0xde46('0xdd')];if(_0x2766b3>0x0)break;if(_0x2766b3<0x0)_0x2b6006++;else{if(!_0x2fc885[_0xde46('0x81')]&&_0x4fb64b['creator'])break;if(_0x4fb64b['creator']||!_0x2fc885[_0xde46('0x81')]){if(_0x2fc885[_0xde46('0xf5')]>_0x4fb64b[_0xde46('0xf5')])break;_0x2b6006++;}else _0x2b6006++;}}return _0x2b6006;}[_0xde46('0x19')](_0x4a32d4){const _0x4d9c88=this[_0xde46('0x34')][_0xde46('0xd2')](_0x4a32d4['id']);if(_0x4a32d4['createdAt']&&(_0x4a32d4['createdAt']=new Date(_0x4a32d4[_0xde46('0xf5')])),_0x4a32d4[_0xde46('0x86')]){const _0x27578c=this['editor'][_0xde46('0x97')][_0xde46('0x78')](_0xde46('0x7d'));_0x4a32d4[_0xde46('0xef')]=_0x4a32d4['authorsIds']['map'](_0x1fece0=>_0x27578c[_0xde46('0xd6')](_0x1fece0));}_0x4d9c88[_0xde46('0xb4')](_0x4a32d4,!0x0);}[_0xde46('0xad')]({revision:_0x5df22e=null,from:_0x77c7c2=null,to:_0x1e4e95=null}){_0x77c7c2=null!==_0x77c7c2?_0x77c7c2:_0x5df22e[_0xde46('0xdd')],_0x1e4e95=null!==_0x1e4e95?_0x1e4e95:_0x5df22e[_0xde46('0x92')];const _0x42ed44=this['_revisionDataBuilder']['getData'](_0x77c7c2,_0x1e4e95),_0x16220f={'diffData':_0x42ed44[_0xde46('0xaf')],'authorsIds':_0x42ed44[_0xde46('0x86')],'fromVersion':_0x77c7c2,'toVersion':_0x1e4e95};if(!_0x5df22e||_0x1e4e95!==_0x5df22e[_0xde46('0x92')]){const _0x4ebdd=_0x1e4e95-0x1,_0xdb379c=this[_0xde46('0x94')][_0xde46('0x96')][_0xde46('0xb1')](_0x4ebdd);_0x16220f[_0xde46('0xf5')]=_0xdb379c&&_0xdb379c[_0xde46('0xf5')]||new Date();}if(this['_loadedStateData']&&_0x77c7c2===this[_0xde46('0xca')][_0xde46('0xdd')])for(const _0x453a87 of this[_0xde46('0xca')]['authors'])_0x16220f[_0xde46('0x86')][_0xde46('0x3b')](_0x453a87['id'])||_0x16220f[_0xde46('0x86')]['push'](_0x453a87['id']);return _0x16220f;}[_0xde46('0xf')](_0x284c4e){if(!_0x284c4e||_0x284c4e[_0xde46('0xaf')])return Promise[_0xde46('0xa0')]();{const _0x317280=this[_0xde46('0x1')][_0xde46('0xfa')]['get'](_0xde46('0xfb'));return this[_0xde46('0x68')][_0xde46('0xd2')]({'channelId':_0x317280,'revisionId':_0x284c4e['id']})[_0xde46('0xf2')](_0x247aac=>{_0x284c4e[_0xde46('0xaf')]=_0x247aac[_0xde46('0xaf')];});}}[_0xde46('0xe4')](_0x2fbbe8,_0x1f2d33,_0x15c525){if(this['_bufferedUpdates']['has'](_0x2fbbe8)){const _0x236453=this[_0xde46('0x2e')]['get'](_0x2fbbe8);_0x1f2d33=_0x15c525?{..._0x236453,..._0x1f2d33}:{..._0x1f2d33,..._0x236453};}this[_0xde46('0x2e')][_0xde46('0x47')](_0x2fbbe8,_0x1f2d33);}['_getFromVersion'](_0x166bc2){const _0x2ac972=this[_0xde46('0x34')][_0xde46('0x17')]();_0x2ac972[_0xde46('0x3d')](),_0x2ac972[_0xde46('0x57')]();const _0x4d5bba=_0x2ac972[_0xde46('0x63')](_0xe78af3=>_0xe78af3['toVersion']<=_0x166bc2)[_0xde46('0x92')];return _0x4d5bba<this[_0xde46('0xaa')]?this[_0xde46('0xaa')]:_0x4d5bba;}[_0xde46('0x77')](_0x16bb87){const _0x20d713=this[_0xde46('0x34')][_0xde46('0xd2')](this[_0xde46('0x34')][_0xde46('0xc6')]-0x1);if(_0x20d713)this['_initialRevisionId']=_0x20d713['id'];else{const _0x29f063=!this['editor'][_0xde46('0x87')][_0xde46('0x4f')]['roots'][_0xde46('0x63')](_0x524675=>this['editor'][_0xde46('0x87')]['hasContent'](_0x524675)),_0x365b9b=this[_0xde46('0x1')][_0xde46('0x97')][_0xde46('0x78')](_0xde46('0x7d'))['me']['id'],_0x296e62=_0x10fbb0(this[_0xde46('0x1')][_0xde46('0x5e')],_0x29f063?_0xde46('0xf0'):_0xde46('0xe1'));this[_0xde46('0x8d')]({'from':_0x16bb87,'to':_0x16bb87,'id':this[_0xde46('0x5f')],'name':_0x296e62,'creatorId':_0x365b9b});}}[_0xde46('0xe0')](_0x311d91){const _0x4f0b50=this['_source']['getCurrentRevisionId']();this[_0xde46('0xcd')]=this[_0xde46('0x34')][_0xde46('0xd2')](_0x4f0b50),this['currentRevision']||(this[_0xde46('0xcd')]=this[_0xde46('0x8d')]({'from':_0x311d91,'to':_0x311d91,'id':_0x4f0b50,'name':'','creatorId':null}));}[_0xde46('0x8d')]({name:_0x3ca387,from:_0x55e8c4,to:_0x326183,creatorId:_0x2b4e49,id:_0x130f41}){const _0x3dc68a=this[_0xde46('0xad')]({'from':_0x55e8c4,'to':_0x326183});_0x3dc68a['name']=_0x3ca387,_0x3dc68a[_0xde46('0x20')]=_0x2b4e49,_0x3dc68a['id']=_0x130f41;const _0x1a5e56=this[_0xde46('0xe6')](_0x3dc68a);return this[_0xde46('0x68')]&&this[_0xde46('0xe4')](_0x3dc68a['id'],_0x3dc68a,!0x0),_0x1a5e56;}[_0xde46('0x79')](){this['editor'][_0xde46('0x7b')][_0xde46('0x9e')]('dataDowncast')[_0xde46('0xd8')]({'model':_0xde46('0x103')});}[_0xde46('0x3e')](_0x4ff1f6){return(_0x4ff1f6=_0x4ff1f6['filter'](_0x57a54c=>!_0x57a54c[_0xde46('0xcc')]||_0xde46('0x59')!==_0x57a54c[_0xde46('0xcc')]&&_0xde46('0x5c')!==_0x57a54c[_0xde46('0xcc')]))['forEach'](_0x4d64f3=>{_0xde46('0xab')!=typeof _0x4d64f3&&(_0x4d64f3[_0xde46('0xec')]=this[_0xde46('0x3e')](_0x4d64f3[_0xde46('0xec')]),_0x4d64f3[_0xde46('0xe')]=_0x4d64f3[_0xde46('0xe')][_0xde46('0x1a')](_0x56d0e9=>!_0x56d0e9[0x0][_0xde46('0x32')](_0xde46('0x1d'))));}),_0x4ff1f6;}}function J(_0x2bf5f1,_0x1d6c89){const _0x342252=_0x1d6c89[_0xde46('0x6a')][_0xde46('0x62')][_0xde46('0x4f')];if(_0xde46('0xab')==typeof _0x2bf5f1)return new _0x78ac39(_0x342252,_0x2bf5f1);{const _0xb5d46a=_0x2bf5f1[_0xde46('0xec')][_0xde46('0x2d')](_0x2e1671=>J(_0x2e1671,_0x1d6c89));return new(B[_0x2bf5f1[(_0xde46('0xc9'))]]||_0x16b40f)(_0x342252,_0x2bf5f1['name'],_0x2bf5f1[_0xde46('0xe')],_0xb5d46a);}}class H{constructor(_0xfadb29){this[_0xde46('0x1')]=_0xfadb29,this[_0xde46('0x5a')]=new Map(),this[_0xde46('0x88')]=-0x1,this['_lastTo']=-0x1,this[_0xde46('0x9d')]=new Map(),this[_0xde46('0x42')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0xde46('0x100')]=new Map(),this[_0xde46('0xb9')]=new Map(),this['_idsRoots']=new Map(),this[_0xde46('0x51')]=new Map(),this[_0xde46('0x5b')]=new Map(),this[_0xde46('0x2f')]=new Map(),this[_0xde46('0x53')]=new Map(),this[_0xde46('0x84')]=0x1;}[_0xde46('0x49')](_0x2024ba){this[_0xde46('0xff')]=_0x2024ba;const _0x7a5450=new Map(),_0x18d4b4=new Map(),_0x939ccd=this[_0xde46('0x1')][_0xde46('0x87')][_0xde46('0x4f')][_0xde46('0x8c')][_0xde46('0x2d')](_0x1437d5=>_0x1437d5[_0xde46('0x58')]);for(const _0x28c5e8 of _0x939ccd){const _0x459b40=this[_0xde46('0x1')][_0xde46('0x87')]['document'][_0xde46('0x3c')](_0x28c5e8),_0x41b1fa=q(_0x459b40);_0x7a5450['set'](_0x28c5e8,_0x41b1fa),_0x18d4b4[_0xde46('0x47')](_0x28c5e8,Object[_0xde46('0x29')](_0x459b40[_0xde46('0xc3')]()));}const _0x13e82c=Array['from'](this[_0xde46('0x1')][_0xde46('0x87')][_0xde46('0xcb')])[_0xde46('0x2d')](_0x9359aa=>[_0x9359aa[_0xde46('0xcc')],_0x9359aa[_0xde46('0xf1')]()]),_0x3c1d50=this[_0xde46('0xff')]['version'];this[_0xde46('0x33')](_0x3c1d50,_0x7a5450,_0x13e82c,_0x18d4b4),this[_0xde46('0x1e')]=this[_0xde46('0x84')];const _0x3be42d=new Map(),_0x4811d6=new Map();for(const _0x7a4890 of _0x939ccd){const _0x2ebb10=G(_0x7a4890);_0x3be42d[_0xde46('0x47')](_0x7a4890,_0x2ebb10),_0x4811d6[_0xde46('0x47')](_0x7a4890,{});}this[_0xde46('0x33')](Number[_0xde46('0xd1')],_0x3be42d,[],_0x4811d6);}[_0xde46('0xc2')](_0x2f854d,_0x5972b4){if(this[_0xde46('0x88')]===_0x2f854d&&this[_0xde46('0x83')]<=_0x5972b4)this[_0xde46('0x5a')][_0xde46('0x80')]>0x1&&this[_0xde46('0xf4')](this[_0xde46('0x83')]),this[_0xde46('0x2')](this[_0xde46('0x83')],_0x5972b4,!0x0);else{if(!this['_savedMetaData'][_0xde46('0x28')](_0x2f854d)){const _0x3c8119=this['_getPreviousFrom'](_0x2f854d);this['_calculateMetaData'](_0x3c8119,_0x2f854d,!0x1);}this[_0xde46('0x93')](_0x2f854d,_0x5972b4,!0x0);}return this['_lastFrom']=_0x2f854d,this[_0xde46('0x83')]=_0x5972b4,this[_0xde46('0x108')]();}[_0xde46('0xe7')](_0x37537a){this[_0xde46('0xb')](),this['_lastFrom']=_0x37537a['fromVersion'],this[_0xde46('0x83')]=_0x37537a[_0xde46('0x92')];for(const _0x47a3b0 in _0x37537a[_0xde46('0xaf')]){const _0x2952bb=_0x37537a[_0xde46('0xaf')][_0x47a3b0][_0xde46('0xcf')],_0x709f54=_0x5f2d28(_0x37537a[_0xde46('0xaf')][_0x47a3b0]['attributesBefore'])||{},_0x5ded23=this[_0xde46('0xfd')](_0x37537a[_0xde46('0xaf')][_0x47a3b0][_0xde46('0x8b')]);_0x5ded23[_0xde46('0x58')]=_0x47a3b0,_0x5ded23[_0xde46('0xbd')]=!_0x2952bb||!_0x2952bb['isAttached'],_0x5ded23[_0xde46('0x24')]=()=>_0x5ded23[_0xde46('0xbd')],this[_0xde46('0x100')][_0xde46('0x47')](_0x47a3b0,_0x5ded23),this[_0xde46('0xb9')]['set'](_0x47a3b0,_0x709f54),_0x2952bb&&this[_0xde46('0x53')][_0xde46('0x47')](_0x47a3b0,_0x2952bb);const _0x3a4084=this[_0xde46('0x12')](_0x5ded23);this['_baseIdsRoots']['set'](_0x47a3b0,_0x3a4084);for(const [_0x5924a5,_0x252667]of _0x5ded23[_0xde46('0xcb')]){if(!_0x5924a5[_0xde46('0x32')](_0xde46('0x56')))continue;const _0x2e47ca=_0x5924a5['split'](':')[0x2];for(const _0x185efa of _0x252667[_0xde46('0x44')]({'singleCharacters':!0x0})){const _0x5685e=this[_0xde46('0x35')](_0x185efa),_0x5d9230=_0xde46('0xc5')==_0x185efa[_0xde46('0xc9')]?_0x185efa[_0xde46('0x37')]['path'][_0xde46('0x7c')](0x0,-0x1):_0x185efa[_0xde46('0x37')]['path'],_0x27f88c=_0x3a4084['getNodeByPath'](_0x5d9230)['getAttribute'](_0x5685e);this[_0xde46('0x5b')][_0xde46('0x47')](_0x27f88c,{'userId':_0x2e47ca});}}}this['_startingRevisionId']=this[_0xde46('0x84')];const _0x5159da=[...Array(this['_revisionId'])[_0xde46('0xc0')]()][_0xde46('0x7c')](0x1)[_0xde46('0x1a')](_0x4d715a=>!this['_touched'][_0xde46('0x28')](_0x4d715a));let _0xe142b8=0x0;const _0x1bbe3f=new Map();for(const _0x294b2d in _0x37537a[_0xde46('0xaf')]){const _0x402372=_0x37537a['diffData'][_0x294b2d][_0xde46('0xcf')],_0x2663df=_0x5f2d28(_0x37537a[_0xde46('0xaf')][_0x294b2d][_0xde46('0xd5')])||{},_0x8baee4=this['_makeModelFromViewString'](_0x37537a[_0xde46('0xaf')][_0x294b2d]['insertions']);_0x8baee4[_0xde46('0x58')]=_0x294b2d,_0x8baee4[_0xde46('0xbd')]=!_0x402372||_0x402372['isAttached'],_0x8baee4['isAttached']=()=>_0x8baee4['_isAttached'],this[_0xde46('0x42')]['set'](_0x294b2d,_0x8baee4),this[_0xde46('0x26')]['set'](_0x294b2d,_0x2663df);const _0x45e29c=this[_0xde46('0x12')](_0x8baee4,Number[_0xde46('0xd1')]);this['_idsRoots'][_0xde46('0x47')](_0x294b2d,_0x45e29c),_0x1bbe3f[_0xde46('0x47')](_0x294b2d,_0x8baee4[_0xde46('0x24')]()?_0x2663df:{});for(const [_0x427e87,_0x5dd787]of _0x8baee4['markers']){if(!_0x427e87[_0xde46('0x32')](_0xde46('0x56')))continue;const _0x3c42c2=_0x427e87[_0xde46('0x90')](':')[0x2];for(const _0x1f0eba of _0x5dd787[_0xde46('0x44')]({'singleCharacters':!0x0})){const _0x752ca5=this['_getVidAttributeName'](_0x1f0eba),_0x36df55=this[_0xde46('0x84')]++,_0x19ffe2=_0xde46('0xc5')==_0x1f0eba[_0xde46('0xc9')]?_0x1f0eba[_0xde46('0x37')][_0xde46('0x6b')][_0xde46('0x7c')](0x0,-0x1):_0x1f0eba[_0xde46('0x37')][_0xde46('0x6b')];_0x45e29c[_0xde46('0xd0')](_0x19ffe2)[_0xde46('0xf8')](_0x752ca5,_0x36df55),this[_0xde46('0x5b')][_0xde46('0x47')](_0x36df55,{'userId':_0x3c42c2});}}for(const _0xa56b59 of this[_0xde46('0x1')][_0xde46('0x87')][_0xde46('0x3')](_0x8baee4)[_0xde46('0x44')]({'singleCharacters':!0x0})){const _0x24057c=this[_0xde46('0x35')](_0xa56b59),_0x1b643b=_0xde46('0xc5')==_0xa56b59[_0xde46('0xc9')]?_0xa56b59[_0xde46('0x37')][_0xde46('0x6b')][_0xde46('0x7c')](0x0,-0x1):_0xa56b59[_0xde46('0x37')][_0xde46('0x6b')],_0x5ae9cb=_0x45e29c['getNodeByPath'](_0x1b643b);_0x5ae9cb[_0xde46('0xce')](_0x24057c)>0x0||_0x5ae9cb[_0xde46('0xf8')](_0x24057c,_0x5159da[_0xe142b8++]);}for(const [_0xd54850,_0x44905c]of _0x8baee4['markers'])_0xd54850[_0xde46('0x32')](_0xde46('0x56'))||this[_0xde46('0x9d')]['set'](_0xd54850,_0x44905c);}const _0x3378f3=G(_0xde46('0xbc'));this[_0xde46('0x100')][_0xde46('0x47')](_0xde46('0xbc'),_0x3378f3),this[_0xde46('0x51')]['set'](_0xde46('0xbc'),this[_0xde46('0x12')](_0x3378f3,0x1));const _0x571580=G('$graveyard');this[_0xde46('0x42')][_0xde46('0x47')](_0xde46('0xbc'),_0x571580),this[_0xde46('0xb7')][_0xde46('0x47')](_0xde46('0xbc'),this[_0xde46('0x12')](_0x571580,0x1));const _0x193db8=Array['from'](this[_0xde46('0x42')])[_0xde46('0x2d')](([_0x53fcca,_0x4f80c9])=>[_0x53fcca,q(_0x4f80c9)]);this['_saveMetaData'](this[_0xde46('0x83')],_0x193db8,this[_0xde46('0x9d')],_0x1bbe3f);}[_0xde46('0xfd')](_0x12f1ca){const _0x3daecf=JSON[_0xde46('0xbb')](_0x12f1ca),_0x2b1369=this[_0xde46('0x1')][_0xde46('0x6a')][_0xde46('0x62')]['document'],_0x2bcde9=new _0x80e81a(_0x2b1369,_0x3daecf[_0xde46('0x2d')](_0x7e81fd=>J(_0x7e81fd,this['editor'])));return this['editor']['data'][_0xde46('0xa7')](_0x2bcde9);}[_0xde46('0x33')](_0x36fb4d,_0x3fca42,_0x148f56,_0x2a2d58){const _0x274ed9=new Map(_0x3fca42),_0x29aee0=new Map(_0x5f2d28(_0x2a2d58)),_0x3fe616=new Map();for(const [_0xbd90fb,_0x482a59]of _0x148f56)_0x3fe616[_0xde46('0x47')](_0xbd90fb,{'start':_0x482a59[_0xde46('0xb8')][_0xde46('0xd4')](),'end':_0x482a59[_0xde46('0xeb')][_0xde46('0xd4')](),'rootName':_0x482a59[_0xde46('0xea')][_0xde46('0x58')]});this[_0xde46('0x5a')][_0xde46('0x47')](_0x36fb4d,{'roots':_0x274ed9,'markers':_0x3fe616,'rootsAttributes':_0x29aee0});}['_removeMetaData'](_0x26ede8){this[_0xde46('0x5a')][_0xde46('0xde')](_0x26ede8);}[_0xde46('0xd9')](){this[_0xde46('0xb')](),this[_0xde46('0x88')]=-0x1,this[_0xde46('0x83')]=-0x1,this[_0xde46('0x5a')][_0xde46('0xbe')](),this['init'](this[_0xde46('0xff')]);}[_0xde46('0xb')](){this[_0xde46('0x5b')][_0xde46('0xbe')](),this[_0xde46('0x2f')][_0xde46('0xbe')](),this['_touchedRoots'][_0xde46('0xbe')](),this[_0xde46('0x42')][_0xde46('0xbe')](),this[_0xde46('0x26')][_0xde46('0xbe')](),this[_0xde46('0x100')][_0xde46('0xbe')](),this[_0xde46('0xb9')][_0xde46('0xbe')](),this[_0xde46('0xb7')][_0xde46('0xbe')](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}[_0xde46('0x12')](_0x4a4974,_0x1d8c66=null){let _0x9daf84=null;_0x4a4974['is'](_0xde46('0x11'))||(_0x9daf84=new _0x4d2765(_0x4a4974['name'],{'vid_start':null===_0x1d8c66?this[_0xde46('0x84')]++:_0x1d8c66++}));const _0x342a7d=[];for(const _0xbeaacb of _0x4a4974[_0xde46('0x8f')]())if(_0xbeaacb['is'](_0xde46('0x46'))){_0x342a7d[_0xde46('0x66')](this[_0xde46('0x12')](_0xbeaacb,_0x1d8c66));const _0xa23241=_0x342a7d[_0x342a7d[_0xde46('0xc6')]-0x1];null!==_0x1d8c66&&(_0x1d8c66=_0xa23241['is'](_0xde46('0x46'),_0xde46('0xda'))?_0xa23241[_0xde46('0xce')](_0xde46('0x105'))+0x1:_0xa23241[_0xde46('0xce')]('vid_end')+0x1);}else for(let _0x547c3b=0x0;_0x547c3b<_0xbeaacb[_0xde46('0x9b')];_0x547c3b++)_0x342a7d[_0xde46('0x66')](new _0x4d2765('$text',{'vid':null===_0x1d8c66?this['_revisionId']++:_0x1d8c66++}));if(_0x4a4974['is']('documentFragment')){const _0x5abbf3=G(_0x4a4974[_0xde46('0x58')]);return _0x5abbf3[_0xde46('0xf6')](0x0,_0x342a7d),_0x5abbf3;}return _0x9daf84[_0xde46('0xf8')](_0xde46('0x9c'),null===_0x1d8c66?this[_0xde46('0x84')]++:_0x1d8c66++),_0x9daf84[_0xde46('0xf6')](0x0,_0x342a7d),_0x9daf84;}['_calculateMetaData'](_0x4637bb,_0x274732,_0x2150db){this[_0xde46('0xb')]();const {roots:_0x1836ff,markers:_0x1c0b94,rootsAttributes:_0x37f84c}=this[_0xde46('0x5a')][_0xde46('0x78')](_0x4637bb);this['_baseRoots']=new Map(_0x1836ff),this[_0xde46('0xb9')]=new Map(_0x5f2d28(_0x37f84c));for(const [_0x3b76b2,_0x1bde64]of this[_0xde46('0x100')])if('$graveyard'!==_0x3b76b2&&(this[_0xde46('0x42')]['set'](_0x3b76b2,q(_0x1bde64)),this[_0xde46('0x26')]=new Map(_0x5f2d28(_0x37f84c)),_0x2150db)){const _0x4a9350=this[_0xde46('0x84')];this[_0xde46('0xb7')][_0xde46('0x47')](_0x3b76b2,this[_0xde46('0x12')](_0x1bde64)),this[_0xde46('0x51')][_0xde46('0x47')](_0x3b76b2,this[_0xde46('0x12')](_0x1bde64,_0x4a9350));}this['_startingRevisionId']=this['_revisionId'],this[_0xde46('0x42')][_0xde46('0x47')](_0xde46('0xbc'),q(this['_baseRoots'][_0xde46('0x78')](_0xde46('0xbc')))),_0x2150db&&this[_0xde46('0xb7')][_0xde46('0x47')]('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get'](_0xde46('0xbc'))));for(const [_0x110148,_0x211653]of _0x1c0b94){const _0x4cfec6=this[_0xde46('0x100')][_0xde46('0x78')](_0x211653[_0xde46('0x58')]),_0x81da8d=this[_0xde46('0x42')][_0xde46('0x78')](_0x211653[_0xde46('0x58')]),_0x2a152c=new _0x4af96f(this[_0xde46('0x2a')](_0x211653[_0xde46('0xb8')],_0x4cfec6),this[_0xde46('0x2a')](_0x211653[_0xde46('0xeb')],_0x4cfec6)),_0x564883=this['_fixRange'](_0x2a152c,_0x81da8d);_0x4cfec6['markers'][_0xde46('0x47')](_0x110148,_0x2a152c),this[_0xde46('0x9d')][_0xde46('0x47')](_0x110148,_0x564883);}this['_applyOperations'](_0x4637bb,_0x274732,_0x2150db);}[_0xde46('0x2')](_0x5ecceb,_0x4be594,_0x5377bd){for(const _0x5c2c21 of this['source'][_0xde46('0x89')](_0x5ecceb,_0x4be594))this[_0xde46('0xba')](_0x5c2c21,_0x5377bd);for(const _0x3c5b92 of this[_0xde46('0x42')][_0xde46('0x3f')]())_0x3c5b92[_0xde46('0xcb')][_0xde46('0xbe')]();for(const [_0x48b278,_0x358c02]of this[_0xde46('0x9d')]){this[_0xde46('0x42')][_0xde46('0x78')](_0x358c02['root'][_0xde46('0x58')])['markers'][_0xde46('0x47')](_0x48b278,_0x358c02[_0xde46('0xd4')]());}const _0x3a5fee=new Map(),_0x2ae8bc=new Map();for(const [_0x428a70,_0x253349]of this[_0xde46('0x42')])_0x3a5fee[_0xde46('0x47')](_0x428a70,q(_0x253349)),_0x2ae8bc[_0xde46('0x47')](_0x428a70,this['_diffRootsAttributes'][_0xde46('0x78')](_0x428a70));this[_0xde46('0x33')](_0x4be594,_0x3a5fee,this[_0xde46('0x9d')],_0x2ae8bc);}[_0xde46('0xc1')](_0x1fc278){const _0xed6242=Array['from'](this[_0xde46('0x5a')][_0xde46('0xc0')]());_0xed6242[_0xde46('0xa3')]((_0x43535,_0x4e556c)=>_0x43535-_0x4e556c),_0xed6242[_0xde46('0x3d')]();for(const _0x172a1a of _0xed6242)if(_0x172a1a<_0x1fc278)return _0x172a1a;return Number[_0xde46('0xd1')];}[_0xde46('0x2c')](_0x3c985d,_0x4a2ea0){const _0x20a279=Array[_0xde46('0xfe')](_0x4a2ea0[_0xde46('0xcb')])[_0xde46('0x2d')](([_0x4c4ac5,_0x2fe246])=>[_0x4c4ac5,this['_fixRange'](_0x2fe246,_0x3c985d)]);_0x3c985d['markers']=new Map(_0x20a279);}[_0xde46('0xf7')](_0x3f0c7c){for(const _0x29f948 of this[_0xde46('0x9d')][_0xde46('0x3f')]()){const _0x5ad404=_0x29f948[_0xde46('0x23')](_0x3f0c7c),_0x3e8d5b=_0x4af96f['_createFromRanges'](_0x5ad404);_0x29f948[_0xde46('0xb8')]=_0x3e8d5b['start'],_0x29f948[_0xde46('0xeb')]=_0x3e8d5b[_0xde46('0xeb')];}}[_0xde46('0xba')](_0x459db3,_0xac1027){if(_0xde46('0x4a')==_0x459db3['type']||'detachRoot'==_0x459db3['type'])return void this[_0xde46('0x61')](_0x459db3,_0xac1027);if(_0xde46('0x106')==_0x459db3[_0xde46('0xc9')]){const _0x3caaf4=_0x459db3[_0xde46('0x73')][_0xde46('0xea')]['rootName'];this['_diffRoots'][_0xde46('0x28')](_0x3caaf4)||(this[_0xde46('0x42')]['set'](_0x3caaf4,G(_0x3caaf4,!0x0)),this['_diffRootsAttributes'][_0xde46('0x47')](_0x3caaf4,{}),_0xac1027&&this[_0xde46('0xb7')][_0xde46('0x47')](_0x3caaf4,G(_0x3caaf4,!0x0)));}else{if(_0xde46('0x9')==_0x459db3[_0xde46('0xc9')]||'removeRootAttribute'==_0x459db3[_0xde46('0xc9')]||_0xde46('0xfc')==_0x459db3[_0xde46('0xc9')])return void this[_0xde46('0x6d')](_0x459db3);}const _0x2e6dd6=this[_0xde46('0xc4')](_0x459db3,this[_0xde46('0x42')]);if(_0xde46('0x3a')!==_0x459db3[_0xde46('0xc9')]&&(_0x2e6dd6[_0xde46('0x8')](),this[_0xde46('0xf7')](_0x2e6dd6)),_0xac1027)switch(_0x2e6dd6[_0xde46('0xc9')]){case _0xde46('0x106'):this[_0xde46('0x1c')](_0x459db3);break;case'move':case _0xde46('0xee'):case _0xde46('0xa4'):this[_0xde46('0x52')](_0x459db3);break;case _0xde46('0x39'):this['_handleMergeOperation'](_0x459db3);break;case'split':this[_0xde46('0x22')](_0x459db3);break;case _0xde46('0x3a'):this[_0xde46('0x45')](_0x459db3);}}[_0xde46('0xc4')](_0x440609,_0x102fa1){const _0x4a57e7=_0x440609[_0xde46('0xd4')]();return _0x4a57e7[_0xde46('0x102')]=_0x440609[_0xde46('0x102')],this[_0xde46('0x50')](_0x4a57e7,_0x102fa1),_0x4a57e7;}[_0xde46('0x95')](_0x54db7f){return _0x54db7f[_0xde46('0x2d')](_0x2ebd96=>{const _0x4360b3=this[_0xde46('0x35')](_0x2ebd96);return Number(_0x2ebd96['item'][_0xde46('0xce')](_0x4360b3));});}[_0xde46('0x76')](_0x51dd4c,_0x5883f6){if(_0x51dd4c['is'](_0xde46('0x46'),_0xde46('0xda')))_0x5883f6[_0xde46('0x66')]({'item':_0x51dd4c,'type':_0xde46('0x6e')});else{_0x51dd4c['is']('element')&&_0x5883f6[_0xde46('0x66')]({'item':_0x51dd4c,'type':_0xde46('0xa8')});for(const _0x37fa9b of _0x51dd4c['getChildren']())this[_0xde46('0x76')](_0x37fa9b,_0x5883f6);_0x51dd4c['is'](_0xde46('0x46'))&&_0x5883f6[_0xde46('0x66')]({'item':_0x51dd4c,'type':_0xde46('0xc5')});}return _0x5883f6;}['_getState'](){const _0x41c781=new Map(this[_0xde46('0x5b')]),_0x45ade0=new Map(_0x41c781),_0x5278c9=new Map(),_0x34f8fc={'insertions':{},'deletions':{}},_0x4b51c1={'insertions':{},'deletions':{}},_0x20c578=new Map(),_0x3cb4df=new Set([...this['_baseRoots']['keys'](),...this[_0xde46('0x42')]['keys']()]);_0x3cb4df[_0xde46('0xde')](_0xde46('0xbc'));for(const _0x55aa72 of _0x3cb4df){const _0x2af784=this[_0xde46('0x42')][_0xde46('0x78')](_0x55aa72)||G(_0x55aa72,!0x1),_0x2e4a7d=this[_0xde46('0x100')][_0xde46('0x78')](_0x55aa72)||G(_0x55aa72,!0x1);_0x2af784[_0xde46('0x24')]()||_0x2e4a7d[_0xde46('0x24')]()?(_0x34f8fc['insertions'][_0x55aa72]=q(_0x2af784),_0x34f8fc[_0xde46('0x8b')][_0x55aa72]=q(_0x2e4a7d),this[_0xde46('0x2c')](_0x34f8fc['deletions'][_0x55aa72],_0x2e4a7d),this[_0xde46('0x2c')](_0x34f8fc[_0xde46('0x60')][_0x55aa72],_0x2af784),_0x4b51c1['insertions'][_0x55aa72]=this[_0xde46('0x76')](this[_0xde46('0xb7')][_0xde46('0x78')](_0x55aa72),[]),_0x4b51c1[_0xde46('0x8b')][_0x55aa72]=this[_0xde46('0x76')](this[_0xde46('0x51')][_0xde46('0x78')](_0x55aa72)||G(_0x55aa72,!0x1),[])):_0x3cb4df[_0xde46('0xde')](_0x55aa72);}for(const _0x5f38b5 of _0x3cb4df){const _0x352ea2=_0x4b51c1['insertions'][_0x5f38b5];for(const _0x2b92f8 of _0x352ea2){const _0x31b555=this['_getVidAttributeName'](_0x2b92f8),_0x2dbe18=_0x2b92f8[_0xde46('0xe5')][_0xde46('0xce')](_0x31b555);_0x45ade0[_0xde46('0xde')](_0x2dbe18),_0x2dbe18>=this['_startingRevisionId']&&_0x5278c9[_0xde46('0x47')](_0x2dbe18,_0x41c781[_0xde46('0x78')](_0x2dbe18));}}for(const _0x20ac5e of _0x3cb4df){const _0x3bc547=_0x4b51c1[_0xde46('0x60')][_0x20ac5e],_0x282784=this[_0xde46('0x95')](_0x4b51c1[_0xde46('0x8b')][_0x20ac5e]);let _0x122e80=0x0;for(const _0x8493e3 of _0x3bc547){const _0x53552d=this[_0xde46('0x35')](_0x8493e3),_0xf7cf52=_0x8493e3[_0xde46('0xe5')]['getAttribute'](_0x53552d);if(!_0x5278c9[_0xde46('0x28')](_0xf7cf52)&&!_0x20c578[_0xde46('0x28')](_0xf7cf52)){if(_0x45ade0[_0xde46('0x28')](_0xf7cf52))_0x122e80++;else{if(_0xf7cf52!=_0x282784[_0x122e80]){const _0x8c924e=_0x41c781['get'](_0xf7cf52)||_0x41c781[_0xde46('0x78')](_0x282784[_0x122e80]);for(;_0xf7cf52!=_0x282784[_0x122e80];)_0x45ade0['has'](_0x282784[_0x122e80])||(_0x20c578[_0xde46('0x47')](_0x282784[_0x122e80],_0x8c924e),_0x41c781[_0xde46('0x47')](_0x282784[_0x122e80],_0x8c924e)),_0x122e80++;}_0x122e80++;}}}}for(const _0xbe205c of _0x3cb4df){const _0x472d3a=_0x4b51c1[_0xde46('0x60')][_0xbe205c];for(const _0x541f26 of _0x472d3a){const _0x59d570=this['_getVidAttributeName'](_0x541f26),_0xf66bc=_0x541f26['item']['getAttribute'](_0x59d570);if(_0x20c578[_0xde46('0x28')](_0xf66bc)){const _0x1f1d9d=_0x20c578[_0xde46('0x78')](_0xf66bc);_0x45ade0[_0xde46('0x28')](_0xf66bc)||_0x45ade0[_0xde46('0x47')](_0xf66bc,{..._0x1f1d9d}),_0x5278c9[_0xde46('0x47')](_0xf66bc,{..._0x1f1d9d});}}}for(const _0x747451 of _0x45ade0[_0xde46('0xc0')]())_0x747451>=this[_0xde46('0x1e')]&&_0x45ade0['delete'](_0x747451);const _0x56a417=new Map();for(const _0x194325 of _0x3cb4df){let _0x4bf6b1=_0x4b51c1[_0xde46('0x60')][_0x194325];for(const _0x1e6b32 of _0x4bf6b1)if(_0x1e6b32[_0xde46('0xe5')]['is'](_0xde46('0x46'),_0xde46('0xc8'))){const _0x5e9856=this[_0xde46('0x35')](_0x1e6b32),_0x1ada3c=_0x1e6b32['item'][_0xde46('0xce')](_0x5e9856);if(_0x5278c9[_0xde46('0x28')](_0x1ada3c)){const _0x5ca083=_0x1e6b32[_0xde46('0xe5')][_0xde46('0x1b')][_0xde46('0x1b')][_0xde46('0xce')](_0xde46('0x75')),_0x4a2a84=_0x56a417[_0xde46('0x78')](_0x5ca083)||new Set();_0x4a2a84[_0xde46('0xa9')](_0x5278c9[_0xde46('0x78')](_0x1ada3c)[_0xde46('0xa1')]),_0x56a417[_0xde46('0x47')](_0x5ca083,_0x4a2a84);}}_0x4bf6b1=_0x4b51c1[_0xde46('0x8b')][_0x194325];for(const _0x54dd60 of _0x4bf6b1)if(_0x54dd60[_0xde46('0xe5')]['is'](_0xde46('0x46'),'tableCell')){const _0x515c2e=this[_0xde46('0x35')](_0x54dd60),_0x18145e=_0x54dd60[_0xde46('0xe5')][_0xde46('0xce')](_0x515c2e);if(_0x45ade0['has'](_0x18145e)){const _0x5d053e=_0x54dd60[_0xde46('0xe5')]['parent']['parent']['getAttribute'](_0xde46('0x75')),_0x3d03f3=_0x56a417[_0xde46('0x78')](_0x5d053e)||new Set();_0x3d03f3[_0xde46('0xa9')](_0x45ade0[_0xde46('0x78')](_0x18145e)['userId']),_0x56a417[_0xde46('0x47')](_0x5d053e,_0x3d03f3);}}for(const _0xf21a95 of _0x56a417[_0xde46('0xc0')]())(_0x5278c9[_0xde46('0x28')](_0xf21a95)||_0x45ade0[_0xde46('0x28')](_0xf21a95))&&_0x56a417[_0xde46('0xde')](_0xf21a95);}for(const _0x73819a of _0x3cb4df){const _0x3dc426=_0x4b51c1[_0xde46('0x60')][_0x73819a];let _0x139139=null,_0x3a39c4=null;for(const _0x20b0b4 of _0x3dc426){const _0x562bda=this[_0xde46('0x35')](_0x20b0b4),_0x46a027=_0x20b0b4[_0xde46('0xe5')]['getAttribute'](_0x562bda),_0x4ce5f2=_0x56a417[_0xde46('0x78')](_0x46a027);_0x4ce5f2&&_0xde46('0xa8')==_0x20b0b4[_0xde46('0xc9')]&&(_0x139139=Array[_0xde46('0xfe')](_0x4ce5f2)[0x0],_0x3a39c4=_0x20b0b4['item']['getAttribute'](_0xde46('0x9c'))),_0x139139&&(_0x45ade0[_0xde46('0x47')](_0x46a027,{'userId':_0x139139}),_0x5278c9['set'](_0x46a027,{'userId':_0x139139})),_0x46a027==_0x3a39c4&&(_0x139139=null,_0x3a39c4=null);}}const _0x54b9b6={},_0x56da60=new Set();for(const _0x2fa9bc of _0x3cb4df){const _0x5ab1d5=_0x34f8fc[_0xde46('0x8b')][_0x2fa9bc],_0x4adb8b=_0x34f8fc['insertions'][_0x2fa9bc];for(const {userId:_0x4cb975}of this['_touchedMarkers']['values']())null!==_0x4cb975&&_0x56da60['add'](_0x4cb975);for(const {userId:_0x42134a}of this[_0xde46('0x53')][_0xde46('0x3f')]())null!==_0x42134a&&_0x56da60['add'](_0x42134a);this[_0xde46('0xd')](_0x4adb8b,_0x4b51c1['insertions'][_0x2fa9bc],_0x5278c9,_0xde46('0x91'),_0x56da60),this[_0xde46('0xd')](_0x5ab1d5,_0x4b51c1[_0xde46('0x8b')][_0x2fa9bc],_0x45ade0,'deletion',_0x56da60),_0x54b9b6[_0x2fa9bc]={'insertions':this[_0xde46('0x67')](_0x4adb8b),'deletions':this[_0xde46('0x67')](_0x5ab1d5),'attachChange':this['_touchedRoots']['get'](_0x2fa9bc)||null,'attributesBefore':_0x5f2d28(this[_0xde46('0xb9')]['get'](_0x2fa9bc))||{},'attributesAfter':_0x5f2d28(this['_diffRootsAttributes'][_0xde46('0x78')](_0x2fa9bc))};}return{'diffData':_0x54b9b6,'authorsIds':Array[_0xde46('0xfe')](_0x56da60)};}[_0xde46('0x99')](_0x38bdfc){for(const [,_0x49ae7a]of _0x38bdfc[_0xde46('0xcb')]){const _0xf91973=_0x49ae7a[_0xde46('0xb8')][_0xde46('0x43')]()[_0xde46('0x1a')](_0x1ebc3e=>_0xde46('0xc8')==_0x1ebc3e[_0xde46('0xcc')]);for(const _0x33b70f of _0xf91973)0x1==_0x33b70f[_0xde46('0x48')]&&_0x33b70f['getChild'](0x0)['is'](_0xde46('0x46'),_0xde46('0xdf'))&&_0x33b70f[_0xde46('0xf9')](0x0)[_0xde46('0xf8')](_0xde46('0x27'),!0x0);}}[_0xde46('0x67')](_0x2e9599){this[_0xde46('0x99')](_0x2e9599);const _0x574d91=this[_0xde46('0x1')]['data']['toView'](_0x2e9599,{}),_0x56f434=Array[_0xde46('0xfe')](_0x574d91[_0xde46('0x8f')]())[_0xde46('0x2d')](_0x206751=>this['_getViewJson'](_0x206751));return JSON[_0xde46('0x7e')](_0x56f434);}[_0xde46('0x41')](_0x46565d){if(_0x46565d['is'](_0xde46('0xda')))return _0x46565d[_0xde46('0x109')];{const _0x50844e=_0x46565d;return{'type':Object['keys'](B)[_0xde46('0x63')](_0x16c059=>_0x46565d instanceof B[_0x16c059]),'name':_0x50844e['name'],'attributes':Array[_0xde46('0xfe')](_0x50844e['getAttributes']()),'children':Array[_0xde46('0xfe')](_0x50844e['getChildren']())[_0xde46('0x2d')](_0x4c9242=>this[_0xde46('0x41')](_0x4c9242))};}}[_0xde46('0xd')](_0x43cf64,_0x14df3c,_0x55385b,_0xff6b51,_0x42b4e2){let _0x17000a=null,_0x5ba100=null,_0x38683b=0x0;const _0x5dce27=this[_0xde46('0x1')][_0xde46('0x87')];for(let _0x460418=0x0;_0x460418<_0x14df3c[_0xde46('0xc6')];_0x460418++){const _0x5978c3=this['_getVidAttributeName'](_0x14df3c[_0x460418]),_0x4b5b97=_0x14df3c[_0x460418][_0xde46('0xe5')][_0xde46('0xce')](_0x5978c3),_0x1f5c30=_0x55385b[_0xde46('0x78')](_0x4b5b97),_0x41872d=_0x460418==_0x14df3c['length']-0x1;(!_0x17000a&&_0x1f5c30&&(_0x17000a=_0x1f5c30,_0x5ba100=_0x14df3c[_0x460418]),_0x17000a&&(!_0x1f5c30||_0x1f5c30[_0xde46('0xa1')]!=_0x17000a[_0xde46('0xa1')]))&&(_0x1c7b71(_0x1f5c30,L(_0x5ba100,_0x43cf64,_0x5dce27),L(_0x14df3c[_0x460418],_0x43cf64,_0x5dce27)),_0x17000a=_0x1f5c30||null,_0x5ba100=_0x1f5c30?_0x14df3c[_0x460418]:null),_0x17000a&&_0x41872d&&_0x1c7b71(_0x1f5c30,L(_0x5ba100,_0x43cf64,_0x5dce27),W(_0x14df3c[_0x460418],_0x43cf64,_0x5dce27));}function _0x1c7b71(_0x32b1b8,_0x4f8526,_0x3f6c9e){const _0x55b917=_0x17000a['userId'],_0x34c704=_0xde46('0x56')+_0xff6b51+':'+_0x55b917+':'+_0x38683b++,_0x4f516c=_0x5dce27['createRange'](_0x4f8526,_0x3f6c9e);_0x43cf64[_0xde46('0xcb')][_0xde46('0x47')](_0x34c704,_0x4f516c),null!==_0x55b917&&_0x42b4e2[_0xde46('0xa9')](_0x55b917);}}['_getVidAttributeName'](_0x5b99a9){switch(_0x5b99a9[_0xde46('0xc9')]){case _0xde46('0xa8'):return _0xde46('0x75');case'elementEnd':return _0xde46('0x9c');default:return'vid';}}[_0xde46('0x50')](_0xa94d60,_0x4a21d7){_0xa94d60[_0xde46('0x16')]=null;for(const _0xef4b60 in _0xa94d60){const _0x42d50a=_0xa94d60[_0xef4b60];if(_0x42d50a instanceof _0x5115d2){const _0x43a620=_0x4a21d7[_0xde46('0x78')](_0x42d50a[_0xde46('0xea')][_0xde46('0x58')]);_0xa94d60[_0xef4b60]=this['_fixPosition'](_0x42d50a,_0x43a620);}if(_0x42d50a instanceof _0x4af96f){const _0xef5e48=_0x4a21d7[_0xde46('0x78')](_0x42d50a[_0xde46('0xea')][_0xde46('0x58')]);_0xa94d60[_0xef4b60]=this[_0xde46('0x30')](_0x42d50a,_0xef5e48);}_0xde46('0xea')===_0xef4b60&&(_0xa94d60['root']=_0x4a21d7[_0xde46('0x78')](_0xa94d60[_0xde46('0xea')][_0xde46('0x58')]));}}[_0xde46('0x30')](_0xdfee70,_0x54ddcd){return this['editor'][_0xde46('0x87')][_0xde46('0xdb')](this[_0xde46('0x2a')](_0xdfee70[_0xde46('0xb8')],_0x54ddcd),this['_fixPosition'](_0xdfee70['end'],_0x54ddcd));}[_0xde46('0x2a')](_0x5da520,_0x3a81ed){return this[_0xde46('0x1')][_0xde46('0x87')][_0xde46('0x31')](_0x3a81ed,_0x5da520[_0xde46('0x6b')],_0x5da520[_0xde46('0xa')]);}['_handleInsertOperation'](_0x3235f5){const _0x43c987=this[_0xde46('0xb7')][_0xde46('0x78')](_0x3235f5['position']['root']['rootName']),_0x5ad5d1=this[_0xde46('0x2a')](_0x3235f5[_0xde46('0x73')],_0x43c987),_0x343c72=null===_0x3235f5['_authorId']?null:_0x3235f5[_0xde46('0x102')]||this[_0xde46('0x1')][_0xde46('0x97')][_0xde46('0x78')](_0xde46('0x7d'))['me']['id'],_0x165d54=_0x5ad5d1[_0xde46('0x1b')],_0x36fa44=this['_revisionId'],_0x1e32ee=[];for(const _0x16876e of _0x3235f5[_0xde46('0xa5')])if(_0x16876e['is'](_0xde46('0x46')))_0x1e32ee[_0xde46('0x66')](this[_0xde46('0x12')](_0x16876e));else for(let _0x122de6=0x0;_0x122de6<_0x16876e[_0xde46('0x9b')];_0x122de6++)_0x1e32ee['push'](new _0x4d2765(_0xde46('0xda'),{'vid':this['_revisionId']++}));const _0x4200d1=this[_0xde46('0x84')];for(let _0x60c061=_0x36fa44;_0x60c061<_0x4200d1;_0x60c061++)this[_0xde46('0x5b')][_0xde46('0x47')](_0x60c061,{'userId':_0x343c72});_0x165d54[_0xde46('0xf6')](_0x5ad5d1[_0xde46('0xae')],_0x1e32ee);}['_handleMoveOperation'](_0xb662fa){(_0xb662fa=this[_0xde46('0xc4')](_0xb662fa,this[_0xde46('0xb7')]))['_execute']();const _0x39d1c9=null===_0xb662fa[_0xde46('0x102')]?null:_0xb662fa[_0xde46('0x102')]||this['editor'][_0xde46('0x97')][_0xde46('0x78')](_0xde46('0x7d'))['me']['id'],_0x5297a9=_0xb662fa[_0xde46('0x9f')](),_0x489b12=_0x5297a9[_0xde46('0x1b')],_0x4ec823=_0x5297a9[_0xde46('0xae')];!function _0x23d20a(_0x22bbd5,_0x264d34,_0x2eb263,_0x29a6fb){for(let _0x4b33b4=_0x2eb263;_0x4b33b4<_0x29a6fb;_0x4b33b4++){const _0x407ac7=_0x264d34[_0xde46('0xf9')](_0x4b33b4);_0x407ac7['is']('element',_0xde46('0xda'))?_0x22bbd5['set'](_0x407ac7[_0xde46('0xce')](_0xde46('0x105')),{'userId':_0x39d1c9}):(_0x22bbd5[_0xde46('0x47')](_0x407ac7[_0xde46('0xce')]('vid_start'),{'userId':_0x39d1c9}),_0x23d20a(_0x22bbd5,_0x407ac7,0x0,_0x407ac7[_0xde46('0x48')]),_0x22bbd5[_0xde46('0x47')](_0x407ac7['getAttribute'](_0xde46('0x9c')),{'userId':_0x39d1c9}));}}(this['_touched'],_0x489b12,_0x4ec823,_0x4ec823+_0xb662fa[_0xde46('0x104')]);}[_0xde46('0x2b')](_0x3014cf){const _0x5308a4=null===(_0x3014cf=this['_cloneOperation'](_0x3014cf,this[_0xde46('0xb7')]))[_0xde46('0x102')]?null:_0x3014cf[_0xde46('0x102')]||this[_0xde46('0x1')][_0xde46('0x97')][_0xde46('0x78')]('Users')['me']['id'],_0x4194db=_0x3014cf[_0xde46('0x65')][_0xde46('0x1b')],_0x4375d5=_0x3014cf['sourcePosition'][_0xde46('0x1b')],_0x5ce666=_0x4194db[_0xde46('0xce')]('vid_end'),_0x515138=_0x4375d5[_0xde46('0xce')](_0xde46('0x75'));_0x4194db[_0xde46('0xf8')](_0xde46('0x9c'),_0x4375d5['getAttribute'](_0xde46('0x9c'))),_0x4375d5[_0xde46('0xf8')](_0xde46('0x9c'),_0x5ce666),this[_0xde46('0x5b')][_0xde46('0x47')](_0x515138,{'userId':_0x5308a4}),this['_touched'][_0xde46('0x47')](_0x5ce666,{'userId':_0x5308a4}),_0x3014cf['_execute']();}[_0xde46('0x22')](_0xd65f07){const _0x5a82a2=null===(_0xd65f07=this[_0xde46('0xc4')](_0xd65f07,this[_0xde46('0xb7')]))[_0xde46('0x102')]?null:_0xd65f07[_0xde46('0x102')]||this[_0xde46('0x1')][_0xde46('0x97')][_0xde46('0x78')]('Users')['me']['id'],_0x3956af=_0xd65f07[_0xde46('0x25')],_0x9082c5=_0xd65f07[_0xde46('0x5')][_0xde46('0x1b')];_0xd65f07[_0xde46('0x8')]();const _0x4f4783=_0x9082c5[_0xde46('0xce')]('vid_end'),_0x2aa58f=_0xd65f07[_0xde46('0x98')][_0xde46('0x38')];if(_0x3956af){const _0xfadff5=_0x2aa58f[_0xde46('0xce')](_0xde46('0x9c')),_0x5219bb=_0x9082c5[_0xde46('0xce')](_0xde46('0x9c'));_0x9082c5['_setAttribute'](_0xde46('0x9c'),_0xfadff5),_0x2aa58f[_0xde46('0xf8')](_0xde46('0x9c'),_0x5219bb),this[_0xde46('0x5b')][_0xde46('0x47')](_0x9082c5[_0xde46('0xce')](_0xde46('0x9c')),{'userId':_0x5a82a2}),this[_0xde46('0x5b')]['set'](_0x2aa58f[_0xde46('0xce')](_0xde46('0x75')),{'userId':_0x5a82a2});}else{const _0xcbe847=this['_revisionId']++,_0x51717d=this[_0xde46('0x84')]++;_0x9082c5[_0xde46('0xf8')](_0xde46('0x9c'),_0xcbe847),_0x2aa58f[_0xde46('0xf8')](_0xde46('0x75'),_0x51717d),_0x2aa58f[_0xde46('0xf8')](_0xde46('0x9c'),_0x4f4783),this[_0xde46('0x5b')]['set'](_0xcbe847,{'userId':_0x5a82a2}),this[_0xde46('0x5b')][_0xde46('0x47')](_0x51717d,{'userId':_0x5a82a2});}}[_0xde46('0x45')](_0x5abcdb){if(!_0x5abcdb[_0xde46('0x7a')])return;const _0xac7d98=(_0x5abcdb=this[_0xde46('0xc4')](_0x5abcdb,this[_0xde46('0x42')]))[_0xde46('0xac')]?_0x5abcdb[_0xde46('0xac')][_0xde46('0xea')]:null,_0x144a08=_0x5abcdb[_0xde46('0x107')]?_0x5abcdb[_0xde46('0x107')][_0xde46('0xea')]:null;_0xac7d98&&this[_0xde46('0x9d')][_0xde46('0xde')](_0x5abcdb[_0xde46('0xcc')]),_0x144a08&&this[_0xde46('0x9d')]['set'](_0x5abcdb['name'],_0x5abcdb[_0xde46('0x107')][_0xde46('0xd4')]());const _0xa1449e=null===_0x5abcdb[_0xde46('0x102')]?null:_0x5abcdb[_0xde46('0x102')]||this[_0xde46('0x1')]['plugins']['get'](_0xde46('0x7d'))['me']['id'],_0xd848f4=_0x5abcdb[_0xde46('0xcc')];if(!this[_0xde46('0x2f')][_0xde46('0x28')](_0xd848f4))return void this[_0xde46('0x2f')][_0xde46('0x47')](_0xd848f4,{'range':_0x5abcdb[_0xde46('0xac')],'userId':_0xa1449e});const _0x2a2269=this['_touchedMarkers'][_0xde46('0x78')](_0xd848f4),_0x5efee1=_0x2a2269[_0xde46('0xb5')],_0x2d5b87=_0x5abcdb[_0xde46('0x107')];null==_0x5efee1&&null==_0x2d5b87||_0x5efee1&&_0x2d5b87&&_0x5efee1[_0xde46('0x4')](_0x2d5b87)?this[_0xde46('0x2f')][_0xde46('0xde')](_0x5abcdb[_0xde46('0xcc')]):_0x2a2269[_0xde46('0xa1')]=_0xa1449e;}['_handleRootOperation'](_0xfb4247,_0xb67413){this[_0xde46('0x42')][_0xde46('0x28')](_0xfb4247[_0xde46('0x58')])?this[_0xde46('0x42')][_0xde46('0x78')](_0xfb4247['rootName'])['_isAttached']=_0xfb4247[_0xde46('0xe8')]:(this[_0xde46('0x42')][_0xde46('0x47')](_0xfb4247[_0xde46('0x58')],G(_0xfb4247['rootName'],!0x0)),this['_diffRootsAttributes'][_0xde46('0x47')](_0xfb4247['rootName'],{}),_0xb67413&&this[_0xde46('0xb7')][_0xde46('0x47')](_0xfb4247['rootName'],G(_0xfb4247[_0xde46('0x58')],!0x0)));const _0x769c13=null===_0xfb4247['_authorId']?null:_0xfb4247[_0xde46('0x102')]||this[_0xde46('0x1')][_0xde46('0x97')][_0xde46('0x78')](_0xde46('0x7d'))['me']['id'],_0x1b29ff=this[_0xde46('0x53')][_0xde46('0x78')](_0xfb4247[_0xde46('0x58')]);_0x1b29ff&&_0x1b29ff[_0xde46('0xa1')]===_0x769c13?this['_touchedRoots'][_0xde46('0xde')](_0xfb4247[_0xde46('0x58')]):this['_touchedRoots']['set'](_0xfb4247[_0xde46('0x58')],{'userId':_0x769c13,'isAttached':_0xfb4247[_0xde46('0xe8')]});}[_0xde46('0x6d')](_0x4ec9ab){const _0x38a981=this[_0xde46('0x26')][_0xde46('0x78')](_0x4ec9ab['root'][_0xde46('0x58')]);null===_0x4ec9ab['newValue']?delete _0x38a981[_0x4ec9ab['key']]:_0x38a981[_0x4ec9ab['key']]=_0x4ec9ab[_0xde46('0xc7')];}}function q(_0x56d28c){const _0x3f7237=G(_0x56d28c[_0xde46('0x58')],_0x56d28c[_0xde46('0x24')]());for(const _0x451afe of _0x56d28c[_0xde46('0x8f')]()){const _0x17c2e9=_0x451afe[_0xde46('0x0')](!0x0);_0x3f7237[_0xde46('0xe2')](_0x17c2e9);}return _0x3f7237;}function G(_0x383e74,_0xed9a46=!0x0){const _0x3ab3f8=new _0x578f11();return _0x3ab3f8[_0xde46('0x58')]=_0x383e74,_0x3ab3f8['_isAttached']=_0xed9a46,_0x3ab3f8['isAttached']=()=>_0x3ab3f8[_0xde46('0xbd')],_0x3ab3f8;}function L(_0x56ed7d,_0xe74dfb,_0x285d37){const _0x3ac04a=_0xde46('0xc5')==_0x56ed7d[_0xde46('0xc9')]?_0x285d37[_0xde46('0x1f')](_0x56ed7d[_0xde46('0xe5')],'end'):_0x285d37[_0xde46('0x82')](_0x56ed7d[_0xde46('0xe5')]);return _0x285d37[_0xde46('0x31')](_0xe74dfb,_0x3ac04a[_0xde46('0x6b')],_0x3ac04a[_0xde46('0xa')]);}function W(_0x3cea5d,_0x41d17d,_0x15f13f){const _0x3cbf87=_0xde46('0xa8')==_0x3cea5d['type']?_0x15f13f[_0xde46('0x1f')](_0x3cea5d[_0xde46('0xe5')],0x0):_0x15f13f[_0xde46('0xe9')](_0x3cea5d[_0xde46('0xe5')]);return _0x15f13f['createPositionFromPath'](_0x41d17d,_0x3cbf87[_0xde46('0x6b')],_0x3cbf87[_0xde46('0xa')]);}