@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231204.0 → 0.0.0-nightly-20231205.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 _0x2f56=['deletions','getRevisionRootsAttributes','then','useFillerType','merge','roots','conversion','getChildren','_getViewJson','buildRevisionData','config','affectsData','PendingActions','version','attributesBefore','getRootNames','collaboration.channelId','string','_removeRevisionMarkers','_lastFrom','find','_createFromRanges','_authorId','path','_baseIdsRoots','_removePendingAction','createRevision','_saveMetaData','$text','RevisionTracker','_insertChild','getNodeByPath','editing','_touched','isReady','createPositionAfter','shift','childCount','_copyMarkers','_startingRevisionId','upcast','_baseRootsAttributes','editor','_touchedMarkers','parse','_loadState','_markers','document','newValue','_createCurrentRevision','startsWith','getTime','getTransformedByOperation','set','setRevisionData','dataDowncast','resolve','authors','_addPendingAction','offset','init','$graveyard','_revisionId','_isInit','add','splitPosition','editor-initial-data-replaced-with-revision-data','pluginName','_diffRootsAttributes','reverse','getRevision','_setAttribute','_transformMarkers','authorsIds','size','getUser','has','_bufferedUpdates','RevisionsRepository','_markChanges','_replaceEditorDataWithRevisionData','_calculateMetaData','processor','rootsAttributes','isAdd','Initial\x20revision','reinsert','_clone','for','get','locale','insertion','elementStart','_handleMergeOperation','root','graveyardPosition','RealTimeCollaborationClient','fromEntries','deletion','_handleInsertOperation','createPositionFromPath','delete','_makeRevision','_idsRoots','elementEnd','_lastTo','_source','attachChange','createdAt','parent','view','currentRevision','diffData','filter','_cloneOperation','revision-start','getLatestVersion','stickiness','_fixRange','paragraph','_operations','marker','getWalker','_createInitialRevision','model','getRevisionDocumentData','remove','Users','marked','getIndex','_setConversion','sendBufferedUpdates','_getBaseVids','_bufferUpdate','getMovedRangeStart','getAncestors','_findInsertionIndex','vid_end','update','insert','vid','revisionHistory.resumeUnsavedRevision','toView','targetPosition','keys','_diffRoots','revision','markers','data','dataToMarker','_getPreviousFrom','adapter','documentFragment','fromVersion','forEach','values','getRoot','previousPosition','offsetSize','_processRootBeforeSave','length','rootName','_update','_pendingAction','bind','updateRevisions','getAttributes','insertions','_touchedRoots','push','revision:','from','map','initial','getRange','_makeIdsRoot','newRange','includes','_getVidAttributeName','text','isEnabled','finally','split','attributesAfter','keepParagraph','isEqual','setSource','_handleSplitOperation','end','removeRootAttribute','_baseRoots','data-revision-','getRevisions','tableCell','_applyOperations','afterInit','userId','revision-end','_initialRevisionId','detachRoot','attributes','slice','PENDING_ACTION_REVISION_HISTORY','toVersion','_revisionDataBuilder','toData','sourcePosition','_execute','howMany','addRootAttribute','isAttached','_reset','createRangeIn','_generateTape','_handleMarkerOperation','plugins','_isPendingUpdate','key','clear','_handleRootOperation','createRange','position','move','range','createPositionAt','addRevisionData','start','clone','oldRange','item','vid_start','source','getData','getChild','_removeMetaData','_loadedStateData','repository','element','_isAttached','nodes','creator','_savedMetaData','changeRootAttribute','markerToData','requires','saveRevision','history','type','_loadRevisionData','children','reInit','NEGATIVE_INFINITY','_makeModelFromViewString','_handleMoveOperation','_fixPosition','initialData','_prepareViewToSave','_startingVersion','_handleRootAttributeOperation','getCurrentRevisionId','_continueCurrentRevision','toModel','_fixOperation','_getFromVersion','nodeAfter','getAttribute','define','name','trim','baseVersion'];(function(_0x2d16a8,_0x2f56da){const _0x56b904=function(_0x318ad8){while(--_0x318ad8){_0x2d16a8['push'](_0x2d16a8['shift']());}};_0x56b904(++_0x2f56da);}(_0x2f56,0x121));const _0x56b9=function(_0x2d16a8,_0x2f56da){_0x2d16a8=_0x2d16a8-0x0;let _0x56b904=_0x2f56[_0x2d16a8];return _0x56b904;};import{Users as _0x34ab18}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x42dea7,PendingActions as _0x29f16e}from'ckeditor5/src/core';import{logWarning as _0x495e1d,uid as _0x7cec49}from'ckeditor5/src/utils';import{Position as _0x295c36,Range as _0x366d5d,Element as _0x547c6b,DocumentFragment as _0x2e92e7,ViewText as _0x560a81,ViewElement as _0x52de99,ViewContainerElement as _0x2b3d1a,ViewAttributeElement as _0x4fc887,ViewEmptyElement as _0x1db0b2,ViewRawElement as _0x3c5716,ViewUIElement as _0x5d1304,ViewDocumentFragment as _0x54a520}from'ckeditor5/src/engine';import _0x392970 from'./revisionsrepository';import{getTranslation as _0x37ad9c}from'./utils/common-translations';import{cloneDeep as _0x558724,isEqual as _0x3abcc8}from'lodash-es';const B={'c':_0x2b3d1a,'a':_0x4fc887,'e':_0x1db0b2,'r':_0x3c5716,'u':_0x5d1304};export default class l extends _0x42dea7{static get[_0x56b9('0x30')](){return _0x56b9('0xa');}static get[_0x56b9('0xe1')](){return[_0x34ab18,_0x392970,_0x29f16e];}constructor(_0x5657f9){super(_0x5657f9),this[_0x56b9('0x84')]=null,this[_0x56b9('0x5c')]=null,this['_revisionDataBuilder']=new H(this[_0x56b9('0x17')]),this[_0x56b9('0xb3')]=this[_0x56b9('0x17')][_0x56b9('0x105')][_0x56b9('0x46')]('collaboration.channelId')||_0x56b9('0x9a'),this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x345d1e=_0x7cec49();this[_0x56b9('0x57')]={'history':this['editor'][_0x56b9('0x69')][_0x56b9('0x1c')]['history'],'getLatestVersion':()=>Promise[_0x56b9('0x25')](this[_0x56b9('0x17')][_0x56b9('0x69')]['document'][_0x56b9('0x108')]),'getCurrentRevisionId':()=>_0x345d1e},this[_0x56b9('0x22')](_0x56b9('0xf'),!0x1),this['set'](_0x56b9('0xa1'),!0x0),this[_0x56b9('0x22')]('_isPendingUpdate',!0x1),this[_0x56b9('0x17')][_0x56b9('0x105')][_0x56b9('0xf7')](_0x56b9('0x7a'),!0x0),this[_0x56b9('0x17')][_0x56b9('0x101')][_0x56b9('0x45')](_0x56b9('0x15'))[_0x56b9('0x82')]({'view':'revision'});}[_0x56b9('0x29')](){this[_0x56b9('0xd9')]=this[_0x56b9('0x17')][_0x56b9('0xc4')][_0x56b9('0x46')](_0x56b9('0x3b')),this[_0x56b9('0x6f')](),this['editor'][_0x56b9('0x81')]['on']('ready',()=>{const _0x58c4b2=this['repository']['getRevision'](0x0),_0x4ffe3a=_0x58c4b2&&null===_0x58c4b2[_0x56b9('0xdd')]?_0x58c4b2:null;if(this[_0x56b9('0xf1')]=!!_0x4ffe3a&&this[_0x56b9('0x17')][_0x56b9('0x105')][_0x56b9('0x46')]('revisionHistory.resumeUnsavedRevision'),this[_0x56b9('0x17')][_0x56b9('0xc4')][_0x56b9('0x39')](_0x56b9('0x4d'))){const _0x527658=this[_0x56b9('0x57')][_0x56b9('0xf0')](),_0x9d628c=this['repository'][_0x56b9('0x33')](_0x527658);if(_0x9d628c)this[_0x56b9('0xee')]=_0x9d628c[_0x56b9('0x86')],this[_0x56b9('0xf1')]=!0x1;else{const _0x362f86=this[_0x56b9('0x57')]['history'][_0x56b9('0x65')][_0x56b9('0x1')](_0x347549=>!_0x347549[_0x56b9('0x2c')]),_0x3b514a=_0x362f86?_0x362f86[_0x56b9('0xfa')]:this['_source'][_0x56b9('0xe3')][_0x56b9('0x108')];_0x58c4b2?(_0x58c4b2[_0x56b9('0xb8')]<_0x3b514a&&_0x58c4b2[_0x56b9('0x8f')]({'toVersion':_0x3b514a}),this['_continueCurrentRevision']?(this[_0x56b9('0x57')]['getCurrentRevisionId']=()=>_0x4ffe3a['id'],this[_0x56b9('0xee')]=_0x4ffe3a[_0x56b9('0x86')]):(this[_0x56b9('0xee')]=_0x58c4b2[_0x56b9('0xb8')],this[_0x56b9('0xf1')]=!0x1)):(this[_0x56b9('0xee')]=_0x3b514a,this[_0x56b9('0xf1')]=!0x1);}}else _0x4ffe3a&&(this[_0x56b9('0x17')][_0x56b9('0x69')][_0x56b9('0x1c')][_0x56b9('0xe3')][_0x56b9('0x108')]=Math['max'](_0x4ffe3a[_0x56b9('0xb8')],this[_0x56b9('0x17')][_0x56b9('0x69')][_0x56b9('0x1c')][_0x56b9('0xe3')][_0x56b9('0x108')]),_0x4ffe3a[_0x56b9('0x86')]===_0x4ffe3a[_0x56b9('0xb8')]?(0x0!==_0x4ffe3a[_0x56b9('0x86')]&&(this['_source'][_0x56b9('0xf0')]=()=>_0x4ffe3a['id']),this[_0x56b9('0xf1')]=!0x1):this[_0x56b9('0xf1')]&&(this[_0x56b9('0x57')][_0x56b9('0xf0')]=()=>_0x4ffe3a['id'],this[_0x56b9('0xee')]=_0x4ffe3a['fromVersion'])),this[_0x56b9('0xf1')]||(this[_0x56b9('0xee')]=this[_0x56b9('0x17')][_0x56b9('0x69')][_0x56b9('0x1c')][_0x56b9('0x108')]);this[_0x56b9('0xb9')][_0x56b9('0x29')](this[_0x56b9('0x57')][_0x56b9('0xe3')]),this[_0x56b9('0x68')](this[_0x56b9('0xee')]),this[_0x56b9('0x1e')](this[_0x56b9('0xee')]),this[_0x56b9('0x84')]&&this[_0x56b9('0x70')]();}),this[_0x56b9('0x91')](_0x56b9('0xf'))['to'](this,_0x56b9('0xc5'),_0x43eca9=>!_0x43eca9);}async[_0x56b9('0xb0')](){if(this['repository'][_0x56b9('0x8d')]>0x0){const _0x176e25=this[_0x56b9('0xd9')]['getRevision'](0x0),_0x499564=await this[_0x56b9('0x6a')](_0x176e25),_0x10ac75=await this[_0x56b9('0xfc')](_0x176e25);this[_0x56b9('0x3d')](_0x499564,_0x10ac75);}}[_0x56b9('0xa7')](_0x43e271){this[_0x56b9('0x57')]=_0x43e271;}async[_0x56b9('0x77')](){const _0x57cae5=await this[_0x56b9('0x57')][_0x56b9('0x61')]();if(_0x57cae5>this['currentRevision']['toVersion']){await this[_0x56b9('0x1a')]();const _0x1e2dba=this['buildRevisionData']({'revision':this[_0x56b9('0x5c')],'to':_0x57cae5});_0x1e2dba['authors']=_0x1e2dba[_0x56b9('0x36')]['map'](_0x38197f=>this[_0x56b9('0x17')][_0x56b9('0xc4')][_0x56b9('0x46')](_0x56b9('0x6c'))[_0x56b9('0x38')](_0x38197f)),this[_0x56b9('0x5c')]['_update'](_0x1e2dba);}}async[_0x56b9('0x1a')](){this[_0x56b9('0xf1')]&&!this[_0x56b9('0xd8')]&&(await this['_loadRevisionData'](this['currentRevision']),this[_0x56b9('0xb9')]['loadState'](this[_0x56b9('0x5c')]),this['_loadedStateData']={'fromVersion':this[_0x56b9('0x5c')][_0x56b9('0x86')],'authors':this[_0x56b9('0x5c')][_0x56b9('0x26')]['slice']()});}async[_0x56b9('0xe2')](_0x31ec9b={},_0x1765b7=null){const _0x4bcd63=[];await this[_0x56b9('0x1a')](),this[_0x56b9('0xf1')]=!0x1,_0x1765b7>this['currentRevision'][_0x56b9('0xb8')]&&(_0x1765b7=null),null===_0x1765b7&&(_0x1765b7=await this[_0x56b9('0x57')][_0x56b9('0x61')]());const _0x2ecea6=this[_0x56b9('0xf4')](_0x1765b7),_0x18c216=this[_0x56b9('0x104')]({'from':_0x2ecea6,'to':_0x1765b7});if(this[_0x56b9('0x5c')][_0x56b9('0xb8')]<_0x1765b7){const _0x3707b4=this[_0x56b9('0x104')]({'revision':this[_0x56b9('0x5c')],'from':_0x1765b7,'to':_0x1765b7});_0x3707b4[_0x56b9('0x26')]=[],_0x3707b4[_0x56b9('0x36')]=[],_0x3707b4['id']=this[_0x56b9('0x5c')]['id'],this[_0x56b9('0x5c')]['_update'](_0x3707b4,!0x0),delete _0x3707b4[_0x56b9('0x26')],_0x4bcd63[_0x56b9('0x96')](_0x3707b4);}_0x31ec9b['creatorId']=this[_0x56b9('0x17')][_0x56b9('0xc4')][_0x56b9('0x46')](_0x56b9('0x6c'))['me']['id'],_0x31ec9b[_0x56b9('0xf8')]=_0x31ec9b['name']||null,_0x31ec9b['id']=_0x31ec9b['id']||_0x7cec49(),_0x31ec9b={..._0x31ec9b,..._0x18c216};const _0x1a2f8f=this[_0x56b9('0xce')](_0x31ec9b);_0x4bcd63[_0x56b9('0x96')](_0x31ec9b);const _0xe582d=this[_0x56b9('0xd9')][_0x56b9('0x6e')](_0x1a2f8f);if(0x0!==_0xe582d){const _0x5508b=this[_0x56b9('0xd9')]['getRevision'](_0xe582d-0x1);if(_0x5508b['fromVersion']!==_0x1765b7){const _0xf2e86e=this[_0x56b9('0xb9')][_0x56b9('0xd5')](_0x1765b7,_0x5508b[_0x56b9('0xb8')]),_0x3a23ca={'id':_0x5508b['id'],'diffData':_0xf2e86e[_0x56b9('0x5d')],'authorsIds':_0xf2e86e['authorsIds'],'authors':_0xf2e86e['authorsIds'][_0x56b9('0x99')](_0x4d7605=>this[_0x56b9('0x17')][_0x56b9('0xc4')][_0x56b9('0x46')]('Users')[_0x56b9('0x38')](_0x4d7605)),'fromVersion':_0x1765b7};_0x5508b===this[_0x56b9('0x5c')]&&(_0x3a23ca['createdAt']=new Date(_0x31ec9b[_0x56b9('0x59')][_0x56b9('0x20')]()+0xa)),_0x5508b[_0x56b9('0x8f')](_0x3a23ca,!0x0),delete _0x3a23ca[_0x56b9('0x26')],_0x4bcd63[_0x56b9('0x96')](_0x3a23ca);}}if(this[_0x56b9('0x84')]){for(const _0x139854 of _0x4bcd63)this[_0x56b9('0x72')](_0x139854['id'],_0x139854,!0x0);this['sendBufferedUpdates']();}return _0x1a2f8f;}[_0x56b9('0xce')](_0x282962){const _0x5eba8f=this['repository'][_0x56b9('0x7')](_0x282962);return this[_0x56b9('0x84')]&&_0x5eba8f['on'](_0x56b9('0x8f'),(_0x26dce0,_0x4cbdf6,_0x385489)=>{_0x385489||(this[_0x56b9('0x72')](_0x4cbdf6['id'],_0x4cbdf6,!0x0),this[_0x56b9('0x70')]());}),this['repository']['addRevision'](_0x5eba8f,this[_0x56b9('0x75')](_0x5eba8f)),_0x5eba8f;}async[_0x56b9('0x6a')](_0x2137f1){await this[_0x56b9('0xe5')](_0x2137f1);const _0x808840={};for(const _0x4bdcf4 in _0x2137f1[_0x56b9('0x5d')]){if(_0x2137f1['diffData'][_0x4bdcf4][_0x56b9('0x58')]&&!_0x2137f1[_0x56b9('0x5d')][_0x4bdcf4][_0x56b9('0x58')][_0x56b9('0xbf')])continue;const _0x34974a=this[_0x56b9('0x10d')](JSON[_0x56b9('0x19')](_0x2137f1[_0x56b9('0x5d')][_0x4bdcf4][_0x56b9('0x94')])),_0x264a51=this['editor'][_0x56b9('0xd')][_0x56b9('0x5b')][_0x56b9('0x1c')],_0x325b2e=new _0x54a520(_0x264a51,_0x34974a[_0x56b9('0x99')](_0x59435e=>J(_0x59435e,this[_0x56b9('0x17')])));this[_0x56b9('0x17')][_0x56b9('0x81')][_0x56b9('0x3f')]['useFillerType'](_0x56b9('0x6d')),_0x808840[_0x4bdcf4]=this[_0x56b9('0x17')][_0x56b9('0x81')][_0x56b9('0x3f')][_0x56b9('0xba')](_0x325b2e),this[_0x56b9('0x17')]['data'][_0x56b9('0x3f')][_0x56b9('0xfe')]('default');}return _0x808840;}async[_0x56b9('0xfc')](_0x28f465){await this[_0x56b9('0xe5')](_0x28f465);const _0x33b89a={};for(const _0xa9cc8d in _0x28f465[_0x56b9('0x5d')])_0x28f465[_0x56b9('0x5d')][_0xa9cc8d][_0x56b9('0x58')]&&!_0x28f465[_0x56b9('0x5d')][_0xa9cc8d][_0x56b9('0x58')]['isAttached']||(_0x33b89a[_0xa9cc8d]=_0x28f465[_0x56b9('0x5d')][_0xa9cc8d][_0x56b9('0xa4')]||{});return _0x33b89a;}[_0x56b9('0x70')](){if(0x0===this[_0x56b9('0x3a')][_0x56b9('0x37')])return;if(this[_0x56b9('0xc5')])return;let _0x907fa0=Array[_0x56b9('0x98')](this[_0x56b9('0x3a')][_0x56b9('0x88')]());this['_bufferedUpdates']['clear']();for(let _0x51c8b7=0x0;_0x51c8b7<_0x907fa0[_0x56b9('0x8d')];_0x51c8b7++){const _0xc93325=_0x907fa0[_0x51c8b7];let _0x1c3d95=!0x1;for(const _0x635867 of Object['keys'](_0xc93325))void 0x0===_0xc93325[_0x635867]?delete _0xc93325[_0x635867]:'id'!==_0x635867&&(_0x1c3d95=!0x0);_0x1c3d95||(_0x907fa0[_0x51c8b7]=null);}if(_0x907fa0=_0x907fa0[_0x56b9('0x5e')](_0x32a34e=>null!==_0x32a34e),!_0x907fa0[_0x56b9('0x8d')])return;for(let _0x3e489e=0x0;_0x3e489e<_0x907fa0[_0x56b9('0x8d')];_0x3e489e++){const _0x383076=_0x907fa0[_0x3e489e];void 0x0!==_0x383076[_0x56b9('0x86')]&&void 0x0===_0x383076['toVersion']&&(_0x383076[_0x56b9('0xb8')]=this[_0x56b9('0xd9')][_0x56b9('0x33')](_0x383076['id'])[_0x56b9('0xb8')]),void 0x0!==_0x383076[_0x56b9('0xb8')]&&void 0x0===_0x383076[_0x56b9('0x86')]&&(_0x383076[_0x56b9('0x86')]=this[_0x56b9('0xd9')]['getRevision'](_0x383076['id'])[_0x56b9('0x86')]);}const _0x25b40c=this['editor'][_0x56b9('0x105')][_0x56b9('0x46')](_0x56b9('0x10b'));this['_isPendingUpdate']=!0x0,this[_0x56b9('0x27')](),this[_0x56b9('0x84')][_0x56b9('0x92')](_0x907fa0,_0x25b40c)[_0x56b9('0xa2')](()=>{this['_isPendingUpdate']=!0x1;})[_0x56b9('0xfd')](_0x551350=>{if(_0x551350)for(const _0x2beb39 of _0x551350)this[_0x56b9('0x23')]({'id':_0x2beb39['id'],'createdAt':_0x2beb39[_0x56b9('0x59')]});this[_0x56b9('0x6')](),this[_0x56b9('0x70')]();});}[_0x56b9('0x3d')](_0x3fff38,_0x3a20fc){let _0x7f6a11=this['editor']['config'][_0x56b9('0x46')](_0x56b9('0xec')),_0x5e9f95=this[_0x56b9('0x17')][_0x56b9('0x105')][_0x56b9('0x46')]('rootsAttributes');if(void 0x0===_0x7f6a11){_0x7f6a11={};for(const _0x1b2aa1 of this['editor'][_0x56b9('0x69')][_0x56b9('0x1c')][_0x56b9('0x10a')]())_0x7f6a11[_0x1b2aa1]='';}if(_0x56b9('0x10c')==typeof _0x7f6a11&&(_0x7f6a11={'main':_0x7f6a11}),void 0x0===_0x5e9f95){_0x5e9f95={};for(const _0x5a7231 of this[_0x56b9('0x17')]['model']['document']['getRootNames']())_0x5e9f95[_0x5a7231]={};}let _0x3c9f30=!0x1;const _0x53d61a=Object['keys'](_0x7f6a11),_0xeea3e8=Object[_0x56b9('0x7d')](_0x3fff38);for(const _0x4e93f6 of _0x53d61a){if(_0x7f6a11[_0x4e93f6]!==_0x3fff38[_0x4e93f6]&&''!==_0x7f6a11[_0x4e93f6][_0x56b9('0xf9')]()){_0x3c9f30=!0x0;break;}if(!_0x3abcc8(_0x5e9f95[_0x4e93f6],_0x3a20fc[_0x4e93f6])&&Object['keys'](_0x5e9f95[_0x4e93f6])['length']>0x0){_0x3c9f30=!0x0;break;}}_0x3c9f30||(_0x3c9f30=_0xeea3e8['some'](_0x4a4af8=>!this[_0x56b9('0x17')]['model'][_0x56b9('0x1c')]['getRoot'](_0x4a4af8))),_0x3c9f30&&_0x495e1d(_0x56b9('0x2f'),{'editorData':_0x7f6a11,'editorRootsAttributes':_0x5e9f95,'revisionData':_0x3fff38,'revisionRootsAttributes':_0x3a20fc}),this['editor']['config'][_0x56b9('0x22')](_0x56b9('0xec'),_0x3fff38),this[_0x56b9('0x17')][_0x56b9('0x105')]['set'](_0x56b9('0x40'),_0x3a20fc);}[_0x56b9('0x27')](){if(!this[_0x56b9('0x90')]){const _0x219c54=this[_0x56b9('0x17')][_0x56b9('0xc4')][_0x56b9('0x46')](_0x56b9('0x107'));this[_0x56b9('0x90')]=_0x219c54[_0x56b9('0x2d')](_0x37ad9c(this[_0x56b9('0x17')][_0x56b9('0x47')],_0x56b9('0xb7')));}}[_0x56b9('0x6')](){this[_0x56b9('0x90')]&&(this[_0x56b9('0x17')][_0x56b9('0xc4')]['get'](_0x56b9('0x107'))[_0x56b9('0x6b')](this[_0x56b9('0x90')]),this[_0x56b9('0x90')]=null);}[_0x56b9('0x75')](_0x2d76eb){const _0x112b2e=this['repository']['getRevisions']();_0x112b2e[_0x56b9('0x32')]();let _0x44fb89=0x0;for(;_0x44fb89<_0x112b2e['length'];){const _0xb974e9=_0x112b2e[_0x44fb89];if(_0xb974e9===this[_0x56b9('0x5c')]){_0x44fb89++;continue;}if(_0xb974e9['id']===this[_0x56b9('0xb3')])break;const _0x36ef1e=_0x2d76eb[_0x56b9('0xb8')]-_0xb974e9[_0x56b9('0xb8')]||_0x2d76eb[_0x56b9('0x86')]-_0xb974e9[_0x56b9('0x86')];if(_0x36ef1e>0x0)break;if(_0x36ef1e<0x0)_0x44fb89++;else{if(!_0x2d76eb[_0x56b9('0xdd')]&&_0xb974e9[_0x56b9('0xdd')])break;if(_0xb974e9['creator']||!_0x2d76eb['creator']){if(_0x2d76eb[_0x56b9('0x59')]>_0xb974e9[_0x56b9('0x59')])break;_0x44fb89++;}else _0x44fb89++;}}return _0x44fb89;}['setRevisionData'](_0x2ba458){const _0xf9e71f=this[_0x56b9('0xd9')][_0x56b9('0x33')](_0x2ba458['id']);if(_0x2ba458[_0x56b9('0x59')]&&(_0x2ba458['createdAt']=new Date(_0x2ba458[_0x56b9('0x59')])),_0x2ba458[_0x56b9('0x36')]){const _0x445229=this[_0x56b9('0x17')][_0x56b9('0xc4')][_0x56b9('0x46')](_0x56b9('0x6c'));_0x2ba458[_0x56b9('0x26')]=_0x2ba458[_0x56b9('0x36')][_0x56b9('0x99')](_0x43a7a8=>_0x445229[_0x56b9('0x38')](_0x43a7a8));}_0xf9e71f['_update'](_0x2ba458,!0x0);}['buildRevisionData']({revision:_0x17564f=null,from:_0x3157aa=null,to:_0x109ef6=null}){_0x3157aa=null!==_0x3157aa?_0x3157aa:_0x17564f['fromVersion'],_0x109ef6=null!==_0x109ef6?_0x109ef6:_0x17564f[_0x56b9('0xb8')];const _0x2eb8d9=this['_revisionDataBuilder']['getData'](_0x3157aa,_0x109ef6),_0x136ffd={'diffData':_0x2eb8d9[_0x56b9('0x5d')],'authorsIds':_0x2eb8d9['authorsIds'],'fromVersion':_0x3157aa,'toVersion':_0x109ef6};if(!_0x17564f||_0x109ef6!==_0x17564f[_0x56b9('0xb8')]){const _0x3ac42a=_0x109ef6-0x1,_0x4c442c=this[_0x56b9('0x57')][_0x56b9('0xe3')]['getOperation'](_0x3ac42a);_0x136ffd[_0x56b9('0x59')]=_0x4c442c&&_0x4c442c[_0x56b9('0x59')]||new Date();}if(this[_0x56b9('0xd8')]&&_0x3157aa===this[_0x56b9('0xd8')]['fromVersion'])for(const _0x396efb of this['_loadedStateData'][_0x56b9('0x26')])_0x136ffd[_0x56b9('0x36')][_0x56b9('0x9e')](_0x396efb['id'])||_0x136ffd[_0x56b9('0x36')][_0x56b9('0x96')](_0x396efb['id']);return _0x136ffd;}[_0x56b9('0xe5')](_0x1991d6){if(!_0x1991d6||_0x1991d6[_0x56b9('0x5d')])return Promise[_0x56b9('0x25')]();{const _0x1c619f=this[_0x56b9('0x17')][_0x56b9('0x105')][_0x56b9('0x46')]('collaboration.channelId');return this[_0x56b9('0x84')][_0x56b9('0x33')]({'channelId':_0x1c619f,'revisionId':_0x1991d6['id']})[_0x56b9('0xfd')](_0x5e5c29=>{_0x1991d6[_0x56b9('0x5d')]=_0x5e5c29[_0x56b9('0x5d')];});}}[_0x56b9('0x72')](_0x422500,_0x296fd9,_0x75e59d){if(this[_0x56b9('0x3a')][_0x56b9('0x39')](_0x422500)){const _0x53ae4e=this['_bufferedUpdates'][_0x56b9('0x46')](_0x422500);_0x296fd9=_0x75e59d?{..._0x53ae4e,..._0x296fd9}:{..._0x296fd9,..._0x53ae4e};}this[_0x56b9('0x3a')][_0x56b9('0x22')](_0x422500,_0x296fd9);}['_getFromVersion'](_0x2cad3b){const _0x2c0835=this[_0x56b9('0xd9')][_0x56b9('0xad')]();_0x2c0835[_0x56b9('0x32')](),_0x2c0835[_0x56b9('0x11')]();const _0x3ed320=_0x2c0835[_0x56b9('0x1')](_0x3f0919=>_0x3f0919['toVersion']<=_0x2cad3b)[_0x56b9('0xb8')];return _0x3ed320<this['_startingVersion']?this['_startingVersion']:_0x3ed320;}[_0x56b9('0x68')](_0x458e7d){const _0x3f1235=this['repository'][_0x56b9('0x33')](this[_0x56b9('0xd9')][_0x56b9('0x8d')]-0x1);if(_0x3f1235)this['_initialRevisionId']=_0x3f1235['id'];else{const _0x3bf4aa=!this[_0x56b9('0x17')][_0x56b9('0x69')]['document'][_0x56b9('0x100')]['find'](_0x563b99=>this[_0x56b9('0x17')][_0x56b9('0x69')]['hasContent'](_0x563b99)),_0x303e32=this[_0x56b9('0x17')][_0x56b9('0xc4')][_0x56b9('0x46')](_0x56b9('0x6c'))['me']['id'],_0x1362fe=_0x37ad9c(this['editor'][_0x56b9('0x47')],_0x3bf4aa?'Empty\x20document':_0x56b9('0x42'));this[_0x56b9('0x53')]({'from':_0x458e7d,'to':_0x458e7d,'id':this[_0x56b9('0xb3')],'name':_0x1362fe,'creatorId':_0x303e32});}}['_createCurrentRevision'](_0x1453eb){const _0x12fbce=this[_0x56b9('0x57')][_0x56b9('0xf0')]();this[_0x56b9('0x5c')]=this[_0x56b9('0xd9')][_0x56b9('0x33')](_0x12fbce),this['currentRevision']||(this[_0x56b9('0x5c')]=this[_0x56b9('0x53')]({'from':_0x1453eb,'to':_0x1453eb,'id':_0x12fbce,'name':'','creatorId':null}));}[_0x56b9('0x53')]({name:_0x565c66,from:_0x42e8ed,to:_0x1531c0,creatorId:_0x25f473,id:_0x19b2e2}){const _0x170ba2=this[_0x56b9('0x104')]({'from':_0x42e8ed,'to':_0x1531c0});_0x170ba2[_0x56b9('0xf8')]=_0x565c66,_0x170ba2['creatorId']=_0x25f473,_0x170ba2['id']=_0x19b2e2;const _0x411a93=this[_0x56b9('0xce')](_0x170ba2);return this[_0x56b9('0x84')]&&this[_0x56b9('0x72')](_0x170ba2['id'],_0x170ba2,!0x0),_0x411a93;}[_0x56b9('0x6f')](){this['editor'][_0x56b9('0x101')]['for'](_0x56b9('0x24'))[_0x56b9('0xe0')]({'model':_0x56b9('0x7f')});}[_0x56b9('0x10d')](_0x520e73){return(_0x520e73=_0x520e73[_0x56b9('0x5e')](_0xff31e6=>!_0xff31e6[_0x56b9('0xf8')]||_0x56b9('0x60')!==_0xff31e6[_0x56b9('0xf8')]&&_0x56b9('0xb2')!==_0xff31e6[_0x56b9('0xf8')]))[_0x56b9('0x87')](_0x447175=>{'string'!=typeof _0x447175&&(_0x447175['children']=this[_0x56b9('0x10d')](_0x447175[_0x56b9('0xe6')]),_0x447175[_0x56b9('0xb5')]=_0x447175[_0x56b9('0xb5')][_0x56b9('0x5e')](_0x1b4540=>!_0x1b4540[0x0][_0x56b9('0x1f')](_0x56b9('0xac'))));}),_0x520e73;}}function J(_0x2c4086,_0x61384d){const _0xdad1d3=_0x61384d[_0x56b9('0xd')][_0x56b9('0x5b')][_0x56b9('0x1c')];if(_0x56b9('0x10c')==typeof _0x2c4086)return new _0x560a81(_0xdad1d3,_0x2c4086);{const _0x26a4ca=_0x2c4086[_0x56b9('0xe6')][_0x56b9('0x99')](_0x2b65f3=>J(_0x2b65f3,_0x61384d));return new(B[_0x2c4086[(_0x56b9('0xe4'))]]||_0x52de99)(_0xdad1d3,_0x2c4086[_0x56b9('0xf8')],_0x2c4086['attributes'],_0x26a4ca);}}class H{constructor(_0x487fc8){this[_0x56b9('0x17')]=_0x487fc8,this['_savedMetaData']=new Map(),this[_0x56b9('0x0')]=-0x1,this[_0x56b9('0x56')]=-0x1,this[_0x56b9('0x1b')]=new Map(),this['_diffRoots']=new Map(),this[_0x56b9('0x31')]=new Map(),this[_0x56b9('0xab')]=new Map(),this[_0x56b9('0x16')]=new Map(),this[_0x56b9('0x54')]=new Map(),this[_0x56b9('0x5')]=new Map(),this[_0x56b9('0xe')]=new Map(),this[_0x56b9('0x18')]=new Map(),this[_0x56b9('0x95')]=new Map(),this[_0x56b9('0x2b')]=0x1;}[_0x56b9('0x29')](_0x393e38){this[_0x56b9('0xd4')]=_0x393e38;const _0x1d5052=new Map(),_0x2c6a66=new Map(),_0x1cc849=this[_0x56b9('0x17')][_0x56b9('0x69')][_0x56b9('0x1c')][_0x56b9('0x100')][_0x56b9('0x99')](_0x8970e4=>_0x8970e4[_0x56b9('0x8e')]);for(const _0x4c56d6 of _0x1cc849){const _0x75fa96=this[_0x56b9('0x17')][_0x56b9('0x69')][_0x56b9('0x1c')][_0x56b9('0x89')](_0x4c56d6),_0x47ee91=q(_0x75fa96);_0x1d5052['set'](_0x4c56d6,_0x47ee91),_0x2c6a66[_0x56b9('0x22')](_0x4c56d6,Object[_0x56b9('0x4e')](_0x75fa96[_0x56b9('0x93')]()));}const _0x4c7021=Array[_0x56b9('0x98')](this[_0x56b9('0x17')][_0x56b9('0x69')][_0x56b9('0x80')])['map'](_0x24caf5=>[_0x24caf5[_0x56b9('0xf8')],_0x24caf5[_0x56b9('0x9b')]()]),_0x52b84f=this['source'][_0x56b9('0x108')];this[_0x56b9('0x8')](_0x52b84f,_0x1d5052,_0x4c7021,_0x2c6a66),this['_startingRevisionId']=this[_0x56b9('0x2b')];const _0x36f5fb=new Map(),_0x3a9d8e=new Map();for(const _0x18f364 of _0x1cc849){const _0x569b86=G(_0x18f364);_0x36f5fb[_0x56b9('0x22')](_0x18f364,_0x569b86),_0x3a9d8e['set'](_0x18f364,{});}this['_saveMetaData'](Number[_0x56b9('0xe8')],_0x36f5fb,[],_0x3a9d8e);}['getData'](_0x3ddb80,_0x5a8ec1){if(this[_0x56b9('0x0')]===_0x3ddb80&&this[_0x56b9('0x56')]<=_0x5a8ec1)this[_0x56b9('0xde')][_0x56b9('0x37')]>0x1&&this[_0x56b9('0xd7')](this[_0x56b9('0x56')]),this[_0x56b9('0xaf')](this['_lastTo'],_0x5a8ec1,!0x0);else{if(!this[_0x56b9('0xde')][_0x56b9('0x39')](_0x3ddb80)){const _0xc6e8=this[_0x56b9('0x83')](_0x3ddb80);this[_0x56b9('0x3e')](_0xc6e8,_0x3ddb80,!0x1);}this[_0x56b9('0x3e')](_0x3ddb80,_0x5a8ec1,!0x0);}return this[_0x56b9('0x0')]=_0x3ddb80,this[_0x56b9('0x56')]=_0x5a8ec1,this['_getState']();}['loadState'](_0x38ffab){this[_0x56b9('0xc0')](),this[_0x56b9('0x0')]=_0x38ffab[_0x56b9('0x86')],this[_0x56b9('0x56')]=_0x38ffab['toVersion'];for(const _0x884058 in _0x38ffab[_0x56b9('0x5d')]){const _0x4378f8=_0x38ffab[_0x56b9('0x5d')][_0x884058][_0x56b9('0x58')],_0x3253d8=_0x558724(_0x38ffab['diffData'][_0x884058][_0x56b9('0x109')])||{},_0x4ee2ee=this[_0x56b9('0xe9')](_0x38ffab['diffData'][_0x884058][_0x56b9('0xfb')]);_0x4ee2ee[_0x56b9('0x8e')]=_0x884058,_0x4ee2ee[_0x56b9('0xdb')]=!_0x4378f8||!_0x4378f8['isAttached'],_0x4ee2ee[_0x56b9('0xbf')]=()=>_0x4ee2ee[_0x56b9('0xdb')],this[_0x56b9('0xab')][_0x56b9('0x22')](_0x884058,_0x4ee2ee),this['_baseRootsAttributes'][_0x56b9('0x22')](_0x884058,_0x3253d8),_0x4378f8&&this[_0x56b9('0x95')]['set'](_0x884058,_0x4378f8);const _0x1edfd5=this[_0x56b9('0x9c')](_0x4ee2ee);this[_0x56b9('0x5')][_0x56b9('0x22')](_0x884058,_0x1edfd5);for(const [_0x3444ba,_0x156147]of _0x4ee2ee[_0x56b9('0x80')]){if(!_0x3444ba['startsWith']('revision:'))continue;const _0x49e396=_0x3444ba[_0x56b9('0xa3')](':')[0x2];for(const _0x5c7c54 of _0x156147[_0x56b9('0x67')]({'singleCharacters':!0x0})){const _0x4a3ffb=this[_0x56b9('0x9f')](_0x5c7c54),_0x30374a=_0x56b9('0x55')==_0x5c7c54[_0x56b9('0xe4')]?_0x5c7c54[_0x56b9('0x8a')][_0x56b9('0x4')][_0x56b9('0xb6')](0x0,-0x1):_0x5c7c54[_0x56b9('0x8a')]['path'],_0x438c48=_0x1edfd5[_0x56b9('0xc')](_0x30374a)[_0x56b9('0xf6')](_0x4a3ffb);this['_touched'][_0x56b9('0x22')](_0x438c48,{'userId':_0x49e396});}}}this[_0x56b9('0x14')]=this[_0x56b9('0x2b')];const _0x47d792=[...Array(this['_revisionId'])[_0x56b9('0x7d')]()][_0x56b9('0xb6')](0x1)[_0x56b9('0x5e')](_0x638673=>!this[_0x56b9('0xe')][_0x56b9('0x39')](_0x638673));let _0x5bf7af=0x0;const _0x4aafea=new Map();for(const _0x1e2fc0 in _0x38ffab[_0x56b9('0x5d')]){const _0x47fd33=_0x38ffab['diffData'][_0x1e2fc0][_0x56b9('0x58')],_0x4662a0=_0x558724(_0x38ffab['diffData'][_0x1e2fc0][_0x56b9('0xa4')])||{},_0x5429da=this[_0x56b9('0xe9')](_0x38ffab[_0x56b9('0x5d')][_0x1e2fc0][_0x56b9('0x94')]);_0x5429da['rootName']=_0x1e2fc0,_0x5429da['_isAttached']=!_0x47fd33||_0x47fd33[_0x56b9('0xbf')],_0x5429da[_0x56b9('0xbf')]=()=>_0x5429da['_isAttached'],this[_0x56b9('0x7e')][_0x56b9('0x22')](_0x1e2fc0,_0x5429da),this[_0x56b9('0x31')][_0x56b9('0x22')](_0x1e2fc0,_0x4662a0);const _0x44bbfc=this[_0x56b9('0x9c')](_0x5429da,Number[_0x56b9('0xe8')]);this[_0x56b9('0x54')]['set'](_0x1e2fc0,_0x44bbfc),_0x4aafea[_0x56b9('0x22')](_0x1e2fc0,_0x5429da[_0x56b9('0xbf')]()?_0x4662a0:{});for(const [_0x3a2d89,_0x317c59]of _0x5429da[_0x56b9('0x80')]){if(!_0x3a2d89[_0x56b9('0x1f')](_0x56b9('0x97')))continue;const _0x5ade96=_0x3a2d89['split'](':')[0x2];for(const _0x28ec1c of _0x317c59[_0x56b9('0x67')]({'singleCharacters':!0x0})){const _0x29026f=this[_0x56b9('0x9f')](_0x28ec1c),_0x392dc9=this[_0x56b9('0x2b')]++,_0x9f2d74='elementEnd'==_0x28ec1c['type']?_0x28ec1c['previousPosition'][_0x56b9('0x4')][_0x56b9('0xb6')](0x0,-0x1):_0x28ec1c[_0x56b9('0x8a')][_0x56b9('0x4')];_0x44bbfc[_0x56b9('0xc')](_0x9f2d74)['_setAttribute'](_0x29026f,_0x392dc9),this[_0x56b9('0xe')][_0x56b9('0x22')](_0x392dc9,{'userId':_0x5ade96});}}for(const _0x1d3e58 of this[_0x56b9('0x17')][_0x56b9('0x69')][_0x56b9('0xc1')](_0x5429da)['getWalker']({'singleCharacters':!0x0})){const _0x13b9f9=this[_0x56b9('0x9f')](_0x1d3e58),_0x489f38=_0x56b9('0x55')==_0x1d3e58[_0x56b9('0xe4')]?_0x1d3e58[_0x56b9('0x8a')][_0x56b9('0x4')][_0x56b9('0xb6')](0x0,-0x1):_0x1d3e58[_0x56b9('0x8a')][_0x56b9('0x4')],_0x151ab9=_0x44bbfc[_0x56b9('0xc')](_0x489f38);_0x151ab9[_0x56b9('0xf6')](_0x13b9f9)>0x0||_0x151ab9[_0x56b9('0x34')](_0x13b9f9,_0x47d792[_0x5bf7af++]);}for(const [_0x492af3,_0x3a6a86]of _0x5429da['markers'])_0x492af3[_0x56b9('0x1f')](_0x56b9('0x97'))||this[_0x56b9('0x1b')][_0x56b9('0x22')](_0x492af3,_0x3a6a86);}const _0x49f4d3=G('$graveyard');this[_0x56b9('0xab')][_0x56b9('0x22')](_0x56b9('0x2a'),_0x49f4d3),this['_baseIdsRoots'][_0x56b9('0x22')]('$graveyard',this[_0x56b9('0x9c')](_0x49f4d3,0x1));const _0x437809=G(_0x56b9('0x2a'));this[_0x56b9('0x7e')]['set']('$graveyard',_0x437809),this[_0x56b9('0x54')][_0x56b9('0x22')](_0x56b9('0x2a'),this[_0x56b9('0x9c')](_0x437809,0x1));const _0x5d72c7=Array['from'](this[_0x56b9('0x7e')])[_0x56b9('0x99')](([_0x5de39f,_0x7895fe])=>[_0x5de39f,q(_0x7895fe)]);this[_0x56b9('0x8')](this[_0x56b9('0x56')],_0x5d72c7,this['_markers'],_0x4aafea);}[_0x56b9('0xe9')](_0x5ae7dc){const _0x49a95c=JSON[_0x56b9('0x19')](_0x5ae7dc),_0x374d76=this[_0x56b9('0x17')][_0x56b9('0xd')][_0x56b9('0x5b')][_0x56b9('0x1c')],_0x314408=new _0x54a520(_0x374d76,_0x49a95c['map'](_0x1339ac=>J(_0x1339ac,this[_0x56b9('0x17')])));return this[_0x56b9('0x17')][_0x56b9('0x81')][_0x56b9('0xf2')](_0x314408);}[_0x56b9('0x8')](_0x541fe7,_0x176f51,_0x16963b,_0x5bb4dc){const _0x459f3e=new Map(_0x176f51),_0xa2f279=new Map(_0x558724(_0x5bb4dc)),_0x187034=new Map();for(const [_0x163252,_0x3d9887]of _0x16963b)_0x187034['set'](_0x163252,{'start':_0x3d9887[_0x56b9('0xcf')][_0x56b9('0xd0')](),'end':_0x3d9887[_0x56b9('0xa9')][_0x56b9('0xd0')](),'rootName':_0x3d9887[_0x56b9('0x4b')][_0x56b9('0x8e')]});this[_0x56b9('0xde')][_0x56b9('0x22')](_0x541fe7,{'roots':_0x459f3e,'markers':_0x187034,'rootsAttributes':_0xa2f279});}[_0x56b9('0xd7')](_0x1d6b00){this['_savedMetaData']['delete'](_0x1d6b00);}[_0x56b9('0xe7')](){this[_0x56b9('0xc0')](),this['_lastFrom']=-0x1,this[_0x56b9('0x56')]=-0x1,this[_0x56b9('0xde')][_0x56b9('0xc7')](),this[_0x56b9('0x29')](this[_0x56b9('0xd4')]);}[_0x56b9('0xc0')](){this[_0x56b9('0xe')][_0x56b9('0xc7')](),this[_0x56b9('0x18')][_0x56b9('0xc7')](),this[_0x56b9('0x95')]['clear'](),this[_0x56b9('0x7e')][_0x56b9('0xc7')](),this['_diffRootsAttributes']['clear'](),this['_baseRoots'][_0x56b9('0xc7')](),this[_0x56b9('0x16')][_0x56b9('0xc7')](),this[_0x56b9('0x54')][_0x56b9('0xc7')](),this[_0x56b9('0x5')][_0x56b9('0xc7')](),this[_0x56b9('0x1b')]['clear'](),this[_0x56b9('0x2b')]=0x1,this[_0x56b9('0x14')]=this[_0x56b9('0x2b')];}[_0x56b9('0x9c')](_0x5b1ad3,_0x51cf36=null){let _0x5d147a=null;_0x5b1ad3['is']('documentFragment')||(_0x5d147a=new _0x547c6b(_0x5b1ad3['name'],{'vid_start':null===_0x51cf36?this[_0x56b9('0x2b')]++:_0x51cf36++}));const _0x4d8c9e=[];for(const _0x60850c of _0x5b1ad3[_0x56b9('0x102')]())if(_0x60850c['is'](_0x56b9('0xda'))){_0x4d8c9e[_0x56b9('0x96')](this[_0x56b9('0x9c')](_0x60850c,_0x51cf36));const _0x1ec365=_0x4d8c9e[_0x4d8c9e[_0x56b9('0x8d')]-0x1];null!==_0x51cf36&&(_0x51cf36=_0x1ec365['is'](_0x56b9('0xda'),_0x56b9('0x9'))?_0x1ec365[_0x56b9('0xf6')]('vid')+0x1:_0x1ec365[_0x56b9('0xf6')](_0x56b9('0x76'))+0x1);}else for(let _0x3d3d72=0x0;_0x3d3d72<_0x60850c[_0x56b9('0x8b')];_0x3d3d72++)_0x4d8c9e[_0x56b9('0x96')](new _0x547c6b(_0x56b9('0x9'),{'vid':null===_0x51cf36?this[_0x56b9('0x2b')]++:_0x51cf36++}));if(_0x5b1ad3['is'](_0x56b9('0x85'))){const _0x5bc360=G(_0x5b1ad3[_0x56b9('0x8e')]);return _0x5bc360[_0x56b9('0xb')](0x0,_0x4d8c9e),_0x5bc360;}return _0x5d147a['_setAttribute'](_0x56b9('0x76'),null===_0x51cf36?this[_0x56b9('0x2b')]++:_0x51cf36++),_0x5d147a[_0x56b9('0xb')](0x0,_0x4d8c9e),_0x5d147a;}[_0x56b9('0x3e')](_0xe5c2a6,_0x17744b,_0x559181){this[_0x56b9('0xc0')]();const {roots:_0x3d3d7f,markers:_0x1d74d0,rootsAttributes:_0x32506d}=this[_0x56b9('0xde')][_0x56b9('0x46')](_0xe5c2a6);this[_0x56b9('0xab')]=new Map(_0x3d3d7f),this[_0x56b9('0x16')]=new Map(_0x558724(_0x32506d));for(const [_0x16a09a,_0x387392]of this[_0x56b9('0xab')])if(_0x56b9('0x2a')!==_0x16a09a&&(this[_0x56b9('0x7e')]['set'](_0x16a09a,q(_0x387392)),this[_0x56b9('0x31')]=new Map(_0x558724(_0x32506d)),_0x559181)){const _0xbbc73b=this[_0x56b9('0x2b')];this['_idsRoots'][_0x56b9('0x22')](_0x16a09a,this['_makeIdsRoot'](_0x387392)),this[_0x56b9('0x5')]['set'](_0x16a09a,this['_makeIdsRoot'](_0x387392,_0xbbc73b));}this[_0x56b9('0x14')]=this['_revisionId'],this[_0x56b9('0x7e')][_0x56b9('0x22')]('$graveyard',q(this[_0x56b9('0xab')][_0x56b9('0x46')](_0x56b9('0x2a')))),_0x559181&&this[_0x56b9('0x54')][_0x56b9('0x22')]('$graveyard',this['_makeIdsRoot'](this[_0x56b9('0xab')][_0x56b9('0x46')]('$graveyard')));for(const [_0x532f81,_0x235e3c]of _0x1d74d0){const _0x50a039=this[_0x56b9('0xab')][_0x56b9('0x46')](_0x235e3c['rootName']),_0xf9efec=this['_diffRoots'][_0x56b9('0x46')](_0x235e3c[_0x56b9('0x8e')]),_0x2aa38f=new _0x366d5d(this[_0x56b9('0xeb')](_0x235e3c[_0x56b9('0xcf')],_0x50a039),this[_0x56b9('0xeb')](_0x235e3c[_0x56b9('0xa9')],_0x50a039)),_0x4b9312=this[_0x56b9('0x63')](_0x2aa38f,_0xf9efec);_0x50a039[_0x56b9('0x80')][_0x56b9('0x22')](_0x532f81,_0x2aa38f),this[_0x56b9('0x1b')]['set'](_0x532f81,_0x4b9312);}this[_0x56b9('0xaf')](_0xe5c2a6,_0x17744b,_0x559181);}[_0x56b9('0xaf')](_0x3d833a,_0x12d7df,_0x42883c){for(const _0x22d563 of this[_0x56b9('0xd4')]['getOperations'](_0x3d833a,_0x12d7df))this['_handleOperation'](_0x22d563,_0x42883c);for(const _0x46cd8a of this['_diffRoots'][_0x56b9('0x88')]())_0x46cd8a[_0x56b9('0x80')][_0x56b9('0xc7')]();for(const [_0x4531de,_0x1ee93a]of this['_markers']){this[_0x56b9('0x7e')][_0x56b9('0x46')](_0x1ee93a[_0x56b9('0x4b')][_0x56b9('0x8e')])[_0x56b9('0x80')][_0x56b9('0x22')](_0x4531de,_0x1ee93a[_0x56b9('0xd0')]());}const _0x44e9ab=new Map(),_0x1f4890=new Map();for(const [_0x7e3a8b,_0x334063]of this[_0x56b9('0x7e')])_0x44e9ab['set'](_0x7e3a8b,q(_0x334063)),_0x1f4890[_0x56b9('0x22')](_0x7e3a8b,this['_diffRootsAttributes']['get'](_0x7e3a8b));this[_0x56b9('0x8')](_0x12d7df,_0x44e9ab,this[_0x56b9('0x1b')],_0x1f4890);}[_0x56b9('0x83')](_0x138639){const _0x16b15e=Array[_0x56b9('0x98')](this[_0x56b9('0xde')][_0x56b9('0x7d')]());_0x16b15e['sort']((_0x52bc7a,_0xe26072)=>_0x52bc7a-_0xe26072),_0x16b15e['reverse']();for(const _0xdd46e3 of _0x16b15e)if(_0xdd46e3<_0x138639)return _0xdd46e3;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1aabd4,_0x18a788){const _0x1cc139=Array[_0x56b9('0x98')](_0x18a788[_0x56b9('0x80')])[_0x56b9('0x99')](([_0x1697ff,_0x135920])=>[_0x1697ff,this[_0x56b9('0x63')](_0x135920,_0x1aabd4)]);_0x1aabd4['markers']=new Map(_0x1cc139);}['_transformMarkers'](_0x1f3984){for(const _0x2c5b97 of this[_0x56b9('0x1b')][_0x56b9('0x88')]()){const _0x5c2ac5=_0x2c5b97[_0x56b9('0x21')](_0x1f3984),_0xec7362=_0x366d5d[_0x56b9('0x2')](_0x5c2ac5);_0x2c5b97[_0x56b9('0xcf')]=_0xec7362[_0x56b9('0xcf')],_0x2c5b97[_0x56b9('0xa9')]=_0xec7362[_0x56b9('0xa9')];}}['_handleOperation'](_0x90d229,_0x548e52){if('addRoot'==_0x90d229[_0x56b9('0xe4')]||_0x56b9('0xb4')==_0x90d229['type'])return void this[_0x56b9('0xc8')](_0x90d229,_0x548e52);if(_0x56b9('0x78')==_0x90d229[_0x56b9('0xe4')]){const _0xe8f327=_0x90d229[_0x56b9('0xca')][_0x56b9('0x4b')][_0x56b9('0x8e')];this[_0x56b9('0x7e')][_0x56b9('0x39')](_0xe8f327)||(this[_0x56b9('0x7e')][_0x56b9('0x22')](_0xe8f327,G(_0xe8f327,!0x0)),this[_0x56b9('0x31')][_0x56b9('0x22')](_0xe8f327,{}),_0x548e52&&this['_idsRoots']['set'](_0xe8f327,G(_0xe8f327,!0x0)));}else{if(_0x56b9('0xbe')==_0x90d229[_0x56b9('0xe4')]||_0x56b9('0xaa')==_0x90d229[_0x56b9('0xe4')]||_0x56b9('0xdf')==_0x90d229[_0x56b9('0xe4')])return void this[_0x56b9('0xef')](_0x90d229);}const _0x34bad7=this[_0x56b9('0x5f')](_0x90d229,this[_0x56b9('0x7e')]);if(_0x56b9('0x66')!==_0x90d229[_0x56b9('0xe4')]&&(_0x34bad7[_0x56b9('0xbc')](),this[_0x56b9('0x35')](_0x34bad7)),_0x548e52)switch(_0x34bad7[_0x56b9('0xe4')]){case _0x56b9('0x78'):this[_0x56b9('0x50')](_0x90d229);break;case _0x56b9('0xcb'):case _0x56b9('0x6b'):case _0x56b9('0x43'):this[_0x56b9('0xea')](_0x90d229);break;case _0x56b9('0xff'):this['_handleMergeOperation'](_0x90d229);break;case _0x56b9('0xa3'):this[_0x56b9('0xa8')](_0x90d229);break;case _0x56b9('0x66'):this[_0x56b9('0xc3')](_0x90d229);}}[_0x56b9('0x5f')](_0x3e5892,_0x3cd535){const _0x5ece97=_0x3e5892[_0x56b9('0xd0')]();return _0x5ece97[_0x56b9('0x3')]=_0x3e5892['_authorId'],this[_0x56b9('0xf3')](_0x5ece97,_0x3cd535),_0x5ece97;}[_0x56b9('0x71')](_0x60fff4){return _0x60fff4[_0x56b9('0x99')](_0xc82d9d=>{const _0x4dcd5c=this[_0x56b9('0x9f')](_0xc82d9d);return Number(_0xc82d9d['item'][_0x56b9('0xf6')](_0x4dcd5c));});}['_generateTape'](_0x4b43b7,_0x216ba0){if(_0x4b43b7['is'](_0x56b9('0xda'),_0x56b9('0x9')))_0x216ba0[_0x56b9('0x96')]({'item':_0x4b43b7,'type':_0x56b9('0xa0')});else{_0x4b43b7['is'](_0x56b9('0xda'))&&_0x216ba0['push']({'item':_0x4b43b7,'type':_0x56b9('0x49')});for(const _0x4314ff of _0x4b43b7['getChildren']())this[_0x56b9('0xc2')](_0x4314ff,_0x216ba0);_0x4b43b7['is'](_0x56b9('0xda'))&&_0x216ba0[_0x56b9('0x96')]({'item':_0x4b43b7,'type':_0x56b9('0x55')});}return _0x216ba0;}['_getState'](){const _0x529f18=new Map(this[_0x56b9('0xe')]),_0x46f559=new Map(_0x529f18),_0x516463=new Map(),_0x4ce53a={'insertions':{},'deletions':{}},_0x1bd6c8={'insertions':{},'deletions':{}},_0x203863=new Map(),_0x17db80=new Set([...this[_0x56b9('0xab')]['keys'](),...this[_0x56b9('0x7e')][_0x56b9('0x7d')]()]);_0x17db80[_0x56b9('0x52')](_0x56b9('0x2a'));for(const _0x370452 of _0x17db80){const _0x5d461b=this['_diffRoots']['get'](_0x370452)||G(_0x370452,!0x1),_0x4066eb=this[_0x56b9('0xab')]['get'](_0x370452)||G(_0x370452,!0x1);_0x5d461b['isAttached']()||_0x4066eb['isAttached']()?(_0x4ce53a['insertions'][_0x370452]=q(_0x5d461b),_0x4ce53a[_0x56b9('0xfb')][_0x370452]=q(_0x4066eb),this[_0x56b9('0x13')](_0x4ce53a[_0x56b9('0xfb')][_0x370452],_0x4066eb),this[_0x56b9('0x13')](_0x4ce53a[_0x56b9('0x94')][_0x370452],_0x5d461b),_0x1bd6c8[_0x56b9('0x94')][_0x370452]=this['_generateTape'](this[_0x56b9('0x54')][_0x56b9('0x46')](_0x370452),[]),_0x1bd6c8[_0x56b9('0xfb')][_0x370452]=this[_0x56b9('0xc2')](this[_0x56b9('0x5')][_0x56b9('0x46')](_0x370452)||G(_0x370452,!0x1),[])):_0x17db80[_0x56b9('0x52')](_0x370452);}for(const _0x321f21 of _0x17db80){const _0x201d06=_0x1bd6c8[_0x56b9('0x94')][_0x321f21];for(const _0xf5cb6f of _0x201d06){const _0x14746d=this['_getVidAttributeName'](_0xf5cb6f),_0x29a1bd=_0xf5cb6f[_0x56b9('0xd2')][_0x56b9('0xf6')](_0x14746d);_0x46f559['delete'](_0x29a1bd),_0x29a1bd>=this['_startingRevisionId']&&_0x516463[_0x56b9('0x22')](_0x29a1bd,_0x529f18['get'](_0x29a1bd));}}for(const _0x5365ee of _0x17db80){const _0x373046=_0x1bd6c8[_0x56b9('0x94')][_0x5365ee],_0xb1fdfd=this['_getBaseVids'](_0x1bd6c8['deletions'][_0x5365ee]);let _0x5f3635=0x0;for(const _0x22d8a2 of _0x373046){const _0x1cf005=this[_0x56b9('0x9f')](_0x22d8a2),_0x77d4bb=_0x22d8a2[_0x56b9('0xd2')]['getAttribute'](_0x1cf005);if(!_0x516463[_0x56b9('0x39')](_0x77d4bb)&&!_0x203863[_0x56b9('0x39')](_0x77d4bb)){if(_0x46f559[_0x56b9('0x39')](_0x77d4bb))_0x5f3635++;else{if(_0x77d4bb!=_0xb1fdfd[_0x5f3635]){const _0x257172=_0x529f18[_0x56b9('0x46')](_0x77d4bb)||_0x529f18[_0x56b9('0x46')](_0xb1fdfd[_0x5f3635]);for(;_0x77d4bb!=_0xb1fdfd[_0x5f3635];)_0x46f559[_0x56b9('0x39')](_0xb1fdfd[_0x5f3635])||(_0x203863[_0x56b9('0x22')](_0xb1fdfd[_0x5f3635],_0x257172),_0x529f18['set'](_0xb1fdfd[_0x5f3635],_0x257172)),_0x5f3635++;}_0x5f3635++;}}}}for(const _0x589a1b of _0x17db80){const _0xe9eb2c=_0x1bd6c8[_0x56b9('0x94')][_0x589a1b];for(const _0x2f9be1 of _0xe9eb2c){const _0x385731=this['_getVidAttributeName'](_0x2f9be1),_0x3e13e7=_0x2f9be1[_0x56b9('0xd2')][_0x56b9('0xf6')](_0x385731);if(_0x203863[_0x56b9('0x39')](_0x3e13e7)){const _0x14c66b=_0x203863[_0x56b9('0x46')](_0x3e13e7);_0x46f559[_0x56b9('0x39')](_0x3e13e7)||_0x46f559[_0x56b9('0x22')](_0x3e13e7,{..._0x14c66b}),_0x516463[_0x56b9('0x22')](_0x3e13e7,{..._0x14c66b});}}}for(const _0x2d34e4 of _0x46f559['keys']())_0x2d34e4>=this[_0x56b9('0x14')]&&_0x46f559[_0x56b9('0x52')](_0x2d34e4);const _0x51ff5f=new Map();for(const _0x462216 of _0x17db80){let _0x3043cf=_0x1bd6c8['insertions'][_0x462216];for(const _0x6f74bf of _0x3043cf)if(_0x6f74bf[_0x56b9('0xd2')]['is']('element',_0x56b9('0xae'))){const _0x1d8959=this[_0x56b9('0x9f')](_0x6f74bf),_0x1b8715=_0x6f74bf['item'][_0x56b9('0xf6')](_0x1d8959);if(_0x516463[_0x56b9('0x39')](_0x1b8715)){const _0x443fe1=_0x6f74bf['item']['parent']['parent'][_0x56b9('0xf6')](_0x56b9('0xd3')),_0x37d8ab=_0x51ff5f[_0x56b9('0x46')](_0x443fe1)||new Set();_0x37d8ab[_0x56b9('0x2d')](_0x516463[_0x56b9('0x46')](_0x1b8715)[_0x56b9('0xb1')]),_0x51ff5f[_0x56b9('0x22')](_0x443fe1,_0x37d8ab);}}_0x3043cf=_0x1bd6c8[_0x56b9('0xfb')][_0x462216];for(const _0x4b2ea4 of _0x3043cf)if(_0x4b2ea4['item']['is']('element',_0x56b9('0xae'))){const _0x4ef0b3=this['_getVidAttributeName'](_0x4b2ea4),_0x30a85a=_0x4b2ea4['item'][_0x56b9('0xf6')](_0x4ef0b3);if(_0x46f559[_0x56b9('0x39')](_0x30a85a)){const _0x2789c5=_0x4b2ea4[_0x56b9('0xd2')][_0x56b9('0x5a')][_0x56b9('0x5a')][_0x56b9('0xf6')](_0x56b9('0xd3')),_0x494a16=_0x51ff5f[_0x56b9('0x46')](_0x2789c5)||new Set();_0x494a16['add'](_0x46f559[_0x56b9('0x46')](_0x30a85a)[_0x56b9('0xb1')]),_0x51ff5f[_0x56b9('0x22')](_0x2789c5,_0x494a16);}}for(const _0x17bdd0 of _0x51ff5f[_0x56b9('0x7d')]())(_0x516463[_0x56b9('0x39')](_0x17bdd0)||_0x46f559['has'](_0x17bdd0))&&_0x51ff5f[_0x56b9('0x52')](_0x17bdd0);}for(const _0x30f778 of _0x17db80){const _0x21749c=_0x1bd6c8[_0x56b9('0x94')][_0x30f778];let _0xccbf2c=null,_0x3d129f=null;for(const _0x1fe377 of _0x21749c){const _0x355b43=this[_0x56b9('0x9f')](_0x1fe377),_0x25e405=_0x1fe377[_0x56b9('0xd2')]['getAttribute'](_0x355b43),_0x7dd899=_0x51ff5f[_0x56b9('0x46')](_0x25e405);_0x7dd899&&_0x56b9('0x49')==_0x1fe377[_0x56b9('0xe4')]&&(_0xccbf2c=Array[_0x56b9('0x98')](_0x7dd899)[0x0],_0x3d129f=_0x1fe377[_0x56b9('0xd2')]['getAttribute'](_0x56b9('0x76'))),_0xccbf2c&&(_0x46f559[_0x56b9('0x22')](_0x25e405,{'userId':_0xccbf2c}),_0x516463[_0x56b9('0x22')](_0x25e405,{'userId':_0xccbf2c})),_0x25e405==_0x3d129f&&(_0xccbf2c=null,_0x3d129f=null);}}const _0x58919d={},_0x5f55fd=new Set();for(const _0x57bcb9 of _0x17db80){const _0x21e8cb=_0x4ce53a[_0x56b9('0xfb')][_0x57bcb9],_0x24012b=_0x4ce53a[_0x56b9('0x94')][_0x57bcb9];for(const {userId:_0x331ce9}of this[_0x56b9('0x18')][_0x56b9('0x88')]())null!==_0x331ce9&&_0x5f55fd[_0x56b9('0x2d')](_0x331ce9);for(const {userId:_0x36be0d}of this['_touchedRoots'][_0x56b9('0x88')]())null!==_0x36be0d&&_0x5f55fd[_0x56b9('0x2d')](_0x36be0d);this[_0x56b9('0x3c')](_0x24012b,_0x1bd6c8[_0x56b9('0x94')][_0x57bcb9],_0x516463,_0x56b9('0x48'),_0x5f55fd),this[_0x56b9('0x3c')](_0x21e8cb,_0x1bd6c8[_0x56b9('0xfb')][_0x57bcb9],_0x46f559,_0x56b9('0x4f'),_0x5f55fd),_0x58919d[_0x57bcb9]={'insertions':this['_prepareViewToSave'](_0x24012b),'deletions':this[_0x56b9('0xed')](_0x21e8cb),'attachChange':this['_touchedRoots'][_0x56b9('0x46')](_0x57bcb9)||null,'attributesBefore':_0x558724(this['_baseRootsAttributes'][_0x56b9('0x46')](_0x57bcb9))||{},'attributesAfter':_0x558724(this['_diffRootsAttributes']['get'](_0x57bcb9))};}return{'diffData':_0x58919d,'authorsIds':Array[_0x56b9('0x98')](_0x5f55fd)};}[_0x56b9('0x8c')](_0x56d650){for(const [,_0x2f78de]of _0x56d650['markers']){const _0x324620=_0x2f78de[_0x56b9('0xcf')][_0x56b9('0x74')]()['filter'](_0x47934e=>'tableCell'==_0x47934e[_0x56b9('0xf8')]);for(const _0x4d7436 of _0x324620)0x1==_0x4d7436[_0x56b9('0x12')]&&_0x4d7436[_0x56b9('0xd6')](0x0)['is'](_0x56b9('0xda'),_0x56b9('0x64'))&&_0x4d7436[_0x56b9('0xd6')](0x0)[_0x56b9('0x34')](_0x56b9('0xa5'),!0x0);}}[_0x56b9('0xed')](_0x176355){this['_processRootBeforeSave'](_0x176355);const _0x141de3=this[_0x56b9('0x17')]['data'][_0x56b9('0x7b')](_0x176355,{}),_0x27e7f0=Array[_0x56b9('0x98')](_0x141de3[_0x56b9('0x102')]())[_0x56b9('0x99')](_0x1e7a5e=>this[_0x56b9('0x103')](_0x1e7a5e));return JSON['stringify'](_0x27e7f0);}[_0x56b9('0x103')](_0x172f84){if(_0x172f84['is'](_0x56b9('0x9')))return _0x172f84[_0x56b9('0x81')];{const _0x3528ae=_0x172f84;return{'type':Object[_0x56b9('0x7d')](B)[_0x56b9('0x1')](_0x668358=>_0x172f84 instanceof B[_0x668358]),'name':_0x3528ae[_0x56b9('0xf8')],'attributes':Array[_0x56b9('0x98')](_0x3528ae[_0x56b9('0x93')]()),'children':Array['from'](_0x3528ae[_0x56b9('0x102')]())[_0x56b9('0x99')](_0x560e35=>this[_0x56b9('0x103')](_0x560e35))};}}[_0x56b9('0x3c')](_0x3edac4,_0x92ffc8,_0x28f4c1,_0x57979b,_0x1b2184){let _0x391ebf=null,_0xfd720d=null,_0x449aa8=0x0;const _0xa45ccc=this[_0x56b9('0x17')][_0x56b9('0x69')];for(let _0x6173b1=0x0;_0x6173b1<_0x92ffc8[_0x56b9('0x8d')];_0x6173b1++){const _0xc9b932=this['_getVidAttributeName'](_0x92ffc8[_0x6173b1]),_0x19e142=_0x92ffc8[_0x6173b1][_0x56b9('0xd2')][_0x56b9('0xf6')](_0xc9b932),_0x43003d=_0x28f4c1[_0x56b9('0x46')](_0x19e142),_0x3b141c=_0x6173b1==_0x92ffc8['length']-0x1;(!_0x391ebf&&_0x43003d&&(_0x391ebf=_0x43003d,_0xfd720d=_0x92ffc8[_0x6173b1]),_0x391ebf&&(!_0x43003d||_0x43003d['userId']!=_0x391ebf['userId']))&&(_0x1cf32c(_0x43003d,L(_0xfd720d,_0x3edac4,_0xa45ccc),L(_0x92ffc8[_0x6173b1],_0x3edac4,_0xa45ccc)),_0x391ebf=_0x43003d||null,_0xfd720d=_0x43003d?_0x92ffc8[_0x6173b1]:null),_0x391ebf&&_0x3b141c&&_0x1cf32c(_0x43003d,L(_0xfd720d,_0x3edac4,_0xa45ccc),W(_0x92ffc8[_0x6173b1],_0x3edac4,_0xa45ccc));}function _0x1cf32c(_0x208c08,_0x570347,_0x449080){const _0x3e58b8=_0x391ebf[_0x56b9('0xb1')],_0x21fe47=_0x56b9('0x97')+_0x57979b+':'+_0x3e58b8+':'+_0x449aa8++,_0x3b9996=_0xa45ccc[_0x56b9('0xc9')](_0x570347,_0x449080);_0x3edac4['markers'][_0x56b9('0x22')](_0x21fe47,_0x3b9996),null!==_0x3e58b8&&_0x1b2184['add'](_0x3e58b8);}}['_getVidAttributeName'](_0x310584){switch(_0x310584[_0x56b9('0xe4')]){case _0x56b9('0x49'):return _0x56b9('0xd3');case _0x56b9('0x55'):return _0x56b9('0x76');default:return _0x56b9('0x79');}}[_0x56b9('0xf3')](_0x6e7eac,_0x3d7141){_0x6e7eac[_0x56b9('0xfa')]=null;for(const _0x3d71e0 in _0x6e7eac){const _0x15daf4=_0x6e7eac[_0x3d71e0];if(_0x15daf4 instanceof _0x295c36){const _0x2ebaf6=_0x3d7141[_0x56b9('0x46')](_0x15daf4[_0x56b9('0x4b')][_0x56b9('0x8e')]);_0x6e7eac[_0x3d71e0]=this['_fixPosition'](_0x15daf4,_0x2ebaf6);}if(_0x15daf4 instanceof _0x366d5d){const _0x1de220=_0x3d7141[_0x56b9('0x46')](_0x15daf4[_0x56b9('0x4b')][_0x56b9('0x8e')]);_0x6e7eac[_0x3d71e0]=this['_fixRange'](_0x15daf4,_0x1de220);}_0x56b9('0x4b')===_0x3d71e0&&(_0x6e7eac[_0x56b9('0x4b')]=_0x3d7141[_0x56b9('0x46')](_0x6e7eac[_0x56b9('0x4b')][_0x56b9('0x8e')]));}}[_0x56b9('0x63')](_0x103be8,_0x30ccc9){return this[_0x56b9('0x17')][_0x56b9('0x69')][_0x56b9('0xc9')](this['_fixPosition'](_0x103be8[_0x56b9('0xcf')],_0x30ccc9),this['_fixPosition'](_0x103be8[_0x56b9('0xa9')],_0x30ccc9));}[_0x56b9('0xeb')](_0x1c694d,_0x738c97){return this[_0x56b9('0x17')]['model'][_0x56b9('0x51')](_0x738c97,_0x1c694d[_0x56b9('0x4')],_0x1c694d[_0x56b9('0x62')]);}[_0x56b9('0x50')](_0x158442){const _0x1b7fde=this[_0x56b9('0x54')][_0x56b9('0x46')](_0x158442[_0x56b9('0xca')][_0x56b9('0x4b')][_0x56b9('0x8e')]),_0x53720f=this[_0x56b9('0xeb')](_0x158442['position'],_0x1b7fde),_0x395cf2=null===_0x158442[_0x56b9('0x3')]?null:_0x158442['_authorId']||this[_0x56b9('0x17')][_0x56b9('0xc4')][_0x56b9('0x46')](_0x56b9('0x6c'))['me']['id'],_0x5b2a24=_0x53720f[_0x56b9('0x5a')],_0x12f320=this['_revisionId'],_0x3b7b7e=[];for(const _0x2bdbbd of _0x158442[_0x56b9('0xdc')])if(_0x2bdbbd['is']('element'))_0x3b7b7e[_0x56b9('0x96')](this[_0x56b9('0x9c')](_0x2bdbbd));else for(let _0x41cb52=0x0;_0x41cb52<_0x2bdbbd['offsetSize'];_0x41cb52++)_0x3b7b7e[_0x56b9('0x96')](new _0x547c6b('$text',{'vid':this[_0x56b9('0x2b')]++}));const _0x5f15e2=this[_0x56b9('0x2b')];for(let _0x4c9668=_0x12f320;_0x4c9668<_0x5f15e2;_0x4c9668++)this['_touched']['set'](_0x4c9668,{'userId':_0x395cf2});_0x5b2a24[_0x56b9('0xb')](_0x53720f[_0x56b9('0x28')],_0x3b7b7e);}['_handleMoveOperation'](_0x180e38){(_0x180e38=this[_0x56b9('0x5f')](_0x180e38,this[_0x56b9('0x54')]))[_0x56b9('0xbc')]();const _0x532a51=null===_0x180e38['_authorId']?null:_0x180e38[_0x56b9('0x3')]||this['editor'][_0x56b9('0xc4')][_0x56b9('0x46')](_0x56b9('0x6c'))['me']['id'],_0x36b41a=_0x180e38[_0x56b9('0x73')](),_0x4ed7b4=_0x36b41a[_0x56b9('0x5a')],_0x21dad8=_0x36b41a[_0x56b9('0x28')];!function _0x18d7bf(_0x2f100f,_0x38f6ee,_0xee901f,_0x44b2b9){for(let _0x2a5e22=_0xee901f;_0x2a5e22<_0x44b2b9;_0x2a5e22++){const _0x4542b0=_0x38f6ee[_0x56b9('0xd6')](_0x2a5e22);_0x4542b0['is'](_0x56b9('0xda'),_0x56b9('0x9'))?_0x2f100f[_0x56b9('0x22')](_0x4542b0[_0x56b9('0xf6')](_0x56b9('0x79')),{'userId':_0x532a51}):(_0x2f100f[_0x56b9('0x22')](_0x4542b0[_0x56b9('0xf6')](_0x56b9('0xd3')),{'userId':_0x532a51}),_0x18d7bf(_0x2f100f,_0x4542b0,0x0,_0x4542b0[_0x56b9('0x12')]),_0x2f100f[_0x56b9('0x22')](_0x4542b0['getAttribute']('vid_end'),{'userId':_0x532a51}));}}(this[_0x56b9('0xe')],_0x4ed7b4,_0x21dad8,_0x21dad8+_0x180e38[_0x56b9('0xbd')]);}[_0x56b9('0x4a')](_0x3deace){const _0x56c39d=null===(_0x3deace=this['_cloneOperation'](_0x3deace,this[_0x56b9('0x54')]))[_0x56b9('0x3')]?null:_0x3deace[_0x56b9('0x3')]||this[_0x56b9('0x17')][_0x56b9('0xc4')]['get'](_0x56b9('0x6c'))['me']['id'],_0x5430ed=_0x3deace[_0x56b9('0x7c')]['parent'],_0x257605=_0x3deace[_0x56b9('0xbb')][_0x56b9('0x5a')],_0x398ff7=_0x5430ed[_0x56b9('0xf6')]('vid_end'),_0x324f20=_0x257605[_0x56b9('0xf6')](_0x56b9('0xd3'));_0x5430ed['_setAttribute'](_0x56b9('0x76'),_0x257605[_0x56b9('0xf6')](_0x56b9('0x76'))),_0x257605['_setAttribute']('vid_end',_0x398ff7),this[_0x56b9('0xe')]['set'](_0x324f20,{'userId':_0x56c39d}),this[_0x56b9('0xe')]['set'](_0x398ff7,{'userId':_0x56c39d}),_0x3deace['_execute']();}[_0x56b9('0xa8')](_0x201419){const _0x16b3c=null===(_0x201419=this[_0x56b9('0x5f')](_0x201419,this['_idsRoots']))[_0x56b9('0x3')]?null:_0x201419[_0x56b9('0x3')]||this[_0x56b9('0x17')][_0x56b9('0xc4')][_0x56b9('0x46')](_0x56b9('0x6c'))['me']['id'],_0x1720e2=_0x201419[_0x56b9('0x4c')],_0x415de6=_0x201419[_0x56b9('0x2e')][_0x56b9('0x5a')];_0x201419[_0x56b9('0xbc')]();const _0x359912=_0x415de6[_0x56b9('0xf6')](_0x56b9('0x76')),_0x5b98af=_0x201419['insertionPosition'][_0x56b9('0xf5')];if(_0x1720e2){const _0x1e3ac1=_0x5b98af['getAttribute'](_0x56b9('0x76')),_0x5683ea=_0x415de6[_0x56b9('0xf6')](_0x56b9('0x76'));_0x415de6[_0x56b9('0x34')](_0x56b9('0x76'),_0x1e3ac1),_0x5b98af[_0x56b9('0x34')](_0x56b9('0x76'),_0x5683ea),this[_0x56b9('0xe')][_0x56b9('0x22')](_0x415de6[_0x56b9('0xf6')](_0x56b9('0x76')),{'userId':_0x16b3c}),this['_touched']['set'](_0x5b98af[_0x56b9('0xf6')](_0x56b9('0xd3')),{'userId':_0x16b3c});}else{const _0x3addfd=this[_0x56b9('0x2b')]++,_0xf7a659=this['_revisionId']++;_0x415de6[_0x56b9('0x34')]('vid_end',_0x3addfd),_0x5b98af[_0x56b9('0x34')]('vid_start',_0xf7a659),_0x5b98af['_setAttribute']('vid_end',_0x359912),this['_touched'][_0x56b9('0x22')](_0x3addfd,{'userId':_0x16b3c}),this[_0x56b9('0xe')][_0x56b9('0x22')](_0xf7a659,{'userId':_0x16b3c});}}[_0x56b9('0xc3')](_0x103c0c){if(!_0x103c0c[_0x56b9('0x106')])return;const _0xda3c79=(_0x103c0c=this[_0x56b9('0x5f')](_0x103c0c,this[_0x56b9('0x7e')]))[_0x56b9('0xd1')]?_0x103c0c['oldRange']['root']:null,_0x5cc9d4=_0x103c0c[_0x56b9('0x9d')]?_0x103c0c[_0x56b9('0x9d')][_0x56b9('0x4b')]:null;_0xda3c79&&this['_markers'][_0x56b9('0x52')](_0x103c0c[_0x56b9('0xf8')]),_0x5cc9d4&&this[_0x56b9('0x1b')]['set'](_0x103c0c[_0x56b9('0xf8')],_0x103c0c[_0x56b9('0x9d')][_0x56b9('0xd0')]());const _0x228857=null===_0x103c0c[_0x56b9('0x3')]?null:_0x103c0c[_0x56b9('0x3')]||this[_0x56b9('0x17')][_0x56b9('0xc4')][_0x56b9('0x46')]('Users')['me']['id'],_0x4fe708=_0x103c0c[_0x56b9('0xf8')];if(!this[_0x56b9('0x18')][_0x56b9('0x39')](_0x4fe708))return void this[_0x56b9('0x18')][_0x56b9('0x22')](_0x4fe708,{'range':_0x103c0c['oldRange'],'userId':_0x228857});const _0x2bf092=this[_0x56b9('0x18')]['get'](_0x4fe708),_0x2705b1=_0x2bf092[_0x56b9('0xcc')],_0x24c528=_0x103c0c[_0x56b9('0x9d')];null==_0x2705b1&&null==_0x24c528||_0x2705b1&&_0x24c528&&_0x2705b1[_0x56b9('0xa6')](_0x24c528)?this[_0x56b9('0x18')][_0x56b9('0x52')](_0x103c0c[_0x56b9('0xf8')]):_0x2bf092[_0x56b9('0xb1')]=_0x228857;}['_handleRootOperation'](_0x58f60b,_0xfa98c8){this[_0x56b9('0x7e')][_0x56b9('0x39')](_0x58f60b['rootName'])?this['_diffRoots']['get'](_0x58f60b[_0x56b9('0x8e')])[_0x56b9('0xdb')]=_0x58f60b[_0x56b9('0x41')]:(this[_0x56b9('0x7e')][_0x56b9('0x22')](_0x58f60b[_0x56b9('0x8e')],G(_0x58f60b[_0x56b9('0x8e')],!0x0)),this['_diffRootsAttributes'][_0x56b9('0x22')](_0x58f60b[_0x56b9('0x8e')],{}),_0xfa98c8&&this[_0x56b9('0x54')][_0x56b9('0x22')](_0x58f60b[_0x56b9('0x8e')],G(_0x58f60b['rootName'],!0x0)));const _0x137eac=null===_0x58f60b[_0x56b9('0x3')]?null:_0x58f60b[_0x56b9('0x3')]||this[_0x56b9('0x17')]['plugins'][_0x56b9('0x46')]('Users')['me']['id'],_0x5dee30=this['_touchedRoots']['get'](_0x58f60b['rootName']);_0x5dee30&&_0x5dee30[_0x56b9('0xb1')]===_0x137eac?this[_0x56b9('0x95')][_0x56b9('0x52')](_0x58f60b[_0x56b9('0x8e')]):this[_0x56b9('0x95')][_0x56b9('0x22')](_0x58f60b[_0x56b9('0x8e')],{'userId':_0x137eac,'isAttached':_0x58f60b[_0x56b9('0x41')]});}[_0x56b9('0xef')](_0x5c6c45){const _0x5a484b=this['_diffRootsAttributes']['get'](_0x5c6c45[_0x56b9('0x4b')][_0x56b9('0x8e')]);null===_0x5c6c45[_0x56b9('0x1d')]?delete _0x5a484b[_0x5c6c45[_0x56b9('0xc6')]]:_0x5a484b[_0x5c6c45[_0x56b9('0xc6')]]=_0x5c6c45[_0x56b9('0x1d')];}}function q(_0x5c0e65){const _0x330b9e=G(_0x5c0e65[_0x56b9('0x8e')],_0x5c0e65['isAttached']());for(const _0x301c63 of _0x5c0e65['getChildren']()){const _0x5e15d8=_0x301c63[_0x56b9('0x44')](!0x0);_0x330b9e['_appendChild'](_0x5e15d8);}return _0x330b9e;}function G(_0x4c6c24,_0xdeb863=!0x0){const _0x11e97e=new _0x2e92e7();return _0x11e97e[_0x56b9('0x8e')]=_0x4c6c24,_0x11e97e[_0x56b9('0xdb')]=_0xdeb863,_0x11e97e[_0x56b9('0xbf')]=()=>_0x11e97e[_0x56b9('0xdb')],_0x11e97e;}function L(_0x20df61,_0x316cf9,_0x398239){const _0xd5a6e3='elementEnd'==_0x20df61[_0x56b9('0xe4')]?_0x398239[_0x56b9('0xcd')](_0x20df61[_0x56b9('0xd2')],_0x56b9('0xa9')):_0x398239['createPositionBefore'](_0x20df61[_0x56b9('0xd2')]);return _0x398239[_0x56b9('0x51')](_0x316cf9,_0xd5a6e3['path'],_0xd5a6e3[_0x56b9('0x62')]);}function W(_0x272561,_0x8b75ee,_0x47d9b8){const _0x5db2a0=_0x56b9('0x49')==_0x272561[_0x56b9('0xe4')]?_0x47d9b8[_0x56b9('0xcd')](_0x272561[_0x56b9('0xd2')],0x0):_0x47d9b8[_0x56b9('0x10')](_0x272561[_0x56b9('0xd2')]);return _0x47d9b8['createPositionFromPath'](_0x8b75ee,_0x5db2a0[_0x56b9('0x4')],_0x5db2a0[_0x56b9('0x62')]);}
|
|
23
|
+
const _0x1d88=['_diffRoots','config','_idsRoots','root','_handleInsertOperation','_generateTape','getLatestVersion','_savedMetaData','sourcePosition','getAncestors','_markChanges','deletions','_handleOperation','string','$text','_baseIdsRoots','_initialRevisionId','_bufferUpdate','_baseRootsAttributes','_handleMergeOperation','revision-end','delete','find','insertions','isAdd','editing','_authorId','default','getChild','_isInit','conversion','getRevisionDocumentData','nodeAfter','move','fromVersion','data','_prepareViewToSave','attributesAfter','document','_removePendingAction','_getFromVersion','attributes','saveRevision','changeRootAttribute','adapter','get','end','roots','howMany','ready','useFillerType','_clone','size','_bufferedUpdates','toVersion','newValue','_makeModelFromViewString','history','createPositionBefore','_transformMarkers','detachRoot','repository','offset','_fixPosition','$graveyard','baseVersion','deletion','updateRevisions','_makeIdsRoot','_handleRootAttributeOperation','model','start','stickiness','getRootNames','toModel','isEnabled','stringify','_removeMetaData','getCurrentRevisionId','plugins','getAttributes','NEGATIVE_INFINITY','_getPreviousFrom','keepParagraph','isEqual','_getViewJson','element','revision','_fixOperation','_execute','_baseRoots','markers','init','split','_setAttribute','_createInitialRevision','vid','_isPendingUpdate','_isAttached','createRevision','_touched','_lastTo','reverse','childCount','then','_appendChild','getWalker','elementEnd','insertion','_findInsertionIndex','_touchedMarkers','insert','_operations','_removeRevisionMarkers','tableCell','locale','processor','getIndex','view','collaboration.channelId','_lastFrom','merge','_loadState','vid_end','attachChange','_insertChild','elementStart','map','has','add','sort','_makeRevision','oldRange','_revisionId','slice','finally','rootName','key','_applyOperations','createRange','_addPendingAction','path','dataToMarker','define','getMovedRangeStart','_saveMetaData','_replaceEditorDataWithRevisionData','dataDowncast','getRoot','currentRevision','getChildren','splitPosition','addRootAttribute','revisionHistory.resumeUnsavedRevision','offsetSize','afterInit','set','editor-initial-data-replaced-with-revision-data','_getVidAttributeName','_source','authorsIds','Users','nodes','initial','authors','some','graveyardPosition','_getState','startsWith','marker','_reset','filter','range','type','_markers','addRevisionData','text','markerToData','revision:','item','_calculateMetaData','getAttribute','_revisionDataBuilder','buildRevisionData','creator','_handleSplitOperation','_diffRootsAttributes','trim','fromEntries','requires','getRevisions','_setConversion','parent','source','_continueCurrentRevision','getUser','_startingVersion','_copyMarkers','clear','_handleMoveOperation','creatorId','length','position','from','loadState','remove','pluginName','addRevision','shift','addRoot','max','getRange','push','_createCurrentRevision','insertionPosition','reInit','_getBaseVids','createRangeIn','createdAt','Initial\x20revision','createPositionFromPath','forEach','RevisionsRepository','_pendingAction','previousPosition','_touchedRoots','values','resolve','isAttached','_loadedStateData','version','for','diffData','_handleMarkerOperation','_fixRange','data-revision-','createPositionAt','setRevisionData','keys','userId','getOperation','attributesBefore','clone','editor','_loadRevisionData','PendingActions','_cloneOperation','sendBufferedUpdates','getData','children','vid_start','getNodeByPath','name','RevisionTracker','parse','update','_startingRevisionId','upcast','getRevision','_handleRootOperation','newRange','_update','getRevisionRootsAttributes'];(function(_0x1552af,_0x1d8875){const _0x2df0b9=function(_0x542142){while(--_0x542142){_0x1552af['push'](_0x1552af['shift']());}};_0x2df0b9(++_0x1d8875);}(_0x1d88,0xbd));const _0x2df0=function(_0x1552af,_0x1d8875){_0x1552af=_0x1552af-0x0;let _0x2df0b9=_0x1d88[_0x1552af];return _0x2df0b9;};import{Users as _0x529845}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x3476c8,PendingActions as _0x5322a1}from'ckeditor5/src/core';import{logWarning as _0x5ae175,uid as _0x15e12a}from'ckeditor5/src/utils';import{Position as _0x526c47,Range as _0x33e6e5,Element as _0x772d8e,DocumentFragment as _0x55a33d,ViewText as _0x270442,ViewElement as _0x5976af,ViewContainerElement as _0x11bc13,ViewAttributeElement as _0x162538,ViewEmptyElement as _0x6003f4,ViewRawElement as _0x38eb1f,ViewUIElement as _0x229107,ViewDocumentFragment as _0x305f0e}from'ckeditor5/src/engine';import _0x3ac29a from'./revisionsrepository';import{getTranslation as _0x5e4f09}from'./utils/common-translations';import{cloneDeep as _0xb6b1d8,isEqual as _0x442f2f}from'lodash-es';const B={'c':_0x11bc13,'a':_0x162538,'e':_0x6003f4,'r':_0x38eb1f,'u':_0x229107};export default class l extends _0x3476c8{static get[_0x2df0('0x11')](){return _0x2df0('0x40');}static get[_0x2df0('0x0')](){return[_0x529845,_0x3ac29a,_0x5322a1];}constructor(_0x5758b9){super(_0x5758b9),this[_0x2df0('0x76')]=null,this[_0x2df0('0xdf')]=null,this[_0x2df0('0x100')]=new H(this[_0x2df0('0x36')]),this['_initialRevisionId']=this[_0x2df0('0x36')][_0x2df0('0x4b')][_0x2df0('0x77')](_0x2df0('0xc1'))||_0x2df0('0xed'),this['_bufferedUpdates']=new Map(),this[_0x2df0('0x28')]=null;const _0x1204b0=_0x15e12a();this[_0x2df0('0xe9')]={'history':this[_0x2df0('0x36')][_0x2df0('0x90')][_0x2df0('0x70')][_0x2df0('0x83')],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document'][_0x2df0('0x29')]),'getCurrentRevisionId':()=>_0x1204b0},this[_0x2df0('0xe6')]('isReady',!0x1),this[_0x2df0('0xe6')](_0x2df0('0x95'),!0x0),this['set']('_isPendingUpdate',!0x1),this[_0x2df0('0x36')][_0x2df0('0x4b')][_0x2df0('0xd9')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x2df0('0x36')][_0x2df0('0x68')][_0x2df0('0x2a')](_0x2df0('0x44'))[_0x2df0('0xd8')]({'view':_0x2df0('0xa1')});}[_0x2df0('0xa6')](){this['repository']=this['editor'][_0x2df0('0x99')][_0x2df0('0x77')](_0x2df0('0x21')),this[_0x2df0('0x2')](),this[_0x2df0('0x36')][_0x2df0('0x6d')]['on'](_0x2df0('0x7b'),()=>{const _0x534ef9=this[_0x2df0('0x87')][_0x2df0('0x45')](0x0),_0x35c0e0=_0x534ef9&&null===_0x534ef9[_0x2df0('0x102')]?_0x534ef9:null;if(this['_continueCurrentRevision']=!!_0x35c0e0&&this[_0x2df0('0x36')]['config'][_0x2df0('0x77')](_0x2df0('0xe3')),this[_0x2df0('0x36')]['plugins'][_0x2df0('0xca')]('RealTimeCollaborationClient')){const _0x5345e0=this['_source']['getCurrentRevisionId'](),_0x3f0a57=this['repository'][_0x2df0('0x45')](_0x5345e0);if(_0x3f0a57)this['_startingVersion']=_0x3f0a57[_0x2df0('0x6c')],this['_continueCurrentRevision']=!0x1;else{const _0x2f0f2c=this['_source'][_0x2df0('0x83')][_0x2df0('0xba')][_0x2df0('0x60')](_0x27f265=>!_0x27f265[_0x2df0('0x67')]),_0x2910eb=_0x2f0f2c?_0x2f0f2c['baseVersion']:this['_source']['history'][_0x2df0('0x29')];_0x534ef9?(_0x534ef9[_0x2df0('0x80')]<_0x2910eb&&_0x534ef9[_0x2df0('0x48')]({'toVersion':_0x2910eb}),this[_0x2df0('0x5')]?(this[_0x2df0('0xe9')][_0x2df0('0x98')]=()=>_0x35c0e0['id'],this['_startingVersion']=_0x35c0e0[_0x2df0('0x6c')]):(this[_0x2df0('0x7')]=_0x534ef9[_0x2df0('0x80')],this['_continueCurrentRevision']=!0x1)):(this[_0x2df0('0x7')]=_0x2910eb,this[_0x2df0('0x5')]=!0x1);}}else _0x35c0e0&&(this['editor'][_0x2df0('0x90')]['document'][_0x2df0('0x83')][_0x2df0('0x29')]=Math[_0x2df0('0x15')](_0x35c0e0[_0x2df0('0x80')],this[_0x2df0('0x36')][_0x2df0('0x90')][_0x2df0('0x70')][_0x2df0('0x83')][_0x2df0('0x29')]),_0x35c0e0[_0x2df0('0x6c')]===_0x35c0e0[_0x2df0('0x80')]?(0x0!==_0x35c0e0[_0x2df0('0x6c')]&&(this[_0x2df0('0xe9')][_0x2df0('0x98')]=()=>_0x35c0e0['id']),this[_0x2df0('0x5')]=!0x1):this[_0x2df0('0x5')]&&(this[_0x2df0('0xe9')]['getCurrentRevisionId']=()=>_0x35c0e0['id'],this['_startingVersion']=_0x35c0e0['fromVersion'])),this[_0x2df0('0x5')]||(this['_startingVersion']=this[_0x2df0('0x36')][_0x2df0('0x90')][_0x2df0('0x70')][_0x2df0('0x29')]);this['_revisionDataBuilder'][_0x2df0('0xa6')](this['_source'][_0x2df0('0x83')]),this[_0x2df0('0xa9')](this['_startingVersion']),this[_0x2df0('0x18')](this[_0x2df0('0x7')]),this['adapter']&&this[_0x2df0('0x3a')]();}),this['bind']('isReady')['to'](this,_0x2df0('0xab'),_0x418961=>!_0x418961);}async[_0x2df0('0xe5')](){if(this[_0x2df0('0x87')]['length']>0x0){const _0x539d13=this[_0x2df0('0x87')][_0x2df0('0x45')](0x0),_0x4cd59f=await this[_0x2df0('0x69')](_0x539d13),_0x59e92e=await this[_0x2df0('0x49')](_0x539d13);this[_0x2df0('0xdc')](_0x4cd59f,_0x59e92e);}}['setSource'](_0x3e70fd){this[_0x2df0('0xe9')]=_0x3e70fd;}async[_0x2df0('0x42')](){const _0x5878c1=await this['_source'][_0x2df0('0x50')]();if(_0x5878c1>this['currentRevision'][_0x2df0('0x80')]){await this['_loadState']();const _0x2848a5=this[_0x2df0('0x101')]({'revision':this[_0x2df0('0xdf')],'to':_0x5878c1});_0x2848a5[_0x2df0('0xee')]=_0x2848a5[_0x2df0('0xea')][_0x2df0('0xc9')](_0x46c7b0=>this[_0x2df0('0x36')][_0x2df0('0x99')][_0x2df0('0x77')](_0x2df0('0xeb'))[_0x2df0('0x6')](_0x46c7b0)),this['currentRevision'][_0x2df0('0x48')](_0x2848a5);}}async[_0x2df0('0xc4')](){this['_continueCurrentRevision']&&!this[_0x2df0('0x28')]&&(await this[_0x2df0('0x37')](this['currentRevision']),this[_0x2df0('0x100')][_0x2df0('0xf')](this[_0x2df0('0xdf')]),this[_0x2df0('0x28')]={'fromVersion':this['currentRevision'][_0x2df0('0x6c')],'authors':this['currentRevision'][_0x2df0('0xee')][_0x2df0('0xd0')]()});}async[_0x2df0('0x74')](_0x3e3b7b={},_0x25ea50=null){const _0xeec268=[];await this[_0x2df0('0xc4')](),this[_0x2df0('0x5')]=!0x1,_0x25ea50>this[_0x2df0('0xdf')][_0x2df0('0x80')]&&(_0x25ea50=null),null===_0x25ea50&&(_0x25ea50=await this[_0x2df0('0xe9')][_0x2df0('0x50')]());const _0x33c69f=this[_0x2df0('0x72')](_0x25ea50),_0x9ced0d=this[_0x2df0('0x101')]({'from':_0x33c69f,'to':_0x25ea50});if(this[_0x2df0('0xdf')]['toVersion']<_0x25ea50){const _0x2196e7=this[_0x2df0('0x101')]({'revision':this[_0x2df0('0xdf')],'from':_0x25ea50,'to':_0x25ea50});_0x2196e7['authors']=[],_0x2196e7[_0x2df0('0xea')]=[],_0x2196e7['id']=this[_0x2df0('0xdf')]['id'],this[_0x2df0('0xdf')][_0x2df0('0x48')](_0x2196e7,!0x0),delete _0x2196e7[_0x2df0('0xee')],_0xeec268[_0x2df0('0x17')](_0x2196e7);}_0x3e3b7b[_0x2df0('0xb')]=this['editor'][_0x2df0('0x99')][_0x2df0('0x77')]('Users')['me']['id'],_0x3e3b7b[_0x2df0('0x3f')]=_0x3e3b7b[_0x2df0('0x3f')]||null,_0x3e3b7b['id']=_0x3e3b7b['id']||_0x15e12a(),_0x3e3b7b={..._0x3e3b7b,..._0x9ced0d};const _0xa38bd=this[_0x2df0('0xf9')](_0x3e3b7b);_0xeec268[_0x2df0('0x17')](_0x3e3b7b);const _0x141c87=this[_0x2df0('0x87')][_0x2df0('0xbf')](_0xa38bd);if(0x0!==_0x141c87){const _0x474905=this[_0x2df0('0x87')][_0x2df0('0x45')](_0x141c87-0x1);if(_0x474905[_0x2df0('0x6c')]!==_0x25ea50){const _0x5a1fdc=this[_0x2df0('0x100')][_0x2df0('0x3b')](_0x25ea50,_0x474905['toVersion']),_0x1682e2={'id':_0x474905['id'],'diffData':_0x5a1fdc[_0x2df0('0x2b')],'authorsIds':_0x5a1fdc[_0x2df0('0xea')],'authors':_0x5a1fdc[_0x2df0('0xea')][_0x2df0('0xc9')](_0x532e89=>this[_0x2df0('0x36')][_0x2df0('0x99')]['get'](_0x2df0('0xeb'))[_0x2df0('0x6')](_0x532e89)),'fromVersion':_0x25ea50};_0x474905===this[_0x2df0('0xdf')]&&(_0x1682e2[_0x2df0('0x1d')]=new Date(_0x3e3b7b[_0x2df0('0x1d')]['getTime']()+0xa)),_0x474905[_0x2df0('0x48')](_0x1682e2,!0x0),delete _0x1682e2[_0x2df0('0xee')],_0xeec268[_0x2df0('0x17')](_0x1682e2);}}if(this[_0x2df0('0x76')]){for(const _0x473071 of _0xeec268)this[_0x2df0('0x5b')](_0x473071['id'],_0x473071,!0x0);this[_0x2df0('0x3a')]();}return _0xa38bd;}['addRevisionData'](_0xc09c48){const _0x5650c3=this[_0x2df0('0x87')][_0x2df0('0xad')](_0xc09c48);return this[_0x2df0('0x76')]&&_0x5650c3['on'](_0x2df0('0x48'),(_0x5198a6,_0x5354aa,_0x28d22b)=>{_0x28d22b||(this[_0x2df0('0x5b')](_0x5354aa['id'],_0x5354aa,!0x0),this['sendBufferedUpdates']());}),this[_0x2df0('0x87')][_0x2df0('0x12')](_0x5650c3,this[_0x2df0('0xb7')](_0x5650c3)),_0x5650c3;}async[_0x2df0('0x69')](_0x13554b){await this[_0x2df0('0x37')](_0x13554b);const _0xd4ffbf={};for(const _0x4cf3a4 in _0x13554b['diffData']){if(_0x13554b[_0x2df0('0x2b')][_0x4cf3a4][_0x2df0('0xc6')]&&!_0x13554b[_0x2df0('0x2b')][_0x4cf3a4][_0x2df0('0xc6')][_0x2df0('0x27')])continue;const _0x4f20f2=this[_0x2df0('0xbb')](JSON[_0x2df0('0x41')](_0x13554b['diffData'][_0x4cf3a4][_0x2df0('0x61')])),_0x23bf43=this[_0x2df0('0x36')][_0x2df0('0x63')][_0x2df0('0xc0')][_0x2df0('0x70')],_0x605a59=new _0x305f0e(_0x23bf43,_0x4f20f2[_0x2df0('0xc9')](_0x29d8c4=>J(_0x29d8c4,this[_0x2df0('0x36')])));this['editor'][_0x2df0('0x6d')][_0x2df0('0xbe')][_0x2df0('0x7c')]('marked'),_0xd4ffbf[_0x4cf3a4]=this[_0x2df0('0x36')]['data'][_0x2df0('0xbe')]['toData'](_0x605a59),this[_0x2df0('0x36')][_0x2df0('0x6d')][_0x2df0('0xbe')][_0x2df0('0x7c')](_0x2df0('0x65'));}return _0xd4ffbf;}async['getRevisionRootsAttributes'](_0x3673ac){await this[_0x2df0('0x37')](_0x3673ac);const _0x574b2b={};for(const _0x1487a1 in _0x3673ac[_0x2df0('0x2b')])_0x3673ac['diffData'][_0x1487a1][_0x2df0('0xc6')]&&!_0x3673ac[_0x2df0('0x2b')][_0x1487a1][_0x2df0('0xc6')][_0x2df0('0x27')]||(_0x574b2b[_0x1487a1]=_0x3673ac[_0x2df0('0x2b')][_0x1487a1][_0x2df0('0x6f')]||{});return _0x574b2b;}[_0x2df0('0x3a')](){if(0x0===this[_0x2df0('0x7f')]['size'])return;if(this[_0x2df0('0xab')])return;let _0x52ad07=Array['from'](this[_0x2df0('0x7f')][_0x2df0('0x25')]());this[_0x2df0('0x7f')][_0x2df0('0x9')]();for(let _0x4afbde=0x0;_0x4afbde<_0x52ad07['length'];_0x4afbde++){const _0x108623=_0x52ad07[_0x4afbde];let _0x153310=!0x1;for(const _0x7dd404 of Object[_0x2df0('0x31')](_0x108623))void 0x0===_0x108623[_0x7dd404]?delete _0x108623[_0x7dd404]:'id'!==_0x7dd404&&(_0x153310=!0x0);_0x153310||(_0x52ad07[_0x4afbde]=null);}if(_0x52ad07=_0x52ad07['filter'](_0x4ed230=>null!==_0x4ed230),!_0x52ad07[_0x2df0('0xc')])return;for(let _0x536b09=0x0;_0x536b09<_0x52ad07['length'];_0x536b09++){const _0x4e8946=_0x52ad07[_0x536b09];void 0x0!==_0x4e8946[_0x2df0('0x6c')]&&void 0x0===_0x4e8946[_0x2df0('0x80')]&&(_0x4e8946['toVersion']=this[_0x2df0('0x87')]['getRevision'](_0x4e8946['id'])[_0x2df0('0x80')]),void 0x0!==_0x4e8946[_0x2df0('0x80')]&&void 0x0===_0x4e8946['fromVersion']&&(_0x4e8946['fromVersion']=this[_0x2df0('0x87')][_0x2df0('0x45')](_0x4e8946['id'])['fromVersion']);}const _0x37f078=this[_0x2df0('0x36')][_0x2df0('0x4b')][_0x2df0('0x77')](_0x2df0('0xc1'));this[_0x2df0('0xab')]=!0x0,this[_0x2df0('0xd6')](),this[_0x2df0('0x76')][_0x2df0('0x8d')](_0x52ad07,_0x37f078)[_0x2df0('0xd1')](()=>{this[_0x2df0('0xab')]=!0x1;})[_0x2df0('0xb2')](_0x54ed82=>{if(_0x54ed82)for(const _0x100eef of _0x54ed82)this['setRevisionData']({'id':_0x100eef['id'],'createdAt':_0x100eef[_0x2df0('0x1d')]});this[_0x2df0('0x71')](),this['sendBufferedUpdates']();});}[_0x2df0('0xdc')](_0x265060,_0x22d6d6){let _0x5de4cd=this[_0x2df0('0x36')][_0x2df0('0x4b')][_0x2df0('0x77')]('initialData'),_0xf0466d=this['editor'][_0x2df0('0x4b')][_0x2df0('0x77')]('rootsAttributes');if(void 0x0===_0x5de4cd){_0x5de4cd={};for(const _0xc67b8 of this[_0x2df0('0x36')]['model'][_0x2df0('0x70')][_0x2df0('0x93')]())_0x5de4cd[_0xc67b8]='';}if(_0x2df0('0x57')==typeof _0x5de4cd&&(_0x5de4cd={'main':_0x5de4cd}),void 0x0===_0xf0466d){_0xf0466d={};for(const _0x872882 of this['editor'][_0x2df0('0x90')][_0x2df0('0x70')][_0x2df0('0x93')]())_0xf0466d[_0x872882]={};}let _0x454dd0=!0x1;const _0xb63236=Object[_0x2df0('0x31')](_0x5de4cd),_0x4f2a38=Object[_0x2df0('0x31')](_0x265060);for(const _0x20382d of _0xb63236){if(_0x5de4cd[_0x20382d]!==_0x265060[_0x20382d]&&''!==_0x5de4cd[_0x20382d][_0x2df0('0x105')]()){_0x454dd0=!0x0;break;}if(!_0x442f2f(_0xf0466d[_0x20382d],_0x22d6d6[_0x20382d])&&Object['keys'](_0xf0466d[_0x20382d])[_0x2df0('0xc')]>0x0){_0x454dd0=!0x0;break;}}_0x454dd0||(_0x454dd0=_0x4f2a38[_0x2df0('0xef')](_0x47fda4=>!this[_0x2df0('0x36')][_0x2df0('0x90')][_0x2df0('0x70')]['getRoot'](_0x47fda4))),_0x454dd0&&_0x5ae175(_0x2df0('0xe7'),{'editorData':_0x5de4cd,'editorRootsAttributes':_0xf0466d,'revisionData':_0x265060,'revisionRootsAttributes':_0x22d6d6}),this['editor'][_0x2df0('0x4b')]['set']('initialData',_0x265060),this[_0x2df0('0x36')]['config']['set']('rootsAttributes',_0x22d6d6);}[_0x2df0('0xd6')](){if(!this[_0x2df0('0x22')]){const _0x26cfa7=this[_0x2df0('0x36')][_0x2df0('0x99')][_0x2df0('0x77')](_0x2df0('0x38'));this['_pendingAction']=_0x26cfa7[_0x2df0('0xcb')](_0x5e4f09(this[_0x2df0('0x36')][_0x2df0('0xbd')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x2df0('0x71')](){this['_pendingAction']&&(this[_0x2df0('0x36')][_0x2df0('0x99')]['get'](_0x2df0('0x38'))[_0x2df0('0x10')](this[_0x2df0('0x22')]),this['_pendingAction']=null);}[_0x2df0('0xb7')](_0x1a9c1e){const _0x560372=this[_0x2df0('0x87')][_0x2df0('0x1')]();_0x560372['reverse']();let _0xf91ae1=0x0;for(;_0xf91ae1<_0x560372[_0x2df0('0xc')];){const _0x53a2ab=_0x560372[_0xf91ae1];if(_0x53a2ab===this[_0x2df0('0xdf')]){_0xf91ae1++;continue;}if(_0x53a2ab['id']===this['_initialRevisionId'])break;const _0x5690cf=_0x1a9c1e[_0x2df0('0x80')]-_0x53a2ab[_0x2df0('0x80')]||_0x1a9c1e[_0x2df0('0x6c')]-_0x53a2ab[_0x2df0('0x6c')];if(_0x5690cf>0x0)break;if(_0x5690cf<0x0)_0xf91ae1++;else{if(!_0x1a9c1e['creator']&&_0x53a2ab[_0x2df0('0x102')])break;if(_0x53a2ab[_0x2df0('0x102')]||!_0x1a9c1e['creator']){if(_0x1a9c1e['createdAt']>_0x53a2ab['createdAt'])break;_0xf91ae1++;}else _0xf91ae1++;}}return _0xf91ae1;}[_0x2df0('0x30')](_0x37d2e7){const _0x446ea4=this['repository'][_0x2df0('0x45')](_0x37d2e7['id']);if(_0x37d2e7[_0x2df0('0x1d')]&&(_0x37d2e7[_0x2df0('0x1d')]=new Date(_0x37d2e7[_0x2df0('0x1d')])),_0x37d2e7[_0x2df0('0xea')]){const _0x522f7f=this[_0x2df0('0x36')][_0x2df0('0x99')][_0x2df0('0x77')]('Users');_0x37d2e7[_0x2df0('0xee')]=_0x37d2e7[_0x2df0('0xea')]['map'](_0x41fcf5=>_0x522f7f[_0x2df0('0x6')](_0x41fcf5));}_0x446ea4['_update'](_0x37d2e7,!0x0);}[_0x2df0('0x101')]({revision:_0x122aee=null,from:_0x4e815a=null,to:_0x17a316=null}){_0x4e815a=null!==_0x4e815a?_0x4e815a:_0x122aee[_0x2df0('0x6c')],_0x17a316=null!==_0x17a316?_0x17a316:_0x122aee[_0x2df0('0x80')];const _0x794364=this[_0x2df0('0x100')][_0x2df0('0x3b')](_0x4e815a,_0x17a316),_0x3f08e2={'diffData':_0x794364[_0x2df0('0x2b')],'authorsIds':_0x794364['authorsIds'],'fromVersion':_0x4e815a,'toVersion':_0x17a316};if(!_0x122aee||_0x17a316!==_0x122aee[_0x2df0('0x80')]){const _0x7722a3=_0x17a316-0x1,_0x43e2c1=this[_0x2df0('0xe9')][_0x2df0('0x83')][_0x2df0('0x33')](_0x7722a3);_0x3f08e2[_0x2df0('0x1d')]=_0x43e2c1&&_0x43e2c1[_0x2df0('0x1d')]||new Date();}if(this[_0x2df0('0x28')]&&_0x4e815a===this[_0x2df0('0x28')][_0x2df0('0x6c')])for(const _0x4fdc06 of this['_loadedStateData'][_0x2df0('0xee')])_0x3f08e2['authorsIds']['includes'](_0x4fdc06['id'])||_0x3f08e2[_0x2df0('0xea')][_0x2df0('0x17')](_0x4fdc06['id']);return _0x3f08e2;}[_0x2df0('0x37')](_0x38c93f){if(!_0x38c93f||_0x38c93f['diffData'])return Promise[_0x2df0('0x26')]();{const _0x3ca9d8=this[_0x2df0('0x36')][_0x2df0('0x4b')][_0x2df0('0x77')]('collaboration.channelId');return this[_0x2df0('0x76')][_0x2df0('0x45')]({'channelId':_0x3ca9d8,'revisionId':_0x38c93f['id']})[_0x2df0('0xb2')](_0x3e1c4e=>{_0x38c93f[_0x2df0('0x2b')]=_0x3e1c4e[_0x2df0('0x2b')];});}}[_0x2df0('0x5b')](_0x5b2f83,_0x4af2c7,_0x43584b){if(this['_bufferedUpdates'][_0x2df0('0xca')](_0x5b2f83)){const _0x4f2420=this[_0x2df0('0x7f')]['get'](_0x5b2f83);_0x4af2c7=_0x43584b?{..._0x4f2420,..._0x4af2c7}:{..._0x4af2c7,..._0x4f2420};}this[_0x2df0('0x7f')][_0x2df0('0xe6')](_0x5b2f83,_0x4af2c7);}[_0x2df0('0x72')](_0x1a1594){const _0x154ea1=this[_0x2df0('0x87')][_0x2df0('0x1')]();_0x154ea1[_0x2df0('0xb0')](),_0x154ea1[_0x2df0('0x13')]();const _0x1a3873=_0x154ea1['find'](_0x1e6ceb=>_0x1e6ceb[_0x2df0('0x80')]<=_0x1a1594)[_0x2df0('0x80')];return _0x1a3873<this[_0x2df0('0x7')]?this[_0x2df0('0x7')]:_0x1a3873;}[_0x2df0('0xa9')](_0x54f0c9){const _0x4a59f0=this['repository']['getRevision'](this[_0x2df0('0x87')][_0x2df0('0xc')]-0x1);if(_0x4a59f0)this[_0x2df0('0x5a')]=_0x4a59f0['id'];else{const _0x35badd=!this['editor'][_0x2df0('0x90')][_0x2df0('0x70')][_0x2df0('0x79')]['find'](_0x219ccf=>this[_0x2df0('0x36')][_0x2df0('0x90')]['hasContent'](_0x219ccf)),_0xd723f9=this[_0x2df0('0x36')][_0x2df0('0x99')]['get'](_0x2df0('0xeb'))['me']['id'],_0x24f0b9=_0x5e4f09(this[_0x2df0('0x36')][_0x2df0('0xbd')],_0x35badd?'Empty\x20document':_0x2df0('0x1e'));this[_0x2df0('0xcd')]({'from':_0x54f0c9,'to':_0x54f0c9,'id':this[_0x2df0('0x5a')],'name':_0x24f0b9,'creatorId':_0xd723f9});}}['_createCurrentRevision'](_0x211e42){const _0x519bb9=this['_source']['getCurrentRevisionId']();this[_0x2df0('0xdf')]=this[_0x2df0('0x87')][_0x2df0('0x45')](_0x519bb9),this[_0x2df0('0xdf')]||(this[_0x2df0('0xdf')]=this[_0x2df0('0xcd')]({'from':_0x211e42,'to':_0x211e42,'id':_0x519bb9,'name':'','creatorId':null}));}['_makeRevision']({name:_0x5b29b2,from:_0x14cf8e,to:_0x2b827f,creatorId:_0x840df3,id:_0x781d6c}){const _0x158c02=this[_0x2df0('0x101')]({'from':_0x14cf8e,'to':_0x2b827f});_0x158c02[_0x2df0('0x3f')]=_0x5b29b2,_0x158c02[_0x2df0('0xb')]=_0x840df3,_0x158c02['id']=_0x781d6c;const _0x1ca9af=this[_0x2df0('0xf9')](_0x158c02);return this[_0x2df0('0x76')]&&this['_bufferUpdate'](_0x158c02['id'],_0x158c02,!0x0),_0x1ca9af;}[_0x2df0('0x2')](){this[_0x2df0('0x36')][_0x2df0('0x68')][_0x2df0('0x2a')](_0x2df0('0xdd'))[_0x2df0('0xfb')]({'model':'revision'});}[_0x2df0('0xbb')](_0x106376){return(_0x106376=_0x106376['filter'](_0x4bb53b=>!_0x4bb53b['name']||'revision-start'!==_0x4bb53b[_0x2df0('0x3f')]&&_0x2df0('0x5e')!==_0x4bb53b['name']))[_0x2df0('0x20')](_0xb02d96=>{_0x2df0('0x57')!=typeof _0xb02d96&&(_0xb02d96['children']=this[_0x2df0('0xbb')](_0xb02d96[_0x2df0('0x3c')]),_0xb02d96[_0x2df0('0x73')]=_0xb02d96['attributes'][_0x2df0('0xf5')](_0x5cbe9c=>!_0x5cbe9c[0x0][_0x2df0('0xf2')](_0x2df0('0x2e'))));}),_0x106376;}}function J(_0x382b6b,_0x54e44d){const _0x19d829=_0x54e44d[_0x2df0('0x63')][_0x2df0('0xc0')][_0x2df0('0x70')];if(_0x2df0('0x57')==typeof _0x382b6b)return new _0x270442(_0x19d829,_0x382b6b);{const _0x13b9a0=_0x382b6b['children'][_0x2df0('0xc9')](_0x129396=>J(_0x129396,_0x54e44d));return new(B[_0x382b6b[(_0x2df0('0xf7'))]]||_0x5976af)(_0x19d829,_0x382b6b['name'],_0x382b6b[_0x2df0('0x73')],_0x13b9a0);}}class H{constructor(_0xaac77c){this[_0x2df0('0x36')]=_0xaac77c,this[_0x2df0('0x51')]=new Map(),this[_0x2df0('0xc2')]=-0x1,this[_0x2df0('0xaf')]=-0x1,this[_0x2df0('0xf8')]=new Map(),this[_0x2df0('0x4a')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x2df0('0xa4')]=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x2df0('0x4c')]=new Map(),this[_0x2df0('0x59')]=new Map(),this['_touched']=new Map(),this[_0x2df0('0xb8')]=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}[_0x2df0('0xa6')](_0xa904ed){this['source']=_0xa904ed;const _0x2a1663=new Map(),_0x2b7b7c=new Map(),_0x19e924=this[_0x2df0('0x36')]['model'][_0x2df0('0x70')][_0x2df0('0x79')][_0x2df0('0xc9')](_0x2df2b7=>_0x2df2b7['rootName']);for(const _0x2a84cd of _0x19e924){const _0x533751=this[_0x2df0('0x36')][_0x2df0('0x90')][_0x2df0('0x70')][_0x2df0('0xde')](_0x2a84cd),_0x4e3483=q(_0x533751);_0x2a1663[_0x2df0('0xe6')](_0x2a84cd,_0x4e3483),_0x2b7b7c[_0x2df0('0xe6')](_0x2a84cd,Object[_0x2df0('0x106')](_0x533751[_0x2df0('0x9a')]()));}const _0x560023=Array[_0x2df0('0xe')](this[_0x2df0('0x36')]['model'][_0x2df0('0xa5')])[_0x2df0('0xc9')](_0xfbc099=>[_0xfbc099[_0x2df0('0x3f')],_0xfbc099[_0x2df0('0x16')]()]),_0x78af88=this[_0x2df0('0x4')][_0x2df0('0x29')];this[_0x2df0('0xdb')](_0x78af88,_0x2a1663,_0x560023,_0x2b7b7c),this[_0x2df0('0x43')]=this[_0x2df0('0xcf')];const _0x4909a7=new Map(),_0x29571b=new Map();for(const _0x3683d4 of _0x19e924){const _0x396e6d=G(_0x3683d4);_0x4909a7[_0x2df0('0xe6')](_0x3683d4,_0x396e6d),_0x29571b[_0x2df0('0xe6')](_0x3683d4,{});}this[_0x2df0('0xdb')](Number[_0x2df0('0x9b')],_0x4909a7,[],_0x29571b);}[_0x2df0('0x3b')](_0x5d8c04,_0x40e49d){if(this['_lastFrom']===_0x5d8c04&&this[_0x2df0('0xaf')]<=_0x40e49d)this[_0x2df0('0x51')][_0x2df0('0x7e')]>0x1&&this[_0x2df0('0x97')](this['_lastTo']),this[_0x2df0('0xd4')](this['_lastTo'],_0x40e49d,!0x0);else{if(!this[_0x2df0('0x51')][_0x2df0('0xca')](_0x5d8c04)){const _0x3e199e=this[_0x2df0('0x9c')](_0x5d8c04);this[_0x2df0('0xfe')](_0x3e199e,_0x5d8c04,!0x1);}this[_0x2df0('0xfe')](_0x5d8c04,_0x40e49d,!0x0);}return this[_0x2df0('0xc2')]=_0x5d8c04,this[_0x2df0('0xaf')]=_0x40e49d,this[_0x2df0('0xf1')]();}[_0x2df0('0xf')](_0x132306){this[_0x2df0('0xf4')](),this[_0x2df0('0xc2')]=_0x132306[_0x2df0('0x6c')],this[_0x2df0('0xaf')]=_0x132306[_0x2df0('0x80')];for(const _0xd6ae5b in _0x132306[_0x2df0('0x2b')]){const _0x47d329=_0x132306[_0x2df0('0x2b')][_0xd6ae5b][_0x2df0('0xc6')],_0x1727a8=_0xb6b1d8(_0x132306[_0x2df0('0x2b')][_0xd6ae5b][_0x2df0('0x34')])||{},_0x4a7dc9=this[_0x2df0('0x82')](_0x132306['diffData'][_0xd6ae5b]['deletions']);_0x4a7dc9[_0x2df0('0xd2')]=_0xd6ae5b,_0x4a7dc9[_0x2df0('0xac')]=!_0x47d329||!_0x47d329[_0x2df0('0x27')],_0x4a7dc9[_0x2df0('0x27')]=()=>_0x4a7dc9['_isAttached'],this['_baseRoots'][_0x2df0('0xe6')](_0xd6ae5b,_0x4a7dc9),this[_0x2df0('0x5c')][_0x2df0('0xe6')](_0xd6ae5b,_0x1727a8),_0x47d329&&this[_0x2df0('0x24')][_0x2df0('0xe6')](_0xd6ae5b,_0x47d329);const _0x287d16=this[_0x2df0('0x8e')](_0x4a7dc9);this[_0x2df0('0x59')][_0x2df0('0xe6')](_0xd6ae5b,_0x287d16);for(const [_0x4ae565,_0x211ed8]of _0x4a7dc9[_0x2df0('0xa5')]){if(!_0x4ae565['startsWith'](_0x2df0('0xfc')))continue;const _0x56041d=_0x4ae565[_0x2df0('0xa7')](':')[0x2];for(const _0x241290 of _0x211ed8[_0x2df0('0xb4')]({'singleCharacters':!0x0})){const _0x578884=this[_0x2df0('0xe8')](_0x241290),_0x391a1f=_0x2df0('0xb5')==_0x241290[_0x2df0('0xf7')]?_0x241290['previousPosition'][_0x2df0('0xd7')]['slice'](0x0,-0x1):_0x241290['previousPosition'][_0x2df0('0xd7')],_0x371b94=_0x287d16[_0x2df0('0x3e')](_0x391a1f)[_0x2df0('0xff')](_0x578884);this[_0x2df0('0xae')]['set'](_0x371b94,{'userId':_0x56041d});}}}this[_0x2df0('0x43')]=this['_revisionId'];const _0x545c85=[...Array(this['_revisionId'])[_0x2df0('0x31')]()][_0x2df0('0xd0')](0x1)[_0x2df0('0xf5')](_0x19c817=>!this['_touched'][_0x2df0('0xca')](_0x19c817));let _0x34417e=0x0;const _0x4fac34=new Map();for(const _0x368d41 in _0x132306[_0x2df0('0x2b')]){const _0x32eef7=_0x132306['diffData'][_0x368d41]['attachChange'],_0x57a904=_0xb6b1d8(_0x132306['diffData'][_0x368d41][_0x2df0('0x6f')])||{},_0x17dbc3=this['_makeModelFromViewString'](_0x132306[_0x2df0('0x2b')][_0x368d41][_0x2df0('0x61')]);_0x17dbc3[_0x2df0('0xd2')]=_0x368d41,_0x17dbc3[_0x2df0('0xac')]=!_0x32eef7||_0x32eef7['isAttached'],_0x17dbc3[_0x2df0('0x27')]=()=>_0x17dbc3[_0x2df0('0xac')],this[_0x2df0('0x4a')][_0x2df0('0xe6')](_0x368d41,_0x17dbc3),this[_0x2df0('0x104')][_0x2df0('0xe6')](_0x368d41,_0x57a904);const _0x21d09a=this[_0x2df0('0x8e')](_0x17dbc3,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x368d41,_0x21d09a),_0x4fac34['set'](_0x368d41,_0x17dbc3[_0x2df0('0x27')]()?_0x57a904:{});for(const [_0x41f84b,_0x23034a]of _0x17dbc3[_0x2df0('0xa5')]){if(!_0x41f84b[_0x2df0('0xf2')](_0x2df0('0xfc')))continue;const _0x28f908=_0x41f84b[_0x2df0('0xa7')](':')[0x2];for(const _0x522f3e of _0x23034a[_0x2df0('0xb4')]({'singleCharacters':!0x0})){const _0x58d8aa=this[_0x2df0('0xe8')](_0x522f3e),_0xb0fb91=this[_0x2df0('0xcf')]++,_0x423944=_0x2df0('0xb5')==_0x522f3e[_0x2df0('0xf7')]?_0x522f3e[_0x2df0('0x23')][_0x2df0('0xd7')]['slice'](0x0,-0x1):_0x522f3e[_0x2df0('0x23')][_0x2df0('0xd7')];_0x21d09a['getNodeByPath'](_0x423944)[_0x2df0('0xa8')](_0x58d8aa,_0xb0fb91),this[_0x2df0('0xae')][_0x2df0('0xe6')](_0xb0fb91,{'userId':_0x28f908});}}for(const _0x1d5b27 of this[_0x2df0('0x36')]['model'][_0x2df0('0x1c')](_0x17dbc3)[_0x2df0('0xb4')]({'singleCharacters':!0x0})){const _0x32367a=this['_getVidAttributeName'](_0x1d5b27),_0x47a200='elementEnd'==_0x1d5b27[_0x2df0('0xf7')]?_0x1d5b27[_0x2df0('0x23')][_0x2df0('0xd7')][_0x2df0('0xd0')](0x0,-0x1):_0x1d5b27[_0x2df0('0x23')][_0x2df0('0xd7')],_0x336de6=_0x21d09a['getNodeByPath'](_0x47a200);_0x336de6[_0x2df0('0xff')](_0x32367a)>0x0||_0x336de6['_setAttribute'](_0x32367a,_0x545c85[_0x34417e++]);}for(const [_0x4f41b3,_0x1b054c]of _0x17dbc3[_0x2df0('0xa5')])_0x4f41b3['startsWith'](_0x2df0('0xfc'))||this[_0x2df0('0xf8')][_0x2df0('0xe6')](_0x4f41b3,_0x1b054c);}const _0x5923a8=G(_0x2df0('0x8a'));this[_0x2df0('0xa4')][_0x2df0('0xe6')](_0x2df0('0x8a'),_0x5923a8),this['_baseIdsRoots']['set']('$graveyard',this[_0x2df0('0x8e')](_0x5923a8,0x1));const _0x700a4b=G('$graveyard');this[_0x2df0('0x4a')]['set'](_0x2df0('0x8a'),_0x700a4b),this[_0x2df0('0x4c')][_0x2df0('0xe6')](_0x2df0('0x8a'),this[_0x2df0('0x8e')](_0x700a4b,0x1));const _0x33d425=Array['from'](this[_0x2df0('0x4a')])['map'](([_0x2c829e,_0x2bd267])=>[_0x2c829e,q(_0x2bd267)]);this['_saveMetaData'](this[_0x2df0('0xaf')],_0x33d425,this[_0x2df0('0xf8')],_0x4fac34);}[_0x2df0('0x82')](_0x3a3724){const _0x3b1e88=JSON[_0x2df0('0x41')](_0x3a3724),_0x5358a9=this[_0x2df0('0x36')][_0x2df0('0x63')][_0x2df0('0xc0')]['document'],_0x4adfb6=new _0x305f0e(_0x5358a9,_0x3b1e88['map'](_0x5c8c1b=>J(_0x5c8c1b,this[_0x2df0('0x36')])));return this[_0x2df0('0x36')][_0x2df0('0x6d')][_0x2df0('0x94')](_0x4adfb6);}[_0x2df0('0xdb')](_0x52253e,_0x14a517,_0x7884f,_0x1186df){const _0x4eba4d=new Map(_0x14a517),_0x154547=new Map(_0xb6b1d8(_0x1186df)),_0x27387d=new Map();for(const [_0x382c3d,_0x3d8fea]of _0x7884f)_0x27387d[_0x2df0('0xe6')](_0x382c3d,{'start':_0x3d8fea[_0x2df0('0x91')][_0x2df0('0x35')](),'end':_0x3d8fea[_0x2df0('0x78')][_0x2df0('0x35')](),'rootName':_0x3d8fea[_0x2df0('0x4d')]['rootName']});this[_0x2df0('0x51')][_0x2df0('0xe6')](_0x52253e,{'roots':_0x4eba4d,'markers':_0x27387d,'rootsAttributes':_0x154547});}[_0x2df0('0x97')](_0x1343f2){this['_savedMetaData'][_0x2df0('0x5f')](_0x1343f2);}[_0x2df0('0x1a')](){this[_0x2df0('0xf4')](),this[_0x2df0('0xc2')]=-0x1,this[_0x2df0('0xaf')]=-0x1,this[_0x2df0('0x51')][_0x2df0('0x9')](),this[_0x2df0('0xa6')](this['source']);}[_0x2df0('0xf4')](){this['_touched'][_0x2df0('0x9')](),this[_0x2df0('0xb8')]['clear'](),this[_0x2df0('0x24')][_0x2df0('0x9')](),this[_0x2df0('0x4a')][_0x2df0('0x9')](),this[_0x2df0('0x104')][_0x2df0('0x9')](),this[_0x2df0('0xa4')]['clear'](),this['_baseRootsAttributes'][_0x2df0('0x9')](),this['_idsRoots'][_0x2df0('0x9')](),this[_0x2df0('0x59')][_0x2df0('0x9')](),this[_0x2df0('0xf8')]['clear'](),this[_0x2df0('0xcf')]=0x1,this['_startingRevisionId']=this['_revisionId'];}[_0x2df0('0x8e')](_0x2fe4b7,_0x50996a=null){let _0x3aac2a=null;_0x2fe4b7['is']('documentFragment')||(_0x3aac2a=new _0x772d8e(_0x2fe4b7[_0x2df0('0x3f')],{'vid_start':null===_0x50996a?this[_0x2df0('0xcf')]++:_0x50996a++}));const _0x1b7fa9=[];for(const _0x4b21bc of _0x2fe4b7[_0x2df0('0xe0')]())if(_0x4b21bc['is'](_0x2df0('0xa0'))){_0x1b7fa9['push'](this[_0x2df0('0x8e')](_0x4b21bc,_0x50996a));const _0x4f5b44=_0x1b7fa9[_0x1b7fa9[_0x2df0('0xc')]-0x1];null!==_0x50996a&&(_0x50996a=_0x4f5b44['is'](_0x2df0('0xa0'),_0x2df0('0x58'))?_0x4f5b44['getAttribute'](_0x2df0('0xaa'))+0x1:_0x4f5b44['getAttribute'](_0x2df0('0xc5'))+0x1);}else for(let _0x2b0b8a=0x0;_0x2b0b8a<_0x4b21bc[_0x2df0('0xe4')];_0x2b0b8a++)_0x1b7fa9[_0x2df0('0x17')](new _0x772d8e(_0x2df0('0x58'),{'vid':null===_0x50996a?this[_0x2df0('0xcf')]++:_0x50996a++}));if(_0x2fe4b7['is']('documentFragment')){const _0x1a806e=G(_0x2fe4b7['rootName']);return _0x1a806e['_insertChild'](0x0,_0x1b7fa9),_0x1a806e;}return _0x3aac2a[_0x2df0('0xa8')](_0x2df0('0xc5'),null===_0x50996a?this['_revisionId']++:_0x50996a++),_0x3aac2a[_0x2df0('0xc7')](0x0,_0x1b7fa9),_0x3aac2a;}[_0x2df0('0xfe')](_0x4b2609,_0x3efbe0,_0x3ec831){this['_reset']();const {roots:_0x26e0f0,markers:_0x3f10af,rootsAttributes:_0x252570}=this['_savedMetaData'][_0x2df0('0x77')](_0x4b2609);this[_0x2df0('0xa4')]=new Map(_0x26e0f0),this['_baseRootsAttributes']=new Map(_0xb6b1d8(_0x252570));for(const [_0x37a847,_0x36df8c]of this['_baseRoots'])if('$graveyard'!==_0x37a847&&(this[_0x2df0('0x4a')][_0x2df0('0xe6')](_0x37a847,q(_0x36df8c)),this[_0x2df0('0x104')]=new Map(_0xb6b1d8(_0x252570)),_0x3ec831)){const _0x3577f7=this[_0x2df0('0xcf')];this['_idsRoots']['set'](_0x37a847,this[_0x2df0('0x8e')](_0x36df8c)),this[_0x2df0('0x59')][_0x2df0('0xe6')](_0x37a847,this['_makeIdsRoot'](_0x36df8c,_0x3577f7));}this['_startingRevisionId']=this[_0x2df0('0xcf')],this[_0x2df0('0x4a')][_0x2df0('0xe6')](_0x2df0('0x8a'),q(this['_baseRoots']['get']('$graveyard'))),_0x3ec831&&this[_0x2df0('0x4c')][_0x2df0('0xe6')](_0x2df0('0x8a'),this[_0x2df0('0x8e')](this[_0x2df0('0xa4')][_0x2df0('0x77')](_0x2df0('0x8a'))));for(const [_0x4a7abf,_0x1b1b21]of _0x3f10af){const _0x50c73b=this[_0x2df0('0xa4')][_0x2df0('0x77')](_0x1b1b21[_0x2df0('0xd2')]),_0x20eb75=this[_0x2df0('0x4a')][_0x2df0('0x77')](_0x1b1b21[_0x2df0('0xd2')]),_0x4cf768=new _0x33e6e5(this[_0x2df0('0x89')](_0x1b1b21[_0x2df0('0x91')],_0x50c73b),this[_0x2df0('0x89')](_0x1b1b21['end'],_0x50c73b)),_0x7d3c7e=this[_0x2df0('0x2d')](_0x4cf768,_0x20eb75);_0x50c73b[_0x2df0('0xa5')][_0x2df0('0xe6')](_0x4a7abf,_0x4cf768),this[_0x2df0('0xf8')][_0x2df0('0xe6')](_0x4a7abf,_0x7d3c7e);}this[_0x2df0('0xd4')](_0x4b2609,_0x3efbe0,_0x3ec831);}[_0x2df0('0xd4')](_0x506958,_0x3fb1d7,_0x3bcd43){for(const _0x195dd5 of this[_0x2df0('0x4')]['getOperations'](_0x506958,_0x3fb1d7))this[_0x2df0('0x56')](_0x195dd5,_0x3bcd43);for(const _0x43f537 of this[_0x2df0('0x4a')][_0x2df0('0x25')]())_0x43f537['markers']['clear']();for(const [_0x13118e,_0x293fea]of this[_0x2df0('0xf8')]){this[_0x2df0('0x4a')]['get'](_0x293fea[_0x2df0('0x4d')]['rootName'])[_0x2df0('0xa5')][_0x2df0('0xe6')](_0x13118e,_0x293fea[_0x2df0('0x35')]());}const _0x51dd63=new Map(),_0x549b78=new Map();for(const [_0x2dc533,_0x5aeab2]of this[_0x2df0('0x4a')])_0x51dd63[_0x2df0('0xe6')](_0x2dc533,q(_0x5aeab2)),_0x549b78[_0x2df0('0xe6')](_0x2dc533,this['_diffRootsAttributes'][_0x2df0('0x77')](_0x2dc533));this[_0x2df0('0xdb')](_0x3fb1d7,_0x51dd63,this[_0x2df0('0xf8')],_0x549b78);}[_0x2df0('0x9c')](_0x2c20b7){const _0x5405ba=Array[_0x2df0('0xe')](this[_0x2df0('0x51')][_0x2df0('0x31')]());_0x5405ba[_0x2df0('0xcc')]((_0x1eaad2,_0x1bbea7)=>_0x1eaad2-_0x1bbea7),_0x5405ba[_0x2df0('0xb0')]();for(const _0x376e7e of _0x5405ba)if(_0x376e7e<_0x2c20b7)return _0x376e7e;return Number[_0x2df0('0x9b')];}[_0x2df0('0x8')](_0x54356a,_0x1c9f92){const _0xe8552d=Array['from'](_0x1c9f92[_0x2df0('0xa5')])['map'](([_0x160ac4,_0x2a52de])=>[_0x160ac4,this[_0x2df0('0x2d')](_0x2a52de,_0x54356a)]);_0x54356a[_0x2df0('0xa5')]=new Map(_0xe8552d);}[_0x2df0('0x85')](_0x105797){for(const _0x28ddc5 of this[_0x2df0('0xf8')][_0x2df0('0x25')]()){const _0x19eca4=_0x28ddc5['getTransformedByOperation'](_0x105797),_0x1ed320=_0x33e6e5['_createFromRanges'](_0x19eca4);_0x28ddc5[_0x2df0('0x91')]=_0x1ed320[_0x2df0('0x91')],_0x28ddc5['end']=_0x1ed320['end'];}}[_0x2df0('0x56')](_0x5f2d37,_0x200d0a){if(_0x2df0('0x14')==_0x5f2d37[_0x2df0('0xf7')]||_0x2df0('0x86')==_0x5f2d37['type'])return void this['_handleRootOperation'](_0x5f2d37,_0x200d0a);if(_0x2df0('0xb9')==_0x5f2d37[_0x2df0('0xf7')]){const _0x5dd307=_0x5f2d37[_0x2df0('0xd')][_0x2df0('0x4d')]['rootName'];this['_diffRoots'][_0x2df0('0xca')](_0x5dd307)||(this[_0x2df0('0x4a')][_0x2df0('0xe6')](_0x5dd307,G(_0x5dd307,!0x0)),this[_0x2df0('0x104')]['set'](_0x5dd307,{}),_0x200d0a&&this['_idsRoots'][_0x2df0('0xe6')](_0x5dd307,G(_0x5dd307,!0x0)));}else{if(_0x2df0('0xe2')==_0x5f2d37[_0x2df0('0xf7')]||'removeRootAttribute'==_0x5f2d37[_0x2df0('0xf7')]||_0x2df0('0x75')==_0x5f2d37[_0x2df0('0xf7')])return void this['_handleRootAttributeOperation'](_0x5f2d37);}const _0x9de2f9=this[_0x2df0('0x39')](_0x5f2d37,this[_0x2df0('0x4a')]);if(_0x2df0('0xf3')!==_0x5f2d37[_0x2df0('0xf7')]&&(_0x9de2f9[_0x2df0('0xa3')](),this['_transformMarkers'](_0x9de2f9)),_0x200d0a)switch(_0x9de2f9[_0x2df0('0xf7')]){case _0x2df0('0xb9'):this[_0x2df0('0x4e')](_0x5f2d37);break;case _0x2df0('0x6b'):case _0x2df0('0x10'):case'reinsert':this[_0x2df0('0xa')](_0x5f2d37);break;case _0x2df0('0xc3'):this[_0x2df0('0x5d')](_0x5f2d37);break;case _0x2df0('0xa7'):this['_handleSplitOperation'](_0x5f2d37);break;case _0x2df0('0xf3'):this[_0x2df0('0x2c')](_0x5f2d37);}}[_0x2df0('0x39')](_0x2e3197,_0x352386){const _0x16657d=_0x2e3197[_0x2df0('0x35')]();return _0x16657d[_0x2df0('0x64')]=_0x2e3197['_authorId'],this[_0x2df0('0xa2')](_0x16657d,_0x352386),_0x16657d;}[_0x2df0('0x1b')](_0x2bf9c5){return _0x2bf9c5['map'](_0x375fa7=>{const _0x3e14f5=this[_0x2df0('0xe8')](_0x375fa7);return Number(_0x375fa7['item'][_0x2df0('0xff')](_0x3e14f5));});}[_0x2df0('0x4f')](_0xe3add1,_0x53238f){if(_0xe3add1['is']('element',_0x2df0('0x58')))_0x53238f['push']({'item':_0xe3add1,'type':_0x2df0('0xfa')});else{_0xe3add1['is'](_0x2df0('0xa0'))&&_0x53238f[_0x2df0('0x17')]({'item':_0xe3add1,'type':_0x2df0('0xc8')});for(const _0x3b404a of _0xe3add1[_0x2df0('0xe0')]())this[_0x2df0('0x4f')](_0x3b404a,_0x53238f);_0xe3add1['is']('element')&&_0x53238f[_0x2df0('0x17')]({'item':_0xe3add1,'type':'elementEnd'});}return _0x53238f;}[_0x2df0('0xf1')](){const _0x40f303=new Map(this[_0x2df0('0xae')]),_0x96e560=new Map(_0x40f303),_0x5d0cba=new Map(),_0x4e8feb={'insertions':{},'deletions':{}},_0x2ac201={'insertions':{},'deletions':{}},_0x442b07=new Map(),_0x394576=new Set([...this[_0x2df0('0xa4')]['keys'](),...this[_0x2df0('0x4a')][_0x2df0('0x31')]()]);_0x394576['delete'](_0x2df0('0x8a'));for(const _0x4cdb66 of _0x394576){const _0x3801de=this[_0x2df0('0x4a')]['get'](_0x4cdb66)||G(_0x4cdb66,!0x1),_0x38c980=this['_baseRoots']['get'](_0x4cdb66)||G(_0x4cdb66,!0x1);_0x3801de[_0x2df0('0x27')]()||_0x38c980['isAttached']()?(_0x4e8feb[_0x2df0('0x61')][_0x4cdb66]=q(_0x3801de),_0x4e8feb[_0x2df0('0x55')][_0x4cdb66]=q(_0x38c980),this['_copyMarkers'](_0x4e8feb[_0x2df0('0x55')][_0x4cdb66],_0x38c980),this['_copyMarkers'](_0x4e8feb['insertions'][_0x4cdb66],_0x3801de),_0x2ac201[_0x2df0('0x61')][_0x4cdb66]=this[_0x2df0('0x4f')](this[_0x2df0('0x4c')][_0x2df0('0x77')](_0x4cdb66),[]),_0x2ac201['deletions'][_0x4cdb66]=this[_0x2df0('0x4f')](this[_0x2df0('0x59')][_0x2df0('0x77')](_0x4cdb66)||G(_0x4cdb66,!0x1),[])):_0x394576['delete'](_0x4cdb66);}for(const _0x1bb4eb of _0x394576){const _0x1778eb=_0x2ac201['insertions'][_0x1bb4eb];for(const _0x53ef60 of _0x1778eb){const _0x1c52bd=this['_getVidAttributeName'](_0x53ef60),_0x1483ab=_0x53ef60[_0x2df0('0xfd')][_0x2df0('0xff')](_0x1c52bd);_0x96e560[_0x2df0('0x5f')](_0x1483ab),_0x1483ab>=this[_0x2df0('0x43')]&&_0x5d0cba['set'](_0x1483ab,_0x40f303[_0x2df0('0x77')](_0x1483ab));}}for(const _0x30a23f of _0x394576){const _0x242678=_0x2ac201[_0x2df0('0x61')][_0x30a23f],_0x42e8a1=this[_0x2df0('0x1b')](_0x2ac201[_0x2df0('0x55')][_0x30a23f]);let _0x26bbc9=0x0;for(const _0x35c084 of _0x242678){const _0x3ab28b=this[_0x2df0('0xe8')](_0x35c084),_0x4ca58c=_0x35c084[_0x2df0('0xfd')][_0x2df0('0xff')](_0x3ab28b);if(!_0x5d0cba[_0x2df0('0xca')](_0x4ca58c)&&!_0x442b07[_0x2df0('0xca')](_0x4ca58c)){if(_0x96e560[_0x2df0('0xca')](_0x4ca58c))_0x26bbc9++;else{if(_0x4ca58c!=_0x42e8a1[_0x26bbc9]){const _0x1782ea=_0x40f303[_0x2df0('0x77')](_0x4ca58c)||_0x40f303[_0x2df0('0x77')](_0x42e8a1[_0x26bbc9]);for(;_0x4ca58c!=_0x42e8a1[_0x26bbc9];)_0x96e560[_0x2df0('0xca')](_0x42e8a1[_0x26bbc9])||(_0x442b07[_0x2df0('0xe6')](_0x42e8a1[_0x26bbc9],_0x1782ea),_0x40f303[_0x2df0('0xe6')](_0x42e8a1[_0x26bbc9],_0x1782ea)),_0x26bbc9++;}_0x26bbc9++;}}}}for(const _0x210c68 of _0x394576){const _0x3e0b3e=_0x2ac201['insertions'][_0x210c68];for(const _0x56a67a of _0x3e0b3e){const _0x5ec353=this['_getVidAttributeName'](_0x56a67a),_0x31e781=_0x56a67a[_0x2df0('0xfd')]['getAttribute'](_0x5ec353);if(_0x442b07[_0x2df0('0xca')](_0x31e781)){const _0x35e837=_0x442b07[_0x2df0('0x77')](_0x31e781);_0x96e560[_0x2df0('0xca')](_0x31e781)||_0x96e560[_0x2df0('0xe6')](_0x31e781,{..._0x35e837}),_0x5d0cba[_0x2df0('0xe6')](_0x31e781,{..._0x35e837});}}}for(const _0x3a569d of _0x96e560[_0x2df0('0x31')]())_0x3a569d>=this[_0x2df0('0x43')]&&_0x96e560[_0x2df0('0x5f')](_0x3a569d);const _0x26416d=new Map();for(const _0x1e9b71 of _0x394576){let _0x1cacec=_0x2ac201[_0x2df0('0x61')][_0x1e9b71];for(const _0x565c95 of _0x1cacec)if(_0x565c95[_0x2df0('0xfd')]['is'](_0x2df0('0xa0'),'tableCell')){const _0x2ac3c3=this[_0x2df0('0xe8')](_0x565c95),_0x57dfb7=_0x565c95[_0x2df0('0xfd')][_0x2df0('0xff')](_0x2ac3c3);if(_0x5d0cba[_0x2df0('0xca')](_0x57dfb7)){const _0x4150aa=_0x565c95[_0x2df0('0xfd')][_0x2df0('0x3')][_0x2df0('0x3')]['getAttribute'](_0x2df0('0x3d')),_0x3e4075=_0x26416d[_0x2df0('0x77')](_0x4150aa)||new Set();_0x3e4075['add'](_0x5d0cba[_0x2df0('0x77')](_0x57dfb7)[_0x2df0('0x32')]),_0x26416d[_0x2df0('0xe6')](_0x4150aa,_0x3e4075);}}_0x1cacec=_0x2ac201[_0x2df0('0x55')][_0x1e9b71];for(const _0x2a6705 of _0x1cacec)if(_0x2a6705[_0x2df0('0xfd')]['is'](_0x2df0('0xa0'),_0x2df0('0xbc'))){const _0x13cb99=this[_0x2df0('0xe8')](_0x2a6705),_0x3dd159=_0x2a6705[_0x2df0('0xfd')]['getAttribute'](_0x13cb99);if(_0x96e560[_0x2df0('0xca')](_0x3dd159)){const _0x3bdf83=_0x2a6705['item']['parent'][_0x2df0('0x3')][_0x2df0('0xff')](_0x2df0('0x3d')),_0x2b9439=_0x26416d[_0x2df0('0x77')](_0x3bdf83)||new Set();_0x2b9439[_0x2df0('0xcb')](_0x96e560[_0x2df0('0x77')](_0x3dd159)[_0x2df0('0x32')]),_0x26416d[_0x2df0('0xe6')](_0x3bdf83,_0x2b9439);}}for(const _0xc0d668 of _0x26416d[_0x2df0('0x31')]())(_0x5d0cba[_0x2df0('0xca')](_0xc0d668)||_0x96e560[_0x2df0('0xca')](_0xc0d668))&&_0x26416d[_0x2df0('0x5f')](_0xc0d668);}for(const _0x106f80 of _0x394576){const _0x1ac97a=_0x2ac201[_0x2df0('0x61')][_0x106f80];let _0x4888c2=null,_0x21e2ac=null;for(const _0x43f902 of _0x1ac97a){const _0x463ed7=this[_0x2df0('0xe8')](_0x43f902),_0x428d54=_0x43f902[_0x2df0('0xfd')][_0x2df0('0xff')](_0x463ed7),_0x369f17=_0x26416d[_0x2df0('0x77')](_0x428d54);_0x369f17&&_0x2df0('0xc8')==_0x43f902[_0x2df0('0xf7')]&&(_0x4888c2=Array[_0x2df0('0xe')](_0x369f17)[0x0],_0x21e2ac=_0x43f902[_0x2df0('0xfd')][_0x2df0('0xff')](_0x2df0('0xc5'))),_0x4888c2&&(_0x96e560[_0x2df0('0xe6')](_0x428d54,{'userId':_0x4888c2}),_0x5d0cba[_0x2df0('0xe6')](_0x428d54,{'userId':_0x4888c2})),_0x428d54==_0x21e2ac&&(_0x4888c2=null,_0x21e2ac=null);}}const _0x5b6436={},_0x452fd3=new Set();for(const _0x2868af of _0x394576){const _0x140541=_0x4e8feb[_0x2df0('0x55')][_0x2868af],_0xb518=_0x4e8feb[_0x2df0('0x61')][_0x2868af];for(const {userId:_0x4bb32d}of this['_touchedMarkers']['values']())null!==_0x4bb32d&&_0x452fd3[_0x2df0('0xcb')](_0x4bb32d);for(const {userId:_0x3212cd}of this[_0x2df0('0x24')][_0x2df0('0x25')]())null!==_0x3212cd&&_0x452fd3['add'](_0x3212cd);this[_0x2df0('0x54')](_0xb518,_0x2ac201[_0x2df0('0x61')][_0x2868af],_0x5d0cba,_0x2df0('0xb6'),_0x452fd3),this[_0x2df0('0x54')](_0x140541,_0x2ac201[_0x2df0('0x55')][_0x2868af],_0x96e560,_0x2df0('0x8c'),_0x452fd3),_0x5b6436[_0x2868af]={'insertions':this[_0x2df0('0x6e')](_0xb518),'deletions':this[_0x2df0('0x6e')](_0x140541),'attachChange':this[_0x2df0('0x24')][_0x2df0('0x77')](_0x2868af)||null,'attributesBefore':_0xb6b1d8(this[_0x2df0('0x5c')][_0x2df0('0x77')](_0x2868af))||{},'attributesAfter':_0xb6b1d8(this[_0x2df0('0x104')]['get'](_0x2868af))};}return{'diffData':_0x5b6436,'authorsIds':Array[_0x2df0('0xe')](_0x452fd3)};}['_processRootBeforeSave'](_0x2724ed){for(const [,_0xd995c]of _0x2724ed['markers']){const _0x54260c=_0xd995c['start'][_0x2df0('0x53')]()[_0x2df0('0xf5')](_0x3fc0dc=>_0x2df0('0xbc')==_0x3fc0dc[_0x2df0('0x3f')]);for(const _0xdea17d of _0x54260c)0x1==_0xdea17d[_0x2df0('0xb1')]&&_0xdea17d[_0x2df0('0x66')](0x0)['is'](_0x2df0('0xa0'),'paragraph')&&_0xdea17d[_0x2df0('0x66')](0x0)['_setAttribute'](_0x2df0('0x9d'),!0x0);}}[_0x2df0('0x6e')](_0x50a85d){this['_processRootBeforeSave'](_0x50a85d);const _0x3c2e93=this['editor']['data']['toView'](_0x50a85d,{}),_0x3c32b9=Array[_0x2df0('0xe')](_0x3c2e93['getChildren']())[_0x2df0('0xc9')](_0x18325b=>this[_0x2df0('0x9f')](_0x18325b));return JSON[_0x2df0('0x96')](_0x3c32b9);}['_getViewJson'](_0x43fd80){if(_0x43fd80['is'](_0x2df0('0x58')))return _0x43fd80[_0x2df0('0x6d')];{const _0x1890e3=_0x43fd80;return{'type':Object['keys'](B)[_0x2df0('0x60')](_0x3208af=>_0x43fd80 instanceof B[_0x3208af]),'name':_0x1890e3['name'],'attributes':Array[_0x2df0('0xe')](_0x1890e3['getAttributes']()),'children':Array[_0x2df0('0xe')](_0x1890e3[_0x2df0('0xe0')]())[_0x2df0('0xc9')](_0x5cc7a9=>this[_0x2df0('0x9f')](_0x5cc7a9))};}}[_0x2df0('0x54')](_0xae7bb6,_0x3aa500,_0x13ac2b,_0x34c049,_0x2868b8){let _0x3384f4=null,_0x35c164=null,_0x35558f=0x0;const _0x1d04a4=this['editor'][_0x2df0('0x90')];for(let _0x160e9a=0x0;_0x160e9a<_0x3aa500[_0x2df0('0xc')];_0x160e9a++){const _0x94c096=this[_0x2df0('0xe8')](_0x3aa500[_0x160e9a]),_0x3382f4=_0x3aa500[_0x160e9a][_0x2df0('0xfd')]['getAttribute'](_0x94c096),_0x3fa34b=_0x13ac2b[_0x2df0('0x77')](_0x3382f4),_0x1ab988=_0x160e9a==_0x3aa500[_0x2df0('0xc')]-0x1;(!_0x3384f4&&_0x3fa34b&&(_0x3384f4=_0x3fa34b,_0x35c164=_0x3aa500[_0x160e9a]),_0x3384f4&&(!_0x3fa34b||_0x3fa34b[_0x2df0('0x32')]!=_0x3384f4[_0x2df0('0x32')]))&&(_0xb76e29(_0x3fa34b,L(_0x35c164,_0xae7bb6,_0x1d04a4),L(_0x3aa500[_0x160e9a],_0xae7bb6,_0x1d04a4)),_0x3384f4=_0x3fa34b||null,_0x35c164=_0x3fa34b?_0x3aa500[_0x160e9a]:null),_0x3384f4&&_0x1ab988&&_0xb76e29(_0x3fa34b,L(_0x35c164,_0xae7bb6,_0x1d04a4),W(_0x3aa500[_0x160e9a],_0xae7bb6,_0x1d04a4));}function _0xb76e29(_0x489f5b,_0x5c684d,_0x3efd34){const _0x5141a5=_0x3384f4[_0x2df0('0x32')],_0x49170d=_0x2df0('0xfc')+_0x34c049+':'+_0x5141a5+':'+_0x35558f++,_0x1258cf=_0x1d04a4[_0x2df0('0xd5')](_0x5c684d,_0x3efd34);_0xae7bb6[_0x2df0('0xa5')][_0x2df0('0xe6')](_0x49170d,_0x1258cf),null!==_0x5141a5&&_0x2868b8['add'](_0x5141a5);}}[_0x2df0('0xe8')](_0x25f59a){switch(_0x25f59a[_0x2df0('0xf7')]){case'elementStart':return'vid_start';case'elementEnd':return _0x2df0('0xc5');default:return _0x2df0('0xaa');}}[_0x2df0('0xa2')](_0x5b21dc,_0x442971){_0x5b21dc[_0x2df0('0x8b')]=null;for(const _0x3e663f in _0x5b21dc){const _0x1f7090=_0x5b21dc[_0x3e663f];if(_0x1f7090 instanceof _0x526c47){const _0x4687c2=_0x442971[_0x2df0('0x77')](_0x1f7090['root'][_0x2df0('0xd2')]);_0x5b21dc[_0x3e663f]=this[_0x2df0('0x89')](_0x1f7090,_0x4687c2);}if(_0x1f7090 instanceof _0x33e6e5){const _0x21916c=_0x442971['get'](_0x1f7090[_0x2df0('0x4d')][_0x2df0('0xd2')]);_0x5b21dc[_0x3e663f]=this[_0x2df0('0x2d')](_0x1f7090,_0x21916c);}_0x2df0('0x4d')===_0x3e663f&&(_0x5b21dc['root']=_0x442971[_0x2df0('0x77')](_0x5b21dc[_0x2df0('0x4d')][_0x2df0('0xd2')]));}}[_0x2df0('0x2d')](_0x22591f,_0x34b8c9){return this[_0x2df0('0x36')][_0x2df0('0x90')][_0x2df0('0xd5')](this[_0x2df0('0x89')](_0x22591f[_0x2df0('0x91')],_0x34b8c9),this['_fixPosition'](_0x22591f[_0x2df0('0x78')],_0x34b8c9));}[_0x2df0('0x89')](_0x124383,_0x1a9196){return this[_0x2df0('0x36')][_0x2df0('0x90')][_0x2df0('0x1f')](_0x1a9196,_0x124383[_0x2df0('0xd7')],_0x124383[_0x2df0('0x92')]);}[_0x2df0('0x4e')](_0x57118e){const _0x66ca91=this[_0x2df0('0x4c')][_0x2df0('0x77')](_0x57118e[_0x2df0('0xd')]['root'][_0x2df0('0xd2')]),_0x44cef2=this['_fixPosition'](_0x57118e[_0x2df0('0xd')],_0x66ca91),_0xfbf204=null===_0x57118e['_authorId']?null:_0x57118e[_0x2df0('0x64')]||this[_0x2df0('0x36')]['plugins'][_0x2df0('0x77')](_0x2df0('0xeb'))['me']['id'],_0x460938=_0x44cef2[_0x2df0('0x3')],_0x15536d=this['_revisionId'],_0x1bbe09=[];for(const _0x560add of _0x57118e[_0x2df0('0xec')])if(_0x560add['is'](_0x2df0('0xa0')))_0x1bbe09[_0x2df0('0x17')](this[_0x2df0('0x8e')](_0x560add));else for(let _0x6e9f21=0x0;_0x6e9f21<_0x560add[_0x2df0('0xe4')];_0x6e9f21++)_0x1bbe09[_0x2df0('0x17')](new _0x772d8e(_0x2df0('0x58'),{'vid':this[_0x2df0('0xcf')]++}));const _0xf1d29a=this[_0x2df0('0xcf')];for(let _0x26c144=_0x15536d;_0x26c144<_0xf1d29a;_0x26c144++)this[_0x2df0('0xae')][_0x2df0('0xe6')](_0x26c144,{'userId':_0xfbf204});_0x460938[_0x2df0('0xc7')](_0x44cef2[_0x2df0('0x88')],_0x1bbe09);}[_0x2df0('0xa')](_0x3d888b){(_0x3d888b=this[_0x2df0('0x39')](_0x3d888b,this['_idsRoots']))[_0x2df0('0xa3')]();const _0x160b67=null===_0x3d888b[_0x2df0('0x64')]?null:_0x3d888b[_0x2df0('0x64')]||this[_0x2df0('0x36')][_0x2df0('0x99')]['get'](_0x2df0('0xeb'))['me']['id'],_0x4f17cc=_0x3d888b[_0x2df0('0xda')](),_0x3cf4f0=_0x4f17cc[_0x2df0('0x3')],_0x2dcbf5=_0x4f17cc[_0x2df0('0x88')];!function _0x2d9c29(_0x5f410e,_0x53ac8d,_0x16e6e0,_0x3c369a){for(let _0x2dec6a=_0x16e6e0;_0x2dec6a<_0x3c369a;_0x2dec6a++){const _0x1523ee=_0x53ac8d[_0x2df0('0x66')](_0x2dec6a);_0x1523ee['is']('element',_0x2df0('0x58'))?_0x5f410e[_0x2df0('0xe6')](_0x1523ee[_0x2df0('0xff')](_0x2df0('0xaa')),{'userId':_0x160b67}):(_0x5f410e['set'](_0x1523ee[_0x2df0('0xff')](_0x2df0('0x3d')),{'userId':_0x160b67}),_0x2d9c29(_0x5f410e,_0x1523ee,0x0,_0x1523ee[_0x2df0('0xb1')]),_0x5f410e['set'](_0x1523ee[_0x2df0('0xff')](_0x2df0('0xc5')),{'userId':_0x160b67}));}}(this[_0x2df0('0xae')],_0x3cf4f0,_0x2dcbf5,_0x2dcbf5+_0x3d888b[_0x2df0('0x7a')]);}[_0x2df0('0x5d')](_0x364160){const _0x2cddb8=null===(_0x364160=this[_0x2df0('0x39')](_0x364160,this[_0x2df0('0x4c')]))[_0x2df0('0x64')]?null:_0x364160[_0x2df0('0x64')]||this[_0x2df0('0x36')]['plugins']['get'](_0x2df0('0xeb'))['me']['id'],_0x1b4318=_0x364160['targetPosition']['parent'],_0x4a96cf=_0x364160[_0x2df0('0x52')]['parent'],_0x11764c=_0x1b4318[_0x2df0('0xff')](_0x2df0('0xc5')),_0x35540b=_0x4a96cf['getAttribute']('vid_start');_0x1b4318[_0x2df0('0xa8')]('vid_end',_0x4a96cf['getAttribute'](_0x2df0('0xc5'))),_0x4a96cf[_0x2df0('0xa8')](_0x2df0('0xc5'),_0x11764c),this['_touched']['set'](_0x35540b,{'userId':_0x2cddb8}),this[_0x2df0('0xae')][_0x2df0('0xe6')](_0x11764c,{'userId':_0x2cddb8}),_0x364160['_execute']();}[_0x2df0('0x103')](_0x10bfcd){const _0x5437d7=null===(_0x10bfcd=this[_0x2df0('0x39')](_0x10bfcd,this[_0x2df0('0x4c')]))[_0x2df0('0x64')]?null:_0x10bfcd['_authorId']||this[_0x2df0('0x36')][_0x2df0('0x99')][_0x2df0('0x77')](_0x2df0('0xeb'))['me']['id'],_0xf36512=_0x10bfcd[_0x2df0('0xf0')],_0x369e09=_0x10bfcd[_0x2df0('0xe1')][_0x2df0('0x3')];_0x10bfcd[_0x2df0('0xa3')]();const _0x45d348=_0x369e09['getAttribute'](_0x2df0('0xc5')),_0x2b7875=_0x10bfcd[_0x2df0('0x19')][_0x2df0('0x6a')];if(_0xf36512){const _0x411c80=_0x2b7875[_0x2df0('0xff')]('vid_end'),_0x4aa89a=_0x369e09[_0x2df0('0xff')](_0x2df0('0xc5'));_0x369e09['_setAttribute'](_0x2df0('0xc5'),_0x411c80),_0x2b7875[_0x2df0('0xa8')]('vid_end',_0x4aa89a),this[_0x2df0('0xae')][_0x2df0('0xe6')](_0x369e09[_0x2df0('0xff')](_0x2df0('0xc5')),{'userId':_0x5437d7}),this['_touched'][_0x2df0('0xe6')](_0x2b7875[_0x2df0('0xff')](_0x2df0('0x3d')),{'userId':_0x5437d7});}else{const _0xb2cb1=this[_0x2df0('0xcf')]++,_0x3b6b7b=this[_0x2df0('0xcf')]++;_0x369e09[_0x2df0('0xa8')](_0x2df0('0xc5'),_0xb2cb1),_0x2b7875[_0x2df0('0xa8')](_0x2df0('0x3d'),_0x3b6b7b),_0x2b7875[_0x2df0('0xa8')](_0x2df0('0xc5'),_0x45d348),this[_0x2df0('0xae')][_0x2df0('0xe6')](_0xb2cb1,{'userId':_0x5437d7}),this[_0x2df0('0xae')][_0x2df0('0xe6')](_0x3b6b7b,{'userId':_0x5437d7});}}[_0x2df0('0x2c')](_0x3751af){if(!_0x3751af['affectsData'])return;const _0x553f06=(_0x3751af=this[_0x2df0('0x39')](_0x3751af,this[_0x2df0('0x4a')]))[_0x2df0('0xce')]?_0x3751af[_0x2df0('0xce')][_0x2df0('0x4d')]:null,_0x27c7f2=_0x3751af[_0x2df0('0x47')]?_0x3751af[_0x2df0('0x47')]['root']:null;_0x553f06&&this[_0x2df0('0xf8')]['delete'](_0x3751af[_0x2df0('0x3f')]),_0x27c7f2&&this[_0x2df0('0xf8')][_0x2df0('0xe6')](_0x3751af[_0x2df0('0x3f')],_0x3751af[_0x2df0('0x47')]['clone']());const _0x173bb4=null===_0x3751af[_0x2df0('0x64')]?null:_0x3751af[_0x2df0('0x64')]||this[_0x2df0('0x36')][_0x2df0('0x99')][_0x2df0('0x77')]('Users')['me']['id'],_0x7578f4=_0x3751af[_0x2df0('0x3f')];if(!this[_0x2df0('0xb8')][_0x2df0('0xca')](_0x7578f4))return void this[_0x2df0('0xb8')][_0x2df0('0xe6')](_0x7578f4,{'range':_0x3751af[_0x2df0('0xce')],'userId':_0x173bb4});const _0x568df1=this[_0x2df0('0xb8')][_0x2df0('0x77')](_0x7578f4),_0x3455b3=_0x568df1[_0x2df0('0xf6')],_0x1e19a5=_0x3751af[_0x2df0('0x47')];null==_0x3455b3&&null==_0x1e19a5||_0x3455b3&&_0x1e19a5&&_0x3455b3[_0x2df0('0x9e')](_0x1e19a5)?this[_0x2df0('0xb8')][_0x2df0('0x5f')](_0x3751af[_0x2df0('0x3f')]):_0x568df1[_0x2df0('0x32')]=_0x173bb4;}[_0x2df0('0x46')](_0x2c4449,_0x3151af){this[_0x2df0('0x4a')][_0x2df0('0xca')](_0x2c4449['rootName'])?this[_0x2df0('0x4a')]['get'](_0x2c4449[_0x2df0('0xd2')])[_0x2df0('0xac')]=_0x2c4449[_0x2df0('0x62')]:(this[_0x2df0('0x4a')][_0x2df0('0xe6')](_0x2c4449[_0x2df0('0xd2')],G(_0x2c4449[_0x2df0('0xd2')],!0x0)),this['_diffRootsAttributes']['set'](_0x2c4449[_0x2df0('0xd2')],{}),_0x3151af&&this['_idsRoots'][_0x2df0('0xe6')](_0x2c4449[_0x2df0('0xd2')],G(_0x2c4449['rootName'],!0x0)));const _0x3ece76=null===_0x2c4449[_0x2df0('0x64')]?null:_0x2c4449[_0x2df0('0x64')]||this[_0x2df0('0x36')][_0x2df0('0x99')][_0x2df0('0x77')](_0x2df0('0xeb'))['me']['id'],_0x12ef6d=this[_0x2df0('0x24')][_0x2df0('0x77')](_0x2c4449[_0x2df0('0xd2')]);_0x12ef6d&&_0x12ef6d[_0x2df0('0x32')]===_0x3ece76?this[_0x2df0('0x24')]['delete'](_0x2c4449[_0x2df0('0xd2')]):this['_touchedRoots']['set'](_0x2c4449['rootName'],{'userId':_0x3ece76,'isAttached':_0x2c4449['isAdd']});}[_0x2df0('0x8f')](_0x731db4){const _0x138b7e=this[_0x2df0('0x104')][_0x2df0('0x77')](_0x731db4[_0x2df0('0x4d')][_0x2df0('0xd2')]);null===_0x731db4['newValue']?delete _0x138b7e[_0x731db4[_0x2df0('0xd3')]]:_0x138b7e[_0x731db4[_0x2df0('0xd3')]]=_0x731db4[_0x2df0('0x81')];}}function q(_0x15f3f4){const _0x3f1371=G(_0x15f3f4[_0x2df0('0xd2')],_0x15f3f4[_0x2df0('0x27')]());for(const _0x218c04 of _0x15f3f4['getChildren']()){const _0x2fb175=_0x218c04[_0x2df0('0x7d')](!0x0);_0x3f1371[_0x2df0('0xb3')](_0x2fb175);}return _0x3f1371;}function G(_0x4a1b9c,_0x19b911=!0x0){const _0x1d2dfd=new _0x55a33d();return _0x1d2dfd[_0x2df0('0xd2')]=_0x4a1b9c,_0x1d2dfd['_isAttached']=_0x19b911,_0x1d2dfd[_0x2df0('0x27')]=()=>_0x1d2dfd['_isAttached'],_0x1d2dfd;}function L(_0x11a31b,_0x4ae9d5,_0x5f23e8){const _0x53d8f9=_0x2df0('0xb5')==_0x11a31b[_0x2df0('0xf7')]?_0x5f23e8[_0x2df0('0x2f')](_0x11a31b['item'],_0x2df0('0x78')):_0x5f23e8[_0x2df0('0x84')](_0x11a31b[_0x2df0('0xfd')]);return _0x5f23e8['createPositionFromPath'](_0x4ae9d5,_0x53d8f9[_0x2df0('0xd7')],_0x53d8f9[_0x2df0('0x92')]);}function W(_0x4e1ddc,_0x25a2df,_0x4cedd7){const _0x34f00e=_0x2df0('0xc8')==_0x4e1ddc[_0x2df0('0xf7')]?_0x4cedd7[_0x2df0('0x2f')](_0x4e1ddc[_0x2df0('0xfd')],0x0):_0x4cedd7['createPositionAfter'](_0x4e1ddc[_0x2df0('0xfd')]);return _0x4cedd7[_0x2df0('0x1f')](_0x25a2df,_0x34f00e['path'],_0x34f00e[_0x2df0('0x92')]);}
|