@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231114.0 → 0.0.0-nightly-20231116.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 _0x56b1=['finally','setRevisionData','getRevisionDocumentData','deletion','find','_startingVersion','_handleMoveOperation','source','getOperation','document','_replaceEditorDataWithRevisionData','RevisionsRepository','_handleSplitOperation','from','dataDowncast','_bufferedUpdates','conversion','parse','merge','_operations','attributesBefore','_fixPosition','_generateTape','_lastFrom','range','clone','sendBufferedUpdates','_bufferUpdate','position','_pendingAction','creatorId','diffData','detachRoot','_getBaseVids','text','_transformMarkers','fromEntries','_diffRootsAttributes','stickiness','_lastTo','reInit','newRange','start','some','slice','_prepareViewToSave','offsetSize','$graveyard','map','RevisionTracker','insertionPosition','_touchedMarkers','children','affectsData','hasContent','get','authorsIds','startsWith','getOperations','sort','includes','adapter','_appendChild','clear','_idsRoots','_handleInsertOperation','keepParagraph','getAttribute','reverse','elementEnd','_touchedRoots','currentRevision','addRevisionData','getRoot','_loadRevisionData','roots','_markChanges','resolve','stringify','_getVidAttributeName','isReady','_cloneOperation','_continueCurrentRevision','locale','_setConversion','getIndex','_baseRootsAttributes','_loadState','howMany','editor','getChildren','_update','_authorId','_getPreviousFrom','_saveMetaData','_insertChild','_getFromVersion','_markers','oldRange','deletions','marker','$text','version','insertion','config','data-revision-','authors','offset','getData','name','createPositionBefore','newValue','addRoot','vid_end','_createCurrentRevision','revision:','createRange','parent','length','createPositionFromPath','markers','baseVersion','_fixOperation','vid_start','_fixRange','initial','delete','changeRootAttribute','getWalker','_processRootBeforeSave','NEGATIVE_INFINITY','_loadedStateData','_getState','_baseRoots','buildRevisionData','_createInitialRevision','createRevision','isAttached','setSource','_addPendingAction','previousPosition','_removePendingAction','toData','getChild','getRevisions','useFillerType','vid','attachChange','_copyMarkers','insertions','bind','add','type','keys','graveyardPosition','createPositionAt','_savedMetaData','elementStart','data','initialData','_removeMetaData','repository','_baseIdsRoots','rootsAttributes','item','path','_handleMarkerOperation','_diffRoots','_initialRevisionId','getMovedRangeStart','isEqual','userId','_reset','define','getUser','getRevision','model','nodes','for','updateRevisions','_calculateMetaData','ready','_makeRevision','requires','getNodeByPath','history','root','getAncestors','markerToData','creator','toVersion','afterInit','getRange','_startingRevisionId','removeRootAttribute','_revisionDataBuilder','_findInsertionIndex','plugins','_makeIdsRoot','createdAt','toModel','_source','revision','_clone','revision-start','rootName','editing','_revisionId','getTransformedByOperation','key','PendingActions','PENDING_ACTION_REVISION_HISTORY','insert','paragraph','revision-end','splitPosition','then','_isPendingUpdate','end','Users','values','max','_getViewJson','filter','element','tableCell','_handleRootAttributeOperation','_createFromRanges','getLatestVersion','_isAttached','string','childCount','has','_removeRevisionMarkers','remove','split','_makeModelFromViewString','saveRevision','_execute','getAttributes','revisionHistory.resumeUnsavedRevision','addRevision','attributes','loadState','documentFragment','getRevisionRootsAttributes','move','getRootNames','reinsert','_touched','set','shift','RealTimeCollaborationClient','processor','_handleRootOperation','_isInit','init','nodeAfter','push','_setAttribute','view','fromVersion','createPositionAfter','_applyOperations','_handleOperation','collaboration.channelId','isAdd','getCurrentRevisionId','marked'];(function(_0x5caafd,_0x56b1c6){const _0x1fb5e0=function(_0x5bd84a){while(--_0x5bd84a){_0x5caafd['push'](_0x5caafd['shift']());}};_0x1fb5e0(++_0x56b1c6);}(_0x56b1,0x7c));const _0x1fb5=function(_0x5caafd,_0x56b1c6){_0x5caafd=_0x5caafd-0x0;let _0x1fb5e0=_0x56b1[_0x5caafd];return _0x1fb5e0;};import{Users as _0x5b1e42}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x1a12e5,PendingActions as _0x5af27d}from'ckeditor5/src/core';import{logWarning as _0x2f76a5,uid as _0x3fca5e}from'ckeditor5/src/utils';import{Position as _0x28fd58,Range as _0xb5b9b7,Element as _0x402e68,DocumentFragment as _0x20ef05,ViewText as _0x3d0082,ViewElement as _0x5e937e,ViewContainerElement as _0x565dd9,ViewAttributeElement as _0x2dfef0,ViewEmptyElement as _0x593b87,ViewRawElement as _0x30ac69,ViewUIElement as _0x6ac8a,ViewDocumentFragment as _0xfd42cc}from'ckeditor5/src/engine';import _0x5d8db2 from'./revisionsrepository';import{getTranslation as _0x32ca8b}from'./utils/common-translations';import{cloneDeep as _0x32fc6f,isEqual as _0x116a51}from'lodash-es';const B={'c':_0x565dd9,'a':_0x2dfef0,'e':_0x593b87,'r':_0x30ac69,'u':_0x6ac8a};export default class l extends _0x1a12e5{static get['pluginName'](){return _0x1fb5('0xc2');}static get[_0x1fb5('0x3b')](){return[_0x5b1e42,_0x5d8db2,_0x5af27d];}constructor(_0x4d052d){super(_0x4d052d),this[_0x1fb5('0xce')]=null,this[_0x1fb5('0xd8')]=null,this[_0x1fb5('0x47')]=new H(this[_0x1fb5('0xea')]),this[_0x1fb5('0x2c')]=this['editor'][_0x1fb5('0xf9')][_0x1fb5('0xc8')](_0x1fb5('0x8d'))||_0x1fb5('0x1'),this[_0x1fb5('0xa0')]=new Map(),this[_0x1fb5('0x7')]=null;const _0x40a9b9=_0x3fca5e();this[_0x1fb5('0x4d')]={'history':this[_0x1fb5('0xea')][_0x1fb5('0x34')][_0x1fb5('0x9a')][_0x1fb5('0x3d')],'getLatestVersion':()=>Promise[_0x1fb5('0xde')](this[_0x1fb5('0xea')][_0x1fb5('0x34')][_0x1fb5('0x9a')][_0x1fb5('0xf7')]),'getCurrentRevisionId':()=>_0x40a9b9},this['set'](_0x1fb5('0xe1'),!0x1),this[_0x1fb5('0x7e')]('isEnabled',!0x0),this[_0x1fb5('0x7e')]('_isPendingUpdate',!0x1),this['editor']['config'][_0x1fb5('0x31')](_0x1fb5('0x74'),!0x0),this['editor']['conversion'][_0x1fb5('0x36')]('upcast')['dataToMarker']({'view':_0x1fb5('0x4e')});}[_0x1fb5('0x84')](){this[_0x1fb5('0x25')]=this[_0x1fb5('0xea')][_0x1fb5('0x49')]['get'](_0x1fb5('0x9c')),this[_0x1fb5('0xe5')](),this['editor'][_0x1fb5('0x22')]['on'](_0x1fb5('0x39'),()=>{const _0x53817c=this[_0x1fb5('0x25')][_0x1fb5('0x33')](0x0),_0x5165cc=_0x53817c&&null===_0x53817c[_0x1fb5('0x41')]?_0x53817c:null;if(this['_continueCurrentRevision']=!!_0x5165cc&&this[_0x1fb5('0xea')][_0x1fb5('0xf9')][_0x1fb5('0xc8')](_0x1fb5('0x74')),this[_0x1fb5('0xea')][_0x1fb5('0x49')][_0x1fb5('0x6c')](_0x1fb5('0x80'))){const _0xd1e209=this[_0x1fb5('0x4d')][_0x1fb5('0x8f')](),_0x210020=this[_0x1fb5('0x25')][_0x1fb5('0x33')](_0xd1e209);if(_0x210020)this[_0x1fb5('0x96')]=_0x210020[_0x1fb5('0x89')],this['_continueCurrentRevision']=!0x1;else{const _0x4e5a0d=this[_0x1fb5('0x4d')][_0x1fb5('0x3d')][_0x1fb5('0xa4')]['find'](_0x38fd57=>!_0x38fd57[_0x1fb5('0x83')]),_0x213509=_0x4e5a0d?_0x4e5a0d[_0x1fb5('0x10a')]:this[_0x1fb5('0x4d')][_0x1fb5('0x3d')][_0x1fb5('0xf7')];_0x53817c?(_0x53817c[_0x1fb5('0x42')]<_0x213509&&_0x53817c[_0x1fb5('0xec')]({'toVersion':_0x213509}),this[_0x1fb5('0xe3')]?(this[_0x1fb5('0x4d')][_0x1fb5('0x8f')]=()=>_0x5165cc['id'],this['_startingVersion']=_0x5165cc[_0x1fb5('0x89')]):(this['_startingVersion']=_0x53817c[_0x1fb5('0x42')],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x213509,this[_0x1fb5('0xe3')]=!0x1);}}else _0x5165cc&&(this['editor'][_0x1fb5('0x34')][_0x1fb5('0x9a')][_0x1fb5('0x3d')]['version']=Math[_0x1fb5('0x61')](_0x5165cc[_0x1fb5('0x42')],this[_0x1fb5('0xea')][_0x1fb5('0x34')]['document'][_0x1fb5('0x3d')][_0x1fb5('0xf7')]),_0x5165cc[_0x1fb5('0x89')]===_0x5165cc[_0x1fb5('0x42')]?(0x0!==_0x5165cc[_0x1fb5('0x89')]&&(this['_source'][_0x1fb5('0x8f')]=()=>_0x5165cc['id']),this[_0x1fb5('0xe3')]=!0x1):this['_continueCurrentRevision']&&(this['_source'][_0x1fb5('0x8f')]=()=>_0x5165cc['id'],this['_startingVersion']=_0x5165cc[_0x1fb5('0x89')])),this[_0x1fb5('0xe3')]||(this[_0x1fb5('0x96')]=this[_0x1fb5('0xea')][_0x1fb5('0x34')][_0x1fb5('0x9a')]['version']);this[_0x1fb5('0x47')][_0x1fb5('0x84')](this[_0x1fb5('0x4d')][_0x1fb5('0x3d')]),this[_0x1fb5('0xb')](this[_0x1fb5('0x96')]),this[_0x1fb5('0x103')](this[_0x1fb5('0x96')]),this[_0x1fb5('0xce')]&&this[_0x1fb5('0xab')]();}),this[_0x1fb5('0x1a')](_0x1fb5('0xe1'))['to'](this,_0x1fb5('0x5d'),_0x34a7a3=>!_0x34a7a3);}async[_0x1fb5('0x43')](){if(this[_0x1fb5('0x25')][_0x1fb5('0x107')]>0x0){const _0x3c8886=this['repository']['getRevision'](0x0),_0x55b42d=await this[_0x1fb5('0x93')](_0x3c8886),_0x37ad2d=await this['getRevisionRootsAttributes'](_0x3c8886);this['_replaceEditorDataWithRevisionData'](_0x55b42d,_0x37ad2d);}}[_0x1fb5('0xe')](_0x2c7460){this[_0x1fb5('0x4d')]=_0x2c7460;}async['update'](){const _0x29f98f=await this[_0x1fb5('0x4d')][_0x1fb5('0x68')]();if(_0x29f98f>this[_0x1fb5('0xd8')][_0x1fb5('0x42')]){await this[_0x1fb5('0xe8')]();const _0x1bab25=this[_0x1fb5('0xa')]({'revision':this['currentRevision'],'to':_0x29f98f});_0x1bab25[_0x1fb5('0xfb')]=_0x1bab25['authorsIds']['map'](_0x564510=>this['editor']['plugins'][_0x1fb5('0xc8')]('Users')[_0x1fb5('0x32')](_0x564510)),this[_0x1fb5('0xd8')]['_update'](_0x1bab25);}}async[_0x1fb5('0xe8')](){this[_0x1fb5('0xe3')]&&!this['_loadedStateData']&&(await this[_0x1fb5('0xdb')](this['currentRevision']),this[_0x1fb5('0x47')][_0x1fb5('0x77')](this[_0x1fb5('0xd8')]),this[_0x1fb5('0x7')]={'fromVersion':this['currentRevision'][_0x1fb5('0x89')],'authors':this[_0x1fb5('0xd8')][_0x1fb5('0xfb')]['slice']()});}async[_0x1fb5('0x71')](_0x32c127={},_0xd4d8ce=null){const _0x25e718=[];await this[_0x1fb5('0xe8')](),this[_0x1fb5('0xe3')]=!0x1,_0xd4d8ce>this[_0x1fb5('0xd8')][_0x1fb5('0x42')]&&(_0xd4d8ce=null),null===_0xd4d8ce&&(_0xd4d8ce=await this['_source']['getLatestVersion']());const _0x330338=this[_0x1fb5('0xf1')](_0xd4d8ce),_0x51bb30=this[_0x1fb5('0xa')]({'from':_0x330338,'to':_0xd4d8ce});if(this['currentRevision']['toVersion']<_0xd4d8ce){const _0x2d0b35=this[_0x1fb5('0xa')]({'revision':this[_0x1fb5('0xd8')],'from':_0xd4d8ce,'to':_0xd4d8ce});_0x2d0b35[_0x1fb5('0xfb')]=[],_0x2d0b35[_0x1fb5('0xc9')]=[],_0x2d0b35['id']=this[_0x1fb5('0xd8')]['id'],this[_0x1fb5('0xd8')][_0x1fb5('0xec')](_0x2d0b35,!0x0),delete _0x2d0b35['authors'],_0x25e718[_0x1fb5('0x86')](_0x2d0b35);}_0x32c127[_0x1fb5('0xaf')]=this['editor'][_0x1fb5('0x49')][_0x1fb5('0xc8')](_0x1fb5('0x5f'))['me']['id'],_0x32c127[_0x1fb5('0xfe')]=_0x32c127['name']||null,_0x32c127['id']=_0x32c127['id']||_0x3fca5e(),_0x32c127={..._0x32c127,..._0x51bb30};const _0x2864fa=this['addRevisionData'](_0x32c127);_0x25e718[_0x1fb5('0x86')](_0x32c127);const _0x5a9bfe=this[_0x1fb5('0x25')][_0x1fb5('0xe6')](_0x2864fa);if(0x0!==_0x5a9bfe){const _0x3eda00=this['repository'][_0x1fb5('0x33')](_0x5a9bfe-0x1);if(_0x3eda00[_0x1fb5('0x89')]!==_0xd4d8ce){const _0x226312=this[_0x1fb5('0x47')]['getData'](_0xd4d8ce,_0x3eda00[_0x1fb5('0x42')]),_0x3ec3ab={'id':_0x3eda00['id'],'diffData':_0x226312[_0x1fb5('0xb0')],'authorsIds':_0x226312[_0x1fb5('0xc9')],'authors':_0x226312[_0x1fb5('0xc9')][_0x1fb5('0xc1')](_0x323d4b=>this['editor']['plugins'][_0x1fb5('0xc8')](_0x1fb5('0x5f'))[_0x1fb5('0x32')](_0x323d4b)),'fromVersion':_0xd4d8ce};_0x3eda00===this[_0x1fb5('0xd8')]&&(_0x3ec3ab[_0x1fb5('0x4b')]=new Date(_0x32c127['createdAt']['getTime']()+0xa)),_0x3eda00[_0x1fb5('0xec')](_0x3ec3ab,!0x0),delete _0x3ec3ab[_0x1fb5('0xfb')],_0x25e718[_0x1fb5('0x86')](_0x3ec3ab);}}if(this[_0x1fb5('0xce')]){for(const _0x2f1dba of _0x25e718)this[_0x1fb5('0xac')](_0x2f1dba['id'],_0x2f1dba,!0x0);this[_0x1fb5('0xab')]();}return _0x2864fa;}[_0x1fb5('0xd9')](_0x34eb25){const _0x18a606=this[_0x1fb5('0x25')][_0x1fb5('0xc')](_0x34eb25);return this[_0x1fb5('0xce')]&&_0x18a606['on']('_update',(_0x1a8453,_0x2648b9,_0x252bf9)=>{_0x252bf9||(this[_0x1fb5('0xac')](_0x2648b9['id'],_0x2648b9,!0x0),this['sendBufferedUpdates']());}),this[_0x1fb5('0x25')][_0x1fb5('0x75')](_0x18a606,this['_findInsertionIndex'](_0x18a606)),_0x18a606;}async[_0x1fb5('0x93')](_0x1a76f6){await this['_loadRevisionData'](_0x1a76f6);const _0x5de1ae={};for(const _0x342ce9 in _0x1a76f6['diffData']){if(_0x1a76f6[_0x1fb5('0xb0')][_0x342ce9]['attachChange']&&!_0x1a76f6['diffData'][_0x342ce9][_0x1fb5('0x17')][_0x1fb5('0xd')])continue;const _0x8c3202=this[_0x1fb5('0x6d')](JSON[_0x1fb5('0xa2')](_0x1a76f6[_0x1fb5('0xb0')][_0x342ce9][_0x1fb5('0x19')])),_0x23680a=this[_0x1fb5('0xea')]['editing'][_0x1fb5('0x88')][_0x1fb5('0x9a')],_0x579605=new _0xfd42cc(_0x23680a,_0x8c3202[_0x1fb5('0xc1')](_0xcc067d=>J(_0xcc067d,this[_0x1fb5('0xea')])));this[_0x1fb5('0xea')][_0x1fb5('0x22')]['processor'][_0x1fb5('0x15')](_0x1fb5('0x90')),_0x5de1ae[_0x342ce9]=this[_0x1fb5('0xea')][_0x1fb5('0x22')][_0x1fb5('0x81')][_0x1fb5('0x12')](_0x579605),this['editor'][_0x1fb5('0x22')][_0x1fb5('0x81')]['useFillerType']('default');}return _0x5de1ae;}async[_0x1fb5('0x79')](_0x1cfafb){await this[_0x1fb5('0xdb')](_0x1cfafb);const _0x10bb94={};for(const _0x25ea43 in _0x1cfafb[_0x1fb5('0xb0')])_0x1cfafb[_0x1fb5('0xb0')][_0x25ea43][_0x1fb5('0x17')]&&!_0x1cfafb[_0x1fb5('0xb0')][_0x25ea43][_0x1fb5('0x17')][_0x1fb5('0xd')]||(_0x10bb94[_0x25ea43]=_0x1cfafb[_0x1fb5('0xb0')][_0x25ea43]['attributesAfter']||{});return _0x10bb94;}[_0x1fb5('0xab')](){if(0x0===this[_0x1fb5('0xa0')]['size'])return;if(this[_0x1fb5('0x5d')])return;let _0x241249=Array[_0x1fb5('0x9e')](this[_0x1fb5('0xa0')][_0x1fb5('0x60')]());this['_bufferedUpdates'][_0x1fb5('0xd0')]();for(let _0xa54fb4=0x0;_0xa54fb4<_0x241249['length'];_0xa54fb4++){const _0x496c0d=_0x241249[_0xa54fb4];let _0x572f3f=!0x1;for(const _0x5a969b of Object['keys'](_0x496c0d))void 0x0===_0x496c0d[_0x5a969b]?delete _0x496c0d[_0x5a969b]:'id'!==_0x5a969b&&(_0x572f3f=!0x0);_0x572f3f||(_0x241249[_0xa54fb4]=null);}if(_0x241249=_0x241249[_0x1fb5('0x63')](_0x423dc3=>null!==_0x423dc3),!_0x241249['length'])return;for(let _0x127d59=0x0;_0x127d59<_0x241249['length'];_0x127d59++){const _0x95a309=_0x241249[_0x127d59];void 0x0!==_0x95a309[_0x1fb5('0x89')]&&void 0x0===_0x95a309[_0x1fb5('0x42')]&&(_0x95a309[_0x1fb5('0x42')]=this[_0x1fb5('0x25')][_0x1fb5('0x33')](_0x95a309['id'])[_0x1fb5('0x42')]),void 0x0!==_0x95a309[_0x1fb5('0x42')]&&void 0x0===_0x95a309[_0x1fb5('0x89')]&&(_0x95a309[_0x1fb5('0x89')]=this[_0x1fb5('0x25')]['getRevision'](_0x95a309['id'])['fromVersion']);}const _0x4e5644=this[_0x1fb5('0xea')]['config'][_0x1fb5('0xc8')]('collaboration.channelId');this[_0x1fb5('0x5d')]=!0x0,this[_0x1fb5('0xf')](),this[_0x1fb5('0xce')][_0x1fb5('0x37')](_0x241249,_0x4e5644)[_0x1fb5('0x91')](()=>{this['_isPendingUpdate']=!0x1;})[_0x1fb5('0x5c')](_0x24bbdc=>{if(_0x24bbdc)for(const _0x4a19e7 of _0x24bbdc)this[_0x1fb5('0x92')]({'id':_0x4a19e7['id'],'createdAt':_0x4a19e7[_0x1fb5('0x4b')]});this[_0x1fb5('0x11')](),this['sendBufferedUpdates']();});}[_0x1fb5('0x9b')](_0x968a5d,_0x53d7e9){let _0x16428e=this[_0x1fb5('0xea')][_0x1fb5('0xf9')][_0x1fb5('0xc8')](_0x1fb5('0x23')),_0x49021f=this[_0x1fb5('0xea')][_0x1fb5('0xf9')][_0x1fb5('0xc8')]('rootsAttributes');if(void 0x0===_0x16428e){_0x16428e={};for(const _0x193f73 of this['editor'][_0x1fb5('0x34')][_0x1fb5('0x9a')][_0x1fb5('0x7b')]())_0x16428e[_0x193f73]='';}if('string'==typeof _0x16428e&&(_0x16428e={'main':_0x16428e}),void 0x0===_0x49021f){_0x49021f={};for(const _0x1655e8 of this[_0x1fb5('0xea')][_0x1fb5('0x34')][_0x1fb5('0x9a')][_0x1fb5('0x7b')]())_0x49021f[_0x1655e8]={};}let _0x5821f5=!0x1;const _0x14ce6a=Object[_0x1fb5('0x1d')](_0x16428e),_0x5a7ff2=Object[_0x1fb5('0x1d')](_0x968a5d);for(const _0x266cd0 of _0x14ce6a){if(_0x16428e[_0x266cd0]!==_0x968a5d[_0x266cd0]&&''!==_0x16428e[_0x266cd0]['trim']()){_0x5821f5=!0x0;break;}if(!_0x116a51(_0x49021f[_0x266cd0],_0x53d7e9[_0x266cd0])&&Object[_0x1fb5('0x1d')](_0x49021f[_0x266cd0])[_0x1fb5('0x107')]>0x0){_0x5821f5=!0x0;break;}}_0x5821f5||(_0x5821f5=_0x5a7ff2[_0x1fb5('0xbc')](_0x145f9a=>!this[_0x1fb5('0xea')][_0x1fb5('0x34')][_0x1fb5('0x9a')][_0x1fb5('0xda')](_0x145f9a))),_0x5821f5&&_0x2f76a5('editor-initial-data-replaced-with-revision-data',{'editorData':_0x16428e,'editorRootsAttributes':_0x49021f,'revisionData':_0x968a5d,'revisionRootsAttributes':_0x53d7e9}),this[_0x1fb5('0xea')][_0x1fb5('0xf9')]['set'](_0x1fb5('0x23'),_0x968a5d),this[_0x1fb5('0xea')][_0x1fb5('0xf9')]['set'](_0x1fb5('0x27'),_0x53d7e9);}[_0x1fb5('0xf')](){if(!this[_0x1fb5('0xae')]){const _0x675df3=this['editor'][_0x1fb5('0x49')][_0x1fb5('0xc8')](_0x1fb5('0x56'));this[_0x1fb5('0xae')]=_0x675df3[_0x1fb5('0x1b')](_0x32ca8b(this['editor'][_0x1fb5('0xe4')],_0x1fb5('0x57')));}}[_0x1fb5('0x11')](){this[_0x1fb5('0xae')]&&(this['editor']['plugins'][_0x1fb5('0xc8')](_0x1fb5('0x56'))[_0x1fb5('0x6e')](this[_0x1fb5('0xae')]),this[_0x1fb5('0xae')]=null);}[_0x1fb5('0x48')](_0x121e97){const _0x573867=this['repository'][_0x1fb5('0x14')]();_0x573867[_0x1fb5('0xd5')]();let _0x15e4e6=0x0;for(;_0x15e4e6<_0x573867[_0x1fb5('0x107')];){const _0x79f50f=_0x573867[_0x15e4e6];if(_0x79f50f===this[_0x1fb5('0xd8')]){_0x15e4e6++;continue;}if(_0x79f50f['id']===this[_0x1fb5('0x2c')])break;const _0x182e38=_0x121e97[_0x1fb5('0x42')]-_0x79f50f[_0x1fb5('0x42')]||_0x121e97['fromVersion']-_0x79f50f['fromVersion'];if(_0x182e38>0x0)break;if(_0x182e38<0x0)_0x15e4e6++;else{if(!_0x121e97[_0x1fb5('0x41')]&&_0x79f50f['creator'])break;if(_0x79f50f['creator']||!_0x121e97[_0x1fb5('0x41')]){if(_0x121e97[_0x1fb5('0x4b')]>_0x79f50f[_0x1fb5('0x4b')])break;_0x15e4e6++;}else _0x15e4e6++;}}return _0x15e4e6;}[_0x1fb5('0x92')](_0x5af8df){const _0x1f9f70=this[_0x1fb5('0x25')]['getRevision'](_0x5af8df['id']);if(_0x5af8df['createdAt']&&(_0x5af8df['createdAt']=new Date(_0x5af8df[_0x1fb5('0x4b')])),_0x5af8df[_0x1fb5('0xc9')]){const _0x395ce3=this['editor'][_0x1fb5('0x49')]['get'](_0x1fb5('0x5f'));_0x5af8df[_0x1fb5('0xfb')]=_0x5af8df[_0x1fb5('0xc9')]['map'](_0x28646c=>_0x395ce3['getUser'](_0x28646c));}_0x1f9f70[_0x1fb5('0xec')](_0x5af8df,!0x0);}[_0x1fb5('0xa')]({revision:_0x2c8a13=null,from:_0x5052e0=null,to:_0x47af06=null}){_0x5052e0=null!==_0x5052e0?_0x5052e0:_0x2c8a13[_0x1fb5('0x89')],_0x47af06=null!==_0x47af06?_0x47af06:_0x2c8a13[_0x1fb5('0x42')];const _0x3321d8=this['_revisionDataBuilder'][_0x1fb5('0xfd')](_0x5052e0,_0x47af06),_0x3122c0={'diffData':_0x3321d8['diffData'],'authorsIds':_0x3321d8[_0x1fb5('0xc9')],'fromVersion':_0x5052e0,'toVersion':_0x47af06};if(!_0x2c8a13||_0x47af06!==_0x2c8a13['toVersion']){const _0x315b6f=_0x47af06-0x1,_0x50f6c0=this[_0x1fb5('0x4d')][_0x1fb5('0x3d')][_0x1fb5('0x99')](_0x315b6f);_0x3122c0[_0x1fb5('0x4b')]=_0x50f6c0&&_0x50f6c0[_0x1fb5('0x4b')]||new Date();}if(this[_0x1fb5('0x7')]&&_0x5052e0===this[_0x1fb5('0x7')][_0x1fb5('0x89')])for(const _0x19d262 of this[_0x1fb5('0x7')]['authors'])_0x3122c0[_0x1fb5('0xc9')][_0x1fb5('0xcd')](_0x19d262['id'])||_0x3122c0[_0x1fb5('0xc9')][_0x1fb5('0x86')](_0x19d262['id']);return _0x3122c0;}['_loadRevisionData'](_0x34e0ca){if(!_0x34e0ca||_0x34e0ca[_0x1fb5('0xb0')])return Promise['resolve']();{const _0x54723a=this[_0x1fb5('0xea')][_0x1fb5('0xf9')]['get'](_0x1fb5('0x8d'));return this[_0x1fb5('0xce')][_0x1fb5('0x33')]({'channelId':_0x54723a,'revisionId':_0x34e0ca['id']})[_0x1fb5('0x5c')](_0xc850e8=>{_0x34e0ca['diffData']=_0xc850e8['diffData'];});}}[_0x1fb5('0xac')](_0x6d0500,_0x3d2e51,_0x25f202){if(this[_0x1fb5('0xa0')]['has'](_0x6d0500)){const _0x21d12d=this[_0x1fb5('0xa0')][_0x1fb5('0xc8')](_0x6d0500);_0x3d2e51=_0x25f202?{..._0x21d12d,..._0x3d2e51}:{..._0x3d2e51,..._0x21d12d};}this['_bufferedUpdates'][_0x1fb5('0x7e')](_0x6d0500,_0x3d2e51);}[_0x1fb5('0xf1')](_0x148a7d){const _0x40c686=this[_0x1fb5('0x25')]['getRevisions']();_0x40c686[_0x1fb5('0xd5')](),_0x40c686[_0x1fb5('0x7f')]();const _0x3abf77=_0x40c686['find'](_0x6203ec=>_0x6203ec[_0x1fb5('0x42')]<=_0x148a7d)['toVersion'];return _0x3abf77<this[_0x1fb5('0x96')]?this[_0x1fb5('0x96')]:_0x3abf77;}[_0x1fb5('0xb')](_0x536188){const _0x46c81d=this['repository'][_0x1fb5('0x33')](this['repository'][_0x1fb5('0x107')]-0x1);if(_0x46c81d)this[_0x1fb5('0x2c')]=_0x46c81d['id'];else{const _0x3ac6c1=!this['editor'][_0x1fb5('0x34')]['document'][_0x1fb5('0xdc')][_0x1fb5('0x95')](_0x3a7499=>this['editor']['model'][_0x1fb5('0xc7')](_0x3a7499)),_0x1a552c=this[_0x1fb5('0xea')]['plugins'][_0x1fb5('0xc8')](_0x1fb5('0x5f'))['me']['id'],_0x5387bf=_0x32ca8b(this['editor'][_0x1fb5('0xe4')],_0x3ac6c1?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x536188,'to':_0x536188,'id':this[_0x1fb5('0x2c')],'name':_0x5387bf,'creatorId':_0x1a552c});}}[_0x1fb5('0x103')](_0x5b403a){const _0x1169c1=this[_0x1fb5('0x4d')][_0x1fb5('0x8f')]();this[_0x1fb5('0xd8')]=this['repository']['getRevision'](_0x1169c1),this['currentRevision']||(this['currentRevision']=this[_0x1fb5('0x3a')]({'from':_0x5b403a,'to':_0x5b403a,'id':_0x1169c1,'name':'','creatorId':null}));}[_0x1fb5('0x3a')]({name:_0xe8d6cf,from:_0x20ff62,to:_0x5e467d,creatorId:_0x414695,id:_0x1d60cb}){const _0x46f06b=this[_0x1fb5('0xa')]({'from':_0x20ff62,'to':_0x5e467d});_0x46f06b[_0x1fb5('0xfe')]=_0xe8d6cf,_0x46f06b['creatorId']=_0x414695,_0x46f06b['id']=_0x1d60cb;const _0x574574=this['addRevisionData'](_0x46f06b);return this['adapter']&&this['_bufferUpdate'](_0x46f06b['id'],_0x46f06b,!0x0),_0x574574;}[_0x1fb5('0xe5')](){this[_0x1fb5('0xea')][_0x1fb5('0xa1')][_0x1fb5('0x36')](_0x1fb5('0x9f'))[_0x1fb5('0x40')]({'model':_0x1fb5('0x4e')});}['_removeRevisionMarkers'](_0x1a8afb){return(_0x1a8afb=_0x1a8afb['filter'](_0x15fbd5=>!_0x15fbd5[_0x1fb5('0xfe')]||_0x1fb5('0x50')!==_0x15fbd5[_0x1fb5('0xfe')]&&_0x1fb5('0x5a')!==_0x15fbd5['name']))['forEach'](_0x3d0efb=>{_0x1fb5('0x6a')!=typeof _0x3d0efb&&(_0x3d0efb['children']=this[_0x1fb5('0x6d')](_0x3d0efb[_0x1fb5('0xc5')]),_0x3d0efb['attributes']=_0x3d0efb[_0x1fb5('0x76')]['filter'](_0x3a4824=>!_0x3a4824[0x0][_0x1fb5('0xca')](_0x1fb5('0xfa'))));}),_0x1a8afb;}}function J(_0x3d0f10,_0x3afc6d){const _0x1cc637=_0x3afc6d['editing']['view'][_0x1fb5('0x9a')];if('string'==typeof _0x3d0f10)return new _0x3d0082(_0x1cc637,_0x3d0f10);{const _0x5ef254=_0x3d0f10[_0x1fb5('0xc5')][_0x1fb5('0xc1')](_0x301768=>J(_0x301768,_0x3afc6d));return new(B[_0x3d0f10[(_0x1fb5('0x1c'))]]||_0x5e937e)(_0x1cc637,_0x3d0f10[_0x1fb5('0xfe')],_0x3d0f10[_0x1fb5('0x76')],_0x5ef254);}}class H{constructor(_0x16a010){this[_0x1fb5('0xea')]=_0x16a010,this[_0x1fb5('0x20')]=new Map(),this[_0x1fb5('0xa8')]=-0x1,this['_lastTo']=-0x1,this[_0x1fb5('0xf2')]=new Map(),this[_0x1fb5('0x2b')]=new Map(),this[_0x1fb5('0xb6')]=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x1fb5('0xd1')]=new Map(),this[_0x1fb5('0x26')]=new Map(),this[_0x1fb5('0x7d')]=new Map(),this['_touchedMarkers']=new Map(),this[_0x1fb5('0xd7')]=new Map(),this[_0x1fb5('0x53')]=0x1;}[_0x1fb5('0x84')](_0x556069){this[_0x1fb5('0x98')]=_0x556069;const _0x5c57dd=new Map(),_0x1adfeb=new Map(),_0x9a5593=this[_0x1fb5('0xea')]['model']['document'][_0x1fb5('0xdc')]['map'](_0x76844f=>_0x76844f[_0x1fb5('0x51')]);for(const _0x584e76 of _0x9a5593){const _0x231ad8=this['editor'][_0x1fb5('0x34')]['document'][_0x1fb5('0xda')](_0x584e76),_0x4f54da=q(_0x231ad8);_0x5c57dd[_0x1fb5('0x7e')](_0x584e76,_0x4f54da),_0x1adfeb['set'](_0x584e76,Object[_0x1fb5('0xb5')](_0x231ad8[_0x1fb5('0x73')]()));}const _0x5e23e7=Array[_0x1fb5('0x9e')](this[_0x1fb5('0xea')][_0x1fb5('0x34')]['markers'])['map'](_0x2cc59c=>[_0x2cc59c[_0x1fb5('0xfe')],_0x2cc59c[_0x1fb5('0x44')]()]),_0x3d9ac4=this['source'][_0x1fb5('0xf7')];this[_0x1fb5('0xef')](_0x3d9ac4,_0x5c57dd,_0x5e23e7,_0x1adfeb),this[_0x1fb5('0x45')]=this[_0x1fb5('0x53')];const _0x27dd20=new Map(),_0x4ba23c=new Map();for(const _0x53bf3a of _0x9a5593){const _0x1228d4=G(_0x53bf3a);_0x27dd20[_0x1fb5('0x7e')](_0x53bf3a,_0x1228d4),_0x4ba23c[_0x1fb5('0x7e')](_0x53bf3a,{});}this[_0x1fb5('0xef')](Number[_0x1fb5('0x6')],_0x27dd20,[],_0x4ba23c);}[_0x1fb5('0xfd')](_0x10fd09,_0x2e46d8){if(this[_0x1fb5('0xa8')]===_0x10fd09&&this[_0x1fb5('0xb8')]<=_0x2e46d8)this[_0x1fb5('0x20')]['size']>0x1&&this[_0x1fb5('0x24')](this[_0x1fb5('0xb8')]),this[_0x1fb5('0x8b')](this['_lastTo'],_0x2e46d8,!0x0);else{if(!this[_0x1fb5('0x20')][_0x1fb5('0x6c')](_0x10fd09)){const _0x507a90=this['_getPreviousFrom'](_0x10fd09);this[_0x1fb5('0x38')](_0x507a90,_0x10fd09,!0x1);}this[_0x1fb5('0x38')](_0x10fd09,_0x2e46d8,!0x0);}return this['_lastFrom']=_0x10fd09,this[_0x1fb5('0xb8')]=_0x2e46d8,this[_0x1fb5('0x8')]();}[_0x1fb5('0x77')](_0x4cb068){this[_0x1fb5('0x30')](),this[_0x1fb5('0xa8')]=_0x4cb068[_0x1fb5('0x89')],this[_0x1fb5('0xb8')]=_0x4cb068[_0x1fb5('0x42')];for(const _0x188afc in _0x4cb068[_0x1fb5('0xb0')]){const _0xf7409c=_0x4cb068[_0x1fb5('0xb0')][_0x188afc][_0x1fb5('0x17')],_0x4ab1e=_0x32fc6f(_0x4cb068['diffData'][_0x188afc][_0x1fb5('0xa5')])||{},_0x1cace0=this[_0x1fb5('0x70')](_0x4cb068[_0x1fb5('0xb0')][_0x188afc]['deletions']);_0x1cace0[_0x1fb5('0x51')]=_0x188afc,_0x1cace0[_0x1fb5('0x69')]=!_0xf7409c||!_0xf7409c[_0x1fb5('0xd')],_0x1cace0[_0x1fb5('0xd')]=()=>_0x1cace0[_0x1fb5('0x69')],this['_baseRoots'][_0x1fb5('0x7e')](_0x188afc,_0x1cace0),this['_baseRootsAttributes'][_0x1fb5('0x7e')](_0x188afc,_0x4ab1e),_0xf7409c&&this[_0x1fb5('0xd7')][_0x1fb5('0x7e')](_0x188afc,_0xf7409c);const _0x43a034=this[_0x1fb5('0x4a')](_0x1cace0);this[_0x1fb5('0x26')][_0x1fb5('0x7e')](_0x188afc,_0x43a034);for(const [_0x3d17bc,_0x3ee84c]of _0x1cace0[_0x1fb5('0x109')]){if(!_0x3d17bc[_0x1fb5('0xca')](_0x1fb5('0x104')))continue;const _0x3d7ce6=_0x3d17bc[_0x1fb5('0x6f')](':')[0x2];for(const _0x19f504 of _0x3ee84c[_0x1fb5('0x4')]({'singleCharacters':!0x0})){const _0x1bd71d=this[_0x1fb5('0xe0')](_0x19f504),_0x230d3d=_0x1fb5('0xd6')==_0x19f504[_0x1fb5('0x1c')]?_0x19f504['previousPosition'][_0x1fb5('0x29')][_0x1fb5('0xbd')](0x0,-0x1):_0x19f504[_0x1fb5('0x10')][_0x1fb5('0x29')],_0x4a704b=_0x43a034[_0x1fb5('0x3c')](_0x230d3d)['getAttribute'](_0x1bd71d);this[_0x1fb5('0x7d')][_0x1fb5('0x7e')](_0x4a704b,{'userId':_0x3d7ce6});}}}this['_startingRevisionId']=this['_revisionId'];const _0x28ef75=[...Array(this[_0x1fb5('0x53')])[_0x1fb5('0x1d')]()][_0x1fb5('0xbd')](0x1)['filter'](_0x1927f2=>!this[_0x1fb5('0x7d')][_0x1fb5('0x6c')](_0x1927f2));let _0x4aab7e=0x0;const _0x1372d3=new Map();for(const _0x57535d in _0x4cb068[_0x1fb5('0xb0')]){const _0x1f6f48=_0x4cb068[_0x1fb5('0xb0')][_0x57535d][_0x1fb5('0x17')],_0x4b1eb4=_0x32fc6f(_0x4cb068[_0x1fb5('0xb0')][_0x57535d]['attributesAfter'])||{},_0x51db2e=this[_0x1fb5('0x70')](_0x4cb068['diffData'][_0x57535d][_0x1fb5('0x19')]);_0x51db2e['rootName']=_0x57535d,_0x51db2e[_0x1fb5('0x69')]=!_0x1f6f48||_0x1f6f48[_0x1fb5('0xd')],_0x51db2e[_0x1fb5('0xd')]=()=>_0x51db2e['_isAttached'],this[_0x1fb5('0x2b')][_0x1fb5('0x7e')](_0x57535d,_0x51db2e),this[_0x1fb5('0xb6')]['set'](_0x57535d,_0x4b1eb4);const _0x33cc2a=this[_0x1fb5('0x4a')](_0x51db2e,Number[_0x1fb5('0x6')]);this[_0x1fb5('0xd1')]['set'](_0x57535d,_0x33cc2a),_0x1372d3[_0x1fb5('0x7e')](_0x57535d,_0x51db2e[_0x1fb5('0xd')]()?_0x4b1eb4:{});for(const [_0x2eb19c,_0x27218d]of _0x51db2e['markers']){if(!_0x2eb19c[_0x1fb5('0xca')](_0x1fb5('0x104')))continue;const _0x3c317e=_0x2eb19c[_0x1fb5('0x6f')](':')[0x2];for(const _0x4bcf63 of _0x27218d[_0x1fb5('0x4')]({'singleCharacters':!0x0})){const _0x16a9e6=this['_getVidAttributeName'](_0x4bcf63),_0x4e42fb=this[_0x1fb5('0x53')]++,_0x38ba19=_0x1fb5('0xd6')==_0x4bcf63[_0x1fb5('0x1c')]?_0x4bcf63[_0x1fb5('0x10')][_0x1fb5('0x29')][_0x1fb5('0xbd')](0x0,-0x1):_0x4bcf63[_0x1fb5('0x10')]['path'];_0x33cc2a[_0x1fb5('0x3c')](_0x38ba19)['_setAttribute'](_0x16a9e6,_0x4e42fb),this[_0x1fb5('0x7d')][_0x1fb5('0x7e')](_0x4e42fb,{'userId':_0x3c317e});}}for(const _0x43cdb1 of this[_0x1fb5('0xea')]['model']['createRangeIn'](_0x51db2e)[_0x1fb5('0x4')]({'singleCharacters':!0x0})){const _0x2c7bc0=this['_getVidAttributeName'](_0x43cdb1),_0x25e8c4='elementEnd'==_0x43cdb1[_0x1fb5('0x1c')]?_0x43cdb1['previousPosition'][_0x1fb5('0x29')][_0x1fb5('0xbd')](0x0,-0x1):_0x43cdb1[_0x1fb5('0x10')][_0x1fb5('0x29')],_0x52e5ad=_0x33cc2a['getNodeByPath'](_0x25e8c4);_0x52e5ad[_0x1fb5('0xd4')](_0x2c7bc0)>0x0||_0x52e5ad[_0x1fb5('0x87')](_0x2c7bc0,_0x28ef75[_0x4aab7e++]);}for(const [_0x3e997d,_0x531d23]of _0x51db2e[_0x1fb5('0x109')])_0x3e997d[_0x1fb5('0xca')](_0x1fb5('0x104'))||this[_0x1fb5('0xf2')][_0x1fb5('0x7e')](_0x3e997d,_0x531d23);}const _0x356184=G(_0x1fb5('0xc0'));this[_0x1fb5('0x9')][_0x1fb5('0x7e')](_0x1fb5('0xc0'),_0x356184),this['_baseIdsRoots'][_0x1fb5('0x7e')](_0x1fb5('0xc0'),this[_0x1fb5('0x4a')](_0x356184,0x1));const _0x4febe3=G(_0x1fb5('0xc0'));this['_diffRoots'][_0x1fb5('0x7e')](_0x1fb5('0xc0'),_0x4febe3),this['_idsRoots'][_0x1fb5('0x7e')](_0x1fb5('0xc0'),this['_makeIdsRoot'](_0x4febe3,0x1));const _0x4efc67=Array[_0x1fb5('0x9e')](this[_0x1fb5('0x2b')])[_0x1fb5('0xc1')](([_0x4be5a7,_0x555712])=>[_0x4be5a7,q(_0x555712)]);this['_saveMetaData'](this[_0x1fb5('0xb8')],_0x4efc67,this[_0x1fb5('0xf2')],_0x1372d3);}[_0x1fb5('0x70')](_0x1fe61d){const _0x3db6c8=JSON[_0x1fb5('0xa2')](_0x1fe61d),_0x32c2be=this[_0x1fb5('0xea')][_0x1fb5('0x52')][_0x1fb5('0x88')][_0x1fb5('0x9a')],_0x133be1=new _0xfd42cc(_0x32c2be,_0x3db6c8['map'](_0x4a1aa6=>J(_0x4a1aa6,this[_0x1fb5('0xea')])));return this[_0x1fb5('0xea')][_0x1fb5('0x22')][_0x1fb5('0x4c')](_0x133be1);}[_0x1fb5('0xef')](_0x4b3c09,_0x3d883e,_0x4bb2cf,_0x206dc5){const _0x5c85af=new Map(_0x3d883e),_0x16bebe=new Map(_0x32fc6f(_0x206dc5)),_0x4bfcb2=new Map();for(const [_0x4a70c6,_0xdb5d62]of _0x4bb2cf)_0x4bfcb2['set'](_0x4a70c6,{'start':_0xdb5d62[_0x1fb5('0xbb')][_0x1fb5('0xaa')](),'end':_0xdb5d62['end'][_0x1fb5('0xaa')](),'rootName':_0xdb5d62[_0x1fb5('0x3e')][_0x1fb5('0x51')]});this['_savedMetaData'][_0x1fb5('0x7e')](_0x4b3c09,{'roots':_0x5c85af,'markers':_0x4bfcb2,'rootsAttributes':_0x16bebe});}[_0x1fb5('0x24')](_0x3d429c){this[_0x1fb5('0x20')][_0x1fb5('0x2')](_0x3d429c);}[_0x1fb5('0xb9')](){this[_0x1fb5('0x30')](),this[_0x1fb5('0xa8')]=-0x1,this['_lastTo']=-0x1,this[_0x1fb5('0x20')]['clear'](),this[_0x1fb5('0x84')](this[_0x1fb5('0x98')]);}[_0x1fb5('0x30')](){this[_0x1fb5('0x7d')][_0x1fb5('0xd0')](),this[_0x1fb5('0xc4')][_0x1fb5('0xd0')](),this[_0x1fb5('0xd7')]['clear'](),this[_0x1fb5('0x2b')][_0x1fb5('0xd0')](),this[_0x1fb5('0xb6')][_0x1fb5('0xd0')](),this[_0x1fb5('0x9')][_0x1fb5('0xd0')](),this[_0x1fb5('0xe7')][_0x1fb5('0xd0')](),this['_idsRoots'][_0x1fb5('0xd0')](),this[_0x1fb5('0x26')][_0x1fb5('0xd0')](),this[_0x1fb5('0xf2')][_0x1fb5('0xd0')](),this[_0x1fb5('0x53')]=0x1,this[_0x1fb5('0x45')]=this[_0x1fb5('0x53')];}[_0x1fb5('0x4a')](_0xe54a58,_0x58c5b4=null){let _0x5e8a0e=null;_0xe54a58['is'](_0x1fb5('0x78'))||(_0x5e8a0e=new _0x402e68(_0xe54a58[_0x1fb5('0xfe')],{'vid_start':null===_0x58c5b4?this[_0x1fb5('0x53')]++:_0x58c5b4++}));const _0x19f6ad=[];for(const _0x4d644f of _0xe54a58[_0x1fb5('0xeb')]())if(_0x4d644f['is']('element')){_0x19f6ad[_0x1fb5('0x86')](this['_makeIdsRoot'](_0x4d644f,_0x58c5b4));const _0x55c827=_0x19f6ad[_0x19f6ad['length']-0x1];null!==_0x58c5b4&&(_0x58c5b4=_0x55c827['is'](_0x1fb5('0x64'),'$text')?_0x55c827[_0x1fb5('0xd4')](_0x1fb5('0x16'))+0x1:_0x55c827[_0x1fb5('0xd4')](_0x1fb5('0x102'))+0x1);}else for(let _0x33e89e=0x0;_0x33e89e<_0x4d644f['offsetSize'];_0x33e89e++)_0x19f6ad['push'](new _0x402e68('$text',{'vid':null===_0x58c5b4?this[_0x1fb5('0x53')]++:_0x58c5b4++}));if(_0xe54a58['is'](_0x1fb5('0x78'))){const _0x23e01c=G(_0xe54a58['rootName']);return _0x23e01c['_insertChild'](0x0,_0x19f6ad),_0x23e01c;}return _0x5e8a0e[_0x1fb5('0x87')](_0x1fb5('0x102'),null===_0x58c5b4?this[_0x1fb5('0x53')]++:_0x58c5b4++),_0x5e8a0e[_0x1fb5('0xf0')](0x0,_0x19f6ad),_0x5e8a0e;}['_calculateMetaData'](_0x1008b8,_0xc96d8e,_0x27b2d8){this[_0x1fb5('0x30')]();const {roots:_0xb21eab,markers:_0x5d1cc5,rootsAttributes:_0x47efdb}=this[_0x1fb5('0x20')][_0x1fb5('0xc8')](_0x1008b8);this[_0x1fb5('0x9')]=new Map(_0xb21eab),this['_baseRootsAttributes']=new Map(_0x32fc6f(_0x47efdb));for(const [_0x374d45,_0x2b939e]of this[_0x1fb5('0x9')])if(_0x1fb5('0xc0')!==_0x374d45&&(this['_diffRoots']['set'](_0x374d45,q(_0x2b939e)),this[_0x1fb5('0xb6')]=new Map(_0x32fc6f(_0x47efdb)),_0x27b2d8)){const _0x3eae5c=this[_0x1fb5('0x53')];this['_idsRoots'][_0x1fb5('0x7e')](_0x374d45,this['_makeIdsRoot'](_0x2b939e)),this[_0x1fb5('0x26')][_0x1fb5('0x7e')](_0x374d45,this[_0x1fb5('0x4a')](_0x2b939e,_0x3eae5c));}this[_0x1fb5('0x45')]=this['_revisionId'],this[_0x1fb5('0x2b')]['set']('$graveyard',q(this[_0x1fb5('0x9')][_0x1fb5('0xc8')](_0x1fb5('0xc0')))),_0x27b2d8&&this['_idsRoots'][_0x1fb5('0x7e')](_0x1fb5('0xc0'),this[_0x1fb5('0x4a')](this[_0x1fb5('0x9')][_0x1fb5('0xc8')]('$graveyard')));for(const [_0x274076,_0x4cde38]of _0x5d1cc5){const _0x2ea661=this['_baseRoots'][_0x1fb5('0xc8')](_0x4cde38[_0x1fb5('0x51')]),_0x478eed=this[_0x1fb5('0x2b')][_0x1fb5('0xc8')](_0x4cde38['rootName']),_0xb91c3a=new _0xb5b9b7(this[_0x1fb5('0xa6')](_0x4cde38[_0x1fb5('0xbb')],_0x2ea661),this['_fixPosition'](_0x4cde38[_0x1fb5('0x5e')],_0x2ea661)),_0x3938bb=this[_0x1fb5('0x0')](_0xb91c3a,_0x478eed);_0x2ea661[_0x1fb5('0x109')][_0x1fb5('0x7e')](_0x274076,_0xb91c3a),this[_0x1fb5('0xf2')][_0x1fb5('0x7e')](_0x274076,_0x3938bb);}this['_applyOperations'](_0x1008b8,_0xc96d8e,_0x27b2d8);}[_0x1fb5('0x8b')](_0x41e22,_0x275526,_0x2df71b){for(const _0x3da465 of this['source'][_0x1fb5('0xcb')](_0x41e22,_0x275526))this[_0x1fb5('0x8c')](_0x3da465,_0x2df71b);for(const _0x211126 of this['_diffRoots'][_0x1fb5('0x60')]())_0x211126[_0x1fb5('0x109')][_0x1fb5('0xd0')]();for(const [_0x270943,_0x488e48]of this['_markers']){this['_diffRoots'][_0x1fb5('0xc8')](_0x488e48[_0x1fb5('0x3e')][_0x1fb5('0x51')])['markers'][_0x1fb5('0x7e')](_0x270943,_0x488e48[_0x1fb5('0xaa')]());}const _0x49cebd=new Map(),_0xd6b624=new Map();for(const [_0x34163b,_0x88f6b6]of this[_0x1fb5('0x2b')])_0x49cebd[_0x1fb5('0x7e')](_0x34163b,q(_0x88f6b6)),_0xd6b624[_0x1fb5('0x7e')](_0x34163b,this[_0x1fb5('0xb6')]['get'](_0x34163b));this[_0x1fb5('0xef')](_0x275526,_0x49cebd,this[_0x1fb5('0xf2')],_0xd6b624);}[_0x1fb5('0xee')](_0x1e874d){const _0x2a3302=Array[_0x1fb5('0x9e')](this[_0x1fb5('0x20')][_0x1fb5('0x1d')]());_0x2a3302[_0x1fb5('0xcc')]((_0x372cb5,_0x569293)=>_0x372cb5-_0x569293),_0x2a3302['reverse']();for(const _0x5ad5b5 of _0x2a3302)if(_0x5ad5b5<_0x1e874d)return _0x5ad5b5;return Number[_0x1fb5('0x6')];}[_0x1fb5('0x18')](_0x4f3490,_0xc098ed){const _0x5197f0=Array['from'](_0xc098ed[_0x1fb5('0x109')])[_0x1fb5('0xc1')](([_0x45ea20,_0x3dead5])=>[_0x45ea20,this[_0x1fb5('0x0')](_0x3dead5,_0x4f3490)]);_0x4f3490[_0x1fb5('0x109')]=new Map(_0x5197f0);}[_0x1fb5('0xb4')](_0x5b6fc2){for(const _0x4d99cf of this[_0x1fb5('0xf2')]['values']()){const _0x4e3a55=_0x4d99cf[_0x1fb5('0x54')](_0x5b6fc2),_0x356229=_0xb5b9b7[_0x1fb5('0x67')](_0x4e3a55);_0x4d99cf['start']=_0x356229[_0x1fb5('0xbb')],_0x4d99cf[_0x1fb5('0x5e')]=_0x356229[_0x1fb5('0x5e')];}}[_0x1fb5('0x8c')](_0x56661a,_0x56f0b9){if(_0x1fb5('0x101')==_0x56661a[_0x1fb5('0x1c')]||_0x1fb5('0xb1')==_0x56661a[_0x1fb5('0x1c')])return void this[_0x1fb5('0x82')](_0x56661a,_0x56f0b9);if(_0x1fb5('0x58')==_0x56661a[_0x1fb5('0x1c')]){const _0x562d02=_0x56661a[_0x1fb5('0xad')][_0x1fb5('0x3e')][_0x1fb5('0x51')];this['_diffRoots']['has'](_0x562d02)||(this[_0x1fb5('0x2b')][_0x1fb5('0x7e')](_0x562d02,G(_0x562d02,!0x0)),this[_0x1fb5('0xb6')][_0x1fb5('0x7e')](_0x562d02,{}),_0x56f0b9&&this[_0x1fb5('0xd1')][_0x1fb5('0x7e')](_0x562d02,G(_0x562d02,!0x0)));}else{if('addRootAttribute'==_0x56661a[_0x1fb5('0x1c')]||_0x1fb5('0x46')==_0x56661a[_0x1fb5('0x1c')]||_0x1fb5('0x3')==_0x56661a[_0x1fb5('0x1c')])return void this[_0x1fb5('0x66')](_0x56661a);}const _0x4efbd9=this[_0x1fb5('0xe2')](_0x56661a,this[_0x1fb5('0x2b')]);if(_0x1fb5('0xf5')!==_0x56661a[_0x1fb5('0x1c')]&&(_0x4efbd9['_execute'](),this['_transformMarkers'](_0x4efbd9)),_0x56f0b9)switch(_0x4efbd9[_0x1fb5('0x1c')]){case _0x1fb5('0x58'):this[_0x1fb5('0xd2')](_0x56661a);break;case _0x1fb5('0x7a'):case'remove':case _0x1fb5('0x7c'):this[_0x1fb5('0x97')](_0x56661a);break;case _0x1fb5('0xa3'):this['_handleMergeOperation'](_0x56661a);break;case _0x1fb5('0x6f'):this[_0x1fb5('0x9d')](_0x56661a);break;case _0x1fb5('0xf5'):this[_0x1fb5('0x2a')](_0x56661a);}}[_0x1fb5('0xe2')](_0x2b18ea,_0x355934){const _0x1ed26a=_0x2b18ea['clone']();return _0x1ed26a[_0x1fb5('0xed')]=_0x2b18ea['_authorId'],this[_0x1fb5('0x10b')](_0x1ed26a,_0x355934),_0x1ed26a;}[_0x1fb5('0xb2')](_0x25b41e){return _0x25b41e[_0x1fb5('0xc1')](_0x208bc2=>{const _0x36a2fb=this[_0x1fb5('0xe0')](_0x208bc2);return Number(_0x208bc2[_0x1fb5('0x28')]['getAttribute'](_0x36a2fb));});}['_generateTape'](_0xb6f087,_0x2e7c62){if(_0xb6f087['is'](_0x1fb5('0x64'),_0x1fb5('0xf6')))_0x2e7c62[_0x1fb5('0x86')]({'item':_0xb6f087,'type':_0x1fb5('0xb3')});else{_0xb6f087['is'](_0x1fb5('0x64'))&&_0x2e7c62[_0x1fb5('0x86')]({'item':_0xb6f087,'type':_0x1fb5('0x21')});for(const _0x9ca40c of _0xb6f087[_0x1fb5('0xeb')]())this[_0x1fb5('0xa7')](_0x9ca40c,_0x2e7c62);_0xb6f087['is']('element')&&_0x2e7c62[_0x1fb5('0x86')]({'item':_0xb6f087,'type':_0x1fb5('0xd6')});}return _0x2e7c62;}[_0x1fb5('0x8')](){const _0x466358=new Map(this[_0x1fb5('0x7d')]),_0x3ab2dc=new Map(_0x466358),_0x14c766=new Map(),_0x1f4727={'insertions':{},'deletions':{}},_0x417343={'insertions':{},'deletions':{}},_0x40dc9e=new Map(),_0x4ac612=new Set([...this[_0x1fb5('0x9')]['keys'](),...this[_0x1fb5('0x2b')][_0x1fb5('0x1d')]()]);_0x4ac612['delete'](_0x1fb5('0xc0'));for(const _0x537b11 of _0x4ac612){const _0x51095b=this[_0x1fb5('0x2b')][_0x1fb5('0xc8')](_0x537b11)||G(_0x537b11,!0x1),_0x567218=this[_0x1fb5('0x9')][_0x1fb5('0xc8')](_0x537b11)||G(_0x537b11,!0x1);_0x51095b[_0x1fb5('0xd')]()||_0x567218[_0x1fb5('0xd')]()?(_0x1f4727[_0x1fb5('0x19')][_0x537b11]=q(_0x51095b),_0x1f4727['deletions'][_0x537b11]=q(_0x567218),this[_0x1fb5('0x18')](_0x1f4727[_0x1fb5('0xf4')][_0x537b11],_0x567218),this[_0x1fb5('0x18')](_0x1f4727['insertions'][_0x537b11],_0x51095b),_0x417343[_0x1fb5('0x19')][_0x537b11]=this['_generateTape'](this[_0x1fb5('0xd1')][_0x1fb5('0xc8')](_0x537b11),[]),_0x417343[_0x1fb5('0xf4')][_0x537b11]=this['_generateTape'](this[_0x1fb5('0x26')][_0x1fb5('0xc8')](_0x537b11)||G(_0x537b11,!0x1),[])):_0x4ac612['delete'](_0x537b11);}for(const _0x20d8c2 of _0x4ac612){const _0x3afac2=_0x417343[_0x1fb5('0x19')][_0x20d8c2];for(const _0x4851f1 of _0x3afac2){const _0x4be839=this[_0x1fb5('0xe0')](_0x4851f1),_0x585f32=_0x4851f1[_0x1fb5('0x28')][_0x1fb5('0xd4')](_0x4be839);_0x3ab2dc[_0x1fb5('0x2')](_0x585f32),_0x585f32>=this[_0x1fb5('0x45')]&&_0x14c766['set'](_0x585f32,_0x466358['get'](_0x585f32));}}for(const _0x1f9b36 of _0x4ac612){const _0x12c025=_0x417343[_0x1fb5('0x19')][_0x1f9b36],_0xf21cf8=this[_0x1fb5('0xb2')](_0x417343['deletions'][_0x1f9b36]);let _0x51aba4=0x0;for(const _0x31cfdc of _0x12c025){const _0x1265ee=this[_0x1fb5('0xe0')](_0x31cfdc),_0x710701=_0x31cfdc['item'][_0x1fb5('0xd4')](_0x1265ee);if(!_0x14c766[_0x1fb5('0x6c')](_0x710701)&&!_0x40dc9e['has'](_0x710701)){if(_0x3ab2dc[_0x1fb5('0x6c')](_0x710701))_0x51aba4++;else{if(_0x710701!=_0xf21cf8[_0x51aba4]){const _0x57bc2c=_0x466358['get'](_0x710701)||_0x466358[_0x1fb5('0xc8')](_0xf21cf8[_0x51aba4]);for(;_0x710701!=_0xf21cf8[_0x51aba4];)_0x3ab2dc[_0x1fb5('0x6c')](_0xf21cf8[_0x51aba4])||(_0x40dc9e[_0x1fb5('0x7e')](_0xf21cf8[_0x51aba4],_0x57bc2c),_0x466358[_0x1fb5('0x7e')](_0xf21cf8[_0x51aba4],_0x57bc2c)),_0x51aba4++;}_0x51aba4++;}}}}for(const _0xb829b7 of _0x4ac612){const _0x46ee9d=_0x417343[_0x1fb5('0x19')][_0xb829b7];for(const _0x5c67ac of _0x46ee9d){const _0x17245d=this['_getVidAttributeName'](_0x5c67ac),_0x4b46f1=_0x5c67ac[_0x1fb5('0x28')][_0x1fb5('0xd4')](_0x17245d);if(_0x40dc9e[_0x1fb5('0x6c')](_0x4b46f1)){const _0xfbdaf7=_0x40dc9e[_0x1fb5('0xc8')](_0x4b46f1);_0x3ab2dc[_0x1fb5('0x6c')](_0x4b46f1)||_0x3ab2dc[_0x1fb5('0x7e')](_0x4b46f1,{..._0xfbdaf7}),_0x14c766['set'](_0x4b46f1,{..._0xfbdaf7});}}}for(const _0x40f2d9 of _0x3ab2dc[_0x1fb5('0x1d')]())_0x40f2d9>=this[_0x1fb5('0x45')]&&_0x3ab2dc[_0x1fb5('0x2')](_0x40f2d9);const _0x1270c0=new Map();for(const _0x4f31cf of _0x4ac612){let _0x3411ff=_0x417343[_0x1fb5('0x19')][_0x4f31cf];for(const _0x32a0f9 of _0x3411ff)if(_0x32a0f9[_0x1fb5('0x28')]['is'](_0x1fb5('0x64'),'tableCell')){const _0x291bfc=this[_0x1fb5('0xe0')](_0x32a0f9),_0x2a41e8=_0x32a0f9[_0x1fb5('0x28')][_0x1fb5('0xd4')](_0x291bfc);if(_0x14c766[_0x1fb5('0x6c')](_0x2a41e8)){const _0x521ec2=_0x32a0f9[_0x1fb5('0x28')][_0x1fb5('0x106')][_0x1fb5('0x106')][_0x1fb5('0xd4')](_0x1fb5('0x10c')),_0x28861e=_0x1270c0['get'](_0x521ec2)||new Set();_0x28861e[_0x1fb5('0x1b')](_0x14c766['get'](_0x2a41e8)[_0x1fb5('0x2f')]),_0x1270c0[_0x1fb5('0x7e')](_0x521ec2,_0x28861e);}}_0x3411ff=_0x417343[_0x1fb5('0xf4')][_0x4f31cf];for(const _0x598355 of _0x3411ff)if(_0x598355[_0x1fb5('0x28')]['is'](_0x1fb5('0x64'),_0x1fb5('0x65'))){const _0x4b34e5=this[_0x1fb5('0xe0')](_0x598355),_0x16d616=_0x598355[_0x1fb5('0x28')][_0x1fb5('0xd4')](_0x4b34e5);if(_0x3ab2dc[_0x1fb5('0x6c')](_0x16d616)){const _0x2750ff=_0x598355['item'][_0x1fb5('0x106')][_0x1fb5('0x106')][_0x1fb5('0xd4')](_0x1fb5('0x10c')),_0x5b7685=_0x1270c0[_0x1fb5('0xc8')](_0x2750ff)||new Set();_0x5b7685['add'](_0x3ab2dc[_0x1fb5('0xc8')](_0x16d616)[_0x1fb5('0x2f')]),_0x1270c0[_0x1fb5('0x7e')](_0x2750ff,_0x5b7685);}}for(const _0x5608fa of _0x1270c0[_0x1fb5('0x1d')]())(_0x14c766[_0x1fb5('0x6c')](_0x5608fa)||_0x3ab2dc['has'](_0x5608fa))&&_0x1270c0[_0x1fb5('0x2')](_0x5608fa);}for(const _0x5285a0 of _0x4ac612){const _0x4633d7=_0x417343[_0x1fb5('0x19')][_0x5285a0];let _0x12a85e=null,_0x19f04c=null;for(const _0xea2182 of _0x4633d7){const _0x21aad4=this[_0x1fb5('0xe0')](_0xea2182),_0x2f2441=_0xea2182[_0x1fb5('0x28')][_0x1fb5('0xd4')](_0x21aad4),_0x5b063b=_0x1270c0[_0x1fb5('0xc8')](_0x2f2441);_0x5b063b&&'elementStart'==_0xea2182[_0x1fb5('0x1c')]&&(_0x12a85e=Array[_0x1fb5('0x9e')](_0x5b063b)[0x0],_0x19f04c=_0xea2182[_0x1fb5('0x28')][_0x1fb5('0xd4')](_0x1fb5('0x102'))),_0x12a85e&&(_0x3ab2dc[_0x1fb5('0x7e')](_0x2f2441,{'userId':_0x12a85e}),_0x14c766[_0x1fb5('0x7e')](_0x2f2441,{'userId':_0x12a85e})),_0x2f2441==_0x19f04c&&(_0x12a85e=null,_0x19f04c=null);}}const _0x6d3bf={},_0x3afe71=new Set();for(const _0x2b4121 of _0x4ac612){const _0xa4523=_0x1f4727[_0x1fb5('0xf4')][_0x2b4121],_0x3532d8=_0x1f4727[_0x1fb5('0x19')][_0x2b4121];for(const {userId:_0x39b3da}of this[_0x1fb5('0xc4')][_0x1fb5('0x60')]())null!==_0x39b3da&&_0x3afe71[_0x1fb5('0x1b')](_0x39b3da);for(const {userId:_0x21567c}of this[_0x1fb5('0xd7')][_0x1fb5('0x60')]())null!==_0x21567c&&_0x3afe71[_0x1fb5('0x1b')](_0x21567c);this[_0x1fb5('0xdd')](_0x3532d8,_0x417343['insertions'][_0x2b4121],_0x14c766,_0x1fb5('0xf8'),_0x3afe71),this[_0x1fb5('0xdd')](_0xa4523,_0x417343[_0x1fb5('0xf4')][_0x2b4121],_0x3ab2dc,_0x1fb5('0x94'),_0x3afe71),_0x6d3bf[_0x2b4121]={'insertions':this[_0x1fb5('0xbe')](_0x3532d8),'deletions':this[_0x1fb5('0xbe')](_0xa4523),'attachChange':this[_0x1fb5('0xd7')][_0x1fb5('0xc8')](_0x2b4121)||null,'attributesBefore':_0x32fc6f(this[_0x1fb5('0xe7')][_0x1fb5('0xc8')](_0x2b4121))||{},'attributesAfter':_0x32fc6f(this[_0x1fb5('0xb6')]['get'](_0x2b4121))};}return{'diffData':_0x6d3bf,'authorsIds':Array[_0x1fb5('0x9e')](_0x3afe71)};}[_0x1fb5('0x5')](_0x1b56f0){for(const [,_0x33e6b1]of _0x1b56f0[_0x1fb5('0x109')]){const _0x6089f8=_0x33e6b1[_0x1fb5('0xbb')][_0x1fb5('0x3f')]()[_0x1fb5('0x63')](_0x3db150=>_0x1fb5('0x65')==_0x3db150[_0x1fb5('0xfe')]);for(const _0x118c6a of _0x6089f8)0x1==_0x118c6a[_0x1fb5('0x6b')]&&_0x118c6a['getChild'](0x0)['is'](_0x1fb5('0x64'),_0x1fb5('0x59'))&&_0x118c6a[_0x1fb5('0x13')](0x0)[_0x1fb5('0x87')](_0x1fb5('0xd3'),!0x0);}}[_0x1fb5('0xbe')](_0x343a9d){this['_processRootBeforeSave'](_0x343a9d);const _0x1d6deb=this['editor'][_0x1fb5('0x22')]['toView'](_0x343a9d,{}),_0x57aacc=Array[_0x1fb5('0x9e')](_0x1d6deb[_0x1fb5('0xeb')]())[_0x1fb5('0xc1')](_0x2d7e83=>this[_0x1fb5('0x62')](_0x2d7e83));return JSON[_0x1fb5('0xdf')](_0x57aacc);}[_0x1fb5('0x62')](_0x1c9395){if(_0x1c9395['is'](_0x1fb5('0xf6')))return _0x1c9395[_0x1fb5('0x22')];{const _0x4b4bb2=_0x1c9395;return{'type':Object[_0x1fb5('0x1d')](B)[_0x1fb5('0x95')](_0x14f040=>_0x1c9395 instanceof B[_0x14f040]),'name':_0x4b4bb2[_0x1fb5('0xfe')],'attributes':Array['from'](_0x4b4bb2[_0x1fb5('0x73')]()),'children':Array['from'](_0x4b4bb2['getChildren']())[_0x1fb5('0xc1')](_0x373ba2=>this[_0x1fb5('0x62')](_0x373ba2))};}}[_0x1fb5('0xdd')](_0x34aeae,_0x4639f0,_0x1721e4,_0x2ef19f,_0x2eb15a){let _0x458b48=null,_0x447411=null,_0x10f9b7=0x0;const _0xaff245=this[_0x1fb5('0xea')]['model'];for(let _0x5b6a73=0x0;_0x5b6a73<_0x4639f0[_0x1fb5('0x107')];_0x5b6a73++){const _0x4828=this['_getVidAttributeName'](_0x4639f0[_0x5b6a73]),_0x40a22a=_0x4639f0[_0x5b6a73][_0x1fb5('0x28')][_0x1fb5('0xd4')](_0x4828),_0xcbd42f=_0x1721e4[_0x1fb5('0xc8')](_0x40a22a),_0x428f63=_0x5b6a73==_0x4639f0['length']-0x1;(!_0x458b48&&_0xcbd42f&&(_0x458b48=_0xcbd42f,_0x447411=_0x4639f0[_0x5b6a73]),_0x458b48&&(!_0xcbd42f||_0xcbd42f[_0x1fb5('0x2f')]!=_0x458b48[_0x1fb5('0x2f')]))&&(_0x5492ce(_0xcbd42f,L(_0x447411,_0x34aeae,_0xaff245),L(_0x4639f0[_0x5b6a73],_0x34aeae,_0xaff245)),_0x458b48=_0xcbd42f||null,_0x447411=_0xcbd42f?_0x4639f0[_0x5b6a73]:null),_0x458b48&&_0x428f63&&_0x5492ce(_0xcbd42f,L(_0x447411,_0x34aeae,_0xaff245),W(_0x4639f0[_0x5b6a73],_0x34aeae,_0xaff245));}function _0x5492ce(_0x16eaa5,_0x1b1a8f,_0x5c808f){const _0x36a6a2=_0x458b48[_0x1fb5('0x2f')],_0x2add8f=_0x1fb5('0x104')+_0x2ef19f+':'+_0x36a6a2+':'+_0x10f9b7++,_0x59b17f=_0xaff245[_0x1fb5('0x105')](_0x1b1a8f,_0x5c808f);_0x34aeae[_0x1fb5('0x109')][_0x1fb5('0x7e')](_0x2add8f,_0x59b17f),null!==_0x36a6a2&&_0x2eb15a[_0x1fb5('0x1b')](_0x36a6a2);}}[_0x1fb5('0xe0')](_0x2a7d99){switch(_0x2a7d99[_0x1fb5('0x1c')]){case _0x1fb5('0x21'):return _0x1fb5('0x10c');case'elementEnd':return _0x1fb5('0x102');default:return'vid';}}[_0x1fb5('0x10b')](_0x53c2c2,_0x26969a){_0x53c2c2[_0x1fb5('0x10a')]=null;for(const _0x1cadf8 in _0x53c2c2){const _0x4c027b=_0x53c2c2[_0x1cadf8];if(_0x4c027b instanceof _0x28fd58){const _0x294113=_0x26969a[_0x1fb5('0xc8')](_0x4c027b[_0x1fb5('0x3e')]['rootName']);_0x53c2c2[_0x1cadf8]=this['_fixPosition'](_0x4c027b,_0x294113);}if(_0x4c027b instanceof _0xb5b9b7){const _0x293972=_0x26969a['get'](_0x4c027b[_0x1fb5('0x3e')][_0x1fb5('0x51')]);_0x53c2c2[_0x1cadf8]=this[_0x1fb5('0x0')](_0x4c027b,_0x293972);}'root'===_0x1cadf8&&(_0x53c2c2['root']=_0x26969a[_0x1fb5('0xc8')](_0x53c2c2[_0x1fb5('0x3e')][_0x1fb5('0x51')]));}}[_0x1fb5('0x0')](_0x12cf86,_0xf8522){return this[_0x1fb5('0xea')][_0x1fb5('0x34')][_0x1fb5('0x105')](this['_fixPosition'](_0x12cf86['start'],_0xf8522),this[_0x1fb5('0xa6')](_0x12cf86[_0x1fb5('0x5e')],_0xf8522));}[_0x1fb5('0xa6')](_0x483181,_0x1f7a34){return this[_0x1fb5('0xea')][_0x1fb5('0x34')][_0x1fb5('0x108')](_0x1f7a34,_0x483181['path'],_0x483181[_0x1fb5('0xb7')]);}[_0x1fb5('0xd2')](_0x584959){const _0x16cd59=this['_idsRoots']['get'](_0x584959[_0x1fb5('0xad')][_0x1fb5('0x3e')][_0x1fb5('0x51')]),_0x56fb15=this[_0x1fb5('0xa6')](_0x584959['position'],_0x16cd59),_0x35d5cf=null===_0x584959[_0x1fb5('0xed')]?null:_0x584959[_0x1fb5('0xed')]||this['editor'][_0x1fb5('0x49')]['get']('Users')['me']['id'],_0x5e5739=_0x56fb15[_0x1fb5('0x106')],_0x33792f=this['_revisionId'],_0x3b3707=[];for(const _0x387942 of _0x584959[_0x1fb5('0x35')])if(_0x387942['is'](_0x1fb5('0x64')))_0x3b3707[_0x1fb5('0x86')](this[_0x1fb5('0x4a')](_0x387942));else for(let _0x3fc1af=0x0;_0x3fc1af<_0x387942[_0x1fb5('0xbf')];_0x3fc1af++)_0x3b3707['push'](new _0x402e68(_0x1fb5('0xf6'),{'vid':this[_0x1fb5('0x53')]++}));const _0x4cd360=this[_0x1fb5('0x53')];for(let _0x17ea09=_0x33792f;_0x17ea09<_0x4cd360;_0x17ea09++)this[_0x1fb5('0x7d')][_0x1fb5('0x7e')](_0x17ea09,{'userId':_0x35d5cf});_0x5e5739[_0x1fb5('0xf0')](_0x56fb15[_0x1fb5('0xfc')],_0x3b3707);}[_0x1fb5('0x97')](_0x526ba2){(_0x526ba2=this['_cloneOperation'](_0x526ba2,this[_0x1fb5('0xd1')]))[_0x1fb5('0x72')]();const _0x4fc635=null===_0x526ba2['_authorId']?null:_0x526ba2[_0x1fb5('0xed')]||this[_0x1fb5('0xea')][_0x1fb5('0x49')][_0x1fb5('0xc8')](_0x1fb5('0x5f'))['me']['id'],_0x5109fc=_0x526ba2[_0x1fb5('0x2d')](),_0x51a28f=_0x5109fc[_0x1fb5('0x106')],_0x147b81=_0x5109fc[_0x1fb5('0xfc')];!function _0x35c836(_0x171de3,_0x3e8290,_0x533979,_0x5ba34c){for(let _0x5316ae=_0x533979;_0x5316ae<_0x5ba34c;_0x5316ae++){const _0x2393b4=_0x3e8290['getChild'](_0x5316ae);_0x2393b4['is'](_0x1fb5('0x64'),_0x1fb5('0xf6'))?_0x171de3[_0x1fb5('0x7e')](_0x2393b4[_0x1fb5('0xd4')]('vid'),{'userId':_0x4fc635}):(_0x171de3[_0x1fb5('0x7e')](_0x2393b4[_0x1fb5('0xd4')]('vid_start'),{'userId':_0x4fc635}),_0x35c836(_0x171de3,_0x2393b4,0x0,_0x2393b4[_0x1fb5('0x6b')]),_0x171de3[_0x1fb5('0x7e')](_0x2393b4[_0x1fb5('0xd4')](_0x1fb5('0x102')),{'userId':_0x4fc635}));}}(this[_0x1fb5('0x7d')],_0x51a28f,_0x147b81,_0x147b81+_0x526ba2[_0x1fb5('0xe9')]);}['_handleMergeOperation'](_0xd02a4f){const _0xf2214f=null===(_0xd02a4f=this[_0x1fb5('0xe2')](_0xd02a4f,this['_idsRoots']))[_0x1fb5('0xed')]?null:_0xd02a4f['_authorId']||this[_0x1fb5('0xea')]['plugins'][_0x1fb5('0xc8')](_0x1fb5('0x5f'))['me']['id'],_0x5746cd=_0xd02a4f['targetPosition'][_0x1fb5('0x106')],_0x3ae99f=_0xd02a4f['sourcePosition'][_0x1fb5('0x106')],_0x464a1d=_0x5746cd[_0x1fb5('0xd4')]('vid_end'),_0x98f37b=_0x3ae99f['getAttribute'](_0x1fb5('0x10c'));_0x5746cd[_0x1fb5('0x87')](_0x1fb5('0x102'),_0x3ae99f[_0x1fb5('0xd4')](_0x1fb5('0x102'))),_0x3ae99f[_0x1fb5('0x87')](_0x1fb5('0x102'),_0x464a1d),this[_0x1fb5('0x7d')]['set'](_0x98f37b,{'userId':_0xf2214f}),this['_touched'][_0x1fb5('0x7e')](_0x464a1d,{'userId':_0xf2214f}),_0xd02a4f['_execute']();}[_0x1fb5('0x9d')](_0x40377c){const _0xa20c1d=null===(_0x40377c=this[_0x1fb5('0xe2')](_0x40377c,this[_0x1fb5('0xd1')]))[_0x1fb5('0xed')]?null:_0x40377c['_authorId']||this[_0x1fb5('0xea')]['plugins'][_0x1fb5('0xc8')]('Users')['me']['id'],_0x27397b=_0x40377c[_0x1fb5('0x1e')],_0x20efda=_0x40377c[_0x1fb5('0x5b')]['parent'];_0x40377c[_0x1fb5('0x72')]();const _0x30b61f=_0x20efda['getAttribute']('vid_end'),_0x5a88b3=_0x40377c[_0x1fb5('0xc3')][_0x1fb5('0x85')];if(_0x27397b){const _0x26a7a7=_0x5a88b3[_0x1fb5('0xd4')](_0x1fb5('0x102')),_0x1cdec2=_0x20efda['getAttribute'](_0x1fb5('0x102'));_0x20efda[_0x1fb5('0x87')]('vid_end',_0x26a7a7),_0x5a88b3[_0x1fb5('0x87')](_0x1fb5('0x102'),_0x1cdec2),this[_0x1fb5('0x7d')][_0x1fb5('0x7e')](_0x20efda['getAttribute'](_0x1fb5('0x102')),{'userId':_0xa20c1d}),this[_0x1fb5('0x7d')][_0x1fb5('0x7e')](_0x5a88b3[_0x1fb5('0xd4')](_0x1fb5('0x10c')),{'userId':_0xa20c1d});}else{const _0x561c0b=this['_revisionId']++,_0x36239c=this[_0x1fb5('0x53')]++;_0x20efda[_0x1fb5('0x87')](_0x1fb5('0x102'),_0x561c0b),_0x5a88b3['_setAttribute']('vid_start',_0x36239c),_0x5a88b3[_0x1fb5('0x87')](_0x1fb5('0x102'),_0x30b61f),this[_0x1fb5('0x7d')][_0x1fb5('0x7e')](_0x561c0b,{'userId':_0xa20c1d}),this['_touched'][_0x1fb5('0x7e')](_0x36239c,{'userId':_0xa20c1d});}}[_0x1fb5('0x2a')](_0x536b06){if(!_0x536b06[_0x1fb5('0xc6')])return;const _0x2d11a7=(_0x536b06=this[_0x1fb5('0xe2')](_0x536b06,this['_diffRoots']))[_0x1fb5('0xf3')]?_0x536b06['oldRange'][_0x1fb5('0x3e')]:null,_0x5ae811=_0x536b06['newRange']?_0x536b06[_0x1fb5('0xba')][_0x1fb5('0x3e')]:null;_0x2d11a7&&this[_0x1fb5('0xf2')][_0x1fb5('0x2')](_0x536b06[_0x1fb5('0xfe')]),_0x5ae811&&this['_markers'][_0x1fb5('0x7e')](_0x536b06[_0x1fb5('0xfe')],_0x536b06['newRange'][_0x1fb5('0xaa')]());const _0x38d8bb=null===_0x536b06[_0x1fb5('0xed')]?null:_0x536b06[_0x1fb5('0xed')]||this[_0x1fb5('0xea')][_0x1fb5('0x49')][_0x1fb5('0xc8')](_0x1fb5('0x5f'))['me']['id'],_0x1118e5=_0x536b06['name'];if(!this['_touchedMarkers'][_0x1fb5('0x6c')](_0x1118e5))return void this[_0x1fb5('0xc4')][_0x1fb5('0x7e')](_0x1118e5,{'range':_0x536b06[_0x1fb5('0xf3')],'userId':_0x38d8bb});const _0x236ff1=this[_0x1fb5('0xc4')][_0x1fb5('0xc8')](_0x1118e5),_0x1f8f48=_0x236ff1[_0x1fb5('0xa9')],_0x3aef71=_0x536b06[_0x1fb5('0xba')];null==_0x1f8f48&&null==_0x3aef71||_0x1f8f48&&_0x3aef71&&_0x1f8f48[_0x1fb5('0x2e')](_0x3aef71)?this[_0x1fb5('0xc4')][_0x1fb5('0x2')](_0x536b06['name']):_0x236ff1[_0x1fb5('0x2f')]=_0x38d8bb;}[_0x1fb5('0x82')](_0x4cec3b,_0x1c5bcb){this[_0x1fb5('0x2b')][_0x1fb5('0x6c')](_0x4cec3b[_0x1fb5('0x51')])?this['_diffRoots'][_0x1fb5('0xc8')](_0x4cec3b[_0x1fb5('0x51')])[_0x1fb5('0x69')]=_0x4cec3b[_0x1fb5('0x8e')]:(this[_0x1fb5('0x2b')][_0x1fb5('0x7e')](_0x4cec3b[_0x1fb5('0x51')],G(_0x4cec3b['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4cec3b[_0x1fb5('0x51')],{}),_0x1c5bcb&&this['_idsRoots'][_0x1fb5('0x7e')](_0x4cec3b['rootName'],G(_0x4cec3b['rootName'],!0x0)));const _0x39dd7f=null===_0x4cec3b[_0x1fb5('0xed')]?null:_0x4cec3b[_0x1fb5('0xed')]||this[_0x1fb5('0xea')]['plugins'][_0x1fb5('0xc8')](_0x1fb5('0x5f'))['me']['id'],_0x1f355d=this[_0x1fb5('0xd7')]['get'](_0x4cec3b[_0x1fb5('0x51')]);_0x1f355d&&_0x1f355d[_0x1fb5('0x2f')]===_0x39dd7f?this[_0x1fb5('0xd7')][_0x1fb5('0x2')](_0x4cec3b['rootName']):this[_0x1fb5('0xd7')][_0x1fb5('0x7e')](_0x4cec3b[_0x1fb5('0x51')],{'userId':_0x39dd7f,'isAttached':_0x4cec3b[_0x1fb5('0x8e')]});}[_0x1fb5('0x66')](_0x21e2de){const _0x4ab6d5=this['_diffRootsAttributes'][_0x1fb5('0xc8')](_0x21e2de[_0x1fb5('0x3e')][_0x1fb5('0x51')]);null===_0x21e2de[_0x1fb5('0x100')]?delete _0x4ab6d5[_0x21e2de[_0x1fb5('0x55')]]:_0x4ab6d5[_0x21e2de[_0x1fb5('0x55')]]=_0x21e2de[_0x1fb5('0x100')];}}function q(_0x52461f){const _0x2676a2=G(_0x52461f[_0x1fb5('0x51')],_0x52461f['isAttached']());for(const _0x1a0122 of _0x52461f['getChildren']()){const _0x3ce151=_0x1a0122[_0x1fb5('0x4f')](!0x0);_0x2676a2[_0x1fb5('0xcf')](_0x3ce151);}return _0x2676a2;}function G(_0xd0d410,_0x209231=!0x0){const _0x3aafe6=new _0x20ef05();return _0x3aafe6[_0x1fb5('0x51')]=_0xd0d410,_0x3aafe6[_0x1fb5('0x69')]=_0x209231,_0x3aafe6[_0x1fb5('0xd')]=()=>_0x3aafe6[_0x1fb5('0x69')],_0x3aafe6;}function L(_0x3bf4cb,_0x197066,_0x53359d){const _0xc921e9='elementEnd'==_0x3bf4cb['type']?_0x53359d[_0x1fb5('0x1f')](_0x3bf4cb[_0x1fb5('0x28')],_0x1fb5('0x5e')):_0x53359d[_0x1fb5('0xff')](_0x3bf4cb['item']);return _0x53359d[_0x1fb5('0x108')](_0x197066,_0xc921e9['path'],_0xc921e9[_0x1fb5('0xb7')]);}function W(_0x5beeca,_0x2cfc8a,_0x1ccace){const _0xc40eac=_0x1fb5('0x21')==_0x5beeca[_0x1fb5('0x1c')]?_0x1ccace[_0x1fb5('0x1f')](_0x5beeca[_0x1fb5('0x28')],0x0):_0x1ccace[_0x1fb5('0x8a')](_0x5beeca[_0x1fb5('0x28')]);return _0x1ccace['createPositionFromPath'](_0x2cfc8a,_0xc40eac[_0x1fb5('0x29')],_0xc40eac['stickiness']);}
|
|
23
|
+
const _0x9833=['baseVersion','reInit','authors','nodes','_pendingAction','roots','history','useFillerType','bind','locale','markers','forEach','key','update','_revisionId','_handleMoveOperation','editing','document','values','add','setRevisionData','attachChange','_appendChild','previousPosition','affectsData','range','finally','_makeRevision','_source','_getViewJson','_insertChild','_handleRootAttributeOperation','_calculateMetaData','_fixPosition','shift','parse','conversion','_fixOperation','marked','getAncestors','children','_isInit','documentFragment','childCount','some','paragraph','hasContent','_getState','saveRevision','_startingRevisionId','isReady','getOperation','createdAt','addRoot','_continueCurrentRevision','_lastTo','deletions','push','vid_start','stickiness','revision','isEqual','_handleSplitOperation','end','version','size','_findInsertionIndex','_prepareViewToSave','NEGATIVE_INFINITY','plugins','delete','_getFromVersion','howMany','rootsAttributes','diffData','getChildren','stringify','addRevision','createRevision','getRevisionRootsAttributes','init','slice','length','addRootAttribute','string','source','dataDowncast','oldRange','$graveyard','editor','_createCurrentRevision','root','getRevisionDocumentData','insertion','createPositionBefore','newRange','initialData','_markChanges','getLatestVersion','type','creatorId','from','_removeMetaData','_diffRootsAttributes','revisionHistory.resumeUnsavedRevision','dataToMarker','name','getRange','_baseIdsRoots','setSource','_handleOperation','getAttributes','_getVidAttributeName','_revisionDataBuilder','getAttribute','keys','get','detachRoot','for','_startingVersion','collaboration.channelId','requires','merge','path','_addPendingAction','map','_markers','getWalker','_loadedStateData','getMovedRangeStart','_savedMetaData','insertions','_generateTape','_bufferedUpdates','fromEntries','vid','_execute','rootName','_touchedRoots','reverse','upcast','trim','adapter','position','revision-end','_getPreviousFrom','loadState','filter','then','_removePendingAction','clone','userId','toVersion','getUser','_setConversion','define','_authorId','creator','buildRevisionData','getData','item','targetPosition','_loadState','createPositionAt','_initialRevisionId','_makeIdsRoot','Initial\x20revision','_processRootBeforeSave','processor','getTransformedByOperation','_isPendingUpdate','getRoot','getNodeByPath','getIndex','_baseRootsAttributes','updateRevisions','attributesBefore','repository','_replaceEditorDataWithRevisionData','has','getTime','_loadRevisionData','view','getChild','elementStart','set','_makeModelFromViewString','currentRevision','Users','_touchedMarkers','parent','removeRootAttribute','_touched','startsWith','resolve','attributes','data-revision-','getRootNames','$text','config','_isAttached','data','marker','toView','revision:','_copyMarkers','isEnabled','elementEnd','nodeAfter','clear','move','tableCell','sendBufferedUpdates','sourcePosition','insertionPosition','_handleMarkerOperation','_reset','_cloneOperation','max','_transformMarkers','_fixRange','_createInitialRevision','splitPosition','createRangeIn','isAttached','createRange','_handleRootOperation','reinsert','editor-initial-data-replaced-with-revision-data','_saveMetaData','getRevision','text','PendingActions','attributesAfter','toModel','insert','afterInit','_setAttribute','newValue','find','offsetSize','_baseRoots','fromVersion','_removeRevisionMarkers','_bufferUpdate','_applyOperations','createPositionFromPath','_idsRoots','_lastFrom','model','start','offset','authorsIds','getOperations','element','_diffRoots','vid_end','getCurrentRevisionId','_update','addRevisionData','split','getRevisions','remove','pluginName','includes'];(function(_0x28dd23,_0x98334b){const _0x221f3=function(_0x47c65f){while(--_0x47c65f){_0x28dd23['push'](_0x28dd23['shift']());}};_0x221f3(++_0x98334b);}(_0x9833,0x10f));const _0x221f=function(_0x28dd23,_0x98334b){_0x28dd23=_0x28dd23-0x0;let _0x221f3=_0x9833[_0x28dd23];return _0x221f3;};import{Users as _0x5759be}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x151ebc,PendingActions as _0x3d2959}from'ckeditor5/src/core';import{logWarning as _0x3c55e7,uid as _0x2459a2}from'ckeditor5/src/utils';import{Position as _0x57d853,Range as _0x3ef9e0,Element as _0x26142d,DocumentFragment as _0xfe15d4,ViewText as _0x18abf4,ViewElement as _0x246ad3,ViewContainerElement as _0x3ca338,ViewAttributeElement as _0x29d46d,ViewEmptyElement as _0x16c6c3,ViewRawElement as _0x2e8632,ViewUIElement as _0x4f6041,ViewDocumentFragment as _0x33d446}from'ckeditor5/src/engine';import _0x3bfb1e from'./revisionsrepository';import{getTranslation as _0x272e7a}from'./utils/common-translations';import{cloneDeep as _0x1be9b3,isEqual as _0x3c08e8}from'lodash-es';const B={'c':_0x3ca338,'a':_0x29d46d,'e':_0x16c6c3,'r':_0x2e8632,'u':_0x4f6041};export default class l extends _0x151ebc{static get[_0x221f('0x101')](){return'RevisionTracker';}static get[_0x221f('0x73')](){return[_0x5759be,_0x3bfb1e,_0x3d2959];}constructor(_0x4d8b0a){super(_0x4d8b0a),this[_0x221f('0x88')]=null,this[_0x221f('0xb5')]=null,this[_0x221f('0x6b')]=new H(this[_0x221f('0x53')]),this[_0x221f('0x9e')]=this[_0x221f('0x53')][_0x221f('0xc1')][_0x221f('0x6e')](_0x221f('0x72'))||'initial',this[_0x221f('0x7f')]=new Map(),this[_0x221f('0x7a')]=null;const _0x46694f=_0x2459a2();this[_0x221f('0x16')]={'history':this[_0x221f('0x53')][_0x221f('0xf3')][_0x221f('0xb')][_0x221f('0x0')],'getLatestVersion':()=>Promise[_0x221f('0xbc')](this['editor'][_0x221f('0xf3')][_0x221f('0xb')]['version']),'getCurrentRevisionId':()=>_0x46694f},this[_0x221f('0xb3')]('isReady',!0x1),this['set'](_0x221f('0xc8'),!0x0),this[_0x221f('0xb3')](_0x221f('0xa4'),!0x1),this['editor']['config'][_0x221f('0x95')](_0x221f('0x62'),!0x0),this[_0x221f('0x53')][_0x221f('0x1e')][_0x221f('0x70')](_0x221f('0x86'))[_0x221f('0x63')]({'view':_0x221f('0x36')});}[_0x221f('0x4a')](){this['repository']=this[_0x221f('0x53')][_0x221f('0x3f')][_0x221f('0x6e')]('RevisionsRepository'),this[_0x221f('0x94')](),this['editor'][_0x221f('0xc3')]['on']('ready',()=>{const _0x4cbf5a=this[_0x221f('0xab')][_0x221f('0xe0')](0x0),_0x426f1e=_0x4cbf5a&&null===_0x4cbf5a[_0x221f('0x97')]?_0x4cbf5a:null;if(this[_0x221f('0x30')]=!!_0x426f1e&&this[_0x221f('0x53')][_0x221f('0xc1')][_0x221f('0x6e')](_0x221f('0x62')),this['editor'][_0x221f('0x3f')]['has']('RealTimeCollaborationClient')){const _0x42a363=this[_0x221f('0x16')][_0x221f('0xfb')](),_0x2fbb85=this[_0x221f('0xab')][_0x221f('0xe0')](_0x42a363);if(_0x2fbb85)this[_0x221f('0x71')]=_0x2fbb85[_0x221f('0xec')],this[_0x221f('0x30')]=!0x1;else{const _0x1f30e8=this[_0x221f('0x16')][_0x221f('0x0')]['_operations']['find'](_0x24e062=>!_0x24e062[_0x221f('0x23')]),_0x1f864b=_0x1f30e8?_0x1f30e8[_0x221f('0x103')]:this[_0x221f('0x16')][_0x221f('0x0')][_0x221f('0x3a')];_0x4cbf5a?(_0x4cbf5a[_0x221f('0x92')]<_0x1f864b&&_0x4cbf5a['_update']({'toVersion':_0x1f864b}),this['_continueCurrentRevision']?(this[_0x221f('0x16')][_0x221f('0xfb')]=()=>_0x426f1e['id'],this['_startingVersion']=_0x426f1e[_0x221f('0xec')]):(this[_0x221f('0x71')]=_0x4cbf5a[_0x221f('0x92')],this[_0x221f('0x30')]=!0x1)):(this[_0x221f('0x71')]=_0x1f864b,this[_0x221f('0x30')]=!0x1);}}else _0x426f1e&&(this[_0x221f('0x53')]['model'][_0x221f('0xb')][_0x221f('0x0')]['version']=Math[_0x221f('0xd4')](_0x426f1e['toVersion'],this[_0x221f('0x53')][_0x221f('0xf3')][_0x221f('0xb')][_0x221f('0x0')][_0x221f('0x3a')]),_0x426f1e[_0x221f('0xec')]===_0x426f1e[_0x221f('0x92')]?(0x0!==_0x426f1e['fromVersion']&&(this[_0x221f('0x16')][_0x221f('0xfb')]=()=>_0x426f1e['id']),this[_0x221f('0x30')]=!0x1):this[_0x221f('0x30')]&&(this[_0x221f('0x16')][_0x221f('0xfb')]=()=>_0x426f1e['id'],this[_0x221f('0x71')]=_0x426f1e['fromVersion'])),this[_0x221f('0x30')]||(this[_0x221f('0x71')]=this[_0x221f('0x53')]['model'][_0x221f('0xb')][_0x221f('0x3a')]);this[_0x221f('0x6b')]['init'](this[_0x221f('0x16')][_0x221f('0x0')]),this[_0x221f('0xd7')](this[_0x221f('0x71')]),this[_0x221f('0x54')](this[_0x221f('0x71')]),this['adapter']&&this['sendBufferedUpdates']();}),this[_0x221f('0x2')](_0x221f('0x2c'))['to'](this,_0x221f('0xa4'),_0x18c729=>!_0x18c729);}async[_0x221f('0xe6')](){if(this['repository']['length']>0x0){const _0x3bb1d0=this['repository'][_0x221f('0xe0')](0x0),_0x3a04e1=await this[_0x221f('0x56')](_0x3bb1d0),_0x29f74b=await this['getRevisionRootsAttributes'](_0x3bb1d0);this['_replaceEditorDataWithRevisionData'](_0x3a04e1,_0x29f74b);}}[_0x221f('0x67')](_0x311348){this[_0x221f('0x16')]=_0x311348;}async[_0x221f('0x7')](){const _0x26726c=await this[_0x221f('0x16')][_0x221f('0x5c')]();if(_0x26726c>this[_0x221f('0xb5')][_0x221f('0x92')]){await this[_0x221f('0x9c')]();const _0x1a4207=this['buildRevisionData']({'revision':this[_0x221f('0xb5')],'to':_0x26726c});_0x1a4207['authors']=_0x1a4207[_0x221f('0xf6')][_0x221f('0x77')](_0xa011d8=>this[_0x221f('0x53')]['plugins']['get'](_0x221f('0xb6'))['getUser'](_0xa011d8)),this[_0x221f('0xb5')][_0x221f('0xfc')](_0x1a4207);}}async[_0x221f('0x9c')](){this['_continueCurrentRevision']&&!this[_0x221f('0x7a')]&&(await this[_0x221f('0xaf')](this[_0x221f('0xb5')]),this[_0x221f('0x6b')][_0x221f('0x8c')](this[_0x221f('0xb5')]),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this[_0x221f('0xb5')][_0x221f('0x105')][_0x221f('0x4b')]()});}async[_0x221f('0x2a')](_0x541fe7={},_0x1ae0a8=null){const _0x3f1d9e=[];await this['_loadState'](),this[_0x221f('0x30')]=!0x1,_0x1ae0a8>this[_0x221f('0xb5')][_0x221f('0x92')]&&(_0x1ae0a8=null),null===_0x1ae0a8&&(_0x1ae0a8=await this[_0x221f('0x16')][_0x221f('0x5c')]());const _0x41c41c=this[_0x221f('0x41')](_0x1ae0a8),_0x558221=this['buildRevisionData']({'from':_0x41c41c,'to':_0x1ae0a8});if(this[_0x221f('0xb5')][_0x221f('0x92')]<_0x1ae0a8){const _0x4491a0=this[_0x221f('0x98')]({'revision':this[_0x221f('0xb5')],'from':_0x1ae0a8,'to':_0x1ae0a8});_0x4491a0[_0x221f('0x105')]=[],_0x4491a0[_0x221f('0xf6')]=[],_0x4491a0['id']=this[_0x221f('0xb5')]['id'],this[_0x221f('0xb5')]['_update'](_0x4491a0,!0x0),delete _0x4491a0[_0x221f('0x105')],_0x3f1d9e[_0x221f('0x33')](_0x4491a0);}_0x541fe7['creatorId']=this[_0x221f('0x53')][_0x221f('0x3f')][_0x221f('0x6e')](_0x221f('0xb6'))['me']['id'],_0x541fe7[_0x221f('0x64')]=_0x541fe7[_0x221f('0x64')]||null,_0x541fe7['id']=_0x541fe7['id']||_0x2459a2(),_0x541fe7={..._0x541fe7,..._0x558221};const _0x5304cc=this[_0x221f('0xfd')](_0x541fe7);_0x3f1d9e[_0x221f('0x33')](_0x541fe7);const _0x48b5fa=this[_0x221f('0xab')][_0x221f('0xa7')](_0x5304cc);if(0x0!==_0x48b5fa){const _0x25b59d=this['repository'][_0x221f('0xe0')](_0x48b5fa-0x1);if(_0x25b59d['fromVersion']!==_0x1ae0a8){const _0x309985=this['_revisionDataBuilder'][_0x221f('0x99')](_0x1ae0a8,_0x25b59d['toVersion']),_0x4a2c7a={'id':_0x25b59d['id'],'diffData':_0x309985[_0x221f('0x44')],'authorsIds':_0x309985[_0x221f('0xf6')],'authors':_0x309985[_0x221f('0xf6')][_0x221f('0x77')](_0x46fbab=>this[_0x221f('0x53')]['plugins']['get'](_0x221f('0xb6'))[_0x221f('0x93')](_0x46fbab)),'fromVersion':_0x1ae0a8};_0x25b59d===this[_0x221f('0xb5')]&&(_0x4a2c7a[_0x221f('0x2e')]=new Date(_0x541fe7['createdAt'][_0x221f('0xae')]()+0xa)),_0x25b59d[_0x221f('0xfc')](_0x4a2c7a,!0x0),delete _0x4a2c7a[_0x221f('0x105')],_0x3f1d9e[_0x221f('0x33')](_0x4a2c7a);}}if(this['adapter']){for(const _0x5c117a of _0x3f1d9e)this['_bufferUpdate'](_0x5c117a['id'],_0x5c117a,!0x0);this[_0x221f('0xce')]();}return _0x5304cc;}['addRevisionData'](_0xb9e0f1){const _0xe5faaf=this[_0x221f('0xab')][_0x221f('0x48')](_0xb9e0f1);return this[_0x221f('0x88')]&&_0xe5faaf['on'](_0x221f('0xfc'),(_0x3b4843,_0x45a8d5,_0x5a1ccb)=>{_0x5a1ccb||(this[_0x221f('0xee')](_0x45a8d5['id'],_0x45a8d5,!0x0),this[_0x221f('0xce')]());}),this[_0x221f('0xab')][_0x221f('0x47')](_0xe5faaf,this[_0x221f('0x3c')](_0xe5faaf)),_0xe5faaf;}async[_0x221f('0x56')](_0x27d378){await this[_0x221f('0xaf')](_0x27d378);const _0x3faeea={};for(const _0x24bac0 in _0x27d378[_0x221f('0x44')]){if(_0x27d378['diffData'][_0x24bac0][_0x221f('0xf')]&&!_0x27d378['diffData'][_0x24bac0]['attachChange'][_0x221f('0xda')])continue;const _0x27eb17=this[_0x221f('0xed')](JSON[_0x221f('0x1d')](_0x27d378[_0x221f('0x44')][_0x24bac0][_0x221f('0x7d')])),_0x2ebb63=this[_0x221f('0x53')][_0x221f('0xa')][_0x221f('0xb0')][_0x221f('0xb')],_0x1ec2e5=new _0x33d446(_0x2ebb63,_0x27eb17[_0x221f('0x77')](_0x4508df=>J(_0x4508df,this[_0x221f('0x53')])));this['editor'][_0x221f('0xc3')][_0x221f('0xa2')][_0x221f('0x1')](_0x221f('0x20')),_0x3faeea[_0x24bac0]=this[_0x221f('0x53')][_0x221f('0xc3')][_0x221f('0xa2')]['toData'](_0x1ec2e5),this[_0x221f('0x53')][_0x221f('0xc3')][_0x221f('0xa2')]['useFillerType']('default');}return _0x3faeea;}async[_0x221f('0x49')](_0x403831){await this[_0x221f('0xaf')](_0x403831);const _0x5f1403={};for(const _0x21a2c4 in _0x403831[_0x221f('0x44')])_0x403831[_0x221f('0x44')][_0x21a2c4][_0x221f('0xf')]&&!_0x403831[_0x221f('0x44')][_0x21a2c4]['attachChange'][_0x221f('0xda')]||(_0x5f1403[_0x21a2c4]=_0x403831[_0x221f('0x44')][_0x21a2c4][_0x221f('0xe3')]||{});return _0x5f1403;}[_0x221f('0xce')](){if(0x0===this[_0x221f('0x7f')][_0x221f('0x3b')])return;if(this[_0x221f('0xa4')])return;let _0x28309e=Array['from'](this[_0x221f('0x7f')]['values']());this[_0x221f('0x7f')]['clear']();for(let _0xa2dd9a=0x0;_0xa2dd9a<_0x28309e[_0x221f('0x4c')];_0xa2dd9a++){const _0x3671c3=_0x28309e[_0xa2dd9a];let _0x49ac24=!0x1;for(const _0x23f079 of Object[_0x221f('0x6d')](_0x3671c3))void 0x0===_0x3671c3[_0x23f079]?delete _0x3671c3[_0x23f079]:'id'!==_0x23f079&&(_0x49ac24=!0x0);_0x49ac24||(_0x28309e[_0xa2dd9a]=null);}if(_0x28309e=_0x28309e[_0x221f('0x8d')](_0x401dcc=>null!==_0x401dcc),!_0x28309e[_0x221f('0x4c')])return;for(let _0x5a2c37=0x0;_0x5a2c37<_0x28309e['length'];_0x5a2c37++){const _0x25414c=_0x28309e[_0x5a2c37];void 0x0!==_0x25414c[_0x221f('0xec')]&&void 0x0===_0x25414c['toVersion']&&(_0x25414c[_0x221f('0x92')]=this['repository']['getRevision'](_0x25414c['id'])[_0x221f('0x92')]),void 0x0!==_0x25414c['toVersion']&&void 0x0===_0x25414c[_0x221f('0xec')]&&(_0x25414c[_0x221f('0xec')]=this[_0x221f('0xab')][_0x221f('0xe0')](_0x25414c['id'])[_0x221f('0xec')]);}const _0x4cc070=this[_0x221f('0x53')][_0x221f('0xc1')][_0x221f('0x6e')](_0x221f('0x72'));this['_isPendingUpdate']=!0x0,this[_0x221f('0x76')](),this[_0x221f('0x88')][_0x221f('0xa9')](_0x28309e,_0x4cc070)[_0x221f('0x14')](()=>{this[_0x221f('0xa4')]=!0x1;})[_0x221f('0x8e')](_0x584610=>{if(_0x584610)for(const _0x25b1fa of _0x584610)this[_0x221f('0xe')]({'id':_0x25b1fa['id'],'createdAt':_0x25b1fa[_0x221f('0x2e')]});this[_0x221f('0x8f')](),this['sendBufferedUpdates']();});}[_0x221f('0xac')](_0x298d03,_0x356f4e){let _0x3a81b1=this[_0x221f('0x53')][_0x221f('0xc1')][_0x221f('0x6e')]('initialData'),_0x5d6fbc=this[_0x221f('0x53')]['config'][_0x221f('0x6e')](_0x221f('0x43'));if(void 0x0===_0x3a81b1){_0x3a81b1={};for(const _0x8e4431 of this[_0x221f('0x53')]['model'][_0x221f('0xb')][_0x221f('0xbf')]())_0x3a81b1[_0x8e4431]='';}if('string'==typeof _0x3a81b1&&(_0x3a81b1={'main':_0x3a81b1}),void 0x0===_0x5d6fbc){_0x5d6fbc={};for(const _0x2214b8 of this['editor'][_0x221f('0xf3')][_0x221f('0xb')][_0x221f('0xbf')]())_0x5d6fbc[_0x2214b8]={};}let _0x2817aa=!0x1;const _0x45514d=Object['keys'](_0x3a81b1),_0x287dec=Object['keys'](_0x298d03);for(const _0x6bcd21 of _0x45514d){if(_0x3a81b1[_0x6bcd21]!==_0x298d03[_0x6bcd21]&&''!==_0x3a81b1[_0x6bcd21][_0x221f('0x87')]()){_0x2817aa=!0x0;break;}if(!_0x3c08e8(_0x5d6fbc[_0x6bcd21],_0x356f4e[_0x6bcd21])&&Object[_0x221f('0x6d')](_0x5d6fbc[_0x6bcd21])[_0x221f('0x4c')]>0x0){_0x2817aa=!0x0;break;}}_0x2817aa||(_0x2817aa=_0x287dec[_0x221f('0x26')](_0x36be1b=>!this[_0x221f('0x53')][_0x221f('0xf3')]['document'][_0x221f('0xa5')](_0x36be1b))),_0x2817aa&&_0x3c55e7(_0x221f('0xde'),{'editorData':_0x3a81b1,'editorRootsAttributes':_0x5d6fbc,'revisionData':_0x298d03,'revisionRootsAttributes':_0x356f4e}),this[_0x221f('0x53')]['config'][_0x221f('0xb3')](_0x221f('0x5a'),_0x298d03),this['editor'][_0x221f('0xc1')][_0x221f('0xb3')](_0x221f('0x43'),_0x356f4e);}['_addPendingAction'](){if(!this[_0x221f('0x107')]){const _0x3de58b=this[_0x221f('0x53')]['plugins']['get'](_0x221f('0xe2'));this['_pendingAction']=_0x3de58b['add'](_0x272e7a(this[_0x221f('0x53')][_0x221f('0x3')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x221f('0x8f')](){this[_0x221f('0x107')]&&(this[_0x221f('0x53')]['plugins'][_0x221f('0x6e')]('PendingActions')[_0x221f('0x100')](this[_0x221f('0x107')]),this[_0x221f('0x107')]=null);}['_findInsertionIndex'](_0x39c824){const _0x30a0f8=this['repository']['getRevisions']();_0x30a0f8[_0x221f('0x85')]();let _0xf6289c=0x0;for(;_0xf6289c<_0x30a0f8[_0x221f('0x4c')];){const _0x5d206a=_0x30a0f8[_0xf6289c];if(_0x5d206a===this[_0x221f('0xb5')]){_0xf6289c++;continue;}if(_0x5d206a['id']===this[_0x221f('0x9e')])break;const _0x3f2c1c=_0x39c824[_0x221f('0x92')]-_0x5d206a['toVersion']||_0x39c824[_0x221f('0xec')]-_0x5d206a[_0x221f('0xec')];if(_0x3f2c1c>0x0)break;if(_0x3f2c1c<0x0)_0xf6289c++;else{if(!_0x39c824[_0x221f('0x97')]&&_0x5d206a[_0x221f('0x97')])break;if(_0x5d206a[_0x221f('0x97')]||!_0x39c824[_0x221f('0x97')]){if(_0x39c824[_0x221f('0x2e')]>_0x5d206a['createdAt'])break;_0xf6289c++;}else _0xf6289c++;}}return _0xf6289c;}[_0x221f('0xe')](_0x487d17){const _0x1da836=this['repository']['getRevision'](_0x487d17['id']);if(_0x487d17[_0x221f('0x2e')]&&(_0x487d17[_0x221f('0x2e')]=new Date(_0x487d17[_0x221f('0x2e')])),_0x487d17[_0x221f('0xf6')]){const _0x371f0b=this[_0x221f('0x53')][_0x221f('0x3f')][_0x221f('0x6e')]('Users');_0x487d17[_0x221f('0x105')]=_0x487d17[_0x221f('0xf6')]['map'](_0x178dfa=>_0x371f0b[_0x221f('0x93')](_0x178dfa));}_0x1da836['_update'](_0x487d17,!0x0);}[_0x221f('0x98')]({revision:_0x1eba5e=null,from:_0xfc5c45=null,to:_0x185a52=null}){_0xfc5c45=null!==_0xfc5c45?_0xfc5c45:_0x1eba5e[_0x221f('0xec')],_0x185a52=null!==_0x185a52?_0x185a52:_0x1eba5e['toVersion'];const _0x2bc6ea=this[_0x221f('0x6b')]['getData'](_0xfc5c45,_0x185a52),_0x11bcce={'diffData':_0x2bc6ea['diffData'],'authorsIds':_0x2bc6ea['authorsIds'],'fromVersion':_0xfc5c45,'toVersion':_0x185a52};if(!_0x1eba5e||_0x185a52!==_0x1eba5e[_0x221f('0x92')]){const _0x31ab77=_0x185a52-0x1,_0x4bcbd5=this['_source'][_0x221f('0x0')][_0x221f('0x2d')](_0x31ab77);_0x11bcce[_0x221f('0x2e')]=_0x4bcbd5&&_0x4bcbd5[_0x221f('0x2e')]||new Date();}if(this['_loadedStateData']&&_0xfc5c45===this['_loadedStateData']['fromVersion'])for(const _0x1b2f94 of this[_0x221f('0x7a')][_0x221f('0x105')])_0x11bcce['authorsIds'][_0x221f('0x102')](_0x1b2f94['id'])||_0x11bcce['authorsIds']['push'](_0x1b2f94['id']);return _0x11bcce;}['_loadRevisionData'](_0x1c8c53){if(!_0x1c8c53||_0x1c8c53[_0x221f('0x44')])return Promise['resolve']();{const _0x3f9149=this[_0x221f('0x53')][_0x221f('0xc1')]['get'](_0x221f('0x72'));return this['adapter']['getRevision']({'channelId':_0x3f9149,'revisionId':_0x1c8c53['id']})[_0x221f('0x8e')](_0x47abe5=>{_0x1c8c53[_0x221f('0x44')]=_0x47abe5[_0x221f('0x44')];});}}[_0x221f('0xee')](_0x577a64,_0x4d9303,_0x4b4733){if(this[_0x221f('0x7f')]['has'](_0x577a64)){const _0x1b5dec=this['_bufferedUpdates'][_0x221f('0x6e')](_0x577a64);_0x4d9303=_0x4b4733?{..._0x1b5dec,..._0x4d9303}:{..._0x4d9303,..._0x1b5dec};}this[_0x221f('0x7f')][_0x221f('0xb3')](_0x577a64,_0x4d9303);}['_getFromVersion'](_0x2c8cbe){const _0x554a67=this['repository'][_0x221f('0xff')]();_0x554a67[_0x221f('0x85')](),_0x554a67[_0x221f('0x1c')]();const _0x598ad9=_0x554a67['find'](_0x30f69f=>_0x30f69f[_0x221f('0x92')]<=_0x2c8cbe)[_0x221f('0x92')];return _0x598ad9<this['_startingVersion']?this['_startingVersion']:_0x598ad9;}[_0x221f('0xd7')](_0x58677c){const _0x144a74=this[_0x221f('0xab')][_0x221f('0xe0')](this[_0x221f('0xab')][_0x221f('0x4c')]-0x1);if(_0x144a74)this[_0x221f('0x9e')]=_0x144a74['id'];else{const _0x2181b5=!this[_0x221f('0x53')][_0x221f('0xf3')][_0x221f('0xb')][_0x221f('0x108')][_0x221f('0xe9')](_0x4d7ba0=>this[_0x221f('0x53')][_0x221f('0xf3')][_0x221f('0x28')](_0x4d7ba0)),_0x5e8231=this[_0x221f('0x53')][_0x221f('0x3f')]['get'](_0x221f('0xb6'))['me']['id'],_0x1656fd=_0x272e7a(this[_0x221f('0x53')]['locale'],_0x2181b5?'Empty\x20document':_0x221f('0xa0'));this[_0x221f('0x15')]({'from':_0x58677c,'to':_0x58677c,'id':this[_0x221f('0x9e')],'name':_0x1656fd,'creatorId':_0x5e8231});}}[_0x221f('0x54')](_0x1a2f75){const _0x217f2b=this[_0x221f('0x16')][_0x221f('0xfb')]();this[_0x221f('0xb5')]=this['repository'][_0x221f('0xe0')](_0x217f2b),this['currentRevision']||(this[_0x221f('0xb5')]=this[_0x221f('0x15')]({'from':_0x1a2f75,'to':_0x1a2f75,'id':_0x217f2b,'name':'','creatorId':null}));}[_0x221f('0x15')]({name:_0x1b6753,from:_0x3dcd0d,to:_0x48e933,creatorId:_0x4f4665,id:_0x64cabe}){const _0x13ab2a=this['buildRevisionData']({'from':_0x3dcd0d,'to':_0x48e933});_0x13ab2a[_0x221f('0x64')]=_0x1b6753,_0x13ab2a[_0x221f('0x5e')]=_0x4f4665,_0x13ab2a['id']=_0x64cabe;const _0x3a9058=this[_0x221f('0xfd')](_0x13ab2a);return this[_0x221f('0x88')]&&this[_0x221f('0xee')](_0x13ab2a['id'],_0x13ab2a,!0x0),_0x3a9058;}['_setConversion'](){this[_0x221f('0x53')][_0x221f('0x1e')][_0x221f('0x70')](_0x221f('0x50'))['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x33263c){return(_0x33263c=_0x33263c[_0x221f('0x8d')](_0x35d651=>!_0x35d651[_0x221f('0x64')]||'revision-start'!==_0x35d651['name']&&_0x221f('0x8a')!==_0x35d651['name']))[_0x221f('0x5')](_0x4ce93f=>{_0x221f('0x4e')!=typeof _0x4ce93f&&(_0x4ce93f[_0x221f('0x22')]=this['_removeRevisionMarkers'](_0x4ce93f[_0x221f('0x22')]),_0x4ce93f['attributes']=_0x4ce93f[_0x221f('0xbd')]['filter'](_0x1f5aa9=>!_0x1f5aa9[0x0][_0x221f('0xbb')](_0x221f('0xbe'))));}),_0x33263c;}}function J(_0x13165e,_0x14c8d4){const _0x238fed=_0x14c8d4[_0x221f('0xa')]['view']['document'];if(_0x221f('0x4e')==typeof _0x13165e)return new _0x18abf4(_0x238fed,_0x13165e);{const _0x448bdb=_0x13165e[_0x221f('0x22')][_0x221f('0x77')](_0x3bd842=>J(_0x3bd842,_0x14c8d4));return new(B[_0x13165e['type']]||_0x246ad3)(_0x238fed,_0x13165e[_0x221f('0x64')],_0x13165e['attributes'],_0x448bdb);}}class H{constructor(_0xc5e01c){this[_0x221f('0x53')]=_0xc5e01c,this[_0x221f('0x7c')]=new Map(),this[_0x221f('0xf2')]=-0x1,this[_0x221f('0x31')]=-0x1,this[_0x221f('0x78')]=new Map(),this[_0x221f('0xf9')]=new Map(),this[_0x221f('0x61')]=new Map(),this[_0x221f('0xeb')]=new Map(),this[_0x221f('0xa8')]=new Map(),this[_0x221f('0xf1')]=new Map(),this[_0x221f('0x66')]=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this[_0x221f('0x84')]=new Map(),this[_0x221f('0x8')]=0x1;}[_0x221f('0x4a')](_0xc80dce){this[_0x221f('0x4f')]=_0xc80dce;const _0x26eb1e=new Map(),_0x1bc231=new Map(),_0x5a5998=this[_0x221f('0x53')][_0x221f('0xf3')][_0x221f('0xb')][_0x221f('0x108')][_0x221f('0x77')](_0x1ba563=>_0x1ba563[_0x221f('0x83')]);for(const _0x2b27d0 of _0x5a5998){const _0x1672a8=this['editor'][_0x221f('0xf3')][_0x221f('0xb')]['getRoot'](_0x2b27d0),_0x5f4f64=q(_0x1672a8);_0x26eb1e[_0x221f('0xb3')](_0x2b27d0,_0x5f4f64),_0x1bc231[_0x221f('0xb3')](_0x2b27d0,Object[_0x221f('0x80')](_0x1672a8[_0x221f('0x69')]()));}const _0x1834b8=Array[_0x221f('0x5f')](this['editor'][_0x221f('0xf3')][_0x221f('0x4')])[_0x221f('0x77')](_0x29dc70=>[_0x29dc70[_0x221f('0x64')],_0x29dc70[_0x221f('0x65')]()]),_0x3bdbd6=this[_0x221f('0x4f')][_0x221f('0x3a')];this[_0x221f('0xdf')](_0x3bdbd6,_0x26eb1e,_0x1834b8,_0x1bc231),this[_0x221f('0x2b')]=this['_revisionId'];const _0x235761=new Map(),_0x4fccdf=new Map();for(const _0x2ca135 of _0x5a5998){const _0x33761b=G(_0x2ca135);_0x235761[_0x221f('0xb3')](_0x2ca135,_0x33761b),_0x4fccdf[_0x221f('0xb3')](_0x2ca135,{});}this[_0x221f('0xdf')](Number[_0x221f('0x3e')],_0x235761,[],_0x4fccdf);}[_0x221f('0x99')](_0xfc64ae,_0x50bf28){if(this[_0x221f('0xf2')]===_0xfc64ae&&this['_lastTo']<=_0x50bf28)this[_0x221f('0x7c')][_0x221f('0x3b')]>0x1&&this[_0x221f('0x60')](this['_lastTo']),this['_applyOperations'](this[_0x221f('0x31')],_0x50bf28,!0x0);else{if(!this['_savedMetaData'][_0x221f('0xad')](_0xfc64ae)){const _0x2c2609=this[_0x221f('0x8b')](_0xfc64ae);this[_0x221f('0x1a')](_0x2c2609,_0xfc64ae,!0x1);}this[_0x221f('0x1a')](_0xfc64ae,_0x50bf28,!0x0);}return this[_0x221f('0xf2')]=_0xfc64ae,this[_0x221f('0x31')]=_0x50bf28,this['_getState']();}[_0x221f('0x8c')](_0x1a2209){this[_0x221f('0xd2')](),this[_0x221f('0xf2')]=_0x1a2209['fromVersion'],this[_0x221f('0x31')]=_0x1a2209[_0x221f('0x92')];for(const _0x46e262 in _0x1a2209['diffData']){const _0x51f4a5=_0x1a2209[_0x221f('0x44')][_0x46e262][_0x221f('0xf')],_0x46f032=_0x1be9b3(_0x1a2209['diffData'][_0x46e262][_0x221f('0xaa')])||{},_0x29b4af=this[_0x221f('0xb4')](_0x1a2209['diffData'][_0x46e262][_0x221f('0x32')]);_0x29b4af[_0x221f('0x83')]=_0x46e262,_0x29b4af[_0x221f('0xc2')]=!_0x51f4a5||!_0x51f4a5[_0x221f('0xda')],_0x29b4af['isAttached']=()=>_0x29b4af[_0x221f('0xc2')],this[_0x221f('0xeb')]['set'](_0x46e262,_0x29b4af),this['_baseRootsAttributes'][_0x221f('0xb3')](_0x46e262,_0x46f032),_0x51f4a5&&this['_touchedRoots'][_0x221f('0xb3')](_0x46e262,_0x51f4a5);const _0x184cee=this[_0x221f('0x9f')](_0x29b4af);this[_0x221f('0x66')]['set'](_0x46e262,_0x184cee);for(const [_0x31c117,_0x1b7eeb]of _0x29b4af[_0x221f('0x4')]){if(!_0x31c117[_0x221f('0xbb')](_0x221f('0xc6')))continue;const _0xd73305=_0x31c117['split'](':')[0x2];for(const _0x35c442 of _0x1b7eeb[_0x221f('0x79')]({'singleCharacters':!0x0})){const _0x437354=this[_0x221f('0x6a')](_0x35c442),_0x34ebe7=_0x221f('0xc9')==_0x35c442['type']?_0x35c442[_0x221f('0x11')][_0x221f('0x75')]['slice'](0x0,-0x1):_0x35c442[_0x221f('0x11')][_0x221f('0x75')],_0x23da99=_0x184cee[_0x221f('0xa6')](_0x34ebe7)[_0x221f('0x6c')](_0x437354);this[_0x221f('0xba')][_0x221f('0xb3')](_0x23da99,{'userId':_0xd73305});}}}this[_0x221f('0x2b')]=this[_0x221f('0x8')];const _0x3379dd=[...Array(this['_revisionId'])[_0x221f('0x6d')]()][_0x221f('0x4b')](0x1)[_0x221f('0x8d')](_0x1e75f4=>!this[_0x221f('0xba')][_0x221f('0xad')](_0x1e75f4));let _0x337cb6=0x0;const _0x3f2a54=new Map();for(const _0x38a311 in _0x1a2209['diffData']){const _0x356fb3=_0x1a2209['diffData'][_0x38a311][_0x221f('0xf')],_0x3bc44e=_0x1be9b3(_0x1a2209[_0x221f('0x44')][_0x38a311]['attributesAfter'])||{},_0x186752=this['_makeModelFromViewString'](_0x1a2209[_0x221f('0x44')][_0x38a311][_0x221f('0x7d')]);_0x186752['rootName']=_0x38a311,_0x186752['_isAttached']=!_0x356fb3||_0x356fb3[_0x221f('0xda')],_0x186752[_0x221f('0xda')]=()=>_0x186752[_0x221f('0xc2')],this[_0x221f('0xf9')][_0x221f('0xb3')](_0x38a311,_0x186752),this[_0x221f('0x61')][_0x221f('0xb3')](_0x38a311,_0x3bc44e);const _0x3fa89d=this['_makeIdsRoot'](_0x186752,Number[_0x221f('0x3e')]);this[_0x221f('0xf1')][_0x221f('0xb3')](_0x38a311,_0x3fa89d),_0x3f2a54['set'](_0x38a311,_0x186752[_0x221f('0xda')]()?_0x3bc44e:{});for(const [_0x401a52,_0x38bd8a]of _0x186752['markers']){if(!_0x401a52[_0x221f('0xbb')](_0x221f('0xc6')))continue;const _0x41650d=_0x401a52[_0x221f('0xfe')](':')[0x2];for(const _0x1d919e of _0x38bd8a[_0x221f('0x79')]({'singleCharacters':!0x0})){const _0x30f618=this['_getVidAttributeName'](_0x1d919e),_0x51e67e=this[_0x221f('0x8')]++,_0x23f2e5=_0x221f('0xc9')==_0x1d919e[_0x221f('0x5d')]?_0x1d919e[_0x221f('0x11')][_0x221f('0x75')][_0x221f('0x4b')](0x0,-0x1):_0x1d919e[_0x221f('0x11')]['path'];_0x3fa89d['getNodeByPath'](_0x23f2e5)[_0x221f('0xe7')](_0x30f618,_0x51e67e),this[_0x221f('0xba')][_0x221f('0xb3')](_0x51e67e,{'userId':_0x41650d});}}for(const _0x2f7a87 of this[_0x221f('0x53')][_0x221f('0xf3')][_0x221f('0xd9')](_0x186752)['getWalker']({'singleCharacters':!0x0})){const _0x95aa27=this[_0x221f('0x6a')](_0x2f7a87),_0x16f05c=_0x221f('0xc9')==_0x2f7a87[_0x221f('0x5d')]?_0x2f7a87['previousPosition']['path'][_0x221f('0x4b')](0x0,-0x1):_0x2f7a87[_0x221f('0x11')][_0x221f('0x75')],_0x438b66=_0x3fa89d[_0x221f('0xa6')](_0x16f05c);_0x438b66[_0x221f('0x6c')](_0x95aa27)>0x0||_0x438b66[_0x221f('0xe7')](_0x95aa27,_0x3379dd[_0x337cb6++]);}for(const [_0x14723d,_0x325f19]of _0x186752['markers'])_0x14723d[_0x221f('0xbb')](_0x221f('0xc6'))||this[_0x221f('0x78')]['set'](_0x14723d,_0x325f19);}const _0x2b859a=G(_0x221f('0x52'));this[_0x221f('0xeb')][_0x221f('0xb3')]('$graveyard',_0x2b859a),this[_0x221f('0x66')][_0x221f('0xb3')](_0x221f('0x52'),this[_0x221f('0x9f')](_0x2b859a,0x1));const _0x212ff6=G('$graveyard');this[_0x221f('0xf9')][_0x221f('0xb3')](_0x221f('0x52'),_0x212ff6),this[_0x221f('0xf1')][_0x221f('0xb3')](_0x221f('0x52'),this[_0x221f('0x9f')](_0x212ff6,0x1));const _0x16880f=Array[_0x221f('0x5f')](this[_0x221f('0xf9')])[_0x221f('0x77')](([_0x32723d,_0x29f5a2])=>[_0x32723d,q(_0x29f5a2)]);this['_saveMetaData'](this[_0x221f('0x31')],_0x16880f,this[_0x221f('0x78')],_0x3f2a54);}[_0x221f('0xb4')](_0x6cb1c3){const _0x285fab=JSON[_0x221f('0x1d')](_0x6cb1c3),_0x1319a7=this[_0x221f('0x53')][_0x221f('0xa')][_0x221f('0xb0')][_0x221f('0xb')],_0x3e087e=new _0x33d446(_0x1319a7,_0x285fab['map'](_0x5ae882=>J(_0x5ae882,this[_0x221f('0x53')])));return this['editor'][_0x221f('0xc3')][_0x221f('0xe4')](_0x3e087e);}[_0x221f('0xdf')](_0x34b9cc,_0x43b5ec,_0x42ebf5,_0x1b98d7){const _0x2cc0c1=new Map(_0x43b5ec),_0x33be48=new Map(_0x1be9b3(_0x1b98d7)),_0x2a325e=new Map();for(const [_0x2f46b9,_0xbff126]of _0x42ebf5)_0x2a325e['set'](_0x2f46b9,{'start':_0xbff126[_0x221f('0xf4')][_0x221f('0x90')](),'end':_0xbff126[_0x221f('0x39')][_0x221f('0x90')](),'rootName':_0xbff126['root'][_0x221f('0x83')]});this['_savedMetaData'][_0x221f('0xb3')](_0x34b9cc,{'roots':_0x2cc0c1,'markers':_0x2a325e,'rootsAttributes':_0x33be48});}[_0x221f('0x60')](_0x3f7f7b){this[_0x221f('0x7c')][_0x221f('0x40')](_0x3f7f7b);}[_0x221f('0x104')](){this[_0x221f('0xd2')](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this[_0x221f('0x7c')][_0x221f('0xcb')](),this[_0x221f('0x4a')](this['source']);}[_0x221f('0xd2')](){this[_0x221f('0xba')][_0x221f('0xcb')](),this[_0x221f('0xb7')]['clear'](),this['_touchedRoots'][_0x221f('0xcb')](),this[_0x221f('0xf9')]['clear'](),this[_0x221f('0x61')][_0x221f('0xcb')](),this[_0x221f('0xeb')]['clear'](),this[_0x221f('0xa8')]['clear'](),this[_0x221f('0xf1')][_0x221f('0xcb')](),this[_0x221f('0x66')][_0x221f('0xcb')](),this['_markers'][_0x221f('0xcb')](),this[_0x221f('0x8')]=0x1,this[_0x221f('0x2b')]=this[_0x221f('0x8')];}['_makeIdsRoot'](_0x5a39da,_0x1db6e5=null){let _0x42479d=null;_0x5a39da['is'](_0x221f('0x24'))||(_0x42479d=new _0x26142d(_0x5a39da[_0x221f('0x64')],{'vid_start':null===_0x1db6e5?this[_0x221f('0x8')]++:_0x1db6e5++}));const _0x5a688e=[];for(const _0x5bf838 of _0x5a39da[_0x221f('0x45')]())if(_0x5bf838['is'](_0x221f('0xf8'))){_0x5a688e['push'](this['_makeIdsRoot'](_0x5bf838,_0x1db6e5));const _0x26c162=_0x5a688e[_0x5a688e[_0x221f('0x4c')]-0x1];null!==_0x1db6e5&&(_0x1db6e5=_0x26c162['is'](_0x221f('0xf8'),_0x221f('0xc0'))?_0x26c162[_0x221f('0x6c')](_0x221f('0x81'))+0x1:_0x26c162[_0x221f('0x6c')](_0x221f('0xfa'))+0x1);}else for(let _0x3bd14a=0x0;_0x3bd14a<_0x5bf838[_0x221f('0xea')];_0x3bd14a++)_0x5a688e[_0x221f('0x33')](new _0x26142d(_0x221f('0xc0'),{'vid':null===_0x1db6e5?this[_0x221f('0x8')]++:_0x1db6e5++}));if(_0x5a39da['is'](_0x221f('0x24'))){const _0x197949=G(_0x5a39da['rootName']);return _0x197949[_0x221f('0x18')](0x0,_0x5a688e),_0x197949;}return _0x42479d[_0x221f('0xe7')](_0x221f('0xfa'),null===_0x1db6e5?this[_0x221f('0x8')]++:_0x1db6e5++),_0x42479d[_0x221f('0x18')](0x0,_0x5a688e),_0x42479d;}[_0x221f('0x1a')](_0x17859e,_0x231a09,_0x123562){this[_0x221f('0xd2')]();const {roots:_0x3e6408,markers:_0x5895e9,rootsAttributes:_0xa58525}=this[_0x221f('0x7c')][_0x221f('0x6e')](_0x17859e);this[_0x221f('0xeb')]=new Map(_0x3e6408),this[_0x221f('0xa8')]=new Map(_0x1be9b3(_0xa58525));for(const [_0x46386d,_0x91bc4e]of this[_0x221f('0xeb')])if(_0x221f('0x52')!==_0x46386d&&(this[_0x221f('0xf9')]['set'](_0x46386d,q(_0x91bc4e)),this[_0x221f('0x61')]=new Map(_0x1be9b3(_0xa58525)),_0x123562)){const _0x4275b6=this[_0x221f('0x8')];this['_idsRoots']['set'](_0x46386d,this[_0x221f('0x9f')](_0x91bc4e)),this[_0x221f('0x66')][_0x221f('0xb3')](_0x46386d,this[_0x221f('0x9f')](_0x91bc4e,_0x4275b6));}this[_0x221f('0x2b')]=this[_0x221f('0x8')],this[_0x221f('0xf9')][_0x221f('0xb3')](_0x221f('0x52'),q(this[_0x221f('0xeb')][_0x221f('0x6e')](_0x221f('0x52')))),_0x123562&&this['_idsRoots']['set'](_0x221f('0x52'),this['_makeIdsRoot'](this[_0x221f('0xeb')]['get'](_0x221f('0x52'))));for(const [_0x419505,_0x5257ed]of _0x5895e9){const _0x454a1d=this['_baseRoots'][_0x221f('0x6e')](_0x5257ed[_0x221f('0x83')]),_0x3dc4f7=this['_diffRoots'][_0x221f('0x6e')](_0x5257ed[_0x221f('0x83')]),_0x4f2b40=new _0x3ef9e0(this['_fixPosition'](_0x5257ed['start'],_0x454a1d),this[_0x221f('0x1b')](_0x5257ed['end'],_0x454a1d)),_0x37f87d=this['_fixRange'](_0x4f2b40,_0x3dc4f7);_0x454a1d[_0x221f('0x4')][_0x221f('0xb3')](_0x419505,_0x4f2b40),this[_0x221f('0x78')][_0x221f('0xb3')](_0x419505,_0x37f87d);}this[_0x221f('0xef')](_0x17859e,_0x231a09,_0x123562);}[_0x221f('0xef')](_0x38fee6,_0x8f297b,_0x16e84e){for(const _0x49072c of this[_0x221f('0x4f')][_0x221f('0xf7')](_0x38fee6,_0x8f297b))this[_0x221f('0x68')](_0x49072c,_0x16e84e);for(const _0x3ea3f1 of this[_0x221f('0xf9')]['values']())_0x3ea3f1['markers'][_0x221f('0xcb')]();for(const [_0x4ecb41,_0x5f15b6]of this[_0x221f('0x78')]){this[_0x221f('0xf9')][_0x221f('0x6e')](_0x5f15b6[_0x221f('0x55')][_0x221f('0x83')])[_0x221f('0x4')][_0x221f('0xb3')](_0x4ecb41,_0x5f15b6[_0x221f('0x90')]());}const _0x1b13f2=new Map(),_0x2f8960=new Map();for(const [_0x7cd269,_0x4c2c9b]of this[_0x221f('0xf9')])_0x1b13f2[_0x221f('0xb3')](_0x7cd269,q(_0x4c2c9b)),_0x2f8960[_0x221f('0xb3')](_0x7cd269,this[_0x221f('0x61')]['get'](_0x7cd269));this['_saveMetaData'](_0x8f297b,_0x1b13f2,this['_markers'],_0x2f8960);}[_0x221f('0x8b')](_0x870497){const _0x4a1b19=Array[_0x221f('0x5f')](this['_savedMetaData'][_0x221f('0x6d')]());_0x4a1b19['sort']((_0x1b3c53,_0x546847)=>_0x1b3c53-_0x546847),_0x4a1b19['reverse']();for(const _0x9db78e of _0x4a1b19)if(_0x9db78e<_0x870497)return _0x9db78e;return Number['NEGATIVE_INFINITY'];}[_0x221f('0xc7')](_0x4a95f1,_0x379828){const _0x4024e1=Array['from'](_0x379828[_0x221f('0x4')])[_0x221f('0x77')](([_0x5c9a6b,_0x24244b])=>[_0x5c9a6b,this[_0x221f('0xd6')](_0x24244b,_0x4a95f1)]);_0x4a95f1['markers']=new Map(_0x4024e1);}['_transformMarkers'](_0x1c66e8){for(const _0x292472 of this[_0x221f('0x78')][_0x221f('0xc')]()){const _0xb15157=_0x292472[_0x221f('0xa3')](_0x1c66e8),_0x5876a9=_0x3ef9e0['_createFromRanges'](_0xb15157);_0x292472[_0x221f('0xf4')]=_0x5876a9['start'],_0x292472['end']=_0x5876a9['end'];}}[_0x221f('0x68')](_0x1bd6f5,_0xf9c97){if(_0x221f('0x2f')==_0x1bd6f5[_0x221f('0x5d')]||_0x221f('0x6f')==_0x1bd6f5[_0x221f('0x5d')])return void this[_0x221f('0xdc')](_0x1bd6f5,_0xf9c97);if(_0x221f('0xe5')==_0x1bd6f5[_0x221f('0x5d')]){const _0x48749f=_0x1bd6f5['position']['root'][_0x221f('0x83')];this[_0x221f('0xf9')]['has'](_0x48749f)||(this['_diffRoots'][_0x221f('0xb3')](_0x48749f,G(_0x48749f,!0x0)),this[_0x221f('0x61')][_0x221f('0xb3')](_0x48749f,{}),_0xf9c97&&this[_0x221f('0xf1')][_0x221f('0xb3')](_0x48749f,G(_0x48749f,!0x0)));}else{if(_0x221f('0x4d')==_0x1bd6f5[_0x221f('0x5d')]||_0x221f('0xb9')==_0x1bd6f5[_0x221f('0x5d')]||'changeRootAttribute'==_0x1bd6f5[_0x221f('0x5d')])return void this[_0x221f('0x19')](_0x1bd6f5);}const _0x3517b5=this[_0x221f('0xd3')](_0x1bd6f5,this[_0x221f('0xf9')]);if(_0x221f('0xc4')!==_0x1bd6f5[_0x221f('0x5d')]&&(_0x3517b5['_execute'](),this[_0x221f('0xd5')](_0x3517b5)),_0xf9c97)switch(_0x3517b5[_0x221f('0x5d')]){case _0x221f('0xe5'):this['_handleInsertOperation'](_0x1bd6f5);break;case _0x221f('0xcc'):case _0x221f('0x100'):case _0x221f('0xdd'):this[_0x221f('0x9')](_0x1bd6f5);break;case _0x221f('0x74'):this['_handleMergeOperation'](_0x1bd6f5);break;case'split':this[_0x221f('0x38')](_0x1bd6f5);break;case _0x221f('0xc4'):this['_handleMarkerOperation'](_0x1bd6f5);}}[_0x221f('0xd3')](_0x1eb48b,_0x109c36){const _0x24d26b=_0x1eb48b[_0x221f('0x90')]();return _0x24d26b[_0x221f('0x96')]=_0x1eb48b[_0x221f('0x96')],this[_0x221f('0x1f')](_0x24d26b,_0x109c36),_0x24d26b;}['_getBaseVids'](_0x53bccf){return _0x53bccf[_0x221f('0x77')](_0x4e6b76=>{const _0x46c36f=this['_getVidAttributeName'](_0x4e6b76);return Number(_0x4e6b76[_0x221f('0x9a')][_0x221f('0x6c')](_0x46c36f));});}[_0x221f('0x7e')](_0xa86e55,_0x142ea1){if(_0xa86e55['is'](_0x221f('0xf8'),'$text'))_0x142ea1[_0x221f('0x33')]({'item':_0xa86e55,'type':_0x221f('0xe1')});else{_0xa86e55['is'](_0x221f('0xf8'))&&_0x142ea1[_0x221f('0x33')]({'item':_0xa86e55,'type':'elementStart'});for(const _0x2221a1 of _0xa86e55[_0x221f('0x45')]())this[_0x221f('0x7e')](_0x2221a1,_0x142ea1);_0xa86e55['is'](_0x221f('0xf8'))&&_0x142ea1['push']({'item':_0xa86e55,'type':_0x221f('0xc9')});}return _0x142ea1;}[_0x221f('0x29')](){const _0x24e594=new Map(this[_0x221f('0xba')]),_0x143de2=new Map(_0x24e594),_0x4936f5=new Map(),_0x5960a3={'insertions':{},'deletions':{}},_0x38fca8={'insertions':{},'deletions':{}},_0x206ff6=new Map(),_0x58d7a3=new Set([...this['_baseRoots'][_0x221f('0x6d')](),...this[_0x221f('0xf9')][_0x221f('0x6d')]()]);_0x58d7a3[_0x221f('0x40')]('$graveyard');for(const _0x36699b of _0x58d7a3){const _0x1f84bf=this[_0x221f('0xf9')][_0x221f('0x6e')](_0x36699b)||G(_0x36699b,!0x1),_0x3913c9=this[_0x221f('0xeb')][_0x221f('0x6e')](_0x36699b)||G(_0x36699b,!0x1);_0x1f84bf[_0x221f('0xda')]()||_0x3913c9[_0x221f('0xda')]()?(_0x5960a3[_0x221f('0x7d')][_0x36699b]=q(_0x1f84bf),_0x5960a3[_0x221f('0x32')][_0x36699b]=q(_0x3913c9),this[_0x221f('0xc7')](_0x5960a3[_0x221f('0x32')][_0x36699b],_0x3913c9),this[_0x221f('0xc7')](_0x5960a3[_0x221f('0x7d')][_0x36699b],_0x1f84bf),_0x38fca8['insertions'][_0x36699b]=this[_0x221f('0x7e')](this[_0x221f('0xf1')]['get'](_0x36699b),[]),_0x38fca8[_0x221f('0x32')][_0x36699b]=this[_0x221f('0x7e')](this['_baseIdsRoots'][_0x221f('0x6e')](_0x36699b)||G(_0x36699b,!0x1),[])):_0x58d7a3[_0x221f('0x40')](_0x36699b);}for(const _0x2f0351 of _0x58d7a3){const _0x4e2bd9=_0x38fca8[_0x221f('0x7d')][_0x2f0351];for(const _0x54d594 of _0x4e2bd9){const _0x3a69b1=this[_0x221f('0x6a')](_0x54d594),_0x285ae2=_0x54d594[_0x221f('0x9a')][_0x221f('0x6c')](_0x3a69b1);_0x143de2[_0x221f('0x40')](_0x285ae2),_0x285ae2>=this[_0x221f('0x2b')]&&_0x4936f5[_0x221f('0xb3')](_0x285ae2,_0x24e594[_0x221f('0x6e')](_0x285ae2));}}for(const _0x59e016 of _0x58d7a3){const _0x23a986=_0x38fca8[_0x221f('0x7d')][_0x59e016],_0x59a83b=this['_getBaseVids'](_0x38fca8[_0x221f('0x32')][_0x59e016]);let _0x4a2894=0x0;for(const _0x265c4e of _0x23a986){const _0x18e639=this[_0x221f('0x6a')](_0x265c4e),_0x501fe4=_0x265c4e[_0x221f('0x9a')][_0x221f('0x6c')](_0x18e639);if(!_0x4936f5[_0x221f('0xad')](_0x501fe4)&&!_0x206ff6[_0x221f('0xad')](_0x501fe4)){if(_0x143de2[_0x221f('0xad')](_0x501fe4))_0x4a2894++;else{if(_0x501fe4!=_0x59a83b[_0x4a2894]){const _0x51c522=_0x24e594[_0x221f('0x6e')](_0x501fe4)||_0x24e594['get'](_0x59a83b[_0x4a2894]);for(;_0x501fe4!=_0x59a83b[_0x4a2894];)_0x143de2[_0x221f('0xad')](_0x59a83b[_0x4a2894])||(_0x206ff6[_0x221f('0xb3')](_0x59a83b[_0x4a2894],_0x51c522),_0x24e594[_0x221f('0xb3')](_0x59a83b[_0x4a2894],_0x51c522)),_0x4a2894++;}_0x4a2894++;}}}}for(const _0x5a975c of _0x58d7a3){const _0x17f505=_0x38fca8[_0x221f('0x7d')][_0x5a975c];for(const _0x17f247 of _0x17f505){const _0x1d5810=this[_0x221f('0x6a')](_0x17f247),_0x4fa24a=_0x17f247[_0x221f('0x9a')][_0x221f('0x6c')](_0x1d5810);if(_0x206ff6[_0x221f('0xad')](_0x4fa24a)){const _0x5e86c1=_0x206ff6['get'](_0x4fa24a);_0x143de2[_0x221f('0xad')](_0x4fa24a)||_0x143de2[_0x221f('0xb3')](_0x4fa24a,{..._0x5e86c1}),_0x4936f5[_0x221f('0xb3')](_0x4fa24a,{..._0x5e86c1});}}}for(const _0x20e213 of _0x143de2[_0x221f('0x6d')]())_0x20e213>=this[_0x221f('0x2b')]&&_0x143de2[_0x221f('0x40')](_0x20e213);const _0xb8d8d=new Map();for(const _0x548e8e of _0x58d7a3){let _0x5a2497=_0x38fca8[_0x221f('0x7d')][_0x548e8e];for(const _0x2d8e6e of _0x5a2497)if(_0x2d8e6e[_0x221f('0x9a')]['is'](_0x221f('0xf8'),_0x221f('0xcd'))){const _0x464e43=this[_0x221f('0x6a')](_0x2d8e6e),_0x2c00c8=_0x2d8e6e[_0x221f('0x9a')][_0x221f('0x6c')](_0x464e43);if(_0x4936f5[_0x221f('0xad')](_0x2c00c8)){const _0xbc7b8b=_0x2d8e6e['item']['parent']['parent'][_0x221f('0x6c')](_0x221f('0x34')),_0x304e5f=_0xb8d8d['get'](_0xbc7b8b)||new Set();_0x304e5f[_0x221f('0xd')](_0x4936f5[_0x221f('0x6e')](_0x2c00c8)[_0x221f('0x91')]),_0xb8d8d['set'](_0xbc7b8b,_0x304e5f);}}_0x5a2497=_0x38fca8[_0x221f('0x32')][_0x548e8e];for(const _0x8b089e of _0x5a2497)if(_0x8b089e[_0x221f('0x9a')]['is'](_0x221f('0xf8'),_0x221f('0xcd'))){const _0x5282b4=this[_0x221f('0x6a')](_0x8b089e),_0x5d9b13=_0x8b089e[_0x221f('0x9a')][_0x221f('0x6c')](_0x5282b4);if(_0x143de2[_0x221f('0xad')](_0x5d9b13)){const _0x3c1850=_0x8b089e[_0x221f('0x9a')][_0x221f('0xb8')][_0x221f('0xb8')]['getAttribute'](_0x221f('0x34')),_0x2d3bd8=_0xb8d8d[_0x221f('0x6e')](_0x3c1850)||new Set();_0x2d3bd8[_0x221f('0xd')](_0x143de2['get'](_0x5d9b13)[_0x221f('0x91')]),_0xb8d8d[_0x221f('0xb3')](_0x3c1850,_0x2d3bd8);}}for(const _0x61549 of _0xb8d8d['keys']())(_0x4936f5[_0x221f('0xad')](_0x61549)||_0x143de2[_0x221f('0xad')](_0x61549))&&_0xb8d8d['delete'](_0x61549);}for(const _0x3f4912 of _0x58d7a3){const _0x139900=_0x38fca8['insertions'][_0x3f4912];let _0x380781=null,_0x52b6be=null;for(const _0x46e36d of _0x139900){const _0x66219c=this[_0x221f('0x6a')](_0x46e36d),_0x3107ae=_0x46e36d['item'][_0x221f('0x6c')](_0x66219c),_0x43267d=_0xb8d8d['get'](_0x3107ae);_0x43267d&&_0x221f('0xb2')==_0x46e36d[_0x221f('0x5d')]&&(_0x380781=Array['from'](_0x43267d)[0x0],_0x52b6be=_0x46e36d[_0x221f('0x9a')][_0x221f('0x6c')](_0x221f('0xfa'))),_0x380781&&(_0x143de2[_0x221f('0xb3')](_0x3107ae,{'userId':_0x380781}),_0x4936f5[_0x221f('0xb3')](_0x3107ae,{'userId':_0x380781})),_0x3107ae==_0x52b6be&&(_0x380781=null,_0x52b6be=null);}}const _0x1ab04a={},_0x1a3ef5=new Set();for(const _0x2c80d8 of _0x58d7a3){const _0x2731f6=_0x5960a3['deletions'][_0x2c80d8],_0x133f15=_0x5960a3[_0x221f('0x7d')][_0x2c80d8];for(const {userId:_0x465938}of this['_touchedMarkers'][_0x221f('0xc')]())null!==_0x465938&&_0x1a3ef5[_0x221f('0xd')](_0x465938);for(const {userId:_0x5130e0}of this[_0x221f('0x84')]['values']())null!==_0x5130e0&&_0x1a3ef5['add'](_0x5130e0);this[_0x221f('0x5b')](_0x133f15,_0x38fca8[_0x221f('0x7d')][_0x2c80d8],_0x4936f5,_0x221f('0x57'),_0x1a3ef5),this[_0x221f('0x5b')](_0x2731f6,_0x38fca8[_0x221f('0x32')][_0x2c80d8],_0x143de2,'deletion',_0x1a3ef5),_0x1ab04a[_0x2c80d8]={'insertions':this[_0x221f('0x3d')](_0x133f15),'deletions':this[_0x221f('0x3d')](_0x2731f6),'attachChange':this[_0x221f('0x84')][_0x221f('0x6e')](_0x2c80d8)||null,'attributesBefore':_0x1be9b3(this['_baseRootsAttributes']['get'](_0x2c80d8))||{},'attributesAfter':_0x1be9b3(this[_0x221f('0x61')][_0x221f('0x6e')](_0x2c80d8))};}return{'diffData':_0x1ab04a,'authorsIds':Array[_0x221f('0x5f')](_0x1a3ef5)};}[_0x221f('0xa1')](_0x10614c){for(const [,_0x196299]of _0x10614c[_0x221f('0x4')]){const _0x32aa37=_0x196299[_0x221f('0xf4')][_0x221f('0x21')]()[_0x221f('0x8d')](_0x596882=>_0x221f('0xcd')==_0x596882['name']);for(const _0x3b48c9 of _0x32aa37)0x1==_0x3b48c9[_0x221f('0x25')]&&_0x3b48c9[_0x221f('0xb1')](0x0)['is'](_0x221f('0xf8'),_0x221f('0x27'))&&_0x3b48c9['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}[_0x221f('0x3d')](_0x625b60){this[_0x221f('0xa1')](_0x625b60);const _0x30e7d7=this[_0x221f('0x53')][_0x221f('0xc3')][_0x221f('0xc5')](_0x625b60,{}),_0x5bd934=Array['from'](_0x30e7d7[_0x221f('0x45')]())['map'](_0x489750=>this['_getViewJson'](_0x489750));return JSON[_0x221f('0x46')](_0x5bd934);}[_0x221f('0x17')](_0x5272be){if(_0x5272be['is'](_0x221f('0xc0')))return _0x5272be[_0x221f('0xc3')];{const _0x4689ef=_0x5272be;return{'type':Object['keys'](B)[_0x221f('0xe9')](_0x2b147a=>_0x5272be instanceof B[_0x2b147a]),'name':_0x4689ef[_0x221f('0x64')],'attributes':Array[_0x221f('0x5f')](_0x4689ef[_0x221f('0x69')]()),'children':Array[_0x221f('0x5f')](_0x4689ef[_0x221f('0x45')]())['map'](_0x391c3a=>this[_0x221f('0x17')](_0x391c3a))};}}[_0x221f('0x5b')](_0x18c608,_0x534aef,_0x39df6b,_0x38e01c,_0x4d8580){let _0x4774ad=null,_0x1be353=null,_0x3f2fbd=0x0;const _0x4bf5dd=this[_0x221f('0x53')][_0x221f('0xf3')];for(let _0x2a0e5=0x0;_0x2a0e5<_0x534aef[_0x221f('0x4c')];_0x2a0e5++){const _0x5215ce=this[_0x221f('0x6a')](_0x534aef[_0x2a0e5]),_0x261f8a=_0x534aef[_0x2a0e5][_0x221f('0x9a')][_0x221f('0x6c')](_0x5215ce),_0x39a165=_0x39df6b[_0x221f('0x6e')](_0x261f8a),_0x482783=_0x2a0e5==_0x534aef[_0x221f('0x4c')]-0x1;(!_0x4774ad&&_0x39a165&&(_0x4774ad=_0x39a165,_0x1be353=_0x534aef[_0x2a0e5]),_0x4774ad&&(!_0x39a165||_0x39a165['userId']!=_0x4774ad[_0x221f('0x91')]))&&(_0x5c650f(_0x39a165,L(_0x1be353,_0x18c608,_0x4bf5dd),L(_0x534aef[_0x2a0e5],_0x18c608,_0x4bf5dd)),_0x4774ad=_0x39a165||null,_0x1be353=_0x39a165?_0x534aef[_0x2a0e5]:null),_0x4774ad&&_0x482783&&_0x5c650f(_0x39a165,L(_0x1be353,_0x18c608,_0x4bf5dd),W(_0x534aef[_0x2a0e5],_0x18c608,_0x4bf5dd));}function _0x5c650f(_0xe6d7d4,_0x507300,_0x5454ea){const _0x41eed6=_0x4774ad[_0x221f('0x91')],_0x5362a3='revision:'+_0x38e01c+':'+_0x41eed6+':'+_0x3f2fbd++,_0x1fe06a=_0x4bf5dd['createRange'](_0x507300,_0x5454ea);_0x18c608[_0x221f('0x4')][_0x221f('0xb3')](_0x5362a3,_0x1fe06a),null!==_0x41eed6&&_0x4d8580[_0x221f('0xd')](_0x41eed6);}}[_0x221f('0x6a')](_0x4187a0){switch(_0x4187a0[_0x221f('0x5d')]){case'elementStart':return _0x221f('0x34');case'elementEnd':return _0x221f('0xfa');default:return _0x221f('0x81');}}['_fixOperation'](_0x40d8bf,_0x47ff01){_0x40d8bf[_0x221f('0x103')]=null;for(const _0x507d8f in _0x40d8bf){const _0x5a508a=_0x40d8bf[_0x507d8f];if(_0x5a508a instanceof _0x57d853){const _0x519bc7=_0x47ff01[_0x221f('0x6e')](_0x5a508a['root'][_0x221f('0x83')]);_0x40d8bf[_0x507d8f]=this[_0x221f('0x1b')](_0x5a508a,_0x519bc7);}if(_0x5a508a instanceof _0x3ef9e0){const _0x16806b=_0x47ff01[_0x221f('0x6e')](_0x5a508a['root'][_0x221f('0x83')]);_0x40d8bf[_0x507d8f]=this['_fixRange'](_0x5a508a,_0x16806b);}'root'===_0x507d8f&&(_0x40d8bf['root']=_0x47ff01[_0x221f('0x6e')](_0x40d8bf[_0x221f('0x55')][_0x221f('0x83')]));}}[_0x221f('0xd6')](_0x1295b7,_0x1d27a4){return this[_0x221f('0x53')][_0x221f('0xf3')][_0x221f('0xdb')](this['_fixPosition'](_0x1295b7[_0x221f('0xf4')],_0x1d27a4),this[_0x221f('0x1b')](_0x1295b7[_0x221f('0x39')],_0x1d27a4));}[_0x221f('0x1b')](_0xfc70d9,_0x4678a2){return this[_0x221f('0x53')][_0x221f('0xf3')][_0x221f('0xf0')](_0x4678a2,_0xfc70d9['path'],_0xfc70d9[_0x221f('0x35')]);}['_handleInsertOperation'](_0x175c71){const _0x497405=this[_0x221f('0xf1')][_0x221f('0x6e')](_0x175c71[_0x221f('0x89')][_0x221f('0x55')]['rootName']),_0x3e73f5=this[_0x221f('0x1b')](_0x175c71['position'],_0x497405),_0xddcf4b=null===_0x175c71[_0x221f('0x96')]?null:_0x175c71[_0x221f('0x96')]||this[_0x221f('0x53')][_0x221f('0x3f')][_0x221f('0x6e')](_0x221f('0xb6'))['me']['id'],_0x2e050b=_0x3e73f5[_0x221f('0xb8')],_0x31022d=this[_0x221f('0x8')],_0x54e196=[];for(const _0x4d482f of _0x175c71[_0x221f('0x106')])if(_0x4d482f['is'](_0x221f('0xf8')))_0x54e196['push'](this[_0x221f('0x9f')](_0x4d482f));else for(let _0x3d4431=0x0;_0x3d4431<_0x4d482f['offsetSize'];_0x3d4431++)_0x54e196[_0x221f('0x33')](new _0x26142d(_0x221f('0xc0'),{'vid':this[_0x221f('0x8')]++}));const _0x349a92=this['_revisionId'];for(let _0x55544e=_0x31022d;_0x55544e<_0x349a92;_0x55544e++)this[_0x221f('0xba')][_0x221f('0xb3')](_0x55544e,{'userId':_0xddcf4b});_0x2e050b[_0x221f('0x18')](_0x3e73f5[_0x221f('0xf5')],_0x54e196);}[_0x221f('0x9')](_0x4c5dff){(_0x4c5dff=this[_0x221f('0xd3')](_0x4c5dff,this[_0x221f('0xf1')]))[_0x221f('0x82')]();const _0x2944f8=null===_0x4c5dff['_authorId']?null:_0x4c5dff[_0x221f('0x96')]||this[_0x221f('0x53')][_0x221f('0x3f')][_0x221f('0x6e')](_0x221f('0xb6'))['me']['id'],_0x45019a=_0x4c5dff[_0x221f('0x7b')](),_0x3dd9d9=_0x45019a[_0x221f('0xb8')],_0x57c958=_0x45019a[_0x221f('0xf5')];!function _0x3ae27d(_0x4d1ee7,_0x2369b1,_0x2fc51f,_0x389f0a){for(let _0x3f2776=_0x2fc51f;_0x3f2776<_0x389f0a;_0x3f2776++){const _0x5303c6=_0x2369b1['getChild'](_0x3f2776);_0x5303c6['is']('element',_0x221f('0xc0'))?_0x4d1ee7[_0x221f('0xb3')](_0x5303c6[_0x221f('0x6c')](_0x221f('0x81')),{'userId':_0x2944f8}):(_0x4d1ee7[_0x221f('0xb3')](_0x5303c6['getAttribute']('vid_start'),{'userId':_0x2944f8}),_0x3ae27d(_0x4d1ee7,_0x5303c6,0x0,_0x5303c6[_0x221f('0x25')]),_0x4d1ee7[_0x221f('0xb3')](_0x5303c6[_0x221f('0x6c')](_0x221f('0xfa')),{'userId':_0x2944f8}));}}(this[_0x221f('0xba')],_0x3dd9d9,_0x57c958,_0x57c958+_0x4c5dff[_0x221f('0x42')]);}['_handleMergeOperation'](_0x270f6b){const _0x1fd53c=null===(_0x270f6b=this[_0x221f('0xd3')](_0x270f6b,this[_0x221f('0xf1')]))[_0x221f('0x96')]?null:_0x270f6b[_0x221f('0x96')]||this['editor']['plugins'][_0x221f('0x6e')](_0x221f('0xb6'))['me']['id'],_0x3667cd=_0x270f6b[_0x221f('0x9b')][_0x221f('0xb8')],_0x2c6dfe=_0x270f6b[_0x221f('0xcf')]['parent'],_0x4761f8=_0x3667cd[_0x221f('0x6c')]('vid_end'),_0x38cdd5=_0x2c6dfe['getAttribute']('vid_start');_0x3667cd['_setAttribute'](_0x221f('0xfa'),_0x2c6dfe[_0x221f('0x6c')](_0x221f('0xfa'))),_0x2c6dfe[_0x221f('0xe7')](_0x221f('0xfa'),_0x4761f8),this[_0x221f('0xba')][_0x221f('0xb3')](_0x38cdd5,{'userId':_0x1fd53c}),this[_0x221f('0xba')][_0x221f('0xb3')](_0x4761f8,{'userId':_0x1fd53c}),_0x270f6b['_execute']();}[_0x221f('0x38')](_0x5af174){const _0x93850=null===(_0x5af174=this[_0x221f('0xd3')](_0x5af174,this['_idsRoots']))[_0x221f('0x96')]?null:_0x5af174['_authorId']||this[_0x221f('0x53')][_0x221f('0x3f')][_0x221f('0x6e')](_0x221f('0xb6'))['me']['id'],_0x54af79=_0x5af174['graveyardPosition'],_0x18508c=_0x5af174[_0x221f('0xd8')][_0x221f('0xb8')];_0x5af174[_0x221f('0x82')]();const _0x10c206=_0x18508c[_0x221f('0x6c')](_0x221f('0xfa')),_0x22b017=_0x5af174[_0x221f('0xd0')][_0x221f('0xca')];if(_0x54af79){const _0x1ad44f=_0x22b017[_0x221f('0x6c')](_0x221f('0xfa')),_0x23e93d=_0x18508c[_0x221f('0x6c')](_0x221f('0xfa'));_0x18508c[_0x221f('0xe7')](_0x221f('0xfa'),_0x1ad44f),_0x22b017[_0x221f('0xe7')]('vid_end',_0x23e93d),this[_0x221f('0xba')][_0x221f('0xb3')](_0x18508c[_0x221f('0x6c')](_0x221f('0xfa')),{'userId':_0x93850}),this['_touched'][_0x221f('0xb3')](_0x22b017[_0x221f('0x6c')]('vid_start'),{'userId':_0x93850});}else{const _0x551c7b=this['_revisionId']++,_0x56e7ae=this[_0x221f('0x8')]++;_0x18508c['_setAttribute']('vid_end',_0x551c7b),_0x22b017[_0x221f('0xe7')](_0x221f('0x34'),_0x56e7ae),_0x22b017[_0x221f('0xe7')]('vid_end',_0x10c206),this[_0x221f('0xba')][_0x221f('0xb3')](_0x551c7b,{'userId':_0x93850}),this[_0x221f('0xba')][_0x221f('0xb3')](_0x56e7ae,{'userId':_0x93850});}}[_0x221f('0xd1')](_0x429b10){if(!_0x429b10[_0x221f('0x12')])return;const _0x175d2e=(_0x429b10=this[_0x221f('0xd3')](_0x429b10,this[_0x221f('0xf9')]))[_0x221f('0x51')]?_0x429b10['oldRange'][_0x221f('0x55')]:null,_0x18fd3c=_0x429b10[_0x221f('0x59')]?_0x429b10[_0x221f('0x59')]['root']:null;_0x175d2e&&this['_markers'][_0x221f('0x40')](_0x429b10[_0x221f('0x64')]),_0x18fd3c&&this[_0x221f('0x78')][_0x221f('0xb3')](_0x429b10[_0x221f('0x64')],_0x429b10[_0x221f('0x59')][_0x221f('0x90')]());const _0x303ba4=null===_0x429b10[_0x221f('0x96')]?null:_0x429b10[_0x221f('0x96')]||this[_0x221f('0x53')]['plugins']['get']('Users')['me']['id'],_0x3b5548=_0x429b10[_0x221f('0x64')];if(!this[_0x221f('0xb7')][_0x221f('0xad')](_0x3b5548))return void this[_0x221f('0xb7')]['set'](_0x3b5548,{'range':_0x429b10[_0x221f('0x51')],'userId':_0x303ba4});const _0x35454a=this[_0x221f('0xb7')][_0x221f('0x6e')](_0x3b5548),_0x42e600=_0x35454a[_0x221f('0x13')],_0x2a1470=_0x429b10[_0x221f('0x59')];null==_0x42e600&&null==_0x2a1470||_0x42e600&&_0x2a1470&&_0x42e600[_0x221f('0x37')](_0x2a1470)?this[_0x221f('0xb7')][_0x221f('0x40')](_0x429b10['name']):_0x35454a[_0x221f('0x91')]=_0x303ba4;}['_handleRootOperation'](_0x2c8b38,_0x1370dc){this['_diffRoots'][_0x221f('0xad')](_0x2c8b38[_0x221f('0x83')])?this[_0x221f('0xf9')][_0x221f('0x6e')](_0x2c8b38[_0x221f('0x83')])['_isAttached']=_0x2c8b38['isAdd']:(this[_0x221f('0xf9')][_0x221f('0xb3')](_0x2c8b38[_0x221f('0x83')],G(_0x2c8b38['rootName'],!0x0)),this[_0x221f('0x61')]['set'](_0x2c8b38[_0x221f('0x83')],{}),_0x1370dc&&this[_0x221f('0xf1')]['set'](_0x2c8b38[_0x221f('0x83')],G(_0x2c8b38[_0x221f('0x83')],!0x0)));const _0x1ddf7a=null===_0x2c8b38[_0x221f('0x96')]?null:_0x2c8b38[_0x221f('0x96')]||this[_0x221f('0x53')][_0x221f('0x3f')]['get'](_0x221f('0xb6'))['me']['id'],_0x4a2bbd=this[_0x221f('0x84')][_0x221f('0x6e')](_0x2c8b38['rootName']);_0x4a2bbd&&_0x4a2bbd['userId']===_0x1ddf7a?this[_0x221f('0x84')][_0x221f('0x40')](_0x2c8b38[_0x221f('0x83')]):this[_0x221f('0x84')][_0x221f('0xb3')](_0x2c8b38['rootName'],{'userId':_0x1ddf7a,'isAttached':_0x2c8b38['isAdd']});}['_handleRootAttributeOperation'](_0x3ccd0f){const _0x1afaa0=this[_0x221f('0x61')][_0x221f('0x6e')](_0x3ccd0f['root'][_0x221f('0x83')]);null===_0x3ccd0f['newValue']?delete _0x1afaa0[_0x3ccd0f[_0x221f('0x6')]]:_0x1afaa0[_0x3ccd0f[_0x221f('0x6')]]=_0x3ccd0f[_0x221f('0xe8')];}}function q(_0x47e6d9){const _0x36ae6e=G(_0x47e6d9[_0x221f('0x83')],_0x47e6d9['isAttached']());for(const _0x346c3d of _0x47e6d9[_0x221f('0x45')]()){const _0x2ae2fb=_0x346c3d['_clone'](!0x0);_0x36ae6e[_0x221f('0x10')](_0x2ae2fb);}return _0x36ae6e;}function G(_0x855f65,_0x73ce15=!0x0){const _0x805373=new _0xfe15d4();return _0x805373['rootName']=_0x855f65,_0x805373[_0x221f('0xc2')]=_0x73ce15,_0x805373[_0x221f('0xda')]=()=>_0x805373['_isAttached'],_0x805373;}function L(_0x23fae8,_0x4e89e2,_0x1b9ee2){const _0x3fc3b8=_0x221f('0xc9')==_0x23fae8[_0x221f('0x5d')]?_0x1b9ee2[_0x221f('0x9d')](_0x23fae8[_0x221f('0x9a')],_0x221f('0x39')):_0x1b9ee2[_0x221f('0x58')](_0x23fae8[_0x221f('0x9a')]);return _0x1b9ee2[_0x221f('0xf0')](_0x4e89e2,_0x3fc3b8['path'],_0x3fc3b8['stickiness']);}function W(_0x167da0,_0x59bafb,_0x2aaa2a){const _0x5441ee='elementStart'==_0x167da0['type']?_0x2aaa2a[_0x221f('0x9d')](_0x167da0[_0x221f('0x9a')],0x0):_0x2aaa2a['createPositionAfter'](_0x167da0[_0x221f('0x9a')]);return _0x2aaa2a[_0x221f('0xf0')](_0x59bafb,_0x5441ee[_0x221f('0x75')],_0x5441ee[_0x221f('0x35')]);}
|