@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231026.0 → 0.0.0-nightly-20231027.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisiontracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2fb2=['_prepareViewToSave','resolve','_fixPosition','get','_startingRevisionId','stickiness','_findInsertionIndex','insertions','currentRevision','_getFromVersion','_fixRange','markerToData','offset','data','addRevision','_makeRevision','_handleOperation','toVersion','_insertChild','getRootNames','_appendChild','name','_authorId','_bufferUpdate','clear','_savedMetaData','attributes','isAdd','key','path','baseVersion','getCurrentRevisionId','collaboration.channelId','reinsert','model','creatorId','values','Initial\x20revision','then','Users','useFillerType','has','getOperation','_diffRoots','toData','_replaceEditorDataWithRevisionData','keys','getAttribute','_touchedRoots','markers','dataDowncast','_addPendingAction','getMovedRangeStart','max','_removeRevisionMarkers','slice','graveyardPosition','_fixOperation','history','fromVersion','getRoot','PENDING_ACTION_REVISION_HISTORY','_lastTo','_calculateMetaData','_getBaseVids','includes','delete','createPositionAfter','_touchedMarkers','init','getAttributes','loadState','_bufferedUpdates','reverse','element','_copyMarkers','_getVidAttributeName','tableCell','_removeMetaData','_setConversion','_handleMarkerOperation','isReady','getWalker','_handleRootAttributeOperation','_markChanges','createRangeIn','define','NEGATIVE_INFINITY','addRoot','previousPosition','_execute','setSource','fromEntries','isAttached','position','editor-initial-data-replaced-with-revision-data','initialData','createPositionBefore','_applyOperations','getLatestVersion','createRange','editing','_loadState','_generateTape','attachChange','_isAttached','_saveMetaData','stringify','Empty\x20document','length','getNodeByPath','sendBufferedUpdates','_makeModelFromViewString','toView','merge','_baseRoots','_removePendingAction','_handleInsertOperation','find','detachRoot','end','getRevisionRootsAttributes','deletions','rootName','_baseRootsAttributes','_makeIdsRoot','_startingVersion','shift','_createInitialRevision','document','_diffRootsAttributes','config','_getViewJson','getTransformedByOperation','getTime','revision','finally','forEach','getRevisionDocumentData','newRange','bind','isEnabled','editor','RealTimeCollaborationClient','processor','afterInit','remove','splitPosition','marker','offsetSize','createdAt','parse','saveRevision','_pendingAction','insertion','_initialRevisionId','locale','getUser','RevisionsRepository','_getPreviousFrom','set','getAncestors','vid_start','newValue','_baseIdsRoots','_createCurrentRevision','_isPendingUpdate','clone','addRevisionData','keepParagraph','nodes','getData','repository','_revisionDataBuilder','initial','_handleMergeOperation','$text','getChild','range','_createFromRanges','roots','_touched','updateRevisions','size','revisionHistory.resumeUnsavedRevision','nodeAfter','string','type','rootsAttributes','_idsRoots','_update','start','documentFragment','_clone','getOperations','changeRootAttribute','revision:','_operations','createPositionFromPath','version','sourcePosition','split','deletion','$graveyard','some','elementEnd','buildRevisionData','update','_revisionId','_source','_getState','childCount','children','PendingActions','_reset','requires','plugins','insert','source','getChildren','attributesAfter','adapter','howMany','push','vid','for','_isInit','map','upcast','dataToMarker','_loadedStateData','root','getRevision','_setAttribute','creator','_markers','_cloneOperation','createPositionAt','_lastFrom','vid_end','parent','_handleMoveOperation','_continueCurrentRevision','item','pluginName','revision-start','userId','startsWith','toModel','insertionPosition','authors','elementStart','getRevisions','view','_loadRevisionData','_handleSplitOperation','authorsIds','diffData','add','getIndex','oldRange','conversion','from','_transformMarkers','filter','setRevisionData','attributesBefore'];(function(_0x4b147a,_0x2fb247){const _0x50c0b3=function(_0x490168){while(--_0x490168){_0x4b147a['push'](_0x4b147a['shift']());}};_0x50c0b3(++_0x2fb247);}(_0x2fb2,0x19f));const _0x50c0=function(_0x4b147a,_0x2fb247){_0x4b147a=_0x4b147a-0x0;let _0x50c0b3=_0x2fb2[_0x4b147a];return _0x50c0b3;};import{Users as _0x4d9a82}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x3831e3,PendingActions as _0x37dec1}from'ckeditor5/src/core';import{logWarning as _0x59f0b2,uid as _0x35cac9}from'ckeditor5/src/utils';import{Position as _0x53c7bd,Range as _0x4d128e,Element as _0x230b69,DocumentFragment as _0x88f57b,ViewText as _0x34e707,ViewElement as _0x3404d8,ViewContainerElement as _0x398f49,ViewAttributeElement as _0x412f63,ViewEmptyElement as _0x44fdb2,ViewRawElement as _0xcb41f6,ViewUIElement as _0x3b1332,ViewDocumentFragment as _0x35c3c0}from'ckeditor5/src/engine';import _0x2214a5 from'./revisionsrepository';import{getTranslation as _0x38eb67}from'./utils/common-translations';import{cloneDeep as _0x879743,isEqual as _0x42e45c}from'lodash-es';const B={'c':_0x398f49,'a':_0x412f63,'e':_0x44fdb2,'r':_0xcb41f6,'u':_0x3b1332};export default class l extends _0x3831e3{static get[_0x50c0('0x60')](){return'RevisionTracker';}static get[_0x50c0('0x43')](){return[_0x4d9a82,_0x2214a5,_0x37dec1];}constructor(_0x55ea71){super(_0x55ea71),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new H(this[_0x50c0('0x105')]),this[_0x50c0('0x7')]=this[_0x50c0('0x105')][_0x50c0('0xfa')]['get'](_0x50c0('0x97'))||_0x50c0('0x1a'),this[_0x50c0('0xbf')]=new Map(),this[_0x50c0('0x52')]=null;const _0x2bc3c6=_0x35cac9();this[_0x50c0('0x3d')]={'history':this['editor']['model'][_0x50c0('0xf8')][_0x50c0('0xb1')],'getLatestVersion':()=>Promise[_0x50c0('0x78')](this[_0x50c0('0x105')]['model']['document'][_0x50c0('0x33')]),'getCurrentRevisionId':()=>_0x2bc3c6},this[_0x50c0('0xc')](_0x50c0('0xc8'),!0x1),this['set'](_0x50c0('0x104'),!0x0),this[_0x50c0('0xc')](_0x50c0('0x12'),!0x1),this[_0x50c0('0x105')][_0x50c0('0xfa')][_0x50c0('0xcd')](_0x50c0('0x24'),!0x0),this['editor'][_0x50c0('0x71')][_0x50c0('0x4d')](_0x50c0('0x50'))[_0x50c0('0x51')]({'view':_0x50c0('0xfe')});}[_0x50c0('0xbc')](){this[_0x50c0('0x18')]=this[_0x50c0('0x105')]['plugins'][_0x50c0('0x7a')](_0x50c0('0xa')),this[_0x50c0('0xc6')](),this[_0x50c0('0x105')]['data']['on']('ready',()=>{const _0xfd3c49=this['repository']['getRevision'](0x0),_0x2ce3fb=_0xfd3c49&&null===_0xfd3c49[_0x50c0('0x56')]?_0xfd3c49:null;if(this['_continueCurrentRevision']=!!_0x2ce3fb&&this[_0x50c0('0x105')][_0x50c0('0xfa')]['get'](_0x50c0('0x24')),this[_0x50c0('0x105')][_0x50c0('0x44')][_0x50c0('0xa0')](_0x50c0('0x106'))){const _0x59a9f5=this[_0x50c0('0x3d')][_0x50c0('0x96')](),_0x2561a4=this['repository'][_0x50c0('0x54')](_0x59a9f5);if(_0x2561a4)this[_0x50c0('0xf5')]=_0x2561a4[_0x50c0('0xb2')],this[_0x50c0('0x5e')]=!0x1;else{const _0x1c7315=this[_0x50c0('0x3d')][_0x50c0('0xb1')][_0x50c0('0x31')][_0x50c0('0xed')](_0x2c05f8=>!_0x2c05f8[_0x50c0('0x4e')]),_0x451cb6=_0x1c7315?_0x1c7315[_0x50c0('0x95')]:this['_source']['history']['version'];_0xfd3c49?(_0xfd3c49['toVersion']<_0x451cb6&&_0xfd3c49[_0x50c0('0x2a')]({'toVersion':_0x451cb6}),this['_continueCurrentRevision']?(this[_0x50c0('0x3d')][_0x50c0('0x96')]=()=>_0x2ce3fb['id'],this[_0x50c0('0xf5')]=_0x2ce3fb[_0x50c0('0xb2')]):(this[_0x50c0('0xf5')]=_0xfd3c49[_0x50c0('0x88')],this['_continueCurrentRevision']=!0x1)):(this[_0x50c0('0xf5')]=_0x451cb6,this[_0x50c0('0x5e')]=!0x1);}}else _0x2ce3fb&&(this[_0x50c0('0x105')][_0x50c0('0x99')][_0x50c0('0xf8')][_0x50c0('0xb1')][_0x50c0('0x33')]=Math[_0x50c0('0xac')](_0x2ce3fb[_0x50c0('0x88')],this[_0x50c0('0x105')][_0x50c0('0x99')][_0x50c0('0xf8')]['history'][_0x50c0('0x33')]),_0x2ce3fb['fromVersion']===_0x2ce3fb['toVersion']?(0x0!==_0x2ce3fb['fromVersion']&&(this[_0x50c0('0x3d')][_0x50c0('0x96')]=()=>_0x2ce3fb['id']),this[_0x50c0('0x5e')]=!0x1):this[_0x50c0('0x5e')]&&(this[_0x50c0('0x3d')][_0x50c0('0x96')]=()=>_0x2ce3fb['id'],this['_startingVersion']=_0x2ce3fb['fromVersion'])),this[_0x50c0('0x5e')]||(this[_0x50c0('0xf5')]=this[_0x50c0('0x105')][_0x50c0('0x99')][_0x50c0('0xf8')][_0x50c0('0x33')]);this[_0x50c0('0x19')][_0x50c0('0xbc')](this[_0x50c0('0x3d')][_0x50c0('0xb1')]),this[_0x50c0('0xf7')](this[_0x50c0('0xf5')]),this[_0x50c0('0x11')](this[_0x50c0('0xf5')]),this['adapter']&&this['sendBufferedUpdates']();}),this[_0x50c0('0x103')](_0x50c0('0xc8'))['to'](this,_0x50c0('0x12'),_0x100947=>!_0x100947);}async[_0x50c0('0x108')](){if(this[_0x50c0('0x18')][_0x50c0('0xe4')]>0x0){const _0x5eea3e=this[_0x50c0('0x18')]['getRevision'](0x0),_0x5474ef=await this[_0x50c0('0x101')](_0x5eea3e),_0x57cf05=await this[_0x50c0('0xf0')](_0x5eea3e);this[_0x50c0('0xa4')](_0x5474ef,_0x57cf05);}}[_0x50c0('0xd2')](_0x14a47f){this[_0x50c0('0x3d')]=_0x14a47f;}async[_0x50c0('0x3b')](){const _0x3ab27a=await this[_0x50c0('0x3d')][_0x50c0('0xda')]();if(_0x3ab27a>this[_0x50c0('0x7f')][_0x50c0('0x88')]){await this['_loadState']();const _0x3bcacc=this['buildRevisionData']({'revision':this[_0x50c0('0x7f')],'to':_0x3ab27a});_0x3bcacc[_0x50c0('0x66')]=_0x3bcacc[_0x50c0('0x6c')]['map'](_0xb53b96=>this['editor'][_0x50c0('0x44')][_0x50c0('0x7a')](_0x50c0('0x9e'))['getUser'](_0xb53b96)),this[_0x50c0('0x7f')][_0x50c0('0x2a')](_0x3bcacc);}}async[_0x50c0('0xdd')](){this['_continueCurrentRevision']&&!this[_0x50c0('0x52')]&&(await this[_0x50c0('0x6a')](this[_0x50c0('0x7f')]),this[_0x50c0('0x19')][_0x50c0('0xbe')](this[_0x50c0('0x7f')]),this[_0x50c0('0x52')]={'fromVersion':this[_0x50c0('0x7f')]['fromVersion'],'authors':this[_0x50c0('0x7f')][_0x50c0('0x66')]['slice']()});}async[_0x50c0('0x4')](_0x5dcfbd={},_0x176a53=null){const _0x3e20dc=[];await this[_0x50c0('0xdd')](),this[_0x50c0('0x5e')]=!0x1,_0x176a53>this[_0x50c0('0x7f')][_0x50c0('0x88')]&&(_0x176a53=null),null===_0x176a53&&(_0x176a53=await this['_source'][_0x50c0('0xda')]());const _0x6add56=this[_0x50c0('0x80')](_0x176a53),_0x5a31d9=this[_0x50c0('0x3a')]({'from':_0x6add56,'to':_0x176a53});if(this[_0x50c0('0x7f')]['toVersion']<_0x176a53){const _0x21e0d1=this['buildRevisionData']({'revision':this[_0x50c0('0x7f')],'from':_0x176a53,'to':_0x176a53});_0x21e0d1[_0x50c0('0x66')]=[],_0x21e0d1[_0x50c0('0x6c')]=[],_0x21e0d1['id']=this[_0x50c0('0x7f')]['id'],this[_0x50c0('0x7f')][_0x50c0('0x2a')](_0x21e0d1,!0x0),delete _0x21e0d1[_0x50c0('0x66')],_0x3e20dc[_0x50c0('0x4b')](_0x21e0d1);}_0x5dcfbd[_0x50c0('0x9a')]=this[_0x50c0('0x105')][_0x50c0('0x44')]['get'](_0x50c0('0x9e'))['me']['id'],_0x5dcfbd['name']=_0x5dcfbd[_0x50c0('0x8c')]||null,_0x5dcfbd['id']=_0x5dcfbd['id']||_0x35cac9(),_0x5dcfbd={..._0x5dcfbd,..._0x5a31d9};const _0x1f4e83=this['addRevisionData'](_0x5dcfbd);_0x3e20dc['push'](_0x5dcfbd);const _0x32278f=this[_0x50c0('0x18')][_0x50c0('0x6f')](_0x1f4e83);if(0x0!==_0x32278f){const _0xc7c428=this['repository']['getRevision'](_0x32278f-0x1);if(_0xc7c428[_0x50c0('0xb2')]!==_0x176a53){const _0x5ce5cb=this[_0x50c0('0x19')][_0x50c0('0x17')](_0x176a53,_0xc7c428['toVersion']),_0x176745={'id':_0xc7c428['id'],'diffData':_0x5ce5cb[_0x50c0('0x6d')],'authorsIds':_0x5ce5cb[_0x50c0('0x6c')],'authors':_0x5ce5cb['authorsIds'][_0x50c0('0x4f')](_0x1a47f3=>this[_0x50c0('0x105')][_0x50c0('0x44')][_0x50c0('0x7a')]('Users')[_0x50c0('0x9')](_0x1a47f3)),'fromVersion':_0x176a53};_0xc7c428===this['currentRevision']&&(_0x176745[_0x50c0('0x2')]=new Date(_0x5dcfbd['createdAt'][_0x50c0('0xfd')]()+0xa)),_0xc7c428['_update'](_0x176745,!0x0),delete _0x176745[_0x50c0('0x66')],_0x3e20dc[_0x50c0('0x4b')](_0x176745);}}if(this[_0x50c0('0x49')]){for(const _0x5578a1 of _0x3e20dc)this[_0x50c0('0x8e')](_0x5578a1['id'],_0x5578a1,!0x0);this[_0x50c0('0xe6')]();}return _0x1f4e83;}[_0x50c0('0x14')](_0x2971ef){const _0x16eaa4=this[_0x50c0('0x18')]['createRevision'](_0x2971ef);return this[_0x50c0('0x49')]&&_0x16eaa4['on'](_0x50c0('0x2a'),(_0x39a383,_0x537da7,_0x5b46b5)=>{_0x5b46b5||(this['_bufferUpdate'](_0x537da7['id'],_0x537da7,!0x0),this[_0x50c0('0xe6')]());}),this[_0x50c0('0x18')][_0x50c0('0x85')](_0x16eaa4,this[_0x50c0('0x7d')](_0x16eaa4)),_0x16eaa4;}async['getRevisionDocumentData'](_0x2fa692){await this['_loadRevisionData'](_0x2fa692);const _0x5c67f2={};for(const _0x5523d5 in _0x2fa692['diffData']){if(_0x2fa692[_0x50c0('0x6d')][_0x5523d5][_0x50c0('0xdf')]&&!_0x2fa692['diffData'][_0x5523d5]['attachChange'][_0x50c0('0xd4')])continue;const _0x16e617=this['_removeRevisionMarkers'](JSON[_0x50c0('0x3')](_0x2fa692[_0x50c0('0x6d')][_0x5523d5][_0x50c0('0x7e')])),_0x15c758=this[_0x50c0('0x105')][_0x50c0('0xdc')][_0x50c0('0x69')][_0x50c0('0xf8')],_0x515545=new _0x35c3c0(_0x15c758,_0x16e617[_0x50c0('0x4f')](_0xea2401=>J(_0xea2401,this[_0x50c0('0x105')])));this[_0x50c0('0x105')][_0x50c0('0x84')][_0x50c0('0x107')]['useFillerType']('marked'),_0x5c67f2[_0x5523d5]=this[_0x50c0('0x105')][_0x50c0('0x84')]['processor'][_0x50c0('0xa3')](_0x515545),this[_0x50c0('0x105')][_0x50c0('0x84')][_0x50c0('0x107')][_0x50c0('0x9f')]('default');}return _0x5c67f2;}async[_0x50c0('0xf0')](_0x46630b){await this[_0x50c0('0x6a')](_0x46630b);const _0x10ed53={};for(const _0x1f88d5 in _0x46630b[_0x50c0('0x6d')])_0x46630b[_0x50c0('0x6d')][_0x1f88d5][_0x50c0('0xdf')]&&!_0x46630b[_0x50c0('0x6d')][_0x1f88d5][_0x50c0('0xdf')]['isAttached']||(_0x10ed53[_0x1f88d5]=_0x46630b[_0x50c0('0x6d')][_0x1f88d5][_0x50c0('0x48')]||{});return _0x10ed53;}['sendBufferedUpdates'](){if(0x0===this[_0x50c0('0xbf')]['size'])return;if(this[_0x50c0('0x12')])return;let _0x273c8a=Array[_0x50c0('0x72')](this[_0x50c0('0xbf')]['values']());this[_0x50c0('0xbf')][_0x50c0('0x8f')]();for(let _0xc5a176=0x0;_0xc5a176<_0x273c8a[_0x50c0('0xe4')];_0xc5a176++){const _0x28ac74=_0x273c8a[_0xc5a176];let _0x59a26d=!0x1;for(const _0x22df85 of Object[_0x50c0('0xa5')](_0x28ac74))void 0x0===_0x28ac74[_0x22df85]?delete _0x28ac74[_0x22df85]:'id'!==_0x22df85&&(_0x59a26d=!0x0);_0x59a26d||(_0x273c8a[_0xc5a176]=null);}if(_0x273c8a=_0x273c8a[_0x50c0('0x74')](_0x57c128=>null!==_0x57c128),!_0x273c8a[_0x50c0('0xe4')])return;for(let _0x4810eb=0x0;_0x4810eb<_0x273c8a['length'];_0x4810eb++){const _0xf4c79a=_0x273c8a[_0x4810eb];void 0x0!==_0xf4c79a['fromVersion']&&void 0x0===_0xf4c79a[_0x50c0('0x88')]&&(_0xf4c79a[_0x50c0('0x88')]=this[_0x50c0('0x18')][_0x50c0('0x54')](_0xf4c79a['id'])[_0x50c0('0x88')]),void 0x0!==_0xf4c79a[_0x50c0('0x88')]&&void 0x0===_0xf4c79a['fromVersion']&&(_0xf4c79a[_0x50c0('0xb2')]=this['repository'][_0x50c0('0x54')](_0xf4c79a['id'])[_0x50c0('0xb2')]);}const _0x59d6ef=this[_0x50c0('0x105')]['config']['get'](_0x50c0('0x97'));this[_0x50c0('0x12')]=!0x0,this[_0x50c0('0xaa')](),this[_0x50c0('0x49')][_0x50c0('0x22')](_0x273c8a,_0x59d6ef)[_0x50c0('0xff')](()=>{this['_isPendingUpdate']=!0x1;})[_0x50c0('0x9d')](_0x5c1ba7=>{if(_0x5c1ba7)for(const _0x248f68 of _0x5c1ba7)this[_0x50c0('0x75')]({'id':_0x248f68['id'],'createdAt':_0x248f68[_0x50c0('0x2')]});this[_0x50c0('0xeb')](),this[_0x50c0('0xe6')]();});}[_0x50c0('0xa4')](_0x410e24,_0x19a9cc){let _0x2fb5c4=this[_0x50c0('0x105')][_0x50c0('0xfa')][_0x50c0('0x7a')](_0x50c0('0xd7')),_0x25a7a4=this[_0x50c0('0x105')]['config']['get'](_0x50c0('0x28'));if(void 0x0===_0x2fb5c4){_0x2fb5c4={};for(const _0xd9762b of this[_0x50c0('0x105')][_0x50c0('0x99')]['document'][_0x50c0('0x8a')]())_0x2fb5c4[_0xd9762b]='';}if(_0x50c0('0x26')==typeof _0x2fb5c4&&(_0x2fb5c4={'main':_0x2fb5c4}),void 0x0===_0x25a7a4){_0x25a7a4={};for(const _0x8fa07c of this[_0x50c0('0x105')][_0x50c0('0x99')]['document'][_0x50c0('0x8a')]())_0x25a7a4[_0x8fa07c]={};}let _0x283559=!0x1;const _0x9fc5b9=Object[_0x50c0('0xa5')](_0x2fb5c4),_0x5d1d76=Object[_0x50c0('0xa5')](_0x410e24);for(const _0x5dcf47 of _0x9fc5b9){if(_0x2fb5c4[_0x5dcf47]!==_0x410e24[_0x5dcf47]&&''!==_0x2fb5c4[_0x5dcf47]['trim']()){_0x283559=!0x0;break;}if(!_0x42e45c(_0x25a7a4[_0x5dcf47],_0x19a9cc[_0x5dcf47])&&Object[_0x50c0('0xa5')](_0x25a7a4[_0x5dcf47])[_0x50c0('0xe4')]>0x0){_0x283559=!0x0;break;}}_0x283559||(_0x283559=_0x5d1d76[_0x50c0('0x38')](_0x79bb8=>!this['editor']['model'][_0x50c0('0xf8')][_0x50c0('0xb3')](_0x79bb8))),_0x283559&&_0x59f0b2(_0x50c0('0xd6'),{'editorData':_0x2fb5c4,'editorRootsAttributes':_0x25a7a4,'revisionData':_0x410e24,'revisionRootsAttributes':_0x19a9cc}),this[_0x50c0('0x105')][_0x50c0('0xfa')][_0x50c0('0xc')]('initialData',_0x410e24),this[_0x50c0('0x105')]['config']['set'](_0x50c0('0x28'),_0x19a9cc);}[_0x50c0('0xaa')](){if(!this[_0x50c0('0x5')]){const _0x47af30=this[_0x50c0('0x105')][_0x50c0('0x44')][_0x50c0('0x7a')](_0x50c0('0x41'));this[_0x50c0('0x5')]=_0x47af30['add'](_0x38eb67(this[_0x50c0('0x105')]['locale'],_0x50c0('0xb4')));}}['_removePendingAction'](){this[_0x50c0('0x5')]&&(this[_0x50c0('0x105')]['plugins'][_0x50c0('0x7a')](_0x50c0('0x41'))[_0x50c0('0x109')](this[_0x50c0('0x5')]),this[_0x50c0('0x5')]=null);}[_0x50c0('0x7d')](_0x2dd973){const _0x834824=this[_0x50c0('0x18')][_0x50c0('0x68')]();_0x834824['reverse']();let _0x2fbf41=0x0;for(;_0x2fbf41<_0x834824[_0x50c0('0xe4')];){const _0x513d4c=_0x834824[_0x2fbf41];if(_0x513d4c===this[_0x50c0('0x7f')]){_0x2fbf41++;continue;}if(_0x513d4c['id']===this[_0x50c0('0x7')])break;const _0x396d91=_0x2dd973[_0x50c0('0x88')]-_0x513d4c[_0x50c0('0x88')]||_0x2dd973[_0x50c0('0xb2')]-_0x513d4c[_0x50c0('0xb2')];if(_0x396d91>0x0)break;if(_0x396d91<0x0)_0x2fbf41++;else{if(!_0x2dd973['creator']&&_0x513d4c[_0x50c0('0x56')])break;if(_0x513d4c[_0x50c0('0x56')]||!_0x2dd973['creator']){if(_0x2dd973[_0x50c0('0x2')]>_0x513d4c['createdAt'])break;_0x2fbf41++;}else _0x2fbf41++;}}return _0x2fbf41;}[_0x50c0('0x75')](_0x476ca3){const _0x204364=this[_0x50c0('0x18')]['getRevision'](_0x476ca3['id']);if(_0x476ca3[_0x50c0('0x2')]&&(_0x476ca3[_0x50c0('0x2')]=new Date(_0x476ca3[_0x50c0('0x2')])),_0x476ca3[_0x50c0('0x6c')]){const _0x92d005=this['editor'][_0x50c0('0x44')]['get'](_0x50c0('0x9e'));_0x476ca3['authors']=_0x476ca3[_0x50c0('0x6c')][_0x50c0('0x4f')](_0x2a6eea=>_0x92d005[_0x50c0('0x9')](_0x2a6eea));}_0x204364[_0x50c0('0x2a')](_0x476ca3,!0x0);}[_0x50c0('0x3a')]({revision:_0x26e814=null,from:_0x29cefa=null,to:_0x9b1ad5=null}){_0x29cefa=null!==_0x29cefa?_0x29cefa:_0x26e814[_0x50c0('0xb2')],_0x9b1ad5=null!==_0x9b1ad5?_0x9b1ad5:_0x26e814['toVersion'];const _0x29e294=this['_revisionDataBuilder']['getData'](_0x29cefa,_0x9b1ad5),_0x541e50={'diffData':_0x29e294[_0x50c0('0x6d')],'authorsIds':_0x29e294[_0x50c0('0x6c')],'fromVersion':_0x29cefa,'toVersion':_0x9b1ad5};if(!_0x26e814||_0x9b1ad5!==_0x26e814[_0x50c0('0x88')]){const _0x41f901=_0x9b1ad5-0x1,_0x40a197=this['_source']['history'][_0x50c0('0xa1')](_0x41f901);_0x541e50[_0x50c0('0x2')]=_0x40a197&&_0x40a197[_0x50c0('0x2')]||new Date();}if(this[_0x50c0('0x52')]&&_0x29cefa===this[_0x50c0('0x52')]['fromVersion'])for(const _0x148f1f of this[_0x50c0('0x52')]['authors'])_0x541e50[_0x50c0('0x6c')][_0x50c0('0xb8')](_0x148f1f['id'])||_0x541e50[_0x50c0('0x6c')][_0x50c0('0x4b')](_0x148f1f['id']);return _0x541e50;}[_0x50c0('0x6a')](_0x20f7d0){if(!_0x20f7d0||_0x20f7d0[_0x50c0('0x6d')])return Promise[_0x50c0('0x78')]();{const _0x45f3b2=this[_0x50c0('0x105')][_0x50c0('0xfa')][_0x50c0('0x7a')](_0x50c0('0x97'));return this[_0x50c0('0x49')][_0x50c0('0x54')]({'channelId':_0x45f3b2,'revisionId':_0x20f7d0['id']})['then'](_0x2d4f1f=>{_0x20f7d0[_0x50c0('0x6d')]=_0x2d4f1f['diffData'];});}}[_0x50c0('0x8e')](_0x3e6560,_0x3c624f,_0x4c5a67){if(this[_0x50c0('0xbf')][_0x50c0('0xa0')](_0x3e6560)){const _0x3d9f37=this[_0x50c0('0xbf')][_0x50c0('0x7a')](_0x3e6560);_0x3c624f=_0x4c5a67?{..._0x3d9f37,..._0x3c624f}:{..._0x3c624f,..._0x3d9f37};}this[_0x50c0('0xbf')][_0x50c0('0xc')](_0x3e6560,_0x3c624f);}[_0x50c0('0x80')](_0x198d49){const _0x40e7b7=this[_0x50c0('0x18')]['getRevisions']();_0x40e7b7[_0x50c0('0xc0')](),_0x40e7b7[_0x50c0('0xf6')]();const _0x1313c1=_0x40e7b7[_0x50c0('0xed')](_0x5b7771=>_0x5b7771['toVersion']<=_0x198d49)[_0x50c0('0x88')];return _0x1313c1<this[_0x50c0('0xf5')]?this[_0x50c0('0xf5')]:_0x1313c1;}[_0x50c0('0xf7')](_0x259433){const _0x16079d=this['repository'][_0x50c0('0x54')](this['repository'][_0x50c0('0xe4')]-0x1);if(_0x16079d)this[_0x50c0('0x7')]=_0x16079d['id'];else{const _0x576691=!this[_0x50c0('0x105')][_0x50c0('0x99')][_0x50c0('0xf8')][_0x50c0('0x20')][_0x50c0('0xed')](_0x1c53a=>this[_0x50c0('0x105')][_0x50c0('0x99')]['hasContent'](_0x1c53a)),_0x52a504=this[_0x50c0('0x105')][_0x50c0('0x44')][_0x50c0('0x7a')](_0x50c0('0x9e'))['me']['id'],_0x2d587b=_0x38eb67(this[_0x50c0('0x105')][_0x50c0('0x8')],_0x576691?_0x50c0('0xe3'):_0x50c0('0x9c'));this[_0x50c0('0x86')]({'from':_0x259433,'to':_0x259433,'id':this[_0x50c0('0x7')],'name':_0x2d587b,'creatorId':_0x52a504});}}['_createCurrentRevision'](_0x1d75b3){const _0x496b4e=this['_source'][_0x50c0('0x96')]();this[_0x50c0('0x7f')]=this[_0x50c0('0x18')][_0x50c0('0x54')](_0x496b4e),this[_0x50c0('0x7f')]||(this[_0x50c0('0x7f')]=this['_makeRevision']({'from':_0x1d75b3,'to':_0x1d75b3,'id':_0x496b4e,'name':'','creatorId':null}));}[_0x50c0('0x86')]({name:_0x3d533b,from:_0x475ddb,to:_0xdc199e,creatorId:_0x5a698d,id:_0x4e8c6e}){const _0x576a96=this[_0x50c0('0x3a')]({'from':_0x475ddb,'to':_0xdc199e});_0x576a96[_0x50c0('0x8c')]=_0x3d533b,_0x576a96[_0x50c0('0x9a')]=_0x5a698d,_0x576a96['id']=_0x4e8c6e;const _0x1695ac=this[_0x50c0('0x14')](_0x576a96);return this[_0x50c0('0x49')]&&this[_0x50c0('0x8e')](_0x576a96['id'],_0x576a96,!0x0),_0x1695ac;}[_0x50c0('0xc6')](){this[_0x50c0('0x105')][_0x50c0('0x71')][_0x50c0('0x4d')](_0x50c0('0xa9'))[_0x50c0('0x82')]({'model':_0x50c0('0xfe')});}[_0x50c0('0xad')](_0x32b397){return(_0x32b397=_0x32b397['filter'](_0xdbc59=>!_0xdbc59['name']||_0x50c0('0x61')!==_0xdbc59[_0x50c0('0x8c')]&&'revision-end'!==_0xdbc59['name']))[_0x50c0('0x100')](_0x4bd8d6=>{_0x50c0('0x26')!=typeof _0x4bd8d6&&(_0x4bd8d6[_0x50c0('0x40')]=this[_0x50c0('0xad')](_0x4bd8d6[_0x50c0('0x40')]),_0x4bd8d6[_0x50c0('0x91')]=_0x4bd8d6['attributes'][_0x50c0('0x74')](_0x28aed2=>!_0x28aed2[0x0][_0x50c0('0x63')]('data-revision-')));}),_0x32b397;}}function J(_0x78def,_0x322534){const _0x5ca7a6=_0x322534[_0x50c0('0xdc')]['view']['document'];if('string'==typeof _0x78def)return new _0x34e707(_0x5ca7a6,_0x78def);{const _0x477406=_0x78def[_0x50c0('0x40')][_0x50c0('0x4f')](_0xa3a74b=>J(_0xa3a74b,_0x322534));return new(B[_0x78def[(_0x50c0('0x27'))]]||_0x3404d8)(_0x5ca7a6,_0x78def['name'],_0x78def[_0x50c0('0x91')],_0x477406);}}class H{constructor(_0x2cbd7e){this[_0x50c0('0x105')]=_0x2cbd7e,this[_0x50c0('0x90')]=new Map(),this[_0x50c0('0x5a')]=-0x1,this[_0x50c0('0xb5')]=-0x1,this['_markers']=new Map(),this[_0x50c0('0xa2')]=new Map(),this[_0x50c0('0xf9')]=new Map(),this[_0x50c0('0xea')]=new Map(),this[_0x50c0('0xf3')]=new Map(),this[_0x50c0('0x29')]=new Map(),this[_0x50c0('0x10')]=new Map(),this[_0x50c0('0x21')]=new Map(),this[_0x50c0('0xbb')]=new Map(),this[_0x50c0('0xa7')]=new Map(),this[_0x50c0('0x3c')]=0x1;}[_0x50c0('0xbc')](_0x1e840d){this[_0x50c0('0x46')]=_0x1e840d;const _0xdac93b=new Map(),_0x281128=new Map(),_0x2369a0=this[_0x50c0('0x105')]['model']['document'][_0x50c0('0x20')][_0x50c0('0x4f')](_0x2ad84a=>_0x2ad84a['rootName']);for(const _0x3d3265 of _0x2369a0){const _0x44a0c9=this[_0x50c0('0x105')][_0x50c0('0x99')][_0x50c0('0xf8')][_0x50c0('0xb3')](_0x3d3265),_0x233319=q(_0x44a0c9);_0xdac93b['set'](_0x3d3265,_0x233319),_0x281128['set'](_0x3d3265,Object[_0x50c0('0xd3')](_0x44a0c9['getAttributes']()));}const _0x176cec=Array[_0x50c0('0x72')](this[_0x50c0('0x105')][_0x50c0('0x99')][_0x50c0('0xa8')])[_0x50c0('0x4f')](_0x151d0e=>[_0x151d0e['name'],_0x151d0e['getRange']()]),_0x246031=this[_0x50c0('0x46')][_0x50c0('0x33')];this[_0x50c0('0xe1')](_0x246031,_0xdac93b,_0x176cec,_0x281128),this[_0x50c0('0x7b')]=this['_revisionId'];const _0xcaa5c7=new Map(),_0xfa13b8=new Map();for(const _0x1d4b9d of _0x2369a0){const _0x213815=G(_0x1d4b9d);_0xcaa5c7['set'](_0x1d4b9d,_0x213815),_0xfa13b8[_0x50c0('0xc')](_0x1d4b9d,{});}this[_0x50c0('0xe1')](Number['NEGATIVE_INFINITY'],_0xcaa5c7,[],_0xfa13b8);}[_0x50c0('0x17')](_0x217887,_0x44a7bb){if(this[_0x50c0('0x5a')]===_0x217887&&this[_0x50c0('0xb5')]<=_0x44a7bb)this[_0x50c0('0x90')][_0x50c0('0x23')]>0x1&&this[_0x50c0('0xc5')](this[_0x50c0('0xb5')]),this['_applyOperations'](this[_0x50c0('0xb5')],_0x44a7bb,!0x0);else{if(!this[_0x50c0('0x90')][_0x50c0('0xa0')](_0x217887)){const _0x3797f0=this[_0x50c0('0xb')](_0x217887);this[_0x50c0('0xb6')](_0x3797f0,_0x217887,!0x1);}this['_calculateMetaData'](_0x217887,_0x44a7bb,!0x0);}return this['_lastFrom']=_0x217887,this[_0x50c0('0xb5')]=_0x44a7bb,this[_0x50c0('0x3e')]();}['loadState'](_0x2409e1){this[_0x50c0('0x42')](),this['_lastFrom']=_0x2409e1['fromVersion'],this[_0x50c0('0xb5')]=_0x2409e1[_0x50c0('0x88')];for(const _0x49d6c9 in _0x2409e1['diffData']){const _0x491702=_0x2409e1[_0x50c0('0x6d')][_0x49d6c9][_0x50c0('0xdf')],_0x8a38ce=_0x879743(_0x2409e1[_0x50c0('0x6d')][_0x49d6c9][_0x50c0('0x76')])||{},_0x5a3bc3=this[_0x50c0('0xe7')](_0x2409e1[_0x50c0('0x6d')][_0x49d6c9]['deletions']);_0x5a3bc3[_0x50c0('0xf2')]=_0x49d6c9,_0x5a3bc3[_0x50c0('0xe0')]=!_0x491702||!_0x491702[_0x50c0('0xd4')],_0x5a3bc3[_0x50c0('0xd4')]=()=>_0x5a3bc3['_isAttached'],this[_0x50c0('0xea')][_0x50c0('0xc')](_0x49d6c9,_0x5a3bc3),this['_baseRootsAttributes'][_0x50c0('0xc')](_0x49d6c9,_0x8a38ce),_0x491702&&this[_0x50c0('0xa7')][_0x50c0('0xc')](_0x49d6c9,_0x491702);const _0x235ee1=this['_makeIdsRoot'](_0x5a3bc3);this['_baseIdsRoots'][_0x50c0('0xc')](_0x49d6c9,_0x235ee1);for(const [_0x31765f,_0x56b1ba]of _0x5a3bc3[_0x50c0('0xa8')]){if(!_0x31765f[_0x50c0('0x63')](_0x50c0('0x30')))continue;const _0xb546c7=_0x31765f[_0x50c0('0x35')](':')[0x2];for(const _0x55ce35 of _0x56b1ba[_0x50c0('0xc9')]({'singleCharacters':!0x0})){const _0x205e8d=this[_0x50c0('0xc3')](_0x55ce35),_0x1b963e=_0x50c0('0x39')==_0x55ce35[_0x50c0('0x27')]?_0x55ce35[_0x50c0('0xd0')][_0x50c0('0x94')][_0x50c0('0xae')](0x0,-0x1):_0x55ce35['previousPosition']['path'],_0x2502f9=_0x235ee1[_0x50c0('0xe5')](_0x1b963e)['getAttribute'](_0x205e8d);this['_touched']['set'](_0x2502f9,{'userId':_0xb546c7});}}}this[_0x50c0('0x7b')]=this['_revisionId'];const _0x588e68=[...Array(this[_0x50c0('0x3c')])[_0x50c0('0xa5')]()][_0x50c0('0xae')](0x1)[_0x50c0('0x74')](_0xa45977=>!this[_0x50c0('0x21')][_0x50c0('0xa0')](_0xa45977));let _0x6eb1e=0x0;const _0x5916ef=new Map();for(const _0x5e2940 in _0x2409e1[_0x50c0('0x6d')]){const _0x2c3661=_0x2409e1['diffData'][_0x5e2940][_0x50c0('0xdf')],_0x2e14a2=_0x879743(_0x2409e1[_0x50c0('0x6d')][_0x5e2940][_0x50c0('0x48')])||{},_0x15d877=this[_0x50c0('0xe7')](_0x2409e1[_0x50c0('0x6d')][_0x5e2940][_0x50c0('0x7e')]);_0x15d877[_0x50c0('0xf2')]=_0x5e2940,_0x15d877[_0x50c0('0xe0')]=!_0x2c3661||_0x2c3661['isAttached'],_0x15d877[_0x50c0('0xd4')]=()=>_0x15d877[_0x50c0('0xe0')],this[_0x50c0('0xa2')]['set'](_0x5e2940,_0x15d877),this[_0x50c0('0xf9')]['set'](_0x5e2940,_0x2e14a2);const _0xd32f76=this[_0x50c0('0xf4')](_0x15d877,Number[_0x50c0('0xce')]);this['_idsRoots'][_0x50c0('0xc')](_0x5e2940,_0xd32f76),_0x5916ef['set'](_0x5e2940,_0x15d877['isAttached']()?_0x2e14a2:{});for(const [_0x58d56a,_0x40a2f6]of _0x15d877[_0x50c0('0xa8')]){if(!_0x58d56a[_0x50c0('0x63')](_0x50c0('0x30')))continue;const _0x49d5d5=_0x58d56a['split'](':')[0x2];for(const _0x125ddf of _0x40a2f6[_0x50c0('0xc9')]({'singleCharacters':!0x0})){const _0x1736c1=this[_0x50c0('0xc3')](_0x125ddf),_0x1aa2ce=this[_0x50c0('0x3c')]++,_0x4417d0=_0x50c0('0x39')==_0x125ddf[_0x50c0('0x27')]?_0x125ddf[_0x50c0('0xd0')][_0x50c0('0x94')]['slice'](0x0,-0x1):_0x125ddf[_0x50c0('0xd0')][_0x50c0('0x94')];_0xd32f76[_0x50c0('0xe5')](_0x4417d0)[_0x50c0('0x55')](_0x1736c1,_0x1aa2ce),this[_0x50c0('0x21')][_0x50c0('0xc')](_0x1aa2ce,{'userId':_0x49d5d5});}}for(const _0x16245f of this['editor'][_0x50c0('0x99')][_0x50c0('0xcc')](_0x15d877)[_0x50c0('0xc9')]({'singleCharacters':!0x0})){const _0x4f84cc=this[_0x50c0('0xc3')](_0x16245f),_0x23b6f1='elementEnd'==_0x16245f['type']?_0x16245f[_0x50c0('0xd0')][_0x50c0('0x94')][_0x50c0('0xae')](0x0,-0x1):_0x16245f[_0x50c0('0xd0')][_0x50c0('0x94')],_0x431d39=_0xd32f76['getNodeByPath'](_0x23b6f1);_0x431d39[_0x50c0('0xa6')](_0x4f84cc)>0x0||_0x431d39[_0x50c0('0x55')](_0x4f84cc,_0x588e68[_0x6eb1e++]);}for(const [_0x553f67,_0x2c1998]of _0x15d877[_0x50c0('0xa8')])_0x553f67[_0x50c0('0x63')]('revision:')||this[_0x50c0('0x57')][_0x50c0('0xc')](_0x553f67,_0x2c1998);}const _0x2976aa=G(_0x50c0('0x37'));this[_0x50c0('0xea')][_0x50c0('0xc')](_0x50c0('0x37'),_0x2976aa),this[_0x50c0('0x10')][_0x50c0('0xc')](_0x50c0('0x37'),this[_0x50c0('0xf4')](_0x2976aa,0x1));const _0x5b0453=G(_0x50c0('0x37'));this[_0x50c0('0xa2')][_0x50c0('0xc')]('$graveyard',_0x5b0453),this[_0x50c0('0x29')][_0x50c0('0xc')](_0x50c0('0x37'),this[_0x50c0('0xf4')](_0x5b0453,0x1));const _0x509604=Array[_0x50c0('0x72')](this[_0x50c0('0xa2')])['map'](([_0x59d780,_0xb246ee])=>[_0x59d780,q(_0xb246ee)]);this[_0x50c0('0xe1')](this['_lastTo'],_0x509604,this['_markers'],_0x5916ef);}[_0x50c0('0xe7')](_0x42ef43){const _0x418c09=JSON['parse'](_0x42ef43),_0x5438d1=this['editor'][_0x50c0('0xdc')]['view'][_0x50c0('0xf8')],_0x23adbb=new _0x35c3c0(_0x5438d1,_0x418c09[_0x50c0('0x4f')](_0x1fe392=>J(_0x1fe392,this[_0x50c0('0x105')])));return this[_0x50c0('0x105')][_0x50c0('0x84')][_0x50c0('0x64')](_0x23adbb);}[_0x50c0('0xe1')](_0x4a1fb3,_0x3d13f8,_0x6a2de4,_0x1bd2ef){const _0x1b6e39=new Map(_0x3d13f8),_0x5560eb=new Map(_0x879743(_0x1bd2ef)),_0x4d4346=new Map();for(const [_0x5c04cb,_0x231d7e]of _0x6a2de4)_0x4d4346[_0x50c0('0xc')](_0x5c04cb,{'start':_0x231d7e['start'][_0x50c0('0x13')](),'end':_0x231d7e['end'][_0x50c0('0x13')](),'rootName':_0x231d7e[_0x50c0('0x53')][_0x50c0('0xf2')]});this[_0x50c0('0x90')][_0x50c0('0xc')](_0x4a1fb3,{'roots':_0x1b6e39,'markers':_0x4d4346,'rootsAttributes':_0x5560eb});}[_0x50c0('0xc5')](_0x59308e){this['_savedMetaData']['delete'](_0x59308e);}['reInit'](){this[_0x50c0('0x42')](),this[_0x50c0('0x5a')]=-0x1,this['_lastTo']=-0x1,this[_0x50c0('0x90')][_0x50c0('0x8f')](),this[_0x50c0('0xbc')](this['source']);}[_0x50c0('0x42')](){this['_touched'][_0x50c0('0x8f')](),this[_0x50c0('0xbb')][_0x50c0('0x8f')](),this[_0x50c0('0xa7')][_0x50c0('0x8f')](),this[_0x50c0('0xa2')][_0x50c0('0x8f')](),this[_0x50c0('0xf9')][_0x50c0('0x8f')](),this[_0x50c0('0xea')][_0x50c0('0x8f')](),this[_0x50c0('0xf3')][_0x50c0('0x8f')](),this[_0x50c0('0x29')]['clear'](),this['_baseIdsRoots'][_0x50c0('0x8f')](),this[_0x50c0('0x57')][_0x50c0('0x8f')](),this[_0x50c0('0x3c')]=0x1,this[_0x50c0('0x7b')]=this[_0x50c0('0x3c')];}[_0x50c0('0xf4')](_0x398c6a,_0x23a6a3=null){let _0x24e006=null;_0x398c6a['is']('documentFragment')||(_0x24e006=new _0x230b69(_0x398c6a[_0x50c0('0x8c')],{'vid_start':null===_0x23a6a3?this[_0x50c0('0x3c')]++:_0x23a6a3++}));const _0x800ba4=[];for(const _0xfaefba of _0x398c6a['getChildren']())if(_0xfaefba['is'](_0x50c0('0xc1'))){_0x800ba4[_0x50c0('0x4b')](this['_makeIdsRoot'](_0xfaefba,_0x23a6a3));const _0x567fd5=_0x800ba4[_0x800ba4[_0x50c0('0xe4')]-0x1];null!==_0x23a6a3&&(_0x23a6a3=_0x567fd5['is'](_0x50c0('0xc1'),_0x50c0('0x1c'))?_0x567fd5['getAttribute']('vid')+0x1:_0x567fd5[_0x50c0('0xa6')](_0x50c0('0x5b'))+0x1);}else for(let _0x21030c=0x0;_0x21030c<_0xfaefba[_0x50c0('0x1')];_0x21030c++)_0x800ba4[_0x50c0('0x4b')](new _0x230b69(_0x50c0('0x1c'),{'vid':null===_0x23a6a3?this[_0x50c0('0x3c')]++:_0x23a6a3++}));if(_0x398c6a['is'](_0x50c0('0x2c'))){const _0x749ef3=G(_0x398c6a[_0x50c0('0xf2')]);return _0x749ef3['_insertChild'](0x0,_0x800ba4),_0x749ef3;}return _0x24e006[_0x50c0('0x55')](_0x50c0('0x5b'),null===_0x23a6a3?this[_0x50c0('0x3c')]++:_0x23a6a3++),_0x24e006['_insertChild'](0x0,_0x800ba4),_0x24e006;}['_calculateMetaData'](_0x5cf37a,_0x573c2f,_0x1b2abe){this[_0x50c0('0x42')]();const {roots:_0x5a92dc,markers:_0x12399a,rootsAttributes:_0x16bfda}=this[_0x50c0('0x90')][_0x50c0('0x7a')](_0x5cf37a);this[_0x50c0('0xea')]=new Map(_0x5a92dc),this[_0x50c0('0xf3')]=new Map(_0x879743(_0x16bfda));for(const [_0x5e4457,_0x491459]of this[_0x50c0('0xea')])if(_0x50c0('0x37')!==_0x5e4457&&(this[_0x50c0('0xa2')][_0x50c0('0xc')](_0x5e4457,q(_0x491459)),this[_0x50c0('0xf9')]=new Map(_0x879743(_0x16bfda)),_0x1b2abe)){const _0x175597=this[_0x50c0('0x3c')];this[_0x50c0('0x29')]['set'](_0x5e4457,this[_0x50c0('0xf4')](_0x491459)),this[_0x50c0('0x10')][_0x50c0('0xc')](_0x5e4457,this[_0x50c0('0xf4')](_0x491459,_0x175597));}this['_startingRevisionId']=this[_0x50c0('0x3c')],this[_0x50c0('0xa2')][_0x50c0('0xc')](_0x50c0('0x37'),q(this[_0x50c0('0xea')][_0x50c0('0x7a')](_0x50c0('0x37')))),_0x1b2abe&&this[_0x50c0('0x29')][_0x50c0('0xc')](_0x50c0('0x37'),this[_0x50c0('0xf4')](this[_0x50c0('0xea')][_0x50c0('0x7a')](_0x50c0('0x37'))));for(const [_0x58a36d,_0x3a8e3c]of _0x12399a){const _0x162d30=this[_0x50c0('0xea')][_0x50c0('0x7a')](_0x3a8e3c[_0x50c0('0xf2')]),_0x20861c=this[_0x50c0('0xa2')][_0x50c0('0x7a')](_0x3a8e3c[_0x50c0('0xf2')]),_0x4d62c0=new _0x4d128e(this[_0x50c0('0x79')](_0x3a8e3c[_0x50c0('0x2b')],_0x162d30),this[_0x50c0('0x79')](_0x3a8e3c[_0x50c0('0xef')],_0x162d30)),_0x5317a7=this['_fixRange'](_0x4d62c0,_0x20861c);_0x162d30[_0x50c0('0xa8')][_0x50c0('0xc')](_0x58a36d,_0x4d62c0),this[_0x50c0('0x57')]['set'](_0x58a36d,_0x5317a7);}this[_0x50c0('0xd9')](_0x5cf37a,_0x573c2f,_0x1b2abe);}[_0x50c0('0xd9')](_0xc23e6,_0x45ec2a,_0x3eae6d){for(const _0x5e6555 of this[_0x50c0('0x46')][_0x50c0('0x2e')](_0xc23e6,_0x45ec2a))this[_0x50c0('0x87')](_0x5e6555,_0x3eae6d);for(const _0x201dbd of this[_0x50c0('0xa2')][_0x50c0('0x9b')]())_0x201dbd['markers'][_0x50c0('0x8f')]();for(const [_0x630592,_0x3ae19f]of this[_0x50c0('0x57')]){this['_diffRoots'][_0x50c0('0x7a')](_0x3ae19f[_0x50c0('0x53')][_0x50c0('0xf2')])[_0x50c0('0xa8')]['set'](_0x630592,_0x3ae19f['clone']());}const _0xe95eb3=new Map(),_0x366dc3=new Map();for(const [_0x1641c2,_0x5986a0]of this[_0x50c0('0xa2')])_0xe95eb3[_0x50c0('0xc')](_0x1641c2,q(_0x5986a0)),_0x366dc3[_0x50c0('0xc')](_0x1641c2,this[_0x50c0('0xf9')]['get'](_0x1641c2));this['_saveMetaData'](_0x45ec2a,_0xe95eb3,this[_0x50c0('0x57')],_0x366dc3);}[_0x50c0('0xb')](_0x4b3fff){const _0x4b4676=Array[_0x50c0('0x72')](this[_0x50c0('0x90')]['keys']());_0x4b4676['sort']((_0x114b81,_0x1b4f40)=>_0x114b81-_0x1b4f40),_0x4b4676['reverse']();for(const _0x30053f of _0x4b4676)if(_0x30053f<_0x4b3fff)return _0x30053f;return Number[_0x50c0('0xce')];}['_copyMarkers'](_0x185d08,_0x3226d4){const _0x231098=Array[_0x50c0('0x72')](_0x3226d4['markers'])[_0x50c0('0x4f')](([_0x275dec,_0x4a2152])=>[_0x275dec,this[_0x50c0('0x81')](_0x4a2152,_0x185d08)]);_0x185d08[_0x50c0('0xa8')]=new Map(_0x231098);}[_0x50c0('0x73')](_0x4d3cd5){for(const _0x430247 of this[_0x50c0('0x57')][_0x50c0('0x9b')]()){const _0x185308=_0x430247[_0x50c0('0xfc')](_0x4d3cd5),_0xaeca49=_0x4d128e[_0x50c0('0x1f')](_0x185308);_0x430247[_0x50c0('0x2b')]=_0xaeca49[_0x50c0('0x2b')],_0x430247['end']=_0xaeca49[_0x50c0('0xef')];}}['_handleOperation'](_0x2c15a3,_0x9bb35d){if(_0x50c0('0xcf')==_0x2c15a3['type']||_0x50c0('0xee')==_0x2c15a3[_0x50c0('0x27')])return void this['_handleRootOperation'](_0x2c15a3,_0x9bb35d);if(_0x50c0('0x45')==_0x2c15a3[_0x50c0('0x27')]){const _0x402321=_0x2c15a3['position'][_0x50c0('0x53')][_0x50c0('0xf2')];this['_diffRoots'][_0x50c0('0xa0')](_0x402321)||(this[_0x50c0('0xa2')][_0x50c0('0xc')](_0x402321,G(_0x402321,!0x0)),this[_0x50c0('0xf9')][_0x50c0('0xc')](_0x402321,{}),_0x9bb35d&&this[_0x50c0('0x29')][_0x50c0('0xc')](_0x402321,G(_0x402321,!0x0)));}else{if('addRootAttribute'==_0x2c15a3[_0x50c0('0x27')]||'removeRootAttribute'==_0x2c15a3[_0x50c0('0x27')]||_0x50c0('0x2f')==_0x2c15a3[_0x50c0('0x27')])return void this[_0x50c0('0xca')](_0x2c15a3);}const _0x2a5e6b=this[_0x50c0('0x58')](_0x2c15a3,this[_0x50c0('0xa2')]);if(_0x50c0('0x0')!==_0x2c15a3[_0x50c0('0x27')]&&(_0x2a5e6b[_0x50c0('0xd1')](),this[_0x50c0('0x73')](_0x2a5e6b)),_0x9bb35d)switch(_0x2a5e6b['type']){case _0x50c0('0x45'):this[_0x50c0('0xec')](_0x2c15a3);break;case'move':case _0x50c0('0x109'):case _0x50c0('0x98'):this[_0x50c0('0x5d')](_0x2c15a3);break;case _0x50c0('0xe9'):this[_0x50c0('0x1b')](_0x2c15a3);break;case'split':this[_0x50c0('0x6b')](_0x2c15a3);break;case _0x50c0('0x0'):this[_0x50c0('0xc7')](_0x2c15a3);}}[_0x50c0('0x58')](_0x5b0941,_0x159df7){const _0x2c95ca=_0x5b0941[_0x50c0('0x13')]();return _0x2c95ca[_0x50c0('0x8d')]=_0x5b0941['_authorId'],this['_fixOperation'](_0x2c95ca,_0x159df7),_0x2c95ca;}[_0x50c0('0xb7')](_0x1fb6ac){return _0x1fb6ac[_0x50c0('0x4f')](_0x310b19=>{const _0x961f60=this[_0x50c0('0xc3')](_0x310b19);return Number(_0x310b19[_0x50c0('0x5f')][_0x50c0('0xa6')](_0x961f60));});}[_0x50c0('0xde')](_0x3439a3,_0x1e0832){if(_0x3439a3['is'](_0x50c0('0xc1'),_0x50c0('0x1c')))_0x1e0832[_0x50c0('0x4b')]({'item':_0x3439a3,'type':'text'});else{_0x3439a3['is'](_0x50c0('0xc1'))&&_0x1e0832[_0x50c0('0x4b')]({'item':_0x3439a3,'type':_0x50c0('0x67')});for(const _0x139ff7 of _0x3439a3[_0x50c0('0x47')]())this[_0x50c0('0xde')](_0x139ff7,_0x1e0832);_0x3439a3['is'](_0x50c0('0xc1'))&&_0x1e0832[_0x50c0('0x4b')]({'item':_0x3439a3,'type':_0x50c0('0x39')});}return _0x1e0832;}[_0x50c0('0x3e')](){const _0xe68199=new Map(this[_0x50c0('0x21')]),_0x5cd61d=new Map(_0xe68199),_0x350303=new Map(),_0x1f6d62={'insertions':{},'deletions':{}},_0x16688={'insertions':{},'deletions':{}},_0x540c3b=new Map(),_0x39be80=new Set([...this[_0x50c0('0xea')][_0x50c0('0xa5')](),...this['_diffRoots'][_0x50c0('0xa5')]()]);_0x39be80[_0x50c0('0xb9')](_0x50c0('0x37'));for(const _0x41fefc of _0x39be80){const _0x2d405d=this['_diffRoots']['get'](_0x41fefc)||G(_0x41fefc,!0x1),_0x11427a=this[_0x50c0('0xea')][_0x50c0('0x7a')](_0x41fefc)||G(_0x41fefc,!0x1);_0x2d405d[_0x50c0('0xd4')]()||_0x11427a['isAttached']()?(_0x1f6d62[_0x50c0('0x7e')][_0x41fefc]=q(_0x2d405d),_0x1f6d62[_0x50c0('0xf1')][_0x41fefc]=q(_0x11427a),this[_0x50c0('0xc2')](_0x1f6d62['deletions'][_0x41fefc],_0x11427a),this[_0x50c0('0xc2')](_0x1f6d62[_0x50c0('0x7e')][_0x41fefc],_0x2d405d),_0x16688[_0x50c0('0x7e')][_0x41fefc]=this[_0x50c0('0xde')](this['_idsRoots'][_0x50c0('0x7a')](_0x41fefc),[]),_0x16688['deletions'][_0x41fefc]=this['_generateTape'](this[_0x50c0('0x10')][_0x50c0('0x7a')](_0x41fefc)||G(_0x41fefc,!0x1),[])):_0x39be80[_0x50c0('0xb9')](_0x41fefc);}for(const _0x2a5558 of _0x39be80){const _0x171f01=_0x16688[_0x50c0('0x7e')][_0x2a5558];for(const _0x36839e of _0x171f01){const _0x94eb5=this[_0x50c0('0xc3')](_0x36839e),_0xed0e47=_0x36839e[_0x50c0('0x5f')]['getAttribute'](_0x94eb5);_0x5cd61d['delete'](_0xed0e47),_0xed0e47>=this[_0x50c0('0x7b')]&&_0x350303[_0x50c0('0xc')](_0xed0e47,_0xe68199[_0x50c0('0x7a')](_0xed0e47));}}for(const _0x33edd1 of _0x39be80){const _0x4a7897=_0x16688[_0x50c0('0x7e')][_0x33edd1],_0xa75375=this['_getBaseVids'](_0x16688['deletions'][_0x33edd1]);let _0x5ee301=0x0;for(const _0xdc513a of _0x4a7897){const _0x3832ef=this['_getVidAttributeName'](_0xdc513a),_0x50ad01=_0xdc513a[_0x50c0('0x5f')][_0x50c0('0xa6')](_0x3832ef);if(!_0x350303[_0x50c0('0xa0')](_0x50ad01)&&!_0x540c3b[_0x50c0('0xa0')](_0x50ad01)){if(_0x5cd61d['has'](_0x50ad01))_0x5ee301++;else{if(_0x50ad01!=_0xa75375[_0x5ee301]){const _0x3f8486=_0xe68199[_0x50c0('0x7a')](_0x50ad01)||_0xe68199[_0x50c0('0x7a')](_0xa75375[_0x5ee301]);for(;_0x50ad01!=_0xa75375[_0x5ee301];)_0x5cd61d[_0x50c0('0xa0')](_0xa75375[_0x5ee301])||(_0x540c3b[_0x50c0('0xc')](_0xa75375[_0x5ee301],_0x3f8486),_0xe68199[_0x50c0('0xc')](_0xa75375[_0x5ee301],_0x3f8486)),_0x5ee301++;}_0x5ee301++;}}}}for(const _0x3319b0 of _0x39be80){const _0x4400da=_0x16688[_0x50c0('0x7e')][_0x3319b0];for(const _0x458362 of _0x4400da){const _0x3ba700=this['_getVidAttributeName'](_0x458362),_0x3da30e=_0x458362[_0x50c0('0x5f')][_0x50c0('0xa6')](_0x3ba700);if(_0x540c3b[_0x50c0('0xa0')](_0x3da30e)){const _0xa06a69=_0x540c3b['get'](_0x3da30e);_0x5cd61d[_0x50c0('0xa0')](_0x3da30e)||_0x5cd61d[_0x50c0('0xc')](_0x3da30e,{..._0xa06a69}),_0x350303[_0x50c0('0xc')](_0x3da30e,{..._0xa06a69});}}}for(const _0x47e6b3 of _0x5cd61d['keys']())_0x47e6b3>=this['_startingRevisionId']&&_0x5cd61d[_0x50c0('0xb9')](_0x47e6b3);const _0x508d5a=new Map();for(const _0x2a81eb of _0x39be80){let _0x5cc8b8=_0x16688[_0x50c0('0x7e')][_0x2a81eb];for(const _0x47ef46 of _0x5cc8b8)if(_0x47ef46[_0x50c0('0x5f')]['is'](_0x50c0('0xc1'),'tableCell')){const _0x506006=this[_0x50c0('0xc3')](_0x47ef46),_0x3c9049=_0x47ef46[_0x50c0('0x5f')][_0x50c0('0xa6')](_0x506006);if(_0x350303[_0x50c0('0xa0')](_0x3c9049)){const _0x442168=_0x47ef46['item'][_0x50c0('0x5c')][_0x50c0('0x5c')][_0x50c0('0xa6')](_0x50c0('0xe')),_0x19fa6c=_0x508d5a[_0x50c0('0x7a')](_0x442168)||new Set();_0x19fa6c[_0x50c0('0x6e')](_0x350303[_0x50c0('0x7a')](_0x3c9049)[_0x50c0('0x62')]),_0x508d5a['set'](_0x442168,_0x19fa6c);}}_0x5cc8b8=_0x16688[_0x50c0('0xf1')][_0x2a81eb];for(const _0x4778d9 of _0x5cc8b8)if(_0x4778d9['item']['is'](_0x50c0('0xc1'),_0x50c0('0xc4'))){const _0x3666ce=this['_getVidAttributeName'](_0x4778d9),_0x422b39=_0x4778d9[_0x50c0('0x5f')]['getAttribute'](_0x3666ce);if(_0x5cd61d['has'](_0x422b39)){const _0x3025bf=_0x4778d9[_0x50c0('0x5f')][_0x50c0('0x5c')][_0x50c0('0x5c')][_0x50c0('0xa6')](_0x50c0('0xe')),_0x41d67d=_0x508d5a[_0x50c0('0x7a')](_0x3025bf)||new Set();_0x41d67d[_0x50c0('0x6e')](_0x5cd61d['get'](_0x422b39)['userId']),_0x508d5a[_0x50c0('0xc')](_0x3025bf,_0x41d67d);}}for(const _0x403a4d of _0x508d5a[_0x50c0('0xa5')]())(_0x350303[_0x50c0('0xa0')](_0x403a4d)||_0x5cd61d[_0x50c0('0xa0')](_0x403a4d))&&_0x508d5a['delete'](_0x403a4d);}for(const _0x25c3da of _0x39be80){const _0x5dc3e1=_0x16688['insertions'][_0x25c3da];let _0x1190a6=null,_0x3edc57=null;for(const _0x66bd3e of _0x5dc3e1){const _0x96bb26=this['_getVidAttributeName'](_0x66bd3e),_0x4852f1=_0x66bd3e[_0x50c0('0x5f')][_0x50c0('0xa6')](_0x96bb26),_0x188a6b=_0x508d5a[_0x50c0('0x7a')](_0x4852f1);_0x188a6b&&'elementStart'==_0x66bd3e['type']&&(_0x1190a6=Array[_0x50c0('0x72')](_0x188a6b)[0x0],_0x3edc57=_0x66bd3e[_0x50c0('0x5f')][_0x50c0('0xa6')](_0x50c0('0x5b'))),_0x1190a6&&(_0x5cd61d[_0x50c0('0xc')](_0x4852f1,{'userId':_0x1190a6}),_0x350303[_0x50c0('0xc')](_0x4852f1,{'userId':_0x1190a6})),_0x4852f1==_0x3edc57&&(_0x1190a6=null,_0x3edc57=null);}}const _0x5a4abb={},_0x3c28bb=new Set();for(const _0x1477cc of _0x39be80){const _0x4408f1=_0x1f6d62[_0x50c0('0xf1')][_0x1477cc],_0x137436=_0x1f6d62[_0x50c0('0x7e')][_0x1477cc];for(const {userId:_0x218048}of this[_0x50c0('0xbb')][_0x50c0('0x9b')]())null!==_0x218048&&_0x3c28bb[_0x50c0('0x6e')](_0x218048);for(const {userId:_0x6e71c8}of this[_0x50c0('0xa7')][_0x50c0('0x9b')]())null!==_0x6e71c8&&_0x3c28bb[_0x50c0('0x6e')](_0x6e71c8);this[_0x50c0('0xcb')](_0x137436,_0x16688[_0x50c0('0x7e')][_0x1477cc],_0x350303,_0x50c0('0x6'),_0x3c28bb),this['_markChanges'](_0x4408f1,_0x16688[_0x50c0('0xf1')][_0x1477cc],_0x5cd61d,_0x50c0('0x36'),_0x3c28bb),_0x5a4abb[_0x1477cc]={'insertions':this[_0x50c0('0x77')](_0x137436),'deletions':this[_0x50c0('0x77')](_0x4408f1),'attachChange':this[_0x50c0('0xa7')][_0x50c0('0x7a')](_0x1477cc)||null,'attributesBefore':_0x879743(this[_0x50c0('0xf3')][_0x50c0('0x7a')](_0x1477cc))||{},'attributesAfter':_0x879743(this[_0x50c0('0xf9')]['get'](_0x1477cc))};}return{'diffData':_0x5a4abb,'authorsIds':Array[_0x50c0('0x72')](_0x3c28bb)};}['_processRootBeforeSave'](_0x100012){for(const [,_0x8b1ae9]of _0x100012[_0x50c0('0xa8')]){const _0x273a5c=_0x8b1ae9[_0x50c0('0x2b')][_0x50c0('0xd')]()['filter'](_0x5dde8f=>_0x50c0('0xc4')==_0x5dde8f['name']);for(const _0x356a5f of _0x273a5c)0x1==_0x356a5f[_0x50c0('0x3f')]&&_0x356a5f[_0x50c0('0x1d')](0x0)['is'](_0x50c0('0xc1'),'paragraph')&&_0x356a5f[_0x50c0('0x1d')](0x0)[_0x50c0('0x55')](_0x50c0('0x15'),!0x0);}}[_0x50c0('0x77')](_0x3ee1f8){this['_processRootBeforeSave'](_0x3ee1f8);const _0x2863e0=this[_0x50c0('0x105')][_0x50c0('0x84')][_0x50c0('0xe8')](_0x3ee1f8,{}),_0x4334dc=Array[_0x50c0('0x72')](_0x2863e0[_0x50c0('0x47')]())[_0x50c0('0x4f')](_0x583060=>this['_getViewJson'](_0x583060));return JSON[_0x50c0('0xe2')](_0x4334dc);}[_0x50c0('0xfb')](_0x36b230){if(_0x36b230['is'](_0x50c0('0x1c')))return _0x36b230['data'];{const _0x19cc79=_0x36b230;return{'type':Object[_0x50c0('0xa5')](B)[_0x50c0('0xed')](_0x19f0fb=>_0x36b230 instanceof B[_0x19f0fb]),'name':_0x19cc79['name'],'attributes':Array[_0x50c0('0x72')](_0x19cc79[_0x50c0('0xbd')]()),'children':Array[_0x50c0('0x72')](_0x19cc79[_0x50c0('0x47')]())[_0x50c0('0x4f')](_0x319dba=>this['_getViewJson'](_0x319dba))};}}[_0x50c0('0xcb')](_0x7f952d,_0x400242,_0x4c1bab,_0xa51af,_0x29c0f5){let _0x138a87=null,_0x25cb51=null,_0x1e1cf4=0x0;const _0x8f5f02=this['editor'][_0x50c0('0x99')];for(let _0xefb4d=0x0;_0xefb4d<_0x400242['length'];_0xefb4d++){const _0x2070cb=this['_getVidAttributeName'](_0x400242[_0xefb4d]),_0x311704=_0x400242[_0xefb4d][_0x50c0('0x5f')][_0x50c0('0xa6')](_0x2070cb),_0x90894=_0x4c1bab[_0x50c0('0x7a')](_0x311704),_0x25fd71=_0xefb4d==_0x400242[_0x50c0('0xe4')]-0x1;(!_0x138a87&&_0x90894&&(_0x138a87=_0x90894,_0x25cb51=_0x400242[_0xefb4d]),_0x138a87&&(!_0x90894||_0x90894[_0x50c0('0x62')]!=_0x138a87[_0x50c0('0x62')]))&&(_0x342656(_0x90894,L(_0x25cb51,_0x7f952d,_0x8f5f02),L(_0x400242[_0xefb4d],_0x7f952d,_0x8f5f02)),_0x138a87=_0x90894||null,_0x25cb51=_0x90894?_0x400242[_0xefb4d]:null),_0x138a87&&_0x25fd71&&_0x342656(_0x90894,L(_0x25cb51,_0x7f952d,_0x8f5f02),W(_0x400242[_0xefb4d],_0x7f952d,_0x8f5f02));}function _0x342656(_0x533c17,_0x20b04a,_0x5b22b7){const _0x4669ea=_0x138a87[_0x50c0('0x62')],_0x1405c3=_0x50c0('0x30')+_0xa51af+':'+_0x4669ea+':'+_0x1e1cf4++,_0x16097f=_0x8f5f02['createRange'](_0x20b04a,_0x5b22b7);_0x7f952d[_0x50c0('0xa8')][_0x50c0('0xc')](_0x1405c3,_0x16097f),null!==_0x4669ea&&_0x29c0f5[_0x50c0('0x6e')](_0x4669ea);}}[_0x50c0('0xc3')](_0x16d5d9){switch(_0x16d5d9[_0x50c0('0x27')]){case _0x50c0('0x67'):return'vid_start';case _0x50c0('0x39'):return _0x50c0('0x5b');default:return _0x50c0('0x4c');}}[_0x50c0('0xb0')](_0x1f2860,_0x49dd97){_0x1f2860[_0x50c0('0x95')]=null;for(const _0x3b8e76 in _0x1f2860){const _0x2ec3bf=_0x1f2860[_0x3b8e76];if(_0x2ec3bf instanceof _0x53c7bd){const _0x1c8e16=_0x49dd97[_0x50c0('0x7a')](_0x2ec3bf[_0x50c0('0x53')][_0x50c0('0xf2')]);_0x1f2860[_0x3b8e76]=this[_0x50c0('0x79')](_0x2ec3bf,_0x1c8e16);}if(_0x2ec3bf instanceof _0x4d128e){const _0x49abaf=_0x49dd97[_0x50c0('0x7a')](_0x2ec3bf[_0x50c0('0x53')]['rootName']);_0x1f2860[_0x3b8e76]=this[_0x50c0('0x81')](_0x2ec3bf,_0x49abaf);}_0x50c0('0x53')===_0x3b8e76&&(_0x1f2860[_0x50c0('0x53')]=_0x49dd97[_0x50c0('0x7a')](_0x1f2860[_0x50c0('0x53')][_0x50c0('0xf2')]));}}['_fixRange'](_0x38563a,_0x3b618d){return this['editor'][_0x50c0('0x99')][_0x50c0('0xdb')](this[_0x50c0('0x79')](_0x38563a['start'],_0x3b618d),this[_0x50c0('0x79')](_0x38563a['end'],_0x3b618d));}[_0x50c0('0x79')](_0x323ed0,_0x2819c8){return this[_0x50c0('0x105')][_0x50c0('0x99')][_0x50c0('0x32')](_0x2819c8,_0x323ed0[_0x50c0('0x94')],_0x323ed0[_0x50c0('0x7c')]);}[_0x50c0('0xec')](_0x382e4a){const _0x4f9f84=this[_0x50c0('0x29')][_0x50c0('0x7a')](_0x382e4a[_0x50c0('0xd5')][_0x50c0('0x53')][_0x50c0('0xf2')]),_0x5c9c6a=this[_0x50c0('0x79')](_0x382e4a['position'],_0x4f9f84),_0x1e8af9=null===_0x382e4a['_authorId']?null:_0x382e4a[_0x50c0('0x8d')]||this[_0x50c0('0x105')][_0x50c0('0x44')][_0x50c0('0x7a')](_0x50c0('0x9e'))['me']['id'],_0x27e734=_0x5c9c6a[_0x50c0('0x5c')],_0x40ba0a=this[_0x50c0('0x3c')],_0x594ed8=[];for(const _0x41e911 of _0x382e4a[_0x50c0('0x16')])if(_0x41e911['is'](_0x50c0('0xc1')))_0x594ed8['push'](this[_0x50c0('0xf4')](_0x41e911));else for(let _0x30475d=0x0;_0x30475d<_0x41e911['offsetSize'];_0x30475d++)_0x594ed8[_0x50c0('0x4b')](new _0x230b69(_0x50c0('0x1c'),{'vid':this[_0x50c0('0x3c')]++}));const _0x38a27d=this[_0x50c0('0x3c')];for(let _0x4dddb5=_0x40ba0a;_0x4dddb5<_0x38a27d;_0x4dddb5++)this[_0x50c0('0x21')][_0x50c0('0xc')](_0x4dddb5,{'userId':_0x1e8af9});_0x27e734[_0x50c0('0x89')](_0x5c9c6a[_0x50c0('0x83')],_0x594ed8);}[_0x50c0('0x5d')](_0x550b21){(_0x550b21=this[_0x50c0('0x58')](_0x550b21,this[_0x50c0('0x29')]))['_execute']();const _0x4c7504=null===_0x550b21['_authorId']?null:_0x550b21[_0x50c0('0x8d')]||this['editor'][_0x50c0('0x44')][_0x50c0('0x7a')](_0x50c0('0x9e'))['me']['id'],_0x2e417e=_0x550b21[_0x50c0('0xab')](),_0x2fc97e=_0x2e417e['parent'],_0x2265ab=_0x2e417e[_0x50c0('0x83')];!function _0x3d145a(_0x4df8aa,_0x5737e0,_0x1f935f,_0x1bb76b){for(let _0x3ec8b5=_0x1f935f;_0x3ec8b5<_0x1bb76b;_0x3ec8b5++){const _0x4fc939=_0x5737e0[_0x50c0('0x1d')](_0x3ec8b5);_0x4fc939['is']('element','$text')?_0x4df8aa[_0x50c0('0xc')](_0x4fc939[_0x50c0('0xa6')](_0x50c0('0x4c')),{'userId':_0x4c7504}):(_0x4df8aa[_0x50c0('0xc')](_0x4fc939[_0x50c0('0xa6')](_0x50c0('0xe')),{'userId':_0x4c7504}),_0x3d145a(_0x4df8aa,_0x4fc939,0x0,_0x4fc939[_0x50c0('0x3f')]),_0x4df8aa[_0x50c0('0xc')](_0x4fc939[_0x50c0('0xa6')](_0x50c0('0x5b')),{'userId':_0x4c7504}));}}(this[_0x50c0('0x21')],_0x2fc97e,_0x2265ab,_0x2265ab+_0x550b21[_0x50c0('0x4a')]);}['_handleMergeOperation'](_0x4d3d0c){const _0x504f3d=null===(_0x4d3d0c=this['_cloneOperation'](_0x4d3d0c,this[_0x50c0('0x29')]))['_authorId']?null:_0x4d3d0c['_authorId']||this[_0x50c0('0x105')][_0x50c0('0x44')][_0x50c0('0x7a')](_0x50c0('0x9e'))['me']['id'],_0x39a7aa=_0x4d3d0c['targetPosition'][_0x50c0('0x5c')],_0x397e3c=_0x4d3d0c[_0x50c0('0x34')][_0x50c0('0x5c')],_0x5bc17c=_0x39a7aa[_0x50c0('0xa6')]('vid_end'),_0x3d2a9d=_0x397e3c['getAttribute'](_0x50c0('0xe'));_0x39a7aa['_setAttribute']('vid_end',_0x397e3c[_0x50c0('0xa6')](_0x50c0('0x5b'))),_0x397e3c['_setAttribute'](_0x50c0('0x5b'),_0x5bc17c),this[_0x50c0('0x21')]['set'](_0x3d2a9d,{'userId':_0x504f3d}),this['_touched']['set'](_0x5bc17c,{'userId':_0x504f3d}),_0x4d3d0c[_0x50c0('0xd1')]();}['_handleSplitOperation'](_0x26caec){const _0x39d3c4=null===(_0x26caec=this[_0x50c0('0x58')](_0x26caec,this[_0x50c0('0x29')]))['_authorId']?null:_0x26caec[_0x50c0('0x8d')]||this[_0x50c0('0x105')]['plugins'][_0x50c0('0x7a')](_0x50c0('0x9e'))['me']['id'],_0x1a46b7=_0x26caec[_0x50c0('0xaf')],_0x3af6ef=_0x26caec[_0x50c0('0x10a')][_0x50c0('0x5c')];_0x26caec[_0x50c0('0xd1')]();const _0x3c48c6=_0x3af6ef[_0x50c0('0xa6')](_0x50c0('0x5b')),_0x29ca4e=_0x26caec[_0x50c0('0x65')][_0x50c0('0x25')];if(_0x1a46b7){const _0x29cd4a=_0x29ca4e['getAttribute']('vid_end'),_0x7e135b=_0x3af6ef[_0x50c0('0xa6')](_0x50c0('0x5b'));_0x3af6ef[_0x50c0('0x55')](_0x50c0('0x5b'),_0x29cd4a),_0x29ca4e[_0x50c0('0x55')]('vid_end',_0x7e135b),this[_0x50c0('0x21')][_0x50c0('0xc')](_0x3af6ef[_0x50c0('0xa6')](_0x50c0('0x5b')),{'userId':_0x39d3c4}),this[_0x50c0('0x21')][_0x50c0('0xc')](_0x29ca4e['getAttribute'](_0x50c0('0xe')),{'userId':_0x39d3c4});}else{const _0x32343f=this[_0x50c0('0x3c')]++,_0xa069e=this[_0x50c0('0x3c')]++;_0x3af6ef['_setAttribute'](_0x50c0('0x5b'),_0x32343f),_0x29ca4e['_setAttribute'](_0x50c0('0xe'),_0xa069e),_0x29ca4e[_0x50c0('0x55')](_0x50c0('0x5b'),_0x3c48c6),this[_0x50c0('0x21')][_0x50c0('0xc')](_0x32343f,{'userId':_0x39d3c4}),this[_0x50c0('0x21')][_0x50c0('0xc')](_0xa069e,{'userId':_0x39d3c4});}}['_handleMarkerOperation'](_0x5d1ab8){if(!_0x5d1ab8['affectsData'])return;const _0x1a6e7a=(_0x5d1ab8=this[_0x50c0('0x58')](_0x5d1ab8,this[_0x50c0('0xa2')]))[_0x50c0('0x70')]?_0x5d1ab8[_0x50c0('0x70')][_0x50c0('0x53')]:null,_0x1371cd=_0x5d1ab8[_0x50c0('0x102')]?_0x5d1ab8[_0x50c0('0x102')][_0x50c0('0x53')]:null;_0x1a6e7a&&this[_0x50c0('0x57')][_0x50c0('0xb9')](_0x5d1ab8[_0x50c0('0x8c')]),_0x1371cd&&this[_0x50c0('0x57')][_0x50c0('0xc')](_0x5d1ab8[_0x50c0('0x8c')],_0x5d1ab8['newRange'][_0x50c0('0x13')]());const _0x14d707=null===_0x5d1ab8[_0x50c0('0x8d')]?null:_0x5d1ab8[_0x50c0('0x8d')]||this['editor']['plugins'][_0x50c0('0x7a')]('Users')['me']['id'],_0x4a84d9=_0x5d1ab8[_0x50c0('0x8c')];if(!this[_0x50c0('0xbb')][_0x50c0('0xa0')](_0x4a84d9))return void this[_0x50c0('0xbb')][_0x50c0('0xc')](_0x4a84d9,{'range':_0x5d1ab8['oldRange'],'userId':_0x14d707});const _0x1b9147=this[_0x50c0('0xbb')][_0x50c0('0x7a')](_0x4a84d9),_0x2c63cf=_0x1b9147[_0x50c0('0x1e')],_0x3897b2=_0x5d1ab8[_0x50c0('0x102')];null==_0x2c63cf&&null==_0x3897b2||_0x2c63cf&&_0x3897b2&&_0x2c63cf['isEqual'](_0x3897b2)?this['_touchedMarkers'][_0x50c0('0xb9')](_0x5d1ab8[_0x50c0('0x8c')]):_0x1b9147[_0x50c0('0x62')]=_0x14d707;}['_handleRootOperation'](_0x1999b6,_0x5072cc){this[_0x50c0('0xa2')][_0x50c0('0xa0')](_0x1999b6[_0x50c0('0xf2')])?this[_0x50c0('0xa2')][_0x50c0('0x7a')](_0x1999b6[_0x50c0('0xf2')])[_0x50c0('0xe0')]=_0x1999b6['isAdd']:(this[_0x50c0('0xa2')][_0x50c0('0xc')](_0x1999b6[_0x50c0('0xf2')],G(_0x1999b6[_0x50c0('0xf2')],!0x0)),this[_0x50c0('0xf9')][_0x50c0('0xc')](_0x1999b6[_0x50c0('0xf2')],{}),_0x5072cc&&this[_0x50c0('0x29')][_0x50c0('0xc')](_0x1999b6[_0x50c0('0xf2')],G(_0x1999b6['rootName'],!0x0)));const _0x5c1352=null===_0x1999b6['_authorId']?null:_0x1999b6[_0x50c0('0x8d')]||this[_0x50c0('0x105')][_0x50c0('0x44')]['get'](_0x50c0('0x9e'))['me']['id'],_0x3fa05b=this[_0x50c0('0xa7')][_0x50c0('0x7a')](_0x1999b6[_0x50c0('0xf2')]);_0x3fa05b&&_0x3fa05b[_0x50c0('0x62')]===_0x5c1352?this[_0x50c0('0xa7')][_0x50c0('0xb9')](_0x1999b6[_0x50c0('0xf2')]):this[_0x50c0('0xa7')][_0x50c0('0xc')](_0x1999b6['rootName'],{'userId':_0x5c1352,'isAttached':_0x1999b6[_0x50c0('0x92')]});}[_0x50c0('0xca')](_0x2cf495){const _0x225269=this[_0x50c0('0xf9')]['get'](_0x2cf495[_0x50c0('0x53')][_0x50c0('0xf2')]);null===_0x2cf495[_0x50c0('0xf')]?delete _0x225269[_0x2cf495[_0x50c0('0x93')]]:_0x225269[_0x2cf495[_0x50c0('0x93')]]=_0x2cf495[_0x50c0('0xf')];}}function q(_0x186637){const _0x3e1de0=G(_0x186637[_0x50c0('0xf2')],_0x186637[_0x50c0('0xd4')]());for(const _0x2d2e1e of _0x186637[_0x50c0('0x47')]()){const _0x42f701=_0x2d2e1e[_0x50c0('0x2d')](!0x0);_0x3e1de0[_0x50c0('0x8b')](_0x42f701);}return _0x3e1de0;}function G(_0xb917ac,_0x37bae6=!0x0){const _0x5ec567=new _0x88f57b();return _0x5ec567[_0x50c0('0xf2')]=_0xb917ac,_0x5ec567[_0x50c0('0xe0')]=_0x37bae6,_0x5ec567[_0x50c0('0xd4')]=()=>_0x5ec567[_0x50c0('0xe0')],_0x5ec567;}function L(_0x131eb7,_0x3d967d,_0x404ec7){const _0x5a9ab4=_0x50c0('0x39')==_0x131eb7['type']?_0x404ec7[_0x50c0('0x59')](_0x131eb7[_0x50c0('0x5f')],_0x50c0('0xef')):_0x404ec7[_0x50c0('0xd8')](_0x131eb7[_0x50c0('0x5f')]);return _0x404ec7[_0x50c0('0x32')](_0x3d967d,_0x5a9ab4['path'],_0x5a9ab4['stickiness']);}function W(_0x5baf3b,_0x2a1081,_0x396041){const _0x339aad=_0x50c0('0x67')==_0x5baf3b[_0x50c0('0x27')]?_0x396041[_0x50c0('0x59')](_0x5baf3b[_0x50c0('0x5f')],0x0):_0x396041[_0x50c0('0xba')](_0x5baf3b['item']);return _0x396041['createPositionFromPath'](_0x2a1081,_0x339aad['path'],_0x339aad['stickiness']);}
|
|
23
|
+
const _0x200e=['find','_handleMoveOperation','vid_start','parent','update','_handleRootAttributeOperation','_setAttribute','_startingVersion','afterInit','sort','get','_continueCurrentRevision','splitPosition','_makeModelFromViewString','_replaceEditorDataWithRevisionData','_touchedRoots','slice','_isPendingUpdate','startsWith','element','nodeAfter','reverse','getAttributes','push','pluginName','_getFromVersion','RevisionTracker','_getState','_prepareViewToSave','adapter','roots','documentFragment','path','_revisionId','vid','baseVersion','_setConversion','config','_pendingAction','stickiness','getTransformedByOperation','_createCurrentRevision','_loadedStateData','_reset','_appendChild','removeRootAttribute','_transformMarkers','keepParagraph','upcast','_markChanges','_handleMarkerOperation','Empty\x20document','_calculateMetaData','repository','revision-end','root','previousPosition','_getBaseVids','toModel','_handleOperation','RevisionsRepository','addRootAttribute','document','creatorId','PendingActions','vid_end','name','_clone','_removeRevisionMarkers','NEGATIVE_INFINITY','resolve','processor','move','saveRevision','clone','howMany','buildRevisionData','type','bind','rootName','source','size','define','_createInitialRevision','clear','init','newRange','_fixOperation','$graveyard','getAncestors','authorsIds','_touched','userId','rootsAttributes','map','set','for','_lastTo','_diffRoots','_lastFrom','_removePendingAction','collaboration.channelId','createRange','reInit','data','_isAttached','filter','fromVersion','markers','_makeRevision','_baseIdsRoots','deletions','_baseRootsAttributes','_copyMarkers','createPositionFromPath','_fixPosition','oldRange','editing','start','_idsRoots','_handleMergeOperation','attachChange','_handleSplitOperation','useFillerType','_diffRootsAttributes','getRevision','marked','revisionHistory.resumeUnsavedRevision','getRevisions','toView','plugins','getNodeByPath','markerToData','insert','attributesAfter','_getViewJson','marker','createPositionAfter','from','_touchedMarkers','parse','PENDING_ACTION_REVISION_HISTORY','addRoot','getMovedRangeStart','_applyOperations','merge','_execute','_handleInsertOperation','affectsData','getUser','remove','_initialRevisionId','loadState','ready','_processRootBeforeSave','locale','_operations','_findInsertionIndex','insertions','_authorId','_handleRootOperation','add','_cloneOperation','authors','_saveMetaData','toVersion','createPositionAt','key','createdAt','_isInit','_addPendingAction','_makeIdsRoot','forEach','editor','isEnabled','changeRootAttribute','_fixRange','deletion','version','detachRoot','position','delete','getTime','creator','_getVidAttributeName','addRevisionData','trim','insertion','elementStart','currentRevision','_source','some','getRevisionRootsAttributes','_loadState','tableCell','offsetSize','string','_revisionDataBuilder','data-revision-','keys','Users','setRevisionData','newValue','_markers','isEqual','$text','graveyardPosition','getAttribute','attributesBefore','isAdd','_createFromRanges','targetPosition','_bufferUpdate','_baseRoots','getData','createRangeIn','offset','length','_savedMetaData','_update','diffData','split','_removeMetaData','Initial\x20revision','elementEnd','getWalker','item','_startingRevisionId','initialData','updateRevisions','revision:','attributes','_generateTape','getChild','getCurrentRevisionId','getRootNames','_getPreviousFrom','isAttached','_loadRevisionData','sendBufferedUpdates','view','getOperation','_bufferedUpdates','end','getIndex','model','conversion','_insertChild','dataToMarker','isReady','getChildren','values','history','has','shift','children','getRoot'];(function(_0x31ab5d,_0x200e09){const _0x1f29bc=function(_0x14e5ff){while(--_0x14e5ff){_0x31ab5d['push'](_0x31ab5d['shift']());}};_0x1f29bc(++_0x200e09);}(_0x200e,0x134));const _0x1f29=function(_0x31ab5d,_0x200e09){_0x31ab5d=_0x31ab5d-0x0;let _0x1f29bc=_0x200e[_0x31ab5d];return _0x1f29bc;};import{Users as _0x321e13}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x3e8263,PendingActions as _0x26c8cd}from'ckeditor5/src/core';import{logWarning as _0x142348,uid as _0x417ca5}from'ckeditor5/src/utils';import{Position as _0x19e12c,Range as _0x2de140,Element as _0x28cd05,DocumentFragment as _0x4511db,ViewText as _0x594c3f,ViewElement as _0x16218f,ViewContainerElement as _0x2529b5,ViewAttributeElement as _0x5e3a86,ViewEmptyElement as _0x2c951f,ViewRawElement as _0x5c6b3e,ViewUIElement as _0x8bb71c,ViewDocumentFragment as _0x1fbff7}from'ckeditor5/src/engine';import _0x483f09 from'./revisionsrepository';import{getTranslation as _0x3119a5}from'./utils/common-translations';import{cloneDeep as _0x1b57dc,isEqual as _0x43a38b}from'lodash-es';const B={'c':_0x2529b5,'a':_0x5e3a86,'e':_0x2c951f,'r':_0x5c6b3e,'u':_0x8bb71c};export default class l extends _0x3e8263{static get[_0x1f29('0xe6')](){return _0x1f29('0xe8');}static get['requires'](){return[_0x321e13,_0x483f09,_0x26c8cd];}constructor(_0x3fac25){super(_0x3fac25),this['adapter']=null,this[_0x1f29('0x8a')]=null,this['_revisionDataBuilder']=new H(this[_0x1f29('0x7a')]),this['_initialRevisionId']=this[_0x1f29('0x7a')]['config'][_0x1f29('0xd8')](_0x1f29('0x32'))||'initial',this[_0x1f29('0xbf')]=new Map(),this[_0x1f29('0xf8')]=null;const _0x5bc68c=_0x417ca5();this['_source']={'history':this[_0x1f29('0x7a')]['model'][_0x1f29('0xb')][_0x1f29('0xc9')],'getLatestVersion':()=>Promise[_0x1f29('0x13')](this[_0x1f29('0x7a')]['model']['document'][_0x1f29('0x7f')]),'getCurrentRevisionId':()=>_0x5bc68c},this['set']('isReady',!0x1),this[_0x1f29('0x2c')](_0x1f29('0x7b'),!0x0),this['set'](_0x1f29('0xdf'),!0x1),this[_0x1f29('0x7a')][_0x1f29('0xf3')][_0x1f29('0x1f')](_0x1f29('0x4c'),!0x0),this[_0x1f29('0x7a')][_0x1f29('0xc3')][_0x1f29('0x2d')](_0x1f29('0xfe'))[_0x1f29('0xc5')]({'view':'revision'});}['init'](){this['repository']=this[_0x1f29('0x7a')]['plugins'][_0x1f29('0xd8')](_0x1f29('0x9')),this['_setConversion'](),this['editor'][_0x1f29('0x35')]['on'](_0x1f29('0x66'),()=>{const _0x4fe4e2=this[_0x1f29('0x2')][_0x1f29('0x4a')](0x0),_0x4fcb7f=_0x4fe4e2&&null===_0x4fe4e2[_0x1f29('0x84')]?_0x4fe4e2:null;if(this[_0x1f29('0xd9')]=!!_0x4fcb7f&&this[_0x1f29('0x7a')][_0x1f29('0xf3')][_0x1f29('0xd8')]('revisionHistory.resumeUnsavedRevision'),this[_0x1f29('0x7a')][_0x1f29('0x4f')]['has']('RealTimeCollaborationClient')){const _0x527166=this[_0x1f29('0x8b')]['getCurrentRevisionId'](),_0xb04883=this[_0x1f29('0x2')][_0x1f29('0x4a')](_0x527166);if(_0xb04883)this[_0x1f29('0xd5')]=_0xb04883[_0x1f29('0x38')],this[_0x1f29('0xd9')]=!0x1;else{const _0x360cbd=this[_0x1f29('0x8b')]['history'][_0x1f29('0x69')]['find'](_0x479cb5=>!_0x479cb5[_0x1f29('0x76')]),_0x5f14fa=_0x360cbd?_0x360cbd[_0x1f29('0xf1')]:this[_0x1f29('0x8b')][_0x1f29('0xc9')]['version'];_0x4fe4e2?(_0x4fe4e2['toVersion']<_0x5f14fa&&_0x4fe4e2['_update']({'toVersion':_0x5f14fa}),this[_0x1f29('0xd9')]?(this[_0x1f29('0x8b')][_0x1f29('0xb7')]=()=>_0x4fcb7f['id'],this[_0x1f29('0xd5')]=_0x4fcb7f[_0x1f29('0x38')]):(this[_0x1f29('0xd5')]=_0x4fe4e2[_0x1f29('0x72')],this[_0x1f29('0xd9')]=!0x1)):(this[_0x1f29('0xd5')]=_0x5f14fa,this[_0x1f29('0xd9')]=!0x1);}}else _0x4fcb7f&&(this[_0x1f29('0x7a')][_0x1f29('0xc2')][_0x1f29('0xb')]['history'][_0x1f29('0x7f')]=Math['max'](_0x4fcb7f[_0x1f29('0x72')],this['editor'][_0x1f29('0xc2')]['document'][_0x1f29('0xc9')]['version']),_0x4fcb7f['fromVersion']===_0x4fcb7f[_0x1f29('0x72')]?(0x0!==_0x4fcb7f['fromVersion']&&(this[_0x1f29('0x8b')][_0x1f29('0xb7')]=()=>_0x4fcb7f['id']),this[_0x1f29('0xd9')]=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4fcb7f['id'],this[_0x1f29('0xd5')]=_0x4fcb7f[_0x1f29('0x38')])),this[_0x1f29('0xd9')]||(this[_0x1f29('0xd5')]=this[_0x1f29('0x7a')][_0x1f29('0xc2')][_0x1f29('0xb')][_0x1f29('0x7f')]);this[_0x1f29('0x92')][_0x1f29('0x22')](this[_0x1f29('0x8b')]['history']),this[_0x1f29('0x20')](this[_0x1f29('0xd5')]),this[_0x1f29('0xf7')](this[_0x1f29('0xd5')]),this[_0x1f29('0xeb')]&&this[_0x1f29('0xbc')]();}),this[_0x1f29('0x1b')](_0x1f29('0xc6'))['to'](this,_0x1f29('0xdf'),_0x2f9fda=>!_0x2f9fda);}async[_0x1f29('0xd6')](){if(this[_0x1f29('0x2')][_0x1f29('0xa6')]>0x0){const _0x3bec93=this[_0x1f29('0x2')][_0x1f29('0x4a')](0x0),_0x106d87=await this['getRevisionDocumentData'](_0x3bec93),_0x38de4f=await this[_0x1f29('0x8d')](_0x3bec93);this[_0x1f29('0xdc')](_0x106d87,_0x38de4f);}}['setSource'](_0xc2c6f3){this[_0x1f29('0x8b')]=_0xc2c6f3;}async[_0x1f29('0xd2')](){const _0x3d3439=await this[_0x1f29('0x8b')]['getLatestVersion']();if(_0x3d3439>this[_0x1f29('0x8a')][_0x1f29('0x72')]){await this[_0x1f29('0x8e')]();const _0x590be1=this[_0x1f29('0x19')]({'revision':this[_0x1f29('0x8a')],'to':_0x3d3439});_0x590be1[_0x1f29('0x70')]=_0x590be1[_0x1f29('0x27')]['map'](_0x314ff7=>this[_0x1f29('0x7a')][_0x1f29('0x4f')][_0x1f29('0xd8')](_0x1f29('0x95'))[_0x1f29('0x62')](_0x314ff7)),this[_0x1f29('0x8a')][_0x1f29('0xa8')](_0x590be1);}}async[_0x1f29('0x8e')](){this['_continueCurrentRevision']&&!this[_0x1f29('0xf8')]&&(await this['_loadRevisionData'](this[_0x1f29('0x8a')]),this['_revisionDataBuilder']['loadState'](this[_0x1f29('0x8a')]),this[_0x1f29('0xf8')]={'fromVersion':this['currentRevision']['fromVersion'],'authors':this[_0x1f29('0x8a')][_0x1f29('0x70')][_0x1f29('0xde')]()});}async[_0x1f29('0x16')](_0x2156d7={},_0x1946fc=null){const _0x3db560=[];await this[_0x1f29('0x8e')](),this[_0x1f29('0xd9')]=!0x1,_0x1946fc>this[_0x1f29('0x8a')]['toVersion']&&(_0x1946fc=null),null===_0x1946fc&&(_0x1946fc=await this[_0x1f29('0x8b')]['getLatestVersion']());const _0x3c0af0=this[_0x1f29('0xe7')](_0x1946fc),_0x389e86=this[_0x1f29('0x19')]({'from':_0x3c0af0,'to':_0x1946fc});if(this[_0x1f29('0x8a')]['toVersion']<_0x1946fc){const _0x15e79b=this[_0x1f29('0x19')]({'revision':this['currentRevision'],'from':_0x1946fc,'to':_0x1946fc});_0x15e79b[_0x1f29('0x70')]=[],_0x15e79b[_0x1f29('0x27')]=[],_0x15e79b['id']=this[_0x1f29('0x8a')]['id'],this[_0x1f29('0x8a')]['_update'](_0x15e79b,!0x0),delete _0x15e79b[_0x1f29('0x70')],_0x3db560['push'](_0x15e79b);}_0x2156d7[_0x1f29('0xc')]=this[_0x1f29('0x7a')][_0x1f29('0x4f')][_0x1f29('0xd8')]('Users')['me']['id'],_0x2156d7[_0x1f29('0xf')]=_0x2156d7[_0x1f29('0xf')]||null,_0x2156d7['id']=_0x2156d7['id']||_0x417ca5(),_0x2156d7={..._0x2156d7,..._0x389e86};const _0x499a66=this[_0x1f29('0x86')](_0x2156d7);_0x3db560[_0x1f29('0xe5')](_0x2156d7);const _0x1296a9=this[_0x1f29('0x2')][_0x1f29('0xc1')](_0x499a66);if(0x0!==_0x1296a9){const _0x5accb6=this['repository']['getRevision'](_0x1296a9-0x1);if(_0x5accb6[_0x1f29('0x38')]!==_0x1946fc){const _0x571baf=this[_0x1f29('0x92')][_0x1f29('0xa3')](_0x1946fc,_0x5accb6['toVersion']),_0x4720c0={'id':_0x5accb6['id'],'diffData':_0x571baf[_0x1f29('0xa9')],'authorsIds':_0x571baf['authorsIds'],'authors':_0x571baf['authorsIds'][_0x1f29('0x2b')](_0x596e95=>this[_0x1f29('0x7a')][_0x1f29('0x4f')]['get'](_0x1f29('0x95'))['getUser'](_0x596e95)),'fromVersion':_0x1946fc};_0x5accb6===this[_0x1f29('0x8a')]&&(_0x4720c0[_0x1f29('0x75')]=new Date(_0x2156d7[_0x1f29('0x75')][_0x1f29('0x83')]()+0xa)),_0x5accb6[_0x1f29('0xa8')](_0x4720c0,!0x0),delete _0x4720c0['authors'],_0x3db560[_0x1f29('0xe5')](_0x4720c0);}}if(this['adapter']){for(const _0x1c78e0 of _0x3db560)this[_0x1f29('0xa1')](_0x1c78e0['id'],_0x1c78e0,!0x0);this[_0x1f29('0xbc')]();}return _0x499a66;}[_0x1f29('0x86')](_0x1260fd){const _0x2d41da=this[_0x1f29('0x2')]['createRevision'](_0x1260fd);return this[_0x1f29('0xeb')]&&_0x2d41da['on'](_0x1f29('0xa8'),(_0x1c127d,_0x430dcc,_0x8f97fd)=>{_0x8f97fd||(this[_0x1f29('0xa1')](_0x430dcc['id'],_0x430dcc,!0x0),this[_0x1f29('0xbc')]());}),this[_0x1f29('0x2')]['addRevision'](_0x2d41da,this[_0x1f29('0x6a')](_0x2d41da)),_0x2d41da;}async['getRevisionDocumentData'](_0x490f5b){await this[_0x1f29('0xbb')](_0x490f5b);const _0x4f20fa={};for(const _0x252fb6 in _0x490f5b[_0x1f29('0xa9')]){if(_0x490f5b['diffData'][_0x252fb6][_0x1f29('0x46')]&&!_0x490f5b[_0x1f29('0xa9')][_0x252fb6][_0x1f29('0x46')]['isAttached'])continue;const _0x46b334=this[_0x1f29('0x11')](JSON[_0x1f29('0x59')](_0x490f5b[_0x1f29('0xa9')][_0x252fb6][_0x1f29('0x6b')])),_0xc7f6c3=this['editor']['editing'][_0x1f29('0xbd')][_0x1f29('0xb')],_0x2fb254=new _0x1fbff7(_0xc7f6c3,_0x46b334[_0x1f29('0x2b')](_0x37a7c5=>J(_0x37a7c5,this['editor'])));this[_0x1f29('0x7a')][_0x1f29('0x35')][_0x1f29('0x14')]['useFillerType'](_0x1f29('0x4b')),_0x4f20fa[_0x252fb6]=this[_0x1f29('0x7a')][_0x1f29('0x35')][_0x1f29('0x14')]['toData'](_0x2fb254),this[_0x1f29('0x7a')][_0x1f29('0x35')][_0x1f29('0x14')][_0x1f29('0x48')]('default');}return _0x4f20fa;}async['getRevisionRootsAttributes'](_0x57a6b4){await this[_0x1f29('0xbb')](_0x57a6b4);const _0x30cd39={};for(const _0x52eae3 in _0x57a6b4[_0x1f29('0xa9')])_0x57a6b4[_0x1f29('0xa9')][_0x52eae3]['attachChange']&&!_0x57a6b4[_0x1f29('0xa9')][_0x52eae3][_0x1f29('0x46')][_0x1f29('0xba')]||(_0x30cd39[_0x52eae3]=_0x57a6b4[_0x1f29('0xa9')][_0x52eae3][_0x1f29('0x53')]||{});return _0x30cd39;}[_0x1f29('0xbc')](){if(0x0===this[_0x1f29('0xbf')]['size'])return;if(this[_0x1f29('0xdf')])return;let _0x55d913=Array['from'](this[_0x1f29('0xbf')][_0x1f29('0xc8')]());this[_0x1f29('0xbf')][_0x1f29('0x21')]();for(let _0x5a814c=0x0;_0x5a814c<_0x55d913[_0x1f29('0xa6')];_0x5a814c++){const _0x16a24a=_0x55d913[_0x5a814c];let _0x1fc65a=!0x1;for(const _0x4b43fb of Object['keys'](_0x16a24a))void 0x0===_0x16a24a[_0x4b43fb]?delete _0x16a24a[_0x4b43fb]:'id'!==_0x4b43fb&&(_0x1fc65a=!0x0);_0x1fc65a||(_0x55d913[_0x5a814c]=null);}if(_0x55d913=_0x55d913[_0x1f29('0x37')](_0x569836=>null!==_0x569836),!_0x55d913[_0x1f29('0xa6')])return;for(let _0xe76265=0x0;_0xe76265<_0x55d913[_0x1f29('0xa6')];_0xe76265++){const _0x48b261=_0x55d913[_0xe76265];void 0x0!==_0x48b261['fromVersion']&&void 0x0===_0x48b261[_0x1f29('0x72')]&&(_0x48b261['toVersion']=this['repository'][_0x1f29('0x4a')](_0x48b261['id'])[_0x1f29('0x72')]),void 0x0!==_0x48b261['toVersion']&&void 0x0===_0x48b261[_0x1f29('0x38')]&&(_0x48b261[_0x1f29('0x38')]=this[_0x1f29('0x2')][_0x1f29('0x4a')](_0x48b261['id'])[_0x1f29('0x38')]);}const _0x568f50=this[_0x1f29('0x7a')][_0x1f29('0xf3')][_0x1f29('0xd8')](_0x1f29('0x32'));this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this[_0x1f29('0xeb')][_0x1f29('0xb2')](_0x55d913,_0x568f50)['finally'](()=>{this[_0x1f29('0xdf')]=!0x1;})['then'](_0x4955af=>{if(_0x4955af)for(const _0x39bc1b of _0x4955af)this[_0x1f29('0x96')]({'id':_0x39bc1b['id'],'createdAt':_0x39bc1b[_0x1f29('0x75')]});this[_0x1f29('0x31')](),this[_0x1f29('0xbc')]();});}[_0x1f29('0xdc')](_0x1b5c92,_0x37cfeb){let _0x49e05d=this[_0x1f29('0x7a')][_0x1f29('0xf3')][_0x1f29('0xd8')](_0x1f29('0xb1')),_0x41680e=this[_0x1f29('0x7a')][_0x1f29('0xf3')][_0x1f29('0xd8')](_0x1f29('0x2a'));if(void 0x0===_0x49e05d){_0x49e05d={};for(const _0xc026eb of this['editor'][_0x1f29('0xc2')][_0x1f29('0xb')][_0x1f29('0xb8')]())_0x49e05d[_0xc026eb]='';}if(_0x1f29('0x91')==typeof _0x49e05d&&(_0x49e05d={'main':_0x49e05d}),void 0x0===_0x41680e){_0x41680e={};for(const _0x400d23 of this['editor']['model']['document'][_0x1f29('0xb8')]())_0x41680e[_0x400d23]={};}let _0x3b6905=!0x1;const _0x54353f=Object[_0x1f29('0x94')](_0x49e05d),_0x457065=Object[_0x1f29('0x94')](_0x1b5c92);for(const _0x2e326b of _0x54353f){if(_0x49e05d[_0x2e326b]!==_0x1b5c92[_0x2e326b]&&''!==_0x49e05d[_0x2e326b][_0x1f29('0x87')]()){_0x3b6905=!0x0;break;}if(!_0x43a38b(_0x41680e[_0x2e326b],_0x37cfeb[_0x2e326b])&&Object[_0x1f29('0x94')](_0x41680e[_0x2e326b])[_0x1f29('0xa6')]>0x0){_0x3b6905=!0x0;break;}}_0x3b6905||(_0x3b6905=_0x457065[_0x1f29('0x8c')](_0x12a87e=>!this[_0x1f29('0x7a')][_0x1f29('0xc2')][_0x1f29('0xb')][_0x1f29('0xcd')](_0x12a87e))),_0x3b6905&&_0x142348('editor-initial-data-replaced-with-revision-data',{'editorData':_0x49e05d,'editorRootsAttributes':_0x41680e,'revisionData':_0x1b5c92,'revisionRootsAttributes':_0x37cfeb}),this['editor'][_0x1f29('0xf3')][_0x1f29('0x2c')](_0x1f29('0xb1'),_0x1b5c92),this[_0x1f29('0x7a')][_0x1f29('0xf3')][_0x1f29('0x2c')]('rootsAttributes',_0x37cfeb);}[_0x1f29('0x77')](){if(!this[_0x1f29('0xf4')]){const _0x273618=this['editor']['plugins'][_0x1f29('0xd8')](_0x1f29('0xd'));this[_0x1f29('0xf4')]=_0x273618[_0x1f29('0x6e')](_0x3119a5(this[_0x1f29('0x7a')][_0x1f29('0x68')],_0x1f29('0x5a')));}}[_0x1f29('0x31')](){this[_0x1f29('0xf4')]&&(this[_0x1f29('0x7a')][_0x1f29('0x4f')][_0x1f29('0xd8')]('PendingActions')[_0x1f29('0x63')](this['_pendingAction']),this['_pendingAction']=null);}[_0x1f29('0x6a')](_0x5c8646){const _0x30bd73=this[_0x1f29('0x2')][_0x1f29('0x4d')]();_0x30bd73[_0x1f29('0xe3')]();let _0x11b1d6=0x0;for(;_0x11b1d6<_0x30bd73[_0x1f29('0xa6')];){const _0x34abf3=_0x30bd73[_0x11b1d6];if(_0x34abf3===this[_0x1f29('0x8a')]){_0x11b1d6++;continue;}if(_0x34abf3['id']===this[_0x1f29('0x64')])break;const _0x2ca914=_0x5c8646[_0x1f29('0x72')]-_0x34abf3[_0x1f29('0x72')]||_0x5c8646['fromVersion']-_0x34abf3[_0x1f29('0x38')];if(_0x2ca914>0x0)break;if(_0x2ca914<0x0)_0x11b1d6++;else{if(!_0x5c8646[_0x1f29('0x84')]&&_0x34abf3[_0x1f29('0x84')])break;if(_0x34abf3[_0x1f29('0x84')]||!_0x5c8646[_0x1f29('0x84')]){if(_0x5c8646[_0x1f29('0x75')]>_0x34abf3[_0x1f29('0x75')])break;_0x11b1d6++;}else _0x11b1d6++;}}return _0x11b1d6;}['setRevisionData'](_0x244442){const _0x5a3b6c=this[_0x1f29('0x2')]['getRevision'](_0x244442['id']);if(_0x244442['createdAt']&&(_0x244442['createdAt']=new Date(_0x244442[_0x1f29('0x75')])),_0x244442[_0x1f29('0x27')]){const _0x209415=this[_0x1f29('0x7a')][_0x1f29('0x4f')][_0x1f29('0xd8')]('Users');_0x244442['authors']=_0x244442[_0x1f29('0x27')][_0x1f29('0x2b')](_0x69297b=>_0x209415[_0x1f29('0x62')](_0x69297b));}_0x5a3b6c[_0x1f29('0xa8')](_0x244442,!0x0);}['buildRevisionData']({revision:_0x658b1f=null,from:_0xb72fa9=null,to:_0x3a4120=null}){_0xb72fa9=null!==_0xb72fa9?_0xb72fa9:_0x658b1f[_0x1f29('0x38')],_0x3a4120=null!==_0x3a4120?_0x3a4120:_0x658b1f['toVersion'];const _0x505ef8=this[_0x1f29('0x92')][_0x1f29('0xa3')](_0xb72fa9,_0x3a4120),_0x3431b9={'diffData':_0x505ef8['diffData'],'authorsIds':_0x505ef8['authorsIds'],'fromVersion':_0xb72fa9,'toVersion':_0x3a4120};if(!_0x658b1f||_0x3a4120!==_0x658b1f['toVersion']){const _0x34e6da=_0x3a4120-0x1,_0x418307=this['_source'][_0x1f29('0xc9')][_0x1f29('0xbe')](_0x34e6da);_0x3431b9[_0x1f29('0x75')]=_0x418307&&_0x418307[_0x1f29('0x75')]||new Date();}if(this[_0x1f29('0xf8')]&&_0xb72fa9===this[_0x1f29('0xf8')][_0x1f29('0x38')])for(const _0x5da380 of this['_loadedStateData'][_0x1f29('0x70')])_0x3431b9[_0x1f29('0x27')]['includes'](_0x5da380['id'])||_0x3431b9[_0x1f29('0x27')][_0x1f29('0xe5')](_0x5da380['id']);return _0x3431b9;}[_0x1f29('0xbb')](_0x36816a){if(!_0x36816a||_0x36816a[_0x1f29('0xa9')])return Promise['resolve']();{const _0x1b7758=this[_0x1f29('0x7a')]['config'][_0x1f29('0xd8')](_0x1f29('0x32'));return this[_0x1f29('0xeb')][_0x1f29('0x4a')]({'channelId':_0x1b7758,'revisionId':_0x36816a['id']})['then'](_0x31d360=>{_0x36816a[_0x1f29('0xa9')]=_0x31d360[_0x1f29('0xa9')];});}}[_0x1f29('0xa1')](_0x54acc8,_0x225e51,_0x46eb3c){if(this[_0x1f29('0xbf')]['has'](_0x54acc8)){const _0x636291=this[_0x1f29('0xbf')]['get'](_0x54acc8);_0x225e51=_0x46eb3c?{..._0x636291,..._0x225e51}:{..._0x225e51,..._0x636291};}this[_0x1f29('0xbf')][_0x1f29('0x2c')](_0x54acc8,_0x225e51);}[_0x1f29('0xe7')](_0x3866d1){const _0x10fd57=this[_0x1f29('0x2')][_0x1f29('0x4d')]();_0x10fd57[_0x1f29('0xe3')](),_0x10fd57[_0x1f29('0xcb')]();const _0x2838bd=_0x10fd57[_0x1f29('0xce')](_0x41a1b2=>_0x41a1b2[_0x1f29('0x72')]<=_0x3866d1)[_0x1f29('0x72')];return _0x2838bd<this['_startingVersion']?this[_0x1f29('0xd5')]:_0x2838bd;}[_0x1f29('0x20')](_0x228428){const _0x4a9bbd=this['repository'][_0x1f29('0x4a')](this['repository'][_0x1f29('0xa6')]-0x1);if(_0x4a9bbd)this[_0x1f29('0x64')]=_0x4a9bbd['id'];else{const _0x1ad74b=!this[_0x1f29('0x7a')][_0x1f29('0xc2')][_0x1f29('0xb')]['roots'][_0x1f29('0xce')](_0x1d6e3c=>this[_0x1f29('0x7a')][_0x1f29('0xc2')]['hasContent'](_0x1d6e3c)),_0x4db3dc=this[_0x1f29('0x7a')]['plugins'][_0x1f29('0xd8')](_0x1f29('0x95'))['me']['id'],_0x44dc5d=_0x3119a5(this[_0x1f29('0x7a')][_0x1f29('0x68')],_0x1ad74b?_0x1f29('0x0'):_0x1f29('0xac'));this[_0x1f29('0x3a')]({'from':_0x228428,'to':_0x228428,'id':this['_initialRevisionId'],'name':_0x44dc5d,'creatorId':_0x4db3dc});}}[_0x1f29('0xf7')](_0x3c408d){const _0x2e8808=this[_0x1f29('0x8b')][_0x1f29('0xb7')]();this[_0x1f29('0x8a')]=this[_0x1f29('0x2')][_0x1f29('0x4a')](_0x2e8808),this[_0x1f29('0x8a')]||(this[_0x1f29('0x8a')]=this['_makeRevision']({'from':_0x3c408d,'to':_0x3c408d,'id':_0x2e8808,'name':'','creatorId':null}));}[_0x1f29('0x3a')]({name:_0x3dd255,from:_0x2705bd,to:_0x127986,creatorId:_0x18e653,id:_0x3dba9f}){const _0x547ef1=this[_0x1f29('0x19')]({'from':_0x2705bd,'to':_0x127986});_0x547ef1['name']=_0x3dd255,_0x547ef1['creatorId']=_0x18e653,_0x547ef1['id']=_0x3dba9f;const _0x5792c8=this[_0x1f29('0x86')](_0x547ef1);return this[_0x1f29('0xeb')]&&this[_0x1f29('0xa1')](_0x547ef1['id'],_0x547ef1,!0x0),_0x5792c8;}[_0x1f29('0xf2')](){this[_0x1f29('0x7a')]['conversion']['for']('dataDowncast')[_0x1f29('0x51')]({'model':'revision'});}[_0x1f29('0x11')](_0x37f347){return(_0x37f347=_0x37f347[_0x1f29('0x37')](_0x41aa6b=>!_0x41aa6b[_0x1f29('0xf')]||'revision-start'!==_0x41aa6b[_0x1f29('0xf')]&&_0x1f29('0x3')!==_0x41aa6b[_0x1f29('0xf')]))[_0x1f29('0x79')](_0x30e85b=>{_0x1f29('0x91')!=typeof _0x30e85b&&(_0x30e85b[_0x1f29('0xcc')]=this[_0x1f29('0x11')](_0x30e85b['children']),_0x30e85b[_0x1f29('0xb4')]=_0x30e85b['attributes']['filter'](_0x120205=>!_0x120205[0x0][_0x1f29('0xe0')](_0x1f29('0x93'))));}),_0x37f347;}}function J(_0x296803,_0x59547d){const _0x1d3d90=_0x59547d[_0x1f29('0x42')][_0x1f29('0xbd')][_0x1f29('0xb')];if(_0x1f29('0x91')==typeof _0x296803)return new _0x594c3f(_0x1d3d90,_0x296803);{const _0x3864a9=_0x296803[_0x1f29('0xcc')][_0x1f29('0x2b')](_0x4db38b=>J(_0x4db38b,_0x59547d));return new(B[_0x296803[(_0x1f29('0x1a'))]]||_0x16218f)(_0x1d3d90,_0x296803[_0x1f29('0xf')],_0x296803['attributes'],_0x3864a9);}}class H{constructor(_0x5998f7){this['editor']=_0x5998f7,this[_0x1f29('0xa7')]=new Map(),this[_0x1f29('0x30')]=-0x1,this[_0x1f29('0x2e')]=-0x1,this[_0x1f29('0x98')]=new Map(),this[_0x1f29('0x2f')]=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x1f29('0x44')]=new Map(),this[_0x1f29('0x3b')]=new Map(),this[_0x1f29('0x28')]=new Map(),this[_0x1f29('0x58')]=new Map(),this[_0x1f29('0xdd')]=new Map(),this[_0x1f29('0xef')]=0x1;}[_0x1f29('0x22')](_0x3cc63b){this['source']=_0x3cc63b;const _0x40f6c9=new Map(),_0x22c20d=new Map(),_0x7a6d62=this[_0x1f29('0x7a')][_0x1f29('0xc2')][_0x1f29('0xb')][_0x1f29('0xec')][_0x1f29('0x2b')](_0x436648=>_0x436648[_0x1f29('0x1c')]);for(const _0x403be2 of _0x7a6d62){const _0x199d6c=this[_0x1f29('0x7a')][_0x1f29('0xc2')][_0x1f29('0xb')][_0x1f29('0xcd')](_0x403be2),_0x20c5da=q(_0x199d6c);_0x40f6c9['set'](_0x403be2,_0x20c5da),_0x22c20d[_0x1f29('0x2c')](_0x403be2,Object['fromEntries'](_0x199d6c[_0x1f29('0xe4')]()));}const _0x58b9d1=Array[_0x1f29('0x57')](this[_0x1f29('0x7a')][_0x1f29('0xc2')][_0x1f29('0x39')])[_0x1f29('0x2b')](_0x295ff2=>[_0x295ff2['name'],_0x295ff2['getRange']()]),_0x2ae40b=this['source'][_0x1f29('0x7f')];this[_0x1f29('0x71')](_0x2ae40b,_0x40f6c9,_0x58b9d1,_0x22c20d),this[_0x1f29('0xb0')]=this[_0x1f29('0xef')];const _0x56eb01=new Map(),_0x4406d4=new Map();for(const _0x2a8da0 of _0x7a6d62){const _0x3a3796=G(_0x2a8da0);_0x56eb01[_0x1f29('0x2c')](_0x2a8da0,_0x3a3796),_0x4406d4[_0x1f29('0x2c')](_0x2a8da0,{});}this[_0x1f29('0x71')](Number[_0x1f29('0x12')],_0x56eb01,[],_0x4406d4);}[_0x1f29('0xa3')](_0x46c258,_0x201a04){if(this[_0x1f29('0x30')]===_0x46c258&&this['_lastTo']<=_0x201a04)this['_savedMetaData'][_0x1f29('0x1e')]>0x1&&this[_0x1f29('0xab')](this['_lastTo']),this[_0x1f29('0x5d')](this[_0x1f29('0x2e')],_0x201a04,!0x0);else{if(!this[_0x1f29('0xa7')][_0x1f29('0xca')](_0x46c258)){const _0x262f75=this[_0x1f29('0xb9')](_0x46c258);this[_0x1f29('0x1')](_0x262f75,_0x46c258,!0x1);}this[_0x1f29('0x1')](_0x46c258,_0x201a04,!0x0);}return this[_0x1f29('0x30')]=_0x46c258,this[_0x1f29('0x2e')]=_0x201a04,this[_0x1f29('0xe9')]();}[_0x1f29('0x65')](_0x1c0a68){this[_0x1f29('0xf9')](),this[_0x1f29('0x30')]=_0x1c0a68['fromVersion'],this[_0x1f29('0x2e')]=_0x1c0a68[_0x1f29('0x72')];for(const _0x2aaba4 in _0x1c0a68[_0x1f29('0xa9')]){const _0x3e4e6d=_0x1c0a68[_0x1f29('0xa9')][_0x2aaba4][_0x1f29('0x46')],_0xf24c93=_0x1b57dc(_0x1c0a68[_0x1f29('0xa9')][_0x2aaba4][_0x1f29('0x9d')])||{},_0x5df279=this[_0x1f29('0xdb')](_0x1c0a68[_0x1f29('0xa9')][_0x2aaba4][_0x1f29('0x3c')]);_0x5df279[_0x1f29('0x1c')]=_0x2aaba4,_0x5df279[_0x1f29('0x36')]=!_0x3e4e6d||!_0x3e4e6d['isAttached'],_0x5df279[_0x1f29('0xba')]=()=>_0x5df279[_0x1f29('0x36')],this[_0x1f29('0xa2')][_0x1f29('0x2c')](_0x2aaba4,_0x5df279),this[_0x1f29('0x3d')][_0x1f29('0x2c')](_0x2aaba4,_0xf24c93),_0x3e4e6d&&this['_touchedRoots'][_0x1f29('0x2c')](_0x2aaba4,_0x3e4e6d);const _0x94471f=this['_makeIdsRoot'](_0x5df279);this[_0x1f29('0x3b')][_0x1f29('0x2c')](_0x2aaba4,_0x94471f);for(const [_0x5b695b,_0x51a1c1]of _0x5df279[_0x1f29('0x39')]){if(!_0x5b695b[_0x1f29('0xe0')](_0x1f29('0xb3')))continue;const _0x45182c=_0x5b695b[_0x1f29('0xaa')](':')[0x2];for(const _0x56c5aa of _0x51a1c1[_0x1f29('0xae')]({'singleCharacters':!0x0})){const _0x4932e0=this['_getVidAttributeName'](_0x56c5aa),_0x1e61cb=_0x1f29('0xad')==_0x56c5aa[_0x1f29('0x1a')]?_0x56c5aa[_0x1f29('0x5')][_0x1f29('0xee')]['slice'](0x0,-0x1):_0x56c5aa['previousPosition']['path'],_0x5b5774=_0x94471f['getNodeByPath'](_0x1e61cb)[_0x1f29('0x9c')](_0x4932e0);this['_touched'][_0x1f29('0x2c')](_0x5b5774,{'userId':_0x45182c});}}}this[_0x1f29('0xb0')]=this[_0x1f29('0xef')];const _0x243cc3=[...Array(this[_0x1f29('0xef')])[_0x1f29('0x94')]()][_0x1f29('0xde')](0x1)[_0x1f29('0x37')](_0x162000=>!this[_0x1f29('0x28')][_0x1f29('0xca')](_0x162000));let _0x8e3657=0x0;const _0x286797=new Map();for(const _0x4c5a24 in _0x1c0a68[_0x1f29('0xa9')]){const _0x1e9b60=_0x1c0a68[_0x1f29('0xa9')][_0x4c5a24][_0x1f29('0x46')],_0x23cfeb=_0x1b57dc(_0x1c0a68[_0x1f29('0xa9')][_0x4c5a24][_0x1f29('0x53')])||{},_0x2c69fb=this[_0x1f29('0xdb')](_0x1c0a68['diffData'][_0x4c5a24]['insertions']);_0x2c69fb[_0x1f29('0x1c')]=_0x4c5a24,_0x2c69fb['_isAttached']=!_0x1e9b60||_0x1e9b60[_0x1f29('0xba')],_0x2c69fb[_0x1f29('0xba')]=()=>_0x2c69fb[_0x1f29('0x36')],this[_0x1f29('0x2f')][_0x1f29('0x2c')](_0x4c5a24,_0x2c69fb),this[_0x1f29('0x49')]['set'](_0x4c5a24,_0x23cfeb);const _0x29348c=this[_0x1f29('0x78')](_0x2c69fb,Number[_0x1f29('0x12')]);this['_idsRoots']['set'](_0x4c5a24,_0x29348c),_0x286797['set'](_0x4c5a24,_0x2c69fb[_0x1f29('0xba')]()?_0x23cfeb:{});for(const [_0x17ec72,_0x20190a]of _0x2c69fb[_0x1f29('0x39')]){if(!_0x17ec72[_0x1f29('0xe0')]('revision:'))continue;const _0x24f0d2=_0x17ec72[_0x1f29('0xaa')](':')[0x2];for(const _0x8ea1f6 of _0x20190a['getWalker']({'singleCharacters':!0x0})){const _0x2f1728=this[_0x1f29('0x85')](_0x8ea1f6),_0x556b2a=this[_0x1f29('0xef')]++,_0x58044c=_0x1f29('0xad')==_0x8ea1f6[_0x1f29('0x1a')]?_0x8ea1f6['previousPosition'][_0x1f29('0xee')]['slice'](0x0,-0x1):_0x8ea1f6[_0x1f29('0x5')][_0x1f29('0xee')];_0x29348c['getNodeByPath'](_0x58044c)['_setAttribute'](_0x2f1728,_0x556b2a),this[_0x1f29('0x28')]['set'](_0x556b2a,{'userId':_0x24f0d2});}}for(const _0x4ad030 of this['editor'][_0x1f29('0xc2')][_0x1f29('0xa4')](_0x2c69fb)[_0x1f29('0xae')]({'singleCharacters':!0x0})){const _0x295d6e=this[_0x1f29('0x85')](_0x4ad030),_0x36ab69=_0x1f29('0xad')==_0x4ad030[_0x1f29('0x1a')]?_0x4ad030[_0x1f29('0x5')]['path'][_0x1f29('0xde')](0x0,-0x1):_0x4ad030[_0x1f29('0x5')][_0x1f29('0xee')],_0x3bd169=_0x29348c[_0x1f29('0x50')](_0x36ab69);_0x3bd169['getAttribute'](_0x295d6e)>0x0||_0x3bd169[_0x1f29('0xd4')](_0x295d6e,_0x243cc3[_0x8e3657++]);}for(const [_0x4d0ff2,_0xa08f2e]of _0x2c69fb[_0x1f29('0x39')])_0x4d0ff2[_0x1f29('0xe0')](_0x1f29('0xb3'))||this[_0x1f29('0x98')]['set'](_0x4d0ff2,_0xa08f2e);}const _0x2f1cc8=G(_0x1f29('0x25'));this['_baseRoots'][_0x1f29('0x2c')](_0x1f29('0x25'),_0x2f1cc8),this['_baseIdsRoots'][_0x1f29('0x2c')](_0x1f29('0x25'),this[_0x1f29('0x78')](_0x2f1cc8,0x1));const _0x2747e4=G(_0x1f29('0x25'));this[_0x1f29('0x2f')]['set'](_0x1f29('0x25'),_0x2747e4),this[_0x1f29('0x44')][_0x1f29('0x2c')](_0x1f29('0x25'),this[_0x1f29('0x78')](_0x2747e4,0x1));const _0x2efe6c=Array[_0x1f29('0x57')](this['_diffRoots'])[_0x1f29('0x2b')](([_0x39814f,_0x45bada])=>[_0x39814f,q(_0x45bada)]);this['_saveMetaData'](this[_0x1f29('0x2e')],_0x2efe6c,this['_markers'],_0x286797);}[_0x1f29('0xdb')](_0x148967){const _0xbb70d9=JSON[_0x1f29('0x59')](_0x148967),_0x535ccf=this[_0x1f29('0x7a')][_0x1f29('0x42')]['view'][_0x1f29('0xb')],_0x5e2315=new _0x1fbff7(_0x535ccf,_0xbb70d9[_0x1f29('0x2b')](_0x231751=>J(_0x231751,this[_0x1f29('0x7a')])));return this[_0x1f29('0x7a')][_0x1f29('0x35')][_0x1f29('0x7')](_0x5e2315);}[_0x1f29('0x71')](_0x256c49,_0x3f7eca,_0x565671,_0xaf4d59){const _0x6e3105=new Map(_0x3f7eca),_0x201378=new Map(_0x1b57dc(_0xaf4d59)),_0x2d9b43=new Map();for(const [_0x538d93,_0x7cf2f0]of _0x565671)_0x2d9b43[_0x1f29('0x2c')](_0x538d93,{'start':_0x7cf2f0['start'][_0x1f29('0x17')](),'end':_0x7cf2f0[_0x1f29('0xc0')][_0x1f29('0x17')](),'rootName':_0x7cf2f0[_0x1f29('0x4')]['rootName']});this[_0x1f29('0xa7')][_0x1f29('0x2c')](_0x256c49,{'roots':_0x6e3105,'markers':_0x2d9b43,'rootsAttributes':_0x201378});}[_0x1f29('0xab')](_0x5e38bd){this[_0x1f29('0xa7')]['delete'](_0x5e38bd);}[_0x1f29('0x34')](){this[_0x1f29('0xf9')](),this['_lastFrom']=-0x1,this[_0x1f29('0x2e')]=-0x1,this[_0x1f29('0xa7')][_0x1f29('0x21')](),this['init'](this[_0x1f29('0x1d')]);}[_0x1f29('0xf9')](){this[_0x1f29('0x28')][_0x1f29('0x21')](),this['_touchedMarkers'][_0x1f29('0x21')](),this['_touchedRoots'][_0x1f29('0x21')](),this[_0x1f29('0x2f')][_0x1f29('0x21')](),this[_0x1f29('0x49')][_0x1f29('0x21')](),this[_0x1f29('0xa2')][_0x1f29('0x21')](),this[_0x1f29('0x3d')][_0x1f29('0x21')](),this[_0x1f29('0x44')][_0x1f29('0x21')](),this[_0x1f29('0x3b')][_0x1f29('0x21')](),this[_0x1f29('0x98')][_0x1f29('0x21')](),this[_0x1f29('0xef')]=0x1,this[_0x1f29('0xb0')]=this[_0x1f29('0xef')];}[_0x1f29('0x78')](_0x4a62bc,_0x2270b6=null){let _0x26243e=null;_0x4a62bc['is'](_0x1f29('0xed'))||(_0x26243e=new _0x28cd05(_0x4a62bc[_0x1f29('0xf')],{'vid_start':null===_0x2270b6?this[_0x1f29('0xef')]++:_0x2270b6++}));const _0x19c759=[];for(const _0x1b8157 of _0x4a62bc['getChildren']())if(_0x1b8157['is'](_0x1f29('0xe1'))){_0x19c759[_0x1f29('0xe5')](this[_0x1f29('0x78')](_0x1b8157,_0x2270b6));const _0x38fd96=_0x19c759[_0x19c759[_0x1f29('0xa6')]-0x1];null!==_0x2270b6&&(_0x2270b6=_0x38fd96['is'](_0x1f29('0xe1'),'$text')?_0x38fd96['getAttribute']('vid')+0x1:_0x38fd96[_0x1f29('0x9c')](_0x1f29('0xe'))+0x1);}else for(let _0x2ee088=0x0;_0x2ee088<_0x1b8157[_0x1f29('0x90')];_0x2ee088++)_0x19c759[_0x1f29('0xe5')](new _0x28cd05('$text',{'vid':null===_0x2270b6?this[_0x1f29('0xef')]++:_0x2270b6++}));if(_0x4a62bc['is']('documentFragment')){const _0x10fe74=G(_0x4a62bc['rootName']);return _0x10fe74['_insertChild'](0x0,_0x19c759),_0x10fe74;}return _0x26243e[_0x1f29('0xd4')](_0x1f29('0xe'),null===_0x2270b6?this['_revisionId']++:_0x2270b6++),_0x26243e[_0x1f29('0xc4')](0x0,_0x19c759),_0x26243e;}[_0x1f29('0x1')](_0x53b9d7,_0x4ae781,_0x55f694){this[_0x1f29('0xf9')]();const {roots:_0x199106,markers:_0x17372b,rootsAttributes:_0xf0ac01}=this[_0x1f29('0xa7')][_0x1f29('0xd8')](_0x53b9d7);this[_0x1f29('0xa2')]=new Map(_0x199106),this['_baseRootsAttributes']=new Map(_0x1b57dc(_0xf0ac01));for(const [_0x46dcd0,_0x4971c9]of this[_0x1f29('0xa2')])if(_0x1f29('0x25')!==_0x46dcd0&&(this[_0x1f29('0x2f')][_0x1f29('0x2c')](_0x46dcd0,q(_0x4971c9)),this[_0x1f29('0x49')]=new Map(_0x1b57dc(_0xf0ac01)),_0x55f694)){const _0x4d9f67=this[_0x1f29('0xef')];this['_idsRoots']['set'](_0x46dcd0,this[_0x1f29('0x78')](_0x4971c9)),this['_baseIdsRoots']['set'](_0x46dcd0,this['_makeIdsRoot'](_0x4971c9,_0x4d9f67));}this[_0x1f29('0xb0')]=this['_revisionId'],this[_0x1f29('0x2f')]['set'](_0x1f29('0x25'),q(this['_baseRoots'][_0x1f29('0xd8')]('$graveyard'))),_0x55f694&&this[_0x1f29('0x44')][_0x1f29('0x2c')](_0x1f29('0x25'),this['_makeIdsRoot'](this[_0x1f29('0xa2')][_0x1f29('0xd8')]('$graveyard')));for(const [_0x194ade,_0x3311e5]of _0x17372b){const _0x5aee49=this[_0x1f29('0xa2')][_0x1f29('0xd8')](_0x3311e5[_0x1f29('0x1c')]),_0x26fe11=this[_0x1f29('0x2f')][_0x1f29('0xd8')](_0x3311e5[_0x1f29('0x1c')]),_0x10edc4=new _0x2de140(this[_0x1f29('0x40')](_0x3311e5['start'],_0x5aee49),this[_0x1f29('0x40')](_0x3311e5[_0x1f29('0xc0')],_0x5aee49)),_0x20d46d=this['_fixRange'](_0x10edc4,_0x26fe11);_0x5aee49['markers'][_0x1f29('0x2c')](_0x194ade,_0x10edc4),this['_markers'][_0x1f29('0x2c')](_0x194ade,_0x20d46d);}this[_0x1f29('0x5d')](_0x53b9d7,_0x4ae781,_0x55f694);}[_0x1f29('0x5d')](_0x282039,_0x4ebacf,_0x2161c8){for(const _0x309f5e of this[_0x1f29('0x1d')]['getOperations'](_0x282039,_0x4ebacf))this[_0x1f29('0x8')](_0x309f5e,_0x2161c8);for(const _0x61bad5 of this[_0x1f29('0x2f')][_0x1f29('0xc8')]())_0x61bad5['markers']['clear']();for(const [_0x4bb889,_0x4104da]of this[_0x1f29('0x98')]){this[_0x1f29('0x2f')][_0x1f29('0xd8')](_0x4104da[_0x1f29('0x4')]['rootName'])[_0x1f29('0x39')]['set'](_0x4bb889,_0x4104da[_0x1f29('0x17')]());}const _0x3ef526=new Map(),_0x23bbf3=new Map();for(const [_0x2bd340,_0x1ebf62]of this[_0x1f29('0x2f')])_0x3ef526[_0x1f29('0x2c')](_0x2bd340,q(_0x1ebf62)),_0x23bbf3[_0x1f29('0x2c')](_0x2bd340,this[_0x1f29('0x49')][_0x1f29('0xd8')](_0x2bd340));this[_0x1f29('0x71')](_0x4ebacf,_0x3ef526,this[_0x1f29('0x98')],_0x23bbf3);}[_0x1f29('0xb9')](_0x3eb1ed){const _0x22e28c=Array['from'](this[_0x1f29('0xa7')]['keys']());_0x22e28c[_0x1f29('0xd7')]((_0x47be1c,_0x3a64b5)=>_0x47be1c-_0x3a64b5),_0x22e28c[_0x1f29('0xe3')]();for(const _0x44f2cc of _0x22e28c)if(_0x44f2cc<_0x3eb1ed)return _0x44f2cc;return Number[_0x1f29('0x12')];}[_0x1f29('0x3e')](_0x1a8c3d,_0x422303){const _0x51a033=Array['from'](_0x422303['markers'])[_0x1f29('0x2b')](([_0xdad5d0,_0x40b331])=>[_0xdad5d0,this[_0x1f29('0x7d')](_0x40b331,_0x1a8c3d)]);_0x1a8c3d[_0x1f29('0x39')]=new Map(_0x51a033);}[_0x1f29('0xfc')](_0x191820){for(const _0x1911c6 of this[_0x1f29('0x98')][_0x1f29('0xc8')]()){const _0x255a2b=_0x1911c6[_0x1f29('0xf6')](_0x191820),_0x55e465=_0x2de140[_0x1f29('0x9f')](_0x255a2b);_0x1911c6[_0x1f29('0x43')]=_0x55e465[_0x1f29('0x43')],_0x1911c6[_0x1f29('0xc0')]=_0x55e465['end'];}}[_0x1f29('0x8')](_0x1c4115,_0x57049e){if(_0x1f29('0x5b')==_0x1c4115[_0x1f29('0x1a')]||_0x1f29('0x80')==_0x1c4115[_0x1f29('0x1a')])return void this[_0x1f29('0x6d')](_0x1c4115,_0x57049e);if('insert'==_0x1c4115['type']){const _0x1ae47d=_0x1c4115[_0x1f29('0x81')]['root'][_0x1f29('0x1c')];this['_diffRoots'][_0x1f29('0xca')](_0x1ae47d)||(this[_0x1f29('0x2f')]['set'](_0x1ae47d,G(_0x1ae47d,!0x0)),this[_0x1f29('0x49')][_0x1f29('0x2c')](_0x1ae47d,{}),_0x57049e&&this[_0x1f29('0x44')]['set'](_0x1ae47d,G(_0x1ae47d,!0x0)));}else{if(_0x1f29('0xa')==_0x1c4115['type']||_0x1f29('0xfb')==_0x1c4115[_0x1f29('0x1a')]||_0x1f29('0x7c')==_0x1c4115['type'])return void this[_0x1f29('0xd3')](_0x1c4115);}const _0x5f04a0=this[_0x1f29('0x6f')](_0x1c4115,this[_0x1f29('0x2f')]);if(_0x1f29('0x55')!==_0x1c4115[_0x1f29('0x1a')]&&(_0x5f04a0['_execute'](),this['_transformMarkers'](_0x5f04a0)),_0x57049e)switch(_0x5f04a0[_0x1f29('0x1a')]){case _0x1f29('0x52'):this[_0x1f29('0x60')](_0x1c4115);break;case _0x1f29('0x15'):case _0x1f29('0x63'):case'reinsert':this[_0x1f29('0xcf')](_0x1c4115);break;case _0x1f29('0x5e'):this[_0x1f29('0x45')](_0x1c4115);break;case'split':this[_0x1f29('0x47')](_0x1c4115);break;case'marker':this[_0x1f29('0x100')](_0x1c4115);}}[_0x1f29('0x6f')](_0x538630,_0x3ad94a){const _0x481ef4=_0x538630[_0x1f29('0x17')]();return _0x481ef4[_0x1f29('0x6c')]=_0x538630['_authorId'],this['_fixOperation'](_0x481ef4,_0x3ad94a),_0x481ef4;}[_0x1f29('0x6')](_0x214a41){return _0x214a41[_0x1f29('0x2b')](_0x321108=>{const _0x3917c6=this[_0x1f29('0x85')](_0x321108);return Number(_0x321108[_0x1f29('0xaf')][_0x1f29('0x9c')](_0x3917c6));});}[_0x1f29('0xb5')](_0x4b9fe0,_0x4a7d10){if(_0x4b9fe0['is'](_0x1f29('0xe1'),_0x1f29('0x9a')))_0x4a7d10[_0x1f29('0xe5')]({'item':_0x4b9fe0,'type':'text'});else{_0x4b9fe0['is'](_0x1f29('0xe1'))&&_0x4a7d10[_0x1f29('0xe5')]({'item':_0x4b9fe0,'type':_0x1f29('0x89')});for(const _0x207c68 of _0x4b9fe0[_0x1f29('0xc7')]())this[_0x1f29('0xb5')](_0x207c68,_0x4a7d10);_0x4b9fe0['is'](_0x1f29('0xe1'))&&_0x4a7d10[_0x1f29('0xe5')]({'item':_0x4b9fe0,'type':_0x1f29('0xad')});}return _0x4a7d10;}[_0x1f29('0xe9')](){const _0x28f178=new Map(this[_0x1f29('0x28')]),_0x38d503=new Map(_0x28f178),_0x8cc198=new Map(),_0x3b5fa5={'insertions':{},'deletions':{}},_0x3df87b={'insertions':{},'deletions':{}},_0x20d75b=new Map(),_0x3a9e15=new Set([...this[_0x1f29('0xa2')]['keys'](),...this[_0x1f29('0x2f')][_0x1f29('0x94')]()]);_0x3a9e15[_0x1f29('0x82')](_0x1f29('0x25'));for(const _0x56a744 of _0x3a9e15){const _0x4f719e=this[_0x1f29('0x2f')]['get'](_0x56a744)||G(_0x56a744,!0x1),_0x335408=this[_0x1f29('0xa2')]['get'](_0x56a744)||G(_0x56a744,!0x1);_0x4f719e[_0x1f29('0xba')]()||_0x335408[_0x1f29('0xba')]()?(_0x3b5fa5[_0x1f29('0x6b')][_0x56a744]=q(_0x4f719e),_0x3b5fa5[_0x1f29('0x3c')][_0x56a744]=q(_0x335408),this[_0x1f29('0x3e')](_0x3b5fa5[_0x1f29('0x3c')][_0x56a744],_0x335408),this[_0x1f29('0x3e')](_0x3b5fa5[_0x1f29('0x6b')][_0x56a744],_0x4f719e),_0x3df87b[_0x1f29('0x6b')][_0x56a744]=this['_generateTape'](this[_0x1f29('0x44')][_0x1f29('0xd8')](_0x56a744),[]),_0x3df87b[_0x1f29('0x3c')][_0x56a744]=this[_0x1f29('0xb5')](this['_baseIdsRoots'][_0x1f29('0xd8')](_0x56a744)||G(_0x56a744,!0x1),[])):_0x3a9e15[_0x1f29('0x82')](_0x56a744);}for(const _0x2a4248 of _0x3a9e15){const _0x10e600=_0x3df87b[_0x1f29('0x6b')][_0x2a4248];for(const _0x21921d of _0x10e600){const _0x15e20e=this[_0x1f29('0x85')](_0x21921d),_0x2babfa=_0x21921d[_0x1f29('0xaf')][_0x1f29('0x9c')](_0x15e20e);_0x38d503[_0x1f29('0x82')](_0x2babfa),_0x2babfa>=this['_startingRevisionId']&&_0x8cc198[_0x1f29('0x2c')](_0x2babfa,_0x28f178[_0x1f29('0xd8')](_0x2babfa));}}for(const _0x4760e3 of _0x3a9e15){const _0x184289=_0x3df87b[_0x1f29('0x6b')][_0x4760e3],_0x49e95f=this['_getBaseVids'](_0x3df87b[_0x1f29('0x3c')][_0x4760e3]);let _0x520ab2=0x0;for(const _0x37296d of _0x184289){const _0x53c3b8=this[_0x1f29('0x85')](_0x37296d),_0x34535c=_0x37296d[_0x1f29('0xaf')][_0x1f29('0x9c')](_0x53c3b8);if(!_0x8cc198[_0x1f29('0xca')](_0x34535c)&&!_0x20d75b[_0x1f29('0xca')](_0x34535c)){if(_0x38d503[_0x1f29('0xca')](_0x34535c))_0x520ab2++;else{if(_0x34535c!=_0x49e95f[_0x520ab2]){const _0x922f14=_0x28f178[_0x1f29('0xd8')](_0x34535c)||_0x28f178['get'](_0x49e95f[_0x520ab2]);for(;_0x34535c!=_0x49e95f[_0x520ab2];)_0x38d503[_0x1f29('0xca')](_0x49e95f[_0x520ab2])||(_0x20d75b[_0x1f29('0x2c')](_0x49e95f[_0x520ab2],_0x922f14),_0x28f178[_0x1f29('0x2c')](_0x49e95f[_0x520ab2],_0x922f14)),_0x520ab2++;}_0x520ab2++;}}}}for(const _0x277548 of _0x3a9e15){const _0x58d662=_0x3df87b['insertions'][_0x277548];for(const _0x2f1295 of _0x58d662){const _0x5a3fa8=this['_getVidAttributeName'](_0x2f1295),_0x3b338a=_0x2f1295[_0x1f29('0xaf')][_0x1f29('0x9c')](_0x5a3fa8);if(_0x20d75b['has'](_0x3b338a)){const _0x155955=_0x20d75b[_0x1f29('0xd8')](_0x3b338a);_0x38d503[_0x1f29('0xca')](_0x3b338a)||_0x38d503[_0x1f29('0x2c')](_0x3b338a,{..._0x155955}),_0x8cc198[_0x1f29('0x2c')](_0x3b338a,{..._0x155955});}}}for(const _0x2a049e of _0x38d503[_0x1f29('0x94')]())_0x2a049e>=this[_0x1f29('0xb0')]&&_0x38d503['delete'](_0x2a049e);const _0x56a950=new Map();for(const _0xa70fce of _0x3a9e15){let _0x1a9ce8=_0x3df87b[_0x1f29('0x6b')][_0xa70fce];for(const _0x178cf9 of _0x1a9ce8)if(_0x178cf9[_0x1f29('0xaf')]['is']('element',_0x1f29('0x8f'))){const _0x4a4d7a=this[_0x1f29('0x85')](_0x178cf9),_0x5022a7=_0x178cf9[_0x1f29('0xaf')]['getAttribute'](_0x4a4d7a);if(_0x8cc198[_0x1f29('0xca')](_0x5022a7)){const _0x104e19=_0x178cf9['item'][_0x1f29('0xd1')][_0x1f29('0xd1')][_0x1f29('0x9c')]('vid_start'),_0x28e5a5=_0x56a950[_0x1f29('0xd8')](_0x104e19)||new Set();_0x28e5a5['add'](_0x8cc198[_0x1f29('0xd8')](_0x5022a7)[_0x1f29('0x29')]),_0x56a950[_0x1f29('0x2c')](_0x104e19,_0x28e5a5);}}_0x1a9ce8=_0x3df87b[_0x1f29('0x3c')][_0xa70fce];for(const _0x492a09 of _0x1a9ce8)if(_0x492a09[_0x1f29('0xaf')]['is'](_0x1f29('0xe1'),_0x1f29('0x8f'))){const _0x169f49=this[_0x1f29('0x85')](_0x492a09),_0x16237c=_0x492a09['item']['getAttribute'](_0x169f49);if(_0x38d503[_0x1f29('0xca')](_0x16237c)){const _0x9dfa43=_0x492a09[_0x1f29('0xaf')][_0x1f29('0xd1')]['parent'][_0x1f29('0x9c')]('vid_start'),_0x2af587=_0x56a950[_0x1f29('0xd8')](_0x9dfa43)||new Set();_0x2af587['add'](_0x38d503[_0x1f29('0xd8')](_0x16237c)[_0x1f29('0x29')]),_0x56a950[_0x1f29('0x2c')](_0x9dfa43,_0x2af587);}}for(const _0x37fcd8 of _0x56a950[_0x1f29('0x94')]())(_0x8cc198['has'](_0x37fcd8)||_0x38d503[_0x1f29('0xca')](_0x37fcd8))&&_0x56a950['delete'](_0x37fcd8);}for(const _0xf01ba2 of _0x3a9e15){const _0x1b5d66=_0x3df87b[_0x1f29('0x6b')][_0xf01ba2];let _0x4234c4=null,_0x432ed8=null;for(const _0x10586c of _0x1b5d66){const _0x5b1cb5=this[_0x1f29('0x85')](_0x10586c),_0x296ec6=_0x10586c['item'][_0x1f29('0x9c')](_0x5b1cb5),_0x2a736d=_0x56a950[_0x1f29('0xd8')](_0x296ec6);_0x2a736d&&_0x1f29('0x89')==_0x10586c[_0x1f29('0x1a')]&&(_0x4234c4=Array[_0x1f29('0x57')](_0x2a736d)[0x0],_0x432ed8=_0x10586c['item']['getAttribute']('vid_end')),_0x4234c4&&(_0x38d503[_0x1f29('0x2c')](_0x296ec6,{'userId':_0x4234c4}),_0x8cc198[_0x1f29('0x2c')](_0x296ec6,{'userId':_0x4234c4})),_0x296ec6==_0x432ed8&&(_0x4234c4=null,_0x432ed8=null);}}const _0x25e060={},_0x656c45=new Set();for(const _0x266a5f of _0x3a9e15){const _0x3c7b44=_0x3b5fa5[_0x1f29('0x3c')][_0x266a5f],_0x1710f7=_0x3b5fa5[_0x1f29('0x6b')][_0x266a5f];for(const {userId:_0x576c66}of this[_0x1f29('0x58')][_0x1f29('0xc8')]())null!==_0x576c66&&_0x656c45[_0x1f29('0x6e')](_0x576c66);for(const {userId:_0x25919a}of this[_0x1f29('0xdd')][_0x1f29('0xc8')]())null!==_0x25919a&&_0x656c45['add'](_0x25919a);this[_0x1f29('0xff')](_0x1710f7,_0x3df87b[_0x1f29('0x6b')][_0x266a5f],_0x8cc198,_0x1f29('0x88'),_0x656c45),this[_0x1f29('0xff')](_0x3c7b44,_0x3df87b['deletions'][_0x266a5f],_0x38d503,_0x1f29('0x7e'),_0x656c45),_0x25e060[_0x266a5f]={'insertions':this[_0x1f29('0xea')](_0x1710f7),'deletions':this[_0x1f29('0xea')](_0x3c7b44),'attachChange':this[_0x1f29('0xdd')]['get'](_0x266a5f)||null,'attributesBefore':_0x1b57dc(this[_0x1f29('0x3d')][_0x1f29('0xd8')](_0x266a5f))||{},'attributesAfter':_0x1b57dc(this['_diffRootsAttributes'][_0x1f29('0xd8')](_0x266a5f))};}return{'diffData':_0x25e060,'authorsIds':Array[_0x1f29('0x57')](_0x656c45)};}[_0x1f29('0x67')](_0x2ff0bb){for(const [,_0x12f5c7]of _0x2ff0bb['markers']){const _0x8c658b=_0x12f5c7[_0x1f29('0x43')][_0x1f29('0x26')]()[_0x1f29('0x37')](_0x2fae05=>_0x1f29('0x8f')==_0x2fae05[_0x1f29('0xf')]);for(const _0x3def2c of _0x8c658b)0x1==_0x3def2c['childCount']&&_0x3def2c['getChild'](0x0)['is'](_0x1f29('0xe1'),'paragraph')&&_0x3def2c[_0x1f29('0xb6')](0x0)['_setAttribute'](_0x1f29('0xfd'),!0x0);}}[_0x1f29('0xea')](_0x8c96e){this[_0x1f29('0x67')](_0x8c96e);const _0x160142=this[_0x1f29('0x7a')]['data'][_0x1f29('0x4e')](_0x8c96e,{}),_0x450097=Array[_0x1f29('0x57')](_0x160142['getChildren']())[_0x1f29('0x2b')](_0x109e1b=>this[_0x1f29('0x54')](_0x109e1b));return JSON['stringify'](_0x450097);}[_0x1f29('0x54')](_0x2842c3){if(_0x2842c3['is']('$text'))return _0x2842c3[_0x1f29('0x35')];{const _0x36e1c7=_0x2842c3;return{'type':Object[_0x1f29('0x94')](B)[_0x1f29('0xce')](_0x1ee94d=>_0x2842c3 instanceof B[_0x1ee94d]),'name':_0x36e1c7[_0x1f29('0xf')],'attributes':Array['from'](_0x36e1c7[_0x1f29('0xe4')]()),'children':Array[_0x1f29('0x57')](_0x36e1c7[_0x1f29('0xc7')]())['map'](_0x2b4e45=>this['_getViewJson'](_0x2b4e45))};}}['_markChanges'](_0x2f45cc,_0x40139e,_0x4919b5,_0x28b350,_0x16fd66){let _0x512370=null,_0xf35eb4=null,_0x474059=0x0;const _0x20c394=this[_0x1f29('0x7a')][_0x1f29('0xc2')];for(let _0x4eb6b2=0x0;_0x4eb6b2<_0x40139e[_0x1f29('0xa6')];_0x4eb6b2++){const _0x177b06=this[_0x1f29('0x85')](_0x40139e[_0x4eb6b2]),_0x7d597c=_0x40139e[_0x4eb6b2][_0x1f29('0xaf')][_0x1f29('0x9c')](_0x177b06),_0xbf32f7=_0x4919b5['get'](_0x7d597c),_0x2abdd4=_0x4eb6b2==_0x40139e[_0x1f29('0xa6')]-0x1;(!_0x512370&&_0xbf32f7&&(_0x512370=_0xbf32f7,_0xf35eb4=_0x40139e[_0x4eb6b2]),_0x512370&&(!_0xbf32f7||_0xbf32f7[_0x1f29('0x29')]!=_0x512370['userId']))&&(_0x31f8bf(_0xbf32f7,L(_0xf35eb4,_0x2f45cc,_0x20c394),L(_0x40139e[_0x4eb6b2],_0x2f45cc,_0x20c394)),_0x512370=_0xbf32f7||null,_0xf35eb4=_0xbf32f7?_0x40139e[_0x4eb6b2]:null),_0x512370&&_0x2abdd4&&_0x31f8bf(_0xbf32f7,L(_0xf35eb4,_0x2f45cc,_0x20c394),W(_0x40139e[_0x4eb6b2],_0x2f45cc,_0x20c394));}function _0x31f8bf(_0x3cbbc7,_0x313156,_0x1b835d){const _0x496d9c=_0x512370['userId'],_0x163f25=_0x1f29('0xb3')+_0x28b350+':'+_0x496d9c+':'+_0x474059++,_0x1e404e=_0x20c394['createRange'](_0x313156,_0x1b835d);_0x2f45cc[_0x1f29('0x39')][_0x1f29('0x2c')](_0x163f25,_0x1e404e),null!==_0x496d9c&&_0x16fd66[_0x1f29('0x6e')](_0x496d9c);}}[_0x1f29('0x85')](_0x5b9792){switch(_0x5b9792[_0x1f29('0x1a')]){case _0x1f29('0x89'):return _0x1f29('0xd0');case _0x1f29('0xad'):return'vid_end';default:return _0x1f29('0xf0');}}[_0x1f29('0x24')](_0x1fba83,_0x5d2dc2){_0x1fba83[_0x1f29('0xf1')]=null;for(const _0x242ff7 in _0x1fba83){const _0x2c92d5=_0x1fba83[_0x242ff7];if(_0x2c92d5 instanceof _0x19e12c){const _0x2b2a31=_0x5d2dc2[_0x1f29('0xd8')](_0x2c92d5[_0x1f29('0x4')][_0x1f29('0x1c')]);_0x1fba83[_0x242ff7]=this[_0x1f29('0x40')](_0x2c92d5,_0x2b2a31);}if(_0x2c92d5 instanceof _0x2de140){const _0xa0dfa0=_0x5d2dc2['get'](_0x2c92d5[_0x1f29('0x4')][_0x1f29('0x1c')]);_0x1fba83[_0x242ff7]=this[_0x1f29('0x7d')](_0x2c92d5,_0xa0dfa0);}_0x1f29('0x4')===_0x242ff7&&(_0x1fba83['root']=_0x5d2dc2[_0x1f29('0xd8')](_0x1fba83[_0x1f29('0x4')][_0x1f29('0x1c')]));}}['_fixRange'](_0x50f9bd,_0x2bd9b9){return this[_0x1f29('0x7a')]['model'][_0x1f29('0x33')](this['_fixPosition'](_0x50f9bd[_0x1f29('0x43')],_0x2bd9b9),this[_0x1f29('0x40')](_0x50f9bd[_0x1f29('0xc0')],_0x2bd9b9));}[_0x1f29('0x40')](_0x35f3f4,_0x3da807){return this['editor'][_0x1f29('0xc2')][_0x1f29('0x3f')](_0x3da807,_0x35f3f4[_0x1f29('0xee')],_0x35f3f4[_0x1f29('0xf5')]);}[_0x1f29('0x60')](_0x257ccb){const _0x2ffe80=this[_0x1f29('0x44')][_0x1f29('0xd8')](_0x257ccb[_0x1f29('0x81')][_0x1f29('0x4')]['rootName']),_0x146437=this['_fixPosition'](_0x257ccb['position'],_0x2ffe80),_0x3729ea=null===_0x257ccb['_authorId']?null:_0x257ccb['_authorId']||this['editor'][_0x1f29('0x4f')][_0x1f29('0xd8')](_0x1f29('0x95'))['me']['id'],_0xd7a74=_0x146437['parent'],_0x31a4c2=this[_0x1f29('0xef')],_0x39bd74=[];for(const _0x14d9e7 of _0x257ccb['nodes'])if(_0x14d9e7['is'](_0x1f29('0xe1')))_0x39bd74[_0x1f29('0xe5')](this[_0x1f29('0x78')](_0x14d9e7));else for(let _0x462c8d=0x0;_0x462c8d<_0x14d9e7['offsetSize'];_0x462c8d++)_0x39bd74[_0x1f29('0xe5')](new _0x28cd05(_0x1f29('0x9a'),{'vid':this[_0x1f29('0xef')]++}));const _0x46304a=this[_0x1f29('0xef')];for(let _0x110147=_0x31a4c2;_0x110147<_0x46304a;_0x110147++)this[_0x1f29('0x28')][_0x1f29('0x2c')](_0x110147,{'userId':_0x3729ea});_0xd7a74[_0x1f29('0xc4')](_0x146437[_0x1f29('0xa5')],_0x39bd74);}['_handleMoveOperation'](_0x3af8a2){(_0x3af8a2=this['_cloneOperation'](_0x3af8a2,this[_0x1f29('0x44')]))[_0x1f29('0x5f')]();const _0x5d6fea=null===_0x3af8a2[_0x1f29('0x6c')]?null:_0x3af8a2['_authorId']||this[_0x1f29('0x7a')]['plugins']['get'](_0x1f29('0x95'))['me']['id'],_0x1170e7=_0x3af8a2[_0x1f29('0x5c')](),_0x121143=_0x1170e7['parent'],_0x1584ba=_0x1170e7['offset'];!function _0x496559(_0x1085f9,_0x2959f8,_0xd33947,_0x121331){for(let _0x3ce174=_0xd33947;_0x3ce174<_0x121331;_0x3ce174++){const _0x1bb9fd=_0x2959f8[_0x1f29('0xb6')](_0x3ce174);_0x1bb9fd['is'](_0x1f29('0xe1'),_0x1f29('0x9a'))?_0x1085f9['set'](_0x1bb9fd['getAttribute']('vid'),{'userId':_0x5d6fea}):(_0x1085f9[_0x1f29('0x2c')](_0x1bb9fd[_0x1f29('0x9c')](_0x1f29('0xd0')),{'userId':_0x5d6fea}),_0x496559(_0x1085f9,_0x1bb9fd,0x0,_0x1bb9fd['childCount']),_0x1085f9[_0x1f29('0x2c')](_0x1bb9fd['getAttribute']('vid_end'),{'userId':_0x5d6fea}));}}(this[_0x1f29('0x28')],_0x121143,_0x1584ba,_0x1584ba+_0x3af8a2[_0x1f29('0x18')]);}[_0x1f29('0x45')](_0x52acee){const _0x46b870=null===(_0x52acee=this['_cloneOperation'](_0x52acee,this['_idsRoots']))[_0x1f29('0x6c')]?null:_0x52acee['_authorId']||this['editor'][_0x1f29('0x4f')]['get'](_0x1f29('0x95'))['me']['id'],_0x363725=_0x52acee[_0x1f29('0xa0')][_0x1f29('0xd1')],_0xe6ea3a=_0x52acee['sourcePosition'][_0x1f29('0xd1')],_0x5ac2d9=_0x363725[_0x1f29('0x9c')](_0x1f29('0xe')),_0x19a440=_0xe6ea3a[_0x1f29('0x9c')]('vid_start');_0x363725['_setAttribute'](_0x1f29('0xe'),_0xe6ea3a['getAttribute'](_0x1f29('0xe'))),_0xe6ea3a[_0x1f29('0xd4')](_0x1f29('0xe'),_0x5ac2d9),this[_0x1f29('0x28')]['set'](_0x19a440,{'userId':_0x46b870}),this['_touched']['set'](_0x5ac2d9,{'userId':_0x46b870}),_0x52acee['_execute']();}[_0x1f29('0x47')](_0x28df17){const _0x2b7736=null===(_0x28df17=this['_cloneOperation'](_0x28df17,this[_0x1f29('0x44')]))['_authorId']?null:_0x28df17[_0x1f29('0x6c')]||this[_0x1f29('0x7a')][_0x1f29('0x4f')][_0x1f29('0xd8')](_0x1f29('0x95'))['me']['id'],_0x98363b=_0x28df17[_0x1f29('0x9b')],_0x174b66=_0x28df17[_0x1f29('0xda')][_0x1f29('0xd1')];_0x28df17[_0x1f29('0x5f')]();const _0x8a67c2=_0x174b66['getAttribute'](_0x1f29('0xe')),_0x41b7bf=_0x28df17['insertionPosition'][_0x1f29('0xe2')];if(_0x98363b){const _0x598396=_0x41b7bf[_0x1f29('0x9c')](_0x1f29('0xe')),_0x404dc4=_0x174b66[_0x1f29('0x9c')]('vid_end');_0x174b66[_0x1f29('0xd4')](_0x1f29('0xe'),_0x598396),_0x41b7bf[_0x1f29('0xd4')](_0x1f29('0xe'),_0x404dc4),this['_touched'][_0x1f29('0x2c')](_0x174b66['getAttribute'](_0x1f29('0xe')),{'userId':_0x2b7736}),this[_0x1f29('0x28')][_0x1f29('0x2c')](_0x41b7bf[_0x1f29('0x9c')](_0x1f29('0xd0')),{'userId':_0x2b7736});}else{const _0x2e18ef=this[_0x1f29('0xef')]++,_0x5d0fd9=this[_0x1f29('0xef')]++;_0x174b66[_0x1f29('0xd4')](_0x1f29('0xe'),_0x2e18ef),_0x41b7bf[_0x1f29('0xd4')](_0x1f29('0xd0'),_0x5d0fd9),_0x41b7bf['_setAttribute'](_0x1f29('0xe'),_0x8a67c2),this[_0x1f29('0x28')][_0x1f29('0x2c')](_0x2e18ef,{'userId':_0x2b7736}),this[_0x1f29('0x28')]['set'](_0x5d0fd9,{'userId':_0x2b7736});}}[_0x1f29('0x100')](_0x359429){if(!_0x359429[_0x1f29('0x61')])return;const _0x2ec924=(_0x359429=this[_0x1f29('0x6f')](_0x359429,this[_0x1f29('0x2f')]))[_0x1f29('0x41')]?_0x359429[_0x1f29('0x41')][_0x1f29('0x4')]:null,_0x6dbacf=_0x359429[_0x1f29('0x23')]?_0x359429['newRange'][_0x1f29('0x4')]:null;_0x2ec924&&this[_0x1f29('0x98')][_0x1f29('0x82')](_0x359429['name']),_0x6dbacf&&this[_0x1f29('0x98')][_0x1f29('0x2c')](_0x359429[_0x1f29('0xf')],_0x359429[_0x1f29('0x23')][_0x1f29('0x17')]());const _0x3c1541=null===_0x359429[_0x1f29('0x6c')]?null:_0x359429['_authorId']||this[_0x1f29('0x7a')][_0x1f29('0x4f')][_0x1f29('0xd8')]('Users')['me']['id'],_0x447f5e=_0x359429[_0x1f29('0xf')];if(!this['_touchedMarkers'][_0x1f29('0xca')](_0x447f5e))return void this[_0x1f29('0x58')][_0x1f29('0x2c')](_0x447f5e,{'range':_0x359429['oldRange'],'userId':_0x3c1541});const _0x3e84cd=this[_0x1f29('0x58')][_0x1f29('0xd8')](_0x447f5e),_0x2a2718=_0x3e84cd['range'],_0x4f907e=_0x359429['newRange'];null==_0x2a2718&&null==_0x4f907e||_0x2a2718&&_0x4f907e&&_0x2a2718[_0x1f29('0x99')](_0x4f907e)?this['_touchedMarkers']['delete'](_0x359429[_0x1f29('0xf')]):_0x3e84cd[_0x1f29('0x29')]=_0x3c1541;}[_0x1f29('0x6d')](_0x28fe79,_0x395e49){this['_diffRoots'][_0x1f29('0xca')](_0x28fe79[_0x1f29('0x1c')])?this[_0x1f29('0x2f')][_0x1f29('0xd8')](_0x28fe79['rootName'])['_isAttached']=_0x28fe79['isAdd']:(this[_0x1f29('0x2f')][_0x1f29('0x2c')](_0x28fe79[_0x1f29('0x1c')],G(_0x28fe79['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x28fe79[_0x1f29('0x1c')],{}),_0x395e49&&this[_0x1f29('0x44')][_0x1f29('0x2c')](_0x28fe79[_0x1f29('0x1c')],G(_0x28fe79[_0x1f29('0x1c')],!0x0)));const _0x30321a=null===_0x28fe79[_0x1f29('0x6c')]?null:_0x28fe79[_0x1f29('0x6c')]||this[_0x1f29('0x7a')][_0x1f29('0x4f')]['get']('Users')['me']['id'],_0x4aebb3=this[_0x1f29('0xdd')][_0x1f29('0xd8')](_0x28fe79[_0x1f29('0x1c')]);_0x4aebb3&&_0x4aebb3['userId']===_0x30321a?this[_0x1f29('0xdd')][_0x1f29('0x82')](_0x28fe79[_0x1f29('0x1c')]):this['_touchedRoots'][_0x1f29('0x2c')](_0x28fe79[_0x1f29('0x1c')],{'userId':_0x30321a,'isAttached':_0x28fe79[_0x1f29('0x9e')]});}['_handleRootAttributeOperation'](_0x25e2f5){const _0x47d5ca=this['_diffRootsAttributes'][_0x1f29('0xd8')](_0x25e2f5[_0x1f29('0x4')]['rootName']);null===_0x25e2f5[_0x1f29('0x97')]?delete _0x47d5ca[_0x25e2f5[_0x1f29('0x74')]]:_0x47d5ca[_0x25e2f5[_0x1f29('0x74')]]=_0x25e2f5[_0x1f29('0x97')];}}function q(_0x2d2a08){const _0x3e440b=G(_0x2d2a08[_0x1f29('0x1c')],_0x2d2a08[_0x1f29('0xba')]());for(const _0x3b3242 of _0x2d2a08['getChildren']()){const _0x13f20e=_0x3b3242[_0x1f29('0x10')](!0x0);_0x3e440b[_0x1f29('0xfa')](_0x13f20e);}return _0x3e440b;}function G(_0x1afb8d,_0x376058=!0x0){const _0x4407bc=new _0x4511db();return _0x4407bc[_0x1f29('0x1c')]=_0x1afb8d,_0x4407bc[_0x1f29('0x36')]=_0x376058,_0x4407bc[_0x1f29('0xba')]=()=>_0x4407bc[_0x1f29('0x36')],_0x4407bc;}function L(_0x48cb90,_0x2e1f5a,_0x51f2a7){const _0x609dd8=_0x1f29('0xad')==_0x48cb90[_0x1f29('0x1a')]?_0x51f2a7[_0x1f29('0x73')](_0x48cb90[_0x1f29('0xaf')],_0x1f29('0xc0')):_0x51f2a7['createPositionBefore'](_0x48cb90[_0x1f29('0xaf')]);return _0x51f2a7[_0x1f29('0x3f')](_0x2e1f5a,_0x609dd8[_0x1f29('0xee')],_0x609dd8[_0x1f29('0xf5')]);}function W(_0x5dd8ee,_0x5221af,_0x1be0f4){const _0x3ba51f=_0x1f29('0x89')==_0x5dd8ee[_0x1f29('0x1a')]?_0x1be0f4[_0x1f29('0x73')](_0x5dd8ee[_0x1f29('0xaf')],0x0):_0x1be0f4[_0x1f29('0x56')](_0x5dd8ee[_0x1f29('0xaf')]);return _0x1be0f4[_0x1f29('0x3f')](_0x5221af,_0x3ba51f[_0x1f29('0xee')],_0x3ba51f[_0x1f29('0xf5')]);}
|