@ckeditor/ckeditor5-revision-history 39.0.0 → 39.0.1

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 _0x379f=['insert','attributesBefore','addRevision','afterInit','document','_getState','_bufferedUpdates','isAttached','howMany','_diffRoots','getData','_loadedStateData','getRevisions','startsWith','Initial\x20revision','locale','_markers','keepParagraph','getChild','version','push','source','position','marker','_isPendingUpdate','bind','useFillerType','editing','parent','_lastTo','_replaceEditorDataWithRevisionData','define','offsetSize','_prepareViewToSave','editor','saveRevision','vid_start','_continueCurrentRevision','addRevisionData','getRevisionDocumentData','_baseRootsAttributes','nodeAfter','newRange','_baseIdsRoots','_handleOperation','_handleRootAttributeOperation','getIndex','buildRevisionData','newValue','_startingVersion','init','removeRootAttribute','from','vid','getRootNames','for','baseVersion','string','adapter','_transformMarkers','paragraph','insertionPosition','_applyOperations','_copyMarkers','getNodeByPath','_appendChild','_makeModelFromViewString','markers','_initialRevisionId','_savedMetaData','Users','initialData','default','_touchedRoots','_generateTape','requires','_fixRange','fromVersion','_lastFrom','roots','_execute','getAttribute','_idsRoots','_handleInsertOperation','editor-initial-data-replaced-with-revision-data','toVersion','_fixPosition','_setConversion','_saveMetaData','_removeMetaData','sourcePosition','setRevisionData','_getFromVersion','max','isAdd','slice','rootName','tableCell','filter','getOperation','graveyardPosition','addRootAttribute','path','getRevisionRootsAttributes','revision','type','$text','fromEntries','affectsData','_loadState','creator','values','_cloneOperation','sort','diffData','revision-end','_makeIdsRoot','keys','item','collaboration.channelId','createdAt','nodes','move','getOperations','elementEnd','revision:','children','_processRootBeforeSave','setSource','remove','_insertChild','PENDING_ACTION_REVISION_HISTORY','_handleRootOperation','createPositionAt','_setAttribute','sendBufferedUpdates','_getBaseVids','$graveyard','clone','RevisionTracker','createPositionAfter','toModel','_authorId','find','history','addRoot','trim','_getViewJson','processor','getWalker','insertions','end','_removeRevisionMarkers','_createFromRanges','getChildren','_handleMergeOperation','upcast','RevisionsRepository','_operations','_findInsertionIndex','model','shift','revisionHistory.resumeUnsavedRevision','offset','_isInit','_markChanges','detachRoot','creatorId','pluginName','_revisionDataBuilder','split','PendingActions','then','add','documentFragment','view','plugins','range','toView','_calculateMetaData','_touchedMarkers','parse','_makeRevision','_loadRevisionData','start','_handleMarkerOperation','getCurrentRevisionId','get','_bufferUpdate','attributesAfter','createPositionFromPath','reverse','userId','length','_baseRoots','changeRootAttribute','isEqual','_createCurrentRevision','oldRange','getAttributes','isReady','authors','key','_diffRootsAttributes','deletions','_removePendingAction','currentRevision','ready','_fixOperation','includes','vid_end','NEGATIVE_INFINITY','dataDowncast','stickiness','getLatestVersion','_isAttached','resolve','createRange','_pendingAction','revision-start','attributes','config','clear','_getPreviousFrom','text','_touched','finally','authorsIds','dataToMarker','insertion','_addPendingAction','element','_revisionId','createPositionBefore','delete','elementStart','loadState','repository','_getVidAttributeName','conversion','data','childCount','_reset','toData','hasContent','root','previousPosition','set','_handleSplitOperation','attachChange','getUser','_startingRevisionId','_update','map','has','_source','getRevision','getRoot','reinsert','name','getRange'];(function(_0x52da8f,_0x379f8c){const _0x4271a6=function(_0x2272b1){while(--_0x2272b1){_0x52da8f['push'](_0x52da8f['shift']());}};_0x4271a6(++_0x379f8c);}(_0x379f,0x1c0));const _0x4271=function(_0x52da8f,_0x379f8c){_0x52da8f=_0x52da8f-0x0;let _0x4271a6=_0x379f[_0x52da8f];return _0x4271a6;};import{Users as _0x33d11e}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x8a41ca,PendingActions as _0x42e002}from'ckeditor5/src/core';import{logWarning as _0x34fbf1,uid as _0x12c7b6}from'ckeditor5/src/utils';import{Position as _0x28df84,Range as _0x46cebf,Element as _0x430a33,DocumentFragment as _0xacb02b,ViewText as _0x2cdd47,ViewElement as _0x3cb048,ViewContainerElement as _0x579c84,ViewAttributeElement as _0x3433cf,ViewEmptyElement as _0x2a207d,ViewRawElement as _0x35e2a2,ViewUIElement as _0x544b55,ViewDocumentFragment as _0x518e66}from'ckeditor5/src/engine';import _0x1e180a from'./revisionsrepository';import{getTranslation as _0x47c307}from'./utils/common-translations';import{cloneDeep as _0x576ef7,isEqual as _0x1c4974}from'lodash-es';const B={'c':_0x579c84,'a':_0x3433cf,'e':_0x2a207d,'r':_0x35e2a2,'u':_0x544b55};export default class l extends _0x8a41ca{static get[_0x4271('0xf2')](){return _0x4271('0xd5');}static get[_0x4271('0x95')](){return[_0x33d11e,_0x1e180a,_0x42e002];}constructor(_0x148919){super(_0x148919),this[_0x4271('0x84')]=null,this[_0x4271('0x13')]=null,this[_0x4271('0xf3')]=new H(this[_0x4271('0x6c')]),this['_initialRevisionId']=this[_0x4271('0x6c')][_0x4271('0x22')]['get'](_0x4271('0xc1'))||'initial',this[_0x4271('0x50')]=new Map(),this[_0x4271('0x55')]=null;const _0x18d20b=_0x12c7b6();this[_0x4271('0x44')]={'history':this['editor'][_0x4271('0xea')][_0x4271('0x4e')][_0x4271('0xda')],'getLatestVersion':()=>Promise[_0x4271('0x1d')](this['editor']['model']['document'][_0x4271('0x5d')]),'getCurrentRevisionId':()=>_0x18d20b},this[_0x4271('0x3c')](_0x4271('0xd'),!0x1),this[_0x4271('0x3c')]('isEnabled',!0x0),this[_0x4271('0x3c')](_0x4271('0x62'),!0x1),this[_0x4271('0x6c')]['config'][_0x4271('0x69')](_0x4271('0xec'),!0x0),this[_0x4271('0x6c')]['conversion'][_0x4271('0x81')](_0x4271('0xe6'))[_0x4271('0x29')]({'view':_0x4271('0xb2')});}[_0x4271('0x7c')](){this[_0x4271('0x32')]=this[_0x4271('0x6c')][_0x4271('0xfa')][_0x4271('0x0')](_0x4271('0xe7')),this[_0x4271('0xa1')](),this[_0x4271('0x6c')][_0x4271('0x35')]['on'](_0x4271('0x14'),()=>{const _0x11e47a=this['repository'][_0x4271('0x45')](0x0),_0x12abd2=_0x11e47a&&null===_0x11e47a['creator']?_0x11e47a:null;if(this['_continueCurrentRevision']=!!_0x12abd2&&this[_0x4271('0x6c')]['config'][_0x4271('0x0')](_0x4271('0xec')),this['editor'][_0x4271('0xfa')][_0x4271('0x43')]('RealTimeCollaborationClient')){const _0x5b0f17=this[_0x4271('0x44')][_0x4271('0x104')](),_0x34a020=this[_0x4271('0x32')][_0x4271('0x45')](_0x5b0f17);if(_0x34a020)this[_0x4271('0x7b')]=_0x34a020[_0x4271('0x97')],this[_0x4271('0x6f')]=!0x1;else{const _0x3604bb=this[_0x4271('0x44')]['history'][_0x4271('0xe8')][_0x4271('0xd9')](_0x4d228=>!_0x4d228[_0x4271('0xee')]),_0x452342=_0x3604bb?_0x3604bb[_0x4271('0x82')]:this[_0x4271('0x44')][_0x4271('0xda')][_0x4271('0x5d')];_0x11e47a?(_0x11e47a[_0x4271('0x9f')]<_0x452342&&_0x11e47a[_0x4271('0x41')]({'toVersion':_0x452342}),this[_0x4271('0x6f')]?(this[_0x4271('0x44')][_0x4271('0x104')]=()=>_0x12abd2['id'],this[_0x4271('0x7b')]=_0x12abd2[_0x4271('0x97')]):(this[_0x4271('0x7b')]=_0x11e47a[_0x4271('0x9f')],this[_0x4271('0x6f')]=!0x1)):(this['_startingVersion']=_0x452342,this['_continueCurrentRevision']=!0x1);}}else _0x12abd2&&(this[_0x4271('0x6c')][_0x4271('0xea')]['document'][_0x4271('0xda')]['version']=Math[_0x4271('0xa7')](_0x12abd2['toVersion'],this[_0x4271('0x6c')]['model'][_0x4271('0x4e')][_0x4271('0xda')]['version']),_0x12abd2[_0x4271('0x97')]===_0x12abd2[_0x4271('0x9f')]?(0x0!==_0x12abd2['fromVersion']&&(this[_0x4271('0x44')]['getCurrentRevisionId']=()=>_0x12abd2['id']),this[_0x4271('0x6f')]=!0x1):this[_0x4271('0x6f')]&&(this[_0x4271('0x44')][_0x4271('0x104')]=()=>_0x12abd2['id'],this[_0x4271('0x7b')]=_0x12abd2[_0x4271('0x97')])),this['_continueCurrentRevision']||(this['_startingVersion']=this[_0x4271('0x6c')][_0x4271('0xea')][_0x4271('0x4e')]['version']);this[_0x4271('0xf3')][_0x4271('0x7c')](this['_source'][_0x4271('0xda')]),this['_createInitialRevision'](this['_startingVersion']),this[_0x4271('0xa')](this[_0x4271('0x7b')]),this[_0x4271('0x84')]&&this[_0x4271('0xd1')]();}),this[_0x4271('0x63')](_0x4271('0xd'))['to'](this,_0x4271('0x62'),_0x5ec48c=>!_0x5ec48c);}async[_0x4271('0x4d')](){if(this[_0x4271('0x32')]['length']>0x0){const _0x1c136f=this['repository'][_0x4271('0x45')](0x0),_0x20c308=await this[_0x4271('0x71')](_0x1c136f),_0x55cb5f=await this[_0x4271('0xb1')](_0x1c136f);this[_0x4271('0x68')](_0x20c308,_0x55cb5f);}}[_0x4271('0xca')](_0x5344fb){this['_source']=_0x5344fb;}async['update'](){const _0x52cb96=await this[_0x4271('0x44')][_0x4271('0x1b')]();if(_0x52cb96>this[_0x4271('0x13')][_0x4271('0x9f')]){await this[_0x4271('0xb7')]();const _0x1270cc=this['buildRevisionData']({'revision':this[_0x4271('0x13')],'to':_0x52cb96});_0x1270cc['authors']=_0x1270cc[_0x4271('0x28')][_0x4271('0x42')](_0xa94592=>this['editor'][_0x4271('0xfa')][_0x4271('0x0')](_0x4271('0x90'))['getUser'](_0xa94592)),this[_0x4271('0x13')][_0x4271('0x41')](_0x1270cc);}}async[_0x4271('0xb7')](){this['_continueCurrentRevision']&&!this[_0x4271('0x55')]&&(await this['_loadRevisionData'](this[_0x4271('0x13')]),this[_0x4271('0xf3')][_0x4271('0x31')](this['currentRevision']),this[_0x4271('0x55')]={'fromVersion':this['currentRevision'][_0x4271('0x97')],'authors':this[_0x4271('0x13')][_0x4271('0xe')][_0x4271('0xa9')]()});}async[_0x4271('0x6d')](_0x18a999={},_0xb1fb93=null){const _0x43f440=[];await this[_0x4271('0xb7')](),this[_0x4271('0x6f')]=!0x1,_0xb1fb93>this[_0x4271('0x13')][_0x4271('0x9f')]&&(_0xb1fb93=null),null===_0xb1fb93&&(_0xb1fb93=await this[_0x4271('0x44')][_0x4271('0x1b')]());const _0x880dcb=this[_0x4271('0xa6')](_0xb1fb93),_0x27c4f9=this[_0x4271('0x79')]({'from':_0x880dcb,'to':_0xb1fb93});if(this[_0x4271('0x13')][_0x4271('0x9f')]<_0xb1fb93){const _0x318e38=this[_0x4271('0x79')]({'revision':this['currentRevision'],'from':_0xb1fb93,'to':_0xb1fb93});_0x318e38[_0x4271('0xe')]=[],_0x318e38[_0x4271('0x28')]=[],_0x318e38['id']=this[_0x4271('0x13')]['id'],this[_0x4271('0x13')][_0x4271('0x41')](_0x318e38,!0x0),delete _0x318e38['authors'],_0x43f440['push'](_0x318e38);}_0x18a999[_0x4271('0xf1')]=this['editor'][_0x4271('0xfa')][_0x4271('0x0')](_0x4271('0x90'))['me']['id'],_0x18a999['name']=_0x18a999[_0x4271('0x48')]||null,_0x18a999['id']=_0x18a999['id']||_0x12c7b6(),_0x18a999={..._0x18a999,..._0x27c4f9};const _0x6b62cd=this[_0x4271('0x70')](_0x18a999);_0x43f440[_0x4271('0x5e')](_0x18a999);const _0x523694=this[_0x4271('0x32')][_0x4271('0x78')](_0x6b62cd);if(0x0!==_0x523694){const _0x10a586=this[_0x4271('0x32')][_0x4271('0x45')](_0x523694-0x1);if(_0x10a586[_0x4271('0x97')]!==_0xb1fb93){const _0x33f39e=this[_0x4271('0xf3')]['getData'](_0xb1fb93,_0x10a586['toVersion']),_0x2b6e75={'id':_0x10a586['id'],'diffData':_0x33f39e[_0x4271('0xbc')],'authorsIds':_0x33f39e[_0x4271('0x28')],'authors':_0x33f39e['authorsIds'][_0x4271('0x42')](_0x1b11d6=>this['editor'][_0x4271('0xfa')][_0x4271('0x0')](_0x4271('0x90'))[_0x4271('0x3f')](_0x1b11d6)),'fromVersion':_0xb1fb93};_0x10a586===this[_0x4271('0x13')]&&(_0x2b6e75['createdAt']=new Date(_0x18a999[_0x4271('0xc2')]['getTime']()+0xa)),_0x10a586[_0x4271('0x41')](_0x2b6e75,!0x0),delete _0x2b6e75[_0x4271('0xe')],_0x43f440[_0x4271('0x5e')](_0x2b6e75);}}if(this[_0x4271('0x84')]){for(const _0x3cab60 of _0x43f440)this[_0x4271('0x1')](_0x3cab60['id'],_0x3cab60,!0x0);this['sendBufferedUpdates']();}return _0x6b62cd;}[_0x4271('0x70')](_0x2392cf){const _0x4113ab=this['repository']['createRevision'](_0x2392cf);return this[_0x4271('0x84')]&&_0x4113ab['on'](_0x4271('0x41'),(_0x40f57e,_0x5ddd80,_0x12336a)=>{_0x12336a||(this[_0x4271('0x1')](_0x5ddd80['id'],_0x5ddd80,!0x0),this[_0x4271('0xd1')]());}),this[_0x4271('0x32')][_0x4271('0x4c')](_0x4113ab,this[_0x4271('0xe9')](_0x4113ab)),_0x4113ab;}async[_0x4271('0x71')](_0x1a2356){await this[_0x4271('0x101')](_0x1a2356);const _0x2c70b0={};for(const _0x372b96 in _0x1a2356['diffData']){if(_0x1a2356[_0x4271('0xbc')][_0x372b96][_0x4271('0x3e')]&&!_0x1a2356[_0x4271('0xbc')][_0x372b96]['attachChange']['isAttached'])continue;const _0x471042=this['_removeRevisionMarkers'](JSON[_0x4271('0xff')](_0x1a2356[_0x4271('0xbc')][_0x372b96]['insertions'])),_0x6ad6aa=this[_0x4271('0x6c')][_0x4271('0x65')]['view'][_0x4271('0x4e')],_0x57df31=new _0x518e66(_0x6ad6aa,_0x471042[_0x4271('0x42')](_0x1bbe85=>J(_0x1bbe85,this['editor'])));this[_0x4271('0x6c')][_0x4271('0x35')][_0x4271('0xde')][_0x4271('0x64')]('marked'),_0x2c70b0[_0x372b96]=this[_0x4271('0x6c')][_0x4271('0x35')]['processor'][_0x4271('0x38')](_0x57df31),this['editor'][_0x4271('0x35')]['processor'][_0x4271('0x64')](_0x4271('0x92'));}return _0x2c70b0;}async[_0x4271('0xb1')](_0x249dd4){await this['_loadRevisionData'](_0x249dd4);const _0x224074={};for(const _0x1c717f in _0x249dd4[_0x4271('0xbc')])_0x249dd4[_0x4271('0xbc')][_0x1c717f][_0x4271('0x3e')]&&!_0x249dd4[_0x4271('0xbc')][_0x1c717f]['attachChange'][_0x4271('0x51')]||(_0x224074[_0x1c717f]=_0x249dd4['diffData'][_0x1c717f][_0x4271('0x2')]||{});return _0x224074;}[_0x4271('0xd1')](){if(0x0===this[_0x4271('0x50')]['size'])return;if(this['_isPendingUpdate'])return;let _0x37f027=Array[_0x4271('0x7e')](this[_0x4271('0x50')][_0x4271('0xb9')]());this['_bufferedUpdates'][_0x4271('0x23')]();for(let _0x378db9=0x0;_0x378db9<_0x37f027[_0x4271('0x6')];_0x378db9++){const _0x48550a=_0x37f027[_0x378db9];let _0x51083b=!0x1;for(const _0xbf02ce of Object['keys'](_0x48550a))void 0x0===_0x48550a[_0xbf02ce]?delete _0x48550a[_0xbf02ce]:'id'!==_0xbf02ce&&(_0x51083b=!0x0);_0x51083b||(_0x37f027[_0x378db9]=null);}if(_0x37f027=_0x37f027['filter'](_0x271eab=>null!==_0x271eab),!_0x37f027[_0x4271('0x6')])return;for(let _0x13bc6a=0x0;_0x13bc6a<_0x37f027[_0x4271('0x6')];_0x13bc6a++){const _0x5f0c42=_0x37f027[_0x13bc6a];void 0x0!==_0x5f0c42['fromVersion']&&void 0x0===_0x5f0c42[_0x4271('0x9f')]&&(_0x5f0c42['toVersion']=this[_0x4271('0x32')][_0x4271('0x45')](_0x5f0c42['id'])[_0x4271('0x9f')]),void 0x0!==_0x5f0c42[_0x4271('0x9f')]&&void 0x0===_0x5f0c42['fromVersion']&&(_0x5f0c42[_0x4271('0x97')]=this[_0x4271('0x32')][_0x4271('0x45')](_0x5f0c42['id'])[_0x4271('0x97')]);}const _0x4d29e5=this['editor'][_0x4271('0x22')]['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this[_0x4271('0x2b')](),this['adapter']['updateRevisions'](_0x37f027,_0x4d29e5)[_0x4271('0x27')](()=>{this[_0x4271('0x62')]=!0x1;})[_0x4271('0xf6')](_0x53bd94=>{if(_0x53bd94)for(const _0x438aa4 of _0x53bd94)this[_0x4271('0xa5')]({'id':_0x438aa4['id'],'createdAt':_0x438aa4[_0x4271('0xc2')]});this[_0x4271('0x12')](),this[_0x4271('0xd1')]();});}['_replaceEditorDataWithRevisionData'](_0x2da203,_0x3a8208){let _0x2610bb=this[_0x4271('0x6c')][_0x4271('0x22')][_0x4271('0x0')]('initialData'),_0x371674=this[_0x4271('0x6c')][_0x4271('0x22')]['get']('rootsAttributes');if(void 0x0===_0x2610bb){_0x2610bb={};for(const _0xf4af38 of this[_0x4271('0x6c')][_0x4271('0xea')]['document'][_0x4271('0x80')]())_0x2610bb[_0xf4af38]='';}if(_0x4271('0x83')==typeof _0x2610bb&&(_0x2610bb={'main':_0x2610bb}),void 0x0===_0x371674){_0x371674={};for(const _0x5a486b of this['editor'][_0x4271('0xea')][_0x4271('0x4e')][_0x4271('0x80')]())_0x371674[_0x5a486b]={};}let _0x5e7fe1=!0x1;const _0x6004a4=Object[_0x4271('0xbf')](_0x2610bb),_0x3c0272=Object[_0x4271('0xbf')](_0x2da203);for(const _0x4d9bdf of _0x6004a4){if(_0x2610bb[_0x4d9bdf]!==_0x2da203[_0x4d9bdf]&&''!==_0x2610bb[_0x4d9bdf][_0x4271('0xdc')]()){_0x5e7fe1=!0x0;break;}if(!_0x1c4974(_0x371674[_0x4d9bdf],_0x3a8208[_0x4d9bdf])&&Object['keys'](_0x371674[_0x4d9bdf])['length']>0x0){_0x5e7fe1=!0x0;break;}}_0x5e7fe1||(_0x5e7fe1=_0x3c0272['some'](_0x39d3b5=>!this['editor'][_0x4271('0xea')][_0x4271('0x4e')][_0x4271('0x46')](_0x39d3b5))),_0x5e7fe1&&_0x34fbf1(_0x4271('0x9e'),{'editorData':_0x2610bb,'editorRootsAttributes':_0x371674,'revisionData':_0x2da203,'revisionRootsAttributes':_0x3a8208}),this['editor']['config']['set'](_0x4271('0x91'),_0x2da203),this[_0x4271('0x6c')][_0x4271('0x22')][_0x4271('0x3c')]('rootsAttributes',_0x3a8208);}[_0x4271('0x2b')](){if(!this[_0x4271('0x1f')]){const _0x4f41b9=this[_0x4271('0x6c')][_0x4271('0xfa')]['get'](_0x4271('0xf5'));this[_0x4271('0x1f')]=_0x4f41b9[_0x4271('0xf7')](_0x47c307(this[_0x4271('0x6c')][_0x4271('0x59')],_0x4271('0xcd')));}}[_0x4271('0x12')](){this['_pendingAction']&&(this[_0x4271('0x6c')]['plugins'][_0x4271('0x0')](_0x4271('0xf5'))['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x153b99){const _0x3ee984=this[_0x4271('0x32')][_0x4271('0x56')]();_0x3ee984[_0x4271('0x4')]();let _0x5213bb=0x0;for(;_0x5213bb<_0x3ee984[_0x4271('0x6')];){const _0x122ded=_0x3ee984[_0x5213bb];if(_0x122ded===this['currentRevision']){_0x5213bb++;continue;}if(_0x122ded['id']===this['_initialRevisionId'])break;const _0xb5879f=_0x153b99[_0x4271('0x9f')]-_0x122ded[_0x4271('0x9f')]||_0x153b99[_0x4271('0x97')]-_0x122ded[_0x4271('0x97')];if(_0xb5879f>0x0)break;if(_0xb5879f<0x0)_0x5213bb++;else{if(!_0x153b99[_0x4271('0xb8')]&&_0x122ded['creator'])break;if(_0x122ded[_0x4271('0xb8')]||!_0x153b99[_0x4271('0xb8')]){if(_0x153b99[_0x4271('0xc2')]>_0x122ded[_0x4271('0xc2')])break;_0x5213bb++;}else _0x5213bb++;}}return _0x5213bb;}[_0x4271('0xa5')](_0x5439fe){const _0x59a431=this[_0x4271('0x32')][_0x4271('0x45')](_0x5439fe['id']);if(_0x5439fe['createdAt']&&(_0x5439fe[_0x4271('0xc2')]=new Date(_0x5439fe[_0x4271('0xc2')])),_0x5439fe[_0x4271('0x28')]){const _0xac24a9=this[_0x4271('0x6c')][_0x4271('0xfa')][_0x4271('0x0')](_0x4271('0x90'));_0x5439fe[_0x4271('0xe')]=_0x5439fe['authorsIds']['map'](_0x84f6d4=>_0xac24a9[_0x4271('0x3f')](_0x84f6d4));}_0x59a431[_0x4271('0x41')](_0x5439fe,!0x0);}[_0x4271('0x79')]({revision:_0x345119=null,from:_0x48d1cf=null,to:_0x4f5a66=null}){_0x48d1cf=null!==_0x48d1cf?_0x48d1cf:_0x345119[_0x4271('0x97')],_0x4f5a66=null!==_0x4f5a66?_0x4f5a66:_0x345119[_0x4271('0x9f')];const _0x3e18ea=this[_0x4271('0xf3')][_0x4271('0x54')](_0x48d1cf,_0x4f5a66),_0x2bb635={'diffData':_0x3e18ea[_0x4271('0xbc')],'authorsIds':_0x3e18ea[_0x4271('0x28')],'fromVersion':_0x48d1cf,'toVersion':_0x4f5a66};if(!_0x345119||_0x4f5a66!==_0x345119['toVersion']){const _0x2b72c6=_0x4f5a66-0x1,_0x2918c2=this[_0x4271('0x44')][_0x4271('0xda')][_0x4271('0xad')](_0x2b72c6);_0x2bb635[_0x4271('0xc2')]=_0x2918c2&&_0x2918c2[_0x4271('0xc2')]||new Date();}if(this[_0x4271('0x55')]&&_0x48d1cf===this[_0x4271('0x55')][_0x4271('0x97')])for(const _0x36f800 of this[_0x4271('0x55')][_0x4271('0xe')])_0x2bb635['authorsIds'][_0x4271('0x16')](_0x36f800['id'])||_0x2bb635[_0x4271('0x28')][_0x4271('0x5e')](_0x36f800['id']);return _0x2bb635;}[_0x4271('0x101')](_0x2288f0){if(!_0x2288f0||_0x2288f0['diffData'])return Promise['resolve']();{const _0x4372d5=this[_0x4271('0x6c')][_0x4271('0x22')][_0x4271('0x0')](_0x4271('0xc1'));return this['adapter']['getRevision']({'channelId':_0x4372d5,'revisionId':_0x2288f0['id']})[_0x4271('0xf6')](_0x2c3853=>{_0x2288f0[_0x4271('0xbc')]=_0x2c3853[_0x4271('0xbc')];});}}[_0x4271('0x1')](_0xbdb44,_0x3908d1,_0x55214f){if(this['_bufferedUpdates']['has'](_0xbdb44)){const _0x7229db=this['_bufferedUpdates'][_0x4271('0x0')](_0xbdb44);_0x3908d1=_0x55214f?{..._0x7229db,..._0x3908d1}:{..._0x3908d1,..._0x7229db};}this[_0x4271('0x50')][_0x4271('0x3c')](_0xbdb44,_0x3908d1);}[_0x4271('0xa6')](_0x3db4f7){const _0x573d40=this[_0x4271('0x32')][_0x4271('0x56')]();_0x573d40[_0x4271('0x4')](),_0x573d40[_0x4271('0xeb')]();const _0x26d9ad=_0x573d40[_0x4271('0xd9')](_0x14d302=>_0x14d302[_0x4271('0x9f')]<=_0x3db4f7)[_0x4271('0x9f')];return _0x26d9ad<this[_0x4271('0x7b')]?this[_0x4271('0x7b')]:_0x26d9ad;}['_createInitialRevision'](_0x509a17){const _0x3a2d12=this[_0x4271('0x32')][_0x4271('0x45')](this['repository'][_0x4271('0x6')]-0x1);if(_0x3a2d12)this[_0x4271('0x8e')]=_0x3a2d12['id'];else{const _0x520d06=!this['editor'][_0x4271('0xea')][_0x4271('0x4e')][_0x4271('0x99')][_0x4271('0xd9')](_0x183f85=>this[_0x4271('0x6c')]['model'][_0x4271('0x39')](_0x183f85)),_0x16e004=this['editor'][_0x4271('0xfa')]['get'](_0x4271('0x90'))['me']['id'],_0x6d6e9b=_0x47c307(this[_0x4271('0x6c')][_0x4271('0x59')],_0x520d06?'Empty\x20document':_0x4271('0x58'));this[_0x4271('0x100')]({'from':_0x509a17,'to':_0x509a17,'id':this['_initialRevisionId'],'name':_0x6d6e9b,'creatorId':_0x16e004});}}['_createCurrentRevision'](_0x166c31){const _0x2a7bab=this[_0x4271('0x44')][_0x4271('0x104')]();this[_0x4271('0x13')]=this[_0x4271('0x32')][_0x4271('0x45')](_0x2a7bab),this[_0x4271('0x13')]||(this[_0x4271('0x13')]=this['_makeRevision']({'from':_0x166c31,'to':_0x166c31,'id':_0x2a7bab,'name':'','creatorId':null}));}[_0x4271('0x100')]({name:_0x1d9ee2,from:_0x4dc52b,to:_0x48aa01,creatorId:_0xcca908,id:_0x4f6a4c}){const _0xad6902=this[_0x4271('0x79')]({'from':_0x4dc52b,'to':_0x48aa01});_0xad6902[_0x4271('0x48')]=_0x1d9ee2,_0xad6902[_0x4271('0xf1')]=_0xcca908,_0xad6902['id']=_0x4f6a4c;const _0x1186de=this['addRevisionData'](_0xad6902);return this[_0x4271('0x84')]&&this[_0x4271('0x1')](_0xad6902['id'],_0xad6902,!0x0),_0x1186de;}[_0x4271('0xa1')](){this[_0x4271('0x6c')][_0x4271('0x34')][_0x4271('0x81')](_0x4271('0x19'))['markerToData']({'model':_0x4271('0xb2')});}[_0x4271('0xe2')](_0x2e4d4d){return(_0x2e4d4d=_0x2e4d4d[_0x4271('0xac')](_0x3147be=>!_0x3147be['name']||_0x4271('0x20')!==_0x3147be[_0x4271('0x48')]&&_0x4271('0xbd')!==_0x3147be[_0x4271('0x48')]))['forEach'](_0x225968=>{_0x4271('0x83')!=typeof _0x225968&&(_0x225968['children']=this[_0x4271('0xe2')](_0x225968[_0x4271('0xc8')]),_0x225968[_0x4271('0x21')]=_0x225968[_0x4271('0x21')]['filter'](_0x10bf90=>!_0x10bf90[0x0][_0x4271('0x57')]('data-revision-')));}),_0x2e4d4d;}}function J(_0x4ffee8,_0x4f18ab){const _0x223ff3=_0x4f18ab[_0x4271('0x65')][_0x4271('0xf9')][_0x4271('0x4e')];if(_0x4271('0x83')==typeof _0x4ffee8)return new _0x2cdd47(_0x223ff3,_0x4ffee8);{const _0x502023=_0x4ffee8[_0x4271('0xc8')][_0x4271('0x42')](_0x155c22=>J(_0x155c22,_0x4f18ab));return new(B[_0x4ffee8[(_0x4271('0xb3'))]]||_0x3cb048)(_0x223ff3,_0x4ffee8[_0x4271('0x48')],_0x4ffee8['attributes'],_0x502023);}}class H{constructor(_0x15f1d4){this[_0x4271('0x6c')]=_0x15f1d4,this['_savedMetaData']=new Map(),this[_0x4271('0x98')]=-0x1,this[_0x4271('0x67')]=-0x1,this[_0x4271('0x5a')]=new Map(),this[_0x4271('0x53')]=new Map(),this[_0x4271('0x10')]=new Map(),this['_baseRoots']=new Map(),this[_0x4271('0x72')]=new Map(),this[_0x4271('0x9c')]=new Map(),this[_0x4271('0x75')]=new Map(),this[_0x4271('0x26')]=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}[_0x4271('0x7c')](_0x231304){this[_0x4271('0x5f')]=_0x231304;const _0x3dc855=new Map(),_0xfb943c=new Map(),_0x39c941=this[_0x4271('0x6c')][_0x4271('0xea')]['document']['roots'][_0x4271('0x42')](_0x37b8e2=>_0x37b8e2[_0x4271('0xaa')]);for(const _0x5b2df6 of _0x39c941){const _0x44c8fd=this[_0x4271('0x6c')]['model'][_0x4271('0x4e')][_0x4271('0x46')](_0x5b2df6),_0x2e5d7d=q(_0x44c8fd);_0x3dc855[_0x4271('0x3c')](_0x5b2df6,_0x2e5d7d),_0xfb943c[_0x4271('0x3c')](_0x5b2df6,Object[_0x4271('0xb5')](_0x44c8fd[_0x4271('0xc')]()));}const _0x3ca822=Array[_0x4271('0x7e')](this['editor'][_0x4271('0xea')]['markers'])[_0x4271('0x42')](_0x1dc545=>[_0x1dc545[_0x4271('0x48')],_0x1dc545[_0x4271('0x49')]()]),_0x38751e=this[_0x4271('0x5f')][_0x4271('0x5d')];this[_0x4271('0xa2')](_0x38751e,_0x3dc855,_0x3ca822,_0xfb943c),this[_0x4271('0x40')]=this[_0x4271('0x2d')];const _0x180132=new Map(),_0x23ea59=new Map();for(const _0x4abb9a of _0x39c941){const _0x3cad48=G(_0x4abb9a);_0x180132[_0x4271('0x3c')](_0x4abb9a,_0x3cad48),_0x23ea59[_0x4271('0x3c')](_0x4abb9a,{});}this[_0x4271('0xa2')](Number[_0x4271('0x18')],_0x180132,[],_0x23ea59);}['getData'](_0x4fcd92,_0x2b9b84){if(this[_0x4271('0x98')]===_0x4fcd92&&this['_lastTo']<=_0x2b9b84)this[_0x4271('0x8f')]['size']>0x1&&this[_0x4271('0xa3')](this[_0x4271('0x67')]),this[_0x4271('0x88')](this[_0x4271('0x67')],_0x2b9b84,!0x0);else{if(!this['_savedMetaData'][_0x4271('0x43')](_0x4fcd92)){const _0x3c1295=this[_0x4271('0x24')](_0x4fcd92);this[_0x4271('0xfd')](_0x3c1295,_0x4fcd92,!0x1);}this[_0x4271('0xfd')](_0x4fcd92,_0x2b9b84,!0x0);}return this[_0x4271('0x98')]=_0x4fcd92,this[_0x4271('0x67')]=_0x2b9b84,this[_0x4271('0x4f')]();}['loadState'](_0x35965e){this[_0x4271('0x37')](),this[_0x4271('0x98')]=_0x35965e[_0x4271('0x97')],this[_0x4271('0x67')]=_0x35965e[_0x4271('0x9f')];for(const _0xb43bd5 in _0x35965e[_0x4271('0xbc')]){const _0x57a37a=_0x35965e[_0x4271('0xbc')][_0xb43bd5][_0x4271('0x3e')],_0x174036=_0x576ef7(_0x35965e[_0x4271('0xbc')][_0xb43bd5][_0x4271('0x4b')])||{},_0x254b49=this[_0x4271('0x8c')](_0x35965e[_0x4271('0xbc')][_0xb43bd5][_0x4271('0x11')]);_0x254b49['rootName']=_0xb43bd5,_0x254b49[_0x4271('0x1c')]=!_0x57a37a||!_0x57a37a[_0x4271('0x51')],_0x254b49[_0x4271('0x51')]=()=>_0x254b49[_0x4271('0x1c')],this[_0x4271('0x7')][_0x4271('0x3c')](_0xb43bd5,_0x254b49),this[_0x4271('0x72')][_0x4271('0x3c')](_0xb43bd5,_0x174036),_0x57a37a&&this[_0x4271('0x93')]['set'](_0xb43bd5,_0x57a37a);const _0x4247e2=this['_makeIdsRoot'](_0x254b49);this[_0x4271('0x75')][_0x4271('0x3c')](_0xb43bd5,_0x4247e2);for(const [_0x4f62a9,_0x486c44]of _0x254b49[_0x4271('0x8d')]){if(!_0x4f62a9[_0x4271('0x57')](_0x4271('0xc7')))continue;const _0x3107e6=_0x4f62a9[_0x4271('0xf4')](':')[0x2];for(const _0x50f227 of _0x486c44[_0x4271('0xdf')]({'singleCharacters':!0x0})){const _0x4fc219=this[_0x4271('0x33')](_0x50f227),_0x331baa='elementEnd'==_0x50f227[_0x4271('0xb3')]?_0x50f227[_0x4271('0x3b')]['path'][_0x4271('0xa9')](0x0,-0x1):_0x50f227[_0x4271('0x3b')][_0x4271('0xb0')],_0x3c6594=_0x4247e2[_0x4271('0x8a')](_0x331baa)[_0x4271('0x9b')](_0x4fc219);this['_touched']['set'](_0x3c6594,{'userId':_0x3107e6});}}}this[_0x4271('0x40')]=this[_0x4271('0x2d')];const _0x3c923e=[...Array(this['_revisionId'])[_0x4271('0xbf')]()][_0x4271('0xa9')](0x1)[_0x4271('0xac')](_0x4d8ab6=>!this['_touched'][_0x4271('0x43')](_0x4d8ab6));let _0x393ae3=0x0;const _0x3df1d6=new Map();for(const _0x3b16e0 in _0x35965e['diffData']){const _0x83f522=_0x35965e[_0x4271('0xbc')][_0x3b16e0][_0x4271('0x3e')],_0x45d709=_0x576ef7(_0x35965e['diffData'][_0x3b16e0][_0x4271('0x2')])||{},_0x15d063=this[_0x4271('0x8c')](_0x35965e[_0x4271('0xbc')][_0x3b16e0][_0x4271('0xe0')]);_0x15d063['rootName']=_0x3b16e0,_0x15d063[_0x4271('0x1c')]=!_0x83f522||_0x83f522[_0x4271('0x51')],_0x15d063['isAttached']=()=>_0x15d063[_0x4271('0x1c')],this['_diffRoots'][_0x4271('0x3c')](_0x3b16e0,_0x15d063),this[_0x4271('0x10')]['set'](_0x3b16e0,_0x45d709);const _0x30d7b6=this[_0x4271('0xbe')](_0x15d063,Number[_0x4271('0x18')]);this[_0x4271('0x9c')]['set'](_0x3b16e0,_0x30d7b6),_0x3df1d6[_0x4271('0x3c')](_0x3b16e0,_0x15d063[_0x4271('0x51')]()?_0x45d709:{});for(const [_0x30543d,_0x1ae12e]of _0x15d063['markers']){if(!_0x30543d[_0x4271('0x57')](_0x4271('0xc7')))continue;const _0x2e4d89=_0x30543d['split'](':')[0x2];for(const _0xfe91fc of _0x1ae12e['getWalker']({'singleCharacters':!0x0})){const _0xc126d9=this[_0x4271('0x33')](_0xfe91fc),_0xda6d8c=this[_0x4271('0x2d')]++,_0x5ef643=_0x4271('0xc6')==_0xfe91fc['type']?_0xfe91fc[_0x4271('0x3b')][_0x4271('0xb0')]['slice'](0x0,-0x1):_0xfe91fc[_0x4271('0x3b')][_0x4271('0xb0')];_0x30d7b6[_0x4271('0x8a')](_0x5ef643)['_setAttribute'](_0xc126d9,_0xda6d8c),this[_0x4271('0x26')][_0x4271('0x3c')](_0xda6d8c,{'userId':_0x2e4d89});}}for(const _0x3dc514 of this[_0x4271('0x6c')][_0x4271('0xea')]['createRangeIn'](_0x15d063)['getWalker']({'singleCharacters':!0x0})){const _0x26efab=this[_0x4271('0x33')](_0x3dc514),_0x3c4b3c=_0x4271('0xc6')==_0x3dc514[_0x4271('0xb3')]?_0x3dc514[_0x4271('0x3b')][_0x4271('0xb0')][_0x4271('0xa9')](0x0,-0x1):_0x3dc514[_0x4271('0x3b')][_0x4271('0xb0')],_0x451904=_0x30d7b6['getNodeByPath'](_0x3c4b3c);_0x451904[_0x4271('0x9b')](_0x26efab)>0x0||_0x451904[_0x4271('0xd0')](_0x26efab,_0x3c923e[_0x393ae3++]);}for(const [_0x5089f0,_0x23492f]of _0x15d063['markers'])_0x5089f0[_0x4271('0x57')](_0x4271('0xc7'))||this['_markers']['set'](_0x5089f0,_0x23492f);}const _0x542dce=G(_0x4271('0xd3'));this[_0x4271('0x7')]['set'](_0x4271('0xd3'),_0x542dce),this[_0x4271('0x75')][_0x4271('0x3c')](_0x4271('0xd3'),this[_0x4271('0xbe')](_0x542dce,0x1));const _0x472809=G(_0x4271('0xd3'));this['_diffRoots'][_0x4271('0x3c')](_0x4271('0xd3'),_0x472809),this[_0x4271('0x9c')][_0x4271('0x3c')](_0x4271('0xd3'),this['_makeIdsRoot'](_0x472809,0x1));const _0x3d77b6=Array['from'](this[_0x4271('0x53')])[_0x4271('0x42')](([_0x1e3975,_0x214612])=>[_0x1e3975,q(_0x214612)]);this[_0x4271('0xa2')](this['_lastTo'],_0x3d77b6,this[_0x4271('0x5a')],_0x3df1d6);}[_0x4271('0x8c')](_0x1cf173){const _0x26b752=JSON['parse'](_0x1cf173),_0x6e025d=this[_0x4271('0x6c')]['editing'][_0x4271('0xf9')][_0x4271('0x4e')],_0x233e2a=new _0x518e66(_0x6e025d,_0x26b752['map'](_0xe5d62c=>J(_0xe5d62c,this[_0x4271('0x6c')])));return this[_0x4271('0x6c')][_0x4271('0x35')][_0x4271('0xd7')](_0x233e2a);}[_0x4271('0xa2')](_0x42b674,_0x4f8eb3,_0x29b7cf,_0x10d655){const _0x448a6b=new Map(_0x4f8eb3),_0x35ce52=new Map(_0x576ef7(_0x10d655)),_0x5a5395=new Map();for(const [_0x16a6bc,_0x1b7d08]of _0x29b7cf)_0x5a5395[_0x4271('0x3c')](_0x16a6bc,{'start':_0x1b7d08[_0x4271('0x102')][_0x4271('0xd4')](),'end':_0x1b7d08[_0x4271('0xe1')][_0x4271('0xd4')](),'rootName':_0x1b7d08[_0x4271('0x3a')]['rootName']});this['_savedMetaData'][_0x4271('0x3c')](_0x42b674,{'roots':_0x448a6b,'markers':_0x5a5395,'rootsAttributes':_0x35ce52});}[_0x4271('0xa3')](_0x4319c9){this[_0x4271('0x8f')][_0x4271('0x2f')](_0x4319c9);}['reInit'](){this[_0x4271('0x37')](),this[_0x4271('0x98')]=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this[_0x4271('0x7c')](this['source']);}[_0x4271('0x37')](){this['_touched'][_0x4271('0x23')](),this['_touchedMarkers'][_0x4271('0x23')](),this[_0x4271('0x93')][_0x4271('0x23')](),this[_0x4271('0x53')][_0x4271('0x23')](),this[_0x4271('0x10')][_0x4271('0x23')](),this[_0x4271('0x7')]['clear'](),this[_0x4271('0x72')][_0x4271('0x23')](),this[_0x4271('0x9c')]['clear'](),this[_0x4271('0x75')][_0x4271('0x23')](),this['_markers']['clear'](),this[_0x4271('0x2d')]=0x1,this[_0x4271('0x40')]=this[_0x4271('0x2d')];}[_0x4271('0xbe')](_0x28ba82,_0xb6117a=null){let _0x3f5766=null;_0x28ba82['is'](_0x4271('0xf8'))||(_0x3f5766=new _0x430a33(_0x28ba82[_0x4271('0x48')],{'vid_start':null===_0xb6117a?this[_0x4271('0x2d')]++:_0xb6117a++}));const _0x55c106=[];for(const _0x236836 of _0x28ba82['getChildren']())if(_0x236836['is'](_0x4271('0x2c'))){_0x55c106['push'](this[_0x4271('0xbe')](_0x236836,_0xb6117a));const _0x4c86e5=_0x55c106[_0x55c106[_0x4271('0x6')]-0x1];null!==_0xb6117a&&(_0xb6117a=_0x4c86e5['is'](_0x4271('0x2c'),_0x4271('0xb4'))?_0x4c86e5[_0x4271('0x9b')](_0x4271('0x7f'))+0x1:_0x4c86e5[_0x4271('0x9b')](_0x4271('0x17'))+0x1);}else for(let _0x1b68d3=0x0;_0x1b68d3<_0x236836[_0x4271('0x6a')];_0x1b68d3++)_0x55c106[_0x4271('0x5e')](new _0x430a33('$text',{'vid':null===_0xb6117a?this[_0x4271('0x2d')]++:_0xb6117a++}));if(_0x28ba82['is'](_0x4271('0xf8'))){const _0x52c16f=G(_0x28ba82[_0x4271('0xaa')]);return _0x52c16f[_0x4271('0xcc')](0x0,_0x55c106),_0x52c16f;}return _0x3f5766['_setAttribute'](_0x4271('0x17'),null===_0xb6117a?this[_0x4271('0x2d')]++:_0xb6117a++),_0x3f5766[_0x4271('0xcc')](0x0,_0x55c106),_0x3f5766;}['_calculateMetaData'](_0x593e23,_0x239d35,_0x1ee5b3){this[_0x4271('0x37')]();const {roots:_0x4d7d9b,markers:_0x794a5e,rootsAttributes:_0x212cbb}=this[_0x4271('0x8f')][_0x4271('0x0')](_0x593e23);this[_0x4271('0x7')]=new Map(_0x4d7d9b),this[_0x4271('0x72')]=new Map(_0x576ef7(_0x212cbb));for(const [_0x1977c7,_0x380cf1]of this[_0x4271('0x7')])if('$graveyard'!==_0x1977c7&&(this[_0x4271('0x53')][_0x4271('0x3c')](_0x1977c7,q(_0x380cf1)),this[_0x4271('0x10')]=new Map(_0x576ef7(_0x212cbb)),_0x1ee5b3)){const _0xc8ad88=this['_revisionId'];this['_idsRoots'][_0x4271('0x3c')](_0x1977c7,this['_makeIdsRoot'](_0x380cf1)),this['_baseIdsRoots'][_0x4271('0x3c')](_0x1977c7,this['_makeIdsRoot'](_0x380cf1,_0xc8ad88));}this[_0x4271('0x40')]=this['_revisionId'],this[_0x4271('0x53')][_0x4271('0x3c')](_0x4271('0xd3'),q(this[_0x4271('0x7')]['get'](_0x4271('0xd3')))),_0x1ee5b3&&this[_0x4271('0x9c')][_0x4271('0x3c')](_0x4271('0xd3'),this['_makeIdsRoot'](this[_0x4271('0x7')][_0x4271('0x0')]('$graveyard')));for(const [_0x518a38,_0x978013]of _0x794a5e){const _0x4d0147=this[_0x4271('0x7')][_0x4271('0x0')](_0x978013[_0x4271('0xaa')]),_0x3f5e23=this[_0x4271('0x53')]['get'](_0x978013[_0x4271('0xaa')]),_0x10b97c=new _0x46cebf(this[_0x4271('0xa0')](_0x978013[_0x4271('0x102')],_0x4d0147),this['_fixPosition'](_0x978013[_0x4271('0xe1')],_0x4d0147)),_0x2e748e=this[_0x4271('0x96')](_0x10b97c,_0x3f5e23);_0x4d0147[_0x4271('0x8d')]['set'](_0x518a38,_0x10b97c),this[_0x4271('0x5a')][_0x4271('0x3c')](_0x518a38,_0x2e748e);}this['_applyOperations'](_0x593e23,_0x239d35,_0x1ee5b3);}[_0x4271('0x88')](_0x258483,_0x126cc8,_0x3f14e0){for(const _0x983021 of this[_0x4271('0x5f')][_0x4271('0xc5')](_0x258483,_0x126cc8))this[_0x4271('0x76')](_0x983021,_0x3f14e0);for(const _0xa1c57f of this[_0x4271('0x53')]['values']())_0xa1c57f['markers'][_0x4271('0x23')]();for(const [_0x40eded,_0x10cfac]of this['_markers']){this[_0x4271('0x53')]['get'](_0x10cfac[_0x4271('0x3a')][_0x4271('0xaa')])[_0x4271('0x8d')]['set'](_0x40eded,_0x10cfac[_0x4271('0xd4')]());}const _0x129956=new Map(),_0x73a2c8=new Map();for(const [_0x330970,_0x174b75]of this['_diffRoots'])_0x129956[_0x4271('0x3c')](_0x330970,q(_0x174b75)),_0x73a2c8[_0x4271('0x3c')](_0x330970,this[_0x4271('0x10')][_0x4271('0x0')](_0x330970));this['_saveMetaData'](_0x126cc8,_0x129956,this[_0x4271('0x5a')],_0x73a2c8);}['_getPreviousFrom'](_0x99e575){const _0x287388=Array[_0x4271('0x7e')](this['_savedMetaData']['keys']());_0x287388[_0x4271('0xbb')]((_0x3d94b2,_0x62eb99)=>_0x3d94b2-_0x62eb99),_0x287388[_0x4271('0x4')]();for(const _0x1c0821 of _0x287388)if(_0x1c0821<_0x99e575)return _0x1c0821;return Number['NEGATIVE_INFINITY'];}[_0x4271('0x89')](_0x593e72,_0x426054){const _0x308a96=Array['from'](_0x426054[_0x4271('0x8d')])[_0x4271('0x42')](([_0x396436,_0x258841])=>[_0x396436,this[_0x4271('0x96')](_0x258841,_0x593e72)]);_0x593e72[_0x4271('0x8d')]=new Map(_0x308a96);}[_0x4271('0x85')](_0x496eb1){for(const _0x2194f9 of this[_0x4271('0x5a')]['values']()){const _0x59587e=_0x2194f9['getTransformedByOperation'](_0x496eb1),_0x2bd42f=_0x46cebf[_0x4271('0xe3')](_0x59587e);_0x2194f9[_0x4271('0x102')]=_0x2bd42f['start'],_0x2194f9[_0x4271('0xe1')]=_0x2bd42f[_0x4271('0xe1')];}}[_0x4271('0x76')](_0x322016,_0x5d9ec3){if(_0x4271('0xdb')==_0x322016['type']||_0x4271('0xf0')==_0x322016['type'])return void this['_handleRootOperation'](_0x322016,_0x5d9ec3);if('insert'==_0x322016['type']){const _0x46bb35=_0x322016[_0x4271('0x60')]['root']['rootName'];this[_0x4271('0x53')]['has'](_0x46bb35)||(this[_0x4271('0x53')]['set'](_0x46bb35,G(_0x46bb35,!0x0)),this[_0x4271('0x10')][_0x4271('0x3c')](_0x46bb35,{}),_0x5d9ec3&&this['_idsRoots'][_0x4271('0x3c')](_0x46bb35,G(_0x46bb35,!0x0)));}else{if(_0x4271('0xaf')==_0x322016['type']||_0x4271('0x7d')==_0x322016[_0x4271('0xb3')]||_0x4271('0x8')==_0x322016[_0x4271('0xb3')])return void this['_handleRootAttributeOperation'](_0x322016);}const _0x1b70f0=this[_0x4271('0xba')](_0x322016,this[_0x4271('0x53')]);if(_0x4271('0x61')!==_0x322016['type']&&(_0x1b70f0[_0x4271('0x9a')](),this['_transformMarkers'](_0x1b70f0)),_0x5d9ec3)switch(_0x1b70f0[_0x4271('0xb3')]){case _0x4271('0x4a'):this[_0x4271('0x9d')](_0x322016);break;case _0x4271('0xc4'):case _0x4271('0xcb'):case _0x4271('0x47'):this['_handleMoveOperation'](_0x322016);break;case'merge':this[_0x4271('0xe5')](_0x322016);break;case _0x4271('0xf4'):this[_0x4271('0x3d')](_0x322016);break;case _0x4271('0x61'):this[_0x4271('0x103')](_0x322016);}}[_0x4271('0xba')](_0x4a8ade,_0xa33d6d){const _0x4741b9=_0x4a8ade['clone']();return _0x4741b9[_0x4271('0xd8')]=_0x4a8ade[_0x4271('0xd8')],this[_0x4271('0x15')](_0x4741b9,_0xa33d6d),_0x4741b9;}[_0x4271('0xd2')](_0x43e980){return _0x43e980['map'](_0x113b81=>{const _0x1e4ebb=this[_0x4271('0x33')](_0x113b81);return Number(_0x113b81['item'][_0x4271('0x9b')](_0x1e4ebb));});}[_0x4271('0x94')](_0x7a45ee,_0x53053f){if(_0x7a45ee['is'](_0x4271('0x2c'),_0x4271('0xb4')))_0x53053f[_0x4271('0x5e')]({'item':_0x7a45ee,'type':_0x4271('0x25')});else{_0x7a45ee['is']('element')&&_0x53053f['push']({'item':_0x7a45ee,'type':_0x4271('0x30')});for(const _0x438177 of _0x7a45ee[_0x4271('0xe4')]())this[_0x4271('0x94')](_0x438177,_0x53053f);_0x7a45ee['is'](_0x4271('0x2c'))&&_0x53053f[_0x4271('0x5e')]({'item':_0x7a45ee,'type':'elementEnd'});}return _0x53053f;}['_getState'](){const _0x1b4204=new Map(this[_0x4271('0x26')]),_0x1d372b=new Map(_0x1b4204),_0x25a940=new Map(),_0x5b71c8={'insertions':{},'deletions':{}},_0xf7541c={'insertions':{},'deletions':{}},_0x1930f0=new Map(),_0x35957c=new Set([...this[_0x4271('0x7')][_0x4271('0xbf')](),...this[_0x4271('0x53')]['keys']()]);_0x35957c['delete']('$graveyard');for(const _0x46bd66 of _0x35957c){const _0x5dfb7c=this[_0x4271('0x53')][_0x4271('0x0')](_0x46bd66)||G(_0x46bd66,!0x1),_0x281221=this[_0x4271('0x7')]['get'](_0x46bd66)||G(_0x46bd66,!0x1);_0x5dfb7c[_0x4271('0x51')]()||_0x281221[_0x4271('0x51')]()?(_0x5b71c8[_0x4271('0xe0')][_0x46bd66]=q(_0x5dfb7c),_0x5b71c8[_0x4271('0x11')][_0x46bd66]=q(_0x281221),this[_0x4271('0x89')](_0x5b71c8[_0x4271('0x11')][_0x46bd66],_0x281221),this[_0x4271('0x89')](_0x5b71c8['insertions'][_0x46bd66],_0x5dfb7c),_0xf7541c[_0x4271('0xe0')][_0x46bd66]=this['_generateTape'](this[_0x4271('0x9c')]['get'](_0x46bd66),[]),_0xf7541c[_0x4271('0x11')][_0x46bd66]=this[_0x4271('0x94')](this[_0x4271('0x75')]['get'](_0x46bd66)||G(_0x46bd66,!0x1),[])):_0x35957c['delete'](_0x46bd66);}for(const _0x5a39d7 of _0x35957c){const _0xcfd11b=_0xf7541c[_0x4271('0xe0')][_0x5a39d7];for(const _0x264964 of _0xcfd11b){const _0x53ac76=this['_getVidAttributeName'](_0x264964),_0x28797a=_0x264964[_0x4271('0xc0')][_0x4271('0x9b')](_0x53ac76);_0x1d372b[_0x4271('0x2f')](_0x28797a),_0x28797a>=this['_startingRevisionId']&&_0x25a940['set'](_0x28797a,_0x1b4204[_0x4271('0x0')](_0x28797a));}}for(const _0x2415c9 of _0x35957c){const _0x564e4e=_0xf7541c[_0x4271('0xe0')][_0x2415c9],_0x35cf56=this[_0x4271('0xd2')](_0xf7541c['deletions'][_0x2415c9]);let _0x19d3a3=0x0;for(const _0x49a15e of _0x564e4e){const _0x1d13a2=this[_0x4271('0x33')](_0x49a15e),_0x4230d2=_0x49a15e[_0x4271('0xc0')]['getAttribute'](_0x1d13a2);if(!_0x25a940[_0x4271('0x43')](_0x4230d2)&&!_0x1930f0[_0x4271('0x43')](_0x4230d2)){if(_0x1d372b[_0x4271('0x43')](_0x4230d2))_0x19d3a3++;else{if(_0x4230d2!=_0x35cf56[_0x19d3a3]){const _0x2883be=_0x1b4204[_0x4271('0x0')](_0x4230d2)||_0x1b4204['get'](_0x35cf56[_0x19d3a3]);for(;_0x4230d2!=_0x35cf56[_0x19d3a3];)_0x1d372b[_0x4271('0x43')](_0x35cf56[_0x19d3a3])||(_0x1930f0[_0x4271('0x3c')](_0x35cf56[_0x19d3a3],_0x2883be),_0x1b4204[_0x4271('0x3c')](_0x35cf56[_0x19d3a3],_0x2883be)),_0x19d3a3++;}_0x19d3a3++;}}}}for(const _0x4bad31 of _0x35957c){const _0xb2e3ef=_0xf7541c['insertions'][_0x4bad31];for(const _0x4d4958 of _0xb2e3ef){const _0x3e865d=this[_0x4271('0x33')](_0x4d4958),_0x1183ff=_0x4d4958[_0x4271('0xc0')][_0x4271('0x9b')](_0x3e865d);if(_0x1930f0['has'](_0x1183ff)){const _0x5b0666=_0x1930f0[_0x4271('0x0')](_0x1183ff);_0x1d372b[_0x4271('0x43')](_0x1183ff)||_0x1d372b[_0x4271('0x3c')](_0x1183ff,{..._0x5b0666}),_0x25a940[_0x4271('0x3c')](_0x1183ff,{..._0x5b0666});}}}for(const _0xdbcf50 of _0x1d372b['keys']())_0xdbcf50>=this[_0x4271('0x40')]&&_0x1d372b['delete'](_0xdbcf50);const _0x5a079a=new Map();for(const _0x57f55b of _0x35957c){let _0x1f67e5=_0xf7541c[_0x4271('0xe0')][_0x57f55b];for(const _0x1a7f44 of _0x1f67e5)if(_0x1a7f44[_0x4271('0xc0')]['is'](_0x4271('0x2c'),_0x4271('0xab'))){const _0x558a80=this[_0x4271('0x33')](_0x1a7f44),_0x4df9e8=_0x1a7f44[_0x4271('0xc0')][_0x4271('0x9b')](_0x558a80);if(_0x25a940[_0x4271('0x43')](_0x4df9e8)){const _0x58c31f=_0x1a7f44[_0x4271('0xc0')][_0x4271('0x66')]['parent'][_0x4271('0x9b')](_0x4271('0x6e')),_0x58cfd9=_0x5a079a[_0x4271('0x0')](_0x58c31f)||new Set();_0x58cfd9[_0x4271('0xf7')](_0x25a940[_0x4271('0x0')](_0x4df9e8)[_0x4271('0x5')]),_0x5a079a[_0x4271('0x3c')](_0x58c31f,_0x58cfd9);}}_0x1f67e5=_0xf7541c['deletions'][_0x57f55b];for(const _0x5153a7 of _0x1f67e5)if(_0x5153a7[_0x4271('0xc0')]['is'](_0x4271('0x2c'),_0x4271('0xab'))){const _0x20141f=this[_0x4271('0x33')](_0x5153a7),_0x281e80=_0x5153a7[_0x4271('0xc0')][_0x4271('0x9b')](_0x20141f);if(_0x1d372b['has'](_0x281e80)){const _0x52bb6d=_0x5153a7[_0x4271('0xc0')][_0x4271('0x66')][_0x4271('0x66')][_0x4271('0x9b')]('vid_start'),_0x1227f9=_0x5a079a[_0x4271('0x0')](_0x52bb6d)||new Set();_0x1227f9[_0x4271('0xf7')](_0x1d372b[_0x4271('0x0')](_0x281e80)['userId']),_0x5a079a['set'](_0x52bb6d,_0x1227f9);}}for(const _0x25d5dd of _0x5a079a[_0x4271('0xbf')]())(_0x25a940[_0x4271('0x43')](_0x25d5dd)||_0x1d372b[_0x4271('0x43')](_0x25d5dd))&&_0x5a079a[_0x4271('0x2f')](_0x25d5dd);}for(const _0x5caeb4 of _0x35957c){const _0x1ca7ae=_0xf7541c[_0x4271('0xe0')][_0x5caeb4];let _0x53fa93=null,_0x56aeee=null;for(const _0x152483 of _0x1ca7ae){const _0x4e3c01=this[_0x4271('0x33')](_0x152483),_0x44228e=_0x152483[_0x4271('0xc0')][_0x4271('0x9b')](_0x4e3c01),_0xbc1136=_0x5a079a[_0x4271('0x0')](_0x44228e);_0xbc1136&&_0x4271('0x30')==_0x152483[_0x4271('0xb3')]&&(_0x53fa93=Array[_0x4271('0x7e')](_0xbc1136)[0x0],_0x56aeee=_0x152483['item'][_0x4271('0x9b')](_0x4271('0x17'))),_0x53fa93&&(_0x1d372b[_0x4271('0x3c')](_0x44228e,{'userId':_0x53fa93}),_0x25a940[_0x4271('0x3c')](_0x44228e,{'userId':_0x53fa93})),_0x44228e==_0x56aeee&&(_0x53fa93=null,_0x56aeee=null);}}const _0x471a7f={},_0x39a4d8=new Set();for(const _0x54054a of _0x35957c){const _0x5e3815=_0x5b71c8[_0x4271('0x11')][_0x54054a],_0x4e1b6e=_0x5b71c8[_0x4271('0xe0')][_0x54054a];for(const {userId:_0x438872}of this[_0x4271('0xfe')]['values']())null!==_0x438872&&_0x39a4d8[_0x4271('0xf7')](_0x438872);for(const {userId:_0x3fa828}of this[_0x4271('0x93')][_0x4271('0xb9')]())null!==_0x3fa828&&_0x39a4d8[_0x4271('0xf7')](_0x3fa828);this[_0x4271('0xef')](_0x4e1b6e,_0xf7541c[_0x4271('0xe0')][_0x54054a],_0x25a940,_0x4271('0x2a'),_0x39a4d8),this[_0x4271('0xef')](_0x5e3815,_0xf7541c[_0x4271('0x11')][_0x54054a],_0x1d372b,'deletion',_0x39a4d8),_0x471a7f[_0x54054a]={'insertions':this[_0x4271('0x6b')](_0x4e1b6e),'deletions':this[_0x4271('0x6b')](_0x5e3815),'attachChange':this['_touchedRoots'][_0x4271('0x0')](_0x54054a)||null,'attributesBefore':_0x576ef7(this[_0x4271('0x72')][_0x4271('0x0')](_0x54054a))||{},'attributesAfter':_0x576ef7(this[_0x4271('0x10')][_0x4271('0x0')](_0x54054a))};}return{'diffData':_0x471a7f,'authorsIds':Array[_0x4271('0x7e')](_0x39a4d8)};}[_0x4271('0xc9')](_0x3c34d0){for(const [,_0x3926bb]of _0x3c34d0[_0x4271('0x8d')]){const _0x105f0f=_0x3926bb['start']['getAncestors']()[_0x4271('0xac')](_0x116a10=>_0x4271('0xab')==_0x116a10['name']);for(const _0x4e470d of _0x105f0f)0x1==_0x4e470d['childCount']&&_0x4e470d[_0x4271('0x5c')](0x0)['is'](_0x4271('0x2c'),_0x4271('0x86'))&&_0x4e470d[_0x4271('0x5c')](0x0)['_setAttribute'](_0x4271('0x5b'),!0x0);}}[_0x4271('0x6b')](_0xa0870){this[_0x4271('0xc9')](_0xa0870);const _0x54ec64=this['editor']['data'][_0x4271('0xfc')](_0xa0870,{}),_0x4fd55f=Array['from'](_0x54ec64[_0x4271('0xe4')]())[_0x4271('0x42')](_0x3d1e56=>this['_getViewJson'](_0x3d1e56));return JSON['stringify'](_0x4fd55f);}['_getViewJson'](_0x3560f3){if(_0x3560f3['is']('$text'))return _0x3560f3[_0x4271('0x35')];{const _0x299ecc=_0x3560f3;return{'type':Object[_0x4271('0xbf')](B)['find'](_0x51d865=>_0x3560f3 instanceof B[_0x51d865]),'name':_0x299ecc[_0x4271('0x48')],'attributes':Array[_0x4271('0x7e')](_0x299ecc[_0x4271('0xc')]()),'children':Array['from'](_0x299ecc[_0x4271('0xe4')]())[_0x4271('0x42')](_0x931149=>this[_0x4271('0xdd')](_0x931149))};}}['_markChanges'](_0x4fa873,_0x303427,_0x40fe06,_0x17cd7b,_0x35f7b0){let _0x1ec7e2=null,_0x36c668=null,_0x2e4c17=0x0;const _0x18c421=this[_0x4271('0x6c')]['model'];for(let _0x3e46d9=0x0;_0x3e46d9<_0x303427['length'];_0x3e46d9++){const _0x442101=this[_0x4271('0x33')](_0x303427[_0x3e46d9]),_0x3c3356=_0x303427[_0x3e46d9][_0x4271('0xc0')]['getAttribute'](_0x442101),_0x114280=_0x40fe06[_0x4271('0x0')](_0x3c3356),_0x480468=_0x3e46d9==_0x303427[_0x4271('0x6')]-0x1;(!_0x1ec7e2&&_0x114280&&(_0x1ec7e2=_0x114280,_0x36c668=_0x303427[_0x3e46d9]),_0x1ec7e2&&(!_0x114280||_0x114280['userId']!=_0x1ec7e2[_0x4271('0x5')]))&&(_0x1a08d2(_0x114280,L(_0x36c668,_0x4fa873,_0x18c421),L(_0x303427[_0x3e46d9],_0x4fa873,_0x18c421)),_0x1ec7e2=_0x114280||null,_0x36c668=_0x114280?_0x303427[_0x3e46d9]:null),_0x1ec7e2&&_0x480468&&_0x1a08d2(_0x114280,L(_0x36c668,_0x4fa873,_0x18c421),W(_0x303427[_0x3e46d9],_0x4fa873,_0x18c421));}function _0x1a08d2(_0x3b061b,_0x4c2660,_0x1f2303){const _0x76a20b=_0x1ec7e2[_0x4271('0x5')],_0x29aa37='revision:'+_0x17cd7b+':'+_0x76a20b+':'+_0x2e4c17++,_0x5b9f71=_0x18c421[_0x4271('0x1e')](_0x4c2660,_0x1f2303);_0x4fa873[_0x4271('0x8d')]['set'](_0x29aa37,_0x5b9f71),null!==_0x76a20b&&_0x35f7b0[_0x4271('0xf7')](_0x76a20b);}}[_0x4271('0x33')](_0x5e92d6){switch(_0x5e92d6[_0x4271('0xb3')]){case _0x4271('0x30'):return _0x4271('0x6e');case'elementEnd':return _0x4271('0x17');default:return _0x4271('0x7f');}}[_0x4271('0x15')](_0x45c836,_0x233a17){_0x45c836[_0x4271('0x82')]=null;for(const _0x23a2f7 in _0x45c836){const _0x3d916a=_0x45c836[_0x23a2f7];if(_0x3d916a instanceof _0x28df84){const _0xa8d30d=_0x233a17[_0x4271('0x0')](_0x3d916a[_0x4271('0x3a')][_0x4271('0xaa')]);_0x45c836[_0x23a2f7]=this[_0x4271('0xa0')](_0x3d916a,_0xa8d30d);}if(_0x3d916a instanceof _0x46cebf){const _0x4f9ec5=_0x233a17['get'](_0x3d916a[_0x4271('0x3a')][_0x4271('0xaa')]);_0x45c836[_0x23a2f7]=this[_0x4271('0x96')](_0x3d916a,_0x4f9ec5);}_0x4271('0x3a')===_0x23a2f7&&(_0x45c836[_0x4271('0x3a')]=_0x233a17[_0x4271('0x0')](_0x45c836[_0x4271('0x3a')][_0x4271('0xaa')]));}}['_fixRange'](_0x3b7530,_0xc026e4){return this[_0x4271('0x6c')][_0x4271('0xea')]['createRange'](this[_0x4271('0xa0')](_0x3b7530[_0x4271('0x102')],_0xc026e4),this['_fixPosition'](_0x3b7530[_0x4271('0xe1')],_0xc026e4));}[_0x4271('0xa0')](_0x15edef,_0x63882d){return this[_0x4271('0x6c')]['model']['createPositionFromPath'](_0x63882d,_0x15edef['path'],_0x15edef['stickiness']);}[_0x4271('0x9d')](_0x26537f){const _0x1cbcff=this[_0x4271('0x9c')][_0x4271('0x0')](_0x26537f[_0x4271('0x60')][_0x4271('0x3a')]['rootName']),_0x48e5f4=this[_0x4271('0xa0')](_0x26537f[_0x4271('0x60')],_0x1cbcff),_0x281408=null===_0x26537f[_0x4271('0xd8')]?null:_0x26537f[_0x4271('0xd8')]||this[_0x4271('0x6c')][_0x4271('0xfa')][_0x4271('0x0')]('Users')['me']['id'],_0x505af1=_0x48e5f4[_0x4271('0x66')],_0x553260=this[_0x4271('0x2d')],_0x494678=[];for(const _0x3bf3a8 of _0x26537f[_0x4271('0xc3')])if(_0x3bf3a8['is'](_0x4271('0x2c')))_0x494678['push'](this['_makeIdsRoot'](_0x3bf3a8));else for(let _0x3909e9=0x0;_0x3909e9<_0x3bf3a8[_0x4271('0x6a')];_0x3909e9++)_0x494678['push'](new _0x430a33(_0x4271('0xb4'),{'vid':this['_revisionId']++}));const _0x53ca4c=this[_0x4271('0x2d')];for(let _0x38946b=_0x553260;_0x38946b<_0x53ca4c;_0x38946b++)this[_0x4271('0x26')][_0x4271('0x3c')](_0x38946b,{'userId':_0x281408});_0x505af1[_0x4271('0xcc')](_0x48e5f4['offset'],_0x494678);}['_handleMoveOperation'](_0x416653){(_0x416653=this[_0x4271('0xba')](_0x416653,this[_0x4271('0x9c')]))[_0x4271('0x9a')]();const _0x42b1d8=null===_0x416653[_0x4271('0xd8')]?null:_0x416653['_authorId']||this[_0x4271('0x6c')]['plugins']['get'](_0x4271('0x90'))['me']['id'],_0x30d3ff=_0x416653['getMovedRangeStart'](),_0x407e0c=_0x30d3ff['parent'],_0x32ca1d=_0x30d3ff[_0x4271('0xed')];!function _0x14d14e(_0x1ede4d,_0x3a5eac,_0x7e5786,_0x28c1c5){for(let _0x77621b=_0x7e5786;_0x77621b<_0x28c1c5;_0x77621b++){const _0x115d15=_0x3a5eac[_0x4271('0x5c')](_0x77621b);_0x115d15['is']('element',_0x4271('0xb4'))?_0x1ede4d[_0x4271('0x3c')](_0x115d15[_0x4271('0x9b')](_0x4271('0x7f')),{'userId':_0x42b1d8}):(_0x1ede4d['set'](_0x115d15[_0x4271('0x9b')](_0x4271('0x6e')),{'userId':_0x42b1d8}),_0x14d14e(_0x1ede4d,_0x115d15,0x0,_0x115d15[_0x4271('0x36')]),_0x1ede4d[_0x4271('0x3c')](_0x115d15[_0x4271('0x9b')](_0x4271('0x17')),{'userId':_0x42b1d8}));}}(this[_0x4271('0x26')],_0x407e0c,_0x32ca1d,_0x32ca1d+_0x416653[_0x4271('0x52')]);}['_handleMergeOperation'](_0x47748e){const _0x28e685=null===(_0x47748e=this[_0x4271('0xba')](_0x47748e,this['_idsRoots']))[_0x4271('0xd8')]?null:_0x47748e[_0x4271('0xd8')]||this[_0x4271('0x6c')][_0x4271('0xfa')]['get'](_0x4271('0x90'))['me']['id'],_0x4815c0=_0x47748e['targetPosition'][_0x4271('0x66')],_0x512f6a=_0x47748e[_0x4271('0xa4')]['parent'],_0x5b787d=_0x4815c0[_0x4271('0x9b')](_0x4271('0x17')),_0xf45cbf=_0x512f6a[_0x4271('0x9b')](_0x4271('0x6e'));_0x4815c0[_0x4271('0xd0')](_0x4271('0x17'),_0x512f6a[_0x4271('0x9b')]('vid_end')),_0x512f6a[_0x4271('0xd0')]('vid_end',_0x5b787d),this[_0x4271('0x26')][_0x4271('0x3c')](_0xf45cbf,{'userId':_0x28e685}),this[_0x4271('0x26')][_0x4271('0x3c')](_0x5b787d,{'userId':_0x28e685}),_0x47748e[_0x4271('0x9a')]();}[_0x4271('0x3d')](_0x3269a2){const _0x50bd9c=null===(_0x3269a2=this[_0x4271('0xba')](_0x3269a2,this[_0x4271('0x9c')]))[_0x4271('0xd8')]?null:_0x3269a2['_authorId']||this['editor'][_0x4271('0xfa')]['get'](_0x4271('0x90'))['me']['id'],_0x58b7f8=_0x3269a2[_0x4271('0xae')],_0x18cd5f=_0x3269a2['splitPosition']['parent'];_0x3269a2[_0x4271('0x9a')]();const _0x4c2024=_0x18cd5f[_0x4271('0x9b')](_0x4271('0x17')),_0x180463=_0x3269a2[_0x4271('0x87')][_0x4271('0x73')];if(_0x58b7f8){const _0x1c5d15=_0x180463[_0x4271('0x9b')](_0x4271('0x17')),_0x4b4da9=_0x18cd5f[_0x4271('0x9b')]('vid_end');_0x18cd5f[_0x4271('0xd0')]('vid_end',_0x1c5d15),_0x180463[_0x4271('0xd0')]('vid_end',_0x4b4da9),this['_touched'][_0x4271('0x3c')](_0x18cd5f['getAttribute'](_0x4271('0x17')),{'userId':_0x50bd9c}),this['_touched'][_0x4271('0x3c')](_0x180463[_0x4271('0x9b')](_0x4271('0x6e')),{'userId':_0x50bd9c});}else{const _0x55039c=this['_revisionId']++,_0x3bf45a=this[_0x4271('0x2d')]++;_0x18cd5f['_setAttribute']('vid_end',_0x55039c),_0x180463[_0x4271('0xd0')]('vid_start',_0x3bf45a),_0x180463['_setAttribute'](_0x4271('0x17'),_0x4c2024),this[_0x4271('0x26')][_0x4271('0x3c')](_0x55039c,{'userId':_0x50bd9c}),this[_0x4271('0x26')][_0x4271('0x3c')](_0x3bf45a,{'userId':_0x50bd9c});}}[_0x4271('0x103')](_0x577985){if(!_0x577985[_0x4271('0xb6')])return;const _0x2554f2=(_0x577985=this[_0x4271('0xba')](_0x577985,this[_0x4271('0x53')]))[_0x4271('0xb')]?_0x577985[_0x4271('0xb')][_0x4271('0x3a')]:null,_0x4e92e2=_0x577985[_0x4271('0x74')]?_0x577985[_0x4271('0x74')][_0x4271('0x3a')]:null;_0x2554f2&&this[_0x4271('0x5a')][_0x4271('0x2f')](_0x577985['name']),_0x4e92e2&&this[_0x4271('0x5a')]['set'](_0x577985['name'],_0x577985[_0x4271('0x74')][_0x4271('0xd4')]());const _0x12974b=null===_0x577985[_0x4271('0xd8')]?null:_0x577985['_authorId']||this[_0x4271('0x6c')]['plugins'][_0x4271('0x0')](_0x4271('0x90'))['me']['id'],_0x4cadba=_0x577985[_0x4271('0x48')];if(!this[_0x4271('0xfe')][_0x4271('0x43')](_0x4cadba))return void this['_touchedMarkers'][_0x4271('0x3c')](_0x4cadba,{'range':_0x577985[_0x4271('0xb')],'userId':_0x12974b});const _0x2b037f=this[_0x4271('0xfe')][_0x4271('0x0')](_0x4cadba),_0x15a1a1=_0x2b037f[_0x4271('0xfb')],_0x4343bf=_0x577985[_0x4271('0x74')];null==_0x15a1a1&&null==_0x4343bf||_0x15a1a1&&_0x4343bf&&_0x15a1a1[_0x4271('0x9')](_0x4343bf)?this['_touchedMarkers'][_0x4271('0x2f')](_0x577985[_0x4271('0x48')]):_0x2b037f[_0x4271('0x5')]=_0x12974b;}[_0x4271('0xce')](_0x575af7,_0x4c56bc){this['_diffRoots']['has'](_0x575af7['rootName'])?this['_diffRoots'][_0x4271('0x0')](_0x575af7[_0x4271('0xaa')])['_isAttached']=_0x575af7[_0x4271('0xa8')]:(this[_0x4271('0x53')]['set'](_0x575af7[_0x4271('0xaa')],G(_0x575af7[_0x4271('0xaa')],!0x0)),this[_0x4271('0x10')][_0x4271('0x3c')](_0x575af7[_0x4271('0xaa')],{}),_0x4c56bc&&this[_0x4271('0x9c')][_0x4271('0x3c')](_0x575af7[_0x4271('0xaa')],G(_0x575af7[_0x4271('0xaa')],!0x0)));const _0x5df42e=null===_0x575af7[_0x4271('0xd8')]?null:_0x575af7[_0x4271('0xd8')]||this[_0x4271('0x6c')][_0x4271('0xfa')][_0x4271('0x0')]('Users')['me']['id'],_0x48947c=this[_0x4271('0x93')][_0x4271('0x0')](_0x575af7[_0x4271('0xaa')]);_0x48947c&&_0x48947c[_0x4271('0x5')]===_0x5df42e?this['_touchedRoots'][_0x4271('0x2f')](_0x575af7['rootName']):this[_0x4271('0x93')][_0x4271('0x3c')](_0x575af7[_0x4271('0xaa')],{'userId':_0x5df42e,'isAttached':_0x575af7[_0x4271('0xa8')]});}[_0x4271('0x77')](_0x1710ce){const _0x4d7705=this[_0x4271('0x10')][_0x4271('0x0')](_0x1710ce[_0x4271('0x3a')][_0x4271('0xaa')]);null===_0x1710ce[_0x4271('0x7a')]?delete _0x4d7705[_0x1710ce[_0x4271('0xf')]]:_0x4d7705[_0x1710ce[_0x4271('0xf')]]=_0x1710ce[_0x4271('0x7a')];}}function q(_0x24fd95){const _0x38df27=G(_0x24fd95[_0x4271('0xaa')],_0x24fd95[_0x4271('0x51')]());for(const _0x2a5843 of _0x24fd95[_0x4271('0xe4')]()){const _0x5a27cb=_0x2a5843['_clone'](!0x0);_0x38df27[_0x4271('0x8b')](_0x5a27cb);}return _0x38df27;}function G(_0x16795d,_0x20cdc7=!0x0){const _0x46f132=new _0xacb02b();return _0x46f132[_0x4271('0xaa')]=_0x16795d,_0x46f132['_isAttached']=_0x20cdc7,_0x46f132[_0x4271('0x51')]=()=>_0x46f132[_0x4271('0x1c')],_0x46f132;}function L(_0x416831,_0x5c353c,_0x59144c){const _0x1998c7=_0x4271('0xc6')==_0x416831['type']?_0x59144c[_0x4271('0xcf')](_0x416831[_0x4271('0xc0')],_0x4271('0xe1')):_0x59144c[_0x4271('0x2e')](_0x416831[_0x4271('0xc0')]);return _0x59144c[_0x4271('0x3')](_0x5c353c,_0x1998c7[_0x4271('0xb0')],_0x1998c7['stickiness']);}function W(_0x8cd4ad,_0x377e26,_0x4fbad0){const _0x2e5ea6=_0x4271('0x30')==_0x8cd4ad['type']?_0x4fbad0['createPositionAt'](_0x8cd4ad[_0x4271('0xc0')],0x0):_0x4fbad0[_0x4271('0xd6')](_0x8cd4ad[_0x4271('0xc0')]);return _0x4fbad0[_0x4271('0x3')](_0x377e26,_0x2e5ea6[_0x4271('0xb0')],_0x2e5ea6[_0x4271('0x1a')]);}
23
+ const _0x2b01=['_update','map','stickiness','default','getNodeByPath','currentRevision','_createFromRanges','_baseRoots','revision-end','move','_getPreviousFrom','_loadedStateData','marker','vid','setSource','_bufferedUpdates','_continueCurrentRevision','_touchedRoots','_fixRange','isEqual','_initialRevisionId','config','update','getChildren','RealTimeCollaborationClient','_prepareViewToSave','Initial\x20revision','$graveyard','_removeMetaData','revision:','item','_makeRevision','_getVidAttributeName','for','getOperation','attachChange','_lastTo','getRootNames','size','getTime','_authorId','attributes','_createInitialRevision','howMany','position','model','addRevisionData','split','_reset','baseVersion','_addPendingAction','creatorId','_generateTape','affectsData','push','authorsIds','_handleMarkerOperation','createRevision','_cloneOperation','newRange','_handleRootOperation','processor','insert','source','_isAttached','_handleSplitOperation','_getState','max','_getViewJson','NEGATIVE_INFINITY','_removeRevisionMarkers','resolve','_processRootBeforeSave','childCount','_bufferUpdate','find','add','_clone','paragraph','sourcePosition','from','revision-start','collaboration.channelId','Users','sendBufferedUpdates','_handleRootAttributeOperation','useFillerType','initialData','previousPosition','keys','requires','_handleMergeOperation','newValue','vid_end','elementStart','isEnabled','children','_handleInsertOperation','_createCurrentRevision','view','getRange','$text','createdAt','dataDowncast','repository','clone','_baseRootsAttributes','fromVersion','element','finally','rootsAttributes','_appendChild','fromEntries','getAncestors','set','splitPosition','getRoot','remove','getRevisionRootsAttributes','length','_revisionId','createRange','bind','creator','RevisionTracker','_calculateMetaData','init','_idsRoots','editor','start','detachRoot','document','getLatestVersion','addRoot','buildRevisionData','_loadState','includes','getUser','reinsert','removeRootAttribute','forEach','upcast','_pendingAction','_startingRevisionId','editor-initial-data-replaced-with-revision-data','_applyOperations','tableCell','_getFromVersion','_isPendingUpdate','_makeModelFromViewString','_setAttribute','_makeIdsRoot','plugins','_findInsertionIndex','_transformMarkers','ready','isAttached','roots','adapter','getChild','toView','PendingActions','dataToMarker','root','_lastFrom','diffData','_loadRevisionData','editing','getAttribute','setRevisionData','userId','oldRange','delete','_isInit','getCurrentRevisionId','_copyMarkers','toVersion','attributesAfter','_touched','_fixPosition','data','PENDING_ACTION_REVISION_HISTORY','getRevision','_setConversion','slice','offsetSize','merge','key','_insertChild','vid_start','_touchedMarkers','_handleOperation','_diffRootsAttributes','parse','markerToData','_diffRoots','name','deletions','_saveMetaData','has','_startingVersion','loadState','then','changeRootAttribute','getRevisionDocumentData','clear','_baseIdsRoots','_execute','_savedMetaData','type','insertions','RevisionsRepository','toData','authors','shift','locale','getWalker','graveyardPosition','_getBaseVids','range','_markChanges','insertion','getRevisions','_operations','version','_markers','createPositionBefore','deletion','startsWith','markers','_removePendingAction','elementEnd','isReady','reInit','_revisionDataBuilder','_source','pluginName','isAdd','getAttributes','addRevision','getData','rootName','_replaceEditorDataWithRevisionData','_fixOperation','addRootAttribute','trim','path','end','parent','filter','_handleMoveOperation','values','history','reverse','get','offset','documentFragment','createPositionFromPath','string'];(function(_0x1274fb,_0x2b01af){const _0xe38960=function(_0x483bbe){while(--_0x483bbe){_0x1274fb['push'](_0x1274fb['shift']());}};_0xe38960(++_0x2b01af);}(_0x2b01,0xb1));const _0xe389=function(_0x1274fb,_0x2b01af){_0x1274fb=_0x1274fb-0x0;let _0xe38960=_0x2b01[_0x1274fb];return _0xe38960;};import{Users as _0x17d52b}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x17299e,PendingActions as _0x2664ba}from'ckeditor5/src/core';import{logWarning as _0x58b9bf,uid as _0x32417b}from'ckeditor5/src/utils';import{Position as _0xcad0e,Range as _0x57b050,Element as _0x158621,DocumentFragment as _0x1576b0,ViewText as _0x105f45,ViewElement as _0x5dcad1,ViewContainerElement as _0x5f4c67,ViewAttributeElement as _0x30309c,ViewEmptyElement as _0x3159de,ViewRawElement as _0x41b9c9,ViewUIElement as _0x2622d0,ViewDocumentFragment as _0x4dc568}from'ckeditor5/src/engine';import _0xade6f9 from'./revisionsrepository';import{getTranslation as _0x280d66}from'./utils/common-translations';import{cloneDeep as _0x8b954a,isEqual as _0x9f05e}from'lodash-es';const B={'c':_0x5f4c67,'a':_0x30309c,'e':_0x3159de,'r':_0x41b9c9,'u':_0x2622d0};export default class l extends _0x17299e{static get[_0xe389('0x3b')](){return _0xe389('0xce');}static get[_0xe389('0xac')](){return[_0x17d52b,_0xade6f9,_0x2664ba];}constructor(_0x5e0b81){super(_0x5e0b81),this[_0xe389('0xf0')]=null,this[_0xe389('0x57')]=null,this['_revisionDataBuilder']=new H(this['editor']),this[_0xe389('0x66')]=this['editor']['config'][_0xe389('0x4d')]('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this[_0xe389('0x5d')]=null;const _0x315d6a=_0x32417b();this[_0xe389('0x3a')]={'history':this[_0xe389('0xd2')][_0xe389('0x7f')]['document']['history'],'getLatestVersion':()=>Promise[_0xe389('0x99')](this['editor'][_0xe389('0x7f')][_0xe389('0xd5')][_0xe389('0x2f')]),'getCurrentRevisionId':()=>_0x315d6a},this[_0xe389('0xc4')](_0xe389('0x37'),!0x1),this[_0xe389('0xc4')](_0xe389('0xb1'),!0x0),this[_0xe389('0xc4')]('_isPendingUpdate',!0x1),this[_0xe389('0xd2')][_0xe389('0x67')]['define']('revisionHistory.resumeUnsavedRevision',!0x0),this[_0xe389('0xd2')]['conversion'][_0xe389('0x73')](_0xe389('0xdf'))[_0xe389('0xf4')]({'view':'revision'});}[_0xe389('0xd0')](){this[_0xe389('0xba')]=this['editor'][_0xe389('0xea')][_0xe389('0x4d')](_0xe389('0x22')),this[_0xe389('0x6')](),this['editor'][_0xe389('0x3')]['on'](_0xe389('0xed'),()=>{const _0x9d7856=this[_0xe389('0xba')][_0xe389('0x5')](0x0),_0x561989=_0x9d7856&&null===_0x9d7856[_0xe389('0xcd')]?_0x9d7856:null;if(this[_0xe389('0x62')]=!!_0x561989&&this[_0xe389('0xd2')][_0xe389('0x67')][_0xe389('0x4d')]('revisionHistory.resumeUnsavedRevision'),this[_0xe389('0xd2')][_0xe389('0xea')]['has'](_0xe389('0x6a'))){const _0xb4e19b=this['_source'][_0xe389('0x100')](),_0x10b8b4=this['repository'][_0xe389('0x5')](_0xb4e19b);if(_0x10b8b4)this[_0xe389('0x17')]=_0x10b8b4[_0xe389('0xbd')],this[_0xe389('0x62')]=!0x1;else{const _0x499ed0=this[_0xe389('0x3a')][_0xe389('0x4b')][_0xe389('0x2e')]['find'](_0x1f22fa=>!_0x1f22fa[_0xe389('0xff')]),_0x104ddb=_0x499ed0?_0x499ed0[_0xe389('0x83')]:this[_0xe389('0x3a')][_0xe389('0x4b')][_0xe389('0x2f')];_0x9d7856?(_0x9d7856[_0xe389('0x102')]<_0x104ddb&&_0x9d7856[_0xe389('0x52')]({'toVersion':_0x104ddb}),this[_0xe389('0x62')]?(this[_0xe389('0x3a')][_0xe389('0x100')]=()=>_0x561989['id'],this[_0xe389('0x17')]=_0x561989[_0xe389('0xbd')]):(this[_0xe389('0x17')]=_0x9d7856['toVersion'],this[_0xe389('0x62')]=!0x1)):(this[_0xe389('0x17')]=_0x104ddb,this[_0xe389('0x62')]=!0x1);}}else _0x561989&&(this[_0xe389('0xd2')]['model']['document'][_0xe389('0x4b')][_0xe389('0x2f')]=Math[_0xe389('0x95')](_0x561989[_0xe389('0x102')],this[_0xe389('0xd2')][_0xe389('0x7f')][_0xe389('0xd5')][_0xe389('0x4b')][_0xe389('0x2f')]),_0x561989['fromVersion']===_0x561989['toVersion']?(0x0!==_0x561989[_0xe389('0xbd')]&&(this[_0xe389('0x3a')][_0xe389('0x100')]=()=>_0x561989['id']),this[_0xe389('0x62')]=!0x1):this['_continueCurrentRevision']&&(this[_0xe389('0x3a')]['getCurrentRevisionId']=()=>_0x561989['id'],this[_0xe389('0x17')]=_0x561989[_0xe389('0xbd')])),this[_0xe389('0x62')]||(this[_0xe389('0x17')]=this[_0xe389('0xd2')][_0xe389('0x7f')][_0xe389('0xd5')][_0xe389('0x2f')]);this[_0xe389('0x39')][_0xe389('0xd0')](this[_0xe389('0x3a')][_0xe389('0x4b')]),this[_0xe389('0x7c')](this[_0xe389('0x17')]),this[_0xe389('0xb4')](this[_0xe389('0x17')]),this[_0xe389('0xf0')]&&this[_0xe389('0xa6')]();}),this[_0xe389('0xcc')](_0xe389('0x37'))['to'](this,_0xe389('0xe6'),_0x568b61=>!_0x568b61);}async['afterInit'](){if(this[_0xe389('0xba')]['length']>0x0){const _0x3a479b=this[_0xe389('0xba')][_0xe389('0x5')](0x0),_0x1f5734=await this['getRevisionDocumentData'](_0x3a479b),_0x5cc22f=await this[_0xe389('0xc8')](_0x3a479b);this[_0xe389('0x41')](_0x1f5734,_0x5cc22f);}}[_0xe389('0x60')](_0x39addf){this[_0xe389('0x3a')]=_0x39addf;}async[_0xe389('0x68')](){const _0x4c4730=await this['_source'][_0xe389('0xd6')]();if(_0x4c4730>this[_0xe389('0x57')][_0xe389('0x102')]){await this['_loadState']();const _0x3893aa=this[_0xe389('0xd8')]({'revision':this[_0xe389('0x57')],'to':_0x4c4730});_0x3893aa[_0xe389('0x24')]=_0x3893aa[_0xe389('0x89')][_0xe389('0x53')](_0x5b46d6=>this[_0xe389('0xd2')][_0xe389('0xea')][_0xe389('0x4d')](_0xe389('0xa5'))[_0xe389('0xdb')](_0x5b46d6)),this[_0xe389('0x57')][_0xe389('0x52')](_0x3893aa);}}async[_0xe389('0xd9')](){this['_continueCurrentRevision']&&!this[_0xe389('0x5d')]&&(await this[_0xe389('0xf8')](this[_0xe389('0x57')]),this['_revisionDataBuilder'][_0xe389('0x18')](this[_0xe389('0x57')]),this[_0xe389('0x5d')]={'fromVersion':this[_0xe389('0x57')][_0xe389('0xbd')],'authors':this[_0xe389('0x57')]['authors'][_0xe389('0x7')]()});}async['saveRevision'](_0x1eada0={},_0x11a0f5=null){const _0x3f9c93=[];await this[_0xe389('0xd9')](),this[_0xe389('0x62')]=!0x1,_0x11a0f5>this[_0xe389('0x57')]['toVersion']&&(_0x11a0f5=null),null===_0x11a0f5&&(_0x11a0f5=await this[_0xe389('0x3a')][_0xe389('0xd6')]());const _0x1d7160=this[_0xe389('0xe5')](_0x11a0f5),_0x3ee97c=this[_0xe389('0xd8')]({'from':_0x1d7160,'to':_0x11a0f5});if(this['currentRevision'][_0xe389('0x102')]<_0x11a0f5){const _0x42d8f7=this[_0xe389('0xd8')]({'revision':this[_0xe389('0x57')],'from':_0x11a0f5,'to':_0x11a0f5});_0x42d8f7[_0xe389('0x24')]=[],_0x42d8f7['authorsIds']=[],_0x42d8f7['id']=this['currentRevision']['id'],this[_0xe389('0x57')][_0xe389('0x52')](_0x42d8f7,!0x0),delete _0x42d8f7[_0xe389('0x24')],_0x3f9c93[_0xe389('0x88')](_0x42d8f7);}_0x1eada0[_0xe389('0x85')]=this[_0xe389('0xd2')][_0xe389('0xea')][_0xe389('0x4d')](_0xe389('0xa5'))['me']['id'],_0x1eada0[_0xe389('0x13')]=_0x1eada0[_0xe389('0x13')]||null,_0x1eada0['id']=_0x1eada0['id']||_0x32417b(),_0x1eada0={..._0x1eada0,..._0x3ee97c};const _0x4e79da=this[_0xe389('0x80')](_0x1eada0);_0x3f9c93[_0xe389('0x88')](_0x1eada0);const _0x58c6d0=this['repository']['getIndex'](_0x4e79da);if(0x0!==_0x58c6d0){const _0x5299b3=this[_0xe389('0xba')][_0xe389('0x5')](_0x58c6d0-0x1);if(_0x5299b3[_0xe389('0xbd')]!==_0x11a0f5){const _0x30ad86=this[_0xe389('0x39')][_0xe389('0x3f')](_0x11a0f5,_0x5299b3['toVersion']),_0x1193f5={'id':_0x5299b3['id'],'diffData':_0x30ad86[_0xe389('0xf7')],'authorsIds':_0x30ad86['authorsIds'],'authors':_0x30ad86[_0xe389('0x89')][_0xe389('0x53')](_0x144ebc=>this[_0xe389('0xd2')][_0xe389('0xea')][_0xe389('0x4d')]('Users')[_0xe389('0xdb')](_0x144ebc)),'fromVersion':_0x11a0f5};_0x5299b3===this[_0xe389('0x57')]&&(_0x1193f5[_0xe389('0xb8')]=new Date(_0x1eada0[_0xe389('0xb8')][_0xe389('0x79')]()+0xa)),_0x5299b3[_0xe389('0x52')](_0x1193f5,!0x0),delete _0x1193f5[_0xe389('0x24')],_0x3f9c93[_0xe389('0x88')](_0x1193f5);}}if(this[_0xe389('0xf0')]){for(const _0x21d029 of _0x3f9c93)this[_0xe389('0x9c')](_0x21d029['id'],_0x21d029,!0x0);this[_0xe389('0xa6')]();}return _0x4e79da;}[_0xe389('0x80')](_0x1ba137){const _0x5979a3=this[_0xe389('0xba')][_0xe389('0x8b')](_0x1ba137);return this[_0xe389('0xf0')]&&_0x5979a3['on'](_0xe389('0x52'),(_0x1683a3,_0x3c4ba9,_0x56a7d0)=>{_0x56a7d0||(this[_0xe389('0x9c')](_0x3c4ba9['id'],_0x3c4ba9,!0x0),this[_0xe389('0xa6')]());}),this[_0xe389('0xba')][_0xe389('0x3e')](_0x5979a3,this[_0xe389('0xeb')](_0x5979a3)),_0x5979a3;}async[_0xe389('0x1b')](_0x2f4ce2){await this[_0xe389('0xf8')](_0x2f4ce2);const _0x2bc07f={};for(const _0x4d0cd1 in _0x2f4ce2[_0xe389('0xf7')]){if(_0x2f4ce2[_0xe389('0xf7')][_0x4d0cd1][_0xe389('0x75')]&&!_0x2f4ce2[_0xe389('0xf7')][_0x4d0cd1]['attachChange']['isAttached'])continue;const _0x481492=this['_removeRevisionMarkers'](JSON[_0xe389('0x10')](_0x2f4ce2[_0xe389('0xf7')][_0x4d0cd1]['insertions'])),_0x47c47d=this[_0xe389('0xd2')][_0xe389('0xf9')][_0xe389('0xb5')][_0xe389('0xd5')],_0x492459=new _0x4dc568(_0x47c47d,_0x481492['map'](_0x30a771=>J(_0x30a771,this['editor'])));this[_0xe389('0xd2')][_0xe389('0x3')][_0xe389('0x8f')][_0xe389('0xa8')]('marked'),_0x2bc07f[_0x4d0cd1]=this['editor'][_0xe389('0x3')][_0xe389('0x8f')][_0xe389('0x23')](_0x492459),this[_0xe389('0xd2')][_0xe389('0x3')][_0xe389('0x8f')]['useFillerType'](_0xe389('0x55'));}return _0x2bc07f;}async['getRevisionRootsAttributes'](_0x39b1af){await this[_0xe389('0xf8')](_0x39b1af);const _0x3e17f7={};for(const _0x288ed7 in _0x39b1af[_0xe389('0xf7')])_0x39b1af[_0xe389('0xf7')][_0x288ed7]['attachChange']&&!_0x39b1af[_0xe389('0xf7')][_0x288ed7]['attachChange'][_0xe389('0xee')]||(_0x3e17f7[_0x288ed7]=_0x39b1af['diffData'][_0x288ed7][_0xe389('0x0')]||{});return _0x3e17f7;}[_0xe389('0xa6')](){if(0x0===this[_0xe389('0x61')]['size'])return;if(this[_0xe389('0xe6')])return;let _0x4fef4d=Array[_0xe389('0xa2')](this[_0xe389('0x61')][_0xe389('0x4a')]());this[_0xe389('0x61')][_0xe389('0x1c')]();for(let _0x5c1580=0x0;_0x5c1580<_0x4fef4d[_0xe389('0xc9')];_0x5c1580++){const _0x11e913=_0x4fef4d[_0x5c1580];let _0x76b7c7=!0x1;for(const _0x1cd5d4 of Object['keys'](_0x11e913))void 0x0===_0x11e913[_0x1cd5d4]?delete _0x11e913[_0x1cd5d4]:'id'!==_0x1cd5d4&&(_0x76b7c7=!0x0);_0x76b7c7||(_0x4fef4d[_0x5c1580]=null);}if(_0x4fef4d=_0x4fef4d['filter'](_0x32c2da=>null!==_0x32c2da),!_0x4fef4d['length'])return;for(let _0x5167d8=0x0;_0x5167d8<_0x4fef4d['length'];_0x5167d8++){const _0x4d6d6a=_0x4fef4d[_0x5167d8];void 0x0!==_0x4d6d6a[_0xe389('0xbd')]&&void 0x0===_0x4d6d6a[_0xe389('0x102')]&&(_0x4d6d6a['toVersion']=this[_0xe389('0xba')]['getRevision'](_0x4d6d6a['id'])[_0xe389('0x102')]),void 0x0!==_0x4d6d6a['toVersion']&&void 0x0===_0x4d6d6a[_0xe389('0xbd')]&&(_0x4d6d6a['fromVersion']=this[_0xe389('0xba')][_0xe389('0x5')](_0x4d6d6a['id'])[_0xe389('0xbd')]);}const _0x35c3cd=this[_0xe389('0xd2')][_0xe389('0x67')]['get'](_0xe389('0xa4'));this[_0xe389('0xe6')]=!0x0,this[_0xe389('0x84')](),this[_0xe389('0xf0')]['updateRevisions'](_0x4fef4d,_0x35c3cd)[_0xe389('0xbf')](()=>{this[_0xe389('0xe6')]=!0x1;})[_0xe389('0x19')](_0x793eec=>{if(_0x793eec)for(const _0x860ab6 of _0x793eec)this[_0xe389('0xfb')]({'id':_0x860ab6['id'],'createdAt':_0x860ab6[_0xe389('0xb8')]});this[_0xe389('0x35')](),this[_0xe389('0xa6')]();});}['_replaceEditorDataWithRevisionData'](_0x3884f4,_0x20ff6a){let _0x1e15bf=this[_0xe389('0xd2')][_0xe389('0x67')]['get']('initialData'),_0x4ec2da=this[_0xe389('0xd2')][_0xe389('0x67')][_0xe389('0x4d')](_0xe389('0xc0'));if(void 0x0===_0x1e15bf){_0x1e15bf={};for(const _0x498983 of this[_0xe389('0xd2')]['model'][_0xe389('0xd5')][_0xe389('0x77')]())_0x1e15bf[_0x498983]='';}if(_0xe389('0x51')==typeof _0x1e15bf&&(_0x1e15bf={'main':_0x1e15bf}),void 0x0===_0x4ec2da){_0x4ec2da={};for(const _0x28be12 of this[_0xe389('0xd2')]['model'][_0xe389('0xd5')][_0xe389('0x77')]())_0x4ec2da[_0x28be12]={};}let _0x4d12f5=!0x1;const _0x1279f4=Object[_0xe389('0xab')](_0x1e15bf),_0x1cc9ba=Object['keys'](_0x3884f4);for(const _0x49d92e of _0x1279f4){if(_0x1e15bf[_0x49d92e]!==_0x3884f4[_0x49d92e]&&''!==_0x1e15bf[_0x49d92e][_0xe389('0x44')]()){_0x4d12f5=!0x0;break;}if(!_0x9f05e(_0x4ec2da[_0x49d92e],_0x20ff6a[_0x49d92e])&&Object[_0xe389('0xab')](_0x4ec2da[_0x49d92e])[_0xe389('0xc9')]>0x0){_0x4d12f5=!0x0;break;}}_0x4d12f5||(_0x4d12f5=_0x1cc9ba['some'](_0x402a46=>!this[_0xe389('0xd2')][_0xe389('0x7f')][_0xe389('0xd5')][_0xe389('0xc6')](_0x402a46))),_0x4d12f5&&_0x58b9bf(_0xe389('0xe2'),{'editorData':_0x1e15bf,'editorRootsAttributes':_0x4ec2da,'revisionData':_0x3884f4,'revisionRootsAttributes':_0x20ff6a}),this[_0xe389('0xd2')]['config']['set'](_0xe389('0xa9'),_0x3884f4),this['editor'][_0xe389('0x67')][_0xe389('0xc4')](_0xe389('0xc0'),_0x20ff6a);}[_0xe389('0x84')](){if(!this[_0xe389('0xe0')]){const _0x433953=this[_0xe389('0xd2')][_0xe389('0xea')][_0xe389('0x4d')](_0xe389('0xf3'));this[_0xe389('0xe0')]=_0x433953[_0xe389('0x9e')](_0x280d66(this[_0xe389('0xd2')][_0xe389('0x26')],_0xe389('0x4')));}}[_0xe389('0x35')](){this[_0xe389('0xe0')]&&(this[_0xe389('0xd2')][_0xe389('0xea')][_0xe389('0x4d')]('PendingActions')['remove'](this['_pendingAction']),this[_0xe389('0xe0')]=null);}['_findInsertionIndex'](_0x5bcf5a){const _0x1ce4ba=this[_0xe389('0xba')][_0xe389('0x2d')]();_0x1ce4ba[_0xe389('0x4c')]();let _0xfe37a=0x0;for(;_0xfe37a<_0x1ce4ba[_0xe389('0xc9')];){const _0x460ea9=_0x1ce4ba[_0xfe37a];if(_0x460ea9===this[_0xe389('0x57')]){_0xfe37a++;continue;}if(_0x460ea9['id']===this[_0xe389('0x66')])break;const _0x125efd=_0x5bcf5a['toVersion']-_0x460ea9['toVersion']||_0x5bcf5a[_0xe389('0xbd')]-_0x460ea9['fromVersion'];if(_0x125efd>0x0)break;if(_0x125efd<0x0)_0xfe37a++;else{if(!_0x5bcf5a['creator']&&_0x460ea9[_0xe389('0xcd')])break;if(_0x460ea9[_0xe389('0xcd')]||!_0x5bcf5a[_0xe389('0xcd')]){if(_0x5bcf5a[_0xe389('0xb8')]>_0x460ea9[_0xe389('0xb8')])break;_0xfe37a++;}else _0xfe37a++;}}return _0xfe37a;}[_0xe389('0xfb')](_0xabff73){const _0x47b00b=this['repository'][_0xe389('0x5')](_0xabff73['id']);if(_0xabff73[_0xe389('0xb8')]&&(_0xabff73[_0xe389('0xb8')]=new Date(_0xabff73[_0xe389('0xb8')])),_0xabff73[_0xe389('0x89')]){const _0x27f289=this[_0xe389('0xd2')][_0xe389('0xea')][_0xe389('0x4d')]('Users');_0xabff73['authors']=_0xabff73[_0xe389('0x89')]['map'](_0x4bf83c=>_0x27f289['getUser'](_0x4bf83c));}_0x47b00b[_0xe389('0x52')](_0xabff73,!0x0);}['buildRevisionData']({revision:_0xde5719=null,from:_0x35d1db=null,to:_0x91f169=null}){_0x35d1db=null!==_0x35d1db?_0x35d1db:_0xde5719[_0xe389('0xbd')],_0x91f169=null!==_0x91f169?_0x91f169:_0xde5719['toVersion'];const _0x236511=this[_0xe389('0x39')][_0xe389('0x3f')](_0x35d1db,_0x91f169),_0x3be82f={'diffData':_0x236511[_0xe389('0xf7')],'authorsIds':_0x236511[_0xe389('0x89')],'fromVersion':_0x35d1db,'toVersion':_0x91f169};if(!_0xde5719||_0x91f169!==_0xde5719[_0xe389('0x102')]){const _0x24394b=_0x91f169-0x1,_0x54f296=this['_source'][_0xe389('0x4b')][_0xe389('0x74')](_0x24394b);_0x3be82f[_0xe389('0xb8')]=_0x54f296&&_0x54f296[_0xe389('0xb8')]||new Date();}if(this['_loadedStateData']&&_0x35d1db===this[_0xe389('0x5d')][_0xe389('0xbd')])for(const _0xe32c60 of this['_loadedStateData']['authors'])_0x3be82f[_0xe389('0x89')][_0xe389('0xda')](_0xe32c60['id'])||_0x3be82f['authorsIds'][_0xe389('0x88')](_0xe32c60['id']);return _0x3be82f;}['_loadRevisionData'](_0x5a530a){if(!_0x5a530a||_0x5a530a['diffData'])return Promise['resolve']();{const _0xfe695d=this[_0xe389('0xd2')][_0xe389('0x67')]['get'](_0xe389('0xa4'));return this[_0xe389('0xf0')][_0xe389('0x5')]({'channelId':_0xfe695d,'revisionId':_0x5a530a['id']})[_0xe389('0x19')](_0x38ca81=>{_0x5a530a['diffData']=_0x38ca81[_0xe389('0xf7')];});}}[_0xe389('0x9c')](_0x26017b,_0x2bd4e1,_0xbdcbb3){if(this[_0xe389('0x61')][_0xe389('0x16')](_0x26017b)){const _0x5cdb56=this['_bufferedUpdates']['get'](_0x26017b);_0x2bd4e1=_0xbdcbb3?{..._0x5cdb56,..._0x2bd4e1}:{..._0x2bd4e1,..._0x5cdb56};}this[_0xe389('0x61')][_0xe389('0xc4')](_0x26017b,_0x2bd4e1);}['_getFromVersion'](_0x170cc0){const _0x4b07a4=this['repository']['getRevisions']();_0x4b07a4[_0xe389('0x4c')](),_0x4b07a4[_0xe389('0x25')]();const _0x456b22=_0x4b07a4['find'](_0x10f98a=>_0x10f98a['toVersion']<=_0x170cc0)[_0xe389('0x102')];return _0x456b22<this[_0xe389('0x17')]?this[_0xe389('0x17')]:_0x456b22;}[_0xe389('0x7c')](_0x39951a){const _0x532cc9=this['repository'][_0xe389('0x5')](this['repository'][_0xe389('0xc9')]-0x1);if(_0x532cc9)this[_0xe389('0x66')]=_0x532cc9['id'];else{const _0x3f656d=!this[_0xe389('0xd2')][_0xe389('0x7f')][_0xe389('0xd5')][_0xe389('0xef')][_0xe389('0x9d')](_0x3c13f7=>this['editor'][_0xe389('0x7f')]['hasContent'](_0x3c13f7)),_0x54cf08=this[_0xe389('0xd2')][_0xe389('0xea')]['get'](_0xe389('0xa5'))['me']['id'],_0x2d807c=_0x280d66(this[_0xe389('0xd2')][_0xe389('0x26')],_0x3f656d?'Empty\x20document':_0xe389('0x6c'));this[_0xe389('0x71')]({'from':_0x39951a,'to':_0x39951a,'id':this['_initialRevisionId'],'name':_0x2d807c,'creatorId':_0x54cf08});}}[_0xe389('0xb4')](_0x17ec7f){const _0x29ceec=this[_0xe389('0x3a')]['getCurrentRevisionId']();this['currentRevision']=this[_0xe389('0xba')][_0xe389('0x5')](_0x29ceec),this[_0xe389('0x57')]||(this[_0xe389('0x57')]=this[_0xe389('0x71')]({'from':_0x17ec7f,'to':_0x17ec7f,'id':_0x29ceec,'name':'','creatorId':null}));}['_makeRevision']({name:_0x44a808,from:_0x53aea3,to:_0x542ee4,creatorId:_0x11838f,id:_0x22215d}){const _0xea6579=this[_0xe389('0xd8')]({'from':_0x53aea3,'to':_0x542ee4});_0xea6579[_0xe389('0x13')]=_0x44a808,_0xea6579[_0xe389('0x85')]=_0x11838f,_0xea6579['id']=_0x22215d;const _0xca606f=this[_0xe389('0x80')](_0xea6579);return this[_0xe389('0xf0')]&&this['_bufferUpdate'](_0xea6579['id'],_0xea6579,!0x0),_0xca606f;}[_0xe389('0x6')](){this[_0xe389('0xd2')]['conversion'][_0xe389('0x73')](_0xe389('0xb9'))[_0xe389('0x11')]({'model':'revision'});}['_removeRevisionMarkers'](_0x591930){return(_0x591930=_0x591930[_0xe389('0x48')](_0x5ecbff=>!_0x5ecbff['name']||_0xe389('0xa3')!==_0x5ecbff[_0xe389('0x13')]&&_0xe389('0x5a')!==_0x5ecbff[_0xe389('0x13')]))[_0xe389('0xde')](_0x4906df=>{'string'!=typeof _0x4906df&&(_0x4906df['children']=this[_0xe389('0x98')](_0x4906df['children']),_0x4906df['attributes']=_0x4906df['attributes']['filter'](_0x4621f2=>!_0x4621f2[0x0][_0xe389('0x33')]('data-revision-')));}),_0x591930;}}function J(_0x18ad4b,_0xd0a9ff){const _0x5b143b=_0xd0a9ff[_0xe389('0xf9')][_0xe389('0xb5')][_0xe389('0xd5')];if(_0xe389('0x51')==typeof _0x18ad4b)return new _0x105f45(_0x5b143b,_0x18ad4b);{const _0x3c81d7=_0x18ad4b[_0xe389('0xb2')][_0xe389('0x53')](_0xe35f61=>J(_0xe35f61,_0xd0a9ff));return new(B[_0x18ad4b[(_0xe389('0x20'))]]||_0x5dcad1)(_0x5b143b,_0x18ad4b[_0xe389('0x13')],_0x18ad4b[_0xe389('0x7b')],_0x3c81d7);}}class H{constructor(_0x39db62){this[_0xe389('0xd2')]=_0x39db62,this['_savedMetaData']=new Map(),this[_0xe389('0xf6')]=-0x1,this['_lastTo']=-0x1,this[_0xe389('0x30')]=new Map(),this[_0xe389('0x12')]=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this[_0xe389('0xd1')]=new Map(),this[_0xe389('0x1d')]=new Map(),this[_0xe389('0x1')]=new Map(),this[_0xe389('0xd')]=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}[_0xe389('0xd0')](_0x4254cd){this['source']=_0x4254cd;const _0x529ebb=new Map(),_0x3f4fc3=new Map(),_0x58b834=this['editor'][_0xe389('0x7f')][_0xe389('0xd5')][_0xe389('0xef')][_0xe389('0x53')](_0x4927ef=>_0x4927ef[_0xe389('0x40')]);for(const _0x485d4c of _0x58b834){const _0x175e5c=this[_0xe389('0xd2')][_0xe389('0x7f')][_0xe389('0xd5')]['getRoot'](_0x485d4c),_0x193b95=q(_0x175e5c);_0x529ebb[_0xe389('0xc4')](_0x485d4c,_0x193b95),_0x3f4fc3['set'](_0x485d4c,Object[_0xe389('0xc2')](_0x175e5c[_0xe389('0x3d')]()));}const _0xba91ff=Array['from'](this[_0xe389('0xd2')][_0xe389('0x7f')][_0xe389('0x34')])['map'](_0xac584=>[_0xac584[_0xe389('0x13')],_0xac584[_0xe389('0xb6')]()]),_0x3a8a67=this[_0xe389('0x91')][_0xe389('0x2f')];this['_saveMetaData'](_0x3a8a67,_0x529ebb,_0xba91ff,_0x3f4fc3),this[_0xe389('0xe1')]=this[_0xe389('0xca')];const _0x37731=new Map(),_0x5e6651=new Map();for(const _0x35d8b3 of _0x58b834){const _0x5a4ea5=G(_0x35d8b3);_0x37731['set'](_0x35d8b3,_0x5a4ea5),_0x5e6651['set'](_0x35d8b3,{});}this[_0xe389('0x15')](Number[_0xe389('0x97')],_0x37731,[],_0x5e6651);}[_0xe389('0x3f')](_0x324492,_0x79c588){if(this[_0xe389('0xf6')]===_0x324492&&this[_0xe389('0x76')]<=_0x79c588)this[_0xe389('0x1f')][_0xe389('0x78')]>0x1&&this[_0xe389('0x6e')](this[_0xe389('0x76')]),this[_0xe389('0xe3')](this[_0xe389('0x76')],_0x79c588,!0x0);else{if(!this[_0xe389('0x1f')]['has'](_0x324492)){const _0x2af40f=this['_getPreviousFrom'](_0x324492);this[_0xe389('0xcf')](_0x2af40f,_0x324492,!0x1);}this[_0xe389('0xcf')](_0x324492,_0x79c588,!0x0);}return this[_0xe389('0xf6')]=_0x324492,this[_0xe389('0x76')]=_0x79c588,this[_0xe389('0x94')]();}[_0xe389('0x18')](_0x3c596c){this[_0xe389('0x82')](),this[_0xe389('0xf6')]=_0x3c596c['fromVersion'],this[_0xe389('0x76')]=_0x3c596c[_0xe389('0x102')];for(const _0x1fe4c0 in _0x3c596c[_0xe389('0xf7')]){const _0xd93ba7=_0x3c596c['diffData'][_0x1fe4c0][_0xe389('0x75')],_0x3b67d0=_0x8b954a(_0x3c596c[_0xe389('0xf7')][_0x1fe4c0]['attributesBefore'])||{},_0x5efc51=this[_0xe389('0xe7')](_0x3c596c[_0xe389('0xf7')][_0x1fe4c0][_0xe389('0x14')]);_0x5efc51['rootName']=_0x1fe4c0,_0x5efc51[_0xe389('0x92')]=!_0xd93ba7||!_0xd93ba7[_0xe389('0xee')],_0x5efc51[_0xe389('0xee')]=()=>_0x5efc51[_0xe389('0x92')],this['_baseRoots'][_0xe389('0xc4')](_0x1fe4c0,_0x5efc51),this[_0xe389('0xbc')]['set'](_0x1fe4c0,_0x3b67d0),_0xd93ba7&&this[_0xe389('0x63')][_0xe389('0xc4')](_0x1fe4c0,_0xd93ba7);const _0x1b7d3b=this['_makeIdsRoot'](_0x5efc51);this[_0xe389('0x1d')]['set'](_0x1fe4c0,_0x1b7d3b);for(const [_0x249567,_0x2c8a70]of _0x5efc51['markers']){if(!_0x249567['startsWith'](_0xe389('0x6f')))continue;const _0xfb6a40=_0x249567[_0xe389('0x81')](':')[0x2];for(const _0x5229b8 of _0x2c8a70['getWalker']({'singleCharacters':!0x0})){const _0x8bea31=this['_getVidAttributeName'](_0x5229b8),_0x48532f=_0xe389('0x36')==_0x5229b8[_0xe389('0x20')]?_0x5229b8[_0xe389('0xaa')][_0xe389('0x45')][_0xe389('0x7')](0x0,-0x1):_0x5229b8[_0xe389('0xaa')][_0xe389('0x45')],_0x5eadd2=_0x1b7d3b[_0xe389('0x56')](_0x48532f)[_0xe389('0xfa')](_0x8bea31);this[_0xe389('0x1')]['set'](_0x5eadd2,{'userId':_0xfb6a40});}}}this[_0xe389('0xe1')]=this[_0xe389('0xca')];const _0x1cc0f0=[...Array(this[_0xe389('0xca')])[_0xe389('0xab')]()][_0xe389('0x7')](0x1)['filter'](_0x4dcf11=>!this[_0xe389('0x1')][_0xe389('0x16')](_0x4dcf11));let _0x383866=0x0;const _0x1af0d3=new Map();for(const _0x30b02c in _0x3c596c[_0xe389('0xf7')]){const _0x3ca9e1=_0x3c596c[_0xe389('0xf7')][_0x30b02c][_0xe389('0x75')],_0x427206=_0x8b954a(_0x3c596c['diffData'][_0x30b02c]['attributesAfter'])||{},_0x102e37=this[_0xe389('0xe7')](_0x3c596c[_0xe389('0xf7')][_0x30b02c]['insertions']);_0x102e37['rootName']=_0x30b02c,_0x102e37['_isAttached']=!_0x3ca9e1||_0x3ca9e1[_0xe389('0xee')],_0x102e37[_0xe389('0xee')]=()=>_0x102e37['_isAttached'],this[_0xe389('0x12')][_0xe389('0xc4')](_0x30b02c,_0x102e37),this[_0xe389('0xf')][_0xe389('0xc4')](_0x30b02c,_0x427206);const _0x4ae58a=this[_0xe389('0xe9')](_0x102e37,Number[_0xe389('0x97')]);this[_0xe389('0xd1')][_0xe389('0xc4')](_0x30b02c,_0x4ae58a),_0x1af0d3[_0xe389('0xc4')](_0x30b02c,_0x102e37[_0xe389('0xee')]()?_0x427206:{});for(const [_0xe8987,_0x409a28]of _0x102e37['markers']){if(!_0xe8987[_0xe389('0x33')](_0xe389('0x6f')))continue;const _0x1b3b58=_0xe8987['split'](':')[0x2];for(const _0x4e236e of _0x409a28[_0xe389('0x27')]({'singleCharacters':!0x0})){const _0x543aad=this[_0xe389('0x72')](_0x4e236e),_0x293138=this[_0xe389('0xca')]++,_0x11aac7=_0xe389('0x36')==_0x4e236e[_0xe389('0x20')]?_0x4e236e[_0xe389('0xaa')]['path'][_0xe389('0x7')](0x0,-0x1):_0x4e236e['previousPosition'][_0xe389('0x45')];_0x4ae58a['getNodeByPath'](_0x11aac7)['_setAttribute'](_0x543aad,_0x293138),this['_touched']['set'](_0x293138,{'userId':_0x1b3b58});}}for(const _0x2ddcc4 of this[_0xe389('0xd2')][_0xe389('0x7f')]['createRangeIn'](_0x102e37)[_0xe389('0x27')]({'singleCharacters':!0x0})){const _0x277cab=this[_0xe389('0x72')](_0x2ddcc4),_0x3e87ee=_0xe389('0x36')==_0x2ddcc4[_0xe389('0x20')]?_0x2ddcc4[_0xe389('0xaa')]['path'][_0xe389('0x7')](0x0,-0x1):_0x2ddcc4[_0xe389('0xaa')][_0xe389('0x45')],_0x4443e6=_0x4ae58a[_0xe389('0x56')](_0x3e87ee);_0x4443e6[_0xe389('0xfa')](_0x277cab)>0x0||_0x4443e6['_setAttribute'](_0x277cab,_0x1cc0f0[_0x383866++]);}for(const [_0xa8b2d2,_0x4b63ab]of _0x102e37[_0xe389('0x34')])_0xa8b2d2[_0xe389('0x33')](_0xe389('0x6f'))||this[_0xe389('0x30')][_0xe389('0xc4')](_0xa8b2d2,_0x4b63ab);}const _0x3a45b6=G(_0xe389('0x6d'));this[_0xe389('0x59')][_0xe389('0xc4')](_0xe389('0x6d'),_0x3a45b6),this['_baseIdsRoots'][_0xe389('0xc4')](_0xe389('0x6d'),this['_makeIdsRoot'](_0x3a45b6,0x1));const _0x27cdae=G(_0xe389('0x6d'));this[_0xe389('0x12')][_0xe389('0xc4')](_0xe389('0x6d'),_0x27cdae),this[_0xe389('0xd1')][_0xe389('0xc4')](_0xe389('0x6d'),this[_0xe389('0xe9')](_0x27cdae,0x1));const _0x212a0a=Array[_0xe389('0xa2')](this[_0xe389('0x12')])[_0xe389('0x53')](([_0x41ed5b,_0x3b1030])=>[_0x41ed5b,q(_0x3b1030)]);this[_0xe389('0x15')](this['_lastTo'],_0x212a0a,this['_markers'],_0x1af0d3);}['_makeModelFromViewString'](_0x31b51f){const _0x5e4a98=JSON[_0xe389('0x10')](_0x31b51f),_0x5c5db0=this[_0xe389('0xd2')]['editing'][_0xe389('0xb5')][_0xe389('0xd5')],_0x46b225=new _0x4dc568(_0x5c5db0,_0x5e4a98[_0xe389('0x53')](_0xc99f33=>J(_0xc99f33,this['editor'])));return this[_0xe389('0xd2')][_0xe389('0x3')]['toModel'](_0x46b225);}['_saveMetaData'](_0x1f8a5f,_0x2f4e83,_0x4e5677,_0x126384){const _0x128943=new Map(_0x2f4e83),_0x31c847=new Map(_0x8b954a(_0x126384)),_0x3b7506=new Map();for(const [_0x1cdffb,_0x1f499e]of _0x4e5677)_0x3b7506[_0xe389('0xc4')](_0x1cdffb,{'start':_0x1f499e[_0xe389('0xd3')][_0xe389('0xbb')](),'end':_0x1f499e[_0xe389('0x46')][_0xe389('0xbb')](),'rootName':_0x1f499e['root'][_0xe389('0x40')]});this[_0xe389('0x1f')][_0xe389('0xc4')](_0x1f8a5f,{'roots':_0x128943,'markers':_0x3b7506,'rootsAttributes':_0x31c847});}[_0xe389('0x6e')](_0x4a2fbd){this[_0xe389('0x1f')][_0xe389('0xfe')](_0x4a2fbd);}[_0xe389('0x38')](){this[_0xe389('0x82')](),this[_0xe389('0xf6')]=-0x1,this[_0xe389('0x76')]=-0x1,this['_savedMetaData'][_0xe389('0x1c')](),this[_0xe389('0xd0')](this['source']);}[_0xe389('0x82')](){this[_0xe389('0x1')][_0xe389('0x1c')](),this[_0xe389('0xd')][_0xe389('0x1c')](),this[_0xe389('0x63')][_0xe389('0x1c')](),this['_diffRoots']['clear'](),this[_0xe389('0xf')][_0xe389('0x1c')](),this[_0xe389('0x59')]['clear'](),this[_0xe389('0xbc')][_0xe389('0x1c')](),this['_idsRoots'][_0xe389('0x1c')](),this[_0xe389('0x1d')][_0xe389('0x1c')](),this['_markers'][_0xe389('0x1c')](),this[_0xe389('0xca')]=0x1,this['_startingRevisionId']=this[_0xe389('0xca')];}['_makeIdsRoot'](_0x44de50,_0x26d2ed=null){let _0x5b93ce=null;_0x44de50['is']('documentFragment')||(_0x5b93ce=new _0x158621(_0x44de50[_0xe389('0x13')],{'vid_start':null===_0x26d2ed?this['_revisionId']++:_0x26d2ed++}));const _0x42d7ef=[];for(const _0x11c3f5 of _0x44de50['getChildren']())if(_0x11c3f5['is'](_0xe389('0xbe'))){_0x42d7ef[_0xe389('0x88')](this[_0xe389('0xe9')](_0x11c3f5,_0x26d2ed));const _0x2f3805=_0x42d7ef[_0x42d7ef[_0xe389('0xc9')]-0x1];null!==_0x26d2ed&&(_0x26d2ed=_0x2f3805['is'](_0xe389('0xbe'),_0xe389('0xb7'))?_0x2f3805[_0xe389('0xfa')]('vid')+0x1:_0x2f3805[_0xe389('0xfa')](_0xe389('0xaf'))+0x1);}else for(let _0x443916=0x0;_0x443916<_0x11c3f5[_0xe389('0x8')];_0x443916++)_0x42d7ef['push'](new _0x158621(_0xe389('0xb7'),{'vid':null===_0x26d2ed?this[_0xe389('0xca')]++:_0x26d2ed++}));if(_0x44de50['is'](_0xe389('0x4f'))){const _0x17f43c=G(_0x44de50['rootName']);return _0x17f43c['_insertChild'](0x0,_0x42d7ef),_0x17f43c;}return _0x5b93ce[_0xe389('0xe8')](_0xe389('0xaf'),null===_0x26d2ed?this[_0xe389('0xca')]++:_0x26d2ed++),_0x5b93ce[_0xe389('0xb')](0x0,_0x42d7ef),_0x5b93ce;}[_0xe389('0xcf')](_0x4fe78c,_0x3ee659,_0x5a468b){this[_0xe389('0x82')]();const {roots:_0x1b95e0,markers:_0x513143,rootsAttributes:_0x124cef}=this[_0xe389('0x1f')][_0xe389('0x4d')](_0x4fe78c);this['_baseRoots']=new Map(_0x1b95e0),this[_0xe389('0xbc')]=new Map(_0x8b954a(_0x124cef));for(const [_0x29f36f,_0x30658b]of this[_0xe389('0x59')])if(_0xe389('0x6d')!==_0x29f36f&&(this[_0xe389('0x12')][_0xe389('0xc4')](_0x29f36f,q(_0x30658b)),this[_0xe389('0xf')]=new Map(_0x8b954a(_0x124cef)),_0x5a468b)){const _0x2ea9a5=this['_revisionId'];this[_0xe389('0xd1')][_0xe389('0xc4')](_0x29f36f,this[_0xe389('0xe9')](_0x30658b)),this[_0xe389('0x1d')]['set'](_0x29f36f,this[_0xe389('0xe9')](_0x30658b,_0x2ea9a5));}this[_0xe389('0xe1')]=this['_revisionId'],this['_diffRoots'][_0xe389('0xc4')](_0xe389('0x6d'),q(this[_0xe389('0x59')][_0xe389('0x4d')](_0xe389('0x6d')))),_0x5a468b&&this[_0xe389('0xd1')][_0xe389('0xc4')](_0xe389('0x6d'),this[_0xe389('0xe9')](this[_0xe389('0x59')][_0xe389('0x4d')]('$graveyard')));for(const [_0xf895f0,_0x665d89]of _0x513143){const _0x4b1c11=this[_0xe389('0x59')][_0xe389('0x4d')](_0x665d89[_0xe389('0x40')]),_0x4b5cb7=this[_0xe389('0x12')][_0xe389('0x4d')](_0x665d89[_0xe389('0x40')]),_0x41ab15=new _0x57b050(this[_0xe389('0x2')](_0x665d89[_0xe389('0xd3')],_0x4b1c11),this[_0xe389('0x2')](_0x665d89[_0xe389('0x46')],_0x4b1c11)),_0x54e6ab=this[_0xe389('0x64')](_0x41ab15,_0x4b5cb7);_0x4b1c11[_0xe389('0x34')][_0xe389('0xc4')](_0xf895f0,_0x41ab15),this[_0xe389('0x30')][_0xe389('0xc4')](_0xf895f0,_0x54e6ab);}this[_0xe389('0xe3')](_0x4fe78c,_0x3ee659,_0x5a468b);}['_applyOperations'](_0x579d79,_0x75c7a9,_0x437703){for(const _0xa3cfa8 of this[_0xe389('0x91')]['getOperations'](_0x579d79,_0x75c7a9))this[_0xe389('0xe')](_0xa3cfa8,_0x437703);for(const _0x57e08e of this['_diffRoots'][_0xe389('0x4a')]())_0x57e08e[_0xe389('0x34')][_0xe389('0x1c')]();for(const [_0x172f54,_0x3f7f6c]of this[_0xe389('0x30')]){this['_diffRoots'][_0xe389('0x4d')](_0x3f7f6c['root']['rootName'])[_0xe389('0x34')][_0xe389('0xc4')](_0x172f54,_0x3f7f6c[_0xe389('0xbb')]());}const _0x532786=new Map(),_0x35776b=new Map();for(const [_0x4d5dda,_0xbac8d2]of this[_0xe389('0x12')])_0x532786[_0xe389('0xc4')](_0x4d5dda,q(_0xbac8d2)),_0x35776b[_0xe389('0xc4')](_0x4d5dda,this[_0xe389('0xf')][_0xe389('0x4d')](_0x4d5dda));this[_0xe389('0x15')](_0x75c7a9,_0x532786,this[_0xe389('0x30')],_0x35776b);}[_0xe389('0x5c')](_0x48af47){const _0x2d0acf=Array[_0xe389('0xa2')](this[_0xe389('0x1f')][_0xe389('0xab')]());_0x2d0acf['sort']((_0x4bb45b,_0x2dc7f5)=>_0x4bb45b-_0x2dc7f5),_0x2d0acf[_0xe389('0x4c')]();for(const _0x5035f6 of _0x2d0acf)if(_0x5035f6<_0x48af47)return _0x5035f6;return Number[_0xe389('0x97')];}['_copyMarkers'](_0x571c1f,_0x3c5929){const _0xa9ab94=Array[_0xe389('0xa2')](_0x3c5929[_0xe389('0x34')])['map'](([_0x30e8a0,_0x586cc4])=>[_0x30e8a0,this['_fixRange'](_0x586cc4,_0x571c1f)]);_0x571c1f['markers']=new Map(_0xa9ab94);}[_0xe389('0xec')](_0x3ae52f){for(const _0x4a3bc0 of this['_markers']['values']()){const _0x136067=_0x4a3bc0['getTransformedByOperation'](_0x3ae52f),_0x59efc7=_0x57b050[_0xe389('0x58')](_0x136067);_0x4a3bc0[_0xe389('0xd3')]=_0x59efc7[_0xe389('0xd3')],_0x4a3bc0[_0xe389('0x46')]=_0x59efc7['end'];}}[_0xe389('0xe')](_0x20317b,_0x1614b4){if(_0xe389('0xd7')==_0x20317b[_0xe389('0x20')]||_0xe389('0xd4')==_0x20317b[_0xe389('0x20')])return void this['_handleRootOperation'](_0x20317b,_0x1614b4);if('insert'==_0x20317b[_0xe389('0x20')]){const _0xec9c65=_0x20317b[_0xe389('0x7e')]['root'][_0xe389('0x40')];this[_0xe389('0x12')][_0xe389('0x16')](_0xec9c65)||(this['_diffRoots']['set'](_0xec9c65,G(_0xec9c65,!0x0)),this['_diffRootsAttributes'][_0xe389('0xc4')](_0xec9c65,{}),_0x1614b4&&this[_0xe389('0xd1')]['set'](_0xec9c65,G(_0xec9c65,!0x0)));}else{if(_0xe389('0x43')==_0x20317b[_0xe389('0x20')]||_0xe389('0xdd')==_0x20317b[_0xe389('0x20')]||_0xe389('0x1a')==_0x20317b[_0xe389('0x20')])return void this[_0xe389('0xa7')](_0x20317b);}const _0x2b9e63=this['_cloneOperation'](_0x20317b,this['_diffRoots']);if('marker'!==_0x20317b[_0xe389('0x20')]&&(_0x2b9e63[_0xe389('0x1e')](),this[_0xe389('0xec')](_0x2b9e63)),_0x1614b4)switch(_0x2b9e63[_0xe389('0x20')]){case _0xe389('0x90'):this['_handleInsertOperation'](_0x20317b);break;case _0xe389('0x5b'):case _0xe389('0xc7'):case _0xe389('0xdc'):this[_0xe389('0x49')](_0x20317b);break;case _0xe389('0x9'):this['_handleMergeOperation'](_0x20317b);break;case'split':this[_0xe389('0x93')](_0x20317b);break;case _0xe389('0x5e'):this[_0xe389('0x8a')](_0x20317b);}}[_0xe389('0x8c')](_0x221095,_0x32dd19){const _0x23d766=_0x221095[_0xe389('0xbb')]();return _0x23d766[_0xe389('0x7a')]=_0x221095[_0xe389('0x7a')],this['_fixOperation'](_0x23d766,_0x32dd19),_0x23d766;}[_0xe389('0x29')](_0x252ab7){return _0x252ab7[_0xe389('0x53')](_0x25a915=>{const _0x49e815=this['_getVidAttributeName'](_0x25a915);return Number(_0x25a915[_0xe389('0x70')][_0xe389('0xfa')](_0x49e815));});}['_generateTape'](_0x152b1,_0x35d4bf){if(_0x152b1['is'](_0xe389('0xbe'),_0xe389('0xb7')))_0x35d4bf['push']({'item':_0x152b1,'type':'text'});else{_0x152b1['is'](_0xe389('0xbe'))&&_0x35d4bf[_0xe389('0x88')]({'item':_0x152b1,'type':_0xe389('0xb0')});for(const _0x572b11 of _0x152b1[_0xe389('0x69')]())this[_0xe389('0x86')](_0x572b11,_0x35d4bf);_0x152b1['is'](_0xe389('0xbe'))&&_0x35d4bf[_0xe389('0x88')]({'item':_0x152b1,'type':_0xe389('0x36')});}return _0x35d4bf;}['_getState'](){const _0x1454be=new Map(this[_0xe389('0x1')]),_0x1586c1=new Map(_0x1454be),_0x41cf00=new Map(),_0x1c97af={'insertions':{},'deletions':{}},_0x58e3bb={'insertions':{},'deletions':{}},_0x50c128=new Map(),_0x4a78ac=new Set([...this[_0xe389('0x59')]['keys'](),...this[_0xe389('0x12')][_0xe389('0xab')]()]);_0x4a78ac['delete']('$graveyard');for(const _0x1eaaab of _0x4a78ac){const _0x16ada2=this['_diffRoots'][_0xe389('0x4d')](_0x1eaaab)||G(_0x1eaaab,!0x1),_0x1a792e=this['_baseRoots']['get'](_0x1eaaab)||G(_0x1eaaab,!0x1);_0x16ada2['isAttached']()||_0x1a792e[_0xe389('0xee')]()?(_0x1c97af['insertions'][_0x1eaaab]=q(_0x16ada2),_0x1c97af[_0xe389('0x14')][_0x1eaaab]=q(_0x1a792e),this['_copyMarkers'](_0x1c97af['deletions'][_0x1eaaab],_0x1a792e),this[_0xe389('0x101')](_0x1c97af[_0xe389('0x21')][_0x1eaaab],_0x16ada2),_0x58e3bb[_0xe389('0x21')][_0x1eaaab]=this[_0xe389('0x86')](this['_idsRoots']['get'](_0x1eaaab),[]),_0x58e3bb[_0xe389('0x14')][_0x1eaaab]=this[_0xe389('0x86')](this[_0xe389('0x1d')][_0xe389('0x4d')](_0x1eaaab)||G(_0x1eaaab,!0x1),[])):_0x4a78ac['delete'](_0x1eaaab);}for(const _0x573970 of _0x4a78ac){const _0x7d3299=_0x58e3bb[_0xe389('0x21')][_0x573970];for(const _0x5f2bf4 of _0x7d3299){const _0x13d24a=this[_0xe389('0x72')](_0x5f2bf4),_0xd07fd3=_0x5f2bf4[_0xe389('0x70')][_0xe389('0xfa')](_0x13d24a);_0x1586c1[_0xe389('0xfe')](_0xd07fd3),_0xd07fd3>=this[_0xe389('0xe1')]&&_0x41cf00[_0xe389('0xc4')](_0xd07fd3,_0x1454be[_0xe389('0x4d')](_0xd07fd3));}}for(const _0x42c3a9 of _0x4a78ac){const _0x68ef3f=_0x58e3bb[_0xe389('0x21')][_0x42c3a9],_0x260405=this[_0xe389('0x29')](_0x58e3bb['deletions'][_0x42c3a9]);let _0x5502c7=0x0;for(const _0x5626de of _0x68ef3f){const _0x532967=this[_0xe389('0x72')](_0x5626de),_0x3e94e8=_0x5626de['item'][_0xe389('0xfa')](_0x532967);if(!_0x41cf00['has'](_0x3e94e8)&&!_0x50c128[_0xe389('0x16')](_0x3e94e8)){if(_0x1586c1[_0xe389('0x16')](_0x3e94e8))_0x5502c7++;else{if(_0x3e94e8!=_0x260405[_0x5502c7]){const _0x11a15f=_0x1454be[_0xe389('0x4d')](_0x3e94e8)||_0x1454be[_0xe389('0x4d')](_0x260405[_0x5502c7]);for(;_0x3e94e8!=_0x260405[_0x5502c7];)_0x1586c1[_0xe389('0x16')](_0x260405[_0x5502c7])||(_0x50c128[_0xe389('0xc4')](_0x260405[_0x5502c7],_0x11a15f),_0x1454be['set'](_0x260405[_0x5502c7],_0x11a15f)),_0x5502c7++;}_0x5502c7++;}}}}for(const _0x48c572 of _0x4a78ac){const _0x49576b=_0x58e3bb[_0xe389('0x21')][_0x48c572];for(const _0x12b452 of _0x49576b){const _0x20218a=this[_0xe389('0x72')](_0x12b452),_0x212e3b=_0x12b452['item'][_0xe389('0xfa')](_0x20218a);if(_0x50c128[_0xe389('0x16')](_0x212e3b)){const _0x40ef81=_0x50c128[_0xe389('0x4d')](_0x212e3b);_0x1586c1[_0xe389('0x16')](_0x212e3b)||_0x1586c1[_0xe389('0xc4')](_0x212e3b,{..._0x40ef81}),_0x41cf00[_0xe389('0xc4')](_0x212e3b,{..._0x40ef81});}}}for(const _0x328489 of _0x1586c1[_0xe389('0xab')]())_0x328489>=this[_0xe389('0xe1')]&&_0x1586c1[_0xe389('0xfe')](_0x328489);const _0x328dcb=new Map();for(const _0x507e70 of _0x4a78ac){let _0x343d72=_0x58e3bb['insertions'][_0x507e70];for(const _0x57e8d3 of _0x343d72)if(_0x57e8d3[_0xe389('0x70')]['is'](_0xe389('0xbe'),_0xe389('0xe4'))){const _0xe5da4a=this[_0xe389('0x72')](_0x57e8d3),_0x33851f=_0x57e8d3[_0xe389('0x70')]['getAttribute'](_0xe5da4a);if(_0x41cf00[_0xe389('0x16')](_0x33851f)){const _0x22abe6=_0x57e8d3[_0xe389('0x70')][_0xe389('0x47')][_0xe389('0x47')][_0xe389('0xfa')]('vid_start'),_0x29b16c=_0x328dcb[_0xe389('0x4d')](_0x22abe6)||new Set();_0x29b16c['add'](_0x41cf00[_0xe389('0x4d')](_0x33851f)[_0xe389('0xfc')]),_0x328dcb[_0xe389('0xc4')](_0x22abe6,_0x29b16c);}}_0x343d72=_0x58e3bb[_0xe389('0x14')][_0x507e70];for(const _0x51900b of _0x343d72)if(_0x51900b[_0xe389('0x70')]['is']('element',_0xe389('0xe4'))){const _0x3c9eb8=this['_getVidAttributeName'](_0x51900b),_0x3f546f=_0x51900b[_0xe389('0x70')][_0xe389('0xfa')](_0x3c9eb8);if(_0x1586c1[_0xe389('0x16')](_0x3f546f)){const _0x36d844=_0x51900b[_0xe389('0x70')]['parent'][_0xe389('0x47')]['getAttribute'](_0xe389('0xc')),_0x3f84cb=_0x328dcb['get'](_0x36d844)||new Set();_0x3f84cb[_0xe389('0x9e')](_0x1586c1['get'](_0x3f546f)[_0xe389('0xfc')]),_0x328dcb['set'](_0x36d844,_0x3f84cb);}}for(const _0x580a55 of _0x328dcb[_0xe389('0xab')]())(_0x41cf00[_0xe389('0x16')](_0x580a55)||_0x1586c1[_0xe389('0x16')](_0x580a55))&&_0x328dcb[_0xe389('0xfe')](_0x580a55);}for(const _0x411832 of _0x4a78ac){const _0x1367fc=_0x58e3bb[_0xe389('0x21')][_0x411832];let _0x4f28a8=null,_0x2776f6=null;for(const _0x3e23eb of _0x1367fc){const _0x1416cf=this[_0xe389('0x72')](_0x3e23eb),_0x1a1b2e=_0x3e23eb['item'][_0xe389('0xfa')](_0x1416cf),_0x1d65d7=_0x328dcb[_0xe389('0x4d')](_0x1a1b2e);_0x1d65d7&&_0xe389('0xb0')==_0x3e23eb['type']&&(_0x4f28a8=Array[_0xe389('0xa2')](_0x1d65d7)[0x0],_0x2776f6=_0x3e23eb[_0xe389('0x70')][_0xe389('0xfa')]('vid_end')),_0x4f28a8&&(_0x1586c1[_0xe389('0xc4')](_0x1a1b2e,{'userId':_0x4f28a8}),_0x41cf00['set'](_0x1a1b2e,{'userId':_0x4f28a8})),_0x1a1b2e==_0x2776f6&&(_0x4f28a8=null,_0x2776f6=null);}}const _0x2e8a0b={},_0xc1e1e0=new Set();for(const _0x54c823 of _0x4a78ac){const _0x1c0f32=_0x1c97af[_0xe389('0x14')][_0x54c823],_0x3a83f0=_0x1c97af[_0xe389('0x21')][_0x54c823];for(const {userId:_0x56ee07}of this[_0xe389('0xd')]['values']())null!==_0x56ee07&&_0xc1e1e0[_0xe389('0x9e')](_0x56ee07);for(const {userId:_0x170c07}of this['_touchedRoots']['values']())null!==_0x170c07&&_0xc1e1e0[_0xe389('0x9e')](_0x170c07);this[_0xe389('0x2b')](_0x3a83f0,_0x58e3bb[_0xe389('0x21')][_0x54c823],_0x41cf00,_0xe389('0x2c'),_0xc1e1e0),this['_markChanges'](_0x1c0f32,_0x58e3bb[_0xe389('0x14')][_0x54c823],_0x1586c1,_0xe389('0x32'),_0xc1e1e0),_0x2e8a0b[_0x54c823]={'insertions':this[_0xe389('0x6b')](_0x3a83f0),'deletions':this[_0xe389('0x6b')](_0x1c0f32),'attachChange':this['_touchedRoots'][_0xe389('0x4d')](_0x54c823)||null,'attributesBefore':_0x8b954a(this['_baseRootsAttributes'][_0xe389('0x4d')](_0x54c823))||{},'attributesAfter':_0x8b954a(this['_diffRootsAttributes'][_0xe389('0x4d')](_0x54c823))};}return{'diffData':_0x2e8a0b,'authorsIds':Array[_0xe389('0xa2')](_0xc1e1e0)};}[_0xe389('0x9a')](_0x12e1f4){for(const [,_0x1948bc]of _0x12e1f4['markers']){const _0x4d03ce=_0x1948bc[_0xe389('0xd3')][_0xe389('0xc3')]()[_0xe389('0x48')](_0x3aac9f=>_0xe389('0xe4')==_0x3aac9f['name']);for(const _0xd02c75 of _0x4d03ce)0x1==_0xd02c75['childCount']&&_0xd02c75['getChild'](0x0)['is'](_0xe389('0xbe'),_0xe389('0xa0'))&&_0xd02c75['getChild'](0x0)[_0xe389('0xe8')]('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x8a89bd){this['_processRootBeforeSave'](_0x8a89bd);const _0xf3638e=this['editor'][_0xe389('0x3')][_0xe389('0xf2')](_0x8a89bd,{}),_0x3625de=Array[_0xe389('0xa2')](_0xf3638e[_0xe389('0x69')]())[_0xe389('0x53')](_0x24a1a5=>this[_0xe389('0x96')](_0x24a1a5));return JSON['stringify'](_0x3625de);}['_getViewJson'](_0x58b869){if(_0x58b869['is'](_0xe389('0xb7')))return _0x58b869[_0xe389('0x3')];{const _0x18e608=_0x58b869;return{'type':Object[_0xe389('0xab')](B)['find'](_0x34f247=>_0x58b869 instanceof B[_0x34f247]),'name':_0x18e608['name'],'attributes':Array[_0xe389('0xa2')](_0x18e608[_0xe389('0x3d')]()),'children':Array['from'](_0x18e608[_0xe389('0x69')]())[_0xe389('0x53')](_0x3500ff=>this['_getViewJson'](_0x3500ff))};}}['_markChanges'](_0x46a9cd,_0x329a1c,_0x3f562f,_0x5e3dc7,_0x581b72){let _0x341ca1=null,_0x56c1fc=null,_0x529c2c=0x0;const _0x2edf9c=this['editor'][_0xe389('0x7f')];for(let _0x368111=0x0;_0x368111<_0x329a1c[_0xe389('0xc9')];_0x368111++){const _0x47cb5d=this['_getVidAttributeName'](_0x329a1c[_0x368111]),_0x577883=_0x329a1c[_0x368111][_0xe389('0x70')]['getAttribute'](_0x47cb5d),_0x85f05c=_0x3f562f[_0xe389('0x4d')](_0x577883),_0x37845b=_0x368111==_0x329a1c[_0xe389('0xc9')]-0x1;(!_0x341ca1&&_0x85f05c&&(_0x341ca1=_0x85f05c,_0x56c1fc=_0x329a1c[_0x368111]),_0x341ca1&&(!_0x85f05c||_0x85f05c[_0xe389('0xfc')]!=_0x341ca1[_0xe389('0xfc')]))&&(_0x250833(_0x85f05c,L(_0x56c1fc,_0x46a9cd,_0x2edf9c),L(_0x329a1c[_0x368111],_0x46a9cd,_0x2edf9c)),_0x341ca1=_0x85f05c||null,_0x56c1fc=_0x85f05c?_0x329a1c[_0x368111]:null),_0x341ca1&&_0x37845b&&_0x250833(_0x85f05c,L(_0x56c1fc,_0x46a9cd,_0x2edf9c),W(_0x329a1c[_0x368111],_0x46a9cd,_0x2edf9c));}function _0x250833(_0x1c883e,_0x4a8c82,_0x22af6d){const _0x1f46ad=_0x341ca1[_0xe389('0xfc')],_0x3a3ad0='revision:'+_0x5e3dc7+':'+_0x1f46ad+':'+_0x529c2c++,_0x2edf94=_0x2edf9c[_0xe389('0xcb')](_0x4a8c82,_0x22af6d);_0x46a9cd[_0xe389('0x34')]['set'](_0x3a3ad0,_0x2edf94),null!==_0x1f46ad&&_0x581b72[_0xe389('0x9e')](_0x1f46ad);}}[_0xe389('0x72')](_0x431fe7){switch(_0x431fe7[_0xe389('0x20')]){case _0xe389('0xb0'):return _0xe389('0xc');case _0xe389('0x36'):return _0xe389('0xaf');default:return'vid';}}[_0xe389('0x42')](_0x5dd053,_0x48969d){_0x5dd053[_0xe389('0x83')]=null;for(const _0x5888e3 in _0x5dd053){const _0x1e3ada=_0x5dd053[_0x5888e3];if(_0x1e3ada instanceof _0xcad0e){const _0x1d5bc9=_0x48969d['get'](_0x1e3ada[_0xe389('0xf5')]['rootName']);_0x5dd053[_0x5888e3]=this['_fixPosition'](_0x1e3ada,_0x1d5bc9);}if(_0x1e3ada instanceof _0x57b050){const _0x113d53=_0x48969d[_0xe389('0x4d')](_0x1e3ada['root']['rootName']);_0x5dd053[_0x5888e3]=this[_0xe389('0x64')](_0x1e3ada,_0x113d53);}_0xe389('0xf5')===_0x5888e3&&(_0x5dd053[_0xe389('0xf5')]=_0x48969d[_0xe389('0x4d')](_0x5dd053['root']['rootName']));}}[_0xe389('0x64')](_0x544a87,_0x295bf5){return this['editor'][_0xe389('0x7f')][_0xe389('0xcb')](this[_0xe389('0x2')](_0x544a87['start'],_0x295bf5),this[_0xe389('0x2')](_0x544a87[_0xe389('0x46')],_0x295bf5));}['_fixPosition'](_0x52426e,_0x25c244){return this[_0xe389('0xd2')][_0xe389('0x7f')]['createPositionFromPath'](_0x25c244,_0x52426e[_0xe389('0x45')],_0x52426e[_0xe389('0x54')]);}[_0xe389('0xb3')](_0x1abbe6){const _0x56915e=this[_0xe389('0xd1')]['get'](_0x1abbe6[_0xe389('0x7e')]['root'][_0xe389('0x40')]),_0x58a6c8=this['_fixPosition'](_0x1abbe6[_0xe389('0x7e')],_0x56915e),_0xa5e6ad=null===_0x1abbe6[_0xe389('0x7a')]?null:_0x1abbe6['_authorId']||this['editor'][_0xe389('0xea')][_0xe389('0x4d')](_0xe389('0xa5'))['me']['id'],_0x17369e=_0x58a6c8[_0xe389('0x47')],_0x518b3e=this[_0xe389('0xca')],_0x5caae6=[];for(const _0x10667d of _0x1abbe6['nodes'])if(_0x10667d['is'](_0xe389('0xbe')))_0x5caae6['push'](this['_makeIdsRoot'](_0x10667d));else for(let _0x6e62f8=0x0;_0x6e62f8<_0x10667d[_0xe389('0x8')];_0x6e62f8++)_0x5caae6[_0xe389('0x88')](new _0x158621(_0xe389('0xb7'),{'vid':this['_revisionId']++}));const _0x127641=this[_0xe389('0xca')];for(let _0x2621f=_0x518b3e;_0x2621f<_0x127641;_0x2621f++)this[_0xe389('0x1')]['set'](_0x2621f,{'userId':_0xa5e6ad});_0x17369e[_0xe389('0xb')](_0x58a6c8['offset'],_0x5caae6);}[_0xe389('0x49')](_0xae1e33){(_0xae1e33=this[_0xe389('0x8c')](_0xae1e33,this[_0xe389('0xd1')]))['_execute']();const _0x5aece8=null===_0xae1e33[_0xe389('0x7a')]?null:_0xae1e33[_0xe389('0x7a')]||this[_0xe389('0xd2')][_0xe389('0xea')][_0xe389('0x4d')](_0xe389('0xa5'))['me']['id'],_0x198000=_0xae1e33['getMovedRangeStart'](),_0x357838=_0x198000[_0xe389('0x47')],_0x37d481=_0x198000[_0xe389('0x4e')];!function _0x52bb8e(_0x111a3e,_0x287f4d,_0x68784f,_0x4d9085){for(let _0x3c29bc=_0x68784f;_0x3c29bc<_0x4d9085;_0x3c29bc++){const _0x51e143=_0x287f4d[_0xe389('0xf1')](_0x3c29bc);_0x51e143['is'](_0xe389('0xbe'),_0xe389('0xb7'))?_0x111a3e[_0xe389('0xc4')](_0x51e143[_0xe389('0xfa')](_0xe389('0x5f')),{'userId':_0x5aece8}):(_0x111a3e[_0xe389('0xc4')](_0x51e143[_0xe389('0xfa')](_0xe389('0xc')),{'userId':_0x5aece8}),_0x52bb8e(_0x111a3e,_0x51e143,0x0,_0x51e143[_0xe389('0x9b')]),_0x111a3e['set'](_0x51e143[_0xe389('0xfa')](_0xe389('0xaf')),{'userId':_0x5aece8}));}}(this[_0xe389('0x1')],_0x357838,_0x37d481,_0x37d481+_0xae1e33[_0xe389('0x7d')]);}[_0xe389('0xad')](_0x2deefc){const _0x212277=null===(_0x2deefc=this['_cloneOperation'](_0x2deefc,this[_0xe389('0xd1')]))[_0xe389('0x7a')]?null:_0x2deefc[_0xe389('0x7a')]||this[_0xe389('0xd2')]['plugins']['get'](_0xe389('0xa5'))['me']['id'],_0x5315b4=_0x2deefc['targetPosition'][_0xe389('0x47')],_0x37dc90=_0x2deefc[_0xe389('0xa1')][_0xe389('0x47')],_0x395863=_0x5315b4[_0xe389('0xfa')]('vid_end'),_0x749fa6=_0x37dc90[_0xe389('0xfa')](_0xe389('0xc'));_0x5315b4[_0xe389('0xe8')]('vid_end',_0x37dc90['getAttribute']('vid_end')),_0x37dc90[_0xe389('0xe8')](_0xe389('0xaf'),_0x395863),this[_0xe389('0x1')]['set'](_0x749fa6,{'userId':_0x212277}),this[_0xe389('0x1')]['set'](_0x395863,{'userId':_0x212277}),_0x2deefc[_0xe389('0x1e')]();}[_0xe389('0x93')](_0x34c5fb){const _0x1e035a=null===(_0x34c5fb=this[_0xe389('0x8c')](_0x34c5fb,this[_0xe389('0xd1')]))[_0xe389('0x7a')]?null:_0x34c5fb[_0xe389('0x7a')]||this[_0xe389('0xd2')][_0xe389('0xea')][_0xe389('0x4d')]('Users')['me']['id'],_0x5be021=_0x34c5fb[_0xe389('0x28')],_0x28c21f=_0x34c5fb[_0xe389('0xc5')][_0xe389('0x47')];_0x34c5fb[_0xe389('0x1e')]();const _0x30acdb=_0x28c21f[_0xe389('0xfa')]('vid_end'),_0x4f5aca=_0x34c5fb['insertionPosition']['nodeAfter'];if(_0x5be021){const _0x33e605=_0x4f5aca[_0xe389('0xfa')](_0xe389('0xaf')),_0x459a6b=_0x28c21f['getAttribute'](_0xe389('0xaf'));_0x28c21f[_0xe389('0xe8')](_0xe389('0xaf'),_0x33e605),_0x4f5aca[_0xe389('0xe8')](_0xe389('0xaf'),_0x459a6b),this[_0xe389('0x1')][_0xe389('0xc4')](_0x28c21f[_0xe389('0xfa')]('vid_end'),{'userId':_0x1e035a}),this[_0xe389('0x1')][_0xe389('0xc4')](_0x4f5aca[_0xe389('0xfa')](_0xe389('0xc')),{'userId':_0x1e035a});}else{const _0x4b06fa=this[_0xe389('0xca')]++,_0x333f37=this[_0xe389('0xca')]++;_0x28c21f[_0xe389('0xe8')](_0xe389('0xaf'),_0x4b06fa),_0x4f5aca[_0xe389('0xe8')](_0xe389('0xc'),_0x333f37),_0x4f5aca[_0xe389('0xe8')](_0xe389('0xaf'),_0x30acdb),this['_touched']['set'](_0x4b06fa,{'userId':_0x1e035a}),this[_0xe389('0x1')][_0xe389('0xc4')](_0x333f37,{'userId':_0x1e035a});}}[_0xe389('0x8a')](_0x508dbb){if(!_0x508dbb[_0xe389('0x87')])return;const _0x45be6b=(_0x508dbb=this[_0xe389('0x8c')](_0x508dbb,this[_0xe389('0x12')]))[_0xe389('0xfd')]?_0x508dbb[_0xe389('0xfd')][_0xe389('0xf5')]:null,_0x4c1d78=_0x508dbb['newRange']?_0x508dbb['newRange'][_0xe389('0xf5')]:null;_0x45be6b&&this['_markers']['delete'](_0x508dbb[_0xe389('0x13')]),_0x4c1d78&&this[_0xe389('0x30')][_0xe389('0xc4')](_0x508dbb[_0xe389('0x13')],_0x508dbb[_0xe389('0x8d')][_0xe389('0xbb')]());const _0x59cc61=null===_0x508dbb[_0xe389('0x7a')]?null:_0x508dbb[_0xe389('0x7a')]||this[_0xe389('0xd2')][_0xe389('0xea')][_0xe389('0x4d')](_0xe389('0xa5'))['me']['id'],_0x17511b=_0x508dbb[_0xe389('0x13')];if(!this[_0xe389('0xd')][_0xe389('0x16')](_0x17511b))return void this[_0xe389('0xd')][_0xe389('0xc4')](_0x17511b,{'range':_0x508dbb['oldRange'],'userId':_0x59cc61});const _0x55c37c=this[_0xe389('0xd')]['get'](_0x17511b),_0x3c3bf7=_0x55c37c[_0xe389('0x2a')],_0x42e997=_0x508dbb[_0xe389('0x8d')];null==_0x3c3bf7&&null==_0x42e997||_0x3c3bf7&&_0x42e997&&_0x3c3bf7[_0xe389('0x65')](_0x42e997)?this['_touchedMarkers']['delete'](_0x508dbb['name']):_0x55c37c[_0xe389('0xfc')]=_0x59cc61;}[_0xe389('0x8e')](_0x212470,_0x461ac6){this[_0xe389('0x12')]['has'](_0x212470[_0xe389('0x40')])?this['_diffRoots'][_0xe389('0x4d')](_0x212470[_0xe389('0x40')])[_0xe389('0x92')]=_0x212470[_0xe389('0x3c')]:(this[_0xe389('0x12')][_0xe389('0xc4')](_0x212470['rootName'],G(_0x212470[_0xe389('0x40')],!0x0)),this['_diffRootsAttributes']['set'](_0x212470[_0xe389('0x40')],{}),_0x461ac6&&this[_0xe389('0xd1')][_0xe389('0xc4')](_0x212470[_0xe389('0x40')],G(_0x212470[_0xe389('0x40')],!0x0)));const _0x4efd84=null===_0x212470[_0xe389('0x7a')]?null:_0x212470[_0xe389('0x7a')]||this[_0xe389('0xd2')][_0xe389('0xea')][_0xe389('0x4d')](_0xe389('0xa5'))['me']['id'],_0xa2454c=this[_0xe389('0x63')][_0xe389('0x4d')](_0x212470['rootName']);_0xa2454c&&_0xa2454c[_0xe389('0xfc')]===_0x4efd84?this[_0xe389('0x63')][_0xe389('0xfe')](_0x212470[_0xe389('0x40')]):this[_0xe389('0x63')][_0xe389('0xc4')](_0x212470['rootName'],{'userId':_0x4efd84,'isAttached':_0x212470[_0xe389('0x3c')]});}['_handleRootAttributeOperation'](_0xc75fbd){const _0x455aa0=this[_0xe389('0xf')][_0xe389('0x4d')](_0xc75fbd[_0xe389('0xf5')][_0xe389('0x40')]);null===_0xc75fbd['newValue']?delete _0x455aa0[_0xc75fbd[_0xe389('0xa')]]:_0x455aa0[_0xc75fbd[_0xe389('0xa')]]=_0xc75fbd[_0xe389('0xae')];}}function q(_0x1f106e){const _0x41d786=G(_0x1f106e[_0xe389('0x40')],_0x1f106e[_0xe389('0xee')]());for(const _0x1f460b of _0x1f106e[_0xe389('0x69')]()){const _0x1deeba=_0x1f460b[_0xe389('0x9f')](!0x0);_0x41d786[_0xe389('0xc1')](_0x1deeba);}return _0x41d786;}function G(_0x20b463,_0x543bde=!0x0){const _0x188f4f=new _0x1576b0();return _0x188f4f[_0xe389('0x40')]=_0x20b463,_0x188f4f['_isAttached']=_0x543bde,_0x188f4f['isAttached']=()=>_0x188f4f[_0xe389('0x92')],_0x188f4f;}function L(_0x579db5,_0x38af62,_0x41cf32){const _0x15e511=_0xe389('0x36')==_0x579db5[_0xe389('0x20')]?_0x41cf32['createPositionAt'](_0x579db5[_0xe389('0x70')],_0xe389('0x46')):_0x41cf32[_0xe389('0x31')](_0x579db5[_0xe389('0x70')]);return _0x41cf32[_0xe389('0x50')](_0x38af62,_0x15e511[_0xe389('0x45')],_0x15e511[_0xe389('0x54')]);}function W(_0x22cdbc,_0x372c95,_0x2c6ed1){const _0x5dd4ea=_0xe389('0xb0')==_0x22cdbc[_0xe389('0x20')]?_0x2c6ed1['createPositionAt'](_0x22cdbc[_0xe389('0x70')],0x0):_0x2c6ed1['createPositionAfter'](_0x22cdbc[_0xe389('0x70')]);return _0x2c6ed1[_0xe389('0x50')](_0x372c95,_0x5dd4ea[_0xe389('0x45')],_0x5dd4ea['stickiness']);}