@ckeditor/ckeditor5-revision-history 37.0.0-rc.0 → 37.0.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 (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +5 -5
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x45a4=['text','root','_diffRoots','_reset','previousPosition','documentFragment','offset','_removeMetaData','baseVersion','_setAttribute','_handleSplitOperation','_savedMetaData','insertionPosition','_baseIdsRoots','_getState','history','_handleOperation','_execute','insert','getUser','requires','hasContent','for','bind','processor','_lastTo','getRevision','isReady','_removePendingAction','filter','markerToData','vid_end','end','_baseRoots','_continueCurrentRevision','marked','reInit','define','deletions','vid','item','ready','type','getNodeByPath','delete','_loadRevisionData','dataDowncast','insertion','getWalker','$graveyard','slice','createPositionAt','getRevisionDocumentData','stickiness','remove','update','childCount','elementEnd','source','pluginName','has','getRootNames','clear','path','view','createPositionBefore','getRevisions','length','fromVersion','_fixRange','_addPendingAction','config','stringify','_getFromVersion','_source','_touchedMarkers','name','toView','dataToMarker','version','set','nodeAfter','keepParagraph','_authorId','startsWith','Empty\x20document','_prepareViewToSave','_handleMoveOperation','_handleMarkerOperation','move','_loadedStateData','toModel','get','_createInitialRevision','getAttribute','nodes','collaboration.channelId','PENDING_ACTION_REVISION_HISTORY','creator','plugins','split','addRevision','size','_getViewJson','editor','merge','_saveMetaData','afterInit','_initialRevisionId','getOperation','getAttributes','_getVidAttributeName','from','getCurrentRevisionId','getRoot','paragraph','_bufferedUpdates','toVersion','locale','tableCell','_idsRoots','diffData','_isPendingUpdate','getLatestVersion','_cloneOperation','_createCurrentRevision','oldRange','Users','_startingVersion','elementStart','_setConversion','affectsData','RevisionsRepository','upcast','_replaceEditorDataWithRevisionData','createRange','data','getData','_getBaseVids','sendBufferedUpdates','getTime','targetPosition','setRevisionData','_appendChild','editing','attributes','insertions','clone','_startingRevisionId','offsetSize','initial','getRange','createRangeIn','RealTimeCollaborationClient','then','start','_touched','vid_start','_removeRevisionMarkers','_copyMarkers','_calculateMetaData','buildRevisionData','parent','_transformMarkers','_findInsertionIndex','getChildren','_fixOperation','revision','document','getAncestors','keys','init','useFillerType','position','RevisionTracker','_fixPosition','_applyOperations','_loadState','$text','push','_handleInsertOperation','_processRootBeforeSave','getOperations','_revisionDataBuilder','markers','createPositionAfter','_rootNames','_markers','authorsIds','_insertChild','userId','authors','find','_markChanges','string','addRevisionData','_operations','reverse','initialData','createPositionFromPath','_makeModelFromViewString','sort','_lastFrom','_handleMergeOperation','_isInit','revision:','map','adapter','element','add','_generateTape','trim','loadState','getTransformedByOperation','max','_update','graveyardPosition','newRange','_bufferUpdate','children','marker','rootName','revision-end','values','PendingActions','repository','_makeIdsRoot','getChild','reinsert','currentRevision','creatorId','setSource','_pendingAction','_makeRevision','_revisionId','conversion','model','createdAt','_createFromRanges'];(function(_0xf90af3,_0x45a497){const _0xe08c20=function(_0x26780d){while(--_0x26780d){_0xf90af3['push'](_0xf90af3['shift']());}};_0xe08c20(++_0x45a497);}(_0x45a4,0xa5));const _0xe08c=function(_0xf90af3,_0x45a497){_0xf90af3=_0xf90af3-0x0;let _0xe08c20=_0x45a4[_0xf90af3];return _0xe08c20;};import{Users as _0x4623a4}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x2fd8db,PendingActions as _0x2532ec}from'ckeditor5/src/core';import{logWarning as _0x6ec304,uid as _0x37c5ee}from'ckeditor5/src/utils';import{Position as _0x3a19a0,Range as _0x18b630,Element as _0x45e8ea,DocumentFragment as _0x588493,ViewText as _0x9a4db5,ViewElement as _0xc72f6f,ViewContainerElement as _0x43cfc1,ViewAttributeElement as _0x2c176b,ViewEmptyElement as _0x46fdea,ViewRawElement as _0x4ffca5,ViewUIElement as _0x328a24,ViewDocumentFragment as _0x409a7f}from'ckeditor5/src/engine';import _0x114a5e from'./revisionsrepository';import{getTranslation as _0x2bf8a0}from'./utils/common-translations';const V={'c':_0x43cfc1,'a':_0x2c176b,'e':_0x46fdea,'r':_0x4ffca5,'u':_0x328a24};export default class l extends _0x2fd8db{static get[_0xe08c('0x85')](){return _0xe08c('0x9');}static get[_0xe08c('0x5e')](){return[_0x4623a4,_0x114a5e,_0x2532ec];}constructor(_0x40dfa7){super(_0x40dfa7),this[_0xe08c('0x2a')]=null,this[_0xe08c('0x40')]=null,this[_0xe08c('0x12')]=new T(this['editor']),this[_0xe08c('0xb6')]=this[_0xe08c('0xb2')][_0xe08c('0x91')]['get'](_0xe08c('0xaa'))||_0xe08c('0xe0'),this[_0xe08c('0xbe')]=new Map(),this['_loadedStateData']=null;const _0x4840eb=_0x37c5ee();this[_0xe08c('0x94')]={'history':this[_0xe08c('0xb2')][_0xe08c('0x47')]['document'][_0xe08c('0x59')],'getLatestVersion':()=>Promise['resolve'](this[_0xe08c('0xb2')][_0xe08c('0x47')][_0xe08c('0x3')][_0xe08c('0x99')]),'getCurrentRevisionId':()=>_0x4840eb},this[_0xe08c('0x9a')]('isReady',!0x1),this['set']('isEnabled',!0x0),this[_0xe08c('0x9a')]('_isPendingUpdate',!0x1),this[_0xe08c('0xb2')]['config'][_0xe08c('0x6f')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0xe08c('0xb2')][_0xe08c('0x46')][_0xe08c('0x60')](_0xe08c('0xcf'))[_0xe08c('0x98')]({'view':'revision'});}[_0xe08c('0x6')](){this['repository']=this[_0xe08c('0xb2')][_0xe08c('0xad')][_0xe08c('0xa6')](_0xe08c('0xce')),this[_0xe08c('0xcc')](),this['editor']['data']['on'](_0xe08c('0x73'),()=>{const _0x4857fd=this[_0xe08c('0x3c')][_0xe08c('0x64')](0x0),_0x85f8d1=_0x4857fd&&null===_0x4857fd[_0xe08c('0xac')]?_0x4857fd:null;if(this[_0xe08c('0x6c')]=!!_0x85f8d1&&this[_0xe08c('0xb2')]['config'][_0xe08c('0xa6')]('revisionHistory.resumeUnsavedRevision'),this['editor'][_0xe08c('0xad')]['has'](_0xe08c('0xe3'))){const _0x1a9145=this['_source'][_0xe08c('0xbb')](),_0x1f6452=this[_0xe08c('0x3c')][_0xe08c('0x64')](_0x1a9145);if(_0x1f6452)this['_startingVersion']=_0x1f6452[_0xe08c('0x8e')],this[_0xe08c('0x6c')]=!0x1;else{const _0x1c91a7=this[_0xe08c('0x94')][_0xe08c('0x59')][_0xe08c('0x1f')][_0xe08c('0x1b')](_0x1c55b6=>!_0x1c55b6[_0xe08c('0x27')]),_0x12125c=_0x1c91a7?_0x1c91a7[_0xe08c('0x52')]:this[_0xe08c('0x94')][_0xe08c('0x59')][_0xe08c('0x99')];_0x4857fd?(_0x4857fd['toVersion']<_0x12125c&&_0x4857fd['_update']({'toVersion':_0x12125c}),this[_0xe08c('0x6c')]?(this[_0xe08c('0x94')][_0xe08c('0xbb')]=()=>_0x85f8d1['id'],this[_0xe08c('0xca')]=_0x85f8d1[_0xe08c('0x8e')]):(this[_0xe08c('0xca')]=_0x4857fd['toVersion'],this[_0xe08c('0x6c')]=!0x1)):(this[_0xe08c('0xca')]=_0x12125c,this[_0xe08c('0x6c')]=!0x1);}}else _0x85f8d1&&(this['editor'][_0xe08c('0x47')][_0xe08c('0x3')][_0xe08c('0x59')][_0xe08c('0x99')]=Math[_0xe08c('0x31')](_0x85f8d1[_0xe08c('0xbf')],this['editor'][_0xe08c('0x47')][_0xe08c('0x3')][_0xe08c('0x59')]['version']),_0x85f8d1[_0xe08c('0x8e')]===_0x85f8d1[_0xe08c('0xbf')]?(0x0!==_0x85f8d1[_0xe08c('0x8e')]&&(this[_0xe08c('0x94')]['getCurrentRevisionId']=()=>_0x85f8d1['id']),this[_0xe08c('0x6c')]=!0x1):this[_0xe08c('0x6c')]&&(this['_source'][_0xe08c('0xbb')]=()=>_0x85f8d1['id'],this[_0xe08c('0xca')]=_0x85f8d1[_0xe08c('0x8e')])),this['_continueCurrentRevision']||(this[_0xe08c('0xca')]=this[_0xe08c('0xb2')][_0xe08c('0x47')][_0xe08c('0x3')][_0xe08c('0x99')]);this[_0xe08c('0x12')][_0xe08c('0x6')](this[_0xe08c('0x94')][_0xe08c('0x59')]),this[_0xe08c('0xa7')](this[_0xe08c('0xca')]),this[_0xe08c('0xc7')](this[_0xe08c('0xca')]),this[_0xe08c('0x2a')]&&this['sendBufferedUpdates']();}),this[_0xe08c('0x61')](_0xe08c('0x65'))['to'](this,_0xe08c('0xc4'),_0x4eaebe=>!_0x4eaebe);}async[_0xe08c('0xb5')](){if(this[_0xe08c('0x3c')][_0xe08c('0x8d')]>0x0){const _0x92bdbf=this[_0xe08c('0x3c')][_0xe08c('0x64')](0x0),_0x2e2164=await this[_0xe08c('0x7e')](_0x92bdbf);this[_0xe08c('0xd0')](_0x2e2164);}}[_0xe08c('0x42')](_0x3e6ae4){this['_source']=_0x3e6ae4;}async[_0xe08c('0x81')](){const _0xa9ab01=await this[_0xe08c('0x94')]['getLatestVersion']();if(_0xa9ab01>this[_0xe08c('0x40')][_0xe08c('0xbf')]){await this[_0xe08c('0xc')]();const _0x464929=this[_0xe08c('0xeb')]({'revision':this[_0xe08c('0x40')],'to':_0xa9ab01});_0x464929['authors']=_0x464929['authorsIds'][_0xe08c('0x29')](_0x5b9161=>this[_0xe08c('0xb2')]['plugins'][_0xe08c('0xa6')](_0xe08c('0xc9'))[_0xe08c('0x5d')](_0x5b9161)),this['currentRevision']['_update'](_0x464929);}}async[_0xe08c('0xc')](){this['_continueCurrentRevision']&&!this[_0xe08c('0xa4')]&&(await this[_0xe08c('0x77')](this[_0xe08c('0x40')]),this[_0xe08c('0x12')]['loadState'](this['currentRevision']),this[_0xe08c('0xa4')]={'fromVersion':this[_0xe08c('0x40')][_0xe08c('0x8e')],'authors':this[_0xe08c('0x40')]['authors']['slice']()});}async['saveRevision'](_0x26414b={},_0x44cdfd=null){const _0x3d1598=[];await this[_0xe08c('0xc')](),this[_0xe08c('0x6c')]=!0x1,_0x44cdfd>this[_0xe08c('0x40')][_0xe08c('0xbf')]&&(_0x44cdfd=null),null===_0x44cdfd&&(_0x44cdfd=await this[_0xe08c('0x94')][_0xe08c('0xc5')]());const _0xc622e3=this['_getFromVersion'](_0x44cdfd),_0x2b0680=this['buildRevisionData']({'from':_0xc622e3,'to':_0x44cdfd});if(this[_0xe08c('0x40')][_0xe08c('0xbf')]<_0x44cdfd){const _0x144b6a=this[_0xe08c('0xeb')]({'revision':this['currentRevision'],'from':_0x44cdfd,'to':_0x44cdfd});_0x144b6a['authors']=[],_0x144b6a[_0xe08c('0x17')]=[],_0x144b6a['id']=this[_0xe08c('0x40')]['id'],this[_0xe08c('0x40')][_0xe08c('0x32')](_0x144b6a,!0x0),delete _0x144b6a[_0xe08c('0x1a')],_0x3d1598[_0xe08c('0xe')](_0x144b6a);}_0x26414b['creatorId']=this[_0xe08c('0xb2')][_0xe08c('0xad')]['get']('Users')['me']['id'],_0x26414b[_0xe08c('0x96')]=_0x26414b[_0xe08c('0x96')]||null,_0x26414b['id']=_0x26414b['id']||_0x37c5ee(),_0x26414b={..._0x26414b,..._0x2b0680};const _0x4d76cc=this[_0xe08c('0x1e')](_0x26414b);_0x3d1598[_0xe08c('0xe')](_0x26414b);const _0x2c2286=this['repository']['getIndex'](_0x4d76cc);if(0x0!==_0x2c2286){const _0x12aa58=this[_0xe08c('0x3c')][_0xe08c('0x64')](_0x2c2286-0x1);if(_0x12aa58[_0xe08c('0x8e')]!==_0x44cdfd){const _0x3cc61b=this[_0xe08c('0x12')][_0xe08c('0xd3')](_0x44cdfd,_0x12aa58[_0xe08c('0xbf')]),_0x2e92c5={'id':_0x12aa58['id'],'diffData':_0x3cc61b['diffData'],'authorsIds':_0x3cc61b[_0xe08c('0x17')],'authors':_0x3cc61b[_0xe08c('0x17')][_0xe08c('0x29')](_0x5d02eb=>this['editor'][_0xe08c('0xad')][_0xe08c('0xa6')](_0xe08c('0xc9'))[_0xe08c('0x5d')](_0x5d02eb)),'fromVersion':_0x44cdfd};_0x12aa58===this[_0xe08c('0x40')]&&(_0x2e92c5[_0xe08c('0x48')]=new Date(_0x26414b['createdAt'][_0xe08c('0xd6')]()+0xa)),_0x12aa58[_0xe08c('0x32')](_0x2e92c5,!0x0),delete _0x2e92c5['authors'],_0x3d1598[_0xe08c('0xe')](_0x2e92c5);}}if(this[_0xe08c('0x2a')]){for(const _0x126cb0 of _0x3d1598)this['_bufferUpdate'](_0x126cb0['id'],_0x126cb0,!0x0);this[_0xe08c('0xd5')]();}return _0x4d76cc;}[_0xe08c('0x1e')](_0x5eea17){const _0x46a821=this[_0xe08c('0x3c')]['createRevision'](_0x5eea17);return this[_0xe08c('0x2a')]&&_0x46a821['on'](_0xe08c('0x32'),(_0x10351f,_0x3fef8d,_0x3bfe14)=>{_0x3bfe14||(this[_0xe08c('0x35')](_0x3fef8d['id'],_0x3fef8d,!0x0),this[_0xe08c('0xd5')]());}),this[_0xe08c('0x3c')][_0xe08c('0xaf')](_0x46a821,this[_0xe08c('0xee')](_0x46a821)),_0x46a821;}async[_0xe08c('0x7e')](_0x487bbe){await this[_0xe08c('0x77')](_0x487bbe);const _0x3383a7={};for(const _0x4fda3f in _0x487bbe['diffData']){const _0x28dc16=this[_0xe08c('0xe8')](JSON['parse'](_0x487bbe[_0xe08c('0xc3')][_0x4fda3f]['insertions'])),_0x2e3adc=this['editor'][_0xe08c('0xda')][_0xe08c('0x8a')][_0xe08c('0x3')],_0x3037c5=new _0x409a7f(_0x2e3adc,_0x28dc16[_0xe08c('0x29')](_0x430662=>F(_0x430662,this[_0xe08c('0xb2')])));this[_0xe08c('0xb2')][_0xe08c('0xd2')]['processor'][_0xe08c('0x7')](_0xe08c('0x6d')),_0x3383a7[_0x4fda3f]=this[_0xe08c('0xb2')][_0xe08c('0xd2')][_0xe08c('0x62')]['toData'](_0x3037c5),this[_0xe08c('0xb2')]['data'][_0xe08c('0x62')]['useFillerType']('default');}return _0x3383a7;}[_0xe08c('0xd5')](){if(0x0===this['_bufferedUpdates']['size'])return;if(this[_0xe08c('0xc4')])return;let _0x1ee2c3=Array[_0xe08c('0xba')](this['_bufferedUpdates']['values']());this[_0xe08c('0xbe')][_0xe08c('0x88')]();for(let _0x3e8bc5=0x0;_0x3e8bc5<_0x1ee2c3[_0xe08c('0x8d')];_0x3e8bc5++){const _0x55c4f9=_0x1ee2c3[_0x3e8bc5];let _0x254c5c=!0x1;for(const _0xffe922 of Object[_0xe08c('0x5')](_0x55c4f9))void 0x0===_0x55c4f9[_0xffe922]?delete _0x55c4f9[_0xffe922]:'id'!==_0xffe922&&(_0x254c5c=!0x0);_0x254c5c||(_0x1ee2c3[_0x3e8bc5]=null);}if(_0x1ee2c3=_0x1ee2c3[_0xe08c('0x67')](_0x3fa2db=>null!==_0x3fa2db),!_0x1ee2c3[_0xe08c('0x8d')])return;for(let _0x5bcc3f=0x0;_0x5bcc3f<_0x1ee2c3[_0xe08c('0x8d')];_0x5bcc3f++){const _0x47539c=_0x1ee2c3[_0x5bcc3f];void 0x0!==_0x47539c[_0xe08c('0x8e')]&&void 0x0===_0x47539c[_0xe08c('0xbf')]&&(_0x47539c['toVersion']=this[_0xe08c('0x3c')][_0xe08c('0x64')](_0x47539c['id'])[_0xe08c('0xbf')]),void 0x0!==_0x47539c[_0xe08c('0xbf')]&&void 0x0===_0x47539c['fromVersion']&&(_0x47539c[_0xe08c('0x8e')]=this[_0xe08c('0x3c')][_0xe08c('0x64')](_0x47539c['id'])['fromVersion']);}const _0x27a76d=this[_0xe08c('0xb2')][_0xe08c('0x91')][_0xe08c('0xa6')](_0xe08c('0xaa'));this[_0xe08c('0xc4')]=!0x0,this[_0xe08c('0x90')](),this[_0xe08c('0x2a')]['updateRevisions'](_0x1ee2c3,_0x27a76d)['finally'](()=>{this[_0xe08c('0xc4')]=!0x1;})[_0xe08c('0xe4')](_0x2c9f88=>{if(_0x2c9f88)for(const _0x59d58c of _0x2c9f88)this[_0xe08c('0xd8')]({'id':_0x59d58c['id'],'createdAt':_0x59d58c[_0xe08c('0x48')]});this[_0xe08c('0x66')](),this[_0xe08c('0xd5')]();});}[_0xe08c('0xd0')](_0x3c13a3){let _0x56cb88=this['editor'][_0xe08c('0x91')][_0xe08c('0xa6')](_0xe08c('0x21'));if(void 0x0===_0x56cb88){_0x56cb88={};for(const _0x278232 of this['editor']['model'][_0xe08c('0x3')][_0xe08c('0x87')]())_0x56cb88[_0x278232]='';}_0xe08c('0x1d')==typeof _0x56cb88&&(_0x56cb88={'main':_0x56cb88});let _0x2f6fad=!0x1;for(const _0x4ff293 of Object['keys'](_0x56cb88))_0x3c13a3[_0x4ff293]&&(_0x56cb88[_0x4ff293]!==_0x3c13a3[_0x4ff293]&&''!==_0x56cb88[_0x4ff293][_0xe08c('0x2e')]()&&(_0x2f6fad=!0x0),_0x56cb88[_0x4ff293]=_0x3c13a3[_0x4ff293]);_0x2f6fad&&_0x6ec304('editor-initial-data-replaced-with-revision-data'),this['editor'][_0xe08c('0x91')][_0xe08c('0x9a')]('initialData',_0x56cb88);}[_0xe08c('0x90')](){if(!this['_pendingAction']){const _0x5c2fed=this[_0xe08c('0xb2')][_0xe08c('0xad')]['get'](_0xe08c('0x3b'));this[_0xe08c('0x43')]=_0x5c2fed[_0xe08c('0x2c')](_0x2bf8a0(this['editor']['locale'],_0xe08c('0xab')));}}[_0xe08c('0x66')](){this[_0xe08c('0x43')]&&(this[_0xe08c('0xb2')][_0xe08c('0xad')][_0xe08c('0xa6')](_0xe08c('0x3b'))[_0xe08c('0x80')](this['_pendingAction']),this[_0xe08c('0x43')]=null);}[_0xe08c('0xee')](_0x3610c9){const _0x391477=this[_0xe08c('0x3c')][_0xe08c('0x8c')]();_0x391477[_0xe08c('0x20')]();let _0xacac58=0x0;for(;_0xacac58<_0x391477[_0xe08c('0x8d')];){const _0x3f8e0a=_0x391477[_0xacac58];if(_0x3f8e0a===this[_0xe08c('0x40')]){_0xacac58++;continue;}if(_0x3f8e0a['id']===this['_initialRevisionId'])break;const _0x39c4fc=_0x3610c9[_0xe08c('0xbf')]-_0x3f8e0a['toVersion']||_0x3610c9['fromVersion']-_0x3f8e0a[_0xe08c('0x8e')];if(_0x39c4fc>0x0)break;if(_0x39c4fc<0x0)_0xacac58++;else{if(!_0x3610c9[_0xe08c('0xac')]&&_0x3f8e0a[_0xe08c('0xac')])break;if(_0x3f8e0a[_0xe08c('0xac')]||!_0x3610c9[_0xe08c('0xac')]){if(_0x3610c9[_0xe08c('0x48')]>_0x3f8e0a[_0xe08c('0x48')])break;_0xacac58++;}else _0xacac58++;}}return _0xacac58;}[_0xe08c('0xd8')](_0x46fd5c){const _0x4e5311=this[_0xe08c('0x3c')][_0xe08c('0x64')](_0x46fd5c['id']);if(_0x46fd5c[_0xe08c('0x48')]&&(_0x46fd5c[_0xe08c('0x48')]=new Date(_0x46fd5c[_0xe08c('0x48')])),_0x46fd5c[_0xe08c('0x17')]){const _0x3c695e=this[_0xe08c('0xb2')]['plugins'][_0xe08c('0xa6')]('Users');_0x46fd5c[_0xe08c('0x1a')]=_0x46fd5c['authorsIds'][_0xe08c('0x29')](_0x21e4a0=>_0x3c695e['getUser'](_0x21e4a0));}_0x4e5311['_update'](_0x46fd5c,!0x0);}[_0xe08c('0xeb')]({revision:_0x2a6be7=null,from:_0x2cf3a3=null,to:_0x1cc586=null}){_0x2cf3a3=null!==_0x2cf3a3?_0x2cf3a3:_0x2a6be7[_0xe08c('0x8e')],_0x1cc586=null!==_0x1cc586?_0x1cc586:_0x2a6be7[_0xe08c('0xbf')];const _0x3bd308=this[_0xe08c('0x12')][_0xe08c('0xd3')](_0x2cf3a3,_0x1cc586),_0x49d84b={'diffData':_0x3bd308[_0xe08c('0xc3')],'authorsIds':_0x3bd308[_0xe08c('0x17')],'fromVersion':_0x2cf3a3,'toVersion':_0x1cc586};if(!_0x2a6be7||_0x1cc586!==_0x2a6be7[_0xe08c('0xbf')]){const _0x445c48=_0x1cc586-0x1,_0x6bde10=this['_source']['history'][_0xe08c('0xb7')](_0x445c48);_0x49d84b['createdAt']=_0x6bde10&&_0x6bde10[_0xe08c('0x48')]||new Date();}if(this[_0xe08c('0xa4')]&&_0x2cf3a3===this['_loadedStateData'][_0xe08c('0x8e')])for(const _0x64174a of this[_0xe08c('0xa4')][_0xe08c('0x1a')])_0x49d84b['authorsIds']['includes'](_0x64174a['id'])||_0x49d84b[_0xe08c('0x17')][_0xe08c('0xe')](_0x64174a['id']);return _0x49d84b;}['_loadRevisionData'](_0x8240f5){if(!_0x8240f5||_0x8240f5['diffData'])return Promise['resolve']();{const _0x5b7e7d=this['editor'][_0xe08c('0x91')]['get'](_0xe08c('0xaa'));return this[_0xe08c('0x2a')][_0xe08c('0x64')]({'channelId':_0x5b7e7d,'revisionId':_0x8240f5['id']})[_0xe08c('0xe4')](_0x43b67d=>{_0x8240f5['diffData']=_0x43b67d[_0xe08c('0xc3')];});}}[_0xe08c('0x35')](_0xddf155,_0x488beb,_0x343f13){if(this[_0xe08c('0xbe')][_0xe08c('0x86')](_0xddf155)){const _0x35f227=this[_0xe08c('0xbe')][_0xe08c('0xa6')](_0xddf155);_0x488beb=_0x343f13?{..._0x35f227,..._0x488beb}:{..._0x488beb,..._0x35f227};}this[_0xe08c('0xbe')]['set'](_0xddf155,_0x488beb);}[_0xe08c('0x93')](_0xf0e0e3){const _0x2ed5e7=this[_0xe08c('0x3c')][_0xe08c('0x8c')]();_0x2ed5e7[_0xe08c('0x20')](),_0x2ed5e7['shift']();const _0x3ec06d=_0x2ed5e7[_0xe08c('0x1b')](_0xc0fbd1=>_0xc0fbd1[_0xe08c('0xbf')]<=_0xf0e0e3)[_0xe08c('0xbf')];return _0x3ec06d<this[_0xe08c('0xca')]?this[_0xe08c('0xca')]:_0x3ec06d;}[_0xe08c('0xa7')](_0xbe5993){const _0x4abe7b=this[_0xe08c('0x3c')][_0xe08c('0x64')](this[_0xe08c('0x3c')]['length']-0x1);if(_0x4abe7b)this[_0xe08c('0xb6')]=_0x4abe7b['id'];else{const _0x56f476=!this[_0xe08c('0xb2')]['model'][_0xe08c('0x3')]['roots'][_0xe08c('0x1b')](_0x103577=>this['editor']['model'][_0xe08c('0x5f')](_0x103577)),_0x3c3775=this[_0xe08c('0xb2')][_0xe08c('0xad')][_0xe08c('0xa6')](_0xe08c('0xc9'))['me']['id'],_0x44d218=_0x2bf8a0(this['editor'][_0xe08c('0xc0')],_0x56f476?_0xe08c('0x9f'):'Initial\x20revision');this[_0xe08c('0x44')]({'from':_0xbe5993,'to':_0xbe5993,'id':this[_0xe08c('0xb6')],'name':_0x44d218,'creatorId':_0x3c3775});}}[_0xe08c('0xc7')](_0x1196af){const _0x5bf210=this[_0xe08c('0x94')]['getCurrentRevisionId']();this['currentRevision']=this['repository'][_0xe08c('0x64')](_0x5bf210),this['currentRevision']||(this[_0xe08c('0x40')]=this['_makeRevision']({'from':_0x1196af,'to':_0x1196af,'id':_0x5bf210,'name':'','creatorId':null}));}[_0xe08c('0x44')]({name:_0x39568e,from:_0x1ad87d,to:_0xc74caf,creatorId:_0x2d641a,id:_0xbeed2e}){const _0x4186ce=this['buildRevisionData']({'from':_0x1ad87d,'to':_0xc74caf});_0x4186ce[_0xe08c('0x96')]=_0x39568e,_0x4186ce[_0xe08c('0x41')]=_0x2d641a,_0x4186ce['id']=_0xbeed2e;const _0x261c4=this[_0xe08c('0x1e')](_0x4186ce);return this[_0xe08c('0x2a')]&&this[_0xe08c('0x35')](_0x4186ce['id'],_0x4186ce,!0x0),_0x261c4;}['_setConversion'](){this[_0xe08c('0xb2')][_0xe08c('0x46')][_0xe08c('0x60')](_0xe08c('0x78'))[_0xe08c('0x68')]({'model':_0xe08c('0x2')});}[_0xe08c('0xe8')](_0x50ec08){return(_0x50ec08=_0x50ec08[_0xe08c('0x67')](_0x4634bd=>!_0x4634bd['name']||'revision-start'!==_0x4634bd[_0xe08c('0x96')]&&_0xe08c('0x39')!==_0x4634bd[_0xe08c('0x96')]))['forEach'](_0x3f62ef=>{_0xe08c('0x1d')!=typeof _0x3f62ef&&(_0x3f62ef['children']=this[_0xe08c('0xe8')](_0x3f62ef['children']),_0x3f62ef[_0xe08c('0xdb')]=_0x3f62ef['attributes'][_0xe08c('0x67')](_0xa33251=>!_0xa33251[0x0][_0xe08c('0x9e')]('data-revision-')));}),_0x50ec08;}}function F(_0x5b4ad4,_0x42a73d){const _0x17741e=_0x42a73d[_0xe08c('0xda')][_0xe08c('0x8a')]['document'];if('string'==typeof _0x5b4ad4)return new _0x9a4db5(_0x17741e,_0x5b4ad4);{const _0x14bfe4=_0x5b4ad4[_0xe08c('0x36')]['map'](_0x574ad3=>F(_0x574ad3,_0x42a73d));return new(V[_0x5b4ad4[(_0xe08c('0x74'))]]||_0xc72f6f)(_0x17741e,_0x5b4ad4[_0xe08c('0x96')],_0x5b4ad4[_0xe08c('0xdb')],_0x14bfe4);}}class T{constructor(_0x2bbc2f){this[_0xe08c('0xb2')]=_0x2bbc2f,this[_0xe08c('0x55')]=new Map(),this[_0xe08c('0x25')]=-0x1,this[_0xe08c('0x63')]=-0x1,this[_0xe08c('0x16')]=new Map(),this[_0xe08c('0x4c')]=new Map(),this[_0xe08c('0x6b')]=new Map(),this[_0xe08c('0xc2')]=new Map(),this[_0xe08c('0x57')]=new Map(),this['_touched']=new Map(),this[_0xe08c('0x95')]=new Map(),this['_revisionId']=0x1,this['_rootNames']=this[_0xe08c('0xb2')]['model']['document'][_0xe08c('0x87')](),this[_0xe08c('0x15')]['push'](_0xe08c('0x7b'));}[_0xe08c('0x6')](_0x41c8bd){this['source']=_0x41c8bd;const _0x7b8706=new Map();for(const _0x57a0f7 of this[_0xe08c('0x15')]){const _0x386713=J(this[_0xe08c('0xb2')][_0xe08c('0x47')]['document'][_0xe08c('0xbc')](_0x57a0f7));_0x7b8706['set'](_0x57a0f7,_0x386713);}const _0x226a08=Array['from'](this[_0xe08c('0xb2')][_0xe08c('0x47')][_0xe08c('0x13')])[_0xe08c('0x29')](_0x115036=>[_0x115036[_0xe08c('0x96')],_0x115036[_0xe08c('0xe1')]()]),_0x2b65c9=this[_0xe08c('0x84')]['version'];this['_saveMetaData'](_0x2b65c9,_0x7b8706,_0x226a08),this[_0xe08c('0xde')]=this[_0xe08c('0x45')];}[_0xe08c('0xd3')](_0x5b569b,_0x1bd82a){if(this['_lastFrom']===_0x5b569b&&this[_0xe08c('0x63')]<=_0x1bd82a)this['_savedMetaData'][_0xe08c('0xb0')]>0x1&&this[_0xe08c('0x51')](this[_0xe08c('0x63')]),this[_0xe08c('0xb')](this[_0xe08c('0x63')],_0x1bd82a,!0x0);else{if(!this['_savedMetaData'][_0xe08c('0x86')](_0x5b569b)){const _0xc7139f=this['_getPreviousFrom'](_0x5b569b);this['_calculateMetaData'](_0xc7139f,_0x5b569b,!0x1);}this[_0xe08c('0xea')](_0x5b569b,_0x1bd82a,!0x0);}return this['_lastFrom']=_0x5b569b,this[_0xe08c('0x63')]=_0x1bd82a,this[_0xe08c('0x58')]();}[_0xe08c('0x2f')](_0x3824bd){this[_0xe08c('0x4d')](),this[_0xe08c('0x25')]=_0x3824bd[_0xe08c('0x8e')],this[_0xe08c('0x63')]=_0x3824bd[_0xe08c('0xbf')];for(const _0x389777 in _0x3824bd[_0xe08c('0xc3')]){const _0x35d647=this['_makeModelFromViewString'](_0x3824bd[_0xe08c('0xc3')][_0x389777][_0xe08c('0x70')]);_0x35d647[_0xe08c('0x38')]=_0x389777,this[_0xe08c('0x6b')][_0xe08c('0x9a')](_0x389777,_0x35d647);const _0x5cbef3=this[_0xe08c('0x3d')](_0x35d647);this[_0xe08c('0x57')][_0xe08c('0x9a')](_0x389777,_0x5cbef3);for(const [_0x45a5e6,_0x2970c9]of _0x35d647[_0xe08c('0x13')]){if(!_0x45a5e6[_0xe08c('0x9e')]('revision:'))continue;const _0x13f80c=_0x45a5e6['split'](':')[0x2];for(const _0x271932 of _0x2970c9[_0xe08c('0x7a')]({'singleCharacters':!0x0})){const _0x48d8e1=this['_getVidAttributeName'](_0x271932),_0x176437=_0xe08c('0x83')==_0x271932[_0xe08c('0x74')]?_0x271932[_0xe08c('0x4e')]['path'][_0xe08c('0x7c')](0x0,-0x1):_0x271932[_0xe08c('0x4e')][_0xe08c('0x89')],_0x994f93=_0x5cbef3[_0xe08c('0x75')](_0x176437)[_0xe08c('0xa8')](_0x48d8e1);this[_0xe08c('0xe6')]['set'](_0x994f93,{'userId':_0x13f80c});}}}this['_startingRevisionId']=this[_0xe08c('0x45')];const _0x2ecae5=[...Array(this[_0xe08c('0x45')])[_0xe08c('0x5')]()]['slice'](0x1)[_0xe08c('0x67')](_0x224d3=>!this[_0xe08c('0xe6')]['has'](_0x224d3));let _0x10e51c=0x0;for(const _0x1b3606 in _0x3824bd[_0xe08c('0xc3')]){const _0xa98682=this['_makeModelFromViewString'](_0x3824bd[_0xe08c('0xc3')][_0x1b3606][_0xe08c('0xdc')]);_0xa98682[_0xe08c('0x38')]=_0x1b3606,this[_0xe08c('0x4c')][_0xe08c('0x9a')](_0x1b3606,_0xa98682);const _0x170ffd=this[_0xe08c('0x3d')](_0xa98682,Number['NEGATIVE_INFINITY']);this[_0xe08c('0xc2')]['set'](_0x1b3606,_0x170ffd);for(const [_0x52bebd,_0x43bbe1]of _0xa98682[_0xe08c('0x13')]){if(!_0x52bebd[_0xe08c('0x9e')](_0xe08c('0x28')))continue;const _0x18deab=_0x52bebd[_0xe08c('0xae')](':')[0x2];for(const _0x5f1924 of _0x43bbe1[_0xe08c('0x7a')]({'singleCharacters':!0x0})){const _0x143312=this[_0xe08c('0xb9')](_0x5f1924),_0x18afed=this[_0xe08c('0x45')]++,_0x25cdb4=_0xe08c('0x83')==_0x5f1924[_0xe08c('0x74')]?_0x5f1924[_0xe08c('0x4e')][_0xe08c('0x89')][_0xe08c('0x7c')](0x0,-0x1):_0x5f1924[_0xe08c('0x4e')][_0xe08c('0x89')];_0x170ffd[_0xe08c('0x75')](_0x25cdb4)[_0xe08c('0x53')](_0x143312,_0x18afed),this[_0xe08c('0xe6')][_0xe08c('0x9a')](_0x18afed,{'userId':_0x18deab});}}for(const _0x3df0b4 of this['editor']['model'][_0xe08c('0xe2')](_0xa98682)[_0xe08c('0x7a')]({'singleCharacters':!0x0})){const _0x25ef70=this[_0xe08c('0xb9')](_0x3df0b4),_0x548ede=_0xe08c('0x83')==_0x3df0b4['type']?_0x3df0b4['previousPosition'][_0xe08c('0x89')][_0xe08c('0x7c')](0x0,-0x1):_0x3df0b4[_0xe08c('0x4e')]['path'],_0x1c820b=_0x170ffd[_0xe08c('0x75')](_0x548ede);_0x1c820b['getAttribute'](_0x25ef70)>0x0||_0x1c820b[_0xe08c('0x53')](_0x25ef70,_0x2ecae5[_0x10e51c++]);}const _0x339412=new _0x588493();_0x339412[_0xe08c('0x38')]='$graveyard',this[_0xe08c('0x6b')]['set'](_0xe08c('0x7b'),_0x339412),this[_0xe08c('0x57')][_0xe08c('0x9a')](_0xe08c('0x7b'),this['_makeIdsRoot'](_0x339412,0x1));const _0x1e62ab=new _0x588493();_0x1e62ab[_0xe08c('0x38')]='$graveyard',this[_0xe08c('0x4c')][_0xe08c('0x9a')](_0xe08c('0x7b'),_0x1e62ab),this[_0xe08c('0xc2')]['set'](_0xe08c('0x7b'),this['_makeIdsRoot'](_0x1e62ab,0x1));for(const [_0x12be67,_0x175c59]of _0xa98682[_0xe08c('0x13')])_0x12be67[_0xe08c('0x9e')]('revision:')||this['_markers'][_0xe08c('0x9a')](_0x12be67,_0x175c59);}const _0x21032b=Array[_0xe08c('0xba')](this[_0xe08c('0x4c')])[_0xe08c('0x29')](([_0x1eae6e,_0x1810d8])=>[_0x1eae6e,J(_0x1810d8)]);this['_saveMetaData'](this['_lastTo'],_0x21032b,this[_0xe08c('0x16')]);}[_0xe08c('0x23')](_0x150a12){const _0x1ff70c=JSON['parse'](_0x150a12),_0x5155db=this[_0xe08c('0xb2')]['editing']['view'][_0xe08c('0x3')],_0x1ada4c=new _0x409a7f(_0x5155db,_0x1ff70c[_0xe08c('0x29')](_0x2be2ac=>F(_0x2be2ac,this[_0xe08c('0xb2')])));return this['editor']['data'][_0xe08c('0xa5')](_0x1ada4c);}['_saveEmptyMetaData'](){const _0xcce444=new Map();for(const _0xe98fb8 of this[_0xe08c('0x15')]){const _0x13e70a=new _0x588493();_0x13e70a[_0xe08c('0x38')]=_0xe98fb8,_0xcce444[_0xe08c('0x9a')](_0xe98fb8,_0x13e70a);}this[_0xe08c('0xb4')](Number['NEGATIVE_INFINITY'],_0xcce444,[]);}[_0xe08c('0xb4')](_0x8b875f,_0xf1a587,_0x2b1885){const _0x2419e5=new Map(_0xf1a587),_0x2a6431=new Map();for(const [_0x3ba63a,_0x474713]of _0x2b1885)_0x2a6431['set'](_0x3ba63a,{'start':_0x474713[_0xe08c('0xe5')]['clone'](),'end':_0x474713['end'][_0xe08c('0xdd')](),'rootName':_0x474713['root'][_0xe08c('0x38')]});this[_0xe08c('0x55')][_0xe08c('0x9a')](_0x8b875f,{'roots':_0x2419e5,'markers':_0x2a6431});}[_0xe08c('0x51')](_0x3154a7){this[_0xe08c('0x55')][_0xe08c('0x76')](_0x3154a7);}[_0xe08c('0x6e')](){this[_0xe08c('0x4d')](),this['_lastFrom']=-0x1,this[_0xe08c('0x63')]=-0x1,this[_0xe08c('0x55')][_0xe08c('0x88')](),this[_0xe08c('0x6')](this[_0xe08c('0x84')]);}['_reset'](){this[_0xe08c('0xe6')]['clear'](),this[_0xe08c('0x95')][_0xe08c('0x88')](),this[_0xe08c('0x4c')][_0xe08c('0x88')](),this['_baseRoots'][_0xe08c('0x88')](),this[_0xe08c('0xc2')][_0xe08c('0x88')](),this[_0xe08c('0x57')][_0xe08c('0x88')](),this['_markers']['clear'](),this[_0xe08c('0x45')]=0x1,this[_0xe08c('0xde')]=this['_revisionId'];}[_0xe08c('0x3d')](_0x3637bc,_0x47ffce=null){let _0x1a4d9d=null;_0x3637bc['is'](_0xe08c('0x4f'))||(_0x1a4d9d=new _0x45e8ea(_0x3637bc[_0xe08c('0x96')],{'vid_start':null===_0x47ffce?this[_0xe08c('0x45')]++:_0x47ffce++}));const _0x57197d=[];for(const _0x6d24e5 of _0x3637bc['getChildren']())if(_0x6d24e5['is'](_0xe08c('0x2b'))){_0x57197d[_0xe08c('0xe')](this[_0xe08c('0x3d')](_0x6d24e5,_0x47ffce));const _0x38d081=_0x57197d[_0x57197d[_0xe08c('0x8d')]-0x1];null!==_0x47ffce&&(_0x47ffce=_0x38d081['is'](_0xe08c('0x2b'),_0xe08c('0xd'))?_0x38d081[_0xe08c('0xa8')](_0xe08c('0x71'))+0x1:_0x38d081[_0xe08c('0xa8')](_0xe08c('0x69'))+0x1);}else for(let _0x2f95a4=0x0;_0x2f95a4<_0x6d24e5['offsetSize'];_0x2f95a4++)_0x57197d['push'](new _0x45e8ea(_0xe08c('0xd'),{'vid':null===_0x47ffce?this['_revisionId']++:_0x47ffce++}));if(_0x3637bc['is'](_0xe08c('0x4f'))){const _0x50213f=new _0x588493(_0x57197d);return _0x50213f[_0xe08c('0x38')]=_0x3637bc[_0xe08c('0x38')],_0x50213f;}return _0x1a4d9d[_0xe08c('0x53')](_0xe08c('0x69'),null===_0x47ffce?this[_0xe08c('0x45')]++:_0x47ffce++),_0x1a4d9d[_0xe08c('0x18')](0x0,_0x57197d),_0x1a4d9d;}[_0xe08c('0xea')](_0x1ec7ac,_0x19c75c,_0xc6cb73){this[_0xe08c('0x4d')]();const {roots:_0xa1ee06,markers:_0x51dc0c}=this[_0xe08c('0x55')]['get'](_0x1ec7ac);this[_0xe08c('0x6b')]=new Map(_0xa1ee06);for(const [_0x41e39f,_0x2bae2d]of this[_0xe08c('0x6b')])if('$graveyard'!==_0x41e39f&&(this[_0xe08c('0x4c')][_0xe08c('0x9a')](_0x41e39f,J(_0x2bae2d)),_0xc6cb73)){const _0x4795cc=this[_0xe08c('0x45')];this[_0xe08c('0xc2')][_0xe08c('0x9a')](_0x41e39f,this[_0xe08c('0x3d')](_0x2bae2d)),this[_0xe08c('0x57')][_0xe08c('0x9a')](_0x41e39f,this[_0xe08c('0x3d')](_0x2bae2d,_0x4795cc));}this[_0xe08c('0xde')]=this[_0xe08c('0x45')],this[_0xe08c('0x4c')][_0xe08c('0x9a')](_0xe08c('0x7b'),J(this[_0xe08c('0x6b')][_0xe08c('0xa6')](_0xe08c('0x7b')))),_0xc6cb73&&this[_0xe08c('0xc2')][_0xe08c('0x9a')](_0xe08c('0x7b'),this[_0xe08c('0x3d')](this[_0xe08c('0x6b')][_0xe08c('0xa6')](_0xe08c('0x7b'))));for(const [_0x537765,_0x5d8579]of _0x51dc0c){const _0x567e91=this[_0xe08c('0x6b')][_0xe08c('0xa6')](_0x5d8579[_0xe08c('0x38')]),_0x465fc2=this[_0xe08c('0x4c')][_0xe08c('0xa6')](_0x5d8579['rootName']),_0x1c7165=new _0x18b630(this[_0xe08c('0xa')](_0x5d8579[_0xe08c('0xe5')],_0x567e91),this[_0xe08c('0xa')](_0x5d8579['end'],_0x567e91)),_0x339c0d=this['_fixRange'](_0x1c7165,_0x465fc2);_0x567e91[_0xe08c('0x13')]['set'](_0x537765,_0x1c7165),this[_0xe08c('0x16')][_0xe08c('0x9a')](_0x537765,_0x339c0d);}this[_0xe08c('0xb')](_0x1ec7ac,_0x19c75c,_0xc6cb73);}[_0xe08c('0xb')](_0x28de3e,_0x5882ad,_0x434157){for(const _0x65494a of this[_0xe08c('0x84')][_0xe08c('0x11')](_0x28de3e,_0x5882ad))this['_handleOperation'](_0x65494a,_0x434157);for(const _0x38a725 of this[_0xe08c('0x4c')][_0xe08c('0x3a')]())_0x38a725[_0xe08c('0x13')][_0xe08c('0x88')]();for(const [_0x41c5c4,_0x23b9d3]of this[_0xe08c('0x16')]){this[_0xe08c('0x4c')][_0xe08c('0xa6')](_0x23b9d3[_0xe08c('0x4b')][_0xe08c('0x38')])['markers'][_0xe08c('0x9a')](_0x41c5c4,_0x23b9d3[_0xe08c('0xdd')]());}this[_0xe08c('0xb4')](_0x5882ad,Array['from'](this['_diffRoots'])['map'](([_0x1bf2ef,_0x2d7e03])=>[_0x1bf2ef,J(_0x2d7e03)]),this['_markers']);}['_getPreviousFrom'](_0x3a6a81){const _0x160cef=Array[_0xe08c('0xba')](this[_0xe08c('0x55')][_0xe08c('0x5')]());_0x160cef[_0xe08c('0x24')]((_0x299369,_0x1cf472)=>_0x299369-_0x1cf472),_0x160cef['reverse']();for(const _0xcee2ae of _0x160cef)if(_0xcee2ae<_0x3a6a81)return _0xcee2ae;return this['_saveEmptyMetaData'](),Number['NEGATIVE_INFINITY'];}[_0xe08c('0xe9')](_0x3e9f9d,_0x30737a){const _0x5a9bcb=Array[_0xe08c('0xba')](_0x30737a[_0xe08c('0x13')])[_0xe08c('0x29')](([_0x57a8f0,_0x4ee401])=>[_0x57a8f0,this['_fixRange'](_0x4ee401,_0x3e9f9d)]);_0x3e9f9d[_0xe08c('0x13')]=new Map(_0x5a9bcb);}['_transformMarkers'](_0x231b92){for(const _0x57e46b of this[_0xe08c('0x16')]['values']()){const _0x48ed0c=_0x57e46b[_0xe08c('0x30')](_0x231b92),_0x2a0801=_0x18b630[_0xe08c('0x49')](_0x48ed0c);_0x57e46b[_0xe08c('0xe5')]=_0x2a0801[_0xe08c('0xe5')],_0x57e46b['end']=_0x2a0801[_0xe08c('0x6a')];}}[_0xe08c('0x5a')](_0xe035f7,_0xa1c44){const _0xd73914=this[_0xe08c('0xc6')](_0xe035f7,this[_0xe08c('0x4c')]);if(_0xe08c('0x37')!==_0xe035f7[_0xe08c('0x74')]&&(_0xd73914[_0xe08c('0x5b')](),this[_0xe08c('0xed')](_0xd73914)),_0xa1c44)switch(_0xd73914[_0xe08c('0x74')]){case _0xe08c('0x5c'):this[_0xe08c('0xf')](_0xe035f7);break;case _0xe08c('0xa3'):case'remove':case _0xe08c('0x3f'):this['_handleMoveOperation'](_0xe035f7);break;case _0xe08c('0xb3'):this[_0xe08c('0x26')](_0xe035f7);break;case _0xe08c('0xae'):this[_0xe08c('0x54')](_0xe035f7);break;case _0xe08c('0x37'):this[_0xe08c('0xa2')](_0xe035f7);}}[_0xe08c('0xc6')](_0x2a526c,_0x57b76a){const _0x489c7f=_0x2a526c['clone']();return _0x489c7f[_0xe08c('0x9d')]=_0x2a526c[_0xe08c('0x9d')],this['_fixOperation'](_0x489c7f,_0x57b76a),_0x489c7f;}[_0xe08c('0xd4')](_0x1632c8){return _0x1632c8[_0xe08c('0x29')](_0x2bd1a2=>{const _0x52584c=this[_0xe08c('0xb9')](_0x2bd1a2);return Number(_0x2bd1a2[_0xe08c('0x72')]['getAttribute'](_0x52584c));});}['_generateTape'](_0x4e2b01,_0x459860){if(_0x4e2b01['is'](_0xe08c('0x2b'),_0xe08c('0xd')))_0x459860[_0xe08c('0xe')]({'item':_0x4e2b01,'type':_0xe08c('0x4a')});else{_0x4e2b01['is']('element')&&_0x459860['push']({'item':_0x4e2b01,'type':_0xe08c('0xcb')});for(const _0x237d79 of _0x4e2b01['getChildren']())this[_0xe08c('0x2d')](_0x237d79,_0x459860);_0x4e2b01['is'](_0xe08c('0x2b'))&&_0x459860[_0xe08c('0xe')]({'item':_0x4e2b01,'type':_0xe08c('0x83')});}return _0x459860;}[_0xe08c('0x58')](){const _0xa8163f=this[_0xe08c('0xb2')]['model'][_0xe08c('0x3')]['getRootNames'](),_0x31ae5f=new Map(this[_0xe08c('0xe6')]),_0x3a7b8b=new Map(_0x31ae5f),_0x355854=new Map(),_0x3cf27f={'insertions':{},'deletions':{}},_0x67cb26={'insertions':{},'deletions':{}},_0x5d4b47=new Map();for(const _0x14b827 of _0xa8163f){const _0x263667=this['_diffRoots'][_0xe08c('0xa6')](_0x14b827),_0x24b5ad=this[_0xe08c('0x6b')][_0xe08c('0xa6')](_0x14b827);_0x3cf27f['insertions'][_0x14b827]=J(_0x263667),_0x3cf27f['deletions'][_0x14b827]=J(_0x24b5ad),this[_0xe08c('0xe9')](_0x3cf27f[_0xe08c('0x70')][_0x14b827],_0x24b5ad),this[_0xe08c('0xe9')](_0x3cf27f[_0xe08c('0xdc')][_0x14b827],_0x263667),_0x67cb26['insertions'][_0x14b827]=this[_0xe08c('0x2d')](this['_idsRoots'][_0xe08c('0xa6')](_0x14b827),[]),_0x67cb26[_0xe08c('0x70')][_0x14b827]=this['_generateTape'](this[_0xe08c('0x57')][_0xe08c('0xa6')](_0x14b827),[]);}for(const _0x308404 of _0xa8163f){const _0x572a02=_0x67cb26[_0xe08c('0xdc')][_0x308404];for(const _0x3f03f4 of _0x572a02){const _0x52da7e=this['_getVidAttributeName'](_0x3f03f4),_0x33420a=_0x3f03f4['item'][_0xe08c('0xa8')](_0x52da7e);_0x3a7b8b[_0xe08c('0x76')](_0x33420a),_0x33420a>=this[_0xe08c('0xde')]&&_0x355854[_0xe08c('0x9a')](_0x33420a,_0x31ae5f['get'](_0x33420a));}}for(const _0x5c43fd of _0xa8163f){const _0x1dd50=_0x67cb26['insertions'][_0x5c43fd],_0x2030df=this[_0xe08c('0xd4')](_0x67cb26[_0xe08c('0x70')][_0x5c43fd]);let _0x3ac49b=0x0;for(const _0x5ee59e of _0x1dd50){const _0x503f97=this[_0xe08c('0xb9')](_0x5ee59e),_0x180c8e=_0x5ee59e[_0xe08c('0x72')]['getAttribute'](_0x503f97);if(!_0x355854['has'](_0x180c8e)&&!_0x5d4b47[_0xe08c('0x86')](_0x180c8e)){if(_0x3a7b8b[_0xe08c('0x86')](_0x180c8e))_0x3ac49b++;else{if(_0x180c8e!=_0x2030df[_0x3ac49b]){const _0x5d500b=_0x31ae5f['get'](_0x180c8e)||_0x31ae5f[_0xe08c('0xa6')](_0x2030df[_0x3ac49b]);for(;_0x180c8e!=_0x2030df[_0x3ac49b];)_0x3a7b8b[_0xe08c('0x86')](_0x2030df[_0x3ac49b])||(_0x5d4b47[_0xe08c('0x9a')](_0x2030df[_0x3ac49b],_0x5d500b),_0x31ae5f[_0xe08c('0x9a')](_0x2030df[_0x3ac49b],_0x5d500b)),_0x3ac49b++;}_0x3ac49b++;}}}}for(const _0x2c15dc of _0xa8163f){const _0x31323f=_0x67cb26[_0xe08c('0xdc')][_0x2c15dc];for(const _0x5ee702 of _0x31323f){const _0x13b768=this[_0xe08c('0xb9')](_0x5ee702),_0x573f90=_0x5ee702[_0xe08c('0x72')][_0xe08c('0xa8')](_0x13b768);if(_0x5d4b47[_0xe08c('0x86')](_0x573f90)){const _0x2fb456=_0x5d4b47[_0xe08c('0xa6')](_0x573f90);_0x3a7b8b[_0xe08c('0x86')](_0x573f90)||_0x3a7b8b[_0xe08c('0x9a')](_0x573f90,{..._0x2fb456}),_0x355854[_0xe08c('0x9a')](_0x573f90,{..._0x2fb456});}}}for(const _0x10be4e of _0x3a7b8b[_0xe08c('0x5')]())_0x10be4e>=this[_0xe08c('0xde')]&&_0x3a7b8b[_0xe08c('0x76')](_0x10be4e);const _0x1dcd0a=new Map();for(const _0x47141c of _0xa8163f){let _0x371bf4=_0x67cb26['insertions'][_0x47141c];for(const _0x211a26 of _0x371bf4)if(_0x211a26[_0xe08c('0x72')]['is']('element',_0xe08c('0xc1'))){const _0x19f5e6=this[_0xe08c('0xb9')](_0x211a26),_0x40809a=_0x211a26['item'][_0xe08c('0xa8')](_0x19f5e6);if(_0x355854[_0xe08c('0x86')](_0x40809a)){const _0x1baa41=_0x211a26[_0xe08c('0x72')][_0xe08c('0xec')][_0xe08c('0xec')]['getAttribute'](_0xe08c('0xe7')),_0xfb2f7a=_0x1dcd0a[_0xe08c('0xa6')](_0x1baa41)||new Set();_0xfb2f7a[_0xe08c('0x2c')](_0x355854[_0xe08c('0xa6')](_0x40809a)[_0xe08c('0x19')]),_0x1dcd0a[_0xe08c('0x9a')](_0x1baa41,_0xfb2f7a);}}_0x371bf4=_0x67cb26[_0xe08c('0x70')][_0x47141c];for(const _0x8e149d of _0x371bf4)if(_0x8e149d[_0xe08c('0x72')]['is'](_0xe08c('0x2b'),_0xe08c('0xc1'))){const _0x50f9e2=this['_getVidAttributeName'](_0x8e149d),_0x121240=_0x8e149d[_0xe08c('0x72')][_0xe08c('0xa8')](_0x50f9e2);if(_0x3a7b8b[_0xe08c('0x86')](_0x121240)){const _0x14b6e6=_0x8e149d['item']['parent'][_0xe08c('0xec')]['getAttribute'](_0xe08c('0xe7')),_0xd8309a=_0x1dcd0a[_0xe08c('0xa6')](_0x14b6e6)||new Set();_0xd8309a[_0xe08c('0x2c')](_0x3a7b8b[_0xe08c('0xa6')](_0x121240)[_0xe08c('0x19')]),_0x1dcd0a[_0xe08c('0x9a')](_0x14b6e6,_0xd8309a);}}for(const _0x198f81 of _0x1dcd0a[_0xe08c('0x5')]())(_0x355854['has'](_0x198f81)||_0x3a7b8b[_0xe08c('0x86')](_0x198f81))&&_0x1dcd0a[_0xe08c('0x76')](_0x198f81);}for(const _0x3e5204 of _0xa8163f){const _0x455ef5=_0x67cb26['insertions'][_0x3e5204];let _0x3591fa=null,_0x7dd944=null;for(const _0xaa9f8c of _0x455ef5){const _0x354dd6=this[_0xe08c('0xb9')](_0xaa9f8c),_0x532454=_0xaa9f8c[_0xe08c('0x72')][_0xe08c('0xa8')](_0x354dd6),_0x2b4c03=_0x1dcd0a[_0xe08c('0xa6')](_0x532454);_0x2b4c03&&'elementStart'==_0xaa9f8c[_0xe08c('0x74')]&&(_0x3591fa=Array[_0xe08c('0xba')](_0x2b4c03)[0x0],_0x7dd944=_0xaa9f8c[_0xe08c('0x72')][_0xe08c('0xa8')]('vid_end')),_0x3591fa&&(_0x3a7b8b[_0xe08c('0x9a')](_0x532454,{'userId':_0x3591fa}),_0x355854['set'](_0x532454,{'userId':_0x3591fa})),_0x532454==_0x7dd944&&(_0x3591fa=null,_0x7dd944=null);}}const _0x4cd568={},_0x1709bc=new Set();for(const _0xb9ffb8 of _0xa8163f){const _0x3cc1a0=_0x3cf27f[_0xe08c('0x70')][_0xb9ffb8],_0x256724=_0x3cf27f[_0xe08c('0xdc')][_0xb9ffb8];for(const {userId:_0x1383d4}of this['_touchedMarkers'][_0xe08c('0x3a')]())null!==_0x1383d4&&_0x1709bc[_0xe08c('0x2c')](_0x1383d4);this[_0xe08c('0x1c')](_0x256724,_0x67cb26[_0xe08c('0xdc')][_0xb9ffb8],_0x355854,_0xe08c('0x79'),_0x1709bc),this['_markChanges'](_0x3cc1a0,_0x67cb26['deletions'][_0xb9ffb8],_0x3a7b8b,'deletion',_0x1709bc),_0x4cd568[_0xb9ffb8]={'insertions':this[_0xe08c('0xa0')](_0x256724),'deletions':this[_0xe08c('0xa0')](_0x3cc1a0)};}return{'diffData':_0x4cd568,'authorsIds':Array[_0xe08c('0xba')](_0x1709bc)};}['_processRootBeforeSave'](_0x594426){for(const [,_0x3eda62]of _0x594426[_0xe08c('0x13')]){const _0x15ea00=_0x3eda62['start'][_0xe08c('0x4')]()[_0xe08c('0x67')](_0x1fbbbe=>_0xe08c('0xc1')==_0x1fbbbe['name']);for(const _0x570714 of _0x15ea00)0x1==_0x570714[_0xe08c('0x82')]&&_0x570714[_0xe08c('0x3e')](0x0)['is'](_0xe08c('0x2b'),_0xe08c('0xbd'))&&_0x570714[_0xe08c('0x3e')](0x0)['_setAttribute'](_0xe08c('0x9c'),!0x0);}}[_0xe08c('0xa0')](_0x4833d8){this[_0xe08c('0x10')](_0x4833d8);const _0x5b05be=this[_0xe08c('0xb2')][_0xe08c('0xd2')][_0xe08c('0x97')](_0x4833d8,{}),_0x1d20fb=Array[_0xe08c('0xba')](_0x5b05be[_0xe08c('0x0')]())[_0xe08c('0x29')](_0x42ed40=>this[_0xe08c('0xb1')](_0x42ed40));return JSON[_0xe08c('0x92')](_0x1d20fb);}[_0xe08c('0xb1')](_0x67ab){if(_0x67ab['is']('$text'))return _0x67ab[_0xe08c('0xd2')];{const _0x543380=_0x67ab;return{'type':Object['keys'](V)[_0xe08c('0x1b')](_0x54ad89=>_0x67ab instanceof V[_0x54ad89]),'name':_0x543380['name'],'attributes':Array['from'](_0x543380[_0xe08c('0xb8')]()),'children':Array[_0xe08c('0xba')](_0x543380['getChildren']())['map'](_0xa965c6=>this[_0xe08c('0xb1')](_0xa965c6))};}}[_0xe08c('0x1c')](_0x167743,_0xf7e92a,_0xeb02dd,_0xa81418,_0x251882){let _0x2b6bbf=null,_0xb4abb2=null,_0xf6605b=0x0;const _0x200b79=this['editor'][_0xe08c('0x47')];for(let _0x5b77b0=0x0;_0x5b77b0<_0xf7e92a[_0xe08c('0x8d')];_0x5b77b0++){const _0x399124=this['_getVidAttributeName'](_0xf7e92a[_0x5b77b0]),_0x1d34ee=_0xf7e92a[_0x5b77b0]['item'][_0xe08c('0xa8')](_0x399124),_0x432868=_0xeb02dd['get'](_0x1d34ee),_0x50fce2=_0x5b77b0==_0xf7e92a[_0xe08c('0x8d')]-0x1;(!_0x2b6bbf&&_0x432868&&(_0x2b6bbf=_0x432868,_0xb4abb2=_0xf7e92a[_0x5b77b0]),_0x2b6bbf&&(!_0x432868||_0x432868[_0xe08c('0x19')]!=_0x2b6bbf[_0xe08c('0x19')]))&&(_0x55fd5c(_0x432868,j(_0xb4abb2,_0x167743,_0x200b79),j(_0xf7e92a[_0x5b77b0],_0x167743,_0x200b79)),_0x2b6bbf=_0x432868||null,_0xb4abb2=_0x432868?_0xf7e92a[_0x5b77b0]:null),_0x2b6bbf&&_0x50fce2&&_0x55fd5c(_0x432868,j(_0xb4abb2,_0x167743,_0x200b79),B(_0xf7e92a[_0x5b77b0],_0x167743,_0x200b79));}function _0x55fd5c(_0x51144a,_0x2f08c5,_0x2003aa){const _0x245883=_0x2b6bbf[_0xe08c('0x19')],_0x3a1ea=_0xe08c('0x28')+_0xa81418+':'+_0x245883+':'+_0xf6605b++,_0x1b2c13=_0x200b79[_0xe08c('0xd1')](_0x2f08c5,_0x2003aa);_0x167743[_0xe08c('0x13')][_0xe08c('0x9a')](_0x3a1ea,_0x1b2c13),null!==_0x245883&&_0x251882[_0xe08c('0x2c')](_0x245883);}}[_0xe08c('0xb9')](_0x896b6d){switch(_0x896b6d['type']){case _0xe08c('0xcb'):return _0xe08c('0xe7');case _0xe08c('0x83'):return _0xe08c('0x69');default:return _0xe08c('0x71');}}[_0xe08c('0x1')](_0x42addd,_0xe3658){_0x42addd[_0xe08c('0x52')]=null;for(const _0x541a59 in _0x42addd){const _0x182740=_0x42addd[_0x541a59];if(_0x182740 instanceof _0x3a19a0){const _0x5d2e04=_0xe3658['get'](_0x182740[_0xe08c('0x4b')]['rootName']);_0x42addd[_0x541a59]=this[_0xe08c('0xa')](_0x182740,_0x5d2e04);}if(_0x182740 instanceof _0x18b630){const _0x4a3b58=_0xe3658['get'](_0x182740[_0xe08c('0x4b')][_0xe08c('0x38')]);_0x42addd[_0x541a59]=this['_fixRange'](_0x182740,_0x4a3b58);}}_0x42addd[_0xe08c('0x4b')]&&(_0x42addd[_0xe08c('0x4b')]=_0xe3658['get'](_0x42addd[_0xe08c('0x4b')]['rootName']));}[_0xe08c('0x8f')](_0x2a483f,_0x4355d7){return this['editor'][_0xe08c('0x47')][_0xe08c('0xd1')](this[_0xe08c('0xa')](_0x2a483f[_0xe08c('0xe5')],_0x4355d7),this[_0xe08c('0xa')](_0x2a483f[_0xe08c('0x6a')],_0x4355d7));}['_fixPosition'](_0x63fc86,_0x4c6a49){return this[_0xe08c('0xb2')][_0xe08c('0x47')]['createPositionFromPath'](_0x4c6a49,_0x63fc86[_0xe08c('0x89')],_0x63fc86[_0xe08c('0x7f')]);}[_0xe08c('0xf')](_0x25d625){const _0x1cb41d=this[_0xe08c('0xc2')]['get'](_0x25d625[_0xe08c('0x8')][_0xe08c('0x4b')][_0xe08c('0x38')]),_0x4de156=this['_fixPosition'](_0x25d625['position'],_0x1cb41d),_0x294d13=null===_0x25d625[_0xe08c('0x9d')]?null:_0x25d625[_0xe08c('0x9d')]||this[_0xe08c('0xb2')][_0xe08c('0xad')][_0xe08c('0xa6')]('Users')['me']['id'],_0x17f000=_0x4de156[_0xe08c('0xec')],_0x5f035f=this[_0xe08c('0x45')],_0x28b763=[];for(const _0x1c2556 of _0x25d625[_0xe08c('0xa9')])if(_0x1c2556['is'](_0xe08c('0x2b')))_0x28b763['push'](this[_0xe08c('0x3d')](_0x1c2556));else for(let _0x1f1379=0x0;_0x1f1379<_0x1c2556[_0xe08c('0xdf')];_0x1f1379++)_0x28b763[_0xe08c('0xe')](new _0x45e8ea(_0xe08c('0xd'),{'vid':this[_0xe08c('0x45')]++}));const _0x10072d=this['_revisionId'];for(let _0x45f000=_0x5f035f;_0x45f000<_0x10072d;_0x45f000++)this[_0xe08c('0xe6')][_0xe08c('0x9a')](_0x45f000,{'userId':_0x294d13});_0x17f000[_0xe08c('0x18')](_0x4de156[_0xe08c('0x50')],_0x28b763);}[_0xe08c('0xa1')](_0x1ab13f){(_0x1ab13f=this[_0xe08c('0xc6')](_0x1ab13f,this[_0xe08c('0xc2')]))[_0xe08c('0x5b')]();const _0x33f72c=null===_0x1ab13f[_0xe08c('0x9d')]?null:_0x1ab13f[_0xe08c('0x9d')]||this[_0xe08c('0xb2')][_0xe08c('0xad')][_0xe08c('0xa6')]('Users')['me']['id'],_0x4a7b4d=_0x1ab13f['getMovedRangeStart'](),_0x402f53=_0x4a7b4d[_0xe08c('0xec')],_0x44b21c=_0x4a7b4d['offset'];!function _0x3f532c(_0xafa5b6,_0x5c86b6,_0x38d0ee,_0x504e6c){for(let _0x3f4308=_0x38d0ee;_0x3f4308<_0x504e6c;_0x3f4308++){const _0x27b436=_0x5c86b6[_0xe08c('0x3e')](_0x3f4308);_0x27b436['is'](_0xe08c('0x2b'),_0xe08c('0xd'))?_0xafa5b6['set'](_0x27b436[_0xe08c('0xa8')](_0xe08c('0x71')),{'userId':_0x33f72c}):(_0xafa5b6['set'](_0x27b436[_0xe08c('0xa8')](_0xe08c('0xe7')),{'userId':_0x33f72c}),_0x3f532c(_0xafa5b6,_0x27b436,0x0,_0x27b436['childCount']),_0xafa5b6[_0xe08c('0x9a')](_0x27b436[_0xe08c('0xa8')](_0xe08c('0x69')),{'userId':_0x33f72c}));}}(this['_touched'],_0x402f53,_0x44b21c,_0x44b21c+_0x1ab13f['howMany']);}[_0xe08c('0x26')](_0x28fd9f){const _0x3d93ef=null===(_0x28fd9f=this['_cloneOperation'](_0x28fd9f,this[_0xe08c('0xc2')]))['_authorId']?null:_0x28fd9f[_0xe08c('0x9d')]||this[_0xe08c('0xb2')][_0xe08c('0xad')][_0xe08c('0xa6')](_0xe08c('0xc9'))['me']['id'],_0x55fdf1=_0x28fd9f[_0xe08c('0xd7')][_0xe08c('0xec')],_0x1a315e=_0x28fd9f['sourcePosition'][_0xe08c('0xec')],_0x2ef7ac=_0x55fdf1[_0xe08c('0xa8')]('vid_end'),_0x6fcc80=_0x1a315e[_0xe08c('0xa8')](_0xe08c('0xe7'));_0x55fdf1['_setAttribute'](_0xe08c('0x69'),_0x1a315e[_0xe08c('0xa8')](_0xe08c('0x69'))),_0x1a315e[_0xe08c('0x53')](_0xe08c('0x69'),_0x2ef7ac),this[_0xe08c('0xe6')][_0xe08c('0x9a')](_0x6fcc80,{'userId':_0x3d93ef}),this[_0xe08c('0xe6')][_0xe08c('0x9a')](_0x2ef7ac,{'userId':_0x3d93ef}),_0x28fd9f[_0xe08c('0x5b')]();}[_0xe08c('0x54')](_0x3f1953){const _0x26e8fe=null===(_0x3f1953=this[_0xe08c('0xc6')](_0x3f1953,this['_idsRoots']))[_0xe08c('0x9d')]?null:_0x3f1953[_0xe08c('0x9d')]||this['editor']['plugins'][_0xe08c('0xa6')](_0xe08c('0xc9'))['me']['id'],_0x379ed4=_0x3f1953[_0xe08c('0x33')],_0x3de718=_0x3f1953['splitPosition'][_0xe08c('0xec')];_0x3f1953[_0xe08c('0x5b')]();const _0x5f1f34=_0x3de718[_0xe08c('0xa8')]('vid_end'),_0x2eeae2=_0x3f1953[_0xe08c('0x56')][_0xe08c('0x9b')];if(_0x379ed4){const _0x2277af=_0x2eeae2['getAttribute']('vid_end'),_0x18e2f3=_0x3de718['getAttribute'](_0xe08c('0x69'));_0x3de718[_0xe08c('0x53')](_0xe08c('0x69'),_0x2277af),_0x2eeae2[_0xe08c('0x53')](_0xe08c('0x69'),_0x18e2f3),this[_0xe08c('0xe6')]['set'](_0x3de718[_0xe08c('0xa8')](_0xe08c('0x69')),{'userId':_0x26e8fe}),this[_0xe08c('0xe6')][_0xe08c('0x9a')](_0x2eeae2['getAttribute']('vid_start'),{'userId':_0x26e8fe});}else{const _0x124780=this['_revisionId']++,_0x3a2382=this[_0xe08c('0x45')]++;_0x3de718[_0xe08c('0x53')](_0xe08c('0x69'),_0x124780),_0x2eeae2[_0xe08c('0x53')](_0xe08c('0xe7'),_0x3a2382),_0x2eeae2[_0xe08c('0x53')]('vid_end',_0x5f1f34),this[_0xe08c('0xe6')][_0xe08c('0x9a')](_0x124780,{'userId':_0x26e8fe}),this[_0xe08c('0xe6')][_0xe08c('0x9a')](_0x3a2382,{'userId':_0x26e8fe});}}[_0xe08c('0xa2')](_0x1bda00){if(!_0x1bda00[_0xe08c('0xcd')])return;const _0x3cfe8d=(_0x1bda00=this['_cloneOperation'](_0x1bda00,this[_0xe08c('0x4c')]))[_0xe08c('0xc8')]?_0x1bda00[_0xe08c('0xc8')][_0xe08c('0x4b')]:null,_0x9943f4=_0x1bda00['newRange']?_0x1bda00['newRange']['root']:null;_0x3cfe8d&&this[_0xe08c('0x16')]['delete'](_0x1bda00[_0xe08c('0x96')]),_0x9943f4&&this['_markers']['set'](_0x1bda00['name'],_0x1bda00[_0xe08c('0x34')][_0xe08c('0xdd')]());const _0x24a8cd=null===_0x1bda00[_0xe08c('0x9d')]?null:_0x1bda00[_0xe08c('0x9d')]||this[_0xe08c('0xb2')][_0xe08c('0xad')][_0xe08c('0xa6')]('Users')['me']['id'],_0x442312=_0x1bda00[_0xe08c('0x96')];if(!this[_0xe08c('0x95')]['has'](_0x442312))return void this[_0xe08c('0x95')][_0xe08c('0x9a')](_0x442312,{'range':_0x1bda00[_0xe08c('0xc8')],'userId':_0x24a8cd});const _0x12b544=this[_0xe08c('0x95')][_0xe08c('0xa6')](_0x442312),_0x260c98=_0x12b544['range'],_0xfdc8ac=_0x1bda00[_0xe08c('0x34')];null==_0x260c98&&null==_0xfdc8ac||_0x260c98&&_0xfdc8ac&&_0x260c98['isEqual'](_0xfdc8ac)?this[_0xe08c('0x95')][_0xe08c('0x76')](_0x1bda00[_0xe08c('0x96')]):_0x12b544[_0xe08c('0x19')]=_0x24a8cd;}}function J(_0x55a7de){const _0x908456=new _0x588493();_0x908456['rootName']=_0x55a7de[_0xe08c('0x38')];for(const _0x55d30d of _0x55a7de[_0xe08c('0x0')]()){const _0x44212a=_0x55d30d['_clone'](!0x0);_0x908456[_0xe08c('0xd9')](_0x44212a);}return _0x908456;}function j(_0x27dd33,_0x10e681,_0x2d1e71){const _0xc60e4a='elementEnd'==_0x27dd33[_0xe08c('0x74')]?_0x2d1e71['createPositionAt'](_0x27dd33[_0xe08c('0x72')],_0xe08c('0x6a')):_0x2d1e71[_0xe08c('0x8b')](_0x27dd33[_0xe08c('0x72')]);return _0x2d1e71[_0xe08c('0x22')](_0x10e681,_0xc60e4a[_0xe08c('0x89')],_0xc60e4a[_0xe08c('0x7f')]);}function B(_0x4a6ffe,_0xec4d7e,_0x3411c5){const _0x4b865f=_0xe08c('0xcb')==_0x4a6ffe['type']?_0x3411c5[_0xe08c('0x7d')](_0x4a6ffe[_0xe08c('0x72')],0x0):_0x3411c5[_0xe08c('0x14')](_0x4a6ffe['item']);return _0x3411c5[_0xe08c('0x22')](_0xec4d7e,_0x4b865f['path'],_0x4b865f['stickiness']);}
23
+ const _0x310c=['_getViewJson','getWalker','createRange','Empty\x20document','affectsData','_isPendingUpdate','getRevision','clone','deletions','RealTimeCollaborationClient','$text','_handleMergeOperation','_getPreviousFrom','_markers','elementStart','_fixRange','toVersion','roots','tableCell','locale','parse','_reset','_execute','clear','keepParagraph','start','vid_end','stickiness','view','startsWith','getRoot','_removeRevisionMarkers','markers','editing','get','_loadState','element','toModel','getTime','marker','adapter','toView','default','forEach','loadState','initialData','_loadedStateData','afterInit','keys','getRevisions','values','_isInit','authors','_copyMarkers','map','nodes','isReady','_appendChild','_clone','setSource','collaboration.channelId','init','includes','type','_setConversion','creatorId','creator','move','attributes','$graveyard','_diffRoots','nodeAfter','_handleMoveOperation','reverse','insertion','_makeRevision','_applyOperations','PENDING_ACTION_REVISION_HISTORY','_removePendingAction','insert','source','addRevisionData','fromVersion','newRange','sendBufferedUpdates','config','_handleOperation','_startingRevisionId','buildRevisionData','_createInitialRevision','_source','elementEnd','_baseIdsRoots','remove','getAttribute','_lastFrom','_fixPosition','_idsRoots','howMany','insertionPosition','_touchedMarkers','find','data-revision-','repository','_generateTape','_createCurrentRevision','getData','_markChanges','trim','childCount','_continueCurrentRevision','_loadRevisionData','insertions','_findInsertionIndex','_handleInsertOperation','max','_createFromRanges','vid_start','_lastTo','getLatestVersion','string','revision:','revision-end','editor-initial-data-replaced-with-revision-data','_cloneOperation','shift','revisionHistory.resumeUnsavedRevision','createdAt','from','oldRange','userId','_touched','children','_operations','for','deletion','slice','_update','_savedMetaData','_setAttribute','_bufferedUpdates','getIndex','_fixOperation','has','_baseRoots','useFillerType','_processRootBeforeSave','bind','updateRevisions','end','length','model','authorsIds','push','graveyardPosition','version','RevisionTracker','set','_getState','getNodeByPath','isEqual','_getVidAttributeName','getAncestors','getRange','history','parent','NEGATIVE_INFINITY','_replaceEditorDataWithRevisionData','size','_getBaseVids','_authorId','_initialRevisionId','sort','delete','RevisionsRepository','getUser','createPositionAt','text','_removeMetaData','_calculateMetaData','data','editor','baseVersion','initial','resolve','currentRevision','createPositionAfter','PendingActions','getOperations','offset','sourcePosition','_makeIdsRoot','_prepareViewToSave','name','finally','getCurrentRevisionId','_getFromVersion','marked','stringify','toData','_revisionDataBuilder','_rootNames','conversion','getOperation','reinsert','_insertChild','getChildren','rootName','root','_makeModelFromViewString','hasContent','split','documentFragment','Users','processor','getRevisionDocumentData','offsetSize','_addPendingAction','vid','createPositionFromPath','_bufferUpdate','getTransformedByOperation','filter','document','revision-start','_saveMetaData','add','revision','paragraph','path','_startingVersion','previousPosition','_revisionId','_pendingAction','_handleMarkerOperation','diffData','range','_handleSplitOperation','item','targetPosition','getRootNames','_saveEmptyMetaData','ready','then','plugins','requires'];(function(_0x21f6b7,_0x310c1d){const _0x23baca=function(_0x412928){while(--_0x412928){_0x21f6b7['push'](_0x21f6b7['shift']());}};_0x23baca(++_0x310c1d);}(_0x310c,0xf2));const _0x23ba=function(_0x21f6b7,_0x310c1d){_0x21f6b7=_0x21f6b7-0x0;let _0x23baca=_0x310c[_0x21f6b7];return _0x23baca;};import{Users as _0x5dfa45}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0xb35329,PendingActions as _0x334170}from'ckeditor5/src/core';import{logWarning as _0x2d0833,uid as _0x20b1ec}from'ckeditor5/src/utils';import{Position as _0x1394e0,Range as _0x1e150f,Element as _0x463cd8,DocumentFragment as _0x19b136,ViewText as _0x26ed65,ViewElement as _0x3f6c7f,ViewContainerElement as _0x5a5ea4,ViewAttributeElement as _0x10e9d6,ViewEmptyElement as _0x44a202,ViewRawElement as _0x284716,ViewUIElement as _0xb2d2d8,ViewDocumentFragment as _0x3f73e9}from'ckeditor5/src/engine';import _0x7c5365 from'./revisionsrepository';import{getTranslation as _0x25704c}from'./utils/common-translations';const V={'c':_0x5a5ea4,'a':_0x10e9d6,'e':_0x44a202,'r':_0x284716,'u':_0xb2d2d8};export default class l extends _0xb35329{static get['pluginName'](){return _0x23ba('0xa0');}static get[_0x23ba('0x3')](){return[_0x5dfa45,_0x7c5365,_0x334170];}constructor(_0x10e114){super(_0x10e114),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this[_0x23ba('0xb9')]),this[_0x23ba('0xaf')]=this[_0x23ba('0xb9')][_0x23ba('0x59')][_0x23ba('0x26')](_0x23ba('0x40'))||_0x23ba('0xbb'),this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4facd2=_0x20b1ec();this[_0x23ba('0x5e')]={'history':this['editor'][_0x23ba('0x9b')][_0x23ba('0xe3')][_0x23ba('0xa8')],'getLatestVersion':()=>Promise[_0x23ba('0xbc')](this[_0x23ba('0xb9')][_0x23ba('0x9b')][_0x23ba('0xe3')]['version']),'getCurrentRevisionId':()=>_0x4facd2},this[_0x23ba('0xa1')](_0x23ba('0x3c'),!0x1),this[_0x23ba('0xa1')]('isEnabled',!0x0),this[_0x23ba('0xa1')](_0x23ba('0x9'),!0x1),this[_0x23ba('0xb9')][_0x23ba('0x59')]['define'](_0x23ba('0x82'),!0x0),this[_0x23ba('0xb9')][_0x23ba('0xce')]['for']('upcast')['dataToMarker']({'view':_0x23ba('0xe7')});}[_0x23ba('0x41')](){this[_0x23ba('0x6b')]=this[_0x23ba('0xb9')][_0x23ba('0x2')][_0x23ba('0x26')](_0x23ba('0xb2')),this['_setConversion'](),this[_0x23ba('0xb9')][_0x23ba('0xb8')]['on'](_0x23ba('0x0'),()=>{const _0x3fd9bb=this[_0x23ba('0x6b')][_0x23ba('0xa')](0x0),_0x4789be=_0x3fd9bb&&null===_0x3fd9bb[_0x23ba('0x46')]?_0x3fd9bb:null;if(this[_0x23ba('0x72')]=!!_0x4789be&&this[_0x23ba('0xb9')]['config'][_0x23ba('0x26')](_0x23ba('0x82')),this[_0x23ba('0xb9')][_0x23ba('0x2')][_0x23ba('0x93')](_0x23ba('0xd'))){const _0x290c9d=this['_source'][_0x23ba('0xc7')](),_0x38be80=this[_0x23ba('0x6b')]['getRevision'](_0x290c9d);if(_0x38be80)this['_startingVersion']=_0x38be80[_0x23ba('0x56')],this[_0x23ba('0x72')]=!0x1;else{const _0x14db51=this[_0x23ba('0x5e')]['history'][_0x23ba('0x89')][_0x23ba('0x69')](_0x245260=>!_0x245260[_0x23ba('0x37')]),_0x529464=_0x14db51?_0x14db51['baseVersion']:this[_0x23ba('0x5e')][_0x23ba('0xa8')]['version'];_0x3fd9bb?(_0x3fd9bb[_0x23ba('0x14')]<_0x529464&&_0x3fd9bb['_update']({'toVersion':_0x529464}),this['_continueCurrentRevision']?(this[_0x23ba('0x5e')][_0x23ba('0xc7')]=()=>_0x4789be['id'],this[_0x23ba('0xea')]=_0x4789be['fromVersion']):(this[_0x23ba('0xea')]=_0x3fd9bb['toVersion'],this[_0x23ba('0x72')]=!0x1)):(this[_0x23ba('0xea')]=_0x529464,this[_0x23ba('0x72')]=!0x1);}}else _0x4789be&&(this[_0x23ba('0xb9')][_0x23ba('0x9b')][_0x23ba('0xe3')][_0x23ba('0xa8')][_0x23ba('0x9f')]=Math[_0x23ba('0x77')](_0x4789be['toVersion'],this[_0x23ba('0xb9')][_0x23ba('0x9b')][_0x23ba('0xe3')][_0x23ba('0xa8')][_0x23ba('0x9f')]),_0x4789be[_0x23ba('0x56')]===_0x4789be[_0x23ba('0x14')]?(0x0!==_0x4789be[_0x23ba('0x56')]&&(this[_0x23ba('0x5e')][_0x23ba('0xc7')]=()=>_0x4789be['id']),this[_0x23ba('0x72')]=!0x1):this['_continueCurrentRevision']&&(this['_source'][_0x23ba('0xc7')]=()=>_0x4789be['id'],this['_startingVersion']=_0x4789be['fromVersion'])),this[_0x23ba('0x72')]||(this[_0x23ba('0xea')]=this['editor'][_0x23ba('0x9b')]['document']['version']);this[_0x23ba('0xcc')]['init'](this[_0x23ba('0x5e')][_0x23ba('0xa8')]),this['_createInitialRevision'](this[_0x23ba('0xea')]),this[_0x23ba('0x6d')](this[_0x23ba('0xea')]),this['adapter']&&this[_0x23ba('0x58')]();}),this[_0x23ba('0x97')](_0x23ba('0x3c'))['to'](this,_0x23ba('0x9'),_0x1f948e=>!_0x1f948e);}async[_0x23ba('0x33')](){if(this[_0x23ba('0x6b')][_0x23ba('0x9a')]>0x0){const _0x446acb=this[_0x23ba('0x6b')][_0x23ba('0xa')](0x0),_0x81e6ae=await this['getRevisionDocumentData'](_0x446acb);this[_0x23ba('0xab')](_0x81e6ae);}}[_0x23ba('0x3f')](_0x1fdacb){this['_source']=_0x1fdacb;}async['update'](){const _0x363fec=await this[_0x23ba('0x5e')][_0x23ba('0x7b')]();if(_0x363fec>this['currentRevision'][_0x23ba('0x14')]){await this[_0x23ba('0x27')]();const _0x56f6fc=this['buildRevisionData']({'revision':this[_0x23ba('0xbd')],'to':_0x363fec});_0x56f6fc[_0x23ba('0x38')]=_0x56f6fc['authorsIds'][_0x23ba('0x3a')](_0x5c5fdc=>this[_0x23ba('0xb9')]['plugins'][_0x23ba('0x26')]('Users')[_0x23ba('0xb3')](_0x5c5fdc)),this[_0x23ba('0xbd')]['_update'](_0x56f6fc);}}async[_0x23ba('0x27')](){this[_0x23ba('0x72')]&&!this[_0x23ba('0x32')]&&(await this[_0x23ba('0x73')](this[_0x23ba('0xbd')]),this[_0x23ba('0xcc')][_0x23ba('0x30')](this[_0x23ba('0xbd')]),this[_0x23ba('0x32')]={'fromVersion':this['currentRevision'][_0x23ba('0x56')],'authors':this[_0x23ba('0xbd')][_0x23ba('0x38')]['slice']()});}async['saveRevision'](_0xa04770={},_0x13fbde=null){const _0x339228=[];await this[_0x23ba('0x27')](),this[_0x23ba('0x72')]=!0x1,_0x13fbde>this['currentRevision'][_0x23ba('0x14')]&&(_0x13fbde=null),null===_0x13fbde&&(_0x13fbde=await this[_0x23ba('0x5e')][_0x23ba('0x7b')]());const _0x336953=this[_0x23ba('0xc8')](_0x13fbde),_0x3e632b=this['buildRevisionData']({'from':_0x336953,'to':_0x13fbde});if(this[_0x23ba('0xbd')][_0x23ba('0x14')]<_0x13fbde){const _0xbb432b=this[_0x23ba('0x5c')]({'revision':this[_0x23ba('0xbd')],'from':_0x13fbde,'to':_0x13fbde});_0xbb432b[_0x23ba('0x38')]=[],_0xbb432b[_0x23ba('0x9c')]=[],_0xbb432b['id']=this['currentRevision']['id'],this[_0x23ba('0xbd')][_0x23ba('0x8d')](_0xbb432b,!0x0),delete _0xbb432b[_0x23ba('0x38')],_0x339228['push'](_0xbb432b);}_0xa04770['creatorId']=this[_0x23ba('0xb9')]['plugins'][_0x23ba('0x26')](_0x23ba('0xd9'))['me']['id'],_0xa04770[_0x23ba('0xc5')]=_0xa04770['name']||null,_0xa04770['id']=_0xa04770['id']||_0x20b1ec(),_0xa04770={..._0xa04770,..._0x3e632b};const _0x5c4e09=this[_0x23ba('0x55')](_0xa04770);_0x339228[_0x23ba('0x9d')](_0xa04770);const _0x3836e5=this['repository'][_0x23ba('0x91')](_0x5c4e09);if(0x0!==_0x3836e5){const _0x28764d=this[_0x23ba('0x6b')][_0x23ba('0xa')](_0x3836e5-0x1);if(_0x28764d['fromVersion']!==_0x13fbde){const _0x4cf470=this[_0x23ba('0xcc')][_0x23ba('0x6e')](_0x13fbde,_0x28764d['toVersion']),_0x5a079b={'id':_0x28764d['id'],'diffData':_0x4cf470[_0x23ba('0xef')],'authorsIds':_0x4cf470[_0x23ba('0x9c')],'authors':_0x4cf470['authorsIds'][_0x23ba('0x3a')](_0x46f53f=>this[_0x23ba('0xb9')][_0x23ba('0x2')][_0x23ba('0x26')]('Users')[_0x23ba('0xb3')](_0x46f53f)),'fromVersion':_0x13fbde};_0x28764d===this[_0x23ba('0xbd')]&&(_0x5a079b[_0x23ba('0x83')]=new Date(_0xa04770[_0x23ba('0x83')][_0x23ba('0x2a')]()+0xa)),_0x28764d['_update'](_0x5a079b,!0x0),delete _0x5a079b['authors'],_0x339228[_0x23ba('0x9d')](_0x5a079b);}}if(this[_0x23ba('0x2c')]){for(const _0x4d10f0 of _0x339228)this[_0x23ba('0xe0')](_0x4d10f0['id'],_0x4d10f0,!0x0);this[_0x23ba('0x58')]();}return _0x5c4e09;}[_0x23ba('0x55')](_0x17bfe0){const _0x5cad5c=this[_0x23ba('0x6b')]['createRevision'](_0x17bfe0);return this[_0x23ba('0x2c')]&&_0x5cad5c['on']('_update',(_0x5948d6,_0x556399,_0x3cd219)=>{_0x3cd219||(this[_0x23ba('0xe0')](_0x556399['id'],_0x556399,!0x0),this[_0x23ba('0x58')]());}),this['repository']['addRevision'](_0x5cad5c,this[_0x23ba('0x75')](_0x5cad5c)),_0x5cad5c;}async[_0x23ba('0xdb')](_0x11613f){await this[_0x23ba('0x73')](_0x11613f);const _0x4c1e74={};for(const _0x1fbc2f in _0x11613f[_0x23ba('0xef')]){const _0x21cee7=this[_0x23ba('0x23')](JSON['parse'](_0x11613f['diffData'][_0x1fbc2f][_0x23ba('0x74')])),_0x55976f=this['editor'][_0x23ba('0x25')][_0x23ba('0x20')][_0x23ba('0xe3')],_0x5c8e73=new _0x3f73e9(_0x55976f,_0x21cee7[_0x23ba('0x3a')](_0x140afa=>F(_0x140afa,this[_0x23ba('0xb9')])));this[_0x23ba('0xb9')][_0x23ba('0xb8')][_0x23ba('0xda')][_0x23ba('0x95')](_0x23ba('0xc9')),_0x4c1e74[_0x1fbc2f]=this[_0x23ba('0xb9')][_0x23ba('0xb8')]['processor'][_0x23ba('0xcb')](_0x5c8e73),this['editor']['data']['processor'][_0x23ba('0x95')](_0x23ba('0x2e'));}return _0x4c1e74;}[_0x23ba('0x58')](){if(0x0===this[_0x23ba('0x90')][_0x23ba('0xac')])return;if(this[_0x23ba('0x9')])return;let _0x922ab0=Array[_0x23ba('0x84')](this['_bufferedUpdates']['values']());this[_0x23ba('0x90')][_0x23ba('0x1b')]();for(let _0x28998b=0x0;_0x28998b<_0x922ab0['length'];_0x28998b++){const _0x24eb62=_0x922ab0[_0x28998b];let _0x4419d7=!0x1;for(const _0x423759 of Object['keys'](_0x24eb62))void 0x0===_0x24eb62[_0x423759]?delete _0x24eb62[_0x423759]:'id'!==_0x423759&&(_0x4419d7=!0x0);_0x4419d7||(_0x922ab0[_0x28998b]=null);}if(_0x922ab0=_0x922ab0['filter'](_0x4eb51a=>null!==_0x4eb51a),!_0x922ab0['length'])return;for(let _0x32537b=0x0;_0x32537b<_0x922ab0['length'];_0x32537b++){const _0x3e717f=_0x922ab0[_0x32537b];void 0x0!==_0x3e717f[_0x23ba('0x56')]&&void 0x0===_0x3e717f['toVersion']&&(_0x3e717f[_0x23ba('0x14')]=this[_0x23ba('0x6b')][_0x23ba('0xa')](_0x3e717f['id'])[_0x23ba('0x14')]),void 0x0!==_0x3e717f[_0x23ba('0x14')]&&void 0x0===_0x3e717f[_0x23ba('0x56')]&&(_0x3e717f[_0x23ba('0x56')]=this[_0x23ba('0x6b')]['getRevision'](_0x3e717f['id'])[_0x23ba('0x56')]);}const _0xd47d60=this[_0x23ba('0xb9')][_0x23ba('0x59')][_0x23ba('0x26')](_0x23ba('0x40'));this[_0x23ba('0x9')]=!0x0,this[_0x23ba('0xdd')](),this[_0x23ba('0x2c')][_0x23ba('0x98')](_0x922ab0,_0xd47d60)[_0x23ba('0xc6')](()=>{this[_0x23ba('0x9')]=!0x1;})[_0x23ba('0x1')](_0x12499a=>{if(_0x12499a)for(const _0x389d32 of _0x12499a)this['setRevisionData']({'id':_0x389d32['id'],'createdAt':_0x389d32[_0x23ba('0x83')]});this[_0x23ba('0x52')](),this[_0x23ba('0x58')]();});}[_0x23ba('0xab')](_0x48a6fc){let _0x4286fc=this['editor'][_0x23ba('0x59')]['get']('initialData');if(void 0x0===_0x4286fc){_0x4286fc={};for(const _0x39e45d of this['editor'][_0x23ba('0x9b')][_0x23ba('0xe3')][_0x23ba('0xf4')]())_0x4286fc[_0x39e45d]='';}_0x23ba('0x7c')==typeof _0x4286fc&&(_0x4286fc={'main':_0x4286fc});let _0x1fd275=!0x1;for(const _0x9a16d4 of Object[_0x23ba('0x34')](_0x4286fc))_0x48a6fc[_0x9a16d4]&&(_0x4286fc[_0x9a16d4]!==_0x48a6fc[_0x9a16d4]&&''!==_0x4286fc[_0x9a16d4][_0x23ba('0x70')]()&&(_0x1fd275=!0x0),_0x4286fc[_0x9a16d4]=_0x48a6fc[_0x9a16d4]);_0x1fd275&&_0x2d0833(_0x23ba('0x7f')),this[_0x23ba('0xb9')][_0x23ba('0x59')]['set'](_0x23ba('0x31'),_0x4286fc);}[_0x23ba('0xdd')](){if(!this['_pendingAction']){const _0x3bb858=this[_0x23ba('0xb9')][_0x23ba('0x2')][_0x23ba('0x26')](_0x23ba('0xbf'));this[_0x23ba('0xed')]=_0x3bb858[_0x23ba('0xe6')](_0x25704c(this[_0x23ba('0xb9')][_0x23ba('0x17')],_0x23ba('0x51')));}}[_0x23ba('0x52')](){this['_pendingAction']&&(this[_0x23ba('0xb9')][_0x23ba('0x2')]['get'](_0x23ba('0xbf'))[_0x23ba('0x61')](this[_0x23ba('0xed')]),this[_0x23ba('0xed')]=null);}[_0x23ba('0x75')](_0x5be0c0){const _0x40aecc=this[_0x23ba('0x6b')][_0x23ba('0x35')]();_0x40aecc[_0x23ba('0x4d')]();let _0x2590d4=0x0;for(;_0x2590d4<_0x40aecc[_0x23ba('0x9a')];){const _0x314720=_0x40aecc[_0x2590d4];if(_0x314720===this[_0x23ba('0xbd')]){_0x2590d4++;continue;}if(_0x314720['id']===this[_0x23ba('0xaf')])break;const _0x3484c5=_0x5be0c0[_0x23ba('0x14')]-_0x314720[_0x23ba('0x14')]||_0x5be0c0[_0x23ba('0x56')]-_0x314720['fromVersion'];if(_0x3484c5>0x0)break;if(_0x3484c5<0x0)_0x2590d4++;else{if(!_0x5be0c0['creator']&&_0x314720[_0x23ba('0x46')])break;if(_0x314720[_0x23ba('0x46')]||!_0x5be0c0[_0x23ba('0x46')]){if(_0x5be0c0[_0x23ba('0x83')]>_0x314720[_0x23ba('0x83')])break;_0x2590d4++;}else _0x2590d4++;}}return _0x2590d4;}['setRevisionData'](_0x2b6e5e){const _0x1f085d=this['repository'][_0x23ba('0xa')](_0x2b6e5e['id']);if(_0x2b6e5e['createdAt']&&(_0x2b6e5e[_0x23ba('0x83')]=new Date(_0x2b6e5e['createdAt'])),_0x2b6e5e[_0x23ba('0x9c')]){const _0x64a2d7=this[_0x23ba('0xb9')][_0x23ba('0x2')][_0x23ba('0x26')](_0x23ba('0xd9'));_0x2b6e5e[_0x23ba('0x38')]=_0x2b6e5e[_0x23ba('0x9c')][_0x23ba('0x3a')](_0x3a7337=>_0x64a2d7['getUser'](_0x3a7337));}_0x1f085d[_0x23ba('0x8d')](_0x2b6e5e,!0x0);}[_0x23ba('0x5c')]({revision:_0x5e9dd2=null,from:_0x7405ed=null,to:_0x419076=null}){_0x7405ed=null!==_0x7405ed?_0x7405ed:_0x5e9dd2[_0x23ba('0x56')],_0x419076=null!==_0x419076?_0x419076:_0x5e9dd2[_0x23ba('0x14')];const _0x5599af=this['_revisionDataBuilder'][_0x23ba('0x6e')](_0x7405ed,_0x419076),_0x5c3a65={'diffData':_0x5599af[_0x23ba('0xef')],'authorsIds':_0x5599af[_0x23ba('0x9c')],'fromVersion':_0x7405ed,'toVersion':_0x419076};if(!_0x5e9dd2||_0x419076!==_0x5e9dd2[_0x23ba('0x14')]){const _0x5700ef=_0x419076-0x1,_0x29b913=this['_source'][_0x23ba('0xa8')][_0x23ba('0xcf')](_0x5700ef);_0x5c3a65[_0x23ba('0x83')]=_0x29b913&&_0x29b913[_0x23ba('0x83')]||new Date();}if(this[_0x23ba('0x32')]&&_0x7405ed===this[_0x23ba('0x32')][_0x23ba('0x56')])for(const _0x2bf69a of this[_0x23ba('0x32')][_0x23ba('0x38')])_0x5c3a65[_0x23ba('0x9c')][_0x23ba('0x42')](_0x2bf69a['id'])||_0x5c3a65[_0x23ba('0x9c')][_0x23ba('0x9d')](_0x2bf69a['id']);return _0x5c3a65;}[_0x23ba('0x73')](_0x3a8b14){if(!_0x3a8b14||_0x3a8b14[_0x23ba('0xef')])return Promise[_0x23ba('0xbc')]();{const _0x94c6fd=this[_0x23ba('0xb9')][_0x23ba('0x59')][_0x23ba('0x26')](_0x23ba('0x40'));return this[_0x23ba('0x2c')][_0x23ba('0xa')]({'channelId':_0x94c6fd,'revisionId':_0x3a8b14['id']})[_0x23ba('0x1')](_0x519312=>{_0x3a8b14[_0x23ba('0xef')]=_0x519312[_0x23ba('0xef')];});}}['_bufferUpdate'](_0x19ab8c,_0x5000e6,_0x3510f5){if(this['_bufferedUpdates'][_0x23ba('0x93')](_0x19ab8c)){const _0x4a4391=this['_bufferedUpdates']['get'](_0x19ab8c);_0x5000e6=_0x3510f5?{..._0x4a4391,..._0x5000e6}:{..._0x5000e6,..._0x4a4391};}this['_bufferedUpdates'][_0x23ba('0xa1')](_0x19ab8c,_0x5000e6);}[_0x23ba('0xc8')](_0x259e2b){const _0x15c87e=this[_0x23ba('0x6b')][_0x23ba('0x35')]();_0x15c87e[_0x23ba('0x4d')](),_0x15c87e[_0x23ba('0x81')]();const _0x19f865=_0x15c87e[_0x23ba('0x69')](_0x490acc=>_0x490acc[_0x23ba('0x14')]<=_0x259e2b)[_0x23ba('0x14')];return _0x19f865<this['_startingVersion']?this[_0x23ba('0xea')]:_0x19f865;}[_0x23ba('0x5d')](_0x519e06){const _0x311db1=this['repository'][_0x23ba('0xa')](this[_0x23ba('0x6b')]['length']-0x1);if(_0x311db1)this[_0x23ba('0xaf')]=_0x311db1['id'];else{const _0x39454c=!this[_0x23ba('0xb9')]['model'][_0x23ba('0xe3')][_0x23ba('0x15')][_0x23ba('0x69')](_0x3fc1d2=>this[_0x23ba('0xb9')][_0x23ba('0x9b')][_0x23ba('0xd6')](_0x3fc1d2)),_0x39abc8=this[_0x23ba('0xb9')][_0x23ba('0x2')]['get'](_0x23ba('0xd9'))['me']['id'],_0x14decf=_0x25704c(this[_0x23ba('0xb9')]['locale'],_0x39454c?_0x23ba('0x7'):'Initial\x20revision');this[_0x23ba('0x4f')]({'from':_0x519e06,'to':_0x519e06,'id':this[_0x23ba('0xaf')],'name':_0x14decf,'creatorId':_0x39abc8});}}[_0x23ba('0x6d')](_0x5d87ff){const _0x2dee18=this[_0x23ba('0x5e')][_0x23ba('0xc7')]();this['currentRevision']=this[_0x23ba('0x6b')][_0x23ba('0xa')](_0x2dee18),this['currentRevision']||(this[_0x23ba('0xbd')]=this[_0x23ba('0x4f')]({'from':_0x5d87ff,'to':_0x5d87ff,'id':_0x2dee18,'name':'','creatorId':null}));}[_0x23ba('0x4f')]({name:_0x20cef2,from:_0x407f83,to:_0x43eaaa,creatorId:_0xe8ba66,id:_0x3c7d01}){const _0x3b5a90=this[_0x23ba('0x5c')]({'from':_0x407f83,'to':_0x43eaaa});_0x3b5a90[_0x23ba('0xc5')]=_0x20cef2,_0x3b5a90[_0x23ba('0x45')]=_0xe8ba66,_0x3b5a90['id']=_0x3c7d01;const _0x2c1a74=this[_0x23ba('0x55')](_0x3b5a90);return this[_0x23ba('0x2c')]&&this[_0x23ba('0xe0')](_0x3b5a90['id'],_0x3b5a90,!0x0),_0x2c1a74;}[_0x23ba('0x44')](){this[_0x23ba('0xb9')][_0x23ba('0xce')][_0x23ba('0x8a')]('dataDowncast')['markerToData']({'model':_0x23ba('0xe7')});}[_0x23ba('0x23')](_0x563271){return(_0x563271=_0x563271[_0x23ba('0xe2')](_0x1de5fc=>!_0x1de5fc[_0x23ba('0xc5')]||_0x23ba('0xe4')!==_0x1de5fc[_0x23ba('0xc5')]&&_0x23ba('0x7e')!==_0x1de5fc[_0x23ba('0xc5')]))[_0x23ba('0x2f')](_0x356012=>{'string'!=typeof _0x356012&&(_0x356012[_0x23ba('0x88')]=this[_0x23ba('0x23')](_0x356012[_0x23ba('0x88')]),_0x356012[_0x23ba('0x48')]=_0x356012[_0x23ba('0x48')][_0x23ba('0xe2')](_0x59a275=>!_0x59a275[0x0][_0x23ba('0x21')](_0x23ba('0x6a'))));}),_0x563271;}}function F(_0x2f95fd,_0x24526a){const _0x580e47=_0x24526a[_0x23ba('0x25')][_0x23ba('0x20')][_0x23ba('0xe3')];if(_0x23ba('0x7c')==typeof _0x2f95fd)return new _0x26ed65(_0x580e47,_0x2f95fd);{const _0x3297f6=_0x2f95fd[_0x23ba('0x88')][_0x23ba('0x3a')](_0x4b6690=>F(_0x4b6690,_0x24526a));return new(V[_0x2f95fd['type']]||_0x3f6c7f)(_0x580e47,_0x2f95fd['name'],_0x2f95fd[_0x23ba('0x48')],_0x3297f6);}}class T{constructor(_0x589ec2){this['editor']=_0x589ec2,this[_0x23ba('0x8e')]=new Map(),this[_0x23ba('0x63')]=-0x1,this['_lastTo']=-0x1,this[_0x23ba('0x11')]=new Map(),this[_0x23ba('0x4a')]=new Map(),this['_baseRoots']=new Map(),this[_0x23ba('0x65')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x23ba('0x87')]=new Map(),this[_0x23ba('0x68')]=new Map(),this[_0x23ba('0xec')]=0x1,this[_0x23ba('0xcd')]=this[_0x23ba('0xb9')][_0x23ba('0x9b')][_0x23ba('0xe3')]['getRootNames'](),this[_0x23ba('0xcd')][_0x23ba('0x9d')]('$graveyard');}[_0x23ba('0x41')](_0x455bb8){this['source']=_0x455bb8;const _0x22c551=new Map();for(const _0x5a34a of this['_rootNames']){const _0x2ce3ee=J(this[_0x23ba('0xb9')][_0x23ba('0x9b')][_0x23ba('0xe3')][_0x23ba('0x22')](_0x5a34a));_0x22c551[_0x23ba('0xa1')](_0x5a34a,_0x2ce3ee);}const _0x1d40f2=Array[_0x23ba('0x84')](this['editor'][_0x23ba('0x9b')]['markers'])[_0x23ba('0x3a')](_0x583f80=>[_0x583f80[_0x23ba('0xc5')],_0x583f80[_0x23ba('0xa7')]()]),_0x3b4232=this[_0x23ba('0x54')][_0x23ba('0x9f')];this[_0x23ba('0xe5')](_0x3b4232,_0x22c551,_0x1d40f2),this[_0x23ba('0x5b')]=this[_0x23ba('0xec')];}[_0x23ba('0x6e')](_0x5dcdb1,_0x2f325a){if(this['_lastFrom']===_0x5dcdb1&&this[_0x23ba('0x7a')]<=_0x2f325a)this[_0x23ba('0x8e')][_0x23ba('0xac')]>0x1&&this[_0x23ba('0xb6')](this[_0x23ba('0x7a')]),this[_0x23ba('0x50')](this['_lastTo'],_0x2f325a,!0x0);else{if(!this[_0x23ba('0x8e')][_0x23ba('0x93')](_0x5dcdb1)){const _0x471c8b=this[_0x23ba('0x10')](_0x5dcdb1);this['_calculateMetaData'](_0x471c8b,_0x5dcdb1,!0x1);}this['_calculateMetaData'](_0x5dcdb1,_0x2f325a,!0x0);}return this[_0x23ba('0x63')]=_0x5dcdb1,this[_0x23ba('0x7a')]=_0x2f325a,this[_0x23ba('0xa2')]();}[_0x23ba('0x30')](_0x46ca8f){this[_0x23ba('0x19')](),this[_0x23ba('0x63')]=_0x46ca8f[_0x23ba('0x56')],this[_0x23ba('0x7a')]=_0x46ca8f[_0x23ba('0x14')];for(const _0x1fa5f9 in _0x46ca8f['diffData']){const _0x579f9f=this['_makeModelFromViewString'](_0x46ca8f['diffData'][_0x1fa5f9][_0x23ba('0xc')]);_0x579f9f['rootName']=_0x1fa5f9,this[_0x23ba('0x94')][_0x23ba('0xa1')](_0x1fa5f9,_0x579f9f);const _0x1a639b=this[_0x23ba('0xc3')](_0x579f9f);this['_baseIdsRoots'][_0x23ba('0xa1')](_0x1fa5f9,_0x1a639b);for(const [_0x1d87be,_0x4d74fa]of _0x579f9f['markers']){if(!_0x1d87be[_0x23ba('0x21')](_0x23ba('0x7d')))continue;const _0x3aed3d=_0x1d87be[_0x23ba('0xd7')](':')[0x2];for(const _0x1fb0b8 of _0x4d74fa[_0x23ba('0x5')]({'singleCharacters':!0x0})){const _0x101ff6=this[_0x23ba('0xa5')](_0x1fb0b8),_0x4982ee='elementEnd'==_0x1fb0b8[_0x23ba('0x43')]?_0x1fb0b8[_0x23ba('0xeb')][_0x23ba('0xe9')][_0x23ba('0x8c')](0x0,-0x1):_0x1fb0b8[_0x23ba('0xeb')][_0x23ba('0xe9')],_0x31bb7a=_0x1a639b[_0x23ba('0xa3')](_0x4982ee)[_0x23ba('0x62')](_0x101ff6);this[_0x23ba('0x87')][_0x23ba('0xa1')](_0x31bb7a,{'userId':_0x3aed3d});}}}this[_0x23ba('0x5b')]=this[_0x23ba('0xec')];const _0x21e610=[...Array(this[_0x23ba('0xec')])['keys']()][_0x23ba('0x8c')](0x1)['filter'](_0xcd5278=>!this[_0x23ba('0x87')][_0x23ba('0x93')](_0xcd5278));let _0x355ba4=0x0;for(const _0x163521 in _0x46ca8f[_0x23ba('0xef')]){const _0x379f80=this[_0x23ba('0xd5')](_0x46ca8f[_0x23ba('0xef')][_0x163521][_0x23ba('0x74')]);_0x379f80['rootName']=_0x163521,this['_diffRoots']['set'](_0x163521,_0x379f80);const _0x3bdd43=this['_makeIdsRoot'](_0x379f80,Number[_0x23ba('0xaa')]);this[_0x23ba('0x65')][_0x23ba('0xa1')](_0x163521,_0x3bdd43);for(const [_0xf70532,_0x57b146]of _0x379f80[_0x23ba('0x24')]){if(!_0xf70532[_0x23ba('0x21')](_0x23ba('0x7d')))continue;const _0x1f3334=_0xf70532[_0x23ba('0xd7')](':')[0x2];for(const _0x51ac70 of _0x57b146['getWalker']({'singleCharacters':!0x0})){const _0x538cc2=this[_0x23ba('0xa5')](_0x51ac70),_0x4a124c=this[_0x23ba('0xec')]++,_0x50d772=_0x23ba('0x5f')==_0x51ac70['type']?_0x51ac70[_0x23ba('0xeb')][_0x23ba('0xe9')][_0x23ba('0x8c')](0x0,-0x1):_0x51ac70[_0x23ba('0xeb')][_0x23ba('0xe9')];_0x3bdd43['getNodeByPath'](_0x50d772)[_0x23ba('0x8f')](_0x538cc2,_0x4a124c),this[_0x23ba('0x87')][_0x23ba('0xa1')](_0x4a124c,{'userId':_0x1f3334});}}for(const _0x1a80af of this[_0x23ba('0xb9')][_0x23ba('0x9b')]['createRangeIn'](_0x379f80)['getWalker']({'singleCharacters':!0x0})){const _0x4f84c6=this[_0x23ba('0xa5')](_0x1a80af),_0x5e1dc9=_0x23ba('0x5f')==_0x1a80af[_0x23ba('0x43')]?_0x1a80af[_0x23ba('0xeb')][_0x23ba('0xe9')][_0x23ba('0x8c')](0x0,-0x1):_0x1a80af[_0x23ba('0xeb')][_0x23ba('0xe9')],_0x47504f=_0x3bdd43[_0x23ba('0xa3')](_0x5e1dc9);_0x47504f[_0x23ba('0x62')](_0x4f84c6)>0x0||_0x47504f[_0x23ba('0x8f')](_0x4f84c6,_0x21e610[_0x355ba4++]);}const _0x113327=new _0x19b136();_0x113327[_0x23ba('0xd3')]=_0x23ba('0x49'),this[_0x23ba('0x94')][_0x23ba('0xa1')]('$graveyard',_0x113327),this[_0x23ba('0x60')][_0x23ba('0xa1')](_0x23ba('0x49'),this['_makeIdsRoot'](_0x113327,0x1));const _0x4614c2=new _0x19b136();_0x4614c2['rootName']=_0x23ba('0x49'),this['_diffRoots'][_0x23ba('0xa1')](_0x23ba('0x49'),_0x4614c2),this[_0x23ba('0x65')][_0x23ba('0xa1')](_0x23ba('0x49'),this[_0x23ba('0xc3')](_0x4614c2,0x1));for(const [_0x515e1f,_0x5d0ff8]of _0x379f80[_0x23ba('0x24')])_0x515e1f['startsWith'](_0x23ba('0x7d'))||this[_0x23ba('0x11')][_0x23ba('0xa1')](_0x515e1f,_0x5d0ff8);}const _0x542044=Array[_0x23ba('0x84')](this[_0x23ba('0x4a')])[_0x23ba('0x3a')](([_0x1e5a2a,_0xa07a10])=>[_0x1e5a2a,J(_0xa07a10)]);this[_0x23ba('0xe5')](this[_0x23ba('0x7a')],_0x542044,this[_0x23ba('0x11')]);}[_0x23ba('0xd5')](_0x1ccede){const _0x50d3f0=JSON[_0x23ba('0x18')](_0x1ccede),_0x559a60=this[_0x23ba('0xb9')]['editing'][_0x23ba('0x20')][_0x23ba('0xe3')],_0xdbef9b=new _0x3f73e9(_0x559a60,_0x50d3f0[_0x23ba('0x3a')](_0x14fc3c=>F(_0x14fc3c,this[_0x23ba('0xb9')])));return this[_0x23ba('0xb9')][_0x23ba('0xb8')][_0x23ba('0x29')](_0xdbef9b);}['_saveEmptyMetaData'](){const _0x57d292=new Map();for(const _0x3350fb of this[_0x23ba('0xcd')]){const _0x1e6ae6=new _0x19b136();_0x1e6ae6[_0x23ba('0xd3')]=_0x3350fb,_0x57d292[_0x23ba('0xa1')](_0x3350fb,_0x1e6ae6);}this[_0x23ba('0xe5')](Number[_0x23ba('0xaa')],_0x57d292,[]);}[_0x23ba('0xe5')](_0x16ac55,_0x29bdf8,_0x3ece57){const _0x3ab914=new Map(_0x29bdf8),_0x7dbdd2=new Map();for(const [_0x1dea37,_0x29d05d]of _0x3ece57)_0x7dbdd2[_0x23ba('0xa1')](_0x1dea37,{'start':_0x29d05d[_0x23ba('0x1d')][_0x23ba('0xb')](),'end':_0x29d05d[_0x23ba('0x99')]['clone'](),'rootName':_0x29d05d[_0x23ba('0xd4')][_0x23ba('0xd3')]});this[_0x23ba('0x8e')][_0x23ba('0xa1')](_0x16ac55,{'roots':_0x3ab914,'markers':_0x7dbdd2});}[_0x23ba('0xb6')](_0x26ff2e){this[_0x23ba('0x8e')]['delete'](_0x26ff2e);}['reInit'](){this['_reset'](),this[_0x23ba('0x63')]=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this[_0x23ba('0x41')](this[_0x23ba('0x54')]);}['_reset'](){this[_0x23ba('0x87')][_0x23ba('0x1b')](),this['_touchedMarkers'][_0x23ba('0x1b')](),this[_0x23ba('0x4a')][_0x23ba('0x1b')](),this[_0x23ba('0x94')][_0x23ba('0x1b')](),this[_0x23ba('0x65')][_0x23ba('0x1b')](),this[_0x23ba('0x60')]['clear'](),this[_0x23ba('0x11')][_0x23ba('0x1b')](),this[_0x23ba('0xec')]=0x1,this[_0x23ba('0x5b')]=this[_0x23ba('0xec')];}['_makeIdsRoot'](_0x1ac9a1,_0x3c60a3=null){let _0x587def=null;_0x1ac9a1['is']('documentFragment')||(_0x587def=new _0x463cd8(_0x1ac9a1[_0x23ba('0xc5')],{'vid_start':null===_0x3c60a3?this[_0x23ba('0xec')]++:_0x3c60a3++}));const _0x27257a=[];for(const _0x50f63f of _0x1ac9a1['getChildren']())if(_0x50f63f['is']('element')){_0x27257a[_0x23ba('0x9d')](this['_makeIdsRoot'](_0x50f63f,_0x3c60a3));const _0xb22d93=_0x27257a[_0x27257a[_0x23ba('0x9a')]-0x1];null!==_0x3c60a3&&(_0x3c60a3=_0xb22d93['is'](_0x23ba('0x28'),_0x23ba('0xe'))?_0xb22d93[_0x23ba('0x62')]('vid')+0x1:_0xb22d93[_0x23ba('0x62')](_0x23ba('0x1e'))+0x1);}else for(let _0x30d92a=0x0;_0x30d92a<_0x50f63f[_0x23ba('0xdc')];_0x30d92a++)_0x27257a[_0x23ba('0x9d')](new _0x463cd8(_0x23ba('0xe'),{'vid':null===_0x3c60a3?this['_revisionId']++:_0x3c60a3++}));if(_0x1ac9a1['is'](_0x23ba('0xd8'))){const _0x1548a8=new _0x19b136(_0x27257a);return _0x1548a8['rootName']=_0x1ac9a1[_0x23ba('0xd3')],_0x1548a8;}return _0x587def[_0x23ba('0x8f')](_0x23ba('0x1e'),null===_0x3c60a3?this[_0x23ba('0xec')]++:_0x3c60a3++),_0x587def[_0x23ba('0xd1')](0x0,_0x27257a),_0x587def;}[_0x23ba('0xb7')](_0x1d4e94,_0xb50eb4,_0x150cee){this[_0x23ba('0x19')]();const {roots:_0x9a4f9c,markers:_0x2af9c2}=this[_0x23ba('0x8e')][_0x23ba('0x26')](_0x1d4e94);this[_0x23ba('0x94')]=new Map(_0x9a4f9c);for(const [_0x320299,_0x30aad4]of this[_0x23ba('0x94')])if('$graveyard'!==_0x320299&&(this[_0x23ba('0x4a')][_0x23ba('0xa1')](_0x320299,J(_0x30aad4)),_0x150cee)){const _0x1cdabe=this[_0x23ba('0xec')];this[_0x23ba('0x65')][_0x23ba('0xa1')](_0x320299,this[_0x23ba('0xc3')](_0x30aad4)),this[_0x23ba('0x60')][_0x23ba('0xa1')](_0x320299,this[_0x23ba('0xc3')](_0x30aad4,_0x1cdabe));}this[_0x23ba('0x5b')]=this[_0x23ba('0xec')],this[_0x23ba('0x4a')][_0x23ba('0xa1')](_0x23ba('0x49'),J(this[_0x23ba('0x94')][_0x23ba('0x26')](_0x23ba('0x49')))),_0x150cee&&this[_0x23ba('0x65')][_0x23ba('0xa1')](_0x23ba('0x49'),this['_makeIdsRoot'](this[_0x23ba('0x94')][_0x23ba('0x26')](_0x23ba('0x49'))));for(const [_0x38b93b,_0x185769]of _0x2af9c2){const _0x19bd03=this[_0x23ba('0x94')][_0x23ba('0x26')](_0x185769[_0x23ba('0xd3')]),_0x2929f3=this[_0x23ba('0x4a')][_0x23ba('0x26')](_0x185769['rootName']),_0x3fd7f5=new _0x1e150f(this['_fixPosition'](_0x185769[_0x23ba('0x1d')],_0x19bd03),this[_0x23ba('0x64')](_0x185769[_0x23ba('0x99')],_0x19bd03)),_0x16f403=this[_0x23ba('0x13')](_0x3fd7f5,_0x2929f3);_0x19bd03[_0x23ba('0x24')][_0x23ba('0xa1')](_0x38b93b,_0x3fd7f5),this[_0x23ba('0x11')][_0x23ba('0xa1')](_0x38b93b,_0x16f403);}this[_0x23ba('0x50')](_0x1d4e94,_0xb50eb4,_0x150cee);}[_0x23ba('0x50')](_0x455bbf,_0x243b00,_0x135356){for(const _0x138d6a of this[_0x23ba('0x54')][_0x23ba('0xc0')](_0x455bbf,_0x243b00))this[_0x23ba('0x5a')](_0x138d6a,_0x135356);for(const _0xcc4973 of this[_0x23ba('0x4a')][_0x23ba('0x36')]())_0xcc4973[_0x23ba('0x24')][_0x23ba('0x1b')]();for(const [_0x153994,_0x3c6bb5]of this[_0x23ba('0x11')]){this[_0x23ba('0x4a')][_0x23ba('0x26')](_0x3c6bb5[_0x23ba('0xd4')][_0x23ba('0xd3')])['markers'][_0x23ba('0xa1')](_0x153994,_0x3c6bb5[_0x23ba('0xb')]());}this[_0x23ba('0xe5')](_0x243b00,Array[_0x23ba('0x84')](this[_0x23ba('0x4a')])[_0x23ba('0x3a')](([_0x12db68,_0x2f4b9b])=>[_0x12db68,J(_0x2f4b9b)]),this[_0x23ba('0x11')]);}[_0x23ba('0x10')](_0x4361a5){const _0x1914da=Array[_0x23ba('0x84')](this[_0x23ba('0x8e')][_0x23ba('0x34')]());_0x1914da[_0x23ba('0xb0')]((_0x3fa1ab,_0x9f24c8)=>_0x3fa1ab-_0x9f24c8),_0x1914da[_0x23ba('0x4d')]();for(const _0x4592a7 of _0x1914da)if(_0x4592a7<_0x4361a5)return _0x4592a7;return this[_0x23ba('0xf5')](),Number[_0x23ba('0xaa')];}['_copyMarkers'](_0x17aa32,_0x14f60b){const _0xf09bbb=Array[_0x23ba('0x84')](_0x14f60b[_0x23ba('0x24')])[_0x23ba('0x3a')](([_0x4e60f2,_0x78901d])=>[_0x4e60f2,this[_0x23ba('0x13')](_0x78901d,_0x17aa32)]);_0x17aa32[_0x23ba('0x24')]=new Map(_0xf09bbb);}['_transformMarkers'](_0x2d9e41){for(const _0x5dcba4 of this[_0x23ba('0x11')][_0x23ba('0x36')]()){const _0x2b69be=_0x5dcba4[_0x23ba('0xe1')](_0x2d9e41),_0x4f16a2=_0x1e150f[_0x23ba('0x78')](_0x2b69be);_0x5dcba4[_0x23ba('0x1d')]=_0x4f16a2[_0x23ba('0x1d')],_0x5dcba4[_0x23ba('0x99')]=_0x4f16a2[_0x23ba('0x99')];}}['_handleOperation'](_0x228551,_0x1fc61d){const _0x497c4d=this[_0x23ba('0x80')](_0x228551,this[_0x23ba('0x4a')]);if(_0x23ba('0x2b')!==_0x228551[_0x23ba('0x43')]&&(_0x497c4d[_0x23ba('0x1a')](),this['_transformMarkers'](_0x497c4d)),_0x1fc61d)switch(_0x497c4d[_0x23ba('0x43')]){case _0x23ba('0x53'):this[_0x23ba('0x76')](_0x228551);break;case _0x23ba('0x47'):case _0x23ba('0x61'):case _0x23ba('0xd0'):this['_handleMoveOperation'](_0x228551);break;case'merge':this[_0x23ba('0xf')](_0x228551);break;case _0x23ba('0xd7'):this[_0x23ba('0xf1')](_0x228551);break;case _0x23ba('0x2b'):this[_0x23ba('0xee')](_0x228551);}}[_0x23ba('0x80')](_0xcf7a8c,_0x2283ab){const _0x417d7f=_0xcf7a8c[_0x23ba('0xb')]();return _0x417d7f['_authorId']=_0xcf7a8c['_authorId'],this['_fixOperation'](_0x417d7f,_0x2283ab),_0x417d7f;}[_0x23ba('0xad')](_0xae8c34){return _0xae8c34['map'](_0x12e9c9=>{const _0xf7df97=this['_getVidAttributeName'](_0x12e9c9);return Number(_0x12e9c9['item']['getAttribute'](_0xf7df97));});}[_0x23ba('0x6c')](_0x3a8a03,_0x4587ec){if(_0x3a8a03['is'](_0x23ba('0x28'),_0x23ba('0xe')))_0x4587ec[_0x23ba('0x9d')]({'item':_0x3a8a03,'type':_0x23ba('0xb5')});else{_0x3a8a03['is']('element')&&_0x4587ec[_0x23ba('0x9d')]({'item':_0x3a8a03,'type':'elementStart'});for(const _0x2fdf05 of _0x3a8a03[_0x23ba('0xd2')]())this[_0x23ba('0x6c')](_0x2fdf05,_0x4587ec);_0x3a8a03['is'](_0x23ba('0x28'))&&_0x4587ec['push']({'item':_0x3a8a03,'type':'elementEnd'});}return _0x4587ec;}['_getState'](){const _0x1d2df5=this[_0x23ba('0xb9')][_0x23ba('0x9b')]['document'][_0x23ba('0xf4')](),_0x3a6a8b=new Map(this['_touched']),_0x11de35=new Map(_0x3a6a8b),_0x5690ad=new Map(),_0x15e017={'insertions':{},'deletions':{}},_0x1d4993={'insertions':{},'deletions':{}},_0x316727=new Map();for(const _0x55eb0e of _0x1d2df5){const _0xce6d18=this[_0x23ba('0x4a')]['get'](_0x55eb0e),_0x3df043=this[_0x23ba('0x94')][_0x23ba('0x26')](_0x55eb0e);_0x15e017[_0x23ba('0x74')][_0x55eb0e]=J(_0xce6d18),_0x15e017[_0x23ba('0xc')][_0x55eb0e]=J(_0x3df043),this[_0x23ba('0x39')](_0x15e017[_0x23ba('0xc')][_0x55eb0e],_0x3df043),this[_0x23ba('0x39')](_0x15e017[_0x23ba('0x74')][_0x55eb0e],_0xce6d18),_0x1d4993['insertions'][_0x55eb0e]=this[_0x23ba('0x6c')](this['_idsRoots'][_0x23ba('0x26')](_0x55eb0e),[]),_0x1d4993[_0x23ba('0xc')][_0x55eb0e]=this[_0x23ba('0x6c')](this[_0x23ba('0x60')]['get'](_0x55eb0e),[]);}for(const _0xc8dd4d of _0x1d2df5){const _0x2d31ac=_0x1d4993['insertions'][_0xc8dd4d];for(const _0x1601ae of _0x2d31ac){const _0x3aea09=this['_getVidAttributeName'](_0x1601ae),_0x20c399=_0x1601ae[_0x23ba('0xf2')][_0x23ba('0x62')](_0x3aea09);_0x11de35['delete'](_0x20c399),_0x20c399>=this[_0x23ba('0x5b')]&&_0x5690ad[_0x23ba('0xa1')](_0x20c399,_0x3a6a8b[_0x23ba('0x26')](_0x20c399));}}for(const _0x549c88 of _0x1d2df5){const _0x554099=_0x1d4993[_0x23ba('0x74')][_0x549c88],_0x5f05da=this[_0x23ba('0xad')](_0x1d4993[_0x23ba('0xc')][_0x549c88]);let _0x823c3b=0x0;for(const _0x4187f5 of _0x554099){const _0xfd84a=this[_0x23ba('0xa5')](_0x4187f5),_0x400aa6=_0x4187f5['item'][_0x23ba('0x62')](_0xfd84a);if(!_0x5690ad[_0x23ba('0x93')](_0x400aa6)&&!_0x316727[_0x23ba('0x93')](_0x400aa6)){if(_0x11de35['has'](_0x400aa6))_0x823c3b++;else{if(_0x400aa6!=_0x5f05da[_0x823c3b]){const _0x28bf44=_0x3a6a8b[_0x23ba('0x26')](_0x400aa6)||_0x3a6a8b[_0x23ba('0x26')](_0x5f05da[_0x823c3b]);for(;_0x400aa6!=_0x5f05da[_0x823c3b];)_0x11de35['has'](_0x5f05da[_0x823c3b])||(_0x316727[_0x23ba('0xa1')](_0x5f05da[_0x823c3b],_0x28bf44),_0x3a6a8b[_0x23ba('0xa1')](_0x5f05da[_0x823c3b],_0x28bf44)),_0x823c3b++;}_0x823c3b++;}}}}for(const _0x39f018 of _0x1d2df5){const _0x387c7d=_0x1d4993[_0x23ba('0x74')][_0x39f018];for(const _0x165320 of _0x387c7d){const _0x1c58d1=this['_getVidAttributeName'](_0x165320),_0x5708c4=_0x165320[_0x23ba('0xf2')][_0x23ba('0x62')](_0x1c58d1);if(_0x316727[_0x23ba('0x93')](_0x5708c4)){const _0x57295c=_0x316727[_0x23ba('0x26')](_0x5708c4);_0x11de35['has'](_0x5708c4)||_0x11de35['set'](_0x5708c4,{..._0x57295c}),_0x5690ad[_0x23ba('0xa1')](_0x5708c4,{..._0x57295c});}}}for(const _0x12a49c of _0x11de35[_0x23ba('0x34')]())_0x12a49c>=this[_0x23ba('0x5b')]&&_0x11de35[_0x23ba('0xb1')](_0x12a49c);const _0x509099=new Map();for(const _0x587ecf of _0x1d2df5){let _0x3e4b03=_0x1d4993[_0x23ba('0x74')][_0x587ecf];for(const _0x19b0f7 of _0x3e4b03)if(_0x19b0f7[_0x23ba('0xf2')]['is'](_0x23ba('0x28'),_0x23ba('0x16'))){const _0x3ed763=this[_0x23ba('0xa5')](_0x19b0f7),_0x190a1b=_0x19b0f7['item'][_0x23ba('0x62')](_0x3ed763);if(_0x5690ad['has'](_0x190a1b)){const _0x163548=_0x19b0f7[_0x23ba('0xf2')][_0x23ba('0xa9')][_0x23ba('0xa9')]['getAttribute'](_0x23ba('0x79')),_0x2c7c67=_0x509099[_0x23ba('0x26')](_0x163548)||new Set();_0x2c7c67['add'](_0x5690ad['get'](_0x190a1b)[_0x23ba('0x86')]),_0x509099[_0x23ba('0xa1')](_0x163548,_0x2c7c67);}}_0x3e4b03=_0x1d4993[_0x23ba('0xc')][_0x587ecf];for(const _0x2ec54c of _0x3e4b03)if(_0x2ec54c['item']['is'](_0x23ba('0x28'),'tableCell')){const _0x1a1a87=this['_getVidAttributeName'](_0x2ec54c),_0x1b23b5=_0x2ec54c['item'][_0x23ba('0x62')](_0x1a1a87);if(_0x11de35[_0x23ba('0x93')](_0x1b23b5)){const _0x5c52a6=_0x2ec54c[_0x23ba('0xf2')][_0x23ba('0xa9')][_0x23ba('0xa9')]['getAttribute'](_0x23ba('0x79')),_0x30d964=_0x509099[_0x23ba('0x26')](_0x5c52a6)||new Set();_0x30d964['add'](_0x11de35['get'](_0x1b23b5)[_0x23ba('0x86')]),_0x509099[_0x23ba('0xa1')](_0x5c52a6,_0x30d964);}}for(const _0x38be8a of _0x509099[_0x23ba('0x34')]())(_0x5690ad['has'](_0x38be8a)||_0x11de35[_0x23ba('0x93')](_0x38be8a))&&_0x509099[_0x23ba('0xb1')](_0x38be8a);}for(const _0x499283 of _0x1d2df5){const _0x27634a=_0x1d4993['insertions'][_0x499283];let _0x4f26b4=null,_0x5b4888=null;for(const _0x2792f5 of _0x27634a){const _0x718b32=this[_0x23ba('0xa5')](_0x2792f5),_0x3806fa=_0x2792f5['item'][_0x23ba('0x62')](_0x718b32),_0x36c28e=_0x509099[_0x23ba('0x26')](_0x3806fa);_0x36c28e&&_0x23ba('0x12')==_0x2792f5[_0x23ba('0x43')]&&(_0x4f26b4=Array['from'](_0x36c28e)[0x0],_0x5b4888=_0x2792f5['item']['getAttribute']('vid_end')),_0x4f26b4&&(_0x11de35['set'](_0x3806fa,{'userId':_0x4f26b4}),_0x5690ad[_0x23ba('0xa1')](_0x3806fa,{'userId':_0x4f26b4})),_0x3806fa==_0x5b4888&&(_0x4f26b4=null,_0x5b4888=null);}}const _0x1c4049={},_0x4e98c5=new Set();for(const _0x21ee4b of _0x1d2df5){const _0x326d96=_0x15e017[_0x23ba('0xc')][_0x21ee4b],_0x1b47fc=_0x15e017[_0x23ba('0x74')][_0x21ee4b];for(const {userId:_0x162976}of this['_touchedMarkers']['values']())null!==_0x162976&&_0x4e98c5['add'](_0x162976);this[_0x23ba('0x6f')](_0x1b47fc,_0x1d4993[_0x23ba('0x74')][_0x21ee4b],_0x5690ad,_0x23ba('0x4e'),_0x4e98c5),this[_0x23ba('0x6f')](_0x326d96,_0x1d4993[_0x23ba('0xc')][_0x21ee4b],_0x11de35,_0x23ba('0x8b'),_0x4e98c5),_0x1c4049[_0x21ee4b]={'insertions':this[_0x23ba('0xc4')](_0x1b47fc),'deletions':this[_0x23ba('0xc4')](_0x326d96)};}return{'diffData':_0x1c4049,'authorsIds':Array[_0x23ba('0x84')](_0x4e98c5)};}[_0x23ba('0x96')](_0x4db96f){for(const [,_0xa65efd]of _0x4db96f[_0x23ba('0x24')]){const _0x148393=_0xa65efd[_0x23ba('0x1d')][_0x23ba('0xa6')]()[_0x23ba('0xe2')](_0x3c7999=>_0x23ba('0x16')==_0x3c7999[_0x23ba('0xc5')]);for(const _0x314538 of _0x148393)0x1==_0x314538[_0x23ba('0x71')]&&_0x314538['getChild'](0x0)['is'](_0x23ba('0x28'),_0x23ba('0xe8'))&&_0x314538['getChild'](0x0)[_0x23ba('0x8f')](_0x23ba('0x1c'),!0x0);}}[_0x23ba('0xc4')](_0x3a148f){this[_0x23ba('0x96')](_0x3a148f);const _0x384472=this[_0x23ba('0xb9')][_0x23ba('0xb8')][_0x23ba('0x2d')](_0x3a148f,{}),_0xa96fb9=Array[_0x23ba('0x84')](_0x384472[_0x23ba('0xd2')]())['map'](_0x2874fe=>this[_0x23ba('0x4')](_0x2874fe));return JSON[_0x23ba('0xca')](_0xa96fb9);}['_getViewJson'](_0x276420){if(_0x276420['is'](_0x23ba('0xe')))return _0x276420['data'];{const _0x19200c=_0x276420;return{'type':Object['keys'](V)[_0x23ba('0x69')](_0x2b93c0=>_0x276420 instanceof V[_0x2b93c0]),'name':_0x19200c[_0x23ba('0xc5')],'attributes':Array[_0x23ba('0x84')](_0x19200c['getAttributes']()),'children':Array['from'](_0x19200c[_0x23ba('0xd2')]())[_0x23ba('0x3a')](_0x517c06=>this[_0x23ba('0x4')](_0x517c06))};}}[_0x23ba('0x6f')](_0x1cf1e7,_0x4eb90c,_0x1a440a,_0x41ae0a,_0x128374){let _0x74f26f=null,_0x4a8d9a=null,_0x147d92=0x0;const _0x4fb659=this[_0x23ba('0xb9')][_0x23ba('0x9b')];for(let _0x2d8c88=0x0;_0x2d8c88<_0x4eb90c[_0x23ba('0x9a')];_0x2d8c88++){const _0x3eb3af=this['_getVidAttributeName'](_0x4eb90c[_0x2d8c88]),_0x2443a5=_0x4eb90c[_0x2d8c88][_0x23ba('0xf2')][_0x23ba('0x62')](_0x3eb3af),_0x59c074=_0x1a440a[_0x23ba('0x26')](_0x2443a5),_0x29e2d2=_0x2d8c88==_0x4eb90c['length']-0x1;(!_0x74f26f&&_0x59c074&&(_0x74f26f=_0x59c074,_0x4a8d9a=_0x4eb90c[_0x2d8c88]),_0x74f26f&&(!_0x59c074||_0x59c074['userId']!=_0x74f26f['userId']))&&(_0x3cd3b9(_0x59c074,j(_0x4a8d9a,_0x1cf1e7,_0x4fb659),j(_0x4eb90c[_0x2d8c88],_0x1cf1e7,_0x4fb659)),_0x74f26f=_0x59c074||null,_0x4a8d9a=_0x59c074?_0x4eb90c[_0x2d8c88]:null),_0x74f26f&&_0x29e2d2&&_0x3cd3b9(_0x59c074,j(_0x4a8d9a,_0x1cf1e7,_0x4fb659),B(_0x4eb90c[_0x2d8c88],_0x1cf1e7,_0x4fb659));}function _0x3cd3b9(_0x3c87b5,_0x4bbf0e,_0x359978){const _0x24315c=_0x74f26f[_0x23ba('0x86')],_0x5711f1=_0x23ba('0x7d')+_0x41ae0a+':'+_0x24315c+':'+_0x147d92++,_0x3540ad=_0x4fb659[_0x23ba('0x6')](_0x4bbf0e,_0x359978);_0x1cf1e7[_0x23ba('0x24')][_0x23ba('0xa1')](_0x5711f1,_0x3540ad),null!==_0x24315c&&_0x128374[_0x23ba('0xe6')](_0x24315c);}}[_0x23ba('0xa5')](_0x507f44){switch(_0x507f44[_0x23ba('0x43')]){case'elementStart':return _0x23ba('0x79');case _0x23ba('0x5f'):return _0x23ba('0x1e');default:return _0x23ba('0xde');}}[_0x23ba('0x92')](_0x28eba7,_0x6a683a){_0x28eba7[_0x23ba('0xba')]=null;for(const _0x2ccb4a in _0x28eba7){const _0x55c39b=_0x28eba7[_0x2ccb4a];if(_0x55c39b instanceof _0x1394e0){const _0xb52fb1=_0x6a683a[_0x23ba('0x26')](_0x55c39b[_0x23ba('0xd4')][_0x23ba('0xd3')]);_0x28eba7[_0x2ccb4a]=this[_0x23ba('0x64')](_0x55c39b,_0xb52fb1);}if(_0x55c39b instanceof _0x1e150f){const _0xa98c52=_0x6a683a[_0x23ba('0x26')](_0x55c39b[_0x23ba('0xd4')][_0x23ba('0xd3')]);_0x28eba7[_0x2ccb4a]=this[_0x23ba('0x13')](_0x55c39b,_0xa98c52);}}_0x28eba7[_0x23ba('0xd4')]&&(_0x28eba7[_0x23ba('0xd4')]=_0x6a683a['get'](_0x28eba7['root'][_0x23ba('0xd3')]));}[_0x23ba('0x13')](_0x3f334f,_0x2fc755){return this['editor'][_0x23ba('0x9b')][_0x23ba('0x6')](this[_0x23ba('0x64')](_0x3f334f[_0x23ba('0x1d')],_0x2fc755),this[_0x23ba('0x64')](_0x3f334f[_0x23ba('0x99')],_0x2fc755));}[_0x23ba('0x64')](_0x2a2309,_0x1c5a0){return this[_0x23ba('0xb9')][_0x23ba('0x9b')]['createPositionFromPath'](_0x1c5a0,_0x2a2309[_0x23ba('0xe9')],_0x2a2309['stickiness']);}[_0x23ba('0x76')](_0x36e1c6){const _0x21e676=this[_0x23ba('0x65')][_0x23ba('0x26')](_0x36e1c6['position']['root']['rootName']),_0x36ac4b=this[_0x23ba('0x64')](_0x36e1c6['position'],_0x21e676),_0x564645=null===_0x36e1c6[_0x23ba('0xae')]?null:_0x36e1c6[_0x23ba('0xae')]||this[_0x23ba('0xb9')][_0x23ba('0x2')]['get'](_0x23ba('0xd9'))['me']['id'],_0x8b4c2b=_0x36ac4b[_0x23ba('0xa9')],_0x670b8a=this[_0x23ba('0xec')],_0x58df2b=[];for(const _0x15bfe0 of _0x36e1c6[_0x23ba('0x3b')])if(_0x15bfe0['is']('element'))_0x58df2b['push'](this['_makeIdsRoot'](_0x15bfe0));else for(let _0x5dd612=0x0;_0x5dd612<_0x15bfe0[_0x23ba('0xdc')];_0x5dd612++)_0x58df2b['push'](new _0x463cd8(_0x23ba('0xe'),{'vid':this[_0x23ba('0xec')]++}));const _0x35965e=this[_0x23ba('0xec')];for(let _0x18159d=_0x670b8a;_0x18159d<_0x35965e;_0x18159d++)this[_0x23ba('0x87')][_0x23ba('0xa1')](_0x18159d,{'userId':_0x564645});_0x8b4c2b[_0x23ba('0xd1')](_0x36ac4b[_0x23ba('0xc1')],_0x58df2b);}[_0x23ba('0x4c')](_0x376dff){(_0x376dff=this[_0x23ba('0x80')](_0x376dff,this['_idsRoots']))['_execute']();const _0x3caef3=null===_0x376dff[_0x23ba('0xae')]?null:_0x376dff[_0x23ba('0xae')]||this['editor'][_0x23ba('0x2')][_0x23ba('0x26')](_0x23ba('0xd9'))['me']['id'],_0x583cb9=_0x376dff['getMovedRangeStart'](),_0x2ec0ad=_0x583cb9[_0x23ba('0xa9')],_0x5532fc=_0x583cb9[_0x23ba('0xc1')];!function _0x3cc5b0(_0x2a3b43,_0x38c928,_0x5b8651,_0x13695b){for(let _0xab4d6d=_0x5b8651;_0xab4d6d<_0x13695b;_0xab4d6d++){const _0x3fc760=_0x38c928['getChild'](_0xab4d6d);_0x3fc760['is'](_0x23ba('0x28'),_0x23ba('0xe'))?_0x2a3b43[_0x23ba('0xa1')](_0x3fc760[_0x23ba('0x62')](_0x23ba('0xde')),{'userId':_0x3caef3}):(_0x2a3b43[_0x23ba('0xa1')](_0x3fc760[_0x23ba('0x62')](_0x23ba('0x79')),{'userId':_0x3caef3}),_0x3cc5b0(_0x2a3b43,_0x3fc760,0x0,_0x3fc760[_0x23ba('0x71')]),_0x2a3b43[_0x23ba('0xa1')](_0x3fc760[_0x23ba('0x62')]('vid_end'),{'userId':_0x3caef3}));}}(this[_0x23ba('0x87')],_0x2ec0ad,_0x5532fc,_0x5532fc+_0x376dff[_0x23ba('0x66')]);}[_0x23ba('0xf')](_0x1e7e3c){const _0x591112=null===(_0x1e7e3c=this[_0x23ba('0x80')](_0x1e7e3c,this[_0x23ba('0x65')]))[_0x23ba('0xae')]?null:_0x1e7e3c[_0x23ba('0xae')]||this[_0x23ba('0xb9')]['plugins'][_0x23ba('0x26')](_0x23ba('0xd9'))['me']['id'],_0x46123a=_0x1e7e3c[_0x23ba('0xf3')][_0x23ba('0xa9')],_0x63fc03=_0x1e7e3c[_0x23ba('0xc2')]['parent'],_0x2b6b63=_0x46123a[_0x23ba('0x62')]('vid_end'),_0x1730cb=_0x63fc03[_0x23ba('0x62')]('vid_start');_0x46123a[_0x23ba('0x8f')](_0x23ba('0x1e'),_0x63fc03[_0x23ba('0x62')](_0x23ba('0x1e'))),_0x63fc03[_0x23ba('0x8f')](_0x23ba('0x1e'),_0x2b6b63),this[_0x23ba('0x87')][_0x23ba('0xa1')](_0x1730cb,{'userId':_0x591112}),this[_0x23ba('0x87')][_0x23ba('0xa1')](_0x2b6b63,{'userId':_0x591112}),_0x1e7e3c['_execute']();}[_0x23ba('0xf1')](_0x39c623){const _0x12ab6e=null===(_0x39c623=this[_0x23ba('0x80')](_0x39c623,this['_idsRoots']))[_0x23ba('0xae')]?null:_0x39c623[_0x23ba('0xae')]||this[_0x23ba('0xb9')]['plugins']['get'](_0x23ba('0xd9'))['me']['id'],_0x18d70d=_0x39c623[_0x23ba('0x9e')],_0xf6abd7=_0x39c623['splitPosition']['parent'];_0x39c623[_0x23ba('0x1a')]();const _0x5310db=_0xf6abd7[_0x23ba('0x62')](_0x23ba('0x1e')),_0x2ad409=_0x39c623[_0x23ba('0x67')][_0x23ba('0x4b')];if(_0x18d70d){const _0x12b6d2=_0x2ad409[_0x23ba('0x62')](_0x23ba('0x1e')),_0x484232=_0xf6abd7[_0x23ba('0x62')](_0x23ba('0x1e'));_0xf6abd7['_setAttribute']('vid_end',_0x12b6d2),_0x2ad409[_0x23ba('0x8f')]('vid_end',_0x484232),this[_0x23ba('0x87')]['set'](_0xf6abd7[_0x23ba('0x62')](_0x23ba('0x1e')),{'userId':_0x12ab6e}),this['_touched'][_0x23ba('0xa1')](_0x2ad409[_0x23ba('0x62')](_0x23ba('0x79')),{'userId':_0x12ab6e});}else{const _0x20fc95=this[_0x23ba('0xec')]++,_0x1cec5b=this[_0x23ba('0xec')]++;_0xf6abd7['_setAttribute'](_0x23ba('0x1e'),_0x20fc95),_0x2ad409[_0x23ba('0x8f')](_0x23ba('0x79'),_0x1cec5b),_0x2ad409[_0x23ba('0x8f')]('vid_end',_0x5310db),this[_0x23ba('0x87')][_0x23ba('0xa1')](_0x20fc95,{'userId':_0x12ab6e}),this[_0x23ba('0x87')][_0x23ba('0xa1')](_0x1cec5b,{'userId':_0x12ab6e});}}['_handleMarkerOperation'](_0x38c7dc){if(!_0x38c7dc[_0x23ba('0x8')])return;const _0x378559=(_0x38c7dc=this[_0x23ba('0x80')](_0x38c7dc,this[_0x23ba('0x4a')]))[_0x23ba('0x85')]?_0x38c7dc[_0x23ba('0x85')][_0x23ba('0xd4')]:null,_0x2f924a=_0x38c7dc['newRange']?_0x38c7dc[_0x23ba('0x57')]['root']:null;_0x378559&&this[_0x23ba('0x11')]['delete'](_0x38c7dc[_0x23ba('0xc5')]),_0x2f924a&&this[_0x23ba('0x11')][_0x23ba('0xa1')](_0x38c7dc['name'],_0x38c7dc['newRange'][_0x23ba('0xb')]());const _0x746683=null===_0x38c7dc[_0x23ba('0xae')]?null:_0x38c7dc[_0x23ba('0xae')]||this[_0x23ba('0xb9')][_0x23ba('0x2')][_0x23ba('0x26')](_0x23ba('0xd9'))['me']['id'],_0xa90eb1=_0x38c7dc[_0x23ba('0xc5')];if(!this[_0x23ba('0x68')][_0x23ba('0x93')](_0xa90eb1))return void this[_0x23ba('0x68')]['set'](_0xa90eb1,{'range':_0x38c7dc[_0x23ba('0x85')],'userId':_0x746683});const _0x57f57c=this[_0x23ba('0x68')][_0x23ba('0x26')](_0xa90eb1),_0x206dba=_0x57f57c[_0x23ba('0xf0')],_0x2bbd24=_0x38c7dc[_0x23ba('0x57')];null==_0x206dba&&null==_0x2bbd24||_0x206dba&&_0x2bbd24&&_0x206dba[_0x23ba('0xa4')](_0x2bbd24)?this[_0x23ba('0x68')][_0x23ba('0xb1')](_0x38c7dc['name']):_0x57f57c['userId']=_0x746683;}}function J(_0x2221ae){const _0x4aef90=new _0x19b136();_0x4aef90[_0x23ba('0xd3')]=_0x2221ae[_0x23ba('0xd3')];for(const _0x2b7524 of _0x2221ae[_0x23ba('0xd2')]()){const _0x4bfe9f=_0x2b7524[_0x23ba('0x3e')](!0x0);_0x4aef90[_0x23ba('0x3d')](_0x4bfe9f);}return _0x4aef90;}function j(_0xba588f,_0x4dd4e0,_0x19d342){const _0x1efeaa='elementEnd'==_0xba588f['type']?_0x19d342[_0x23ba('0xb4')](_0xba588f[_0x23ba('0xf2')],_0x23ba('0x99')):_0x19d342['createPositionBefore'](_0xba588f['item']);return _0x19d342['createPositionFromPath'](_0x4dd4e0,_0x1efeaa['path'],_0x1efeaa['stickiness']);}function B(_0x1184d6,_0x17835f,_0x43db5b){const _0x20dfd8=_0x23ba('0x12')==_0x1184d6[_0x23ba('0x43')]?_0x43db5b[_0x23ba('0xb4')](_0x1184d6[_0x23ba('0xf2')],0x0):_0x43db5b[_0x23ba('0xbe')](_0x1184d6[_0x23ba('0xf2')]);return _0x43db5b[_0x23ba('0xdf')](_0x17835f,_0x20dfd8['path'],_0x20dfd8[_0x23ba('0x1f')]);}