@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230711.0 → 0.0.0-nightly-20230712.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisiontracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x17d9=['paragraph','userId','removeRootAttribute','toModel','previousPosition','_continueCurrentRevision','_makeIdsRoot','useFillerType','saveRevision','PENDING_ACTION_REVISION_HISTORY','diffData','config','isAdd','documentFragment','addRevision','graveyardPosition','createRangeIn','_processRootBeforeSave','finally','RevisionsRepository','markers','createRevision','_handleMergeOperation','_setConversion','getTime','marked','updateRevisions','getCurrentRevisionId','_diffRootsAttributes','$text','_revisionDataBuilder','marker','_touchedMarkers','getRevisionRootsAttributes','_createInitialRevision','_loadState','collaboration.channelId','_makeModelFromViewString','_baseIdsRoots','offset','_prepareViewToSave','rootName','set','RevisionTracker','addRoot','rootsAttributes','values','_handleRootAttributeOperation','_createFromRanges','targetPosition','_fixOperation','path','_getFromVersion','_createCurrentRevision','_savedMetaData','_baseRootsAttributes','_loadedStateData','for','_pendingAction','_generateTape','_addPendingAction','getOperation','includes','_handleOperation','editor','shift','delete','_getPreviousFrom','PendingActions','name','currentRevision','_fixPosition','toVersion','changeRootAttribute','plugins','_removeMetaData','Users','trim','reinsert','some','splitPosition','offsetSize','attributes','_diffRoots','_fixRange','init','deletions','editing','_clone','reverse','_execute','getUser','editor-initial-data-replaced-with-revision-data','_update','revision','createPositionBefore','stringify','newValue','initialData','getAncestors','text','_insertChild','insert','version','isReady','howMany','fromEntries','createRange','hasContent','_touched','_getVidAttributeName','_startingVersion','Initial\x20revision','getData','getRootNames','tableCell','_cloneOperation','fromVersion','elementStart','getAttributes','getOperations','_loadRevisionData','_idsRoots','children','_isAttached','insertions','setSource','repository','filter','default','size','startsWith','vid','element','vid_start','creator','authorsIds','move','end','_handleRootOperation','_initialRevisionId','getTransformedByOperation','_authorId','elementEnd','_handleInsertOperation','_makeRevision','_removeRevisionMarkers','parse','string','getRevision','upcast','root','_source','newRange','_handleMarkerOperation','type','model','slice','processor','history','pluginName','roots','_handleSplitOperation','_lastFrom','_getViewJson','getLatestVersion','_startingRevisionId','_markChanges','_revisionId','add','createPositionFromPath','item','addRevisionData','has','length','map','getChild','getRange','NEGATIVE_INFINITY','_calculateMetaData','createPositionAfter','getChildren','initial','find','_findInsertionIndex','position','_reset','push','_isPendingUpdate','attributesBefore','isEnabled','_setAttribute','adapter','_transformMarkers','setRevisionData','_bufferedUpdates','createPositionAt','_copyMarkers','remove','_lastTo','getIndex','addRootAttribute','_touchedRoots','getAttribute','createdAt','conversion','get','source','getNodeByPath','_getBaseVids','isAttached','clear','insertionPosition','toData','_initialRoots','_bufferUpdate','merge','dataToMarker','update','range','clone','_isInit','toView','dataDowncast','vid_end','data-revision-','then','_saveMetaData','from','attributesAfter','oldRange','creatorId','data','revision:','parent','sendBufferedUpdates','getRevisions','_handleMoveOperation','_baseRoots','revisionHistory.resumeUnsavedRevision','$graveyard','authors','baseVersion','split','_applyOperations','keys','keepParagraph','loadState','document','_removePendingAction','deletion','start','_markers','define','stickiness','getRevisionDocumentData','affectsData','Empty\x20document','getWalker','buildRevisionData','attachChange','_replaceEditorDataWithRevisionData','_getState'];(function(_0x72e138,_0x17d9a8){const _0x28a276=function(_0x5bef4c){while(--_0x5bef4c){_0x72e138['push'](_0x72e138['shift']());}};_0x28a276(++_0x17d9a8);}(_0x17d9,0x82));const _0x28a2=function(_0x72e138,_0x17d9a8){_0x72e138=_0x72e138-0x0;let _0x28a276=_0x17d9[_0x72e138];return _0x28a276;};import{Users as _0x35b603}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x2ad461,PendingActions as _0x40766f}from'ckeditor5/src/core';import{logWarning as _0x413a38,uid as _0x1edda7}from'ckeditor5/src/utils';import{Position as _0x5d03c2,Range as _0x560111,Element as _0x355c8e,DocumentFragment as _0x3aa78b,ViewText as _0x3d2116,ViewElement as _0x5b66ae,ViewContainerElement as _0x4d5c21,ViewAttributeElement as _0x5c58f0,ViewEmptyElement as _0x1d88fe,ViewRawElement as _0x3f889f,ViewUIElement as _0x56410a,ViewDocumentFragment as _0x4180b4}from'ckeditor5/src/engine';import _0x6423a5 from'./revisionsrepository';import{getTranslation as _0x5e8212}from'./utils/common-translations';import{cloneDeep as _0xeeeac1,isEqual as _0x5cc495}from'lodash-es';const B={'c':_0x4d5c21,'a':_0x5c58f0,'e':_0x1d88fe,'r':_0x3f889f,'u':_0x56410a};export default class l extends _0x2ad461{static get[_0x28a2('0x1e')](){return _0x28a2('0xb0');}static get['requires'](){return[_0x35b603,_0x6423a5,_0x40766f];}constructor(_0x3ed0c2){super(_0x3ed0c2),this[_0x28a2('0x3e')]=null,this[_0x28a2('0xcb')]=null,this[_0x28a2('0xa3')]=new H(this['editor']),this[_0x28a2('0xa')]=this[_0x28a2('0xc5')][_0x28a2('0x90')][_0x28a2('0x4c')](_0x28a2('0xa9'))||_0x28a2('0x34'),this[_0x28a2('0x41')]=new Map(),this[_0x28a2('0xbd')]=null;const _0x10cc5b=_0x1edda7();this['_source']={'history':this[_0x28a2('0xc5')][_0x28a2('0x1a')][_0x28a2('0x76')][_0x28a2('0x1d')],'getLatestVersion':()=>Promise['resolve'](this[_0x28a2('0xc5')][_0x28a2('0x1a')][_0x28a2('0x76')][_0x28a2('0xec')]),'getCurrentRevisionId':()=>_0x10cc5b},this[_0x28a2('0xaf')](_0x28a2('0xed'),!0x1),this[_0x28a2('0xaf')](_0x28a2('0x3c'),!0x0),this[_0x28a2('0xaf')](_0x28a2('0x3a'),!0x1),this[_0x28a2('0xc5')]['config'][_0x28a2('0x7b')](_0x28a2('0x6d'),!0x0),this[_0x28a2('0xc5')]['conversion'][_0x28a2('0xbe')](_0x28a2('0x14'))[_0x28a2('0x57')]({'view':'revision'});}[_0x28a2('0xda')](){this[_0x28a2('0x104')]=this[_0x28a2('0xc5')][_0x28a2('0xcf')][_0x28a2('0x4c')](_0x28a2('0x98')),this[_0x28a2('0x9c')](),this[_0x28a2('0xc5')][_0x28a2('0x66')]['on']('ready',()=>{const _0x13ba60=this[_0x28a2('0x104')][_0x28a2('0x13')](0x0),_0x165d1f=_0x13ba60&&null===_0x13ba60['creator']?_0x13ba60:null;if(this[_0x28a2('0x8a')]=!!_0x165d1f&&this['editor'][_0x28a2('0x90')][_0x28a2('0x4c')](_0x28a2('0x6d')),this['editor']['plugins'][_0x28a2('0x2b')]('RealTimeCollaborationClient')){const _0x5f0fda=this[_0x28a2('0x16')][_0x28a2('0xa0')](),_0x129f12=this[_0x28a2('0x104')][_0x28a2('0x13')](_0x5f0fda);if(_0x129f12)this[_0x28a2('0xf4')]=_0x129f12[_0x28a2('0xfa')],this[_0x28a2('0x8a')]=!0x1;else{const _0x4c676f=this['_source'][_0x28a2('0x1d')]['_operations'][_0x28a2('0x35')](_0x1eca99=>!_0x1eca99[_0x28a2('0x5b')]),_0x2aff9e=_0x4c676f?_0x4c676f[_0x28a2('0x70')]:this['_source'][_0x28a2('0x1d')][_0x28a2('0xec')];_0x13ba60?(_0x13ba60['toVersion']<_0x2aff9e&&_0x13ba60[_0x28a2('0xe2')]({'toVersion':_0x2aff9e}),this[_0x28a2('0x8a')]?(this['_source'][_0x28a2('0xa0')]=()=>_0x165d1f['id'],this[_0x28a2('0xf4')]=_0x165d1f[_0x28a2('0xfa')]):(this[_0x28a2('0xf4')]=_0x13ba60['toVersion'],this[_0x28a2('0x8a')]=!0x1)):(this[_0x28a2('0xf4')]=_0x2aff9e,this[_0x28a2('0x8a')]=!0x1);}}else _0x165d1f&&(this[_0x28a2('0xc5')][_0x28a2('0x1a')]['document'][_0x28a2('0x1d')][_0x28a2('0xec')]=Math['max'](_0x165d1f['toVersion'],this[_0x28a2('0xc5')][_0x28a2('0x1a')][_0x28a2('0x76')][_0x28a2('0x1d')][_0x28a2('0xec')]),_0x165d1f[_0x28a2('0xfa')]===_0x165d1f['toVersion']?(0x0!==_0x165d1f[_0x28a2('0xfa')]&&(this['_source'][_0x28a2('0xa0')]=()=>_0x165d1f['id']),this[_0x28a2('0x8a')]=!0x1):this[_0x28a2('0x8a')]&&(this['_source'][_0x28a2('0xa0')]=()=>_0x165d1f['id'],this[_0x28a2('0xf4')]=_0x165d1f[_0x28a2('0xfa')])),this['_continueCurrentRevision']||(this[_0x28a2('0xf4')]=this[_0x28a2('0xc5')][_0x28a2('0x1a')][_0x28a2('0x76')]['version']);this[_0x28a2('0xa3')][_0x28a2('0xda')](this[_0x28a2('0x16')][_0x28a2('0x1d')]),this['_createInitialRevision'](this[_0x28a2('0xf4')]),this[_0x28a2('0xba')](this[_0x28a2('0xf4')]),this[_0x28a2('0x3e')]&&this[_0x28a2('0x69')]();}),this['bind'](_0x28a2('0xed'))['to'](this,_0x28a2('0x3a'),_0x6086d2=>!_0x6086d2);}async['afterInit'](){if(this[_0x28a2('0x104')][_0x28a2('0x2c')]>0x0){const _0x31072c=this[_0x28a2('0x104')][_0x28a2('0x13')](0x0),_0x18763b=await this['getRevisionDocumentData'](_0x31072c),_0xa6f418=await this['getRevisionRootsAttributes'](_0x31072c);this['_replaceEditorDataWithRevisionData'](_0x18763b,_0xa6f418);}}[_0x28a2('0x103')](_0x5bc78c){this[_0x28a2('0x16')]=_0x5bc78c;}async[_0x28a2('0x58')](){const _0x3d379b=await this[_0x28a2('0x16')][_0x28a2('0x23')]();if(_0x3d379b>this[_0x28a2('0xcb')][_0x28a2('0xcd')]){await this['_loadState']();const _0x1f6f01=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3d379b});_0x1f6f01[_0x28a2('0x6f')]=_0x1f6f01[_0x28a2('0x6')][_0x28a2('0x2d')](_0x54cc2b=>this[_0x28a2('0xc5')][_0x28a2('0xcf')]['get'](_0x28a2('0xd1'))['getUser'](_0x54cc2b)),this[_0x28a2('0xcb')][_0x28a2('0xe2')](_0x1f6f01);}}async[_0x28a2('0xa8')](){this[_0x28a2('0x8a')]&&!this[_0x28a2('0xbd')]&&(await this['_loadRevisionData'](this[_0x28a2('0xcb')]),this[_0x28a2('0xa3')][_0x28a2('0x75')](this[_0x28a2('0xcb')]),this[_0x28a2('0xbd')]={'fromVersion':this[_0x28a2('0xcb')]['fromVersion'],'authors':this[_0x28a2('0xcb')][_0x28a2('0x6f')]['slice']()});}async[_0x28a2('0x8d')](_0x483d96={},_0x36bfc2=null){const _0xb33511=[];await this[_0x28a2('0xa8')](),this['_continueCurrentRevision']=!0x1,_0x36bfc2>this[_0x28a2('0xcb')]['toVersion']&&(_0x36bfc2=null),null===_0x36bfc2&&(_0x36bfc2=await this[_0x28a2('0x16')][_0x28a2('0x23')]());const _0x2d65da=this[_0x28a2('0xb9')](_0x36bfc2),_0x43721c=this[_0x28a2('0x81')]({'from':_0x2d65da,'to':_0x36bfc2});if(this[_0x28a2('0xcb')]['toVersion']<_0x36bfc2){const _0xd32989=this[_0x28a2('0x81')]({'revision':this[_0x28a2('0xcb')],'from':_0x36bfc2,'to':_0x36bfc2});_0xd32989[_0x28a2('0x6f')]=[],_0xd32989['authorsIds']=[],_0xd32989['id']=this[_0x28a2('0xcb')]['id'],this[_0x28a2('0xcb')][_0x28a2('0xe2')](_0xd32989,!0x0),delete _0xd32989[_0x28a2('0x6f')],_0xb33511[_0x28a2('0x39')](_0xd32989);}_0x483d96[_0x28a2('0x65')]=this[_0x28a2('0xc5')][_0x28a2('0xcf')][_0x28a2('0x4c')](_0x28a2('0xd1'))['me']['id'],_0x483d96['name']=_0x483d96[_0x28a2('0xca')]||null,_0x483d96['id']=_0x483d96['id']||_0x1edda7(),_0x483d96={..._0x483d96,..._0x43721c};const _0x1bbfbb=this[_0x28a2('0x2a')](_0x483d96);_0xb33511[_0x28a2('0x39')](_0x483d96);const _0x3c6cee=this['repository'][_0x28a2('0x46')](_0x1bbfbb);if(0x0!==_0x3c6cee){const _0x2210c6=this[_0x28a2('0x104')]['getRevision'](_0x3c6cee-0x1);if(_0x2210c6[_0x28a2('0xfa')]!==_0x36bfc2){const _0x4ee7ea=this['_revisionDataBuilder'][_0x28a2('0xf6')](_0x36bfc2,_0x2210c6[_0x28a2('0xcd')]),_0x4a80a2={'id':_0x2210c6['id'],'diffData':_0x4ee7ea[_0x28a2('0x8f')],'authorsIds':_0x4ee7ea[_0x28a2('0x6')],'authors':_0x4ee7ea[_0x28a2('0x6')]['map'](_0x5c9c37=>this['editor'][_0x28a2('0xcf')]['get'](_0x28a2('0xd1'))[_0x28a2('0xe0')](_0x5c9c37)),'fromVersion':_0x36bfc2};_0x2210c6===this['currentRevision']&&(_0x4a80a2[_0x28a2('0x4a')]=new Date(_0x483d96[_0x28a2('0x4a')][_0x28a2('0x9d')]()+0xa)),_0x2210c6[_0x28a2('0xe2')](_0x4a80a2,!0x0),delete _0x4a80a2[_0x28a2('0x6f')],_0xb33511[_0x28a2('0x39')](_0x4a80a2);}}if(this[_0x28a2('0x3e')]){for(const _0x54ef32 of _0xb33511)this['_bufferUpdate'](_0x54ef32['id'],_0x54ef32,!0x0);this[_0x28a2('0x69')]();}return _0x1bbfbb;}[_0x28a2('0x2a')](_0xbddffc){const _0x322ba1=this[_0x28a2('0x104')][_0x28a2('0x9a')](_0xbddffc);return this['adapter']&&_0x322ba1['on'](_0x28a2('0xe2'),(_0x2731a6,_0x565a99,_0x253bfb)=>{_0x253bfb||(this[_0x28a2('0x55')](_0x565a99['id'],_0x565a99,!0x0),this[_0x28a2('0x69')]());}),this[_0x28a2('0x104')][_0x28a2('0x93')](_0x322ba1,this[_0x28a2('0x36')](_0x322ba1)),_0x322ba1;}async[_0x28a2('0x7d')](_0x57cc1c){await this[_0x28a2('0xfe')](_0x57cc1c);const _0x20ba40={};for(const _0x56dcbe in _0x57cc1c[_0x28a2('0x8f')]){if(_0x57cc1c[_0x28a2('0x8f')][_0x56dcbe][_0x28a2('0x82')]&&!_0x57cc1c[_0x28a2('0x8f')][_0x56dcbe]['attachChange'][_0x28a2('0x50')])continue;const _0x37e4a1=this[_0x28a2('0x10')](JSON[_0x28a2('0x11')](_0x57cc1c['diffData'][_0x56dcbe][_0x28a2('0x102')])),_0x3056eb=this[_0x28a2('0xc5')]['editing']['view']['document'],_0x477e5a=new _0x4180b4(_0x3056eb,_0x37e4a1[_0x28a2('0x2d')](_0x9199d0=>J(_0x9199d0,this[_0x28a2('0xc5')])));this[_0x28a2('0xc5')][_0x28a2('0x66')][_0x28a2('0x1c')][_0x28a2('0x8c')](_0x28a2('0x9e')),_0x20ba40[_0x56dcbe]=this['editor'][_0x28a2('0x66')][_0x28a2('0x1c')][_0x28a2('0x53')](_0x477e5a),this[_0x28a2('0xc5')][_0x28a2('0x66')][_0x28a2('0x1c')]['useFillerType'](_0x28a2('0x106'));}return _0x20ba40;}async[_0x28a2('0xa6')](_0x178343){await this[_0x28a2('0xfe')](_0x178343);const _0x4f140b={};for(const _0x2e17b4 in _0x178343[_0x28a2('0x8f')])_0x178343[_0x28a2('0x8f')][_0x2e17b4][_0x28a2('0x82')]&&!_0x178343[_0x28a2('0x8f')][_0x2e17b4][_0x28a2('0x82')][_0x28a2('0x50')]||(_0x4f140b[_0x2e17b4]=_0x178343[_0x28a2('0x8f')][_0x2e17b4][_0x28a2('0x63')]||{});return _0x4f140b;}[_0x28a2('0x69')](){if(0x0===this[_0x28a2('0x41')]['size'])return;if(this[_0x28a2('0x3a')])return;let _0x2dac82=Array[_0x28a2('0x62')](this['_bufferedUpdates'][_0x28a2('0xb3')]());this[_0x28a2('0x41')][_0x28a2('0x51')]();for(let _0x57a3c3=0x0;_0x57a3c3<_0x2dac82[_0x28a2('0x2c')];_0x57a3c3++){const _0x344759=_0x2dac82[_0x57a3c3];let _0x5e82bc=!0x1;for(const _0x152cb3 of Object[_0x28a2('0x73')](_0x344759))void 0x0===_0x344759[_0x152cb3]?delete _0x344759[_0x152cb3]:'id'!==_0x152cb3&&(_0x5e82bc=!0x0);_0x5e82bc||(_0x2dac82[_0x57a3c3]=null);}if(_0x2dac82=_0x2dac82[_0x28a2('0x105')](_0xf9d05a=>null!==_0xf9d05a),!_0x2dac82['length'])return;for(let _0x3310da=0x0;_0x3310da<_0x2dac82[_0x28a2('0x2c')];_0x3310da++){const _0x41fb1a=_0x2dac82[_0x3310da];void 0x0!==_0x41fb1a['fromVersion']&&void 0x0===_0x41fb1a['toVersion']&&(_0x41fb1a[_0x28a2('0xcd')]=this[_0x28a2('0x104')][_0x28a2('0x13')](_0x41fb1a['id'])[_0x28a2('0xcd')]),void 0x0!==_0x41fb1a['toVersion']&&void 0x0===_0x41fb1a['fromVersion']&&(_0x41fb1a[_0x28a2('0xfa')]=this[_0x28a2('0x104')][_0x28a2('0x13')](_0x41fb1a['id'])[_0x28a2('0xfa')]);}const _0x5d97e=this[_0x28a2('0xc5')][_0x28a2('0x90')][_0x28a2('0x4c')](_0x28a2('0xa9'));this[_0x28a2('0x3a')]=!0x0,this[_0x28a2('0xc1')](),this['adapter'][_0x28a2('0x9f')](_0x2dac82,_0x5d97e)[_0x28a2('0x97')](()=>{this[_0x28a2('0x3a')]=!0x1;})[_0x28a2('0x60')](_0x3fb12e=>{if(_0x3fb12e)for(const _0x4fc924 of _0x3fb12e)this[_0x28a2('0x40')]({'id':_0x4fc924['id'],'createdAt':_0x4fc924['createdAt']});this[_0x28a2('0x77')](),this[_0x28a2('0x69')]();});}[_0x28a2('0x83')](_0xbad93b,_0xfd9875){let _0x2d3654=this[_0x28a2('0xc5')][_0x28a2('0x90')][_0x28a2('0x4c')](_0x28a2('0xe7')),_0x4e9094=this[_0x28a2('0xc5')][_0x28a2('0x90')]['get']('rootsAttributes');if(void 0x0===_0x2d3654){_0x2d3654={};for(const _0x15a065 of this[_0x28a2('0xc5')][_0x28a2('0x1a')]['document'][_0x28a2('0xf7')]())_0x2d3654[_0x15a065]='';}if('string'==typeof _0x2d3654&&(_0x2d3654={'main':_0x2d3654}),void 0x0===_0x4e9094){_0x4e9094={};for(const _0x47a0ff of this[_0x28a2('0xc5')][_0x28a2('0x1a')]['document'][_0x28a2('0xf7')]())_0x4e9094[_0x47a0ff]={};}let _0x2f60fc=!0x1;const _0x1910ff=Object[_0x28a2('0x73')](_0x2d3654),_0x57fd2a=Object[_0x28a2('0x73')](_0xbad93b);for(const _0x20bf06 of _0x1910ff){if(_0x2d3654[_0x20bf06]!==_0xbad93b[_0x20bf06]&&''!==_0x2d3654[_0x20bf06][_0x28a2('0xd2')]()){_0x2f60fc=!0x0;break;}if(!_0x5cc495(_0x4e9094[_0x20bf06],_0xfd9875[_0x20bf06])&&Object[_0x28a2('0x73')](_0x4e9094[_0x20bf06])[_0x28a2('0x2c')]>0x0){_0x2f60fc=!0x0;break;}}_0x2f60fc||(_0x2f60fc=_0x57fd2a[_0x28a2('0xd4')](_0x887c63=>!_0x1910ff[_0x28a2('0xc3')](_0x887c63))),_0x2f60fc&&_0x413a38(_0x28a2('0xe1'),{'editorData':_0x2d3654,'editorRootsAttributes':_0x4e9094,'revisionData':_0xbad93b,'revisionRootsAttributes':_0xfd9875}),this[_0x28a2('0xc5')][_0x28a2('0x90')]['set'](_0x28a2('0xe7'),_0xbad93b),this['editor'][_0x28a2('0x90')][_0x28a2('0xaf')](_0x28a2('0xb2'),_0xfd9875);}[_0x28a2('0xc1')](){if(!this['_pendingAction']){const _0x5d37f4=this[_0x28a2('0xc5')]['plugins'][_0x28a2('0x4c')](_0x28a2('0xc9'));this[_0x28a2('0xbf')]=_0x5d37f4[_0x28a2('0x27')](_0x5e8212(this[_0x28a2('0xc5')]['locale'],_0x28a2('0x8e')));}}[_0x28a2('0x77')](){this[_0x28a2('0xbf')]&&(this[_0x28a2('0xc5')][_0x28a2('0xcf')]['get'](_0x28a2('0xc9'))[_0x28a2('0x44')](this[_0x28a2('0xbf')]),this[_0x28a2('0xbf')]=null);}['_findInsertionIndex'](_0x2c4424){const _0x1240ae=this['repository'][_0x28a2('0x6a')]();_0x1240ae[_0x28a2('0xde')]();let _0x2050c4=0x0;for(;_0x2050c4<_0x1240ae[_0x28a2('0x2c')];){const _0x35650a=_0x1240ae[_0x2050c4];if(_0x35650a===this['currentRevision']){_0x2050c4++;continue;}if(_0x35650a['id']===this['_initialRevisionId'])break;const _0x2868fc=_0x2c4424[_0x28a2('0xcd')]-_0x35650a[_0x28a2('0xcd')]||_0x2c4424[_0x28a2('0xfa')]-_0x35650a[_0x28a2('0xfa')];if(_0x2868fc>0x0)break;if(_0x2868fc<0x0)_0x2050c4++;else{if(!_0x2c4424[_0x28a2('0x5')]&&_0x35650a['creator'])break;if(_0x35650a[_0x28a2('0x5')]||!_0x2c4424[_0x28a2('0x5')]){if(_0x2c4424[_0x28a2('0x4a')]>_0x35650a[_0x28a2('0x4a')])break;_0x2050c4++;}else _0x2050c4++;}}return _0x2050c4;}[_0x28a2('0x40')](_0x24d52b){const _0x35f1d3=this[_0x28a2('0x104')][_0x28a2('0x13')](_0x24d52b['id']);if(_0x24d52b['createdAt']&&(_0x24d52b[_0x28a2('0x4a')]=new Date(_0x24d52b[_0x28a2('0x4a')])),_0x24d52b[_0x28a2('0x6')]){const _0x2005f0=this[_0x28a2('0xc5')][_0x28a2('0xcf')]['get'](_0x28a2('0xd1'));_0x24d52b[_0x28a2('0x6f')]=_0x24d52b[_0x28a2('0x6')]['map'](_0x11fdbd=>_0x2005f0[_0x28a2('0xe0')](_0x11fdbd));}_0x35f1d3['_update'](_0x24d52b,!0x0);}['buildRevisionData']({revision:_0x3e27b1=null,from:_0x3aedcf=null,to:_0x1f7903=null}){_0x3aedcf=null!==_0x3aedcf?_0x3aedcf:_0x3e27b1['fromVersion'],_0x1f7903=null!==_0x1f7903?_0x1f7903:_0x3e27b1['toVersion'];const _0x1b2c9a=this['_revisionDataBuilder'][_0x28a2('0xf6')](_0x3aedcf,_0x1f7903),_0x2e2dc3={'diffData':_0x1b2c9a[_0x28a2('0x8f')],'authorsIds':_0x1b2c9a[_0x28a2('0x6')],'fromVersion':_0x3aedcf,'toVersion':_0x1f7903};if(!_0x3e27b1||_0x1f7903!==_0x3e27b1['toVersion']){const _0x41f1c7=_0x1f7903-0x1,_0x79848c=this['_source'][_0x28a2('0x1d')][_0x28a2('0xc2')](_0x41f1c7);_0x2e2dc3[_0x28a2('0x4a')]=_0x79848c&&_0x79848c['createdAt']||new Date();}if(this[_0x28a2('0xbd')]&&_0x3aedcf===this['_loadedStateData']['fromVersion'])for(const _0x334f2a of this[_0x28a2('0xbd')][_0x28a2('0x6f')])_0x2e2dc3[_0x28a2('0x6')][_0x28a2('0xc3')](_0x334f2a['id'])||_0x2e2dc3[_0x28a2('0x6')][_0x28a2('0x39')](_0x334f2a['id']);return _0x2e2dc3;}[_0x28a2('0xfe')](_0x4c1d5b){if(!_0x4c1d5b||_0x4c1d5b[_0x28a2('0x8f')])return Promise['resolve']();{const _0x5aab00=this['editor'][_0x28a2('0x90')][_0x28a2('0x4c')](_0x28a2('0xa9'));return this[_0x28a2('0x3e')][_0x28a2('0x13')]({'channelId':_0x5aab00,'revisionId':_0x4c1d5b['id']})[_0x28a2('0x60')](_0x42c932=>{_0x4c1d5b[_0x28a2('0x8f')]=_0x42c932['diffData'];});}}['_bufferUpdate'](_0x475818,_0x869995,_0x30fde0){if(this[_0x28a2('0x41')][_0x28a2('0x2b')](_0x475818)){const _0x20a475=this[_0x28a2('0x41')][_0x28a2('0x4c')](_0x475818);_0x869995=_0x30fde0?{..._0x20a475,..._0x869995}:{..._0x869995,..._0x20a475};}this[_0x28a2('0x41')][_0x28a2('0xaf')](_0x475818,_0x869995);}['_getFromVersion'](_0x15229a){const _0x19f441=this[_0x28a2('0x104')]['getRevisions']();_0x19f441[_0x28a2('0xde')](),_0x19f441[_0x28a2('0xc6')]();const _0x33018f=_0x19f441[_0x28a2('0x35')](_0xd61932=>_0xd61932[_0x28a2('0xcd')]<=_0x15229a)[_0x28a2('0xcd')];return _0x33018f<this[_0x28a2('0xf4')]?this[_0x28a2('0xf4')]:_0x33018f;}[_0x28a2('0xa7')](_0x108782){const _0x54bebf=this['repository'][_0x28a2('0x13')](this[_0x28a2('0x104')][_0x28a2('0x2c')]-0x1);if(_0x54bebf)this[_0x28a2('0xa')]=_0x54bebf['id'];else{const _0x80b364=!this[_0x28a2('0xc5')][_0x28a2('0x1a')][_0x28a2('0x76')][_0x28a2('0x1f')]['find'](_0x52169e=>this[_0x28a2('0xc5')][_0x28a2('0x1a')][_0x28a2('0xf1')](_0x52169e)),_0x28df0a=this[_0x28a2('0xc5')][_0x28a2('0xcf')]['get'](_0x28a2('0xd1'))['me']['id'],_0x532408=_0x5e8212(this[_0x28a2('0xc5')]['locale'],_0x80b364?_0x28a2('0x7f'):_0x28a2('0xf5'));this[_0x28a2('0xf')]({'from':_0x108782,'to':_0x108782,'id':this[_0x28a2('0xa')],'name':_0x532408,'creatorId':_0x28df0a});}}[_0x28a2('0xba')](_0xb6188c){const _0x9e13e8=this[_0x28a2('0x16')][_0x28a2('0xa0')]();this['currentRevision']=this[_0x28a2('0x104')][_0x28a2('0x13')](_0x9e13e8),this[_0x28a2('0xcb')]||(this[_0x28a2('0xcb')]=this['_makeRevision']({'from':_0xb6188c,'to':_0xb6188c,'id':_0x9e13e8,'name':'','creatorId':null}));}['_makeRevision']({name:_0x22a44c,from:_0x4404af,to:_0x5f2756,creatorId:_0x59db6f,id:_0x1ad92a}){const _0x57af27=this[_0x28a2('0x81')]({'from':_0x4404af,'to':_0x5f2756});_0x57af27['name']=_0x22a44c,_0x57af27[_0x28a2('0x65')]=_0x59db6f,_0x57af27['id']=_0x1ad92a;const _0x3744c1=this[_0x28a2('0x2a')](_0x57af27);return this[_0x28a2('0x3e')]&&this[_0x28a2('0x55')](_0x57af27['id'],_0x57af27,!0x0),_0x3744c1;}[_0x28a2('0x9c')](){this['editor'][_0x28a2('0x4b')]['for'](_0x28a2('0x5d'))['markerToData']({'model':_0x28a2('0xe3')});}['_removeRevisionMarkers'](_0x293b44){return(_0x293b44=_0x293b44['filter'](_0x220612=>!_0x220612[_0x28a2('0xca')]||'revision-start'!==_0x220612[_0x28a2('0xca')]&&'revision-end'!==_0x220612[_0x28a2('0xca')]))['forEach'](_0x40658c=>{'string'!=typeof _0x40658c&&(_0x40658c[_0x28a2('0x100')]=this[_0x28a2('0x10')](_0x40658c[_0x28a2('0x100')]),_0x40658c[_0x28a2('0xd7')]=_0x40658c[_0x28a2('0xd7')][_0x28a2('0x105')](_0x12153c=>!_0x12153c[0x0][_0x28a2('0x1')](_0x28a2('0x5f'))));}),_0x293b44;}}function J(_0x36fc02,_0x5abe54){const _0x47eeba=_0x5abe54['editing']['view'][_0x28a2('0x76')];if(_0x28a2('0x12')==typeof _0x36fc02)return new _0x3d2116(_0x47eeba,_0x36fc02);{const _0x3dfe1c=_0x36fc02['children']['map'](_0x2e2124=>J(_0x2e2124,_0x5abe54));return new(B[_0x36fc02[(_0x28a2('0x19'))]]||_0x5b66ae)(_0x47eeba,_0x36fc02['name'],_0x36fc02[_0x28a2('0xd7')],_0x3dfe1c);}}class H{constructor(_0x45a3cc){this[_0x28a2('0xc5')]=_0x45a3cc,this[_0x28a2('0xbb')]=new Map(),this[_0x28a2('0x21')]=-0x1,this['_lastTo']=-0x1,this[_0x28a2('0x7a')]=new Map(),this[_0x28a2('0xd8')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x28a2('0x6c')]=new Map(),this[_0x28a2('0xbc')]=new Map(),this[_0x28a2('0xff')]=new Map(),this[_0x28a2('0xab')]=new Map(),this[_0x28a2('0xf2')]=new Map(),this[_0x28a2('0xa5')]=new Map(),this[_0x28a2('0x48')]=new Map(),this[_0x28a2('0x26')]=0x1,this[_0x28a2('0x54')]=this['editor'][_0x28a2('0x1a')]['document'][_0x28a2('0xf7')](),this[_0x28a2('0x54')][_0x28a2('0x39')](_0x28a2('0x6e'));}[_0x28a2('0xda')](_0x395e4d){this['source']=_0x395e4d;const _0x7883a6=new Map(),_0x521d5e=new Map(),_0x3da6ab=this['editor']['model'][_0x28a2('0x76')][_0x28a2('0xf7')](!0x0);_0x3da6ab[_0x28a2('0x39')](_0x28a2('0x6e'));for(const _0x1b9d69 of _0x3da6ab){const _0x249922=this['editor']['model']['document']['getRoot'](_0x1b9d69),_0x5e5228=q(_0x249922);_0x7883a6['set'](_0x1b9d69,_0x5e5228),_0x521d5e['set'](_0x1b9d69,Object[_0x28a2('0xef')](_0x249922['getAttributes']()));}const _0xf9653a=Array[_0x28a2('0x62')](this[_0x28a2('0xc5')][_0x28a2('0x1a')]['markers'])[_0x28a2('0x2d')](_0x1b1226=>[_0x1b1226[_0x28a2('0xca')],_0x1b1226[_0x28a2('0x2f')]()]),_0x3963b8=this[_0x28a2('0x4d')][_0x28a2('0xec')];this[_0x28a2('0x61')](_0x3963b8,_0x7883a6,_0xf9653a,_0x521d5e),this[_0x28a2('0x24')]=this[_0x28a2('0x26')];const _0x49740b=new Map(),_0x1c1973=new Map();for(const _0x29dcea of this[_0x28a2('0x54')]){const _0x252dd0=G(_0x29dcea);_0x49740b['set'](_0x29dcea,_0x252dd0),_0x1c1973[_0x28a2('0xaf')](_0x29dcea,{});}this[_0x28a2('0x61')](Number[_0x28a2('0x30')],_0x49740b,[],_0x1c1973);}['getData'](_0x3dbdfa,_0x30006c){if(this['_lastFrom']===_0x3dbdfa&&this[_0x28a2('0x45')]<=_0x30006c)this[_0x28a2('0xbb')][_0x28a2('0x0')]>0x1&&this[_0x28a2('0xd0')](this[_0x28a2('0x45')]),this[_0x28a2('0x72')](this[_0x28a2('0x45')],_0x30006c,!0x0);else{if(!this[_0x28a2('0xbb')][_0x28a2('0x2b')](_0x3dbdfa)){const _0x411206=this[_0x28a2('0xc8')](_0x3dbdfa);this[_0x28a2('0x31')](_0x411206,_0x3dbdfa,!0x1);}this[_0x28a2('0x31')](_0x3dbdfa,_0x30006c,!0x0);}return this[_0x28a2('0x21')]=_0x3dbdfa,this['_lastTo']=_0x30006c,this[_0x28a2('0x84')]();}[_0x28a2('0x75')](_0x5c0597){this[_0x28a2('0x38')](),this['_lastFrom']=_0x5c0597[_0x28a2('0xfa')],this['_lastTo']=_0x5c0597[_0x28a2('0xcd')];for(const _0x36dbb4 in _0x5c0597[_0x28a2('0x8f')]){const _0x45d2ca=_0x5c0597[_0x28a2('0x8f')][_0x36dbb4]['attachChange'],_0x5db55a=_0xeeeac1(_0x5c0597[_0x28a2('0x8f')][_0x36dbb4][_0x28a2('0x3b')])||{},_0x24ade8=this['_makeModelFromViewString'](_0x5c0597[_0x28a2('0x8f')][_0x36dbb4]['deletions']);_0x24ade8[_0x28a2('0xae')]=_0x36dbb4,_0x24ade8['_isAttached']=!_0x45d2ca||!_0x45d2ca['isAttached'],_0x24ade8['isAttached']=()=>_0x24ade8[_0x28a2('0x101')],this[_0x28a2('0x6c')][_0x28a2('0xaf')](_0x36dbb4,_0x24ade8),this[_0x28a2('0xbc')]['set'](_0x36dbb4,_0x5db55a),_0x45d2ca&&this['_touchedRoots']['set'](_0x36dbb4,_0x45d2ca);const _0x4cb5e8=this[_0x28a2('0x8b')](_0x24ade8);this['_baseIdsRoots'][_0x28a2('0xaf')](_0x36dbb4,_0x4cb5e8);for(const [_0x499bce,_0x55a216]of _0x24ade8['markers']){if(!_0x499bce[_0x28a2('0x1')](_0x28a2('0x67')))continue;const _0x5e24b9=_0x499bce[_0x28a2('0x71')](':')[0x2];for(const _0x4952f8 of _0x55a216[_0x28a2('0x80')]({'singleCharacters':!0x0})){const _0x19d4c3=this[_0x28a2('0xf3')](_0x4952f8),_0x5c0582='elementEnd'==_0x4952f8['type']?_0x4952f8[_0x28a2('0x89')][_0x28a2('0xb8')][_0x28a2('0x1b')](0x0,-0x1):_0x4952f8[_0x28a2('0x89')][_0x28a2('0xb8')],_0x1ef32a=_0x4cb5e8['getNodeByPath'](_0x5c0582)['getAttribute'](_0x19d4c3);this[_0x28a2('0xf2')]['set'](_0x1ef32a,{'userId':_0x5e24b9});}}}this['_startingRevisionId']=this[_0x28a2('0x26')];const _0x1d62e4=[...Array(this['_revisionId'])['keys']()][_0x28a2('0x1b')](0x1)['filter'](_0x70fb2e=>!this['_touched']['has'](_0x70fb2e));let _0x3783ea=0x0;const _0x2c6d4f=new Map();for(const _0x35cc41 in _0x5c0597[_0x28a2('0x8f')]){const _0x145639=_0x5c0597['diffData'][_0x35cc41][_0x28a2('0x82')],_0xc0fbb1=_0xeeeac1(_0x5c0597[_0x28a2('0x8f')][_0x35cc41][_0x28a2('0x63')])||{},_0x44d615=this[_0x28a2('0xaa')](_0x5c0597[_0x28a2('0x8f')][_0x35cc41]['insertions']);_0x44d615[_0x28a2('0xae')]=_0x35cc41,_0x44d615[_0x28a2('0x101')]=!_0x145639||_0x145639[_0x28a2('0x50')],_0x44d615[_0x28a2('0x50')]=()=>_0x44d615[_0x28a2('0x101')],this[_0x28a2('0xd8')][_0x28a2('0xaf')](_0x35cc41,_0x44d615),this[_0x28a2('0xa1')][_0x28a2('0xaf')](_0x35cc41,_0xc0fbb1);const _0x3ffb8f=this[_0x28a2('0x8b')](_0x44d615,Number['NEGATIVE_INFINITY']);this[_0x28a2('0xff')][_0x28a2('0xaf')](_0x35cc41,_0x3ffb8f),_0x2c6d4f[_0x28a2('0xaf')](_0x35cc41,_0x44d615[_0x28a2('0x50')]()?_0xc0fbb1:{});for(const [_0x170e20,_0x393c79]of _0x44d615[_0x28a2('0x99')]){if(!_0x170e20[_0x28a2('0x1')](_0x28a2('0x67')))continue;const _0x3e2436=_0x170e20[_0x28a2('0x71')](':')[0x2];for(const _0x43ce86 of _0x393c79[_0x28a2('0x80')]({'singleCharacters':!0x0})){const _0x5ea045=this['_getVidAttributeName'](_0x43ce86),_0x51b3ee=this[_0x28a2('0x26')]++,_0x54ca05=_0x28a2('0xd')==_0x43ce86['type']?_0x43ce86[_0x28a2('0x89')][_0x28a2('0xb8')][_0x28a2('0x1b')](0x0,-0x1):_0x43ce86[_0x28a2('0x89')][_0x28a2('0xb8')];_0x3ffb8f[_0x28a2('0x4e')](_0x54ca05)[_0x28a2('0x3d')](_0x5ea045,_0x51b3ee),this['_touched'][_0x28a2('0xaf')](_0x51b3ee,{'userId':_0x3e2436});}}for(const _0x2d81da of this[_0x28a2('0xc5')]['model'][_0x28a2('0x95')](_0x44d615)[_0x28a2('0x80')]({'singleCharacters':!0x0})){const _0x5e9f70=this[_0x28a2('0xf3')](_0x2d81da),_0x58fb5c='elementEnd'==_0x2d81da[_0x28a2('0x19')]?_0x2d81da['previousPosition'][_0x28a2('0xb8')]['slice'](0x0,-0x1):_0x2d81da[_0x28a2('0x89')][_0x28a2('0xb8')],_0x3892d5=_0x3ffb8f['getNodeByPath'](_0x58fb5c);_0x3892d5['getAttribute'](_0x5e9f70)>0x0||_0x3892d5[_0x28a2('0x3d')](_0x5e9f70,_0x1d62e4[_0x3783ea++]);}for(const [_0x308ce0,_0x30e829]of _0x44d615[_0x28a2('0x99')])_0x308ce0[_0x28a2('0x1')](_0x28a2('0x67'))||this[_0x28a2('0x7a')][_0x28a2('0xaf')](_0x308ce0,_0x30e829);}const _0x47ae52=G(_0x28a2('0x6e'));this[_0x28a2('0x6c')][_0x28a2('0xaf')](_0x28a2('0x6e'),_0x47ae52),this[_0x28a2('0xab')][_0x28a2('0xaf')](_0x28a2('0x6e'),this['_makeIdsRoot'](_0x47ae52,0x1));const _0x4ea15f=G('$graveyard');this[_0x28a2('0xd8')][_0x28a2('0xaf')](_0x28a2('0x6e'),_0x4ea15f),this[_0x28a2('0xff')][_0x28a2('0xaf')]('$graveyard',this[_0x28a2('0x8b')](_0x4ea15f,0x1));const _0xdeac8a=Array[_0x28a2('0x62')](this['_diffRoots'])['map'](([_0x17a867,_0x31a121])=>[_0x17a867,q(_0x31a121)]);this[_0x28a2('0x61')](this[_0x28a2('0x45')],_0xdeac8a,this[_0x28a2('0x7a')],_0x2c6d4f);}[_0x28a2('0xaa')](_0x3b3472){const _0x5e88dd=JSON['parse'](_0x3b3472),_0x56f00e=this[_0x28a2('0xc5')][_0x28a2('0xdc')]['view'][_0x28a2('0x76')],_0x431a53=new _0x4180b4(_0x56f00e,_0x5e88dd[_0x28a2('0x2d')](_0xa6ed30=>J(_0xa6ed30,this[_0x28a2('0xc5')])));return this[_0x28a2('0xc5')][_0x28a2('0x66')][_0x28a2('0x88')](_0x431a53);}[_0x28a2('0x61')](_0x4ffdd8,_0x330814,_0x36d119,_0x45d016){const _0x30ebd1=new Map(_0x330814),_0x72d083=new Map(_0xeeeac1(_0x45d016)),_0x1be22d=new Map();for(const [_0x211d83,_0x486154]of _0x36d119)_0x1be22d[_0x28a2('0xaf')](_0x211d83,{'start':_0x486154[_0x28a2('0x79')][_0x28a2('0x5a')](),'end':_0x486154[_0x28a2('0x8')]['clone'](),'rootName':_0x486154[_0x28a2('0x15')]['rootName']});this[_0x28a2('0xbb')][_0x28a2('0xaf')](_0x4ffdd8,{'roots':_0x30ebd1,'markers':_0x1be22d,'rootsAttributes':_0x72d083});}[_0x28a2('0xd0')](_0x3cacb2){this[_0x28a2('0xbb')][_0x28a2('0xc7')](_0x3cacb2);}['reInit'](){this[_0x28a2('0x38')](),this[_0x28a2('0x21')]=-0x1,this['_lastTo']=-0x1,this['_savedMetaData'][_0x28a2('0x51')](),this[_0x28a2('0xda')](this[_0x28a2('0x4d')]);}[_0x28a2('0x38')](){this['_touched'][_0x28a2('0x51')](),this[_0x28a2('0xa5')][_0x28a2('0x51')](),this[_0x28a2('0x48')][_0x28a2('0x51')](),this['_diffRoots'][_0x28a2('0x51')](),this[_0x28a2('0xa1')][_0x28a2('0x51')](),this[_0x28a2('0x6c')]['clear'](),this[_0x28a2('0xbc')][_0x28a2('0x51')](),this[_0x28a2('0xff')][_0x28a2('0x51')](),this[_0x28a2('0xab')]['clear'](),this[_0x28a2('0x7a')][_0x28a2('0x51')](),this[_0x28a2('0x26')]=0x1,this[_0x28a2('0x24')]=this[_0x28a2('0x26')];}[_0x28a2('0x8b')](_0x419a58,_0x5f36c8=null){let _0x4a213d=null;_0x419a58['is'](_0x28a2('0x92'))||(_0x4a213d=new _0x355c8e(_0x419a58[_0x28a2('0xca')],{'vid_start':null===_0x5f36c8?this[_0x28a2('0x26')]++:_0x5f36c8++}));const _0xe6796a=[];for(const _0x320126 of _0x419a58[_0x28a2('0x33')]())if(_0x320126['is']('element')){_0xe6796a['push'](this['_makeIdsRoot'](_0x320126,_0x5f36c8));const _0x2ef6f8=_0xe6796a[_0xe6796a['length']-0x1];null!==_0x5f36c8&&(_0x5f36c8=_0x2ef6f8['is'](_0x28a2('0x3'),_0x28a2('0xa2'))?_0x2ef6f8['getAttribute'](_0x28a2('0x2'))+0x1:_0x2ef6f8['getAttribute']('vid_end')+0x1);}else for(let _0x364bc1=0x0;_0x364bc1<_0x320126[_0x28a2('0xd6')];_0x364bc1++)_0xe6796a[_0x28a2('0x39')](new _0x355c8e(_0x28a2('0xa2'),{'vid':null===_0x5f36c8?this[_0x28a2('0x26')]++:_0x5f36c8++}));if(_0x419a58['is'](_0x28a2('0x92'))){const _0x54bf4c=G(_0x419a58[_0x28a2('0xae')]);return _0x54bf4c[_0x28a2('0xea')](0x0,_0xe6796a),_0x54bf4c;}return _0x4a213d[_0x28a2('0x3d')](_0x28a2('0x5e'),null===_0x5f36c8?this['_revisionId']++:_0x5f36c8++),_0x4a213d[_0x28a2('0xea')](0x0,_0xe6796a),_0x4a213d;}[_0x28a2('0x31')](_0x15b691,_0x2ce07d,_0x516430){this[_0x28a2('0x38')]();const {roots:_0x4e17a7,markers:_0x329222,rootsAttributes:_0x19bb4f}=this[_0x28a2('0xbb')][_0x28a2('0x4c')](_0x15b691);this[_0x28a2('0x6c')]=new Map(_0x4e17a7),this[_0x28a2('0xbc')]=new Map(_0xeeeac1(_0x19bb4f));for(const [_0x22bef6,_0x16d026]of this[_0x28a2('0x6c')])if(_0x28a2('0x6e')!==_0x22bef6&&(this[_0x28a2('0xd8')][_0x28a2('0xaf')](_0x22bef6,q(_0x16d026)),this[_0x28a2('0xa1')]=new Map(_0xeeeac1(_0x19bb4f)),_0x516430)){const _0x11d01c=this[_0x28a2('0x26')];this[_0x28a2('0xff')][_0x28a2('0xaf')](_0x22bef6,this[_0x28a2('0x8b')](_0x16d026)),this[_0x28a2('0xab')][_0x28a2('0xaf')](_0x22bef6,this[_0x28a2('0x8b')](_0x16d026,_0x11d01c));}this[_0x28a2('0x24')]=this[_0x28a2('0x26')],this[_0x28a2('0xd8')][_0x28a2('0xaf')](_0x28a2('0x6e'),q(this[_0x28a2('0x6c')][_0x28a2('0x4c')](_0x28a2('0x6e')))),_0x516430&&this[_0x28a2('0xff')][_0x28a2('0xaf')](_0x28a2('0x6e'),this[_0x28a2('0x8b')](this['_baseRoots'][_0x28a2('0x4c')](_0x28a2('0x6e'))));for(const [_0x30af7e,_0x1fa7d9]of _0x329222){const _0x11cced=this[_0x28a2('0x6c')][_0x28a2('0x4c')](_0x1fa7d9['rootName']),_0x120eb=this[_0x28a2('0xd8')][_0x28a2('0x4c')](_0x1fa7d9[_0x28a2('0xae')]),_0x51d978=new _0x560111(this[_0x28a2('0xcc')](_0x1fa7d9[_0x28a2('0x79')],_0x11cced),this[_0x28a2('0xcc')](_0x1fa7d9[_0x28a2('0x8')],_0x11cced)),_0x25608f=this[_0x28a2('0xd9')](_0x51d978,_0x120eb);_0x11cced['markers'][_0x28a2('0xaf')](_0x30af7e,_0x51d978),this['_markers'][_0x28a2('0xaf')](_0x30af7e,_0x25608f);}this['_applyOperations'](_0x15b691,_0x2ce07d,_0x516430);}[_0x28a2('0x72')](_0x8222b2,_0x2190ec,_0x2eeaeb){for(const _0xc848f7 of this[_0x28a2('0x4d')][_0x28a2('0xfd')](_0x8222b2,_0x2190ec))this[_0x28a2('0xc4')](_0xc848f7,_0x2eeaeb);for(const _0x3e5313 of this[_0x28a2('0xd8')][_0x28a2('0xb3')]())_0x3e5313['markers']['clear']();for(const [_0x4240f2,_0x3fc92a]of this[_0x28a2('0x7a')]){this[_0x28a2('0xd8')][_0x28a2('0x4c')](_0x3fc92a[_0x28a2('0x15')][_0x28a2('0xae')])[_0x28a2('0x99')][_0x28a2('0xaf')](_0x4240f2,_0x3fc92a[_0x28a2('0x5a')]());}const _0x132924=new Map(),_0x560c8c=new Map();for(const [_0x3bad20,_0x8b2ecf]of this[_0x28a2('0xd8')])_0x132924[_0x28a2('0xaf')](_0x3bad20,q(_0x8b2ecf)),_0x560c8c[_0x28a2('0xaf')](_0x3bad20,this[_0x28a2('0xa1')][_0x28a2('0x4c')](_0x3bad20));this[_0x28a2('0x61')](_0x2190ec,_0x132924,this['_markers'],_0x560c8c);}[_0x28a2('0xc8')](_0x22aa14){const _0x1047b0=Array[_0x28a2('0x62')](this[_0x28a2('0xbb')]['keys']());_0x1047b0['sort']((_0x219042,_0x4b49ea)=>_0x219042-_0x4b49ea),_0x1047b0[_0x28a2('0xde')]();for(const _0x483fd4 of _0x1047b0)if(_0x483fd4<_0x22aa14)return _0x483fd4;return Number[_0x28a2('0x30')];}[_0x28a2('0x43')](_0x59c640,_0x4e78a4){const _0x35c9d5=Array['from'](_0x4e78a4[_0x28a2('0x99')])[_0x28a2('0x2d')](([_0x226e28,_0x2ffb58])=>[_0x226e28,this['_fixRange'](_0x2ffb58,_0x59c640)]);_0x59c640[_0x28a2('0x99')]=new Map(_0x35c9d5);}['_transformMarkers'](_0x176fa6){for(const _0x3c23dd of this[_0x28a2('0x7a')][_0x28a2('0xb3')]()){const _0xfe0ea=_0x3c23dd[_0x28a2('0xb')](_0x176fa6),_0x4f09f8=_0x560111[_0x28a2('0xb5')](_0xfe0ea);_0x3c23dd[_0x28a2('0x79')]=_0x4f09f8[_0x28a2('0x79')],_0x3c23dd[_0x28a2('0x8')]=_0x4f09f8[_0x28a2('0x8')];}}['_handleOperation'](_0x2d7923,_0x510e5b){if(_0x28a2('0xb1')==_0x2d7923[_0x28a2('0x19')]||'detachRoot'==_0x2d7923[_0x28a2('0x19')])return void this[_0x28a2('0x9')](_0x2d7923,_0x510e5b);if(_0x28a2('0xeb')==_0x2d7923[_0x28a2('0x19')]){const _0x2672ba=_0x2d7923[_0x28a2('0x37')]['root'][_0x28a2('0xae')];this[_0x28a2('0xd8')][_0x28a2('0x2b')](_0x2672ba)||(this['_diffRoots']['set'](_0x2672ba,G(_0x2672ba,!0x0)),this[_0x28a2('0xa1')]['set'](_0x2672ba,{}),_0x510e5b&&this['_idsRoots'][_0x28a2('0xaf')](_0x2672ba,G(_0x2672ba,!0x0)));}if(_0x28a2('0x47')==_0x2d7923[_0x28a2('0x19')]||_0x28a2('0x87')==_0x2d7923['type']||_0x28a2('0xce')==_0x2d7923['type'])return void this[_0x28a2('0xb4')](_0x2d7923);const _0x5935c7=this[_0x28a2('0xf9')](_0x2d7923,this['_diffRoots']);if(_0x28a2('0xa4')!==_0x2d7923[_0x28a2('0x19')]&&(_0x5935c7['_execute'](),this[_0x28a2('0x3f')](_0x5935c7)),_0x510e5b)switch(_0x5935c7[_0x28a2('0x19')]){case _0x28a2('0xeb'):this[_0x28a2('0xe')](_0x2d7923);break;case _0x28a2('0x7'):case _0x28a2('0x44'):case _0x28a2('0xd3'):this[_0x28a2('0x6b')](_0x2d7923);break;case _0x28a2('0x56'):this[_0x28a2('0x9b')](_0x2d7923);break;case _0x28a2('0x71'):this[_0x28a2('0x20')](_0x2d7923);break;case _0x28a2('0xa4'):this['_handleMarkerOperation'](_0x2d7923);}}[_0x28a2('0xf9')](_0x19eb2c,_0x39facf){const _0x2cbc18=_0x19eb2c['clone']();return _0x2cbc18[_0x28a2('0xc')]=_0x19eb2c['_authorId'],this[_0x28a2('0xb7')](_0x2cbc18,_0x39facf),_0x2cbc18;}[_0x28a2('0x4f')](_0x41d935){return _0x41d935['map'](_0x2f5426=>{const _0x275230=this[_0x28a2('0xf3')](_0x2f5426);return Number(_0x2f5426['item'][_0x28a2('0x49')](_0x275230));});}[_0x28a2('0xc0')](_0x3e4955,_0x2cbcea){if(_0x3e4955['is']('element',_0x28a2('0xa2')))_0x2cbcea['push']({'item':_0x3e4955,'type':_0x28a2('0xe9')});else{_0x3e4955['is'](_0x28a2('0x3'))&&_0x2cbcea[_0x28a2('0x39')]({'item':_0x3e4955,'type':_0x28a2('0xfb')});for(const _0x9d8363 of _0x3e4955[_0x28a2('0x33')]())this[_0x28a2('0xc0')](_0x9d8363,_0x2cbcea);_0x3e4955['is']('element')&&_0x2cbcea[_0x28a2('0x39')]({'item':_0x3e4955,'type':_0x28a2('0xd')});}return _0x2cbcea;}[_0x28a2('0x84')](){const _0x30a396=new Map(this[_0x28a2('0xf2')]),_0x582247=new Map(_0x30a396),_0x2e3763=new Map(),_0x24d6d3={'insertions':{},'deletions':{}},_0xd43134={'insertions':{},'deletions':{}},_0x217081=new Map(),_0x4a81da=new Set([...this[_0x28a2('0x6c')][_0x28a2('0x73')](),...this[_0x28a2('0xd8')]['keys']()]);_0x4a81da['delete']('$graveyard');for(const _0xb75106 of _0x4a81da){const _0xd4d77b=this[_0x28a2('0xd8')][_0x28a2('0x4c')](_0xb75106)||G(_0xb75106,!0x1),_0x24038c=this[_0x28a2('0x6c')]['get'](_0xb75106)||G(_0xb75106,!0x1);_0xd4d77b[_0x28a2('0x50')]()||_0x24038c[_0x28a2('0x50')]()?(_0x24d6d3[_0x28a2('0x102')][_0xb75106]=q(_0xd4d77b),_0x24d6d3[_0x28a2('0xdb')][_0xb75106]=q(_0x24038c),this[_0x28a2('0x43')](_0x24d6d3['deletions'][_0xb75106],_0x24038c),this[_0x28a2('0x43')](_0x24d6d3[_0x28a2('0x102')][_0xb75106],_0xd4d77b),_0xd43134[_0x28a2('0x102')][_0xb75106]=this['_generateTape'](this['_idsRoots'][_0x28a2('0x4c')](_0xb75106),[]),_0xd43134[_0x28a2('0xdb')][_0xb75106]=this['_generateTape'](this[_0x28a2('0xab')][_0x28a2('0x4c')](_0xb75106)||G(_0xb75106,!0x1),[])):_0x4a81da[_0x28a2('0xc7')](_0xb75106);}for(const _0x1a3ada of _0x4a81da){const _0x4b4f51=_0xd43134[_0x28a2('0x102')][_0x1a3ada];for(const _0x3ea8d7 of _0x4b4f51){const _0x5f0d95=this[_0x28a2('0xf3')](_0x3ea8d7),_0x450c29=_0x3ea8d7['item'][_0x28a2('0x49')](_0x5f0d95);_0x582247[_0x28a2('0xc7')](_0x450c29),_0x450c29>=this['_startingRevisionId']&&_0x2e3763['set'](_0x450c29,_0x30a396[_0x28a2('0x4c')](_0x450c29));}}for(const _0x50a9d2 of _0x4a81da){const _0x13b745=_0xd43134['insertions'][_0x50a9d2],_0x5be92b=this[_0x28a2('0x4f')](_0xd43134[_0x28a2('0xdb')][_0x50a9d2]);let _0x4b612=0x0;for(const _0x4ce851 of _0x13b745){const _0x5abaa1=this[_0x28a2('0xf3')](_0x4ce851),_0x47f7f1=_0x4ce851[_0x28a2('0x29')][_0x28a2('0x49')](_0x5abaa1);if(!_0x2e3763[_0x28a2('0x2b')](_0x47f7f1)&&!_0x217081['has'](_0x47f7f1)){if(_0x582247[_0x28a2('0x2b')](_0x47f7f1))_0x4b612++;else{if(_0x47f7f1!=_0x5be92b[_0x4b612]){const _0x155970=_0x30a396[_0x28a2('0x4c')](_0x47f7f1)||_0x30a396[_0x28a2('0x4c')](_0x5be92b[_0x4b612]);for(;_0x47f7f1!=_0x5be92b[_0x4b612];)_0x582247[_0x28a2('0x2b')](_0x5be92b[_0x4b612])||(_0x217081[_0x28a2('0xaf')](_0x5be92b[_0x4b612],_0x155970),_0x30a396[_0x28a2('0xaf')](_0x5be92b[_0x4b612],_0x155970)),_0x4b612++;}_0x4b612++;}}}}for(const _0xc3fa11 of _0x4a81da){const _0xb74c64=_0xd43134[_0x28a2('0x102')][_0xc3fa11];for(const _0x2b3bcd of _0xb74c64){const _0x50ca7a=this[_0x28a2('0xf3')](_0x2b3bcd),_0x41f7af=_0x2b3bcd[_0x28a2('0x29')]['getAttribute'](_0x50ca7a);if(_0x217081[_0x28a2('0x2b')](_0x41f7af)){const _0xf429fe=_0x217081[_0x28a2('0x4c')](_0x41f7af);_0x582247[_0x28a2('0x2b')](_0x41f7af)||_0x582247['set'](_0x41f7af,{..._0xf429fe}),_0x2e3763[_0x28a2('0xaf')](_0x41f7af,{..._0xf429fe});}}}for(const _0x4f57a8 of _0x582247['keys']())_0x4f57a8>=this[_0x28a2('0x24')]&&_0x582247[_0x28a2('0xc7')](_0x4f57a8);const _0x1e075e=new Map();for(const _0x1d6fcb of _0x4a81da){let _0x47f01f=_0xd43134['insertions'][_0x1d6fcb];for(const _0x4b6137 of _0x47f01f)if(_0x4b6137['item']['is'](_0x28a2('0x3'),_0x28a2('0xf8'))){const _0x4b8d15=this[_0x28a2('0xf3')](_0x4b6137),_0x13f9e0=_0x4b6137['item'][_0x28a2('0x49')](_0x4b8d15);if(_0x2e3763[_0x28a2('0x2b')](_0x13f9e0)){const _0x5851d3=_0x4b6137[_0x28a2('0x29')]['parent'][_0x28a2('0x68')][_0x28a2('0x49')]('vid_start'),_0x2a8984=_0x1e075e[_0x28a2('0x4c')](_0x5851d3)||new Set();_0x2a8984[_0x28a2('0x27')](_0x2e3763['get'](_0x13f9e0)[_0x28a2('0x86')]),_0x1e075e[_0x28a2('0xaf')](_0x5851d3,_0x2a8984);}}_0x47f01f=_0xd43134[_0x28a2('0xdb')][_0x1d6fcb];for(const _0x3884c7 of _0x47f01f)if(_0x3884c7[_0x28a2('0x29')]['is'](_0x28a2('0x3'),_0x28a2('0xf8'))){const _0x22a8a3=this[_0x28a2('0xf3')](_0x3884c7),_0x69f6c4=_0x3884c7[_0x28a2('0x29')][_0x28a2('0x49')](_0x22a8a3);if(_0x582247['has'](_0x69f6c4)){const _0x3938af=_0x3884c7[_0x28a2('0x29')][_0x28a2('0x68')]['parent'][_0x28a2('0x49')](_0x28a2('0x4')),_0x5db541=_0x1e075e[_0x28a2('0x4c')](_0x3938af)||new Set();_0x5db541[_0x28a2('0x27')](_0x582247[_0x28a2('0x4c')](_0x69f6c4)[_0x28a2('0x86')]),_0x1e075e[_0x28a2('0xaf')](_0x3938af,_0x5db541);}}for(const _0x48fc93 of _0x1e075e[_0x28a2('0x73')]())(_0x2e3763[_0x28a2('0x2b')](_0x48fc93)||_0x582247[_0x28a2('0x2b')](_0x48fc93))&&_0x1e075e[_0x28a2('0xc7')](_0x48fc93);}for(const _0x5ea095 of _0x4a81da){const _0x253b64=_0xd43134[_0x28a2('0x102')][_0x5ea095];let _0x46ed99=null,_0x310215=null;for(const _0x1b977f of _0x253b64){const _0x51c32c=this['_getVidAttributeName'](_0x1b977f),_0x210825=_0x1b977f[_0x28a2('0x29')][_0x28a2('0x49')](_0x51c32c),_0x17e339=_0x1e075e[_0x28a2('0x4c')](_0x210825);_0x17e339&&_0x28a2('0xfb')==_0x1b977f[_0x28a2('0x19')]&&(_0x46ed99=Array[_0x28a2('0x62')](_0x17e339)[0x0],_0x310215=_0x1b977f[_0x28a2('0x29')][_0x28a2('0x49')]('vid_end')),_0x46ed99&&(_0x582247[_0x28a2('0xaf')](_0x210825,{'userId':_0x46ed99}),_0x2e3763[_0x28a2('0xaf')](_0x210825,{'userId':_0x46ed99})),_0x210825==_0x310215&&(_0x46ed99=null,_0x310215=null);}}const _0x4b9edd={},_0x14e2d7=new Set();for(const _0x3ac218 of _0x4a81da){const _0x147f95=_0x24d6d3[_0x28a2('0xdb')][_0x3ac218],_0xdd4196=_0x24d6d3[_0x28a2('0x102')][_0x3ac218];for(const {userId:_0x5f0b28}of this[_0x28a2('0xa5')][_0x28a2('0xb3')]())null!==_0x5f0b28&&_0x14e2d7[_0x28a2('0x27')](_0x5f0b28);for(const {userId:_0x839dab}of this[_0x28a2('0x48')]['values']())null!==_0x839dab&&_0x14e2d7['add'](_0x839dab);this[_0x28a2('0x25')](_0xdd4196,_0xd43134[_0x28a2('0x102')][_0x3ac218],_0x2e3763,'insertion',_0x14e2d7),this[_0x28a2('0x25')](_0x147f95,_0xd43134[_0x28a2('0xdb')][_0x3ac218],_0x582247,_0x28a2('0x78'),_0x14e2d7),_0x4b9edd[_0x3ac218]={'insertions':this[_0x28a2('0xad')](_0xdd4196),'deletions':this[_0x28a2('0xad')](_0x147f95),'attachChange':this[_0x28a2('0x48')][_0x28a2('0x4c')](_0x3ac218)||null,'attributesBefore':_0xeeeac1(this['_baseRootsAttributes'][_0x28a2('0x4c')](_0x3ac218))||{},'attributesAfter':_0xeeeac1(this[_0x28a2('0xa1')][_0x28a2('0x4c')](_0x3ac218))};}return{'diffData':_0x4b9edd,'authorsIds':Array['from'](_0x14e2d7)};}[_0x28a2('0x96')](_0x54aaab){for(const [,_0x1c9f90]of _0x54aaab['markers']){const _0x590fb3=_0x1c9f90['start'][_0x28a2('0xe8')]()[_0x28a2('0x105')](_0x3ac97c=>'tableCell'==_0x3ac97c['name']);for(const _0x5f0617 of _0x590fb3)0x1==_0x5f0617['childCount']&&_0x5f0617[_0x28a2('0x2e')](0x0)['is']('element',_0x28a2('0x85'))&&_0x5f0617[_0x28a2('0x2e')](0x0)[_0x28a2('0x3d')](_0x28a2('0x74'),!0x0);}}[_0x28a2('0xad')](_0x5790ad){this[_0x28a2('0x96')](_0x5790ad);const _0x52253d=this[_0x28a2('0xc5')][_0x28a2('0x66')][_0x28a2('0x5c')](_0x5790ad,{}),_0x3cfba5=Array[_0x28a2('0x62')](_0x52253d[_0x28a2('0x33')]())['map'](_0x5b31bf=>this[_0x28a2('0x22')](_0x5b31bf));return JSON[_0x28a2('0xe5')](_0x3cfba5);}[_0x28a2('0x22')](_0x2f9b25){if(_0x2f9b25['is'](_0x28a2('0xa2')))return _0x2f9b25[_0x28a2('0x66')];{const _0x41beda=_0x2f9b25;return{'type':Object[_0x28a2('0x73')](B)[_0x28a2('0x35')](_0x1077cb=>_0x2f9b25 instanceof B[_0x1077cb]),'name':_0x41beda[_0x28a2('0xca')],'attributes':Array[_0x28a2('0x62')](_0x41beda[_0x28a2('0xfc')]()),'children':Array[_0x28a2('0x62')](_0x41beda[_0x28a2('0x33')]())[_0x28a2('0x2d')](_0x18a554=>this[_0x28a2('0x22')](_0x18a554))};}}[_0x28a2('0x25')](_0xb71fd4,_0x5819de,_0x4344e3,_0x44937e,_0x384f47){let _0x25e288=null,_0x5210ac=null,_0x1467c1=0x0;const _0x2a0db2=this[_0x28a2('0xc5')][_0x28a2('0x1a')];for(let _0x338c63=0x0;_0x338c63<_0x5819de[_0x28a2('0x2c')];_0x338c63++){const _0x5e6043=this[_0x28a2('0xf3')](_0x5819de[_0x338c63]),_0x36a2e7=_0x5819de[_0x338c63][_0x28a2('0x29')][_0x28a2('0x49')](_0x5e6043),_0xf914e=_0x4344e3[_0x28a2('0x4c')](_0x36a2e7),_0x572ee8=_0x338c63==_0x5819de[_0x28a2('0x2c')]-0x1;(!_0x25e288&&_0xf914e&&(_0x25e288=_0xf914e,_0x5210ac=_0x5819de[_0x338c63]),_0x25e288&&(!_0xf914e||_0xf914e[_0x28a2('0x86')]!=_0x25e288[_0x28a2('0x86')]))&&(_0x1ec2d9(_0xf914e,L(_0x5210ac,_0xb71fd4,_0x2a0db2),L(_0x5819de[_0x338c63],_0xb71fd4,_0x2a0db2)),_0x25e288=_0xf914e||null,_0x5210ac=_0xf914e?_0x5819de[_0x338c63]:null),_0x25e288&&_0x572ee8&&_0x1ec2d9(_0xf914e,L(_0x5210ac,_0xb71fd4,_0x2a0db2),W(_0x5819de[_0x338c63],_0xb71fd4,_0x2a0db2));}function _0x1ec2d9(_0x469cf0,_0x5ac129,_0x5e3ead){const _0x5b4529=_0x25e288[_0x28a2('0x86')],_0x5b96e4=_0x28a2('0x67')+_0x44937e+':'+_0x5b4529+':'+_0x1467c1++,_0x1a6af1=_0x2a0db2[_0x28a2('0xf0')](_0x5ac129,_0x5e3ead);_0xb71fd4[_0x28a2('0x99')][_0x28a2('0xaf')](_0x5b96e4,_0x1a6af1),null!==_0x5b4529&&_0x384f47[_0x28a2('0x27')](_0x5b4529);}}[_0x28a2('0xf3')](_0x5b27d0){switch(_0x5b27d0['type']){case'elementStart':return _0x28a2('0x4');case _0x28a2('0xd'):return _0x28a2('0x5e');default:return _0x28a2('0x2');}}[_0x28a2('0xb7')](_0x356740,_0x46f302){_0x356740[_0x28a2('0x70')]=null;for(const _0x465a04 in _0x356740){const _0x42dabe=_0x356740[_0x465a04];if(_0x42dabe instanceof _0x5d03c2){const _0x4957ca=_0x46f302[_0x28a2('0x4c')](_0x42dabe[_0x28a2('0x15')][_0x28a2('0xae')]);_0x356740[_0x465a04]=this[_0x28a2('0xcc')](_0x42dabe,_0x4957ca);}if(_0x42dabe instanceof _0x560111){const _0x539ad9=_0x46f302[_0x28a2('0x4c')](_0x42dabe['root'][_0x28a2('0xae')]);_0x356740[_0x465a04]=this[_0x28a2('0xd9')](_0x42dabe,_0x539ad9);}_0x28a2('0x15')===_0x465a04&&(_0x356740[_0x28a2('0x15')]=_0x46f302['get'](_0x356740[_0x28a2('0x15')][_0x28a2('0xae')]));}}[_0x28a2('0xd9')](_0x1be875,_0x5b1bb2){return this[_0x28a2('0xc5')][_0x28a2('0x1a')][_0x28a2('0xf0')](this[_0x28a2('0xcc')](_0x1be875[_0x28a2('0x79')],_0x5b1bb2),this[_0x28a2('0xcc')](_0x1be875[_0x28a2('0x8')],_0x5b1bb2));}[_0x28a2('0xcc')](_0x30e415,_0x46294f){return this['editor'][_0x28a2('0x1a')][_0x28a2('0x28')](_0x46294f,_0x30e415[_0x28a2('0xb8')],_0x30e415[_0x28a2('0x7c')]);}[_0x28a2('0xe')](_0x1999bd){const _0x2c166e=this[_0x28a2('0xff')][_0x28a2('0x4c')](_0x1999bd[_0x28a2('0x37')][_0x28a2('0x15')][_0x28a2('0xae')]),_0x286372=this[_0x28a2('0xcc')](_0x1999bd[_0x28a2('0x37')],_0x2c166e),_0x16209c=null===_0x1999bd['_authorId']?null:_0x1999bd[_0x28a2('0xc')]||this[_0x28a2('0xc5')][_0x28a2('0xcf')]['get'](_0x28a2('0xd1'))['me']['id'],_0x2bd95a=_0x286372[_0x28a2('0x68')],_0x59869a=this[_0x28a2('0x26')],_0x270f01=[];for(const _0x137116 of _0x1999bd['nodes'])if(_0x137116['is'](_0x28a2('0x3')))_0x270f01[_0x28a2('0x39')](this[_0x28a2('0x8b')](_0x137116));else for(let _0x14fb14=0x0;_0x14fb14<_0x137116[_0x28a2('0xd6')];_0x14fb14++)_0x270f01['push'](new _0x355c8e(_0x28a2('0xa2'),{'vid':this[_0x28a2('0x26')]++}));const _0x1cd04d=this['_revisionId'];for(let _0x9e8ded=_0x59869a;_0x9e8ded<_0x1cd04d;_0x9e8ded++)this[_0x28a2('0xf2')][_0x28a2('0xaf')](_0x9e8ded,{'userId':_0x16209c});_0x2bd95a[_0x28a2('0xea')](_0x286372[_0x28a2('0xac')],_0x270f01);}[_0x28a2('0x6b')](_0x267704){(_0x267704=this[_0x28a2('0xf9')](_0x267704,this[_0x28a2('0xff')]))[_0x28a2('0xdf')]();const _0x35ba12=null===_0x267704[_0x28a2('0xc')]?null:_0x267704[_0x28a2('0xc')]||this[_0x28a2('0xc5')]['plugins'][_0x28a2('0x4c')]('Users')['me']['id'],_0x379850=_0x267704['getMovedRangeStart'](),_0x31ad1a=_0x379850[_0x28a2('0x68')],_0x2ba1c9=_0x379850[_0x28a2('0xac')];!function _0x34bd9c(_0x3c5475,_0x3b856a,_0x1ac2e6,_0x47675b){for(let _0x2e6e9c=_0x1ac2e6;_0x2e6e9c<_0x47675b;_0x2e6e9c++){const _0x480dbb=_0x3b856a[_0x28a2('0x2e')](_0x2e6e9c);_0x480dbb['is']('element',_0x28a2('0xa2'))?_0x3c5475['set'](_0x480dbb[_0x28a2('0x49')](_0x28a2('0x2')),{'userId':_0x35ba12}):(_0x3c5475[_0x28a2('0xaf')](_0x480dbb[_0x28a2('0x49')](_0x28a2('0x4')),{'userId':_0x35ba12}),_0x34bd9c(_0x3c5475,_0x480dbb,0x0,_0x480dbb['childCount']),_0x3c5475[_0x28a2('0xaf')](_0x480dbb['getAttribute']('vid_end'),{'userId':_0x35ba12}));}}(this['_touched'],_0x31ad1a,_0x2ba1c9,_0x2ba1c9+_0x267704[_0x28a2('0xee')]);}[_0x28a2('0x9b')](_0x2f5773){const _0x12bcde=null===(_0x2f5773=this[_0x28a2('0xf9')](_0x2f5773,this[_0x28a2('0xff')]))[_0x28a2('0xc')]?null:_0x2f5773['_authorId']||this[_0x28a2('0xc5')][_0x28a2('0xcf')]['get']('Users')['me']['id'],_0x231365=_0x2f5773[_0x28a2('0xb6')][_0x28a2('0x68')],_0x433fe0=_0x2f5773['sourcePosition'][_0x28a2('0x68')],_0x15205c=_0x231365[_0x28a2('0x49')](_0x28a2('0x5e')),_0x368010=_0x433fe0[_0x28a2('0x49')](_0x28a2('0x4'));_0x231365[_0x28a2('0x3d')]('vid_end',_0x433fe0[_0x28a2('0x49')]('vid_end')),_0x433fe0[_0x28a2('0x3d')]('vid_end',_0x15205c),this[_0x28a2('0xf2')]['set'](_0x368010,{'userId':_0x12bcde}),this[_0x28a2('0xf2')][_0x28a2('0xaf')](_0x15205c,{'userId':_0x12bcde}),_0x2f5773[_0x28a2('0xdf')]();}[_0x28a2('0x20')](_0x20f9d3){const _0x4e2a9a=null===(_0x20f9d3=this[_0x28a2('0xf9')](_0x20f9d3,this[_0x28a2('0xff')]))['_authorId']?null:_0x20f9d3['_authorId']||this['editor']['plugins'][_0x28a2('0x4c')](_0x28a2('0xd1'))['me']['id'],_0x4b1d02=_0x20f9d3[_0x28a2('0x94')],_0x46ba03=_0x20f9d3[_0x28a2('0xd5')][_0x28a2('0x68')];_0x20f9d3[_0x28a2('0xdf')]();const _0x3deadb=_0x46ba03[_0x28a2('0x49')](_0x28a2('0x5e')),_0x501ae9=_0x20f9d3[_0x28a2('0x52')]['nodeAfter'];if(_0x4b1d02){const _0x2c1ff7=_0x501ae9[_0x28a2('0x49')](_0x28a2('0x5e')),_0x3c76b9=_0x46ba03[_0x28a2('0x49')]('vid_end');_0x46ba03[_0x28a2('0x3d')](_0x28a2('0x5e'),_0x2c1ff7),_0x501ae9[_0x28a2('0x3d')](_0x28a2('0x5e'),_0x3c76b9),this[_0x28a2('0xf2')][_0x28a2('0xaf')](_0x46ba03['getAttribute'](_0x28a2('0x5e')),{'userId':_0x4e2a9a}),this[_0x28a2('0xf2')][_0x28a2('0xaf')](_0x501ae9['getAttribute'](_0x28a2('0x4')),{'userId':_0x4e2a9a});}else{const _0x36669f=this['_revisionId']++,_0xde72b7=this[_0x28a2('0x26')]++;_0x46ba03[_0x28a2('0x3d')](_0x28a2('0x5e'),_0x36669f),_0x501ae9['_setAttribute'](_0x28a2('0x4'),_0xde72b7),_0x501ae9[_0x28a2('0x3d')]('vid_end',_0x3deadb),this[_0x28a2('0xf2')][_0x28a2('0xaf')](_0x36669f,{'userId':_0x4e2a9a}),this[_0x28a2('0xf2')][_0x28a2('0xaf')](_0xde72b7,{'userId':_0x4e2a9a});}}[_0x28a2('0x18')](_0x209fe9){if(!_0x209fe9[_0x28a2('0x7e')])return;const _0x5de005=(_0x209fe9=this['_cloneOperation'](_0x209fe9,this[_0x28a2('0xd8')]))[_0x28a2('0x64')]?_0x209fe9['oldRange']['root']:null,_0x34c7d3=_0x209fe9[_0x28a2('0x17')]?_0x209fe9[_0x28a2('0x17')][_0x28a2('0x15')]:null;_0x5de005&&this[_0x28a2('0x7a')][_0x28a2('0xc7')](_0x209fe9[_0x28a2('0xca')]),_0x34c7d3&&this['_markers']['set'](_0x209fe9[_0x28a2('0xca')],_0x209fe9[_0x28a2('0x17')][_0x28a2('0x5a')]());const _0x265051=null===_0x209fe9[_0x28a2('0xc')]?null:_0x209fe9[_0x28a2('0xc')]||this[_0x28a2('0xc5')][_0x28a2('0xcf')][_0x28a2('0x4c')]('Users')['me']['id'],_0x529682=_0x209fe9[_0x28a2('0xca')];if(!this[_0x28a2('0xa5')][_0x28a2('0x2b')](_0x529682))return void this['_touchedMarkers'][_0x28a2('0xaf')](_0x529682,{'range':_0x209fe9['oldRange'],'userId':_0x265051});const _0x3fb230=this[_0x28a2('0xa5')]['get'](_0x529682),_0x4defa8=_0x3fb230[_0x28a2('0x59')],_0x3be27d=_0x209fe9['newRange'];null==_0x4defa8&&null==_0x3be27d||_0x4defa8&&_0x3be27d&&_0x4defa8['isEqual'](_0x3be27d)?this[_0x28a2('0xa5')][_0x28a2('0xc7')](_0x209fe9['name']):_0x3fb230[_0x28a2('0x86')]=_0x265051;}[_0x28a2('0x9')](_0x31fd42,_0x5d153a){this[_0x28a2('0xd8')][_0x28a2('0x2b')](_0x31fd42[_0x28a2('0xae')])?this[_0x28a2('0xd8')][_0x28a2('0x4c')](_0x31fd42[_0x28a2('0xae')])[_0x28a2('0x101')]=_0x31fd42[_0x28a2('0x91')]:(this['_diffRoots'][_0x28a2('0xaf')](_0x31fd42[_0x28a2('0xae')],G(_0x31fd42[_0x28a2('0xae')],!0x0)),this[_0x28a2('0xa1')][_0x28a2('0xaf')](_0x31fd42[_0x28a2('0xae')],{}),_0x5d153a&&this['_idsRoots'][_0x28a2('0xaf')](_0x31fd42['rootName'],G(_0x31fd42[_0x28a2('0xae')],!0x0)));const _0x4b538a=null===_0x31fd42[_0x28a2('0xc')]?null:_0x31fd42[_0x28a2('0xc')]||this['editor'][_0x28a2('0xcf')][_0x28a2('0x4c')](_0x28a2('0xd1'))['me']['id'],_0x33a22a=this[_0x28a2('0x48')][_0x28a2('0x4c')](_0x31fd42[_0x28a2('0xae')]);_0x33a22a&&_0x33a22a[_0x28a2('0x86')]===_0x4b538a?this[_0x28a2('0x48')][_0x28a2('0xc7')](_0x31fd42[_0x28a2('0xae')]):this[_0x28a2('0x48')][_0x28a2('0xaf')](_0x31fd42[_0x28a2('0xae')],{'userId':_0x4b538a,'isAttached':_0x31fd42[_0x28a2('0x91')]});}[_0x28a2('0xb4')](_0x7c08da){const _0x2e1804=this[_0x28a2('0xa1')]['get'](_0x7c08da[_0x28a2('0x15')][_0x28a2('0xae')]);null===_0x7c08da[_0x28a2('0xe6')]?delete _0x2e1804[_0x7c08da['key']]:_0x2e1804[_0x7c08da['key']]=_0x7c08da[_0x28a2('0xe6')];}}function q(_0x2e96bd){const _0x1b93c7=G(_0x2e96bd[_0x28a2('0xae')],_0x2e96bd['isAttached']());for(const _0x3add96 of _0x2e96bd['getChildren']()){const _0x40fa50=_0x3add96[_0x28a2('0xdd')](!0x0);_0x1b93c7['_appendChild'](_0x40fa50);}return _0x1b93c7;}function G(_0x2c95f8,_0x21ff0a=!0x0){const _0x1c54c3=new _0x3aa78b();return _0x1c54c3[_0x28a2('0xae')]=_0x2c95f8,_0x1c54c3['_isAttached']=_0x21ff0a,_0x1c54c3[_0x28a2('0x50')]=()=>_0x1c54c3[_0x28a2('0x101')],_0x1c54c3;}function L(_0x2fa014,_0x56adde,_0x208924){const _0x247916='elementEnd'==_0x2fa014[_0x28a2('0x19')]?_0x208924['createPositionAt'](_0x2fa014[_0x28a2('0x29')],_0x28a2('0x8')):_0x208924[_0x28a2('0xe4')](_0x2fa014[_0x28a2('0x29')]);return _0x208924[_0x28a2('0x28')](_0x56adde,_0x247916[_0x28a2('0xb8')],_0x247916[_0x28a2('0x7c')]);}function W(_0xc4d8a7,_0x53f5cc,_0x41eccc){const _0x3985b9=_0x28a2('0xfb')==_0xc4d8a7[_0x28a2('0x19')]?_0x41eccc[_0x28a2('0x42')](_0xc4d8a7[_0x28a2('0x29')],0x0):_0x41eccc[_0x28a2('0x32')](_0xc4d8a7['item']);return _0x41eccc[_0x28a2('0x28')](_0x53f5cc,_0x3985b9[_0x28a2('0xb8')],_0x3985b9[_0x28a2('0x7c')]);}
|
|
23
|
+
const _0x2996=['saveRevision','splitPosition','hasContent','clone','startsWith','afterInit','deletion','_bufferUpdate','_makeRevision','_getVidAttributeName','getRevisionDocumentData','revision-start','repository','_getState','_handleSplitOperation','paragraph','_getFromVersion','oldRange','authors','_isAttached','string','_baseRoots','data-revision-','end','sendBufferedUpdates','_baseRootsAttributes','_getViewJson','shift','processor','$graveyard','find','get','getOperations','locale','attributesBefore','name','history','getCurrentRevisionId','toVersion','_lastTo','elementEnd','_handleMoveOperation','markers','deletions','isEnabled','keepParagraph','_handleRootOperation','position','_handleInsertOperation','_addPendingAction','_makeModelFromViewString','createRevision','_handleMergeOperation','_loadState','version','_authorId','_clone','_createCurrentRevision','_continueCurrentRevision','revisionHistory.resumeUnsavedRevision','_diffRoots','split','_operations','source','_removeMetaData','fromEntries','updateRevisions','_processRootBeforeSave','define','_touched','insert','toView','_markers','_startingRevisionId','element','pluginName','addRevisionData','affectsData','marked','data','_createFromRanges','item','_removeRevisionMarkers','_removePendingAction','reinsert','from','createRange','vid','vid_start','_saveMetaData','reverse','documentFragment','stickiness','slice','isReady','getChild','_revisionDataBuilder','tableCell','upcast','_calculateMetaData','PendingActions','values','children','size','forEach','keys','vid_end','_reset','revision:','sort','_transformMarkers','_isPendingUpdate','_prepareViewToSave','_savedMetaData','length','createPositionAfter','includes','editing','_insertChild','some','_copyMarkers','then','Users','graveyardPosition','getData','Empty\x20document','attributes','getRange','PENDING_ACTION_REVISION_HISTORY','marker','_getPreviousFrom','_initialRevisionId','_isInit','RevisionTracker','childCount','view','revision','getTime','currentRevision','createPositionFromPath','type','update','rootName','_fixPosition','resolve','has','NEGATIVE_INFINITY','_fixOperation','init','_revisionId','bind','set','dataDowncast','_setConversion','map','_pendingAction','_appendChild','ready','filter','root','path','insertion','max','isAdd','clear','initialData','getUser','getAttribute','_handleRootAttributeOperation','isAttached','buildRevisionData','_cloneOperation','getIndex','_execute','elementStart','range','model','createPositionBefore','diffData','_touchedRoots','_loadRevisionData','getRevisionRootsAttributes','previousPosition','getRoot','setSource','_baseIdsRoots','offsetSize','createRangeIn','document','_makeIdsRoot','getRevision','newRange','userId','_setAttribute','loadState','_lastFrom','_source','collaboration.channelId','getMovedRangeStart','_touchedMarkers','config','_bufferedUpdates','createdAt','addRevision','useFillerType','move','rootsAttributes','add','insertions','_handleMarkerOperation','delete','getTransformedByOperation','start','Initial\x20revision','remove','plugins','getRevisions','_applyOperations','getLatestVersion','editor','_handleOperation','attributesAfter','setRevisionData','attachChange','howMany','fromVersion','push','_update','createPositionAt','creator','adapter','$text','RevisionsRepository','getNodeByPath','_initialRoots','_idsRoots','_generateTape','insertionPosition','authorsIds','getChildren','offset','conversion','_getBaseVids','newValue','text','_createInitialRevision','_diffRootsAttributes','_startingVersion','markerToData','parent','_fixRange','stringify','key','getRootNames','_loadedStateData'];(function(_0x215aa4,_0x2996ac){const _0x5c2906=function(_0x5d5216){while(--_0x5d5216){_0x215aa4['push'](_0x215aa4['shift']());}};_0x5c2906(++_0x2996ac);}(_0x2996,0xf0));const _0x5c29=function(_0x215aa4,_0x2996ac){_0x215aa4=_0x215aa4-0x0;let _0x5c2906=_0x2996[_0x215aa4];return _0x5c2906;};import{Users as _0x3b697a}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x2d496e,PendingActions as _0x5f29c7}from'ckeditor5/src/core';import{logWarning as _0x2103b2,uid as _0x303538}from'ckeditor5/src/utils';import{Position as _0x1c842a,Range as _0x4814c5,Element as _0x21b98a,DocumentFragment as _0x230184,ViewText as _0x2eae4d,ViewElement as _0x1b5f4c,ViewContainerElement as _0x3fbd4c,ViewAttributeElement as _0x49d1dc,ViewEmptyElement as _0x37fee2,ViewRawElement as _0x1b844c,ViewUIElement as _0x90e925,ViewDocumentFragment as _0x38aa6b}from'ckeditor5/src/engine';import _0x4cb07e from'./revisionsrepository';import{getTranslation as _0x34c13d}from'./utils/common-translations';import{cloneDeep as _0x118057,isEqual as _0x1b36ee}from'lodash-es';const B={'c':_0x3fbd4c,'a':_0x49d1dc,'e':_0x37fee2,'r':_0x1b844c,'u':_0x90e925};export default class l extends _0x2d496e{static get[_0x5c29('0x5a')](){return _0x5c29('0x94');}static get['requires'](){return[_0x3b697a,_0x4cb07e,_0x5f29c7];}constructor(_0x103f8d){super(_0x103f8d),this['adapter']=null,this[_0x5c29('0x99')]=null,this[_0x5c29('0x6f')]=new H(this[_0x5c29('0xea')]),this['_initialRevisionId']=this[_0x5c29('0xea')][_0x5c29('0xd7')]['get'](_0x5c29('0xd4'))||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2242fe=_0x303538();this[_0x5c29('0xd3')]={'history':this[_0x5c29('0xea')][_0x5c29('0xbf')][_0x5c29('0xcb')][_0x5c29('0x33')],'getLatestVersion':()=>Promise[_0x5c29('0x9f')](this[_0x5c29('0xea')]['model'][_0x5c29('0xcb')][_0x5c29('0x45')]),'getCurrentRevisionId':()=>_0x2242fe},this['set'](_0x5c29('0x6d'),!0x1),this['set'](_0x5c29('0x3b'),!0x0),this[_0x5c29('0xa6')](_0x5c29('0x7e'),!0x1),this[_0x5c29('0xea')]['config'][_0x5c29('0x53')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x5c29('0xea')]['conversion']['for'](_0x5c29('0x71'))['dataToMarker']({'view':'revision'});}[_0x5c29('0xa3')](){this[_0x5c29('0x1b')]=this['editor'][_0x5c29('0xe6')][_0x5c29('0x2e')](_0x5c29('0xf7')),this[_0x5c29('0xa8')](),this[_0x5c29('0xea')][_0x5c29('0x5e')]['on'](_0x5c29('0xac'),()=>{const _0x5dfc96=this[_0x5c29('0x1b')][_0x5c29('0xcd')](0x0),_0x5bc8f2=_0x5dfc96&&null===_0x5dfc96[_0x5c29('0xf4')]?_0x5dfc96:null;if(this[_0x5c29('0x49')]=!!_0x5bc8f2&&this[_0x5c29('0xea')][_0x5c29('0xd7')][_0x5c29('0x2e')](_0x5c29('0x4a')),this[_0x5c29('0xea')][_0x5c29('0xe6')]['has']('RealTimeCollaborationClient')){const _0x500d89=this['_source']['getCurrentRevisionId'](),_0x51d7af=this[_0x5c29('0x1b')]['getRevision'](_0x500d89);if(_0x51d7af)this[_0x5c29('0x7')]=_0x51d7af[_0x5c29('0xf0')],this[_0x5c29('0x49')]=!0x1;else{const _0x473e51=this[_0x5c29('0xd3')][_0x5c29('0x33')][_0x5c29('0x4d')]['find'](_0x3b8d6b=>!_0x3b8d6b[_0x5c29('0x93')]),_0x3c80f8=_0x473e51?_0x473e51['baseVersion']:this[_0x5c29('0xd3')][_0x5c29('0x33')][_0x5c29('0x45')];_0x5dfc96?(_0x5dfc96[_0x5c29('0x35')]<_0x3c80f8&&_0x5dfc96[_0x5c29('0xf2')]({'toVersion':_0x3c80f8}),this[_0x5c29('0x49')]?(this['_source'][_0x5c29('0x34')]=()=>_0x5bc8f2['id'],this[_0x5c29('0x7')]=_0x5bc8f2[_0x5c29('0xf0')]):(this[_0x5c29('0x7')]=_0x5dfc96['toVersion'],this[_0x5c29('0x49')]=!0x1)):(this['_startingVersion']=_0x3c80f8,this[_0x5c29('0x49')]=!0x1);}}else _0x5bc8f2&&(this[_0x5c29('0xea')]['model'][_0x5c29('0xcb')]['history'][_0x5c29('0x45')]=Math[_0x5c29('0xb1')](_0x5bc8f2['toVersion'],this[_0x5c29('0xea')]['model'][_0x5c29('0xcb')]['history'][_0x5c29('0x45')]),_0x5bc8f2[_0x5c29('0xf0')]===_0x5bc8f2[_0x5c29('0x35')]?(0x0!==_0x5bc8f2[_0x5c29('0xf0')]&&(this['_source'][_0x5c29('0x34')]=()=>_0x5bc8f2['id']),this[_0x5c29('0x49')]=!0x1):this[_0x5c29('0x49')]&&(this[_0x5c29('0xd3')]['getCurrentRevisionId']=()=>_0x5bc8f2['id'],this['_startingVersion']=_0x5bc8f2['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor'][_0x5c29('0xbf')][_0x5c29('0xcb')][_0x5c29('0x45')]);this[_0x5c29('0x6f')][_0x5c29('0xa3')](this[_0x5c29('0xd3')][_0x5c29('0x33')]),this[_0x5c29('0x5')](this[_0x5c29('0x7')]),this[_0x5c29('0x48')](this[_0x5c29('0x7')]),this[_0x5c29('0xf5')]&&this[_0x5c29('0x27')]();}),this[_0x5c29('0xa5')]('isReady')['to'](this,_0x5c29('0x7e'),_0x484b92=>!_0x484b92);}async[_0x5c29('0x14')](){if(this['repository']['length']>0x0){const _0x33e051=this[_0x5c29('0x1b')][_0x5c29('0xcd')](0x0),_0x4e5597=await this['getRevisionDocumentData'](_0x33e051),_0x4eb354=await this[_0x5c29('0xc4')](_0x33e051);this['_replaceEditorDataWithRevisionData'](_0x4e5597,_0x4eb354);}}[_0x5c29('0xc7')](_0x449852){this[_0x5c29('0xd3')]=_0x449852;}async[_0x5c29('0x9c')](){const _0x4b9522=await this[_0x5c29('0xd3')][_0x5c29('0xe9')]();if(_0x4b9522>this['currentRevision'][_0x5c29('0x35')]){await this[_0x5c29('0x44')]();const _0x278ee1=this[_0x5c29('0xb9')]({'revision':this[_0x5c29('0x99')],'to':_0x4b9522});_0x278ee1[_0x5c29('0x21')]=_0x278ee1[_0x5c29('0xfd')][_0x5c29('0xa9')](_0x4c9c03=>this['editor'][_0x5c29('0xe6')][_0x5c29('0x2e')](_0x5c29('0x89'))[_0x5c29('0xb5')](_0x4c9c03)),this['currentRevision']['_update'](_0x278ee1);}}async['_loadState'](){this[_0x5c29('0x49')]&&!this[_0x5c29('0xe')]&&(await this[_0x5c29('0xc3')](this[_0x5c29('0x99')]),this[_0x5c29('0x6f')][_0x5c29('0xd1')](this[_0x5c29('0x99')]),this['_loadedStateData']={'fromVersion':this[_0x5c29('0x99')]['fromVersion'],'authors':this[_0x5c29('0x99')]['authors'][_0x5c29('0x6c')]()});}async[_0x5c29('0xf')](_0x1a549f={},_0x469bca=null){const _0x465d44=[];await this[_0x5c29('0x44')](),this[_0x5c29('0x49')]=!0x1,_0x469bca>this[_0x5c29('0x99')][_0x5c29('0x35')]&&(_0x469bca=null),null===_0x469bca&&(_0x469bca=await this[_0x5c29('0xd3')][_0x5c29('0xe9')]());const _0x3610c5=this[_0x5c29('0x1f')](_0x469bca),_0x9d43b2=this[_0x5c29('0xb9')]({'from':_0x3610c5,'to':_0x469bca});if(this['currentRevision'][_0x5c29('0x35')]<_0x469bca){const _0x11033f=this[_0x5c29('0xb9')]({'revision':this[_0x5c29('0x99')],'from':_0x469bca,'to':_0x469bca});_0x11033f['authors']=[],_0x11033f[_0x5c29('0xfd')]=[],_0x11033f['id']=this['currentRevision']['id'],this[_0x5c29('0x99')][_0x5c29('0xf2')](_0x11033f,!0x0),delete _0x11033f['authors'],_0x465d44[_0x5c29('0xf1')](_0x11033f);}_0x1a549f['creatorId']=this[_0x5c29('0xea')][_0x5c29('0xe6')]['get'](_0x5c29('0x89'))['me']['id'],_0x1a549f[_0x5c29('0x32')]=_0x1a549f[_0x5c29('0x32')]||null,_0x1a549f['id']=_0x1a549f['id']||_0x303538(),_0x1a549f={..._0x1a549f,..._0x9d43b2};const _0x86bc56=this[_0x5c29('0x5b')](_0x1a549f);_0x465d44[_0x5c29('0xf1')](_0x1a549f);const _0x4fc6dd=this[_0x5c29('0x1b')][_0x5c29('0xbb')](_0x86bc56);if(0x0!==_0x4fc6dd){const _0x487073=this[_0x5c29('0x1b')]['getRevision'](_0x4fc6dd-0x1);if(_0x487073[_0x5c29('0xf0')]!==_0x469bca){const _0x2d5fb9=this[_0x5c29('0x6f')]['getData'](_0x469bca,_0x487073[_0x5c29('0x35')]),_0x27e02e={'id':_0x487073['id'],'diffData':_0x2d5fb9[_0x5c29('0xc1')],'authorsIds':_0x2d5fb9[_0x5c29('0xfd')],'authors':_0x2d5fb9[_0x5c29('0xfd')]['map'](_0x3c5af9=>this[_0x5c29('0xea')]['plugins'][_0x5c29('0x2e')]('Users')[_0x5c29('0xb5')](_0x3c5af9)),'fromVersion':_0x469bca};_0x487073===this['currentRevision']&&(_0x27e02e[_0x5c29('0xd9')]=new Date(_0x1a549f[_0x5c29('0xd9')][_0x5c29('0x98')]()+0xa)),_0x487073[_0x5c29('0xf2')](_0x27e02e,!0x0),delete _0x27e02e[_0x5c29('0x21')],_0x465d44[_0x5c29('0xf1')](_0x27e02e);}}if(this['adapter']){for(const _0x112952 of _0x465d44)this[_0x5c29('0x16')](_0x112952['id'],_0x112952,!0x0);this['sendBufferedUpdates']();}return _0x86bc56;}['addRevisionData'](_0x12e771){const _0x102dbf=this[_0x5c29('0x1b')][_0x5c29('0x42')](_0x12e771);return this[_0x5c29('0xf5')]&&_0x102dbf['on'](_0x5c29('0xf2'),(_0x2f0f86,_0x9ffa51,_0x4780e6)=>{_0x4780e6||(this[_0x5c29('0x16')](_0x9ffa51['id'],_0x9ffa51,!0x0),this['sendBufferedUpdates']());}),this[_0x5c29('0x1b')][_0x5c29('0xda')](_0x102dbf,this['_findInsertionIndex'](_0x102dbf)),_0x102dbf;}async[_0x5c29('0x19')](_0x13d648){await this[_0x5c29('0xc3')](_0x13d648);const _0x279f31={};for(const _0xc867b0 in _0x13d648['diffData']){if(_0x13d648[_0x5c29('0xc1')][_0xc867b0][_0x5c29('0xee')]&&!_0x13d648[_0x5c29('0xc1')][_0xc867b0]['attachChange'][_0x5c29('0xb8')])continue;const _0x42abf7=this[_0x5c29('0x61')](JSON['parse'](_0x13d648['diffData'][_0xc867b0][_0x5c29('0xdf')])),_0xfdbe3a=this[_0x5c29('0xea')][_0x5c29('0x84')][_0x5c29('0x96')][_0x5c29('0xcb')],_0x4d195c=new _0x38aa6b(_0xfdbe3a,_0x42abf7[_0x5c29('0xa9')](_0x590cbe=>J(_0x590cbe,this[_0x5c29('0xea')])));this[_0x5c29('0xea')][_0x5c29('0x5e')][_0x5c29('0x2b')]['useFillerType'](_0x5c29('0x5d')),_0x279f31[_0xc867b0]=this[_0x5c29('0xea')][_0x5c29('0x5e')]['processor']['toData'](_0x4d195c),this[_0x5c29('0xea')]['data'][_0x5c29('0x2b')][_0x5c29('0xdb')]('default');}return _0x279f31;}async[_0x5c29('0xc4')](_0x337b0b){await this[_0x5c29('0xc3')](_0x337b0b);const _0xb122cb={};for(const _0x274b3c in _0x337b0b[_0x5c29('0xc1')])_0x337b0b[_0x5c29('0xc1')][_0x274b3c][_0x5c29('0xee')]&&!_0x337b0b[_0x5c29('0xc1')][_0x274b3c]['attachChange']['isAttached']||(_0xb122cb[_0x274b3c]=_0x337b0b[_0x5c29('0xc1')][_0x274b3c][_0x5c29('0xec')]||{});return _0xb122cb;}[_0x5c29('0x27')](){if(0x0===this[_0x5c29('0xd8')][_0x5c29('0x76')])return;if(this['_isPendingUpdate'])return;let _0x335cf8=Array['from'](this[_0x5c29('0xd8')]['values']());this['_bufferedUpdates'][_0x5c29('0xb3')]();for(let _0x544cc1=0x0;_0x544cc1<_0x335cf8[_0x5c29('0x81')];_0x544cc1++){const _0xaa2305=_0x335cf8[_0x544cc1];let _0x172a8d=!0x1;for(const _0x1042cc of Object[_0x5c29('0x78')](_0xaa2305))void 0x0===_0xaa2305[_0x1042cc]?delete _0xaa2305[_0x1042cc]:'id'!==_0x1042cc&&(_0x172a8d=!0x0);_0x172a8d||(_0x335cf8[_0x544cc1]=null);}if(_0x335cf8=_0x335cf8[_0x5c29('0xad')](_0x402db9=>null!==_0x402db9),!_0x335cf8['length'])return;for(let _0x5d89bc=0x0;_0x5d89bc<_0x335cf8[_0x5c29('0x81')];_0x5d89bc++){const _0x313de0=_0x335cf8[_0x5d89bc];void 0x0!==_0x313de0['fromVersion']&&void 0x0===_0x313de0[_0x5c29('0x35')]&&(_0x313de0[_0x5c29('0x35')]=this[_0x5c29('0x1b')][_0x5c29('0xcd')](_0x313de0['id'])['toVersion']),void 0x0!==_0x313de0[_0x5c29('0x35')]&&void 0x0===_0x313de0[_0x5c29('0xf0')]&&(_0x313de0[_0x5c29('0xf0')]=this[_0x5c29('0x1b')][_0x5c29('0xcd')](_0x313de0['id'])['fromVersion']);}const _0x56c454=this[_0x5c29('0xea')][_0x5c29('0xd7')][_0x5c29('0x2e')](_0x5c29('0xd4'));this[_0x5c29('0x7e')]=!0x0,this[_0x5c29('0x40')](),this[_0x5c29('0xf5')][_0x5c29('0x51')](_0x335cf8,_0x56c454)['finally'](()=>{this[_0x5c29('0x7e')]=!0x1;})[_0x5c29('0x88')](_0x12886f=>{if(_0x12886f)for(const _0x5dcd74 of _0x12886f)this['setRevisionData']({'id':_0x5dcd74['id'],'createdAt':_0x5dcd74['createdAt']});this[_0x5c29('0x62')](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1046bd,_0xad9af1){let _0x226ae0=this[_0x5c29('0xea')][_0x5c29('0xd7')][_0x5c29('0x2e')](_0x5c29('0xb4')),_0x2dbed5=this[_0x5c29('0xea')]['config'][_0x5c29('0x2e')](_0x5c29('0xdd'));if(void 0x0===_0x226ae0){_0x226ae0={};for(const _0x50d1bd of this[_0x5c29('0xea')][_0x5c29('0xbf')][_0x5c29('0xcb')][_0x5c29('0xd')]())_0x226ae0[_0x50d1bd]='';}if(_0x5c29('0x23')==typeof _0x226ae0&&(_0x226ae0={'main':_0x226ae0}),void 0x0===_0x2dbed5){_0x2dbed5={};for(const _0x3b3c51 of this[_0x5c29('0xea')]['model'][_0x5c29('0xcb')][_0x5c29('0xd')]())_0x2dbed5[_0x3b3c51]={};}let _0x5bc945=!0x1;const _0x338d87=Object['keys'](_0x226ae0),_0x1889ec=Object['keys'](_0x1046bd);for(const _0xfd93df of _0x338d87){if(_0x226ae0[_0xfd93df]!==_0x1046bd[_0xfd93df]&&''!==_0x226ae0[_0xfd93df]['trim']()){_0x5bc945=!0x0;break;}if(!_0x1b36ee(_0x2dbed5[_0xfd93df],_0xad9af1[_0xfd93df])&&Object[_0x5c29('0x78')](_0x2dbed5[_0xfd93df])['length']>0x0){_0x5bc945=!0x0;break;}}_0x5bc945||(_0x5bc945=_0x1889ec[_0x5c29('0x86')](_0x4abf4a=>!_0x338d87[_0x5c29('0x83')](_0x4abf4a))),_0x5bc945&&_0x2103b2('editor-initial-data-replaced-with-revision-data',{'editorData':_0x226ae0,'editorRootsAttributes':_0x2dbed5,'revisionData':_0x1046bd,'revisionRootsAttributes':_0xad9af1}),this[_0x5c29('0xea')][_0x5c29('0xd7')]['set'](_0x5c29('0xb4'),_0x1046bd),this[_0x5c29('0xea')][_0x5c29('0xd7')][_0x5c29('0xa6')]('rootsAttributes',_0xad9af1);}[_0x5c29('0x40')](){if(!this[_0x5c29('0xaa')]){const _0x11c523=this[_0x5c29('0xea')]['plugins']['get'](_0x5c29('0x73'));this['_pendingAction']=_0x11c523[_0x5c29('0xde')](_0x34c13d(this[_0x5c29('0xea')][_0x5c29('0x30')],_0x5c29('0x8f')));}}['_removePendingAction'](){this[_0x5c29('0xaa')]&&(this[_0x5c29('0xea')][_0x5c29('0xe6')]['get'](_0x5c29('0x73'))['remove'](this['_pendingAction']),this[_0x5c29('0xaa')]=null);}['_findInsertionIndex'](_0x1087f7){const _0x51d665=this['repository'][_0x5c29('0xe7')]();_0x51d665[_0x5c29('0x69')]();let _0x476d85=0x0;for(;_0x476d85<_0x51d665[_0x5c29('0x81')];){const _0x5c0a01=_0x51d665[_0x476d85];if(_0x5c0a01===this['currentRevision']){_0x476d85++;continue;}if(_0x5c0a01['id']===this[_0x5c29('0x92')])break;const _0x33a62c=_0x1087f7[_0x5c29('0x35')]-_0x5c0a01[_0x5c29('0x35')]||_0x1087f7[_0x5c29('0xf0')]-_0x5c0a01['fromVersion'];if(_0x33a62c>0x0)break;if(_0x33a62c<0x0)_0x476d85++;else{if(!_0x1087f7[_0x5c29('0xf4')]&&_0x5c0a01['creator'])break;if(_0x5c0a01[_0x5c29('0xf4')]||!_0x1087f7['creator']){if(_0x1087f7['createdAt']>_0x5c0a01[_0x5c29('0xd9')])break;_0x476d85++;}else _0x476d85++;}}return _0x476d85;}[_0x5c29('0xed')](_0x1748eb){const _0x18e1b6=this[_0x5c29('0x1b')][_0x5c29('0xcd')](_0x1748eb['id']);if(_0x1748eb['createdAt']&&(_0x1748eb['createdAt']=new Date(_0x1748eb[_0x5c29('0xd9')])),_0x1748eb['authorsIds']){const _0x5b1b8b=this[_0x5c29('0xea')][_0x5c29('0xe6')]['get'](_0x5c29('0x89'));_0x1748eb[_0x5c29('0x21')]=_0x1748eb['authorsIds'][_0x5c29('0xa9')](_0x4ec9bf=>_0x5b1b8b[_0x5c29('0xb5')](_0x4ec9bf));}_0x18e1b6['_update'](_0x1748eb,!0x0);}[_0x5c29('0xb9')]({revision:_0x5a66de=null,from:_0x102841=null,to:_0x314d39=null}){_0x102841=null!==_0x102841?_0x102841:_0x5a66de['fromVersion'],_0x314d39=null!==_0x314d39?_0x314d39:_0x5a66de[_0x5c29('0x35')];const _0x383035=this['_revisionDataBuilder']['getData'](_0x102841,_0x314d39),_0x2d32c1={'diffData':_0x383035[_0x5c29('0xc1')],'authorsIds':_0x383035['authorsIds'],'fromVersion':_0x102841,'toVersion':_0x314d39};if(!_0x5a66de||_0x314d39!==_0x5a66de['toVersion']){const _0x10a10a=_0x314d39-0x1,_0x52875b=this[_0x5c29('0xd3')][_0x5c29('0x33')]['getOperation'](_0x10a10a);_0x2d32c1[_0x5c29('0xd9')]=_0x52875b&&_0x52875b[_0x5c29('0xd9')]||new Date();}if(this[_0x5c29('0xe')]&&_0x102841===this[_0x5c29('0xe')]['fromVersion'])for(const _0x333460 of this[_0x5c29('0xe')]['authors'])_0x2d32c1[_0x5c29('0xfd')]['includes'](_0x333460['id'])||_0x2d32c1[_0x5c29('0xfd')][_0x5c29('0xf1')](_0x333460['id']);return _0x2d32c1;}[_0x5c29('0xc3')](_0x1d48a7){if(!_0x1d48a7||_0x1d48a7[_0x5c29('0xc1')])return Promise['resolve']();{const _0x47f243=this[_0x5c29('0xea')]['config'][_0x5c29('0x2e')]('collaboration.channelId');return this[_0x5c29('0xf5')][_0x5c29('0xcd')]({'channelId':_0x47f243,'revisionId':_0x1d48a7['id']})['then'](_0x31dceb=>{_0x1d48a7['diffData']=_0x31dceb['diffData'];});}}[_0x5c29('0x16')](_0x5cda42,_0x153a38,_0x56879f){if(this[_0x5c29('0xd8')][_0x5c29('0xa0')](_0x5cda42)){const _0x40e058=this[_0x5c29('0xd8')]['get'](_0x5cda42);_0x153a38=_0x56879f?{..._0x40e058,..._0x153a38}:{..._0x153a38,..._0x40e058};}this[_0x5c29('0xd8')][_0x5c29('0xa6')](_0x5cda42,_0x153a38);}[_0x5c29('0x1f')](_0x187073){const _0x3bd2e6=this['repository'][_0x5c29('0xe7')]();_0x3bd2e6[_0x5c29('0x69')](),_0x3bd2e6[_0x5c29('0x2a')]();const _0x36b4f6=_0x3bd2e6[_0x5c29('0x2d')](_0x28e5d7=>_0x28e5d7[_0x5c29('0x35')]<=_0x187073)['toVersion'];return _0x36b4f6<this[_0x5c29('0x7')]?this[_0x5c29('0x7')]:_0x36b4f6;}[_0x5c29('0x5')](_0x3d4fb2){const _0x5df678=this[_0x5c29('0x1b')][_0x5c29('0xcd')](this[_0x5c29('0x1b')]['length']-0x1);if(_0x5df678)this[_0x5c29('0x92')]=_0x5df678['id'];else{const _0x5bb0d0=!this[_0x5c29('0xea')][_0x5c29('0xbf')][_0x5c29('0xcb')]['roots']['find'](_0x1dc6ad=>this['editor'][_0x5c29('0xbf')][_0x5c29('0x11')](_0x1dc6ad)),_0x2fb097=this[_0x5c29('0xea')]['plugins'][_0x5c29('0x2e')](_0x5c29('0x89'))['me']['id'],_0xf0697a=_0x34c13d(this[_0x5c29('0xea')]['locale'],_0x5bb0d0?_0x5c29('0x8c'):_0x5c29('0xe4'));this[_0x5c29('0x17')]({'from':_0x3d4fb2,'to':_0x3d4fb2,'id':this[_0x5c29('0x92')],'name':_0xf0697a,'creatorId':_0x2fb097});}}['_createCurrentRevision'](_0x4930c3){const _0xb5459d=this['_source'][_0x5c29('0x34')]();this[_0x5c29('0x99')]=this['repository']['getRevision'](_0xb5459d),this[_0x5c29('0x99')]||(this['currentRevision']=this[_0x5c29('0x17')]({'from':_0x4930c3,'to':_0x4930c3,'id':_0xb5459d,'name':'','creatorId':null}));}[_0x5c29('0x17')]({name:_0x2ac569,from:_0x24d331,to:_0x31f8ff,creatorId:_0x15a65c,id:_0x2b1733}){const _0xaad65d=this[_0x5c29('0xb9')]({'from':_0x24d331,'to':_0x31f8ff});_0xaad65d[_0x5c29('0x32')]=_0x2ac569,_0xaad65d['creatorId']=_0x15a65c,_0xaad65d['id']=_0x2b1733;const _0x517c4f=this['addRevisionData'](_0xaad65d);return this[_0x5c29('0xf5')]&&this[_0x5c29('0x16')](_0xaad65d['id'],_0xaad65d,!0x0),_0x517c4f;}[_0x5c29('0xa8')](){this[_0x5c29('0xea')][_0x5c29('0x1')]['for'](_0x5c29('0xa7'))[_0x5c29('0x8')]({'model':_0x5c29('0x97')});}[_0x5c29('0x61')](_0x1d86cb){return(_0x1d86cb=_0x1d86cb[_0x5c29('0xad')](_0x17f0e7=>!_0x17f0e7['name']||_0x5c29('0x1a')!==_0x17f0e7[_0x5c29('0x32')]&&'revision-end'!==_0x17f0e7[_0x5c29('0x32')]))[_0x5c29('0x77')](_0x5e6abe=>{'string'!=typeof _0x5e6abe&&(_0x5e6abe[_0x5c29('0x75')]=this['_removeRevisionMarkers'](_0x5e6abe['children']),_0x5e6abe[_0x5c29('0x8d')]=_0x5e6abe['attributes'][_0x5c29('0xad')](_0x553350=>!_0x553350[0x0][_0x5c29('0x13')](_0x5c29('0x25'))));}),_0x1d86cb;}}function J(_0x341189,_0x480619){const _0x436ad2=_0x480619[_0x5c29('0x84')]['view'][_0x5c29('0xcb')];if(_0x5c29('0x23')==typeof _0x341189)return new _0x2eae4d(_0x436ad2,_0x341189);{const _0x4e39c4=_0x341189[_0x5c29('0x75')][_0x5c29('0xa9')](_0x5b3c8a=>J(_0x5b3c8a,_0x480619));return new(B[_0x341189[(_0x5c29('0x9b'))]]||_0x1b5f4c)(_0x436ad2,_0x341189[_0x5c29('0x32')],_0x341189['attributes'],_0x4e39c4);}}class H{constructor(_0x56235f){this['editor']=_0x56235f,this[_0x5c29('0x80')]=new Map(),this['_lastFrom']=-0x1,this[_0x5c29('0x36')]=-0x1,this[_0x5c29('0x57')]=new Map(),this[_0x5c29('0x4b')]=new Map(),this[_0x5c29('0x6')]=new Map(),this[_0x5c29('0x24')]=new Map(),this[_0x5c29('0x28')]=new Map(),this[_0x5c29('0xfa')]=new Map(),this[_0x5c29('0xc8')]=new Map(),this[_0x5c29('0x54')]=new Map(),this[_0x5c29('0xd6')]=new Map(),this[_0x5c29('0xc2')]=new Map(),this[_0x5c29('0xa4')]=0x1,this[_0x5c29('0xf9')]=this[_0x5c29('0xea')][_0x5c29('0xbf')][_0x5c29('0xcb')]['getRootNames'](),this[_0x5c29('0xf9')][_0x5c29('0xf1')]('$graveyard');}[_0x5c29('0xa3')](_0xd6cc6){this[_0x5c29('0x4e')]=_0xd6cc6;const _0x5496d4=new Map(),_0x2cde3f=new Map(),_0x4ae6c5=this[_0x5c29('0xea')][_0x5c29('0xbf')]['document'][_0x5c29('0xd')](!0x0);_0x4ae6c5[_0x5c29('0xf1')]('$graveyard');for(const _0x54db78 of _0x4ae6c5){const _0x198cca=this[_0x5c29('0xea')][_0x5c29('0xbf')][_0x5c29('0xcb')][_0x5c29('0xc6')](_0x54db78),_0x4aae93=q(_0x198cca);_0x5496d4[_0x5c29('0xa6')](_0x54db78,_0x4aae93),_0x2cde3f['set'](_0x54db78,Object[_0x5c29('0x50')](_0x198cca['getAttributes']()));}const _0x5a61e3=Array[_0x5c29('0x64')](this[_0x5c29('0xea')][_0x5c29('0xbf')][_0x5c29('0x39')])[_0x5c29('0xa9')](_0x53570f=>[_0x53570f['name'],_0x53570f[_0x5c29('0x8e')]()]),_0x4a05c3=this['source'][_0x5c29('0x45')];this[_0x5c29('0x68')](_0x4a05c3,_0x5496d4,_0x5a61e3,_0x2cde3f),this['_startingRevisionId']=this[_0x5c29('0xa4')];const _0x4d615f=new Map(),_0x34f3ca=new Map();for(const _0x20b2c8 of this[_0x5c29('0xf9')]){const _0x4519f9=G(_0x20b2c8);_0x4d615f[_0x5c29('0xa6')](_0x20b2c8,_0x4519f9),_0x34f3ca[_0x5c29('0xa6')](_0x20b2c8,{});}this['_saveMetaData'](Number[_0x5c29('0xa1')],_0x4d615f,[],_0x34f3ca);}[_0x5c29('0x8b')](_0x3b427c,_0x36317f){if(this[_0x5c29('0xd2')]===_0x3b427c&&this['_lastTo']<=_0x36317f)this[_0x5c29('0x80')]['size']>0x1&&this[_0x5c29('0x4f')](this[_0x5c29('0x36')]),this['_applyOperations'](this['_lastTo'],_0x36317f,!0x0);else{if(!this[_0x5c29('0x80')][_0x5c29('0xa0')](_0x3b427c)){const _0x5ac08b=this[_0x5c29('0x91')](_0x3b427c);this[_0x5c29('0x72')](_0x5ac08b,_0x3b427c,!0x1);}this[_0x5c29('0x72')](_0x3b427c,_0x36317f,!0x0);}return this['_lastFrom']=_0x3b427c,this[_0x5c29('0x36')]=_0x36317f,this['_getState']();}['loadState'](_0x1734ab){this['_reset'](),this['_lastFrom']=_0x1734ab[_0x5c29('0xf0')],this[_0x5c29('0x36')]=_0x1734ab[_0x5c29('0x35')];for(const _0x1399c1 in _0x1734ab[_0x5c29('0xc1')]){const _0x21018e=_0x1734ab[_0x5c29('0xc1')][_0x1399c1]['attachChange'],_0x5b2b35=_0x118057(_0x1734ab[_0x5c29('0xc1')][_0x1399c1][_0x5c29('0x31')])||{},_0x26c340=this[_0x5c29('0x41')](_0x1734ab['diffData'][_0x1399c1][_0x5c29('0x3a')]);_0x26c340[_0x5c29('0x9d')]=_0x1399c1,_0x26c340['_isAttached']=!_0x21018e||!_0x21018e[_0x5c29('0xb8')],_0x26c340[_0x5c29('0xb8')]=()=>_0x26c340[_0x5c29('0x22')],this[_0x5c29('0x24')]['set'](_0x1399c1,_0x26c340),this['_baseRootsAttributes'][_0x5c29('0xa6')](_0x1399c1,_0x5b2b35),_0x21018e&&this[_0x5c29('0xc2')]['set'](_0x1399c1,_0x21018e);const _0xac7930=this[_0x5c29('0xcc')](_0x26c340);this[_0x5c29('0xc8')][_0x5c29('0xa6')](_0x1399c1,_0xac7930);for(const [_0x312ee7,_0x25c492]of _0x26c340[_0x5c29('0x39')]){if(!_0x312ee7[_0x5c29('0x13')](_0x5c29('0x7b')))continue;const _0x1d8100=_0x312ee7[_0x5c29('0x4c')](':')[0x2];for(const _0x1f65ed of _0x25c492['getWalker']({'singleCharacters':!0x0})){const _0x3c4551=this[_0x5c29('0x18')](_0x1f65ed),_0x1ed590=_0x5c29('0x37')==_0x1f65ed[_0x5c29('0x9b')]?_0x1f65ed['previousPosition'][_0x5c29('0xaf')][_0x5c29('0x6c')](0x0,-0x1):_0x1f65ed[_0x5c29('0xc5')][_0x5c29('0xaf')],_0x2565fa=_0xac7930[_0x5c29('0xf8')](_0x1ed590)[_0x5c29('0xb6')](_0x3c4551);this['_touched'][_0x5c29('0xa6')](_0x2565fa,{'userId':_0x1d8100});}}}this['_startingRevisionId']=this[_0x5c29('0xa4')];const _0x2a8762=[...Array(this[_0x5c29('0xa4')])['keys']()]['slice'](0x1)['filter'](_0x128efd=>!this['_touched'][_0x5c29('0xa0')](_0x128efd));let _0x266fa0=0x0;const _0x4e4212=new Map();for(const _0x49b60c in _0x1734ab['diffData']){const _0xc6ac1=_0x1734ab['diffData'][_0x49b60c][_0x5c29('0xee')],_0x10af4c=_0x118057(_0x1734ab[_0x5c29('0xc1')][_0x49b60c]['attributesAfter'])||{},_0x16912a=this['_makeModelFromViewString'](_0x1734ab[_0x5c29('0xc1')][_0x49b60c][_0x5c29('0xdf')]);_0x16912a['rootName']=_0x49b60c,_0x16912a['_isAttached']=!_0xc6ac1||_0xc6ac1[_0x5c29('0xb8')],_0x16912a[_0x5c29('0xb8')]=()=>_0x16912a[_0x5c29('0x22')],this[_0x5c29('0x4b')][_0x5c29('0xa6')](_0x49b60c,_0x16912a),this[_0x5c29('0x6')][_0x5c29('0xa6')](_0x49b60c,_0x10af4c);const _0x537d2d=this[_0x5c29('0xcc')](_0x16912a,Number[_0x5c29('0xa1')]);this[_0x5c29('0xfa')]['set'](_0x49b60c,_0x537d2d),_0x4e4212['set'](_0x49b60c,_0x16912a[_0x5c29('0xb8')]()?_0x10af4c:{});for(const [_0x20affb,_0x59a235]of _0x16912a[_0x5c29('0x39')]){if(!_0x20affb[_0x5c29('0x13')]('revision:'))continue;const _0x432019=_0x20affb[_0x5c29('0x4c')](':')[0x2];for(const _0x5b9444 of _0x59a235['getWalker']({'singleCharacters':!0x0})){const _0x44375a=this[_0x5c29('0x18')](_0x5b9444),_0xad189c=this[_0x5c29('0xa4')]++,_0xd0cb8e='elementEnd'==_0x5b9444[_0x5c29('0x9b')]?_0x5b9444[_0x5c29('0xc5')][_0x5c29('0xaf')][_0x5c29('0x6c')](0x0,-0x1):_0x5b9444[_0x5c29('0xc5')]['path'];_0x537d2d[_0x5c29('0xf8')](_0xd0cb8e)[_0x5c29('0xd0')](_0x44375a,_0xad189c),this['_touched'][_0x5c29('0xa6')](_0xad189c,{'userId':_0x432019});}}for(const _0x413d07 of this['editor'][_0x5c29('0xbf')][_0x5c29('0xca')](_0x16912a)['getWalker']({'singleCharacters':!0x0})){const _0x1de81a=this[_0x5c29('0x18')](_0x413d07),_0x3e1c0b=_0x5c29('0x37')==_0x413d07['type']?_0x413d07[_0x5c29('0xc5')][_0x5c29('0xaf')][_0x5c29('0x6c')](0x0,-0x1):_0x413d07[_0x5c29('0xc5')]['path'],_0xa23b2b=_0x537d2d[_0x5c29('0xf8')](_0x3e1c0b);_0xa23b2b[_0x5c29('0xb6')](_0x1de81a)>0x0||_0xa23b2b[_0x5c29('0xd0')](_0x1de81a,_0x2a8762[_0x266fa0++]);}for(const [_0x44d75b,_0x467ad1]of _0x16912a[_0x5c29('0x39')])_0x44d75b['startsWith'](_0x5c29('0x7b'))||this[_0x5c29('0x57')][_0x5c29('0xa6')](_0x44d75b,_0x467ad1);}const _0x2a72bc=G('$graveyard');this[_0x5c29('0x24')][_0x5c29('0xa6')]('$graveyard',_0x2a72bc),this[_0x5c29('0xc8')]['set'](_0x5c29('0x2c'),this[_0x5c29('0xcc')](_0x2a72bc,0x1));const _0x531a26=G(_0x5c29('0x2c'));this[_0x5c29('0x4b')][_0x5c29('0xa6')](_0x5c29('0x2c'),_0x531a26),this[_0x5c29('0xfa')][_0x5c29('0xa6')](_0x5c29('0x2c'),this[_0x5c29('0xcc')](_0x531a26,0x1));const _0x43ec2b=Array[_0x5c29('0x64')](this[_0x5c29('0x4b')])[_0x5c29('0xa9')](([_0x599540,_0x448728])=>[_0x599540,q(_0x448728)]);this[_0x5c29('0x68')](this[_0x5c29('0x36')],_0x43ec2b,this[_0x5c29('0x57')],_0x4e4212);}[_0x5c29('0x41')](_0x451265){const _0x40dd8f=JSON['parse'](_0x451265),_0x4b0075=this[_0x5c29('0xea')][_0x5c29('0x84')]['view'][_0x5c29('0xcb')],_0x513672=new _0x38aa6b(_0x4b0075,_0x40dd8f[_0x5c29('0xa9')](_0x5455c6=>J(_0x5455c6,this[_0x5c29('0xea')])));return this[_0x5c29('0xea')]['data']['toModel'](_0x513672);}[_0x5c29('0x68')](_0x5b9944,_0x253701,_0x1fc5ad,_0x17bf20){const _0x2e2bd9=new Map(_0x253701),_0x1cd0fb=new Map(_0x118057(_0x17bf20)),_0x25bf8d=new Map();for(const [_0x1b7404,_0x4255d8]of _0x1fc5ad)_0x25bf8d[_0x5c29('0xa6')](_0x1b7404,{'start':_0x4255d8[_0x5c29('0xe3')][_0x5c29('0x12')](),'end':_0x4255d8[_0x5c29('0x26')][_0x5c29('0x12')](),'rootName':_0x4255d8[_0x5c29('0xae')]['rootName']});this[_0x5c29('0x80')][_0x5c29('0xa6')](_0x5b9944,{'roots':_0x2e2bd9,'markers':_0x25bf8d,'rootsAttributes':_0x1cd0fb});}[_0x5c29('0x4f')](_0x2fffbf){this[_0x5c29('0x80')][_0x5c29('0xe1')](_0x2fffbf);}['reInit'](){this[_0x5c29('0x7a')](),this['_lastFrom']=-0x1,this[_0x5c29('0x36')]=-0x1,this[_0x5c29('0x80')][_0x5c29('0xb3')](),this[_0x5c29('0xa3')](this['source']);}['_reset'](){this[_0x5c29('0x54')]['clear'](),this[_0x5c29('0xd6')][_0x5c29('0xb3')](),this[_0x5c29('0xc2')][_0x5c29('0xb3')](),this[_0x5c29('0x4b')][_0x5c29('0xb3')](),this[_0x5c29('0x6')][_0x5c29('0xb3')](),this[_0x5c29('0x24')][_0x5c29('0xb3')](),this[_0x5c29('0x28')]['clear'](),this[_0x5c29('0xfa')]['clear'](),this[_0x5c29('0xc8')][_0x5c29('0xb3')](),this[_0x5c29('0x57')]['clear'](),this['_revisionId']=0x1,this[_0x5c29('0x58')]=this['_revisionId'];}[_0x5c29('0xcc')](_0x2bf0a9,_0x24519c=null){let _0x13c0fe=null;_0x2bf0a9['is'](_0x5c29('0x6a'))||(_0x13c0fe=new _0x21b98a(_0x2bf0a9[_0x5c29('0x32')],{'vid_start':null===_0x24519c?this[_0x5c29('0xa4')]++:_0x24519c++}));const _0x2fe172=[];for(const _0x4cccd4 of _0x2bf0a9[_0x5c29('0xfe')]())if(_0x4cccd4['is'](_0x5c29('0x59'))){_0x2fe172[_0x5c29('0xf1')](this[_0x5c29('0xcc')](_0x4cccd4,_0x24519c));const _0xe2c560=_0x2fe172[_0x2fe172['length']-0x1];null!==_0x24519c&&(_0x24519c=_0xe2c560['is']('element','$text')?_0xe2c560['getAttribute'](_0x5c29('0x66'))+0x1:_0xe2c560[_0x5c29('0xb6')](_0x5c29('0x79'))+0x1);}else for(let _0x527022=0x0;_0x527022<_0x4cccd4[_0x5c29('0xc9')];_0x527022++)_0x2fe172[_0x5c29('0xf1')](new _0x21b98a('$text',{'vid':null===_0x24519c?this[_0x5c29('0xa4')]++:_0x24519c++}));if(_0x2bf0a9['is'](_0x5c29('0x6a'))){const _0x28dc1b=G(_0x2bf0a9[_0x5c29('0x9d')]);return _0x28dc1b[_0x5c29('0x85')](0x0,_0x2fe172),_0x28dc1b;}return _0x13c0fe[_0x5c29('0xd0')](_0x5c29('0x79'),null===_0x24519c?this[_0x5c29('0xa4')]++:_0x24519c++),_0x13c0fe[_0x5c29('0x85')](0x0,_0x2fe172),_0x13c0fe;}['_calculateMetaData'](_0x33f473,_0x3e9708,_0x3ffc7a){this[_0x5c29('0x7a')]();const {roots:_0x512fae,markers:_0x18e19d,rootsAttributes:_0x4d8716}=this[_0x5c29('0x80')][_0x5c29('0x2e')](_0x33f473);this[_0x5c29('0x24')]=new Map(_0x512fae),this[_0x5c29('0x28')]=new Map(_0x118057(_0x4d8716));for(const [_0x1b8d13,_0x3a6245]of this[_0x5c29('0x24')])if('$graveyard'!==_0x1b8d13&&(this[_0x5c29('0x4b')][_0x5c29('0xa6')](_0x1b8d13,q(_0x3a6245)),this[_0x5c29('0x6')]=new Map(_0x118057(_0x4d8716)),_0x3ffc7a)){const _0x23a241=this[_0x5c29('0xa4')];this[_0x5c29('0xfa')][_0x5c29('0xa6')](_0x1b8d13,this[_0x5c29('0xcc')](_0x3a6245)),this[_0x5c29('0xc8')][_0x5c29('0xa6')](_0x1b8d13,this[_0x5c29('0xcc')](_0x3a6245,_0x23a241));}this[_0x5c29('0x58')]=this[_0x5c29('0xa4')],this['_diffRoots'][_0x5c29('0xa6')](_0x5c29('0x2c'),q(this[_0x5c29('0x24')][_0x5c29('0x2e')](_0x5c29('0x2c')))),_0x3ffc7a&&this[_0x5c29('0xfa')][_0x5c29('0xa6')]('$graveyard',this[_0x5c29('0xcc')](this[_0x5c29('0x24')][_0x5c29('0x2e')](_0x5c29('0x2c'))));for(const [_0x3fc9d8,_0x5772a1]of _0x18e19d){const _0x4db175=this[_0x5c29('0x24')]['get'](_0x5772a1[_0x5c29('0x9d')]),_0x3cbee9=this[_0x5c29('0x4b')][_0x5c29('0x2e')](_0x5772a1['rootName']),_0x3d59c5=new _0x4814c5(this['_fixPosition'](_0x5772a1[_0x5c29('0xe3')],_0x4db175),this[_0x5c29('0x9e')](_0x5772a1[_0x5c29('0x26')],_0x4db175)),_0x1bdd7f=this['_fixRange'](_0x3d59c5,_0x3cbee9);_0x4db175[_0x5c29('0x39')][_0x5c29('0xa6')](_0x3fc9d8,_0x3d59c5),this['_markers'][_0x5c29('0xa6')](_0x3fc9d8,_0x1bdd7f);}this[_0x5c29('0xe8')](_0x33f473,_0x3e9708,_0x3ffc7a);}[_0x5c29('0xe8')](_0x5e4e90,_0x21e34d,_0x229676){for(const _0x472cd8 of this[_0x5c29('0x4e')][_0x5c29('0x2f')](_0x5e4e90,_0x21e34d))this[_0x5c29('0xeb')](_0x472cd8,_0x229676);for(const _0x6b60a5 of this['_diffRoots'][_0x5c29('0x74')]())_0x6b60a5[_0x5c29('0x39')]['clear']();for(const [_0xce9ef4,_0x40059d]of this['_markers']){this[_0x5c29('0x4b')][_0x5c29('0x2e')](_0x40059d[_0x5c29('0xae')][_0x5c29('0x9d')])[_0x5c29('0x39')][_0x5c29('0xa6')](_0xce9ef4,_0x40059d[_0x5c29('0x12')]());}const _0x1f35fd=new Map(),_0x1860f7=new Map();for(const [_0x591bdb,_0x22449c]of this[_0x5c29('0x4b')])_0x1f35fd['set'](_0x591bdb,q(_0x22449c)),_0x1860f7[_0x5c29('0xa6')](_0x591bdb,this[_0x5c29('0x6')]['get'](_0x591bdb));this[_0x5c29('0x68')](_0x21e34d,_0x1f35fd,this[_0x5c29('0x57')],_0x1860f7);}[_0x5c29('0x91')](_0x42a316){const _0x2c3dd4=Array['from'](this[_0x5c29('0x80')]['keys']());_0x2c3dd4[_0x5c29('0x7c')]((_0x49f94c,_0x1416d6)=>_0x49f94c-_0x1416d6),_0x2c3dd4[_0x5c29('0x69')]();for(const _0x4a357b of _0x2c3dd4)if(_0x4a357b<_0x42a316)return _0x4a357b;return Number[_0x5c29('0xa1')];}[_0x5c29('0x87')](_0x446982,_0x19ed5d){const _0x221658=Array['from'](_0x19ed5d[_0x5c29('0x39')])[_0x5c29('0xa9')](([_0x12590e,_0x5125f5])=>[_0x12590e,this['_fixRange'](_0x5125f5,_0x446982)]);_0x446982[_0x5c29('0x39')]=new Map(_0x221658);}[_0x5c29('0x7d')](_0x267374){for(const _0x22bb45 of this[_0x5c29('0x57')][_0x5c29('0x74')]()){const _0x5e79be=_0x22bb45[_0x5c29('0xe2')](_0x267374),_0x1d4e8c=_0x4814c5[_0x5c29('0x5f')](_0x5e79be);_0x22bb45[_0x5c29('0xe3')]=_0x1d4e8c[_0x5c29('0xe3')],_0x22bb45[_0x5c29('0x26')]=_0x1d4e8c[_0x5c29('0x26')];}}[_0x5c29('0xeb')](_0x2d84c5,_0x41ae47){if('addRoot'==_0x2d84c5['type']||'detachRoot'==_0x2d84c5[_0x5c29('0x9b')])return void this[_0x5c29('0x3d')](_0x2d84c5,_0x41ae47);if('insert'==_0x2d84c5[_0x5c29('0x9b')]){const _0x657e3d=_0x2d84c5[_0x5c29('0x3e')][_0x5c29('0xae')][_0x5c29('0x9d')];this[_0x5c29('0x4b')][_0x5c29('0xa0')](_0x657e3d)||(this[_0x5c29('0x4b')][_0x5c29('0xa6')](_0x657e3d,G(_0x657e3d,!0x0)),this[_0x5c29('0x6')][_0x5c29('0xa6')](_0x657e3d,{}),_0x41ae47&&this[_0x5c29('0xfa')][_0x5c29('0xa6')](_0x657e3d,G(_0x657e3d,!0x0)));}if('addRootAttribute'==_0x2d84c5[_0x5c29('0x9b')]||'removeRootAttribute'==_0x2d84c5[_0x5c29('0x9b')]||'changeRootAttribute'==_0x2d84c5[_0x5c29('0x9b')])return void this['_handleRootAttributeOperation'](_0x2d84c5);const _0x3db1b5=this[_0x5c29('0xba')](_0x2d84c5,this[_0x5c29('0x4b')]);if(_0x5c29('0x90')!==_0x2d84c5[_0x5c29('0x9b')]&&(_0x3db1b5[_0x5c29('0xbc')](),this[_0x5c29('0x7d')](_0x3db1b5)),_0x41ae47)switch(_0x3db1b5[_0x5c29('0x9b')]){case _0x5c29('0x55'):this[_0x5c29('0x3f')](_0x2d84c5);break;case _0x5c29('0xdc'):case _0x5c29('0xe5'):case _0x5c29('0x63'):this[_0x5c29('0x38')](_0x2d84c5);break;case'merge':this[_0x5c29('0x43')](_0x2d84c5);break;case _0x5c29('0x4c'):this[_0x5c29('0x1d')](_0x2d84c5);break;case _0x5c29('0x90'):this['_handleMarkerOperation'](_0x2d84c5);}}['_cloneOperation'](_0x396fa5,_0x6a7c15){const _0x372644=_0x396fa5['clone']();return _0x372644[_0x5c29('0x46')]=_0x396fa5[_0x5c29('0x46')],this[_0x5c29('0xa2')](_0x372644,_0x6a7c15),_0x372644;}[_0x5c29('0x2')](_0x5e8e5b){return _0x5e8e5b[_0x5c29('0xa9')](_0x4a4667=>{const _0x587df0=this['_getVidAttributeName'](_0x4a4667);return Number(_0x4a4667[_0x5c29('0x60')]['getAttribute'](_0x587df0));});}['_generateTape'](_0x589409,_0xf23303){if(_0x589409['is'](_0x5c29('0x59'),_0x5c29('0xf6')))_0xf23303[_0x5c29('0xf1')]({'item':_0x589409,'type':_0x5c29('0x4')});else{_0x589409['is']('element')&&_0xf23303[_0x5c29('0xf1')]({'item':_0x589409,'type':_0x5c29('0xbd')});for(const _0x1b736d of _0x589409[_0x5c29('0xfe')]())this[_0x5c29('0xfb')](_0x1b736d,_0xf23303);_0x589409['is'](_0x5c29('0x59'))&&_0xf23303['push']({'item':_0x589409,'type':_0x5c29('0x37')});}return _0xf23303;}[_0x5c29('0x1c')](){const _0x12e501=new Map(this[_0x5c29('0x54')]),_0x4a9582=new Map(_0x12e501),_0xecd2f=new Map(),_0xb7fd36={'insertions':{},'deletions':{}},_0x441786={'insertions':{},'deletions':{}},_0x1f7a77=new Map(),_0x319842=new Set([...this[_0x5c29('0x24')]['keys'](),...this['_diffRoots'][_0x5c29('0x78')]()]);_0x319842['delete'](_0x5c29('0x2c'));for(const _0x22e319 of _0x319842){const _0x447867=this[_0x5c29('0x4b')]['get'](_0x22e319)||G(_0x22e319,!0x1),_0x2c3115=this['_baseRoots'][_0x5c29('0x2e')](_0x22e319)||G(_0x22e319,!0x1);_0x447867['isAttached']()||_0x2c3115[_0x5c29('0xb8')]()?(_0xb7fd36[_0x5c29('0xdf')][_0x22e319]=q(_0x447867),_0xb7fd36[_0x5c29('0x3a')][_0x22e319]=q(_0x2c3115),this[_0x5c29('0x87')](_0xb7fd36[_0x5c29('0x3a')][_0x22e319],_0x2c3115),this['_copyMarkers'](_0xb7fd36[_0x5c29('0xdf')][_0x22e319],_0x447867),_0x441786['insertions'][_0x22e319]=this[_0x5c29('0xfb')](this[_0x5c29('0xfa')][_0x5c29('0x2e')](_0x22e319),[]),_0x441786[_0x5c29('0x3a')][_0x22e319]=this[_0x5c29('0xfb')](this[_0x5c29('0xc8')]['get'](_0x22e319)||G(_0x22e319,!0x1),[])):_0x319842['delete'](_0x22e319);}for(const _0x40b10c of _0x319842){const _0x3061b6=_0x441786[_0x5c29('0xdf')][_0x40b10c];for(const _0x3072b9 of _0x3061b6){const _0x5f00bd=this[_0x5c29('0x18')](_0x3072b9),_0x136867=_0x3072b9['item'][_0x5c29('0xb6')](_0x5f00bd);_0x4a9582[_0x5c29('0xe1')](_0x136867),_0x136867>=this[_0x5c29('0x58')]&&_0xecd2f[_0x5c29('0xa6')](_0x136867,_0x12e501[_0x5c29('0x2e')](_0x136867));}}for(const _0x1193a1 of _0x319842){const _0x3c76db=_0x441786[_0x5c29('0xdf')][_0x1193a1],_0x425871=this[_0x5c29('0x2')](_0x441786[_0x5c29('0x3a')][_0x1193a1]);let _0x5cd9a9=0x0;for(const _0x48938d of _0x3c76db){const _0x2c63b7=this[_0x5c29('0x18')](_0x48938d),_0x55afa6=_0x48938d['item'][_0x5c29('0xb6')](_0x2c63b7);if(!_0xecd2f[_0x5c29('0xa0')](_0x55afa6)&&!_0x1f7a77['has'](_0x55afa6)){if(_0x4a9582[_0x5c29('0xa0')](_0x55afa6))_0x5cd9a9++;else{if(_0x55afa6!=_0x425871[_0x5cd9a9]){const _0x1462f8=_0x12e501['get'](_0x55afa6)||_0x12e501[_0x5c29('0x2e')](_0x425871[_0x5cd9a9]);for(;_0x55afa6!=_0x425871[_0x5cd9a9];)_0x4a9582[_0x5c29('0xa0')](_0x425871[_0x5cd9a9])||(_0x1f7a77[_0x5c29('0xa6')](_0x425871[_0x5cd9a9],_0x1462f8),_0x12e501[_0x5c29('0xa6')](_0x425871[_0x5cd9a9],_0x1462f8)),_0x5cd9a9++;}_0x5cd9a9++;}}}}for(const _0x57335e of _0x319842){const _0x4a3f44=_0x441786[_0x5c29('0xdf')][_0x57335e];for(const _0x4c3867 of _0x4a3f44){const _0x42e27e=this['_getVidAttributeName'](_0x4c3867),_0x32cadb=_0x4c3867[_0x5c29('0x60')]['getAttribute'](_0x42e27e);if(_0x1f7a77[_0x5c29('0xa0')](_0x32cadb)){const _0x2c1320=_0x1f7a77[_0x5c29('0x2e')](_0x32cadb);_0x4a9582[_0x5c29('0xa0')](_0x32cadb)||_0x4a9582['set'](_0x32cadb,{..._0x2c1320}),_0xecd2f[_0x5c29('0xa6')](_0x32cadb,{..._0x2c1320});}}}for(const _0x557f43 of _0x4a9582[_0x5c29('0x78')]())_0x557f43>=this[_0x5c29('0x58')]&&_0x4a9582[_0x5c29('0xe1')](_0x557f43);const _0x582824=new Map();for(const _0x3ae736 of _0x319842){let _0x2f485b=_0x441786[_0x5c29('0xdf')][_0x3ae736];for(const _0x263d0c of _0x2f485b)if(_0x263d0c[_0x5c29('0x60')]['is'](_0x5c29('0x59'),_0x5c29('0x70'))){const _0x55f396=this[_0x5c29('0x18')](_0x263d0c),_0x27d360=_0x263d0c[_0x5c29('0x60')][_0x5c29('0xb6')](_0x55f396);if(_0xecd2f[_0x5c29('0xa0')](_0x27d360)){const _0x57ee49=_0x263d0c[_0x5c29('0x60')][_0x5c29('0x9')][_0x5c29('0x9')][_0x5c29('0xb6')](_0x5c29('0x67')),_0x1f3946=_0x582824[_0x5c29('0x2e')](_0x57ee49)||new Set();_0x1f3946[_0x5c29('0xde')](_0xecd2f['get'](_0x27d360)[_0x5c29('0xcf')]),_0x582824[_0x5c29('0xa6')](_0x57ee49,_0x1f3946);}}_0x2f485b=_0x441786[_0x5c29('0x3a')][_0x3ae736];for(const _0x24b001 of _0x2f485b)if(_0x24b001['item']['is'](_0x5c29('0x59'),_0x5c29('0x70'))){const _0x5303ef=this[_0x5c29('0x18')](_0x24b001),_0x3824c1=_0x24b001['item'][_0x5c29('0xb6')](_0x5303ef);if(_0x4a9582[_0x5c29('0xa0')](_0x3824c1)){const _0xd5abd3=_0x24b001[_0x5c29('0x60')][_0x5c29('0x9')][_0x5c29('0x9')]['getAttribute'](_0x5c29('0x67')),_0x509d0e=_0x582824[_0x5c29('0x2e')](_0xd5abd3)||new Set();_0x509d0e[_0x5c29('0xde')](_0x4a9582[_0x5c29('0x2e')](_0x3824c1)[_0x5c29('0xcf')]),_0x582824[_0x5c29('0xa6')](_0xd5abd3,_0x509d0e);}}for(const _0x3e2230 of _0x582824[_0x5c29('0x78')]())(_0xecd2f[_0x5c29('0xa0')](_0x3e2230)||_0x4a9582[_0x5c29('0xa0')](_0x3e2230))&&_0x582824[_0x5c29('0xe1')](_0x3e2230);}for(const _0x4d8663 of _0x319842){const _0x3dacde=_0x441786[_0x5c29('0xdf')][_0x4d8663];let _0x4af7cd=null,_0x18d6be=null;for(const _0x13f234 of _0x3dacde){const _0x45eb51=this['_getVidAttributeName'](_0x13f234),_0x4a29c8=_0x13f234[_0x5c29('0x60')][_0x5c29('0xb6')](_0x45eb51),_0x4f5962=_0x582824[_0x5c29('0x2e')](_0x4a29c8);_0x4f5962&&_0x5c29('0xbd')==_0x13f234[_0x5c29('0x9b')]&&(_0x4af7cd=Array['from'](_0x4f5962)[0x0],_0x18d6be=_0x13f234[_0x5c29('0x60')][_0x5c29('0xb6')](_0x5c29('0x79'))),_0x4af7cd&&(_0x4a9582[_0x5c29('0xa6')](_0x4a29c8,{'userId':_0x4af7cd}),_0xecd2f[_0x5c29('0xa6')](_0x4a29c8,{'userId':_0x4af7cd})),_0x4a29c8==_0x18d6be&&(_0x4af7cd=null,_0x18d6be=null);}}const _0x13ada2={},_0x20e691=new Set();for(const _0x3c403e of _0x319842){const _0x2b5f20=_0xb7fd36[_0x5c29('0x3a')][_0x3c403e],_0x11f9f4=_0xb7fd36[_0x5c29('0xdf')][_0x3c403e];for(const {userId:_0x1c1796}of this[_0x5c29('0xd6')][_0x5c29('0x74')]())null!==_0x1c1796&&_0x20e691[_0x5c29('0xde')](_0x1c1796);for(const {userId:_0x591893}of this[_0x5c29('0xc2')]['values']())null!==_0x591893&&_0x20e691['add'](_0x591893);this['_markChanges'](_0x11f9f4,_0x441786[_0x5c29('0xdf')][_0x3c403e],_0xecd2f,_0x5c29('0xb0'),_0x20e691),this['_markChanges'](_0x2b5f20,_0x441786[_0x5c29('0x3a')][_0x3c403e],_0x4a9582,_0x5c29('0x15'),_0x20e691),_0x13ada2[_0x3c403e]={'insertions':this[_0x5c29('0x7f')](_0x11f9f4),'deletions':this['_prepareViewToSave'](_0x2b5f20),'attachChange':this['_touchedRoots'][_0x5c29('0x2e')](_0x3c403e)||null,'attributesBefore':_0x118057(this[_0x5c29('0x28')][_0x5c29('0x2e')](_0x3c403e))||{},'attributesAfter':_0x118057(this[_0x5c29('0x6')]['get'](_0x3c403e))};}return{'diffData':_0x13ada2,'authorsIds':Array['from'](_0x20e691)};}[_0x5c29('0x52')](_0x1b2af){for(const [,_0x1f4836]of _0x1b2af[_0x5c29('0x39')]){const _0xfc0231=_0x1f4836[_0x5c29('0xe3')]['getAncestors']()[_0x5c29('0xad')](_0x482dfe=>_0x5c29('0x70')==_0x482dfe[_0x5c29('0x32')]);for(const _0x5a0372 of _0xfc0231)0x1==_0x5a0372[_0x5c29('0x95')]&&_0x5a0372[_0x5c29('0x6e')](0x0)['is'](_0x5c29('0x59'),_0x5c29('0x1e'))&&_0x5a0372[_0x5c29('0x6e')](0x0)['_setAttribute'](_0x5c29('0x3c'),!0x0);}}['_prepareViewToSave'](_0x4a8a87){this['_processRootBeforeSave'](_0x4a8a87);const _0x31f026=this[_0x5c29('0xea')][_0x5c29('0x5e')][_0x5c29('0x56')](_0x4a8a87,{}),_0x9cc20a=Array[_0x5c29('0x64')](_0x31f026[_0x5c29('0xfe')]())['map'](_0x4171e0=>this[_0x5c29('0x29')](_0x4171e0));return JSON[_0x5c29('0xb')](_0x9cc20a);}[_0x5c29('0x29')](_0x40ae1c){if(_0x40ae1c['is'](_0x5c29('0xf6')))return _0x40ae1c[_0x5c29('0x5e')];{const _0x54883d=_0x40ae1c;return{'type':Object[_0x5c29('0x78')](B)[_0x5c29('0x2d')](_0x5bca8d=>_0x40ae1c instanceof B[_0x5bca8d]),'name':_0x54883d[_0x5c29('0x32')],'attributes':Array[_0x5c29('0x64')](_0x54883d['getAttributes']()),'children':Array[_0x5c29('0x64')](_0x54883d[_0x5c29('0xfe')]())[_0x5c29('0xa9')](_0x3d66a3=>this[_0x5c29('0x29')](_0x3d66a3))};}}['_markChanges'](_0x4a580e,_0x37eff2,_0x1fddbe,_0x1c964d,_0x5f5821){let _0x24e0b9=null,_0x222764=null,_0x21608f=0x0;const _0x1ce55d=this['editor'][_0x5c29('0xbf')];for(let _0x26f1b9=0x0;_0x26f1b9<_0x37eff2[_0x5c29('0x81')];_0x26f1b9++){const _0x47eed3=this[_0x5c29('0x18')](_0x37eff2[_0x26f1b9]),_0x32514e=_0x37eff2[_0x26f1b9][_0x5c29('0x60')][_0x5c29('0xb6')](_0x47eed3),_0x2f136f=_0x1fddbe[_0x5c29('0x2e')](_0x32514e),_0x2c685c=_0x26f1b9==_0x37eff2[_0x5c29('0x81')]-0x1;(!_0x24e0b9&&_0x2f136f&&(_0x24e0b9=_0x2f136f,_0x222764=_0x37eff2[_0x26f1b9]),_0x24e0b9&&(!_0x2f136f||_0x2f136f[_0x5c29('0xcf')]!=_0x24e0b9[_0x5c29('0xcf')]))&&(_0x3d9967(_0x2f136f,L(_0x222764,_0x4a580e,_0x1ce55d),L(_0x37eff2[_0x26f1b9],_0x4a580e,_0x1ce55d)),_0x24e0b9=_0x2f136f||null,_0x222764=_0x2f136f?_0x37eff2[_0x26f1b9]:null),_0x24e0b9&&_0x2c685c&&_0x3d9967(_0x2f136f,L(_0x222764,_0x4a580e,_0x1ce55d),W(_0x37eff2[_0x26f1b9],_0x4a580e,_0x1ce55d));}function _0x3d9967(_0x44cc97,_0x238f84,_0x32c41b){const _0x8a257b=_0x24e0b9[_0x5c29('0xcf')],_0xdf2d84='revision:'+_0x1c964d+':'+_0x8a257b+':'+_0x21608f++,_0x4362d1=_0x1ce55d[_0x5c29('0x65')](_0x238f84,_0x32c41b);_0x4a580e['markers']['set'](_0xdf2d84,_0x4362d1),null!==_0x8a257b&&_0x5f5821[_0x5c29('0xde')](_0x8a257b);}}[_0x5c29('0x18')](_0x3b9ad7){switch(_0x3b9ad7[_0x5c29('0x9b')]){case'elementStart':return _0x5c29('0x67');case _0x5c29('0x37'):return _0x5c29('0x79');default:return _0x5c29('0x66');}}[_0x5c29('0xa2')](_0x39edff,_0x5a22f3){_0x39edff['baseVersion']=null;for(const _0x10be92 in _0x39edff){const _0x4eee47=_0x39edff[_0x10be92];if(_0x4eee47 instanceof _0x1c842a){const _0x511946=_0x5a22f3[_0x5c29('0x2e')](_0x4eee47[_0x5c29('0xae')]['rootName']);_0x39edff[_0x10be92]=this[_0x5c29('0x9e')](_0x4eee47,_0x511946);}if(_0x4eee47 instanceof _0x4814c5){const _0xeb464f=_0x5a22f3[_0x5c29('0x2e')](_0x4eee47[_0x5c29('0xae')][_0x5c29('0x9d')]);_0x39edff[_0x10be92]=this[_0x5c29('0xa')](_0x4eee47,_0xeb464f);}'root'===_0x10be92&&(_0x39edff[_0x5c29('0xae')]=_0x5a22f3[_0x5c29('0x2e')](_0x39edff['root'][_0x5c29('0x9d')]));}}['_fixRange'](_0x53bdba,_0x277f3d){return this[_0x5c29('0xea')]['model']['createRange'](this[_0x5c29('0x9e')](_0x53bdba[_0x5c29('0xe3')],_0x277f3d),this[_0x5c29('0x9e')](_0x53bdba['end'],_0x277f3d));}[_0x5c29('0x9e')](_0x9d99f4,_0x2fadeb){return this[_0x5c29('0xea')][_0x5c29('0xbf')]['createPositionFromPath'](_0x2fadeb,_0x9d99f4[_0x5c29('0xaf')],_0x9d99f4[_0x5c29('0x6b')]);}['_handleInsertOperation'](_0x1d71a6){const _0x4a78de=this[_0x5c29('0xfa')][_0x5c29('0x2e')](_0x1d71a6['position']['root'][_0x5c29('0x9d')]),_0x1ccf66=this[_0x5c29('0x9e')](_0x1d71a6[_0x5c29('0x3e')],_0x4a78de),_0x61c7b4=null===_0x1d71a6['_authorId']?null:_0x1d71a6[_0x5c29('0x46')]||this[_0x5c29('0xea')]['plugins'][_0x5c29('0x2e')]('Users')['me']['id'],_0x5a23de=_0x1ccf66[_0x5c29('0x9')],_0xcc200a=this['_revisionId'],_0xe94cc1=[];for(const _0x38be18 of _0x1d71a6['nodes'])if(_0x38be18['is'](_0x5c29('0x59')))_0xe94cc1[_0x5c29('0xf1')](this[_0x5c29('0xcc')](_0x38be18));else for(let _0x52b39a=0x0;_0x52b39a<_0x38be18[_0x5c29('0xc9')];_0x52b39a++)_0xe94cc1[_0x5c29('0xf1')](new _0x21b98a(_0x5c29('0xf6'),{'vid':this[_0x5c29('0xa4')]++}));const _0x2b5ece=this[_0x5c29('0xa4')];for(let _0x42d65d=_0xcc200a;_0x42d65d<_0x2b5ece;_0x42d65d++)this[_0x5c29('0x54')][_0x5c29('0xa6')](_0x42d65d,{'userId':_0x61c7b4});_0x5a23de[_0x5c29('0x85')](_0x1ccf66[_0x5c29('0x0')],_0xe94cc1);}[_0x5c29('0x38')](_0x2c650d){(_0x2c650d=this[_0x5c29('0xba')](_0x2c650d,this[_0x5c29('0xfa')]))[_0x5c29('0xbc')]();const _0x513fa3=null===_0x2c650d[_0x5c29('0x46')]?null:_0x2c650d['_authorId']||this['editor']['plugins'][_0x5c29('0x2e')](_0x5c29('0x89'))['me']['id'],_0x5a2c77=_0x2c650d[_0x5c29('0xd5')](),_0x5b0a14=_0x5a2c77['parent'],_0x1c210e=_0x5a2c77[_0x5c29('0x0')];!function _0x2180de(_0x54e21c,_0x3b7255,_0x31a72a,_0x16dc94){for(let _0x237dfb=_0x31a72a;_0x237dfb<_0x16dc94;_0x237dfb++){const _0x13cb11=_0x3b7255[_0x5c29('0x6e')](_0x237dfb);_0x13cb11['is']('element',_0x5c29('0xf6'))?_0x54e21c[_0x5c29('0xa6')](_0x13cb11[_0x5c29('0xb6')](_0x5c29('0x66')),{'userId':_0x513fa3}):(_0x54e21c[_0x5c29('0xa6')](_0x13cb11[_0x5c29('0xb6')](_0x5c29('0x67')),{'userId':_0x513fa3}),_0x2180de(_0x54e21c,_0x13cb11,0x0,_0x13cb11[_0x5c29('0x95')]),_0x54e21c[_0x5c29('0xa6')](_0x13cb11[_0x5c29('0xb6')](_0x5c29('0x79')),{'userId':_0x513fa3}));}}(this[_0x5c29('0x54')],_0x5b0a14,_0x1c210e,_0x1c210e+_0x2c650d[_0x5c29('0xef')]);}['_handleMergeOperation'](_0x1cfbd5){const _0x582598=null===(_0x1cfbd5=this[_0x5c29('0xba')](_0x1cfbd5,this[_0x5c29('0xfa')]))['_authorId']?null:_0x1cfbd5['_authorId']||this[_0x5c29('0xea')][_0x5c29('0xe6')][_0x5c29('0x2e')]('Users')['me']['id'],_0x6af824=_0x1cfbd5['targetPosition'][_0x5c29('0x9')],_0x3f377c=_0x1cfbd5['sourcePosition'][_0x5c29('0x9')],_0x441609=_0x6af824[_0x5c29('0xb6')]('vid_end'),_0x5803bb=_0x3f377c[_0x5c29('0xb6')](_0x5c29('0x67'));_0x6af824['_setAttribute'](_0x5c29('0x79'),_0x3f377c[_0x5c29('0xb6')](_0x5c29('0x79'))),_0x3f377c[_0x5c29('0xd0')]('vid_end',_0x441609),this[_0x5c29('0x54')][_0x5c29('0xa6')](_0x5803bb,{'userId':_0x582598}),this[_0x5c29('0x54')][_0x5c29('0xa6')](_0x441609,{'userId':_0x582598}),_0x1cfbd5[_0x5c29('0xbc')]();}['_handleSplitOperation'](_0x4c0306){const _0x9f3b82=null===(_0x4c0306=this[_0x5c29('0xba')](_0x4c0306,this[_0x5c29('0xfa')]))[_0x5c29('0x46')]?null:_0x4c0306[_0x5c29('0x46')]||this[_0x5c29('0xea')]['plugins'][_0x5c29('0x2e')](_0x5c29('0x89'))['me']['id'],_0x28bd8d=_0x4c0306[_0x5c29('0x8a')],_0x7324e4=_0x4c0306[_0x5c29('0x10')][_0x5c29('0x9')];_0x4c0306[_0x5c29('0xbc')]();const _0x5d6490=_0x7324e4[_0x5c29('0xb6')](_0x5c29('0x79')),_0x5823a2=_0x4c0306[_0x5c29('0xfc')]['nodeAfter'];if(_0x28bd8d){const _0x2ede55=_0x5823a2[_0x5c29('0xb6')]('vid_end'),_0x21cd47=_0x7324e4[_0x5c29('0xb6')](_0x5c29('0x79'));_0x7324e4['_setAttribute']('vid_end',_0x2ede55),_0x5823a2[_0x5c29('0xd0')]('vid_end',_0x21cd47),this[_0x5c29('0x54')][_0x5c29('0xa6')](_0x7324e4[_0x5c29('0xb6')](_0x5c29('0x79')),{'userId':_0x9f3b82}),this[_0x5c29('0x54')][_0x5c29('0xa6')](_0x5823a2[_0x5c29('0xb6')]('vid_start'),{'userId':_0x9f3b82});}else{const _0x442a01=this[_0x5c29('0xa4')]++,_0x160503=this['_revisionId']++;_0x7324e4[_0x5c29('0xd0')]('vid_end',_0x442a01),_0x5823a2[_0x5c29('0xd0')](_0x5c29('0x67'),_0x160503),_0x5823a2[_0x5c29('0xd0')](_0x5c29('0x79'),_0x5d6490),this['_touched'][_0x5c29('0xa6')](_0x442a01,{'userId':_0x9f3b82}),this['_touched'][_0x5c29('0xa6')](_0x160503,{'userId':_0x9f3b82});}}[_0x5c29('0xe0')](_0x2f68b3){if(!_0x2f68b3[_0x5c29('0x5c')])return;const _0x24f1a2=(_0x2f68b3=this[_0x5c29('0xba')](_0x2f68b3,this[_0x5c29('0x4b')]))[_0x5c29('0x20')]?_0x2f68b3[_0x5c29('0x20')][_0x5c29('0xae')]:null,_0x204502=_0x2f68b3['newRange']?_0x2f68b3['newRange']['root']:null;_0x24f1a2&&this[_0x5c29('0x57')][_0x5c29('0xe1')](_0x2f68b3[_0x5c29('0x32')]),_0x204502&&this[_0x5c29('0x57')][_0x5c29('0xa6')](_0x2f68b3[_0x5c29('0x32')],_0x2f68b3[_0x5c29('0xce')][_0x5c29('0x12')]());const _0x282bb3=null===_0x2f68b3['_authorId']?null:_0x2f68b3[_0x5c29('0x46')]||this[_0x5c29('0xea')][_0x5c29('0xe6')][_0x5c29('0x2e')](_0x5c29('0x89'))['me']['id'],_0x3ad4da=_0x2f68b3[_0x5c29('0x32')];if(!this[_0x5c29('0xd6')][_0x5c29('0xa0')](_0x3ad4da))return void this['_touchedMarkers'][_0x5c29('0xa6')](_0x3ad4da,{'range':_0x2f68b3[_0x5c29('0x20')],'userId':_0x282bb3});const _0xea6062=this[_0x5c29('0xd6')][_0x5c29('0x2e')](_0x3ad4da),_0x5425f1=_0xea6062[_0x5c29('0xbe')],_0x15cc9d=_0x2f68b3['newRange'];null==_0x5425f1&&null==_0x15cc9d||_0x5425f1&&_0x15cc9d&&_0x5425f1['isEqual'](_0x15cc9d)?this[_0x5c29('0xd6')]['delete'](_0x2f68b3[_0x5c29('0x32')]):_0xea6062[_0x5c29('0xcf')]=_0x282bb3;}[_0x5c29('0x3d')](_0x596b0e,_0x4185c7){this[_0x5c29('0x4b')][_0x5c29('0xa0')](_0x596b0e[_0x5c29('0x9d')])?this[_0x5c29('0x4b')][_0x5c29('0x2e')](_0x596b0e[_0x5c29('0x9d')])[_0x5c29('0x22')]=_0x596b0e[_0x5c29('0xb2')]:(this['_diffRoots']['set'](_0x596b0e[_0x5c29('0x9d')],G(_0x596b0e['rootName'],!0x0)),this[_0x5c29('0x6')][_0x5c29('0xa6')](_0x596b0e[_0x5c29('0x9d')],{}),_0x4185c7&&this[_0x5c29('0xfa')][_0x5c29('0xa6')](_0x596b0e[_0x5c29('0x9d')],G(_0x596b0e[_0x5c29('0x9d')],!0x0)));const _0x1fe67e=null===_0x596b0e[_0x5c29('0x46')]?null:_0x596b0e[_0x5c29('0x46')]||this['editor']['plugins']['get'](_0x5c29('0x89'))['me']['id'],_0x43f8f7=this['_touchedRoots'][_0x5c29('0x2e')](_0x596b0e['rootName']);_0x43f8f7&&_0x43f8f7[_0x5c29('0xcf')]===_0x1fe67e?this[_0x5c29('0xc2')]['delete'](_0x596b0e['rootName']):this['_touchedRoots'][_0x5c29('0xa6')](_0x596b0e['rootName'],{'userId':_0x1fe67e,'isAttached':_0x596b0e['isAdd']});}[_0x5c29('0xb7')](_0x41db32){const _0x15e037=this[_0x5c29('0x6')][_0x5c29('0x2e')](_0x41db32['root'][_0x5c29('0x9d')]);null===_0x41db32[_0x5c29('0x3')]?delete _0x15e037[_0x41db32[_0x5c29('0xc')]]:_0x15e037[_0x41db32[_0x5c29('0xc')]]=_0x41db32[_0x5c29('0x3')];}}function q(_0x5adbe0){const _0x25da64=G(_0x5adbe0[_0x5c29('0x9d')],_0x5adbe0[_0x5c29('0xb8')]());for(const _0x1e8033 of _0x5adbe0[_0x5c29('0xfe')]()){const _0xf963a0=_0x1e8033[_0x5c29('0x47')](!0x0);_0x25da64[_0x5c29('0xab')](_0xf963a0);}return _0x25da64;}function G(_0x48000c,_0x5541fc=!0x0){const _0x5f12c9=new _0x230184();return _0x5f12c9[_0x5c29('0x9d')]=_0x48000c,_0x5f12c9['_isAttached']=_0x5541fc,_0x5f12c9['isAttached']=()=>_0x5f12c9[_0x5c29('0x22')],_0x5f12c9;}function L(_0x13f4d1,_0x5a9baf,_0x1c9a74){const _0x39b1d9=_0x5c29('0x37')==_0x13f4d1['type']?_0x1c9a74[_0x5c29('0xf3')](_0x13f4d1[_0x5c29('0x60')],'end'):_0x1c9a74[_0x5c29('0xc0')](_0x13f4d1[_0x5c29('0x60')]);return _0x1c9a74[_0x5c29('0x9a')](_0x5a9baf,_0x39b1d9[_0x5c29('0xaf')],_0x39b1d9['stickiness']);}function W(_0x525140,_0x181c9b,_0x1e5273){const _0x24b313=_0x5c29('0xbd')==_0x525140['type']?_0x1e5273['createPositionAt'](_0x525140['item'],0x0):_0x1e5273[_0x5c29('0x82')](_0x525140[_0x5c29('0x60')]);return _0x1e5273[_0x5c29('0x9a')](_0x181c9b,_0x24b313[_0x5c29('0xaf')],_0x24b313[_0x5c29('0x6b')]);}
|