@ckeditor/ckeditor5-revision-history 38.0.0-rc.0 → 38.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2184=['vid_end','element:pre','unshift','enqueueChange','toData','getChild','pop','ck-revision-history-root--active','pluginName','data-change-id','_removeMissingPairs','createRevision','_balloon','-new','high','getItems','splice','_getViewForChange','low','isRemoveSuggestion','removeMarker:revision-suggestion','_changeView','insertion','isOnRoot','createUIElement','toViewElement','attributesBefore','repository','start','parent','shift','isSuggestion','_makeTape','reconvertMarker','nextPosition','type','comment','nextSibling','WidgetToolbarRepository','for','data-revision-','catch','selection','ck-suggestion-preview-marker-','_threeWayMerge','commands','isObject','revision-end','toViewPosition','enableReadOnlyMode','ck-suggestion-marker-','endIndex','ck-editor__editable__overlay','index','_joinTapes','from','_markInsertions','_makeModelFromViewString','find','findIndex','insertions','deletions','addClass','_refreshStartEndIndex','getRevisionData','_revisions','affectsData','insert','checkAttribute','isLimit','_step','_getRevisionsRange','first','merge','getAttribute','downcastDispatcher','change:isReady','level','modelRange','bind','addRoot','markerToData','_getViewObj','map','_fixObsoleteTags','changeId','keys','suggestion','isBefore','deletion','_makeModelFromTape','end','_update','restoreRevisionCallback','children','isEqual','ck-suggestion-preview-marker','removeClass','getCustomProperty','elementEnd','getRevision','rootName','viewItem','wrap','_changeIdToChange','ck-suggestion-marker','destroy','isAttached','isIncorrect','createPositionFromPath','currentChangeNumber','delete','flat','length','mousedown','includes','bindElementToMarker','consume','detachRoot','RevisionViewer','mouseover','oldRevisionId','markersEnd','activeView','test','authors','right','getRootNames','getIndex','_removeRevisionMarkers','changes','element','addHighlight','markersStart','loadRevisionData','suggestion:','_removeUnsupportedChanges','isContent','ck-revision-history-root-add','revisionHistoryLabel','name','isNavigationMode','split','stop','processor','view','newRevisionId','_data','ck-suggestion-marker--active','isReady','elementStart','side','conversion','revision-viewer','getWalker','editor','attributesAfter','_markMarkers','listenTo','sort','indexOf','done','removeAttribute','_findChangeIdFromDomTarget','nodeAfter','top','get','filter','target','has','revision','adapter','_cleanMarkers','attributes','diffData','remove','revision:','isAddSuggestion','addMarker:revision','document','addMarker:revision-suggestion:insertion','isEnabled','model','markerName','showNextChange','highest','_activeViewTarget','revision-suggestion','push','writer','dataDowncast','addRevision','showStack','plugins','revision-comment:','isRemoved','markerRange','then','_setChanges','execute','ck-revision-history-root-remove','add','span','upcast','activeChange','offsetSize','locale','markerToHighlight','requires','_cleanUp','change:numberOfChanges','isAtEnd','createRange','code','previousPosition','startsWith','vid_start','marked','toViewRange','_initInteractions','startIndex','toModel','useFillerType','diff','abs','next','data','text','isAfter','markerNameToElements','consumable','forEach','numberOfChanges','string','revisionHistoryAttachChange','slice','updatePosition','backward','_sortAndFilterDiffChanges','_appendChild','values','_getDiff','vid','distance','ck-suggestion-marker-split','createAttributeElement','mapper','attachChange','getAttributes','isBlock','_getChangeFromId','clear','_setConversion','domConverter','concat','revision-start','schema','pairId','getRoot','_setDistance','domEvent','addRevisionData','forward','init','userId','_markMismatchedRemovedTags','editing','editingDowncast','range','change','hasAttribute','getClientRects','change:isEnabled','refresh','markers','removeMarker','revision-suggestion:','item','isAdded','set','isCollapsed','resolve','_markSuggestions','isInline','setAttribute','dataToMarker','parse'];(function(_0x1c3d87,_0x21841c){const _0x18b2d6=function(_0x4800f2){while(--_0x4800f2){_0x1c3d87['push'](_0x1c3d87['shift']());}};_0x18b2d6(++_0x21841c);}(_0x2184,0xda));const _0x18b2=function(_0x1c3d87,_0x21841c){_0x1c3d87=_0x1c3d87-0x0;let _0x18b2d6=_0x2184[_0x1c3d87];return _0x18b2d6;};import{Plugin as _0x247ff8,Command as _0xcfbd88}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x413986}from'ckeditor5/src/utils';import{ContextualBalloon as _0x16c372}from'ckeditor5/src/ui';import{DocumentFragment as _0x39e403,Element as _0x44d97d,Text as _0x447422,ViewDocumentFragment as _0x130a33,ViewText as _0x5501ba,ViewElement as _0x1dc760,ViewContainerElement as _0x1cac1a,ViewAttributeElement as _0x30c093,ViewEmptyElement as _0x464de4,ViewRawElement as _0x405772,ViewUIElement as _0x26db04}from'ckeditor5/src/engine';import{Users as _0x435715,getMarkerDomElement as _0x4ee7ef}from'ckeditor5-collaboration/src/collaboration-core';import _0x1321c7 from'./ui/revisionviewer/changedetailsview';import _0x134d25 from'./revisionsrepository';import _0xc3ab36 from'./changeitem';import{default as _0x114f0b}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x164c40}from'lodash-es';const X={'c':_0x1cac1a,'a':_0x30c093,'e':_0x464de4,'r':_0x405772,'u':_0x26db04};export default class w extends _0x247ff8{static get[_0x18b2('0x4d')](){return _0x18b2('0xbc');}static get[_0x18b2('0x115')](){return[_0x435715,_0x16c372,_0x134d25];}constructor(_0x5abb17){super(_0x5abb17),this['repository']=this[_0x18b2('0xe0')][_0x18b2('0x106')]['get']('RevisionsRepository'),this[_0x18b2('0x3d')](_0x18b2('0x111'),null),this[_0x18b2('0x3d')]('activeView',null),this[_0x18b2('0xff')]=null,this[_0x18b2('0x3d')](_0x18b2('0x5'),null),this[_0x18b2('0x3d')](_0x18b2('0xda'),!0x1),this[_0x18b2('0x3d')](_0x18b2('0xfa'),!0x0),this['on'](_0x18b2('0x36'),(_0x4d53cc,_0x31ff57,_0x4e9afa)=>{this[_0x18b2('0x111')]=null,this['activeView']=null,this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')][_0x18b2('0x33')](_0x3e2006=>{for(const _0x1ded21 of this['editor'][_0x18b2('0x30')][_0x18b2('0xd6')][_0x18b2('0xf8')]['roots'])_0x4e9afa?_0x3e2006[_0x18b2('0xa6')]('ck-editor__editable__overlay',_0x1ded21):_0x3e2006[_0x18b2('0x83')](_0x18b2('0x79'),_0x1ded21);});}),this['bind'](_0x18b2('0xd2'))['to'](this,_0x18b2('0x111'),_0x358ca9=>null!==_0x358ca9),this[_0x18b2('0x94')](_0x18b2('0xb3'))['to'](this,_0x18b2('0xda'),this,_0x18b2('0x5'),this,_0x18b2('0x111'),(_0x407216,_0x2685f4,_0x22b303)=>_0x407216&&_0x22b303?_0x2685f4[_0x18b2('0xc7')][_0x18b2('0xc5')](_0x22b303):0x0),this[_0x18b2('0x94')](_0x18b2('0xe'))['to'](this,_0x18b2('0xda'),this,_0x18b2('0x5'),(_0x75199c,_0x2a206a)=>_0x75199c?_0x2a206a[_0x18b2('0xc7')][_0x18b2('0xb6')]:0x0),this[_0x18b2('0x5a')]=null,this[_0x18b2('0xad')]=new Map(),this[_0x18b2('0xf0')]=null,this['_balloon']=this[_0x18b2('0xe0')]['plugins'][_0x18b2('0xeb')](_0x16c372);}[_0x18b2('0x2d')](){const _0x35ea93=this['editor'],_0x5506b6=new ShowChangeCommand(_0x35ea93,{'direction':_0x18b2('0x13')}),_0x420caf=new ShowChangeCommand(_0x35ea93,{'direction':_0x18b2('0x2c')});(_0x35ea93[_0x18b2('0x72')][_0x18b2('0x10e')]('showPreviousChange',_0x5506b6),_0x35ea93['commands']['add'](_0x18b2('0xfd'),_0x420caf),_0x35ea93[_0x18b2('0x72')][_0x18b2('0x10e')]('restoreRevision',new RestoreRevisionCommand(_0x35ea93)),this['on'](_0x18b2('0x117'),()=>{_0x5506b6[_0x18b2('0x37')](),_0x420caf[_0x18b2('0x37')]();}),this[_0x18b2('0x22')](),this[_0x18b2('0x1')](),_0x35ea93[_0x18b2('0x76')](_0x18b2('0xde')),_0x35ea93[_0x18b2('0x106')][_0x18b2('0xee')](_0x18b2('0x6b')))&&_0x35ea93['plugins']['get'](_0x18b2('0x6b'))['forceDisabled'](_0x18b2('0xde'));}async[_0x18b2('0x85')](_0x1fcf08){await this[_0x18b2('0xcb')](_0x1fcf08);const _0x3b5ee3={};for(const _0x8533cd in _0x1fcf08[_0x18b2('0xf3')]){if(_0x1fcf08[_0x18b2('0xf3')][_0x8533cd][_0x18b2('0x1d')]&&!_0x1fcf08[_0x18b2('0xf3')][_0x8533cd][_0x18b2('0x1d')][_0x18b2('0xb0')])continue;const _0x5beb5e=this[_0x18b2('0xc6')](JSON[_0x18b2('0x44')](_0x1fcf08['diffData'][_0x8533cd][_0x18b2('0x81')])),_0x133a7e=this[_0x18b2('0xe0')][_0x18b2('0x30')]['view'][_0x18b2('0xf8')],_0x4819d8=new _0x130a33(_0x133a7e,_0x5beb5e['map'](_0x535c25=>this['_getViewObj'](_0x535c25)));this['editor'][_0x18b2('0x8')][_0x18b2('0xd5')]['useFillerType'](_0x18b2('0x11e')),_0x3b5ee3[_0x8533cd]=this['editor'][_0x18b2('0x8')][_0x18b2('0xd5')][_0x18b2('0x49')](_0x4819d8),this[_0x18b2('0xe0')][_0x18b2('0x8')][_0x18b2('0xd5')][_0x18b2('0x4')]('default');}return _0x3b5ee3;}async['getRevisionRootsAttributes'](_0x587be3){await this[_0x18b2('0xcb')](_0x587be3);const _0x4b43ae={};for(const _0x33c589 in _0x587be3[_0x18b2('0xf3')])_0x587be3[_0x18b2('0xf3')][_0x33c589]['attachChange']&&!_0x587be3[_0x18b2('0xf3')][_0x33c589]['attachChange']['isAttached']||(_0x4b43ae[_0x33c589]=_0x587be3[_0x18b2('0xf3')][_0x33c589][_0x18b2('0xe1')]||{});return _0x4b43ae;}[_0x18b2('0xc6')](_0x17ce37){return(_0x17ce37=_0x17ce37[_0x18b2('0xec')](_0x267e31=>!_0x267e31[_0x18b2('0xd1')]||_0x18b2('0x25')!==_0x267e31[_0x18b2('0xd1')]&&_0x18b2('0x74')!==_0x267e31[_0x18b2('0xd1')]))[_0x18b2('0xd')](_0x542e6b=>{_0x18b2('0xf')!=typeof _0x542e6b&&(_0x542e6b['children']=this[_0x18b2('0xc6')](_0x542e6b[_0x18b2('0xa3')]),_0x542e6b[_0x18b2('0xf2')]=_0x542e6b['attributes'][_0x18b2('0xec')](_0x795f58=>!_0x795f58[0x0]['startsWith'](_0x18b2('0x6d'))));}),_0x17ce37;}async['compare'](_0x6cc51d,_0x47f5a9,_0x717e70=!0x1){if(!this[_0x18b2('0xfa')])return;const _0x3f019b=this[_0x18b2('0x5')],_0x439556=this['repository'],_0x482e31=_0x18b2('0xf')==typeof _0x6cc51d?_0x439556[_0x18b2('0xa9')](_0x6cc51d):_0x6cc51d,_0x5f3438=_0x18b2('0xf')==typeof _0x47f5a9?_0x439556['getRevision'](_0x47f5a9):_0x47f5a9,_0x1c67bd=_0x482e31['id'],_0x3f4832=_0x5f3438?_0x5f3438['id']:null;if(!_0x717e70&&this[_0x18b2('0x5')]&&this['diff'][_0x18b2('0xd7')]===_0x1c67bd&&this['diff'][_0x18b2('0xbe')]===_0x3f4832)return Promise[_0x18b2('0x3f')]();this[_0x18b2('0xda')]=!0x1,this['activeView']=null,this[_0x18b2('0x111')]=null,this[_0x18b2('0x5')]=new _0x114f0b(_0x1c67bd,_0x3f4832);const _0x40c34=this[_0x18b2('0x8c')](_0x482e31,_0x5f3438,!0x0)[_0x18b2('0x98')](_0x2c3291=>this[_0x18b2('0xcb')](_0x2c3291));return _0x40c34[_0x18b2('0x101')](new Promise(_0x58c61=>{setTimeout(_0x58c61,0x14);})),Promise['all'](_0x40c34)[_0x18b2('0x10a')](()=>{if(!this[_0x18b2('0xfa')])return;this[_0x18b2('0x116')]();const _0xac095c=this['_getDiff'](_0x1c67bd,_0x3f4832);for(const _0x7b87e4 of _0xac095c[_0x18b2('0xc7')])this[_0x18b2('0xad')][_0x18b2('0x3d')](_0x7b87e4['id'],_0x7b87e4);this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x48')]({'isUndoable':!0x1},_0x5b22fa=>{for(const _0x20bb75 of this['editor'][_0x18b2('0xfb')][_0x18b2('0xf8')][_0x18b2('0xc4')]())_0x5b22fa[_0x18b2('0xbb')](_0x20bb75);for(const _0x259972 of Object['keys'](_0xac095c[_0x18b2('0xfb')])){const _0x3045dc=_0x5b22fa[_0x18b2('0x95')](_0x259972);for(const _0x2d9ae0 of Object[_0x18b2('0x9b')](_0xac095c[_0x18b2('0xf2')][_0x259972]))_0x5b22fa[_0x18b2('0x42')](_0x2d9ae0,_0xac095c[_0x18b2('0xf2')][_0x259972][_0x2d9ae0],_0x3045dc);_0x5b22fa['insert'](_0xac095c['model'][_0x259972],_0x3045dc,0x0);}}),this[_0x18b2('0x5')][_0x18b2('0x10b')](this[_0x18b2('0x14')](_0xac095c[_0x18b2('0xc7')])),this[_0x18b2('0xda')]=!0x0;})[_0x18b2('0x6e')](_0x17991b=>{console['error'](_0x17991b),this[_0x18b2('0x116')](),_0x3f019b&&(this['diff']=_0x3f019b),this['isReady']=!0x0;});}[_0x18b2('0x2b')](_0x1ff623,_0x2c320e){const _0x2c6c8=this[_0x18b2('0x60')][_0x18b2('0x50')](_0x1ff623);return _0x2c6c8['on'](_0x18b2('0xa1'),(_0x279ebf,_0x2580cb,_0x52a367)=>_0x2c320e(_0x2580cb,_0x52a367,_0x2c6c8)),this[_0x18b2('0x60')][_0x18b2('0x104')](_0x2c6c8),_0x2c6c8;}[_0x18b2('0xcb')](_0x38e750){if(!_0x38e750||_0x38e750[_0x18b2('0xf3')])return Promise[_0x18b2('0x3f')]();{const _0x812de1=this[_0x18b2('0xe0')]['config']['get']('collaboration.channelId');return this[_0x18b2('0xf0')][_0x18b2('0xa9')]({'channelId':_0x812de1,'revisionId':_0x38e750['id']})[_0x18b2('0x10a')](_0x14b72e=>{_0x38e750[_0x18b2('0xa1')]({'diffData':_0x14b72e['diffData']},!0x0);});}}['_cleanUp'](){this[_0x18b2('0x111')]=null,this['_cleanMarkers'](),this[_0x18b2('0x5a')]&&this[_0x18b2('0x5a')][_0x18b2('0xaf')](),this[_0x18b2('0x5a')]=null,this['_changeIdToChange'][_0x18b2('0x21')](),this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x48')]({'isUndoable':!0x1},_0x4324d8=>{for(const _0x3d83ab of this['editor'][_0x18b2('0xfb')][_0x18b2('0xf8')][_0x18b2('0xc4')]())_0x4324d8[_0x18b2('0xbb')](_0x3d83ab);});}['_sortAndFilterDiffChanges'](_0x4e65b2){const _0x3056a4=[],_0x1ba096=new Map();for(const _0x5c226f of this[_0x18b2('0xe0')]['model'][_0x18b2('0xf8')][_0x18b2('0xc4')]()){const _0x449655=this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')]['getDomRoot'](_0x5c226f);if(!_0x449655)continue;const _0x3ddad1=_0x449655[_0x18b2('0x35')]()[_0x18b2('0x3b')](0x0);_0x3ddad1&&(_0x3056a4[_0x18b2('0x101')](_0x5c226f),_0x1ba096['set'](_0x5c226f,_0x3ddad1));}return _0x3056a4[_0x18b2('0xe4')]((_0x5ccb39,_0x4cd597)=>{const _0x25d9fa=_0x1ba096[_0x18b2('0xeb')](_0x5ccb39),_0xa26889=_0x1ba096[_0x18b2('0xeb')](_0x4cd597);return _0x25d9fa['y']-_0xa26889['y']||_0x25d9fa['x']-_0xa26889['x'];}),(_0x4e65b2=_0x4e65b2[_0x18b2('0xec')](_0x3b55b5=>_0x3056a4[_0x18b2('0xb8')](_0x3b55b5['rootName'])))[_0x18b2('0xe4')]((_0x39b125,_0x157f3f)=>_0x3056a4['indexOf'](_0x39b125[_0x18b2('0xaa')])-_0x3056a4[_0x18b2('0xe5')](_0x157f3f[_0x18b2('0xaa')])),_0x4e65b2;}['_makeTape'](_0x1406bc){const _0x3064a5=Array[_0x18b2('0x7c')](_0x1406bc[_0x18b2('0x38')])[_0x18b2('0xec')](([_0xf68f2f,_0x38483f])=>_0xf68f2f[_0x18b2('0x11c')]('revision:')&&!_0x38483f['isCollapsed']),_0x334a5f=Array['from'](this[_0x18b2('0xe0')][_0x18b2('0xfb')]['createRangeIn'](_0x1406bc)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3064a5['length'])for(const _0x27f9f6 of _0x334a5f){const [_0x12700f,_0xbc904b]=_0x3064a5[0x0],[,_0x23f002,_0x233cd6]=_0x12700f[_0x18b2('0xd3')](':');if(_0xbc904b[_0x18b2('0xa0')][_0x18b2('0xa4')](_0x27f9f6['nextPosition'])&&_0x3064a5[_0x18b2('0x63')](),(_0x27f9f6['previousPosition']['isEqual'](_0xbc904b[_0x18b2('0x61')])||_0x27f9f6[_0x18b2('0x11b')][_0x18b2('0xa')](_0xbc904b[_0x18b2('0x61')]))&&(_0x18b2('0x5b')==_0x23f002?_0x27f9f6['isAdded']={'userId':_0x233cd6}:'deletion'==_0x23f002&&(_0x27f9f6[_0x18b2('0x108')]={'userId':_0x233cd6})),0x0==_0x3064a5[_0x18b2('0xb6')])break;}return _0x334a5f;}[_0x18b2('0x84')](_0x2bf969){const _0xa24a5c=new Map();for(let _0x2ab168=0x0;_0x2ab168<_0x2bf969['length'];_0x2ab168++)_0x18b2('0x9')===_0x2bf969[_0x2ab168][_0x18b2('0x68')]?(_0x2bf969[_0x2ab168]['item'][_0x18b2('0x2')]=_0x2ab168,_0x2bf969[_0x2ab168]['item'][_0x18b2('0x78')]=_0x2ab168):(_0x18b2('0xdb')===_0x2bf969[_0x2ab168]['type']?_0x2bf969[_0x2ab168][_0x18b2('0x3b')]['startIndex']=_0x2ab168:_0x18b2('0xa8')===_0x2bf969[_0x2ab168][_0x18b2('0x68')]&&(_0x2bf969[_0x2ab168][_0x18b2('0x3b')][_0x18b2('0x78')]=_0x2ab168),_0xa24a5c[_0x18b2('0x3d')](_0x2bf969[_0x2ab168]['id'],_0x2ab168));for(const _0x24b5dc of _0xa24a5c[_0x18b2('0x16')]())'elementStart'===_0x2bf969[_0x24b5dc][_0x18b2('0x68')]?_0x2bf969[_0x24b5dc][_0x18b2('0x3b')][_0x18b2('0x78')]=_0xa24a5c[_0x18b2('0xeb')](_0x2bf969[_0x24b5dc][_0x18b2('0x27')]):_0x18b2('0xa8')===_0x2bf969[_0x24b5dc]['type']&&(_0x2bf969[_0x24b5dc][_0x18b2('0x3b')][_0x18b2('0x2')]=_0xa24a5c[_0x18b2('0xeb')](_0x2bf969[_0x24b5dc]['pairId']));}['_processTape'](_0x5df02a){for(let _0x3ad00a=0x0;_0x3ad00a<_0x5df02a[_0x18b2('0xb6')];_0x3ad00a++){if('elementStart'===_0x5df02a[_0x3ad00a][_0x18b2('0x68')])_0x5df02a[_0x3ad00a]['item'][_0x18b2('0x2')]=_0x3ad00a;else{if('elementEnd'===_0x5df02a[_0x3ad00a][_0x18b2('0x68')]){_0x5df02a[_0x3ad00a]['item'][_0x18b2('0x78')]=_0x3ad00a;const _0xc1f8bc=_0x5df02a[_0x3ad00a]['item'][_0x18b2('0x2')];_0x5df02a[_0xc1f8bc][_0x18b2('0x27')]=_0x5df02a[_0x3ad00a]['id'],_0x5df02a[_0x3ad00a]['pairId']=_0x5df02a[_0xc1f8bc]['id'];}else _0x5df02a[_0x3ad00a]['item'][_0x18b2('0x2')]=_0x3ad00a,_0x5df02a[_0x3ad00a][_0x18b2('0x3b')][_0x18b2('0x78')]=_0x3ad00a,_0x5df02a[_0x3ad00a][_0x18b2('0x27')]=null;}_0x5df02a[_0x3ad00a][_0x18b2('0xca')]||(_0x5df02a[_0x3ad00a]['markersStart']=[],_0x5df02a[_0x3ad00a][_0x18b2('0xbf')]=[]);}}['_markInsertions'](_0x1bfb6b,_0x51a21f){const _0xc9aad6=_0x1bfb6b[_0x18b2('0xec')](_0x30f67f=>!_0x30f67f[_0x18b2('0x3c')]);for(let _0x52afd9=0x0;_0x52afd9<_0x51a21f[_0x18b2('0xb6')];_0x52afd9++)_0x51a21f[_0x52afd9][_0x18b2('0x3c')]&&(_0xc9aad6[_0x52afd9][_0x18b2('0x3c')]=_0x51a21f[_0x52afd9][_0x18b2('0x3c')]);}[_0x18b2('0x7e')](_0x57022c){const _0x2b580a=JSON[_0x18b2('0x44')](_0x57022c),_0x41802d=this['editor']['editing'][_0x18b2('0xd6')]['document'],_0x138099=new _0x130a33(_0x41802d,_0x2b580a[_0x18b2('0x98')](_0x5d2067=>this[_0x18b2('0x97')](_0x5d2067)));return this[_0x18b2('0xe0')][_0x18b2('0x8')][_0x18b2('0x3')](_0x138099);}[_0x18b2('0x97')](_0x5a45e2){const _0x5f5d04=this[_0x18b2('0xe0')]['editing'][_0x18b2('0xd6')][_0x18b2('0xf8')];if('string'==typeof _0x5a45e2)return new _0x5501ba(_0x5f5d04,_0x5a45e2);{const _0x5e0dbe=_0x5a45e2['children'][_0x18b2('0x98')](_0x50ca4d=>this[_0x18b2('0x97')](_0x50ca4d));return new(X[_0x5a45e2[(_0x18b2('0x68'))]]||_0x1dc760)(_0x5f5d04,_0x5a45e2[_0x18b2('0xd1')],_0x5a45e2[_0x18b2('0xf2')],_0x5e0dbe);}}[_0x18b2('0x17')](_0x250cc2,_0x596dae=null){const _0x487661=this[_0x18b2('0x60')]['getRevision'](_0x250cc2),_0x14c6f1=_0x596dae?this[_0x18b2('0x60')][_0x18b2('0xa9')](_0x596dae):null,_0x398d46=this[_0x18b2('0x8c')](_0x487661,_0x14c6f1),_0x3d1c97=_0x398d46[_0x398d46[_0x18b2('0xb6')]-0x1],_0x161b3b=new Map(),_0x4205b2={'model':{},'attributes':{},'changes':[]},_0x33753a=new Set(),_0x3bc56a=new Map();for(let _0x3a5620=_0x398d46[_0x18b2('0xb6')]-0x1;_0x3a5620>=0x0;_0x3a5620--){const _0x3932f7=_0x398d46[_0x3a5620];for(const _0x3b8910 of Object[_0x18b2('0x9b')](_0x3932f7[_0x18b2('0xf3')]))if(_0x3932f7['diffData'][_0x3b8910][_0x18b2('0x1d')]){const _0x1fd60c=_0x3932f7['diffData'][_0x3b8910]['attachChange'];_0x1fd60c['isAttached']?(_0x33753a[_0x18b2('0x10e')](_0x3b8910),_0x3bc56a[_0x18b2('0xee')](_0x3b8910)&&_0x3bc56a['get'](_0x3b8910)['userId']==_0x1fd60c['userId']?_0x3bc56a[_0x18b2('0xb4')](_0x3b8910):_0x3bc56a['set'](_0x3b8910,_0x1fd60c)):_0x3bc56a[_0x18b2('0xee')](_0x3b8910)?(_0x33753a['delete'](_0x3b8910),_0x3bc56a[_0x18b2('0xb4')](_0x3b8910)):(_0x33753a[_0x18b2('0x10e')](_0x3b8910),_0x3bc56a[_0x18b2('0x3d')](_0x3b8910,_0x1fd60c));}else _0x33753a[_0x18b2('0x10e')](_0x3b8910);}for(const _0x5f3124 of _0x33753a){const _0x1b45cb=_0x3bc56a[_0x18b2('0xee')](_0x5f3124)&&!_0x3bc56a[_0x18b2('0xeb')](_0x5f3124)[_0x18b2('0xb0')];let _0x44540d=_0x1b45cb?_0x398d46[_0x18b2('0xb6')]-0x1:0x0;const _0xbedbbc=_0x1b45cb?-0x1:0x1;for(;_0x398d46[_0x44540d];){const _0x39019b=_0x398d46[_0x44540d];if(_0x39019b['diffData'][_0x5f3124]){const _0x3e3fb8=_0x1b45cb?_0x39019b[_0x18b2('0xf3')][_0x5f3124][_0x18b2('0x5f')]:_0x39019b[_0x18b2('0xf3')][_0x5f3124]['attributesAfter'];_0x4205b2['attributes'][_0x5f3124]=_0x3e3fb8?_0x164c40(_0x3e3fb8):{};break;}_0x44540d+=_0xbedbbc;}}for(const _0x5014d4 of _0x398d46){_0x5014d4[_0x18b2('0xfb')]={};for(const _0x1b0638 of _0x5014d4[_0x18b2('0xc2')])_0x161b3b[_0x18b2('0x3d')](_0x1b0638['id'],_0x1b0638);for(const _0x52eda7 of _0x33753a){const _0x577d4b=_0x5014d4[_0x18b2('0xf3')][_0x52eda7]?_0x5014d4[_0x18b2('0xf3')][_0x52eda7]['insertions']:'[]',_0x138706=_0x5014d4[_0x18b2('0xf3')][_0x52eda7]?_0x5014d4[_0x18b2('0xf3')][_0x52eda7][_0x18b2('0x82')]:'[]';_0x5014d4[_0x18b2('0xfb')][_0x52eda7]={'insertions':this[_0x18b2('0x7e')](_0x577d4b),'deletions':this[_0x18b2('0x7e')](_0x138706)};}}for(const _0x2feeb7 of _0x33753a){let _0x198828=null,_0x5d2e4e=0x0;const _0x130c78=new Map(Array[_0x18b2('0x7c')](_0x487661[_0x18b2('0xfb')][_0x2feeb7]['insertions'][_0x18b2('0x38')])[_0x18b2('0xec')](([_0x1e259b])=>!_0x1e259b[_0x18b2('0x11c')]('revision:')));let _0x3c4135=0x0;for(const _0x211265 of _0x398d46){const _0x51d359=this[_0x18b2('0x65')](_0x211265['model'][_0x2feeb7][_0x18b2('0x81')]);_0x211265==_0x487661?(_0x198828=_0x51d359,_0x5d2e4e=_0x198828[_0x18b2('0xb6')],_0x198828[_0x18b2('0xd')](_0x5ce568=>{_0x5ce568['id']=_0x3c4135++;}),this['_processTape'](_0x198828)):this[_0x18b2('0x7d')](_0x198828,_0x51d359);const _0x5a43ac=_0x198828[_0x18b2('0xec')](_0x1296bc=>!_0x1296bc[_0x18b2('0x3c')])[_0x18b2('0x98')](_0xe692f6=>_0xe692f6['id']);let _0xd27daa=0x0;const _0x552260=this[_0x18b2('0x65')](_0x211265[_0x18b2('0xfb')][_0x2feeb7][_0x18b2('0x82')]);_0x552260[_0x18b2('0xd')](_0x246127=>{_0x246127['isRemoved']?_0x246127['id']=_0x5d2e4e++:_0x246127['id']=_0x5a43ac[_0xd27daa++];}),this['_processTape'](_0x552260),this[_0x18b2('0x29')](_0x198828,'isAdded'),this[_0x18b2('0x29')](_0x552260,'isRemoved'),_0x211265==_0x487661&&this[_0x18b2('0xe2')](_0x198828,_0x130c78),_0x198828=this[_0x18b2('0x7b')](_0x198828,_0x552260),this[_0x18b2('0x84')](_0x198828),this[_0x18b2('0x29')](_0x198828,_0x18b2('0x108'));}_0x198828=_0x198828[_0x18b2('0xec')](_0x2f73b7=>!(_0x2f73b7[_0x18b2('0x3c')]&&_0x2f73b7[_0x18b2('0x108')]));const _0x468292=new Map(_0x3d1c97[_0x18b2('0xfb')][_0x2feeb7][_0x18b2('0x82')][_0x18b2('0x38')]),_0x2cb73c=new Set(_0x130c78[_0x18b2('0x9b')]());for(const _0x46dc2d of _0x468292[_0x18b2('0x9b')]())_0x2cb73c[_0x18b2('0xb4')](_0x46dc2d);this[_0x18b2('0x40')](_0x198828,_0x2cb73c),this[_0x18b2('0x99')](_0x198828),_0x198828=this[_0x18b2('0x4f')](_0x198828),_0x198828=this['_markMismatchedRemovedTags'](_0x198828),_0x198828=this[_0x18b2('0xcd')](_0x198828);const {root:_0x5228df,changes:_0x35a737}=this[_0x18b2('0x9f')](_0x198828,_0x161b3b,_0x2feeb7);_0x4205b2[_0x18b2('0xfb')][_0x2feeb7]=_0x5228df;const _0x1e8381=_0x3bc56a['get'](_0x2feeb7);if(_0x1e8381){const _0x526d42=_0x161b3b[_0x18b2('0xeb')](_0x1e8381[_0x18b2('0x2e')]),_0x564dab=new _0xc3ab36({'author':_0x526d42,'type':_0x1e8381[_0x18b2('0xb0')]?'add':_0x18b2('0xf4'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2feeb7});_0x35a737[_0x18b2('0x47')](_0x564dab),_0x4205b2[_0x18b2('0xf2')][_0x2feeb7][_0x18b2('0x10')]=_0x564dab['id'];}_0x4205b2['changes']=_0x4205b2[_0x18b2('0xc7')][_0x18b2('0x24')](_0x35a737);}return _0x4205b2;}[_0x18b2('0xe2')](_0x69d7bb,_0x431e3d){for(let _0x4f5caf=0x0;_0x4f5caf<_0x69d7bb[_0x18b2('0xb6')];_0x4f5caf++)for(const [_0x2f83ff,_0x4be8cc]of _0x431e3d)_0x4be8cc['start']['isEqual'](_0x69d7bb[_0x4f5caf][_0x18b2('0x11b')])&&_0x69d7bb[_0x4f5caf][_0x18b2('0xca')][_0x18b2('0x101')](_0x2f83ff),_0x4be8cc[_0x18b2('0xa0')][_0x18b2('0xa4')](_0x69d7bb[_0x4f5caf][_0x18b2('0x67')])&&_0x69d7bb[_0x4f5caf][_0x18b2('0xbf')][_0x18b2('0x101')](_0x2f83ff);}[_0x18b2('0x7b')](_0x522039,_0x596312){let _0x1fa674=[],_0x23fb86=0x0,_0x442dac=0x0;for(;_0x23fb86<_0x522039[_0x18b2('0xb6')]||_0x442dac<_0x596312[_0x18b2('0xb6')];){const _0x370a07=_0x522039[_0x23fb86]||{},_0x130b57=_0x596312[_0x442dac]||{};if(_0x370a07['id']==_0x130b57['id'])_0x23fb86++,_0x442dac++,_0x1fa674[_0x18b2('0x101')](_0x370a07);else{if(_0x130b57[_0x18b2('0x108')]&&_0x370a07[_0x18b2('0x3c')]){const {commonTape:_0x3a3638,iEnd:_0x166ea8,jEnd:_0x21eb9b}=this[_0x18b2('0x71')](_0x522039,_0x23fb86,_0x596312,_0x442dac);_0x1fa674=_0x1fa674[_0x18b2('0x24')](_0x3a3638),_0x23fb86=_0x166ea8,_0x442dac=_0x21eb9b;}else _0x130b57[_0x18b2('0x108')]?(_0x442dac++,_0x1fa674[_0x18b2('0x101')](_0x130b57)):(_0x23fb86++,_0x1fa674['push'](_0x370a07));}}return _0x1fa674;}[_0x18b2('0x40')](_0x5b42c1,_0x3934f9){const _0x3814c1=[];for(let _0x397ed2=0x0;_0x397ed2<_0x5b42c1[_0x18b2('0xb6')];_0x397ed2++){for(let _0x11da9e=0x0;_0x11da9e<_0x5b42c1[_0x397ed2]['markersStart']['length'];_0x11da9e++){const _0x158fb4=_0x5b42c1[_0x397ed2][_0x18b2('0xca')][_0x11da9e];if(!_0x3934f9[_0x18b2('0xee')](_0x158fb4))continue;const {group:_0x1a9938,type:_0x29a7fa,authorId:_0x20d94f}=_0x155d79(_0x158fb4);_0x18b2('0x100')!=_0x1a9938||_0x18b2('0x5b')!=_0x29a7fa&&'deletion'!=_0x29a7fa||(_0x3814c1[_0x18b2('0x47')]({'type':_0x29a7fa,'name':_0x158fb4,'userId':_0x20d94f}),_0x5b42c1[_0x397ed2]['markersStart'][_0x18b2('0x55')](_0x11da9e,0x1),_0x11da9e--);}_0x491ed6(_0x5b42c1[_0x397ed2]);for(let _0x3ae9b1=0x0;_0x3ae9b1<_0x5b42c1[_0x397ed2]['markersEnd']['length'];_0x3ae9b1++){const _0x215847=_0x5b42c1[_0x397ed2]['markersEnd'][_0x3ae9b1];if(!_0x3934f9[_0x18b2('0xee')](_0x215847))continue;const {group:_0x5a77ca,type:_0x252338}=_0x155d79(_0x215847);if(_0x18b2('0x100')!=_0x5a77ca||'insertion'!=_0x252338&&_0x18b2('0x9e')!=_0x252338)continue;_0x5b42c1[_0x397ed2][_0x18b2('0xbf')][_0x18b2('0x55')](_0x3ae9b1,0x1),_0x3ae9b1--;const _0x8d8101=_0x3814c1[_0x18b2('0x80')](_0x59aefb=>_0x59aefb[_0x18b2('0xd1')]==_0x215847);_0x8d8101>-0x1&&_0x3814c1['splice'](_0x8d8101,0x1);}}function _0x155d79(_0x43029d){const _0xb3c4d0=_0x43029d[_0x18b2('0xd3')](':');return{'group':_0xb3c4d0[0x0],'type':_0xb3c4d0[0x1],'subType':_0xb3c4d0['length']>=0x5?_0xb3c4d0[0x2]:null,'id':_0xb3c4d0['length']<0x5?_0xb3c4d0[0x2]:_0xb3c4d0[0x3],'authorId':_0xb3c4d0[_0x18b2('0xb6')]<0x5?_0xb3c4d0[0x3]:_0xb3c4d0[0x4],'markerCount':0x6==_0xb3c4d0[_0x18b2('0xb6')]?_0xb3c4d0[0x5]:null};}function _0x491ed6(_0xbfa69b){for(let _0x5dc38c=0x0;_0x5dc38c<_0x3814c1[_0x18b2('0xb6')];_0x5dc38c++){if(_0xbfa69b[_0x18b2('0x3c')]&&_0x18b2('0x5b')==_0x3814c1[_0x5dc38c][_0x18b2('0x68')])return _0xbfa69b[_0x18b2('0xf6')]=_0x3814c1[_0x5dc38c],void delete _0xbfa69b['isAdded'];if(!_0xbfa69b[_0x18b2('0x3c')]&&!_0xbfa69b[_0x18b2('0x108')]&&_0x18b2('0x9e')==_0x3814c1[_0x5dc38c][_0x18b2('0x68')])return void(_0xbfa69b[_0x18b2('0x58')]=_0x3814c1[_0x5dc38c]);}}}[_0x18b2('0x29')](_0x4914c6,_0x3c4cfb){let _0x382998=0x0,_0x29ae94=!0x1;const _0x29a871=new Map();for(const _0x3275c4 of _0x4914c6)_0x3275c4[_0x3c4cfb]?_0x29ae94&&(_0x382998++,_0x29ae94=!0x1):(_0x382998++,_0x29ae94=!0x0),_0x29a871[_0x18b2('0x3d')](_0x3275c4['id'],_0x382998);for(let _0x20a965=0x0;_0x20a965<_0x4914c6[_0x18b2('0xb6')];_0x20a965++){if(_0x18b2('0x108')==_0x3c4cfb&&_0x4914c6[_0x20a965][_0x18b2('0x3c')]||_0x18b2('0x3c')==_0x3c4cfb&&_0x4914c6[_0x20a965][_0x18b2('0x108')])continue;if(_0x18b2('0x9')==_0x4914c6[_0x20a965][_0x18b2('0x68')]){_0x4914c6[_0x20a965][_0x18b2('0x19')]=0x0;continue;}const _0x52d0c2=_0x29a871[_0x18b2('0xeb')](_0x4914c6[_0x20a965][_0x18b2('0x27')]),_0x392d7a=_0x29a871['get'](_0x4914c6[_0x20a965]['id']);_0x4914c6[_0x20a965]['distance']=_0x52d0c2-_0x392d7a;}}[_0x18b2('0x8c')](_0x8c5afa,_0x3d44ab,_0x47dd6b=!0x1){const _0x511cf1=[];let _0x57d545=this[_0x18b2('0x60')]['getIndex'](_0x8c5afa),_0x38db08=this[_0x18b2('0x60')][_0x18b2('0xc5')](_0x3d44ab);for(-0x1==_0x38db08&&(_0x38db08=this[_0x18b2('0x60')][_0x18b2('0x86')]['length'],_0x47dd6b=!0x1);_0x57d545<_0x38db08;)_0x511cf1[_0x18b2('0x101')](this[_0x18b2('0x60')][_0x18b2('0xa9')](_0x57d545)),_0x57d545++;return _0x47dd6b&&_0x511cf1['push'](this[_0x18b2('0x60')][_0x18b2('0xa9')](_0x57d545)),_0x511cf1;}['_threeWayMerge'](_0x3173c8,_0xbf8506,_0x15b56e,_0x17d54d){const _0x384c37=this['editor']['model'][_0x18b2('0x26')];let _0x3fcaed=_0xbf8506;for(;_0x3173c8[_0x3fcaed]&&_0x3173c8[_0x3fcaed]['isAdded'];)_0x3fcaed++;let _0x44b0eb=_0x17d54d;for(;_0x15b56e[_0x44b0eb]&&_0x15b56e[_0x44b0eb][_0x18b2('0x108')];)_0x44b0eb++;_0x55e0cf(_0x3173c8,_0xbf8506,_0x3fcaed),_0x55e0cf(_0x15b56e,_0x17d54d,_0x44b0eb);const _0x3b5f91=_0x15b56e[_0x18b2('0x11')](_0x17d54d,_0x44b0eb)['concat'](_0x3173c8[_0x18b2('0x11')](_0xbf8506,_0x3fcaed));return _0x3b5f91[_0x18b2('0xe4')]((_0x58bbe7,_0x5d340d)=>_0x58bbe7[_0x18b2('0xdc')]!=_0x5d340d[_0x18b2('0xdc')]?_0x58bbe7[_0x18b2('0xdc')]-_0x5d340d['side']:_0x58bbe7['level']!=_0x5d340d[_0x18b2('0x92')]?_0x58bbe7['level']-_0x5d340d['level']:_0x58bbe7[_0x18b2('0x19')]!=_0x5d340d['distance']?_0x5d340d['distance']-_0x58bbe7[_0x18b2('0x19')]:!!_0x58bbe7[_0x18b2('0x3c')]!=!!_0x5d340d['isAdded']?-0x1==_0x58bbe7[_0x18b2('0xdc')]||0x0==_0x58bbe7[_0x18b2('0xdc')]?_0x58bbe7['isAdded']?-0x1:0x1:_0x58bbe7[_0x18b2('0x3c')]?0x1:-0x1:_0x58bbe7[_0x18b2('0x7a')]-_0x5d340d[_0x18b2('0x7a')]),{'commonTape':_0x3b5f91,'iEnd':_0x3fcaed,'jEnd':_0x44b0eb};function _0x55e0cf(_0x229a2d,_0x2e7cc3,_0x4e644a){let _0x5ecc66=-0x1,_0x5a3758=Number['POSITIVE_INFINITY'],_0x34fd6c=!0x0;for(let _0x22e974=_0x2e7cc3;_0x22e974<_0x4e644a;_0x22e974++)if(_0x384c37[_0x18b2('0x41')](_0x229a2d[_0x22e974][_0x18b2('0x3b')])||(_0x34fd6c=!0x1),_0x229a2d[_0x22e974][_0x18b2('0x3b')][_0x18b2('0x2')]<_0x2e7cc3&&(_0x5ecc66=_0x22e974),_0x229a2d[_0x22e974][_0x18b2('0x3b')]['endIndex']>=_0x4e644a){_0x5a3758=_0x22e974;break;}_0x34fd6c&&(_0x5ecc66=_0x4e644a-0x1);for(let _0x44d713=_0x2e7cc3;_0x44d713<_0x4e644a;_0x44d713++)_0x229a2d[_0x44d713][_0x18b2('0xdc')]=_0x44d713<=_0x5ecc66?-0x1:_0x44d713<_0x5a3758?0x0:0x1,_0x229a2d[_0x44d713][_0x18b2('0x7a')]=_0x44d713;let _0x2a055e=0x0;for(let _0x1c8b48=_0x2e7cc3;_0x1c8b48<=_0x5ecc66;_0x1c8b48++)0x0==_0x229a2d[_0x1c8b48][_0x18b2('0x19')]?_0x229a2d[_0x1c8b48][_0x18b2('0x92')]=_0x2a055e:(_0x2a055e++,_0x229a2d[_0x1c8b48][_0x18b2('0x92')]=_0x2a055e,_0x2a055e++);for(let _0x35cec8=_0x2e7cc3;_0x35cec8<_0x4e644a;_0x35cec8++)0x0==_0x229a2d[_0x35cec8]['side']&&(_0x229a2d[_0x35cec8][_0x18b2('0x92')]=_0x2a055e);_0x2a055e=0x0;for(let _0x3fd5f1=_0x4e644a-0x1;_0x3fd5f1>=_0x5a3758;_0x3fd5f1--)0x0==_0x229a2d[_0x3fd5f1][_0x18b2('0x19')]?_0x229a2d[_0x3fd5f1][_0x18b2('0x92')]=_0x2a055e:(_0x2a055e--,_0x229a2d[_0x3fd5f1][_0x18b2('0x92')]=_0x2a055e,_0x2a055e--);}}[_0x18b2('0x99')](_0xd40f82){const _0x44b608=new Map(),_0x46b20d=this['editor'][_0x18b2('0xfb')]['schema'];for(let _0x42b68d=0x1;_0x42b68d<_0xd40f82[_0x18b2('0xb6')];_0x42b68d++){let _0x294442,_0x175e64,_0x4cfeee;const _0x253def=_0xd40f82[_0x42b68d],_0x412c5e=_0xd40f82[_0x42b68d-0x1];if(_0x18b2('0x9')==_0x253def[_0x18b2('0x68')])continue;if(_0x253def[_0x18b2('0x68')]!=_0x412c5e[_0x18b2('0x68')])continue;if(!_0x46b20d[_0x18b2('0x1f')](_0x412c5e['item'])||_0x46b20d[_0x18b2('0x8a')](_0x412c5e['item']))continue;if(!_0x46b20d[_0x18b2('0x1f')](_0x253def[_0x18b2('0x3b')])||_0x46b20d[_0x18b2('0x8a')](_0x253def['item']))continue;if((_0xd40f82[_0x42b68d][_0x18b2('0x3c')]||_0xd40f82[_0x42b68d][_0x18b2('0xf6')])&&_0xd40f82[_0x42b68d-0x1][_0x18b2('0x108')])_0x294442=_0xd40f82[_0x42b68d],_0x175e64=_0xd40f82[_0x42b68d-0x1],_0x4cfeee=_0x42b68d-0x1;else{if(!_0xd40f82[_0x42b68d][_0x18b2('0x108')]||!_0xd40f82[_0x42b68d-0x1][_0x18b2('0x3c')]&&!_0xd40f82[_0x42b68d-0x1][_0x18b2('0xf6')])continue;_0x294442=_0xd40f82[_0x42b68d-0x1],_0x175e64=_0xd40f82[_0x42b68d],_0x4cfeee=_0x42b68d;}const _0x40065c=_0x294442[_0x18b2('0x92')]==_0x175e64[_0x18b2('0x92')],_0x44696c=Math[_0x18b2('0x6')](_0x294442[_0x18b2('0x92')])<Math[_0x18b2('0x6')](_0x175e64[_0x18b2('0x92')])&&0x0==_0x175e64[_0x18b2('0x19')];(_0x40065c||_0x44696c)&&(_0x44b608[_0x18b2('0x3d')](_0x175e64['id'],_0x294442['id']),_0xd40f82[_0x18b2('0x55')](_0x4cfeee,0x1),_0x42b68d--,_0x294442[_0x18b2('0x3c')]=!0x1);}for(let _0x47ea93=0x0;_0x47ea93<_0xd40f82['length'];_0x47ea93++)_0x44b608['has'](_0xd40f82[_0x47ea93]['pairId'])&&(_0xd40f82[_0x47ea93][_0x18b2('0x27')]=_0x44b608[_0x18b2('0xeb')](_0xd40f82[_0x47ea93][_0x18b2('0x27')]));}[_0x18b2('0x4f')](_0x3e0521){const _0x2aea1f=new Set(_0x3e0521[_0x18b2('0x98')](_0x346713=>_0x346713['id']));for(let _0x423c74=0x0;_0x423c74<_0x3e0521[_0x18b2('0xb6')];_0x423c74++)_0x2aea1f['has'](_0x3e0521[_0x423c74]['pairId'])||0x0==_0x3e0521[_0x423c74][_0x18b2('0x19')]||(_0x3e0521[_0x423c74][_0x18b2('0xb1')]=!0x0);return _0x3e0521[_0x18b2('0xec')](_0x1bc8d4=>!_0x1bc8d4['isIncorrect']);}[_0x18b2('0x2f')](_0x41391b){const _0x560dd9=new Set();for(let _0x197fd0=0x0;_0x197fd0<_0x41391b[_0x18b2('0xb6')];_0x197fd0++){if(_0x560dd9[_0x18b2('0xee')](_0x41391b[_0x197fd0]['id'])&&_0x41391b[_0x197fd0][_0x18b2('0x108')]&&(_0x41391b[_0x197fd0]['isIncorrect']=!0x0),_0x41391b[_0x197fd0]['isIncorrect'])continue;if(0x0==_0x41391b[_0x197fd0][_0x18b2('0x19')])continue;if('elementStart'!=_0x41391b[_0x197fd0][_0x18b2('0x68')])continue;if(null==_0x41391b[_0x197fd0][_0x18b2('0x27')])continue;let _0x16224a=_0x197fd0+0x1,_0x3ae2be=0x0;for(;_0x41391b[_0x16224a]['id']!=_0x41391b[_0x197fd0][_0x18b2('0x27')];)_0x18b2('0xdb')==_0x41391b[_0x16224a]['type']?_0x3ae2be++:_0x18b2('0xa8')==_0x41391b[_0x16224a]['type']&&_0x3ae2be--,_0x16224a++;if(0x0!=_0x3ae2be){if(_0x41391b[_0x197fd0][_0x18b2('0x108')])_0x41391b[_0x197fd0]['isIncorrect']=!0x0;else for(;_0x16224a!=_0x197fd0;)_0x41391b[_0x16224a][_0x18b2('0x108')]&&0x0!=_0x41391b[_0x16224a]['distance']&&(_0x41391b[_0x16224a][_0x18b2('0xb1')]=!0x0,_0x560dd9[_0x18b2('0x10e')](_0x41391b[_0x16224a][_0x18b2('0x27')])),_0x16224a--;}}return _0x41391b[_0x18b2('0xec')](_0x6e7e69=>!_0x6e7e69[_0x18b2('0xb1')]);}['_removeUnsupportedChanges'](_0x4166fc){const _0x2251c1=this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x26')];for(let _0x25659c=0x0;_0x25659c<_0x4166fc[_0x18b2('0xb6')];_0x25659c++){if(!(_0x4166fc[_0x25659c]['isAdded']||_0x4166fc[_0x25659c][_0x18b2('0xf6')]||_0x4166fc[_0x25659c]['isRemoved']||_0x4166fc[_0x25659c]['isRemoveSuggestion']))continue;if(0x0==_0x4166fc[_0x25659c][_0x18b2('0x19')])continue;const _0x4aef6f=_0x4166fc[_0x25659c]['item'];_0x2251c1['isBlock'](_0x4aef6f)||_0x2251c1[_0x18b2('0x8a')](_0x4aef6f)||(_0x4166fc[_0x25659c]['isAdded']&&delete _0x4166fc[_0x25659c][_0x18b2('0x3c')],_0x4166fc[_0x25659c][_0x18b2('0xf6')]&&delete _0x4166fc[_0x25659c][_0x18b2('0xf6')],_0x4166fc[_0x25659c][_0x18b2('0x58')]&&delete _0x4166fc[_0x25659c]['isRemoveSuggestion'],_0x4166fc[_0x25659c]['isRemoved']&&(_0x4166fc[_0x25659c]['isIncorrect']=!0x0));}return _0x4166fc[_0x18b2('0xec')](_0x301525=>!_0x301525[_0x18b2('0xb1')]);}[_0x18b2('0x9f')](_0x45e767,_0x5581c2,_0x33f0cb){const _0x40aa95=new _0x39e403(),_0x4745e7=[],_0x2dd08c=new Map(),_0x16b0ed=this[_0x18b2('0xe0')][_0x18b2('0xfb')],_0x5d3c0b=_0x16b0ed[_0x18b2('0x26')],_0x562a0a=[_0x40aa95],_0x163bc5={},_0x5cdf10={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4bd951=null;const _0x403b33=[0x0];for(let _0x37062e=0x0;_0x37062e<_0x45e767[_0x18b2('0xb6')];_0x37062e++){let _0x5db7f2,_0x3f0a5a;if('elementStart'===_0x45e767[_0x37062e]['type']){_0x5db7f2=_0x16b0ed[_0x18b2('0xb2')](_0x40aa95,_0x403b33);const _0x48c263=new _0x44d97d(_0x45e767[_0x37062e][_0x18b2('0x3b')][_0x18b2('0xd1')],_0x45e767[_0x37062e]['item'][_0x18b2('0x1e')]());_0x562a0a[0x0][_0x18b2('0x15')](_0x48c263),_0x403b33[_0x18b2('0x101')](0x0),_0x562a0a['unshift'](_0x48c263),_0x3f0a5a=_0x16b0ed['createPositionFromPath'](_0x40aa95,_0x403b33),_0x4bd951=null;}else{if('elementEnd'===_0x45e767[_0x37062e]['type'])_0x562a0a[_0x18b2('0x63')](),_0x5db7f2=_0x16b0ed[_0x18b2('0xb2')](_0x40aa95,_0x403b33),_0x403b33[_0x18b2('0x4b')](),_0x403b33[_0x403b33[_0x18b2('0xb6')]-0x1]++,_0x3f0a5a=_0x16b0ed[_0x18b2('0xb2')](_0x40aa95,_0x403b33),_0x4bd951=null;else{if(_0x5db7f2=_0x16b0ed['createPositionFromPath'](_0x40aa95,_0x403b33),_0x4bd951&&_0x45ad38(_0x4bd951,_0x45e767[_0x37062e][_0x18b2('0x3b')]))_0x4bd951[_0x18b2('0xd8')]+=_0x45e767[_0x37062e][_0x18b2('0x3b')][_0x18b2('0x8')];else{const _0x3fc6e3=new _0x447422(_0x45e767[_0x37062e][_0x18b2('0x3b')]['data'],_0x45e767[_0x37062e][_0x18b2('0x3b')]['getAttributes']());_0x562a0a[0x0][_0x18b2('0x15')](_0x3fc6e3),_0x4bd951=_0x3fc6e3;}_0x403b33[_0x403b33[_0x18b2('0xb6')]-0x1]+=_0x45e767[_0x37062e][_0x18b2('0x3b')][_0x18b2('0x112')],_0x3f0a5a=_0x16b0ed[_0x18b2('0xb2')](_0x40aa95,_0x403b33);}}for(const _0x3a7500 of _0x45e767[_0x37062e]['markersStart'])_0x2dd08c[_0x18b2('0x3d')](_0x3a7500,{'start':_0x5db7f2,'end':null});_0x45c23f(_0x18b2('0x58'),_0x37062e,_0x5db7f2,_0x3f0a5a),_0x45c23f(_0x18b2('0xf6'),_0x37062e,_0x5db7f2,_0x3f0a5a),_0x45c23f(_0x18b2('0x108'),_0x37062e,_0x5db7f2,_0x3f0a5a),_0x45c23f('isAdded',_0x37062e,_0x5db7f2,_0x3f0a5a);for(const _0x44b07d of _0x45e767[_0x37062e][_0x18b2('0xbf')]){_0x2dd08c['get'](_0x44b07d)['end']=_0x3f0a5a;}}for(const [_0x1b405f,_0x31d146]of _0x2dd08c){const _0x269fc8=this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x119')](_0x31d146[_0x18b2('0x61')],_0x31d146['end']);_0x40aa95[_0x18b2('0x38')][_0x18b2('0x3d')](_0x1b405f,_0x269fc8);}return _0x4745e7[_0x18b2('0xe4')]((_0x437929,_0x504b29)=>{const _0x1f6dbc=_0x40aa95[_0x18b2('0x38')]['get']('revision:'+_0x437929['id']),_0x594756=_0x40aa95[_0x18b2('0x38')][_0x18b2('0xeb')](_0x18b2('0xf5')+_0x504b29['id']);return _0x1f6dbc[_0x18b2('0x61')][_0x18b2('0x9d')](_0x594756['start'])?-0x1:_0x1f6dbc[_0x18b2('0x61')][_0x18b2('0xa')](_0x594756[_0x18b2('0x61')])?0x1:_0x1f6dbc['end'][_0x18b2('0x9d')](_0x594756['end'])?-0x1:_0x1f6dbc[_0x18b2('0xa0')][_0x18b2('0xa')](_0x594756['end'])?0x1:_0x18b2('0x10e')===_0x437929['type']?-0x1:0x1;}),{'root':_0x40aa95,'changes':_0x4745e7};function _0x45c23f(_0x1c0cc1,_0x252302,_0x478f9d,_0xbfc321){const _0x5d55f6=!!_0x45e767[_0x252302][_0x1c0cc1],_0x2adca8=_0x5d55f6?_0x45e767[_0x252302][_0x1c0cc1][_0x18b2('0x2e')]:null,_0x19bc0e=_0x252302===_0x45e767[_0x18b2('0xb6')]-0x1,_0x1c1696=_0x5cdf10[_0x1c0cc1][0x0],_0x4a4774=_0x5d3c0b[_0x18b2('0x73')](_0x45e767[_0x252302][_0x18b2('0x3b')]);!_0x163bc5[_0x1c0cc1]&&_0x5d55f6?_0x163bc5[_0x1c0cc1]={'start':_0x478f9d,'tapeItem':_0x45e767[_0x252302],'userId':_0x2adca8,'type':_0x1c0cc1}:_0x163bc5[_0x1c0cc1]&&!_0x5d55f6?(_0x163bc5[_0x1c0cc1]['end']=_0x478f9d,_0x50dff1(_0x163bc5[_0x1c0cc1]),_0x163bc5[_0x1c0cc1]=null):_0x163bc5[_0x1c0cc1]&&_0x5d55f6&&_0x163bc5[_0x1c0cc1][_0x18b2('0x2e')]!==_0x2adca8&&(_0x163bc5[_0x1c0cc1][_0x18b2('0xa0')]=_0x478f9d,_0x1c1696&&_0x1c1696[_0x18b2('0x2e')]===_0x163bc5[_0x1c0cc1][_0x18b2('0x2e')]||_0x50dff1(_0x163bc5[_0x1c0cc1]),_0x163bc5[_0x1c0cc1]={'start':_0x478f9d,'tapeItem':_0x45e767[_0x252302],'userId':_0x2adca8,'type':_0x1c0cc1}),_0x163bc5[_0x1c0cc1]&&_0x4a4774&&(_0x18b2('0xdb')!==_0x45e767[_0x252302][_0x18b2('0x68')]||_0x1c1696&&_0x1c1696[_0x18b2('0x2e')]===_0x2adca8||_0x5cdf10[_0x1c0cc1][_0x18b2('0x47')]({'userId':_0x2adca8,'object':_0x45e767[_0x252302][_0x18b2('0x3b')],'change':_0x163bc5[_0x1c0cc1]}),_0x18b2('0xa8')===_0x45e767[_0x252302][_0x18b2('0x68')]&&_0x1c1696&&_0x1c1696['object']===_0x45e767[_0x252302][_0x18b2('0x3b')]&&(_0x5cdf10[_0x1c0cc1][_0x18b2('0x63')](),_0x163bc5[_0x1c0cc1]=_0x1c1696[_0x18b2('0x33')])),_0x163bc5[_0x1c0cc1]&&_0x19bc0e&&(_0x163bc5[_0x1c0cc1][_0x18b2('0xa0')]=_0xbfc321,_0x50dff1(_0x163bc5[_0x1c0cc1]),_0x163bc5[_0x1c0cc1]=null);}function _0x50dff1({start:_0x542e20,end:_0x3f0ec3,tapeItem:_0x302903,userId:_0x5de7a1,type:_0x55c966}){const _0x1e1df4=_0x302903[_0x18b2('0x3b')],_0x3ca281=_0x16b0ed[_0x18b2('0x26')][_0x18b2('0x1f')](_0x1e1df4)&&!_0x16b0ed[_0x18b2('0x26')][_0x18b2('0x8a')](_0x1e1df4),_0x204253=_0x542e20['nodeAfter']==_0x3f0ec3[_0x18b2('0x62')]&&_0x3f0ec3['isAtStart'];if(_0x3ca281&&_0x204253)return;const _0x26d50e=_0x16b0ed[_0x18b2('0x119')](_0x542e20,_0x3f0ec3),_0x5eba75=_0x5581c2[_0x18b2('0xeb')](_0x5de7a1),_0x30a570=new _0xc3ab36({'author':_0x5eba75,'type':_0x18b2('0x3c')==_0x55c966||_0x18b2('0xf6')==_0x55c966?'add':_0x18b2('0xf4'),'data':{'isSuggestion':_0x18b2('0xf6')==_0x55c966||_0x18b2('0x58')==_0x55c966},'createdAt':new Date(),'rootName':_0x33f0cb});_0x4745e7[_0x18b2('0x101')](_0x30a570),_0x40aa95['markers'][_0x18b2('0x3d')](_0x18b2('0xf5')+_0x30a570['id'],_0x26d50e);}function _0x45ad38(_0x4d8876,_0x486b44){const _0x3cbfe7=_0x4d8876['getAttributes'](),_0x1ab6e7=_0x486b44[_0x18b2('0x1e')]();for(const _0x2ea26b of _0x3cbfe7){if(_0x2ea26b[0x1]!==_0x486b44[_0x18b2('0x8f')](_0x2ea26b[0x0]))return!0x1;_0x1ab6e7[_0x18b2('0x7')]();}return _0x1ab6e7['next']()[_0x18b2('0xe6')];}}[_0x18b2('0x22')](){this[_0x18b2('0xe0')][_0x18b2('0xdd')]['for'](_0x18b2('0x110'))['dataToMarker']({'view':_0x18b2('0xef')}),this[_0x18b2('0xe0')][_0x18b2('0xdd')][_0x18b2('0x6c')](_0x18b2('0x31'))[_0x18b2('0x114')]({'model':_0x18b2('0xef'),'view':_0x124752=>{const _0x1b4310=_0x124752[_0x18b2('0xfc')][_0x18b2('0xd3')](':')[0x1],_0xe1b380=this[_0x18b2('0x20')](_0x1b4310);if(!_0xe1b380)return null;const _0x5df711='add'==_0xe1b380[_0x18b2('0x68')]?_0x18b2('0x5b'):_0x18b2('0x9e'),_0x598503=[_0x18b2('0xae'),_0x18b2('0x77')+_0x5df711];return _0xe1b380[_0x18b2('0x8')]['isSuggestion']&&_0x598503['push']('ck-suggestion-marker-'+_0x5df711+'-new'),this[_0x18b2('0x111')]==_0xe1b380&&_0x598503['push'](_0x18b2('0xd9')),{'classes':_0x598503,'attributes':{'data-change-id':_0x1b4310}};}}),this[_0x18b2('0xe0')][_0x18b2('0xdd')][_0x18b2('0x6c')](_0x18b2('0x110'))[_0x18b2('0x10e')](_0xf75691=>{_0xf75691['on'](_0x18b2('0x46'),(_0x1c2695,_0x2691a7,_0x154f6b)=>{const _0x5a33c3=_0x2691a7[_0x18b2('0xab')][_0x18b2('0x4a')](0x0);if(!_0x5a33c3||!_0x5a33c3['is']('element',_0x18b2('0x11a')))return;if(!_0x154f6b['consumable'][_0x18b2('0xba')](_0x5a33c3,{'attributes':[_0x18b2('0x11d'),_0x18b2('0x45')]}))return;const _0x11ce5d=_0x2691a7[_0x18b2('0x93')][_0x18b2('0x61')][_0x18b2('0xe9')];_0x154f6b[_0x18b2('0x102')][_0x18b2('0x42')](_0x18b2('0x11d'),_0x5a33c3['getAttribute'](_0x18b2('0x11d')),_0x11ce5d),_0x154f6b[_0x18b2('0x102')]['setAttribute']('vid_end',_0x5a33c3[_0x18b2('0x8f')](_0x18b2('0x45')),_0x11ce5d);},{'priority':_0x18b2('0x57')});}),this['editor'][_0x18b2('0xdd')][_0x18b2('0x6c')](_0x18b2('0x110'))[_0x18b2('0x10e')](_0xc9aed2=>{_0xc9aed2['on'](_0x18b2('0xc8'),(_0x4bdc0b,_0x37b112,_0x3d7701)=>{if(!_0x3d7701[_0x18b2('0xc')]['consume'](_0x37b112[_0x18b2('0xab')],{'attributes':[_0x18b2('0x11d'),_0x18b2('0x45')]}))return;if(_0x37b112['modelRange'][_0x18b2('0x3e')])return;const _0x957606=_0x37b112['modelRange'][_0x18b2('0x61')][_0x18b2('0xe9')];_0x957606['hasAttribute'](_0x18b2('0x11d'))||_0x957606[_0x18b2('0x34')]('vid')||(_0x3d7701[_0x18b2('0x102')][_0x18b2('0x42')](_0x18b2('0x11d'),_0x37b112[_0x18b2('0xab')][_0x18b2('0x8f')](_0x18b2('0x11d')),_0x957606),_0x3d7701[_0x18b2('0x102')][_0x18b2('0x42')](_0x18b2('0x45'),_0x37b112['viewItem']['getAttribute'](_0x18b2('0x45')),_0x957606));},{'priority':_0x18b2('0x57')});}),this[_0x18b2('0xe0')]['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':_0x18b2('0x10f'),'attributes':{'vid':!0x0}},'model':{'key':_0x18b2('0x18'),'value':_0xf6cad9=>_0xf6cad9[_0x18b2('0x8f')](_0x18b2('0x18'))}}),this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x26')]['on'](_0x18b2('0x89'),(_0x37e9f7,[,_0x433eb4])=>{[_0x18b2('0x11d'),_0x18b2('0x45'),'vid'][_0x18b2('0xb8')](_0x433eb4)&&(_0x37e9f7['return']=!0x0,_0x37e9f7[_0x18b2('0xd4')]());},{'priority':_0x18b2('0xfe')}),this[_0x18b2('0xe0')]['conversion'][_0x18b2('0x6c')](_0x18b2('0x103'))[_0x18b2('0x10e')](_0x2c4cc1=>{_0x2c4cc1['on']('attribute:vid',(_0x301cfc,_0x22b864,_0x8cea44)=>{if('\x20'!=_0x22b864['item'][_0x18b2('0x8')]||_0x22b864[_0x18b2('0x3b')][_0x18b2('0x62')]['maxOffset']>0x1)return;if(!_0x8cea44[_0x18b2('0xc')][_0x18b2('0xba')](_0x22b864[_0x18b2('0x3b')],_0x301cfc[_0x18b2('0xd1')]))return;const _0x4e1b5a=_0x8cea44['writer'],_0x288375=_0x8cea44[_0x18b2('0x1c')][_0x18b2('0x0')](_0x22b864[_0x18b2('0x32')]);_0x4e1b5a[_0x18b2('0xac')](_0x288375,_0x4e1b5a[_0x18b2('0x1b')](_0x18b2('0x10f')));});}),this[_0x18b2('0xe0')]['conversion'][_0x18b2('0x6c')](_0x18b2('0x103'))[_0x18b2('0x96')]({'model':'revision'}),this['editor'][_0x18b2('0x30')][_0x18b2('0x90')]['on'](_0x18b2('0xf7'),function(_0x33d201){const _0x1408cf=_0x33d201[_0x18b2('0x106')]['get'](_0x18b2('0xbc'));return(_0x4520f8,_0x4a6c0d,_0x3658dc)=>{const _0x259af8=_0x4a6c0d[_0x18b2('0xfc')][_0x18b2('0xd3')](':')[0x1],_0x1f5c35=_0x1408cf['_getChangeFromId'](_0x259af8);if(!_0x1f5c35)return null;const _0x407448=_0x18b2('0x10e')==_0x1f5c35['type']?_0x18b2('0xd3'):_0x18b2('0x8e');if(!_0x3658dc[_0x18b2('0xc')][_0x18b2('0xc1')](_0x4a6c0d[_0x18b2('0x109')],_0x4520f8['name']))return;const _0x452ae4=_0x4a6c0d[_0x18b2('0x109')]['getWalker'](),_0x528159=_0x4a6c0d[_0x18b2('0x109')][_0x18b2('0x61')],_0x3f1bd3=_0x33d201[_0x18b2('0xfb')]['schema'];let _0x34445e=null,_0x33d4a2=null,_0x2bd5c=!0x1,_0x18a873=!0x1;for(const _0x2357f6 of _0x452ae4){const _0x5904e6=_0x2357f6[_0x18b2('0x3b')];_0x2bd5c=_0x2bd5c||_0x3f1bd3[_0x18b2('0xce')](_0x5904e6);const _0x42e246=_0x3658dc[_0x18b2('0x1c')][_0x18b2('0x5e')](_0x5904e6);if(_0x42e246&&_0x42e246[_0x18b2('0xa7')](_0x18b2('0xc9')))return;_0x18b2('0xa8')==_0x2357f6[_0x18b2('0x68')]&&(_0x3f1bd3[_0x18b2('0x1f')](_0x5904e6)&&!_0x3f1bd3[_0x18b2('0x8a')](_0x5904e6)&&(_0x5904e6['nextSibling']||_0x528159[_0x18b2('0x118')]?_0x34445e&&_0x34445e[_0x18b2('0x62')]==_0x5904e6||(_0x34445e=_0x5904e6,_0x5683ee(_0x2357f6[_0x18b2('0x11b')]),_0x18a873=!0x0):_0x33d4a2=_0x33d4a2||_0x2357f6[_0x18b2('0x11b')]));}function _0x5683ee(_0x326e98){const _0x195521=_0x3658dc[_0x18b2('0x102')][_0x18b2('0x5d')](_0x18b2('0x10f'),{'class':'ck-suggestion-marker-'+_0x407448}),_0x2131c5=_0x3658dc['mapper'][_0x18b2('0x75')](_0x326e98);_0x1f5c35[_0x18b2('0x8')][_0x18b2('0x64')]&&_0x3658dc[_0x18b2('0x102')][_0x18b2('0x83')](_0x18b2('0x77')+_0x407448+_0x18b2('0x52'),_0x195521),_0x1408cf[_0x18b2('0x111')]==_0x1f5c35&&_0x3658dc[_0x18b2('0x102')][_0x18b2('0x83')](_0x18b2('0xd9'),_0x195521),_0x3658dc[_0x18b2('0x102')][_0x18b2('0x88')](_0x2131c5,_0x195521),_0x3658dc[_0x18b2('0x1c')]['bindElementToMarker'](_0x195521,_0x4a6c0d[_0x18b2('0xfc')]);}_0x2bd5c||_0x18a873||!_0x33d4a2||_0x5683ee(_0x33d4a2);};}(this[_0x18b2('0xe0')]),{'priority':_0x18b2('0x53')}),this[_0x18b2('0xe0')]['editing'][_0x18b2('0x90')]['on']('removeMarker:revision',(_0x4dedb2,_0x227dd4,_0x494ffa)=>{const _0xea77fd=_0x494ffa[_0x18b2('0x1c')]['markerNameToElements'](_0x227dd4['markerName']);if(_0xea77fd)for(const _0x3de989 of _0xea77fd)(_0x3de989['hasClass'](_0x18b2('0x1a'))||_0x3de989['hasClass']('ck-suggestion-marker-merge'))&&(_0x494ffa[_0x18b2('0x1c')]['unbindElementFromMarkerName'](_0x3de989,_0x227dd4['markerName']),_0x494ffa[_0x18b2('0x102')][_0x18b2('0xf4')](_0x3de989));},{'priority':'high'}),this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0x90')]['on'](_0x18b2('0xf7'),(_0x1afbf6,_0x119e1f,_0x1f1bc2)=>{const _0x3c3ec7=_0x119e1f['markerName']['split'](':')[0x1],_0x3c2d85=this['_getChangeFromId'](_0x3c3ec7);if(!_0x3c2d85)return null;const _0x3473d4=_0x18b2('0x10e')==_0x3c2d85[_0x18b2('0x68')]?_0x18b2('0xd3'):_0x18b2('0x8e');if(_0x1f1bc2[_0x18b2('0xc')][_0x18b2('0xc1')](_0x119e1f['markerRange'],_0x1afbf6[_0x18b2('0xd1')]))for(const _0x164bb9 of _0x119e1f[_0x18b2('0x109')][_0x18b2('0x54')]()){if(!_0x164bb9['is'](_0x18b2('0xc8'),'softBreak'))continue;const _0x107f36=_0x1f1bc2['writer']['createUIElement'](_0x18b2('0x10f'),{'class':_0x18b2('0x77')+_0x3473d4}),_0x27c6f3=_0x1f1bc2['mapper'][_0x18b2('0x75')](this[_0x18b2('0xe0')][_0x18b2('0xfb')]['createPositionBefore'](_0x164bb9));_0x3c2d85[_0x18b2('0x8')][_0x18b2('0x64')]&&_0x1f1bc2[_0x18b2('0x102')][_0x18b2('0x83')](_0x18b2('0x77')+_0x3473d4+_0x18b2('0x52'),_0x107f36),this[_0x18b2('0x111')]==_0x3c2d85&&_0x1f1bc2[_0x18b2('0x102')]['addClass'](_0x18b2('0xd9'),_0x107f36),_0x1f1bc2[_0x18b2('0x102')][_0x18b2('0x88')](_0x27c6f3,_0x107f36),_0x1f1bc2[_0x18b2('0x1c')][_0x18b2('0xb9')](_0x107f36,_0x119e1f[_0x18b2('0xfc')]);}},{'priority':'high'}),this['editor'][_0x18b2('0xfb')][_0x18b2('0xf8')]['on'](_0x18b2('0x33'),()=>{this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')][_0x18b2('0x33')](_0xc9de69=>{for(const _0x5be9db of this[_0x18b2('0xe0')]['model'][_0x18b2('0xf8')]['getRootNames']()){const _0x44c1e0=this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0xf8')][_0x18b2('0x28')](_0x5be9db),_0x5513bb=this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')][_0x18b2('0xf8')]['getRoot'](_0x5be9db);if(_0x5513bb){const _0x2af9c4=_0x44c1e0['getAttribute']('revisionHistoryAttachChange');if(_0xc9de69[_0x18b2('0xe7')](_0x18b2('0x4e'),_0x5513bb),_0xc9de69[_0x18b2('0xa6')](_0x18b2('0xcf'),_0x5513bb),_0xc9de69[_0x18b2('0xa6')](_0x18b2('0x10d'),_0x5513bb),_0xc9de69[_0x18b2('0xa6')]('ck-revision-history-root--active',_0x5513bb),_0x2af9c4){const _0x19b734=this['_getChangeFromId'](_0x2af9c4);if(!_0x19b734)return null;_0xc9de69[_0x18b2('0x42')](_0x18b2('0x4e'),_0x2af9c4,_0x5513bb),_0xc9de69[_0x18b2('0x83')]('ck-revision-history-root-'+_0x19b734[_0x18b2('0x68')],_0x5513bb),this[_0x18b2('0x111')]==_0x19b734&&_0xc9de69[_0x18b2('0x83')](_0x18b2('0x4c'),_0x5513bb);}}}});}),this[_0x18b2('0xe0')][_0x18b2('0xdd')][_0x18b2('0x6c')]('upcast')[_0x18b2('0x43')]({'view':_0x18b2('0x69'),'model':_0x23b3ce=>_0x18b2('0x107')+_0x23b3ce,'converterPriority':_0x18b2('0xfe')}),this[_0x18b2('0xe0')][_0x18b2('0xdd')][_0x18b2('0x6c')](_0x18b2('0x110'))['dataToMarker']({'view':_0x18b2('0x9c'),'model':_0x55ea98=>_0x18b2('0x3a')+_0x55ea98,'converterPriority':_0x18b2('0xfe')}),this['editor'][_0x18b2('0xdd')][_0x18b2('0x6c')]('dataDowncast')[_0x18b2('0x96')]({'model':'revision-suggestion','view':_0x455f7d=>({'name':_0x18b2('0xcc')+_0x455f7d,'group':_0x18b2('0x100')}),'converterPriority':_0x18b2('0xfe')}),this[_0x18b2('0xe0')][_0x18b2('0xdd')]['for'](_0x18b2('0x31'))[_0x18b2('0x114')]({'model':_0x18b2('0x100'),'view':_0x549012=>{const _0x103878=_0x549012[_0x18b2('0xfc')][_0x18b2('0xd3')](':')[0x1];return _0x18b2('0x5b')!=_0x103878&&'deletion'!=_0x103878?null:{'classes':[_0x18b2('0xa5'),_0x18b2('0x70')+_0x103878]};}}),this[_0x18b2('0xe0')][_0x18b2('0x30')]['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Y(this[_0x18b2('0xe0')],_0x18b2('0x8e')),{'priority':_0x18b2('0x53')}),this['editor'][_0x18b2('0x30')][_0x18b2('0x90')]['on'](_0x18b2('0xf9'),Y(this['editor'],'split'),{'priority':'high'}),this['editor'][_0x18b2('0x30')][_0x18b2('0x90')]['on'](_0x18b2('0x59'),(_0x4c9ef5,_0x42d562,_0xd0db9c)=>{const _0x3f7bfe=_0xd0db9c[_0x18b2('0x1c')][_0x18b2('0xb')](_0x42d562[_0x18b2('0xfc')]);if(_0x3f7bfe)for(const _0x2a1363 of _0x3f7bfe)_0x2a1363['is']('uiElement')&&(_0xd0db9c['mapper']['unbindElementFromMarkerName'](_0x2a1363,_0x42d562[_0x18b2('0xfc')]),_0xd0db9c[_0x18b2('0x102')][_0x18b2('0xf4')](_0x2a1363));},{'priority':_0x18b2('0x53')});}[_0x18b2('0x20')](_0x37f944){return this['_changeIdToChange'][_0x18b2('0xeb')](_0x37f944);}[_0x18b2('0x56')](_0x23d79e){return this[_0x18b2('0x5a')]&&this[_0x18b2('0x5a')][_0x18b2('0xaf')](),this[_0x18b2('0x5a')]=new _0x1321c7(this[_0x18b2('0xe0')][_0x18b2('0x113')],_0x23d79e),this[_0x18b2('0x5a')];}['_initInteractions'](){this[_0x18b2('0xe0')]['model'][_0x18b2('0xf8')][_0x18b2('0x6f')]['observeMarkers'](_0x18b2('0xef')),this['on']('change:activeView',(_0x3adfb3,_0x255255,_0x116786,_0x20a9db)=>{_0x20a9db&&this[_0x18b2('0x51')][_0x18b2('0xf4')](_0x20a9db),_0x116786&&(this[_0x18b2('0x51')][_0x18b2('0x10e')]({'view':_0x116786,'stackId':_0x18b2('0xd0'),'position':{'target':()=>{const _0x54e433=this['editor'][_0x18b2('0x30')],_0x2c44dc=this[_0x18b2('0x20')](_0x116786[_0x18b2('0x9a')]);let _0x11d5c2;if(_0x2c44dc[_0x18b2('0x8')][_0x18b2('0x5c')]){const _0x77dcc0=_0x54e433[_0x18b2('0xd6')]['getDomRoot'](_0x2c44dc[_0x18b2('0xaa')]);_0x11d5c2=Array['from'](_0x77dcc0[_0x18b2('0x35')]());}else{const _0x5a1901=this[_0x18b2('0xe0')]['model'][_0x18b2('0x38')][_0x18b2('0xeb')](_0x18b2('0xf5')+_0x116786[_0x18b2('0x9a')]);_0x11d5c2=Array[_0x18b2('0x7c')](_0x54e433[_0x18b2('0x1c')][_0x18b2('0xb')](_0x5a1901[_0x18b2('0xd1')]))[_0x18b2('0x98')](_0x2b2240=>_0x54e433[_0x18b2('0xd6')][_0x18b2('0x23')]['mapViewToDom'](_0x2b2240))[_0x18b2('0x98')](_0x5b090c=>Array['from'](_0x5b090c[_0x18b2('0x35')]()))[_0x18b2('0xb5')]();}if(!this[_0x18b2('0xff')])return _0x11d5c2[0x0];return _0x11d5c2[_0x18b2('0x7f')](_0x27a3dc=>_0x27a3dc[_0x18b2('0xea')]-0x3<=this[_0x18b2('0xff')]['y']&&_0x27a3dc['bottom']+0x3>=this[_0x18b2('0xff')]['y']&&_0x27a3dc['left']-0x3<=this[_0x18b2('0xff')]['x']&&_0x27a3dc[_0x18b2('0xc3')]+0x3>=this[_0x18b2('0xff')]['x'])||_0x11d5c2[0x0];}}}),this['_balloon'][_0x18b2('0x105')]('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x356f2d,_0x4b81c4,_0x305c5e,_0x23039b)=>{this[_0x18b2('0xc0')]=_0x305c5e?this[_0x18b2('0x56')](_0x305c5e):null,this[_0x18b2('0xe0')][_0x18b2('0xfb')]['change'](()=>{const _0x122615=this[_0x18b2('0xe0')][_0x18b2('0x30')];_0x23039b&&(_0x23039b[_0x18b2('0x8')][_0x18b2('0x5c')]?_0x122615[_0x18b2('0xd6')][_0x18b2('0x33')](_0x24bf14=>{_0x24bf14[_0x18b2('0xa6')](_0x18b2('0x4c'),_0x122615[_0x18b2('0xd6')]['document'][_0x18b2('0x28')](_0x23039b[_0x18b2('0xaa')]));}):_0x122615[_0x18b2('0x66')]('revision:'+_0x23039b['id'])),_0x305c5e&&(_0x305c5e[_0x18b2('0x8')][_0x18b2('0x5c')]?_0x122615[_0x18b2('0xd6')][_0x18b2('0x33')](_0x52c2f1=>{_0x52c2f1[_0x18b2('0x83')](_0x18b2('0x4c'),_0x122615[_0x18b2('0xd6')]['document'][_0x18b2('0x28')](_0x305c5e['rootName']));}):_0x122615[_0x18b2('0x66')](_0x18b2('0xf5')+_0x305c5e['id']));});}),this['listenTo'](this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')]['document'],_0x18b2('0xbd'),(_0x2de010,_0x4afdc8)=>{if(this[_0x18b2('0x111')])return;const _0x4b5375=this[_0x18b2('0xe8')](_0x4afdc8[_0x18b2('0xed')]),_0xadadd2=this[_0x18b2('0xad')][_0x18b2('0xeb')](_0x4b5375);_0xadadd2?(this[_0x18b2('0xff')]={'x':_0x4afdc8['domEvent']['x'],'y':_0x4afdc8[_0x18b2('0x2a')]['y']},this['activeView']=this[_0x18b2('0x56')](_0xadadd2)):(this['_activeViewTarget']=null,this['activeView']=null);}),this[_0x18b2('0xe3')](this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')][_0x18b2('0xf8')],_0x18b2('0xb7'),(_0x4a1cb2,_0x5e0f2e)=>{const _0x3fe33e=this['_findChangeIdFromDomTarget'](_0x5e0f2e[_0x18b2('0xed')]),_0x33db06=this['_changeIdToChange'][_0x18b2('0xeb')](_0x3fe33e);_0x33db06?(this['_activeViewTarget']={'x':_0x5e0f2e['domEvent']['x'],'y':_0x5e0f2e['domEvent']['y']},_0x33db06===this[_0x18b2('0x111')]?this[_0x18b2('0x51')][_0x18b2('0x12')]():this[_0x18b2('0x111')]=_0x33db06):(this[_0x18b2('0xff')]=null,this[_0x18b2('0x111')]=null);});}['_findChangeIdFromDomTarget'](_0x5a697c){do{const _0x1b2b83=_0x5a697c[_0x18b2('0x8f')]('data-change-id');if(_0x1b2b83)return _0x1b2b83;_0x5a697c=_0x5a697c[_0x18b2('0x62')];}while(_0x5a697c);return null;}[_0x18b2('0xf1')](){this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x33')](_0x44fc51=>{for(const _0x400d02 of this[_0x18b2('0xe0')]['model']['markers'])_0x44fc51[_0x18b2('0x39')](_0x400d02);});}}function Y(_0x3adefc,_0x3c752c){return(_0xc08dfd,_0x54c8de,_0x1f6d59)=>{if(!_0x1f6d59[_0x18b2('0xc')][_0x18b2('0xc1')](_0x54c8de[_0x18b2('0x109')],_0xc08dfd[_0x18b2('0xd1')]))return;const _0x21be28=_0x54c8de[_0x18b2('0x109')][_0x18b2('0xdf')](),_0x4a4dc1=_0x54c8de[_0x18b2('0x109')][_0x18b2('0x61')],_0x3b4b3d=_0x3adefc[_0x18b2('0xfb')][_0x18b2('0x26')];let _0xb68306=null,_0x44fb30=null,_0x336286=!0x1,_0x4b9b64=!0x1;for(const _0x26f472 of _0x21be28){const _0x5528fe=_0x26f472[_0x18b2('0x3b')];_0x336286=_0x336286||_0x3b4b3d[_0x18b2('0xce')](_0x5528fe);const _0x4c2ecb=_0x1f6d59[_0x18b2('0x1c')][_0x18b2('0x5e')](_0x5528fe);if(_0x4c2ecb&&_0x4c2ecb[_0x18b2('0xa7')](_0x18b2('0xc9')))return;_0x18b2('0xa8')==_0x26f472[_0x18b2('0x68')]&&(_0x3b4b3d[_0x18b2('0x1f')](_0x5528fe)&&!_0x3b4b3d[_0x18b2('0x8a')](_0x5528fe)&&(_0x5528fe[_0x18b2('0x6a')]||_0x4a4dc1[_0x18b2('0x118')]?_0xb68306&&_0xb68306[_0x18b2('0x62')]==_0x5528fe||(_0xb68306=_0x5528fe,_0x18e501(_0x26f472[_0x18b2('0x11b')]),_0x4b9b64=!0x0):_0x44fb30=_0x44fb30||_0x26f472[_0x18b2('0x11b')]));}function _0x18e501(_0x17227b){const _0x1870f8=_0x1f6d59['mapper'][_0x18b2('0x75')](_0x17227b),_0x1f5020=_0x1f6d59[_0x18b2('0x102')][_0x18b2('0x5d')](_0x18b2('0x10f'),{'class':'ck-suggestion-preview-marker-'+_0x3c752c});_0x1f6d59[_0x18b2('0x102')][_0x18b2('0x88')](_0x1870f8,_0x1f5020),_0x1f6d59[_0x18b2('0x1c')][_0x18b2('0xb9')](_0x1f5020,_0x54c8de[_0x18b2('0xfc')]);}_0x336286||_0x4b9b64||!_0x44fb30||_0x18e501(_0x44fb30);};}export class RestoreRevisionCommand extends _0xcfbd88{constructor(_0x533371){super(_0x533371);const _0x5d2db9=_0x533371['plugins'][_0x18b2('0xeb')](w);this[_0x18b2('0x87')]=!0x1,this[_0x18b2('0xe3')](_0x5d2db9,_0x18b2('0x91'),()=>this[_0x18b2('0x37')]()),this[_0x18b2('0xe3')](_0x5d2db9,'change:isEnabled',()=>this[_0x18b2('0x37')]());}[_0x18b2('0x10c')](){const _0x2e1c80=this[_0x18b2('0xe0')],_0x2db514=_0x2e1c80[_0x18b2('0x106')][_0x18b2('0xeb')](w),_0x4b09d2=_0x2db514[_0x18b2('0xda')]?_0x2db514[_0x18b2('0x5')][_0x18b2('0xd7')]:null;_0x2e1c80['config'][_0x18b2('0xeb')]('revisionHistory')[_0x18b2('0xa2')](_0x4b09d2);}[_0x18b2('0x37')](){const {isReady:_0x553991,isEnabled:_0x1e4a25}=this[_0x18b2('0xe0')][_0x18b2('0x106')][_0x18b2('0xeb')](w);this[_0x18b2('0xfa')]=_0x553991&&_0x1e4a25;}}export class ShowChangeCommand extends _0xcfbd88{constructor(_0x149836,{direction:_0x375cbe}){super(_0x149836);const _0x55887f=_0x149836[_0x18b2('0x106')][_0x18b2('0xeb')](w);this[_0x18b2('0x87')]=!0x1,this['_step']='forward'===_0x375cbe?0x1:-0x1,this[_0x18b2('0xe3')](_0x55887f,'change:isReady',()=>this[_0x18b2('0x37')]()),this[_0x18b2('0xe3')](_0x55887f,_0x18b2('0x36'),()=>this[_0x18b2('0x37')]());}[_0x18b2('0x10c')](){const _0x111a52=this[_0x18b2('0xe0')],_0x260bc0=_0x111a52[_0x18b2('0x106')][_0x18b2('0xeb')](w),{isNavigationMode:_0x33076b,currentChangeNumber:_0x271b77}=_0x260bc0;let _0x3ed00e;if(_0x260bc0[_0x18b2('0x111')]=_0x33076b?_0x260bc0[_0x18b2('0x5')]['changes'][_0x18b2('0xeb')](_0x271b77+this[_0x18b2('0x8b')]):_0x260bc0['diff'][_0x18b2('0xc7')][_0x18b2('0x8d')],_0x260bc0['activeChange']['data'][_0x18b2('0x5c')])_0x3ed00e=_0x111a52[_0x18b2('0x30')][_0x18b2('0xd6')]['getDomRoot'](_0x260bc0[_0x18b2('0x111')][_0x18b2('0xaa')]);else{const _0x247a2b=_0x111a52[_0x18b2('0xfb')]['markers']['get']('revision:'+_0x260bc0[_0x18b2('0x111')]['id']);_0x3ed00e=_0x4ee7ef(_0x111a52['editing'],_0x247a2b);}_0x413986({'target':_0x3ed00e,'viewportOffset':0x28});}[_0x18b2('0x37')](){const {isNavigationMode:_0x36d1f8,currentChangeNumber:_0x2d8682,numberOfChanges:_0x112863,isReady:_0x257beb,isEnabled:_0x15efb2}=this[_0x18b2('0xe0')][_0x18b2('0x106')][_0x18b2('0xeb')](w);this[_0x18b2('0xfa')]=!!(_0x15efb2&&_0x257beb&&_0x112863)&&(!_0x36d1f8||(0x1===this[_0x18b2('0x8b')]?_0x2d8682<_0x112863-0x1:_0x2d8682>0x0));}}
23
+ const _0x67be=['previousPosition','collaboration.channelId','top','vid','markerName','addRoot','_setChanges','removeMarker:revision','length','_balloon','end','activeView','listenTo','nextSibling','ck-suggestion-marker','marked','isRemoveSuggestion','splice','_removeUnsupportedChanges','domEvent','isBlock','isEqual','_joinTapes','isAttached','code','mapper','change:activeChange','consume','merge','delete','flat','revision-viewer','isReady','_getRevisionsRange','affectsData','isIncorrect','forceDisabled','revision-comment:','_fixObsoleteTags','attachChange','bottom','viewItem','createUIElement','_makeModelFromTape','document','plugins','abs','getWalker','createRangeIn','hasClass','addMarker:revision-suggestion:insertion','from','_markSuggestions','bindElementToMarker','done','getRoot','rootName','getRootNames','_removeMissingPairs','enqueueChange','schema','markersEnd','RevisionViewer','toModel','elementToAttribute','then','item','removeClass','compare','_makeModelFromViewString','_refreshStartEndIndex','activeChange','suggestion:','data-revision-','forEach','ck-suggestion-marker--active','isNavigationMode','useFillerType','isContent','revisionHistoryLabel','ck-suggestion-marker-','attribute:vid','low','changes','return','enableReadOnlyMode','pluginName','maxOffset','isSuggestion','markerToHighlight','userId','insert','keys','highest','getItems','markersStart','test','text','add','revision','findIndex','change:isReady','RevisionsRepository','markerRange','range','isCollapsed','ck-suggestion-marker-merge','restoreRevision','startIndex','_step','requires','getAttributes','mapViewToDom','isAtStart','consumable','span','pop','nextPosition','has','name','isEnabled','execute','toViewPosition','concat','revision:','config','attributesAfter','shift','modelRange','_markMarkers','_markMismatchedRemovedTags','createAttributeElement','isAtEnd','POSITIVE_INFINITY','showPreviousChange','indexOf','revision-end','model','_markInsertions','showStack','deletion','split','addHighlight','dataToMarker','reconvertMarker','-new','createRevision','_cleanMarkers','dataDowncast','diff','loadRevisionData','endIndex','_changeView','insertion','unbindElementFromMarkerName','refresh','stop','target','createPositionFromPath','toViewElement','index','revisionHistory','parent','editor','createPositionBefore','toData','resolve','ck-suggestion-preview-marker-','isAdded','change','domConverter','hasAttribute','isObject','authors','get','_getChangeFromId','ck-suggestion-preview-marker','oldRevisionId','mouseover','revisionHistoryAttachChange','revision-suggestion','element','diffData','_findChangeIdFromDomTarget','_threeWayMerge','nodeAfter','bind','pairId','getDomRoot','ck-editor__editable__overlay','getAttribute','WidgetToolbarRepository','markerToData','toViewRange','upcast','deletions','getCustomProperty','addRevisionData','comment','getRevision','isRemoved','default','attributes','level','removeAttribute','_changeIdToChange','observeMarkers','offsetSize','destroy','clear','for','showNextChange','addMarker:revision','_getViewForChange','side','_appendChild','elementStart','forward','getRevisionData','left','downcastDispatcher','isAfter','detachRoot','_data','processor','change:isEnabled','currentChangeNumber','vid_start','_processTape','elementEnd','editingDowncast','set','type','_initInteractions','addClass','sort','remove','filter','createRange','wrap','vid_end','addRevision','right','changeId','isLimit','_getDiff','markers','ck-suggestion-marker-split','_getViewObj','checkAttribute','newRevisionId','isAddSuggestion','conversion','push','map','parse','backward','getRevisionRootsAttributes','isOnRoot','children','string','start','data','view','_removeRevisionMarkers','insertions','high','includes','commands','writer','find','mousedown','locale','_setDistance','repository','ck-revision-history-root--active','init','softBreak','_activeViewTarget','unshift','_sortAndFilterDiffChanges','suggestion','isBefore','change:numberOfChanges','setAttribute','isInline','markerNameToElements','_cleanUp','removeMarker','_setConversion','startsWith','distance','editing','_update','ck-revision-history-root-','getClientRects','all','restoreRevisionCallback','_makeTape'];(function(_0x4781eb,_0x67bee4){const _0x5bd4dd=function(_0xe1bd68){while(--_0xe1bd68){_0x4781eb['push'](_0x4781eb['shift']());}};_0x5bd4dd(++_0x67bee4);}(_0x67be,0x190));const _0x5bd4=function(_0x4781eb,_0x67bee4){_0x4781eb=_0x4781eb-0x0;let _0x5bd4dd=_0x67be[_0x4781eb];return _0x5bd4dd;};import{Plugin as _0x5ce30b,Command as _0x5b4a33}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x5214f0}from'ckeditor5/src/utils';import{ContextualBalloon as _0x5ee8bc}from'ckeditor5/src/ui';import{DocumentFragment as _0x2d0625,Element as _0x30ac3d,Text as _0x51642b,ViewDocumentFragment as _0x1dfeab,ViewText as _0x1058e8,ViewElement as _0x3c40ed,ViewContainerElement as _0x59605b,ViewAttributeElement as _0x1df025,ViewEmptyElement as _0x54fdb0,ViewRawElement as _0x50e891,ViewUIElement as _0x45d92e}from'ckeditor5/src/engine';import{Users as _0x2bb188,getMarkerDomElement as _0x222649}from'ckeditor5-collaboration/src/collaboration-core';import _0x5dc8aa from'./ui/revisionviewer/changedetailsview';import _0x464859 from'./revisionsrepository';import _0x33f7bf from'./changeitem';import{default as _0x2420f6}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x5297ec}from'lodash-es';const X={'c':_0x59605b,'a':_0x1df025,'e':_0x54fdb0,'r':_0x50e891,'u':_0x45d92e};export default class w extends _0x5ce30b{static get[_0x5bd4('0x11c')](){return _0x5bd4('0x104');}static get[_0x5bd4('0x9')](){return[_0x2bb188,_0x5ee8bc,_0x464859];}constructor(_0x6db929){super(_0x6db929),this[_0x5bd4('0xad')]=this['editor'][_0x5bd4('0xf3')][_0x5bd4('0x49')](_0x5bd4('0x1')),this['set'](_0x5bd4('0x10d'),null),this['set']('activeView',null),this[_0x5bd4('0xb1')]=null,this['set'](_0x5bd4('0x30'),null),this['set'](_0x5bd4('0xe6'),!0x1),this['set'](_0x5bd4('0x13'),!0x0),this['on'](_0x5bd4('0x7c'),(_0x3b5b4c,_0x487cb7,_0x7bd55f)=>{this[_0x5bd4('0x10d')]=null,this['activeView']=null,this['editor'][_0x5bd4('0xbf')]['view']['change'](_0x3553b3=>{for(const _0x4a901c of this[_0x5bd4('0x3e')][_0x5bd4('0xbf')]['view'][_0x5bd4('0xf2')]['roots'])_0x7bd55f?_0x3553b3[_0x5bd4('0x109')](_0x5bd4('0x58'),_0x4a901c):_0x3553b3[_0x5bd4('0x85')](_0x5bd4('0x58'),_0x4a901c);});}),this['bind'](_0x5bd4('0x112'))['to'](this,_0x5bd4('0x10d'),_0x2bd82f=>null!==_0x2bd82f),this[_0x5bd4('0x55')](_0x5bd4('0x7d'))['to'](this,_0x5bd4('0xe6'),this,_0x5bd4('0x30'),this,_0x5bd4('0x10d'),(_0x2c67ec,_0x6caf51,_0x39594c)=>_0x2c67ec&&_0x39594c?_0x6caf51[_0x5bd4('0x119')]['getIndex'](_0x39594c):0x0),this[_0x5bd4('0x55')]('numberOfChanges')['to'](this,_0x5bd4('0xe6'),this,_0x5bd4('0x30'),(_0x1d82b4,_0x43c10e)=>_0x1d82b4?_0x43c10e[_0x5bd4('0x119')][_0x5bd4('0xce')]:0x0),this[_0x5bd4('0x33')]=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this[_0x5bd4('0x3e')][_0x5bd4('0xf3')][_0x5bd4('0x49')](_0x5ee8bc);}[_0x5bd4('0xaf')](){const _0xcce571=this[_0x5bd4('0x3e')],_0xfd3b78=new ShowChangeCommand(_0xcce571,{'direction':_0x5bd4('0x9b')}),_0x4b214d=new ShowChangeCommand(_0xcce571,{'direction':'forward'});(_0xcce571[_0x5bd4('0xa7')][_0x5bd4('0x128')](_0x5bd4('0x21'),_0xfd3b78),_0xcce571['commands']['add'](_0x5bd4('0x6e'),_0x4b214d),_0xcce571[_0x5bd4('0xa7')]['add'](_0x5bd4('0x6'),new RestoreRevisionCommand(_0xcce571)),this['on'](_0x5bd4('0xb6'),()=>{_0xfd3b78['refresh'](),_0x4b214d[_0x5bd4('0x36')]();}),this[_0x5bd4('0xbc')](),this[_0x5bd4('0x84')](),_0xcce571[_0x5bd4('0x11b')](_0x5bd4('0xe5')),_0xcce571[_0x5bd4('0xf3')][_0x5bd4('0x11')](_0x5bd4('0x5a')))&&_0xcce571[_0x5bd4('0xf3')][_0x5bd4('0x49')](_0x5bd4('0x5a'))[_0x5bd4('0xea')]('revision-viewer');}async[_0x5bd4('0x75')](_0xf2d445){await this['loadRevisionData'](_0xf2d445);const _0x5bf0b0={};for(const _0x2907a7 in _0xf2d445['diffData']){if(_0xf2d445[_0x5bd4('0x51')][_0x2907a7][_0x5bd4('0xed')]&&!_0xf2d445[_0x5bd4('0x51')][_0x2907a7][_0x5bd4('0xed')][_0x5bd4('0xdd')])continue;const _0x3e1940=this[_0x5bd4('0xa3')](JSON['parse'](_0xf2d445[_0x5bd4('0x51')][_0x2907a7][_0x5bd4('0xa4')])),_0x3d8abc=this[_0x5bd4('0x3e')][_0x5bd4('0xbf')]['view'][_0x5bd4('0xf2')],_0x5d64c3=new _0x1dfeab(_0x3d8abc,_0x3e1940['map'](_0x2da0ff=>this[_0x5bd4('0x93')](_0x2da0ff)));this[_0x5bd4('0x3e')][_0x5bd4('0xa1')]['processor']['useFillerType'](_0x5bd4('0xd5')),_0x5bf0b0[_0x2907a7]=this['editor'][_0x5bd4('0xa1')][_0x5bd4('0x7b')][_0x5bd4('0x40')](_0x5d64c3),this[_0x5bd4('0x3e')]['data']['processor'][_0x5bd4('0x113')](_0x5bd4('0x64'));}return _0x5bf0b0;}async[_0x5bd4('0x9c')](_0x2639ea){await this[_0x5bd4('0x31')](_0x2639ea);const _0x11565d={};for(const _0x211796 in _0x2639ea[_0x5bd4('0x51')])_0x2639ea[_0x5bd4('0x51')][_0x211796][_0x5bd4('0xed')]&&!_0x2639ea[_0x5bd4('0x51')][_0x211796][_0x5bd4('0xed')][_0x5bd4('0xdd')]||(_0x11565d[_0x211796]=_0x2639ea[_0x5bd4('0x51')][_0x211796]['attributesAfter']||{});return _0x11565d;}['_removeRevisionMarkers'](_0x1c134d){return(_0x1c134d=_0x1c134d['filter'](_0x112231=>!_0x112231[_0x5bd4('0x12')]||'revision-start'!==_0x112231['name']&&_0x5bd4('0x23')!==_0x112231[_0x5bd4('0x12')]))[_0x5bd4('0x110')](_0x19125b=>{_0x5bd4('0x9f')!=typeof _0x19125b&&(_0x19125b[_0x5bd4('0x9e')]=this[_0x5bd4('0xa3')](_0x19125b[_0x5bd4('0x9e')]),_0x19125b[_0x5bd4('0x65')]=_0x19125b[_0x5bd4('0x65')]['filter'](_0x1f4591=>!_0x1f4591[0x0][_0x5bd4('0xbd')](_0x5bd4('0x10f'))));}),_0x1c134d;}async[_0x5bd4('0x10a')](_0x15d358,_0x107f3b,_0x50e2c7=!0x1){if(!this['isEnabled'])return;const _0x4504d4=this[_0x5bd4('0x30')],_0x9a3503=this[_0x5bd4('0xad')],_0x8ea9dc=_0x5bd4('0x9f')==typeof _0x15d358?_0x9a3503[_0x5bd4('0x62')](_0x15d358):_0x15d358,_0x35a2d5=_0x5bd4('0x9f')==typeof _0x107f3b?_0x9a3503[_0x5bd4('0x62')](_0x107f3b):_0x107f3b,_0x624657=_0x8ea9dc['id'],_0x17a65b=_0x35a2d5?_0x35a2d5['id']:null;if(!_0x50e2c7&&this[_0x5bd4('0x30')]&&this[_0x5bd4('0x30')]['newRevisionId']===_0x624657&&this[_0x5bd4('0x30')][_0x5bd4('0x4c')]===_0x17a65b)return Promise[_0x5bd4('0x41')]();this[_0x5bd4('0xe6')]=!0x1,this[_0x5bd4('0xd1')]=null,this['activeChange']=null,this[_0x5bd4('0x30')]=new _0x2420f6(_0x624657,_0x17a65b);const _0x15695a=this['_getRevisionsRange'](_0x8ea9dc,_0x35a2d5,!0x0)[_0x5bd4('0x99')](_0x59ae0b=>this[_0x5bd4('0x31')](_0x59ae0b));return _0x15695a[_0x5bd4('0x98')](new Promise(_0x36a516=>{setTimeout(_0x36a516,0x14);})),Promise[_0x5bd4('0xc3')](_0x15695a)[_0x5bd4('0x107')](()=>{if(!this[_0x5bd4('0x13')])return;this[_0x5bd4('0xba')]();const _0x4c746d=this[_0x5bd4('0x90')](_0x624657,_0x17a65b);for(const _0x2a1bf4 of _0x4c746d[_0x5bd4('0x119')])this[_0x5bd4('0x68')][_0x5bd4('0x82')](_0x2a1bf4['id'],_0x2a1bf4);this['editor'][_0x5bd4('0x24')][_0x5bd4('0x101')]({'isUndoable':!0x1},_0x14b92e=>{for(const _0x44bf39 of this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0xf2')][_0x5bd4('0xff')]())_0x14b92e[_0x5bd4('0x79')](_0x44bf39);for(const _0x560fe0 of Object['keys'](_0x4c746d['model'])){const _0x254a8b=_0x14b92e[_0x5bd4('0xcb')](_0x560fe0);for(const _0x1908c2 of Object[_0x5bd4('0x122')](_0x4c746d[_0x5bd4('0x65')][_0x560fe0]))_0x14b92e['setAttribute'](_0x1908c2,_0x4c746d[_0x5bd4('0x65')][_0x560fe0][_0x1908c2],_0x254a8b);_0x14b92e[_0x5bd4('0x121')](_0x4c746d[_0x5bd4('0x24')][_0x560fe0],_0x254a8b,0x0);}}),this['diff'][_0x5bd4('0xcc')](this['_sortAndFilterDiffChanges'](_0x4c746d[_0x5bd4('0x119')])),this[_0x5bd4('0xe6')]=!0x0;})['catch'](_0x4c2d9c=>{console['error'](_0x4c2d9c),this[_0x5bd4('0xba')](),_0x4504d4&&(this[_0x5bd4('0x30')]=_0x4504d4),this[_0x5bd4('0xe6')]=!0x0;});}[_0x5bd4('0x60')](_0x266253,_0x184bea){const _0x1df2a9=this[_0x5bd4('0xad')][_0x5bd4('0x2d')](_0x266253);return _0x1df2a9['on']('_update',(_0x5c873a,_0x28d1d1,_0x3ba17c)=>_0x184bea(_0x28d1d1,_0x3ba17c,_0x1df2a9)),this[_0x5bd4('0xad')][_0x5bd4('0x8c')](_0x1df2a9),_0x1df2a9;}[_0x5bd4('0x31')](_0x24e1be){if(!_0x24e1be||_0x24e1be['diffData'])return Promise[_0x5bd4('0x41')]();{const _0x4abc38=this[_0x5bd4('0x3e')][_0x5bd4('0x18')]['get'](_0x5bd4('0xc7'));return this['adapter'][_0x5bd4('0x62')]({'channelId':_0x4abc38,'revisionId':_0x24e1be['id']})[_0x5bd4('0x107')](_0x21d506=>{_0x24e1be[_0x5bd4('0xc0')]({'diffData':_0x21d506[_0x5bd4('0x51')]},!0x0);});}}[_0x5bd4('0xba')](){this[_0x5bd4('0x10d')]=null,this[_0x5bd4('0x2e')](),this[_0x5bd4('0x33')]&&this[_0x5bd4('0x33')][_0x5bd4('0x6b')](),this['_changeView']=null,this[_0x5bd4('0x68')][_0x5bd4('0x6c')](),this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0x101')]({'isUndoable':!0x1},_0x249cac=>{for(const _0xe130d6 of this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0xf2')][_0x5bd4('0xff')]())_0x249cac[_0x5bd4('0x79')](_0xe130d6);});}[_0x5bd4('0xb3')](_0x5d5eb4){const _0x15d7e0=[],_0x1286d8=new Map();for(const _0x3a564b of this['editor'][_0x5bd4('0x24')]['document'][_0x5bd4('0xff')]()){const _0x1276da=this[_0x5bd4('0x3e')]['editing'][_0x5bd4('0xa2')][_0x5bd4('0x57')](_0x3a564b);if(!_0x1276da)continue;const _0xe66a2d=_0x1276da[_0x5bd4('0xc2')]()[_0x5bd4('0x108')](0x0);_0xe66a2d&&(_0x15d7e0[_0x5bd4('0x98')](_0x3a564b),_0x1286d8['set'](_0x3a564b,_0xe66a2d));}return _0x15d7e0[_0x5bd4('0x86')]((_0x173dfd,_0x4ebd66)=>{const _0x3e3f04=_0x1286d8[_0x5bd4('0x49')](_0x173dfd),_0x5bc57c=_0x1286d8['get'](_0x4ebd66);return _0x3e3f04['y']-_0x5bc57c['y']||_0x3e3f04['x']-_0x5bc57c['x'];}),(_0x5d5eb4=_0x5d5eb4[_0x5bd4('0x88')](_0x53deda=>_0x15d7e0['includes'](_0x53deda[_0x5bd4('0xfe')])))[_0x5bd4('0x86')]((_0x6afe2,_0x1d7ed2)=>_0x15d7e0[_0x5bd4('0x22')](_0x6afe2[_0x5bd4('0xfe')])-_0x15d7e0[_0x5bd4('0x22')](_0x1d7ed2['rootName'])),_0x5d5eb4;}[_0x5bd4('0xc5')](_0x187252){const _0x37e79f=Array['from'](_0x187252[_0x5bd4('0x91')])[_0x5bd4('0x88')](([_0x4e8a6e,_0x5cfdee])=>_0x4e8a6e[_0x5bd4('0xbd')]('revision:')&&!_0x5cfdee[_0x5bd4('0x4')]),_0x52bf8a=Array[_0x5bd4('0xf9')](this[_0x5bd4('0x3e')]['model'][_0x5bd4('0xf6')](_0x187252)[_0x5bd4('0xf5')]({'singleCharacters':!0x0}));if(0x0!=_0x37e79f[_0x5bd4('0xce')])for(const _0x524da4 of _0x52bf8a){const [_0x446dba,_0x5e1cad]=_0x37e79f[0x0],[,_0x3e02ea,_0x110c36]=_0x446dba[_0x5bd4('0x28')](':');if(_0x5e1cad['end'][_0x5bd4('0xdb')](_0x524da4[_0x5bd4('0x10')])&&_0x37e79f[_0x5bd4('0x1a')](),(_0x524da4[_0x5bd4('0xc6')][_0x5bd4('0xdb')](_0x5e1cad[_0x5bd4('0xa0')])||_0x524da4[_0x5bd4('0xc6')][_0x5bd4('0x78')](_0x5e1cad[_0x5bd4('0xa0')]))&&(_0x5bd4('0x34')==_0x3e02ea?_0x524da4[_0x5bd4('0x43')]={'userId':_0x110c36}:_0x5bd4('0x27')==_0x3e02ea&&(_0x524da4[_0x5bd4('0x63')]={'userId':_0x110c36})),0x0==_0x37e79f[_0x5bd4('0xce')])break;}return _0x52bf8a;}[_0x5bd4('0x10c')](_0x38c5ef){const _0x383367=new Map();for(let _0x2837e4=0x0;_0x2837e4<_0x38c5ef[_0x5bd4('0xce')];_0x2837e4++)'text'===_0x38c5ef[_0x2837e4][_0x5bd4('0x83')]?(_0x38c5ef[_0x2837e4][_0x5bd4('0x108')]['startIndex']=_0x2837e4,_0x38c5ef[_0x2837e4][_0x5bd4('0x108')][_0x5bd4('0x32')]=_0x2837e4):(_0x5bd4('0x73')===_0x38c5ef[_0x2837e4][_0x5bd4('0x83')]?_0x38c5ef[_0x2837e4][_0x5bd4('0x108')][_0x5bd4('0x7')]=_0x2837e4:'elementEnd'===_0x38c5ef[_0x2837e4][_0x5bd4('0x83')]&&(_0x38c5ef[_0x2837e4][_0x5bd4('0x108')][_0x5bd4('0x32')]=_0x2837e4),_0x383367[_0x5bd4('0x82')](_0x38c5ef[_0x2837e4]['id'],_0x2837e4));for(const _0x389142 of _0x383367['values']())'elementStart'===_0x38c5ef[_0x389142][_0x5bd4('0x83')]?_0x38c5ef[_0x389142][_0x5bd4('0x108')]['endIndex']=_0x383367['get'](_0x38c5ef[_0x389142][_0x5bd4('0x56')]):_0x5bd4('0x80')===_0x38c5ef[_0x389142][_0x5bd4('0x83')]&&(_0x38c5ef[_0x389142][_0x5bd4('0x108')]['startIndex']=_0x383367[_0x5bd4('0x49')](_0x38c5ef[_0x389142][_0x5bd4('0x56')]));}[_0x5bd4('0x7f')](_0x1c4466){for(let _0x38ad59=0x0;_0x38ad59<_0x1c4466[_0x5bd4('0xce')];_0x38ad59++){if(_0x5bd4('0x73')===_0x1c4466[_0x38ad59][_0x5bd4('0x83')])_0x1c4466[_0x38ad59][_0x5bd4('0x108')]['startIndex']=_0x38ad59;else{if(_0x5bd4('0x80')===_0x1c4466[_0x38ad59]['type']){_0x1c4466[_0x38ad59][_0x5bd4('0x108')][_0x5bd4('0x32')]=_0x38ad59;const _0x516df6=_0x1c4466[_0x38ad59][_0x5bd4('0x108')][_0x5bd4('0x7')];_0x1c4466[_0x516df6]['pairId']=_0x1c4466[_0x38ad59]['id'],_0x1c4466[_0x38ad59]['pairId']=_0x1c4466[_0x516df6]['id'];}else _0x1c4466[_0x38ad59][_0x5bd4('0x108')][_0x5bd4('0x7')]=_0x38ad59,_0x1c4466[_0x38ad59][_0x5bd4('0x108')][_0x5bd4('0x32')]=_0x38ad59,_0x1c4466[_0x38ad59][_0x5bd4('0x56')]=null;}_0x1c4466[_0x38ad59]['markersStart']||(_0x1c4466[_0x38ad59]['markersStart']=[],_0x1c4466[_0x38ad59][_0x5bd4('0x103')]=[]);}}[_0x5bd4('0x25')](_0x39ba60,_0x4292df){const _0xbac7f=_0x39ba60['filter'](_0x592ac7=>!_0x592ac7['isAdded']);for(let _0x1212c0=0x0;_0x1212c0<_0x4292df['length'];_0x1212c0++)_0x4292df[_0x1212c0]['isAdded']&&(_0xbac7f[_0x1212c0]['isAdded']=_0x4292df[_0x1212c0][_0x5bd4('0x43')]);}[_0x5bd4('0x10b')](_0x3e84cb){const _0xe83b76=JSON[_0x5bd4('0x9a')](_0x3e84cb),_0x1bb454=this[_0x5bd4('0x3e')][_0x5bd4('0xbf')][_0x5bd4('0xa2')][_0x5bd4('0xf2')],_0x5589fd=new _0x1dfeab(_0x1bb454,_0xe83b76[_0x5bd4('0x99')](_0x3fcb45=>this['_getViewObj'](_0x3fcb45)));return this['editor'][_0x5bd4('0xa1')][_0x5bd4('0x105')](_0x5589fd);}[_0x5bd4('0x93')](_0x4161c9){const _0x43ee74=this[_0x5bd4('0x3e')][_0x5bd4('0xbf')][_0x5bd4('0xa2')][_0x5bd4('0xf2')];if(_0x5bd4('0x9f')==typeof _0x4161c9)return new _0x1058e8(_0x43ee74,_0x4161c9);{const _0x1d0c12=_0x4161c9[_0x5bd4('0x9e')][_0x5bd4('0x99')](_0x3e74ef=>this['_getViewObj'](_0x3e74ef));return new(X[_0x4161c9[(_0x5bd4('0x83'))]]||_0x3c40ed)(_0x43ee74,_0x4161c9['name'],_0x4161c9[_0x5bd4('0x65')],_0x1d0c12);}}[_0x5bd4('0x90')](_0x49cff2,_0x19c867=null){const _0x3792ae=this['repository'][_0x5bd4('0x62')](_0x49cff2),_0x1b0122=_0x19c867?this['repository'][_0x5bd4('0x62')](_0x19c867):null,_0x1221d9=this['_getRevisionsRange'](_0x3792ae,_0x1b0122),_0x154e87=_0x1221d9[_0x1221d9['length']-0x1],_0x5de70f=new Map(),_0x2a26b2={'model':{},'attributes':{},'changes':[]},_0x35ce17=new Set(),_0x7b33d6=new Map();for(let _0x3d70ca=_0x1221d9['length']-0x1;_0x3d70ca>=0x0;_0x3d70ca--){const _0x4d200f=_0x1221d9[_0x3d70ca];for(const _0x5d2f4d of Object['keys'](_0x4d200f[_0x5bd4('0x51')]))if(_0x4d200f['diffData'][_0x5d2f4d][_0x5bd4('0xed')]){const _0x20094d=_0x4d200f[_0x5bd4('0x51')][_0x5d2f4d][_0x5bd4('0xed')];_0x20094d[_0x5bd4('0xdd')]?(_0x35ce17[_0x5bd4('0x128')](_0x5d2f4d),_0x7b33d6[_0x5bd4('0x11')](_0x5d2f4d)&&_0x7b33d6[_0x5bd4('0x49')](_0x5d2f4d)['userId']==_0x20094d['userId']?_0x7b33d6[_0x5bd4('0xe3')](_0x5d2f4d):_0x7b33d6[_0x5bd4('0x82')](_0x5d2f4d,_0x20094d)):_0x7b33d6[_0x5bd4('0x11')](_0x5d2f4d)?(_0x35ce17['delete'](_0x5d2f4d),_0x7b33d6[_0x5bd4('0xe3')](_0x5d2f4d)):(_0x35ce17['add'](_0x5d2f4d),_0x7b33d6[_0x5bd4('0x82')](_0x5d2f4d,_0x20094d));}else _0x35ce17[_0x5bd4('0x128')](_0x5d2f4d);}for(const _0x3898a2 of _0x35ce17){const _0x267570=_0x7b33d6[_0x5bd4('0x11')](_0x3898a2)&&!_0x7b33d6[_0x5bd4('0x49')](_0x3898a2)[_0x5bd4('0xdd')];let _0x377036=_0x267570?_0x1221d9['length']-0x1:0x0;const _0x313b9e=_0x267570?-0x1:0x1;for(;_0x1221d9[_0x377036];){const _0x1fb1ca=_0x1221d9[_0x377036];if(_0x1fb1ca[_0x5bd4('0x51')][_0x3898a2]){const _0x388fed=_0x267570?_0x1fb1ca['diffData'][_0x3898a2]['attributesBefore']:_0x1fb1ca[_0x5bd4('0x51')][_0x3898a2][_0x5bd4('0x19')];_0x2a26b2[_0x5bd4('0x65')][_0x3898a2]=_0x388fed?_0x5297ec(_0x388fed):{};break;}_0x377036+=_0x313b9e;}}for(const _0x283798 of _0x1221d9){_0x283798[_0x5bd4('0x24')]={};for(const _0x121b81 of _0x283798[_0x5bd4('0x48')])_0x5de70f['set'](_0x121b81['id'],_0x121b81);for(const _0x3acc66 of _0x35ce17){const _0x47176b=_0x283798[_0x5bd4('0x51')][_0x3acc66]?_0x283798[_0x5bd4('0x51')][_0x3acc66][_0x5bd4('0xa4')]:'[]',_0xba5e52=_0x283798[_0x5bd4('0x51')][_0x3acc66]?_0x283798[_0x5bd4('0x51')][_0x3acc66][_0x5bd4('0x5e')]:'[]';_0x283798[_0x5bd4('0x24')][_0x3acc66]={'insertions':this['_makeModelFromViewString'](_0x47176b),'deletions':this[_0x5bd4('0x10b')](_0xba5e52)};}}for(const _0x226d0c of _0x35ce17){let _0x151083=null,_0x177450=0x0;const _0x59e058=new Map(Array[_0x5bd4('0xf9')](_0x3792ae['model'][_0x226d0c][_0x5bd4('0xa4')]['markers'])['filter'](([_0x580d99])=>!_0x580d99['startsWith'](_0x5bd4('0x17'))));let _0x4757c2=0x0;for(const _0xc8dad of _0x1221d9){const _0x1269bd=this[_0x5bd4('0xc5')](_0xc8dad[_0x5bd4('0x24')][_0x226d0c]['insertions']);_0xc8dad==_0x3792ae?(_0x151083=_0x1269bd,_0x177450=_0x151083[_0x5bd4('0xce')],_0x151083[_0x5bd4('0x110')](_0x4d8036=>{_0x4d8036['id']=_0x4757c2++;}),this[_0x5bd4('0x7f')](_0x151083)):this[_0x5bd4('0x25')](_0x151083,_0x1269bd);const _0x2fba80=_0x151083['filter'](_0x38403d=>!_0x38403d[_0x5bd4('0x43')])[_0x5bd4('0x99')](_0x5dbd74=>_0x5dbd74['id']);let _0x11475d=0x0;const _0x733221=this[_0x5bd4('0xc5')](_0xc8dad[_0x5bd4('0x24')][_0x226d0c]['deletions']);_0x733221['forEach'](_0x5b257d=>{_0x5b257d[_0x5bd4('0x63')]?_0x5b257d['id']=_0x177450++:_0x5b257d['id']=_0x2fba80[_0x11475d++];}),this['_processTape'](_0x733221),this[_0x5bd4('0xac')](_0x151083,_0x5bd4('0x43')),this['_setDistance'](_0x733221,_0x5bd4('0x63')),_0xc8dad==_0x3792ae&&this[_0x5bd4('0x1c')](_0x151083,_0x59e058),_0x151083=this[_0x5bd4('0xdc')](_0x151083,_0x733221),this[_0x5bd4('0x10c')](_0x151083),this[_0x5bd4('0xac')](_0x151083,_0x5bd4('0x63'));}_0x151083=_0x151083['filter'](_0x9c07dd=>!(_0x9c07dd[_0x5bd4('0x43')]&&_0x9c07dd[_0x5bd4('0x63')]));const _0x147b48=new Map(_0x154e87[_0x5bd4('0x24')][_0x226d0c]['deletions'][_0x5bd4('0x91')]),_0x2bfab1=new Set(_0x59e058['keys']());for(const _0x4be80d of _0x147b48[_0x5bd4('0x122')]())_0x2bfab1['delete'](_0x4be80d);this['_markSuggestions'](_0x151083,_0x2bfab1),this[_0x5bd4('0xec')](_0x151083),_0x151083=this[_0x5bd4('0x100')](_0x151083),_0x151083=this[_0x5bd4('0x1d')](_0x151083),_0x151083=this[_0x5bd4('0xd8')](_0x151083);const {root:_0x25a146,changes:_0x43ead1}=this['_makeModelFromTape'](_0x151083,_0x5de70f,_0x226d0c);_0x2a26b2[_0x5bd4('0x24')][_0x226d0c]=_0x25a146;const _0x4532e0=_0x7b33d6[_0x5bd4('0x49')](_0x226d0c);if(_0x4532e0){const _0x5812a8=_0x5de70f['get'](_0x4532e0[_0x5bd4('0x120')]),_0x542999=new _0x33f7bf({'author':_0x5812a8,'type':_0x4532e0[_0x5bd4('0xdd')]?_0x5bd4('0x128'):_0x5bd4('0x87'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x226d0c});_0x43ead1[_0x5bd4('0xb2')](_0x542999),_0x2a26b2['attributes'][_0x226d0c]['revisionHistoryAttachChange']=_0x542999['id'];}_0x2a26b2['changes']=_0x2a26b2[_0x5bd4('0x119')]['concat'](_0x43ead1);}return _0x2a26b2;}[_0x5bd4('0x1c')](_0x3ceb03,_0x359a70){for(let _0x3b1ae8=0x0;_0x3b1ae8<_0x3ceb03[_0x5bd4('0xce')];_0x3b1ae8++)for(const [_0x3504c4,_0x32f959]of _0x359a70)_0x32f959[_0x5bd4('0xa0')][_0x5bd4('0xdb')](_0x3ceb03[_0x3b1ae8][_0x5bd4('0xc6')])&&_0x3ceb03[_0x3b1ae8][_0x5bd4('0x125')][_0x5bd4('0x98')](_0x3504c4),_0x32f959[_0x5bd4('0xd0')][_0x5bd4('0xdb')](_0x3ceb03[_0x3b1ae8]['nextPosition'])&&_0x3ceb03[_0x3b1ae8][_0x5bd4('0x103')][_0x5bd4('0x98')](_0x3504c4);}[_0x5bd4('0xdc')](_0x24a51c,_0x4d7051){let _0x554d71=[],_0xa5228c=0x0,_0x546fde=0x0;for(;_0xa5228c<_0x24a51c['length']||_0x546fde<_0x4d7051[_0x5bd4('0xce')];){const _0x4bbcdd=_0x24a51c[_0xa5228c]||{},_0x53b9ba=_0x4d7051[_0x546fde]||{};if(_0x4bbcdd['id']==_0x53b9ba['id'])_0xa5228c++,_0x546fde++,_0x554d71[_0x5bd4('0x98')](_0x4bbcdd);else{if(_0x53b9ba[_0x5bd4('0x63')]&&_0x4bbcdd['isAdded']){const {commonTape:_0x281c40,iEnd:_0x31237d,jEnd:_0x1ec7f5}=this['_threeWayMerge'](_0x24a51c,_0xa5228c,_0x4d7051,_0x546fde);_0x554d71=_0x554d71[_0x5bd4('0x16')](_0x281c40),_0xa5228c=_0x31237d,_0x546fde=_0x1ec7f5;}else _0x53b9ba['isRemoved']?(_0x546fde++,_0x554d71[_0x5bd4('0x98')](_0x53b9ba)):(_0xa5228c++,_0x554d71['push'](_0x4bbcdd));}}return _0x554d71;}[_0x5bd4('0xfa')](_0x4bf04e,_0x5a70af){const _0x41fed7=[];for(let _0x44915a=0x0;_0x44915a<_0x4bf04e['length'];_0x44915a++){for(let _0x40d7fe=0x0;_0x40d7fe<_0x4bf04e[_0x44915a][_0x5bd4('0x125')]['length'];_0x40d7fe++){const _0x55b888=_0x4bf04e[_0x44915a][_0x5bd4('0x125')][_0x40d7fe];if(!_0x5a70af[_0x5bd4('0x11')](_0x55b888))continue;const {group:_0x3f34f9,type:_0x482496,authorId:_0x5b9dc7}=_0x1be51d(_0x55b888);_0x5bd4('0x4f')!=_0x3f34f9||_0x5bd4('0x34')!=_0x482496&&_0x5bd4('0x27')!=_0x482496||(_0x41fed7[_0x5bd4('0xb2')]({'type':_0x482496,'name':_0x55b888,'userId':_0x5b9dc7}),_0x4bf04e[_0x44915a]['markersStart'][_0x5bd4('0xd7')](_0x40d7fe,0x1),_0x40d7fe--);}_0x590cd0(_0x4bf04e[_0x44915a]);for(let _0x242394=0x0;_0x242394<_0x4bf04e[_0x44915a][_0x5bd4('0x103')][_0x5bd4('0xce')];_0x242394++){const _0x6f24c1=_0x4bf04e[_0x44915a][_0x5bd4('0x103')][_0x242394];if(!_0x5a70af['has'](_0x6f24c1))continue;const {group:_0x3271b8,type:_0x405c62}=_0x1be51d(_0x6f24c1);if(_0x5bd4('0x4f')!=_0x3271b8||'insertion'!=_0x405c62&&'deletion'!=_0x405c62)continue;_0x4bf04e[_0x44915a][_0x5bd4('0x103')][_0x5bd4('0xd7')](_0x242394,0x1),_0x242394--;const _0x5aaf17=_0x41fed7[_0x5bd4('0x12a')](_0x2ac96e=>_0x2ac96e['name']==_0x6f24c1);_0x5aaf17>-0x1&&_0x41fed7[_0x5bd4('0xd7')](_0x5aaf17,0x1);}}function _0x1be51d(_0x550971){const _0x372d0f=_0x550971['split'](':');return{'group':_0x372d0f[0x0],'type':_0x372d0f[0x1],'subType':_0x372d0f[_0x5bd4('0xce')]>=0x5?_0x372d0f[0x2]:null,'id':_0x372d0f['length']<0x5?_0x372d0f[0x2]:_0x372d0f[0x3],'authorId':_0x372d0f[_0x5bd4('0xce')]<0x5?_0x372d0f[0x3]:_0x372d0f[0x4],'markerCount':0x6==_0x372d0f['length']?_0x372d0f[0x5]:null};}function _0x590cd0(_0x3a587f){for(let _0x1cb1c3=0x0;_0x1cb1c3<_0x41fed7[_0x5bd4('0xce')];_0x1cb1c3++){if(_0x3a587f[_0x5bd4('0x43')]&&_0x5bd4('0x34')==_0x41fed7[_0x1cb1c3]['type'])return _0x3a587f[_0x5bd4('0x96')]=_0x41fed7[_0x1cb1c3],void delete _0x3a587f[_0x5bd4('0x43')];if(!_0x3a587f[_0x5bd4('0x43')]&&!_0x3a587f[_0x5bd4('0x63')]&&_0x5bd4('0x27')==_0x41fed7[_0x1cb1c3][_0x5bd4('0x83')])return void(_0x3a587f[_0x5bd4('0xd6')]=_0x41fed7[_0x1cb1c3]);}}}[_0x5bd4('0xac')](_0x15d236,_0x4e8c6b){let _0x4cdd95=0x0,_0x39d95d=!0x1;const _0x78d29c=new Map();for(const _0x50857e of _0x15d236)_0x50857e[_0x4e8c6b]?_0x39d95d&&(_0x4cdd95++,_0x39d95d=!0x1):(_0x4cdd95++,_0x39d95d=!0x0),_0x78d29c[_0x5bd4('0x82')](_0x50857e['id'],_0x4cdd95);for(let _0x2efac5=0x0;_0x2efac5<_0x15d236[_0x5bd4('0xce')];_0x2efac5++){if('isRemoved'==_0x4e8c6b&&_0x15d236[_0x2efac5]['isAdded']||'isAdded'==_0x4e8c6b&&_0x15d236[_0x2efac5][_0x5bd4('0x63')])continue;if(_0x5bd4('0x127')==_0x15d236[_0x2efac5][_0x5bd4('0x83')]){_0x15d236[_0x2efac5][_0x5bd4('0xbe')]=0x0;continue;}const _0x26e9db=_0x78d29c[_0x5bd4('0x49')](_0x15d236[_0x2efac5][_0x5bd4('0x56')]),_0x296df1=_0x78d29c[_0x5bd4('0x49')](_0x15d236[_0x2efac5]['id']);_0x15d236[_0x2efac5][_0x5bd4('0xbe')]=_0x26e9db-_0x296df1;}}[_0x5bd4('0xe7')](_0x1df8d9,_0x40af28,_0x45623e=!0x1){const _0x2a049e=[];let _0x477270=this[_0x5bd4('0xad')]['getIndex'](_0x1df8d9),_0x115fe3=this['repository']['getIndex'](_0x40af28);for(-0x1==_0x115fe3&&(_0x115fe3=this['repository']['_revisions'][_0x5bd4('0xce')],_0x45623e=!0x1);_0x477270<_0x115fe3;)_0x2a049e[_0x5bd4('0x98')](this[_0x5bd4('0xad')][_0x5bd4('0x62')](_0x477270)),_0x477270++;return _0x45623e&&_0x2a049e[_0x5bd4('0x98')](this[_0x5bd4('0xad')]['getRevision'](_0x477270)),_0x2a049e;}[_0x5bd4('0x53')](_0x17a20c,_0x11848f,_0x5674b5,_0x5914e9){const _0x226a4c=this['editor'][_0x5bd4('0x24')]['schema'];let _0x3a5788=_0x11848f;for(;_0x17a20c[_0x3a5788]&&_0x17a20c[_0x3a5788][_0x5bd4('0x43')];)_0x3a5788++;let _0x3d1c9a=_0x5914e9;for(;_0x5674b5[_0x3d1c9a]&&_0x5674b5[_0x3d1c9a][_0x5bd4('0x63')];)_0x3d1c9a++;_0x5a9ff3(_0x17a20c,_0x11848f,_0x3a5788),_0x5a9ff3(_0x5674b5,_0x5914e9,_0x3d1c9a);const _0x28e652=_0x5674b5['slice'](_0x5914e9,_0x3d1c9a)[_0x5bd4('0x16')](_0x17a20c['slice'](_0x11848f,_0x3a5788));return _0x28e652[_0x5bd4('0x86')]((_0x138123,_0x144713)=>_0x138123[_0x5bd4('0x71')]!=_0x144713['side']?_0x138123[_0x5bd4('0x71')]-_0x144713[_0x5bd4('0x71')]:_0x138123['level']!=_0x144713[_0x5bd4('0x66')]?_0x138123[_0x5bd4('0x66')]-_0x144713['level']:_0x138123[_0x5bd4('0xbe')]!=_0x144713['distance']?_0x144713[_0x5bd4('0xbe')]-_0x138123['distance']:!!_0x138123['isAdded']!=!!_0x144713['isAdded']?-0x1==_0x138123['side']||0x0==_0x138123[_0x5bd4('0x71')]?_0x138123['isAdded']?-0x1:0x1:_0x138123[_0x5bd4('0x43')]?0x1:-0x1:_0x138123['index']-_0x144713[_0x5bd4('0x3b')]),{'commonTape':_0x28e652,'iEnd':_0x3a5788,'jEnd':_0x3d1c9a};function _0x5a9ff3(_0x593594,_0x41f6c1,_0x3d7a5f){let _0x1a72d3=-0x1,_0x385f59=Number[_0x5bd4('0x20')],_0xd554b=!0x0;for(let _0x230912=_0x41f6c1;_0x230912<_0x3d7a5f;_0x230912++)if(_0x226a4c[_0x5bd4('0xb8')](_0x593594[_0x230912][_0x5bd4('0x108')])||(_0xd554b=!0x1),_0x593594[_0x230912][_0x5bd4('0x108')]['startIndex']<_0x41f6c1&&(_0x1a72d3=_0x230912),_0x593594[_0x230912][_0x5bd4('0x108')][_0x5bd4('0x32')]>=_0x3d7a5f){_0x385f59=_0x230912;break;}_0xd554b&&(_0x1a72d3=_0x3d7a5f-0x1);for(let _0x1b46b4=_0x41f6c1;_0x1b46b4<_0x3d7a5f;_0x1b46b4++)_0x593594[_0x1b46b4][_0x5bd4('0x71')]=_0x1b46b4<=_0x1a72d3?-0x1:_0x1b46b4<_0x385f59?0x0:0x1,_0x593594[_0x1b46b4][_0x5bd4('0x3b')]=_0x1b46b4;let _0x10a3fe=0x0;for(let _0x4cc043=_0x41f6c1;_0x4cc043<=_0x1a72d3;_0x4cc043++)0x0==_0x593594[_0x4cc043]['distance']?_0x593594[_0x4cc043][_0x5bd4('0x66')]=_0x10a3fe:(_0x10a3fe++,_0x593594[_0x4cc043][_0x5bd4('0x66')]=_0x10a3fe,_0x10a3fe++);for(let _0x2337b9=_0x41f6c1;_0x2337b9<_0x3d7a5f;_0x2337b9++)0x0==_0x593594[_0x2337b9]['side']&&(_0x593594[_0x2337b9][_0x5bd4('0x66')]=_0x10a3fe);_0x10a3fe=0x0;for(let _0x208854=_0x3d7a5f-0x1;_0x208854>=_0x385f59;_0x208854--)0x0==_0x593594[_0x208854][_0x5bd4('0xbe')]?_0x593594[_0x208854][_0x5bd4('0x66')]=_0x10a3fe:(_0x10a3fe--,_0x593594[_0x208854][_0x5bd4('0x66')]=_0x10a3fe,_0x10a3fe--);}}[_0x5bd4('0xec')](_0x30f237){const _0x2f2864=new Map(),_0x4ef6cf=this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0x102')];for(let _0x7f2d57=0x1;_0x7f2d57<_0x30f237[_0x5bd4('0xce')];_0x7f2d57++){let _0x2ca706,_0x156c96,_0x11e129;const _0x1728c4=_0x30f237[_0x7f2d57],_0x2ce784=_0x30f237[_0x7f2d57-0x1];if(_0x5bd4('0x127')==_0x1728c4['type'])continue;if(_0x1728c4[_0x5bd4('0x83')]!=_0x2ce784['type'])continue;if(!_0x4ef6cf[_0x5bd4('0xda')](_0x2ce784[_0x5bd4('0x108')])||_0x4ef6cf[_0x5bd4('0x8f')](_0x2ce784[_0x5bd4('0x108')]))continue;if(!_0x4ef6cf[_0x5bd4('0xda')](_0x1728c4['item'])||_0x4ef6cf['isLimit'](_0x1728c4[_0x5bd4('0x108')]))continue;if((_0x30f237[_0x7f2d57][_0x5bd4('0x43')]||_0x30f237[_0x7f2d57][_0x5bd4('0x96')])&&_0x30f237[_0x7f2d57-0x1]['isRemoved'])_0x2ca706=_0x30f237[_0x7f2d57],_0x156c96=_0x30f237[_0x7f2d57-0x1],_0x11e129=_0x7f2d57-0x1;else{if(!_0x30f237[_0x7f2d57]['isRemoved']||!_0x30f237[_0x7f2d57-0x1][_0x5bd4('0x43')]&&!_0x30f237[_0x7f2d57-0x1][_0x5bd4('0x96')])continue;_0x2ca706=_0x30f237[_0x7f2d57-0x1],_0x156c96=_0x30f237[_0x7f2d57],_0x11e129=_0x7f2d57;}const _0x9e5d48=_0x2ca706[_0x5bd4('0x66')]==_0x156c96[_0x5bd4('0x66')],_0x439644=Math[_0x5bd4('0xf4')](_0x2ca706[_0x5bd4('0x66')])<Math[_0x5bd4('0xf4')](_0x156c96[_0x5bd4('0x66')])&&0x0==_0x156c96[_0x5bd4('0xbe')];(_0x9e5d48||_0x439644)&&(_0x2f2864[_0x5bd4('0x82')](_0x156c96['id'],_0x2ca706['id']),_0x30f237[_0x5bd4('0xd7')](_0x11e129,0x1),_0x7f2d57--,_0x2ca706['isAdded']=!0x1);}for(let _0x145358=0x0;_0x145358<_0x30f237[_0x5bd4('0xce')];_0x145358++)_0x2f2864[_0x5bd4('0x11')](_0x30f237[_0x145358][_0x5bd4('0x56')])&&(_0x30f237[_0x145358]['pairId']=_0x2f2864[_0x5bd4('0x49')](_0x30f237[_0x145358][_0x5bd4('0x56')]));}[_0x5bd4('0x100')](_0x175fae){const _0x19851c=new Set(_0x175fae['map'](_0x4ffa59=>_0x4ffa59['id']));for(let _0x1f212e=0x0;_0x1f212e<_0x175fae['length'];_0x1f212e++)_0x19851c[_0x5bd4('0x11')](_0x175fae[_0x1f212e][_0x5bd4('0x56')])||0x0==_0x175fae[_0x1f212e]['distance']||(_0x175fae[_0x1f212e][_0x5bd4('0xe9')]=!0x0);return _0x175fae[_0x5bd4('0x88')](_0x4a13d1=>!_0x4a13d1[_0x5bd4('0xe9')]);}[_0x5bd4('0x1d')](_0x25c421){const _0x244b18=new Set();for(let _0x471a0a=0x0;_0x471a0a<_0x25c421[_0x5bd4('0xce')];_0x471a0a++){if(_0x244b18[_0x5bd4('0x11')](_0x25c421[_0x471a0a]['id'])&&_0x25c421[_0x471a0a][_0x5bd4('0x63')]&&(_0x25c421[_0x471a0a]['isIncorrect']=!0x0),_0x25c421[_0x471a0a][_0x5bd4('0xe9')])continue;if(0x0==_0x25c421[_0x471a0a][_0x5bd4('0xbe')])continue;if(_0x5bd4('0x73')!=_0x25c421[_0x471a0a][_0x5bd4('0x83')])continue;if(null==_0x25c421[_0x471a0a]['pairId'])continue;let _0x14881c=_0x471a0a+0x1,_0x27cf4b=0x0;for(;_0x25c421[_0x14881c]['id']!=_0x25c421[_0x471a0a][_0x5bd4('0x56')];)_0x5bd4('0x73')==_0x25c421[_0x14881c][_0x5bd4('0x83')]?_0x27cf4b++:_0x5bd4('0x80')==_0x25c421[_0x14881c]['type']&&_0x27cf4b--,_0x14881c++;if(0x0!=_0x27cf4b){if(_0x25c421[_0x471a0a][_0x5bd4('0x63')])_0x25c421[_0x471a0a][_0x5bd4('0xe9')]=!0x0;else for(;_0x14881c!=_0x471a0a;)_0x25c421[_0x14881c][_0x5bd4('0x63')]&&0x0!=_0x25c421[_0x14881c][_0x5bd4('0xbe')]&&(_0x25c421[_0x14881c][_0x5bd4('0xe9')]=!0x0,_0x244b18[_0x5bd4('0x128')](_0x25c421[_0x14881c]['pairId'])),_0x14881c--;}}return _0x25c421[_0x5bd4('0x88')](_0x30493f=>!_0x30493f[_0x5bd4('0xe9')]);}[_0x5bd4('0xd8')](_0x7aa192){const _0xcef480=this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0x102')];for(let _0x1313ff=0x0;_0x1313ff<_0x7aa192[_0x5bd4('0xce')];_0x1313ff++){if(!(_0x7aa192[_0x1313ff]['isAdded']||_0x7aa192[_0x1313ff][_0x5bd4('0x96')]||_0x7aa192[_0x1313ff]['isRemoved']||_0x7aa192[_0x1313ff][_0x5bd4('0xd6')]))continue;if(0x0==_0x7aa192[_0x1313ff]['distance'])continue;const _0x4c664a=_0x7aa192[_0x1313ff]['item'];_0xcef480[_0x5bd4('0xda')](_0x4c664a)||_0xcef480[_0x5bd4('0x8f')](_0x4c664a)||(_0x7aa192[_0x1313ff][_0x5bd4('0x43')]&&delete _0x7aa192[_0x1313ff]['isAdded'],_0x7aa192[_0x1313ff]['isAddSuggestion']&&delete _0x7aa192[_0x1313ff]['isAddSuggestion'],_0x7aa192[_0x1313ff][_0x5bd4('0xd6')]&&delete _0x7aa192[_0x1313ff][_0x5bd4('0xd6')],_0x7aa192[_0x1313ff][_0x5bd4('0x63')]&&(_0x7aa192[_0x1313ff][_0x5bd4('0xe9')]=!0x0));}return _0x7aa192[_0x5bd4('0x88')](_0x37c455=>!_0x37c455[_0x5bd4('0xe9')]);}[_0x5bd4('0xf1')](_0x3469e6,_0x198032,_0x4d01c9){const _0x208115=new _0x2d0625(),_0x4e1090=[],_0x5143fe=new Map(),_0x39dcc5=this[_0x5bd4('0x3e')][_0x5bd4('0x24')],_0x553c5d=_0x39dcc5[_0x5bd4('0x102')],_0x39d326=[_0x208115],_0x5e121b={},_0x1213e4={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x369cfc=null;const _0x269a71=[0x0];for(let _0x169ca1=0x0;_0x169ca1<_0x3469e6[_0x5bd4('0xce')];_0x169ca1++){let _0x239211,_0x4b0bea;if(_0x5bd4('0x73')===_0x3469e6[_0x169ca1]['type']){_0x239211=_0x39dcc5[_0x5bd4('0x39')](_0x208115,_0x269a71);const _0x12d058=new _0x30ac3d(_0x3469e6[_0x169ca1][_0x5bd4('0x108')][_0x5bd4('0x12')],_0x3469e6[_0x169ca1][_0x5bd4('0x108')][_0x5bd4('0xa')]());_0x39d326[0x0]['_appendChild'](_0x12d058),_0x269a71[_0x5bd4('0x98')](0x0),_0x39d326['unshift'](_0x12d058),_0x4b0bea=_0x39dcc5[_0x5bd4('0x39')](_0x208115,_0x269a71),_0x369cfc=null;}else{if(_0x5bd4('0x80')===_0x3469e6[_0x169ca1][_0x5bd4('0x83')])_0x39d326[_0x5bd4('0x1a')](),_0x239211=_0x39dcc5[_0x5bd4('0x39')](_0x208115,_0x269a71),_0x269a71[_0x5bd4('0xf')](),_0x269a71[_0x269a71[_0x5bd4('0xce')]-0x1]++,_0x4b0bea=_0x39dcc5[_0x5bd4('0x39')](_0x208115,_0x269a71),_0x369cfc=null;else{if(_0x239211=_0x39dcc5[_0x5bd4('0x39')](_0x208115,_0x269a71),_0x369cfc&&_0x5dc079(_0x369cfc,_0x3469e6[_0x169ca1][_0x5bd4('0x108')]))_0x369cfc[_0x5bd4('0x7a')]+=_0x3469e6[_0x169ca1]['item'][_0x5bd4('0xa1')];else{const _0x5a026e=new _0x51642b(_0x3469e6[_0x169ca1]['item'][_0x5bd4('0xa1')],_0x3469e6[_0x169ca1][_0x5bd4('0x108')][_0x5bd4('0xa')]());_0x39d326[0x0][_0x5bd4('0x72')](_0x5a026e),_0x369cfc=_0x5a026e;}_0x269a71[_0x269a71[_0x5bd4('0xce')]-0x1]+=_0x3469e6[_0x169ca1]['item'][_0x5bd4('0x6a')],_0x4b0bea=_0x39dcc5['createPositionFromPath'](_0x208115,_0x269a71);}}for(const _0x1f2a6d of _0x3469e6[_0x169ca1][_0x5bd4('0x125')])_0x5143fe[_0x5bd4('0x82')](_0x1f2a6d,{'start':_0x239211,'end':null});_0x461fd3('isRemoveSuggestion',_0x169ca1,_0x239211,_0x4b0bea),_0x461fd3(_0x5bd4('0x96'),_0x169ca1,_0x239211,_0x4b0bea),_0x461fd3('isRemoved',_0x169ca1,_0x239211,_0x4b0bea),_0x461fd3(_0x5bd4('0x43'),_0x169ca1,_0x239211,_0x4b0bea);for(const _0xab1c81 of _0x3469e6[_0x169ca1][_0x5bd4('0x103')]){_0x5143fe['get'](_0xab1c81)[_0x5bd4('0xd0')]=_0x4b0bea;}}for(const [_0x104ae1,_0x3e7d95]of _0x5143fe){const _0x16e215=this[_0x5bd4('0x3e')]['model']['createRange'](_0x3e7d95['start'],_0x3e7d95['end']);_0x208115[_0x5bd4('0x91')][_0x5bd4('0x82')](_0x104ae1,_0x16e215);}return _0x4e1090[_0x5bd4('0x86')]((_0xaee37b,_0x331c2d)=>{const _0x4afdc4=_0x208115[_0x5bd4('0x91')][_0x5bd4('0x49')](_0x5bd4('0x17')+_0xaee37b['id']),_0x395f71=_0x208115[_0x5bd4('0x91')][_0x5bd4('0x49')](_0x5bd4('0x17')+_0x331c2d['id']);return _0x4afdc4['start'][_0x5bd4('0xb5')](_0x395f71[_0x5bd4('0xa0')])?-0x1:_0x4afdc4[_0x5bd4('0xa0')][_0x5bd4('0x78')](_0x395f71[_0x5bd4('0xa0')])?0x1:_0x4afdc4[_0x5bd4('0xd0')]['isBefore'](_0x395f71[_0x5bd4('0xd0')])?-0x1:_0x4afdc4[_0x5bd4('0xd0')][_0x5bd4('0x78')](_0x395f71['end'])?0x1:'add'===_0xaee37b[_0x5bd4('0x83')]?-0x1:0x1;}),{'root':_0x208115,'changes':_0x4e1090};function _0x461fd3(_0x4a6f7b,_0x40bab8,_0x46f856,_0x22a64e){const _0x50a5f1=!!_0x3469e6[_0x40bab8][_0x4a6f7b],_0x264732=_0x50a5f1?_0x3469e6[_0x40bab8][_0x4a6f7b][_0x5bd4('0x120')]:null,_0xdb950a=_0x40bab8===_0x3469e6[_0x5bd4('0xce')]-0x1,_0xc81ce=_0x1213e4[_0x4a6f7b][0x0],_0x258805=_0x553c5d[_0x5bd4('0x47')](_0x3469e6[_0x40bab8]['item']);!_0x5e121b[_0x4a6f7b]&&_0x50a5f1?_0x5e121b[_0x4a6f7b]={'start':_0x46f856,'tapeItem':_0x3469e6[_0x40bab8],'userId':_0x264732,'type':_0x4a6f7b}:_0x5e121b[_0x4a6f7b]&&!_0x50a5f1?(_0x5e121b[_0x4a6f7b][_0x5bd4('0xd0')]=_0x46f856,_0x12e945(_0x5e121b[_0x4a6f7b]),_0x5e121b[_0x4a6f7b]=null):_0x5e121b[_0x4a6f7b]&&_0x50a5f1&&_0x5e121b[_0x4a6f7b][_0x5bd4('0x120')]!==_0x264732&&(_0x5e121b[_0x4a6f7b][_0x5bd4('0xd0')]=_0x46f856,_0xc81ce&&_0xc81ce[_0x5bd4('0x120')]===_0x5e121b[_0x4a6f7b][_0x5bd4('0x120')]||_0x12e945(_0x5e121b[_0x4a6f7b]),_0x5e121b[_0x4a6f7b]={'start':_0x46f856,'tapeItem':_0x3469e6[_0x40bab8],'userId':_0x264732,'type':_0x4a6f7b}),_0x5e121b[_0x4a6f7b]&&_0x258805&&('elementStart'!==_0x3469e6[_0x40bab8]['type']||_0xc81ce&&_0xc81ce[_0x5bd4('0x120')]===_0x264732||_0x1213e4[_0x4a6f7b][_0x5bd4('0xb2')]({'userId':_0x264732,'object':_0x3469e6[_0x40bab8][_0x5bd4('0x108')],'change':_0x5e121b[_0x4a6f7b]}),'elementEnd'===_0x3469e6[_0x40bab8]['type']&&_0xc81ce&&_0xc81ce['object']===_0x3469e6[_0x40bab8][_0x5bd4('0x108')]&&(_0x1213e4[_0x4a6f7b][_0x5bd4('0x1a')](),_0x5e121b[_0x4a6f7b]=_0xc81ce[_0x5bd4('0x44')])),_0x5e121b[_0x4a6f7b]&&_0xdb950a&&(_0x5e121b[_0x4a6f7b][_0x5bd4('0xd0')]=_0x22a64e,_0x12e945(_0x5e121b[_0x4a6f7b]),_0x5e121b[_0x4a6f7b]=null);}function _0x12e945({start:_0x6ff1d6,end:_0x4d9eab,tapeItem:_0x52d901,userId:_0x344a50,type:_0x5c4542}){const _0x4077b5=_0x52d901[_0x5bd4('0x108')],_0x755997=_0x39dcc5[_0x5bd4('0x102')][_0x5bd4('0xda')](_0x4077b5)&&!_0x39dcc5[_0x5bd4('0x102')][_0x5bd4('0x8f')](_0x4077b5),_0x935769=_0x6ff1d6[_0x5bd4('0x54')]==_0x4d9eab[_0x5bd4('0x3d')]&&_0x4d9eab[_0x5bd4('0xc')];if(_0x755997&&_0x935769)return;const _0x480d0d=_0x39dcc5[_0x5bd4('0x89')](_0x6ff1d6,_0x4d9eab),_0x2d6a77=_0x198032[_0x5bd4('0x49')](_0x344a50),_0x2a3d68=new _0x33f7bf({'author':_0x2d6a77,'type':'isAdded'==_0x5c4542||_0x5bd4('0x96')==_0x5c4542?_0x5bd4('0x128'):_0x5bd4('0x87'),'data':{'isSuggestion':_0x5bd4('0x96')==_0x5c4542||_0x5bd4('0xd6')==_0x5c4542},'createdAt':new Date(),'rootName':_0x4d01c9});_0x4e1090[_0x5bd4('0x98')](_0x2a3d68),_0x208115['markers'][_0x5bd4('0x82')](_0x5bd4('0x17')+_0x2a3d68['id'],_0x480d0d);}function _0x5dc079(_0x563cf3,_0x503466){const _0x5ab6e1=_0x563cf3[_0x5bd4('0xa')](),_0x3080ad=_0x503466['getAttributes']();for(const _0x980835 of _0x5ab6e1){if(_0x980835[0x1]!==_0x503466[_0x5bd4('0x59')](_0x980835[0x0]))return!0x1;_0x3080ad['next']();}return _0x3080ad['next']()[_0x5bd4('0xfc')];}}[_0x5bd4('0xbc')](){this['editor'][_0x5bd4('0x97')][_0x5bd4('0x6d')](_0x5bd4('0x5d'))[_0x5bd4('0x2a')]({'view':'revision'}),this[_0x5bd4('0x3e')][_0x5bd4('0x97')][_0x5bd4('0x6d')](_0x5bd4('0x81'))[_0x5bd4('0x11f')]({'model':_0x5bd4('0x129'),'view':_0x59331a=>{const _0x28b50b=_0x59331a[_0x5bd4('0xca')][_0x5bd4('0x28')](':')[0x1],_0x5c4364=this[_0x5bd4('0x4a')](_0x28b50b);if(!_0x5c4364)return null;const _0x3d8793=_0x5bd4('0x128')==_0x5c4364[_0x5bd4('0x83')]?_0x5bd4('0x34'):_0x5bd4('0x27'),_0x1c6b2e=[_0x5bd4('0xd4'),'ck-suggestion-marker-'+_0x3d8793];return _0x5c4364[_0x5bd4('0xa1')]['isSuggestion']&&_0x1c6b2e[_0x5bd4('0x98')](_0x5bd4('0x116')+_0x3d8793+'-new'),this[_0x5bd4('0x10d')]==_0x5c4364&&_0x1c6b2e[_0x5bd4('0x98')]('ck-suggestion-marker--active'),{'classes':_0x1c6b2e,'attributes':{'data-change-id':_0x28b50b}};}}),this['editor'][_0x5bd4('0x97')][_0x5bd4('0x6d')]('upcast')[_0x5bd4('0x128')](_0x33e79a=>{_0x33e79a['on']('element:pre',(_0x2379e4,_0x58ba8f,_0x22ae89)=>{const _0xe18870=_0x58ba8f['viewItem']['getChild'](0x0);if(!_0xe18870||!_0xe18870['is'](_0x5bd4('0x50'),_0x5bd4('0xde')))return;if(!_0x22ae89[_0x5bd4('0xd')][_0x5bd4('0xe1')](_0xe18870,{'attributes':[_0x5bd4('0x7e'),_0x5bd4('0x8b')]}))return;const _0x6f0c19=_0x58ba8f[_0x5bd4('0x1b')][_0x5bd4('0xa0')][_0x5bd4('0x54')];_0x22ae89[_0x5bd4('0xa8')][_0x5bd4('0xb7')](_0x5bd4('0x7e'),_0xe18870[_0x5bd4('0x59')](_0x5bd4('0x7e')),_0x6f0c19),_0x22ae89[_0x5bd4('0xa8')][_0x5bd4('0xb7')]('vid_end',_0xe18870[_0x5bd4('0x59')]('vid_end'),_0x6f0c19);},{'priority':_0x5bd4('0x118')});}),this['editor']['conversion'][_0x5bd4('0x6d')](_0x5bd4('0x5d'))[_0x5bd4('0x128')](_0x4458e0=>{_0x4458e0['on'](_0x5bd4('0x50'),(_0x4924fd,_0x45197f,_0x3819af)=>{if(!_0x3819af[_0x5bd4('0xd')][_0x5bd4('0xe1')](_0x45197f['viewItem'],{'attributes':[_0x5bd4('0x7e'),'vid_end']}))return;if(_0x45197f['modelRange']['isCollapsed'])return;const _0x50c99e=_0x45197f[_0x5bd4('0x1b')][_0x5bd4('0xa0')][_0x5bd4('0x54')];_0x50c99e[_0x5bd4('0x46')]('vid_start')||_0x50c99e[_0x5bd4('0x46')]('vid')||(_0x3819af[_0x5bd4('0xa8')][_0x5bd4('0xb7')](_0x5bd4('0x7e'),_0x45197f[_0x5bd4('0xef')][_0x5bd4('0x59')](_0x5bd4('0x7e')),_0x50c99e),_0x3819af[_0x5bd4('0xa8')]['setAttribute'](_0x5bd4('0x8b'),_0x45197f['viewItem'][_0x5bd4('0x59')](_0x5bd4('0x8b')),_0x50c99e));},{'priority':_0x5bd4('0x118')});}),this[_0x5bd4('0x3e')][_0x5bd4('0x97')][_0x5bd4('0x6d')]('upcast')[_0x5bd4('0x106')]({'view':{'name':_0x5bd4('0xe'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4e533b=>_0x4e533b['getAttribute'](_0x5bd4('0xc9'))}}),this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0x102')]['on'](_0x5bd4('0x94'),(_0x5a2dc9,[,_0x271d55])=>{[_0x5bd4('0x7e'),_0x5bd4('0x8b'),_0x5bd4('0xc9')][_0x5bd4('0xa6')](_0x271d55)&&(_0x5a2dc9[_0x5bd4('0x11a')]=!0x0,_0x5a2dc9[_0x5bd4('0x37')]());},{'priority':_0x5bd4('0x123')}),this[_0x5bd4('0x3e')][_0x5bd4('0x97')][_0x5bd4('0x6d')](_0x5bd4('0x2f'))[_0x5bd4('0x128')](_0x1ab17f=>{_0x1ab17f['on'](_0x5bd4('0x117'),(_0x2d6c2b,_0x143e26,_0x51fa6d)=>{if('\x20'!=_0x143e26['item'][_0x5bd4('0xa1')]||_0x143e26[_0x5bd4('0x108')][_0x5bd4('0x3d')][_0x5bd4('0x11d')]>0x1)return;if(!_0x51fa6d[_0x5bd4('0xd')][_0x5bd4('0xe1')](_0x143e26['item'],_0x2d6c2b[_0x5bd4('0x12')]))return;const _0x18b92c=_0x51fa6d[_0x5bd4('0xa8')],_0x4f06fd=_0x51fa6d[_0x5bd4('0xdf')][_0x5bd4('0x5c')](_0x143e26[_0x5bd4('0x3')]);_0x18b92c[_0x5bd4('0x8a')](_0x4f06fd,_0x18b92c[_0x5bd4('0x1e')](_0x5bd4('0xe')));});}),this['editor'][_0x5bd4('0x97')][_0x5bd4('0x6d')](_0x5bd4('0x2f'))[_0x5bd4('0x5b')]({'model':'revision'}),this[_0x5bd4('0x3e')][_0x5bd4('0xbf')][_0x5bd4('0x77')]['on'](_0x5bd4('0x6f'),function(_0x111319){const _0x332631=_0x111319[_0x5bd4('0xf3')][_0x5bd4('0x49')](_0x5bd4('0x104'));return(_0x53f9b0,_0x2f9a4a,_0x397d47)=>{const _0x4b4091=_0x2f9a4a['markerName'][_0x5bd4('0x28')](':')[0x1],_0x46e11b=_0x332631[_0x5bd4('0x4a')](_0x4b4091);if(!_0x46e11b)return null;const _0x54945c=_0x5bd4('0x128')==_0x46e11b[_0x5bd4('0x83')]?'split':_0x5bd4('0xe2');if(!_0x397d47[_0x5bd4('0xd')][_0x5bd4('0x126')](_0x2f9a4a[_0x5bd4('0x2')],_0x53f9b0['name']))return;const _0x2980d1=_0x2f9a4a[_0x5bd4('0x2')][_0x5bd4('0xf5')](),_0x105b02=_0x2f9a4a[_0x5bd4('0x2')][_0x5bd4('0xa0')],_0x337c78=_0x111319[_0x5bd4('0x24')][_0x5bd4('0x102')];let _0x430d15=null,_0x3b45c2=null,_0x1b23e1=!0x1,_0x4ed680=!0x1;for(const _0x5bacae of _0x2980d1){const _0x14b70b=_0x5bacae[_0x5bd4('0x108')];_0x1b23e1=_0x1b23e1||_0x337c78[_0x5bd4('0x114')](_0x14b70b);const _0x30c816=_0x397d47[_0x5bd4('0xdf')][_0x5bd4('0x3a')](_0x14b70b);if(_0x30c816&&_0x30c816[_0x5bd4('0x5f')](_0x5bd4('0x29')))return;'elementEnd'==_0x5bacae['type']&&(_0x337c78[_0x5bd4('0xda')](_0x14b70b)&&!_0x337c78['isLimit'](_0x14b70b)&&(_0x14b70b[_0x5bd4('0xd3')]||_0x105b02[_0x5bd4('0x1f')]?_0x430d15&&_0x430d15['parent']==_0x14b70b||(_0x430d15=_0x14b70b,_0x55f995(_0x5bacae[_0x5bd4('0xc6')]),_0x4ed680=!0x0):_0x3b45c2=_0x3b45c2||_0x5bacae[_0x5bd4('0xc6')]));}function _0x55f995(_0x3ffbd1){const _0x49293d=_0x397d47['writer'][_0x5bd4('0xf0')](_0x5bd4('0xe'),{'class':_0x5bd4('0x116')+_0x54945c}),_0x8640e0=_0x397d47['mapper'][_0x5bd4('0x15')](_0x3ffbd1);_0x46e11b['data'][_0x5bd4('0x11e')]&&_0x397d47['writer'][_0x5bd4('0x85')]('ck-suggestion-marker-'+_0x54945c+_0x5bd4('0x2c'),_0x49293d),_0x332631[_0x5bd4('0x10d')]==_0x46e11b&&_0x397d47[_0x5bd4('0xa8')][_0x5bd4('0x85')](_0x5bd4('0x111'),_0x49293d),_0x397d47[_0x5bd4('0xa8')][_0x5bd4('0x121')](_0x8640e0,_0x49293d),_0x397d47[_0x5bd4('0xdf')][_0x5bd4('0xfb')](_0x49293d,_0x2f9a4a[_0x5bd4('0xca')]);}_0x1b23e1||_0x4ed680||!_0x3b45c2||_0x55f995(_0x3b45c2);};}(this['editor']),{'priority':_0x5bd4('0xa5')}),this[_0x5bd4('0x3e')][_0x5bd4('0xbf')]['downcastDispatcher']['on'](_0x5bd4('0xcd'),(_0x3b35cf,_0x42e78d,_0xec81d4)=>{const _0x3bf531=_0xec81d4['mapper'][_0x5bd4('0xb9')](_0x42e78d[_0x5bd4('0xca')]);if(_0x3bf531)for(const _0x453dff of _0x3bf531)(_0x453dff[_0x5bd4('0xf7')](_0x5bd4('0x92'))||_0x453dff[_0x5bd4('0xf7')](_0x5bd4('0x5')))&&(_0xec81d4[_0x5bd4('0xdf')][_0x5bd4('0x35')](_0x453dff,_0x42e78d[_0x5bd4('0xca')]),_0xec81d4['writer'][_0x5bd4('0x87')](_0x453dff));},{'priority':_0x5bd4('0xa5')}),this[_0x5bd4('0x3e')][_0x5bd4('0xbf')]['downcastDispatcher']['on']('addMarker:revision',(_0x40426f,_0x244873,_0x403b5c)=>{const _0x18dc51=_0x244873[_0x5bd4('0xca')][_0x5bd4('0x28')](':')[0x1],_0x217fe0=this['_getChangeFromId'](_0x18dc51);if(!_0x217fe0)return null;const _0x374177=_0x5bd4('0x128')==_0x217fe0[_0x5bd4('0x83')]?'split':_0x5bd4('0xe2');if(_0x403b5c['consumable'][_0x5bd4('0x126')](_0x244873[_0x5bd4('0x2')],_0x40426f[_0x5bd4('0x12')]))for(const _0x2b36d4 of _0x244873[_0x5bd4('0x2')][_0x5bd4('0x124')]()){if(!_0x2b36d4['is'](_0x5bd4('0x50'),_0x5bd4('0xb0')))continue;const _0x13fdc3=_0x403b5c[_0x5bd4('0xa8')]['createUIElement'](_0x5bd4('0xe'),{'class':_0x5bd4('0x116')+_0x374177}),_0xdf4b0=_0x403b5c['mapper'][_0x5bd4('0x15')](this['editor']['model'][_0x5bd4('0x3f')](_0x2b36d4));_0x217fe0[_0x5bd4('0xa1')]['isSuggestion']&&_0x403b5c['writer'][_0x5bd4('0x85')](_0x5bd4('0x116')+_0x374177+_0x5bd4('0x2c'),_0x13fdc3),this['activeChange']==_0x217fe0&&_0x403b5c['writer'][_0x5bd4('0x85')](_0x5bd4('0x111'),_0x13fdc3),_0x403b5c[_0x5bd4('0xa8')][_0x5bd4('0x121')](_0xdf4b0,_0x13fdc3),_0x403b5c[_0x5bd4('0xdf')]['bindElementToMarker'](_0x13fdc3,_0x244873[_0x5bd4('0xca')]);}},{'priority':_0x5bd4('0xa5')}),this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0xf2')]['on'](_0x5bd4('0x44'),()=>{this['editor'][_0x5bd4('0xbf')][_0x5bd4('0xa2')][_0x5bd4('0x44')](_0x3a71e8=>{for(const _0x13a031 of this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0xf2')]['getRootNames']()){const _0x685d98=this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0xf2')][_0x5bd4('0xfd')](_0x13a031),_0x498b30=this['editor'][_0x5bd4('0xbf')][_0x5bd4('0xa2')][_0x5bd4('0xf2')][_0x5bd4('0xfd')](_0x13a031);if(_0x498b30){const _0x53de4c=_0x685d98[_0x5bd4('0x59')](_0x5bd4('0x4e'));if(_0x3a71e8[_0x5bd4('0x67')]('data-change-id',_0x498b30),_0x3a71e8[_0x5bd4('0x109')]('ck-revision-history-root-add',_0x498b30),_0x3a71e8[_0x5bd4('0x109')]('ck-revision-history-root-remove',_0x498b30),_0x3a71e8[_0x5bd4('0x109')]('ck-revision-history-root--active',_0x498b30),_0x53de4c){const _0xd64ae2=this['_getChangeFromId'](_0x53de4c);if(!_0xd64ae2)return null;_0x3a71e8[_0x5bd4('0xb7')]('data-change-id',_0x53de4c,_0x498b30),_0x3a71e8[_0x5bd4('0x85')](_0x5bd4('0xc1')+_0xd64ae2[_0x5bd4('0x83')],_0x498b30),this['activeChange']==_0xd64ae2&&_0x3a71e8[_0x5bd4('0x85')]('ck-revision-history-root--active',_0x498b30);}}}});}),this['editor'][_0x5bd4('0x97')]['for'](_0x5bd4('0x5d'))[_0x5bd4('0x2a')]({'view':_0x5bd4('0x61'),'model':_0x51d90d=>_0x5bd4('0xeb')+_0x51d90d,'converterPriority':_0x5bd4('0x123')}),this[_0x5bd4('0x3e')][_0x5bd4('0x97')][_0x5bd4('0x6d')]('upcast')['dataToMarker']({'view':_0x5bd4('0xb4'),'model':_0x496b18=>'revision-suggestion:'+_0x496b18,'converterPriority':'highest'}),this[_0x5bd4('0x3e')]['conversion'][_0x5bd4('0x6d')](_0x5bd4('0x2f'))[_0x5bd4('0x5b')]({'model':_0x5bd4('0x4f'),'view':_0x2e0c19=>({'name':_0x5bd4('0x10e')+_0x2e0c19,'group':_0x5bd4('0x4f')}),'converterPriority':_0x5bd4('0x123')}),this[_0x5bd4('0x3e')][_0x5bd4('0x97')][_0x5bd4('0x6d')](_0x5bd4('0x81'))[_0x5bd4('0x11f')]({'model':_0x5bd4('0x4f'),'view':_0x19f877=>{const _0x28874c=_0x19f877[_0x5bd4('0xca')]['split'](':')[0x1];return _0x5bd4('0x34')!=_0x28874c&&'deletion'!=_0x28874c?null:{'classes':[_0x5bd4('0x4b'),_0x5bd4('0x42')+_0x28874c]};}}),this[_0x5bd4('0x3e')][_0x5bd4('0xbf')][_0x5bd4('0x77')]['on']('addMarker:revision-suggestion:deletion',Y(this['editor'],_0x5bd4('0xe2')),{'priority':'high'}),this[_0x5bd4('0x3e')][_0x5bd4('0xbf')]['downcastDispatcher']['on'](_0x5bd4('0xf8'),Y(this[_0x5bd4('0x3e')],_0x5bd4('0x28')),{'priority':_0x5bd4('0xa5')}),this[_0x5bd4('0x3e')][_0x5bd4('0xbf')]['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1a9709,_0x5a1546,_0x34a025)=>{const _0x2b9b6f=_0x34a025[_0x5bd4('0xdf')][_0x5bd4('0xb9')](_0x5a1546[_0x5bd4('0xca')]);if(_0x2b9b6f)for(const _0x75c3e9 of _0x2b9b6f)_0x75c3e9['is']('uiElement')&&(_0x34a025[_0x5bd4('0xdf')][_0x5bd4('0x35')](_0x75c3e9,_0x5a1546[_0x5bd4('0xca')]),_0x34a025['writer'][_0x5bd4('0x87')](_0x75c3e9));},{'priority':_0x5bd4('0xa5')});}[_0x5bd4('0x4a')](_0x19565a){return this[_0x5bd4('0x68')][_0x5bd4('0x49')](_0x19565a);}[_0x5bd4('0x70')](_0x1ad841){return this[_0x5bd4('0x33')]&&this[_0x5bd4('0x33')]['destroy'](),this[_0x5bd4('0x33')]=new _0x5dc8aa(this['editor'][_0x5bd4('0xab')],_0x1ad841),this['_changeView'];}[_0x5bd4('0x84')](){this[_0x5bd4('0x3e')][_0x5bd4('0x24')]['document']['selection'][_0x5bd4('0x69')](_0x5bd4('0x129')),this['on']('change:activeView',(_0x4cccad,_0x14bc21,_0x16f66d,_0xd210f1)=>{_0xd210f1&&this['_balloon'][_0x5bd4('0x87')](_0xd210f1),_0x16f66d&&(this[_0x5bd4('0xcf')][_0x5bd4('0x128')]({'view':_0x16f66d,'stackId':_0x5bd4('0x115'),'position':{'target':()=>{const _0x3f05ca=this[_0x5bd4('0x3e')][_0x5bd4('0xbf')],_0x398605=this[_0x5bd4('0x4a')](_0x16f66d[_0x5bd4('0x8e')]);let _0x38e49d;if(_0x398605[_0x5bd4('0xa1')][_0x5bd4('0x9d')]){const _0x1a94b8=_0x3f05ca['view'][_0x5bd4('0x57')](_0x398605[_0x5bd4('0xfe')]);_0x38e49d=Array[_0x5bd4('0xf9')](_0x1a94b8[_0x5bd4('0xc2')]());}else{const _0x221e33=this['editor'][_0x5bd4('0x24')][_0x5bd4('0x91')]['get']('revision:'+_0x16f66d[_0x5bd4('0x8e')]);_0x38e49d=Array[_0x5bd4('0xf9')](_0x3f05ca['mapper'][_0x5bd4('0xb9')](_0x221e33[_0x5bd4('0x12')]))['map'](_0x20366c=>_0x3f05ca[_0x5bd4('0xa2')][_0x5bd4('0x45')][_0x5bd4('0xb')](_0x20366c))['map'](_0x1b95d7=>Array[_0x5bd4('0xf9')](_0x1b95d7[_0x5bd4('0xc2')]()))[_0x5bd4('0xe4')]();}if(!this[_0x5bd4('0xb1')])return _0x38e49d[0x0];return _0x38e49d[_0x5bd4('0xa9')](_0x20ee2b=>_0x20ee2b[_0x5bd4('0xc8')]-0x3<=this['_activeViewTarget']['y']&&_0x20ee2b[_0x5bd4('0xee')]+0x3>=this['_activeViewTarget']['y']&&_0x20ee2b[_0x5bd4('0x76')]-0x3<=this['_activeViewTarget']['x']&&_0x20ee2b[_0x5bd4('0x8d')]+0x3>=this[_0x5bd4('0xb1')]['x'])||_0x38e49d[0x0];}}}),this[_0x5bd4('0xcf')][_0x5bd4('0x26')](_0x5bd4('0x115')));}),this['on'](_0x5bd4('0xe0'),(_0x26f54c,_0x4ec6ce,_0x83d37d,_0x459043)=>{this['activeView']=_0x83d37d?this['_getViewForChange'](_0x83d37d):null,this[_0x5bd4('0x3e')][_0x5bd4('0x24')]['change'](()=>{const _0x1b85b6=this[_0x5bd4('0x3e')]['editing'];_0x459043&&(_0x459043[_0x5bd4('0xa1')][_0x5bd4('0x9d')]?_0x1b85b6['view'][_0x5bd4('0x44')](_0x10b4ad=>{_0x10b4ad['removeClass'](_0x5bd4('0xae'),_0x1b85b6[_0x5bd4('0xa2')][_0x5bd4('0xf2')]['getRoot'](_0x459043[_0x5bd4('0xfe')]));}):_0x1b85b6[_0x5bd4('0x2b')]('revision:'+_0x459043['id'])),_0x83d37d&&(_0x83d37d[_0x5bd4('0xa1')]['isOnRoot']?_0x1b85b6[_0x5bd4('0xa2')][_0x5bd4('0x44')](_0xa6d15c=>{_0xa6d15c['addClass'](_0x5bd4('0xae'),_0x1b85b6[_0x5bd4('0xa2')]['document'][_0x5bd4('0xfd')](_0x83d37d[_0x5bd4('0xfe')]));}):_0x1b85b6['reconvertMarker'](_0x5bd4('0x17')+_0x83d37d['id']));});}),this[_0x5bd4('0xd2')](this['editor'][_0x5bd4('0xbf')]['view'][_0x5bd4('0xf2')],_0x5bd4('0x4d'),(_0x17e385,_0x2cfbee)=>{if(this[_0x5bd4('0x10d')])return;const _0x386df6=this[_0x5bd4('0x52')](_0x2cfbee[_0x5bd4('0x38')]),_0x144fb7=this[_0x5bd4('0x68')][_0x5bd4('0x49')](_0x386df6);_0x144fb7?(this[_0x5bd4('0xb1')]={'x':_0x2cfbee[_0x5bd4('0xd9')]['x'],'y':_0x2cfbee[_0x5bd4('0xd9')]['y']},this['activeView']=this[_0x5bd4('0x70')](_0x144fb7)):(this[_0x5bd4('0xb1')]=null,this['activeView']=null);}),this[_0x5bd4('0xd2')](this[_0x5bd4('0x3e')]['editing']['view'][_0x5bd4('0xf2')],_0x5bd4('0xaa'),(_0x146f0e,_0x2ec241)=>{const _0x2d7b56=this['_findChangeIdFromDomTarget'](_0x2ec241[_0x5bd4('0x38')]),_0x525e77=this['_changeIdToChange'][_0x5bd4('0x49')](_0x2d7b56);_0x525e77?(this[_0x5bd4('0xb1')]={'x':_0x2ec241[_0x5bd4('0xd9')]['x'],'y':_0x2ec241[_0x5bd4('0xd9')]['y']},_0x525e77===this[_0x5bd4('0x10d')]?this[_0x5bd4('0xcf')]['updatePosition']():this['activeChange']=_0x525e77):(this[_0x5bd4('0xb1')]=null,this['activeChange']=null);});}[_0x5bd4('0x52')](_0x930649){do{const _0x2a95d8=_0x930649['getAttribute']('data-change-id');if(_0x2a95d8)return _0x2a95d8;_0x930649=_0x930649[_0x5bd4('0x3d')];}while(_0x930649);return null;}[_0x5bd4('0x2e')](){this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0x44')](_0x370ed0=>{for(const _0x2a527a of this[_0x5bd4('0x3e')][_0x5bd4('0x24')]['markers'])_0x370ed0[_0x5bd4('0xbb')](_0x2a527a);});}}function Y(_0x3b0dd8,_0x1eadd7){return(_0x29ccdb,_0x2bac4e,_0x12c045)=>{if(!_0x12c045[_0x5bd4('0xd')][_0x5bd4('0x126')](_0x2bac4e[_0x5bd4('0x2')],_0x29ccdb[_0x5bd4('0x12')]))return;const _0x5363ef=_0x2bac4e[_0x5bd4('0x2')]['getWalker'](),_0x554a1c=_0x2bac4e['markerRange']['start'],_0xccaddd=_0x3b0dd8[_0x5bd4('0x24')][_0x5bd4('0x102')];let _0x305bc7=null,_0x17cd84=null,_0x105c83=!0x1,_0xd33a59=!0x1;for(const _0x4b8b4d of _0x5363ef){const _0xa1a1f7=_0x4b8b4d['item'];_0x105c83=_0x105c83||_0xccaddd[_0x5bd4('0x114')](_0xa1a1f7);const _0x46087f=_0x12c045[_0x5bd4('0xdf')]['toViewElement'](_0xa1a1f7);if(_0x46087f&&_0x46087f[_0x5bd4('0x5f')](_0x5bd4('0x29')))return;_0x5bd4('0x80')==_0x4b8b4d['type']&&(_0xccaddd[_0x5bd4('0xda')](_0xa1a1f7)&&!_0xccaddd[_0x5bd4('0x8f')](_0xa1a1f7)&&(_0xa1a1f7['nextSibling']||_0x554a1c[_0x5bd4('0x1f')]?_0x305bc7&&_0x305bc7[_0x5bd4('0x3d')]==_0xa1a1f7||(_0x305bc7=_0xa1a1f7,_0x37ed60(_0x4b8b4d[_0x5bd4('0xc6')]),_0xd33a59=!0x0):_0x17cd84=_0x17cd84||_0x4b8b4d[_0x5bd4('0xc6')]));}function _0x37ed60(_0x29c6a3){const _0x286cae=_0x12c045[_0x5bd4('0xdf')]['toViewPosition'](_0x29c6a3),_0x3b0e0c=_0x12c045[_0x5bd4('0xa8')][_0x5bd4('0xf0')]('span',{'class':_0x5bd4('0x42')+_0x1eadd7});_0x12c045[_0x5bd4('0xa8')][_0x5bd4('0x121')](_0x286cae,_0x3b0e0c),_0x12c045[_0x5bd4('0xdf')]['bindElementToMarker'](_0x3b0e0c,_0x2bac4e[_0x5bd4('0xca')]);}_0x105c83||_0xd33a59||!_0x17cd84||_0x37ed60(_0x17cd84);};}export class RestoreRevisionCommand extends _0x5b4a33{constructor(_0x3a4e0d){super(_0x3a4e0d);const _0x34b6ed=_0x3a4e0d[_0x5bd4('0xf3')][_0x5bd4('0x49')](w);this[_0x5bd4('0xe8')]=!0x1,this[_0x5bd4('0xd2')](_0x34b6ed,_0x5bd4('0x0'),()=>this[_0x5bd4('0x36')]()),this[_0x5bd4('0xd2')](_0x34b6ed,_0x5bd4('0x7c'),()=>this[_0x5bd4('0x36')]());}[_0x5bd4('0x14')](){const _0x34753c=this[_0x5bd4('0x3e')],_0x5c864d=_0x34753c[_0x5bd4('0xf3')]['get'](w),_0x2574cc=_0x5c864d[_0x5bd4('0xe6')]?_0x5c864d[_0x5bd4('0x30')][_0x5bd4('0x95')]:null;_0x34753c[_0x5bd4('0x18')][_0x5bd4('0x49')](_0x5bd4('0x3c'))[_0x5bd4('0xc4')](_0x2574cc);}['refresh'](){const {isReady:_0x439411,isEnabled:_0x3f5b62}=this[_0x5bd4('0x3e')]['plugins']['get'](w);this['isEnabled']=_0x439411&&_0x3f5b62;}}export class ShowChangeCommand extends _0x5b4a33{constructor(_0x3f17a6,{direction:_0x47980f}){super(_0x3f17a6);const _0x239829=_0x3f17a6['plugins']['get'](w);this['affectsData']=!0x1,this[_0x5bd4('0x8')]=_0x5bd4('0x74')===_0x47980f?0x1:-0x1,this[_0x5bd4('0xd2')](_0x239829,'change:isReady',()=>this[_0x5bd4('0x36')]()),this[_0x5bd4('0xd2')](_0x239829,_0x5bd4('0x7c'),()=>this[_0x5bd4('0x36')]());}[_0x5bd4('0x14')](){const _0x18e456=this[_0x5bd4('0x3e')],_0x4dcd47=_0x18e456['plugins'][_0x5bd4('0x49')](w),{isNavigationMode:_0x4b1359,currentChangeNumber:_0x49771e}=_0x4dcd47;let _0xd1dc78;if(_0x4dcd47['activeChange']=_0x4b1359?_0x4dcd47[_0x5bd4('0x30')][_0x5bd4('0x119')][_0x5bd4('0x49')](_0x49771e+this['_step']):_0x4dcd47['diff'][_0x5bd4('0x119')]['first'],_0x4dcd47['activeChange'][_0x5bd4('0xa1')][_0x5bd4('0x9d')])_0xd1dc78=_0x18e456['editing']['view']['getDomRoot'](_0x4dcd47[_0x5bd4('0x10d')][_0x5bd4('0xfe')]);else{const _0x5caa0d=_0x18e456[_0x5bd4('0x24')][_0x5bd4('0x91')][_0x5bd4('0x49')](_0x5bd4('0x17')+_0x4dcd47[_0x5bd4('0x10d')]['id']);_0xd1dc78=_0x222649(_0x18e456[_0x5bd4('0xbf')],_0x5caa0d);}_0x5214f0({'target':_0xd1dc78,'viewportOffset':0x28});}[_0x5bd4('0x36')](){const {isNavigationMode:_0x553c1f,currentChangeNumber:_0x55c9a8,numberOfChanges:_0x169386,isReady:_0x4582ec,isEnabled:_0x1f8117}=this[_0x5bd4('0x3e')][_0x5bd4('0xf3')]['get'](w);this[_0x5bd4('0x13')]=!!(_0x1f8117&&_0x4582ec&&_0x169386)&&(!_0x553c1f||(0x1===this['_step']?_0x55c9a8<_0x169386-0x1:_0x55c9a8>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x31ef=['button','name','execute','function','listView','_action','isEnabled','class','items','find','add','isActionsDropdownOpen','buttonView','locale','bind','action','bindTemplate','Compare\x20against\x20selected','threeVerticalDots','ck-on','map','isVisible','Show\x20more\x20items','source','change:isActionsDropdownOpen','first','Name\x20this\x20revision','children','stopPropagation','extendTemplate','listenTo','panelPosition','model'];(function(_0x454f6c,_0x31ef05){const _0x3ad7f9=function(_0x1df4e5){while(--_0x1df4e5){_0x454f6c['push'](_0x454f6c['shift']());}};_0x3ad7f9(++_0x31ef05);}(_0x31ef,0x187));const _0x3ad7=function(_0x454f6c,_0x31ef05){_0x454f6c=_0x454f6c-0x0;let _0x3ad7f9=_0x31ef[_0x454f6c];return _0x3ad7f9;};import{Collection as _0x3d8c87}from'ckeditor5/src/utils';import{icons as _0x28a011}from'ckeditor5/src/core';import{Model as _0xbe0745,addListToDropdown as _0x2ce583,createDropdown as _0x21309}from'ckeditor5/src/ui';import{getTranslation as _0x6d830c}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x50cc84,_0xc4160a){const _0x347908=_0x50cc84[_0x3ad7('0x15')],_0x27fb31=_0x50cc84['locale'],_0x5f1a2e=_0x21309(_0x27fb31);_0x5f1a2e[_0x3ad7('0x3')]='sw';const _0x4e974f=function(_0x624f55,_0x38b48a){const _0x44c3dd=function(_0x2c6b83,_0x48e813){const _0x4f59c6=_0x2c6b83[_0x3ad7('0x12')],_0x155d45={'Compare\x20against\x20selected':_0x6d830c(_0x4f59c6,_0x3ad7('0x16')),'Name\x20this\x20revision':_0x6d830c(_0x4f59c6,_0x3ad7('0x1f')),'Restore\x20this\x20revision':_0x6d830c(_0x4f59c6,'Restore\x20this\x20revision')};return _0x48e813[_0x3ad7('0x19')](_0x188ca3=>{const _0x26a175=_0x155d45[_0x188ca3[_0x3ad7('0x6')]];return _0x26a175&&_0x26a175!==_0x188ca3[_0x3ad7('0x6')]&&(_0x188ca3[_0x3ad7('0x6')]=_0x26a175),_0x188ca3;});}(_0x624f55,_0x38b48a),_0x37c4e0=new _0x3d8c87();for(const _0x33524f of _0x44c3dd){const _0x243a07={'type':_0x3ad7('0x5'),'model':new _0xbe0745({'label':_0x33524f[_0x3ad7('0x6')],'class':_0x33524f[_0x3ad7('0xc')],'withText':!0x0,'_action':_0x33524f[_0x3ad7('0x14')]})};_0x243a07[_0x3ad7('0x4')][_0x3ad7('0x13')]('isEnabled')['to'](_0x624f55,_0x3ad7('0x10'),_0x469e79=>'function'!=typeof _0x33524f[_0x3ad7('0xb')]||(!_0x469e79||_0x33524f['isEnabled'](_0x624f55))),_0x37c4e0[_0x3ad7('0xf')](_0x243a07);}return _0x37c4e0;}(_0x50cc84,_0xc4160a);return _0x50cc84[_0x3ad7('0x13')]('isActionsDropdownOpen')['to'](_0x5f1a2e,'isOpen'),_0x5f1a2e[_0x3ad7('0x11')]['set']({'label':_0x6d830c(_0x27fb31,_0x3ad7('0x1b')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x28a011[_0x3ad7('0x17')]}),_0x5f1a2e[_0x3ad7('0x1')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x347908['if'](_0x3ad7('0x10'),_0x3ad7('0x18'))]},'on':{'click':_0x347908['to'](_0x5f2bbe=>_0x5f2bbe[_0x3ad7('0x0')]())}}),_0x5f1a2e['on'](_0x3ad7('0x7'),_0x519043=>{_0x50cc84['isReady']&&_0x3ad7('0x8')==typeof _0x519043[_0x3ad7('0x1c')][_0x3ad7('0xa')]&&_0x519043[_0x3ad7('0x1c')][_0x3ad7('0xa')](_0x50cc84);}),_0x2ce583(_0x5f1a2e,_0x4e974f),_0x5f1a2e[_0x3ad7('0x2')](_0x50cc84,_0x3ad7('0x1d'),(_0xe78438,_0x548c70,_0x4b4e39)=>{if(_0x4b4e39)for(const _0x34d5cb of _0x5f1a2e[_0x3ad7('0x9')][_0x3ad7('0xd')]){const _0x1565da=_0x34d5cb[_0x3ad7('0x20')][_0x3ad7('0x1e')],_0x35556b=_0xc4160a[_0x3ad7('0xe')](_0x74d71c=>_0x74d71c[_0x3ad7('0x14')]===_0x1565da['_action'])[_0x3ad7('0x1a')];_0x34d5cb[_0x3ad7('0x1a')]=void 0x0===_0x35556b||_0x35556b(_0x50cc84);}}),_0x5f1a2e;}
23
+ const _0x52c2=['buttonView','listView','locale','listenTo','items','change:isActionsDropdownOpen','map','ck-on','find','ck-revision-history-sidebar__revision__actions','Name\x20this\x20revision','set','Show\x20more\x20items','add','button','isOpen','class','name','extendTemplate','_action','isActionsDropdownOpen','children','Compare\x20against\x20selected','isEnabled','function','bind','source','action','panelPosition','isReady','model','Restore\x20this\x20revision'];(function(_0x5e85e5,_0x52c2e0){const _0x34b9f5=function(_0x558799){while(--_0x558799){_0x5e85e5['push'](_0x5e85e5['shift']());}};_0x34b9f5(++_0x52c2e0);}(_0x52c2,0x1f1));const _0x34b9=function(_0x5e85e5,_0x52c2e0){_0x5e85e5=_0x5e85e5-0x0;let _0x34b9f5=_0x52c2[_0x5e85e5];return _0x34b9f5;};import{Collection as _0x4d5eb6}from'ckeditor5/src/utils';import{icons as _0x597282}from'ckeditor5/src/core';import{Model as _0x341fb5,addListToDropdown as _0x394fb1,createDropdown as _0x1faf42}from'ckeditor5/src/ui';import{getTranslation as _0x110050}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x2fc1d4,_0x29bc98){const _0x225bc1=_0x2fc1d4['bindTemplate'],_0x21e3f4=_0x2fc1d4[_0x34b9('0x11')],_0x62c2cc=_0x1faf42(_0x21e3f4);_0x62c2cc[_0x34b9('0xb')]='sw';const _0x5b5410=function(_0x32306b,_0x16c691){const _0x141f78=function(_0x4b9c01,_0x4ed8a5){const _0x55b889=_0x4b9c01['locale'],_0x45ed72={'Compare\x20against\x20selected':_0x110050(_0x55b889,_0x34b9('0x5')),'Name\x20this\x20revision':_0x110050(_0x55b889,_0x34b9('0x19')),'Restore\x20this\x20revision':_0x110050(_0x55b889,_0x34b9('0xe'))};return _0x4ed8a5[_0x34b9('0x15')](_0x44df6b=>{const _0x5c5850=_0x45ed72[_0x44df6b['name']];return _0x5c5850&&_0x5c5850!==_0x44df6b[_0x34b9('0x0')]&&(_0x44df6b[_0x34b9('0x0')]=_0x5c5850),_0x44df6b;});}(_0x32306b,_0x16c691),_0x4984fb=new _0x4d5eb6();for(const _0x3e4e74 of _0x141f78){const _0x3b9b4d={'type':_0x34b9('0x1d'),'model':new _0x341fb5({'label':_0x3e4e74[_0x34b9('0x0')],'class':_0x3e4e74[_0x34b9('0x1f')],'withText':!0x0,'_action':_0x3e4e74[_0x34b9('0xa')]})};_0x3b9b4d[_0x34b9('0xd')][_0x34b9('0x8')](_0x34b9('0x6'))['to'](_0x32306b,_0x34b9('0x3'),_0x21e9bd=>'function'!=typeof _0x3e4e74[_0x34b9('0x6')]||(!_0x21e9bd||_0x3e4e74[_0x34b9('0x6')](_0x32306b))),_0x4984fb[_0x34b9('0x1c')](_0x3b9b4d);}return _0x4984fb;}(_0x2fc1d4,_0x29bc98);return _0x2fc1d4[_0x34b9('0x8')](_0x34b9('0x3'))['to'](_0x62c2cc,_0x34b9('0x1e')),_0x62c2cc[_0x34b9('0xf')][_0x34b9('0x1a')]({'label':_0x110050(_0x21e3f4,_0x34b9('0x1b')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x597282['threeVerticalDots']}),_0x62c2cc[_0x34b9('0x1')]({'attributes':{'class':[_0x34b9('0x18'),_0x225bc1['if'](_0x34b9('0x3'),_0x34b9('0x16'))]},'on':{'click':_0x225bc1['to'](_0x212b5e=>_0x212b5e['stopPropagation']())}}),_0x62c2cc['on']('execute',_0x5e7007=>{_0x2fc1d4[_0x34b9('0xc')]&&_0x34b9('0x7')==typeof _0x5e7007['source'][_0x34b9('0x2')]&&_0x5e7007[_0x34b9('0x9')][_0x34b9('0x2')](_0x2fc1d4);}),_0x394fb1(_0x62c2cc,_0x5b5410),_0x62c2cc[_0x34b9('0x12')](_0x2fc1d4,_0x34b9('0x14'),(_0x4c093f,_0x19b647,_0x343fd8)=>{if(_0x343fd8)for(const _0x1617a2 of _0x62c2cc[_0x34b9('0x10')][_0x34b9('0x13')]){const _0x235f9d=_0x1617a2[_0x34b9('0x4')]['first'],_0x36cd82=_0x29bc98[_0x34b9('0x17')](_0x35901b=>_0x35901b['action']===_0x235f9d['_action'])['isVisible'];_0x1617a2['isVisible']=void 0x0===_0x36cd82||_0x36cd82(_0x2fc1d4);}}),_0x62c2cc;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x396b=['Revision\x20author','push','ck-revision-history-sidebar__revision-author','Revision\x20creator','span','ck-revision-history-sidebar__revision-author_creator','name'];(function(_0x3df82e,_0x396b61){const _0x5f0279=function(_0x1971ce){while(--_0x1971ce){_0x3df82e['push'](_0x3df82e['shift']());}};_0x5f0279(++_0x396b61);}(_0x396b,0x168));const _0x5f02=function(_0x3df82e,_0x396b61){_0x3df82e=_0x3df82e-0x0;let _0x5f0279=_0x396b[_0x3df82e];return _0x5f0279;};import{View as _0x17defa,IconView as _0x3842b8}from'ckeditor5/src/ui';import{getTranslation as _0x1ecaba}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x5c0860 from'../../../theme/icons/user.svg';export default class ti extends _0x17defa{constructor(_0x4a0f4e,_0x2c5546,_0x139dc3){super(_0x4a0f4e);const _0x5dbb27=new _0x3842b8();_0x5dbb27['set']({'content':_0x5c0860,'viewBox':'0\x200\x2011\x2010'});const _0x2117df=['ck',_0x5f02('0x6')];_0x139dc3&&_0x2117df[_0x5f02('0x5')](_0x5f02('0x2'));const _0x20a116=[{'tag':_0x5f02('0x1'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x1ecaba(_0x4a0f4e,_0x139dc3?_0x5f02('0x0'):_0x5f02('0x4'))},'children':[_0x5dbb27,_0x2c5546[_0x5f02('0x3')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2117df},'children':_0x20a116});}}
23
+ const _0x47b8=['ck-revision-history-sidebar__revision-author__name','Revision\x20creator','ck-revision-history-sidebar__revision-author','set','push','span','ck-revision-history-sidebar__revision-author_creator','setTemplate'];(function(_0x330368,_0x47b837){const _0x478b5d=function(_0xc844c0){while(--_0xc844c0){_0x330368['push'](_0x330368['shift']());}};_0x478b5d(++_0x47b837);}(_0x47b8,0x13a));const _0x478b=function(_0x330368,_0x47b837){_0x330368=_0x330368-0x0;let _0x478b5d=_0x47b8[_0x330368];return _0x478b5d;};import{View as _0xbb46f7,IconView as _0x55024d}from'ckeditor5/src/ui';import{getTranslation as _0x11fa94}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x44ee82 from'../../../theme/icons/user.svg';export default class ti extends _0xbb46f7{constructor(_0x24f1c6,_0x1a1dda,_0xb16b48){super(_0x24f1c6);const _0x249041=new _0x55024d();_0x249041[_0x478b('0x1')]({'content':_0x44ee82,'viewBox':'0\x200\x2011\x2010'});const _0x2047ab=['ck',_0x478b('0x0')];_0xb16b48&&_0x2047ab[_0x478b('0x2')](_0x478b('0x4'));const _0x5a54c8=[{'tag':_0x478b('0x3'),'attributes':{'class':['ck',_0x478b('0x6')],'title':_0x11fa94(_0x24f1c6,_0xb16b48?_0x478b('0x7'):'Revision\x20author')},'children':[_0x249041,_0x1a1dda['name']]}];this[_0x478b('0x5')]({'tag':'li','attributes':{'class':_0x2047ab},'children':_0x5a54c8});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x356f=['extendTemplate','set','ck-revision-history-sidebar__revision-name','span','Revision\x20name'];(function(_0x53b936,_0x356fb3){var _0x38bd5a=function(_0x16cc03){while(--_0x16cc03){_0x53b936['push'](_0x53b936['shift']());}};_0x38bd5a(++_0x356fb3);}(_0x356f,0x1c4));var _0x38bd=function(_0x53b936,_0x356fb3){_0x53b936=_0x53b936-0x0;var _0x38bd5a=_0x356f[_0x53b936];return _0x38bd5a;};import{LabeledFieldView as _0x50f064}from'ckeditor5/src/ui';import{getTranslation as _0x2126a6}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x50f064{constructor(_0x393421,_0x3834ca){super(_0x393421,_0x3834ca),this[_0x38bd('0x4')]({'label':_0x2126a6(_0x393421,_0x38bd('0x2'))}),this[_0x38bd('0x3')]({'tag':_0x38bd('0x1'),'attributes':{'class':[_0x38bd('0x0')]}});}}
23
+ var _0x313e=['Revision\x20name','extendTemplate','ck-revision-history-sidebar__revision-name'];(function(_0x1dcb3d,_0x313e4b){var _0x3c0347=function(_0x1ad7d8){while(--_0x1ad7d8){_0x1dcb3d['push'](_0x1dcb3d['shift']());}};_0x3c0347(++_0x313e4b);}(_0x313e,0xe1));var _0x3c03=function(_0x1dcb3d,_0x313e4b){_0x1dcb3d=_0x1dcb3d-0x0;var _0x3c0347=_0x313e[_0x1dcb3d];return _0x3c0347;};import{LabeledFieldView as _0x9a4692}from'ckeditor5/src/ui';import{getTranslation as _0x20dcb0}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x9a4692{constructor(_0x4e2cbb,_0x237450){super(_0x4e2cbb,_0x237450),this['set']({'label':_0x20dcb0(_0x4e2cbb,_0x3c03('0x0'))}),this[_0x3c03('0x1')]({'tag':'span','attributes':{'class':[_0x3c03('0x2')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xfe63=['set','isSelected','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','220','bindTemplate','creator','setTemplate','ck-revision-history-sidebar__revision_highlighted','element','bind','ck-reset','.ck-thread__remove-confirm','isConfirm','select','createdAt','isEnabled','fire','revisionNameView','span','ck-revision-history-sidebar__revision-wrapper','_revision','filter','unhighlight','highlight','uiLanguage','ck-revision-history-sidebar__revision','srcElement','_createdAtFormatted','isHighlighted','unshift','fieldView','isReady','ck-revision-history-sidebar__actions_dropdown_open','deselect','name','from','div','extendTemplate','render','isActionsDropdownOpen','revisionActionsView'];(function(_0x4f3b06,_0xfe630f){const _0x1deb49=function(_0x446958){while(--_0x446958){_0x4f3b06['push'](_0x4f3b06['shift']());}};_0x1deb49(++_0xfe630f);}(_0xfe63,0x1b1));const _0x1deb=function(_0x4f3b06,_0xfe630f){_0x4f3b06=_0x4f3b06-0x0;let _0x1deb49=_0xfe63[_0x4f3b06];return _0x1deb49;};import{View as _0x53e803,createLabeledInputText as _0x14a64a}from'ckeditor5/src/ui';import{ConfirmMixin as _0x360907}from'ckeditor5-collaboration/src/collaboration-core';import _0x23fa6 from'./revisionnameview';import _0x22cb50 from'./revisionauthorview';import{dateToPrettyFormat as _0xf034d9}from'./utils';import{createActionsDropdownView as _0x4a8416}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x360907(_0x53e803){constructor(_0x26690f,_0x28eba3,_0x4248d5){super(_0x26690f);const _0x5c435b=this[_0x1deb('0x16')],_0x110a37=function(_0x409b69,_0x2d1dc5){const _0x1633e2=Array[_0x1deb('0xc')](_0x2d1dc5['authors'])[_0x1deb('0x27')](_0x5bc5f1=>_0x5bc5f1!=_0x2d1dc5['creator']);return _0x2d1dc5['creator']&&_0x1633e2[_0x1deb('0x6')](_0x2d1dc5[_0x1deb('0x17')]),_0x1633e2['map'](_0x1e701c=>new _0x22cb50(_0x409b69,_0x1e701c,_0x1e701c==_0x2d1dc5['creator']));}(_0x26690f,_0x28eba3);this['id']=_0x28eba3['id'],this[_0x1deb('0x26')]=_0x28eba3,this[_0x1deb('0x1b')](_0x1deb('0xb'),_0x1deb('0x20'))['to'](_0x28eba3),this[_0x1deb('0x1b')](_0x1deb('0x4'))['to'](this,'createdAt',_0x1e5e9e=>_0x1e5e9e?_0xf034d9(_0x26690f[_0x1deb('0x1')],_0x1e5e9e):void 0x0),this[_0x1deb('0x12')]('isSelected',!0x1),this[_0x1deb('0x12')](_0x1deb('0x5'),!0x1),this[_0x1deb('0x12')](_0x1deb('0x10'),!0x1),this[_0x1deb('0x12')](_0x1deb('0x8'),!0x1),this['set'](_0x1deb('0x21'),!0x1),this['revisionNameView']=new _0x23fa6(_0x26690f,_0x14a64a),this[_0x1deb('0x23')]['fieldView'][_0x1deb('0xe')]({'attributes':{'maxlength':_0x1deb('0x15')}}),this[_0x1deb('0x23')][_0x1deb('0x7')][_0x1deb('0x1b')]('value','placeholder')['to'](this,_0x1deb('0xb'),_0x1deb('0x4')),this[_0x1deb('0x23')][_0x1deb('0x1b')](_0x1deb('0x21'))['to'](this,'isSelected',this,'isEnabled',(_0x757f83,_0x1bd4a6)=>_0x757f83&&_0x1bd4a6),this[_0x1deb('0x11')]=_0x4248d5&&_0x4248d5['length']?_0x4a8416(this,_0x4248d5):'',this['revisionActionsView']&&this['revisionActionsView'][_0x1deb('0x1b')](_0x1deb('0x21'))['to'](this),this[_0x1deb('0x18')]({'tag':_0x1deb('0xd'),'attributes':{'class':['ck','ck-reset',_0x1deb('0x25'),_0x5c435b['if'](_0x1deb('0x1e'),_0x1deb('0x14'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x1deb('0x1c'),_0x1deb('0x2'),_0x5c435b['if'](_0x1deb('0x21'),'ck-disabled',_0x1a88cd=>!_0x1a88cd),_0x5c435b['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5c435b['if'](_0x1deb('0x5'),_0x1deb('0x19')),_0x5c435b['if'](_0x1deb('0x10'),_0x1deb('0x9'))]},'children':[this['revisionNameView'],{'tag':_0x1deb('0x24'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x5c435b['to'](_0x1deb('0x4'))}]},{'tag':_0x1deb('0xd'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x110a37}]},this['revisionActionsView']],'on':{'click':_0x5c435b['to'](_0x58f515=>{_0x58f515[_0x1deb('0x3')]['closest'](_0x1deb('0x1d'))||this[_0x1deb('0x8')]&&this['isEnabled']&&this[_0x1deb('0x22')]('select',{'id':this['id']});})}}]});}[_0x1deb('0xf')](){super[_0x1deb('0xf')]();const _0xea2c0b=this['revisionNameView'][_0x1deb('0x7')][_0x1deb('0x1a')];this['listenTo'](_0xea2c0b,'change',()=>{this[_0x1deb('0x22')]('setName',{'id':this['id'],'name':_0xea2c0b['value']});});}[_0x1deb('0x1f')](){this['isSelected']=!0x0;}[_0x1deb('0xa')](){this[_0x1deb('0x13')]=!0x1;}[_0x1deb('0x0')](){this[_0x1deb('0x5')]=!0x0;}[_0x1deb('0x28')](){this[_0x1deb('0x5')]=!0x1;}}
23
+ const _0x4e3f=['ck-revision-history-sidebar__revision_highlighted','select','deselect','creator','bind','placeholder','change','isEnabled','ck-revision-history-sidebar__revision__controls-wrapper','setName','value','setTemplate','fire','ck-revision-history-sidebar__revision_selected','isHighlighted','ck-revision-history-sidebar__actions_dropdown_open','bindTemplate','highlight','filter','isConfirm','220','ck-disabled','revisionActionsView','name','_createdAtFormatted','createdAt','fieldView','.ck-thread__remove-confirm','div','map','isSelected','from','render','ck-reset','isReady','closest','ck-revision-history-sidebar__revision','set','authors','isActionsDropdownOpen','revisionNameView','length','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__revision-wrapper','unshift'];(function(_0x47cb2d,_0x4e3f90){const _0x266a7d=function(_0x153c10){while(--_0x153c10){_0x47cb2d['push'](_0x47cb2d['shift']());}};_0x266a7d(++_0x4e3f90);}(_0x4e3f,0x191));const _0x266a=function(_0x47cb2d,_0x4e3f90){_0x47cb2d=_0x47cb2d-0x0;let _0x266a7d=_0x4e3f[_0x47cb2d];return _0x266a7d;};import{View as _0xbac3ac,createLabeledInputText as _0x383e4d}from'ckeditor5/src/ui';import{ConfirmMixin as _0x4df562}from'ckeditor5-collaboration/src/collaboration-core';import _0x53edc6 from'./revisionnameview';import _0x2276ed from'./revisionauthorview';import{dateToPrettyFormat as _0x5f28f6}from'./utils';import{createActionsDropdownView as _0x40f7f3}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x4df562(_0xbac3ac){constructor(_0x19313b,_0x1e97ae,_0x3dc1ef){super(_0x19313b);const _0x1c9f52=this[_0x266a('0x14')],_0x29164f=function(_0x53e956,_0x2b8e9a){const _0x4dedc5=Array[_0x266a('0x23')](_0x2b8e9a[_0x266a('0x2a')])[_0x266a('0x16')](_0x3ad758=>_0x3ad758!=_0x2b8e9a[_0x266a('0x7')]);return _0x2b8e9a[_0x266a('0x7')]&&_0x4dedc5[_0x266a('0x3')](_0x2b8e9a[_0x266a('0x7')]),_0x4dedc5[_0x266a('0x21')](_0x5e8be3=>new _0x2276ed(_0x53e956,_0x5e8be3,_0x5e8be3==_0x2b8e9a[_0x266a('0x7')]));}(_0x19313b,_0x1e97ae);this['id']=_0x1e97ae['id'],this['_revision']=_0x1e97ae,this['bind'](_0x266a('0x1b'),_0x266a('0x1d'))['to'](_0x1e97ae),this['bind'](_0x266a('0x1c'))['to'](this,_0x266a('0x1d'),_0x1dc8a6=>_0x1dc8a6?_0x5f28f6(_0x19313b['uiLanguage'],_0x1dc8a6):void 0x0),this[_0x266a('0x29')](_0x266a('0x22'),!0x1),this['set'](_0x266a('0x12'),!0x1),this[_0x266a('0x29')](_0x266a('0x2b'),!0x1),this[_0x266a('0x29')](_0x266a('0x26'),!0x1),this[_0x266a('0x29')](_0x266a('0xb'),!0x1),this[_0x266a('0x2c')]=new _0x53edc6(_0x19313b,_0x383e4d),this[_0x266a('0x2c')]['fieldView']['extendTemplate']({'attributes':{'maxlength':_0x266a('0x18')}}),this[_0x266a('0x2c')][_0x266a('0x1e')][_0x266a('0x8')](_0x266a('0xe'),_0x266a('0x9'))['to'](this,'name',_0x266a('0x1c')),this[_0x266a('0x2c')][_0x266a('0x8')](_0x266a('0xb'))['to'](this,_0x266a('0x22'),this,_0x266a('0xb'),(_0x453250,_0xc3b619)=>_0x453250&&_0xc3b619),this['revisionActionsView']=_0x3dc1ef&&_0x3dc1ef[_0x266a('0x0')]?_0x40f7f3(this,_0x3dc1ef):'',this[_0x266a('0x1a')]&&this[_0x266a('0x1a')][_0x266a('0x8')](_0x266a('0xb'))['to'](this),this[_0x266a('0xf')]({'tag':_0x266a('0x20'),'attributes':{'class':['ck',_0x266a('0x25'),_0x266a('0x2'),_0x1c9f52['if'](_0x266a('0x17'),_0x266a('0x1'))]},'children':[{'tag':_0x266a('0x20'),'attributes':{'class':['ck',_0x266a('0x25'),_0x266a('0x28'),_0x1c9f52['if']('isEnabled',_0x266a('0x19'),_0x378247=>!_0x378247),_0x1c9f52['if']('isSelected',_0x266a('0x11')),_0x1c9f52['if'](_0x266a('0x12'),_0x266a('0x4')),_0x1c9f52['if'](_0x266a('0x2b'),_0x266a('0x13'))]},'children':[this[_0x266a('0x2c')],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x1c9f52['to'](_0x266a('0x1c'))}]},{'tag':_0x266a('0x20'),'attributes':{'class':['ck',_0x266a('0xc')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x29164f}]},this[_0x266a('0x1a')]],'on':{'click':_0x1c9f52['to'](_0x48b687=>{_0x48b687['srcElement'][_0x266a('0x27')](_0x266a('0x1f'))||this['isReady']&&this[_0x266a('0xb')]&&this[_0x266a('0x10')](_0x266a('0x5'),{'id':this['id']});})}}]});}[_0x266a('0x24')](){super[_0x266a('0x24')]();const _0x4f54d9=this[_0x266a('0x2c')][_0x266a('0x1e')]['element'];this['listenTo'](_0x4f54d9,_0x266a('0xa'),()=>{this[_0x266a('0x10')](_0x266a('0xd'),{'id':this['id'],'name':_0x4f54d9[_0x266a('0xe')]});});}[_0x266a('0x5')](){this[_0x266a('0x22')]=!0x0;}[_0x266a('0x6')](){this[_0x266a('0x22')]=!0x1;}[_0x266a('0x15')](){this[_0x266a('0x12')]=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d7b=['true','_isCollapsed','isVisible','ck-revision-history-sidebar__subrevision-collapser__inner','span','ck-revision-history-sidebar__subrevision-collapser_collapsed','setTemplate','button','ck-revision-history-sidebar__subrevision-collapser','false','toggle','set','ck-hidden','click'];(function(_0x3b6698,_0x4d7b09){const _0x2d8bb9=function(_0xe9347c){while(--_0xe9347c){_0x3b6698['push'](_0x3b6698['shift']());}};_0x2d8bb9(++_0x4d7b09);}(_0x4d7b,0x15d));const _0x2d8b=function(_0x3b6698,_0x4d7b09){_0x3b6698=_0x3b6698-0x0;let _0x2d8bb9=_0x4d7b[_0x3b6698];return _0x2d8bb9;};import{View as _0x30e74f}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x30e74f{constructor(_0x101097){super(_0x101097);const _0xebb4a7=this['bindTemplate'];this[_0x2d8b('0xc')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x2d8b('0x7')]({'tag':_0x2d8b('0x5'),'attributes':{'class':['ck',_0x2d8b('0x9'),_0xebb4a7['if'](_0x2d8b('0x3'),_0x2d8b('0xd'),_0x5eda87=>!_0x5eda87),_0xebb4a7['if'](_0x2d8b('0x2'),_0x2d8b('0x6'))],'role':_0x2d8b('0x8'),'aria-pressed':_0xebb4a7['to']('_isCollapsed',_0x340bf2=>_0x340bf2?_0x2d8b('0xa'):_0x2d8b('0x1'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x2d8b('0x4')]}}],'on':{'click':_0xebb4a7['to'](_0x2d8b('0x0'))}});}[_0x2d8b('0xb')](){this[_0x2d8b('0x2')]=!this['_isCollapsed'];}}
23
+ const _0x20fd=['true','toggle','isVisible','set','click','ck-revision-history-sidebar__subrevision-collapser','span','ck-revision-history-sidebar__subrevision-collapser_collapsed','setTemplate','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser__inner','bindTemplate','ck-hidden','false'];(function(_0xb90479,_0x20fd57){const _0x157658=function(_0x32cc0f){while(--_0x32cc0f){_0xb90479['push'](_0xb90479['shift']());}};_0x157658(++_0x20fd57);}(_0x20fd,0x94));const _0x1576=function(_0xb90479,_0x20fd57){_0xb90479=_0xb90479-0x0;let _0x157658=_0x20fd[_0xb90479];return _0x157658;};import{View as _0x4b1b2a}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x4b1b2a{constructor(_0x1a0f8c){super(_0x1a0f8c);const _0x2badd4=this[_0x1576('0x3')];this[_0x1576('0x9')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x1576('0x0')]({'tag':_0x1576('0xc'),'attributes':{'class':['ck',_0x1576('0xb'),_0x2badd4['if'](_0x1576('0x8'),_0x1576('0x4'),_0x33ba0=>!_0x33ba0),_0x2badd4['if'](_0x1576('0x1'),_0x1576('0xd'))],'role':'button','aria-pressed':_0x2badd4['to']('_isCollapsed',_0x23554f=>_0x23554f?_0x1576('0x5'):_0x1576('0x6'))},'children':[{'tag':_0x1576('0xc'),'attributes':{'class':['ck',_0x1576('0x2')]}}],'on':{'click':_0x2badd4['to'](_0x1576('0xa'))}});}[_0x1576('0x7')](){this[_0x1576('0x1')]=!this['_isCollapsed'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x17c5=['isSelected','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__subrevision','bindTemplate','fire','set','deselect','uiLanguage','createdAt','select','ck-revision-history-sidebar__revision_selected','bind','span','creator','setTemplate','_createdAtFormatted','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision'];(function(_0x50139a,_0x17c558){const _0x6bfc04=function(_0x55ecc9){while(--_0x55ecc9){_0x50139a['push'](_0x50139a['shift']());}};_0x6bfc04(++_0x17c558);}(_0x17c5,0x1b4));const _0x6bfc=function(_0x50139a,_0x17c558){_0x50139a=_0x50139a-0x0;let _0x6bfc04=_0x17c5[_0x50139a];return _0x6bfc04;};import{View as _0x1d7e07}from'ckeditor5/src/ui';import _0xe8d692 from'./revisionauthorview';import{dateToPrettyFormat as _0x3b27d7}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x1d7e07{constructor(_0x4e570a,_0x11889c,_0x2dab6e){super(_0x4e570a);const _0x539ffe=this[_0x6bfc('0x11')];this['id']=_0x11889c['id'],this[_0x6bfc('0x7')]('createdAt')['to'](_0x11889c),this[_0x6bfc('0x1')](_0x6bfc('0xe'),!0x1),this[_0x6bfc('0x7')]('_createdAtFormatted')['to'](this,_0x6bfc('0x4'),_0x235047=>_0x235047?_0x3b27d7(_0x4e570a[_0x6bfc('0x3')],_0x235047):void 0x0),this['_parentRevisionId']=_0x2dab6e,this[_0x6bfc('0xa')]({'tag':'div','attributes':{'class':['ck','ck-reset',_0x6bfc('0xd'),_0x6bfc('0x10'),_0x539ffe['if'](_0x6bfc('0xe'),_0x6bfc('0x6'))]},'children':[{'tag':_0x6bfc('0x8'),'attributes':{'class':['ck',_0x6bfc('0xc')]},'children':[{'text':_0x539ffe['to'](_0x6bfc('0xb'))}]},{'tag':'ul','attributes':{'class':['ck',_0x6bfc('0xf')]},'children':[new _0xe8d692(_0x4e570a,_0x11889c[_0x6bfc('0x9')],!0x0)]}],'on':{'click':_0x539ffe['to'](this[_0x6bfc('0x5')][_0x6bfc('0x7')](this))}});}[_0x6bfc('0x5')](){this[_0x6bfc('0xe')]=!0x0,this[_0x6bfc('0x0')](_0x6bfc('0x5'),{'parentId':this['_parentRevisionId']});}[_0x6bfc('0x2')](){this[_0x6bfc('0xe')]=!0x1;}}
23
+ const _0x1d25=['_createdAtFormatted','ck-revision-history-sidebar__revision__date','uiLanguage','span','creator','ck-revision-history-sidebar__revision-authors','createdAt','bindTemplate','select','fire','ck-revision-history-sidebar__subrevision','set','deselect','div','isSelected','ck-revision-history-sidebar__revision_selected','bind','_parentRevisionId'];(function(_0x1739ff,_0x1d2591){const _0x2a2105=function(_0x41fda4){while(--_0x41fda4){_0x1739ff['push'](_0x1739ff['shift']());}};_0x2a2105(++_0x1d2591);}(_0x1d25,0xc5));const _0x2a21=function(_0x1739ff,_0x1d2591){_0x1739ff=_0x1739ff-0x0;let _0x2a2105=_0x1d25[_0x1739ff];return _0x2a2105;};import{View as _0x277bcb}from'ckeditor5/src/ui';import _0x5e4e6c from'./revisionauthorview';import{dateToPrettyFormat as _0x5ec02c}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x277bcb{constructor(_0x38a57c,_0x22e981,_0x67112){super(_0x38a57c);const _0x2d9a3c=this[_0x2a21('0x8')];this['id']=_0x22e981['id'],this[_0x2a21('0x11')](_0x2a21('0x7'))['to'](_0x22e981),this[_0x2a21('0xc')](_0x2a21('0xf'),!0x1),this[_0x2a21('0x11')](_0x2a21('0x1'))['to'](this,_0x2a21('0x7'),_0x42608d=>_0x42608d?_0x5ec02c(_0x38a57c[_0x2a21('0x3')],_0x42608d):void 0x0),this[_0x2a21('0x0')]=_0x67112,this['setTemplate']({'tag':_0x2a21('0xe'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2a21('0xb'),_0x2d9a3c['if'](_0x2a21('0xf'),_0x2a21('0x10'))]},'children':[{'tag':_0x2a21('0x4'),'attributes':{'class':['ck',_0x2a21('0x2')]},'children':[{'text':_0x2d9a3c['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x2a21('0x6')]},'children':[new _0x5e4e6c(_0x38a57c,_0x22e981[_0x2a21('0x5')],!0x0)]}],'on':{'click':_0x2d9a3c['to'](this[_0x2a21('0x9')]['bind'](this))}});}[_0x2a21('0x9')](){this[_0x2a21('0xf')]=!0x0,this[_0x2a21('0xa')]('select',{'parentId':this[_0x2a21('0x0')]});}[_0x2a21('0xd')](){this[_0x2a21('0xf')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1a07=['long','toLocaleDateString','numeric','toLocaleTimeString'];(function(_0xa3a6af,_0x1a07dc){var _0x2fda54=function(_0x4bb083){while(--_0x4bb083){_0xa3a6af['push'](_0xa3a6af['shift']());}};_0x2fda54(++_0x1a07dc);}(_0x1a07,0x8e));var _0x2fda=function(_0xa3a6af,_0x1a07dc){_0xa3a6af=_0xa3a6af-0x0;var _0x2fda54=_0x1a07[_0xa3a6af];return _0x2fda54;};export function dateToPrettyFormat(_0x534776,_0x8ed24f){return _0x8ed24f[_0x2fda('0x3')](_0x534776,{'month':_0x2fda('0x2'),'day':_0x2fda('0x0')})+',\x20'+_0x8ed24f[_0x2fda('0x1')](_0x534776,{'hour':_0x2fda('0x0'),'minute':_0x2fda('0x0')});}
23
+ var _0x4e5f=['toLocaleDateString','numeric','toLocaleTimeString'];(function(_0xc5f820,_0x4e5fb9){var _0x351f46=function(_0x5af536){while(--_0x5af536){_0xc5f820['push'](_0xc5f820['shift']());}};_0x351f46(++_0x4e5fb9);}(_0x4e5f,0x97));var _0x351f=function(_0xc5f820,_0x4e5fb9){_0xc5f820=_0xc5f820-0x0;var _0x351f46=_0x4e5f[_0xc5f820];return _0x351f46;};export function dateToPrettyFormat(_0x32a712,_0x432a40){return _0x432a40[_0x351f('0x2')](_0x32a712,{'month':'long','day':_0x351f('0x0')})+',\x20'+_0x432a40[_0x351f('0x1')](_0x32a712,{'hour':_0x351f('0x0'),'minute':_0x351f('0x0')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5be9=['extendTemplate','keystrokes','listenTo','revisionNameInputView','input','setTemplate','forEach','render','value','revisionNameInputValue','ck-button-save','ck-responsive-form','arrowdown','Name\x20of\x20the\x20revision\x20(optional)','fieldView','check','cancelButtonView','ck-button-cancel','execute','submit','label','focus','locale','ck-revision-history-save-revision-form','_focusCycler','trim','Save','220','shift\x20+\x20tab','saveButtonView','Cancel','set','cancel','element','_createButton','arrowright','add','arrowleft','revisionName','_createRevisionNameInput','focusTracker','focusFirst','stopPropagation'];(function(_0x2226aa,_0x5be93c){const _0x17ed56=function(_0x3c8d02){while(--_0x3c8d02){_0x2226aa['push'](_0x2226aa['shift']());}};_0x17ed56(++_0x5be93c);}(_0x5be9,0xf3));const _0x17ed=function(_0x2226aa,_0x5be93c){_0x2226aa=_0x2226aa-0x0;let _0x17ed56=_0x5be9[_0x2226aa];return _0x17ed56;};import{icons as _0xe9a11d}from'ckeditor5/src/core';import{ButtonView as _0x1e15e4,FocusCycler as _0x57a876,LabeledFieldView as _0x318212,View as _0x47a003,ViewCollection as _0x45baa8,createLabeledInputText as _0x1478b1,injectCssTransitionDisabler as _0x50c8fd,submitHandler as _0x5a2f22}from'ckeditor5/src/ui';import{FocusTracker as _0x321ce5,KeystrokeHandler as _0x2428c8}from'ckeditor5/src/utils';import{getTranslation as _0x3abda9}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class wt extends _0x47a003{constructor(_0x598192){super(_0x598192),this[_0x17ed('0xc')]=new _0x321ce5(),this['keystrokes']=new _0x2428c8(),this[_0x17ed('0x3')](_0x17ed('0x18'),''),this[_0x17ed('0x12')]=this[_0x17ed('0xb')](),this[_0x17ed('0x1')]=this[_0x17ed('0x6')](_0x3abda9(_0x598192,_0x17ed('0x29')),_0xe9a11d[_0x17ed('0x1e')],_0x17ed('0x19')),this[_0x17ed('0x1')]['type']=_0x17ed('0x22'),this[_0x17ed('0x1f')]=this[_0x17ed('0x6')](_0x3abda9(_0x598192,_0x17ed('0x2')),_0xe9a11d[_0x17ed('0x4')],_0x17ed('0x20'),_0x17ed('0x4')),this['_focusables']=new _0x45baa8(),this[_0x17ed('0x27')]=new _0x57a876({'focusables':this['_focusables'],'focusTracker':this[_0x17ed('0xc')],'keystrokeHandler':this[_0x17ed('0x10')],'actions':{'focusPrevious':_0x17ed('0x0'),'focusNext':'tab'}}),this[_0x17ed('0x14')]({'tag':'form','attributes':{'class':['ck',_0x17ed('0x26'),_0x17ed('0x1a')],'tabindex':'-1'},'children':[this[_0x17ed('0x12')],this[_0x17ed('0x1')],this[_0x17ed('0x1f')]]}),_0x50c8fd(this);}[_0x17ed('0x16')](){super['render'](),_0x5a2f22({'view':this}),([this[_0x17ed('0x12')],this['saveButtonView'],this['cancelButtonView']][_0x17ed('0x15')](_0x417d46=>{this['_focusables'][_0x17ed('0x8')](_0x417d46),this[_0x17ed('0xc')]['add'](_0x417d46['element']);}),this['keystrokes'][_0x17ed('0x11')](this[_0x17ed('0x5')]));const _0x38afa2=_0x40f59f=>_0x40f59f[_0x17ed('0xe')]();this[_0x17ed('0x10')]['set'](_0x17ed('0x7'),_0x38afa2),this[_0x17ed('0x10')][_0x17ed('0x3')](_0x17ed('0x9'),_0x38afa2),this[_0x17ed('0x10')][_0x17ed('0x3')]('arrowup',_0x38afa2),this[_0x17ed('0x10')][_0x17ed('0x3')](_0x17ed('0x1b'),_0x38afa2);}[_0x17ed('0x24')](){this[_0x17ed('0x27')][_0x17ed('0xd')]();}get[_0x17ed('0xa')](){return this['revisionNameInputView'][_0x17ed('0x1d')][_0x17ed('0x5')][_0x17ed('0x17')][_0x17ed('0x28')]();}set[_0x17ed('0xa')](_0x3b379e){this[_0x17ed('0x12')][_0x17ed('0x1d')][_0x17ed('0x5')]['value']=_0x3b379e[_0x17ed('0x28')]();}['reset'](){this[_0x17ed('0x12')]['fieldView'][_0x17ed('0x5')]['value']='';}['_createRevisionNameInput'](){const _0x269ea7=new _0x318212(this['locale'],_0x1478b1),_0x49c9ac=_0x269ea7['fieldView'];return _0x49c9ac[_0x17ed('0xf')]({'attributes':{'maxlength':_0x17ed('0x2a')}}),_0x269ea7[_0x17ed('0x23')]=_0x3abda9(this[_0x17ed('0x25')],_0x17ed('0x1c')),_0x49c9ac['on'](_0x17ed('0x13'),()=>{this[_0x17ed('0x18')]=_0x49c9ac[_0x17ed('0x5')]['value'][_0x17ed('0x28')]();}),_0x269ea7;}[_0x17ed('0x6')](_0x5ac512,_0x58cf49,_0x222ab2,_0x6ee74f){const _0x21de45=new _0x1e15e4(this['locale']);return _0x21de45[_0x17ed('0x3')]({'label':_0x5ac512,'icon':_0x58cf49,'tooltip':!0x0}),_0x21de45[_0x17ed('0xf')]({'attributes':{'class':_0x222ab2}}),_0x6ee74f&&_0x21de45['delegate'](_0x17ed('0x21'))['to'](this,_0x6ee74f),_0x21de45;}}
23
+ const _0x179c=['locale','ck-responsive-form','setTemplate','label','ck-button-save','extendTemplate','cancel','reset','input','forEach','listenTo','keystrokes','set','ck-button-cancel','render','form','revisionNameInputValue','shift\x20+\x20tab','execute','220','_createRevisionNameInput','_focusCycler','arrowup','stopPropagation','focusTracker','arrowright','element','revisionName','ck-revision-history-save-revision-form','trim','arrowleft','focusFirst','_createButton','_focusables','focus','value','cancelButtonView','Save','submit','saveButtonView','revisionNameInputView','delegate','fieldView','arrowdown','check','add'];(function(_0xaf9f2e,_0x179c40){const _0x1c9cc7=function(_0x367134){while(--_0x367134){_0xaf9f2e['push'](_0xaf9f2e['shift']());}};_0x1c9cc7(++_0x179c40);}(_0x179c,0x92));const _0x1c9c=function(_0xaf9f2e,_0x179c40){_0xaf9f2e=_0xaf9f2e-0x0;let _0x1c9cc7=_0x179c[_0xaf9f2e];return _0x1c9cc7;};import{icons as _0x51beaa}from'ckeditor5/src/core';import{ButtonView as _0x4452cf,FocusCycler as _0x56bc61,LabeledFieldView as _0x20db42,View as _0x1a3ebc,ViewCollection as _0x10e1e4,createLabeledInputText as _0x42de9e,injectCssTransitionDisabler as _0x3a6156,submitHandler as _0x4b173e}from'ckeditor5/src/ui';import{FocusTracker as _0x17a9ea,KeystrokeHandler as _0x45d9e9}from'ckeditor5/src/utils';import{getTranslation as _0x56eb39}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class wt extends _0x1a3ebc{constructor(_0x3cd628){super(_0x3cd628),this[_0x1c9c('0x10')]=new _0x17a9ea(),this['keystrokes']=new _0x45d9e9(),this[_0x1c9c('0x4')]('revisionNameInputValue',''),this[_0x1c9c('0x20')]=this['_createRevisionNameInput'](),this[_0x1c9c('0x1f')]=this['_createButton'](_0x56eb39(_0x3cd628,_0x1c9c('0x1d')),_0x51beaa[_0x1c9c('0x24')],_0x1c9c('0x2a')),this['saveButtonView']['type']=_0x1c9c('0x1e'),this['cancelButtonView']=this['_createButton'](_0x56eb39(_0x3cd628,'Cancel'),_0x51beaa[_0x1c9c('0x2c')],_0x1c9c('0x5'),_0x1c9c('0x2c')),this['_focusables']=new _0x10e1e4(),this[_0x1c9c('0xd')]=new _0x56bc61({'focusables':this[_0x1c9c('0x19')],'focusTracker':this[_0x1c9c('0x10')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x1c9c('0x9'),'focusNext':'tab'}}),this[_0x1c9c('0x28')]({'tag':_0x1c9c('0x7'),'attributes':{'class':['ck',_0x1c9c('0x14'),_0x1c9c('0x27')],'tabindex':'-1'},'children':[this[_0x1c9c('0x20')],this[_0x1c9c('0x1f')],this[_0x1c9c('0x1c')]]}),_0x3a6156(this);}['render'](){super[_0x1c9c('0x6')](),_0x4b173e({'view':this}),([this[_0x1c9c('0x20')],this[_0x1c9c('0x1f')],this[_0x1c9c('0x1c')]][_0x1c9c('0x1')](_0x1f59de=>{this['_focusables'][_0x1c9c('0x25')](_0x1f59de),this[_0x1c9c('0x10')][_0x1c9c('0x25')](_0x1f59de['element']);}),this[_0x1c9c('0x3')][_0x1c9c('0x2')](this[_0x1c9c('0x12')]));const _0x2d3715=_0x29276f=>_0x29276f[_0x1c9c('0xf')]();this[_0x1c9c('0x3')][_0x1c9c('0x4')](_0x1c9c('0x11'),_0x2d3715),this[_0x1c9c('0x3')][_0x1c9c('0x4')](_0x1c9c('0x16'),_0x2d3715),this[_0x1c9c('0x3')][_0x1c9c('0x4')](_0x1c9c('0xe'),_0x2d3715),this[_0x1c9c('0x3')][_0x1c9c('0x4')](_0x1c9c('0x23'),_0x2d3715);}[_0x1c9c('0x1a')](){this[_0x1c9c('0xd')][_0x1c9c('0x17')]();}get['revisionName'](){return this[_0x1c9c('0x20')][_0x1c9c('0x22')][_0x1c9c('0x12')]['value']['trim']();}set[_0x1c9c('0x13')](_0x10fa35){this['revisionNameInputView'][_0x1c9c('0x22')][_0x1c9c('0x12')][_0x1c9c('0x1b')]=_0x10fa35[_0x1c9c('0x15')]();}[_0x1c9c('0x2d')](){this[_0x1c9c('0x20')][_0x1c9c('0x22')][_0x1c9c('0x12')]['value']='';}[_0x1c9c('0xc')](){const _0x194d99=new _0x20db42(this[_0x1c9c('0x26')],_0x42de9e),_0x3fffa9=_0x194d99['fieldView'];return _0x3fffa9[_0x1c9c('0x2b')]({'attributes':{'maxlength':_0x1c9c('0xb')}}),_0x194d99[_0x1c9c('0x29')]=_0x56eb39(this[_0x1c9c('0x26')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x3fffa9['on'](_0x1c9c('0x0'),()=>{this[_0x1c9c('0x8')]=_0x3fffa9['element']['value'][_0x1c9c('0x15')]();}),_0x194d99;}[_0x1c9c('0x18')](_0x2d3b57,_0x12806d,_0x2dfc53,_0x18a5ba){const _0x518d95=new _0x4452cf(this['locale']);return _0x518d95[_0x1c9c('0x4')]({'label':_0x2d3b57,'icon':_0x12806d,'tooltip':!0x0}),_0x518d95[_0x1c9c('0x2b')]({'attributes':{'class':_0x2dfc53}}),_0x18a5ba&&_0x518d95[_0x1c9c('0x21')](_0x1c9c('0xa'))['to'](this,_0x18a5ba),_0x518d95;}}