@ckeditor/ckeditor5-revision-history 35.3.1 → 35.4.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 +7 -7
- 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 _0x9999=['_markChanges','clone','editor-initial-data-replaced-with-revision-data','setRevisionData','attributes','pluginName','string','reInit','getAncestors','_fixOperation','collaboration.channelId','_getVidAttributeName','creatorId','resolve','_copyMarkers','_isInit','createPositionBefore','$graveyard','isEnabled','_revisionId','conversion','remove','_bufferUpdate','_removeMetaData','define','dataToMarker','default','getRevisionDocumentData','root','_getBaseVids','text','document','get','_processRootBeforeSave','_isPendingUpdate','editing','_bufferedUpdates','vid','_transformMarkers','createRangeIn','_baseIdsRoots','_calculateMetaData','_getState','getUser','from','plugins','_execute','_saveEmptyMetaData','_prepareViewToSave','sort','_reset','sendBufferedUpdates','slice','data-revision-','processor','_createInitialRevision','_addPendingAction','getAttribute','documentFragment','revision-end','values','_loadRevisionData','delete','useFillerType','sourcePosition','_baseRoots','repository','vid_end','_source','stickiness','data','_findInsertionIndex','toModel','type','_fixRange','creator','elementEnd','NEGATIVE_INFINITY','view','ready','source','find','name','toVersion','createRange','insertionPosition','afterInit','getChildren','isPendingUpdate','keepParagraph','vid_start','hasContent','clear','markers','tableCell','range','_handleSplitOperation','_makeIdsRoot','_authorId','_lastFrom','_removeRevisionMarkers','element','nodes','addRevisionData','_handleMarkerOperation','getRevision','loadState','_applyOperations','keys','affectsData','graveyardPosition','fromVersion','revision-start','_handleOperation','currentRevision','markerToData','rootName','end','getNodeByPath','_markers','getLatestVersion','merge','history','RevisionsRepository','_handleMergeOperation','newRange','for','createPositionAfter','updateRevisions','getOperations','_makeRevision','$text','_idsRoots','marker','diffData','getCurrentRevisionId','getData','_touched','trim','userId','insertion','getAttributes','offset','getChild','_savedMetaData','howMany','marked','_setAttribute','_startingRevisionId','requires','Users','PendingActions','isReady','_handleInsertOperation','_initialRevisionId','init','_rootNames','createRevision','_loadState','filter','model','_update','startsWith','length','finally','_touchedMarkers','initialData','addRevision','add','_revisionDataBuilder','isEqual','_continueCurrentRevision','saveRevision','getIndex','item','childCount','includes','baseVersion','size','createdAt','Initial\x20revision','split','elementStart','parent','position','_operations','shift','getWalker','_clone','start','reverse','version','update','_fixPosition','revision','has','forEach','path','offsetSize','revision:','_appendChild','map','deletions','adapter','oldRange','getRootNames','_setConversion','toData','dataDowncast','push','getTime','_startingVersion','Empty\x20document','_cloneOperation','editor','_createCurrentRevision','_getViewJson','max','_pendingAction','_insertChild','initial','_makeModelFromViewString','locale','set','insertions','_lastTo','RevisionTracker','_diffRoots','config','createPositionFromPath','_getFromVersion','insert','children','authors','_replaceEditorDataWithRevisionData','_saveMetaData','previousPosition','buildRevisionData','_loadedStateData','revisionHistory.resumeUnsavedRevision','getRevisions','paragraph','reinsert','targetPosition','_generateTape','_handleMoveOperation','getOperation','authorsIds'];(function(_0x210ed7,_0x9999d9){const _0x20c5bb=function(_0x5e8dfd){while(--_0x5e8dfd){_0x210ed7['push'](_0x210ed7['shift']());}};_0x20c5bb(++_0x9999d9);}(_0x9999,0xee));const _0x20c5=function(_0x210ed7,_0x9999d9){_0x210ed7=_0x210ed7-0x0;let _0x20c5bb=_0x9999[_0x210ed7];return _0x20c5bb;};import{Users as _0x2b4837}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x1f6f69,PendingActions as _0x165162}from'ckeditor5/src/core';import{logWarning as _0x2cab67,uid as _0x4dc8d2}from'ckeditor5/src/utils';import{Position as _0x5b495d,Range as _0x14f5b3,Element as _0x4261db,DocumentFragment as _0x1af70e,ViewText as _0x2ae193,ViewElement as _0x57d52e,ViewContainerElement as _0x2a1184,ViewAttributeElement as _0x5c711b,ViewEmptyElement as _0x49fa1c,ViewRawElement as _0x440d63,ViewUIElement as _0x366de3,ViewDocumentFragment as _0x5406ba}from'ckeditor5/src/engine';import _0x3e508b from'./revisionsrepository';import{getTranslation as _0x4d5bdc}from'./utils/common-translations';const J={'c':_0x2a1184,'a':_0x5c711b,'e':_0x49fa1c,'r':_0x440d63,'u':_0x366de3};export default class u extends _0x1f6f69{static get[_0x20c5('0xf')](){return _0x20c5('0xec');}static get[_0x20c5('0x9f')](){return[_0x2b4837,_0x3e508b,_0x165162];}constructor(..._0x47fcc1){super(..._0x47fcc1),this[_0x20c5('0xd5')]=null,this['set']('isReady',!0x1),this[_0x20c5('0xe9')](_0x20c5('0x1c'),!0x0),this[_0x20c5('0x7c')]=null;const _0x3700eb=_0x4dc8d2();this['_source']={'history':this[_0x20c5('0xe0')][_0x20c5('0xaa')]['document'][_0x20c5('0x84')],'getLatestVersion':()=>Promise[_0x20c5('0x17')](this[_0x20c5('0xe0')][_0x20c5('0xaa')][_0x20c5('0x29')]['version']),'getCurrentRevisionId':()=>_0x3700eb},this[_0x20c5('0xb3')]=new B(this[_0x20c5('0xe0')]),this[_0x20c5('0xa4')]=this[_0x20c5('0xe0')][_0x20c5('0xee')][_0x20c5('0x2a')](_0x20c5('0x14'))||_0x20c5('0xe6'),this[_0x20c5('0xe9')](_0x20c5('0x62'),!0x1),this['_bufferedUpdates']=new Map(),this[_0x20c5('0xe0')][_0x20c5('0xee')][_0x20c5('0x22')](_0x20c5('0x1'),!0x0),this[_0x20c5('0x0')]=null,this[_0x20c5('0xe0')][_0x20c5('0x1e')][_0x20c5('0x88')]('upcast')[_0x20c5('0x23')]({'view':_0x20c5('0xcc')});}[_0x20c5('0xa5')](){this[_0x20c5('0x4c')]=this[_0x20c5('0xe0')][_0x20c5('0x37')]['get'](_0x20c5('0x85')),this[_0x20c5('0xd8')](),this['editor']['data']['on'](_0x20c5('0x59'),()=>{const _0x609dcf=this[_0x20c5('0x4c')][_0x20c5('0x73')](0x0),_0xc76ad0=_0x609dcf&&null===_0x609dcf[_0x20c5('0x55')]?_0x609dcf:null;if(this[_0x20c5('0xb5')]=!!_0xc76ad0&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor'][_0x20c5('0x37')][_0x20c5('0xcd')]('RealTimeCollaborationClient')){const _0x2dd9a2=this[_0x20c5('0x4e')][_0x20c5('0x91')](),_0x151100=this[_0x20c5('0x4c')]['getRevision'](_0x2dd9a2);if(_0x151100)this[_0x20c5('0xdd')]=_0x151100[_0x20c5('0x79')],this[_0x20c5('0xb5')]=!0x1;else{const _0xeb2e40=this['_source'][_0x20c5('0x84')][_0x20c5('0xc3')]['find'](_0xaa0635=>!_0xaa0635[_0x20c5('0x19')]),_0x1a6964=_0xeb2e40?_0xeb2e40[_0x20c5('0xbb')]:this[_0x20c5('0x4e')][_0x20c5('0x84')]['version'];_0x609dcf?(_0x609dcf[_0x20c5('0x5d')]<_0x1a6964&&_0x609dcf[_0x20c5('0xab')]({'toVersion':_0x1a6964}),this[_0x20c5('0xb5')]?(this['_source']['getCurrentRevisionId']=()=>_0xc76ad0['id'],this['_startingVersion']=_0xc76ad0[_0x20c5('0x79')]):(this[_0x20c5('0xdd')]=_0x609dcf[_0x20c5('0x5d')],this['_continueCurrentRevision']=!0x1)):(this[_0x20c5('0xdd')]=_0x1a6964,this[_0x20c5('0xb5')]=!0x1);}}else _0xc76ad0&&(this[_0x20c5('0xe0')][_0x20c5('0xaa')][_0x20c5('0x29')][_0x20c5('0x84')][_0x20c5('0xc9')]=Math[_0x20c5('0xe3')](_0xc76ad0[_0x20c5('0x5d')],this[_0x20c5('0xe0')][_0x20c5('0xaa')][_0x20c5('0x29')][_0x20c5('0x84')][_0x20c5('0xc9')]),_0xc76ad0['fromVersion']===_0xc76ad0[_0x20c5('0x5d')]?(0x0!==_0xc76ad0['fromVersion']&&(this[_0x20c5('0x4e')][_0x20c5('0x91')]=()=>_0xc76ad0['id']),this['_continueCurrentRevision']=!0x1):this[_0x20c5('0xb5')]&&(this[_0x20c5('0x4e')]['getCurrentRevisionId']=()=>_0xc76ad0['id'],this[_0x20c5('0xdd')]=_0xc76ad0[_0x20c5('0x79')])),this[_0x20c5('0xb5')]||(this[_0x20c5('0xdd')]=this['editor']['model'][_0x20c5('0x29')][_0x20c5('0xc9')]);this[_0x20c5('0xb3')][_0x20c5('0xa5')](this[_0x20c5('0x4e')][_0x20c5('0x84')]),this[_0x20c5('0x41')](this[_0x20c5('0xdd')]),this[_0x20c5('0xe1')](this['_startingVersion']),this[_0x20c5('0xd5')]&&this[_0x20c5('0x3d')]();}),this['bind'](_0x20c5('0xa2'))['to'](this,_0x20c5('0x2c'),_0x157a00=>!_0x157a00);}async[_0x20c5('0x60')](){if(this['repository'][_0x20c5('0xad')]>0x0){const _0x5f35ac=this[_0x20c5('0x4c')][_0x20c5('0x73')](0x0),_0x3f7fc4=await this[_0x20c5('0x25')](_0x5f35ac);this[_0x20c5('0xf4')](_0x3f7fc4);}}['setSource'](_0x4af4e2){this[_0x20c5('0x4e')]=_0x4af4e2;}async[_0x20c5('0xca')](){const _0x4e4c4f=await this[_0x20c5('0x4e')][_0x20c5('0x82')]();if(_0x4e4c4f>this[_0x20c5('0x7c')][_0x20c5('0x5d')]){await this['_loadState']();const _0x4c88cd=this[_0x20c5('0xf7')]({'revision':this[_0x20c5('0x7c')],'to':_0x4e4c4f});_0x4c88cd[_0x20c5('0xf3')]=_0x4c88cd[_0x20c5('0x9')]['map'](_0x476839=>this[_0x20c5('0xe0')][_0x20c5('0x37')][_0x20c5('0x2a')](_0x20c5('0xa0'))[_0x20c5('0x35')](_0x476839)),this[_0x20c5('0x7c')][_0x20c5('0xab')](_0x4c88cd);}}async['_loadState'](){this[_0x20c5('0xb5')]&&!this[_0x20c5('0x0')]&&(await this[_0x20c5('0x47')](this[_0x20c5('0x7c')]),this[_0x20c5('0xb3')]['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this[_0x20c5('0x7c')]['fromVersion'],'authors':this[_0x20c5('0x7c')]['authors'][_0x20c5('0x3e')]()});}async[_0x20c5('0xb6')](_0x10791e={},_0x3b1616=null){const _0x3b2f21=[];await this[_0x20c5('0xa8')](),this[_0x20c5('0xb5')]=!0x1,_0x3b1616>this[_0x20c5('0x7c')]['toVersion']&&(_0x3b1616=null),null===_0x3b1616&&(_0x3b1616=await this[_0x20c5('0x4e')]['getLatestVersion']());const _0x27eb38=this['_getFromVersion'](_0x3b1616),_0x3a8be2=this[_0x20c5('0xf7')]({'from':_0x27eb38,'to':_0x3b1616});if(this[_0x20c5('0x7c')][_0x20c5('0x5d')]<_0x3b1616){const _0x3ddb03=this[_0x20c5('0xf7')]({'revision':this[_0x20c5('0x7c')],'from':_0x3b1616,'to':_0x3b1616});_0x3ddb03[_0x20c5('0xf3')]=[],_0x3ddb03[_0x20c5('0x9')]=[],_0x3ddb03['id']=this[_0x20c5('0x7c')]['id'],this[_0x20c5('0x7c')][_0x20c5('0xab')](_0x3ddb03,!0x0),delete _0x3ddb03[_0x20c5('0xf3')],_0x3b2f21[_0x20c5('0xdb')](_0x3ddb03);}_0x10791e[_0x20c5('0x16')]=this[_0x20c5('0xe0')]['plugins'][_0x20c5('0x2a')](_0x20c5('0xa0'))['me']['id'],_0x10791e[_0x20c5('0x5c')]=_0x10791e[_0x20c5('0x5c')]||null,_0x10791e['id']=_0x10791e['id']||_0x4dc8d2(),_0x10791e={..._0x10791e,..._0x3a8be2};const _0x5989e7=this[_0x20c5('0x71')](_0x10791e);_0x3b2f21[_0x20c5('0xdb')](_0x10791e);const _0x375b99=this['repository'][_0x20c5('0xb7')](_0x5989e7);if(0x0!==_0x375b99){const _0x740287=this['repository'][_0x20c5('0x73')](_0x375b99-0x1);if(_0x740287[_0x20c5('0x79')]!==_0x3b1616){const _0x1d085f=this[_0x20c5('0xb3')][_0x20c5('0x92')](_0x3b1616,_0x740287[_0x20c5('0x5d')]),_0x56d634={'id':_0x740287['id'],'diffData':_0x1d085f[_0x20c5('0x90')],'authorsIds':_0x1d085f['authorsIds'],'authors':_0x1d085f[_0x20c5('0x9')][_0x20c5('0xd3')](_0x38d2b7=>this[_0x20c5('0xe0')][_0x20c5('0x37')][_0x20c5('0x2a')](_0x20c5('0xa0'))[_0x20c5('0x35')](_0x38d2b7)),'fromVersion':_0x3b1616};_0x740287===this['currentRevision']&&(_0x56d634[_0x20c5('0xbd')]=new Date(_0x10791e['createdAt'][_0x20c5('0xdc')]()+0xa)),_0x740287[_0x20c5('0xab')](_0x56d634,!0x0),delete _0x56d634[_0x20c5('0xf3')],_0x3b2f21[_0x20c5('0xdb')](_0x56d634);}}if(this[_0x20c5('0xd5')]){for(const _0x2a98ce of _0x3b2f21)this[_0x20c5('0x20')](_0x2a98ce['id'],_0x2a98ce,!0x0);this[_0x20c5('0x3d')]();}return _0x5989e7;}[_0x20c5('0x71')](_0x382c2a){const _0x311e11=this['repository'][_0x20c5('0xa7')](_0x382c2a);return this[_0x20c5('0xd5')]&&_0x311e11['on']('_update',(_0x580c8a,_0xe3294c,_0x3e6e61)=>{_0x3e6e61||(this[_0x20c5('0x20')](_0xe3294c['id'],_0xe3294c,!0x0),this[_0x20c5('0x3d')]());}),this[_0x20c5('0x4c')][_0x20c5('0xb1')](_0x311e11,this[_0x20c5('0x51')](_0x311e11)),_0x311e11;}async[_0x20c5('0x25')](_0x49d828){await this[_0x20c5('0x47')](_0x49d828);const _0x8eae43={};for(const _0x2f2ce0 in _0x49d828['diffData']){const _0x4c2d86=this[_0x20c5('0x6e')](JSON['parse'](_0x49d828[_0x20c5('0x90')][_0x2f2ce0][_0x20c5('0xea')])),_0x30b784=this[_0x20c5('0xe0')][_0x20c5('0x2d')]['view']['document'],_0x3ffab9=new _0x5406ba(_0x30b784,_0x4c2d86[_0x20c5('0xd3')](_0x1dda96=>j(_0x1dda96,this['editor'])));this['editor'][_0x20c5('0x50')][_0x20c5('0x40')][_0x20c5('0x49')](_0x20c5('0x9c')),_0x8eae43[_0x2f2ce0]=this[_0x20c5('0xe0')]['data'][_0x20c5('0x40')][_0x20c5('0xd9')](_0x3ffab9),this[_0x20c5('0xe0')][_0x20c5('0x50')]['processor']['useFillerType'](_0x20c5('0x24'));}return _0x8eae43;}[_0x20c5('0x3d')](){if(0x0===this[_0x20c5('0x2e')][_0x20c5('0xbc')])return;if(this[_0x20c5('0x2c')])return;let _0x5114c5=Array['from'](this[_0x20c5('0x2e')][_0x20c5('0x46')]());this[_0x20c5('0x2e')]['clear']();for(let _0x257703=0x0;_0x257703<_0x5114c5[_0x20c5('0xad')];_0x257703++){const _0x5eecf0=_0x5114c5[_0x257703];let _0x54e2c7=!0x1;for(const _0x11752f of Object['keys'](_0x5eecf0))void 0x0===_0x5eecf0[_0x11752f]?delete _0x5eecf0[_0x11752f]:'id'!==_0x11752f&&(_0x54e2c7=!0x0);_0x54e2c7||(_0x5114c5[_0x257703]=null);}if(_0x5114c5=_0x5114c5[_0x20c5('0xa9')](_0x1ef385=>null!==_0x1ef385),!_0x5114c5[_0x20c5('0xad')])return;for(let _0x582748=0x0;_0x582748<_0x5114c5[_0x20c5('0xad')];_0x582748++){const _0x13c51b=_0x5114c5[_0x582748];void 0x0!==_0x13c51b[_0x20c5('0x79')]&&void 0x0===_0x13c51b[_0x20c5('0x5d')]&&(_0x13c51b['toVersion']=this[_0x20c5('0x4c')][_0x20c5('0x73')](_0x13c51b['id'])[_0x20c5('0x5d')]),void 0x0!==_0x13c51b[_0x20c5('0x5d')]&&void 0x0===_0x13c51b[_0x20c5('0x79')]&&(_0x13c51b[_0x20c5('0x79')]=this[_0x20c5('0x4c')]['getRevision'](_0x13c51b['id'])[_0x20c5('0x79')]);}const _0x1d00dc=this['editor'][_0x20c5('0xee')][_0x20c5('0x2a')](_0x20c5('0x14'));this[_0x20c5('0x2c')]=!0x0,this[_0x20c5('0x42')](),this[_0x20c5('0xd5')][_0x20c5('0x8a')](_0x5114c5,_0x1d00dc)[_0x20c5('0xae')](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5c98fb=>{if(_0x5c98fb)for(const _0x66bed7 of _0x5c98fb)this[_0x20c5('0xd')]({'id':_0x66bed7['id'],'createdAt':_0x66bed7[_0x20c5('0xbd')]});this['_removePendingAction'](),this[_0x20c5('0x3d')]();});}[_0x20c5('0xf4')](_0x4d88a0){let _0x19ad72=this[_0x20c5('0xe0')][_0x20c5('0xee')]['get'](_0x20c5('0xb0'));if(void 0x0===_0x19ad72){_0x19ad72={};for(const _0x1e3b2b of this[_0x20c5('0xe0')][_0x20c5('0xaa')][_0x20c5('0x29')][_0x20c5('0xd7')]())_0x19ad72[_0x1e3b2b]='';}_0x20c5('0x10')==typeof _0x19ad72&&(_0x19ad72={'main':_0x19ad72});let _0x71ba88=!0x1;for(const _0x5d983f of Object[_0x20c5('0x76')](_0x19ad72))_0x4d88a0[_0x5d983f]&&(_0x19ad72[_0x5d983f]!==_0x4d88a0[_0x5d983f]&&''!==_0x19ad72[_0x5d983f][_0x20c5('0x94')]()&&(_0x71ba88=!0x0),_0x19ad72[_0x5d983f]=_0x4d88a0[_0x5d983f]);_0x71ba88&&_0x2cab67(_0x20c5('0xc')),this['editor'][_0x20c5('0xee')]['set']('initialData',_0x19ad72);}[_0x20c5('0x42')](){if(!this[_0x20c5('0xe4')]){const _0x1e7d9c=this[_0x20c5('0xe0')][_0x20c5('0x37')][_0x20c5('0x2a')](_0x20c5('0xa1'));this[_0x20c5('0xe4')]=_0x1e7d9c[_0x20c5('0xb2')](_0x4d5bdc(this[_0x20c5('0xe0')]['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this[_0x20c5('0xe4')]&&(this[_0x20c5('0xe0')][_0x20c5('0x37')]['get']('PendingActions')[_0x20c5('0x1f')](this[_0x20c5('0xe4')]),this[_0x20c5('0xe4')]=null);}[_0x20c5('0x51')](_0x8b55df){const _0x2d9410=this['repository'][_0x20c5('0x2')]();_0x2d9410[_0x20c5('0xc8')]();let _0x19982e=0x0;for(;_0x19982e<_0x2d9410[_0x20c5('0xad')];){const _0x43529d=_0x2d9410[_0x19982e];if(_0x43529d===this['currentRevision']){_0x19982e++;continue;}if(_0x43529d['id']===this['_initialRevisionId'])break;const _0x1673c0=_0x8b55df['toVersion']-_0x43529d[_0x20c5('0x5d')]||_0x8b55df[_0x20c5('0x79')]-_0x43529d[_0x20c5('0x79')];if(_0x1673c0>0x0)break;if(_0x1673c0<0x0)_0x19982e++;else{if(!_0x8b55df[_0x20c5('0x55')]&&_0x43529d[_0x20c5('0x55')])break;if(_0x43529d[_0x20c5('0x55')]||!_0x8b55df[_0x20c5('0x55')]){if(_0x8b55df['createdAt']>_0x43529d[_0x20c5('0xbd')])break;_0x19982e++;}else _0x19982e++;}}return _0x19982e;}['setRevisionData'](_0x524716){const _0x20f781=this[_0x20c5('0x4c')][_0x20c5('0x73')](_0x524716['id']);if(_0x524716['createdAt']&&(_0x524716[_0x20c5('0xbd')]=new Date(_0x524716[_0x20c5('0xbd')])),_0x524716[_0x20c5('0x9')]){const _0x37cf2a=this[_0x20c5('0xe0')]['plugins'][_0x20c5('0x2a')](_0x20c5('0xa0'));_0x524716[_0x20c5('0xf3')]=_0x524716['authorsIds'][_0x20c5('0xd3')](_0x56e0dc=>_0x37cf2a[_0x20c5('0x35')](_0x56e0dc));}_0x20f781[_0x20c5('0xab')](_0x524716,!0x0);}[_0x20c5('0xf7')]({revision:_0x181e3f=null,from:_0x188b90=null,to:_0x2dcae7=null}){_0x188b90=null!==_0x188b90?_0x188b90:_0x181e3f['fromVersion'],_0x2dcae7=null!==_0x2dcae7?_0x2dcae7:_0x181e3f[_0x20c5('0x5d')];const _0x27d140=this[_0x20c5('0xb3')][_0x20c5('0x92')](_0x188b90,_0x2dcae7),_0x4846e9={'diffData':_0x27d140[_0x20c5('0x90')],'authorsIds':_0x27d140[_0x20c5('0x9')],'fromVersion':_0x188b90,'toVersion':_0x2dcae7};if(!_0x181e3f||_0x2dcae7!==_0x181e3f[_0x20c5('0x5d')]){const _0x333fd1=_0x2dcae7-0x1,_0x48a049=this['_source']['history'][_0x20c5('0x8')](_0x333fd1);_0x4846e9[_0x20c5('0xbd')]=_0x48a049&&_0x48a049[_0x20c5('0xbd')]||new Date();}if(this[_0x20c5('0x0')]&&_0x188b90===this[_0x20c5('0x0')][_0x20c5('0x79')])for(const _0x10f8ad of this['_loadedStateData'][_0x20c5('0xf3')])_0x4846e9[_0x20c5('0x9')][_0x20c5('0xba')](_0x10f8ad['id'])||_0x4846e9['authorsIds']['push'](_0x10f8ad['id']);return _0x4846e9;}[_0x20c5('0x47')](_0x3c6a8a){if(!_0x3c6a8a||_0x3c6a8a[_0x20c5('0x90')])return Promise[_0x20c5('0x17')]();{const _0x5decca=this[_0x20c5('0xe0')][_0x20c5('0xee')][_0x20c5('0x2a')](_0x20c5('0x14'));return this['adapter'][_0x20c5('0x73')]({'channelId':_0x5decca,'revisionId':_0x3c6a8a['id']})['then'](_0x3f7999=>{_0x3c6a8a[_0x20c5('0x90')]=_0x3f7999['diffData'];});}}[_0x20c5('0x20')](_0x18fe52,_0x4fa948,_0x41dcb0){if(this['_bufferedUpdates'][_0x20c5('0xcd')](_0x18fe52)){const _0x59255f=this['_bufferedUpdates']['get'](_0x18fe52);_0x4fa948=_0x41dcb0?{..._0x59255f,..._0x4fa948}:{..._0x4fa948,..._0x59255f};}this[_0x20c5('0x2e')][_0x20c5('0xe9')](_0x18fe52,_0x4fa948);}[_0x20c5('0xf0')](_0x1279b7){const _0x47ca8e=this[_0x20c5('0x4c')][_0x20c5('0x2')]();_0x47ca8e['reverse'](),_0x47ca8e[_0x20c5('0xc4')]();const _0x20cd99=_0x47ca8e[_0x20c5('0x5b')](_0x1f9a97=>_0x1f9a97['toVersion']<=_0x1279b7)[_0x20c5('0x5d')];return _0x20cd99<this[_0x20c5('0xdd')]?this[_0x20c5('0xdd')]:_0x20cd99;}[_0x20c5('0x41')](_0x318093){const _0x2027be=this[_0x20c5('0x4c')][_0x20c5('0x73')](this[_0x20c5('0x4c')]['length']-0x1);if(_0x2027be)this[_0x20c5('0xa4')]=_0x2027be['id'];else{const _0x17a51c=!this[_0x20c5('0xe0')][_0x20c5('0xaa')]['document']['roots']['find'](_0x19c1d6=>this['editor']['model'][_0x20c5('0x65')](_0x19c1d6)),_0x247d72=this['editor'][_0x20c5('0x37')][_0x20c5('0x2a')]('Users')['me']['id'],_0x47cea6=_0x4d5bdc(this[_0x20c5('0xe0')][_0x20c5('0xe8')],_0x17a51c?_0x20c5('0xde'):_0x20c5('0xbe'));this[_0x20c5('0x8c')]({'from':_0x318093,'to':_0x318093,'id':this[_0x20c5('0xa4')],'name':_0x47cea6,'creatorId':_0x247d72});}}[_0x20c5('0xe1')](_0xddb72){const _0x44b130=this[_0x20c5('0x4e')][_0x20c5('0x91')]();this[_0x20c5('0x7c')]=this[_0x20c5('0x4c')][_0x20c5('0x73')](_0x44b130),this[_0x20c5('0x7c')]||(this[_0x20c5('0x7c')]=this[_0x20c5('0x8c')]({'from':_0xddb72,'to':_0xddb72,'id':_0x44b130,'name':'','creatorId':null}));}[_0x20c5('0x8c')]({name:_0xb57c02,from:_0x12156d,to:_0x424518,creatorId:_0x4a519d,id:_0x2baeb5}){const _0x3365c6=this[_0x20c5('0xf7')]({'from':_0x12156d,'to':_0x424518});_0x3365c6['name']=_0xb57c02,_0x3365c6[_0x20c5('0x16')]=_0x4a519d,_0x3365c6['id']=_0x2baeb5;const _0x4f3852=this['addRevisionData'](_0x3365c6);return this['adapter']&&this['_bufferUpdate'](_0x3365c6['id'],_0x3365c6,!0x0),_0x4f3852;}['_setConversion'](){this[_0x20c5('0xe0')][_0x20c5('0x1e')][_0x20c5('0x88')](_0x20c5('0xda'))[_0x20c5('0x7d')]({'model':_0x20c5('0xcc')});}['_removeRevisionMarkers'](_0x2aa075){return(_0x2aa075=_0x2aa075[_0x20c5('0xa9')](_0x2f0054=>!_0x2f0054[_0x20c5('0x5c')]||_0x20c5('0x7a')!==_0x2f0054[_0x20c5('0x5c')]&&_0x20c5('0x45')!==_0x2f0054[_0x20c5('0x5c')]))[_0x20c5('0xce')](_0x46e3c6=>{_0x20c5('0x10')!=typeof _0x46e3c6&&(_0x46e3c6[_0x20c5('0xf2')]=this[_0x20c5('0x6e')](_0x46e3c6['children']),_0x46e3c6['attributes']=_0x46e3c6['attributes'][_0x20c5('0xa9')](_0xe87fd4=>!_0xe87fd4[0x0]['startsWith'](_0x20c5('0x3f'))));}),_0x2aa075;}}function j(_0x1db8ae,_0x4be03b){const _0x1fcdc1=_0x4be03b['editing'][_0x20c5('0x58')]['document'];if(_0x20c5('0x10')==typeof _0x1db8ae)return new _0x2ae193(_0x1fcdc1,_0x1db8ae);{const _0x110adc=_0x1db8ae[_0x20c5('0xf2')][_0x20c5('0xd3')](_0x327825=>j(_0x327825,_0x4be03b));return new(J[_0x1db8ae['type']]||_0x57d52e)(_0x1fcdc1,_0x1db8ae[_0x20c5('0x5c')],_0x1db8ae[_0x20c5('0xe')],_0x110adc);}}class B{constructor(_0x4f8989){this[_0x20c5('0xe0')]=_0x4f8989,this[_0x20c5('0x9a')]=new Map(),this[_0x20c5('0x6d')]=-0x1,this['_lastTo']=-0x1,this[_0x20c5('0x81')]=new Map(),this['_diffRoots']=new Map(),this[_0x20c5('0x4b')]=new Map(),this[_0x20c5('0x8e')]=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this[_0x20c5('0xaf')]=new Map(),this[_0x20c5('0x1d')]=0x1,this[_0x20c5('0xa6')]=this[_0x20c5('0xe0')]['model'][_0x20c5('0x29')][_0x20c5('0xd7')](),this[_0x20c5('0xa6')]['push'](_0x20c5('0x1b'));}['init'](_0x2335ae){this[_0x20c5('0x5a')]=_0x2335ae;const _0x1eb489=new Map();for(const _0x359127 of this['_rootNames']){const _0x1a809c=H(this[_0x20c5('0xe0')][_0x20c5('0xaa')][_0x20c5('0x29')]['getRoot'](_0x359127));_0x1eb489['set'](_0x359127,_0x1a809c);}const _0x276583=Array[_0x20c5('0x36')](this[_0x20c5('0xe0')][_0x20c5('0xaa')]['markers'])[_0x20c5('0xd3')](_0x3b6ff6=>[_0x3b6ff6[_0x20c5('0x5c')],_0x3b6ff6['getRange']()]),_0x3da17e=this['source'][_0x20c5('0xc9')];this[_0x20c5('0xf5')](_0x3da17e,_0x1eb489,_0x276583),this[_0x20c5('0x9e')]=this['_revisionId'];}[_0x20c5('0x92')](_0x426a43,_0x3d9fbb){if(this[_0x20c5('0x6d')]===_0x426a43&&this[_0x20c5('0xeb')]<=_0x3d9fbb)this[_0x20c5('0x9a')]['size']>0x1&&this[_0x20c5('0x21')](this[_0x20c5('0xeb')]),this[_0x20c5('0x75')](this[_0x20c5('0xeb')],_0x3d9fbb,!0x0);else{if(!this[_0x20c5('0x9a')][_0x20c5('0xcd')](_0x426a43)){const _0x30d8e0=this['_getPreviousFrom'](_0x426a43);this[_0x20c5('0x33')](_0x30d8e0,_0x426a43,!0x1);}this[_0x20c5('0x33')](_0x426a43,_0x3d9fbb,!0x0);}return this[_0x20c5('0x6d')]=_0x426a43,this[_0x20c5('0xeb')]=_0x3d9fbb,this[_0x20c5('0x34')]();}[_0x20c5('0x74')](_0x5eda4c){this[_0x20c5('0x3c')](),this[_0x20c5('0x6d')]=_0x5eda4c[_0x20c5('0x79')],this[_0x20c5('0xeb')]=_0x5eda4c[_0x20c5('0x5d')];for(const _0x185831 in _0x5eda4c[_0x20c5('0x90')]){const _0xe2329e=this[_0x20c5('0xe7')](_0x5eda4c['diffData'][_0x185831]['deletions']);_0xe2329e[_0x20c5('0x7e')]=_0x185831,this[_0x20c5('0x4b')][_0x20c5('0xe9')](_0x185831,_0xe2329e);const _0x1840f5=this[_0x20c5('0x6b')](_0xe2329e);this[_0x20c5('0x32')]['set'](_0x185831,_0x1840f5);for(const [_0x26c1f5,_0xf510ed]of _0xe2329e[_0x20c5('0x67')]){if(!_0x26c1f5['startsWith'](_0x20c5('0xd1')))continue;const _0x252652=_0x26c1f5['split'](':')[0x2];for(const _0x29bf2b of _0xf510ed['getWalker']({'singleCharacters':!0x0})){const _0x45b441=this[_0x20c5('0x15')](_0x29bf2b),_0x500516=_0x20c5('0x56')==_0x29bf2b[_0x20c5('0x53')]?_0x29bf2b[_0x20c5('0xf6')][_0x20c5('0xcf')][_0x20c5('0x3e')](0x0,-0x1):_0x29bf2b[_0x20c5('0xf6')][_0x20c5('0xcf')],_0x5bec86=_0x1840f5[_0x20c5('0x80')](_0x500516)[_0x20c5('0x43')](_0x45b441);this['_touched'][_0x20c5('0xe9')](_0x5bec86,{'userId':_0x252652});}}}this[_0x20c5('0x9e')]=this['_revisionId'];const _0x4f195d=[...Array(this[_0x20c5('0x1d')])[_0x20c5('0x76')]()][_0x20c5('0x3e')](0x1)['filter'](_0xd7ede2=>!this[_0x20c5('0x93')][_0x20c5('0xcd')](_0xd7ede2));let _0x5ac6dc=0x0;for(const _0xc926cc in _0x5eda4c[_0x20c5('0x90')]){const _0x1fca9e=this[_0x20c5('0xe7')](_0x5eda4c[_0x20c5('0x90')][_0xc926cc][_0x20c5('0xea')]);_0x1fca9e['rootName']=_0xc926cc,this[_0x20c5('0xed')][_0x20c5('0xe9')](_0xc926cc,_0x1fca9e);const _0x3ee55e=this['_makeIdsRoot'](_0x1fca9e,Number[_0x20c5('0x57')]);this['_idsRoots'][_0x20c5('0xe9')](_0xc926cc,_0x3ee55e);for(const [_0x4a0992,_0x116572]of _0x1fca9e[_0x20c5('0x67')]){if(!_0x4a0992['startsWith'](_0x20c5('0xd1')))continue;const _0x37cda3=_0x4a0992['split'](':')[0x2];for(const _0x7b9f22 of _0x116572[_0x20c5('0xc5')]({'singleCharacters':!0x0})){const _0x4c1bba=this[_0x20c5('0x15')](_0x7b9f22),_0x599699=this[_0x20c5('0x1d')]++,_0x287220=_0x20c5('0x56')==_0x7b9f22[_0x20c5('0x53')]?_0x7b9f22[_0x20c5('0xf6')][_0x20c5('0xcf')][_0x20c5('0x3e')](0x0,-0x1):_0x7b9f22[_0x20c5('0xf6')][_0x20c5('0xcf')];_0x3ee55e['getNodeByPath'](_0x287220)[_0x20c5('0x9d')](_0x4c1bba,_0x599699),this[_0x20c5('0x93')][_0x20c5('0xe9')](_0x599699,{'userId':_0x37cda3});}}for(const _0x14ab42 of this['editor']['model'][_0x20c5('0x31')](_0x1fca9e)['getWalker']({'singleCharacters':!0x0})){const _0x5c91e6=this[_0x20c5('0x15')](_0x14ab42),_0xb9b17d=_0x20c5('0x56')==_0x14ab42[_0x20c5('0x53')]?_0x14ab42[_0x20c5('0xf6')]['path']['slice'](0x0,-0x1):_0x14ab42[_0x20c5('0xf6')][_0x20c5('0xcf')],_0x5f1502=_0x3ee55e[_0x20c5('0x80')](_0xb9b17d);_0x5f1502[_0x20c5('0x43')](_0x5c91e6)>0x0||_0x5f1502['_setAttribute'](_0x5c91e6,_0x4f195d[_0x5ac6dc++]);}const _0x336492=new _0x1af70e();_0x336492['rootName']='$graveyard',this[_0x20c5('0x4b')][_0x20c5('0xe9')](_0x20c5('0x1b'),_0x336492),this[_0x20c5('0x32')]['set'](_0x20c5('0x1b'),this[_0x20c5('0x6b')](_0x336492,0x1));const _0x3c8cc4=new _0x1af70e();_0x3c8cc4[_0x20c5('0x7e')]=_0x20c5('0x1b'),this[_0x20c5('0xed')][_0x20c5('0xe9')](_0x20c5('0x1b'),_0x3c8cc4),this[_0x20c5('0x8e')]['set'](_0x20c5('0x1b'),this[_0x20c5('0x6b')](_0x3c8cc4,0x1));for(const [_0xe3cba8,_0x1849ae]of _0x1fca9e[_0x20c5('0x67')])_0xe3cba8[_0x20c5('0xac')](_0x20c5('0xd1'))||this[_0x20c5('0x81')]['set'](_0xe3cba8,_0x1849ae);}const _0x115e39=Array['from'](this[_0x20c5('0xed')])[_0x20c5('0xd3')](([_0x377e5d,_0x525b2e])=>[_0x377e5d,H(_0x525b2e)]);this[_0x20c5('0xf5')](this[_0x20c5('0xeb')],_0x115e39,this[_0x20c5('0x81')]);}['_makeModelFromViewString'](_0x46d957){const _0x250382=JSON['parse'](_0x46d957),_0x11e25b=this[_0x20c5('0xe0')][_0x20c5('0x2d')][_0x20c5('0x58')][_0x20c5('0x29')],_0x2401ca=new _0x5406ba(_0x11e25b,_0x250382[_0x20c5('0xd3')](_0x1c093b=>j(_0x1c093b,this[_0x20c5('0xe0')])));return this[_0x20c5('0xe0')]['data'][_0x20c5('0x52')](_0x2401ca);}[_0x20c5('0x39')](){const _0x2bdc19=new Map();for(const _0x4924d6 of this['_rootNames']){const _0x327894=new _0x1af70e();_0x327894['rootName']=_0x4924d6,_0x2bdc19[_0x20c5('0xe9')](_0x4924d6,_0x327894);}this[_0x20c5('0xf5')](Number[_0x20c5('0x57')],_0x2bdc19,[]);}[_0x20c5('0xf5')](_0x5f2bb5,_0x438927,_0x5f2506){const _0x1fd68e=new Map(_0x438927),_0x5ab638=new Map();for(const [_0x35e9af,_0x4fb203]of _0x5f2506)_0x5ab638[_0x20c5('0xe9')](_0x35e9af,{'start':_0x4fb203[_0x20c5('0xc7')]['clone'](),'end':_0x4fb203[_0x20c5('0x7f')][_0x20c5('0xb')](),'rootName':_0x4fb203[_0x20c5('0x26')]['rootName']});this[_0x20c5('0x9a')][_0x20c5('0xe9')](_0x5f2bb5,{'roots':_0x1fd68e,'markers':_0x5ab638});}['_removeMetaData'](_0x116e3e){this[_0x20c5('0x9a')][_0x20c5('0x48')](_0x116e3e);}[_0x20c5('0x11')](){this['_reset'](),this[_0x20c5('0x6d')]=-0x1,this[_0x20c5('0xeb')]=-0x1,this[_0x20c5('0x9a')]['clear'](),this[_0x20c5('0xa5')](this[_0x20c5('0x5a')]);}[_0x20c5('0x3c')](){this[_0x20c5('0x93')][_0x20c5('0x66')](),this[_0x20c5('0xaf')]['clear'](),this[_0x20c5('0xed')][_0x20c5('0x66')](),this[_0x20c5('0x4b')]['clear'](),this[_0x20c5('0x8e')][_0x20c5('0x66')](),this[_0x20c5('0x32')][_0x20c5('0x66')](),this[_0x20c5('0x81')][_0x20c5('0x66')](),this[_0x20c5('0x1d')]=0x1,this[_0x20c5('0x9e')]=this[_0x20c5('0x1d')];}[_0x20c5('0x6b')](_0x290c89,_0xe4a6be=null){let _0x85820=null;_0x290c89['is']('documentFragment')||(_0x85820=new _0x4261db(_0x290c89['name'],{'vid_start':null===_0xe4a6be?this[_0x20c5('0x1d')]++:_0xe4a6be++}));const _0x325918=[];for(const _0x28c29b of _0x290c89[_0x20c5('0x61')]())if(_0x28c29b['is'](_0x20c5('0x6f'))){_0x325918['push'](this[_0x20c5('0x6b')](_0x28c29b,_0xe4a6be));const _0x3fd6d0=_0x325918[_0x325918['length']-0x1];null!==_0xe4a6be&&(_0xe4a6be=_0x3fd6d0['is'](_0x20c5('0x6f'),_0x20c5('0x8d'))?_0x3fd6d0[_0x20c5('0x43')]('vid')+0x1:_0x3fd6d0['getAttribute'](_0x20c5('0x4d'))+0x1);}else for(let _0x382145=0x0;_0x382145<_0x28c29b[_0x20c5('0xd0')];_0x382145++)_0x325918['push'](new _0x4261db(_0x20c5('0x8d'),{'vid':null===_0xe4a6be?this[_0x20c5('0x1d')]++:_0xe4a6be++}));if(_0x290c89['is'](_0x20c5('0x44'))){const _0x23c1df=new _0x1af70e(_0x325918);return _0x23c1df['rootName']=_0x290c89[_0x20c5('0x7e')],_0x23c1df;}return _0x85820['_setAttribute']('vid_end',null===_0xe4a6be?this[_0x20c5('0x1d')]++:_0xe4a6be++),_0x85820[_0x20c5('0xe5')](0x0,_0x325918),_0x85820;}[_0x20c5('0x33')](_0x175ac4,_0x1da69a,_0x572b6a){this[_0x20c5('0x3c')]();const {roots:_0x3f2c80,markers:_0x34d775}=this[_0x20c5('0x9a')][_0x20c5('0x2a')](_0x175ac4);this[_0x20c5('0x4b')]=new Map(_0x3f2c80);for(const [_0x57474d,_0x36c1d4]of this[_0x20c5('0x4b')])if('$graveyard'!==_0x57474d&&(this[_0x20c5('0xed')][_0x20c5('0xe9')](_0x57474d,H(_0x36c1d4)),_0x572b6a)){const _0x333075=this[_0x20c5('0x1d')];this[_0x20c5('0x8e')]['set'](_0x57474d,this['_makeIdsRoot'](_0x36c1d4)),this[_0x20c5('0x32')]['set'](_0x57474d,this[_0x20c5('0x6b')](_0x36c1d4,_0x333075));}this[_0x20c5('0x9e')]=this[_0x20c5('0x1d')],this[_0x20c5('0xed')][_0x20c5('0xe9')](_0x20c5('0x1b'),H(this[_0x20c5('0x4b')]['get'](_0x20c5('0x1b')))),_0x572b6a&&this[_0x20c5('0x8e')][_0x20c5('0xe9')](_0x20c5('0x1b'),this[_0x20c5('0x6b')](this['_baseRoots'][_0x20c5('0x2a')]('$graveyard')));for(const [_0x10d7b1,_0x34491c]of _0x34d775){const _0x44ee77=this[_0x20c5('0x4b')][_0x20c5('0x2a')](_0x34491c[_0x20c5('0x7e')]),_0x5c792f=this[_0x20c5('0xed')]['get'](_0x34491c[_0x20c5('0x7e')]),_0x3a273f=new _0x14f5b3(this['_fixPosition'](_0x34491c[_0x20c5('0xc7')],_0x44ee77),this['_fixPosition'](_0x34491c[_0x20c5('0x7f')],_0x44ee77)),_0x2ccbe4=this[_0x20c5('0x54')](_0x3a273f,_0x5c792f);_0x44ee77['markers'][_0x20c5('0xe9')](_0x10d7b1,_0x3a273f),this['_markers'][_0x20c5('0xe9')](_0x10d7b1,_0x2ccbe4);}this[_0x20c5('0x75')](_0x175ac4,_0x1da69a,_0x572b6a);}[_0x20c5('0x75')](_0x38a8ac,_0x374218,_0x20126c){for(const _0x561326 of this[_0x20c5('0x5a')][_0x20c5('0x8b')](_0x38a8ac,_0x374218))this[_0x20c5('0x7b')](_0x561326,_0x20126c);for(const _0x3e7e07 of this['_diffRoots']['values']())_0x3e7e07['markers'][_0x20c5('0x66')]();for(const [_0x47687d,_0x1d8190]of this[_0x20c5('0x81')]){this[_0x20c5('0xed')][_0x20c5('0x2a')](_0x1d8190['root'][_0x20c5('0x7e')])['markers'][_0x20c5('0xe9')](_0x47687d,_0x1d8190[_0x20c5('0xb')]());}this['_saveMetaData'](_0x374218,Array[_0x20c5('0x36')](this[_0x20c5('0xed')])[_0x20c5('0xd3')](([_0x3247fc,_0x549718])=>[_0x3247fc,H(_0x549718)]),this[_0x20c5('0x81')]);}['_getPreviousFrom'](_0x27df46){const _0x7f1a3f=Array['from'](this['_savedMetaData'][_0x20c5('0x76')]());_0x7f1a3f[_0x20c5('0x3b')]((_0x2480bd,_0x1cafc1)=>_0x2480bd-_0x1cafc1),_0x7f1a3f[_0x20c5('0xc8')]();for(const _0x593d1c of _0x7f1a3f)if(_0x593d1c<_0x27df46)return _0x593d1c;return this[_0x20c5('0x39')](),Number[_0x20c5('0x57')];}[_0x20c5('0x18')](_0x186aae,_0x2c7d26){const _0x4b4bb7=Array[_0x20c5('0x36')](_0x2c7d26[_0x20c5('0x67')])[_0x20c5('0xd3')](([_0x6753e5,_0x44782e])=>[_0x6753e5,this['_fixRange'](_0x44782e,_0x186aae)]);_0x186aae[_0x20c5('0x67')]=new Map(_0x4b4bb7);}[_0x20c5('0x30')](_0x391f06){for(const _0x45e2e2 of this[_0x20c5('0x81')]['values']()){const _0x5c5dca=_0x45e2e2['getTransformedByOperation'](_0x391f06),_0x17cd05=_0x14f5b3['_createFromRanges'](_0x5c5dca);_0x45e2e2[_0x20c5('0xc7')]=_0x17cd05['start'],_0x45e2e2[_0x20c5('0x7f')]=_0x17cd05['end'];}}[_0x20c5('0x7b')](_0x9cccd9,_0x594fb9){const _0x45b1fa=this['_cloneOperation'](_0x9cccd9,this[_0x20c5('0xed')]);if(_0x20c5('0x8f')!==_0x9cccd9['type']&&(_0x45b1fa[_0x20c5('0x38')](),this['_transformMarkers'](_0x45b1fa)),_0x594fb9)switch(_0x45b1fa[_0x20c5('0x53')]){case _0x20c5('0xf1'):this[_0x20c5('0xa3')](_0x9cccd9);break;case'move':case _0x20c5('0x1f'):case _0x20c5('0x4'):this[_0x20c5('0x7')](_0x9cccd9);break;case _0x20c5('0x83'):this[_0x20c5('0x86')](_0x9cccd9);break;case _0x20c5('0xbf'):this['_handleSplitOperation'](_0x9cccd9);break;case _0x20c5('0x8f'):this[_0x20c5('0x72')](_0x9cccd9);}}[_0x20c5('0xdf')](_0x4d4faa,_0x3f8b76){const _0x2131e9=_0x4d4faa[_0x20c5('0xb')]();return _0x2131e9['_authorId']=_0x4d4faa[_0x20c5('0x6c')],this[_0x20c5('0x13')](_0x2131e9,_0x3f8b76),_0x2131e9;}['_getBaseVids'](_0x22f085){return _0x22f085['map'](_0x2dd7b0=>{const _0x5a089f=this[_0x20c5('0x15')](_0x2dd7b0);return Number(_0x2dd7b0[_0x20c5('0xb8')][_0x20c5('0x43')](_0x5a089f));});}['_generateTape'](_0x51f6a3,_0x91a0da){if(_0x51f6a3['is'](_0x20c5('0x6f'),_0x20c5('0x8d')))_0x91a0da[_0x20c5('0xdb')]({'item':_0x51f6a3,'type':_0x20c5('0x28')});else{_0x51f6a3['is']('element')&&_0x91a0da[_0x20c5('0xdb')]({'item':_0x51f6a3,'type':_0x20c5('0xc0')});for(const _0x357788 of _0x51f6a3[_0x20c5('0x61')]())this[_0x20c5('0x6')](_0x357788,_0x91a0da);_0x51f6a3['is'](_0x20c5('0x6f'))&&_0x91a0da[_0x20c5('0xdb')]({'item':_0x51f6a3,'type':'elementEnd'});}return _0x91a0da;}[_0x20c5('0x34')](){const _0x367177=this[_0x20c5('0xe0')][_0x20c5('0xaa')][_0x20c5('0x29')][_0x20c5('0xd7')](),_0x41a90f=new Map(this['_touched']),_0x80f2d3=new Map(_0x41a90f),_0x440e10=new Map(),_0x488867={'insertions':{},'deletions':{}},_0x1c085b={'insertions':{},'deletions':{}},_0x529465=new Map();for(const _0x335c17 of _0x367177){const _0x4dd314=this['_diffRoots'][_0x20c5('0x2a')](_0x335c17),_0x36a244=this[_0x20c5('0x4b')][_0x20c5('0x2a')](_0x335c17);_0x488867[_0x20c5('0xea')][_0x335c17]=H(_0x4dd314),_0x488867['deletions'][_0x335c17]=H(_0x36a244),this[_0x20c5('0x18')](_0x488867[_0x20c5('0xd4')][_0x335c17],_0x36a244),this[_0x20c5('0x18')](_0x488867['insertions'][_0x335c17],_0x4dd314),_0x1c085b[_0x20c5('0xea')][_0x335c17]=this[_0x20c5('0x6')](this[_0x20c5('0x8e')]['get'](_0x335c17),[]),_0x1c085b[_0x20c5('0xd4')][_0x335c17]=this[_0x20c5('0x6')](this[_0x20c5('0x32')][_0x20c5('0x2a')](_0x335c17),[]);}for(const _0x3c3f75 of _0x367177){const _0x5cb204=_0x1c085b['insertions'][_0x3c3f75];for(const _0x51ba1f of _0x5cb204){const _0x3ee760=this[_0x20c5('0x15')](_0x51ba1f),_0x3efe23=_0x51ba1f[_0x20c5('0xb8')]['getAttribute'](_0x3ee760);_0x80f2d3[_0x20c5('0x48')](_0x3efe23),_0x3efe23>=this[_0x20c5('0x9e')]&&_0x440e10['set'](_0x3efe23,_0x41a90f[_0x20c5('0x2a')](_0x3efe23));}}for(const _0x354572 of _0x367177){const _0x2d5fba=_0x1c085b['insertions'][_0x354572],_0x29705f=this[_0x20c5('0x27')](_0x1c085b['deletions'][_0x354572]);let _0x370422=0x0;for(const _0x3c431d of _0x2d5fba){const _0x4459a1=this[_0x20c5('0x15')](_0x3c431d),_0x277ec8=_0x3c431d[_0x20c5('0xb8')]['getAttribute'](_0x4459a1);if(!_0x440e10[_0x20c5('0xcd')](_0x277ec8)&&!_0x529465[_0x20c5('0xcd')](_0x277ec8)){if(_0x80f2d3[_0x20c5('0xcd')](_0x277ec8))_0x370422++;else{if(_0x277ec8!=_0x29705f[_0x370422]){const _0x588008=_0x41a90f[_0x20c5('0x2a')](_0x277ec8)||_0x41a90f[_0x20c5('0x2a')](_0x29705f[_0x370422]);for(;_0x277ec8!=_0x29705f[_0x370422];)_0x80f2d3[_0x20c5('0xcd')](_0x29705f[_0x370422])||(_0x529465['set'](_0x29705f[_0x370422],_0x588008),_0x41a90f[_0x20c5('0xe9')](_0x29705f[_0x370422],_0x588008)),_0x370422++;}_0x370422++;}}}}for(const _0x325103 of _0x367177){const _0x7ef680=_0x1c085b[_0x20c5('0xea')][_0x325103];for(const _0x5cb44f of _0x7ef680){const _0x1338f1=this['_getVidAttributeName'](_0x5cb44f),_0x4f35df=_0x5cb44f[_0x20c5('0xb8')][_0x20c5('0x43')](_0x1338f1);if(_0x529465[_0x20c5('0xcd')](_0x4f35df)){const _0x2c0f21=_0x529465[_0x20c5('0x2a')](_0x4f35df);_0x80f2d3[_0x20c5('0xcd')](_0x4f35df)||_0x80f2d3[_0x20c5('0xe9')](_0x4f35df,{..._0x2c0f21}),_0x440e10['set'](_0x4f35df,{..._0x2c0f21});}}}for(const _0x13c17d of _0x80f2d3[_0x20c5('0x76')]())_0x13c17d>=this[_0x20c5('0x9e')]&&_0x80f2d3['delete'](_0x13c17d);const _0x2d68bc=new Map();for(const _0x1d3443 of _0x367177){let _0x44bc2a=_0x1c085b[_0x20c5('0xea')][_0x1d3443];for(const _0xde280c of _0x44bc2a)if(_0xde280c['item']['is']('element',_0x20c5('0x68'))){const _0x27af18=this[_0x20c5('0x15')](_0xde280c),_0x2c4e05=_0xde280c['item'][_0x20c5('0x43')](_0x27af18);if(_0x440e10['has'](_0x2c4e05)){const _0x19dd8c=_0xde280c[_0x20c5('0xb8')][_0x20c5('0xc1')]['parent'][_0x20c5('0x43')](_0x20c5('0x64')),_0x22596a=_0x2d68bc[_0x20c5('0x2a')](_0x19dd8c)||new Set();_0x22596a[_0x20c5('0xb2')](_0x440e10['get'](_0x2c4e05)[_0x20c5('0x95')]),_0x2d68bc[_0x20c5('0xe9')](_0x19dd8c,_0x22596a);}}_0x44bc2a=_0x1c085b[_0x20c5('0xd4')][_0x1d3443];for(const _0x4940db of _0x44bc2a)if(_0x4940db[_0x20c5('0xb8')]['is'](_0x20c5('0x6f'),_0x20c5('0x68'))){const _0x192770=this[_0x20c5('0x15')](_0x4940db),_0x3db5b6=_0x4940db[_0x20c5('0xb8')][_0x20c5('0x43')](_0x192770);if(_0x80f2d3[_0x20c5('0xcd')](_0x3db5b6)){const _0x5517dd=_0x4940db['item'][_0x20c5('0xc1')][_0x20c5('0xc1')][_0x20c5('0x43')](_0x20c5('0x64')),_0x1bdb12=_0x2d68bc[_0x20c5('0x2a')](_0x5517dd)||new Set();_0x1bdb12[_0x20c5('0xb2')](_0x80f2d3[_0x20c5('0x2a')](_0x3db5b6)[_0x20c5('0x95')]),_0x2d68bc[_0x20c5('0xe9')](_0x5517dd,_0x1bdb12);}}for(const _0x13536d of _0x2d68bc['keys']())(_0x440e10[_0x20c5('0xcd')](_0x13536d)||_0x80f2d3[_0x20c5('0xcd')](_0x13536d))&&_0x2d68bc['delete'](_0x13536d);}for(const _0x32484e of _0x367177){const _0x215abd=_0x1c085b['insertions'][_0x32484e];let _0x2fee4b=null,_0x3c3c84=null;for(const _0x5026b8 of _0x215abd){const _0xe0be09=this[_0x20c5('0x15')](_0x5026b8),_0x2344cb=_0x5026b8[_0x20c5('0xb8')]['getAttribute'](_0xe0be09),_0x2bee13=_0x2d68bc[_0x20c5('0x2a')](_0x2344cb);_0x2bee13&&_0x20c5('0xc0')==_0x5026b8[_0x20c5('0x53')]&&(_0x2fee4b=Array[_0x20c5('0x36')](_0x2bee13)[0x0],_0x3c3c84=_0x5026b8['item'][_0x20c5('0x43')](_0x20c5('0x4d'))),_0x2fee4b&&(_0x80f2d3[_0x20c5('0xe9')](_0x2344cb,{'userId':_0x2fee4b}),_0x440e10[_0x20c5('0xe9')](_0x2344cb,{'userId':_0x2fee4b})),_0x2344cb==_0x3c3c84&&(_0x2fee4b=null,_0x3c3c84=null);}}const _0x2a12f9={},_0x3a217d=new Set();for(const _0x234fe9 of _0x367177){const _0x44c557=_0x488867[_0x20c5('0xd4')][_0x234fe9],_0x2f8f0b=_0x488867['insertions'][_0x234fe9];for(const {userId:_0x57fe87}of this[_0x20c5('0xaf')][_0x20c5('0x46')]())null!==_0x57fe87&&_0x3a217d[_0x20c5('0xb2')](_0x57fe87);this[_0x20c5('0xa')](_0x2f8f0b,_0x1c085b['insertions'][_0x234fe9],_0x440e10,_0x20c5('0x96'),_0x3a217d),this[_0x20c5('0xa')](_0x44c557,_0x1c085b['deletions'][_0x234fe9],_0x80f2d3,'deletion',_0x3a217d),_0x2a12f9[_0x234fe9]={'insertions':this[_0x20c5('0x3a')](_0x2f8f0b),'deletions':this[_0x20c5('0x3a')](_0x44c557)};}return{'diffData':_0x2a12f9,'authorsIds':Array[_0x20c5('0x36')](_0x3a217d)};}['_processRootBeforeSave'](_0x48e92a){for(const [,_0x54a16d]of _0x48e92a[_0x20c5('0x67')]){const _0x4ae0bf=_0x54a16d[_0x20c5('0xc7')][_0x20c5('0x12')]()['filter'](_0x20509f=>_0x20c5('0x68')==_0x20509f['name']);for(const _0x540c98 of _0x4ae0bf)0x1==_0x540c98[_0x20c5('0xb9')]&&_0x540c98[_0x20c5('0x99')](0x0)['is']('element',_0x20c5('0x3'))&&_0x540c98['getChild'](0x0)[_0x20c5('0x9d')](_0x20c5('0x63'),!0x0);}}[_0x20c5('0x3a')](_0x1c1050){this[_0x20c5('0x2b')](_0x1c1050);const _0x20e681=this[_0x20c5('0xe0')][_0x20c5('0x50')]['toView'](_0x1c1050,{}),_0x3b90c8=Array[_0x20c5('0x36')](_0x20e681['getChildren']())[_0x20c5('0xd3')](_0x447457=>this[_0x20c5('0xe2')](_0x447457));return JSON['stringify'](_0x3b90c8);}[_0x20c5('0xe2')](_0x5b1d08){if(_0x5b1d08['is'](_0x20c5('0x28')))return _0x5b1d08['data'];return{'type':Object[_0x20c5('0x76')](J)[_0x20c5('0x5b')](_0x22cc8d=>_0x5b1d08 instanceof J[_0x22cc8d]),'name':_0x5b1d08[_0x20c5('0x5c')],'attributes':Array[_0x20c5('0x36')](_0x5b1d08[_0x20c5('0x97')]()),'children':Array[_0x20c5('0x36')](_0x5b1d08[_0x20c5('0x61')]())['map'](_0x4c57f7=>this[_0x20c5('0xe2')](_0x4c57f7))};}['_markChanges'](_0x3b4467,_0x27327f,_0x21d6d7,_0x58886e,_0x4645fb){let _0xfc45d=null,_0x11f47a=null,_0x44e2ff=0x0;const _0x533ff1=this[_0x20c5('0xe0')][_0x20c5('0xaa')];for(let _0x34418c=0x0;_0x34418c<_0x27327f[_0x20c5('0xad')];_0x34418c++){const _0x2cc4a0=this['_getVidAttributeName'](_0x27327f[_0x34418c]),_0x58d179=_0x27327f[_0x34418c][_0x20c5('0xb8')][_0x20c5('0x43')](_0x2cc4a0),_0x3ff410=_0x21d6d7[_0x20c5('0x2a')](_0x58d179),_0x2d15b1=_0x34418c==_0x27327f[_0x20c5('0xad')]-0x1;(!_0xfc45d&&_0x3ff410&&(_0xfc45d=_0x3ff410,_0x11f47a=_0x27327f[_0x34418c]),_0xfc45d&&(!_0x3ff410||_0x3ff410[_0x20c5('0x95')]!=_0xfc45d['userId']))&&(_0x331b8f(_0x3ff410,q(_0x11f47a,_0x3b4467,_0x533ff1),q(_0x27327f[_0x34418c],_0x3b4467,_0x533ff1)),_0xfc45d=_0x3ff410||null,_0x11f47a=_0x3ff410?_0x27327f[_0x34418c]:null),_0xfc45d&&_0x2d15b1&&_0x331b8f(_0x3ff410,q(_0x11f47a,_0x3b4467,_0x533ff1),G(_0x27327f[_0x34418c],_0x3b4467,_0x533ff1));}function _0x331b8f(_0x352a92,_0x38f328,_0x4c0b17){const _0x500ff6=_0xfc45d['userId'],_0x30d8ad=_0x20c5('0xd1')+_0x58886e+':'+_0x500ff6+':'+_0x44e2ff++,_0x16f3eb=_0x533ff1[_0x20c5('0x5e')](_0x38f328,_0x4c0b17);_0x3b4467[_0x20c5('0x67')][_0x20c5('0xe9')](_0x30d8ad,_0x16f3eb),null!==_0x500ff6&&_0x4645fb[_0x20c5('0xb2')](_0x500ff6);}}[_0x20c5('0x15')](_0x1d2a7d){switch(_0x1d2a7d['type']){case _0x20c5('0xc0'):return _0x20c5('0x64');case _0x20c5('0x56'):return _0x20c5('0x4d');default:return'vid';}}[_0x20c5('0x13')](_0x4f72d7,_0x2f4b7e){_0x4f72d7[_0x20c5('0xbb')]=null;for(const _0x542ff0 in _0x4f72d7){if(_0x4f72d7[_0x542ff0]instanceof _0x5b495d){const _0x309a49=_0x2f4b7e[_0x20c5('0x2a')](_0x4f72d7[_0x542ff0][_0x20c5('0x26')][_0x20c5('0x7e')]);_0x4f72d7[_0x542ff0]=this[_0x20c5('0xcb')](_0x4f72d7[_0x542ff0],_0x309a49);}if(_0x4f72d7[_0x542ff0]instanceof _0x14f5b3){const _0x5e24f0=_0x2f4b7e[_0x20c5('0x2a')](_0x4f72d7[_0x542ff0]['root']['rootName']);_0x4f72d7[_0x542ff0]=this[_0x20c5('0x54')](_0x4f72d7[_0x542ff0],_0x5e24f0);}}_0x4f72d7[_0x20c5('0x26')]&&(_0x4f72d7[_0x20c5('0x26')]=_0x2f4b7e[_0x20c5('0x2a')](_0x4f72d7['root'][_0x20c5('0x7e')]));}[_0x20c5('0x54')](_0x47f600,_0x319dfc){return this[_0x20c5('0xe0')][_0x20c5('0xaa')][_0x20c5('0x5e')](this[_0x20c5('0xcb')](_0x47f600['start'],_0x319dfc),this[_0x20c5('0xcb')](_0x47f600['end'],_0x319dfc));}[_0x20c5('0xcb')](_0x307daf,_0x3b5010){return this[_0x20c5('0xe0')][_0x20c5('0xaa')][_0x20c5('0xef')](_0x3b5010,_0x307daf[_0x20c5('0xcf')],_0x307daf[_0x20c5('0x4f')]);}[_0x20c5('0xa3')](_0x463b5a){const _0x3dbe33=this[_0x20c5('0x8e')][_0x20c5('0x2a')](_0x463b5a[_0x20c5('0xc2')]['root'][_0x20c5('0x7e')]),_0x28667d=this[_0x20c5('0xcb')](_0x463b5a[_0x20c5('0xc2')],_0x3dbe33),_0x474df0=null===_0x463b5a[_0x20c5('0x6c')]?null:_0x463b5a[_0x20c5('0x6c')]||this[_0x20c5('0xe0')][_0x20c5('0x37')]['get'](_0x20c5('0xa0'))['me']['id'],_0x5031a1=_0x28667d[_0x20c5('0xc1')],_0x3abef8=this[_0x20c5('0x1d')],_0x5923e0=[];for(const _0x246d92 of _0x463b5a[_0x20c5('0x70')])if(_0x246d92['is'](_0x20c5('0x6f')))_0x5923e0[_0x20c5('0xdb')](this['_makeIdsRoot'](_0x246d92));else for(let _0x1ba1d3=0x0;_0x1ba1d3<_0x246d92[_0x20c5('0xd0')];_0x1ba1d3++)_0x5923e0['push'](new _0x4261db(_0x20c5('0x8d'),{'vid':this[_0x20c5('0x1d')]++}));const _0x50cc7a=this[_0x20c5('0x1d')];for(let _0x25b6ed=_0x3abef8;_0x25b6ed<_0x50cc7a;_0x25b6ed++)this[_0x20c5('0x93')][_0x20c5('0xe9')](_0x25b6ed,{'userId':_0x474df0});_0x5031a1[_0x20c5('0xe5')](_0x28667d[_0x20c5('0x98')],_0x5923e0);}[_0x20c5('0x7')](_0x176045){(_0x176045=this[_0x20c5('0xdf')](_0x176045,this[_0x20c5('0x8e')]))[_0x20c5('0x38')]();const _0x38d525=null===_0x176045[_0x20c5('0x6c')]?null:_0x176045[_0x20c5('0x6c')]||this[_0x20c5('0xe0')][_0x20c5('0x37')][_0x20c5('0x2a')](_0x20c5('0xa0'))['me']['id'],_0x5be4ad=_0x176045['getMovedRangeStart'](),_0x4cefd3=_0x5be4ad['parent'],_0x1c615c=_0x5be4ad['offset'];!function _0x379f98(_0x451d2b,_0xf94d9,_0x2129d1,_0xb7327e){for(let _0x190fe9=_0x2129d1;_0x190fe9<_0xb7327e;_0x190fe9++){const _0x5813cd=_0xf94d9[_0x20c5('0x99')](_0x190fe9);_0x5813cd['is']('element',_0x20c5('0x8d'))?_0x451d2b[_0x20c5('0xe9')](_0x5813cd[_0x20c5('0x43')](_0x20c5('0x2f')),{'userId':_0x38d525}):(_0x451d2b[_0x20c5('0xe9')](_0x5813cd[_0x20c5('0x43')]('vid_start'),{'userId':_0x38d525}),_0x379f98(_0x451d2b,_0x5813cd,0x0,_0x5813cd[_0x20c5('0xb9')]),_0x451d2b[_0x20c5('0xe9')](_0x5813cd[_0x20c5('0x43')](_0x20c5('0x4d')),{'userId':_0x38d525}));}}(this[_0x20c5('0x93')],_0x4cefd3,_0x1c615c,_0x1c615c+_0x176045[_0x20c5('0x9b')]);}[_0x20c5('0x86')](_0x375dd9){const _0x35ebea=null===(_0x375dd9=this['_cloneOperation'](_0x375dd9,this[_0x20c5('0x8e')]))[_0x20c5('0x6c')]?null:_0x375dd9[_0x20c5('0x6c')]||this[_0x20c5('0xe0')]['plugins']['get']('Users')['me']['id'],_0x2cb8ef=_0x375dd9[_0x20c5('0x5')][_0x20c5('0xc1')],_0x25216f=_0x375dd9[_0x20c5('0x4a')][_0x20c5('0xc1')],_0x57ad6b=_0x2cb8ef['getAttribute'](_0x20c5('0x4d')),_0x2ef473=_0x25216f[_0x20c5('0x43')](_0x20c5('0x64'));_0x2cb8ef['_setAttribute'](_0x20c5('0x4d'),_0x25216f[_0x20c5('0x43')](_0x20c5('0x4d'))),_0x25216f['_setAttribute']('vid_end',_0x57ad6b),this[_0x20c5('0x93')][_0x20c5('0xe9')](_0x2ef473,{'userId':_0x35ebea}),this[_0x20c5('0x93')][_0x20c5('0xe9')](_0x57ad6b,{'userId':_0x35ebea}),_0x375dd9[_0x20c5('0x38')]();}[_0x20c5('0x6a')](_0x7daa6c){const _0x2b6846=null===(_0x7daa6c=this['_cloneOperation'](_0x7daa6c,this[_0x20c5('0x8e')]))[_0x20c5('0x6c')]?null:_0x7daa6c[_0x20c5('0x6c')]||this['editor'][_0x20c5('0x37')][_0x20c5('0x2a')](_0x20c5('0xa0'))['me']['id'],_0x520ffd=_0x7daa6c[_0x20c5('0x78')],_0x198633=_0x7daa6c['splitPosition'][_0x20c5('0xc1')];_0x7daa6c[_0x20c5('0x38')]();const _0xe18d2c=_0x198633[_0x20c5('0x43')]('vid_end'),_0x4854a7=_0x7daa6c[_0x20c5('0x5f')]['nodeAfter'];if(_0x520ffd){const _0x222195=_0x4854a7['getAttribute'](_0x20c5('0x4d')),_0x3cea84=_0x198633[_0x20c5('0x43')]('vid_end');_0x198633['_setAttribute'](_0x20c5('0x4d'),_0x222195),_0x4854a7[_0x20c5('0x9d')]('vid_end',_0x3cea84),this[_0x20c5('0x93')][_0x20c5('0xe9')](_0x198633[_0x20c5('0x43')](_0x20c5('0x4d')),{'userId':_0x2b6846}),this[_0x20c5('0x93')][_0x20c5('0xe9')](_0x4854a7[_0x20c5('0x43')]('vid_start'),{'userId':_0x2b6846});}else{const _0x44bce5=this['_revisionId']++,_0x20b7d9=this[_0x20c5('0x1d')]++;_0x198633[_0x20c5('0x9d')](_0x20c5('0x4d'),_0x44bce5),_0x4854a7[_0x20c5('0x9d')](_0x20c5('0x64'),_0x20b7d9),_0x4854a7[_0x20c5('0x9d')](_0x20c5('0x4d'),_0xe18d2c),this[_0x20c5('0x93')]['set'](_0x44bce5,{'userId':_0x2b6846}),this['_touched'][_0x20c5('0xe9')](_0x20b7d9,{'userId':_0x2b6846});}}[_0x20c5('0x72')](_0x25cd64){if(!_0x25cd64[_0x20c5('0x77')])return;const _0x172c54=(_0x25cd64=this['_cloneOperation'](_0x25cd64,this[_0x20c5('0xed')]))['oldRange']?_0x25cd64['oldRange'][_0x20c5('0x26')]:null,_0x36d1f3=_0x25cd64['newRange']?_0x25cd64['newRange'][_0x20c5('0x26')]:null;_0x172c54&&this['_markers']['delete'](_0x25cd64[_0x20c5('0x5c')]),_0x36d1f3&&this[_0x20c5('0x81')]['set'](_0x25cd64['name'],_0x25cd64[_0x20c5('0x87')][_0x20c5('0xb')]());const _0x12b16c=null===_0x25cd64['_authorId']?null:_0x25cd64[_0x20c5('0x6c')]||this[_0x20c5('0xe0')][_0x20c5('0x37')][_0x20c5('0x2a')](_0x20c5('0xa0'))['me']['id'],_0x168c35=_0x25cd64['name'];if(!this['_touchedMarkers']['has'](_0x168c35))return void this['_touchedMarkers'][_0x20c5('0xe9')](_0x168c35,{'range':_0x25cd64[_0x20c5('0xd6')],'userId':_0x12b16c});const _0x58a43b=this[_0x20c5('0xaf')][_0x20c5('0x2a')](_0x168c35),_0x17790f=_0x58a43b[_0x20c5('0x69')],_0x3cf6d5=_0x25cd64['newRange'];null==_0x17790f&&null==_0x3cf6d5||_0x17790f&&_0x3cf6d5&&_0x17790f[_0x20c5('0xb4')](_0x3cf6d5)?this[_0x20c5('0xaf')]['delete'](_0x25cd64[_0x20c5('0x5c')]):_0x58a43b[_0x20c5('0x95')]=_0x12b16c;}}function H(_0x28b953){const _0x3568fa=new _0x1af70e();_0x3568fa[_0x20c5('0x7e')]=_0x28b953[_0x20c5('0x7e')];for(const _0x359242 of _0x28b953['getChildren']()){const _0x467058=_0x359242[_0x20c5('0xc6')](!0x0);_0x3568fa[_0x20c5('0xd2')](_0x467058);}return _0x3568fa;}function q(_0x1b9a86,_0x23f58c,_0x4d91fe){const _0x531fb6='elementEnd'==_0x1b9a86['type']?_0x4d91fe['createPositionAt'](_0x1b9a86[_0x20c5('0xb8')],_0x20c5('0x7f')):_0x4d91fe[_0x20c5('0x1a')](_0x1b9a86[_0x20c5('0xb8')]);return _0x531fb6[_0x20c5('0x26')]=_0x23f58c,_0x531fb6;}function G(_0xbc79d5,_0x39f42a,_0x263f6d){const _0x180185=_0x20c5('0xc0')==_0xbc79d5[_0x20c5('0x53')]?_0x263f6d['createPositionAt'](_0xbc79d5[_0x20c5('0xb8')],0x0):_0x263f6d[_0x20c5('0x89')](_0xbc79d5[_0x20c5('0xb8')]);return _0x180185[_0x20c5('0x26')]=_0x39f42a,_0x180185;}
|
|
23
|
+
const _0x4be9=['_setAttribute','conversion','PendingActions','deletion','offsetSize','editor','requires','reinsert','getRoot','stickiness','_diffRoots','name','end','getCurrentRevisionId','sort','markers','view','_getViewJson','position','vid_end','finally','attributes','path','_removeMetaData','range','_clone','_transformMarkers','_handleMergeOperation','_applyOperations','data','getData','parent','toView','find','_handleOperation','initialData','getRevision','from','type','loadState','updateRevisions','get','getRange','createdAt','resolve','setRevisionData','createPositionAfter','toData','markerToData','dataDowncast','_cloneOperation','map','item','offset','createPositionAt','creator','_continueCurrentRevision','_setConversion','_touched','_makeIdsRoot','upcast','_bufferedUpdates','marker','buildRevisionData','_savedMetaData','reverse','$graveyard','element','addRevision','adapter','getOperations','getIndex','revision-start','_startingRevisionId','oldRange','_fixRange','_handleInsertOperation','_findInsertionIndex','userId','useFillerType','insertions','_bufferUpdate','shift','for','getNodeByPath','string','revision','nodeAfter','update','_baseIdsRoots','_addPendingAction','_getVidAttributeName','isEnabled','includes','keys','revision:','_insertChild','_reset','_loadRevisionData','_replaceEditorDataWithRevisionData','_saveMetaData','_startingVersion','dataToMarker','_lastFrom','_loadedStateData','getWalker','afterInit','paragraph','set','move','_makeModelFromViewString','_markers','has','default','getChild','_handleMarkerOperation','clear','getRevisionDocumentData','_generateTape','_calculateMetaData','vid','locale','_getPreviousFrom','elementEnd','diffData','push','_removeRevisionMarkers','_loadState','_isPendingUpdate','graveyardPosition','_getBaseVids','insert','previousPosition','getRootNames','clone','createRangeIn','_createCurrentRevision','baseVersion','collaboration.channelId','_touchedMarkers','addRevisionData','_getState','config','version','_markChanges','affectsData','toVersion','Initial\x20revision','documentFragment','source','filter','getOperation','deletions','_makeRevision','nodes','elementStart','_fixOperation','_prepareViewToSave','getChildren','vid_start','fromVersion','RealTimeCollaborationClient','roots','getLatestVersion','currentRevision','splitPosition','_handleMoveOperation','getMovedRangeStart','PENDING_ACTION_REVISION_HISTORY','_processRootBeforeSave','_getFromVersion','isReady','isPendingUpdate','size','childCount','_pendingAction','remove','then','_copyMarkers','tableCell','slice','createPositionFromPath','parse','revisionHistory.resumeUnsavedRevision','_saveEmptyMetaData','editing','_source','length','setSource','_execute','data-revision-','split','document','_createInitialRevision','_revisionId','startsWith','repository','createRange','pluginName','model','getTime','values','_createFromRanges','getUser','start','delete','_initialRevisionId','creatorId','reInit','children','rootName','createRevision','targetPosition','getTransformedByOperation','_rootNames','root','saveRevision','_idsRoots','_revisionDataBuilder','_update','stringify','history','sendBufferedUpdates','howMany','$text','text','init','authors','isEqual','Users','authorsIds','_baseRoots','newRange','_handleSplitOperation','getRevisions','forEach','_authorId','_fixPosition','RevisionsRepository','_lastTo','plugins','marked','sourcePosition','add','NEGATIVE_INFINITY','getAttribute'];(function(_0x335359,_0x4be91e){const _0x1ffc78=function(_0x4411d7){while(--_0x4411d7){_0x335359['push'](_0x335359['shift']());}};_0x1ffc78(++_0x4be91e);}(_0x4be9,0x13b));const _0x1ffc=function(_0x335359,_0x4be91e){_0x335359=_0x335359-0x0;let _0x1ffc78=_0x4be9[_0x335359];return _0x1ffc78;};import{Users as _0x49b043}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x208e89,PendingActions as _0x6a751b}from'ckeditor5/src/core';import{logWarning as _0x21e039,uid as _0xf0ab0d}from'ckeditor5/src/utils';import{Position as _0x29deb2,Range as _0x21882a,Element as _0x230a92,DocumentFragment as _0xfd6a74,ViewText as _0x4ede3d,ViewElement as _0x5af39b,ViewContainerElement as _0x2a8b8e,ViewAttributeElement as _0x490ea3,ViewEmptyElement as _0x176d2e,ViewRawElement as _0x170b85,ViewUIElement as _0x277a27,ViewDocumentFragment as _0x242b3a}from'ckeditor5/src/engine';import _0x510d8c from'./revisionsrepository';import{getTranslation as _0x2536e9}from'./utils/common-translations';const V={'c':_0x2a8b8e,'a':_0x490ea3,'e':_0x176d2e,'r':_0x170b85,'u':_0x277a27};export default class l extends _0x208e89{static get[_0x1ffc('0x81')](){return'RevisionTracker';}static get[_0x1ffc('0xb7')](){return[_0x49b043,_0x510d8c,_0x6a751b];}constructor(..._0x231433){super(..._0x231433),this['adapter']=null,this[_0x1ffc('0x27')]('isReady',!0x1),this[_0x1ffc('0x27')](_0x1ffc('0x17'),!0x0),this[_0x1ffc('0x5f')]=null;const _0x36b98e=_0xf0ab0d();this[_0x1ffc('0x75')]={'history':this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x98')],'getLatestVersion':()=>Promise[_0x1ffc('0xdd')](this['editor'][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x4a')]),'getCurrentRevisionId':()=>_0x36b98e},this[_0x1ffc('0x95')]=new T(this[_0x1ffc('0xb6')]),this[_0x1ffc('0x89')]=this[_0x1ffc('0xb6')][_0x1ffc('0x49')][_0x1ffc('0xda')](_0x1ffc('0x45'))||'initial',this['set'](_0x1ffc('0x67'),!0x1),this['_bufferedUpdates']=new Map(),this[_0x1ffc('0xb6')][_0x1ffc('0x49')]['define'](_0x1ffc('0x72'),!0x0),this[_0x1ffc('0x23')]=null,this[_0x1ffc('0xb6')]['conversion'][_0x1ffc('0xe')](_0x1ffc('0xed'))[_0x1ffc('0x21')]({'view':_0x1ffc('0x11')});}[_0x1ffc('0x9d')](){this[_0x1ffc('0x7f')]=this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa9')),this[_0x1ffc('0xea')](),this[_0x1ffc('0xb6')][_0x1ffc('0xce')]['on']('ready',()=>{const _0xdf51c3=this[_0x1ffc('0x7f')]['getRevision'](0x0),_0xd5a98f=_0xdf51c3&&null===_0xdf51c3[_0x1ffc('0xe8')]?_0xdf51c3:null;if(this[_0x1ffc('0xe9')]=!!_0xd5a98f&&this[_0x1ffc('0xb6')][_0x1ffc('0x49')][_0x1ffc('0xda')](_0x1ffc('0x72')),this[_0x1ffc('0xb6')]['plugins']['has'](_0x1ffc('0x5c'))){const _0x9ca637=this[_0x1ffc('0x75')][_0x1ffc('0xbe')](),_0x1ebeae=this[_0x1ffc('0x7f')][_0x1ffc('0xd5')](_0x9ca637);if(_0x1ebeae)this[_0x1ffc('0x20')]=_0x1ebeae[_0x1ffc('0x5b')],this[_0x1ffc('0xe9')]=!0x1;else{const _0x2fa5d5=this[_0x1ffc('0x75')][_0x1ffc('0x98')]['_operations'][_0x1ffc('0xd2')](_0x5bf3cb=>!_0x5bf3cb['_isInit']),_0x2ed99e=_0x2fa5d5?_0x2fa5d5[_0x1ffc('0x44')]:this[_0x1ffc('0x75')]['history'][_0x1ffc('0x4a')];_0xdf51c3?(_0xdf51c3[_0x1ffc('0x4d')]<_0x2ed99e&&_0xdf51c3['_update']({'toVersion':_0x2ed99e}),this[_0x1ffc('0xe9')]?(this[_0x1ffc('0x75')][_0x1ffc('0xbe')]=()=>_0xd5a98f['id'],this['_startingVersion']=_0xd5a98f[_0x1ffc('0x5b')]):(this[_0x1ffc('0x20')]=_0xdf51c3[_0x1ffc('0x4d')],this[_0x1ffc('0xe9')]=!0x1)):(this[_0x1ffc('0x20')]=_0x2ed99e,this[_0x1ffc('0xe9')]=!0x1);}}else _0xd5a98f&&(this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')]['history'][_0x1ffc('0x4a')]=Math['max'](_0xd5a98f[_0x1ffc('0x4d')],this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x98')][_0x1ffc('0x4a')]),_0xd5a98f[_0x1ffc('0x5b')]===_0xd5a98f['toVersion']?(0x0!==_0xd5a98f['fromVersion']&&(this['_source'][_0x1ffc('0xbe')]=()=>_0xd5a98f['id']),this[_0x1ffc('0xe9')]=!0x1):this[_0x1ffc('0xe9')]&&(this['_source'][_0x1ffc('0xbe')]=()=>_0xd5a98f['id'],this[_0x1ffc('0x20')]=_0xd5a98f[_0x1ffc('0x5b')])),this[_0x1ffc('0xe9')]||(this[_0x1ffc('0x20')]=this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')]['version']);this[_0x1ffc('0x95')][_0x1ffc('0x9d')](this['_source'][_0x1ffc('0x98')]),this[_0x1ffc('0x7c')](this[_0x1ffc('0x20')]),this[_0x1ffc('0x43')](this[_0x1ffc('0x20')]),this[_0x1ffc('0x0')]&&this[_0x1ffc('0x99')]();}),this['bind'](_0x1ffc('0x66'))['to'](this,_0x1ffc('0x3b'),_0x355356=>!_0x355356);}async[_0x1ffc('0x25')](){if(this[_0x1ffc('0x7f')][_0x1ffc('0x76')]>0x0){const _0x24cbae=this[_0x1ffc('0x7f')][_0x1ffc('0xd5')](0x0),_0x10e11c=await this['getRevisionDocumentData'](_0x24cbae);this[_0x1ffc('0x1e')](_0x10e11c);}}[_0x1ffc('0x77')](_0x594511){this[_0x1ffc('0x75')]=_0x594511;}async[_0x1ffc('0x13')](){const _0x2c2133=await this[_0x1ffc('0x75')]['getLatestVersion']();if(_0x2c2133>this[_0x1ffc('0x5f')][_0x1ffc('0x4d')]){await this[_0x1ffc('0x3a')]();const _0x14e100=this[_0x1ffc('0xf0')]({'revision':this['currentRevision'],'to':_0x2c2133});_0x14e100['authors']=_0x14e100['authorsIds'][_0x1ffc('0xe4')](_0x3b6bf8=>this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))['getUser'](_0x3b6bf8)),this[_0x1ffc('0x5f')][_0x1ffc('0x96')](_0x14e100);}}async[_0x1ffc('0x3a')](){this['_continueCurrentRevision']&&!this[_0x1ffc('0x23')]&&(await this['_loadRevisionData'](this[_0x1ffc('0x5f')]),this[_0x1ffc('0x95')]['loadState'](this['currentRevision']),this[_0x1ffc('0x23')]={'fromVersion':this[_0x1ffc('0x5f')]['fromVersion'],'authors':this['currentRevision'][_0x1ffc('0x9e')][_0x1ffc('0x6f')]()});}async[_0x1ffc('0x93')](_0x7ad87d={},_0x5298e0=null){const _0x223480=[];await this['_loadState'](),this[_0x1ffc('0xe9')]=!0x1,_0x5298e0>this[_0x1ffc('0x5f')][_0x1ffc('0x4d')]&&(_0x5298e0=null),null===_0x5298e0&&(_0x5298e0=await this[_0x1ffc('0x75')][_0x1ffc('0x5e')]());const _0x234d61=this[_0x1ffc('0x65')](_0x5298e0),_0x4c56b6=this[_0x1ffc('0xf0')]({'from':_0x234d61,'to':_0x5298e0});if(this[_0x1ffc('0x5f')][_0x1ffc('0x4d')]<_0x5298e0){const _0x139810=this[_0x1ffc('0xf0')]({'revision':this[_0x1ffc('0x5f')],'from':_0x5298e0,'to':_0x5298e0});_0x139810[_0x1ffc('0x9e')]=[],_0x139810[_0x1ffc('0xa1')]=[],_0x139810['id']=this[_0x1ffc('0x5f')]['id'],this[_0x1ffc('0x5f')][_0x1ffc('0x96')](_0x139810,!0x0),delete _0x139810['authors'],_0x223480[_0x1ffc('0x38')](_0x139810);}_0x7ad87d[_0x1ffc('0x8a')]=this[_0x1ffc('0xb6')]['plugins'][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0x7ad87d[_0x1ffc('0xbc')]=_0x7ad87d['name']||null,_0x7ad87d['id']=_0x7ad87d['id']||_0xf0ab0d(),_0x7ad87d={..._0x7ad87d,..._0x4c56b6};const _0x51bc4c=this[_0x1ffc('0x47')](_0x7ad87d);_0x223480['push'](_0x7ad87d);const _0x52f84e=this['repository'][_0x1ffc('0x2')](_0x51bc4c);if(0x0!==_0x52f84e){const _0x2fb4a7=this[_0x1ffc('0x7f')]['getRevision'](_0x52f84e-0x1);if(_0x2fb4a7[_0x1ffc('0x5b')]!==_0x5298e0){const _0x76b7a7=this[_0x1ffc('0x95')][_0x1ffc('0xcf')](_0x5298e0,_0x2fb4a7[_0x1ffc('0x4d')]),_0x3980c5={'id':_0x2fb4a7['id'],'diffData':_0x76b7a7[_0x1ffc('0x37')],'authorsIds':_0x76b7a7[_0x1ffc('0xa1')],'authors':_0x76b7a7['authorsIds'][_0x1ffc('0xe4')](_0x258c83=>this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))[_0x1ffc('0x86')](_0x258c83)),'fromVersion':_0x5298e0};_0x2fb4a7===this[_0x1ffc('0x5f')]&&(_0x3980c5[_0x1ffc('0xdc')]=new Date(_0x7ad87d[_0x1ffc('0xdc')][_0x1ffc('0x83')]()+0xa)),_0x2fb4a7[_0x1ffc('0x96')](_0x3980c5,!0x0),delete _0x3980c5[_0x1ffc('0x9e')],_0x223480[_0x1ffc('0x38')](_0x3980c5);}}if(this[_0x1ffc('0x0')]){for(const _0xb1f122 of _0x223480)this[_0x1ffc('0xc')](_0xb1f122['id'],_0xb1f122,!0x0);this[_0x1ffc('0x99')]();}return _0x51bc4c;}[_0x1ffc('0x47')](_0x4b6474){const _0x1413e9=this[_0x1ffc('0x7f')][_0x1ffc('0x8e')](_0x4b6474);return this[_0x1ffc('0x0')]&&_0x1413e9['on']('_update',(_0x7dc66a,_0x338e72,_0x5df22e)=>{_0x5df22e||(this['_bufferUpdate'](_0x338e72['id'],_0x338e72,!0x0),this['sendBufferedUpdates']());}),this['repository'][_0x1ffc('0xf5')](_0x1413e9,this[_0x1ffc('0x8')](_0x1413e9)),_0x1413e9;}async[_0x1ffc('0x30')](_0x5ba2bc){await this[_0x1ffc('0x1d')](_0x5ba2bc);const _0x3db561={};for(const _0x543fa9 in _0x5ba2bc[_0x1ffc('0x37')]){const _0x344345=this[_0x1ffc('0x39')](JSON[_0x1ffc('0x71')](_0x5ba2bc[_0x1ffc('0x37')][_0x543fa9][_0x1ffc('0xb')])),_0x37e103=this[_0x1ffc('0xb6')]['editing'][_0x1ffc('0xc1')][_0x1ffc('0x7b')],_0x29cb13=new _0x242b3a(_0x37e103,_0x344345[_0x1ffc('0xe4')](_0xc794e=>F(_0xc794e,this[_0x1ffc('0xb6')])));this[_0x1ffc('0xb6')][_0x1ffc('0xce')]['processor'][_0x1ffc('0xa')](_0x1ffc('0xac')),_0x3db561[_0x543fa9]=this[_0x1ffc('0xb6')][_0x1ffc('0xce')]['processor'][_0x1ffc('0xe0')](_0x29cb13),this['editor'][_0x1ffc('0xce')]['processor'][_0x1ffc('0xa')](_0x1ffc('0x2c'));}return _0x3db561;}[_0x1ffc('0x99')](){if(0x0===this[_0x1ffc('0xee')][_0x1ffc('0x68')])return;if(this[_0x1ffc('0x3b')])return;let _0x49465e=Array[_0x1ffc('0xd6')](this[_0x1ffc('0xee')][_0x1ffc('0x84')]());this[_0x1ffc('0xee')][_0x1ffc('0x2f')]();for(let _0x50364c=0x0;_0x50364c<_0x49465e[_0x1ffc('0x76')];_0x50364c++){const _0x31edf1=_0x49465e[_0x50364c];let _0x1e97ce=!0x1;for(const _0x2c8355 of Object[_0x1ffc('0x19')](_0x31edf1))void 0x0===_0x31edf1[_0x2c8355]?delete _0x31edf1[_0x2c8355]:'id'!==_0x2c8355&&(_0x1e97ce=!0x0);_0x1e97ce||(_0x49465e[_0x50364c]=null);}if(_0x49465e=_0x49465e[_0x1ffc('0x51')](_0x5a5fbe=>null!==_0x5a5fbe),!_0x49465e[_0x1ffc('0x76')])return;for(let _0x20340d=0x0;_0x20340d<_0x49465e[_0x1ffc('0x76')];_0x20340d++){const _0x404c65=_0x49465e[_0x20340d];void 0x0!==_0x404c65[_0x1ffc('0x5b')]&&void 0x0===_0x404c65['toVersion']&&(_0x404c65['toVersion']=this['repository'][_0x1ffc('0xd5')](_0x404c65['id'])[_0x1ffc('0x4d')]),void 0x0!==_0x404c65[_0x1ffc('0x4d')]&&void 0x0===_0x404c65['fromVersion']&&(_0x404c65[_0x1ffc('0x5b')]=this[_0x1ffc('0x7f')][_0x1ffc('0xd5')](_0x404c65['id'])[_0x1ffc('0x5b')]);}const _0x51f1f3=this[_0x1ffc('0xb6')][_0x1ffc('0x49')][_0x1ffc('0xda')](_0x1ffc('0x45'));this[_0x1ffc('0x3b')]=!0x0,this[_0x1ffc('0x15')](),this[_0x1ffc('0x0')][_0x1ffc('0xd9')](_0x49465e,_0x51f1f3)[_0x1ffc('0xc5')](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xa13f66=>{if(_0xa13f66)for(const _0x5c269c of _0xa13f66)this[_0x1ffc('0xde')]({'id':_0x5c269c['id'],'createdAt':_0x5c269c[_0x1ffc('0xdc')]});this['_removePendingAction'](),this[_0x1ffc('0x99')]();});}[_0x1ffc('0x1e')](_0x2b3fb8){let _0x4b1ca0=this['editor'][_0x1ffc('0x49')]['get'](_0x1ffc('0xd4'));if(void 0x0===_0x4b1ca0){_0x4b1ca0={};for(const _0x5847e5 of this['editor'][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x40')]())_0x4b1ca0[_0x5847e5]='';}'string'==typeof _0x4b1ca0&&(_0x4b1ca0={'main':_0x4b1ca0});let _0x465f3b=!0x1;for(const _0x8c01ba of Object[_0x1ffc('0x19')](_0x4b1ca0))_0x2b3fb8[_0x8c01ba]&&(_0x4b1ca0[_0x8c01ba]!==_0x2b3fb8[_0x8c01ba]&&''!==_0x4b1ca0[_0x8c01ba]['trim']()&&(_0x465f3b=!0x0),_0x4b1ca0[_0x8c01ba]=_0x2b3fb8[_0x8c01ba]);_0x465f3b&&_0x21e039('editor-initial-data-replaced-with-revision-data'),this[_0x1ffc('0xb6')][_0x1ffc('0x49')][_0x1ffc('0x27')](_0x1ffc('0xd4'),_0x4b1ca0);}[_0x1ffc('0x15')](){if(!this[_0x1ffc('0x6a')]){const _0x4e36dc=this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xb3'));this[_0x1ffc('0x6a')]=_0x4e36dc[_0x1ffc('0xae')](_0x2536e9(this[_0x1ffc('0xb6')][_0x1ffc('0x34')],_0x1ffc('0x63')));}}['_removePendingAction'](){this[_0x1ffc('0x6a')]&&(this['editor'][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xb3'))[_0x1ffc('0x6b')](this[_0x1ffc('0x6a')]),this[_0x1ffc('0x6a')]=null);}['_findInsertionIndex'](_0x5e95a4){const _0x2adbf5=this[_0x1ffc('0x7f')][_0x1ffc('0xa5')]();_0x2adbf5[_0x1ffc('0xf2')]();let _0x325be0=0x0;for(;_0x325be0<_0x2adbf5['length'];){const _0x364305=_0x2adbf5[_0x325be0];if(_0x364305===this[_0x1ffc('0x5f')]){_0x325be0++;continue;}if(_0x364305['id']===this[_0x1ffc('0x89')])break;const _0x4bc3d8=_0x5e95a4[_0x1ffc('0x4d')]-_0x364305['toVersion']||_0x5e95a4[_0x1ffc('0x5b')]-_0x364305[_0x1ffc('0x5b')];if(_0x4bc3d8>0x0)break;if(_0x4bc3d8<0x0)_0x325be0++;else{if(!_0x5e95a4['creator']&&_0x364305[_0x1ffc('0xe8')])break;if(_0x364305[_0x1ffc('0xe8')]||!_0x5e95a4[_0x1ffc('0xe8')]){if(_0x5e95a4[_0x1ffc('0xdc')]>_0x364305[_0x1ffc('0xdc')])break;_0x325be0++;}else _0x325be0++;}}return _0x325be0;}[_0x1ffc('0xde')](_0x34fe2d){const _0xa8f35c=this[_0x1ffc('0x7f')][_0x1ffc('0xd5')](_0x34fe2d['id']);if(_0x34fe2d['createdAt']&&(_0x34fe2d[_0x1ffc('0xdc')]=new Date(_0x34fe2d[_0x1ffc('0xdc')])),_0x34fe2d[_0x1ffc('0xa1')]){const _0x1e05cb=this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'));_0x34fe2d['authors']=_0x34fe2d[_0x1ffc('0xa1')][_0x1ffc('0xe4')](_0x4d63e1=>_0x1e05cb[_0x1ffc('0x86')](_0x4d63e1));}_0xa8f35c[_0x1ffc('0x96')](_0x34fe2d,!0x0);}[_0x1ffc('0xf0')]({revision:_0x16a82d=null,from:_0x4594b0=null,to:_0xe62b03=null}){_0x4594b0=null!==_0x4594b0?_0x4594b0:_0x16a82d[_0x1ffc('0x5b')],_0xe62b03=null!==_0xe62b03?_0xe62b03:_0x16a82d[_0x1ffc('0x4d')];const _0x2c49cb=this[_0x1ffc('0x95')][_0x1ffc('0xcf')](_0x4594b0,_0xe62b03),_0x5e07ad={'diffData':_0x2c49cb[_0x1ffc('0x37')],'authorsIds':_0x2c49cb['authorsIds'],'fromVersion':_0x4594b0,'toVersion':_0xe62b03};if(!_0x16a82d||_0xe62b03!==_0x16a82d[_0x1ffc('0x4d')]){const _0x242e32=_0xe62b03-0x1,_0x383c27=this[_0x1ffc('0x75')][_0x1ffc('0x98')][_0x1ffc('0x52')](_0x242e32);_0x5e07ad['createdAt']=_0x383c27&&_0x383c27[_0x1ffc('0xdc')]||new Date();}if(this[_0x1ffc('0x23')]&&_0x4594b0===this[_0x1ffc('0x23')][_0x1ffc('0x5b')])for(const _0x196884 of this[_0x1ffc('0x23')][_0x1ffc('0x9e')])_0x5e07ad[_0x1ffc('0xa1')][_0x1ffc('0x18')](_0x196884['id'])||_0x5e07ad[_0x1ffc('0xa1')][_0x1ffc('0x38')](_0x196884['id']);return _0x5e07ad;}[_0x1ffc('0x1d')](_0x52d6b7){if(!_0x52d6b7||_0x52d6b7[_0x1ffc('0x37')])return Promise[_0x1ffc('0xdd')]();{const _0x6df019=this[_0x1ffc('0xb6')][_0x1ffc('0x49')]['get'](_0x1ffc('0x45'));return this[_0x1ffc('0x0')][_0x1ffc('0xd5')]({'channelId':_0x6df019,'revisionId':_0x52d6b7['id']})[_0x1ffc('0x6c')](_0x55be98=>{_0x52d6b7[_0x1ffc('0x37')]=_0x55be98[_0x1ffc('0x37')];});}}['_bufferUpdate'](_0x2977b3,_0x46d583,_0x53fe08){if(this['_bufferedUpdates'][_0x1ffc('0x2b')](_0x2977b3)){const _0x481f59=this[_0x1ffc('0xee')][_0x1ffc('0xda')](_0x2977b3);_0x46d583=_0x53fe08?{..._0x481f59,..._0x46d583}:{..._0x46d583,..._0x481f59};}this[_0x1ffc('0xee')]['set'](_0x2977b3,_0x46d583);}[_0x1ffc('0x65')](_0x487d1d){const _0x4ad7df=this[_0x1ffc('0x7f')][_0x1ffc('0xa5')]();_0x4ad7df['reverse'](),_0x4ad7df[_0x1ffc('0xd')]();const _0x52683a=_0x4ad7df[_0x1ffc('0xd2')](_0x2bb484=>_0x2bb484['toVersion']<=_0x487d1d)[_0x1ffc('0x4d')];return _0x52683a<this[_0x1ffc('0x20')]?this['_startingVersion']:_0x52683a;}[_0x1ffc('0x7c')](_0x3029dd){const _0x450f0a=this[_0x1ffc('0x7f')]['getRevision'](this[_0x1ffc('0x7f')]['length']-0x1);if(_0x450f0a)this['_initialRevisionId']=_0x450f0a['id'];else{const _0x5b716a=!this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x5d')][_0x1ffc('0xd2')](_0x16577d=>this[_0x1ffc('0xb6')][_0x1ffc('0x82')]['hasContent'](_0x16577d)),_0x266d20=this[_0x1ffc('0xb6')][_0x1ffc('0xab')]['get'](_0x1ffc('0xa0'))['me']['id'],_0x5102e0=_0x2536e9(this[_0x1ffc('0xb6')][_0x1ffc('0x34')],_0x5b716a?'Empty\x20document':_0x1ffc('0x4e'));this[_0x1ffc('0x54')]({'from':_0x3029dd,'to':_0x3029dd,'id':this['_initialRevisionId'],'name':_0x5102e0,'creatorId':_0x266d20});}}['_createCurrentRevision'](_0x39b599){const _0x3883d1=this[_0x1ffc('0x75')][_0x1ffc('0xbe')]();this['currentRevision']=this[_0x1ffc('0x7f')]['getRevision'](_0x3883d1),this[_0x1ffc('0x5f')]||(this[_0x1ffc('0x5f')]=this['_makeRevision']({'from':_0x39b599,'to':_0x39b599,'id':_0x3883d1,'name':'','creatorId':null}));}[_0x1ffc('0x54')]({name:_0x33ce5c,from:_0x205a64,to:_0x1138a3,creatorId:_0x4faee4,id:_0x5abe7e}){const _0x3af37d=this[_0x1ffc('0xf0')]({'from':_0x205a64,'to':_0x1138a3});_0x3af37d[_0x1ffc('0xbc')]=_0x33ce5c,_0x3af37d[_0x1ffc('0x8a')]=_0x4faee4,_0x3af37d['id']=_0x5abe7e;const _0x42af25=this['addRevisionData'](_0x3af37d);return this[_0x1ffc('0x0')]&&this['_bufferUpdate'](_0x3af37d['id'],_0x3af37d,!0x0),_0x42af25;}[_0x1ffc('0xea')](){this['editor'][_0x1ffc('0xb2')]['for'](_0x1ffc('0xe2'))[_0x1ffc('0xe1')]({'model':_0x1ffc('0x11')});}[_0x1ffc('0x39')](_0x497a73){return(_0x497a73=_0x497a73[_0x1ffc('0x51')](_0xe915c5=>!_0xe915c5[_0x1ffc('0xbc')]||_0x1ffc('0x3')!==_0xe915c5[_0x1ffc('0xbc')]&&'revision-end'!==_0xe915c5[_0x1ffc('0xbc')]))[_0x1ffc('0xa6')](_0xdb3849=>{_0x1ffc('0x10')!=typeof _0xdb3849&&(_0xdb3849['children']=this[_0x1ffc('0x39')](_0xdb3849[_0x1ffc('0x8c')]),_0xdb3849[_0x1ffc('0xc6')]=_0xdb3849[_0x1ffc('0xc6')][_0x1ffc('0x51')](_0x4c4c73=>!_0x4c4c73[0x0]['startsWith'](_0x1ffc('0x79'))));}),_0x497a73;}}function F(_0x22eae1,_0x36f7be){const _0x7846cf=_0x36f7be[_0x1ffc('0x74')][_0x1ffc('0xc1')][_0x1ffc('0x7b')];if(_0x1ffc('0x10')==typeof _0x22eae1)return new _0x4ede3d(_0x7846cf,_0x22eae1);{const _0x264591=_0x22eae1[_0x1ffc('0x8c')][_0x1ffc('0xe4')](_0x936a5f=>F(_0x936a5f,_0x36f7be));return new(V[_0x22eae1[(_0x1ffc('0xd7'))]]||_0x5af39b)(_0x7846cf,_0x22eae1[_0x1ffc('0xbc')],_0x22eae1[_0x1ffc('0xc6')],_0x264591);}}class T{constructor(_0x786bf){this[_0x1ffc('0xb6')]=_0x786bf,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this[_0x1ffc('0xaa')]=-0x1,this[_0x1ffc('0x2a')]=new Map(),this['_diffRoots']=new Map(),this[_0x1ffc('0xa2')]=new Map(),this[_0x1ffc('0x94')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x1ffc('0xeb')]=new Map(),this[_0x1ffc('0x46')]=new Map(),this[_0x1ffc('0x7d')]=0x1,this[_0x1ffc('0x91')]=this['editor'][_0x1ffc('0x82')]['document']['getRootNames'](),this['_rootNames'][_0x1ffc('0x38')]('$graveyard');}[_0x1ffc('0x9d')](_0x1318d8){this[_0x1ffc('0x50')]=_0x1318d8;const _0x3a0e45=new Map();for(const _0x5b5c6e of this[_0x1ffc('0x91')]){const _0x5c4ec4=J(this['editor']['model'][_0x1ffc('0x7b')][_0x1ffc('0xb9')](_0x5b5c6e));_0x3a0e45[_0x1ffc('0x27')](_0x5b5c6e,_0x5c4ec4);}const _0x24e1aa=Array[_0x1ffc('0xd6')](this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0xc0')])['map'](_0x4e5f02=>[_0x4e5f02['name'],_0x4e5f02[_0x1ffc('0xdb')]()]),_0x3a2ba2=this[_0x1ffc('0x50')][_0x1ffc('0x4a')];this[_0x1ffc('0x1f')](_0x3a2ba2,_0x3a0e45,_0x24e1aa),this['_startingRevisionId']=this[_0x1ffc('0x7d')];}[_0x1ffc('0xcf')](_0x1e5cd5,_0x221cc0){if(this[_0x1ffc('0x22')]===_0x1e5cd5&&this[_0x1ffc('0xaa')]<=_0x221cc0)this[_0x1ffc('0xf1')]['size']>0x1&&this[_0x1ffc('0xc8')](this[_0x1ffc('0xaa')]),this[_0x1ffc('0xcd')](this[_0x1ffc('0xaa')],_0x221cc0,!0x0);else{if(!this[_0x1ffc('0xf1')]['has'](_0x1e5cd5)){const _0x347443=this[_0x1ffc('0x35')](_0x1e5cd5);this[_0x1ffc('0x32')](_0x347443,_0x1e5cd5,!0x1);}this[_0x1ffc('0x32')](_0x1e5cd5,_0x221cc0,!0x0);}return this[_0x1ffc('0x22')]=_0x1e5cd5,this[_0x1ffc('0xaa')]=_0x221cc0,this['_getState']();}[_0x1ffc('0xd8')](_0x4af375){this[_0x1ffc('0x1c')](),this[_0x1ffc('0x22')]=_0x4af375[_0x1ffc('0x5b')],this[_0x1ffc('0xaa')]=_0x4af375[_0x1ffc('0x4d')];for(const _0x1670b2 in _0x4af375[_0x1ffc('0x37')]){const _0x211f1d=this[_0x1ffc('0x29')](_0x4af375[_0x1ffc('0x37')][_0x1670b2]['deletions']);_0x211f1d[_0x1ffc('0x8d')]=_0x1670b2,this[_0x1ffc('0xa2')][_0x1ffc('0x27')](_0x1670b2,_0x211f1d);const _0x287e8c=this[_0x1ffc('0xec')](_0x211f1d);this[_0x1ffc('0x14')][_0x1ffc('0x27')](_0x1670b2,_0x287e8c);for(const [_0x49c0ff,_0x54c4f0]of _0x211f1d[_0x1ffc('0xc0')]){if(!_0x49c0ff['startsWith']('revision:'))continue;const _0x55f1d7=_0x49c0ff['split'](':')[0x2];for(const _0x2ad630 of _0x54c4f0[_0x1ffc('0x24')]({'singleCharacters':!0x0})){const _0x245716=this['_getVidAttributeName'](_0x2ad630),_0x300f29=_0x1ffc('0x36')==_0x2ad630[_0x1ffc('0xd7')]?_0x2ad630['previousPosition'][_0x1ffc('0xc7')]['slice'](0x0,-0x1):_0x2ad630[_0x1ffc('0x3f')][_0x1ffc('0xc7')],_0x3fb031=_0x287e8c[_0x1ffc('0xf')](_0x300f29)[_0x1ffc('0xb0')](_0x245716);this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x3fb031,{'userId':_0x55f1d7});}}}this[_0x1ffc('0x4')]=this[_0x1ffc('0x7d')];const _0x3839f7=[...Array(this[_0x1ffc('0x7d')])[_0x1ffc('0x19')]()]['slice'](0x1)[_0x1ffc('0x51')](_0x3a4107=>!this[_0x1ffc('0xeb')][_0x1ffc('0x2b')](_0x3a4107));let _0xcf6814=0x0;for(const _0x19adb7 in _0x4af375[_0x1ffc('0x37')]){const _0x4a91ae=this[_0x1ffc('0x29')](_0x4af375[_0x1ffc('0x37')][_0x19adb7][_0x1ffc('0xb')]);_0x4a91ae[_0x1ffc('0x8d')]=_0x19adb7,this['_diffRoots']['set'](_0x19adb7,_0x4a91ae);const _0x1e765e=this[_0x1ffc('0xec')](_0x4a91ae,Number[_0x1ffc('0xaf')]);this['_idsRoots'][_0x1ffc('0x27')](_0x19adb7,_0x1e765e);for(const [_0x430c32,_0x1fad8d]of _0x4a91ae[_0x1ffc('0xc0')]){if(!_0x430c32['startsWith'](_0x1ffc('0x1a')))continue;const _0x16b410=_0x430c32[_0x1ffc('0x7a')](':')[0x2];for(const _0x12e65e of _0x1fad8d[_0x1ffc('0x24')]({'singleCharacters':!0x0})){const _0x3537d7=this[_0x1ffc('0x16')](_0x12e65e),_0x5f3de2=this[_0x1ffc('0x7d')]++,_0x3cda4d=_0x1ffc('0x36')==_0x12e65e['type']?_0x12e65e[_0x1ffc('0x3f')][_0x1ffc('0xc7')]['slice'](0x0,-0x1):_0x12e65e[_0x1ffc('0x3f')][_0x1ffc('0xc7')];_0x1e765e['getNodeByPath'](_0x3cda4d)[_0x1ffc('0xb1')](_0x3537d7,_0x5f3de2),this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x5f3de2,{'userId':_0x16b410});}}for(const _0x1a1f97 of this[_0x1ffc('0xb6')]['model'][_0x1ffc('0x42')](_0x4a91ae)[_0x1ffc('0x24')]({'singleCharacters':!0x0})){const _0x5f2e57=this[_0x1ffc('0x16')](_0x1a1f97),_0x2d4ee4='elementEnd'==_0x1a1f97['type']?_0x1a1f97[_0x1ffc('0x3f')][_0x1ffc('0xc7')][_0x1ffc('0x6f')](0x0,-0x1):_0x1a1f97[_0x1ffc('0x3f')][_0x1ffc('0xc7')],_0x7d46fe=_0x1e765e['getNodeByPath'](_0x2d4ee4);_0x7d46fe[_0x1ffc('0xb0')](_0x5f2e57)>0x0||_0x7d46fe[_0x1ffc('0xb1')](_0x5f2e57,_0x3839f7[_0xcf6814++]);}const _0x33753b=new _0xfd6a74();_0x33753b['rootName']=_0x1ffc('0xf3'),this['_baseRoots']['set']('$graveyard',_0x33753b),this['_baseIdsRoots'][_0x1ffc('0x27')](_0x1ffc('0xf3'),this[_0x1ffc('0xec')](_0x33753b,0x1));const _0x1fdcf5=new _0xfd6a74();_0x1fdcf5['rootName']='$graveyard',this['_diffRoots'][_0x1ffc('0x27')]('$graveyard',_0x1fdcf5),this['_idsRoots'][_0x1ffc('0x27')]('$graveyard',this['_makeIdsRoot'](_0x1fdcf5,0x1));for(const [_0x42f563,_0x3bec41]of _0x4a91ae[_0x1ffc('0xc0')])_0x42f563[_0x1ffc('0x7e')]('revision:')||this[_0x1ffc('0x2a')][_0x1ffc('0x27')](_0x42f563,_0x3bec41);}const _0xe7bf0f=Array[_0x1ffc('0xd6')](this[_0x1ffc('0xbb')])['map'](([_0x575e05,_0x233f6c])=>[_0x575e05,J(_0x233f6c)]);this[_0x1ffc('0x1f')](this['_lastTo'],_0xe7bf0f,this['_markers']);}[_0x1ffc('0x29')](_0x56d3f6){const _0xdbbc1f=JSON['parse'](_0x56d3f6),_0x5241fd=this[_0x1ffc('0xb6')][_0x1ffc('0x74')]['view'][_0x1ffc('0x7b')],_0x4c0ada=new _0x242b3a(_0x5241fd,_0xdbbc1f[_0x1ffc('0xe4')](_0x368908=>F(_0x368908,this[_0x1ffc('0xb6')])));return this[_0x1ffc('0xb6')][_0x1ffc('0xce')]['toModel'](_0x4c0ada);}[_0x1ffc('0x73')](){const _0x2c6cca=new Map();for(const _0x3b4135 of this[_0x1ffc('0x91')]){const _0x43dc35=new _0xfd6a74();_0x43dc35[_0x1ffc('0x8d')]=_0x3b4135,_0x2c6cca[_0x1ffc('0x27')](_0x3b4135,_0x43dc35);}this[_0x1ffc('0x1f')](Number[_0x1ffc('0xaf')],_0x2c6cca,[]);}[_0x1ffc('0x1f')](_0x5a5b93,_0x559c31,_0x3b89b2){const _0x22424b=new Map(_0x559c31),_0x9a0d8e=new Map();for(const [_0x1003b7,_0x2e4cf0]of _0x3b89b2)_0x9a0d8e[_0x1ffc('0x27')](_0x1003b7,{'start':_0x2e4cf0[_0x1ffc('0x87')][_0x1ffc('0x41')](),'end':_0x2e4cf0['end'][_0x1ffc('0x41')](),'rootName':_0x2e4cf0[_0x1ffc('0x92')]['rootName']});this[_0x1ffc('0xf1')][_0x1ffc('0x27')](_0x5a5b93,{'roots':_0x22424b,'markers':_0x9a0d8e});}[_0x1ffc('0xc8')](_0x128ee4){this[_0x1ffc('0xf1')][_0x1ffc('0x88')](_0x128ee4);}[_0x1ffc('0x8b')](){this[_0x1ffc('0x1c')](),this[_0x1ffc('0x22')]=-0x1,this[_0x1ffc('0xaa')]=-0x1,this[_0x1ffc('0xf1')]['clear'](),this[_0x1ffc('0x9d')](this[_0x1ffc('0x50')]);}[_0x1ffc('0x1c')](){this[_0x1ffc('0xeb')][_0x1ffc('0x2f')](),this[_0x1ffc('0x46')][_0x1ffc('0x2f')](),this[_0x1ffc('0xbb')][_0x1ffc('0x2f')](),this['_baseRoots'][_0x1ffc('0x2f')](),this[_0x1ffc('0x94')][_0x1ffc('0x2f')](),this[_0x1ffc('0x14')][_0x1ffc('0x2f')](),this[_0x1ffc('0x2a')][_0x1ffc('0x2f')](),this[_0x1ffc('0x7d')]=0x1,this[_0x1ffc('0x4')]=this['_revisionId'];}[_0x1ffc('0xec')](_0x467a0d,_0xc202d5=null){let _0x43c073=null;_0x467a0d['is'](_0x1ffc('0x4f'))||(_0x43c073=new _0x230a92(_0x467a0d[_0x1ffc('0xbc')],{'vid_start':null===_0xc202d5?this[_0x1ffc('0x7d')]++:_0xc202d5++}));const _0x2e9cf5=[];for(const _0x11eb4e of _0x467a0d[_0x1ffc('0x59')]())if(_0x11eb4e['is'](_0x1ffc('0xf4'))){_0x2e9cf5[_0x1ffc('0x38')](this[_0x1ffc('0xec')](_0x11eb4e,_0xc202d5));const _0x3a73e5=_0x2e9cf5[_0x2e9cf5['length']-0x1];null!==_0xc202d5&&(_0xc202d5=_0x3a73e5['is'](_0x1ffc('0xf4'),_0x1ffc('0x9b'))?_0x3a73e5[_0x1ffc('0xb0')](_0x1ffc('0x33'))+0x1:_0x3a73e5['getAttribute']('vid_end')+0x1);}else for(let _0x5ad1b2=0x0;_0x5ad1b2<_0x11eb4e[_0x1ffc('0xb5')];_0x5ad1b2++)_0x2e9cf5['push'](new _0x230a92('$text',{'vid':null===_0xc202d5?this[_0x1ffc('0x7d')]++:_0xc202d5++}));if(_0x467a0d['is'](_0x1ffc('0x4f'))){const _0x3894bc=new _0xfd6a74(_0x2e9cf5);return _0x3894bc[_0x1ffc('0x8d')]=_0x467a0d['rootName'],_0x3894bc;}return _0x43c073[_0x1ffc('0xb1')](_0x1ffc('0xc4'),null===_0xc202d5?this['_revisionId']++:_0xc202d5++),_0x43c073[_0x1ffc('0x1b')](0x0,_0x2e9cf5),_0x43c073;}[_0x1ffc('0x32')](_0x3e928f,_0x5bf16a,_0x313ae1){this[_0x1ffc('0x1c')]();const {roots:_0x3dcd60,markers:_0x30aad3}=this[_0x1ffc('0xf1')][_0x1ffc('0xda')](_0x3e928f);this['_baseRoots']=new Map(_0x3dcd60);for(const [_0x5d2e2d,_0x5c8e99]of this[_0x1ffc('0xa2')])if('$graveyard'!==_0x5d2e2d&&(this[_0x1ffc('0xbb')][_0x1ffc('0x27')](_0x5d2e2d,J(_0x5c8e99)),_0x313ae1)){const _0x574b8a=this[_0x1ffc('0x7d')];this[_0x1ffc('0x94')][_0x1ffc('0x27')](_0x5d2e2d,this[_0x1ffc('0xec')](_0x5c8e99)),this[_0x1ffc('0x14')]['set'](_0x5d2e2d,this[_0x1ffc('0xec')](_0x5c8e99,_0x574b8a));}this['_startingRevisionId']=this[_0x1ffc('0x7d')],this['_diffRoots']['set'](_0x1ffc('0xf3'),J(this[_0x1ffc('0xa2')][_0x1ffc('0xda')]('$graveyard'))),_0x313ae1&&this[_0x1ffc('0x94')][_0x1ffc('0x27')]('$graveyard',this[_0x1ffc('0xec')](this[_0x1ffc('0xa2')][_0x1ffc('0xda')](_0x1ffc('0xf3'))));for(const [_0x2d33f6,_0x104594]of _0x30aad3){const _0x59fa06=this[_0x1ffc('0xa2')][_0x1ffc('0xda')](_0x104594[_0x1ffc('0x8d')]),_0x56c319=this[_0x1ffc('0xbb')][_0x1ffc('0xda')](_0x104594[_0x1ffc('0x8d')]),_0x51e99a=new _0x21882a(this[_0x1ffc('0xa8')](_0x104594[_0x1ffc('0x87')],_0x59fa06),this[_0x1ffc('0xa8')](_0x104594[_0x1ffc('0xbd')],_0x59fa06)),_0x1901e9=this[_0x1ffc('0x6')](_0x51e99a,_0x56c319);_0x59fa06[_0x1ffc('0xc0')]['set'](_0x2d33f6,_0x51e99a),this[_0x1ffc('0x2a')][_0x1ffc('0x27')](_0x2d33f6,_0x1901e9);}this[_0x1ffc('0xcd')](_0x3e928f,_0x5bf16a,_0x313ae1);}[_0x1ffc('0xcd')](_0x5a0184,_0x46095b,_0x429a50){for(const _0x52f0c4 of this['source'][_0x1ffc('0x1')](_0x5a0184,_0x46095b))this[_0x1ffc('0xd3')](_0x52f0c4,_0x429a50);for(const _0x5bd46b of this[_0x1ffc('0xbb')][_0x1ffc('0x84')]())_0x5bd46b[_0x1ffc('0xc0')][_0x1ffc('0x2f')]();for(const [_0x16b88e,_0x50d225]of this[_0x1ffc('0x2a')]){this[_0x1ffc('0xbb')][_0x1ffc('0xda')](_0x50d225['root'][_0x1ffc('0x8d')])[_0x1ffc('0xc0')][_0x1ffc('0x27')](_0x16b88e,_0x50d225[_0x1ffc('0x41')]());}this[_0x1ffc('0x1f')](_0x46095b,Array['from'](this['_diffRoots'])[_0x1ffc('0xe4')](([_0x2faa63,_0xb44f61])=>[_0x2faa63,J(_0xb44f61)]),this['_markers']);}['_getPreviousFrom'](_0x5e4d91){const _0x15fcd8=Array[_0x1ffc('0xd6')](this['_savedMetaData'][_0x1ffc('0x19')]());_0x15fcd8[_0x1ffc('0xbf')]((_0x1a477c,_0x5239f4)=>_0x1a477c-_0x5239f4),_0x15fcd8[_0x1ffc('0xf2')]();for(const _0x166f0b of _0x15fcd8)if(_0x166f0b<_0x5e4d91)return _0x166f0b;return this[_0x1ffc('0x73')](),Number[_0x1ffc('0xaf')];}['_copyMarkers'](_0x462bcb,_0x20c951){const _0x5b39df=Array['from'](_0x20c951['markers'])[_0x1ffc('0xe4')](([_0x1b7757,_0x5eda30])=>[_0x1b7757,this[_0x1ffc('0x6')](_0x5eda30,_0x462bcb)]);_0x462bcb[_0x1ffc('0xc0')]=new Map(_0x5b39df);}['_transformMarkers'](_0x5e02e6){for(const _0x50e713 of this['_markers']['values']()){const _0x2b6f74=_0x50e713[_0x1ffc('0x90')](_0x5e02e6),_0x462fc9=_0x21882a[_0x1ffc('0x85')](_0x2b6f74);_0x50e713['start']=_0x462fc9[_0x1ffc('0x87')],_0x50e713['end']=_0x462fc9['end'];}}['_handleOperation'](_0x202f10,_0x485c3a){const _0x55e23c=this['_cloneOperation'](_0x202f10,this[_0x1ffc('0xbb')]);if(_0x1ffc('0xef')!==_0x202f10['type']&&(_0x55e23c[_0x1ffc('0x78')](),this[_0x1ffc('0xcb')](_0x55e23c)),_0x485c3a)switch(_0x55e23c['type']){case _0x1ffc('0x3e'):this[_0x1ffc('0x7')](_0x202f10);break;case _0x1ffc('0x28'):case _0x1ffc('0x6b'):case _0x1ffc('0xb8'):this['_handleMoveOperation'](_0x202f10);break;case'merge':this[_0x1ffc('0xcc')](_0x202f10);break;case'split':this[_0x1ffc('0xa4')](_0x202f10);break;case _0x1ffc('0xef'):this[_0x1ffc('0x2e')](_0x202f10);}}['_cloneOperation'](_0x511c77,_0x54f405){const _0x2410fc=_0x511c77[_0x1ffc('0x41')]();return _0x2410fc[_0x1ffc('0xa7')]=_0x511c77[_0x1ffc('0xa7')],this['_fixOperation'](_0x2410fc,_0x54f405),_0x2410fc;}[_0x1ffc('0x3d')](_0x120214){return _0x120214[_0x1ffc('0xe4')](_0x2a0503=>{const _0x2de7ae=this[_0x1ffc('0x16')](_0x2a0503);return Number(_0x2a0503[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x2de7ae));});}['_generateTape'](_0x519b58,_0x19bbfc){if(_0x519b58['is']('element','$text'))_0x19bbfc[_0x1ffc('0x38')]({'item':_0x519b58,'type':'text'});else{_0x519b58['is'](_0x1ffc('0xf4'))&&_0x19bbfc['push']({'item':_0x519b58,'type':_0x1ffc('0x56')});for(const _0xbd0e85 of _0x519b58[_0x1ffc('0x59')]())this['_generateTape'](_0xbd0e85,_0x19bbfc);_0x519b58['is']('element')&&_0x19bbfc[_0x1ffc('0x38')]({'item':_0x519b58,'type':_0x1ffc('0x36')});}return _0x19bbfc;}[_0x1ffc('0x48')](){const _0x79aeb4=this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x40')](),_0x15588c=new Map(this[_0x1ffc('0xeb')]),_0x441f59=new Map(_0x15588c),_0x5d373d=new Map(),_0x590861={'insertions':{},'deletions':{}},_0x984c6e={'insertions':{},'deletions':{}},_0x1dbcbb=new Map();for(const _0x5cf460 of _0x79aeb4){const _0x33152e=this[_0x1ffc('0xbb')][_0x1ffc('0xda')](_0x5cf460),_0xa1e812=this[_0x1ffc('0xa2')][_0x1ffc('0xda')](_0x5cf460);_0x590861[_0x1ffc('0xb')][_0x5cf460]=J(_0x33152e),_0x590861['deletions'][_0x5cf460]=J(_0xa1e812),this[_0x1ffc('0x6d')](_0x590861['deletions'][_0x5cf460],_0xa1e812),this[_0x1ffc('0x6d')](_0x590861[_0x1ffc('0xb')][_0x5cf460],_0x33152e),_0x984c6e['insertions'][_0x5cf460]=this['_generateTape'](this[_0x1ffc('0x94')][_0x1ffc('0xda')](_0x5cf460),[]),_0x984c6e[_0x1ffc('0x53')][_0x5cf460]=this[_0x1ffc('0x31')](this['_baseIdsRoots'][_0x1ffc('0xda')](_0x5cf460),[]);}for(const _0x4fe41b of _0x79aeb4){const _0x1a2963=_0x984c6e['insertions'][_0x4fe41b];for(const _0x53e098 of _0x1a2963){const _0x485952=this[_0x1ffc('0x16')](_0x53e098),_0x291aef=_0x53e098[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x485952);_0x441f59[_0x1ffc('0x88')](_0x291aef),_0x291aef>=this[_0x1ffc('0x4')]&&_0x5d373d['set'](_0x291aef,_0x15588c[_0x1ffc('0xda')](_0x291aef));}}for(const _0x1d155d of _0x79aeb4){const _0x2963ca=_0x984c6e[_0x1ffc('0xb')][_0x1d155d],_0x51c2a7=this[_0x1ffc('0x3d')](_0x984c6e[_0x1ffc('0x53')][_0x1d155d]);let _0x3d198d=0x0;for(const _0x54b038 of _0x2963ca){const _0xb58278=this['_getVidAttributeName'](_0x54b038),_0x2de699=_0x54b038[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0xb58278);if(!_0x5d373d[_0x1ffc('0x2b')](_0x2de699)&&!_0x1dbcbb[_0x1ffc('0x2b')](_0x2de699)){if(_0x441f59[_0x1ffc('0x2b')](_0x2de699))_0x3d198d++;else{if(_0x2de699!=_0x51c2a7[_0x3d198d]){const _0x2aad84=_0x15588c[_0x1ffc('0xda')](_0x2de699)||_0x15588c[_0x1ffc('0xda')](_0x51c2a7[_0x3d198d]);for(;_0x2de699!=_0x51c2a7[_0x3d198d];)_0x441f59[_0x1ffc('0x2b')](_0x51c2a7[_0x3d198d])||(_0x1dbcbb[_0x1ffc('0x27')](_0x51c2a7[_0x3d198d],_0x2aad84),_0x15588c[_0x1ffc('0x27')](_0x51c2a7[_0x3d198d],_0x2aad84)),_0x3d198d++;}_0x3d198d++;}}}}for(const _0x29482e of _0x79aeb4){const _0x757487=_0x984c6e[_0x1ffc('0xb')][_0x29482e];for(const _0x223af9 of _0x757487){const _0x283ee2=this[_0x1ffc('0x16')](_0x223af9),_0x474179=_0x223af9['item'][_0x1ffc('0xb0')](_0x283ee2);if(_0x1dbcbb[_0x1ffc('0x2b')](_0x474179)){const _0x138e0e=_0x1dbcbb[_0x1ffc('0xda')](_0x474179);_0x441f59[_0x1ffc('0x2b')](_0x474179)||_0x441f59['set'](_0x474179,{..._0x138e0e}),_0x5d373d[_0x1ffc('0x27')](_0x474179,{..._0x138e0e});}}}for(const _0x499261 of _0x441f59['keys']())_0x499261>=this[_0x1ffc('0x4')]&&_0x441f59[_0x1ffc('0x88')](_0x499261);const _0x339e0c=new Map();for(const _0x44d418 of _0x79aeb4){let _0x2ed6ab=_0x984c6e[_0x1ffc('0xb')][_0x44d418];for(const _0x3208a8 of _0x2ed6ab)if(_0x3208a8[_0x1ffc('0xe5')]['is'](_0x1ffc('0xf4'),_0x1ffc('0x6e'))){const _0x5dee5a=this[_0x1ffc('0x16')](_0x3208a8),_0x3f45dc=_0x3208a8[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x5dee5a);if(_0x5d373d['has'](_0x3f45dc)){const _0x4e29cf=_0x3208a8[_0x1ffc('0xe5')][_0x1ffc('0xd0')][_0x1ffc('0xd0')]['getAttribute']('vid_start'),_0xde4faf=_0x339e0c['get'](_0x4e29cf)||new Set();_0xde4faf[_0x1ffc('0xae')](_0x5d373d[_0x1ffc('0xda')](_0x3f45dc)[_0x1ffc('0x9')]),_0x339e0c[_0x1ffc('0x27')](_0x4e29cf,_0xde4faf);}}_0x2ed6ab=_0x984c6e[_0x1ffc('0x53')][_0x44d418];for(const _0x46cab4 of _0x2ed6ab)if(_0x46cab4[_0x1ffc('0xe5')]['is'](_0x1ffc('0xf4'),_0x1ffc('0x6e'))){const _0x37dad9=this[_0x1ffc('0x16')](_0x46cab4),_0x538c0a=_0x46cab4[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x37dad9);if(_0x441f59[_0x1ffc('0x2b')](_0x538c0a)){const _0x1359ae=_0x46cab4['item'][_0x1ffc('0xd0')][_0x1ffc('0xd0')][_0x1ffc('0xb0')](_0x1ffc('0x5a')),_0x341df6=_0x339e0c[_0x1ffc('0xda')](_0x1359ae)||new Set();_0x341df6['add'](_0x441f59[_0x1ffc('0xda')](_0x538c0a)['userId']),_0x339e0c['set'](_0x1359ae,_0x341df6);}}for(const _0x4b4123 of _0x339e0c[_0x1ffc('0x19')]())(_0x5d373d[_0x1ffc('0x2b')](_0x4b4123)||_0x441f59['has'](_0x4b4123))&&_0x339e0c[_0x1ffc('0x88')](_0x4b4123);}for(const _0x17a890 of _0x79aeb4){const _0x1fe2e8=_0x984c6e[_0x1ffc('0xb')][_0x17a890];let _0x1bb34b=null,_0x96da53=null;for(const _0x4618f6 of _0x1fe2e8){const _0x9bd616=this[_0x1ffc('0x16')](_0x4618f6),_0x1bc636=_0x4618f6[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x9bd616),_0x19f596=_0x339e0c['get'](_0x1bc636);_0x19f596&&_0x1ffc('0x56')==_0x4618f6['type']&&(_0x1bb34b=Array[_0x1ffc('0xd6')](_0x19f596)[0x0],_0x96da53=_0x4618f6['item'][_0x1ffc('0xb0')](_0x1ffc('0xc4'))),_0x1bb34b&&(_0x441f59[_0x1ffc('0x27')](_0x1bc636,{'userId':_0x1bb34b}),_0x5d373d[_0x1ffc('0x27')](_0x1bc636,{'userId':_0x1bb34b})),_0x1bc636==_0x96da53&&(_0x1bb34b=null,_0x96da53=null);}}const _0x3c4d6d={},_0x49e611=new Set();for(const _0x49ffe8 of _0x79aeb4){const _0x5a7552=_0x590861[_0x1ffc('0x53')][_0x49ffe8],_0x5d7730=_0x590861[_0x1ffc('0xb')][_0x49ffe8];for(const {userId:_0x2b9e0c}of this[_0x1ffc('0x46')][_0x1ffc('0x84')]())null!==_0x2b9e0c&&_0x49e611[_0x1ffc('0xae')](_0x2b9e0c);this[_0x1ffc('0x4b')](_0x5d7730,_0x984c6e[_0x1ffc('0xb')][_0x49ffe8],_0x5d373d,'insertion',_0x49e611),this['_markChanges'](_0x5a7552,_0x984c6e[_0x1ffc('0x53')][_0x49ffe8],_0x441f59,_0x1ffc('0xb4'),_0x49e611),_0x3c4d6d[_0x49ffe8]={'insertions':this[_0x1ffc('0x58')](_0x5d7730),'deletions':this[_0x1ffc('0x58')](_0x5a7552)};}return{'diffData':_0x3c4d6d,'authorsIds':Array[_0x1ffc('0xd6')](_0x49e611)};}[_0x1ffc('0x64')](_0xb895ab){for(const [,_0x137bab]of _0xb895ab['markers']){const _0xfff0ef=_0x137bab['start']['getAncestors']()['filter'](_0x250bc4=>_0x1ffc('0x6e')==_0x250bc4['name']);for(const _0x5be3e4 of _0xfff0ef)0x1==_0x5be3e4[_0x1ffc('0x69')]&&_0x5be3e4[_0x1ffc('0x2d')](0x0)['is'](_0x1ffc('0xf4'),_0x1ffc('0x26'))&&_0x5be3e4[_0x1ffc('0x2d')](0x0)[_0x1ffc('0xb1')]('keepParagraph',!0x0);}}[_0x1ffc('0x58')](_0x4d9bd1){this[_0x1ffc('0x64')](_0x4d9bd1);const _0xd5ac9b=this[_0x1ffc('0xb6')][_0x1ffc('0xce')][_0x1ffc('0xd1')](_0x4d9bd1,{}),_0x524360=Array[_0x1ffc('0xd6')](_0xd5ac9b[_0x1ffc('0x59')]())[_0x1ffc('0xe4')](_0x550b03=>this[_0x1ffc('0xc2')](_0x550b03));return JSON[_0x1ffc('0x97')](_0x524360);}[_0x1ffc('0xc2')](_0x368ce2){if(_0x368ce2['is'](_0x1ffc('0x9c')))return _0x368ce2[_0x1ffc('0xce')];return{'type':Object[_0x1ffc('0x19')](V)['find'](_0x39cdf4=>_0x368ce2 instanceof V[_0x39cdf4]),'name':_0x368ce2[_0x1ffc('0xbc')],'attributes':Array[_0x1ffc('0xd6')](_0x368ce2['getAttributes']()),'children':Array[_0x1ffc('0xd6')](_0x368ce2[_0x1ffc('0x59')]())[_0x1ffc('0xe4')](_0x4fb103=>this[_0x1ffc('0xc2')](_0x4fb103))};}[_0x1ffc('0x4b')](_0x1d6085,_0x3b6f4d,_0x2b9968,_0x5d6384,_0x2a6386){let _0x456799=null,_0x1aee14=null,_0x39df5b=0x0;const _0x42edc1=this['editor'][_0x1ffc('0x82')];for(let _0x1e668a=0x0;_0x1e668a<_0x3b6f4d[_0x1ffc('0x76')];_0x1e668a++){const _0x2b1337=this[_0x1ffc('0x16')](_0x3b6f4d[_0x1e668a]),_0x12b433=_0x3b6f4d[_0x1e668a][_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x2b1337),_0x2baa21=_0x2b9968[_0x1ffc('0xda')](_0x12b433),_0x52b66d=_0x1e668a==_0x3b6f4d[_0x1ffc('0x76')]-0x1;(!_0x456799&&_0x2baa21&&(_0x456799=_0x2baa21,_0x1aee14=_0x3b6f4d[_0x1e668a]),_0x456799&&(!_0x2baa21||_0x2baa21[_0x1ffc('0x9')]!=_0x456799['userId']))&&(_0x44295d(_0x2baa21,j(_0x1aee14,_0x1d6085,_0x42edc1),j(_0x3b6f4d[_0x1e668a],_0x1d6085,_0x42edc1)),_0x456799=_0x2baa21||null,_0x1aee14=_0x2baa21?_0x3b6f4d[_0x1e668a]:null),_0x456799&&_0x52b66d&&_0x44295d(_0x2baa21,j(_0x1aee14,_0x1d6085,_0x42edc1),B(_0x3b6f4d[_0x1e668a],_0x1d6085,_0x42edc1));}function _0x44295d(_0x15b19c,_0x1382f1,_0x3e22e7){const _0x1ab7aa=_0x456799[_0x1ffc('0x9')],_0x19ec44=_0x1ffc('0x1a')+_0x5d6384+':'+_0x1ab7aa+':'+_0x39df5b++,_0x2c7f91=_0x42edc1[_0x1ffc('0x80')](_0x1382f1,_0x3e22e7);_0x1d6085[_0x1ffc('0xc0')][_0x1ffc('0x27')](_0x19ec44,_0x2c7f91),null!==_0x1ab7aa&&_0x2a6386[_0x1ffc('0xae')](_0x1ab7aa);}}['_getVidAttributeName'](_0xdaa4fd){switch(_0xdaa4fd[_0x1ffc('0xd7')]){case'elementStart':return _0x1ffc('0x5a');case _0x1ffc('0x36'):return _0x1ffc('0xc4');default:return _0x1ffc('0x33');}}[_0x1ffc('0x57')](_0x25ec9f,_0x478680){_0x25ec9f['baseVersion']=null;for(const _0x395ec7 in _0x25ec9f){if(_0x25ec9f[_0x395ec7]instanceof _0x29deb2){const _0x37a663=_0x478680[_0x1ffc('0xda')](_0x25ec9f[_0x395ec7][_0x1ffc('0x92')]['rootName']);_0x25ec9f[_0x395ec7]=this[_0x1ffc('0xa8')](_0x25ec9f[_0x395ec7],_0x37a663);}if(_0x25ec9f[_0x395ec7]instanceof _0x21882a){const _0x4ca2b9=_0x478680['get'](_0x25ec9f[_0x395ec7][_0x1ffc('0x92')][_0x1ffc('0x8d')]);_0x25ec9f[_0x395ec7]=this[_0x1ffc('0x6')](_0x25ec9f[_0x395ec7],_0x4ca2b9);}}_0x25ec9f[_0x1ffc('0x92')]&&(_0x25ec9f['root']=_0x478680[_0x1ffc('0xda')](_0x25ec9f['root'][_0x1ffc('0x8d')]));}['_fixRange'](_0x58e111,_0x40acc3){return this['editor']['model']['createRange'](this['_fixPosition'](_0x58e111[_0x1ffc('0x87')],_0x40acc3),this[_0x1ffc('0xa8')](_0x58e111[_0x1ffc('0xbd')],_0x40acc3));}[_0x1ffc('0xa8')](_0x1f28c5,_0x43b009){return this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x70')](_0x43b009,_0x1f28c5['path'],_0x1f28c5[_0x1ffc('0xba')]);}[_0x1ffc('0x7')](_0x10543a){const _0x70a88d=this[_0x1ffc('0x94')]['get'](_0x10543a[_0x1ffc('0xc3')][_0x1ffc('0x92')][_0x1ffc('0x8d')]),_0x3e0b1f=this['_fixPosition'](_0x10543a['position'],_0x70a88d),_0x5183b7=null===_0x10543a[_0x1ffc('0xa7')]?null:_0x10543a[_0x1ffc('0xa7')]||this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0x353c85=_0x3e0b1f['parent'],_0x46ccfa=this['_revisionId'],_0x42d5b8=[];for(const _0x4a58f9 of _0x10543a[_0x1ffc('0x55')])if(_0x4a58f9['is'](_0x1ffc('0xf4')))_0x42d5b8[_0x1ffc('0x38')](this[_0x1ffc('0xec')](_0x4a58f9));else for(let _0x158f20=0x0;_0x158f20<_0x4a58f9[_0x1ffc('0xb5')];_0x158f20++)_0x42d5b8[_0x1ffc('0x38')](new _0x230a92('$text',{'vid':this[_0x1ffc('0x7d')]++}));const _0x88fc3e=this[_0x1ffc('0x7d')];for(let _0x221ca9=_0x46ccfa;_0x221ca9<_0x88fc3e;_0x221ca9++)this[_0x1ffc('0xeb')]['set'](_0x221ca9,{'userId':_0x5183b7});_0x353c85[_0x1ffc('0x1b')](_0x3e0b1f[_0x1ffc('0xe6')],_0x42d5b8);}[_0x1ffc('0x61')](_0x3a3068){(_0x3a3068=this[_0x1ffc('0xe3')](_0x3a3068,this[_0x1ffc('0x94')]))[_0x1ffc('0x78')]();const _0x4440cd=null===_0x3a3068[_0x1ffc('0xa7')]?null:_0x3a3068[_0x1ffc('0xa7')]||this['editor'][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0x3c86eb=_0x3a3068[_0x1ffc('0x62')](),_0xdf1417=_0x3c86eb['parent'],_0x84c461=_0x3c86eb['offset'];!function _0x11544b(_0x2522af,_0x548f3b,_0x519160,_0x31f363){for(let _0x13b7fa=_0x519160;_0x13b7fa<_0x31f363;_0x13b7fa++){const _0xae7a62=_0x548f3b['getChild'](_0x13b7fa);_0xae7a62['is']('element',_0x1ffc('0x9b'))?_0x2522af[_0x1ffc('0x27')](_0xae7a62[_0x1ffc('0xb0')]('vid'),{'userId':_0x4440cd}):(_0x2522af[_0x1ffc('0x27')](_0xae7a62['getAttribute'](_0x1ffc('0x5a')),{'userId':_0x4440cd}),_0x11544b(_0x2522af,_0xae7a62,0x0,_0xae7a62['childCount']),_0x2522af[_0x1ffc('0x27')](_0xae7a62[_0x1ffc('0xb0')](_0x1ffc('0xc4')),{'userId':_0x4440cd}));}}(this[_0x1ffc('0xeb')],_0xdf1417,_0x84c461,_0x84c461+_0x3a3068[_0x1ffc('0x9a')]);}[_0x1ffc('0xcc')](_0x2eb287){const _0xb147ed=null===(_0x2eb287=this[_0x1ffc('0xe3')](_0x2eb287,this[_0x1ffc('0x94')]))[_0x1ffc('0xa7')]?null:_0x2eb287[_0x1ffc('0xa7')]||this['editor'][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0xfa0d99=_0x2eb287[_0x1ffc('0x8f')][_0x1ffc('0xd0')],_0x4b3f4b=_0x2eb287[_0x1ffc('0xad')]['parent'],_0x236fd5=_0xfa0d99[_0x1ffc('0xb0')](_0x1ffc('0xc4')),_0x411e45=_0x4b3f4b[_0x1ffc('0xb0')]('vid_start');_0xfa0d99[_0x1ffc('0xb1')](_0x1ffc('0xc4'),_0x4b3f4b[_0x1ffc('0xb0')]('vid_end')),_0x4b3f4b[_0x1ffc('0xb1')](_0x1ffc('0xc4'),_0x236fd5),this['_touched'][_0x1ffc('0x27')](_0x411e45,{'userId':_0xb147ed}),this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x236fd5,{'userId':_0xb147ed}),_0x2eb287[_0x1ffc('0x78')]();}[_0x1ffc('0xa4')](_0x17d998){const _0x31106f=null===(_0x17d998=this['_cloneOperation'](_0x17d998,this[_0x1ffc('0x94')]))[_0x1ffc('0xa7')]?null:_0x17d998[_0x1ffc('0xa7')]||this[_0x1ffc('0xb6')]['plugins'][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0x1e1bdb=_0x17d998[_0x1ffc('0x3c')],_0x456a7f=_0x17d998[_0x1ffc('0x60')][_0x1ffc('0xd0')];_0x17d998['_execute']();const _0x5e40ca=_0x456a7f[_0x1ffc('0xb0')]('vid_end'),_0x1d8ced=_0x17d998['insertionPosition'][_0x1ffc('0x12')];if(_0x1e1bdb){const _0x226666=_0x1d8ced[_0x1ffc('0xb0')](_0x1ffc('0xc4')),_0x242fbe=_0x456a7f['getAttribute'](_0x1ffc('0xc4'));_0x456a7f['_setAttribute'](_0x1ffc('0xc4'),_0x226666),_0x1d8ced['_setAttribute'](_0x1ffc('0xc4'),_0x242fbe),this['_touched'][_0x1ffc('0x27')](_0x456a7f[_0x1ffc('0xb0')](_0x1ffc('0xc4')),{'userId':_0x31106f}),this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x1d8ced[_0x1ffc('0xb0')]('vid_start'),{'userId':_0x31106f});}else{const _0x5c8541=this['_revisionId']++,_0x3218cd=this['_revisionId']++;_0x456a7f['_setAttribute'](_0x1ffc('0xc4'),_0x5c8541),_0x1d8ced[_0x1ffc('0xb1')](_0x1ffc('0x5a'),_0x3218cd),_0x1d8ced[_0x1ffc('0xb1')](_0x1ffc('0xc4'),_0x5e40ca),this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x5c8541,{'userId':_0x31106f}),this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x3218cd,{'userId':_0x31106f});}}[_0x1ffc('0x2e')](_0xbed57d){if(!_0xbed57d[_0x1ffc('0x4c')])return;const _0x3778c2=(_0xbed57d=this[_0x1ffc('0xe3')](_0xbed57d,this[_0x1ffc('0xbb')]))[_0x1ffc('0x5')]?_0xbed57d['oldRange'][_0x1ffc('0x92')]:null,_0x3fe3c8=_0xbed57d[_0x1ffc('0xa3')]?_0xbed57d[_0x1ffc('0xa3')][_0x1ffc('0x92')]:null;_0x3778c2&&this[_0x1ffc('0x2a')][_0x1ffc('0x88')](_0xbed57d[_0x1ffc('0xbc')]),_0x3fe3c8&&this[_0x1ffc('0x2a')][_0x1ffc('0x27')](_0xbed57d['name'],_0xbed57d[_0x1ffc('0xa3')][_0x1ffc('0x41')]());const _0x86395b=null===_0xbed57d['_authorId']?null:_0xbed57d['_authorId']||this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0x3a82ea=_0xbed57d[_0x1ffc('0xbc')];if(!this[_0x1ffc('0x46')]['has'](_0x3a82ea))return void this[_0x1ffc('0x46')]['set'](_0x3a82ea,{'range':_0xbed57d['oldRange'],'userId':_0x86395b});const _0x514d70=this[_0x1ffc('0x46')][_0x1ffc('0xda')](_0x3a82ea),_0x2e7047=_0x514d70[_0x1ffc('0xc9')],_0x6df361=_0xbed57d[_0x1ffc('0xa3')];null==_0x2e7047&&null==_0x6df361||_0x2e7047&&_0x6df361&&_0x2e7047[_0x1ffc('0x9f')](_0x6df361)?this['_touchedMarkers']['delete'](_0xbed57d['name']):_0x514d70[_0x1ffc('0x9')]=_0x86395b;}}function J(_0x3d701b){const _0x13e7da=new _0xfd6a74();_0x13e7da[_0x1ffc('0x8d')]=_0x3d701b['rootName'];for(const _0x32b2ad of _0x3d701b[_0x1ffc('0x59')]()){const _0x2e458c=_0x32b2ad[_0x1ffc('0xca')](!0x0);_0x13e7da['_appendChild'](_0x2e458c);}return _0x13e7da;}function j(_0x37dcb1,_0x30152c,_0x1e0d99){const _0x560ca7='elementEnd'==_0x37dcb1['type']?_0x1e0d99[_0x1ffc('0xe7')](_0x37dcb1[_0x1ffc('0xe5')],_0x1ffc('0xbd')):_0x1e0d99['createPositionBefore'](_0x37dcb1[_0x1ffc('0xe5')]);return _0x560ca7[_0x1ffc('0x92')]=_0x30152c,_0x560ca7;}function B(_0x188fd9,_0x55543a,_0x7c2cf8){const _0x3d79ee=_0x1ffc('0x56')==_0x188fd9['type']?_0x7c2cf8[_0x1ffc('0xe7')](_0x188fd9[_0x1ffc('0xe5')],0x0):_0x7c2cf8[_0x1ffc('0xdf')](_0x188fd9['item']);return _0x3d79ee['root']=_0x55543a,_0x3d79ee;}
|