@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231206.0 → 0.0.0-nightly-20231208.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/README.md +10 -10
- 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 _0x1526=['_transformMarkers','_baseRoots','_bufferedUpdates','includes','addRootAttribute','PENDING_ACTION_REVISION_HISTORY','getData','collaboration.channelId','fromVersion','PendingActions','getOperations','sendBufferedUpdates','bind','filter','sort','text','_baseRootsAttributes','length','authors','key','getMovedRangeStart','split','set','get','toView','from','move','ready','processor','rootsAttributes','_revisionId','Users','baseVersion','_cloneOperation','reverse','isAdd','rootName','howMany','createRangeIn','_handleRootAttributeOperation','userId','toModel','_loadedStateData','revision:','_update','nodes','parent','_saveMetaData','editing','slice','map','init','_continueCurrentRevision','editor-initial-data-replaced-with-revision-data','_getState','loadState','max','find','NEGATIVE_INFINITY','position','clone','getRevisions','insertions','has','_removePendingAction','merge','setSource','getNodeByPath','getWalker','_diffRootsAttributes','children','_clone','_createCurrentRevision','creator','buildRevisionData','_handleSplitOperation','adapter','revision','attributesAfter','_handleMarkerOperation','oldRange','data-revision-','insert','name','_removeMetaData','parse','_handleRootOperation','remove','_savedMetaData','type','_copyMarkers','_setConversion','view','getRevision','_baseIdsRoots','size','_replaceEditorDataWithRevisionData','_execute','_handleInsertOperation','getAncestors','stickiness','conversion','_getBaseVids','attachChange','paragraph','getAttributes','_fixRange','getCurrentRevisionId','initialData','_getViewJson','update','_removeRevisionMarkers','getRevisionDocumentData','createRange','detachRoot','childCount','history','_isPendingUpdate','_insertChild','_idsRoots','_reset','previousPosition','startsWith','authorsIds','getRevisionRootsAttributes','attributesBefore','roots','_loadState','_loadRevisionData','repository','add','forEach','saveRevision','isEqual','clear','document','offset','reInit','plugins','_isInit','_isAttached','start','_initialRevisionId','reinsert','locale','_pendingAction','_startingRevisionId','revisionHistory.resumeUnsavedRevision','offsetSize','tableCell','end','getRootNames','_touchedMarkers','some','_lastFrom','vid','_makeIdsRoot','insertion','elementEnd','_source','values','_makeModelFromViewString','sourcePosition','_generateTape','targetPosition','_handleMoveOperation','getAttribute','diffData','delete','model','keys','config','RevisionTracker','initial','_calculateMetaData','_diffRoots','source','markers','getLatestVersion','_operations','getChild','_startingVersion','_processRootBeforeSave','data','toData','updateRevisions','documentFragment','toVersion','element','_bufferUpdate','_setAttribute','vid_end','_createInitialRevision','createPositionFromPath','editor','_lastTo','_revisionDataBuilder','currentRevision','dataToMarker','trim','$text','newValue','define','Empty\x20document','_markChanges','getOperation','for','getRange','version','_handleMergeOperation','changeRootAttribute','_markers','_authorId','createPositionAt','root','_touchedRoots','vid_start','fromEntries','_fixPosition','_applyOperations','isAttached','creatorId','$graveyard','getRoot','useFillerType','getUser','createRevision','_touched','createPositionBefore','RealTimeCollaborationClient','attributes','finally','afterInit','_createFromRanges','default','addRevisionData','isEnabled','resolve','newRange','string','requires','_findInsertionIndex','push','setRevisionData','path','_prepareViewToSave','then','elementStart','isReady','_getVidAttributeName','getChildren','_addPendingAction','graveyardPosition','removeRootAttribute','keepParagraph','RevisionsRepository','item','deletions','affectsData','_makeRevision','deletion','pluginName','_handleOperation','createdAt','_fixOperation'];(function(_0x40dc14,_0x1526f2){const _0x4222fd=function(_0x44371b){while(--_0x44371b){_0x40dc14['push'](_0x40dc14['shift']());}};_0x4222fd(++_0x1526f2);}(_0x1526,0x174));const _0x4222=function(_0x40dc14,_0x1526f2){_0x40dc14=_0x40dc14-0x0;let _0x4222fd=_0x1526[_0x40dc14];return _0x4222fd;};import{Users as _0x2c92cf}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x496eca,PendingActions as _0xec4624}from'ckeditor5/src/core';import{logWarning as _0x991011,uid as _0x22981}from'ckeditor5/src/utils';import{Position as _0xc1abe3,Range as _0x3edc46,Element as _0x5b1cbc,DocumentFragment as _0x35956c,ViewText as _0x4a20b8,ViewElement as _0x4c6a6d,ViewContainerElement as _0x513885,ViewAttributeElement as _0x312eeb,ViewEmptyElement as _0x1cc3b4,ViewRawElement as _0x40e3ec,ViewUIElement as _0x50181b,ViewDocumentFragment as _0x117f7d}from'ckeditor5/src/engine';import _0x454f68 from'./revisionsrepository';import{getTranslation as _0x1c3fa5}from'./utils/common-translations';import{cloneDeep as _0x44d25a,isEqual as _0x11e894}from'lodash-es';const B={'c':_0x513885,'a':_0x312eeb,'e':_0x1cc3b4,'r':_0x40e3ec,'u':_0x50181b};export default class l extends _0x496eca{static get[_0x4222('0x9a')](){return _0x4222('0x41');}static get[_0x4222('0x85')](){return[_0x2c92cf,_0x454f68,_0xec4624];}constructor(_0x409f9a){super(_0x409f9a),this[_0x4222('0xea')]=null,this[_0x4222('0x5a')]=null,this[_0x4222('0x59')]=new H(this[_0x4222('0x57')]),this[_0x4222('0x23')]=this[_0x4222('0x57')][_0x4222('0x40')]['get'](_0x4222('0xa5'))||_0x4222('0x42'),this[_0x4222('0xa0')]=new Map(),this[_0x4222('0xc8')]=null;const _0x318640=_0x22981();this[_0x4222('0x34')]={'history':this[_0x4222('0x57')]['model'][_0x4222('0x1c')][_0x4222('0x9')],'getLatestVersion':()=>Promise[_0x4222('0x82')](this[_0x4222('0x57')]['model']['document'][_0x4222('0x65')]),'getCurrentRevisionId':()=>_0x318640},this['set'](_0x4222('0x8d'),!0x1),this['set'](_0x4222('0x81'),!0x0),this[_0x4222('0xb4')](_0x4222('0xa'),!0x1),this['editor'][_0x4222('0x40')][_0x4222('0x5f')](_0x4222('0x28'),!0x0),this['editor'][_0x4222('0x103')][_0x4222('0x63')]('upcast')[_0x4222('0x5b')]({'view':_0x4222('0xeb')});}[_0x4222('0xd1')](){this[_0x4222('0x16')]=this[_0x4222('0x57')][_0x4222('0x1f')][_0x4222('0xb5')](_0x4222('0x94')),this[_0x4222('0xf9')](),this[_0x4222('0x57')][_0x4222('0x4c')]['on'](_0x4222('0xb9'),()=>{const _0x395305=this['repository']['getRevision'](0x0),_0x3c9ed2=_0x395305&&null===_0x395305['creator']?_0x395305:null;if(this['_continueCurrentRevision']=!!_0x3c9ed2&&this[_0x4222('0x57')][_0x4222('0x40')][_0x4222('0xb5')](_0x4222('0x28')),this[_0x4222('0x57')]['plugins'][_0x4222('0xdd')](_0x4222('0x7a'))){const _0xd126f5=this[_0x4222('0x34')]['getCurrentRevisionId'](),_0x472b49=this[_0x4222('0x16')]['getRevision'](_0xd126f5);if(_0x472b49)this[_0x4222('0x4a')]=_0x472b49[_0x4222('0xa6')],this[_0x4222('0xd2')]=!0x1;else{const _0x172e81=this[_0x4222('0x34')]['history'][_0x4222('0x48')][_0x4222('0xd7')](_0x376c63=>!_0x376c63[_0x4222('0x20')]),_0x537c4c=_0x172e81?_0x172e81[_0x4222('0xbe')]:this[_0x4222('0x34')][_0x4222('0x9')]['version'];_0x395305?(_0x395305[_0x4222('0x50')]<_0x537c4c&&_0x395305['_update']({'toVersion':_0x537c4c}),this[_0x4222('0xd2')]?(this[_0x4222('0x34')][_0x4222('0x0')]=()=>_0x3c9ed2['id'],this[_0x4222('0x4a')]=_0x3c9ed2[_0x4222('0xa6')]):(this['_startingVersion']=_0x395305['toVersion'],this[_0x4222('0xd2')]=!0x1)):(this[_0x4222('0x4a')]=_0x537c4c,this[_0x4222('0xd2')]=!0x1);}}else _0x3c9ed2&&(this[_0x4222('0x57')]['model'][_0x4222('0x1c')][_0x4222('0x9')][_0x4222('0x65')]=Math[_0x4222('0xd6')](_0x3c9ed2[_0x4222('0x50')],this['editor']['model']['document'][_0x4222('0x9')]['version']),_0x3c9ed2[_0x4222('0xa6')]===_0x3c9ed2['toVersion']?(0x0!==_0x3c9ed2[_0x4222('0xa6')]&&(this[_0x4222('0x34')]['getCurrentRevisionId']=()=>_0x3c9ed2['id']),this[_0x4222('0xd2')]=!0x1):this[_0x4222('0xd2')]&&(this[_0x4222('0x34')]['getCurrentRevisionId']=()=>_0x3c9ed2['id'],this[_0x4222('0x4a')]=_0x3c9ed2[_0x4222('0xa6')])),this[_0x4222('0xd2')]||(this[_0x4222('0x4a')]=this[_0x4222('0x57')][_0x4222('0x3e')][_0x4222('0x1c')][_0x4222('0x65')]);this[_0x4222('0x59')][_0x4222('0xd1')](this[_0x4222('0x34')][_0x4222('0x9')]),this[_0x4222('0x55')](this[_0x4222('0x4a')]),this['_createCurrentRevision'](this[_0x4222('0x4a')]),this[_0x4222('0xea')]&&this[_0x4222('0xa9')]();}),this[_0x4222('0xaa')](_0x4222('0x8d'))['to'](this,_0x4222('0xa'),_0x41cbb1=>!_0x41cbb1);}async[_0x4222('0x7d')](){if(this[_0x4222('0x16')][_0x4222('0xaf')]>0x0){const _0x58a07b=this[_0x4222('0x16')][_0x4222('0xfb')](0x0),_0x559f6e=await this[_0x4222('0x5')](_0x58a07b),_0x138695=await this['getRevisionRootsAttributes'](_0x58a07b);this[_0x4222('0xfe')](_0x559f6e,_0x138695);}}[_0x4222('0xe0')](_0x4422ad){this[_0x4222('0x34')]=_0x4422ad;}async[_0x4222('0x3')](){const _0x4c1189=await this[_0x4222('0x34')][_0x4222('0x47')]();if(_0x4c1189>this[_0x4222('0x5a')][_0x4222('0x50')]){await this[_0x4222('0x14')]();const _0x1c8ad1=this[_0x4222('0xe8')]({'revision':this['currentRevision'],'to':_0x4c1189});_0x1c8ad1[_0x4222('0xb0')]=_0x1c8ad1['authorsIds'][_0x4222('0xd0')](_0x14d9f5=>this[_0x4222('0x57')][_0x4222('0x1f')]['get']('Users')['getUser'](_0x14d9f5)),this['currentRevision'][_0x4222('0xca')](_0x1c8ad1);}}async[_0x4222('0x14')](){this[_0x4222('0xd2')]&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this[_0x4222('0x59')][_0x4222('0xd5')](this['currentRevision']),this[_0x4222('0xc8')]={'fromVersion':this[_0x4222('0x5a')][_0x4222('0xa6')],'authors':this[_0x4222('0x5a')][_0x4222('0xb0')][_0x4222('0xcf')]()});}async[_0x4222('0x19')](_0x2d936e={},_0x5af863=null){const _0xb191d1=[];await this[_0x4222('0x14')](),this[_0x4222('0xd2')]=!0x1,_0x5af863>this[_0x4222('0x5a')][_0x4222('0x50')]&&(_0x5af863=null),null===_0x5af863&&(_0x5af863=await this[_0x4222('0x34')]['getLatestVersion']());const _0x13c98e=this['_getFromVersion'](_0x5af863),_0x17c3bb=this[_0x4222('0xe8')]({'from':_0x13c98e,'to':_0x5af863});if(this[_0x4222('0x5a')]['toVersion']<_0x5af863){const _0x59cd3a=this[_0x4222('0xe8')]({'revision':this[_0x4222('0x5a')],'from':_0x5af863,'to':_0x5af863});_0x59cd3a[_0x4222('0xb0')]=[],_0x59cd3a['authorsIds']=[],_0x59cd3a['id']=this[_0x4222('0x5a')]['id'],this[_0x4222('0x5a')][_0x4222('0xca')](_0x59cd3a,!0x0),delete _0x59cd3a[_0x4222('0xb0')],_0xb191d1[_0x4222('0x87')](_0x59cd3a);}_0x2d936e[_0x4222('0x72')]=this[_0x4222('0x57')][_0x4222('0x1f')]['get'](_0x4222('0xbd'))['me']['id'],_0x2d936e[_0x4222('0xf1')]=_0x2d936e['name']||null,_0x2d936e['id']=_0x2d936e['id']||_0x22981(),_0x2d936e={..._0x2d936e,..._0x17c3bb};const _0x34b230=this[_0x4222('0x80')](_0x2d936e);_0xb191d1[_0x4222('0x87')](_0x2d936e);const _0x151fb4=this[_0x4222('0x16')]['getIndex'](_0x34b230);if(0x0!==_0x151fb4){const _0x13e59a=this[_0x4222('0x16')][_0x4222('0xfb')](_0x151fb4-0x1);if(_0x13e59a[_0x4222('0xa6')]!==_0x5af863){const _0x58b047=this['_revisionDataBuilder']['getData'](_0x5af863,_0x13e59a['toVersion']),_0x1385a1={'id':_0x13e59a['id'],'diffData':_0x58b047['diffData'],'authorsIds':_0x58b047['authorsIds'],'authors':_0x58b047[_0x4222('0x10')][_0x4222('0xd0')](_0x26c71d=>this[_0x4222('0x57')][_0x4222('0x1f')]['get'](_0x4222('0xbd'))[_0x4222('0x76')](_0x26c71d)),'fromVersion':_0x5af863};_0x13e59a===this[_0x4222('0x5a')]&&(_0x1385a1[_0x4222('0x9c')]=new Date(_0x2d936e[_0x4222('0x9c')]['getTime']()+0xa)),_0x13e59a[_0x4222('0xca')](_0x1385a1,!0x0),delete _0x1385a1['authors'],_0xb191d1[_0x4222('0x87')](_0x1385a1);}}if(this[_0x4222('0xea')]){for(const _0xee8aed of _0xb191d1)this['_bufferUpdate'](_0xee8aed['id'],_0xee8aed,!0x0);this[_0x4222('0xa9')]();}return _0x34b230;}[_0x4222('0x80')](_0x1248f0){const _0x1c5560=this['repository'][_0x4222('0x77')](_0x1248f0);return this[_0x4222('0xea')]&&_0x1c5560['on']('_update',(_0x338e1d,_0x433f32,_0x5d00de)=>{_0x5d00de||(this[_0x4222('0x52')](_0x433f32['id'],_0x433f32,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1c5560,this[_0x4222('0x86')](_0x1c5560)),_0x1c5560;}async[_0x4222('0x5')](_0xf55e60){await this[_0x4222('0x15')](_0xf55e60);const _0x57c37b={};for(const _0x298769 in _0xf55e60[_0x4222('0x3c')]){if(_0xf55e60[_0x4222('0x3c')][_0x298769]['attachChange']&&!_0xf55e60[_0x4222('0x3c')][_0x298769][_0x4222('0x105')][_0x4222('0x71')])continue;const _0x2afbc6=this[_0x4222('0x4')](JSON[_0x4222('0xf3')](_0xf55e60[_0x4222('0x3c')][_0x298769][_0x4222('0xdc')])),_0x51fe74=this[_0x4222('0x57')]['editing'][_0x4222('0xfa')][_0x4222('0x1c')],_0x160e8f=new _0x117f7d(_0x51fe74,_0x2afbc6[_0x4222('0xd0')](_0x1f942d=>J(_0x1f942d,this[_0x4222('0x57')])));this['editor'][_0x4222('0x4c')][_0x4222('0xba')][_0x4222('0x75')]('marked'),_0x57c37b[_0x298769]=this[_0x4222('0x57')][_0x4222('0x4c')][_0x4222('0xba')][_0x4222('0x4d')](_0x160e8f),this[_0x4222('0x57')]['data']['processor'][_0x4222('0x75')](_0x4222('0x7f'));}return _0x57c37b;}async[_0x4222('0x11')](_0x1339e9){await this[_0x4222('0x15')](_0x1339e9);const _0x3bc6a5={};for(const _0x433c96 in _0x1339e9[_0x4222('0x3c')])_0x1339e9[_0x4222('0x3c')][_0x433c96][_0x4222('0x105')]&&!_0x1339e9[_0x4222('0x3c')][_0x433c96][_0x4222('0x105')]['isAttached']||(_0x3bc6a5[_0x433c96]=_0x1339e9[_0x4222('0x3c')][_0x433c96][_0x4222('0xec')]||{});return _0x3bc6a5;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates'][_0x4222('0xfd')])return;if(this[_0x4222('0xa')])return;let _0x1f2301=Array[_0x4222('0xb7')](this[_0x4222('0xa0')][_0x4222('0x35')]());this[_0x4222('0xa0')][_0x4222('0x1b')]();for(let _0xc1b516=0x0;_0xc1b516<_0x1f2301[_0x4222('0xaf')];_0xc1b516++){const _0x1f542f=_0x1f2301[_0xc1b516];let _0x4274a0=!0x1;for(const _0x2751f7 of Object[_0x4222('0x3f')](_0x1f542f))void 0x0===_0x1f542f[_0x2751f7]?delete _0x1f542f[_0x2751f7]:'id'!==_0x2751f7&&(_0x4274a0=!0x0);_0x4274a0||(_0x1f2301[_0xc1b516]=null);}if(_0x1f2301=_0x1f2301[_0x4222('0xab')](_0x343477=>null!==_0x343477),!_0x1f2301[_0x4222('0xaf')])return;for(let _0x3b353d=0x0;_0x3b353d<_0x1f2301[_0x4222('0xaf')];_0x3b353d++){const _0x4db8f2=_0x1f2301[_0x3b353d];void 0x0!==_0x4db8f2['fromVersion']&&void 0x0===_0x4db8f2[_0x4222('0x50')]&&(_0x4db8f2[_0x4222('0x50')]=this[_0x4222('0x16')]['getRevision'](_0x4db8f2['id'])[_0x4222('0x50')]),void 0x0!==_0x4db8f2[_0x4222('0x50')]&&void 0x0===_0x4db8f2[_0x4222('0xa6')]&&(_0x4db8f2['fromVersion']=this['repository'][_0x4222('0xfb')](_0x4db8f2['id'])[_0x4222('0xa6')]);}const _0x52ca42=this[_0x4222('0x57')][_0x4222('0x40')]['get'](_0x4222('0xa5'));this[_0x4222('0xa')]=!0x0,this[_0x4222('0x90')](),this[_0x4222('0xea')][_0x4222('0x4e')](_0x1f2301,_0x52ca42)[_0x4222('0x7c')](()=>{this[_0x4222('0xa')]=!0x1;})[_0x4222('0x8b')](_0x5eeb05=>{if(_0x5eeb05)for(const _0x28c053 of _0x5eeb05)this[_0x4222('0x88')]({'id':_0x28c053['id'],'createdAt':_0x28c053[_0x4222('0x9c')]});this['_removePendingAction'](),this[_0x4222('0xa9')]();});}[_0x4222('0xfe')](_0x4d669f,_0x1a2836){let _0x4219d3=this[_0x4222('0x57')][_0x4222('0x40')][_0x4222('0xb5')]('initialData'),_0x155ef7=this[_0x4222('0x57')][_0x4222('0x40')][_0x4222('0xb5')]('rootsAttributes');if(void 0x0===_0x4219d3){_0x4219d3={};for(const _0x129c72 of this['editor'][_0x4222('0x3e')]['document'][_0x4222('0x2c')]())_0x4219d3[_0x129c72]='';}if(_0x4222('0x84')==typeof _0x4219d3&&(_0x4219d3={'main':_0x4219d3}),void 0x0===_0x155ef7){_0x155ef7={};for(const _0x9beac9 of this[_0x4222('0x57')][_0x4222('0x3e')][_0x4222('0x1c')][_0x4222('0x2c')]())_0x155ef7[_0x9beac9]={};}let _0x3a086d=!0x1;const _0x4b24c2=Object[_0x4222('0x3f')](_0x4219d3),_0x45b817=Object[_0x4222('0x3f')](_0x4d669f);for(const _0x4ea710 of _0x4b24c2){if(_0x4219d3[_0x4ea710]!==_0x4d669f[_0x4ea710]&&''!==_0x4219d3[_0x4ea710][_0x4222('0x5c')]()){_0x3a086d=!0x0;break;}if(!_0x11e894(_0x155ef7[_0x4ea710],_0x1a2836[_0x4ea710])&&Object[_0x4222('0x3f')](_0x155ef7[_0x4ea710])['length']>0x0){_0x3a086d=!0x0;break;}}_0x3a086d||(_0x3a086d=_0x45b817[_0x4222('0x2e')](_0x353425=>!this['editor'][_0x4222('0x3e')]['document'][_0x4222('0x74')](_0x353425))),_0x3a086d&&_0x991011(_0x4222('0xd3'),{'editorData':_0x4219d3,'editorRootsAttributes':_0x155ef7,'revisionData':_0x4d669f,'revisionRootsAttributes':_0x1a2836}),this[_0x4222('0x57')][_0x4222('0x40')][_0x4222('0xb4')](_0x4222('0x1'),_0x4d669f),this['editor'][_0x4222('0x40')][_0x4222('0xb4')](_0x4222('0xbb'),_0x1a2836);}[_0x4222('0x90')](){if(!this[_0x4222('0x26')]){const _0xed6568=this[_0x4222('0x57')]['plugins'][_0x4222('0xb5')](_0x4222('0xa7'));this[_0x4222('0x26')]=_0xed6568[_0x4222('0x17')](_0x1c3fa5(this['editor'][_0x4222('0x25')],_0x4222('0xa3')));}}[_0x4222('0xde')](){this[_0x4222('0x26')]&&(this['editor']['plugins']['get']('PendingActions')[_0x4222('0xf5')](this[_0x4222('0x26')]),this[_0x4222('0x26')]=null);}['_findInsertionIndex'](_0x470e03){const _0x996ccf=this[_0x4222('0x16')][_0x4222('0xdb')]();_0x996ccf[_0x4222('0xc0')]();let _0x428e77=0x0;for(;_0x428e77<_0x996ccf[_0x4222('0xaf')];){const _0x4fc758=_0x996ccf[_0x428e77];if(_0x4fc758===this[_0x4222('0x5a')]){_0x428e77++;continue;}if(_0x4fc758['id']===this['_initialRevisionId'])break;const _0x38acdf=_0x470e03[_0x4222('0x50')]-_0x4fc758['toVersion']||_0x470e03[_0x4222('0xa6')]-_0x4fc758['fromVersion'];if(_0x38acdf>0x0)break;if(_0x38acdf<0x0)_0x428e77++;else{if(!_0x470e03[_0x4222('0xe7')]&&_0x4fc758[_0x4222('0xe7')])break;if(_0x4fc758['creator']||!_0x470e03[_0x4222('0xe7')]){if(_0x470e03[_0x4222('0x9c')]>_0x4fc758[_0x4222('0x9c')])break;_0x428e77++;}else _0x428e77++;}}return _0x428e77;}[_0x4222('0x88')](_0x43c17b){const _0x8b5852=this[_0x4222('0x16')]['getRevision'](_0x43c17b['id']);if(_0x43c17b['createdAt']&&(_0x43c17b['createdAt']=new Date(_0x43c17b[_0x4222('0x9c')])),_0x43c17b[_0x4222('0x10')]){const _0x5da5af=this[_0x4222('0x57')][_0x4222('0x1f')][_0x4222('0xb5')](_0x4222('0xbd'));_0x43c17b[_0x4222('0xb0')]=_0x43c17b[_0x4222('0x10')]['map'](_0x504e56=>_0x5da5af[_0x4222('0x76')](_0x504e56));}_0x8b5852[_0x4222('0xca')](_0x43c17b,!0x0);}[_0x4222('0xe8')]({revision:_0x461df5=null,from:_0x39e5f3=null,to:_0x48865c=null}){_0x39e5f3=null!==_0x39e5f3?_0x39e5f3:_0x461df5['fromVersion'],_0x48865c=null!==_0x48865c?_0x48865c:_0x461df5[_0x4222('0x50')];const _0x6102b2=this['_revisionDataBuilder']['getData'](_0x39e5f3,_0x48865c),_0x292c2e={'diffData':_0x6102b2[_0x4222('0x3c')],'authorsIds':_0x6102b2['authorsIds'],'fromVersion':_0x39e5f3,'toVersion':_0x48865c};if(!_0x461df5||_0x48865c!==_0x461df5['toVersion']){const _0x21064c=_0x48865c-0x1,_0x231c69=this[_0x4222('0x34')][_0x4222('0x9')][_0x4222('0x62')](_0x21064c);_0x292c2e['createdAt']=_0x231c69&&_0x231c69[_0x4222('0x9c')]||new Date();}if(this[_0x4222('0xc8')]&&_0x39e5f3===this[_0x4222('0xc8')]['fromVersion'])for(const _0x337dfd of this[_0x4222('0xc8')][_0x4222('0xb0')])_0x292c2e['authorsIds'][_0x4222('0xa1')](_0x337dfd['id'])||_0x292c2e[_0x4222('0x10')][_0x4222('0x87')](_0x337dfd['id']);return _0x292c2e;}['_loadRevisionData'](_0x193257){if(!_0x193257||_0x193257[_0x4222('0x3c')])return Promise['resolve']();{const _0x41b5a4=this[_0x4222('0x57')]['config'][_0x4222('0xb5')]('collaboration.channelId');return this[_0x4222('0xea')]['getRevision']({'channelId':_0x41b5a4,'revisionId':_0x193257['id']})[_0x4222('0x8b')](_0x1606dd=>{_0x193257[_0x4222('0x3c')]=_0x1606dd[_0x4222('0x3c')];});}}[_0x4222('0x52')](_0x2a1eed,_0x4d609c,_0x52d06e){if(this[_0x4222('0xa0')]['has'](_0x2a1eed)){const _0x3ea77c=this[_0x4222('0xa0')][_0x4222('0xb5')](_0x2a1eed);_0x4d609c=_0x52d06e?{..._0x3ea77c,..._0x4d609c}:{..._0x4d609c,..._0x3ea77c};}this[_0x4222('0xa0')][_0x4222('0xb4')](_0x2a1eed,_0x4d609c);}['_getFromVersion'](_0x23dace){const _0x574347=this[_0x4222('0x16')][_0x4222('0xdb')]();_0x574347[_0x4222('0xc0')](),_0x574347['shift']();const _0x556d07=_0x574347['find'](_0x3146d7=>_0x3146d7['toVersion']<=_0x23dace)['toVersion'];return _0x556d07<this['_startingVersion']?this['_startingVersion']:_0x556d07;}[_0x4222('0x55')](_0x8bfd6a){const _0x49e0b1=this[_0x4222('0x16')][_0x4222('0xfb')](this['repository'][_0x4222('0xaf')]-0x1);if(_0x49e0b1)this[_0x4222('0x23')]=_0x49e0b1['id'];else{const _0xc21da7=!this['editor']['model'][_0x4222('0x1c')][_0x4222('0x13')][_0x4222('0xd7')](_0x12b7f0=>this['editor'][_0x4222('0x3e')]['hasContent'](_0x12b7f0)),_0x961b7e=this[_0x4222('0x57')]['plugins'][_0x4222('0xb5')](_0x4222('0xbd'))['me']['id'],_0x25a3b9=_0x1c3fa5(this['editor'][_0x4222('0x25')],_0xc21da7?_0x4222('0x60'):'Initial\x20revision');this['_makeRevision']({'from':_0x8bfd6a,'to':_0x8bfd6a,'id':this['_initialRevisionId'],'name':_0x25a3b9,'creatorId':_0x961b7e});}}[_0x4222('0xe6')](_0xed36a7){const _0x37a3bd=this[_0x4222('0x34')][_0x4222('0x0')]();this[_0x4222('0x5a')]=this['repository'][_0x4222('0xfb')](_0x37a3bd),this[_0x4222('0x5a')]||(this[_0x4222('0x5a')]=this['_makeRevision']({'from':_0xed36a7,'to':_0xed36a7,'id':_0x37a3bd,'name':'','creatorId':null}));}[_0x4222('0x98')]({name:_0x254a6e,from:_0x4528ee,to:_0x43c2ee,creatorId:_0x39b649,id:_0x1f565e}){const _0x1199db=this[_0x4222('0xe8')]({'from':_0x4528ee,'to':_0x43c2ee});_0x1199db[_0x4222('0xf1')]=_0x254a6e,_0x1199db[_0x4222('0x72')]=_0x39b649,_0x1199db['id']=_0x1f565e;const _0x31360e=this[_0x4222('0x80')](_0x1199db);return this[_0x4222('0xea')]&&this[_0x4222('0x52')](_0x1199db['id'],_0x1199db,!0x0),_0x31360e;}[_0x4222('0xf9')](){this[_0x4222('0x57')][_0x4222('0x103')][_0x4222('0x63')]('dataDowncast')['markerToData']({'model':_0x4222('0xeb')});}[_0x4222('0x4')](_0x192ac1){return(_0x192ac1=_0x192ac1['filter'](_0xe402fb=>!_0xe402fb[_0x4222('0xf1')]||'revision-start'!==_0xe402fb[_0x4222('0xf1')]&&'revision-end'!==_0xe402fb[_0x4222('0xf1')]))[_0x4222('0x18')](_0x4e370f=>{_0x4222('0x84')!=typeof _0x4e370f&&(_0x4e370f[_0x4222('0xe4')]=this[_0x4222('0x4')](_0x4e370f['children']),_0x4e370f[_0x4222('0x7b')]=_0x4e370f[_0x4222('0x7b')]['filter'](_0x4fb3d3=>!_0x4fb3d3[0x0]['startsWith'](_0x4222('0xef'))));}),_0x192ac1;}}function J(_0x542007,_0x270375){const _0x25a370=_0x270375['editing'][_0x4222('0xfa')][_0x4222('0x1c')];if(_0x4222('0x84')==typeof _0x542007)return new _0x4a20b8(_0x25a370,_0x542007);{const _0x57ed9f=_0x542007[_0x4222('0xe4')][_0x4222('0xd0')](_0x3099d5=>J(_0x3099d5,_0x270375));return new(B[_0x542007[(_0x4222('0xf7'))]]||_0x4c6a6d)(_0x25a370,_0x542007[_0x4222('0xf1')],_0x542007['attributes'],_0x57ed9f);}}class H{constructor(_0x250bac){this[_0x4222('0x57')]=_0x250bac,this[_0x4222('0xf6')]=new Map(),this[_0x4222('0x2f')]=-0x1,this[_0x4222('0x58')]=-0x1,this['_markers']=new Map(),this[_0x4222('0x44')]=new Map(),this[_0x4222('0xe3')]=new Map(),this[_0x4222('0x9f')]=new Map(),this[_0x4222('0xae')]=new Map(),this[_0x4222('0xc')]=new Map(),this[_0x4222('0xfc')]=new Map(),this['_touched']=new Map(),this[_0x4222('0x2d')]=new Map(),this[_0x4222('0x6c')]=new Map(),this[_0x4222('0xbc')]=0x1;}[_0x4222('0xd1')](_0x4d7e2a){this[_0x4222('0x45')]=_0x4d7e2a;const _0xf20f17=new Map(),_0xa9b2af=new Map(),_0x2fd685=this[_0x4222('0x57')][_0x4222('0x3e')][_0x4222('0x1c')][_0x4222('0x13')][_0x4222('0xd0')](_0x409a74=>_0x409a74[_0x4222('0xc2')]);for(const _0xd06fdc of _0x2fd685){const _0x3566a4=this['editor'][_0x4222('0x3e')]['document'][_0x4222('0x74')](_0xd06fdc),_0x3001c6=q(_0x3566a4);_0xf20f17['set'](_0xd06fdc,_0x3001c6),_0xa9b2af[_0x4222('0xb4')](_0xd06fdc,Object[_0x4222('0x6e')](_0x3566a4['getAttributes']()));}const _0x103798=Array[_0x4222('0xb7')](this[_0x4222('0x57')][_0x4222('0x3e')][_0x4222('0x46')])['map'](_0x4c1cb6=>[_0x4c1cb6[_0x4222('0xf1')],_0x4c1cb6[_0x4222('0x64')]()]),_0x2e9df3=this['source'][_0x4222('0x65')];this[_0x4222('0xcd')](_0x2e9df3,_0xf20f17,_0x103798,_0xa9b2af),this[_0x4222('0x27')]=this[_0x4222('0xbc')];const _0x10a830=new Map(),_0x595c1a=new Map();for(const _0x386c89 of _0x2fd685){const _0x22930c=G(_0x386c89);_0x10a830['set'](_0x386c89,_0x22930c),_0x595c1a[_0x4222('0xb4')](_0x386c89,{});}this[_0x4222('0xcd')](Number['NEGATIVE_INFINITY'],_0x10a830,[],_0x595c1a);}[_0x4222('0xa4')](_0xf19e03,_0xcc74bb){if(this['_lastFrom']===_0xf19e03&&this[_0x4222('0x58')]<=_0xcc74bb)this[_0x4222('0xf6')][_0x4222('0xfd')]>0x1&&this[_0x4222('0xf2')](this[_0x4222('0x58')]),this[_0x4222('0x70')](this[_0x4222('0x58')],_0xcc74bb,!0x0);else{if(!this[_0x4222('0xf6')][_0x4222('0xdd')](_0xf19e03)){const _0x37f6cb=this['_getPreviousFrom'](_0xf19e03);this[_0x4222('0x43')](_0x37f6cb,_0xf19e03,!0x1);}this['_calculateMetaData'](_0xf19e03,_0xcc74bb,!0x0);}return this[_0x4222('0x2f')]=_0xf19e03,this[_0x4222('0x58')]=_0xcc74bb,this[_0x4222('0xd4')]();}['loadState'](_0x77b146){this[_0x4222('0xd')](),this[_0x4222('0x2f')]=_0x77b146[_0x4222('0xa6')],this[_0x4222('0x58')]=_0x77b146[_0x4222('0x50')];for(const _0x1d01a2 in _0x77b146['diffData']){const _0x5b89e6=_0x77b146['diffData'][_0x1d01a2][_0x4222('0x105')],_0x29f01b=_0x44d25a(_0x77b146[_0x4222('0x3c')][_0x1d01a2][_0x4222('0x12')])||{},_0x404383=this[_0x4222('0x36')](_0x77b146['diffData'][_0x1d01a2]['deletions']);_0x404383[_0x4222('0xc2')]=_0x1d01a2,_0x404383[_0x4222('0x21')]=!_0x5b89e6||!_0x5b89e6[_0x4222('0x71')],_0x404383['isAttached']=()=>_0x404383[_0x4222('0x21')],this['_baseRoots'][_0x4222('0xb4')](_0x1d01a2,_0x404383),this[_0x4222('0xae')]['set'](_0x1d01a2,_0x29f01b),_0x5b89e6&&this[_0x4222('0x6c')][_0x4222('0xb4')](_0x1d01a2,_0x5b89e6);const _0x2efbd4=this[_0x4222('0x31')](_0x404383);this['_baseIdsRoots'][_0x4222('0xb4')](_0x1d01a2,_0x2efbd4);for(const [_0x30a629,_0x3faff2]of _0x404383['markers']){if(!_0x30a629[_0x4222('0xf')](_0x4222('0xc9')))continue;const _0x55dd26=_0x30a629[_0x4222('0xb3')](':')[0x2];for(const _0x21f39b of _0x3faff2[_0x4222('0xe2')]({'singleCharacters':!0x0})){const _0x2de243=this['_getVidAttributeName'](_0x21f39b),_0xbf61a7='elementEnd'==_0x21f39b[_0x4222('0xf7')]?_0x21f39b['previousPosition'][_0x4222('0x89')][_0x4222('0xcf')](0x0,-0x1):_0x21f39b['previousPosition'][_0x4222('0x89')],_0x542678=_0x2efbd4[_0x4222('0xe1')](_0xbf61a7)[_0x4222('0x3b')](_0x2de243);this[_0x4222('0x78')]['set'](_0x542678,{'userId':_0x55dd26});}}}this[_0x4222('0x27')]=this['_revisionId'];const _0x4e1ec9=[...Array(this[_0x4222('0xbc')])[_0x4222('0x3f')]()][_0x4222('0xcf')](0x1)[_0x4222('0xab')](_0x364aea=>!this['_touched'][_0x4222('0xdd')](_0x364aea));let _0x4a7aa5=0x0;const _0x3fa90a=new Map();for(const _0x432620 in _0x77b146[_0x4222('0x3c')]){const _0x1379c6=_0x77b146[_0x4222('0x3c')][_0x432620][_0x4222('0x105')],_0x6dca18=_0x44d25a(_0x77b146[_0x4222('0x3c')][_0x432620][_0x4222('0xec')])||{},_0x3703a9=this['_makeModelFromViewString'](_0x77b146[_0x4222('0x3c')][_0x432620][_0x4222('0xdc')]);_0x3703a9[_0x4222('0xc2')]=_0x432620,_0x3703a9[_0x4222('0x21')]=!_0x1379c6||_0x1379c6[_0x4222('0x71')],_0x3703a9['isAttached']=()=>_0x3703a9[_0x4222('0x21')],this['_diffRoots'][_0x4222('0xb4')](_0x432620,_0x3703a9),this['_diffRootsAttributes'][_0x4222('0xb4')](_0x432620,_0x6dca18);const _0x2129ba=this[_0x4222('0x31')](_0x3703a9,Number[_0x4222('0xd8')]);this[_0x4222('0xc')][_0x4222('0xb4')](_0x432620,_0x2129ba),_0x3fa90a[_0x4222('0xb4')](_0x432620,_0x3703a9[_0x4222('0x71')]()?_0x6dca18:{});for(const [_0xb834b6,_0xccad94]of _0x3703a9[_0x4222('0x46')]){if(!_0xb834b6[_0x4222('0xf')](_0x4222('0xc9')))continue;const _0x104427=_0xb834b6['split'](':')[0x2];for(const _0x301717 of _0xccad94[_0x4222('0xe2')]({'singleCharacters':!0x0})){const _0x535508=this[_0x4222('0x8e')](_0x301717),_0x1be44d=this[_0x4222('0xbc')]++,_0x33a9b4=_0x4222('0x33')==_0x301717[_0x4222('0xf7')]?_0x301717[_0x4222('0xe')]['path'][_0x4222('0xcf')](0x0,-0x1):_0x301717[_0x4222('0xe')][_0x4222('0x89')];_0x2129ba[_0x4222('0xe1')](_0x33a9b4)['_setAttribute'](_0x535508,_0x1be44d),this[_0x4222('0x78')][_0x4222('0xb4')](_0x1be44d,{'userId':_0x104427});}}for(const _0x6d7fc4 of this[_0x4222('0x57')][_0x4222('0x3e')][_0x4222('0xc4')](_0x3703a9)[_0x4222('0xe2')]({'singleCharacters':!0x0})){const _0x1700ac=this['_getVidAttributeName'](_0x6d7fc4),_0x5d7eb5='elementEnd'==_0x6d7fc4[_0x4222('0xf7')]?_0x6d7fc4[_0x4222('0xe')][_0x4222('0x89')][_0x4222('0xcf')](0x0,-0x1):_0x6d7fc4[_0x4222('0xe')][_0x4222('0x89')],_0x1f3f78=_0x2129ba[_0x4222('0xe1')](_0x5d7eb5);_0x1f3f78[_0x4222('0x3b')](_0x1700ac)>0x0||_0x1f3f78['_setAttribute'](_0x1700ac,_0x4e1ec9[_0x4a7aa5++]);}for(const [_0x5bcd35,_0x335c3f]of _0x3703a9[_0x4222('0x46')])_0x5bcd35['startsWith']('revision:')||this[_0x4222('0x68')][_0x4222('0xb4')](_0x5bcd35,_0x335c3f);}const _0x4a2676=G('$graveyard');this[_0x4222('0x9f')]['set'](_0x4222('0x73'),_0x4a2676),this[_0x4222('0xfc')][_0x4222('0xb4')](_0x4222('0x73'),this[_0x4222('0x31')](_0x4a2676,0x1));const _0x3ea0e7=G(_0x4222('0x73'));this[_0x4222('0x44')][_0x4222('0xb4')](_0x4222('0x73'),_0x3ea0e7),this['_idsRoots'][_0x4222('0xb4')](_0x4222('0x73'),this[_0x4222('0x31')](_0x3ea0e7,0x1));const _0x378b3f=Array[_0x4222('0xb7')](this[_0x4222('0x44')])[_0x4222('0xd0')](([_0x4934cb,_0x103510])=>[_0x4934cb,q(_0x103510)]);this[_0x4222('0xcd')](this[_0x4222('0x58')],_0x378b3f,this[_0x4222('0x68')],_0x3fa90a);}['_makeModelFromViewString'](_0x5b5066){const _0x3b6cc8=JSON[_0x4222('0xf3')](_0x5b5066),_0x5ce546=this[_0x4222('0x57')][_0x4222('0xce')][_0x4222('0xfa')]['document'],_0x739a7=new _0x117f7d(_0x5ce546,_0x3b6cc8[_0x4222('0xd0')](_0x1470fb=>J(_0x1470fb,this[_0x4222('0x57')])));return this[_0x4222('0x57')][_0x4222('0x4c')][_0x4222('0xc7')](_0x739a7);}[_0x4222('0xcd')](_0x362c82,_0x50d6b5,_0x4c3cdc,_0x5ec344){const _0x45d880=new Map(_0x50d6b5),_0x4792f2=new Map(_0x44d25a(_0x5ec344)),_0x514b8d=new Map();for(const [_0x5f0de2,_0x4e128a]of _0x4c3cdc)_0x514b8d[_0x4222('0xb4')](_0x5f0de2,{'start':_0x4e128a['start'][_0x4222('0xda')](),'end':_0x4e128a[_0x4222('0x2b')][_0x4222('0xda')](),'rootName':_0x4e128a[_0x4222('0x6b')]['rootName']});this['_savedMetaData']['set'](_0x362c82,{'roots':_0x45d880,'markers':_0x514b8d,'rootsAttributes':_0x4792f2});}[_0x4222('0xf2')](_0x4ac9e7){this[_0x4222('0xf6')][_0x4222('0x3d')](_0x4ac9e7);}[_0x4222('0x1e')](){this['_reset'](),this[_0x4222('0x2f')]=-0x1,this[_0x4222('0x58')]=-0x1,this['_savedMetaData']['clear'](),this['init'](this[_0x4222('0x45')]);}[_0x4222('0xd')](){this[_0x4222('0x78')][_0x4222('0x1b')](),this[_0x4222('0x2d')]['clear'](),this['_touchedRoots'][_0x4222('0x1b')](),this['_diffRoots'][_0x4222('0x1b')](),this[_0x4222('0xe3')][_0x4222('0x1b')](),this[_0x4222('0x9f')][_0x4222('0x1b')](),this['_baseRootsAttributes']['clear'](),this['_idsRoots'][_0x4222('0x1b')](),this[_0x4222('0xfc')][_0x4222('0x1b')](),this['_markers'][_0x4222('0x1b')](),this['_revisionId']=0x1,this['_startingRevisionId']=this[_0x4222('0xbc')];}['_makeIdsRoot'](_0x3f289f,_0x43a4ed=null){let _0x3733c0=null;_0x3f289f['is'](_0x4222('0x4f'))||(_0x3733c0=new _0x5b1cbc(_0x3f289f[_0x4222('0xf1')],{'vid_start':null===_0x43a4ed?this[_0x4222('0xbc')]++:_0x43a4ed++}));const _0x33484e=[];for(const _0x14786b of _0x3f289f[_0x4222('0x8f')]())if(_0x14786b['is'](_0x4222('0x51'))){_0x33484e[_0x4222('0x87')](this[_0x4222('0x31')](_0x14786b,_0x43a4ed));const _0x358d8b=_0x33484e[_0x33484e[_0x4222('0xaf')]-0x1];null!==_0x43a4ed&&(_0x43a4ed=_0x358d8b['is'](_0x4222('0x51'),_0x4222('0x5d'))?_0x358d8b[_0x4222('0x3b')](_0x4222('0x30'))+0x1:_0x358d8b[_0x4222('0x3b')](_0x4222('0x54'))+0x1);}else for(let _0x411b25=0x0;_0x411b25<_0x14786b[_0x4222('0x29')];_0x411b25++)_0x33484e[_0x4222('0x87')](new _0x5b1cbc('$text',{'vid':null===_0x43a4ed?this[_0x4222('0xbc')]++:_0x43a4ed++}));if(_0x3f289f['is'](_0x4222('0x4f'))){const _0x10ba15=G(_0x3f289f[_0x4222('0xc2')]);return _0x10ba15[_0x4222('0xb')](0x0,_0x33484e),_0x10ba15;}return _0x3733c0[_0x4222('0x53')](_0x4222('0x54'),null===_0x43a4ed?this[_0x4222('0xbc')]++:_0x43a4ed++),_0x3733c0['_insertChild'](0x0,_0x33484e),_0x3733c0;}[_0x4222('0x43')](_0x521af1,_0x3c2b90,_0x15f847){this[_0x4222('0xd')]();const {roots:_0x129e9f,markers:_0x246456,rootsAttributes:_0x129a1b}=this[_0x4222('0xf6')][_0x4222('0xb5')](_0x521af1);this[_0x4222('0x9f')]=new Map(_0x129e9f),this['_baseRootsAttributes']=new Map(_0x44d25a(_0x129a1b));for(const [_0x47be6e,_0x3a6e2a]of this[_0x4222('0x9f')])if('$graveyard'!==_0x47be6e&&(this[_0x4222('0x44')][_0x4222('0xb4')](_0x47be6e,q(_0x3a6e2a)),this[_0x4222('0xe3')]=new Map(_0x44d25a(_0x129a1b)),_0x15f847)){const _0x436fdb=this[_0x4222('0xbc')];this[_0x4222('0xc')][_0x4222('0xb4')](_0x47be6e,this['_makeIdsRoot'](_0x3a6e2a)),this[_0x4222('0xfc')][_0x4222('0xb4')](_0x47be6e,this[_0x4222('0x31')](_0x3a6e2a,_0x436fdb));}this[_0x4222('0x27')]=this[_0x4222('0xbc')],this['_diffRoots'][_0x4222('0xb4')](_0x4222('0x73'),q(this[_0x4222('0x9f')]['get'](_0x4222('0x73')))),_0x15f847&&this[_0x4222('0xc')][_0x4222('0xb4')](_0x4222('0x73'),this[_0x4222('0x31')](this[_0x4222('0x9f')]['get'](_0x4222('0x73'))));for(const [_0x3a769c,_0x2d12c7]of _0x246456){const _0x1fc6d6=this[_0x4222('0x9f')][_0x4222('0xb5')](_0x2d12c7[_0x4222('0xc2')]),_0x5ddcaa=this[_0x4222('0x44')][_0x4222('0xb5')](_0x2d12c7[_0x4222('0xc2')]),_0x3c362f=new _0x3edc46(this[_0x4222('0x6f')](_0x2d12c7['start'],_0x1fc6d6),this[_0x4222('0x6f')](_0x2d12c7['end'],_0x1fc6d6)),_0x248c5=this[_0x4222('0x108')](_0x3c362f,_0x5ddcaa);_0x1fc6d6[_0x4222('0x46')][_0x4222('0xb4')](_0x3a769c,_0x3c362f),this[_0x4222('0x68')]['set'](_0x3a769c,_0x248c5);}this['_applyOperations'](_0x521af1,_0x3c2b90,_0x15f847);}[_0x4222('0x70')](_0x57c30c,_0x24cfe4,_0x3f6bfb){for(const _0xfe96d1 of this[_0x4222('0x45')][_0x4222('0xa8')](_0x57c30c,_0x24cfe4))this['_handleOperation'](_0xfe96d1,_0x3f6bfb);for(const _0x346b70 of this[_0x4222('0x44')][_0x4222('0x35')]())_0x346b70[_0x4222('0x46')][_0x4222('0x1b')]();for(const [_0x50beb2,_0x383711]of this['_markers']){this[_0x4222('0x44')]['get'](_0x383711[_0x4222('0x6b')][_0x4222('0xc2')])[_0x4222('0x46')][_0x4222('0xb4')](_0x50beb2,_0x383711['clone']());}const _0x3ce935=new Map(),_0x4a2939=new Map();for(const [_0x466ca6,_0x50c7aa]of this[_0x4222('0x44')])_0x3ce935[_0x4222('0xb4')](_0x466ca6,q(_0x50c7aa)),_0x4a2939[_0x4222('0xb4')](_0x466ca6,this[_0x4222('0xe3')][_0x4222('0xb5')](_0x466ca6));this[_0x4222('0xcd')](_0x24cfe4,_0x3ce935,this[_0x4222('0x68')],_0x4a2939);}['_getPreviousFrom'](_0x3337e1){const _0x39d497=Array[_0x4222('0xb7')](this[_0x4222('0xf6')][_0x4222('0x3f')]());_0x39d497[_0x4222('0xac')]((_0x359c73,_0x4e723c)=>_0x359c73-_0x4e723c),_0x39d497[_0x4222('0xc0')]();for(const _0x2783a1 of _0x39d497)if(_0x2783a1<_0x3337e1)return _0x2783a1;return Number['NEGATIVE_INFINITY'];}[_0x4222('0xf8')](_0xf185c,_0x1cdb7e){const _0x98826c=Array[_0x4222('0xb7')](_0x1cdb7e[_0x4222('0x46')])[_0x4222('0xd0')](([_0xc8ece8,_0x1d5612])=>[_0xc8ece8,this[_0x4222('0x108')](_0x1d5612,_0xf185c)]);_0xf185c[_0x4222('0x46')]=new Map(_0x98826c);}[_0x4222('0x9e')](_0x41b7b0){for(const _0x3f744e of this[_0x4222('0x68')]['values']()){const _0x1a05dd=_0x3f744e['getTransformedByOperation'](_0x41b7b0),_0x449626=_0x3edc46[_0x4222('0x7e')](_0x1a05dd);_0x3f744e['start']=_0x449626['start'],_0x3f744e[_0x4222('0x2b')]=_0x449626['end'];}}[_0x4222('0x9b')](_0x438c41,_0xec9bb4){if('addRoot'==_0x438c41[_0x4222('0xf7')]||_0x4222('0x7')==_0x438c41[_0x4222('0xf7')])return void this[_0x4222('0xf4')](_0x438c41,_0xec9bb4);if(_0x4222('0xf0')==_0x438c41[_0x4222('0xf7')]){const _0xd3a10a=_0x438c41[_0x4222('0xd9')][_0x4222('0x6b')]['rootName'];this[_0x4222('0x44')][_0x4222('0xdd')](_0xd3a10a)||(this[_0x4222('0x44')][_0x4222('0xb4')](_0xd3a10a,G(_0xd3a10a,!0x0)),this[_0x4222('0xe3')][_0x4222('0xb4')](_0xd3a10a,{}),_0xec9bb4&&this[_0x4222('0xc')][_0x4222('0xb4')](_0xd3a10a,G(_0xd3a10a,!0x0)));}else{if(_0x4222('0xa2')==_0x438c41['type']||_0x4222('0x92')==_0x438c41[_0x4222('0xf7')]||_0x4222('0x67')==_0x438c41[_0x4222('0xf7')])return void this[_0x4222('0xc5')](_0x438c41);}const _0x9285f5=this[_0x4222('0xbf')](_0x438c41,this[_0x4222('0x44')]);if('marker'!==_0x438c41[_0x4222('0xf7')]&&(_0x9285f5['_execute'](),this[_0x4222('0x9e')](_0x9285f5)),_0xec9bb4)switch(_0x9285f5[_0x4222('0xf7')]){case _0x4222('0xf0'):this['_handleInsertOperation'](_0x438c41);break;case _0x4222('0xb8'):case _0x4222('0xf5'):case _0x4222('0x24'):this[_0x4222('0x3a')](_0x438c41);break;case _0x4222('0xdf'):this[_0x4222('0x66')](_0x438c41);break;case'split':this[_0x4222('0xe9')](_0x438c41);break;case'marker':this['_handleMarkerOperation'](_0x438c41);}}[_0x4222('0xbf')](_0x3a2ba4,_0x5b8ac9){const _0x1cb65d=_0x3a2ba4[_0x4222('0xda')]();return _0x1cb65d[_0x4222('0x69')]=_0x3a2ba4['_authorId'],this['_fixOperation'](_0x1cb65d,_0x5b8ac9),_0x1cb65d;}[_0x4222('0x104')](_0x520d9d){return _0x520d9d[_0x4222('0xd0')](_0x3aa254=>{const _0x54a456=this[_0x4222('0x8e')](_0x3aa254);return Number(_0x3aa254['item']['getAttribute'](_0x54a456));});}[_0x4222('0x38')](_0x5a00a3,_0x3d20e1){if(_0x5a00a3['is'](_0x4222('0x51'),'$text'))_0x3d20e1[_0x4222('0x87')]({'item':_0x5a00a3,'type':_0x4222('0xad')});else{_0x5a00a3['is'](_0x4222('0x51'))&&_0x3d20e1[_0x4222('0x87')]({'item':_0x5a00a3,'type':_0x4222('0x8c')});for(const _0x47fbae of _0x5a00a3[_0x4222('0x8f')]())this[_0x4222('0x38')](_0x47fbae,_0x3d20e1);_0x5a00a3['is'](_0x4222('0x51'))&&_0x3d20e1[_0x4222('0x87')]({'item':_0x5a00a3,'type':'elementEnd'});}return _0x3d20e1;}['_getState'](){const _0xa88787=new Map(this[_0x4222('0x78')]),_0x1e8a4d=new Map(_0xa88787),_0x30c702=new Map(),_0x5a2f26={'insertions':{},'deletions':{}},_0x358de4={'insertions':{},'deletions':{}},_0xf5c78b=new Map(),_0x25872c=new Set([...this[_0x4222('0x9f')][_0x4222('0x3f')](),...this[_0x4222('0x44')][_0x4222('0x3f')]()]);_0x25872c[_0x4222('0x3d')]('$graveyard');for(const _0x2b340b of _0x25872c){const _0x5c6189=this[_0x4222('0x44')]['get'](_0x2b340b)||G(_0x2b340b,!0x1),_0x5d9403=this[_0x4222('0x9f')][_0x4222('0xb5')](_0x2b340b)||G(_0x2b340b,!0x1);_0x5c6189[_0x4222('0x71')]()||_0x5d9403['isAttached']()?(_0x5a2f26[_0x4222('0xdc')][_0x2b340b]=q(_0x5c6189),_0x5a2f26[_0x4222('0x96')][_0x2b340b]=q(_0x5d9403),this['_copyMarkers'](_0x5a2f26[_0x4222('0x96')][_0x2b340b],_0x5d9403),this['_copyMarkers'](_0x5a2f26[_0x4222('0xdc')][_0x2b340b],_0x5c6189),_0x358de4[_0x4222('0xdc')][_0x2b340b]=this[_0x4222('0x38')](this[_0x4222('0xc')][_0x4222('0xb5')](_0x2b340b),[]),_0x358de4[_0x4222('0x96')][_0x2b340b]=this[_0x4222('0x38')](this[_0x4222('0xfc')][_0x4222('0xb5')](_0x2b340b)||G(_0x2b340b,!0x1),[])):_0x25872c[_0x4222('0x3d')](_0x2b340b);}for(const _0x5a4699 of _0x25872c){const _0x3306a5=_0x358de4['insertions'][_0x5a4699];for(const _0x15b665 of _0x3306a5){const _0x487b19=this[_0x4222('0x8e')](_0x15b665),_0x5d1cb5=_0x15b665[_0x4222('0x95')][_0x4222('0x3b')](_0x487b19);_0x1e8a4d['delete'](_0x5d1cb5),_0x5d1cb5>=this[_0x4222('0x27')]&&_0x30c702[_0x4222('0xb4')](_0x5d1cb5,_0xa88787[_0x4222('0xb5')](_0x5d1cb5));}}for(const _0x360d6c of _0x25872c){const _0x59eeb4=_0x358de4[_0x4222('0xdc')][_0x360d6c],_0x5526bd=this['_getBaseVids'](_0x358de4[_0x4222('0x96')][_0x360d6c]);let _0x3a353e=0x0;for(const _0x555737 of _0x59eeb4){const _0x424d69=this['_getVidAttributeName'](_0x555737),_0x5d9261=_0x555737[_0x4222('0x95')][_0x4222('0x3b')](_0x424d69);if(!_0x30c702[_0x4222('0xdd')](_0x5d9261)&&!_0xf5c78b[_0x4222('0xdd')](_0x5d9261)){if(_0x1e8a4d[_0x4222('0xdd')](_0x5d9261))_0x3a353e++;else{if(_0x5d9261!=_0x5526bd[_0x3a353e]){const _0x339cac=_0xa88787['get'](_0x5d9261)||_0xa88787[_0x4222('0xb5')](_0x5526bd[_0x3a353e]);for(;_0x5d9261!=_0x5526bd[_0x3a353e];)_0x1e8a4d['has'](_0x5526bd[_0x3a353e])||(_0xf5c78b[_0x4222('0xb4')](_0x5526bd[_0x3a353e],_0x339cac),_0xa88787['set'](_0x5526bd[_0x3a353e],_0x339cac)),_0x3a353e++;}_0x3a353e++;}}}}for(const _0xbced31 of _0x25872c){const _0x3cc3c5=_0x358de4[_0x4222('0xdc')][_0xbced31];for(const _0x103398 of _0x3cc3c5){const _0x2e6c0d=this[_0x4222('0x8e')](_0x103398),_0x179b52=_0x103398['item'][_0x4222('0x3b')](_0x2e6c0d);if(_0xf5c78b[_0x4222('0xdd')](_0x179b52)){const _0x4e3912=_0xf5c78b[_0x4222('0xb5')](_0x179b52);_0x1e8a4d['has'](_0x179b52)||_0x1e8a4d['set'](_0x179b52,{..._0x4e3912}),_0x30c702['set'](_0x179b52,{..._0x4e3912});}}}for(const _0x93856c of _0x1e8a4d['keys']())_0x93856c>=this[_0x4222('0x27')]&&_0x1e8a4d['delete'](_0x93856c);const _0x2f6aa6=new Map();for(const _0x11d2dc of _0x25872c){let _0xa775ab=_0x358de4[_0x4222('0xdc')][_0x11d2dc];for(const _0x13f5f6 of _0xa775ab)if(_0x13f5f6[_0x4222('0x95')]['is']('element',_0x4222('0x2a'))){const _0x49eae6=this[_0x4222('0x8e')](_0x13f5f6),_0xb65cdd=_0x13f5f6[_0x4222('0x95')]['getAttribute'](_0x49eae6);if(_0x30c702[_0x4222('0xdd')](_0xb65cdd)){const _0x1bb76a=_0x13f5f6[_0x4222('0x95')][_0x4222('0xcc')]['parent']['getAttribute']('vid_start'),_0x5682a5=_0x2f6aa6[_0x4222('0xb5')](_0x1bb76a)||new Set();_0x5682a5[_0x4222('0x17')](_0x30c702['get'](_0xb65cdd)[_0x4222('0xc6')]),_0x2f6aa6[_0x4222('0xb4')](_0x1bb76a,_0x5682a5);}}_0xa775ab=_0x358de4['deletions'][_0x11d2dc];for(const _0x5f5689 of _0xa775ab)if(_0x5f5689['item']['is']('element','tableCell')){const _0x5d7d37=this[_0x4222('0x8e')](_0x5f5689),_0x3bdff5=_0x5f5689[_0x4222('0x95')]['getAttribute'](_0x5d7d37);if(_0x1e8a4d[_0x4222('0xdd')](_0x3bdff5)){const _0x592f55=_0x5f5689['item'][_0x4222('0xcc')][_0x4222('0xcc')][_0x4222('0x3b')](_0x4222('0x6d')),_0x3853d7=_0x2f6aa6['get'](_0x592f55)||new Set();_0x3853d7[_0x4222('0x17')](_0x1e8a4d['get'](_0x3bdff5)[_0x4222('0xc6')]),_0x2f6aa6[_0x4222('0xb4')](_0x592f55,_0x3853d7);}}for(const _0x1dc8e1 of _0x2f6aa6[_0x4222('0x3f')]())(_0x30c702['has'](_0x1dc8e1)||_0x1e8a4d[_0x4222('0xdd')](_0x1dc8e1))&&_0x2f6aa6[_0x4222('0x3d')](_0x1dc8e1);}for(const _0x5b6a1d of _0x25872c){const _0x5c2c39=_0x358de4['insertions'][_0x5b6a1d];let _0x28e7f2=null,_0x2402fb=null;for(const _0x2ce965 of _0x5c2c39){const _0x17916b=this[_0x4222('0x8e')](_0x2ce965),_0x35e064=_0x2ce965[_0x4222('0x95')]['getAttribute'](_0x17916b),_0x4d94a3=_0x2f6aa6[_0x4222('0xb5')](_0x35e064);_0x4d94a3&&_0x4222('0x8c')==_0x2ce965[_0x4222('0xf7')]&&(_0x28e7f2=Array['from'](_0x4d94a3)[0x0],_0x2402fb=_0x2ce965[_0x4222('0x95')][_0x4222('0x3b')](_0x4222('0x54'))),_0x28e7f2&&(_0x1e8a4d['set'](_0x35e064,{'userId':_0x28e7f2}),_0x30c702[_0x4222('0xb4')](_0x35e064,{'userId':_0x28e7f2})),_0x35e064==_0x2402fb&&(_0x28e7f2=null,_0x2402fb=null);}}const _0x2e3c05={},_0x13d653=new Set();for(const _0xcb4c of _0x25872c){const _0x7d7af8=_0x5a2f26['deletions'][_0xcb4c],_0x318fb0=_0x5a2f26[_0x4222('0xdc')][_0xcb4c];for(const {userId:_0x47a164}of this['_touchedMarkers'][_0x4222('0x35')]())null!==_0x47a164&&_0x13d653[_0x4222('0x17')](_0x47a164);for(const {userId:_0x3bef11}of this['_touchedRoots'][_0x4222('0x35')]())null!==_0x3bef11&&_0x13d653['add'](_0x3bef11);this[_0x4222('0x61')](_0x318fb0,_0x358de4[_0x4222('0xdc')][_0xcb4c],_0x30c702,_0x4222('0x32'),_0x13d653),this[_0x4222('0x61')](_0x7d7af8,_0x358de4[_0x4222('0x96')][_0xcb4c],_0x1e8a4d,_0x4222('0x99'),_0x13d653),_0x2e3c05[_0xcb4c]={'insertions':this[_0x4222('0x8a')](_0x318fb0),'deletions':this[_0x4222('0x8a')](_0x7d7af8),'attachChange':this[_0x4222('0x6c')][_0x4222('0xb5')](_0xcb4c)||null,'attributesBefore':_0x44d25a(this['_baseRootsAttributes']['get'](_0xcb4c))||{},'attributesAfter':_0x44d25a(this[_0x4222('0xe3')][_0x4222('0xb5')](_0xcb4c))};}return{'diffData':_0x2e3c05,'authorsIds':Array[_0x4222('0xb7')](_0x13d653)};}[_0x4222('0x4b')](_0x556333){for(const [,_0x5f4a37]of _0x556333[_0x4222('0x46')]){const _0x2603a8=_0x5f4a37[_0x4222('0x22')][_0x4222('0x101')]()[_0x4222('0xab')](_0x32d9d4=>_0x4222('0x2a')==_0x32d9d4[_0x4222('0xf1')]);for(const _0x361d43 of _0x2603a8)0x1==_0x361d43[_0x4222('0x8')]&&_0x361d43[_0x4222('0x49')](0x0)['is'](_0x4222('0x51'),_0x4222('0x106'))&&_0x361d43[_0x4222('0x49')](0x0)['_setAttribute'](_0x4222('0x93'),!0x0);}}[_0x4222('0x8a')](_0xcd12f6){this[_0x4222('0x4b')](_0xcd12f6);const _0x16411f=this['editor'][_0x4222('0x4c')][_0x4222('0xb6')](_0xcd12f6,{}),_0x4ad777=Array[_0x4222('0xb7')](_0x16411f['getChildren']())[_0x4222('0xd0')](_0x231dd5=>this['_getViewJson'](_0x231dd5));return JSON['stringify'](_0x4ad777);}[_0x4222('0x2')](_0x1286d4){if(_0x1286d4['is']('$text'))return _0x1286d4['data'];{const _0x107a73=_0x1286d4;return{'type':Object['keys'](B)[_0x4222('0xd7')](_0x31b0b3=>_0x1286d4 instanceof B[_0x31b0b3]),'name':_0x107a73[_0x4222('0xf1')],'attributes':Array[_0x4222('0xb7')](_0x107a73[_0x4222('0x107')]()),'children':Array['from'](_0x107a73[_0x4222('0x8f')]())['map'](_0x145bd4=>this['_getViewJson'](_0x145bd4))};}}[_0x4222('0x61')](_0x40a624,_0x4aa6cc,_0x1e2c1c,_0x3661c6,_0x54afad){let _0x3722de=null,_0x2209cb=null,_0x9bf09c=0x0;const _0x339dd4=this['editor'][_0x4222('0x3e')];for(let _0x319acd=0x0;_0x319acd<_0x4aa6cc[_0x4222('0xaf')];_0x319acd++){const _0x367962=this[_0x4222('0x8e')](_0x4aa6cc[_0x319acd]),_0xe138e7=_0x4aa6cc[_0x319acd][_0x4222('0x95')][_0x4222('0x3b')](_0x367962),_0x41e85c=_0x1e2c1c[_0x4222('0xb5')](_0xe138e7),_0x15dc7c=_0x319acd==_0x4aa6cc[_0x4222('0xaf')]-0x1;(!_0x3722de&&_0x41e85c&&(_0x3722de=_0x41e85c,_0x2209cb=_0x4aa6cc[_0x319acd]),_0x3722de&&(!_0x41e85c||_0x41e85c[_0x4222('0xc6')]!=_0x3722de[_0x4222('0xc6')]))&&(_0x1d081f(_0x41e85c,L(_0x2209cb,_0x40a624,_0x339dd4),L(_0x4aa6cc[_0x319acd],_0x40a624,_0x339dd4)),_0x3722de=_0x41e85c||null,_0x2209cb=_0x41e85c?_0x4aa6cc[_0x319acd]:null),_0x3722de&&_0x15dc7c&&_0x1d081f(_0x41e85c,L(_0x2209cb,_0x40a624,_0x339dd4),W(_0x4aa6cc[_0x319acd],_0x40a624,_0x339dd4));}function _0x1d081f(_0x17de32,_0x478e8f,_0x241204){const _0x180221=_0x3722de[_0x4222('0xc6')],_0x4f92fb=_0x4222('0xc9')+_0x3661c6+':'+_0x180221+':'+_0x9bf09c++,_0x5ee898=_0x339dd4[_0x4222('0x6')](_0x478e8f,_0x241204);_0x40a624[_0x4222('0x46')]['set'](_0x4f92fb,_0x5ee898),null!==_0x180221&&_0x54afad['add'](_0x180221);}}[_0x4222('0x8e')](_0x21ade8){switch(_0x21ade8[_0x4222('0xf7')]){case _0x4222('0x8c'):return'vid_start';case _0x4222('0x33'):return _0x4222('0x54');default:return _0x4222('0x30');}}[_0x4222('0x9d')](_0x1f2add,_0x334714){_0x1f2add['baseVersion']=null;for(const _0x19e12f in _0x1f2add){const _0x4ff376=_0x1f2add[_0x19e12f];if(_0x4ff376 instanceof _0xc1abe3){const _0x2b747b=_0x334714[_0x4222('0xb5')](_0x4ff376['root']['rootName']);_0x1f2add[_0x19e12f]=this[_0x4222('0x6f')](_0x4ff376,_0x2b747b);}if(_0x4ff376 instanceof _0x3edc46){const _0x7b2411=_0x334714[_0x4222('0xb5')](_0x4ff376[_0x4222('0x6b')][_0x4222('0xc2')]);_0x1f2add[_0x19e12f]=this['_fixRange'](_0x4ff376,_0x7b2411);}'root'===_0x19e12f&&(_0x1f2add[_0x4222('0x6b')]=_0x334714[_0x4222('0xb5')](_0x1f2add['root'][_0x4222('0xc2')]));}}['_fixRange'](_0x236ca4,_0x26173a){return this['editor'][_0x4222('0x3e')][_0x4222('0x6')](this[_0x4222('0x6f')](_0x236ca4[_0x4222('0x22')],_0x26173a),this[_0x4222('0x6f')](_0x236ca4[_0x4222('0x2b')],_0x26173a));}[_0x4222('0x6f')](_0xdfd684,_0x4f6c4b){return this[_0x4222('0x57')][_0x4222('0x3e')][_0x4222('0x56')](_0x4f6c4b,_0xdfd684['path'],_0xdfd684[_0x4222('0x102')]);}[_0x4222('0x100')](_0x5f3ca3){const _0x20ee16=this[_0x4222('0xc')][_0x4222('0xb5')](_0x5f3ca3[_0x4222('0xd9')][_0x4222('0x6b')][_0x4222('0xc2')]),_0x3b884b=this[_0x4222('0x6f')](_0x5f3ca3['position'],_0x20ee16),_0x3cb3d1=null===_0x5f3ca3[_0x4222('0x69')]?null:_0x5f3ca3[_0x4222('0x69')]||this[_0x4222('0x57')][_0x4222('0x1f')]['get'](_0x4222('0xbd'))['me']['id'],_0x404c54=_0x3b884b[_0x4222('0xcc')],_0x579388=this['_revisionId'],_0x44147d=[];for(const _0x10552f of _0x5f3ca3[_0x4222('0xcb')])if(_0x10552f['is'](_0x4222('0x51')))_0x44147d['push'](this['_makeIdsRoot'](_0x10552f));else for(let _0x250c96=0x0;_0x250c96<_0x10552f['offsetSize'];_0x250c96++)_0x44147d[_0x4222('0x87')](new _0x5b1cbc(_0x4222('0x5d'),{'vid':this['_revisionId']++}));const _0x351d86=this[_0x4222('0xbc')];for(let _0x23ba76=_0x579388;_0x23ba76<_0x351d86;_0x23ba76++)this[_0x4222('0x78')]['set'](_0x23ba76,{'userId':_0x3cb3d1});_0x404c54[_0x4222('0xb')](_0x3b884b[_0x4222('0x1d')],_0x44147d);}[_0x4222('0x3a')](_0x402628){(_0x402628=this['_cloneOperation'](_0x402628,this[_0x4222('0xc')]))[_0x4222('0xff')]();const _0x3e7ff7=null===_0x402628['_authorId']?null:_0x402628[_0x4222('0x69')]||this[_0x4222('0x57')][_0x4222('0x1f')]['get'](_0x4222('0xbd'))['me']['id'],_0x4480da=_0x402628[_0x4222('0xb2')](),_0x27856a=_0x4480da[_0x4222('0xcc')],_0x224a9f=_0x4480da[_0x4222('0x1d')];!function _0x181c23(_0x2811db,_0x2c33ac,_0x3913a8,_0x3aed19){for(let _0x2f905a=_0x3913a8;_0x2f905a<_0x3aed19;_0x2f905a++){const _0xe39d25=_0x2c33ac[_0x4222('0x49')](_0x2f905a);_0xe39d25['is'](_0x4222('0x51'),'$text')?_0x2811db[_0x4222('0xb4')](_0xe39d25[_0x4222('0x3b')](_0x4222('0x30')),{'userId':_0x3e7ff7}):(_0x2811db['set'](_0xe39d25[_0x4222('0x3b')](_0x4222('0x6d')),{'userId':_0x3e7ff7}),_0x181c23(_0x2811db,_0xe39d25,0x0,_0xe39d25[_0x4222('0x8')]),_0x2811db[_0x4222('0xb4')](_0xe39d25[_0x4222('0x3b')]('vid_end'),{'userId':_0x3e7ff7}));}}(this['_touched'],_0x27856a,_0x224a9f,_0x224a9f+_0x402628[_0x4222('0xc3')]);}[_0x4222('0x66')](_0x526947){const _0x80dd4e=null===(_0x526947=this[_0x4222('0xbf')](_0x526947,this[_0x4222('0xc')]))['_authorId']?null:_0x526947[_0x4222('0x69')]||this[_0x4222('0x57')]['plugins'][_0x4222('0xb5')](_0x4222('0xbd'))['me']['id'],_0x5eef1c=_0x526947[_0x4222('0x39')][_0x4222('0xcc')],_0x2dc568=_0x526947[_0x4222('0x37')][_0x4222('0xcc')],_0x1ef215=_0x5eef1c[_0x4222('0x3b')](_0x4222('0x54')),_0x50b56f=_0x2dc568[_0x4222('0x3b')](_0x4222('0x6d'));_0x5eef1c['_setAttribute']('vid_end',_0x2dc568[_0x4222('0x3b')](_0x4222('0x54'))),_0x2dc568['_setAttribute'](_0x4222('0x54'),_0x1ef215),this[_0x4222('0x78')][_0x4222('0xb4')](_0x50b56f,{'userId':_0x80dd4e}),this[_0x4222('0x78')][_0x4222('0xb4')](_0x1ef215,{'userId':_0x80dd4e}),_0x526947[_0x4222('0xff')]();}['_handleSplitOperation'](_0x83b4e2){const _0x46f059=null===(_0x83b4e2=this[_0x4222('0xbf')](_0x83b4e2,this[_0x4222('0xc')]))[_0x4222('0x69')]?null:_0x83b4e2[_0x4222('0x69')]||this[_0x4222('0x57')][_0x4222('0x1f')][_0x4222('0xb5')](_0x4222('0xbd'))['me']['id'],_0x9df4=_0x83b4e2[_0x4222('0x91')],_0x43c11f=_0x83b4e2['splitPosition'][_0x4222('0xcc')];_0x83b4e2[_0x4222('0xff')]();const _0x2f1e7a=_0x43c11f['getAttribute'](_0x4222('0x54')),_0x2d4605=_0x83b4e2['insertionPosition']['nodeAfter'];if(_0x9df4){const _0x137815=_0x2d4605['getAttribute'](_0x4222('0x54')),_0x5661fe=_0x43c11f[_0x4222('0x3b')](_0x4222('0x54'));_0x43c11f[_0x4222('0x53')]('vid_end',_0x137815),_0x2d4605[_0x4222('0x53')](_0x4222('0x54'),_0x5661fe),this[_0x4222('0x78')][_0x4222('0xb4')](_0x43c11f[_0x4222('0x3b')](_0x4222('0x54')),{'userId':_0x46f059}),this[_0x4222('0x78')][_0x4222('0xb4')](_0x2d4605[_0x4222('0x3b')]('vid_start'),{'userId':_0x46f059});}else{const _0x4db8f4=this['_revisionId']++,_0x4e0f96=this[_0x4222('0xbc')]++;_0x43c11f[_0x4222('0x53')](_0x4222('0x54'),_0x4db8f4),_0x2d4605[_0x4222('0x53')]('vid_start',_0x4e0f96),_0x2d4605[_0x4222('0x53')](_0x4222('0x54'),_0x2f1e7a),this[_0x4222('0x78')][_0x4222('0xb4')](_0x4db8f4,{'userId':_0x46f059}),this[_0x4222('0x78')][_0x4222('0xb4')](_0x4e0f96,{'userId':_0x46f059});}}[_0x4222('0xed')](_0x1a9ee2){if(!_0x1a9ee2[_0x4222('0x97')])return;const _0x38106a=(_0x1a9ee2=this[_0x4222('0xbf')](_0x1a9ee2,this[_0x4222('0x44')]))[_0x4222('0xee')]?_0x1a9ee2[_0x4222('0xee')]['root']:null,_0x156f6e=_0x1a9ee2['newRange']?_0x1a9ee2['newRange'][_0x4222('0x6b')]:null;_0x38106a&&this['_markers'][_0x4222('0x3d')](_0x1a9ee2['name']),_0x156f6e&&this[_0x4222('0x68')]['set'](_0x1a9ee2[_0x4222('0xf1')],_0x1a9ee2[_0x4222('0x83')][_0x4222('0xda')]());const _0x470962=null===_0x1a9ee2[_0x4222('0x69')]?null:_0x1a9ee2['_authorId']||this['editor'][_0x4222('0x1f')][_0x4222('0xb5')]('Users')['me']['id'],_0x520385=_0x1a9ee2[_0x4222('0xf1')];if(!this[_0x4222('0x2d')][_0x4222('0xdd')](_0x520385))return void this[_0x4222('0x2d')]['set'](_0x520385,{'range':_0x1a9ee2[_0x4222('0xee')],'userId':_0x470962});const _0x2e7070=this[_0x4222('0x2d')][_0x4222('0xb5')](_0x520385),_0x37ca71=_0x2e7070['range'],_0x33115a=_0x1a9ee2[_0x4222('0x83')];null==_0x37ca71&&null==_0x33115a||_0x37ca71&&_0x33115a&&_0x37ca71[_0x4222('0x1a')](_0x33115a)?this[_0x4222('0x2d')][_0x4222('0x3d')](_0x1a9ee2[_0x4222('0xf1')]):_0x2e7070[_0x4222('0xc6')]=_0x470962;}[_0x4222('0xf4')](_0x5a87ee,_0x172f54){this[_0x4222('0x44')][_0x4222('0xdd')](_0x5a87ee[_0x4222('0xc2')])?this['_diffRoots'][_0x4222('0xb5')](_0x5a87ee['rootName'])[_0x4222('0x21')]=_0x5a87ee[_0x4222('0xc1')]:(this[_0x4222('0x44')][_0x4222('0xb4')](_0x5a87ee['rootName'],G(_0x5a87ee[_0x4222('0xc2')],!0x0)),this[_0x4222('0xe3')]['set'](_0x5a87ee[_0x4222('0xc2')],{}),_0x172f54&&this[_0x4222('0xc')][_0x4222('0xb4')](_0x5a87ee['rootName'],G(_0x5a87ee[_0x4222('0xc2')],!0x0)));const _0x2977c1=null===_0x5a87ee['_authorId']?null:_0x5a87ee[_0x4222('0x69')]||this[_0x4222('0x57')][_0x4222('0x1f')][_0x4222('0xb5')](_0x4222('0xbd'))['me']['id'],_0x3fc6a1=this[_0x4222('0x6c')][_0x4222('0xb5')](_0x5a87ee[_0x4222('0xc2')]);_0x3fc6a1&&_0x3fc6a1[_0x4222('0xc6')]===_0x2977c1?this[_0x4222('0x6c')]['delete'](_0x5a87ee[_0x4222('0xc2')]):this[_0x4222('0x6c')][_0x4222('0xb4')](_0x5a87ee['rootName'],{'userId':_0x2977c1,'isAttached':_0x5a87ee[_0x4222('0xc1')]});}[_0x4222('0xc5')](_0x4c9112){const _0x38d003=this['_diffRootsAttributes'][_0x4222('0xb5')](_0x4c9112[_0x4222('0x6b')][_0x4222('0xc2')]);null===_0x4c9112['newValue']?delete _0x38d003[_0x4c9112[_0x4222('0xb1')]]:_0x38d003[_0x4c9112[_0x4222('0xb1')]]=_0x4c9112[_0x4222('0x5e')];}}function q(_0x9df33b){const _0x113076=G(_0x9df33b[_0x4222('0xc2')],_0x9df33b[_0x4222('0x71')]());for(const _0x2e6e45 of _0x9df33b[_0x4222('0x8f')]()){const _0x2fc90b=_0x2e6e45[_0x4222('0xe5')](!0x0);_0x113076['_appendChild'](_0x2fc90b);}return _0x113076;}function G(_0x30ec38,_0x237979=!0x0){const _0x354867=new _0x35956c();return _0x354867[_0x4222('0xc2')]=_0x30ec38,_0x354867[_0x4222('0x21')]=_0x237979,_0x354867[_0x4222('0x71')]=()=>_0x354867[_0x4222('0x21')],_0x354867;}function L(_0x437c75,_0x5832dc,_0x1d5bf7){const _0x12849b=_0x4222('0x33')==_0x437c75[_0x4222('0xf7')]?_0x1d5bf7[_0x4222('0x6a')](_0x437c75[_0x4222('0x95')],'end'):_0x1d5bf7[_0x4222('0x79')](_0x437c75[_0x4222('0x95')]);return _0x1d5bf7[_0x4222('0x56')](_0x5832dc,_0x12849b['path'],_0x12849b[_0x4222('0x102')]);}function W(_0x16871d,_0x191cdf,_0x1e1ec1){const _0x3a21f7='elementStart'==_0x16871d[_0x4222('0xf7')]?_0x1e1ec1[_0x4222('0x6a')](_0x16871d[_0x4222('0x95')],0x0):_0x1e1ec1['createPositionAfter'](_0x16871d[_0x4222('0x95')]);return _0x1e1ec1['createPositionFromPath'](_0x191cdf,_0x3a21f7[_0x4222('0x89')],_0x3a21f7['stickiness']);}
|
|
23
|
+
const _0x4c83=['hasContent','_fixRange','_processRootBeforeSave','config','_revisionId','text','addRevisionData','_generateTape','string','_isPendingUpdate','_handleRootAttributeOperation','for','_initialRevisionId','end','_baseRootsAttributes','rootsAttributes','_diffRoots','_bufferedUpdates','_bufferUpdate','sourcePosition','_loadRevisionData','_createCurrentRevision','path','revision:','position','insertion','afterInit','getAttribute','document','vid_end','size','_handleMoveOperation','createRange','finally','getRoot','pluginName','NEGATIVE_INFINITY','_makeIdsRoot','getCurrentRevisionId','getData','insert','RevisionTracker','shift','getTransformedByOperation','paragraph','_prepareViewToSave','sort','_saveMetaData','_insertChild','revision','_makeModelFromViewString','authorsIds','_getViewJson','plugins','_touched','buildRevisionData','_applyOperations','_appendChild','push','markerToData','_pendingAction','_touchedRoots','clone','getRevisionDocumentData','_cloneOperation','_removePendingAction','RealTimeCollaborationClient','map','newRange','tableCell','attachChange','getMovedRangeStart','changeRootAttribute','getChildren','sendBufferedUpdates','_getPreviousFrom','Empty\x20document','revisionHistory.resumeUnsavedRevision','_isAttached','markers','_lastTo','_operations','_createInitialRevision','reinsert','_getBaseVids','_transformMarkers','_createFromRanges','getWalker','repository','slice','_continueCurrentRevision','_removeRevisionMarkers','data','requires','useFillerType','some','_copyMarkers','createRevision','from','_lastFrom','_touchedMarkers','item','$graveyard','type','createPositionAt','getOperations','values','newValue','attributes','isEqual','has','vid','_getState','_source','elementEnd','$text','merge','removeRootAttribute','_handleOperation','getAncestors','_loadState','name','marked','_startingRevisionId','processor','childCount','_reset','rootName','createdAt','_fixOperation','_fixPosition','isAdd','documentFragment','toData','_getFromVersion','editing','version','reverse','key','children','isAttached','getRevisionRootsAttributes','getChild','initial','source','deletions','includes','parent','createRangeIn','setRevisionData','getTime','_diffRootsAttributes','offsetSize','_idsRoots','get','insertionPosition','editor','createPositionAfter','currentRevision','_handleMarkerOperation','root','element','revision-end','_update','_handleRootOperation','data-revision-','set','graveyardPosition','fromEntries','keepParagraph','stickiness','start','loadState','oldRange','_savedMetaData','baseVersion','remove','_setConversion','default','_execute','add','targetPosition','addRoot','getAttributes','insertions','offset','PENDING_ACTION_REVISION_HISTORY','toView','_findInsertionIndex','_makeRevision','filter','elementStart','getUser','model','_markChanges','forEach','Users','_authorId','_addPendingAction','startsWith','init','delete','_markers','createPositionBefore','saveRevision','length','range','editor-initial-data-replaced-with-revision-data','collaboration.channelId','addRootAttribute','creator','keys','getOperation','then','marker','isEnabled','getRootNames','define','initialData','_baseIdsRoots','creatorId','clear','locale','getIndex','history','getRevision','dataDowncast','view','roots','adapter','detachRoot','_replaceEditorDataWithRevisionData','attributesBefore','userId','_handleInsertOperation','_getVidAttributeName','howMany','PendingActions','previousPosition','_baseRoots','diffData','split','createPositionFromPath','resolve','move','_handleMergeOperation','_calculateMetaData','find','trim','upcast','_loadedStateData','getNodeByPath','_setAttribute','_startingVersion','parse','toModel','fromVersion','isReady','vid_start','_isInit','revision-start','max','toVersion','attributesAfter','authors','_revisionDataBuilder','addRevision'];(function(_0x5afec8,_0x4c8397){const _0x48e72c=function(_0x3f39b4){while(--_0x3f39b4){_0x5afec8['push'](_0x5afec8['shift']());}};_0x48e72c(++_0x4c8397);}(_0x4c83,0x1e2));const _0x48e7=function(_0x5afec8,_0x4c8397){_0x5afec8=_0x5afec8-0x0;let _0x48e72c=_0x4c83[_0x5afec8];return _0x48e72c;};import{Users as _0x51497b}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x303873,PendingActions as _0x45a542}from'ckeditor5/src/core';import{logWarning as _0x432ec6,uid as _0x2015e0}from'ckeditor5/src/utils';import{Position as _0x4aad63,Range as _0xbc7ce5,Element as _0x118471,DocumentFragment as _0x5dd335,ViewText as _0x46907f,ViewElement as _0x27f53a,ViewContainerElement as _0x1237d5,ViewAttributeElement as _0x307c2d,ViewEmptyElement as _0x45f515,ViewRawElement as _0x1f678d,ViewUIElement as _0x12eeb2,ViewDocumentFragment as _0x2d79ab}from'ckeditor5/src/engine';import _0x36a846 from'./revisionsrepository';import{getTranslation as _0x420640}from'./utils/common-translations';import{cloneDeep as _0x186c6b,isEqual as _0xcfdd79}from'lodash-es';const B={'c':_0x1237d5,'a':_0x307c2d,'e':_0x45f515,'r':_0x1f678d,'u':_0x12eeb2};export default class l extends _0x303873{static get[_0x48e7('0x57')](){return _0x48e7('0x5d');}static get[_0x48e7('0x91')](){return[_0x51497b,_0x36a846,_0x45a542];}constructor(_0x3ad289){super(_0x3ad289),this[_0x48e7('0xe')]=null,this[_0x48e7('0xd2')]=null,this[_0x48e7('0x32')]=new H(this['editor']),this[_0x48e7('0x40')]=this[_0x48e7('0xd0')]['config'][_0x48e7('0xce')](_0x48e7('0x104'))||_0x48e7('0xc3'),this[_0x48e7('0x45')]=new Map(),this[_0x48e7('0x23')]=null;const _0x40f7ad=_0x2015e0();this[_0x48e7('0xa5')]={'history':this[_0x48e7('0xd0')][_0x48e7('0xf5')][_0x48e7('0x50')][_0x48e7('0x9')],'getLatestVersion':()=>Promise[_0x48e7('0x1c')](this['editor'][_0x48e7('0xf5')]['document'][_0x48e7('0xbc')]),'getCurrentRevisionId':()=>_0x40f7ad},this[_0x48e7('0xda')](_0x48e7('0x2a'),!0x1),this[_0x48e7('0xda')](_0x48e7('0x0'),!0x0),this['set'](_0x48e7('0x3d'),!0x1),this[_0x48e7('0xd0')][_0x48e7('0x37')][_0x48e7('0x2')](_0x48e7('0x81'),!0x0),this[_0x48e7('0xd0')]['conversion'][_0x48e7('0x3f')](_0x48e7('0x22'))['dataToMarker']({'view':_0x48e7('0x65')});}[_0x48e7('0xfc')](){this['repository']=this[_0x48e7('0xd0')][_0x48e7('0x69')]['get']('RevisionsRepository'),this[_0x48e7('0xe5')](),this['editor'][_0x48e7('0x90')]['on']('ready',()=>{const _0x4a7bc6=this[_0x48e7('0x8c')][_0x48e7('0xa')](0x0),_0x468f8b=_0x4a7bc6&&null===_0x4a7bc6['creator']?_0x4a7bc6:null;if(this[_0x48e7('0x8e')]=!!_0x468f8b&&this[_0x48e7('0xd0')][_0x48e7('0x37')][_0x48e7('0xce')](_0x48e7('0x81')),this[_0x48e7('0xd0')][_0x48e7('0x69')][_0x48e7('0xa2')](_0x48e7('0x76'))){const _0x413754=this[_0x48e7('0xa5')][_0x48e7('0x5a')](),_0x3e2a12=this[_0x48e7('0x8c')][_0x48e7('0xa')](_0x413754);if(_0x3e2a12)this[_0x48e7('0x26')]=_0x3e2a12[_0x48e7('0x29')],this['_continueCurrentRevision']=!0x1;else{const _0x2a5d2=this[_0x48e7('0xa5')][_0x48e7('0x9')][_0x48e7('0x85')][_0x48e7('0x20')](_0x5b6305=>!_0x5b6305[_0x48e7('0x2c')]),_0x308d8b=_0x2a5d2?_0x2a5d2[_0x48e7('0xe3')]:this[_0x48e7('0xa5')][_0x48e7('0x9')][_0x48e7('0xbc')];_0x4a7bc6?(_0x4a7bc6[_0x48e7('0x2f')]<_0x308d8b&&_0x4a7bc6[_0x48e7('0xd7')]({'toVersion':_0x308d8b}),this[_0x48e7('0x8e')]?(this['_source'][_0x48e7('0x5a')]=()=>_0x468f8b['id'],this[_0x48e7('0x26')]=_0x468f8b['fromVersion']):(this[_0x48e7('0x26')]=_0x4a7bc6[_0x48e7('0x2f')],this[_0x48e7('0x8e')]=!0x1)):(this[_0x48e7('0x26')]=_0x308d8b,this[_0x48e7('0x8e')]=!0x1);}}else _0x468f8b&&(this[_0x48e7('0xd0')][_0x48e7('0xf5')][_0x48e7('0x50')]['history']['version']=Math[_0x48e7('0x2e')](_0x468f8b[_0x48e7('0x2f')],this[_0x48e7('0xd0')][_0x48e7('0xf5')][_0x48e7('0x50')][_0x48e7('0x9')][_0x48e7('0xbc')]),_0x468f8b['fromVersion']===_0x468f8b['toVersion']?(0x0!==_0x468f8b[_0x48e7('0x29')]&&(this[_0x48e7('0xa5')][_0x48e7('0x5a')]=()=>_0x468f8b['id']),this[_0x48e7('0x8e')]=!0x1):this['_continueCurrentRevision']&&(this[_0x48e7('0xa5')]['getCurrentRevisionId']=()=>_0x468f8b['id'],this[_0x48e7('0x26')]=_0x468f8b[_0x48e7('0x29')])),this[_0x48e7('0x8e')]||(this[_0x48e7('0x26')]=this[_0x48e7('0xd0')][_0x48e7('0xf5')][_0x48e7('0x50')][_0x48e7('0xbc')]);this[_0x48e7('0x32')][_0x48e7('0xfc')](this[_0x48e7('0xa5')][_0x48e7('0x9')]),this['_createInitialRevision'](this[_0x48e7('0x26')]),this[_0x48e7('0x49')](this[_0x48e7('0x26')]),this['adapter']&&this[_0x48e7('0x7e')]();}),this['bind']('isReady')['to'](this,_0x48e7('0x3d'),_0x4fb706=>!_0x4fb706);}async[_0x48e7('0x4e')](){if(this[_0x48e7('0x8c')][_0x48e7('0x101')]>0x0){const _0x3582cd=this[_0x48e7('0x8c')][_0x48e7('0xa')](0x0),_0xfde8bb=await this[_0x48e7('0x73')](_0x3582cd),_0xf44dc9=await this['getRevisionRootsAttributes'](_0x3582cd);this[_0x48e7('0x10')](_0xfde8bb,_0xf44dc9);}}['setSource'](_0x3310d1){this[_0x48e7('0xa5')]=_0x3310d1;}async['update'](){const _0x853d13=await this['_source']['getLatestVersion']();if(_0x853d13>this[_0x48e7('0xd2')]['toVersion']){await this[_0x48e7('0xac')]();const _0x130dad=this[_0x48e7('0x6b')]({'revision':this[_0x48e7('0xd2')],'to':_0x853d13});_0x130dad[_0x48e7('0x31')]=_0x130dad['authorsIds'][_0x48e7('0x77')](_0x329e7=>this['editor'][_0x48e7('0x69')]['get'](_0x48e7('0xf8'))[_0x48e7('0xf4')](_0x329e7)),this[_0x48e7('0xd2')][_0x48e7('0xd7')](_0x130dad);}}async[_0x48e7('0xac')](){this[_0x48e7('0x8e')]&&!this[_0x48e7('0x23')]&&(await this[_0x48e7('0x48')](this[_0x48e7('0xd2')]),this['_revisionDataBuilder'][_0x48e7('0xe0')](this[_0x48e7('0xd2')]),this[_0x48e7('0x23')]={'fromVersion':this['currentRevision'][_0x48e7('0x29')],'authors':this['currentRevision'][_0x48e7('0x31')][_0x48e7('0x8d')]()});}async[_0x48e7('0x100')](_0xd9e4f3={},_0x5b1129=null){const _0x1277e2=[];await this['_loadState'](),this[_0x48e7('0x8e')]=!0x1,_0x5b1129>this[_0x48e7('0xd2')]['toVersion']&&(_0x5b1129=null),null===_0x5b1129&&(_0x5b1129=await this[_0x48e7('0xa5')]['getLatestVersion']());const _0x357048=this[_0x48e7('0xba')](_0x5b1129),_0x1f339c=this[_0x48e7('0x6b')]({'from':_0x357048,'to':_0x5b1129});if(this[_0x48e7('0xd2')][_0x48e7('0x2f')]<_0x5b1129){const _0x38178a=this[_0x48e7('0x6b')]({'revision':this[_0x48e7('0xd2')],'from':_0x5b1129,'to':_0x5b1129});_0x38178a[_0x48e7('0x31')]=[],_0x38178a[_0x48e7('0x67')]=[],_0x38178a['id']=this[_0x48e7('0xd2')]['id'],this[_0x48e7('0xd2')][_0x48e7('0xd7')](_0x38178a,!0x0),delete _0x38178a[_0x48e7('0x31')],_0x1277e2['push'](_0x38178a);}_0xd9e4f3[_0x48e7('0x5')]=this[_0x48e7('0xd0')][_0x48e7('0x69')][_0x48e7('0xce')](_0x48e7('0xf8'))['me']['id'],_0xd9e4f3[_0x48e7('0xad')]=_0xd9e4f3[_0x48e7('0xad')]||null,_0xd9e4f3['id']=_0xd9e4f3['id']||_0x2015e0(),_0xd9e4f3={..._0xd9e4f3,..._0x1f339c};const _0x41e9b5=this[_0x48e7('0x3a')](_0xd9e4f3);_0x1277e2[_0x48e7('0x6e')](_0xd9e4f3);const _0x5d283b=this[_0x48e7('0x8c')][_0x48e7('0x8')](_0x41e9b5);if(0x0!==_0x5d283b){const _0x3d4313=this['repository'][_0x48e7('0xa')](_0x5d283b-0x1);if(_0x3d4313[_0x48e7('0x29')]!==_0x5b1129){const _0x1c7446=this[_0x48e7('0x32')][_0x48e7('0x5b')](_0x5b1129,_0x3d4313[_0x48e7('0x2f')]),_0x3bc353={'id':_0x3d4313['id'],'diffData':_0x1c7446[_0x48e7('0x19')],'authorsIds':_0x1c7446[_0x48e7('0x67')],'authors':_0x1c7446[_0x48e7('0x67')][_0x48e7('0x77')](_0x173e72=>this['editor'][_0x48e7('0x69')][_0x48e7('0xce')](_0x48e7('0xf8'))[_0x48e7('0xf4')](_0x173e72)),'fromVersion':_0x5b1129};_0x3d4313===this[_0x48e7('0xd2')]&&(_0x3bc353['createdAt']=new Date(_0xd9e4f3[_0x48e7('0xb4')][_0x48e7('0xca')]()+0xa)),_0x3d4313[_0x48e7('0xd7')](_0x3bc353,!0x0),delete _0x3bc353['authors'],_0x1277e2[_0x48e7('0x6e')](_0x3bc353);}}if(this[_0x48e7('0xe')]){for(const _0x4dad23 of _0x1277e2)this[_0x48e7('0x46')](_0x4dad23['id'],_0x4dad23,!0x0);this['sendBufferedUpdates']();}return _0x41e9b5;}[_0x48e7('0x3a')](_0x3d61fb){const _0x562a0c=this[_0x48e7('0x8c')][_0x48e7('0x95')](_0x3d61fb);return this[_0x48e7('0xe')]&&_0x562a0c['on'](_0x48e7('0xd7'),(_0x216c01,_0x237101,_0x1e1bc9)=>{_0x1e1bc9||(this['_bufferUpdate'](_0x237101['id'],_0x237101,!0x0),this['sendBufferedUpdates']());}),this['repository'][_0x48e7('0x33')](_0x562a0c,this[_0x48e7('0xf0')](_0x562a0c)),_0x562a0c;}async['getRevisionDocumentData'](_0x385000){await this['_loadRevisionData'](_0x385000);const _0x368809={};for(const _0x2ab1a8 in _0x385000[_0x48e7('0x19')]){if(_0x385000[_0x48e7('0x19')][_0x2ab1a8][_0x48e7('0x7a')]&&!_0x385000[_0x48e7('0x19')][_0x2ab1a8][_0x48e7('0x7a')]['isAttached'])continue;const _0x50c4f2=this['_removeRevisionMarkers'](JSON['parse'](_0x385000[_0x48e7('0x19')][_0x2ab1a8]['insertions'])),_0x2ffceb=this[_0x48e7('0xd0')][_0x48e7('0xbb')][_0x48e7('0xc')][_0x48e7('0x50')],_0x595606=new _0x2d79ab(_0x2ffceb,_0x50c4f2[_0x48e7('0x77')](_0x3d348e=>J(_0x3d348e,this[_0x48e7('0xd0')])));this['editor'][_0x48e7('0x90')]['processor'][_0x48e7('0x92')](_0x48e7('0xae')),_0x368809[_0x2ab1a8]=this['editor']['data'][_0x48e7('0xb0')][_0x48e7('0xb9')](_0x595606),this['editor'][_0x48e7('0x90')][_0x48e7('0xb0')][_0x48e7('0x92')](_0x48e7('0xe6'));}return _0x368809;}async[_0x48e7('0xc1')](_0x55ceef){await this['_loadRevisionData'](_0x55ceef);const _0x27afba={};for(const _0x33a453 in _0x55ceef[_0x48e7('0x19')])_0x55ceef[_0x48e7('0x19')][_0x33a453]['attachChange']&&!_0x55ceef[_0x48e7('0x19')][_0x33a453][_0x48e7('0x7a')][_0x48e7('0xc0')]||(_0x27afba[_0x33a453]=_0x55ceef[_0x48e7('0x19')][_0x33a453][_0x48e7('0x30')]||{});return _0x27afba;}['sendBufferedUpdates'](){if(0x0===this[_0x48e7('0x45')][_0x48e7('0x52')])return;if(this[_0x48e7('0x3d')])return;let _0x120898=Array[_0x48e7('0x96')](this['_bufferedUpdates'][_0x48e7('0x9e')]());this[_0x48e7('0x45')][_0x48e7('0x6')]();for(let _0xb5aec8=0x0;_0xb5aec8<_0x120898[_0x48e7('0x101')];_0xb5aec8++){const _0x56ca2d=_0x120898[_0xb5aec8];let _0x4d4c8a=!0x1;for(const _0x1dca77 of Object[_0x48e7('0x107')](_0x56ca2d))void 0x0===_0x56ca2d[_0x1dca77]?delete _0x56ca2d[_0x1dca77]:'id'!==_0x1dca77&&(_0x4d4c8a=!0x0);_0x4d4c8a||(_0x120898[_0xb5aec8]=null);}if(_0x120898=_0x120898[_0x48e7('0xf2')](_0xe8ce28=>null!==_0xe8ce28),!_0x120898[_0x48e7('0x101')])return;for(let _0x4346ee=0x0;_0x4346ee<_0x120898[_0x48e7('0x101')];_0x4346ee++){const _0xce09f=_0x120898[_0x4346ee];void 0x0!==_0xce09f[_0x48e7('0x29')]&&void 0x0===_0xce09f['toVersion']&&(_0xce09f['toVersion']=this['repository'][_0x48e7('0xa')](_0xce09f['id'])['toVersion']),void 0x0!==_0xce09f[_0x48e7('0x2f')]&&void 0x0===_0xce09f[_0x48e7('0x29')]&&(_0xce09f['fromVersion']=this['repository'][_0x48e7('0xa')](_0xce09f['id'])[_0x48e7('0x29')]);}const _0x78402c=this[_0x48e7('0xd0')]['config'][_0x48e7('0xce')](_0x48e7('0x104'));this[_0x48e7('0x3d')]=!0x0,this[_0x48e7('0xfa')](),this['adapter']['updateRevisions'](_0x120898,_0x78402c)[_0x48e7('0x55')](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3fad6b=>{if(_0x3fad6b)for(const _0xc92f28 of _0x3fad6b)this['setRevisionData']({'id':_0xc92f28['id'],'createdAt':_0xc92f28['createdAt']});this[_0x48e7('0x75')](),this[_0x48e7('0x7e')]();});}[_0x48e7('0x10')](_0x54b1ae,_0x50570e){let _0x5cc1bc=this[_0x48e7('0xd0')][_0x48e7('0x37')][_0x48e7('0xce')](_0x48e7('0x3')),_0x4f34fd=this[_0x48e7('0xd0')][_0x48e7('0x37')][_0x48e7('0xce')]('rootsAttributes');if(void 0x0===_0x5cc1bc){_0x5cc1bc={};for(const _0x43649b of this['editor'][_0x48e7('0xf5')][_0x48e7('0x50')][_0x48e7('0x1')]())_0x5cc1bc[_0x43649b]='';}if(_0x48e7('0x3c')==typeof _0x5cc1bc&&(_0x5cc1bc={'main':_0x5cc1bc}),void 0x0===_0x4f34fd){_0x4f34fd={};for(const _0x3c002c of this[_0x48e7('0xd0')]['model'][_0x48e7('0x50')]['getRootNames']())_0x4f34fd[_0x3c002c]={};}let _0x4f53e7=!0x1;const _0x26cdec=Object[_0x48e7('0x107')](_0x5cc1bc),_0x2d56dd=Object[_0x48e7('0x107')](_0x54b1ae);for(const _0x44241c of _0x26cdec){if(_0x5cc1bc[_0x44241c]!==_0x54b1ae[_0x44241c]&&''!==_0x5cc1bc[_0x44241c][_0x48e7('0x21')]()){_0x4f53e7=!0x0;break;}if(!_0xcfdd79(_0x4f34fd[_0x44241c],_0x50570e[_0x44241c])&&Object[_0x48e7('0x107')](_0x4f34fd[_0x44241c])[_0x48e7('0x101')]>0x0){_0x4f53e7=!0x0;break;}}_0x4f53e7||(_0x4f53e7=_0x2d56dd[_0x48e7('0x93')](_0x334a45=>!this[_0x48e7('0xd0')][_0x48e7('0xf5')]['document'][_0x48e7('0x56')](_0x334a45))),_0x4f53e7&&_0x432ec6(_0x48e7('0x103'),{'editorData':_0x5cc1bc,'editorRootsAttributes':_0x4f34fd,'revisionData':_0x54b1ae,'revisionRootsAttributes':_0x50570e}),this[_0x48e7('0xd0')][_0x48e7('0x37')][_0x48e7('0xda')]('initialData',_0x54b1ae),this['editor'][_0x48e7('0x37')]['set'](_0x48e7('0x43'),_0x50570e);}['_addPendingAction'](){if(!this[_0x48e7('0x70')]){const _0x43e5e4=this['editor']['plugins']['get'](_0x48e7('0x16'));this[_0x48e7('0x70')]=_0x43e5e4[_0x48e7('0xe8')](_0x420640(this[_0x48e7('0xd0')]['locale'],_0x48e7('0xee')));}}[_0x48e7('0x75')](){this[_0x48e7('0x70')]&&(this[_0x48e7('0xd0')]['plugins'][_0x48e7('0xce')]('PendingActions')[_0x48e7('0xe4')](this['_pendingAction']),this[_0x48e7('0x70')]=null);}['_findInsertionIndex'](_0x35c6ba){const _0x46bfd9=this[_0x48e7('0x8c')]['getRevisions']();_0x46bfd9[_0x48e7('0xbd')]();let _0x235a2e=0x0;for(;_0x235a2e<_0x46bfd9[_0x48e7('0x101')];){const _0x5da17d=_0x46bfd9[_0x235a2e];if(_0x5da17d===this['currentRevision']){_0x235a2e++;continue;}if(_0x5da17d['id']===this['_initialRevisionId'])break;const _0x3f316c=_0x35c6ba[_0x48e7('0x2f')]-_0x5da17d[_0x48e7('0x2f')]||_0x35c6ba['fromVersion']-_0x5da17d[_0x48e7('0x29')];if(_0x3f316c>0x0)break;if(_0x3f316c<0x0)_0x235a2e++;else{if(!_0x35c6ba[_0x48e7('0x106')]&&_0x5da17d[_0x48e7('0x106')])break;if(_0x5da17d['creator']||!_0x35c6ba['creator']){if(_0x35c6ba[_0x48e7('0xb4')]>_0x5da17d[_0x48e7('0xb4')])break;_0x235a2e++;}else _0x235a2e++;}}return _0x235a2e;}[_0x48e7('0xc9')](_0x4bf3a6){const _0x115218=this[_0x48e7('0x8c')][_0x48e7('0xa')](_0x4bf3a6['id']);if(_0x4bf3a6[_0x48e7('0xb4')]&&(_0x4bf3a6[_0x48e7('0xb4')]=new Date(_0x4bf3a6[_0x48e7('0xb4')])),_0x4bf3a6[_0x48e7('0x67')]){const _0x585918=this[_0x48e7('0xd0')][_0x48e7('0x69')]['get'](_0x48e7('0xf8'));_0x4bf3a6[_0x48e7('0x31')]=_0x4bf3a6[_0x48e7('0x67')][_0x48e7('0x77')](_0x2e3f09=>_0x585918[_0x48e7('0xf4')](_0x2e3f09));}_0x115218[_0x48e7('0xd7')](_0x4bf3a6,!0x0);}[_0x48e7('0x6b')]({revision:_0x186659=null,from:_0x38e198=null,to:_0x5649c9=null}){_0x38e198=null!==_0x38e198?_0x38e198:_0x186659[_0x48e7('0x29')],_0x5649c9=null!==_0x5649c9?_0x5649c9:_0x186659[_0x48e7('0x2f')];const _0x332329=this[_0x48e7('0x32')][_0x48e7('0x5b')](_0x38e198,_0x5649c9),_0x134596={'diffData':_0x332329[_0x48e7('0x19')],'authorsIds':_0x332329[_0x48e7('0x67')],'fromVersion':_0x38e198,'toVersion':_0x5649c9};if(!_0x186659||_0x5649c9!==_0x186659['toVersion']){const _0x908103=_0x5649c9-0x1,_0x5c6c22=this['_source'][_0x48e7('0x9')][_0x48e7('0x108')](_0x908103);_0x134596[_0x48e7('0xb4')]=_0x5c6c22&&_0x5c6c22[_0x48e7('0xb4')]||new Date();}if(this['_loadedStateData']&&_0x38e198===this[_0x48e7('0x23')][_0x48e7('0x29')])for(const _0x1b2f6c of this['_loadedStateData']['authors'])_0x134596['authorsIds'][_0x48e7('0xc6')](_0x1b2f6c['id'])||_0x134596['authorsIds'][_0x48e7('0x6e')](_0x1b2f6c['id']);return _0x134596;}[_0x48e7('0x48')](_0x5344e0){if(!_0x5344e0||_0x5344e0['diffData'])return Promise['resolve']();{const _0x3476bf=this['editor'][_0x48e7('0x37')][_0x48e7('0xce')](_0x48e7('0x104'));return this[_0x48e7('0xe')][_0x48e7('0xa')]({'channelId':_0x3476bf,'revisionId':_0x5344e0['id']})[_0x48e7('0x109')](_0x62f4ef=>{_0x5344e0['diffData']=_0x62f4ef[_0x48e7('0x19')];});}}[_0x48e7('0x46')](_0x5ae0af,_0x298b9f,_0x580832){if(this[_0x48e7('0x45')][_0x48e7('0xa2')](_0x5ae0af)){const _0x591e5a=this[_0x48e7('0x45')]['get'](_0x5ae0af);_0x298b9f=_0x580832?{..._0x591e5a,..._0x298b9f}:{..._0x298b9f,..._0x591e5a};}this[_0x48e7('0x45')][_0x48e7('0xda')](_0x5ae0af,_0x298b9f);}[_0x48e7('0xba')](_0x5c9517){const _0x487b28=this[_0x48e7('0x8c')]['getRevisions']();_0x487b28[_0x48e7('0xbd')](),_0x487b28[_0x48e7('0x5e')]();const _0x57198d=_0x487b28[_0x48e7('0x20')](_0x1c6967=>_0x1c6967[_0x48e7('0x2f')]<=_0x5c9517)[_0x48e7('0x2f')];return _0x57198d<this['_startingVersion']?this[_0x48e7('0x26')]:_0x57198d;}[_0x48e7('0x86')](_0x43434e){const _0x19a2a4=this['repository'][_0x48e7('0xa')](this[_0x48e7('0x8c')]['length']-0x1);if(_0x19a2a4)this[_0x48e7('0x40')]=_0x19a2a4['id'];else{const _0x403df4=!this['editor'][_0x48e7('0xf5')][_0x48e7('0x50')]['roots']['find'](_0x7d38ed=>this[_0x48e7('0xd0')]['model'][_0x48e7('0x34')](_0x7d38ed)),_0x55d3e0=this[_0x48e7('0xd0')][_0x48e7('0x69')][_0x48e7('0xce')](_0x48e7('0xf8'))['me']['id'],_0x3705f0=_0x420640(this[_0x48e7('0xd0')][_0x48e7('0x7')],_0x403df4?_0x48e7('0x80'):'Initial\x20revision');this['_makeRevision']({'from':_0x43434e,'to':_0x43434e,'id':this['_initialRevisionId'],'name':_0x3705f0,'creatorId':_0x55d3e0});}}['_createCurrentRevision'](_0x27bdf0){const _0x211003=this[_0x48e7('0xa5')][_0x48e7('0x5a')]();this[_0x48e7('0xd2')]=this[_0x48e7('0x8c')][_0x48e7('0xa')](_0x211003),this[_0x48e7('0xd2')]||(this['currentRevision']=this['_makeRevision']({'from':_0x27bdf0,'to':_0x27bdf0,'id':_0x211003,'name':'','creatorId':null}));}[_0x48e7('0xf1')]({name:_0x1b80f7,from:_0x1b6f78,to:_0x3ca581,creatorId:_0x38fba5,id:_0x3f1881}){const _0x114308=this[_0x48e7('0x6b')]({'from':_0x1b6f78,'to':_0x3ca581});_0x114308['name']=_0x1b80f7,_0x114308[_0x48e7('0x5')]=_0x38fba5,_0x114308['id']=_0x3f1881;const _0x162827=this[_0x48e7('0x3a')](_0x114308);return this[_0x48e7('0xe')]&&this['_bufferUpdate'](_0x114308['id'],_0x114308,!0x0),_0x162827;}[_0x48e7('0xe5')](){this[_0x48e7('0xd0')]['conversion'][_0x48e7('0x3f')](_0x48e7('0xb'))[_0x48e7('0x6f')]({'model':'revision'});}[_0x48e7('0x8f')](_0x268fd8){return(_0x268fd8=_0x268fd8['filter'](_0x30e938=>!_0x30e938[_0x48e7('0xad')]||_0x48e7('0x2d')!==_0x30e938[_0x48e7('0xad')]&&_0x48e7('0xd6')!==_0x30e938[_0x48e7('0xad')]))[_0x48e7('0xf7')](_0x5dd8bc=>{_0x48e7('0x3c')!=typeof _0x5dd8bc&&(_0x5dd8bc[_0x48e7('0xbf')]=this[_0x48e7('0x8f')](_0x5dd8bc[_0x48e7('0xbf')]),_0x5dd8bc[_0x48e7('0xa0')]=_0x5dd8bc[_0x48e7('0xa0')][_0x48e7('0xf2')](_0x228a33=>!_0x228a33[0x0][_0x48e7('0xfb')](_0x48e7('0xd9'))));}),_0x268fd8;}}function J(_0x42cdea,_0x550101){const _0x33ba64=_0x550101['editing']['view'][_0x48e7('0x50')];if(_0x48e7('0x3c')==typeof _0x42cdea)return new _0x46907f(_0x33ba64,_0x42cdea);{const _0x453a0a=_0x42cdea[_0x48e7('0xbf')]['map'](_0x44959a=>J(_0x44959a,_0x550101));return new(B[_0x42cdea[(_0x48e7('0x9b'))]]||_0x27f53a)(_0x33ba64,_0x42cdea['name'],_0x42cdea[_0x48e7('0xa0')],_0x453a0a);}}class H{constructor(_0x56316a){this['editor']=_0x56316a,this[_0x48e7('0xe2')]=new Map(),this['_lastFrom']=-0x1,this[_0x48e7('0x84')]=-0x1,this[_0x48e7('0xfe')]=new Map(),this[_0x48e7('0x44')]=new Map(),this[_0x48e7('0xcb')]=new Map(),this[_0x48e7('0x18')]=new Map(),this[_0x48e7('0x42')]=new Map(),this[_0x48e7('0xcd')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x48e7('0x6a')]=new Map(),this[_0x48e7('0x98')]=new Map(),this[_0x48e7('0x71')]=new Map(),this['_revisionId']=0x1;}[_0x48e7('0xfc')](_0xee551f){this[_0x48e7('0xc4')]=_0xee551f;const _0x4122d1=new Map(),_0x78c30a=new Map(),_0xefb65a=this[_0x48e7('0xd0')][_0x48e7('0xf5')]['document'][_0x48e7('0xd')]['map'](_0x1963f9=>_0x1963f9[_0x48e7('0xb3')]);for(const _0x24c9a5 of _0xefb65a){const _0x3d06ee=this['editor'][_0x48e7('0xf5')][_0x48e7('0x50')]['getRoot'](_0x24c9a5),_0x38111f=q(_0x3d06ee);_0x4122d1[_0x48e7('0xda')](_0x24c9a5,_0x38111f),_0x78c30a[_0x48e7('0xda')](_0x24c9a5,Object[_0x48e7('0xdc')](_0x3d06ee['getAttributes']()));}const _0x293bb0=Array[_0x48e7('0x96')](this['editor'][_0x48e7('0xf5')]['markers'])[_0x48e7('0x77')](_0x177e16=>[_0x177e16['name'],_0x177e16['getRange']()]),_0x18c2bc=this[_0x48e7('0xc4')]['version'];this['_saveMetaData'](_0x18c2bc,_0x4122d1,_0x293bb0,_0x78c30a),this[_0x48e7('0xaf')]=this[_0x48e7('0x38')];const _0x3c1a12=new Map(),_0x35936c=new Map();for(const _0x2160f9 of _0xefb65a){const _0x3ab1a6=G(_0x2160f9);_0x3c1a12[_0x48e7('0xda')](_0x2160f9,_0x3ab1a6),_0x35936c[_0x48e7('0xda')](_0x2160f9,{});}this[_0x48e7('0x63')](Number[_0x48e7('0x58')],_0x3c1a12,[],_0x35936c);}[_0x48e7('0x5b')](_0x35ffcd,_0x511903){if(this['_lastFrom']===_0x35ffcd&&this['_lastTo']<=_0x511903)this[_0x48e7('0xe2')][_0x48e7('0x52')]>0x1&&this['_removeMetaData'](this[_0x48e7('0x84')]),this['_applyOperations'](this['_lastTo'],_0x511903,!0x0);else{if(!this['_savedMetaData'][_0x48e7('0xa2')](_0x35ffcd)){const _0x303d33=this[_0x48e7('0x7f')](_0x35ffcd);this['_calculateMetaData'](_0x303d33,_0x35ffcd,!0x1);}this[_0x48e7('0x1f')](_0x35ffcd,_0x511903,!0x0);}return this['_lastFrom']=_0x35ffcd,this['_lastTo']=_0x511903,this[_0x48e7('0xa4')]();}[_0x48e7('0xe0')](_0x2e817c){this['_reset'](),this[_0x48e7('0x97')]=_0x2e817c[_0x48e7('0x29')],this[_0x48e7('0x84')]=_0x2e817c[_0x48e7('0x2f')];for(const _0x397dff in _0x2e817c[_0x48e7('0x19')]){const _0x1d50b0=_0x2e817c[_0x48e7('0x19')][_0x397dff][_0x48e7('0x7a')],_0x13c4b5=_0x186c6b(_0x2e817c['diffData'][_0x397dff][_0x48e7('0x11')])||{},_0x110e41=this[_0x48e7('0x66')](_0x2e817c[_0x48e7('0x19')][_0x397dff][_0x48e7('0xc5')]);_0x110e41[_0x48e7('0xb3')]=_0x397dff,_0x110e41[_0x48e7('0x82')]=!_0x1d50b0||!_0x1d50b0[_0x48e7('0xc0')],_0x110e41[_0x48e7('0xc0')]=()=>_0x110e41[_0x48e7('0x82')],this[_0x48e7('0x18')][_0x48e7('0xda')](_0x397dff,_0x110e41),this['_baseRootsAttributes'][_0x48e7('0xda')](_0x397dff,_0x13c4b5),_0x1d50b0&&this[_0x48e7('0x71')][_0x48e7('0xda')](_0x397dff,_0x1d50b0);const _0x1016cc=this['_makeIdsRoot'](_0x110e41);this[_0x48e7('0x4')][_0x48e7('0xda')](_0x397dff,_0x1016cc);for(const [_0x356d59,_0x3c423d]of _0x110e41[_0x48e7('0x83')]){if(!_0x356d59[_0x48e7('0xfb')](_0x48e7('0x4b')))continue;const _0x1f8060=_0x356d59['split'](':')[0x2];for(const _0x4cd06b of _0x3c423d[_0x48e7('0x8b')]({'singleCharacters':!0x0})){const _0x3678bd=this['_getVidAttributeName'](_0x4cd06b),_0x26f049=_0x48e7('0xa6')==_0x4cd06b[_0x48e7('0x9b')]?_0x4cd06b[_0x48e7('0x17')][_0x48e7('0x4a')]['slice'](0x0,-0x1):_0x4cd06b['previousPosition'][_0x48e7('0x4a')],_0x39a48f=_0x1016cc[_0x48e7('0x24')](_0x26f049)[_0x48e7('0x4f')](_0x3678bd);this[_0x48e7('0x6a')][_0x48e7('0xda')](_0x39a48f,{'userId':_0x1f8060});}}}this[_0x48e7('0xaf')]=this['_revisionId'];const _0x3926eb=[...Array(this[_0x48e7('0x38')])['keys']()][_0x48e7('0x8d')](0x1)[_0x48e7('0xf2')](_0x5a34d8=>!this['_touched'][_0x48e7('0xa2')](_0x5a34d8));let _0x50c756=0x0;const _0x5423ad=new Map();for(const _0x3dbd67 in _0x2e817c[_0x48e7('0x19')]){const _0x264c44=_0x2e817c[_0x48e7('0x19')][_0x3dbd67]['attachChange'],_0x2494ab=_0x186c6b(_0x2e817c[_0x48e7('0x19')][_0x3dbd67][_0x48e7('0x30')])||{},_0x4b280c=this[_0x48e7('0x66')](_0x2e817c[_0x48e7('0x19')][_0x3dbd67][_0x48e7('0xec')]);_0x4b280c[_0x48e7('0xb3')]=_0x3dbd67,_0x4b280c[_0x48e7('0x82')]=!_0x264c44||_0x264c44[_0x48e7('0xc0')],_0x4b280c['isAttached']=()=>_0x4b280c[_0x48e7('0x82')],this[_0x48e7('0x44')][_0x48e7('0xda')](_0x3dbd67,_0x4b280c),this['_diffRootsAttributes'][_0x48e7('0xda')](_0x3dbd67,_0x2494ab);const _0x45ad30=this[_0x48e7('0x59')](_0x4b280c,Number[_0x48e7('0x58')]);this[_0x48e7('0xcd')][_0x48e7('0xda')](_0x3dbd67,_0x45ad30),_0x5423ad['set'](_0x3dbd67,_0x4b280c[_0x48e7('0xc0')]()?_0x2494ab:{});for(const [_0x7a494a,_0x176dd8]of _0x4b280c[_0x48e7('0x83')]){if(!_0x7a494a[_0x48e7('0xfb')]('revision:'))continue;const _0x5d4dd7=_0x7a494a[_0x48e7('0x1a')](':')[0x2];for(const _0x53039d of _0x176dd8[_0x48e7('0x8b')]({'singleCharacters':!0x0})){const _0x8993b2=this[_0x48e7('0x14')](_0x53039d),_0xeb092=this[_0x48e7('0x38')]++,_0x449913='elementEnd'==_0x53039d[_0x48e7('0x9b')]?_0x53039d[_0x48e7('0x17')][_0x48e7('0x4a')][_0x48e7('0x8d')](0x0,-0x1):_0x53039d[_0x48e7('0x17')][_0x48e7('0x4a')];_0x45ad30['getNodeByPath'](_0x449913)['_setAttribute'](_0x8993b2,_0xeb092),this[_0x48e7('0x6a')][_0x48e7('0xda')](_0xeb092,{'userId':_0x5d4dd7});}}for(const _0x5952f0 of this['editor']['model'][_0x48e7('0xc8')](_0x4b280c)[_0x48e7('0x8b')]({'singleCharacters':!0x0})){const _0x3d1134=this[_0x48e7('0x14')](_0x5952f0),_0xd64854=_0x48e7('0xa6')==_0x5952f0[_0x48e7('0x9b')]?_0x5952f0['previousPosition'][_0x48e7('0x4a')][_0x48e7('0x8d')](0x0,-0x1):_0x5952f0[_0x48e7('0x17')][_0x48e7('0x4a')],_0x50dd85=_0x45ad30[_0x48e7('0x24')](_0xd64854);_0x50dd85[_0x48e7('0x4f')](_0x3d1134)>0x0||_0x50dd85[_0x48e7('0x25')](_0x3d1134,_0x3926eb[_0x50c756++]);}for(const [_0x512999,_0x20a10f]of _0x4b280c[_0x48e7('0x83')])_0x512999[_0x48e7('0xfb')](_0x48e7('0x4b'))||this[_0x48e7('0xfe')]['set'](_0x512999,_0x20a10f);}const _0x1ddf91=G('$graveyard');this[_0x48e7('0x18')][_0x48e7('0xda')](_0x48e7('0x9a'),_0x1ddf91),this['_baseIdsRoots'][_0x48e7('0xda')](_0x48e7('0x9a'),this['_makeIdsRoot'](_0x1ddf91,0x1));const _0x4ca865=G(_0x48e7('0x9a'));this['_diffRoots'][_0x48e7('0xda')](_0x48e7('0x9a'),_0x4ca865),this[_0x48e7('0xcd')]['set'](_0x48e7('0x9a'),this[_0x48e7('0x59')](_0x4ca865,0x1));const _0x3b8f39=Array['from'](this[_0x48e7('0x44')])['map'](([_0x3aaa21,_0x9c4019])=>[_0x3aaa21,q(_0x9c4019)]);this[_0x48e7('0x63')](this[_0x48e7('0x84')],_0x3b8f39,this[_0x48e7('0xfe')],_0x5423ad);}[_0x48e7('0x66')](_0x20cb8b){const _0x38709b=JSON[_0x48e7('0x27')](_0x20cb8b),_0x27eb69=this[_0x48e7('0xd0')][_0x48e7('0xbb')]['view'][_0x48e7('0x50')],_0x42c957=new _0x2d79ab(_0x27eb69,_0x38709b['map'](_0x47e958=>J(_0x47e958,this[_0x48e7('0xd0')])));return this[_0x48e7('0xd0')]['data'][_0x48e7('0x28')](_0x42c957);}[_0x48e7('0x63')](_0x5b03c4,_0x2e5e87,_0x4cb567,_0x3316ec){const _0x4a3d29=new Map(_0x2e5e87),_0x11d128=new Map(_0x186c6b(_0x3316ec)),_0x3c83c6=new Map();for(const [_0x270ee6,_0x16a6f6]of _0x4cb567)_0x3c83c6[_0x48e7('0xda')](_0x270ee6,{'start':_0x16a6f6[_0x48e7('0xdf')][_0x48e7('0x72')](),'end':_0x16a6f6[_0x48e7('0x41')][_0x48e7('0x72')](),'rootName':_0x16a6f6[_0x48e7('0xd4')][_0x48e7('0xb3')]});this['_savedMetaData']['set'](_0x5b03c4,{'roots':_0x4a3d29,'markers':_0x3c83c6,'rootsAttributes':_0x11d128});}['_removeMetaData'](_0x270ed6){this[_0x48e7('0xe2')][_0x48e7('0xfd')](_0x270ed6);}['reInit'](){this[_0x48e7('0xb2')](),this['_lastFrom']=-0x1,this[_0x48e7('0x84')]=-0x1,this[_0x48e7('0xe2')][_0x48e7('0x6')](),this[_0x48e7('0xfc')](this[_0x48e7('0xc4')]);}[_0x48e7('0xb2')](){this[_0x48e7('0x6a')]['clear'](),this[_0x48e7('0x98')][_0x48e7('0x6')](),this['_touchedRoots'][_0x48e7('0x6')](),this[_0x48e7('0x44')][_0x48e7('0x6')](),this[_0x48e7('0xcb')][_0x48e7('0x6')](),this['_baseRoots'][_0x48e7('0x6')](),this[_0x48e7('0x42')][_0x48e7('0x6')](),this[_0x48e7('0xcd')][_0x48e7('0x6')](),this[_0x48e7('0x4')][_0x48e7('0x6')](),this['_markers'][_0x48e7('0x6')](),this['_revisionId']=0x1,this[_0x48e7('0xaf')]=this[_0x48e7('0x38')];}['_makeIdsRoot'](_0x5c87cf,_0x5f8dfe=null){let _0x4cd058=null;_0x5c87cf['is'](_0x48e7('0xb8'))||(_0x4cd058=new _0x118471(_0x5c87cf[_0x48e7('0xad')],{'vid_start':null===_0x5f8dfe?this[_0x48e7('0x38')]++:_0x5f8dfe++}));const _0x4c6525=[];for(const _0x49dcd3 of _0x5c87cf[_0x48e7('0x7d')]())if(_0x49dcd3['is'](_0x48e7('0xd5'))){_0x4c6525['push'](this[_0x48e7('0x59')](_0x49dcd3,_0x5f8dfe));const _0xc63b76=_0x4c6525[_0x4c6525[_0x48e7('0x101')]-0x1];null!==_0x5f8dfe&&(_0x5f8dfe=_0xc63b76['is'](_0x48e7('0xd5'),_0x48e7('0xa7'))?_0xc63b76['getAttribute'](_0x48e7('0xa3'))+0x1:_0xc63b76[_0x48e7('0x4f')]('vid_end')+0x1);}else for(let _0x636c18=0x0;_0x636c18<_0x49dcd3[_0x48e7('0xcc')];_0x636c18++)_0x4c6525[_0x48e7('0x6e')](new _0x118471('$text',{'vid':null===_0x5f8dfe?this[_0x48e7('0x38')]++:_0x5f8dfe++}));if(_0x5c87cf['is'](_0x48e7('0xb8'))){const _0x3796d3=G(_0x5c87cf[_0x48e7('0xb3')]);return _0x3796d3[_0x48e7('0x64')](0x0,_0x4c6525),_0x3796d3;}return _0x4cd058[_0x48e7('0x25')](_0x48e7('0x51'),null===_0x5f8dfe?this[_0x48e7('0x38')]++:_0x5f8dfe++),_0x4cd058[_0x48e7('0x64')](0x0,_0x4c6525),_0x4cd058;}[_0x48e7('0x1f')](_0x497b16,_0x2369a6,_0x2191cc){this[_0x48e7('0xb2')]();const {roots:_0x4e1139,markers:_0x3c8e59,rootsAttributes:_0x567645}=this[_0x48e7('0xe2')][_0x48e7('0xce')](_0x497b16);this[_0x48e7('0x18')]=new Map(_0x4e1139),this[_0x48e7('0x42')]=new Map(_0x186c6b(_0x567645));for(const [_0x573921,_0x399cc7]of this[_0x48e7('0x18')])if(_0x48e7('0x9a')!==_0x573921&&(this[_0x48e7('0x44')][_0x48e7('0xda')](_0x573921,q(_0x399cc7)),this[_0x48e7('0xcb')]=new Map(_0x186c6b(_0x567645)),_0x2191cc)){const _0x37f075=this['_revisionId'];this[_0x48e7('0xcd')][_0x48e7('0xda')](_0x573921,this[_0x48e7('0x59')](_0x399cc7)),this[_0x48e7('0x4')][_0x48e7('0xda')](_0x573921,this[_0x48e7('0x59')](_0x399cc7,_0x37f075));}this[_0x48e7('0xaf')]=this['_revisionId'],this[_0x48e7('0x44')]['set'](_0x48e7('0x9a'),q(this['_baseRoots']['get']('$graveyard'))),_0x2191cc&&this[_0x48e7('0xcd')]['set'](_0x48e7('0x9a'),this[_0x48e7('0x59')](this[_0x48e7('0x18')]['get'](_0x48e7('0x9a'))));for(const [_0x10f9da,_0x1931ed]of _0x3c8e59){const _0x5d725c=this[_0x48e7('0x18')][_0x48e7('0xce')](_0x1931ed[_0x48e7('0xb3')]),_0x143abc=this[_0x48e7('0x44')][_0x48e7('0xce')](_0x1931ed['rootName']),_0x3a63d1=new _0xbc7ce5(this[_0x48e7('0xb6')](_0x1931ed[_0x48e7('0xdf')],_0x5d725c),this[_0x48e7('0xb6')](_0x1931ed[_0x48e7('0x41')],_0x5d725c)),_0x1b8464=this[_0x48e7('0x35')](_0x3a63d1,_0x143abc);_0x5d725c[_0x48e7('0x83')][_0x48e7('0xda')](_0x10f9da,_0x3a63d1),this[_0x48e7('0xfe')]['set'](_0x10f9da,_0x1b8464);}this['_applyOperations'](_0x497b16,_0x2369a6,_0x2191cc);}[_0x48e7('0x6c')](_0x22c69e,_0x50554b,_0x174b69){for(const _0x160ce2 of this['source'][_0x48e7('0x9d')](_0x22c69e,_0x50554b))this[_0x48e7('0xaa')](_0x160ce2,_0x174b69);for(const _0x19a97a of this[_0x48e7('0x44')][_0x48e7('0x9e')]())_0x19a97a[_0x48e7('0x83')][_0x48e7('0x6')]();for(const [_0x131047,_0x2e32de]of this[_0x48e7('0xfe')]){this[_0x48e7('0x44')]['get'](_0x2e32de['root'][_0x48e7('0xb3')])[_0x48e7('0x83')]['set'](_0x131047,_0x2e32de[_0x48e7('0x72')]());}const _0x121520=new Map(),_0x1d9d2e=new Map();for(const [_0x14861b,_0x15e0b8]of this['_diffRoots'])_0x121520[_0x48e7('0xda')](_0x14861b,q(_0x15e0b8)),_0x1d9d2e[_0x48e7('0xda')](_0x14861b,this[_0x48e7('0xcb')][_0x48e7('0xce')](_0x14861b));this[_0x48e7('0x63')](_0x50554b,_0x121520,this[_0x48e7('0xfe')],_0x1d9d2e);}['_getPreviousFrom'](_0x3b25e1){const _0x4ed26d=Array['from'](this[_0x48e7('0xe2')]['keys']());_0x4ed26d[_0x48e7('0x62')]((_0x3eba66,_0x105c7b)=>_0x3eba66-_0x105c7b),_0x4ed26d[_0x48e7('0xbd')]();for(const _0x3d7026 of _0x4ed26d)if(_0x3d7026<_0x3b25e1)return _0x3d7026;return Number[_0x48e7('0x58')];}[_0x48e7('0x94')](_0x163639,_0x35ab40){const _0x2ac95d=Array[_0x48e7('0x96')](_0x35ab40[_0x48e7('0x83')])[_0x48e7('0x77')](([_0x5a9025,_0x4b5aa2])=>[_0x5a9025,this[_0x48e7('0x35')](_0x4b5aa2,_0x163639)]);_0x163639[_0x48e7('0x83')]=new Map(_0x2ac95d);}[_0x48e7('0x89')](_0x522402){for(const _0x26046c of this[_0x48e7('0xfe')][_0x48e7('0x9e')]()){const _0x5e2140=_0x26046c[_0x48e7('0x5f')](_0x522402),_0x266bec=_0xbc7ce5[_0x48e7('0x8a')](_0x5e2140);_0x26046c[_0x48e7('0xdf')]=_0x266bec[_0x48e7('0xdf')],_0x26046c['end']=_0x266bec[_0x48e7('0x41')];}}[_0x48e7('0xaa')](_0x3efe22,_0x4173e0){if(_0x48e7('0xea')==_0x3efe22[_0x48e7('0x9b')]||_0x48e7('0xf')==_0x3efe22[_0x48e7('0x9b')])return void this[_0x48e7('0xd8')](_0x3efe22,_0x4173e0);if('insert'==_0x3efe22[_0x48e7('0x9b')]){const _0x279ae7=_0x3efe22[_0x48e7('0x4c')][_0x48e7('0xd4')]['rootName'];this[_0x48e7('0x44')][_0x48e7('0xa2')](_0x279ae7)||(this[_0x48e7('0x44')][_0x48e7('0xda')](_0x279ae7,G(_0x279ae7,!0x0)),this['_diffRootsAttributes'][_0x48e7('0xda')](_0x279ae7,{}),_0x4173e0&&this[_0x48e7('0xcd')]['set'](_0x279ae7,G(_0x279ae7,!0x0)));}else{if(_0x48e7('0x105')==_0x3efe22[_0x48e7('0x9b')]||_0x48e7('0xa9')==_0x3efe22[_0x48e7('0x9b')]||_0x48e7('0x7c')==_0x3efe22['type'])return void this[_0x48e7('0x3e')](_0x3efe22);}const _0x57feb7=this[_0x48e7('0x74')](_0x3efe22,this['_diffRoots']);if(_0x48e7('0x10a')!==_0x3efe22[_0x48e7('0x9b')]&&(_0x57feb7[_0x48e7('0xe7')](),this[_0x48e7('0x89')](_0x57feb7)),_0x4173e0)switch(_0x57feb7[_0x48e7('0x9b')]){case _0x48e7('0x5c'):this[_0x48e7('0x13')](_0x3efe22);break;case _0x48e7('0x1d'):case _0x48e7('0xe4'):case _0x48e7('0x87'):this['_handleMoveOperation'](_0x3efe22);break;case _0x48e7('0xa8'):this[_0x48e7('0x1e')](_0x3efe22);break;case _0x48e7('0x1a'):this['_handleSplitOperation'](_0x3efe22);break;case _0x48e7('0x10a'):this[_0x48e7('0xd3')](_0x3efe22);}}[_0x48e7('0x74')](_0x5527c7,_0x455693){const _0x44a532=_0x5527c7[_0x48e7('0x72')]();return _0x44a532[_0x48e7('0xf9')]=_0x5527c7['_authorId'],this[_0x48e7('0xb5')](_0x44a532,_0x455693),_0x44a532;}[_0x48e7('0x88')](_0x148c84){return _0x148c84[_0x48e7('0x77')](_0x15fdc5=>{const _0x349552=this[_0x48e7('0x14')](_0x15fdc5);return Number(_0x15fdc5[_0x48e7('0x99')][_0x48e7('0x4f')](_0x349552));});}['_generateTape'](_0x9c4e2c,_0x122b1d){if(_0x9c4e2c['is']('element',_0x48e7('0xa7')))_0x122b1d[_0x48e7('0x6e')]({'item':_0x9c4e2c,'type':_0x48e7('0x39')});else{_0x9c4e2c['is'](_0x48e7('0xd5'))&&_0x122b1d['push']({'item':_0x9c4e2c,'type':_0x48e7('0xf3')});for(const _0x4be89f of _0x9c4e2c[_0x48e7('0x7d')]())this[_0x48e7('0x3b')](_0x4be89f,_0x122b1d);_0x9c4e2c['is'](_0x48e7('0xd5'))&&_0x122b1d[_0x48e7('0x6e')]({'item':_0x9c4e2c,'type':'elementEnd'});}return _0x122b1d;}[_0x48e7('0xa4')](){const _0x1ba934=new Map(this['_touched']),_0x1d312c=new Map(_0x1ba934),_0x353f68=new Map(),_0x98d584={'insertions':{},'deletions':{}},_0x3edd9f={'insertions':{},'deletions':{}},_0x3b33ab=new Map(),_0x44f475=new Set([...this[_0x48e7('0x18')]['keys'](),...this[_0x48e7('0x44')][_0x48e7('0x107')]()]);_0x44f475[_0x48e7('0xfd')](_0x48e7('0x9a'));for(const _0x753560 of _0x44f475){const _0x41ade8=this[_0x48e7('0x44')][_0x48e7('0xce')](_0x753560)||G(_0x753560,!0x1),_0x4d11c8=this[_0x48e7('0x18')][_0x48e7('0xce')](_0x753560)||G(_0x753560,!0x1);_0x41ade8[_0x48e7('0xc0')]()||_0x4d11c8[_0x48e7('0xc0')]()?(_0x98d584[_0x48e7('0xec')][_0x753560]=q(_0x41ade8),_0x98d584[_0x48e7('0xc5')][_0x753560]=q(_0x4d11c8),this[_0x48e7('0x94')](_0x98d584[_0x48e7('0xc5')][_0x753560],_0x4d11c8),this[_0x48e7('0x94')](_0x98d584[_0x48e7('0xec')][_0x753560],_0x41ade8),_0x3edd9f['insertions'][_0x753560]=this[_0x48e7('0x3b')](this[_0x48e7('0xcd')][_0x48e7('0xce')](_0x753560),[]),_0x3edd9f['deletions'][_0x753560]=this[_0x48e7('0x3b')](this[_0x48e7('0x4')]['get'](_0x753560)||G(_0x753560,!0x1),[])):_0x44f475[_0x48e7('0xfd')](_0x753560);}for(const _0x4a3dbf of _0x44f475){const _0x1aea10=_0x3edd9f[_0x48e7('0xec')][_0x4a3dbf];for(const _0x3f7b7e of _0x1aea10){const _0x1c3f14=this[_0x48e7('0x14')](_0x3f7b7e),_0x90f0d5=_0x3f7b7e[_0x48e7('0x99')]['getAttribute'](_0x1c3f14);_0x1d312c[_0x48e7('0xfd')](_0x90f0d5),_0x90f0d5>=this[_0x48e7('0xaf')]&&_0x353f68[_0x48e7('0xda')](_0x90f0d5,_0x1ba934['get'](_0x90f0d5));}}for(const _0x348e82 of _0x44f475){const _0x518a69=_0x3edd9f[_0x48e7('0xec')][_0x348e82],_0xf466ac=this[_0x48e7('0x88')](_0x3edd9f[_0x48e7('0xc5')][_0x348e82]);let _0x9e577=0x0;for(const _0x3980d1 of _0x518a69){const _0x284d19=this[_0x48e7('0x14')](_0x3980d1),_0x365f75=_0x3980d1[_0x48e7('0x99')][_0x48e7('0x4f')](_0x284d19);if(!_0x353f68[_0x48e7('0xa2')](_0x365f75)&&!_0x3b33ab[_0x48e7('0xa2')](_0x365f75)){if(_0x1d312c[_0x48e7('0xa2')](_0x365f75))_0x9e577++;else{if(_0x365f75!=_0xf466ac[_0x9e577]){const _0x597e20=_0x1ba934[_0x48e7('0xce')](_0x365f75)||_0x1ba934[_0x48e7('0xce')](_0xf466ac[_0x9e577]);for(;_0x365f75!=_0xf466ac[_0x9e577];)_0x1d312c[_0x48e7('0xa2')](_0xf466ac[_0x9e577])||(_0x3b33ab[_0x48e7('0xda')](_0xf466ac[_0x9e577],_0x597e20),_0x1ba934['set'](_0xf466ac[_0x9e577],_0x597e20)),_0x9e577++;}_0x9e577++;}}}}for(const _0x29cba3 of _0x44f475){const _0x2bff18=_0x3edd9f[_0x48e7('0xec')][_0x29cba3];for(const _0x54cd83 of _0x2bff18){const _0x5e6450=this['_getVidAttributeName'](_0x54cd83),_0x5c463a=_0x54cd83['item'][_0x48e7('0x4f')](_0x5e6450);if(_0x3b33ab[_0x48e7('0xa2')](_0x5c463a)){const _0x571f85=_0x3b33ab[_0x48e7('0xce')](_0x5c463a);_0x1d312c[_0x48e7('0xa2')](_0x5c463a)||_0x1d312c[_0x48e7('0xda')](_0x5c463a,{..._0x571f85}),_0x353f68[_0x48e7('0xda')](_0x5c463a,{..._0x571f85});}}}for(const _0x35e818 of _0x1d312c[_0x48e7('0x107')]())_0x35e818>=this[_0x48e7('0xaf')]&&_0x1d312c[_0x48e7('0xfd')](_0x35e818);const _0x422d1d=new Map();for(const _0x13c3cd of _0x44f475){let _0x2d6c33=_0x3edd9f[_0x48e7('0xec')][_0x13c3cd];for(const _0x2b79a2 of _0x2d6c33)if(_0x2b79a2[_0x48e7('0x99')]['is'](_0x48e7('0xd5'),_0x48e7('0x79'))){const _0x36a999=this['_getVidAttributeName'](_0x2b79a2),_0x55dd95=_0x2b79a2[_0x48e7('0x99')][_0x48e7('0x4f')](_0x36a999);if(_0x353f68[_0x48e7('0xa2')](_0x55dd95)){const _0x10e9b7=_0x2b79a2[_0x48e7('0x99')][_0x48e7('0xc7')]['parent'][_0x48e7('0x4f')]('vid_start'),_0x5281f5=_0x422d1d['get'](_0x10e9b7)||new Set();_0x5281f5[_0x48e7('0xe8')](_0x353f68[_0x48e7('0xce')](_0x55dd95)[_0x48e7('0x12')]),_0x422d1d[_0x48e7('0xda')](_0x10e9b7,_0x5281f5);}}_0x2d6c33=_0x3edd9f[_0x48e7('0xc5')][_0x13c3cd];for(const _0x3ff691 of _0x2d6c33)if(_0x3ff691[_0x48e7('0x99')]['is'](_0x48e7('0xd5'),'tableCell')){const _0x5297ad=this['_getVidAttributeName'](_0x3ff691),_0x584eef=_0x3ff691[_0x48e7('0x99')][_0x48e7('0x4f')](_0x5297ad);if(_0x1d312c['has'](_0x584eef)){const _0x2403f1=_0x3ff691[_0x48e7('0x99')][_0x48e7('0xc7')][_0x48e7('0xc7')][_0x48e7('0x4f')](_0x48e7('0x2b')),_0x45ca47=_0x422d1d[_0x48e7('0xce')](_0x2403f1)||new Set();_0x45ca47['add'](_0x1d312c[_0x48e7('0xce')](_0x584eef)[_0x48e7('0x12')]),_0x422d1d[_0x48e7('0xda')](_0x2403f1,_0x45ca47);}}for(const _0x559ba3 of _0x422d1d[_0x48e7('0x107')]())(_0x353f68[_0x48e7('0xa2')](_0x559ba3)||_0x1d312c['has'](_0x559ba3))&&_0x422d1d['delete'](_0x559ba3);}for(const _0x2c1bf4 of _0x44f475){const _0x21abc2=_0x3edd9f['insertions'][_0x2c1bf4];let _0x5bf2e7=null,_0x2a0daf=null;for(const _0x5854bb of _0x21abc2){const _0xf0761b=this[_0x48e7('0x14')](_0x5854bb),_0x1d23cd=_0x5854bb['item'][_0x48e7('0x4f')](_0xf0761b),_0x5d4370=_0x422d1d[_0x48e7('0xce')](_0x1d23cd);_0x5d4370&&_0x48e7('0xf3')==_0x5854bb[_0x48e7('0x9b')]&&(_0x5bf2e7=Array['from'](_0x5d4370)[0x0],_0x2a0daf=_0x5854bb[_0x48e7('0x99')][_0x48e7('0x4f')](_0x48e7('0x51'))),_0x5bf2e7&&(_0x1d312c[_0x48e7('0xda')](_0x1d23cd,{'userId':_0x5bf2e7}),_0x353f68['set'](_0x1d23cd,{'userId':_0x5bf2e7})),_0x1d23cd==_0x2a0daf&&(_0x5bf2e7=null,_0x2a0daf=null);}}const _0x432032={},_0x25b0e2=new Set();for(const _0x602ff5 of _0x44f475){const _0x4a7a81=_0x98d584['deletions'][_0x602ff5],_0x1b96ee=_0x98d584[_0x48e7('0xec')][_0x602ff5];for(const {userId:_0x295eaf}of this[_0x48e7('0x98')][_0x48e7('0x9e')]())null!==_0x295eaf&&_0x25b0e2[_0x48e7('0xe8')](_0x295eaf);for(const {userId:_0x586fc0}of this[_0x48e7('0x71')][_0x48e7('0x9e')]())null!==_0x586fc0&&_0x25b0e2['add'](_0x586fc0);this[_0x48e7('0xf6')](_0x1b96ee,_0x3edd9f[_0x48e7('0xec')][_0x602ff5],_0x353f68,_0x48e7('0x4d'),_0x25b0e2),this['_markChanges'](_0x4a7a81,_0x3edd9f[_0x48e7('0xc5')][_0x602ff5],_0x1d312c,'deletion',_0x25b0e2),_0x432032[_0x602ff5]={'insertions':this['_prepareViewToSave'](_0x1b96ee),'deletions':this['_prepareViewToSave'](_0x4a7a81),'attachChange':this[_0x48e7('0x71')][_0x48e7('0xce')](_0x602ff5)||null,'attributesBefore':_0x186c6b(this[_0x48e7('0x42')][_0x48e7('0xce')](_0x602ff5))||{},'attributesAfter':_0x186c6b(this[_0x48e7('0xcb')][_0x48e7('0xce')](_0x602ff5))};}return{'diffData':_0x432032,'authorsIds':Array[_0x48e7('0x96')](_0x25b0e2)};}[_0x48e7('0x36')](_0xd007aa){for(const [,_0x1bcfc1]of _0xd007aa[_0x48e7('0x83')]){const _0x244720=_0x1bcfc1[_0x48e7('0xdf')][_0x48e7('0xab')]()['filter'](_0x411e02=>_0x48e7('0x79')==_0x411e02[_0x48e7('0xad')]);for(const _0x3d9e62 of _0x244720)0x1==_0x3d9e62[_0x48e7('0xb1')]&&_0x3d9e62['getChild'](0x0)['is']('element',_0x48e7('0x60'))&&_0x3d9e62['getChild'](0x0)[_0x48e7('0x25')](_0x48e7('0xdd'),!0x0);}}[_0x48e7('0x61')](_0x499fe3){this[_0x48e7('0x36')](_0x499fe3);const _0xa88b54=this[_0x48e7('0xd0')][_0x48e7('0x90')][_0x48e7('0xef')](_0x499fe3,{}),_0x2cab3a=Array[_0x48e7('0x96')](_0xa88b54[_0x48e7('0x7d')]())['map'](_0x373a0d=>this[_0x48e7('0x68')](_0x373a0d));return JSON['stringify'](_0x2cab3a);}[_0x48e7('0x68')](_0x7936f5){if(_0x7936f5['is'](_0x48e7('0xa7')))return _0x7936f5['data'];{const _0x28757e=_0x7936f5;return{'type':Object[_0x48e7('0x107')](B)['find'](_0x3d5b3b=>_0x7936f5 instanceof B[_0x3d5b3b]),'name':_0x28757e[_0x48e7('0xad')],'attributes':Array[_0x48e7('0x96')](_0x28757e[_0x48e7('0xeb')]()),'children':Array[_0x48e7('0x96')](_0x28757e[_0x48e7('0x7d')]())[_0x48e7('0x77')](_0x390357=>this[_0x48e7('0x68')](_0x390357))};}}[_0x48e7('0xf6')](_0x4db3f6,_0x2ab7ea,_0xfc3209,_0x2f0368,_0x41aafb){let _0x5a1b29=null,_0x1cec98=null,_0x535500=0x0;const _0x2e268e=this[_0x48e7('0xd0')][_0x48e7('0xf5')];for(let _0x1459f6=0x0;_0x1459f6<_0x2ab7ea[_0x48e7('0x101')];_0x1459f6++){const _0x7536d8=this[_0x48e7('0x14')](_0x2ab7ea[_0x1459f6]),_0x39dfa1=_0x2ab7ea[_0x1459f6]['item'][_0x48e7('0x4f')](_0x7536d8),_0x343289=_0xfc3209['get'](_0x39dfa1),_0x3fd917=_0x1459f6==_0x2ab7ea[_0x48e7('0x101')]-0x1;(!_0x5a1b29&&_0x343289&&(_0x5a1b29=_0x343289,_0x1cec98=_0x2ab7ea[_0x1459f6]),_0x5a1b29&&(!_0x343289||_0x343289[_0x48e7('0x12')]!=_0x5a1b29['userId']))&&(_0x314552(_0x343289,L(_0x1cec98,_0x4db3f6,_0x2e268e),L(_0x2ab7ea[_0x1459f6],_0x4db3f6,_0x2e268e)),_0x5a1b29=_0x343289||null,_0x1cec98=_0x343289?_0x2ab7ea[_0x1459f6]:null),_0x5a1b29&&_0x3fd917&&_0x314552(_0x343289,L(_0x1cec98,_0x4db3f6,_0x2e268e),W(_0x2ab7ea[_0x1459f6],_0x4db3f6,_0x2e268e));}function _0x314552(_0xd510a5,_0x5d2c36,_0x1ea7b3){const _0x383a6b=_0x5a1b29[_0x48e7('0x12')],_0x18e718=_0x48e7('0x4b')+_0x2f0368+':'+_0x383a6b+':'+_0x535500++,_0x1e383d=_0x2e268e[_0x48e7('0x54')](_0x5d2c36,_0x1ea7b3);_0x4db3f6[_0x48e7('0x83')][_0x48e7('0xda')](_0x18e718,_0x1e383d),null!==_0x383a6b&&_0x41aafb[_0x48e7('0xe8')](_0x383a6b);}}[_0x48e7('0x14')](_0x485a7b){switch(_0x485a7b[_0x48e7('0x9b')]){case _0x48e7('0xf3'):return'vid_start';case _0x48e7('0xa6'):return _0x48e7('0x51');default:return'vid';}}[_0x48e7('0xb5')](_0x2e0846,_0x19df62){_0x2e0846['baseVersion']=null;for(const _0x20fff3 in _0x2e0846){const _0x5bf6da=_0x2e0846[_0x20fff3];if(_0x5bf6da instanceof _0x4aad63){const _0x2bc50f=_0x19df62['get'](_0x5bf6da[_0x48e7('0xd4')][_0x48e7('0xb3')]);_0x2e0846[_0x20fff3]=this['_fixPosition'](_0x5bf6da,_0x2bc50f);}if(_0x5bf6da instanceof _0xbc7ce5){const _0x59b513=_0x19df62[_0x48e7('0xce')](_0x5bf6da[_0x48e7('0xd4')]['rootName']);_0x2e0846[_0x20fff3]=this[_0x48e7('0x35')](_0x5bf6da,_0x59b513);}_0x48e7('0xd4')===_0x20fff3&&(_0x2e0846[_0x48e7('0xd4')]=_0x19df62[_0x48e7('0xce')](_0x2e0846[_0x48e7('0xd4')]['rootName']));}}[_0x48e7('0x35')](_0x27e3ac,_0x398795){return this[_0x48e7('0xd0')][_0x48e7('0xf5')][_0x48e7('0x54')](this[_0x48e7('0xb6')](_0x27e3ac[_0x48e7('0xdf')],_0x398795),this[_0x48e7('0xb6')](_0x27e3ac['end'],_0x398795));}['_fixPosition'](_0x1d008d,_0x2e03cd){return this['editor'][_0x48e7('0xf5')][_0x48e7('0x1b')](_0x2e03cd,_0x1d008d[_0x48e7('0x4a')],_0x1d008d[_0x48e7('0xde')]);}[_0x48e7('0x13')](_0x50d36d){const _0x2e3c88=this['_idsRoots'][_0x48e7('0xce')](_0x50d36d['position'][_0x48e7('0xd4')]['rootName']),_0x14906d=this['_fixPosition'](_0x50d36d[_0x48e7('0x4c')],_0x2e3c88),_0x583a1a=null===_0x50d36d[_0x48e7('0xf9')]?null:_0x50d36d['_authorId']||this[_0x48e7('0xd0')][_0x48e7('0x69')][_0x48e7('0xce')](_0x48e7('0xf8'))['me']['id'],_0xd7431=_0x14906d[_0x48e7('0xc7')],_0x129645=this[_0x48e7('0x38')],_0x28f511=[];for(const _0xc127c0 of _0x50d36d['nodes'])if(_0xc127c0['is'](_0x48e7('0xd5')))_0x28f511[_0x48e7('0x6e')](this[_0x48e7('0x59')](_0xc127c0));else for(let _0x57599a=0x0;_0x57599a<_0xc127c0[_0x48e7('0xcc')];_0x57599a++)_0x28f511[_0x48e7('0x6e')](new _0x118471(_0x48e7('0xa7'),{'vid':this['_revisionId']++}));const _0x1cad51=this[_0x48e7('0x38')];for(let _0x5be5ae=_0x129645;_0x5be5ae<_0x1cad51;_0x5be5ae++)this[_0x48e7('0x6a')]['set'](_0x5be5ae,{'userId':_0x583a1a});_0xd7431[_0x48e7('0x64')](_0x14906d[_0x48e7('0xed')],_0x28f511);}[_0x48e7('0x53')](_0x559fed){(_0x559fed=this[_0x48e7('0x74')](_0x559fed,this[_0x48e7('0xcd')]))[_0x48e7('0xe7')]();const _0x3d8008=null===_0x559fed[_0x48e7('0xf9')]?null:_0x559fed[_0x48e7('0xf9')]||this[_0x48e7('0xd0')][_0x48e7('0x69')][_0x48e7('0xce')](_0x48e7('0xf8'))['me']['id'],_0x2c8c97=_0x559fed[_0x48e7('0x7b')](),_0x3e3bda=_0x2c8c97[_0x48e7('0xc7')],_0x41de16=_0x2c8c97['offset'];!function _0x351d3e(_0x5aa4bc,_0x2dcc13,_0x5064e1,_0x2d5c8b){for(let _0x2485e4=_0x5064e1;_0x2485e4<_0x2d5c8b;_0x2485e4++){const _0x5ec790=_0x2dcc13[_0x48e7('0xc2')](_0x2485e4);_0x5ec790['is'](_0x48e7('0xd5'),'$text')?_0x5aa4bc[_0x48e7('0xda')](_0x5ec790[_0x48e7('0x4f')](_0x48e7('0xa3')),{'userId':_0x3d8008}):(_0x5aa4bc[_0x48e7('0xda')](_0x5ec790['getAttribute']('vid_start'),{'userId':_0x3d8008}),_0x351d3e(_0x5aa4bc,_0x5ec790,0x0,_0x5ec790[_0x48e7('0xb1')]),_0x5aa4bc['set'](_0x5ec790[_0x48e7('0x4f')](_0x48e7('0x51')),{'userId':_0x3d8008}));}}(this[_0x48e7('0x6a')],_0x3e3bda,_0x41de16,_0x41de16+_0x559fed[_0x48e7('0x15')]);}[_0x48e7('0x1e')](_0x9f6f10){const _0x5ecedf=null===(_0x9f6f10=this[_0x48e7('0x74')](_0x9f6f10,this[_0x48e7('0xcd')]))[_0x48e7('0xf9')]?null:_0x9f6f10['_authorId']||this[_0x48e7('0xd0')][_0x48e7('0x69')][_0x48e7('0xce')](_0x48e7('0xf8'))['me']['id'],_0x1948a5=_0x9f6f10[_0x48e7('0xe9')][_0x48e7('0xc7')],_0x59c094=_0x9f6f10[_0x48e7('0x47')][_0x48e7('0xc7')],_0x2fee03=_0x1948a5[_0x48e7('0x4f')]('vid_end'),_0x49007b=_0x59c094[_0x48e7('0x4f')](_0x48e7('0x2b'));_0x1948a5[_0x48e7('0x25')](_0x48e7('0x51'),_0x59c094[_0x48e7('0x4f')](_0x48e7('0x51'))),_0x59c094[_0x48e7('0x25')]('vid_end',_0x2fee03),this[_0x48e7('0x6a')][_0x48e7('0xda')](_0x49007b,{'userId':_0x5ecedf}),this[_0x48e7('0x6a')][_0x48e7('0xda')](_0x2fee03,{'userId':_0x5ecedf}),_0x9f6f10[_0x48e7('0xe7')]();}['_handleSplitOperation'](_0x4168d2){const _0xb40666=null===(_0x4168d2=this[_0x48e7('0x74')](_0x4168d2,this[_0x48e7('0xcd')]))['_authorId']?null:_0x4168d2[_0x48e7('0xf9')]||this[_0x48e7('0xd0')][_0x48e7('0x69')][_0x48e7('0xce')](_0x48e7('0xf8'))['me']['id'],_0x5d4b6a=_0x4168d2[_0x48e7('0xdb')],_0x199afc=_0x4168d2['splitPosition'][_0x48e7('0xc7')];_0x4168d2[_0x48e7('0xe7')]();const _0x47a966=_0x199afc[_0x48e7('0x4f')](_0x48e7('0x51')),_0x2419ae=_0x4168d2[_0x48e7('0xcf')]['nodeAfter'];if(_0x5d4b6a){const _0x48a148=_0x2419ae[_0x48e7('0x4f')](_0x48e7('0x51')),_0x1d328b=_0x199afc['getAttribute'](_0x48e7('0x51'));_0x199afc[_0x48e7('0x25')](_0x48e7('0x51'),_0x48a148),_0x2419ae['_setAttribute']('vid_end',_0x1d328b),this[_0x48e7('0x6a')]['set'](_0x199afc[_0x48e7('0x4f')](_0x48e7('0x51')),{'userId':_0xb40666}),this[_0x48e7('0x6a')][_0x48e7('0xda')](_0x2419ae[_0x48e7('0x4f')](_0x48e7('0x2b')),{'userId':_0xb40666});}else{const _0x1c8898=this[_0x48e7('0x38')]++,_0x5e321c=this[_0x48e7('0x38')]++;_0x199afc[_0x48e7('0x25')](_0x48e7('0x51'),_0x1c8898),_0x2419ae[_0x48e7('0x25')](_0x48e7('0x2b'),_0x5e321c),_0x2419ae[_0x48e7('0x25')]('vid_end',_0x47a966),this[_0x48e7('0x6a')][_0x48e7('0xda')](_0x1c8898,{'userId':_0xb40666}),this[_0x48e7('0x6a')][_0x48e7('0xda')](_0x5e321c,{'userId':_0xb40666});}}[_0x48e7('0xd3')](_0xb0b403){if(!_0xb0b403['affectsData'])return;const _0x4c9b6a=(_0xb0b403=this[_0x48e7('0x74')](_0xb0b403,this[_0x48e7('0x44')]))[_0x48e7('0xe1')]?_0xb0b403['oldRange'][_0x48e7('0xd4')]:null,_0x410423=_0xb0b403['newRange']?_0xb0b403[_0x48e7('0x78')][_0x48e7('0xd4')]:null;_0x4c9b6a&&this[_0x48e7('0xfe')]['delete'](_0xb0b403[_0x48e7('0xad')]),_0x410423&&this[_0x48e7('0xfe')][_0x48e7('0xda')](_0xb0b403[_0x48e7('0xad')],_0xb0b403['newRange'][_0x48e7('0x72')]());const _0x337a9e=null===_0xb0b403[_0x48e7('0xf9')]?null:_0xb0b403[_0x48e7('0xf9')]||this[_0x48e7('0xd0')][_0x48e7('0x69')][_0x48e7('0xce')](_0x48e7('0xf8'))['me']['id'],_0x53241a=_0xb0b403[_0x48e7('0xad')];if(!this['_touchedMarkers'][_0x48e7('0xa2')](_0x53241a))return void this['_touchedMarkers'][_0x48e7('0xda')](_0x53241a,{'range':_0xb0b403[_0x48e7('0xe1')],'userId':_0x337a9e});const _0x37549f=this[_0x48e7('0x98')][_0x48e7('0xce')](_0x53241a),_0x50ca51=_0x37549f[_0x48e7('0x102')],_0x52cc10=_0xb0b403['newRange'];null==_0x50ca51&&null==_0x52cc10||_0x50ca51&&_0x52cc10&&_0x50ca51[_0x48e7('0xa1')](_0x52cc10)?this[_0x48e7('0x98')][_0x48e7('0xfd')](_0xb0b403[_0x48e7('0xad')]):_0x37549f[_0x48e7('0x12')]=_0x337a9e;}[_0x48e7('0xd8')](_0x5c3d22,_0x29226f){this[_0x48e7('0x44')][_0x48e7('0xa2')](_0x5c3d22[_0x48e7('0xb3')])?this[_0x48e7('0x44')][_0x48e7('0xce')](_0x5c3d22[_0x48e7('0xb3')])[_0x48e7('0x82')]=_0x5c3d22[_0x48e7('0xb7')]:(this[_0x48e7('0x44')][_0x48e7('0xda')](_0x5c3d22['rootName'],G(_0x5c3d22['rootName'],!0x0)),this['_diffRootsAttributes'][_0x48e7('0xda')](_0x5c3d22[_0x48e7('0xb3')],{}),_0x29226f&&this[_0x48e7('0xcd')][_0x48e7('0xda')](_0x5c3d22[_0x48e7('0xb3')],G(_0x5c3d22['rootName'],!0x0)));const _0x38d0e5=null===_0x5c3d22[_0x48e7('0xf9')]?null:_0x5c3d22[_0x48e7('0xf9')]||this['editor'][_0x48e7('0x69')]['get']('Users')['me']['id'],_0x591a37=this[_0x48e7('0x71')][_0x48e7('0xce')](_0x5c3d22[_0x48e7('0xb3')]);_0x591a37&&_0x591a37[_0x48e7('0x12')]===_0x38d0e5?this['_touchedRoots']['delete'](_0x5c3d22['rootName']):this['_touchedRoots'][_0x48e7('0xda')](_0x5c3d22[_0x48e7('0xb3')],{'userId':_0x38d0e5,'isAttached':_0x5c3d22['isAdd']});}[_0x48e7('0x3e')](_0x4887c0){const _0x3ab74d=this[_0x48e7('0xcb')]['get'](_0x4887c0['root'][_0x48e7('0xb3')]);null===_0x4887c0[_0x48e7('0x9f')]?delete _0x3ab74d[_0x4887c0[_0x48e7('0xbe')]]:_0x3ab74d[_0x4887c0[_0x48e7('0xbe')]]=_0x4887c0[_0x48e7('0x9f')];}}function q(_0x4d250c){const _0x2101f1=G(_0x4d250c[_0x48e7('0xb3')],_0x4d250c[_0x48e7('0xc0')]());for(const _0x5b0c9a of _0x4d250c[_0x48e7('0x7d')]()){const _0x4b8eee=_0x5b0c9a['_clone'](!0x0);_0x2101f1[_0x48e7('0x6d')](_0x4b8eee);}return _0x2101f1;}function G(_0x31cb69,_0x33a9fe=!0x0){const _0x3d685a=new _0x5dd335();return _0x3d685a['rootName']=_0x31cb69,_0x3d685a[_0x48e7('0x82')]=_0x33a9fe,_0x3d685a[_0x48e7('0xc0')]=()=>_0x3d685a[_0x48e7('0x82')],_0x3d685a;}function L(_0x1d9409,_0x496c1d,_0x383669){const _0x18d49c=_0x48e7('0xa6')==_0x1d9409['type']?_0x383669[_0x48e7('0x9c')](_0x1d9409[_0x48e7('0x99')],_0x48e7('0x41')):_0x383669[_0x48e7('0xff')](_0x1d9409[_0x48e7('0x99')]);return _0x383669['createPositionFromPath'](_0x496c1d,_0x18d49c[_0x48e7('0x4a')],_0x18d49c[_0x48e7('0xde')]);}function W(_0x5777d5,_0x341678,_0x1da19b){const _0x18016f='elementStart'==_0x5777d5[_0x48e7('0x9b')]?_0x1da19b[_0x48e7('0x9c')](_0x5777d5[_0x48e7('0x99')],0x0):_0x1da19b[_0x48e7('0xd1')](_0x5777d5[_0x48e7('0x99')]);return _0x1da19b['createPositionFromPath'](_0x341678,_0x18016f['path'],_0x18016f[_0x48e7('0xde')]);}
|