@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230908.0 → 0.0.0-nightly-20230909.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 _0x125a=['setRevisionData','for','addRoot','_makeModelFromViewString','position','_markChanges','repository','getData','_touchedRoots','hasContent','data','resolve','merge','addRevision','_removeRevisionMarkers','dataToMarker','getLatestVersion','_initialRevisionId','view','_handleMarkerOperation','_generateTape','toView','editing','adapter','getRevision','toModel','Users','conversion','history','_getBaseVids','version','insert','_applyOperations','roots','howMany','isEnabled','_execute','offsetSize','_touched','getIndex','includes','getChildren','upcast','_touchedMarkers','values','_fixRange','ready','startsWith','_processRootBeforeSave','_handleRootOperation','pluginName','_loadState','_update','_authorId','editor','revision-start','marker','reInit','_lastTo','insertions','elementEnd','_appendChild','push','vid_end','newRange','find','createPositionBefore','_baseRootsAttributes','_setAttribute','marked','revision:','_savedMetaData','removeRootAttribute','range','_getPreviousFrom','vid_start','initialData','_fixPosition','createRange','data-revision-','config','split','RevisionTracker','deletions','rootName','_getViewJson','attributesBefore','string','detachRoot','loadState','path','PendingActions','reverse','_isAttached','move','rootsAttributes','_getState','_startingRevisionId','_makeRevision','init','size','_setConversion','root','_idsRoots','fromEntries','_createCurrentRevision','max','_handleOperation','previousPosition','parse','_markers','key','RealTimeCollaborationClient','_loadedStateData','keys','markers','then','nodeAfter','createPositionAfter','_bufferedUpdates','addRevisionData','baseVersion','_saveMetaData','childCount','splitPosition','_bufferUpdate','clear','trim','RevisionsRepository','attributes','_handleMergeOperation','children','_handleSplitOperation','createRangeIn','from','_findInsertionIndex','getRoot','isAttached','initial','requires','oldRange','_getFromVersion','offset','_pendingAction','_cloneOperation','_insertChild','sendBufferedUpdates','collaboration.channelId','getRevisionRootsAttributes','item','has','_handleMoveOperation','getCurrentRevisionId','_continueCurrentRevision','plugins','setSource','createPositionFromPath','_handleRootAttributeOperation','authors','_handleInsertOperation','getMovedRangeStart','getNodeByPath','element','revision-end','_baseIdsRoots','currentRevision','bind','newValue','_reset','useFillerType','afterInit','length','_revisionDataBuilder','shift','processor','buildRevisionData','fromVersion','getChild','_removeMetaData','_diffRootsAttributes','update','attributesAfter','_clone','dataDowncast','nodes','_addPendingAction','_baseRoots','_prepareViewToSave','_replaceEditorDataWithRevisionData','map','creator','getTime','end','graveyardPosition','_source','NEGATIVE_INFINITY','_removePendingAction','addRootAttribute','slice','createRevision','name','_createFromRanges','tableCell','locale','_revisionId','revisionHistory.resumeUnsavedRevision','revision','documentFragment','_calculateMetaData','model','getUser','toData','targetPosition','changeRootAttribute','getRevisionDocumentData','remove','authorsIds','filter','stickiness','_makeIdsRoot','get','_diffRoots','_getVidAttributeName','vid','_copyMarkers','getAttributes','createPositionAt','isReady','_isPendingUpdate','toVersion','_isInit','set','getOperations','document','getOperation','parent','saveRevision','diffData','source','attachChange','_loadRevisionData','_startingVersion','_transformMarkers','elementStart','clone','isEqual','getAncestors','userId','_lastFrom','$graveyard','_createInitialRevision','type','add','$text','getWalker','delete','getAttribute','_fixOperation','getRevisions','PENDING_ACTION_REVISION_HISTORY','start','createdAt','editor-initial-data-replaced-with-revision-data','creatorId'];(function(_0x3c2e48,_0x125ac6){const _0x50fbe8=function(_0x4ca5da){while(--_0x4ca5da){_0x3c2e48['push'](_0x3c2e48['shift']());}};_0x50fbe8(++_0x125ac6);}(_0x125a,0x73));const _0x50fb=function(_0x3c2e48,_0x125ac6){_0x3c2e48=_0x3c2e48-0x0;let _0x50fbe8=_0x125a[_0x3c2e48];return _0x50fbe8;};import{Users as _0x10078a}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x52ae07,PendingActions as _0x292181}from'ckeditor5/src/core';import{logWarning as _0x838920,uid as _0x17a79d}from'ckeditor5/src/utils';import{Position as _0x43e92a,Range as _0x7b4d61,Element as _0x161915,DocumentFragment as _0x496a5b,ViewText as _0x29a111,ViewElement as _0x4e0364,ViewContainerElement as _0x19f5c1,ViewAttributeElement as _0x39bc74,ViewEmptyElement as _0x2ff576,ViewRawElement as _0x1000f0,ViewUIElement as _0x205595,ViewDocumentFragment as _0x50f246}from'ckeditor5/src/engine';import _0x2437e1 from'./revisionsrepository';import{getTranslation as _0x1d4030}from'./utils/common-translations';import{cloneDeep as _0x4f8a65,isEqual as _0xc082f6}from'lodash-es';const B={'c':_0x19f5c1,'a':_0x39bc74,'e':_0x2ff576,'r':_0x1000f0,'u':_0x205595};export default class l extends _0x52ae07{static get[_0x50fb('0xc7')](){return _0x50fb('0xe7');}static get[_0x50fb('0x18')](){return[_0x10078a,_0x2437e1,_0x292181];}constructor(_0x10e4fb){super(_0x10e4fb),this[_0x50fb('0xac')]=null,this['currentRevision']=null,this[_0x50fb('0x39')]=new H(this[_0x50fb('0xcb')]),this[_0x50fb('0xa6')]=this[_0x50fb('0xcb')][_0x50fb('0xe5')]['get'](_0x50fb('0x20'))||_0x50fb('0x17'),this[_0x50fb('0x4')]=new Map(),this['_loadedStateData']=null;const _0x10eeff=_0x17a79d();this[_0x50fb('0x4f')]={'history':this[_0x50fb('0xcb')]['model'][_0x50fb('0x76')][_0x50fb('0xb1')],'getLatestVersion':()=>Promise[_0x50fb('0xa0')](this[_0x50fb('0xcb')][_0x50fb('0x5e')]['document'][_0x50fb('0xb3')]),'getCurrentRevisionId':()=>_0x10eeff},this[_0x50fb('0x74')](_0x50fb('0x70'),!0x1),this[_0x50fb('0x74')](_0x50fb('0xb8'),!0x0),this[_0x50fb('0x74')]('_isPendingUpdate',!0x1),this[_0x50fb('0xcb')][_0x50fb('0xe5')]['define'](_0x50fb('0x5a'),!0x0),this['editor'][_0x50fb('0xb0')][_0x50fb('0x96')](_0x50fb('0xbf'))[_0x50fb('0xa4')]({'view':_0x50fb('0x5b')});}[_0x50fb('0xf8')](){this[_0x50fb('0x9b')]=this['editor'][_0x50fb('0x27')]['get'](_0x50fb('0xd')),this[_0x50fb('0xfa')](),this['editor'][_0x50fb('0x9f')]['on'](_0x50fb('0xc3'),()=>{const _0x592fe1=this[_0x50fb('0x9b')][_0x50fb('0xad')](0x0),_0x79197f=_0x592fe1&&null===_0x592fe1[_0x50fb('0x4b')]?_0x592fe1:null;if(this[_0x50fb('0x26')]=!!_0x79197f&&this['editor'][_0x50fb('0xe5')]['get'](_0x50fb('0x5a')),this[_0x50fb('0xcb')]['plugins'][_0x50fb('0x23')](_0x50fb('0x105'))){const _0x4218dd=this[_0x50fb('0x4f')][_0x50fb('0x25')](),_0x50964d=this['repository'][_0x50fb('0xad')](_0x4218dd);if(_0x50964d)this[_0x50fb('0x7e')]=_0x50964d[_0x50fb('0x3d')],this['_continueCurrentRevision']=!0x1;else{const _0x555565=this[_0x50fb('0x4f')][_0x50fb('0xb1')]['_operations'][_0x50fb('0xd6')](_0x4bbeac=>!_0x4bbeac[_0x50fb('0x73')]),_0x49e02d=_0x555565?_0x555565[_0x50fb('0x6')]:this[_0x50fb('0x4f')][_0x50fb('0xb1')][_0x50fb('0xb3')];_0x592fe1?(_0x592fe1[_0x50fb('0x72')]<_0x49e02d&&_0x592fe1[_0x50fb('0xc9')]({'toVersion':_0x49e02d}),this[_0x50fb('0x26')]?(this[_0x50fb('0x4f')]['getCurrentRevisionId']=()=>_0x79197f['id'],this[_0x50fb('0x7e')]=_0x79197f[_0x50fb('0x3d')]):(this[_0x50fb('0x7e')]=_0x592fe1[_0x50fb('0x72')],this[_0x50fb('0x26')]=!0x1)):(this['_startingVersion']=_0x49e02d,this[_0x50fb('0x26')]=!0x1);}}else _0x79197f&&(this[_0x50fb('0xcb')]['model'][_0x50fb('0x76')][_0x50fb('0xb1')][_0x50fb('0xb3')]=Math[_0x50fb('0xff')](_0x79197f[_0x50fb('0x72')],this[_0x50fb('0xcb')]['model'][_0x50fb('0x76')][_0x50fb('0xb1')][_0x50fb('0xb3')]),_0x79197f[_0x50fb('0x3d')]===_0x79197f[_0x50fb('0x72')]?(0x0!==_0x79197f['fromVersion']&&(this['_source'][_0x50fb('0x25')]=()=>_0x79197f['id']),this[_0x50fb('0x26')]=!0x1):this[_0x50fb('0x26')]&&(this[_0x50fb('0x4f')]['getCurrentRevisionId']=()=>_0x79197f['id'],this[_0x50fb('0x7e')]=_0x79197f[_0x50fb('0x3d')])),this['_continueCurrentRevision']||(this[_0x50fb('0x7e')]=this[_0x50fb('0xcb')][_0x50fb('0x5e')][_0x50fb('0x76')][_0x50fb('0xb3')]);this[_0x50fb('0x39')][_0x50fb('0xf8')](this['_source'][_0x50fb('0xb1')]),this['_createInitialRevision'](this[_0x50fb('0x7e')]),this[_0x50fb('0xfe')](this[_0x50fb('0x7e')]),this[_0x50fb('0xac')]&&this[_0x50fb('0x1f')]();}),this[_0x50fb('0x33')]('isReady')['to'](this,_0x50fb('0x71'),_0x1c6a6c=>!_0x1c6a6c);}async[_0x50fb('0x37')](){if(this[_0x50fb('0x9b')][_0x50fb('0x38')]>0x0){const _0x5257a3=this[_0x50fb('0x9b')][_0x50fb('0xad')](0x0),_0x169719=await this[_0x50fb('0x63')](_0x5257a3),_0x1b6b0a=await this['getRevisionRootsAttributes'](_0x5257a3);this['_replaceEditorDataWithRevisionData'](_0x169719,_0x1b6b0a);}}[_0x50fb('0x28')](_0x558e6d){this[_0x50fb('0x4f')]=_0x558e6d;}async[_0x50fb('0x41')](){const _0x379f2e=await this[_0x50fb('0x4f')][_0x50fb('0xa5')]();if(_0x379f2e>this[_0x50fb('0x32')][_0x50fb('0x72')]){await this['_loadState']();const _0x55ea10=this[_0x50fb('0x3c')]({'revision':this[_0x50fb('0x32')],'to':_0x379f2e});_0x55ea10[_0x50fb('0x2b')]=_0x55ea10[_0x50fb('0x65')]['map'](_0x3498b8=>this['editor'][_0x50fb('0x27')]['get'](_0x50fb('0xaf'))[_0x50fb('0x5f')](_0x3498b8)),this['currentRevision'][_0x50fb('0xc9')](_0x55ea10);}}async[_0x50fb('0xc8')](){this[_0x50fb('0x26')]&&!this[_0x50fb('0x106')]&&(await this[_0x50fb('0x7d')](this[_0x50fb('0x32')]),this['_revisionDataBuilder'][_0x50fb('0xee')](this[_0x50fb('0x32')]),this[_0x50fb('0x106')]={'fromVersion':this[_0x50fb('0x32')][_0x50fb('0x3d')],'authors':this[_0x50fb('0x32')][_0x50fb('0x2b')][_0x50fb('0x53')]()});}async[_0x50fb('0x79')](_0x4b228d={},_0x84c992=null){const _0x5d3de5=[];await this[_0x50fb('0xc8')](),this['_continueCurrentRevision']=!0x1,_0x84c992>this[_0x50fb('0x32')][_0x50fb('0x72')]&&(_0x84c992=null),null===_0x84c992&&(_0x84c992=await this['_source'][_0x50fb('0xa5')]());const _0x2b6ae5=this[_0x50fb('0x1a')](_0x84c992),_0x5e5a8a=this[_0x50fb('0x3c')]({'from':_0x2b6ae5,'to':_0x84c992});if(this['currentRevision'][_0x50fb('0x72')]<_0x84c992){const _0x405c4d=this[_0x50fb('0x3c')]({'revision':this['currentRevision'],'from':_0x84c992,'to':_0x84c992});_0x405c4d[_0x50fb('0x2b')]=[],_0x405c4d[_0x50fb('0x65')]=[],_0x405c4d['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x405c4d,!0x0),delete _0x405c4d[_0x50fb('0x2b')],_0x5d3de5[_0x50fb('0xd3')](_0x405c4d);}_0x4b228d[_0x50fb('0x94')]=this[_0x50fb('0xcb')][_0x50fb('0x27')]['get'](_0x50fb('0xaf'))['me']['id'],_0x4b228d[_0x50fb('0x55')]=_0x4b228d[_0x50fb('0x55')]||null,_0x4b228d['id']=_0x4b228d['id']||_0x17a79d(),_0x4b228d={..._0x4b228d,..._0x5e5a8a};const _0x24868e=this['addRevisionData'](_0x4b228d);_0x5d3de5[_0x50fb('0xd3')](_0x4b228d);const _0x5eb496=this[_0x50fb('0x9b')][_0x50fb('0xbc')](_0x24868e);if(0x0!==_0x5eb496){const _0x51dd3e=this[_0x50fb('0x9b')][_0x50fb('0xad')](_0x5eb496-0x1);if(_0x51dd3e['fromVersion']!==_0x84c992){const _0x2d09d3=this['_revisionDataBuilder'][_0x50fb('0x9c')](_0x84c992,_0x51dd3e['toVersion']),_0x249359={'id':_0x51dd3e['id'],'diffData':_0x2d09d3[_0x50fb('0x7a')],'authorsIds':_0x2d09d3[_0x50fb('0x65')],'authors':_0x2d09d3[_0x50fb('0x65')][_0x50fb('0x4a')](_0x273228=>this[_0x50fb('0xcb')][_0x50fb('0x27')][_0x50fb('0x69')](_0x50fb('0xaf'))['getUser'](_0x273228)),'fromVersion':_0x84c992};_0x51dd3e===this[_0x50fb('0x32')]&&(_0x249359[_0x50fb('0x92')]=new Date(_0x4b228d[_0x50fb('0x92')][_0x50fb('0x4c')]()+0xa)),_0x51dd3e[_0x50fb('0xc9')](_0x249359,!0x0),delete _0x249359[_0x50fb('0x2b')],_0x5d3de5[_0x50fb('0xd3')](_0x249359);}}if(this[_0x50fb('0xac')]){for(const _0x451b1a of _0x5d3de5)this[_0x50fb('0xa')](_0x451b1a['id'],_0x451b1a,!0x0);this[_0x50fb('0x1f')]();}return _0x24868e;}['addRevisionData'](_0x28aff8){const _0x128160=this[_0x50fb('0x9b')][_0x50fb('0x54')](_0x28aff8);return this[_0x50fb('0xac')]&&_0x128160['on']('_update',(_0x5416da,_0x35003c,_0x486eff)=>{_0x486eff||(this['_bufferUpdate'](_0x35003c['id'],_0x35003c,!0x0),this['sendBufferedUpdates']());}),this[_0x50fb('0x9b')][_0x50fb('0xa2')](_0x128160,this[_0x50fb('0x14')](_0x128160)),_0x128160;}async[_0x50fb('0x63')](_0x1bc4d7){await this['_loadRevisionData'](_0x1bc4d7);const _0x52ec5d={};for(const _0x953a in _0x1bc4d7[_0x50fb('0x7a')]){if(_0x1bc4d7[_0x50fb('0x7a')][_0x953a]['attachChange']&&!_0x1bc4d7[_0x50fb('0x7a')][_0x953a][_0x50fb('0x7c')][_0x50fb('0x16')])continue;const _0x58ed30=this[_0x50fb('0xa3')](JSON[_0x50fb('0x102')](_0x1bc4d7[_0x50fb('0x7a')][_0x953a][_0x50fb('0xd0')])),_0x36eb63=this[_0x50fb('0xcb')][_0x50fb('0xab')][_0x50fb('0xa7')][_0x50fb('0x76')],_0x3b7712=new _0x50f246(_0x36eb63,_0x58ed30[_0x50fb('0x4a')](_0x5d5784=>J(_0x5d5784,this[_0x50fb('0xcb')])));this['editor'][_0x50fb('0x9f')][_0x50fb('0x3b')][_0x50fb('0x36')](_0x50fb('0xda')),_0x52ec5d[_0x953a]=this[_0x50fb('0xcb')][_0x50fb('0x9f')][_0x50fb('0x3b')][_0x50fb('0x60')](_0x3b7712),this['editor'][_0x50fb('0x9f')]['processor'][_0x50fb('0x36')]('default');}return _0x52ec5d;}async[_0x50fb('0x21')](_0x237b75){await this['_loadRevisionData'](_0x237b75);const _0xb6c831={};for(const _0x11b8fe in _0x237b75['diffData'])_0x237b75[_0x50fb('0x7a')][_0x11b8fe][_0x50fb('0x7c')]&&!_0x237b75[_0x50fb('0x7a')][_0x11b8fe]['attachChange'][_0x50fb('0x16')]||(_0xb6c831[_0x11b8fe]=_0x237b75[_0x50fb('0x7a')][_0x11b8fe][_0x50fb('0x42')]||{});return _0xb6c831;}[_0x50fb('0x1f')](){if(0x0===this[_0x50fb('0x4')][_0x50fb('0xf9')])return;if(this['_isPendingUpdate'])return;let _0x5ad457=Array['from'](this['_bufferedUpdates'][_0x50fb('0xc1')]());this[_0x50fb('0x4')][_0x50fb('0xb')]();for(let _0x3c5375=0x0;_0x3c5375<_0x5ad457[_0x50fb('0x38')];_0x3c5375++){const _0x77c15c=_0x5ad457[_0x3c5375];let _0x46a8ec=!0x1;for(const _0x4d7077 of Object[_0x50fb('0x107')](_0x77c15c))void 0x0===_0x77c15c[_0x4d7077]?delete _0x77c15c[_0x4d7077]:'id'!==_0x4d7077&&(_0x46a8ec=!0x0);_0x46a8ec||(_0x5ad457[_0x3c5375]=null);}if(_0x5ad457=_0x5ad457[_0x50fb('0x66')](_0x504170=>null!==_0x504170),!_0x5ad457[_0x50fb('0x38')])return;for(let _0x3c9e15=0x0;_0x3c9e15<_0x5ad457[_0x50fb('0x38')];_0x3c9e15++){const _0x97066=_0x5ad457[_0x3c9e15];void 0x0!==_0x97066['fromVersion']&&void 0x0===_0x97066['toVersion']&&(_0x97066[_0x50fb('0x72')]=this['repository'][_0x50fb('0xad')](_0x97066['id'])[_0x50fb('0x72')]),void 0x0!==_0x97066[_0x50fb('0x72')]&&void 0x0===_0x97066[_0x50fb('0x3d')]&&(_0x97066['fromVersion']=this[_0x50fb('0x9b')]['getRevision'](_0x97066['id'])[_0x50fb('0x3d')]);}const _0x4b1391=this['editor']['config'][_0x50fb('0x69')]('collaboration.channelId');this[_0x50fb('0x71')]=!0x0,this[_0x50fb('0x46')](),this[_0x50fb('0xac')]['updateRevisions'](_0x5ad457,_0x4b1391)['finally'](()=>{this[_0x50fb('0x71')]=!0x1;})[_0x50fb('0x1')](_0x261d11=>{if(_0x261d11)for(const _0x350b69 of _0x261d11)this[_0x50fb('0x95')]({'id':_0x350b69['id'],'createdAt':_0x350b69['createdAt']});this['_removePendingAction'](),this[_0x50fb('0x1f')]();});}[_0x50fb('0x49')](_0x10adc7,_0x2493ef){let _0x3ff06b=this[_0x50fb('0xcb')]['config'][_0x50fb('0x69')](_0x50fb('0xe1')),_0x2f176f=this[_0x50fb('0xcb')]['config'][_0x50fb('0x69')](_0x50fb('0xf4'));if(void 0x0===_0x3ff06b){_0x3ff06b={};for(const _0x2d2e58 of this[_0x50fb('0xcb')]['model']['document']['getRootNames']())_0x3ff06b[_0x2d2e58]='';}if(_0x50fb('0xec')==typeof _0x3ff06b&&(_0x3ff06b={'main':_0x3ff06b}),void 0x0===_0x2f176f){_0x2f176f={};for(const _0x1c2019 of this[_0x50fb('0xcb')][_0x50fb('0x5e')]['document']['getRootNames']())_0x2f176f[_0x1c2019]={};}let _0x500c6a=!0x1;const _0x598fa6=Object[_0x50fb('0x107')](_0x3ff06b),_0x565925=Object[_0x50fb('0x107')](_0x10adc7);for(const _0x5ed868 of _0x598fa6){if(_0x3ff06b[_0x5ed868]!==_0x10adc7[_0x5ed868]&&''!==_0x3ff06b[_0x5ed868][_0x50fb('0xc')]()){_0x500c6a=!0x0;break;}if(!_0xc082f6(_0x2f176f[_0x5ed868],_0x2493ef[_0x5ed868])&&Object[_0x50fb('0x107')](_0x2f176f[_0x5ed868])[_0x50fb('0x38')]>0x0){_0x500c6a=!0x0;break;}}_0x500c6a||(_0x500c6a=_0x565925['some'](_0x5325f0=>!this[_0x50fb('0xcb')][_0x50fb('0x5e')]['document'][_0x50fb('0x15')](_0x5325f0))),_0x500c6a&&_0x838920(_0x50fb('0x93'),{'editorData':_0x3ff06b,'editorRootsAttributes':_0x2f176f,'revisionData':_0x10adc7,'revisionRootsAttributes':_0x2493ef}),this[_0x50fb('0xcb')][_0x50fb('0xe5')][_0x50fb('0x74')](_0x50fb('0xe1'),_0x10adc7),this[_0x50fb('0xcb')][_0x50fb('0xe5')][_0x50fb('0x74')]('rootsAttributes',_0x2493ef);}[_0x50fb('0x46')](){if(!this['_pendingAction']){const _0x5dc19a=this[_0x50fb('0xcb')]['plugins'][_0x50fb('0x69')](_0x50fb('0xf0'));this[_0x50fb('0x1c')]=_0x5dc19a[_0x50fb('0x89')](_0x1d4030(this[_0x50fb('0xcb')][_0x50fb('0x58')],_0x50fb('0x90')));}}[_0x50fb('0x51')](){this[_0x50fb('0x1c')]&&(this['editor'][_0x50fb('0x27')][_0x50fb('0x69')](_0x50fb('0xf0'))['remove'](this['_pendingAction']),this[_0x50fb('0x1c')]=null);}[_0x50fb('0x14')](_0x31484f){const _0x434a4e=this[_0x50fb('0x9b')][_0x50fb('0x8f')]();_0x434a4e[_0x50fb('0xf1')]();let _0x2c2290=0x0;for(;_0x2c2290<_0x434a4e['length'];){const _0x432492=_0x434a4e[_0x2c2290];if(_0x432492===this['currentRevision']){_0x2c2290++;continue;}if(_0x432492['id']===this['_initialRevisionId'])break;const _0x494c1f=_0x31484f[_0x50fb('0x72')]-_0x432492[_0x50fb('0x72')]||_0x31484f['fromVersion']-_0x432492['fromVersion'];if(_0x494c1f>0x0)break;if(_0x494c1f<0x0)_0x2c2290++;else{if(!_0x31484f[_0x50fb('0x4b')]&&_0x432492[_0x50fb('0x4b')])break;if(_0x432492[_0x50fb('0x4b')]||!_0x31484f[_0x50fb('0x4b')]){if(_0x31484f[_0x50fb('0x92')]>_0x432492[_0x50fb('0x92')])break;_0x2c2290++;}else _0x2c2290++;}}return _0x2c2290;}['setRevisionData'](_0x4451b0){const _0x5d8626=this[_0x50fb('0x9b')][_0x50fb('0xad')](_0x4451b0['id']);if(_0x4451b0[_0x50fb('0x92')]&&(_0x4451b0[_0x50fb('0x92')]=new Date(_0x4451b0[_0x50fb('0x92')])),_0x4451b0[_0x50fb('0x65')]){const _0x5a773a=this[_0x50fb('0xcb')]['plugins'][_0x50fb('0x69')]('Users');_0x4451b0['authors']=_0x4451b0[_0x50fb('0x65')][_0x50fb('0x4a')](_0x5aaef6=>_0x5a773a['getUser'](_0x5aaef6));}_0x5d8626[_0x50fb('0xc9')](_0x4451b0,!0x0);}[_0x50fb('0x3c')]({revision:_0x446724=null,from:_0x5a4ea3=null,to:_0x3d87e0=null}){_0x5a4ea3=null!==_0x5a4ea3?_0x5a4ea3:_0x446724[_0x50fb('0x3d')],_0x3d87e0=null!==_0x3d87e0?_0x3d87e0:_0x446724[_0x50fb('0x72')];const _0x330604=this[_0x50fb('0x39')][_0x50fb('0x9c')](_0x5a4ea3,_0x3d87e0),_0x12186c={'diffData':_0x330604[_0x50fb('0x7a')],'authorsIds':_0x330604[_0x50fb('0x65')],'fromVersion':_0x5a4ea3,'toVersion':_0x3d87e0};if(!_0x446724||_0x3d87e0!==_0x446724[_0x50fb('0x72')]){const _0x17a833=_0x3d87e0-0x1,_0x5826b1=this[_0x50fb('0x4f')]['history'][_0x50fb('0x77')](_0x17a833);_0x12186c[_0x50fb('0x92')]=_0x5826b1&&_0x5826b1[_0x50fb('0x92')]||new Date();}if(this[_0x50fb('0x106')]&&_0x5a4ea3===this[_0x50fb('0x106')]['fromVersion'])for(const _0x33c4e2 of this[_0x50fb('0x106')]['authors'])_0x12186c[_0x50fb('0x65')][_0x50fb('0xbd')](_0x33c4e2['id'])||_0x12186c[_0x50fb('0x65')][_0x50fb('0xd3')](_0x33c4e2['id']);return _0x12186c;}[_0x50fb('0x7d')](_0x314a23){if(!_0x314a23||_0x314a23[_0x50fb('0x7a')])return Promise[_0x50fb('0xa0')]();{const _0x227b45=this['editor'][_0x50fb('0xe5')][_0x50fb('0x69')](_0x50fb('0x20'));return this[_0x50fb('0xac')]['getRevision']({'channelId':_0x227b45,'revisionId':_0x314a23['id']})[_0x50fb('0x1')](_0x4da818=>{_0x314a23[_0x50fb('0x7a')]=_0x4da818['diffData'];});}}['_bufferUpdate'](_0x1b3816,_0x1d9092,_0x50957b){if(this[_0x50fb('0x4')][_0x50fb('0x23')](_0x1b3816)){const _0x13bdc5=this['_bufferedUpdates'][_0x50fb('0x69')](_0x1b3816);_0x1d9092=_0x50957b?{..._0x13bdc5,..._0x1d9092}:{..._0x1d9092,..._0x13bdc5};}this[_0x50fb('0x4')][_0x50fb('0x74')](_0x1b3816,_0x1d9092);}['_getFromVersion'](_0x3dc82e){const _0x1a0219=this['repository']['getRevisions']();_0x1a0219[_0x50fb('0xf1')](),_0x1a0219[_0x50fb('0x3a')]();const _0x27ed2f=_0x1a0219[_0x50fb('0xd6')](_0x1ec5e6=>_0x1ec5e6['toVersion']<=_0x3dc82e)['toVersion'];return _0x27ed2f<this['_startingVersion']?this[_0x50fb('0x7e')]:_0x27ed2f;}[_0x50fb('0x87')](_0x293ce1){const _0x4b72ac=this[_0x50fb('0x9b')][_0x50fb('0xad')](this['repository'][_0x50fb('0x38')]-0x1);if(_0x4b72ac)this['_initialRevisionId']=_0x4b72ac['id'];else{const _0x32c557=!this['editor'][_0x50fb('0x5e')][_0x50fb('0x76')][_0x50fb('0xb6')]['find'](_0x4b82d6=>this[_0x50fb('0xcb')][_0x50fb('0x5e')][_0x50fb('0x9e')](_0x4b82d6)),_0x1fb5d8=this['editor'][_0x50fb('0x27')]['get'](_0x50fb('0xaf'))['me']['id'],_0x352979=_0x1d4030(this[_0x50fb('0xcb')]['locale'],_0x32c557?'Empty\x20document':'Initial\x20revision');this[_0x50fb('0xf7')]({'from':_0x293ce1,'to':_0x293ce1,'id':this[_0x50fb('0xa6')],'name':_0x352979,'creatorId':_0x1fb5d8});}}[_0x50fb('0xfe')](_0x19f11a){const _0x5a93c8=this['_source'][_0x50fb('0x25')]();this[_0x50fb('0x32')]=this['repository'][_0x50fb('0xad')](_0x5a93c8),this[_0x50fb('0x32')]||(this[_0x50fb('0x32')]=this[_0x50fb('0xf7')]({'from':_0x19f11a,'to':_0x19f11a,'id':_0x5a93c8,'name':'','creatorId':null}));}[_0x50fb('0xf7')]({name:_0x40ac48,from:_0x4b7dc7,to:_0x31fa68,creatorId:_0x43a4b4,id:_0x41c279}){const _0x33983f=this[_0x50fb('0x3c')]({'from':_0x4b7dc7,'to':_0x31fa68});_0x33983f[_0x50fb('0x55')]=_0x40ac48,_0x33983f[_0x50fb('0x94')]=_0x43a4b4,_0x33983f['id']=_0x41c279;const _0x440999=this[_0x50fb('0x5')](_0x33983f);return this['adapter']&&this['_bufferUpdate'](_0x33983f['id'],_0x33983f,!0x0),_0x440999;}[_0x50fb('0xfa')](){this[_0x50fb('0xcb')][_0x50fb('0xb0')]['for'](_0x50fb('0x44'))['markerToData']({'model':_0x50fb('0x5b')});}[_0x50fb('0xa3')](_0x5cc608){return(_0x5cc608=_0x5cc608[_0x50fb('0x66')](_0x22324c=>!_0x22324c[_0x50fb('0x55')]||_0x50fb('0xcc')!==_0x22324c[_0x50fb('0x55')]&&_0x50fb('0x30')!==_0x22324c[_0x50fb('0x55')]))['forEach'](_0x5a3619=>{_0x50fb('0xec')!=typeof _0x5a3619&&(_0x5a3619[_0x50fb('0x10')]=this['_removeRevisionMarkers'](_0x5a3619[_0x50fb('0x10')]),_0x5a3619[_0x50fb('0xe')]=_0x5a3619[_0x50fb('0xe')][_0x50fb('0x66')](_0x1f2f38=>!_0x1f2f38[0x0][_0x50fb('0xc4')](_0x50fb('0xe4'))));}),_0x5cc608;}}function J(_0x58e841,_0x1b31a1){const _0x5b6ee5=_0x1b31a1['editing'][_0x50fb('0xa7')]['document'];if(_0x50fb('0xec')==typeof _0x58e841)return new _0x29a111(_0x5b6ee5,_0x58e841);{const _0x44ada3=_0x58e841['children']['map'](_0x163d0b=>J(_0x163d0b,_0x1b31a1));return new(B[_0x58e841['type']]||_0x4e0364)(_0x5b6ee5,_0x58e841['name'],_0x58e841['attributes'],_0x44ada3);}}class H{constructor(_0x334d3c){this['editor']=_0x334d3c,this['_savedMetaData']=new Map(),this[_0x50fb('0x85')]=-0x1,this['_lastTo']=-0x1,this[_0x50fb('0x103')]=new Map(),this[_0x50fb('0x6a')]=new Map(),this[_0x50fb('0x40')]=new Map(),this['_baseRoots']=new Map(),this[_0x50fb('0xd8')]=new Map(),this[_0x50fb('0xfc')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x50fb('0xbb')]=new Map(),this[_0x50fb('0xc0')]=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}[_0x50fb('0xf8')](_0x37c1b3){this[_0x50fb('0x7b')]=_0x37c1b3;const _0x4c0187=new Map(),_0x525e09=new Map(),_0x2878f6=this[_0x50fb('0xcb')][_0x50fb('0x5e')][_0x50fb('0x76')][_0x50fb('0xb6')][_0x50fb('0x4a')](_0x11a486=>_0x11a486[_0x50fb('0xe9')]);for(const _0x1392d4 of _0x2878f6){const _0x46649f=this[_0x50fb('0xcb')][_0x50fb('0x5e')][_0x50fb('0x76')][_0x50fb('0x15')](_0x1392d4),_0x566690=q(_0x46649f);_0x4c0187[_0x50fb('0x74')](_0x1392d4,_0x566690),_0x525e09[_0x50fb('0x74')](_0x1392d4,Object[_0x50fb('0xfd')](_0x46649f[_0x50fb('0x6e')]()));}const _0x5f223b=Array[_0x50fb('0x13')](this[_0x50fb('0xcb')][_0x50fb('0x5e')][_0x50fb('0x0')])['map'](_0x3927a6=>[_0x3927a6[_0x50fb('0x55')],_0x3927a6['getRange']()]),_0x3ef26f=this[_0x50fb('0x7b')]['version'];this['_saveMetaData'](_0x3ef26f,_0x4c0187,_0x5f223b,_0x525e09),this[_0x50fb('0xf6')]=this[_0x50fb('0x59')];const _0x177882=new Map(),_0x2c9992=new Map();for(const _0x5e179c of _0x2878f6){const _0x22a3fb=G(_0x5e179c);_0x177882['set'](_0x5e179c,_0x22a3fb),_0x2c9992[_0x50fb('0x74')](_0x5e179c,{});}this[_0x50fb('0x7')](Number[_0x50fb('0x50')],_0x177882,[],_0x2c9992);}[_0x50fb('0x9c')](_0x455c61,_0x15fbbd){if(this[_0x50fb('0x85')]===_0x455c61&&this[_0x50fb('0xcf')]<=_0x15fbbd)this[_0x50fb('0xdc')][_0x50fb('0xf9')]>0x1&&this[_0x50fb('0x3f')](this[_0x50fb('0xcf')]),this[_0x50fb('0xb5')](this[_0x50fb('0xcf')],_0x15fbbd,!0x0);else{if(!this[_0x50fb('0xdc')][_0x50fb('0x23')](_0x455c61)){const _0x1d20c0=this[_0x50fb('0xdf')](_0x455c61);this['_calculateMetaData'](_0x1d20c0,_0x455c61,!0x1);}this[_0x50fb('0x5d')](_0x455c61,_0x15fbbd,!0x0);}return this['_lastFrom']=_0x455c61,this['_lastTo']=_0x15fbbd,this[_0x50fb('0xf5')]();}[_0x50fb('0xee')](_0x2e535d){this[_0x50fb('0x35')](),this[_0x50fb('0x85')]=_0x2e535d[_0x50fb('0x3d')],this['_lastTo']=_0x2e535d[_0x50fb('0x72')];for(const _0x51e42c in _0x2e535d[_0x50fb('0x7a')]){const _0x3f6bc5=_0x2e535d[_0x50fb('0x7a')][_0x51e42c][_0x50fb('0x7c')],_0x3ab2d3=_0x4f8a65(_0x2e535d[_0x50fb('0x7a')][_0x51e42c][_0x50fb('0xeb')])||{},_0x5077e6=this['_makeModelFromViewString'](_0x2e535d[_0x50fb('0x7a')][_0x51e42c][_0x50fb('0xe8')]);_0x5077e6['rootName']=_0x51e42c,_0x5077e6[_0x50fb('0xf2')]=!_0x3f6bc5||!_0x3f6bc5[_0x50fb('0x16')],_0x5077e6[_0x50fb('0x16')]=()=>_0x5077e6['_isAttached'],this[_0x50fb('0x47')][_0x50fb('0x74')](_0x51e42c,_0x5077e6),this[_0x50fb('0xd8')][_0x50fb('0x74')](_0x51e42c,_0x3ab2d3),_0x3f6bc5&&this[_0x50fb('0x9d')][_0x50fb('0x74')](_0x51e42c,_0x3f6bc5);const _0x4356d9=this['_makeIdsRoot'](_0x5077e6);this[_0x50fb('0x31')][_0x50fb('0x74')](_0x51e42c,_0x4356d9);for(const [_0x167090,_0x4555b6]of _0x5077e6[_0x50fb('0x0')]){if(!_0x167090[_0x50fb('0xc4')](_0x50fb('0xdb')))continue;const _0x23ac34=_0x167090[_0x50fb('0xe6')](':')[0x2];for(const _0x1864f8 of _0x4555b6[_0x50fb('0x8b')]({'singleCharacters':!0x0})){const _0x596aca=this[_0x50fb('0x6b')](_0x1864f8),_0x2e684e=_0x50fb('0xd1')==_0x1864f8[_0x50fb('0x88')]?_0x1864f8[_0x50fb('0x101')]['path'][_0x50fb('0x53')](0x0,-0x1):_0x1864f8['previousPosition'][_0x50fb('0xef')],_0x142316=_0x4356d9[_0x50fb('0x2e')](_0x2e684e)[_0x50fb('0x8d')](_0x596aca);this[_0x50fb('0xbb')][_0x50fb('0x74')](_0x142316,{'userId':_0x23ac34});}}}this['_startingRevisionId']=this[_0x50fb('0x59')];const _0xaef156=[...Array(this[_0x50fb('0x59')])['keys']()][_0x50fb('0x53')](0x1)[_0x50fb('0x66')](_0x4926e2=>!this[_0x50fb('0xbb')][_0x50fb('0x23')](_0x4926e2));let _0x3fba0d=0x0;const _0x59d249=new Map();for(const _0x315d06 in _0x2e535d[_0x50fb('0x7a')]){const _0x2ab483=_0x2e535d[_0x50fb('0x7a')][_0x315d06]['attachChange'],_0x3fc337=_0x4f8a65(_0x2e535d['diffData'][_0x315d06][_0x50fb('0x42')])||{},_0x427eff=this[_0x50fb('0x98')](_0x2e535d['diffData'][_0x315d06]['insertions']);_0x427eff[_0x50fb('0xe9')]=_0x315d06,_0x427eff[_0x50fb('0xf2')]=!_0x2ab483||_0x2ab483['isAttached'],_0x427eff[_0x50fb('0x16')]=()=>_0x427eff[_0x50fb('0xf2')],this['_diffRoots'][_0x50fb('0x74')](_0x315d06,_0x427eff),this['_diffRootsAttributes']['set'](_0x315d06,_0x3fc337);const _0x26d5ef=this[_0x50fb('0x68')](_0x427eff,Number['NEGATIVE_INFINITY']);this[_0x50fb('0xfc')][_0x50fb('0x74')](_0x315d06,_0x26d5ef),_0x59d249[_0x50fb('0x74')](_0x315d06,_0x427eff[_0x50fb('0x16')]()?_0x3fc337:{});for(const [_0x165efb,_0x55bac9]of _0x427eff['markers']){if(!_0x165efb['startsWith'](_0x50fb('0xdb')))continue;const _0x335e53=_0x165efb[_0x50fb('0xe6')](':')[0x2];for(const _0x3e8aa5 of _0x55bac9[_0x50fb('0x8b')]({'singleCharacters':!0x0})){const _0x5dad3e=this[_0x50fb('0x6b')](_0x3e8aa5),_0x1dbda5=this[_0x50fb('0x59')]++,_0x1fb40b=_0x50fb('0xd1')==_0x3e8aa5[_0x50fb('0x88')]?_0x3e8aa5[_0x50fb('0x101')][_0x50fb('0xef')][_0x50fb('0x53')](0x0,-0x1):_0x3e8aa5[_0x50fb('0x101')][_0x50fb('0xef')];_0x26d5ef[_0x50fb('0x2e')](_0x1fb40b)[_0x50fb('0xd9')](_0x5dad3e,_0x1dbda5),this[_0x50fb('0xbb')]['set'](_0x1dbda5,{'userId':_0x335e53});}}for(const _0x54e6a0 of this[_0x50fb('0xcb')][_0x50fb('0x5e')][_0x50fb('0x12')](_0x427eff)['getWalker']({'singleCharacters':!0x0})){const _0x28ce11=this[_0x50fb('0x6b')](_0x54e6a0),_0x50cd03=_0x50fb('0xd1')==_0x54e6a0[_0x50fb('0x88')]?_0x54e6a0[_0x50fb('0x101')][_0x50fb('0xef')][_0x50fb('0x53')](0x0,-0x1):_0x54e6a0['previousPosition']['path'],_0x2d4908=_0x26d5ef[_0x50fb('0x2e')](_0x50cd03);_0x2d4908[_0x50fb('0x8d')](_0x28ce11)>0x0||_0x2d4908[_0x50fb('0xd9')](_0x28ce11,_0xaef156[_0x3fba0d++]);}for(const [_0x24282d,_0x5551b7]of _0x427eff[_0x50fb('0x0')])_0x24282d[_0x50fb('0xc4')](_0x50fb('0xdb'))||this[_0x50fb('0x103')]['set'](_0x24282d,_0x5551b7);}const _0x22045a=G(_0x50fb('0x86'));this[_0x50fb('0x47')]['set'](_0x50fb('0x86'),_0x22045a),this['_baseIdsRoots'][_0x50fb('0x74')](_0x50fb('0x86'),this[_0x50fb('0x68')](_0x22045a,0x1));const _0x44e8c2=G(_0x50fb('0x86'));this[_0x50fb('0x6a')][_0x50fb('0x74')](_0x50fb('0x86'),_0x44e8c2),this[_0x50fb('0xfc')][_0x50fb('0x74')]('$graveyard',this[_0x50fb('0x68')](_0x44e8c2,0x1));const _0x2e8de1=Array[_0x50fb('0x13')](this[_0x50fb('0x6a')])['map'](([_0x1f34d3,_0x1e6f9d])=>[_0x1f34d3,q(_0x1e6f9d)]);this['_saveMetaData'](this['_lastTo'],_0x2e8de1,this[_0x50fb('0x103')],_0x59d249);}[_0x50fb('0x98')](_0x2cd681){const _0x12d56f=JSON[_0x50fb('0x102')](_0x2cd681),_0x361a0d=this[_0x50fb('0xcb')][_0x50fb('0xab')][_0x50fb('0xa7')][_0x50fb('0x76')],_0x11f6ff=new _0x50f246(_0x361a0d,_0x12d56f[_0x50fb('0x4a')](_0x4c94cf=>J(_0x4c94cf,this['editor'])));return this[_0x50fb('0xcb')][_0x50fb('0x9f')][_0x50fb('0xae')](_0x11f6ff);}[_0x50fb('0x7')](_0x4318f0,_0x2d8033,_0x3d2191,_0xacd0d6){const _0x129f66=new Map(_0x2d8033),_0x508aa4=new Map(_0x4f8a65(_0xacd0d6)),_0x5a403d=new Map();for(const [_0x43612c,_0x5e4b71]of _0x3d2191)_0x5a403d[_0x50fb('0x74')](_0x43612c,{'start':_0x5e4b71[_0x50fb('0x91')][_0x50fb('0x81')](),'end':_0x5e4b71[_0x50fb('0x4d')][_0x50fb('0x81')](),'rootName':_0x5e4b71[_0x50fb('0xfb')][_0x50fb('0xe9')]});this[_0x50fb('0xdc')][_0x50fb('0x74')](_0x4318f0,{'roots':_0x129f66,'markers':_0x5a403d,'rootsAttributes':_0x508aa4});}[_0x50fb('0x3f')](_0x1e0d65){this[_0x50fb('0xdc')][_0x50fb('0x8c')](_0x1e0d65);}[_0x50fb('0xce')](){this[_0x50fb('0x35')](),this[_0x50fb('0x85')]=-0x1,this[_0x50fb('0xcf')]=-0x1,this[_0x50fb('0xdc')][_0x50fb('0xb')](),this['init'](this[_0x50fb('0x7b')]);}[_0x50fb('0x35')](){this[_0x50fb('0xbb')]['clear'](),this['_touchedMarkers'][_0x50fb('0xb')](),this[_0x50fb('0x9d')][_0x50fb('0xb')](),this[_0x50fb('0x6a')][_0x50fb('0xb')](),this[_0x50fb('0x40')][_0x50fb('0xb')](),this[_0x50fb('0x47')][_0x50fb('0xb')](),this[_0x50fb('0xd8')]['clear'](),this[_0x50fb('0xfc')]['clear'](),this[_0x50fb('0x31')][_0x50fb('0xb')](),this[_0x50fb('0x103')][_0x50fb('0xb')](),this[_0x50fb('0x59')]=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x4498c6,_0x577f4e=null){let _0x21bc6e=null;_0x4498c6['is'](_0x50fb('0x5c'))||(_0x21bc6e=new _0x161915(_0x4498c6[_0x50fb('0x55')],{'vid_start':null===_0x577f4e?this[_0x50fb('0x59')]++:_0x577f4e++}));const _0xa1430d=[];for(const _0x12b5bd of _0x4498c6['getChildren']())if(_0x12b5bd['is'](_0x50fb('0x2f'))){_0xa1430d[_0x50fb('0xd3')](this[_0x50fb('0x68')](_0x12b5bd,_0x577f4e));const _0x34ab29=_0xa1430d[_0xa1430d[_0x50fb('0x38')]-0x1];null!==_0x577f4e&&(_0x577f4e=_0x34ab29['is'](_0x50fb('0x2f'),_0x50fb('0x8a'))?_0x34ab29[_0x50fb('0x8d')](_0x50fb('0x6c'))+0x1:_0x34ab29[_0x50fb('0x8d')](_0x50fb('0xd4'))+0x1);}else for(let _0x2a5cb8=0x0;_0x2a5cb8<_0x12b5bd[_0x50fb('0xba')];_0x2a5cb8++)_0xa1430d[_0x50fb('0xd3')](new _0x161915(_0x50fb('0x8a'),{'vid':null===_0x577f4e?this['_revisionId']++:_0x577f4e++}));if(_0x4498c6['is'](_0x50fb('0x5c'))){const _0x1c6b75=G(_0x4498c6[_0x50fb('0xe9')]);return _0x1c6b75['_insertChild'](0x0,_0xa1430d),_0x1c6b75;}return _0x21bc6e[_0x50fb('0xd9')]('vid_end',null===_0x577f4e?this[_0x50fb('0x59')]++:_0x577f4e++),_0x21bc6e[_0x50fb('0x1e')](0x0,_0xa1430d),_0x21bc6e;}[_0x50fb('0x5d')](_0x45bca7,_0x139ad3,_0x369243){this['_reset']();const {roots:_0x36546f,markers:_0xa81471,rootsAttributes:_0x29819f}=this[_0x50fb('0xdc')][_0x50fb('0x69')](_0x45bca7);this['_baseRoots']=new Map(_0x36546f),this[_0x50fb('0xd8')]=new Map(_0x4f8a65(_0x29819f));for(const [_0x5346b7,_0x51e6af]of this[_0x50fb('0x47')])if(_0x50fb('0x86')!==_0x5346b7&&(this['_diffRoots']['set'](_0x5346b7,q(_0x51e6af)),this[_0x50fb('0x40')]=new Map(_0x4f8a65(_0x29819f)),_0x369243)){const _0x17d936=this[_0x50fb('0x59')];this['_idsRoots']['set'](_0x5346b7,this['_makeIdsRoot'](_0x51e6af)),this[_0x50fb('0x31')][_0x50fb('0x74')](_0x5346b7,this[_0x50fb('0x68')](_0x51e6af,_0x17d936));}this[_0x50fb('0xf6')]=this[_0x50fb('0x59')],this[_0x50fb('0x6a')][_0x50fb('0x74')](_0x50fb('0x86'),q(this['_baseRoots'][_0x50fb('0x69')]('$graveyard'))),_0x369243&&this['_idsRoots'][_0x50fb('0x74')]('$graveyard',this[_0x50fb('0x68')](this[_0x50fb('0x47')][_0x50fb('0x69')](_0x50fb('0x86'))));for(const [_0x220961,_0x199bc0]of _0xa81471){const _0x141868=this[_0x50fb('0x47')][_0x50fb('0x69')](_0x199bc0[_0x50fb('0xe9')]),_0x3fe602=this[_0x50fb('0x6a')][_0x50fb('0x69')](_0x199bc0[_0x50fb('0xe9')]),_0x1e5fe1=new _0x7b4d61(this[_0x50fb('0xe2')](_0x199bc0['start'],_0x141868),this[_0x50fb('0xe2')](_0x199bc0[_0x50fb('0x4d')],_0x141868)),_0x5237c1=this[_0x50fb('0xc2')](_0x1e5fe1,_0x3fe602);_0x141868[_0x50fb('0x0')][_0x50fb('0x74')](_0x220961,_0x1e5fe1),this[_0x50fb('0x103')][_0x50fb('0x74')](_0x220961,_0x5237c1);}this[_0x50fb('0xb5')](_0x45bca7,_0x139ad3,_0x369243);}[_0x50fb('0xb5')](_0x323a8d,_0x3359b2,_0x233539){for(const _0x30628e of this[_0x50fb('0x7b')][_0x50fb('0x75')](_0x323a8d,_0x3359b2))this[_0x50fb('0x100')](_0x30628e,_0x233539);for(const _0xe59a1e of this['_diffRoots'][_0x50fb('0xc1')]())_0xe59a1e[_0x50fb('0x0')][_0x50fb('0xb')]();for(const [_0x3981a6,_0x39e25e]of this[_0x50fb('0x103')]){this[_0x50fb('0x6a')][_0x50fb('0x69')](_0x39e25e[_0x50fb('0xfb')]['rootName'])['markers'][_0x50fb('0x74')](_0x3981a6,_0x39e25e[_0x50fb('0x81')]());}const _0x33fad4=new Map(),_0x961ca4=new Map();for(const [_0x3372bd,_0x234420]of this['_diffRoots'])_0x33fad4['set'](_0x3372bd,q(_0x234420)),_0x961ca4[_0x50fb('0x74')](_0x3372bd,this[_0x50fb('0x40')][_0x50fb('0x69')](_0x3372bd));this[_0x50fb('0x7')](_0x3359b2,_0x33fad4,this[_0x50fb('0x103')],_0x961ca4);}[_0x50fb('0xdf')](_0x18b5d9){const _0x3c5000=Array['from'](this['_savedMetaData']['keys']());_0x3c5000['sort']((_0x5436d2,_0x447079)=>_0x5436d2-_0x447079),_0x3c5000['reverse']();for(const _0x12def5 of _0x3c5000)if(_0x12def5<_0x18b5d9)return _0x12def5;return Number[_0x50fb('0x50')];}[_0x50fb('0x6d')](_0x1836bb,_0x44ccde){const _0x5aadb6=Array['from'](_0x44ccde[_0x50fb('0x0')])[_0x50fb('0x4a')](([_0x57ec82,_0x281bd9])=>[_0x57ec82,this[_0x50fb('0xc2')](_0x281bd9,_0x1836bb)]);_0x1836bb[_0x50fb('0x0')]=new Map(_0x5aadb6);}[_0x50fb('0x7f')](_0x574a2d){for(const _0xcad334 of this[_0x50fb('0x103')][_0x50fb('0xc1')]()){const _0x3fe10e=_0xcad334['getTransformedByOperation'](_0x574a2d),_0x372c96=_0x7b4d61[_0x50fb('0x56')](_0x3fe10e);_0xcad334['start']=_0x372c96[_0x50fb('0x91')],_0xcad334[_0x50fb('0x4d')]=_0x372c96[_0x50fb('0x4d')];}}[_0x50fb('0x100')](_0x592ea9,_0x4c8d5a){if(_0x50fb('0x97')==_0x592ea9[_0x50fb('0x88')]||_0x50fb('0xed')==_0x592ea9[_0x50fb('0x88')])return void this[_0x50fb('0xc6')](_0x592ea9,_0x4c8d5a);if(_0x50fb('0xb4')==_0x592ea9[_0x50fb('0x88')]){const _0x1b4adf=_0x592ea9[_0x50fb('0x99')][_0x50fb('0xfb')]['rootName'];this[_0x50fb('0x6a')][_0x50fb('0x23')](_0x1b4adf)||(this[_0x50fb('0x6a')][_0x50fb('0x74')](_0x1b4adf,G(_0x1b4adf,!0x0)),this[_0x50fb('0x40')][_0x50fb('0x74')](_0x1b4adf,{}),_0x4c8d5a&&this[_0x50fb('0xfc')][_0x50fb('0x74')](_0x1b4adf,G(_0x1b4adf,!0x0)));}else{if(_0x50fb('0x52')==_0x592ea9[_0x50fb('0x88')]||_0x50fb('0xdd')==_0x592ea9[_0x50fb('0x88')]||_0x50fb('0x62')==_0x592ea9['type'])return void this['_handleRootAttributeOperation'](_0x592ea9);}const _0x27e8f6=this[_0x50fb('0x1d')](_0x592ea9,this[_0x50fb('0x6a')]);if(_0x50fb('0xcd')!==_0x592ea9[_0x50fb('0x88')]&&(_0x27e8f6[_0x50fb('0xb9')](),this[_0x50fb('0x7f')](_0x27e8f6)),_0x4c8d5a)switch(_0x27e8f6[_0x50fb('0x88')]){case _0x50fb('0xb4'):this['_handleInsertOperation'](_0x592ea9);break;case _0x50fb('0xf3'):case _0x50fb('0x64'):case'reinsert':this[_0x50fb('0x24')](_0x592ea9);break;case _0x50fb('0xa1'):this[_0x50fb('0xf')](_0x592ea9);break;case'split':this['_handleSplitOperation'](_0x592ea9);break;case _0x50fb('0xcd'):this[_0x50fb('0xa8')](_0x592ea9);}}[_0x50fb('0x1d')](_0x391294,_0x29493a){const _0x239a0d=_0x391294[_0x50fb('0x81')]();return _0x239a0d['_authorId']=_0x391294[_0x50fb('0xca')],this[_0x50fb('0x8e')](_0x239a0d,_0x29493a),_0x239a0d;}[_0x50fb('0xb2')](_0x20f047){return _0x20f047[_0x50fb('0x4a')](_0x17cdd1=>{const _0x7c3e1b=this[_0x50fb('0x6b')](_0x17cdd1);return Number(_0x17cdd1[_0x50fb('0x22')][_0x50fb('0x8d')](_0x7c3e1b));});}['_generateTape'](_0x467b8b,_0x580cd5){if(_0x467b8b['is'](_0x50fb('0x2f'),_0x50fb('0x8a')))_0x580cd5[_0x50fb('0xd3')]({'item':_0x467b8b,'type':'text'});else{_0x467b8b['is'](_0x50fb('0x2f'))&&_0x580cd5[_0x50fb('0xd3')]({'item':_0x467b8b,'type':'elementStart'});for(const _0x216327 of _0x467b8b[_0x50fb('0xbe')]())this[_0x50fb('0xa9')](_0x216327,_0x580cd5);_0x467b8b['is'](_0x50fb('0x2f'))&&_0x580cd5[_0x50fb('0xd3')]({'item':_0x467b8b,'type':'elementEnd'});}return _0x580cd5;}[_0x50fb('0xf5')](){const _0x29e8f6=new Map(this[_0x50fb('0xbb')]),_0x410939=new Map(_0x29e8f6),_0x51d8d8=new Map(),_0x2abe6c={'insertions':{},'deletions':{}},_0xd57e44={'insertions':{},'deletions':{}},_0x1dab25=new Map(),_0x53210f=new Set([...this[_0x50fb('0x47')][_0x50fb('0x107')](),...this[_0x50fb('0x6a')][_0x50fb('0x107')]()]);_0x53210f['delete'](_0x50fb('0x86'));for(const _0x2c0df6 of _0x53210f){const _0x56c95c=this['_diffRoots'][_0x50fb('0x69')](_0x2c0df6)||G(_0x2c0df6,!0x1),_0x232fb2=this[_0x50fb('0x47')][_0x50fb('0x69')](_0x2c0df6)||G(_0x2c0df6,!0x1);_0x56c95c[_0x50fb('0x16')]()||_0x232fb2[_0x50fb('0x16')]()?(_0x2abe6c[_0x50fb('0xd0')][_0x2c0df6]=q(_0x56c95c),_0x2abe6c[_0x50fb('0xe8')][_0x2c0df6]=q(_0x232fb2),this['_copyMarkers'](_0x2abe6c[_0x50fb('0xe8')][_0x2c0df6],_0x232fb2),this[_0x50fb('0x6d')](_0x2abe6c['insertions'][_0x2c0df6],_0x56c95c),_0xd57e44[_0x50fb('0xd0')][_0x2c0df6]=this[_0x50fb('0xa9')](this[_0x50fb('0xfc')][_0x50fb('0x69')](_0x2c0df6),[]),_0xd57e44[_0x50fb('0xe8')][_0x2c0df6]=this[_0x50fb('0xa9')](this[_0x50fb('0x31')][_0x50fb('0x69')](_0x2c0df6)||G(_0x2c0df6,!0x1),[])):_0x53210f[_0x50fb('0x8c')](_0x2c0df6);}for(const _0x3c8063 of _0x53210f){const _0x56bd96=_0xd57e44['insertions'][_0x3c8063];for(const _0x473c73 of _0x56bd96){const _0x66705b=this[_0x50fb('0x6b')](_0x473c73),_0x4cbeb0=_0x473c73[_0x50fb('0x22')][_0x50fb('0x8d')](_0x66705b);_0x410939[_0x50fb('0x8c')](_0x4cbeb0),_0x4cbeb0>=this[_0x50fb('0xf6')]&&_0x51d8d8[_0x50fb('0x74')](_0x4cbeb0,_0x29e8f6[_0x50fb('0x69')](_0x4cbeb0));}}for(const _0x4641c7 of _0x53210f){const _0x41e419=_0xd57e44[_0x50fb('0xd0')][_0x4641c7],_0x25be7b=this['_getBaseVids'](_0xd57e44[_0x50fb('0xe8')][_0x4641c7]);let _0x249878=0x0;for(const _0x13e69c of _0x41e419){const _0x2f7668=this[_0x50fb('0x6b')](_0x13e69c),_0xc0d445=_0x13e69c[_0x50fb('0x22')][_0x50fb('0x8d')](_0x2f7668);if(!_0x51d8d8[_0x50fb('0x23')](_0xc0d445)&&!_0x1dab25[_0x50fb('0x23')](_0xc0d445)){if(_0x410939[_0x50fb('0x23')](_0xc0d445))_0x249878++;else{if(_0xc0d445!=_0x25be7b[_0x249878]){const _0x16095a=_0x29e8f6[_0x50fb('0x69')](_0xc0d445)||_0x29e8f6['get'](_0x25be7b[_0x249878]);for(;_0xc0d445!=_0x25be7b[_0x249878];)_0x410939['has'](_0x25be7b[_0x249878])||(_0x1dab25[_0x50fb('0x74')](_0x25be7b[_0x249878],_0x16095a),_0x29e8f6[_0x50fb('0x74')](_0x25be7b[_0x249878],_0x16095a)),_0x249878++;}_0x249878++;}}}}for(const _0x41335 of _0x53210f){const _0x12da23=_0xd57e44[_0x50fb('0xd0')][_0x41335];for(const _0x7884b of _0x12da23){const _0x1243ad=this['_getVidAttributeName'](_0x7884b),_0x58d85f=_0x7884b[_0x50fb('0x22')][_0x50fb('0x8d')](_0x1243ad);if(_0x1dab25[_0x50fb('0x23')](_0x58d85f)){const _0x375a55=_0x1dab25[_0x50fb('0x69')](_0x58d85f);_0x410939[_0x50fb('0x23')](_0x58d85f)||_0x410939['set'](_0x58d85f,{..._0x375a55}),_0x51d8d8[_0x50fb('0x74')](_0x58d85f,{..._0x375a55});}}}for(const _0x45e82d of _0x410939['keys']())_0x45e82d>=this['_startingRevisionId']&&_0x410939['delete'](_0x45e82d);const _0x2e16bf=new Map();for(const _0x1c166c of _0x53210f){let _0x157afe=_0xd57e44[_0x50fb('0xd0')][_0x1c166c];for(const _0x4aa94c of _0x157afe)if(_0x4aa94c[_0x50fb('0x22')]['is']('element',_0x50fb('0x57'))){const _0x4230f4=this['_getVidAttributeName'](_0x4aa94c),_0x21378a=_0x4aa94c[_0x50fb('0x22')][_0x50fb('0x8d')](_0x4230f4);if(_0x51d8d8[_0x50fb('0x23')](_0x21378a)){const _0x4c398e=_0x4aa94c[_0x50fb('0x22')]['parent'][_0x50fb('0x78')][_0x50fb('0x8d')](_0x50fb('0xe0')),_0x10c2fc=_0x2e16bf[_0x50fb('0x69')](_0x4c398e)||new Set();_0x10c2fc[_0x50fb('0x89')](_0x51d8d8[_0x50fb('0x69')](_0x21378a)[_0x50fb('0x84')]),_0x2e16bf[_0x50fb('0x74')](_0x4c398e,_0x10c2fc);}}_0x157afe=_0xd57e44[_0x50fb('0xe8')][_0x1c166c];for(const _0x3ec2ef of _0x157afe)if(_0x3ec2ef['item']['is'](_0x50fb('0x2f'),_0x50fb('0x57'))){const _0x1578ac=this[_0x50fb('0x6b')](_0x3ec2ef),_0x2b89c5=_0x3ec2ef[_0x50fb('0x22')][_0x50fb('0x8d')](_0x1578ac);if(_0x410939['has'](_0x2b89c5)){const _0x5c7cc8=_0x3ec2ef['item']['parent'][_0x50fb('0x78')]['getAttribute'](_0x50fb('0xe0')),_0x2c724d=_0x2e16bf[_0x50fb('0x69')](_0x5c7cc8)||new Set();_0x2c724d[_0x50fb('0x89')](_0x410939['get'](_0x2b89c5)[_0x50fb('0x84')]),_0x2e16bf['set'](_0x5c7cc8,_0x2c724d);}}for(const _0x51f700 of _0x2e16bf[_0x50fb('0x107')]())(_0x51d8d8['has'](_0x51f700)||_0x410939[_0x50fb('0x23')](_0x51f700))&&_0x2e16bf['delete'](_0x51f700);}for(const _0x6eb9fb of _0x53210f){const _0x5f9797=_0xd57e44[_0x50fb('0xd0')][_0x6eb9fb];let _0x2a4888=null,_0x1f6b4d=null;for(const _0x569278 of _0x5f9797){const _0x3dd24d=this[_0x50fb('0x6b')](_0x569278),_0x21313d=_0x569278['item'][_0x50fb('0x8d')](_0x3dd24d),_0x2c98c6=_0x2e16bf['get'](_0x21313d);_0x2c98c6&&_0x50fb('0x80')==_0x569278[_0x50fb('0x88')]&&(_0x2a4888=Array[_0x50fb('0x13')](_0x2c98c6)[0x0],_0x1f6b4d=_0x569278[_0x50fb('0x22')]['getAttribute'](_0x50fb('0xd4'))),_0x2a4888&&(_0x410939[_0x50fb('0x74')](_0x21313d,{'userId':_0x2a4888}),_0x51d8d8[_0x50fb('0x74')](_0x21313d,{'userId':_0x2a4888})),_0x21313d==_0x1f6b4d&&(_0x2a4888=null,_0x1f6b4d=null);}}const _0x4fd348={},_0x56d165=new Set();for(const _0x58c973 of _0x53210f){const _0x529bd1=_0x2abe6c[_0x50fb('0xe8')][_0x58c973],_0x52a08f=_0x2abe6c[_0x50fb('0xd0')][_0x58c973];for(const {userId:_0x5c4114}of this[_0x50fb('0xc0')][_0x50fb('0xc1')]())null!==_0x5c4114&&_0x56d165[_0x50fb('0x89')](_0x5c4114);for(const {userId:_0x781f83}of this['_touchedRoots'][_0x50fb('0xc1')]())null!==_0x781f83&&_0x56d165[_0x50fb('0x89')](_0x781f83);this[_0x50fb('0x9a')](_0x52a08f,_0xd57e44[_0x50fb('0xd0')][_0x58c973],_0x51d8d8,'insertion',_0x56d165),this[_0x50fb('0x9a')](_0x529bd1,_0xd57e44[_0x50fb('0xe8')][_0x58c973],_0x410939,'deletion',_0x56d165),_0x4fd348[_0x58c973]={'insertions':this[_0x50fb('0x48')](_0x52a08f),'deletions':this[_0x50fb('0x48')](_0x529bd1),'attachChange':this[_0x50fb('0x9d')][_0x50fb('0x69')](_0x58c973)||null,'attributesBefore':_0x4f8a65(this[_0x50fb('0xd8')][_0x50fb('0x69')](_0x58c973))||{},'attributesAfter':_0x4f8a65(this[_0x50fb('0x40')]['get'](_0x58c973))};}return{'diffData':_0x4fd348,'authorsIds':Array[_0x50fb('0x13')](_0x56d165)};}['_processRootBeforeSave'](_0x1865d4){for(const [,_0x172d90]of _0x1865d4[_0x50fb('0x0')]){const _0x3572d6=_0x172d90[_0x50fb('0x91')][_0x50fb('0x83')]()[_0x50fb('0x66')](_0x1d15da=>_0x50fb('0x57')==_0x1d15da[_0x50fb('0x55')]);for(const _0x42b432 of _0x3572d6)0x1==_0x42b432[_0x50fb('0x8')]&&_0x42b432[_0x50fb('0x3e')](0x0)['is'](_0x50fb('0x2f'),'paragraph')&&_0x42b432[_0x50fb('0x3e')](0x0)[_0x50fb('0xd9')]('keepParagraph',!0x0);}}[_0x50fb('0x48')](_0x2c3d45){this[_0x50fb('0xc5')](_0x2c3d45);const _0x30ae16=this[_0x50fb('0xcb')][_0x50fb('0x9f')][_0x50fb('0xaa')](_0x2c3d45,{}),_0x70ee33=Array[_0x50fb('0x13')](_0x30ae16[_0x50fb('0xbe')]())[_0x50fb('0x4a')](_0x270755=>this['_getViewJson'](_0x270755));return JSON['stringify'](_0x70ee33);}[_0x50fb('0xea')](_0x4f8188){if(_0x4f8188['is'](_0x50fb('0x8a')))return _0x4f8188[_0x50fb('0x9f')];{const _0x55a4af=_0x4f8188;return{'type':Object[_0x50fb('0x107')](B)['find'](_0x2b0898=>_0x4f8188 instanceof B[_0x2b0898]),'name':_0x55a4af[_0x50fb('0x55')],'attributes':Array[_0x50fb('0x13')](_0x55a4af[_0x50fb('0x6e')]()),'children':Array['from'](_0x55a4af[_0x50fb('0xbe')]())['map'](_0x27d69c=>this[_0x50fb('0xea')](_0x27d69c))};}}[_0x50fb('0x9a')](_0x551caf,_0x5e1585,_0x14c453,_0x67f4e9,_0x3c3cfc){let _0xd3bf26=null,_0x1cd8f7=null,_0x51ce5d=0x0;const _0xe15455=this[_0x50fb('0xcb')][_0x50fb('0x5e')];for(let _0x1a0686=0x0;_0x1a0686<_0x5e1585[_0x50fb('0x38')];_0x1a0686++){const _0x1138df=this['_getVidAttributeName'](_0x5e1585[_0x1a0686]),_0x2ea118=_0x5e1585[_0x1a0686][_0x50fb('0x22')]['getAttribute'](_0x1138df),_0x2f7e0f=_0x14c453[_0x50fb('0x69')](_0x2ea118),_0x1bbaf0=_0x1a0686==_0x5e1585['length']-0x1;(!_0xd3bf26&&_0x2f7e0f&&(_0xd3bf26=_0x2f7e0f,_0x1cd8f7=_0x5e1585[_0x1a0686]),_0xd3bf26&&(!_0x2f7e0f||_0x2f7e0f['userId']!=_0xd3bf26[_0x50fb('0x84')]))&&(_0x23d9ad(_0x2f7e0f,L(_0x1cd8f7,_0x551caf,_0xe15455),L(_0x5e1585[_0x1a0686],_0x551caf,_0xe15455)),_0xd3bf26=_0x2f7e0f||null,_0x1cd8f7=_0x2f7e0f?_0x5e1585[_0x1a0686]:null),_0xd3bf26&&_0x1bbaf0&&_0x23d9ad(_0x2f7e0f,L(_0x1cd8f7,_0x551caf,_0xe15455),W(_0x5e1585[_0x1a0686],_0x551caf,_0xe15455));}function _0x23d9ad(_0x1dc0d0,_0x27e2b6,_0x3f2251){const _0x129d52=_0xd3bf26[_0x50fb('0x84')],_0x6a5c5d=_0x50fb('0xdb')+_0x67f4e9+':'+_0x129d52+':'+_0x51ce5d++,_0x1f427b=_0xe15455[_0x50fb('0xe3')](_0x27e2b6,_0x3f2251);_0x551caf[_0x50fb('0x0')][_0x50fb('0x74')](_0x6a5c5d,_0x1f427b),null!==_0x129d52&&_0x3c3cfc[_0x50fb('0x89')](_0x129d52);}}['_getVidAttributeName'](_0x4741f7){switch(_0x4741f7['type']){case _0x50fb('0x80'):return _0x50fb('0xe0');case'elementEnd':return _0x50fb('0xd4');default:return _0x50fb('0x6c');}}[_0x50fb('0x8e')](_0x807da5,_0x5490f3){_0x807da5[_0x50fb('0x6')]=null;for(const _0x47b66a in _0x807da5){const _0x1460cf=_0x807da5[_0x47b66a];if(_0x1460cf instanceof _0x43e92a){const _0x59fdb0=_0x5490f3['get'](_0x1460cf['root'][_0x50fb('0xe9')]);_0x807da5[_0x47b66a]=this['_fixPosition'](_0x1460cf,_0x59fdb0);}if(_0x1460cf instanceof _0x7b4d61){const _0x760d5=_0x5490f3[_0x50fb('0x69')](_0x1460cf[_0x50fb('0xfb')]['rootName']);_0x807da5[_0x47b66a]=this['_fixRange'](_0x1460cf,_0x760d5);}_0x50fb('0xfb')===_0x47b66a&&(_0x807da5[_0x50fb('0xfb')]=_0x5490f3['get'](_0x807da5[_0x50fb('0xfb')]['rootName']));}}[_0x50fb('0xc2')](_0x3a950c,_0x31e3f7){return this[_0x50fb('0xcb')][_0x50fb('0x5e')][_0x50fb('0xe3')](this[_0x50fb('0xe2')](_0x3a950c[_0x50fb('0x91')],_0x31e3f7),this[_0x50fb('0xe2')](_0x3a950c[_0x50fb('0x4d')],_0x31e3f7));}[_0x50fb('0xe2')](_0x347109,_0x59242f){return this['editor']['model']['createPositionFromPath'](_0x59242f,_0x347109[_0x50fb('0xef')],_0x347109[_0x50fb('0x67')]);}[_0x50fb('0x2c')](_0x189aba){const _0x58b59c=this[_0x50fb('0xfc')][_0x50fb('0x69')](_0x189aba[_0x50fb('0x99')][_0x50fb('0xfb')][_0x50fb('0xe9')]),_0x3edb93=this[_0x50fb('0xe2')](_0x189aba['position'],_0x58b59c),_0x3ac253=null===_0x189aba[_0x50fb('0xca')]?null:_0x189aba['_authorId']||this['editor'][_0x50fb('0x27')][_0x50fb('0x69')](_0x50fb('0xaf'))['me']['id'],_0x41b999=_0x3edb93[_0x50fb('0x78')],_0x3550c8=this[_0x50fb('0x59')],_0x38a9c9=[];for(const _0x777ed4 of _0x189aba[_0x50fb('0x45')])if(_0x777ed4['is'](_0x50fb('0x2f')))_0x38a9c9[_0x50fb('0xd3')](this['_makeIdsRoot'](_0x777ed4));else for(let _0x58df4b=0x0;_0x58df4b<_0x777ed4[_0x50fb('0xba')];_0x58df4b++)_0x38a9c9[_0x50fb('0xd3')](new _0x161915(_0x50fb('0x8a'),{'vid':this[_0x50fb('0x59')]++}));const _0x2838ca=this[_0x50fb('0x59')];for(let _0x42c410=_0x3550c8;_0x42c410<_0x2838ca;_0x42c410++)this[_0x50fb('0xbb')][_0x50fb('0x74')](_0x42c410,{'userId':_0x3ac253});_0x41b999[_0x50fb('0x1e')](_0x3edb93[_0x50fb('0x1b')],_0x38a9c9);}['_handleMoveOperation'](_0x448b4e){(_0x448b4e=this['_cloneOperation'](_0x448b4e,this[_0x50fb('0xfc')]))['_execute']();const _0x285838=null===_0x448b4e['_authorId']?null:_0x448b4e['_authorId']||this[_0x50fb('0xcb')]['plugins'][_0x50fb('0x69')](_0x50fb('0xaf'))['me']['id'],_0x40ca97=_0x448b4e[_0x50fb('0x2d')](),_0x132bec=_0x40ca97['parent'],_0x41a002=_0x40ca97[_0x50fb('0x1b')];!function _0x5d62d0(_0x43b50a,_0x1f6c71,_0x144fe6,_0x131cce){for(let _0x534728=_0x144fe6;_0x534728<_0x131cce;_0x534728++){const _0x400c82=_0x1f6c71[_0x50fb('0x3e')](_0x534728);_0x400c82['is'](_0x50fb('0x2f'),'$text')?_0x43b50a[_0x50fb('0x74')](_0x400c82[_0x50fb('0x8d')](_0x50fb('0x6c')),{'userId':_0x285838}):(_0x43b50a['set'](_0x400c82[_0x50fb('0x8d')](_0x50fb('0xe0')),{'userId':_0x285838}),_0x5d62d0(_0x43b50a,_0x400c82,0x0,_0x400c82[_0x50fb('0x8')]),_0x43b50a[_0x50fb('0x74')](_0x400c82[_0x50fb('0x8d')](_0x50fb('0xd4')),{'userId':_0x285838}));}}(this[_0x50fb('0xbb')],_0x132bec,_0x41a002,_0x41a002+_0x448b4e[_0x50fb('0xb7')]);}[_0x50fb('0xf')](_0x4bae81){const _0x4aa134=null===(_0x4bae81=this['_cloneOperation'](_0x4bae81,this[_0x50fb('0xfc')]))[_0x50fb('0xca')]?null:_0x4bae81[_0x50fb('0xca')]||this['editor'][_0x50fb('0x27')][_0x50fb('0x69')](_0x50fb('0xaf'))['me']['id'],_0xe4d699=_0x4bae81[_0x50fb('0x61')][_0x50fb('0x78')],_0x1d0345=_0x4bae81['sourcePosition']['parent'],_0x36a110=_0xe4d699[_0x50fb('0x8d')]('vid_end'),_0x28df77=_0x1d0345[_0x50fb('0x8d')]('vid_start');_0xe4d699[_0x50fb('0xd9')](_0x50fb('0xd4'),_0x1d0345[_0x50fb('0x8d')](_0x50fb('0xd4'))),_0x1d0345['_setAttribute'](_0x50fb('0xd4'),_0x36a110),this[_0x50fb('0xbb')][_0x50fb('0x74')](_0x28df77,{'userId':_0x4aa134}),this['_touched'][_0x50fb('0x74')](_0x36a110,{'userId':_0x4aa134}),_0x4bae81[_0x50fb('0xb9')]();}[_0x50fb('0x11')](_0x5cc15e){const _0x1fadef=null===(_0x5cc15e=this[_0x50fb('0x1d')](_0x5cc15e,this[_0x50fb('0xfc')]))[_0x50fb('0xca')]?null:_0x5cc15e['_authorId']||this['editor']['plugins'][_0x50fb('0x69')](_0x50fb('0xaf'))['me']['id'],_0x46727d=_0x5cc15e[_0x50fb('0x4e')],_0x1038a9=_0x5cc15e[_0x50fb('0x9')]['parent'];_0x5cc15e[_0x50fb('0xb9')]();const _0x28fafa=_0x1038a9[_0x50fb('0x8d')](_0x50fb('0xd4')),_0x13cd5e=_0x5cc15e['insertionPosition'][_0x50fb('0x2')];if(_0x46727d){const _0x19c48e=_0x13cd5e['getAttribute']('vid_end'),_0x1416f1=_0x1038a9['getAttribute'](_0x50fb('0xd4'));_0x1038a9[_0x50fb('0xd9')](_0x50fb('0xd4'),_0x19c48e),_0x13cd5e[_0x50fb('0xd9')](_0x50fb('0xd4'),_0x1416f1),this[_0x50fb('0xbb')][_0x50fb('0x74')](_0x1038a9[_0x50fb('0x8d')](_0x50fb('0xd4')),{'userId':_0x1fadef}),this[_0x50fb('0xbb')][_0x50fb('0x74')](_0x13cd5e[_0x50fb('0x8d')](_0x50fb('0xe0')),{'userId':_0x1fadef});}else{const _0x4f9d2c=this['_revisionId']++,_0x455791=this[_0x50fb('0x59')]++;_0x1038a9['_setAttribute'](_0x50fb('0xd4'),_0x4f9d2c),_0x13cd5e[_0x50fb('0xd9')](_0x50fb('0xe0'),_0x455791),_0x13cd5e[_0x50fb('0xd9')](_0x50fb('0xd4'),_0x28fafa),this[_0x50fb('0xbb')][_0x50fb('0x74')](_0x4f9d2c,{'userId':_0x1fadef}),this[_0x50fb('0xbb')]['set'](_0x455791,{'userId':_0x1fadef});}}[_0x50fb('0xa8')](_0x3dc2c3){if(!_0x3dc2c3['affectsData'])return;const _0x3d3af0=(_0x3dc2c3=this[_0x50fb('0x1d')](_0x3dc2c3,this[_0x50fb('0x6a')]))[_0x50fb('0x19')]?_0x3dc2c3[_0x50fb('0x19')]['root']:null,_0x25bd45=_0x3dc2c3[_0x50fb('0xd5')]?_0x3dc2c3['newRange'][_0x50fb('0xfb')]:null;_0x3d3af0&&this[_0x50fb('0x103')][_0x50fb('0x8c')](_0x3dc2c3[_0x50fb('0x55')]),_0x25bd45&&this[_0x50fb('0x103')][_0x50fb('0x74')](_0x3dc2c3['name'],_0x3dc2c3[_0x50fb('0xd5')][_0x50fb('0x81')]());const _0x3f6b32=null===_0x3dc2c3['_authorId']?null:_0x3dc2c3['_authorId']||this[_0x50fb('0xcb')][_0x50fb('0x27')][_0x50fb('0x69')](_0x50fb('0xaf'))['me']['id'],_0x5d9f2a=_0x3dc2c3[_0x50fb('0x55')];if(!this[_0x50fb('0xc0')]['has'](_0x5d9f2a))return void this['_touchedMarkers'][_0x50fb('0x74')](_0x5d9f2a,{'range':_0x3dc2c3[_0x50fb('0x19')],'userId':_0x3f6b32});const _0x4dd4f7=this[_0x50fb('0xc0')][_0x50fb('0x69')](_0x5d9f2a),_0x5ea94a=_0x4dd4f7[_0x50fb('0xde')],_0x5bdf36=_0x3dc2c3[_0x50fb('0xd5')];null==_0x5ea94a&&null==_0x5bdf36||_0x5ea94a&&_0x5bdf36&&_0x5ea94a[_0x50fb('0x82')](_0x5bdf36)?this[_0x50fb('0xc0')]['delete'](_0x3dc2c3[_0x50fb('0x55')]):_0x4dd4f7[_0x50fb('0x84')]=_0x3f6b32;}[_0x50fb('0xc6')](_0xd1a7ec,_0x19b74b){this[_0x50fb('0x6a')]['has'](_0xd1a7ec[_0x50fb('0xe9')])?this['_diffRoots'][_0x50fb('0x69')](_0xd1a7ec[_0x50fb('0xe9')])['_isAttached']=_0xd1a7ec['isAdd']:(this['_diffRoots'][_0x50fb('0x74')](_0xd1a7ec[_0x50fb('0xe9')],G(_0xd1a7ec[_0x50fb('0xe9')],!0x0)),this[_0x50fb('0x40')][_0x50fb('0x74')](_0xd1a7ec[_0x50fb('0xe9')],{}),_0x19b74b&&this['_idsRoots'][_0x50fb('0x74')](_0xd1a7ec['rootName'],G(_0xd1a7ec['rootName'],!0x0)));const _0x46bee9=null===_0xd1a7ec[_0x50fb('0xca')]?null:_0xd1a7ec['_authorId']||this['editor'][_0x50fb('0x27')][_0x50fb('0x69')](_0x50fb('0xaf'))['me']['id'],_0x1436b1=this[_0x50fb('0x9d')][_0x50fb('0x69')](_0xd1a7ec[_0x50fb('0xe9')]);_0x1436b1&&_0x1436b1['userId']===_0x46bee9?this['_touchedRoots'][_0x50fb('0x8c')](_0xd1a7ec[_0x50fb('0xe9')]):this[_0x50fb('0x9d')][_0x50fb('0x74')](_0xd1a7ec[_0x50fb('0xe9')],{'userId':_0x46bee9,'isAttached':_0xd1a7ec['isAdd']});}[_0x50fb('0x2a')](_0x32ab4e){const _0x3bc48f=this['_diffRootsAttributes'][_0x50fb('0x69')](_0x32ab4e['root'][_0x50fb('0xe9')]);null===_0x32ab4e[_0x50fb('0x34')]?delete _0x3bc48f[_0x32ab4e[_0x50fb('0x104')]]:_0x3bc48f[_0x32ab4e[_0x50fb('0x104')]]=_0x32ab4e[_0x50fb('0x34')];}}function q(_0x2d6b9d){const _0x28407f=G(_0x2d6b9d['rootName'],_0x2d6b9d[_0x50fb('0x16')]());for(const _0x35619a of _0x2d6b9d[_0x50fb('0xbe')]()){const _0x4e174e=_0x35619a[_0x50fb('0x43')](!0x0);_0x28407f[_0x50fb('0xd2')](_0x4e174e);}return _0x28407f;}function G(_0x31c7c9,_0x388724=!0x0){const _0x3466a8=new _0x496a5b();return _0x3466a8[_0x50fb('0xe9')]=_0x31c7c9,_0x3466a8[_0x50fb('0xf2')]=_0x388724,_0x3466a8[_0x50fb('0x16')]=()=>_0x3466a8[_0x50fb('0xf2')],_0x3466a8;}function L(_0x22b78d,_0x584730,_0x2afa5a){const _0x2ac565=_0x50fb('0xd1')==_0x22b78d[_0x50fb('0x88')]?_0x2afa5a[_0x50fb('0x6f')](_0x22b78d['item'],_0x50fb('0x4d')):_0x2afa5a[_0x50fb('0xd7')](_0x22b78d['item']);return _0x2afa5a['createPositionFromPath'](_0x584730,_0x2ac565[_0x50fb('0xef')],_0x2ac565[_0x50fb('0x67')]);}function W(_0x1745af,_0x3e3327,_0x412a3f){const _0x67c546=_0x50fb('0x80')==_0x1745af[_0x50fb('0x88')]?_0x412a3f[_0x50fb('0x6f')](_0x1745af[_0x50fb('0x22')],0x0):_0x412a3f[_0x50fb('0x3')](_0x1745af['item']);return _0x412a3f[_0x50fb('0x29')](_0x3e3327,_0x67c546['path'],_0x67c546['stickiness']);}
|
|
23
|
+
const _0x2ffd=['_baseIdsRoots','getIndex','currentRevision','_clone','offset','_prepareViewToSave','revision','getAttributes','_pendingAction','_setConversion','merge','howMany','revision-end','_handleInsertOperation','_fixPosition','creator','getAttribute','_lastFrom','plugins','_touchedRoots','_handleOperation','markers','_diffRootsAttributes','rootsAttributes','_handleSplitOperation','_lastTo','get','addRootAttribute','_isAttached','removeRootAttribute','start','attributes','elementStart','_insertChild','from','_setAttribute','RevisionsRepository','getChild','revision:','_revisionId','NEGATIVE_INFINITY','_findInsertionIndex','Initial\x20revision','trim','addRevisionData','length','_initialRevisionId','getCurrentRevisionId','dataToMarker','attachChange','attributesAfter','repository','PendingActions','_execute','rootName','getRange','getRootNames','_revisionDataBuilder','processor','forEach','RealTimeCollaborationClient','_authorId','upcast','graveyardPosition','loadState','isEnabled','name','getRevision','getMovedRangeStart','adapter','hasContent','_processRootBeforeSave','_removeMetaData','previousPosition','filter','_handleRootOperation','_isPendingUpdate','_getState','init','_markers','getData','authorsIds','createPositionBefore','_handleRootAttributeOperation','_makeIdsRoot','tableCell','document','reInit','delete','_fixRange','split','range','buildRevisionData','_applyOperations','_getVidAttributeName','model','changeRootAttribute','has','roots','createdAt','define','detachRoot','parent','set','useFillerType','string','marked','toData','root','path','clear','element','_handleMarkerOperation','includes','nodeAfter','default','Users','push','vid_start','values','isAdd','elementEnd','splitPosition','_getBaseVids','_copyMarkers','userId','saveRevision','_continueCurrentRevision','diffData','find','targetPosition','version','end','baseVersion','vid','view','size','getChildren','_loadRevisionData','_removePendingAction','toModel','getNodeByPath','sort','_replaceEditorDataWithRevisionData','source','getRoot','newRange','_handleMergeOperation','conversion','editor','insertionPosition','_touched','_getFromVersion','_getPreviousFrom','documentFragment','marker','isAttached','_addPendingAction','stickiness','item','createRange','offsetSize','key','_update','_startingVersion','_touchedMarkers','insertions','setRevisionData','_baseRoots','revision-start','editing','keys','setSource','_removeRevisionMarkers','editor-initial-data-replaced-with-revision-data','_bufferUpdate','history','locale','getRevisionDocumentData','getUser','createPositionFromPath','_transformMarkers','data','_idsRoots','remove','nodes','_diffRoots','_loadedStateData','_createFromRanges','_baseRootsAttributes','_loadState','$text','_makeModelFromViewString','keepParagraph','_generateTape','parse','authors','clone','_markChanges','_savedMetaData','initialData','_createCurrentRevision','_makeRevision','_saveMetaData','children','toVersion','createPositionAt','oldRange','updateRevisions','_calculateMetaData','attributesBefore','sourcePosition','config','reverse','dataDowncast','resolve','_handleMoveOperation','map','type','fromVersion','then','vid_end','getWalker','isReady','reinsert','for','_fixOperation','$graveyard','PENDING_ACTION_REVISION_HISTORY','_createInitialRevision','getTime','_startingRevisionId','insert','createRangeIn','_reset','position','revisionHistory.resumeUnsavedRevision','sendBufferedUpdates','addRoot','slice','_bufferedUpdates','afterInit','some','affectsData','toView','deletions','_source','startsWith','add','_cloneOperation','text'];(function(_0x25d3eb,_0x2ffd6b){const _0x7c4123=function(_0x4da809){while(--_0x4da809){_0x25d3eb['push'](_0x25d3eb['shift']());}};_0x7c4123(++_0x2ffd6b);}(_0x2ffd,0x103));const _0x7c41=function(_0x25d3eb,_0x2ffd6b){_0x25d3eb=_0x25d3eb-0x0;let _0x7c4123=_0x2ffd[_0x25d3eb];return _0x7c4123;};import{Users as _0x4937d3}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x19f994,PendingActions as _0x458d0f}from'ckeditor5/src/core';import{logWarning as _0x56d67b,uid as _0x3a9d44}from'ckeditor5/src/utils';import{Position as _0x32346e,Range as _0x34fae3,Element as _0x26a125,DocumentFragment as _0x285c45,ViewText as _0x16e3d3,ViewElement as _0x3e735f,ViewContainerElement as _0x344c63,ViewAttributeElement as _0x2cb87e,ViewEmptyElement as _0x33fabb,ViewRawElement as _0x460365,ViewUIElement as _0x306036,ViewDocumentFragment as _0x1ee88d}from'ckeditor5/src/engine';import _0x3b1191 from'./revisionsrepository';import{getTranslation as _0x73fcda}from'./utils/common-translations';import{cloneDeep as _0x590a64,isEqual as _0x42fc09}from'lodash-es';const B={'c':_0x344c63,'a':_0x2cb87e,'e':_0x33fabb,'r':_0x460365,'u':_0x306036};export default class l extends _0x19f994{static get['pluginName'](){return'RevisionTracker';}static get['requires'](){return[_0x4937d3,_0x3b1191,_0x458d0f];}constructor(_0x57c559){super(_0x57c559),this[_0x7c41('0x3d')]=null,this[_0x7c41('0xf5')]=null,this[_0x7c41('0x31')]=new H(this[_0x7c41('0x8d')]),this[_0x7c41('0x26')]=this[_0x7c41('0x8d')][_0x7c41('0xcc')][_0x7c41('0x12')]('collaboration.channelId')||'initial',this[_0x7c41('0xe8')]=new Map(),this[_0x7c41('0xb3')]=null;const _0x4b9c11=_0x3a9d44();this[_0x7c41('0xee')]={'history':this[_0x7c41('0x8d')]['model'][_0x7c41('0x4e')][_0x7c41('0xa8')],'getLatestVersion':()=>Promise[_0x7c41('0xcf')](this[_0x7c41('0x8d')][_0x7c41('0x57')]['document'][_0x7c41('0x7b')]),'getCurrentRevisionId':()=>_0x4b9c11},this[_0x7c41('0x5f')](_0x7c41('0xd7'),!0x1),this[_0x7c41('0x5f')](_0x7c41('0x39'),!0x0),this[_0x7c41('0x5f')](_0x7c41('0x44'),!0x1),this[_0x7c41('0x8d')][_0x7c41('0xcc')][_0x7c41('0x5c')](_0x7c41('0xe4'),!0x0),this[_0x7c41('0x8d')]['conversion'][_0x7c41('0xd9')](_0x7c41('0x36'))[_0x7c41('0x28')]({'view':_0x7c41('0xf9')});}[_0x7c41('0x46')](){this['repository']=this[_0x7c41('0x8d')]['plugins'][_0x7c41('0x12')](_0x7c41('0x1c')),this[_0x7c41('0x1')](),this[_0x7c41('0x8d')][_0x7c41('0xae')]['on']('ready',()=>{const _0x598f39=this[_0x7c41('0x2b')][_0x7c41('0x3b')](0x0),_0x42f359=_0x598f39&&null===_0x598f39[_0x7c41('0x7')]?_0x598f39:null;if(this['_continueCurrentRevision']=!!_0x42f359&&this[_0x7c41('0x8d')][_0x7c41('0xcc')]['get'](_0x7c41('0xe4')),this[_0x7c41('0x8d')]['plugins'][_0x7c41('0x59')](_0x7c41('0x34'))){const _0x6ba082=this[_0x7c41('0xee')][_0x7c41('0x27')](),_0x42b28d=this['repository'][_0x7c41('0x3b')](_0x6ba082);if(_0x42b28d)this[_0x7c41('0x9c')]=_0x42b28d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x34b3fa=this[_0x7c41('0xee')][_0x7c41('0xa8')]['_operations']['find'](_0x2412b5=>!_0x2412b5['_isInit']),_0x23be81=_0x34b3fa?_0x34b3fa[_0x7c41('0x7d')]:this[_0x7c41('0xee')][_0x7c41('0xa8')][_0x7c41('0x7b')];_0x598f39?(_0x598f39['toVersion']<_0x23be81&&_0x598f39[_0x7c41('0x9b')]({'toVersion':_0x23be81}),this[_0x7c41('0x77')]?(this[_0x7c41('0xee')][_0x7c41('0x27')]=()=>_0x42f359['id'],this[_0x7c41('0x9c')]=_0x42f359[_0x7c41('0xd3')]):(this[_0x7c41('0x9c')]=_0x598f39[_0x7c41('0xc5')],this[_0x7c41('0x77')]=!0x1)):(this['_startingVersion']=_0x23be81,this[_0x7c41('0x77')]=!0x1);}}else _0x42f359&&(this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x4e')]['history'][_0x7c41('0x7b')]=Math['max'](_0x42f359[_0x7c41('0xc5')],this[_0x7c41('0x8d')][_0x7c41('0x57')]['document']['history'][_0x7c41('0x7b')]),_0x42f359[_0x7c41('0xd3')]===_0x42f359[_0x7c41('0xc5')]?(0x0!==_0x42f359['fromVersion']&&(this['_source'][_0x7c41('0x27')]=()=>_0x42f359['id']),this[_0x7c41('0x77')]=!0x1):this[_0x7c41('0x77')]&&(this[_0x7c41('0xee')]['getCurrentRevisionId']=()=>_0x42f359['id'],this['_startingVersion']=_0x42f359[_0x7c41('0xd3')])),this[_0x7c41('0x77')]||(this['_startingVersion']=this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x4e')][_0x7c41('0x7b')]);this['_revisionDataBuilder']['init'](this[_0x7c41('0xee')][_0x7c41('0xa8')]),this[_0x7c41('0xdd')](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this[_0x7c41('0xe5')]();}),this['bind'](_0x7c41('0xd7'))['to'](this,_0x7c41('0x44'),_0x30f070=>!_0x30f070);}async[_0x7c41('0xe9')](){if(this[_0x7c41('0x2b')][_0x7c41('0x25')]>0x0){const _0x33aafa=this[_0x7c41('0x2b')][_0x7c41('0x3b')](0x0),_0xeb5bb5=await this[_0x7c41('0xaa')](_0x33aafa),_0x1f9712=await this['getRevisionRootsAttributes'](_0x33aafa);this[_0x7c41('0x87')](_0xeb5bb5,_0x1f9712);}}[_0x7c41('0xa4')](_0xf93380){this[_0x7c41('0xee')]=_0xf93380;}async['update'](){const _0x48e733=await this['_source']['getLatestVersion']();if(_0x48e733>this[_0x7c41('0xf5')][_0x7c41('0xc5')]){await this[_0x7c41('0xb6')]();const _0x50e949=this[_0x7c41('0x54')]({'revision':this[_0x7c41('0xf5')],'to':_0x48e733});_0x50e949[_0x7c41('0xbc')]=_0x50e949[_0x7c41('0x49')][_0x7c41('0xd1')](_0x22d35c=>this[_0x7c41('0x8d')][_0x7c41('0xa')][_0x7c41('0x12')](_0x7c41('0x6c'))[_0x7c41('0xab')](_0x22d35c)),this['currentRevision'][_0x7c41('0x9b')](_0x50e949);}}async[_0x7c41('0xb6')](){this['_continueCurrentRevision']&&!this[_0x7c41('0xb3')]&&(await this[_0x7c41('0x82')](this['currentRevision']),this[_0x7c41('0x31')][_0x7c41('0x38')](this[_0x7c41('0xf5')]),this[_0x7c41('0xb3')]={'fromVersion':this[_0x7c41('0xf5')][_0x7c41('0xd3')],'authors':this[_0x7c41('0xf5')][_0x7c41('0xbc')][_0x7c41('0xe7')]()});}async[_0x7c41('0x76')](_0x33ff8b={},_0x52bd02=null){const _0x4301ac=[];await this[_0x7c41('0xb6')](),this[_0x7c41('0x77')]=!0x1,_0x52bd02>this[_0x7c41('0xf5')]['toVersion']&&(_0x52bd02=null),null===_0x52bd02&&(_0x52bd02=await this[_0x7c41('0xee')]['getLatestVersion']());const _0x1f79a8=this[_0x7c41('0x90')](_0x52bd02),_0x417229=this[_0x7c41('0x54')]({'from':_0x1f79a8,'to':_0x52bd02});if(this[_0x7c41('0xf5')]['toVersion']<_0x52bd02){const _0x4cf751=this[_0x7c41('0x54')]({'revision':this[_0x7c41('0xf5')],'from':_0x52bd02,'to':_0x52bd02});_0x4cf751[_0x7c41('0xbc')]=[],_0x4cf751[_0x7c41('0x49')]=[],_0x4cf751['id']=this['currentRevision']['id'],this[_0x7c41('0xf5')]['_update'](_0x4cf751,!0x0),delete _0x4cf751[_0x7c41('0xbc')],_0x4301ac[_0x7c41('0x6d')](_0x4cf751);}_0x33ff8b['creatorId']=this[_0x7c41('0x8d')][_0x7c41('0xa')]['get'](_0x7c41('0x6c'))['me']['id'],_0x33ff8b[_0x7c41('0x3a')]=_0x33ff8b[_0x7c41('0x3a')]||null,_0x33ff8b['id']=_0x33ff8b['id']||_0x3a9d44(),_0x33ff8b={..._0x33ff8b,..._0x417229};const _0x17ff11=this[_0x7c41('0x24')](_0x33ff8b);_0x4301ac['push'](_0x33ff8b);const _0x345e62=this[_0x7c41('0x2b')][_0x7c41('0xf4')](_0x17ff11);if(0x0!==_0x345e62){const _0x20203f=this[_0x7c41('0x2b')]['getRevision'](_0x345e62-0x1);if(_0x20203f['fromVersion']!==_0x52bd02){const _0x332678=this[_0x7c41('0x31')]['getData'](_0x52bd02,_0x20203f[_0x7c41('0xc5')]),_0x3d867d={'id':_0x20203f['id'],'diffData':_0x332678[_0x7c41('0x78')],'authorsIds':_0x332678[_0x7c41('0x49')],'authors':_0x332678[_0x7c41('0x49')][_0x7c41('0xd1')](_0x131ec8=>this[_0x7c41('0x8d')]['plugins'][_0x7c41('0x12')](_0x7c41('0x6c'))[_0x7c41('0xab')](_0x131ec8)),'fromVersion':_0x52bd02};_0x20203f===this[_0x7c41('0xf5')]&&(_0x3d867d[_0x7c41('0x5b')]=new Date(_0x33ff8b[_0x7c41('0x5b')][_0x7c41('0xde')]()+0xa)),_0x20203f['_update'](_0x3d867d,!0x0),delete _0x3d867d['authors'],_0x4301ac[_0x7c41('0x6d')](_0x3d867d);}}if(this[_0x7c41('0x3d')]){for(const _0x526772 of _0x4301ac)this['_bufferUpdate'](_0x526772['id'],_0x526772,!0x0);this[_0x7c41('0xe5')]();}return _0x17ff11;}[_0x7c41('0x24')](_0xbfba2d){const _0x4607bb=this[_0x7c41('0x2b')]['createRevision'](_0xbfba2d);return this[_0x7c41('0x3d')]&&_0x4607bb['on'](_0x7c41('0x9b'),(_0x2e5d96,_0x5e4ffc,_0x4eb0c0)=>{_0x4eb0c0||(this[_0x7c41('0xa7')](_0x5e4ffc['id'],_0x5e4ffc,!0x0),this[_0x7c41('0xe5')]());}),this[_0x7c41('0x2b')]['addRevision'](_0x4607bb,this[_0x7c41('0x21')](_0x4607bb)),_0x4607bb;}async[_0x7c41('0xaa')](_0x1636fc){await this[_0x7c41('0x82')](_0x1636fc);const _0xd22061={};for(const _0x2ae7cc in _0x1636fc[_0x7c41('0x78')]){if(_0x1636fc['diffData'][_0x2ae7cc]['attachChange']&&!_0x1636fc[_0x7c41('0x78')][_0x2ae7cc][_0x7c41('0x29')][_0x7c41('0x94')])continue;const _0x44f9c4=this[_0x7c41('0xa5')](JSON[_0x7c41('0xbb')](_0x1636fc[_0x7c41('0x78')][_0x2ae7cc]['insertions'])),_0x20a395=this[_0x7c41('0x8d')]['editing'][_0x7c41('0x7f')][_0x7c41('0x4e')],_0x6f2741=new _0x1ee88d(_0x20a395,_0x44f9c4[_0x7c41('0xd1')](_0x2d9c42=>J(_0x2d9c42,this[_0x7c41('0x8d')])));this[_0x7c41('0x8d')][_0x7c41('0xae')][_0x7c41('0x32')]['useFillerType'](_0x7c41('0x62')),_0xd22061[_0x2ae7cc]=this['editor']['data'][_0x7c41('0x32')][_0x7c41('0x63')](_0x6f2741),this[_0x7c41('0x8d')][_0x7c41('0xae')]['processor'][_0x7c41('0x60')](_0x7c41('0x6b'));}return _0xd22061;}async['getRevisionRootsAttributes'](_0x269de4){await this[_0x7c41('0x82')](_0x269de4);const _0x9e5f12={};for(const _0x18b571 in _0x269de4['diffData'])_0x269de4[_0x7c41('0x78')][_0x18b571][_0x7c41('0x29')]&&!_0x269de4[_0x7c41('0x78')][_0x18b571]['attachChange'][_0x7c41('0x94')]||(_0x9e5f12[_0x18b571]=_0x269de4[_0x7c41('0x78')][_0x18b571]['attributesAfter']||{});return _0x9e5f12;}['sendBufferedUpdates'](){if(0x0===this[_0x7c41('0xe8')][_0x7c41('0x80')])return;if(this[_0x7c41('0x44')])return;let _0x1e16cc=Array[_0x7c41('0x1a')](this[_0x7c41('0xe8')][_0x7c41('0x6f')]());this[_0x7c41('0xe8')][_0x7c41('0x66')]();for(let _0x1a3439=0x0;_0x1a3439<_0x1e16cc[_0x7c41('0x25')];_0x1a3439++){const _0x301621=_0x1e16cc[_0x1a3439];let _0x2ef5df=!0x1;for(const _0x2bb5f6 of Object[_0x7c41('0xa3')](_0x301621))void 0x0===_0x301621[_0x2bb5f6]?delete _0x301621[_0x2bb5f6]:'id'!==_0x2bb5f6&&(_0x2ef5df=!0x0);_0x2ef5df||(_0x1e16cc[_0x1a3439]=null);}if(_0x1e16cc=_0x1e16cc[_0x7c41('0x42')](_0x403a86=>null!==_0x403a86),!_0x1e16cc['length'])return;for(let _0x13361a=0x0;_0x13361a<_0x1e16cc[_0x7c41('0x25')];_0x13361a++){const _0xa62abe=_0x1e16cc[_0x13361a];void 0x0!==_0xa62abe['fromVersion']&&void 0x0===_0xa62abe[_0x7c41('0xc5')]&&(_0xa62abe[_0x7c41('0xc5')]=this[_0x7c41('0x2b')]['getRevision'](_0xa62abe['id'])[_0x7c41('0xc5')]),void 0x0!==_0xa62abe[_0x7c41('0xc5')]&&void 0x0===_0xa62abe['fromVersion']&&(_0xa62abe['fromVersion']=this['repository'][_0x7c41('0x3b')](_0xa62abe['id'])[_0x7c41('0xd3')]);}const _0x30be03=this[_0x7c41('0x8d')]['config'][_0x7c41('0x12')]('collaboration.channelId');this[_0x7c41('0x44')]=!0x0,this[_0x7c41('0x95')](),this[_0x7c41('0x3d')][_0x7c41('0xc8')](_0x1e16cc,_0x30be03)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3ce109=>{if(_0x3ce109)for(const _0x2adec9 of _0x3ce109)this[_0x7c41('0x9f')]({'id':_0x2adec9['id'],'createdAt':_0x2adec9[_0x7c41('0x5b')]});this[_0x7c41('0x83')](),this[_0x7c41('0xe5')]();});}['_replaceEditorDataWithRevisionData'](_0x2c5b07,_0xa69467){let _0xd0583b=this[_0x7c41('0x8d')][_0x7c41('0xcc')]['get'](_0x7c41('0xc0')),_0x1bccb3=this[_0x7c41('0x8d')][_0x7c41('0xcc')][_0x7c41('0x12')](_0x7c41('0xf'));if(void 0x0===_0xd0583b){_0xd0583b={};for(const _0x3a6e6a of this['editor'][_0x7c41('0x57')][_0x7c41('0x4e')][_0x7c41('0x30')]())_0xd0583b[_0x3a6e6a]='';}if('string'==typeof _0xd0583b&&(_0xd0583b={'main':_0xd0583b}),void 0x0===_0x1bccb3){_0x1bccb3={};for(const _0x4ec625 of this['editor']['model'][_0x7c41('0x4e')][_0x7c41('0x30')]())_0x1bccb3[_0x4ec625]={};}let _0x5c1443=!0x1;const _0x7cbae6=Object[_0x7c41('0xa3')](_0xd0583b),_0x3b3e52=Object[_0x7c41('0xa3')](_0x2c5b07);for(const _0xb2a25d of _0x7cbae6){if(_0xd0583b[_0xb2a25d]!==_0x2c5b07[_0xb2a25d]&&''!==_0xd0583b[_0xb2a25d][_0x7c41('0x23')]()){_0x5c1443=!0x0;break;}if(!_0x42fc09(_0x1bccb3[_0xb2a25d],_0xa69467[_0xb2a25d])&&Object[_0x7c41('0xa3')](_0x1bccb3[_0xb2a25d])['length']>0x0){_0x5c1443=!0x0;break;}}_0x5c1443||(_0x5c1443=_0x3b3e52[_0x7c41('0xea')](_0x4f0dfb=>!this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x4e')][_0x7c41('0x89')](_0x4f0dfb))),_0x5c1443&&_0x56d67b(_0x7c41('0xa6'),{'editorData':_0xd0583b,'editorRootsAttributes':_0x1bccb3,'revisionData':_0x2c5b07,'revisionRootsAttributes':_0xa69467}),this[_0x7c41('0x8d')]['config']['set'](_0x7c41('0xc0'),_0x2c5b07),this[_0x7c41('0x8d')][_0x7c41('0xcc')][_0x7c41('0x5f')](_0x7c41('0xf'),_0xa69467);}[_0x7c41('0x95')](){if(!this[_0x7c41('0x0')]){const _0x475237=this[_0x7c41('0x8d')][_0x7c41('0xa')][_0x7c41('0x12')](_0x7c41('0x2c'));this[_0x7c41('0x0')]=_0x475237['add'](_0x73fcda(this[_0x7c41('0x8d')][_0x7c41('0xa9')],_0x7c41('0xdc')));}}[_0x7c41('0x83')](){this[_0x7c41('0x0')]&&(this['editor']['plugins'][_0x7c41('0x12')]('PendingActions')[_0x7c41('0xb0')](this[_0x7c41('0x0')]),this[_0x7c41('0x0')]=null);}[_0x7c41('0x21')](_0x5b9b44){const _0x3b9e26=this[_0x7c41('0x2b')]['getRevisions']();_0x3b9e26[_0x7c41('0xcd')]();let _0x1b41fd=0x0;for(;_0x1b41fd<_0x3b9e26[_0x7c41('0x25')];){const _0x3fbfe5=_0x3b9e26[_0x1b41fd];if(_0x3fbfe5===this[_0x7c41('0xf5')]){_0x1b41fd++;continue;}if(_0x3fbfe5['id']===this['_initialRevisionId'])break;const _0x571fe9=_0x5b9b44[_0x7c41('0xc5')]-_0x3fbfe5[_0x7c41('0xc5')]||_0x5b9b44[_0x7c41('0xd3')]-_0x3fbfe5[_0x7c41('0xd3')];if(_0x571fe9>0x0)break;if(_0x571fe9<0x0)_0x1b41fd++;else{if(!_0x5b9b44[_0x7c41('0x7')]&&_0x3fbfe5['creator'])break;if(_0x3fbfe5[_0x7c41('0x7')]||!_0x5b9b44[_0x7c41('0x7')]){if(_0x5b9b44['createdAt']>_0x3fbfe5[_0x7c41('0x5b')])break;_0x1b41fd++;}else _0x1b41fd++;}}return _0x1b41fd;}[_0x7c41('0x9f')](_0x4997a3){const _0x509ad8=this[_0x7c41('0x2b')]['getRevision'](_0x4997a3['id']);if(_0x4997a3['createdAt']&&(_0x4997a3[_0x7c41('0x5b')]=new Date(_0x4997a3[_0x7c41('0x5b')])),_0x4997a3[_0x7c41('0x49')]){const _0x496315=this['editor']['plugins']['get'](_0x7c41('0x6c'));_0x4997a3[_0x7c41('0xbc')]=_0x4997a3[_0x7c41('0x49')]['map'](_0x49a78e=>_0x496315['getUser'](_0x49a78e));}_0x509ad8[_0x7c41('0x9b')](_0x4997a3,!0x0);}[_0x7c41('0x54')]({revision:_0xd99abb=null,from:_0x2a2453=null,to:_0xfe57b0=null}){_0x2a2453=null!==_0x2a2453?_0x2a2453:_0xd99abb[_0x7c41('0xd3')],_0xfe57b0=null!==_0xfe57b0?_0xfe57b0:_0xd99abb['toVersion'];const _0x432a62=this[_0x7c41('0x31')]['getData'](_0x2a2453,_0xfe57b0),_0x4c4261={'diffData':_0x432a62[_0x7c41('0x78')],'authorsIds':_0x432a62[_0x7c41('0x49')],'fromVersion':_0x2a2453,'toVersion':_0xfe57b0};if(!_0xd99abb||_0xfe57b0!==_0xd99abb[_0x7c41('0xc5')]){const _0x30b3d4=_0xfe57b0-0x1,_0x1fd6e7=this[_0x7c41('0xee')][_0x7c41('0xa8')]['getOperation'](_0x30b3d4);_0x4c4261[_0x7c41('0x5b')]=_0x1fd6e7&&_0x1fd6e7[_0x7c41('0x5b')]||new Date();}if(this[_0x7c41('0xb3')]&&_0x2a2453===this[_0x7c41('0xb3')][_0x7c41('0xd3')])for(const _0x6d670e of this[_0x7c41('0xb3')]['authors'])_0x4c4261[_0x7c41('0x49')][_0x7c41('0x69')](_0x6d670e['id'])||_0x4c4261[_0x7c41('0x49')][_0x7c41('0x6d')](_0x6d670e['id']);return _0x4c4261;}[_0x7c41('0x82')](_0xe25a1f){if(!_0xe25a1f||_0xe25a1f[_0x7c41('0x78')])return Promise[_0x7c41('0xcf')]();{const _0x288825=this[_0x7c41('0x8d')][_0x7c41('0xcc')]['get']('collaboration.channelId');return this[_0x7c41('0x3d')][_0x7c41('0x3b')]({'channelId':_0x288825,'revisionId':_0xe25a1f['id']})[_0x7c41('0xd4')](_0x4200dd=>{_0xe25a1f[_0x7c41('0x78')]=_0x4200dd['diffData'];});}}['_bufferUpdate'](_0x4cc393,_0x10b49e,_0x16bd26){if(this[_0x7c41('0xe8')][_0x7c41('0x59')](_0x4cc393)){const _0x366b6a=this[_0x7c41('0xe8')][_0x7c41('0x12')](_0x4cc393);_0x10b49e=_0x16bd26?{..._0x366b6a,..._0x10b49e}:{..._0x10b49e,..._0x366b6a};}this[_0x7c41('0xe8')][_0x7c41('0x5f')](_0x4cc393,_0x10b49e);}[_0x7c41('0x90')](_0x4e99e2){const _0x1e45ff=this[_0x7c41('0x2b')]['getRevisions']();_0x1e45ff[_0x7c41('0xcd')](),_0x1e45ff['shift']();const _0x4e8be7=_0x1e45ff[_0x7c41('0x79')](_0x272ff1=>_0x272ff1[_0x7c41('0xc5')]<=_0x4e99e2)[_0x7c41('0xc5')];return _0x4e8be7<this[_0x7c41('0x9c')]?this['_startingVersion']:_0x4e8be7;}[_0x7c41('0xdd')](_0x44b175){const _0x45279b=this[_0x7c41('0x2b')][_0x7c41('0x3b')](this[_0x7c41('0x2b')]['length']-0x1);if(_0x45279b)this[_0x7c41('0x26')]=_0x45279b['id'];else{const _0x2099ea=!this[_0x7c41('0x8d')]['model']['document'][_0x7c41('0x5a')][_0x7c41('0x79')](_0x41b171=>this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x3e')](_0x41b171)),_0x100d3d=this[_0x7c41('0x8d')]['plugins'][_0x7c41('0x12')](_0x7c41('0x6c'))['me']['id'],_0x4b44ce=_0x73fcda(this[_0x7c41('0x8d')][_0x7c41('0xa9')],_0x2099ea?'Empty\x20document':_0x7c41('0x22'));this['_makeRevision']({'from':_0x44b175,'to':_0x44b175,'id':this[_0x7c41('0x26')],'name':_0x4b44ce,'creatorId':_0x100d3d});}}[_0x7c41('0xc1')](_0x401cce){const _0x37af35=this[_0x7c41('0xee')][_0x7c41('0x27')]();this['currentRevision']=this[_0x7c41('0x2b')][_0x7c41('0x3b')](_0x37af35),this[_0x7c41('0xf5')]||(this['currentRevision']=this[_0x7c41('0xc2')]({'from':_0x401cce,'to':_0x401cce,'id':_0x37af35,'name':'','creatorId':null}));}[_0x7c41('0xc2')]({name:_0x345c50,from:_0xc9b80a,to:_0x3f0077,creatorId:_0x56f820,id:_0x8645ed}){const _0x151a2f=this[_0x7c41('0x54')]({'from':_0xc9b80a,'to':_0x3f0077});_0x151a2f[_0x7c41('0x3a')]=_0x345c50,_0x151a2f['creatorId']=_0x56f820,_0x151a2f['id']=_0x8645ed;const _0x351f4c=this[_0x7c41('0x24')](_0x151a2f);return this[_0x7c41('0x3d')]&&this[_0x7c41('0xa7')](_0x151a2f['id'],_0x151a2f,!0x0),_0x351f4c;}[_0x7c41('0x1')](){this[_0x7c41('0x8d')][_0x7c41('0x8c')][_0x7c41('0xd9')](_0x7c41('0xce'))['markerToData']({'model':_0x7c41('0xf9')});}['_removeRevisionMarkers'](_0x46379a){return(_0x46379a=_0x46379a[_0x7c41('0x42')](_0x318972=>!_0x318972['name']||_0x7c41('0xa1')!==_0x318972[_0x7c41('0x3a')]&&_0x7c41('0x4')!==_0x318972[_0x7c41('0x3a')]))[_0x7c41('0x33')](_0x2f1c96=>{_0x7c41('0x61')!=typeof _0x2f1c96&&(_0x2f1c96[_0x7c41('0xc4')]=this[_0x7c41('0xa5')](_0x2f1c96['children']),_0x2f1c96[_0x7c41('0x17')]=_0x2f1c96[_0x7c41('0x17')][_0x7c41('0x42')](_0x315d4d=>!_0x315d4d[0x0][_0x7c41('0xef')]('data-revision-')));}),_0x46379a;}}function J(_0x22ccd1,_0x467977){const _0x221d31=_0x467977[_0x7c41('0xa2')][_0x7c41('0x7f')][_0x7c41('0x4e')];if('string'==typeof _0x22ccd1)return new _0x16e3d3(_0x221d31,_0x22ccd1);{const _0x106e94=_0x22ccd1[_0x7c41('0xc4')][_0x7c41('0xd1')](_0x461e72=>J(_0x461e72,_0x467977));return new(B[_0x22ccd1[(_0x7c41('0xd2'))]]||_0x3e735f)(_0x221d31,_0x22ccd1[_0x7c41('0x3a')],_0x22ccd1[_0x7c41('0x17')],_0x106e94);}}class H{constructor(_0x33e8c9){this[_0x7c41('0x8d')]=_0x33e8c9,this['_savedMetaData']=new Map(),this[_0x7c41('0x9')]=-0x1,this[_0x7c41('0x11')]=-0x1,this[_0x7c41('0x47')]=new Map(),this[_0x7c41('0xb2')]=new Map(),this[_0x7c41('0xe')]=new Map(),this[_0x7c41('0xa0')]=new Map(),this[_0x7c41('0xb5')]=new Map(),this[_0x7c41('0xaf')]=new Map(),this[_0x7c41('0xf3')]=new Map(),this['_touched']=new Map(),this[_0x7c41('0x9d')]=new Map(),this[_0x7c41('0xb')]=new Map(),this[_0x7c41('0x1f')]=0x1;}[_0x7c41('0x46')](_0x578982){this[_0x7c41('0x88')]=_0x578982;const _0x44f810=new Map(),_0x2f586f=new Map(),_0x246140=this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x4e')][_0x7c41('0x5a')][_0x7c41('0xd1')](_0x5039f0=>_0x5039f0[_0x7c41('0x2e')]);for(const _0x118c40 of _0x246140){const _0x30ef35=this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x4e')][_0x7c41('0x89')](_0x118c40),_0x4dde97=q(_0x30ef35);_0x44f810[_0x7c41('0x5f')](_0x118c40,_0x4dde97),_0x2f586f[_0x7c41('0x5f')](_0x118c40,Object['fromEntries'](_0x30ef35['getAttributes']()));}const _0x21b0c8=Array[_0x7c41('0x1a')](this[_0x7c41('0x8d')]['model']['markers'])[_0x7c41('0xd1')](_0x234c97=>[_0x234c97[_0x7c41('0x3a')],_0x234c97[_0x7c41('0x2f')]()]),_0x69c552=this[_0x7c41('0x88')][_0x7c41('0x7b')];this[_0x7c41('0xc3')](_0x69c552,_0x44f810,_0x21b0c8,_0x2f586f),this[_0x7c41('0xdf')]=this[_0x7c41('0x1f')];const _0x2a5cf1=new Map(),_0x541d02=new Map();for(const _0xd08703 of _0x246140){const _0x467e3a=G(_0xd08703);_0x2a5cf1['set'](_0xd08703,_0x467e3a),_0x541d02[_0x7c41('0x5f')](_0xd08703,{});}this[_0x7c41('0xc3')](Number[_0x7c41('0x20')],_0x2a5cf1,[],_0x541d02);}[_0x7c41('0x48')](_0x1622d9,_0x109272){if(this[_0x7c41('0x9')]===_0x1622d9&&this['_lastTo']<=_0x109272)this[_0x7c41('0xbf')][_0x7c41('0x80')]>0x1&&this[_0x7c41('0x40')](this['_lastTo']),this[_0x7c41('0x55')](this[_0x7c41('0x11')],_0x109272,!0x0);else{if(!this[_0x7c41('0xbf')][_0x7c41('0x59')](_0x1622d9)){const _0x34bf36=this[_0x7c41('0x91')](_0x1622d9);this['_calculateMetaData'](_0x34bf36,_0x1622d9,!0x1);}this[_0x7c41('0xc9')](_0x1622d9,_0x109272,!0x0);}return this[_0x7c41('0x9')]=_0x1622d9,this[_0x7c41('0x11')]=_0x109272,this[_0x7c41('0x45')]();}[_0x7c41('0x38')](_0x41baec){this[_0x7c41('0xe2')](),this[_0x7c41('0x9')]=_0x41baec['fromVersion'],this[_0x7c41('0x11')]=_0x41baec[_0x7c41('0xc5')];for(const _0x1da243 in _0x41baec[_0x7c41('0x78')]){const _0x19e07f=_0x41baec[_0x7c41('0x78')][_0x1da243][_0x7c41('0x29')],_0x5e023d=_0x590a64(_0x41baec[_0x7c41('0x78')][_0x1da243][_0x7c41('0xca')])||{},_0x124609=this[_0x7c41('0xb8')](_0x41baec[_0x7c41('0x78')][_0x1da243][_0x7c41('0xed')]);_0x124609['rootName']=_0x1da243,_0x124609[_0x7c41('0x14')]=!_0x19e07f||!_0x19e07f['isAttached'],_0x124609[_0x7c41('0x94')]=()=>_0x124609[_0x7c41('0x14')],this['_baseRoots'][_0x7c41('0x5f')](_0x1da243,_0x124609),this[_0x7c41('0xb5')][_0x7c41('0x5f')](_0x1da243,_0x5e023d),_0x19e07f&&this[_0x7c41('0xb')][_0x7c41('0x5f')](_0x1da243,_0x19e07f);const _0x35c441=this[_0x7c41('0x4c')](_0x124609);this[_0x7c41('0xf3')][_0x7c41('0x5f')](_0x1da243,_0x35c441);for(const [_0xf65b1c,_0xfce9c2]of _0x124609['markers']){if(!_0xf65b1c[_0x7c41('0xef')]('revision:'))continue;const _0xc2d490=_0xf65b1c[_0x7c41('0x52')](':')[0x2];for(const _0x15e928 of _0xfce9c2[_0x7c41('0xd6')]({'singleCharacters':!0x0})){const _0x1d36dc=this[_0x7c41('0x56')](_0x15e928),_0x8d1eb=_0x7c41('0x71')==_0x15e928[_0x7c41('0xd2')]?_0x15e928[_0x7c41('0x41')]['path'][_0x7c41('0xe7')](0x0,-0x1):_0x15e928['previousPosition'][_0x7c41('0x65')],_0x480743=_0x35c441[_0x7c41('0x85')](_0x8d1eb)[_0x7c41('0x8')](_0x1d36dc);this['_touched'][_0x7c41('0x5f')](_0x480743,{'userId':_0xc2d490});}}}this[_0x7c41('0xdf')]=this[_0x7c41('0x1f')];const _0x1f8e92=[...Array(this[_0x7c41('0x1f')])[_0x7c41('0xa3')]()][_0x7c41('0xe7')](0x1)['filter'](_0xe1f548=>!this[_0x7c41('0x8f')][_0x7c41('0x59')](_0xe1f548));let _0x5d5bde=0x0;const _0x5111b2=new Map();for(const _0x2251c2 in _0x41baec[_0x7c41('0x78')]){const _0x10eeee=_0x41baec[_0x7c41('0x78')][_0x2251c2][_0x7c41('0x29')],_0x1d6483=_0x590a64(_0x41baec[_0x7c41('0x78')][_0x2251c2][_0x7c41('0x2a')])||{},_0x5e41ea=this[_0x7c41('0xb8')](_0x41baec['diffData'][_0x2251c2][_0x7c41('0x9e')]);_0x5e41ea[_0x7c41('0x2e')]=_0x2251c2,_0x5e41ea['_isAttached']=!_0x10eeee||_0x10eeee[_0x7c41('0x94')],_0x5e41ea['isAttached']=()=>_0x5e41ea['_isAttached'],this['_diffRoots'][_0x7c41('0x5f')](_0x2251c2,_0x5e41ea),this[_0x7c41('0xe')][_0x7c41('0x5f')](_0x2251c2,_0x1d6483);const _0x147df9=this[_0x7c41('0x4c')](_0x5e41ea,Number['NEGATIVE_INFINITY']);this[_0x7c41('0xaf')][_0x7c41('0x5f')](_0x2251c2,_0x147df9),_0x5111b2[_0x7c41('0x5f')](_0x2251c2,_0x5e41ea[_0x7c41('0x94')]()?_0x1d6483:{});for(const [_0x59f8de,_0x21238b]of _0x5e41ea[_0x7c41('0xd')]){if(!_0x59f8de['startsWith'](_0x7c41('0x1e')))continue;const _0xc74ed1=_0x59f8de[_0x7c41('0x52')](':')[0x2];for(const _0x2eed13 of _0x21238b[_0x7c41('0xd6')]({'singleCharacters':!0x0})){const _0x380268=this['_getVidAttributeName'](_0x2eed13),_0x3c9743=this[_0x7c41('0x1f')]++,_0x4ad40a='elementEnd'==_0x2eed13[_0x7c41('0xd2')]?_0x2eed13[_0x7c41('0x41')]['path'][_0x7c41('0xe7')](0x0,-0x1):_0x2eed13['previousPosition'][_0x7c41('0x65')];_0x147df9[_0x7c41('0x85')](_0x4ad40a)['_setAttribute'](_0x380268,_0x3c9743),this['_touched']['set'](_0x3c9743,{'userId':_0xc74ed1});}}for(const _0x5f144a of this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0xe1')](_0x5e41ea)[_0x7c41('0xd6')]({'singleCharacters':!0x0})){const _0x3db3ea=this[_0x7c41('0x56')](_0x5f144a),_0x428099=_0x7c41('0x71')==_0x5f144a[_0x7c41('0xd2')]?_0x5f144a['previousPosition'][_0x7c41('0x65')][_0x7c41('0xe7')](0x0,-0x1):_0x5f144a[_0x7c41('0x41')][_0x7c41('0x65')],_0x120605=_0x147df9[_0x7c41('0x85')](_0x428099);_0x120605[_0x7c41('0x8')](_0x3db3ea)>0x0||_0x120605[_0x7c41('0x1b')](_0x3db3ea,_0x1f8e92[_0x5d5bde++]);}for(const [_0x482a08,_0x11247d]of _0x5e41ea['markers'])_0x482a08['startsWith'](_0x7c41('0x1e'))||this[_0x7c41('0x47')]['set'](_0x482a08,_0x11247d);}const _0x333d62=G(_0x7c41('0xdb'));this['_baseRoots'][_0x7c41('0x5f')]('$graveyard',_0x333d62),this[_0x7c41('0xf3')]['set']('$graveyard',this['_makeIdsRoot'](_0x333d62,0x1));const _0x56ca0d=G(_0x7c41('0xdb'));this[_0x7c41('0xb2')][_0x7c41('0x5f')](_0x7c41('0xdb'),_0x56ca0d),this[_0x7c41('0xaf')][_0x7c41('0x5f')]('$graveyard',this[_0x7c41('0x4c')](_0x56ca0d,0x1));const _0x5218a0=Array[_0x7c41('0x1a')](this['_diffRoots'])[_0x7c41('0xd1')](([_0xfeea69,_0x2cc5fa])=>[_0xfeea69,q(_0x2cc5fa)]);this[_0x7c41('0xc3')](this[_0x7c41('0x11')],_0x5218a0,this[_0x7c41('0x47')],_0x5111b2);}['_makeModelFromViewString'](_0x1e48e7){const _0x1d7117=JSON[_0x7c41('0xbb')](_0x1e48e7),_0x375d42=this[_0x7c41('0x8d')][_0x7c41('0xa2')]['view'][_0x7c41('0x4e')],_0x4bae0a=new _0x1ee88d(_0x375d42,_0x1d7117[_0x7c41('0xd1')](_0x1be181=>J(_0x1be181,this[_0x7c41('0x8d')])));return this[_0x7c41('0x8d')][_0x7c41('0xae')][_0x7c41('0x84')](_0x4bae0a);}[_0x7c41('0xc3')](_0x837986,_0x2d0e01,_0x5345d8,_0x1bf2fa){const _0x15070a=new Map(_0x2d0e01),_0x49234e=new Map(_0x590a64(_0x1bf2fa)),_0x49f73f=new Map();for(const [_0x5ece6b,_0x94e91d]of _0x5345d8)_0x49f73f[_0x7c41('0x5f')](_0x5ece6b,{'start':_0x94e91d[_0x7c41('0x16')][_0x7c41('0xbd')](),'end':_0x94e91d['end'][_0x7c41('0xbd')](),'rootName':_0x94e91d['root']['rootName']});this[_0x7c41('0xbf')][_0x7c41('0x5f')](_0x837986,{'roots':_0x15070a,'markers':_0x49f73f,'rootsAttributes':_0x49234e});}['_removeMetaData'](_0x596d44){this[_0x7c41('0xbf')][_0x7c41('0x50')](_0x596d44);}[_0x7c41('0x4f')](){this[_0x7c41('0xe2')](),this[_0x7c41('0x9')]=-0x1,this[_0x7c41('0x11')]=-0x1,this[_0x7c41('0xbf')]['clear'](),this[_0x7c41('0x46')](this[_0x7c41('0x88')]);}[_0x7c41('0xe2')](){this[_0x7c41('0x8f')]['clear'](),this[_0x7c41('0x9d')][_0x7c41('0x66')](),this[_0x7c41('0xb')]['clear'](),this[_0x7c41('0xb2')][_0x7c41('0x66')](),this['_diffRootsAttributes']['clear'](),this[_0x7c41('0xa0')][_0x7c41('0x66')](),this['_baseRootsAttributes'][_0x7c41('0x66')](),this[_0x7c41('0xaf')][_0x7c41('0x66')](),this['_baseIdsRoots']['clear'](),this[_0x7c41('0x47')][_0x7c41('0x66')](),this[_0x7c41('0x1f')]=0x1,this[_0x7c41('0xdf')]=this[_0x7c41('0x1f')];}[_0x7c41('0x4c')](_0x190073,_0x3cb2f9=null){let _0x29210e=null;_0x190073['is'](_0x7c41('0x92'))||(_0x29210e=new _0x26a125(_0x190073[_0x7c41('0x3a')],{'vid_start':null===_0x3cb2f9?this[_0x7c41('0x1f')]++:_0x3cb2f9++}));const _0x1b122e=[];for(const _0x4c51a7 of _0x190073[_0x7c41('0x81')]())if(_0x4c51a7['is'](_0x7c41('0x67'))){_0x1b122e[_0x7c41('0x6d')](this[_0x7c41('0x4c')](_0x4c51a7,_0x3cb2f9));const _0xed48a4=_0x1b122e[_0x1b122e[_0x7c41('0x25')]-0x1];null!==_0x3cb2f9&&(_0x3cb2f9=_0xed48a4['is'](_0x7c41('0x67'),'$text')?_0xed48a4['getAttribute'](_0x7c41('0x7e'))+0x1:_0xed48a4['getAttribute'](_0x7c41('0xd5'))+0x1);}else for(let _0x2d3b49=0x0;_0x2d3b49<_0x4c51a7[_0x7c41('0x99')];_0x2d3b49++)_0x1b122e[_0x7c41('0x6d')](new _0x26a125('$text',{'vid':null===_0x3cb2f9?this[_0x7c41('0x1f')]++:_0x3cb2f9++}));if(_0x190073['is'](_0x7c41('0x92'))){const _0x1dfa99=G(_0x190073[_0x7c41('0x2e')]);return _0x1dfa99[_0x7c41('0x19')](0x0,_0x1b122e),_0x1dfa99;}return _0x29210e['_setAttribute'](_0x7c41('0xd5'),null===_0x3cb2f9?this['_revisionId']++:_0x3cb2f9++),_0x29210e[_0x7c41('0x19')](0x0,_0x1b122e),_0x29210e;}[_0x7c41('0xc9')](_0x1cebe8,_0x55d0f0,_0xe024d6){this[_0x7c41('0xe2')]();const {roots:_0x4be6b2,markers:_0x545bb5,rootsAttributes:_0x272b23}=this[_0x7c41('0xbf')][_0x7c41('0x12')](_0x1cebe8);this[_0x7c41('0xa0')]=new Map(_0x4be6b2),this[_0x7c41('0xb5')]=new Map(_0x590a64(_0x272b23));for(const [_0x2de106,_0x9dbaed]of this[_0x7c41('0xa0')])if(_0x7c41('0xdb')!==_0x2de106&&(this[_0x7c41('0xb2')][_0x7c41('0x5f')](_0x2de106,q(_0x9dbaed)),this[_0x7c41('0xe')]=new Map(_0x590a64(_0x272b23)),_0xe024d6)){const _0x2d37d7=this[_0x7c41('0x1f')];this['_idsRoots']['set'](_0x2de106,this[_0x7c41('0x4c')](_0x9dbaed)),this[_0x7c41('0xf3')][_0x7c41('0x5f')](_0x2de106,this[_0x7c41('0x4c')](_0x9dbaed,_0x2d37d7));}this[_0x7c41('0xdf')]=this[_0x7c41('0x1f')],this[_0x7c41('0xb2')]['set'](_0x7c41('0xdb'),q(this['_baseRoots'][_0x7c41('0x12')](_0x7c41('0xdb')))),_0xe024d6&&this[_0x7c41('0xaf')]['set'](_0x7c41('0xdb'),this['_makeIdsRoot'](this[_0x7c41('0xa0')][_0x7c41('0x12')](_0x7c41('0xdb'))));for(const [_0x26e4cb,_0x1fb9b6]of _0x545bb5){const _0x1668f0=this[_0x7c41('0xa0')][_0x7c41('0x12')](_0x1fb9b6[_0x7c41('0x2e')]),_0x3b14bb=this[_0x7c41('0xb2')][_0x7c41('0x12')](_0x1fb9b6['rootName']),_0x42c0b3=new _0x34fae3(this[_0x7c41('0x6')](_0x1fb9b6[_0x7c41('0x16')],_0x1668f0),this[_0x7c41('0x6')](_0x1fb9b6['end'],_0x1668f0)),_0x141ab0=this[_0x7c41('0x51')](_0x42c0b3,_0x3b14bb);_0x1668f0[_0x7c41('0xd')][_0x7c41('0x5f')](_0x26e4cb,_0x42c0b3),this[_0x7c41('0x47')][_0x7c41('0x5f')](_0x26e4cb,_0x141ab0);}this[_0x7c41('0x55')](_0x1cebe8,_0x55d0f0,_0xe024d6);}[_0x7c41('0x55')](_0x321815,_0x21c26e,_0x4ac605){for(const _0x4fe269 of this[_0x7c41('0x88')]['getOperations'](_0x321815,_0x21c26e))this[_0x7c41('0xc')](_0x4fe269,_0x4ac605);for(const _0x42b228 of this[_0x7c41('0xb2')][_0x7c41('0x6f')]())_0x42b228[_0x7c41('0xd')][_0x7c41('0x66')]();for(const [_0x3483a1,_0x8354fc]of this['_markers']){this[_0x7c41('0xb2')][_0x7c41('0x12')](_0x8354fc[_0x7c41('0x64')]['rootName'])[_0x7c41('0xd')]['set'](_0x3483a1,_0x8354fc[_0x7c41('0xbd')]());}const _0x10528c=new Map(),_0x407503=new Map();for(const [_0x4b4dcc,_0x2995e4]of this['_diffRoots'])_0x10528c[_0x7c41('0x5f')](_0x4b4dcc,q(_0x2995e4)),_0x407503['set'](_0x4b4dcc,this[_0x7c41('0xe')][_0x7c41('0x12')](_0x4b4dcc));this[_0x7c41('0xc3')](_0x21c26e,_0x10528c,this[_0x7c41('0x47')],_0x407503);}[_0x7c41('0x91')](_0x244b3b){const _0x26830c=Array[_0x7c41('0x1a')](this['_savedMetaData'][_0x7c41('0xa3')]());_0x26830c[_0x7c41('0x86')]((_0x21397c,_0x41ad8f)=>_0x21397c-_0x41ad8f),_0x26830c[_0x7c41('0xcd')]();for(const _0x2e91e2 of _0x26830c)if(_0x2e91e2<_0x244b3b)return _0x2e91e2;return Number[_0x7c41('0x20')];}[_0x7c41('0x74')](_0xae9941,_0x22e2d4){const _0x170023=Array[_0x7c41('0x1a')](_0x22e2d4[_0x7c41('0xd')])['map'](([_0x2f42d7,_0x126720])=>[_0x2f42d7,this[_0x7c41('0x51')](_0x126720,_0xae9941)]);_0xae9941[_0x7c41('0xd')]=new Map(_0x170023);}[_0x7c41('0xad')](_0x3814af){for(const _0x3f886e of this['_markers'][_0x7c41('0x6f')]()){const _0x19811c=_0x3f886e['getTransformedByOperation'](_0x3814af),_0x3659a5=_0x34fae3[_0x7c41('0xb4')](_0x19811c);_0x3f886e[_0x7c41('0x16')]=_0x3659a5[_0x7c41('0x16')],_0x3f886e[_0x7c41('0x7c')]=_0x3659a5[_0x7c41('0x7c')];}}[_0x7c41('0xc')](_0x1fc110,_0xda69aa){if(_0x7c41('0xe6')==_0x1fc110[_0x7c41('0xd2')]||_0x7c41('0x5d')==_0x1fc110[_0x7c41('0xd2')])return void this[_0x7c41('0x43')](_0x1fc110,_0xda69aa);if('insert'==_0x1fc110['type']){const _0x161caf=_0x1fc110['position'][_0x7c41('0x64')][_0x7c41('0x2e')];this[_0x7c41('0xb2')]['has'](_0x161caf)||(this[_0x7c41('0xb2')]['set'](_0x161caf,G(_0x161caf,!0x0)),this['_diffRootsAttributes']['set'](_0x161caf,{}),_0xda69aa&&this[_0x7c41('0xaf')]['set'](_0x161caf,G(_0x161caf,!0x0)));}else{if(_0x7c41('0x13')==_0x1fc110['type']||_0x7c41('0x15')==_0x1fc110[_0x7c41('0xd2')]||_0x7c41('0x58')==_0x1fc110[_0x7c41('0xd2')])return void this[_0x7c41('0x4b')](_0x1fc110);}const _0x4bc573=this[_0x7c41('0xf1')](_0x1fc110,this[_0x7c41('0xb2')]);if('marker'!==_0x1fc110[_0x7c41('0xd2')]&&(_0x4bc573[_0x7c41('0x2d')](),this[_0x7c41('0xad')](_0x4bc573)),_0xda69aa)switch(_0x4bc573[_0x7c41('0xd2')]){case _0x7c41('0xe0'):this[_0x7c41('0x5')](_0x1fc110);break;case'move':case _0x7c41('0xb0'):case _0x7c41('0xd8'):this[_0x7c41('0xd0')](_0x1fc110);break;case _0x7c41('0x2'):this[_0x7c41('0x8b')](_0x1fc110);break;case'split':this[_0x7c41('0x10')](_0x1fc110);break;case _0x7c41('0x93'):this[_0x7c41('0x68')](_0x1fc110);}}[_0x7c41('0xf1')](_0x5d2736,_0x5a8308){const _0x12f7a9=_0x5d2736[_0x7c41('0xbd')]();return _0x12f7a9[_0x7c41('0x35')]=_0x5d2736[_0x7c41('0x35')],this[_0x7c41('0xda')](_0x12f7a9,_0x5a8308),_0x12f7a9;}[_0x7c41('0x73')](_0x12b024){return _0x12b024['map'](_0x357fee=>{const _0x355919=this[_0x7c41('0x56')](_0x357fee);return Number(_0x357fee['item'][_0x7c41('0x8')](_0x355919));});}['_generateTape'](_0x4f181b,_0x371c1b){if(_0x4f181b['is']('element',_0x7c41('0xb7')))_0x371c1b[_0x7c41('0x6d')]({'item':_0x4f181b,'type':_0x7c41('0xf2')});else{_0x4f181b['is'](_0x7c41('0x67'))&&_0x371c1b['push']({'item':_0x4f181b,'type':_0x7c41('0x18')});for(const _0x163864 of _0x4f181b[_0x7c41('0x81')]())this[_0x7c41('0xba')](_0x163864,_0x371c1b);_0x4f181b['is']('element')&&_0x371c1b[_0x7c41('0x6d')]({'item':_0x4f181b,'type':_0x7c41('0x71')});}return _0x371c1b;}[_0x7c41('0x45')](){const _0x2ca12a=new Map(this[_0x7c41('0x8f')]),_0x3a6a0a=new Map(_0x2ca12a),_0x456ab0=new Map(),_0x4ba08e={'insertions':{},'deletions':{}},_0x424ccf={'insertions':{},'deletions':{}},_0x350faf=new Map(),_0x10d545=new Set([...this[_0x7c41('0xa0')][_0x7c41('0xa3')](),...this['_diffRoots']['keys']()]);_0x10d545[_0x7c41('0x50')]('$graveyard');for(const _0x5be5f3 of _0x10d545){const _0x148a64=this[_0x7c41('0xb2')][_0x7c41('0x12')](_0x5be5f3)||G(_0x5be5f3,!0x1),_0x44b932=this['_baseRoots'][_0x7c41('0x12')](_0x5be5f3)||G(_0x5be5f3,!0x1);_0x148a64['isAttached']()||_0x44b932['isAttached']()?(_0x4ba08e[_0x7c41('0x9e')][_0x5be5f3]=q(_0x148a64),_0x4ba08e[_0x7c41('0xed')][_0x5be5f3]=q(_0x44b932),this['_copyMarkers'](_0x4ba08e[_0x7c41('0xed')][_0x5be5f3],_0x44b932),this[_0x7c41('0x74')](_0x4ba08e[_0x7c41('0x9e')][_0x5be5f3],_0x148a64),_0x424ccf[_0x7c41('0x9e')][_0x5be5f3]=this['_generateTape'](this[_0x7c41('0xaf')][_0x7c41('0x12')](_0x5be5f3),[]),_0x424ccf[_0x7c41('0xed')][_0x5be5f3]=this[_0x7c41('0xba')](this['_baseIdsRoots'][_0x7c41('0x12')](_0x5be5f3)||G(_0x5be5f3,!0x1),[])):_0x10d545[_0x7c41('0x50')](_0x5be5f3);}for(const _0x28e494 of _0x10d545){const _0x3f1cc7=_0x424ccf['insertions'][_0x28e494];for(const _0x54b1fc of _0x3f1cc7){const _0x592acf=this['_getVidAttributeName'](_0x54b1fc),_0x1a5c81=_0x54b1fc[_0x7c41('0x97')][_0x7c41('0x8')](_0x592acf);_0x3a6a0a['delete'](_0x1a5c81),_0x1a5c81>=this[_0x7c41('0xdf')]&&_0x456ab0[_0x7c41('0x5f')](_0x1a5c81,_0x2ca12a[_0x7c41('0x12')](_0x1a5c81));}}for(const _0x16b800 of _0x10d545){const _0x4f21de=_0x424ccf[_0x7c41('0x9e')][_0x16b800],_0x531b6b=this['_getBaseVids'](_0x424ccf[_0x7c41('0xed')][_0x16b800]);let _0x35d397=0x0;for(const _0x5e5858 of _0x4f21de){const _0x2f3e8d=this['_getVidAttributeName'](_0x5e5858),_0x3a9c9b=_0x5e5858[_0x7c41('0x97')][_0x7c41('0x8')](_0x2f3e8d);if(!_0x456ab0[_0x7c41('0x59')](_0x3a9c9b)&&!_0x350faf['has'](_0x3a9c9b)){if(_0x3a6a0a[_0x7c41('0x59')](_0x3a9c9b))_0x35d397++;else{if(_0x3a9c9b!=_0x531b6b[_0x35d397]){const _0x2a6f8f=_0x2ca12a['get'](_0x3a9c9b)||_0x2ca12a['get'](_0x531b6b[_0x35d397]);for(;_0x3a9c9b!=_0x531b6b[_0x35d397];)_0x3a6a0a['has'](_0x531b6b[_0x35d397])||(_0x350faf['set'](_0x531b6b[_0x35d397],_0x2a6f8f),_0x2ca12a[_0x7c41('0x5f')](_0x531b6b[_0x35d397],_0x2a6f8f)),_0x35d397++;}_0x35d397++;}}}}for(const _0x10cc0b of _0x10d545){const _0x4811e1=_0x424ccf[_0x7c41('0x9e')][_0x10cc0b];for(const _0x217579 of _0x4811e1){const _0x218959=this[_0x7c41('0x56')](_0x217579),_0x5ca700=_0x217579['item'][_0x7c41('0x8')](_0x218959);if(_0x350faf[_0x7c41('0x59')](_0x5ca700)){const _0x2ce60f=_0x350faf['get'](_0x5ca700);_0x3a6a0a['has'](_0x5ca700)||_0x3a6a0a[_0x7c41('0x5f')](_0x5ca700,{..._0x2ce60f}),_0x456ab0[_0x7c41('0x5f')](_0x5ca700,{..._0x2ce60f});}}}for(const _0x2d4cb1 of _0x3a6a0a[_0x7c41('0xa3')]())_0x2d4cb1>=this[_0x7c41('0xdf')]&&_0x3a6a0a[_0x7c41('0x50')](_0x2d4cb1);const _0x5c1693=new Map();for(const _0x4cb926 of _0x10d545){let _0x23abbe=_0x424ccf[_0x7c41('0x9e')][_0x4cb926];for(const _0x21aa9e of _0x23abbe)if(_0x21aa9e[_0x7c41('0x97')]['is']('element','tableCell')){const _0x287d4b=this[_0x7c41('0x56')](_0x21aa9e),_0x1cb0e8=_0x21aa9e[_0x7c41('0x97')][_0x7c41('0x8')](_0x287d4b);if(_0x456ab0['has'](_0x1cb0e8)){const _0x2926db=_0x21aa9e[_0x7c41('0x97')][_0x7c41('0x5e')][_0x7c41('0x5e')][_0x7c41('0x8')](_0x7c41('0x6e')),_0x286130=_0x5c1693['get'](_0x2926db)||new Set();_0x286130[_0x7c41('0xf0')](_0x456ab0[_0x7c41('0x12')](_0x1cb0e8)[_0x7c41('0x75')]),_0x5c1693[_0x7c41('0x5f')](_0x2926db,_0x286130);}}_0x23abbe=_0x424ccf['deletions'][_0x4cb926];for(const _0x36d76b of _0x23abbe)if(_0x36d76b[_0x7c41('0x97')]['is']('element',_0x7c41('0x4d'))){const _0x185508=this['_getVidAttributeName'](_0x36d76b),_0xf5420=_0x36d76b[_0x7c41('0x97')][_0x7c41('0x8')](_0x185508);if(_0x3a6a0a[_0x7c41('0x59')](_0xf5420)){const _0x397c89=_0x36d76b[_0x7c41('0x97')]['parent'][_0x7c41('0x5e')][_0x7c41('0x8')]('vid_start'),_0x108934=_0x5c1693[_0x7c41('0x12')](_0x397c89)||new Set();_0x108934[_0x7c41('0xf0')](_0x3a6a0a[_0x7c41('0x12')](_0xf5420)[_0x7c41('0x75')]),_0x5c1693[_0x7c41('0x5f')](_0x397c89,_0x108934);}}for(const _0x6f2c32 of _0x5c1693[_0x7c41('0xa3')]())(_0x456ab0[_0x7c41('0x59')](_0x6f2c32)||_0x3a6a0a[_0x7c41('0x59')](_0x6f2c32))&&_0x5c1693[_0x7c41('0x50')](_0x6f2c32);}for(const _0x1fde96 of _0x10d545){const _0x55690d=_0x424ccf[_0x7c41('0x9e')][_0x1fde96];let _0x40b8ad=null,_0x424b6e=null;for(const _0x543afb of _0x55690d){const _0x16950a=this[_0x7c41('0x56')](_0x543afb),_0x23183b=_0x543afb['item'][_0x7c41('0x8')](_0x16950a),_0x38b757=_0x5c1693['get'](_0x23183b);_0x38b757&&_0x7c41('0x18')==_0x543afb['type']&&(_0x40b8ad=Array[_0x7c41('0x1a')](_0x38b757)[0x0],_0x424b6e=_0x543afb[_0x7c41('0x97')][_0x7c41('0x8')]('vid_end')),_0x40b8ad&&(_0x3a6a0a[_0x7c41('0x5f')](_0x23183b,{'userId':_0x40b8ad}),_0x456ab0[_0x7c41('0x5f')](_0x23183b,{'userId':_0x40b8ad})),_0x23183b==_0x424b6e&&(_0x40b8ad=null,_0x424b6e=null);}}const _0x582080={},_0x5ca99d=new Set();for(const _0x1fe503 of _0x10d545){const _0x57f305=_0x4ba08e[_0x7c41('0xed')][_0x1fe503],_0x167639=_0x4ba08e[_0x7c41('0x9e')][_0x1fe503];for(const {userId:_0x22d487}of this['_touchedMarkers'][_0x7c41('0x6f')]())null!==_0x22d487&&_0x5ca99d['add'](_0x22d487);for(const {userId:_0x518325}of this[_0x7c41('0xb')][_0x7c41('0x6f')]())null!==_0x518325&&_0x5ca99d[_0x7c41('0xf0')](_0x518325);this[_0x7c41('0xbe')](_0x167639,_0x424ccf[_0x7c41('0x9e')][_0x1fe503],_0x456ab0,'insertion',_0x5ca99d),this[_0x7c41('0xbe')](_0x57f305,_0x424ccf[_0x7c41('0xed')][_0x1fe503],_0x3a6a0a,'deletion',_0x5ca99d),_0x582080[_0x1fe503]={'insertions':this[_0x7c41('0xf8')](_0x167639),'deletions':this[_0x7c41('0xf8')](_0x57f305),'attachChange':this[_0x7c41('0xb')][_0x7c41('0x12')](_0x1fe503)||null,'attributesBefore':_0x590a64(this[_0x7c41('0xb5')][_0x7c41('0x12')](_0x1fe503))||{},'attributesAfter':_0x590a64(this[_0x7c41('0xe')][_0x7c41('0x12')](_0x1fe503))};}return{'diffData':_0x582080,'authorsIds':Array[_0x7c41('0x1a')](_0x5ca99d)};}['_processRootBeforeSave'](_0x251744){for(const [,_0x751da9]of _0x251744[_0x7c41('0xd')]){const _0x5bcdc8=_0x751da9[_0x7c41('0x16')]['getAncestors']()[_0x7c41('0x42')](_0x1f8f43=>_0x7c41('0x4d')==_0x1f8f43[_0x7c41('0x3a')]);for(const _0x260a34 of _0x5bcdc8)0x1==_0x260a34['childCount']&&_0x260a34[_0x7c41('0x1d')](0x0)['is'](_0x7c41('0x67'),'paragraph')&&_0x260a34['getChild'](0x0)[_0x7c41('0x1b')](_0x7c41('0xb9'),!0x0);}}[_0x7c41('0xf8')](_0x21d980){this[_0x7c41('0x3f')](_0x21d980);const _0x190bae=this['editor']['data'][_0x7c41('0xec')](_0x21d980,{}),_0x4768cc=Array[_0x7c41('0x1a')](_0x190bae[_0x7c41('0x81')]())[_0x7c41('0xd1')](_0x47ecf9=>this['_getViewJson'](_0x47ecf9));return JSON['stringify'](_0x4768cc);}['_getViewJson'](_0x2925cd){if(_0x2925cd['is'](_0x7c41('0xb7')))return _0x2925cd[_0x7c41('0xae')];{const _0x49fe12=_0x2925cd;return{'type':Object[_0x7c41('0xa3')](B)[_0x7c41('0x79')](_0x4473b9=>_0x2925cd instanceof B[_0x4473b9]),'name':_0x49fe12['name'],'attributes':Array[_0x7c41('0x1a')](_0x49fe12[_0x7c41('0xfa')]()),'children':Array['from'](_0x49fe12[_0x7c41('0x81')]())['map'](_0x5c3cf1=>this['_getViewJson'](_0x5c3cf1))};}}[_0x7c41('0xbe')](_0x5aa6fd,_0x46156c,_0x2c5b5f,_0x21e604,_0x282545){let _0x4dcd1d=null,_0x4d4d3f=null,_0x1963c7=0x0;const _0x3a1fb6=this[_0x7c41('0x8d')]['model'];for(let _0xba710e=0x0;_0xba710e<_0x46156c[_0x7c41('0x25')];_0xba710e++){const _0x41a078=this[_0x7c41('0x56')](_0x46156c[_0xba710e]),_0x29437b=_0x46156c[_0xba710e]['item'][_0x7c41('0x8')](_0x41a078),_0x461dcb=_0x2c5b5f['get'](_0x29437b),_0x662d39=_0xba710e==_0x46156c[_0x7c41('0x25')]-0x1;(!_0x4dcd1d&&_0x461dcb&&(_0x4dcd1d=_0x461dcb,_0x4d4d3f=_0x46156c[_0xba710e]),_0x4dcd1d&&(!_0x461dcb||_0x461dcb[_0x7c41('0x75')]!=_0x4dcd1d['userId']))&&(_0x3791bb(_0x461dcb,L(_0x4d4d3f,_0x5aa6fd,_0x3a1fb6),L(_0x46156c[_0xba710e],_0x5aa6fd,_0x3a1fb6)),_0x4dcd1d=_0x461dcb||null,_0x4d4d3f=_0x461dcb?_0x46156c[_0xba710e]:null),_0x4dcd1d&&_0x662d39&&_0x3791bb(_0x461dcb,L(_0x4d4d3f,_0x5aa6fd,_0x3a1fb6),W(_0x46156c[_0xba710e],_0x5aa6fd,_0x3a1fb6));}function _0x3791bb(_0x32264e,_0x9c286e,_0x520468){const _0x4ecc7b=_0x4dcd1d[_0x7c41('0x75')],_0x2ded1e=_0x7c41('0x1e')+_0x21e604+':'+_0x4ecc7b+':'+_0x1963c7++,_0x15e12a=_0x3a1fb6[_0x7c41('0x98')](_0x9c286e,_0x520468);_0x5aa6fd[_0x7c41('0xd')]['set'](_0x2ded1e,_0x15e12a),null!==_0x4ecc7b&&_0x282545[_0x7c41('0xf0')](_0x4ecc7b);}}['_getVidAttributeName'](_0x5c4478){switch(_0x5c4478['type']){case _0x7c41('0x18'):return'vid_start';case _0x7c41('0x71'):return _0x7c41('0xd5');default:return _0x7c41('0x7e');}}['_fixOperation'](_0x24708a,_0x1e6991){_0x24708a[_0x7c41('0x7d')]=null;for(const _0x55a494 in _0x24708a){const _0x48239f=_0x24708a[_0x55a494];if(_0x48239f instanceof _0x32346e){const _0x58f780=_0x1e6991[_0x7c41('0x12')](_0x48239f[_0x7c41('0x64')][_0x7c41('0x2e')]);_0x24708a[_0x55a494]=this[_0x7c41('0x6')](_0x48239f,_0x58f780);}if(_0x48239f instanceof _0x34fae3){const _0x321f07=_0x1e6991[_0x7c41('0x12')](_0x48239f[_0x7c41('0x64')][_0x7c41('0x2e')]);_0x24708a[_0x55a494]=this[_0x7c41('0x51')](_0x48239f,_0x321f07);}'root'===_0x55a494&&(_0x24708a['root']=_0x1e6991[_0x7c41('0x12')](_0x24708a['root']['rootName']));}}[_0x7c41('0x51')](_0x654875,_0x193809){return this['editor']['model']['createRange'](this[_0x7c41('0x6')](_0x654875[_0x7c41('0x16')],_0x193809),this[_0x7c41('0x6')](_0x654875[_0x7c41('0x7c')],_0x193809));}[_0x7c41('0x6')](_0x333a71,_0x532df0){return this[_0x7c41('0x8d')][_0x7c41('0x57')]['createPositionFromPath'](_0x532df0,_0x333a71['path'],_0x333a71[_0x7c41('0x96')]);}[_0x7c41('0x5')](_0x41a5f1){const _0xd50a7a=this[_0x7c41('0xaf')]['get'](_0x41a5f1[_0x7c41('0xe3')]['root'][_0x7c41('0x2e')]),_0xfd76e4=this[_0x7c41('0x6')](_0x41a5f1['position'],_0xd50a7a),_0x3fb063=null===_0x41a5f1[_0x7c41('0x35')]?null:_0x41a5f1[_0x7c41('0x35')]||this['editor']['plugins']['get'](_0x7c41('0x6c'))['me']['id'],_0x4a08a7=_0xfd76e4[_0x7c41('0x5e')],_0x1a4dc5=this[_0x7c41('0x1f')],_0x178236=[];for(const _0x2e71cf of _0x41a5f1[_0x7c41('0xb1')])if(_0x2e71cf['is'](_0x7c41('0x67')))_0x178236['push'](this['_makeIdsRoot'](_0x2e71cf));else for(let _0x533756=0x0;_0x533756<_0x2e71cf[_0x7c41('0x99')];_0x533756++)_0x178236[_0x7c41('0x6d')](new _0x26a125(_0x7c41('0xb7'),{'vid':this['_revisionId']++}));const _0x295f89=this[_0x7c41('0x1f')];for(let _0x7cdd20=_0x1a4dc5;_0x7cdd20<_0x295f89;_0x7cdd20++)this['_touched']['set'](_0x7cdd20,{'userId':_0x3fb063});_0x4a08a7['_insertChild'](_0xfd76e4[_0x7c41('0xf7')],_0x178236);}['_handleMoveOperation'](_0x15316d){(_0x15316d=this[_0x7c41('0xf1')](_0x15316d,this[_0x7c41('0xaf')]))[_0x7c41('0x2d')]();const _0x311c7d=null===_0x15316d[_0x7c41('0x35')]?null:_0x15316d[_0x7c41('0x35')]||this[_0x7c41('0x8d')]['plugins'][_0x7c41('0x12')](_0x7c41('0x6c'))['me']['id'],_0x1dcb61=_0x15316d[_0x7c41('0x3c')](),_0x163c47=_0x1dcb61[_0x7c41('0x5e')],_0x3d9a61=_0x1dcb61[_0x7c41('0xf7')];!function _0xfc6527(_0x1c7584,_0x39b7f0,_0x58e2d8,_0x2d4f36){for(let _0x34da7e=_0x58e2d8;_0x34da7e<_0x2d4f36;_0x34da7e++){const _0x2f97c2=_0x39b7f0[_0x7c41('0x1d')](_0x34da7e);_0x2f97c2['is'](_0x7c41('0x67'),_0x7c41('0xb7'))?_0x1c7584[_0x7c41('0x5f')](_0x2f97c2['getAttribute']('vid'),{'userId':_0x311c7d}):(_0x1c7584[_0x7c41('0x5f')](_0x2f97c2[_0x7c41('0x8')](_0x7c41('0x6e')),{'userId':_0x311c7d}),_0xfc6527(_0x1c7584,_0x2f97c2,0x0,_0x2f97c2['childCount']),_0x1c7584[_0x7c41('0x5f')](_0x2f97c2[_0x7c41('0x8')](_0x7c41('0xd5')),{'userId':_0x311c7d}));}}(this['_touched'],_0x163c47,_0x3d9a61,_0x3d9a61+_0x15316d[_0x7c41('0x3')]);}[_0x7c41('0x8b')](_0x47cfbd){const _0x99ee31=null===(_0x47cfbd=this[_0x7c41('0xf1')](_0x47cfbd,this[_0x7c41('0xaf')]))['_authorId']?null:_0x47cfbd[_0x7c41('0x35')]||this['editor'][_0x7c41('0xa')]['get'](_0x7c41('0x6c'))['me']['id'],_0x21f05d=_0x47cfbd[_0x7c41('0x7a')][_0x7c41('0x5e')],_0x550009=_0x47cfbd[_0x7c41('0xcb')]['parent'],_0x348ba1=_0x21f05d[_0x7c41('0x8')](_0x7c41('0xd5')),_0x39f63a=_0x550009[_0x7c41('0x8')](_0x7c41('0x6e'));_0x21f05d[_0x7c41('0x1b')]('vid_end',_0x550009[_0x7c41('0x8')](_0x7c41('0xd5'))),_0x550009[_0x7c41('0x1b')](_0x7c41('0xd5'),_0x348ba1),this[_0x7c41('0x8f')][_0x7c41('0x5f')](_0x39f63a,{'userId':_0x99ee31}),this[_0x7c41('0x8f')][_0x7c41('0x5f')](_0x348ba1,{'userId':_0x99ee31}),_0x47cfbd['_execute']();}[_0x7c41('0x10')](_0x13fcde){const _0x2d4dc7=null===(_0x13fcde=this[_0x7c41('0xf1')](_0x13fcde,this[_0x7c41('0xaf')]))['_authorId']?null:_0x13fcde[_0x7c41('0x35')]||this[_0x7c41('0x8d')][_0x7c41('0xa')][_0x7c41('0x12')](_0x7c41('0x6c'))['me']['id'],_0x352320=_0x13fcde[_0x7c41('0x37')],_0x93224e=_0x13fcde[_0x7c41('0x72')][_0x7c41('0x5e')];_0x13fcde[_0x7c41('0x2d')]();const _0x2840b1=_0x93224e[_0x7c41('0x8')](_0x7c41('0xd5')),_0x308a01=_0x13fcde[_0x7c41('0x8e')][_0x7c41('0x6a')];if(_0x352320){const _0x53929e=_0x308a01[_0x7c41('0x8')]('vid_end'),_0x27f100=_0x93224e[_0x7c41('0x8')](_0x7c41('0xd5'));_0x93224e['_setAttribute']('vid_end',_0x53929e),_0x308a01['_setAttribute'](_0x7c41('0xd5'),_0x27f100),this['_touched'][_0x7c41('0x5f')](_0x93224e[_0x7c41('0x8')](_0x7c41('0xd5')),{'userId':_0x2d4dc7}),this[_0x7c41('0x8f')][_0x7c41('0x5f')](_0x308a01[_0x7c41('0x8')](_0x7c41('0x6e')),{'userId':_0x2d4dc7});}else{const _0x10887d=this['_revisionId']++,_0x5d6aeb=this[_0x7c41('0x1f')]++;_0x93224e[_0x7c41('0x1b')]('vid_end',_0x10887d),_0x308a01[_0x7c41('0x1b')](_0x7c41('0x6e'),_0x5d6aeb),_0x308a01[_0x7c41('0x1b')]('vid_end',_0x2840b1),this[_0x7c41('0x8f')][_0x7c41('0x5f')](_0x10887d,{'userId':_0x2d4dc7}),this[_0x7c41('0x8f')][_0x7c41('0x5f')](_0x5d6aeb,{'userId':_0x2d4dc7});}}[_0x7c41('0x68')](_0x1ca4f6){if(!_0x1ca4f6[_0x7c41('0xeb')])return;const _0xe2d48=(_0x1ca4f6=this[_0x7c41('0xf1')](_0x1ca4f6,this[_0x7c41('0xb2')]))[_0x7c41('0xc7')]?_0x1ca4f6[_0x7c41('0xc7')][_0x7c41('0x64')]:null,_0x5ed3e5=_0x1ca4f6['newRange']?_0x1ca4f6[_0x7c41('0x8a')][_0x7c41('0x64')]:null;_0xe2d48&&this[_0x7c41('0x47')][_0x7c41('0x50')](_0x1ca4f6[_0x7c41('0x3a')]),_0x5ed3e5&&this['_markers'][_0x7c41('0x5f')](_0x1ca4f6[_0x7c41('0x3a')],_0x1ca4f6[_0x7c41('0x8a')][_0x7c41('0xbd')]());const _0x2a11f9=null===_0x1ca4f6['_authorId']?null:_0x1ca4f6[_0x7c41('0x35')]||this[_0x7c41('0x8d')][_0x7c41('0xa')]['get'](_0x7c41('0x6c'))['me']['id'],_0x224b31=_0x1ca4f6['name'];if(!this[_0x7c41('0x9d')][_0x7c41('0x59')](_0x224b31))return void this[_0x7c41('0x9d')]['set'](_0x224b31,{'range':_0x1ca4f6[_0x7c41('0xc7')],'userId':_0x2a11f9});const _0x15ef05=this[_0x7c41('0x9d')][_0x7c41('0x12')](_0x224b31),_0x4e48d5=_0x15ef05[_0x7c41('0x53')],_0x32c69a=_0x1ca4f6[_0x7c41('0x8a')];null==_0x4e48d5&&null==_0x32c69a||_0x4e48d5&&_0x32c69a&&_0x4e48d5['isEqual'](_0x32c69a)?this['_touchedMarkers']['delete'](_0x1ca4f6[_0x7c41('0x3a')]):_0x15ef05[_0x7c41('0x75')]=_0x2a11f9;}[_0x7c41('0x43')](_0x294056,_0x2b741b){this[_0x7c41('0xb2')][_0x7c41('0x59')](_0x294056[_0x7c41('0x2e')])?this[_0x7c41('0xb2')]['get'](_0x294056['rootName'])[_0x7c41('0x14')]=_0x294056[_0x7c41('0x70')]:(this['_diffRoots'][_0x7c41('0x5f')](_0x294056['rootName'],G(_0x294056[_0x7c41('0x2e')],!0x0)),this[_0x7c41('0xe')][_0x7c41('0x5f')](_0x294056[_0x7c41('0x2e')],{}),_0x2b741b&&this[_0x7c41('0xaf')][_0x7c41('0x5f')](_0x294056['rootName'],G(_0x294056['rootName'],!0x0)));const _0x1302f3=null===_0x294056[_0x7c41('0x35')]?null:_0x294056[_0x7c41('0x35')]||this['editor'][_0x7c41('0xa')][_0x7c41('0x12')](_0x7c41('0x6c'))['me']['id'],_0x35a836=this[_0x7c41('0xb')][_0x7c41('0x12')](_0x294056['rootName']);_0x35a836&&_0x35a836['userId']===_0x1302f3?this[_0x7c41('0xb')][_0x7c41('0x50')](_0x294056[_0x7c41('0x2e')]):this[_0x7c41('0xb')]['set'](_0x294056[_0x7c41('0x2e')],{'userId':_0x1302f3,'isAttached':_0x294056[_0x7c41('0x70')]});}[_0x7c41('0x4b')](_0x2b8480){const _0x5b934a=this[_0x7c41('0xe')]['get'](_0x2b8480[_0x7c41('0x64')][_0x7c41('0x2e')]);null===_0x2b8480['newValue']?delete _0x5b934a[_0x2b8480[_0x7c41('0x9a')]]:_0x5b934a[_0x2b8480[_0x7c41('0x9a')]]=_0x2b8480['newValue'];}}function q(_0x8fa37){const _0x315bb1=G(_0x8fa37[_0x7c41('0x2e')],_0x8fa37[_0x7c41('0x94')]());for(const _0x486506 of _0x8fa37[_0x7c41('0x81')]()){const _0x4badbf=_0x486506[_0x7c41('0xf6')](!0x0);_0x315bb1['_appendChild'](_0x4badbf);}return _0x315bb1;}function G(_0x2a0d77,_0x41453b=!0x0){const _0x4a1e12=new _0x285c45();return _0x4a1e12[_0x7c41('0x2e')]=_0x2a0d77,_0x4a1e12[_0x7c41('0x14')]=_0x41453b,_0x4a1e12[_0x7c41('0x94')]=()=>_0x4a1e12['_isAttached'],_0x4a1e12;}function L(_0x4a9a1c,_0x2ae952,_0x5ba4d6){const _0x130de3=_0x7c41('0x71')==_0x4a9a1c['type']?_0x5ba4d6[_0x7c41('0xc6')](_0x4a9a1c[_0x7c41('0x97')],_0x7c41('0x7c')):_0x5ba4d6[_0x7c41('0x4a')](_0x4a9a1c['item']);return _0x5ba4d6[_0x7c41('0xac')](_0x2ae952,_0x130de3[_0x7c41('0x65')],_0x130de3[_0x7c41('0x96')]);}function W(_0x2dc0f5,_0x48eade,_0x1f23ee){const _0x5685b5=_0x7c41('0x18')==_0x2dc0f5[_0x7c41('0xd2')]?_0x1f23ee[_0x7c41('0xc6')](_0x2dc0f5[_0x7c41('0x97')],0x0):_0x1f23ee['createPositionAfter'](_0x2dc0f5[_0x7c41('0x97')]);return _0x1f23ee[_0x7c41('0xac')](_0x48eade,_0x5685b5[_0x7c41('0x65')],_0x5685b5['stickiness']);}
|