@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230913.0 → 0.0.0-nightly-20230914.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 _0x2860=['attributesAfter','history','revision-end','_handleSplitOperation','forEach','data-revision-','documentFragment','Users','version','NEGATIVE_INFINITY','PENDING_ACTION_REVISION_HISTORY','authors','getRevisionDocumentData','vid_end','getAncestors','remove','getTime','values','marker','push','clear','document','_fixPosition','_getState','afterInit','getRevisionRootsAttributes','_idsRoots','_getVidAttributeName','getChild','toModel','affectsData','revisionHistory.resumeUnsavedRevision','$graveyard','then','_reset','getAttributes','_lastFrom','root','for','offsetSize','_handleMoveOperation','_makeModelFromViewString','_applyOperations','start','key','_bufferUpdate','view','isReady','slice','updateRevisions','_prepareViewToSave','string','markers','addRevision','revision-start','pluginName','getRootNames','creator','data','getRevisions','includes','init','reinsert','define','userId','get','stickiness','sendBufferedUpdates','_fixRange','_operations','PendingActions','_cloneOperation','Empty\x20document','_startingVersion','delete','getNodeByPath','resolve','getCurrentRevisionId','authorsIds','requires','getIndex','addRevisionData','attributesBefore','_calculateMetaData','revision','_markChanges','_setConversion','clone','useFillerType','_processRootBeforeSave','setRevisionData','default','_lastTo','_getPreviousFrom','_makeRevision','_clone','elementStart','currentRevision','_touchedRoots','deletions','keys','collaboration.channelId','_diffRootsAttributes','elementEnd','changeRootAttribute','add','insertion','_makeIdsRoot','parse','hasContent','reverse','find','editor','plugins','has','graveyardPosition','fromEntries','markerToData','paragraph','diffData','repository','name','locale','finally','rootsAttributes','attributes','_getBaseVids','getMovedRangeStart','_removeMetaData','_loadedStateData','previousPosition','_update','max','config','_startingRevisionId','_handleMarkerOperation','saveRevision','editing','createRange','getLatestVersion','_handleRootAttributeOperation','trim','revision:','set','children','addRootAttribute','range','_initialRevisionId','_copyMarkers','getRange','setSource','bind','_saveMetaData','isAttached','_continueCurrentRevision','isAdd','_transformMarkers','position','item','_addPendingAction','vid_start','size','startsWith','offset','text','sort','childCount','map','vid','_markers','oldRange','newValue','initialData','newRange','_touched','_execute','_baseRoots','_revisionId','filter','_removeRevisionMarkers','_setAttribute','end','getData','toVersion','roots','_generateTape','path','_authorId','_diffRoots','deletion','_removePendingAction','_handleInsertOperation','merge','adapter','_getViewJson','loadState','_bufferedUpdates','source','_revisionDataBuilder','_appendChild','insert','conversion','getRevision','createPositionAt','ready','_fixOperation','_source','getOperation','$text','_loadRevisionData','_baseRootsAttributes','from','_replaceEditorDataWithRevisionData','addRoot','element','getTransformedByOperation','toData','length','marked','_handleMergeOperation','getWalker','buildRevisionData','_insertChild','type','split','getUser','_baseIdsRoots','attachChange','tableCell','fromVersion','insertions','RevisionsRepository','shift','getRoot','createRevision','getAttribute','_touchedMarkers','_createCurrentRevision','_loadState','_findInsertionIndex','createdAt','_handleOperation','baseVersion','howMany','_pendingAction','_isInit','creatorId','processor','_isAttached','getChildren','createPositionAfter','_isPendingUpdate','createPositionFromPath','initial','upcast','_handleRootOperation','dataToMarker','stringify','model','RevisionTracker','rootName','parent','_savedMetaData','Initial\x20revision'];(function(_0x40ac0a,_0x2860a0){const _0x392c95=function(_0x47362d){while(--_0x47362d){_0x40ac0a['push'](_0x40ac0a['shift']());}};_0x392c95(++_0x2860a0);}(_0x2860,0x173));const _0x392c=function(_0x40ac0a,_0x2860a0){_0x40ac0a=_0x40ac0a-0x0;let _0x392c95=_0x2860[_0x40ac0a];return _0x392c95;};import{Users as _0xd6e3e6}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x1737bb,PendingActions as _0x3fcd79}from'ckeditor5/src/core';import{logWarning as _0xd5bd1b,uid as _0x120197}from'ckeditor5/src/utils';import{Position as _0xddb985,Range as _0x26052a,Element as _0x36ab16,DocumentFragment as _0x1254c3,ViewText as _0x2de5cd,ViewElement as _0x213095,ViewContainerElement as _0x65bb98,ViewAttributeElement as _0x1c2e5f,ViewEmptyElement as _0x22097b,ViewRawElement as _0x5d8911,ViewUIElement as _0x49f227,ViewDocumentFragment as _0x1378d0}from'ckeditor5/src/engine';import _0x21e927 from'./revisionsrepository';import{getTranslation as _0x2a795c}from'./utils/common-translations';import{cloneDeep as _0x4d9438,isEqual as _0x5d01ed}from'lodash-es';const B={'c':_0x65bb98,'a':_0x1c2e5f,'e':_0x22097b,'r':_0x5d8911,'u':_0x49f227};export default class l extends _0x1737bb{static get[_0x392c('0xd4')](){return _0x392c('0x98');}static get[_0x392c('0xec')](){return[_0xd6e3e6,_0x21e927,_0x3fcd79];}constructor(_0x3fc9c9){super(_0x3fc9c9),this[_0x392c('0x56')]=null,this[_0x392c('0xfe')]=null,this[_0x392c('0x5b')]=new H(this[_0x392c('0x5')]),this[_0x392c('0x28')]=this[_0x392c('0x5')][_0x392c('0x1a')][_0x392c('0xde')](_0x392c('0x102'))||_0x392c('0x92'),this['_bufferedUpdates']=new Map(),this[_0x392c('0x16')]=null;const _0x1c9548=_0x120197();this[_0x392c('0x63')]={'history':this[_0x392c('0x5')]['model'][_0x392c('0xb2')][_0x392c('0x9e')],'getLatestVersion':()=>Promise[_0x392c('0xe9')](this[_0x392c('0x5')][_0x392c('0x97')]['document'][_0x392c('0xa5')]),'getCurrentRevisionId':()=>_0x1c9548},this[_0x392c('0x24')]('isReady',!0x1),this[_0x392c('0x24')]('isEnabled',!0x0),this['set'](_0x392c('0x90'),!0x1),this[_0x392c('0x5')][_0x392c('0x1a')][_0x392c('0xdc')](_0x392c('0xbc'),!0x0),this[_0x392c('0x5')]['conversion'][_0x392c('0xc3')](_0x392c('0x93'))[_0x392c('0x95')]({'view':_0x392c('0xf1')});}[_0x392c('0xda')](){this['repository']=this[_0x392c('0x5')][_0x392c('0x6')][_0x392c('0xde')](_0x392c('0x7c')),this[_0x392c('0xf3')](),this['editor'][_0x392c('0xd7')]['on'](_0x392c('0x61'),()=>{const _0x3e5671=this['repository']['getRevision'](0x0),_0x21f622=_0x3e5671&&null===_0x3e5671[_0x392c('0xd6')]?_0x3e5671:null;if(this[_0x392c('0x2f')]=!!_0x21f622&&this[_0x392c('0x5')][_0x392c('0x1a')][_0x392c('0xde')](_0x392c('0xbc')),this['editor'][_0x392c('0x6')][_0x392c('0x7')]('RealTimeCollaborationClient')){const _0x306fbe=this[_0x392c('0x63')]['getCurrentRevisionId'](),_0x4a0b66=this[_0x392c('0xd')][_0x392c('0x5f')](_0x306fbe);if(_0x4a0b66)this[_0x392c('0xe6')]=_0x4a0b66['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xf3cae4=this[_0x392c('0x63')][_0x392c('0x9e')][_0x392c('0xe2')][_0x392c('0x4')](_0x3b4309=>!_0x3b4309[_0x392c('0x8a')]),_0x144cf7=_0xf3cae4?_0xf3cae4['baseVersion']:this['_source'][_0x392c('0x9e')][_0x392c('0xa5')];_0x3e5671?(_0x3e5671[_0x392c('0x4c')]<_0x144cf7&&_0x3e5671[_0x392c('0x18')]({'toVersion':_0x144cf7}),this[_0x392c('0x2f')]?(this['_source'][_0x392c('0xea')]=()=>_0x21f622['id'],this[_0x392c('0xe6')]=_0x21f622[_0x392c('0x7a')]):(this[_0x392c('0xe6')]=_0x3e5671[_0x392c('0x4c')],this[_0x392c('0x2f')]=!0x1)):(this['_startingVersion']=_0x144cf7,this['_continueCurrentRevision']=!0x1);}}else _0x21f622&&(this[_0x392c('0x5')][_0x392c('0x97')]['document'][_0x392c('0x9e')][_0x392c('0xa5')]=Math[_0x392c('0x19')](_0x21f622[_0x392c('0x4c')],this['editor'][_0x392c('0x97')]['document'][_0x392c('0x9e')]['version']),_0x21f622[_0x392c('0x7a')]===_0x21f622[_0x392c('0x4c')]?(0x0!==_0x21f622[_0x392c('0x7a')]&&(this['_source']['getCurrentRevisionId']=()=>_0x21f622['id']),this[_0x392c('0x2f')]=!0x1):this[_0x392c('0x2f')]&&(this[_0x392c('0x63')][_0x392c('0xea')]=()=>_0x21f622['id'],this['_startingVersion']=_0x21f622[_0x392c('0x7a')])),this[_0x392c('0x2f')]||(this['_startingVersion']=this['editor'][_0x392c('0x97')][_0x392c('0xb2')][_0x392c('0xa5')]);this[_0x392c('0x5b')][_0x392c('0xda')](this[_0x392c('0x63')][_0x392c('0x9e')]),this['_createInitialRevision'](this['_startingVersion']),this[_0x392c('0x82')](this[_0x392c('0xe6')]),this['adapter']&&this[_0x392c('0xe0')]();}),this[_0x392c('0x2c')](_0x392c('0xcc'))['to'](this,_0x392c('0x90'),_0x42ebe6=>!_0x42ebe6);}async[_0x392c('0xb5')](){if(this[_0x392c('0xd')]['length']>0x0){const _0x4d0ce6=this['repository'][_0x392c('0x5f')](0x0),_0x24af7f=await this[_0x392c('0xa9')](_0x4d0ce6),_0x22d8ce=await this[_0x392c('0xb6')](_0x4d0ce6);this[_0x392c('0x69')](_0x24af7f,_0x22d8ce);}}[_0x392c('0x2b')](_0x524b48){this['_source']=_0x524b48;}async['update'](){const _0x40c375=await this['_source'][_0x392c('0x20')]();if(_0x40c375>this[_0x392c('0xfe')][_0x392c('0x4c')]){await this[_0x392c('0x83')]();const _0x4945dc=this[_0x392c('0x72')]({'revision':this['currentRevision'],'to':_0x40c375});_0x4945dc[_0x392c('0xa8')]=_0x4945dc['authorsIds'][_0x392c('0x3c')](_0x498097=>this[_0x392c('0x5')]['plugins'][_0x392c('0xde')](_0x392c('0xa4'))[_0x392c('0x76')](_0x498097)),this[_0x392c('0xfe')][_0x392c('0x18')](_0x4945dc);}}async[_0x392c('0x83')](){this[_0x392c('0x2f')]&&!this[_0x392c('0x16')]&&(await this[_0x392c('0x66')](this['currentRevision']),this[_0x392c('0x5b')][_0x392c('0x58')](this[_0x392c('0xfe')]),this[_0x392c('0x16')]={'fromVersion':this[_0x392c('0xfe')][_0x392c('0x7a')],'authors':this[_0x392c('0xfe')][_0x392c('0xa8')]['slice']()});}async[_0x392c('0x1d')](_0x56d2ba={},_0x5a05c6=null){const _0x338ec2=[];await this[_0x392c('0x83')](),this['_continueCurrentRevision']=!0x1,_0x5a05c6>this['currentRevision'][_0x392c('0x4c')]&&(_0x5a05c6=null),null===_0x5a05c6&&(_0x5a05c6=await this[_0x392c('0x63')]['getLatestVersion']());const _0x3f0ef7=this['_getFromVersion'](_0x5a05c6),_0x1a1022=this['buildRevisionData']({'from':_0x3f0ef7,'to':_0x5a05c6});if(this[_0x392c('0xfe')]['toVersion']<_0x5a05c6){const _0x25d4c3=this['buildRevisionData']({'revision':this[_0x392c('0xfe')],'from':_0x5a05c6,'to':_0x5a05c6});_0x25d4c3[_0x392c('0xa8')]=[],_0x25d4c3[_0x392c('0xeb')]=[],_0x25d4c3['id']=this[_0x392c('0xfe')]['id'],this[_0x392c('0xfe')][_0x392c('0x18')](_0x25d4c3,!0x0),delete _0x25d4c3[_0x392c('0xa8')],_0x338ec2[_0x392c('0xb0')](_0x25d4c3);}_0x56d2ba[_0x392c('0x8b')]=this[_0x392c('0x5')]['plugins']['get'](_0x392c('0xa4'))['me']['id'],_0x56d2ba[_0x392c('0xe')]=_0x56d2ba['name']||null,_0x56d2ba['id']=_0x56d2ba['id']||_0x120197(),_0x56d2ba={..._0x56d2ba,..._0x1a1022};const _0x4595a5=this[_0x392c('0xee')](_0x56d2ba);_0x338ec2['push'](_0x56d2ba);const _0xb380c4=this[_0x392c('0xd')][_0x392c('0xed')](_0x4595a5);if(0x0!==_0xb380c4){const _0x29dbd6=this[_0x392c('0xd')][_0x392c('0x5f')](_0xb380c4-0x1);if(_0x29dbd6[_0x392c('0x7a')]!==_0x5a05c6){const _0x45b603=this[_0x392c('0x5b')][_0x392c('0x4b')](_0x5a05c6,_0x29dbd6['toVersion']),_0x27ef80={'id':_0x29dbd6['id'],'diffData':_0x45b603[_0x392c('0xc')],'authorsIds':_0x45b603[_0x392c('0xeb')],'authors':_0x45b603[_0x392c('0xeb')][_0x392c('0x3c')](_0x3e738c=>this['editor']['plugins'][_0x392c('0xde')](_0x392c('0xa4'))[_0x392c('0x76')](_0x3e738c)),'fromVersion':_0x5a05c6};_0x29dbd6===this['currentRevision']&&(_0x27ef80[_0x392c('0x85')]=new Date(_0x56d2ba[_0x392c('0x85')][_0x392c('0xad')]()+0xa)),_0x29dbd6[_0x392c('0x18')](_0x27ef80,!0x0),delete _0x27ef80[_0x392c('0xa8')],_0x338ec2[_0x392c('0xb0')](_0x27ef80);}}if(this[_0x392c('0x56')]){for(const _0x10d53d of _0x338ec2)this[_0x392c('0xca')](_0x10d53d['id'],_0x10d53d,!0x0);this['sendBufferedUpdates']();}return _0x4595a5;}[_0x392c('0xee')](_0x384118){const _0x214e4c=this[_0x392c('0xd')][_0x392c('0x7f')](_0x384118);return this[_0x392c('0x56')]&&_0x214e4c['on'](_0x392c('0x18'),(_0x48a64d,_0x213e17,_0x4d025f)=>{_0x4d025f||(this[_0x392c('0xca')](_0x213e17['id'],_0x213e17,!0x0),this[_0x392c('0xe0')]());}),this[_0x392c('0xd')][_0x392c('0xd2')](_0x214e4c,this[_0x392c('0x84')](_0x214e4c)),_0x214e4c;}async[_0x392c('0xa9')](_0x18b88c){await this[_0x392c('0x66')](_0x18b88c);const _0x9d1b48={};for(const _0x65210e in _0x18b88c[_0x392c('0xc')]){if(_0x18b88c[_0x392c('0xc')][_0x65210e][_0x392c('0x78')]&&!_0x18b88c[_0x392c('0xc')][_0x65210e][_0x392c('0x78')][_0x392c('0x2e')])continue;const _0x122d75=this[_0x392c('0x48')](JSON['parse'](_0x18b88c[_0x392c('0xc')][_0x65210e][_0x392c('0x7b')])),_0x539fd5=this['editor'][_0x392c('0x1e')][_0x392c('0xcb')]['document'],_0x3bfb2e=new _0x1378d0(_0x539fd5,_0x122d75[_0x392c('0x3c')](_0x5aa735=>J(_0x5aa735,this[_0x392c('0x5')])));this['editor'][_0x392c('0xd7')][_0x392c('0x8c')][_0x392c('0xf5')](_0x392c('0x6f')),_0x9d1b48[_0x65210e]=this[_0x392c('0x5')][_0x392c('0xd7')][_0x392c('0x8c')][_0x392c('0x6d')](_0x3bfb2e),this[_0x392c('0x5')][_0x392c('0xd7')][_0x392c('0x8c')]['useFillerType'](_0x392c('0xf8'));}return _0x9d1b48;}async[_0x392c('0xb6')](_0x4dade6){await this[_0x392c('0x66')](_0x4dade6);const _0x34a716={};for(const _0x18b3f8 in _0x4dade6[_0x392c('0xc')])_0x4dade6['diffData'][_0x18b3f8][_0x392c('0x78')]&&!_0x4dade6[_0x392c('0xc')][_0x18b3f8][_0x392c('0x78')]['isAttached']||(_0x34a716[_0x18b3f8]=_0x4dade6[_0x392c('0xc')][_0x18b3f8][_0x392c('0x9d')]||{});return _0x34a716;}[_0x392c('0xe0')](){if(0x0===this[_0x392c('0x59')]['size'])return;if(this['_isPendingUpdate'])return;let _0x33a40d=Array[_0x392c('0x68')](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3f499f=0x0;_0x3f499f<_0x33a40d['length'];_0x3f499f++){const _0x474df6=_0x33a40d[_0x3f499f];let _0x2cbbce=!0x1;for(const _0x55f4fb of Object[_0x392c('0x101')](_0x474df6))void 0x0===_0x474df6[_0x55f4fb]?delete _0x474df6[_0x55f4fb]:'id'!==_0x55f4fb&&(_0x2cbbce=!0x0);_0x2cbbce||(_0x33a40d[_0x3f499f]=null);}if(_0x33a40d=_0x33a40d['filter'](_0x1c6c7d=>null!==_0x1c6c7d),!_0x33a40d[_0x392c('0x6e')])return;for(let _0x6f549c=0x0;_0x6f549c<_0x33a40d[_0x392c('0x6e')];_0x6f549c++){const _0x24e3b0=_0x33a40d[_0x6f549c];void 0x0!==_0x24e3b0[_0x392c('0x7a')]&&void 0x0===_0x24e3b0[_0x392c('0x4c')]&&(_0x24e3b0[_0x392c('0x4c')]=this[_0x392c('0xd')][_0x392c('0x5f')](_0x24e3b0['id'])[_0x392c('0x4c')]),void 0x0!==_0x24e3b0['toVersion']&&void 0x0===_0x24e3b0[_0x392c('0x7a')]&&(_0x24e3b0[_0x392c('0x7a')]=this[_0x392c('0xd')]['getRevision'](_0x24e3b0['id'])[_0x392c('0x7a')]);}const _0x4139ce=this['editor'][_0x392c('0x1a')]['get'](_0x392c('0x102'));this['_isPendingUpdate']=!0x0,this[_0x392c('0x34')](),this['adapter'][_0x392c('0xce')](_0x33a40d,_0x4139ce)[_0x392c('0x10')](()=>{this[_0x392c('0x90')]=!0x1;})['then'](_0x40879b=>{if(_0x40879b)for(const _0x208807 of _0x40879b)this['setRevisionData']({'id':_0x208807['id'],'createdAt':_0x208807['createdAt']});this[_0x392c('0x53')](),this[_0x392c('0xe0')]();});}[_0x392c('0x69')](_0x52e91a,_0x12ea0a){let _0xd08ca1=this['editor'][_0x392c('0x1a')][_0x392c('0xde')](_0x392c('0x41')),_0x367a36=this[_0x392c('0x5')][_0x392c('0x1a')][_0x392c('0xde')](_0x392c('0x11'));if(void 0x0===_0xd08ca1){_0xd08ca1={};for(const _0xa14c66 of this['editor'][_0x392c('0x97')][_0x392c('0xb2')][_0x392c('0xd5')]())_0xd08ca1[_0xa14c66]='';}if(_0x392c('0xd0')==typeof _0xd08ca1&&(_0xd08ca1={'main':_0xd08ca1}),void 0x0===_0x367a36){_0x367a36={};for(const _0x1e9f1f of this[_0x392c('0x5')][_0x392c('0x97')][_0x392c('0xb2')]['getRootNames']())_0x367a36[_0x1e9f1f]={};}let _0x157f7e=!0x1;const _0x2ef6c7=Object[_0x392c('0x101')](_0xd08ca1),_0x907d18=Object[_0x392c('0x101')](_0x52e91a);for(const _0xfbed02 of _0x2ef6c7){if(_0xd08ca1[_0xfbed02]!==_0x52e91a[_0xfbed02]&&''!==_0xd08ca1[_0xfbed02][_0x392c('0x22')]()){_0x157f7e=!0x0;break;}if(!_0x5d01ed(_0x367a36[_0xfbed02],_0x12ea0a[_0xfbed02])&&Object[_0x392c('0x101')](_0x367a36[_0xfbed02])[_0x392c('0x6e')]>0x0){_0x157f7e=!0x0;break;}}_0x157f7e||(_0x157f7e=_0x907d18['some'](_0x47b40c=>!this[_0x392c('0x5')][_0x392c('0x97')][_0x392c('0xb2')][_0x392c('0x7e')](_0x47b40c))),_0x157f7e&&_0xd5bd1b('editor-initial-data-replaced-with-revision-data',{'editorData':_0xd08ca1,'editorRootsAttributes':_0x367a36,'revisionData':_0x52e91a,'revisionRootsAttributes':_0x12ea0a}),this[_0x392c('0x5')][_0x392c('0x1a')]['set']('initialData',_0x52e91a),this[_0x392c('0x5')]['config'][_0x392c('0x24')](_0x392c('0x11'),_0x12ea0a);}[_0x392c('0x34')](){if(!this[_0x392c('0x89')]){const _0x53a5e9=this[_0x392c('0x5')][_0x392c('0x6')][_0x392c('0xde')](_0x392c('0xe3'));this['_pendingAction']=_0x53a5e9['add'](_0x2a795c(this['editor'][_0x392c('0xf')],_0x392c('0xa7')));}}[_0x392c('0x53')](){this[_0x392c('0x89')]&&(this[_0x392c('0x5')][_0x392c('0x6')][_0x392c('0xde')](_0x392c('0xe3'))['remove'](this['_pendingAction']),this[_0x392c('0x89')]=null);}[_0x392c('0x84')](_0x5266bb){const _0x348e2e=this['repository'][_0x392c('0xd8')]();_0x348e2e[_0x392c('0x3')]();let _0x11c37e=0x0;for(;_0x11c37e<_0x348e2e[_0x392c('0x6e')];){const _0x2c02e7=_0x348e2e[_0x11c37e];if(_0x2c02e7===this[_0x392c('0xfe')]){_0x11c37e++;continue;}if(_0x2c02e7['id']===this[_0x392c('0x28')])break;const _0x5bfe53=_0x5266bb[_0x392c('0x4c')]-_0x2c02e7[_0x392c('0x4c')]||_0x5266bb[_0x392c('0x7a')]-_0x2c02e7['fromVersion'];if(_0x5bfe53>0x0)break;if(_0x5bfe53<0x0)_0x11c37e++;else{if(!_0x5266bb[_0x392c('0xd6')]&&_0x2c02e7[_0x392c('0xd6')])break;if(_0x2c02e7['creator']||!_0x5266bb['creator']){if(_0x5266bb[_0x392c('0x85')]>_0x2c02e7[_0x392c('0x85')])break;_0x11c37e++;}else _0x11c37e++;}}return _0x11c37e;}[_0x392c('0xf7')](_0x34faed){const _0x46596e=this['repository']['getRevision'](_0x34faed['id']);if(_0x34faed[_0x392c('0x85')]&&(_0x34faed[_0x392c('0x85')]=new Date(_0x34faed['createdAt'])),_0x34faed[_0x392c('0xeb')]){const _0x397bf9=this['editor'][_0x392c('0x6')][_0x392c('0xde')]('Users');_0x34faed[_0x392c('0xa8')]=_0x34faed[_0x392c('0xeb')][_0x392c('0x3c')](_0x34717b=>_0x397bf9[_0x392c('0x76')](_0x34717b));}_0x46596e[_0x392c('0x18')](_0x34faed,!0x0);}[_0x392c('0x72')]({revision:_0x2d1377=null,from:_0x32dc20=null,to:_0x25da85=null}){_0x32dc20=null!==_0x32dc20?_0x32dc20:_0x2d1377[_0x392c('0x7a')],_0x25da85=null!==_0x25da85?_0x25da85:_0x2d1377[_0x392c('0x4c')];const _0x585d47=this[_0x392c('0x5b')][_0x392c('0x4b')](_0x32dc20,_0x25da85),_0xdfad00={'diffData':_0x585d47[_0x392c('0xc')],'authorsIds':_0x585d47[_0x392c('0xeb')],'fromVersion':_0x32dc20,'toVersion':_0x25da85};if(!_0x2d1377||_0x25da85!==_0x2d1377[_0x392c('0x4c')]){const _0xd642ae=_0x25da85-0x1,_0x5c9086=this[_0x392c('0x63')][_0x392c('0x9e')][_0x392c('0x64')](_0xd642ae);_0xdfad00['createdAt']=_0x5c9086&&_0x5c9086[_0x392c('0x85')]||new Date();}if(this[_0x392c('0x16')]&&_0x32dc20===this[_0x392c('0x16')][_0x392c('0x7a')])for(const _0x4deda0 of this['_loadedStateData'][_0x392c('0xa8')])_0xdfad00[_0x392c('0xeb')][_0x392c('0xd9')](_0x4deda0['id'])||_0xdfad00[_0x392c('0xeb')][_0x392c('0xb0')](_0x4deda0['id']);return _0xdfad00;}['_loadRevisionData'](_0x412103){if(!_0x412103||_0x412103[_0x392c('0xc')])return Promise[_0x392c('0xe9')]();{const _0x307533=this[_0x392c('0x5')][_0x392c('0x1a')][_0x392c('0xde')](_0x392c('0x102'));return this[_0x392c('0x56')]['getRevision']({'channelId':_0x307533,'revisionId':_0x412103['id']})[_0x392c('0xbe')](_0x91e170=>{_0x412103[_0x392c('0xc')]=_0x91e170[_0x392c('0xc')];});}}['_bufferUpdate'](_0x308bd4,_0x4dcdc5,_0xabcec3){if(this[_0x392c('0x59')]['has'](_0x308bd4)){const _0x40041e=this[_0x392c('0x59')]['get'](_0x308bd4);_0x4dcdc5=_0xabcec3?{..._0x40041e,..._0x4dcdc5}:{..._0x4dcdc5,..._0x40041e};}this[_0x392c('0x59')][_0x392c('0x24')](_0x308bd4,_0x4dcdc5);}['_getFromVersion'](_0x1b247d){const _0x8af8cf=this[_0x392c('0xd')]['getRevisions']();_0x8af8cf['reverse'](),_0x8af8cf[_0x392c('0x7d')]();const _0x8612cb=_0x8af8cf[_0x392c('0x4')](_0x280316=>_0x280316['toVersion']<=_0x1b247d)[_0x392c('0x4c')];return _0x8612cb<this[_0x392c('0xe6')]?this['_startingVersion']:_0x8612cb;}['_createInitialRevision'](_0x2df8b8){const _0x4244f1=this[_0x392c('0xd')][_0x392c('0x5f')](this[_0x392c('0xd')][_0x392c('0x6e')]-0x1);if(_0x4244f1)this[_0x392c('0x28')]=_0x4244f1['id'];else{const _0x41ea71=!this[_0x392c('0x5')][_0x392c('0x97')]['document'][_0x392c('0x4d')]['find'](_0x28c600=>this[_0x392c('0x5')][_0x392c('0x97')][_0x392c('0x2')](_0x28c600)),_0x5954df=this[_0x392c('0x5')][_0x392c('0x6')][_0x392c('0xde')](_0x392c('0xa4'))['me']['id'],_0x99eb9=_0x2a795c(this['editor'][_0x392c('0xf')],_0x41ea71?_0x392c('0xe5'):_0x392c('0x9c'));this[_0x392c('0xfb')]({'from':_0x2df8b8,'to':_0x2df8b8,'id':this[_0x392c('0x28')],'name':_0x99eb9,'creatorId':_0x5954df});}}[_0x392c('0x82')](_0x195511){const _0x57a2a0=this[_0x392c('0x63')][_0x392c('0xea')]();this['currentRevision']=this[_0x392c('0xd')][_0x392c('0x5f')](_0x57a2a0),this[_0x392c('0xfe')]||(this['currentRevision']=this[_0x392c('0xfb')]({'from':_0x195511,'to':_0x195511,'id':_0x57a2a0,'name':'','creatorId':null}));}['_makeRevision']({name:_0x3eaa8a,from:_0x7c23f6,to:_0x3d771f,creatorId:_0x57f7f4,id:_0x560f05}){const _0x30e88c=this['buildRevisionData']({'from':_0x7c23f6,'to':_0x3d771f});_0x30e88c['name']=_0x3eaa8a,_0x30e88c['creatorId']=_0x57f7f4,_0x30e88c['id']=_0x560f05;const _0x340b9c=this[_0x392c('0xee')](_0x30e88c);return this['adapter']&&this[_0x392c('0xca')](_0x30e88c['id'],_0x30e88c,!0x0),_0x340b9c;}['_setConversion'](){this[_0x392c('0x5')][_0x392c('0x5e')][_0x392c('0xc3')]('dataDowncast')[_0x392c('0xa')]({'model':_0x392c('0xf1')});}[_0x392c('0x48')](_0x3e78aa){return(_0x3e78aa=_0x3e78aa[_0x392c('0x47')](_0x423007=>!_0x423007[_0x392c('0xe')]||_0x392c('0xd3')!==_0x423007[_0x392c('0xe')]&&_0x392c('0x9f')!==_0x423007[_0x392c('0xe')]))[_0x392c('0xa1')](_0x48eeb2=>{'string'!=typeof _0x48eeb2&&(_0x48eeb2[_0x392c('0x25')]=this[_0x392c('0x48')](_0x48eeb2['children']),_0x48eeb2['attributes']=_0x48eeb2['attributes'][_0x392c('0x47')](_0x56b183=>!_0x56b183[0x0][_0x392c('0x37')](_0x392c('0xa2'))));}),_0x3e78aa;}}function J(_0x1f612c,_0x4aa653){const _0x461f9b=_0x4aa653[_0x392c('0x1e')][_0x392c('0xcb')]['document'];if(_0x392c('0xd0')==typeof _0x1f612c)return new _0x2de5cd(_0x461f9b,_0x1f612c);{const _0x1b90ad=_0x1f612c[_0x392c('0x25')][_0x392c('0x3c')](_0x39791d=>J(_0x39791d,_0x4aa653));return new(B[_0x1f612c[(_0x392c('0x74'))]]||_0x213095)(_0x461f9b,_0x1f612c['name'],_0x1f612c[_0x392c('0x12')],_0x1b90ad);}}class H{constructor(_0x3ec5bf){this[_0x392c('0x5')]=_0x3ec5bf,this[_0x392c('0x9b')]=new Map(),this[_0x392c('0xc1')]=-0x1,this[_0x392c('0xf9')]=-0x1,this['_markers']=new Map(),this[_0x392c('0x51')]=new Map(),this[_0x392c('0x103')]=new Map(),this[_0x392c('0x45')]=new Map(),this[_0x392c('0x67')]=new Map(),this['_idsRoots']=new Map(),this[_0x392c('0x77')]=new Map(),this['_touched']=new Map(),this[_0x392c('0x81')]=new Map(),this['_touchedRoots']=new Map(),this[_0x392c('0x46')]=0x1;}['init'](_0x5aa913){this[_0x392c('0x5a')]=_0x5aa913;const _0x3b0456=new Map(),_0x42011e=new Map(),_0x3a985d=this[_0x392c('0x5')][_0x392c('0x97')][_0x392c('0xb2')][_0x392c('0x4d')]['map'](_0x41020c=>_0x41020c['rootName']);for(const _0x5d00d1 of _0x3a985d){const _0x19618d=this['editor']['model'][_0x392c('0xb2')][_0x392c('0x7e')](_0x5d00d1),_0x5d16d0=q(_0x19618d);_0x3b0456[_0x392c('0x24')](_0x5d00d1,_0x5d16d0),_0x42011e[_0x392c('0x24')](_0x5d00d1,Object[_0x392c('0x9')](_0x19618d[_0x392c('0xc0')]()));}const _0x38851f=Array[_0x392c('0x68')](this[_0x392c('0x5')][_0x392c('0x97')][_0x392c('0xd1')])[_0x392c('0x3c')](_0x2e7e35=>[_0x2e7e35[_0x392c('0xe')],_0x2e7e35[_0x392c('0x2a')]()]),_0x3aa282=this[_0x392c('0x5a')][_0x392c('0xa5')];this[_0x392c('0x2d')](_0x3aa282,_0x3b0456,_0x38851f,_0x42011e),this[_0x392c('0x1b')]=this[_0x392c('0x46')];const _0x270e9e=new Map(),_0x586210=new Map();for(const _0x5ce9c7 of _0x3a985d){const _0x2fcb08=G(_0x5ce9c7);_0x270e9e[_0x392c('0x24')](_0x5ce9c7,_0x2fcb08),_0x586210[_0x392c('0x24')](_0x5ce9c7,{});}this[_0x392c('0x2d')](Number[_0x392c('0xa6')],_0x270e9e,[],_0x586210);}[_0x392c('0x4b')](_0x59e57c,_0x312aad){if(this['_lastFrom']===_0x59e57c&&this[_0x392c('0xf9')]<=_0x312aad)this[_0x392c('0x9b')][_0x392c('0x36')]>0x1&&this[_0x392c('0x15')](this[_0x392c('0xf9')]),this[_0x392c('0xc7')](this[_0x392c('0xf9')],_0x312aad,!0x0);else{if(!this[_0x392c('0x9b')][_0x392c('0x7')](_0x59e57c)){const _0x34cd05=this[_0x392c('0xfa')](_0x59e57c);this[_0x392c('0xf0')](_0x34cd05,_0x59e57c,!0x1);}this['_calculateMetaData'](_0x59e57c,_0x312aad,!0x0);}return this[_0x392c('0xc1')]=_0x59e57c,this[_0x392c('0xf9')]=_0x312aad,this[_0x392c('0xb4')]();}[_0x392c('0x58')](_0x498098){this[_0x392c('0xbf')](),this[_0x392c('0xc1')]=_0x498098['fromVersion'],this[_0x392c('0xf9')]=_0x498098[_0x392c('0x4c')];for(const _0x168dae in _0x498098[_0x392c('0xc')]){const _0x576a2d=_0x498098[_0x392c('0xc')][_0x168dae][_0x392c('0x78')],_0x4cb34d=_0x4d9438(_0x498098['diffData'][_0x168dae][_0x392c('0xef')])||{},_0x24e57e=this[_0x392c('0xc6')](_0x498098[_0x392c('0xc')][_0x168dae]['deletions']);_0x24e57e[_0x392c('0x99')]=_0x168dae,_0x24e57e[_0x392c('0x8d')]=!_0x576a2d||!_0x576a2d[_0x392c('0x2e')],_0x24e57e['isAttached']=()=>_0x24e57e['_isAttached'],this[_0x392c('0x45')][_0x392c('0x24')](_0x168dae,_0x24e57e),this[_0x392c('0x67')][_0x392c('0x24')](_0x168dae,_0x4cb34d),_0x576a2d&&this[_0x392c('0xff')][_0x392c('0x24')](_0x168dae,_0x576a2d);const _0x14e408=this[_0x392c('0x0')](_0x24e57e);this[_0x392c('0x77')][_0x392c('0x24')](_0x168dae,_0x14e408);for(const [_0xee5d60,_0x33e24e]of _0x24e57e[_0x392c('0xd1')]){if(!_0xee5d60[_0x392c('0x37')]('revision:'))continue;const _0x429306=_0xee5d60['split'](':')[0x2];for(const _0x402992 of _0x33e24e[_0x392c('0x71')]({'singleCharacters':!0x0})){const _0x4ec7ac=this[_0x392c('0xb8')](_0x402992),_0x55ecbb=_0x392c('0x104')==_0x402992['type']?_0x402992['previousPosition']['path'][_0x392c('0xcd')](0x0,-0x1):_0x402992[_0x392c('0x17')]['path'],_0x40058e=_0x14e408[_0x392c('0xe8')](_0x55ecbb)[_0x392c('0x80')](_0x4ec7ac);this[_0x392c('0x43')][_0x392c('0x24')](_0x40058e,{'userId':_0x429306});}}}this[_0x392c('0x1b')]=this[_0x392c('0x46')];const _0x15b117=[...Array(this[_0x392c('0x46')])['keys']()][_0x392c('0xcd')](0x1)[_0x392c('0x47')](_0x40fd51=>!this[_0x392c('0x43')][_0x392c('0x7')](_0x40fd51));let _0x4cb4b2=0x0;const _0x1af8c2=new Map();for(const _0xd4b6bf in _0x498098['diffData']){const _0x3dbd44=_0x498098['diffData'][_0xd4b6bf]['attachChange'],_0x17a35a=_0x4d9438(_0x498098[_0x392c('0xc')][_0xd4b6bf][_0x392c('0x9d')])||{},_0x26d7bd=this[_0x392c('0xc6')](_0x498098[_0x392c('0xc')][_0xd4b6bf][_0x392c('0x7b')]);_0x26d7bd[_0x392c('0x99')]=_0xd4b6bf,_0x26d7bd[_0x392c('0x8d')]=!_0x3dbd44||_0x3dbd44[_0x392c('0x2e')],_0x26d7bd[_0x392c('0x2e')]=()=>_0x26d7bd[_0x392c('0x8d')],this[_0x392c('0x51')][_0x392c('0x24')](_0xd4b6bf,_0x26d7bd),this['_diffRootsAttributes'][_0x392c('0x24')](_0xd4b6bf,_0x17a35a);const _0x482e40=this[_0x392c('0x0')](_0x26d7bd,Number[_0x392c('0xa6')]);this[_0x392c('0xb7')][_0x392c('0x24')](_0xd4b6bf,_0x482e40),_0x1af8c2[_0x392c('0x24')](_0xd4b6bf,_0x26d7bd[_0x392c('0x2e')]()?_0x17a35a:{});for(const [_0x327998,_0x543bd1]of _0x26d7bd[_0x392c('0xd1')]){if(!_0x327998[_0x392c('0x37')](_0x392c('0x23')))continue;const _0x2da33e=_0x327998[_0x392c('0x75')](':')[0x2];for(const _0x568f55 of _0x543bd1[_0x392c('0x71')]({'singleCharacters':!0x0})){const _0x1a5b41=this[_0x392c('0xb8')](_0x568f55),_0x2fc4ee=this[_0x392c('0x46')]++,_0x2a1308=_0x392c('0x104')==_0x568f55[_0x392c('0x74')]?_0x568f55['previousPosition'][_0x392c('0x4f')][_0x392c('0xcd')](0x0,-0x1):_0x568f55[_0x392c('0x17')][_0x392c('0x4f')];_0x482e40[_0x392c('0xe8')](_0x2a1308)[_0x392c('0x49')](_0x1a5b41,_0x2fc4ee),this['_touched']['set'](_0x2fc4ee,{'userId':_0x2da33e});}}for(const _0x2b7399 of this[_0x392c('0x5')][_0x392c('0x97')]['createRangeIn'](_0x26d7bd)['getWalker']({'singleCharacters':!0x0})){const _0x489c23=this['_getVidAttributeName'](_0x2b7399),_0xe32b85=_0x392c('0x104')==_0x2b7399['type']?_0x2b7399['previousPosition'][_0x392c('0x4f')]['slice'](0x0,-0x1):_0x2b7399[_0x392c('0x17')][_0x392c('0x4f')],_0x544271=_0x482e40[_0x392c('0xe8')](_0xe32b85);_0x544271[_0x392c('0x80')](_0x489c23)>0x0||_0x544271[_0x392c('0x49')](_0x489c23,_0x15b117[_0x4cb4b2++]);}for(const [_0x1df782,_0xe6568d]of _0x26d7bd[_0x392c('0xd1')])_0x1df782[_0x392c('0x37')]('revision:')||this[_0x392c('0x3e')][_0x392c('0x24')](_0x1df782,_0xe6568d);}const _0x174e17=G(_0x392c('0xbd'));this['_baseRoots']['set'](_0x392c('0xbd'),_0x174e17),this['_baseIdsRoots'][_0x392c('0x24')](_0x392c('0xbd'),this[_0x392c('0x0')](_0x174e17,0x1));const _0x468b60=G(_0x392c('0xbd'));this[_0x392c('0x51')][_0x392c('0x24')](_0x392c('0xbd'),_0x468b60),this['_idsRoots'][_0x392c('0x24')]('$graveyard',this[_0x392c('0x0')](_0x468b60,0x1));const _0x14196d=Array[_0x392c('0x68')](this[_0x392c('0x51')])[_0x392c('0x3c')](([_0x5c7236,_0x886ac8])=>[_0x5c7236,q(_0x886ac8)]);this[_0x392c('0x2d')](this['_lastTo'],_0x14196d,this[_0x392c('0x3e')],_0x1af8c2);}[_0x392c('0xc6')](_0x291089){const _0xa4f768=JSON[_0x392c('0x1')](_0x291089),_0x1bdac2=this[_0x392c('0x5')][_0x392c('0x1e')]['view'][_0x392c('0xb2')],_0x359925=new _0x1378d0(_0x1bdac2,_0xa4f768[_0x392c('0x3c')](_0x314e77=>J(_0x314e77,this[_0x392c('0x5')])));return this[_0x392c('0x5')]['data'][_0x392c('0xba')](_0x359925);}[_0x392c('0x2d')](_0x5dda62,_0x4e21d6,_0x9e39,_0x34d7ab){const _0x57d178=new Map(_0x4e21d6),_0x1c8aca=new Map(_0x4d9438(_0x34d7ab)),_0x4db0a1=new Map();for(const [_0x3bc62d,_0x1904dc]of _0x9e39)_0x4db0a1[_0x392c('0x24')](_0x3bc62d,{'start':_0x1904dc[_0x392c('0xc8')][_0x392c('0xf4')](),'end':_0x1904dc[_0x392c('0x4a')][_0x392c('0xf4')](),'rootName':_0x1904dc[_0x392c('0xc2')][_0x392c('0x99')]});this['_savedMetaData'][_0x392c('0x24')](_0x5dda62,{'roots':_0x57d178,'markers':_0x4db0a1,'rootsAttributes':_0x1c8aca});}[_0x392c('0x15')](_0x4464b1){this[_0x392c('0x9b')][_0x392c('0xe7')](_0x4464b1);}['reInit'](){this['_reset'](),this[_0x392c('0xc1')]=-0x1,this['_lastTo']=-0x1,this['_savedMetaData'][_0x392c('0xb1')](),this['init'](this[_0x392c('0x5a')]);}[_0x392c('0xbf')](){this[_0x392c('0x43')][_0x392c('0xb1')](),this['_touchedMarkers'][_0x392c('0xb1')](),this[_0x392c('0xff')][_0x392c('0xb1')](),this[_0x392c('0x51')][_0x392c('0xb1')](),this['_diffRootsAttributes'][_0x392c('0xb1')](),this[_0x392c('0x45')][_0x392c('0xb1')](),this['_baseRootsAttributes'][_0x392c('0xb1')](),this['_idsRoots']['clear'](),this[_0x392c('0x77')][_0x392c('0xb1')](),this['_markers'][_0x392c('0xb1')](),this['_revisionId']=0x1,this[_0x392c('0x1b')]=this[_0x392c('0x46')];}[_0x392c('0x0')](_0x1f4c29,_0x4abbff=null){let _0x521828=null;_0x1f4c29['is'](_0x392c('0xa3'))||(_0x521828=new _0x36ab16(_0x1f4c29[_0x392c('0xe')],{'vid_start':null===_0x4abbff?this[_0x392c('0x46')]++:_0x4abbff++}));const _0x1d3671=[];for(const _0xa8921a of _0x1f4c29['getChildren']())if(_0xa8921a['is'](_0x392c('0x6b'))){_0x1d3671[_0x392c('0xb0')](this[_0x392c('0x0')](_0xa8921a,_0x4abbff));const _0x2ecf20=_0x1d3671[_0x1d3671[_0x392c('0x6e')]-0x1];null!==_0x4abbff&&(_0x4abbff=_0x2ecf20['is'](_0x392c('0x6b'),_0x392c('0x65'))?_0x2ecf20[_0x392c('0x80')](_0x392c('0x3d'))+0x1:_0x2ecf20[_0x392c('0x80')](_0x392c('0xaa'))+0x1);}else for(let _0x349532=0x0;_0x349532<_0xa8921a[_0x392c('0xc4')];_0x349532++)_0x1d3671[_0x392c('0xb0')](new _0x36ab16('$text',{'vid':null===_0x4abbff?this[_0x392c('0x46')]++:_0x4abbff++}));if(_0x1f4c29['is']('documentFragment')){const _0x41458c=G(_0x1f4c29[_0x392c('0x99')]);return _0x41458c['_insertChild'](0x0,_0x1d3671),_0x41458c;}return _0x521828[_0x392c('0x49')](_0x392c('0xaa'),null===_0x4abbff?this['_revisionId']++:_0x4abbff++),_0x521828[_0x392c('0x73')](0x0,_0x1d3671),_0x521828;}[_0x392c('0xf0')](_0x133810,_0x35d32e,_0x508e28){this[_0x392c('0xbf')]();const {roots:_0x4c821f,markers:_0xc9c45f,rootsAttributes:_0x4cc96a}=this[_0x392c('0x9b')][_0x392c('0xde')](_0x133810);this[_0x392c('0x45')]=new Map(_0x4c821f),this['_baseRootsAttributes']=new Map(_0x4d9438(_0x4cc96a));for(const [_0x5213d0,_0x3e0ee7]of this[_0x392c('0x45')])if(_0x392c('0xbd')!==_0x5213d0&&(this[_0x392c('0x51')][_0x392c('0x24')](_0x5213d0,q(_0x3e0ee7)),this[_0x392c('0x103')]=new Map(_0x4d9438(_0x4cc96a)),_0x508e28)){const _0x24cf9f=this[_0x392c('0x46')];this[_0x392c('0xb7')][_0x392c('0x24')](_0x5213d0,this[_0x392c('0x0')](_0x3e0ee7)),this[_0x392c('0x77')][_0x392c('0x24')](_0x5213d0,this[_0x392c('0x0')](_0x3e0ee7,_0x24cf9f));}this[_0x392c('0x1b')]=this[_0x392c('0x46')],this[_0x392c('0x51')][_0x392c('0x24')](_0x392c('0xbd'),q(this[_0x392c('0x45')][_0x392c('0xde')](_0x392c('0xbd')))),_0x508e28&&this[_0x392c('0xb7')]['set'](_0x392c('0xbd'),this['_makeIdsRoot'](this[_0x392c('0x45')][_0x392c('0xde')]('$graveyard')));for(const [_0x3a98bb,_0x285f82]of _0xc9c45f){const _0x323581=this[_0x392c('0x45')][_0x392c('0xde')](_0x285f82[_0x392c('0x99')]),_0x1a635f=this[_0x392c('0x51')][_0x392c('0xde')](_0x285f82[_0x392c('0x99')]),_0x2f4eb2=new _0x26052a(this[_0x392c('0xb3')](_0x285f82[_0x392c('0xc8')],_0x323581),this[_0x392c('0xb3')](_0x285f82[_0x392c('0x4a')],_0x323581)),_0x4605f6=this[_0x392c('0xe1')](_0x2f4eb2,_0x1a635f);_0x323581[_0x392c('0xd1')][_0x392c('0x24')](_0x3a98bb,_0x2f4eb2),this[_0x392c('0x3e')][_0x392c('0x24')](_0x3a98bb,_0x4605f6);}this[_0x392c('0xc7')](_0x133810,_0x35d32e,_0x508e28);}[_0x392c('0xc7')](_0x4b548c,_0x1dc1ae,_0x1d8d54){for(const _0x1934a0 of this['source']['getOperations'](_0x4b548c,_0x1dc1ae))this[_0x392c('0x86')](_0x1934a0,_0x1d8d54);for(const _0x4e2826 of this[_0x392c('0x51')][_0x392c('0xae')]())_0x4e2826['markers'][_0x392c('0xb1')]();for(const [_0x503370,_0x1f8451]of this['_markers']){this['_diffRoots'][_0x392c('0xde')](_0x1f8451['root'][_0x392c('0x99')])[_0x392c('0xd1')]['set'](_0x503370,_0x1f8451[_0x392c('0xf4')]());}const _0x1a4b3d=new Map(),_0x1fa6ba=new Map();for(const [_0x51d5f4,_0x40e403]of this[_0x392c('0x51')])_0x1a4b3d[_0x392c('0x24')](_0x51d5f4,q(_0x40e403)),_0x1fa6ba[_0x392c('0x24')](_0x51d5f4,this[_0x392c('0x103')][_0x392c('0xde')](_0x51d5f4));this['_saveMetaData'](_0x1dc1ae,_0x1a4b3d,this[_0x392c('0x3e')],_0x1fa6ba);}[_0x392c('0xfa')](_0x3553c9){const _0x51e15f=Array[_0x392c('0x68')](this[_0x392c('0x9b')]['keys']());_0x51e15f[_0x392c('0x3a')]((_0x85f316,_0x1dca6a)=>_0x85f316-_0x1dca6a),_0x51e15f[_0x392c('0x3')]();for(const _0x55d5b8 of _0x51e15f)if(_0x55d5b8<_0x3553c9)return _0x55d5b8;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3c75ea,_0x399d5b){const _0x4516b1=Array[_0x392c('0x68')](_0x399d5b[_0x392c('0xd1')])['map'](([_0x1b88ba,_0x2ffab8])=>[_0x1b88ba,this[_0x392c('0xe1')](_0x2ffab8,_0x3c75ea)]);_0x3c75ea[_0x392c('0xd1')]=new Map(_0x4516b1);}[_0x392c('0x31')](_0x52ce6c){for(const _0x348b03 of this[_0x392c('0x3e')][_0x392c('0xae')]()){const _0x24d25b=_0x348b03[_0x392c('0x6c')](_0x52ce6c),_0x5820bf=_0x26052a['_createFromRanges'](_0x24d25b);_0x348b03[_0x392c('0xc8')]=_0x5820bf[_0x392c('0xc8')],_0x348b03[_0x392c('0x4a')]=_0x5820bf['end'];}}[_0x392c('0x86')](_0x3c6598,_0x519e84){if(_0x392c('0x6a')==_0x3c6598[_0x392c('0x74')]||'detachRoot'==_0x3c6598['type'])return void this[_0x392c('0x94')](_0x3c6598,_0x519e84);if(_0x392c('0x5d')==_0x3c6598[_0x392c('0x74')]){const _0x2cd265=_0x3c6598[_0x392c('0x32')][_0x392c('0xc2')][_0x392c('0x99')];this[_0x392c('0x51')][_0x392c('0x7')](_0x2cd265)||(this['_diffRoots'][_0x392c('0x24')](_0x2cd265,G(_0x2cd265,!0x0)),this['_diffRootsAttributes'][_0x392c('0x24')](_0x2cd265,{}),_0x519e84&&this[_0x392c('0xb7')][_0x392c('0x24')](_0x2cd265,G(_0x2cd265,!0x0)));}else{if(_0x392c('0x26')==_0x3c6598[_0x392c('0x74')]||'removeRootAttribute'==_0x3c6598['type']||_0x392c('0x105')==_0x3c6598['type'])return void this[_0x392c('0x21')](_0x3c6598);}const _0x5071c0=this[_0x392c('0xe4')](_0x3c6598,this[_0x392c('0x51')]);if(_0x392c('0xaf')!==_0x3c6598[_0x392c('0x74')]&&(_0x5071c0['_execute'](),this[_0x392c('0x31')](_0x5071c0)),_0x519e84)switch(_0x5071c0[_0x392c('0x74')]){case _0x392c('0x5d'):this[_0x392c('0x54')](_0x3c6598);break;case'move':case _0x392c('0xac'):case _0x392c('0xdb'):this['_handleMoveOperation'](_0x3c6598);break;case _0x392c('0x55'):this[_0x392c('0x70')](_0x3c6598);break;case _0x392c('0x75'):this[_0x392c('0xa0')](_0x3c6598);break;case _0x392c('0xaf'):this[_0x392c('0x1c')](_0x3c6598);}}[_0x392c('0xe4')](_0x28ef4b,_0x534e72){const _0x1edbec=_0x28ef4b[_0x392c('0xf4')]();return _0x1edbec['_authorId']=_0x28ef4b['_authorId'],this['_fixOperation'](_0x1edbec,_0x534e72),_0x1edbec;}[_0x392c('0x13')](_0x2e2a74){return _0x2e2a74[_0x392c('0x3c')](_0x4f055c=>{const _0x244fa2=this[_0x392c('0xb8')](_0x4f055c);return Number(_0x4f055c[_0x392c('0x33')][_0x392c('0x80')](_0x244fa2));});}[_0x392c('0x4e')](_0x304c00,_0x256a52){if(_0x304c00['is']('element','$text'))_0x256a52[_0x392c('0xb0')]({'item':_0x304c00,'type':_0x392c('0x39')});else{_0x304c00['is']('element')&&_0x256a52['push']({'item':_0x304c00,'type':_0x392c('0xfd')});for(const _0x5adb30 of _0x304c00['getChildren']())this[_0x392c('0x4e')](_0x5adb30,_0x256a52);_0x304c00['is']('element')&&_0x256a52['push']({'item':_0x304c00,'type':_0x392c('0x104')});}return _0x256a52;}['_getState'](){const _0x54e555=new Map(this[_0x392c('0x43')]),_0x1afd3d=new Map(_0x54e555),_0x4c92e0=new Map(),_0x40c6f4={'insertions':{},'deletions':{}},_0x7e7b03={'insertions':{},'deletions':{}},_0x12e461=new Map(),_0xf53656=new Set([...this[_0x392c('0x45')][_0x392c('0x101')](),...this['_diffRoots']['keys']()]);_0xf53656[_0x392c('0xe7')](_0x392c('0xbd'));for(const _0x10ab08 of _0xf53656){const _0x1acc44=this[_0x392c('0x51')]['get'](_0x10ab08)||G(_0x10ab08,!0x1),_0x8b23ec=this['_baseRoots'][_0x392c('0xde')](_0x10ab08)||G(_0x10ab08,!0x1);_0x1acc44[_0x392c('0x2e')]()||_0x8b23ec[_0x392c('0x2e')]()?(_0x40c6f4['insertions'][_0x10ab08]=q(_0x1acc44),_0x40c6f4[_0x392c('0x100')][_0x10ab08]=q(_0x8b23ec),this[_0x392c('0x29')](_0x40c6f4[_0x392c('0x100')][_0x10ab08],_0x8b23ec),this[_0x392c('0x29')](_0x40c6f4['insertions'][_0x10ab08],_0x1acc44),_0x7e7b03[_0x392c('0x7b')][_0x10ab08]=this[_0x392c('0x4e')](this[_0x392c('0xb7')]['get'](_0x10ab08),[]),_0x7e7b03[_0x392c('0x100')][_0x10ab08]=this[_0x392c('0x4e')](this[_0x392c('0x77')]['get'](_0x10ab08)||G(_0x10ab08,!0x1),[])):_0xf53656[_0x392c('0xe7')](_0x10ab08);}for(const _0x507ec0 of _0xf53656){const _0x2d551f=_0x7e7b03['insertions'][_0x507ec0];for(const _0x5da092 of _0x2d551f){const _0x5cf425=this[_0x392c('0xb8')](_0x5da092),_0x8d1d81=_0x5da092[_0x392c('0x33')][_0x392c('0x80')](_0x5cf425);_0x1afd3d[_0x392c('0xe7')](_0x8d1d81),_0x8d1d81>=this[_0x392c('0x1b')]&&_0x4c92e0['set'](_0x8d1d81,_0x54e555['get'](_0x8d1d81));}}for(const _0x4ee9dc of _0xf53656){const _0x3dc55e=_0x7e7b03['insertions'][_0x4ee9dc],_0x479f47=this[_0x392c('0x13')](_0x7e7b03[_0x392c('0x100')][_0x4ee9dc]);let _0x505877=0x0;for(const _0xf1bd46 of _0x3dc55e){const _0x5ba638=this[_0x392c('0xb8')](_0xf1bd46),_0x23d0d0=_0xf1bd46[_0x392c('0x33')][_0x392c('0x80')](_0x5ba638);if(!_0x4c92e0[_0x392c('0x7')](_0x23d0d0)&&!_0x12e461[_0x392c('0x7')](_0x23d0d0)){if(_0x1afd3d[_0x392c('0x7')](_0x23d0d0))_0x505877++;else{if(_0x23d0d0!=_0x479f47[_0x505877]){const _0x1ea62e=_0x54e555[_0x392c('0xde')](_0x23d0d0)||_0x54e555[_0x392c('0xde')](_0x479f47[_0x505877]);for(;_0x23d0d0!=_0x479f47[_0x505877];)_0x1afd3d[_0x392c('0x7')](_0x479f47[_0x505877])||(_0x12e461[_0x392c('0x24')](_0x479f47[_0x505877],_0x1ea62e),_0x54e555[_0x392c('0x24')](_0x479f47[_0x505877],_0x1ea62e)),_0x505877++;}_0x505877++;}}}}for(const _0x4c7916 of _0xf53656){const _0x534b24=_0x7e7b03[_0x392c('0x7b')][_0x4c7916];for(const _0x38d69d of _0x534b24){const _0x388f37=this[_0x392c('0xb8')](_0x38d69d),_0x29a8e7=_0x38d69d[_0x392c('0x33')][_0x392c('0x80')](_0x388f37);if(_0x12e461['has'](_0x29a8e7)){const _0x1f2013=_0x12e461[_0x392c('0xde')](_0x29a8e7);_0x1afd3d[_0x392c('0x7')](_0x29a8e7)||_0x1afd3d['set'](_0x29a8e7,{..._0x1f2013}),_0x4c92e0[_0x392c('0x24')](_0x29a8e7,{..._0x1f2013});}}}for(const _0x1a3875 of _0x1afd3d['keys']())_0x1a3875>=this['_startingRevisionId']&&_0x1afd3d[_0x392c('0xe7')](_0x1a3875);const _0x40d04a=new Map();for(const _0x305555 of _0xf53656){let _0x1b5054=_0x7e7b03[_0x392c('0x7b')][_0x305555];for(const _0x589016 of _0x1b5054)if(_0x589016[_0x392c('0x33')]['is'](_0x392c('0x6b'),_0x392c('0x79'))){const _0x1db0cb=this['_getVidAttributeName'](_0x589016),_0xb7bb5e=_0x589016[_0x392c('0x33')][_0x392c('0x80')](_0x1db0cb);if(_0x4c92e0[_0x392c('0x7')](_0xb7bb5e)){const _0x41ab32=_0x589016[_0x392c('0x33')][_0x392c('0x9a')][_0x392c('0x9a')][_0x392c('0x80')](_0x392c('0x35')),_0x468632=_0x40d04a[_0x392c('0xde')](_0x41ab32)||new Set();_0x468632['add'](_0x4c92e0[_0x392c('0xde')](_0xb7bb5e)['userId']),_0x40d04a[_0x392c('0x24')](_0x41ab32,_0x468632);}}_0x1b5054=_0x7e7b03[_0x392c('0x100')][_0x305555];for(const _0x4baacb of _0x1b5054)if(_0x4baacb[_0x392c('0x33')]['is']('element',_0x392c('0x79'))){const _0x37af38=this[_0x392c('0xb8')](_0x4baacb),_0x23c99c=_0x4baacb[_0x392c('0x33')][_0x392c('0x80')](_0x37af38);if(_0x1afd3d['has'](_0x23c99c)){const _0x92ff4a=_0x4baacb[_0x392c('0x33')][_0x392c('0x9a')]['parent'][_0x392c('0x80')]('vid_start'),_0x107bb2=_0x40d04a[_0x392c('0xde')](_0x92ff4a)||new Set();_0x107bb2[_0x392c('0x106')](_0x1afd3d[_0x392c('0xde')](_0x23c99c)['userId']),_0x40d04a[_0x392c('0x24')](_0x92ff4a,_0x107bb2);}}for(const _0xf687b8 of _0x40d04a[_0x392c('0x101')]())(_0x4c92e0['has'](_0xf687b8)||_0x1afd3d[_0x392c('0x7')](_0xf687b8))&&_0x40d04a[_0x392c('0xe7')](_0xf687b8);}for(const _0x5a1e49 of _0xf53656){const _0x69780c=_0x7e7b03[_0x392c('0x7b')][_0x5a1e49];let _0x2f2bf5=null,_0x2141a8=null;for(const _0x52d939 of _0x69780c){const _0x1fe638=this['_getVidAttributeName'](_0x52d939),_0x299ca9=_0x52d939[_0x392c('0x33')]['getAttribute'](_0x1fe638),_0x241e53=_0x40d04a[_0x392c('0xde')](_0x299ca9);_0x241e53&&'elementStart'==_0x52d939[_0x392c('0x74')]&&(_0x2f2bf5=Array[_0x392c('0x68')](_0x241e53)[0x0],_0x2141a8=_0x52d939[_0x392c('0x33')][_0x392c('0x80')]('vid_end')),_0x2f2bf5&&(_0x1afd3d[_0x392c('0x24')](_0x299ca9,{'userId':_0x2f2bf5}),_0x4c92e0[_0x392c('0x24')](_0x299ca9,{'userId':_0x2f2bf5})),_0x299ca9==_0x2141a8&&(_0x2f2bf5=null,_0x2141a8=null);}}const _0x20b63a={},_0x8762b=new Set();for(const _0x235115 of _0xf53656){const _0x21253b=_0x40c6f4['deletions'][_0x235115],_0x506594=_0x40c6f4[_0x392c('0x7b')][_0x235115];for(const {userId:_0x188763}of this[_0x392c('0x81')]['values']())null!==_0x188763&&_0x8762b[_0x392c('0x106')](_0x188763);for(const {userId:_0x5ba5a4}of this['_touchedRoots']['values']())null!==_0x5ba5a4&&_0x8762b['add'](_0x5ba5a4);this[_0x392c('0xf2')](_0x506594,_0x7e7b03[_0x392c('0x7b')][_0x235115],_0x4c92e0,_0x392c('0x107'),_0x8762b),this[_0x392c('0xf2')](_0x21253b,_0x7e7b03[_0x392c('0x100')][_0x235115],_0x1afd3d,_0x392c('0x52'),_0x8762b),_0x20b63a[_0x235115]={'insertions':this[_0x392c('0xcf')](_0x506594),'deletions':this[_0x392c('0xcf')](_0x21253b),'attachChange':this[_0x392c('0xff')][_0x392c('0xde')](_0x235115)||null,'attributesBefore':_0x4d9438(this[_0x392c('0x67')]['get'](_0x235115))||{},'attributesAfter':_0x4d9438(this[_0x392c('0x103')]['get'](_0x235115))};}return{'diffData':_0x20b63a,'authorsIds':Array[_0x392c('0x68')](_0x8762b)};}[_0x392c('0xf6')](_0x514990){for(const [,_0x5bbcfe]of _0x514990[_0x392c('0xd1')]){const _0x14b872=_0x5bbcfe[_0x392c('0xc8')][_0x392c('0xab')]()[_0x392c('0x47')](_0x29789d=>_0x392c('0x79')==_0x29789d[_0x392c('0xe')]);for(const _0x1f477b of _0x14b872)0x1==_0x1f477b[_0x392c('0x3b')]&&_0x1f477b[_0x392c('0xb9')](0x0)['is']('element',_0x392c('0xb'))&&_0x1f477b[_0x392c('0xb9')](0x0)['_setAttribute']('keepParagraph',!0x0);}}[_0x392c('0xcf')](_0x2a0fe7){this[_0x392c('0xf6')](_0x2a0fe7);const _0x2d8d2a=this[_0x392c('0x5')][_0x392c('0xd7')]['toView'](_0x2a0fe7,{}),_0x3f4c94=Array['from'](_0x2d8d2a[_0x392c('0x8e')]())[_0x392c('0x3c')](_0x4dffe2=>this[_0x392c('0x57')](_0x4dffe2));return JSON[_0x392c('0x96')](_0x3f4c94);}[_0x392c('0x57')](_0x3dbc5a){if(_0x3dbc5a['is']('$text'))return _0x3dbc5a[_0x392c('0xd7')];{const _0x41e11f=_0x3dbc5a;return{'type':Object[_0x392c('0x101')](B)[_0x392c('0x4')](_0x3db162=>_0x3dbc5a instanceof B[_0x3db162]),'name':_0x41e11f[_0x392c('0xe')],'attributes':Array[_0x392c('0x68')](_0x41e11f['getAttributes']()),'children':Array['from'](_0x41e11f[_0x392c('0x8e')]())['map'](_0x320502=>this[_0x392c('0x57')](_0x320502))};}}['_markChanges'](_0x4f564c,_0x47ce39,_0x3e2a44,_0x159751,_0x2f7dbf){let _0x528a77=null,_0x5eeace=null,_0x4ed30e=0x0;const _0x2be7e4=this['editor'][_0x392c('0x97')];for(let _0x1e92b6=0x0;_0x1e92b6<_0x47ce39[_0x392c('0x6e')];_0x1e92b6++){const _0x56dde3=this[_0x392c('0xb8')](_0x47ce39[_0x1e92b6]),_0x54285b=_0x47ce39[_0x1e92b6]['item']['getAttribute'](_0x56dde3),_0x40fbf2=_0x3e2a44['get'](_0x54285b),_0x1356aa=_0x1e92b6==_0x47ce39[_0x392c('0x6e')]-0x1;(!_0x528a77&&_0x40fbf2&&(_0x528a77=_0x40fbf2,_0x5eeace=_0x47ce39[_0x1e92b6]),_0x528a77&&(!_0x40fbf2||_0x40fbf2[_0x392c('0xdd')]!=_0x528a77['userId']))&&(_0x28a015(_0x40fbf2,L(_0x5eeace,_0x4f564c,_0x2be7e4),L(_0x47ce39[_0x1e92b6],_0x4f564c,_0x2be7e4)),_0x528a77=_0x40fbf2||null,_0x5eeace=_0x40fbf2?_0x47ce39[_0x1e92b6]:null),_0x528a77&&_0x1356aa&&_0x28a015(_0x40fbf2,L(_0x5eeace,_0x4f564c,_0x2be7e4),W(_0x47ce39[_0x1e92b6],_0x4f564c,_0x2be7e4));}function _0x28a015(_0x17a359,_0x5a7ab6,_0x266239){const _0x4216bf=_0x528a77['userId'],_0x96c1ef=_0x392c('0x23')+_0x159751+':'+_0x4216bf+':'+_0x4ed30e++,_0x1bc268=_0x2be7e4[_0x392c('0x1f')](_0x5a7ab6,_0x266239);_0x4f564c[_0x392c('0xd1')]['set'](_0x96c1ef,_0x1bc268),null!==_0x4216bf&&_0x2f7dbf['add'](_0x4216bf);}}[_0x392c('0xb8')](_0x38029b){switch(_0x38029b[_0x392c('0x74')]){case _0x392c('0xfd'):return _0x392c('0x35');case'elementEnd':return'vid_end';default:return _0x392c('0x3d');}}[_0x392c('0x62')](_0x285c2c,_0x4fe1a6){_0x285c2c[_0x392c('0x87')]=null;for(const _0x1d0eef in _0x285c2c){const _0x6d6e85=_0x285c2c[_0x1d0eef];if(_0x6d6e85 instanceof _0xddb985){const _0x1b56de=_0x4fe1a6[_0x392c('0xde')](_0x6d6e85[_0x392c('0xc2')]['rootName']);_0x285c2c[_0x1d0eef]=this['_fixPosition'](_0x6d6e85,_0x1b56de);}if(_0x6d6e85 instanceof _0x26052a){const _0x3166e2=_0x4fe1a6['get'](_0x6d6e85[_0x392c('0xc2')][_0x392c('0x99')]);_0x285c2c[_0x1d0eef]=this['_fixRange'](_0x6d6e85,_0x3166e2);}_0x392c('0xc2')===_0x1d0eef&&(_0x285c2c[_0x392c('0xc2')]=_0x4fe1a6[_0x392c('0xde')](_0x285c2c[_0x392c('0xc2')][_0x392c('0x99')]));}}[_0x392c('0xe1')](_0x1a19b2,_0x4e7cb7){return this[_0x392c('0x5')][_0x392c('0x97')]['createRange'](this['_fixPosition'](_0x1a19b2[_0x392c('0xc8')],_0x4e7cb7),this['_fixPosition'](_0x1a19b2[_0x392c('0x4a')],_0x4e7cb7));}[_0x392c('0xb3')](_0x59dfbe,_0x4b3c25){return this['editor'][_0x392c('0x97')][_0x392c('0x91')](_0x4b3c25,_0x59dfbe[_0x392c('0x4f')],_0x59dfbe[_0x392c('0xdf')]);}['_handleInsertOperation'](_0x30fa2e){const _0x11084d=this['_idsRoots'][_0x392c('0xde')](_0x30fa2e[_0x392c('0x32')][_0x392c('0xc2')]['rootName']),_0x577808=this['_fixPosition'](_0x30fa2e[_0x392c('0x32')],_0x11084d),_0x7ce768=null===_0x30fa2e[_0x392c('0x50')]?null:_0x30fa2e[_0x392c('0x50')]||this['editor'][_0x392c('0x6')]['get'](_0x392c('0xa4'))['me']['id'],_0x435c0d=_0x577808[_0x392c('0x9a')],_0x39daf2=this['_revisionId'],_0x28dac8=[];for(const _0x1de569 of _0x30fa2e['nodes'])if(_0x1de569['is'](_0x392c('0x6b')))_0x28dac8[_0x392c('0xb0')](this[_0x392c('0x0')](_0x1de569));else for(let _0x4ab58e=0x0;_0x4ab58e<_0x1de569['offsetSize'];_0x4ab58e++)_0x28dac8[_0x392c('0xb0')](new _0x36ab16(_0x392c('0x65'),{'vid':this[_0x392c('0x46')]++}));const _0x5bd845=this[_0x392c('0x46')];for(let _0x4f2371=_0x39daf2;_0x4f2371<_0x5bd845;_0x4f2371++)this[_0x392c('0x43')][_0x392c('0x24')](_0x4f2371,{'userId':_0x7ce768});_0x435c0d[_0x392c('0x73')](_0x577808[_0x392c('0x38')],_0x28dac8);}[_0x392c('0xc5')](_0x3361d4){(_0x3361d4=this['_cloneOperation'](_0x3361d4,this[_0x392c('0xb7')]))[_0x392c('0x44')]();const _0x54ffc6=null===_0x3361d4[_0x392c('0x50')]?null:_0x3361d4[_0x392c('0x50')]||this[_0x392c('0x5')]['plugins']['get'](_0x392c('0xa4'))['me']['id'],_0x5846c6=_0x3361d4[_0x392c('0x14')](),_0x392512=_0x5846c6[_0x392c('0x9a')],_0x283c38=_0x5846c6['offset'];!function _0x310064(_0x13a844,_0x1e897c,_0xe6c65b,_0x15f621){for(let _0x2d1a34=_0xe6c65b;_0x2d1a34<_0x15f621;_0x2d1a34++){const _0x49de97=_0x1e897c[_0x392c('0xb9')](_0x2d1a34);_0x49de97['is'](_0x392c('0x6b'),_0x392c('0x65'))?_0x13a844[_0x392c('0x24')](_0x49de97[_0x392c('0x80')]('vid'),{'userId':_0x54ffc6}):(_0x13a844[_0x392c('0x24')](_0x49de97[_0x392c('0x80')](_0x392c('0x35')),{'userId':_0x54ffc6}),_0x310064(_0x13a844,_0x49de97,0x0,_0x49de97[_0x392c('0x3b')]),_0x13a844[_0x392c('0x24')](_0x49de97['getAttribute']('vid_end'),{'userId':_0x54ffc6}));}}(this[_0x392c('0x43')],_0x392512,_0x283c38,_0x283c38+_0x3361d4[_0x392c('0x88')]);}[_0x392c('0x70')](_0x3047f2){const _0x191543=null===(_0x3047f2=this[_0x392c('0xe4')](_0x3047f2,this[_0x392c('0xb7')]))[_0x392c('0x50')]?null:_0x3047f2['_authorId']||this[_0x392c('0x5')][_0x392c('0x6')][_0x392c('0xde')]('Users')['me']['id'],_0x5ec0bf=_0x3047f2['targetPosition']['parent'],_0x2b5efd=_0x3047f2['sourcePosition'][_0x392c('0x9a')],_0x197684=_0x5ec0bf['getAttribute'](_0x392c('0xaa')),_0xb11c96=_0x2b5efd[_0x392c('0x80')]('vid_start');_0x5ec0bf[_0x392c('0x49')](_0x392c('0xaa'),_0x2b5efd['getAttribute'](_0x392c('0xaa'))),_0x2b5efd[_0x392c('0x49')](_0x392c('0xaa'),_0x197684),this['_touched'][_0x392c('0x24')](_0xb11c96,{'userId':_0x191543}),this['_touched'][_0x392c('0x24')](_0x197684,{'userId':_0x191543}),_0x3047f2[_0x392c('0x44')]();}[_0x392c('0xa0')](_0x408f9d){const _0x4e75c0=null===(_0x408f9d=this[_0x392c('0xe4')](_0x408f9d,this[_0x392c('0xb7')]))['_authorId']?null:_0x408f9d[_0x392c('0x50')]||this[_0x392c('0x5')][_0x392c('0x6')][_0x392c('0xde')]('Users')['me']['id'],_0x13dd55=_0x408f9d[_0x392c('0x8')],_0x2505a7=_0x408f9d['splitPosition'][_0x392c('0x9a')];_0x408f9d[_0x392c('0x44')]();const _0xad5c07=_0x2505a7[_0x392c('0x80')](_0x392c('0xaa')),_0x51fa02=_0x408f9d['insertionPosition']['nodeAfter'];if(_0x13dd55){const _0xf9e42d=_0x51fa02['getAttribute']('vid_end'),_0x53700d=_0x2505a7[_0x392c('0x80')]('vid_end');_0x2505a7['_setAttribute'](_0x392c('0xaa'),_0xf9e42d),_0x51fa02[_0x392c('0x49')]('vid_end',_0x53700d),this[_0x392c('0x43')][_0x392c('0x24')](_0x2505a7['getAttribute'](_0x392c('0xaa')),{'userId':_0x4e75c0}),this[_0x392c('0x43')][_0x392c('0x24')](_0x51fa02[_0x392c('0x80')](_0x392c('0x35')),{'userId':_0x4e75c0});}else{const _0x1786ed=this['_revisionId']++,_0x54846d=this[_0x392c('0x46')]++;_0x2505a7['_setAttribute'](_0x392c('0xaa'),_0x1786ed),_0x51fa02[_0x392c('0x49')](_0x392c('0x35'),_0x54846d),_0x51fa02[_0x392c('0x49')](_0x392c('0xaa'),_0xad5c07),this[_0x392c('0x43')][_0x392c('0x24')](_0x1786ed,{'userId':_0x4e75c0}),this[_0x392c('0x43')][_0x392c('0x24')](_0x54846d,{'userId':_0x4e75c0});}}[_0x392c('0x1c')](_0x157536){if(!_0x157536[_0x392c('0xbb')])return;const _0x1e4feb=(_0x157536=this[_0x392c('0xe4')](_0x157536,this['_diffRoots']))[_0x392c('0x3f')]?_0x157536['oldRange'][_0x392c('0xc2')]:null,_0x2a234c=_0x157536[_0x392c('0x42')]?_0x157536[_0x392c('0x42')]['root']:null;_0x1e4feb&&this[_0x392c('0x3e')]['delete'](_0x157536[_0x392c('0xe')]),_0x2a234c&&this[_0x392c('0x3e')][_0x392c('0x24')](_0x157536[_0x392c('0xe')],_0x157536[_0x392c('0x42')][_0x392c('0xf4')]());const _0x3ad751=null===_0x157536[_0x392c('0x50')]?null:_0x157536[_0x392c('0x50')]||this[_0x392c('0x5')][_0x392c('0x6')][_0x392c('0xde')](_0x392c('0xa4'))['me']['id'],_0xf60f86=_0x157536[_0x392c('0xe')];if(!this[_0x392c('0x81')][_0x392c('0x7')](_0xf60f86))return void this[_0x392c('0x81')][_0x392c('0x24')](_0xf60f86,{'range':_0x157536[_0x392c('0x3f')],'userId':_0x3ad751});const _0x41f3bb=this[_0x392c('0x81')][_0x392c('0xde')](_0xf60f86),_0x503f99=_0x41f3bb[_0x392c('0x27')],_0x1af80e=_0x157536['newRange'];null==_0x503f99&&null==_0x1af80e||_0x503f99&&_0x1af80e&&_0x503f99['isEqual'](_0x1af80e)?this[_0x392c('0x81')][_0x392c('0xe7')](_0x157536[_0x392c('0xe')]):_0x41f3bb[_0x392c('0xdd')]=_0x3ad751;}[_0x392c('0x94')](_0x348747,_0xe56670){this[_0x392c('0x51')][_0x392c('0x7')](_0x348747[_0x392c('0x99')])?this[_0x392c('0x51')][_0x392c('0xde')](_0x348747[_0x392c('0x99')])[_0x392c('0x8d')]=_0x348747['isAdd']:(this[_0x392c('0x51')][_0x392c('0x24')](_0x348747[_0x392c('0x99')],G(_0x348747['rootName'],!0x0)),this[_0x392c('0x103')][_0x392c('0x24')](_0x348747[_0x392c('0x99')],{}),_0xe56670&&this[_0x392c('0xb7')]['set'](_0x348747[_0x392c('0x99')],G(_0x348747[_0x392c('0x99')],!0x0)));const _0x594c26=null===_0x348747[_0x392c('0x50')]?null:_0x348747['_authorId']||this['editor'][_0x392c('0x6')][_0x392c('0xde')](_0x392c('0xa4'))['me']['id'],_0x223e5b=this[_0x392c('0xff')][_0x392c('0xde')](_0x348747[_0x392c('0x99')]);_0x223e5b&&_0x223e5b['userId']===_0x594c26?this[_0x392c('0xff')][_0x392c('0xe7')](_0x348747[_0x392c('0x99')]):this[_0x392c('0xff')][_0x392c('0x24')](_0x348747['rootName'],{'userId':_0x594c26,'isAttached':_0x348747[_0x392c('0x30')]});}[_0x392c('0x21')](_0x4ecea9){const _0x514240=this['_diffRootsAttributes'][_0x392c('0xde')](_0x4ecea9[_0x392c('0xc2')][_0x392c('0x99')]);null===_0x4ecea9['newValue']?delete _0x514240[_0x4ecea9[_0x392c('0xc9')]]:_0x514240[_0x4ecea9[_0x392c('0xc9')]]=_0x4ecea9[_0x392c('0x40')];}}function q(_0x2bbfb7){const _0x109a74=G(_0x2bbfb7['rootName'],_0x2bbfb7[_0x392c('0x2e')]());for(const _0x86bd13 of _0x2bbfb7[_0x392c('0x8e')]()){const _0x57c623=_0x86bd13[_0x392c('0xfc')](!0x0);_0x109a74[_0x392c('0x5c')](_0x57c623);}return _0x109a74;}function G(_0x4740e5,_0x5b7950=!0x0){const _0x36ab54=new _0x1254c3();return _0x36ab54[_0x392c('0x99')]=_0x4740e5,_0x36ab54[_0x392c('0x8d')]=_0x5b7950,_0x36ab54[_0x392c('0x2e')]=()=>_0x36ab54['_isAttached'],_0x36ab54;}function L(_0xee0b29,_0x8fcdf1,_0x5e8589){const _0x4cf16e=_0x392c('0x104')==_0xee0b29[_0x392c('0x74')]?_0x5e8589[_0x392c('0x60')](_0xee0b29[_0x392c('0x33')],_0x392c('0x4a')):_0x5e8589['createPositionBefore'](_0xee0b29[_0x392c('0x33')]);return _0x5e8589[_0x392c('0x91')](_0x8fcdf1,_0x4cf16e[_0x392c('0x4f')],_0x4cf16e['stickiness']);}function W(_0x4ee0e8,_0x222c3f,_0x562d3d){const _0x24da30=_0x392c('0xfd')==_0x4ee0e8[_0x392c('0x74')]?_0x562d3d['createPositionAt'](_0x4ee0e8['item'],0x0):_0x562d3d[_0x392c('0x8f')](_0x4ee0e8[_0x392c('0x33')]);return _0x562d3d[_0x392c('0x91')](_0x222c3f,_0x24da30[_0x392c('0x4f')],_0x24da30[_0x392c('0xdf')]);}
|
|
23
|
+
const _0x3a5b=['toData','_reset','ready','setSource','useFillerType','_handleRootOperation','deletions','sort','createPositionAt','getRootNames','_handleInsertOperation','isAttached','markers','_startingVersion','_handleRootAttributeOperation','RevisionTracker','default','roots','name','document','finally','_continueCurrentRevision','_handleSplitOperation','add','getLatestVersion','delete','_setAttribute','range','nodeAfter','buildRevisionData','conversion','keys','_loadedStateData','split','collaboration.channelId','text','_setConversion','then','getNodeByPath','_removePendingAction','upcast','path','_handleMarkerOperation','_baseIdsRoots','type','revision','_diffRootsAttributes','_appendChild','find','init','addRevisionData','_savedMetaData','documentFragment','_prepareViewToSave','_saveMetaData','getIndex','loadState','_removeMetaData','adapter','sendBufferedUpdates','addRevision','values','_replaceEditorDataWithRevisionData','resolve','hasContent','attributesBefore','getData','_handleMoveOperation','merge','currentRevision','updateRevisions','pluginName','afterInit','Initial\x20revision','NEGATIVE_INFINITY','marker','PENDING_ACTION_REVISION_HISTORY','_makeRevision','_touchedRoots','authorsIds','includes','offsetSize','parent','isAdd','nodes','data','_handleMergeOperation','_getFromVersion','some','sourcePosition','newValue','childCount','diffData','_applyOperations','editor','filter','set','_lastTo','createPositionBefore','element','vid_end','data-revision-','_fixPosition','createRevision','view','clear','creatorId','position','_startingRevisionId','_fixOperation','_makeModelFromViewString','plugins','_revisionId','_revisionDataBuilder','fromEntries','_bufferUpdate','vid_start','authors','_createInitialRevision','repository','_getVidAttributeName','createPositionAfter','tableCell','end','config','_copyMarkers','shift','toVersion','creator','howMany','markerToData','_getState','getUser','remove','initial','_markers','_update','getRevisionRootsAttributes','insertionPosition','item','dataToMarker','version','root','_idsRoots','saveRevision','_initialRevisionId','dataDowncast','revision:','_execute','startsWith','toModel','_calculateMetaData','_handleOperation','attachChange','rootsAttributes','define','keepParagraph','for','_getViewJson','_isPendingUpdate','createRange','isEqual','_pendingAction','clone','_lastFrom','map','getRevision','_authorId','_insertChild','_clone','_processRootBeforeSave','history','_makeIdsRoot','_diffRoots','_getBaseVids','offset','Users','_touchedMarkers','getAttribute','elementStart','fromVersion','getChild','editing','move','changeRootAttribute','targetPosition','Empty\x20document','getChildren','_createFromRanges','marked','string','getAttributes','isReady','_createCurrentRevision','revisionHistory.resumeUnsavedRevision','_removeRevisionMarkers','max','getWalker','size','parse','rootName','userId','_operations','_isAttached','isEnabled','children','_addPendingAction','newRange','attributes','_transformMarkers','setRevisionData','oldRange','processor','getTime','_cloneOperation','length','revision-start','addRoot','key','_source','model','$graveyard','_generateTape','_baseRoots','_findInsertionIndex','insert','createdAt','getRevisions','getRoot','locale','getRevisionDocumentData','stringify','vid','has','_loadRevisionData','requires','source','baseVersion','_fixRange','reinsert','removeRootAttribute','slice','_loadState','_bufferedUpdates','getOperation','previousPosition','reInit','_getPreviousFrom','getCurrentRevisionId','$text','get','createPositionFromPath','insertions','start','PendingActions','revision-end','attributesAfter','forEach','reverse','_markChanges','graveyardPosition','push','paragraph','bind','elementEnd','initialData','from','_baseRootsAttributes','_touched'];(function(_0x1a62e5,_0x3a5b26){const _0x264e94=function(_0xfbc452){while(--_0xfbc452){_0x1a62e5['push'](_0x1a62e5['shift']());}};_0x264e94(++_0x3a5b26);}(_0x3a5b,0xd2));const _0x264e=function(_0x1a62e5,_0x3a5b26){_0x1a62e5=_0x1a62e5-0x0;let _0x264e94=_0x3a5b[_0x1a62e5];return _0x264e94;};import{Users as _0x586757}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x19cc2f,PendingActions as _0x4fbe3e}from'ckeditor5/src/core';import{logWarning as _0x169715,uid as _0x992367}from'ckeditor5/src/utils';import{Position as _0x2b3ae5,Range as _0x4befa6,Element as _0x48299c,DocumentFragment as _0x4e0deb,ViewText as _0x1bdbf2,ViewElement as _0x1ed273,ViewContainerElement as _0x15363b,ViewAttributeElement as _0x1f5e54,ViewEmptyElement as _0x1b3e7c,ViewRawElement as _0x136218,ViewUIElement as _0x3c1d71,ViewDocumentFragment as _0x5229a9}from'ckeditor5/src/engine';import _0x2251ef from'./revisionsrepository';import{getTranslation as _0x4077ca}from'./utils/common-translations';import{cloneDeep as _0x42196e,isEqual as _0x31494c}from'lodash-es';const B={'c':_0x15363b,'a':_0x1f5e54,'e':_0x1b3e7c,'r':_0x136218,'u':_0x3c1d71};export default class l extends _0x19cc2f{static get[_0x264e('0x82')](){return _0x264e('0x4a');}static get[_0x264e('0x19')](){return[_0x586757,_0x2251ef,_0x4fbe3e];}constructor(_0x3b3771){super(_0x3b3771),this[_0x264e('0x75')]=null,this[_0x264e('0x80')]=null,this[_0x264e('0xac')]=new H(this[_0x264e('0x99')]),this['_initialRevisionId']=this[_0x264e('0x99')][_0x264e('0xb7')][_0x264e('0x28')]('collaboration.channelId')||_0x264e('0xc1'),this['_bufferedUpdates']=new Map(),this[_0x264e('0x5b')]=null;const _0x540733=_0x992367();this[_0x264e('0x9')]={'history':this[_0x264e('0x99')][_0x264e('0xa')][_0x264e('0x4e')]['history'],'getLatestVersion':()=>Promise[_0x264e('0x7a')](this[_0x264e('0x99')]['model'][_0x264e('0x4e')]['version']),'getCurrentRevisionId':()=>_0x540733},this[_0x264e('0x9b')](_0x264e('0xfb'),!0x1),this[_0x264e('0x9b')](_0x264e('0x107'),!0x0),this[_0x264e('0x9b')](_0x264e('0xda'),!0x1),this[_0x264e('0x99')][_0x264e('0xb7')][_0x264e('0xd6')](_0x264e('0xfd'),!0x0),this[_0x264e('0x99')][_0x264e('0x59')][_0x264e('0xd8')](_0x264e('0x63'))[_0x264e('0xc7')]({'view':'revision'});}[_0x264e('0x6c')](){this[_0x264e('0xb2')]=this[_0x264e('0x99')][_0x264e('0xaa')]['get']('RevisionsRepository'),this[_0x264e('0x5f')](),this['editor']['data']['on'](_0x264e('0x3d'),()=>{const _0x3d0702=this['repository'][_0x264e('0xe1')](0x0),_0x599284=_0x3d0702&&null===_0x3d0702[_0x264e('0xbb')]?_0x3d0702:null;if(this[_0x264e('0x50')]=!!_0x599284&&this[_0x264e('0x99')][_0x264e('0xb7')][_0x264e('0x28')](_0x264e('0xfd')),this[_0x264e('0x99')][_0x264e('0xaa')][_0x264e('0x17')]('RealTimeCollaborationClient')){const _0x364b42=this['_source'][_0x264e('0x26')](),_0x2c69b5=this[_0x264e('0xb2')][_0x264e('0xe1')](_0x364b42);if(_0x2c69b5)this[_0x264e('0x48')]=_0x2c69b5[_0x264e('0xef')],this[_0x264e('0x50')]=!0x1;else{const _0x5290b2=this['_source'][_0x264e('0xe6')][_0x264e('0x105')][_0x264e('0x6b')](_0x24b530=>!_0x24b530['_isInit']),_0x440515=_0x5290b2?_0x5290b2[_0x264e('0x1b')]:this[_0x264e('0x9')][_0x264e('0xe6')][_0x264e('0xc8')];_0x3d0702?(_0x3d0702[_0x264e('0xba')]<_0x440515&&_0x3d0702[_0x264e('0xc3')]({'toVersion':_0x440515}),this[_0x264e('0x50')]?(this['_source']['getCurrentRevisionId']=()=>_0x599284['id'],this[_0x264e('0x48')]=_0x599284[_0x264e('0xef')]):(this['_startingVersion']=_0x3d0702[_0x264e('0xba')],this[_0x264e('0x50')]=!0x1)):(this[_0x264e('0x48')]=_0x440515,this[_0x264e('0x50')]=!0x1);}}else _0x599284&&(this[_0x264e('0x99')]['model'][_0x264e('0x4e')]['history'][_0x264e('0xc8')]=Math[_0x264e('0xff')](_0x599284[_0x264e('0xba')],this[_0x264e('0x99')]['model'][_0x264e('0x4e')][_0x264e('0xe6')][_0x264e('0xc8')]),_0x599284[_0x264e('0xef')]===_0x599284[_0x264e('0xba')]?(0x0!==_0x599284[_0x264e('0xef')]&&(this[_0x264e('0x9')]['getCurrentRevisionId']=()=>_0x599284['id']),this[_0x264e('0x50')]=!0x1):this['_continueCurrentRevision']&&(this[_0x264e('0x9')][_0x264e('0x26')]=()=>_0x599284['id'],this[_0x264e('0x48')]=_0x599284[_0x264e('0xef')])),this[_0x264e('0x50')]||(this[_0x264e('0x48')]=this['editor']['model'][_0x264e('0x4e')][_0x264e('0xc8')]);this[_0x264e('0xac')][_0x264e('0x6c')](this[_0x264e('0x9')]['history']),this[_0x264e('0xb1')](this[_0x264e('0x48')]),this[_0x264e('0xfc')](this[_0x264e('0x48')]),this[_0x264e('0x75')]&&this[_0x264e('0x76')]();}),this[_0x264e('0x35')](_0x264e('0xfb'))['to'](this,_0x264e('0xda'),_0x2563ba=>!_0x2563ba);}async[_0x264e('0x83')](){if(this[_0x264e('0xb2')][_0x264e('0x5')]>0x0){const _0xa853cb=this[_0x264e('0xb2')][_0x264e('0xe1')](0x0),_0x121ff6=await this[_0x264e('0x14')](_0xa853cb),_0x4c0c47=await this['getRevisionRootsAttributes'](_0xa853cb);this[_0x264e('0x79')](_0x121ff6,_0x4c0c47);}}[_0x264e('0x3e')](_0x460453){this['_source']=_0x460453;}async['update'](){const _0x49e637=await this[_0x264e('0x9')][_0x264e('0x53')]();if(_0x49e637>this[_0x264e('0x80')][_0x264e('0xba')]){await this[_0x264e('0x20')]();const _0x125e58=this[_0x264e('0x58')]({'revision':this['currentRevision'],'to':_0x49e637});_0x125e58[_0x264e('0xb0')]=_0x125e58['authorsIds']['map'](_0x5ba4eb=>this[_0x264e('0x99')]['plugins'][_0x264e('0x28')](_0x264e('0xeb'))[_0x264e('0xbf')](_0x5ba4eb)),this['currentRevision']['_update'](_0x125e58);}}async[_0x264e('0x20')](){this['_continueCurrentRevision']&&!this[_0x264e('0x5b')]&&(await this[_0x264e('0x18')](this[_0x264e('0x80')]),this['_revisionDataBuilder'][_0x264e('0x73')](this[_0x264e('0x80')]),this['_loadedStateData']={'fromVersion':this['currentRevision'][_0x264e('0xef')],'authors':this['currentRevision'][_0x264e('0xb0')]['slice']()});}async[_0x264e('0xcb')](_0xa9b6b8={},_0x2e63e5=null){const _0x2d5386=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2e63e5>this[_0x264e('0x80')]['toVersion']&&(_0x2e63e5=null),null===_0x2e63e5&&(_0x2e63e5=await this[_0x264e('0x9')]['getLatestVersion']());const _0x2edc9e=this[_0x264e('0x92')](_0x2e63e5),_0x32d2af=this['buildRevisionData']({'from':_0x2edc9e,'to':_0x2e63e5});if(this[_0x264e('0x80')][_0x264e('0xba')]<_0x2e63e5){const _0x2bd18f=this[_0x264e('0x58')]({'revision':this[_0x264e('0x80')],'from':_0x2e63e5,'to':_0x2e63e5});_0x2bd18f[_0x264e('0xb0')]=[],_0x2bd18f[_0x264e('0x8a')]=[],_0x2bd18f['id']=this[_0x264e('0x80')]['id'],this[_0x264e('0x80')][_0x264e('0xc3')](_0x2bd18f,!0x0),delete _0x2bd18f[_0x264e('0xb0')],_0x2d5386['push'](_0x2bd18f);}_0xa9b6b8[_0x264e('0xa5')]=this[_0x264e('0x99')][_0x264e('0xaa')][_0x264e('0x28')]('Users')['me']['id'],_0xa9b6b8[_0x264e('0x4d')]=_0xa9b6b8[_0x264e('0x4d')]||null,_0xa9b6b8['id']=_0xa9b6b8['id']||_0x992367(),_0xa9b6b8={..._0xa9b6b8,..._0x32d2af};const _0x2ac6d9=this[_0x264e('0x6d')](_0xa9b6b8);_0x2d5386[_0x264e('0x33')](_0xa9b6b8);const _0x36bae2=this['repository'][_0x264e('0x72')](_0x2ac6d9);if(0x0!==_0x36bae2){const _0xd15523=this[_0x264e('0xb2')][_0x264e('0xe1')](_0x36bae2-0x1);if(_0xd15523[_0x264e('0xef')]!==_0x2e63e5){const _0x2801ca=this[_0x264e('0xac')][_0x264e('0x7d')](_0x2e63e5,_0xd15523[_0x264e('0xba')]),_0x13168a={'id':_0xd15523['id'],'diffData':_0x2801ca['diffData'],'authorsIds':_0x2801ca[_0x264e('0x8a')],'authors':_0x2801ca[_0x264e('0x8a')][_0x264e('0xe0')](_0x24c4de=>this[_0x264e('0x99')][_0x264e('0xaa')][_0x264e('0x28')]('Users')[_0x264e('0xbf')](_0x24c4de)),'fromVersion':_0x2e63e5};_0xd15523===this[_0x264e('0x80')]&&(_0x13168a[_0x264e('0x10')]=new Date(_0xa9b6b8[_0x264e('0x10')][_0x264e('0x3')]()+0xa)),_0xd15523[_0x264e('0xc3')](_0x13168a,!0x0),delete _0x13168a['authors'],_0x2d5386[_0x264e('0x33')](_0x13168a);}}if(this['adapter']){for(const _0x40c4fc of _0x2d5386)this[_0x264e('0xae')](_0x40c4fc['id'],_0x40c4fc,!0x0);this['sendBufferedUpdates']();}return _0x2ac6d9;}['addRevisionData'](_0x1fd53f){const _0x2d1e79=this['repository'][_0x264e('0xa2')](_0x1fd53f);return this['adapter']&&_0x2d1e79['on'](_0x264e('0xc3'),(_0xf2d396,_0x1e27ae,_0x257c02)=>{_0x257c02||(this['_bufferUpdate'](_0x1e27ae['id'],_0x1e27ae,!0x0),this['sendBufferedUpdates']());}),this[_0x264e('0xb2')][_0x264e('0x77')](_0x2d1e79,this[_0x264e('0xe')](_0x2d1e79)),_0x2d1e79;}async[_0x264e('0x14')](_0x5cf913){await this[_0x264e('0x18')](_0x5cf913);const _0x4d4f93={};for(const _0x5d4a80 in _0x5cf913[_0x264e('0x97')]){if(_0x5cf913[_0x264e('0x97')][_0x5d4a80][_0x264e('0xd4')]&&!_0x5cf913[_0x264e('0x97')][_0x5d4a80][_0x264e('0xd4')][_0x264e('0x46')])continue;const _0x5a86f4=this[_0x264e('0xfe')](JSON[_0x264e('0x102')](_0x5cf913[_0x264e('0x97')][_0x5d4a80][_0x264e('0x2a')])),_0x33c637=this[_0x264e('0x99')][_0x264e('0xf1')]['view'][_0x264e('0x4e')],_0xfb371c=new _0x5229a9(_0x33c637,_0x5a86f4[_0x264e('0xe0')](_0x1bf91a=>J(_0x1bf91a,this['editor'])));this[_0x264e('0x99')][_0x264e('0x90')][_0x264e('0x2')][_0x264e('0x3f')](_0x264e('0xf8')),_0x4d4f93[_0x5d4a80]=this[_0x264e('0x99')][_0x264e('0x90')][_0x264e('0x2')][_0x264e('0x3b')](_0xfb371c),this['editor'][_0x264e('0x90')]['processor'][_0x264e('0x3f')](_0x264e('0x4b'));}return _0x4d4f93;}async[_0x264e('0xc4')](_0x199af7){await this[_0x264e('0x18')](_0x199af7);const _0x3293b9={};for(const _0x22a7d2 in _0x199af7['diffData'])_0x199af7['diffData'][_0x22a7d2][_0x264e('0xd4')]&&!_0x199af7[_0x264e('0x97')][_0x22a7d2]['attachChange'][_0x264e('0x46')]||(_0x3293b9[_0x22a7d2]=_0x199af7[_0x264e('0x97')][_0x22a7d2][_0x264e('0x2e')]||{});return _0x3293b9;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this[_0x264e('0xda')])return;let _0x10472c=Array[_0x264e('0x38')](this[_0x264e('0x21')][_0x264e('0x78')]());this[_0x264e('0x21')][_0x264e('0xa4')]();for(let _0x3c50c3=0x0;_0x3c50c3<_0x10472c[_0x264e('0x5')];_0x3c50c3++){const _0x84a000=_0x10472c[_0x3c50c3];let _0x13a9df=!0x1;for(const _0x49da27 of Object[_0x264e('0x5a')](_0x84a000))void 0x0===_0x84a000[_0x49da27]?delete _0x84a000[_0x49da27]:'id'!==_0x49da27&&(_0x13a9df=!0x0);_0x13a9df||(_0x10472c[_0x3c50c3]=null);}if(_0x10472c=_0x10472c[_0x264e('0x9a')](_0xf288b3=>null!==_0xf288b3),!_0x10472c[_0x264e('0x5')])return;for(let _0x1d0dc9=0x0;_0x1d0dc9<_0x10472c[_0x264e('0x5')];_0x1d0dc9++){const _0x3ed173=_0x10472c[_0x1d0dc9];void 0x0!==_0x3ed173[_0x264e('0xef')]&&void 0x0===_0x3ed173[_0x264e('0xba')]&&(_0x3ed173[_0x264e('0xba')]=this[_0x264e('0xb2')][_0x264e('0xe1')](_0x3ed173['id'])[_0x264e('0xba')]),void 0x0!==_0x3ed173[_0x264e('0xba')]&&void 0x0===_0x3ed173[_0x264e('0xef')]&&(_0x3ed173[_0x264e('0xef')]=this[_0x264e('0xb2')][_0x264e('0xe1')](_0x3ed173['id'])[_0x264e('0xef')]);}const _0x4c2eb2=this['editor']['config'][_0x264e('0x28')](_0x264e('0x5d'));this[_0x264e('0xda')]=!0x0,this[_0x264e('0x109')](),this[_0x264e('0x75')][_0x264e('0x81')](_0x10472c,_0x4c2eb2)[_0x264e('0x4f')](()=>{this['_isPendingUpdate']=!0x1;})[_0x264e('0x60')](_0x44ea8d=>{if(_0x44ea8d)for(const _0x18a5ca of _0x44ea8d)this[_0x264e('0x0')]({'id':_0x18a5ca['id'],'createdAt':_0x18a5ca[_0x264e('0x10')]});this[_0x264e('0x62')](),this['sendBufferedUpdates']();});}[_0x264e('0x79')](_0xea19e3,_0x5c61bc){let _0xd27744=this['editor'][_0x264e('0xb7')][_0x264e('0x28')](_0x264e('0x37')),_0x845a27=this[_0x264e('0x99')][_0x264e('0xb7')][_0x264e('0x28')](_0x264e('0xd5'));if(void 0x0===_0xd27744){_0xd27744={};for(const _0x56f7db of this[_0x264e('0x99')][_0x264e('0xa')][_0x264e('0x4e')][_0x264e('0x44')]())_0xd27744[_0x56f7db]='';}if('string'==typeof _0xd27744&&(_0xd27744={'main':_0xd27744}),void 0x0===_0x845a27){_0x845a27={};for(const _0x54d821 of this[_0x264e('0x99')][_0x264e('0xa')][_0x264e('0x4e')][_0x264e('0x44')]())_0x845a27[_0x54d821]={};}let _0x343165=!0x1;const _0x542a05=Object[_0x264e('0x5a')](_0xd27744),_0x41ed8b=Object[_0x264e('0x5a')](_0xea19e3);for(const _0x42da72 of _0x542a05){if(_0xd27744[_0x42da72]!==_0xea19e3[_0x42da72]&&''!==_0xd27744[_0x42da72]['trim']()){_0x343165=!0x0;break;}if(!_0x31494c(_0x845a27[_0x42da72],_0x5c61bc[_0x42da72])&&Object[_0x264e('0x5a')](_0x845a27[_0x42da72])[_0x264e('0x5')]>0x0){_0x343165=!0x0;break;}}_0x343165||(_0x343165=_0x41ed8b[_0x264e('0x93')](_0x178c02=>!this[_0x264e('0x99')][_0x264e('0xa')][_0x264e('0x4e')][_0x264e('0x12')](_0x178c02))),_0x343165&&_0x169715('editor-initial-data-replaced-with-revision-data',{'editorData':_0xd27744,'editorRootsAttributes':_0x845a27,'revisionData':_0xea19e3,'revisionRootsAttributes':_0x5c61bc}),this['editor']['config']['set'](_0x264e('0x37'),_0xea19e3),this['editor'][_0x264e('0xb7')]['set'](_0x264e('0xd5'),_0x5c61bc);}['_addPendingAction'](){if(!this[_0x264e('0xdd')]){const _0x3a13e9=this[_0x264e('0x99')][_0x264e('0xaa')][_0x264e('0x28')](_0x264e('0x2c'));this['_pendingAction']=_0x3a13e9['add'](_0x4077ca(this[_0x264e('0x99')][_0x264e('0x13')],_0x264e('0x87')));}}[_0x264e('0x62')](){this[_0x264e('0xdd')]&&(this[_0x264e('0x99')]['plugins'][_0x264e('0x28')](_0x264e('0x2c'))[_0x264e('0xc0')](this['_pendingAction']),this['_pendingAction']=null);}[_0x264e('0xe')](_0x284a67){const _0x1631a5=this[_0x264e('0xb2')][_0x264e('0x11')]();_0x1631a5[_0x264e('0x30')]();let _0xa0d5e=0x0;for(;_0xa0d5e<_0x1631a5[_0x264e('0x5')];){const _0xfc2259=_0x1631a5[_0xa0d5e];if(_0xfc2259===this[_0x264e('0x80')]){_0xa0d5e++;continue;}if(_0xfc2259['id']===this['_initialRevisionId'])break;const _0x38dd94=_0x284a67[_0x264e('0xba')]-_0xfc2259[_0x264e('0xba')]||_0x284a67[_0x264e('0xef')]-_0xfc2259[_0x264e('0xef')];if(_0x38dd94>0x0)break;if(_0x38dd94<0x0)_0xa0d5e++;else{if(!_0x284a67[_0x264e('0xbb')]&&_0xfc2259[_0x264e('0xbb')])break;if(_0xfc2259[_0x264e('0xbb')]||!_0x284a67[_0x264e('0xbb')]){if(_0x284a67[_0x264e('0x10')]>_0xfc2259['createdAt'])break;_0xa0d5e++;}else _0xa0d5e++;}}return _0xa0d5e;}['setRevisionData'](_0x4e3c33){const _0x4f67ed=this[_0x264e('0xb2')][_0x264e('0xe1')](_0x4e3c33['id']);if(_0x4e3c33[_0x264e('0x10')]&&(_0x4e3c33['createdAt']=new Date(_0x4e3c33[_0x264e('0x10')])),_0x4e3c33[_0x264e('0x8a')]){const _0x1a618f=this['editor'][_0x264e('0xaa')][_0x264e('0x28')](_0x264e('0xeb'));_0x4e3c33['authors']=_0x4e3c33[_0x264e('0x8a')][_0x264e('0xe0')](_0x4d88eb=>_0x1a618f['getUser'](_0x4d88eb));}_0x4f67ed[_0x264e('0xc3')](_0x4e3c33,!0x0);}[_0x264e('0x58')]({revision:_0x30d8f8=null,from:_0x339941=null,to:_0x338326=null}){_0x339941=null!==_0x339941?_0x339941:_0x30d8f8[_0x264e('0xef')],_0x338326=null!==_0x338326?_0x338326:_0x30d8f8[_0x264e('0xba')];const _0xe08329=this[_0x264e('0xac')][_0x264e('0x7d')](_0x339941,_0x338326),_0x1d2aad={'diffData':_0xe08329[_0x264e('0x97')],'authorsIds':_0xe08329[_0x264e('0x8a')],'fromVersion':_0x339941,'toVersion':_0x338326};if(!_0x30d8f8||_0x338326!==_0x30d8f8[_0x264e('0xba')]){const _0x2f584e=_0x338326-0x1,_0x1ff025=this['_source'][_0x264e('0xe6')][_0x264e('0x22')](_0x2f584e);_0x1d2aad[_0x264e('0x10')]=_0x1ff025&&_0x1ff025[_0x264e('0x10')]||new Date();}if(this[_0x264e('0x5b')]&&_0x339941===this[_0x264e('0x5b')][_0x264e('0xef')])for(const _0x25adff of this[_0x264e('0x5b')][_0x264e('0xb0')])_0x1d2aad[_0x264e('0x8a')][_0x264e('0x8b')](_0x25adff['id'])||_0x1d2aad[_0x264e('0x8a')][_0x264e('0x33')](_0x25adff['id']);return _0x1d2aad;}[_0x264e('0x18')](_0x1ec783){if(!_0x1ec783||_0x1ec783['diffData'])return Promise['resolve']();{const _0x4c9ac2=this['editor'][_0x264e('0xb7')][_0x264e('0x28')](_0x264e('0x5d'));return this[_0x264e('0x75')][_0x264e('0xe1')]({'channelId':_0x4c9ac2,'revisionId':_0x1ec783['id']})['then'](_0x208e0f=>{_0x1ec783[_0x264e('0x97')]=_0x208e0f['diffData'];});}}['_bufferUpdate'](_0x481687,_0x21caa1,_0xd3ddc1){if(this['_bufferedUpdates'][_0x264e('0x17')](_0x481687)){const _0x412dbc=this[_0x264e('0x21')][_0x264e('0x28')](_0x481687);_0x21caa1=_0xd3ddc1?{..._0x412dbc,..._0x21caa1}:{..._0x21caa1,..._0x412dbc};}this[_0x264e('0x21')][_0x264e('0x9b')](_0x481687,_0x21caa1);}['_getFromVersion'](_0x4f16a3){const _0x41c0a8=this['repository'][_0x264e('0x11')]();_0x41c0a8[_0x264e('0x30')](),_0x41c0a8[_0x264e('0xb9')]();const _0x5696ac=_0x41c0a8['find'](_0x1e40fc=>_0x1e40fc['toVersion']<=_0x4f16a3)[_0x264e('0xba')];return _0x5696ac<this['_startingVersion']?this['_startingVersion']:_0x5696ac;}[_0x264e('0xb1')](_0x19d3c4){const _0x12bb00=this['repository'][_0x264e('0xe1')](this['repository'][_0x264e('0x5')]-0x1);if(_0x12bb00)this['_initialRevisionId']=_0x12bb00['id'];else{const _0xb2f3f9=!this[_0x264e('0x99')]['model'][_0x264e('0x4e')][_0x264e('0x4c')][_0x264e('0x6b')](_0x524f5f=>this[_0x264e('0x99')][_0x264e('0xa')][_0x264e('0x7b')](_0x524f5f)),_0x2492be=this[_0x264e('0x99')][_0x264e('0xaa')]['get']('Users')['me']['id'],_0x5bdef7=_0x4077ca(this[_0x264e('0x99')][_0x264e('0x13')],_0xb2f3f9?_0x264e('0xf5'):_0x264e('0x84'));this[_0x264e('0x88')]({'from':_0x19d3c4,'to':_0x19d3c4,'id':this[_0x264e('0xcc')],'name':_0x5bdef7,'creatorId':_0x2492be});}}[_0x264e('0xfc')](_0x1a4fa0){const _0x131adb=this[_0x264e('0x9')][_0x264e('0x26')]();this['currentRevision']=this['repository'][_0x264e('0xe1')](_0x131adb),this[_0x264e('0x80')]||(this[_0x264e('0x80')]=this[_0x264e('0x88')]({'from':_0x1a4fa0,'to':_0x1a4fa0,'id':_0x131adb,'name':'','creatorId':null}));}[_0x264e('0x88')]({name:_0x4309a1,from:_0x3a5917,to:_0x215663,creatorId:_0x1cbbea,id:_0x2a9d22}){const _0x208e70=this['buildRevisionData']({'from':_0x3a5917,'to':_0x215663});_0x208e70['name']=_0x4309a1,_0x208e70['creatorId']=_0x1cbbea,_0x208e70['id']=_0x2a9d22;const _0x785a1=this[_0x264e('0x6d')](_0x208e70);return this[_0x264e('0x75')]&&this[_0x264e('0xae')](_0x208e70['id'],_0x208e70,!0x0),_0x785a1;}[_0x264e('0x5f')](){this[_0x264e('0x99')][_0x264e('0x59')][_0x264e('0xd8')](_0x264e('0xcd'))[_0x264e('0xbd')]({'model':_0x264e('0x68')});}[_0x264e('0xfe')](_0x5c984a){return(_0x5c984a=_0x5c984a[_0x264e('0x9a')](_0x532c0d=>!_0x532c0d[_0x264e('0x4d')]||_0x264e('0x6')!==_0x532c0d[_0x264e('0x4d')]&&_0x264e('0x2d')!==_0x532c0d[_0x264e('0x4d')]))[_0x264e('0x2f')](_0x5e937e=>{_0x264e('0xf9')!=typeof _0x5e937e&&(_0x5e937e['children']=this[_0x264e('0xfe')](_0x5e937e['children']),_0x5e937e[_0x264e('0x10b')]=_0x5e937e['attributes']['filter'](_0x51accd=>!_0x51accd[0x0][_0x264e('0xd0')](_0x264e('0xa0'))));}),_0x5c984a;}}function J(_0x5ad52e,_0xac26e0){const _0x2adc90=_0xac26e0['editing'][_0x264e('0xa3')][_0x264e('0x4e')];if(_0x264e('0xf9')==typeof _0x5ad52e)return new _0x1bdbf2(_0x2adc90,_0x5ad52e);{const _0x4e1025=_0x5ad52e[_0x264e('0x108')][_0x264e('0xe0')](_0x2129e5=>J(_0x2129e5,_0xac26e0));return new(B[_0x5ad52e[(_0x264e('0x67'))]]||_0x1ed273)(_0x2adc90,_0x5ad52e[_0x264e('0x4d')],_0x5ad52e['attributes'],_0x4e1025);}}class H{constructor(_0x176c1e){this[_0x264e('0x99')]=_0x176c1e,this[_0x264e('0x6e')]=new Map(),this['_lastFrom']=-0x1,this[_0x264e('0x9c')]=-0x1,this[_0x264e('0xc2')]=new Map(),this[_0x264e('0xe8')]=new Map(),this[_0x264e('0x69')]=new Map(),this[_0x264e('0xd')]=new Map(),this[_0x264e('0x39')]=new Map(),this[_0x264e('0xca')]=new Map(),this[_0x264e('0x66')]=new Map(),this['_touched']=new Map(),this[_0x264e('0xec')]=new Map(),this[_0x264e('0x89')]=new Map(),this['_revisionId']=0x1;}[_0x264e('0x6c')](_0x554c54){this[_0x264e('0x1a')]=_0x554c54;const _0x1493aa=new Map(),_0x535192=new Map(),_0x3e2610=this['editor'][_0x264e('0xa')][_0x264e('0x4e')][_0x264e('0x4c')]['map'](_0x52fd2e=>_0x52fd2e[_0x264e('0x103')]);for(const _0x7d2dad of _0x3e2610){const _0x796771=this[_0x264e('0x99')]['model'][_0x264e('0x4e')][_0x264e('0x12')](_0x7d2dad),_0x3b1e28=q(_0x796771);_0x1493aa['set'](_0x7d2dad,_0x3b1e28),_0x535192[_0x264e('0x9b')](_0x7d2dad,Object[_0x264e('0xad')](_0x796771[_0x264e('0xfa')]()));}const _0xd5462a=Array[_0x264e('0x38')](this[_0x264e('0x99')]['model']['markers'])['map'](_0x152e7b=>[_0x152e7b[_0x264e('0x4d')],_0x152e7b['getRange']()]),_0x88a164=this['source']['version'];this['_saveMetaData'](_0x88a164,_0x1493aa,_0xd5462a,_0x535192),this['_startingRevisionId']=this[_0x264e('0xab')];const _0x24e272=new Map(),_0x4b8e56=new Map();for(const _0x27be07 of _0x3e2610){const _0x2ec5a8=G(_0x27be07);_0x24e272[_0x264e('0x9b')](_0x27be07,_0x2ec5a8),_0x4b8e56['set'](_0x27be07,{});}this['_saveMetaData'](Number[_0x264e('0x85')],_0x24e272,[],_0x4b8e56);}[_0x264e('0x7d')](_0x17e151,_0x4795d5){if(this[_0x264e('0xdf')]===_0x17e151&&this['_lastTo']<=_0x4795d5)this['_savedMetaData'][_0x264e('0x101')]>0x1&&this['_removeMetaData'](this[_0x264e('0x9c')]),this['_applyOperations'](this['_lastTo'],_0x4795d5,!0x0);else{if(!this[_0x264e('0x6e')][_0x264e('0x17')](_0x17e151)){const _0x278e3e=this[_0x264e('0x25')](_0x17e151);this[_0x264e('0xd2')](_0x278e3e,_0x17e151,!0x1);}this[_0x264e('0xd2')](_0x17e151,_0x4795d5,!0x0);}return this[_0x264e('0xdf')]=_0x17e151,this['_lastTo']=_0x4795d5,this['_getState']();}[_0x264e('0x73')](_0x1d0b11){this[_0x264e('0x3c')](),this['_lastFrom']=_0x1d0b11[_0x264e('0xef')],this[_0x264e('0x9c')]=_0x1d0b11[_0x264e('0xba')];for(const _0x53e0cc in _0x1d0b11['diffData']){const _0x3bd718=_0x1d0b11[_0x264e('0x97')][_0x53e0cc][_0x264e('0xd4')],_0xd8a147=_0x42196e(_0x1d0b11[_0x264e('0x97')][_0x53e0cc][_0x264e('0x7c')])||{},_0x51b1b3=this[_0x264e('0xa9')](_0x1d0b11[_0x264e('0x97')][_0x53e0cc]['deletions']);_0x51b1b3[_0x264e('0x103')]=_0x53e0cc,_0x51b1b3[_0x264e('0x106')]=!_0x3bd718||!_0x3bd718[_0x264e('0x46')],_0x51b1b3['isAttached']=()=>_0x51b1b3[_0x264e('0x106')],this[_0x264e('0xd')][_0x264e('0x9b')](_0x53e0cc,_0x51b1b3),this[_0x264e('0x39')][_0x264e('0x9b')](_0x53e0cc,_0xd8a147),_0x3bd718&&this['_touchedRoots']['set'](_0x53e0cc,_0x3bd718);const _0x5eb654=this['_makeIdsRoot'](_0x51b1b3);this['_baseIdsRoots']['set'](_0x53e0cc,_0x5eb654);for(const [_0x485128,_0x17dcf6]of _0x51b1b3['markers']){if(!_0x485128[_0x264e('0xd0')](_0x264e('0xce')))continue;const _0x1ba57e=_0x485128[_0x264e('0x5c')](':')[0x2];for(const _0x2d39d1 of _0x17dcf6['getWalker']({'singleCharacters':!0x0})){const _0xe38e24=this[_0x264e('0xb3')](_0x2d39d1),_0x183696=_0x264e('0x36')==_0x2d39d1[_0x264e('0x67')]?_0x2d39d1[_0x264e('0x23')]['path'][_0x264e('0x1f')](0x0,-0x1):_0x2d39d1[_0x264e('0x23')][_0x264e('0x64')],_0x17c0cb=_0x5eb654[_0x264e('0x61')](_0x183696)['getAttribute'](_0xe38e24);this[_0x264e('0x3a')]['set'](_0x17c0cb,{'userId':_0x1ba57e});}}}this['_startingRevisionId']=this[_0x264e('0xab')];const _0x3a994f=[...Array(this[_0x264e('0xab')])[_0x264e('0x5a')]()][_0x264e('0x1f')](0x1)[_0x264e('0x9a')](_0x1be55e=>!this['_touched'][_0x264e('0x17')](_0x1be55e));let _0x486015=0x0;const _0x1f2482=new Map();for(const _0x56e697 in _0x1d0b11[_0x264e('0x97')]){const _0x220913=_0x1d0b11[_0x264e('0x97')][_0x56e697][_0x264e('0xd4')],_0x34df13=_0x42196e(_0x1d0b11[_0x264e('0x97')][_0x56e697][_0x264e('0x2e')])||{},_0x288263=this['_makeModelFromViewString'](_0x1d0b11['diffData'][_0x56e697]['insertions']);_0x288263[_0x264e('0x103')]=_0x56e697,_0x288263['_isAttached']=!_0x220913||_0x220913[_0x264e('0x46')],_0x288263[_0x264e('0x46')]=()=>_0x288263['_isAttached'],this[_0x264e('0xe8')][_0x264e('0x9b')](_0x56e697,_0x288263),this[_0x264e('0x69')]['set'](_0x56e697,_0x34df13);const _0x55fc1c=this['_makeIdsRoot'](_0x288263,Number[_0x264e('0x85')]);this[_0x264e('0xca')][_0x264e('0x9b')](_0x56e697,_0x55fc1c),_0x1f2482[_0x264e('0x9b')](_0x56e697,_0x288263[_0x264e('0x46')]()?_0x34df13:{});for(const [_0x26524d,_0x57d911]of _0x288263[_0x264e('0x47')]){if(!_0x26524d[_0x264e('0xd0')](_0x264e('0xce')))continue;const _0x5cc5f3=_0x26524d['split'](':')[0x2];for(const _0x57b7af of _0x57d911[_0x264e('0x100')]({'singleCharacters':!0x0})){const _0x1e5a61=this[_0x264e('0xb3')](_0x57b7af),_0x4f2ee9=this[_0x264e('0xab')]++,_0x2cff98=_0x264e('0x36')==_0x57b7af[_0x264e('0x67')]?_0x57b7af[_0x264e('0x23')][_0x264e('0x64')]['slice'](0x0,-0x1):_0x57b7af['previousPosition']['path'];_0x55fc1c[_0x264e('0x61')](_0x2cff98)[_0x264e('0x55')](_0x1e5a61,_0x4f2ee9),this[_0x264e('0x3a')]['set'](_0x4f2ee9,{'userId':_0x5cc5f3});}}for(const _0x3c74ac of this[_0x264e('0x99')][_0x264e('0xa')]['createRangeIn'](_0x288263)['getWalker']({'singleCharacters':!0x0})){const _0x397b61=this[_0x264e('0xb3')](_0x3c74ac),_0x120956=_0x264e('0x36')==_0x3c74ac[_0x264e('0x67')]?_0x3c74ac['previousPosition'][_0x264e('0x64')]['slice'](0x0,-0x1):_0x3c74ac[_0x264e('0x23')][_0x264e('0x64')],_0x115fc7=_0x55fc1c[_0x264e('0x61')](_0x120956);_0x115fc7[_0x264e('0xed')](_0x397b61)>0x0||_0x115fc7[_0x264e('0x55')](_0x397b61,_0x3a994f[_0x486015++]);}for(const [_0x55890b,_0x5a3205]of _0x288263[_0x264e('0x47')])_0x55890b[_0x264e('0xd0')](_0x264e('0xce'))||this[_0x264e('0xc2')][_0x264e('0x9b')](_0x55890b,_0x5a3205);}const _0x1e9924=G(_0x264e('0xb'));this[_0x264e('0xd')][_0x264e('0x9b')](_0x264e('0xb'),_0x1e9924),this[_0x264e('0x66')][_0x264e('0x9b')](_0x264e('0xb'),this['_makeIdsRoot'](_0x1e9924,0x1));const _0x49585e=G(_0x264e('0xb'));this[_0x264e('0xe8')][_0x264e('0x9b')](_0x264e('0xb'),_0x49585e),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x49585e,0x1));const _0x105100=Array[_0x264e('0x38')](this[_0x264e('0xe8')])['map'](([_0x190dca,_0x2ed5d1])=>[_0x190dca,q(_0x2ed5d1)]);this['_saveMetaData'](this['_lastTo'],_0x105100,this[_0x264e('0xc2')],_0x1f2482);}[_0x264e('0xa9')](_0x1bc82a){const _0x16eb98=JSON[_0x264e('0x102')](_0x1bc82a),_0x235495=this[_0x264e('0x99')][_0x264e('0xf1')][_0x264e('0xa3')][_0x264e('0x4e')],_0x2acacc=new _0x5229a9(_0x235495,_0x16eb98['map'](_0x54d227=>J(_0x54d227,this[_0x264e('0x99')])));return this[_0x264e('0x99')]['data'][_0x264e('0xd1')](_0x2acacc);}[_0x264e('0x71')](_0x221342,_0x4be714,_0x177a91,_0x5e4acd){const _0x49495d=new Map(_0x4be714),_0x571b99=new Map(_0x42196e(_0x5e4acd)),_0x59a35e=new Map();for(const [_0x291b44,_0x15738a]of _0x177a91)_0x59a35e[_0x264e('0x9b')](_0x291b44,{'start':_0x15738a['start'][_0x264e('0xde')](),'end':_0x15738a['end'][_0x264e('0xde')](),'rootName':_0x15738a['root']['rootName']});this[_0x264e('0x6e')][_0x264e('0x9b')](_0x221342,{'roots':_0x49495d,'markers':_0x59a35e,'rootsAttributes':_0x571b99});}[_0x264e('0x74')](_0x275fcf){this[_0x264e('0x6e')][_0x264e('0x54')](_0x275fcf);}[_0x264e('0x24')](){this['_reset'](),this[_0x264e('0xdf')]=-0x1,this[_0x264e('0x9c')]=-0x1,this['_savedMetaData'][_0x264e('0xa4')](),this[_0x264e('0x6c')](this[_0x264e('0x1a')]);}['_reset'](){this['_touched'][_0x264e('0xa4')](),this['_touchedMarkers'][_0x264e('0xa4')](),this[_0x264e('0x89')][_0x264e('0xa4')](),this[_0x264e('0xe8')][_0x264e('0xa4')](),this[_0x264e('0x69')][_0x264e('0xa4')](),this[_0x264e('0xd')][_0x264e('0xa4')](),this['_baseRootsAttributes'][_0x264e('0xa4')](),this[_0x264e('0xca')][_0x264e('0xa4')](),this[_0x264e('0x66')][_0x264e('0xa4')](),this[_0x264e('0xc2')][_0x264e('0xa4')](),this[_0x264e('0xab')]=0x1,this[_0x264e('0xa7')]=this[_0x264e('0xab')];}['_makeIdsRoot'](_0x4b681b,_0x205153=null){let _0x38f56d=null;_0x4b681b['is']('documentFragment')||(_0x38f56d=new _0x48299c(_0x4b681b[_0x264e('0x4d')],{'vid_start':null===_0x205153?this[_0x264e('0xab')]++:_0x205153++}));const _0x247f61=[];for(const _0x4c6525 of _0x4b681b['getChildren']())if(_0x4c6525['is'](_0x264e('0x9e'))){_0x247f61[_0x264e('0x33')](this[_0x264e('0xe7')](_0x4c6525,_0x205153));const _0x2c9b28=_0x247f61[_0x247f61[_0x264e('0x5')]-0x1];null!==_0x205153&&(_0x205153=_0x2c9b28['is'](_0x264e('0x9e'),_0x264e('0x27'))?_0x2c9b28['getAttribute'](_0x264e('0x16'))+0x1:_0x2c9b28['getAttribute'](_0x264e('0x9f'))+0x1);}else for(let _0x58b8fd=0x0;_0x58b8fd<_0x4c6525[_0x264e('0x8c')];_0x58b8fd++)_0x247f61['push'](new _0x48299c(_0x264e('0x27'),{'vid':null===_0x205153?this[_0x264e('0xab')]++:_0x205153++}));if(_0x4b681b['is'](_0x264e('0x6f'))){const _0x91bdeb=G(_0x4b681b[_0x264e('0x103')]);return _0x91bdeb[_0x264e('0xe3')](0x0,_0x247f61),_0x91bdeb;}return _0x38f56d[_0x264e('0x55')]('vid_end',null===_0x205153?this[_0x264e('0xab')]++:_0x205153++),_0x38f56d[_0x264e('0xe3')](0x0,_0x247f61),_0x38f56d;}[_0x264e('0xd2')](_0xce7401,_0x5387e5,_0x1b537d){this[_0x264e('0x3c')]();const {roots:_0x41408a,markers:_0x323f23,rootsAttributes:_0x248b1f}=this[_0x264e('0x6e')][_0x264e('0x28')](_0xce7401);this[_0x264e('0xd')]=new Map(_0x41408a),this['_baseRootsAttributes']=new Map(_0x42196e(_0x248b1f));for(const [_0x25d030,_0x2e6b79]of this[_0x264e('0xd')])if(_0x264e('0xb')!==_0x25d030&&(this['_diffRoots'][_0x264e('0x9b')](_0x25d030,q(_0x2e6b79)),this['_diffRootsAttributes']=new Map(_0x42196e(_0x248b1f)),_0x1b537d)){const _0x33cccb=this['_revisionId'];this['_idsRoots'][_0x264e('0x9b')](_0x25d030,this['_makeIdsRoot'](_0x2e6b79)),this['_baseIdsRoots'][_0x264e('0x9b')](_0x25d030,this[_0x264e('0xe7')](_0x2e6b79,_0x33cccb));}this['_startingRevisionId']=this[_0x264e('0xab')],this[_0x264e('0xe8')][_0x264e('0x9b')](_0x264e('0xb'),q(this[_0x264e('0xd')][_0x264e('0x28')](_0x264e('0xb')))),_0x1b537d&&this[_0x264e('0xca')]['set']('$graveyard',this['_makeIdsRoot'](this[_0x264e('0xd')]['get'](_0x264e('0xb'))));for(const [_0x670576,_0x1a9f52]of _0x323f23){const _0x5ce67e=this[_0x264e('0xd')][_0x264e('0x28')](_0x1a9f52[_0x264e('0x103')]),_0x2e84d1=this[_0x264e('0xe8')][_0x264e('0x28')](_0x1a9f52[_0x264e('0x103')]),_0x1f6beb=new _0x4befa6(this[_0x264e('0xa1')](_0x1a9f52['start'],_0x5ce67e),this['_fixPosition'](_0x1a9f52[_0x264e('0xb6')],_0x5ce67e)),_0x27cba5=this[_0x264e('0x1c')](_0x1f6beb,_0x2e84d1);_0x5ce67e[_0x264e('0x47')][_0x264e('0x9b')](_0x670576,_0x1f6beb),this[_0x264e('0xc2')][_0x264e('0x9b')](_0x670576,_0x27cba5);}this[_0x264e('0x98')](_0xce7401,_0x5387e5,_0x1b537d);}[_0x264e('0x98')](_0x1121e2,_0x88dd1e,_0x57e71e){for(const _0x104331 of this[_0x264e('0x1a')]['getOperations'](_0x1121e2,_0x88dd1e))this['_handleOperation'](_0x104331,_0x57e71e);for(const _0x57cd54 of this[_0x264e('0xe8')][_0x264e('0x78')]())_0x57cd54[_0x264e('0x47')]['clear']();for(const [_0x384e7e,_0x50a079]of this['_markers']){this[_0x264e('0xe8')]['get'](_0x50a079[_0x264e('0xc9')][_0x264e('0x103')])[_0x264e('0x47')][_0x264e('0x9b')](_0x384e7e,_0x50a079[_0x264e('0xde')]());}const _0x7602ef=new Map(),_0xce513a=new Map();for(const [_0x8630a6,_0x2eb765]of this[_0x264e('0xe8')])_0x7602ef[_0x264e('0x9b')](_0x8630a6,q(_0x2eb765)),_0xce513a[_0x264e('0x9b')](_0x8630a6,this['_diffRootsAttributes'][_0x264e('0x28')](_0x8630a6));this[_0x264e('0x71')](_0x88dd1e,_0x7602ef,this[_0x264e('0xc2')],_0xce513a);}[_0x264e('0x25')](_0x8bd080){const _0x555aa9=Array[_0x264e('0x38')](this[_0x264e('0x6e')]['keys']());_0x555aa9[_0x264e('0x42')]((_0x49616a,_0x2c494d)=>_0x49616a-_0x2c494d),_0x555aa9[_0x264e('0x30')]();for(const _0x207af8 of _0x555aa9)if(_0x207af8<_0x8bd080)return _0x207af8;return Number['NEGATIVE_INFINITY'];}[_0x264e('0xb8')](_0x2a63be,_0x4c9724){const _0x2d8a46=Array['from'](_0x4c9724[_0x264e('0x47')])['map'](([_0x18e018,_0x1b150a])=>[_0x18e018,this[_0x264e('0x1c')](_0x1b150a,_0x2a63be)]);_0x2a63be[_0x264e('0x47')]=new Map(_0x2d8a46);}['_transformMarkers'](_0x2566c0){for(const _0x1b801a of this[_0x264e('0xc2')][_0x264e('0x78')]()){const _0x314efe=_0x1b801a['getTransformedByOperation'](_0x2566c0),_0x463b36=_0x4befa6[_0x264e('0xf7')](_0x314efe);_0x1b801a[_0x264e('0x2b')]=_0x463b36[_0x264e('0x2b')],_0x1b801a[_0x264e('0xb6')]=_0x463b36[_0x264e('0xb6')];}}[_0x264e('0xd3')](_0x205dbc,_0x6ee02d){if(_0x264e('0x7')==_0x205dbc['type']||'detachRoot'==_0x205dbc[_0x264e('0x67')])return void this[_0x264e('0x40')](_0x205dbc,_0x6ee02d);if(_0x264e('0xf')==_0x205dbc['type']){const _0x459907=_0x205dbc['position'][_0x264e('0xc9')][_0x264e('0x103')];this[_0x264e('0xe8')]['has'](_0x459907)||(this['_diffRoots'][_0x264e('0x9b')](_0x459907,G(_0x459907,!0x0)),this[_0x264e('0x69')][_0x264e('0x9b')](_0x459907,{}),_0x6ee02d&&this[_0x264e('0xca')]['set'](_0x459907,G(_0x459907,!0x0)));}else{if('addRootAttribute'==_0x205dbc[_0x264e('0x67')]||_0x264e('0x1e')==_0x205dbc['type']||_0x264e('0xf3')==_0x205dbc[_0x264e('0x67')])return void this['_handleRootAttributeOperation'](_0x205dbc);}const _0x644c85=this[_0x264e('0x4')](_0x205dbc,this[_0x264e('0xe8')]);if('marker'!==_0x205dbc['type']&&(_0x644c85['_execute'](),this[_0x264e('0x10c')](_0x644c85)),_0x6ee02d)switch(_0x644c85[_0x264e('0x67')]){case _0x264e('0xf'):this['_handleInsertOperation'](_0x205dbc);break;case _0x264e('0xf2'):case'remove':case _0x264e('0x1d'):this[_0x264e('0x7e')](_0x205dbc);break;case _0x264e('0x7f'):this[_0x264e('0x91')](_0x205dbc);break;case'split':this[_0x264e('0x51')](_0x205dbc);break;case _0x264e('0x86'):this[_0x264e('0x65')](_0x205dbc);}}['_cloneOperation'](_0x132ea5,_0x810c6d){const _0x49e311=_0x132ea5['clone']();return _0x49e311[_0x264e('0xe2')]=_0x132ea5['_authorId'],this[_0x264e('0xa8')](_0x49e311,_0x810c6d),_0x49e311;}[_0x264e('0xe9')](_0x5d6dac){return _0x5d6dac[_0x264e('0xe0')](_0x361d21=>{const _0x290006=this[_0x264e('0xb3')](_0x361d21);return Number(_0x361d21[_0x264e('0xc6')]['getAttribute'](_0x290006));});}[_0x264e('0xc')](_0x21ea07,_0x431770){if(_0x21ea07['is'](_0x264e('0x9e'),_0x264e('0x27')))_0x431770[_0x264e('0x33')]({'item':_0x21ea07,'type':_0x264e('0x5e')});else{_0x21ea07['is'](_0x264e('0x9e'))&&_0x431770['push']({'item':_0x21ea07,'type':_0x264e('0xee')});for(const _0x37a51a of _0x21ea07[_0x264e('0xf6')]())this[_0x264e('0xc')](_0x37a51a,_0x431770);_0x21ea07['is'](_0x264e('0x9e'))&&_0x431770['push']({'item':_0x21ea07,'type':'elementEnd'});}return _0x431770;}[_0x264e('0xbe')](){const _0xd23dc4=new Map(this[_0x264e('0x3a')]),_0x26f5e3=new Map(_0xd23dc4),_0x55b139=new Map(),_0x26ffa0={'insertions':{},'deletions':{}},_0x312d13={'insertions':{},'deletions':{}},_0x3cb39f=new Map(),_0x2aab49=new Set([...this[_0x264e('0xd')][_0x264e('0x5a')](),...this[_0x264e('0xe8')][_0x264e('0x5a')]()]);_0x2aab49[_0x264e('0x54')](_0x264e('0xb'));for(const _0x179049 of _0x2aab49){const _0x44326f=this['_diffRoots'][_0x264e('0x28')](_0x179049)||G(_0x179049,!0x1),_0x2b455c=this[_0x264e('0xd')][_0x264e('0x28')](_0x179049)||G(_0x179049,!0x1);_0x44326f[_0x264e('0x46')]()||_0x2b455c[_0x264e('0x46')]()?(_0x26ffa0[_0x264e('0x2a')][_0x179049]=q(_0x44326f),_0x26ffa0['deletions'][_0x179049]=q(_0x2b455c),this[_0x264e('0xb8')](_0x26ffa0['deletions'][_0x179049],_0x2b455c),this[_0x264e('0xb8')](_0x26ffa0[_0x264e('0x2a')][_0x179049],_0x44326f),_0x312d13[_0x264e('0x2a')][_0x179049]=this[_0x264e('0xc')](this[_0x264e('0xca')][_0x264e('0x28')](_0x179049),[]),_0x312d13[_0x264e('0x41')][_0x179049]=this['_generateTape'](this[_0x264e('0x66')][_0x264e('0x28')](_0x179049)||G(_0x179049,!0x1),[])):_0x2aab49[_0x264e('0x54')](_0x179049);}for(const _0x561ea0 of _0x2aab49){const _0x288989=_0x312d13[_0x264e('0x2a')][_0x561ea0];for(const _0x5e8ddd of _0x288989){const _0x172323=this[_0x264e('0xb3')](_0x5e8ddd),_0x505a22=_0x5e8ddd[_0x264e('0xc6')][_0x264e('0xed')](_0x172323);_0x26f5e3[_0x264e('0x54')](_0x505a22),_0x505a22>=this[_0x264e('0xa7')]&&_0x55b139[_0x264e('0x9b')](_0x505a22,_0xd23dc4[_0x264e('0x28')](_0x505a22));}}for(const _0x1b3dfd of _0x2aab49){const _0x236f77=_0x312d13[_0x264e('0x2a')][_0x1b3dfd],_0x134427=this['_getBaseVids'](_0x312d13[_0x264e('0x41')][_0x1b3dfd]);let _0x48592f=0x0;for(const _0x52a0f8 of _0x236f77){const _0xfdde2f=this[_0x264e('0xb3')](_0x52a0f8),_0x49dfc2=_0x52a0f8[_0x264e('0xc6')][_0x264e('0xed')](_0xfdde2f);if(!_0x55b139[_0x264e('0x17')](_0x49dfc2)&&!_0x3cb39f[_0x264e('0x17')](_0x49dfc2)){if(_0x26f5e3['has'](_0x49dfc2))_0x48592f++;else{if(_0x49dfc2!=_0x134427[_0x48592f]){const _0x374379=_0xd23dc4[_0x264e('0x28')](_0x49dfc2)||_0xd23dc4[_0x264e('0x28')](_0x134427[_0x48592f]);for(;_0x49dfc2!=_0x134427[_0x48592f];)_0x26f5e3[_0x264e('0x17')](_0x134427[_0x48592f])||(_0x3cb39f[_0x264e('0x9b')](_0x134427[_0x48592f],_0x374379),_0xd23dc4[_0x264e('0x9b')](_0x134427[_0x48592f],_0x374379)),_0x48592f++;}_0x48592f++;}}}}for(const _0x3ed7fd of _0x2aab49){const _0x5cd81e=_0x312d13[_0x264e('0x2a')][_0x3ed7fd];for(const _0x1f859b of _0x5cd81e){const _0x2558e6=this[_0x264e('0xb3')](_0x1f859b),_0x55d751=_0x1f859b[_0x264e('0xc6')][_0x264e('0xed')](_0x2558e6);if(_0x3cb39f[_0x264e('0x17')](_0x55d751)){const _0x4a194d=_0x3cb39f['get'](_0x55d751);_0x26f5e3['has'](_0x55d751)||_0x26f5e3[_0x264e('0x9b')](_0x55d751,{..._0x4a194d}),_0x55b139['set'](_0x55d751,{..._0x4a194d});}}}for(const _0x25d3a0 of _0x26f5e3[_0x264e('0x5a')]())_0x25d3a0>=this['_startingRevisionId']&&_0x26f5e3[_0x264e('0x54')](_0x25d3a0);const _0x5f2258=new Map();for(const _0x4dfbcb of _0x2aab49){let _0x36ed23=_0x312d13['insertions'][_0x4dfbcb];for(const _0x4585ca of _0x36ed23)if(_0x4585ca['item']['is'](_0x264e('0x9e'),_0x264e('0xb5'))){const _0x803d6f=this[_0x264e('0xb3')](_0x4585ca),_0xbc5b2b=_0x4585ca[_0x264e('0xc6')][_0x264e('0xed')](_0x803d6f);if(_0x55b139[_0x264e('0x17')](_0xbc5b2b)){const _0x48b21c=_0x4585ca[_0x264e('0xc6')][_0x264e('0x8d')]['parent'][_0x264e('0xed')](_0x264e('0xaf')),_0x1f9819=_0x5f2258[_0x264e('0x28')](_0x48b21c)||new Set();_0x1f9819[_0x264e('0x52')](_0x55b139[_0x264e('0x28')](_0xbc5b2b)[_0x264e('0x104')]),_0x5f2258['set'](_0x48b21c,_0x1f9819);}}_0x36ed23=_0x312d13[_0x264e('0x41')][_0x4dfbcb];for(const _0x54f733 of _0x36ed23)if(_0x54f733[_0x264e('0xc6')]['is'](_0x264e('0x9e'),'tableCell')){const _0x46103a=this[_0x264e('0xb3')](_0x54f733),_0x5b865b=_0x54f733[_0x264e('0xc6')][_0x264e('0xed')](_0x46103a);if(_0x26f5e3['has'](_0x5b865b)){const _0x50ea1a=_0x54f733[_0x264e('0xc6')]['parent']['parent'][_0x264e('0xed')](_0x264e('0xaf')),_0x3e6d89=_0x5f2258[_0x264e('0x28')](_0x50ea1a)||new Set();_0x3e6d89[_0x264e('0x52')](_0x26f5e3[_0x264e('0x28')](_0x5b865b)[_0x264e('0x104')]),_0x5f2258[_0x264e('0x9b')](_0x50ea1a,_0x3e6d89);}}for(const _0x47fac8 of _0x5f2258[_0x264e('0x5a')]())(_0x55b139[_0x264e('0x17')](_0x47fac8)||_0x26f5e3['has'](_0x47fac8))&&_0x5f2258[_0x264e('0x54')](_0x47fac8);}for(const _0x59e550 of _0x2aab49){const _0x57effe=_0x312d13[_0x264e('0x2a')][_0x59e550];let _0x3d9679=null,_0xc0e2be=null;for(const _0x456138 of _0x57effe){const _0x19cf48=this[_0x264e('0xb3')](_0x456138),_0x39aab1=_0x456138[_0x264e('0xc6')][_0x264e('0xed')](_0x19cf48),_0x49e23c=_0x5f2258[_0x264e('0x28')](_0x39aab1);_0x49e23c&&_0x264e('0xee')==_0x456138['type']&&(_0x3d9679=Array[_0x264e('0x38')](_0x49e23c)[0x0],_0xc0e2be=_0x456138[_0x264e('0xc6')][_0x264e('0xed')](_0x264e('0x9f'))),_0x3d9679&&(_0x26f5e3[_0x264e('0x9b')](_0x39aab1,{'userId':_0x3d9679}),_0x55b139[_0x264e('0x9b')](_0x39aab1,{'userId':_0x3d9679})),_0x39aab1==_0xc0e2be&&(_0x3d9679=null,_0xc0e2be=null);}}const _0x3f548={},_0x15fba4=new Set();for(const _0x1c23e5 of _0x2aab49){const _0x9cffd=_0x26ffa0['deletions'][_0x1c23e5],_0x355828=_0x26ffa0[_0x264e('0x2a')][_0x1c23e5];for(const {userId:_0x4e555f}of this[_0x264e('0xec')][_0x264e('0x78')]())null!==_0x4e555f&&_0x15fba4[_0x264e('0x52')](_0x4e555f);for(const {userId:_0x20e2d7}of this[_0x264e('0x89')][_0x264e('0x78')]())null!==_0x20e2d7&&_0x15fba4[_0x264e('0x52')](_0x20e2d7);this[_0x264e('0x31')](_0x355828,_0x312d13[_0x264e('0x2a')][_0x1c23e5],_0x55b139,'insertion',_0x15fba4),this[_0x264e('0x31')](_0x9cffd,_0x312d13[_0x264e('0x41')][_0x1c23e5],_0x26f5e3,'deletion',_0x15fba4),_0x3f548[_0x1c23e5]={'insertions':this[_0x264e('0x70')](_0x355828),'deletions':this[_0x264e('0x70')](_0x9cffd),'attachChange':this[_0x264e('0x89')]['get'](_0x1c23e5)||null,'attributesBefore':_0x42196e(this[_0x264e('0x39')][_0x264e('0x28')](_0x1c23e5))||{},'attributesAfter':_0x42196e(this[_0x264e('0x69')]['get'](_0x1c23e5))};}return{'diffData':_0x3f548,'authorsIds':Array[_0x264e('0x38')](_0x15fba4)};}[_0x264e('0xe5')](_0x46bfdc){for(const [,_0x3bd749]of _0x46bfdc[_0x264e('0x47')]){const _0x161d6b=_0x3bd749[_0x264e('0x2b')]['getAncestors']()[_0x264e('0x9a')](_0xa65191=>_0x264e('0xb5')==_0xa65191[_0x264e('0x4d')]);for(const _0x514653 of _0x161d6b)0x1==_0x514653[_0x264e('0x96')]&&_0x514653[_0x264e('0xf0')](0x0)['is'](_0x264e('0x9e'),_0x264e('0x34'))&&_0x514653[_0x264e('0xf0')](0x0)[_0x264e('0x55')](_0x264e('0xd7'),!0x0);}}[_0x264e('0x70')](_0x4fdf84){this[_0x264e('0xe5')](_0x4fdf84);const _0xed79c=this[_0x264e('0x99')]['data']['toView'](_0x4fdf84,{}),_0x52f35d=Array[_0x264e('0x38')](_0xed79c[_0x264e('0xf6')]())[_0x264e('0xe0')](_0x2a116a=>this[_0x264e('0xd9')](_0x2a116a));return JSON[_0x264e('0x15')](_0x52f35d);}['_getViewJson'](_0x41a64e){if(_0x41a64e['is'](_0x264e('0x27')))return _0x41a64e[_0x264e('0x90')];{const _0x41d730=_0x41a64e;return{'type':Object[_0x264e('0x5a')](B)[_0x264e('0x6b')](_0x223e83=>_0x41a64e instanceof B[_0x223e83]),'name':_0x41d730[_0x264e('0x4d')],'attributes':Array[_0x264e('0x38')](_0x41d730[_0x264e('0xfa')]()),'children':Array[_0x264e('0x38')](_0x41d730[_0x264e('0xf6')]())[_0x264e('0xe0')](_0x54e4cc=>this[_0x264e('0xd9')](_0x54e4cc))};}}['_markChanges'](_0x582081,_0x1bfe18,_0x45c442,_0x46dc73,_0x545ba2){let _0x2bde80=null,_0x26bde3=null,_0x4f5cc2=0x0;const _0x3e7e43=this[_0x264e('0x99')][_0x264e('0xa')];for(let _0x2daa5e=0x0;_0x2daa5e<_0x1bfe18[_0x264e('0x5')];_0x2daa5e++){const _0x43d5d0=this['_getVidAttributeName'](_0x1bfe18[_0x2daa5e]),_0x50a474=_0x1bfe18[_0x2daa5e]['item'][_0x264e('0xed')](_0x43d5d0),_0x193aaf=_0x45c442['get'](_0x50a474),_0x5b9529=_0x2daa5e==_0x1bfe18[_0x264e('0x5')]-0x1;(!_0x2bde80&&_0x193aaf&&(_0x2bde80=_0x193aaf,_0x26bde3=_0x1bfe18[_0x2daa5e]),_0x2bde80&&(!_0x193aaf||_0x193aaf[_0x264e('0x104')]!=_0x2bde80['userId']))&&(_0xff9fb0(_0x193aaf,L(_0x26bde3,_0x582081,_0x3e7e43),L(_0x1bfe18[_0x2daa5e],_0x582081,_0x3e7e43)),_0x2bde80=_0x193aaf||null,_0x26bde3=_0x193aaf?_0x1bfe18[_0x2daa5e]:null),_0x2bde80&&_0x5b9529&&_0xff9fb0(_0x193aaf,L(_0x26bde3,_0x582081,_0x3e7e43),W(_0x1bfe18[_0x2daa5e],_0x582081,_0x3e7e43));}function _0xff9fb0(_0x1336d4,_0x192eb1,_0x45f6f1){const _0x3bd32d=_0x2bde80['userId'],_0x290fc8=_0x264e('0xce')+_0x46dc73+':'+_0x3bd32d+':'+_0x4f5cc2++,_0x503da0=_0x3e7e43[_0x264e('0xdb')](_0x192eb1,_0x45f6f1);_0x582081['markers'][_0x264e('0x9b')](_0x290fc8,_0x503da0),null!==_0x3bd32d&&_0x545ba2['add'](_0x3bd32d);}}[_0x264e('0xb3')](_0x56b839){switch(_0x56b839['type']){case _0x264e('0xee'):return _0x264e('0xaf');case _0x264e('0x36'):return _0x264e('0x9f');default:return _0x264e('0x16');}}[_0x264e('0xa8')](_0x2dc613,_0x5bd08c){_0x2dc613[_0x264e('0x1b')]=null;for(const _0x2632e8 in _0x2dc613){const _0x557392=_0x2dc613[_0x2632e8];if(_0x557392 instanceof _0x2b3ae5){const _0x538d01=_0x5bd08c[_0x264e('0x28')](_0x557392[_0x264e('0xc9')][_0x264e('0x103')]);_0x2dc613[_0x2632e8]=this[_0x264e('0xa1')](_0x557392,_0x538d01);}if(_0x557392 instanceof _0x4befa6){const _0x1d7235=_0x5bd08c[_0x264e('0x28')](_0x557392[_0x264e('0xc9')][_0x264e('0x103')]);_0x2dc613[_0x2632e8]=this[_0x264e('0x1c')](_0x557392,_0x1d7235);}_0x264e('0xc9')===_0x2632e8&&(_0x2dc613['root']=_0x5bd08c[_0x264e('0x28')](_0x2dc613[_0x264e('0xc9')][_0x264e('0x103')]));}}[_0x264e('0x1c')](_0x10c738,_0x44e757){return this['editor']['model'][_0x264e('0xdb')](this[_0x264e('0xa1')](_0x10c738['start'],_0x44e757),this[_0x264e('0xa1')](_0x10c738[_0x264e('0xb6')],_0x44e757));}['_fixPosition'](_0x20599b,_0x1fed29){return this['editor'][_0x264e('0xa')][_0x264e('0x29')](_0x1fed29,_0x20599b[_0x264e('0x64')],_0x20599b['stickiness']);}[_0x264e('0x45')](_0x4843cb){const _0x347382=this[_0x264e('0xca')][_0x264e('0x28')](_0x4843cb[_0x264e('0xa6')][_0x264e('0xc9')]['rootName']),_0x1237f4=this[_0x264e('0xa1')](_0x4843cb['position'],_0x347382),_0x2a1be6=null===_0x4843cb[_0x264e('0xe2')]?null:_0x4843cb[_0x264e('0xe2')]||this[_0x264e('0x99')]['plugins'][_0x264e('0x28')](_0x264e('0xeb'))['me']['id'],_0x30e7d9=_0x1237f4['parent'],_0x477108=this['_revisionId'],_0x539066=[];for(const _0x155aa6 of _0x4843cb[_0x264e('0x8f')])if(_0x155aa6['is'](_0x264e('0x9e')))_0x539066['push'](this[_0x264e('0xe7')](_0x155aa6));else for(let _0x32f9fd=0x0;_0x32f9fd<_0x155aa6[_0x264e('0x8c')];_0x32f9fd++)_0x539066[_0x264e('0x33')](new _0x48299c(_0x264e('0x27'),{'vid':this[_0x264e('0xab')]++}));const _0x263ccb=this[_0x264e('0xab')];for(let _0x4a3710=_0x477108;_0x4a3710<_0x263ccb;_0x4a3710++)this[_0x264e('0x3a')][_0x264e('0x9b')](_0x4a3710,{'userId':_0x2a1be6});_0x30e7d9[_0x264e('0xe3')](_0x1237f4[_0x264e('0xea')],_0x539066);}[_0x264e('0x7e')](_0x2c1386){(_0x2c1386=this['_cloneOperation'](_0x2c1386,this['_idsRoots']))[_0x264e('0xcf')]();const _0x32f470=null===_0x2c1386[_0x264e('0xe2')]?null:_0x2c1386['_authorId']||this[_0x264e('0x99')][_0x264e('0xaa')][_0x264e('0x28')](_0x264e('0xeb'))['me']['id'],_0x571f41=_0x2c1386['getMovedRangeStart'](),_0x54139b=_0x571f41['parent'],_0x4b2457=_0x571f41[_0x264e('0xea')];!function _0x4a51ef(_0x30707d,_0x2d6363,_0x2169f8,_0x44b188){for(let _0x571e87=_0x2169f8;_0x571e87<_0x44b188;_0x571e87++){const _0x5771a3=_0x2d6363[_0x264e('0xf0')](_0x571e87);_0x5771a3['is'](_0x264e('0x9e'),'$text')?_0x30707d['set'](_0x5771a3[_0x264e('0xed')](_0x264e('0x16')),{'userId':_0x32f470}):(_0x30707d[_0x264e('0x9b')](_0x5771a3['getAttribute']('vid_start'),{'userId':_0x32f470}),_0x4a51ef(_0x30707d,_0x5771a3,0x0,_0x5771a3[_0x264e('0x96')]),_0x30707d['set'](_0x5771a3['getAttribute'](_0x264e('0x9f')),{'userId':_0x32f470}));}}(this['_touched'],_0x54139b,_0x4b2457,_0x4b2457+_0x2c1386[_0x264e('0xbc')]);}[_0x264e('0x91')](_0x48c3e3){const _0x52242d=null===(_0x48c3e3=this[_0x264e('0x4')](_0x48c3e3,this[_0x264e('0xca')]))[_0x264e('0xe2')]?null:_0x48c3e3[_0x264e('0xe2')]||this[_0x264e('0x99')][_0x264e('0xaa')]['get'](_0x264e('0xeb'))['me']['id'],_0x242161=_0x48c3e3[_0x264e('0xf4')]['parent'],_0x3fe997=_0x48c3e3[_0x264e('0x94')]['parent'],_0x120bf7=_0x242161['getAttribute']('vid_end'),_0x59eee1=_0x3fe997[_0x264e('0xed')]('vid_start');_0x242161[_0x264e('0x55')](_0x264e('0x9f'),_0x3fe997[_0x264e('0xed')]('vid_end')),_0x3fe997[_0x264e('0x55')](_0x264e('0x9f'),_0x120bf7),this[_0x264e('0x3a')]['set'](_0x59eee1,{'userId':_0x52242d}),this['_touched']['set'](_0x120bf7,{'userId':_0x52242d}),_0x48c3e3[_0x264e('0xcf')]();}[_0x264e('0x51')](_0x37c57b){const _0x367f4d=null===(_0x37c57b=this[_0x264e('0x4')](_0x37c57b,this['_idsRoots']))[_0x264e('0xe2')]?null:_0x37c57b[_0x264e('0xe2')]||this[_0x264e('0x99')][_0x264e('0xaa')]['get'](_0x264e('0xeb'))['me']['id'],_0xc68751=_0x37c57b[_0x264e('0x32')],_0x7824ae=_0x37c57b['splitPosition'][_0x264e('0x8d')];_0x37c57b[_0x264e('0xcf')]();const _0x4591b2=_0x7824ae[_0x264e('0xed')](_0x264e('0x9f')),_0x214aa0=_0x37c57b[_0x264e('0xc5')][_0x264e('0x57')];if(_0xc68751){const _0x3fd631=_0x214aa0['getAttribute'](_0x264e('0x9f')),_0x1bf6cc=_0x7824ae['getAttribute'](_0x264e('0x9f'));_0x7824ae[_0x264e('0x55')](_0x264e('0x9f'),_0x3fd631),_0x214aa0[_0x264e('0x55')](_0x264e('0x9f'),_0x1bf6cc),this['_touched'][_0x264e('0x9b')](_0x7824ae[_0x264e('0xed')](_0x264e('0x9f')),{'userId':_0x367f4d}),this[_0x264e('0x3a')][_0x264e('0x9b')](_0x214aa0['getAttribute'](_0x264e('0xaf')),{'userId':_0x367f4d});}else{const _0x3b726d=this[_0x264e('0xab')]++,_0x14ba96=this['_revisionId']++;_0x7824ae[_0x264e('0x55')](_0x264e('0x9f'),_0x3b726d),_0x214aa0[_0x264e('0x55')](_0x264e('0xaf'),_0x14ba96),_0x214aa0[_0x264e('0x55')](_0x264e('0x9f'),_0x4591b2),this[_0x264e('0x3a')][_0x264e('0x9b')](_0x3b726d,{'userId':_0x367f4d}),this[_0x264e('0x3a')][_0x264e('0x9b')](_0x14ba96,{'userId':_0x367f4d});}}[_0x264e('0x65')](_0x159db4){if(!_0x159db4['affectsData'])return;const _0x5ffa6f=(_0x159db4=this['_cloneOperation'](_0x159db4,this[_0x264e('0xe8')]))[_0x264e('0x1')]?_0x159db4[_0x264e('0x1')][_0x264e('0xc9')]:null,_0x20fd38=_0x159db4[_0x264e('0x10a')]?_0x159db4[_0x264e('0x10a')][_0x264e('0xc9')]:null;_0x5ffa6f&&this[_0x264e('0xc2')][_0x264e('0x54')](_0x159db4[_0x264e('0x4d')]),_0x20fd38&&this['_markers'][_0x264e('0x9b')](_0x159db4[_0x264e('0x4d')],_0x159db4[_0x264e('0x10a')][_0x264e('0xde')]());const _0x16c3d3=null===_0x159db4[_0x264e('0xe2')]?null:_0x159db4['_authorId']||this[_0x264e('0x99')][_0x264e('0xaa')][_0x264e('0x28')](_0x264e('0xeb'))['me']['id'],_0xb55b86=_0x159db4[_0x264e('0x4d')];if(!this[_0x264e('0xec')][_0x264e('0x17')](_0xb55b86))return void this[_0x264e('0xec')][_0x264e('0x9b')](_0xb55b86,{'range':_0x159db4['oldRange'],'userId':_0x16c3d3});const _0x1888ce=this[_0x264e('0xec')][_0x264e('0x28')](_0xb55b86),_0x900346=_0x1888ce[_0x264e('0x56')],_0x391bd1=_0x159db4[_0x264e('0x10a')];null==_0x900346&&null==_0x391bd1||_0x900346&&_0x391bd1&&_0x900346[_0x264e('0xdc')](_0x391bd1)?this[_0x264e('0xec')][_0x264e('0x54')](_0x159db4[_0x264e('0x4d')]):_0x1888ce[_0x264e('0x104')]=_0x16c3d3;}[_0x264e('0x40')](_0xe9afef,_0x4003a5){this[_0x264e('0xe8')][_0x264e('0x17')](_0xe9afef[_0x264e('0x103')])?this[_0x264e('0xe8')][_0x264e('0x28')](_0xe9afef[_0x264e('0x103')])[_0x264e('0x106')]=_0xe9afef[_0x264e('0x8e')]:(this['_diffRoots']['set'](_0xe9afef[_0x264e('0x103')],G(_0xe9afef[_0x264e('0x103')],!0x0)),this[_0x264e('0x69')][_0x264e('0x9b')](_0xe9afef['rootName'],{}),_0x4003a5&&this['_idsRoots'][_0x264e('0x9b')](_0xe9afef[_0x264e('0x103')],G(_0xe9afef[_0x264e('0x103')],!0x0)));const _0x3229ad=null===_0xe9afef[_0x264e('0xe2')]?null:_0xe9afef['_authorId']||this[_0x264e('0x99')][_0x264e('0xaa')][_0x264e('0x28')](_0x264e('0xeb'))['me']['id'],_0x169fd9=this[_0x264e('0x89')][_0x264e('0x28')](_0xe9afef[_0x264e('0x103')]);_0x169fd9&&_0x169fd9['userId']===_0x3229ad?this[_0x264e('0x89')]['delete'](_0xe9afef[_0x264e('0x103')]):this[_0x264e('0x89')][_0x264e('0x9b')](_0xe9afef['rootName'],{'userId':_0x3229ad,'isAttached':_0xe9afef[_0x264e('0x8e')]});}[_0x264e('0x49')](_0x21dd06){const _0x59b014=this[_0x264e('0x69')][_0x264e('0x28')](_0x21dd06[_0x264e('0xc9')][_0x264e('0x103')]);null===_0x21dd06[_0x264e('0x95')]?delete _0x59b014[_0x21dd06[_0x264e('0x8')]]:_0x59b014[_0x21dd06[_0x264e('0x8')]]=_0x21dd06[_0x264e('0x95')];}}function q(_0x5aee29){const _0x59bbc0=G(_0x5aee29[_0x264e('0x103')],_0x5aee29['isAttached']());for(const _0x7e025 of _0x5aee29[_0x264e('0xf6')]()){const _0x2a6e85=_0x7e025[_0x264e('0xe4')](!0x0);_0x59bbc0[_0x264e('0x6a')](_0x2a6e85);}return _0x59bbc0;}function G(_0x96d24f,_0x135e6=!0x0){const _0x528caa=new _0x4e0deb();return _0x528caa[_0x264e('0x103')]=_0x96d24f,_0x528caa[_0x264e('0x106')]=_0x135e6,_0x528caa[_0x264e('0x46')]=()=>_0x528caa[_0x264e('0x106')],_0x528caa;}function L(_0x4b2c9b,_0x1be511,_0x266c33){const _0x54528f=_0x264e('0x36')==_0x4b2c9b[_0x264e('0x67')]?_0x266c33[_0x264e('0x43')](_0x4b2c9b[_0x264e('0xc6')],'end'):_0x266c33[_0x264e('0x9d')](_0x4b2c9b[_0x264e('0xc6')]);return _0x266c33['createPositionFromPath'](_0x1be511,_0x54528f[_0x264e('0x64')],_0x54528f['stickiness']);}function W(_0x5b4fbd,_0x5b549a,_0x340eed){const _0xcfe2f3=_0x264e('0xee')==_0x5b4fbd[_0x264e('0x67')]?_0x340eed['createPositionAt'](_0x5b4fbd[_0x264e('0xc6')],0x0):_0x340eed[_0x264e('0xb4')](_0x5b4fbd[_0x264e('0xc6')]);return _0x340eed['createPositionFromPath'](_0x5b549a,_0xcfe2f3[_0x264e('0x64')],_0xcfe2f3['stickiness']);}
|