@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231023.0 → 0.0.0-nightly-20231025.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a8a=['_update','_copyMarkers','_handleMergeOperation','_handleInsertOperation','values','_handleMoveOperation','_execute','createRevision','revision-end','_replaceEditorDataWithRevisionData','_findInsertionIndex','getMovedRangeStart','toVersion','getAttributes','_baseRoots','removeRootAttribute','newValue','then','reInit','getRevisionDocumentData','vid_start','history','baseVersion','vid_end','addRevisionData','text','_fixPosition','rootName','split','getRootNames','resolve','insertionPosition','getNodeByPath','getWalker','_saveMetaData','_removePendingAction','parent','_getState','markers','slice','createPositionBefore','$text','newRange','graveyardPosition','getRange','toData','position','PendingActions','detachRoot','oldRange','_handleOperation','NEGATIVE_INFINITY','forEach','init','pluginName','item','_lastFrom','_loadedStateData','keys','elementStart','element','_applyOperations','_baseRootsAttributes','config','Empty\x20document','initialData','dataDowncast','_revisionId','set','dataToMarker','_diffRoots','_touchedRoots','reverse','getIndex','loadState','Users','fromEntries','hasContent','useFillerType','_bufferUpdate','childCount','RevisionsRepository','createPositionAt','push','insert','_calculateMetaData','revision:','repository','_idsRoots','_revisionDataBuilder','type','data-revision-','createPositionFromPath','_getPreviousFrom','editing','marked','keepParagraph','_startingRevisionId','offsetSize','_cloneOperation','revision','_isInit','targetPosition','some','_createInitialRevision','stringify','conversion','data','updateRevisions','end','revisionHistory.resumeUnsavedRevision','_bufferedUpdates','size','_pendingAction','update','_getViewJson','document','elementEnd','getTransformedByOperation','$graveyard','name','adapter','_insertChild','add','diffData','getRevisions','_loadState','finally','marker','nodes','setRevisionData','version','getData','authorsIds','currentRevision','PENDING_ACTION_REVISION_HISTORY','tableCell','sort','collaboration.channelId','_startingVersion','addRoot','getCurrentRevisionId','_loadRevisionData','toModel','insertions','processor','attachChange','clear','paragraph','reinsert','roots','_getBaseVids','for','_isAttached','_baseIdsRoots','key','remove','upcast','_authorId','_fixOperation','buildRevisionData','define','bind','ready','_fixRange','_markers','startsWith','_markChanges','isAttached','offset','plugins','_handleRootOperation','editor','_setConversion','authors','_touched','creator','_prepareViewToSave','path','insertion','locale','attributes','_setAttribute','getRevisionRootsAttributes','root','getOperations','createdAt','range','_source','markerToData','source','_generateTape','getAncestors','max','editor-initial-data-replaced-with-revision-data','_removeMetaData','Initial\x20revision','setSource','_handleMarkerOperation','delete','_makeRevision','_reset','_processRootBeforeSave','creatorId','_createCurrentRevision','_initialRevisionId','_touchedMarkers','has','getOperation','createRange','getChildren','RealTimeCollaborationClient','default','getRoot','affectsData','move','deletions','from','_makeModelFromViewString','fromVersion','addRevision','_getFromVersion','changeRootAttribute','getRevision','_continueCurrentRevision','_handleRootAttributeOperation','vid','_diffRootsAttributes','getChild','_makeIdsRoot','_lastTo','start','howMany','_getVidAttributeName','getAttribute','_createFromRanges','_isPendingUpdate','sendBufferedUpdates','view','createPositionAfter','_removeRevisionMarkers','filter','splitPosition','stickiness','length','userId','requires','isAdd','_addPendingAction','_savedMetaData','revision-start','_clone','find','includes','clone','previousPosition','parse','model','getTime','getUser','string','map','merge','get','attributesAfter','children'];(function(_0x9c8229,_0x3a8a75){const _0x447b25=function(_0x3b32b3){while(--_0x3b32b3){_0x9c8229['push'](_0x9c8229['shift']());}};_0x447b25(++_0x3a8a75);}(_0x3a8a,0x8d));const _0x447b=function(_0x9c8229,_0x3a8a75){_0x9c8229=_0x9c8229-0x0;let _0x447b25=_0x3a8a[_0x9c8229];return _0x447b25;};import{Users as _0x5db9c5}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x158453,PendingActions as _0x5c2e01}from'ckeditor5/src/core';import{logWarning as _0x48526a,uid as _0x47e9ae}from'ckeditor5/src/utils';import{Position as _0x579325,Range as _0x395b8d,Element as _0x3e5557,DocumentFragment as _0x182bce,ViewText as _0x26c9e1,ViewElement as _0x53ede4,ViewContainerElement as _0x316f9d,ViewAttributeElement as _0x376172,ViewEmptyElement as _0x15ec21,ViewRawElement as _0x23106e,ViewUIElement as _0x56b103,ViewDocumentFragment as _0xbf4b3d}from'ckeditor5/src/engine';import _0x463573 from'./revisionsrepository';import{getTranslation as _0x2b410f}from'./utils/common-translations';import{cloneDeep as _0x383954,isEqual as _0x212335}from'lodash-es';const B={'c':_0x316f9d,'a':_0x376172,'e':_0x15ec21,'r':_0x23106e,'u':_0x56b103};export default class l extends _0x158453{static get[_0x447b('0xb3')](){return'RevisionTracker';}static get[_0x447b('0x69')](){return[_0x5db9c5,_0x463573,_0x5c2e01];}constructor(_0x49cd1b){super(_0x49cd1b),this[_0x447b('0xf6')]=null,this[_0x447b('0x103')]=null,this[_0x447b('0xd6')]=new H(this[_0x447b('0x1f')]),this[_0x447b('0x40')]=this['editor']['config'][_0x447b('0x7a')](_0x447b('0x107'))||'initial',this[_0x447b('0xec')]=new Map(),this[_0x447b('0xb6')]=null;const _0xe6f480=_0x47e9ae();this[_0x447b('0x2f')]={'history':this['editor'][_0x447b('0x74')]['document'][_0x447b('0x92')],'getLatestVersion':()=>Promise[_0x447b('0x9b')](this['editor'][_0x447b('0x74')][_0x447b('0xf1')]['version']),'getCurrentRevisionId':()=>_0xe6f480},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this[_0x447b('0xc1')](_0x447b('0x5f'),!0x1),this['editor'][_0x447b('0xbc')][_0x447b('0x14')](_0x447b('0xeb'),!0x0),this[_0x447b('0x1f')][_0x447b('0xe7')][_0x447b('0xb')](_0x447b('0x10'))[_0x447b('0xc2')]({'view':'revision'});}[_0x447b('0xb2')](){this['repository']=this[_0x447b('0x1f')][_0x447b('0x1d')][_0x447b('0x7a')](_0x447b('0xce')),this[_0x447b('0x20')](),this['editor']['data']['on'](_0x447b('0x16'),()=>{const _0x61046c=this['repository'][_0x447b('0x52')](0x0),_0x699b2d=_0x61046c&&null===_0x61046c[_0x447b('0x23')]?_0x61046c:null;if(this[_0x447b('0x53')]=!!_0x699b2d&&this[_0x447b('0x1f')][_0x447b('0xbc')][_0x447b('0x7a')](_0x447b('0xeb')),this['editor']['plugins'][_0x447b('0x42')](_0x447b('0x46'))){const _0x366893=this['_source']['getCurrentRevisionId'](),_0x5def9b=this[_0x447b('0xd4')][_0x447b('0x52')](_0x366893);if(_0x5def9b)this['_startingVersion']=_0x5def9b['fromVersion'],this[_0x447b('0x53')]=!0x1;else{const _0x1b514b=this[_0x447b('0x2f')]['history']['_operations'][_0x447b('0x6f')](_0x12e96e=>!_0x12e96e[_0x447b('0xe2')]),_0x1d004c=_0x1b514b?_0x1b514b[_0x447b('0x93')]:this[_0x447b('0x2f')][_0x447b('0x92')][_0x447b('0x100')];_0x61046c?(_0x61046c['toVersion']<_0x1d004c&&_0x61046c['_update']({'toVersion':_0x1d004c}),this[_0x447b('0x53')]?(this[_0x447b('0x2f')]['getCurrentRevisionId']=()=>_0x699b2d['id'],this[_0x447b('0x108')]=_0x699b2d[_0x447b('0x4e')]):(this[_0x447b('0x108')]=_0x61046c[_0x447b('0x89')],this['_continueCurrentRevision']=!0x1)):(this[_0x447b('0x108')]=_0x1d004c,this['_continueCurrentRevision']=!0x1);}}else _0x699b2d&&(this['editor'][_0x447b('0x74')][_0x447b('0xf1')]['history']['version']=Math[_0x447b('0x34')](_0x699b2d[_0x447b('0x89')],this[_0x447b('0x1f')][_0x447b('0x74')]['document'][_0x447b('0x92')][_0x447b('0x100')]),_0x699b2d[_0x447b('0x4e')]===_0x699b2d[_0x447b('0x89')]?(0x0!==_0x699b2d[_0x447b('0x4e')]&&(this[_0x447b('0x2f')]['getCurrentRevisionId']=()=>_0x699b2d['id']),this[_0x447b('0x53')]=!0x1):this[_0x447b('0x53')]&&(this[_0x447b('0x2f')][_0x447b('0x0')]=()=>_0x699b2d['id'],this[_0x447b('0x108')]=_0x699b2d[_0x447b('0x4e')])),this[_0x447b('0x53')]||(this[_0x447b('0x108')]=this[_0x447b('0x1f')]['model'][_0x447b('0xf1')][_0x447b('0x100')]);this['_revisionDataBuilder']['init'](this[_0x447b('0x2f')][_0x447b('0x92')]),this[_0x447b('0xe5')](this[_0x447b('0x108')]),this[_0x447b('0x3f')](this[_0x447b('0x108')]),this[_0x447b('0xf6')]&&this[_0x447b('0x60')]();}),this[_0x447b('0x15')]('isReady')['to'](this,'_isPendingUpdate',_0x5aae90=>!_0x5aae90);}async['afterInit'](){if(this[_0x447b('0xd4')][_0x447b('0x67')]>0x0){const _0x1686f5=this[_0x447b('0xd4')][_0x447b('0x52')](0x0),_0xcc4d51=await this[_0x447b('0x90')](_0x1686f5),_0x61e5b=await this[_0x447b('0x2a')](_0x1686f5);this[_0x447b('0x86')](_0xcc4d51,_0x61e5b);}}[_0x447b('0x38')](_0x5496ff){this[_0x447b('0x2f')]=_0x5496ff;}async[_0x447b('0xef')](){const _0x433c12=await this[_0x447b('0x2f')]['getLatestVersion']();if(_0x433c12>this[_0x447b('0x103')][_0x447b('0x89')]){await this['_loadState']();const _0x58e008=this[_0x447b('0x13')]({'revision':this[_0x447b('0x103')],'to':_0x433c12});_0x58e008[_0x447b('0x21')]=_0x58e008[_0x447b('0x102')][_0x447b('0x78')](_0x104964=>this[_0x447b('0x1f')]['plugins'][_0x447b('0x7a')](_0x447b('0xc8'))[_0x447b('0x76')](_0x104964)),this[_0x447b('0x103')][_0x447b('0x7d')](_0x58e008);}}async['_loadState'](){this[_0x447b('0x53')]&&!this[_0x447b('0xb6')]&&(await this[_0x447b('0x1')](this['currentRevision']),this[_0x447b('0xd6')][_0x447b('0xc7')](this[_0x447b('0x103')]),this[_0x447b('0xb6')]={'fromVersion':this['currentRevision'][_0x447b('0x4e')],'authors':this[_0x447b('0x103')]['authors'][_0x447b('0xa4')]()});}async['saveRevision'](_0x35ee77={},_0xd58e0c=null){const _0x2d17dc=[];await this[_0x447b('0xfb')](),this[_0x447b('0x53')]=!0x1,_0xd58e0c>this[_0x447b('0x103')][_0x447b('0x89')]&&(_0xd58e0c=null),null===_0xd58e0c&&(_0xd58e0c=await this[_0x447b('0x2f')]['getLatestVersion']());const _0x402b24=this[_0x447b('0x50')](_0xd58e0c),_0x418ede=this[_0x447b('0x13')]({'from':_0x402b24,'to':_0xd58e0c});if(this['currentRevision']['toVersion']<_0xd58e0c){const _0x105bf6=this['buildRevisionData']({'revision':this[_0x447b('0x103')],'from':_0xd58e0c,'to':_0xd58e0c});_0x105bf6[_0x447b('0x21')]=[],_0x105bf6[_0x447b('0x102')]=[],_0x105bf6['id']=this[_0x447b('0x103')]['id'],this['currentRevision']['_update'](_0x105bf6,!0x0),delete _0x105bf6[_0x447b('0x21')],_0x2d17dc[_0x447b('0xd0')](_0x105bf6);}_0x35ee77['creatorId']=this[_0x447b('0x1f')][_0x447b('0x1d')][_0x447b('0x7a')]('Users')['me']['id'],_0x35ee77[_0x447b('0xf5')]=_0x35ee77[_0x447b('0xf5')]||null,_0x35ee77['id']=_0x35ee77['id']||_0x47e9ae(),_0x35ee77={..._0x35ee77,..._0x418ede};const _0x3af36d=this[_0x447b('0x95')](_0x35ee77);_0x2d17dc['push'](_0x35ee77);const _0x52201a=this[_0x447b('0xd4')][_0x447b('0xc6')](_0x3af36d);if(0x0!==_0x52201a){const _0xd2c324=this[_0x447b('0xd4')]['getRevision'](_0x52201a-0x1);if(_0xd2c324[_0x447b('0x4e')]!==_0xd58e0c){const _0x4e3cd4=this[_0x447b('0xd6')]['getData'](_0xd58e0c,_0xd2c324[_0x447b('0x89')]),_0x28ceb3={'id':_0xd2c324['id'],'diffData':_0x4e3cd4[_0x447b('0xf9')],'authorsIds':_0x4e3cd4['authorsIds'],'authors':_0x4e3cd4[_0x447b('0x102')]['map'](_0x188715=>this[_0x447b('0x1f')][_0x447b('0x1d')][_0x447b('0x7a')]('Users')[_0x447b('0x76')](_0x188715)),'fromVersion':_0xd58e0c};_0xd2c324===this['currentRevision']&&(_0x28ceb3[_0x447b('0x2d')]=new Date(_0x35ee77[_0x447b('0x2d')][_0x447b('0x75')]()+0xa)),_0xd2c324[_0x447b('0x7d')](_0x28ceb3,!0x0),delete _0x28ceb3[_0x447b('0x21')],_0x2d17dc[_0x447b('0xd0')](_0x28ceb3);}}if(this[_0x447b('0xf6')]){for(const _0x1da6ef of _0x2d17dc)this['_bufferUpdate'](_0x1da6ef['id'],_0x1da6ef,!0x0);this[_0x447b('0x60')]();}return _0x3af36d;}[_0x447b('0x95')](_0x2cb477){const _0x4d4a79=this['repository'][_0x447b('0x84')](_0x2cb477);return this[_0x447b('0xf6')]&&_0x4d4a79['on'](_0x447b('0x7d'),(_0x2a0af9,_0x5ab925,_0x324c09)=>{_0x324c09||(this[_0x447b('0xcc')](_0x5ab925['id'],_0x5ab925,!0x0),this[_0x447b('0x60')]());}),this[_0x447b('0xd4')][_0x447b('0x4f')](_0x4d4a79,this[_0x447b('0x87')](_0x4d4a79)),_0x4d4a79;}async[_0x447b('0x90')](_0x5e0c87){await this[_0x447b('0x1')](_0x5e0c87);const _0x26f644={};for(const _0x154893 in _0x5e0c87[_0x447b('0xf9')]){if(_0x5e0c87[_0x447b('0xf9')][_0x154893][_0x447b('0x5')]&&!_0x5e0c87[_0x447b('0xf9')][_0x154893][_0x447b('0x5')][_0x447b('0x1b')])continue;const _0x144df0=this['_removeRevisionMarkers'](JSON[_0x447b('0x73')](_0x5e0c87['diffData'][_0x154893][_0x447b('0x3')])),_0x42dcc8=this[_0x447b('0x1f')][_0x447b('0xdb')][_0x447b('0x61')][_0x447b('0xf1')],_0x2454ca=new _0xbf4b3d(_0x42dcc8,_0x144df0[_0x447b('0x78')](_0x1ac1f7=>J(_0x1ac1f7,this[_0x447b('0x1f')])));this['editor'][_0x447b('0xe8')][_0x447b('0x4')][_0x447b('0xcb')](_0x447b('0xdc')),_0x26f644[_0x154893]=this['editor'][_0x447b('0xe8')]['processor'][_0x447b('0xaa')](_0x2454ca),this[_0x447b('0x1f')][_0x447b('0xe8')][_0x447b('0x4')][_0x447b('0xcb')](_0x447b('0x47'));}return _0x26f644;}async[_0x447b('0x2a')](_0x21f6a3){await this['_loadRevisionData'](_0x21f6a3);const _0x57a623={};for(const _0x4341ea in _0x21f6a3[_0x447b('0xf9')])_0x21f6a3[_0x447b('0xf9')][_0x4341ea][_0x447b('0x5')]&&!_0x21f6a3[_0x447b('0xf9')][_0x4341ea][_0x447b('0x5')]['isAttached']||(_0x57a623[_0x4341ea]=_0x21f6a3[_0x447b('0xf9')][_0x4341ea][_0x447b('0x7b')]||{});return _0x57a623;}[_0x447b('0x60')](){if(0x0===this[_0x447b('0xec')][_0x447b('0xed')])return;if(this['_isPendingUpdate'])return;let _0x2c5bce=Array['from'](this[_0x447b('0xec')][_0x447b('0x81')]());this[_0x447b('0xec')][_0x447b('0x6')]();for(let _0x304271=0x0;_0x304271<_0x2c5bce[_0x447b('0x67')];_0x304271++){const _0x28808e=_0x2c5bce[_0x304271];let _0xa47982=!0x1;for(const _0x5fa47c of Object[_0x447b('0xb7')](_0x28808e))void 0x0===_0x28808e[_0x5fa47c]?delete _0x28808e[_0x5fa47c]:'id'!==_0x5fa47c&&(_0xa47982=!0x0);_0xa47982||(_0x2c5bce[_0x304271]=null);}if(_0x2c5bce=_0x2c5bce[_0x447b('0x64')](_0x2fe2f7=>null!==_0x2fe2f7),!_0x2c5bce[_0x447b('0x67')])return;for(let _0x16cfbe=0x0;_0x16cfbe<_0x2c5bce[_0x447b('0x67')];_0x16cfbe++){const _0x580f0d=_0x2c5bce[_0x16cfbe];void 0x0!==_0x580f0d[_0x447b('0x4e')]&&void 0x0===_0x580f0d[_0x447b('0x89')]&&(_0x580f0d[_0x447b('0x89')]=this[_0x447b('0xd4')]['getRevision'](_0x580f0d['id'])[_0x447b('0x89')]),void 0x0!==_0x580f0d[_0x447b('0x89')]&&void 0x0===_0x580f0d[_0x447b('0x4e')]&&(_0x580f0d['fromVersion']=this[_0x447b('0xd4')][_0x447b('0x52')](_0x580f0d['id'])[_0x447b('0x4e')]);}const _0x43d1fd=this[_0x447b('0x1f')][_0x447b('0xbc')]['get'](_0x447b('0x107'));this['_isPendingUpdate']=!0x0,this[_0x447b('0x6b')](),this[_0x447b('0xf6')][_0x447b('0xe9')](_0x2c5bce,_0x43d1fd)[_0x447b('0xfc')](()=>{this['_isPendingUpdate']=!0x1;})[_0x447b('0x8e')](_0x23a6d3=>{if(_0x23a6d3)for(const _0x256430 of _0x23a6d3)this[_0x447b('0xff')]({'id':_0x256430['id'],'createdAt':_0x256430[_0x447b('0x2d')]});this[_0x447b('0xa0')](),this[_0x447b('0x60')]();});}[_0x447b('0x86')](_0x2bf68a,_0x87a9e1){let _0x447bd6=this['editor'][_0x447b('0xbc')][_0x447b('0x7a')]('initialData'),_0x3bddbf=this[_0x447b('0x1f')][_0x447b('0xbc')][_0x447b('0x7a')]('rootsAttributes');if(void 0x0===_0x447bd6){_0x447bd6={};for(const _0x211ed1 of this[_0x447b('0x1f')][_0x447b('0x74')]['document'][_0x447b('0x9a')]())_0x447bd6[_0x211ed1]='';}if('string'==typeof _0x447bd6&&(_0x447bd6={'main':_0x447bd6}),void 0x0===_0x3bddbf){_0x3bddbf={};for(const _0x14f8d1 of this[_0x447b('0x1f')][_0x447b('0x74')][_0x447b('0xf1')]['getRootNames']())_0x3bddbf[_0x14f8d1]={};}let _0x14a9e0=!0x1;const _0x4aefc0=Object['keys'](_0x447bd6),_0x49f515=Object[_0x447b('0xb7')](_0x2bf68a);for(const _0x171872 of _0x4aefc0){if(_0x447bd6[_0x171872]!==_0x2bf68a[_0x171872]&&''!==_0x447bd6[_0x171872]['trim']()){_0x14a9e0=!0x0;break;}if(!_0x212335(_0x3bddbf[_0x171872],_0x87a9e1[_0x171872])&&Object[_0x447b('0xb7')](_0x3bddbf[_0x171872])[_0x447b('0x67')]>0x0){_0x14a9e0=!0x0;break;}}_0x14a9e0||(_0x14a9e0=_0x49f515[_0x447b('0xe4')](_0x15f745=>!this[_0x447b('0x1f')]['model'][_0x447b('0xf1')][_0x447b('0x48')](_0x15f745))),_0x14a9e0&&_0x48526a(_0x447b('0x35'),{'editorData':_0x447bd6,'editorRootsAttributes':_0x3bddbf,'revisionData':_0x2bf68a,'revisionRootsAttributes':_0x87a9e1}),this[_0x447b('0x1f')][_0x447b('0xbc')][_0x447b('0xc1')](_0x447b('0xbe'),_0x2bf68a),this[_0x447b('0x1f')][_0x447b('0xbc')][_0x447b('0xc1')]('rootsAttributes',_0x87a9e1);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xbd29ac=this['editor']['plugins'][_0x447b('0x7a')](_0x447b('0xac'));this[_0x447b('0xee')]=_0xbd29ac[_0x447b('0xf8')](_0x2b410f(this[_0x447b('0x1f')][_0x447b('0x27')],_0x447b('0x104')));}}[_0x447b('0xa0')](){this[_0x447b('0xee')]&&(this['editor'][_0x447b('0x1d')]['get'](_0x447b('0xac'))['remove'](this[_0x447b('0xee')]),this[_0x447b('0xee')]=null);}[_0x447b('0x87')](_0x286290){const _0x34d82e=this['repository'][_0x447b('0xfa')]();_0x34d82e['reverse']();let _0x3b58ed=0x0;for(;_0x3b58ed<_0x34d82e[_0x447b('0x67')];){const _0x391868=_0x34d82e[_0x3b58ed];if(_0x391868===this[_0x447b('0x103')]){_0x3b58ed++;continue;}if(_0x391868['id']===this[_0x447b('0x40')])break;const _0x4512cd=_0x286290[_0x447b('0x89')]-_0x391868['toVersion']||_0x286290['fromVersion']-_0x391868[_0x447b('0x4e')];if(_0x4512cd>0x0)break;if(_0x4512cd<0x0)_0x3b58ed++;else{if(!_0x286290[_0x447b('0x23')]&&_0x391868[_0x447b('0x23')])break;if(_0x391868[_0x447b('0x23')]||!_0x286290[_0x447b('0x23')]){if(_0x286290[_0x447b('0x2d')]>_0x391868[_0x447b('0x2d')])break;_0x3b58ed++;}else _0x3b58ed++;}}return _0x3b58ed;}[_0x447b('0xff')](_0x577969){const _0x2d8e45=this[_0x447b('0xd4')][_0x447b('0x52')](_0x577969['id']);if(_0x577969[_0x447b('0x2d')]&&(_0x577969[_0x447b('0x2d')]=new Date(_0x577969[_0x447b('0x2d')])),_0x577969[_0x447b('0x102')]){const _0xbfc71c=this[_0x447b('0x1f')]['plugins']['get'](_0x447b('0xc8'));_0x577969[_0x447b('0x21')]=_0x577969[_0x447b('0x102')]['map'](_0x1a41ab=>_0xbfc71c['getUser'](_0x1a41ab));}_0x2d8e45[_0x447b('0x7d')](_0x577969,!0x0);}[_0x447b('0x13')]({revision:_0x544f97=null,from:_0x1e67e4=null,to:_0x46ea48=null}){_0x1e67e4=null!==_0x1e67e4?_0x1e67e4:_0x544f97[_0x447b('0x4e')],_0x46ea48=null!==_0x46ea48?_0x46ea48:_0x544f97['toVersion'];const _0x4d7249=this['_revisionDataBuilder']['getData'](_0x1e67e4,_0x46ea48),_0x29bd8b={'diffData':_0x4d7249[_0x447b('0xf9')],'authorsIds':_0x4d7249[_0x447b('0x102')],'fromVersion':_0x1e67e4,'toVersion':_0x46ea48};if(!_0x544f97||_0x46ea48!==_0x544f97['toVersion']){const _0x247f30=_0x46ea48-0x1,_0x595a68=this[_0x447b('0x2f')]['history'][_0x447b('0x43')](_0x247f30);_0x29bd8b[_0x447b('0x2d')]=_0x595a68&&_0x595a68[_0x447b('0x2d')]||new Date();}if(this['_loadedStateData']&&_0x1e67e4===this[_0x447b('0xb6')]['fromVersion'])for(const _0x5bdbb4 of this[_0x447b('0xb6')][_0x447b('0x21')])_0x29bd8b[_0x447b('0x102')][_0x447b('0x70')](_0x5bdbb4['id'])||_0x29bd8b[_0x447b('0x102')][_0x447b('0xd0')](_0x5bdbb4['id']);return _0x29bd8b;}['_loadRevisionData'](_0x4763f2){if(!_0x4763f2||_0x4763f2[_0x447b('0xf9')])return Promise[_0x447b('0x9b')]();{const _0x2e7dd4=this[_0x447b('0x1f')]['config']['get']('collaboration.channelId');return this[_0x447b('0xf6')][_0x447b('0x52')]({'channelId':_0x2e7dd4,'revisionId':_0x4763f2['id']})['then'](_0x2411b6=>{_0x4763f2[_0x447b('0xf9')]=_0x2411b6[_0x447b('0xf9')];});}}['_bufferUpdate'](_0x5f4e2d,_0x267585,_0x38329b){if(this[_0x447b('0xec')]['has'](_0x5f4e2d)){const _0x1c1418=this['_bufferedUpdates']['get'](_0x5f4e2d);_0x267585=_0x38329b?{..._0x1c1418,..._0x267585}:{..._0x267585,..._0x1c1418};}this[_0x447b('0xec')]['set'](_0x5f4e2d,_0x267585);}[_0x447b('0x50')](_0x1b858f){const _0x55a1f8=this[_0x447b('0xd4')]['getRevisions']();_0x55a1f8[_0x447b('0xc5')](),_0x55a1f8['shift']();const _0xe19074=_0x55a1f8[_0x447b('0x6f')](_0x227f1d=>_0x227f1d[_0x447b('0x89')]<=_0x1b858f)['toVersion'];return _0xe19074<this[_0x447b('0x108')]?this[_0x447b('0x108')]:_0xe19074;}[_0x447b('0xe5')](_0x1b62bd){const _0x4bf1a4=this[_0x447b('0xd4')][_0x447b('0x52')](this[_0x447b('0xd4')][_0x447b('0x67')]-0x1);if(_0x4bf1a4)this[_0x447b('0x40')]=_0x4bf1a4['id'];else{const _0x32227b=!this[_0x447b('0x1f')][_0x447b('0x74')]['document'][_0x447b('0x9')][_0x447b('0x6f')](_0x2ed239=>this[_0x447b('0x1f')]['model'][_0x447b('0xca')](_0x2ed239)),_0x4ddad2=this[_0x447b('0x1f')][_0x447b('0x1d')][_0x447b('0x7a')](_0x447b('0xc8'))['me']['id'],_0x13ce05=_0x2b410f(this['editor']['locale'],_0x32227b?_0x447b('0xbd'):_0x447b('0x37'));this[_0x447b('0x3b')]({'from':_0x1b62bd,'to':_0x1b62bd,'id':this['_initialRevisionId'],'name':_0x13ce05,'creatorId':_0x4ddad2});}}[_0x447b('0x3f')](_0x29e360){const _0x5d8656=this[_0x447b('0x2f')][_0x447b('0x0')]();this[_0x447b('0x103')]=this[_0x447b('0xd4')][_0x447b('0x52')](_0x5d8656),this['currentRevision']||(this[_0x447b('0x103')]=this[_0x447b('0x3b')]({'from':_0x29e360,'to':_0x29e360,'id':_0x5d8656,'name':'','creatorId':null}));}[_0x447b('0x3b')]({name:_0x2e6cff,from:_0x210ec7,to:_0x5b886d,creatorId:_0x22a24f,id:_0x4d53b5}){const _0x4ef612=this[_0x447b('0x13')]({'from':_0x210ec7,'to':_0x5b886d});_0x4ef612[_0x447b('0xf5')]=_0x2e6cff,_0x4ef612[_0x447b('0x3e')]=_0x22a24f,_0x4ef612['id']=_0x4d53b5;const _0x46ef07=this[_0x447b('0x95')](_0x4ef612);return this[_0x447b('0xf6')]&&this[_0x447b('0xcc')](_0x4ef612['id'],_0x4ef612,!0x0),_0x46ef07;}[_0x447b('0x20')](){this[_0x447b('0x1f')][_0x447b('0xe7')]['for'](_0x447b('0xbf'))[_0x447b('0x30')]({'model':_0x447b('0xe1')});}[_0x447b('0x63')](_0x480b0e){return(_0x480b0e=_0x480b0e[_0x447b('0x64')](_0x1db0da=>!_0x1db0da[_0x447b('0xf5')]||_0x447b('0x6d')!==_0x1db0da[_0x447b('0xf5')]&&_0x447b('0x85')!==_0x1db0da[_0x447b('0xf5')]))[_0x447b('0xb1')](_0x65505c=>{_0x447b('0x77')!=typeof _0x65505c&&(_0x65505c[_0x447b('0x7c')]=this[_0x447b('0x63')](_0x65505c['children']),_0x65505c[_0x447b('0x28')]=_0x65505c[_0x447b('0x28')]['filter'](_0x352f07=>!_0x352f07[0x0][_0x447b('0x19')](_0x447b('0xd8'))));}),_0x480b0e;}}function J(_0x4b3afa,_0x810b60){const _0x498661=_0x810b60[_0x447b('0xdb')]['view'][_0x447b('0xf1')];if('string'==typeof _0x4b3afa)return new _0x26c9e1(_0x498661,_0x4b3afa);{const _0x2163ef=_0x4b3afa[_0x447b('0x7c')][_0x447b('0x78')](_0x2dbccd=>J(_0x2dbccd,_0x810b60));return new(B[_0x4b3afa[(_0x447b('0xd7'))]]||_0x53ede4)(_0x498661,_0x4b3afa[_0x447b('0xf5')],_0x4b3afa[_0x447b('0x28')],_0x2163ef);}}class H{constructor(_0x48447a){this[_0x447b('0x1f')]=_0x48447a,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this[_0x447b('0x59')]=-0x1,this[_0x447b('0x18')]=new Map(),this[_0x447b('0xc3')]=new Map(),this[_0x447b('0x56')]=new Map(),this[_0x447b('0x8b')]=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this[_0x447b('0xd')]=new Map(),this[_0x447b('0x22')]=new Map(),this['_touchedMarkers']=new Map(),this[_0x447b('0xc4')]=new Map(),this[_0x447b('0xc0')]=0x1;}[_0x447b('0xb2')](_0xfda0b2){this['source']=_0xfda0b2;const _0x1e5cb4=new Map(),_0x41317f=new Map(),_0x51b6a2=this[_0x447b('0x1f')][_0x447b('0x74')][_0x447b('0xf1')]['roots'][_0x447b('0x78')](_0x373928=>_0x373928[_0x447b('0x98')]);for(const _0x6433af of _0x51b6a2){const _0x4e5c3d=this[_0x447b('0x1f')][_0x447b('0x74')]['document'][_0x447b('0x48')](_0x6433af),_0x359202=q(_0x4e5c3d);_0x1e5cb4[_0x447b('0xc1')](_0x6433af,_0x359202),_0x41317f[_0x447b('0xc1')](_0x6433af,Object[_0x447b('0xc9')](_0x4e5c3d['getAttributes']()));}const _0x4f88a7=Array[_0x447b('0x4c')](this[_0x447b('0x1f')]['model'][_0x447b('0xa3')])[_0x447b('0x78')](_0x4d2b2b=>[_0x4d2b2b[_0x447b('0xf5')],_0x4d2b2b[_0x447b('0xa9')]()]),_0xd1ab01=this[_0x447b('0x31')][_0x447b('0x100')];this[_0x447b('0x9f')](_0xd1ab01,_0x1e5cb4,_0x4f88a7,_0x41317f),this[_0x447b('0xde')]=this[_0x447b('0xc0')];const _0x551488=new Map(),_0x27a1a0=new Map();for(const _0x1f2ab8 of _0x51b6a2){const _0x47d1a7=G(_0x1f2ab8);_0x551488[_0x447b('0xc1')](_0x1f2ab8,_0x47d1a7),_0x27a1a0[_0x447b('0xc1')](_0x1f2ab8,{});}this[_0x447b('0x9f')](Number[_0x447b('0xb0')],_0x551488,[],_0x27a1a0);}[_0x447b('0x101')](_0x18d85b,_0x598e09){if(this[_0x447b('0xb5')]===_0x18d85b&&this[_0x447b('0x59')]<=_0x598e09)this[_0x447b('0x6c')][_0x447b('0xed')]>0x1&&this['_removeMetaData'](this[_0x447b('0x59')]),this[_0x447b('0xba')](this[_0x447b('0x59')],_0x598e09,!0x0);else{if(!this[_0x447b('0x6c')][_0x447b('0x42')](_0x18d85b)){const _0x994675=this[_0x447b('0xda')](_0x18d85b);this[_0x447b('0xd2')](_0x994675,_0x18d85b,!0x1);}this[_0x447b('0xd2')](_0x18d85b,_0x598e09,!0x0);}return this[_0x447b('0xb5')]=_0x18d85b,this['_lastTo']=_0x598e09,this[_0x447b('0xa2')]();}['loadState'](_0x37c4fd){this[_0x447b('0x3c')](),this[_0x447b('0xb5')]=_0x37c4fd['fromVersion'],this[_0x447b('0x59')]=_0x37c4fd[_0x447b('0x89')];for(const _0x58caad in _0x37c4fd['diffData']){const _0xff352e=_0x37c4fd[_0x447b('0xf9')][_0x58caad][_0x447b('0x5')],_0x3307e6=_0x383954(_0x37c4fd[_0x447b('0xf9')][_0x58caad]['attributesBefore'])||{},_0x965b4=this[_0x447b('0x4d')](_0x37c4fd[_0x447b('0xf9')][_0x58caad][_0x447b('0x4b')]);_0x965b4[_0x447b('0x98')]=_0x58caad,_0x965b4[_0x447b('0xc')]=!_0xff352e||!_0xff352e[_0x447b('0x1b')],_0x965b4[_0x447b('0x1b')]=()=>_0x965b4[_0x447b('0xc')],this['_baseRoots'][_0x447b('0xc1')](_0x58caad,_0x965b4),this[_0x447b('0xbb')][_0x447b('0xc1')](_0x58caad,_0x3307e6),_0xff352e&&this[_0x447b('0xc4')][_0x447b('0xc1')](_0x58caad,_0xff352e);const _0x14393c=this[_0x447b('0x58')](_0x965b4);this['_baseIdsRoots'][_0x447b('0xc1')](_0x58caad,_0x14393c);for(const [_0x457794,_0x2a53fd]of _0x965b4[_0x447b('0xa3')]){if(!_0x457794[_0x447b('0x19')](_0x447b('0xd3')))continue;const _0x2de970=_0x457794[_0x447b('0x99')](':')[0x2];for(const _0x473531 of _0x2a53fd[_0x447b('0x9e')]({'singleCharacters':!0x0})){const _0x4417a7=this[_0x447b('0x5c')](_0x473531),_0x4ae5fa=_0x447b('0xf2')==_0x473531[_0x447b('0xd7')]?_0x473531[_0x447b('0x72')]['path'][_0x447b('0xa4')](0x0,-0x1):_0x473531[_0x447b('0x72')][_0x447b('0x25')],_0x134536=_0x14393c[_0x447b('0x9d')](_0x4ae5fa)[_0x447b('0x5d')](_0x4417a7);this[_0x447b('0x22')][_0x447b('0xc1')](_0x134536,{'userId':_0x2de970});}}}this[_0x447b('0xde')]=this[_0x447b('0xc0')];const _0x3c51fe=[...Array(this[_0x447b('0xc0')])[_0x447b('0xb7')]()][_0x447b('0xa4')](0x1)[_0x447b('0x64')](_0x2e9053=>!this[_0x447b('0x22')][_0x447b('0x42')](_0x2e9053));let _0x146c1c=0x0;const _0x5ce3c1=new Map();for(const _0x2ff23b in _0x37c4fd[_0x447b('0xf9')]){const _0x2cbda3=_0x37c4fd[_0x447b('0xf9')][_0x2ff23b][_0x447b('0x5')],_0x8a79c5=_0x383954(_0x37c4fd[_0x447b('0xf9')][_0x2ff23b]['attributesAfter'])||{},_0x2430da=this['_makeModelFromViewString'](_0x37c4fd[_0x447b('0xf9')][_0x2ff23b]['insertions']);_0x2430da[_0x447b('0x98')]=_0x2ff23b,_0x2430da['_isAttached']=!_0x2cbda3||_0x2cbda3[_0x447b('0x1b')],_0x2430da[_0x447b('0x1b')]=()=>_0x2430da[_0x447b('0xc')],this[_0x447b('0xc3')][_0x447b('0xc1')](_0x2ff23b,_0x2430da),this[_0x447b('0x56')][_0x447b('0xc1')](_0x2ff23b,_0x8a79c5);const _0x29e77c=this[_0x447b('0x58')](_0x2430da,Number[_0x447b('0xb0')]);this[_0x447b('0xd5')][_0x447b('0xc1')](_0x2ff23b,_0x29e77c),_0x5ce3c1[_0x447b('0xc1')](_0x2ff23b,_0x2430da['isAttached']()?_0x8a79c5:{});for(const [_0x175388,_0x2cc145]of _0x2430da[_0x447b('0xa3')]){if(!_0x175388[_0x447b('0x19')](_0x447b('0xd3')))continue;const _0x2fa7d1=_0x175388[_0x447b('0x99')](':')[0x2];for(const _0x13624f of _0x2cc145['getWalker']({'singleCharacters':!0x0})){const _0x3da8f7=this[_0x447b('0x5c')](_0x13624f),_0x3a2035=this['_revisionId']++,_0x3a553c='elementEnd'==_0x13624f[_0x447b('0xd7')]?_0x13624f['previousPosition'][_0x447b('0x25')][_0x447b('0xa4')](0x0,-0x1):_0x13624f[_0x447b('0x72')][_0x447b('0x25')];_0x29e77c[_0x447b('0x9d')](_0x3a553c)['_setAttribute'](_0x3da8f7,_0x3a2035),this[_0x447b('0x22')][_0x447b('0xc1')](_0x3a2035,{'userId':_0x2fa7d1});}}for(const _0x30f8f1 of this[_0x447b('0x1f')]['model']['createRangeIn'](_0x2430da)[_0x447b('0x9e')]({'singleCharacters':!0x0})){const _0x1dabf0=this['_getVidAttributeName'](_0x30f8f1),_0x2863d0=_0x447b('0xf2')==_0x30f8f1[_0x447b('0xd7')]?_0x30f8f1['previousPosition']['path']['slice'](0x0,-0x1):_0x30f8f1['previousPosition'][_0x447b('0x25')],_0x1d6fa3=_0x29e77c[_0x447b('0x9d')](_0x2863d0);_0x1d6fa3[_0x447b('0x5d')](_0x1dabf0)>0x0||_0x1d6fa3[_0x447b('0x29')](_0x1dabf0,_0x3c51fe[_0x146c1c++]);}for(const [_0x5a8139,_0xa453e0]of _0x2430da['markers'])_0x5a8139['startsWith'](_0x447b('0xd3'))||this[_0x447b('0x18')]['set'](_0x5a8139,_0xa453e0);}const _0x1677af=G(_0x447b('0xf4'));this[_0x447b('0x8b')][_0x447b('0xc1')](_0x447b('0xf4'),_0x1677af),this[_0x447b('0xd')][_0x447b('0xc1')](_0x447b('0xf4'),this[_0x447b('0x58')](_0x1677af,0x1));const _0x2696e1=G(_0x447b('0xf4'));this[_0x447b('0xc3')]['set'](_0x447b('0xf4'),_0x2696e1),this['_idsRoots'][_0x447b('0xc1')]('$graveyard',this[_0x447b('0x58')](_0x2696e1,0x1));const _0x160920=Array[_0x447b('0x4c')](this[_0x447b('0xc3')])[_0x447b('0x78')](([_0x3931e3,_0x40bd18])=>[_0x3931e3,q(_0x40bd18)]);this[_0x447b('0x9f')](this['_lastTo'],_0x160920,this[_0x447b('0x18')],_0x5ce3c1);}[_0x447b('0x4d')](_0x191580){const _0x134394=JSON['parse'](_0x191580),_0x12063a=this[_0x447b('0x1f')][_0x447b('0xdb')][_0x447b('0x61')][_0x447b('0xf1')],_0x27bd27=new _0xbf4b3d(_0x12063a,_0x134394[_0x447b('0x78')](_0x2f17ec=>J(_0x2f17ec,this[_0x447b('0x1f')])));return this[_0x447b('0x1f')]['data'][_0x447b('0x2')](_0x27bd27);}[_0x447b('0x9f')](_0x402cbb,_0xbc69c4,_0x478f98,_0xd961cc){const _0x4ec103=new Map(_0xbc69c4),_0x193e97=new Map(_0x383954(_0xd961cc)),_0x48100e=new Map();for(const [_0xc23eb8,_0x249b0c]of _0x478f98)_0x48100e[_0x447b('0xc1')](_0xc23eb8,{'start':_0x249b0c[_0x447b('0x5a')][_0x447b('0x71')](),'end':_0x249b0c[_0x447b('0xea')]['clone'](),'rootName':_0x249b0c[_0x447b('0x2b')][_0x447b('0x98')]});this[_0x447b('0x6c')][_0x447b('0xc1')](_0x402cbb,{'roots':_0x4ec103,'markers':_0x48100e,'rootsAttributes':_0x193e97});}[_0x447b('0x36')](_0x11174b){this[_0x447b('0x6c')][_0x447b('0x3a')](_0x11174b);}[_0x447b('0x8f')](){this[_0x447b('0x3c')](),this[_0x447b('0xb5')]=-0x1,this[_0x447b('0x59')]=-0x1,this[_0x447b('0x6c')]['clear'](),this[_0x447b('0xb2')](this[_0x447b('0x31')]);}[_0x447b('0x3c')](){this[_0x447b('0x22')][_0x447b('0x6')](),this[_0x447b('0x41')]['clear'](),this['_touchedRoots']['clear'](),this[_0x447b('0xc3')][_0x447b('0x6')](),this[_0x447b('0x56')][_0x447b('0x6')](),this['_baseRoots'][_0x447b('0x6')](),this[_0x447b('0xbb')][_0x447b('0x6')](),this[_0x447b('0xd5')][_0x447b('0x6')](),this['_baseIdsRoots'][_0x447b('0x6')](),this[_0x447b('0x18')][_0x447b('0x6')](),this[_0x447b('0xc0')]=0x1,this['_startingRevisionId']=this[_0x447b('0xc0')];}['_makeIdsRoot'](_0x152e14,_0xa3d156=null){let _0x14993c=null;_0x152e14['is']('documentFragment')||(_0x14993c=new _0x3e5557(_0x152e14[_0x447b('0xf5')],{'vid_start':null===_0xa3d156?this['_revisionId']++:_0xa3d156++}));const _0x5b2396=[];for(const _0x1d9b09 of _0x152e14[_0x447b('0x45')]())if(_0x1d9b09['is']('element')){_0x5b2396[_0x447b('0xd0')](this[_0x447b('0x58')](_0x1d9b09,_0xa3d156));const _0x120c75=_0x5b2396[_0x5b2396[_0x447b('0x67')]-0x1];null!==_0xa3d156&&(_0xa3d156=_0x120c75['is'](_0x447b('0xb9'),_0x447b('0xa6'))?_0x120c75[_0x447b('0x5d')]('vid')+0x1:_0x120c75[_0x447b('0x5d')](_0x447b('0x94'))+0x1);}else for(let _0x7966ec=0x0;_0x7966ec<_0x1d9b09[_0x447b('0xdf')];_0x7966ec++)_0x5b2396['push'](new _0x3e5557(_0x447b('0xa6'),{'vid':null===_0xa3d156?this['_revisionId']++:_0xa3d156++}));if(_0x152e14['is']('documentFragment')){const _0x579335=G(_0x152e14[_0x447b('0x98')]);return _0x579335[_0x447b('0xf7')](0x0,_0x5b2396),_0x579335;}return _0x14993c[_0x447b('0x29')]('vid_end',null===_0xa3d156?this[_0x447b('0xc0')]++:_0xa3d156++),_0x14993c[_0x447b('0xf7')](0x0,_0x5b2396),_0x14993c;}[_0x447b('0xd2')](_0x2f47a0,_0x1ca8d8,_0x26330c){this[_0x447b('0x3c')]();const {roots:_0x429b9e,markers:_0x235172,rootsAttributes:_0x430913}=this['_savedMetaData'][_0x447b('0x7a')](_0x2f47a0);this['_baseRoots']=new Map(_0x429b9e),this[_0x447b('0xbb')]=new Map(_0x383954(_0x430913));for(const [_0x2ff229,_0x507ae3]of this[_0x447b('0x8b')])if('$graveyard'!==_0x2ff229&&(this['_diffRoots'][_0x447b('0xc1')](_0x2ff229,q(_0x507ae3)),this[_0x447b('0x56')]=new Map(_0x383954(_0x430913)),_0x26330c)){const _0x5a75cc=this['_revisionId'];this[_0x447b('0xd5')][_0x447b('0xc1')](_0x2ff229,this[_0x447b('0x58')](_0x507ae3)),this[_0x447b('0xd')][_0x447b('0xc1')](_0x2ff229,this[_0x447b('0x58')](_0x507ae3,_0x5a75cc));}this[_0x447b('0xde')]=this[_0x447b('0xc0')],this[_0x447b('0xc3')][_0x447b('0xc1')]('$graveyard',q(this['_baseRoots'][_0x447b('0x7a')](_0x447b('0xf4')))),_0x26330c&&this[_0x447b('0xd5')]['set'](_0x447b('0xf4'),this['_makeIdsRoot'](this['_baseRoots'][_0x447b('0x7a')]('$graveyard')));for(const [_0x14f4a1,_0x1a6052]of _0x235172){const _0x55b1eb=this[_0x447b('0x8b')][_0x447b('0x7a')](_0x1a6052[_0x447b('0x98')]),_0x5483c3=this[_0x447b('0xc3')][_0x447b('0x7a')](_0x1a6052[_0x447b('0x98')]),_0x5c13e5=new _0x395b8d(this['_fixPosition'](_0x1a6052[_0x447b('0x5a')],_0x55b1eb),this[_0x447b('0x97')](_0x1a6052[_0x447b('0xea')],_0x55b1eb)),_0x354f52=this['_fixRange'](_0x5c13e5,_0x5483c3);_0x55b1eb[_0x447b('0xa3')][_0x447b('0xc1')](_0x14f4a1,_0x5c13e5),this[_0x447b('0x18')][_0x447b('0xc1')](_0x14f4a1,_0x354f52);}this[_0x447b('0xba')](_0x2f47a0,_0x1ca8d8,_0x26330c);}['_applyOperations'](_0x5f23cd,_0xed1c58,_0x56daa3){for(const _0x2310d9 of this['source'][_0x447b('0x2c')](_0x5f23cd,_0xed1c58))this['_handleOperation'](_0x2310d9,_0x56daa3);for(const _0x16a2a4 of this[_0x447b('0xc3')]['values']())_0x16a2a4[_0x447b('0xa3')][_0x447b('0x6')]();for(const [_0x5b8f0d,_0x378b44]of this[_0x447b('0x18')]){this[_0x447b('0xc3')][_0x447b('0x7a')](_0x378b44['root'][_0x447b('0x98')])[_0x447b('0xa3')][_0x447b('0xc1')](_0x5b8f0d,_0x378b44[_0x447b('0x71')]());}const _0x2d1f4f=new Map(),_0x32084c=new Map();for(const [_0x489987,_0x3ff3ae]of this[_0x447b('0xc3')])_0x2d1f4f['set'](_0x489987,q(_0x3ff3ae)),_0x32084c[_0x447b('0xc1')](_0x489987,this[_0x447b('0x56')][_0x447b('0x7a')](_0x489987));this[_0x447b('0x9f')](_0xed1c58,_0x2d1f4f,this[_0x447b('0x18')],_0x32084c);}[_0x447b('0xda')](_0x309163){const _0x2f965a=Array['from'](this[_0x447b('0x6c')][_0x447b('0xb7')]());_0x2f965a[_0x447b('0x106')]((_0x1d76b7,_0x450a64)=>_0x1d76b7-_0x450a64),_0x2f965a['reverse']();for(const _0x5093b1 of _0x2f965a)if(_0x5093b1<_0x309163)return _0x5093b1;return Number['NEGATIVE_INFINITY'];}[_0x447b('0x7e')](_0x781b69,_0x44d140){const _0x1a402d=Array[_0x447b('0x4c')](_0x44d140['markers'])['map'](([_0x4ec92d,_0x2ab538])=>[_0x4ec92d,this['_fixRange'](_0x2ab538,_0x781b69)]);_0x781b69[_0x447b('0xa3')]=new Map(_0x1a402d);}['_transformMarkers'](_0x126d6a){for(const _0x3c118b of this['_markers'][_0x447b('0x81')]()){const _0x3ff2c8=_0x3c118b[_0x447b('0xf3')](_0x126d6a),_0x43c79f=_0x395b8d[_0x447b('0x5e')](_0x3ff2c8);_0x3c118b[_0x447b('0x5a')]=_0x43c79f[_0x447b('0x5a')],_0x3c118b[_0x447b('0xea')]=_0x43c79f['end'];}}[_0x447b('0xaf')](_0x5e2f50,_0xd8543a){if(_0x447b('0x109')==_0x5e2f50[_0x447b('0xd7')]||_0x447b('0xad')==_0x5e2f50[_0x447b('0xd7')])return void this[_0x447b('0x1e')](_0x5e2f50,_0xd8543a);if(_0x447b('0xd1')==_0x5e2f50[_0x447b('0xd7')]){const _0x45f2f0=_0x5e2f50[_0x447b('0xab')]['root'][_0x447b('0x98')];this['_diffRoots'][_0x447b('0x42')](_0x45f2f0)||(this[_0x447b('0xc3')][_0x447b('0xc1')](_0x45f2f0,G(_0x45f2f0,!0x0)),this[_0x447b('0x56')][_0x447b('0xc1')](_0x45f2f0,{}),_0xd8543a&&this[_0x447b('0xd5')]['set'](_0x45f2f0,G(_0x45f2f0,!0x0)));}else{if('addRootAttribute'==_0x5e2f50[_0x447b('0xd7')]||_0x447b('0x8c')==_0x5e2f50[_0x447b('0xd7')]||_0x447b('0x51')==_0x5e2f50[_0x447b('0xd7')])return void this[_0x447b('0x54')](_0x5e2f50);}const _0xc9b832=this[_0x447b('0xe0')](_0x5e2f50,this[_0x447b('0xc3')]);if(_0x447b('0xfd')!==_0x5e2f50['type']&&(_0xc9b832[_0x447b('0x83')](),this['_transformMarkers'](_0xc9b832)),_0xd8543a)switch(_0xc9b832[_0x447b('0xd7')]){case _0x447b('0xd1'):this[_0x447b('0x80')](_0x5e2f50);break;case _0x447b('0x4a'):case _0x447b('0xf'):case _0x447b('0x8'):this['_handleMoveOperation'](_0x5e2f50);break;case _0x447b('0x79'):this[_0x447b('0x7f')](_0x5e2f50);break;case'split':this['_handleSplitOperation'](_0x5e2f50);break;case _0x447b('0xfd'):this[_0x447b('0x39')](_0x5e2f50);}}['_cloneOperation'](_0x25d3c9,_0x2525be){const _0x570ba1=_0x25d3c9[_0x447b('0x71')]();return _0x570ba1[_0x447b('0x11')]=_0x25d3c9[_0x447b('0x11')],this[_0x447b('0x12')](_0x570ba1,_0x2525be),_0x570ba1;}[_0x447b('0xa')](_0x109698){return _0x109698[_0x447b('0x78')](_0x9aed93=>{const _0x1fac55=this[_0x447b('0x5c')](_0x9aed93);return Number(_0x9aed93[_0x447b('0xb4')][_0x447b('0x5d')](_0x1fac55));});}[_0x447b('0x32')](_0x36eac0,_0x25f911){if(_0x36eac0['is']('element',_0x447b('0xa6')))_0x25f911['push']({'item':_0x36eac0,'type':_0x447b('0x96')});else{_0x36eac0['is'](_0x447b('0xb9'))&&_0x25f911[_0x447b('0xd0')]({'item':_0x36eac0,'type':_0x447b('0xb8')});for(const _0x1a3371 of _0x36eac0[_0x447b('0x45')]())this['_generateTape'](_0x1a3371,_0x25f911);_0x36eac0['is'](_0x447b('0xb9'))&&_0x25f911[_0x447b('0xd0')]({'item':_0x36eac0,'type':'elementEnd'});}return _0x25f911;}[_0x447b('0xa2')](){const _0x2c67f8=new Map(this['_touched']),_0x42e611=new Map(_0x2c67f8),_0x14d389=new Map(),_0x8e7b20={'insertions':{},'deletions':{}},_0x47954d={'insertions':{},'deletions':{}},_0x88125b=new Map(),_0x41ab5a=new Set([...this['_baseRoots'][_0x447b('0xb7')](),...this[_0x447b('0xc3')][_0x447b('0xb7')]()]);_0x41ab5a[_0x447b('0x3a')](_0x447b('0xf4'));for(const _0x68d0ad of _0x41ab5a){const _0x5c3367=this['_diffRoots']['get'](_0x68d0ad)||G(_0x68d0ad,!0x1),_0x471953=this[_0x447b('0x8b')][_0x447b('0x7a')](_0x68d0ad)||G(_0x68d0ad,!0x1);_0x5c3367[_0x447b('0x1b')]()||_0x471953['isAttached']()?(_0x8e7b20['insertions'][_0x68d0ad]=q(_0x5c3367),_0x8e7b20['deletions'][_0x68d0ad]=q(_0x471953),this[_0x447b('0x7e')](_0x8e7b20[_0x447b('0x4b')][_0x68d0ad],_0x471953),this['_copyMarkers'](_0x8e7b20[_0x447b('0x3')][_0x68d0ad],_0x5c3367),_0x47954d[_0x447b('0x3')][_0x68d0ad]=this[_0x447b('0x32')](this[_0x447b('0xd5')][_0x447b('0x7a')](_0x68d0ad),[]),_0x47954d[_0x447b('0x4b')][_0x68d0ad]=this[_0x447b('0x32')](this[_0x447b('0xd')]['get'](_0x68d0ad)||G(_0x68d0ad,!0x1),[])):_0x41ab5a[_0x447b('0x3a')](_0x68d0ad);}for(const _0x10201e of _0x41ab5a){const _0x325674=_0x47954d[_0x447b('0x3')][_0x10201e];for(const _0x10f7a3 of _0x325674){const _0x3ab8f5=this['_getVidAttributeName'](_0x10f7a3),_0x132f31=_0x10f7a3[_0x447b('0xb4')]['getAttribute'](_0x3ab8f5);_0x42e611['delete'](_0x132f31),_0x132f31>=this[_0x447b('0xde')]&&_0x14d389[_0x447b('0xc1')](_0x132f31,_0x2c67f8['get'](_0x132f31));}}for(const _0x48ff72 of _0x41ab5a){const _0x12ecd5=_0x47954d[_0x447b('0x3')][_0x48ff72],_0x157e43=this[_0x447b('0xa')](_0x47954d[_0x447b('0x4b')][_0x48ff72]);let _0x3e581d=0x0;for(const _0x3e545f of _0x12ecd5){const _0x3b28c0=this[_0x447b('0x5c')](_0x3e545f),_0x131dc7=_0x3e545f[_0x447b('0xb4')][_0x447b('0x5d')](_0x3b28c0);if(!_0x14d389[_0x447b('0x42')](_0x131dc7)&&!_0x88125b[_0x447b('0x42')](_0x131dc7)){if(_0x42e611['has'](_0x131dc7))_0x3e581d++;else{if(_0x131dc7!=_0x157e43[_0x3e581d]){const _0x2df238=_0x2c67f8[_0x447b('0x7a')](_0x131dc7)||_0x2c67f8['get'](_0x157e43[_0x3e581d]);for(;_0x131dc7!=_0x157e43[_0x3e581d];)_0x42e611[_0x447b('0x42')](_0x157e43[_0x3e581d])||(_0x88125b[_0x447b('0xc1')](_0x157e43[_0x3e581d],_0x2df238),_0x2c67f8[_0x447b('0xc1')](_0x157e43[_0x3e581d],_0x2df238)),_0x3e581d++;}_0x3e581d++;}}}}for(const _0x13c19c of _0x41ab5a){const _0x5c6e1a=_0x47954d[_0x447b('0x3')][_0x13c19c];for(const _0x24abec of _0x5c6e1a){const _0x49db58=this[_0x447b('0x5c')](_0x24abec),_0x14f8ab=_0x24abec['item'][_0x447b('0x5d')](_0x49db58);if(_0x88125b[_0x447b('0x42')](_0x14f8ab)){const _0x50b911=_0x88125b['get'](_0x14f8ab);_0x42e611[_0x447b('0x42')](_0x14f8ab)||_0x42e611[_0x447b('0xc1')](_0x14f8ab,{..._0x50b911}),_0x14d389['set'](_0x14f8ab,{..._0x50b911});}}}for(const _0x224b29 of _0x42e611[_0x447b('0xb7')]())_0x224b29>=this[_0x447b('0xde')]&&_0x42e611['delete'](_0x224b29);const _0x492bd2=new Map();for(const _0x26541e of _0x41ab5a){let _0x4e7b04=_0x47954d[_0x447b('0x3')][_0x26541e];for(const _0x28eb3d of _0x4e7b04)if(_0x28eb3d[_0x447b('0xb4')]['is'](_0x447b('0xb9'),'tableCell')){const _0x5eb397=this[_0x447b('0x5c')](_0x28eb3d),_0x2d3e13=_0x28eb3d[_0x447b('0xb4')][_0x447b('0x5d')](_0x5eb397);if(_0x14d389[_0x447b('0x42')](_0x2d3e13)){const _0x2eefac=_0x28eb3d[_0x447b('0xb4')][_0x447b('0xa1')][_0x447b('0xa1')]['getAttribute'](_0x447b('0x91')),_0x289409=_0x492bd2[_0x447b('0x7a')](_0x2eefac)||new Set();_0x289409[_0x447b('0xf8')](_0x14d389[_0x447b('0x7a')](_0x2d3e13)[_0x447b('0x68')]),_0x492bd2[_0x447b('0xc1')](_0x2eefac,_0x289409);}}_0x4e7b04=_0x47954d['deletions'][_0x26541e];for(const _0x23bb58 of _0x4e7b04)if(_0x23bb58[_0x447b('0xb4')]['is'](_0x447b('0xb9'),_0x447b('0x105'))){const _0xa2216e=this[_0x447b('0x5c')](_0x23bb58),_0xed8a47=_0x23bb58[_0x447b('0xb4')][_0x447b('0x5d')](_0xa2216e);if(_0x42e611['has'](_0xed8a47)){const _0xc7dc01=_0x23bb58[_0x447b('0xb4')][_0x447b('0xa1')][_0x447b('0xa1')][_0x447b('0x5d')]('vid_start'),_0x462f5c=_0x492bd2[_0x447b('0x7a')](_0xc7dc01)||new Set();_0x462f5c[_0x447b('0xf8')](_0x42e611[_0x447b('0x7a')](_0xed8a47)[_0x447b('0x68')]),_0x492bd2['set'](_0xc7dc01,_0x462f5c);}}for(const _0x4a13cd of _0x492bd2[_0x447b('0xb7')]())(_0x14d389[_0x447b('0x42')](_0x4a13cd)||_0x42e611[_0x447b('0x42')](_0x4a13cd))&&_0x492bd2[_0x447b('0x3a')](_0x4a13cd);}for(const _0x482e28 of _0x41ab5a){const _0x2ee20e=_0x47954d[_0x447b('0x3')][_0x482e28];let _0x45172b=null,_0x6b109f=null;for(const _0x248cc1 of _0x2ee20e){const _0x533c7a=this[_0x447b('0x5c')](_0x248cc1),_0x44e595=_0x248cc1[_0x447b('0xb4')][_0x447b('0x5d')](_0x533c7a),_0x2a3bc5=_0x492bd2[_0x447b('0x7a')](_0x44e595);_0x2a3bc5&&_0x447b('0xb8')==_0x248cc1[_0x447b('0xd7')]&&(_0x45172b=Array['from'](_0x2a3bc5)[0x0],_0x6b109f=_0x248cc1[_0x447b('0xb4')][_0x447b('0x5d')](_0x447b('0x94'))),_0x45172b&&(_0x42e611[_0x447b('0xc1')](_0x44e595,{'userId':_0x45172b}),_0x14d389[_0x447b('0xc1')](_0x44e595,{'userId':_0x45172b})),_0x44e595==_0x6b109f&&(_0x45172b=null,_0x6b109f=null);}}const _0xe962e={},_0x23835a=new Set();for(const _0x286434 of _0x41ab5a){const _0xb866b4=_0x8e7b20[_0x447b('0x4b')][_0x286434],_0x3e112f=_0x8e7b20[_0x447b('0x3')][_0x286434];for(const {userId:_0x364d73}of this['_touchedMarkers']['values']())null!==_0x364d73&&_0x23835a[_0x447b('0xf8')](_0x364d73);for(const {userId:_0xaa0faa}of this[_0x447b('0xc4')][_0x447b('0x81')]())null!==_0xaa0faa&&_0x23835a[_0x447b('0xf8')](_0xaa0faa);this['_markChanges'](_0x3e112f,_0x47954d[_0x447b('0x3')][_0x286434],_0x14d389,_0x447b('0x26'),_0x23835a),this[_0x447b('0x1a')](_0xb866b4,_0x47954d['deletions'][_0x286434],_0x42e611,'deletion',_0x23835a),_0xe962e[_0x286434]={'insertions':this[_0x447b('0x24')](_0x3e112f),'deletions':this[_0x447b('0x24')](_0xb866b4),'attachChange':this[_0x447b('0xc4')][_0x447b('0x7a')](_0x286434)||null,'attributesBefore':_0x383954(this[_0x447b('0xbb')][_0x447b('0x7a')](_0x286434))||{},'attributesAfter':_0x383954(this['_diffRootsAttributes'][_0x447b('0x7a')](_0x286434))};}return{'diffData':_0xe962e,'authorsIds':Array[_0x447b('0x4c')](_0x23835a)};}[_0x447b('0x3d')](_0x5700b1){for(const [,_0x396200]of _0x5700b1['markers']){const _0x544f8a=_0x396200[_0x447b('0x5a')][_0x447b('0x33')]()[_0x447b('0x64')](_0x65f5b7=>_0x447b('0x105')==_0x65f5b7[_0x447b('0xf5')]);for(const _0x49ed8d of _0x544f8a)0x1==_0x49ed8d['childCount']&&_0x49ed8d['getChild'](0x0)['is'](_0x447b('0xb9'),_0x447b('0x7'))&&_0x49ed8d[_0x447b('0x57')](0x0)[_0x447b('0x29')](_0x447b('0xdd'),!0x0);}}[_0x447b('0x24')](_0x444685){this['_processRootBeforeSave'](_0x444685);const _0x58b55f=this[_0x447b('0x1f')][_0x447b('0xe8')]['toView'](_0x444685,{}),_0x134bfc=Array['from'](_0x58b55f[_0x447b('0x45')]())[_0x447b('0x78')](_0x4876fe=>this[_0x447b('0xf0')](_0x4876fe));return JSON[_0x447b('0xe6')](_0x134bfc);}[_0x447b('0xf0')](_0x29a051){if(_0x29a051['is']('$text'))return _0x29a051[_0x447b('0xe8')];{const _0x23332c=_0x29a051;return{'type':Object[_0x447b('0xb7')](B)['find'](_0x43ae52=>_0x29a051 instanceof B[_0x43ae52]),'name':_0x23332c[_0x447b('0xf5')],'attributes':Array[_0x447b('0x4c')](_0x23332c[_0x447b('0x8a')]()),'children':Array[_0x447b('0x4c')](_0x23332c[_0x447b('0x45')]())[_0x447b('0x78')](_0x257a12=>this['_getViewJson'](_0x257a12))};}}[_0x447b('0x1a')](_0x161a90,_0x2d18b2,_0x46fcfa,_0x5e698b,_0x10e46a){let _0x28c114=null,_0x9a7d87=null,_0x5dee40=0x0;const _0x51e3f2=this[_0x447b('0x1f')][_0x447b('0x74')];for(let _0x4cd877=0x0;_0x4cd877<_0x2d18b2['length'];_0x4cd877++){const _0x12bab6=this[_0x447b('0x5c')](_0x2d18b2[_0x4cd877]),_0x181fde=_0x2d18b2[_0x4cd877][_0x447b('0xb4')]['getAttribute'](_0x12bab6),_0x54694b=_0x46fcfa[_0x447b('0x7a')](_0x181fde),_0xf67766=_0x4cd877==_0x2d18b2[_0x447b('0x67')]-0x1;(!_0x28c114&&_0x54694b&&(_0x28c114=_0x54694b,_0x9a7d87=_0x2d18b2[_0x4cd877]),_0x28c114&&(!_0x54694b||_0x54694b[_0x447b('0x68')]!=_0x28c114['userId']))&&(_0x3712f9(_0x54694b,L(_0x9a7d87,_0x161a90,_0x51e3f2),L(_0x2d18b2[_0x4cd877],_0x161a90,_0x51e3f2)),_0x28c114=_0x54694b||null,_0x9a7d87=_0x54694b?_0x2d18b2[_0x4cd877]:null),_0x28c114&&_0xf67766&&_0x3712f9(_0x54694b,L(_0x9a7d87,_0x161a90,_0x51e3f2),W(_0x2d18b2[_0x4cd877],_0x161a90,_0x51e3f2));}function _0x3712f9(_0x23c006,_0x4a32f0,_0x482066){const _0x1be19e=_0x28c114[_0x447b('0x68')],_0x3f9c25='revision:'+_0x5e698b+':'+_0x1be19e+':'+_0x5dee40++,_0x40228a=_0x51e3f2[_0x447b('0x44')](_0x4a32f0,_0x482066);_0x161a90['markers'][_0x447b('0xc1')](_0x3f9c25,_0x40228a),null!==_0x1be19e&&_0x10e46a['add'](_0x1be19e);}}[_0x447b('0x5c')](_0x5cbe47){switch(_0x5cbe47[_0x447b('0xd7')]){case _0x447b('0xb8'):return _0x447b('0x91');case _0x447b('0xf2'):return _0x447b('0x94');default:return'vid';}}['_fixOperation'](_0x34e1e9,_0x241a52){_0x34e1e9[_0x447b('0x93')]=null;for(const _0x1f02bd in _0x34e1e9){const _0xc28895=_0x34e1e9[_0x1f02bd];if(_0xc28895 instanceof _0x579325){const _0x21cdc0=_0x241a52[_0x447b('0x7a')](_0xc28895['root'][_0x447b('0x98')]);_0x34e1e9[_0x1f02bd]=this[_0x447b('0x97')](_0xc28895,_0x21cdc0);}if(_0xc28895 instanceof _0x395b8d){const _0x1c5a89=_0x241a52[_0x447b('0x7a')](_0xc28895['root'][_0x447b('0x98')]);_0x34e1e9[_0x1f02bd]=this[_0x447b('0x17')](_0xc28895,_0x1c5a89);}'root'===_0x1f02bd&&(_0x34e1e9[_0x447b('0x2b')]=_0x241a52['get'](_0x34e1e9[_0x447b('0x2b')][_0x447b('0x98')]));}}['_fixRange'](_0x3a9466,_0x13225d){return this[_0x447b('0x1f')]['model'][_0x447b('0x44')](this[_0x447b('0x97')](_0x3a9466[_0x447b('0x5a')],_0x13225d),this['_fixPosition'](_0x3a9466[_0x447b('0xea')],_0x13225d));}[_0x447b('0x97')](_0x5bba48,_0x5161ee){return this[_0x447b('0x1f')]['model'][_0x447b('0xd9')](_0x5161ee,_0x5bba48[_0x447b('0x25')],_0x5bba48[_0x447b('0x66')]);}['_handleInsertOperation'](_0x91f75f){const _0x472db0=this[_0x447b('0xd5')]['get'](_0x91f75f[_0x447b('0xab')]['root'][_0x447b('0x98')]),_0x496df6=this['_fixPosition'](_0x91f75f[_0x447b('0xab')],_0x472db0),_0x51c641=null===_0x91f75f[_0x447b('0x11')]?null:_0x91f75f[_0x447b('0x11')]||this[_0x447b('0x1f')]['plugins']['get'](_0x447b('0xc8'))['me']['id'],_0x29ecea=_0x496df6[_0x447b('0xa1')],_0xa50574=this[_0x447b('0xc0')],_0xc7a2ae=[];for(const _0x3e2d6c of _0x91f75f[_0x447b('0xfe')])if(_0x3e2d6c['is']('element'))_0xc7a2ae['push'](this[_0x447b('0x58')](_0x3e2d6c));else for(let _0x9266d3=0x0;_0x9266d3<_0x3e2d6c[_0x447b('0xdf')];_0x9266d3++)_0xc7a2ae[_0x447b('0xd0')](new _0x3e5557(_0x447b('0xa6'),{'vid':this['_revisionId']++}));const _0x5df034=this[_0x447b('0xc0')];for(let _0x5df20a=_0xa50574;_0x5df20a<_0x5df034;_0x5df20a++)this[_0x447b('0x22')][_0x447b('0xc1')](_0x5df20a,{'userId':_0x51c641});_0x29ecea['_insertChild'](_0x496df6[_0x447b('0x1c')],_0xc7a2ae);}[_0x447b('0x82')](_0x2162ce){(_0x2162ce=this[_0x447b('0xe0')](_0x2162ce,this[_0x447b('0xd5')]))[_0x447b('0x83')]();const _0x1ed799=null===_0x2162ce['_authorId']?null:_0x2162ce['_authorId']||this[_0x447b('0x1f')][_0x447b('0x1d')][_0x447b('0x7a')](_0x447b('0xc8'))['me']['id'],_0x909932=_0x2162ce[_0x447b('0x88')](),_0x5a7608=_0x909932[_0x447b('0xa1')],_0x10a340=_0x909932[_0x447b('0x1c')];!function _0x25b4c9(_0x500538,_0x444826,_0x2d54eb,_0x1dd074){for(let _0x225367=_0x2d54eb;_0x225367<_0x1dd074;_0x225367++){const _0x4801d2=_0x444826[_0x447b('0x57')](_0x225367);_0x4801d2['is'](_0x447b('0xb9'),_0x447b('0xa6'))?_0x500538[_0x447b('0xc1')](_0x4801d2['getAttribute'](_0x447b('0x55')),{'userId':_0x1ed799}):(_0x500538['set'](_0x4801d2[_0x447b('0x5d')](_0x447b('0x91')),{'userId':_0x1ed799}),_0x25b4c9(_0x500538,_0x4801d2,0x0,_0x4801d2[_0x447b('0xcd')]),_0x500538[_0x447b('0xc1')](_0x4801d2[_0x447b('0x5d')](_0x447b('0x94')),{'userId':_0x1ed799}));}}(this[_0x447b('0x22')],_0x5a7608,_0x10a340,_0x10a340+_0x2162ce[_0x447b('0x5b')]);}[_0x447b('0x7f')](_0x3626fb){const _0x117b6a=null===(_0x3626fb=this['_cloneOperation'](_0x3626fb,this[_0x447b('0xd5')]))[_0x447b('0x11')]?null:_0x3626fb[_0x447b('0x11')]||this[_0x447b('0x1f')][_0x447b('0x1d')][_0x447b('0x7a')](_0x447b('0xc8'))['me']['id'],_0x3551c9=_0x3626fb[_0x447b('0xe3')][_0x447b('0xa1')],_0x4549a6=_0x3626fb['sourcePosition'][_0x447b('0xa1')],_0x281837=_0x3551c9[_0x447b('0x5d')](_0x447b('0x94')),_0x5492c2=_0x4549a6['getAttribute'](_0x447b('0x91'));_0x3551c9[_0x447b('0x29')]('vid_end',_0x4549a6['getAttribute']('vid_end')),_0x4549a6[_0x447b('0x29')](_0x447b('0x94'),_0x281837),this[_0x447b('0x22')][_0x447b('0xc1')](_0x5492c2,{'userId':_0x117b6a}),this[_0x447b('0x22')][_0x447b('0xc1')](_0x281837,{'userId':_0x117b6a}),_0x3626fb[_0x447b('0x83')]();}['_handleSplitOperation'](_0xee0d62){const _0x39fbad=null===(_0xee0d62=this[_0x447b('0xe0')](_0xee0d62,this[_0x447b('0xd5')]))[_0x447b('0x11')]?null:_0xee0d62['_authorId']||this[_0x447b('0x1f')][_0x447b('0x1d')][_0x447b('0x7a')](_0x447b('0xc8'))['me']['id'],_0x41e2af=_0xee0d62[_0x447b('0xa8')],_0x4458d3=_0xee0d62[_0x447b('0x65')]['parent'];_0xee0d62['_execute']();const _0x369538=_0x4458d3['getAttribute'](_0x447b('0x94')),_0x22db49=_0xee0d62[_0x447b('0x9c')]['nodeAfter'];if(_0x41e2af){const _0x3c987b=_0x22db49[_0x447b('0x5d')](_0x447b('0x94')),_0x548da1=_0x4458d3[_0x447b('0x5d')](_0x447b('0x94'));_0x4458d3[_0x447b('0x29')](_0x447b('0x94'),_0x3c987b),_0x22db49[_0x447b('0x29')](_0x447b('0x94'),_0x548da1),this[_0x447b('0x22')][_0x447b('0xc1')](_0x4458d3[_0x447b('0x5d')](_0x447b('0x94')),{'userId':_0x39fbad}),this['_touched'][_0x447b('0xc1')](_0x22db49[_0x447b('0x5d')](_0x447b('0x91')),{'userId':_0x39fbad});}else{const _0x4d963a=this['_revisionId']++,_0x5b203b=this['_revisionId']++;_0x4458d3[_0x447b('0x29')]('vid_end',_0x4d963a),_0x22db49[_0x447b('0x29')](_0x447b('0x91'),_0x5b203b),_0x22db49['_setAttribute'](_0x447b('0x94'),_0x369538),this['_touched'][_0x447b('0xc1')](_0x4d963a,{'userId':_0x39fbad}),this[_0x447b('0x22')][_0x447b('0xc1')](_0x5b203b,{'userId':_0x39fbad});}}[_0x447b('0x39')](_0x557983){if(!_0x557983[_0x447b('0x49')])return;const _0x44c7e8=(_0x557983=this[_0x447b('0xe0')](_0x557983,this[_0x447b('0xc3')]))[_0x447b('0xae')]?_0x557983['oldRange'][_0x447b('0x2b')]:null,_0x3c85a8=_0x557983[_0x447b('0xa7')]?_0x557983[_0x447b('0xa7')][_0x447b('0x2b')]:null;_0x44c7e8&&this[_0x447b('0x18')][_0x447b('0x3a')](_0x557983['name']),_0x3c85a8&&this[_0x447b('0x18')][_0x447b('0xc1')](_0x557983[_0x447b('0xf5')],_0x557983[_0x447b('0xa7')][_0x447b('0x71')]());const _0x22af91=null===_0x557983['_authorId']?null:_0x557983[_0x447b('0x11')]||this['editor'][_0x447b('0x1d')][_0x447b('0x7a')](_0x447b('0xc8'))['me']['id'],_0x1240bd=_0x557983[_0x447b('0xf5')];if(!this[_0x447b('0x41')][_0x447b('0x42')](_0x1240bd))return void this[_0x447b('0x41')][_0x447b('0xc1')](_0x1240bd,{'range':_0x557983[_0x447b('0xae')],'userId':_0x22af91});const _0x45a140=this[_0x447b('0x41')][_0x447b('0x7a')](_0x1240bd),_0x50102c=_0x45a140[_0x447b('0x2e')],_0x11cc72=_0x557983[_0x447b('0xa7')];null==_0x50102c&&null==_0x11cc72||_0x50102c&&_0x11cc72&&_0x50102c['isEqual'](_0x11cc72)?this[_0x447b('0x41')][_0x447b('0x3a')](_0x557983[_0x447b('0xf5')]):_0x45a140['userId']=_0x22af91;}[_0x447b('0x1e')](_0x1e185d,_0x4200f4){this['_diffRoots'][_0x447b('0x42')](_0x1e185d[_0x447b('0x98')])?this[_0x447b('0xc3')][_0x447b('0x7a')](_0x1e185d[_0x447b('0x98')])[_0x447b('0xc')]=_0x1e185d['isAdd']:(this['_diffRoots'][_0x447b('0xc1')](_0x1e185d[_0x447b('0x98')],G(_0x1e185d[_0x447b('0x98')],!0x0)),this[_0x447b('0x56')]['set'](_0x1e185d[_0x447b('0x98')],{}),_0x4200f4&&this[_0x447b('0xd5')][_0x447b('0xc1')](_0x1e185d[_0x447b('0x98')],G(_0x1e185d[_0x447b('0x98')],!0x0)));const _0x20a2cc=null===_0x1e185d[_0x447b('0x11')]?null:_0x1e185d[_0x447b('0x11')]||this[_0x447b('0x1f')]['plugins'][_0x447b('0x7a')](_0x447b('0xc8'))['me']['id'],_0x19af1c=this[_0x447b('0xc4')][_0x447b('0x7a')](_0x1e185d[_0x447b('0x98')]);_0x19af1c&&_0x19af1c[_0x447b('0x68')]===_0x20a2cc?this['_touchedRoots'][_0x447b('0x3a')](_0x1e185d[_0x447b('0x98')]):this[_0x447b('0xc4')][_0x447b('0xc1')](_0x1e185d[_0x447b('0x98')],{'userId':_0x20a2cc,'isAttached':_0x1e185d[_0x447b('0x6a')]});}[_0x447b('0x54')](_0x5e4823){const _0x5db960=this[_0x447b('0x56')]['get'](_0x5e4823[_0x447b('0x2b')][_0x447b('0x98')]);null===_0x5e4823[_0x447b('0x8d')]?delete _0x5db960[_0x5e4823[_0x447b('0xe')]]:_0x5db960[_0x5e4823[_0x447b('0xe')]]=_0x5e4823['newValue'];}}function q(_0x2cdfcd){const _0x4fbf59=G(_0x2cdfcd[_0x447b('0x98')],_0x2cdfcd['isAttached']());for(const _0x2e66fe of _0x2cdfcd['getChildren']()){const _0x33d86e=_0x2e66fe[_0x447b('0x6e')](!0x0);_0x4fbf59['_appendChild'](_0x33d86e);}return _0x4fbf59;}function G(_0x436410,_0x534f90=!0x0){const _0x4210c1=new _0x182bce();return _0x4210c1[_0x447b('0x98')]=_0x436410,_0x4210c1[_0x447b('0xc')]=_0x534f90,_0x4210c1[_0x447b('0x1b')]=()=>_0x4210c1['_isAttached'],_0x4210c1;}function L(_0x23d5bf,_0x1173cb,_0x280cae){const _0x3b673f='elementEnd'==_0x23d5bf['type']?_0x280cae[_0x447b('0xcf')](_0x23d5bf[_0x447b('0xb4')],'end'):_0x280cae[_0x447b('0xa5')](_0x23d5bf['item']);return _0x280cae[_0x447b('0xd9')](_0x1173cb,_0x3b673f[_0x447b('0x25')],_0x3b673f['stickiness']);}function W(_0x359cab,_0x1053d6,_0x2c2ab9){const _0x47d607=_0x447b('0xb8')==_0x359cab[_0x447b('0xd7')]?_0x2c2ab9['createPositionAt'](_0x359cab['item'],0x0):_0x2c2ab9[_0x447b('0x62')](_0x359cab[_0x447b('0xb4')]);return _0x2c2ab9[_0x447b('0xd9')](_0x1053d6,_0x47d607[_0x447b('0x25')],_0x47d607['stickiness']);}
23
+ const _0x41b5=['repository','_setConversion','getAttribute','_getFromVersion','_handleInsertOperation','_findInsertionIndex','Empty\x20document','item','pluginName','revision-start','parent','insertion','fromVersion','_setAttribute','createPositionAfter','data','getWalker','_saveMetaData','addRevisionData','sort','vid_start','authorsIds','isReady','RevisionTracker','createdAt','clear','getLatestVersion','_handleMoveOperation','fromEntries','loadState','RevisionsRepository','_createCurrentRevision','Initial\x20revision','getAttributes','model','source','_makeModelFromViewString','NEGATIVE_INFINITY','_startingRevisionId','_makeRevision','startsWith','merge','ready','reinsert','afterInit','getMovedRangeStart','useFillerType','roots','insertions','childCount','_handleMergeOperation','history','initialData','delete','creatorId','_replaceEditorDataWithRevisionData','_diffRootsAttributes','for','view','add','authors','isAttached','collaboration.channelId','position','from','text','finally','previousPosition','slice','_reset','_loadRevisionData','buildRevisionData','getTime','_generateTape','end','createPositionFromPath','deletion','RealTimeCollaborationClient','nodes','hasContent','_baseRootsAttributes','document','createRevision','length','createPositionAt','deletions','_continueCurrentRevision','getRootNames','_initialRevisionId','getRevisionRootsAttributes','get','_revisionDataBuilder','clone','key','_transformMarkers','_processRootBeforeSave','requires','PendingActions','resolve','some','children','getRevision','move','root','trim','_lastTo','offset','getRange','getIndex','addRevision','_createFromRanges','_lastFrom','_update','_baseIdsRoots','PENDING_ACTION_REVISION_HISTORY','_insertChild','_removePendingAction','attributes','_removeRevisionMarkers','_getState','$text','_fixPosition','path','_authorId','_applyOperations','update','getChildren','_getViewJson','_handleOperation','splitPosition','revision:','_loadState','_handleRootOperation','changeRootAttribute','editing','Users','_cloneOperation','isEnabled','element','dataDowncast','getCurrentRevisionId','_markChanges','revisionHistory.resumeUnsavedRevision','$graveyard','detachRoot','toVersion','_execute','markerToData','_operations','elementEnd','_clone','toView','adapter','_addPendingAction','keys','start','rootsAttributes','rootName','_isPendingUpdate','offsetSize','map','size','sourcePosition','markers','vid_end','conversion','name','config','split','default','_source','attachChange','getData','stickiness','_removeMetaData','_startingVersion','newValue','getUser','reverse','diffData','insert','type','_fixRange','_idsRoots','_bufferedUpdates','_markers','_bufferUpdate','define','newRange','createRange','marker','remove','createPositionBefore','_makeIdsRoot','push','_baseRoots','baseVersion','_createInitialRevision','_fixOperation','getNodeByPath','vid','_getVidAttributeName','_loadedStateData','getOperation','initial','currentRevision','_handleSplitOperation','getRevisionDocumentData','paragraph','has','revision','string','_calculateMetaData','_touchedRoots','values','init','oldRange','elementStart','plugins','_savedMetaData','set','_copyMarkers','isAdd','marked','_handleRootAttributeOperation','addRoot','saveRevision','creator','_getPreviousFrom','tableCell','updateRevisions','toModel','_getBaseVids','_pendingAction','attributesAfter','_touchedMarkers','_touched','_isAttached','userId','locale','editor','find','parse','_diffRoots','getChild','sendBufferedUpdates','version','setSource','_revisionId','filter','_handleMarkerOperation','graveyardPosition','getTransformedByOperation'];(function(_0x59fd9b,_0x41b502){const _0x33476b=function(_0xe2d2f0){while(--_0xe2d2f0){_0x59fd9b['push'](_0x59fd9b['shift']());}};_0x33476b(++_0x41b502);}(_0x41b5,0x1de));const _0x3347=function(_0x59fd9b,_0x41b502){_0x59fd9b=_0x59fd9b-0x0;let _0x33476b=_0x41b5[_0x59fd9b];return _0x33476b;};import{Users as _0x5b0ea9}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x3a2db4,PendingActions as _0x470ea4}from'ckeditor5/src/core';import{logWarning as _0x54d0e2,uid as _0x285280}from'ckeditor5/src/utils';import{Position as _0x35969a,Range as _0x7f1367,Element as _0x4e33b1,DocumentFragment as _0x56135f,ViewText as _0x3f54b5,ViewElement as _0x1d5ee1,ViewContainerElement as _0x3c8d05,ViewAttributeElement as _0x48fec1,ViewEmptyElement as _0x48de5e,ViewRawElement as _0x2f9d8a,ViewUIElement as _0x16654c,ViewDocumentFragment as _0x34afa3}from'ckeditor5/src/engine';import _0x4acb95 from'./revisionsrepository';import{getTranslation as _0x142d06}from'./utils/common-translations';import{cloneDeep as _0x2f8f84,isEqual as _0x5abe5b}from'lodash-es';const B={'c':_0x3c8d05,'a':_0x48fec1,'e':_0x48de5e,'r':_0x2f9d8a,'u':_0x16654c};export default class l extends _0x3a2db4{static get[_0x3347('0x24')](){return _0x3347('0x33');}static get[_0x3347('0x7c')](){return[_0x5b0ea9,_0x4acb95,_0x470ea4];}constructor(_0x2b02ac){super(_0x2b02ac),this[_0x3347('0xb4')]=null,this['currentRevision']=null,this[_0x3347('0x77')]=new H(this[_0x3347('0xf')]),this[_0x3347('0x74')]=this[_0x3347('0xf')]['config']['get']('collaboration.channelId')||_0x3347('0xe8'),this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x46df09=_0x285280();this[_0x3347('0xc6')]={'history':this[_0x3347('0xf')]['model'][_0x3347('0x6d')][_0x3347('0x4f')],'getLatestVersion':()=>Promise[_0x3347('0x7e')](this['editor'][_0x3347('0x3e')][_0x3347('0x6d')][_0x3347('0x15')]),'getCurrentRevisionId':()=>_0x46df09},this['set'](_0x3347('0x32'),!0x1),this[_0x3347('0xf8')](_0x3347('0xa5'),!0x0),this[_0x3347('0xf8')](_0x3347('0xba'),!0x1),this['editor']['config'][_0x3347('0xd7')](_0x3347('0xaa'),!0x0),this[_0x3347('0xf')]['conversion'][_0x3347('0x55')]('upcast')['dataToMarker']({'view':_0x3347('0xee')});}[_0x3347('0xf3')](){this[_0x3347('0x1c')]=this[_0x3347('0xf')][_0x3347('0xf6')]['get'](_0x3347('0x3a')),this[_0x3347('0x1d')](),this[_0x3347('0xf')][_0x3347('0x2b')]['on'](_0x3347('0x46'),()=>{const _0x49cfab=this[_0x3347('0x1c')][_0x3347('0x81')](0x0),_0xd407bc=_0x49cfab&&null===_0x49cfab['creator']?_0x49cfab:null;if(this[_0x3347('0x72')]=!!_0xd407bc&&this[_0x3347('0xf')][_0x3347('0xc3')][_0x3347('0x76')](_0x3347('0xaa')),this['editor'][_0x3347('0xf6')]['has'](_0x3347('0x69'))){const _0x194353=this[_0x3347('0xc6')][_0x3347('0xa8')](),_0x2dac3f=this[_0x3347('0x1c')][_0x3347('0x81')](_0x194353);if(_0x2dac3f)this[_0x3347('0xcb')]=_0x2dac3f[_0x3347('0x28')],this[_0x3347('0x72')]=!0x1;else{const _0x5e32da=this[_0x3347('0xc6')][_0x3347('0x4f')][_0x3347('0xb0')][_0x3347('0x10')](_0x55c14d=>!_0x55c14d['_isInit']),_0x21a1bd=_0x5e32da?_0x5e32da[_0x3347('0xe0')]:this[_0x3347('0xc6')][_0x3347('0x4f')][_0x3347('0x15')];_0x49cfab?(_0x49cfab[_0x3347('0xad')]<_0x21a1bd&&_0x49cfab[_0x3347('0x8c')]({'toVersion':_0x21a1bd}),this[_0x3347('0x72')]?(this[_0x3347('0xc6')][_0x3347('0xa8')]=()=>_0xd407bc['id'],this['_startingVersion']=_0xd407bc['fromVersion']):(this['_startingVersion']=_0x49cfab[_0x3347('0xad')],this[_0x3347('0x72')]=!0x1)):(this[_0x3347('0xcb')]=_0x21a1bd,this[_0x3347('0x72')]=!0x1);}}else _0xd407bc&&(this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6d')][_0x3347('0x4f')][_0x3347('0x15')]=Math['max'](_0xd407bc['toVersion'],this[_0x3347('0xf')][_0x3347('0x3e')]['document'][_0x3347('0x4f')]['version']),_0xd407bc['fromVersion']===_0xd407bc[_0x3347('0xad')]?(0x0!==_0xd407bc['fromVersion']&&(this['_source'][_0x3347('0xa8')]=()=>_0xd407bc['id']),this[_0x3347('0x72')]=!0x1):this['_continueCurrentRevision']&&(this[_0x3347('0xc6')][_0x3347('0xa8')]=()=>_0xd407bc['id'],this['_startingVersion']=_0xd407bc[_0x3347('0x28')])),this[_0x3347('0x72')]||(this['_startingVersion']=this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6d')][_0x3347('0x15')]);this[_0x3347('0x77')][_0x3347('0xf3')](this[_0x3347('0xc6')][_0x3347('0x4f')]),this[_0x3347('0xe1')](this[_0x3347('0xcb')]),this[_0x3347('0x3b')](this['_startingVersion']),this[_0x3347('0xb4')]&&this[_0x3347('0x14')]();}),this['bind'](_0x3347('0x32'))['to'](this,_0x3347('0xba'),_0x226b55=>!_0x226b55);}async[_0x3347('0x48')](){if(this[_0x3347('0x1c')]['length']>0x0){const _0x3a3302=this[_0x3347('0x1c')][_0x3347('0x81')](0x0),_0x10a4c7=await this[_0x3347('0xeb')](_0x3a3302),_0x474038=await this[_0x3347('0x75')](_0x3a3302);this[_0x3347('0x53')](_0x10a4c7,_0x474038);}}[_0x3347('0x16')](_0x634f70){this[_0x3347('0xc6')]=_0x634f70;}async[_0x3347('0x99')](){const _0x19df9f=await this[_0x3347('0xc6')][_0x3347('0x36')]();if(_0x19df9f>this[_0x3347('0xe9')]['toVersion']){await this[_0x3347('0x9f')]();const _0x430cc3=this[_0x3347('0x63')]({'revision':this[_0x3347('0xe9')],'to':_0x19df9f});_0x430cc3['authors']=_0x430cc3[_0x3347('0x31')][_0x3347('0xbc')](_0x20901b=>this['editor'][_0x3347('0xf6')]['get'](_0x3347('0xa3'))[_0x3347('0xcd')](_0x20901b)),this[_0x3347('0xe9')]['_update'](_0x430cc3);}}async[_0x3347('0x9f')](){this['_continueCurrentRevision']&&!this[_0x3347('0xe6')]&&(await this['_loadRevisionData'](this[_0x3347('0xe9')]),this[_0x3347('0x77')][_0x3347('0x39')](this[_0x3347('0xe9')]),this[_0x3347('0xe6')]={'fromVersion':this['currentRevision'][_0x3347('0x28')],'authors':this[_0x3347('0xe9')]['authors'][_0x3347('0x60')]()});}async[_0x3347('0x1')](_0x19b5a2={},_0x139e0a=null){const _0x29ea9b=[];await this[_0x3347('0x9f')](),this[_0x3347('0x72')]=!0x1,_0x139e0a>this[_0x3347('0xe9')][_0x3347('0xad')]&&(_0x139e0a=null),null===_0x139e0a&&(_0x139e0a=await this['_source']['getLatestVersion']());const _0x3ad37d=this[_0x3347('0x1f')](_0x139e0a),_0x410b25=this[_0x3347('0x63')]({'from':_0x3ad37d,'to':_0x139e0a});if(this[_0x3347('0xe9')][_0x3347('0xad')]<_0x139e0a){const _0x21a6a8=this[_0x3347('0x63')]({'revision':this[_0x3347('0xe9')],'from':_0x139e0a,'to':_0x139e0a});_0x21a6a8[_0x3347('0x58')]=[],_0x21a6a8[_0x3347('0x31')]=[],_0x21a6a8['id']=this[_0x3347('0xe9')]['id'],this[_0x3347('0xe9')]['_update'](_0x21a6a8,!0x0),delete _0x21a6a8[_0x3347('0x58')],_0x29ea9b[_0x3347('0xde')](_0x21a6a8);}_0x19b5a2['creatorId']=this[_0x3347('0xf')][_0x3347('0xf6')]['get']('Users')['me']['id'],_0x19b5a2['name']=_0x19b5a2['name']||null,_0x19b5a2['id']=_0x19b5a2['id']||_0x285280(),_0x19b5a2={..._0x19b5a2,..._0x410b25};const _0x2d244c=this[_0x3347('0x2e')](_0x19b5a2);_0x29ea9b[_0x3347('0xde')](_0x19b5a2);const _0x3dbdac=this[_0x3347('0x1c')][_0x3347('0x88')](_0x2d244c);if(0x0!==_0x3dbdac){const _0x3f5fe7=this[_0x3347('0x1c')][_0x3347('0x81')](_0x3dbdac-0x1);if(_0x3f5fe7['fromVersion']!==_0x139e0a){const _0x294a54=this['_revisionDataBuilder'][_0x3347('0xc8')](_0x139e0a,_0x3f5fe7['toVersion']),_0xedf33f={'id':_0x3f5fe7['id'],'diffData':_0x294a54['diffData'],'authorsIds':_0x294a54[_0x3347('0x31')],'authors':_0x294a54[_0x3347('0x31')][_0x3347('0xbc')](_0x38f7b7=>this['editor'][_0x3347('0xf6')][_0x3347('0x76')](_0x3347('0xa3'))['getUser'](_0x38f7b7)),'fromVersion':_0x139e0a};_0x3f5fe7===this[_0x3347('0xe9')]&&(_0xedf33f[_0x3347('0x34')]=new Date(_0x19b5a2[_0x3347('0x34')][_0x3347('0x64')]()+0xa)),_0x3f5fe7[_0x3347('0x8c')](_0xedf33f,!0x0),delete _0xedf33f[_0x3347('0x58')],_0x29ea9b[_0x3347('0xde')](_0xedf33f);}}if(this[_0x3347('0xb4')]){for(const _0x20e014 of _0x29ea9b)this[_0x3347('0xd6')](_0x20e014['id'],_0x20e014,!0x0);this[_0x3347('0x14')]();}return _0x2d244c;}['addRevisionData'](_0x285fd1){const _0x5381c1=this[_0x3347('0x1c')][_0x3347('0x6e')](_0x285fd1);return this[_0x3347('0xb4')]&&_0x5381c1['on'](_0x3347('0x8c'),(_0x20a1e3,_0x1a1a22,_0x48cf26)=>{_0x48cf26||(this['_bufferUpdate'](_0x1a1a22['id'],_0x1a1a22,!0x0),this[_0x3347('0x14')]());}),this[_0x3347('0x1c')][_0x3347('0x89')](_0x5381c1,this[_0x3347('0x21')](_0x5381c1)),_0x5381c1;}async[_0x3347('0xeb')](_0x424708){await this[_0x3347('0x62')](_0x424708);const _0x5b3c86={};for(const _0x276378 in _0x424708[_0x3347('0xcf')]){if(_0x424708[_0x3347('0xcf')][_0x276378]['attachChange']&&!_0x424708[_0x3347('0xcf')][_0x276378]['attachChange'][_0x3347('0x59')])continue;const _0x40858e=this[_0x3347('0x92')](JSON[_0x3347('0x11')](_0x424708['diffData'][_0x276378][_0x3347('0x4c')])),_0x472a84=this[_0x3347('0xf')][_0x3347('0xa2')][_0x3347('0x56')][_0x3347('0x6d')],_0x5eb94e=new _0x34afa3(_0x472a84,_0x40858e[_0x3347('0xbc')](_0x4acdc2=>J(_0x4acdc2,this[_0x3347('0xf')])));this['editor']['data']['processor'][_0x3347('0x4a')](_0x3347('0xfb')),_0x5b3c86[_0x276378]=this[_0x3347('0xf')]['data']['processor']['toData'](_0x5eb94e),this[_0x3347('0xf')][_0x3347('0x2b')]['processor'][_0x3347('0x4a')](_0x3347('0xc5'));}return _0x5b3c86;}async[_0x3347('0x75')](_0x50b7b4){await this['_loadRevisionData'](_0x50b7b4);const _0x2b9f14={};for(const _0x2073f2 in _0x50b7b4[_0x3347('0xcf')])_0x50b7b4[_0x3347('0xcf')][_0x2073f2][_0x3347('0xc7')]&&!_0x50b7b4[_0x3347('0xcf')][_0x2073f2]['attachChange']['isAttached']||(_0x2b9f14[_0x2073f2]=_0x50b7b4['diffData'][_0x2073f2][_0x3347('0x9')]||{});return _0x2b9f14;}['sendBufferedUpdates'](){if(0x0===this[_0x3347('0xd4')][_0x3347('0xbd')])return;if(this['_isPendingUpdate'])return;let _0x523a83=Array[_0x3347('0x5c')](this[_0x3347('0xd4')][_0x3347('0xf2')]());this[_0x3347('0xd4')][_0x3347('0x35')]();for(let _0x3d8af6=0x0;_0x3d8af6<_0x523a83[_0x3347('0x6f')];_0x3d8af6++){const _0x185bdd=_0x523a83[_0x3d8af6];let _0x1f8024=!0x1;for(const _0x1abd5f of Object[_0x3347('0xb6')](_0x185bdd))void 0x0===_0x185bdd[_0x1abd5f]?delete _0x185bdd[_0x1abd5f]:'id'!==_0x1abd5f&&(_0x1f8024=!0x0);_0x1f8024||(_0x523a83[_0x3d8af6]=null);}if(_0x523a83=_0x523a83['filter'](_0x20a9d2=>null!==_0x20a9d2),!_0x523a83[_0x3347('0x6f')])return;for(let _0x1b29a8=0x0;_0x1b29a8<_0x523a83[_0x3347('0x6f')];_0x1b29a8++){const _0x2914ab=_0x523a83[_0x1b29a8];void 0x0!==_0x2914ab[_0x3347('0x28')]&&void 0x0===_0x2914ab[_0x3347('0xad')]&&(_0x2914ab['toVersion']=this['repository'][_0x3347('0x81')](_0x2914ab['id'])[_0x3347('0xad')]),void 0x0!==_0x2914ab[_0x3347('0xad')]&&void 0x0===_0x2914ab[_0x3347('0x28')]&&(_0x2914ab[_0x3347('0x28')]=this['repository'][_0x3347('0x81')](_0x2914ab['id'])[_0x3347('0x28')]);}const _0x48f330=this['editor'][_0x3347('0xc3')][_0x3347('0x76')](_0x3347('0x5a'));this[_0x3347('0xba')]=!0x0,this[_0x3347('0xb5')](),this[_0x3347('0xb4')][_0x3347('0x5')](_0x523a83,_0x48f330)[_0x3347('0x5e')](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x49220f=>{if(_0x49220f)for(const _0x35de32 of _0x49220f)this['setRevisionData']({'id':_0x35de32['id'],'createdAt':_0x35de32[_0x3347('0x34')]});this[_0x3347('0x90')](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x571d5d,_0xdd00b0){let _0x398d73=this[_0x3347('0xf')][_0x3347('0xc3')][_0x3347('0x76')](_0x3347('0x50')),_0x44b1c3=this[_0x3347('0xf')][_0x3347('0xc3')][_0x3347('0x76')]('rootsAttributes');if(void 0x0===_0x398d73){_0x398d73={};for(const _0x44efb5 of this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6d')]['getRootNames']())_0x398d73[_0x44efb5]='';}if(_0x3347('0xef')==typeof _0x398d73&&(_0x398d73={'main':_0x398d73}),void 0x0===_0x44b1c3){_0x44b1c3={};for(const _0x5f1958 of this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6d')][_0x3347('0x73')]())_0x44b1c3[_0x5f1958]={};}let _0x5664c2=!0x1;const _0x336d47=Object[_0x3347('0xb6')](_0x398d73),_0x5662d4=Object[_0x3347('0xb6')](_0x571d5d);for(const _0x22800c of _0x336d47){if(_0x398d73[_0x22800c]!==_0x571d5d[_0x22800c]&&''!==_0x398d73[_0x22800c][_0x3347('0x84')]()){_0x5664c2=!0x0;break;}if(!_0x5abe5b(_0x44b1c3[_0x22800c],_0xdd00b0[_0x22800c])&&Object[_0x3347('0xb6')](_0x44b1c3[_0x22800c])[_0x3347('0x6f')]>0x0){_0x5664c2=!0x0;break;}}_0x5664c2||(_0x5664c2=_0x5662d4[_0x3347('0x7f')](_0x567536=>!this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6d')]['getRoot'](_0x567536))),_0x5664c2&&_0x54d0e2('editor-initial-data-replaced-with-revision-data',{'editorData':_0x398d73,'editorRootsAttributes':_0x44b1c3,'revisionData':_0x571d5d,'revisionRootsAttributes':_0xdd00b0}),this[_0x3347('0xf')]['config'][_0x3347('0xf8')](_0x3347('0x50'),_0x571d5d),this[_0x3347('0xf')][_0x3347('0xc3')][_0x3347('0xf8')](_0x3347('0xb8'),_0xdd00b0);}['_addPendingAction'](){if(!this[_0x3347('0x8')]){const _0x14fe44=this[_0x3347('0xf')][_0x3347('0xf6')]['get'](_0x3347('0x7d'));this[_0x3347('0x8')]=_0x14fe44[_0x3347('0x57')](_0x142d06(this[_0x3347('0xf')][_0x3347('0xe')],_0x3347('0x8e')));}}[_0x3347('0x90')](){this['_pendingAction']&&(this['editor']['plugins'][_0x3347('0x76')](_0x3347('0x7d'))[_0x3347('0xdb')](this[_0x3347('0x8')]),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3bb3f8){const _0x1c6e98=this[_0x3347('0x1c')]['getRevisions']();_0x1c6e98[_0x3347('0xce')]();let _0x2b9982=0x0;for(;_0x2b9982<_0x1c6e98[_0x3347('0x6f')];){const _0x4d3648=_0x1c6e98[_0x2b9982];if(_0x4d3648===this[_0x3347('0xe9')]){_0x2b9982++;continue;}if(_0x4d3648['id']===this[_0x3347('0x74')])break;const _0xcbfc90=_0x3bb3f8[_0x3347('0xad')]-_0x4d3648['toVersion']||_0x3bb3f8[_0x3347('0x28')]-_0x4d3648[_0x3347('0x28')];if(_0xcbfc90>0x0)break;if(_0xcbfc90<0x0)_0x2b9982++;else{if(!_0x3bb3f8[_0x3347('0x2')]&&_0x4d3648[_0x3347('0x2')])break;if(_0x4d3648[_0x3347('0x2')]||!_0x3bb3f8[_0x3347('0x2')]){if(_0x3bb3f8['createdAt']>_0x4d3648[_0x3347('0x34')])break;_0x2b9982++;}else _0x2b9982++;}}return _0x2b9982;}['setRevisionData'](_0x5c7439){const _0x141c49=this['repository'][_0x3347('0x81')](_0x5c7439['id']);if(_0x5c7439[_0x3347('0x34')]&&(_0x5c7439[_0x3347('0x34')]=new Date(_0x5c7439[_0x3347('0x34')])),_0x5c7439[_0x3347('0x31')]){const _0x18ab63=this[_0x3347('0xf')][_0x3347('0xf6')][_0x3347('0x76')]('Users');_0x5c7439[_0x3347('0x58')]=_0x5c7439[_0x3347('0x31')][_0x3347('0xbc')](_0x5b4a4b=>_0x18ab63[_0x3347('0xcd')](_0x5b4a4b));}_0x141c49[_0x3347('0x8c')](_0x5c7439,!0x0);}[_0x3347('0x63')]({revision:_0xda0455=null,from:_0x2dd736=null,to:_0x3efdbb=null}){_0x2dd736=null!==_0x2dd736?_0x2dd736:_0xda0455[_0x3347('0x28')],_0x3efdbb=null!==_0x3efdbb?_0x3efdbb:_0xda0455[_0x3347('0xad')];const _0x55c0a8=this[_0x3347('0x77')][_0x3347('0xc8')](_0x2dd736,_0x3efdbb),_0x4370aa={'diffData':_0x55c0a8['diffData'],'authorsIds':_0x55c0a8[_0x3347('0x31')],'fromVersion':_0x2dd736,'toVersion':_0x3efdbb};if(!_0xda0455||_0x3efdbb!==_0xda0455['toVersion']){const _0x3c98c5=_0x3efdbb-0x1,_0x19b262=this[_0x3347('0xc6')][_0x3347('0x4f')][_0x3347('0xe7')](_0x3c98c5);_0x4370aa[_0x3347('0x34')]=_0x19b262&&_0x19b262[_0x3347('0x34')]||new Date();}if(this[_0x3347('0xe6')]&&_0x2dd736===this[_0x3347('0xe6')][_0x3347('0x28')])for(const _0x2746a4 of this[_0x3347('0xe6')][_0x3347('0x58')])_0x4370aa[_0x3347('0x31')]['includes'](_0x2746a4['id'])||_0x4370aa[_0x3347('0x31')]['push'](_0x2746a4['id']);return _0x4370aa;}[_0x3347('0x62')](_0x1985cf){if(!_0x1985cf||_0x1985cf[_0x3347('0xcf')])return Promise[_0x3347('0x7e')]();{const _0x392ba0=this['editor'][_0x3347('0xc3')][_0x3347('0x76')](_0x3347('0x5a'));return this[_0x3347('0xb4')]['getRevision']({'channelId':_0x392ba0,'revisionId':_0x1985cf['id']})['then'](_0x8f4737=>{_0x1985cf[_0x3347('0xcf')]=_0x8f4737['diffData'];});}}[_0x3347('0xd6')](_0x16b01e,_0x28c563,_0x10742f){if(this[_0x3347('0xd4')]['has'](_0x16b01e)){const _0xf77f9a=this[_0x3347('0xd4')][_0x3347('0x76')](_0x16b01e);_0x28c563=_0x10742f?{..._0xf77f9a,..._0x28c563}:{..._0x28c563,..._0xf77f9a};}this[_0x3347('0xd4')][_0x3347('0xf8')](_0x16b01e,_0x28c563);}[_0x3347('0x1f')](_0x4e5f7){const _0xc9bc84=this['repository']['getRevisions']();_0xc9bc84[_0x3347('0xce')](),_0xc9bc84['shift']();const _0xaec426=_0xc9bc84['find'](_0x13db15=>_0x13db15[_0x3347('0xad')]<=_0x4e5f7)[_0x3347('0xad')];return _0xaec426<this['_startingVersion']?this[_0x3347('0xcb')]:_0xaec426;}['_createInitialRevision'](_0x579e3e){const _0x1aa6f1=this['repository'][_0x3347('0x81')](this[_0x3347('0x1c')][_0x3347('0x6f')]-0x1);if(_0x1aa6f1)this[_0x3347('0x74')]=_0x1aa6f1['id'];else{const _0x4f1f94=!this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6d')][_0x3347('0x4b')]['find'](_0x20aa56=>this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6b')](_0x20aa56)),_0x4c30fc=this[_0x3347('0xf')][_0x3347('0xf6')]['get'](_0x3347('0xa3'))['me']['id'],_0x4a6977=_0x142d06(this[_0x3347('0xf')]['locale'],_0x4f1f94?_0x3347('0x22'):_0x3347('0x3c'));this[_0x3347('0x43')]({'from':_0x579e3e,'to':_0x579e3e,'id':this[_0x3347('0x74')],'name':_0x4a6977,'creatorId':_0x4c30fc});}}['_createCurrentRevision'](_0x47b5bf){const _0xfcfe6=this[_0x3347('0xc6')][_0x3347('0xa8')]();this[_0x3347('0xe9')]=this[_0x3347('0x1c')][_0x3347('0x81')](_0xfcfe6),this[_0x3347('0xe9')]||(this[_0x3347('0xe9')]=this[_0x3347('0x43')]({'from':_0x47b5bf,'to':_0x47b5bf,'id':_0xfcfe6,'name':'','creatorId':null}));}[_0x3347('0x43')]({name:_0xd34d7c,from:_0x747fe6,to:_0x4d610e,creatorId:_0x4d5e7e,id:_0x245257}){const _0x4956b6=this[_0x3347('0x63')]({'from':_0x747fe6,'to':_0x4d610e});_0x4956b6[_0x3347('0xc2')]=_0xd34d7c,_0x4956b6[_0x3347('0x52')]=_0x4d5e7e,_0x4956b6['id']=_0x245257;const _0x1f4c3a=this['addRevisionData'](_0x4956b6);return this[_0x3347('0xb4')]&&this[_0x3347('0xd6')](_0x4956b6['id'],_0x4956b6,!0x0),_0x1f4c3a;}[_0x3347('0x1d')](){this[_0x3347('0xf')][_0x3347('0xc1')][_0x3347('0x55')](_0x3347('0xa7'))[_0x3347('0xaf')]({'model':'revision'});}[_0x3347('0x92')](_0x284c5d){return(_0x284c5d=_0x284c5d['filter'](_0x49f402=>!_0x49f402[_0x3347('0xc2')]||_0x3347('0x25')!==_0x49f402[_0x3347('0xc2')]&&'revision-end'!==_0x49f402[_0x3347('0xc2')]))['forEach'](_0x3419b5=>{_0x3347('0xef')!=typeof _0x3419b5&&(_0x3419b5[_0x3347('0x80')]=this[_0x3347('0x92')](_0x3419b5[_0x3347('0x80')]),_0x3419b5[_0x3347('0x91')]=_0x3419b5['attributes'][_0x3347('0x18')](_0x53eb7e=>!_0x53eb7e[0x0][_0x3347('0x44')]('data-revision-')));}),_0x284c5d;}}function J(_0x3199dd,_0x1f1caa){const _0x2fefe1=_0x1f1caa[_0x3347('0xa2')]['view']['document'];if(_0x3347('0xef')==typeof _0x3199dd)return new _0x3f54b5(_0x2fefe1,_0x3199dd);{const _0x4a7068=_0x3199dd[_0x3347('0x80')][_0x3347('0xbc')](_0x2a8fbb=>J(_0x2a8fbb,_0x1f1caa));return new(B[_0x3199dd['type']]||_0x1d5ee1)(_0x2fefe1,_0x3199dd[_0x3347('0xc2')],_0x3199dd[_0x3347('0x91')],_0x4a7068);}}class H{constructor(_0x487e92){this['editor']=_0x487e92,this[_0x3347('0xf7')]=new Map(),this[_0x3347('0x8b')]=-0x1,this[_0x3347('0x85')]=-0x1,this[_0x3347('0xd5')]=new Map(),this['_diffRoots']=new Map(),this[_0x3347('0x54')]=new Map(),this[_0x3347('0xdf')]=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this[_0x3347('0x8d')]=new Map(),this[_0x3347('0xb')]=new Map(),this[_0x3347('0xa')]=new Map(),this[_0x3347('0xf1')]=new Map(),this[_0x3347('0x17')]=0x1;}['init'](_0x4e83e2){this[_0x3347('0x3f')]=_0x4e83e2;const _0x17300e=new Map(),_0x3d0dda=new Map(),_0x19ee0b=this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6d')]['roots'][_0x3347('0xbc')](_0x414366=>_0x414366[_0x3347('0xb9')]);for(const _0x3fd19d of _0x19ee0b){const _0x44df88=this[_0x3347('0xf')]['model'][_0x3347('0x6d')]['getRoot'](_0x3fd19d),_0x55bf71=q(_0x44df88);_0x17300e[_0x3347('0xf8')](_0x3fd19d,_0x55bf71),_0x3d0dda[_0x3347('0xf8')](_0x3fd19d,Object[_0x3347('0x38')](_0x44df88[_0x3347('0x3d')]()));}const _0x5ca9ab=Array[_0x3347('0x5c')](this[_0x3347('0xf')]['model'][_0x3347('0xbf')])['map'](_0x2b4f51=>[_0x2b4f51[_0x3347('0xc2')],_0x2b4f51[_0x3347('0x87')]()]),_0x598c1e=this[_0x3347('0x3f')][_0x3347('0x15')];this[_0x3347('0x2d')](_0x598c1e,_0x17300e,_0x5ca9ab,_0x3d0dda),this['_startingRevisionId']=this[_0x3347('0x17')];const _0x486621=new Map(),_0x1ae5a6=new Map();for(const _0x3f0e67 of _0x19ee0b){const _0x442ee5=G(_0x3f0e67);_0x486621[_0x3347('0xf8')](_0x3f0e67,_0x442ee5),_0x1ae5a6['set'](_0x3f0e67,{});}this[_0x3347('0x2d')](Number['NEGATIVE_INFINITY'],_0x486621,[],_0x1ae5a6);}[_0x3347('0xc8')](_0x4890c4,_0x32fe85){if(this[_0x3347('0x8b')]===_0x4890c4&&this[_0x3347('0x85')]<=_0x32fe85)this[_0x3347('0xf7')][_0x3347('0xbd')]>0x1&&this[_0x3347('0xca')](this['_lastTo']),this[_0x3347('0x98')](this[_0x3347('0x85')],_0x32fe85,!0x0);else{if(!this[_0x3347('0xf7')][_0x3347('0xed')](_0x4890c4)){const _0xfb270b=this[_0x3347('0x3')](_0x4890c4);this[_0x3347('0xf0')](_0xfb270b,_0x4890c4,!0x1);}this[_0x3347('0xf0')](_0x4890c4,_0x32fe85,!0x0);}return this['_lastFrom']=_0x4890c4,this[_0x3347('0x85')]=_0x32fe85,this[_0x3347('0x93')]();}[_0x3347('0x39')](_0x1e3816){this['_reset'](),this[_0x3347('0x8b')]=_0x1e3816[_0x3347('0x28')],this[_0x3347('0x85')]=_0x1e3816[_0x3347('0xad')];for(const _0x110448 in _0x1e3816[_0x3347('0xcf')]){const _0x4678ba=_0x1e3816[_0x3347('0xcf')][_0x110448][_0x3347('0xc7')],_0x2d124e=_0x2f8f84(_0x1e3816['diffData'][_0x110448]['attributesBefore'])||{},_0x2eafdc=this[_0x3347('0x40')](_0x1e3816['diffData'][_0x110448][_0x3347('0x71')]);_0x2eafdc[_0x3347('0xb9')]=_0x110448,_0x2eafdc[_0x3347('0xc')]=!_0x4678ba||!_0x4678ba[_0x3347('0x59')],_0x2eafdc[_0x3347('0x59')]=()=>_0x2eafdc[_0x3347('0xc')],this[_0x3347('0xdf')][_0x3347('0xf8')](_0x110448,_0x2eafdc),this[_0x3347('0x6c')][_0x3347('0xf8')](_0x110448,_0x2d124e),_0x4678ba&&this[_0x3347('0xf1')]['set'](_0x110448,_0x4678ba);const _0x4e6c7c=this[_0x3347('0xdd')](_0x2eafdc);this[_0x3347('0x8d')][_0x3347('0xf8')](_0x110448,_0x4e6c7c);for(const [_0x1fefa7,_0x4f1897]of _0x2eafdc['markers']){if(!_0x1fefa7[_0x3347('0x44')]('revision:'))continue;const _0x45f940=_0x1fefa7[_0x3347('0xc4')](':')[0x2];for(const _0x119d33 of _0x4f1897[_0x3347('0x2c')]({'singleCharacters':!0x0})){const _0x3a32a8=this[_0x3347('0xe5')](_0x119d33),_0x224917=_0x3347('0xb1')==_0x119d33['type']?_0x119d33[_0x3347('0x5f')][_0x3347('0x96')][_0x3347('0x60')](0x0,-0x1):_0x119d33[_0x3347('0x5f')][_0x3347('0x96')],_0x3306ec=_0x4e6c7c['getNodeByPath'](_0x224917)[_0x3347('0x1e')](_0x3a32a8);this[_0x3347('0xb')]['set'](_0x3306ec,{'userId':_0x45f940});}}}this['_startingRevisionId']=this[_0x3347('0x17')];const _0xe317e8=[...Array(this['_revisionId'])[_0x3347('0xb6')]()][_0x3347('0x60')](0x1)[_0x3347('0x18')](_0x5339a7=>!this[_0x3347('0xb')]['has'](_0x5339a7));let _0x5762dd=0x0;const _0x543af3=new Map();for(const _0x55b9b7 in _0x1e3816[_0x3347('0xcf')]){const _0x269ffb=_0x1e3816[_0x3347('0xcf')][_0x55b9b7][_0x3347('0xc7')],_0x40eeca=_0x2f8f84(_0x1e3816[_0x3347('0xcf')][_0x55b9b7][_0x3347('0x9')])||{},_0x472a42=this['_makeModelFromViewString'](_0x1e3816['diffData'][_0x55b9b7][_0x3347('0x4c')]);_0x472a42[_0x3347('0xb9')]=_0x55b9b7,_0x472a42['_isAttached']=!_0x269ffb||_0x269ffb[_0x3347('0x59')],_0x472a42[_0x3347('0x59')]=()=>_0x472a42[_0x3347('0xc')],this[_0x3347('0x12')]['set'](_0x55b9b7,_0x472a42),this[_0x3347('0x54')][_0x3347('0xf8')](_0x55b9b7,_0x40eeca);const _0x4c2bb5=this['_makeIdsRoot'](_0x472a42,Number[_0x3347('0x41')]);this[_0x3347('0xd3')]['set'](_0x55b9b7,_0x4c2bb5),_0x543af3[_0x3347('0xf8')](_0x55b9b7,_0x472a42[_0x3347('0x59')]()?_0x40eeca:{});for(const [_0x354ec4,_0x4a9c2f]of _0x472a42[_0x3347('0xbf')]){if(!_0x354ec4[_0x3347('0x44')]('revision:'))continue;const _0x5b9369=_0x354ec4[_0x3347('0xc4')](':')[0x2];for(const _0x5f2bdc of _0x4a9c2f[_0x3347('0x2c')]({'singleCharacters':!0x0})){const _0x546a15=this[_0x3347('0xe5')](_0x5f2bdc),_0x16cae9=this['_revisionId']++,_0xca0385=_0x3347('0xb1')==_0x5f2bdc['type']?_0x5f2bdc['previousPosition']['path'][_0x3347('0x60')](0x0,-0x1):_0x5f2bdc[_0x3347('0x5f')][_0x3347('0x96')];_0x4c2bb5[_0x3347('0xe3')](_0xca0385)[_0x3347('0x29')](_0x546a15,_0x16cae9),this[_0x3347('0xb')]['set'](_0x16cae9,{'userId':_0x5b9369});}}for(const _0x3e3af1 of this[_0x3347('0xf')]['model']['createRangeIn'](_0x472a42)[_0x3347('0x2c')]({'singleCharacters':!0x0})){const _0x2538e7=this[_0x3347('0xe5')](_0x3e3af1),_0xbc63a8='elementEnd'==_0x3e3af1[_0x3347('0xd1')]?_0x3e3af1[_0x3347('0x5f')][_0x3347('0x96')][_0x3347('0x60')](0x0,-0x1):_0x3e3af1['previousPosition'][_0x3347('0x96')],_0x155895=_0x4c2bb5[_0x3347('0xe3')](_0xbc63a8);_0x155895[_0x3347('0x1e')](_0x2538e7)>0x0||_0x155895[_0x3347('0x29')](_0x2538e7,_0xe317e8[_0x5762dd++]);}for(const [_0x495a3b,_0x364227]of _0x472a42[_0x3347('0xbf')])_0x495a3b[_0x3347('0x44')](_0x3347('0x9e'))||this[_0x3347('0xd5')][_0x3347('0xf8')](_0x495a3b,_0x364227);}const _0x34b4e1=G(_0x3347('0xab'));this[_0x3347('0xdf')][_0x3347('0xf8')](_0x3347('0xab'),_0x34b4e1),this[_0x3347('0x8d')][_0x3347('0xf8')](_0x3347('0xab'),this[_0x3347('0xdd')](_0x34b4e1,0x1));const _0x564a75=G(_0x3347('0xab'));this[_0x3347('0x12')][_0x3347('0xf8')](_0x3347('0xab'),_0x564a75),this[_0x3347('0xd3')][_0x3347('0xf8')](_0x3347('0xab'),this['_makeIdsRoot'](_0x564a75,0x1));const _0x57540d=Array[_0x3347('0x5c')](this[_0x3347('0x12')])['map'](([_0x37dab4,_0x8c86f4])=>[_0x37dab4,q(_0x8c86f4)]);this[_0x3347('0x2d')](this[_0x3347('0x85')],_0x57540d,this[_0x3347('0xd5')],_0x543af3);}[_0x3347('0x40')](_0x4442e1){const _0x4509e9=JSON['parse'](_0x4442e1),_0x311c76=this['editor'][_0x3347('0xa2')][_0x3347('0x56')]['document'],_0x248364=new _0x34afa3(_0x311c76,_0x4509e9[_0x3347('0xbc')](_0x475aa6=>J(_0x475aa6,this[_0x3347('0xf')])));return this[_0x3347('0xf')][_0x3347('0x2b')][_0x3347('0x6')](_0x248364);}[_0x3347('0x2d')](_0x14c8cb,_0x4ca190,_0x5b5234,_0x1624eb){const _0x49329e=new Map(_0x4ca190),_0x543af0=new Map(_0x2f8f84(_0x1624eb)),_0x5ecb06=new Map();for(const [_0x59217c,_0x2d7a9e]of _0x5b5234)_0x5ecb06[_0x3347('0xf8')](_0x59217c,{'start':_0x2d7a9e[_0x3347('0xb7')]['clone'](),'end':_0x2d7a9e[_0x3347('0x66')][_0x3347('0x78')](),'rootName':_0x2d7a9e[_0x3347('0x83')][_0x3347('0xb9')]});this['_savedMetaData'][_0x3347('0xf8')](_0x14c8cb,{'roots':_0x49329e,'markers':_0x5ecb06,'rootsAttributes':_0x543af0});}[_0x3347('0xca')](_0x1abb56){this[_0x3347('0xf7')][_0x3347('0x51')](_0x1abb56);}['reInit'](){this[_0x3347('0x61')](),this[_0x3347('0x8b')]=-0x1,this['_lastTo']=-0x1,this['_savedMetaData'][_0x3347('0x35')](),this[_0x3347('0xf3')](this[_0x3347('0x3f')]);}[_0x3347('0x61')](){this[_0x3347('0xb')][_0x3347('0x35')](),this[_0x3347('0xa')][_0x3347('0x35')](),this[_0x3347('0xf1')]['clear'](),this[_0x3347('0x12')][_0x3347('0x35')](),this[_0x3347('0x54')][_0x3347('0x35')](),this[_0x3347('0xdf')][_0x3347('0x35')](),this[_0x3347('0x6c')]['clear'](),this[_0x3347('0xd3')][_0x3347('0x35')](),this['_baseIdsRoots']['clear'](),this[_0x3347('0xd5')][_0x3347('0x35')](),this[_0x3347('0x17')]=0x1,this[_0x3347('0x42')]=this[_0x3347('0x17')];}[_0x3347('0xdd')](_0x275d88,_0x568868=null){let _0x44636d=null;_0x275d88['is']('documentFragment')||(_0x44636d=new _0x4e33b1(_0x275d88[_0x3347('0xc2')],{'vid_start':null===_0x568868?this[_0x3347('0x17')]++:_0x568868++}));const _0x12004d=[];for(const _0x4fc1bb of _0x275d88[_0x3347('0x9a')]())if(_0x4fc1bb['is'](_0x3347('0xa6'))){_0x12004d['push'](this[_0x3347('0xdd')](_0x4fc1bb,_0x568868));const _0x538b18=_0x12004d[_0x12004d[_0x3347('0x6f')]-0x1];null!==_0x568868&&(_0x568868=_0x538b18['is'](_0x3347('0xa6'),'$text')?_0x538b18[_0x3347('0x1e')](_0x3347('0xe4'))+0x1:_0x538b18['getAttribute'](_0x3347('0xc0'))+0x1);}else for(let _0x5ef6dc=0x0;_0x5ef6dc<_0x4fc1bb['offsetSize'];_0x5ef6dc++)_0x12004d['push'](new _0x4e33b1(_0x3347('0x94'),{'vid':null===_0x568868?this[_0x3347('0x17')]++:_0x568868++}));if(_0x275d88['is']('documentFragment')){const _0x19fcd0=G(_0x275d88[_0x3347('0xb9')]);return _0x19fcd0[_0x3347('0x8f')](0x0,_0x12004d),_0x19fcd0;}return _0x44636d[_0x3347('0x29')]('vid_end',null===_0x568868?this['_revisionId']++:_0x568868++),_0x44636d[_0x3347('0x8f')](0x0,_0x12004d),_0x44636d;}['_calculateMetaData'](_0x37b350,_0x48cd95,_0x382dfc){this[_0x3347('0x61')]();const {roots:_0x4f0ff2,markers:_0x197a37,rootsAttributes:_0x255dc0}=this[_0x3347('0xf7')][_0x3347('0x76')](_0x37b350);this[_0x3347('0xdf')]=new Map(_0x4f0ff2),this[_0x3347('0x6c')]=new Map(_0x2f8f84(_0x255dc0));for(const [_0x2c13ae,_0x2e263e]of this[_0x3347('0xdf')])if(_0x3347('0xab')!==_0x2c13ae&&(this[_0x3347('0x12')][_0x3347('0xf8')](_0x2c13ae,q(_0x2e263e)),this['_diffRootsAttributes']=new Map(_0x2f8f84(_0x255dc0)),_0x382dfc)){const _0x30c737=this[_0x3347('0x17')];this[_0x3347('0xd3')]['set'](_0x2c13ae,this[_0x3347('0xdd')](_0x2e263e)),this[_0x3347('0x8d')][_0x3347('0xf8')](_0x2c13ae,this['_makeIdsRoot'](_0x2e263e,_0x30c737));}this['_startingRevisionId']=this[_0x3347('0x17')],this[_0x3347('0x12')]['set'](_0x3347('0xab'),q(this[_0x3347('0xdf')][_0x3347('0x76')](_0x3347('0xab')))),_0x382dfc&&this['_idsRoots'][_0x3347('0xf8')](_0x3347('0xab'),this[_0x3347('0xdd')](this['_baseRoots']['get'](_0x3347('0xab'))));for(const [_0x5d2665,_0x1bf35e]of _0x197a37){const _0x14d12c=this[_0x3347('0xdf')]['get'](_0x1bf35e['rootName']),_0xc1a650=this['_diffRoots'][_0x3347('0x76')](_0x1bf35e['rootName']),_0x2d64c9=new _0x7f1367(this[_0x3347('0x95')](_0x1bf35e['start'],_0x14d12c),this[_0x3347('0x95')](_0x1bf35e[_0x3347('0x66')],_0x14d12c)),_0x2f1448=this['_fixRange'](_0x2d64c9,_0xc1a650);_0x14d12c[_0x3347('0xbf')][_0x3347('0xf8')](_0x5d2665,_0x2d64c9),this[_0x3347('0xd5')][_0x3347('0xf8')](_0x5d2665,_0x2f1448);}this[_0x3347('0x98')](_0x37b350,_0x48cd95,_0x382dfc);}[_0x3347('0x98')](_0x23a1c2,_0x2a278f,_0x4c4e32){for(const _0x5bf5a1 of this[_0x3347('0x3f')]['getOperations'](_0x23a1c2,_0x2a278f))this[_0x3347('0x9c')](_0x5bf5a1,_0x4c4e32);for(const _0x1681f3 of this[_0x3347('0x12')][_0x3347('0xf2')]())_0x1681f3[_0x3347('0xbf')][_0x3347('0x35')]();for(const [_0xb8f7db,_0x38dad7]of this['_markers']){this[_0x3347('0x12')][_0x3347('0x76')](_0x38dad7[_0x3347('0x83')][_0x3347('0xb9')])[_0x3347('0xbf')][_0x3347('0xf8')](_0xb8f7db,_0x38dad7[_0x3347('0x78')]());}const _0x375425=new Map(),_0x4bf651=new Map();for(const [_0x4bf252,_0x35625a]of this[_0x3347('0x12')])_0x375425[_0x3347('0xf8')](_0x4bf252,q(_0x35625a)),_0x4bf651['set'](_0x4bf252,this['_diffRootsAttributes'][_0x3347('0x76')](_0x4bf252));this['_saveMetaData'](_0x2a278f,_0x375425,this[_0x3347('0xd5')],_0x4bf651);}['_getPreviousFrom'](_0xe8c188){const _0x2314fd=Array[_0x3347('0x5c')](this[_0x3347('0xf7')][_0x3347('0xb6')]());_0x2314fd[_0x3347('0x2f')]((_0x36932e,_0x3b14ca)=>_0x36932e-_0x3b14ca),_0x2314fd[_0x3347('0xce')]();for(const _0x568e2a of _0x2314fd)if(_0x568e2a<_0xe8c188)return _0x568e2a;return Number[_0x3347('0x41')];}['_copyMarkers'](_0x1ddeb6,_0x34976d){const _0x53ded0=Array[_0x3347('0x5c')](_0x34976d['markers'])[_0x3347('0xbc')](([_0x19b7e0,_0x207c2d])=>[_0x19b7e0,this[_0x3347('0xd2')](_0x207c2d,_0x1ddeb6)]);_0x1ddeb6[_0x3347('0xbf')]=new Map(_0x53ded0);}[_0x3347('0x7a')](_0x559b38){for(const _0x72e05b of this['_markers']['values']()){const _0x22a6fb=_0x72e05b[_0x3347('0x1b')](_0x559b38),_0x1d7514=_0x7f1367[_0x3347('0x8a')](_0x22a6fb);_0x72e05b[_0x3347('0xb7')]=_0x1d7514['start'],_0x72e05b[_0x3347('0x66')]=_0x1d7514['end'];}}[_0x3347('0x9c')](_0x3f4aca,_0x35f4a6){if(_0x3347('0x0')==_0x3f4aca[_0x3347('0xd1')]||_0x3347('0xac')==_0x3f4aca[_0x3347('0xd1')])return void this['_handleRootOperation'](_0x3f4aca,_0x35f4a6);if('insert'==_0x3f4aca[_0x3347('0xd1')]){const _0x21bde1=_0x3f4aca['position'][_0x3347('0x83')]['rootName'];this[_0x3347('0x12')][_0x3347('0xed')](_0x21bde1)||(this[_0x3347('0x12')][_0x3347('0xf8')](_0x21bde1,G(_0x21bde1,!0x0)),this[_0x3347('0x54')][_0x3347('0xf8')](_0x21bde1,{}),_0x35f4a6&&this[_0x3347('0xd3')]['set'](_0x21bde1,G(_0x21bde1,!0x0)));}else{if('addRootAttribute'==_0x3f4aca[_0x3347('0xd1')]||'removeRootAttribute'==_0x3f4aca['type']||_0x3347('0xa1')==_0x3f4aca[_0x3347('0xd1')])return void this[_0x3347('0xfc')](_0x3f4aca);}const _0x4eff92=this['_cloneOperation'](_0x3f4aca,this['_diffRoots']);if(_0x3347('0xda')!==_0x3f4aca[_0x3347('0xd1')]&&(_0x4eff92[_0x3347('0xae')](),this[_0x3347('0x7a')](_0x4eff92)),_0x35f4a6)switch(_0x4eff92[_0x3347('0xd1')]){case _0x3347('0xd0'):this[_0x3347('0x20')](_0x3f4aca);break;case _0x3347('0x82'):case _0x3347('0xdb'):case _0x3347('0x47'):this['_handleMoveOperation'](_0x3f4aca);break;case _0x3347('0x45'):this[_0x3347('0x4e')](_0x3f4aca);break;case _0x3347('0xc4'):this[_0x3347('0xea')](_0x3f4aca);break;case _0x3347('0xda'):this[_0x3347('0x19')](_0x3f4aca);}}[_0x3347('0xa4')](_0x286296,_0xc7709e){const _0x29f1e0=_0x286296[_0x3347('0x78')]();return _0x29f1e0[_0x3347('0x97')]=_0x286296[_0x3347('0x97')],this[_0x3347('0xe2')](_0x29f1e0,_0xc7709e),_0x29f1e0;}[_0x3347('0x7')](_0x252e6c){return _0x252e6c[_0x3347('0xbc')](_0x441590=>{const _0x7dfc8e=this[_0x3347('0xe5')](_0x441590);return Number(_0x441590[_0x3347('0x23')][_0x3347('0x1e')](_0x7dfc8e));});}[_0x3347('0x65')](_0x206a4a,_0x39b988){if(_0x206a4a['is'](_0x3347('0xa6'),'$text'))_0x39b988['push']({'item':_0x206a4a,'type':_0x3347('0x5d')});else{_0x206a4a['is'](_0x3347('0xa6'))&&_0x39b988[_0x3347('0xde')]({'item':_0x206a4a,'type':_0x3347('0xf5')});for(const _0x2c39e9 of _0x206a4a[_0x3347('0x9a')]())this[_0x3347('0x65')](_0x2c39e9,_0x39b988);_0x206a4a['is'](_0x3347('0xa6'))&&_0x39b988[_0x3347('0xde')]({'item':_0x206a4a,'type':_0x3347('0xb1')});}return _0x39b988;}[_0x3347('0x93')](){const _0x522e93=new Map(this[_0x3347('0xb')]),_0x3c57fe=new Map(_0x522e93),_0x46c5f2=new Map(),_0x47a4c7={'insertions':{},'deletions':{}},_0x19cf2d={'insertions':{},'deletions':{}},_0x2be429=new Map(),_0x2a96a9=new Set([...this['_baseRoots'][_0x3347('0xb6')](),...this[_0x3347('0x12')][_0x3347('0xb6')]()]);_0x2a96a9[_0x3347('0x51')](_0x3347('0xab'));for(const _0x1bc4e6 of _0x2a96a9){const _0x5ad079=this[_0x3347('0x12')][_0x3347('0x76')](_0x1bc4e6)||G(_0x1bc4e6,!0x1),_0x363bca=this[_0x3347('0xdf')][_0x3347('0x76')](_0x1bc4e6)||G(_0x1bc4e6,!0x1);_0x5ad079[_0x3347('0x59')]()||_0x363bca[_0x3347('0x59')]()?(_0x47a4c7[_0x3347('0x4c')][_0x1bc4e6]=q(_0x5ad079),_0x47a4c7['deletions'][_0x1bc4e6]=q(_0x363bca),this[_0x3347('0xf9')](_0x47a4c7[_0x3347('0x71')][_0x1bc4e6],_0x363bca),this['_copyMarkers'](_0x47a4c7[_0x3347('0x4c')][_0x1bc4e6],_0x5ad079),_0x19cf2d[_0x3347('0x4c')][_0x1bc4e6]=this[_0x3347('0x65')](this['_idsRoots']['get'](_0x1bc4e6),[]),_0x19cf2d['deletions'][_0x1bc4e6]=this[_0x3347('0x65')](this['_baseIdsRoots']['get'](_0x1bc4e6)||G(_0x1bc4e6,!0x1),[])):_0x2a96a9['delete'](_0x1bc4e6);}for(const _0x1c4004 of _0x2a96a9){const _0x445c9b=_0x19cf2d[_0x3347('0x4c')][_0x1c4004];for(const _0xc2a224 of _0x445c9b){const _0x24a008=this[_0x3347('0xe5')](_0xc2a224),_0x34763e=_0xc2a224[_0x3347('0x23')][_0x3347('0x1e')](_0x24a008);_0x3c57fe[_0x3347('0x51')](_0x34763e),_0x34763e>=this[_0x3347('0x42')]&&_0x46c5f2[_0x3347('0xf8')](_0x34763e,_0x522e93['get'](_0x34763e));}}for(const _0x1a5b02 of _0x2a96a9){const _0x3d512e=_0x19cf2d[_0x3347('0x4c')][_0x1a5b02],_0x29c35a=this['_getBaseVids'](_0x19cf2d[_0x3347('0x71')][_0x1a5b02]);let _0xc03dad=0x0;for(const _0x53617f of _0x3d512e){const _0x153c63=this[_0x3347('0xe5')](_0x53617f),_0x184d3b=_0x53617f['item'][_0x3347('0x1e')](_0x153c63);if(!_0x46c5f2[_0x3347('0xed')](_0x184d3b)&&!_0x2be429[_0x3347('0xed')](_0x184d3b)){if(_0x3c57fe['has'](_0x184d3b))_0xc03dad++;else{if(_0x184d3b!=_0x29c35a[_0xc03dad]){const _0x33b686=_0x522e93['get'](_0x184d3b)||_0x522e93[_0x3347('0x76')](_0x29c35a[_0xc03dad]);for(;_0x184d3b!=_0x29c35a[_0xc03dad];)_0x3c57fe[_0x3347('0xed')](_0x29c35a[_0xc03dad])||(_0x2be429['set'](_0x29c35a[_0xc03dad],_0x33b686),_0x522e93[_0x3347('0xf8')](_0x29c35a[_0xc03dad],_0x33b686)),_0xc03dad++;}_0xc03dad++;}}}}for(const _0x22edb6 of _0x2a96a9){const _0x19f784=_0x19cf2d['insertions'][_0x22edb6];for(const _0x34481b of _0x19f784){const _0x1a5377=this[_0x3347('0xe5')](_0x34481b),_0x2f186c=_0x34481b[_0x3347('0x23')][_0x3347('0x1e')](_0x1a5377);if(_0x2be429[_0x3347('0xed')](_0x2f186c)){const _0x402bee=_0x2be429[_0x3347('0x76')](_0x2f186c);_0x3c57fe[_0x3347('0xed')](_0x2f186c)||_0x3c57fe[_0x3347('0xf8')](_0x2f186c,{..._0x402bee}),_0x46c5f2['set'](_0x2f186c,{..._0x402bee});}}}for(const _0x248488 of _0x3c57fe[_0x3347('0xb6')]())_0x248488>=this[_0x3347('0x42')]&&_0x3c57fe[_0x3347('0x51')](_0x248488);const _0x243297=new Map();for(const _0xcd96b4 of _0x2a96a9){let _0x55943e=_0x19cf2d['insertions'][_0xcd96b4];for(const _0x3c86a2 of _0x55943e)if(_0x3c86a2[_0x3347('0x23')]['is']('element',_0x3347('0x4'))){const _0x33e0a9=this['_getVidAttributeName'](_0x3c86a2),_0x3215a8=_0x3c86a2['item'][_0x3347('0x1e')](_0x33e0a9);if(_0x46c5f2['has'](_0x3215a8)){const _0x5cc3a2=_0x3c86a2[_0x3347('0x23')]['parent']['parent'][_0x3347('0x1e')](_0x3347('0x30')),_0x57244e=_0x243297['get'](_0x5cc3a2)||new Set();_0x57244e[_0x3347('0x57')](_0x46c5f2[_0x3347('0x76')](_0x3215a8)[_0x3347('0xd')]),_0x243297[_0x3347('0xf8')](_0x5cc3a2,_0x57244e);}}_0x55943e=_0x19cf2d[_0x3347('0x71')][_0xcd96b4];for(const _0xc2d0c1 of _0x55943e)if(_0xc2d0c1[_0x3347('0x23')]['is'](_0x3347('0xa6'),_0x3347('0x4'))){const _0x29bae7=this['_getVidAttributeName'](_0xc2d0c1),_0x3c7fae=_0xc2d0c1[_0x3347('0x23')][_0x3347('0x1e')](_0x29bae7);if(_0x3c57fe[_0x3347('0xed')](_0x3c7fae)){const _0xe96a19=_0xc2d0c1[_0x3347('0x23')]['parent'][_0x3347('0x26')]['getAttribute'](_0x3347('0x30')),_0x4d1642=_0x243297[_0x3347('0x76')](_0xe96a19)||new Set();_0x4d1642['add'](_0x3c57fe[_0x3347('0x76')](_0x3c7fae)['userId']),_0x243297['set'](_0xe96a19,_0x4d1642);}}for(const _0x5b332e of _0x243297[_0x3347('0xb6')]())(_0x46c5f2[_0x3347('0xed')](_0x5b332e)||_0x3c57fe['has'](_0x5b332e))&&_0x243297[_0x3347('0x51')](_0x5b332e);}for(const _0x400f09 of _0x2a96a9){const _0x38f93=_0x19cf2d[_0x3347('0x4c')][_0x400f09];let _0x4c466f=null,_0x57e552=null;for(const _0x2fd0b6 of _0x38f93){const _0x2a7547=this['_getVidAttributeName'](_0x2fd0b6),_0x297988=_0x2fd0b6[_0x3347('0x23')][_0x3347('0x1e')](_0x2a7547),_0x37429d=_0x243297[_0x3347('0x76')](_0x297988);_0x37429d&&'elementStart'==_0x2fd0b6[_0x3347('0xd1')]&&(_0x4c466f=Array['from'](_0x37429d)[0x0],_0x57e552=_0x2fd0b6[_0x3347('0x23')][_0x3347('0x1e')](_0x3347('0xc0'))),_0x4c466f&&(_0x3c57fe[_0x3347('0xf8')](_0x297988,{'userId':_0x4c466f}),_0x46c5f2[_0x3347('0xf8')](_0x297988,{'userId':_0x4c466f})),_0x297988==_0x57e552&&(_0x4c466f=null,_0x57e552=null);}}const _0x33ff4f={},_0x948e06=new Set();for(const _0x3bebe7 of _0x2a96a9){const _0x32f18e=_0x47a4c7[_0x3347('0x71')][_0x3bebe7],_0xc4aa31=_0x47a4c7[_0x3347('0x4c')][_0x3bebe7];for(const {userId:_0x4e1a00}of this[_0x3347('0xa')][_0x3347('0xf2')]())null!==_0x4e1a00&&_0x948e06[_0x3347('0x57')](_0x4e1a00);for(const {userId:_0xc3c457}of this[_0x3347('0xf1')][_0x3347('0xf2')]())null!==_0xc3c457&&_0x948e06[_0x3347('0x57')](_0xc3c457);this['_markChanges'](_0xc4aa31,_0x19cf2d[_0x3347('0x4c')][_0x3bebe7],_0x46c5f2,_0x3347('0x27'),_0x948e06),this[_0x3347('0xa9')](_0x32f18e,_0x19cf2d[_0x3347('0x71')][_0x3bebe7],_0x3c57fe,_0x3347('0x68'),_0x948e06),_0x33ff4f[_0x3bebe7]={'insertions':this['_prepareViewToSave'](_0xc4aa31),'deletions':this['_prepareViewToSave'](_0x32f18e),'attachChange':this[_0x3347('0xf1')][_0x3347('0x76')](_0x3bebe7)||null,'attributesBefore':_0x2f8f84(this['_baseRootsAttributes']['get'](_0x3bebe7))||{},'attributesAfter':_0x2f8f84(this[_0x3347('0x54')][_0x3347('0x76')](_0x3bebe7))};}return{'diffData':_0x33ff4f,'authorsIds':Array[_0x3347('0x5c')](_0x948e06)};}[_0x3347('0x7b')](_0x3db14b){for(const [,_0x494891]of _0x3db14b['markers']){const _0xa059df=_0x494891[_0x3347('0xb7')]['getAncestors']()[_0x3347('0x18')](_0x5da19d=>_0x3347('0x4')==_0x5da19d[_0x3347('0xc2')]);for(const _0x1ce72d of _0xa059df)0x1==_0x1ce72d[_0x3347('0x4d')]&&_0x1ce72d[_0x3347('0x13')](0x0)['is']('element',_0x3347('0xec'))&&_0x1ce72d['getChild'](0x0)[_0x3347('0x29')]('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4ba180){this[_0x3347('0x7b')](_0x4ba180);const _0x2d6d67=this[_0x3347('0xf')]['data'][_0x3347('0xb3')](_0x4ba180,{}),_0x46df01=Array[_0x3347('0x5c')](_0x2d6d67[_0x3347('0x9a')]())[_0x3347('0xbc')](_0x569a58=>this[_0x3347('0x9b')](_0x569a58));return JSON['stringify'](_0x46df01);}['_getViewJson'](_0x57731b){if(_0x57731b['is'](_0x3347('0x94')))return _0x57731b[_0x3347('0x2b')];{const _0x5b4a19=_0x57731b;return{'type':Object[_0x3347('0xb6')](B)[_0x3347('0x10')](_0x3bb3d3=>_0x57731b instanceof B[_0x3bb3d3]),'name':_0x5b4a19[_0x3347('0xc2')],'attributes':Array[_0x3347('0x5c')](_0x5b4a19['getAttributes']()),'children':Array[_0x3347('0x5c')](_0x5b4a19[_0x3347('0x9a')]())[_0x3347('0xbc')](_0x54e981=>this[_0x3347('0x9b')](_0x54e981))};}}['_markChanges'](_0x103392,_0x545f4f,_0x17cee3,_0x3d71ed,_0x3d7967){let _0x25d61c=null,_0x2ac700=null,_0x1b1190=0x0;const _0x2291fb=this[_0x3347('0xf')][_0x3347('0x3e')];for(let _0x185f2e=0x0;_0x185f2e<_0x545f4f['length'];_0x185f2e++){const _0x23a351=this[_0x3347('0xe5')](_0x545f4f[_0x185f2e]),_0x5653e5=_0x545f4f[_0x185f2e]['item'][_0x3347('0x1e')](_0x23a351),_0x3702a5=_0x17cee3['get'](_0x5653e5),_0x5e2556=_0x185f2e==_0x545f4f[_0x3347('0x6f')]-0x1;(!_0x25d61c&&_0x3702a5&&(_0x25d61c=_0x3702a5,_0x2ac700=_0x545f4f[_0x185f2e]),_0x25d61c&&(!_0x3702a5||_0x3702a5[_0x3347('0xd')]!=_0x25d61c[_0x3347('0xd')]))&&(_0xf4dd5f(_0x3702a5,L(_0x2ac700,_0x103392,_0x2291fb),L(_0x545f4f[_0x185f2e],_0x103392,_0x2291fb)),_0x25d61c=_0x3702a5||null,_0x2ac700=_0x3702a5?_0x545f4f[_0x185f2e]:null),_0x25d61c&&_0x5e2556&&_0xf4dd5f(_0x3702a5,L(_0x2ac700,_0x103392,_0x2291fb),W(_0x545f4f[_0x185f2e],_0x103392,_0x2291fb));}function _0xf4dd5f(_0x1bd63c,_0x1b6d55,_0x4f3c27){const _0x252230=_0x25d61c['userId'],_0x47dd04=_0x3347('0x9e')+_0x3d71ed+':'+_0x252230+':'+_0x1b1190++,_0x35997c=_0x2291fb['createRange'](_0x1b6d55,_0x4f3c27);_0x103392[_0x3347('0xbf')][_0x3347('0xf8')](_0x47dd04,_0x35997c),null!==_0x252230&&_0x3d7967[_0x3347('0x57')](_0x252230);}}[_0x3347('0xe5')](_0x4c64de){switch(_0x4c64de[_0x3347('0xd1')]){case'elementStart':return _0x3347('0x30');case _0x3347('0xb1'):return'vid_end';default:return _0x3347('0xe4');}}['_fixOperation'](_0x420309,_0x27b5b8){_0x420309[_0x3347('0xe0')]=null;for(const _0x568445 in _0x420309){const _0x19150a=_0x420309[_0x568445];if(_0x19150a instanceof _0x35969a){const _0x367af1=_0x27b5b8[_0x3347('0x76')](_0x19150a['root'][_0x3347('0xb9')]);_0x420309[_0x568445]=this[_0x3347('0x95')](_0x19150a,_0x367af1);}if(_0x19150a instanceof _0x7f1367){const _0x53ff0c=_0x27b5b8[_0x3347('0x76')](_0x19150a[_0x3347('0x83')][_0x3347('0xb9')]);_0x420309[_0x568445]=this[_0x3347('0xd2')](_0x19150a,_0x53ff0c);}_0x3347('0x83')===_0x568445&&(_0x420309[_0x3347('0x83')]=_0x27b5b8['get'](_0x420309[_0x3347('0x83')]['rootName']));}}[_0x3347('0xd2')](_0x7173fc,_0x11a1f7){return this['editor'][_0x3347('0x3e')][_0x3347('0xd9')](this['_fixPosition'](_0x7173fc[_0x3347('0xb7')],_0x11a1f7),this[_0x3347('0x95')](_0x7173fc[_0x3347('0x66')],_0x11a1f7));}['_fixPosition'](_0x1cedeb,_0x12675c){return this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x67')](_0x12675c,_0x1cedeb['path'],_0x1cedeb[_0x3347('0xc9')]);}['_handleInsertOperation'](_0x1cfa95){const _0x4cc73f=this[_0x3347('0xd3')]['get'](_0x1cfa95[_0x3347('0x5b')][_0x3347('0x83')][_0x3347('0xb9')]),_0x53ec7e=this[_0x3347('0x95')](_0x1cfa95[_0x3347('0x5b')],_0x4cc73f),_0x5631ca=null===_0x1cfa95[_0x3347('0x97')]?null:_0x1cfa95[_0x3347('0x97')]||this['editor'][_0x3347('0xf6')]['get']('Users')['me']['id'],_0x1777aa=_0x53ec7e[_0x3347('0x26')],_0x533126=this[_0x3347('0x17')],_0x56be5b=[];for(const _0x3deaeb of _0x1cfa95[_0x3347('0x6a')])if(_0x3deaeb['is'](_0x3347('0xa6')))_0x56be5b['push'](this['_makeIdsRoot'](_0x3deaeb));else for(let _0x3dcaaa=0x0;_0x3dcaaa<_0x3deaeb[_0x3347('0xbb')];_0x3dcaaa++)_0x56be5b['push'](new _0x4e33b1(_0x3347('0x94'),{'vid':this['_revisionId']++}));const _0x404337=this[_0x3347('0x17')];for(let _0x349225=_0x533126;_0x349225<_0x404337;_0x349225++)this[_0x3347('0xb')]['set'](_0x349225,{'userId':_0x5631ca});_0x1777aa[_0x3347('0x8f')](_0x53ec7e['offset'],_0x56be5b);}[_0x3347('0x37')](_0x590e2f){(_0x590e2f=this[_0x3347('0xa4')](_0x590e2f,this['_idsRoots']))[_0x3347('0xae')]();const _0x47c958=null===_0x590e2f[_0x3347('0x97')]?null:_0x590e2f[_0x3347('0x97')]||this[_0x3347('0xf')]['plugins'][_0x3347('0x76')]('Users')['me']['id'],_0x3383b2=_0x590e2f[_0x3347('0x49')](),_0x49609a=_0x3383b2[_0x3347('0x26')],_0x3ec32=_0x3383b2[_0x3347('0x86')];!function _0x4b5053(_0x2f50f6,_0x20b066,_0x3246e0,_0x5de4cd){for(let _0x157d79=_0x3246e0;_0x157d79<_0x5de4cd;_0x157d79++){const _0x3b5ffd=_0x20b066[_0x3347('0x13')](_0x157d79);_0x3b5ffd['is'](_0x3347('0xa6'),_0x3347('0x94'))?_0x2f50f6[_0x3347('0xf8')](_0x3b5ffd[_0x3347('0x1e')](_0x3347('0xe4')),{'userId':_0x47c958}):(_0x2f50f6[_0x3347('0xf8')](_0x3b5ffd['getAttribute'](_0x3347('0x30')),{'userId':_0x47c958}),_0x4b5053(_0x2f50f6,_0x3b5ffd,0x0,_0x3b5ffd['childCount']),_0x2f50f6[_0x3347('0xf8')](_0x3b5ffd['getAttribute'](_0x3347('0xc0')),{'userId':_0x47c958}));}}(this['_touched'],_0x49609a,_0x3ec32,_0x3ec32+_0x590e2f['howMany']);}[_0x3347('0x4e')](_0xf0b802){const _0x35529f=null===(_0xf0b802=this[_0x3347('0xa4')](_0xf0b802,this['_idsRoots']))[_0x3347('0x97')]?null:_0xf0b802[_0x3347('0x97')]||this['editor'][_0x3347('0xf6')][_0x3347('0x76')](_0x3347('0xa3'))['me']['id'],_0x498f68=_0xf0b802['targetPosition'][_0x3347('0x26')],_0x4ad00b=_0xf0b802[_0x3347('0xbe')][_0x3347('0x26')],_0x3b85e2=_0x498f68[_0x3347('0x1e')](_0x3347('0xc0')),_0x43b73e=_0x4ad00b[_0x3347('0x1e')]('vid_start');_0x498f68[_0x3347('0x29')](_0x3347('0xc0'),_0x4ad00b[_0x3347('0x1e')](_0x3347('0xc0'))),_0x4ad00b[_0x3347('0x29')](_0x3347('0xc0'),_0x3b85e2),this[_0x3347('0xb')][_0x3347('0xf8')](_0x43b73e,{'userId':_0x35529f}),this[_0x3347('0xb')][_0x3347('0xf8')](_0x3b85e2,{'userId':_0x35529f}),_0xf0b802[_0x3347('0xae')]();}[_0x3347('0xea')](_0x2cda79){const _0x3a5627=null===(_0x2cda79=this[_0x3347('0xa4')](_0x2cda79,this['_idsRoots']))[_0x3347('0x97')]?null:_0x2cda79['_authorId']||this[_0x3347('0xf')][_0x3347('0xf6')][_0x3347('0x76')]('Users')['me']['id'],_0x3f216c=_0x2cda79[_0x3347('0x1a')],_0xd4a7b1=_0x2cda79[_0x3347('0x9d')][_0x3347('0x26')];_0x2cda79[_0x3347('0xae')]();const _0x49d914=_0xd4a7b1[_0x3347('0x1e')](_0x3347('0xc0')),_0x57cf0a=_0x2cda79['insertionPosition']['nodeAfter'];if(_0x3f216c){const _0x18df4a=_0x57cf0a[_0x3347('0x1e')](_0x3347('0xc0')),_0x4dea89=_0xd4a7b1[_0x3347('0x1e')](_0x3347('0xc0'));_0xd4a7b1[_0x3347('0x29')](_0x3347('0xc0'),_0x18df4a),_0x57cf0a[_0x3347('0x29')](_0x3347('0xc0'),_0x4dea89),this['_touched'][_0x3347('0xf8')](_0xd4a7b1[_0x3347('0x1e')](_0x3347('0xc0')),{'userId':_0x3a5627}),this['_touched'][_0x3347('0xf8')](_0x57cf0a['getAttribute'](_0x3347('0x30')),{'userId':_0x3a5627});}else{const _0x258f72=this[_0x3347('0x17')]++,_0x266d8e=this['_revisionId']++;_0xd4a7b1[_0x3347('0x29')](_0x3347('0xc0'),_0x258f72),_0x57cf0a[_0x3347('0x29')](_0x3347('0x30'),_0x266d8e),_0x57cf0a['_setAttribute'](_0x3347('0xc0'),_0x49d914),this[_0x3347('0xb')]['set'](_0x258f72,{'userId':_0x3a5627}),this[_0x3347('0xb')]['set'](_0x266d8e,{'userId':_0x3a5627});}}['_handleMarkerOperation'](_0x2b08a6){if(!_0x2b08a6['affectsData'])return;const _0x3f07cb=(_0x2b08a6=this['_cloneOperation'](_0x2b08a6,this[_0x3347('0x12')]))['oldRange']?_0x2b08a6[_0x3347('0xf4')][_0x3347('0x83')]:null,_0x53efa4=_0x2b08a6[_0x3347('0xd8')]?_0x2b08a6[_0x3347('0xd8')][_0x3347('0x83')]:null;_0x3f07cb&&this[_0x3347('0xd5')][_0x3347('0x51')](_0x2b08a6[_0x3347('0xc2')]),_0x53efa4&&this[_0x3347('0xd5')][_0x3347('0xf8')](_0x2b08a6[_0x3347('0xc2')],_0x2b08a6[_0x3347('0xd8')]['clone']());const _0x4bb1f1=null===_0x2b08a6[_0x3347('0x97')]?null:_0x2b08a6[_0x3347('0x97')]||this['editor']['plugins'][_0x3347('0x76')]('Users')['me']['id'],_0x9209fd=_0x2b08a6[_0x3347('0xc2')];if(!this[_0x3347('0xa')][_0x3347('0xed')](_0x9209fd))return void this['_touchedMarkers'][_0x3347('0xf8')](_0x9209fd,{'range':_0x2b08a6[_0x3347('0xf4')],'userId':_0x4bb1f1});const _0x251f1f=this[_0x3347('0xa')][_0x3347('0x76')](_0x9209fd),_0x22394=_0x251f1f['range'],_0x34a9b6=_0x2b08a6[_0x3347('0xd8')];null==_0x22394&&null==_0x34a9b6||_0x22394&&_0x34a9b6&&_0x22394['isEqual'](_0x34a9b6)?this[_0x3347('0xa')][_0x3347('0x51')](_0x2b08a6['name']):_0x251f1f[_0x3347('0xd')]=_0x4bb1f1;}[_0x3347('0xa0')](_0x2dce4c,_0x41664c){this[_0x3347('0x12')][_0x3347('0xed')](_0x2dce4c['rootName'])?this['_diffRoots']['get'](_0x2dce4c[_0x3347('0xb9')])[_0x3347('0xc')]=_0x2dce4c[_0x3347('0xfa')]:(this['_diffRoots'][_0x3347('0xf8')](_0x2dce4c[_0x3347('0xb9')],G(_0x2dce4c[_0x3347('0xb9')],!0x0)),this[_0x3347('0x54')][_0x3347('0xf8')](_0x2dce4c[_0x3347('0xb9')],{}),_0x41664c&&this[_0x3347('0xd3')][_0x3347('0xf8')](_0x2dce4c[_0x3347('0xb9')],G(_0x2dce4c[_0x3347('0xb9')],!0x0)));const _0xe449a3=null===_0x2dce4c[_0x3347('0x97')]?null:_0x2dce4c['_authorId']||this['editor']['plugins']['get'](_0x3347('0xa3'))['me']['id'],_0x5c6fd2=this[_0x3347('0xf1')][_0x3347('0x76')](_0x2dce4c[_0x3347('0xb9')]);_0x5c6fd2&&_0x5c6fd2[_0x3347('0xd')]===_0xe449a3?this[_0x3347('0xf1')][_0x3347('0x51')](_0x2dce4c[_0x3347('0xb9')]):this[_0x3347('0xf1')][_0x3347('0xf8')](_0x2dce4c[_0x3347('0xb9')],{'userId':_0xe449a3,'isAttached':_0x2dce4c[_0x3347('0xfa')]});}[_0x3347('0xfc')](_0x59d384){const _0x334cb0=this[_0x3347('0x54')][_0x3347('0x76')](_0x59d384['root'][_0x3347('0xb9')]);null===_0x59d384['newValue']?delete _0x334cb0[_0x59d384[_0x3347('0x79')]]:_0x334cb0[_0x59d384['key']]=_0x59d384[_0x3347('0xcc')];}}function q(_0x4be601){const _0x30e814=G(_0x4be601['rootName'],_0x4be601[_0x3347('0x59')]());for(const _0x38f606 of _0x4be601[_0x3347('0x9a')]()){const _0x10fe9f=_0x38f606[_0x3347('0xb2')](!0x0);_0x30e814['_appendChild'](_0x10fe9f);}return _0x30e814;}function G(_0x2b7374,_0x3f41ec=!0x0){const _0x30085f=new _0x56135f();return _0x30085f[_0x3347('0xb9')]=_0x2b7374,_0x30085f[_0x3347('0xc')]=_0x3f41ec,_0x30085f[_0x3347('0x59')]=()=>_0x30085f[_0x3347('0xc')],_0x30085f;}function L(_0xbea314,_0x28a1f2,_0x2fda30){const _0x307611=_0x3347('0xb1')==_0xbea314['type']?_0x2fda30[_0x3347('0x70')](_0xbea314[_0x3347('0x23')],_0x3347('0x66')):_0x2fda30[_0x3347('0xdc')](_0xbea314[_0x3347('0x23')]);return _0x2fda30[_0x3347('0x67')](_0x28a1f2,_0x307611['path'],_0x307611[_0x3347('0xc9')]);}function W(_0x46ff66,_0x419508,_0x5ec1af){const _0x2bd319=_0x3347('0xf5')==_0x46ff66[_0x3347('0xd1')]?_0x5ec1af[_0x3347('0x70')](_0x46ff66['item'],0x0):_0x5ec1af[_0x3347('0x2a')](_0x46ff66[_0x3347('0x23')]);return _0x5ec1af[_0x3347('0x67')](_0x419508,_0x2bd319[_0x3347('0x96')],_0x2bd319[_0x3347('0xc9')]);}