@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231123.0 → 0.0.0-nightly-20231124.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisiontracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4494=['data','PendingActions','_handleRootOperation','_operations','_handleRootAttributeOperation','size','getRevisionDocumentData','_removeMetaData','getOperations','changeRootAttribute','move','item','then','key','setSource','buildRevisionData','Empty\x20document','insert','_handleInsertOperation','some','source','attributesBefore','add','toVersion','RevisionTracker','isAttached','_touchedMarkers','targetPosition','_bufferUpdate','createPositionFromPath','resolve','from','_lastTo','elementStart','_handleSplitOperation','createdAt','_initialRevisionId','_prepareViewToSave','revisionHistory.resumeUnsavedRevision','revision','attributes','offsetSize','revision:','_handleMoveOperation','_removePendingAction','_baseRootsAttributes','addRevisionData','getTime','_applyOperations','sourcePosition','newRange','filter','roots','ready','initialData','diffData','getNodeByPath','pluginName','_continueCurrentRevision','_update','_isPendingUpdate','_cloneOperation','type','RevisionsRepository','keys','createRange','slice','currentRevision','_appendChild','toModel','offset','_source','map','_setAttribute','_revisionId','baseVersion','getRevisionRootsAttributes','getRevisions','_pendingAction','getWalker','_baseIdsRoots','getChildren','insertions','data-revision-','isReady','_createCurrentRevision','_processRootBeforeSave','end','getCurrentRevisionId','afterInit','max','adapter','_markers','values','createRangeIn','init','bind','getAttribute','_fixOperation','createRevision','_generateTape','start','_diffRootsAttributes','position','useFillerType','upcast','config','documentFragment','root','_insertChild','getUser','newValue','_copyMarkers','_fixPosition','model','_getViewJson','_handleMarkerOperation','push','_getVidAttributeName','childCount','Users','stringify','insertionPosition','authors','NEGATIVE_INFINITY','deletions','processor','length','getOperation','_baseRoots','tableCell','attachChange','editor-initial-data-replaced-with-revision-data','graveyardPosition','isAdd','sort','revision-end','getChild','howMany','_removeRevisionMarkers','getRoot','getAttributes','plugins','conversion','history','split','set','_touched','reInit','createPositionBefore','dataDowncast','markers','vid','setRevisionData','removeRootAttribute','fromEntries','vid_start','version','_lastFrom','markerToData','_loadedStateData','$graveyard','_createInitialRevision','toData','getData','previousPosition','name','deletion','_makeIdsRoot','_getFromVersion','_addPendingAction','_revisionDataBuilder','remove','_reset','document','getRootNames','define','for','view','createPositionAt','marker','authorsIds','editing','keepParagraph','getTransformedByOperation','fromVersion','startsWith','addRevision','_getState','stickiness','rootsAttributes','_findInsertionIndex','_handleOperation','delete','rootName','_touchedRoots','repository','_transformMarkers','_startingVersion','marked','_startingRevisionId','_replaceEditorDataWithRevisionData','_savedMetaData','editor','clone','vid_end','creator','string','dataToMarker','elementEnd','trim','_setConversion','_diffRoots','text','clear','_loadRevisionData','default','_markChanges','getRevision','oldRange','children','_clone','_bufferedUpdates','find','_makeRevision','addRoot','_handleMergeOperation','_saveMetaData','userId','_getPreviousFrom','PENDING_ACTION_REVISION_HISTORY','_execute','_fixRange','element','range','getLatestVersion','_loadState','includes','_idsRoots','_isInit','_getBaseVids','_makeModelFromViewString','get','reverse','_isAttached','parent','has','sendBufferedUpdates','$text','_authorId','requires','parse','getMovedRangeStart','path','forEach'];(function(_0x4b98b6,_0x4494de){const _0x7affe7=function(_0x3a21dd){while(--_0x3a21dd){_0x4b98b6['push'](_0x4b98b6['shift']());}};_0x7affe7(++_0x4494de);}(_0x4494,0x1a1));const _0x7aff=function(_0x4b98b6,_0x4494de){_0x4b98b6=_0x4b98b6-0x0;let _0x7affe7=_0x4494[_0x4b98b6];return _0x7affe7;};import{Users as _0x3fefb7}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x2af11e,PendingActions as _0x454405}from'ckeditor5/src/core';import{logWarning as _0x68fee7,uid as _0x5647b3}from'ckeditor5/src/utils';import{Position as _0x576a27,Range as _0x23cb2f,Element as _0x371ba5,DocumentFragment as _0x33b7b8,ViewText as _0x28ab94,ViewElement as _0x18ea86,ViewContainerElement as _0x1559cb,ViewAttributeElement as _0x49cffa,ViewEmptyElement as _0x151cb8,ViewRawElement as _0x4f37c0,ViewUIElement as _0x54b5c9,ViewDocumentFragment as _0x397dc4}from'ckeditor5/src/engine';import _0x133f4e from'./revisionsrepository';import{getTranslation as _0x427c39}from'./utils/common-translations';import{cloneDeep as _0x53c182,isEqual as _0x4a475f}from'lodash-es';const B={'c':_0x1559cb,'a':_0x49cffa,'e':_0x151cb8,'r':_0x4f37c0,'u':_0x54b5c9};export default class l extends _0x2af11e{static get[_0x7aff('0x96')](){return _0x7aff('0x75');}static get[_0x7aff('0x58')](){return[_0x3fefb7,_0x133f4e,_0x454405];}constructor(_0x390907){super(_0x390907),this[_0x7aff('0xb8')]=null,this[_0x7aff('0xa0')]=null,this[_0x7aff('0x9')]=new H(this[_0x7aff('0x29')]),this[_0x7aff('0x81')]=this[_0x7aff('0x29')][_0x7aff('0xc7')][_0x7aff('0x50')]('collaboration.channelId')||'initial',this[_0x7aff('0x3c')]=new Map(),this['_loadedStateData']=null;const _0x2a0674=_0x5647b3();this[_0x7aff('0xa4')]={'history':this[_0x7aff('0x29')][_0x7aff('0xcf')][_0x7aff('0xc')][_0x7aff('0xed')],'getLatestVersion':()=>Promise['resolve'](this[_0x7aff('0x29')][_0x7aff('0xcf')][_0x7aff('0xc')][_0x7aff('0xfa')]),'getCurrentRevisionId':()=>_0x2a0674},this[_0x7aff('0xef')](_0x7aff('0xb1'),!0x1),this[_0x7aff('0xef')]('isEnabled',!0x0),this[_0x7aff('0xef')](_0x7aff('0x99'),!0x1),this[_0x7aff('0x29')][_0x7aff('0xc7')][_0x7aff('0xe')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x7aff('0x29')]['conversion'][_0x7aff('0xf')](_0x7aff('0xc6'))[_0x7aff('0x2e')]({'view':_0x7aff('0x84')});}['init'](){this[_0x7aff('0x22')]=this[_0x7aff('0x29')][_0x7aff('0xeb')]['get'](_0x7aff('0x9c')),this[_0x7aff('0x31')](),this[_0x7aff('0x29')]['data']['on'](_0x7aff('0x92'),()=>{const _0x491a11=this[_0x7aff('0x22')][_0x7aff('0x38')](0x0),_0x99a24=_0x491a11&&null===_0x491a11[_0x7aff('0x2c')]?_0x491a11:null;if(this['_continueCurrentRevision']=!!_0x99a24&&this[_0x7aff('0x29')]['config']['get'](_0x7aff('0x83')),this[_0x7aff('0x29')][_0x7aff('0xeb')]['has']('RealTimeCollaborationClient')){const _0x11c5b3=this[_0x7aff('0xa4')]['getCurrentRevisionId'](),_0x456cac=this[_0x7aff('0x22')]['getRevision'](_0x11c5b3);if(_0x456cac)this[_0x7aff('0x24')]=_0x456cac['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x38a4b5=this['_source'][_0x7aff('0xed')][_0x7aff('0x60')][_0x7aff('0x3d')](_0x18c58b=>!_0x18c58b[_0x7aff('0x4d')]),_0x13d5ad=_0x38a4b5?_0x38a4b5[_0x7aff('0xa8')]:this[_0x7aff('0xa4')][_0x7aff('0xed')]['version'];_0x491a11?(_0x491a11[_0x7aff('0x74')]<_0x13d5ad&&_0x491a11[_0x7aff('0x98')]({'toVersion':_0x13d5ad}),this['_continueCurrentRevision']?(this[_0x7aff('0xa4')][_0x7aff('0xb5')]=()=>_0x99a24['id'],this[_0x7aff('0x24')]=_0x99a24[_0x7aff('0x17')]):(this[_0x7aff('0x24')]=_0x491a11[_0x7aff('0x74')],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x13d5ad,this['_continueCurrentRevision']=!0x1);}}else _0x99a24&&(this[_0x7aff('0x29')][_0x7aff('0xcf')][_0x7aff('0xc')][_0x7aff('0xed')][_0x7aff('0xfa')]=Math[_0x7aff('0xb7')](_0x99a24[_0x7aff('0x74')],this['editor'][_0x7aff('0xcf')][_0x7aff('0xc')]['history'][_0x7aff('0xfa')]),_0x99a24[_0x7aff('0x17')]===_0x99a24[_0x7aff('0x74')]?(0x0!==_0x99a24[_0x7aff('0x17')]&&(this[_0x7aff('0xa4')]['getCurrentRevisionId']=()=>_0x99a24['id']),this['_continueCurrentRevision']=!0x1):this[_0x7aff('0x97')]&&(this['_source'][_0x7aff('0xb5')]=()=>_0x99a24['id'],this['_startingVersion']=_0x99a24[_0x7aff('0x17')])),this['_continueCurrentRevision']||(this['_startingVersion']=this[_0x7aff('0x29')][_0x7aff('0xcf')][_0x7aff('0xc')]['version']);this[_0x7aff('0x9')]['init'](this['_source'][_0x7aff('0xed')]),this[_0x7aff('0x0')](this[_0x7aff('0x24')]),this[_0x7aff('0xb2')](this[_0x7aff('0x24')]),this[_0x7aff('0xb8')]&&this[_0x7aff('0x55')]();}),this[_0x7aff('0xbd')](_0x7aff('0xb1'))['to'](this,_0x7aff('0x99'),_0x5c2fd3=>!_0x5c2fd3);}async[_0x7aff('0xb6')](){if(this[_0x7aff('0x22')]['length']>0x0){const _0x2df127=this[_0x7aff('0x22')][_0x7aff('0x38')](0x0),_0x5405d5=await this[_0x7aff('0x63')](_0x2df127),_0x4bea2b=await this[_0x7aff('0xa9')](_0x2df127);this[_0x7aff('0x27')](_0x5405d5,_0x4bea2b);}}[_0x7aff('0x6b')](_0x5b40ef){this[_0x7aff('0xa4')]=_0x5b40ef;}async['update'](){const _0x2b5a60=await this['_source'][_0x7aff('0x49')]();if(_0x2b5a60>this[_0x7aff('0xa0')][_0x7aff('0x74')]){await this['_loadState']();const _0x3b380b=this[_0x7aff('0x6c')]({'revision':this[_0x7aff('0xa0')],'to':_0x2b5a60});_0x3b380b[_0x7aff('0xd8')]=_0x3b380b['authorsIds'][_0x7aff('0xa5')](_0x20f859=>this[_0x7aff('0x29')][_0x7aff('0xeb')]['get']('Users')['getUser'](_0x20f859)),this['currentRevision']['_update'](_0x3b380b);}}async[_0x7aff('0x4a')](){this[_0x7aff('0x97')]&&!this['_loadedStateData']&&(await this[_0x7aff('0x35')](this[_0x7aff('0xa0')]),this[_0x7aff('0x9')]['loadState'](this[_0x7aff('0xa0')]),this[_0x7aff('0xfd')]={'fromVersion':this['currentRevision']['fromVersion'],'authors':this[_0x7aff('0xa0')][_0x7aff('0xd8')][_0x7aff('0x9f')]()});}async['saveRevision'](_0x287a13={},_0x4754ae=null){const _0x3b8c56=[];await this[_0x7aff('0x4a')](),this['_continueCurrentRevision']=!0x1,_0x4754ae>this[_0x7aff('0xa0')][_0x7aff('0x74')]&&(_0x4754ae=null),null===_0x4754ae&&(_0x4754ae=await this[_0x7aff('0xa4')][_0x7aff('0x49')]());const _0x461334=this[_0x7aff('0x7')](_0x4754ae),_0x43fc97=this[_0x7aff('0x6c')]({'from':_0x461334,'to':_0x4754ae});if(this[_0x7aff('0xa0')]['toVersion']<_0x4754ae){const _0x2f4b6b=this[_0x7aff('0x6c')]({'revision':this['currentRevision'],'from':_0x4754ae,'to':_0x4754ae});_0x2f4b6b[_0x7aff('0xd8')]=[],_0x2f4b6b[_0x7aff('0x13')]=[],_0x2f4b6b['id']=this[_0x7aff('0xa0')]['id'],this['currentRevision'][_0x7aff('0x98')](_0x2f4b6b,!0x0),delete _0x2f4b6b[_0x7aff('0xd8')],_0x3b8c56[_0x7aff('0xd2')](_0x2f4b6b);}_0x287a13['creatorId']=this[_0x7aff('0x29')]['plugins'][_0x7aff('0x50')](_0x7aff('0xd5'))['me']['id'],_0x287a13['name']=_0x287a13['name']||null,_0x287a13['id']=_0x287a13['id']||_0x5647b3(),_0x287a13={..._0x287a13,..._0x43fc97};const _0x186576=this[_0x7aff('0x8b')](_0x287a13);_0x3b8c56[_0x7aff('0xd2')](_0x287a13);const _0x1890a2=this[_0x7aff('0x22')]['getIndex'](_0x186576);if(0x0!==_0x1890a2){const _0x37a06e=this[_0x7aff('0x22')]['getRevision'](_0x1890a2-0x1);if(_0x37a06e[_0x7aff('0x17')]!==_0x4754ae){const _0x5314eb=this[_0x7aff('0x9')][_0x7aff('0x2')](_0x4754ae,_0x37a06e[_0x7aff('0x74')]),_0x1c204a={'id':_0x37a06e['id'],'diffData':_0x5314eb[_0x7aff('0x94')],'authorsIds':_0x5314eb[_0x7aff('0x13')],'authors':_0x5314eb['authorsIds'][_0x7aff('0xa5')](_0x4d623e=>this[_0x7aff('0x29')]['plugins'][_0x7aff('0x50')](_0x7aff('0xd5'))[_0x7aff('0xcb')](_0x4d623e)),'fromVersion':_0x4754ae};_0x37a06e===this[_0x7aff('0xa0')]&&(_0x1c204a[_0x7aff('0x80')]=new Date(_0x287a13[_0x7aff('0x80')][_0x7aff('0x8c')]()+0xa)),_0x37a06e[_0x7aff('0x98')](_0x1c204a,!0x0),delete _0x1c204a[_0x7aff('0xd8')],_0x3b8c56[_0x7aff('0xd2')](_0x1c204a);}}if(this[_0x7aff('0xb8')]){for(const _0x4a0496 of _0x3b8c56)this['_bufferUpdate'](_0x4a0496['id'],_0x4a0496,!0x0);this[_0x7aff('0x55')]();}return _0x186576;}[_0x7aff('0x8b')](_0x432505){const _0x34952f=this[_0x7aff('0x22')][_0x7aff('0xc0')](_0x432505);return this[_0x7aff('0xb8')]&&_0x34952f['on'](_0x7aff('0x98'),(_0x5346ad,_0x17faaa,_0x375613)=>{_0x375613||(this[_0x7aff('0x79')](_0x17faaa['id'],_0x17faaa,!0x0),this[_0x7aff('0x55')]());}),this[_0x7aff('0x22')][_0x7aff('0x19')](_0x34952f,this[_0x7aff('0x1d')](_0x34952f)),_0x34952f;}async['getRevisionDocumentData'](_0x26be93){await this[_0x7aff('0x35')](_0x26be93);const _0x56d7f7={};for(const _0x503920 in _0x26be93[_0x7aff('0x94')]){if(_0x26be93['diffData'][_0x503920][_0x7aff('0xe0')]&&!_0x26be93[_0x7aff('0x94')][_0x503920]['attachChange'][_0x7aff('0x76')])continue;const _0x5cd274=this[_0x7aff('0xe8')](JSON[_0x7aff('0x59')](_0x26be93[_0x7aff('0x94')][_0x503920][_0x7aff('0xaf')])),_0x3ffcdf=this[_0x7aff('0x29')]['editing'][_0x7aff('0x10')][_0x7aff('0xc')],_0x29bab5=new _0x397dc4(_0x3ffcdf,_0x5cd274[_0x7aff('0xa5')](_0x348f4e=>J(_0x348f4e,this[_0x7aff('0x29')])));this[_0x7aff('0x29')][_0x7aff('0x5d')]['processor']['useFillerType'](_0x7aff('0x25')),_0x56d7f7[_0x503920]=this[_0x7aff('0x29')]['data'][_0x7aff('0xdb')][_0x7aff('0x1')](_0x29bab5),this['editor']['data']['processor'][_0x7aff('0xc5')](_0x7aff('0x36'));}return _0x56d7f7;}async[_0x7aff('0xa9')](_0xda9bd){await this[_0x7aff('0x35')](_0xda9bd);const _0x5dd5da={};for(const _0x3ed048 in _0xda9bd['diffData'])_0xda9bd[_0x7aff('0x94')][_0x3ed048][_0x7aff('0xe0')]&&!_0xda9bd[_0x7aff('0x94')][_0x3ed048]['attachChange']['isAttached']||(_0x5dd5da[_0x3ed048]=_0xda9bd[_0x7aff('0x94')][_0x3ed048]['attributesAfter']||{});return _0x5dd5da;}[_0x7aff('0x55')](){if(0x0===this[_0x7aff('0x3c')][_0x7aff('0x62')])return;if(this[_0x7aff('0x99')])return;let _0xc9a23a=Array[_0x7aff('0x7c')](this['_bufferedUpdates'][_0x7aff('0xba')]());this['_bufferedUpdates'][_0x7aff('0x34')]();for(let _0xdef90c=0x0;_0xdef90c<_0xc9a23a[_0x7aff('0xdc')];_0xdef90c++){const _0x59c3ff=_0xc9a23a[_0xdef90c];let _0x317754=!0x1;for(const _0x1c21d0 of Object[_0x7aff('0x9d')](_0x59c3ff))void 0x0===_0x59c3ff[_0x1c21d0]?delete _0x59c3ff[_0x1c21d0]:'id'!==_0x1c21d0&&(_0x317754=!0x0);_0x317754||(_0xc9a23a[_0xdef90c]=null);}if(_0xc9a23a=_0xc9a23a[_0x7aff('0x90')](_0x135334=>null!==_0x135334),!_0xc9a23a[_0x7aff('0xdc')])return;for(let _0x1401da=0x0;_0x1401da<_0xc9a23a['length'];_0x1401da++){const _0x838fd3=_0xc9a23a[_0x1401da];void 0x0!==_0x838fd3[_0x7aff('0x17')]&&void 0x0===_0x838fd3[_0x7aff('0x74')]&&(_0x838fd3[_0x7aff('0x74')]=this[_0x7aff('0x22')]['getRevision'](_0x838fd3['id'])[_0x7aff('0x74')]),void 0x0!==_0x838fd3['toVersion']&&void 0x0===_0x838fd3[_0x7aff('0x17')]&&(_0x838fd3['fromVersion']=this[_0x7aff('0x22')][_0x7aff('0x38')](_0x838fd3['id'])[_0x7aff('0x17')]);}const _0x570781=this[_0x7aff('0x29')][_0x7aff('0xc7')]['get']('collaboration.channelId');this[_0x7aff('0x99')]=!0x0,this[_0x7aff('0x8')](),this[_0x7aff('0xb8')]['updateRevisions'](_0xc9a23a,_0x570781)['finally'](()=>{this[_0x7aff('0x99')]=!0x1;})[_0x7aff('0x69')](_0xea2bd8=>{if(_0xea2bd8)for(const _0x16037c of _0xea2bd8)this[_0x7aff('0xf6')]({'id':_0x16037c['id'],'createdAt':_0x16037c[_0x7aff('0x80')]});this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x305da7,_0xd2b13f){let _0x572b54=this[_0x7aff('0x29')][_0x7aff('0xc7')][_0x7aff('0x50')](_0x7aff('0x93')),_0x12dca1=this['editor']['config'][_0x7aff('0x50')](_0x7aff('0x1c'));if(void 0x0===_0x572b54){_0x572b54={};for(const _0x13b1ea of this[_0x7aff('0x29')]['model']['document'][_0x7aff('0xd')]())_0x572b54[_0x13b1ea]='';}if(_0x7aff('0x2d')==typeof _0x572b54&&(_0x572b54={'main':_0x572b54}),void 0x0===_0x12dca1){_0x12dca1={};for(const _0x56375b of this[_0x7aff('0x29')][_0x7aff('0xcf')][_0x7aff('0xc')]['getRootNames']())_0x12dca1[_0x56375b]={};}let _0x5afcc1=!0x1;const _0x2bc054=Object[_0x7aff('0x9d')](_0x572b54),_0x38c706=Object[_0x7aff('0x9d')](_0x305da7);for(const _0x2ebd8e of _0x2bc054){if(_0x572b54[_0x2ebd8e]!==_0x305da7[_0x2ebd8e]&&''!==_0x572b54[_0x2ebd8e][_0x7aff('0x30')]()){_0x5afcc1=!0x0;break;}if(!_0x4a475f(_0x12dca1[_0x2ebd8e],_0xd2b13f[_0x2ebd8e])&&Object[_0x7aff('0x9d')](_0x12dca1[_0x2ebd8e])[_0x7aff('0xdc')]>0x0){_0x5afcc1=!0x0;break;}}_0x5afcc1||(_0x5afcc1=_0x38c706[_0x7aff('0x70')](_0x539272=>!this[_0x7aff('0x29')]['model'][_0x7aff('0xc')][_0x7aff('0xe9')](_0x539272))),_0x5afcc1&&_0x68fee7(_0x7aff('0xe1'),{'editorData':_0x572b54,'editorRootsAttributes':_0x12dca1,'revisionData':_0x305da7,'revisionRootsAttributes':_0xd2b13f}),this[_0x7aff('0x29')][_0x7aff('0xc7')]['set'](_0x7aff('0x93'),_0x305da7),this['editor'][_0x7aff('0xc7')][_0x7aff('0xef')](_0x7aff('0x1c'),_0xd2b13f);}[_0x7aff('0x8')](){if(!this[_0x7aff('0xab')]){const _0x4cb1f9=this[_0x7aff('0x29')][_0x7aff('0xeb')]['get'](_0x7aff('0x5e'));this[_0x7aff('0xab')]=_0x4cb1f9[_0x7aff('0x73')](_0x427c39(this[_0x7aff('0x29')]['locale'],_0x7aff('0x44')));}}[_0x7aff('0x89')](){this[_0x7aff('0xab')]&&(this[_0x7aff('0x29')][_0x7aff('0xeb')][_0x7aff('0x50')]('PendingActions')[_0x7aff('0xa')](this[_0x7aff('0xab')]),this['_pendingAction']=null);}['_findInsertionIndex'](_0x7bf012){const _0x4e596c=this[_0x7aff('0x22')][_0x7aff('0xaa')]();_0x4e596c[_0x7aff('0x51')]();let _0x4d34ee=0x0;for(;_0x4d34ee<_0x4e596c[_0x7aff('0xdc')];){const _0x5d6919=_0x4e596c[_0x4d34ee];if(_0x5d6919===this['currentRevision']){_0x4d34ee++;continue;}if(_0x5d6919['id']===this[_0x7aff('0x81')])break;const _0x12ff52=_0x7bf012[_0x7aff('0x74')]-_0x5d6919[_0x7aff('0x74')]||_0x7bf012[_0x7aff('0x17')]-_0x5d6919[_0x7aff('0x17')];if(_0x12ff52>0x0)break;if(_0x12ff52<0x0)_0x4d34ee++;else{if(!_0x7bf012[_0x7aff('0x2c')]&&_0x5d6919[_0x7aff('0x2c')])break;if(_0x5d6919[_0x7aff('0x2c')]||!_0x7bf012[_0x7aff('0x2c')]){if(_0x7bf012['createdAt']>_0x5d6919[_0x7aff('0x80')])break;_0x4d34ee++;}else _0x4d34ee++;}}return _0x4d34ee;}[_0x7aff('0xf6')](_0x52d74a){const _0x3d2e97=this[_0x7aff('0x22')][_0x7aff('0x38')](_0x52d74a['id']);if(_0x52d74a[_0x7aff('0x80')]&&(_0x52d74a[_0x7aff('0x80')]=new Date(_0x52d74a[_0x7aff('0x80')])),_0x52d74a[_0x7aff('0x13')]){const _0x277f77=this[_0x7aff('0x29')][_0x7aff('0xeb')]['get']('Users');_0x52d74a[_0x7aff('0xd8')]=_0x52d74a[_0x7aff('0x13')][_0x7aff('0xa5')](_0x1fd993=>_0x277f77['getUser'](_0x1fd993));}_0x3d2e97[_0x7aff('0x98')](_0x52d74a,!0x0);}[_0x7aff('0x6c')]({revision:_0x3c5edc=null,from:_0x333838=null,to:_0x4a911c=null}){_0x333838=null!==_0x333838?_0x333838:_0x3c5edc[_0x7aff('0x17')],_0x4a911c=null!==_0x4a911c?_0x4a911c:_0x3c5edc['toVersion'];const _0x51aa27=this[_0x7aff('0x9')][_0x7aff('0x2')](_0x333838,_0x4a911c),_0x170cbe={'diffData':_0x51aa27[_0x7aff('0x94')],'authorsIds':_0x51aa27[_0x7aff('0x13')],'fromVersion':_0x333838,'toVersion':_0x4a911c};if(!_0x3c5edc||_0x4a911c!==_0x3c5edc['toVersion']){const _0x5b70f4=_0x4a911c-0x1,_0x21f479=this[_0x7aff('0xa4')][_0x7aff('0xed')][_0x7aff('0xdd')](_0x5b70f4);_0x170cbe['createdAt']=_0x21f479&&_0x21f479[_0x7aff('0x80')]||new Date();}if(this[_0x7aff('0xfd')]&&_0x333838===this[_0x7aff('0xfd')][_0x7aff('0x17')])for(const _0x26a551 of this[_0x7aff('0xfd')][_0x7aff('0xd8')])_0x170cbe[_0x7aff('0x13')][_0x7aff('0x4b')](_0x26a551['id'])||_0x170cbe[_0x7aff('0x13')][_0x7aff('0xd2')](_0x26a551['id']);return _0x170cbe;}[_0x7aff('0x35')](_0x333c2c){if(!_0x333c2c||_0x333c2c[_0x7aff('0x94')])return Promise[_0x7aff('0x7b')]();{const _0x1b8ecc=this[_0x7aff('0x29')]['config'][_0x7aff('0x50')]('collaboration.channelId');return this['adapter'][_0x7aff('0x38')]({'channelId':_0x1b8ecc,'revisionId':_0x333c2c['id']})['then'](_0x660f2c=>{_0x333c2c['diffData']=_0x660f2c[_0x7aff('0x94')];});}}[_0x7aff('0x79')](_0x4374d2,_0x5a93f8,_0x5524a8){if(this[_0x7aff('0x3c')]['has'](_0x4374d2)){const _0xa3c1c1=this[_0x7aff('0x3c')][_0x7aff('0x50')](_0x4374d2);_0x5a93f8=_0x5524a8?{..._0xa3c1c1,..._0x5a93f8}:{..._0x5a93f8,..._0xa3c1c1};}this[_0x7aff('0x3c')][_0x7aff('0xef')](_0x4374d2,_0x5a93f8);}[_0x7aff('0x7')](_0x23d16a){const _0x5edc3c=this[_0x7aff('0x22')][_0x7aff('0xaa')]();_0x5edc3c[_0x7aff('0x51')](),_0x5edc3c['shift']();const _0x33270d=_0x5edc3c[_0x7aff('0x3d')](_0x261676=>_0x261676[_0x7aff('0x74')]<=_0x23d16a)[_0x7aff('0x74')];return _0x33270d<this[_0x7aff('0x24')]?this[_0x7aff('0x24')]:_0x33270d;}[_0x7aff('0x0')](_0x44423f){const _0x4b8cb1=this[_0x7aff('0x22')][_0x7aff('0x38')](this[_0x7aff('0x22')][_0x7aff('0xdc')]-0x1);if(_0x4b8cb1)this[_0x7aff('0x81')]=_0x4b8cb1['id'];else{const _0x20b28e=!this[_0x7aff('0x29')][_0x7aff('0xcf')]['document'][_0x7aff('0x91')][_0x7aff('0x3d')](_0x160b3d=>this[_0x7aff('0x29')][_0x7aff('0xcf')]['hasContent'](_0x160b3d)),_0x3dffa3=this['editor'][_0x7aff('0xeb')][_0x7aff('0x50')](_0x7aff('0xd5'))['me']['id'],_0xb05682=_0x427c39(this[_0x7aff('0x29')]['locale'],_0x20b28e?_0x7aff('0x6d'):'Initial\x20revision');this['_makeRevision']({'from':_0x44423f,'to':_0x44423f,'id':this[_0x7aff('0x81')],'name':_0xb05682,'creatorId':_0x3dffa3});}}[_0x7aff('0xb2')](_0x34549e){const _0x4deda7=this[_0x7aff('0xa4')][_0x7aff('0xb5')]();this[_0x7aff('0xa0')]=this[_0x7aff('0x22')][_0x7aff('0x38')](_0x4deda7),this[_0x7aff('0xa0')]||(this['currentRevision']=this[_0x7aff('0x3e')]({'from':_0x34549e,'to':_0x34549e,'id':_0x4deda7,'name':'','creatorId':null}));}[_0x7aff('0x3e')]({name:_0x3b1196,from:_0x344e71,to:_0x4f49c9,creatorId:_0x4951d0,id:_0x315eac}){const _0x2ff13e=this[_0x7aff('0x6c')]({'from':_0x344e71,'to':_0x4f49c9});_0x2ff13e[_0x7aff('0x4')]=_0x3b1196,_0x2ff13e['creatorId']=_0x4951d0,_0x2ff13e['id']=_0x315eac;const _0xe4aff8=this['addRevisionData'](_0x2ff13e);return this[_0x7aff('0xb8')]&&this[_0x7aff('0x79')](_0x2ff13e['id'],_0x2ff13e,!0x0),_0xe4aff8;}[_0x7aff('0x31')](){this[_0x7aff('0x29')][_0x7aff('0xec')][_0x7aff('0xf')](_0x7aff('0xf3'))[_0x7aff('0xfc')]({'model':_0x7aff('0x84')});}[_0x7aff('0xe8')](_0x580797){return(_0x580797=_0x580797[_0x7aff('0x90')](_0x57d76e=>!_0x57d76e[_0x7aff('0x4')]||'revision-start'!==_0x57d76e['name']&&_0x7aff('0xe5')!==_0x57d76e['name']))[_0x7aff('0x5c')](_0x3bccad=>{'string'!=typeof _0x3bccad&&(_0x3bccad[_0x7aff('0x3a')]=this['_removeRevisionMarkers'](_0x3bccad[_0x7aff('0x3a')]),_0x3bccad[_0x7aff('0x85')]=_0x3bccad['attributes'][_0x7aff('0x90')](_0x1c9e1e=>!_0x1c9e1e[0x0][_0x7aff('0x18')](_0x7aff('0xb0'))));}),_0x580797;}}function J(_0x54d4c0,_0x182b36){const _0x520a0d=_0x182b36[_0x7aff('0x14')][_0x7aff('0x10')][_0x7aff('0xc')];if(_0x7aff('0x2d')==typeof _0x54d4c0)return new _0x28ab94(_0x520a0d,_0x54d4c0);{const _0x4d178f=_0x54d4c0[_0x7aff('0x3a')]['map'](_0x1b9ad5=>J(_0x1b9ad5,_0x182b36));return new(B[_0x54d4c0[(_0x7aff('0x9b'))]]||_0x18ea86)(_0x520a0d,_0x54d4c0[_0x7aff('0x4')],_0x54d4c0[_0x7aff('0x85')],_0x4d178f);}}class H{constructor(_0x45c3d3){this[_0x7aff('0x29')]=_0x45c3d3,this[_0x7aff('0x28')]=new Map(),this[_0x7aff('0xfb')]=-0x1,this[_0x7aff('0x7d')]=-0x1,this[_0x7aff('0xb9')]=new Map(),this[_0x7aff('0x32')]=new Map(),this[_0x7aff('0xc3')]=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x7aff('0x4c')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x7aff('0xf0')]=new Map(),this[_0x7aff('0x77')]=new Map(),this[_0x7aff('0x21')]=new Map(),this[_0x7aff('0xa7')]=0x1;}[_0x7aff('0xbc')](_0x2c1561){this[_0x7aff('0x71')]=_0x2c1561;const _0x55138e=new Map(),_0x1a445e=new Map(),_0x2a164b=this[_0x7aff('0x29')][_0x7aff('0xcf')][_0x7aff('0xc')]['roots']['map'](_0x233094=>_0x233094['rootName']);for(const _0x276eab of _0x2a164b){const _0x5a4bcb=this[_0x7aff('0x29')][_0x7aff('0xcf')][_0x7aff('0xc')][_0x7aff('0xe9')](_0x276eab),_0x19a2a1=q(_0x5a4bcb);_0x55138e[_0x7aff('0xef')](_0x276eab,_0x19a2a1),_0x1a445e[_0x7aff('0xef')](_0x276eab,Object[_0x7aff('0xf8')](_0x5a4bcb[_0x7aff('0xea')]()));}const _0x40fac1=Array[_0x7aff('0x7c')](this['editor'][_0x7aff('0xcf')][_0x7aff('0xf4')])[_0x7aff('0xa5')](_0x10bbad=>[_0x10bbad[_0x7aff('0x4')],_0x10bbad['getRange']()]),_0x101542=this['source'][_0x7aff('0xfa')];this[_0x7aff('0x41')](_0x101542,_0x55138e,_0x40fac1,_0x1a445e),this[_0x7aff('0x26')]=this['_revisionId'];const _0x233226=new Map(),_0x24b2f3=new Map();for(const _0x3826b0 of _0x2a164b){const _0x4a408b=G(_0x3826b0);_0x233226[_0x7aff('0xef')](_0x3826b0,_0x4a408b),_0x24b2f3[_0x7aff('0xef')](_0x3826b0,{});}this[_0x7aff('0x41')](Number[_0x7aff('0xd9')],_0x233226,[],_0x24b2f3);}[_0x7aff('0x2')](_0x3babe8,_0x1e17c6){if(this[_0x7aff('0xfb')]===_0x3babe8&&this[_0x7aff('0x7d')]<=_0x1e17c6)this[_0x7aff('0x28')][_0x7aff('0x62')]>0x1&&this['_removeMetaData'](this['_lastTo']),this[_0x7aff('0x8d')](this['_lastTo'],_0x1e17c6,!0x0);else{if(!this[_0x7aff('0x28')][_0x7aff('0x54')](_0x3babe8)){const _0x5aa1cb=this[_0x7aff('0x43')](_0x3babe8);this['_calculateMetaData'](_0x5aa1cb,_0x3babe8,!0x1);}this['_calculateMetaData'](_0x3babe8,_0x1e17c6,!0x0);}return this['_lastFrom']=_0x3babe8,this[_0x7aff('0x7d')]=_0x1e17c6,this['_getState']();}['loadState'](_0x784e){this[_0x7aff('0xb')](),this[_0x7aff('0xfb')]=_0x784e[_0x7aff('0x17')],this[_0x7aff('0x7d')]=_0x784e['toVersion'];for(const _0xd65217 in _0x784e[_0x7aff('0x94')]){const _0x45abb3=_0x784e['diffData'][_0xd65217][_0x7aff('0xe0')],_0x4f199e=_0x53c182(_0x784e[_0x7aff('0x94')][_0xd65217][_0x7aff('0x72')])||{},_0x5145dc=this[_0x7aff('0x4f')](_0x784e['diffData'][_0xd65217][_0x7aff('0xda')]);_0x5145dc[_0x7aff('0x20')]=_0xd65217,_0x5145dc[_0x7aff('0x52')]=!_0x45abb3||!_0x45abb3[_0x7aff('0x76')],_0x5145dc[_0x7aff('0x76')]=()=>_0x5145dc[_0x7aff('0x52')],this['_baseRoots'][_0x7aff('0xef')](_0xd65217,_0x5145dc),this[_0x7aff('0x8a')][_0x7aff('0xef')](_0xd65217,_0x4f199e),_0x45abb3&&this[_0x7aff('0x21')][_0x7aff('0xef')](_0xd65217,_0x45abb3);const _0xc4671b=this[_0x7aff('0x6')](_0x5145dc);this['_baseIdsRoots'][_0x7aff('0xef')](_0xd65217,_0xc4671b);for(const [_0x39b2bb,_0x4dbe01]of _0x5145dc[_0x7aff('0xf4')]){if(!_0x39b2bb[_0x7aff('0x18')](_0x7aff('0x87')))continue;const _0x4874a5=_0x39b2bb[_0x7aff('0xee')](':')[0x2];for(const _0x2f0d64 of _0x4dbe01[_0x7aff('0xac')]({'singleCharacters':!0x0})){const _0xf70d7f=this[_0x7aff('0xd3')](_0x2f0d64),_0x21b8a4=_0x7aff('0x2f')==_0x2f0d64[_0x7aff('0x9b')]?_0x2f0d64[_0x7aff('0x3')][_0x7aff('0x5b')][_0x7aff('0x9f')](0x0,-0x1):_0x2f0d64[_0x7aff('0x3')]['path'],_0x1d972a=_0xc4671b[_0x7aff('0x95')](_0x21b8a4)[_0x7aff('0xbe')](_0xf70d7f);this['_touched'][_0x7aff('0xef')](_0x1d972a,{'userId':_0x4874a5});}}}this[_0x7aff('0x26')]=this['_revisionId'];const _0x5d7b97=[...Array(this[_0x7aff('0xa7')])[_0x7aff('0x9d')]()][_0x7aff('0x9f')](0x1)['filter'](_0x14f523=>!this[_0x7aff('0xf0')][_0x7aff('0x54')](_0x14f523));let _0x1ac6ce=0x0;const _0x2564b2=new Map();for(const _0x58e03b in _0x784e[_0x7aff('0x94')]){const _0x234b86=_0x784e[_0x7aff('0x94')][_0x58e03b][_0x7aff('0xe0')],_0x28b33b=_0x53c182(_0x784e[_0x7aff('0x94')][_0x58e03b]['attributesAfter'])||{},_0x33dc17=this['_makeModelFromViewString'](_0x784e['diffData'][_0x58e03b][_0x7aff('0xaf')]);_0x33dc17[_0x7aff('0x20')]=_0x58e03b,_0x33dc17[_0x7aff('0x52')]=!_0x234b86||_0x234b86[_0x7aff('0x76')],_0x33dc17[_0x7aff('0x76')]=()=>_0x33dc17[_0x7aff('0x52')],this['_diffRoots'][_0x7aff('0xef')](_0x58e03b,_0x33dc17),this[_0x7aff('0xc3')][_0x7aff('0xef')](_0x58e03b,_0x28b33b);const _0x204418=this[_0x7aff('0x6')](_0x33dc17,Number[_0x7aff('0xd9')]);this[_0x7aff('0x4c')][_0x7aff('0xef')](_0x58e03b,_0x204418),_0x2564b2['set'](_0x58e03b,_0x33dc17[_0x7aff('0x76')]()?_0x28b33b:{});for(const [_0xb0bb0e,_0x33bf9c]of _0x33dc17['markers']){if(!_0xb0bb0e[_0x7aff('0x18')]('revision:'))continue;const _0x2659c4=_0xb0bb0e['split'](':')[0x2];for(const _0x99f06f of _0x33bf9c[_0x7aff('0xac')]({'singleCharacters':!0x0})){const _0x3670fc=this[_0x7aff('0xd3')](_0x99f06f),_0xa7b63a=this[_0x7aff('0xa7')]++,_0x2ff25a='elementEnd'==_0x99f06f[_0x7aff('0x9b')]?_0x99f06f[_0x7aff('0x3')][_0x7aff('0x5b')][_0x7aff('0x9f')](0x0,-0x1):_0x99f06f[_0x7aff('0x3')]['path'];_0x204418[_0x7aff('0x95')](_0x2ff25a)['_setAttribute'](_0x3670fc,_0xa7b63a),this[_0x7aff('0xf0')][_0x7aff('0xef')](_0xa7b63a,{'userId':_0x2659c4});}}for(const _0x300f4a of this['editor'][_0x7aff('0xcf')][_0x7aff('0xbb')](_0x33dc17)[_0x7aff('0xac')]({'singleCharacters':!0x0})){const _0x112a12=this[_0x7aff('0xd3')](_0x300f4a),_0x384a20=_0x7aff('0x2f')==_0x300f4a[_0x7aff('0x9b')]?_0x300f4a['previousPosition']['path']['slice'](0x0,-0x1):_0x300f4a[_0x7aff('0x3')]['path'],_0x5012dd=_0x204418[_0x7aff('0x95')](_0x384a20);_0x5012dd[_0x7aff('0xbe')](_0x112a12)>0x0||_0x5012dd[_0x7aff('0xa6')](_0x112a12,_0x5d7b97[_0x1ac6ce++]);}for(const [_0x34a0eb,_0x4a7596]of _0x33dc17['markers'])_0x34a0eb[_0x7aff('0x18')](_0x7aff('0x87'))||this[_0x7aff('0xb9')]['set'](_0x34a0eb,_0x4a7596);}const _0x42fce5=G(_0x7aff('0xfe'));this[_0x7aff('0xde')][_0x7aff('0xef')](_0x7aff('0xfe'),_0x42fce5),this[_0x7aff('0xad')][_0x7aff('0xef')]('$graveyard',this[_0x7aff('0x6')](_0x42fce5,0x1));const _0x40a072=G(_0x7aff('0xfe'));this[_0x7aff('0x32')][_0x7aff('0xef')](_0x7aff('0xfe'),_0x40a072),this[_0x7aff('0x4c')][_0x7aff('0xef')](_0x7aff('0xfe'),this[_0x7aff('0x6')](_0x40a072,0x1));const _0x143bc7=Array[_0x7aff('0x7c')](this[_0x7aff('0x32')])[_0x7aff('0xa5')](([_0x1831df,_0x31e3eb])=>[_0x1831df,q(_0x31e3eb)]);this[_0x7aff('0x41')](this[_0x7aff('0x7d')],_0x143bc7,this['_markers'],_0x2564b2);}[_0x7aff('0x4f')](_0x3e6ddf){const _0x326210=JSON['parse'](_0x3e6ddf),_0x490df5=this[_0x7aff('0x29')][_0x7aff('0x14')][_0x7aff('0x10')][_0x7aff('0xc')],_0x1a8d8f=new _0x397dc4(_0x490df5,_0x326210[_0x7aff('0xa5')](_0x1d29e8=>J(_0x1d29e8,this[_0x7aff('0x29')])));return this[_0x7aff('0x29')][_0x7aff('0x5d')][_0x7aff('0xa2')](_0x1a8d8f);}[_0x7aff('0x41')](_0x829d9e,_0x271e32,_0x5e0bea,_0x4fb22b){const _0x2fbe22=new Map(_0x271e32),_0x21da35=new Map(_0x53c182(_0x4fb22b)),_0x45028e=new Map();for(const [_0x52aa9c,_0x1f479a]of _0x5e0bea)_0x45028e[_0x7aff('0xef')](_0x52aa9c,{'start':_0x1f479a[_0x7aff('0xc2')][_0x7aff('0x2a')](),'end':_0x1f479a[_0x7aff('0xb4')][_0x7aff('0x2a')](),'rootName':_0x1f479a['root']['rootName']});this[_0x7aff('0x28')][_0x7aff('0xef')](_0x829d9e,{'roots':_0x2fbe22,'markers':_0x45028e,'rootsAttributes':_0x21da35});}[_0x7aff('0x64')](_0x481eb8){this['_savedMetaData'][_0x7aff('0x1f')](_0x481eb8);}[_0x7aff('0xf1')](){this[_0x7aff('0xb')](),this[_0x7aff('0xfb')]=-0x1,this['_lastTo']=-0x1,this[_0x7aff('0x28')][_0x7aff('0x34')](),this[_0x7aff('0xbc')](this[_0x7aff('0x71')]);}[_0x7aff('0xb')](){this[_0x7aff('0xf0')]['clear'](),this['_touchedMarkers'][_0x7aff('0x34')](),this[_0x7aff('0x21')][_0x7aff('0x34')](),this[_0x7aff('0x32')][_0x7aff('0x34')](),this['_diffRootsAttributes']['clear'](),this[_0x7aff('0xde')]['clear'](),this['_baseRootsAttributes'][_0x7aff('0x34')](),this[_0x7aff('0x4c')]['clear'](),this['_baseIdsRoots'][_0x7aff('0x34')](),this['_markers']['clear'](),this[_0x7aff('0xa7')]=0x1,this[_0x7aff('0x26')]=this[_0x7aff('0xa7')];}['_makeIdsRoot'](_0xae54f4,_0x1f4631=null){let _0x389268=null;_0xae54f4['is'](_0x7aff('0xc8'))||(_0x389268=new _0x371ba5(_0xae54f4['name'],{'vid_start':null===_0x1f4631?this[_0x7aff('0xa7')]++:_0x1f4631++}));const _0x4cf41a=[];for(const _0x1fd3de of _0xae54f4[_0x7aff('0xae')]())if(_0x1fd3de['is'](_0x7aff('0x47'))){_0x4cf41a[_0x7aff('0xd2')](this[_0x7aff('0x6')](_0x1fd3de,_0x1f4631));const _0x25fff1=_0x4cf41a[_0x4cf41a[_0x7aff('0xdc')]-0x1];null!==_0x1f4631&&(_0x1f4631=_0x25fff1['is'](_0x7aff('0x47'),_0x7aff('0x56'))?_0x25fff1['getAttribute']('vid')+0x1:_0x25fff1[_0x7aff('0xbe')]('vid_end')+0x1);}else for(let _0xddce3b=0x0;_0xddce3b<_0x1fd3de[_0x7aff('0x86')];_0xddce3b++)_0x4cf41a[_0x7aff('0xd2')](new _0x371ba5(_0x7aff('0x56'),{'vid':null===_0x1f4631?this['_revisionId']++:_0x1f4631++}));if(_0xae54f4['is'](_0x7aff('0xc8'))){const _0x2d509d=G(_0xae54f4[_0x7aff('0x20')]);return _0x2d509d[_0x7aff('0xca')](0x0,_0x4cf41a),_0x2d509d;}return _0x389268[_0x7aff('0xa6')]('vid_end',null===_0x1f4631?this[_0x7aff('0xa7')]++:_0x1f4631++),_0x389268['_insertChild'](0x0,_0x4cf41a),_0x389268;}['_calculateMetaData'](_0x3f915b,_0x6a61eb,_0x2d42b7){this[_0x7aff('0xb')]();const {roots:_0x2fc70a,markers:_0x3f1631,rootsAttributes:_0xaf543e}=this[_0x7aff('0x28')][_0x7aff('0x50')](_0x3f915b);this['_baseRoots']=new Map(_0x2fc70a),this[_0x7aff('0x8a')]=new Map(_0x53c182(_0xaf543e));for(const [_0x25b7f5,_0x226231]of this['_baseRoots'])if(_0x7aff('0xfe')!==_0x25b7f5&&(this['_diffRoots'][_0x7aff('0xef')](_0x25b7f5,q(_0x226231)),this[_0x7aff('0xc3')]=new Map(_0x53c182(_0xaf543e)),_0x2d42b7)){const _0x2049d9=this[_0x7aff('0xa7')];this['_idsRoots'][_0x7aff('0xef')](_0x25b7f5,this[_0x7aff('0x6')](_0x226231)),this['_baseIdsRoots']['set'](_0x25b7f5,this['_makeIdsRoot'](_0x226231,_0x2049d9));}this[_0x7aff('0x26')]=this['_revisionId'],this[_0x7aff('0x32')][_0x7aff('0xef')](_0x7aff('0xfe'),q(this[_0x7aff('0xde')]['get']('$graveyard'))),_0x2d42b7&&this[_0x7aff('0x4c')][_0x7aff('0xef')](_0x7aff('0xfe'),this['_makeIdsRoot'](this[_0x7aff('0xde')][_0x7aff('0x50')]('$graveyard')));for(const [_0x4cf8eb,_0x5c47cd]of _0x3f1631){const _0x5d0008=this['_baseRoots'][_0x7aff('0x50')](_0x5c47cd[_0x7aff('0x20')]),_0x5a0eb6=this[_0x7aff('0x32')][_0x7aff('0x50')](_0x5c47cd[_0x7aff('0x20')]),_0xce371a=new _0x23cb2f(this[_0x7aff('0xce')](_0x5c47cd[_0x7aff('0xc2')],_0x5d0008),this['_fixPosition'](_0x5c47cd['end'],_0x5d0008)),_0x54ae6d=this['_fixRange'](_0xce371a,_0x5a0eb6);_0x5d0008['markers']['set'](_0x4cf8eb,_0xce371a),this[_0x7aff('0xb9')][_0x7aff('0xef')](_0x4cf8eb,_0x54ae6d);}this[_0x7aff('0x8d')](_0x3f915b,_0x6a61eb,_0x2d42b7);}['_applyOperations'](_0x4ff6ce,_0xc7efa6,_0x7712a3){for(const _0x334c89 of this['source'][_0x7aff('0x65')](_0x4ff6ce,_0xc7efa6))this[_0x7aff('0x1e')](_0x334c89,_0x7712a3);for(const _0x7698f9 of this[_0x7aff('0x32')][_0x7aff('0xba')]())_0x7698f9[_0x7aff('0xf4')][_0x7aff('0x34')]();for(const [_0x9ab5be,_0xeb09ef]of this[_0x7aff('0xb9')]){this[_0x7aff('0x32')][_0x7aff('0x50')](_0xeb09ef['root'][_0x7aff('0x20')])[_0x7aff('0xf4')][_0x7aff('0xef')](_0x9ab5be,_0xeb09ef['clone']());}const _0x214273=new Map(),_0x12ffc4=new Map();for(const [_0x30812c,_0x140a65]of this[_0x7aff('0x32')])_0x214273[_0x7aff('0xef')](_0x30812c,q(_0x140a65)),_0x12ffc4[_0x7aff('0xef')](_0x30812c,this[_0x7aff('0xc3')][_0x7aff('0x50')](_0x30812c));this[_0x7aff('0x41')](_0xc7efa6,_0x214273,this[_0x7aff('0xb9')],_0x12ffc4);}['_getPreviousFrom'](_0x104fc7){const _0x841f06=Array[_0x7aff('0x7c')](this[_0x7aff('0x28')][_0x7aff('0x9d')]());_0x841f06[_0x7aff('0xe4')]((_0x2aaf47,_0x209866)=>_0x2aaf47-_0x209866),_0x841f06[_0x7aff('0x51')]();for(const _0x5902c4 of _0x841f06)if(_0x5902c4<_0x104fc7)return _0x5902c4;return Number[_0x7aff('0xd9')];}['_copyMarkers'](_0x405d57,_0x4bfc39){const _0xde6cdd=Array['from'](_0x4bfc39[_0x7aff('0xf4')])['map'](([_0x40f7f4,_0x2c1355])=>[_0x40f7f4,this[_0x7aff('0x46')](_0x2c1355,_0x405d57)]);_0x405d57[_0x7aff('0xf4')]=new Map(_0xde6cdd);}['_transformMarkers'](_0x195ea6){for(const _0x4321b8 of this[_0x7aff('0xb9')][_0x7aff('0xba')]()){const _0x1972ee=_0x4321b8[_0x7aff('0x16')](_0x195ea6),_0x5866a3=_0x23cb2f['_createFromRanges'](_0x1972ee);_0x4321b8[_0x7aff('0xc2')]=_0x5866a3[_0x7aff('0xc2')],_0x4321b8[_0x7aff('0xb4')]=_0x5866a3['end'];}}[_0x7aff('0x1e')](_0x23bd3b,_0x50d457){if(_0x7aff('0x3f')==_0x23bd3b[_0x7aff('0x9b')]||'detachRoot'==_0x23bd3b[_0x7aff('0x9b')])return void this['_handleRootOperation'](_0x23bd3b,_0x50d457);if('insert'==_0x23bd3b['type']){const _0x26b3bf=_0x23bd3b['position']['root'][_0x7aff('0x20')];this[_0x7aff('0x32')][_0x7aff('0x54')](_0x26b3bf)||(this['_diffRoots'][_0x7aff('0xef')](_0x26b3bf,G(_0x26b3bf,!0x0)),this[_0x7aff('0xc3')][_0x7aff('0xef')](_0x26b3bf,{}),_0x50d457&&this[_0x7aff('0x4c')][_0x7aff('0xef')](_0x26b3bf,G(_0x26b3bf,!0x0)));}else{if('addRootAttribute'==_0x23bd3b['type']||_0x7aff('0xf7')==_0x23bd3b[_0x7aff('0x9b')]||_0x7aff('0x66')==_0x23bd3b[_0x7aff('0x9b')])return void this[_0x7aff('0x61')](_0x23bd3b);}const _0x341042=this[_0x7aff('0x9a')](_0x23bd3b,this[_0x7aff('0x32')]);if(_0x7aff('0x12')!==_0x23bd3b[_0x7aff('0x9b')]&&(_0x341042[_0x7aff('0x45')](),this[_0x7aff('0x23')](_0x341042)),_0x50d457)switch(_0x341042[_0x7aff('0x9b')]){case _0x7aff('0x6e'):this[_0x7aff('0x6f')](_0x23bd3b);break;case _0x7aff('0x67'):case _0x7aff('0xa'):case'reinsert':this[_0x7aff('0x88')](_0x23bd3b);break;case'merge':this[_0x7aff('0x40')](_0x23bd3b);break;case _0x7aff('0xee'):this['_handleSplitOperation'](_0x23bd3b);break;case _0x7aff('0x12'):this[_0x7aff('0xd1')](_0x23bd3b);}}[_0x7aff('0x9a')](_0x4178f1,_0x575e0d){const _0x5cb4d4=_0x4178f1[_0x7aff('0x2a')]();return _0x5cb4d4[_0x7aff('0x57')]=_0x4178f1[_0x7aff('0x57')],this['_fixOperation'](_0x5cb4d4,_0x575e0d),_0x5cb4d4;}[_0x7aff('0x4e')](_0x4191d0){return _0x4191d0[_0x7aff('0xa5')](_0x36c820=>{const _0x2dd7ef=this[_0x7aff('0xd3')](_0x36c820);return Number(_0x36c820['item'][_0x7aff('0xbe')](_0x2dd7ef));});}[_0x7aff('0xc1')](_0x44bfe4,_0x51ff93){if(_0x44bfe4['is'](_0x7aff('0x47'),_0x7aff('0x56')))_0x51ff93[_0x7aff('0xd2')]({'item':_0x44bfe4,'type':_0x7aff('0x33')});else{_0x44bfe4['is']('element')&&_0x51ff93[_0x7aff('0xd2')]({'item':_0x44bfe4,'type':_0x7aff('0x7e')});for(const _0x50b369 of _0x44bfe4[_0x7aff('0xae')]())this[_0x7aff('0xc1')](_0x50b369,_0x51ff93);_0x44bfe4['is'](_0x7aff('0x47'))&&_0x51ff93[_0x7aff('0xd2')]({'item':_0x44bfe4,'type':_0x7aff('0x2f')});}return _0x51ff93;}[_0x7aff('0x1a')](){const _0x5aafc4=new Map(this[_0x7aff('0xf0')]),_0x3e95c8=new Map(_0x5aafc4),_0x1900e7=new Map(),_0x57443a={'insertions':{},'deletions':{}},_0x2c6421={'insertions':{},'deletions':{}},_0x5d7a2a=new Map(),_0x40c921=new Set([...this[_0x7aff('0xde')][_0x7aff('0x9d')](),...this[_0x7aff('0x32')][_0x7aff('0x9d')]()]);_0x40c921[_0x7aff('0x1f')](_0x7aff('0xfe'));for(const _0x15d1e1 of _0x40c921){const _0x130a19=this[_0x7aff('0x32')][_0x7aff('0x50')](_0x15d1e1)||G(_0x15d1e1,!0x1),_0x3a104c=this['_baseRoots'][_0x7aff('0x50')](_0x15d1e1)||G(_0x15d1e1,!0x1);_0x130a19[_0x7aff('0x76')]()||_0x3a104c[_0x7aff('0x76')]()?(_0x57443a['insertions'][_0x15d1e1]=q(_0x130a19),_0x57443a['deletions'][_0x15d1e1]=q(_0x3a104c),this['_copyMarkers'](_0x57443a[_0x7aff('0xda')][_0x15d1e1],_0x3a104c),this[_0x7aff('0xcd')](_0x57443a[_0x7aff('0xaf')][_0x15d1e1],_0x130a19),_0x2c6421[_0x7aff('0xaf')][_0x15d1e1]=this[_0x7aff('0xc1')](this[_0x7aff('0x4c')][_0x7aff('0x50')](_0x15d1e1),[]),_0x2c6421[_0x7aff('0xda')][_0x15d1e1]=this['_generateTape'](this[_0x7aff('0xad')][_0x7aff('0x50')](_0x15d1e1)||G(_0x15d1e1,!0x1),[])):_0x40c921[_0x7aff('0x1f')](_0x15d1e1);}for(const _0x28260c of _0x40c921){const _0x4c741d=_0x2c6421[_0x7aff('0xaf')][_0x28260c];for(const _0x35af51 of _0x4c741d){const _0xce8c5d=this[_0x7aff('0xd3')](_0x35af51),_0x3d6a15=_0x35af51['item'][_0x7aff('0xbe')](_0xce8c5d);_0x3e95c8[_0x7aff('0x1f')](_0x3d6a15),_0x3d6a15>=this[_0x7aff('0x26')]&&_0x1900e7[_0x7aff('0xef')](_0x3d6a15,_0x5aafc4[_0x7aff('0x50')](_0x3d6a15));}}for(const _0x169629 of _0x40c921){const _0x2478f4=_0x2c6421['insertions'][_0x169629],_0x4809b5=this[_0x7aff('0x4e')](_0x2c6421['deletions'][_0x169629]);let _0x5a84df=0x0;for(const _0x1f1a0b of _0x2478f4){const _0x52b170=this[_0x7aff('0xd3')](_0x1f1a0b),_0x1786f2=_0x1f1a0b[_0x7aff('0x68')][_0x7aff('0xbe')](_0x52b170);if(!_0x1900e7[_0x7aff('0x54')](_0x1786f2)&&!_0x5d7a2a[_0x7aff('0x54')](_0x1786f2)){if(_0x3e95c8[_0x7aff('0x54')](_0x1786f2))_0x5a84df++;else{if(_0x1786f2!=_0x4809b5[_0x5a84df]){const _0x1c3d8d=_0x5aafc4['get'](_0x1786f2)||_0x5aafc4['get'](_0x4809b5[_0x5a84df]);for(;_0x1786f2!=_0x4809b5[_0x5a84df];)_0x3e95c8['has'](_0x4809b5[_0x5a84df])||(_0x5d7a2a[_0x7aff('0xef')](_0x4809b5[_0x5a84df],_0x1c3d8d),_0x5aafc4[_0x7aff('0xef')](_0x4809b5[_0x5a84df],_0x1c3d8d)),_0x5a84df++;}_0x5a84df++;}}}}for(const _0x44a015 of _0x40c921){const _0x8c678b=_0x2c6421[_0x7aff('0xaf')][_0x44a015];for(const _0x2b26f0 of _0x8c678b){const _0x16b5f0=this[_0x7aff('0xd3')](_0x2b26f0),_0x26bdf1=_0x2b26f0[_0x7aff('0x68')]['getAttribute'](_0x16b5f0);if(_0x5d7a2a['has'](_0x26bdf1)){const _0x105f3d=_0x5d7a2a['get'](_0x26bdf1);_0x3e95c8[_0x7aff('0x54')](_0x26bdf1)||_0x3e95c8['set'](_0x26bdf1,{..._0x105f3d}),_0x1900e7[_0x7aff('0xef')](_0x26bdf1,{..._0x105f3d});}}}for(const _0x34664b of _0x3e95c8['keys']())_0x34664b>=this[_0x7aff('0x26')]&&_0x3e95c8['delete'](_0x34664b);const _0x440c08=new Map();for(const _0x10f797 of _0x40c921){let _0x640857=_0x2c6421[_0x7aff('0xaf')][_0x10f797];for(const _0x14388a of _0x640857)if(_0x14388a[_0x7aff('0x68')]['is'](_0x7aff('0x47'),_0x7aff('0xdf'))){const _0x40839c=this[_0x7aff('0xd3')](_0x14388a),_0x47436=_0x14388a[_0x7aff('0x68')]['getAttribute'](_0x40839c);if(_0x1900e7['has'](_0x47436)){const _0x54d236=_0x14388a['item']['parent']['parent'][_0x7aff('0xbe')](_0x7aff('0xf9')),_0x58259d=_0x440c08[_0x7aff('0x50')](_0x54d236)||new Set();_0x58259d[_0x7aff('0x73')](_0x1900e7[_0x7aff('0x50')](_0x47436)['userId']),_0x440c08['set'](_0x54d236,_0x58259d);}}_0x640857=_0x2c6421[_0x7aff('0xda')][_0x10f797];for(const _0x490a4d of _0x640857)if(_0x490a4d[_0x7aff('0x68')]['is']('element',_0x7aff('0xdf'))){const _0xd2cf60=this['_getVidAttributeName'](_0x490a4d),_0x5ba3d8=_0x490a4d[_0x7aff('0x68')][_0x7aff('0xbe')](_0xd2cf60);if(_0x3e95c8[_0x7aff('0x54')](_0x5ba3d8)){const _0x5a9ea0=_0x490a4d['item']['parent']['parent'][_0x7aff('0xbe')](_0x7aff('0xf9')),_0x524386=_0x440c08[_0x7aff('0x50')](_0x5a9ea0)||new Set();_0x524386[_0x7aff('0x73')](_0x3e95c8[_0x7aff('0x50')](_0x5ba3d8)['userId']),_0x440c08[_0x7aff('0xef')](_0x5a9ea0,_0x524386);}}for(const _0x182584 of _0x440c08[_0x7aff('0x9d')]())(_0x1900e7[_0x7aff('0x54')](_0x182584)||_0x3e95c8['has'](_0x182584))&&_0x440c08['delete'](_0x182584);}for(const _0x1cf364 of _0x40c921){const _0x4f4a32=_0x2c6421['insertions'][_0x1cf364];let _0x7aa88=null,_0x29e7c4=null;for(const _0x27e3ab of _0x4f4a32){const _0x1bcdb7=this[_0x7aff('0xd3')](_0x27e3ab),_0x3ec6e2=_0x27e3ab[_0x7aff('0x68')][_0x7aff('0xbe')](_0x1bcdb7),_0x178412=_0x440c08[_0x7aff('0x50')](_0x3ec6e2);_0x178412&&'elementStart'==_0x27e3ab['type']&&(_0x7aa88=Array[_0x7aff('0x7c')](_0x178412)[0x0],_0x29e7c4=_0x27e3ab['item'][_0x7aff('0xbe')](_0x7aff('0x2b'))),_0x7aa88&&(_0x3e95c8[_0x7aff('0xef')](_0x3ec6e2,{'userId':_0x7aa88}),_0x1900e7[_0x7aff('0xef')](_0x3ec6e2,{'userId':_0x7aa88})),_0x3ec6e2==_0x29e7c4&&(_0x7aa88=null,_0x29e7c4=null);}}const _0x2e55b4={},_0x311705=new Set();for(const _0x494616 of _0x40c921){const _0x218153=_0x57443a[_0x7aff('0xda')][_0x494616],_0x56cea9=_0x57443a['insertions'][_0x494616];for(const {userId:_0x4237f9}of this[_0x7aff('0x77')][_0x7aff('0xba')]())null!==_0x4237f9&&_0x311705[_0x7aff('0x73')](_0x4237f9);for(const {userId:_0x4e708a}of this[_0x7aff('0x21')][_0x7aff('0xba')]())null!==_0x4e708a&&_0x311705[_0x7aff('0x73')](_0x4e708a);this['_markChanges'](_0x56cea9,_0x2c6421['insertions'][_0x494616],_0x1900e7,'insertion',_0x311705),this['_markChanges'](_0x218153,_0x2c6421[_0x7aff('0xda')][_0x494616],_0x3e95c8,_0x7aff('0x5'),_0x311705),_0x2e55b4[_0x494616]={'insertions':this[_0x7aff('0x82')](_0x56cea9),'deletions':this[_0x7aff('0x82')](_0x218153),'attachChange':this[_0x7aff('0x21')][_0x7aff('0x50')](_0x494616)||null,'attributesBefore':_0x53c182(this[_0x7aff('0x8a')][_0x7aff('0x50')](_0x494616))||{},'attributesAfter':_0x53c182(this[_0x7aff('0xc3')][_0x7aff('0x50')](_0x494616))};}return{'diffData':_0x2e55b4,'authorsIds':Array[_0x7aff('0x7c')](_0x311705)};}['_processRootBeforeSave'](_0x5d3192){for(const [,_0x89389a]of _0x5d3192['markers']){const _0x108834=_0x89389a[_0x7aff('0xc2')]['getAncestors']()[_0x7aff('0x90')](_0x15a222=>_0x7aff('0xdf')==_0x15a222['name']);for(const _0x2a4605 of _0x108834)0x1==_0x2a4605[_0x7aff('0xd4')]&&_0x2a4605[_0x7aff('0xe6')](0x0)['is'](_0x7aff('0x47'),'paragraph')&&_0x2a4605[_0x7aff('0xe6')](0x0)[_0x7aff('0xa6')](_0x7aff('0x15'),!0x0);}}[_0x7aff('0x82')](_0x4367a9){this[_0x7aff('0xb3')](_0x4367a9);const _0x28b587=this[_0x7aff('0x29')][_0x7aff('0x5d')]['toView'](_0x4367a9,{}),_0x4c5489=Array[_0x7aff('0x7c')](_0x28b587[_0x7aff('0xae')]())[_0x7aff('0xa5')](_0x504012=>this[_0x7aff('0xd0')](_0x504012));return JSON[_0x7aff('0xd6')](_0x4c5489);}[_0x7aff('0xd0')](_0xe11920){if(_0xe11920['is']('$text'))return _0xe11920[_0x7aff('0x5d')];{const _0x5072d2=_0xe11920;return{'type':Object['keys'](B)['find'](_0x512511=>_0xe11920 instanceof B[_0x512511]),'name':_0x5072d2[_0x7aff('0x4')],'attributes':Array[_0x7aff('0x7c')](_0x5072d2[_0x7aff('0xea')]()),'children':Array[_0x7aff('0x7c')](_0x5072d2[_0x7aff('0xae')]())[_0x7aff('0xa5')](_0x26cc91=>this[_0x7aff('0xd0')](_0x26cc91))};}}[_0x7aff('0x37')](_0x3a7618,_0x596029,_0x3a4c5d,_0x53ac37,_0x3c6dda){let _0x3dd31c=null,_0x173382=null,_0xc5b572=0x0;const _0x19126f=this[_0x7aff('0x29')][_0x7aff('0xcf')];for(let _0x12cf2=0x0;_0x12cf2<_0x596029[_0x7aff('0xdc')];_0x12cf2++){const _0x302f0d=this[_0x7aff('0xd3')](_0x596029[_0x12cf2]),_0x333191=_0x596029[_0x12cf2]['item'][_0x7aff('0xbe')](_0x302f0d),_0x1e081e=_0x3a4c5d['get'](_0x333191),_0x5b1554=_0x12cf2==_0x596029[_0x7aff('0xdc')]-0x1;(!_0x3dd31c&&_0x1e081e&&(_0x3dd31c=_0x1e081e,_0x173382=_0x596029[_0x12cf2]),_0x3dd31c&&(!_0x1e081e||_0x1e081e[_0x7aff('0x42')]!=_0x3dd31c[_0x7aff('0x42')]))&&(_0x43968a(_0x1e081e,L(_0x173382,_0x3a7618,_0x19126f),L(_0x596029[_0x12cf2],_0x3a7618,_0x19126f)),_0x3dd31c=_0x1e081e||null,_0x173382=_0x1e081e?_0x596029[_0x12cf2]:null),_0x3dd31c&&_0x5b1554&&_0x43968a(_0x1e081e,L(_0x173382,_0x3a7618,_0x19126f),W(_0x596029[_0x12cf2],_0x3a7618,_0x19126f));}function _0x43968a(_0x4413ca,_0x12463c,_0x52258c){const _0x1b7560=_0x3dd31c[_0x7aff('0x42')],_0xdeb5c0=_0x7aff('0x87')+_0x53ac37+':'+_0x1b7560+':'+_0xc5b572++,_0x4466cd=_0x19126f[_0x7aff('0x9e')](_0x12463c,_0x52258c);_0x3a7618['markers']['set'](_0xdeb5c0,_0x4466cd),null!==_0x1b7560&&_0x3c6dda[_0x7aff('0x73')](_0x1b7560);}}[_0x7aff('0xd3')](_0x57cc3){switch(_0x57cc3[_0x7aff('0x9b')]){case _0x7aff('0x7e'):return _0x7aff('0xf9');case'elementEnd':return _0x7aff('0x2b');default:return _0x7aff('0xf5');}}[_0x7aff('0xbf')](_0x1540df,_0x4fd874){_0x1540df[_0x7aff('0xa8')]=null;for(const _0x3da5d1 in _0x1540df){const _0xd3828=_0x1540df[_0x3da5d1];if(_0xd3828 instanceof _0x576a27){const _0x10d8d0=_0x4fd874[_0x7aff('0x50')](_0xd3828['root'][_0x7aff('0x20')]);_0x1540df[_0x3da5d1]=this[_0x7aff('0xce')](_0xd3828,_0x10d8d0);}if(_0xd3828 instanceof _0x23cb2f){const _0x30eae7=_0x4fd874[_0x7aff('0x50')](_0xd3828['root']['rootName']);_0x1540df[_0x3da5d1]=this[_0x7aff('0x46')](_0xd3828,_0x30eae7);}_0x7aff('0xc9')===_0x3da5d1&&(_0x1540df['root']=_0x4fd874[_0x7aff('0x50')](_0x1540df[_0x7aff('0xc9')][_0x7aff('0x20')]));}}['_fixRange'](_0x13b24d,_0x422433){return this[_0x7aff('0x29')][_0x7aff('0xcf')][_0x7aff('0x9e')](this['_fixPosition'](_0x13b24d[_0x7aff('0xc2')],_0x422433),this['_fixPosition'](_0x13b24d[_0x7aff('0xb4')],_0x422433));}['_fixPosition'](_0x56f95f,_0x3f0b49){return this['editor'][_0x7aff('0xcf')][_0x7aff('0x7a')](_0x3f0b49,_0x56f95f['path'],_0x56f95f['stickiness']);}[_0x7aff('0x6f')](_0x50c254){const _0xf1fb19=this[_0x7aff('0x4c')]['get'](_0x50c254[_0x7aff('0xc4')][_0x7aff('0xc9')]['rootName']),_0x11ea00=this[_0x7aff('0xce')](_0x50c254['position'],_0xf1fb19),_0x1817dc=null===_0x50c254[_0x7aff('0x57')]?null:_0x50c254[_0x7aff('0x57')]||this[_0x7aff('0x29')][_0x7aff('0xeb')][_0x7aff('0x50')](_0x7aff('0xd5'))['me']['id'],_0xfbd718=_0x11ea00[_0x7aff('0x53')],_0x385306=this['_revisionId'],_0x489876=[];for(const _0x100548 of _0x50c254['nodes'])if(_0x100548['is']('element'))_0x489876['push'](this['_makeIdsRoot'](_0x100548));else for(let _0x5d8c72=0x0;_0x5d8c72<_0x100548[_0x7aff('0x86')];_0x5d8c72++)_0x489876[_0x7aff('0xd2')](new _0x371ba5('$text',{'vid':this[_0x7aff('0xa7')]++}));const _0x2bbf92=this[_0x7aff('0xa7')];for(let _0x21abff=_0x385306;_0x21abff<_0x2bbf92;_0x21abff++)this[_0x7aff('0xf0')][_0x7aff('0xef')](_0x21abff,{'userId':_0x1817dc});_0xfbd718['_insertChild'](_0x11ea00[_0x7aff('0xa3')],_0x489876);}['_handleMoveOperation'](_0x4dbe1a){(_0x4dbe1a=this[_0x7aff('0x9a')](_0x4dbe1a,this['_idsRoots']))[_0x7aff('0x45')]();const _0x2b0440=null===_0x4dbe1a[_0x7aff('0x57')]?null:_0x4dbe1a[_0x7aff('0x57')]||this[_0x7aff('0x29')][_0x7aff('0xeb')][_0x7aff('0x50')](_0x7aff('0xd5'))['me']['id'],_0x280ec6=_0x4dbe1a[_0x7aff('0x5a')](),_0x6e65ea=_0x280ec6[_0x7aff('0x53')],_0x548bb1=_0x280ec6[_0x7aff('0xa3')];!function _0x356785(_0xcd460b,_0x22a9c2,_0x26b3ef,_0x24f247){for(let _0x5455f0=_0x26b3ef;_0x5455f0<_0x24f247;_0x5455f0++){const _0x196987=_0x22a9c2['getChild'](_0x5455f0);_0x196987['is']('element',_0x7aff('0x56'))?_0xcd460b['set'](_0x196987[_0x7aff('0xbe')](_0x7aff('0xf5')),{'userId':_0x2b0440}):(_0xcd460b[_0x7aff('0xef')](_0x196987[_0x7aff('0xbe')]('vid_start'),{'userId':_0x2b0440}),_0x356785(_0xcd460b,_0x196987,0x0,_0x196987[_0x7aff('0xd4')]),_0xcd460b[_0x7aff('0xef')](_0x196987[_0x7aff('0xbe')](_0x7aff('0x2b')),{'userId':_0x2b0440}));}}(this[_0x7aff('0xf0')],_0x6e65ea,_0x548bb1,_0x548bb1+_0x4dbe1a[_0x7aff('0xe7')]);}[_0x7aff('0x40')](_0x12b2a5){const _0xd57ff9=null===(_0x12b2a5=this[_0x7aff('0x9a')](_0x12b2a5,this[_0x7aff('0x4c')]))[_0x7aff('0x57')]?null:_0x12b2a5[_0x7aff('0x57')]||this['editor'][_0x7aff('0xeb')][_0x7aff('0x50')](_0x7aff('0xd5'))['me']['id'],_0x2249d7=_0x12b2a5[_0x7aff('0x78')][_0x7aff('0x53')],_0x5d1cfa=_0x12b2a5[_0x7aff('0x8e')][_0x7aff('0x53')],_0x404a08=_0x2249d7[_0x7aff('0xbe')]('vid_end'),_0x5b8099=_0x5d1cfa[_0x7aff('0xbe')](_0x7aff('0xf9'));_0x2249d7[_0x7aff('0xa6')](_0x7aff('0x2b'),_0x5d1cfa[_0x7aff('0xbe')](_0x7aff('0x2b'))),_0x5d1cfa[_0x7aff('0xa6')](_0x7aff('0x2b'),_0x404a08),this[_0x7aff('0xf0')][_0x7aff('0xef')](_0x5b8099,{'userId':_0xd57ff9}),this[_0x7aff('0xf0')][_0x7aff('0xef')](_0x404a08,{'userId':_0xd57ff9}),_0x12b2a5[_0x7aff('0x45')]();}[_0x7aff('0x7f')](_0x2018c9){const _0x463e0a=null===(_0x2018c9=this[_0x7aff('0x9a')](_0x2018c9,this[_0x7aff('0x4c')]))['_authorId']?null:_0x2018c9['_authorId']||this[_0x7aff('0x29')][_0x7aff('0xeb')]['get'](_0x7aff('0xd5'))['me']['id'],_0x211b7c=_0x2018c9[_0x7aff('0xe2')],_0x264a3a=_0x2018c9['splitPosition'][_0x7aff('0x53')];_0x2018c9['_execute']();const _0x112e25=_0x264a3a[_0x7aff('0xbe')]('vid_end'),_0x372f4a=_0x2018c9[_0x7aff('0xd7')]['nodeAfter'];if(_0x211b7c){const _0x590389=_0x372f4a['getAttribute']('vid_end'),_0x574c5d=_0x264a3a[_0x7aff('0xbe')](_0x7aff('0x2b'));_0x264a3a['_setAttribute'](_0x7aff('0x2b'),_0x590389),_0x372f4a[_0x7aff('0xa6')](_0x7aff('0x2b'),_0x574c5d),this[_0x7aff('0xf0')][_0x7aff('0xef')](_0x264a3a['getAttribute'](_0x7aff('0x2b')),{'userId':_0x463e0a}),this[_0x7aff('0xf0')]['set'](_0x372f4a[_0x7aff('0xbe')](_0x7aff('0xf9')),{'userId':_0x463e0a});}else{const _0x139f13=this[_0x7aff('0xa7')]++,_0x34ada7=this[_0x7aff('0xa7')]++;_0x264a3a[_0x7aff('0xa6')]('vid_end',_0x139f13),_0x372f4a[_0x7aff('0xa6')](_0x7aff('0xf9'),_0x34ada7),_0x372f4a[_0x7aff('0xa6')](_0x7aff('0x2b'),_0x112e25),this['_touched'][_0x7aff('0xef')](_0x139f13,{'userId':_0x463e0a}),this[_0x7aff('0xf0')][_0x7aff('0xef')](_0x34ada7,{'userId':_0x463e0a});}}[_0x7aff('0xd1')](_0x500e7f){if(!_0x500e7f['affectsData'])return;const _0x34515e=(_0x500e7f=this[_0x7aff('0x9a')](_0x500e7f,this[_0x7aff('0x32')]))['oldRange']?_0x500e7f[_0x7aff('0x39')][_0x7aff('0xc9')]:null,_0x1e8e3c=_0x500e7f[_0x7aff('0x8f')]?_0x500e7f[_0x7aff('0x8f')][_0x7aff('0xc9')]:null;_0x34515e&&this['_markers'][_0x7aff('0x1f')](_0x500e7f['name']),_0x1e8e3c&&this['_markers'][_0x7aff('0xef')](_0x500e7f[_0x7aff('0x4')],_0x500e7f[_0x7aff('0x8f')]['clone']());const _0x3d4106=null===_0x500e7f['_authorId']?null:_0x500e7f[_0x7aff('0x57')]||this[_0x7aff('0x29')][_0x7aff('0xeb')][_0x7aff('0x50')](_0x7aff('0xd5'))['me']['id'],_0x47ced7=_0x500e7f[_0x7aff('0x4')];if(!this[_0x7aff('0x77')][_0x7aff('0x54')](_0x47ced7))return void this[_0x7aff('0x77')][_0x7aff('0xef')](_0x47ced7,{'range':_0x500e7f[_0x7aff('0x39')],'userId':_0x3d4106});const _0x1e78fe=this[_0x7aff('0x77')][_0x7aff('0x50')](_0x47ced7),_0x5a262e=_0x1e78fe[_0x7aff('0x48')],_0x995113=_0x500e7f[_0x7aff('0x8f')];null==_0x5a262e&&null==_0x995113||_0x5a262e&&_0x995113&&_0x5a262e['isEqual'](_0x995113)?this[_0x7aff('0x77')][_0x7aff('0x1f')](_0x500e7f[_0x7aff('0x4')]):_0x1e78fe['userId']=_0x3d4106;}[_0x7aff('0x5f')](_0x28e683,_0x56dca3){this[_0x7aff('0x32')][_0x7aff('0x54')](_0x28e683[_0x7aff('0x20')])?this['_diffRoots'][_0x7aff('0x50')](_0x28e683[_0x7aff('0x20')])[_0x7aff('0x52')]=_0x28e683[_0x7aff('0xe3')]:(this[_0x7aff('0x32')][_0x7aff('0xef')](_0x28e683[_0x7aff('0x20')],G(_0x28e683['rootName'],!0x0)),this[_0x7aff('0xc3')][_0x7aff('0xef')](_0x28e683['rootName'],{}),_0x56dca3&&this['_idsRoots'][_0x7aff('0xef')](_0x28e683['rootName'],G(_0x28e683[_0x7aff('0x20')],!0x0)));const _0x45d261=null===_0x28e683[_0x7aff('0x57')]?null:_0x28e683[_0x7aff('0x57')]||this[_0x7aff('0x29')][_0x7aff('0xeb')]['get'](_0x7aff('0xd5'))['me']['id'],_0x492317=this['_touchedRoots'][_0x7aff('0x50')](_0x28e683[_0x7aff('0x20')]);_0x492317&&_0x492317[_0x7aff('0x42')]===_0x45d261?this['_touchedRoots'][_0x7aff('0x1f')](_0x28e683['rootName']):this['_touchedRoots'][_0x7aff('0xef')](_0x28e683[_0x7aff('0x20')],{'userId':_0x45d261,'isAttached':_0x28e683[_0x7aff('0xe3')]});}[_0x7aff('0x61')](_0x616642){const _0x950999=this[_0x7aff('0xc3')][_0x7aff('0x50')](_0x616642['root'][_0x7aff('0x20')]);null===_0x616642[_0x7aff('0xcc')]?delete _0x950999[_0x616642[_0x7aff('0x6a')]]:_0x950999[_0x616642[_0x7aff('0x6a')]]=_0x616642[_0x7aff('0xcc')];}}function q(_0x7df5d2){const _0x2f2c25=G(_0x7df5d2[_0x7aff('0x20')],_0x7df5d2[_0x7aff('0x76')]());for(const _0x31d28d of _0x7df5d2[_0x7aff('0xae')]()){const _0x27b055=_0x31d28d[_0x7aff('0x3b')](!0x0);_0x2f2c25[_0x7aff('0xa1')](_0x27b055);}return _0x2f2c25;}function G(_0x329c3b,_0x3b8d4c=!0x0){const _0xcb737f=new _0x33b7b8();return _0xcb737f[_0x7aff('0x20')]=_0x329c3b,_0xcb737f[_0x7aff('0x52')]=_0x3b8d4c,_0xcb737f[_0x7aff('0x76')]=()=>_0xcb737f['_isAttached'],_0xcb737f;}function L(_0x259da7,_0x24878e,_0x107ac0){const _0x17f95e=_0x7aff('0x2f')==_0x259da7[_0x7aff('0x9b')]?_0x107ac0['createPositionAt'](_0x259da7[_0x7aff('0x68')],_0x7aff('0xb4')):_0x107ac0[_0x7aff('0xf2')](_0x259da7[_0x7aff('0x68')]);return _0x107ac0['createPositionFromPath'](_0x24878e,_0x17f95e[_0x7aff('0x5b')],_0x17f95e[_0x7aff('0x1b')]);}function W(_0xd72521,_0x276277,_0x3fa26d){const _0x3b3afb=_0x7aff('0x7e')==_0xd72521[_0x7aff('0x9b')]?_0x3fa26d[_0x7aff('0x11')](_0xd72521[_0x7aff('0x68')],0x0):_0x3fa26d['createPositionAfter'](_0xd72521[_0x7aff('0x68')]);return _0x3fa26d['createPositionFromPath'](_0x276277,_0x3b3afb['path'],_0x3b3afb[_0x7aff('0x1b')]);}
|
|
23
|
+
const _0x5cfb=['previousPosition','_baseRootsAttributes','isEqual','baseVersion','creatorId','_execute','setRevisionData','trim','merge','_createInitialRevision','RevisionTracker','authorsIds','_revisionId','createPositionFromPath','rootsAttributes','name','forEach','initialData','set','_bufferedUpdates','roots','_transformMarkers','length','isAttached','config','userId','_setConversion','tableCell','vid','isEnabled','adapter','revision','_fixRange','repository','insertions','_bufferUpdate','_authorId','marked','attributes','children','dataToMarker','collaboration.channelId','_fixOperation','childCount','stickiness','_getBaseVids','text','getTime','getCurrentRevisionId','shift','reverse','_saveMetaData','_reset','getOperations','revisionHistory.resumeUnsavedRevision','editor-initial-data-replaced-with-revision-data','nodes','addRootAttribute','sourcePosition','_isPendingUpdate','keys','push','attachChange','oldRange','_createCurrentRevision','_getState','_getFromVersion','default','_makeRevision','fromEntries','string','creator','_touchedRoots','diffData','revision:','getRevisionRootsAttributes','getRoot','finally','useFillerType','_prepareViewToSave','view','define','size','filter','vid_end','_clone','startsWith','parent','_makeModelFromViewString','Users','init','createdAt','_handleMarkerOperation','_loadState','get','_addPendingAction','addRoot','howMany','hasContent','_lastTo','has','upcast','_startingRevisionId','values','fromVersion','_revisionDataBuilder','clear','range','getAttributes','_baseRoots','position','remove','deletions','path','_cloneOperation','getChildren','_loadRevisionData','find','_processRootBeforeSave','getRevisions','deletion','$text','_touched','pluginName','documentFragment','toView','PendingActions','getLatestVersion','locale','authors','getUser','getChild','root','_lastFrom','_replaceEditorDataWithRevisionData','history','_markers','_applyOperations','move','revision-start','_idsRoots','getOperation','_removeRevisionMarkers','elementStart','newRange','getNodeByPath','source','_markChanges','_calculateMetaData','resolve','getData','addRevisionData','_isInit','model','_copyMarkers','_initialRevisionId','RealTimeCollaborationClient','_baseIdsRoots','saveRevision','type','start','editing','conversion','dataDowncast','marker','splitPosition','nodeAfter','toData','getAttribute','bind','_diffRootsAttributes','offsetSize','key','_removePendingAction','loadState','getRange','isReady','getIndex','_startingVersion','editor','data','revision-end','createPositionBefore','delete','from','_findInsertionIndex','_handleOperation','some','markers','afterInit','_fixPosition','_savedMetaData','PENDING_ACTION_REVISION_HISTORY','_getPreviousFrom','data-revision-','slice','ready','_source','split','_removeMetaData','buildRevisionData','_handleRootAttributeOperation','_handleInsertOperation','removeRootAttribute','_update','document','toModel','toVersion','_makeIdsRoot','_touchedMarkers','update','sendBufferedUpdates','_getViewJson','_isAttached','_loadedStateData','insertionPosition','getRevisionDocumentData','then','stringify','getRootNames','isAdd','createRevision','getMovedRangeStart','_handleMergeOperation','NEGATIVE_INFINITY','rootName','processor','initial','detachRoot','attributesAfter','end','max','paragraph','map','_generateTape','_continueCurrentRevision','elementEnd','insert','version','_setAttribute','createRangeIn','currentRevision','add','createPositionAfter','_handleMoveOperation','addRevision','getWalker','_insertChild','attributesBefore','$graveyard','changeRootAttribute','newValue','plugins','_diffRoots','item','_createFromRanges','_pendingAction','offset','vid_start','_handleSplitOperation','getRevision','clone','_getVidAttributeName','createPositionAt','graveyardPosition','element'];(function(_0x3c5c1a,_0x5cfb37){const _0x1b49c9=function(_0x5325b3){while(--_0x5325b3){_0x3c5c1a['push'](_0x3c5c1a['shift']());}};_0x1b49c9(++_0x5cfb37);}(_0x5cfb,0x161));const _0x1b49=function(_0x3c5c1a,_0x5cfb37){_0x3c5c1a=_0x3c5c1a-0x0;let _0x1b49c9=_0x5cfb[_0x3c5c1a];return _0x1b49c9;};import{Users as _0x410585}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x5ca3f8,PendingActions as _0x42776f}from'ckeditor5/src/core';import{logWarning as _0x486473,uid as _0x16bf9f}from'ckeditor5/src/utils';import{Position as _0x357d8b,Range as _0x1948b6,Element as _0x46b245,DocumentFragment as _0x49f90d,ViewText as _0x50d6bf,ViewElement as _0xbff4c3,ViewContainerElement as _0x5a9c4e,ViewAttributeElement as _0x348b15,ViewEmptyElement as _0x53fd01,ViewRawElement as _0xdfd34,ViewUIElement as _0x2e2aca,ViewDocumentFragment as _0x1b6ec3}from'ckeditor5/src/engine';import _0x2d5c56 from'./revisionsrepository';import{getTranslation as _0x56dae8}from'./utils/common-translations';import{cloneDeep as _0x4b3567,isEqual as _0x41d495}from'lodash-es';const B={'c':_0x5a9c4e,'a':_0x348b15,'e':_0x53fd01,'r':_0xdfd34,'u':_0x2e2aca};export default class l extends _0x5ca3f8{static get[_0x1b49('0x24')](){return _0x1b49('0xbd');}static get['requires'](){return[_0x410585,_0x2d5c56,_0x42776f];}constructor(_0x413d5a){super(_0x413d5a),this[_0x1b49('0xd1')]=null,this['currentRevision']=null,this[_0x1b49('0x12')]=new H(this['editor']),this[_0x1b49('0x44')]=this[_0x1b49('0x5c')][_0x1b49('0xcb')]['get'](_0x1b49('0xdc'))||_0x1b49('0x8c'),this[_0x1b49('0xc6')]=new Map(),this[_0x1b49('0x7f')]=null;const _0x55927b=_0x16bf9f();this[_0x1b49('0x6e')]={'history':this['editor']['model'][_0x1b49('0x76')][_0x1b49('0x30')],'getLatestVersion':()=>Promise['resolve'](this[_0x1b49('0x5c')]['model']['document'][_0x1b49('0x97')]),'getCurrentRevisionId':()=>_0x55927b},this['set'](_0x1b49('0x59'),!0x1),this[_0x1b49('0xc5')](_0x1b49('0xd0'),!0x0),this[_0x1b49('0xc5')]('_isPendingUpdate',!0x1),this['editor'][_0x1b49('0xcb')][_0x1b49('0x104')](_0x1b49('0xe9'),!0x0),this[_0x1b49('0x5c')][_0x1b49('0x4b')]['for'](_0x1b49('0xe'))[_0x1b49('0xdb')]({'view':_0x1b49('0xd2')});}[_0x1b49('0x3')](){this['repository']=this[_0x1b49('0x5c')]['plugins']['get']('RevisionsRepository'),this[_0x1b49('0xcd')](),this[_0x1b49('0x5c')][_0x1b49('0x5d')]['on'](_0x1b49('0x6d'),()=>{const _0x212dcc=this['repository'][_0x1b49('0xad')](0x0),_0x571aa0=_0x212dcc&&null===_0x212dcc[_0x1b49('0xfa')]?_0x212dcc:null;if(this[_0x1b49('0x94')]=!!_0x571aa0&&this['editor']['config']['get'](_0x1b49('0xe9')),this[_0x1b49('0x5c')][_0x1b49('0xa5')][_0x1b49('0xd')](_0x1b49('0x45'))){const _0x428798=this['_source'][_0x1b49('0xe3')](),_0x4ff3ff=this['repository']['getRevision'](_0x428798);if(_0x4ff3ff)this[_0x1b49('0x5b')]=_0x4ff3ff[_0x1b49('0x11')],this[_0x1b49('0x94')]=!0x1;else{const _0x22ae0d=this[_0x1b49('0x6e')][_0x1b49('0x30')]['_operations'][_0x1b49('0x1e')](_0x43090c=>!_0x43090c[_0x1b49('0x41')]),_0x410845=_0x22ae0d?_0x22ae0d[_0x1b49('0xb6')]:this[_0x1b49('0x6e')][_0x1b49('0x30')]['version'];_0x212dcc?(_0x212dcc[_0x1b49('0x78')]<_0x410845&&_0x212dcc[_0x1b49('0x75')]({'toVersion':_0x410845}),this[_0x1b49('0x94')]?(this[_0x1b49('0x6e')][_0x1b49('0xe3')]=()=>_0x571aa0['id'],this[_0x1b49('0x5b')]=_0x571aa0[_0x1b49('0x11')]):(this[_0x1b49('0x5b')]=_0x212dcc[_0x1b49('0x78')],this['_continueCurrentRevision']=!0x1)):(this[_0x1b49('0x5b')]=_0x410845,this[_0x1b49('0x94')]=!0x1);}}else _0x571aa0&&(this[_0x1b49('0x5c')]['model'][_0x1b49('0x76')][_0x1b49('0x30')][_0x1b49('0x97')]=Math[_0x1b49('0x90')](_0x571aa0[_0x1b49('0x78')],this[_0x1b49('0x5c')][_0x1b49('0x42')][_0x1b49('0x76')][_0x1b49('0x30')][_0x1b49('0x97')]),_0x571aa0[_0x1b49('0x11')]===_0x571aa0[_0x1b49('0x78')]?(0x0!==_0x571aa0[_0x1b49('0x11')]&&(this[_0x1b49('0x6e')]['getCurrentRevisionId']=()=>_0x571aa0['id']),this[_0x1b49('0x94')]=!0x1):this['_continueCurrentRevision']&&(this[_0x1b49('0x6e')][_0x1b49('0xe3')]=()=>_0x571aa0['id'],this[_0x1b49('0x5b')]=_0x571aa0[_0x1b49('0x11')])),this['_continueCurrentRevision']||(this[_0x1b49('0x5b')]=this['editor'][_0x1b49('0x42')]['document']['version']);this['_revisionDataBuilder']['init'](this[_0x1b49('0x6e')][_0x1b49('0x30')]),this['_createInitialRevision'](this[_0x1b49('0x5b')]),this[_0x1b49('0xf3')](this[_0x1b49('0x5b')]),this[_0x1b49('0xd1')]&&this[_0x1b49('0x7c')]();}),this[_0x1b49('0x52')]('isReady')['to'](this,_0x1b49('0xee'),_0xd17749=>!_0xd17749);}async[_0x1b49('0x66')](){if(this['repository'][_0x1b49('0xc9')]>0x0){const _0x2914de=this['repository'][_0x1b49('0xad')](0x0),_0x51da63=await this['getRevisionDocumentData'](_0x2914de),_0x1e519e=await this[_0x1b49('0xfe')](_0x2914de);this['_replaceEditorDataWithRevisionData'](_0x51da63,_0x1e519e);}}['setSource'](_0xd3de6e){this[_0x1b49('0x6e')]=_0xd3de6e;}async[_0x1b49('0x7b')](){const _0x565165=await this[_0x1b49('0x6e')][_0x1b49('0x28')]();if(_0x565165>this[_0x1b49('0x9a')][_0x1b49('0x78')]){await this[_0x1b49('0x6')]();const _0x38c242=this[_0x1b49('0x71')]({'revision':this[_0x1b49('0x9a')],'to':_0x565165});_0x38c242[_0x1b49('0x2a')]=_0x38c242[_0x1b49('0xbe')][_0x1b49('0x92')](_0x5b4323=>this['editor'][_0x1b49('0xa5')]['get'](_0x1b49('0x2'))[_0x1b49('0x2b')](_0x5b4323)),this[_0x1b49('0x9a')]['_update'](_0x38c242);}}async[_0x1b49('0x6')](){this[_0x1b49('0x94')]&&!this[_0x1b49('0x7f')]&&(await this['_loadRevisionData'](this['currentRevision']),this[_0x1b49('0x12')][_0x1b49('0x57')](this[_0x1b49('0x9a')]),this[_0x1b49('0x7f')]={'fromVersion':this[_0x1b49('0x9a')][_0x1b49('0x11')],'authors':this[_0x1b49('0x9a')]['authors'][_0x1b49('0x6c')]()});}async[_0x1b49('0x47')](_0x5caa84={},_0x57d699=null){const _0x2d5718=[];await this[_0x1b49('0x6')](),this[_0x1b49('0x94')]=!0x1,_0x57d699>this[_0x1b49('0x9a')]['toVersion']&&(_0x57d699=null),null===_0x57d699&&(_0x57d699=await this[_0x1b49('0x6e')][_0x1b49('0x28')]());const _0x2f19ed=this[_0x1b49('0xf5')](_0x57d699),_0x318350=this['buildRevisionData']({'from':_0x2f19ed,'to':_0x57d699});if(this[_0x1b49('0x9a')]['toVersion']<_0x57d699){const _0x3b2ec6=this[_0x1b49('0x71')]({'revision':this[_0x1b49('0x9a')],'from':_0x57d699,'to':_0x57d699});_0x3b2ec6[_0x1b49('0x2a')]=[],_0x3b2ec6['authorsIds']=[],_0x3b2ec6['id']=this[_0x1b49('0x9a')]['id'],this['currentRevision'][_0x1b49('0x75')](_0x3b2ec6,!0x0),delete _0x3b2ec6['authors'],_0x2d5718[_0x1b49('0xf0')](_0x3b2ec6);}_0x5caa84[_0x1b49('0xb7')]=this[_0x1b49('0x5c')]['plugins'][_0x1b49('0x7')]('Users')['me']['id'],_0x5caa84[_0x1b49('0xc2')]=_0x5caa84['name']||null,_0x5caa84['id']=_0x5caa84['id']||_0x16bf9f(),_0x5caa84={..._0x5caa84,..._0x318350};const _0x569c5c=this['addRevisionData'](_0x5caa84);_0x2d5718[_0x1b49('0xf0')](_0x5caa84);const _0x1474d6=this[_0x1b49('0xd4')][_0x1b49('0x5a')](_0x569c5c);if(0x0!==_0x1474d6){const _0xfcd5e=this[_0x1b49('0xd4')]['getRevision'](_0x1474d6-0x1);if(_0xfcd5e[_0x1b49('0x11')]!==_0x57d699){const _0x51a32f=this[_0x1b49('0x12')][_0x1b49('0x3f')](_0x57d699,_0xfcd5e[_0x1b49('0x78')]),_0x12122a={'id':_0xfcd5e['id'],'diffData':_0x51a32f[_0x1b49('0xfc')],'authorsIds':_0x51a32f['authorsIds'],'authors':_0x51a32f[_0x1b49('0xbe')][_0x1b49('0x92')](_0x194c53=>this['editor'][_0x1b49('0xa5')][_0x1b49('0x7')](_0x1b49('0x2'))[_0x1b49('0x2b')](_0x194c53)),'fromVersion':_0x57d699};_0xfcd5e===this[_0x1b49('0x9a')]&&(_0x12122a[_0x1b49('0x4')]=new Date(_0x5caa84[_0x1b49('0x4')][_0x1b49('0xe2')]()+0xa)),_0xfcd5e[_0x1b49('0x75')](_0x12122a,!0x0),delete _0x12122a[_0x1b49('0x2a')],_0x2d5718[_0x1b49('0xf0')](_0x12122a);}}if(this[_0x1b49('0xd1')]){for(const _0x47425a of _0x2d5718)this[_0x1b49('0xd6')](_0x47425a['id'],_0x47425a,!0x0);this['sendBufferedUpdates']();}return _0x569c5c;}[_0x1b49('0x40')](_0x1bf730){const _0x229fdd=this[_0x1b49('0xd4')][_0x1b49('0x86')](_0x1bf730);return this[_0x1b49('0xd1')]&&_0x229fdd['on'](_0x1b49('0x75'),(_0x49ca5d,_0x5c42f0,_0x5c80a8)=>{_0x5c80a8||(this['_bufferUpdate'](_0x5c42f0['id'],_0x5c42f0,!0x0),this[_0x1b49('0x7c')]());}),this[_0x1b49('0xd4')][_0x1b49('0x9e')](_0x229fdd,this[_0x1b49('0x62')](_0x229fdd)),_0x229fdd;}async[_0x1b49('0x81')](_0xfe5265){await this[_0x1b49('0x1d')](_0xfe5265);const _0x13667d={};for(const _0x29d552 in _0xfe5265[_0x1b49('0xfc')]){if(_0xfe5265['diffData'][_0x29d552][_0x1b49('0xf1')]&&!_0xfe5265[_0x1b49('0xfc')][_0x29d552][_0x1b49('0xf1')]['isAttached'])continue;const _0x141bcd=this[_0x1b49('0x37')](JSON['parse'](_0xfe5265[_0x1b49('0xfc')][_0x29d552][_0x1b49('0xd5')])),_0x4a1abd=this[_0x1b49('0x5c')]['editing'][_0x1b49('0x103')][_0x1b49('0x76')],_0x3c4ce1=new _0x1b6ec3(_0x4a1abd,_0x141bcd[_0x1b49('0x92')](_0x48c7e6=>J(_0x48c7e6,this[_0x1b49('0x5c')])));this[_0x1b49('0x5c')][_0x1b49('0x5d')][_0x1b49('0x8b')][_0x1b49('0x101')](_0x1b49('0xd8')),_0x13667d[_0x29d552]=this[_0x1b49('0x5c')]['data'][_0x1b49('0x8b')][_0x1b49('0x50')](_0x3c4ce1),this[_0x1b49('0x5c')][_0x1b49('0x5d')][_0x1b49('0x8b')][_0x1b49('0x101')](_0x1b49('0xf6'));}return _0x13667d;}async[_0x1b49('0xfe')](_0x2e348a){await this[_0x1b49('0x1d')](_0x2e348a);const _0x1b43f5={};for(const _0x33ae1c in _0x2e348a['diffData'])_0x2e348a[_0x1b49('0xfc')][_0x33ae1c][_0x1b49('0xf1')]&&!_0x2e348a[_0x1b49('0xfc')][_0x33ae1c]['attachChange'][_0x1b49('0xca')]||(_0x1b43f5[_0x33ae1c]=_0x2e348a[_0x1b49('0xfc')][_0x33ae1c]['attributesAfter']||{});return _0x1b43f5;}[_0x1b49('0x7c')](){if(0x0===this[_0x1b49('0xc6')][_0x1b49('0x105')])return;if(this[_0x1b49('0xee')])return;let _0x1eb7e0=Array[_0x1b49('0x61')](this[_0x1b49('0xc6')]['values']());this[_0x1b49('0xc6')]['clear']();for(let _0x45849d=0x0;_0x45849d<_0x1eb7e0[_0x1b49('0xc9')];_0x45849d++){const _0x1cd87b=_0x1eb7e0[_0x45849d];let _0x3a4cd9=!0x1;for(const _0x387c05 of Object[_0x1b49('0xef')](_0x1cd87b))void 0x0===_0x1cd87b[_0x387c05]?delete _0x1cd87b[_0x387c05]:'id'!==_0x387c05&&(_0x3a4cd9=!0x0);_0x3a4cd9||(_0x1eb7e0[_0x45849d]=null);}if(_0x1eb7e0=_0x1eb7e0[_0x1b49('0x106')](_0x3d1d9b=>null!==_0x3d1d9b),!_0x1eb7e0[_0x1b49('0xc9')])return;for(let _0x348667=0x0;_0x348667<_0x1eb7e0[_0x1b49('0xc9')];_0x348667++){const _0x1fc836=_0x1eb7e0[_0x348667];void 0x0!==_0x1fc836['fromVersion']&&void 0x0===_0x1fc836[_0x1b49('0x78')]&&(_0x1fc836['toVersion']=this[_0x1b49('0xd4')][_0x1b49('0xad')](_0x1fc836['id'])[_0x1b49('0x78')]),void 0x0!==_0x1fc836['toVersion']&&void 0x0===_0x1fc836[_0x1b49('0x11')]&&(_0x1fc836[_0x1b49('0x11')]=this[_0x1b49('0xd4')][_0x1b49('0xad')](_0x1fc836['id'])[_0x1b49('0x11')]);}const _0x5566d9=this[_0x1b49('0x5c')][_0x1b49('0xcb')]['get']('collaboration.channelId');this[_0x1b49('0xee')]=!0x0,this[_0x1b49('0x8')](),this[_0x1b49('0xd1')]['updateRevisions'](_0x1eb7e0,_0x5566d9)[_0x1b49('0x100')](()=>{this[_0x1b49('0xee')]=!0x1;})[_0x1b49('0x82')](_0x1a9629=>{if(_0x1a9629)for(const _0x1f32b4 of _0x1a9629)this[_0x1b49('0xb9')]({'id':_0x1f32b4['id'],'createdAt':_0x1f32b4[_0x1b49('0x4')]});this['_removePendingAction'](),this[_0x1b49('0x7c')]();});}[_0x1b49('0x2f')](_0x11e2aa,_0xeaa805){let _0x1ad29b=this['editor'][_0x1b49('0xcb')][_0x1b49('0x7')](_0x1b49('0xc4')),_0x554df5=this[_0x1b49('0x5c')][_0x1b49('0xcb')][_0x1b49('0x7')](_0x1b49('0xc1'));if(void 0x0===_0x1ad29b){_0x1ad29b={};for(const _0x40a410 of this[_0x1b49('0x5c')][_0x1b49('0x42')][_0x1b49('0x76')][_0x1b49('0x84')]())_0x1ad29b[_0x40a410]='';}if(_0x1b49('0xf9')==typeof _0x1ad29b&&(_0x1ad29b={'main':_0x1ad29b}),void 0x0===_0x554df5){_0x554df5={};for(const _0x4d7d0e of this['editor'][_0x1b49('0x42')]['document'][_0x1b49('0x84')]())_0x554df5[_0x4d7d0e]={};}let _0x4afe3a=!0x1;const _0x4c46f8=Object[_0x1b49('0xef')](_0x1ad29b),_0x360347=Object[_0x1b49('0xef')](_0x11e2aa);for(const _0x465ce1 of _0x4c46f8){if(_0x1ad29b[_0x465ce1]!==_0x11e2aa[_0x465ce1]&&''!==_0x1ad29b[_0x465ce1][_0x1b49('0xba')]()){_0x4afe3a=!0x0;break;}if(!_0x41d495(_0x554df5[_0x465ce1],_0xeaa805[_0x465ce1])&&Object[_0x1b49('0xef')](_0x554df5[_0x465ce1])[_0x1b49('0xc9')]>0x0){_0x4afe3a=!0x0;break;}}_0x4afe3a||(_0x4afe3a=_0x360347[_0x1b49('0x64')](_0x5d3c76=>!this[_0x1b49('0x5c')][_0x1b49('0x42')][_0x1b49('0x76')][_0x1b49('0xff')](_0x5d3c76))),_0x4afe3a&&_0x486473(_0x1b49('0xea'),{'editorData':_0x1ad29b,'editorRootsAttributes':_0x554df5,'revisionData':_0x11e2aa,'revisionRootsAttributes':_0xeaa805}),this[_0x1b49('0x5c')][_0x1b49('0xcb')][_0x1b49('0xc5')]('initialData',_0x11e2aa),this[_0x1b49('0x5c')][_0x1b49('0xcb')][_0x1b49('0xc5')]('rootsAttributes',_0xeaa805);}[_0x1b49('0x8')](){if(!this[_0x1b49('0xa9')]){const _0x327c87=this[_0x1b49('0x5c')][_0x1b49('0xa5')][_0x1b49('0x7')](_0x1b49('0x27'));this[_0x1b49('0xa9')]=_0x327c87[_0x1b49('0x9b')](_0x56dae8(this['editor'][_0x1b49('0x29')],_0x1b49('0x69')));}}[_0x1b49('0x56')](){this[_0x1b49('0xa9')]&&(this[_0x1b49('0x5c')][_0x1b49('0xa5')][_0x1b49('0x7')](_0x1b49('0x27'))[_0x1b49('0x18')](this['_pendingAction']),this['_pendingAction']=null);}[_0x1b49('0x62')](_0x32d651){const _0x3912df=this[_0x1b49('0xd4')][_0x1b49('0x20')]();_0x3912df['reverse']();let _0x4d57c2=0x0;for(;_0x4d57c2<_0x3912df[_0x1b49('0xc9')];){const _0x2691f1=_0x3912df[_0x4d57c2];if(_0x2691f1===this[_0x1b49('0x9a')]){_0x4d57c2++;continue;}if(_0x2691f1['id']===this['_initialRevisionId'])break;const _0x1dadd5=_0x32d651[_0x1b49('0x78')]-_0x2691f1['toVersion']||_0x32d651[_0x1b49('0x11')]-_0x2691f1[_0x1b49('0x11')];if(_0x1dadd5>0x0)break;if(_0x1dadd5<0x0)_0x4d57c2++;else{if(!_0x32d651['creator']&&_0x2691f1[_0x1b49('0xfa')])break;if(_0x2691f1[_0x1b49('0xfa')]||!_0x32d651['creator']){if(_0x32d651[_0x1b49('0x4')]>_0x2691f1['createdAt'])break;_0x4d57c2++;}else _0x4d57c2++;}}return _0x4d57c2;}[_0x1b49('0xb9')](_0x486252){const _0x299fff=this[_0x1b49('0xd4')][_0x1b49('0xad')](_0x486252['id']);if(_0x486252[_0x1b49('0x4')]&&(_0x486252[_0x1b49('0x4')]=new Date(_0x486252[_0x1b49('0x4')])),_0x486252[_0x1b49('0xbe')]){const _0x2e6d17=this['editor']['plugins']['get'](_0x1b49('0x2'));_0x486252[_0x1b49('0x2a')]=_0x486252['authorsIds'][_0x1b49('0x92')](_0x784764=>_0x2e6d17[_0x1b49('0x2b')](_0x784764));}_0x299fff['_update'](_0x486252,!0x0);}[_0x1b49('0x71')]({revision:_0x1eadda=null,from:_0x4066d3=null,to:_0x885c6c=null}){_0x4066d3=null!==_0x4066d3?_0x4066d3:_0x1eadda['fromVersion'],_0x885c6c=null!==_0x885c6c?_0x885c6c:_0x1eadda[_0x1b49('0x78')];const _0x5580be=this[_0x1b49('0x12')][_0x1b49('0x3f')](_0x4066d3,_0x885c6c),_0x51ed2b={'diffData':_0x5580be['diffData'],'authorsIds':_0x5580be[_0x1b49('0xbe')],'fromVersion':_0x4066d3,'toVersion':_0x885c6c};if(!_0x1eadda||_0x885c6c!==_0x1eadda[_0x1b49('0x78')]){const _0x1d3fa5=_0x885c6c-0x1,_0x441d84=this[_0x1b49('0x6e')]['history'][_0x1b49('0x36')](_0x1d3fa5);_0x51ed2b[_0x1b49('0x4')]=_0x441d84&&_0x441d84[_0x1b49('0x4')]||new Date();}if(this[_0x1b49('0x7f')]&&_0x4066d3===this['_loadedStateData'][_0x1b49('0x11')])for(const _0x34b0e7 of this['_loadedStateData'][_0x1b49('0x2a')])_0x51ed2b[_0x1b49('0xbe')]['includes'](_0x34b0e7['id'])||_0x51ed2b['authorsIds'][_0x1b49('0xf0')](_0x34b0e7['id']);return _0x51ed2b;}[_0x1b49('0x1d')](_0x3a793a){if(!_0x3a793a||_0x3a793a[_0x1b49('0xfc')])return Promise[_0x1b49('0x3e')]();{const _0x16d54b=this['editor']['config'][_0x1b49('0x7')](_0x1b49('0xdc'));return this[_0x1b49('0xd1')][_0x1b49('0xad')]({'channelId':_0x16d54b,'revisionId':_0x3a793a['id']})[_0x1b49('0x82')](_0x3ed036=>{_0x3a793a[_0x1b49('0xfc')]=_0x3ed036[_0x1b49('0xfc')];});}}[_0x1b49('0xd6')](_0x42b206,_0x398a09,_0x2e1ec3){if(this['_bufferedUpdates'][_0x1b49('0xd')](_0x42b206)){const _0x4e9699=this[_0x1b49('0xc6')][_0x1b49('0x7')](_0x42b206);_0x398a09=_0x2e1ec3?{..._0x4e9699,..._0x398a09}:{..._0x398a09,..._0x4e9699};}this[_0x1b49('0xc6')]['set'](_0x42b206,_0x398a09);}[_0x1b49('0xf5')](_0x127f25){const _0x3d569a=this[_0x1b49('0xd4')]['getRevisions']();_0x3d569a['reverse'](),_0x3d569a[_0x1b49('0xe4')]();const _0x5c4fa8=_0x3d569a['find'](_0xa8fcf6=>_0xa8fcf6[_0x1b49('0x78')]<=_0x127f25)[_0x1b49('0x78')];return _0x5c4fa8<this[_0x1b49('0x5b')]?this[_0x1b49('0x5b')]:_0x5c4fa8;}[_0x1b49('0xbc')](_0x215538){const _0xd1f110=this[_0x1b49('0xd4')][_0x1b49('0xad')](this[_0x1b49('0xd4')][_0x1b49('0xc9')]-0x1);if(_0xd1f110)this[_0x1b49('0x44')]=_0xd1f110['id'];else{const _0x591e80=!this[_0x1b49('0x5c')]['model'][_0x1b49('0x76')][_0x1b49('0xc7')][_0x1b49('0x1e')](_0x3e27d8=>this[_0x1b49('0x5c')][_0x1b49('0x42')][_0x1b49('0xb')](_0x3e27d8)),_0x5ee601=this[_0x1b49('0x5c')]['plugins'][_0x1b49('0x7')](_0x1b49('0x2'))['me']['id'],_0x55132d=_0x56dae8(this['editor']['locale'],_0x591e80?'Empty\x20document':'Initial\x20revision');this[_0x1b49('0xf7')]({'from':_0x215538,'to':_0x215538,'id':this[_0x1b49('0x44')],'name':_0x55132d,'creatorId':_0x5ee601});}}['_createCurrentRevision'](_0x1bc208){const _0x2d438f=this[_0x1b49('0x6e')][_0x1b49('0xe3')]();this[_0x1b49('0x9a')]=this[_0x1b49('0xd4')]['getRevision'](_0x2d438f),this['currentRevision']||(this[_0x1b49('0x9a')]=this['_makeRevision']({'from':_0x1bc208,'to':_0x1bc208,'id':_0x2d438f,'name':'','creatorId':null}));}[_0x1b49('0xf7')]({name:_0x7028ef,from:_0x496103,to:_0x1603c4,creatorId:_0x4f69a7,id:_0x3f793f}){const _0x1cc02f=this[_0x1b49('0x71')]({'from':_0x496103,'to':_0x1603c4});_0x1cc02f[_0x1b49('0xc2')]=_0x7028ef,_0x1cc02f[_0x1b49('0xb7')]=_0x4f69a7,_0x1cc02f['id']=_0x3f793f;const _0x2eb1d2=this[_0x1b49('0x40')](_0x1cc02f);return this[_0x1b49('0xd1')]&&this[_0x1b49('0xd6')](_0x1cc02f['id'],_0x1cc02f,!0x0),_0x2eb1d2;}[_0x1b49('0xcd')](){this['editor'][_0x1b49('0x4b')]['for'](_0x1b49('0x4c'))['markerToData']({'model':_0x1b49('0xd2')});}['_removeRevisionMarkers'](_0x8c03be){return(_0x8c03be=_0x8c03be[_0x1b49('0x106')](_0x428172=>!_0x428172[_0x1b49('0xc2')]||_0x1b49('0x34')!==_0x428172[_0x1b49('0xc2')]&&_0x1b49('0x5e')!==_0x428172[_0x1b49('0xc2')]))[_0x1b49('0xc3')](_0x285eb8=>{_0x1b49('0xf9')!=typeof _0x285eb8&&(_0x285eb8[_0x1b49('0xda')]=this[_0x1b49('0x37')](_0x285eb8[_0x1b49('0xda')]),_0x285eb8[_0x1b49('0xd9')]=_0x285eb8[_0x1b49('0xd9')][_0x1b49('0x106')](_0x196860=>!_0x196860[0x0][_0x1b49('0x109')](_0x1b49('0x6b'))));}),_0x8c03be;}}function J(_0x438dd2,_0x1f2a9f){const _0x2dac47=_0x1f2a9f[_0x1b49('0x4a')]['view'][_0x1b49('0x76')];if(_0x1b49('0xf9')==typeof _0x438dd2)return new _0x50d6bf(_0x2dac47,_0x438dd2);{const _0x3146a3=_0x438dd2[_0x1b49('0xda')]['map'](_0xb0fda4=>J(_0xb0fda4,_0x1f2a9f));return new(B[_0x438dd2[(_0x1b49('0x48'))]]||_0xbff4c3)(_0x2dac47,_0x438dd2[_0x1b49('0xc2')],_0x438dd2[_0x1b49('0xd9')],_0x3146a3);}}class H{constructor(_0x3b96d8){this[_0x1b49('0x5c')]=_0x3b96d8,this[_0x1b49('0x68')]=new Map(),this['_lastFrom']=-0x1,this[_0x1b49('0xc')]=-0x1,this['_markers']=new Map(),this[_0x1b49('0xa6')]=new Map(),this[_0x1b49('0x53')]=new Map(),this[_0x1b49('0x16')]=new Map(),this[_0x1b49('0xb4')]=new Map(),this['_idsRoots']=new Map(),this[_0x1b49('0x46')]=new Map(),this[_0x1b49('0x23')]=new Map(),this[_0x1b49('0x7a')]=new Map(),this['_touchedRoots']=new Map(),this[_0x1b49('0xbf')]=0x1;}['init'](_0x21cd98){this[_0x1b49('0x3b')]=_0x21cd98;const _0x40a0fe=new Map(),_0x589e6c=new Map(),_0x45f0eb=this['editor']['model']['document'][_0x1b49('0xc7')][_0x1b49('0x92')](_0x122208=>_0x122208[_0x1b49('0x8a')]);for(const _0x9531a6 of _0x45f0eb){const _0x2afc1a=this[_0x1b49('0x5c')]['model'][_0x1b49('0x76')][_0x1b49('0xff')](_0x9531a6),_0x4f5d5a=q(_0x2afc1a);_0x40a0fe[_0x1b49('0xc5')](_0x9531a6,_0x4f5d5a),_0x589e6c[_0x1b49('0xc5')](_0x9531a6,Object[_0x1b49('0xf8')](_0x2afc1a[_0x1b49('0x15')]()));}const _0x2696bf=Array[_0x1b49('0x61')](this[_0x1b49('0x5c')][_0x1b49('0x42')][_0x1b49('0x65')])['map'](_0x24f4d2=>[_0x24f4d2['name'],_0x24f4d2[_0x1b49('0x58')]()]),_0xc6cdd5=this[_0x1b49('0x3b')][_0x1b49('0x97')];this['_saveMetaData'](_0xc6cdd5,_0x40a0fe,_0x2696bf,_0x589e6c),this[_0x1b49('0xf')]=this[_0x1b49('0xbf')];const _0x23026e=new Map(),_0x154758=new Map();for(const _0x282406 of _0x45f0eb){const _0x24ca40=G(_0x282406);_0x23026e[_0x1b49('0xc5')](_0x282406,_0x24ca40),_0x154758[_0x1b49('0xc5')](_0x282406,{});}this['_saveMetaData'](Number[_0x1b49('0x89')],_0x23026e,[],_0x154758);}[_0x1b49('0x3f')](_0x328198,_0x307aa0){if(this[_0x1b49('0x2e')]===_0x328198&&this[_0x1b49('0xc')]<=_0x307aa0)this[_0x1b49('0x68')][_0x1b49('0x105')]>0x1&&this[_0x1b49('0x70')](this[_0x1b49('0xc')]),this['_applyOperations'](this['_lastTo'],_0x307aa0,!0x0);else{if(!this[_0x1b49('0x68')][_0x1b49('0xd')](_0x328198)){const _0x430830=this['_getPreviousFrom'](_0x328198);this[_0x1b49('0x3d')](_0x430830,_0x328198,!0x1);}this[_0x1b49('0x3d')](_0x328198,_0x307aa0,!0x0);}return this[_0x1b49('0x2e')]=_0x328198,this[_0x1b49('0xc')]=_0x307aa0,this[_0x1b49('0xf4')]();}[_0x1b49('0x57')](_0x11d58e){this['_reset'](),this[_0x1b49('0x2e')]=_0x11d58e[_0x1b49('0x11')],this[_0x1b49('0xc')]=_0x11d58e[_0x1b49('0x78')];for(const _0x4a40f8 in _0x11d58e['diffData']){const _0x12738b=_0x11d58e[_0x1b49('0xfc')][_0x4a40f8][_0x1b49('0xf1')],_0xfdbd48=_0x4b3567(_0x11d58e['diffData'][_0x4a40f8][_0x1b49('0xa1')])||{},_0x569feb=this['_makeModelFromViewString'](_0x11d58e[_0x1b49('0xfc')][_0x4a40f8][_0x1b49('0x19')]);_0x569feb[_0x1b49('0x8a')]=_0x4a40f8,_0x569feb[_0x1b49('0x7e')]=!_0x12738b||!_0x12738b[_0x1b49('0xca')],_0x569feb[_0x1b49('0xca')]=()=>_0x569feb['_isAttached'],this['_baseRoots']['set'](_0x4a40f8,_0x569feb),this[_0x1b49('0xb4')][_0x1b49('0xc5')](_0x4a40f8,_0xfdbd48),_0x12738b&&this['_touchedRoots'][_0x1b49('0xc5')](_0x4a40f8,_0x12738b);const _0x412860=this['_makeIdsRoot'](_0x569feb);this[_0x1b49('0x46')][_0x1b49('0xc5')](_0x4a40f8,_0x412860);for(const [_0x19a353,_0x58abbc]of _0x569feb[_0x1b49('0x65')]){if(!_0x19a353[_0x1b49('0x109')](_0x1b49('0xfd')))continue;const _0x2f2061=_0x19a353[_0x1b49('0x6f')](':')[0x2];for(const _0x3582be of _0x58abbc[_0x1b49('0x9f')]({'singleCharacters':!0x0})){const _0x9d6e92=this['_getVidAttributeName'](_0x3582be),_0x36920b=_0x1b49('0x95')==_0x3582be[_0x1b49('0x48')]?_0x3582be[_0x1b49('0xb3')]['path'][_0x1b49('0x6c')](0x0,-0x1):_0x3582be[_0x1b49('0xb3')][_0x1b49('0x1a')],_0x419ca4=_0x412860['getNodeByPath'](_0x36920b)[_0x1b49('0x51')](_0x9d6e92);this[_0x1b49('0x23')][_0x1b49('0xc5')](_0x419ca4,{'userId':_0x2f2061});}}}this[_0x1b49('0xf')]=this['_revisionId'];const _0x4823c8=[...Array(this['_revisionId'])[_0x1b49('0xef')]()]['slice'](0x1)[_0x1b49('0x106')](_0x1377cc=>!this[_0x1b49('0x23')][_0x1b49('0xd')](_0x1377cc));let _0x5767fa=0x0;const _0x3db80a=new Map();for(const _0x5c5553 in _0x11d58e[_0x1b49('0xfc')]){const _0x41fe06=_0x11d58e[_0x1b49('0xfc')][_0x5c5553][_0x1b49('0xf1')],_0x1b9a9d=_0x4b3567(_0x11d58e[_0x1b49('0xfc')][_0x5c5553][_0x1b49('0x8e')])||{},_0x5d1b34=this[_0x1b49('0x1')](_0x11d58e['diffData'][_0x5c5553]['insertions']);_0x5d1b34['rootName']=_0x5c5553,_0x5d1b34[_0x1b49('0x7e')]=!_0x41fe06||_0x41fe06['isAttached'],_0x5d1b34[_0x1b49('0xca')]=()=>_0x5d1b34[_0x1b49('0x7e')],this[_0x1b49('0xa6')]['set'](_0x5c5553,_0x5d1b34),this[_0x1b49('0x53')]['set'](_0x5c5553,_0x1b9a9d);const _0x56a628=this[_0x1b49('0x79')](_0x5d1b34,Number[_0x1b49('0x89')]);this[_0x1b49('0x35')][_0x1b49('0xc5')](_0x5c5553,_0x56a628),_0x3db80a[_0x1b49('0xc5')](_0x5c5553,_0x5d1b34[_0x1b49('0xca')]()?_0x1b9a9d:{});for(const [_0x4d19dd,_0xbbe8cc]of _0x5d1b34[_0x1b49('0x65')]){if(!_0x4d19dd['startsWith']('revision:'))continue;const _0xfb3e2d=_0x4d19dd['split'](':')[0x2];for(const _0x3c0c5a of _0xbbe8cc['getWalker']({'singleCharacters':!0x0})){const _0x16af4a=this[_0x1b49('0xaf')](_0x3c0c5a),_0x3891bd=this[_0x1b49('0xbf')]++,_0x2bbb18='elementEnd'==_0x3c0c5a['type']?_0x3c0c5a[_0x1b49('0xb3')]['path'][_0x1b49('0x6c')](0x0,-0x1):_0x3c0c5a[_0x1b49('0xb3')]['path'];_0x56a628[_0x1b49('0x3a')](_0x2bbb18)[_0x1b49('0x98')](_0x16af4a,_0x3891bd),this[_0x1b49('0x23')][_0x1b49('0xc5')](_0x3891bd,{'userId':_0xfb3e2d});}}for(const _0xb4e4a3 of this[_0x1b49('0x5c')][_0x1b49('0x42')][_0x1b49('0x99')](_0x5d1b34)['getWalker']({'singleCharacters':!0x0})){const _0x3f0944=this['_getVidAttributeName'](_0xb4e4a3),_0x736736=_0x1b49('0x95')==_0xb4e4a3[_0x1b49('0x48')]?_0xb4e4a3['previousPosition'][_0x1b49('0x1a')][_0x1b49('0x6c')](0x0,-0x1):_0xb4e4a3[_0x1b49('0xb3')][_0x1b49('0x1a')],_0x33ab3a=_0x56a628[_0x1b49('0x3a')](_0x736736);_0x33ab3a[_0x1b49('0x51')](_0x3f0944)>0x0||_0x33ab3a[_0x1b49('0x98')](_0x3f0944,_0x4823c8[_0x5767fa++]);}for(const [_0x21794a,_0x5acb67]of _0x5d1b34[_0x1b49('0x65')])_0x21794a[_0x1b49('0x109')](_0x1b49('0xfd'))||this[_0x1b49('0x31')]['set'](_0x21794a,_0x5acb67);}const _0x43a2d1=G(_0x1b49('0xa2'));this[_0x1b49('0x16')][_0x1b49('0xc5')](_0x1b49('0xa2'),_0x43a2d1),this['_baseIdsRoots']['set'](_0x1b49('0xa2'),this['_makeIdsRoot'](_0x43a2d1,0x1));const _0x40af92=G('$graveyard');this[_0x1b49('0xa6')][_0x1b49('0xc5')](_0x1b49('0xa2'),_0x40af92),this[_0x1b49('0x35')]['set'](_0x1b49('0xa2'),this[_0x1b49('0x79')](_0x40af92,0x1));const _0x5ed5e3=Array[_0x1b49('0x61')](this['_diffRoots'])[_0x1b49('0x92')](([_0xa112e0,_0x54add0])=>[_0xa112e0,q(_0x54add0)]);this[_0x1b49('0xe6')](this['_lastTo'],_0x5ed5e3,this[_0x1b49('0x31')],_0x3db80a);}[_0x1b49('0x1')](_0x4df32b){const _0x4b916a=JSON['parse'](_0x4df32b),_0x91076f=this[_0x1b49('0x5c')]['editing'][_0x1b49('0x103')][_0x1b49('0x76')],_0x2c611b=new _0x1b6ec3(_0x91076f,_0x4b916a['map'](_0x1d5e07=>J(_0x1d5e07,this[_0x1b49('0x5c')])));return this[_0x1b49('0x5c')][_0x1b49('0x5d')][_0x1b49('0x77')](_0x2c611b);}['_saveMetaData'](_0x4ff472,_0x1d1200,_0x243956,_0x1ec451){const _0x466219=new Map(_0x1d1200),_0x59d2fb=new Map(_0x4b3567(_0x1ec451)),_0x476e9d=new Map();for(const [_0x39d73e,_0xe65721]of _0x243956)_0x476e9d['set'](_0x39d73e,{'start':_0xe65721[_0x1b49('0x49')][_0x1b49('0xae')](),'end':_0xe65721[_0x1b49('0x8f')]['clone'](),'rootName':_0xe65721[_0x1b49('0x2d')][_0x1b49('0x8a')]});this[_0x1b49('0x68')]['set'](_0x4ff472,{'roots':_0x466219,'markers':_0x476e9d,'rootsAttributes':_0x59d2fb});}[_0x1b49('0x70')](_0x4104da){this['_savedMetaData']['delete'](_0x4104da);}['reInit'](){this[_0x1b49('0xe7')](),this[_0x1b49('0x2e')]=-0x1,this[_0x1b49('0xc')]=-0x1,this[_0x1b49('0x68')][_0x1b49('0x13')](),this[_0x1b49('0x3')](this[_0x1b49('0x3b')]);}[_0x1b49('0xe7')](){this[_0x1b49('0x23')][_0x1b49('0x13')](),this[_0x1b49('0x7a')][_0x1b49('0x13')](),this[_0x1b49('0xfb')][_0x1b49('0x13')](),this[_0x1b49('0xa6')][_0x1b49('0x13')](),this['_diffRootsAttributes'][_0x1b49('0x13')](),this[_0x1b49('0x16')][_0x1b49('0x13')](),this['_baseRootsAttributes'][_0x1b49('0x13')](),this[_0x1b49('0x35')][_0x1b49('0x13')](),this[_0x1b49('0x46')][_0x1b49('0x13')](),this['_markers'][_0x1b49('0x13')](),this[_0x1b49('0xbf')]=0x1,this[_0x1b49('0xf')]=this[_0x1b49('0xbf')];}[_0x1b49('0x79')](_0x5c33db,_0xc9b9b6=null){let _0x59ff99=null;_0x5c33db['is']('documentFragment')||(_0x59ff99=new _0x46b245(_0x5c33db[_0x1b49('0xc2')],{'vid_start':null===_0xc9b9b6?this[_0x1b49('0xbf')]++:_0xc9b9b6++}));const _0x419b0f=[];for(const _0x52ee16 of _0x5c33db[_0x1b49('0x1c')]())if(_0x52ee16['is'](_0x1b49('0xb2'))){_0x419b0f['push'](this['_makeIdsRoot'](_0x52ee16,_0xc9b9b6));const _0x46f8df=_0x419b0f[_0x419b0f[_0x1b49('0xc9')]-0x1];null!==_0xc9b9b6&&(_0xc9b9b6=_0x46f8df['is']('element',_0x1b49('0x22'))?_0x46f8df[_0x1b49('0x51')]('vid')+0x1:_0x46f8df['getAttribute']('vid_end')+0x1);}else for(let _0xe2d355=0x0;_0xe2d355<_0x52ee16[_0x1b49('0x54')];_0xe2d355++)_0x419b0f[_0x1b49('0xf0')](new _0x46b245(_0x1b49('0x22'),{'vid':null===_0xc9b9b6?this[_0x1b49('0xbf')]++:_0xc9b9b6++}));if(_0x5c33db['is'](_0x1b49('0x25'))){const _0x14fe75=G(_0x5c33db[_0x1b49('0x8a')]);return _0x14fe75[_0x1b49('0xa0')](0x0,_0x419b0f),_0x14fe75;}return _0x59ff99['_setAttribute'](_0x1b49('0x107'),null===_0xc9b9b6?this[_0x1b49('0xbf')]++:_0xc9b9b6++),_0x59ff99[_0x1b49('0xa0')](0x0,_0x419b0f),_0x59ff99;}[_0x1b49('0x3d')](_0x45aa47,_0x4fbd5f,_0x798305){this[_0x1b49('0xe7')]();const {roots:_0x3496e4,markers:_0x3a609f,rootsAttributes:_0x152072}=this[_0x1b49('0x68')]['get'](_0x45aa47);this[_0x1b49('0x16')]=new Map(_0x3496e4),this[_0x1b49('0xb4')]=new Map(_0x4b3567(_0x152072));for(const [_0x1250d7,_0x485f0a]of this['_baseRoots'])if('$graveyard'!==_0x1250d7&&(this['_diffRoots']['set'](_0x1250d7,q(_0x485f0a)),this['_diffRootsAttributes']=new Map(_0x4b3567(_0x152072)),_0x798305)){const _0x545e13=this[_0x1b49('0xbf')];this[_0x1b49('0x35')]['set'](_0x1250d7,this['_makeIdsRoot'](_0x485f0a)),this['_baseIdsRoots'][_0x1b49('0xc5')](_0x1250d7,this[_0x1b49('0x79')](_0x485f0a,_0x545e13));}this[_0x1b49('0xf')]=this[_0x1b49('0xbf')],this['_diffRoots'][_0x1b49('0xc5')](_0x1b49('0xa2'),q(this[_0x1b49('0x16')][_0x1b49('0x7')]('$graveyard'))),_0x798305&&this[_0x1b49('0x35')][_0x1b49('0xc5')](_0x1b49('0xa2'),this[_0x1b49('0x79')](this[_0x1b49('0x16')][_0x1b49('0x7')](_0x1b49('0xa2'))));for(const [_0x30899e,_0x3c608c]of _0x3a609f){const _0x88124c=this[_0x1b49('0x16')]['get'](_0x3c608c[_0x1b49('0x8a')]),_0x382225=this[_0x1b49('0xa6')]['get'](_0x3c608c['rootName']),_0x5e930a=new _0x1948b6(this[_0x1b49('0x67')](_0x3c608c[_0x1b49('0x49')],_0x88124c),this[_0x1b49('0x67')](_0x3c608c[_0x1b49('0x8f')],_0x88124c)),_0x5d7ae3=this['_fixRange'](_0x5e930a,_0x382225);_0x88124c[_0x1b49('0x65')][_0x1b49('0xc5')](_0x30899e,_0x5e930a),this[_0x1b49('0x31')][_0x1b49('0xc5')](_0x30899e,_0x5d7ae3);}this[_0x1b49('0x32')](_0x45aa47,_0x4fbd5f,_0x798305);}[_0x1b49('0x32')](_0x157654,_0x35a3aa,_0x189dc7){for(const _0x3cb262 of this[_0x1b49('0x3b')][_0x1b49('0xe8')](_0x157654,_0x35a3aa))this[_0x1b49('0x63')](_0x3cb262,_0x189dc7);for(const _0x5698df of this[_0x1b49('0xa6')][_0x1b49('0x10')]())_0x5698df[_0x1b49('0x65')]['clear']();for(const [_0xb30bf5,_0x322dda]of this[_0x1b49('0x31')]){this[_0x1b49('0xa6')][_0x1b49('0x7')](_0x322dda[_0x1b49('0x2d')]['rootName'])[_0x1b49('0x65')][_0x1b49('0xc5')](_0xb30bf5,_0x322dda[_0x1b49('0xae')]());}const _0x968f42=new Map(),_0x3d387d=new Map();for(const [_0x206002,_0x49fb7f]of this[_0x1b49('0xa6')])_0x968f42[_0x1b49('0xc5')](_0x206002,q(_0x49fb7f)),_0x3d387d[_0x1b49('0xc5')](_0x206002,this['_diffRootsAttributes'][_0x1b49('0x7')](_0x206002));this['_saveMetaData'](_0x35a3aa,_0x968f42,this[_0x1b49('0x31')],_0x3d387d);}[_0x1b49('0x6a')](_0x43e850){const _0x1f1c00=Array[_0x1b49('0x61')](this[_0x1b49('0x68')][_0x1b49('0xef')]());_0x1f1c00['sort']((_0x115a6a,_0x4730de)=>_0x115a6a-_0x4730de),_0x1f1c00[_0x1b49('0xe5')]();for(const _0x369940 of _0x1f1c00)if(_0x369940<_0x43e850)return _0x369940;return Number[_0x1b49('0x89')];}[_0x1b49('0x43')](_0x14db92,_0xbafe85){const _0x5e2fc2=Array[_0x1b49('0x61')](_0xbafe85[_0x1b49('0x65')])[_0x1b49('0x92')](([_0x51d970,_0x58e627])=>[_0x51d970,this[_0x1b49('0xd3')](_0x58e627,_0x14db92)]);_0x14db92['markers']=new Map(_0x5e2fc2);}[_0x1b49('0xc8')](_0x52ba33){for(const _0x1bd113 of this[_0x1b49('0x31')]['values']()){const _0x2b6b7b=_0x1bd113['getTransformedByOperation'](_0x52ba33),_0x347ab3=_0x1948b6[_0x1b49('0xa8')](_0x2b6b7b);_0x1bd113['start']=_0x347ab3[_0x1b49('0x49')],_0x1bd113[_0x1b49('0x8f')]=_0x347ab3[_0x1b49('0x8f')];}}[_0x1b49('0x63')](_0x30f4b4,_0x53633b){if(_0x1b49('0x9')==_0x30f4b4[_0x1b49('0x48')]||_0x1b49('0x8d')==_0x30f4b4['type'])return void this['_handleRootOperation'](_0x30f4b4,_0x53633b);if(_0x1b49('0x96')==_0x30f4b4[_0x1b49('0x48')]){const _0x98cbe1=_0x30f4b4['position']['root']['rootName'];this['_diffRoots'][_0x1b49('0xd')](_0x98cbe1)||(this['_diffRoots'][_0x1b49('0xc5')](_0x98cbe1,G(_0x98cbe1,!0x0)),this['_diffRootsAttributes'][_0x1b49('0xc5')](_0x98cbe1,{}),_0x53633b&&this['_idsRoots'][_0x1b49('0xc5')](_0x98cbe1,G(_0x98cbe1,!0x0)));}else{if(_0x1b49('0xec')==_0x30f4b4['type']||_0x1b49('0x74')==_0x30f4b4['type']||_0x1b49('0xa3')==_0x30f4b4[_0x1b49('0x48')])return void this[_0x1b49('0x72')](_0x30f4b4);}const _0x40e9e8=this['_cloneOperation'](_0x30f4b4,this['_diffRoots']);if(_0x1b49('0x4d')!==_0x30f4b4[_0x1b49('0x48')]&&(_0x40e9e8['_execute'](),this[_0x1b49('0xc8')](_0x40e9e8)),_0x53633b)switch(_0x40e9e8[_0x1b49('0x48')]){case'insert':this[_0x1b49('0x73')](_0x30f4b4);break;case _0x1b49('0x33'):case _0x1b49('0x18'):case'reinsert':this[_0x1b49('0x9d')](_0x30f4b4);break;case _0x1b49('0xbb'):this[_0x1b49('0x88')](_0x30f4b4);break;case _0x1b49('0x6f'):this['_handleSplitOperation'](_0x30f4b4);break;case _0x1b49('0x4d'):this[_0x1b49('0x5')](_0x30f4b4);}}[_0x1b49('0x1b')](_0x49f3cb,_0x25c5d6){const _0x448036=_0x49f3cb['clone']();return _0x448036[_0x1b49('0xd7')]=_0x49f3cb['_authorId'],this[_0x1b49('0xdd')](_0x448036,_0x25c5d6),_0x448036;}['_getBaseVids'](_0x3ce812){return _0x3ce812[_0x1b49('0x92')](_0xc64e7d=>{const _0x2fed66=this[_0x1b49('0xaf')](_0xc64e7d);return Number(_0xc64e7d[_0x1b49('0xa7')]['getAttribute'](_0x2fed66));});}[_0x1b49('0x93')](_0x4cc702,_0x4636f7){if(_0x4cc702['is']('element',_0x1b49('0x22')))_0x4636f7[_0x1b49('0xf0')]({'item':_0x4cc702,'type':_0x1b49('0xe1')});else{_0x4cc702['is']('element')&&_0x4636f7[_0x1b49('0xf0')]({'item':_0x4cc702,'type':'elementStart'});for(const _0x52a8de of _0x4cc702[_0x1b49('0x1c')]())this['_generateTape'](_0x52a8de,_0x4636f7);_0x4cc702['is'](_0x1b49('0xb2'))&&_0x4636f7[_0x1b49('0xf0')]({'item':_0x4cc702,'type':_0x1b49('0x95')});}return _0x4636f7;}['_getState'](){const _0x402a79=new Map(this[_0x1b49('0x23')]),_0x33a277=new Map(_0x402a79),_0x47188c=new Map(),_0x23fe53={'insertions':{},'deletions':{}},_0x2b8246={'insertions':{},'deletions':{}},_0x50ad0f=new Map(),_0x451ae2=new Set([...this[_0x1b49('0x16')]['keys'](),...this[_0x1b49('0xa6')][_0x1b49('0xef')]()]);_0x451ae2[_0x1b49('0x60')](_0x1b49('0xa2'));for(const _0x44b246 of _0x451ae2){const _0x3285a0=this[_0x1b49('0xa6')][_0x1b49('0x7')](_0x44b246)||G(_0x44b246,!0x1),_0x5587a7=this[_0x1b49('0x16')][_0x1b49('0x7')](_0x44b246)||G(_0x44b246,!0x1);_0x3285a0['isAttached']()||_0x5587a7['isAttached']()?(_0x23fe53[_0x1b49('0xd5')][_0x44b246]=q(_0x3285a0),_0x23fe53[_0x1b49('0x19')][_0x44b246]=q(_0x5587a7),this[_0x1b49('0x43')](_0x23fe53['deletions'][_0x44b246],_0x5587a7),this[_0x1b49('0x43')](_0x23fe53[_0x1b49('0xd5')][_0x44b246],_0x3285a0),_0x2b8246['insertions'][_0x44b246]=this[_0x1b49('0x93')](this[_0x1b49('0x35')][_0x1b49('0x7')](_0x44b246),[]),_0x2b8246['deletions'][_0x44b246]=this[_0x1b49('0x93')](this[_0x1b49('0x46')][_0x1b49('0x7')](_0x44b246)||G(_0x44b246,!0x1),[])):_0x451ae2['delete'](_0x44b246);}for(const _0x46f9fa of _0x451ae2){const _0x2ed20f=_0x2b8246[_0x1b49('0xd5')][_0x46f9fa];for(const _0x13fc3f of _0x2ed20f){const _0x58be88=this[_0x1b49('0xaf')](_0x13fc3f),_0x4a906d=_0x13fc3f[_0x1b49('0xa7')][_0x1b49('0x51')](_0x58be88);_0x33a277[_0x1b49('0x60')](_0x4a906d),_0x4a906d>=this[_0x1b49('0xf')]&&_0x47188c[_0x1b49('0xc5')](_0x4a906d,_0x402a79[_0x1b49('0x7')](_0x4a906d));}}for(const _0x228cd6 of _0x451ae2){const _0x478c84=_0x2b8246[_0x1b49('0xd5')][_0x228cd6],_0x2d9040=this[_0x1b49('0xe0')](_0x2b8246[_0x1b49('0x19')][_0x228cd6]);let _0x1c232e=0x0;for(const _0x1f2895 of _0x478c84){const _0x189acb=this[_0x1b49('0xaf')](_0x1f2895),_0x3580fa=_0x1f2895[_0x1b49('0xa7')]['getAttribute'](_0x189acb);if(!_0x47188c['has'](_0x3580fa)&&!_0x50ad0f[_0x1b49('0xd')](_0x3580fa)){if(_0x33a277[_0x1b49('0xd')](_0x3580fa))_0x1c232e++;else{if(_0x3580fa!=_0x2d9040[_0x1c232e]){const _0xc7c94=_0x402a79[_0x1b49('0x7')](_0x3580fa)||_0x402a79['get'](_0x2d9040[_0x1c232e]);for(;_0x3580fa!=_0x2d9040[_0x1c232e];)_0x33a277[_0x1b49('0xd')](_0x2d9040[_0x1c232e])||(_0x50ad0f[_0x1b49('0xc5')](_0x2d9040[_0x1c232e],_0xc7c94),_0x402a79[_0x1b49('0xc5')](_0x2d9040[_0x1c232e],_0xc7c94)),_0x1c232e++;}_0x1c232e++;}}}}for(const _0x86060a of _0x451ae2){const _0x2941cf=_0x2b8246[_0x1b49('0xd5')][_0x86060a];for(const _0x44212c of _0x2941cf){const _0x233a04=this[_0x1b49('0xaf')](_0x44212c),_0x350736=_0x44212c[_0x1b49('0xa7')][_0x1b49('0x51')](_0x233a04);if(_0x50ad0f[_0x1b49('0xd')](_0x350736)){const _0x570dcb=_0x50ad0f['get'](_0x350736);_0x33a277[_0x1b49('0xd')](_0x350736)||_0x33a277[_0x1b49('0xc5')](_0x350736,{..._0x570dcb}),_0x47188c[_0x1b49('0xc5')](_0x350736,{..._0x570dcb});}}}for(const _0x5b3a26 of _0x33a277[_0x1b49('0xef')]())_0x5b3a26>=this[_0x1b49('0xf')]&&_0x33a277[_0x1b49('0x60')](_0x5b3a26);const _0x551635=new Map();for(const _0x125bf9 of _0x451ae2){let _0x3dd78e=_0x2b8246['insertions'][_0x125bf9];for(const _0x39d594 of _0x3dd78e)if(_0x39d594['item']['is']('element',_0x1b49('0xce'))){const _0x39bd4d=this[_0x1b49('0xaf')](_0x39d594),_0xab1700=_0x39d594[_0x1b49('0xa7')]['getAttribute'](_0x39bd4d);if(_0x47188c[_0x1b49('0xd')](_0xab1700)){const _0x253a42=_0x39d594['item'][_0x1b49('0x0')][_0x1b49('0x0')][_0x1b49('0x51')](_0x1b49('0xab')),_0x20c3ee=_0x551635[_0x1b49('0x7')](_0x253a42)||new Set();_0x20c3ee[_0x1b49('0x9b')](_0x47188c[_0x1b49('0x7')](_0xab1700)[_0x1b49('0xcc')]),_0x551635['set'](_0x253a42,_0x20c3ee);}}_0x3dd78e=_0x2b8246[_0x1b49('0x19')][_0x125bf9];for(const _0xa09f9f of _0x3dd78e)if(_0xa09f9f[_0x1b49('0xa7')]['is'](_0x1b49('0xb2'),'tableCell')){const _0x5212ea=this[_0x1b49('0xaf')](_0xa09f9f),_0x56eba5=_0xa09f9f['item'][_0x1b49('0x51')](_0x5212ea);if(_0x33a277[_0x1b49('0xd')](_0x56eba5)){const _0xff131d=_0xa09f9f['item'][_0x1b49('0x0')][_0x1b49('0x0')]['getAttribute'](_0x1b49('0xab')),_0x49e6e0=_0x551635['get'](_0xff131d)||new Set();_0x49e6e0[_0x1b49('0x9b')](_0x33a277[_0x1b49('0x7')](_0x56eba5)[_0x1b49('0xcc')]),_0x551635['set'](_0xff131d,_0x49e6e0);}}for(const _0x36d9b1 of _0x551635['keys']())(_0x47188c[_0x1b49('0xd')](_0x36d9b1)||_0x33a277[_0x1b49('0xd')](_0x36d9b1))&&_0x551635[_0x1b49('0x60')](_0x36d9b1);}for(const _0x3e4eb9 of _0x451ae2){const _0x542514=_0x2b8246[_0x1b49('0xd5')][_0x3e4eb9];let _0x52dc26=null,_0xbf6ac7=null;for(const _0x124204 of _0x542514){const _0x4c4c52=this[_0x1b49('0xaf')](_0x124204),_0x51fefb=_0x124204[_0x1b49('0xa7')][_0x1b49('0x51')](_0x4c4c52),_0x1553a9=_0x551635[_0x1b49('0x7')](_0x51fefb);_0x1553a9&&_0x1b49('0x38')==_0x124204[_0x1b49('0x48')]&&(_0x52dc26=Array['from'](_0x1553a9)[0x0],_0xbf6ac7=_0x124204[_0x1b49('0xa7')][_0x1b49('0x51')]('vid_end')),_0x52dc26&&(_0x33a277[_0x1b49('0xc5')](_0x51fefb,{'userId':_0x52dc26}),_0x47188c[_0x1b49('0xc5')](_0x51fefb,{'userId':_0x52dc26})),_0x51fefb==_0xbf6ac7&&(_0x52dc26=null,_0xbf6ac7=null);}}const _0x5d5c09={},_0x278a87=new Set();for(const _0x11be58 of _0x451ae2){const _0x5118e1=_0x23fe53[_0x1b49('0x19')][_0x11be58],_0x57a8c9=_0x23fe53[_0x1b49('0xd5')][_0x11be58];for(const {userId:_0x47306c}of this[_0x1b49('0x7a')][_0x1b49('0x10')]())null!==_0x47306c&&_0x278a87[_0x1b49('0x9b')](_0x47306c);for(const {userId:_0x3e196f}of this['_touchedRoots'][_0x1b49('0x10')]())null!==_0x3e196f&&_0x278a87[_0x1b49('0x9b')](_0x3e196f);this['_markChanges'](_0x57a8c9,_0x2b8246[_0x1b49('0xd5')][_0x11be58],_0x47188c,'insertion',_0x278a87),this[_0x1b49('0x3c')](_0x5118e1,_0x2b8246[_0x1b49('0x19')][_0x11be58],_0x33a277,_0x1b49('0x21'),_0x278a87),_0x5d5c09[_0x11be58]={'insertions':this['_prepareViewToSave'](_0x57a8c9),'deletions':this[_0x1b49('0x102')](_0x5118e1),'attachChange':this['_touchedRoots'][_0x1b49('0x7')](_0x11be58)||null,'attributesBefore':_0x4b3567(this[_0x1b49('0xb4')]['get'](_0x11be58))||{},'attributesAfter':_0x4b3567(this['_diffRootsAttributes']['get'](_0x11be58))};}return{'diffData':_0x5d5c09,'authorsIds':Array['from'](_0x278a87)};}[_0x1b49('0x1f')](_0x314c69){for(const [,_0x1be3e6]of _0x314c69[_0x1b49('0x65')]){const _0x21d988=_0x1be3e6[_0x1b49('0x49')]['getAncestors']()[_0x1b49('0x106')](_0x1d5c46=>'tableCell'==_0x1d5c46[_0x1b49('0xc2')]);for(const _0x4f61c9 of _0x21d988)0x1==_0x4f61c9[_0x1b49('0xde')]&&_0x4f61c9[_0x1b49('0x2c')](0x0)['is'](_0x1b49('0xb2'),_0x1b49('0x91'))&&_0x4f61c9[_0x1b49('0x2c')](0x0)['_setAttribute']('keepParagraph',!0x0);}}[_0x1b49('0x102')](_0x2cc496){this[_0x1b49('0x1f')](_0x2cc496);const _0x4da61d=this[_0x1b49('0x5c')]['data'][_0x1b49('0x26')](_0x2cc496,{}),_0x5102cc=Array['from'](_0x4da61d[_0x1b49('0x1c')]())['map'](_0x464323=>this[_0x1b49('0x7d')](_0x464323));return JSON[_0x1b49('0x83')](_0x5102cc);}[_0x1b49('0x7d')](_0x16e9b3){if(_0x16e9b3['is'](_0x1b49('0x22')))return _0x16e9b3[_0x1b49('0x5d')];{const _0x43e1f9=_0x16e9b3;return{'type':Object[_0x1b49('0xef')](B)[_0x1b49('0x1e')](_0x5d70ea=>_0x16e9b3 instanceof B[_0x5d70ea]),'name':_0x43e1f9['name'],'attributes':Array['from'](_0x43e1f9['getAttributes']()),'children':Array[_0x1b49('0x61')](_0x43e1f9['getChildren']())[_0x1b49('0x92')](_0xad1910=>this[_0x1b49('0x7d')](_0xad1910))};}}[_0x1b49('0x3c')](_0x258308,_0x31d5ca,_0x41e7e5,_0x34b5eb,_0x3bc28a){let _0x1d5fcb=null,_0x2e1cd3=null,_0x35f7dc=0x0;const _0x49bd0b=this[_0x1b49('0x5c')]['model'];for(let _0x587437=0x0;_0x587437<_0x31d5ca[_0x1b49('0xc9')];_0x587437++){const _0x1519f4=this[_0x1b49('0xaf')](_0x31d5ca[_0x587437]),_0x2df059=_0x31d5ca[_0x587437][_0x1b49('0xa7')][_0x1b49('0x51')](_0x1519f4),_0x1d765f=_0x41e7e5['get'](_0x2df059),_0x16a552=_0x587437==_0x31d5ca['length']-0x1;(!_0x1d5fcb&&_0x1d765f&&(_0x1d5fcb=_0x1d765f,_0x2e1cd3=_0x31d5ca[_0x587437]),_0x1d5fcb&&(!_0x1d765f||_0x1d765f[_0x1b49('0xcc')]!=_0x1d5fcb[_0x1b49('0xcc')]))&&(_0x4c0454(_0x1d765f,L(_0x2e1cd3,_0x258308,_0x49bd0b),L(_0x31d5ca[_0x587437],_0x258308,_0x49bd0b)),_0x1d5fcb=_0x1d765f||null,_0x2e1cd3=_0x1d765f?_0x31d5ca[_0x587437]:null),_0x1d5fcb&&_0x16a552&&_0x4c0454(_0x1d765f,L(_0x2e1cd3,_0x258308,_0x49bd0b),W(_0x31d5ca[_0x587437],_0x258308,_0x49bd0b));}function _0x4c0454(_0x22ea44,_0x1b978d,_0x54cc42){const _0x1bed9b=_0x1d5fcb['userId'],_0x121db5=_0x1b49('0xfd')+_0x34b5eb+':'+_0x1bed9b+':'+_0x35f7dc++,_0x42ee9e=_0x49bd0b['createRange'](_0x1b978d,_0x54cc42);_0x258308[_0x1b49('0x65')]['set'](_0x121db5,_0x42ee9e),null!==_0x1bed9b&&_0x3bc28a['add'](_0x1bed9b);}}[_0x1b49('0xaf')](_0x1c3e33){switch(_0x1c3e33['type']){case _0x1b49('0x38'):return _0x1b49('0xab');case _0x1b49('0x95'):return'vid_end';default:return _0x1b49('0xcf');}}[_0x1b49('0xdd')](_0x5631a6,_0x1358fa){_0x5631a6[_0x1b49('0xb6')]=null;for(const _0x7f2c26 in _0x5631a6){const _0x5738eb=_0x5631a6[_0x7f2c26];if(_0x5738eb instanceof _0x357d8b){const _0x1ab888=_0x1358fa['get'](_0x5738eb[_0x1b49('0x2d')][_0x1b49('0x8a')]);_0x5631a6[_0x7f2c26]=this[_0x1b49('0x67')](_0x5738eb,_0x1ab888);}if(_0x5738eb instanceof _0x1948b6){const _0x27e581=_0x1358fa[_0x1b49('0x7')](_0x5738eb[_0x1b49('0x2d')][_0x1b49('0x8a')]);_0x5631a6[_0x7f2c26]=this[_0x1b49('0xd3')](_0x5738eb,_0x27e581);}_0x1b49('0x2d')===_0x7f2c26&&(_0x5631a6[_0x1b49('0x2d')]=_0x1358fa['get'](_0x5631a6[_0x1b49('0x2d')]['rootName']));}}[_0x1b49('0xd3')](_0x2bff68,_0x31a062){return this[_0x1b49('0x5c')][_0x1b49('0x42')]['createRange'](this['_fixPosition'](_0x2bff68['start'],_0x31a062),this[_0x1b49('0x67')](_0x2bff68['end'],_0x31a062));}['_fixPosition'](_0x258d61,_0x3f05e9){return this[_0x1b49('0x5c')][_0x1b49('0x42')]['createPositionFromPath'](_0x3f05e9,_0x258d61['path'],_0x258d61['stickiness']);}['_handleInsertOperation'](_0xf91d29){const _0x23adfb=this[_0x1b49('0x35')][_0x1b49('0x7')](_0xf91d29[_0x1b49('0x17')][_0x1b49('0x2d')][_0x1b49('0x8a')]),_0x13c947=this[_0x1b49('0x67')](_0xf91d29[_0x1b49('0x17')],_0x23adfb),_0x51bb92=null===_0xf91d29[_0x1b49('0xd7')]?null:_0xf91d29['_authorId']||this[_0x1b49('0x5c')]['plugins']['get'](_0x1b49('0x2'))['me']['id'],_0x2b900d=_0x13c947['parent'],_0x4124d2=this[_0x1b49('0xbf')],_0x34d25a=[];for(const _0x2266af of _0xf91d29[_0x1b49('0xeb')])if(_0x2266af['is'](_0x1b49('0xb2')))_0x34d25a['push'](this[_0x1b49('0x79')](_0x2266af));else for(let _0x3a2bb4=0x0;_0x3a2bb4<_0x2266af['offsetSize'];_0x3a2bb4++)_0x34d25a['push'](new _0x46b245('$text',{'vid':this['_revisionId']++}));const _0x311892=this[_0x1b49('0xbf')];for(let _0x435330=_0x4124d2;_0x435330<_0x311892;_0x435330++)this['_touched']['set'](_0x435330,{'userId':_0x51bb92});_0x2b900d[_0x1b49('0xa0')](_0x13c947[_0x1b49('0xaa')],_0x34d25a);}[_0x1b49('0x9d')](_0x37982d){(_0x37982d=this[_0x1b49('0x1b')](_0x37982d,this[_0x1b49('0x35')]))[_0x1b49('0xb8')]();const _0x2c325b=null===_0x37982d[_0x1b49('0xd7')]?null:_0x37982d['_authorId']||this['editor']['plugins']['get'](_0x1b49('0x2'))['me']['id'],_0x213e22=_0x37982d[_0x1b49('0x87')](),_0x3ebe19=_0x213e22[_0x1b49('0x0')],_0x49cc57=_0x213e22[_0x1b49('0xaa')];!function _0x244f34(_0x3a5b7c,_0x1a2aa0,_0x12da1c,_0x56e7e4){for(let _0x5107ed=_0x12da1c;_0x5107ed<_0x56e7e4;_0x5107ed++){const _0x509be5=_0x1a2aa0[_0x1b49('0x2c')](_0x5107ed);_0x509be5['is'](_0x1b49('0xb2'),_0x1b49('0x22'))?_0x3a5b7c[_0x1b49('0xc5')](_0x509be5[_0x1b49('0x51')](_0x1b49('0xcf')),{'userId':_0x2c325b}):(_0x3a5b7c[_0x1b49('0xc5')](_0x509be5[_0x1b49('0x51')]('vid_start'),{'userId':_0x2c325b}),_0x244f34(_0x3a5b7c,_0x509be5,0x0,_0x509be5[_0x1b49('0xde')]),_0x3a5b7c['set'](_0x509be5['getAttribute']('vid_end'),{'userId':_0x2c325b}));}}(this[_0x1b49('0x23')],_0x3ebe19,_0x49cc57,_0x49cc57+_0x37982d[_0x1b49('0xa')]);}[_0x1b49('0x88')](_0x1f0bef){const _0x3e65db=null===(_0x1f0bef=this['_cloneOperation'](_0x1f0bef,this['_idsRoots']))[_0x1b49('0xd7')]?null:_0x1f0bef[_0x1b49('0xd7')]||this[_0x1b49('0x5c')][_0x1b49('0xa5')]['get'](_0x1b49('0x2'))['me']['id'],_0x4181d6=_0x1f0bef['targetPosition'][_0x1b49('0x0')],_0x2afb2b=_0x1f0bef[_0x1b49('0xed')]['parent'],_0x3afc4c=_0x4181d6['getAttribute']('vid_end'),_0x22af32=_0x2afb2b[_0x1b49('0x51')](_0x1b49('0xab'));_0x4181d6[_0x1b49('0x98')]('vid_end',_0x2afb2b[_0x1b49('0x51')](_0x1b49('0x107'))),_0x2afb2b[_0x1b49('0x98')](_0x1b49('0x107'),_0x3afc4c),this[_0x1b49('0x23')][_0x1b49('0xc5')](_0x22af32,{'userId':_0x3e65db}),this[_0x1b49('0x23')][_0x1b49('0xc5')](_0x3afc4c,{'userId':_0x3e65db}),_0x1f0bef[_0x1b49('0xb8')]();}[_0x1b49('0xac')](_0x3df133){const _0x5b4cac=null===(_0x3df133=this[_0x1b49('0x1b')](_0x3df133,this[_0x1b49('0x35')]))[_0x1b49('0xd7')]?null:_0x3df133[_0x1b49('0xd7')]||this[_0x1b49('0x5c')]['plugins']['get'](_0x1b49('0x2'))['me']['id'],_0x35bd52=_0x3df133[_0x1b49('0xb1')],_0x3e3308=_0x3df133[_0x1b49('0x4e')][_0x1b49('0x0')];_0x3df133[_0x1b49('0xb8')]();const _0x2a173a=_0x3e3308[_0x1b49('0x51')](_0x1b49('0x107')),_0x539d40=_0x3df133[_0x1b49('0x80')][_0x1b49('0x4f')];if(_0x35bd52){const _0x26fdf0=_0x539d40[_0x1b49('0x51')](_0x1b49('0x107')),_0x6d5851=_0x3e3308['getAttribute']('vid_end');_0x3e3308['_setAttribute']('vid_end',_0x26fdf0),_0x539d40[_0x1b49('0x98')](_0x1b49('0x107'),_0x6d5851),this[_0x1b49('0x23')][_0x1b49('0xc5')](_0x3e3308[_0x1b49('0x51')](_0x1b49('0x107')),{'userId':_0x5b4cac}),this[_0x1b49('0x23')][_0x1b49('0xc5')](_0x539d40[_0x1b49('0x51')]('vid_start'),{'userId':_0x5b4cac});}else{const _0x2db6e8=this[_0x1b49('0xbf')]++,_0x290e54=this['_revisionId']++;_0x3e3308[_0x1b49('0x98')](_0x1b49('0x107'),_0x2db6e8),_0x539d40[_0x1b49('0x98')]('vid_start',_0x290e54),_0x539d40[_0x1b49('0x98')](_0x1b49('0x107'),_0x2a173a),this['_touched'][_0x1b49('0xc5')](_0x2db6e8,{'userId':_0x5b4cac}),this[_0x1b49('0x23')][_0x1b49('0xc5')](_0x290e54,{'userId':_0x5b4cac});}}[_0x1b49('0x5')](_0x5ea35e){if(!_0x5ea35e['affectsData'])return;const _0x507aaf=(_0x5ea35e=this['_cloneOperation'](_0x5ea35e,this[_0x1b49('0xa6')]))['oldRange']?_0x5ea35e[_0x1b49('0xf2')][_0x1b49('0x2d')]:null,_0x832b38=_0x5ea35e['newRange']?_0x5ea35e[_0x1b49('0x39')]['root']:null;_0x507aaf&&this['_markers'][_0x1b49('0x60')](_0x5ea35e['name']),_0x832b38&&this[_0x1b49('0x31')][_0x1b49('0xc5')](_0x5ea35e[_0x1b49('0xc2')],_0x5ea35e[_0x1b49('0x39')][_0x1b49('0xae')]());const _0x516299=null===_0x5ea35e[_0x1b49('0xd7')]?null:_0x5ea35e[_0x1b49('0xd7')]||this[_0x1b49('0x5c')][_0x1b49('0xa5')][_0x1b49('0x7')](_0x1b49('0x2'))['me']['id'],_0x129e13=_0x5ea35e[_0x1b49('0xc2')];if(!this[_0x1b49('0x7a')][_0x1b49('0xd')](_0x129e13))return void this[_0x1b49('0x7a')][_0x1b49('0xc5')](_0x129e13,{'range':_0x5ea35e['oldRange'],'userId':_0x516299});const _0x3198fc=this[_0x1b49('0x7a')]['get'](_0x129e13),_0x1a2696=_0x3198fc[_0x1b49('0x14')],_0x57dce7=_0x5ea35e[_0x1b49('0x39')];null==_0x1a2696&&null==_0x57dce7||_0x1a2696&&_0x57dce7&&_0x1a2696[_0x1b49('0xb5')](_0x57dce7)?this['_touchedMarkers'][_0x1b49('0x60')](_0x5ea35e[_0x1b49('0xc2')]):_0x3198fc[_0x1b49('0xcc')]=_0x516299;}['_handleRootOperation'](_0x11d980,_0x4672e7){this[_0x1b49('0xa6')]['has'](_0x11d980[_0x1b49('0x8a')])?this[_0x1b49('0xa6')]['get'](_0x11d980[_0x1b49('0x8a')])['_isAttached']=_0x11d980[_0x1b49('0x85')]:(this[_0x1b49('0xa6')]['set'](_0x11d980['rootName'],G(_0x11d980[_0x1b49('0x8a')],!0x0)),this['_diffRootsAttributes']['set'](_0x11d980['rootName'],{}),_0x4672e7&&this[_0x1b49('0x35')][_0x1b49('0xc5')](_0x11d980[_0x1b49('0x8a')],G(_0x11d980[_0x1b49('0x8a')],!0x0)));const _0x5a46d4=null===_0x11d980[_0x1b49('0xd7')]?null:_0x11d980[_0x1b49('0xd7')]||this['editor'][_0x1b49('0xa5')]['get'](_0x1b49('0x2'))['me']['id'],_0x10ac5c=this['_touchedRoots'][_0x1b49('0x7')](_0x11d980['rootName']);_0x10ac5c&&_0x10ac5c['userId']===_0x5a46d4?this[_0x1b49('0xfb')][_0x1b49('0x60')](_0x11d980[_0x1b49('0x8a')]):this[_0x1b49('0xfb')][_0x1b49('0xc5')](_0x11d980[_0x1b49('0x8a')],{'userId':_0x5a46d4,'isAttached':_0x11d980[_0x1b49('0x85')]});}[_0x1b49('0x72')](_0x1ac558){const _0xd51a32=this['_diffRootsAttributes']['get'](_0x1ac558['root']['rootName']);null===_0x1ac558['newValue']?delete _0xd51a32[_0x1ac558['key']]:_0xd51a32[_0x1ac558[_0x1b49('0x55')]]=_0x1ac558[_0x1b49('0xa4')];}}function q(_0x529368){const _0xb24028=G(_0x529368['rootName'],_0x529368[_0x1b49('0xca')]());for(const _0x2c614a of _0x529368[_0x1b49('0x1c')]()){const _0x29c08d=_0x2c614a[_0x1b49('0x108')](!0x0);_0xb24028['_appendChild'](_0x29c08d);}return _0xb24028;}function G(_0x2ddcd5,_0x49a1c9=!0x0){const _0x4fd87c=new _0x49f90d();return _0x4fd87c['rootName']=_0x2ddcd5,_0x4fd87c['_isAttached']=_0x49a1c9,_0x4fd87c[_0x1b49('0xca')]=()=>_0x4fd87c[_0x1b49('0x7e')],_0x4fd87c;}function L(_0x58fc5a,_0x3579eb,_0x419f56){const _0x109d89=_0x1b49('0x95')==_0x58fc5a[_0x1b49('0x48')]?_0x419f56[_0x1b49('0xb0')](_0x58fc5a[_0x1b49('0xa7')],_0x1b49('0x8f')):_0x419f56[_0x1b49('0x5f')](_0x58fc5a['item']);return _0x419f56[_0x1b49('0xc0')](_0x3579eb,_0x109d89[_0x1b49('0x1a')],_0x109d89[_0x1b49('0xdf')]);}function W(_0x432f62,_0x260a00,_0x546711){const _0x5dd3b4='elementStart'==_0x432f62[_0x1b49('0x48')]?_0x546711['createPositionAt'](_0x432f62[_0x1b49('0xa7')],0x0):_0x546711[_0x1b49('0x9c')](_0x432f62['item']);return _0x546711[_0x1b49('0xc0')](_0x260a00,_0x5dd3b4[_0x1b49('0x1a')],_0x5dd3b4['stickiness']);}
|