@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230720.0 → 0.0.0-nightly-20230722.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisiontracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3384=['creatorId','createRangeIn','createPositionAt','locale','markerToData','previousPosition','tableCell','fromVersion','editing','_saveMetaData','_handleMarkerOperation','NEGATIVE_INFINITY','_fixPosition','_getFromVersion','Empty\x20document','nodes','sort','set','createPositionFromPath','newValue','length','children','_continueCurrentRevision','setRevisionData','createdAt','includes','insert','saveRevision','_copyMarkers','view','_source','revision','setSource','_fixRange','data-revision-','revision:','authors','vid','remove','delete','nodeAfter','isAttached','_isAttached','reInit','Users','version','editor-initial-data-replaced-with-revision-data','_removeRevisionMarkers','conversion','_baseRoots','Initial\x20revision','_handleRootAttributeOperation','rootsAttributes','size','getAttribute','history','isReady','baseVersion','_removeMetaData','_touched','get','reinsert','revisionHistory.resumeUnsavedRevision','deletions','dataDowncast','_createInitialRevision','getRevisionRootsAttributes','range','attributesAfter','_diffRoots','deletion','source','markers','PendingActions','some','initial','addRevisionData','_getBaseVids','_cloneOperation','getMovedRangeStart','diffData','PENDING_ACTION_REVISION_HISTORY','useFillerType','config','$text','getRootNames','_generateTape','push','authorsIds','_startingRevisionId','_startingVersion','_handleOperation','define','splitPosition','document','parse','merge','addRootAttribute','parent','sourcePosition','_makeModelFromViewString','_loadState','keys','default','howMany','ready','vid_end','_revisionDataBuilder','getTransformedByOperation','key','collaboration.channelId','getData','currentRevision','_update','editor','_initialRoots','from','_appendChild','requires','stickiness','_getPreviousFrom','item','_reset','_pendingAction','toData','has','forEach','_markers','_addPendingAction','getCurrentRevisionId','_getViewJson','_isPendingUpdate','_setConversion','getRevisionDocumentData','_bufferedUpdates','marker','_handleRootOperation','fromEntries','clear','root','model','RealTimeCollaborationClient','end','revision-end','stringify','_getState','_insertChild','sendBufferedUpdates','attachChange','shift','_setAttribute','removeRootAttribute','for','getChildren','getNodeByPath','max','init','targetPosition','updateRevisions','childCount','_loadedStateData','createPositionAfter','getAncestors','start','initialData','_findInsertionIndex','_authorId','_processRootBeforeSave','_prepareViewToSave','elementStart','rootName','elementEnd','attributesBefore','plugins','createRevision','repository','oldRange','$graveyard','map','_handleMergeOperation','processor','_makeIdsRoot','_calculateMetaData','startsWith','type','userId','getRevision','_getVidAttributeName','toModel','newRange','split','_initialRevisionId','_revisionId','string','getLatestVersion','path','_createCurrentRevision','_removePendingAction','insertions','vid_start','offset','upcast','find','loadState','_bufferUpdate','_baseIdsRoots','_diffRootsAttributes','reverse','graveyardPosition','toVersion','update','attributes','_transformMarkers','documentFragment','_loadRevisionData','_lastTo','data','_baseRootsAttributes','_handleSplitOperation','filter','_touchedMarkers','finally','affectsData','trim','_applyOperations','getChild','isEnabled','getTime','offsetSize','_createFromRanges','insertion','adapter','buildRevisionData','addRevision','getAttributes','bind','_handleInsertOperation','_savedMetaData','element','position','_markChanges','getUser','_makeRevision','pluginName','clone','_isInit','slice','name','getRange','_execute','_touchedRoots','getRoot','then','RevisionsRepository','values','hasContent','add','afterInit','getWalker','_idsRoots','isEqual','_fixOperation','creator','getRevisions','_lastFrom','createRange','resolve'];(function(_0x2b9022,_0x3384bb){const _0x53c4c9=function(_0x52b585){while(--_0x52b585){_0x2b9022['push'](_0x2b9022['shift']());}};_0x53c4c9(++_0x3384bb);}(_0x3384,0x11b));const _0x53c4=function(_0x2b9022,_0x3384bb){_0x2b9022=_0x2b9022-0x0;let _0x53c4c9=_0x3384[_0x2b9022];return _0x53c4c9;};import{Users as _0x3f42d5}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x3ffd74,PendingActions as _0x2537ba}from'ckeditor5/src/core';import{logWarning as _0x1ff552,uid as _0x576119}from'ckeditor5/src/utils';import{Position as _0x2713cf,Range as _0x3f9413,Element as _0x57b15a,DocumentFragment as _0x480526,ViewText as _0x281bc8,ViewElement as _0x1e3e40,ViewContainerElement as _0x4b27ac,ViewAttributeElement as _0x76fc04,ViewEmptyElement as _0x44d770,ViewRawElement as _0x2c7f3d,ViewUIElement as _0x397828,ViewDocumentFragment as _0x248315}from'ckeditor5/src/engine';import _0x526e83 from'./revisionsrepository';import{getTranslation as _0x4e5cee}from'./utils/common-translations';import{cloneDeep as _0x5012e5,isEqual as _0x487c73}from'lodash-es';const B={'c':_0x4b27ac,'a':_0x76fc04,'e':_0x44d770,'r':_0x2c7f3d,'u':_0x397828};export default class l extends _0x3ffd74{static get[_0x53c4('0xe3')](){return'RevisionTracker';}static get[_0x53c4('0x66')](){return[_0x3f42d5,_0x526e83,_0x2537ba];}constructor(_0x48c0f6){super(_0x48c0f6),this[_0x53c4('0xd7')]=null,this['currentRevision']=null,this[_0x53c4('0x5b')]=new H(this[_0x53c4('0x62')]),this[_0x53c4('0xaf')]=this['editor'][_0x53c4('0x43')]['get'](_0x53c4('0x5e'))||_0x53c4('0x3b'),this[_0x53c4('0x76')]=new Map(),this['_loadedStateData']=null;const _0x1d22ec=_0x576119();this[_0x53c4('0xe')]={'history':this[_0x53c4('0x62')][_0x53c4('0x7c')][_0x53c4('0x4e')][_0x53c4('0x27')],'getLatestVersion':()=>Promise['resolve'](this[_0x53c4('0x62')][_0x53c4('0x7c')][_0x53c4('0x4e')][_0x53c4('0x1d')]),'getCurrentRevisionId':()=>_0x1d22ec},this[_0x53c4('0x1')](_0x53c4('0x28'),!0x1),this[_0x53c4('0x1')](_0x53c4('0xd2'),!0x0),this[_0x53c4('0x1')]('_isPendingUpdate',!0x1),this['editor'][_0x53c4('0x43')][_0x53c4('0x4c')](_0x53c4('0x2e'),!0x0),this[_0x53c4('0x62')]['conversion'][_0x53c4('0x88')](_0x53c4('0xb9'))['dataToMarker']({'view':_0x53c4('0xf')});}[_0x53c4('0x8c')](){this['repository']=this[_0x53c4('0x62')][_0x53c4('0x9d')]['get'](_0x53c4('0xed')),this[_0x53c4('0x74')](),this['editor'][_0x53c4('0xc8')]['on'](_0x53c4('0x59'),()=>{const _0x1ba262=this[_0x53c4('0x9f')][_0x53c4('0xaa')](0x0),_0x3fb4c0=_0x1ba262&&null===_0x1ba262[_0x53c4('0xf6')]?_0x1ba262:null;if(this[_0x53c4('0x6')]=!!_0x3fb4c0&&this['editor'][_0x53c4('0x43')][_0x53c4('0x2c')](_0x53c4('0x2e')),this[_0x53c4('0x62')]['plugins'][_0x53c4('0x6d')](_0x53c4('0x7d'))){const _0x257ce2=this[_0x53c4('0xe')][_0x53c4('0x71')](),_0x43b634=this[_0x53c4('0x9f')][_0x53c4('0xaa')](_0x257ce2);if(_0x43b634)this[_0x53c4('0x4a')]=_0x43b634[_0x53c4('0x102')],this[_0x53c4('0x6')]=!0x1;else{const _0x9c980e=this[_0x53c4('0xe')]['history']['_operations'][_0x53c4('0xba')](_0x4013f1=>!_0x4013f1[_0x53c4('0xe5')]),_0x411a92=_0x9c980e?_0x9c980e[_0x53c4('0x29')]:this[_0x53c4('0xe')]['history']['version'];_0x1ba262?(_0x1ba262['toVersion']<_0x411a92&&_0x1ba262[_0x53c4('0x61')]({'toVersion':_0x411a92}),this[_0x53c4('0x6')]?(this[_0x53c4('0xe')][_0x53c4('0x71')]=()=>_0x3fb4c0['id'],this[_0x53c4('0x4a')]=_0x3fb4c0[_0x53c4('0x102')]):(this[_0x53c4('0x4a')]=_0x1ba262[_0x53c4('0xc1')],this[_0x53c4('0x6')]=!0x1)):(this[_0x53c4('0x4a')]=_0x411a92,this[_0x53c4('0x6')]=!0x1);}}else _0x3fb4c0&&(this[_0x53c4('0x62')][_0x53c4('0x7c')]['document'][_0x53c4('0x27')][_0x53c4('0x1d')]=Math[_0x53c4('0x8b')](_0x3fb4c0[_0x53c4('0xc1')],this[_0x53c4('0x62')]['model'][_0x53c4('0x4e')][_0x53c4('0x27')][_0x53c4('0x1d')]),_0x3fb4c0['fromVersion']===_0x3fb4c0[_0x53c4('0xc1')]?(0x0!==_0x3fb4c0[_0x53c4('0x102')]&&(this[_0x53c4('0xe')][_0x53c4('0x71')]=()=>_0x3fb4c0['id']),this[_0x53c4('0x6')]=!0x1):this['_continueCurrentRevision']&&(this[_0x53c4('0xe')][_0x53c4('0x71')]=()=>_0x3fb4c0['id'],this['_startingVersion']=_0x3fb4c0['fromVersion'])),this['_continueCurrentRevision']||(this[_0x53c4('0x4a')]=this[_0x53c4('0x62')][_0x53c4('0x7c')][_0x53c4('0x4e')][_0x53c4('0x1d')]);this['_revisionDataBuilder'][_0x53c4('0x8c')](this[_0x53c4('0xe')][_0x53c4('0x27')]),this['_createInitialRevision'](this['_startingVersion']),this[_0x53c4('0xb4')](this[_0x53c4('0x4a')]),this[_0x53c4('0xd7')]&&this[_0x53c4('0x83')]();}),this[_0x53c4('0xdb')]('isReady')['to'](this,'_isPendingUpdate',_0x4a8ad0=>!_0x4a8ad0);}async[_0x53c4('0xf1')](){if(this[_0x53c4('0x9f')]['length']>0x0){const _0x2cabf6=this[_0x53c4('0x9f')][_0x53c4('0xaa')](0x0),_0xc8411a=await this[_0x53c4('0x75')](_0x2cabf6),_0x4fd7a4=await this['getRevisionRootsAttributes'](_0x2cabf6);this['_replaceEditorDataWithRevisionData'](_0xc8411a,_0x4fd7a4);}}[_0x53c4('0x10')](_0x448be5){this[_0x53c4('0xe')]=_0x448be5;}async[_0x53c4('0xc2')](){const _0x30a9a7=await this['_source'][_0x53c4('0xb2')]();if(_0x30a9a7>this[_0x53c4('0x60')]['toVersion']){await this['_loadState']();const _0x397899=this['buildRevisionData']({'revision':this[_0x53c4('0x60')],'to':_0x30a9a7});_0x397899[_0x53c4('0x14')]=_0x397899[_0x53c4('0x48')][_0x53c4('0xa2')](_0x5c045c=>this[_0x53c4('0x62')]['plugins'][_0x53c4('0x2c')](_0x53c4('0x1c'))[_0x53c4('0xe1')](_0x5c045c)),this['currentRevision']['_update'](_0x397899);}}async[_0x53c4('0x55')](){this['_continueCurrentRevision']&&!this[_0x53c4('0x90')]&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder'][_0x53c4('0xbb')](this[_0x53c4('0x60')]),this[_0x53c4('0x90')]={'fromVersion':this[_0x53c4('0x60')][_0x53c4('0x102')],'authors':this['currentRevision'][_0x53c4('0x14')]['slice']()});}async[_0x53c4('0xb')](_0x3d80d4={},_0x35dda8=null){const _0x422b4e=[];await this[_0x53c4('0x55')](),this[_0x53c4('0x6')]=!0x1,_0x35dda8>this[_0x53c4('0x60')][_0x53c4('0xc1')]&&(_0x35dda8=null),null===_0x35dda8&&(_0x35dda8=await this[_0x53c4('0xe')][_0x53c4('0xb2')]());const _0x38f42d=this[_0x53c4('0x108')](_0x35dda8),_0x517a6c=this[_0x53c4('0xd8')]({'from':_0x38f42d,'to':_0x35dda8});if(this['currentRevision'][_0x53c4('0xc1')]<_0x35dda8){const _0x3847ee=this[_0x53c4('0xd8')]({'revision':this[_0x53c4('0x60')],'from':_0x35dda8,'to':_0x35dda8});_0x3847ee[_0x53c4('0x14')]=[],_0x3847ee[_0x53c4('0x48')]=[],_0x3847ee['id']=this[_0x53c4('0x60')]['id'],this[_0x53c4('0x60')][_0x53c4('0x61')](_0x3847ee,!0x0),delete _0x3847ee[_0x53c4('0x14')],_0x422b4e['push'](_0x3847ee);}_0x3d80d4[_0x53c4('0xfb')]=this[_0x53c4('0x62')][_0x53c4('0x9d')][_0x53c4('0x2c')](_0x53c4('0x1c'))['me']['id'],_0x3d80d4[_0x53c4('0xe7')]=_0x3d80d4[_0x53c4('0xe7')]||null,_0x3d80d4['id']=_0x3d80d4['id']||_0x576119(),_0x3d80d4={..._0x3d80d4,..._0x517a6c};const _0x316d23=this[_0x53c4('0x3c')](_0x3d80d4);_0x422b4e[_0x53c4('0x47')](_0x3d80d4);const _0x38bc99=this[_0x53c4('0x9f')]['getIndex'](_0x316d23);if(0x0!==_0x38bc99){const _0x3c03c8=this['repository'][_0x53c4('0xaa')](_0x38bc99-0x1);if(_0x3c03c8[_0x53c4('0x102')]!==_0x35dda8){const _0x2f694d=this[_0x53c4('0x5b')]['getData'](_0x35dda8,_0x3c03c8['toVersion']),_0x23751d={'id':_0x3c03c8['id'],'diffData':_0x2f694d[_0x53c4('0x40')],'authorsIds':_0x2f694d[_0x53c4('0x48')],'authors':_0x2f694d[_0x53c4('0x48')][_0x53c4('0xa2')](_0x686e83=>this[_0x53c4('0x62')][_0x53c4('0x9d')][_0x53c4('0x2c')](_0x53c4('0x1c'))[_0x53c4('0xe1')](_0x686e83)),'fromVersion':_0x35dda8};_0x3c03c8===this[_0x53c4('0x60')]&&(_0x23751d['createdAt']=new Date(_0x3d80d4[_0x53c4('0x8')][_0x53c4('0xd3')]()+0xa)),_0x3c03c8['_update'](_0x23751d,!0x0),delete _0x23751d['authors'],_0x422b4e['push'](_0x23751d);}}if(this['adapter']){for(const _0xc29e3f of _0x422b4e)this[_0x53c4('0xbc')](_0xc29e3f['id'],_0xc29e3f,!0x0);this[_0x53c4('0x83')]();}return _0x316d23;}[_0x53c4('0x3c')](_0x1e14de){const _0x5b0f30=this[_0x53c4('0x9f')][_0x53c4('0x9e')](_0x1e14de);return this[_0x53c4('0xd7')]&&_0x5b0f30['on'](_0x53c4('0x61'),(_0x5540fe,_0x446066,_0x45287b)=>{_0x45287b||(this[_0x53c4('0xbc')](_0x446066['id'],_0x446066,!0x0),this['sendBufferedUpdates']());}),this[_0x53c4('0x9f')][_0x53c4('0xd9')](_0x5b0f30,this[_0x53c4('0x95')](_0x5b0f30)),_0x5b0f30;}async[_0x53c4('0x75')](_0x5cf7b5){await this[_0x53c4('0xc6')](_0x5cf7b5);const _0x2e35b4={};for(const _0x30f27e in _0x5cf7b5[_0x53c4('0x40')]){if(_0x5cf7b5['diffData'][_0x30f27e]['attachChange']&&!_0x5cf7b5[_0x53c4('0x40')][_0x30f27e][_0x53c4('0x84')]['isAttached'])continue;const _0x481612=this['_removeRevisionMarkers'](JSON[_0x53c4('0x4f')](_0x5cf7b5[_0x53c4('0x40')][_0x30f27e]['insertions'])),_0xd20fa9=this[_0x53c4('0x62')][_0x53c4('0x103')][_0x53c4('0xd')]['document'],_0x44d80a=new _0x248315(_0xd20fa9,_0x481612[_0x53c4('0xa2')](_0x221af7=>J(_0x221af7,this[_0x53c4('0x62')])));this[_0x53c4('0x62')][_0x53c4('0xc8')][_0x53c4('0xa4')]['useFillerType']('marked'),_0x2e35b4[_0x30f27e]=this[_0x53c4('0x62')][_0x53c4('0xc8')][_0x53c4('0xa4')][_0x53c4('0x6c')](_0x44d80a),this[_0x53c4('0x62')]['data'][_0x53c4('0xa4')][_0x53c4('0x42')](_0x53c4('0x57'));}return _0x2e35b4;}async[_0x53c4('0x32')](_0x84e138){await this[_0x53c4('0xc6')](_0x84e138);const _0x19f2b6={};for(const _0x46e916 in _0x84e138[_0x53c4('0x40')])_0x84e138[_0x53c4('0x40')][_0x46e916][_0x53c4('0x84')]&&!_0x84e138[_0x53c4('0x40')][_0x46e916][_0x53c4('0x84')][_0x53c4('0x19')]||(_0x19f2b6[_0x46e916]=_0x84e138[_0x53c4('0x40')][_0x46e916][_0x53c4('0x34')]||{});return _0x19f2b6;}[_0x53c4('0x83')](){if(0x0===this[_0x53c4('0x76')][_0x53c4('0x25')])return;if(this[_0x53c4('0x73')])return;let _0x45e1f4=Array[_0x53c4('0x64')](this[_0x53c4('0x76')]['values']());this[_0x53c4('0x76')]['clear']();for(let _0x1a5ab6=0x0;_0x1a5ab6<_0x45e1f4[_0x53c4('0x4')];_0x1a5ab6++){const _0x40cbd2=_0x45e1f4[_0x1a5ab6];let _0x33d18a=!0x1;for(const _0x1116a9 of Object['keys'](_0x40cbd2))void 0x0===_0x40cbd2[_0x1116a9]?delete _0x40cbd2[_0x1116a9]:'id'!==_0x1116a9&&(_0x33d18a=!0x0);_0x33d18a||(_0x45e1f4[_0x1a5ab6]=null);}if(_0x45e1f4=_0x45e1f4[_0x53c4('0xcb')](_0x43bed9=>null!==_0x43bed9),!_0x45e1f4[_0x53c4('0x4')])return;for(let _0x300ac8=0x0;_0x300ac8<_0x45e1f4[_0x53c4('0x4')];_0x300ac8++){const _0x33651e=_0x45e1f4[_0x300ac8];void 0x0!==_0x33651e[_0x53c4('0x102')]&&void 0x0===_0x33651e[_0x53c4('0xc1')]&&(_0x33651e[_0x53c4('0xc1')]=this['repository']['getRevision'](_0x33651e['id'])['toVersion']),void 0x0!==_0x33651e[_0x53c4('0xc1')]&&void 0x0===_0x33651e[_0x53c4('0x102')]&&(_0x33651e[_0x53c4('0x102')]=this[_0x53c4('0x9f')]['getRevision'](_0x33651e['id'])[_0x53c4('0x102')]);}const _0x579d81=this[_0x53c4('0x62')][_0x53c4('0x43')]['get'](_0x53c4('0x5e'));this[_0x53c4('0x73')]=!0x0,this[_0x53c4('0x70')](),this[_0x53c4('0xd7')][_0x53c4('0x8e')](_0x45e1f4,_0x579d81)[_0x53c4('0xcd')](()=>{this[_0x53c4('0x73')]=!0x1;})['then'](_0x38bf97=>{if(_0x38bf97)for(const _0x3be6a3 of _0x38bf97)this['setRevisionData']({'id':_0x3be6a3['id'],'createdAt':_0x3be6a3[_0x53c4('0x8')]});this[_0x53c4('0xb5')](),this[_0x53c4('0x83')]();});}['_replaceEditorDataWithRevisionData'](_0x2daeb0,_0x3f163b){let _0x1d58ea=this['editor'][_0x53c4('0x43')][_0x53c4('0x2c')](_0x53c4('0x94')),_0x14ced2=this[_0x53c4('0x62')]['config'][_0x53c4('0x2c')](_0x53c4('0x24'));if(void 0x0===_0x1d58ea){_0x1d58ea={};for(const _0x10be1e of this['editor'][_0x53c4('0x7c')][_0x53c4('0x4e')]['getRootNames']())_0x1d58ea[_0x10be1e]='';}if(_0x53c4('0xb1')==typeof _0x1d58ea&&(_0x1d58ea={'main':_0x1d58ea}),void 0x0===_0x14ced2){_0x14ced2={};for(const _0x23503b of this[_0x53c4('0x62')][_0x53c4('0x7c')][_0x53c4('0x4e')]['getRootNames']())_0x14ced2[_0x23503b]={};}let _0x14e6c7=!0x1;const _0x46e68f=Object[_0x53c4('0x56')](_0x1d58ea),_0x181ad4=Object[_0x53c4('0x56')](_0x2daeb0);for(const _0x24642d of _0x46e68f){if(_0x1d58ea[_0x24642d]!==_0x2daeb0[_0x24642d]&&''!==_0x1d58ea[_0x24642d][_0x53c4('0xcf')]()){_0x14e6c7=!0x0;break;}if(!_0x487c73(_0x14ced2[_0x24642d],_0x3f163b[_0x24642d])&&Object[_0x53c4('0x56')](_0x14ced2[_0x24642d])[_0x53c4('0x4')]>0x0){_0x14e6c7=!0x0;break;}}_0x14e6c7||(_0x14e6c7=_0x181ad4[_0x53c4('0x3a')](_0x3f106c=>!_0x46e68f[_0x53c4('0x9')](_0x3f106c))),_0x14e6c7&&_0x1ff552(_0x53c4('0x1e'),{'editorData':_0x1d58ea,'editorRootsAttributes':_0x14ced2,'revisionData':_0x2daeb0,'revisionRootsAttributes':_0x3f163b}),this[_0x53c4('0x62')][_0x53c4('0x43')]['set']('initialData',_0x2daeb0),this[_0x53c4('0x62')][_0x53c4('0x43')][_0x53c4('0x1')](_0x53c4('0x24'),_0x3f163b);}['_addPendingAction'](){if(!this[_0x53c4('0x6b')]){const _0x37179d=this[_0x53c4('0x62')][_0x53c4('0x9d')][_0x53c4('0x2c')](_0x53c4('0x39'));this[_0x53c4('0x6b')]=_0x37179d[_0x53c4('0xf0')](_0x4e5cee(this[_0x53c4('0x62')][_0x53c4('0xfe')],_0x53c4('0x41')));}}[_0x53c4('0xb5')](){this[_0x53c4('0x6b')]&&(this['editor'][_0x53c4('0x9d')]['get'](_0x53c4('0x39'))[_0x53c4('0x16')](this[_0x53c4('0x6b')]),this['_pendingAction']=null);}[_0x53c4('0x95')](_0x2b940e){const _0x1be9fc=this[_0x53c4('0x9f')][_0x53c4('0xf7')]();_0x1be9fc['reverse']();let _0x363d81=0x0;for(;_0x363d81<_0x1be9fc['length'];){const _0x4a4c7e=_0x1be9fc[_0x363d81];if(_0x4a4c7e===this[_0x53c4('0x60')]){_0x363d81++;continue;}if(_0x4a4c7e['id']===this[_0x53c4('0xaf')])break;const _0x602419=_0x2b940e[_0x53c4('0xc1')]-_0x4a4c7e['toVersion']||_0x2b940e[_0x53c4('0x102')]-_0x4a4c7e[_0x53c4('0x102')];if(_0x602419>0x0)break;if(_0x602419<0x0)_0x363d81++;else{if(!_0x2b940e[_0x53c4('0xf6')]&&_0x4a4c7e[_0x53c4('0xf6')])break;if(_0x4a4c7e[_0x53c4('0xf6')]||!_0x2b940e[_0x53c4('0xf6')]){if(_0x2b940e['createdAt']>_0x4a4c7e[_0x53c4('0x8')])break;_0x363d81++;}else _0x363d81++;}}return _0x363d81;}[_0x53c4('0x7')](_0x5ed3d9){const _0x3a80e4=this['repository'][_0x53c4('0xaa')](_0x5ed3d9['id']);if(_0x5ed3d9['createdAt']&&(_0x5ed3d9['createdAt']=new Date(_0x5ed3d9[_0x53c4('0x8')])),_0x5ed3d9['authorsIds']){const _0x4b9c35=this[_0x53c4('0x62')][_0x53c4('0x9d')][_0x53c4('0x2c')](_0x53c4('0x1c'));_0x5ed3d9[_0x53c4('0x14')]=_0x5ed3d9[_0x53c4('0x48')][_0x53c4('0xa2')](_0x7e822f=>_0x4b9c35[_0x53c4('0xe1')](_0x7e822f));}_0x3a80e4[_0x53c4('0x61')](_0x5ed3d9,!0x0);}[_0x53c4('0xd8')]({revision:_0xc9e65a=null,from:_0x17aca1=null,to:_0x3d29a7=null}){_0x17aca1=null!==_0x17aca1?_0x17aca1:_0xc9e65a['fromVersion'],_0x3d29a7=null!==_0x3d29a7?_0x3d29a7:_0xc9e65a['toVersion'];const _0x5f49b4=this[_0x53c4('0x5b')]['getData'](_0x17aca1,_0x3d29a7),_0x1bee03={'diffData':_0x5f49b4[_0x53c4('0x40')],'authorsIds':_0x5f49b4['authorsIds'],'fromVersion':_0x17aca1,'toVersion':_0x3d29a7};if(!_0xc9e65a||_0x3d29a7!==_0xc9e65a['toVersion']){const _0x48bf11=_0x3d29a7-0x1,_0x21bd6c=this['_source'][_0x53c4('0x27')]['getOperation'](_0x48bf11);_0x1bee03[_0x53c4('0x8')]=_0x21bd6c&&_0x21bd6c[_0x53c4('0x8')]||new Date();}if(this[_0x53c4('0x90')]&&_0x17aca1===this[_0x53c4('0x90')]['fromVersion'])for(const _0x4209a8 of this[_0x53c4('0x90')][_0x53c4('0x14')])_0x1bee03[_0x53c4('0x48')]['includes'](_0x4209a8['id'])||_0x1bee03[_0x53c4('0x48')][_0x53c4('0x47')](_0x4209a8['id']);return _0x1bee03;}[_0x53c4('0xc6')](_0x50427f){if(!_0x50427f||_0x50427f['diffData'])return Promise[_0x53c4('0xfa')]();{const _0x32f273=this['editor'][_0x53c4('0x43')][_0x53c4('0x2c')]('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x32f273,'revisionId':_0x50427f['id']})[_0x53c4('0xec')](_0x508ae7=>{_0x50427f[_0x53c4('0x40')]=_0x508ae7[_0x53c4('0x40')];});}}[_0x53c4('0xbc')](_0x524e91,_0x287798,_0x4c1b78){if(this[_0x53c4('0x76')][_0x53c4('0x6d')](_0x524e91)){const _0x50afd6=this[_0x53c4('0x76')][_0x53c4('0x2c')](_0x524e91);_0x287798=_0x4c1b78?{..._0x50afd6,..._0x287798}:{..._0x287798,..._0x50afd6};}this[_0x53c4('0x76')][_0x53c4('0x1')](_0x524e91,_0x287798);}[_0x53c4('0x108')](_0xb1ed13){const _0x41cb87=this['repository'][_0x53c4('0xf7')]();_0x41cb87[_0x53c4('0xbf')](),_0x41cb87[_0x53c4('0x85')]();const _0x1beb4f=_0x41cb87[_0x53c4('0xba')](_0x415a31=>_0x415a31[_0x53c4('0xc1')]<=_0xb1ed13)[_0x53c4('0xc1')];return _0x1beb4f<this[_0x53c4('0x4a')]?this[_0x53c4('0x4a')]:_0x1beb4f;}[_0x53c4('0x31')](_0x1a81d4){const _0x1345b0=this[_0x53c4('0x9f')]['getRevision'](this['repository']['length']-0x1);if(_0x1345b0)this[_0x53c4('0xaf')]=_0x1345b0['id'];else{const _0x53f9ab=!this[_0x53c4('0x62')][_0x53c4('0x7c')][_0x53c4('0x4e')]['roots']['find'](_0x3e7b6e=>this[_0x53c4('0x62')][_0x53c4('0x7c')][_0x53c4('0xef')](_0x3e7b6e)),_0x2a53b6=this['editor']['plugins'][_0x53c4('0x2c')](_0x53c4('0x1c'))['me']['id'],_0x4dfad3=_0x4e5cee(this[_0x53c4('0x62')][_0x53c4('0xfe')],_0x53f9ab?_0x53c4('0x109'):_0x53c4('0x22'));this['_makeRevision']({'from':_0x1a81d4,'to':_0x1a81d4,'id':this['_initialRevisionId'],'name':_0x4dfad3,'creatorId':_0x2a53b6});}}[_0x53c4('0xb4')](_0xe026d4){const _0x11c253=this[_0x53c4('0xe')][_0x53c4('0x71')]();this['currentRevision']=this[_0x53c4('0x9f')]['getRevision'](_0x11c253),this[_0x53c4('0x60')]||(this[_0x53c4('0x60')]=this[_0x53c4('0xe2')]({'from':_0xe026d4,'to':_0xe026d4,'id':_0x11c253,'name':'','creatorId':null}));}[_0x53c4('0xe2')]({name:_0x50c50d,from:_0x1d76c6,to:_0x4d569a,creatorId:_0x362b21,id:_0x3bf3ec}){const _0x2dfa51=this[_0x53c4('0xd8')]({'from':_0x1d76c6,'to':_0x4d569a});_0x2dfa51[_0x53c4('0xe7')]=_0x50c50d,_0x2dfa51['creatorId']=_0x362b21,_0x2dfa51['id']=_0x3bf3ec;const _0x2dbf3f=this[_0x53c4('0x3c')](_0x2dfa51);return this[_0x53c4('0xd7')]&&this[_0x53c4('0xbc')](_0x2dfa51['id'],_0x2dfa51,!0x0),_0x2dbf3f;}[_0x53c4('0x74')](){this['editor'][_0x53c4('0x20')][_0x53c4('0x88')](_0x53c4('0x30'))[_0x53c4('0xff')]({'model':_0x53c4('0xf')});}[_0x53c4('0x1f')](_0x2676e9){return(_0x2676e9=_0x2676e9[_0x53c4('0xcb')](_0x583585=>!_0x583585[_0x53c4('0xe7')]||'revision-start'!==_0x583585[_0x53c4('0xe7')]&&_0x53c4('0x7f')!==_0x583585[_0x53c4('0xe7')]))[_0x53c4('0x6e')](_0x24c789=>{_0x53c4('0xb1')!=typeof _0x24c789&&(_0x24c789[_0x53c4('0x5')]=this['_removeRevisionMarkers'](_0x24c789[_0x53c4('0x5')]),_0x24c789[_0x53c4('0xc3')]=_0x24c789[_0x53c4('0xc3')][_0x53c4('0xcb')](_0xbfd39e=>!_0xbfd39e[0x0]['startsWith'](_0x53c4('0x12'))));}),_0x2676e9;}}function J(_0xca0038,_0x43e5c5){const _0xb5fcf1=_0x43e5c5[_0x53c4('0x103')][_0x53c4('0xd')][_0x53c4('0x4e')];if(_0x53c4('0xb1')==typeof _0xca0038)return new _0x281bc8(_0xb5fcf1,_0xca0038);{const _0x27b5b2=_0xca0038['children'][_0x53c4('0xa2')](_0x55c0cc=>J(_0x55c0cc,_0x43e5c5));return new(B[_0xca0038[(_0x53c4('0xa8'))]]||_0x1e3e40)(_0xb5fcf1,_0xca0038[_0x53c4('0xe7')],_0xca0038[_0x53c4('0xc3')],_0x27b5b2);}}class H{constructor(_0x47ff3c){this[_0x53c4('0x62')]=_0x47ff3c,this['_savedMetaData']=new Map(),this[_0x53c4('0xf8')]=-0x1,this[_0x53c4('0xc7')]=-0x1,this[_0x53c4('0x6f')]=new Map(),this[_0x53c4('0x35')]=new Map(),this[_0x53c4('0xbe')]=new Map(),this[_0x53c4('0x21')]=new Map(),this[_0x53c4('0xc9')]=new Map(),this[_0x53c4('0xf3')]=new Map(),this[_0x53c4('0xbd')]=new Map(),this[_0x53c4('0x2b')]=new Map(),this[_0x53c4('0xcc')]=new Map(),this[_0x53c4('0xea')]=new Map(),this['_revisionId']=0x1,this[_0x53c4('0x63')]=this[_0x53c4('0x62')]['model'][_0x53c4('0x4e')]['getRootNames'](),this['_initialRoots'][_0x53c4('0x47')](_0x53c4('0xa1'));}[_0x53c4('0x8c')](_0xca5348){this[_0x53c4('0x37')]=_0xca5348;const _0x2d1cc6=new Map(),_0x520bbf=new Map(),_0x4277ea=this[_0x53c4('0x62')][_0x53c4('0x7c')][_0x53c4('0x4e')][_0x53c4('0x45')](!0x0);_0x4277ea['push'](_0x53c4('0xa1'));for(const _0x232e47 of _0x4277ea){const _0x331029=this[_0x53c4('0x62')][_0x53c4('0x7c')][_0x53c4('0x4e')][_0x53c4('0xeb')](_0x232e47),_0x32633f=q(_0x331029);_0x2d1cc6[_0x53c4('0x1')](_0x232e47,_0x32633f),_0x520bbf['set'](_0x232e47,Object[_0x53c4('0x79')](_0x331029['getAttributes']()));}const _0x452fe8=Array[_0x53c4('0x64')](this[_0x53c4('0x62')][_0x53c4('0x7c')][_0x53c4('0x38')])['map'](_0x1f76c4=>[_0x1f76c4[_0x53c4('0xe7')],_0x1f76c4[_0x53c4('0xe8')]()]),_0x557b01=this[_0x53c4('0x37')][_0x53c4('0x1d')];this['_saveMetaData'](_0x557b01,_0x2d1cc6,_0x452fe8,_0x520bbf),this[_0x53c4('0x49')]=this[_0x53c4('0xb0')];const _0x5bb67c=new Map(),_0x38a2f5=new Map();for(const _0x48eeac of this[_0x53c4('0x63')]){const _0x2911e9=G(_0x48eeac);_0x5bb67c[_0x53c4('0x1')](_0x48eeac,_0x2911e9),_0x38a2f5['set'](_0x48eeac,{});}this[_0x53c4('0x104')](Number['NEGATIVE_INFINITY'],_0x5bb67c,[],_0x38a2f5);}[_0x53c4('0x5f')](_0x3781cc,_0x365a90){if(this[_0x53c4('0xf8')]===_0x3781cc&&this[_0x53c4('0xc7')]<=_0x365a90)this[_0x53c4('0xdd')][_0x53c4('0x25')]>0x1&&this[_0x53c4('0x2a')](this[_0x53c4('0xc7')]),this[_0x53c4('0xd0')](this[_0x53c4('0xc7')],_0x365a90,!0x0);else{if(!this[_0x53c4('0xdd')]['has'](_0x3781cc)){const _0x147b44=this[_0x53c4('0x68')](_0x3781cc);this[_0x53c4('0xa6')](_0x147b44,_0x3781cc,!0x1);}this[_0x53c4('0xa6')](_0x3781cc,_0x365a90,!0x0);}return this[_0x53c4('0xf8')]=_0x3781cc,this[_0x53c4('0xc7')]=_0x365a90,this[_0x53c4('0x81')]();}[_0x53c4('0xbb')](_0x4d33be){this[_0x53c4('0x6a')](),this[_0x53c4('0xf8')]=_0x4d33be[_0x53c4('0x102')],this[_0x53c4('0xc7')]=_0x4d33be[_0x53c4('0xc1')];for(const _0x5bd6cc in _0x4d33be[_0x53c4('0x40')]){const _0x2ce7cc=_0x4d33be[_0x53c4('0x40')][_0x5bd6cc][_0x53c4('0x84')],_0x18e40c=_0x5012e5(_0x4d33be[_0x53c4('0x40')][_0x5bd6cc][_0x53c4('0x9c')])||{},_0x5739d1=this[_0x53c4('0x54')](_0x4d33be[_0x53c4('0x40')][_0x5bd6cc]['deletions']);_0x5739d1[_0x53c4('0x9a')]=_0x5bd6cc,_0x5739d1[_0x53c4('0x1a')]=!_0x2ce7cc||!_0x2ce7cc[_0x53c4('0x19')],_0x5739d1[_0x53c4('0x19')]=()=>_0x5739d1[_0x53c4('0x1a')],this[_0x53c4('0x21')][_0x53c4('0x1')](_0x5bd6cc,_0x5739d1),this[_0x53c4('0xc9')][_0x53c4('0x1')](_0x5bd6cc,_0x18e40c),_0x2ce7cc&&this['_touchedRoots']['set'](_0x5bd6cc,_0x2ce7cc);const _0x12f932=this[_0x53c4('0xa5')](_0x5739d1);this[_0x53c4('0xbd')][_0x53c4('0x1')](_0x5bd6cc,_0x12f932);for(const [_0xacafdb,_0x52ce22]of _0x5739d1['markers']){if(!_0xacafdb[_0x53c4('0xa7')](_0x53c4('0x13')))continue;const _0x499019=_0xacafdb[_0x53c4('0xae')](':')[0x2];for(const _0x3d31c4 of _0x52ce22[_0x53c4('0xf2')]({'singleCharacters':!0x0})){const _0x2ab575=this['_getVidAttributeName'](_0x3d31c4),_0x5eb671='elementEnd'==_0x3d31c4['type']?_0x3d31c4[_0x53c4('0x100')][_0x53c4('0xb3')]['slice'](0x0,-0x1):_0x3d31c4[_0x53c4('0x100')]['path'],_0x1622d6=_0x12f932[_0x53c4('0x8a')](_0x5eb671)[_0x53c4('0x26')](_0x2ab575);this[_0x53c4('0x2b')][_0x53c4('0x1')](_0x1622d6,{'userId':_0x499019});}}}this[_0x53c4('0x49')]=this[_0x53c4('0xb0')];const _0x5b105e=[...Array(this['_revisionId'])[_0x53c4('0x56')]()][_0x53c4('0xe6')](0x1)['filter'](_0x32d1eb=>!this[_0x53c4('0x2b')][_0x53c4('0x6d')](_0x32d1eb));let _0x2cb131=0x0;const _0x1cc81f=new Map();for(const _0x30967a in _0x4d33be[_0x53c4('0x40')]){const _0x371b4d=_0x4d33be['diffData'][_0x30967a][_0x53c4('0x84')],_0x960085=_0x5012e5(_0x4d33be[_0x53c4('0x40')][_0x30967a][_0x53c4('0x34')])||{},_0x404a20=this[_0x53c4('0x54')](_0x4d33be[_0x53c4('0x40')][_0x30967a][_0x53c4('0xb6')]);_0x404a20[_0x53c4('0x9a')]=_0x30967a,_0x404a20[_0x53c4('0x1a')]=!_0x371b4d||_0x371b4d[_0x53c4('0x19')],_0x404a20[_0x53c4('0x19')]=()=>_0x404a20[_0x53c4('0x1a')],this['_diffRoots'][_0x53c4('0x1')](_0x30967a,_0x404a20),this[_0x53c4('0xbe')][_0x53c4('0x1')](_0x30967a,_0x960085);const _0x24b30e=this[_0x53c4('0xa5')](_0x404a20,Number[_0x53c4('0x106')]);this[_0x53c4('0xf3')][_0x53c4('0x1')](_0x30967a,_0x24b30e),_0x1cc81f[_0x53c4('0x1')](_0x30967a,_0x404a20[_0x53c4('0x19')]()?_0x960085:{});for(const [_0x56d5c9,_0xe992f6]of _0x404a20[_0x53c4('0x38')]){if(!_0x56d5c9['startsWith'](_0x53c4('0x13')))continue;const _0x352207=_0x56d5c9['split'](':')[0x2];for(const _0x5eff75 of _0xe992f6['getWalker']({'singleCharacters':!0x0})){const _0x2731f0=this[_0x53c4('0xab')](_0x5eff75),_0xf18c38=this[_0x53c4('0xb0')]++,_0x47fe03=_0x53c4('0x9b')==_0x5eff75[_0x53c4('0xa8')]?_0x5eff75[_0x53c4('0x100')]['path'][_0x53c4('0xe6')](0x0,-0x1):_0x5eff75['previousPosition'][_0x53c4('0xb3')];_0x24b30e['getNodeByPath'](_0x47fe03)[_0x53c4('0x86')](_0x2731f0,_0xf18c38),this['_touched']['set'](_0xf18c38,{'userId':_0x352207});}}for(const _0x48a1f5 of this['editor'][_0x53c4('0x7c')][_0x53c4('0xfc')](_0x404a20)[_0x53c4('0xf2')]({'singleCharacters':!0x0})){const _0x3e6539=this[_0x53c4('0xab')](_0x48a1f5),_0xed392d=_0x53c4('0x9b')==_0x48a1f5[_0x53c4('0xa8')]?_0x48a1f5[_0x53c4('0x100')][_0x53c4('0xb3')][_0x53c4('0xe6')](0x0,-0x1):_0x48a1f5[_0x53c4('0x100')][_0x53c4('0xb3')],_0x58a0a1=_0x24b30e[_0x53c4('0x8a')](_0xed392d);_0x58a0a1[_0x53c4('0x26')](_0x3e6539)>0x0||_0x58a0a1[_0x53c4('0x86')](_0x3e6539,_0x5b105e[_0x2cb131++]);}for(const [_0x3de738,_0x4a0923]of _0x404a20['markers'])_0x3de738[_0x53c4('0xa7')](_0x53c4('0x13'))||this[_0x53c4('0x6f')]['set'](_0x3de738,_0x4a0923);}const _0x340897=G(_0x53c4('0xa1'));this[_0x53c4('0x21')]['set'](_0x53c4('0xa1'),_0x340897),this[_0x53c4('0xbd')][_0x53c4('0x1')](_0x53c4('0xa1'),this[_0x53c4('0xa5')](_0x340897,0x1));const _0x53a0ab=G(_0x53c4('0xa1'));this[_0x53c4('0x35')][_0x53c4('0x1')](_0x53c4('0xa1'),_0x53a0ab),this[_0x53c4('0xf3')][_0x53c4('0x1')](_0x53c4('0xa1'),this[_0x53c4('0xa5')](_0x53a0ab,0x1));const _0x1211b8=Array[_0x53c4('0x64')](this[_0x53c4('0x35')])[_0x53c4('0xa2')](([_0x55a90f,_0x5279ea])=>[_0x55a90f,q(_0x5279ea)]);this[_0x53c4('0x104')](this[_0x53c4('0xc7')],_0x1211b8,this['_markers'],_0x1cc81f);}[_0x53c4('0x54')](_0x550b7e){const _0x2c80e2=JSON[_0x53c4('0x4f')](_0x550b7e),_0x33aade=this[_0x53c4('0x62')][_0x53c4('0x103')][_0x53c4('0xd')][_0x53c4('0x4e')],_0x50c95b=new _0x248315(_0x33aade,_0x2c80e2[_0x53c4('0xa2')](_0x3e9126=>J(_0x3e9126,this[_0x53c4('0x62')])));return this['editor'][_0x53c4('0xc8')][_0x53c4('0xac')](_0x50c95b);}[_0x53c4('0x104')](_0x2dc556,_0x2a9d14,_0xb61908,_0x231ab5){const _0x48cf01=new Map(_0x2a9d14),_0x13fabc=new Map(_0x5012e5(_0x231ab5)),_0x4dce3c=new Map();for(const [_0x4716dc,_0x418d82]of _0xb61908)_0x4dce3c[_0x53c4('0x1')](_0x4716dc,{'start':_0x418d82[_0x53c4('0x93')][_0x53c4('0xe4')](),'end':_0x418d82[_0x53c4('0x7e')]['clone'](),'rootName':_0x418d82[_0x53c4('0x7b')]['rootName']});this[_0x53c4('0xdd')][_0x53c4('0x1')](_0x2dc556,{'roots':_0x48cf01,'markers':_0x4dce3c,'rootsAttributes':_0x13fabc});}[_0x53c4('0x2a')](_0x592ba5){this[_0x53c4('0xdd')]['delete'](_0x592ba5);}[_0x53c4('0x1b')](){this[_0x53c4('0x6a')](),this['_lastFrom']=-0x1,this[_0x53c4('0xc7')]=-0x1,this[_0x53c4('0xdd')][_0x53c4('0x7a')](),this[_0x53c4('0x8c')](this[_0x53c4('0x37')]);}[_0x53c4('0x6a')](){this[_0x53c4('0x2b')][_0x53c4('0x7a')](),this[_0x53c4('0xcc')][_0x53c4('0x7a')](),this['_touchedRoots'][_0x53c4('0x7a')](),this[_0x53c4('0x35')][_0x53c4('0x7a')](),this[_0x53c4('0xbe')]['clear'](),this['_baseRoots'][_0x53c4('0x7a')](),this[_0x53c4('0xc9')][_0x53c4('0x7a')](),this[_0x53c4('0xf3')][_0x53c4('0x7a')](),this['_baseIdsRoots'][_0x53c4('0x7a')](),this[_0x53c4('0x6f')][_0x53c4('0x7a')](),this[_0x53c4('0xb0')]=0x1,this[_0x53c4('0x49')]=this['_revisionId'];}[_0x53c4('0xa5')](_0x54d81c,_0x3184f2=null){let _0x4b4785=null;_0x54d81c['is'](_0x53c4('0xc5'))||(_0x4b4785=new _0x57b15a(_0x54d81c[_0x53c4('0xe7')],{'vid_start':null===_0x3184f2?this[_0x53c4('0xb0')]++:_0x3184f2++}));const _0x2bc198=[];for(const _0x5b3516 of _0x54d81c[_0x53c4('0x89')]())if(_0x5b3516['is'](_0x53c4('0xde'))){_0x2bc198[_0x53c4('0x47')](this[_0x53c4('0xa5')](_0x5b3516,_0x3184f2));const _0x32d8f4=_0x2bc198[_0x2bc198['length']-0x1];null!==_0x3184f2&&(_0x3184f2=_0x32d8f4['is'](_0x53c4('0xde'),_0x53c4('0x44'))?_0x32d8f4[_0x53c4('0x26')](_0x53c4('0x15'))+0x1:_0x32d8f4[_0x53c4('0x26')](_0x53c4('0x5a'))+0x1);}else for(let _0x2c2538=0x0;_0x2c2538<_0x5b3516['offsetSize'];_0x2c2538++)_0x2bc198[_0x53c4('0x47')](new _0x57b15a(_0x53c4('0x44'),{'vid':null===_0x3184f2?this[_0x53c4('0xb0')]++:_0x3184f2++}));if(_0x54d81c['is'](_0x53c4('0xc5'))){const _0x42064e=G(_0x54d81c[_0x53c4('0x9a')]);return _0x42064e['_insertChild'](0x0,_0x2bc198),_0x42064e;}return _0x4b4785[_0x53c4('0x86')](_0x53c4('0x5a'),null===_0x3184f2?this['_revisionId']++:_0x3184f2++),_0x4b4785[_0x53c4('0x82')](0x0,_0x2bc198),_0x4b4785;}[_0x53c4('0xa6')](_0x4c65f3,_0x5b159f,_0x2c4dc4){this[_0x53c4('0x6a')]();const {roots:_0x1b47ef,markers:_0x509009,rootsAttributes:_0x2cb74f}=this[_0x53c4('0xdd')][_0x53c4('0x2c')](_0x4c65f3);this[_0x53c4('0x21')]=new Map(_0x1b47ef),this['_baseRootsAttributes']=new Map(_0x5012e5(_0x2cb74f));for(const [_0x457809,_0x316cbf]of this['_baseRoots'])if(_0x53c4('0xa1')!==_0x457809&&(this['_diffRoots'][_0x53c4('0x1')](_0x457809,q(_0x316cbf)),this['_diffRootsAttributes']=new Map(_0x5012e5(_0x2cb74f)),_0x2c4dc4)){const _0x2e25b3=this[_0x53c4('0xb0')];this['_idsRoots'][_0x53c4('0x1')](_0x457809,this[_0x53c4('0xa5')](_0x316cbf)),this[_0x53c4('0xbd')][_0x53c4('0x1')](_0x457809,this['_makeIdsRoot'](_0x316cbf,_0x2e25b3));}this[_0x53c4('0x49')]=this[_0x53c4('0xb0')],this[_0x53c4('0x35')][_0x53c4('0x1')]('$graveyard',q(this['_baseRoots'][_0x53c4('0x2c')](_0x53c4('0xa1')))),_0x2c4dc4&&this[_0x53c4('0xf3')][_0x53c4('0x1')](_0x53c4('0xa1'),this[_0x53c4('0xa5')](this[_0x53c4('0x21')][_0x53c4('0x2c')](_0x53c4('0xa1'))));for(const [_0x23f2e1,_0x47f56a]of _0x509009){const _0x5acdfa=this[_0x53c4('0x21')][_0x53c4('0x2c')](_0x47f56a[_0x53c4('0x9a')]),_0x59f026=this[_0x53c4('0x35')][_0x53c4('0x2c')](_0x47f56a[_0x53c4('0x9a')]),_0x2e2f4a=new _0x3f9413(this[_0x53c4('0x107')](_0x47f56a['start'],_0x5acdfa),this[_0x53c4('0x107')](_0x47f56a[_0x53c4('0x7e')],_0x5acdfa)),_0x327a30=this[_0x53c4('0x11')](_0x2e2f4a,_0x59f026);_0x5acdfa['markers'][_0x53c4('0x1')](_0x23f2e1,_0x2e2f4a),this[_0x53c4('0x6f')][_0x53c4('0x1')](_0x23f2e1,_0x327a30);}this[_0x53c4('0xd0')](_0x4c65f3,_0x5b159f,_0x2c4dc4);}[_0x53c4('0xd0')](_0x305dd1,_0x2a8f53,_0x265913){for(const _0x679ed9 of this[_0x53c4('0x37')]['getOperations'](_0x305dd1,_0x2a8f53))this[_0x53c4('0x4b')](_0x679ed9,_0x265913);for(const _0x4230ac of this['_diffRoots'][_0x53c4('0xee')]())_0x4230ac[_0x53c4('0x38')][_0x53c4('0x7a')]();for(const [_0x1eef61,_0x402bc0]of this[_0x53c4('0x6f')]){this[_0x53c4('0x35')]['get'](_0x402bc0[_0x53c4('0x7b')]['rootName'])[_0x53c4('0x38')][_0x53c4('0x1')](_0x1eef61,_0x402bc0[_0x53c4('0xe4')]());}const _0x16c844=new Map(),_0x2d0550=new Map();for(const [_0x2149ce,_0x549a51]of this['_diffRoots'])_0x16c844['set'](_0x2149ce,q(_0x549a51)),_0x2d0550['set'](_0x2149ce,this[_0x53c4('0xbe')][_0x53c4('0x2c')](_0x2149ce));this[_0x53c4('0x104')](_0x2a8f53,_0x16c844,this[_0x53c4('0x6f')],_0x2d0550);}[_0x53c4('0x68')](_0x1ed29e){const _0x5ab7d2=Array[_0x53c4('0x64')](this[_0x53c4('0xdd')][_0x53c4('0x56')]());_0x5ab7d2[_0x53c4('0x0')]((_0x15a14f,_0x249499)=>_0x15a14f-_0x249499),_0x5ab7d2[_0x53c4('0xbf')]();for(const _0xc35b6e of _0x5ab7d2)if(_0xc35b6e<_0x1ed29e)return _0xc35b6e;return Number['NEGATIVE_INFINITY'];}[_0x53c4('0xc')](_0x48735f,_0x3d0c6a){const _0x5374a9=Array[_0x53c4('0x64')](_0x3d0c6a['markers'])[_0x53c4('0xa2')](([_0x4c7fc3,_0x33e7e0])=>[_0x4c7fc3,this[_0x53c4('0x11')](_0x33e7e0,_0x48735f)]);_0x48735f['markers']=new Map(_0x5374a9);}['_transformMarkers'](_0x445d66){for(const _0x41f786 of this[_0x53c4('0x6f')][_0x53c4('0xee')]()){const _0x223ebc=_0x41f786[_0x53c4('0x5c')](_0x445d66),_0x1d9d49=_0x3f9413[_0x53c4('0xd5')](_0x223ebc);_0x41f786[_0x53c4('0x93')]=_0x1d9d49['start'],_0x41f786[_0x53c4('0x7e')]=_0x1d9d49['end'];}}[_0x53c4('0x4b')](_0x1394f0,_0xb9de75){if('addRoot'==_0x1394f0[_0x53c4('0xa8')]||'detachRoot'==_0x1394f0[_0x53c4('0xa8')])return void this[_0x53c4('0x78')](_0x1394f0,_0xb9de75);if('insert'==_0x1394f0['type']){const _0x3827b4=_0x1394f0['position'][_0x53c4('0x7b')][_0x53c4('0x9a')];this['_diffRoots'][_0x53c4('0x6d')](_0x3827b4)||(this[_0x53c4('0x35')][_0x53c4('0x1')](_0x3827b4,G(_0x3827b4,!0x0)),this[_0x53c4('0xbe')][_0x53c4('0x1')](_0x3827b4,{}),_0xb9de75&&this['_idsRoots'][_0x53c4('0x1')](_0x3827b4,G(_0x3827b4,!0x0)));}if(_0x53c4('0x51')==_0x1394f0[_0x53c4('0xa8')]||_0x53c4('0x87')==_0x1394f0[_0x53c4('0xa8')]||'changeRootAttribute'==_0x1394f0[_0x53c4('0xa8')])return void this[_0x53c4('0x23')](_0x1394f0);const _0x24b964=this[_0x53c4('0x3e')](_0x1394f0,this[_0x53c4('0x35')]);if('marker'!==_0x1394f0[_0x53c4('0xa8')]&&(_0x24b964[_0x53c4('0xe9')](),this[_0x53c4('0xc4')](_0x24b964)),_0xb9de75)switch(_0x24b964[_0x53c4('0xa8')]){case _0x53c4('0xa'):this[_0x53c4('0xdc')](_0x1394f0);break;case'move':case _0x53c4('0x16'):case _0x53c4('0x2d'):this['_handleMoveOperation'](_0x1394f0);break;case _0x53c4('0x50'):this[_0x53c4('0xa3')](_0x1394f0);break;case _0x53c4('0xae'):this['_handleSplitOperation'](_0x1394f0);break;case _0x53c4('0x77'):this[_0x53c4('0x105')](_0x1394f0);}}[_0x53c4('0x3e')](_0x1c7819,_0xf3bd3e){const _0x1bac8d=_0x1c7819[_0x53c4('0xe4')]();return _0x1bac8d['_authorId']=_0x1c7819[_0x53c4('0x96')],this['_fixOperation'](_0x1bac8d,_0xf3bd3e),_0x1bac8d;}['_getBaseVids'](_0x56c220){return _0x56c220[_0x53c4('0xa2')](_0x4b9bbd=>{const _0x2a7964=this[_0x53c4('0xab')](_0x4b9bbd);return Number(_0x4b9bbd[_0x53c4('0x69')][_0x53c4('0x26')](_0x2a7964));});}[_0x53c4('0x46')](_0x2109f7,_0x3bbc04){if(_0x2109f7['is'](_0x53c4('0xde'),_0x53c4('0x44')))_0x3bbc04[_0x53c4('0x47')]({'item':_0x2109f7,'type':'text'});else{_0x2109f7['is'](_0x53c4('0xde'))&&_0x3bbc04[_0x53c4('0x47')]({'item':_0x2109f7,'type':_0x53c4('0x99')});for(const _0x517d59 of _0x2109f7[_0x53c4('0x89')]())this['_generateTape'](_0x517d59,_0x3bbc04);_0x2109f7['is']('element')&&_0x3bbc04['push']({'item':_0x2109f7,'type':_0x53c4('0x9b')});}return _0x3bbc04;}[_0x53c4('0x81')](){const _0x3ce594=new Map(this[_0x53c4('0x2b')]),_0x1d0bb0=new Map(_0x3ce594),_0x35fa49=new Map(),_0xd3c0af={'insertions':{},'deletions':{}},_0x4bad52={'insertions':{},'deletions':{}},_0x568c7e=new Map(),_0x35490c=new Set([...this['_baseRoots'][_0x53c4('0x56')](),...this['_diffRoots'][_0x53c4('0x56')]()]);_0x35490c[_0x53c4('0x17')](_0x53c4('0xa1'));for(const _0x16ae41 of _0x35490c){const _0x4efdbc=this[_0x53c4('0x35')][_0x53c4('0x2c')](_0x16ae41)||G(_0x16ae41,!0x1),_0x9186a3=this['_baseRoots'][_0x53c4('0x2c')](_0x16ae41)||G(_0x16ae41,!0x1);_0x4efdbc[_0x53c4('0x19')]()||_0x9186a3[_0x53c4('0x19')]()?(_0xd3c0af[_0x53c4('0xb6')][_0x16ae41]=q(_0x4efdbc),_0xd3c0af[_0x53c4('0x2f')][_0x16ae41]=q(_0x9186a3),this[_0x53c4('0xc')](_0xd3c0af[_0x53c4('0x2f')][_0x16ae41],_0x9186a3),this[_0x53c4('0xc')](_0xd3c0af['insertions'][_0x16ae41],_0x4efdbc),_0x4bad52[_0x53c4('0xb6')][_0x16ae41]=this['_generateTape'](this['_idsRoots'][_0x53c4('0x2c')](_0x16ae41),[]),_0x4bad52['deletions'][_0x16ae41]=this['_generateTape'](this[_0x53c4('0xbd')]['get'](_0x16ae41)||G(_0x16ae41,!0x1),[])):_0x35490c[_0x53c4('0x17')](_0x16ae41);}for(const _0x3f28dd of _0x35490c){const _0xf74223=_0x4bad52[_0x53c4('0xb6')][_0x3f28dd];for(const _0x1fb247 of _0xf74223){const _0x16e092=this[_0x53c4('0xab')](_0x1fb247),_0x2ca544=_0x1fb247[_0x53c4('0x69')][_0x53c4('0x26')](_0x16e092);_0x1d0bb0[_0x53c4('0x17')](_0x2ca544),_0x2ca544>=this[_0x53c4('0x49')]&&_0x35fa49[_0x53c4('0x1')](_0x2ca544,_0x3ce594[_0x53c4('0x2c')](_0x2ca544));}}for(const _0x57655d of _0x35490c){const _0x236075=_0x4bad52[_0x53c4('0xb6')][_0x57655d],_0x553b49=this[_0x53c4('0x3d')](_0x4bad52[_0x53c4('0x2f')][_0x57655d]);let _0x16dad6=0x0;for(const _0x208f7e of _0x236075){const _0x179082=this[_0x53c4('0xab')](_0x208f7e),_0x10ede9=_0x208f7e[_0x53c4('0x69')][_0x53c4('0x26')](_0x179082);if(!_0x35fa49['has'](_0x10ede9)&&!_0x568c7e[_0x53c4('0x6d')](_0x10ede9)){if(_0x1d0bb0['has'](_0x10ede9))_0x16dad6++;else{if(_0x10ede9!=_0x553b49[_0x16dad6]){const _0x1b8290=_0x3ce594['get'](_0x10ede9)||_0x3ce594[_0x53c4('0x2c')](_0x553b49[_0x16dad6]);for(;_0x10ede9!=_0x553b49[_0x16dad6];)_0x1d0bb0[_0x53c4('0x6d')](_0x553b49[_0x16dad6])||(_0x568c7e[_0x53c4('0x1')](_0x553b49[_0x16dad6],_0x1b8290),_0x3ce594['set'](_0x553b49[_0x16dad6],_0x1b8290)),_0x16dad6++;}_0x16dad6++;}}}}for(const _0x195066 of _0x35490c){const _0x427817=_0x4bad52[_0x53c4('0xb6')][_0x195066];for(const _0x45bfc5 of _0x427817){const _0x1142dd=this[_0x53c4('0xab')](_0x45bfc5),_0x4f4bab=_0x45bfc5[_0x53c4('0x69')][_0x53c4('0x26')](_0x1142dd);if(_0x568c7e[_0x53c4('0x6d')](_0x4f4bab)){const _0xe46393=_0x568c7e['get'](_0x4f4bab);_0x1d0bb0[_0x53c4('0x6d')](_0x4f4bab)||_0x1d0bb0[_0x53c4('0x1')](_0x4f4bab,{..._0xe46393}),_0x35fa49[_0x53c4('0x1')](_0x4f4bab,{..._0xe46393});}}}for(const _0x4b87e7 of _0x1d0bb0[_0x53c4('0x56')]())_0x4b87e7>=this[_0x53c4('0x49')]&&_0x1d0bb0[_0x53c4('0x17')](_0x4b87e7);const _0x2efcc6=new Map();for(const _0x49f5e3 of _0x35490c){let _0x50813e=_0x4bad52[_0x53c4('0xb6')][_0x49f5e3];for(const _0x23518e of _0x50813e)if(_0x23518e[_0x53c4('0x69')]['is']('element',_0x53c4('0x101'))){const _0x844a47=this[_0x53c4('0xab')](_0x23518e),_0xcaac8b=_0x23518e[_0x53c4('0x69')]['getAttribute'](_0x844a47);if(_0x35fa49[_0x53c4('0x6d')](_0xcaac8b)){const _0xd7148e=_0x23518e[_0x53c4('0x69')][_0x53c4('0x52')][_0x53c4('0x52')][_0x53c4('0x26')](_0x53c4('0xb7')),_0x4303da=_0x2efcc6[_0x53c4('0x2c')](_0xd7148e)||new Set();_0x4303da[_0x53c4('0xf0')](_0x35fa49[_0x53c4('0x2c')](_0xcaac8b)[_0x53c4('0xa9')]),_0x2efcc6[_0x53c4('0x1')](_0xd7148e,_0x4303da);}}_0x50813e=_0x4bad52[_0x53c4('0x2f')][_0x49f5e3];for(const _0x2bfadc of _0x50813e)if(_0x2bfadc[_0x53c4('0x69')]['is'](_0x53c4('0xde'),_0x53c4('0x101'))){const _0x4b35d8=this[_0x53c4('0xab')](_0x2bfadc),_0x5bf86b=_0x2bfadc[_0x53c4('0x69')][_0x53c4('0x26')](_0x4b35d8);if(_0x1d0bb0[_0x53c4('0x6d')](_0x5bf86b)){const _0x1d13f2=_0x2bfadc[_0x53c4('0x69')][_0x53c4('0x52')][_0x53c4('0x52')]['getAttribute'](_0x53c4('0xb7')),_0x23648d=_0x2efcc6['get'](_0x1d13f2)||new Set();_0x23648d[_0x53c4('0xf0')](_0x1d0bb0[_0x53c4('0x2c')](_0x5bf86b)[_0x53c4('0xa9')]),_0x2efcc6[_0x53c4('0x1')](_0x1d13f2,_0x23648d);}}for(const _0x31230f of _0x2efcc6[_0x53c4('0x56')]())(_0x35fa49['has'](_0x31230f)||_0x1d0bb0[_0x53c4('0x6d')](_0x31230f))&&_0x2efcc6['delete'](_0x31230f);}for(const _0xe158e8 of _0x35490c){const _0x49f0f6=_0x4bad52[_0x53c4('0xb6')][_0xe158e8];let _0x32dede=null,_0x38080e=null;for(const _0x3e93aa of _0x49f0f6){const _0x9112e0=this[_0x53c4('0xab')](_0x3e93aa),_0x3983d0=_0x3e93aa[_0x53c4('0x69')][_0x53c4('0x26')](_0x9112e0),_0x50137d=_0x2efcc6[_0x53c4('0x2c')](_0x3983d0);_0x50137d&&_0x53c4('0x99')==_0x3e93aa[_0x53c4('0xa8')]&&(_0x32dede=Array[_0x53c4('0x64')](_0x50137d)[0x0],_0x38080e=_0x3e93aa[_0x53c4('0x69')]['getAttribute']('vid_end')),_0x32dede&&(_0x1d0bb0[_0x53c4('0x1')](_0x3983d0,{'userId':_0x32dede}),_0x35fa49['set'](_0x3983d0,{'userId':_0x32dede})),_0x3983d0==_0x38080e&&(_0x32dede=null,_0x38080e=null);}}const _0x50d11e={},_0x1f688e=new Set();for(const _0x35e849 of _0x35490c){const _0x55e678=_0xd3c0af[_0x53c4('0x2f')][_0x35e849],_0x46c05d=_0xd3c0af[_0x53c4('0xb6')][_0x35e849];for(const {userId:_0x164ab9}of this[_0x53c4('0xcc')][_0x53c4('0xee')]())null!==_0x164ab9&&_0x1f688e['add'](_0x164ab9);for(const {userId:_0x20538f}of this['_touchedRoots'][_0x53c4('0xee')]())null!==_0x20538f&&_0x1f688e[_0x53c4('0xf0')](_0x20538f);this[_0x53c4('0xe0')](_0x46c05d,_0x4bad52[_0x53c4('0xb6')][_0x35e849],_0x35fa49,_0x53c4('0xd6'),_0x1f688e),this[_0x53c4('0xe0')](_0x55e678,_0x4bad52['deletions'][_0x35e849],_0x1d0bb0,_0x53c4('0x36'),_0x1f688e),_0x50d11e[_0x35e849]={'insertions':this[_0x53c4('0x98')](_0x46c05d),'deletions':this[_0x53c4('0x98')](_0x55e678),'attachChange':this[_0x53c4('0xea')]['get'](_0x35e849)||null,'attributesBefore':_0x5012e5(this['_baseRootsAttributes']['get'](_0x35e849))||{},'attributesAfter':_0x5012e5(this[_0x53c4('0xbe')][_0x53c4('0x2c')](_0x35e849))};}return{'diffData':_0x50d11e,'authorsIds':Array['from'](_0x1f688e)};}[_0x53c4('0x97')](_0x25a4c0){for(const [,_0x55a707]of _0x25a4c0[_0x53c4('0x38')]){const _0x40a640=_0x55a707[_0x53c4('0x93')][_0x53c4('0x92')]()['filter'](_0x39bc98=>_0x53c4('0x101')==_0x39bc98[_0x53c4('0xe7')]);for(const _0x5ba310 of _0x40a640)0x1==_0x5ba310['childCount']&&_0x5ba310[_0x53c4('0xd1')](0x0)['is'](_0x53c4('0xde'),'paragraph')&&_0x5ba310['getChild'](0x0)[_0x53c4('0x86')]('keepParagraph',!0x0);}}[_0x53c4('0x98')](_0x43e2a5){this[_0x53c4('0x97')](_0x43e2a5);const _0x7c472b=this['editor'][_0x53c4('0xc8')]['toView'](_0x43e2a5,{}),_0x245b68=Array['from'](_0x7c472b[_0x53c4('0x89')]())[_0x53c4('0xa2')](_0x2b5798=>this['_getViewJson'](_0x2b5798));return JSON[_0x53c4('0x80')](_0x245b68);}[_0x53c4('0x72')](_0x10bc53){if(_0x10bc53['is']('$text'))return _0x10bc53['data'];{const _0x98b80d=_0x10bc53;return{'type':Object['keys'](B)['find'](_0x34afe7=>_0x10bc53 instanceof B[_0x34afe7]),'name':_0x98b80d[_0x53c4('0xe7')],'attributes':Array['from'](_0x98b80d[_0x53c4('0xda')]()),'children':Array[_0x53c4('0x64')](_0x98b80d['getChildren']())['map'](_0x364064=>this[_0x53c4('0x72')](_0x364064))};}}[_0x53c4('0xe0')](_0x207057,_0x3d59bb,_0x50d457,_0x814b4c,_0x51d98e){let _0x1e0ec8=null,_0x3e29eb=null,_0x2f9886=0x0;const _0x3377ef=this[_0x53c4('0x62')]['model'];for(let _0x5d126a=0x0;_0x5d126a<_0x3d59bb[_0x53c4('0x4')];_0x5d126a++){const _0x3ec8e8=this[_0x53c4('0xab')](_0x3d59bb[_0x5d126a]),_0x584b01=_0x3d59bb[_0x5d126a][_0x53c4('0x69')][_0x53c4('0x26')](_0x3ec8e8),_0x3e49e9=_0x50d457[_0x53c4('0x2c')](_0x584b01),_0x5cb7a2=_0x5d126a==_0x3d59bb['length']-0x1;(!_0x1e0ec8&&_0x3e49e9&&(_0x1e0ec8=_0x3e49e9,_0x3e29eb=_0x3d59bb[_0x5d126a]),_0x1e0ec8&&(!_0x3e49e9||_0x3e49e9[_0x53c4('0xa9')]!=_0x1e0ec8[_0x53c4('0xa9')]))&&(_0x43fb39(_0x3e49e9,L(_0x3e29eb,_0x207057,_0x3377ef),L(_0x3d59bb[_0x5d126a],_0x207057,_0x3377ef)),_0x1e0ec8=_0x3e49e9||null,_0x3e29eb=_0x3e49e9?_0x3d59bb[_0x5d126a]:null),_0x1e0ec8&&_0x5cb7a2&&_0x43fb39(_0x3e49e9,L(_0x3e29eb,_0x207057,_0x3377ef),W(_0x3d59bb[_0x5d126a],_0x207057,_0x3377ef));}function _0x43fb39(_0x3f5b49,_0x11df87,_0x13966b){const _0xcde5cb=_0x1e0ec8[_0x53c4('0xa9')],_0x356c11=_0x53c4('0x13')+_0x814b4c+':'+_0xcde5cb+':'+_0x2f9886++,_0x2a5d5e=_0x3377ef[_0x53c4('0xf9')](_0x11df87,_0x13966b);_0x207057['markers'][_0x53c4('0x1')](_0x356c11,_0x2a5d5e),null!==_0xcde5cb&&_0x51d98e[_0x53c4('0xf0')](_0xcde5cb);}}[_0x53c4('0xab')](_0x1b645f){switch(_0x1b645f[_0x53c4('0xa8')]){case'elementStart':return'vid_start';case _0x53c4('0x9b'):return'vid_end';default:return'vid';}}[_0x53c4('0xf5')](_0x55e29f,_0x336168){_0x55e29f[_0x53c4('0x29')]=null;for(const _0x2ff0e1 in _0x55e29f){const _0x4b6b94=_0x55e29f[_0x2ff0e1];if(_0x4b6b94 instanceof _0x2713cf){const _0x30e511=_0x336168[_0x53c4('0x2c')](_0x4b6b94[_0x53c4('0x7b')]['rootName']);_0x55e29f[_0x2ff0e1]=this['_fixPosition'](_0x4b6b94,_0x30e511);}if(_0x4b6b94 instanceof _0x3f9413){const _0xefcfaf=_0x336168['get'](_0x4b6b94[_0x53c4('0x7b')][_0x53c4('0x9a')]);_0x55e29f[_0x2ff0e1]=this['_fixRange'](_0x4b6b94,_0xefcfaf);}_0x53c4('0x7b')===_0x2ff0e1&&(_0x55e29f[_0x53c4('0x7b')]=_0x336168[_0x53c4('0x2c')](_0x55e29f['root'][_0x53c4('0x9a')]));}}[_0x53c4('0x11')](_0x1d68ef,_0x5852a6){return this['editor'][_0x53c4('0x7c')]['createRange'](this[_0x53c4('0x107')](_0x1d68ef[_0x53c4('0x93')],_0x5852a6),this[_0x53c4('0x107')](_0x1d68ef[_0x53c4('0x7e')],_0x5852a6));}[_0x53c4('0x107')](_0x227c91,_0x1af174){return this[_0x53c4('0x62')][_0x53c4('0x7c')][_0x53c4('0x2')](_0x1af174,_0x227c91[_0x53c4('0xb3')],_0x227c91[_0x53c4('0x67')]);}[_0x53c4('0xdc')](_0x239c2e){const _0x47e9be=this[_0x53c4('0xf3')][_0x53c4('0x2c')](_0x239c2e['position'][_0x53c4('0x7b')][_0x53c4('0x9a')]),_0x559eb2=this[_0x53c4('0x107')](_0x239c2e[_0x53c4('0xdf')],_0x47e9be),_0x7f7f29=null===_0x239c2e['_authorId']?null:_0x239c2e[_0x53c4('0x96')]||this[_0x53c4('0x62')][_0x53c4('0x9d')][_0x53c4('0x2c')](_0x53c4('0x1c'))['me']['id'],_0x2bfaf2=_0x559eb2[_0x53c4('0x52')],_0x203227=this[_0x53c4('0xb0')],_0x139528=[];for(const _0x344f02 of _0x239c2e[_0x53c4('0x10a')])if(_0x344f02['is']('element'))_0x139528[_0x53c4('0x47')](this[_0x53c4('0xa5')](_0x344f02));else for(let _0x3f5f6b=0x0;_0x3f5f6b<_0x344f02[_0x53c4('0xd4')];_0x3f5f6b++)_0x139528[_0x53c4('0x47')](new _0x57b15a(_0x53c4('0x44'),{'vid':this[_0x53c4('0xb0')]++}));const _0x5a2c4f=this[_0x53c4('0xb0')];for(let _0x1ca3dc=_0x203227;_0x1ca3dc<_0x5a2c4f;_0x1ca3dc++)this[_0x53c4('0x2b')][_0x53c4('0x1')](_0x1ca3dc,{'userId':_0x7f7f29});_0x2bfaf2[_0x53c4('0x82')](_0x559eb2[_0x53c4('0xb8')],_0x139528);}['_handleMoveOperation'](_0x4b2d32){(_0x4b2d32=this[_0x53c4('0x3e')](_0x4b2d32,this[_0x53c4('0xf3')]))[_0x53c4('0xe9')]();const _0x5e8b28=null===_0x4b2d32[_0x53c4('0x96')]?null:_0x4b2d32['_authorId']||this[_0x53c4('0x62')][_0x53c4('0x9d')]['get'](_0x53c4('0x1c'))['me']['id'],_0x3e6eaa=_0x4b2d32[_0x53c4('0x3f')](),_0x2b1834=_0x3e6eaa[_0x53c4('0x52')],_0x198f68=_0x3e6eaa[_0x53c4('0xb8')];!function _0xe7cdb(_0x9f6587,_0x3a206d,_0x52ef61,_0x77cc1){for(let _0x558def=_0x52ef61;_0x558def<_0x77cc1;_0x558def++){const _0x50c284=_0x3a206d['getChild'](_0x558def);_0x50c284['is'](_0x53c4('0xde'),_0x53c4('0x44'))?_0x9f6587[_0x53c4('0x1')](_0x50c284['getAttribute'](_0x53c4('0x15')),{'userId':_0x5e8b28}):(_0x9f6587['set'](_0x50c284['getAttribute'](_0x53c4('0xb7')),{'userId':_0x5e8b28}),_0xe7cdb(_0x9f6587,_0x50c284,0x0,_0x50c284[_0x53c4('0x8f')]),_0x9f6587['set'](_0x50c284[_0x53c4('0x26')](_0x53c4('0x5a')),{'userId':_0x5e8b28}));}}(this[_0x53c4('0x2b')],_0x2b1834,_0x198f68,_0x198f68+_0x4b2d32[_0x53c4('0x58')]);}[_0x53c4('0xa3')](_0x24f2cf){const _0x44f1e4=null===(_0x24f2cf=this[_0x53c4('0x3e')](_0x24f2cf,this[_0x53c4('0xf3')]))[_0x53c4('0x96')]?null:_0x24f2cf['_authorId']||this['editor'][_0x53c4('0x9d')]['get'](_0x53c4('0x1c'))['me']['id'],_0xf0f23e=_0x24f2cf[_0x53c4('0x8d')][_0x53c4('0x52')],_0x5afc38=_0x24f2cf[_0x53c4('0x53')][_0x53c4('0x52')],_0x50d006=_0xf0f23e[_0x53c4('0x26')](_0x53c4('0x5a')),_0xc1e360=_0x5afc38[_0x53c4('0x26')]('vid_start');_0xf0f23e[_0x53c4('0x86')](_0x53c4('0x5a'),_0x5afc38[_0x53c4('0x26')](_0x53c4('0x5a'))),_0x5afc38[_0x53c4('0x86')](_0x53c4('0x5a'),_0x50d006),this[_0x53c4('0x2b')]['set'](_0xc1e360,{'userId':_0x44f1e4}),this['_touched'][_0x53c4('0x1')](_0x50d006,{'userId':_0x44f1e4}),_0x24f2cf[_0x53c4('0xe9')]();}[_0x53c4('0xca')](_0x4b69eb){const _0x5b7076=null===(_0x4b69eb=this[_0x53c4('0x3e')](_0x4b69eb,this[_0x53c4('0xf3')]))[_0x53c4('0x96')]?null:_0x4b69eb[_0x53c4('0x96')]||this['editor'][_0x53c4('0x9d')]['get'](_0x53c4('0x1c'))['me']['id'],_0x10b558=_0x4b69eb[_0x53c4('0xc0')],_0x161a3b=_0x4b69eb[_0x53c4('0x4d')]['parent'];_0x4b69eb[_0x53c4('0xe9')]();const _0x14769d=_0x161a3b[_0x53c4('0x26')](_0x53c4('0x5a')),_0x17c30c=_0x4b69eb['insertionPosition'][_0x53c4('0x18')];if(_0x10b558){const _0x34f52e=_0x17c30c['getAttribute'](_0x53c4('0x5a')),_0x457198=_0x161a3b['getAttribute'](_0x53c4('0x5a'));_0x161a3b[_0x53c4('0x86')]('vid_end',_0x34f52e),_0x17c30c['_setAttribute'](_0x53c4('0x5a'),_0x457198),this[_0x53c4('0x2b')][_0x53c4('0x1')](_0x161a3b[_0x53c4('0x26')](_0x53c4('0x5a')),{'userId':_0x5b7076}),this[_0x53c4('0x2b')]['set'](_0x17c30c[_0x53c4('0x26')](_0x53c4('0xb7')),{'userId':_0x5b7076});}else{const _0x37f7d5=this[_0x53c4('0xb0')]++,_0x49f11f=this[_0x53c4('0xb0')]++;_0x161a3b[_0x53c4('0x86')](_0x53c4('0x5a'),_0x37f7d5),_0x17c30c[_0x53c4('0x86')]('vid_start',_0x49f11f),_0x17c30c['_setAttribute'](_0x53c4('0x5a'),_0x14769d),this[_0x53c4('0x2b')]['set'](_0x37f7d5,{'userId':_0x5b7076}),this['_touched'][_0x53c4('0x1')](_0x49f11f,{'userId':_0x5b7076});}}['_handleMarkerOperation'](_0x4e6b06){if(!_0x4e6b06[_0x53c4('0xce')])return;const _0xcd6176=(_0x4e6b06=this[_0x53c4('0x3e')](_0x4e6b06,this[_0x53c4('0x35')]))[_0x53c4('0xa0')]?_0x4e6b06[_0x53c4('0xa0')][_0x53c4('0x7b')]:null,_0x189801=_0x4e6b06[_0x53c4('0xad')]?_0x4e6b06[_0x53c4('0xad')][_0x53c4('0x7b')]:null;_0xcd6176&&this[_0x53c4('0x6f')][_0x53c4('0x17')](_0x4e6b06[_0x53c4('0xe7')]),_0x189801&&this[_0x53c4('0x6f')]['set'](_0x4e6b06[_0x53c4('0xe7')],_0x4e6b06[_0x53c4('0xad')][_0x53c4('0xe4')]());const _0x3b2824=null===_0x4e6b06[_0x53c4('0x96')]?null:_0x4e6b06[_0x53c4('0x96')]||this[_0x53c4('0x62')][_0x53c4('0x9d')][_0x53c4('0x2c')](_0x53c4('0x1c'))['me']['id'],_0x3ff118=_0x4e6b06['name'];if(!this[_0x53c4('0xcc')][_0x53c4('0x6d')](_0x3ff118))return void this['_touchedMarkers'][_0x53c4('0x1')](_0x3ff118,{'range':_0x4e6b06[_0x53c4('0xa0')],'userId':_0x3b2824});const _0x5ad21f=this[_0x53c4('0xcc')][_0x53c4('0x2c')](_0x3ff118),_0x4bbded=_0x5ad21f[_0x53c4('0x33')],_0x47cd18=_0x4e6b06['newRange'];null==_0x4bbded&&null==_0x47cd18||_0x4bbded&&_0x47cd18&&_0x4bbded[_0x53c4('0xf4')](_0x47cd18)?this['_touchedMarkers'][_0x53c4('0x17')](_0x4e6b06[_0x53c4('0xe7')]):_0x5ad21f['userId']=_0x3b2824;}['_handleRootOperation'](_0x2bfff7,_0x2dcde8){this['_diffRoots']['has'](_0x2bfff7[_0x53c4('0x9a')])?this['_diffRoots'][_0x53c4('0x2c')](_0x2bfff7[_0x53c4('0x9a')])[_0x53c4('0x1a')]=_0x2bfff7['isAdd']:(this[_0x53c4('0x35')][_0x53c4('0x1')](_0x2bfff7[_0x53c4('0x9a')],G(_0x2bfff7[_0x53c4('0x9a')],!0x0)),this['_diffRootsAttributes'][_0x53c4('0x1')](_0x2bfff7[_0x53c4('0x9a')],{}),_0x2dcde8&&this[_0x53c4('0xf3')][_0x53c4('0x1')](_0x2bfff7[_0x53c4('0x9a')],G(_0x2bfff7['rootName'],!0x0)));const _0x261bff=null===_0x2bfff7['_authorId']?null:_0x2bfff7[_0x53c4('0x96')]||this[_0x53c4('0x62')][_0x53c4('0x9d')][_0x53c4('0x2c')](_0x53c4('0x1c'))['me']['id'],_0x545e2f=this['_touchedRoots']['get'](_0x2bfff7[_0x53c4('0x9a')]);_0x545e2f&&_0x545e2f['userId']===_0x261bff?this['_touchedRoots'][_0x53c4('0x17')](_0x2bfff7['rootName']):this['_touchedRoots']['set'](_0x2bfff7[_0x53c4('0x9a')],{'userId':_0x261bff,'isAttached':_0x2bfff7['isAdd']});}['_handleRootAttributeOperation'](_0x4c209d){const _0x3b2602=this[_0x53c4('0xbe')][_0x53c4('0x2c')](_0x4c209d[_0x53c4('0x7b')]['rootName']);null===_0x4c209d[_0x53c4('0x3')]?delete _0x3b2602[_0x4c209d[_0x53c4('0x5d')]]:_0x3b2602[_0x4c209d[_0x53c4('0x5d')]]=_0x4c209d['newValue'];}}function q(_0xe53dba){const _0x4e1927=G(_0xe53dba[_0x53c4('0x9a')],_0xe53dba[_0x53c4('0x19')]());for(const _0x488dfa of _0xe53dba[_0x53c4('0x89')]()){const _0x427290=_0x488dfa['_clone'](!0x0);_0x4e1927[_0x53c4('0x65')](_0x427290);}return _0x4e1927;}function G(_0x3792bb,_0x2bf0a3=!0x0){const _0x387a9e=new _0x480526();return _0x387a9e[_0x53c4('0x9a')]=_0x3792bb,_0x387a9e['_isAttached']=_0x2bf0a3,_0x387a9e[_0x53c4('0x19')]=()=>_0x387a9e[_0x53c4('0x1a')],_0x387a9e;}function L(_0x364dd0,_0x57fc88,_0x434a64){const _0x321f4f='elementEnd'==_0x364dd0[_0x53c4('0xa8')]?_0x434a64[_0x53c4('0xfd')](_0x364dd0['item'],_0x53c4('0x7e')):_0x434a64['createPositionBefore'](_0x364dd0[_0x53c4('0x69')]);return _0x434a64['createPositionFromPath'](_0x57fc88,_0x321f4f['path'],_0x321f4f[_0x53c4('0x67')]);}function W(_0x300c0d,_0x504f24,_0x1f1a67){const _0x4f56c6=_0x53c4('0x99')==_0x300c0d['type']?_0x1f1a67[_0x53c4('0xfd')](_0x300c0d['item'],0x0):_0x1f1a67[_0x53c4('0x91')](_0x300c0d['item']);return _0x1f1a67[_0x53c4('0x2')](_0x504f24,_0x4f56c6[_0x53c4('0xb3')],_0x4f56c6[_0x53c4('0x67')]);}
|
|
23
|
+
const _0x4dfc=['clone','_setConversion','buildRevisionData','afterInit','insertions','attachChange','locale','text','trim','fromVersion','_reset','_createCurrentRevision','string','getData','add','isAdd','data','config','authors','insert','_update','finally','RevisionsRepository','bind','_handleOperation','elementEnd','updateRevisions','forEach','userId','_processRootBeforeSave','parse','_revisionId','_copyMarkers','insertionPosition','_handleMarkerOperation','getRevisionRootsAttributes','addRoot','offsetSize','end','saveRevision','collaboration.channelId','_cloneOperation','marked','from','setRevisionData','howMany','sort','update','start','creator','push','deletions','paragraph','createdAt','nodes','_markChanges','slice','offset','_bufferedUpdates','delete','default','_getState','getChild','get','PendingActions','view','createPositionAfter','markerToData','reinsert','_fixOperation','Empty\x20document','length','PENDING_ACTION_REVISION_HISTORY','_revisionDataBuilder','revision:','vid_end','toData','_isPendingUpdate','insertion','getRevision','getRevisions','isEqual','_diffRoots','toVersion','creatorId','position','values','loadState','createPositionAt','adapter','_initialRevisionId','markers','version','_touchedMarkers','_getViewJson','_handleMergeOperation','getNodeByPath','newValue','rootName','_isAttached','vid','filter','upcast','elementStart','affectsData','conversion','_operations','_calculateMetaData','revision-start','has','NEGATIVE_INFINITY','_idsRoots','RevisionTracker','rootsAttributes','changeRootAttribute','previousPosition','_pendingAction','_createInitialRevision','authorsIds','name','getCurrentRevisionId','attributesAfter','_makeModelFromViewString','startsWith','_removePendingAction','shift','_getBaseVids','createRevision','_loadRevisionData','_prepareViewToSave','_baseRootsAttributes','_loadState','getTime','_clone','resolve','_source','_applyOperations','type','_createFromRanges','_insertChild','root','RealTimeCollaborationClient','_startingVersion','getIndex','document','getRange','path','_loadedStateData','oldRange','_touchedRoots','_getVidAttributeName','isAttached','getRootNames','detachRoot','processor','_markers','_execute','children','_makeIdsRoot','_setAttribute','find','clear','reverse','_fixRange','_handleSplitOperation','_authorId','currentRevision','_fixPosition','getRoot','targetPosition','$text','_initialRoots','tableCell','remove','parent','set','_startingRevisionId','_baseRoots','initial','_handleInsertOperation','getWalker','revision-end','_transformMarkers','addRevisionData','_generateTape','roots','_isInit','$graveyard','_appendChild','marker','getAttributes','size','_saveMetaData','_removeMetaData','_continueCurrentRevision','setSource','keys','addRevision','data-revision-','_removeRevisionMarkers','range','_makeRevision','_replaceEditorDataWithRevisionData','getAttribute','_addPendingAction','baseVersion','documentFragment','sendBufferedUpdates','Users','some','key','toView','_savedMetaData','getLatestVersion','initialData','diffData','_handleMoveOperation','_lastTo','plugins','childCount','nodeAfter','isReady','createPositionFromPath','model','element','newRange','stickiness','requires','_baseIdsRoots','split','vid_start','includes','init','revision','history','_bufferUpdate','isEnabled','createRangeIn','getUser','_touched','dataDowncast','Initial\x20revision','revisionHistory.resumeUnsavedRevision','fromEntries','dataToMarker','getChildren','_getFromVersion','repository','item','getMovedRangeStart','_lastFrom','getTransformedByOperation','useFillerType','map','editing','then','_handleRootOperation','ready','attributesBefore','createRange','source','editor','_diffRootsAttributes','attributes'];(function(_0x5aef4a,_0x4dfc92){const _0x363bc7=function(_0x307f58){while(--_0x307f58){_0x5aef4a['push'](_0x5aef4a['shift']());}};_0x363bc7(++_0x4dfc92);}(_0x4dfc,0x1e2));const _0x363b=function(_0x5aef4a,_0x4dfc92){_0x5aef4a=_0x5aef4a-0x0;let _0x363bc7=_0x4dfc[_0x5aef4a];return _0x363bc7;};import{Users as _0x4e4173}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x576cfb,PendingActions as _0x31c758}from'ckeditor5/src/core';import{logWarning as _0x5836a5,uid as _0x24c4f2}from'ckeditor5/src/utils';import{Position as _0x2d407b,Range as _0x198628,Element as _0x59fbf0,DocumentFragment as _0x1e2b71,ViewText as _0x59e135,ViewElement as _0x3e3907,ViewContainerElement as _0x1ac531,ViewAttributeElement as _0x5a079f,ViewEmptyElement as _0x40cd52,ViewRawElement as _0x511271,ViewUIElement as _0x193e16,ViewDocumentFragment as _0x1851ef}from'ckeditor5/src/engine';import _0xe53db8 from'./revisionsrepository';import{getTranslation as _0x13a64c}from'./utils/common-translations';import{cloneDeep as _0x451b46,isEqual as _0x59c7e7}from'lodash-es';const B={'c':_0x1ac531,'a':_0x5a079f,'e':_0x40cd52,'r':_0x511271,'u':_0x193e16};export default class l extends _0x576cfb{static get['pluginName'](){return _0x363b('0x9e');}static get[_0x363b('0x9')](){return[_0x4e4173,_0xe53db8,_0x31c758];}constructor(_0x4f7493){super(_0x4f7493),this[_0x363b('0x87')]=null,this[_0x363b('0xd4')]=null,this[_0x363b('0x77')]=new H(this[_0x363b('0x2b')]),this[_0x363b('0x88')]=this[_0x363b('0x2b')][_0x363b('0x3f')][_0x363b('0x6d')]('collaboration.channelId')||_0x363b('0xe0'),this[_0x363b('0x68')]=new Map(),this[_0x363b('0xc1')]=null;const _0x2b491f=_0x24c4f2();this[_0x363b('0xb5')]={'history':this[_0x363b('0x2b')][_0x363b('0x5')][_0x363b('0xbe')][_0x363b('0x10')],'getLatestVersion':()=>Promise['resolve'](this['editor']['model'][_0x363b('0xbe')][_0x363b('0x8a')]),'getCurrentRevisionId':()=>_0x2b491f},this[_0x363b('0xdd')](_0x363b('0x3'),!0x1),this[_0x363b('0xdd')](_0x363b('0x12'),!0x0),this[_0x363b('0xdd')](_0x363b('0x7b'),!0x1),this[_0x363b('0x2b')][_0x363b('0x3f')]['define'](_0x363b('0x18'),!0x0),this[_0x363b('0x2b')]['conversion']['for'](_0x363b('0x94'))[_0x363b('0x1a')]({'view':_0x363b('0xf')});}['init'](){this['repository']=this[_0x363b('0x2b')][_0x363b('0x0')][_0x363b('0x6d')](_0x363b('0x44')),this[_0x363b('0x2f')](),this['editor']['data']['on'](_0x363b('0x27'),()=>{const _0x7e6e3f=this[_0x363b('0x1d')][_0x363b('0x7d')](0x0),_0x5afc16=_0x7e6e3f&&null===_0x7e6e3f[_0x363b('0x5f')]?_0x7e6e3f:null;if(this[_0x363b('0xf0')]=!!_0x5afc16&&this[_0x363b('0x2b')][_0x363b('0x3f')][_0x363b('0x6d')](_0x363b('0x18')),this[_0x363b('0x2b')][_0x363b('0x0')]['has'](_0x363b('0xbb'))){const _0x1c50bd=this['_source']['getCurrentRevisionId'](),_0x758a55=this[_0x363b('0x1d')][_0x363b('0x7d')](_0x1c50bd);if(_0x758a55)this[_0x363b('0xbc')]=_0x758a55[_0x363b('0x37')],this[_0x363b('0xf0')]=!0x1;else{const _0x361c44=this[_0x363b('0xb5')][_0x363b('0x10')][_0x363b('0x98')]['find'](_0x10ea47=>!_0x10ea47[_0x363b('0xe8')]),_0x5b7824=_0x361c44?_0x361c44[_0x363b('0xfb')]:this[_0x363b('0xb5')][_0x363b('0x10')][_0x363b('0x8a')];_0x7e6e3f?(_0x7e6e3f[_0x363b('0x81')]<_0x5b7824&&_0x7e6e3f[_0x363b('0x42')]({'toVersion':_0x5b7824}),this[_0x363b('0xf0')]?(this[_0x363b('0xb5')][_0x363b('0xa6')]=()=>_0x5afc16['id'],this[_0x363b('0xbc')]=_0x5afc16[_0x363b('0x37')]):(this[_0x363b('0xbc')]=_0x7e6e3f[_0x363b('0x81')],this[_0x363b('0xf0')]=!0x1)):(this['_startingVersion']=_0x5b7824,this['_continueCurrentRevision']=!0x1);}}else _0x5afc16&&(this[_0x363b('0x2b')][_0x363b('0x5')][_0x363b('0xbe')][_0x363b('0x10')][_0x363b('0x8a')]=Math['max'](_0x5afc16[_0x363b('0x81')],this[_0x363b('0x2b')][_0x363b('0x5')][_0x363b('0xbe')][_0x363b('0x10')]['version']),_0x5afc16['fromVersion']===_0x5afc16[_0x363b('0x81')]?(0x0!==_0x5afc16[_0x363b('0x37')]&&(this[_0x363b('0xb5')][_0x363b('0xa6')]=()=>_0x5afc16['id']),this[_0x363b('0xf0')]=!0x1):this['_continueCurrentRevision']&&(this[_0x363b('0xb5')][_0x363b('0xa6')]=()=>_0x5afc16['id'],this[_0x363b('0xbc')]=_0x5afc16[_0x363b('0x37')])),this[_0x363b('0xf0')]||(this[_0x363b('0xbc')]=this[_0x363b('0x2b')][_0x363b('0x5')][_0x363b('0xbe')][_0x363b('0x8a')]);this[_0x363b('0x77')][_0x363b('0xe')](this['_source'][_0x363b('0x10')]),this[_0x363b('0xa3')](this[_0x363b('0xbc')]),this['_createCurrentRevision'](this[_0x363b('0xbc')]),this[_0x363b('0x87')]&&this[_0x363b('0xfd')]();}),this[_0x363b('0x45')](_0x363b('0x3'))['to'](this,_0x363b('0x7b'),_0x13bfc9=>!_0x13bfc9);}async[_0x363b('0x31')](){if(this[_0x363b('0x1d')]['length']>0x0){const _0x44a55c=this[_0x363b('0x1d')][_0x363b('0x7d')](0x0),_0x50d931=await this['getRevisionDocumentData'](_0x44a55c),_0x4b76d3=await this[_0x363b('0x51')](_0x44a55c);this[_0x363b('0xf8')](_0x50d931,_0x4b76d3);}}[_0x363b('0xf1')](_0x1c8e73){this['_source']=_0x1c8e73;}async[_0x363b('0x5d')](){const _0x52ebad=await this[_0x363b('0xb5')][_0x363b('0x103')]();if(_0x52ebad>this[_0x363b('0xd4')][_0x363b('0x81')]){await this[_0x363b('0xb1')]();const _0x27e08a=this[_0x363b('0x30')]({'revision':this[_0x363b('0xd4')],'to':_0x52ebad});_0x27e08a[_0x363b('0x40')]=_0x27e08a[_0x363b('0xa4')]['map'](_0x1dc9f9=>this['editor'][_0x363b('0x0')]['get'](_0x363b('0xfe'))[_0x363b('0x14')](_0x1dc9f9)),this[_0x363b('0xd4')]['_update'](_0x27e08a);}}async[_0x363b('0xb1')](){this[_0x363b('0xf0')]&&!this['_loadedStateData']&&(await this[_0x363b('0xae')](this[_0x363b('0xd4')]),this[_0x363b('0x77')]['loadState'](this[_0x363b('0xd4')]),this[_0x363b('0xc1')]={'fromVersion':this[_0x363b('0xd4')][_0x363b('0x37')],'authors':this['currentRevision'][_0x363b('0x40')][_0x363b('0x66')]()});}async[_0x363b('0x55')](_0x55bb9a={},_0x40d364=null){const _0x250757=[];await this[_0x363b('0xb1')](),this[_0x363b('0xf0')]=!0x1,_0x40d364>this[_0x363b('0xd4')]['toVersion']&&(_0x40d364=null),null===_0x40d364&&(_0x40d364=await this[_0x363b('0xb5')]['getLatestVersion']());const _0x22dd7b=this[_0x363b('0x1c')](_0x40d364),_0x56ae38=this[_0x363b('0x30')]({'from':_0x22dd7b,'to':_0x40d364});if(this[_0x363b('0xd4')][_0x363b('0x81')]<_0x40d364){const _0x25e33c=this[_0x363b('0x30')]({'revision':this[_0x363b('0xd4')],'from':_0x40d364,'to':_0x40d364});_0x25e33c[_0x363b('0x40')]=[],_0x25e33c['authorsIds']=[],_0x25e33c['id']=this[_0x363b('0xd4')]['id'],this[_0x363b('0xd4')][_0x363b('0x42')](_0x25e33c,!0x0),delete _0x25e33c['authors'],_0x250757['push'](_0x25e33c);}_0x55bb9a[_0x363b('0x82')]=this[_0x363b('0x2b')]['plugins'][_0x363b('0x6d')]('Users')['me']['id'],_0x55bb9a[_0x363b('0xa5')]=_0x55bb9a[_0x363b('0xa5')]||null,_0x55bb9a['id']=_0x55bb9a['id']||_0x24c4f2(),_0x55bb9a={..._0x55bb9a,..._0x56ae38};const _0x10c9ef=this[_0x363b('0xe5')](_0x55bb9a);_0x250757[_0x363b('0x60')](_0x55bb9a);const _0x3ca472=this[_0x363b('0x1d')][_0x363b('0xbd')](_0x10c9ef);if(0x0!==_0x3ca472){const _0x5aefd0=this[_0x363b('0x1d')]['getRevision'](_0x3ca472-0x1);if(_0x5aefd0[_0x363b('0x37')]!==_0x40d364){const _0x4aee2a=this[_0x363b('0x77')][_0x363b('0x3b')](_0x40d364,_0x5aefd0[_0x363b('0x81')]),_0x5c3ad4={'id':_0x5aefd0['id'],'diffData':_0x4aee2a[_0x363b('0x105')],'authorsIds':_0x4aee2a[_0x363b('0xa4')],'authors':_0x4aee2a[_0x363b('0xa4')]['map'](_0x358bee=>this[_0x363b('0x2b')][_0x363b('0x0')][_0x363b('0x6d')]('Users')[_0x363b('0x14')](_0x358bee)),'fromVersion':_0x40d364};_0x5aefd0===this[_0x363b('0xd4')]&&(_0x5c3ad4[_0x363b('0x63')]=new Date(_0x55bb9a[_0x363b('0x63')][_0x363b('0xb2')]()+0xa)),_0x5aefd0['_update'](_0x5c3ad4,!0x0),delete _0x5c3ad4[_0x363b('0x40')],_0x250757[_0x363b('0x60')](_0x5c3ad4);}}if(this[_0x363b('0x87')]){for(const _0x42ec6b of _0x250757)this[_0x363b('0x11')](_0x42ec6b['id'],_0x42ec6b,!0x0);this['sendBufferedUpdates']();}return _0x10c9ef;}[_0x363b('0xe5')](_0x379f80){const _0x531789=this[_0x363b('0x1d')][_0x363b('0xad')](_0x379f80);return this[_0x363b('0x87')]&&_0x531789['on']('_update',(_0x3ea9ac,_0x3bcb4f,_0x3ea440)=>{_0x3ea440||(this['_bufferUpdate'](_0x3bcb4f['id'],_0x3bcb4f,!0x0),this[_0x363b('0xfd')]());}),this[_0x363b('0x1d')][_0x363b('0xf3')](_0x531789,this['_findInsertionIndex'](_0x531789)),_0x531789;}async['getRevisionDocumentData'](_0x38f1f8){await this[_0x363b('0xae')](_0x38f1f8);const _0x25adb9={};for(const _0x3741ac in _0x38f1f8[_0x363b('0x105')]){if(_0x38f1f8['diffData'][_0x3741ac][_0x363b('0x33')]&&!_0x38f1f8['diffData'][_0x3741ac][_0x363b('0x33')]['isAttached'])continue;const _0x1ccf8f=this[_0x363b('0xf5')](JSON['parse'](_0x38f1f8[_0x363b('0x105')][_0x3741ac]['insertions'])),_0x586dc0=this[_0x363b('0x2b')][_0x363b('0x24')][_0x363b('0x6f')]['document'],_0x2c04e0=new _0x1851ef(_0x586dc0,_0x1ccf8f[_0x363b('0x23')](_0x3ef50c=>J(_0x3ef50c,this[_0x363b('0x2b')])));this[_0x363b('0x2b')][_0x363b('0x3e')][_0x363b('0xc8')][_0x363b('0x22')](_0x363b('0x58')),_0x25adb9[_0x3741ac]=this[_0x363b('0x2b')][_0x363b('0x3e')][_0x363b('0xc8')][_0x363b('0x7a')](_0x2c04e0),this['editor'][_0x363b('0x3e')][_0x363b('0xc8')]['useFillerType'](_0x363b('0x6a'));}return _0x25adb9;}async[_0x363b('0x51')](_0x9ea1b1){await this[_0x363b('0xae')](_0x9ea1b1);const _0x1bc81a={};for(const _0x1f57bd in _0x9ea1b1['diffData'])_0x9ea1b1['diffData'][_0x1f57bd]['attachChange']&&!_0x9ea1b1[_0x363b('0x105')][_0x1f57bd][_0x363b('0x33')]['isAttached']||(_0x1bc81a[_0x1f57bd]=_0x9ea1b1[_0x363b('0x105')][_0x1f57bd][_0x363b('0xa7')]||{});return _0x1bc81a;}[_0x363b('0xfd')](){if(0x0===this[_0x363b('0x68')]['size'])return;if(this[_0x363b('0x7b')])return;let _0x13c7eb=Array[_0x363b('0x59')](this[_0x363b('0x68')][_0x363b('0x84')]());this['_bufferedUpdates'][_0x363b('0xcf')]();for(let _0x3d57f8=0x0;_0x3d57f8<_0x13c7eb[_0x363b('0x75')];_0x3d57f8++){const _0x1fd4ca=_0x13c7eb[_0x3d57f8];let _0x54edd9=!0x1;for(const _0x2680f1 of Object[_0x363b('0xf2')](_0x1fd4ca))void 0x0===_0x1fd4ca[_0x2680f1]?delete _0x1fd4ca[_0x2680f1]:'id'!==_0x2680f1&&(_0x54edd9=!0x0);_0x54edd9||(_0x13c7eb[_0x3d57f8]=null);}if(_0x13c7eb=_0x13c7eb[_0x363b('0x93')](_0x5055f1=>null!==_0x5055f1),!_0x13c7eb[_0x363b('0x75')])return;for(let _0x487609=0x0;_0x487609<_0x13c7eb[_0x363b('0x75')];_0x487609++){const _0x3fd5f3=_0x13c7eb[_0x487609];void 0x0!==_0x3fd5f3[_0x363b('0x37')]&&void 0x0===_0x3fd5f3['toVersion']&&(_0x3fd5f3[_0x363b('0x81')]=this[_0x363b('0x1d')][_0x363b('0x7d')](_0x3fd5f3['id'])[_0x363b('0x81')]),void 0x0!==_0x3fd5f3[_0x363b('0x81')]&&void 0x0===_0x3fd5f3[_0x363b('0x37')]&&(_0x3fd5f3[_0x363b('0x37')]=this[_0x363b('0x1d')]['getRevision'](_0x3fd5f3['id'])[_0x363b('0x37')]);}const _0x558fee=this[_0x363b('0x2b')]['config'][_0x363b('0x6d')](_0x363b('0x56'));this['_isPendingUpdate']=!0x0,this[_0x363b('0xfa')](),this[_0x363b('0x87')][_0x363b('0x48')](_0x13c7eb,_0x558fee)[_0x363b('0x43')](()=>{this['_isPendingUpdate']=!0x1;})[_0x363b('0x25')](_0x3dc146=>{if(_0x3dc146)for(const _0x121748 of _0x3dc146)this[_0x363b('0x5a')]({'id':_0x121748['id'],'createdAt':_0x121748[_0x363b('0x63')]});this[_0x363b('0xaa')](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x3296ec,_0x2e19a3){let _0x476b2e=this[_0x363b('0x2b')]['config']['get'](_0x363b('0x104')),_0x5a0b4f=this[_0x363b('0x2b')][_0x363b('0x3f')][_0x363b('0x6d')](_0x363b('0x9f'));if(void 0x0===_0x476b2e){_0x476b2e={};for(const _0x30cbca of this['editor']['model'][_0x363b('0xbe')][_0x363b('0xc6')]())_0x476b2e[_0x30cbca]='';}if('string'==typeof _0x476b2e&&(_0x476b2e={'main':_0x476b2e}),void 0x0===_0x5a0b4f){_0x5a0b4f={};for(const _0x13e6fd of this['editor'][_0x363b('0x5')]['document'][_0x363b('0xc6')]())_0x5a0b4f[_0x13e6fd]={};}let _0x2402ae=!0x1;const _0x4d9f5a=Object[_0x363b('0xf2')](_0x476b2e),_0x58b593=Object[_0x363b('0xf2')](_0x3296ec);for(const _0x5d1940 of _0x4d9f5a){if(_0x476b2e[_0x5d1940]!==_0x3296ec[_0x5d1940]&&''!==_0x476b2e[_0x5d1940][_0x363b('0x36')]()){_0x2402ae=!0x0;break;}if(!_0x59c7e7(_0x5a0b4f[_0x5d1940],_0x2e19a3[_0x5d1940])&&Object[_0x363b('0xf2')](_0x5a0b4f[_0x5d1940])[_0x363b('0x75')]>0x0){_0x2402ae=!0x0;break;}}_0x2402ae||(_0x2402ae=_0x58b593[_0x363b('0xff')](_0x11ec0d=>!_0x4d9f5a['includes'](_0x11ec0d))),_0x2402ae&&_0x5836a5('editor-initial-data-replaced-with-revision-data',{'editorData':_0x476b2e,'editorRootsAttributes':_0x5a0b4f,'revisionData':_0x3296ec,'revisionRootsAttributes':_0x2e19a3}),this['editor'][_0x363b('0x3f')]['set'](_0x363b('0x104'),_0x3296ec),this[_0x363b('0x2b')]['config'][_0x363b('0xdd')]('rootsAttributes',_0x2e19a3);}[_0x363b('0xfa')](){if(!this[_0x363b('0xa2')]){const _0x569aca=this[_0x363b('0x2b')]['plugins'][_0x363b('0x6d')](_0x363b('0x6e'));this[_0x363b('0xa2')]=_0x569aca[_0x363b('0x3c')](_0x13a64c(this[_0x363b('0x2b')][_0x363b('0x34')],_0x363b('0x76')));}}[_0x363b('0xaa')](){this[_0x363b('0xa2')]&&(this[_0x363b('0x2b')][_0x363b('0x0')][_0x363b('0x6d')](_0x363b('0x6e'))[_0x363b('0xdb')](this[_0x363b('0xa2')]),this['_pendingAction']=null);}['_findInsertionIndex'](_0x17afe7){const _0x4c2428=this[_0x363b('0x1d')][_0x363b('0x7e')]();_0x4c2428[_0x363b('0xd0')]();let _0x86bb15=0x0;for(;_0x86bb15<_0x4c2428[_0x363b('0x75')];){const _0x768b13=_0x4c2428[_0x86bb15];if(_0x768b13===this[_0x363b('0xd4')]){_0x86bb15++;continue;}if(_0x768b13['id']===this['_initialRevisionId'])break;const _0x1946a3=_0x17afe7[_0x363b('0x81')]-_0x768b13['toVersion']||_0x17afe7['fromVersion']-_0x768b13[_0x363b('0x37')];if(_0x1946a3>0x0)break;if(_0x1946a3<0x0)_0x86bb15++;else{if(!_0x17afe7['creator']&&_0x768b13[_0x363b('0x5f')])break;if(_0x768b13[_0x363b('0x5f')]||!_0x17afe7[_0x363b('0x5f')]){if(_0x17afe7[_0x363b('0x63')]>_0x768b13[_0x363b('0x63')])break;_0x86bb15++;}else _0x86bb15++;}}return _0x86bb15;}['setRevisionData'](_0x385147){const _0x263ef3=this[_0x363b('0x1d')][_0x363b('0x7d')](_0x385147['id']);if(_0x385147[_0x363b('0x63')]&&(_0x385147[_0x363b('0x63')]=new Date(_0x385147['createdAt'])),_0x385147[_0x363b('0xa4')]){const _0x4b8228=this['editor'][_0x363b('0x0')][_0x363b('0x6d')](_0x363b('0xfe'));_0x385147[_0x363b('0x40')]=_0x385147['authorsIds']['map'](_0x4ec0cd=>_0x4b8228['getUser'](_0x4ec0cd));}_0x263ef3['_update'](_0x385147,!0x0);}['buildRevisionData']({revision:_0x595b73=null,from:_0x15e9d5=null,to:_0x413ed4=null}){_0x15e9d5=null!==_0x15e9d5?_0x15e9d5:_0x595b73['fromVersion'],_0x413ed4=null!==_0x413ed4?_0x413ed4:_0x595b73['toVersion'];const _0x3fab78=this['_revisionDataBuilder'][_0x363b('0x3b')](_0x15e9d5,_0x413ed4),_0x2ceff8={'diffData':_0x3fab78[_0x363b('0x105')],'authorsIds':_0x3fab78[_0x363b('0xa4')],'fromVersion':_0x15e9d5,'toVersion':_0x413ed4};if(!_0x595b73||_0x413ed4!==_0x595b73[_0x363b('0x81')]){const _0x44e649=_0x413ed4-0x1,_0x1b8e2d=this['_source'][_0x363b('0x10')]['getOperation'](_0x44e649);_0x2ceff8[_0x363b('0x63')]=_0x1b8e2d&&_0x1b8e2d[_0x363b('0x63')]||new Date();}if(this[_0x363b('0xc1')]&&_0x15e9d5===this['_loadedStateData'][_0x363b('0x37')])for(const _0x320c79 of this[_0x363b('0xc1')]['authors'])_0x2ceff8[_0x363b('0xa4')][_0x363b('0xd')](_0x320c79['id'])||_0x2ceff8[_0x363b('0xa4')][_0x363b('0x60')](_0x320c79['id']);return _0x2ceff8;}['_loadRevisionData'](_0x22c837){if(!_0x22c837||_0x22c837[_0x363b('0x105')])return Promise[_0x363b('0xb4')]();{const _0x7f47bc=this[_0x363b('0x2b')][_0x363b('0x3f')]['get'](_0x363b('0x56'));return this[_0x363b('0x87')]['getRevision']({'channelId':_0x7f47bc,'revisionId':_0x22c837['id']})['then'](_0x4991c0=>{_0x22c837['diffData']=_0x4991c0[_0x363b('0x105')];});}}[_0x363b('0x11')](_0x36e498,_0x4cadbf,_0x230a18){if(this['_bufferedUpdates']['has'](_0x36e498)){const _0x381645=this[_0x363b('0x68')]['get'](_0x36e498);_0x4cadbf=_0x230a18?{..._0x381645,..._0x4cadbf}:{..._0x4cadbf,..._0x381645};}this[_0x363b('0x68')]['set'](_0x36e498,_0x4cadbf);}[_0x363b('0x1c')](_0x19d99b){const _0x133699=this[_0x363b('0x1d')]['getRevisions']();_0x133699[_0x363b('0xd0')](),_0x133699[_0x363b('0xab')]();const _0x2f16d8=_0x133699[_0x363b('0xce')](_0x3ad41e=>_0x3ad41e[_0x363b('0x81')]<=_0x19d99b)[_0x363b('0x81')];return _0x2f16d8<this[_0x363b('0xbc')]?this[_0x363b('0xbc')]:_0x2f16d8;}[_0x363b('0xa3')](_0x1c0dfb){const _0x1f983d=this[_0x363b('0x1d')][_0x363b('0x7d')](this['repository'][_0x363b('0x75')]-0x1);if(_0x1f983d)this[_0x363b('0x88')]=_0x1f983d['id'];else{const _0x405bd9=!this['editor'][_0x363b('0x5')][_0x363b('0xbe')][_0x363b('0xe7')][_0x363b('0xce')](_0x3d3a98=>this[_0x363b('0x2b')][_0x363b('0x5')]['hasContent'](_0x3d3a98)),_0x404bb8=this[_0x363b('0x2b')][_0x363b('0x0')][_0x363b('0x6d')]('Users')['me']['id'],_0x3a041f=_0x13a64c(this[_0x363b('0x2b')][_0x363b('0x34')],_0x405bd9?_0x363b('0x74'):_0x363b('0x17'));this[_0x363b('0xf7')]({'from':_0x1c0dfb,'to':_0x1c0dfb,'id':this[_0x363b('0x88')],'name':_0x3a041f,'creatorId':_0x404bb8});}}[_0x363b('0x39')](_0x4e1f85){const _0x1eb279=this[_0x363b('0xb5')][_0x363b('0xa6')]();this[_0x363b('0xd4')]=this[_0x363b('0x1d')][_0x363b('0x7d')](_0x1eb279),this[_0x363b('0xd4')]||(this['currentRevision']=this[_0x363b('0xf7')]({'from':_0x4e1f85,'to':_0x4e1f85,'id':_0x1eb279,'name':'','creatorId':null}));}[_0x363b('0xf7')]({name:_0x31c919,from:_0x20c6c3,to:_0x175e01,creatorId:_0x418d2f,id:_0x893c4b}){const _0x438d53=this['buildRevisionData']({'from':_0x20c6c3,'to':_0x175e01});_0x438d53[_0x363b('0xa5')]=_0x31c919,_0x438d53['creatorId']=_0x418d2f,_0x438d53['id']=_0x893c4b;const _0x47f3d8=this[_0x363b('0xe5')](_0x438d53);return this[_0x363b('0x87')]&&this[_0x363b('0x11')](_0x438d53['id'],_0x438d53,!0x0),_0x47f3d8;}[_0x363b('0x2f')](){this[_0x363b('0x2b')][_0x363b('0x97')]['for'](_0x363b('0x16'))[_0x363b('0x71')]({'model':_0x363b('0xf')});}[_0x363b('0xf5')](_0x132153){return(_0x132153=_0x132153[_0x363b('0x93')](_0x879832=>!_0x879832['name']||_0x363b('0x9a')!==_0x879832[_0x363b('0xa5')]&&_0x363b('0xe3')!==_0x879832[_0x363b('0xa5')]))[_0x363b('0x49')](_0x259f27=>{_0x363b('0x3a')!=typeof _0x259f27&&(_0x259f27[_0x363b('0xcb')]=this[_0x363b('0xf5')](_0x259f27[_0x363b('0xcb')]),_0x259f27[_0x363b('0x2d')]=_0x259f27[_0x363b('0x2d')][_0x363b('0x93')](_0x446799=>!_0x446799[0x0][_0x363b('0xa9')](_0x363b('0xf4'))));}),_0x132153;}}function J(_0x3cfb26,_0x1d8cf5){const _0xa2855=_0x1d8cf5[_0x363b('0x24')][_0x363b('0x6f')][_0x363b('0xbe')];if(_0x363b('0x3a')==typeof _0x3cfb26)return new _0x59e135(_0xa2855,_0x3cfb26);{const _0x54a1e9=_0x3cfb26[_0x363b('0xcb')][_0x363b('0x23')](_0x8c6a77=>J(_0x8c6a77,_0x1d8cf5));return new(B[_0x3cfb26[(_0x363b('0xb7'))]]||_0x3e3907)(_0xa2855,_0x3cfb26[_0x363b('0xa5')],_0x3cfb26[_0x363b('0x2d')],_0x54a1e9);}}class H{constructor(_0x1b3116){this['editor']=_0x1b3116,this['_savedMetaData']=new Map(),this[_0x363b('0x20')]=-0x1,this[_0x363b('0x107')]=-0x1,this[_0x363b('0xc9')]=new Map(),this['_diffRoots']=new Map(),this[_0x363b('0x2c')]=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x363b('0x9d')]=new Map(),this[_0x363b('0xa')]=new Map(),this[_0x363b('0x15')]=new Map(),this[_0x363b('0x8b')]=new Map(),this[_0x363b('0xc3')]=new Map(),this['_revisionId']=0x1,this[_0x363b('0xd9')]=this['editor']['model'][_0x363b('0xbe')][_0x363b('0xc6')](),this['_initialRoots']['push'](_0x363b('0xe9'));}['init'](_0x2837a0){this[_0x363b('0x2a')]=_0x2837a0;const _0xe2109b=new Map(),_0x1e5f92=new Map(),_0x22b2d1=this[_0x363b('0x2b')][_0x363b('0x5')][_0x363b('0xbe')][_0x363b('0xc6')](!0x0);_0x22b2d1[_0x363b('0x60')]('$graveyard');for(const _0x56f71e of _0x22b2d1){const _0x13271e=this[_0x363b('0x2b')][_0x363b('0x5')]['document'][_0x363b('0xd6')](_0x56f71e),_0x1c415d=q(_0x13271e);_0xe2109b[_0x363b('0xdd')](_0x56f71e,_0x1c415d),_0x1e5f92[_0x363b('0xdd')](_0x56f71e,Object[_0x363b('0x19')](_0x13271e[_0x363b('0xec')]()));}const _0x5f0a80=Array[_0x363b('0x59')](this['editor'][_0x363b('0x5')]['markers'])[_0x363b('0x23')](_0x232227=>[_0x232227[_0x363b('0xa5')],_0x232227[_0x363b('0xbf')]()]),_0x5c41fb=this['source'][_0x363b('0x8a')];this[_0x363b('0xee')](_0x5c41fb,_0xe2109b,_0x5f0a80,_0x1e5f92),this['_startingRevisionId']=this[_0x363b('0x4d')];const _0x4d8a4f=new Map(),_0x7066bf=new Map();for(const _0x4b1e38 of this[_0x363b('0xd9')]){const _0x34af2d=G(_0x4b1e38);_0x4d8a4f['set'](_0x4b1e38,_0x34af2d),_0x7066bf[_0x363b('0xdd')](_0x4b1e38,{});}this[_0x363b('0xee')](Number[_0x363b('0x9c')],_0x4d8a4f,[],_0x7066bf);}[_0x363b('0x3b')](_0x4ed7b7,_0x2ea640){if(this[_0x363b('0x20')]===_0x4ed7b7&&this[_0x363b('0x107')]<=_0x2ea640)this['_savedMetaData'][_0x363b('0xed')]>0x1&&this[_0x363b('0xef')](this['_lastTo']),this[_0x363b('0xb6')](this[_0x363b('0x107')],_0x2ea640,!0x0);else{if(!this['_savedMetaData'][_0x363b('0x9b')](_0x4ed7b7)){const _0x329faa=this['_getPreviousFrom'](_0x4ed7b7);this[_0x363b('0x99')](_0x329faa,_0x4ed7b7,!0x1);}this[_0x363b('0x99')](_0x4ed7b7,_0x2ea640,!0x0);}return this[_0x363b('0x20')]=_0x4ed7b7,this[_0x363b('0x107')]=_0x2ea640,this['_getState']();}[_0x363b('0x85')](_0x28c29b){this[_0x363b('0x38')](),this[_0x363b('0x20')]=_0x28c29b[_0x363b('0x37')],this[_0x363b('0x107')]=_0x28c29b[_0x363b('0x81')];for(const _0xfdcd7f in _0x28c29b[_0x363b('0x105')]){const _0x55b9e7=_0x28c29b[_0x363b('0x105')][_0xfdcd7f]['attachChange'],_0x2eb415=_0x451b46(_0x28c29b[_0x363b('0x105')][_0xfdcd7f][_0x363b('0x28')])||{},_0x51b31e=this[_0x363b('0xa8')](_0x28c29b[_0x363b('0x105')][_0xfdcd7f][_0x363b('0x61')]);_0x51b31e[_0x363b('0x90')]=_0xfdcd7f,_0x51b31e['_isAttached']=!_0x55b9e7||!_0x55b9e7['isAttached'],_0x51b31e[_0x363b('0xc5')]=()=>_0x51b31e[_0x363b('0x91')],this[_0x363b('0xdf')]['set'](_0xfdcd7f,_0x51b31e),this[_0x363b('0xb0')][_0x363b('0xdd')](_0xfdcd7f,_0x2eb415),_0x55b9e7&&this[_0x363b('0xc3')][_0x363b('0xdd')](_0xfdcd7f,_0x55b9e7);const _0x36fb70=this[_0x363b('0xcc')](_0x51b31e);this[_0x363b('0xa')][_0x363b('0xdd')](_0xfdcd7f,_0x36fb70);for(const [_0x253b11,_0x52b87b]of _0x51b31e[_0x363b('0x89')]){if(!_0x253b11['startsWith'](_0x363b('0x78')))continue;const _0xa1ba20=_0x253b11[_0x363b('0xb')](':')[0x2];for(const _0x5861ae of _0x52b87b[_0x363b('0xe2')]({'singleCharacters':!0x0})){const _0xc77be1=this[_0x363b('0xc4')](_0x5861ae),_0x1de01a=_0x363b('0x47')==_0x5861ae[_0x363b('0xb7')]?_0x5861ae[_0x363b('0xa1')][_0x363b('0xc0')][_0x363b('0x66')](0x0,-0x1):_0x5861ae[_0x363b('0xa1')][_0x363b('0xc0')],_0x316e65=_0x36fb70[_0x363b('0x8e')](_0x1de01a)[_0x363b('0xf9')](_0xc77be1);this['_touched'][_0x363b('0xdd')](_0x316e65,{'userId':_0xa1ba20});}}}this['_startingRevisionId']=this['_revisionId'];const _0x432f1d=[...Array(this['_revisionId'])[_0x363b('0xf2')]()][_0x363b('0x66')](0x1)[_0x363b('0x93')](_0x20820b=>!this[_0x363b('0x15')][_0x363b('0x9b')](_0x20820b));let _0x370909=0x0;const _0x2d7ec7=new Map();for(const _0x35b215 in _0x28c29b[_0x363b('0x105')]){const _0x1fe177=_0x28c29b[_0x363b('0x105')][_0x35b215][_0x363b('0x33')],_0x17316a=_0x451b46(_0x28c29b[_0x363b('0x105')][_0x35b215][_0x363b('0xa7')])||{},_0x20846b=this[_0x363b('0xa8')](_0x28c29b[_0x363b('0x105')][_0x35b215][_0x363b('0x32')]);_0x20846b[_0x363b('0x90')]=_0x35b215,_0x20846b[_0x363b('0x91')]=!_0x1fe177||_0x1fe177['isAttached'],_0x20846b['isAttached']=()=>_0x20846b[_0x363b('0x91')],this['_diffRoots'][_0x363b('0xdd')](_0x35b215,_0x20846b),this['_diffRootsAttributes']['set'](_0x35b215,_0x17316a);const _0x1b6292=this[_0x363b('0xcc')](_0x20846b,Number['NEGATIVE_INFINITY']);this[_0x363b('0x9d')]['set'](_0x35b215,_0x1b6292),_0x2d7ec7[_0x363b('0xdd')](_0x35b215,_0x20846b['isAttached']()?_0x17316a:{});for(const [_0x38d3c4,_0x1e6a0e]of _0x20846b[_0x363b('0x89')]){if(!_0x38d3c4[_0x363b('0xa9')](_0x363b('0x78')))continue;const _0x2ddd70=_0x38d3c4[_0x363b('0xb')](':')[0x2];for(const _0x5602d5 of _0x1e6a0e[_0x363b('0xe2')]({'singleCharacters':!0x0})){const _0x57e23f=this[_0x363b('0xc4')](_0x5602d5),_0xf41d0c=this[_0x363b('0x4d')]++,_0x37d56b=_0x363b('0x47')==_0x5602d5[_0x363b('0xb7')]?_0x5602d5[_0x363b('0xa1')][_0x363b('0xc0')][_0x363b('0x66')](0x0,-0x1):_0x5602d5[_0x363b('0xa1')]['path'];_0x1b6292[_0x363b('0x8e')](_0x37d56b)[_0x363b('0xcd')](_0x57e23f,_0xf41d0c),this[_0x363b('0x15')][_0x363b('0xdd')](_0xf41d0c,{'userId':_0x2ddd70});}}for(const _0x214d8b of this[_0x363b('0x2b')]['model'][_0x363b('0x13')](_0x20846b)['getWalker']({'singleCharacters':!0x0})){const _0x51d515=this[_0x363b('0xc4')](_0x214d8b),_0x12b9fe='elementEnd'==_0x214d8b[_0x363b('0xb7')]?_0x214d8b[_0x363b('0xa1')][_0x363b('0xc0')]['slice'](0x0,-0x1):_0x214d8b[_0x363b('0xa1')][_0x363b('0xc0')],_0x5034e5=_0x1b6292[_0x363b('0x8e')](_0x12b9fe);_0x5034e5[_0x363b('0xf9')](_0x51d515)>0x0||_0x5034e5[_0x363b('0xcd')](_0x51d515,_0x432f1d[_0x370909++]);}for(const [_0x2ebc78,_0x5e36c4]of _0x20846b[_0x363b('0x89')])_0x2ebc78[_0x363b('0xa9')](_0x363b('0x78'))||this[_0x363b('0xc9')][_0x363b('0xdd')](_0x2ebc78,_0x5e36c4);}const _0x3d6deb=G('$graveyard');this['_baseRoots'][_0x363b('0xdd')](_0x363b('0xe9'),_0x3d6deb),this['_baseIdsRoots']['set'](_0x363b('0xe9'),this[_0x363b('0xcc')](_0x3d6deb,0x1));const _0x4ae6c6=G('$graveyard');this[_0x363b('0x80')][_0x363b('0xdd')](_0x363b('0xe9'),_0x4ae6c6),this[_0x363b('0x9d')][_0x363b('0xdd')](_0x363b('0xe9'),this[_0x363b('0xcc')](_0x4ae6c6,0x1));const _0x368385=Array[_0x363b('0x59')](this['_diffRoots'])['map'](([_0x249c5c,_0x1a6fca])=>[_0x249c5c,q(_0x1a6fca)]);this['_saveMetaData'](this[_0x363b('0x107')],_0x368385,this[_0x363b('0xc9')],_0x2d7ec7);}[_0x363b('0xa8')](_0x416b01){const _0x17bd7d=JSON[_0x363b('0x4c')](_0x416b01),_0x337ca9=this[_0x363b('0x2b')][_0x363b('0x24')][_0x363b('0x6f')][_0x363b('0xbe')],_0x44518d=new _0x1851ef(_0x337ca9,_0x17bd7d[_0x363b('0x23')](_0x169b6b=>J(_0x169b6b,this['editor'])));return this['editor'][_0x363b('0x3e')]['toModel'](_0x44518d);}[_0x363b('0xee')](_0x28bc24,_0x487166,_0x176893,_0xf204c8){const _0x348239=new Map(_0x487166),_0x40443d=new Map(_0x451b46(_0xf204c8)),_0x803569=new Map();for(const [_0x2ec87b,_0xea37f1]of _0x176893)_0x803569[_0x363b('0xdd')](_0x2ec87b,{'start':_0xea37f1[_0x363b('0x5e')][_0x363b('0x2e')](),'end':_0xea37f1[_0x363b('0x54')]['clone'](),'rootName':_0xea37f1['root'][_0x363b('0x90')]});this['_savedMetaData'][_0x363b('0xdd')](_0x28bc24,{'roots':_0x348239,'markers':_0x803569,'rootsAttributes':_0x40443d});}[_0x363b('0xef')](_0x2ae8c9){this['_savedMetaData'][_0x363b('0x69')](_0x2ae8c9);}['reInit'](){this[_0x363b('0x38')](),this['_lastFrom']=-0x1,this[_0x363b('0x107')]=-0x1,this[_0x363b('0x102')]['clear'](),this[_0x363b('0xe')](this[_0x363b('0x2a')]);}[_0x363b('0x38')](){this[_0x363b('0x15')]['clear'](),this[_0x363b('0x8b')][_0x363b('0xcf')](),this[_0x363b('0xc3')][_0x363b('0xcf')](),this[_0x363b('0x80')][_0x363b('0xcf')](),this['_diffRootsAttributes'][_0x363b('0xcf')](),this[_0x363b('0xdf')][_0x363b('0xcf')](),this['_baseRootsAttributes'][_0x363b('0xcf')](),this[_0x363b('0x9d')][_0x363b('0xcf')](),this[_0x363b('0xa')][_0x363b('0xcf')](),this[_0x363b('0xc9')][_0x363b('0xcf')](),this['_revisionId']=0x1,this[_0x363b('0xde')]=this[_0x363b('0x4d')];}[_0x363b('0xcc')](_0x549370,_0x285ddf=null){let _0x1fe517=null;_0x549370['is'](_0x363b('0xfc'))||(_0x1fe517=new _0x59fbf0(_0x549370[_0x363b('0xa5')],{'vid_start':null===_0x285ddf?this[_0x363b('0x4d')]++:_0x285ddf++}));const _0x189008=[];for(const _0x368f99 of _0x549370[_0x363b('0x1b')]())if(_0x368f99['is'](_0x363b('0x6'))){_0x189008[_0x363b('0x60')](this[_0x363b('0xcc')](_0x368f99,_0x285ddf));const _0x14cfb5=_0x189008[_0x189008[_0x363b('0x75')]-0x1];null!==_0x285ddf&&(_0x285ddf=_0x14cfb5['is'](_0x363b('0x6'),'$text')?_0x14cfb5[_0x363b('0xf9')]('vid')+0x1:_0x14cfb5[_0x363b('0xf9')](_0x363b('0x79'))+0x1);}else for(let _0x191330=0x0;_0x191330<_0x368f99['offsetSize'];_0x191330++)_0x189008[_0x363b('0x60')](new _0x59fbf0('$text',{'vid':null===_0x285ddf?this[_0x363b('0x4d')]++:_0x285ddf++}));if(_0x549370['is'](_0x363b('0xfc'))){const _0x54830d=G(_0x549370[_0x363b('0x90')]);return _0x54830d[_0x363b('0xb9')](0x0,_0x189008),_0x54830d;}return _0x1fe517[_0x363b('0xcd')]('vid_end',null===_0x285ddf?this['_revisionId']++:_0x285ddf++),_0x1fe517[_0x363b('0xb9')](0x0,_0x189008),_0x1fe517;}[_0x363b('0x99')](_0xe9f7fb,_0xca3223,_0x4f0d20){this[_0x363b('0x38')]();const {roots:_0x4cd2cc,markers:_0x38922e,rootsAttributes:_0x59eb8d}=this[_0x363b('0x102')][_0x363b('0x6d')](_0xe9f7fb);this['_baseRoots']=new Map(_0x4cd2cc),this[_0x363b('0xb0')]=new Map(_0x451b46(_0x59eb8d));for(const [_0x3ec1d9,_0x52d013]of this[_0x363b('0xdf')])if(_0x363b('0xe9')!==_0x3ec1d9&&(this[_0x363b('0x80')][_0x363b('0xdd')](_0x3ec1d9,q(_0x52d013)),this[_0x363b('0x2c')]=new Map(_0x451b46(_0x59eb8d)),_0x4f0d20)){const _0x23167e=this[_0x363b('0x4d')];this[_0x363b('0x9d')]['set'](_0x3ec1d9,this[_0x363b('0xcc')](_0x52d013)),this[_0x363b('0xa')][_0x363b('0xdd')](_0x3ec1d9,this[_0x363b('0xcc')](_0x52d013,_0x23167e));}this['_startingRevisionId']=this['_revisionId'],this[_0x363b('0x80')]['set'](_0x363b('0xe9'),q(this[_0x363b('0xdf')][_0x363b('0x6d')](_0x363b('0xe9')))),_0x4f0d20&&this[_0x363b('0x9d')]['set'](_0x363b('0xe9'),this[_0x363b('0xcc')](this[_0x363b('0xdf')][_0x363b('0x6d')](_0x363b('0xe9'))));for(const [_0x392fcb,_0x21a41e]of _0x38922e){const _0x24557f=this[_0x363b('0xdf')][_0x363b('0x6d')](_0x21a41e['rootName']),_0x135c95=this[_0x363b('0x80')]['get'](_0x21a41e[_0x363b('0x90')]),_0x718606=new _0x198628(this[_0x363b('0xd5')](_0x21a41e[_0x363b('0x5e')],_0x24557f),this[_0x363b('0xd5')](_0x21a41e['end'],_0x24557f)),_0x51142a=this['_fixRange'](_0x718606,_0x135c95);_0x24557f[_0x363b('0x89')][_0x363b('0xdd')](_0x392fcb,_0x718606),this[_0x363b('0xc9')][_0x363b('0xdd')](_0x392fcb,_0x51142a);}this['_applyOperations'](_0xe9f7fb,_0xca3223,_0x4f0d20);}[_0x363b('0xb6')](_0x426af6,_0x252974,_0x197395){for(const _0x4bde3b of this[_0x363b('0x2a')]['getOperations'](_0x426af6,_0x252974))this[_0x363b('0x46')](_0x4bde3b,_0x197395);for(const _0x130093 of this[_0x363b('0x80')]['values']())_0x130093[_0x363b('0x89')]['clear']();for(const [_0x20b9a2,_0x3b8dc0]of this[_0x363b('0xc9')]){this[_0x363b('0x80')]['get'](_0x3b8dc0['root'][_0x363b('0x90')])[_0x363b('0x89')][_0x363b('0xdd')](_0x20b9a2,_0x3b8dc0[_0x363b('0x2e')]());}const _0x4dcded=new Map(),_0x231da3=new Map();for(const [_0x57c88b,_0x385f97]of this['_diffRoots'])_0x4dcded['set'](_0x57c88b,q(_0x385f97)),_0x231da3[_0x363b('0xdd')](_0x57c88b,this[_0x363b('0x2c')][_0x363b('0x6d')](_0x57c88b));this[_0x363b('0xee')](_0x252974,_0x4dcded,this[_0x363b('0xc9')],_0x231da3);}['_getPreviousFrom'](_0x544c8d){const _0x1b375f=Array[_0x363b('0x59')](this[_0x363b('0x102')]['keys']());_0x1b375f[_0x363b('0x5c')]((_0x4d2bd3,_0x181dba)=>_0x4d2bd3-_0x181dba),_0x1b375f[_0x363b('0xd0')]();for(const _0x40450a of _0x1b375f)if(_0x40450a<_0x544c8d)return _0x40450a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x43b563,_0x2286f6){const _0x520e53=Array['from'](_0x2286f6[_0x363b('0x89')])['map'](([_0x591eaf,_0x75999e])=>[_0x591eaf,this[_0x363b('0xd1')](_0x75999e,_0x43b563)]);_0x43b563[_0x363b('0x89')]=new Map(_0x520e53);}[_0x363b('0xe4')](_0x5189f8){for(const _0x1132bb of this['_markers']['values']()){const _0x594f92=_0x1132bb[_0x363b('0x21')](_0x5189f8),_0x1d1e36=_0x198628[_0x363b('0xb8')](_0x594f92);_0x1132bb['start']=_0x1d1e36[_0x363b('0x5e')],_0x1132bb[_0x363b('0x54')]=_0x1d1e36[_0x363b('0x54')];}}[_0x363b('0x46')](_0x193567,_0x3a0dc8){if(_0x363b('0x52')==_0x193567[_0x363b('0xb7')]||_0x363b('0xc7')==_0x193567[_0x363b('0xb7')])return void this[_0x363b('0x26')](_0x193567,_0x3a0dc8);if(_0x363b('0x41')==_0x193567[_0x363b('0xb7')]){const _0x197f06=_0x193567[_0x363b('0x83')]['root']['rootName'];this[_0x363b('0x80')][_0x363b('0x9b')](_0x197f06)||(this[_0x363b('0x80')][_0x363b('0xdd')](_0x197f06,G(_0x197f06,!0x0)),this['_diffRootsAttributes'][_0x363b('0xdd')](_0x197f06,{}),_0x3a0dc8&&this[_0x363b('0x9d')]['set'](_0x197f06,G(_0x197f06,!0x0)));}if('addRootAttribute'==_0x193567['type']||'removeRootAttribute'==_0x193567[_0x363b('0xb7')]||_0x363b('0xa0')==_0x193567[_0x363b('0xb7')])return void this['_handleRootAttributeOperation'](_0x193567);const _0x53507c=this['_cloneOperation'](_0x193567,this[_0x363b('0x80')]);if('marker'!==_0x193567['type']&&(_0x53507c[_0x363b('0xca')](),this[_0x363b('0xe4')](_0x53507c)),_0x3a0dc8)switch(_0x53507c['type']){case _0x363b('0x41'):this['_handleInsertOperation'](_0x193567);break;case'move':case _0x363b('0xdb'):case _0x363b('0x72'):this[_0x363b('0x106')](_0x193567);break;case'merge':this[_0x363b('0x8d')](_0x193567);break;case _0x363b('0xb'):this[_0x363b('0xd2')](_0x193567);break;case _0x363b('0xeb'):this[_0x363b('0x50')](_0x193567);}}[_0x363b('0x57')](_0x35dd29,_0x2e4e00){const _0x294923=_0x35dd29[_0x363b('0x2e')]();return _0x294923[_0x363b('0xd3')]=_0x35dd29[_0x363b('0xd3')],this[_0x363b('0x73')](_0x294923,_0x2e4e00),_0x294923;}['_getBaseVids'](_0x2d719b){return _0x2d719b['map'](_0xb78b81=>{const _0x90b647=this['_getVidAttributeName'](_0xb78b81);return Number(_0xb78b81[_0x363b('0x1e')][_0x363b('0xf9')](_0x90b647));});}[_0x363b('0xe6')](_0x8a4e31,_0x4b235c){if(_0x8a4e31['is'](_0x363b('0x6'),'$text'))_0x4b235c['push']({'item':_0x8a4e31,'type':_0x363b('0x35')});else{_0x8a4e31['is'](_0x363b('0x6'))&&_0x4b235c[_0x363b('0x60')]({'item':_0x8a4e31,'type':_0x363b('0x95')});for(const _0x1bf903 of _0x8a4e31[_0x363b('0x1b')]())this[_0x363b('0xe6')](_0x1bf903,_0x4b235c);_0x8a4e31['is'](_0x363b('0x6'))&&_0x4b235c[_0x363b('0x60')]({'item':_0x8a4e31,'type':_0x363b('0x47')});}return _0x4b235c;}[_0x363b('0x6b')](){const _0x49bb7e=new Map(this['_touched']),_0x173e24=new Map(_0x49bb7e),_0x251240=new Map(),_0x42c530={'insertions':{},'deletions':{}},_0xdb8b22={'insertions':{},'deletions':{}},_0xc74623=new Map(),_0x5b6ba4=new Set([...this['_baseRoots'][_0x363b('0xf2')](),...this[_0x363b('0x80')][_0x363b('0xf2')]()]);_0x5b6ba4[_0x363b('0x69')](_0x363b('0xe9'));for(const _0x21ed84 of _0x5b6ba4){const _0x223805=this['_diffRoots'][_0x363b('0x6d')](_0x21ed84)||G(_0x21ed84,!0x1),_0x20d824=this[_0x363b('0xdf')][_0x363b('0x6d')](_0x21ed84)||G(_0x21ed84,!0x1);_0x223805[_0x363b('0xc5')]()||_0x20d824['isAttached']()?(_0x42c530[_0x363b('0x32')][_0x21ed84]=q(_0x223805),_0x42c530['deletions'][_0x21ed84]=q(_0x20d824),this[_0x363b('0x4e')](_0x42c530[_0x363b('0x61')][_0x21ed84],_0x20d824),this[_0x363b('0x4e')](_0x42c530[_0x363b('0x32')][_0x21ed84],_0x223805),_0xdb8b22[_0x363b('0x32')][_0x21ed84]=this[_0x363b('0xe6')](this[_0x363b('0x9d')]['get'](_0x21ed84),[]),_0xdb8b22['deletions'][_0x21ed84]=this['_generateTape'](this[_0x363b('0xa')][_0x363b('0x6d')](_0x21ed84)||G(_0x21ed84,!0x1),[])):_0x5b6ba4['delete'](_0x21ed84);}for(const _0x55aea4 of _0x5b6ba4){const _0x3daea2=_0xdb8b22[_0x363b('0x32')][_0x55aea4];for(const _0x2e1fc9 of _0x3daea2){const _0x142b39=this[_0x363b('0xc4')](_0x2e1fc9),_0x4a3f79=_0x2e1fc9['item'][_0x363b('0xf9')](_0x142b39);_0x173e24[_0x363b('0x69')](_0x4a3f79),_0x4a3f79>=this[_0x363b('0xde')]&&_0x251240[_0x363b('0xdd')](_0x4a3f79,_0x49bb7e[_0x363b('0x6d')](_0x4a3f79));}}for(const _0x17774c of _0x5b6ba4){const _0x2bb935=_0xdb8b22['insertions'][_0x17774c],_0x130556=this[_0x363b('0xac')](_0xdb8b22['deletions'][_0x17774c]);let _0x3aefb6=0x0;for(const _0x1a9810 of _0x2bb935){const _0x3e1a36=this[_0x363b('0xc4')](_0x1a9810),_0x4e73dd=_0x1a9810[_0x363b('0x1e')][_0x363b('0xf9')](_0x3e1a36);if(!_0x251240[_0x363b('0x9b')](_0x4e73dd)&&!_0xc74623['has'](_0x4e73dd)){if(_0x173e24[_0x363b('0x9b')](_0x4e73dd))_0x3aefb6++;else{if(_0x4e73dd!=_0x130556[_0x3aefb6]){const _0x1ff187=_0x49bb7e['get'](_0x4e73dd)||_0x49bb7e['get'](_0x130556[_0x3aefb6]);for(;_0x4e73dd!=_0x130556[_0x3aefb6];)_0x173e24[_0x363b('0x9b')](_0x130556[_0x3aefb6])||(_0xc74623[_0x363b('0xdd')](_0x130556[_0x3aefb6],_0x1ff187),_0x49bb7e['set'](_0x130556[_0x3aefb6],_0x1ff187)),_0x3aefb6++;}_0x3aefb6++;}}}}for(const _0x3fedd0 of _0x5b6ba4){const _0x18eba7=_0xdb8b22[_0x363b('0x32')][_0x3fedd0];for(const _0x517365 of _0x18eba7){const _0x4205cb=this['_getVidAttributeName'](_0x517365),_0x29fb00=_0x517365[_0x363b('0x1e')][_0x363b('0xf9')](_0x4205cb);if(_0xc74623[_0x363b('0x9b')](_0x29fb00)){const _0xb634da=_0xc74623['get'](_0x29fb00);_0x173e24[_0x363b('0x9b')](_0x29fb00)||_0x173e24[_0x363b('0xdd')](_0x29fb00,{..._0xb634da}),_0x251240[_0x363b('0xdd')](_0x29fb00,{..._0xb634da});}}}for(const _0x34b469 of _0x173e24[_0x363b('0xf2')]())_0x34b469>=this[_0x363b('0xde')]&&_0x173e24[_0x363b('0x69')](_0x34b469);const _0x1e9391=new Map();for(const _0x1c34d3 of _0x5b6ba4){let _0xf63f93=_0xdb8b22['insertions'][_0x1c34d3];for(const _0x3fa15e of _0xf63f93)if(_0x3fa15e[_0x363b('0x1e')]['is']('element',_0x363b('0xda'))){const _0x1b43d5=this['_getVidAttributeName'](_0x3fa15e),_0x4543fb=_0x3fa15e[_0x363b('0x1e')][_0x363b('0xf9')](_0x1b43d5);if(_0x251240[_0x363b('0x9b')](_0x4543fb)){const _0x152094=_0x3fa15e[_0x363b('0x1e')]['parent']['parent'][_0x363b('0xf9')](_0x363b('0xc')),_0x49d423=_0x1e9391[_0x363b('0x6d')](_0x152094)||new Set();_0x49d423['add'](_0x251240['get'](_0x4543fb)[_0x363b('0x4a')]),_0x1e9391[_0x363b('0xdd')](_0x152094,_0x49d423);}}_0xf63f93=_0xdb8b22['deletions'][_0x1c34d3];for(const _0xaaccca of _0xf63f93)if(_0xaaccca[_0x363b('0x1e')]['is']('element',_0x363b('0xda'))){const _0x4d6508=this[_0x363b('0xc4')](_0xaaccca),_0x3c98f0=_0xaaccca[_0x363b('0x1e')][_0x363b('0xf9')](_0x4d6508);if(_0x173e24[_0x363b('0x9b')](_0x3c98f0)){const _0xb845e=_0xaaccca[_0x363b('0x1e')][_0x363b('0xdc')][_0x363b('0xdc')][_0x363b('0xf9')]('vid_start'),_0x1d24d6=_0x1e9391[_0x363b('0x6d')](_0xb845e)||new Set();_0x1d24d6[_0x363b('0x3c')](_0x173e24['get'](_0x3c98f0)[_0x363b('0x4a')]),_0x1e9391[_0x363b('0xdd')](_0xb845e,_0x1d24d6);}}for(const _0xb091a4 of _0x1e9391['keys']())(_0x251240[_0x363b('0x9b')](_0xb091a4)||_0x173e24[_0x363b('0x9b')](_0xb091a4))&&_0x1e9391[_0x363b('0x69')](_0xb091a4);}for(const _0x91ace5 of _0x5b6ba4){const _0x5adf98=_0xdb8b22[_0x363b('0x32')][_0x91ace5];let _0xece703=null,_0x52e6a3=null;for(const _0x140a2c of _0x5adf98){const _0x1109ac=this[_0x363b('0xc4')](_0x140a2c),_0x43588e=_0x140a2c['item']['getAttribute'](_0x1109ac),_0x47318c=_0x1e9391['get'](_0x43588e);_0x47318c&&'elementStart'==_0x140a2c[_0x363b('0xb7')]&&(_0xece703=Array[_0x363b('0x59')](_0x47318c)[0x0],_0x52e6a3=_0x140a2c[_0x363b('0x1e')][_0x363b('0xf9')](_0x363b('0x79'))),_0xece703&&(_0x173e24['set'](_0x43588e,{'userId':_0xece703}),_0x251240[_0x363b('0xdd')](_0x43588e,{'userId':_0xece703})),_0x43588e==_0x52e6a3&&(_0xece703=null,_0x52e6a3=null);}}const _0x31148a={},_0x3c212f=new Set();for(const _0x290b7c of _0x5b6ba4){const _0x3c5f48=_0x42c530[_0x363b('0x61')][_0x290b7c],_0x9c777a=_0x42c530[_0x363b('0x32')][_0x290b7c];for(const {userId:_0x2a08df}of this[_0x363b('0x8b')][_0x363b('0x84')]())null!==_0x2a08df&&_0x3c212f[_0x363b('0x3c')](_0x2a08df);for(const {userId:_0xf4c5bc}of this['_touchedRoots']['values']())null!==_0xf4c5bc&&_0x3c212f['add'](_0xf4c5bc);this[_0x363b('0x65')](_0x9c777a,_0xdb8b22[_0x363b('0x32')][_0x290b7c],_0x251240,_0x363b('0x7c'),_0x3c212f),this[_0x363b('0x65')](_0x3c5f48,_0xdb8b22[_0x363b('0x61')][_0x290b7c],_0x173e24,'deletion',_0x3c212f),_0x31148a[_0x290b7c]={'insertions':this[_0x363b('0xaf')](_0x9c777a),'deletions':this[_0x363b('0xaf')](_0x3c5f48),'attachChange':this['_touchedRoots'][_0x363b('0x6d')](_0x290b7c)||null,'attributesBefore':_0x451b46(this[_0x363b('0xb0')][_0x363b('0x6d')](_0x290b7c))||{},'attributesAfter':_0x451b46(this[_0x363b('0x2c')][_0x363b('0x6d')](_0x290b7c))};}return{'diffData':_0x31148a,'authorsIds':Array['from'](_0x3c212f)};}[_0x363b('0x4b')](_0x2fb063){for(const [,_0x432903]of _0x2fb063[_0x363b('0x89')]){const _0x8277fd=_0x432903[_0x363b('0x5e')]['getAncestors']()['filter'](_0x49d5b8=>_0x363b('0xda')==_0x49d5b8[_0x363b('0xa5')]);for(const _0x2706ef of _0x8277fd)0x1==_0x2706ef[_0x363b('0x1')]&&_0x2706ef[_0x363b('0x6c')](0x0)['is'](_0x363b('0x6'),_0x363b('0x62'))&&_0x2706ef['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}[_0x363b('0xaf')](_0x1d1496){this[_0x363b('0x4b')](_0x1d1496);const _0x179ff3=this[_0x363b('0x2b')][_0x363b('0x3e')][_0x363b('0x101')](_0x1d1496,{}),_0x1f23a5=Array[_0x363b('0x59')](_0x179ff3[_0x363b('0x1b')]())[_0x363b('0x23')](_0x48df33=>this[_0x363b('0x8c')](_0x48df33));return JSON['stringify'](_0x1f23a5);}[_0x363b('0x8c')](_0x3a1821){if(_0x3a1821['is']('$text'))return _0x3a1821[_0x363b('0x3e')];{const _0x17b376=_0x3a1821;return{'type':Object[_0x363b('0xf2')](B)['find'](_0x40d83a=>_0x3a1821 instanceof B[_0x40d83a]),'name':_0x17b376[_0x363b('0xa5')],'attributes':Array['from'](_0x17b376['getAttributes']()),'children':Array[_0x363b('0x59')](_0x17b376[_0x363b('0x1b')]())[_0x363b('0x23')](_0x3aa0ff=>this[_0x363b('0x8c')](_0x3aa0ff))};}}['_markChanges'](_0x3b1b20,_0x472350,_0x206e09,_0x468ed6,_0x578779){let _0x4e82e3=null,_0x202a1a=null,_0x1e2479=0x0;const _0x572db1=this[_0x363b('0x2b')][_0x363b('0x5')];for(let _0x2da177=0x0;_0x2da177<_0x472350['length'];_0x2da177++){const _0xce135e=this[_0x363b('0xc4')](_0x472350[_0x2da177]),_0x36cc57=_0x472350[_0x2da177]['item'][_0x363b('0xf9')](_0xce135e),_0x2bb7da=_0x206e09['get'](_0x36cc57),_0xdbc664=_0x2da177==_0x472350[_0x363b('0x75')]-0x1;(!_0x4e82e3&&_0x2bb7da&&(_0x4e82e3=_0x2bb7da,_0x202a1a=_0x472350[_0x2da177]),_0x4e82e3&&(!_0x2bb7da||_0x2bb7da['userId']!=_0x4e82e3[_0x363b('0x4a')]))&&(_0x16db87(_0x2bb7da,L(_0x202a1a,_0x3b1b20,_0x572db1),L(_0x472350[_0x2da177],_0x3b1b20,_0x572db1)),_0x4e82e3=_0x2bb7da||null,_0x202a1a=_0x2bb7da?_0x472350[_0x2da177]:null),_0x4e82e3&&_0xdbc664&&_0x16db87(_0x2bb7da,L(_0x202a1a,_0x3b1b20,_0x572db1),W(_0x472350[_0x2da177],_0x3b1b20,_0x572db1));}function _0x16db87(_0x1660f0,_0x28a79f,_0x3553b9){const _0x39da6c=_0x4e82e3[_0x363b('0x4a')],_0x3a293b=_0x363b('0x78')+_0x468ed6+':'+_0x39da6c+':'+_0x1e2479++,_0x353f22=_0x572db1[_0x363b('0x29')](_0x28a79f,_0x3553b9);_0x3b1b20[_0x363b('0x89')][_0x363b('0xdd')](_0x3a293b,_0x353f22),null!==_0x39da6c&&_0x578779[_0x363b('0x3c')](_0x39da6c);}}['_getVidAttributeName'](_0x30cfe4){switch(_0x30cfe4[_0x363b('0xb7')]){case _0x363b('0x95'):return _0x363b('0xc');case _0x363b('0x47'):return _0x363b('0x79');default:return'vid';}}[_0x363b('0x73')](_0x33e1dd,_0x344010){_0x33e1dd['baseVersion']=null;for(const _0x53bec9 in _0x33e1dd){const _0x59ef90=_0x33e1dd[_0x53bec9];if(_0x59ef90 instanceof _0x2d407b){const _0xbc401b=_0x344010[_0x363b('0x6d')](_0x59ef90[_0x363b('0xba')][_0x363b('0x90')]);_0x33e1dd[_0x53bec9]=this[_0x363b('0xd5')](_0x59ef90,_0xbc401b);}if(_0x59ef90 instanceof _0x198628){const _0x1a2c51=_0x344010['get'](_0x59ef90[_0x363b('0xba')][_0x363b('0x90')]);_0x33e1dd[_0x53bec9]=this['_fixRange'](_0x59ef90,_0x1a2c51);}'root'===_0x53bec9&&(_0x33e1dd['root']=_0x344010['get'](_0x33e1dd[_0x363b('0xba')]['rootName']));}}[_0x363b('0xd1')](_0x33d208,_0x3f6f64){return this['editor'][_0x363b('0x5')][_0x363b('0x29')](this[_0x363b('0xd5')](_0x33d208['start'],_0x3f6f64),this[_0x363b('0xd5')](_0x33d208['end'],_0x3f6f64));}[_0x363b('0xd5')](_0x5bd427,_0x3201d9){return this['editor'][_0x363b('0x5')][_0x363b('0x4')](_0x3201d9,_0x5bd427[_0x363b('0xc0')],_0x5bd427['stickiness']);}[_0x363b('0xe1')](_0x4241b6){const _0x2819f7=this[_0x363b('0x9d')][_0x363b('0x6d')](_0x4241b6[_0x363b('0x83')][_0x363b('0xba')][_0x363b('0x90')]),_0x7118b8=this[_0x363b('0xd5')](_0x4241b6[_0x363b('0x83')],_0x2819f7),_0x3e3d30=null===_0x4241b6[_0x363b('0xd3')]?null:_0x4241b6[_0x363b('0xd3')]||this[_0x363b('0x2b')][_0x363b('0x0')][_0x363b('0x6d')](_0x363b('0xfe'))['me']['id'],_0x2cf664=_0x7118b8['parent'],_0x5ec0b9=this[_0x363b('0x4d')],_0x446e82=[];for(const _0x22ed70 of _0x4241b6[_0x363b('0x64')])if(_0x22ed70['is'](_0x363b('0x6')))_0x446e82[_0x363b('0x60')](this[_0x363b('0xcc')](_0x22ed70));else for(let _0x158981=0x0;_0x158981<_0x22ed70[_0x363b('0x53')];_0x158981++)_0x446e82['push'](new _0x59fbf0('$text',{'vid':this[_0x363b('0x4d')]++}));const _0x583f8c=this[_0x363b('0x4d')];for(let _0x243a54=_0x5ec0b9;_0x243a54<_0x583f8c;_0x243a54++)this[_0x363b('0x15')][_0x363b('0xdd')](_0x243a54,{'userId':_0x3e3d30});_0x2cf664[_0x363b('0xb9')](_0x7118b8[_0x363b('0x67')],_0x446e82);}['_handleMoveOperation'](_0x4e924a){(_0x4e924a=this[_0x363b('0x57')](_0x4e924a,this[_0x363b('0x9d')]))[_0x363b('0xca')]();const _0xfbcb44=null===_0x4e924a['_authorId']?null:_0x4e924a[_0x363b('0xd3')]||this[_0x363b('0x2b')][_0x363b('0x0')]['get'](_0x363b('0xfe'))['me']['id'],_0x344189=_0x4e924a[_0x363b('0x1f')](),_0x1e52d3=_0x344189[_0x363b('0xdc')],_0x252987=_0x344189[_0x363b('0x67')];!function _0x277850(_0x28fa09,_0x3fb93f,_0x91f72e,_0x187153){for(let _0x54609c=_0x91f72e;_0x54609c<_0x187153;_0x54609c++){const _0x45803e=_0x3fb93f[_0x363b('0x6c')](_0x54609c);_0x45803e['is'](_0x363b('0x6'),_0x363b('0xd8'))?_0x28fa09[_0x363b('0xdd')](_0x45803e['getAttribute'](_0x363b('0x92')),{'userId':_0xfbcb44}):(_0x28fa09[_0x363b('0xdd')](_0x45803e[_0x363b('0xf9')](_0x363b('0xc')),{'userId':_0xfbcb44}),_0x277850(_0x28fa09,_0x45803e,0x0,_0x45803e['childCount']),_0x28fa09[_0x363b('0xdd')](_0x45803e[_0x363b('0xf9')](_0x363b('0x79')),{'userId':_0xfbcb44}));}}(this[_0x363b('0x15')],_0x1e52d3,_0x252987,_0x252987+_0x4e924a[_0x363b('0x5b')]);}['_handleMergeOperation'](_0x213730){const _0x253a0b=null===(_0x213730=this[_0x363b('0x57')](_0x213730,this[_0x363b('0x9d')]))[_0x363b('0xd3')]?null:_0x213730[_0x363b('0xd3')]||this[_0x363b('0x2b')][_0x363b('0x0')]['get'](_0x363b('0xfe'))['me']['id'],_0x517cbc=_0x213730[_0x363b('0xd7')][_0x363b('0xdc')],_0x23d8af=_0x213730['sourcePosition'][_0x363b('0xdc')],_0xf08799=_0x517cbc['getAttribute'](_0x363b('0x79')),_0x391d0e=_0x23d8af[_0x363b('0xf9')](_0x363b('0xc'));_0x517cbc[_0x363b('0xcd')](_0x363b('0x79'),_0x23d8af[_0x363b('0xf9')](_0x363b('0x79'))),_0x23d8af['_setAttribute'](_0x363b('0x79'),_0xf08799),this[_0x363b('0x15')]['set'](_0x391d0e,{'userId':_0x253a0b}),this[_0x363b('0x15')][_0x363b('0xdd')](_0xf08799,{'userId':_0x253a0b}),_0x213730[_0x363b('0xca')]();}['_handleSplitOperation'](_0x1c8651){const _0x561eee=null===(_0x1c8651=this['_cloneOperation'](_0x1c8651,this[_0x363b('0x9d')]))['_authorId']?null:_0x1c8651[_0x363b('0xd3')]||this[_0x363b('0x2b')]['plugins'][_0x363b('0x6d')](_0x363b('0xfe'))['me']['id'],_0x591edd=_0x1c8651['graveyardPosition'],_0x4ff1d7=_0x1c8651['splitPosition'][_0x363b('0xdc')];_0x1c8651[_0x363b('0xca')]();const _0x125578=_0x4ff1d7['getAttribute'](_0x363b('0x79')),_0x9d2b83=_0x1c8651[_0x363b('0x4f')][_0x363b('0x2')];if(_0x591edd){const _0x560533=_0x9d2b83[_0x363b('0xf9')](_0x363b('0x79')),_0x619c06=_0x4ff1d7[_0x363b('0xf9')]('vid_end');_0x4ff1d7['_setAttribute']('vid_end',_0x560533),_0x9d2b83[_0x363b('0xcd')](_0x363b('0x79'),_0x619c06),this[_0x363b('0x15')][_0x363b('0xdd')](_0x4ff1d7[_0x363b('0xf9')](_0x363b('0x79')),{'userId':_0x561eee}),this[_0x363b('0x15')][_0x363b('0xdd')](_0x9d2b83[_0x363b('0xf9')](_0x363b('0xc')),{'userId':_0x561eee});}else{const _0x330550=this[_0x363b('0x4d')]++,_0x5c929c=this[_0x363b('0x4d')]++;_0x4ff1d7['_setAttribute'](_0x363b('0x79'),_0x330550),_0x9d2b83[_0x363b('0xcd')](_0x363b('0xc'),_0x5c929c),_0x9d2b83[_0x363b('0xcd')](_0x363b('0x79'),_0x125578),this[_0x363b('0x15')]['set'](_0x330550,{'userId':_0x561eee}),this['_touched']['set'](_0x5c929c,{'userId':_0x561eee});}}['_handleMarkerOperation'](_0x23e52d){if(!_0x23e52d[_0x363b('0x96')])return;const _0x33c719=(_0x23e52d=this[_0x363b('0x57')](_0x23e52d,this[_0x363b('0x80')]))[_0x363b('0xc2')]?_0x23e52d[_0x363b('0xc2')][_0x363b('0xba')]:null,_0x25504c=_0x23e52d[_0x363b('0x7')]?_0x23e52d['newRange'][_0x363b('0xba')]:null;_0x33c719&&this[_0x363b('0xc9')][_0x363b('0x69')](_0x23e52d[_0x363b('0xa5')]),_0x25504c&&this[_0x363b('0xc9')]['set'](_0x23e52d[_0x363b('0xa5')],_0x23e52d[_0x363b('0x7')][_0x363b('0x2e')]());const _0x49e241=null===_0x23e52d['_authorId']?null:_0x23e52d['_authorId']||this['editor'][_0x363b('0x0')]['get'](_0x363b('0xfe'))['me']['id'],_0x490fc3=_0x23e52d[_0x363b('0xa5')];if(!this[_0x363b('0x8b')][_0x363b('0x9b')](_0x490fc3))return void this[_0x363b('0x8b')][_0x363b('0xdd')](_0x490fc3,{'range':_0x23e52d[_0x363b('0xc2')],'userId':_0x49e241});const _0x1eb250=this[_0x363b('0x8b')][_0x363b('0x6d')](_0x490fc3),_0x3759fd=_0x1eb250[_0x363b('0xf6')],_0xa801cf=_0x23e52d[_0x363b('0x7')];null==_0x3759fd&&null==_0xa801cf||_0x3759fd&&_0xa801cf&&_0x3759fd[_0x363b('0x7f')](_0xa801cf)?this[_0x363b('0x8b')]['delete'](_0x23e52d[_0x363b('0xa5')]):_0x1eb250[_0x363b('0x4a')]=_0x49e241;}['_handleRootOperation'](_0x4bf38e,_0x14c746){this[_0x363b('0x80')][_0x363b('0x9b')](_0x4bf38e['rootName'])?this[_0x363b('0x80')][_0x363b('0x6d')](_0x4bf38e[_0x363b('0x90')])[_0x363b('0x91')]=_0x4bf38e[_0x363b('0x3d')]:(this[_0x363b('0x80')][_0x363b('0xdd')](_0x4bf38e['rootName'],G(_0x4bf38e[_0x363b('0x90')],!0x0)),this['_diffRootsAttributes']['set'](_0x4bf38e[_0x363b('0x90')],{}),_0x14c746&&this[_0x363b('0x9d')][_0x363b('0xdd')](_0x4bf38e['rootName'],G(_0x4bf38e[_0x363b('0x90')],!0x0)));const _0x1d8acc=null===_0x4bf38e[_0x363b('0xd3')]?null:_0x4bf38e['_authorId']||this[_0x363b('0x2b')][_0x363b('0x0')]['get']('Users')['me']['id'],_0x232f86=this[_0x363b('0xc3')][_0x363b('0x6d')](_0x4bf38e['rootName']);_0x232f86&&_0x232f86[_0x363b('0x4a')]===_0x1d8acc?this[_0x363b('0xc3')][_0x363b('0x69')](_0x4bf38e['rootName']):this['_touchedRoots'][_0x363b('0xdd')](_0x4bf38e[_0x363b('0x90')],{'userId':_0x1d8acc,'isAttached':_0x4bf38e[_0x363b('0x3d')]});}['_handleRootAttributeOperation'](_0x3ab92e){const _0xe0a5e7=this[_0x363b('0x2c')][_0x363b('0x6d')](_0x3ab92e[_0x363b('0xba')][_0x363b('0x90')]);null===_0x3ab92e[_0x363b('0x8f')]?delete _0xe0a5e7[_0x3ab92e[_0x363b('0x100')]]:_0xe0a5e7[_0x3ab92e[_0x363b('0x100')]]=_0x3ab92e[_0x363b('0x8f')];}}function q(_0x19921f){const _0x1d6c0a=G(_0x19921f[_0x363b('0x90')],_0x19921f[_0x363b('0xc5')]());for(const _0x27249f of _0x19921f[_0x363b('0x1b')]()){const _0xab27=_0x27249f[_0x363b('0xb3')](!0x0);_0x1d6c0a[_0x363b('0xea')](_0xab27);}return _0x1d6c0a;}function G(_0x3a97dd,_0x1727f6=!0x0){const _0x4fbf7e=new _0x1e2b71();return _0x4fbf7e[_0x363b('0x90')]=_0x3a97dd,_0x4fbf7e[_0x363b('0x91')]=_0x1727f6,_0x4fbf7e[_0x363b('0xc5')]=()=>_0x4fbf7e[_0x363b('0x91')],_0x4fbf7e;}function L(_0xfceaf2,_0x3c1d6f,_0x17a69c){const _0xa1b3fd=_0x363b('0x47')==_0xfceaf2[_0x363b('0xb7')]?_0x17a69c[_0x363b('0x86')](_0xfceaf2[_0x363b('0x1e')],_0x363b('0x54')):_0x17a69c['createPositionBefore'](_0xfceaf2['item']);return _0x17a69c[_0x363b('0x4')](_0x3c1d6f,_0xa1b3fd[_0x363b('0xc0')],_0xa1b3fd[_0x363b('0x8')]);}function W(_0x1427e7,_0x1213ae,_0x436033){const _0x2f40e3=_0x363b('0x95')==_0x1427e7[_0x363b('0xb7')]?_0x436033[_0x363b('0x86')](_0x1427e7[_0x363b('0x1e')],0x0):_0x436033[_0x363b('0x70')](_0x1427e7[_0x363b('0x1e')]);return _0x436033[_0x363b('0x4')](_0x1213ae,_0x2f40e3['path'],_0x2f40e3['stickiness']);}
|