@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231123.0 → 0.0.0-nightly-20231124.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x512f=['attributesBefore','addMarker:revision-suggestion:deletion','elementEnd','removeAttribute','_markMarkers','concat','attachChange','addMarker:revision-suggestion:insertion','markerRange','_cleanUp','_activeViewTarget','highest','insertions','splice','left','data','isSuggestion','_removeMissingPairs','ck-suggestion-marker-','ck-revision-history-root-add','RevisionViewer','catch','isBefore','removeClass','shift','_setConversion','getClientRects','revisionHistoryAttachChange','suggestion','clear','refresh','insert','text','attributes','_setDistance','isContent','isEnabled','createAttributeElement','low','end','mousedown','ck-suggestion-marker--active','upcast','domEvent','toViewElement','_makeModelFromViewString','isNavigationMode','isReady','addClass','processor','startsWith','suggestion:','enableReadOnlyMode','setAttribute','activeChange','next','downcastDispatcher','config','isRemoveSuggestion','_initInteractions','forceDisabled','isAtStart','isObject','stop','mouseover','add','_cleanMarkers','createUIElement','nextPosition','markersEnd','getRevision','index','span','isBlock','_markSuggestions','ck-revision-history-root-remove','removeMarker:revision','roots','startIndex','showStack','markersStart','revisionHistoryLabel','change:numberOfChanges','_update','isAtEnd','mapViewToDom','isInline','isAfter','then','set','checkAttribute','model','forward','_changeView','getCustomProperty','_getDiff','hasClass','target','pairId','uiElement','plugins','parse','repository','getRootNames','editingDowncast','_removeUnsupportedChanges','findIndex','isAttached','length','isOnRoot','mapper','_getViewForChange','endIndex','_sortAndFilterDiffChanges','activeView','editor','pluginName','adapter','high','bottom','revision','parent','nodeAfter','consume','toModel','changes','view','markerToData','useFillerType','keys','change:isEnabled','_getRevisionsRange','getDomRoot','ck-suggestion-marker','dataToMarker','_balloon','object','revision-viewer','editing','resolve','_revisions','detachRoot','insertion','toViewPosition','_setChanges','toData','type','schema','WidgetToolbarRepository','element','item','error','_markMismatchedRemovedTags','_step','getAttribute','isAdded','listenTo','modelRange','_fixObsoleteTags','getRevisionData','for','get','from','_changeIdToChange','deletion','revision:','affectsData','data-change-id','createRevision','isEqual','revision-suggestion:','loadRevisionData','offsetSize','getRoot','showNextChange','getIndex','createPositionBefore','updatePosition','find','_makeModelFromTape','removeMarker:revision-suggestion','ck-revision-history-root--active','return','ck-suggestion-preview-marker-','delete','nextSibling','createRange','markerNameToElements','attribute:vid','addRevision','_removeRevisionMarkers','markerName','_getViewObj','string','maxOffset','revision-start','level','bind','requires','change:activeView','abs','_refreshStartEndIndex','change','all','sort','has','consumable','execute','destroy','restoreRevision','dataDowncast','change:isReady','getRevisionRootsAttributes','getWalker','range','element:pre','document','commands','userId','ck-suggestion-marker-merge','elementToAttribute','_data','split','domConverter','indexOf','merge','isIncorrect','diff','test','comment','isAddSuggestion','change:activeChange','first','numberOfChanges','_markInsertions','_joinTapes','_getChangeFromId','_appendChild','toViewRange','flat','conversion','_processTape','selection','markerToHighlight','rootName','elementStart','writer','-new','hasAttribute','_makeTape','isLimit','unbindElementFromMarkerName','vid_start','getAttributes','ck-suggestion-preview-marker','attributesAfter','revision-suggestion','revision-comment:','_findChangeIdFromDomTarget','reconvertMarker','start','restoreRevisionCallback','vid_end','init','distance','addRevisionData','children','createRangeIn','addHighlight','createPositionFromPath','slice','push','RevisionsRepository','unshift','getChild','enqueueChange','includes','isRemoved','name','ck-editor__editable__overlay','viewItem','map','vid','forEach','side','previousPosition','currentChangeNumber','markers','remove','oldRevisionId','bindElementToMarker','changeId','diffData','filter','deletions','ck-revision-history-root-'];(function(_0x330ea7,_0x512f00){const _0x10ed49=function(_0x9667a2){while(--_0x9667a2){_0x330ea7['push'](_0x330ea7['shift']());}};_0x10ed49(++_0x512f00);}(_0x512f,0x13a));const _0x10ed=function(_0x330ea7,_0x512f00){_0x330ea7=_0x330ea7-0x0;let _0x10ed49=_0x512f[_0x330ea7];return _0x10ed49;};import{Plugin as _0x27f16f,Command as _0x46c3fd}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x320b83}from'ckeditor5/src/utils';import{ContextualBalloon as _0x1af1cc}from'ckeditor5/src/ui';import{DocumentFragment as _0x1d3a31,Element as _0x5577c4,Text as _0x879057,ViewDocumentFragment as _0x2df832,ViewText as _0x18ad25,ViewElement as _0x34c193,ViewContainerElement as _0xfbd701,ViewAttributeElement as _0x2d52cf,ViewEmptyElement as _0x5db82e,ViewRawElement as _0x4418d7,ViewUIElement as _0x268adc}from'ckeditor5/src/engine';import{Users as _0x199734,getMarkerDomElement as _0x4d02c5}from'ckeditor5-collaboration/src/collaboration-core';import _0x542f7b from'./ui/revisionviewer/changedetailsview';import _0x5aa07e from'./revisionsrepository';import _0x406215 from'./changeitem';import{default as _0x3c7eb4}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x1eb127}from'lodash-es';const tt={'c':_0xfbd701,'a':_0x2d52cf,'e':_0x5db82e,'r':_0x4418d7,'u':_0x268adc};export default class d extends _0x27f16f{static get[_0x10ed('0x62')](){return _0x10ed('0x2');}static get[_0x10ed('0xb4')](){return[_0x199734,_0x1af1cc,_0x5aa07e];}constructor(_0x37669d){super(_0x37669d),this[_0x10ed('0x54')]=this[_0x10ed('0x61')]['plugins'][_0x10ed('0x8f')](_0x10ed('0xfe')),this['set']('activeChange',null),this[_0x10ed('0x47')](_0x10ed('0x60'),null),this[_0x10ed('0x120')]=null,this[_0x10ed('0x47')](_0x10ed('0xd1'),null),this['set'](_0x10ed('0x1d'),!0x1),this[_0x10ed('0x47')](_0x10ed('0x12'),!0x0),this['on']('change:isEnabled',(_0x4992d3,_0x1a9b2a,_0x55e748)=>{this[_0x10ed('0x24')]=null,this[_0x10ed('0x60')]=null,this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0xb8')](_0x54ff03=>{for(const _0x48df43 of this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0xc6')][_0x10ed('0x3b')])_0x55e748?_0x54ff03[_0x10ed('0x5')](_0x10ed('0x105'),_0x48df43):_0x54ff03['addClass']('ck-editor__editable__overlay',_0x48df43);});}),this[_0x10ed('0xb3')](_0x10ed('0x1c'))['to'](this,'activeChange',_0x3f1f8c=>null!==_0x3f1f8c),this[_0x10ed('0xb3')](_0x10ed('0x10c'))['to'](this,'isReady',this,_0x10ed('0xd1'),this,'activeChange',(_0x56a1b3,_0x1b228f,_0x21dcba)=>_0x56a1b3&&_0x21dcba?_0x1b228f['changes'][_0x10ed('0x9d')](_0x21dcba):0x0),this['bind'](_0x10ed('0xd7'))['to'](this,'isReady',this,_0x10ed('0xd1'),(_0x3bbd58,_0x333362)=>_0x3bbd58?_0x333362[_0x10ed('0x6b')]['length']:0x0),this[_0x10ed('0x4b')]=null,this[_0x10ed('0x91')]=new Map(),this[_0x10ed('0x63')]=null,this['_balloon']=this[_0x10ed('0x61')][_0x10ed('0x52')]['get'](_0x1af1cc);}[_0x10ed('0xf5')](){const _0x1b3fb4=this['editor'],_0x2cdad6=new ShowChangeCommand(_0x1b3fb4,{'direction':'backward'}),_0x5b8dc5=new ShowChangeCommand(_0x1b3fb4,{'direction':_0x10ed('0x4a')});(_0x1b3fb4['commands']['add']('showPreviousChange',_0x2cdad6),_0x1b3fb4['commands'][_0x10ed('0x2f')](_0x10ed('0x9c'),_0x5b8dc5),_0x1b3fb4[_0x10ed('0xc7')][_0x10ed('0x2f')](_0x10ed('0xbf'),new RestoreRevisionCommand(_0x1b3fb4)),this['on'](_0x10ed('0x40'),()=>{_0x2cdad6[_0x10ed('0xc')](),_0x5b8dc5[_0x10ed('0xc')]();}),this[_0x10ed('0x7')](),this[_0x10ed('0x29')](),_0x1b3fb4[_0x10ed('0x22')](_0x10ed('0x77')),_0x1b3fb4[_0x10ed('0x52')][_0x10ed('0xbb')](_0x10ed('0x82')))&&_0x1b3fb4['plugins'][_0x10ed('0x8f')](_0x10ed('0x82'))[_0x10ed('0x2a')](_0x10ed('0x77'));}async[_0x10ed('0x8d')](_0x2f50c5){await this[_0x10ed('0x99')](_0x2f50c5);const _0xb283d7={};for(const _0xbfcc8f in _0x2f50c5[_0x10ed('0x112')]){if(_0x2f50c5[_0x10ed('0x112')][_0xbfcc8f][_0x10ed('0x11c')]&&!_0x2f50c5[_0x10ed('0x112')][_0xbfcc8f][_0x10ed('0x11c')][_0x10ed('0x59')])continue;const _0x2022fb=this[_0x10ed('0xac')](JSON[_0x10ed('0x53')](_0x2f50c5[_0x10ed('0x112')][_0xbfcc8f][_0x10ed('0x122')])),_0x1a12b4=this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0xc6')],_0x628678=new _0x2df832(_0x1a12b4,_0x2022fb[_0x10ed('0x107')](_0x403423=>this['_getViewObj'](_0x403423)));this[_0x10ed('0x61')][_0x10ed('0x125')]['processor'][_0x10ed('0x6e')]('marked'),_0xb283d7[_0xbfcc8f]=this[_0x10ed('0x61')][_0x10ed('0x125')][_0x10ed('0x1f')][_0x10ed('0x7f')](_0x628678),this['editor'][_0x10ed('0x125')][_0x10ed('0x1f')][_0x10ed('0x6e')]('default');}return _0xb283d7;}async[_0x10ed('0xc2')](_0x5bde50){await this['loadRevisionData'](_0x5bde50);const _0x458454={};for(const _0xbb3992 in _0x5bde50[_0x10ed('0x112')])_0x5bde50[_0x10ed('0x112')][_0xbb3992][_0x10ed('0x11c')]&&!_0x5bde50['diffData'][_0xbb3992]['attachChange'][_0x10ed('0x59')]||(_0x458454[_0xbb3992]=_0x5bde50[_0x10ed('0x112')][_0xbb3992][_0x10ed('0xed')]||{});return _0x458454;}[_0x10ed('0xac')](_0x2e36bc){return(_0x2e36bc=_0x2e36bc['filter'](_0x2012e6=>!_0x2012e6['name']||_0x10ed('0xb1')!==_0x2012e6[_0x10ed('0x104')]&&'revision-end'!==_0x2012e6[_0x10ed('0x104')]))['forEach'](_0x451291=>{_0x10ed('0xaf')!=typeof _0x451291&&(_0x451291[_0x10ed('0xf8')]=this['_removeRevisionMarkers'](_0x451291[_0x10ed('0xf8')]),_0x451291[_0x10ed('0xf')]=_0x451291['attributes']['filter'](_0x526a91=>!_0x526a91[0x0][_0x10ed('0x20')]('data-revision-')));}),_0x2e36bc;}async['compare'](_0x3ed74c,_0x5644be,_0x2de20f=!0x1){if(!this[_0x10ed('0x12')])return;const _0x3801cf=this['diff'],_0xf14b8f=this['repository'],_0x20d560=_0x10ed('0xaf')==typeof _0x3ed74c?_0xf14b8f[_0x10ed('0x34')](_0x3ed74c):_0x3ed74c,_0x17d94c=_0x10ed('0xaf')==typeof _0x5644be?_0xf14b8f['getRevision'](_0x5644be):_0x5644be,_0xe61879=_0x20d560['id'],_0x485855=_0x17d94c?_0x17d94c['id']:null;if(!_0x2de20f&&this['diff']&&this[_0x10ed('0xd1')]['newRevisionId']===_0xe61879&&this[_0x10ed('0xd1')][_0x10ed('0x10f')]===_0x485855)return Promise[_0x10ed('0x79')]();this[_0x10ed('0x1d')]=!0x1,this[_0x10ed('0x60')]=null,this[_0x10ed('0x24')]=null,this[_0x10ed('0xd1')]=new _0x3c7eb4(_0xe61879,_0x485855);const _0x300a25=this[_0x10ed('0x71')](_0x20d560,_0x17d94c,!0x0)[_0x10ed('0x107')](_0x5cae0d=>this[_0x10ed('0x99')](_0x5cae0d));return _0x300a25[_0x10ed('0xfd')](new Promise(_0x206b4a=>{setTimeout(_0x206b4a,0x14);})),Promise[_0x10ed('0xb9')](_0x300a25)[_0x10ed('0x46')](()=>{if(!this[_0x10ed('0x12')])return;this[_0x10ed('0x11f')]();const _0x3b008a=this[_0x10ed('0x4d')](_0xe61879,_0x485855);for(const _0x2e24a2 of _0x3b008a[_0x10ed('0x6b')])this[_0x10ed('0x91')][_0x10ed('0x47')](_0x2e24a2['id'],_0x2e24a2);this['editor'][_0x10ed('0x49')]['enqueueChange']({'isUndoable':!0x1},_0x557d16=>{for(const _0x5e3c0a of this[_0x10ed('0x61')][_0x10ed('0x49')]['document'][_0x10ed('0x55')]())_0x557d16[_0x10ed('0x7b')](_0x5e3c0a);for(const _0x2e629a of Object[_0x10ed('0x6f')](_0x3b008a['model'])){const _0x273fb8=_0x557d16['addRoot'](_0x2e629a);for(const _0x5957fc of Object[_0x10ed('0x6f')](_0x3b008a[_0x10ed('0xf')][_0x2e629a]))_0x557d16[_0x10ed('0x23')](_0x5957fc,_0x3b008a[_0x10ed('0xf')][_0x2e629a][_0x5957fc],_0x273fb8);_0x557d16[_0x10ed('0xd')](_0x3b008a['model'][_0x2e629a],_0x273fb8,0x0);}}),this[_0x10ed('0xd1')][_0x10ed('0x7e')](this[_0x10ed('0x5f')](_0x3b008a[_0x10ed('0x6b')])),this[_0x10ed('0x1d')]=!0x0;})[_0x10ed('0x3')](_0x531c26=>{console[_0x10ed('0x85')](_0x531c26),this['_cleanUp'](),_0x3801cf&&(this['diff']=_0x3801cf),this['isReady']=!0x0;});}[_0x10ed('0xf7')](_0x39f316,_0x549e8c){const _0x4662d2=this[_0x10ed('0x54')][_0x10ed('0x96')](_0x39f316);return _0x4662d2['on'](_0x10ed('0x41'),(_0x2882bb,_0xdd480,_0x1f2d5d)=>_0x549e8c(_0xdd480,_0x1f2d5d,_0x4662d2)),this['repository'][_0x10ed('0xab')](_0x4662d2),_0x4662d2;}['loadRevisionData'](_0x445abc){if(!_0x445abc||_0x445abc['diffData'])return Promise[_0x10ed('0x79')]();{const _0x103ef8=this['editor'][_0x10ed('0x27')][_0x10ed('0x8f')]('collaboration.channelId');return this[_0x10ed('0x63')]['getRevision']({'channelId':_0x103ef8,'revisionId':_0x445abc['id']})[_0x10ed('0x46')](_0x24236b=>{_0x445abc['_update']({'diffData':_0x24236b['diffData']},!0x0);});}}[_0x10ed('0x11f')](){this[_0x10ed('0x24')]=null,this['_cleanMarkers'](),this[_0x10ed('0x4b')]&&this['_changeView'][_0x10ed('0xbe')](),this[_0x10ed('0x4b')]=null,this['_changeIdToChange'][_0x10ed('0xb')](),this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0x101')]({'isUndoable':!0x1},_0x12ed64=>{for(const _0x30e3c9 of this[_0x10ed('0x61')]['model']['document'][_0x10ed('0x55')]())_0x12ed64['detachRoot'](_0x30e3c9);});}['_sortAndFilterDiffChanges'](_0xbecdbe){const _0x162909=[],_0x5edaa9=new Map();for(const _0x150c8b of this[_0x10ed('0x61')][_0x10ed('0x49')]['document'][_0x10ed('0x55')]()){const _0x15ce90=this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0x72')](_0x150c8b);if(!_0x15ce90)continue;const _0xa6b73=_0x15ce90[_0x10ed('0x8')]()[_0x10ed('0x84')](0x0);_0xa6b73&&(_0x162909[_0x10ed('0xfd')](_0x150c8b),_0x5edaa9['set'](_0x150c8b,_0xa6b73));}return _0x162909[_0x10ed('0xba')]((_0x1a48e3,_0x83a711)=>{const _0x37e572=_0x5edaa9[_0x10ed('0x8f')](_0x1a48e3),_0x36755d=_0x5edaa9[_0x10ed('0x8f')](_0x83a711);return _0x37e572['y']-_0x36755d['y']||_0x37e572['x']-_0x36755d['x'];}),(_0xbecdbe=_0xbecdbe[_0x10ed('0x113')](_0x37ce0b=>_0x162909['includes'](_0x37ce0b['rootName'])))[_0x10ed('0xba')]((_0x57473c,_0x7e8329)=>_0x162909[_0x10ed('0xce')](_0x57473c[_0x10ed('0xe2')])-_0x162909[_0x10ed('0xce')](_0x7e8329['rootName'])),_0xbecdbe;}[_0x10ed('0xe7')](_0x124c56){const _0x25a0ee=Array['from'](_0x124c56[_0x10ed('0x10d')])['filter'](([_0xdf540b,_0x44b83c])=>_0xdf540b[_0x10ed('0x20')](_0x10ed('0x93'))&&!_0x44b83c['isCollapsed']),_0x386573=Array['from'](this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0xf9')](_0x124c56)[_0x10ed('0xc3')]({'singleCharacters':!0x0}));if(0x0!=_0x25a0ee[_0x10ed('0x5a')])for(const _0x4d39a9 of _0x386573){const [_0x2f2ede,_0x142b40]=_0x25a0ee[0x0],[,_0x18ba16,_0x9c694a]=_0x2f2ede[_0x10ed('0xcc')](':');if(_0x142b40['end'][_0x10ed('0x97')](_0x4d39a9[_0x10ed('0x32')])&&_0x25a0ee['shift'](),(_0x4d39a9[_0x10ed('0x10b')][_0x10ed('0x97')](_0x142b40[_0x10ed('0xf2')])||_0x4d39a9['previousPosition'][_0x10ed('0x45')](_0x142b40[_0x10ed('0xf2')]))&&(_0x10ed('0x7c')==_0x18ba16?_0x4d39a9[_0x10ed('0x89')]={'userId':_0x9c694a}:_0x10ed('0x92')==_0x18ba16&&(_0x4d39a9['isRemoved']={'userId':_0x9c694a})),0x0==_0x25a0ee['length'])break;}return _0x386573;}['_refreshStartEndIndex'](_0x3fa3fd){const _0xf2d122=new Map();for(let _0x106417=0x0;_0x106417<_0x3fa3fd[_0x10ed('0x5a')];_0x106417++)_0x10ed('0xe')===_0x3fa3fd[_0x106417]['type']?(_0x3fa3fd[_0x106417][_0x10ed('0x84')][_0x10ed('0x3c')]=_0x106417,_0x3fa3fd[_0x106417][_0x10ed('0x84')]['endIndex']=_0x106417):(_0x10ed('0xe3')===_0x3fa3fd[_0x106417]['type']?_0x3fa3fd[_0x106417][_0x10ed('0x84')]['startIndex']=_0x106417:_0x10ed('0x118')===_0x3fa3fd[_0x106417][_0x10ed('0x80')]&&(_0x3fa3fd[_0x106417][_0x10ed('0x84')][_0x10ed('0x5e')]=_0x106417),_0xf2d122[_0x10ed('0x47')](_0x3fa3fd[_0x106417]['id'],_0x106417));for(const _0x54aea5 of _0xf2d122['values']())'elementStart'===_0x3fa3fd[_0x54aea5]['type']?_0x3fa3fd[_0x54aea5][_0x10ed('0x84')][_0x10ed('0x5e')]=_0xf2d122['get'](_0x3fa3fd[_0x54aea5][_0x10ed('0x50')]):_0x10ed('0x118')===_0x3fa3fd[_0x54aea5][_0x10ed('0x80')]&&(_0x3fa3fd[_0x54aea5][_0x10ed('0x84')]['startIndex']=_0xf2d122[_0x10ed('0x8f')](_0x3fa3fd[_0x54aea5][_0x10ed('0x50')]));}[_0x10ed('0xdf')](_0x535c32){for(let _0x340449=0x0;_0x340449<_0x535c32[_0x10ed('0x5a')];_0x340449++){if(_0x10ed('0xe3')===_0x535c32[_0x340449][_0x10ed('0x80')])_0x535c32[_0x340449][_0x10ed('0x84')][_0x10ed('0x3c')]=_0x340449;else{if(_0x10ed('0x118')===_0x535c32[_0x340449]['type']){_0x535c32[_0x340449]['item']['endIndex']=_0x340449;const _0x4af7db=_0x535c32[_0x340449][_0x10ed('0x84')][_0x10ed('0x3c')];_0x535c32[_0x4af7db]['pairId']=_0x535c32[_0x340449]['id'],_0x535c32[_0x340449][_0x10ed('0x50')]=_0x535c32[_0x4af7db]['id'];}else _0x535c32[_0x340449][_0x10ed('0x84')][_0x10ed('0x3c')]=_0x340449,_0x535c32[_0x340449][_0x10ed('0x84')][_0x10ed('0x5e')]=_0x340449,_0x535c32[_0x340449][_0x10ed('0x50')]=null;}_0x535c32[_0x340449][_0x10ed('0x3e')]||(_0x535c32[_0x340449][_0x10ed('0x3e')]=[],_0x535c32[_0x340449][_0x10ed('0x33')]=[]);}}[_0x10ed('0xd8')](_0x242f18,_0x5ab936){const _0x5c2387=_0x242f18[_0x10ed('0x113')](_0x2f695d=>!_0x2f695d[_0x10ed('0x89')]);for(let _0x4c4e75=0x0;_0x4c4e75<_0x5ab936[_0x10ed('0x5a')];_0x4c4e75++)_0x5ab936[_0x4c4e75][_0x10ed('0x89')]&&(_0x5c2387[_0x4c4e75]['isAdded']=_0x5ab936[_0x4c4e75][_0x10ed('0x89')]);}[_0x10ed('0x1b')](_0x1da0f9){const _0x28ac54=JSON['parse'](_0x1da0f9),_0x34c9b0=this['editor'][_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0xc6')],_0x1ca634=new _0x2df832(_0x34c9b0,_0x28ac54['map'](_0x424f26=>this[_0x10ed('0xae')](_0x424f26)));return this[_0x10ed('0x61')][_0x10ed('0x125')][_0x10ed('0x6a')](_0x1ca634);}[_0x10ed('0xae')](_0x1b6d90){const _0x18a6cb=this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0xc6')];if('string'==typeof _0x1b6d90)return new _0x18ad25(_0x18a6cb,_0x1b6d90);{const _0x354ee4=_0x1b6d90[_0x10ed('0xf8')][_0x10ed('0x107')](_0x58fd7b=>this[_0x10ed('0xae')](_0x58fd7b));return new(tt[_0x1b6d90['type']]||_0x34c193)(_0x18a6cb,_0x1b6d90[_0x10ed('0x104')],_0x1b6d90[_0x10ed('0xf')],_0x354ee4);}}['_getDiff'](_0x16a0f7,_0x1861d3=null){const _0x16a70c=this[_0x10ed('0x54')][_0x10ed('0x34')](_0x16a0f7),_0x1fe584=_0x1861d3?this['repository'][_0x10ed('0x34')](_0x1861d3):null,_0x3d2f83=this[_0x10ed('0x71')](_0x16a70c,_0x1fe584),_0x4bc289=_0x3d2f83[_0x3d2f83['length']-0x1],_0x157a40=new Map(),_0x353d14={'model':{},'attributes':{},'changes':[]},_0x5a799b=new Set(),_0x4054a5=new Map();for(let _0x2c3baf=_0x3d2f83[_0x10ed('0x5a')]-0x1;_0x2c3baf>=0x0;_0x2c3baf--){const _0x26dfd8=_0x3d2f83[_0x2c3baf];for(const _0x2dd4d0 of Object[_0x10ed('0x6f')](_0x26dfd8[_0x10ed('0x112')]))if(_0x26dfd8[_0x10ed('0x112')][_0x2dd4d0]['attachChange']){const _0x1ec337=_0x26dfd8[_0x10ed('0x112')][_0x2dd4d0]['attachChange'];_0x1ec337[_0x10ed('0x59')]?(_0x5a799b[_0x10ed('0x2f')](_0x2dd4d0),_0x4054a5['has'](_0x2dd4d0)&&_0x4054a5[_0x10ed('0x8f')](_0x2dd4d0)[_0x10ed('0xc8')]==_0x1ec337['userId']?_0x4054a5['delete'](_0x2dd4d0):_0x4054a5[_0x10ed('0x47')](_0x2dd4d0,_0x1ec337)):_0x4054a5[_0x10ed('0xbb')](_0x2dd4d0)?(_0x5a799b[_0x10ed('0xa6')](_0x2dd4d0),_0x4054a5[_0x10ed('0xa6')](_0x2dd4d0)):(_0x5a799b[_0x10ed('0x2f')](_0x2dd4d0),_0x4054a5['set'](_0x2dd4d0,_0x1ec337));}else _0x5a799b['add'](_0x2dd4d0);}for(const _0x38033c of _0x5a799b){const _0x1ee4ad=_0x4054a5[_0x10ed('0xbb')](_0x38033c)&&!_0x4054a5[_0x10ed('0x8f')](_0x38033c)[_0x10ed('0x59')];let _0x352f46=_0x1ee4ad?_0x3d2f83[_0x10ed('0x5a')]-0x1:0x0;const _0x45c0a8=_0x1ee4ad?-0x1:0x1;for(;_0x3d2f83[_0x352f46];){const _0x2261c7=_0x3d2f83[_0x352f46];if(_0x2261c7[_0x10ed('0x112')][_0x38033c]){const _0xa6f668=_0x1ee4ad?_0x2261c7['diffData'][_0x38033c][_0x10ed('0x116')]:_0x2261c7[_0x10ed('0x112')][_0x38033c][_0x10ed('0xed')];_0x353d14[_0x10ed('0xf')][_0x38033c]=_0xa6f668?_0x1eb127(_0xa6f668):{};break;}_0x352f46+=_0x45c0a8;}}for(const _0xd1d612 of _0x3d2f83){_0xd1d612[_0x10ed('0x49')]={};for(const _0x593835 of _0xd1d612['authors'])_0x157a40[_0x10ed('0x47')](_0x593835['id'],_0x593835);for(const _0xef26a3 of _0x5a799b){const _0x35e0f8=_0xd1d612[_0x10ed('0x112')][_0xef26a3]?_0xd1d612[_0x10ed('0x112')][_0xef26a3][_0x10ed('0x122')]:'[]',_0x42f02a=_0xd1d612['diffData'][_0xef26a3]?_0xd1d612['diffData'][_0xef26a3][_0x10ed('0x114')]:'[]';_0xd1d612[_0x10ed('0x49')][_0xef26a3]={'insertions':this[_0x10ed('0x1b')](_0x35e0f8),'deletions':this[_0x10ed('0x1b')](_0x42f02a)};}}for(const _0x2aa5bb of _0x5a799b){let _0x42025b=null,_0x3a2ebf=0x0;const _0x358ece=new Map(Array[_0x10ed('0x90')](_0x16a70c[_0x10ed('0x49')][_0x2aa5bb][_0x10ed('0x122')][_0x10ed('0x10d')])[_0x10ed('0x113')](([_0x4a1f7b])=>!_0x4a1f7b[_0x10ed('0x20')](_0x10ed('0x93'))));let _0x513624=0x0;for(const _0x1164d4 of _0x3d2f83){const _0x226474=this[_0x10ed('0xe7')](_0x1164d4[_0x10ed('0x49')][_0x2aa5bb][_0x10ed('0x122')]);_0x1164d4==_0x16a70c?(_0x42025b=_0x226474,_0x3a2ebf=_0x42025b[_0x10ed('0x5a')],_0x42025b[_0x10ed('0x109')](_0x2dbeaf=>{_0x2dbeaf['id']=_0x513624++;}),this[_0x10ed('0xdf')](_0x42025b)):this[_0x10ed('0xd8')](_0x42025b,_0x226474);const _0x55690e=_0x42025b[_0x10ed('0x113')](_0x45f6a3=>!_0x45f6a3[_0x10ed('0x89')])['map'](_0x5bcfb9=>_0x5bcfb9['id']);let _0x3958e4=0x0;const _0x90be2=this['_makeTape'](_0x1164d4[_0x10ed('0x49')][_0x2aa5bb][_0x10ed('0x114')]);_0x90be2[_0x10ed('0x109')](_0x37da87=>{_0x37da87[_0x10ed('0x103')]?_0x37da87['id']=_0x3a2ebf++:_0x37da87['id']=_0x55690e[_0x3958e4++];}),this[_0x10ed('0xdf')](_0x90be2),this[_0x10ed('0x10')](_0x42025b,_0x10ed('0x89')),this[_0x10ed('0x10')](_0x90be2,'isRemoved'),_0x1164d4==_0x16a70c&&this[_0x10ed('0x11a')](_0x42025b,_0x358ece),_0x42025b=this[_0x10ed('0xd9')](_0x42025b,_0x90be2),this[_0x10ed('0xb7')](_0x42025b),this[_0x10ed('0x10')](_0x42025b,'isRemoved');}_0x42025b=_0x42025b[_0x10ed('0x113')](_0x18f0bf=>!(_0x18f0bf[_0x10ed('0x89')]&&_0x18f0bf[_0x10ed('0x103')]));const _0x2702d0=new Map(_0x4bc289[_0x10ed('0x49')][_0x2aa5bb][_0x10ed('0x114')][_0x10ed('0x10d')]),_0x291140=new Set(_0x358ece[_0x10ed('0x6f')]());for(const _0x2bf366 of _0x2702d0[_0x10ed('0x6f')]())_0x291140['delete'](_0x2bf366);this[_0x10ed('0x38')](_0x42025b,_0x291140),this[_0x10ed('0x8c')](_0x42025b),_0x42025b=this[_0x10ed('0x127')](_0x42025b),_0x42025b=this[_0x10ed('0x86')](_0x42025b),_0x42025b=this[_0x10ed('0x57')](_0x42025b);const {root:_0x149939,changes:_0x28f597}=this[_0x10ed('0xa1')](_0x42025b,_0x157a40,_0x2aa5bb);_0x353d14[_0x10ed('0x49')][_0x2aa5bb]=_0x149939;const _0x877ae8=_0x4054a5['get'](_0x2aa5bb);if(_0x877ae8){const _0x52823d=_0x157a40[_0x10ed('0x8f')](_0x877ae8['userId']),_0x5d49c1=new _0x406215({'author':_0x52823d,'type':_0x877ae8[_0x10ed('0x59')]?'add':_0x10ed('0x10e'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2aa5bb});_0x28f597[_0x10ed('0xff')](_0x5d49c1),_0x353d14['attributes'][_0x2aa5bb]['revisionHistoryAttachChange']=_0x5d49c1['id'];}_0x353d14[_0x10ed('0x6b')]=_0x353d14['changes'][_0x10ed('0x11b')](_0x28f597);}return _0x353d14;}[_0x10ed('0x11a')](_0x4f3be7,_0x3eb531){for(let _0x546591=0x0;_0x546591<_0x4f3be7[_0x10ed('0x5a')];_0x546591++)for(const [_0x2246d5,_0x3bb69b]of _0x3eb531)_0x3bb69b[_0x10ed('0xf2')][_0x10ed('0x97')](_0x4f3be7[_0x546591][_0x10ed('0x10b')])&&_0x4f3be7[_0x546591][_0x10ed('0x3e')][_0x10ed('0xfd')](_0x2246d5),_0x3bb69b[_0x10ed('0x15')]['isEqual'](_0x4f3be7[_0x546591]['nextPosition'])&&_0x4f3be7[_0x546591][_0x10ed('0x33')][_0x10ed('0xfd')](_0x2246d5);}[_0x10ed('0xd9')](_0x2fd4e1,_0x28da54){let _0x37b443=[],_0x8641a6=0x0,_0x1b0178=0x0;for(;_0x8641a6<_0x2fd4e1[_0x10ed('0x5a')]||_0x1b0178<_0x28da54[_0x10ed('0x5a')];){const _0x498389=_0x2fd4e1[_0x8641a6]||{},_0x1cdd9f=_0x28da54[_0x1b0178]||{};if(_0x498389['id']==_0x1cdd9f['id'])_0x8641a6++,_0x1b0178++,_0x37b443['push'](_0x498389);else{if(_0x1cdd9f[_0x10ed('0x103')]&&_0x498389[_0x10ed('0x89')]){const {commonTape:_0x39b01b,iEnd:_0x95d3f1,jEnd:_0xf169c}=this['_threeWayMerge'](_0x2fd4e1,_0x8641a6,_0x28da54,_0x1b0178);_0x37b443=_0x37b443[_0x10ed('0x11b')](_0x39b01b),_0x8641a6=_0x95d3f1,_0x1b0178=_0xf169c;}else _0x1cdd9f['isRemoved']?(_0x1b0178++,_0x37b443['push'](_0x1cdd9f)):(_0x8641a6++,_0x37b443['push'](_0x498389));}}return _0x37b443;}[_0x10ed('0x38')](_0x627ae5,_0x4875e8){const _0x24f9cb=[];for(let _0x6d1ed3=0x0;_0x6d1ed3<_0x627ae5['length'];_0x6d1ed3++){for(let _0x4ec31f=0x0;_0x4ec31f<_0x627ae5[_0x6d1ed3]['markersStart']['length'];_0x4ec31f++){const _0x6e7f77=_0x627ae5[_0x6d1ed3][_0x10ed('0x3e')][_0x4ec31f];if(!_0x4875e8[_0x10ed('0xbb')](_0x6e7f77))continue;const {group:_0x5c773c,type:_0x487d0d,authorId:_0x3cf0af}=_0x1721a4(_0x6e7f77);'revision-suggestion'!=_0x5c773c||_0x10ed('0x7c')!=_0x487d0d&&_0x10ed('0x92')!=_0x487d0d||(_0x24f9cb[_0x10ed('0xff')]({'type':_0x487d0d,'name':_0x6e7f77,'userId':_0x3cf0af}),_0x627ae5[_0x6d1ed3][_0x10ed('0x3e')]['splice'](_0x4ec31f,0x1),_0x4ec31f--);}_0x3d966a(_0x627ae5[_0x6d1ed3]);for(let _0x7b4041=0x0;_0x7b4041<_0x627ae5[_0x6d1ed3]['markersEnd']['length'];_0x7b4041++){const _0x4bd2b3=_0x627ae5[_0x6d1ed3]['markersEnd'][_0x7b4041];if(!_0x4875e8[_0x10ed('0xbb')](_0x4bd2b3))continue;const {group:_0xcb3d65,type:_0x18d343}=_0x1721a4(_0x4bd2b3);if(_0x10ed('0xee')!=_0xcb3d65||_0x10ed('0x7c')!=_0x18d343&&_0x10ed('0x92')!=_0x18d343)continue;_0x627ae5[_0x6d1ed3][_0x10ed('0x33')][_0x10ed('0x123')](_0x7b4041,0x1),_0x7b4041--;const _0xe841a6=_0x24f9cb[_0x10ed('0x58')](_0x767821=>_0x767821[_0x10ed('0x104')]==_0x4bd2b3);_0xe841a6>-0x1&&_0x24f9cb[_0x10ed('0x123')](_0xe841a6,0x1);}}function _0x1721a4(_0x12ef4a){const _0x412e16=_0x12ef4a['split'](':');return{'group':_0x412e16[0x0],'type':_0x412e16[0x1],'subType':_0x412e16[_0x10ed('0x5a')]>=0x5?_0x412e16[0x2]:null,'id':_0x412e16[_0x10ed('0x5a')]<0x5?_0x412e16[0x2]:_0x412e16[0x3],'authorId':_0x412e16[_0x10ed('0x5a')]<0x5?_0x412e16[0x3]:_0x412e16[0x4],'markerCount':0x6==_0x412e16[_0x10ed('0x5a')]?_0x412e16[0x5]:null};}function _0x3d966a(_0x43ee88){for(let _0x5b74a5=0x0;_0x5b74a5<_0x24f9cb[_0x10ed('0x5a')];_0x5b74a5++){if(_0x43ee88[_0x10ed('0x89')]&&_0x10ed('0x7c')==_0x24f9cb[_0x5b74a5]['type'])return _0x43ee88['isAddSuggestion']=_0x24f9cb[_0x5b74a5],void delete _0x43ee88['isAdded'];if(!_0x43ee88[_0x10ed('0x89')]&&!_0x43ee88[_0x10ed('0x103')]&&_0x10ed('0x92')==_0x24f9cb[_0x5b74a5][_0x10ed('0x80')])return void(_0x43ee88['isRemoveSuggestion']=_0x24f9cb[_0x5b74a5]);}}}[_0x10ed('0x10')](_0x40bc56,_0x2c6f67){let _0x474562=0x0,_0x4be1de=!0x1;const _0x208364=new Map();for(const _0x5789b6 of _0x40bc56)_0x5789b6[_0x2c6f67]?_0x4be1de&&(_0x474562++,_0x4be1de=!0x1):(_0x474562++,_0x4be1de=!0x0),_0x208364[_0x10ed('0x47')](_0x5789b6['id'],_0x474562);for(let _0x3e0dd8=0x0;_0x3e0dd8<_0x40bc56[_0x10ed('0x5a')];_0x3e0dd8++){if('isRemoved'==_0x2c6f67&&_0x40bc56[_0x3e0dd8][_0x10ed('0x89')]||_0x10ed('0x89')==_0x2c6f67&&_0x40bc56[_0x3e0dd8][_0x10ed('0x103')])continue;if(_0x10ed('0xe')==_0x40bc56[_0x3e0dd8][_0x10ed('0x80')]){_0x40bc56[_0x3e0dd8][_0x10ed('0xf6')]=0x0;continue;}const _0x3ab960=_0x208364[_0x10ed('0x8f')](_0x40bc56[_0x3e0dd8]['pairId']),_0x20870a=_0x208364['get'](_0x40bc56[_0x3e0dd8]['id']);_0x40bc56[_0x3e0dd8]['distance']=_0x3ab960-_0x20870a;}}[_0x10ed('0x71')](_0x53bf9b,_0x5d7110,_0x1b655e=!0x1){const _0xdc158e=[];let _0x3738e4=this['repository'][_0x10ed('0x9d')](_0x53bf9b),_0x34b860=this[_0x10ed('0x54')]['getIndex'](_0x5d7110);for(-0x1==_0x34b860&&(_0x34b860=this[_0x10ed('0x54')][_0x10ed('0x7a')][_0x10ed('0x5a')],_0x1b655e=!0x1);_0x3738e4<_0x34b860;)_0xdc158e[_0x10ed('0xfd')](this[_0x10ed('0x54')][_0x10ed('0x34')](_0x3738e4)),_0x3738e4++;return _0x1b655e&&_0xdc158e[_0x10ed('0xfd')](this[_0x10ed('0x54')][_0x10ed('0x34')](_0x3738e4)),_0xdc158e;}['_threeWayMerge'](_0x45c4d8,_0x4f07da,_0x39d129,_0xcf4ca6){const _0x449eb6=this['editor']['model'][_0x10ed('0x81')];let _0x5456f5=_0x4f07da;for(;_0x45c4d8[_0x5456f5]&&_0x45c4d8[_0x5456f5]['isAdded'];)_0x5456f5++;let _0x1885ab=_0xcf4ca6;for(;_0x39d129[_0x1885ab]&&_0x39d129[_0x1885ab][_0x10ed('0x103')];)_0x1885ab++;_0x39b127(_0x45c4d8,_0x4f07da,_0x5456f5),_0x39b127(_0x39d129,_0xcf4ca6,_0x1885ab);const _0x28a879=_0x39d129[_0x10ed('0xfc')](_0xcf4ca6,_0x1885ab)['concat'](_0x45c4d8[_0x10ed('0xfc')](_0x4f07da,_0x5456f5));return _0x28a879[_0x10ed('0xba')]((_0x3b84d0,_0x3fc699)=>_0x3b84d0[_0x10ed('0x10a')]!=_0x3fc699[_0x10ed('0x10a')]?_0x3b84d0[_0x10ed('0x10a')]-_0x3fc699[_0x10ed('0x10a')]:_0x3b84d0[_0x10ed('0xb2')]!=_0x3fc699[_0x10ed('0xb2')]?_0x3b84d0['level']-_0x3fc699[_0x10ed('0xb2')]:_0x3b84d0['distance']!=_0x3fc699[_0x10ed('0xf6')]?_0x3fc699[_0x10ed('0xf6')]-_0x3b84d0[_0x10ed('0xf6')]:!!_0x3b84d0[_0x10ed('0x89')]!=!!_0x3fc699[_0x10ed('0x89')]?-0x1==_0x3b84d0[_0x10ed('0x10a')]||0x0==_0x3b84d0[_0x10ed('0x10a')]?_0x3b84d0[_0x10ed('0x89')]?-0x1:0x1:_0x3b84d0['isAdded']?0x1:-0x1:_0x3b84d0[_0x10ed('0x35')]-_0x3fc699[_0x10ed('0x35')]),{'commonTape':_0x28a879,'iEnd':_0x5456f5,'jEnd':_0x1885ab};function _0x39b127(_0x1ec847,_0x435e45,_0x29f85c){let _0x2f5a42=-0x1,_0x2b082d=Number['POSITIVE_INFINITY'],_0x2b60f6=!0x0;for(let _0xe52b5b=_0x435e45;_0xe52b5b<_0x29f85c;_0xe52b5b++)if(_0x449eb6[_0x10ed('0x44')](_0x1ec847[_0xe52b5b][_0x10ed('0x84')])||(_0x2b60f6=!0x1),_0x1ec847[_0xe52b5b][_0x10ed('0x84')][_0x10ed('0x3c')]<_0x435e45&&(_0x2f5a42=_0xe52b5b),_0x1ec847[_0xe52b5b][_0x10ed('0x84')]['endIndex']>=_0x29f85c){_0x2b082d=_0xe52b5b;break;}_0x2b60f6&&(_0x2f5a42=_0x29f85c-0x1);for(let _0x36876b=_0x435e45;_0x36876b<_0x29f85c;_0x36876b++)_0x1ec847[_0x36876b]['side']=_0x36876b<=_0x2f5a42?-0x1:_0x36876b<_0x2b082d?0x0:0x1,_0x1ec847[_0x36876b][_0x10ed('0x35')]=_0x36876b;let _0x57c3a7=0x0;for(let _0xd9c0bf=_0x435e45;_0xd9c0bf<=_0x2f5a42;_0xd9c0bf++)0x0==_0x1ec847[_0xd9c0bf][_0x10ed('0xf6')]?_0x1ec847[_0xd9c0bf][_0x10ed('0xb2')]=_0x57c3a7:(_0x57c3a7++,_0x1ec847[_0xd9c0bf]['level']=_0x57c3a7,_0x57c3a7++);for(let _0x490637=_0x435e45;_0x490637<_0x29f85c;_0x490637++)0x0==_0x1ec847[_0x490637][_0x10ed('0x10a')]&&(_0x1ec847[_0x490637][_0x10ed('0xb2')]=_0x57c3a7);_0x57c3a7=0x0;for(let _0xe3ea8a=_0x29f85c-0x1;_0xe3ea8a>=_0x2b082d;_0xe3ea8a--)0x0==_0x1ec847[_0xe3ea8a][_0x10ed('0xf6')]?_0x1ec847[_0xe3ea8a]['level']=_0x57c3a7:(_0x57c3a7--,_0x1ec847[_0xe3ea8a][_0x10ed('0xb2')]=_0x57c3a7,_0x57c3a7--);}}['_fixObsoleteTags'](_0x4d006b){const _0x36f42e=new Map(),_0x2ce6f0=this['editor']['model'][_0x10ed('0x81')];for(let _0x3fcde8=0x1;_0x3fcde8<_0x4d006b[_0x10ed('0x5a')];_0x3fcde8++){let _0x3ca573,_0x163229,_0x125643;const _0x459c5a=_0x4d006b[_0x3fcde8],_0x215f49=_0x4d006b[_0x3fcde8-0x1];if(_0x10ed('0xe')==_0x459c5a[_0x10ed('0x80')])continue;if(_0x459c5a[_0x10ed('0x80')]!=_0x215f49['type'])continue;if(!_0x2ce6f0[_0x10ed('0x37')](_0x215f49[_0x10ed('0x84')])||_0x2ce6f0[_0x10ed('0xe8')](_0x215f49[_0x10ed('0x84')]))continue;if(!_0x2ce6f0[_0x10ed('0x37')](_0x459c5a['item'])||_0x2ce6f0[_0x10ed('0xe8')](_0x459c5a[_0x10ed('0x84')]))continue;if((_0x4d006b[_0x3fcde8][_0x10ed('0x89')]||_0x4d006b[_0x3fcde8][_0x10ed('0xd4')])&&_0x4d006b[_0x3fcde8-0x1][_0x10ed('0x103')])_0x3ca573=_0x4d006b[_0x3fcde8],_0x163229=_0x4d006b[_0x3fcde8-0x1],_0x125643=_0x3fcde8-0x1;else{if(!_0x4d006b[_0x3fcde8][_0x10ed('0x103')]||!_0x4d006b[_0x3fcde8-0x1][_0x10ed('0x89')]&&!_0x4d006b[_0x3fcde8-0x1][_0x10ed('0xd4')])continue;_0x3ca573=_0x4d006b[_0x3fcde8-0x1],_0x163229=_0x4d006b[_0x3fcde8],_0x125643=_0x3fcde8;}const _0x11c5f4=_0x3ca573[_0x10ed('0xb2')]==_0x163229['level'],_0x356238=Math[_0x10ed('0xb6')](_0x3ca573[_0x10ed('0xb2')])<Math[_0x10ed('0xb6')](_0x163229[_0x10ed('0xb2')])&&0x0==_0x163229[_0x10ed('0xf6')];(_0x11c5f4||_0x356238)&&(_0x36f42e[_0x10ed('0x47')](_0x163229['id'],_0x3ca573['id']),_0x4d006b[_0x10ed('0x123')](_0x125643,0x1),_0x3fcde8--,_0x3ca573[_0x10ed('0x89')]=!0x1);}for(let _0x23c8cf=0x0;_0x23c8cf<_0x4d006b['length'];_0x23c8cf++)_0x36f42e[_0x10ed('0xbb')](_0x4d006b[_0x23c8cf][_0x10ed('0x50')])&&(_0x4d006b[_0x23c8cf][_0x10ed('0x50')]=_0x36f42e[_0x10ed('0x8f')](_0x4d006b[_0x23c8cf][_0x10ed('0x50')]));}[_0x10ed('0x127')](_0x26a63a){const _0x2e96cc=new Set(_0x26a63a[_0x10ed('0x107')](_0x219d64=>_0x219d64['id']));for(let _0x4fb839=0x0;_0x4fb839<_0x26a63a[_0x10ed('0x5a')];_0x4fb839++)_0x2e96cc[_0x10ed('0xbb')](_0x26a63a[_0x4fb839][_0x10ed('0x50')])||0x0==_0x26a63a[_0x4fb839][_0x10ed('0xf6')]||(_0x26a63a[_0x4fb839][_0x10ed('0xd0')]=!0x0);return _0x26a63a[_0x10ed('0x113')](_0x5b274b=>!_0x5b274b['isIncorrect']);}[_0x10ed('0x86')](_0x479eb9){const _0x51f307=new Set();for(let _0x52b6ed=0x0;_0x52b6ed<_0x479eb9[_0x10ed('0x5a')];_0x52b6ed++){if(_0x51f307[_0x10ed('0xbb')](_0x479eb9[_0x52b6ed]['id'])&&_0x479eb9[_0x52b6ed]['isRemoved']&&(_0x479eb9[_0x52b6ed][_0x10ed('0xd0')]=!0x0),_0x479eb9[_0x52b6ed][_0x10ed('0xd0')])continue;if(0x0==_0x479eb9[_0x52b6ed][_0x10ed('0xf6')])continue;if(_0x10ed('0xe3')!=_0x479eb9[_0x52b6ed][_0x10ed('0x80')])continue;if(null==_0x479eb9[_0x52b6ed][_0x10ed('0x50')])continue;let _0x574683=_0x52b6ed+0x1,_0x579248=0x0;for(;_0x479eb9[_0x574683]['id']!=_0x479eb9[_0x52b6ed]['pairId'];)_0x10ed('0xe3')==_0x479eb9[_0x574683][_0x10ed('0x80')]?_0x579248++:_0x10ed('0x118')==_0x479eb9[_0x574683][_0x10ed('0x80')]&&_0x579248--,_0x574683++;if(0x0!=_0x579248){if(_0x479eb9[_0x52b6ed][_0x10ed('0x103')])_0x479eb9[_0x52b6ed][_0x10ed('0xd0')]=!0x0;else for(;_0x574683!=_0x52b6ed;)_0x479eb9[_0x574683][_0x10ed('0x103')]&&0x0!=_0x479eb9[_0x574683][_0x10ed('0xf6')]&&(_0x479eb9[_0x574683][_0x10ed('0xd0')]=!0x0,_0x51f307['add'](_0x479eb9[_0x574683][_0x10ed('0x50')])),_0x574683--;}}return _0x479eb9[_0x10ed('0x113')](_0x4bd203=>!_0x4bd203[_0x10ed('0xd0')]);}[_0x10ed('0x57')](_0x56e513){const _0x2b65c9=this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0x81')];for(let _0x5ba5d2=0x0;_0x5ba5d2<_0x56e513['length'];_0x5ba5d2++){if(!(_0x56e513[_0x5ba5d2][_0x10ed('0x89')]||_0x56e513[_0x5ba5d2][_0x10ed('0xd4')]||_0x56e513[_0x5ba5d2]['isRemoved']||_0x56e513[_0x5ba5d2][_0x10ed('0x28')]))continue;if(0x0==_0x56e513[_0x5ba5d2]['distance'])continue;const _0x6bca3d=_0x56e513[_0x5ba5d2][_0x10ed('0x84')];_0x2b65c9['isBlock'](_0x6bca3d)||_0x2b65c9[_0x10ed('0xe8')](_0x6bca3d)||(_0x56e513[_0x5ba5d2]['isAdded']&&delete _0x56e513[_0x5ba5d2][_0x10ed('0x89')],_0x56e513[_0x5ba5d2][_0x10ed('0xd4')]&&delete _0x56e513[_0x5ba5d2]['isAddSuggestion'],_0x56e513[_0x5ba5d2][_0x10ed('0x28')]&&delete _0x56e513[_0x5ba5d2][_0x10ed('0x28')],_0x56e513[_0x5ba5d2][_0x10ed('0x103')]&&(_0x56e513[_0x5ba5d2][_0x10ed('0xd0')]=!0x0));}return _0x56e513[_0x10ed('0x113')](_0xa9c59e=>!_0xa9c59e[_0x10ed('0xd0')]);}[_0x10ed('0xa1')](_0x37dadd,_0x3b0a95,_0x10517e){const _0x4fe7bd=new _0x1d3a31(),_0xfbf830=[],_0x20fc89=new Map(),_0x445f49=this[_0x10ed('0x61')][_0x10ed('0x49')],_0x4d2e6c=_0x445f49[_0x10ed('0x81')],_0x1b3797=[_0x4fe7bd],_0x1687d2={},_0x35123d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x51f267=null;const _0x245892=[0x0];for(let _0xe8b9dd=0x0;_0xe8b9dd<_0x37dadd['length'];_0xe8b9dd++){let _0xbf1bc6,_0x4ccd76;if(_0x10ed('0xe3')===_0x37dadd[_0xe8b9dd][_0x10ed('0x80')]){_0xbf1bc6=_0x445f49[_0x10ed('0xfb')](_0x4fe7bd,_0x245892);const _0x224cde=new _0x5577c4(_0x37dadd[_0xe8b9dd]['item']['name'],_0x37dadd[_0xe8b9dd][_0x10ed('0x84')][_0x10ed('0xeb')]());_0x1b3797[0x0]['_appendChild'](_0x224cde),_0x245892['push'](0x0),_0x1b3797[_0x10ed('0xff')](_0x224cde),_0x4ccd76=_0x445f49['createPositionFromPath'](_0x4fe7bd,_0x245892),_0x51f267=null;}else{if(_0x10ed('0x118')===_0x37dadd[_0xe8b9dd][_0x10ed('0x80')])_0x1b3797[_0x10ed('0x6')](),_0xbf1bc6=_0x445f49['createPositionFromPath'](_0x4fe7bd,_0x245892),_0x245892['pop'](),_0x245892[_0x245892[_0x10ed('0x5a')]-0x1]++,_0x4ccd76=_0x445f49['createPositionFromPath'](_0x4fe7bd,_0x245892),_0x51f267=null;else{if(_0xbf1bc6=_0x445f49['createPositionFromPath'](_0x4fe7bd,_0x245892),_0x51f267&&_0x270984(_0x51f267,_0x37dadd[_0xe8b9dd][_0x10ed('0x84')]))_0x51f267[_0x10ed('0xcb')]+=_0x37dadd[_0xe8b9dd][_0x10ed('0x84')]['data'];else{const _0x9e374e=new _0x879057(_0x37dadd[_0xe8b9dd]['item'][_0x10ed('0x125')],_0x37dadd[_0xe8b9dd][_0x10ed('0x84')][_0x10ed('0xeb')]());_0x1b3797[0x0][_0x10ed('0xdb')](_0x9e374e),_0x51f267=_0x9e374e;}_0x245892[_0x245892[_0x10ed('0x5a')]-0x1]+=_0x37dadd[_0xe8b9dd][_0x10ed('0x84')][_0x10ed('0x9a')],_0x4ccd76=_0x445f49[_0x10ed('0xfb')](_0x4fe7bd,_0x245892);}}for(const _0x43a691 of _0x37dadd[_0xe8b9dd][_0x10ed('0x3e')])_0x20fc89[_0x10ed('0x47')](_0x43a691,{'start':_0xbf1bc6,'end':null});_0x3c8028('isRemoveSuggestion',_0xe8b9dd,_0xbf1bc6,_0x4ccd76),_0x3c8028(_0x10ed('0xd4'),_0xe8b9dd,_0xbf1bc6,_0x4ccd76),_0x3c8028(_0x10ed('0x103'),_0xe8b9dd,_0xbf1bc6,_0x4ccd76),_0x3c8028(_0x10ed('0x89'),_0xe8b9dd,_0xbf1bc6,_0x4ccd76);for(const _0x5538b3 of _0x37dadd[_0xe8b9dd][_0x10ed('0x33')]){_0x20fc89[_0x10ed('0x8f')](_0x5538b3)[_0x10ed('0x15')]=_0x4ccd76;}}for(const [_0x22b09d,_0x513e16]of _0x20fc89){const _0x26801d=this[_0x10ed('0x61')]['model'][_0x10ed('0xa8')](_0x513e16[_0x10ed('0xf2')],_0x513e16['end']);_0x4fe7bd[_0x10ed('0x10d')]['set'](_0x22b09d,_0x26801d);}return _0xfbf830[_0x10ed('0xba')]((_0x2d4f85,_0x577b81)=>{const _0x27c7ef=_0x4fe7bd['markers'][_0x10ed('0x8f')](_0x10ed('0x93')+_0x2d4f85['id']),_0x155496=_0x4fe7bd[_0x10ed('0x10d')][_0x10ed('0x8f')](_0x10ed('0x93')+_0x577b81['id']);return _0x27c7ef[_0x10ed('0xf2')][_0x10ed('0x4')](_0x155496[_0x10ed('0xf2')])?-0x1:_0x27c7ef[_0x10ed('0xf2')][_0x10ed('0x45')](_0x155496[_0x10ed('0xf2')])?0x1:_0x27c7ef[_0x10ed('0x15')][_0x10ed('0x4')](_0x155496[_0x10ed('0x15')])?-0x1:_0x27c7ef[_0x10ed('0x15')]['isAfter'](_0x155496[_0x10ed('0x15')])?0x1:_0x10ed('0x2f')===_0x2d4f85['type']?-0x1:0x1;}),{'root':_0x4fe7bd,'changes':_0xfbf830};function _0x3c8028(_0x2be399,_0x3b2d9a,_0x5c7ca0,_0x32ea1e){const _0x103382=!!_0x37dadd[_0x3b2d9a][_0x2be399],_0x24d1b7=_0x103382?_0x37dadd[_0x3b2d9a][_0x2be399]['userId']:null,_0x207ae5=_0x3b2d9a===_0x37dadd[_0x10ed('0x5a')]-0x1,_0x196eea=_0x35123d[_0x2be399][0x0],_0x2a55f3=_0x4d2e6c[_0x10ed('0x2c')](_0x37dadd[_0x3b2d9a][_0x10ed('0x84')]);!_0x1687d2[_0x2be399]&&_0x103382?_0x1687d2[_0x2be399]={'start':_0x5c7ca0,'tapeItem':_0x37dadd[_0x3b2d9a],'userId':_0x24d1b7,'type':_0x2be399}:_0x1687d2[_0x2be399]&&!_0x103382?(_0x1687d2[_0x2be399][_0x10ed('0x15')]=_0x5c7ca0,_0x46bc88(_0x1687d2[_0x2be399]),_0x1687d2[_0x2be399]=null):_0x1687d2[_0x2be399]&&_0x103382&&_0x1687d2[_0x2be399]['userId']!==_0x24d1b7&&(_0x1687d2[_0x2be399]['end']=_0x5c7ca0,_0x196eea&&_0x196eea[_0x10ed('0xc8')]===_0x1687d2[_0x2be399][_0x10ed('0xc8')]||_0x46bc88(_0x1687d2[_0x2be399]),_0x1687d2[_0x2be399]={'start':_0x5c7ca0,'tapeItem':_0x37dadd[_0x3b2d9a],'userId':_0x24d1b7,'type':_0x2be399}),_0x1687d2[_0x2be399]&&_0x2a55f3&&(_0x10ed('0xe3')!==_0x37dadd[_0x3b2d9a]['type']||_0x196eea&&_0x196eea[_0x10ed('0xc8')]===_0x24d1b7||_0x35123d[_0x2be399]['unshift']({'userId':_0x24d1b7,'object':_0x37dadd[_0x3b2d9a][_0x10ed('0x84')],'change':_0x1687d2[_0x2be399]}),_0x10ed('0x118')===_0x37dadd[_0x3b2d9a][_0x10ed('0x80')]&&_0x196eea&&_0x196eea[_0x10ed('0x76')]===_0x37dadd[_0x3b2d9a]['item']&&(_0x35123d[_0x2be399]['shift'](),_0x1687d2[_0x2be399]=_0x196eea['change'])),_0x1687d2[_0x2be399]&&_0x207ae5&&(_0x1687d2[_0x2be399][_0x10ed('0x15')]=_0x32ea1e,_0x46bc88(_0x1687d2[_0x2be399]),_0x1687d2[_0x2be399]=null);}function _0x46bc88({start:_0x52d583,end:_0x5e7cda,tapeItem:_0x4b1632,userId:_0x42eca3,type:_0x558086}){const _0x2d0968=_0x4b1632[_0x10ed('0x84')],_0x3554b3=_0x445f49[_0x10ed('0x81')][_0x10ed('0x37')](_0x2d0968)&&!_0x445f49[_0x10ed('0x81')]['isLimit'](_0x2d0968),_0xe71d8a=_0x52d583[_0x10ed('0x68')]==_0x5e7cda[_0x10ed('0x67')]&&_0x5e7cda[_0x10ed('0x2b')];if(_0x3554b3&&_0xe71d8a)return;const _0x3d1088=_0x445f49[_0x10ed('0xa8')](_0x52d583,_0x5e7cda),_0xd2d5f5=_0x3b0a95['get'](_0x42eca3),_0x3ee590=new _0x406215({'author':_0xd2d5f5,'type':_0x10ed('0x89')==_0x558086||_0x10ed('0xd4')==_0x558086?_0x10ed('0x2f'):_0x10ed('0x10e'),'data':{'isSuggestion':_0x10ed('0xd4')==_0x558086||_0x10ed('0x28')==_0x558086},'createdAt':new Date(),'rootName':_0x10517e});_0xfbf830['push'](_0x3ee590),_0x4fe7bd[_0x10ed('0x10d')]['set'](_0x10ed('0x93')+_0x3ee590['id'],_0x3d1088);}function _0x270984(_0xe20303,_0xe7fcf3){const _0x16cbcb=_0xe20303[_0x10ed('0xeb')](),_0x4fbe97=_0xe7fcf3['getAttributes']();for(const _0x3cfa1e of _0x16cbcb){if(_0x3cfa1e[0x1]!==_0xe7fcf3[_0x10ed('0x88')](_0x3cfa1e[0x0]))return!0x1;_0x4fbe97[_0x10ed('0x25')]();}return _0x4fbe97['next']()['done'];}}['_setConversion'](){this[_0x10ed('0x61')][_0x10ed('0xde')]['for']('upcast')[_0x10ed('0x74')]({'view':'revision'}),this[_0x10ed('0x61')][_0x10ed('0xde')][_0x10ed('0x8e')](_0x10ed('0x56'))[_0x10ed('0xe1')]({'model':_0x10ed('0x66'),'view':_0x22846d=>{const _0x266917=_0x22846d[_0x10ed('0xad')]['split'](':')[0x1],_0x36a9af=this[_0x10ed('0xda')](_0x266917);if(!_0x36a9af)return null;const _0xc2edb9='add'==_0x36a9af[_0x10ed('0x80')]?_0x10ed('0x7c'):_0x10ed('0x92'),_0x12e1eb=[_0x10ed('0x73'),_0x10ed('0x0')+_0xc2edb9];return _0x36a9af[_0x10ed('0x125')][_0x10ed('0x126')]&&_0x12e1eb['push'](_0x10ed('0x0')+_0xc2edb9+_0x10ed('0xe5')),this['activeChange']==_0x36a9af&&_0x12e1eb[_0x10ed('0xfd')]('ck-suggestion-marker--active'),{'classes':_0x12e1eb,'attributes':{'data-change-id':_0x266917}};}}),this['editor'][_0x10ed('0xde')][_0x10ed('0x8e')](_0x10ed('0x18'))[_0x10ed('0x2f')](_0x5aff07=>{_0x5aff07['on'](_0x10ed('0xc5'),(_0x4b0d10,_0x2e1b09,_0x5849ec)=>{const _0x5e2ed1=_0x2e1b09[_0x10ed('0x106')][_0x10ed('0x100')](0x0);if(!_0x5e2ed1||!_0x5e2ed1['is'](_0x10ed('0x83'),'code'))return;if(!_0x5849ec[_0x10ed('0xbc')][_0x10ed('0x69')](_0x5e2ed1,{'attributes':['vid_start',_0x10ed('0xf4')]}))return;const _0x318b90=_0x2e1b09[_0x10ed('0x8b')][_0x10ed('0xf2')][_0x10ed('0x68')];_0x5849ec[_0x10ed('0xe4')][_0x10ed('0x23')]('vid_start',_0x5e2ed1[_0x10ed('0x88')]('vid_start'),_0x318b90),_0x5849ec[_0x10ed('0xe4')]['setAttribute'](_0x10ed('0xf4'),_0x5e2ed1['getAttribute'](_0x10ed('0xf4')),_0x318b90);},{'priority':'low'});}),this[_0x10ed('0x61')][_0x10ed('0xde')][_0x10ed('0x8e')](_0x10ed('0x18'))[_0x10ed('0x2f')](_0x38ad96=>{_0x38ad96['on']('element',(_0x22d7f4,_0x1a8013,_0x3aefc5)=>{if(!_0x3aefc5[_0x10ed('0xbc')][_0x10ed('0x69')](_0x1a8013[_0x10ed('0x106')],{'attributes':['vid_start',_0x10ed('0xf4')]}))return;if(_0x1a8013[_0x10ed('0x8b')]['isCollapsed'])return;const _0x88fa25=_0x1a8013['modelRange'][_0x10ed('0xf2')][_0x10ed('0x68')];_0x88fa25['hasAttribute'](_0x10ed('0xea'))||_0x88fa25[_0x10ed('0xe6')](_0x10ed('0x108'))||(_0x3aefc5[_0x10ed('0xe4')][_0x10ed('0x23')](_0x10ed('0xea'),_0x1a8013[_0x10ed('0x106')][_0x10ed('0x88')](_0x10ed('0xea')),_0x88fa25),_0x3aefc5['writer'][_0x10ed('0x23')](_0x10ed('0xf4'),_0x1a8013[_0x10ed('0x106')][_0x10ed('0x88')](_0x10ed('0xf4')),_0x88fa25));},{'priority':_0x10ed('0x14')});}),this[_0x10ed('0x61')][_0x10ed('0xde')][_0x10ed('0x8e')](_0x10ed('0x18'))[_0x10ed('0xca')]({'view':{'name':_0x10ed('0x36'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x329c8d=>_0x329c8d[_0x10ed('0x88')](_0x10ed('0x108'))}}),this[_0x10ed('0x61')]['model'][_0x10ed('0x81')]['on'](_0x10ed('0x48'),(_0x479cb0,[,_0x2b952c])=>{[_0x10ed('0xea'),_0x10ed('0xf4'),_0x10ed('0x108')][_0x10ed('0x102')](_0x2b952c)&&(_0x479cb0[_0x10ed('0xa4')]=!0x0,_0x479cb0[_0x10ed('0x2d')]());},{'priority':_0x10ed('0x121')}),this['editor'][_0x10ed('0xde')][_0x10ed('0x8e')](_0x10ed('0xc0'))[_0x10ed('0x2f')](_0x4560b1=>{_0x4560b1['on'](_0x10ed('0xaa'),(_0x1d55ef,_0x1b6199,_0x299dc2)=>{if('\x20'!=_0x1b6199['item'][_0x10ed('0x125')]||_0x1b6199['item'][_0x10ed('0x67')][_0x10ed('0xb0')]>0x1)return;if(!_0x299dc2[_0x10ed('0xbc')]['consume'](_0x1b6199[_0x10ed('0x84')],_0x1d55ef[_0x10ed('0x104')]))return;const _0x5285e8=_0x299dc2[_0x10ed('0xe4')],_0x5a5074=_0x299dc2[_0x10ed('0x5c')][_0x10ed('0xdc')](_0x1b6199[_0x10ed('0xc4')]);_0x5285e8['wrap'](_0x5a5074,_0x5285e8[_0x10ed('0x13')](_0x10ed('0x36')));});}),this[_0x10ed('0x61')][_0x10ed('0xde')][_0x10ed('0x8e')](_0x10ed('0xc0'))[_0x10ed('0x6d')]({'model':_0x10ed('0x66')}),this['editor']['editing'][_0x10ed('0x26')]['on']('addMarker:revision',function(_0x85b0f1){const _0x3bbe0b=_0x85b0f1[_0x10ed('0x52')][_0x10ed('0x8f')]('RevisionViewer');return(_0x27fdde,_0x1bb60d,_0x35e023)=>{const _0x46a6ec=_0x1bb60d[_0x10ed('0xad')][_0x10ed('0xcc')](':')[0x1],_0x456b1c=_0x3bbe0b[_0x10ed('0xda')](_0x46a6ec);if(!_0x456b1c)return null;const _0x3037b3='add'==_0x456b1c[_0x10ed('0x80')]?_0x10ed('0xcc'):_0x10ed('0xcf');if(!_0x35e023[_0x10ed('0xbc')][_0x10ed('0xd2')](_0x1bb60d[_0x10ed('0x11e')],_0x27fdde[_0x10ed('0x104')]))return;const _0x5961a9=_0x1bb60d[_0x10ed('0x11e')]['getWalker'](),_0x3bb9e9=_0x1bb60d['markerRange']['start'],_0x4d6ac0=_0x85b0f1['model'][_0x10ed('0x81')];let _0x1e6686=null,_0x20ae11=null,_0x156645=!0x1,_0x9daa28=!0x1;for(const _0xf7324a of _0x5961a9){const _0x364690=_0xf7324a[_0x10ed('0x84')];_0x156645=_0x156645||_0x4d6ac0['isContent'](_0x364690);const _0x50cc47=_0x35e023[_0x10ed('0x5c')][_0x10ed('0x1a')](_0x364690);if(_0x50cc47&&_0x50cc47['getCustomProperty'](_0x10ed('0xfa')))return;'elementEnd'==_0xf7324a['type']&&(_0x4d6ac0[_0x10ed('0x37')](_0x364690)&&!_0x4d6ac0[_0x10ed('0xe8')](_0x364690)&&(_0x364690[_0x10ed('0xa7')]||_0x3bb9e9[_0x10ed('0x42')]?_0x1e6686&&_0x1e6686[_0x10ed('0x67')]==_0x364690||(_0x1e6686=_0x364690,_0x19c8b1(_0xf7324a['previousPosition']),_0x9daa28=!0x0):_0x20ae11=_0x20ae11||_0xf7324a['previousPosition']));}function _0x19c8b1(_0x105d69){const _0x9b51b8=_0x35e023[_0x10ed('0xe4')]['createUIElement'](_0x10ed('0x36'),{'class':_0x10ed('0x0')+_0x3037b3}),_0x127e10=_0x35e023[_0x10ed('0x5c')][_0x10ed('0x7d')](_0x105d69);_0x456b1c[_0x10ed('0x125')][_0x10ed('0x126')]&&_0x35e023[_0x10ed('0xe4')]['addClass'](_0x10ed('0x0')+_0x3037b3+'-new',_0x9b51b8),_0x3bbe0b[_0x10ed('0x24')]==_0x456b1c&&_0x35e023['writer']['addClass'](_0x10ed('0x17'),_0x9b51b8),_0x35e023[_0x10ed('0xe4')][_0x10ed('0xd')](_0x127e10,_0x9b51b8),_0x35e023[_0x10ed('0x5c')]['bindElementToMarker'](_0x9b51b8,_0x1bb60d[_0x10ed('0xad')]);}_0x156645||_0x9daa28||!_0x20ae11||_0x19c8b1(_0x20ae11);};}(this[_0x10ed('0x61')]),{'priority':_0x10ed('0x64')}),this[_0x10ed('0x61')]['editing'][_0x10ed('0x26')]['on'](_0x10ed('0x3a'),(_0x3107d5,_0x31f3e6,_0x403662)=>{const _0x5e1aaa=_0x403662['mapper'][_0x10ed('0xa9')](_0x31f3e6[_0x10ed('0xad')]);if(_0x5e1aaa)for(const _0x49b138 of _0x5e1aaa)(_0x49b138[_0x10ed('0x4e')]('ck-suggestion-marker-split')||_0x49b138[_0x10ed('0x4e')](_0x10ed('0xc9')))&&(_0x403662['mapper'][_0x10ed('0xe9')](_0x49b138,_0x31f3e6[_0x10ed('0xad')]),_0x403662[_0x10ed('0xe4')][_0x10ed('0x10e')](_0x49b138));},{'priority':_0x10ed('0x64')}),this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x26')]['on']('addMarker:revision',(_0x312931,_0xf521f5,_0x25948c)=>{const _0x447e3c=_0xf521f5[_0x10ed('0xad')][_0x10ed('0xcc')](':')[0x1],_0x5991c5=this['_getChangeFromId'](_0x447e3c);if(!_0x5991c5)return null;const _0x399dbf=_0x10ed('0x2f')==_0x5991c5[_0x10ed('0x80')]?_0x10ed('0xcc'):_0x10ed('0xcf');if(_0x25948c['consumable'][_0x10ed('0xd2')](_0xf521f5[_0x10ed('0x11e')],_0x312931[_0x10ed('0x104')]))for(const _0x4ee7ae of _0xf521f5[_0x10ed('0x11e')]['getItems']()){if(!_0x4ee7ae['is'](_0x10ed('0x83'),'softBreak'))continue;const _0x215ea0=_0x25948c[_0x10ed('0xe4')][_0x10ed('0x31')](_0x10ed('0x36'),{'class':_0x10ed('0x0')+_0x399dbf}),_0x5c780a=_0x25948c['mapper'][_0x10ed('0x7d')](this[_0x10ed('0x61')]['model'][_0x10ed('0x9e')](_0x4ee7ae));_0x5991c5['data'][_0x10ed('0x126')]&&_0x25948c[_0x10ed('0xe4')]['addClass'](_0x10ed('0x0')+_0x399dbf+'-new',_0x215ea0),this['activeChange']==_0x5991c5&&_0x25948c[_0x10ed('0xe4')]['addClass']('ck-suggestion-marker--active',_0x215ea0),_0x25948c[_0x10ed('0xe4')]['insert'](_0x5c780a,_0x215ea0),_0x25948c[_0x10ed('0x5c')][_0x10ed('0x110')](_0x215ea0,_0xf521f5[_0x10ed('0xad')]);}},{'priority':_0x10ed('0x64')}),this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0xc6')]['on']('change',()=>{this[_0x10ed('0x61')][_0x10ed('0x78')]['view'][_0x10ed('0xb8')](_0x408273=>{for(const _0xfad406 of this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0xc6')]['getRootNames']()){const _0x415c8a=this[_0x10ed('0x61')]['model']['document'][_0x10ed('0x9b')](_0xfad406),_0x46fe85=this['editor'][_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0xc6')][_0x10ed('0x9b')](_0xfad406);if(_0x46fe85){const _0x500770=_0x415c8a[_0x10ed('0x88')](_0x10ed('0x9'));if(_0x408273[_0x10ed('0x119')](_0x10ed('0x95'),_0x46fe85),_0x408273[_0x10ed('0x5')](_0x10ed('0x1'),_0x46fe85),_0x408273['removeClass'](_0x10ed('0x39'),_0x46fe85),_0x408273[_0x10ed('0x5')](_0x10ed('0xa3'),_0x46fe85),_0x500770){const _0x218685=this[_0x10ed('0xda')](_0x500770);if(!_0x218685)return null;_0x408273[_0x10ed('0x23')](_0x10ed('0x95'),_0x500770,_0x46fe85),_0x408273[_0x10ed('0x1e')](_0x10ed('0x115')+_0x218685['type'],_0x46fe85),this['activeChange']==_0x218685&&_0x408273[_0x10ed('0x1e')](_0x10ed('0xa3'),_0x46fe85);}}}});}),this['editor']['conversion'][_0x10ed('0x8e')]('upcast')[_0x10ed('0x74')]({'view':_0x10ed('0xd3'),'model':_0x405309=>_0x10ed('0xef')+_0x405309,'converterPriority':_0x10ed('0x121')}),this['editor'][_0x10ed('0xde')][_0x10ed('0x8e')]('upcast')[_0x10ed('0x74')]({'view':_0x10ed('0xa'),'model':_0x425738=>_0x10ed('0x98')+_0x425738,'converterPriority':_0x10ed('0x121')}),this[_0x10ed('0x61')][_0x10ed('0xde')][_0x10ed('0x8e')]('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2f8538=>({'name':_0x10ed('0x21')+_0x2f8538,'group':_0x10ed('0xee')}),'converterPriority':_0x10ed('0x121')}),this[_0x10ed('0x61')][_0x10ed('0xde')][_0x10ed('0x8e')](_0x10ed('0x56'))[_0x10ed('0xe1')]({'model':_0x10ed('0xee'),'view':_0x26dbf3=>{const _0x4b372e=_0x26dbf3[_0x10ed('0xad')][_0x10ed('0xcc')](':')[0x1];return _0x10ed('0x7c')!=_0x4b372e&&_0x10ed('0x92')!=_0x4b372e?null:{'classes':[_0x10ed('0xec'),_0x10ed('0xa5')+_0x4b372e]};}}),this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x26')]['on'](_0x10ed('0x117'),et(this['editor'],'merge'),{'priority':'high'}),this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x26')]['on'](_0x10ed('0x11d'),et(this[_0x10ed('0x61')],_0x10ed('0xcc')),{'priority':_0x10ed('0x64')}),this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x26')]['on'](_0x10ed('0xa2'),(_0x548b16,_0x3cdbd8,_0x18c420)=>{const _0x2134fd=_0x18c420['mapper']['markerNameToElements'](_0x3cdbd8[_0x10ed('0xad')]);if(_0x2134fd)for(const _0x53a79e of _0x2134fd)_0x53a79e['is'](_0x10ed('0x51'))&&(_0x18c420['mapper'][_0x10ed('0xe9')](_0x53a79e,_0x3cdbd8['markerName']),_0x18c420[_0x10ed('0xe4')][_0x10ed('0x10e')](_0x53a79e));},{'priority':_0x10ed('0x64')});}[_0x10ed('0xda')](_0x33e404){return this[_0x10ed('0x91')][_0x10ed('0x8f')](_0x33e404);}[_0x10ed('0x5d')](_0x327607){return this[_0x10ed('0x4b')]&&this['_changeView']['destroy'](),this[_0x10ed('0x4b')]=new _0x542f7b(this[_0x10ed('0x61')]['locale'],_0x327607),this[_0x10ed('0x4b')];}[_0x10ed('0x29')](){this['editor'][_0x10ed('0x49')]['document'][_0x10ed('0xe0')]['observeMarkers'](_0x10ed('0x66')),this['on'](_0x10ed('0xb5'),(_0xb26244,_0x273de3,_0x10a28f,_0x2531ac)=>{_0x2531ac&&this[_0x10ed('0x75')][_0x10ed('0x10e')](_0x2531ac),_0x10a28f&&(this[_0x10ed('0x75')][_0x10ed('0x2f')]({'view':_0x10a28f,'stackId':_0x10ed('0x3f'),'position':{'target':()=>{const _0x5e4b2c=this['editor'][_0x10ed('0x78')],_0x331ff3=this[_0x10ed('0xda')](_0x10a28f[_0x10ed('0x111')]);let _0x29f693;if(_0x331ff3[_0x10ed('0x125')][_0x10ed('0x5b')]){const _0x130e53=_0x5e4b2c[_0x10ed('0x6c')]['getDomRoot'](_0x331ff3[_0x10ed('0xe2')]);_0x29f693=Array[_0x10ed('0x90')](_0x130e53['getClientRects']());}else{const _0x4d3633=this[_0x10ed('0x61')]['model'][_0x10ed('0x10d')]['get'](_0x10ed('0x93')+_0x10a28f[_0x10ed('0x111')]);_0x29f693=Array[_0x10ed('0x90')](_0x5e4b2c[_0x10ed('0x5c')][_0x10ed('0xa9')](_0x4d3633[_0x10ed('0x104')]))[_0x10ed('0x107')](_0x33af49=>_0x5e4b2c[_0x10ed('0x6c')][_0x10ed('0xcd')][_0x10ed('0x43')](_0x33af49))[_0x10ed('0x107')](_0x4cd5e4=>Array[_0x10ed('0x90')](_0x4cd5e4[_0x10ed('0x8')]()))[_0x10ed('0xdd')]();}if(!this[_0x10ed('0x120')])return _0x29f693[0x0];return _0x29f693[_0x10ed('0xa0')](_0x40807f=>_0x40807f['top']-0x3<=this['_activeViewTarget']['y']&&_0x40807f[_0x10ed('0x65')]+0x3>=this[_0x10ed('0x120')]['y']&&_0x40807f[_0x10ed('0x124')]-0x3<=this['_activeViewTarget']['x']&&_0x40807f['right']+0x3>=this[_0x10ed('0x120')]['x'])||_0x29f693[0x0];}}}),this['_balloon'][_0x10ed('0x3d')]('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x125d72,_0x244603,_0x3357d8,_0x2ce885)=>{this[_0x10ed('0x60')]=_0x3357d8?this[_0x10ed('0x5d')](_0x3357d8):null,this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0xb8')](()=>{const _0x60b122=this[_0x10ed('0x61')]['editing'];_0x2ce885&&(_0x2ce885[_0x10ed('0x125')]['isOnRoot']?_0x60b122['view'][_0x10ed('0xb8')](_0x4f720c=>{_0x4f720c[_0x10ed('0x5')](_0x10ed('0xa3'),_0x60b122[_0x10ed('0x6c')][_0x10ed('0xc6')][_0x10ed('0x9b')](_0x2ce885[_0x10ed('0xe2')]));}):_0x60b122[_0x10ed('0xf1')]('revision:'+_0x2ce885['id'])),_0x3357d8&&(_0x3357d8[_0x10ed('0x125')][_0x10ed('0x5b')]?_0x60b122['view']['change'](_0x2865ef=>{_0x2865ef[_0x10ed('0x1e')](_0x10ed('0xa3'),_0x60b122['view']['document'][_0x10ed('0x9b')](_0x3357d8[_0x10ed('0xe2')]));}):_0x60b122[_0x10ed('0xf1')](_0x10ed('0x93')+_0x3357d8['id']));});}),this[_0x10ed('0x8a')](this['editor']['editing'][_0x10ed('0x6c')]['document'],_0x10ed('0x2e'),(_0x4e400c,_0x4e9e9d)=>{if(this['activeChange'])return;const _0x374716=this[_0x10ed('0xf0')](_0x4e9e9d[_0x10ed('0x4f')]),_0x2bcfab=this[_0x10ed('0x91')][_0x10ed('0x8f')](_0x374716);_0x2bcfab?(this[_0x10ed('0x120')]={'x':_0x4e9e9d['domEvent']['x'],'y':_0x4e9e9d[_0x10ed('0x19')]['y']},this[_0x10ed('0x60')]=this[_0x10ed('0x5d')](_0x2bcfab)):(this[_0x10ed('0x120')]=null,this[_0x10ed('0x60')]=null);}),this[_0x10ed('0x8a')](this['editor']['editing']['view']['document'],_0x10ed('0x16'),(_0x415874,_0x3139c8)=>{const _0x4fa4fc=this[_0x10ed('0xf0')](_0x3139c8['target']),_0x17472b=this['_changeIdToChange'][_0x10ed('0x8f')](_0x4fa4fc);_0x17472b?(this[_0x10ed('0x120')]={'x':_0x3139c8[_0x10ed('0x19')]['x'],'y':_0x3139c8['domEvent']['y']},_0x17472b===this[_0x10ed('0x24')]?this[_0x10ed('0x75')][_0x10ed('0x9f')]():this['activeChange']=_0x17472b):(this[_0x10ed('0x120')]=null,this['activeChange']=null);});}[_0x10ed('0xf0')](_0x19c585){do{const _0x1b6d70=_0x19c585['getAttribute'](_0x10ed('0x95'));if(_0x1b6d70)return _0x1b6d70;_0x19c585=_0x19c585[_0x10ed('0x67')];}while(_0x19c585);return null;}[_0x10ed('0x30')](){this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0xb8')](_0x368af4=>{for(const _0x57f193 of this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0x10d')])_0x368af4['removeMarker'](_0x57f193);});}}function et(_0x47b805,_0x41b59c){return(_0x50030e,_0x4d3608,_0x13abdb)=>{if(!_0x13abdb[_0x10ed('0xbc')][_0x10ed('0xd2')](_0x4d3608['markerRange'],_0x50030e['name']))return;const _0x340d05=_0x4d3608[_0x10ed('0x11e')]['getWalker'](),_0x1f1ced=_0x4d3608['markerRange'][_0x10ed('0xf2')],_0x1dcbd9=_0x47b805[_0x10ed('0x49')][_0x10ed('0x81')];let _0x30ac3e=null,_0x5baff9=null,_0x50045d=!0x1,_0x2f456f=!0x1;for(const _0xc72a34 of _0x340d05){const _0x2447c5=_0xc72a34[_0x10ed('0x84')];_0x50045d=_0x50045d||_0x1dcbd9[_0x10ed('0x11')](_0x2447c5);const _0x39c751=_0x13abdb[_0x10ed('0x5c')]['toViewElement'](_0x2447c5);if(_0x39c751&&_0x39c751[_0x10ed('0x4c')](_0x10ed('0xfa')))return;_0x10ed('0x118')==_0xc72a34['type']&&(_0x1dcbd9['isBlock'](_0x2447c5)&&!_0x1dcbd9['isLimit'](_0x2447c5)&&(_0x2447c5[_0x10ed('0xa7')]||_0x1f1ced[_0x10ed('0x42')]?_0x30ac3e&&_0x30ac3e[_0x10ed('0x67')]==_0x2447c5||(_0x30ac3e=_0x2447c5,_0x3383cd(_0xc72a34[_0x10ed('0x10b')]),_0x2f456f=!0x0):_0x5baff9=_0x5baff9||_0xc72a34[_0x10ed('0x10b')]));}function _0x3383cd(_0x36eba4){const _0x1d9aa2=_0x13abdb[_0x10ed('0x5c')][_0x10ed('0x7d')](_0x36eba4),_0x2023b4=_0x13abdb['writer'][_0x10ed('0x31')](_0x10ed('0x36'),{'class':_0x10ed('0xa5')+_0x41b59c});_0x13abdb[_0x10ed('0xe4')][_0x10ed('0xd')](_0x1d9aa2,_0x2023b4),_0x13abdb[_0x10ed('0x5c')][_0x10ed('0x110')](_0x2023b4,_0x4d3608[_0x10ed('0xad')]);}_0x50045d||_0x2f456f||!_0x5baff9||_0x3383cd(_0x5baff9);};}export class RestoreRevisionCommand extends _0x46c3fd{constructor(_0x4b53e5){super(_0x4b53e5);const _0x347192=_0x4b53e5[_0x10ed('0x52')]['get'](d);this[_0x10ed('0x94')]=!0x1,this['listenTo'](_0x347192,_0x10ed('0xc1'),()=>this[_0x10ed('0xc')]()),this['listenTo'](_0x347192,_0x10ed('0x70'),()=>this[_0x10ed('0xc')]());}[_0x10ed('0xbd')](){const _0x235f49=this[_0x10ed('0x61')],_0x52282b=_0x235f49[_0x10ed('0x52')][_0x10ed('0x8f')](d),_0x4066a1=_0x52282b[_0x10ed('0x1d')]?_0x52282b[_0x10ed('0xd1')]['newRevisionId']:null;_0x235f49[_0x10ed('0x27')][_0x10ed('0x8f')]('revisionHistory')[_0x10ed('0xf3')](_0x4066a1);}[_0x10ed('0xc')](){const {isReady:_0x2a8cfb,isEnabled:_0x4a91d2}=this[_0x10ed('0x61')][_0x10ed('0x52')]['get'](d);this[_0x10ed('0x12')]=_0x2a8cfb&&_0x4a91d2;}}export class ShowChangeCommand extends _0x46c3fd{constructor(_0x196802,{direction:_0x1d1b7a}){super(_0x196802);const _0x291308=_0x196802[_0x10ed('0x52')][_0x10ed('0x8f')](d);this['affectsData']=!0x1,this[_0x10ed('0x87')]=_0x10ed('0x4a')===_0x1d1b7a?0x1:-0x1,this['listenTo'](_0x291308,_0x10ed('0xc1'),()=>this[_0x10ed('0xc')]()),this[_0x10ed('0x8a')](_0x291308,_0x10ed('0x70'),()=>this['refresh']()),this[_0x10ed('0x8a')](_0x291308,_0x10ed('0xd5'),()=>this[_0x10ed('0xc')]());}[_0x10ed('0xbd')](){const _0x41e810=this['editor'],_0x565ac6=_0x41e810[_0x10ed('0x52')]['get'](d),{isNavigationMode:_0x29e630,currentChangeNumber:_0xb8374a}=_0x565ac6;let _0x5baec9;if(_0x565ac6['activeChange']=_0x29e630?_0x565ac6[_0x10ed('0xd1')][_0x10ed('0x6b')][_0x10ed('0x8f')](_0xb8374a+this[_0x10ed('0x87')]):_0x565ac6[_0x10ed('0xd1')][_0x10ed('0x6b')][_0x10ed('0xd6')],_0x565ac6[_0x10ed('0x24')]['data'][_0x10ed('0x5b')])_0x5baec9=_0x41e810[_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0x72')](_0x565ac6['activeChange'][_0x10ed('0xe2')]);else{const _0x4d7a43=_0x41e810[_0x10ed('0x49')]['markers'][_0x10ed('0x8f')](_0x10ed('0x93')+_0x565ac6[_0x10ed('0x24')]['id']);_0x5baec9=_0x4d02c5(_0x41e810['editing'],_0x4d7a43);}_0x320b83({'target':_0x5baec9,'viewportOffset':0x28});}[_0x10ed('0xc')](){const {isNavigationMode:_0x1d0437,currentChangeNumber:_0x4743a0,numberOfChanges:_0x51a67c,isReady:_0x5a8355,isEnabled:_0x59c3e3}=this[_0x10ed('0x61')][_0x10ed('0x52')][_0x10ed('0x8f')](d);this['isEnabled']=!!(_0x59c3e3&&_0x5a8355&&_0x51a67c)&&(!_0x1d0437||(0x1===this['_step']?_0x4743a0<_0x51a67c-0x1:_0x4743a0>0x0));}}
|
|
23
|
+
const _0x2c06=['catch','map','done','markersStart','isContent','isEqual','upcast','addHighlight','isOnRoot','error','uiElement','nodeAfter','change','_changeView','adapter','item','commands','diff','from','changeId','getChild','push','attributes','addMarker:revision','bottom','_getViewObj','getIndex','createRevision','target','end','vid','distance','endIndex','markerRange','data-change-id','affectsData','get','mousedown','find','length','hasAttribute','domEvent','ck-revision-history-root-add','repository','getWalker','writer','nextSibling','isAttached','_activeViewTarget','isAddSuggestion','toViewElement','sort','vid_start','loadRevisionData','isNavigationMode','listenTo','remove','_removeMissingPairs','isAtEnd','oldRevisionId','softBreak','ck-suggestion-preview-marker','offsetSize','processor','delete','getRoot','init','enqueueChange','return','includes','getAttributes','model','forEach','attachChange','addRevision','consume','previousPosition','_markInsertions','_setConversion','string','_cleanMarkers','insert','ck-suggestion-marker-split','getDomRoot','isReady','activeChange','revision:','config','startIndex','restoreRevision','revision','toModel','element','set','_processTape','indexOf','removeAttribute','_getDiff','compare','span','isLimit','attribute:vid','_markMismatchedRemovedTags','_makeModelFromViewString','low','getRootNames','addRoot','createPositionBefore','requires','authors','values','forward','isBefore','for','observeMarkers','text','findIndex','dataDowncast','ck-suggestion-marker','ck-editor__editable__overlay','addClass','bindElementToMarker','_setChanges','restoreRevisionCallback','change:activeChange','destroy','view','_makeTape','_refreshStartEndIndex','revisionHistoryAttachChange','attributesAfter','side','downcastDispatcher','newRevisionId','nextPosition','_setDistance','abs','revisionHistory','_step','filter','mapper','markers','merge','test','highest','WidgetToolbarRepository','ck-suggestion-marker-merge','elementEnd','viewItem','schema','userId','change:isReady','createUIElement','ck-suggestion-preview-marker-','revision-suggestion','getAttribute','getItems','_data','keys','bind','markersEnd','revision-viewer','setAttribute','stop','insertions','level','_revisions','isCollapsed','object','toViewRange','ck-revision-history-root--active','consumable','revision-suggestion:','RevisionsRepository','_findChangeIdFromDomTarget','getRevision','index','high','selection','change:isEnabled','markerToData','ck-suggestion-marker-','modelRange','revisionHistoryLabel','domConverter','createRange','element:pre','unshift','elementStart','editingDowncast','editor','markerToHighlight','useFillerType','isRemoved','markerNameToElements','data-revision-','dataToMarker','removeMarker','isInline','has','shift','document','_cleanUp','left','_initInteractions','mapViewToDom','removeMarker:revision-suggestion','_sortAndFilterDiffChanges','_getViewForChange','_balloon','plugins','_changeIdToChange','removeClass','type','wrap','addMarker:revision-suggestion:insertion','code','showStack','changes','getCustomProperty','pairId','markerName','add','start','showNextChange','_update','activeView','data','unbindElementFromMarkerName','_getRevisionsRange','ck-suggestion-marker--active','suggestion:','getRevisionData','reconvertMarker','revision-comment:','top','isAfter','editing','-new','deletions','insertion','execute','roots','isEnabled','parse','suggestion','splice','split','name','vid_end','flat','mouseover','removeMarker:revision','diffData','createPositionFromPath','isRemoveSuggestion','children','_removeUnsupportedChanges','then','deletion','rootName','conversion','isAdded','createRangeIn','pluginName','isIncorrect','getClientRects','comment','pop','_getChangeFromId','startsWith','concat','ck-revision-history-root-','refresh','_removeRevisionMarkers','next','isBlock','parent','ck-revision-history-root-remove','showPreviousChange','toViewPosition','isSuggestion','_markMarkers','hasClass','elementToAttribute'];(function(_0x38b41d,_0x2c06f7){const _0x2c7496=function(_0x347b38){while(--_0x347b38){_0x38b41d['push'](_0x38b41d['shift']());}};_0x2c7496(++_0x2c06f7);}(_0x2c06,0x152));const _0x2c74=function(_0x38b41d,_0x2c06f7){_0x38b41d=_0x38b41d-0x0;let _0x2c7496=_0x2c06[_0x38b41d];return _0x2c7496;};import{Plugin as _0x4a23ba,Command as _0x402c0a}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x518404}from'ckeditor5/src/utils';import{ContextualBalloon as _0x5d024b}from'ckeditor5/src/ui';import{DocumentFragment as _0x3d9a35,Element as _0x54db79,Text as _0x4b0ca6,ViewDocumentFragment as _0x4394df,ViewText as _0x5464d7,ViewElement as _0x3f6e08,ViewContainerElement as _0x201a82,ViewAttributeElement as _0x3c85c3,ViewEmptyElement as _0x1751d5,ViewRawElement as _0x73e402,ViewUIElement as _0x35685b}from'ckeditor5/src/engine';import{Users as _0x1be52b,getMarkerDomElement as _0x440720}from'ckeditor5-collaboration/src/collaboration-core';import _0x213ff7 from'./ui/revisionviewer/changedetailsview';import _0x400e4e from'./revisionsrepository';import _0x2da2d8 from'./changeitem';import{default as _0x5974b0}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x153910}from'lodash-es';const tt={'c':_0x201a82,'a':_0x3c85c3,'e':_0x1751d5,'r':_0x73e402,'u':_0x35685b};export default class d extends _0x4a23ba{static get[_0x2c74('0xd3')](){return'RevisionViewer';}static get[_0x2c74('0x37')](){return[_0x1be52b,_0x5d024b,_0x400e4e];}constructor(_0x44f684){super(_0x44f684),this['repository']=this[_0x2c74('0x89')][_0x2c74('0x9d')][_0x2c74('0x10c')](_0x2c74('0x78')),this[_0x2c74('0x28')](_0x2c74('0x20'),null),this[_0x2c74('0x28')](_0x2c74('0xad'),null),this[_0x2c74('0x118')]=null,this[_0x2c74('0x28')](_0x2c74('0xf9'),null),this[_0x2c74('0x28')]('isReady',!0x1),this['set'](_0x2c74('0xbe'),!0x0),this['on']('change:isEnabled',(_0x3c4bab,_0x14cd69,_0x8cf335)=>{this['activeChange']=null,this['activeView']=null,this['editor'][_0x2c74('0xb8')][_0x2c74('0x49')][_0x2c74('0xf4')](_0x35662c=>{for(const _0x10f591 of this[_0x2c74('0x89')]['editing'][_0x2c74('0x49')]['document'][_0x2c74('0xbd')])_0x8cf335?_0x35662c[_0x2c74('0x9f')]('ck-editor__editable__overlay',_0x10f591):_0x35662c[_0x2c74('0x43')](_0x2c74('0x42'),_0x10f591);});}),this['bind'](_0x2c74('0x1'))['to'](this,_0x2c74('0x20'),_0x1c42c5=>null!==_0x1c42c5),this[_0x2c74('0x6a')]('currentChangeNumber')['to'](this,'isReady',this,_0x2c74('0xf9'),this,_0x2c74('0x20'),(_0x54b358,_0x2a824c,_0x517fe5)=>_0x54b358&&_0x517fe5?_0x2a824c[_0x2c74('0xa5')][_0x2c74('0x102')](_0x517fe5):0x0),this[_0x2c74('0x6a')]('numberOfChanges')['to'](this,'isReady',this,_0x2c74('0xf9'),(_0x869199,_0x4945bd)=>_0x869199?_0x4945bd[_0x2c74('0xa5')][_0x2c74('0x10f')]:0x0),this['_changeView']=null,this[_0x2c74('0x9e')]=new Map(),this[_0x2c74('0xf6')]=null,this[_0x2c74('0x9c')]=this['editor'][_0x2c74('0x9d')][_0x2c74('0x10c')](_0x5d024b);}[_0x2c74('0xd')](){const _0x104026=this[_0x2c74('0x89')],_0x2113b4=new ShowChangeCommand(_0x104026,{'direction':'backward'}),_0x136359=new ShowChangeCommand(_0x104026,{'direction':_0x2c74('0x3a')});(_0x104026['commands'][_0x2c74('0xa9')](_0x2c74('0xe2'),_0x2113b4),_0x104026[_0x2c74('0xf8')][_0x2c74('0xa9')](_0x2c74('0xab'),_0x136359),_0x104026['commands'][_0x2c74('0xa9')](_0x2c74('0x24'),new RestoreRevisionCommand(_0x104026)),this['on']('change:numberOfChanges',()=>{_0x2113b4[_0x2c74('0xdc')](),_0x136359[_0x2c74('0xdc')]();}),this[_0x2c74('0x19')](),this[_0x2c74('0x97')](),_0x104026['enableReadOnlyMode'](_0x2c74('0x6c')),_0x104026[_0x2c74('0x9d')][_0x2c74('0x92')](_0x2c74('0x5c')))&&_0x104026['plugins'][_0x2c74('0x10c')](_0x2c74('0x5c'))['forceDisabled'](_0x2c74('0x6c'));}async[_0x2c74('0xb3')](_0x154b0d){await this[_0x2c74('0x0')](_0x154b0d);const _0x3f2c3e={};for(const _0xdb2d0b in _0x154b0d[_0x2c74('0xc8')]){if(_0x154b0d[_0x2c74('0xc8')][_0xdb2d0b][_0x2c74('0x14')]&&!_0x154b0d[_0x2c74('0xc8')][_0xdb2d0b][_0x2c74('0x14')][_0x2c74('0x117')])continue;const _0x1ec9fc=this['_removeRevisionMarkers'](JSON[_0x2c74('0xbf')](_0x154b0d[_0x2c74('0xc8')][_0xdb2d0b][_0x2c74('0x6f')])),_0x16bcb0=this[_0x2c74('0x89')][_0x2c74('0xb8')][_0x2c74('0x49')]['document'],_0x4f8b32=new _0x4394df(_0x16bcb0,_0x1ec9fc[_0x2c74('0xe9')](_0xfbd49d=>this['_getViewObj'](_0xfbd49d)));this[_0x2c74('0x89')][_0x2c74('0xae')][_0x2c74('0xa')][_0x2c74('0x8b')]('marked'),_0x3f2c3e[_0xdb2d0b]=this[_0x2c74('0x89')][_0x2c74('0xae')][_0x2c74('0xa')]['toData'](_0x4f8b32),this[_0x2c74('0x89')][_0x2c74('0xae')][_0x2c74('0xa')]['useFillerType']('default');}return _0x3f2c3e;}async['getRevisionRootsAttributes'](_0xd89697){await this['loadRevisionData'](_0xd89697);const _0x3e1b5d={};for(const _0x2bf711 in _0xd89697[_0x2c74('0xc8')])_0xd89697[_0x2c74('0xc8')][_0x2bf711][_0x2c74('0x14')]&&!_0xd89697[_0x2c74('0xc8')][_0x2bf711][_0x2c74('0x14')]['isAttached']||(_0x3e1b5d[_0x2bf711]=_0xd89697[_0x2c74('0xc8')][_0x2bf711][_0x2c74('0x4d')]||{});return _0x3e1b5d;}['_removeRevisionMarkers'](_0x191f55){return(_0x191f55=_0x191f55['filter'](_0x136b45=>!_0x136b45[_0x2c74('0xc3')]||'revision-start'!==_0x136b45['name']&&'revision-end'!==_0x136b45[_0x2c74('0xc3')]))[_0x2c74('0x13')](_0x10709b=>{'string'!=typeof _0x10709b&&(_0x10709b[_0x2c74('0xcb')]=this[_0x2c74('0xdd')](_0x10709b['children']),_0x10709b['attributes']=_0x10709b[_0x2c74('0xfe')][_0x2c74('0x56')](_0x2ccc9d=>!_0x2ccc9d[0x0][_0x2c74('0xd9')](_0x2c74('0x8e'))));}),_0x191f55;}async[_0x2c74('0x2d')](_0x5b22ef,_0x5277d0,_0x4d2284=!0x1){if(!this[_0x2c74('0xbe')])return;const _0x4685ca=this[_0x2c74('0xf9')],_0xffae1=this[_0x2c74('0x113')],_0x1e8499=_0x2c74('0x1a')==typeof _0x5b22ef?_0xffae1[_0x2c74('0x7a')](_0x5b22ef):_0x5b22ef,_0x222ff2=_0x2c74('0x1a')==typeof _0x5277d0?_0xffae1[_0x2c74('0x7a')](_0x5277d0):_0x5277d0,_0x57579c=_0x1e8499['id'],_0x1c3ef9=_0x222ff2?_0x222ff2['id']:null;if(!_0x4d2284&&this[_0x2c74('0xf9')]&&this[_0x2c74('0xf9')][_0x2c74('0x50')]===_0x57579c&&this[_0x2c74('0xf9')][_0x2c74('0x6')]===_0x1c3ef9)return Promise['resolve']();this[_0x2c74('0x1f')]=!0x1,this[_0x2c74('0xad')]=null,this[_0x2c74('0x20')]=null,this[_0x2c74('0xf9')]=new _0x5974b0(_0x57579c,_0x1c3ef9);const _0x508dcc=this[_0x2c74('0xb0')](_0x1e8499,_0x222ff2,!0x0)[_0x2c74('0xe9')](_0xcb745f=>this['loadRevisionData'](_0xcb745f));return _0x508dcc[_0x2c74('0xfd')](new Promise(_0x5e01ce=>{setTimeout(_0x5e01ce,0x14);})),Promise['all'](_0x508dcc)[_0x2c74('0xcd')](()=>{if(!this[_0x2c74('0xbe')])return;this[_0x2c74('0x95')]();const _0x4e5d2d=this['_getDiff'](_0x57579c,_0x1c3ef9);for(const _0x25806e of _0x4e5d2d[_0x2c74('0xa5')])this[_0x2c74('0x9e')][_0x2c74('0x28')](_0x25806e['id'],_0x25806e);this['editor'][_0x2c74('0x12')][_0x2c74('0xe')]({'isUndoable':!0x1},_0x13d39e=>{for(const _0x21a0c7 of this['editor'][_0x2c74('0x12')][_0x2c74('0x94')][_0x2c74('0x34')]())_0x13d39e['detachRoot'](_0x21a0c7);for(const _0x506c61 of Object['keys'](_0x4e5d2d[_0x2c74('0x12')])){const _0x523796=_0x13d39e[_0x2c74('0x35')](_0x506c61);for(const _0x54773f of Object[_0x2c74('0x69')](_0x4e5d2d[_0x2c74('0xfe')][_0x506c61]))_0x13d39e['setAttribute'](_0x54773f,_0x4e5d2d['attributes'][_0x506c61][_0x54773f],_0x523796);_0x13d39e[_0x2c74('0x1c')](_0x4e5d2d[_0x2c74('0x12')][_0x506c61],_0x523796,0x0);}}),this[_0x2c74('0xf9')][_0x2c74('0x45')](this[_0x2c74('0x9a')](_0x4e5d2d[_0x2c74('0xa5')])),this[_0x2c74('0x1f')]=!0x0;})[_0x2c74('0xe8')](_0x3f05b6=>{console[_0x2c74('0xf1')](_0x3f05b6),this[_0x2c74('0x95')](),_0x4685ca&&(this['diff']=_0x4685ca),this[_0x2c74('0x1f')]=!0x0;});}['addRevisionData'](_0x2a6ec1,_0x559938){const _0x1dd735=this[_0x2c74('0x113')][_0x2c74('0x103')](_0x2a6ec1);return _0x1dd735['on'](_0x2c74('0xac'),(_0x6cf34d,_0x3f351c,_0x5f5bc8)=>_0x559938(_0x3f351c,_0x5f5bc8,_0x1dd735)),this[_0x2c74('0x113')][_0x2c74('0x15')](_0x1dd735),_0x1dd735;}[_0x2c74('0x0')](_0x54d87c){if(!_0x54d87c||_0x54d87c['diffData'])return Promise['resolve']();{const _0x42b3b7=this[_0x2c74('0x89')][_0x2c74('0x22')][_0x2c74('0x10c')]('collaboration.channelId');return this[_0x2c74('0xf6')][_0x2c74('0x7a')]({'channelId':_0x42b3b7,'revisionId':_0x54d87c['id']})[_0x2c74('0xcd')](_0x1f2ddc=>{_0x54d87c[_0x2c74('0xac')]({'diffData':_0x1f2ddc['diffData']},!0x0);});}}[_0x2c74('0x95')](){this[_0x2c74('0x20')]=null,this[_0x2c74('0x1b')](),this[_0x2c74('0xf5')]&&this[_0x2c74('0xf5')][_0x2c74('0x48')](),this[_0x2c74('0xf5')]=null,this[_0x2c74('0x9e')]['clear'](),this[_0x2c74('0x89')][_0x2c74('0x12')][_0x2c74('0xe')]({'isUndoable':!0x1},_0x432873=>{for(const _0x1c4330 of this[_0x2c74('0x89')][_0x2c74('0x12')][_0x2c74('0x94')][_0x2c74('0x34')]())_0x432873['detachRoot'](_0x1c4330);});}[_0x2c74('0x9a')](_0x3b009c){const _0x433e6d=[],_0xc5f591=new Map();for(const _0x3e91b1 of this[_0x2c74('0x89')]['model'][_0x2c74('0x94')]['getRootNames']()){const _0xc2302f=this[_0x2c74('0x89')][_0x2c74('0xb8')][_0x2c74('0x49')]['getDomRoot'](_0x3e91b1);if(!_0xc2302f)continue;const _0x25040a=_0xc2302f['getClientRects']()[_0x2c74('0xf7')](0x0);_0x25040a&&(_0x433e6d['push'](_0x3e91b1),_0xc5f591[_0x2c74('0x28')](_0x3e91b1,_0x25040a));}return _0x433e6d['sort']((_0x235ee5,_0x12681c)=>{const _0x35db4c=_0xc5f591[_0x2c74('0x10c')](_0x235ee5),_0x35c1eb=_0xc5f591['get'](_0x12681c);return _0x35db4c['y']-_0x35c1eb['y']||_0x35db4c['x']-_0x35c1eb['x'];}),(_0x3b009c=_0x3b009c[_0x2c74('0x56')](_0x29f4b8=>_0x433e6d['includes'](_0x29f4b8['rootName'])))[_0x2c74('0x11b')]((_0x325c85,_0x1157ec)=>_0x433e6d[_0x2c74('0x2a')](_0x325c85['rootName'])-_0x433e6d['indexOf'](_0x1157ec[_0x2c74('0xcf')])),_0x3b009c;}[_0x2c74('0x4a')](_0x22a7b4){const _0x52f89d=Array[_0x2c74('0xfa')](_0x22a7b4['markers'])[_0x2c74('0x56')](([_0x581f7e,_0x530185])=>_0x581f7e[_0x2c74('0xd9')](_0x2c74('0x21'))&&!_0x530185[_0x2c74('0x72')]),_0x74d842=Array['from'](this[_0x2c74('0x89')][_0x2c74('0x12')][_0x2c74('0xd2')](_0x22a7b4)[_0x2c74('0x114')]({'singleCharacters':!0x0}));if(0x0!=_0x52f89d['length'])for(const _0x7ad416 of _0x74d842){const [_0x537868,_0x4e9118]=_0x52f89d[0x0],[,_0x267c84,_0x8c4c7a]=_0x537868[_0x2c74('0xc2')](':');if(_0x4e9118['end'][_0x2c74('0xed')](_0x7ad416[_0x2c74('0x51')])&&_0x52f89d[_0x2c74('0x93')](),(_0x7ad416[_0x2c74('0x17')][_0x2c74('0xed')](_0x4e9118[_0x2c74('0xaa')])||_0x7ad416[_0x2c74('0x17')][_0x2c74('0xb7')](_0x4e9118['start']))&&(_0x2c74('0xbb')==_0x267c84?_0x7ad416[_0x2c74('0xd1')]={'userId':_0x8c4c7a}:_0x2c74('0xce')==_0x267c84&&(_0x7ad416[_0x2c74('0x8c')]={'userId':_0x8c4c7a})),0x0==_0x52f89d['length'])break;}return _0x74d842;}[_0x2c74('0x4b')](_0x177028){const _0x2ce01c=new Map();for(let _0x54e795=0x0;_0x54e795<_0x177028[_0x2c74('0x10f')];_0x54e795++)_0x2c74('0x3e')===_0x177028[_0x54e795][_0x2c74('0xa0')]?(_0x177028[_0x54e795]['item']['startIndex']=_0x54e795,_0x177028[_0x54e795][_0x2c74('0xf7')][_0x2c74('0x108')]=_0x54e795):('elementStart'===_0x177028[_0x54e795][_0x2c74('0xa0')]?_0x177028[_0x54e795]['item'][_0x2c74('0x23')]=_0x54e795:'elementEnd'===_0x177028[_0x54e795][_0x2c74('0xa0')]&&(_0x177028[_0x54e795][_0x2c74('0xf7')][_0x2c74('0x108')]=_0x54e795),_0x2ce01c[_0x2c74('0x28')](_0x177028[_0x54e795]['id'],_0x54e795));for(const _0x448337 of _0x2ce01c[_0x2c74('0x39')]())_0x2c74('0x87')===_0x177028[_0x448337][_0x2c74('0xa0')]?_0x177028[_0x448337][_0x2c74('0xf7')][_0x2c74('0x108')]=_0x2ce01c[_0x2c74('0x10c')](_0x177028[_0x448337][_0x2c74('0xa7')]):_0x2c74('0x5e')===_0x177028[_0x448337][_0x2c74('0xa0')]&&(_0x177028[_0x448337][_0x2c74('0xf7')][_0x2c74('0x23')]=_0x2ce01c['get'](_0x177028[_0x448337][_0x2c74('0xa7')]));}[_0x2c74('0x29')](_0x2c0889){for(let _0x35b08d=0x0;_0x35b08d<_0x2c0889[_0x2c74('0x10f')];_0x35b08d++){if(_0x2c74('0x87')===_0x2c0889[_0x35b08d][_0x2c74('0xa0')])_0x2c0889[_0x35b08d]['item'][_0x2c74('0x23')]=_0x35b08d;else{if('elementEnd'===_0x2c0889[_0x35b08d][_0x2c74('0xa0')]){_0x2c0889[_0x35b08d][_0x2c74('0xf7')]['endIndex']=_0x35b08d;const _0x4ea012=_0x2c0889[_0x35b08d][_0x2c74('0xf7')]['startIndex'];_0x2c0889[_0x4ea012][_0x2c74('0xa7')]=_0x2c0889[_0x35b08d]['id'],_0x2c0889[_0x35b08d][_0x2c74('0xa7')]=_0x2c0889[_0x4ea012]['id'];}else _0x2c0889[_0x35b08d]['item'][_0x2c74('0x23')]=_0x35b08d,_0x2c0889[_0x35b08d][_0x2c74('0xf7')][_0x2c74('0x108')]=_0x35b08d,_0x2c0889[_0x35b08d]['pairId']=null;}_0x2c0889[_0x35b08d][_0x2c74('0xeb')]||(_0x2c0889[_0x35b08d][_0x2c74('0xeb')]=[],_0x2c0889[_0x35b08d][_0x2c74('0x6b')]=[]);}}[_0x2c74('0x18')](_0x157ddd,_0x3694b6){const _0x16f0ee=_0x157ddd[_0x2c74('0x56')](_0x181547=>!_0x181547[_0x2c74('0xd1')]);for(let _0x3655da=0x0;_0x3655da<_0x3694b6[_0x2c74('0x10f')];_0x3655da++)_0x3694b6[_0x3655da]['isAdded']&&(_0x16f0ee[_0x3655da][_0x2c74('0xd1')]=_0x3694b6[_0x3655da][_0x2c74('0xd1')]);}[_0x2c74('0x32')](_0x1be9c){const _0x4e1312=JSON[_0x2c74('0xbf')](_0x1be9c),_0x4d9576=this['editor'][_0x2c74('0xb8')]['view'][_0x2c74('0x94')],_0x185b0a=new _0x4394df(_0x4d9576,_0x4e1312[_0x2c74('0xe9')](_0x49f941=>this['_getViewObj'](_0x49f941)));return this[_0x2c74('0x89')][_0x2c74('0xae')][_0x2c74('0x26')](_0x185b0a);}[_0x2c74('0x101')](_0xf6c15d){const _0x332db7=this[_0x2c74('0x89')]['editing'][_0x2c74('0x49')]['document'];if(_0x2c74('0x1a')==typeof _0xf6c15d)return new _0x5464d7(_0x332db7,_0xf6c15d);{const _0x40b359=_0xf6c15d[_0x2c74('0xcb')][_0x2c74('0xe9')](_0x526540=>this[_0x2c74('0x101')](_0x526540));return new(tt[_0xf6c15d[(_0x2c74('0xa0'))]]||_0x3f6e08)(_0x332db7,_0xf6c15d[_0x2c74('0xc3')],_0xf6c15d['attributes'],_0x40b359);}}[_0x2c74('0x2c')](_0x42a28b,_0x4fd317=null){const _0x472e2f=this['repository'][_0x2c74('0x7a')](_0x42a28b),_0x45e316=_0x4fd317?this['repository'][_0x2c74('0x7a')](_0x4fd317):null,_0x5f3cc3=this[_0x2c74('0xb0')](_0x472e2f,_0x45e316),_0x1327b3=_0x5f3cc3[_0x5f3cc3[_0x2c74('0x10f')]-0x1],_0x4f8bd4=new Map(),_0x2ddc5e={'model':{},'attributes':{},'changes':[]},_0x51c95a=new Set(),_0x3d1d84=new Map();for(let _0x2b9d90=_0x5f3cc3[_0x2c74('0x10f')]-0x1;_0x2b9d90>=0x0;_0x2b9d90--){const _0x46bad4=_0x5f3cc3[_0x2b9d90];for(const _0x203c77 of Object[_0x2c74('0x69')](_0x46bad4[_0x2c74('0xc8')]))if(_0x46bad4[_0x2c74('0xc8')][_0x203c77][_0x2c74('0x14')]){const _0x6cea5c=_0x46bad4[_0x2c74('0xc8')][_0x203c77]['attachChange'];_0x6cea5c['isAttached']?(_0x51c95a[_0x2c74('0xa9')](_0x203c77),_0x3d1d84[_0x2c74('0x92')](_0x203c77)&&_0x3d1d84[_0x2c74('0x10c')](_0x203c77)['userId']==_0x6cea5c[_0x2c74('0x61')]?_0x3d1d84['delete'](_0x203c77):_0x3d1d84[_0x2c74('0x28')](_0x203c77,_0x6cea5c)):_0x3d1d84[_0x2c74('0x92')](_0x203c77)?(_0x51c95a[_0x2c74('0xb')](_0x203c77),_0x3d1d84[_0x2c74('0xb')](_0x203c77)):(_0x51c95a[_0x2c74('0xa9')](_0x203c77),_0x3d1d84[_0x2c74('0x28')](_0x203c77,_0x6cea5c));}else _0x51c95a[_0x2c74('0xa9')](_0x203c77);}for(const _0x186919 of _0x51c95a){const _0x9de1bb=_0x3d1d84['has'](_0x186919)&&!_0x3d1d84['get'](_0x186919)[_0x2c74('0x117')];let _0x2e3e57=_0x9de1bb?_0x5f3cc3[_0x2c74('0x10f')]-0x1:0x0;const _0x43209b=_0x9de1bb?-0x1:0x1;for(;_0x5f3cc3[_0x2e3e57];){const _0x1960bb=_0x5f3cc3[_0x2e3e57];if(_0x1960bb[_0x2c74('0xc8')][_0x186919]){const _0x2153b4=_0x9de1bb?_0x1960bb[_0x2c74('0xc8')][_0x186919]['attributesBefore']:_0x1960bb['diffData'][_0x186919][_0x2c74('0x4d')];_0x2ddc5e[_0x2c74('0xfe')][_0x186919]=_0x2153b4?_0x153910(_0x2153b4):{};break;}_0x2e3e57+=_0x43209b;}}for(const _0x5ba738 of _0x5f3cc3){_0x5ba738[_0x2c74('0x12')]={};for(const _0x5d98a0 of _0x5ba738[_0x2c74('0x38')])_0x4f8bd4[_0x2c74('0x28')](_0x5d98a0['id'],_0x5d98a0);for(const _0x4e0d99 of _0x51c95a){const _0x223d76=_0x5ba738[_0x2c74('0xc8')][_0x4e0d99]?_0x5ba738[_0x2c74('0xc8')][_0x4e0d99][_0x2c74('0x6f')]:'[]',_0x1ec6fe=_0x5ba738[_0x2c74('0xc8')][_0x4e0d99]?_0x5ba738['diffData'][_0x4e0d99][_0x2c74('0xba')]:'[]';_0x5ba738[_0x2c74('0x12')][_0x4e0d99]={'insertions':this['_makeModelFromViewString'](_0x223d76),'deletions':this[_0x2c74('0x32')](_0x1ec6fe)};}}for(const _0x3074b2 of _0x51c95a){let _0x1250ce=null,_0x51ac71=0x0;const _0x40564a=new Map(Array[_0x2c74('0xfa')](_0x472e2f[_0x2c74('0x12')][_0x3074b2][_0x2c74('0x6f')]['markers'])[_0x2c74('0x56')](([_0x3b4d60])=>!_0x3b4d60[_0x2c74('0xd9')](_0x2c74('0x21'))));let _0x32b698=0x0;for(const _0x5e5ab3 of _0x5f3cc3){const _0x4ea2ab=this['_makeTape'](_0x5e5ab3[_0x2c74('0x12')][_0x3074b2][_0x2c74('0x6f')]);_0x5e5ab3==_0x472e2f?(_0x1250ce=_0x4ea2ab,_0x51ac71=_0x1250ce[_0x2c74('0x10f')],_0x1250ce[_0x2c74('0x13')](_0x3601ba=>{_0x3601ba['id']=_0x32b698++;}),this[_0x2c74('0x29')](_0x1250ce)):this[_0x2c74('0x18')](_0x1250ce,_0x4ea2ab);const _0x5aad42=_0x1250ce[_0x2c74('0x56')](_0x46fa45=>!_0x46fa45[_0x2c74('0xd1')])['map'](_0x7650d0=>_0x7650d0['id']);let _0xdd915=0x0;const _0x191192=this[_0x2c74('0x4a')](_0x5e5ab3[_0x2c74('0x12')][_0x3074b2][_0x2c74('0xba')]);_0x191192['forEach'](_0x5ad1de=>{_0x5ad1de['isRemoved']?_0x5ad1de['id']=_0x51ac71++:_0x5ad1de['id']=_0x5aad42[_0xdd915++];}),this[_0x2c74('0x29')](_0x191192),this[_0x2c74('0x52')](_0x1250ce,_0x2c74('0xd1')),this['_setDistance'](_0x191192,_0x2c74('0x8c')),_0x5e5ab3==_0x472e2f&&this[_0x2c74('0xe5')](_0x1250ce,_0x40564a),_0x1250ce=this['_joinTapes'](_0x1250ce,_0x191192),this[_0x2c74('0x4b')](_0x1250ce),this[_0x2c74('0x52')](_0x1250ce,_0x2c74('0x8c'));}_0x1250ce=_0x1250ce[_0x2c74('0x56')](_0x1d245d=>!(_0x1d245d[_0x2c74('0xd1')]&&_0x1d245d[_0x2c74('0x8c')]));const _0x16ca73=new Map(_0x1327b3['model'][_0x3074b2][_0x2c74('0xba')][_0x2c74('0x58')]),_0x4b7647=new Set(_0x40564a[_0x2c74('0x69')]());for(const _0xe7251b of _0x16ca73[_0x2c74('0x69')]())_0x4b7647[_0x2c74('0xb')](_0xe7251b);this['_markSuggestions'](_0x1250ce,_0x4b7647),this['_fixObsoleteTags'](_0x1250ce),_0x1250ce=this[_0x2c74('0x4')](_0x1250ce),_0x1250ce=this[_0x2c74('0x31')](_0x1250ce),_0x1250ce=this[_0x2c74('0xcc')](_0x1250ce);const {root:_0x1a283f,changes:_0x3bb24b}=this['_makeModelFromTape'](_0x1250ce,_0x4f8bd4,_0x3074b2);_0x2ddc5e['model'][_0x3074b2]=_0x1a283f;const _0x1dcde6=_0x3d1d84['get'](_0x3074b2);if(_0x1dcde6){const _0x4ab58d=_0x4f8bd4[_0x2c74('0x10c')](_0x1dcde6['userId']),_0x42067a=new _0x2da2d8({'author':_0x4ab58d,'type':_0x1dcde6[_0x2c74('0x117')]?_0x2c74('0xa9'):_0x2c74('0x3'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3074b2});_0x3bb24b[_0x2c74('0x86')](_0x42067a),_0x2ddc5e['attributes'][_0x3074b2][_0x2c74('0x4c')]=_0x42067a['id'];}_0x2ddc5e[_0x2c74('0xa5')]=_0x2ddc5e[_0x2c74('0xa5')][_0x2c74('0xda')](_0x3bb24b);}return _0x2ddc5e;}[_0x2c74('0xe5')](_0x263c15,_0x19130c){for(let _0x28c45f=0x0;_0x28c45f<_0x263c15[_0x2c74('0x10f')];_0x28c45f++)for(const [_0x513a24,_0x5c09b2]of _0x19130c)_0x5c09b2[_0x2c74('0xaa')][_0x2c74('0xed')](_0x263c15[_0x28c45f][_0x2c74('0x17')])&&_0x263c15[_0x28c45f][_0x2c74('0xeb')][_0x2c74('0xfd')](_0x513a24),_0x5c09b2[_0x2c74('0x105')]['isEqual'](_0x263c15[_0x28c45f][_0x2c74('0x51')])&&_0x263c15[_0x28c45f][_0x2c74('0x6b')][_0x2c74('0xfd')](_0x513a24);}['_joinTapes'](_0x407a97,_0x18f4b7){let _0x59c38a=[],_0x57219a=0x0,_0x6f8b5=0x0;for(;_0x57219a<_0x407a97[_0x2c74('0x10f')]||_0x6f8b5<_0x18f4b7['length'];){const _0x21fd26=_0x407a97[_0x57219a]||{},_0xe67c3f=_0x18f4b7[_0x6f8b5]||{};if(_0x21fd26['id']==_0xe67c3f['id'])_0x57219a++,_0x6f8b5++,_0x59c38a[_0x2c74('0xfd')](_0x21fd26);else{if(_0xe67c3f[_0x2c74('0x8c')]&&_0x21fd26[_0x2c74('0xd1')]){const {commonTape:_0x208e94,iEnd:_0x4a2f60,jEnd:_0x13bbf8}=this['_threeWayMerge'](_0x407a97,_0x57219a,_0x18f4b7,_0x6f8b5);_0x59c38a=_0x59c38a[_0x2c74('0xda')](_0x208e94),_0x57219a=_0x4a2f60,_0x6f8b5=_0x13bbf8;}else _0xe67c3f[_0x2c74('0x8c')]?(_0x6f8b5++,_0x59c38a[_0x2c74('0xfd')](_0xe67c3f)):(_0x57219a++,_0x59c38a[_0x2c74('0xfd')](_0x21fd26));}}return _0x59c38a;}['_markSuggestions'](_0x4eff7e,_0x32a6f7){const _0x33c980=[];for(let _0x314e11=0x0;_0x314e11<_0x4eff7e[_0x2c74('0x10f')];_0x314e11++){for(let _0x587e71=0x0;_0x587e71<_0x4eff7e[_0x314e11][_0x2c74('0xeb')]['length'];_0x587e71++){const _0x1d3871=_0x4eff7e[_0x314e11][_0x2c74('0xeb')][_0x587e71];if(!_0x32a6f7[_0x2c74('0x92')](_0x1d3871))continue;const {group:_0x161971,type:_0x4164a0,authorId:_0x9293b}=_0x18042e(_0x1d3871);_0x2c74('0x65')!=_0x161971||_0x2c74('0xbb')!=_0x4164a0&&'deletion'!=_0x4164a0||(_0x33c980['unshift']({'type':_0x4164a0,'name':_0x1d3871,'userId':_0x9293b}),_0x4eff7e[_0x314e11][_0x2c74('0xeb')][_0x2c74('0xc1')](_0x587e71,0x1),_0x587e71--);}_0x33ff29(_0x4eff7e[_0x314e11]);for(let _0x30f77b=0x0;_0x30f77b<_0x4eff7e[_0x314e11][_0x2c74('0x6b')][_0x2c74('0x10f')];_0x30f77b++){const _0x3294ac=_0x4eff7e[_0x314e11][_0x2c74('0x6b')][_0x30f77b];if(!_0x32a6f7[_0x2c74('0x92')](_0x3294ac))continue;const {group:_0x308a5f,type:_0x28555f}=_0x18042e(_0x3294ac);if(_0x2c74('0x65')!=_0x308a5f||_0x2c74('0xbb')!=_0x28555f&&_0x2c74('0xce')!=_0x28555f)continue;_0x4eff7e[_0x314e11][_0x2c74('0x6b')][_0x2c74('0xc1')](_0x30f77b,0x1),_0x30f77b--;const _0x1b037f=_0x33c980[_0x2c74('0x3f')](_0x578deb=>_0x578deb[_0x2c74('0xc3')]==_0x3294ac);_0x1b037f>-0x1&&_0x33c980[_0x2c74('0xc1')](_0x1b037f,0x1);}}function _0x18042e(_0x555aaf){const _0x4f0acd=_0x555aaf[_0x2c74('0xc2')](':');return{'group':_0x4f0acd[0x0],'type':_0x4f0acd[0x1],'subType':_0x4f0acd[_0x2c74('0x10f')]>=0x5?_0x4f0acd[0x2]:null,'id':_0x4f0acd[_0x2c74('0x10f')]<0x5?_0x4f0acd[0x2]:_0x4f0acd[0x3],'authorId':_0x4f0acd['length']<0x5?_0x4f0acd[0x3]:_0x4f0acd[0x4],'markerCount':0x6==_0x4f0acd[_0x2c74('0x10f')]?_0x4f0acd[0x5]:null};}function _0x33ff29(_0x47eec5){for(let _0x1f24a3=0x0;_0x1f24a3<_0x33c980[_0x2c74('0x10f')];_0x1f24a3++){if(_0x47eec5['isAdded']&&_0x2c74('0xbb')==_0x33c980[_0x1f24a3][_0x2c74('0xa0')])return _0x47eec5['isAddSuggestion']=_0x33c980[_0x1f24a3],void delete _0x47eec5[_0x2c74('0xd1')];if(!_0x47eec5['isAdded']&&!_0x47eec5[_0x2c74('0x8c')]&&_0x2c74('0xce')==_0x33c980[_0x1f24a3]['type'])return void(_0x47eec5['isRemoveSuggestion']=_0x33c980[_0x1f24a3]);}}}[_0x2c74('0x52')](_0x6d4c67,_0xdfe265){let _0x2e8421=0x0,_0x3b6bee=!0x1;const _0x5708d7=new Map();for(const _0x51d135 of _0x6d4c67)_0x51d135[_0xdfe265]?_0x3b6bee&&(_0x2e8421++,_0x3b6bee=!0x1):(_0x2e8421++,_0x3b6bee=!0x0),_0x5708d7['set'](_0x51d135['id'],_0x2e8421);for(let _0x2742db=0x0;_0x2742db<_0x6d4c67['length'];_0x2742db++){if('isRemoved'==_0xdfe265&&_0x6d4c67[_0x2742db][_0x2c74('0xd1')]||_0x2c74('0xd1')==_0xdfe265&&_0x6d4c67[_0x2742db][_0x2c74('0x8c')])continue;if(_0x2c74('0x3e')==_0x6d4c67[_0x2742db][_0x2c74('0xa0')]){_0x6d4c67[_0x2742db][_0x2c74('0x107')]=0x0;continue;}const _0x4334dc=_0x5708d7[_0x2c74('0x10c')](_0x6d4c67[_0x2742db][_0x2c74('0xa7')]),_0x592a6b=_0x5708d7[_0x2c74('0x10c')](_0x6d4c67[_0x2742db]['id']);_0x6d4c67[_0x2742db][_0x2c74('0x107')]=_0x4334dc-_0x592a6b;}}[_0x2c74('0xb0')](_0x1ae1fd,_0x368253,_0x3b9360=!0x1){const _0x31c0fa=[];let _0x4ab3a1=this[_0x2c74('0x113')]['getIndex'](_0x1ae1fd),_0x20670a=this[_0x2c74('0x113')][_0x2c74('0x102')](_0x368253);for(-0x1==_0x20670a&&(_0x20670a=this['repository'][_0x2c74('0x71')][_0x2c74('0x10f')],_0x3b9360=!0x1);_0x4ab3a1<_0x20670a;)_0x31c0fa[_0x2c74('0xfd')](this[_0x2c74('0x113')][_0x2c74('0x7a')](_0x4ab3a1)),_0x4ab3a1++;return _0x3b9360&&_0x31c0fa[_0x2c74('0xfd')](this[_0x2c74('0x113')][_0x2c74('0x7a')](_0x4ab3a1)),_0x31c0fa;}['_threeWayMerge'](_0x2be537,_0x4744fb,_0x4fc794,_0x33054f){const _0x5a9d87=this[_0x2c74('0x89')][_0x2c74('0x12')][_0x2c74('0x60')];let _0x461e49=_0x4744fb;for(;_0x2be537[_0x461e49]&&_0x2be537[_0x461e49][_0x2c74('0xd1')];)_0x461e49++;let _0xa20d1a=_0x33054f;for(;_0x4fc794[_0xa20d1a]&&_0x4fc794[_0xa20d1a][_0x2c74('0x8c')];)_0xa20d1a++;_0x28994b(_0x2be537,_0x4744fb,_0x461e49),_0x28994b(_0x4fc794,_0x33054f,_0xa20d1a);const _0x3f33fe=_0x4fc794['slice'](_0x33054f,_0xa20d1a)[_0x2c74('0xda')](_0x2be537['slice'](_0x4744fb,_0x461e49));return _0x3f33fe['sort']((_0x2cbc68,_0x375079)=>_0x2cbc68[_0x2c74('0x4e')]!=_0x375079[_0x2c74('0x4e')]?_0x2cbc68[_0x2c74('0x4e')]-_0x375079[_0x2c74('0x4e')]:_0x2cbc68[_0x2c74('0x70')]!=_0x375079[_0x2c74('0x70')]?_0x2cbc68[_0x2c74('0x70')]-_0x375079[_0x2c74('0x70')]:_0x2cbc68['distance']!=_0x375079[_0x2c74('0x107')]?_0x375079[_0x2c74('0x107')]-_0x2cbc68[_0x2c74('0x107')]:!!_0x2cbc68[_0x2c74('0xd1')]!=!!_0x375079[_0x2c74('0xd1')]?-0x1==_0x2cbc68[_0x2c74('0x4e')]||0x0==_0x2cbc68[_0x2c74('0x4e')]?_0x2cbc68[_0x2c74('0xd1')]?-0x1:0x1:_0x2cbc68['isAdded']?0x1:-0x1:_0x2cbc68[_0x2c74('0x7b')]-_0x375079[_0x2c74('0x7b')]),{'commonTape':_0x3f33fe,'iEnd':_0x461e49,'jEnd':_0xa20d1a};function _0x28994b(_0x697a51,_0x146211,_0x1165bb){let _0x19f4b4=-0x1,_0x241906=Number['POSITIVE_INFINITY'],_0x3055d1=!0x0;for(let _0x4b963b=_0x146211;_0x4b963b<_0x1165bb;_0x4b963b++)if(_0x5a9d87[_0x2c74('0x91')](_0x697a51[_0x4b963b]['item'])||(_0x3055d1=!0x1),_0x697a51[_0x4b963b][_0x2c74('0xf7')]['startIndex']<_0x146211&&(_0x19f4b4=_0x4b963b),_0x697a51[_0x4b963b][_0x2c74('0xf7')][_0x2c74('0x108')]>=_0x1165bb){_0x241906=_0x4b963b;break;}_0x3055d1&&(_0x19f4b4=_0x1165bb-0x1);for(let _0x24bd7b=_0x146211;_0x24bd7b<_0x1165bb;_0x24bd7b++)_0x697a51[_0x24bd7b][_0x2c74('0x4e')]=_0x24bd7b<=_0x19f4b4?-0x1:_0x24bd7b<_0x241906?0x0:0x1,_0x697a51[_0x24bd7b]['index']=_0x24bd7b;let _0x5c1b25=0x0;for(let _0x5d297a=_0x146211;_0x5d297a<=_0x19f4b4;_0x5d297a++)0x0==_0x697a51[_0x5d297a]['distance']?_0x697a51[_0x5d297a][_0x2c74('0x70')]=_0x5c1b25:(_0x5c1b25++,_0x697a51[_0x5d297a][_0x2c74('0x70')]=_0x5c1b25,_0x5c1b25++);for(let _0x5db308=_0x146211;_0x5db308<_0x1165bb;_0x5db308++)0x0==_0x697a51[_0x5db308]['side']&&(_0x697a51[_0x5db308][_0x2c74('0x70')]=_0x5c1b25);_0x5c1b25=0x0;for(let _0x27b3a1=_0x1165bb-0x1;_0x27b3a1>=_0x241906;_0x27b3a1--)0x0==_0x697a51[_0x27b3a1][_0x2c74('0x107')]?_0x697a51[_0x27b3a1][_0x2c74('0x70')]=_0x5c1b25:(_0x5c1b25--,_0x697a51[_0x27b3a1][_0x2c74('0x70')]=_0x5c1b25,_0x5c1b25--);}}['_fixObsoleteTags'](_0x24e8be){const _0x39b538=new Map(),_0x55fa9a=this[_0x2c74('0x89')]['model']['schema'];for(let _0x3911ab=0x1;_0x3911ab<_0x24e8be[_0x2c74('0x10f')];_0x3911ab++){let _0x1d4a84,_0x29f5c9,_0x3c524e;const _0x14fad5=_0x24e8be[_0x3911ab],_0x3627fc=_0x24e8be[_0x3911ab-0x1];if(_0x2c74('0x3e')==_0x14fad5[_0x2c74('0xa0')])continue;if(_0x14fad5['type']!=_0x3627fc[_0x2c74('0xa0')])continue;if(!_0x55fa9a['isBlock'](_0x3627fc[_0x2c74('0xf7')])||_0x55fa9a[_0x2c74('0x2f')](_0x3627fc[_0x2c74('0xf7')]))continue;if(!_0x55fa9a[_0x2c74('0xdf')](_0x14fad5[_0x2c74('0xf7')])||_0x55fa9a[_0x2c74('0x2f')](_0x14fad5[_0x2c74('0xf7')]))continue;if((_0x24e8be[_0x3911ab][_0x2c74('0xd1')]||_0x24e8be[_0x3911ab][_0x2c74('0x119')])&&_0x24e8be[_0x3911ab-0x1][_0x2c74('0x8c')])_0x1d4a84=_0x24e8be[_0x3911ab],_0x29f5c9=_0x24e8be[_0x3911ab-0x1],_0x3c524e=_0x3911ab-0x1;else{if(!_0x24e8be[_0x3911ab][_0x2c74('0x8c')]||!_0x24e8be[_0x3911ab-0x1][_0x2c74('0xd1')]&&!_0x24e8be[_0x3911ab-0x1]['isAddSuggestion'])continue;_0x1d4a84=_0x24e8be[_0x3911ab-0x1],_0x29f5c9=_0x24e8be[_0x3911ab],_0x3c524e=_0x3911ab;}const _0x356ebd=_0x1d4a84[_0x2c74('0x70')]==_0x29f5c9[_0x2c74('0x70')],_0x76729=Math[_0x2c74('0x53')](_0x1d4a84[_0x2c74('0x70')])<Math[_0x2c74('0x53')](_0x29f5c9['level'])&&0x0==_0x29f5c9[_0x2c74('0x107')];(_0x356ebd||_0x76729)&&(_0x39b538[_0x2c74('0x28')](_0x29f5c9['id'],_0x1d4a84['id']),_0x24e8be['splice'](_0x3c524e,0x1),_0x3911ab--,_0x1d4a84[_0x2c74('0xd1')]=!0x1);}for(let _0x182bb2=0x0;_0x182bb2<_0x24e8be[_0x2c74('0x10f')];_0x182bb2++)_0x39b538[_0x2c74('0x92')](_0x24e8be[_0x182bb2][_0x2c74('0xa7')])&&(_0x24e8be[_0x182bb2][_0x2c74('0xa7')]=_0x39b538[_0x2c74('0x10c')](_0x24e8be[_0x182bb2][_0x2c74('0xa7')]));}['_removeMissingPairs'](_0xa2d667){const _0x353da2=new Set(_0xa2d667[_0x2c74('0xe9')](_0x584505=>_0x584505['id']));for(let _0x6ed703=0x0;_0x6ed703<_0xa2d667[_0x2c74('0x10f')];_0x6ed703++)_0x353da2[_0x2c74('0x92')](_0xa2d667[_0x6ed703][_0x2c74('0xa7')])||0x0==_0xa2d667[_0x6ed703][_0x2c74('0x107')]||(_0xa2d667[_0x6ed703][_0x2c74('0xd4')]=!0x0);return _0xa2d667[_0x2c74('0x56')](_0x420a9c=>!_0x420a9c[_0x2c74('0xd4')]);}[_0x2c74('0x31')](_0x257277){const _0x3b8a99=new Set();for(let _0x307beb=0x0;_0x307beb<_0x257277['length'];_0x307beb++){if(_0x3b8a99[_0x2c74('0x92')](_0x257277[_0x307beb]['id'])&&_0x257277[_0x307beb][_0x2c74('0x8c')]&&(_0x257277[_0x307beb][_0x2c74('0xd4')]=!0x0),_0x257277[_0x307beb][_0x2c74('0xd4')])continue;if(0x0==_0x257277[_0x307beb]['distance'])continue;if(_0x2c74('0x87')!=_0x257277[_0x307beb]['type'])continue;if(null==_0x257277[_0x307beb][_0x2c74('0xa7')])continue;let _0x407c23=_0x307beb+0x1,_0x2dc8bb=0x0;for(;_0x257277[_0x407c23]['id']!=_0x257277[_0x307beb][_0x2c74('0xa7')];)_0x2c74('0x87')==_0x257277[_0x407c23][_0x2c74('0xa0')]?_0x2dc8bb++:_0x2c74('0x5e')==_0x257277[_0x407c23][_0x2c74('0xa0')]&&_0x2dc8bb--,_0x407c23++;if(0x0!=_0x2dc8bb){if(_0x257277[_0x307beb][_0x2c74('0x8c')])_0x257277[_0x307beb][_0x2c74('0xd4')]=!0x0;else for(;_0x407c23!=_0x307beb;)_0x257277[_0x407c23][_0x2c74('0x8c')]&&0x0!=_0x257277[_0x407c23][_0x2c74('0x107')]&&(_0x257277[_0x407c23][_0x2c74('0xd4')]=!0x0,_0x3b8a99[_0x2c74('0xa9')](_0x257277[_0x407c23]['pairId'])),_0x407c23--;}}return _0x257277[_0x2c74('0x56')](_0x367fea=>!_0x367fea[_0x2c74('0xd4')]);}[_0x2c74('0xcc')](_0x3cba7d){const _0x30b554=this[_0x2c74('0x89')][_0x2c74('0x12')][_0x2c74('0x60')];for(let _0x33c5de=0x0;_0x33c5de<_0x3cba7d[_0x2c74('0x10f')];_0x33c5de++){if(!(_0x3cba7d[_0x33c5de]['isAdded']||_0x3cba7d[_0x33c5de][_0x2c74('0x119')]||_0x3cba7d[_0x33c5de][_0x2c74('0x8c')]||_0x3cba7d[_0x33c5de][_0x2c74('0xca')]))continue;if(0x0==_0x3cba7d[_0x33c5de][_0x2c74('0x107')])continue;const _0x438ebd=_0x3cba7d[_0x33c5de]['item'];_0x30b554['isBlock'](_0x438ebd)||_0x30b554[_0x2c74('0x2f')](_0x438ebd)||(_0x3cba7d[_0x33c5de][_0x2c74('0xd1')]&&delete _0x3cba7d[_0x33c5de][_0x2c74('0xd1')],_0x3cba7d[_0x33c5de]['isAddSuggestion']&&delete _0x3cba7d[_0x33c5de][_0x2c74('0x119')],_0x3cba7d[_0x33c5de][_0x2c74('0xca')]&&delete _0x3cba7d[_0x33c5de][_0x2c74('0xca')],_0x3cba7d[_0x33c5de][_0x2c74('0x8c')]&&(_0x3cba7d[_0x33c5de][_0x2c74('0xd4')]=!0x0));}return _0x3cba7d[_0x2c74('0x56')](_0x41ff1f=>!_0x41ff1f[_0x2c74('0xd4')]);}['_makeModelFromTape'](_0x2bae49,_0x2f2c8c,_0x353eef){const _0x180102=new _0x3d9a35(),_0x46ca9e=[],_0x4a5f09=new Map(),_0x4493ee=this[_0x2c74('0x89')][_0x2c74('0x12')],_0x164f9c=_0x4493ee[_0x2c74('0x60')],_0x558db7=[_0x180102],_0x3134d8={},_0x948975={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x13c943=null;const _0x559e51=[0x0];for(let _0x2a5525=0x0;_0x2a5525<_0x2bae49[_0x2c74('0x10f')];_0x2a5525++){let _0xe34b5e,_0x2f5865;if(_0x2c74('0x87')===_0x2bae49[_0x2a5525][_0x2c74('0xa0')]){_0xe34b5e=_0x4493ee[_0x2c74('0xc9')](_0x180102,_0x559e51);const _0x21bb55=new _0x54db79(_0x2bae49[_0x2a5525][_0x2c74('0xf7')][_0x2c74('0xc3')],_0x2bae49[_0x2a5525][_0x2c74('0xf7')]['getAttributes']());_0x558db7[0x0]['_appendChild'](_0x21bb55),_0x559e51[_0x2c74('0xfd')](0x0),_0x558db7[_0x2c74('0x86')](_0x21bb55),_0x2f5865=_0x4493ee['createPositionFromPath'](_0x180102,_0x559e51),_0x13c943=null;}else{if('elementEnd'===_0x2bae49[_0x2a5525][_0x2c74('0xa0')])_0x558db7[_0x2c74('0x93')](),_0xe34b5e=_0x4493ee['createPositionFromPath'](_0x180102,_0x559e51),_0x559e51[_0x2c74('0xd7')](),_0x559e51[_0x559e51[_0x2c74('0x10f')]-0x1]++,_0x2f5865=_0x4493ee[_0x2c74('0xc9')](_0x180102,_0x559e51),_0x13c943=null;else{if(_0xe34b5e=_0x4493ee[_0x2c74('0xc9')](_0x180102,_0x559e51),_0x13c943&&_0x44530c(_0x13c943,_0x2bae49[_0x2a5525][_0x2c74('0xf7')]))_0x13c943[_0x2c74('0x68')]+=_0x2bae49[_0x2a5525]['item'][_0x2c74('0xae')];else{const _0xad5f35=new _0x4b0ca6(_0x2bae49[_0x2a5525]['item'][_0x2c74('0xae')],_0x2bae49[_0x2a5525][_0x2c74('0xf7')][_0x2c74('0x11')]());_0x558db7[0x0]['_appendChild'](_0xad5f35),_0x13c943=_0xad5f35;}_0x559e51[_0x559e51[_0x2c74('0x10f')]-0x1]+=_0x2bae49[_0x2a5525][_0x2c74('0xf7')][_0x2c74('0x9')],_0x2f5865=_0x4493ee[_0x2c74('0xc9')](_0x180102,_0x559e51);}}for(const _0x4d9641 of _0x2bae49[_0x2a5525][_0x2c74('0xeb')])_0x4a5f09[_0x2c74('0x28')](_0x4d9641,{'start':_0xe34b5e,'end':null});_0x1c4014(_0x2c74('0xca'),_0x2a5525,_0xe34b5e,_0x2f5865),_0x1c4014(_0x2c74('0x119'),_0x2a5525,_0xe34b5e,_0x2f5865),_0x1c4014(_0x2c74('0x8c'),_0x2a5525,_0xe34b5e,_0x2f5865),_0x1c4014(_0x2c74('0xd1'),_0x2a5525,_0xe34b5e,_0x2f5865);for(const _0xcc6f0f of _0x2bae49[_0x2a5525][_0x2c74('0x6b')]){_0x4a5f09['get'](_0xcc6f0f)[_0x2c74('0x105')]=_0x2f5865;}}for(const [_0x121842,_0xbf5189]of _0x4a5f09){const _0x4fc741=this['editor'][_0x2c74('0x12')][_0x2c74('0x84')](_0xbf5189[_0x2c74('0xaa')],_0xbf5189[_0x2c74('0x105')]);_0x180102['markers']['set'](_0x121842,_0x4fc741);}return _0x46ca9e[_0x2c74('0x11b')]((_0x1061c1,_0x799abc)=>{const _0x368099=_0x180102[_0x2c74('0x58')][_0x2c74('0x10c')](_0x2c74('0x21')+_0x1061c1['id']),_0x4ef240=_0x180102['markers'][_0x2c74('0x10c')](_0x2c74('0x21')+_0x799abc['id']);return _0x368099[_0x2c74('0xaa')][_0x2c74('0x3b')](_0x4ef240['start'])?-0x1:_0x368099[_0x2c74('0xaa')][_0x2c74('0xb7')](_0x4ef240[_0x2c74('0xaa')])?0x1:_0x368099['end'][_0x2c74('0x3b')](_0x4ef240[_0x2c74('0x105')])?-0x1:_0x368099[_0x2c74('0x105')]['isAfter'](_0x4ef240[_0x2c74('0x105')])?0x1:_0x2c74('0xa9')===_0x1061c1['type']?-0x1:0x1;}),{'root':_0x180102,'changes':_0x46ca9e};function _0x1c4014(_0x4ec43e,_0x3865cf,_0x5f5c72,_0x53d8fd){const _0x548c6d=!!_0x2bae49[_0x3865cf][_0x4ec43e],_0x448f94=_0x548c6d?_0x2bae49[_0x3865cf][_0x4ec43e]['userId']:null,_0x24557a=_0x3865cf===_0x2bae49[_0x2c74('0x10f')]-0x1,_0xfc211=_0x948975[_0x4ec43e][0x0],_0x38c47c=_0x164f9c['isObject'](_0x2bae49[_0x3865cf][_0x2c74('0xf7')]);!_0x3134d8[_0x4ec43e]&&_0x548c6d?_0x3134d8[_0x4ec43e]={'start':_0x5f5c72,'tapeItem':_0x2bae49[_0x3865cf],'userId':_0x448f94,'type':_0x4ec43e}:_0x3134d8[_0x4ec43e]&&!_0x548c6d?(_0x3134d8[_0x4ec43e][_0x2c74('0x105')]=_0x5f5c72,_0x5907d1(_0x3134d8[_0x4ec43e]),_0x3134d8[_0x4ec43e]=null):_0x3134d8[_0x4ec43e]&&_0x548c6d&&_0x3134d8[_0x4ec43e]['userId']!==_0x448f94&&(_0x3134d8[_0x4ec43e][_0x2c74('0x105')]=_0x5f5c72,_0xfc211&&_0xfc211[_0x2c74('0x61')]===_0x3134d8[_0x4ec43e]['userId']||_0x5907d1(_0x3134d8[_0x4ec43e]),_0x3134d8[_0x4ec43e]={'start':_0x5f5c72,'tapeItem':_0x2bae49[_0x3865cf],'userId':_0x448f94,'type':_0x4ec43e}),_0x3134d8[_0x4ec43e]&&_0x38c47c&&(_0x2c74('0x87')!==_0x2bae49[_0x3865cf][_0x2c74('0xa0')]||_0xfc211&&_0xfc211[_0x2c74('0x61')]===_0x448f94||_0x948975[_0x4ec43e]['unshift']({'userId':_0x448f94,'object':_0x2bae49[_0x3865cf]['item'],'change':_0x3134d8[_0x4ec43e]}),_0x2c74('0x5e')===_0x2bae49[_0x3865cf]['type']&&_0xfc211&&_0xfc211[_0x2c74('0x73')]===_0x2bae49[_0x3865cf]['item']&&(_0x948975[_0x4ec43e][_0x2c74('0x93')](),_0x3134d8[_0x4ec43e]=_0xfc211[_0x2c74('0xf4')])),_0x3134d8[_0x4ec43e]&&_0x24557a&&(_0x3134d8[_0x4ec43e]['end']=_0x53d8fd,_0x5907d1(_0x3134d8[_0x4ec43e]),_0x3134d8[_0x4ec43e]=null);}function _0x5907d1({start:_0x2294a3,end:_0x8e6b31,tapeItem:_0x7a7c57,userId:_0x454308,type:_0x185fe2}){const _0xbc7d09=_0x7a7c57['item'],_0x1a46ab=_0x4493ee[_0x2c74('0x60')][_0x2c74('0xdf')](_0xbc7d09)&&!_0x4493ee[_0x2c74('0x60')][_0x2c74('0x2f')](_0xbc7d09),_0x54ea95=_0x2294a3[_0x2c74('0xf3')]==_0x8e6b31[_0x2c74('0xe0')]&&_0x8e6b31['isAtStart'];if(_0x1a46ab&&_0x54ea95)return;const _0x282646=_0x4493ee[_0x2c74('0x84')](_0x2294a3,_0x8e6b31),_0x3358b9=_0x2f2c8c[_0x2c74('0x10c')](_0x454308),_0x4ae577=new _0x2da2d8({'author':_0x3358b9,'type':'isAdded'==_0x185fe2||_0x2c74('0x119')==_0x185fe2?_0x2c74('0xa9'):_0x2c74('0x3'),'data':{'isSuggestion':'isAddSuggestion'==_0x185fe2||_0x2c74('0xca')==_0x185fe2},'createdAt':new Date(),'rootName':_0x353eef});_0x46ca9e[_0x2c74('0xfd')](_0x4ae577),_0x180102[_0x2c74('0x58')][_0x2c74('0x28')](_0x2c74('0x21')+_0x4ae577['id'],_0x282646);}function _0x44530c(_0x34e12b,_0x4f3e8a){const _0x4e7405=_0x34e12b[_0x2c74('0x11')](),_0x212cf1=_0x4f3e8a[_0x2c74('0x11')]();for(const _0x1389b7 of _0x4e7405){if(_0x1389b7[0x1]!==_0x4f3e8a[_0x2c74('0x66')](_0x1389b7[0x0]))return!0x1;_0x212cf1[_0x2c74('0xde')]();}return _0x212cf1[_0x2c74('0xde')]()[_0x2c74('0xea')];}}[_0x2c74('0x19')](){this[_0x2c74('0x89')][_0x2c74('0xd0')][_0x2c74('0x3c')]('upcast')[_0x2c74('0x8f')]({'view':_0x2c74('0x25')}),this[_0x2c74('0x89')][_0x2c74('0xd0')]['for'](_0x2c74('0x88'))[_0x2c74('0x8a')]({'model':_0x2c74('0x25'),'view':_0x218708=>{const _0x1e00f9=_0x218708['markerName'][_0x2c74('0xc2')](':')[0x1],_0x1b0d21=this[_0x2c74('0xd8')](_0x1e00f9);if(!_0x1b0d21)return null;const _0x33340f=_0x2c74('0xa9')==_0x1b0d21['type']?'insertion':_0x2c74('0xce'),_0x241b5d=[_0x2c74('0x41'),_0x2c74('0x80')+_0x33340f];return _0x1b0d21[_0x2c74('0xae')][_0x2c74('0xe4')]&&_0x241b5d[_0x2c74('0xfd')](_0x2c74('0x80')+_0x33340f+_0x2c74('0xb9')),this[_0x2c74('0x20')]==_0x1b0d21&&_0x241b5d[_0x2c74('0xfd')](_0x2c74('0xb1')),{'classes':_0x241b5d,'attributes':{'data-change-id':_0x1e00f9}};}}),this[_0x2c74('0x89')][_0x2c74('0xd0')][_0x2c74('0x3c')](_0x2c74('0xee'))[_0x2c74('0xa9')](_0x37a9ac=>{_0x37a9ac['on'](_0x2c74('0x85'),(_0x54b868,_0x4380f3,_0x160621)=>{const _0x4cc137=_0x4380f3[_0x2c74('0x5f')][_0x2c74('0xfc')](0x0);if(!_0x4cc137||!_0x4cc137['is'](_0x2c74('0x27'),_0x2c74('0xa3')))return;if(!_0x160621[_0x2c74('0x76')][_0x2c74('0x16')](_0x4cc137,{'attributes':[_0x2c74('0x11c'),'vid_end']}))return;const _0x136276=_0x4380f3[_0x2c74('0x81')]['start']['nodeAfter'];_0x160621['writer'][_0x2c74('0x6d')](_0x2c74('0x11c'),_0x4cc137['getAttribute'](_0x2c74('0x11c')),_0x136276),_0x160621['writer'][_0x2c74('0x6d')]('vid_end',_0x4cc137[_0x2c74('0x66')](_0x2c74('0xc4')),_0x136276);},{'priority':_0x2c74('0x33')});}),this[_0x2c74('0x89')][_0x2c74('0xd0')][_0x2c74('0x3c')](_0x2c74('0xee'))['add'](_0x5883c2=>{_0x5883c2['on'](_0x2c74('0x27'),(_0x463c4c,_0x4ad452,_0x36622f)=>{if(!_0x36622f['consumable'][_0x2c74('0x16')](_0x4ad452[_0x2c74('0x5f')],{'attributes':['vid_start',_0x2c74('0xc4')]}))return;if(_0x4ad452[_0x2c74('0x81')]['isCollapsed'])return;const _0x583407=_0x4ad452[_0x2c74('0x81')]['start'][_0x2c74('0xf3')];_0x583407[_0x2c74('0x110')]('vid_start')||_0x583407[_0x2c74('0x110')]('vid')||(_0x36622f[_0x2c74('0x115')][_0x2c74('0x6d')](_0x2c74('0x11c'),_0x4ad452[_0x2c74('0x5f')][_0x2c74('0x66')](_0x2c74('0x11c')),_0x583407),_0x36622f[_0x2c74('0x115')][_0x2c74('0x6d')]('vid_end',_0x4ad452[_0x2c74('0x5f')][_0x2c74('0x66')](_0x2c74('0xc4')),_0x583407));},{'priority':_0x2c74('0x33')});}),this[_0x2c74('0x89')][_0x2c74('0xd0')][_0x2c74('0x3c')]('upcast')[_0x2c74('0xe7')]({'view':{'name':_0x2c74('0x2e'),'attributes':{'vid':!0x0}},'model':{'key':_0x2c74('0x106'),'value':_0x5ab692=>_0x5ab692['getAttribute']('vid')}}),this[_0x2c74('0x89')][_0x2c74('0x12')]['schema']['on']('checkAttribute',(_0x5e02f8,[,_0x47f1a3])=>{[_0x2c74('0x11c'),_0x2c74('0xc4'),_0x2c74('0x106')][_0x2c74('0x10')](_0x47f1a3)&&(_0x5e02f8[_0x2c74('0xf')]=!0x0,_0x5e02f8[_0x2c74('0x6e')]());},{'priority':'highest'}),this['editor'][_0x2c74('0xd0')][_0x2c74('0x3c')](_0x2c74('0x40'))['add'](_0x1032df=>{_0x1032df['on'](_0x2c74('0x30'),(_0x3714bd,_0x2e250c,_0x411181)=>{if('\x20'!=_0x2e250c[_0x2c74('0xf7')]['data']||_0x2e250c[_0x2c74('0xf7')][_0x2c74('0xe0')]['maxOffset']>0x1)return;if(!_0x411181[_0x2c74('0x76')][_0x2c74('0x16')](_0x2e250c[_0x2c74('0xf7')],_0x3714bd['name']))return;const _0x3171e3=_0x411181[_0x2c74('0x115')],_0x34c702=_0x411181[_0x2c74('0x57')][_0x2c74('0x74')](_0x2e250c['range']);_0x3171e3[_0x2c74('0xa1')](_0x34c702,_0x3171e3['createAttributeElement'](_0x2c74('0x2e')));});}),this[_0x2c74('0x89')]['conversion'][_0x2c74('0x3c')]('dataDowncast')[_0x2c74('0x7f')]({'model':_0x2c74('0x25')}),this[_0x2c74('0x89')][_0x2c74('0xb8')][_0x2c74('0x4f')]['on'](_0x2c74('0xff'),function(_0x4ce5f2){const _0x1164b9=_0x4ce5f2[_0x2c74('0x9d')][_0x2c74('0x10c')]('RevisionViewer');return(_0x4523cc,_0x2ac225,_0x578a87)=>{const _0x31ed3c=_0x2ac225[_0x2c74('0xa8')][_0x2c74('0xc2')](':')[0x1],_0xc621cd=_0x1164b9[_0x2c74('0xd8')](_0x31ed3c);if(!_0xc621cd)return null;const _0x1a3527=_0x2c74('0xa9')==_0xc621cd[_0x2c74('0xa0')]?_0x2c74('0xc2'):_0x2c74('0x59');if(!_0x578a87['consumable'][_0x2c74('0x5a')](_0x2ac225[_0x2c74('0x109')],_0x4523cc[_0x2c74('0xc3')]))return;const _0x5313e7=_0x2ac225['markerRange']['getWalker'](),_0x2ed70d=_0x2ac225[_0x2c74('0x109')][_0x2c74('0xaa')],_0x4df60c=_0x4ce5f2[_0x2c74('0x12')][_0x2c74('0x60')];let _0x3c8263=null,_0x51438f=null,_0x78162=!0x1,_0x51cda7=!0x1;for(const _0x2d0548 of _0x5313e7){const _0x58b4da=_0x2d0548[_0x2c74('0xf7')];_0x78162=_0x78162||_0x4df60c[_0x2c74('0xec')](_0x58b4da);const _0x4d9d9e=_0x578a87['mapper'][_0x2c74('0x11a')](_0x58b4da);if(_0x4d9d9e&&_0x4d9d9e[_0x2c74('0xa6')](_0x2c74('0xef')))return;_0x2c74('0x5e')==_0x2d0548['type']&&(_0x4df60c['isBlock'](_0x58b4da)&&!_0x4df60c[_0x2c74('0x2f')](_0x58b4da)&&(_0x58b4da[_0x2c74('0x116')]||_0x2ed70d[_0x2c74('0x5')]?_0x3c8263&&_0x3c8263[_0x2c74('0xe0')]==_0x58b4da||(_0x3c8263=_0x58b4da,_0x5c371b(_0x2d0548[_0x2c74('0x17')]),_0x51cda7=!0x0):_0x51438f=_0x51438f||_0x2d0548[_0x2c74('0x17')]));}function _0x5c371b(_0x570a6d){const _0x1e15da=_0x578a87[_0x2c74('0x115')]['createUIElement'](_0x2c74('0x2e'),{'class':_0x2c74('0x80')+_0x1a3527}),_0x5c8d5a=_0x578a87[_0x2c74('0x57')][_0x2c74('0xe3')](_0x570a6d);_0xc621cd[_0x2c74('0xae')][_0x2c74('0xe4')]&&_0x578a87['writer'][_0x2c74('0x43')](_0x2c74('0x80')+_0x1a3527+_0x2c74('0xb9'),_0x1e15da),_0x1164b9[_0x2c74('0x20')]==_0xc621cd&&_0x578a87[_0x2c74('0x115')]['addClass'](_0x2c74('0xb1'),_0x1e15da),_0x578a87[_0x2c74('0x115')][_0x2c74('0x1c')](_0x5c8d5a,_0x1e15da),_0x578a87[_0x2c74('0x57')][_0x2c74('0x44')](_0x1e15da,_0x2ac225[_0x2c74('0xa8')]);}_0x78162||_0x51cda7||!_0x51438f||_0x5c371b(_0x51438f);};}(this['editor']),{'priority':'high'}),this[_0x2c74('0x89')][_0x2c74('0xb8')][_0x2c74('0x4f')]['on'](_0x2c74('0xc7'),(_0x384472,_0x2ee258,_0x3521c3)=>{const _0x1171a0=_0x3521c3['mapper'][_0x2c74('0x8d')](_0x2ee258[_0x2c74('0xa8')]);if(_0x1171a0)for(const _0x434bd0 of _0x1171a0)(_0x434bd0[_0x2c74('0xe6')](_0x2c74('0x1d'))||_0x434bd0[_0x2c74('0xe6')](_0x2c74('0x5d')))&&(_0x3521c3[_0x2c74('0x57')][_0x2c74('0xaf')](_0x434bd0,_0x2ee258['markerName']),_0x3521c3[_0x2c74('0x115')][_0x2c74('0x3')](_0x434bd0));},{'priority':_0x2c74('0x7c')}),this[_0x2c74('0x89')][_0x2c74('0xb8')][_0x2c74('0x4f')]['on'](_0x2c74('0xff'),(_0x2645a2,_0x467ab2,_0xf7390f)=>{const _0x48d296=_0x467ab2[_0x2c74('0xa8')]['split'](':')[0x1],_0x495262=this[_0x2c74('0xd8')](_0x48d296);if(!_0x495262)return null;const _0x1fc60c=_0x2c74('0xa9')==_0x495262[_0x2c74('0xa0')]?_0x2c74('0xc2'):_0x2c74('0x59');if(_0xf7390f['consumable'][_0x2c74('0x5a')](_0x467ab2[_0x2c74('0x109')],_0x2645a2[_0x2c74('0xc3')]))for(const _0x2a7462 of _0x467ab2['markerRange'][_0x2c74('0x67')]()){if(!_0x2a7462['is'](_0x2c74('0x27'),_0x2c74('0x7')))continue;const _0x105f8b=_0xf7390f[_0x2c74('0x115')][_0x2c74('0x63')](_0x2c74('0x2e'),{'class':_0x2c74('0x80')+_0x1fc60c}),_0x58333e=_0xf7390f[_0x2c74('0x57')][_0x2c74('0xe3')](this[_0x2c74('0x89')][_0x2c74('0x12')][_0x2c74('0x36')](_0x2a7462));_0x495262[_0x2c74('0xae')][_0x2c74('0xe4')]&&_0xf7390f[_0x2c74('0x115')][_0x2c74('0x43')](_0x2c74('0x80')+_0x1fc60c+_0x2c74('0xb9'),_0x105f8b),this[_0x2c74('0x20')]==_0x495262&&_0xf7390f[_0x2c74('0x115')][_0x2c74('0x43')]('ck-suggestion-marker--active',_0x105f8b),_0xf7390f[_0x2c74('0x115')]['insert'](_0x58333e,_0x105f8b),_0xf7390f[_0x2c74('0x57')][_0x2c74('0x44')](_0x105f8b,_0x467ab2[_0x2c74('0xa8')]);}},{'priority':_0x2c74('0x7c')}),this['editor'][_0x2c74('0x12')][_0x2c74('0x94')]['on'](_0x2c74('0xf4'),()=>{this['editor'][_0x2c74('0xb8')]['view']['change'](_0x36a76b=>{for(const _0x310b08 of this['editor'][_0x2c74('0x12')][_0x2c74('0x94')]['getRootNames']()){const _0x3d26cc=this[_0x2c74('0x89')][_0x2c74('0x12')]['document'][_0x2c74('0xc')](_0x310b08),_0x3df0c7=this[_0x2c74('0x89')][_0x2c74('0xb8')][_0x2c74('0x49')][_0x2c74('0x94')][_0x2c74('0xc')](_0x310b08);if(_0x3df0c7){const _0x1aedf3=_0x3d26cc[_0x2c74('0x66')](_0x2c74('0x4c'));if(_0x36a76b[_0x2c74('0x2b')](_0x2c74('0x10a'),_0x3df0c7),_0x36a76b[_0x2c74('0x9f')](_0x2c74('0x112'),_0x3df0c7),_0x36a76b['removeClass'](_0x2c74('0xe1'),_0x3df0c7),_0x36a76b[_0x2c74('0x9f')](_0x2c74('0x75'),_0x3df0c7),_0x1aedf3){const _0x17e839=this[_0x2c74('0xd8')](_0x1aedf3);if(!_0x17e839)return null;_0x36a76b[_0x2c74('0x6d')](_0x2c74('0x10a'),_0x1aedf3,_0x3df0c7),_0x36a76b[_0x2c74('0x43')](_0x2c74('0xdb')+_0x17e839[_0x2c74('0xa0')],_0x3df0c7),this[_0x2c74('0x20')]==_0x17e839&&_0x36a76b[_0x2c74('0x43')](_0x2c74('0x75'),_0x3df0c7);}}}});}),this[_0x2c74('0x89')]['conversion'][_0x2c74('0x3c')]('upcast')[_0x2c74('0x8f')]({'view':_0x2c74('0xd6'),'model':_0x306a68=>_0x2c74('0xb5')+_0x306a68,'converterPriority':'highest'}),this[_0x2c74('0x89')]['conversion']['for'](_0x2c74('0xee'))[_0x2c74('0x8f')]({'view':_0x2c74('0xc0'),'model':_0xfdbcfd=>_0x2c74('0x77')+_0xfdbcfd,'converterPriority':_0x2c74('0x5b')}),this[_0x2c74('0x89')][_0x2c74('0xd0')][_0x2c74('0x3c')](_0x2c74('0x40'))[_0x2c74('0x7f')]({'model':'revision-suggestion','view':_0x127844=>({'name':_0x2c74('0xb2')+_0x127844,'group':_0x2c74('0x65')}),'converterPriority':_0x2c74('0x5b')}),this['editor']['conversion']['for'](_0x2c74('0x88'))[_0x2c74('0x8a')]({'model':_0x2c74('0x65'),'view':_0x5a6ace=>{const _0xe00ea5=_0x5a6ace[_0x2c74('0xa8')][_0x2c74('0xc2')](':')[0x1];return'insertion'!=_0xe00ea5&&_0x2c74('0xce')!=_0xe00ea5?null:{'classes':[_0x2c74('0x8'),_0x2c74('0x64')+_0xe00ea5]};}}),this[_0x2c74('0x89')][_0x2c74('0xb8')][_0x2c74('0x4f')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x2c74('0x89')],_0x2c74('0x59')),{'priority':_0x2c74('0x7c')}),this['editor'][_0x2c74('0xb8')][_0x2c74('0x4f')]['on'](_0x2c74('0xa2'),et(this[_0x2c74('0x89')],'split'),{'priority':'high'}),this[_0x2c74('0x89')][_0x2c74('0xb8')]['downcastDispatcher']['on'](_0x2c74('0x99'),(_0x2d776b,_0x58b06c,_0x427dd6)=>{const _0x509a29=_0x427dd6[_0x2c74('0x57')]['markerNameToElements'](_0x58b06c[_0x2c74('0xa8')]);if(_0x509a29)for(const _0x4179a1 of _0x509a29)_0x4179a1['is'](_0x2c74('0xf2'))&&(_0x427dd6[_0x2c74('0x57')][_0x2c74('0xaf')](_0x4179a1,_0x58b06c[_0x2c74('0xa8')]),_0x427dd6[_0x2c74('0x115')]['remove'](_0x4179a1));},{'priority':_0x2c74('0x7c')});}[_0x2c74('0xd8')](_0x236dbc){return this[_0x2c74('0x9e')][_0x2c74('0x10c')](_0x236dbc);}[_0x2c74('0x9b')](_0x130267){return this[_0x2c74('0xf5')]&&this[_0x2c74('0xf5')]['destroy'](),this['_changeView']=new _0x213ff7(this[_0x2c74('0x89')]['locale'],_0x130267),this['_changeView'];}[_0x2c74('0x97')](){this['editor']['model']['document'][_0x2c74('0x7d')][_0x2c74('0x3d')](_0x2c74('0x25')),this['on']('change:activeView',(_0x50d9af,_0x1ca447,_0x120df3,_0x474c5b)=>{_0x474c5b&&this[_0x2c74('0x9c')][_0x2c74('0x3')](_0x474c5b),_0x120df3&&(this[_0x2c74('0x9c')][_0x2c74('0xa9')]({'view':_0x120df3,'stackId':_0x2c74('0x82'),'position':{'target':()=>{const _0x1fe354=this[_0x2c74('0x89')][_0x2c74('0xb8')],_0x2918ce=this[_0x2c74('0xd8')](_0x120df3[_0x2c74('0xfb')]);let _0x1da52e;if(_0x2918ce['data'][_0x2c74('0xf0')]){const _0x16d650=_0x1fe354[_0x2c74('0x49')][_0x2c74('0x1e')](_0x2918ce['rootName']);_0x1da52e=Array[_0x2c74('0xfa')](_0x16d650[_0x2c74('0xd5')]());}else{const _0x3fc0a5=this['editor'][_0x2c74('0x12')][_0x2c74('0x58')][_0x2c74('0x10c')]('revision:'+_0x120df3[_0x2c74('0xfb')]);_0x1da52e=Array[_0x2c74('0xfa')](_0x1fe354[_0x2c74('0x57')][_0x2c74('0x8d')](_0x3fc0a5[_0x2c74('0xc3')]))[_0x2c74('0xe9')](_0xfcd14=>_0x1fe354[_0x2c74('0x49')][_0x2c74('0x83')][_0x2c74('0x98')](_0xfcd14))['map'](_0x92242d=>Array[_0x2c74('0xfa')](_0x92242d[_0x2c74('0xd5')]()))[_0x2c74('0xc5')]();}if(!this[_0x2c74('0x118')])return _0x1da52e[0x0];return _0x1da52e[_0x2c74('0x10e')](_0x5d92d2=>_0x5d92d2[_0x2c74('0xb6')]-0x3<=this['_activeViewTarget']['y']&&_0x5d92d2[_0x2c74('0x100')]+0x3>=this['_activeViewTarget']['y']&&_0x5d92d2[_0x2c74('0x96')]-0x3<=this[_0x2c74('0x118')]['x']&&_0x5d92d2['right']+0x3>=this[_0x2c74('0x118')]['x'])||_0x1da52e[0x0];}}}),this[_0x2c74('0x9c')][_0x2c74('0xa4')](_0x2c74('0x82')));}),this['on'](_0x2c74('0x47'),(_0x3c9c0c,_0x5a2f30,_0x17f9bb,_0x5828ab)=>{this[_0x2c74('0xad')]=_0x17f9bb?this['_getViewForChange'](_0x17f9bb):null,this[_0x2c74('0x89')][_0x2c74('0x12')]['change'](()=>{const _0x126b2a=this[_0x2c74('0x89')]['editing'];_0x5828ab&&(_0x5828ab['data'][_0x2c74('0xf0')]?_0x126b2a[_0x2c74('0x49')][_0x2c74('0xf4')](_0x1a6d25=>{_0x1a6d25[_0x2c74('0x9f')](_0x2c74('0x75'),_0x126b2a['view'][_0x2c74('0x94')]['getRoot'](_0x5828ab['rootName']));}):_0x126b2a[_0x2c74('0xb4')](_0x2c74('0x21')+_0x5828ab['id'])),_0x17f9bb&&(_0x17f9bb[_0x2c74('0xae')][_0x2c74('0xf0')]?_0x126b2a['view'][_0x2c74('0xf4')](_0x36c664=>{_0x36c664[_0x2c74('0x43')]('ck-revision-history-root--active',_0x126b2a[_0x2c74('0x49')][_0x2c74('0x94')][_0x2c74('0xc')](_0x17f9bb['rootName']));}):_0x126b2a[_0x2c74('0xb4')](_0x2c74('0x21')+_0x17f9bb['id']));});}),this[_0x2c74('0x2')](this[_0x2c74('0x89')]['editing'][_0x2c74('0x49')][_0x2c74('0x94')],_0x2c74('0xc6'),(_0x1c2c49,_0x4e45ed)=>{if(this[_0x2c74('0x20')])return;const _0x411385=this[_0x2c74('0x79')](_0x4e45ed['target']),_0x2e769d=this[_0x2c74('0x9e')][_0x2c74('0x10c')](_0x411385);_0x2e769d?(this[_0x2c74('0x118')]={'x':_0x4e45ed['domEvent']['x'],'y':_0x4e45ed[_0x2c74('0x111')]['y']},this[_0x2c74('0xad')]=this[_0x2c74('0x9b')](_0x2e769d)):(this['_activeViewTarget']=null,this[_0x2c74('0xad')]=null);}),this['listenTo'](this['editor'][_0x2c74('0xb8')][_0x2c74('0x49')]['document'],_0x2c74('0x10d'),(_0x38a9f0,_0x37dd99)=>{const _0x4722a2=this[_0x2c74('0x79')](_0x37dd99[_0x2c74('0x104')]),_0x5e022e=this[_0x2c74('0x9e')]['get'](_0x4722a2);_0x5e022e?(this[_0x2c74('0x118')]={'x':_0x37dd99['domEvent']['x'],'y':_0x37dd99['domEvent']['y']},_0x5e022e===this[_0x2c74('0x20')]?this[_0x2c74('0x9c')]['updatePosition']():this['activeChange']=_0x5e022e):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x47ab91){do{const _0xc69656=_0x47ab91[_0x2c74('0x66')](_0x2c74('0x10a'));if(_0xc69656)return _0xc69656;_0x47ab91=_0x47ab91[_0x2c74('0xe0')];}while(_0x47ab91);return null;}[_0x2c74('0x1b')](){this[_0x2c74('0x89')][_0x2c74('0x12')][_0x2c74('0xf4')](_0xf1671b=>{for(const _0x159dfb of this[_0x2c74('0x89')][_0x2c74('0x12')][_0x2c74('0x58')])_0xf1671b[_0x2c74('0x90')](_0x159dfb);});}}function et(_0x2e325a,_0x27eddf){return(_0x4a81cb,_0x249467,_0x59b788)=>{if(!_0x59b788[_0x2c74('0x76')][_0x2c74('0x5a')](_0x249467[_0x2c74('0x109')],_0x4a81cb[_0x2c74('0xc3')]))return;const _0x14ff9c=_0x249467[_0x2c74('0x109')][_0x2c74('0x114')](),_0xa5689e=_0x249467[_0x2c74('0x109')]['start'],_0x43ecab=_0x2e325a[_0x2c74('0x12')][_0x2c74('0x60')];let _0x4154ee=null,_0x42cb14=null,_0x1d3334=!0x1,_0x54dd6d=!0x1;for(const _0x5cc514 of _0x14ff9c){const _0x1360a0=_0x5cc514[_0x2c74('0xf7')];_0x1d3334=_0x1d3334||_0x43ecab[_0x2c74('0xec')](_0x1360a0);const _0x3a063c=_0x59b788[_0x2c74('0x57')][_0x2c74('0x11a')](_0x1360a0);if(_0x3a063c&&_0x3a063c[_0x2c74('0xa6')](_0x2c74('0xef')))return;_0x2c74('0x5e')==_0x5cc514['type']&&(_0x43ecab[_0x2c74('0xdf')](_0x1360a0)&&!_0x43ecab[_0x2c74('0x2f')](_0x1360a0)&&(_0x1360a0[_0x2c74('0x116')]||_0xa5689e['isAtEnd']?_0x4154ee&&_0x4154ee[_0x2c74('0xe0')]==_0x1360a0||(_0x4154ee=_0x1360a0,_0x3f5faa(_0x5cc514[_0x2c74('0x17')]),_0x54dd6d=!0x0):_0x42cb14=_0x42cb14||_0x5cc514[_0x2c74('0x17')]));}function _0x3f5faa(_0x18f492){const _0x226977=_0x59b788[_0x2c74('0x57')][_0x2c74('0xe3')](_0x18f492),_0xb88f2a=_0x59b788[_0x2c74('0x115')][_0x2c74('0x63')](_0x2c74('0x2e'),{'class':'ck-suggestion-preview-marker-'+_0x27eddf});_0x59b788[_0x2c74('0x115')][_0x2c74('0x1c')](_0x226977,_0xb88f2a),_0x59b788[_0x2c74('0x57')][_0x2c74('0x44')](_0xb88f2a,_0x249467[_0x2c74('0xa8')]);}_0x1d3334||_0x54dd6d||!_0x42cb14||_0x3f5faa(_0x42cb14);};}export class RestoreRevisionCommand extends _0x402c0a{constructor(_0x4f521e){super(_0x4f521e);const _0x77e157=_0x4f521e[_0x2c74('0x9d')][_0x2c74('0x10c')](d);this[_0x2c74('0x10b')]=!0x1,this[_0x2c74('0x2')](_0x77e157,_0x2c74('0x62'),()=>this[_0x2c74('0xdc')]()),this[_0x2c74('0x2')](_0x77e157,_0x2c74('0x7e'),()=>this[_0x2c74('0xdc')]());}[_0x2c74('0xbc')](){const _0x5e65c2=this[_0x2c74('0x89')],_0x461c48=_0x5e65c2[_0x2c74('0x9d')]['get'](d),_0x340dfc=_0x461c48[_0x2c74('0x1f')]?_0x461c48['diff'][_0x2c74('0x50')]:null;_0x5e65c2['config'][_0x2c74('0x10c')](_0x2c74('0x54'))[_0x2c74('0x46')](_0x340dfc);}['refresh'](){const {isReady:_0x54d0c8,isEnabled:_0x152ad4}=this[_0x2c74('0x89')][_0x2c74('0x9d')]['get'](d);this[_0x2c74('0xbe')]=_0x54d0c8&&_0x152ad4;}}export class ShowChangeCommand extends _0x402c0a{constructor(_0xb3cfe5,{direction:_0x55b89b}){super(_0xb3cfe5);const _0x308ff3=_0xb3cfe5['plugins'][_0x2c74('0x10c')](d);this['affectsData']=!0x1,this['_step']=_0x2c74('0x3a')===_0x55b89b?0x1:-0x1,this[_0x2c74('0x2')](_0x308ff3,_0x2c74('0x62'),()=>this['refresh']()),this[_0x2c74('0x2')](_0x308ff3,_0x2c74('0x7e'),()=>this[_0x2c74('0xdc')]()),this['listenTo'](_0x308ff3,_0x2c74('0x47'),()=>this[_0x2c74('0xdc')]());}[_0x2c74('0xbc')](){const _0xae9ee7=this[_0x2c74('0x89')],_0x523426=_0xae9ee7['plugins']['get'](d),{isNavigationMode:_0x59093a,currentChangeNumber:_0x1910a9}=_0x523426;let _0x305dc6;if(_0x523426['activeChange']=_0x59093a?_0x523426[_0x2c74('0xf9')]['changes'][_0x2c74('0x10c')](_0x1910a9+this[_0x2c74('0x55')]):_0x523426[_0x2c74('0xf9')]['changes']['first'],_0x523426[_0x2c74('0x20')][_0x2c74('0xae')][_0x2c74('0xf0')])_0x305dc6=_0xae9ee7[_0x2c74('0xb8')]['view'][_0x2c74('0x1e')](_0x523426[_0x2c74('0x20')][_0x2c74('0xcf')]);else{const _0x1ecbfb=_0xae9ee7[_0x2c74('0x12')][_0x2c74('0x58')]['get']('revision:'+_0x523426[_0x2c74('0x20')]['id']);_0x305dc6=_0x440720(_0xae9ee7[_0x2c74('0xb8')],_0x1ecbfb);}_0x518404({'target':_0x305dc6,'viewportOffset':0x28});}[_0x2c74('0xdc')](){const {isNavigationMode:_0x2b92c5,currentChangeNumber:_0x4186dc,numberOfChanges:_0x36a9f8,isReady:_0x4a19f8,isEnabled:_0x452248}=this[_0x2c74('0x89')][_0x2c74('0x9d')][_0x2c74('0x10c')](d);this['isEnabled']=!!(_0x452248&&_0x4a19f8&&_0x36a9f8)&&(!_0x2b92c5||(0x1===this['_step']?_0x4186dc<_0x36a9f8-0x1:_0x4186dc>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f6f=['set','ck-revision-history-sidebar__revision__actions','model','map','isVisible','children','bind','button','change:isActionsDropdownOpen','function','isActionsDropdownOpen','bindTemplate','buttonView','listenTo','find','isReady','isEnabled','class','Restore\x20this\x20revision','source','add','first','execute','panelPosition','items','locale','name','listView','stopPropagation','action','_action','Show\x20more\x20items','ck-on','extendTemplate','threeVerticalDots'];(function(_0x357bd6,_0x3f6f18){const _0x39b2c5=function(_0x54c78d){while(--_0x54c78d){_0x357bd6['push'](_0x357bd6['shift']());}};_0x39b2c5(++_0x3f6f18);}(_0x3f6f,0x144));const _0x39b2=function(_0x357bd6,_0x3f6f18){_0x357bd6=_0x357bd6-0x0;let _0x39b2c5=_0x3f6f[_0x357bd6];return _0x39b2c5;};import{Collection as _0x4c8fb9}from'ckeditor5/src/utils';import{icons as _0x4bc3ad}from'ckeditor5/src/core';import{Model as _0x329266,addListToDropdown as _0x4cc461,createDropdown as _0xb4d816}from'ckeditor5/src/ui';import{getTranslation as _0x2a8fcc}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x3ed8b2,_0x18de14){const _0x26b37f=_0x3ed8b2[_0x39b2('0x2')],_0x509a47=_0x3ed8b2['locale'],_0x42fb63=_0xb4d816(_0x509a47);_0x42fb63[_0x39b2('0xe')]='sw';const _0x55b84d=function(_0x2d710f,_0x1921bc){const _0x428c14=function(_0x269aed,_0x1bdf47){const _0x21cde1=_0x269aed[_0x39b2('0x10')],_0xc9273={'Compare\x20against\x20selected':_0x2a8fcc(_0x21cde1,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x2a8fcc(_0x21cde1,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x2a8fcc(_0x21cde1,_0x39b2('0x9'))};return _0x1bdf47[_0x39b2('0x1d')](_0x8e3ffb=>{const _0x3577c4=_0xc9273[_0x8e3ffb[_0x39b2('0x11')]];return _0x3577c4&&_0x3577c4!==_0x8e3ffb['name']&&(_0x8e3ffb[_0x39b2('0x11')]=_0x3577c4),_0x8e3ffb;});}(_0x2d710f,_0x1921bc),_0xc1bc83=new _0x4c8fb9();for(const _0x15747d of _0x428c14){const _0x4d54cf={'type':_0x39b2('0x21'),'model':new _0x329266({'label':_0x15747d[_0x39b2('0x11')],'class':_0x15747d[_0x39b2('0x8')],'withText':!0x0,'_action':_0x15747d[_0x39b2('0x14')]})};_0x4d54cf[_0x39b2('0x1c')][_0x39b2('0x20')](_0x39b2('0x7'))['to'](_0x2d710f,'isActionsDropdownOpen',_0xe67683=>_0x39b2('0x0')!=typeof _0x15747d['isEnabled']||(!_0xe67683||_0x15747d[_0x39b2('0x7')](_0x2d710f))),_0xc1bc83[_0x39b2('0xb')](_0x4d54cf);}return _0xc1bc83;}(_0x3ed8b2,_0x18de14);return _0x3ed8b2[_0x39b2('0x20')](_0x39b2('0x1'))['to'](_0x42fb63,'isOpen'),_0x42fb63[_0x39b2('0x3')][_0x39b2('0x1a')]({'label':_0x2a8fcc(_0x509a47,_0x39b2('0x16')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4bc3ad[_0x39b2('0x19')]}),_0x42fb63[_0x39b2('0x18')]({'attributes':{'class':[_0x39b2('0x1b'),_0x26b37f['if'](_0x39b2('0x1'),_0x39b2('0x17'))]},'on':{'click':_0x26b37f['to'](_0x5ba87d=>_0x5ba87d[_0x39b2('0x13')]())}}),_0x42fb63['on'](_0x39b2('0xd'),_0xe78cc4=>{_0x3ed8b2[_0x39b2('0x6')]&&_0x39b2('0x0')==typeof _0xe78cc4[_0x39b2('0xa')][_0x39b2('0x15')]&&_0xe78cc4[_0x39b2('0xa')]['_action'](_0x3ed8b2);}),_0x4cc461(_0x42fb63,_0x55b84d),_0x42fb63[_0x39b2('0x4')](_0x3ed8b2,_0x39b2('0x22'),(_0x5d9039,_0x1ee19d,_0x5bb1cb)=>{if(_0x5bb1cb)for(const _0xb0df5f of _0x42fb63[_0x39b2('0x12')][_0x39b2('0xf')]){const _0x55ad11=_0xb0df5f[_0x39b2('0x1f')][_0x39b2('0xc')],_0xc1fa11=_0x18de14[_0x39b2('0x5')](_0x6a4ba2=>_0x6a4ba2[_0x39b2('0x14')]===_0x55ad11[_0x39b2('0x15')])[_0x39b2('0x1e')];_0xb0df5f[_0x39b2('0x1e')]=void 0x0===_0xc1fa11||_0xc1fa11(_0x3ed8b2);}}),_0x42fb63;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9dfd=['ck-revision-history-sidebar__revision-author_creator','name','Revision\x20creator','set','ck-revision-history-sidebar__revision-author__name','Revision\x20author','push'];(function(_0xc618,_0x9dfd3a){const _0x786464=function(_0x511837){while(--_0x511837){_0xc618['push'](_0xc618['shift']());}};_0x786464(++_0x9dfd3a);}(_0x9dfd,0x64));const _0x7864=function(_0xc618,_0x9dfd3a){_0xc618=_0xc618-0x0;let _0x786464=_0x9dfd[_0xc618];return _0x786464;};import{View as _0x4a4312,IconView as _0x7e3159}from'ckeditor5/src/ui';import{getTranslation as _0x55f378}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x417104 from'../../../theme/icons/user.svg';export default class ti extends _0x4a4312{constructor(_0x63a43b,_0x346518,_0x4267d1){super(_0x63a43b);const _0x1685e4=new _0x7e3159();_0x1685e4[_0x7864('0x1')]({'content':_0x417104,'viewBox':'0\x200\x2011\x2010'});const _0x31eb5f=['ck','ck-revision-history-sidebar__revision-author'];_0x4267d1&&_0x31eb5f[_0x7864('0x4')](_0x7864('0x5'));const _0x5b14c8=[{'tag':'span','attributes':{'class':['ck',_0x7864('0x2')],'title':_0x55f378(_0x63a43b,_0x4267d1?_0x7864('0x0'):_0x7864('0x3'))},'children':[_0x1685e4,_0x346518[_0x7864('0x6')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x31eb5f},'children':_0x5b14c8});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4990=['ck-revision-history-sidebar__revision-name','set','extendTemplate','span'];(function(_0x1359e5,_0x4990ef){var _0x2cadb0=function(_0x345227){while(--_0x345227){_0x1359e5['push'](_0x1359e5['shift']());}};_0x2cadb0(++_0x4990ef);}(_0x4990,0xb5));var _0x2cad=function(_0x1359e5,_0x4990ef){_0x1359e5=_0x1359e5-0x0;var _0x2cadb0=_0x4990[_0x1359e5];return _0x2cadb0;};import{LabeledFieldView as _0x1ad933}from'ckeditor5/src/ui';import{getTranslation as _0x233afc}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x1ad933{constructor(_0x2ec103,_0x3431e7){super(_0x2ec103,_0x3431e7),this[_0x2cad('0x0')]({'label':_0x233afc(_0x2ec103,'Revision\x20name')}),this[_0x2cad('0x1')]({'tag':_0x2cad('0x2'),'attributes':{'class':[_0x2cad('0x3')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2bbf=['isReady','unhighlight','revisionNameView','highlight','setTemplate','ck-revision-history-sidebar__revision-authors','span','bind','set','isSelected','ck-revision-history-sidebar__revision-wrapper','name','createdAt','ck-revision-history-sidebar__actions_dropdown_open','deselect','placeholder','revisionActionsView','220','length','from','isConfirm','creator','map','element','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','srcElement','isEnabled','fire','.ck-thread__remove-confirm','closest','ck-reset','extendTemplate','ck-revision-history-sidebar__revision__controls-wrapper','value','ck-disabled','isHighlighted','_createdAtFormatted','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision_selected','fieldView','render','select','isActionsDropdownOpen'];(function(_0x5a3b9b,_0x2bbf30){const _0x2d4387=function(_0x263f6f){while(--_0x263f6f){_0x5a3b9b['push'](_0x5a3b9b['shift']());}};_0x2d4387(++_0x2bbf30);}(_0x2bbf,0x1df));const _0x2d43=function(_0x5a3b9b,_0x2bbf30){_0x5a3b9b=_0x5a3b9b-0x0;let _0x2d4387=_0x2bbf[_0x5a3b9b];return _0x2d4387;};import{View as _0x1e22cc,createLabeledInputText as _0x49c5da}from'ckeditor5/src/ui';import{ConfirmMixin as _0x1c2296}from'ckeditor5-collaboration/src/collaboration-core';import _0x18a166 from'./revisionnameview';import _0x19216f from'./revisionauthorview';import{dateToPrettyFormat as _0x4f2db4}from'./utils';import{createActionsDropdownView as _0x110ce8}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x1c2296(_0x1e22cc){constructor(_0x11ff7c,_0x2076bd,_0x364c63){super(_0x11ff7c);const _0x40b857=this['bindTemplate'],_0x92f032=function(_0x190260,_0xaa69c){const _0x4d7c21=Array[_0x2d43('0xd')](_0xaa69c['authors'])['filter'](_0x32ad00=>_0x32ad00!=_0xaa69c[_0x2d43('0xf')]);return _0xaa69c['creator']&&_0x4d7c21['unshift'](_0xaa69c[_0x2d43('0xf')]),_0x4d7c21[_0x2d43('0x10')](_0x43fca8=>new _0x19216f(_0x190260,_0x43fca8,_0x43fca8==_0xaa69c['creator']));}(_0x11ff7c,_0x2076bd);this['id']=_0x2076bd['id'],this['_revision']=_0x2076bd,this[_0x2d43('0x1')](_0x2d43('0x5'),'createdAt')['to'](_0x2076bd),this[_0x2d43('0x1')]('_createdAtFormatted')['to'](this,_0x2d43('0x6'),_0x3b3a21=>_0x3b3a21?_0x4f2db4(_0x11ff7c['uiLanguage'],_0x3b3a21):void 0x0),this[_0x2d43('0x2')](_0x2d43('0x3'),!0x1),this[_0x2d43('0x2')](_0x2d43('0x1d'),!0x1),this[_0x2d43('0x2')](_0x2d43('0x24'),!0x1),this[_0x2d43('0x2')](_0x2d43('0x25'),!0x1),this['set'](_0x2d43('0x14'),!0x1),this[_0x2d43('0x27')]=new _0x18a166(_0x11ff7c,_0x49c5da),this['revisionNameView'][_0x2d43('0x21')][_0x2d43('0x19')]({'attributes':{'maxlength':_0x2d43('0xb')}}),this[_0x2d43('0x27')][_0x2d43('0x21')][_0x2d43('0x1')](_0x2d43('0x1b'),_0x2d43('0x9'))['to'](this,'name','_createdAtFormatted'),this['revisionNameView'][_0x2d43('0x1')](_0x2d43('0x14'))['to'](this,_0x2d43('0x3'),this,_0x2d43('0x14'),(_0x34ddcf,_0x32269a)=>_0x34ddcf&&_0x32269a),this['revisionActionsView']=_0x364c63&&_0x364c63[_0x2d43('0xc')]?_0x110ce8(this,_0x364c63):'',this[_0x2d43('0xa')]&&this[_0x2d43('0xa')][_0x2d43('0x1')](_0x2d43('0x14'))['to'](this),this[_0x2d43('0x29')]({'tag':'div','attributes':{'class':['ck',_0x2d43('0x18'),_0x2d43('0x4'),_0x40b857['if'](_0x2d43('0xe'),_0x2d43('0x12'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x2d43('0x18'),_0x2d43('0x1f'),_0x40b857['if'](_0x2d43('0x14'),_0x2d43('0x1c'),_0x4ff59b=>!_0x4ff59b),_0x40b857['if'](_0x2d43('0x3'),_0x2d43('0x20')),_0x40b857['if'](_0x2d43('0x1d'),'ck-revision-history-sidebar__revision_highlighted'),_0x40b857['if'](_0x2d43('0x24'),_0x2d43('0x7'))]},'children':[this[_0x2d43('0x27')],{'tag':_0x2d43('0x0'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x40b857['to'](_0x2d43('0x1e'))}]},{'tag':'div','attributes':{'class':['ck',_0x2d43('0x1a')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x2d43('0x2a')]},'children':_0x92f032}]},this['revisionActionsView']],'on':{'click':_0x40b857['to'](_0x1024f9=>{_0x1024f9[_0x2d43('0x13')][_0x2d43('0x17')](_0x2d43('0x16'))||this[_0x2d43('0x25')]&&this[_0x2d43('0x14')]&&this[_0x2d43('0x15')](_0x2d43('0x23'),{'id':this['id']});})}}]});}[_0x2d43('0x22')](){super['render']();const _0x5d6a34=this[_0x2d43('0x27')][_0x2d43('0x21')][_0x2d43('0x11')];this['listenTo'](_0x5d6a34,'change',()=>{this[_0x2d43('0x15')]('setName',{'id':this['id'],'name':_0x5d6a34[_0x2d43('0x1b')]});});}[_0x2d43('0x23')](){this[_0x2d43('0x3')]=!0x0;}[_0x2d43('0x8')](){this[_0x2d43('0x3')]=!0x1;}[_0x2d43('0x28')](){this[_0x2d43('0x1d')]=!0x0;}[_0x2d43('0x26')](){this['isHighlighted']=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4952=['span','ck-revision-history-sidebar__subrevision-collapser','bindTemplate','button','true','toggle','_isCollapsed','setTemplate','ck-revision-history-sidebar__subrevision-collapser__inner','false','click'];(function(_0x2502c9,_0x4952f0){const _0x5ed455=function(_0xe8ea80){while(--_0xe8ea80){_0x2502c9['push'](_0x2502c9['shift']());}};_0x5ed455(++_0x4952f0);}(_0x4952,0xff));const _0x5ed4=function(_0x2502c9,_0x4952f0){_0x2502c9=_0x2502c9-0x0;let _0x5ed455=_0x4952[_0x2502c9];return _0x5ed455;};import{View as _0x49ce4e}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x49ce4e{constructor(_0x35b9d8){super(_0x35b9d8);const _0xb2c4a9=this[_0x5ed4('0x0')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5ed4('0x5')]({'tag':_0x5ed4('0x9'),'attributes':{'class':['ck',_0x5ed4('0xa'),_0xb2c4a9['if']('isVisible','ck-hidden',_0x5200b0=>!_0x5200b0),_0xb2c4a9['if'](_0x5ed4('0x4'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x5ed4('0x1'),'aria-pressed':_0xb2c4a9['to']('_isCollapsed',_0x586796=>_0x586796?_0x5ed4('0x7'):_0x5ed4('0x2'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x5ed4('0x6')]}}],'on':{'click':_0xb2c4a9['to'](_0x5ed4('0x8'))}});}[_0x5ed4('0x3')](){this[_0x5ed4('0x4')]=!this[_0x5ed4('0x4')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf08f=['select','setTemplate','_parentRevisionId','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision_selected','bind','_createdAtFormatted','isSelected','bindTemplate','fire','ck-reset','createdAt','ck-revision-history-sidebar__revision','deselect'];(function(_0x5c9b13,_0xf08f1b){const _0x4b418b=function(_0x5aa010){while(--_0x5aa010){_0x5c9b13['push'](_0x5c9b13['shift']());}};_0x4b418b(++_0xf08f1b);}(_0xf08f,0x1e9));const _0x4b41=function(_0x5c9b13,_0xf08f1b){_0x5c9b13=_0x5c9b13-0x0;let _0x4b418b=_0xf08f[_0x5c9b13];return _0x4b418b;};import{View as _0x35d1ae}from'ckeditor5/src/ui';import _0x1f01e1 from'./revisionauthorview';import{dateToPrettyFormat as _0x113ab4}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x35d1ae{constructor(_0x32bc95,_0xcba069,_0x15b20d){super(_0x32bc95);const _0xc3437d=this[_0x4b41('0x9')];this['id']=_0xcba069['id'],this['bind'](_0x4b41('0xc'))['to'](_0xcba069),this['set']('isSelected',!0x1),this['bind'](_0x4b41('0x7'))['to'](this,_0x4b41('0xc'),_0x179fca=>_0x179fca?_0x113ab4(_0x32bc95['uiLanguage'],_0x179fca):void 0x0),this[_0x4b41('0x3')]=_0x15b20d,this[_0x4b41('0x2')]({'tag':'div','attributes':{'class':['ck',_0x4b41('0xb'),_0x4b41('0xd'),'ck-revision-history-sidebar__subrevision',_0xc3437d['if']('isSelected',_0x4b41('0x5'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x4b41('0x4')]},'children':[{'text':_0xc3437d['to'](_0x4b41('0x7'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x1f01e1(_0x32bc95,_0xcba069['creator'],!0x0)]}],'on':{'click':_0xc3437d['to'](this[_0x4b41('0x1')][_0x4b41('0x6')](this))}});}[_0x4b41('0x1')](){this[_0x4b41('0x8')]=!0x0,this[_0x4b41('0xa')]('select',{'parentId':this[_0x4b41('0x3')]});}[_0x4b41('0x0')](){this[_0x4b41('0x8')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x967d=['toLocaleTimeString','toLocaleDateString','numeric','long'];(function(_0x2eae4c,_0x967da8){var _0x50e17a=function(_0x3848d9){while(--_0x3848d9){_0x2eae4c['push'](_0x2eae4c['shift']());}};_0x50e17a(++_0x967da8);}(_0x967d,0x128));var _0x50e1=function(_0x2eae4c,_0x967da8){_0x2eae4c=_0x2eae4c-0x0;var _0x50e17a=_0x967d[_0x2eae4c];return _0x50e17a;};export function dateToPrettyFormat(_0x57ae22,_0x495ea4){return _0x495ea4[_0x50e1('0x1')](_0x57ae22,{'month':_0x50e1('0x3'),'day':_0x50e1('0x2')})+',\x20'+_0x495ea4[_0x50e1('0x0')](_0x57ae22,{'hour':_0x50e1('0x2'),'minute':_0x50e1('0x2')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a0c=['ck-button-cancel','render','forEach','set','fieldView','revisionNameInputValue','keystrokes','_createButton','shift\x20+\x20tab','Cancel','_createRevisionNameInput','revisionNameInputView','add','cancelButtonView','input','element','locale','focus','listenTo','revisionName','focusTracker','setTemplate','saveButtonView','_focusCycler','stopPropagation','220','ck-responsive-form','arrowright','value','delegate','extendTemplate','cancel','reset','Save','trim','_focusables'];(function(_0x26fe19,_0x2a0c2b){const _0x294819=function(_0x5df5a5){while(--_0x5df5a5){_0x26fe19['push'](_0x26fe19['shift']());}};_0x294819(++_0x2a0c2b);}(_0x2a0c,0x107));const _0x2948=function(_0x26fe19,_0x2a0c2b){_0x26fe19=_0x26fe19-0x0;let _0x294819=_0x2a0c[_0x26fe19];return _0x294819;};import{icons as _0x5103b4}from'ckeditor5/src/core';import{ButtonView as _0x36307f,FocusCycler as _0x53b3f7,LabeledFieldView as _0x5470cc,View as _0x2f70ef,ViewCollection as _0x540e4f,createLabeledInputText as _0x2deb2a,injectCssTransitionDisabler as _0x17e069,submitHandler as _0x486f37}from'ckeditor5/src/ui';import{FocusTracker as _0x3b6777,KeystrokeHandler as _0x4bb0c9}from'ckeditor5/src/utils';import{getTranslation as _0x526290}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x2f70ef{constructor(_0x5a814c){super(_0x5a814c),this[_0x2948('0x9')]=new _0x3b6777(),this[_0x2948('0x1f')]=new _0x4bb0c9(),this[_0x2948('0x1c')](_0x2948('0x1e'),''),this[_0x2948('0x0')]=this[_0x2948('0x23')](),this[_0x2948('0xb')]=this[_0x2948('0x20')](_0x526290(_0x5a814c,_0x2948('0x16')),_0x5103b4['check'],'ck-button-save'),this[_0x2948('0xb')]['type']='submit',this['cancelButtonView']=this[_0x2948('0x20')](_0x526290(_0x5a814c,_0x2948('0x22')),_0x5103b4[_0x2948('0x14')],_0x2948('0x19'),_0x2948('0x14')),this[_0x2948('0x18')]=new _0x540e4f(),this[_0x2948('0xc')]=new _0x53b3f7({'focusables':this[_0x2948('0x18')],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x2948('0x21'),'focusNext':'tab'}}),this[_0x2948('0xa')]({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form',_0x2948('0xf')],'tabindex':'-1'},'children':[this[_0x2948('0x0')],this[_0x2948('0xb')],this[_0x2948('0x2')]]}),_0x17e069(this);}[_0x2948('0x1a')](){super[_0x2948('0x1a')](),_0x486f37({'view':this}),([this[_0x2948('0x0')],this[_0x2948('0xb')],this['cancelButtonView']][_0x2948('0x1b')](_0x580987=>{this['_focusables'][_0x2948('0x1')](_0x580987),this[_0x2948('0x9')]['add'](_0x580987[_0x2948('0x4')]);}),this[_0x2948('0x1f')][_0x2948('0x7')](this['element']));const _0x36cd4f=_0x5eb568=>_0x5eb568[_0x2948('0xd')]();this['keystrokes'][_0x2948('0x1c')](_0x2948('0x10'),_0x36cd4f),this[_0x2948('0x1f')]['set']('arrowleft',_0x36cd4f),this[_0x2948('0x1f')][_0x2948('0x1c')]('arrowup',_0x36cd4f),this[_0x2948('0x1f')][_0x2948('0x1c')]('arrowdown',_0x36cd4f);}[_0x2948('0x6')](){this[_0x2948('0xc')]['focusFirst']();}get[_0x2948('0x8')](){return this[_0x2948('0x0')][_0x2948('0x1d')][_0x2948('0x4')][_0x2948('0x11')]['trim']();}set['revisionName'](_0x1fa0c4){this[_0x2948('0x0')][_0x2948('0x1d')][_0x2948('0x4')][_0x2948('0x11')]=_0x1fa0c4[_0x2948('0x17')]();}[_0x2948('0x15')](){this['revisionNameInputView'][_0x2948('0x1d')][_0x2948('0x4')][_0x2948('0x11')]='';}['_createRevisionNameInput'](){const _0x2d560c=new _0x5470cc(this[_0x2948('0x5')],_0x2deb2a),_0x30711e=_0x2d560c[_0x2948('0x1d')];return _0x30711e[_0x2948('0x13')]({'attributes':{'maxlength':_0x2948('0xe')}}),_0x2d560c['label']=_0x526290(this[_0x2948('0x5')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x30711e['on'](_0x2948('0x3'),()=>{this['revisionNameInputValue']=_0x30711e['element'][_0x2948('0x11')][_0x2948('0x17')]();}),_0x2d560c;}['_createButton'](_0x14ad6b,_0x769888,_0x3b0260,_0x3536f9){const _0x409575=new _0x36307f(this['locale']);return _0x409575[_0x2948('0x1c')]({'label':_0x14ad6b,'icon':_0x769888,'tooltip':!0x0}),_0x409575['extendTemplate']({'attributes':{'class':_0x3b0260}}),_0x3536f9&&_0x409575[_0x2948('0x12')]('execute')['to'](this,_0x3536f9),_0x409575;}}
|