@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230912.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 _0x2ffd=['_baseIdsRoots','getIndex','currentRevision','_clone','offset','_prepareViewToSave','revision','getAttributes','_pendingAction','_setConversion','merge','howMany','revision-end','_handleInsertOperation','_fixPosition','creator','getAttribute','_lastFrom','plugins','_touchedRoots','_handleOperation','markers','_diffRootsAttributes','rootsAttributes','_handleSplitOperation','_lastTo','get','addRootAttribute','_isAttached','removeRootAttribute','start','attributes','elementStart','_insertChild','from','_setAttribute','RevisionsRepository','getChild','revision:','_revisionId','NEGATIVE_INFINITY','_findInsertionIndex','Initial\x20revision','trim','addRevisionData','length','_initialRevisionId','getCurrentRevisionId','dataToMarker','attachChange','attributesAfter','repository','PendingActions','_execute','rootName','getRange','getRootNames','_revisionDataBuilder','processor','forEach','RealTimeCollaborationClient','_authorId','upcast','graveyardPosition','loadState','isEnabled','name','getRevision','getMovedRangeStart','adapter','hasContent','_processRootBeforeSave','_removeMetaData','previousPosition','filter','_handleRootOperation','_isPendingUpdate','_getState','init','_markers','getData','authorsIds','createPositionBefore','_handleRootAttributeOperation','_makeIdsRoot','tableCell','document','reInit','delete','_fixRange','split','range','buildRevisionData','_applyOperations','_getVidAttributeName','model','changeRootAttribute','has','roots','createdAt','define','detachRoot','parent','set','useFillerType','string','marked','toData','root','path','clear','element','_handleMarkerOperation','includes','nodeAfter','default','Users','push','vid_start','values','isAdd','elementEnd','splitPosition','_getBaseVids','_copyMarkers','userId','saveRevision','_continueCurrentRevision','diffData','find','targetPosition','version','end','baseVersion','vid','view','size','getChildren','_loadRevisionData','_removePendingAction','toModel','getNodeByPath','sort','_replaceEditorDataWithRevisionData','source','getRoot','newRange','_handleMergeOperation','conversion','editor','insertionPosition','_touched','_getFromVersion','_getPreviousFrom','documentFragment','marker','isAttached','_addPendingAction','stickiness','item','createRange','offsetSize','key','_update','_startingVersion','_touchedMarkers','insertions','setRevisionData','_baseRoots','revision-start','editing','keys','setSource','_removeRevisionMarkers','editor-initial-data-replaced-with-revision-data','_bufferUpdate','history','locale','getRevisionDocumentData','getUser','createPositionFromPath','_transformMarkers','data','_idsRoots','remove','nodes','_diffRoots','_loadedStateData','_createFromRanges','_baseRootsAttributes','_loadState','$text','_makeModelFromViewString','keepParagraph','_generateTape','parse','authors','clone','_markChanges','_savedMetaData','initialData','_createCurrentRevision','_makeRevision','_saveMetaData','children','toVersion','createPositionAt','oldRange','updateRevisions','_calculateMetaData','attributesBefore','sourcePosition','config','reverse','dataDowncast','resolve','_handleMoveOperation','map','type','fromVersion','then','vid_end','getWalker','isReady','reinsert','for','_fixOperation','$graveyard','PENDING_ACTION_REVISION_HISTORY','_createInitialRevision','getTime','_startingRevisionId','insert','createRangeIn','_reset','position','revisionHistory.resumeUnsavedRevision','sendBufferedUpdates','addRoot','slice','_bufferedUpdates','afterInit','some','affectsData','toView','deletions','_source','startsWith','add','_cloneOperation','text'];(function(_0x25d3eb,_0x2ffd6b){const _0x7c4123=function(_0x4da809){while(--_0x4da809){_0x25d3eb['push'](_0x25d3eb['shift']());}};_0x7c4123(++_0x2ffd6b);}(_0x2ffd,0x103));const _0x7c41=function(_0x25d3eb,_0x2ffd6b){_0x25d3eb=_0x25d3eb-0x0;let _0x7c4123=_0x2ffd[_0x25d3eb];return _0x7c4123;};import{Users as _0x4937d3}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x19f994,PendingActions as _0x458d0f}from'ckeditor5/src/core';import{logWarning as _0x56d67b,uid as _0x3a9d44}from'ckeditor5/src/utils';import{Position as _0x32346e,Range as _0x34fae3,Element as _0x26a125,DocumentFragment as _0x285c45,ViewText as _0x16e3d3,ViewElement as _0x3e735f,ViewContainerElement as _0x344c63,ViewAttributeElement as _0x2cb87e,ViewEmptyElement as _0x33fabb,ViewRawElement as _0x460365,ViewUIElement as _0x306036,ViewDocumentFragment as _0x1ee88d}from'ckeditor5/src/engine';import _0x3b1191 from'./revisionsrepository';import{getTranslation as _0x73fcda}from'./utils/common-translations';import{cloneDeep as _0x590a64,isEqual as _0x42fc09}from'lodash-es';const B={'c':_0x344c63,'a':_0x2cb87e,'e':_0x33fabb,'r':_0x460365,'u':_0x306036};export default class l extends _0x19f994{static get['pluginName'](){return'RevisionTracker';}static get['requires'](){return[_0x4937d3,_0x3b1191,_0x458d0f];}constructor(_0x57c559){super(_0x57c559),this[_0x7c41('0x3d')]=null,this[_0x7c41('0xf5')]=null,this[_0x7c41('0x31')]=new H(this[_0x7c41('0x8d')]),this[_0x7c41('0x26')]=this[_0x7c41('0x8d')][_0x7c41('0xcc')][_0x7c41('0x12')]('collaboration.channelId')||'initial',this[_0x7c41('0xe8')]=new Map(),this[_0x7c41('0xb3')]=null;const _0x4b9c11=_0x3a9d44();this[_0x7c41('0xee')]={'history':this[_0x7c41('0x8d')]['model'][_0x7c41('0x4e')][_0x7c41('0xa8')],'getLatestVersion':()=>Promise[_0x7c41('0xcf')](this[_0x7c41('0x8d')][_0x7c41('0x57')]['document'][_0x7c41('0x7b')]),'getCurrentRevisionId':()=>_0x4b9c11},this[_0x7c41('0x5f')](_0x7c41('0xd7'),!0x1),this[_0x7c41('0x5f')](_0x7c41('0x39'),!0x0),this[_0x7c41('0x5f')](_0x7c41('0x44'),!0x1),this[_0x7c41('0x8d')][_0x7c41('0xcc')][_0x7c41('0x5c')](_0x7c41('0xe4'),!0x0),this[_0x7c41('0x8d')]['conversion'][_0x7c41('0xd9')](_0x7c41('0x36'))[_0x7c41('0x28')]({'view':_0x7c41('0xf9')});}[_0x7c41('0x46')](){this['repository']=this[_0x7c41('0x8d')]['plugins'][_0x7c41('0x12')](_0x7c41('0x1c')),this[_0x7c41('0x1')](),this[_0x7c41('0x8d')][_0x7c41('0xae')]['on']('ready',()=>{const _0x598f39=this[_0x7c41('0x2b')][_0x7c41('0x3b')](0x0),_0x42f359=_0x598f39&&null===_0x598f39[_0x7c41('0x7')]?_0x598f39:null;if(this['_continueCurrentRevision']=!!_0x42f359&&this[_0x7c41('0x8d')][_0x7c41('0xcc')]['get'](_0x7c41('0xe4')),this[_0x7c41('0x8d')]['plugins'][_0x7c41('0x59')](_0x7c41('0x34'))){const _0x6ba082=this[_0x7c41('0xee')][_0x7c41('0x27')](),_0x42b28d=this['repository'][_0x7c41('0x3b')](_0x6ba082);if(_0x42b28d)this[_0x7c41('0x9c')]=_0x42b28d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x34b3fa=this[_0x7c41('0xee')][_0x7c41('0xa8')]['_operations']['find'](_0x2412b5=>!_0x2412b5['_isInit']),_0x23be81=_0x34b3fa?_0x34b3fa[_0x7c41('0x7d')]:this[_0x7c41('0xee')][_0x7c41('0xa8')][_0x7c41('0x7b')];_0x598f39?(_0x598f39['toVersion']<_0x23be81&&_0x598f39[_0x7c41('0x9b')]({'toVersion':_0x23be81}),this[_0x7c41('0x77')]?(this[_0x7c41('0xee')][_0x7c41('0x27')]=()=>_0x42f359['id'],this[_0x7c41('0x9c')]=_0x42f359[_0x7c41('0xd3')]):(this[_0x7c41('0x9c')]=_0x598f39[_0x7c41('0xc5')],this[_0x7c41('0x77')]=!0x1)):(this['_startingVersion']=_0x23be81,this[_0x7c41('0x77')]=!0x1);}}else _0x42f359&&(this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x4e')]['history'][_0x7c41('0x7b')]=Math['max'](_0x42f359[_0x7c41('0xc5')],this[_0x7c41('0x8d')][_0x7c41('0x57')]['document']['history'][_0x7c41('0x7b')]),_0x42f359[_0x7c41('0xd3')]===_0x42f359[_0x7c41('0xc5')]?(0x0!==_0x42f359['fromVersion']&&(this['_source'][_0x7c41('0x27')]=()=>_0x42f359['id']),this[_0x7c41('0x77')]=!0x1):this[_0x7c41('0x77')]&&(this[_0x7c41('0xee')]['getCurrentRevisionId']=()=>_0x42f359['id'],this['_startingVersion']=_0x42f359[_0x7c41('0xd3')])),this[_0x7c41('0x77')]||(this['_startingVersion']=this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x4e')][_0x7c41('0x7b')]);this['_revisionDataBuilder']['init'](this[_0x7c41('0xee')][_0x7c41('0xa8')]),this[_0x7c41('0xdd')](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this[_0x7c41('0xe5')]();}),this['bind'](_0x7c41('0xd7'))['to'](this,_0x7c41('0x44'),_0x30f070=>!_0x30f070);}async[_0x7c41('0xe9')](){if(this[_0x7c41('0x2b')][_0x7c41('0x25')]>0x0){const _0x33aafa=this[_0x7c41('0x2b')][_0x7c41('0x3b')](0x0),_0xeb5bb5=await this[_0x7c41('0xaa')](_0x33aafa),_0x1f9712=await this['getRevisionRootsAttributes'](_0x33aafa);this[_0x7c41('0x87')](_0xeb5bb5,_0x1f9712);}}[_0x7c41('0xa4')](_0xf93380){this[_0x7c41('0xee')]=_0xf93380;}async['update'](){const _0x48e733=await this['_source']['getLatestVersion']();if(_0x48e733>this[_0x7c41('0xf5')][_0x7c41('0xc5')]){await this[_0x7c41('0xb6')]();const _0x50e949=this[_0x7c41('0x54')]({'revision':this[_0x7c41('0xf5')],'to':_0x48e733});_0x50e949[_0x7c41('0xbc')]=_0x50e949[_0x7c41('0x49')][_0x7c41('0xd1')](_0x22d35c=>this[_0x7c41('0x8d')][_0x7c41('0xa')][_0x7c41('0x12')](_0x7c41('0x6c'))[_0x7c41('0xab')](_0x22d35c)),this['currentRevision'][_0x7c41('0x9b')](_0x50e949);}}async[_0x7c41('0xb6')](){this['_continueCurrentRevision']&&!this[_0x7c41('0xb3')]&&(await this[_0x7c41('0x82')](this['currentRevision']),this[_0x7c41('0x31')][_0x7c41('0x38')](this[_0x7c41('0xf5')]),this[_0x7c41('0xb3')]={'fromVersion':this[_0x7c41('0xf5')][_0x7c41('0xd3')],'authors':this[_0x7c41('0xf5')][_0x7c41('0xbc')][_0x7c41('0xe7')]()});}async[_0x7c41('0x76')](_0x33ff8b={},_0x52bd02=null){const _0x4301ac=[];await this[_0x7c41('0xb6')](),this[_0x7c41('0x77')]=!0x1,_0x52bd02>this[_0x7c41('0xf5')]['toVersion']&&(_0x52bd02=null),null===_0x52bd02&&(_0x52bd02=await this[_0x7c41('0xee')]['getLatestVersion']());const _0x1f79a8=this[_0x7c41('0x90')](_0x52bd02),_0x417229=this[_0x7c41('0x54')]({'from':_0x1f79a8,'to':_0x52bd02});if(this[_0x7c41('0xf5')]['toVersion']<_0x52bd02){const _0x4cf751=this[_0x7c41('0x54')]({'revision':this[_0x7c41('0xf5')],'from':_0x52bd02,'to':_0x52bd02});_0x4cf751[_0x7c41('0xbc')]=[],_0x4cf751[_0x7c41('0x49')]=[],_0x4cf751['id']=this['currentRevision']['id'],this[_0x7c41('0xf5')]['_update'](_0x4cf751,!0x0),delete _0x4cf751[_0x7c41('0xbc')],_0x4301ac[_0x7c41('0x6d')](_0x4cf751);}_0x33ff8b['creatorId']=this[_0x7c41('0x8d')][_0x7c41('0xa')]['get'](_0x7c41('0x6c'))['me']['id'],_0x33ff8b[_0x7c41('0x3a')]=_0x33ff8b[_0x7c41('0x3a')]||null,_0x33ff8b['id']=_0x33ff8b['id']||_0x3a9d44(),_0x33ff8b={..._0x33ff8b,..._0x417229};const _0x17ff11=this[_0x7c41('0x24')](_0x33ff8b);_0x4301ac['push'](_0x33ff8b);const _0x345e62=this[_0x7c41('0x2b')][_0x7c41('0xf4')](_0x17ff11);if(0x0!==_0x345e62){const _0x20203f=this[_0x7c41('0x2b')]['getRevision'](_0x345e62-0x1);if(_0x20203f['fromVersion']!==_0x52bd02){const _0x332678=this[_0x7c41('0x31')]['getData'](_0x52bd02,_0x20203f[_0x7c41('0xc5')]),_0x3d867d={'id':_0x20203f['id'],'diffData':_0x332678[_0x7c41('0x78')],'authorsIds':_0x332678[_0x7c41('0x49')],'authors':_0x332678[_0x7c41('0x49')][_0x7c41('0xd1')](_0x131ec8=>this[_0x7c41('0x8d')]['plugins'][_0x7c41('0x12')](_0x7c41('0x6c'))[_0x7c41('0xab')](_0x131ec8)),'fromVersion':_0x52bd02};_0x20203f===this[_0x7c41('0xf5')]&&(_0x3d867d[_0x7c41('0x5b')]=new Date(_0x33ff8b[_0x7c41('0x5b')][_0x7c41('0xde')]()+0xa)),_0x20203f['_update'](_0x3d867d,!0x0),delete _0x3d867d['authors'],_0x4301ac[_0x7c41('0x6d')](_0x3d867d);}}if(this[_0x7c41('0x3d')]){for(const _0x526772 of _0x4301ac)this['_bufferUpdate'](_0x526772['id'],_0x526772,!0x0);this[_0x7c41('0xe5')]();}return _0x17ff11;}[_0x7c41('0x24')](_0xbfba2d){const _0x4607bb=this[_0x7c41('0x2b')]['createRevision'](_0xbfba2d);return this[_0x7c41('0x3d')]&&_0x4607bb['on'](_0x7c41('0x9b'),(_0x2e5d96,_0x5e4ffc,_0x4eb0c0)=>{_0x4eb0c0||(this[_0x7c41('0xa7')](_0x5e4ffc['id'],_0x5e4ffc,!0x0),this[_0x7c41('0xe5')]());}),this[_0x7c41('0x2b')]['addRevision'](_0x4607bb,this[_0x7c41('0x21')](_0x4607bb)),_0x4607bb;}async[_0x7c41('0xaa')](_0x1636fc){await this[_0x7c41('0x82')](_0x1636fc);const _0xd22061={};for(const _0x2ae7cc in _0x1636fc[_0x7c41('0x78')]){if(_0x1636fc['diffData'][_0x2ae7cc]['attachChange']&&!_0x1636fc[_0x7c41('0x78')][_0x2ae7cc][_0x7c41('0x29')][_0x7c41('0x94')])continue;const _0x44f9c4=this[_0x7c41('0xa5')](JSON[_0x7c41('0xbb')](_0x1636fc[_0x7c41('0x78')][_0x2ae7cc]['insertions'])),_0x20a395=this[_0x7c41('0x8d')]['editing'][_0x7c41('0x7f')][_0x7c41('0x4e')],_0x6f2741=new _0x1ee88d(_0x20a395,_0x44f9c4[_0x7c41('0xd1')](_0x2d9c42=>J(_0x2d9c42,this[_0x7c41('0x8d')])));this[_0x7c41('0x8d')][_0x7c41('0xae')][_0x7c41('0x32')]['useFillerType'](_0x7c41('0x62')),_0xd22061[_0x2ae7cc]=this['editor']['data'][_0x7c41('0x32')][_0x7c41('0x63')](_0x6f2741),this[_0x7c41('0x8d')][_0x7c41('0xae')]['processor'][_0x7c41('0x60')](_0x7c41('0x6b'));}return _0xd22061;}async['getRevisionRootsAttributes'](_0x269de4){await this[_0x7c41('0x82')](_0x269de4);const _0x9e5f12={};for(const _0x18b571 in _0x269de4['diffData'])_0x269de4[_0x7c41('0x78')][_0x18b571][_0x7c41('0x29')]&&!_0x269de4[_0x7c41('0x78')][_0x18b571]['attachChange'][_0x7c41('0x94')]||(_0x9e5f12[_0x18b571]=_0x269de4[_0x7c41('0x78')][_0x18b571]['attributesAfter']||{});return _0x9e5f12;}['sendBufferedUpdates'](){if(0x0===this[_0x7c41('0xe8')][_0x7c41('0x80')])return;if(this[_0x7c41('0x44')])return;let _0x1e16cc=Array[_0x7c41('0x1a')](this[_0x7c41('0xe8')][_0x7c41('0x6f')]());this[_0x7c41('0xe8')][_0x7c41('0x66')]();for(let _0x1a3439=0x0;_0x1a3439<_0x1e16cc[_0x7c41('0x25')];_0x1a3439++){const _0x301621=_0x1e16cc[_0x1a3439];let _0x2ef5df=!0x1;for(const _0x2bb5f6 of Object[_0x7c41('0xa3')](_0x301621))void 0x0===_0x301621[_0x2bb5f6]?delete _0x301621[_0x2bb5f6]:'id'!==_0x2bb5f6&&(_0x2ef5df=!0x0);_0x2ef5df||(_0x1e16cc[_0x1a3439]=null);}if(_0x1e16cc=_0x1e16cc[_0x7c41('0x42')](_0x403a86=>null!==_0x403a86),!_0x1e16cc['length'])return;for(let _0x13361a=0x0;_0x13361a<_0x1e16cc[_0x7c41('0x25')];_0x13361a++){const _0xa62abe=_0x1e16cc[_0x13361a];void 0x0!==_0xa62abe['fromVersion']&&void 0x0===_0xa62abe[_0x7c41('0xc5')]&&(_0xa62abe[_0x7c41('0xc5')]=this[_0x7c41('0x2b')]['getRevision'](_0xa62abe['id'])[_0x7c41('0xc5')]),void 0x0!==_0xa62abe[_0x7c41('0xc5')]&&void 0x0===_0xa62abe['fromVersion']&&(_0xa62abe['fromVersion']=this['repository'][_0x7c41('0x3b')](_0xa62abe['id'])[_0x7c41('0xd3')]);}const _0x30be03=this[_0x7c41('0x8d')]['config'][_0x7c41('0x12')]('collaboration.channelId');this[_0x7c41('0x44')]=!0x0,this[_0x7c41('0x95')](),this[_0x7c41('0x3d')][_0x7c41('0xc8')](_0x1e16cc,_0x30be03)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3ce109=>{if(_0x3ce109)for(const _0x2adec9 of _0x3ce109)this[_0x7c41('0x9f')]({'id':_0x2adec9['id'],'createdAt':_0x2adec9[_0x7c41('0x5b')]});this[_0x7c41('0x83')](),this[_0x7c41('0xe5')]();});}['_replaceEditorDataWithRevisionData'](_0x2c5b07,_0xa69467){let _0xd0583b=this[_0x7c41('0x8d')][_0x7c41('0xcc')]['get'](_0x7c41('0xc0')),_0x1bccb3=this[_0x7c41('0x8d')][_0x7c41('0xcc')][_0x7c41('0x12')](_0x7c41('0xf'));if(void 0x0===_0xd0583b){_0xd0583b={};for(const _0x3a6e6a of this['editor'][_0x7c41('0x57')][_0x7c41('0x4e')][_0x7c41('0x30')]())_0xd0583b[_0x3a6e6a]='';}if('string'==typeof _0xd0583b&&(_0xd0583b={'main':_0xd0583b}),void 0x0===_0x1bccb3){_0x1bccb3={};for(const _0x4ec625 of this['editor']['model'][_0x7c41('0x4e')][_0x7c41('0x30')]())_0x1bccb3[_0x4ec625]={};}let _0x5c1443=!0x1;const _0x7cbae6=Object[_0x7c41('0xa3')](_0xd0583b),_0x3b3e52=Object[_0x7c41('0xa3')](_0x2c5b07);for(const _0xb2a25d of _0x7cbae6){if(_0xd0583b[_0xb2a25d]!==_0x2c5b07[_0xb2a25d]&&''!==_0xd0583b[_0xb2a25d][_0x7c41('0x23')]()){_0x5c1443=!0x0;break;}if(!_0x42fc09(_0x1bccb3[_0xb2a25d],_0xa69467[_0xb2a25d])&&Object[_0x7c41('0xa3')](_0x1bccb3[_0xb2a25d])['length']>0x0){_0x5c1443=!0x0;break;}}_0x5c1443||(_0x5c1443=_0x3b3e52[_0x7c41('0xea')](_0x4f0dfb=>!this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x4e')][_0x7c41('0x89')](_0x4f0dfb))),_0x5c1443&&_0x56d67b(_0x7c41('0xa6'),{'editorData':_0xd0583b,'editorRootsAttributes':_0x1bccb3,'revisionData':_0x2c5b07,'revisionRootsAttributes':_0xa69467}),this[_0x7c41('0x8d')]['config']['set'](_0x7c41('0xc0'),_0x2c5b07),this[_0x7c41('0x8d')][_0x7c41('0xcc')][_0x7c41('0x5f')](_0x7c41('0xf'),_0xa69467);}[_0x7c41('0x95')](){if(!this[_0x7c41('0x0')]){const _0x475237=this[_0x7c41('0x8d')][_0x7c41('0xa')][_0x7c41('0x12')](_0x7c41('0x2c'));this[_0x7c41('0x0')]=_0x475237['add'](_0x73fcda(this[_0x7c41('0x8d')][_0x7c41('0xa9')],_0x7c41('0xdc')));}}[_0x7c41('0x83')](){this[_0x7c41('0x0')]&&(this['editor']['plugins'][_0x7c41('0x12')]('PendingActions')[_0x7c41('0xb0')](this[_0x7c41('0x0')]),this[_0x7c41('0x0')]=null);}[_0x7c41('0x21')](_0x5b9b44){const _0x3b9e26=this[_0x7c41('0x2b')]['getRevisions']();_0x3b9e26[_0x7c41('0xcd')]();let _0x1b41fd=0x0;for(;_0x1b41fd<_0x3b9e26[_0x7c41('0x25')];){const _0x3fbfe5=_0x3b9e26[_0x1b41fd];if(_0x3fbfe5===this[_0x7c41('0xf5')]){_0x1b41fd++;continue;}if(_0x3fbfe5['id']===this['_initialRevisionId'])break;const _0x571fe9=_0x5b9b44[_0x7c41('0xc5')]-_0x3fbfe5[_0x7c41('0xc5')]||_0x5b9b44[_0x7c41('0xd3')]-_0x3fbfe5[_0x7c41('0xd3')];if(_0x571fe9>0x0)break;if(_0x571fe9<0x0)_0x1b41fd++;else{if(!_0x5b9b44[_0x7c41('0x7')]&&_0x3fbfe5['creator'])break;if(_0x3fbfe5[_0x7c41('0x7')]||!_0x5b9b44[_0x7c41('0x7')]){if(_0x5b9b44['createdAt']>_0x3fbfe5[_0x7c41('0x5b')])break;_0x1b41fd++;}else _0x1b41fd++;}}return _0x1b41fd;}[_0x7c41('0x9f')](_0x4997a3){const _0x509ad8=this[_0x7c41('0x2b')]['getRevision'](_0x4997a3['id']);if(_0x4997a3['createdAt']&&(_0x4997a3[_0x7c41('0x5b')]=new Date(_0x4997a3[_0x7c41('0x5b')])),_0x4997a3[_0x7c41('0x49')]){const _0x496315=this['editor']['plugins']['get'](_0x7c41('0x6c'));_0x4997a3[_0x7c41('0xbc')]=_0x4997a3[_0x7c41('0x49')]['map'](_0x49a78e=>_0x496315['getUser'](_0x49a78e));}_0x509ad8[_0x7c41('0x9b')](_0x4997a3,!0x0);}[_0x7c41('0x54')]({revision:_0xd99abb=null,from:_0x2a2453=null,to:_0xfe57b0=null}){_0x2a2453=null!==_0x2a2453?_0x2a2453:_0xd99abb[_0x7c41('0xd3')],_0xfe57b0=null!==_0xfe57b0?_0xfe57b0:_0xd99abb['toVersion'];const _0x432a62=this[_0x7c41('0x31')]['getData'](_0x2a2453,_0xfe57b0),_0x4c4261={'diffData':_0x432a62[_0x7c41('0x78')],'authorsIds':_0x432a62[_0x7c41('0x49')],'fromVersion':_0x2a2453,'toVersion':_0xfe57b0};if(!_0xd99abb||_0xfe57b0!==_0xd99abb[_0x7c41('0xc5')]){const _0x30b3d4=_0xfe57b0-0x1,_0x1fd6e7=this[_0x7c41('0xee')][_0x7c41('0xa8')]['getOperation'](_0x30b3d4);_0x4c4261[_0x7c41('0x5b')]=_0x1fd6e7&&_0x1fd6e7[_0x7c41('0x5b')]||new Date();}if(this[_0x7c41('0xb3')]&&_0x2a2453===this[_0x7c41('0xb3')][_0x7c41('0xd3')])for(const _0x6d670e of this[_0x7c41('0xb3')]['authors'])_0x4c4261[_0x7c41('0x49')][_0x7c41('0x69')](_0x6d670e['id'])||_0x4c4261[_0x7c41('0x49')][_0x7c41('0x6d')](_0x6d670e['id']);return _0x4c4261;}[_0x7c41('0x82')](_0xe25a1f){if(!_0xe25a1f||_0xe25a1f[_0x7c41('0x78')])return Promise[_0x7c41('0xcf')]();{const _0x288825=this[_0x7c41('0x8d')][_0x7c41('0xcc')]['get']('collaboration.channelId');return this[_0x7c41('0x3d')][_0x7c41('0x3b')]({'channelId':_0x288825,'revisionId':_0xe25a1f['id']})[_0x7c41('0xd4')](_0x4200dd=>{_0xe25a1f[_0x7c41('0x78')]=_0x4200dd['diffData'];});}}['_bufferUpdate'](_0x4cc393,_0x10b49e,_0x16bd26){if(this[_0x7c41('0xe8')][_0x7c41('0x59')](_0x4cc393)){const _0x366b6a=this[_0x7c41('0xe8')][_0x7c41('0x12')](_0x4cc393);_0x10b49e=_0x16bd26?{..._0x366b6a,..._0x10b49e}:{..._0x10b49e,..._0x366b6a};}this[_0x7c41('0xe8')][_0x7c41('0x5f')](_0x4cc393,_0x10b49e);}[_0x7c41('0x90')](_0x4e99e2){const _0x1e45ff=this[_0x7c41('0x2b')]['getRevisions']();_0x1e45ff[_0x7c41('0xcd')](),_0x1e45ff['shift']();const _0x4e8be7=_0x1e45ff[_0x7c41('0x79')](_0x272ff1=>_0x272ff1[_0x7c41('0xc5')]<=_0x4e99e2)[_0x7c41('0xc5')];return _0x4e8be7<this[_0x7c41('0x9c')]?this['_startingVersion']:_0x4e8be7;}[_0x7c41('0xdd')](_0x44b175){const _0x45279b=this[_0x7c41('0x2b')][_0x7c41('0x3b')](this[_0x7c41('0x2b')]['length']-0x1);if(_0x45279b)this[_0x7c41('0x26')]=_0x45279b['id'];else{const _0x2099ea=!this[_0x7c41('0x8d')]['model']['document'][_0x7c41('0x5a')][_0x7c41('0x79')](_0x41b171=>this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x3e')](_0x41b171)),_0x100d3d=this[_0x7c41('0x8d')]['plugins'][_0x7c41('0x12')](_0x7c41('0x6c'))['me']['id'],_0x4b44ce=_0x73fcda(this[_0x7c41('0x8d')][_0x7c41('0xa9')],_0x2099ea?'Empty\x20document':_0x7c41('0x22'));this['_makeRevision']({'from':_0x44b175,'to':_0x44b175,'id':this[_0x7c41('0x26')],'name':_0x4b44ce,'creatorId':_0x100d3d});}}[_0x7c41('0xc1')](_0x401cce){const _0x37af35=this[_0x7c41('0xee')][_0x7c41('0x27')]();this['currentRevision']=this[_0x7c41('0x2b')][_0x7c41('0x3b')](_0x37af35),this[_0x7c41('0xf5')]||(this['currentRevision']=this[_0x7c41('0xc2')]({'from':_0x401cce,'to':_0x401cce,'id':_0x37af35,'name':'','creatorId':null}));}[_0x7c41('0xc2')]({name:_0x345c50,from:_0xc9b80a,to:_0x3f0077,creatorId:_0x56f820,id:_0x8645ed}){const _0x151a2f=this[_0x7c41('0x54')]({'from':_0xc9b80a,'to':_0x3f0077});_0x151a2f[_0x7c41('0x3a')]=_0x345c50,_0x151a2f['creatorId']=_0x56f820,_0x151a2f['id']=_0x8645ed;const _0x351f4c=this[_0x7c41('0x24')](_0x151a2f);return this[_0x7c41('0x3d')]&&this[_0x7c41('0xa7')](_0x151a2f['id'],_0x151a2f,!0x0),_0x351f4c;}[_0x7c41('0x1')](){this[_0x7c41('0x8d')][_0x7c41('0x8c')][_0x7c41('0xd9')](_0x7c41('0xce'))['markerToData']({'model':_0x7c41('0xf9')});}['_removeRevisionMarkers'](_0x46379a){return(_0x46379a=_0x46379a[_0x7c41('0x42')](_0x318972=>!_0x318972['name']||_0x7c41('0xa1')!==_0x318972[_0x7c41('0x3a')]&&_0x7c41('0x4')!==_0x318972[_0x7c41('0x3a')]))[_0x7c41('0x33')](_0x2f1c96=>{_0x7c41('0x61')!=typeof _0x2f1c96&&(_0x2f1c96[_0x7c41('0xc4')]=this[_0x7c41('0xa5')](_0x2f1c96['children']),_0x2f1c96[_0x7c41('0x17')]=_0x2f1c96[_0x7c41('0x17')][_0x7c41('0x42')](_0x315d4d=>!_0x315d4d[0x0][_0x7c41('0xef')]('data-revision-')));}),_0x46379a;}}function J(_0x22ccd1,_0x467977){const _0x221d31=_0x467977[_0x7c41('0xa2')][_0x7c41('0x7f')][_0x7c41('0x4e')];if('string'==typeof _0x22ccd1)return new _0x16e3d3(_0x221d31,_0x22ccd1);{const _0x106e94=_0x22ccd1[_0x7c41('0xc4')][_0x7c41('0xd1')](_0x461e72=>J(_0x461e72,_0x467977));return new(B[_0x22ccd1[(_0x7c41('0xd2'))]]||_0x3e735f)(_0x221d31,_0x22ccd1[_0x7c41('0x3a')],_0x22ccd1[_0x7c41('0x17')],_0x106e94);}}class H{constructor(_0x33e8c9){this[_0x7c41('0x8d')]=_0x33e8c9,this['_savedMetaData']=new Map(),this[_0x7c41('0x9')]=-0x1,this[_0x7c41('0x11')]=-0x1,this[_0x7c41('0x47')]=new Map(),this[_0x7c41('0xb2')]=new Map(),this[_0x7c41('0xe')]=new Map(),this[_0x7c41('0xa0')]=new Map(),this[_0x7c41('0xb5')]=new Map(),this[_0x7c41('0xaf')]=new Map(),this[_0x7c41('0xf3')]=new Map(),this['_touched']=new Map(),this[_0x7c41('0x9d')]=new Map(),this[_0x7c41('0xb')]=new Map(),this[_0x7c41('0x1f')]=0x1;}[_0x7c41('0x46')](_0x578982){this[_0x7c41('0x88')]=_0x578982;const _0x44f810=new Map(),_0x2f586f=new Map(),_0x246140=this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x4e')][_0x7c41('0x5a')][_0x7c41('0xd1')](_0x5039f0=>_0x5039f0[_0x7c41('0x2e')]);for(const _0x118c40 of _0x246140){const _0x30ef35=this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x4e')][_0x7c41('0x89')](_0x118c40),_0x4dde97=q(_0x30ef35);_0x44f810[_0x7c41('0x5f')](_0x118c40,_0x4dde97),_0x2f586f[_0x7c41('0x5f')](_0x118c40,Object['fromEntries'](_0x30ef35['getAttributes']()));}const _0x21b0c8=Array[_0x7c41('0x1a')](this[_0x7c41('0x8d')]['model']['markers'])[_0x7c41('0xd1')](_0x234c97=>[_0x234c97[_0x7c41('0x3a')],_0x234c97[_0x7c41('0x2f')]()]),_0x69c552=this[_0x7c41('0x88')][_0x7c41('0x7b')];this[_0x7c41('0xc3')](_0x69c552,_0x44f810,_0x21b0c8,_0x2f586f),this[_0x7c41('0xdf')]=this[_0x7c41('0x1f')];const _0x2a5cf1=new Map(),_0x541d02=new Map();for(const _0xd08703 of _0x246140){const _0x467e3a=G(_0xd08703);_0x2a5cf1['set'](_0xd08703,_0x467e3a),_0x541d02[_0x7c41('0x5f')](_0xd08703,{});}this[_0x7c41('0xc3')](Number[_0x7c41('0x20')],_0x2a5cf1,[],_0x541d02);}[_0x7c41('0x48')](_0x1622d9,_0x109272){if(this[_0x7c41('0x9')]===_0x1622d9&&this['_lastTo']<=_0x109272)this[_0x7c41('0xbf')][_0x7c41('0x80')]>0x1&&this[_0x7c41('0x40')](this['_lastTo']),this[_0x7c41('0x55')](this[_0x7c41('0x11')],_0x109272,!0x0);else{if(!this[_0x7c41('0xbf')][_0x7c41('0x59')](_0x1622d9)){const _0x34bf36=this[_0x7c41('0x91')](_0x1622d9);this['_calculateMetaData'](_0x34bf36,_0x1622d9,!0x1);}this[_0x7c41('0xc9')](_0x1622d9,_0x109272,!0x0);}return this[_0x7c41('0x9')]=_0x1622d9,this[_0x7c41('0x11')]=_0x109272,this[_0x7c41('0x45')]();}[_0x7c41('0x38')](_0x41baec){this[_0x7c41('0xe2')](),this[_0x7c41('0x9')]=_0x41baec['fromVersion'],this[_0x7c41('0x11')]=_0x41baec[_0x7c41('0xc5')];for(const _0x1da243 in _0x41baec[_0x7c41('0x78')]){const _0x19e07f=_0x41baec[_0x7c41('0x78')][_0x1da243][_0x7c41('0x29')],_0x5e023d=_0x590a64(_0x41baec[_0x7c41('0x78')][_0x1da243][_0x7c41('0xca')])||{},_0x124609=this[_0x7c41('0xb8')](_0x41baec[_0x7c41('0x78')][_0x1da243][_0x7c41('0xed')]);_0x124609['rootName']=_0x1da243,_0x124609[_0x7c41('0x14')]=!_0x19e07f||!_0x19e07f['isAttached'],_0x124609[_0x7c41('0x94')]=()=>_0x124609[_0x7c41('0x14')],this['_baseRoots'][_0x7c41('0x5f')](_0x1da243,_0x124609),this[_0x7c41('0xb5')][_0x7c41('0x5f')](_0x1da243,_0x5e023d),_0x19e07f&&this[_0x7c41('0xb')][_0x7c41('0x5f')](_0x1da243,_0x19e07f);const _0x35c441=this[_0x7c41('0x4c')](_0x124609);this[_0x7c41('0xf3')][_0x7c41('0x5f')](_0x1da243,_0x35c441);for(const [_0xf65b1c,_0xfce9c2]of _0x124609['markers']){if(!_0xf65b1c[_0x7c41('0xef')]('revision:'))continue;const _0xc2d490=_0xf65b1c[_0x7c41('0x52')](':')[0x2];for(const _0x15e928 of _0xfce9c2[_0x7c41('0xd6')]({'singleCharacters':!0x0})){const _0x1d36dc=this[_0x7c41('0x56')](_0x15e928),_0x8d1eb=_0x7c41('0x71')==_0x15e928[_0x7c41('0xd2')]?_0x15e928[_0x7c41('0x41')]['path'][_0x7c41('0xe7')](0x0,-0x1):_0x15e928['previousPosition'][_0x7c41('0x65')],_0x480743=_0x35c441[_0x7c41('0x85')](_0x8d1eb)[_0x7c41('0x8')](_0x1d36dc);this['_touched'][_0x7c41('0x5f')](_0x480743,{'userId':_0xc2d490});}}}this[_0x7c41('0xdf')]=this[_0x7c41('0x1f')];const _0x1f8e92=[...Array(this[_0x7c41('0x1f')])[_0x7c41('0xa3')]()][_0x7c41('0xe7')](0x1)['filter'](_0xe1f548=>!this[_0x7c41('0x8f')][_0x7c41('0x59')](_0xe1f548));let _0x5d5bde=0x0;const _0x5111b2=new Map();for(const _0x2251c2 in _0x41baec[_0x7c41('0x78')]){const _0x10eeee=_0x41baec[_0x7c41('0x78')][_0x2251c2][_0x7c41('0x29')],_0x1d6483=_0x590a64(_0x41baec[_0x7c41('0x78')][_0x2251c2][_0x7c41('0x2a')])||{},_0x5e41ea=this[_0x7c41('0xb8')](_0x41baec['diffData'][_0x2251c2][_0x7c41('0x9e')]);_0x5e41ea[_0x7c41('0x2e')]=_0x2251c2,_0x5e41ea['_isAttached']=!_0x10eeee||_0x10eeee[_0x7c41('0x94')],_0x5e41ea['isAttached']=()=>_0x5e41ea['_isAttached'],this['_diffRoots'][_0x7c41('0x5f')](_0x2251c2,_0x5e41ea),this[_0x7c41('0xe')][_0x7c41('0x5f')](_0x2251c2,_0x1d6483);const _0x147df9=this[_0x7c41('0x4c')](_0x5e41ea,Number['NEGATIVE_INFINITY']);this[_0x7c41('0xaf')][_0x7c41('0x5f')](_0x2251c2,_0x147df9),_0x5111b2[_0x7c41('0x5f')](_0x2251c2,_0x5e41ea[_0x7c41('0x94')]()?_0x1d6483:{});for(const [_0x59f8de,_0x21238b]of _0x5e41ea[_0x7c41('0xd')]){if(!_0x59f8de['startsWith'](_0x7c41('0x1e')))continue;const _0xc74ed1=_0x59f8de[_0x7c41('0x52')](':')[0x2];for(const _0x2eed13 of _0x21238b[_0x7c41('0xd6')]({'singleCharacters':!0x0})){const _0x380268=this['_getVidAttributeName'](_0x2eed13),_0x3c9743=this[_0x7c41('0x1f')]++,_0x4ad40a='elementEnd'==_0x2eed13[_0x7c41('0xd2')]?_0x2eed13[_0x7c41('0x41')]['path'][_0x7c41('0xe7')](0x0,-0x1):_0x2eed13['previousPosition'][_0x7c41('0x65')];_0x147df9[_0x7c41('0x85')](_0x4ad40a)['_setAttribute'](_0x380268,_0x3c9743),this['_touched']['set'](_0x3c9743,{'userId':_0xc74ed1});}}for(const _0x5f144a of this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0xe1')](_0x5e41ea)[_0x7c41('0xd6')]({'singleCharacters':!0x0})){const _0x3db3ea=this[_0x7c41('0x56')](_0x5f144a),_0x428099=_0x7c41('0x71')==_0x5f144a[_0x7c41('0xd2')]?_0x5f144a['previousPosition'][_0x7c41('0x65')][_0x7c41('0xe7')](0x0,-0x1):_0x5f144a[_0x7c41('0x41')][_0x7c41('0x65')],_0x120605=_0x147df9[_0x7c41('0x85')](_0x428099);_0x120605[_0x7c41('0x8')](_0x3db3ea)>0x0||_0x120605[_0x7c41('0x1b')](_0x3db3ea,_0x1f8e92[_0x5d5bde++]);}for(const [_0x482a08,_0x11247d]of _0x5e41ea['markers'])_0x482a08['startsWith'](_0x7c41('0x1e'))||this[_0x7c41('0x47')]['set'](_0x482a08,_0x11247d);}const _0x333d62=G(_0x7c41('0xdb'));this['_baseRoots'][_0x7c41('0x5f')]('$graveyard',_0x333d62),this[_0x7c41('0xf3')]['set']('$graveyard',this['_makeIdsRoot'](_0x333d62,0x1));const _0x56ca0d=G(_0x7c41('0xdb'));this[_0x7c41('0xb2')][_0x7c41('0x5f')](_0x7c41('0xdb'),_0x56ca0d),this[_0x7c41('0xaf')][_0x7c41('0x5f')]('$graveyard',this[_0x7c41('0x4c')](_0x56ca0d,0x1));const _0x5218a0=Array[_0x7c41('0x1a')](this['_diffRoots'])[_0x7c41('0xd1')](([_0xfeea69,_0x2cc5fa])=>[_0xfeea69,q(_0x2cc5fa)]);this[_0x7c41('0xc3')](this[_0x7c41('0x11')],_0x5218a0,this[_0x7c41('0x47')],_0x5111b2);}['_makeModelFromViewString'](_0x1e48e7){const _0x1d7117=JSON[_0x7c41('0xbb')](_0x1e48e7),_0x375d42=this[_0x7c41('0x8d')][_0x7c41('0xa2')]['view'][_0x7c41('0x4e')],_0x4bae0a=new _0x1ee88d(_0x375d42,_0x1d7117[_0x7c41('0xd1')](_0x1be181=>J(_0x1be181,this[_0x7c41('0x8d')])));return this[_0x7c41('0x8d')][_0x7c41('0xae')][_0x7c41('0x84')](_0x4bae0a);}[_0x7c41('0xc3')](_0x837986,_0x2d0e01,_0x5345d8,_0x1bf2fa){const _0x15070a=new Map(_0x2d0e01),_0x49234e=new Map(_0x590a64(_0x1bf2fa)),_0x49f73f=new Map();for(const [_0x5ece6b,_0x94e91d]of _0x5345d8)_0x49f73f[_0x7c41('0x5f')](_0x5ece6b,{'start':_0x94e91d[_0x7c41('0x16')][_0x7c41('0xbd')](),'end':_0x94e91d['end'][_0x7c41('0xbd')](),'rootName':_0x94e91d['root']['rootName']});this[_0x7c41('0xbf')][_0x7c41('0x5f')](_0x837986,{'roots':_0x15070a,'markers':_0x49f73f,'rootsAttributes':_0x49234e});}['_removeMetaData'](_0x596d44){this[_0x7c41('0xbf')][_0x7c41('0x50')](_0x596d44);}[_0x7c41('0x4f')](){this[_0x7c41('0xe2')](),this[_0x7c41('0x9')]=-0x1,this[_0x7c41('0x11')]=-0x1,this[_0x7c41('0xbf')]['clear'](),this[_0x7c41('0x46')](this[_0x7c41('0x88')]);}[_0x7c41('0xe2')](){this[_0x7c41('0x8f')]['clear'](),this[_0x7c41('0x9d')][_0x7c41('0x66')](),this[_0x7c41('0xb')]['clear'](),this[_0x7c41('0xb2')][_0x7c41('0x66')](),this['_diffRootsAttributes']['clear'](),this[_0x7c41('0xa0')][_0x7c41('0x66')](),this['_baseRootsAttributes'][_0x7c41('0x66')](),this[_0x7c41('0xaf')][_0x7c41('0x66')](),this['_baseIdsRoots']['clear'](),this[_0x7c41('0x47')][_0x7c41('0x66')](),this[_0x7c41('0x1f')]=0x1,this[_0x7c41('0xdf')]=this[_0x7c41('0x1f')];}[_0x7c41('0x4c')](_0x190073,_0x3cb2f9=null){let _0x29210e=null;_0x190073['is'](_0x7c41('0x92'))||(_0x29210e=new _0x26a125(_0x190073[_0x7c41('0x3a')],{'vid_start':null===_0x3cb2f9?this[_0x7c41('0x1f')]++:_0x3cb2f9++}));const _0x1b122e=[];for(const _0x4c51a7 of _0x190073[_0x7c41('0x81')]())if(_0x4c51a7['is'](_0x7c41('0x67'))){_0x1b122e[_0x7c41('0x6d')](this[_0x7c41('0x4c')](_0x4c51a7,_0x3cb2f9));const _0xed48a4=_0x1b122e[_0x1b122e[_0x7c41('0x25')]-0x1];null!==_0x3cb2f9&&(_0x3cb2f9=_0xed48a4['is'](_0x7c41('0x67'),'$text')?_0xed48a4['getAttribute'](_0x7c41('0x7e'))+0x1:_0xed48a4['getAttribute'](_0x7c41('0xd5'))+0x1);}else for(let _0x2d3b49=0x0;_0x2d3b49<_0x4c51a7[_0x7c41('0x99')];_0x2d3b49++)_0x1b122e[_0x7c41('0x6d')](new _0x26a125('$text',{'vid':null===_0x3cb2f9?this[_0x7c41('0x1f')]++:_0x3cb2f9++}));if(_0x190073['is'](_0x7c41('0x92'))){const _0x1dfa99=G(_0x190073[_0x7c41('0x2e')]);return _0x1dfa99[_0x7c41('0x19')](0x0,_0x1b122e),_0x1dfa99;}return _0x29210e['_setAttribute'](_0x7c41('0xd5'),null===_0x3cb2f9?this['_revisionId']++:_0x3cb2f9++),_0x29210e[_0x7c41('0x19')](0x0,_0x1b122e),_0x29210e;}[_0x7c41('0xc9')](_0x1cebe8,_0x55d0f0,_0xe024d6){this[_0x7c41('0xe2')]();const {roots:_0x4be6b2,markers:_0x545bb5,rootsAttributes:_0x272b23}=this[_0x7c41('0xbf')][_0x7c41('0x12')](_0x1cebe8);this[_0x7c41('0xa0')]=new Map(_0x4be6b2),this[_0x7c41('0xb5')]=new Map(_0x590a64(_0x272b23));for(const [_0x2de106,_0x9dbaed]of this[_0x7c41('0xa0')])if(_0x7c41('0xdb')!==_0x2de106&&(this[_0x7c41('0xb2')][_0x7c41('0x5f')](_0x2de106,q(_0x9dbaed)),this[_0x7c41('0xe')]=new Map(_0x590a64(_0x272b23)),_0xe024d6)){const _0x2d37d7=this[_0x7c41('0x1f')];this['_idsRoots']['set'](_0x2de106,this[_0x7c41('0x4c')](_0x9dbaed)),this[_0x7c41('0xf3')][_0x7c41('0x5f')](_0x2de106,this[_0x7c41('0x4c')](_0x9dbaed,_0x2d37d7));}this[_0x7c41('0xdf')]=this[_0x7c41('0x1f')],this[_0x7c41('0xb2')]['set'](_0x7c41('0xdb'),q(this['_baseRoots'][_0x7c41('0x12')](_0x7c41('0xdb')))),_0xe024d6&&this[_0x7c41('0xaf')]['set'](_0x7c41('0xdb'),this['_makeIdsRoot'](this[_0x7c41('0xa0')][_0x7c41('0x12')](_0x7c41('0xdb'))));for(const [_0x26e4cb,_0x1fb9b6]of _0x545bb5){const _0x1668f0=this[_0x7c41('0xa0')][_0x7c41('0x12')](_0x1fb9b6[_0x7c41('0x2e')]),_0x3b14bb=this[_0x7c41('0xb2')][_0x7c41('0x12')](_0x1fb9b6['rootName']),_0x42c0b3=new _0x34fae3(this[_0x7c41('0x6')](_0x1fb9b6[_0x7c41('0x16')],_0x1668f0),this[_0x7c41('0x6')](_0x1fb9b6['end'],_0x1668f0)),_0x141ab0=this[_0x7c41('0x51')](_0x42c0b3,_0x3b14bb);_0x1668f0[_0x7c41('0xd')][_0x7c41('0x5f')](_0x26e4cb,_0x42c0b3),this[_0x7c41('0x47')][_0x7c41('0x5f')](_0x26e4cb,_0x141ab0);}this[_0x7c41('0x55')](_0x1cebe8,_0x55d0f0,_0xe024d6);}[_0x7c41('0x55')](_0x321815,_0x21c26e,_0x4ac605){for(const _0x4fe269 of this[_0x7c41('0x88')]['getOperations'](_0x321815,_0x21c26e))this[_0x7c41('0xc')](_0x4fe269,_0x4ac605);for(const _0x42b228 of this[_0x7c41('0xb2')][_0x7c41('0x6f')]())_0x42b228[_0x7c41('0xd')][_0x7c41('0x66')]();for(const [_0x3483a1,_0x8354fc]of this['_markers']){this[_0x7c41('0xb2')][_0x7c41('0x12')](_0x8354fc[_0x7c41('0x64')]['rootName'])[_0x7c41('0xd')]['set'](_0x3483a1,_0x8354fc[_0x7c41('0xbd')]());}const _0x10528c=new Map(),_0x407503=new Map();for(const [_0x4b4dcc,_0x2995e4]of this['_diffRoots'])_0x10528c[_0x7c41('0x5f')](_0x4b4dcc,q(_0x2995e4)),_0x407503['set'](_0x4b4dcc,this[_0x7c41('0xe')][_0x7c41('0x12')](_0x4b4dcc));this[_0x7c41('0xc3')](_0x21c26e,_0x10528c,this[_0x7c41('0x47')],_0x407503);}[_0x7c41('0x91')](_0x244b3b){const _0x26830c=Array[_0x7c41('0x1a')](this['_savedMetaData'][_0x7c41('0xa3')]());_0x26830c[_0x7c41('0x86')]((_0x21397c,_0x41ad8f)=>_0x21397c-_0x41ad8f),_0x26830c[_0x7c41('0xcd')]();for(const _0x2e91e2 of _0x26830c)if(_0x2e91e2<_0x244b3b)return _0x2e91e2;return Number[_0x7c41('0x20')];}[_0x7c41('0x74')](_0xae9941,_0x22e2d4){const _0x170023=Array[_0x7c41('0x1a')](_0x22e2d4[_0x7c41('0xd')])['map'](([_0x2f42d7,_0x126720])=>[_0x2f42d7,this[_0x7c41('0x51')](_0x126720,_0xae9941)]);_0xae9941[_0x7c41('0xd')]=new Map(_0x170023);}[_0x7c41('0xad')](_0x3814af){for(const _0x3f886e of this['_markers'][_0x7c41('0x6f')]()){const _0x19811c=_0x3f886e['getTransformedByOperation'](_0x3814af),_0x3659a5=_0x34fae3[_0x7c41('0xb4')](_0x19811c);_0x3f886e[_0x7c41('0x16')]=_0x3659a5[_0x7c41('0x16')],_0x3f886e[_0x7c41('0x7c')]=_0x3659a5[_0x7c41('0x7c')];}}[_0x7c41('0xc')](_0x1fc110,_0xda69aa){if(_0x7c41('0xe6')==_0x1fc110[_0x7c41('0xd2')]||_0x7c41('0x5d')==_0x1fc110[_0x7c41('0xd2')])return void this[_0x7c41('0x43')](_0x1fc110,_0xda69aa);if('insert'==_0x1fc110['type']){const _0x161caf=_0x1fc110['position'][_0x7c41('0x64')][_0x7c41('0x2e')];this[_0x7c41('0xb2')]['has'](_0x161caf)||(this[_0x7c41('0xb2')]['set'](_0x161caf,G(_0x161caf,!0x0)),this['_diffRootsAttributes']['set'](_0x161caf,{}),_0xda69aa&&this[_0x7c41('0xaf')]['set'](_0x161caf,G(_0x161caf,!0x0)));}else{if(_0x7c41('0x13')==_0x1fc110['type']||_0x7c41('0x15')==_0x1fc110[_0x7c41('0xd2')]||_0x7c41('0x58')==_0x1fc110[_0x7c41('0xd2')])return void this[_0x7c41('0x4b')](_0x1fc110);}const _0x4bc573=this[_0x7c41('0xf1')](_0x1fc110,this[_0x7c41('0xb2')]);if('marker'!==_0x1fc110[_0x7c41('0xd2')]&&(_0x4bc573[_0x7c41('0x2d')](),this[_0x7c41('0xad')](_0x4bc573)),_0xda69aa)switch(_0x4bc573[_0x7c41('0xd2')]){case _0x7c41('0xe0'):this[_0x7c41('0x5')](_0x1fc110);break;case'move':case _0x7c41('0xb0'):case _0x7c41('0xd8'):this[_0x7c41('0xd0')](_0x1fc110);break;case _0x7c41('0x2'):this[_0x7c41('0x8b')](_0x1fc110);break;case'split':this[_0x7c41('0x10')](_0x1fc110);break;case _0x7c41('0x93'):this[_0x7c41('0x68')](_0x1fc110);}}[_0x7c41('0xf1')](_0x5d2736,_0x5a8308){const _0x12f7a9=_0x5d2736[_0x7c41('0xbd')]();return _0x12f7a9[_0x7c41('0x35')]=_0x5d2736[_0x7c41('0x35')],this[_0x7c41('0xda')](_0x12f7a9,_0x5a8308),_0x12f7a9;}[_0x7c41('0x73')](_0x12b024){return _0x12b024['map'](_0x357fee=>{const _0x355919=this[_0x7c41('0x56')](_0x357fee);return Number(_0x357fee['item'][_0x7c41('0x8')](_0x355919));});}['_generateTape'](_0x4f181b,_0x371c1b){if(_0x4f181b['is']('element',_0x7c41('0xb7')))_0x371c1b[_0x7c41('0x6d')]({'item':_0x4f181b,'type':_0x7c41('0xf2')});else{_0x4f181b['is'](_0x7c41('0x67'))&&_0x371c1b['push']({'item':_0x4f181b,'type':_0x7c41('0x18')});for(const _0x163864 of _0x4f181b[_0x7c41('0x81')]())this[_0x7c41('0xba')](_0x163864,_0x371c1b);_0x4f181b['is']('element')&&_0x371c1b[_0x7c41('0x6d')]({'item':_0x4f181b,'type':_0x7c41('0x71')});}return _0x371c1b;}[_0x7c41('0x45')](){const _0x2ca12a=new Map(this[_0x7c41('0x8f')]),_0x3a6a0a=new Map(_0x2ca12a),_0x456ab0=new Map(),_0x4ba08e={'insertions':{},'deletions':{}},_0x424ccf={'insertions':{},'deletions':{}},_0x350faf=new Map(),_0x10d545=new Set([...this[_0x7c41('0xa0')][_0x7c41('0xa3')](),...this['_diffRoots']['keys']()]);_0x10d545[_0x7c41('0x50')]('$graveyard');for(const _0x5be5f3 of _0x10d545){const _0x148a64=this[_0x7c41('0xb2')][_0x7c41('0x12')](_0x5be5f3)||G(_0x5be5f3,!0x1),_0x44b932=this['_baseRoots'][_0x7c41('0x12')](_0x5be5f3)||G(_0x5be5f3,!0x1);_0x148a64['isAttached']()||_0x44b932['isAttached']()?(_0x4ba08e[_0x7c41('0x9e')][_0x5be5f3]=q(_0x148a64),_0x4ba08e[_0x7c41('0xed')][_0x5be5f3]=q(_0x44b932),this['_copyMarkers'](_0x4ba08e[_0x7c41('0xed')][_0x5be5f3],_0x44b932),this[_0x7c41('0x74')](_0x4ba08e[_0x7c41('0x9e')][_0x5be5f3],_0x148a64),_0x424ccf[_0x7c41('0x9e')][_0x5be5f3]=this['_generateTape'](this[_0x7c41('0xaf')][_0x7c41('0x12')](_0x5be5f3),[]),_0x424ccf[_0x7c41('0xed')][_0x5be5f3]=this[_0x7c41('0xba')](this['_baseIdsRoots'][_0x7c41('0x12')](_0x5be5f3)||G(_0x5be5f3,!0x1),[])):_0x10d545[_0x7c41('0x50')](_0x5be5f3);}for(const _0x28e494 of _0x10d545){const _0x3f1cc7=_0x424ccf['insertions'][_0x28e494];for(const _0x54b1fc of _0x3f1cc7){const _0x592acf=this['_getVidAttributeName'](_0x54b1fc),_0x1a5c81=_0x54b1fc[_0x7c41('0x97')][_0x7c41('0x8')](_0x592acf);_0x3a6a0a['delete'](_0x1a5c81),_0x1a5c81>=this[_0x7c41('0xdf')]&&_0x456ab0[_0x7c41('0x5f')](_0x1a5c81,_0x2ca12a[_0x7c41('0x12')](_0x1a5c81));}}for(const _0x16b800 of _0x10d545){const _0x4f21de=_0x424ccf[_0x7c41('0x9e')][_0x16b800],_0x531b6b=this['_getBaseVids'](_0x424ccf[_0x7c41('0xed')][_0x16b800]);let _0x35d397=0x0;for(const _0x5e5858 of _0x4f21de){const _0x2f3e8d=this['_getVidAttributeName'](_0x5e5858),_0x3a9c9b=_0x5e5858[_0x7c41('0x97')][_0x7c41('0x8')](_0x2f3e8d);if(!_0x456ab0[_0x7c41('0x59')](_0x3a9c9b)&&!_0x350faf['has'](_0x3a9c9b)){if(_0x3a6a0a[_0x7c41('0x59')](_0x3a9c9b))_0x35d397++;else{if(_0x3a9c9b!=_0x531b6b[_0x35d397]){const _0x2a6f8f=_0x2ca12a['get'](_0x3a9c9b)||_0x2ca12a['get'](_0x531b6b[_0x35d397]);for(;_0x3a9c9b!=_0x531b6b[_0x35d397];)_0x3a6a0a['has'](_0x531b6b[_0x35d397])||(_0x350faf['set'](_0x531b6b[_0x35d397],_0x2a6f8f),_0x2ca12a[_0x7c41('0x5f')](_0x531b6b[_0x35d397],_0x2a6f8f)),_0x35d397++;}_0x35d397++;}}}}for(const _0x10cc0b of _0x10d545){const _0x4811e1=_0x424ccf[_0x7c41('0x9e')][_0x10cc0b];for(const _0x217579 of _0x4811e1){const _0x218959=this[_0x7c41('0x56')](_0x217579),_0x5ca700=_0x217579['item'][_0x7c41('0x8')](_0x218959);if(_0x350faf[_0x7c41('0x59')](_0x5ca700)){const _0x2ce60f=_0x350faf['get'](_0x5ca700);_0x3a6a0a['has'](_0x5ca700)||_0x3a6a0a[_0x7c41('0x5f')](_0x5ca700,{..._0x2ce60f}),_0x456ab0[_0x7c41('0x5f')](_0x5ca700,{..._0x2ce60f});}}}for(const _0x2d4cb1 of _0x3a6a0a[_0x7c41('0xa3')]())_0x2d4cb1>=this[_0x7c41('0xdf')]&&_0x3a6a0a[_0x7c41('0x50')](_0x2d4cb1);const _0x5c1693=new Map();for(const _0x4cb926 of _0x10d545){let _0x23abbe=_0x424ccf[_0x7c41('0x9e')][_0x4cb926];for(const _0x21aa9e of _0x23abbe)if(_0x21aa9e[_0x7c41('0x97')]['is']('element','tableCell')){const _0x287d4b=this[_0x7c41('0x56')](_0x21aa9e),_0x1cb0e8=_0x21aa9e[_0x7c41('0x97')][_0x7c41('0x8')](_0x287d4b);if(_0x456ab0['has'](_0x1cb0e8)){const _0x2926db=_0x21aa9e[_0x7c41('0x97')][_0x7c41('0x5e')][_0x7c41('0x5e')][_0x7c41('0x8')](_0x7c41('0x6e')),_0x286130=_0x5c1693['get'](_0x2926db)||new Set();_0x286130[_0x7c41('0xf0')](_0x456ab0[_0x7c41('0x12')](_0x1cb0e8)[_0x7c41('0x75')]),_0x5c1693[_0x7c41('0x5f')](_0x2926db,_0x286130);}}_0x23abbe=_0x424ccf['deletions'][_0x4cb926];for(const _0x36d76b of _0x23abbe)if(_0x36d76b[_0x7c41('0x97')]['is']('element',_0x7c41('0x4d'))){const _0x185508=this['_getVidAttributeName'](_0x36d76b),_0xf5420=_0x36d76b[_0x7c41('0x97')][_0x7c41('0x8')](_0x185508);if(_0x3a6a0a[_0x7c41('0x59')](_0xf5420)){const _0x397c89=_0x36d76b[_0x7c41('0x97')]['parent'][_0x7c41('0x5e')][_0x7c41('0x8')]('vid_start'),_0x108934=_0x5c1693[_0x7c41('0x12')](_0x397c89)||new Set();_0x108934[_0x7c41('0xf0')](_0x3a6a0a[_0x7c41('0x12')](_0xf5420)[_0x7c41('0x75')]),_0x5c1693[_0x7c41('0x5f')](_0x397c89,_0x108934);}}for(const _0x6f2c32 of _0x5c1693[_0x7c41('0xa3')]())(_0x456ab0[_0x7c41('0x59')](_0x6f2c32)||_0x3a6a0a[_0x7c41('0x59')](_0x6f2c32))&&_0x5c1693[_0x7c41('0x50')](_0x6f2c32);}for(const _0x1fde96 of _0x10d545){const _0x55690d=_0x424ccf[_0x7c41('0x9e')][_0x1fde96];let _0x40b8ad=null,_0x424b6e=null;for(const _0x543afb of _0x55690d){const _0x16950a=this[_0x7c41('0x56')](_0x543afb),_0x23183b=_0x543afb['item'][_0x7c41('0x8')](_0x16950a),_0x38b757=_0x5c1693['get'](_0x23183b);_0x38b757&&_0x7c41('0x18')==_0x543afb['type']&&(_0x40b8ad=Array[_0x7c41('0x1a')](_0x38b757)[0x0],_0x424b6e=_0x543afb[_0x7c41('0x97')][_0x7c41('0x8')]('vid_end')),_0x40b8ad&&(_0x3a6a0a[_0x7c41('0x5f')](_0x23183b,{'userId':_0x40b8ad}),_0x456ab0[_0x7c41('0x5f')](_0x23183b,{'userId':_0x40b8ad})),_0x23183b==_0x424b6e&&(_0x40b8ad=null,_0x424b6e=null);}}const _0x582080={},_0x5ca99d=new Set();for(const _0x1fe503 of _0x10d545){const _0x57f305=_0x4ba08e[_0x7c41('0xed')][_0x1fe503],_0x167639=_0x4ba08e[_0x7c41('0x9e')][_0x1fe503];for(const {userId:_0x22d487}of this['_touchedMarkers'][_0x7c41('0x6f')]())null!==_0x22d487&&_0x5ca99d['add'](_0x22d487);for(const {userId:_0x518325}of this[_0x7c41('0xb')][_0x7c41('0x6f')]())null!==_0x518325&&_0x5ca99d[_0x7c41('0xf0')](_0x518325);this[_0x7c41('0xbe')](_0x167639,_0x424ccf[_0x7c41('0x9e')][_0x1fe503],_0x456ab0,'insertion',_0x5ca99d),this[_0x7c41('0xbe')](_0x57f305,_0x424ccf[_0x7c41('0xed')][_0x1fe503],_0x3a6a0a,'deletion',_0x5ca99d),_0x582080[_0x1fe503]={'insertions':this[_0x7c41('0xf8')](_0x167639),'deletions':this[_0x7c41('0xf8')](_0x57f305),'attachChange':this[_0x7c41('0xb')][_0x7c41('0x12')](_0x1fe503)||null,'attributesBefore':_0x590a64(this[_0x7c41('0xb5')][_0x7c41('0x12')](_0x1fe503))||{},'attributesAfter':_0x590a64(this[_0x7c41('0xe')][_0x7c41('0x12')](_0x1fe503))};}return{'diffData':_0x582080,'authorsIds':Array[_0x7c41('0x1a')](_0x5ca99d)};}['_processRootBeforeSave'](_0x251744){for(const [,_0x751da9]of _0x251744[_0x7c41('0xd')]){const _0x5bcdc8=_0x751da9[_0x7c41('0x16')]['getAncestors']()[_0x7c41('0x42')](_0x1f8f43=>_0x7c41('0x4d')==_0x1f8f43[_0x7c41('0x3a')]);for(const _0x260a34 of _0x5bcdc8)0x1==_0x260a34['childCount']&&_0x260a34[_0x7c41('0x1d')](0x0)['is'](_0x7c41('0x67'),'paragraph')&&_0x260a34['getChild'](0x0)[_0x7c41('0x1b')](_0x7c41('0xb9'),!0x0);}}[_0x7c41('0xf8')](_0x21d980){this[_0x7c41('0x3f')](_0x21d980);const _0x190bae=this['editor']['data'][_0x7c41('0xec')](_0x21d980,{}),_0x4768cc=Array[_0x7c41('0x1a')](_0x190bae[_0x7c41('0x81')]())[_0x7c41('0xd1')](_0x47ecf9=>this['_getViewJson'](_0x47ecf9));return JSON['stringify'](_0x4768cc);}['_getViewJson'](_0x2925cd){if(_0x2925cd['is'](_0x7c41('0xb7')))return _0x2925cd[_0x7c41('0xae')];{const _0x49fe12=_0x2925cd;return{'type':Object[_0x7c41('0xa3')](B)[_0x7c41('0x79')](_0x4473b9=>_0x2925cd instanceof B[_0x4473b9]),'name':_0x49fe12['name'],'attributes':Array[_0x7c41('0x1a')](_0x49fe12[_0x7c41('0xfa')]()),'children':Array['from'](_0x49fe12[_0x7c41('0x81')]())['map'](_0x5c3cf1=>this['_getViewJson'](_0x5c3cf1))};}}[_0x7c41('0xbe')](_0x5aa6fd,_0x46156c,_0x2c5b5f,_0x21e604,_0x282545){let _0x4dcd1d=null,_0x4d4d3f=null,_0x1963c7=0x0;const _0x3a1fb6=this[_0x7c41('0x8d')]['model'];for(let _0xba710e=0x0;_0xba710e<_0x46156c[_0x7c41('0x25')];_0xba710e++){const _0x41a078=this[_0x7c41('0x56')](_0x46156c[_0xba710e]),_0x29437b=_0x46156c[_0xba710e]['item'][_0x7c41('0x8')](_0x41a078),_0x461dcb=_0x2c5b5f['get'](_0x29437b),_0x662d39=_0xba710e==_0x46156c[_0x7c41('0x25')]-0x1;(!_0x4dcd1d&&_0x461dcb&&(_0x4dcd1d=_0x461dcb,_0x4d4d3f=_0x46156c[_0xba710e]),_0x4dcd1d&&(!_0x461dcb||_0x461dcb[_0x7c41('0x75')]!=_0x4dcd1d['userId']))&&(_0x3791bb(_0x461dcb,L(_0x4d4d3f,_0x5aa6fd,_0x3a1fb6),L(_0x46156c[_0xba710e],_0x5aa6fd,_0x3a1fb6)),_0x4dcd1d=_0x461dcb||null,_0x4d4d3f=_0x461dcb?_0x46156c[_0xba710e]:null),_0x4dcd1d&&_0x662d39&&_0x3791bb(_0x461dcb,L(_0x4d4d3f,_0x5aa6fd,_0x3a1fb6),W(_0x46156c[_0xba710e],_0x5aa6fd,_0x3a1fb6));}function _0x3791bb(_0x32264e,_0x9c286e,_0x520468){const _0x4ecc7b=_0x4dcd1d[_0x7c41('0x75')],_0x2ded1e=_0x7c41('0x1e')+_0x21e604+':'+_0x4ecc7b+':'+_0x1963c7++,_0x15e12a=_0x3a1fb6[_0x7c41('0x98')](_0x9c286e,_0x520468);_0x5aa6fd[_0x7c41('0xd')]['set'](_0x2ded1e,_0x15e12a),null!==_0x4ecc7b&&_0x282545[_0x7c41('0xf0')](_0x4ecc7b);}}['_getVidAttributeName'](_0x5c4478){switch(_0x5c4478['type']){case _0x7c41('0x18'):return'vid_start';case _0x7c41('0x71'):return _0x7c41('0xd5');default:return _0x7c41('0x7e');}}['_fixOperation'](_0x24708a,_0x1e6991){_0x24708a[_0x7c41('0x7d')]=null;for(const _0x55a494 in _0x24708a){const _0x48239f=_0x24708a[_0x55a494];if(_0x48239f instanceof _0x32346e){const _0x58f780=_0x1e6991[_0x7c41('0x12')](_0x48239f[_0x7c41('0x64')][_0x7c41('0x2e')]);_0x24708a[_0x55a494]=this[_0x7c41('0x6')](_0x48239f,_0x58f780);}if(_0x48239f instanceof _0x34fae3){const _0x321f07=_0x1e6991[_0x7c41('0x12')](_0x48239f[_0x7c41('0x64')][_0x7c41('0x2e')]);_0x24708a[_0x55a494]=this[_0x7c41('0x51')](_0x48239f,_0x321f07);}'root'===_0x55a494&&(_0x24708a['root']=_0x1e6991[_0x7c41('0x12')](_0x24708a['root']['rootName']));}}[_0x7c41('0x51')](_0x654875,_0x193809){return this['editor']['model']['createRange'](this[_0x7c41('0x6')](_0x654875[_0x7c41('0x16')],_0x193809),this[_0x7c41('0x6')](_0x654875[_0x7c41('0x7c')],_0x193809));}[_0x7c41('0x6')](_0x333a71,_0x532df0){return this[_0x7c41('0x8d')][_0x7c41('0x57')]['createPositionFromPath'](_0x532df0,_0x333a71['path'],_0x333a71[_0x7c41('0x96')]);}[_0x7c41('0x5')](_0x41a5f1){const _0xd50a7a=this[_0x7c41('0xaf')]['get'](_0x41a5f1[_0x7c41('0xe3')]['root'][_0x7c41('0x2e')]),_0xfd76e4=this[_0x7c41('0x6')](_0x41a5f1['position'],_0xd50a7a),_0x3fb063=null===_0x41a5f1[_0x7c41('0x35')]?null:_0x41a5f1[_0x7c41('0x35')]||this['editor']['plugins']['get'](_0x7c41('0x6c'))['me']['id'],_0x4a08a7=_0xfd76e4[_0x7c41('0x5e')],_0x1a4dc5=this[_0x7c41('0x1f')],_0x178236=[];for(const _0x2e71cf of _0x41a5f1[_0x7c41('0xb1')])if(_0x2e71cf['is'](_0x7c41('0x67')))_0x178236['push'](this['_makeIdsRoot'](_0x2e71cf));else for(let _0x533756=0x0;_0x533756<_0x2e71cf[_0x7c41('0x99')];_0x533756++)_0x178236[_0x7c41('0x6d')](new _0x26a125(_0x7c41('0xb7'),{'vid':this['_revisionId']++}));const _0x295f89=this[_0x7c41('0x1f')];for(let _0x7cdd20=_0x1a4dc5;_0x7cdd20<_0x295f89;_0x7cdd20++)this['_touched']['set'](_0x7cdd20,{'userId':_0x3fb063});_0x4a08a7['_insertChild'](_0xfd76e4[_0x7c41('0xf7')],_0x178236);}['_handleMoveOperation'](_0x15316d){(_0x15316d=this[_0x7c41('0xf1')](_0x15316d,this[_0x7c41('0xaf')]))[_0x7c41('0x2d')]();const _0x311c7d=null===_0x15316d[_0x7c41('0x35')]?null:_0x15316d[_0x7c41('0x35')]||this[_0x7c41('0x8d')]['plugins'][_0x7c41('0x12')](_0x7c41('0x6c'))['me']['id'],_0x1dcb61=_0x15316d[_0x7c41('0x3c')](),_0x163c47=_0x1dcb61[_0x7c41('0x5e')],_0x3d9a61=_0x1dcb61[_0x7c41('0xf7')];!function _0xfc6527(_0x1c7584,_0x39b7f0,_0x58e2d8,_0x2d4f36){for(let _0x34da7e=_0x58e2d8;_0x34da7e<_0x2d4f36;_0x34da7e++){const _0x2f97c2=_0x39b7f0[_0x7c41('0x1d')](_0x34da7e);_0x2f97c2['is'](_0x7c41('0x67'),_0x7c41('0xb7'))?_0x1c7584[_0x7c41('0x5f')](_0x2f97c2['getAttribute']('vid'),{'userId':_0x311c7d}):(_0x1c7584[_0x7c41('0x5f')](_0x2f97c2[_0x7c41('0x8')](_0x7c41('0x6e')),{'userId':_0x311c7d}),_0xfc6527(_0x1c7584,_0x2f97c2,0x0,_0x2f97c2['childCount']),_0x1c7584[_0x7c41('0x5f')](_0x2f97c2[_0x7c41('0x8')](_0x7c41('0xd5')),{'userId':_0x311c7d}));}}(this['_touched'],_0x163c47,_0x3d9a61,_0x3d9a61+_0x15316d[_0x7c41('0x3')]);}[_0x7c41('0x8b')](_0x47cfbd){const _0x99ee31=null===(_0x47cfbd=this[_0x7c41('0xf1')](_0x47cfbd,this[_0x7c41('0xaf')]))['_authorId']?null:_0x47cfbd[_0x7c41('0x35')]||this['editor'][_0x7c41('0xa')]['get'](_0x7c41('0x6c'))['me']['id'],_0x21f05d=_0x47cfbd[_0x7c41('0x7a')][_0x7c41('0x5e')],_0x550009=_0x47cfbd[_0x7c41('0xcb')]['parent'],_0x348ba1=_0x21f05d[_0x7c41('0x8')](_0x7c41('0xd5')),_0x39f63a=_0x550009[_0x7c41('0x8')](_0x7c41('0x6e'));_0x21f05d[_0x7c41('0x1b')]('vid_end',_0x550009[_0x7c41('0x8')](_0x7c41('0xd5'))),_0x550009[_0x7c41('0x1b')](_0x7c41('0xd5'),_0x348ba1),this[_0x7c41('0x8f')][_0x7c41('0x5f')](_0x39f63a,{'userId':_0x99ee31}),this[_0x7c41('0x8f')][_0x7c41('0x5f')](_0x348ba1,{'userId':_0x99ee31}),_0x47cfbd['_execute']();}[_0x7c41('0x10')](_0x13fcde){const _0x2d4dc7=null===(_0x13fcde=this[_0x7c41('0xf1')](_0x13fcde,this[_0x7c41('0xaf')]))['_authorId']?null:_0x13fcde[_0x7c41('0x35')]||this[_0x7c41('0x8d')][_0x7c41('0xa')][_0x7c41('0x12')](_0x7c41('0x6c'))['me']['id'],_0x352320=_0x13fcde[_0x7c41('0x37')],_0x93224e=_0x13fcde[_0x7c41('0x72')][_0x7c41('0x5e')];_0x13fcde[_0x7c41('0x2d')]();const _0x2840b1=_0x93224e[_0x7c41('0x8')](_0x7c41('0xd5')),_0x308a01=_0x13fcde[_0x7c41('0x8e')][_0x7c41('0x6a')];if(_0x352320){const _0x53929e=_0x308a01[_0x7c41('0x8')]('vid_end'),_0x27f100=_0x93224e[_0x7c41('0x8')](_0x7c41('0xd5'));_0x93224e['_setAttribute']('vid_end',_0x53929e),_0x308a01['_setAttribute'](_0x7c41('0xd5'),_0x27f100),this['_touched'][_0x7c41('0x5f')](_0x93224e[_0x7c41('0x8')](_0x7c41('0xd5')),{'userId':_0x2d4dc7}),this[_0x7c41('0x8f')][_0x7c41('0x5f')](_0x308a01[_0x7c41('0x8')](_0x7c41('0x6e')),{'userId':_0x2d4dc7});}else{const _0x10887d=this['_revisionId']++,_0x5d6aeb=this[_0x7c41('0x1f')]++;_0x93224e[_0x7c41('0x1b')]('vid_end',_0x10887d),_0x308a01[_0x7c41('0x1b')](_0x7c41('0x6e'),_0x5d6aeb),_0x308a01[_0x7c41('0x1b')]('vid_end',_0x2840b1),this[_0x7c41('0x8f')][_0x7c41('0x5f')](_0x10887d,{'userId':_0x2d4dc7}),this[_0x7c41('0x8f')][_0x7c41('0x5f')](_0x5d6aeb,{'userId':_0x2d4dc7});}}[_0x7c41('0x68')](_0x1ca4f6){if(!_0x1ca4f6[_0x7c41('0xeb')])return;const _0xe2d48=(_0x1ca4f6=this[_0x7c41('0xf1')](_0x1ca4f6,this[_0x7c41('0xb2')]))[_0x7c41('0xc7')]?_0x1ca4f6[_0x7c41('0xc7')][_0x7c41('0x64')]:null,_0x5ed3e5=_0x1ca4f6['newRange']?_0x1ca4f6[_0x7c41('0x8a')][_0x7c41('0x64')]:null;_0xe2d48&&this[_0x7c41('0x47')][_0x7c41('0x50')](_0x1ca4f6[_0x7c41('0x3a')]),_0x5ed3e5&&this['_markers'][_0x7c41('0x5f')](_0x1ca4f6[_0x7c41('0x3a')],_0x1ca4f6[_0x7c41('0x8a')][_0x7c41('0xbd')]());const _0x2a11f9=null===_0x1ca4f6['_authorId']?null:_0x1ca4f6[_0x7c41('0x35')]||this[_0x7c41('0x8d')][_0x7c41('0xa')]['get'](_0x7c41('0x6c'))['me']['id'],_0x224b31=_0x1ca4f6['name'];if(!this[_0x7c41('0x9d')][_0x7c41('0x59')](_0x224b31))return void this[_0x7c41('0x9d')]['set'](_0x224b31,{'range':_0x1ca4f6[_0x7c41('0xc7')],'userId':_0x2a11f9});const _0x15ef05=this[_0x7c41('0x9d')][_0x7c41('0x12')](_0x224b31),_0x4e48d5=_0x15ef05[_0x7c41('0x53')],_0x32c69a=_0x1ca4f6[_0x7c41('0x8a')];null==_0x4e48d5&&null==_0x32c69a||_0x4e48d5&&_0x32c69a&&_0x4e48d5['isEqual'](_0x32c69a)?this['_touchedMarkers']['delete'](_0x1ca4f6[_0x7c41('0x3a')]):_0x15ef05[_0x7c41('0x75')]=_0x2a11f9;}[_0x7c41('0x43')](_0x294056,_0x2b741b){this[_0x7c41('0xb2')][_0x7c41('0x59')](_0x294056[_0x7c41('0x2e')])?this[_0x7c41('0xb2')]['get'](_0x294056['rootName'])[_0x7c41('0x14')]=_0x294056[_0x7c41('0x70')]:(this['_diffRoots'][_0x7c41('0x5f')](_0x294056['rootName'],G(_0x294056[_0x7c41('0x2e')],!0x0)),this[_0x7c41('0xe')][_0x7c41('0x5f')](_0x294056[_0x7c41('0x2e')],{}),_0x2b741b&&this[_0x7c41('0xaf')][_0x7c41('0x5f')](_0x294056['rootName'],G(_0x294056['rootName'],!0x0)));const _0x1302f3=null===_0x294056[_0x7c41('0x35')]?null:_0x294056[_0x7c41('0x35')]||this['editor'][_0x7c41('0xa')][_0x7c41('0x12')](_0x7c41('0x6c'))['me']['id'],_0x35a836=this[_0x7c41('0xb')][_0x7c41('0x12')](_0x294056['rootName']);_0x35a836&&_0x35a836['userId']===_0x1302f3?this[_0x7c41('0xb')][_0x7c41('0x50')](_0x294056[_0x7c41('0x2e')]):this[_0x7c41('0xb')]['set'](_0x294056[_0x7c41('0x2e')],{'userId':_0x1302f3,'isAttached':_0x294056[_0x7c41('0x70')]});}[_0x7c41('0x4b')](_0x2b8480){const _0x5b934a=this[_0x7c41('0xe')]['get'](_0x2b8480[_0x7c41('0x64')][_0x7c41('0x2e')]);null===_0x2b8480['newValue']?delete _0x5b934a[_0x2b8480[_0x7c41('0x9a')]]:_0x5b934a[_0x2b8480[_0x7c41('0x9a')]]=_0x2b8480['newValue'];}}function q(_0x8fa37){const _0x315bb1=G(_0x8fa37[_0x7c41('0x2e')],_0x8fa37[_0x7c41('0x94')]());for(const _0x486506 of _0x8fa37[_0x7c41('0x81')]()){const _0x4badbf=_0x486506[_0x7c41('0xf6')](!0x0);_0x315bb1['_appendChild'](_0x4badbf);}return _0x315bb1;}function G(_0x2a0d77,_0x41453b=!0x0){const _0x4a1e12=new _0x285c45();return _0x4a1e12[_0x7c41('0x2e')]=_0x2a0d77,_0x4a1e12[_0x7c41('0x14')]=_0x41453b,_0x4a1e12[_0x7c41('0x94')]=()=>_0x4a1e12['_isAttached'],_0x4a1e12;}function L(_0x4a9a1c,_0x2ae952,_0x5ba4d6){const _0x130de3=_0x7c41('0x71')==_0x4a9a1c['type']?_0x5ba4d6[_0x7c41('0xc6')](_0x4a9a1c[_0x7c41('0x97')],_0x7c41('0x7c')):_0x5ba4d6[_0x7c41('0x4a')](_0x4a9a1c['item']);return _0x5ba4d6[_0x7c41('0xac')](_0x2ae952,_0x130de3[_0x7c41('0x65')],_0x130de3[_0x7c41('0x96')]);}function W(_0x2dc0f5,_0x48eade,_0x1f23ee){const _0x5685b5=_0x7c41('0x18')==_0x2dc0f5[_0x7c41('0xd2')]?_0x1f23ee[_0x7c41('0xc6')](_0x2dc0f5[_0x7c41('0x97')],0x0):_0x1f23ee['createPositionAfter'](_0x2dc0f5[_0x7c41('0x97')]);return _0x1f23ee[_0x7c41('0xac')](_0x48eade,_0x5685b5[_0x7c41('0x65')],_0x5685b5['stickiness']);}
|
|
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']);}
|