@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231205.0 → 0.0.0-nightly-20231207.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/README.md +10 -10
- 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 _0x1d88=['_diffRoots','config','_idsRoots','root','_handleInsertOperation','_generateTape','getLatestVersion','_savedMetaData','sourcePosition','getAncestors','_markChanges','deletions','_handleOperation','string','$text','_baseIdsRoots','_initialRevisionId','_bufferUpdate','_baseRootsAttributes','_handleMergeOperation','revision-end','delete','find','insertions','isAdd','editing','_authorId','default','getChild','_isInit','conversion','getRevisionDocumentData','nodeAfter','move','fromVersion','data','_prepareViewToSave','attributesAfter','document','_removePendingAction','_getFromVersion','attributes','saveRevision','changeRootAttribute','adapter','get','end','roots','howMany','ready','useFillerType','_clone','size','_bufferedUpdates','toVersion','newValue','_makeModelFromViewString','history','createPositionBefore','_transformMarkers','detachRoot','repository','offset','_fixPosition','$graveyard','baseVersion','deletion','updateRevisions','_makeIdsRoot','_handleRootAttributeOperation','model','start','stickiness','getRootNames','toModel','isEnabled','stringify','_removeMetaData','getCurrentRevisionId','plugins','getAttributes','NEGATIVE_INFINITY','_getPreviousFrom','keepParagraph','isEqual','_getViewJson','element','revision','_fixOperation','_execute','_baseRoots','markers','init','split','_setAttribute','_createInitialRevision','vid','_isPendingUpdate','_isAttached','createRevision','_touched','_lastTo','reverse','childCount','then','_appendChild','getWalker','elementEnd','insertion','_findInsertionIndex','_touchedMarkers','insert','_operations','_removeRevisionMarkers','tableCell','locale','processor','getIndex','view','collaboration.channelId','_lastFrom','merge','_loadState','vid_end','attachChange','_insertChild','elementStart','map','has','add','sort','_makeRevision','oldRange','_revisionId','slice','finally','rootName','key','_applyOperations','createRange','_addPendingAction','path','dataToMarker','define','getMovedRangeStart','_saveMetaData','_replaceEditorDataWithRevisionData','dataDowncast','getRoot','currentRevision','getChildren','splitPosition','addRootAttribute','revisionHistory.resumeUnsavedRevision','offsetSize','afterInit','set','editor-initial-data-replaced-with-revision-data','_getVidAttributeName','_source','authorsIds','Users','nodes','initial','authors','some','graveyardPosition','_getState','startsWith','marker','_reset','filter','range','type','_markers','addRevisionData','text','markerToData','revision:','item','_calculateMetaData','getAttribute','_revisionDataBuilder','buildRevisionData','creator','_handleSplitOperation','_diffRootsAttributes','trim','fromEntries','requires','getRevisions','_setConversion','parent','source','_continueCurrentRevision','getUser','_startingVersion','_copyMarkers','clear','_handleMoveOperation','creatorId','length','position','from','loadState','remove','pluginName','addRevision','shift','addRoot','max','getRange','push','_createCurrentRevision','insertionPosition','reInit','_getBaseVids','createRangeIn','createdAt','Initial\x20revision','createPositionFromPath','forEach','RevisionsRepository','_pendingAction','previousPosition','_touchedRoots','values','resolve','isAttached','_loadedStateData','version','for','diffData','_handleMarkerOperation','_fixRange','data-revision-','createPositionAt','setRevisionData','keys','userId','getOperation','attributesBefore','clone','editor','_loadRevisionData','PendingActions','_cloneOperation','sendBufferedUpdates','getData','children','vid_start','getNodeByPath','name','RevisionTracker','parse','update','_startingRevisionId','upcast','getRevision','_handleRootOperation','newRange','_update','getRevisionRootsAttributes'];(function(_0x1552af,_0x1d8875){const _0x2df0b9=function(_0x542142){while(--_0x542142){_0x1552af['push'](_0x1552af['shift']());}};_0x2df0b9(++_0x1d8875);}(_0x1d88,0xbd));const _0x2df0=function(_0x1552af,_0x1d8875){_0x1552af=_0x1552af-0x0;let _0x2df0b9=_0x1d88[_0x1552af];return _0x2df0b9;};import{Users as _0x529845}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x3476c8,PendingActions as _0x5322a1}from'ckeditor5/src/core';import{logWarning as _0x5ae175,uid as _0x15e12a}from'ckeditor5/src/utils';import{Position as _0x526c47,Range as _0x33e6e5,Element as _0x772d8e,DocumentFragment as _0x55a33d,ViewText as _0x270442,ViewElement as _0x5976af,ViewContainerElement as _0x11bc13,ViewAttributeElement as _0x162538,ViewEmptyElement as _0x6003f4,ViewRawElement as _0x38eb1f,ViewUIElement as _0x229107,ViewDocumentFragment as _0x305f0e}from'ckeditor5/src/engine';import _0x3ac29a from'./revisionsrepository';import{getTranslation as _0x5e4f09}from'./utils/common-translations';import{cloneDeep as _0xb6b1d8,isEqual as _0x442f2f}from'lodash-es';const B={'c':_0x11bc13,'a':_0x162538,'e':_0x6003f4,'r':_0x38eb1f,'u':_0x229107};export default class l extends _0x3476c8{static get[_0x2df0('0x11')](){return _0x2df0('0x40');}static get[_0x2df0('0x0')](){return[_0x529845,_0x3ac29a,_0x5322a1];}constructor(_0x5758b9){super(_0x5758b9),this[_0x2df0('0x76')]=null,this[_0x2df0('0xdf')]=null,this[_0x2df0('0x100')]=new H(this[_0x2df0('0x36')]),this['_initialRevisionId']=this[_0x2df0('0x36')][_0x2df0('0x4b')][_0x2df0('0x77')](_0x2df0('0xc1'))||_0x2df0('0xed'),this['_bufferedUpdates']=new Map(),this[_0x2df0('0x28')]=null;const _0x1204b0=_0x15e12a();this[_0x2df0('0xe9')]={'history':this[_0x2df0('0x36')][_0x2df0('0x90')][_0x2df0('0x70')][_0x2df0('0x83')],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document'][_0x2df0('0x29')]),'getCurrentRevisionId':()=>_0x1204b0},this[_0x2df0('0xe6')]('isReady',!0x1),this[_0x2df0('0xe6')](_0x2df0('0x95'),!0x0),this['set']('_isPendingUpdate',!0x1),this[_0x2df0('0x36')][_0x2df0('0x4b')][_0x2df0('0xd9')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x2df0('0x36')][_0x2df0('0x68')][_0x2df0('0x2a')](_0x2df0('0x44'))[_0x2df0('0xd8')]({'view':_0x2df0('0xa1')});}[_0x2df0('0xa6')](){this['repository']=this['editor'][_0x2df0('0x99')][_0x2df0('0x77')](_0x2df0('0x21')),this[_0x2df0('0x2')](),this[_0x2df0('0x36')][_0x2df0('0x6d')]['on'](_0x2df0('0x7b'),()=>{const _0x534ef9=this[_0x2df0('0x87')][_0x2df0('0x45')](0x0),_0x35c0e0=_0x534ef9&&null===_0x534ef9[_0x2df0('0x102')]?_0x534ef9:null;if(this['_continueCurrentRevision']=!!_0x35c0e0&&this[_0x2df0('0x36')]['config'][_0x2df0('0x77')](_0x2df0('0xe3')),this[_0x2df0('0x36')]['plugins'][_0x2df0('0xca')]('RealTimeCollaborationClient')){const _0x5345e0=this['_source']['getCurrentRevisionId'](),_0x3f0a57=this['repository'][_0x2df0('0x45')](_0x5345e0);if(_0x3f0a57)this['_startingVersion']=_0x3f0a57[_0x2df0('0x6c')],this['_continueCurrentRevision']=!0x1;else{const _0x2f0f2c=this['_source'][_0x2df0('0x83')][_0x2df0('0xba')][_0x2df0('0x60')](_0x27f265=>!_0x27f265[_0x2df0('0x67')]),_0x2910eb=_0x2f0f2c?_0x2f0f2c['baseVersion']:this['_source']['history'][_0x2df0('0x29')];_0x534ef9?(_0x534ef9[_0x2df0('0x80')]<_0x2910eb&&_0x534ef9[_0x2df0('0x48')]({'toVersion':_0x2910eb}),this[_0x2df0('0x5')]?(this[_0x2df0('0xe9')][_0x2df0('0x98')]=()=>_0x35c0e0['id'],this['_startingVersion']=_0x35c0e0[_0x2df0('0x6c')]):(this[_0x2df0('0x7')]=_0x534ef9[_0x2df0('0x80')],this['_continueCurrentRevision']=!0x1)):(this[_0x2df0('0x7')]=_0x2910eb,this[_0x2df0('0x5')]=!0x1);}}else _0x35c0e0&&(this['editor'][_0x2df0('0x90')]['document'][_0x2df0('0x83')][_0x2df0('0x29')]=Math[_0x2df0('0x15')](_0x35c0e0[_0x2df0('0x80')],this[_0x2df0('0x36')][_0x2df0('0x90')][_0x2df0('0x70')][_0x2df0('0x83')][_0x2df0('0x29')]),_0x35c0e0[_0x2df0('0x6c')]===_0x35c0e0[_0x2df0('0x80')]?(0x0!==_0x35c0e0[_0x2df0('0x6c')]&&(this[_0x2df0('0xe9')][_0x2df0('0x98')]=()=>_0x35c0e0['id']),this[_0x2df0('0x5')]=!0x1):this[_0x2df0('0x5')]&&(this[_0x2df0('0xe9')]['getCurrentRevisionId']=()=>_0x35c0e0['id'],this['_startingVersion']=_0x35c0e0['fromVersion'])),this[_0x2df0('0x5')]||(this['_startingVersion']=this[_0x2df0('0x36')][_0x2df0('0x90')][_0x2df0('0x70')][_0x2df0('0x29')]);this['_revisionDataBuilder'][_0x2df0('0xa6')](this['_source'][_0x2df0('0x83')]),this[_0x2df0('0xa9')](this['_startingVersion']),this[_0x2df0('0x18')](this[_0x2df0('0x7')]),this['adapter']&&this[_0x2df0('0x3a')]();}),this['bind']('isReady')['to'](this,_0x2df0('0xab'),_0x418961=>!_0x418961);}async[_0x2df0('0xe5')](){if(this[_0x2df0('0x87')]['length']>0x0){const _0x539d13=this[_0x2df0('0x87')][_0x2df0('0x45')](0x0),_0x4cd59f=await this[_0x2df0('0x69')](_0x539d13),_0x59e92e=await this[_0x2df0('0x49')](_0x539d13);this[_0x2df0('0xdc')](_0x4cd59f,_0x59e92e);}}['setSource'](_0x3e70fd){this[_0x2df0('0xe9')]=_0x3e70fd;}async[_0x2df0('0x42')](){const _0x5878c1=await this['_source'][_0x2df0('0x50')]();if(_0x5878c1>this['currentRevision'][_0x2df0('0x80')]){await this['_loadState']();const _0x2848a5=this[_0x2df0('0x101')]({'revision':this[_0x2df0('0xdf')],'to':_0x5878c1});_0x2848a5[_0x2df0('0xee')]=_0x2848a5[_0x2df0('0xea')][_0x2df0('0xc9')](_0x46c7b0=>this[_0x2df0('0x36')][_0x2df0('0x99')][_0x2df0('0x77')](_0x2df0('0xeb'))[_0x2df0('0x6')](_0x46c7b0)),this['currentRevision'][_0x2df0('0x48')](_0x2848a5);}}async[_0x2df0('0xc4')](){this['_continueCurrentRevision']&&!this[_0x2df0('0x28')]&&(await this[_0x2df0('0x37')](this['currentRevision']),this[_0x2df0('0x100')][_0x2df0('0xf')](this[_0x2df0('0xdf')]),this[_0x2df0('0x28')]={'fromVersion':this['currentRevision'][_0x2df0('0x6c')],'authors':this['currentRevision'][_0x2df0('0xee')][_0x2df0('0xd0')]()});}async[_0x2df0('0x74')](_0x3e3b7b={},_0x25ea50=null){const _0xeec268=[];await this[_0x2df0('0xc4')](),this[_0x2df0('0x5')]=!0x1,_0x25ea50>this[_0x2df0('0xdf')][_0x2df0('0x80')]&&(_0x25ea50=null),null===_0x25ea50&&(_0x25ea50=await this[_0x2df0('0xe9')][_0x2df0('0x50')]());const _0x33c69f=this[_0x2df0('0x72')](_0x25ea50),_0x9ced0d=this[_0x2df0('0x101')]({'from':_0x33c69f,'to':_0x25ea50});if(this[_0x2df0('0xdf')]['toVersion']<_0x25ea50){const _0x2196e7=this[_0x2df0('0x101')]({'revision':this[_0x2df0('0xdf')],'from':_0x25ea50,'to':_0x25ea50});_0x2196e7['authors']=[],_0x2196e7[_0x2df0('0xea')]=[],_0x2196e7['id']=this[_0x2df0('0xdf')]['id'],this[_0x2df0('0xdf')][_0x2df0('0x48')](_0x2196e7,!0x0),delete _0x2196e7[_0x2df0('0xee')],_0xeec268[_0x2df0('0x17')](_0x2196e7);}_0x3e3b7b[_0x2df0('0xb')]=this['editor'][_0x2df0('0x99')][_0x2df0('0x77')]('Users')['me']['id'],_0x3e3b7b[_0x2df0('0x3f')]=_0x3e3b7b[_0x2df0('0x3f')]||null,_0x3e3b7b['id']=_0x3e3b7b['id']||_0x15e12a(),_0x3e3b7b={..._0x3e3b7b,..._0x9ced0d};const _0xa38bd=this[_0x2df0('0xf9')](_0x3e3b7b);_0xeec268[_0x2df0('0x17')](_0x3e3b7b);const _0x141c87=this[_0x2df0('0x87')][_0x2df0('0xbf')](_0xa38bd);if(0x0!==_0x141c87){const _0x474905=this[_0x2df0('0x87')][_0x2df0('0x45')](_0x141c87-0x1);if(_0x474905[_0x2df0('0x6c')]!==_0x25ea50){const _0x5a1fdc=this[_0x2df0('0x100')][_0x2df0('0x3b')](_0x25ea50,_0x474905['toVersion']),_0x1682e2={'id':_0x474905['id'],'diffData':_0x5a1fdc[_0x2df0('0x2b')],'authorsIds':_0x5a1fdc[_0x2df0('0xea')],'authors':_0x5a1fdc[_0x2df0('0xea')][_0x2df0('0xc9')](_0x532e89=>this[_0x2df0('0x36')][_0x2df0('0x99')]['get'](_0x2df0('0xeb'))[_0x2df0('0x6')](_0x532e89)),'fromVersion':_0x25ea50};_0x474905===this[_0x2df0('0xdf')]&&(_0x1682e2[_0x2df0('0x1d')]=new Date(_0x3e3b7b[_0x2df0('0x1d')]['getTime']()+0xa)),_0x474905[_0x2df0('0x48')](_0x1682e2,!0x0),delete _0x1682e2[_0x2df0('0xee')],_0xeec268[_0x2df0('0x17')](_0x1682e2);}}if(this[_0x2df0('0x76')]){for(const _0x473071 of _0xeec268)this[_0x2df0('0x5b')](_0x473071['id'],_0x473071,!0x0);this[_0x2df0('0x3a')]();}return _0xa38bd;}['addRevisionData'](_0xc09c48){const _0x5650c3=this[_0x2df0('0x87')][_0x2df0('0xad')](_0xc09c48);return this[_0x2df0('0x76')]&&_0x5650c3['on'](_0x2df0('0x48'),(_0x5198a6,_0x5354aa,_0x28d22b)=>{_0x28d22b||(this[_0x2df0('0x5b')](_0x5354aa['id'],_0x5354aa,!0x0),this['sendBufferedUpdates']());}),this[_0x2df0('0x87')][_0x2df0('0x12')](_0x5650c3,this[_0x2df0('0xb7')](_0x5650c3)),_0x5650c3;}async[_0x2df0('0x69')](_0x13554b){await this[_0x2df0('0x37')](_0x13554b);const _0xd4ffbf={};for(const _0x4cf3a4 in _0x13554b['diffData']){if(_0x13554b[_0x2df0('0x2b')][_0x4cf3a4][_0x2df0('0xc6')]&&!_0x13554b[_0x2df0('0x2b')][_0x4cf3a4][_0x2df0('0xc6')][_0x2df0('0x27')])continue;const _0x4f20f2=this[_0x2df0('0xbb')](JSON[_0x2df0('0x41')](_0x13554b['diffData'][_0x4cf3a4][_0x2df0('0x61')])),_0x23bf43=this[_0x2df0('0x36')][_0x2df0('0x63')][_0x2df0('0xc0')][_0x2df0('0x70')],_0x605a59=new _0x305f0e(_0x23bf43,_0x4f20f2[_0x2df0('0xc9')](_0x29d8c4=>J(_0x29d8c4,this[_0x2df0('0x36')])));this['editor'][_0x2df0('0x6d')][_0x2df0('0xbe')][_0x2df0('0x7c')]('marked'),_0xd4ffbf[_0x4cf3a4]=this[_0x2df0('0x36')]['data'][_0x2df0('0xbe')]['toData'](_0x605a59),this[_0x2df0('0x36')][_0x2df0('0x6d')][_0x2df0('0xbe')][_0x2df0('0x7c')](_0x2df0('0x65'));}return _0xd4ffbf;}async['getRevisionRootsAttributes'](_0x3673ac){await this[_0x2df0('0x37')](_0x3673ac);const _0x574b2b={};for(const _0x1487a1 in _0x3673ac[_0x2df0('0x2b')])_0x3673ac['diffData'][_0x1487a1][_0x2df0('0xc6')]&&!_0x3673ac[_0x2df0('0x2b')][_0x1487a1][_0x2df0('0xc6')][_0x2df0('0x27')]||(_0x574b2b[_0x1487a1]=_0x3673ac[_0x2df0('0x2b')][_0x1487a1][_0x2df0('0x6f')]||{});return _0x574b2b;}[_0x2df0('0x3a')](){if(0x0===this[_0x2df0('0x7f')]['size'])return;if(this[_0x2df0('0xab')])return;let _0x52ad07=Array['from'](this[_0x2df0('0x7f')][_0x2df0('0x25')]());this[_0x2df0('0x7f')][_0x2df0('0x9')]();for(let _0x4afbde=0x0;_0x4afbde<_0x52ad07['length'];_0x4afbde++){const _0x108623=_0x52ad07[_0x4afbde];let _0x153310=!0x1;for(const _0x7dd404 of Object[_0x2df0('0x31')](_0x108623))void 0x0===_0x108623[_0x7dd404]?delete _0x108623[_0x7dd404]:'id'!==_0x7dd404&&(_0x153310=!0x0);_0x153310||(_0x52ad07[_0x4afbde]=null);}if(_0x52ad07=_0x52ad07['filter'](_0x4ed230=>null!==_0x4ed230),!_0x52ad07[_0x2df0('0xc')])return;for(let _0x536b09=0x0;_0x536b09<_0x52ad07['length'];_0x536b09++){const _0x4e8946=_0x52ad07[_0x536b09];void 0x0!==_0x4e8946[_0x2df0('0x6c')]&&void 0x0===_0x4e8946[_0x2df0('0x80')]&&(_0x4e8946['toVersion']=this[_0x2df0('0x87')]['getRevision'](_0x4e8946['id'])[_0x2df0('0x80')]),void 0x0!==_0x4e8946[_0x2df0('0x80')]&&void 0x0===_0x4e8946['fromVersion']&&(_0x4e8946['fromVersion']=this[_0x2df0('0x87')][_0x2df0('0x45')](_0x4e8946['id'])['fromVersion']);}const _0x37f078=this[_0x2df0('0x36')][_0x2df0('0x4b')][_0x2df0('0x77')](_0x2df0('0xc1'));this[_0x2df0('0xab')]=!0x0,this[_0x2df0('0xd6')](),this[_0x2df0('0x76')][_0x2df0('0x8d')](_0x52ad07,_0x37f078)[_0x2df0('0xd1')](()=>{this[_0x2df0('0xab')]=!0x1;})[_0x2df0('0xb2')](_0x54ed82=>{if(_0x54ed82)for(const _0x100eef of _0x54ed82)this['setRevisionData']({'id':_0x100eef['id'],'createdAt':_0x100eef[_0x2df0('0x1d')]});this[_0x2df0('0x71')](),this['sendBufferedUpdates']();});}[_0x2df0('0xdc')](_0x265060,_0x22d6d6){let _0x5de4cd=this[_0x2df0('0x36')][_0x2df0('0x4b')][_0x2df0('0x77')]('initialData'),_0xf0466d=this['editor'][_0x2df0('0x4b')][_0x2df0('0x77')]('rootsAttributes');if(void 0x0===_0x5de4cd){_0x5de4cd={};for(const _0xc67b8 of this[_0x2df0('0x36')]['model'][_0x2df0('0x70')][_0x2df0('0x93')]())_0x5de4cd[_0xc67b8]='';}if(_0x2df0('0x57')==typeof _0x5de4cd&&(_0x5de4cd={'main':_0x5de4cd}),void 0x0===_0xf0466d){_0xf0466d={};for(const _0x872882 of this['editor'][_0x2df0('0x90')][_0x2df0('0x70')][_0x2df0('0x93')]())_0xf0466d[_0x872882]={};}let _0x454dd0=!0x1;const _0xb63236=Object[_0x2df0('0x31')](_0x5de4cd),_0x4f2a38=Object[_0x2df0('0x31')](_0x265060);for(const _0x20382d of _0xb63236){if(_0x5de4cd[_0x20382d]!==_0x265060[_0x20382d]&&''!==_0x5de4cd[_0x20382d][_0x2df0('0x105')]()){_0x454dd0=!0x0;break;}if(!_0x442f2f(_0xf0466d[_0x20382d],_0x22d6d6[_0x20382d])&&Object['keys'](_0xf0466d[_0x20382d])[_0x2df0('0xc')]>0x0){_0x454dd0=!0x0;break;}}_0x454dd0||(_0x454dd0=_0x4f2a38[_0x2df0('0xef')](_0x47fda4=>!this[_0x2df0('0x36')][_0x2df0('0x90')][_0x2df0('0x70')]['getRoot'](_0x47fda4))),_0x454dd0&&_0x5ae175(_0x2df0('0xe7'),{'editorData':_0x5de4cd,'editorRootsAttributes':_0xf0466d,'revisionData':_0x265060,'revisionRootsAttributes':_0x22d6d6}),this['editor'][_0x2df0('0x4b')]['set']('initialData',_0x265060),this[_0x2df0('0x36')]['config']['set']('rootsAttributes',_0x22d6d6);}[_0x2df0('0xd6')](){if(!this[_0x2df0('0x22')]){const _0x26cfa7=this[_0x2df0('0x36')][_0x2df0('0x99')][_0x2df0('0x77')](_0x2df0('0x38'));this['_pendingAction']=_0x26cfa7[_0x2df0('0xcb')](_0x5e4f09(this[_0x2df0('0x36')][_0x2df0('0xbd')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x2df0('0x71')](){this['_pendingAction']&&(this[_0x2df0('0x36')][_0x2df0('0x99')]['get'](_0x2df0('0x38'))[_0x2df0('0x10')](this[_0x2df0('0x22')]),this['_pendingAction']=null);}[_0x2df0('0xb7')](_0x1a9c1e){const _0x560372=this[_0x2df0('0x87')][_0x2df0('0x1')]();_0x560372['reverse']();let _0xf91ae1=0x0;for(;_0xf91ae1<_0x560372[_0x2df0('0xc')];){const _0x53a2ab=_0x560372[_0xf91ae1];if(_0x53a2ab===this[_0x2df0('0xdf')]){_0xf91ae1++;continue;}if(_0x53a2ab['id']===this['_initialRevisionId'])break;const _0x5690cf=_0x1a9c1e[_0x2df0('0x80')]-_0x53a2ab[_0x2df0('0x80')]||_0x1a9c1e[_0x2df0('0x6c')]-_0x53a2ab[_0x2df0('0x6c')];if(_0x5690cf>0x0)break;if(_0x5690cf<0x0)_0xf91ae1++;else{if(!_0x1a9c1e['creator']&&_0x53a2ab[_0x2df0('0x102')])break;if(_0x53a2ab[_0x2df0('0x102')]||!_0x1a9c1e['creator']){if(_0x1a9c1e['createdAt']>_0x53a2ab['createdAt'])break;_0xf91ae1++;}else _0xf91ae1++;}}return _0xf91ae1;}[_0x2df0('0x30')](_0x37d2e7){const _0x446ea4=this['repository'][_0x2df0('0x45')](_0x37d2e7['id']);if(_0x37d2e7[_0x2df0('0x1d')]&&(_0x37d2e7[_0x2df0('0x1d')]=new Date(_0x37d2e7[_0x2df0('0x1d')])),_0x37d2e7[_0x2df0('0xea')]){const _0x522f7f=this[_0x2df0('0x36')][_0x2df0('0x99')][_0x2df0('0x77')]('Users');_0x37d2e7[_0x2df0('0xee')]=_0x37d2e7[_0x2df0('0xea')]['map'](_0x41fcf5=>_0x522f7f[_0x2df0('0x6')](_0x41fcf5));}_0x446ea4['_update'](_0x37d2e7,!0x0);}[_0x2df0('0x101')]({revision:_0x122aee=null,from:_0x4e815a=null,to:_0x17a316=null}){_0x4e815a=null!==_0x4e815a?_0x4e815a:_0x122aee[_0x2df0('0x6c')],_0x17a316=null!==_0x17a316?_0x17a316:_0x122aee[_0x2df0('0x80')];const _0x794364=this[_0x2df0('0x100')][_0x2df0('0x3b')](_0x4e815a,_0x17a316),_0x3f08e2={'diffData':_0x794364[_0x2df0('0x2b')],'authorsIds':_0x794364['authorsIds'],'fromVersion':_0x4e815a,'toVersion':_0x17a316};if(!_0x122aee||_0x17a316!==_0x122aee[_0x2df0('0x80')]){const _0x7722a3=_0x17a316-0x1,_0x43e2c1=this[_0x2df0('0xe9')][_0x2df0('0x83')][_0x2df0('0x33')](_0x7722a3);_0x3f08e2[_0x2df0('0x1d')]=_0x43e2c1&&_0x43e2c1[_0x2df0('0x1d')]||new Date();}if(this[_0x2df0('0x28')]&&_0x4e815a===this[_0x2df0('0x28')][_0x2df0('0x6c')])for(const _0x4fdc06 of this['_loadedStateData'][_0x2df0('0xee')])_0x3f08e2['authorsIds']['includes'](_0x4fdc06['id'])||_0x3f08e2[_0x2df0('0xea')][_0x2df0('0x17')](_0x4fdc06['id']);return _0x3f08e2;}[_0x2df0('0x37')](_0x38c93f){if(!_0x38c93f||_0x38c93f['diffData'])return Promise[_0x2df0('0x26')]();{const _0x3ca9d8=this[_0x2df0('0x36')][_0x2df0('0x4b')][_0x2df0('0x77')]('collaboration.channelId');return this[_0x2df0('0x76')][_0x2df0('0x45')]({'channelId':_0x3ca9d8,'revisionId':_0x38c93f['id']})[_0x2df0('0xb2')](_0x3e1c4e=>{_0x38c93f[_0x2df0('0x2b')]=_0x3e1c4e[_0x2df0('0x2b')];});}}[_0x2df0('0x5b')](_0x5b2f83,_0x4af2c7,_0x43584b){if(this['_bufferedUpdates'][_0x2df0('0xca')](_0x5b2f83)){const _0x4f2420=this[_0x2df0('0x7f')]['get'](_0x5b2f83);_0x4af2c7=_0x43584b?{..._0x4f2420,..._0x4af2c7}:{..._0x4af2c7,..._0x4f2420};}this[_0x2df0('0x7f')][_0x2df0('0xe6')](_0x5b2f83,_0x4af2c7);}[_0x2df0('0x72')](_0x1a1594){const _0x154ea1=this[_0x2df0('0x87')][_0x2df0('0x1')]();_0x154ea1[_0x2df0('0xb0')](),_0x154ea1[_0x2df0('0x13')]();const _0x1a3873=_0x154ea1['find'](_0x1e6ceb=>_0x1e6ceb[_0x2df0('0x80')]<=_0x1a1594)[_0x2df0('0x80')];return _0x1a3873<this[_0x2df0('0x7')]?this[_0x2df0('0x7')]:_0x1a3873;}[_0x2df0('0xa9')](_0x54f0c9){const _0x4a59f0=this['repository']['getRevision'](this[_0x2df0('0x87')][_0x2df0('0xc')]-0x1);if(_0x4a59f0)this[_0x2df0('0x5a')]=_0x4a59f0['id'];else{const _0x35badd=!this['editor'][_0x2df0('0x90')][_0x2df0('0x70')][_0x2df0('0x79')]['find'](_0x219ccf=>this[_0x2df0('0x36')][_0x2df0('0x90')]['hasContent'](_0x219ccf)),_0xd723f9=this[_0x2df0('0x36')][_0x2df0('0x99')]['get'](_0x2df0('0xeb'))['me']['id'],_0x24f0b9=_0x5e4f09(this[_0x2df0('0x36')][_0x2df0('0xbd')],_0x35badd?'Empty\x20document':_0x2df0('0x1e'));this[_0x2df0('0xcd')]({'from':_0x54f0c9,'to':_0x54f0c9,'id':this[_0x2df0('0x5a')],'name':_0x24f0b9,'creatorId':_0xd723f9});}}['_createCurrentRevision'](_0x211e42){const _0x519bb9=this['_source']['getCurrentRevisionId']();this[_0x2df0('0xdf')]=this[_0x2df0('0x87')][_0x2df0('0x45')](_0x519bb9),this[_0x2df0('0xdf')]||(this[_0x2df0('0xdf')]=this[_0x2df0('0xcd')]({'from':_0x211e42,'to':_0x211e42,'id':_0x519bb9,'name':'','creatorId':null}));}['_makeRevision']({name:_0x5b29b2,from:_0x14cf8e,to:_0x2b827f,creatorId:_0x840df3,id:_0x781d6c}){const _0x158c02=this[_0x2df0('0x101')]({'from':_0x14cf8e,'to':_0x2b827f});_0x158c02[_0x2df0('0x3f')]=_0x5b29b2,_0x158c02[_0x2df0('0xb')]=_0x840df3,_0x158c02['id']=_0x781d6c;const _0x1ca9af=this[_0x2df0('0xf9')](_0x158c02);return this[_0x2df0('0x76')]&&this['_bufferUpdate'](_0x158c02['id'],_0x158c02,!0x0),_0x1ca9af;}[_0x2df0('0x2')](){this[_0x2df0('0x36')][_0x2df0('0x68')][_0x2df0('0x2a')](_0x2df0('0xdd'))[_0x2df0('0xfb')]({'model':'revision'});}[_0x2df0('0xbb')](_0x106376){return(_0x106376=_0x106376['filter'](_0x4bb53b=>!_0x4bb53b['name']||'revision-start'!==_0x4bb53b[_0x2df0('0x3f')]&&_0x2df0('0x5e')!==_0x4bb53b['name']))[_0x2df0('0x20')](_0xb02d96=>{_0x2df0('0x57')!=typeof _0xb02d96&&(_0xb02d96['children']=this[_0x2df0('0xbb')](_0xb02d96[_0x2df0('0x3c')]),_0xb02d96[_0x2df0('0x73')]=_0xb02d96['attributes'][_0x2df0('0xf5')](_0x5cbe9c=>!_0x5cbe9c[0x0][_0x2df0('0xf2')](_0x2df0('0x2e'))));}),_0x106376;}}function J(_0x382b6b,_0x54e44d){const _0x19d829=_0x54e44d[_0x2df0('0x63')][_0x2df0('0xc0')][_0x2df0('0x70')];if(_0x2df0('0x57')==typeof _0x382b6b)return new _0x270442(_0x19d829,_0x382b6b);{const _0x13b9a0=_0x382b6b['children'][_0x2df0('0xc9')](_0x129396=>J(_0x129396,_0x54e44d));return new(B[_0x382b6b[(_0x2df0('0xf7'))]]||_0x5976af)(_0x19d829,_0x382b6b['name'],_0x382b6b[_0x2df0('0x73')],_0x13b9a0);}}class H{constructor(_0xaac77c){this[_0x2df0('0x36')]=_0xaac77c,this[_0x2df0('0x51')]=new Map(),this[_0x2df0('0xc2')]=-0x1,this[_0x2df0('0xaf')]=-0x1,this[_0x2df0('0xf8')]=new Map(),this[_0x2df0('0x4a')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x2df0('0xa4')]=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x2df0('0x4c')]=new Map(),this[_0x2df0('0x59')]=new Map(),this['_touched']=new Map(),this[_0x2df0('0xb8')]=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}[_0x2df0('0xa6')](_0xa904ed){this['source']=_0xa904ed;const _0x2a1663=new Map(),_0x2b7b7c=new Map(),_0x19e924=this[_0x2df0('0x36')]['model'][_0x2df0('0x70')][_0x2df0('0x79')][_0x2df0('0xc9')](_0x2df2b7=>_0x2df2b7['rootName']);for(const _0x2a84cd of _0x19e924){const _0x533751=this[_0x2df0('0x36')][_0x2df0('0x90')][_0x2df0('0x70')][_0x2df0('0xde')](_0x2a84cd),_0x4e3483=q(_0x533751);_0x2a1663[_0x2df0('0xe6')](_0x2a84cd,_0x4e3483),_0x2b7b7c[_0x2df0('0xe6')](_0x2a84cd,Object[_0x2df0('0x106')](_0x533751[_0x2df0('0x9a')]()));}const _0x560023=Array[_0x2df0('0xe')](this[_0x2df0('0x36')]['model'][_0x2df0('0xa5')])[_0x2df0('0xc9')](_0xfbc099=>[_0xfbc099[_0x2df0('0x3f')],_0xfbc099[_0x2df0('0x16')]()]),_0x78af88=this[_0x2df0('0x4')][_0x2df0('0x29')];this[_0x2df0('0xdb')](_0x78af88,_0x2a1663,_0x560023,_0x2b7b7c),this[_0x2df0('0x43')]=this[_0x2df0('0xcf')];const _0x4909a7=new Map(),_0x29571b=new Map();for(const _0x3683d4 of _0x19e924){const _0x396e6d=G(_0x3683d4);_0x4909a7[_0x2df0('0xe6')](_0x3683d4,_0x396e6d),_0x29571b[_0x2df0('0xe6')](_0x3683d4,{});}this[_0x2df0('0xdb')](Number[_0x2df0('0x9b')],_0x4909a7,[],_0x29571b);}[_0x2df0('0x3b')](_0x5d8c04,_0x40e49d){if(this['_lastFrom']===_0x5d8c04&&this[_0x2df0('0xaf')]<=_0x40e49d)this[_0x2df0('0x51')][_0x2df0('0x7e')]>0x1&&this[_0x2df0('0x97')](this['_lastTo']),this[_0x2df0('0xd4')](this['_lastTo'],_0x40e49d,!0x0);else{if(!this[_0x2df0('0x51')][_0x2df0('0xca')](_0x5d8c04)){const _0x3e199e=this[_0x2df0('0x9c')](_0x5d8c04);this[_0x2df0('0xfe')](_0x3e199e,_0x5d8c04,!0x1);}this[_0x2df0('0xfe')](_0x5d8c04,_0x40e49d,!0x0);}return this[_0x2df0('0xc2')]=_0x5d8c04,this[_0x2df0('0xaf')]=_0x40e49d,this[_0x2df0('0xf1')]();}[_0x2df0('0xf')](_0x132306){this[_0x2df0('0xf4')](),this[_0x2df0('0xc2')]=_0x132306[_0x2df0('0x6c')],this[_0x2df0('0xaf')]=_0x132306[_0x2df0('0x80')];for(const _0xd6ae5b in _0x132306[_0x2df0('0x2b')]){const _0x47d329=_0x132306[_0x2df0('0x2b')][_0xd6ae5b][_0x2df0('0xc6')],_0x1727a8=_0xb6b1d8(_0x132306[_0x2df0('0x2b')][_0xd6ae5b][_0x2df0('0x34')])||{},_0x4a7dc9=this[_0x2df0('0x82')](_0x132306['diffData'][_0xd6ae5b]['deletions']);_0x4a7dc9[_0x2df0('0xd2')]=_0xd6ae5b,_0x4a7dc9[_0x2df0('0xac')]=!_0x47d329||!_0x47d329[_0x2df0('0x27')],_0x4a7dc9[_0x2df0('0x27')]=()=>_0x4a7dc9['_isAttached'],this['_baseRoots'][_0x2df0('0xe6')](_0xd6ae5b,_0x4a7dc9),this[_0x2df0('0x5c')][_0x2df0('0xe6')](_0xd6ae5b,_0x1727a8),_0x47d329&&this[_0x2df0('0x24')][_0x2df0('0xe6')](_0xd6ae5b,_0x47d329);const _0x287d16=this[_0x2df0('0x8e')](_0x4a7dc9);this[_0x2df0('0x59')][_0x2df0('0xe6')](_0xd6ae5b,_0x287d16);for(const [_0x4ae565,_0x211ed8]of _0x4a7dc9[_0x2df0('0xa5')]){if(!_0x4ae565['startsWith'](_0x2df0('0xfc')))continue;const _0x56041d=_0x4ae565[_0x2df0('0xa7')](':')[0x2];for(const _0x241290 of _0x211ed8[_0x2df0('0xb4')]({'singleCharacters':!0x0})){const _0x578884=this[_0x2df0('0xe8')](_0x241290),_0x391a1f=_0x2df0('0xb5')==_0x241290[_0x2df0('0xf7')]?_0x241290['previousPosition'][_0x2df0('0xd7')]['slice'](0x0,-0x1):_0x241290['previousPosition'][_0x2df0('0xd7')],_0x371b94=_0x287d16[_0x2df0('0x3e')](_0x391a1f)[_0x2df0('0xff')](_0x578884);this[_0x2df0('0xae')]['set'](_0x371b94,{'userId':_0x56041d});}}}this[_0x2df0('0x43')]=this['_revisionId'];const _0x545c85=[...Array(this['_revisionId'])[_0x2df0('0x31')]()][_0x2df0('0xd0')](0x1)[_0x2df0('0xf5')](_0x19c817=>!this['_touched'][_0x2df0('0xca')](_0x19c817));let _0x34417e=0x0;const _0x4fac34=new Map();for(const _0x368d41 in _0x132306[_0x2df0('0x2b')]){const _0x32eef7=_0x132306['diffData'][_0x368d41]['attachChange'],_0x57a904=_0xb6b1d8(_0x132306['diffData'][_0x368d41][_0x2df0('0x6f')])||{},_0x17dbc3=this['_makeModelFromViewString'](_0x132306[_0x2df0('0x2b')][_0x368d41][_0x2df0('0x61')]);_0x17dbc3[_0x2df0('0xd2')]=_0x368d41,_0x17dbc3[_0x2df0('0xac')]=!_0x32eef7||_0x32eef7['isAttached'],_0x17dbc3[_0x2df0('0x27')]=()=>_0x17dbc3[_0x2df0('0xac')],this[_0x2df0('0x4a')][_0x2df0('0xe6')](_0x368d41,_0x17dbc3),this[_0x2df0('0x104')][_0x2df0('0xe6')](_0x368d41,_0x57a904);const _0x21d09a=this[_0x2df0('0x8e')](_0x17dbc3,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x368d41,_0x21d09a),_0x4fac34['set'](_0x368d41,_0x17dbc3[_0x2df0('0x27')]()?_0x57a904:{});for(const [_0x41f84b,_0x23034a]of _0x17dbc3[_0x2df0('0xa5')]){if(!_0x41f84b[_0x2df0('0xf2')](_0x2df0('0xfc')))continue;const _0x28f908=_0x41f84b[_0x2df0('0xa7')](':')[0x2];for(const _0x522f3e of _0x23034a[_0x2df0('0xb4')]({'singleCharacters':!0x0})){const _0x58d8aa=this[_0x2df0('0xe8')](_0x522f3e),_0xb0fb91=this[_0x2df0('0xcf')]++,_0x423944=_0x2df0('0xb5')==_0x522f3e[_0x2df0('0xf7')]?_0x522f3e[_0x2df0('0x23')][_0x2df0('0xd7')]['slice'](0x0,-0x1):_0x522f3e[_0x2df0('0x23')][_0x2df0('0xd7')];_0x21d09a['getNodeByPath'](_0x423944)[_0x2df0('0xa8')](_0x58d8aa,_0xb0fb91),this[_0x2df0('0xae')][_0x2df0('0xe6')](_0xb0fb91,{'userId':_0x28f908});}}for(const _0x1d5b27 of this[_0x2df0('0x36')]['model'][_0x2df0('0x1c')](_0x17dbc3)[_0x2df0('0xb4')]({'singleCharacters':!0x0})){const _0x32367a=this['_getVidAttributeName'](_0x1d5b27),_0x47a200='elementEnd'==_0x1d5b27[_0x2df0('0xf7')]?_0x1d5b27[_0x2df0('0x23')][_0x2df0('0xd7')][_0x2df0('0xd0')](0x0,-0x1):_0x1d5b27[_0x2df0('0x23')][_0x2df0('0xd7')],_0x336de6=_0x21d09a['getNodeByPath'](_0x47a200);_0x336de6[_0x2df0('0xff')](_0x32367a)>0x0||_0x336de6['_setAttribute'](_0x32367a,_0x545c85[_0x34417e++]);}for(const [_0x4f41b3,_0x1b054c]of _0x17dbc3[_0x2df0('0xa5')])_0x4f41b3['startsWith'](_0x2df0('0xfc'))||this[_0x2df0('0xf8')][_0x2df0('0xe6')](_0x4f41b3,_0x1b054c);}const _0x5923a8=G(_0x2df0('0x8a'));this[_0x2df0('0xa4')][_0x2df0('0xe6')](_0x2df0('0x8a'),_0x5923a8),this['_baseIdsRoots']['set']('$graveyard',this[_0x2df0('0x8e')](_0x5923a8,0x1));const _0x700a4b=G('$graveyard');this[_0x2df0('0x4a')]['set'](_0x2df0('0x8a'),_0x700a4b),this[_0x2df0('0x4c')][_0x2df0('0xe6')](_0x2df0('0x8a'),this[_0x2df0('0x8e')](_0x700a4b,0x1));const _0x33d425=Array['from'](this[_0x2df0('0x4a')])['map'](([_0x2c829e,_0x2bd267])=>[_0x2c829e,q(_0x2bd267)]);this['_saveMetaData'](this[_0x2df0('0xaf')],_0x33d425,this[_0x2df0('0xf8')],_0x4fac34);}[_0x2df0('0x82')](_0x3a3724){const _0x3b1e88=JSON[_0x2df0('0x41')](_0x3a3724),_0x5358a9=this[_0x2df0('0x36')][_0x2df0('0x63')][_0x2df0('0xc0')]['document'],_0x4adfb6=new _0x305f0e(_0x5358a9,_0x3b1e88['map'](_0x5c8c1b=>J(_0x5c8c1b,this[_0x2df0('0x36')])));return this[_0x2df0('0x36')][_0x2df0('0x6d')][_0x2df0('0x94')](_0x4adfb6);}[_0x2df0('0xdb')](_0x52253e,_0x14a517,_0x7884f,_0x1186df){const _0x4eba4d=new Map(_0x14a517),_0x154547=new Map(_0xb6b1d8(_0x1186df)),_0x27387d=new Map();for(const [_0x382c3d,_0x3d8fea]of _0x7884f)_0x27387d[_0x2df0('0xe6')](_0x382c3d,{'start':_0x3d8fea[_0x2df0('0x91')][_0x2df0('0x35')](),'end':_0x3d8fea[_0x2df0('0x78')][_0x2df0('0x35')](),'rootName':_0x3d8fea[_0x2df0('0x4d')]['rootName']});this[_0x2df0('0x51')][_0x2df0('0xe6')](_0x52253e,{'roots':_0x4eba4d,'markers':_0x27387d,'rootsAttributes':_0x154547});}[_0x2df0('0x97')](_0x1343f2){this['_savedMetaData'][_0x2df0('0x5f')](_0x1343f2);}[_0x2df0('0x1a')](){this[_0x2df0('0xf4')](),this[_0x2df0('0xc2')]=-0x1,this[_0x2df0('0xaf')]=-0x1,this[_0x2df0('0x51')][_0x2df0('0x9')](),this[_0x2df0('0xa6')](this['source']);}[_0x2df0('0xf4')](){this['_touched'][_0x2df0('0x9')](),this[_0x2df0('0xb8')]['clear'](),this[_0x2df0('0x24')][_0x2df0('0x9')](),this[_0x2df0('0x4a')][_0x2df0('0x9')](),this[_0x2df0('0x104')][_0x2df0('0x9')](),this[_0x2df0('0xa4')]['clear'](),this['_baseRootsAttributes'][_0x2df0('0x9')](),this['_idsRoots'][_0x2df0('0x9')](),this[_0x2df0('0x59')][_0x2df0('0x9')](),this[_0x2df0('0xf8')]['clear'](),this[_0x2df0('0xcf')]=0x1,this['_startingRevisionId']=this['_revisionId'];}[_0x2df0('0x8e')](_0x2fe4b7,_0x50996a=null){let _0x3aac2a=null;_0x2fe4b7['is']('documentFragment')||(_0x3aac2a=new _0x772d8e(_0x2fe4b7[_0x2df0('0x3f')],{'vid_start':null===_0x50996a?this[_0x2df0('0xcf')]++:_0x50996a++}));const _0x1b7fa9=[];for(const _0x4b21bc of _0x2fe4b7[_0x2df0('0xe0')]())if(_0x4b21bc['is'](_0x2df0('0xa0'))){_0x1b7fa9['push'](this[_0x2df0('0x8e')](_0x4b21bc,_0x50996a));const _0x4f5b44=_0x1b7fa9[_0x1b7fa9[_0x2df0('0xc')]-0x1];null!==_0x50996a&&(_0x50996a=_0x4f5b44['is'](_0x2df0('0xa0'),_0x2df0('0x58'))?_0x4f5b44['getAttribute'](_0x2df0('0xaa'))+0x1:_0x4f5b44['getAttribute'](_0x2df0('0xc5'))+0x1);}else for(let _0x2b0b8a=0x0;_0x2b0b8a<_0x4b21bc[_0x2df0('0xe4')];_0x2b0b8a++)_0x1b7fa9[_0x2df0('0x17')](new _0x772d8e(_0x2df0('0x58'),{'vid':null===_0x50996a?this[_0x2df0('0xcf')]++:_0x50996a++}));if(_0x2fe4b7['is']('documentFragment')){const _0x1a806e=G(_0x2fe4b7['rootName']);return _0x1a806e['_insertChild'](0x0,_0x1b7fa9),_0x1a806e;}return _0x3aac2a[_0x2df0('0xa8')](_0x2df0('0xc5'),null===_0x50996a?this['_revisionId']++:_0x50996a++),_0x3aac2a[_0x2df0('0xc7')](0x0,_0x1b7fa9),_0x3aac2a;}[_0x2df0('0xfe')](_0x4b2609,_0x3efbe0,_0x3ec831){this['_reset']();const {roots:_0x26e0f0,markers:_0x3f10af,rootsAttributes:_0x252570}=this['_savedMetaData'][_0x2df0('0x77')](_0x4b2609);this[_0x2df0('0xa4')]=new Map(_0x26e0f0),this['_baseRootsAttributes']=new Map(_0xb6b1d8(_0x252570));for(const [_0x37a847,_0x36df8c]of this['_baseRoots'])if('$graveyard'!==_0x37a847&&(this[_0x2df0('0x4a')][_0x2df0('0xe6')](_0x37a847,q(_0x36df8c)),this[_0x2df0('0x104')]=new Map(_0xb6b1d8(_0x252570)),_0x3ec831)){const _0x3577f7=this[_0x2df0('0xcf')];this['_idsRoots']['set'](_0x37a847,this[_0x2df0('0x8e')](_0x36df8c)),this[_0x2df0('0x59')][_0x2df0('0xe6')](_0x37a847,this['_makeIdsRoot'](_0x36df8c,_0x3577f7));}this['_startingRevisionId']=this[_0x2df0('0xcf')],this[_0x2df0('0x4a')][_0x2df0('0xe6')](_0x2df0('0x8a'),q(this['_baseRoots']['get']('$graveyard'))),_0x3ec831&&this[_0x2df0('0x4c')][_0x2df0('0xe6')](_0x2df0('0x8a'),this[_0x2df0('0x8e')](this[_0x2df0('0xa4')][_0x2df0('0x77')](_0x2df0('0x8a'))));for(const [_0x4a7abf,_0x1b1b21]of _0x3f10af){const _0x50c73b=this[_0x2df0('0xa4')][_0x2df0('0x77')](_0x1b1b21[_0x2df0('0xd2')]),_0x20eb75=this[_0x2df0('0x4a')][_0x2df0('0x77')](_0x1b1b21[_0x2df0('0xd2')]),_0x4cf768=new _0x33e6e5(this[_0x2df0('0x89')](_0x1b1b21[_0x2df0('0x91')],_0x50c73b),this[_0x2df0('0x89')](_0x1b1b21['end'],_0x50c73b)),_0x7d3c7e=this[_0x2df0('0x2d')](_0x4cf768,_0x20eb75);_0x50c73b[_0x2df0('0xa5')][_0x2df0('0xe6')](_0x4a7abf,_0x4cf768),this[_0x2df0('0xf8')][_0x2df0('0xe6')](_0x4a7abf,_0x7d3c7e);}this[_0x2df0('0xd4')](_0x4b2609,_0x3efbe0,_0x3ec831);}[_0x2df0('0xd4')](_0x506958,_0x3fb1d7,_0x3bcd43){for(const _0x195dd5 of this[_0x2df0('0x4')]['getOperations'](_0x506958,_0x3fb1d7))this[_0x2df0('0x56')](_0x195dd5,_0x3bcd43);for(const _0x43f537 of this[_0x2df0('0x4a')][_0x2df0('0x25')]())_0x43f537['markers']['clear']();for(const [_0x13118e,_0x293fea]of this[_0x2df0('0xf8')]){this[_0x2df0('0x4a')]['get'](_0x293fea[_0x2df0('0x4d')]['rootName'])[_0x2df0('0xa5')][_0x2df0('0xe6')](_0x13118e,_0x293fea[_0x2df0('0x35')]());}const _0x51dd63=new Map(),_0x549b78=new Map();for(const [_0x2dc533,_0x5aeab2]of this[_0x2df0('0x4a')])_0x51dd63[_0x2df0('0xe6')](_0x2dc533,q(_0x5aeab2)),_0x549b78[_0x2df0('0xe6')](_0x2dc533,this['_diffRootsAttributes'][_0x2df0('0x77')](_0x2dc533));this[_0x2df0('0xdb')](_0x3fb1d7,_0x51dd63,this[_0x2df0('0xf8')],_0x549b78);}[_0x2df0('0x9c')](_0x2c20b7){const _0x5405ba=Array[_0x2df0('0xe')](this[_0x2df0('0x51')][_0x2df0('0x31')]());_0x5405ba[_0x2df0('0xcc')]((_0x1eaad2,_0x1bbea7)=>_0x1eaad2-_0x1bbea7),_0x5405ba[_0x2df0('0xb0')]();for(const _0x376e7e of _0x5405ba)if(_0x376e7e<_0x2c20b7)return _0x376e7e;return Number[_0x2df0('0x9b')];}[_0x2df0('0x8')](_0x54356a,_0x1c9f92){const _0xe8552d=Array['from'](_0x1c9f92[_0x2df0('0xa5')])['map'](([_0x160ac4,_0x2a52de])=>[_0x160ac4,this[_0x2df0('0x2d')](_0x2a52de,_0x54356a)]);_0x54356a[_0x2df0('0xa5')]=new Map(_0xe8552d);}[_0x2df0('0x85')](_0x105797){for(const _0x28ddc5 of this[_0x2df0('0xf8')][_0x2df0('0x25')]()){const _0x19eca4=_0x28ddc5['getTransformedByOperation'](_0x105797),_0x1ed320=_0x33e6e5['_createFromRanges'](_0x19eca4);_0x28ddc5[_0x2df0('0x91')]=_0x1ed320[_0x2df0('0x91')],_0x28ddc5['end']=_0x1ed320['end'];}}[_0x2df0('0x56')](_0x5f2d37,_0x200d0a){if(_0x2df0('0x14')==_0x5f2d37[_0x2df0('0xf7')]||_0x2df0('0x86')==_0x5f2d37['type'])return void this['_handleRootOperation'](_0x5f2d37,_0x200d0a);if(_0x2df0('0xb9')==_0x5f2d37[_0x2df0('0xf7')]){const _0x5dd307=_0x5f2d37[_0x2df0('0xd')][_0x2df0('0x4d')]['rootName'];this['_diffRoots'][_0x2df0('0xca')](_0x5dd307)||(this[_0x2df0('0x4a')][_0x2df0('0xe6')](_0x5dd307,G(_0x5dd307,!0x0)),this[_0x2df0('0x104')]['set'](_0x5dd307,{}),_0x200d0a&&this['_idsRoots'][_0x2df0('0xe6')](_0x5dd307,G(_0x5dd307,!0x0)));}else{if(_0x2df0('0xe2')==_0x5f2d37[_0x2df0('0xf7')]||'removeRootAttribute'==_0x5f2d37[_0x2df0('0xf7')]||_0x2df0('0x75')==_0x5f2d37[_0x2df0('0xf7')])return void this['_handleRootAttributeOperation'](_0x5f2d37);}const _0x9de2f9=this[_0x2df0('0x39')](_0x5f2d37,this[_0x2df0('0x4a')]);if(_0x2df0('0xf3')!==_0x5f2d37[_0x2df0('0xf7')]&&(_0x9de2f9[_0x2df0('0xa3')](),this['_transformMarkers'](_0x9de2f9)),_0x200d0a)switch(_0x9de2f9[_0x2df0('0xf7')]){case _0x2df0('0xb9'):this[_0x2df0('0x4e')](_0x5f2d37);break;case _0x2df0('0x6b'):case _0x2df0('0x10'):case'reinsert':this[_0x2df0('0xa')](_0x5f2d37);break;case _0x2df0('0xc3'):this[_0x2df0('0x5d')](_0x5f2d37);break;case _0x2df0('0xa7'):this['_handleSplitOperation'](_0x5f2d37);break;case _0x2df0('0xf3'):this[_0x2df0('0x2c')](_0x5f2d37);}}[_0x2df0('0x39')](_0x2e3197,_0x352386){const _0x16657d=_0x2e3197[_0x2df0('0x35')]();return _0x16657d[_0x2df0('0x64')]=_0x2e3197['_authorId'],this[_0x2df0('0xa2')](_0x16657d,_0x352386),_0x16657d;}[_0x2df0('0x1b')](_0x2bf9c5){return _0x2bf9c5['map'](_0x375fa7=>{const _0x3e14f5=this[_0x2df0('0xe8')](_0x375fa7);return Number(_0x375fa7['item'][_0x2df0('0xff')](_0x3e14f5));});}[_0x2df0('0x4f')](_0xe3add1,_0x53238f){if(_0xe3add1['is']('element',_0x2df0('0x58')))_0x53238f['push']({'item':_0xe3add1,'type':_0x2df0('0xfa')});else{_0xe3add1['is'](_0x2df0('0xa0'))&&_0x53238f[_0x2df0('0x17')]({'item':_0xe3add1,'type':_0x2df0('0xc8')});for(const _0x3b404a of _0xe3add1[_0x2df0('0xe0')]())this[_0x2df0('0x4f')](_0x3b404a,_0x53238f);_0xe3add1['is']('element')&&_0x53238f[_0x2df0('0x17')]({'item':_0xe3add1,'type':'elementEnd'});}return _0x53238f;}[_0x2df0('0xf1')](){const _0x40f303=new Map(this[_0x2df0('0xae')]),_0x96e560=new Map(_0x40f303),_0x5d0cba=new Map(),_0x4e8feb={'insertions':{},'deletions':{}},_0x2ac201={'insertions':{},'deletions':{}},_0x442b07=new Map(),_0x394576=new Set([...this[_0x2df0('0xa4')]['keys'](),...this[_0x2df0('0x4a')][_0x2df0('0x31')]()]);_0x394576['delete'](_0x2df0('0x8a'));for(const _0x4cdb66 of _0x394576){const _0x3801de=this[_0x2df0('0x4a')]['get'](_0x4cdb66)||G(_0x4cdb66,!0x1),_0x38c980=this['_baseRoots']['get'](_0x4cdb66)||G(_0x4cdb66,!0x1);_0x3801de[_0x2df0('0x27')]()||_0x38c980['isAttached']()?(_0x4e8feb[_0x2df0('0x61')][_0x4cdb66]=q(_0x3801de),_0x4e8feb[_0x2df0('0x55')][_0x4cdb66]=q(_0x38c980),this['_copyMarkers'](_0x4e8feb[_0x2df0('0x55')][_0x4cdb66],_0x38c980),this['_copyMarkers'](_0x4e8feb['insertions'][_0x4cdb66],_0x3801de),_0x2ac201[_0x2df0('0x61')][_0x4cdb66]=this[_0x2df0('0x4f')](this[_0x2df0('0x4c')][_0x2df0('0x77')](_0x4cdb66),[]),_0x2ac201['deletions'][_0x4cdb66]=this[_0x2df0('0x4f')](this[_0x2df0('0x59')][_0x2df0('0x77')](_0x4cdb66)||G(_0x4cdb66,!0x1),[])):_0x394576['delete'](_0x4cdb66);}for(const _0x1bb4eb of _0x394576){const _0x1778eb=_0x2ac201['insertions'][_0x1bb4eb];for(const _0x53ef60 of _0x1778eb){const _0x1c52bd=this['_getVidAttributeName'](_0x53ef60),_0x1483ab=_0x53ef60[_0x2df0('0xfd')][_0x2df0('0xff')](_0x1c52bd);_0x96e560[_0x2df0('0x5f')](_0x1483ab),_0x1483ab>=this[_0x2df0('0x43')]&&_0x5d0cba['set'](_0x1483ab,_0x40f303[_0x2df0('0x77')](_0x1483ab));}}for(const _0x30a23f of _0x394576){const _0x242678=_0x2ac201[_0x2df0('0x61')][_0x30a23f],_0x42e8a1=this[_0x2df0('0x1b')](_0x2ac201[_0x2df0('0x55')][_0x30a23f]);let _0x26bbc9=0x0;for(const _0x35c084 of _0x242678){const _0x3ab28b=this[_0x2df0('0xe8')](_0x35c084),_0x4ca58c=_0x35c084[_0x2df0('0xfd')][_0x2df0('0xff')](_0x3ab28b);if(!_0x5d0cba[_0x2df0('0xca')](_0x4ca58c)&&!_0x442b07[_0x2df0('0xca')](_0x4ca58c)){if(_0x96e560[_0x2df0('0xca')](_0x4ca58c))_0x26bbc9++;else{if(_0x4ca58c!=_0x42e8a1[_0x26bbc9]){const _0x1782ea=_0x40f303[_0x2df0('0x77')](_0x4ca58c)||_0x40f303[_0x2df0('0x77')](_0x42e8a1[_0x26bbc9]);for(;_0x4ca58c!=_0x42e8a1[_0x26bbc9];)_0x96e560[_0x2df0('0xca')](_0x42e8a1[_0x26bbc9])||(_0x442b07[_0x2df0('0xe6')](_0x42e8a1[_0x26bbc9],_0x1782ea),_0x40f303[_0x2df0('0xe6')](_0x42e8a1[_0x26bbc9],_0x1782ea)),_0x26bbc9++;}_0x26bbc9++;}}}}for(const _0x210c68 of _0x394576){const _0x3e0b3e=_0x2ac201['insertions'][_0x210c68];for(const _0x56a67a of _0x3e0b3e){const _0x5ec353=this['_getVidAttributeName'](_0x56a67a),_0x31e781=_0x56a67a[_0x2df0('0xfd')]['getAttribute'](_0x5ec353);if(_0x442b07[_0x2df0('0xca')](_0x31e781)){const _0x35e837=_0x442b07[_0x2df0('0x77')](_0x31e781);_0x96e560[_0x2df0('0xca')](_0x31e781)||_0x96e560[_0x2df0('0xe6')](_0x31e781,{..._0x35e837}),_0x5d0cba[_0x2df0('0xe6')](_0x31e781,{..._0x35e837});}}}for(const _0x3a569d of _0x96e560[_0x2df0('0x31')]())_0x3a569d>=this[_0x2df0('0x43')]&&_0x96e560[_0x2df0('0x5f')](_0x3a569d);const _0x26416d=new Map();for(const _0x1e9b71 of _0x394576){let _0x1cacec=_0x2ac201[_0x2df0('0x61')][_0x1e9b71];for(const _0x565c95 of _0x1cacec)if(_0x565c95[_0x2df0('0xfd')]['is'](_0x2df0('0xa0'),'tableCell')){const _0x2ac3c3=this[_0x2df0('0xe8')](_0x565c95),_0x57dfb7=_0x565c95[_0x2df0('0xfd')][_0x2df0('0xff')](_0x2ac3c3);if(_0x5d0cba[_0x2df0('0xca')](_0x57dfb7)){const _0x4150aa=_0x565c95[_0x2df0('0xfd')][_0x2df0('0x3')][_0x2df0('0x3')]['getAttribute'](_0x2df0('0x3d')),_0x3e4075=_0x26416d[_0x2df0('0x77')](_0x4150aa)||new Set();_0x3e4075['add'](_0x5d0cba[_0x2df0('0x77')](_0x57dfb7)[_0x2df0('0x32')]),_0x26416d[_0x2df0('0xe6')](_0x4150aa,_0x3e4075);}}_0x1cacec=_0x2ac201[_0x2df0('0x55')][_0x1e9b71];for(const _0x2a6705 of _0x1cacec)if(_0x2a6705[_0x2df0('0xfd')]['is'](_0x2df0('0xa0'),_0x2df0('0xbc'))){const _0x13cb99=this[_0x2df0('0xe8')](_0x2a6705),_0x3dd159=_0x2a6705[_0x2df0('0xfd')]['getAttribute'](_0x13cb99);if(_0x96e560[_0x2df0('0xca')](_0x3dd159)){const _0x3bdf83=_0x2a6705['item']['parent'][_0x2df0('0x3')][_0x2df0('0xff')](_0x2df0('0x3d')),_0x2b9439=_0x26416d[_0x2df0('0x77')](_0x3bdf83)||new Set();_0x2b9439[_0x2df0('0xcb')](_0x96e560[_0x2df0('0x77')](_0x3dd159)[_0x2df0('0x32')]),_0x26416d[_0x2df0('0xe6')](_0x3bdf83,_0x2b9439);}}for(const _0xc0d668 of _0x26416d[_0x2df0('0x31')]())(_0x5d0cba[_0x2df0('0xca')](_0xc0d668)||_0x96e560[_0x2df0('0xca')](_0xc0d668))&&_0x26416d[_0x2df0('0x5f')](_0xc0d668);}for(const _0x106f80 of _0x394576){const _0x1ac97a=_0x2ac201[_0x2df0('0x61')][_0x106f80];let _0x4888c2=null,_0x21e2ac=null;for(const _0x43f902 of _0x1ac97a){const _0x463ed7=this[_0x2df0('0xe8')](_0x43f902),_0x428d54=_0x43f902[_0x2df0('0xfd')][_0x2df0('0xff')](_0x463ed7),_0x369f17=_0x26416d[_0x2df0('0x77')](_0x428d54);_0x369f17&&_0x2df0('0xc8')==_0x43f902[_0x2df0('0xf7')]&&(_0x4888c2=Array[_0x2df0('0xe')](_0x369f17)[0x0],_0x21e2ac=_0x43f902[_0x2df0('0xfd')][_0x2df0('0xff')](_0x2df0('0xc5'))),_0x4888c2&&(_0x96e560[_0x2df0('0xe6')](_0x428d54,{'userId':_0x4888c2}),_0x5d0cba[_0x2df0('0xe6')](_0x428d54,{'userId':_0x4888c2})),_0x428d54==_0x21e2ac&&(_0x4888c2=null,_0x21e2ac=null);}}const _0x5b6436={},_0x452fd3=new Set();for(const _0x2868af of _0x394576){const _0x140541=_0x4e8feb[_0x2df0('0x55')][_0x2868af],_0xb518=_0x4e8feb[_0x2df0('0x61')][_0x2868af];for(const {userId:_0x4bb32d}of this['_touchedMarkers']['values']())null!==_0x4bb32d&&_0x452fd3[_0x2df0('0xcb')](_0x4bb32d);for(const {userId:_0x3212cd}of this[_0x2df0('0x24')][_0x2df0('0x25')]())null!==_0x3212cd&&_0x452fd3['add'](_0x3212cd);this[_0x2df0('0x54')](_0xb518,_0x2ac201[_0x2df0('0x61')][_0x2868af],_0x5d0cba,_0x2df0('0xb6'),_0x452fd3),this[_0x2df0('0x54')](_0x140541,_0x2ac201[_0x2df0('0x55')][_0x2868af],_0x96e560,_0x2df0('0x8c'),_0x452fd3),_0x5b6436[_0x2868af]={'insertions':this[_0x2df0('0x6e')](_0xb518),'deletions':this[_0x2df0('0x6e')](_0x140541),'attachChange':this[_0x2df0('0x24')][_0x2df0('0x77')](_0x2868af)||null,'attributesBefore':_0xb6b1d8(this[_0x2df0('0x5c')][_0x2df0('0x77')](_0x2868af))||{},'attributesAfter':_0xb6b1d8(this[_0x2df0('0x104')]['get'](_0x2868af))};}return{'diffData':_0x5b6436,'authorsIds':Array[_0x2df0('0xe')](_0x452fd3)};}['_processRootBeforeSave'](_0x2724ed){for(const [,_0xd995c]of _0x2724ed['markers']){const _0x54260c=_0xd995c['start'][_0x2df0('0x53')]()[_0x2df0('0xf5')](_0x3fc0dc=>_0x2df0('0xbc')==_0x3fc0dc[_0x2df0('0x3f')]);for(const _0xdea17d of _0x54260c)0x1==_0xdea17d[_0x2df0('0xb1')]&&_0xdea17d[_0x2df0('0x66')](0x0)['is'](_0x2df0('0xa0'),'paragraph')&&_0xdea17d[_0x2df0('0x66')](0x0)['_setAttribute'](_0x2df0('0x9d'),!0x0);}}[_0x2df0('0x6e')](_0x50a85d){this['_processRootBeforeSave'](_0x50a85d);const _0x3c2e93=this['editor']['data']['toView'](_0x50a85d,{}),_0x3c32b9=Array[_0x2df0('0xe')](_0x3c2e93['getChildren']())[_0x2df0('0xc9')](_0x18325b=>this[_0x2df0('0x9f')](_0x18325b));return JSON[_0x2df0('0x96')](_0x3c32b9);}['_getViewJson'](_0x43fd80){if(_0x43fd80['is'](_0x2df0('0x58')))return _0x43fd80[_0x2df0('0x6d')];{const _0x1890e3=_0x43fd80;return{'type':Object['keys'](B)[_0x2df0('0x60')](_0x3208af=>_0x43fd80 instanceof B[_0x3208af]),'name':_0x1890e3['name'],'attributes':Array[_0x2df0('0xe')](_0x1890e3['getAttributes']()),'children':Array[_0x2df0('0xe')](_0x1890e3[_0x2df0('0xe0')]())[_0x2df0('0xc9')](_0x5cc7a9=>this[_0x2df0('0x9f')](_0x5cc7a9))};}}[_0x2df0('0x54')](_0xae7bb6,_0x3aa500,_0x13ac2b,_0x34c049,_0x2868b8){let _0x3384f4=null,_0x35c164=null,_0x35558f=0x0;const _0x1d04a4=this['editor'][_0x2df0('0x90')];for(let _0x160e9a=0x0;_0x160e9a<_0x3aa500[_0x2df0('0xc')];_0x160e9a++){const _0x94c096=this[_0x2df0('0xe8')](_0x3aa500[_0x160e9a]),_0x3382f4=_0x3aa500[_0x160e9a][_0x2df0('0xfd')]['getAttribute'](_0x94c096),_0x3fa34b=_0x13ac2b[_0x2df0('0x77')](_0x3382f4),_0x1ab988=_0x160e9a==_0x3aa500[_0x2df0('0xc')]-0x1;(!_0x3384f4&&_0x3fa34b&&(_0x3384f4=_0x3fa34b,_0x35c164=_0x3aa500[_0x160e9a]),_0x3384f4&&(!_0x3fa34b||_0x3fa34b[_0x2df0('0x32')]!=_0x3384f4[_0x2df0('0x32')]))&&(_0xb76e29(_0x3fa34b,L(_0x35c164,_0xae7bb6,_0x1d04a4),L(_0x3aa500[_0x160e9a],_0xae7bb6,_0x1d04a4)),_0x3384f4=_0x3fa34b||null,_0x35c164=_0x3fa34b?_0x3aa500[_0x160e9a]:null),_0x3384f4&&_0x1ab988&&_0xb76e29(_0x3fa34b,L(_0x35c164,_0xae7bb6,_0x1d04a4),W(_0x3aa500[_0x160e9a],_0xae7bb6,_0x1d04a4));}function _0xb76e29(_0x489f5b,_0x5c684d,_0x3efd34){const _0x5141a5=_0x3384f4[_0x2df0('0x32')],_0x49170d=_0x2df0('0xfc')+_0x34c049+':'+_0x5141a5+':'+_0x35558f++,_0x1258cf=_0x1d04a4[_0x2df0('0xd5')](_0x5c684d,_0x3efd34);_0xae7bb6[_0x2df0('0xa5')][_0x2df0('0xe6')](_0x49170d,_0x1258cf),null!==_0x5141a5&&_0x2868b8['add'](_0x5141a5);}}[_0x2df0('0xe8')](_0x25f59a){switch(_0x25f59a[_0x2df0('0xf7')]){case'elementStart':return'vid_start';case'elementEnd':return _0x2df0('0xc5');default:return _0x2df0('0xaa');}}[_0x2df0('0xa2')](_0x5b21dc,_0x442971){_0x5b21dc[_0x2df0('0x8b')]=null;for(const _0x3e663f in _0x5b21dc){const _0x1f7090=_0x5b21dc[_0x3e663f];if(_0x1f7090 instanceof _0x526c47){const _0x4687c2=_0x442971[_0x2df0('0x77')](_0x1f7090['root'][_0x2df0('0xd2')]);_0x5b21dc[_0x3e663f]=this[_0x2df0('0x89')](_0x1f7090,_0x4687c2);}if(_0x1f7090 instanceof _0x33e6e5){const _0x21916c=_0x442971['get'](_0x1f7090[_0x2df0('0x4d')][_0x2df0('0xd2')]);_0x5b21dc[_0x3e663f]=this[_0x2df0('0x2d')](_0x1f7090,_0x21916c);}_0x2df0('0x4d')===_0x3e663f&&(_0x5b21dc['root']=_0x442971[_0x2df0('0x77')](_0x5b21dc[_0x2df0('0x4d')][_0x2df0('0xd2')]));}}[_0x2df0('0x2d')](_0x22591f,_0x34b8c9){return this[_0x2df0('0x36')][_0x2df0('0x90')][_0x2df0('0xd5')](this[_0x2df0('0x89')](_0x22591f[_0x2df0('0x91')],_0x34b8c9),this['_fixPosition'](_0x22591f[_0x2df0('0x78')],_0x34b8c9));}[_0x2df0('0x89')](_0x124383,_0x1a9196){return this[_0x2df0('0x36')][_0x2df0('0x90')][_0x2df0('0x1f')](_0x1a9196,_0x124383[_0x2df0('0xd7')],_0x124383[_0x2df0('0x92')]);}[_0x2df0('0x4e')](_0x57118e){const _0x66ca91=this[_0x2df0('0x4c')][_0x2df0('0x77')](_0x57118e[_0x2df0('0xd')]['root'][_0x2df0('0xd2')]),_0x44cef2=this['_fixPosition'](_0x57118e[_0x2df0('0xd')],_0x66ca91),_0xfbf204=null===_0x57118e['_authorId']?null:_0x57118e[_0x2df0('0x64')]||this[_0x2df0('0x36')]['plugins'][_0x2df0('0x77')](_0x2df0('0xeb'))['me']['id'],_0x460938=_0x44cef2[_0x2df0('0x3')],_0x15536d=this['_revisionId'],_0x1bbe09=[];for(const _0x560add of _0x57118e[_0x2df0('0xec')])if(_0x560add['is'](_0x2df0('0xa0')))_0x1bbe09[_0x2df0('0x17')](this[_0x2df0('0x8e')](_0x560add));else for(let _0x6e9f21=0x0;_0x6e9f21<_0x560add[_0x2df0('0xe4')];_0x6e9f21++)_0x1bbe09[_0x2df0('0x17')](new _0x772d8e(_0x2df0('0x58'),{'vid':this[_0x2df0('0xcf')]++}));const _0xf1d29a=this[_0x2df0('0xcf')];for(let _0x26c144=_0x15536d;_0x26c144<_0xf1d29a;_0x26c144++)this[_0x2df0('0xae')][_0x2df0('0xe6')](_0x26c144,{'userId':_0xfbf204});_0x460938[_0x2df0('0xc7')](_0x44cef2[_0x2df0('0x88')],_0x1bbe09);}[_0x2df0('0xa')](_0x3d888b){(_0x3d888b=this[_0x2df0('0x39')](_0x3d888b,this['_idsRoots']))[_0x2df0('0xa3')]();const _0x160b67=null===_0x3d888b[_0x2df0('0x64')]?null:_0x3d888b[_0x2df0('0x64')]||this[_0x2df0('0x36')][_0x2df0('0x99')]['get'](_0x2df0('0xeb'))['me']['id'],_0x4f17cc=_0x3d888b[_0x2df0('0xda')](),_0x3cf4f0=_0x4f17cc[_0x2df0('0x3')],_0x2dcbf5=_0x4f17cc[_0x2df0('0x88')];!function _0x2d9c29(_0x5f410e,_0x53ac8d,_0x16e6e0,_0x3c369a){for(let _0x2dec6a=_0x16e6e0;_0x2dec6a<_0x3c369a;_0x2dec6a++){const _0x1523ee=_0x53ac8d[_0x2df0('0x66')](_0x2dec6a);_0x1523ee['is']('element',_0x2df0('0x58'))?_0x5f410e[_0x2df0('0xe6')](_0x1523ee[_0x2df0('0xff')](_0x2df0('0xaa')),{'userId':_0x160b67}):(_0x5f410e['set'](_0x1523ee[_0x2df0('0xff')](_0x2df0('0x3d')),{'userId':_0x160b67}),_0x2d9c29(_0x5f410e,_0x1523ee,0x0,_0x1523ee[_0x2df0('0xb1')]),_0x5f410e['set'](_0x1523ee[_0x2df0('0xff')](_0x2df0('0xc5')),{'userId':_0x160b67}));}}(this[_0x2df0('0xae')],_0x3cf4f0,_0x2dcbf5,_0x2dcbf5+_0x3d888b[_0x2df0('0x7a')]);}[_0x2df0('0x5d')](_0x364160){const _0x2cddb8=null===(_0x364160=this[_0x2df0('0x39')](_0x364160,this[_0x2df0('0x4c')]))[_0x2df0('0x64')]?null:_0x364160[_0x2df0('0x64')]||this[_0x2df0('0x36')]['plugins']['get'](_0x2df0('0xeb'))['me']['id'],_0x1b4318=_0x364160['targetPosition']['parent'],_0x4a96cf=_0x364160[_0x2df0('0x52')]['parent'],_0x11764c=_0x1b4318[_0x2df0('0xff')](_0x2df0('0xc5')),_0x35540b=_0x4a96cf['getAttribute']('vid_start');_0x1b4318[_0x2df0('0xa8')]('vid_end',_0x4a96cf['getAttribute'](_0x2df0('0xc5'))),_0x4a96cf[_0x2df0('0xa8')](_0x2df0('0xc5'),_0x11764c),this['_touched']['set'](_0x35540b,{'userId':_0x2cddb8}),this[_0x2df0('0xae')][_0x2df0('0xe6')](_0x11764c,{'userId':_0x2cddb8}),_0x364160['_execute']();}[_0x2df0('0x103')](_0x10bfcd){const _0x5437d7=null===(_0x10bfcd=this[_0x2df0('0x39')](_0x10bfcd,this[_0x2df0('0x4c')]))[_0x2df0('0x64')]?null:_0x10bfcd['_authorId']||this[_0x2df0('0x36')][_0x2df0('0x99')][_0x2df0('0x77')](_0x2df0('0xeb'))['me']['id'],_0xf36512=_0x10bfcd[_0x2df0('0xf0')],_0x369e09=_0x10bfcd[_0x2df0('0xe1')][_0x2df0('0x3')];_0x10bfcd[_0x2df0('0xa3')]();const _0x45d348=_0x369e09['getAttribute'](_0x2df0('0xc5')),_0x2b7875=_0x10bfcd[_0x2df0('0x19')][_0x2df0('0x6a')];if(_0xf36512){const _0x411c80=_0x2b7875[_0x2df0('0xff')]('vid_end'),_0x4aa89a=_0x369e09[_0x2df0('0xff')](_0x2df0('0xc5'));_0x369e09['_setAttribute'](_0x2df0('0xc5'),_0x411c80),_0x2b7875[_0x2df0('0xa8')]('vid_end',_0x4aa89a),this[_0x2df0('0xae')][_0x2df0('0xe6')](_0x369e09[_0x2df0('0xff')](_0x2df0('0xc5')),{'userId':_0x5437d7}),this['_touched'][_0x2df0('0xe6')](_0x2b7875[_0x2df0('0xff')](_0x2df0('0x3d')),{'userId':_0x5437d7});}else{const _0xb2cb1=this[_0x2df0('0xcf')]++,_0x3b6b7b=this[_0x2df0('0xcf')]++;_0x369e09[_0x2df0('0xa8')](_0x2df0('0xc5'),_0xb2cb1),_0x2b7875[_0x2df0('0xa8')](_0x2df0('0x3d'),_0x3b6b7b),_0x2b7875[_0x2df0('0xa8')](_0x2df0('0xc5'),_0x45d348),this[_0x2df0('0xae')][_0x2df0('0xe6')](_0xb2cb1,{'userId':_0x5437d7}),this[_0x2df0('0xae')][_0x2df0('0xe6')](_0x3b6b7b,{'userId':_0x5437d7});}}[_0x2df0('0x2c')](_0x3751af){if(!_0x3751af['affectsData'])return;const _0x553f06=(_0x3751af=this[_0x2df0('0x39')](_0x3751af,this[_0x2df0('0x4a')]))[_0x2df0('0xce')]?_0x3751af[_0x2df0('0xce')][_0x2df0('0x4d')]:null,_0x27c7f2=_0x3751af[_0x2df0('0x47')]?_0x3751af[_0x2df0('0x47')]['root']:null;_0x553f06&&this[_0x2df0('0xf8')]['delete'](_0x3751af[_0x2df0('0x3f')]),_0x27c7f2&&this[_0x2df0('0xf8')][_0x2df0('0xe6')](_0x3751af[_0x2df0('0x3f')],_0x3751af[_0x2df0('0x47')]['clone']());const _0x173bb4=null===_0x3751af[_0x2df0('0x64')]?null:_0x3751af[_0x2df0('0x64')]||this[_0x2df0('0x36')][_0x2df0('0x99')][_0x2df0('0x77')]('Users')['me']['id'],_0x7578f4=_0x3751af[_0x2df0('0x3f')];if(!this[_0x2df0('0xb8')][_0x2df0('0xca')](_0x7578f4))return void this[_0x2df0('0xb8')][_0x2df0('0xe6')](_0x7578f4,{'range':_0x3751af[_0x2df0('0xce')],'userId':_0x173bb4});const _0x568df1=this[_0x2df0('0xb8')][_0x2df0('0x77')](_0x7578f4),_0x3455b3=_0x568df1[_0x2df0('0xf6')],_0x1e19a5=_0x3751af[_0x2df0('0x47')];null==_0x3455b3&&null==_0x1e19a5||_0x3455b3&&_0x1e19a5&&_0x3455b3[_0x2df0('0x9e')](_0x1e19a5)?this[_0x2df0('0xb8')][_0x2df0('0x5f')](_0x3751af[_0x2df0('0x3f')]):_0x568df1[_0x2df0('0x32')]=_0x173bb4;}[_0x2df0('0x46')](_0x2c4449,_0x3151af){this[_0x2df0('0x4a')][_0x2df0('0xca')](_0x2c4449['rootName'])?this[_0x2df0('0x4a')]['get'](_0x2c4449[_0x2df0('0xd2')])[_0x2df0('0xac')]=_0x2c4449[_0x2df0('0x62')]:(this[_0x2df0('0x4a')][_0x2df0('0xe6')](_0x2c4449[_0x2df0('0xd2')],G(_0x2c4449[_0x2df0('0xd2')],!0x0)),this['_diffRootsAttributes']['set'](_0x2c4449[_0x2df0('0xd2')],{}),_0x3151af&&this['_idsRoots'][_0x2df0('0xe6')](_0x2c4449[_0x2df0('0xd2')],G(_0x2c4449['rootName'],!0x0)));const _0x3ece76=null===_0x2c4449[_0x2df0('0x64')]?null:_0x2c4449[_0x2df0('0x64')]||this[_0x2df0('0x36')][_0x2df0('0x99')][_0x2df0('0x77')](_0x2df0('0xeb'))['me']['id'],_0x12ef6d=this[_0x2df0('0x24')][_0x2df0('0x77')](_0x2c4449[_0x2df0('0xd2')]);_0x12ef6d&&_0x12ef6d[_0x2df0('0x32')]===_0x3ece76?this[_0x2df0('0x24')]['delete'](_0x2c4449[_0x2df0('0xd2')]):this['_touchedRoots']['set'](_0x2c4449['rootName'],{'userId':_0x3ece76,'isAttached':_0x2c4449['isAdd']});}[_0x2df0('0x8f')](_0x731db4){const _0x138b7e=this[_0x2df0('0x104')][_0x2df0('0x77')](_0x731db4[_0x2df0('0x4d')][_0x2df0('0xd2')]);null===_0x731db4['newValue']?delete _0x138b7e[_0x731db4[_0x2df0('0xd3')]]:_0x138b7e[_0x731db4[_0x2df0('0xd3')]]=_0x731db4[_0x2df0('0x81')];}}function q(_0x15f3f4){const _0x3f1371=G(_0x15f3f4[_0x2df0('0xd2')],_0x15f3f4[_0x2df0('0x27')]());for(const _0x218c04 of _0x15f3f4['getChildren']()){const _0x2fb175=_0x218c04[_0x2df0('0x7d')](!0x0);_0x3f1371[_0x2df0('0xb3')](_0x2fb175);}return _0x3f1371;}function G(_0x4a1b9c,_0x19b911=!0x0){const _0x1d2dfd=new _0x55a33d();return _0x1d2dfd[_0x2df0('0xd2')]=_0x4a1b9c,_0x1d2dfd['_isAttached']=_0x19b911,_0x1d2dfd[_0x2df0('0x27')]=()=>_0x1d2dfd['_isAttached'],_0x1d2dfd;}function L(_0x11a31b,_0x4ae9d5,_0x5f23e8){const _0x53d8f9=_0x2df0('0xb5')==_0x11a31b[_0x2df0('0xf7')]?_0x5f23e8[_0x2df0('0x2f')](_0x11a31b['item'],_0x2df0('0x78')):_0x5f23e8[_0x2df0('0x84')](_0x11a31b[_0x2df0('0xfd')]);return _0x5f23e8['createPositionFromPath'](_0x4ae9d5,_0x53d8f9[_0x2df0('0xd7')],_0x53d8f9[_0x2df0('0x92')]);}function W(_0x4e1ddc,_0x25a2df,_0x4cedd7){const _0x34f00e=_0x2df0('0xc8')==_0x4e1ddc[_0x2df0('0xf7')]?_0x4cedd7[_0x2df0('0x2f')](_0x4e1ddc[_0x2df0('0xfd')],0x0):_0x4cedd7['createPositionAfter'](_0x4e1ddc[_0x2df0('0xfd')]);return _0x4cedd7[_0x2df0('0x1f')](_0x25a2df,_0x34f00e['path'],_0x34f00e[_0x2df0('0x92')]);}
|
|
23
|
+
const _0x32dc=['clear','_markChanges','_replaceEditorDataWithRevisionData','_handleOperation','resolve','getTime','_handleMoveOperation','rootsAttributes','userId','createPositionAt','_prepareViewToSave','createdAt','getAttributes','getRoot','getChildren','_initialRevisionId','adapter','_update','sendBufferedUpdates','offsetSize','_getPreviousFrom','_operations','_handleRootAttributeOperation','repository','_createCurrentRevision','_fixRange','detachRoot','_findInsertionIndex','_transformMarkers','_setConversion','_revisionDataBuilder','getWalker','delete','from','_continueCurrentRevision','useFillerType','revision','merge','init','for','conversion','createPositionFromPath','elementEnd','parent','getNodeByPath','_bufferUpdate','_generateTape','getRevisions','children','define','view','getRevisionRootsAttributes','affectsData','insert','_idsRoots','getAttribute','vid_end','splitPosition','_getState','vid','updateRevisions','stickiness','config','getTransformedByOperation','position','_loadState','paragraph','_removeMetaData','howMany','Initial\x20revision','dataDowncast','setRevisionData','_createFromRanges','_handleMergeOperation','element','_lastTo','root','_revisionId','_loadedStateData','shift','name','dataToMarker','_handleInsertOperation','_getViewJson','buildRevisionData','_makeIdsRoot','_makeModelFromViewString','creator','revisionHistory.resumeUnsavedRevision','item','editor-initial-data-replaced-with-revision-data','push','move','childCount','PendingActions','data','_pendingAction','path','markers','NEGATIVE_INFINITY','add','saveRevision','_getFromVersion','diffData','_isPendingUpdate','map','tableCell','_bufferedUpdates','startsWith','remove','filter','fromVersion','has','_cloneOperation','PENDING_ACTION_REVISION_HISTORY','getRevision','_reset','createRevision','createRangeIn','nodeAfter','_calculateMetaData','processor','_handleSplitOperation','$text','previousPosition','clone','toModel','collaboration.channelId','_baseRootsAttributes','_applyOperations','then','get','some','start','isAdd','RevisionTracker','trim','finally','_getBaseVids','version','forEach','locale','reinsert','_createInitialRevision','changeRootAttribute','_getVidAttributeName','pluginName','createRange','oldRange','marker','_markers','slice','toView','string','RevisionsRepository','currentRevision','newRange','getAncestors','_lastFrom','_baseIdsRoots','initial','_authorId','elementStart','set','_setAttribute','createPositionAfter','deletions','getCurrentRevisionId','marked','_processRootBeforeSave','isAttached','addRevision','_removeRevisionMarkers','addRevisionData','isEqual','_execute','baseVersion','newValue','attributesAfter','isReady','end','Users','insertions','data-revision-','RealTimeCollaborationClient','documentFragment','size','_savedMetaData','getOperations','_fixOperation','getRange','attributes','attributesBefore','nodes','addRoot','_makeRevision','graveyardPosition','getLatestVersion','_diffRoots','getData','_isInit','markerToData','authors','attachChange','$graveyard','editing','revision:','fromEntries','toVersion','sort','_touched','length','_startingRevisionId','find','toData','split','ready','creatorId','addRootAttribute','source','getMovedRangeStart','document','offset','_saveMetaData','_startingVersion','key','_handleRootOperation','reverse','rootName','_source','_insertChild','_diffRootsAttributes','_touchedRoots','insertion','max','requires','getChild','_touchedMarkers','_fixPosition','Empty\x20document','getUser','createPositionBefore','getRootNames','model','_copyMarkers','getIndex','editor','text','authorsIds','_handleMarkerOperation','values','_appendChild','plugins','_loadRevisionData','initialData','vid_start','keys','_removePendingAction','_isAttached','sourcePosition','type','roots','_baseRoots','history','targetPosition'];(function(_0x6d8727,_0x32dc1e){const _0x43db27=function(_0x4cb935){while(--_0x4cb935){_0x6d8727['push'](_0x6d8727['shift']());}};_0x43db27(++_0x32dc1e);}(_0x32dc,0x80));const _0x43db=function(_0x6d8727,_0x32dc1e){_0x6d8727=_0x6d8727-0x0;let _0x43db27=_0x32dc[_0x6d8727];return _0x43db27;};import{Users as _0x4091a0}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x11f7c4,PendingActions as _0x396dae}from'ckeditor5/src/core';import{logWarning as _0x4a7d27,uid as _0x2b7610}from'ckeditor5/src/utils';import{Position as _0x3383ab,Range as _0x597f93,Element as _0x2e625b,DocumentFragment as _0xb8f1b,ViewText as _0x445914,ViewElement as _0x32d350,ViewContainerElement as _0xe39ad3,ViewAttributeElement as _0x4d6115,ViewEmptyElement as _0x46bff7,ViewRawElement as _0x118db4,ViewUIElement as _0x1dce06,ViewDocumentFragment as _0x2fe0a2}from'ckeditor5/src/engine';import _0x537bec from'./revisionsrepository';import{getTranslation as _0x1cd322}from'./utils/common-translations';import{cloneDeep as _0x3c0375,isEqual as _0x22c6f6}from'lodash-es';const B={'c':_0xe39ad3,'a':_0x4d6115,'e':_0x46bff7,'r':_0x118db4,'u':_0x1dce06};export default class l extends _0x11f7c4{static get[_0x43db('0x12')](){return _0x43db('0x7');}static get[_0x43db('0x6b')](){return[_0x4091a0,_0x537bec,_0x396dae];}constructor(_0x5734d8){super(_0x5734d8),this['adapter']=null,this[_0x43db('0x1b')]=null,this[_0x43db('0xa7')]=new H(this[_0x43db('0x76')]),this[_0x43db('0x98')]=this[_0x43db('0x76')][_0x43db('0xc7')][_0x43db('0x3')]('collaboration.channelId')||_0x43db('0x20'),this[_0x43db('0xf4')]=new Map(),this[_0x43db('0xd7')]=null;const _0x22f0bf=_0x2b7610();this[_0x43db('0x65')]={'history':this[_0x43db('0x76')]['model'][_0x43db('0x5d')]['history'],'getLatestVersion':()=>Promise[_0x43db('0x8d')](this[_0x43db('0x76')][_0x43db('0x73')][_0x43db('0x5d')][_0x43db('0xb')]),'getCurrentRevisionId':()=>_0x22f0bf},this['set']('isReady',!0x1),this[_0x43db('0x23')]('isEnabled',!0x0),this['set'](_0x43db('0xf1'),!0x1),this['editor'][_0x43db('0xc7')][_0x43db('0xba')](_0x43db('0xe1'),!0x0),this[_0x43db('0x76')][_0x43db('0xb1')][_0x43db('0xb0')]('upcast')[_0x43db('0xda')]({'view':'revision'});}[_0x43db('0xaf')](){this['repository']=this[_0x43db('0x76')][_0x43db('0x7c')][_0x43db('0x3')](_0x43db('0x1a')),this[_0x43db('0xa6')](),this[_0x43db('0x76')]['data']['on'](_0x43db('0x58'),()=>{const _0x405924=this['repository'][_0x43db('0xfc')](0x0),_0x1c9bdf=_0x405924&&null===_0x405924['creator']?_0x405924:null;if(this[_0x43db('0xab')]=!!_0x1c9bdf&&this[_0x43db('0x76')][_0x43db('0xc7')]['get'](_0x43db('0xe1')),this[_0x43db('0x76')][_0x43db('0x7c')][_0x43db('0xf9')](_0x43db('0x38'))){const _0x1b765f=this[_0x43db('0x65')][_0x43db('0x27')](),_0x2656c0=this[_0x43db('0xa0')][_0x43db('0xfc')](_0x1b765f);if(_0x2656c0)this[_0x43db('0x60')]=_0x2656c0['fromVersion'],this[_0x43db('0xab')]=!0x1;else{const _0x53c046=this[_0x43db('0x65')][_0x43db('0x87')][_0x43db('0x9e')][_0x43db('0x55')](_0x3867cc=>!_0x3867cc[_0x43db('0x48')]),_0x3a035e=_0x53c046?_0x53c046[_0x43db('0x30')]:this[_0x43db('0x65')][_0x43db('0x87')][_0x43db('0xb')];_0x405924?(_0x405924[_0x43db('0x50')]<_0x3a035e&&_0x405924['_update']({'toVersion':_0x3a035e}),this[_0x43db('0xab')]?(this[_0x43db('0x65')]['getCurrentRevisionId']=()=>_0x1c9bdf['id'],this[_0x43db('0x60')]=_0x1c9bdf['fromVersion']):(this[_0x43db('0x60')]=_0x405924[_0x43db('0x50')],this[_0x43db('0xab')]=!0x1)):(this[_0x43db('0x60')]=_0x3a035e,this[_0x43db('0xab')]=!0x1);}}else _0x1c9bdf&&(this[_0x43db('0x76')][_0x43db('0x73')][_0x43db('0x5d')][_0x43db('0x87')][_0x43db('0xb')]=Math[_0x43db('0x6a')](_0x1c9bdf['toVersion'],this['editor'][_0x43db('0x73')][_0x43db('0x5d')][_0x43db('0x87')][_0x43db('0xb')]),_0x1c9bdf[_0x43db('0xf8')]===_0x1c9bdf[_0x43db('0x50')]?(0x0!==_0x1c9bdf[_0x43db('0xf8')]&&(this[_0x43db('0x65')][_0x43db('0x27')]=()=>_0x1c9bdf['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this[_0x43db('0x65')][_0x43db('0x27')]=()=>_0x1c9bdf['id'],this[_0x43db('0x60')]=_0x1c9bdf[_0x43db('0xf8')])),this['_continueCurrentRevision']||(this[_0x43db('0x60')]=this[_0x43db('0x76')][_0x43db('0x73')]['document']['version']);this[_0x43db('0xa7')][_0x43db('0xaf')](this[_0x43db('0x65')][_0x43db('0x87')]),this[_0x43db('0xf')](this[_0x43db('0x60')]),this[_0x43db('0xa1')](this[_0x43db('0x60')]),this[_0x43db('0x99')]&&this[_0x43db('0x9b')]();}),this['bind'](_0x43db('0x33'))['to'](this,_0x43db('0xf1'),_0x514221=>!_0x514221);}async['afterInit'](){if(this[_0x43db('0xa0')][_0x43db('0x53')]>0x0){const _0x65c64f=this[_0x43db('0xa0')][_0x43db('0xfc')](0x0),_0x56facf=await this['getRevisionDocumentData'](_0x65c64f),_0x47e1e8=await this[_0x43db('0xbc')](_0x65c64f);this[_0x43db('0x8b')](_0x56facf,_0x47e1e8);}}['setSource'](_0x29b033){this[_0x43db('0x65')]=_0x29b033;}async['update'](){const _0x3aa77f=await this[_0x43db('0x65')][_0x43db('0x45')]();if(_0x3aa77f>this['currentRevision'][_0x43db('0x50')]){await this[_0x43db('0xca')]();const _0x7a4d24=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3aa77f});_0x7a4d24['authors']=_0x7a4d24[_0x43db('0x78')][_0x43db('0xf2')](_0x552d83=>this['editor'][_0x43db('0x7c')][_0x43db('0x3')](_0x43db('0x35'))[_0x43db('0x70')](_0x552d83)),this[_0x43db('0x1b')][_0x43db('0x9a')](_0x7a4d24);}}async[_0x43db('0xca')](){this[_0x43db('0xab')]&&!this[_0x43db('0xd7')]&&(await this['_loadRevisionData'](this[_0x43db('0x1b')]),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this[_0x43db('0xd7')]={'fromVersion':this[_0x43db('0x1b')][_0x43db('0xf8')],'authors':this[_0x43db('0x1b')][_0x43db('0x4a')][_0x43db('0x17')]()});}async[_0x43db('0xee')](_0x56af07={},_0x45acdf=null){const _0x42c68d=[];await this[_0x43db('0xca')](),this[_0x43db('0xab')]=!0x1,_0x45acdf>this[_0x43db('0x1b')][_0x43db('0x50')]&&(_0x45acdf=null),null===_0x45acdf&&(_0x45acdf=await this[_0x43db('0x65')][_0x43db('0x45')]());const _0x290e2b=this[_0x43db('0xef')](_0x45acdf),_0x35fb88=this[_0x43db('0xdd')]({'from':_0x290e2b,'to':_0x45acdf});if(this[_0x43db('0x1b')][_0x43db('0x50')]<_0x45acdf){const _0x2c60db=this['buildRevisionData']({'revision':this[_0x43db('0x1b')],'from':_0x45acdf,'to':_0x45acdf});_0x2c60db[_0x43db('0x4a')]=[],_0x2c60db[_0x43db('0x78')]=[],_0x2c60db['id']=this[_0x43db('0x1b')]['id'],this[_0x43db('0x1b')][_0x43db('0x9a')](_0x2c60db,!0x0),delete _0x2c60db[_0x43db('0x4a')],_0x42c68d[_0x43db('0xe4')](_0x2c60db);}_0x56af07[_0x43db('0x59')]=this['editor']['plugins'][_0x43db('0x3')](_0x43db('0x35'))['me']['id'],_0x56af07['name']=_0x56af07[_0x43db('0xd9')]||null,_0x56af07['id']=_0x56af07['id']||_0x2b7610(),_0x56af07={..._0x56af07,..._0x35fb88};const _0x29a7d8=this[_0x43db('0x2d')](_0x56af07);_0x42c68d[_0x43db('0xe4')](_0x56af07);const _0x351ca2=this[_0x43db('0xa0')][_0x43db('0x75')](_0x29a7d8);if(0x0!==_0x351ca2){const _0x1d8c86=this['repository'][_0x43db('0xfc')](_0x351ca2-0x1);if(_0x1d8c86[_0x43db('0xf8')]!==_0x45acdf){const _0x2cba84=this['_revisionDataBuilder'][_0x43db('0x47')](_0x45acdf,_0x1d8c86[_0x43db('0x50')]),_0x395de8={'id':_0x1d8c86['id'],'diffData':_0x2cba84['diffData'],'authorsIds':_0x2cba84[_0x43db('0x78')],'authors':_0x2cba84[_0x43db('0x78')]['map'](_0x3d9ae8=>this['editor']['plugins'][_0x43db('0x3')](_0x43db('0x35'))[_0x43db('0x70')](_0x3d9ae8)),'fromVersion':_0x45acdf};_0x1d8c86===this[_0x43db('0x1b')]&&(_0x395de8['createdAt']=new Date(_0x56af07[_0x43db('0x94')][_0x43db('0x8e')]()+0xa)),_0x1d8c86[_0x43db('0x9a')](_0x395de8,!0x0),delete _0x395de8[_0x43db('0x4a')],_0x42c68d[_0x43db('0xe4')](_0x395de8);}}if(this[_0x43db('0x99')]){for(const _0x55cec1 of _0x42c68d)this[_0x43db('0xb6')](_0x55cec1['id'],_0x55cec1,!0x0);this[_0x43db('0x9b')]();}return _0x29a7d8;}[_0x43db('0x2d')](_0x5c96ea){const _0x26401c=this[_0x43db('0xa0')][_0x43db('0xfe')](_0x5c96ea);return this['adapter']&&_0x26401c['on'](_0x43db('0x9a'),(_0x5b7655,_0x13cd1e,_0x2609f7)=>{_0x2609f7||(this[_0x43db('0xb6')](_0x13cd1e['id'],_0x13cd1e,!0x0),this[_0x43db('0x9b')]());}),this['repository'][_0x43db('0x2b')](_0x26401c,this[_0x43db('0xa4')](_0x26401c)),_0x26401c;}async['getRevisionDocumentData'](_0x1d94ce){await this['_loadRevisionData'](_0x1d94ce);const _0x2468aa={};for(const _0x33f40f in _0x1d94ce['diffData']){if(_0x1d94ce[_0x43db('0xf0')][_0x33f40f]['attachChange']&&!_0x1d94ce[_0x43db('0xf0')][_0x33f40f][_0x43db('0x4b')][_0x43db('0x2a')])continue;const _0x1eb893=this[_0x43db('0x2c')](JSON['parse'](_0x1d94ce[_0x43db('0xf0')][_0x33f40f][_0x43db('0x36')])),_0x33a43f=this[_0x43db('0x76')][_0x43db('0x4d')][_0x43db('0xbb')][_0x43db('0x5d')],_0x430679=new _0x2fe0a2(_0x33a43f,_0x1eb893[_0x43db('0xf2')](_0x26bff4=>J(_0x26bff4,this[_0x43db('0x76')])));this[_0x43db('0x76')][_0x43db('0xe8')][_0x43db('0x102')]['useFillerType'](_0x43db('0x28')),_0x2468aa[_0x33f40f]=this[_0x43db('0x76')]['data'][_0x43db('0x102')][_0x43db('0x56')](_0x430679),this['editor'][_0x43db('0xe8')][_0x43db('0x102')][_0x43db('0xac')]('default');}return _0x2468aa;}async[_0x43db('0xbc')](_0x19483a){await this[_0x43db('0x7d')](_0x19483a);const _0x5545b6={};for(const _0x5bb02d in _0x19483a[_0x43db('0xf0')])_0x19483a['diffData'][_0x5bb02d]['attachChange']&&!_0x19483a['diffData'][_0x5bb02d][_0x43db('0x4b')][_0x43db('0x2a')]||(_0x5545b6[_0x5bb02d]=_0x19483a[_0x43db('0xf0')][_0x5bb02d][_0x43db('0x32')]||{});return _0x5545b6;}[_0x43db('0x9b')](){if(0x0===this[_0x43db('0xf4')][_0x43db('0x3a')])return;if(this['_isPendingUpdate'])return;let _0x35655e=Array[_0x43db('0xaa')](this['_bufferedUpdates'][_0x43db('0x7a')]());this[_0x43db('0xf4')][_0x43db('0x89')]();for(let _0x5a2f35=0x0;_0x5a2f35<_0x35655e['length'];_0x5a2f35++){const _0x801c92=_0x35655e[_0x5a2f35];let _0x33b645=!0x1;for(const _0x5035f3 of Object[_0x43db('0x80')](_0x801c92))void 0x0===_0x801c92[_0x5035f3]?delete _0x801c92[_0x5035f3]:'id'!==_0x5035f3&&(_0x33b645=!0x0);_0x33b645||(_0x35655e[_0x5a2f35]=null);}if(_0x35655e=_0x35655e[_0x43db('0xf7')](_0x135171=>null!==_0x135171),!_0x35655e['length'])return;for(let _0x224f33=0x0;_0x224f33<_0x35655e[_0x43db('0x53')];_0x224f33++){const _0xf90dd9=_0x35655e[_0x224f33];void 0x0!==_0xf90dd9['fromVersion']&&void 0x0===_0xf90dd9['toVersion']&&(_0xf90dd9[_0x43db('0x50')]=this[_0x43db('0xa0')][_0x43db('0xfc')](_0xf90dd9['id'])[_0x43db('0x50')]),void 0x0!==_0xf90dd9['toVersion']&&void 0x0===_0xf90dd9[_0x43db('0xf8')]&&(_0xf90dd9[_0x43db('0xf8')]=this['repository'][_0x43db('0xfc')](_0xf90dd9['id'])['fromVersion']);}const _0x5e96eb=this['editor'][_0x43db('0xc7')][_0x43db('0x3')](_0x43db('0x108'));this[_0x43db('0xf1')]=!0x0,this['_addPendingAction'](),this['adapter'][_0x43db('0xc5')](_0x35655e,_0x5e96eb)[_0x43db('0x9')](()=>{this['_isPendingUpdate']=!0x1;})[_0x43db('0x2')](_0x189b6b=>{if(_0x189b6b)for(const _0x925010 of _0x189b6b)this[_0x43db('0xd0')]({'id':_0x925010['id'],'createdAt':_0x925010[_0x43db('0x94')]});this[_0x43db('0x81')](),this['sendBufferedUpdates']();});}[_0x43db('0x8b')](_0x3df60c,_0x20ba35){let _0x59feb5=this[_0x43db('0x76')][_0x43db('0xc7')][_0x43db('0x3')](_0x43db('0x7e')),_0x52fe41=this['editor'][_0x43db('0xc7')]['get'](_0x43db('0x90'));if(void 0x0===_0x59feb5){_0x59feb5={};for(const _0x4d16e2 of this[_0x43db('0x76')][_0x43db('0x73')][_0x43db('0x5d')]['getRootNames']())_0x59feb5[_0x4d16e2]='';}if(_0x43db('0x19')==typeof _0x59feb5&&(_0x59feb5={'main':_0x59feb5}),void 0x0===_0x52fe41){_0x52fe41={};for(const _0x5a305b of this[_0x43db('0x76')]['model'][_0x43db('0x5d')][_0x43db('0x72')]())_0x52fe41[_0x5a305b]={};}let _0x41ea82=!0x1;const _0x2e7d76=Object[_0x43db('0x80')](_0x59feb5),_0x71051d=Object[_0x43db('0x80')](_0x3df60c);for(const _0x44d838 of _0x2e7d76){if(_0x59feb5[_0x44d838]!==_0x3df60c[_0x44d838]&&''!==_0x59feb5[_0x44d838][_0x43db('0x8')]()){_0x41ea82=!0x0;break;}if(!_0x22c6f6(_0x52fe41[_0x44d838],_0x20ba35[_0x44d838])&&Object[_0x43db('0x80')](_0x52fe41[_0x44d838])['length']>0x0){_0x41ea82=!0x0;break;}}_0x41ea82||(_0x41ea82=_0x71051d[_0x43db('0x4')](_0x1f5907=>!this[_0x43db('0x76')][_0x43db('0x73')]['document'][_0x43db('0x96')](_0x1f5907))),_0x41ea82&&_0x4a7d27(_0x43db('0xe3'),{'editorData':_0x59feb5,'editorRootsAttributes':_0x52fe41,'revisionData':_0x3df60c,'revisionRootsAttributes':_0x20ba35}),this[_0x43db('0x76')][_0x43db('0xc7')][_0x43db('0x23')](_0x43db('0x7e'),_0x3df60c),this[_0x43db('0x76')]['config'][_0x43db('0x23')]('rootsAttributes',_0x20ba35);}['_addPendingAction'](){if(!this[_0x43db('0xe9')]){const _0x1d555c=this[_0x43db('0x76')]['plugins'][_0x43db('0x3')]('PendingActions');this['_pendingAction']=_0x1d555c[_0x43db('0xed')](_0x1cd322(this[_0x43db('0x76')]['locale'],_0x43db('0xfb')));}}[_0x43db('0x81')](){this[_0x43db('0xe9')]&&(this[_0x43db('0x76')][_0x43db('0x7c')][_0x43db('0x3')](_0x43db('0xe7'))['remove'](this[_0x43db('0xe9')]),this[_0x43db('0xe9')]=null);}[_0x43db('0xa4')](_0x35e516){const _0x519e1b=this[_0x43db('0xa0')][_0x43db('0xb8')]();_0x519e1b['reverse']();let _0x1543dd=0x0;for(;_0x1543dd<_0x519e1b[_0x43db('0x53')];){const _0x179e6b=_0x519e1b[_0x1543dd];if(_0x179e6b===this[_0x43db('0x1b')]){_0x1543dd++;continue;}if(_0x179e6b['id']===this[_0x43db('0x98')])break;const _0x42c6ad=_0x35e516[_0x43db('0x50')]-_0x179e6b[_0x43db('0x50')]||_0x35e516['fromVersion']-_0x179e6b['fromVersion'];if(_0x42c6ad>0x0)break;if(_0x42c6ad<0x0)_0x1543dd++;else{if(!_0x35e516['creator']&&_0x179e6b['creator'])break;if(_0x179e6b[_0x43db('0xe0')]||!_0x35e516['creator']){if(_0x35e516[_0x43db('0x94')]>_0x179e6b[_0x43db('0x94')])break;_0x1543dd++;}else _0x1543dd++;}}return _0x1543dd;}[_0x43db('0xd0')](_0x452ced){const _0x4085ad=this['repository']['getRevision'](_0x452ced['id']);if(_0x452ced[_0x43db('0x94')]&&(_0x452ced['createdAt']=new Date(_0x452ced[_0x43db('0x94')])),_0x452ced['authorsIds']){const _0x33696e=this[_0x43db('0x76')][_0x43db('0x7c')][_0x43db('0x3')](_0x43db('0x35'));_0x452ced['authors']=_0x452ced[_0x43db('0x78')][_0x43db('0xf2')](_0x2bb333=>_0x33696e['getUser'](_0x2bb333));}_0x4085ad[_0x43db('0x9a')](_0x452ced,!0x0);}[_0x43db('0xdd')]({revision:_0x4b6df8=null,from:_0xea34e3=null,to:_0x1c9933=null}){_0xea34e3=null!==_0xea34e3?_0xea34e3:_0x4b6df8[_0x43db('0xf8')],_0x1c9933=null!==_0x1c9933?_0x1c9933:_0x4b6df8['toVersion'];const _0x32e7f6=this['_revisionDataBuilder'][_0x43db('0x47')](_0xea34e3,_0x1c9933),_0x2b2338={'diffData':_0x32e7f6['diffData'],'authorsIds':_0x32e7f6[_0x43db('0x78')],'fromVersion':_0xea34e3,'toVersion':_0x1c9933};if(!_0x4b6df8||_0x1c9933!==_0x4b6df8['toVersion']){const _0xaeb045=_0x1c9933-0x1,_0x7bb5fc=this[_0x43db('0x65')][_0x43db('0x87')]['getOperation'](_0xaeb045);_0x2b2338[_0x43db('0x94')]=_0x7bb5fc&&_0x7bb5fc[_0x43db('0x94')]||new Date();}if(this[_0x43db('0xd7')]&&_0xea34e3===this[_0x43db('0xd7')][_0x43db('0xf8')])for(const _0x4a9620 of this[_0x43db('0xd7')]['authors'])_0x2b2338[_0x43db('0x78')]['includes'](_0x4a9620['id'])||_0x2b2338[_0x43db('0x78')][_0x43db('0xe4')](_0x4a9620['id']);return _0x2b2338;}[_0x43db('0x7d')](_0x4b9c8c){if(!_0x4b9c8c||_0x4b9c8c[_0x43db('0xf0')])return Promise['resolve']();{const _0x16feb6=this[_0x43db('0x76')]['config'][_0x43db('0x3')](_0x43db('0x108'));return this[_0x43db('0x99')]['getRevision']({'channelId':_0x16feb6,'revisionId':_0x4b9c8c['id']})['then'](_0x4bd81c=>{_0x4b9c8c[_0x43db('0xf0')]=_0x4bd81c['diffData'];});}}[_0x43db('0xb6')](_0x23660c,_0x497fbe,_0x4c643d){if(this[_0x43db('0xf4')][_0x43db('0xf9')](_0x23660c)){const _0x29b53e=this[_0x43db('0xf4')][_0x43db('0x3')](_0x23660c);_0x497fbe=_0x4c643d?{..._0x29b53e,..._0x497fbe}:{..._0x497fbe,..._0x29b53e};}this[_0x43db('0xf4')]['set'](_0x23660c,_0x497fbe);}['_getFromVersion'](_0x18ea3b){const _0x41c426=this[_0x43db('0xa0')][_0x43db('0xb8')]();_0x41c426[_0x43db('0x63')](),_0x41c426[_0x43db('0xd8')]();const _0x42610a=_0x41c426[_0x43db('0x55')](_0x1db6f8=>_0x1db6f8['toVersion']<=_0x18ea3b)[_0x43db('0x50')];return _0x42610a<this[_0x43db('0x60')]?this[_0x43db('0x60')]:_0x42610a;}[_0x43db('0xf')](_0x703bd8){const _0x408d8b=this['repository']['getRevision'](this[_0x43db('0xa0')][_0x43db('0x53')]-0x1);if(_0x408d8b)this[_0x43db('0x98')]=_0x408d8b['id'];else{const _0x5c09ea=!this[_0x43db('0x76')][_0x43db('0x73')]['document'][_0x43db('0x85')][_0x43db('0x55')](_0x3412e6=>this[_0x43db('0x76')][_0x43db('0x73')]['hasContent'](_0x3412e6)),_0x8a5a4a=this['editor'][_0x43db('0x7c')][_0x43db('0x3')]('Users')['me']['id'],_0x442237=_0x1cd322(this[_0x43db('0x76')][_0x43db('0xd')],_0x5c09ea?_0x43db('0x6f'):_0x43db('0xce'));this['_makeRevision']({'from':_0x703bd8,'to':_0x703bd8,'id':this[_0x43db('0x98')],'name':_0x442237,'creatorId':_0x8a5a4a});}}[_0x43db('0xa1')](_0x10fdf3){const _0x4d4d70=this[_0x43db('0x65')]['getCurrentRevisionId']();this['currentRevision']=this[_0x43db('0xa0')][_0x43db('0xfc')](_0x4d4d70),this[_0x43db('0x1b')]||(this['currentRevision']=this[_0x43db('0x43')]({'from':_0x10fdf3,'to':_0x10fdf3,'id':_0x4d4d70,'name':'','creatorId':null}));}[_0x43db('0x43')]({name:_0x446be6,from:_0x5f5500,to:_0x4d5273,creatorId:_0x10de5b,id:_0x139f23}){const _0x406f63=this[_0x43db('0xdd')]({'from':_0x5f5500,'to':_0x4d5273});_0x406f63['name']=_0x446be6,_0x406f63[_0x43db('0x59')]=_0x10de5b,_0x406f63['id']=_0x139f23;const _0x407630=this[_0x43db('0x2d')](_0x406f63);return this[_0x43db('0x99')]&&this['_bufferUpdate'](_0x406f63['id'],_0x406f63,!0x0),_0x407630;}[_0x43db('0xa6')](){this[_0x43db('0x76')]['conversion'][_0x43db('0xb0')](_0x43db('0xcf'))[_0x43db('0x49')]({'model':_0x43db('0xad')});}[_0x43db('0x2c')](_0x5c3def){return(_0x5c3def=_0x5c3def[_0x43db('0xf7')](_0x1927c5=>!_0x1927c5[_0x43db('0xd9')]||'revision-start'!==_0x1927c5[_0x43db('0xd9')]&&'revision-end'!==_0x1927c5['name']))[_0x43db('0xc')](_0x4725fa=>{_0x43db('0x19')!=typeof _0x4725fa&&(_0x4725fa[_0x43db('0xb9')]=this[_0x43db('0x2c')](_0x4725fa[_0x43db('0xb9')]),_0x4725fa['attributes']=_0x4725fa[_0x43db('0x3f')][_0x43db('0xf7')](_0x4b06be=>!_0x4b06be[0x0][_0x43db('0xf5')](_0x43db('0x37'))));}),_0x5c3def;}}function J(_0x116bb9,_0xd3b6a8){const _0x4485b8=_0xd3b6a8[_0x43db('0x4d')]['view']['document'];if(_0x43db('0x19')==typeof _0x116bb9)return new _0x445914(_0x4485b8,_0x116bb9);{const _0x247cec=_0x116bb9[_0x43db('0xb9')][_0x43db('0xf2')](_0x3c7719=>J(_0x3c7719,_0xd3b6a8));return new(B[_0x116bb9[(_0x43db('0x84'))]]||_0x32d350)(_0x4485b8,_0x116bb9['name'],_0x116bb9[_0x43db('0x3f')],_0x247cec);}}class H{constructor(_0x1ea6a1){this[_0x43db('0x76')]=_0x1ea6a1,this[_0x43db('0x3b')]=new Map(),this[_0x43db('0x1e')]=-0x1,this[_0x43db('0xd4')]=-0x1,this[_0x43db('0x16')]=new Map(),this[_0x43db('0x46')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x43db('0x86')]=new Map(),this[_0x43db('0x0')]=new Map(),this['_idsRoots']=new Map(),this[_0x43db('0x1f')]=new Map(),this[_0x43db('0x52')]=new Map(),this[_0x43db('0x6d')]=new Map(),this['_touchedRoots']=new Map(),this[_0x43db('0xd6')]=0x1;}[_0x43db('0xaf')](_0x49f31b){this[_0x43db('0x5b')]=_0x49f31b;const _0x485a10=new Map(),_0xab59fb=new Map(),_0x365d1a=this[_0x43db('0x76')][_0x43db('0x73')][_0x43db('0x5d')][_0x43db('0x85')][_0x43db('0xf2')](_0x319530=>_0x319530[_0x43db('0x64')]);for(const _0x12bbf2 of _0x365d1a){const _0x5d3b72=this[_0x43db('0x76')][_0x43db('0x73')][_0x43db('0x5d')][_0x43db('0x96')](_0x12bbf2),_0x2a778d=q(_0x5d3b72);_0x485a10['set'](_0x12bbf2,_0x2a778d),_0xab59fb[_0x43db('0x23')](_0x12bbf2,Object[_0x43db('0x4f')](_0x5d3b72[_0x43db('0x95')]()));}const _0x2e7405=Array['from'](this[_0x43db('0x76')][_0x43db('0x73')][_0x43db('0xeb')])[_0x43db('0xf2')](_0x4e3696=>[_0x4e3696[_0x43db('0xd9')],_0x4e3696[_0x43db('0x3e')]()]),_0x6bcb44=this[_0x43db('0x5b')][_0x43db('0xb')];this[_0x43db('0x5f')](_0x6bcb44,_0x485a10,_0x2e7405,_0xab59fb),this[_0x43db('0x54')]=this[_0x43db('0xd6')];const _0x4e1385=new Map(),_0x431630=new Map();for(const _0x510a6e of _0x365d1a){const _0x125854=G(_0x510a6e);_0x4e1385[_0x43db('0x23')](_0x510a6e,_0x125854),_0x431630['set'](_0x510a6e,{});}this[_0x43db('0x5f')](Number['NEGATIVE_INFINITY'],_0x4e1385,[],_0x431630);}['getData'](_0x43456b,_0x1f3bb9){if(this['_lastFrom']===_0x43456b&&this[_0x43db('0xd4')]<=_0x1f3bb9)this[_0x43db('0x3b')][_0x43db('0x3a')]>0x1&&this[_0x43db('0xcc')](this[_0x43db('0xd4')]),this[_0x43db('0x1')](this[_0x43db('0xd4')],_0x1f3bb9,!0x0);else{if(!this[_0x43db('0x3b')][_0x43db('0xf9')](_0x43456b)){const _0x27684c=this[_0x43db('0x9d')](_0x43456b);this[_0x43db('0x101')](_0x27684c,_0x43456b,!0x1);}this[_0x43db('0x101')](_0x43456b,_0x1f3bb9,!0x0);}return this[_0x43db('0x1e')]=_0x43456b,this[_0x43db('0xd4')]=_0x1f3bb9,this[_0x43db('0xc3')]();}['loadState'](_0x4a1e3b){this[_0x43db('0xfd')](),this[_0x43db('0x1e')]=_0x4a1e3b['fromVersion'],this[_0x43db('0xd4')]=_0x4a1e3b['toVersion'];for(const _0x37ec2b in _0x4a1e3b[_0x43db('0xf0')]){const _0x4f6ad6=_0x4a1e3b[_0x43db('0xf0')][_0x37ec2b][_0x43db('0x4b')],_0x2f3d2d=_0x3c0375(_0x4a1e3b[_0x43db('0xf0')][_0x37ec2b][_0x43db('0x40')])||{},_0xc1111b=this[_0x43db('0xdf')](_0x4a1e3b[_0x43db('0xf0')][_0x37ec2b][_0x43db('0x26')]);_0xc1111b[_0x43db('0x64')]=_0x37ec2b,_0xc1111b[_0x43db('0x82')]=!_0x4f6ad6||!_0x4f6ad6[_0x43db('0x2a')],_0xc1111b[_0x43db('0x2a')]=()=>_0xc1111b[_0x43db('0x82')],this[_0x43db('0x86')][_0x43db('0x23')](_0x37ec2b,_0xc1111b),this[_0x43db('0x0')]['set'](_0x37ec2b,_0x2f3d2d),_0x4f6ad6&&this['_touchedRoots']['set'](_0x37ec2b,_0x4f6ad6);const _0x227491=this['_makeIdsRoot'](_0xc1111b);this[_0x43db('0x1f')][_0x43db('0x23')](_0x37ec2b,_0x227491);for(const [_0x254696,_0x5b748b]of _0xc1111b[_0x43db('0xeb')]){if(!_0x254696[_0x43db('0xf5')](_0x43db('0x4e')))continue;const _0x535200=_0x254696['split'](':')[0x2];for(const _0x40897f of _0x5b748b[_0x43db('0xa8')]({'singleCharacters':!0x0})){const _0x360e05=this['_getVidAttributeName'](_0x40897f),_0x1dd450='elementEnd'==_0x40897f[_0x43db('0x84')]?_0x40897f[_0x43db('0x105')][_0x43db('0xea')]['slice'](0x0,-0x1):_0x40897f['previousPosition'][_0x43db('0xea')],_0x1d9493=_0x227491[_0x43db('0xb5')](_0x1dd450)[_0x43db('0xc0')](_0x360e05);this[_0x43db('0x52')][_0x43db('0x23')](_0x1d9493,{'userId':_0x535200});}}}this['_startingRevisionId']=this[_0x43db('0xd6')];const _0x3f182f=[...Array(this[_0x43db('0xd6')])['keys']()][_0x43db('0x17')](0x1)['filter'](_0x14974a=>!this['_touched'][_0x43db('0xf9')](_0x14974a));let _0xef3abe=0x0;const _0x315de6=new Map();for(const _0x1e8963 in _0x4a1e3b['diffData']){const _0x4c25d9=_0x4a1e3b[_0x43db('0xf0')][_0x1e8963][_0x43db('0x4b')],_0x2f10d5=_0x3c0375(_0x4a1e3b[_0x43db('0xf0')][_0x1e8963][_0x43db('0x32')])||{},_0x3e5ccf=this[_0x43db('0xdf')](_0x4a1e3b['diffData'][_0x1e8963][_0x43db('0x36')]);_0x3e5ccf[_0x43db('0x64')]=_0x1e8963,_0x3e5ccf[_0x43db('0x82')]=!_0x4c25d9||_0x4c25d9[_0x43db('0x2a')],_0x3e5ccf[_0x43db('0x2a')]=()=>_0x3e5ccf[_0x43db('0x82')],this['_diffRoots']['set'](_0x1e8963,_0x3e5ccf),this['_diffRootsAttributes'][_0x43db('0x23')](_0x1e8963,_0x2f10d5);const _0x5da492=this[_0x43db('0xde')](_0x3e5ccf,Number[_0x43db('0xec')]);this[_0x43db('0xbf')]['set'](_0x1e8963,_0x5da492),_0x315de6['set'](_0x1e8963,_0x3e5ccf[_0x43db('0x2a')]()?_0x2f10d5:{});for(const [_0x1ec516,_0x47c68a]of _0x3e5ccf[_0x43db('0xeb')]){if(!_0x1ec516[_0x43db('0xf5')](_0x43db('0x4e')))continue;const _0x459460=_0x1ec516[_0x43db('0x57')](':')[0x2];for(const _0x50a539 of _0x47c68a[_0x43db('0xa8')]({'singleCharacters':!0x0})){const _0x439a0d=this[_0x43db('0x11')](_0x50a539),_0x2b6640=this[_0x43db('0xd6')]++,_0x27ea17='elementEnd'==_0x50a539[_0x43db('0x84')]?_0x50a539[_0x43db('0x105')][_0x43db('0xea')][_0x43db('0x17')](0x0,-0x1):_0x50a539['previousPosition'][_0x43db('0xea')];_0x5da492[_0x43db('0xb5')](_0x27ea17)[_0x43db('0x24')](_0x439a0d,_0x2b6640),this['_touched'][_0x43db('0x23')](_0x2b6640,{'userId':_0x459460});}}for(const _0x3a8969 of this[_0x43db('0x76')][_0x43db('0x73')][_0x43db('0xff')](_0x3e5ccf)[_0x43db('0xa8')]({'singleCharacters':!0x0})){const _0x24dec4=this[_0x43db('0x11')](_0x3a8969),_0x25c68a='elementEnd'==_0x3a8969[_0x43db('0x84')]?_0x3a8969[_0x43db('0x105')][_0x43db('0xea')][_0x43db('0x17')](0x0,-0x1):_0x3a8969['previousPosition'][_0x43db('0xea')],_0x4109da=_0x5da492[_0x43db('0xb5')](_0x25c68a);_0x4109da[_0x43db('0xc0')](_0x24dec4)>0x0||_0x4109da['_setAttribute'](_0x24dec4,_0x3f182f[_0xef3abe++]);}for(const [_0x2f0cef,_0x142e77]of _0x3e5ccf['markers'])_0x2f0cef[_0x43db('0xf5')]('revision:')||this[_0x43db('0x16')][_0x43db('0x23')](_0x2f0cef,_0x142e77);}const _0x2632c8=G(_0x43db('0x4c'));this[_0x43db('0x86')]['set'](_0x43db('0x4c'),_0x2632c8),this[_0x43db('0x1f')][_0x43db('0x23')](_0x43db('0x4c'),this[_0x43db('0xde')](_0x2632c8,0x1));const _0x22c9d2=G(_0x43db('0x4c'));this['_diffRoots'][_0x43db('0x23')](_0x43db('0x4c'),_0x22c9d2),this['_idsRoots'][_0x43db('0x23')](_0x43db('0x4c'),this['_makeIdsRoot'](_0x22c9d2,0x1));const _0x1c0bdb=Array[_0x43db('0xaa')](this[_0x43db('0x46')])['map'](([_0x4fa20c,_0x1830d1])=>[_0x4fa20c,q(_0x1830d1)]);this[_0x43db('0x5f')](this[_0x43db('0xd4')],_0x1c0bdb,this['_markers'],_0x315de6);}[_0x43db('0xdf')](_0x4a4ec9){const _0xa31c0c=JSON['parse'](_0x4a4ec9),_0x33c2a3=this[_0x43db('0x76')][_0x43db('0x4d')]['view']['document'],_0x6f5958=new _0x2fe0a2(_0x33c2a3,_0xa31c0c['map'](_0x1e9022=>J(_0x1e9022,this['editor'])));return this[_0x43db('0x76')][_0x43db('0xe8')][_0x43db('0x107')](_0x6f5958);}[_0x43db('0x5f')](_0x40ecfe,_0x8caaec,_0x44acc7,_0x20bac2){const _0x14b82c=new Map(_0x8caaec),_0x42ac2c=new Map(_0x3c0375(_0x20bac2)),_0x1326e4=new Map();for(const [_0x4f6cf1,_0x49ced7]of _0x44acc7)_0x1326e4[_0x43db('0x23')](_0x4f6cf1,{'start':_0x49ced7[_0x43db('0x5')][_0x43db('0x106')](),'end':_0x49ced7[_0x43db('0x34')][_0x43db('0x106')](),'rootName':_0x49ced7[_0x43db('0xd5')][_0x43db('0x64')]});this[_0x43db('0x3b')][_0x43db('0x23')](_0x40ecfe,{'roots':_0x14b82c,'markers':_0x1326e4,'rootsAttributes':_0x42ac2c});}[_0x43db('0xcc')](_0x26c3c8){this[_0x43db('0x3b')][_0x43db('0xa9')](_0x26c3c8);}['reInit'](){this['_reset'](),this[_0x43db('0x1e')]=-0x1,this[_0x43db('0xd4')]=-0x1,this['_savedMetaData'][_0x43db('0x89')](),this[_0x43db('0xaf')](this['source']);}['_reset'](){this[_0x43db('0x52')][_0x43db('0x89')](),this[_0x43db('0x6d')]['clear'](),this[_0x43db('0x68')][_0x43db('0x89')](),this[_0x43db('0x46')]['clear'](),this[_0x43db('0x67')][_0x43db('0x89')](),this['_baseRoots'][_0x43db('0x89')](),this[_0x43db('0x0')][_0x43db('0x89')](),this[_0x43db('0xbf')][_0x43db('0x89')](),this['_baseIdsRoots'][_0x43db('0x89')](),this['_markers'][_0x43db('0x89')](),this[_0x43db('0xd6')]=0x1,this[_0x43db('0x54')]=this[_0x43db('0xd6')];}[_0x43db('0xde')](_0x503ad8,_0x5e051c=null){let _0x387152=null;_0x503ad8['is'](_0x43db('0x39'))||(_0x387152=new _0x2e625b(_0x503ad8[_0x43db('0xd9')],{'vid_start':null===_0x5e051c?this[_0x43db('0xd6')]++:_0x5e051c++}));const _0x503201=[];for(const _0x2f5b08 of _0x503ad8[_0x43db('0x97')]())if(_0x2f5b08['is'](_0x43db('0xd3'))){_0x503201['push'](this[_0x43db('0xde')](_0x2f5b08,_0x5e051c));const _0x2608d5=_0x503201[_0x503201['length']-0x1];null!==_0x5e051c&&(_0x5e051c=_0x2608d5['is']('element',_0x43db('0x104'))?_0x2608d5[_0x43db('0xc0')](_0x43db('0xc4'))+0x1:_0x2608d5[_0x43db('0xc0')](_0x43db('0xc1'))+0x1);}else for(let _0x5b67bd=0x0;_0x5b67bd<_0x2f5b08['offsetSize'];_0x5b67bd++)_0x503201[_0x43db('0xe4')](new _0x2e625b(_0x43db('0x104'),{'vid':null===_0x5e051c?this[_0x43db('0xd6')]++:_0x5e051c++}));if(_0x503ad8['is'](_0x43db('0x39'))){const _0xe909c5=G(_0x503ad8[_0x43db('0x64')]);return _0xe909c5[_0x43db('0x66')](0x0,_0x503201),_0xe909c5;}return _0x387152[_0x43db('0x24')](_0x43db('0xc1'),null===_0x5e051c?this[_0x43db('0xd6')]++:_0x5e051c++),_0x387152[_0x43db('0x66')](0x0,_0x503201),_0x387152;}[_0x43db('0x101')](_0x50a466,_0x4e84bd,_0x4282e8){this[_0x43db('0xfd')]();const {roots:_0x410887,markers:_0x430c12,rootsAttributes:_0x5008a5}=this[_0x43db('0x3b')]['get'](_0x50a466);this['_baseRoots']=new Map(_0x410887),this['_baseRootsAttributes']=new Map(_0x3c0375(_0x5008a5));for(const [_0x546fc5,_0x8f9ea4]of this[_0x43db('0x86')])if(_0x43db('0x4c')!==_0x546fc5&&(this[_0x43db('0x46')][_0x43db('0x23')](_0x546fc5,q(_0x8f9ea4)),this[_0x43db('0x67')]=new Map(_0x3c0375(_0x5008a5)),_0x4282e8)){const _0x276592=this['_revisionId'];this[_0x43db('0xbf')][_0x43db('0x23')](_0x546fc5,this['_makeIdsRoot'](_0x8f9ea4)),this[_0x43db('0x1f')][_0x43db('0x23')](_0x546fc5,this[_0x43db('0xde')](_0x8f9ea4,_0x276592));}this[_0x43db('0x54')]=this[_0x43db('0xd6')],this[_0x43db('0x46')][_0x43db('0x23')]('$graveyard',q(this[_0x43db('0x86')]['get']('$graveyard'))),_0x4282e8&&this['_idsRoots']['set'](_0x43db('0x4c'),this[_0x43db('0xde')](this[_0x43db('0x86')]['get'](_0x43db('0x4c'))));for(const [_0x4ff6dc,_0x4bca56]of _0x430c12){const _0x2c05df=this[_0x43db('0x86')][_0x43db('0x3')](_0x4bca56['rootName']),_0x42b416=this[_0x43db('0x46')][_0x43db('0x3')](_0x4bca56[_0x43db('0x64')]),_0x21aa5b=new _0x597f93(this[_0x43db('0x6e')](_0x4bca56[_0x43db('0x5')],_0x2c05df),this['_fixPosition'](_0x4bca56[_0x43db('0x34')],_0x2c05df)),_0x47cb9d=this['_fixRange'](_0x21aa5b,_0x42b416);_0x2c05df[_0x43db('0xeb')][_0x43db('0x23')](_0x4ff6dc,_0x21aa5b),this[_0x43db('0x16')][_0x43db('0x23')](_0x4ff6dc,_0x47cb9d);}this[_0x43db('0x1')](_0x50a466,_0x4e84bd,_0x4282e8);}[_0x43db('0x1')](_0x40feb5,_0x4a5cbb,_0x4d8089){for(const _0x13782a of this['source'][_0x43db('0x3c')](_0x40feb5,_0x4a5cbb))this[_0x43db('0x8c')](_0x13782a,_0x4d8089);for(const _0x47049d of this['_diffRoots'][_0x43db('0x7a')]())_0x47049d[_0x43db('0xeb')]['clear']();for(const [_0x55278c,_0x1e16e6]of this[_0x43db('0x16')]){this[_0x43db('0x46')]['get'](_0x1e16e6[_0x43db('0xd5')][_0x43db('0x64')])[_0x43db('0xeb')][_0x43db('0x23')](_0x55278c,_0x1e16e6['clone']());}const _0x293eae=new Map(),_0x1916dc=new Map();for(const [_0x38c9b0,_0x943cd7]of this[_0x43db('0x46')])_0x293eae['set'](_0x38c9b0,q(_0x943cd7)),_0x1916dc[_0x43db('0x23')](_0x38c9b0,this[_0x43db('0x67')][_0x43db('0x3')](_0x38c9b0));this['_saveMetaData'](_0x4a5cbb,_0x293eae,this[_0x43db('0x16')],_0x1916dc);}[_0x43db('0x9d')](_0x45c3a4){const _0x59abf9=Array[_0x43db('0xaa')](this[_0x43db('0x3b')][_0x43db('0x80')]());_0x59abf9[_0x43db('0x51')]((_0x50ce8a,_0x248cf7)=>_0x50ce8a-_0x248cf7),_0x59abf9[_0x43db('0x63')]();for(const _0x29023e of _0x59abf9)if(_0x29023e<_0x45c3a4)return _0x29023e;return Number[_0x43db('0xec')];}[_0x43db('0x74')](_0x30f895,_0x150e84){const _0x16bdd2=Array[_0x43db('0xaa')](_0x150e84[_0x43db('0xeb')])['map'](([_0x4f14b0,_0x34162a])=>[_0x4f14b0,this[_0x43db('0xa2')](_0x34162a,_0x30f895)]);_0x30f895[_0x43db('0xeb')]=new Map(_0x16bdd2);}[_0x43db('0xa5')](_0x3c8479){for(const _0x111d10 of this[_0x43db('0x16')][_0x43db('0x7a')]()){const _0x2fd12f=_0x111d10[_0x43db('0xc8')](_0x3c8479),_0x478f95=_0x597f93[_0x43db('0xd1')](_0x2fd12f);_0x111d10[_0x43db('0x5')]=_0x478f95['start'],_0x111d10[_0x43db('0x34')]=_0x478f95[_0x43db('0x34')];}}['_handleOperation'](_0x5e60f2,_0x107561){if(_0x43db('0x42')==_0x5e60f2[_0x43db('0x84')]||_0x43db('0xa3')==_0x5e60f2[_0x43db('0x84')])return void this[_0x43db('0x62')](_0x5e60f2,_0x107561);if(_0x43db('0xbe')==_0x5e60f2[_0x43db('0x84')]){const _0x25ed8f=_0x5e60f2[_0x43db('0xc9')][_0x43db('0xd5')]['rootName'];this[_0x43db('0x46')][_0x43db('0xf9')](_0x25ed8f)||(this['_diffRoots']['set'](_0x25ed8f,G(_0x25ed8f,!0x0)),this[_0x43db('0x67')][_0x43db('0x23')](_0x25ed8f,{}),_0x107561&&this[_0x43db('0xbf')]['set'](_0x25ed8f,G(_0x25ed8f,!0x0)));}else{if(_0x43db('0x5a')==_0x5e60f2[_0x43db('0x84')]||'removeRootAttribute'==_0x5e60f2[_0x43db('0x84')]||_0x43db('0x10')==_0x5e60f2['type'])return void this[_0x43db('0x9f')](_0x5e60f2);}const _0x2fa1a2=this[_0x43db('0xfa')](_0x5e60f2,this[_0x43db('0x46')]);if(_0x43db('0x15')!==_0x5e60f2['type']&&(_0x2fa1a2[_0x43db('0x2f')](),this['_transformMarkers'](_0x2fa1a2)),_0x107561)switch(_0x2fa1a2['type']){case _0x43db('0xbe'):this[_0x43db('0xdb')](_0x5e60f2);break;case _0x43db('0xe5'):case _0x43db('0xf6'):case _0x43db('0xe'):this['_handleMoveOperation'](_0x5e60f2);break;case _0x43db('0xae'):this['_handleMergeOperation'](_0x5e60f2);break;case _0x43db('0x57'):this['_handleSplitOperation'](_0x5e60f2);break;case _0x43db('0x15'):this[_0x43db('0x79')](_0x5e60f2);}}[_0x43db('0xfa')](_0x32b70e,_0x3a344d){const _0x3924e8=_0x32b70e[_0x43db('0x106')]();return _0x3924e8['_authorId']=_0x32b70e['_authorId'],this[_0x43db('0x3d')](_0x3924e8,_0x3a344d),_0x3924e8;}[_0x43db('0xa')](_0x231483){return _0x231483[_0x43db('0xf2')](_0x5d8122=>{const _0x5e7354=this[_0x43db('0x11')](_0x5d8122);return Number(_0x5d8122['item']['getAttribute'](_0x5e7354));});}[_0x43db('0xb7')](_0x54b77b,_0x3641ed){if(_0x54b77b['is']('element','$text'))_0x3641ed[_0x43db('0xe4')]({'item':_0x54b77b,'type':_0x43db('0x77')});else{_0x54b77b['is'](_0x43db('0xd3'))&&_0x3641ed['push']({'item':_0x54b77b,'type':_0x43db('0x22')});for(const _0x1088f1 of _0x54b77b[_0x43db('0x97')]())this[_0x43db('0xb7')](_0x1088f1,_0x3641ed);_0x54b77b['is']('element')&&_0x3641ed['push']({'item':_0x54b77b,'type':'elementEnd'});}return _0x3641ed;}[_0x43db('0xc3')](){const _0x803e5=new Map(this[_0x43db('0x52')]),_0x4fb742=new Map(_0x803e5),_0x358e14=new Map(),_0x560c92={'insertions':{},'deletions':{}},_0x5321ab={'insertions':{},'deletions':{}},_0x2ba5f3=new Map(),_0x556d92=new Set([...this['_baseRoots'][_0x43db('0x80')](),...this[_0x43db('0x46')][_0x43db('0x80')]()]);_0x556d92[_0x43db('0xa9')](_0x43db('0x4c'));for(const _0x5e6802 of _0x556d92){const _0x5d3932=this[_0x43db('0x46')][_0x43db('0x3')](_0x5e6802)||G(_0x5e6802,!0x1),_0x2b0253=this[_0x43db('0x86')][_0x43db('0x3')](_0x5e6802)||G(_0x5e6802,!0x1);_0x5d3932[_0x43db('0x2a')]()||_0x2b0253['isAttached']()?(_0x560c92[_0x43db('0x36')][_0x5e6802]=q(_0x5d3932),_0x560c92[_0x43db('0x26')][_0x5e6802]=q(_0x2b0253),this[_0x43db('0x74')](_0x560c92[_0x43db('0x26')][_0x5e6802],_0x2b0253),this[_0x43db('0x74')](_0x560c92[_0x43db('0x36')][_0x5e6802],_0x5d3932),_0x5321ab['insertions'][_0x5e6802]=this[_0x43db('0xb7')](this[_0x43db('0xbf')][_0x43db('0x3')](_0x5e6802),[]),_0x5321ab['deletions'][_0x5e6802]=this['_generateTape'](this[_0x43db('0x1f')][_0x43db('0x3')](_0x5e6802)||G(_0x5e6802,!0x1),[])):_0x556d92['delete'](_0x5e6802);}for(const _0x176a4e of _0x556d92){const _0x266f1d=_0x5321ab['insertions'][_0x176a4e];for(const _0x369cfa of _0x266f1d){const _0x3b02bc=this[_0x43db('0x11')](_0x369cfa),_0x2b3572=_0x369cfa[_0x43db('0xe2')][_0x43db('0xc0')](_0x3b02bc);_0x4fb742['delete'](_0x2b3572),_0x2b3572>=this[_0x43db('0x54')]&&_0x358e14[_0x43db('0x23')](_0x2b3572,_0x803e5['get'](_0x2b3572));}}for(const _0x3378f0 of _0x556d92){const _0x246156=_0x5321ab[_0x43db('0x36')][_0x3378f0],_0x227e3d=this[_0x43db('0xa')](_0x5321ab[_0x43db('0x26')][_0x3378f0]);let _0x279b82=0x0;for(const _0x15906b of _0x246156){const _0x16ef94=this[_0x43db('0x11')](_0x15906b),_0x51ff67=_0x15906b[_0x43db('0xe2')][_0x43db('0xc0')](_0x16ef94);if(!_0x358e14[_0x43db('0xf9')](_0x51ff67)&&!_0x2ba5f3[_0x43db('0xf9')](_0x51ff67)){if(_0x4fb742['has'](_0x51ff67))_0x279b82++;else{if(_0x51ff67!=_0x227e3d[_0x279b82]){const _0x1c7fbd=_0x803e5[_0x43db('0x3')](_0x51ff67)||_0x803e5[_0x43db('0x3')](_0x227e3d[_0x279b82]);for(;_0x51ff67!=_0x227e3d[_0x279b82];)_0x4fb742[_0x43db('0xf9')](_0x227e3d[_0x279b82])||(_0x2ba5f3[_0x43db('0x23')](_0x227e3d[_0x279b82],_0x1c7fbd),_0x803e5[_0x43db('0x23')](_0x227e3d[_0x279b82],_0x1c7fbd)),_0x279b82++;}_0x279b82++;}}}}for(const _0x2a0b93 of _0x556d92){const _0x485c61=_0x5321ab[_0x43db('0x36')][_0x2a0b93];for(const _0x1f2110 of _0x485c61){const _0x22caf9=this[_0x43db('0x11')](_0x1f2110),_0xd35d42=_0x1f2110['item']['getAttribute'](_0x22caf9);if(_0x2ba5f3['has'](_0xd35d42)){const _0x5a12d5=_0x2ba5f3[_0x43db('0x3')](_0xd35d42);_0x4fb742['has'](_0xd35d42)||_0x4fb742[_0x43db('0x23')](_0xd35d42,{..._0x5a12d5}),_0x358e14[_0x43db('0x23')](_0xd35d42,{..._0x5a12d5});}}}for(const _0x2a3ea9 of _0x4fb742[_0x43db('0x80')]())_0x2a3ea9>=this[_0x43db('0x54')]&&_0x4fb742[_0x43db('0xa9')](_0x2a3ea9);const _0x35be3d=new Map();for(const _0x1a3e45 of _0x556d92){let _0x5ba31b=_0x5321ab[_0x43db('0x36')][_0x1a3e45];for(const _0x53c6ad of _0x5ba31b)if(_0x53c6ad[_0x43db('0xe2')]['is']('element',_0x43db('0xf3'))){const _0x47b1b1=this['_getVidAttributeName'](_0x53c6ad),_0x2af92b=_0x53c6ad[_0x43db('0xe2')]['getAttribute'](_0x47b1b1);if(_0x358e14[_0x43db('0xf9')](_0x2af92b)){const _0x32a9b2=_0x53c6ad['item'][_0x43db('0xb4')]['parent'][_0x43db('0xc0')](_0x43db('0x7f')),_0x402798=_0x35be3d['get'](_0x32a9b2)||new Set();_0x402798[_0x43db('0xed')](_0x358e14[_0x43db('0x3')](_0x2af92b)[_0x43db('0x91')]),_0x35be3d[_0x43db('0x23')](_0x32a9b2,_0x402798);}}_0x5ba31b=_0x5321ab[_0x43db('0x26')][_0x1a3e45];for(const _0x498cfa of _0x5ba31b)if(_0x498cfa[_0x43db('0xe2')]['is'](_0x43db('0xd3'),_0x43db('0xf3'))){const _0xf822c7=this[_0x43db('0x11')](_0x498cfa),_0x5a58c7=_0x498cfa[_0x43db('0xe2')]['getAttribute'](_0xf822c7);if(_0x4fb742[_0x43db('0xf9')](_0x5a58c7)){const _0x24a02c=_0x498cfa['item'][_0x43db('0xb4')][_0x43db('0xb4')][_0x43db('0xc0')](_0x43db('0x7f')),_0x1f8bf2=_0x35be3d[_0x43db('0x3')](_0x24a02c)||new Set();_0x1f8bf2[_0x43db('0xed')](_0x4fb742['get'](_0x5a58c7)[_0x43db('0x91')]),_0x35be3d['set'](_0x24a02c,_0x1f8bf2);}}for(const _0x1219c2 of _0x35be3d[_0x43db('0x80')]())(_0x358e14[_0x43db('0xf9')](_0x1219c2)||_0x4fb742[_0x43db('0xf9')](_0x1219c2))&&_0x35be3d[_0x43db('0xa9')](_0x1219c2);}for(const _0x57c734 of _0x556d92){const _0x20f1f7=_0x5321ab[_0x43db('0x36')][_0x57c734];let _0x3039df=null,_0x325938=null;for(const _0x223001 of _0x20f1f7){const _0x289e1c=this[_0x43db('0x11')](_0x223001),_0x3eecfb=_0x223001[_0x43db('0xe2')][_0x43db('0xc0')](_0x289e1c),_0x314308=_0x35be3d[_0x43db('0x3')](_0x3eecfb);_0x314308&&_0x43db('0x22')==_0x223001[_0x43db('0x84')]&&(_0x3039df=Array[_0x43db('0xaa')](_0x314308)[0x0],_0x325938=_0x223001[_0x43db('0xe2')][_0x43db('0xc0')](_0x43db('0xc1'))),_0x3039df&&(_0x4fb742[_0x43db('0x23')](_0x3eecfb,{'userId':_0x3039df}),_0x358e14[_0x43db('0x23')](_0x3eecfb,{'userId':_0x3039df})),_0x3eecfb==_0x325938&&(_0x3039df=null,_0x325938=null);}}const _0x24e72a={},_0x11c28d=new Set();for(const _0x8d383c of _0x556d92){const _0x39ce24=_0x560c92[_0x43db('0x26')][_0x8d383c],_0x5a7e50=_0x560c92[_0x43db('0x36')][_0x8d383c];for(const {userId:_0x3bbf0a}of this['_touchedMarkers']['values']())null!==_0x3bbf0a&&_0x11c28d['add'](_0x3bbf0a);for(const {userId:_0x494ae7}of this[_0x43db('0x68')][_0x43db('0x7a')]())null!==_0x494ae7&&_0x11c28d['add'](_0x494ae7);this[_0x43db('0x8a')](_0x5a7e50,_0x5321ab[_0x43db('0x36')][_0x8d383c],_0x358e14,_0x43db('0x69'),_0x11c28d),this['_markChanges'](_0x39ce24,_0x5321ab[_0x43db('0x26')][_0x8d383c],_0x4fb742,'deletion',_0x11c28d),_0x24e72a[_0x8d383c]={'insertions':this['_prepareViewToSave'](_0x5a7e50),'deletions':this[_0x43db('0x93')](_0x39ce24),'attachChange':this[_0x43db('0x68')][_0x43db('0x3')](_0x8d383c)||null,'attributesBefore':_0x3c0375(this['_baseRootsAttributes'][_0x43db('0x3')](_0x8d383c))||{},'attributesAfter':_0x3c0375(this[_0x43db('0x67')][_0x43db('0x3')](_0x8d383c))};}return{'diffData':_0x24e72a,'authorsIds':Array[_0x43db('0xaa')](_0x11c28d)};}['_processRootBeforeSave'](_0x48c707){for(const [,_0x1cdad8]of _0x48c707['markers']){const _0x56a5b0=_0x1cdad8[_0x43db('0x5')][_0x43db('0x1d')]()[_0x43db('0xf7')](_0x51bec1=>_0x43db('0xf3')==_0x51bec1['name']);for(const _0x2d017e of _0x56a5b0)0x1==_0x2d017e[_0x43db('0xe6')]&&_0x2d017e[_0x43db('0x6c')](0x0)['is']('element',_0x43db('0xcb'))&&_0x2d017e[_0x43db('0x6c')](0x0)[_0x43db('0x24')]('keepParagraph',!0x0);}}[_0x43db('0x93')](_0x2a4933){this[_0x43db('0x29')](_0x2a4933);const _0x4c58e8=this[_0x43db('0x76')]['data'][_0x43db('0x18')](_0x2a4933,{}),_0x5363d5=Array['from'](_0x4c58e8['getChildren']())[_0x43db('0xf2')](_0x382eee=>this['_getViewJson'](_0x382eee));return JSON['stringify'](_0x5363d5);}['_getViewJson'](_0x5d6f16){if(_0x5d6f16['is'](_0x43db('0x104')))return _0x5d6f16['data'];{const _0x458018=_0x5d6f16;return{'type':Object[_0x43db('0x80')](B)[_0x43db('0x55')](_0x573459=>_0x5d6f16 instanceof B[_0x573459]),'name':_0x458018['name'],'attributes':Array[_0x43db('0xaa')](_0x458018[_0x43db('0x95')]()),'children':Array[_0x43db('0xaa')](_0x458018[_0x43db('0x97')]())[_0x43db('0xf2')](_0x118d04=>this[_0x43db('0xdc')](_0x118d04))};}}['_markChanges'](_0x3a2fd5,_0x452918,_0x2315c9,_0x3f82bd,_0x373e3e){let _0x1d8617=null,_0x2ef8ee=null,_0x43aa78=0x0;const _0x67d6d6=this[_0x43db('0x76')][_0x43db('0x73')];for(let _0x1e7bab=0x0;_0x1e7bab<_0x452918[_0x43db('0x53')];_0x1e7bab++){const _0x31513e=this[_0x43db('0x11')](_0x452918[_0x1e7bab]),_0x5dfcb2=_0x452918[_0x1e7bab]['item']['getAttribute'](_0x31513e),_0x1af8dd=_0x2315c9[_0x43db('0x3')](_0x5dfcb2),_0x2654c3=_0x1e7bab==_0x452918[_0x43db('0x53')]-0x1;(!_0x1d8617&&_0x1af8dd&&(_0x1d8617=_0x1af8dd,_0x2ef8ee=_0x452918[_0x1e7bab]),_0x1d8617&&(!_0x1af8dd||_0x1af8dd[_0x43db('0x91')]!=_0x1d8617['userId']))&&(_0x18e27a(_0x1af8dd,L(_0x2ef8ee,_0x3a2fd5,_0x67d6d6),L(_0x452918[_0x1e7bab],_0x3a2fd5,_0x67d6d6)),_0x1d8617=_0x1af8dd||null,_0x2ef8ee=_0x1af8dd?_0x452918[_0x1e7bab]:null),_0x1d8617&&_0x2654c3&&_0x18e27a(_0x1af8dd,L(_0x2ef8ee,_0x3a2fd5,_0x67d6d6),W(_0x452918[_0x1e7bab],_0x3a2fd5,_0x67d6d6));}function _0x18e27a(_0x305f8c,_0x386f50,_0x4b3c51){const _0x1d33de=_0x1d8617[_0x43db('0x91')],_0x533ed2=_0x43db('0x4e')+_0x3f82bd+':'+_0x1d33de+':'+_0x43aa78++,_0x462904=_0x67d6d6[_0x43db('0x13')](_0x386f50,_0x4b3c51);_0x3a2fd5['markers'][_0x43db('0x23')](_0x533ed2,_0x462904),null!==_0x1d33de&&_0x373e3e[_0x43db('0xed')](_0x1d33de);}}[_0x43db('0x11')](_0x44c310){switch(_0x44c310[_0x43db('0x84')]){case _0x43db('0x22'):return _0x43db('0x7f');case'elementEnd':return _0x43db('0xc1');default:return _0x43db('0xc4');}}['_fixOperation'](_0x526861,_0x3ec427){_0x526861[_0x43db('0x30')]=null;for(const _0x33223f in _0x526861){const _0x16f1cb=_0x526861[_0x33223f];if(_0x16f1cb instanceof _0x3383ab){const _0x1e593d=_0x3ec427['get'](_0x16f1cb[_0x43db('0xd5')][_0x43db('0x64')]);_0x526861[_0x33223f]=this[_0x43db('0x6e')](_0x16f1cb,_0x1e593d);}if(_0x16f1cb instanceof _0x597f93){const _0x199d13=_0x3ec427[_0x43db('0x3')](_0x16f1cb[_0x43db('0xd5')][_0x43db('0x64')]);_0x526861[_0x33223f]=this[_0x43db('0xa2')](_0x16f1cb,_0x199d13);}_0x43db('0xd5')===_0x33223f&&(_0x526861['root']=_0x3ec427[_0x43db('0x3')](_0x526861[_0x43db('0xd5')]['rootName']));}}[_0x43db('0xa2')](_0x3edc65,_0x5f1d25){return this[_0x43db('0x76')]['model']['createRange'](this[_0x43db('0x6e')](_0x3edc65[_0x43db('0x5')],_0x5f1d25),this['_fixPosition'](_0x3edc65[_0x43db('0x34')],_0x5f1d25));}[_0x43db('0x6e')](_0x182290,_0x14bfe5){return this[_0x43db('0x76')]['model']['createPositionFromPath'](_0x14bfe5,_0x182290[_0x43db('0xea')],_0x182290[_0x43db('0xc6')]);}[_0x43db('0xdb')](_0x395b4b){const _0x7904ce=this[_0x43db('0xbf')][_0x43db('0x3')](_0x395b4b[_0x43db('0xc9')][_0x43db('0xd5')][_0x43db('0x64')]),_0x586f70=this['_fixPosition'](_0x395b4b[_0x43db('0xc9')],_0x7904ce),_0x33a739=null===_0x395b4b[_0x43db('0x21')]?null:_0x395b4b[_0x43db('0x21')]||this[_0x43db('0x76')][_0x43db('0x7c')][_0x43db('0x3')](_0x43db('0x35'))['me']['id'],_0x2e57a7=_0x586f70[_0x43db('0xb4')],_0x26afe2=this[_0x43db('0xd6')],_0xd6bef0=[];for(const _0x42dca3 of _0x395b4b[_0x43db('0x41')])if(_0x42dca3['is'](_0x43db('0xd3')))_0xd6bef0['push'](this[_0x43db('0xde')](_0x42dca3));else for(let _0x34edd8=0x0;_0x34edd8<_0x42dca3[_0x43db('0x9c')];_0x34edd8++)_0xd6bef0[_0x43db('0xe4')](new _0x2e625b(_0x43db('0x104'),{'vid':this['_revisionId']++}));const _0x20254e=this[_0x43db('0xd6')];for(let _0x32170c=_0x26afe2;_0x32170c<_0x20254e;_0x32170c++)this[_0x43db('0x52')]['set'](_0x32170c,{'userId':_0x33a739});_0x2e57a7[_0x43db('0x66')](_0x586f70[_0x43db('0x5e')],_0xd6bef0);}[_0x43db('0x8f')](_0x540611){(_0x540611=this['_cloneOperation'](_0x540611,this[_0x43db('0xbf')]))[_0x43db('0x2f')]();const _0x574e6e=null===_0x540611[_0x43db('0x21')]?null:_0x540611[_0x43db('0x21')]||this['editor'][_0x43db('0x7c')][_0x43db('0x3')]('Users')['me']['id'],_0x36c769=_0x540611[_0x43db('0x5c')](),_0x41380d=_0x36c769[_0x43db('0xb4')],_0x588e24=_0x36c769[_0x43db('0x5e')];!function _0x46237d(_0x5af6d3,_0x55c10b,_0x2cf3ba,_0x5782d1){for(let _0x43ce9a=_0x2cf3ba;_0x43ce9a<_0x5782d1;_0x43ce9a++){const _0x4fdd49=_0x55c10b[_0x43db('0x6c')](_0x43ce9a);_0x4fdd49['is'](_0x43db('0xd3'),_0x43db('0x104'))?_0x5af6d3['set'](_0x4fdd49['getAttribute']('vid'),{'userId':_0x574e6e}):(_0x5af6d3[_0x43db('0x23')](_0x4fdd49[_0x43db('0xc0')](_0x43db('0x7f')),{'userId':_0x574e6e}),_0x46237d(_0x5af6d3,_0x4fdd49,0x0,_0x4fdd49[_0x43db('0xe6')]),_0x5af6d3['set'](_0x4fdd49[_0x43db('0xc0')](_0x43db('0xc1')),{'userId':_0x574e6e}));}}(this[_0x43db('0x52')],_0x41380d,_0x588e24,_0x588e24+_0x540611[_0x43db('0xcd')]);}[_0x43db('0xd2')](_0xed8822){const _0xf7a5fc=null===(_0xed8822=this['_cloneOperation'](_0xed8822,this[_0x43db('0xbf')]))[_0x43db('0x21')]?null:_0xed8822['_authorId']||this[_0x43db('0x76')]['plugins']['get'](_0x43db('0x35'))['me']['id'],_0x276c64=_0xed8822[_0x43db('0x88')][_0x43db('0xb4')],_0x2c4a42=_0xed8822[_0x43db('0x83')][_0x43db('0xb4')],_0x50d246=_0x276c64['getAttribute'](_0x43db('0xc1')),_0x2c3619=_0x2c4a42['getAttribute'](_0x43db('0x7f'));_0x276c64[_0x43db('0x24')](_0x43db('0xc1'),_0x2c4a42[_0x43db('0xc0')](_0x43db('0xc1'))),_0x2c4a42['_setAttribute']('vid_end',_0x50d246),this['_touched'][_0x43db('0x23')](_0x2c3619,{'userId':_0xf7a5fc}),this[_0x43db('0x52')]['set'](_0x50d246,{'userId':_0xf7a5fc}),_0xed8822[_0x43db('0x2f')]();}[_0x43db('0x103')](_0x2995bf){const _0x3009d2=null===(_0x2995bf=this[_0x43db('0xfa')](_0x2995bf,this['_idsRoots']))[_0x43db('0x21')]?null:_0x2995bf[_0x43db('0x21')]||this[_0x43db('0x76')]['plugins'][_0x43db('0x3')]('Users')['me']['id'],_0x8d277=_0x2995bf[_0x43db('0x44')],_0x48d37b=_0x2995bf[_0x43db('0xc2')][_0x43db('0xb4')];_0x2995bf[_0x43db('0x2f')]();const _0x37bf7c=_0x48d37b[_0x43db('0xc0')]('vid_end'),_0x50b827=_0x2995bf['insertionPosition'][_0x43db('0x100')];if(_0x8d277){const _0x2b79b5=_0x50b827['getAttribute']('vid_end'),_0x44a837=_0x48d37b[_0x43db('0xc0')]('vid_end');_0x48d37b['_setAttribute'](_0x43db('0xc1'),_0x2b79b5),_0x50b827[_0x43db('0x24')](_0x43db('0xc1'),_0x44a837),this[_0x43db('0x52')][_0x43db('0x23')](_0x48d37b['getAttribute']('vid_end'),{'userId':_0x3009d2}),this[_0x43db('0x52')][_0x43db('0x23')](_0x50b827['getAttribute']('vid_start'),{'userId':_0x3009d2});}else{const _0x16b797=this[_0x43db('0xd6')]++,_0x4d950d=this[_0x43db('0xd6')]++;_0x48d37b[_0x43db('0x24')](_0x43db('0xc1'),_0x16b797),_0x50b827[_0x43db('0x24')]('vid_start',_0x4d950d),_0x50b827[_0x43db('0x24')](_0x43db('0xc1'),_0x37bf7c),this[_0x43db('0x52')][_0x43db('0x23')](_0x16b797,{'userId':_0x3009d2}),this['_touched'][_0x43db('0x23')](_0x4d950d,{'userId':_0x3009d2});}}['_handleMarkerOperation'](_0x4b1a28){if(!_0x4b1a28[_0x43db('0xbd')])return;const _0x45b07c=(_0x4b1a28=this[_0x43db('0xfa')](_0x4b1a28,this[_0x43db('0x46')]))['oldRange']?_0x4b1a28['oldRange']['root']:null,_0x23554f=_0x4b1a28[_0x43db('0x1c')]?_0x4b1a28[_0x43db('0x1c')][_0x43db('0xd5')]:null;_0x45b07c&&this[_0x43db('0x16')]['delete'](_0x4b1a28[_0x43db('0xd9')]),_0x23554f&&this[_0x43db('0x16')][_0x43db('0x23')](_0x4b1a28[_0x43db('0xd9')],_0x4b1a28[_0x43db('0x1c')][_0x43db('0x106')]());const _0xc87dfe=null===_0x4b1a28[_0x43db('0x21')]?null:_0x4b1a28[_0x43db('0x21')]||this[_0x43db('0x76')][_0x43db('0x7c')]['get']('Users')['me']['id'],_0x3e603c=_0x4b1a28[_0x43db('0xd9')];if(!this[_0x43db('0x6d')]['has'](_0x3e603c))return void this[_0x43db('0x6d')]['set'](_0x3e603c,{'range':_0x4b1a28[_0x43db('0x14')],'userId':_0xc87dfe});const _0x2189ee=this[_0x43db('0x6d')][_0x43db('0x3')](_0x3e603c),_0x455c25=_0x2189ee['range'],_0x314fb0=_0x4b1a28[_0x43db('0x1c')];null==_0x455c25&&null==_0x314fb0||_0x455c25&&_0x314fb0&&_0x455c25[_0x43db('0x2e')](_0x314fb0)?this[_0x43db('0x6d')][_0x43db('0xa9')](_0x4b1a28[_0x43db('0xd9')]):_0x2189ee[_0x43db('0x91')]=_0xc87dfe;}[_0x43db('0x62')](_0x180e67,_0x59b2f6){this[_0x43db('0x46')][_0x43db('0xf9')](_0x180e67[_0x43db('0x64')])?this['_diffRoots'][_0x43db('0x3')](_0x180e67[_0x43db('0x64')])['_isAttached']=_0x180e67[_0x43db('0x6')]:(this[_0x43db('0x46')][_0x43db('0x23')](_0x180e67[_0x43db('0x64')],G(_0x180e67[_0x43db('0x64')],!0x0)),this['_diffRootsAttributes'][_0x43db('0x23')](_0x180e67[_0x43db('0x64')],{}),_0x59b2f6&&this[_0x43db('0xbf')]['set'](_0x180e67[_0x43db('0x64')],G(_0x180e67[_0x43db('0x64')],!0x0)));const _0x2afa12=null===_0x180e67[_0x43db('0x21')]?null:_0x180e67[_0x43db('0x21')]||this['editor'][_0x43db('0x7c')]['get']('Users')['me']['id'],_0x585cd2=this[_0x43db('0x68')]['get'](_0x180e67[_0x43db('0x64')]);_0x585cd2&&_0x585cd2['userId']===_0x2afa12?this[_0x43db('0x68')][_0x43db('0xa9')](_0x180e67[_0x43db('0x64')]):this[_0x43db('0x68')][_0x43db('0x23')](_0x180e67[_0x43db('0x64')],{'userId':_0x2afa12,'isAttached':_0x180e67['isAdd']});}[_0x43db('0x9f')](_0x354d0f){const _0x318e45=this[_0x43db('0x67')]['get'](_0x354d0f[_0x43db('0xd5')][_0x43db('0x64')]);null===_0x354d0f['newValue']?delete _0x318e45[_0x354d0f[_0x43db('0x61')]]:_0x318e45[_0x354d0f[_0x43db('0x61')]]=_0x354d0f[_0x43db('0x31')];}}function q(_0x2d7e8a){const _0x5d1bd5=G(_0x2d7e8a[_0x43db('0x64')],_0x2d7e8a[_0x43db('0x2a')]());for(const _0x19067a of _0x2d7e8a['getChildren']()){const _0x1ac225=_0x19067a['_clone'](!0x0);_0x5d1bd5[_0x43db('0x7b')](_0x1ac225);}return _0x5d1bd5;}function G(_0x56892f,_0x10d85a=!0x0){const _0x194edb=new _0xb8f1b();return _0x194edb[_0x43db('0x64')]=_0x56892f,_0x194edb[_0x43db('0x82')]=_0x10d85a,_0x194edb[_0x43db('0x2a')]=()=>_0x194edb['_isAttached'],_0x194edb;}function L(_0x52e132,_0x5e64dd,_0x24461b){const _0x51bc94=_0x43db('0xb3')==_0x52e132['type']?_0x24461b[_0x43db('0x92')](_0x52e132[_0x43db('0xe2')],_0x43db('0x34')):_0x24461b[_0x43db('0x71')](_0x52e132[_0x43db('0xe2')]);return _0x24461b[_0x43db('0xb2')](_0x5e64dd,_0x51bc94[_0x43db('0xea')],_0x51bc94[_0x43db('0xc6')]);}function W(_0x506603,_0x552b5e,_0x139fbe){const _0x309b79='elementStart'==_0x506603['type']?_0x139fbe[_0x43db('0x92')](_0x506603[_0x43db('0xe2')],0x0):_0x139fbe[_0x43db('0x25')](_0x506603[_0x43db('0xe2')]);return _0x139fbe['createPositionFromPath'](_0x552b5e,_0x309b79['path'],_0x309b79[_0x43db('0xc6')]);}
|