@ckeditor/ckeditor5-revision-history 35.2.0 → 35.3.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.
Files changed (32) hide show
  1. package/README.md +1 -1
  2. package/build/revision-history.js +1 -1
  3. package/package.json +7 -7
  4. package/src/changeitem.js +1 -1
  5. package/src/editor/revisionviewereditor.js +1 -1
  6. package/src/editor/revisionviewereditorui.js +1 -1
  7. package/src/editor/revisionviewereditoruiview.js +1 -1
  8. package/src/revision.js +1 -1
  9. package/src/revisiondiff.js +1 -1
  10. package/src/revisionhistory.js +1 -1
  11. package/src/revisionsrepository.js +1 -1
  12. package/src/revisiontracker.js +1 -1
  13. package/src/revisionviewer.js +1 -1
  14. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  15. package/src/ui/revision/revisionauthorview.js +1 -1
  16. package/src/ui/revision/revisionnameview.js +1 -1
  17. package/src/ui/revision/revisionview.js +1 -1
  18. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  19. package/src/ui/revision/subrevisionview.js +1 -1
  20. package/src/ui/revision/utils.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  22. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  26. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  27. package/src/ui/revisionssidebar/utils.js +1 -1
  28. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  29. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  31. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  32. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1193=['NEGATIVE_INFINITY','getCurrentRevisionId','then','start','getTime','parent','fromVersion','pluginName','_getVidAttributeName','children','_makeRevision','_transformMarkers','resolve','nodes','_touched','for','markerToData','getNodeByPath','has','_pendingAction','_authorId','shift','previousPosition','_continueCurrentRevision','authorsIds','getRootNames','init','dataDowncast','splitPosition','set','insert','getUser','childCount','initialData','_processRootBeforeSave','getChildren','_getViewJson','_handleMergeOperation','_getBaseVids','isPendingUpdate','hasContent','path','_source','_fixRange','length','oldRange','getWalker','default','_reset','includes','_getPreviousFrom','split','setSource','getIndex','toVersion','add','remove','_createInitialRevision','revision-end','_removePendingAction','editing','insertionPosition','useFillerType','Users','stringify','newRange','getAttribute','creator','RevisionTracker','adapter','_revisionId','_appendChild','_rootNames','createRevision','paragraph','size','data','_lastTo','_calculateMetaData','_getState','reverse','tableCell','_saveEmptyMetaData','diffData','stickiness','_removeRevisionMarkers','roots','history','marked','creatorId','_touchedMarkers','nodeAfter','item','dataToMarker','_loadState','createPositionAt','PendingActions','sourcePosition','marker','_diffRoots','setRevisionData','getData','vid_start','_isPendingUpdate','source','forEach','createRangeIn','_generateTape','revision','vid','getRange','_addPendingAction','move','insertions','plugins','_startingVersion','authors','_handleMarkerOperation','config','_lastFrom','createdAt','rootName','name','_bufferUpdate','markers','offsetSize','_copyMarkers','_applyOperations','_makeModelFromViewString','_clone','baseVersion','root','_handleOperation','_markChanges','loadState','Initial\x20revision','_savedMetaData','toModel','$graveyard','_revisionDataBuilder','getMovedRangeStart','offset','processor','reinsert','map','graveyardPosition','revisionHistory.resumeUnsavedRevision','attributes','element','addRevisionData','_findInsertionIndex','_handleMoveOperation','_insertChild','_replaceEditorDataWithRevisionData','text','string','delete','createPositionFromPath','currentRevision','startsWith','createRange','saveRevision','createPositionAfter','document','isReady','clone','getOperations','elementStart','locale','RevisionsRepository','keys','editor-initial-data-replaced-with-revision-data','_bufferedUpdates','_loadedStateData','_setAttribute','_loadRevisionData','_handleSplitOperation','repository','revision:','userId','_fixOperation','clear','find','finally','version','slice','end','deletions','_cloneOperation','conversion','from','_baseRoots','push','_markers','_removeMetaData','_fixPosition','getRevisions','targetPosition','_initialRevisionId','max','_update','vid_end','afterInit','_createCurrentRevision','isEqual','_setConversion','_makeIdsRoot','elementEnd','parse','getOperation','requires','model','get','PENDING_ACTION_REVISION_HISTORY','type','upcast','_handleInsertOperation','getRevision','collaboration.channelId','revision-start','_getFromVersion','$text','_startingRevisionId','buildRevisionData','sort','getRevisionDocumentData','view','getChild','updateRevisions','filter','getLatestVersion','getTransformedByOperation','position','_execute','_idsRoots','editor','trim','affectsData','sendBufferedUpdates','_baseIdsRoots','values','_saveMetaData','_createFromRanges','Empty\x20document','documentFragment','insertion'];(function(_0x8a91db,_0x1193ec){const _0x3f6fae=function(_0x472ddf){while(--_0x472ddf){_0x8a91db['push'](_0x8a91db['shift']());}};_0x3f6fae(++_0x1193ec);}(_0x1193,0x88));const _0x3f6f=function(_0x8a91db,_0x1193ec){_0x8a91db=_0x8a91db-0x0;let _0x3f6fae=_0x1193[_0x8a91db];return _0x3f6fae;};import{Users as _0x4ba6b0}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x5fd3c8,PendingActions as _0x489f09}from'ckeditor5/src/core';import{logWarning as _0x1a589a,uid as _0x477475}from'ckeditor5/src/utils';import{Position as _0x361d23,Range as _0x17cb81,Element as _0x1775e9,DocumentFragment as _0x383462,ViewText as _0x1b019a,ViewElement as _0x202baa,ViewContainerElement as _0x4d28d4,ViewAttributeElement as _0x5f570e,ViewEmptyElement as _0x5ac9f8,ViewRawElement as _0x1d5555,ViewUIElement as _0x2a9bf0,ViewDocumentFragment as _0x2ec1ba}from'ckeditor5/src/engine';import _0x43ba88 from'./revisionsrepository';import{getTranslation as _0x2c1105}from'./utils/common-translations';const J={'c':_0x4d28d4,'a':_0x5f570e,'e':_0x5ac9f8,'r':_0x1d5555,'u':_0x2a9bf0};export default class u extends _0x5fd3c8{static get[_0x3f6f('0x75')](){return _0x3f6f('0xb2');}static get[_0x3f6f('0x4a')](){return[_0x4ba6b0,_0x43ba88,_0x489f09];}constructor(..._0x5ad182){super(..._0x5ad182),this['adapter']=null,this[_0x3f6f('0x8b')](_0x3f6f('0x1c'),!0x1),this[_0x3f6f('0x8b')]('isEnabled',!0x0),this[_0x3f6f('0x16')]=null;const _0x4e2531=_0x477475();this[_0x3f6f('0x98')]={'history':this[_0x3f6f('0x63')][_0x3f6f('0x4b')]['document'][_0x3f6f('0xc5')],'getLatestVersion':()=>Promise[_0x3f6f('0x7a')](this['editor'][_0x3f6f('0x4b')][_0x3f6f('0x1b')][_0x3f6f('0x30')]),'getCurrentRevisionId':()=>_0x4e2531},this['_revisionDataBuilder']=new B(this[_0x3f6f('0x63')]),this[_0x3f6f('0x3e')]=this[_0x3f6f('0x63')][_0x3f6f('0xe4')][_0x3f6f('0x4c')](_0x3f6f('0x52'))||'initial',this[_0x3f6f('0x8b')](_0x3f6f('0x95'),!0x1),this[_0x3f6f('0x24')]=new Map(),this[_0x3f6f('0x63')]['config']['define'](_0x3f6f('0xa'),!0x0),this[_0x3f6f('0x25')]=null,this['editor']['conversion'][_0x3f6f('0x7d')](_0x3f6f('0x4f'))[_0x3f6f('0xcb')]({'view':_0x3f6f('0xda')});}['init'](){this['repository']=this[_0x3f6f('0x63')][_0x3f6f('0xe0')][_0x3f6f('0x4c')](_0x3f6f('0x21')),this[_0x3f6f('0x45')](),this[_0x3f6f('0x63')]['data']['on']('ready',()=>{const _0x22a7f6=this[_0x3f6f('0x29')]['getRevision'](0x0),_0x42f161=_0x22a7f6&&null===_0x22a7f6['creator']?_0x22a7f6:null;if(this[_0x3f6f('0x85')]=!!_0x42f161&&this[_0x3f6f('0x63')][_0x3f6f('0xe4')][_0x3f6f('0x4c')](_0x3f6f('0xa')),this[_0x3f6f('0x63')][_0x3f6f('0xe0')]['has']('RealTimeCollaborationClient')){const _0x4a5f2a=this['_source'][_0x3f6f('0x6f')](),_0x14d342=this[_0x3f6f('0x29')]['getRevision'](_0x4a5f2a);if(_0x14d342)this[_0x3f6f('0xe1')]=_0x14d342[_0x3f6f('0x74')],this[_0x3f6f('0x85')]=!0x1;else{const _0x54f041=this[_0x3f6f('0x98')][_0x3f6f('0xc5')]['_operations'][_0x3f6f('0x2e')](_0xb93e9f=>!_0xb93e9f['_isInit']),_0xb260ca=_0x54f041?_0x54f041[_0x3f6f('0xf0')]:this[_0x3f6f('0x98')][_0x3f6f('0xc5')][_0x3f6f('0x30')];_0x22a7f6?(_0x22a7f6[_0x3f6f('0xa4')]<_0xb260ca&&_0x22a7f6[_0x3f6f('0x40')]({'toVersion':_0xb260ca}),this[_0x3f6f('0x85')]?(this[_0x3f6f('0x98')][_0x3f6f('0x6f')]=()=>_0x42f161['id'],this[_0x3f6f('0xe1')]=_0x42f161[_0x3f6f('0x74')]):(this[_0x3f6f('0xe1')]=_0x22a7f6[_0x3f6f('0xa4')],this[_0x3f6f('0x85')]=!0x1)):(this[_0x3f6f('0xe1')]=_0xb260ca,this[_0x3f6f('0x85')]=!0x1);}}else _0x42f161&&(this[_0x3f6f('0x63')][_0x3f6f('0x4b')]['document']['history'][_0x3f6f('0x30')]=Math[_0x3f6f('0x3f')](_0x42f161['toVersion'],this[_0x3f6f('0x63')][_0x3f6f('0x4b')][_0x3f6f('0x1b')]['history'][_0x3f6f('0x30')]),_0x42f161[_0x3f6f('0x74')]===_0x42f161[_0x3f6f('0xa4')]?(0x0!==_0x42f161[_0x3f6f('0x74')]&&(this[_0x3f6f('0x98')][_0x3f6f('0x6f')]=()=>_0x42f161['id']),this[_0x3f6f('0x85')]=!0x1):this[_0x3f6f('0x85')]&&(this['_source']['getCurrentRevisionId']=()=>_0x42f161['id'],this[_0x3f6f('0xe1')]=_0x42f161[_0x3f6f('0x74')])),this[_0x3f6f('0x85')]||(this['_startingVersion']=this[_0x3f6f('0x63')]['model'][_0x3f6f('0x1b')][_0x3f6f('0x30')]);this[_0x3f6f('0x3')][_0x3f6f('0x88')](this['_source'][_0x3f6f('0xc5')]),this[_0x3f6f('0xa7')](this[_0x3f6f('0xe1')]),this[_0x3f6f('0x43')](this[_0x3f6f('0xe1')]),this[_0x3f6f('0xb3')]&&this[_0x3f6f('0x66')]();}),this['bind'](_0x3f6f('0x1c'))['to'](this,_0x3f6f('0xd5'),_0x536ed3=>!_0x536ed3);}async[_0x3f6f('0x42')](){if(this[_0x3f6f('0x29')][_0x3f6f('0x9a')]>0x0){const _0x12cab4=this[_0x3f6f('0x29')][_0x3f6f('0x51')](0x0),_0x3b5ff5=await this[_0x3f6f('0x59')](_0x12cab4);this[_0x3f6f('0x11')](_0x3b5ff5);}}[_0x3f6f('0xa2')](_0x5ad540){this[_0x3f6f('0x98')]=_0x5ad540;}async['update'](){const _0x57a633=await this[_0x3f6f('0x98')][_0x3f6f('0x5e')]();if(_0x57a633>this[_0x3f6f('0x16')]['toVersion']){await this[_0x3f6f('0xcc')]();const _0x1b751e=this[_0x3f6f('0x57')]({'revision':this['currentRevision'],'to':_0x57a633});_0x1b751e[_0x3f6f('0xe2')]=_0x1b751e[_0x3f6f('0x86')][_0x3f6f('0x8')](_0x4bf83d=>this['editor'][_0x3f6f('0xe0')][_0x3f6f('0x4c')](_0x3f6f('0xad'))['getUser'](_0x4bf83d)),this[_0x3f6f('0x16')][_0x3f6f('0x40')](_0x1b751e);}}async['_loadState'](){this[_0x3f6f('0x85')]&&!this[_0x3f6f('0x25')]&&(await this['_loadRevisionData'](this[_0x3f6f('0x16')]),this[_0x3f6f('0x3')][_0x3f6f('0xf4')](this[_0x3f6f('0x16')]),this[_0x3f6f('0x25')]={'fromVersion':this[_0x3f6f('0x16')]['fromVersion'],'authors':this[_0x3f6f('0x16')][_0x3f6f('0xe2')]['slice']()});}async[_0x3f6f('0x19')](_0x3e7c84={},_0x422222=null){const _0x208875=[];await this[_0x3f6f('0xcc')](),this[_0x3f6f('0x85')]=!0x1,_0x422222>this['currentRevision'][_0x3f6f('0xa4')]&&(_0x422222=null),null===_0x422222&&(_0x422222=await this[_0x3f6f('0x98')]['getLatestVersion']());const _0xa2b0d5=this[_0x3f6f('0x54')](_0x422222),_0x6cb2ab=this['buildRevisionData']({'from':_0xa2b0d5,'to':_0x422222});if(this[_0x3f6f('0x16')][_0x3f6f('0xa4')]<_0x422222){const _0x502f01=this['buildRevisionData']({'revision':this[_0x3f6f('0x16')],'from':_0x422222,'to':_0x422222});_0x502f01[_0x3f6f('0xe2')]=[],_0x502f01[_0x3f6f('0x86')]=[],_0x502f01['id']=this[_0x3f6f('0x16')]['id'],this[_0x3f6f('0x16')][_0x3f6f('0x40')](_0x502f01,!0x0),delete _0x502f01[_0x3f6f('0xe2')],_0x208875[_0x3f6f('0x38')](_0x502f01);}_0x3e7c84[_0x3f6f('0xc7')]=this[_0x3f6f('0x63')][_0x3f6f('0xe0')][_0x3f6f('0x4c')](_0x3f6f('0xad'))['me']['id'],_0x3e7c84[_0x3f6f('0xe8')]=_0x3e7c84[_0x3f6f('0xe8')]||null,_0x3e7c84['id']=_0x3e7c84['id']||_0x477475(),_0x3e7c84={..._0x3e7c84,..._0x6cb2ab};const _0x4761fd=this[_0x3f6f('0xd')](_0x3e7c84);_0x208875[_0x3f6f('0x38')](_0x3e7c84);const _0x2cef3=this[_0x3f6f('0x29')][_0x3f6f('0xa3')](_0x4761fd);if(0x0!==_0x2cef3){const _0x34cce5=this[_0x3f6f('0x29')][_0x3f6f('0x51')](_0x2cef3-0x1);if(_0x34cce5[_0x3f6f('0x74')]!==_0x422222){const _0x16b166=this[_0x3f6f('0x3')][_0x3f6f('0xd3')](_0x422222,_0x34cce5['toVersion']),_0x535561={'id':_0x34cce5['id'],'diffData':_0x16b166[_0x3f6f('0xc1')],'authorsIds':_0x16b166[_0x3f6f('0x86')],'authors':_0x16b166['authorsIds']['map'](_0x40ddc2=>this['editor'][_0x3f6f('0xe0')][_0x3f6f('0x4c')](_0x3f6f('0xad'))[_0x3f6f('0x8d')](_0x40ddc2)),'fromVersion':_0x422222};_0x34cce5===this['currentRevision']&&(_0x535561[_0x3f6f('0xe6')]=new Date(_0x3e7c84[_0x3f6f('0xe6')][_0x3f6f('0x72')]()+0xa)),_0x34cce5['_update'](_0x535561,!0x0),delete _0x535561['authors'],_0x208875[_0x3f6f('0x38')](_0x535561);}}if(this[_0x3f6f('0xb3')]){for(const _0x4636cb of _0x208875)this['_bufferUpdate'](_0x4636cb['id'],_0x4636cb,!0x0);this[_0x3f6f('0x66')]();}return _0x4761fd;}['addRevisionData'](_0x61e46f){const _0x14ff43=this[_0x3f6f('0x29')][_0x3f6f('0xb7')](_0x61e46f);return this['adapter']&&_0x14ff43['on'](_0x3f6f('0x40'),(_0x387719,_0x2bdddb,_0x35e1a0)=>{_0x35e1a0||(this[_0x3f6f('0xe9')](_0x2bdddb['id'],_0x2bdddb,!0x0),this[_0x3f6f('0x66')]());}),this[_0x3f6f('0x29')]['addRevision'](_0x14ff43,this['_findInsertionIndex'](_0x14ff43)),_0x14ff43;}async[_0x3f6f('0x59')](_0x251fc9){await this[_0x3f6f('0x27')](_0x251fc9);const _0x4f4d2b={};for(const _0x3c6ff3 in _0x251fc9[_0x3f6f('0xc1')]){const _0xa28467=this[_0x3f6f('0xc3')](JSON[_0x3f6f('0x48')](_0x251fc9['diffData'][_0x3c6ff3][_0x3f6f('0xdf')])),_0x20e630=this[_0x3f6f('0x63')][_0x3f6f('0xaa')][_0x3f6f('0x5a')][_0x3f6f('0x1b')],_0x364646=new _0x2ec1ba(_0x20e630,_0xa28467['map'](_0x1533d6=>j(_0x1533d6,this[_0x3f6f('0x63')])));this[_0x3f6f('0x63')]['data'][_0x3f6f('0x6')][_0x3f6f('0xac')](_0x3f6f('0xc6')),_0x4f4d2b[_0x3c6ff3]=this['editor'][_0x3f6f('0xba')]['processor']['toData'](_0x364646),this[_0x3f6f('0x63')][_0x3f6f('0xba')]['processor'][_0x3f6f('0xac')](_0x3f6f('0x9d'));}return _0x4f4d2b;}[_0x3f6f('0x66')](){if(0x0===this[_0x3f6f('0x24')][_0x3f6f('0xb9')])return;if(this[_0x3f6f('0xd5')])return;let _0x1d5c24=Array['from'](this['_bufferedUpdates']['values']());this[_0x3f6f('0x24')][_0x3f6f('0x2d')]();for(let _0x4e699e=0x0;_0x4e699e<_0x1d5c24['length'];_0x4e699e++){const _0x5c0016=_0x1d5c24[_0x4e699e];let _0x52acb9=!0x1;for(const _0x4bff6e of Object[_0x3f6f('0x22')](_0x5c0016))void 0x0===_0x5c0016[_0x4bff6e]?delete _0x5c0016[_0x4bff6e]:'id'!==_0x4bff6e&&(_0x52acb9=!0x0);_0x52acb9||(_0x1d5c24[_0x4e699e]=null);}if(_0x1d5c24=_0x1d5c24['filter'](_0x55a84a=>null!==_0x55a84a),!_0x1d5c24[_0x3f6f('0x9a')])return;for(let _0x46388b=0x0;_0x46388b<_0x1d5c24[_0x3f6f('0x9a')];_0x46388b++){const _0x472495=_0x1d5c24[_0x46388b];void 0x0!==_0x472495[_0x3f6f('0x74')]&&void 0x0===_0x472495['toVersion']&&(_0x472495['toVersion']=this['repository'][_0x3f6f('0x51')](_0x472495['id'])[_0x3f6f('0xa4')]),void 0x0!==_0x472495['toVersion']&&void 0x0===_0x472495[_0x3f6f('0x74')]&&(_0x472495[_0x3f6f('0x74')]=this[_0x3f6f('0x29')][_0x3f6f('0x51')](_0x472495['id'])['fromVersion']);}const _0x31057a=this[_0x3f6f('0x63')][_0x3f6f('0xe4')][_0x3f6f('0x4c')](_0x3f6f('0x52'));this[_0x3f6f('0xd5')]=!0x0,this[_0x3f6f('0xdd')](),this[_0x3f6f('0xb3')][_0x3f6f('0x5c')](_0x1d5c24,_0x31057a)[_0x3f6f('0x2f')](()=>{this[_0x3f6f('0xd5')]=!0x1;})[_0x3f6f('0x70')](_0x115a5a=>{if(_0x115a5a)for(const _0x1bdfef of _0x115a5a)this['setRevisionData']({'id':_0x1bdfef['id'],'createdAt':_0x1bdfef[_0x3f6f('0xe6')]});this[_0x3f6f('0xa9')](),this['sendBufferedUpdates']();});}[_0x3f6f('0x11')](_0x4cba10){let _0x16aeec=this[_0x3f6f('0x63')]['config']['get'](_0x3f6f('0x8f'));if(void 0x0===_0x16aeec){_0x16aeec={};for(const _0x3424f4 of this['editor'][_0x3f6f('0x4b')][_0x3f6f('0x1b')][_0x3f6f('0x87')]())_0x16aeec[_0x3424f4]='';}_0x3f6f('0x13')==typeof _0x16aeec&&(_0x16aeec={'main':_0x16aeec});let _0x3f910c=!0x1;for(const _0x576d16 of Object['keys'](_0x16aeec))_0x4cba10[_0x576d16]&&(_0x16aeec[_0x576d16]!==_0x4cba10[_0x576d16]&&''!==_0x16aeec[_0x576d16][_0x3f6f('0x64')]()&&(_0x3f910c=!0x0),_0x16aeec[_0x576d16]=_0x4cba10[_0x576d16]);_0x3f910c&&_0x1a589a(_0x3f6f('0x23')),this['editor']['config']['set']('initialData',_0x16aeec);}[_0x3f6f('0xdd')](){if(!this[_0x3f6f('0x81')]){const _0x26c0e8=this[_0x3f6f('0x63')][_0x3f6f('0xe0')][_0x3f6f('0x4c')](_0x3f6f('0xce'));this[_0x3f6f('0x81')]=_0x26c0e8[_0x3f6f('0xa5')](_0x2c1105(this[_0x3f6f('0x63')][_0x3f6f('0x20')],_0x3f6f('0x4d')));}}[_0x3f6f('0xa9')](){this['_pendingAction']&&(this[_0x3f6f('0x63')][_0x3f6f('0xe0')][_0x3f6f('0x4c')](_0x3f6f('0xce'))[_0x3f6f('0xa6')](this[_0x3f6f('0x81')]),this[_0x3f6f('0x81')]=null);}[_0x3f6f('0xe')](_0x1c4204){const _0x2c2460=this['repository'][_0x3f6f('0x3c')]();_0x2c2460[_0x3f6f('0xbe')]();let _0x13619b=0x0;for(;_0x13619b<_0x2c2460['length'];){const _0x4194eb=_0x2c2460[_0x13619b];if(_0x4194eb===this[_0x3f6f('0x16')]){_0x13619b++;continue;}if(_0x4194eb['id']===this[_0x3f6f('0x3e')])break;const _0x1953b6=_0x1c4204[_0x3f6f('0xa4')]-_0x4194eb[_0x3f6f('0xa4')]||_0x1c4204['fromVersion']-_0x4194eb[_0x3f6f('0x74')];if(_0x1953b6>0x0)break;if(_0x1953b6<0x0)_0x13619b++;else{if(!_0x1c4204[_0x3f6f('0xb1')]&&_0x4194eb['creator'])break;if(_0x4194eb[_0x3f6f('0xb1')]||!_0x1c4204[_0x3f6f('0xb1')]){if(_0x1c4204[_0x3f6f('0xe6')]>_0x4194eb[_0x3f6f('0xe6')])break;_0x13619b++;}else _0x13619b++;}}return _0x13619b;}[_0x3f6f('0xd2')](_0x37fc39){const _0x1df4b8=this[_0x3f6f('0x29')][_0x3f6f('0x51')](_0x37fc39['id']);if(_0x37fc39['createdAt']&&(_0x37fc39['createdAt']=new Date(_0x37fc39[_0x3f6f('0xe6')])),_0x37fc39[_0x3f6f('0x86')]){const _0x5912dd=this[_0x3f6f('0x63')][_0x3f6f('0xe0')][_0x3f6f('0x4c')](_0x3f6f('0xad'));_0x37fc39[_0x3f6f('0xe2')]=_0x37fc39[_0x3f6f('0x86')][_0x3f6f('0x8')](_0x1f88f8=>_0x5912dd[_0x3f6f('0x8d')](_0x1f88f8));}_0x1df4b8[_0x3f6f('0x40')](_0x37fc39,!0x0);}[_0x3f6f('0x57')]({revision:_0x4a6e9c=null,from:_0x42dcc7=null,to:_0x210f89=null}){_0x42dcc7=null!==_0x42dcc7?_0x42dcc7:_0x4a6e9c[_0x3f6f('0x74')],_0x210f89=null!==_0x210f89?_0x210f89:_0x4a6e9c['toVersion'];const _0x191506=this[_0x3f6f('0x3')][_0x3f6f('0xd3')](_0x42dcc7,_0x210f89),_0x76d907={'diffData':_0x191506[_0x3f6f('0xc1')],'authorsIds':_0x191506[_0x3f6f('0x86')],'fromVersion':_0x42dcc7,'toVersion':_0x210f89};if(!_0x4a6e9c||_0x210f89!==_0x4a6e9c['toVersion']){const _0x566689=_0x210f89-0x1,_0x28e823=this[_0x3f6f('0x98')][_0x3f6f('0xc5')][_0x3f6f('0x49')](_0x566689);_0x76d907[_0x3f6f('0xe6')]=_0x28e823&&_0x28e823[_0x3f6f('0xe6')]||new Date();}if(this[_0x3f6f('0x25')]&&_0x42dcc7===this['_loadedStateData']['fromVersion'])for(const _0x5d5ffa of this[_0x3f6f('0x25')][_0x3f6f('0xe2')])_0x76d907[_0x3f6f('0x86')][_0x3f6f('0x9f')](_0x5d5ffa['id'])||_0x76d907[_0x3f6f('0x86')][_0x3f6f('0x38')](_0x5d5ffa['id']);return _0x76d907;}[_0x3f6f('0x27')](_0x5794c0){if(!_0x5794c0||_0x5794c0[_0x3f6f('0xc1')])return Promise[_0x3f6f('0x7a')]();{const _0xe18b88=this[_0x3f6f('0x63')][_0x3f6f('0xe4')][_0x3f6f('0x4c')]('collaboration.channelId');return this['adapter'][_0x3f6f('0x51')]({'channelId':_0xe18b88,'revisionId':_0x5794c0['id']})[_0x3f6f('0x70')](_0x306ad1=>{_0x5794c0[_0x3f6f('0xc1')]=_0x306ad1[_0x3f6f('0xc1')];});}}['_bufferUpdate'](_0x36aa19,_0x80ef21,_0x58bed3){if(this[_0x3f6f('0x24')][_0x3f6f('0x80')](_0x36aa19)){const _0x4fcb47=this[_0x3f6f('0x24')][_0x3f6f('0x4c')](_0x36aa19);_0x80ef21=_0x58bed3?{..._0x4fcb47,..._0x80ef21}:{..._0x80ef21,..._0x4fcb47};}this['_bufferedUpdates'][_0x3f6f('0x8b')](_0x36aa19,_0x80ef21);}['_getFromVersion'](_0x291657){const _0x1897bf=this[_0x3f6f('0x29')]['getRevisions']();_0x1897bf[_0x3f6f('0xbe')](),_0x1897bf[_0x3f6f('0x83')]();const _0x12e460=_0x1897bf[_0x3f6f('0x2e')](_0x3fc22c=>_0x3fc22c[_0x3f6f('0xa4')]<=_0x291657)[_0x3f6f('0xa4')];return _0x12e460<this[_0x3f6f('0xe1')]?this[_0x3f6f('0xe1')]:_0x12e460;}[_0x3f6f('0xa7')](_0x5bc025){const _0x192d88=this[_0x3f6f('0x29')][_0x3f6f('0x51')](this[_0x3f6f('0x29')][_0x3f6f('0x9a')]-0x1);if(_0x192d88)this[_0x3f6f('0x3e')]=_0x192d88['id'];else{const _0x569510=!this[_0x3f6f('0x63')][_0x3f6f('0x4b')]['document'][_0x3f6f('0xc4')]['find'](_0x2e1630=>this['editor']['model'][_0x3f6f('0x96')](_0x2e1630)),_0x4cc683=this['editor']['plugins'][_0x3f6f('0x4c')](_0x3f6f('0xad'))['me']['id'],_0x39f46a=_0x2c1105(this[_0x3f6f('0x63')][_0x3f6f('0x20')],_0x569510?_0x3f6f('0x6b'):_0x3f6f('0xf5'));this[_0x3f6f('0x78')]({'from':_0x5bc025,'to':_0x5bc025,'id':this['_initialRevisionId'],'name':_0x39f46a,'creatorId':_0x4cc683});}}[_0x3f6f('0x43')](_0x2a0ca2){const _0x398b9f=this[_0x3f6f('0x98')][_0x3f6f('0x6f')]();this['currentRevision']=this[_0x3f6f('0x29')][_0x3f6f('0x51')](_0x398b9f),this['currentRevision']||(this[_0x3f6f('0x16')]=this[_0x3f6f('0x78')]({'from':_0x2a0ca2,'to':_0x2a0ca2,'id':_0x398b9f,'name':'','creatorId':null}));}[_0x3f6f('0x78')]({name:_0x56c6a3,from:_0x3bb614,to:_0x57d60e,creatorId:_0x42d531,id:_0x3a05d6}){const _0x3607ef=this[_0x3f6f('0x57')]({'from':_0x3bb614,'to':_0x57d60e});_0x3607ef[_0x3f6f('0xe8')]=_0x56c6a3,_0x3607ef['creatorId']=_0x42d531,_0x3607ef['id']=_0x3a05d6;const _0x35b83a=this[_0x3f6f('0xd')](_0x3607ef);return this[_0x3f6f('0xb3')]&&this[_0x3f6f('0xe9')](_0x3607ef['id'],_0x3607ef,!0x0),_0x35b83a;}[_0x3f6f('0x45')](){this['editor'][_0x3f6f('0x35')][_0x3f6f('0x7d')](_0x3f6f('0x89'))[_0x3f6f('0x7e')]({'model':_0x3f6f('0xda')});}[_0x3f6f('0xc3')](_0x2db20e){return(_0x2db20e=_0x2db20e[_0x3f6f('0x5d')](_0x53fb77=>!_0x53fb77[_0x3f6f('0xe8')]||_0x3f6f('0x53')!==_0x53fb77['name']&&_0x3f6f('0xa8')!==_0x53fb77[_0x3f6f('0xe8')]))[_0x3f6f('0xd7')](_0x388a6a=>{_0x3f6f('0x13')!=typeof _0x388a6a&&(_0x388a6a[_0x3f6f('0x77')]=this[_0x3f6f('0xc3')](_0x388a6a[_0x3f6f('0x77')]),_0x388a6a[_0x3f6f('0xb')]=_0x388a6a[_0x3f6f('0xb')][_0x3f6f('0x5d')](_0x339294=>!_0x339294[0x0][_0x3f6f('0x17')]('data-revision-')));}),_0x2db20e;}}function j(_0x1a4b8f,_0x9973cf){const _0x4d291c=_0x9973cf[_0x3f6f('0xaa')][_0x3f6f('0x5a')]['document'];if('string'==typeof _0x1a4b8f)return new _0x1b019a(_0x4d291c,_0x1a4b8f);{const _0x3d8bc3=_0x1a4b8f[_0x3f6f('0x77')][_0x3f6f('0x8')](_0x2e337f=>j(_0x2e337f,_0x9973cf));return new(J[_0x1a4b8f[(_0x3f6f('0x4e'))]]||_0x202baa)(_0x4d291c,_0x1a4b8f[_0x3f6f('0xe8')],_0x1a4b8f['attributes'],_0x3d8bc3);}}class B{constructor(_0x523d75){this['editor']=_0x523d75,this[_0x3f6f('0x0')]=new Map(),this[_0x3f6f('0xe5')]=-0x1,this['_lastTo']=-0x1,this[_0x3f6f('0x39')]=new Map(),this[_0x3f6f('0xd1')]=new Map(),this['_baseRoots']=new Map(),this[_0x3f6f('0x62')]=new Map(),this[_0x3f6f('0x67')]=new Map(),this['_touched']=new Map(),this[_0x3f6f('0xc8')]=new Map(),this[_0x3f6f('0xb4')]=0x1,this[_0x3f6f('0xb6')]=this['editor']['model']['document'][_0x3f6f('0x87')](),this[_0x3f6f('0xb6')][_0x3f6f('0x38')]('$graveyard');}[_0x3f6f('0x88')](_0x8eb006){this[_0x3f6f('0xd6')]=_0x8eb006;const _0x58e1dc=new Map();for(const _0x1c3581 of this['_rootNames']){const _0x36c731=H(this['editor']['model']['document']['getRoot'](_0x1c3581));_0x58e1dc[_0x3f6f('0x8b')](_0x1c3581,_0x36c731);}const _0x39239f=Array[_0x3f6f('0x36')](this[_0x3f6f('0x63')][_0x3f6f('0x4b')][_0x3f6f('0xea')])[_0x3f6f('0x8')](_0x426df4=>[_0x426df4[_0x3f6f('0xe8')],_0x426df4[_0x3f6f('0xdc')]()]),_0x1aa085=this[_0x3f6f('0xd6')][_0x3f6f('0x30')];this[_0x3f6f('0x69')](_0x1aa085,_0x58e1dc,_0x39239f),this[_0x3f6f('0x56')]=this['_revisionId'];}[_0x3f6f('0xd3')](_0x4b43be,_0x31c2cc){if(this[_0x3f6f('0xe5')]===_0x4b43be&&this[_0x3f6f('0xbb')]<=_0x31c2cc)this[_0x3f6f('0x0')]['size']>0x1&&this[_0x3f6f('0x3a')](this[_0x3f6f('0xbb')]),this[_0x3f6f('0xed')](this[_0x3f6f('0xbb')],_0x31c2cc,!0x0);else{if(!this[_0x3f6f('0x0')]['has'](_0x4b43be)){const _0x190366=this[_0x3f6f('0xa0')](_0x4b43be);this[_0x3f6f('0xbc')](_0x190366,_0x4b43be,!0x1);}this['_calculateMetaData'](_0x4b43be,_0x31c2cc,!0x0);}return this[_0x3f6f('0xe5')]=_0x4b43be,this[_0x3f6f('0xbb')]=_0x31c2cc,this[_0x3f6f('0xbd')]();}['loadState'](_0x2bcb5b){this[_0x3f6f('0x9e')](),this['_lastFrom']=_0x2bcb5b[_0x3f6f('0x74')],this['_lastTo']=_0x2bcb5b[_0x3f6f('0xa4')];for(const _0x30f6c5 in _0x2bcb5b['diffData']){const _0x3047ac=this[_0x3f6f('0xee')](_0x2bcb5b[_0x3f6f('0xc1')][_0x30f6c5][_0x3f6f('0x33')]);_0x3047ac[_0x3f6f('0xe7')]=_0x30f6c5,this['_baseRoots'][_0x3f6f('0x8b')](_0x30f6c5,_0x3047ac);const _0x551d0d=this['_makeIdsRoot'](_0x3047ac);this[_0x3f6f('0x67')][_0x3f6f('0x8b')](_0x30f6c5,_0x551d0d);for(const [_0x58b1f9,_0x971c74]of _0x3047ac[_0x3f6f('0xea')]){if(!_0x58b1f9['startsWith'](_0x3f6f('0x2a')))continue;const _0x3fe795=_0x58b1f9['split'](':')[0x2];for(const _0x2e7d4e of _0x971c74['getWalker']({'singleCharacters':!0x0})){const _0x273d89=this[_0x3f6f('0x76')](_0x2e7d4e),_0x561a44=_0x3f6f('0x47')==_0x2e7d4e[_0x3f6f('0x4e')]?_0x2e7d4e[_0x3f6f('0x84')][_0x3f6f('0x97')]['slice'](0x0,-0x1):_0x2e7d4e[_0x3f6f('0x84')][_0x3f6f('0x97')],_0x1d616d=_0x551d0d[_0x3f6f('0x7f')](_0x561a44)['getAttribute'](_0x273d89);this['_touched']['set'](_0x1d616d,{'userId':_0x3fe795});}}}this[_0x3f6f('0x56')]=this[_0x3f6f('0xb4')];const _0x36d5c7=[...Array(this['_revisionId'])['keys']()][_0x3f6f('0x31')](0x1)[_0x3f6f('0x5d')](_0x4cdd04=>!this['_touched'][_0x3f6f('0x80')](_0x4cdd04));let _0x12564f=0x0;for(const _0x20c6fa in _0x2bcb5b[_0x3f6f('0xc1')]){const _0x708b4=this[_0x3f6f('0xee')](_0x2bcb5b[_0x3f6f('0xc1')][_0x20c6fa]['insertions']);_0x708b4[_0x3f6f('0xe7')]=_0x20c6fa,this[_0x3f6f('0xd1')]['set'](_0x20c6fa,_0x708b4);const _0x1f76a7=this['_makeIdsRoot'](_0x708b4,Number[_0x3f6f('0x6e')]);this[_0x3f6f('0x62')][_0x3f6f('0x8b')](_0x20c6fa,_0x1f76a7);for(const [_0x9e0ac8,_0x589df0]of _0x708b4[_0x3f6f('0xea')]){if(!_0x9e0ac8[_0x3f6f('0x17')](_0x3f6f('0x2a')))continue;const _0x546d3e=_0x9e0ac8[_0x3f6f('0xa1')](':')[0x2];for(const _0x58fd96 of _0x589df0[_0x3f6f('0x9c')]({'singleCharacters':!0x0})){const _0x271095=this[_0x3f6f('0x76')](_0x58fd96),_0x56ae76=this['_revisionId']++,_0x15aa30=_0x3f6f('0x47')==_0x58fd96[_0x3f6f('0x4e')]?_0x58fd96[_0x3f6f('0x84')]['path'][_0x3f6f('0x31')](0x0,-0x1):_0x58fd96['previousPosition'][_0x3f6f('0x97')];_0x1f76a7[_0x3f6f('0x7f')](_0x15aa30)[_0x3f6f('0x26')](_0x271095,_0x56ae76),this['_touched'][_0x3f6f('0x8b')](_0x56ae76,{'userId':_0x546d3e});}}for(const _0x1fa9c1 of this[_0x3f6f('0x63')][_0x3f6f('0x4b')][_0x3f6f('0xd8')](_0x708b4)[_0x3f6f('0x9c')]({'singleCharacters':!0x0})){const _0x11391a=this[_0x3f6f('0x76')](_0x1fa9c1),_0x2c039b='elementEnd'==_0x1fa9c1['type']?_0x1fa9c1[_0x3f6f('0x84')]['path'][_0x3f6f('0x31')](0x0,-0x1):_0x1fa9c1[_0x3f6f('0x84')][_0x3f6f('0x97')],_0x272a9c=_0x1f76a7[_0x3f6f('0x7f')](_0x2c039b);_0x272a9c[_0x3f6f('0xb0')](_0x11391a)>0x0||_0x272a9c[_0x3f6f('0x26')](_0x11391a,_0x36d5c7[_0x12564f++]);}const _0x44ae93=new _0x383462();_0x44ae93['rootName']=_0x3f6f('0x2'),this[_0x3f6f('0x37')][_0x3f6f('0x8b')]('$graveyard',_0x44ae93),this[_0x3f6f('0x67')]['set'](_0x3f6f('0x2'),this[_0x3f6f('0x46')](_0x44ae93,0x1));const _0x4f4cfa=new _0x383462();_0x4f4cfa[_0x3f6f('0xe7')]=_0x3f6f('0x2'),this['_diffRoots'][_0x3f6f('0x8b')](_0x3f6f('0x2'),_0x4f4cfa),this[_0x3f6f('0x62')]['set'](_0x3f6f('0x2'),this[_0x3f6f('0x46')](_0x4f4cfa,0x1));for(const [_0x52851e,_0x313b66]of _0x708b4[_0x3f6f('0xea')])_0x52851e[_0x3f6f('0x17')](_0x3f6f('0x2a'))||this[_0x3f6f('0x39')][_0x3f6f('0x8b')](_0x52851e,_0x313b66);}const _0x5c236b=Array[_0x3f6f('0x36')](this[_0x3f6f('0xd1')])[_0x3f6f('0x8')](([_0xa968e9,_0xdfd37a])=>[_0xa968e9,H(_0xdfd37a)]);this[_0x3f6f('0x69')](this['_lastTo'],_0x5c236b,this[_0x3f6f('0x39')]);}[_0x3f6f('0xee')](_0x1627ec){const _0x4d0bbd=JSON[_0x3f6f('0x48')](_0x1627ec),_0x5d959d=this[_0x3f6f('0x63')][_0x3f6f('0xaa')][_0x3f6f('0x5a')][_0x3f6f('0x1b')],_0x4b3585=new _0x2ec1ba(_0x5d959d,_0x4d0bbd['map'](_0x38c69b=>j(_0x38c69b,this[_0x3f6f('0x63')])));return this['editor'][_0x3f6f('0xba')][_0x3f6f('0x1')](_0x4b3585);}['_saveEmptyMetaData'](){const _0x3a08cd=new Map();for(const _0x5477b5 of this[_0x3f6f('0xb6')]){const _0x9e74bc=new _0x383462();_0x9e74bc['rootName']=_0x5477b5,_0x3a08cd[_0x3f6f('0x8b')](_0x5477b5,_0x9e74bc);}this['_saveMetaData'](Number[_0x3f6f('0x6e')],_0x3a08cd,[]);}['_saveMetaData'](_0x1008f1,_0x1ad4df,_0x26cb9b){const _0x3072a7=new Map(_0x1ad4df),_0x1bbedb=new Map();for(const [_0x22dbfc,_0x5c72d7]of _0x26cb9b)_0x1bbedb['set'](_0x22dbfc,{'start':_0x5c72d7['start'][_0x3f6f('0x1d')](),'end':_0x5c72d7[_0x3f6f('0x32')][_0x3f6f('0x1d')](),'rootName':_0x5c72d7['root'][_0x3f6f('0xe7')]});this[_0x3f6f('0x0')][_0x3f6f('0x8b')](_0x1008f1,{'roots':_0x3072a7,'markers':_0x1bbedb});}[_0x3f6f('0x3a')](_0x2b9151){this['_savedMetaData'][_0x3f6f('0x14')](_0x2b9151);}['reInit'](){this[_0x3f6f('0x9e')](),this[_0x3f6f('0xe5')]=-0x1,this[_0x3f6f('0xbb')]=-0x1,this[_0x3f6f('0x0')][_0x3f6f('0x2d')](),this[_0x3f6f('0x88')](this[_0x3f6f('0xd6')]);}['_reset'](){this[_0x3f6f('0x7c')][_0x3f6f('0x2d')](),this[_0x3f6f('0xc8')]['clear'](),this[_0x3f6f('0xd1')][_0x3f6f('0x2d')](),this[_0x3f6f('0x37')][_0x3f6f('0x2d')](),this['_idsRoots'][_0x3f6f('0x2d')](),this['_baseIdsRoots'][_0x3f6f('0x2d')](),this[_0x3f6f('0x39')][_0x3f6f('0x2d')](),this[_0x3f6f('0xb4')]=0x1,this['_startingRevisionId']=this[_0x3f6f('0xb4')];}[_0x3f6f('0x46')](_0x1ab1ca,_0x3f9d6c=null){let _0x1835b6=null;_0x1ab1ca['is'](_0x3f6f('0x6c'))||(_0x1835b6=new _0x1775e9(_0x1ab1ca[_0x3f6f('0xe8')],{'vid_start':null===_0x3f9d6c?this['_revisionId']++:_0x3f9d6c++}));const _0x3d904f=[];for(const _0x503189 of _0x1ab1ca['getChildren']())if(_0x503189['is'](_0x3f6f('0xc'))){_0x3d904f[_0x3f6f('0x38')](this[_0x3f6f('0x46')](_0x503189,_0x3f9d6c));const _0x115d77=_0x3d904f[_0x3d904f[_0x3f6f('0x9a')]-0x1];null!==_0x3f9d6c&&(_0x3f9d6c=_0x115d77['is'](_0x3f6f('0xc'),_0x3f6f('0x55'))?_0x115d77[_0x3f6f('0xb0')](_0x3f6f('0xdb'))+0x1:_0x115d77[_0x3f6f('0xb0')]('vid_end')+0x1);}else for(let _0x3c338f=0x0;_0x3c338f<_0x503189[_0x3f6f('0xeb')];_0x3c338f++)_0x3d904f['push'](new _0x1775e9('$text',{'vid':null===_0x3f9d6c?this['_revisionId']++:_0x3f9d6c++}));if(_0x1ab1ca['is']('documentFragment')){const _0x2350d7=new _0x383462(_0x3d904f);return _0x2350d7[_0x3f6f('0xe7')]=_0x1ab1ca[_0x3f6f('0xe7')],_0x2350d7;}return _0x1835b6[_0x3f6f('0x26')]('vid_end',null===_0x3f9d6c?this['_revisionId']++:_0x3f9d6c++),_0x1835b6[_0x3f6f('0x10')](0x0,_0x3d904f),_0x1835b6;}[_0x3f6f('0xbc')](_0xaa9a1,_0x1c5095,_0x34665a){this['_reset']();const {roots:_0x5a0afd,markers:_0x3004d6}=this['_savedMetaData'][_0x3f6f('0x4c')](_0xaa9a1);this[_0x3f6f('0x37')]=new Map(_0x5a0afd);for(const [_0xada5e7,_0x355cf8]of this[_0x3f6f('0x37')])if(_0x3f6f('0x2')!==_0xada5e7&&(this[_0x3f6f('0xd1')][_0x3f6f('0x8b')](_0xada5e7,H(_0x355cf8)),_0x34665a)){const _0x2fc561=this[_0x3f6f('0xb4')];this['_idsRoots'][_0x3f6f('0x8b')](_0xada5e7,this['_makeIdsRoot'](_0x355cf8)),this[_0x3f6f('0x67')][_0x3f6f('0x8b')](_0xada5e7,this[_0x3f6f('0x46')](_0x355cf8,_0x2fc561));}this[_0x3f6f('0x56')]=this['_revisionId'],this[_0x3f6f('0xd1')][_0x3f6f('0x8b')](_0x3f6f('0x2'),H(this[_0x3f6f('0x37')][_0x3f6f('0x4c')](_0x3f6f('0x2')))),_0x34665a&&this['_idsRoots'][_0x3f6f('0x8b')](_0x3f6f('0x2'),this['_makeIdsRoot'](this[_0x3f6f('0x37')][_0x3f6f('0x4c')](_0x3f6f('0x2'))));for(const [_0x109aed,_0x15a6f6]of _0x3004d6){const _0x1d7de9=this[_0x3f6f('0x37')]['get'](_0x15a6f6[_0x3f6f('0xe7')]),_0x5b635d=this[_0x3f6f('0xd1')]['get'](_0x15a6f6['rootName']),_0x29f2a2=new _0x17cb81(this[_0x3f6f('0x3b')](_0x15a6f6[_0x3f6f('0x71')],_0x1d7de9),this[_0x3f6f('0x3b')](_0x15a6f6[_0x3f6f('0x32')],_0x1d7de9)),_0x35c2d7=this[_0x3f6f('0x99')](_0x29f2a2,_0x5b635d);_0x1d7de9['markers'][_0x3f6f('0x8b')](_0x109aed,_0x29f2a2),this[_0x3f6f('0x39')][_0x3f6f('0x8b')](_0x109aed,_0x35c2d7);}this[_0x3f6f('0xed')](_0xaa9a1,_0x1c5095,_0x34665a);}[_0x3f6f('0xed')](_0x4bc4a9,_0x918a3e,_0x4bc352){for(const _0x1a20e0 of this[_0x3f6f('0xd6')][_0x3f6f('0x1e')](_0x4bc4a9,_0x918a3e))this['_handleOperation'](_0x1a20e0,_0x4bc352);for(const _0x50dc2c of this['_diffRoots']['values']())_0x50dc2c[_0x3f6f('0xea')][_0x3f6f('0x2d')]();for(const [_0x280a06,_0xc262da]of this[_0x3f6f('0x39')]){this[_0x3f6f('0xd1')][_0x3f6f('0x4c')](_0xc262da[_0x3f6f('0xf1')]['rootName'])['markers']['set'](_0x280a06,_0xc262da[_0x3f6f('0x1d')]());}this['_saveMetaData'](_0x918a3e,Array[_0x3f6f('0x36')](this['_diffRoots'])['map'](([_0x21aa0e,_0x119710])=>[_0x21aa0e,H(_0x119710)]),this[_0x3f6f('0x39')]);}['_getPreviousFrom'](_0x3bfc4c){const _0x33cf7a=Array[_0x3f6f('0x36')](this[_0x3f6f('0x0')][_0x3f6f('0x22')]());_0x33cf7a[_0x3f6f('0x58')]((_0x32ec72,_0x49d7d4)=>_0x32ec72-_0x49d7d4),_0x33cf7a[_0x3f6f('0xbe')]();for(const _0x8cbfd3 of _0x33cf7a)if(_0x8cbfd3<_0x3bfc4c)return _0x8cbfd3;return this[_0x3f6f('0xc0')](),Number[_0x3f6f('0x6e')];}[_0x3f6f('0xec')](_0x29cdc5,_0x508e4e){const _0x3f7017=Array[_0x3f6f('0x36')](_0x508e4e[_0x3f6f('0xea')])[_0x3f6f('0x8')](([_0x5a6ab5,_0x478c5b])=>[_0x5a6ab5,this[_0x3f6f('0x99')](_0x478c5b,_0x29cdc5)]);_0x29cdc5[_0x3f6f('0xea')]=new Map(_0x3f7017);}[_0x3f6f('0x79')](_0x5a40e4){for(const _0x2ae040 of this[_0x3f6f('0x39')][_0x3f6f('0x68')]()){const _0x34fe3c=_0x2ae040[_0x3f6f('0x5f')](_0x5a40e4),_0x2a0b61=_0x17cb81[_0x3f6f('0x6a')](_0x34fe3c);_0x2ae040['start']=_0x2a0b61['start'],_0x2ae040[_0x3f6f('0x32')]=_0x2a0b61[_0x3f6f('0x32')];}}[_0x3f6f('0xf2')](_0x33a86f,_0x14e971){const _0x2380c6=this['_cloneOperation'](_0x33a86f,this[_0x3f6f('0xd1')]);if(_0x3f6f('0xd0')!==_0x33a86f[_0x3f6f('0x4e')]&&(_0x2380c6['_execute'](),this[_0x3f6f('0x79')](_0x2380c6)),_0x14e971)switch(_0x2380c6[_0x3f6f('0x4e')]){case _0x3f6f('0x8c'):this[_0x3f6f('0x50')](_0x33a86f);break;case _0x3f6f('0xde'):case _0x3f6f('0xa6'):case _0x3f6f('0x7'):this[_0x3f6f('0xf')](_0x33a86f);break;case'merge':this[_0x3f6f('0x93')](_0x33a86f);break;case _0x3f6f('0xa1'):this[_0x3f6f('0x28')](_0x33a86f);break;case'marker':this['_handleMarkerOperation'](_0x33a86f);}}[_0x3f6f('0x34')](_0xa9e110,_0x3ca61d){const _0x502ac5=_0xa9e110[_0x3f6f('0x1d')]();return _0x502ac5[_0x3f6f('0x82')]=_0xa9e110[_0x3f6f('0x82')],this[_0x3f6f('0x2c')](_0x502ac5,_0x3ca61d),_0x502ac5;}[_0x3f6f('0x94')](_0x3bcaff){return _0x3bcaff[_0x3f6f('0x8')](_0x47f36d=>{const _0x2ac98b=this[_0x3f6f('0x76')](_0x47f36d);return Number(_0x47f36d[_0x3f6f('0xca')][_0x3f6f('0xb0')](_0x2ac98b));});}[_0x3f6f('0xd9')](_0x18727b,_0x1ee208){if(_0x18727b['is'](_0x3f6f('0xc'),_0x3f6f('0x55')))_0x1ee208[_0x3f6f('0x38')]({'item':_0x18727b,'type':_0x3f6f('0x12')});else{_0x18727b['is']('element')&&_0x1ee208[_0x3f6f('0x38')]({'item':_0x18727b,'type':_0x3f6f('0x1f')});for(const _0xc768fe of _0x18727b[_0x3f6f('0x91')]())this['_generateTape'](_0xc768fe,_0x1ee208);_0x18727b['is'](_0x3f6f('0xc'))&&_0x1ee208[_0x3f6f('0x38')]({'item':_0x18727b,'type':'elementEnd'});}return _0x1ee208;}['_getState'](){const _0x25752f=this[_0x3f6f('0x63')]['model']['document']['getRootNames'](),_0xc2daa4=new Map(this[_0x3f6f('0x7c')]),_0x2299cc=new Map(_0xc2daa4),_0x2d8258=new Map(),_0x1c0f2d={'insertions':{},'deletions':{}},_0xdd32cb={'insertions':{},'deletions':{}},_0x4ddeba=new Map();for(const _0x27600c of _0x25752f){const _0x4a227a=this['_diffRoots']['get'](_0x27600c),_0x212447=this['_baseRoots'][_0x3f6f('0x4c')](_0x27600c);_0x1c0f2d['insertions'][_0x27600c]=H(_0x4a227a),_0x1c0f2d[_0x3f6f('0x33')][_0x27600c]=H(_0x212447),this[_0x3f6f('0xec')](_0x1c0f2d[_0x3f6f('0x33')][_0x27600c],_0x212447),this[_0x3f6f('0xec')](_0x1c0f2d['insertions'][_0x27600c],_0x4a227a),_0xdd32cb[_0x3f6f('0xdf')][_0x27600c]=this[_0x3f6f('0xd9')](this[_0x3f6f('0x62')][_0x3f6f('0x4c')](_0x27600c),[]),_0xdd32cb[_0x3f6f('0x33')][_0x27600c]=this['_generateTape'](this[_0x3f6f('0x67')][_0x3f6f('0x4c')](_0x27600c),[]);}for(const _0x167cd2 of _0x25752f){const _0x5754f4=_0xdd32cb[_0x3f6f('0xdf')][_0x167cd2];for(const _0x52fed7 of _0x5754f4){const _0x6193d9=this[_0x3f6f('0x76')](_0x52fed7),_0x418b7b=_0x52fed7[_0x3f6f('0xca')]['getAttribute'](_0x6193d9);_0x2299cc[_0x3f6f('0x14')](_0x418b7b),_0x418b7b>=this[_0x3f6f('0x56')]&&_0x2d8258['set'](_0x418b7b,_0xc2daa4[_0x3f6f('0x4c')](_0x418b7b));}}for(const _0x2995ab of _0x25752f){const _0x44dbc5=_0xdd32cb[_0x3f6f('0xdf')][_0x2995ab],_0x22c866=this[_0x3f6f('0x94')](_0xdd32cb[_0x3f6f('0x33')][_0x2995ab]);let _0x3b3772=0x0;for(const _0x3115f2 of _0x44dbc5){const _0xd2b4ee=this['_getVidAttributeName'](_0x3115f2),_0x170a38=_0x3115f2['item']['getAttribute'](_0xd2b4ee);if(!_0x2d8258['has'](_0x170a38)&&!_0x4ddeba['has'](_0x170a38)){if(_0x2299cc[_0x3f6f('0x80')](_0x170a38))_0x3b3772++;else{if(_0x170a38!=_0x22c866[_0x3b3772]){const _0x2a5a09=_0xc2daa4[_0x3f6f('0x4c')](_0x170a38)||_0xc2daa4[_0x3f6f('0x4c')](_0x22c866[_0x3b3772]);for(;_0x170a38!=_0x22c866[_0x3b3772];)_0x2299cc[_0x3f6f('0x80')](_0x22c866[_0x3b3772])||(_0x4ddeba['set'](_0x22c866[_0x3b3772],_0x2a5a09),_0xc2daa4[_0x3f6f('0x8b')](_0x22c866[_0x3b3772],_0x2a5a09)),_0x3b3772++;}_0x3b3772++;}}}}for(const _0x1a8e04 of _0x25752f){const _0x5d010f=_0xdd32cb['insertions'][_0x1a8e04];for(const _0x9aafdf of _0x5d010f){const _0xa48dc7=this['_getVidAttributeName'](_0x9aafdf),_0x466e2f=_0x9aafdf[_0x3f6f('0xca')][_0x3f6f('0xb0')](_0xa48dc7);if(_0x4ddeba[_0x3f6f('0x80')](_0x466e2f)){const _0xa69155=_0x4ddeba['get'](_0x466e2f);_0x2299cc[_0x3f6f('0x80')](_0x466e2f)||_0x2299cc['set'](_0x466e2f,{..._0xa69155}),_0x2d8258[_0x3f6f('0x8b')](_0x466e2f,{..._0xa69155});}}}for(const _0x11c62a of _0x2299cc[_0x3f6f('0x22')]())_0x11c62a>=this[_0x3f6f('0x56')]&&_0x2299cc[_0x3f6f('0x14')](_0x11c62a);const _0x240c31=new Map();for(const _0x152034 of _0x25752f){let _0x491664=_0xdd32cb['insertions'][_0x152034];for(const _0x559211 of _0x491664)if(_0x559211[_0x3f6f('0xca')]['is']('element',_0x3f6f('0xbf'))){const _0xe6bd5f=this[_0x3f6f('0x76')](_0x559211),_0x5daabe=_0x559211[_0x3f6f('0xca')][_0x3f6f('0xb0')](_0xe6bd5f);if(_0x2d8258['has'](_0x5daabe)){const _0x2bb86d=_0x559211['item'][_0x3f6f('0x73')][_0x3f6f('0x73')]['getAttribute'](_0x3f6f('0xd4')),_0x50661c=_0x240c31[_0x3f6f('0x4c')](_0x2bb86d)||new Set();_0x50661c['add'](_0x2d8258[_0x3f6f('0x4c')](_0x5daabe)[_0x3f6f('0x2b')]),_0x240c31['set'](_0x2bb86d,_0x50661c);}}_0x491664=_0xdd32cb[_0x3f6f('0x33')][_0x152034];for(const _0x19c1d6 of _0x491664)if(_0x19c1d6[_0x3f6f('0xca')]['is'](_0x3f6f('0xc'),_0x3f6f('0xbf'))){const _0x3815d6=this[_0x3f6f('0x76')](_0x19c1d6),_0x4bee2f=_0x19c1d6[_0x3f6f('0xca')][_0x3f6f('0xb0')](_0x3815d6);if(_0x2299cc[_0x3f6f('0x80')](_0x4bee2f)){const _0xbdb55=_0x19c1d6[_0x3f6f('0xca')]['parent'][_0x3f6f('0x73')][_0x3f6f('0xb0')](_0x3f6f('0xd4')),_0x4fd7ae=_0x240c31[_0x3f6f('0x4c')](_0xbdb55)||new Set();_0x4fd7ae[_0x3f6f('0xa5')](_0x2299cc['get'](_0x4bee2f)[_0x3f6f('0x2b')]),_0x240c31[_0x3f6f('0x8b')](_0xbdb55,_0x4fd7ae);}}for(const _0x3c05d2 of _0x240c31[_0x3f6f('0x22')]())(_0x2d8258[_0x3f6f('0x80')](_0x3c05d2)||_0x2299cc['has'](_0x3c05d2))&&_0x240c31[_0x3f6f('0x14')](_0x3c05d2);}for(const _0x246a16 of _0x25752f){const _0x3f8a85=_0xdd32cb[_0x3f6f('0xdf')][_0x246a16];let _0x1f33ab=null,_0x5f2324=null;for(const _0x4f8f29 of _0x3f8a85){const _0x2e84ba=this[_0x3f6f('0x76')](_0x4f8f29),_0x537829=_0x4f8f29[_0x3f6f('0xca')][_0x3f6f('0xb0')](_0x2e84ba),_0x4ccd0f=_0x240c31[_0x3f6f('0x4c')](_0x537829);_0x4ccd0f&&_0x3f6f('0x1f')==_0x4f8f29[_0x3f6f('0x4e')]&&(_0x1f33ab=Array[_0x3f6f('0x36')](_0x4ccd0f)[0x0],_0x5f2324=_0x4f8f29[_0x3f6f('0xca')][_0x3f6f('0xb0')](_0x3f6f('0x41'))),_0x1f33ab&&(_0x2299cc[_0x3f6f('0x8b')](_0x537829,{'userId':_0x1f33ab}),_0x2d8258[_0x3f6f('0x8b')](_0x537829,{'userId':_0x1f33ab})),_0x537829==_0x5f2324&&(_0x1f33ab=null,_0x5f2324=null);}}const _0x581a8d={},_0x1e4cef=new Set();for(const _0xd79342 of _0x25752f){const _0x2f49be=_0x1c0f2d[_0x3f6f('0x33')][_0xd79342],_0x373eda=_0x1c0f2d['insertions'][_0xd79342];for(const {userId:_0x430a89}of this[_0x3f6f('0xc8')]['values']())null!==_0x430a89&&_0x1e4cef[_0x3f6f('0xa5')](_0x430a89);this['_markChanges'](_0x373eda,_0xdd32cb[_0x3f6f('0xdf')][_0xd79342],_0x2d8258,_0x3f6f('0x6d'),_0x1e4cef),this[_0x3f6f('0xf3')](_0x2f49be,_0xdd32cb[_0x3f6f('0x33')][_0xd79342],_0x2299cc,'deletion',_0x1e4cef),_0x581a8d[_0xd79342]={'insertions':this['_prepareViewToSave'](_0x373eda),'deletions':this['_prepareViewToSave'](_0x2f49be)};}return{'diffData':_0x581a8d,'authorsIds':Array[_0x3f6f('0x36')](_0x1e4cef)};}[_0x3f6f('0x90')](_0x29a761){for(const [,_0x3e19e2]of _0x29a761[_0x3f6f('0xea')]){const _0x27103a=_0x3e19e2[_0x3f6f('0x71')]['getAncestors']()[_0x3f6f('0x5d')](_0x336520=>_0x3f6f('0xbf')==_0x336520['name']);for(const _0x1fc5e1 of _0x27103a)0x1==_0x1fc5e1[_0x3f6f('0x8e')]&&_0x1fc5e1[_0x3f6f('0x5b')](0x0)['is'](_0x3f6f('0xc'),_0x3f6f('0xb8'))&&_0x1fc5e1['getChild'](0x0)[_0x3f6f('0x26')]('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x19cad7){this[_0x3f6f('0x90')](_0x19cad7);const _0x10da34=this[_0x3f6f('0x63')][_0x3f6f('0xba')]['toView'](_0x19cad7,{}),_0x311a30=Array[_0x3f6f('0x36')](_0x10da34[_0x3f6f('0x91')]())[_0x3f6f('0x8')](_0x301e10=>this[_0x3f6f('0x92')](_0x301e10));return JSON[_0x3f6f('0xae')](_0x311a30);}[_0x3f6f('0x92')](_0x2242d5){if(_0x2242d5['is'](_0x3f6f('0x12')))return _0x2242d5['data'];return{'type':Object[_0x3f6f('0x22')](J)[_0x3f6f('0x2e')](_0x286014=>_0x2242d5 instanceof J[_0x286014]),'name':_0x2242d5['name'],'attributes':Array[_0x3f6f('0x36')](_0x2242d5['getAttributes']()),'children':Array[_0x3f6f('0x36')](_0x2242d5[_0x3f6f('0x91')]())[_0x3f6f('0x8')](_0x5e0571=>this[_0x3f6f('0x92')](_0x5e0571))};}[_0x3f6f('0xf3')](_0xa43065,_0x44e911,_0x41ea8a,_0x4e1655,_0x18210b){let _0x269fa5=null,_0x4ccd18=null,_0x2f7a8f=0x0;const _0xf99d2=this['editor']['model'];for(let _0x224a1b=0x0;_0x224a1b<_0x44e911['length'];_0x224a1b++){const _0x200caa=this[_0x3f6f('0x76')](_0x44e911[_0x224a1b]),_0x143e60=_0x44e911[_0x224a1b]['item'][_0x3f6f('0xb0')](_0x200caa),_0x25b532=_0x41ea8a[_0x3f6f('0x4c')](_0x143e60),_0x4ebb4b=_0x224a1b==_0x44e911[_0x3f6f('0x9a')]-0x1;(!_0x269fa5&&_0x25b532&&(_0x269fa5=_0x25b532,_0x4ccd18=_0x44e911[_0x224a1b]),_0x269fa5&&(!_0x25b532||_0x25b532['userId']!=_0x269fa5[_0x3f6f('0x2b')]))&&(_0x5a1d81(_0x25b532,q(_0x4ccd18,_0xa43065,_0xf99d2),q(_0x44e911[_0x224a1b],_0xa43065,_0xf99d2)),_0x269fa5=_0x25b532||null,_0x4ccd18=_0x25b532?_0x44e911[_0x224a1b]:null),_0x269fa5&&_0x4ebb4b&&_0x5a1d81(_0x25b532,q(_0x4ccd18,_0xa43065,_0xf99d2),G(_0x44e911[_0x224a1b],_0xa43065,_0xf99d2));}function _0x5a1d81(_0x53148d,_0x87bdbf,_0x28af8b){const _0x4ad558=_0x269fa5[_0x3f6f('0x2b')],_0x5af7d6='revision:'+_0x4e1655+':'+_0x4ad558+':'+_0x2f7a8f++,_0x3f9117=_0xf99d2[_0x3f6f('0x18')](_0x87bdbf,_0x28af8b);_0xa43065[_0x3f6f('0xea')][_0x3f6f('0x8b')](_0x5af7d6,_0x3f9117),null!==_0x4ad558&&_0x18210b['add'](_0x4ad558);}}[_0x3f6f('0x76')](_0x2f64d7){switch(_0x2f64d7[_0x3f6f('0x4e')]){case _0x3f6f('0x1f'):return'vid_start';case _0x3f6f('0x47'):return'vid_end';default:return'vid';}}[_0x3f6f('0x2c')](_0x219a35,_0x56f2c5){_0x219a35['baseVersion']=null;for(const _0x186162 in _0x219a35){if(_0x219a35[_0x186162]instanceof _0x361d23){const _0xa993ee=_0x56f2c5[_0x3f6f('0x4c')](_0x219a35[_0x186162][_0x3f6f('0xf1')][_0x3f6f('0xe7')]);_0x219a35[_0x186162]=this[_0x3f6f('0x3b')](_0x219a35[_0x186162],_0xa993ee);}if(_0x219a35[_0x186162]instanceof _0x17cb81){const _0x3c44b1=_0x56f2c5['get'](_0x219a35[_0x186162]['root'][_0x3f6f('0xe7')]);_0x219a35[_0x186162]=this[_0x3f6f('0x99')](_0x219a35[_0x186162],_0x3c44b1);}}_0x219a35['root']&&(_0x219a35['root']=_0x56f2c5[_0x3f6f('0x4c')](_0x219a35[_0x3f6f('0xf1')]['rootName']));}[_0x3f6f('0x99')](_0xcb9eab,_0x19c830){return this[_0x3f6f('0x63')][_0x3f6f('0x4b')][_0x3f6f('0x18')](this['_fixPosition'](_0xcb9eab[_0x3f6f('0x71')],_0x19c830),this[_0x3f6f('0x3b')](_0xcb9eab[_0x3f6f('0x32')],_0x19c830));}[_0x3f6f('0x3b')](_0x38d713,_0x1dae94){return this[_0x3f6f('0x63')][_0x3f6f('0x4b')][_0x3f6f('0x15')](_0x1dae94,_0x38d713['path'],_0x38d713[_0x3f6f('0xc2')]);}['_handleInsertOperation'](_0x546221){const _0x30aff0=this['_idsRoots'][_0x3f6f('0x4c')](_0x546221[_0x3f6f('0x60')][_0x3f6f('0xf1')][_0x3f6f('0xe7')]),_0x288586=this['_fixPosition'](_0x546221[_0x3f6f('0x60')],_0x30aff0),_0x446f44=null===_0x546221[_0x3f6f('0x82')]?null:_0x546221['_authorId']||this['editor'][_0x3f6f('0xe0')][_0x3f6f('0x4c')](_0x3f6f('0xad'))['me']['id'],_0x102b33=_0x288586[_0x3f6f('0x73')],_0x3773ea=this['_revisionId'],_0x69c60f=[];for(const _0x4a60f6 of _0x546221[_0x3f6f('0x7b')])if(_0x4a60f6['is'](_0x3f6f('0xc')))_0x69c60f['push'](this[_0x3f6f('0x46')](_0x4a60f6));else for(let _0x385976=0x0;_0x385976<_0x4a60f6['offsetSize'];_0x385976++)_0x69c60f[_0x3f6f('0x38')](new _0x1775e9('$text',{'vid':this['_revisionId']++}));const _0x467ee5=this[_0x3f6f('0xb4')];for(let _0x21e657=_0x3773ea;_0x21e657<_0x467ee5;_0x21e657++)this[_0x3f6f('0x7c')][_0x3f6f('0x8b')](_0x21e657,{'userId':_0x446f44});_0x102b33[_0x3f6f('0x10')](_0x288586[_0x3f6f('0x5')],_0x69c60f);}[_0x3f6f('0xf')](_0x6c47ce){(_0x6c47ce=this[_0x3f6f('0x34')](_0x6c47ce,this['_idsRoots']))['_execute']();const _0x6a0cd4=null===_0x6c47ce[_0x3f6f('0x82')]?null:_0x6c47ce[_0x3f6f('0x82')]||this[_0x3f6f('0x63')][_0x3f6f('0xe0')]['get']('Users')['me']['id'],_0x4fd577=_0x6c47ce[_0x3f6f('0x4')](),_0x62bf71=_0x4fd577[_0x3f6f('0x73')],_0x57c61e=_0x4fd577[_0x3f6f('0x5')];!function _0x1a04de(_0x3cb7ad,_0x73d807,_0x53f4be,_0x2ced43){for(let _0x5b61a1=_0x53f4be;_0x5b61a1<_0x2ced43;_0x5b61a1++){const _0x1adc93=_0x73d807[_0x3f6f('0x5b')](_0x5b61a1);_0x1adc93['is'](_0x3f6f('0xc'),_0x3f6f('0x55'))?_0x3cb7ad[_0x3f6f('0x8b')](_0x1adc93[_0x3f6f('0xb0')](_0x3f6f('0xdb')),{'userId':_0x6a0cd4}):(_0x3cb7ad[_0x3f6f('0x8b')](_0x1adc93[_0x3f6f('0xb0')]('vid_start'),{'userId':_0x6a0cd4}),_0x1a04de(_0x3cb7ad,_0x1adc93,0x0,_0x1adc93[_0x3f6f('0x8e')]),_0x3cb7ad['set'](_0x1adc93[_0x3f6f('0xb0')](_0x3f6f('0x41')),{'userId':_0x6a0cd4}));}}(this[_0x3f6f('0x7c')],_0x62bf71,_0x57c61e,_0x57c61e+_0x6c47ce['howMany']);}[_0x3f6f('0x93')](_0x352c1c){const _0x32971b=null===(_0x352c1c=this[_0x3f6f('0x34')](_0x352c1c,this[_0x3f6f('0x62')]))[_0x3f6f('0x82')]?null:_0x352c1c['_authorId']||this[_0x3f6f('0x63')]['plugins'][_0x3f6f('0x4c')](_0x3f6f('0xad'))['me']['id'],_0xe02c73=_0x352c1c[_0x3f6f('0x3d')][_0x3f6f('0x73')],_0x2abcc0=_0x352c1c[_0x3f6f('0xcf')][_0x3f6f('0x73')],_0x20a967=_0xe02c73['getAttribute'](_0x3f6f('0x41')),_0x4fcb13=_0x2abcc0[_0x3f6f('0xb0')]('vid_start');_0xe02c73['_setAttribute'](_0x3f6f('0x41'),_0x2abcc0['getAttribute'](_0x3f6f('0x41'))),_0x2abcc0['_setAttribute'](_0x3f6f('0x41'),_0x20a967),this[_0x3f6f('0x7c')][_0x3f6f('0x8b')](_0x4fcb13,{'userId':_0x32971b}),this[_0x3f6f('0x7c')]['set'](_0x20a967,{'userId':_0x32971b}),_0x352c1c['_execute']();}[_0x3f6f('0x28')](_0x49020e){const _0x82a3b1=null===(_0x49020e=this['_cloneOperation'](_0x49020e,this[_0x3f6f('0x62')]))[_0x3f6f('0x82')]?null:_0x49020e['_authorId']||this[_0x3f6f('0x63')][_0x3f6f('0xe0')][_0x3f6f('0x4c')](_0x3f6f('0xad'))['me']['id'],_0x48f63a=_0x49020e[_0x3f6f('0x9')],_0x2c1c8b=_0x49020e[_0x3f6f('0x8a')][_0x3f6f('0x73')];_0x49020e[_0x3f6f('0x61')]();const _0x327a61=_0x2c1c8b['getAttribute'](_0x3f6f('0x41')),_0x176bba=_0x49020e[_0x3f6f('0xab')][_0x3f6f('0xc9')];if(_0x48f63a){const _0x3bf67f=_0x176bba[_0x3f6f('0xb0')](_0x3f6f('0x41')),_0x40769a=_0x2c1c8b[_0x3f6f('0xb0')](_0x3f6f('0x41'));_0x2c1c8b['_setAttribute']('vid_end',_0x3bf67f),_0x176bba[_0x3f6f('0x26')](_0x3f6f('0x41'),_0x40769a),this['_touched'][_0x3f6f('0x8b')](_0x2c1c8b[_0x3f6f('0xb0')](_0x3f6f('0x41')),{'userId':_0x82a3b1}),this['_touched'][_0x3f6f('0x8b')](_0x176bba[_0x3f6f('0xb0')](_0x3f6f('0xd4')),{'userId':_0x82a3b1});}else{const _0x240493=this[_0x3f6f('0xb4')]++,_0x2300a8=this[_0x3f6f('0xb4')]++;_0x2c1c8b[_0x3f6f('0x26')](_0x3f6f('0x41'),_0x240493),_0x176bba[_0x3f6f('0x26')](_0x3f6f('0xd4'),_0x2300a8),_0x176bba[_0x3f6f('0x26')](_0x3f6f('0x41'),_0x327a61),this[_0x3f6f('0x7c')][_0x3f6f('0x8b')](_0x240493,{'userId':_0x82a3b1}),this[_0x3f6f('0x7c')][_0x3f6f('0x8b')](_0x2300a8,{'userId':_0x82a3b1});}}[_0x3f6f('0xe3')](_0x33f162){if(!_0x33f162[_0x3f6f('0x65')])return;const _0x3cb931=(_0x33f162=this[_0x3f6f('0x34')](_0x33f162,this[_0x3f6f('0xd1')]))[_0x3f6f('0x9b')]?_0x33f162[_0x3f6f('0x9b')]['root']:null,_0x1869cc=_0x33f162[_0x3f6f('0xaf')]?_0x33f162[_0x3f6f('0xaf')][_0x3f6f('0xf1')]:null;_0x3cb931&&this['_markers'][_0x3f6f('0x14')](_0x33f162['name']),_0x1869cc&&this[_0x3f6f('0x39')][_0x3f6f('0x8b')](_0x33f162[_0x3f6f('0xe8')],_0x33f162[_0x3f6f('0xaf')][_0x3f6f('0x1d')]());const _0x33c6ba=null===_0x33f162[_0x3f6f('0x82')]?null:_0x33f162['_authorId']||this['editor'][_0x3f6f('0xe0')][_0x3f6f('0x4c')](_0x3f6f('0xad'))['me']['id'],_0x5080a6=_0x33f162[_0x3f6f('0xe8')];if(!this[_0x3f6f('0xc8')]['has'](_0x5080a6))return void this['_touchedMarkers']['set'](_0x5080a6,{'range':_0x33f162[_0x3f6f('0x9b')],'userId':_0x33c6ba});const _0x3f9e57=this['_touchedMarkers'][_0x3f6f('0x4c')](_0x5080a6),_0x13c05a=_0x3f9e57['range'],_0x44a658=_0x33f162['newRange'];null==_0x13c05a&&null==_0x44a658||_0x13c05a&&_0x44a658&&_0x13c05a[_0x3f6f('0x44')](_0x44a658)?this[_0x3f6f('0xc8')][_0x3f6f('0x14')](_0x33f162[_0x3f6f('0xe8')]):_0x3f9e57[_0x3f6f('0x2b')]=_0x33c6ba;}}function H(_0x2c748e){const _0x8230bc=new _0x383462();_0x8230bc['rootName']=_0x2c748e[_0x3f6f('0xe7')];for(const _0x56ba3e of _0x2c748e[_0x3f6f('0x91')]()){const _0x103c57=_0x56ba3e[_0x3f6f('0xef')](!0x0);_0x8230bc[_0x3f6f('0xb5')](_0x103c57);}return _0x8230bc;}function q(_0x441b63,_0x52451e,_0x327df3){const _0x3e326d=_0x3f6f('0x47')==_0x441b63['type']?_0x327df3[_0x3f6f('0xcd')](_0x441b63['item'],'end'):_0x327df3['createPositionBefore'](_0x441b63[_0x3f6f('0xca')]);return _0x3e326d[_0x3f6f('0xf1')]=_0x52451e,_0x3e326d;}function G(_0x5a7d5a,_0x459a5b,_0x7b104){const _0xc9e8d5=_0x3f6f('0x1f')==_0x5a7d5a[_0x3f6f('0x4e')]?_0x7b104[_0x3f6f('0xcd')](_0x5a7d5a[_0x3f6f('0xca')],0x0):_0x7b104[_0x3f6f('0x1a')](_0x5a7d5a['item']);return _0xc9e8d5[_0x3f6f('0xf1')]=_0x459a5b,_0xc9e8d5;}
23
+ const _0x5e0b=['root','_fixOperation','currentRevision','dataDowncast','createPositionBefore','processor','_reset','sourcePosition','revision','_createInitialRevision','rootName','from','getData','config','elementEnd','repository','getCurrentRevisionId','_source','_loadState','getWalker','insert','_handleOperation','_diffRoots','_lastTo','isEnabled','revisionHistory.resumeUnsavedRevision','_baseRoots','_addPendingAction','Users','_markers','length','keys','markerToData','_saveMetaData','childCount','_touchedMarkers','max','filter','init','_isInit','fromVersion','toData','_operations','_clone','version','_appendChild','_startingRevisionId','_getViewJson','getLatestVersion','conversion','keepParagraph','_initialRevisionId','add','item','_calculateMetaData','editor-initial-data-replaced-with-revision-data','_touched','name','locale','getRootNames','_makeRevision','remove','_processRootBeforeSave','oldRange','clear','RevisionsRepository','createPositionAt','_loadRevisionData','clone','marked','_pendingAction','has','hasContent','creator','updateRevisions','_handleMoveOperation','type','history','_copyMarkers','forEach','getRoot','pluginName','graveyardPosition','includes','parse','bind','_createCurrentRevision','position','NEGATIVE_INFINITY','vid','toModel','ready','_prepareViewToSave','isReady','sendBufferedUpdates','_rootNames','range','previousPosition','createRangeIn','getNodeByPath','_update','parent','userId','shift','update','find','initialData','nodes','delete','afterInit','set','elementStart','targetPosition','_getVidAttributeName','split','getChild','_savedMetaData','_baseIdsRoots','finally','buildRevisionData','reinsert','_makeModelFromViewString','children','getRevisionDocumentData','PendingActions','_isPendingUpdate','_transformMarkers','_removeRevisionMarkers','for','startsWith','document','push','getRevisions','sort','getMovedRangeStart','_removePendingAction','view','setRevisionData','insertions','createdAt','element','paragraph','_getState','size','$text','merge','_startingVersion','_execute','getTransformedByOperation','_handleSplitOperation','createPositionFromPath','_revisionId','resolve','collaboration.channelId','authors','vid_start','_handleMarkerOperation','move','stringify','define','trim','_replaceEditorDataWithRevisionData','_setConversion','offsetSize','values','_findInsertionIndex','offset','authorsIds','_fixPosition','addRevision','getRevision','toVersion','stickiness','addRevisionData','loadState','source','_authorId','splitPosition','upcast','_revisionDataBuilder','getAttribute','RealTimeCollaborationClient','text','data','then','creatorId','_bufferedUpdates','reInit','getTime','marker','dataToMarker','newRange','get','_removeMetaData','useFillerType','plugins','_loadedStateData','getAttributes','tableCell','string','isPendingUpdate','_markChanges','_saveEmptyMetaData','_bufferUpdate','_continueCurrentRevision','editing','_getFromVersion','map','getOperations','documentFragment','model','adapter','start','toView','slice','diffData','getIndex','nodeAfter','attributes','editor','insertion','initial','vid_end','_makeIdsRoot','_cloneOperation','revision-end','$graveyard','getChildren','markers','_getBaseVids','deletions','_generateTape','baseVersion','_getPreviousFrom','PENDING_ACTION_REVISION_HISTORY','_lastFrom','createRange','_idsRoots','_fixRange','getAncestors','end','revision-start','reverse','_setAttribute','path','_applyOperations','insertionPosition','requires'];(function(_0x107a56,_0x5e0bc7){const _0x1b2f1a=function(_0x41d2c3){while(--_0x41d2c3){_0x107a56['push'](_0x107a56['shift']());}};_0x1b2f1a(++_0x5e0bc7);}(_0x5e0b,0xa9));const _0x1b2f=function(_0x107a56,_0x5e0bc7){_0x107a56=_0x107a56-0x0;let _0x1b2f1a=_0x5e0b[_0x107a56];return _0x1b2f1a;};import{Users as _0x28a163}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x21d08d,PendingActions as _0x14cfcf}from'ckeditor5/src/core';import{logWarning as _0x12b7e5,uid as _0x333ed5}from'ckeditor5/src/utils';import{Position as _0x57323c,Range as _0x561f91,Element as _0x5731e8,DocumentFragment as _0x5ab7a7,ViewText as _0x4c415b,ViewElement as _0x42304f,ViewContainerElement as _0x2665dc,ViewAttributeElement as _0x15006d,ViewEmptyElement as _0x486dcb,ViewRawElement as _0x40d326,ViewUIElement as _0x4045e8,ViewDocumentFragment as _0x2e8905}from'ckeditor5/src/engine';import _0x59f988 from'./revisionsrepository';import{getTranslation as _0x430d45}from'./utils/common-translations';const J={'c':_0x2665dc,'a':_0x15006d,'e':_0x486dcb,'r':_0x40d326,'u':_0x4045e8};export default class u extends _0x21d08d{static get[_0x1b2f('0xa0')](){return'RevisionTracker';}static get[_0x1b2f('0x4e')](){return[_0x28a163,_0x59f988,_0x14cfcf];}constructor(..._0x10bf27){super(..._0x10bf27),this[_0x1b2f('0x2a')]=null,this[_0x1b2f('0xbd')](_0x1b2f('0xac'),!0x1),this[_0x1b2f('0xbd')](_0x1b2f('0x67'),!0x0),this[_0x1b2f('0x51')]=null;const _0x57377e=_0x333ed5();this[_0x1b2f('0x60')]={'history':this[_0x1b2f('0x32')][_0x1b2f('0x29')][_0x1b2f('0xd1')][_0x1b2f('0x9c')],'getLatestVersion':()=>Promise[_0x1b2f('0xe7')](this[_0x1b2f('0x32')][_0x1b2f('0x29')]['document'][_0x1b2f('0x7b')]),'getCurrentRevisionId':()=>_0x57377e},this[_0x1b2f('0xa')]=new B(this['editor']),this[_0x1b2f('0x82')]=this[_0x1b2f('0x32')]['config'][_0x1b2f('0x17')]('collaboration.channelId')||_0x1b2f('0x34'),this[_0x1b2f('0xbd')](_0x1b2f('0x1f'),!0x1),this['_bufferedUpdates']=new Map(),this[_0x1b2f('0x32')][_0x1b2f('0x5c')][_0x1b2f('0xee')]('revisionHistory.resumeUnsavedRevision',!0x0),this['_loadedStateData']=null,this[_0x1b2f('0x32')][_0x1b2f('0x80')][_0x1b2f('0xcf')](_0x1b2f('0x9'))[_0x1b2f('0x15')]({'view':_0x1b2f('0x57')});}['init'](){this['repository']=this['editor'][_0x1b2f('0x1a')]['get'](_0x1b2f('0x90')),this[_0x1b2f('0xf1')](),this[_0x1b2f('0x32')]['data']['on'](_0x1b2f('0xaa'),()=>{const _0x10701e=this[_0x1b2f('0x5e')]['getRevision'](0x0),_0x391da9=_0x10701e&&null===_0x10701e[_0x1b2f('0x98')]?_0x10701e:null;if(this[_0x1b2f('0x23')]=!!_0x391da9&&this[_0x1b2f('0x32')][_0x1b2f('0x5c')]['get'](_0x1b2f('0x68')),this[_0x1b2f('0x32')][_0x1b2f('0x1a')][_0x1b2f('0x96')](_0x1b2f('0xc'))){const _0x4b3d27=this[_0x1b2f('0x60')][_0x1b2f('0x5f')](),_0x3b3f93=this['repository'][_0x1b2f('0x1')](_0x4b3d27);if(_0x3b3f93)this[_0x1b2f('0xe1')]=_0x3b3f93[_0x1b2f('0x77')],this['_continueCurrentRevision']=!0x1;else{const _0x1cff38=this['_source'][_0x1b2f('0x9c')][_0x1b2f('0x79')][_0x1b2f('0xb8')](_0x384d0d=>!_0x384d0d[_0x1b2f('0x76')]),_0x165300=_0x1cff38?_0x1cff38[_0x1b2f('0x3f')]:this['_source'][_0x1b2f('0x9c')][_0x1b2f('0x7b')];_0x10701e?(_0x10701e[_0x1b2f('0x2')]<_0x165300&&_0x10701e[_0x1b2f('0xb3')]({'toVersion':_0x165300}),this[_0x1b2f('0x23')]?(this[_0x1b2f('0x60')][_0x1b2f('0x5f')]=()=>_0x391da9['id'],this[_0x1b2f('0xe1')]=_0x391da9['fromVersion']):(this['_startingVersion']=_0x10701e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this[_0x1b2f('0xe1')]=_0x165300,this['_continueCurrentRevision']=!0x1);}}else _0x391da9&&(this['editor'][_0x1b2f('0x29')][_0x1b2f('0xd1')]['history'][_0x1b2f('0x7b')]=Math[_0x1b2f('0x73')](_0x391da9[_0x1b2f('0x2')],this[_0x1b2f('0x32')][_0x1b2f('0x29')][_0x1b2f('0xd1')][_0x1b2f('0x9c')]['version']),_0x391da9[_0x1b2f('0x77')]===_0x391da9['toVersion']?(0x0!==_0x391da9[_0x1b2f('0x77')]&&(this[_0x1b2f('0x60')][_0x1b2f('0x5f')]=()=>_0x391da9['id']),this[_0x1b2f('0x23')]=!0x1):this[_0x1b2f('0x23')]&&(this[_0x1b2f('0x60')][_0x1b2f('0x5f')]=()=>_0x391da9['id'],this['_startingVersion']=_0x391da9[_0x1b2f('0x77')])),this[_0x1b2f('0x23')]||(this[_0x1b2f('0xe1')]=this[_0x1b2f('0x32')][_0x1b2f('0x29')]['document'][_0x1b2f('0x7b')]);this[_0x1b2f('0xa')][_0x1b2f('0x75')](this[_0x1b2f('0x60')][_0x1b2f('0x9c')]),this['_createInitialRevision'](this['_startingVersion']),this[_0x1b2f('0xa5')](this[_0x1b2f('0xe1')]),this['adapter']&&this[_0x1b2f('0xad')]();}),this[_0x1b2f('0xa4')]('isReady')['to'](this,_0x1b2f('0xcc'),_0x429bf6=>!_0x429bf6);}async[_0x1b2f('0xbc')](){if(this['repository'][_0x1b2f('0x6d')]>0x0){const _0x4db99d=this[_0x1b2f('0x5e')][_0x1b2f('0x1')](0x0),_0x3e5b4a=await this[_0x1b2f('0xca')](_0x4db99d);this['_replaceEditorDataWithRevisionData'](_0x3e5b4a);}}['setSource'](_0x151d82){this[_0x1b2f('0x60')]=_0x151d82;}async[_0x1b2f('0xb7')](){const _0x4e33f0=await this['_source'][_0x1b2f('0x7f')]();if(_0x4e33f0>this[_0x1b2f('0x51')]['toVersion']){await this[_0x1b2f('0x61')]();const _0x5f3149=this[_0x1b2f('0xc6')]({'revision':this['currentRevision'],'to':_0x4e33f0});_0x5f3149[_0x1b2f('0xe9')]=_0x5f3149['authorsIds'][_0x1b2f('0x26')](_0x47f8b6=>this['editor'][_0x1b2f('0x1a')][_0x1b2f('0x17')]('Users')['getUser'](_0x47f8b6)),this['currentRevision'][_0x1b2f('0xb3')](_0x5f3149);}}async[_0x1b2f('0x61')](){this[_0x1b2f('0x23')]&&!this['_loadedStateData']&&(await this[_0x1b2f('0x92')](this[_0x1b2f('0x51')]),this[_0x1b2f('0xa')][_0x1b2f('0x5')](this['currentRevision']),this[_0x1b2f('0x1b')]={'fromVersion':this[_0x1b2f('0x51')]['fromVersion'],'authors':this[_0x1b2f('0x51')][_0x1b2f('0xe9')][_0x1b2f('0x2d')]()});}async['saveRevision'](_0x2df93c={},_0x11af43=null){const _0x46e2d6=[];await this[_0x1b2f('0x61')](),this[_0x1b2f('0x23')]=!0x1,_0x11af43>this[_0x1b2f('0x51')][_0x1b2f('0x2')]&&(_0x11af43=null),null===_0x11af43&&(_0x11af43=await this[_0x1b2f('0x60')][_0x1b2f('0x7f')]());const _0xffd1a1=this[_0x1b2f('0x25')](_0x11af43),_0xa76bf2=this['buildRevisionData']({'from':_0xffd1a1,'to':_0x11af43});if(this[_0x1b2f('0x51')][_0x1b2f('0x2')]<_0x11af43){const _0x31cc4b=this[_0x1b2f('0xc6')]({'revision':this[_0x1b2f('0x51')],'from':_0x11af43,'to':_0x11af43});_0x31cc4b[_0x1b2f('0xe9')]=[],_0x31cc4b[_0x1b2f('0xf6')]=[],_0x31cc4b['id']=this[_0x1b2f('0x51')]['id'],this[_0x1b2f('0x51')][_0x1b2f('0xb3')](_0x31cc4b,!0x0),delete _0x31cc4b[_0x1b2f('0xe9')],_0x46e2d6[_0x1b2f('0xd2')](_0x31cc4b);}_0x2df93c['creatorId']=this[_0x1b2f('0x32')][_0x1b2f('0x1a')]['get'](_0x1b2f('0x6b'))['me']['id'],_0x2df93c[_0x1b2f('0x88')]=_0x2df93c[_0x1b2f('0x88')]||null,_0x2df93c['id']=_0x2df93c['id']||_0x333ed5(),_0x2df93c={..._0x2df93c,..._0xa76bf2};const _0x1dc27e=this[_0x1b2f('0x4')](_0x2df93c);_0x46e2d6['push'](_0x2df93c);const _0x4830d3=this['repository'][_0x1b2f('0x2f')](_0x1dc27e);if(0x0!==_0x4830d3){const _0x323efb=this[_0x1b2f('0x5e')][_0x1b2f('0x1')](_0x4830d3-0x1);if(_0x323efb['fromVersion']!==_0x11af43){const _0xadfc28=this['_revisionDataBuilder'][_0x1b2f('0x5b')](_0x11af43,_0x323efb['toVersion']),_0x203a18={'id':_0x323efb['id'],'diffData':_0xadfc28[_0x1b2f('0x2e')],'authorsIds':_0xadfc28[_0x1b2f('0xf6')],'authors':_0xadfc28[_0x1b2f('0xf6')][_0x1b2f('0x26')](_0x103d16=>this[_0x1b2f('0x32')][_0x1b2f('0x1a')][_0x1b2f('0x17')](_0x1b2f('0x6b'))['getUser'](_0x103d16)),'fromVersion':_0x11af43};_0x323efb===this['currentRevision']&&(_0x203a18[_0x1b2f('0xda')]=new Date(_0x2df93c[_0x1b2f('0xda')][_0x1b2f('0x13')]()+0xa)),_0x323efb['_update'](_0x203a18,!0x0),delete _0x203a18[_0x1b2f('0xe9')],_0x46e2d6['push'](_0x203a18);}}if(this[_0x1b2f('0x2a')]){for(const _0x6e5141 of _0x46e2d6)this['_bufferUpdate'](_0x6e5141['id'],_0x6e5141,!0x0);this[_0x1b2f('0xad')]();}return _0x1dc27e;}[_0x1b2f('0x4')](_0x19d467){const _0x2dac11=this[_0x1b2f('0x5e')]['createRevision'](_0x19d467);return this[_0x1b2f('0x2a')]&&_0x2dac11['on'](_0x1b2f('0xb3'),(_0x11bb88,_0x4d7c2d,_0x4d2505)=>{_0x4d2505||(this[_0x1b2f('0x22')](_0x4d7c2d['id'],_0x4d7c2d,!0x0),this[_0x1b2f('0xad')]());}),this[_0x1b2f('0x5e')][_0x1b2f('0x0')](_0x2dac11,this[_0x1b2f('0xf4')](_0x2dac11)),_0x2dac11;}async['getRevisionDocumentData'](_0x15283a){await this['_loadRevisionData'](_0x15283a);const _0x462e28={};for(const _0x5ae347 in _0x15283a[_0x1b2f('0x2e')]){const _0x45f020=this[_0x1b2f('0xce')](JSON[_0x1b2f('0xa3')](_0x15283a[_0x1b2f('0x2e')][_0x5ae347]['insertions'])),_0x56103c=this[_0x1b2f('0x32')][_0x1b2f('0x24')][_0x1b2f('0xd7')][_0x1b2f('0xd1')],_0x39e8e2=new _0x2e8905(_0x56103c,_0x45f020['map'](_0x4302b1=>j(_0x4302b1,this[_0x1b2f('0x32')])));this[_0x1b2f('0x32')][_0x1b2f('0xe')][_0x1b2f('0x54')][_0x1b2f('0x19')](_0x1b2f('0x94')),_0x462e28[_0x5ae347]=this[_0x1b2f('0x32')][_0x1b2f('0xe')][_0x1b2f('0x54')][_0x1b2f('0x78')](_0x39e8e2),this[_0x1b2f('0x32')][_0x1b2f('0xe')][_0x1b2f('0x54')]['useFillerType']('default');}return _0x462e28;}[_0x1b2f('0xad')](){if(0x0===this[_0x1b2f('0x11')]['size'])return;if(this[_0x1b2f('0xcc')])return;let _0x5d2ac0=Array[_0x1b2f('0x5a')](this[_0x1b2f('0x11')][_0x1b2f('0xf3')]());this[_0x1b2f('0x11')][_0x1b2f('0x8f')]();for(let _0xac1115=0x0;_0xac1115<_0x5d2ac0[_0x1b2f('0x6d')];_0xac1115++){const _0x56a3e3=_0x5d2ac0[_0xac1115];let _0x489e11=!0x1;for(const _0x28493b of Object[_0x1b2f('0x6e')](_0x56a3e3))void 0x0===_0x56a3e3[_0x28493b]?delete _0x56a3e3[_0x28493b]:'id'!==_0x28493b&&(_0x489e11=!0x0);_0x489e11||(_0x5d2ac0[_0xac1115]=null);}if(_0x5d2ac0=_0x5d2ac0['filter'](_0x3fbda5=>null!==_0x3fbda5),!_0x5d2ac0[_0x1b2f('0x6d')])return;for(let _0x108ae2=0x0;_0x108ae2<_0x5d2ac0[_0x1b2f('0x6d')];_0x108ae2++){const _0x37f0a3=_0x5d2ac0[_0x108ae2];void 0x0!==_0x37f0a3['fromVersion']&&void 0x0===_0x37f0a3[_0x1b2f('0x2')]&&(_0x37f0a3[_0x1b2f('0x2')]=this[_0x1b2f('0x5e')][_0x1b2f('0x1')](_0x37f0a3['id'])[_0x1b2f('0x2')]),void 0x0!==_0x37f0a3[_0x1b2f('0x2')]&&void 0x0===_0x37f0a3['fromVersion']&&(_0x37f0a3['fromVersion']=this[_0x1b2f('0x5e')][_0x1b2f('0x1')](_0x37f0a3['id'])[_0x1b2f('0x77')]);}const _0x134057=this[_0x1b2f('0x32')][_0x1b2f('0x5c')]['get'](_0x1b2f('0xe8'));this[_0x1b2f('0xcc')]=!0x0,this[_0x1b2f('0x6a')](),this['adapter'][_0x1b2f('0x99')](_0x5d2ac0,_0x134057)[_0x1b2f('0xc5')](()=>{this[_0x1b2f('0xcc')]=!0x1;})[_0x1b2f('0xf')](_0x10d6fe=>{if(_0x10d6fe)for(const _0x30f037 of _0x10d6fe)this[_0x1b2f('0xd8')]({'id':_0x30f037['id'],'createdAt':_0x30f037[_0x1b2f('0xda')]});this[_0x1b2f('0xd6')](),this[_0x1b2f('0xad')]();});}[_0x1b2f('0xf0')](_0x281e74){let _0x29cb04=this[_0x1b2f('0x32')]['config']['get'](_0x1b2f('0xb9'));if(void 0x0===_0x29cb04){_0x29cb04={};for(const _0x2b3b93 of this[_0x1b2f('0x32')]['model'][_0x1b2f('0xd1')][_0x1b2f('0x8a')]())_0x29cb04[_0x2b3b93]='';}_0x1b2f('0x1e')==typeof _0x29cb04&&(_0x29cb04={'main':_0x29cb04});let _0x566305=!0x1;for(const _0x36b4b9 of Object[_0x1b2f('0x6e')](_0x29cb04))_0x281e74[_0x36b4b9]&&(_0x29cb04[_0x36b4b9]!==_0x281e74[_0x36b4b9]&&''!==_0x29cb04[_0x36b4b9][_0x1b2f('0xef')]()&&(_0x566305=!0x0),_0x29cb04[_0x36b4b9]=_0x281e74[_0x36b4b9]);_0x566305&&_0x12b7e5(_0x1b2f('0x86')),this[_0x1b2f('0x32')]['config'][_0x1b2f('0xbd')](_0x1b2f('0xb9'),_0x29cb04);}[_0x1b2f('0x6a')](){if(!this[_0x1b2f('0x95')]){const _0x33c4ee=this[_0x1b2f('0x32')][_0x1b2f('0x1a')][_0x1b2f('0x17')](_0x1b2f('0xcb'));this[_0x1b2f('0x95')]=_0x33c4ee[_0x1b2f('0x83')](_0x430d45(this['editor']['locale'],_0x1b2f('0x41')));}}[_0x1b2f('0xd6')](){this[_0x1b2f('0x95')]&&(this[_0x1b2f('0x32')][_0x1b2f('0x1a')]['get'](_0x1b2f('0xcb'))[_0x1b2f('0x8c')](this['_pendingAction']),this[_0x1b2f('0x95')]=null);}[_0x1b2f('0xf4')](_0x118616){const _0xe5f2df=this[_0x1b2f('0x5e')][_0x1b2f('0xd3')]();_0xe5f2df[_0x1b2f('0x49')]();let _0x2d5e68=0x0;for(;_0x2d5e68<_0xe5f2df[_0x1b2f('0x6d')];){const _0x2453f2=_0xe5f2df[_0x2d5e68];if(_0x2453f2===this[_0x1b2f('0x51')]){_0x2d5e68++;continue;}if(_0x2453f2['id']===this[_0x1b2f('0x82')])break;const _0x288b37=_0x118616[_0x1b2f('0x2')]-_0x2453f2['toVersion']||_0x118616['fromVersion']-_0x2453f2[_0x1b2f('0x77')];if(_0x288b37>0x0)break;if(_0x288b37<0x0)_0x2d5e68++;else{if(!_0x118616[_0x1b2f('0x98')]&&_0x2453f2['creator'])break;if(_0x2453f2[_0x1b2f('0x98')]||!_0x118616[_0x1b2f('0x98')]){if(_0x118616[_0x1b2f('0xda')]>_0x2453f2['createdAt'])break;_0x2d5e68++;}else _0x2d5e68++;}}return _0x2d5e68;}[_0x1b2f('0xd8')](_0x2d5ddf){const _0x331cd4=this[_0x1b2f('0x5e')][_0x1b2f('0x1')](_0x2d5ddf['id']);if(_0x2d5ddf[_0x1b2f('0xda')]&&(_0x2d5ddf[_0x1b2f('0xda')]=new Date(_0x2d5ddf[_0x1b2f('0xda')])),_0x2d5ddf[_0x1b2f('0xf6')]){const _0xf20c87=this[_0x1b2f('0x32')][_0x1b2f('0x1a')]['get']('Users');_0x2d5ddf['authors']=_0x2d5ddf[_0x1b2f('0xf6')][_0x1b2f('0x26')](_0xba1b4c=>_0xf20c87['getUser'](_0xba1b4c));}_0x331cd4[_0x1b2f('0xb3')](_0x2d5ddf,!0x0);}[_0x1b2f('0xc6')]({revision:_0x40a619=null,from:_0x2a7843=null,to:_0x5bf18a=null}){_0x2a7843=null!==_0x2a7843?_0x2a7843:_0x40a619['fromVersion'],_0x5bf18a=null!==_0x5bf18a?_0x5bf18a:_0x40a619[_0x1b2f('0x2')];const _0x5994a3=this[_0x1b2f('0xa')][_0x1b2f('0x5b')](_0x2a7843,_0x5bf18a),_0x3736c3={'diffData':_0x5994a3['diffData'],'authorsIds':_0x5994a3[_0x1b2f('0xf6')],'fromVersion':_0x2a7843,'toVersion':_0x5bf18a};if(!_0x40a619||_0x5bf18a!==_0x40a619[_0x1b2f('0x2')]){const _0x82314e=_0x5bf18a-0x1,_0x1555df=this['_source']['history']['getOperation'](_0x82314e);_0x3736c3[_0x1b2f('0xda')]=_0x1555df&&_0x1555df[_0x1b2f('0xda')]||new Date();}if(this['_loadedStateData']&&_0x2a7843===this[_0x1b2f('0x1b')][_0x1b2f('0x77')])for(const _0xc2e8c4 of this[_0x1b2f('0x1b')][_0x1b2f('0xe9')])_0x3736c3[_0x1b2f('0xf6')][_0x1b2f('0xa2')](_0xc2e8c4['id'])||_0x3736c3[_0x1b2f('0xf6')]['push'](_0xc2e8c4['id']);return _0x3736c3;}[_0x1b2f('0x92')](_0x4255d3){if(!_0x4255d3||_0x4255d3['diffData'])return Promise[_0x1b2f('0xe7')]();{const _0x39ba64=this[_0x1b2f('0x32')][_0x1b2f('0x5c')][_0x1b2f('0x17')](_0x1b2f('0xe8'));return this['adapter'][_0x1b2f('0x1')]({'channelId':_0x39ba64,'revisionId':_0x4255d3['id']})[_0x1b2f('0xf')](_0x3bef46=>{_0x4255d3[_0x1b2f('0x2e')]=_0x3bef46[_0x1b2f('0x2e')];});}}[_0x1b2f('0x22')](_0xf5dc6c,_0x542333,_0x1e2b35){if(this[_0x1b2f('0x11')][_0x1b2f('0x96')](_0xf5dc6c)){const _0x505c77=this[_0x1b2f('0x11')][_0x1b2f('0x17')](_0xf5dc6c);_0x542333=_0x1e2b35?{..._0x505c77,..._0x542333}:{..._0x542333,..._0x505c77};}this[_0x1b2f('0x11')][_0x1b2f('0xbd')](_0xf5dc6c,_0x542333);}[_0x1b2f('0x25')](_0xc69c24){const _0x242e5a=this[_0x1b2f('0x5e')][_0x1b2f('0xd3')]();_0x242e5a['reverse'](),_0x242e5a[_0x1b2f('0xb6')]();const _0xd810b4=_0x242e5a[_0x1b2f('0xb8')](_0x14d34a=>_0x14d34a[_0x1b2f('0x2')]<=_0xc69c24)[_0x1b2f('0x2')];return _0xd810b4<this[_0x1b2f('0xe1')]?this[_0x1b2f('0xe1')]:_0xd810b4;}[_0x1b2f('0x58')](_0x142374){const _0x123564=this[_0x1b2f('0x5e')]['getRevision'](this[_0x1b2f('0x5e')][_0x1b2f('0x6d')]-0x1);if(_0x123564)this[_0x1b2f('0x82')]=_0x123564['id'];else{const _0x3ff09f=!this[_0x1b2f('0x32')]['model'][_0x1b2f('0xd1')]['roots'][_0x1b2f('0xb8')](_0x36de27=>this['editor'][_0x1b2f('0x29')][_0x1b2f('0x97')](_0x36de27)),_0x461b1e=this['editor']['plugins'][_0x1b2f('0x17')](_0x1b2f('0x6b'))['me']['id'],_0x5e7ab7=_0x430d45(this[_0x1b2f('0x32')][_0x1b2f('0x89')],_0x3ff09f?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x142374,'to':_0x142374,'id':this[_0x1b2f('0x82')],'name':_0x5e7ab7,'creatorId':_0x461b1e});}}[_0x1b2f('0xa5')](_0x1d667d){const _0x2d8a9f=this[_0x1b2f('0x60')][_0x1b2f('0x5f')]();this[_0x1b2f('0x51')]=this[_0x1b2f('0x5e')][_0x1b2f('0x1')](_0x2d8a9f),this[_0x1b2f('0x51')]||(this[_0x1b2f('0x51')]=this[_0x1b2f('0x8b')]({'from':_0x1d667d,'to':_0x1d667d,'id':_0x2d8a9f,'name':'','creatorId':null}));}['_makeRevision']({name:_0x53fb5c,from:_0x108019,to:_0x19b93e,creatorId:_0x28019a,id:_0xdec74b}){const _0x321887=this['buildRevisionData']({'from':_0x108019,'to':_0x19b93e});_0x321887[_0x1b2f('0x88')]=_0x53fb5c,_0x321887[_0x1b2f('0x10')]=_0x28019a,_0x321887['id']=_0xdec74b;const _0xe4b0d=this[_0x1b2f('0x4')](_0x321887);return this[_0x1b2f('0x2a')]&&this[_0x1b2f('0x22')](_0x321887['id'],_0x321887,!0x0),_0xe4b0d;}[_0x1b2f('0xf1')](){this['editor'][_0x1b2f('0x80')][_0x1b2f('0xcf')](_0x1b2f('0x52'))[_0x1b2f('0x6f')]({'model':'revision'});}[_0x1b2f('0xce')](_0x11b1ef){return(_0x11b1ef=_0x11b1ef[_0x1b2f('0x74')](_0x1d33e7=>!_0x1d33e7[_0x1b2f('0x88')]||_0x1b2f('0x48')!==_0x1d33e7[_0x1b2f('0x88')]&&_0x1b2f('0x38')!==_0x1d33e7[_0x1b2f('0x88')]))[_0x1b2f('0x9e')](_0x15651d=>{_0x1b2f('0x1e')!=typeof _0x15651d&&(_0x15651d[_0x1b2f('0xc9')]=this['_removeRevisionMarkers'](_0x15651d[_0x1b2f('0xc9')]),_0x15651d[_0x1b2f('0x31')]=_0x15651d['attributes'][_0x1b2f('0x74')](_0x11fcb5=>!_0x11fcb5[0x0][_0x1b2f('0xd0')]('data-revision-')));}),_0x11b1ef;}}function j(_0x310e56,_0xe96c04){const _0x5ae60c=_0xe96c04[_0x1b2f('0x24')][_0x1b2f('0xd7')]['document'];if('string'==typeof _0x310e56)return new _0x4c415b(_0x5ae60c,_0x310e56);{const _0x47ffbf=_0x310e56[_0x1b2f('0xc9')][_0x1b2f('0x26')](_0x257769=>j(_0x257769,_0xe96c04));return new(J[_0x310e56['type']]||_0x42304f)(_0x5ae60c,_0x310e56[_0x1b2f('0x88')],_0x310e56[_0x1b2f('0x31')],_0x47ffbf);}}class B{constructor(_0x38ac17){this['editor']=_0x38ac17,this['_savedMetaData']=new Map(),this[_0x1b2f('0x42')]=-0x1,this[_0x1b2f('0x66')]=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this[_0x1b2f('0x69')]=new Map(),this[_0x1b2f('0x44')]=new Map(),this[_0x1b2f('0xc4')]=new Map(),this[_0x1b2f('0x87')]=new Map(),this[_0x1b2f('0x72')]=new Map(),this[_0x1b2f('0xe6')]=0x1,this['_rootNames']=this[_0x1b2f('0x32')]['model'][_0x1b2f('0xd1')][_0x1b2f('0x8a')](),this['_rootNames']['push'](_0x1b2f('0x39'));}[_0x1b2f('0x75')](_0x3f27af){this[_0x1b2f('0x6')]=_0x3f27af;const _0x3b26f1=new Map();for(const _0x28a245 of this[_0x1b2f('0xae')]){const _0x4fe16d=H(this[_0x1b2f('0x32')][_0x1b2f('0x29')]['document'][_0x1b2f('0x9f')](_0x28a245));_0x3b26f1[_0x1b2f('0xbd')](_0x28a245,_0x4fe16d);}const _0x6421b9=Array[_0x1b2f('0x5a')](this[_0x1b2f('0x32')][_0x1b2f('0x29')][_0x1b2f('0x3b')])[_0x1b2f('0x26')](_0x18f831=>[_0x18f831[_0x1b2f('0x88')],_0x18f831['getRange']()]),_0x358800=this[_0x1b2f('0x6')][_0x1b2f('0x7b')];this[_0x1b2f('0x70')](_0x358800,_0x3b26f1,_0x6421b9),this[_0x1b2f('0x7d')]=this[_0x1b2f('0xe6')];}[_0x1b2f('0x5b')](_0x5bd2fc,_0x802893){if(this[_0x1b2f('0x42')]===_0x5bd2fc&&this[_0x1b2f('0x66')]<=_0x802893)this[_0x1b2f('0xc3')][_0x1b2f('0xde')]>0x1&&this[_0x1b2f('0x18')](this[_0x1b2f('0x66')]),this[_0x1b2f('0x4c')](this[_0x1b2f('0x66')],_0x802893,!0x0);else{if(!this['_savedMetaData']['has'](_0x5bd2fc)){const _0x503197=this[_0x1b2f('0x40')](_0x5bd2fc);this[_0x1b2f('0x85')](_0x503197,_0x5bd2fc,!0x1);}this[_0x1b2f('0x85')](_0x5bd2fc,_0x802893,!0x0);}return this['_lastFrom']=_0x5bd2fc,this[_0x1b2f('0x66')]=_0x802893,this[_0x1b2f('0xdd')]();}[_0x1b2f('0x5')](_0x2f1ca8){this[_0x1b2f('0x55')](),this['_lastFrom']=_0x2f1ca8[_0x1b2f('0x77')],this[_0x1b2f('0x66')]=_0x2f1ca8[_0x1b2f('0x2')];for(const _0x3a4fc9 in _0x2f1ca8[_0x1b2f('0x2e')]){const _0x1764fc=this[_0x1b2f('0xc8')](_0x2f1ca8[_0x1b2f('0x2e')][_0x3a4fc9][_0x1b2f('0x3d')]);_0x1764fc[_0x1b2f('0x59')]=_0x3a4fc9,this[_0x1b2f('0x69')][_0x1b2f('0xbd')](_0x3a4fc9,_0x1764fc);const _0x4d8f48=this['_makeIdsRoot'](_0x1764fc);this[_0x1b2f('0xc4')][_0x1b2f('0xbd')](_0x3a4fc9,_0x4d8f48);for(const [_0x24b3e9,_0x23464f]of _0x1764fc[_0x1b2f('0x3b')]){if(!_0x24b3e9[_0x1b2f('0xd0')]('revision:'))continue;const _0x392565=_0x24b3e9[_0x1b2f('0xc1')](':')[0x2];for(const _0x59c076 of _0x23464f['getWalker']({'singleCharacters':!0x0})){const _0x1a4ee0=this['_getVidAttributeName'](_0x59c076),_0x19cc57=_0x1b2f('0x5d')==_0x59c076[_0x1b2f('0x9b')]?_0x59c076[_0x1b2f('0xb0')][_0x1b2f('0x4b')][_0x1b2f('0x2d')](0x0,-0x1):_0x59c076[_0x1b2f('0xb0')][_0x1b2f('0x4b')],_0x232769=_0x4d8f48['getNodeByPath'](_0x19cc57)[_0x1b2f('0xb')](_0x1a4ee0);this[_0x1b2f('0x87')]['set'](_0x232769,{'userId':_0x392565});}}}this[_0x1b2f('0x7d')]=this[_0x1b2f('0xe6')];const _0x32ba00=[...Array(this[_0x1b2f('0xe6')])['keys']()]['slice'](0x1)[_0x1b2f('0x74')](_0x138d27=>!this['_touched'][_0x1b2f('0x96')](_0x138d27));let _0x1475ac=0x0;for(const _0x4fd138 in _0x2f1ca8[_0x1b2f('0x2e')]){const _0x4b4677=this[_0x1b2f('0xc8')](_0x2f1ca8[_0x1b2f('0x2e')][_0x4fd138][_0x1b2f('0xd9')]);_0x4b4677['rootName']=_0x4fd138,this[_0x1b2f('0x65')][_0x1b2f('0xbd')](_0x4fd138,_0x4b4677);const _0x1c36de=this['_makeIdsRoot'](_0x4b4677,Number[_0x1b2f('0xa7')]);this['_idsRoots'][_0x1b2f('0xbd')](_0x4fd138,_0x1c36de);for(const [_0x3e5590,_0x49ee99]of _0x4b4677['markers']){if(!_0x3e5590['startsWith']('revision:'))continue;const _0x571ec0=_0x3e5590[_0x1b2f('0xc1')](':')[0x2];for(const _0x32a6f6 of _0x49ee99[_0x1b2f('0x62')]({'singleCharacters':!0x0})){const _0xdb954d=this[_0x1b2f('0xc0')](_0x32a6f6),_0xf26a02=this['_revisionId']++,_0x592ee8=_0x1b2f('0x5d')==_0x32a6f6['type']?_0x32a6f6[_0x1b2f('0xb0')][_0x1b2f('0x4b')][_0x1b2f('0x2d')](0x0,-0x1):_0x32a6f6[_0x1b2f('0xb0')]['path'];_0x1c36de[_0x1b2f('0xb2')](_0x592ee8)[_0x1b2f('0x4a')](_0xdb954d,_0xf26a02),this[_0x1b2f('0x87')][_0x1b2f('0xbd')](_0xf26a02,{'userId':_0x571ec0});}}for(const _0x2f5d5c of this[_0x1b2f('0x32')]['model'][_0x1b2f('0xb1')](_0x4b4677)['getWalker']({'singleCharacters':!0x0})){const _0x3e02c9=this['_getVidAttributeName'](_0x2f5d5c),_0x19c6f4=_0x1b2f('0x5d')==_0x2f5d5c[_0x1b2f('0x9b')]?_0x2f5d5c[_0x1b2f('0xb0')]['path'][_0x1b2f('0x2d')](0x0,-0x1):_0x2f5d5c[_0x1b2f('0xb0')][_0x1b2f('0x4b')],_0x5b8a66=_0x1c36de['getNodeByPath'](_0x19c6f4);_0x5b8a66[_0x1b2f('0xb')](_0x3e02c9)>0x0||_0x5b8a66[_0x1b2f('0x4a')](_0x3e02c9,_0x32ba00[_0x1475ac++]);}const _0x2eb298=new _0x5ab7a7();_0x2eb298[_0x1b2f('0x59')]='$graveyard',this['_baseRoots']['set'](_0x1b2f('0x39'),_0x2eb298),this['_baseIdsRoots'][_0x1b2f('0xbd')](_0x1b2f('0x39'),this['_makeIdsRoot'](_0x2eb298,0x1));const _0x20cf74=new _0x5ab7a7();_0x20cf74[_0x1b2f('0x59')]='$graveyard',this[_0x1b2f('0x65')][_0x1b2f('0xbd')](_0x1b2f('0x39'),_0x20cf74),this[_0x1b2f('0x44')][_0x1b2f('0xbd')]('$graveyard',this['_makeIdsRoot'](_0x20cf74,0x1));for(const [_0x102de0,_0x3d4636]of _0x4b4677['markers'])_0x102de0[_0x1b2f('0xd0')]('revision:')||this['_markers'][_0x1b2f('0xbd')](_0x102de0,_0x3d4636);}const _0x485a4a=Array[_0x1b2f('0x5a')](this[_0x1b2f('0x65')])[_0x1b2f('0x26')](([_0x2a56ff,_0x2c2053])=>[_0x2a56ff,H(_0x2c2053)]);this[_0x1b2f('0x70')](this[_0x1b2f('0x66')],_0x485a4a,this[_0x1b2f('0x6c')]);}[_0x1b2f('0xc8')](_0x5312f0){const _0x53e1c3=JSON[_0x1b2f('0xa3')](_0x5312f0),_0x3b2d1a=this[_0x1b2f('0x32')]['editing']['view']['document'],_0x22e315=new _0x2e8905(_0x3b2d1a,_0x53e1c3[_0x1b2f('0x26')](_0x4a040c=>j(_0x4a040c,this['editor'])));return this[_0x1b2f('0x32')][_0x1b2f('0xe')][_0x1b2f('0xa9')](_0x22e315);}[_0x1b2f('0x21')](){const _0x1f2529=new Map();for(const _0x201d3e of this['_rootNames']){const _0x1864e4=new _0x5ab7a7();_0x1864e4['rootName']=_0x201d3e,_0x1f2529[_0x1b2f('0xbd')](_0x201d3e,_0x1864e4);}this[_0x1b2f('0x70')](Number['NEGATIVE_INFINITY'],_0x1f2529,[]);}[_0x1b2f('0x70')](_0x45fab9,_0x35f804,_0x2f1cdc){const _0x1c4d06=new Map(_0x35f804),_0x26a9d1=new Map();for(const [_0x30dd5c,_0x505aa9]of _0x2f1cdc)_0x26a9d1[_0x1b2f('0xbd')](_0x30dd5c,{'start':_0x505aa9[_0x1b2f('0x2b')][_0x1b2f('0x93')](),'end':_0x505aa9[_0x1b2f('0x47')][_0x1b2f('0x93')](),'rootName':_0x505aa9['root']['rootName']});this[_0x1b2f('0xc3')][_0x1b2f('0xbd')](_0x45fab9,{'roots':_0x1c4d06,'markers':_0x26a9d1});}['_removeMetaData'](_0xe67f31){this[_0x1b2f('0xc3')]['delete'](_0xe67f31);}[_0x1b2f('0x12')](){this[_0x1b2f('0x55')](),this['_lastFrom']=-0x1,this[_0x1b2f('0x66')]=-0x1,this[_0x1b2f('0xc3')]['clear'](),this['init'](this[_0x1b2f('0x6')]);}['_reset'](){this[_0x1b2f('0x87')][_0x1b2f('0x8f')](),this[_0x1b2f('0x72')][_0x1b2f('0x8f')](),this[_0x1b2f('0x65')]['clear'](),this[_0x1b2f('0x69')][_0x1b2f('0x8f')](),this[_0x1b2f('0x44')]['clear'](),this[_0x1b2f('0xc4')]['clear'](),this[_0x1b2f('0x6c')][_0x1b2f('0x8f')](),this[_0x1b2f('0xe6')]=0x1,this['_startingRevisionId']=this[_0x1b2f('0xe6')];}[_0x1b2f('0x36')](_0x2540e0,_0x5ae429=null){let _0x11487f=null;_0x2540e0['is'](_0x1b2f('0x28'))||(_0x11487f=new _0x5731e8(_0x2540e0[_0x1b2f('0x88')],{'vid_start':null===_0x5ae429?this[_0x1b2f('0xe6')]++:_0x5ae429++}));const _0x48b124=[];for(const _0x322ed7 of _0x2540e0[_0x1b2f('0x3a')]())if(_0x322ed7['is'](_0x1b2f('0xdb'))){_0x48b124[_0x1b2f('0xd2')](this['_makeIdsRoot'](_0x322ed7,_0x5ae429));const _0x330170=_0x48b124[_0x48b124[_0x1b2f('0x6d')]-0x1];null!==_0x5ae429&&(_0x5ae429=_0x330170['is']('element',_0x1b2f('0xdf'))?_0x330170[_0x1b2f('0xb')](_0x1b2f('0xa8'))+0x1:_0x330170[_0x1b2f('0xb')](_0x1b2f('0x35'))+0x1);}else for(let _0x3b548c=0x0;_0x3b548c<_0x322ed7[_0x1b2f('0xf2')];_0x3b548c++)_0x48b124['push'](new _0x5731e8(_0x1b2f('0xdf'),{'vid':null===_0x5ae429?this[_0x1b2f('0xe6')]++:_0x5ae429++}));if(_0x2540e0['is'](_0x1b2f('0x28'))){const _0x4b0cfd=new _0x5ab7a7(_0x48b124);return _0x4b0cfd[_0x1b2f('0x59')]=_0x2540e0[_0x1b2f('0x59')],_0x4b0cfd;}return _0x11487f[_0x1b2f('0x4a')](_0x1b2f('0x35'),null===_0x5ae429?this[_0x1b2f('0xe6')]++:_0x5ae429++),_0x11487f['_insertChild'](0x0,_0x48b124),_0x11487f;}[_0x1b2f('0x85')](_0x2ce7ce,_0x3839bd,_0x440067){this[_0x1b2f('0x55')]();const {roots:_0x29e070,markers:_0x21c1a8}=this[_0x1b2f('0xc3')][_0x1b2f('0x17')](_0x2ce7ce);this[_0x1b2f('0x69')]=new Map(_0x29e070);for(const [_0x781120,_0x58e332]of this[_0x1b2f('0x69')])if('$graveyard'!==_0x781120&&(this[_0x1b2f('0x65')][_0x1b2f('0xbd')](_0x781120,H(_0x58e332)),_0x440067)){const _0x46a075=this[_0x1b2f('0xe6')];this['_idsRoots'][_0x1b2f('0xbd')](_0x781120,this[_0x1b2f('0x36')](_0x58e332)),this[_0x1b2f('0xc4')][_0x1b2f('0xbd')](_0x781120,this[_0x1b2f('0x36')](_0x58e332,_0x46a075));}this[_0x1b2f('0x7d')]=this[_0x1b2f('0xe6')],this[_0x1b2f('0x65')][_0x1b2f('0xbd')](_0x1b2f('0x39'),H(this[_0x1b2f('0x69')][_0x1b2f('0x17')](_0x1b2f('0x39')))),_0x440067&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this[_0x1b2f('0x69')]['get']('$graveyard')));for(const [_0x66f43,_0x112e0d]of _0x21c1a8){const _0x3eb77f=this[_0x1b2f('0x69')][_0x1b2f('0x17')](_0x112e0d[_0x1b2f('0x59')]),_0x1defa6=this[_0x1b2f('0x65')][_0x1b2f('0x17')](_0x112e0d['rootName']),_0x181306=new _0x561f91(this['_fixPosition'](_0x112e0d[_0x1b2f('0x2b')],_0x3eb77f),this[_0x1b2f('0xf7')](_0x112e0d[_0x1b2f('0x47')],_0x3eb77f)),_0x5f1f42=this[_0x1b2f('0x45')](_0x181306,_0x1defa6);_0x3eb77f[_0x1b2f('0x3b')][_0x1b2f('0xbd')](_0x66f43,_0x181306),this[_0x1b2f('0x6c')][_0x1b2f('0xbd')](_0x66f43,_0x5f1f42);}this[_0x1b2f('0x4c')](_0x2ce7ce,_0x3839bd,_0x440067);}[_0x1b2f('0x4c')](_0x4ab86a,_0x49ab0d,_0x48c8b8){for(const _0x2d1310 of this[_0x1b2f('0x6')][_0x1b2f('0x27')](_0x4ab86a,_0x49ab0d))this[_0x1b2f('0x64')](_0x2d1310,_0x48c8b8);for(const _0x2c6855 of this[_0x1b2f('0x65')]['values']())_0x2c6855[_0x1b2f('0x3b')]['clear']();for(const [_0x24a027,_0x2974e9]of this[_0x1b2f('0x6c')]){this['_diffRoots'][_0x1b2f('0x17')](_0x2974e9['root'][_0x1b2f('0x59')])[_0x1b2f('0x3b')]['set'](_0x24a027,_0x2974e9[_0x1b2f('0x93')]());}this[_0x1b2f('0x70')](_0x49ab0d,Array[_0x1b2f('0x5a')](this[_0x1b2f('0x65')])[_0x1b2f('0x26')](([_0x398f00,_0x2f82cb])=>[_0x398f00,H(_0x2f82cb)]),this[_0x1b2f('0x6c')]);}[_0x1b2f('0x40')](_0x23e74f){const _0x755e01=Array[_0x1b2f('0x5a')](this[_0x1b2f('0xc3')][_0x1b2f('0x6e')]());_0x755e01[_0x1b2f('0xd4')]((_0x588669,_0xa6daf9)=>_0x588669-_0xa6daf9),_0x755e01[_0x1b2f('0x49')]();for(const _0x31d30b of _0x755e01)if(_0x31d30b<_0x23e74f)return _0x31d30b;return this[_0x1b2f('0x21')](),Number[_0x1b2f('0xa7')];}['_copyMarkers'](_0x46068e,_0x15443f){const _0xa8903b=Array[_0x1b2f('0x5a')](_0x15443f[_0x1b2f('0x3b')])[_0x1b2f('0x26')](([_0x281ad3,_0x2e5997])=>[_0x281ad3,this['_fixRange'](_0x2e5997,_0x46068e)]);_0x46068e[_0x1b2f('0x3b')]=new Map(_0xa8903b);}[_0x1b2f('0xcd')](_0x552ee1){for(const _0x41780b of this[_0x1b2f('0x6c')]['values']()){const _0x4b033c=_0x41780b[_0x1b2f('0xe3')](_0x552ee1),_0x408619=_0x561f91['_createFromRanges'](_0x4b033c);_0x41780b[_0x1b2f('0x2b')]=_0x408619[_0x1b2f('0x2b')],_0x41780b[_0x1b2f('0x47')]=_0x408619['end'];}}['_handleOperation'](_0x34b3fd,_0x2a5bf9){const _0x5637cc=this[_0x1b2f('0x37')](_0x34b3fd,this['_diffRoots']);if(_0x1b2f('0x14')!==_0x34b3fd[_0x1b2f('0x9b')]&&(_0x5637cc[_0x1b2f('0xe2')](),this[_0x1b2f('0xcd')](_0x5637cc)),_0x2a5bf9)switch(_0x5637cc[_0x1b2f('0x9b')]){case _0x1b2f('0x63'):this['_handleInsertOperation'](_0x34b3fd);break;case _0x1b2f('0xec'):case _0x1b2f('0x8c'):case _0x1b2f('0xc7'):this[_0x1b2f('0x9a')](_0x34b3fd);break;case _0x1b2f('0xe0'):this['_handleMergeOperation'](_0x34b3fd);break;case'split':this[_0x1b2f('0xe4')](_0x34b3fd);break;case _0x1b2f('0x14'):this[_0x1b2f('0xeb')](_0x34b3fd);}}[_0x1b2f('0x37')](_0x382dfa,_0x1d4680){const _0x34b127=_0x382dfa[_0x1b2f('0x93')]();return _0x34b127[_0x1b2f('0x7')]=_0x382dfa['_authorId'],this[_0x1b2f('0x50')](_0x34b127,_0x1d4680),_0x34b127;}[_0x1b2f('0x3c')](_0x19f361){return _0x19f361[_0x1b2f('0x26')](_0x151153=>{const _0x235e10=this[_0x1b2f('0xc0')](_0x151153);return Number(_0x151153[_0x1b2f('0x84')][_0x1b2f('0xb')](_0x235e10));});}['_generateTape'](_0x104142,_0x4d280d){if(_0x104142['is'](_0x1b2f('0xdb'),_0x1b2f('0xdf')))_0x4d280d[_0x1b2f('0xd2')]({'item':_0x104142,'type':_0x1b2f('0xd')});else{_0x104142['is'](_0x1b2f('0xdb'))&&_0x4d280d[_0x1b2f('0xd2')]({'item':_0x104142,'type':_0x1b2f('0xbe')});for(const _0x567171 of _0x104142['getChildren']())this[_0x1b2f('0x3e')](_0x567171,_0x4d280d);_0x104142['is'](_0x1b2f('0xdb'))&&_0x4d280d[_0x1b2f('0xd2')]({'item':_0x104142,'type':_0x1b2f('0x5d')});}return _0x4d280d;}['_getState'](){const _0x14b72f=this[_0x1b2f('0x32')][_0x1b2f('0x29')][_0x1b2f('0xd1')][_0x1b2f('0x8a')](),_0x2554fb=new Map(this[_0x1b2f('0x87')]),_0x1422f1=new Map(_0x2554fb),_0x361a5c=new Map(),_0x2974fe={'insertions':{},'deletions':{}},_0x77cc96={'insertions':{},'deletions':{}},_0x51b410=new Map();for(const _0x5cb043 of _0x14b72f){const _0x46023c=this[_0x1b2f('0x65')][_0x1b2f('0x17')](_0x5cb043),_0x26cdf4=this[_0x1b2f('0x69')][_0x1b2f('0x17')](_0x5cb043);_0x2974fe[_0x1b2f('0xd9')][_0x5cb043]=H(_0x46023c),_0x2974fe['deletions'][_0x5cb043]=H(_0x26cdf4),this[_0x1b2f('0x9d')](_0x2974fe[_0x1b2f('0x3d')][_0x5cb043],_0x26cdf4),this['_copyMarkers'](_0x2974fe[_0x1b2f('0xd9')][_0x5cb043],_0x46023c),_0x77cc96[_0x1b2f('0xd9')][_0x5cb043]=this[_0x1b2f('0x3e')](this[_0x1b2f('0x44')]['get'](_0x5cb043),[]),_0x77cc96['deletions'][_0x5cb043]=this[_0x1b2f('0x3e')](this[_0x1b2f('0xc4')][_0x1b2f('0x17')](_0x5cb043),[]);}for(const _0x55e2af of _0x14b72f){const _0x42aed9=_0x77cc96[_0x1b2f('0xd9')][_0x55e2af];for(const _0x3ad68c of _0x42aed9){const _0x3f54cc=this[_0x1b2f('0xc0')](_0x3ad68c),_0x1a8a64=_0x3ad68c['item']['getAttribute'](_0x3f54cc);_0x1422f1[_0x1b2f('0xbb')](_0x1a8a64),_0x1a8a64>=this['_startingRevisionId']&&_0x361a5c[_0x1b2f('0xbd')](_0x1a8a64,_0x2554fb[_0x1b2f('0x17')](_0x1a8a64));}}for(const _0x44467a of _0x14b72f){const _0x46f659=_0x77cc96[_0x1b2f('0xd9')][_0x44467a],_0x35fdf5=this[_0x1b2f('0x3c')](_0x77cc96[_0x1b2f('0x3d')][_0x44467a]);let _0x18e2ad=0x0;for(const _0x12e531 of _0x46f659){const _0x784ce4=this[_0x1b2f('0xc0')](_0x12e531),_0x2960ff=_0x12e531[_0x1b2f('0x84')]['getAttribute'](_0x784ce4);if(!_0x361a5c['has'](_0x2960ff)&&!_0x51b410[_0x1b2f('0x96')](_0x2960ff)){if(_0x1422f1[_0x1b2f('0x96')](_0x2960ff))_0x18e2ad++;else{if(_0x2960ff!=_0x35fdf5[_0x18e2ad]){const _0x150715=_0x2554fb[_0x1b2f('0x17')](_0x2960ff)||_0x2554fb[_0x1b2f('0x17')](_0x35fdf5[_0x18e2ad]);for(;_0x2960ff!=_0x35fdf5[_0x18e2ad];)_0x1422f1[_0x1b2f('0x96')](_0x35fdf5[_0x18e2ad])||(_0x51b410[_0x1b2f('0xbd')](_0x35fdf5[_0x18e2ad],_0x150715),_0x2554fb[_0x1b2f('0xbd')](_0x35fdf5[_0x18e2ad],_0x150715)),_0x18e2ad++;}_0x18e2ad++;}}}}for(const _0x3afb64 of _0x14b72f){const _0x2a32d8=_0x77cc96[_0x1b2f('0xd9')][_0x3afb64];for(const _0x1c93b5 of _0x2a32d8){const _0x66b7ea=this[_0x1b2f('0xc0')](_0x1c93b5),_0x41db39=_0x1c93b5[_0x1b2f('0x84')][_0x1b2f('0xb')](_0x66b7ea);if(_0x51b410['has'](_0x41db39)){const _0x4a5007=_0x51b410[_0x1b2f('0x17')](_0x41db39);_0x1422f1[_0x1b2f('0x96')](_0x41db39)||_0x1422f1[_0x1b2f('0xbd')](_0x41db39,{..._0x4a5007}),_0x361a5c['set'](_0x41db39,{..._0x4a5007});}}}for(const _0x191287 of _0x1422f1[_0x1b2f('0x6e')]())_0x191287>=this[_0x1b2f('0x7d')]&&_0x1422f1['delete'](_0x191287);const _0x2f1d32=new Map();for(const _0x48656c of _0x14b72f){let _0x32c203=_0x77cc96['insertions'][_0x48656c];for(const _0x4a23ab of _0x32c203)if(_0x4a23ab[_0x1b2f('0x84')]['is'](_0x1b2f('0xdb'),_0x1b2f('0x1d'))){const _0x244de6=this[_0x1b2f('0xc0')](_0x4a23ab),_0x31aa24=_0x4a23ab[_0x1b2f('0x84')]['getAttribute'](_0x244de6);if(_0x361a5c['has'](_0x31aa24)){const _0x5f47d9=_0x4a23ab['item'][_0x1b2f('0xb4')][_0x1b2f('0xb4')][_0x1b2f('0xb')](_0x1b2f('0xea')),_0x413612=_0x2f1d32['get'](_0x5f47d9)||new Set();_0x413612[_0x1b2f('0x83')](_0x361a5c['get'](_0x31aa24)[_0x1b2f('0xb5')]),_0x2f1d32[_0x1b2f('0xbd')](_0x5f47d9,_0x413612);}}_0x32c203=_0x77cc96[_0x1b2f('0x3d')][_0x48656c];for(const _0x581a18 of _0x32c203)if(_0x581a18[_0x1b2f('0x84')]['is']('element',_0x1b2f('0x1d'))){const _0x2a85b1=this[_0x1b2f('0xc0')](_0x581a18),_0x3c1074=_0x581a18['item']['getAttribute'](_0x2a85b1);if(_0x1422f1[_0x1b2f('0x96')](_0x3c1074)){const _0x2a94cb=_0x581a18[_0x1b2f('0x84')][_0x1b2f('0xb4')][_0x1b2f('0xb4')][_0x1b2f('0xb')]('vid_start'),_0x35efe6=_0x2f1d32[_0x1b2f('0x17')](_0x2a94cb)||new Set();_0x35efe6[_0x1b2f('0x83')](_0x1422f1[_0x1b2f('0x17')](_0x3c1074)[_0x1b2f('0xb5')]),_0x2f1d32[_0x1b2f('0xbd')](_0x2a94cb,_0x35efe6);}}for(const _0x58ae9a of _0x2f1d32[_0x1b2f('0x6e')]())(_0x361a5c['has'](_0x58ae9a)||_0x1422f1[_0x1b2f('0x96')](_0x58ae9a))&&_0x2f1d32[_0x1b2f('0xbb')](_0x58ae9a);}for(const _0x334c3d of _0x14b72f){const _0x2abb77=_0x77cc96[_0x1b2f('0xd9')][_0x334c3d];let _0x42b2c2=null,_0x118292=null;for(const _0xeb37e5 of _0x2abb77){const _0x240ca6=this[_0x1b2f('0xc0')](_0xeb37e5),_0x5d7fb5=_0xeb37e5[_0x1b2f('0x84')]['getAttribute'](_0x240ca6),_0x4bac70=_0x2f1d32[_0x1b2f('0x17')](_0x5d7fb5);_0x4bac70&&_0x1b2f('0xbe')==_0xeb37e5[_0x1b2f('0x9b')]&&(_0x42b2c2=Array[_0x1b2f('0x5a')](_0x4bac70)[0x0],_0x118292=_0xeb37e5[_0x1b2f('0x84')]['getAttribute'](_0x1b2f('0x35'))),_0x42b2c2&&(_0x1422f1[_0x1b2f('0xbd')](_0x5d7fb5,{'userId':_0x42b2c2}),_0x361a5c[_0x1b2f('0xbd')](_0x5d7fb5,{'userId':_0x42b2c2})),_0x5d7fb5==_0x118292&&(_0x42b2c2=null,_0x118292=null);}}const _0x8d797e={},_0x2d8aa5=new Set();for(const _0x5f059b of _0x14b72f){const _0x37a736=_0x2974fe['deletions'][_0x5f059b],_0x28f582=_0x2974fe[_0x1b2f('0xd9')][_0x5f059b];for(const {userId:_0x152114}of this[_0x1b2f('0x72')][_0x1b2f('0xf3')]())null!==_0x152114&&_0x2d8aa5[_0x1b2f('0x83')](_0x152114);this[_0x1b2f('0x20')](_0x28f582,_0x77cc96[_0x1b2f('0xd9')][_0x5f059b],_0x361a5c,_0x1b2f('0x33'),_0x2d8aa5),this[_0x1b2f('0x20')](_0x37a736,_0x77cc96[_0x1b2f('0x3d')][_0x5f059b],_0x1422f1,'deletion',_0x2d8aa5),_0x8d797e[_0x5f059b]={'insertions':this['_prepareViewToSave'](_0x28f582),'deletions':this[_0x1b2f('0xab')](_0x37a736)};}return{'diffData':_0x8d797e,'authorsIds':Array['from'](_0x2d8aa5)};}[_0x1b2f('0x8d')](_0x3392fc){for(const [,_0x364c8d]of _0x3392fc[_0x1b2f('0x3b')]){const _0x4e0b18=_0x364c8d['start'][_0x1b2f('0x46')]()[_0x1b2f('0x74')](_0x27ee05=>_0x1b2f('0x1d')==_0x27ee05[_0x1b2f('0x88')]);for(const _0x1f087e of _0x4e0b18)0x1==_0x1f087e[_0x1b2f('0x71')]&&_0x1f087e[_0x1b2f('0xc2')](0x0)['is']('element',_0x1b2f('0xdc'))&&_0x1f087e[_0x1b2f('0xc2')](0x0)[_0x1b2f('0x4a')](_0x1b2f('0x81'),!0x0);}}[_0x1b2f('0xab')](_0x3e17ed){this[_0x1b2f('0x8d')](_0x3e17ed);const _0x59f743=this[_0x1b2f('0x32')][_0x1b2f('0xe')][_0x1b2f('0x2c')](_0x3e17ed,{}),_0x35850f=Array['from'](_0x59f743[_0x1b2f('0x3a')]())[_0x1b2f('0x26')](_0x4ab8ba=>this[_0x1b2f('0x7e')](_0x4ab8ba));return JSON[_0x1b2f('0xed')](_0x35850f);}['_getViewJson'](_0x69a6bc){if(_0x69a6bc['is'](_0x1b2f('0xd')))return _0x69a6bc[_0x1b2f('0xe')];return{'type':Object['keys'](J)['find'](_0x415a59=>_0x69a6bc instanceof J[_0x415a59]),'name':_0x69a6bc[_0x1b2f('0x88')],'attributes':Array['from'](_0x69a6bc[_0x1b2f('0x1c')]()),'children':Array[_0x1b2f('0x5a')](_0x69a6bc[_0x1b2f('0x3a')]())[_0x1b2f('0x26')](_0x3199b5=>this[_0x1b2f('0x7e')](_0x3199b5))};}[_0x1b2f('0x20')](_0x2d1b4c,_0x5acdb1,_0x429ce9,_0x3aa6b5,_0x2fe03c){let _0xd63c2a=null,_0x591ceb=null,_0x1b7c2f=0x0;const _0x44afab=this['editor'][_0x1b2f('0x29')];for(let _0x51eef6=0x0;_0x51eef6<_0x5acdb1[_0x1b2f('0x6d')];_0x51eef6++){const _0x453438=this['_getVidAttributeName'](_0x5acdb1[_0x51eef6]),_0x138457=_0x5acdb1[_0x51eef6][_0x1b2f('0x84')]['getAttribute'](_0x453438),_0x255e3b=_0x429ce9[_0x1b2f('0x17')](_0x138457),_0x57b4d8=_0x51eef6==_0x5acdb1[_0x1b2f('0x6d')]-0x1;(!_0xd63c2a&&_0x255e3b&&(_0xd63c2a=_0x255e3b,_0x591ceb=_0x5acdb1[_0x51eef6]),_0xd63c2a&&(!_0x255e3b||_0x255e3b[_0x1b2f('0xb5')]!=_0xd63c2a[_0x1b2f('0xb5')]))&&(_0x1e2c26(_0x255e3b,q(_0x591ceb,_0x2d1b4c,_0x44afab),q(_0x5acdb1[_0x51eef6],_0x2d1b4c,_0x44afab)),_0xd63c2a=_0x255e3b||null,_0x591ceb=_0x255e3b?_0x5acdb1[_0x51eef6]:null),_0xd63c2a&&_0x57b4d8&&_0x1e2c26(_0x255e3b,q(_0x591ceb,_0x2d1b4c,_0x44afab),G(_0x5acdb1[_0x51eef6],_0x2d1b4c,_0x44afab));}function _0x1e2c26(_0x407305,_0x1b73d4,_0x5721f5){const _0x571389=_0xd63c2a[_0x1b2f('0xb5')],_0x140422='revision:'+_0x3aa6b5+':'+_0x571389+':'+_0x1b7c2f++,_0x113623=_0x44afab[_0x1b2f('0x43')](_0x1b73d4,_0x5721f5);_0x2d1b4c[_0x1b2f('0x3b')][_0x1b2f('0xbd')](_0x140422,_0x113623),null!==_0x571389&&_0x2fe03c[_0x1b2f('0x83')](_0x571389);}}[_0x1b2f('0xc0')](_0x4ecbab){switch(_0x4ecbab['type']){case _0x1b2f('0xbe'):return'vid_start';case _0x1b2f('0x5d'):return _0x1b2f('0x35');default:return _0x1b2f('0xa8');}}[_0x1b2f('0x50')](_0x3e8233,_0x5914b6){_0x3e8233['baseVersion']=null;for(const _0x28a854 in _0x3e8233){if(_0x3e8233[_0x28a854]instanceof _0x57323c){const _0xe6c7f8=_0x5914b6[_0x1b2f('0x17')](_0x3e8233[_0x28a854]['root'][_0x1b2f('0x59')]);_0x3e8233[_0x28a854]=this[_0x1b2f('0xf7')](_0x3e8233[_0x28a854],_0xe6c7f8);}if(_0x3e8233[_0x28a854]instanceof _0x561f91){const _0x24ba60=_0x5914b6[_0x1b2f('0x17')](_0x3e8233[_0x28a854]['root'][_0x1b2f('0x59')]);_0x3e8233[_0x28a854]=this['_fixRange'](_0x3e8233[_0x28a854],_0x24ba60);}}_0x3e8233['root']&&(_0x3e8233[_0x1b2f('0x4f')]=_0x5914b6[_0x1b2f('0x17')](_0x3e8233[_0x1b2f('0x4f')][_0x1b2f('0x59')]));}['_fixRange'](_0x16e989,_0x4d01fc){return this[_0x1b2f('0x32')][_0x1b2f('0x29')][_0x1b2f('0x43')](this[_0x1b2f('0xf7')](_0x16e989[_0x1b2f('0x2b')],_0x4d01fc),this[_0x1b2f('0xf7')](_0x16e989['end'],_0x4d01fc));}[_0x1b2f('0xf7')](_0x44d1f4,_0xe67dc3){return this[_0x1b2f('0x32')][_0x1b2f('0x29')][_0x1b2f('0xe5')](_0xe67dc3,_0x44d1f4[_0x1b2f('0x4b')],_0x44d1f4[_0x1b2f('0x3')]);}['_handleInsertOperation'](_0x1f169b){const _0x5b9ada=this[_0x1b2f('0x44')][_0x1b2f('0x17')](_0x1f169b[_0x1b2f('0xa6')][_0x1b2f('0x4f')][_0x1b2f('0x59')]),_0x1086cd=this[_0x1b2f('0xf7')](_0x1f169b[_0x1b2f('0xa6')],_0x5b9ada),_0x2e7827=null===_0x1f169b[_0x1b2f('0x7')]?null:_0x1f169b[_0x1b2f('0x7')]||this[_0x1b2f('0x32')][_0x1b2f('0x1a')]['get']('Users')['me']['id'],_0x262477=_0x1086cd[_0x1b2f('0xb4')],_0x1bd13b=this[_0x1b2f('0xe6')],_0x576062=[];for(const _0x562daa of _0x1f169b[_0x1b2f('0xba')])if(_0x562daa['is']('element'))_0x576062['push'](this[_0x1b2f('0x36')](_0x562daa));else for(let _0x2ffe67=0x0;_0x2ffe67<_0x562daa['offsetSize'];_0x2ffe67++)_0x576062[_0x1b2f('0xd2')](new _0x5731e8('$text',{'vid':this[_0x1b2f('0xe6')]++}));const _0x451b6a=this['_revisionId'];for(let _0x2cb5ec=_0x1bd13b;_0x2cb5ec<_0x451b6a;_0x2cb5ec++)this[_0x1b2f('0x87')][_0x1b2f('0xbd')](_0x2cb5ec,{'userId':_0x2e7827});_0x262477['_insertChild'](_0x1086cd[_0x1b2f('0xf5')],_0x576062);}[_0x1b2f('0x9a')](_0x4db8f2){(_0x4db8f2=this[_0x1b2f('0x37')](_0x4db8f2,this[_0x1b2f('0x44')]))[_0x1b2f('0xe2')]();const _0x275fbe=null===_0x4db8f2[_0x1b2f('0x7')]?null:_0x4db8f2[_0x1b2f('0x7')]||this[_0x1b2f('0x32')][_0x1b2f('0x1a')][_0x1b2f('0x17')]('Users')['me']['id'],_0x23a4ea=_0x4db8f2[_0x1b2f('0xd5')](),_0x197270=_0x23a4ea['parent'],_0x962f66=_0x23a4ea[_0x1b2f('0xf5')];!function _0x58b34f(_0x46355e,_0x1f53b7,_0x15890b,_0x4b9ef3){for(let _0x2cdd36=_0x15890b;_0x2cdd36<_0x4b9ef3;_0x2cdd36++){const _0x1323a5=_0x1f53b7['getChild'](_0x2cdd36);_0x1323a5['is']('element',_0x1b2f('0xdf'))?_0x46355e['set'](_0x1323a5[_0x1b2f('0xb')](_0x1b2f('0xa8')),{'userId':_0x275fbe}):(_0x46355e[_0x1b2f('0xbd')](_0x1323a5['getAttribute'](_0x1b2f('0xea')),{'userId':_0x275fbe}),_0x58b34f(_0x46355e,_0x1323a5,0x0,_0x1323a5[_0x1b2f('0x71')]),_0x46355e['set'](_0x1323a5[_0x1b2f('0xb')](_0x1b2f('0x35')),{'userId':_0x275fbe}));}}(this[_0x1b2f('0x87')],_0x197270,_0x962f66,_0x962f66+_0x4db8f2['howMany']);}['_handleMergeOperation'](_0x2de3a9){const _0x2fe136=null===(_0x2de3a9=this[_0x1b2f('0x37')](_0x2de3a9,this[_0x1b2f('0x44')]))[_0x1b2f('0x7')]?null:_0x2de3a9[_0x1b2f('0x7')]||this[_0x1b2f('0x32')]['plugins']['get'](_0x1b2f('0x6b'))['me']['id'],_0x29a6be=_0x2de3a9[_0x1b2f('0xbf')][_0x1b2f('0xb4')],_0x50334f=_0x2de3a9[_0x1b2f('0x56')]['parent'],_0x4bba29=_0x29a6be[_0x1b2f('0xb')](_0x1b2f('0x35')),_0x210197=_0x50334f[_0x1b2f('0xb')](_0x1b2f('0xea'));_0x29a6be[_0x1b2f('0x4a')](_0x1b2f('0x35'),_0x50334f[_0x1b2f('0xb')](_0x1b2f('0x35'))),_0x50334f['_setAttribute'](_0x1b2f('0x35'),_0x4bba29),this[_0x1b2f('0x87')][_0x1b2f('0xbd')](_0x210197,{'userId':_0x2fe136}),this[_0x1b2f('0x87')]['set'](_0x4bba29,{'userId':_0x2fe136}),_0x2de3a9[_0x1b2f('0xe2')]();}[_0x1b2f('0xe4')](_0x4cacbc){const _0x52e5a8=null===(_0x4cacbc=this[_0x1b2f('0x37')](_0x4cacbc,this[_0x1b2f('0x44')]))[_0x1b2f('0x7')]?null:_0x4cacbc[_0x1b2f('0x7')]||this[_0x1b2f('0x32')][_0x1b2f('0x1a')][_0x1b2f('0x17')]('Users')['me']['id'],_0x59961b=_0x4cacbc[_0x1b2f('0xa1')],_0x27732d=_0x4cacbc[_0x1b2f('0x8')]['parent'];_0x4cacbc[_0x1b2f('0xe2')]();const _0x135a66=_0x27732d[_0x1b2f('0xb')](_0x1b2f('0x35')),_0x40ecae=_0x4cacbc[_0x1b2f('0x4d')][_0x1b2f('0x30')];if(_0x59961b){const _0x3cb45b=_0x40ecae[_0x1b2f('0xb')](_0x1b2f('0x35')),_0x29cca5=_0x27732d[_0x1b2f('0xb')](_0x1b2f('0x35'));_0x27732d['_setAttribute'](_0x1b2f('0x35'),_0x3cb45b),_0x40ecae['_setAttribute'](_0x1b2f('0x35'),_0x29cca5),this[_0x1b2f('0x87')]['set'](_0x27732d[_0x1b2f('0xb')](_0x1b2f('0x35')),{'userId':_0x52e5a8}),this[_0x1b2f('0x87')]['set'](_0x40ecae[_0x1b2f('0xb')]('vid_start'),{'userId':_0x52e5a8});}else{const _0x5f0ea1=this[_0x1b2f('0xe6')]++,_0x55a90b=this[_0x1b2f('0xe6')]++;_0x27732d[_0x1b2f('0x4a')](_0x1b2f('0x35'),_0x5f0ea1),_0x40ecae[_0x1b2f('0x4a')](_0x1b2f('0xea'),_0x55a90b),_0x40ecae[_0x1b2f('0x4a')](_0x1b2f('0x35'),_0x135a66),this[_0x1b2f('0x87')][_0x1b2f('0xbd')](_0x5f0ea1,{'userId':_0x52e5a8}),this[_0x1b2f('0x87')][_0x1b2f('0xbd')](_0x55a90b,{'userId':_0x52e5a8});}}[_0x1b2f('0xeb')](_0x8a693f){if(!_0x8a693f['affectsData'])return;const _0x53b9c0=(_0x8a693f=this[_0x1b2f('0x37')](_0x8a693f,this[_0x1b2f('0x65')]))[_0x1b2f('0x8e')]?_0x8a693f[_0x1b2f('0x8e')][_0x1b2f('0x4f')]:null,_0x23ae5b=_0x8a693f[_0x1b2f('0x16')]?_0x8a693f[_0x1b2f('0x16')][_0x1b2f('0x4f')]:null;_0x53b9c0&&this[_0x1b2f('0x6c')][_0x1b2f('0xbb')](_0x8a693f[_0x1b2f('0x88')]),_0x23ae5b&&this[_0x1b2f('0x6c')]['set'](_0x8a693f[_0x1b2f('0x88')],_0x8a693f[_0x1b2f('0x16')]['clone']());const _0x3e3c80=null===_0x8a693f[_0x1b2f('0x7')]?null:_0x8a693f[_0x1b2f('0x7')]||this[_0x1b2f('0x32')][_0x1b2f('0x1a')][_0x1b2f('0x17')](_0x1b2f('0x6b'))['me']['id'],_0x15e60c=_0x8a693f[_0x1b2f('0x88')];if(!this['_touchedMarkers']['has'](_0x15e60c))return void this['_touchedMarkers'][_0x1b2f('0xbd')](_0x15e60c,{'range':_0x8a693f[_0x1b2f('0x8e')],'userId':_0x3e3c80});const _0x22898d=this[_0x1b2f('0x72')]['get'](_0x15e60c),_0x7768d5=_0x22898d[_0x1b2f('0xaf')],_0x5f3693=_0x8a693f[_0x1b2f('0x16')];null==_0x7768d5&&null==_0x5f3693||_0x7768d5&&_0x5f3693&&_0x7768d5['isEqual'](_0x5f3693)?this['_touchedMarkers'][_0x1b2f('0xbb')](_0x8a693f[_0x1b2f('0x88')]):_0x22898d[_0x1b2f('0xb5')]=_0x3e3c80;}}function H(_0xfb9b5d){const _0x34e932=new _0x5ab7a7();_0x34e932[_0x1b2f('0x59')]=_0xfb9b5d[_0x1b2f('0x59')];for(const _0x5080a8 of _0xfb9b5d[_0x1b2f('0x3a')]()){const _0x1be289=_0x5080a8[_0x1b2f('0x7a')](!0x0);_0x34e932[_0x1b2f('0x7c')](_0x1be289);}return _0x34e932;}function q(_0x275eea,_0xfd03c1,_0x5e2558){const _0x4f58d5=_0x1b2f('0x5d')==_0x275eea[_0x1b2f('0x9b')]?_0x5e2558[_0x1b2f('0x91')](_0x275eea[_0x1b2f('0x84')],'end'):_0x5e2558[_0x1b2f('0x53')](_0x275eea[_0x1b2f('0x84')]);return _0x4f58d5[_0x1b2f('0x4f')]=_0xfd03c1,_0x4f58d5;}function G(_0x5dff92,_0x1f1b2d,_0x311e92){const _0x52f232='elementStart'==_0x5dff92[_0x1b2f('0x9b')]?_0x311e92[_0x1b2f('0x91')](_0x5dff92[_0x1b2f('0x84')],0x0):_0x311e92['createPositionAfter'](_0x5dff92[_0x1b2f('0x84')]);return _0x52f232['root']=_0x1f1b2d,_0x52f232;}