@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231123.0 → 0.0.0-nightly-20231125.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 _0x512f=['attributesBefore','addMarker:revision-suggestion:deletion','elementEnd','removeAttribute','_markMarkers','concat','attachChange','addMarker:revision-suggestion:insertion','markerRange','_cleanUp','_activeViewTarget','highest','insertions','splice','left','data','isSuggestion','_removeMissingPairs','ck-suggestion-marker-','ck-revision-history-root-add','RevisionViewer','catch','isBefore','removeClass','shift','_setConversion','getClientRects','revisionHistoryAttachChange','suggestion','clear','refresh','insert','text','attributes','_setDistance','isContent','isEnabled','createAttributeElement','low','end','mousedown','ck-suggestion-marker--active','upcast','domEvent','toViewElement','_makeModelFromViewString','isNavigationMode','isReady','addClass','processor','startsWith','suggestion:','enableReadOnlyMode','setAttribute','activeChange','next','downcastDispatcher','config','isRemoveSuggestion','_initInteractions','forceDisabled','isAtStart','isObject','stop','mouseover','add','_cleanMarkers','createUIElement','nextPosition','markersEnd','getRevision','index','span','isBlock','_markSuggestions','ck-revision-history-root-remove','removeMarker:revision','roots','startIndex','showStack','markersStart','revisionHistoryLabel','change:numberOfChanges','_update','isAtEnd','mapViewToDom','isInline','isAfter','then','set','checkAttribute','model','forward','_changeView','getCustomProperty','_getDiff','hasClass','target','pairId','uiElement','plugins','parse','repository','getRootNames','editingDowncast','_removeUnsupportedChanges','findIndex','isAttached','length','isOnRoot','mapper','_getViewForChange','endIndex','_sortAndFilterDiffChanges','activeView','editor','pluginName','adapter','high','bottom','revision','parent','nodeAfter','consume','toModel','changes','view','markerToData','useFillerType','keys','change:isEnabled','_getRevisionsRange','getDomRoot','ck-suggestion-marker','dataToMarker','_balloon','object','revision-viewer','editing','resolve','_revisions','detachRoot','insertion','toViewPosition','_setChanges','toData','type','schema','WidgetToolbarRepository','element','item','error','_markMismatchedRemovedTags','_step','getAttribute','isAdded','listenTo','modelRange','_fixObsoleteTags','getRevisionData','for','get','from','_changeIdToChange','deletion','revision:','affectsData','data-change-id','createRevision','isEqual','revision-suggestion:','loadRevisionData','offsetSize','getRoot','showNextChange','getIndex','createPositionBefore','updatePosition','find','_makeModelFromTape','removeMarker:revision-suggestion','ck-revision-history-root--active','return','ck-suggestion-preview-marker-','delete','nextSibling','createRange','markerNameToElements','attribute:vid','addRevision','_removeRevisionMarkers','markerName','_getViewObj','string','maxOffset','revision-start','level','bind','requires','change:activeView','abs','_refreshStartEndIndex','change','all','sort','has','consumable','execute','destroy','restoreRevision','dataDowncast','change:isReady','getRevisionRootsAttributes','getWalker','range','element:pre','document','commands','userId','ck-suggestion-marker-merge','elementToAttribute','_data','split','domConverter','indexOf','merge','isIncorrect','diff','test','comment','isAddSuggestion','change:activeChange','first','numberOfChanges','_markInsertions','_joinTapes','_getChangeFromId','_appendChild','toViewRange','flat','conversion','_processTape','selection','markerToHighlight','rootName','elementStart','writer','-new','hasAttribute','_makeTape','isLimit','unbindElementFromMarkerName','vid_start','getAttributes','ck-suggestion-preview-marker','attributesAfter','revision-suggestion','revision-comment:','_findChangeIdFromDomTarget','reconvertMarker','start','restoreRevisionCallback','vid_end','init','distance','addRevisionData','children','createRangeIn','addHighlight','createPositionFromPath','slice','push','RevisionsRepository','unshift','getChild','enqueueChange','includes','isRemoved','name','ck-editor__editable__overlay','viewItem','map','vid','forEach','side','previousPosition','currentChangeNumber','markers','remove','oldRevisionId','bindElementToMarker','changeId','diffData','filter','deletions','ck-revision-history-root-'];(function(_0x330ea7,_0x512f00){const _0x10ed49=function(_0x9667a2){while(--_0x9667a2){_0x330ea7['push'](_0x330ea7['shift']());}};_0x10ed49(++_0x512f00);}(_0x512f,0x13a));const _0x10ed=function(_0x330ea7,_0x512f00){_0x330ea7=_0x330ea7-0x0;let _0x10ed49=_0x512f[_0x330ea7];return _0x10ed49;};import{Plugin as _0x27f16f,Command as _0x46c3fd}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x320b83}from'ckeditor5/src/utils';import{ContextualBalloon as _0x1af1cc}from'ckeditor5/src/ui';import{DocumentFragment as _0x1d3a31,Element as _0x5577c4,Text as _0x879057,ViewDocumentFragment as _0x2df832,ViewText as _0x18ad25,ViewElement as _0x34c193,ViewContainerElement as _0xfbd701,ViewAttributeElement as _0x2d52cf,ViewEmptyElement as _0x5db82e,ViewRawElement as _0x4418d7,ViewUIElement as _0x268adc}from'ckeditor5/src/engine';import{Users as _0x199734,getMarkerDomElement as _0x4d02c5}from'ckeditor5-collaboration/src/collaboration-core';import _0x542f7b from'./ui/revisionviewer/changedetailsview';import _0x5aa07e from'./revisionsrepository';import _0x406215 from'./changeitem';import{default as _0x3c7eb4}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x1eb127}from'lodash-es';const tt={'c':_0xfbd701,'a':_0x2d52cf,'e':_0x5db82e,'r':_0x4418d7,'u':_0x268adc};export default class d extends _0x27f16f{static get[_0x10ed('0x62')](){return _0x10ed('0x2');}static get[_0x10ed('0xb4')](){return[_0x199734,_0x1af1cc,_0x5aa07e];}constructor(_0x37669d){super(_0x37669d),this[_0x10ed('0x54')]=this[_0x10ed('0x61')]['plugins'][_0x10ed('0x8f')](_0x10ed('0xfe')),this['set']('activeChange',null),this[_0x10ed('0x47')](_0x10ed('0x60'),null),this[_0x10ed('0x120')]=null,this[_0x10ed('0x47')](_0x10ed('0xd1'),null),this['set'](_0x10ed('0x1d'),!0x1),this[_0x10ed('0x47')](_0x10ed('0x12'),!0x0),this['on']('change:isEnabled',(_0x4992d3,_0x1a9b2a,_0x55e748)=>{this[_0x10ed('0x24')]=null,this[_0x10ed('0x60')]=null,this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0xb8')](_0x54ff03=>{for(const _0x48df43 of this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0xc6')][_0x10ed('0x3b')])_0x55e748?_0x54ff03[_0x10ed('0x5')](_0x10ed('0x105'),_0x48df43):_0x54ff03['addClass']('ck-editor__editable__overlay',_0x48df43);});}),this[_0x10ed('0xb3')](_0x10ed('0x1c'))['to'](this,'activeChange',_0x3f1f8c=>null!==_0x3f1f8c),this[_0x10ed('0xb3')](_0x10ed('0x10c'))['to'](this,'isReady',this,_0x10ed('0xd1'),this,'activeChange',(_0x56a1b3,_0x1b228f,_0x21dcba)=>_0x56a1b3&&_0x21dcba?_0x1b228f['changes'][_0x10ed('0x9d')](_0x21dcba):0x0),this['bind'](_0x10ed('0xd7'))['to'](this,'isReady',this,_0x10ed('0xd1'),(_0x3bbd58,_0x333362)=>_0x3bbd58?_0x333362[_0x10ed('0x6b')]['length']:0x0),this[_0x10ed('0x4b')]=null,this[_0x10ed('0x91')]=new Map(),this[_0x10ed('0x63')]=null,this['_balloon']=this[_0x10ed('0x61')][_0x10ed('0x52')]['get'](_0x1af1cc);}[_0x10ed('0xf5')](){const _0x1b3fb4=this['editor'],_0x2cdad6=new ShowChangeCommand(_0x1b3fb4,{'direction':'backward'}),_0x5b8dc5=new ShowChangeCommand(_0x1b3fb4,{'direction':_0x10ed('0x4a')});(_0x1b3fb4['commands']['add']('showPreviousChange',_0x2cdad6),_0x1b3fb4['commands'][_0x10ed('0x2f')](_0x10ed('0x9c'),_0x5b8dc5),_0x1b3fb4[_0x10ed('0xc7')][_0x10ed('0x2f')](_0x10ed('0xbf'),new RestoreRevisionCommand(_0x1b3fb4)),this['on'](_0x10ed('0x40'),()=>{_0x2cdad6[_0x10ed('0xc')](),_0x5b8dc5[_0x10ed('0xc')]();}),this[_0x10ed('0x7')](),this[_0x10ed('0x29')](),_0x1b3fb4[_0x10ed('0x22')](_0x10ed('0x77')),_0x1b3fb4[_0x10ed('0x52')][_0x10ed('0xbb')](_0x10ed('0x82')))&&_0x1b3fb4['plugins'][_0x10ed('0x8f')](_0x10ed('0x82'))[_0x10ed('0x2a')](_0x10ed('0x77'));}async[_0x10ed('0x8d')](_0x2f50c5){await this[_0x10ed('0x99')](_0x2f50c5);const _0xb283d7={};for(const _0xbfcc8f in _0x2f50c5[_0x10ed('0x112')]){if(_0x2f50c5[_0x10ed('0x112')][_0xbfcc8f][_0x10ed('0x11c')]&&!_0x2f50c5[_0x10ed('0x112')][_0xbfcc8f][_0x10ed('0x11c')][_0x10ed('0x59')])continue;const _0x2022fb=this[_0x10ed('0xac')](JSON[_0x10ed('0x53')](_0x2f50c5[_0x10ed('0x112')][_0xbfcc8f][_0x10ed('0x122')])),_0x1a12b4=this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0xc6')],_0x628678=new _0x2df832(_0x1a12b4,_0x2022fb[_0x10ed('0x107')](_0x403423=>this['_getViewObj'](_0x403423)));this[_0x10ed('0x61')][_0x10ed('0x125')]['processor'][_0x10ed('0x6e')]('marked'),_0xb283d7[_0xbfcc8f]=this[_0x10ed('0x61')][_0x10ed('0x125')][_0x10ed('0x1f')][_0x10ed('0x7f')](_0x628678),this['editor'][_0x10ed('0x125')][_0x10ed('0x1f')][_0x10ed('0x6e')]('default');}return _0xb283d7;}async[_0x10ed('0xc2')](_0x5bde50){await this['loadRevisionData'](_0x5bde50);const _0x458454={};for(const _0xbb3992 in _0x5bde50[_0x10ed('0x112')])_0x5bde50[_0x10ed('0x112')][_0xbb3992][_0x10ed('0x11c')]&&!_0x5bde50['diffData'][_0xbb3992]['attachChange'][_0x10ed('0x59')]||(_0x458454[_0xbb3992]=_0x5bde50[_0x10ed('0x112')][_0xbb3992][_0x10ed('0xed')]||{});return _0x458454;}[_0x10ed('0xac')](_0x2e36bc){return(_0x2e36bc=_0x2e36bc['filter'](_0x2012e6=>!_0x2012e6['name']||_0x10ed('0xb1')!==_0x2012e6[_0x10ed('0x104')]&&'revision-end'!==_0x2012e6[_0x10ed('0x104')]))['forEach'](_0x451291=>{_0x10ed('0xaf')!=typeof _0x451291&&(_0x451291[_0x10ed('0xf8')]=this['_removeRevisionMarkers'](_0x451291[_0x10ed('0xf8')]),_0x451291[_0x10ed('0xf')]=_0x451291['attributes']['filter'](_0x526a91=>!_0x526a91[0x0][_0x10ed('0x20')]('data-revision-')));}),_0x2e36bc;}async['compare'](_0x3ed74c,_0x5644be,_0x2de20f=!0x1){if(!this[_0x10ed('0x12')])return;const _0x3801cf=this['diff'],_0xf14b8f=this['repository'],_0x20d560=_0x10ed('0xaf')==typeof _0x3ed74c?_0xf14b8f[_0x10ed('0x34')](_0x3ed74c):_0x3ed74c,_0x17d94c=_0x10ed('0xaf')==typeof _0x5644be?_0xf14b8f['getRevision'](_0x5644be):_0x5644be,_0xe61879=_0x20d560['id'],_0x485855=_0x17d94c?_0x17d94c['id']:null;if(!_0x2de20f&&this['diff']&&this[_0x10ed('0xd1')]['newRevisionId']===_0xe61879&&this[_0x10ed('0xd1')][_0x10ed('0x10f')]===_0x485855)return Promise[_0x10ed('0x79')]();this[_0x10ed('0x1d')]=!0x1,this[_0x10ed('0x60')]=null,this[_0x10ed('0x24')]=null,this[_0x10ed('0xd1')]=new _0x3c7eb4(_0xe61879,_0x485855);const _0x300a25=this[_0x10ed('0x71')](_0x20d560,_0x17d94c,!0x0)[_0x10ed('0x107')](_0x5cae0d=>this[_0x10ed('0x99')](_0x5cae0d));return _0x300a25[_0x10ed('0xfd')](new Promise(_0x206b4a=>{setTimeout(_0x206b4a,0x14);})),Promise[_0x10ed('0xb9')](_0x300a25)[_0x10ed('0x46')](()=>{if(!this[_0x10ed('0x12')])return;this[_0x10ed('0x11f')]();const _0x3b008a=this[_0x10ed('0x4d')](_0xe61879,_0x485855);for(const _0x2e24a2 of _0x3b008a[_0x10ed('0x6b')])this[_0x10ed('0x91')][_0x10ed('0x47')](_0x2e24a2['id'],_0x2e24a2);this['editor'][_0x10ed('0x49')]['enqueueChange']({'isUndoable':!0x1},_0x557d16=>{for(const _0x5e3c0a of this[_0x10ed('0x61')][_0x10ed('0x49')]['document'][_0x10ed('0x55')]())_0x557d16[_0x10ed('0x7b')](_0x5e3c0a);for(const _0x2e629a of Object[_0x10ed('0x6f')](_0x3b008a['model'])){const _0x273fb8=_0x557d16['addRoot'](_0x2e629a);for(const _0x5957fc of Object[_0x10ed('0x6f')](_0x3b008a[_0x10ed('0xf')][_0x2e629a]))_0x557d16[_0x10ed('0x23')](_0x5957fc,_0x3b008a[_0x10ed('0xf')][_0x2e629a][_0x5957fc],_0x273fb8);_0x557d16[_0x10ed('0xd')](_0x3b008a['model'][_0x2e629a],_0x273fb8,0x0);}}),this[_0x10ed('0xd1')][_0x10ed('0x7e')](this[_0x10ed('0x5f')](_0x3b008a[_0x10ed('0x6b')])),this[_0x10ed('0x1d')]=!0x0;})[_0x10ed('0x3')](_0x531c26=>{console[_0x10ed('0x85')](_0x531c26),this['_cleanUp'](),_0x3801cf&&(this['diff']=_0x3801cf),this['isReady']=!0x0;});}[_0x10ed('0xf7')](_0x39f316,_0x549e8c){const _0x4662d2=this[_0x10ed('0x54')][_0x10ed('0x96')](_0x39f316);return _0x4662d2['on'](_0x10ed('0x41'),(_0x2882bb,_0xdd480,_0x1f2d5d)=>_0x549e8c(_0xdd480,_0x1f2d5d,_0x4662d2)),this['repository'][_0x10ed('0xab')](_0x4662d2),_0x4662d2;}['loadRevisionData'](_0x445abc){if(!_0x445abc||_0x445abc['diffData'])return Promise[_0x10ed('0x79')]();{const _0x103ef8=this['editor'][_0x10ed('0x27')][_0x10ed('0x8f')]('collaboration.channelId');return this[_0x10ed('0x63')]['getRevision']({'channelId':_0x103ef8,'revisionId':_0x445abc['id']})[_0x10ed('0x46')](_0x24236b=>{_0x445abc['_update']({'diffData':_0x24236b['diffData']},!0x0);});}}[_0x10ed('0x11f')](){this[_0x10ed('0x24')]=null,this['_cleanMarkers'](),this[_0x10ed('0x4b')]&&this['_changeView'][_0x10ed('0xbe')](),this[_0x10ed('0x4b')]=null,this['_changeIdToChange'][_0x10ed('0xb')](),this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0x101')]({'isUndoable':!0x1},_0x12ed64=>{for(const _0x30e3c9 of this[_0x10ed('0x61')]['model']['document'][_0x10ed('0x55')]())_0x12ed64['detachRoot'](_0x30e3c9);});}['_sortAndFilterDiffChanges'](_0xbecdbe){const _0x162909=[],_0x5edaa9=new Map();for(const _0x150c8b of this[_0x10ed('0x61')][_0x10ed('0x49')]['document'][_0x10ed('0x55')]()){const _0x15ce90=this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0x72')](_0x150c8b);if(!_0x15ce90)continue;const _0xa6b73=_0x15ce90[_0x10ed('0x8')]()[_0x10ed('0x84')](0x0);_0xa6b73&&(_0x162909[_0x10ed('0xfd')](_0x150c8b),_0x5edaa9['set'](_0x150c8b,_0xa6b73));}return _0x162909[_0x10ed('0xba')]((_0x1a48e3,_0x83a711)=>{const _0x37e572=_0x5edaa9[_0x10ed('0x8f')](_0x1a48e3),_0x36755d=_0x5edaa9[_0x10ed('0x8f')](_0x83a711);return _0x37e572['y']-_0x36755d['y']||_0x37e572['x']-_0x36755d['x'];}),(_0xbecdbe=_0xbecdbe[_0x10ed('0x113')](_0x37ce0b=>_0x162909['includes'](_0x37ce0b['rootName'])))[_0x10ed('0xba')]((_0x57473c,_0x7e8329)=>_0x162909[_0x10ed('0xce')](_0x57473c[_0x10ed('0xe2')])-_0x162909[_0x10ed('0xce')](_0x7e8329['rootName'])),_0xbecdbe;}[_0x10ed('0xe7')](_0x124c56){const _0x25a0ee=Array['from'](_0x124c56[_0x10ed('0x10d')])['filter'](([_0xdf540b,_0x44b83c])=>_0xdf540b[_0x10ed('0x20')](_0x10ed('0x93'))&&!_0x44b83c['isCollapsed']),_0x386573=Array['from'](this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0xf9')](_0x124c56)[_0x10ed('0xc3')]({'singleCharacters':!0x0}));if(0x0!=_0x25a0ee[_0x10ed('0x5a')])for(const _0x4d39a9 of _0x386573){const [_0x2f2ede,_0x142b40]=_0x25a0ee[0x0],[,_0x18ba16,_0x9c694a]=_0x2f2ede[_0x10ed('0xcc')](':');if(_0x142b40['end'][_0x10ed('0x97')](_0x4d39a9[_0x10ed('0x32')])&&_0x25a0ee['shift'](),(_0x4d39a9[_0x10ed('0x10b')][_0x10ed('0x97')](_0x142b40[_0x10ed('0xf2')])||_0x4d39a9['previousPosition'][_0x10ed('0x45')](_0x142b40[_0x10ed('0xf2')]))&&(_0x10ed('0x7c')==_0x18ba16?_0x4d39a9[_0x10ed('0x89')]={'userId':_0x9c694a}:_0x10ed('0x92')==_0x18ba16&&(_0x4d39a9['isRemoved']={'userId':_0x9c694a})),0x0==_0x25a0ee['length'])break;}return _0x386573;}['_refreshStartEndIndex'](_0x3fa3fd){const _0xf2d122=new Map();for(let _0x106417=0x0;_0x106417<_0x3fa3fd[_0x10ed('0x5a')];_0x106417++)_0x10ed('0xe')===_0x3fa3fd[_0x106417]['type']?(_0x3fa3fd[_0x106417][_0x10ed('0x84')][_0x10ed('0x3c')]=_0x106417,_0x3fa3fd[_0x106417][_0x10ed('0x84')]['endIndex']=_0x106417):(_0x10ed('0xe3')===_0x3fa3fd[_0x106417]['type']?_0x3fa3fd[_0x106417][_0x10ed('0x84')]['startIndex']=_0x106417:_0x10ed('0x118')===_0x3fa3fd[_0x106417][_0x10ed('0x80')]&&(_0x3fa3fd[_0x106417][_0x10ed('0x84')][_0x10ed('0x5e')]=_0x106417),_0xf2d122[_0x10ed('0x47')](_0x3fa3fd[_0x106417]['id'],_0x106417));for(const _0x54aea5 of _0xf2d122['values']())'elementStart'===_0x3fa3fd[_0x54aea5]['type']?_0x3fa3fd[_0x54aea5][_0x10ed('0x84')][_0x10ed('0x5e')]=_0xf2d122['get'](_0x3fa3fd[_0x54aea5][_0x10ed('0x50')]):_0x10ed('0x118')===_0x3fa3fd[_0x54aea5][_0x10ed('0x80')]&&(_0x3fa3fd[_0x54aea5][_0x10ed('0x84')]['startIndex']=_0xf2d122[_0x10ed('0x8f')](_0x3fa3fd[_0x54aea5][_0x10ed('0x50')]));}[_0x10ed('0xdf')](_0x535c32){for(let _0x340449=0x0;_0x340449<_0x535c32[_0x10ed('0x5a')];_0x340449++){if(_0x10ed('0xe3')===_0x535c32[_0x340449][_0x10ed('0x80')])_0x535c32[_0x340449][_0x10ed('0x84')][_0x10ed('0x3c')]=_0x340449;else{if(_0x10ed('0x118')===_0x535c32[_0x340449]['type']){_0x535c32[_0x340449]['item']['endIndex']=_0x340449;const _0x4af7db=_0x535c32[_0x340449][_0x10ed('0x84')][_0x10ed('0x3c')];_0x535c32[_0x4af7db]['pairId']=_0x535c32[_0x340449]['id'],_0x535c32[_0x340449][_0x10ed('0x50')]=_0x535c32[_0x4af7db]['id'];}else _0x535c32[_0x340449][_0x10ed('0x84')][_0x10ed('0x3c')]=_0x340449,_0x535c32[_0x340449][_0x10ed('0x84')][_0x10ed('0x5e')]=_0x340449,_0x535c32[_0x340449][_0x10ed('0x50')]=null;}_0x535c32[_0x340449][_0x10ed('0x3e')]||(_0x535c32[_0x340449][_0x10ed('0x3e')]=[],_0x535c32[_0x340449][_0x10ed('0x33')]=[]);}}[_0x10ed('0xd8')](_0x242f18,_0x5ab936){const _0x5c2387=_0x242f18[_0x10ed('0x113')](_0x2f695d=>!_0x2f695d[_0x10ed('0x89')]);for(let _0x4c4e75=0x0;_0x4c4e75<_0x5ab936[_0x10ed('0x5a')];_0x4c4e75++)_0x5ab936[_0x4c4e75][_0x10ed('0x89')]&&(_0x5c2387[_0x4c4e75]['isAdded']=_0x5ab936[_0x4c4e75][_0x10ed('0x89')]);}[_0x10ed('0x1b')](_0x1da0f9){const _0x28ac54=JSON['parse'](_0x1da0f9),_0x34c9b0=this['editor'][_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0xc6')],_0x1ca634=new _0x2df832(_0x34c9b0,_0x28ac54['map'](_0x424f26=>this[_0x10ed('0xae')](_0x424f26)));return this[_0x10ed('0x61')][_0x10ed('0x125')][_0x10ed('0x6a')](_0x1ca634);}[_0x10ed('0xae')](_0x1b6d90){const _0x18a6cb=this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0xc6')];if('string'==typeof _0x1b6d90)return new _0x18ad25(_0x18a6cb,_0x1b6d90);{const _0x354ee4=_0x1b6d90[_0x10ed('0xf8')][_0x10ed('0x107')](_0x58fd7b=>this[_0x10ed('0xae')](_0x58fd7b));return new(tt[_0x1b6d90['type']]||_0x34c193)(_0x18a6cb,_0x1b6d90[_0x10ed('0x104')],_0x1b6d90[_0x10ed('0xf')],_0x354ee4);}}['_getDiff'](_0x16a0f7,_0x1861d3=null){const _0x16a70c=this[_0x10ed('0x54')][_0x10ed('0x34')](_0x16a0f7),_0x1fe584=_0x1861d3?this['repository'][_0x10ed('0x34')](_0x1861d3):null,_0x3d2f83=this[_0x10ed('0x71')](_0x16a70c,_0x1fe584),_0x4bc289=_0x3d2f83[_0x3d2f83['length']-0x1],_0x157a40=new Map(),_0x353d14={'model':{},'attributes':{},'changes':[]},_0x5a799b=new Set(),_0x4054a5=new Map();for(let _0x2c3baf=_0x3d2f83[_0x10ed('0x5a')]-0x1;_0x2c3baf>=0x0;_0x2c3baf--){const _0x26dfd8=_0x3d2f83[_0x2c3baf];for(const _0x2dd4d0 of Object[_0x10ed('0x6f')](_0x26dfd8[_0x10ed('0x112')]))if(_0x26dfd8[_0x10ed('0x112')][_0x2dd4d0]['attachChange']){const _0x1ec337=_0x26dfd8[_0x10ed('0x112')][_0x2dd4d0]['attachChange'];_0x1ec337[_0x10ed('0x59')]?(_0x5a799b[_0x10ed('0x2f')](_0x2dd4d0),_0x4054a5['has'](_0x2dd4d0)&&_0x4054a5[_0x10ed('0x8f')](_0x2dd4d0)[_0x10ed('0xc8')]==_0x1ec337['userId']?_0x4054a5['delete'](_0x2dd4d0):_0x4054a5[_0x10ed('0x47')](_0x2dd4d0,_0x1ec337)):_0x4054a5[_0x10ed('0xbb')](_0x2dd4d0)?(_0x5a799b[_0x10ed('0xa6')](_0x2dd4d0),_0x4054a5[_0x10ed('0xa6')](_0x2dd4d0)):(_0x5a799b[_0x10ed('0x2f')](_0x2dd4d0),_0x4054a5['set'](_0x2dd4d0,_0x1ec337));}else _0x5a799b['add'](_0x2dd4d0);}for(const _0x38033c of _0x5a799b){const _0x1ee4ad=_0x4054a5[_0x10ed('0xbb')](_0x38033c)&&!_0x4054a5[_0x10ed('0x8f')](_0x38033c)[_0x10ed('0x59')];let _0x352f46=_0x1ee4ad?_0x3d2f83[_0x10ed('0x5a')]-0x1:0x0;const _0x45c0a8=_0x1ee4ad?-0x1:0x1;for(;_0x3d2f83[_0x352f46];){const _0x2261c7=_0x3d2f83[_0x352f46];if(_0x2261c7[_0x10ed('0x112')][_0x38033c]){const _0xa6f668=_0x1ee4ad?_0x2261c7['diffData'][_0x38033c][_0x10ed('0x116')]:_0x2261c7[_0x10ed('0x112')][_0x38033c][_0x10ed('0xed')];_0x353d14[_0x10ed('0xf')][_0x38033c]=_0xa6f668?_0x1eb127(_0xa6f668):{};break;}_0x352f46+=_0x45c0a8;}}for(const _0xd1d612 of _0x3d2f83){_0xd1d612[_0x10ed('0x49')]={};for(const _0x593835 of _0xd1d612['authors'])_0x157a40[_0x10ed('0x47')](_0x593835['id'],_0x593835);for(const _0xef26a3 of _0x5a799b){const _0x35e0f8=_0xd1d612[_0x10ed('0x112')][_0xef26a3]?_0xd1d612[_0x10ed('0x112')][_0xef26a3][_0x10ed('0x122')]:'[]',_0x42f02a=_0xd1d612['diffData'][_0xef26a3]?_0xd1d612['diffData'][_0xef26a3][_0x10ed('0x114')]:'[]';_0xd1d612[_0x10ed('0x49')][_0xef26a3]={'insertions':this[_0x10ed('0x1b')](_0x35e0f8),'deletions':this[_0x10ed('0x1b')](_0x42f02a)};}}for(const _0x2aa5bb of _0x5a799b){let _0x42025b=null,_0x3a2ebf=0x0;const _0x358ece=new Map(Array[_0x10ed('0x90')](_0x16a70c[_0x10ed('0x49')][_0x2aa5bb][_0x10ed('0x122')][_0x10ed('0x10d')])[_0x10ed('0x113')](([_0x4a1f7b])=>!_0x4a1f7b[_0x10ed('0x20')](_0x10ed('0x93'))));let _0x513624=0x0;for(const _0x1164d4 of _0x3d2f83){const _0x226474=this[_0x10ed('0xe7')](_0x1164d4[_0x10ed('0x49')][_0x2aa5bb][_0x10ed('0x122')]);_0x1164d4==_0x16a70c?(_0x42025b=_0x226474,_0x3a2ebf=_0x42025b[_0x10ed('0x5a')],_0x42025b[_0x10ed('0x109')](_0x2dbeaf=>{_0x2dbeaf['id']=_0x513624++;}),this[_0x10ed('0xdf')](_0x42025b)):this[_0x10ed('0xd8')](_0x42025b,_0x226474);const _0x55690e=_0x42025b[_0x10ed('0x113')](_0x45f6a3=>!_0x45f6a3[_0x10ed('0x89')])['map'](_0x5bcfb9=>_0x5bcfb9['id']);let _0x3958e4=0x0;const _0x90be2=this['_makeTape'](_0x1164d4[_0x10ed('0x49')][_0x2aa5bb][_0x10ed('0x114')]);_0x90be2[_0x10ed('0x109')](_0x37da87=>{_0x37da87[_0x10ed('0x103')]?_0x37da87['id']=_0x3a2ebf++:_0x37da87['id']=_0x55690e[_0x3958e4++];}),this[_0x10ed('0xdf')](_0x90be2),this[_0x10ed('0x10')](_0x42025b,_0x10ed('0x89')),this[_0x10ed('0x10')](_0x90be2,'isRemoved'),_0x1164d4==_0x16a70c&&this[_0x10ed('0x11a')](_0x42025b,_0x358ece),_0x42025b=this[_0x10ed('0xd9')](_0x42025b,_0x90be2),this[_0x10ed('0xb7')](_0x42025b),this[_0x10ed('0x10')](_0x42025b,'isRemoved');}_0x42025b=_0x42025b[_0x10ed('0x113')](_0x18f0bf=>!(_0x18f0bf[_0x10ed('0x89')]&&_0x18f0bf[_0x10ed('0x103')]));const _0x2702d0=new Map(_0x4bc289[_0x10ed('0x49')][_0x2aa5bb][_0x10ed('0x114')][_0x10ed('0x10d')]),_0x291140=new Set(_0x358ece[_0x10ed('0x6f')]());for(const _0x2bf366 of _0x2702d0[_0x10ed('0x6f')]())_0x291140['delete'](_0x2bf366);this[_0x10ed('0x38')](_0x42025b,_0x291140),this[_0x10ed('0x8c')](_0x42025b),_0x42025b=this[_0x10ed('0x127')](_0x42025b),_0x42025b=this[_0x10ed('0x86')](_0x42025b),_0x42025b=this[_0x10ed('0x57')](_0x42025b);const {root:_0x149939,changes:_0x28f597}=this[_0x10ed('0xa1')](_0x42025b,_0x157a40,_0x2aa5bb);_0x353d14[_0x10ed('0x49')][_0x2aa5bb]=_0x149939;const _0x877ae8=_0x4054a5['get'](_0x2aa5bb);if(_0x877ae8){const _0x52823d=_0x157a40[_0x10ed('0x8f')](_0x877ae8['userId']),_0x5d49c1=new _0x406215({'author':_0x52823d,'type':_0x877ae8[_0x10ed('0x59')]?'add':_0x10ed('0x10e'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2aa5bb});_0x28f597[_0x10ed('0xff')](_0x5d49c1),_0x353d14['attributes'][_0x2aa5bb]['revisionHistoryAttachChange']=_0x5d49c1['id'];}_0x353d14[_0x10ed('0x6b')]=_0x353d14['changes'][_0x10ed('0x11b')](_0x28f597);}return _0x353d14;}[_0x10ed('0x11a')](_0x4f3be7,_0x3eb531){for(let _0x546591=0x0;_0x546591<_0x4f3be7[_0x10ed('0x5a')];_0x546591++)for(const [_0x2246d5,_0x3bb69b]of _0x3eb531)_0x3bb69b[_0x10ed('0xf2')][_0x10ed('0x97')](_0x4f3be7[_0x546591][_0x10ed('0x10b')])&&_0x4f3be7[_0x546591][_0x10ed('0x3e')][_0x10ed('0xfd')](_0x2246d5),_0x3bb69b[_0x10ed('0x15')]['isEqual'](_0x4f3be7[_0x546591]['nextPosition'])&&_0x4f3be7[_0x546591][_0x10ed('0x33')][_0x10ed('0xfd')](_0x2246d5);}[_0x10ed('0xd9')](_0x2fd4e1,_0x28da54){let _0x37b443=[],_0x8641a6=0x0,_0x1b0178=0x0;for(;_0x8641a6<_0x2fd4e1[_0x10ed('0x5a')]||_0x1b0178<_0x28da54[_0x10ed('0x5a')];){const _0x498389=_0x2fd4e1[_0x8641a6]||{},_0x1cdd9f=_0x28da54[_0x1b0178]||{};if(_0x498389['id']==_0x1cdd9f['id'])_0x8641a6++,_0x1b0178++,_0x37b443['push'](_0x498389);else{if(_0x1cdd9f[_0x10ed('0x103')]&&_0x498389[_0x10ed('0x89')]){const {commonTape:_0x39b01b,iEnd:_0x95d3f1,jEnd:_0xf169c}=this['_threeWayMerge'](_0x2fd4e1,_0x8641a6,_0x28da54,_0x1b0178);_0x37b443=_0x37b443[_0x10ed('0x11b')](_0x39b01b),_0x8641a6=_0x95d3f1,_0x1b0178=_0xf169c;}else _0x1cdd9f['isRemoved']?(_0x1b0178++,_0x37b443['push'](_0x1cdd9f)):(_0x8641a6++,_0x37b443['push'](_0x498389));}}return _0x37b443;}[_0x10ed('0x38')](_0x627ae5,_0x4875e8){const _0x24f9cb=[];for(let _0x6d1ed3=0x0;_0x6d1ed3<_0x627ae5['length'];_0x6d1ed3++){for(let _0x4ec31f=0x0;_0x4ec31f<_0x627ae5[_0x6d1ed3]['markersStart']['length'];_0x4ec31f++){const _0x6e7f77=_0x627ae5[_0x6d1ed3][_0x10ed('0x3e')][_0x4ec31f];if(!_0x4875e8[_0x10ed('0xbb')](_0x6e7f77))continue;const {group:_0x5c773c,type:_0x487d0d,authorId:_0x3cf0af}=_0x1721a4(_0x6e7f77);'revision-suggestion'!=_0x5c773c||_0x10ed('0x7c')!=_0x487d0d&&_0x10ed('0x92')!=_0x487d0d||(_0x24f9cb[_0x10ed('0xff')]({'type':_0x487d0d,'name':_0x6e7f77,'userId':_0x3cf0af}),_0x627ae5[_0x6d1ed3][_0x10ed('0x3e')]['splice'](_0x4ec31f,0x1),_0x4ec31f--);}_0x3d966a(_0x627ae5[_0x6d1ed3]);for(let _0x7b4041=0x0;_0x7b4041<_0x627ae5[_0x6d1ed3]['markersEnd']['length'];_0x7b4041++){const _0x4bd2b3=_0x627ae5[_0x6d1ed3]['markersEnd'][_0x7b4041];if(!_0x4875e8[_0x10ed('0xbb')](_0x4bd2b3))continue;const {group:_0xcb3d65,type:_0x18d343}=_0x1721a4(_0x4bd2b3);if(_0x10ed('0xee')!=_0xcb3d65||_0x10ed('0x7c')!=_0x18d343&&_0x10ed('0x92')!=_0x18d343)continue;_0x627ae5[_0x6d1ed3][_0x10ed('0x33')][_0x10ed('0x123')](_0x7b4041,0x1),_0x7b4041--;const _0xe841a6=_0x24f9cb[_0x10ed('0x58')](_0x767821=>_0x767821[_0x10ed('0x104')]==_0x4bd2b3);_0xe841a6>-0x1&&_0x24f9cb[_0x10ed('0x123')](_0xe841a6,0x1);}}function _0x1721a4(_0x12ef4a){const _0x412e16=_0x12ef4a['split'](':');return{'group':_0x412e16[0x0],'type':_0x412e16[0x1],'subType':_0x412e16[_0x10ed('0x5a')]>=0x5?_0x412e16[0x2]:null,'id':_0x412e16[_0x10ed('0x5a')]<0x5?_0x412e16[0x2]:_0x412e16[0x3],'authorId':_0x412e16[_0x10ed('0x5a')]<0x5?_0x412e16[0x3]:_0x412e16[0x4],'markerCount':0x6==_0x412e16[_0x10ed('0x5a')]?_0x412e16[0x5]:null};}function _0x3d966a(_0x43ee88){for(let _0x5b74a5=0x0;_0x5b74a5<_0x24f9cb[_0x10ed('0x5a')];_0x5b74a5++){if(_0x43ee88[_0x10ed('0x89')]&&_0x10ed('0x7c')==_0x24f9cb[_0x5b74a5]['type'])return _0x43ee88['isAddSuggestion']=_0x24f9cb[_0x5b74a5],void delete _0x43ee88['isAdded'];if(!_0x43ee88[_0x10ed('0x89')]&&!_0x43ee88[_0x10ed('0x103')]&&_0x10ed('0x92')==_0x24f9cb[_0x5b74a5][_0x10ed('0x80')])return void(_0x43ee88['isRemoveSuggestion']=_0x24f9cb[_0x5b74a5]);}}}[_0x10ed('0x10')](_0x40bc56,_0x2c6f67){let _0x474562=0x0,_0x4be1de=!0x1;const _0x208364=new Map();for(const _0x5789b6 of _0x40bc56)_0x5789b6[_0x2c6f67]?_0x4be1de&&(_0x474562++,_0x4be1de=!0x1):(_0x474562++,_0x4be1de=!0x0),_0x208364[_0x10ed('0x47')](_0x5789b6['id'],_0x474562);for(let _0x3e0dd8=0x0;_0x3e0dd8<_0x40bc56[_0x10ed('0x5a')];_0x3e0dd8++){if('isRemoved'==_0x2c6f67&&_0x40bc56[_0x3e0dd8][_0x10ed('0x89')]||_0x10ed('0x89')==_0x2c6f67&&_0x40bc56[_0x3e0dd8][_0x10ed('0x103')])continue;if(_0x10ed('0xe')==_0x40bc56[_0x3e0dd8][_0x10ed('0x80')]){_0x40bc56[_0x3e0dd8][_0x10ed('0xf6')]=0x0;continue;}const _0x3ab960=_0x208364[_0x10ed('0x8f')](_0x40bc56[_0x3e0dd8]['pairId']),_0x20870a=_0x208364['get'](_0x40bc56[_0x3e0dd8]['id']);_0x40bc56[_0x3e0dd8]['distance']=_0x3ab960-_0x20870a;}}[_0x10ed('0x71')](_0x53bf9b,_0x5d7110,_0x1b655e=!0x1){const _0xdc158e=[];let _0x3738e4=this['repository'][_0x10ed('0x9d')](_0x53bf9b),_0x34b860=this[_0x10ed('0x54')]['getIndex'](_0x5d7110);for(-0x1==_0x34b860&&(_0x34b860=this[_0x10ed('0x54')][_0x10ed('0x7a')][_0x10ed('0x5a')],_0x1b655e=!0x1);_0x3738e4<_0x34b860;)_0xdc158e[_0x10ed('0xfd')](this[_0x10ed('0x54')][_0x10ed('0x34')](_0x3738e4)),_0x3738e4++;return _0x1b655e&&_0xdc158e[_0x10ed('0xfd')](this[_0x10ed('0x54')][_0x10ed('0x34')](_0x3738e4)),_0xdc158e;}['_threeWayMerge'](_0x45c4d8,_0x4f07da,_0x39d129,_0xcf4ca6){const _0x449eb6=this['editor']['model'][_0x10ed('0x81')];let _0x5456f5=_0x4f07da;for(;_0x45c4d8[_0x5456f5]&&_0x45c4d8[_0x5456f5]['isAdded'];)_0x5456f5++;let _0x1885ab=_0xcf4ca6;for(;_0x39d129[_0x1885ab]&&_0x39d129[_0x1885ab][_0x10ed('0x103')];)_0x1885ab++;_0x39b127(_0x45c4d8,_0x4f07da,_0x5456f5),_0x39b127(_0x39d129,_0xcf4ca6,_0x1885ab);const _0x28a879=_0x39d129[_0x10ed('0xfc')](_0xcf4ca6,_0x1885ab)['concat'](_0x45c4d8[_0x10ed('0xfc')](_0x4f07da,_0x5456f5));return _0x28a879[_0x10ed('0xba')]((_0x3b84d0,_0x3fc699)=>_0x3b84d0[_0x10ed('0x10a')]!=_0x3fc699[_0x10ed('0x10a')]?_0x3b84d0[_0x10ed('0x10a')]-_0x3fc699[_0x10ed('0x10a')]:_0x3b84d0[_0x10ed('0xb2')]!=_0x3fc699[_0x10ed('0xb2')]?_0x3b84d0['level']-_0x3fc699[_0x10ed('0xb2')]:_0x3b84d0['distance']!=_0x3fc699[_0x10ed('0xf6')]?_0x3fc699[_0x10ed('0xf6')]-_0x3b84d0[_0x10ed('0xf6')]:!!_0x3b84d0[_0x10ed('0x89')]!=!!_0x3fc699[_0x10ed('0x89')]?-0x1==_0x3b84d0[_0x10ed('0x10a')]||0x0==_0x3b84d0[_0x10ed('0x10a')]?_0x3b84d0[_0x10ed('0x89')]?-0x1:0x1:_0x3b84d0['isAdded']?0x1:-0x1:_0x3b84d0[_0x10ed('0x35')]-_0x3fc699[_0x10ed('0x35')]),{'commonTape':_0x28a879,'iEnd':_0x5456f5,'jEnd':_0x1885ab};function _0x39b127(_0x1ec847,_0x435e45,_0x29f85c){let _0x2f5a42=-0x1,_0x2b082d=Number['POSITIVE_INFINITY'],_0x2b60f6=!0x0;for(let _0xe52b5b=_0x435e45;_0xe52b5b<_0x29f85c;_0xe52b5b++)if(_0x449eb6[_0x10ed('0x44')](_0x1ec847[_0xe52b5b][_0x10ed('0x84')])||(_0x2b60f6=!0x1),_0x1ec847[_0xe52b5b][_0x10ed('0x84')][_0x10ed('0x3c')]<_0x435e45&&(_0x2f5a42=_0xe52b5b),_0x1ec847[_0xe52b5b][_0x10ed('0x84')]['endIndex']>=_0x29f85c){_0x2b082d=_0xe52b5b;break;}_0x2b60f6&&(_0x2f5a42=_0x29f85c-0x1);for(let _0x36876b=_0x435e45;_0x36876b<_0x29f85c;_0x36876b++)_0x1ec847[_0x36876b]['side']=_0x36876b<=_0x2f5a42?-0x1:_0x36876b<_0x2b082d?0x0:0x1,_0x1ec847[_0x36876b][_0x10ed('0x35')]=_0x36876b;let _0x57c3a7=0x0;for(let _0xd9c0bf=_0x435e45;_0xd9c0bf<=_0x2f5a42;_0xd9c0bf++)0x0==_0x1ec847[_0xd9c0bf][_0x10ed('0xf6')]?_0x1ec847[_0xd9c0bf][_0x10ed('0xb2')]=_0x57c3a7:(_0x57c3a7++,_0x1ec847[_0xd9c0bf]['level']=_0x57c3a7,_0x57c3a7++);for(let _0x490637=_0x435e45;_0x490637<_0x29f85c;_0x490637++)0x0==_0x1ec847[_0x490637][_0x10ed('0x10a')]&&(_0x1ec847[_0x490637][_0x10ed('0xb2')]=_0x57c3a7);_0x57c3a7=0x0;for(let _0xe3ea8a=_0x29f85c-0x1;_0xe3ea8a>=_0x2b082d;_0xe3ea8a--)0x0==_0x1ec847[_0xe3ea8a][_0x10ed('0xf6')]?_0x1ec847[_0xe3ea8a]['level']=_0x57c3a7:(_0x57c3a7--,_0x1ec847[_0xe3ea8a][_0x10ed('0xb2')]=_0x57c3a7,_0x57c3a7--);}}['_fixObsoleteTags'](_0x4d006b){const _0x36f42e=new Map(),_0x2ce6f0=this['editor']['model'][_0x10ed('0x81')];for(let _0x3fcde8=0x1;_0x3fcde8<_0x4d006b[_0x10ed('0x5a')];_0x3fcde8++){let _0x3ca573,_0x163229,_0x125643;const _0x459c5a=_0x4d006b[_0x3fcde8],_0x215f49=_0x4d006b[_0x3fcde8-0x1];if(_0x10ed('0xe')==_0x459c5a[_0x10ed('0x80')])continue;if(_0x459c5a[_0x10ed('0x80')]!=_0x215f49['type'])continue;if(!_0x2ce6f0[_0x10ed('0x37')](_0x215f49[_0x10ed('0x84')])||_0x2ce6f0[_0x10ed('0xe8')](_0x215f49[_0x10ed('0x84')]))continue;if(!_0x2ce6f0[_0x10ed('0x37')](_0x459c5a['item'])||_0x2ce6f0[_0x10ed('0xe8')](_0x459c5a[_0x10ed('0x84')]))continue;if((_0x4d006b[_0x3fcde8][_0x10ed('0x89')]||_0x4d006b[_0x3fcde8][_0x10ed('0xd4')])&&_0x4d006b[_0x3fcde8-0x1][_0x10ed('0x103')])_0x3ca573=_0x4d006b[_0x3fcde8],_0x163229=_0x4d006b[_0x3fcde8-0x1],_0x125643=_0x3fcde8-0x1;else{if(!_0x4d006b[_0x3fcde8][_0x10ed('0x103')]||!_0x4d006b[_0x3fcde8-0x1][_0x10ed('0x89')]&&!_0x4d006b[_0x3fcde8-0x1][_0x10ed('0xd4')])continue;_0x3ca573=_0x4d006b[_0x3fcde8-0x1],_0x163229=_0x4d006b[_0x3fcde8],_0x125643=_0x3fcde8;}const _0x11c5f4=_0x3ca573[_0x10ed('0xb2')]==_0x163229['level'],_0x356238=Math[_0x10ed('0xb6')](_0x3ca573[_0x10ed('0xb2')])<Math[_0x10ed('0xb6')](_0x163229[_0x10ed('0xb2')])&&0x0==_0x163229[_0x10ed('0xf6')];(_0x11c5f4||_0x356238)&&(_0x36f42e[_0x10ed('0x47')](_0x163229['id'],_0x3ca573['id']),_0x4d006b[_0x10ed('0x123')](_0x125643,0x1),_0x3fcde8--,_0x3ca573[_0x10ed('0x89')]=!0x1);}for(let _0x23c8cf=0x0;_0x23c8cf<_0x4d006b['length'];_0x23c8cf++)_0x36f42e[_0x10ed('0xbb')](_0x4d006b[_0x23c8cf][_0x10ed('0x50')])&&(_0x4d006b[_0x23c8cf][_0x10ed('0x50')]=_0x36f42e[_0x10ed('0x8f')](_0x4d006b[_0x23c8cf][_0x10ed('0x50')]));}[_0x10ed('0x127')](_0x26a63a){const _0x2e96cc=new Set(_0x26a63a[_0x10ed('0x107')](_0x219d64=>_0x219d64['id']));for(let _0x4fb839=0x0;_0x4fb839<_0x26a63a[_0x10ed('0x5a')];_0x4fb839++)_0x2e96cc[_0x10ed('0xbb')](_0x26a63a[_0x4fb839][_0x10ed('0x50')])||0x0==_0x26a63a[_0x4fb839][_0x10ed('0xf6')]||(_0x26a63a[_0x4fb839][_0x10ed('0xd0')]=!0x0);return _0x26a63a[_0x10ed('0x113')](_0x5b274b=>!_0x5b274b['isIncorrect']);}[_0x10ed('0x86')](_0x479eb9){const _0x51f307=new Set();for(let _0x52b6ed=0x0;_0x52b6ed<_0x479eb9[_0x10ed('0x5a')];_0x52b6ed++){if(_0x51f307[_0x10ed('0xbb')](_0x479eb9[_0x52b6ed]['id'])&&_0x479eb9[_0x52b6ed]['isRemoved']&&(_0x479eb9[_0x52b6ed][_0x10ed('0xd0')]=!0x0),_0x479eb9[_0x52b6ed][_0x10ed('0xd0')])continue;if(0x0==_0x479eb9[_0x52b6ed][_0x10ed('0xf6')])continue;if(_0x10ed('0xe3')!=_0x479eb9[_0x52b6ed][_0x10ed('0x80')])continue;if(null==_0x479eb9[_0x52b6ed][_0x10ed('0x50')])continue;let _0x574683=_0x52b6ed+0x1,_0x579248=0x0;for(;_0x479eb9[_0x574683]['id']!=_0x479eb9[_0x52b6ed]['pairId'];)_0x10ed('0xe3')==_0x479eb9[_0x574683][_0x10ed('0x80')]?_0x579248++:_0x10ed('0x118')==_0x479eb9[_0x574683][_0x10ed('0x80')]&&_0x579248--,_0x574683++;if(0x0!=_0x579248){if(_0x479eb9[_0x52b6ed][_0x10ed('0x103')])_0x479eb9[_0x52b6ed][_0x10ed('0xd0')]=!0x0;else for(;_0x574683!=_0x52b6ed;)_0x479eb9[_0x574683][_0x10ed('0x103')]&&0x0!=_0x479eb9[_0x574683][_0x10ed('0xf6')]&&(_0x479eb9[_0x574683][_0x10ed('0xd0')]=!0x0,_0x51f307['add'](_0x479eb9[_0x574683][_0x10ed('0x50')])),_0x574683--;}}return _0x479eb9[_0x10ed('0x113')](_0x4bd203=>!_0x4bd203[_0x10ed('0xd0')]);}[_0x10ed('0x57')](_0x56e513){const _0x2b65c9=this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0x81')];for(let _0x5ba5d2=0x0;_0x5ba5d2<_0x56e513['length'];_0x5ba5d2++){if(!(_0x56e513[_0x5ba5d2][_0x10ed('0x89')]||_0x56e513[_0x5ba5d2][_0x10ed('0xd4')]||_0x56e513[_0x5ba5d2]['isRemoved']||_0x56e513[_0x5ba5d2][_0x10ed('0x28')]))continue;if(0x0==_0x56e513[_0x5ba5d2]['distance'])continue;const _0x6bca3d=_0x56e513[_0x5ba5d2][_0x10ed('0x84')];_0x2b65c9['isBlock'](_0x6bca3d)||_0x2b65c9[_0x10ed('0xe8')](_0x6bca3d)||(_0x56e513[_0x5ba5d2]['isAdded']&&delete _0x56e513[_0x5ba5d2][_0x10ed('0x89')],_0x56e513[_0x5ba5d2][_0x10ed('0xd4')]&&delete _0x56e513[_0x5ba5d2]['isAddSuggestion'],_0x56e513[_0x5ba5d2][_0x10ed('0x28')]&&delete _0x56e513[_0x5ba5d2][_0x10ed('0x28')],_0x56e513[_0x5ba5d2][_0x10ed('0x103')]&&(_0x56e513[_0x5ba5d2][_0x10ed('0xd0')]=!0x0));}return _0x56e513[_0x10ed('0x113')](_0xa9c59e=>!_0xa9c59e[_0x10ed('0xd0')]);}[_0x10ed('0xa1')](_0x37dadd,_0x3b0a95,_0x10517e){const _0x4fe7bd=new _0x1d3a31(),_0xfbf830=[],_0x20fc89=new Map(),_0x445f49=this[_0x10ed('0x61')][_0x10ed('0x49')],_0x4d2e6c=_0x445f49[_0x10ed('0x81')],_0x1b3797=[_0x4fe7bd],_0x1687d2={},_0x35123d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x51f267=null;const _0x245892=[0x0];for(let _0xe8b9dd=0x0;_0xe8b9dd<_0x37dadd['length'];_0xe8b9dd++){let _0xbf1bc6,_0x4ccd76;if(_0x10ed('0xe3')===_0x37dadd[_0xe8b9dd][_0x10ed('0x80')]){_0xbf1bc6=_0x445f49[_0x10ed('0xfb')](_0x4fe7bd,_0x245892);const _0x224cde=new _0x5577c4(_0x37dadd[_0xe8b9dd]['item']['name'],_0x37dadd[_0xe8b9dd][_0x10ed('0x84')][_0x10ed('0xeb')]());_0x1b3797[0x0]['_appendChild'](_0x224cde),_0x245892['push'](0x0),_0x1b3797[_0x10ed('0xff')](_0x224cde),_0x4ccd76=_0x445f49['createPositionFromPath'](_0x4fe7bd,_0x245892),_0x51f267=null;}else{if(_0x10ed('0x118')===_0x37dadd[_0xe8b9dd][_0x10ed('0x80')])_0x1b3797[_0x10ed('0x6')](),_0xbf1bc6=_0x445f49['createPositionFromPath'](_0x4fe7bd,_0x245892),_0x245892['pop'](),_0x245892[_0x245892[_0x10ed('0x5a')]-0x1]++,_0x4ccd76=_0x445f49['createPositionFromPath'](_0x4fe7bd,_0x245892),_0x51f267=null;else{if(_0xbf1bc6=_0x445f49['createPositionFromPath'](_0x4fe7bd,_0x245892),_0x51f267&&_0x270984(_0x51f267,_0x37dadd[_0xe8b9dd][_0x10ed('0x84')]))_0x51f267[_0x10ed('0xcb')]+=_0x37dadd[_0xe8b9dd][_0x10ed('0x84')]['data'];else{const _0x9e374e=new _0x879057(_0x37dadd[_0xe8b9dd]['item'][_0x10ed('0x125')],_0x37dadd[_0xe8b9dd][_0x10ed('0x84')][_0x10ed('0xeb')]());_0x1b3797[0x0][_0x10ed('0xdb')](_0x9e374e),_0x51f267=_0x9e374e;}_0x245892[_0x245892[_0x10ed('0x5a')]-0x1]+=_0x37dadd[_0xe8b9dd][_0x10ed('0x84')][_0x10ed('0x9a')],_0x4ccd76=_0x445f49[_0x10ed('0xfb')](_0x4fe7bd,_0x245892);}}for(const _0x43a691 of _0x37dadd[_0xe8b9dd][_0x10ed('0x3e')])_0x20fc89[_0x10ed('0x47')](_0x43a691,{'start':_0xbf1bc6,'end':null});_0x3c8028('isRemoveSuggestion',_0xe8b9dd,_0xbf1bc6,_0x4ccd76),_0x3c8028(_0x10ed('0xd4'),_0xe8b9dd,_0xbf1bc6,_0x4ccd76),_0x3c8028(_0x10ed('0x103'),_0xe8b9dd,_0xbf1bc6,_0x4ccd76),_0x3c8028(_0x10ed('0x89'),_0xe8b9dd,_0xbf1bc6,_0x4ccd76);for(const _0x5538b3 of _0x37dadd[_0xe8b9dd][_0x10ed('0x33')]){_0x20fc89[_0x10ed('0x8f')](_0x5538b3)[_0x10ed('0x15')]=_0x4ccd76;}}for(const [_0x22b09d,_0x513e16]of _0x20fc89){const _0x26801d=this[_0x10ed('0x61')]['model'][_0x10ed('0xa8')](_0x513e16[_0x10ed('0xf2')],_0x513e16['end']);_0x4fe7bd[_0x10ed('0x10d')]['set'](_0x22b09d,_0x26801d);}return _0xfbf830[_0x10ed('0xba')]((_0x2d4f85,_0x577b81)=>{const _0x27c7ef=_0x4fe7bd['markers'][_0x10ed('0x8f')](_0x10ed('0x93')+_0x2d4f85['id']),_0x155496=_0x4fe7bd[_0x10ed('0x10d')][_0x10ed('0x8f')](_0x10ed('0x93')+_0x577b81['id']);return _0x27c7ef[_0x10ed('0xf2')][_0x10ed('0x4')](_0x155496[_0x10ed('0xf2')])?-0x1:_0x27c7ef[_0x10ed('0xf2')][_0x10ed('0x45')](_0x155496[_0x10ed('0xf2')])?0x1:_0x27c7ef[_0x10ed('0x15')][_0x10ed('0x4')](_0x155496[_0x10ed('0x15')])?-0x1:_0x27c7ef[_0x10ed('0x15')]['isAfter'](_0x155496[_0x10ed('0x15')])?0x1:_0x10ed('0x2f')===_0x2d4f85['type']?-0x1:0x1;}),{'root':_0x4fe7bd,'changes':_0xfbf830};function _0x3c8028(_0x2be399,_0x3b2d9a,_0x5c7ca0,_0x32ea1e){const _0x103382=!!_0x37dadd[_0x3b2d9a][_0x2be399],_0x24d1b7=_0x103382?_0x37dadd[_0x3b2d9a][_0x2be399]['userId']:null,_0x207ae5=_0x3b2d9a===_0x37dadd[_0x10ed('0x5a')]-0x1,_0x196eea=_0x35123d[_0x2be399][0x0],_0x2a55f3=_0x4d2e6c[_0x10ed('0x2c')](_0x37dadd[_0x3b2d9a][_0x10ed('0x84')]);!_0x1687d2[_0x2be399]&&_0x103382?_0x1687d2[_0x2be399]={'start':_0x5c7ca0,'tapeItem':_0x37dadd[_0x3b2d9a],'userId':_0x24d1b7,'type':_0x2be399}:_0x1687d2[_0x2be399]&&!_0x103382?(_0x1687d2[_0x2be399][_0x10ed('0x15')]=_0x5c7ca0,_0x46bc88(_0x1687d2[_0x2be399]),_0x1687d2[_0x2be399]=null):_0x1687d2[_0x2be399]&&_0x103382&&_0x1687d2[_0x2be399]['userId']!==_0x24d1b7&&(_0x1687d2[_0x2be399]['end']=_0x5c7ca0,_0x196eea&&_0x196eea[_0x10ed('0xc8')]===_0x1687d2[_0x2be399][_0x10ed('0xc8')]||_0x46bc88(_0x1687d2[_0x2be399]),_0x1687d2[_0x2be399]={'start':_0x5c7ca0,'tapeItem':_0x37dadd[_0x3b2d9a],'userId':_0x24d1b7,'type':_0x2be399}),_0x1687d2[_0x2be399]&&_0x2a55f3&&(_0x10ed('0xe3')!==_0x37dadd[_0x3b2d9a]['type']||_0x196eea&&_0x196eea[_0x10ed('0xc8')]===_0x24d1b7||_0x35123d[_0x2be399]['unshift']({'userId':_0x24d1b7,'object':_0x37dadd[_0x3b2d9a][_0x10ed('0x84')],'change':_0x1687d2[_0x2be399]}),_0x10ed('0x118')===_0x37dadd[_0x3b2d9a][_0x10ed('0x80')]&&_0x196eea&&_0x196eea[_0x10ed('0x76')]===_0x37dadd[_0x3b2d9a]['item']&&(_0x35123d[_0x2be399]['shift'](),_0x1687d2[_0x2be399]=_0x196eea['change'])),_0x1687d2[_0x2be399]&&_0x207ae5&&(_0x1687d2[_0x2be399][_0x10ed('0x15')]=_0x32ea1e,_0x46bc88(_0x1687d2[_0x2be399]),_0x1687d2[_0x2be399]=null);}function _0x46bc88({start:_0x52d583,end:_0x5e7cda,tapeItem:_0x4b1632,userId:_0x42eca3,type:_0x558086}){const _0x2d0968=_0x4b1632[_0x10ed('0x84')],_0x3554b3=_0x445f49[_0x10ed('0x81')][_0x10ed('0x37')](_0x2d0968)&&!_0x445f49[_0x10ed('0x81')]['isLimit'](_0x2d0968),_0xe71d8a=_0x52d583[_0x10ed('0x68')]==_0x5e7cda[_0x10ed('0x67')]&&_0x5e7cda[_0x10ed('0x2b')];if(_0x3554b3&&_0xe71d8a)return;const _0x3d1088=_0x445f49[_0x10ed('0xa8')](_0x52d583,_0x5e7cda),_0xd2d5f5=_0x3b0a95['get'](_0x42eca3),_0x3ee590=new _0x406215({'author':_0xd2d5f5,'type':_0x10ed('0x89')==_0x558086||_0x10ed('0xd4')==_0x558086?_0x10ed('0x2f'):_0x10ed('0x10e'),'data':{'isSuggestion':_0x10ed('0xd4')==_0x558086||_0x10ed('0x28')==_0x558086},'createdAt':new Date(),'rootName':_0x10517e});_0xfbf830['push'](_0x3ee590),_0x4fe7bd[_0x10ed('0x10d')]['set'](_0x10ed('0x93')+_0x3ee590['id'],_0x3d1088);}function _0x270984(_0xe20303,_0xe7fcf3){const _0x16cbcb=_0xe20303[_0x10ed('0xeb')](),_0x4fbe97=_0xe7fcf3['getAttributes']();for(const _0x3cfa1e of _0x16cbcb){if(_0x3cfa1e[0x1]!==_0xe7fcf3[_0x10ed('0x88')](_0x3cfa1e[0x0]))return!0x1;_0x4fbe97[_0x10ed('0x25')]();}return _0x4fbe97['next']()['done'];}}['_setConversion'](){this[_0x10ed('0x61')][_0x10ed('0xde')]['for']('upcast')[_0x10ed('0x74')]({'view':'revision'}),this[_0x10ed('0x61')][_0x10ed('0xde')][_0x10ed('0x8e')](_0x10ed('0x56'))[_0x10ed('0xe1')]({'model':_0x10ed('0x66'),'view':_0x22846d=>{const _0x266917=_0x22846d[_0x10ed('0xad')]['split'](':')[0x1],_0x36a9af=this[_0x10ed('0xda')](_0x266917);if(!_0x36a9af)return null;const _0xc2edb9='add'==_0x36a9af[_0x10ed('0x80')]?_0x10ed('0x7c'):_0x10ed('0x92'),_0x12e1eb=[_0x10ed('0x73'),_0x10ed('0x0')+_0xc2edb9];return _0x36a9af[_0x10ed('0x125')][_0x10ed('0x126')]&&_0x12e1eb['push'](_0x10ed('0x0')+_0xc2edb9+_0x10ed('0xe5')),this['activeChange']==_0x36a9af&&_0x12e1eb[_0x10ed('0xfd')]('ck-suggestion-marker--active'),{'classes':_0x12e1eb,'attributes':{'data-change-id':_0x266917}};}}),this['editor'][_0x10ed('0xde')][_0x10ed('0x8e')](_0x10ed('0x18'))[_0x10ed('0x2f')](_0x5aff07=>{_0x5aff07['on'](_0x10ed('0xc5'),(_0x4b0d10,_0x2e1b09,_0x5849ec)=>{const _0x5e2ed1=_0x2e1b09[_0x10ed('0x106')][_0x10ed('0x100')](0x0);if(!_0x5e2ed1||!_0x5e2ed1['is'](_0x10ed('0x83'),'code'))return;if(!_0x5849ec[_0x10ed('0xbc')][_0x10ed('0x69')](_0x5e2ed1,{'attributes':['vid_start',_0x10ed('0xf4')]}))return;const _0x318b90=_0x2e1b09[_0x10ed('0x8b')][_0x10ed('0xf2')][_0x10ed('0x68')];_0x5849ec[_0x10ed('0xe4')][_0x10ed('0x23')]('vid_start',_0x5e2ed1[_0x10ed('0x88')]('vid_start'),_0x318b90),_0x5849ec[_0x10ed('0xe4')]['setAttribute'](_0x10ed('0xf4'),_0x5e2ed1['getAttribute'](_0x10ed('0xf4')),_0x318b90);},{'priority':'low'});}),this[_0x10ed('0x61')][_0x10ed('0xde')][_0x10ed('0x8e')](_0x10ed('0x18'))[_0x10ed('0x2f')](_0x38ad96=>{_0x38ad96['on']('element',(_0x22d7f4,_0x1a8013,_0x3aefc5)=>{if(!_0x3aefc5[_0x10ed('0xbc')][_0x10ed('0x69')](_0x1a8013[_0x10ed('0x106')],{'attributes':['vid_start',_0x10ed('0xf4')]}))return;if(_0x1a8013[_0x10ed('0x8b')]['isCollapsed'])return;const _0x88fa25=_0x1a8013['modelRange'][_0x10ed('0xf2')][_0x10ed('0x68')];_0x88fa25['hasAttribute'](_0x10ed('0xea'))||_0x88fa25[_0x10ed('0xe6')](_0x10ed('0x108'))||(_0x3aefc5[_0x10ed('0xe4')][_0x10ed('0x23')](_0x10ed('0xea'),_0x1a8013[_0x10ed('0x106')][_0x10ed('0x88')](_0x10ed('0xea')),_0x88fa25),_0x3aefc5['writer'][_0x10ed('0x23')](_0x10ed('0xf4'),_0x1a8013[_0x10ed('0x106')][_0x10ed('0x88')](_0x10ed('0xf4')),_0x88fa25));},{'priority':_0x10ed('0x14')});}),this[_0x10ed('0x61')][_0x10ed('0xde')][_0x10ed('0x8e')](_0x10ed('0x18'))[_0x10ed('0xca')]({'view':{'name':_0x10ed('0x36'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x329c8d=>_0x329c8d[_0x10ed('0x88')](_0x10ed('0x108'))}}),this[_0x10ed('0x61')]['model'][_0x10ed('0x81')]['on'](_0x10ed('0x48'),(_0x479cb0,[,_0x2b952c])=>{[_0x10ed('0xea'),_0x10ed('0xf4'),_0x10ed('0x108')][_0x10ed('0x102')](_0x2b952c)&&(_0x479cb0[_0x10ed('0xa4')]=!0x0,_0x479cb0[_0x10ed('0x2d')]());},{'priority':_0x10ed('0x121')}),this['editor'][_0x10ed('0xde')][_0x10ed('0x8e')](_0x10ed('0xc0'))[_0x10ed('0x2f')](_0x4560b1=>{_0x4560b1['on'](_0x10ed('0xaa'),(_0x1d55ef,_0x1b6199,_0x299dc2)=>{if('\x20'!=_0x1b6199['item'][_0x10ed('0x125')]||_0x1b6199['item'][_0x10ed('0x67')][_0x10ed('0xb0')]>0x1)return;if(!_0x299dc2[_0x10ed('0xbc')]['consume'](_0x1b6199[_0x10ed('0x84')],_0x1d55ef[_0x10ed('0x104')]))return;const _0x5285e8=_0x299dc2[_0x10ed('0xe4')],_0x5a5074=_0x299dc2[_0x10ed('0x5c')][_0x10ed('0xdc')](_0x1b6199[_0x10ed('0xc4')]);_0x5285e8['wrap'](_0x5a5074,_0x5285e8[_0x10ed('0x13')](_0x10ed('0x36')));});}),this[_0x10ed('0x61')][_0x10ed('0xde')][_0x10ed('0x8e')](_0x10ed('0xc0'))[_0x10ed('0x6d')]({'model':_0x10ed('0x66')}),this['editor']['editing'][_0x10ed('0x26')]['on']('addMarker:revision',function(_0x85b0f1){const _0x3bbe0b=_0x85b0f1[_0x10ed('0x52')][_0x10ed('0x8f')]('RevisionViewer');return(_0x27fdde,_0x1bb60d,_0x35e023)=>{const _0x46a6ec=_0x1bb60d[_0x10ed('0xad')][_0x10ed('0xcc')](':')[0x1],_0x456b1c=_0x3bbe0b[_0x10ed('0xda')](_0x46a6ec);if(!_0x456b1c)return null;const _0x3037b3='add'==_0x456b1c[_0x10ed('0x80')]?_0x10ed('0xcc'):_0x10ed('0xcf');if(!_0x35e023[_0x10ed('0xbc')][_0x10ed('0xd2')](_0x1bb60d[_0x10ed('0x11e')],_0x27fdde[_0x10ed('0x104')]))return;const _0x5961a9=_0x1bb60d[_0x10ed('0x11e')]['getWalker'](),_0x3bb9e9=_0x1bb60d['markerRange']['start'],_0x4d6ac0=_0x85b0f1['model'][_0x10ed('0x81')];let _0x1e6686=null,_0x20ae11=null,_0x156645=!0x1,_0x9daa28=!0x1;for(const _0xf7324a of _0x5961a9){const _0x364690=_0xf7324a[_0x10ed('0x84')];_0x156645=_0x156645||_0x4d6ac0['isContent'](_0x364690);const _0x50cc47=_0x35e023[_0x10ed('0x5c')][_0x10ed('0x1a')](_0x364690);if(_0x50cc47&&_0x50cc47['getCustomProperty'](_0x10ed('0xfa')))return;'elementEnd'==_0xf7324a['type']&&(_0x4d6ac0[_0x10ed('0x37')](_0x364690)&&!_0x4d6ac0[_0x10ed('0xe8')](_0x364690)&&(_0x364690[_0x10ed('0xa7')]||_0x3bb9e9[_0x10ed('0x42')]?_0x1e6686&&_0x1e6686[_0x10ed('0x67')]==_0x364690||(_0x1e6686=_0x364690,_0x19c8b1(_0xf7324a['previousPosition']),_0x9daa28=!0x0):_0x20ae11=_0x20ae11||_0xf7324a['previousPosition']));}function _0x19c8b1(_0x105d69){const _0x9b51b8=_0x35e023[_0x10ed('0xe4')]['createUIElement'](_0x10ed('0x36'),{'class':_0x10ed('0x0')+_0x3037b3}),_0x127e10=_0x35e023[_0x10ed('0x5c')][_0x10ed('0x7d')](_0x105d69);_0x456b1c[_0x10ed('0x125')][_0x10ed('0x126')]&&_0x35e023[_0x10ed('0xe4')]['addClass'](_0x10ed('0x0')+_0x3037b3+'-new',_0x9b51b8),_0x3bbe0b[_0x10ed('0x24')]==_0x456b1c&&_0x35e023['writer']['addClass'](_0x10ed('0x17'),_0x9b51b8),_0x35e023[_0x10ed('0xe4')][_0x10ed('0xd')](_0x127e10,_0x9b51b8),_0x35e023[_0x10ed('0x5c')]['bindElementToMarker'](_0x9b51b8,_0x1bb60d[_0x10ed('0xad')]);}_0x156645||_0x9daa28||!_0x20ae11||_0x19c8b1(_0x20ae11);};}(this[_0x10ed('0x61')]),{'priority':_0x10ed('0x64')}),this[_0x10ed('0x61')]['editing'][_0x10ed('0x26')]['on'](_0x10ed('0x3a'),(_0x3107d5,_0x31f3e6,_0x403662)=>{const _0x5e1aaa=_0x403662['mapper'][_0x10ed('0xa9')](_0x31f3e6[_0x10ed('0xad')]);if(_0x5e1aaa)for(const _0x49b138 of _0x5e1aaa)(_0x49b138[_0x10ed('0x4e')]('ck-suggestion-marker-split')||_0x49b138[_0x10ed('0x4e')](_0x10ed('0xc9')))&&(_0x403662['mapper'][_0x10ed('0xe9')](_0x49b138,_0x31f3e6[_0x10ed('0xad')]),_0x403662[_0x10ed('0xe4')][_0x10ed('0x10e')](_0x49b138));},{'priority':_0x10ed('0x64')}),this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x26')]['on']('addMarker:revision',(_0x312931,_0xf521f5,_0x25948c)=>{const _0x447e3c=_0xf521f5[_0x10ed('0xad')][_0x10ed('0xcc')](':')[0x1],_0x5991c5=this['_getChangeFromId'](_0x447e3c);if(!_0x5991c5)return null;const _0x399dbf=_0x10ed('0x2f')==_0x5991c5[_0x10ed('0x80')]?_0x10ed('0xcc'):_0x10ed('0xcf');if(_0x25948c['consumable'][_0x10ed('0xd2')](_0xf521f5[_0x10ed('0x11e')],_0x312931[_0x10ed('0x104')]))for(const _0x4ee7ae of _0xf521f5[_0x10ed('0x11e')]['getItems']()){if(!_0x4ee7ae['is'](_0x10ed('0x83'),'softBreak'))continue;const _0x215ea0=_0x25948c[_0x10ed('0xe4')][_0x10ed('0x31')](_0x10ed('0x36'),{'class':_0x10ed('0x0')+_0x399dbf}),_0x5c780a=_0x25948c['mapper'][_0x10ed('0x7d')](this[_0x10ed('0x61')]['model'][_0x10ed('0x9e')](_0x4ee7ae));_0x5991c5['data'][_0x10ed('0x126')]&&_0x25948c[_0x10ed('0xe4')]['addClass'](_0x10ed('0x0')+_0x399dbf+'-new',_0x215ea0),this['activeChange']==_0x5991c5&&_0x25948c[_0x10ed('0xe4')]['addClass']('ck-suggestion-marker--active',_0x215ea0),_0x25948c[_0x10ed('0xe4')]['insert'](_0x5c780a,_0x215ea0),_0x25948c[_0x10ed('0x5c')][_0x10ed('0x110')](_0x215ea0,_0xf521f5[_0x10ed('0xad')]);}},{'priority':_0x10ed('0x64')}),this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0xc6')]['on']('change',()=>{this[_0x10ed('0x61')][_0x10ed('0x78')]['view'][_0x10ed('0xb8')](_0x408273=>{for(const _0xfad406 of this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0xc6')]['getRootNames']()){const _0x415c8a=this[_0x10ed('0x61')]['model']['document'][_0x10ed('0x9b')](_0xfad406),_0x46fe85=this['editor'][_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0xc6')][_0x10ed('0x9b')](_0xfad406);if(_0x46fe85){const _0x500770=_0x415c8a[_0x10ed('0x88')](_0x10ed('0x9'));if(_0x408273[_0x10ed('0x119')](_0x10ed('0x95'),_0x46fe85),_0x408273[_0x10ed('0x5')](_0x10ed('0x1'),_0x46fe85),_0x408273['removeClass'](_0x10ed('0x39'),_0x46fe85),_0x408273[_0x10ed('0x5')](_0x10ed('0xa3'),_0x46fe85),_0x500770){const _0x218685=this[_0x10ed('0xda')](_0x500770);if(!_0x218685)return null;_0x408273[_0x10ed('0x23')](_0x10ed('0x95'),_0x500770,_0x46fe85),_0x408273[_0x10ed('0x1e')](_0x10ed('0x115')+_0x218685['type'],_0x46fe85),this['activeChange']==_0x218685&&_0x408273[_0x10ed('0x1e')](_0x10ed('0xa3'),_0x46fe85);}}}});}),this['editor']['conversion'][_0x10ed('0x8e')]('upcast')[_0x10ed('0x74')]({'view':_0x10ed('0xd3'),'model':_0x405309=>_0x10ed('0xef')+_0x405309,'converterPriority':_0x10ed('0x121')}),this['editor'][_0x10ed('0xde')][_0x10ed('0x8e')]('upcast')[_0x10ed('0x74')]({'view':_0x10ed('0xa'),'model':_0x425738=>_0x10ed('0x98')+_0x425738,'converterPriority':_0x10ed('0x121')}),this[_0x10ed('0x61')][_0x10ed('0xde')][_0x10ed('0x8e')]('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2f8538=>({'name':_0x10ed('0x21')+_0x2f8538,'group':_0x10ed('0xee')}),'converterPriority':_0x10ed('0x121')}),this[_0x10ed('0x61')][_0x10ed('0xde')][_0x10ed('0x8e')](_0x10ed('0x56'))[_0x10ed('0xe1')]({'model':_0x10ed('0xee'),'view':_0x26dbf3=>{const _0x4b372e=_0x26dbf3[_0x10ed('0xad')][_0x10ed('0xcc')](':')[0x1];return _0x10ed('0x7c')!=_0x4b372e&&_0x10ed('0x92')!=_0x4b372e?null:{'classes':[_0x10ed('0xec'),_0x10ed('0xa5')+_0x4b372e]};}}),this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x26')]['on'](_0x10ed('0x117'),et(this['editor'],'merge'),{'priority':'high'}),this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x26')]['on'](_0x10ed('0x11d'),et(this[_0x10ed('0x61')],_0x10ed('0xcc')),{'priority':_0x10ed('0x64')}),this[_0x10ed('0x61')][_0x10ed('0x78')][_0x10ed('0x26')]['on'](_0x10ed('0xa2'),(_0x548b16,_0x3cdbd8,_0x18c420)=>{const _0x2134fd=_0x18c420['mapper']['markerNameToElements'](_0x3cdbd8[_0x10ed('0xad')]);if(_0x2134fd)for(const _0x53a79e of _0x2134fd)_0x53a79e['is'](_0x10ed('0x51'))&&(_0x18c420['mapper'][_0x10ed('0xe9')](_0x53a79e,_0x3cdbd8['markerName']),_0x18c420[_0x10ed('0xe4')][_0x10ed('0x10e')](_0x53a79e));},{'priority':_0x10ed('0x64')});}[_0x10ed('0xda')](_0x33e404){return this[_0x10ed('0x91')][_0x10ed('0x8f')](_0x33e404);}[_0x10ed('0x5d')](_0x327607){return this[_0x10ed('0x4b')]&&this['_changeView']['destroy'](),this[_0x10ed('0x4b')]=new _0x542f7b(this[_0x10ed('0x61')]['locale'],_0x327607),this[_0x10ed('0x4b')];}[_0x10ed('0x29')](){this['editor'][_0x10ed('0x49')]['document'][_0x10ed('0xe0')]['observeMarkers'](_0x10ed('0x66')),this['on'](_0x10ed('0xb5'),(_0xb26244,_0x273de3,_0x10a28f,_0x2531ac)=>{_0x2531ac&&this[_0x10ed('0x75')][_0x10ed('0x10e')](_0x2531ac),_0x10a28f&&(this[_0x10ed('0x75')][_0x10ed('0x2f')]({'view':_0x10a28f,'stackId':_0x10ed('0x3f'),'position':{'target':()=>{const _0x5e4b2c=this['editor'][_0x10ed('0x78')],_0x331ff3=this[_0x10ed('0xda')](_0x10a28f[_0x10ed('0x111')]);let _0x29f693;if(_0x331ff3[_0x10ed('0x125')][_0x10ed('0x5b')]){const _0x130e53=_0x5e4b2c[_0x10ed('0x6c')]['getDomRoot'](_0x331ff3[_0x10ed('0xe2')]);_0x29f693=Array[_0x10ed('0x90')](_0x130e53['getClientRects']());}else{const _0x4d3633=this[_0x10ed('0x61')]['model'][_0x10ed('0x10d')]['get'](_0x10ed('0x93')+_0x10a28f[_0x10ed('0x111')]);_0x29f693=Array[_0x10ed('0x90')](_0x5e4b2c[_0x10ed('0x5c')][_0x10ed('0xa9')](_0x4d3633[_0x10ed('0x104')]))[_0x10ed('0x107')](_0x33af49=>_0x5e4b2c[_0x10ed('0x6c')][_0x10ed('0xcd')][_0x10ed('0x43')](_0x33af49))[_0x10ed('0x107')](_0x4cd5e4=>Array[_0x10ed('0x90')](_0x4cd5e4[_0x10ed('0x8')]()))[_0x10ed('0xdd')]();}if(!this[_0x10ed('0x120')])return _0x29f693[0x0];return _0x29f693[_0x10ed('0xa0')](_0x40807f=>_0x40807f['top']-0x3<=this['_activeViewTarget']['y']&&_0x40807f[_0x10ed('0x65')]+0x3>=this[_0x10ed('0x120')]['y']&&_0x40807f[_0x10ed('0x124')]-0x3<=this['_activeViewTarget']['x']&&_0x40807f['right']+0x3>=this[_0x10ed('0x120')]['x'])||_0x29f693[0x0];}}}),this['_balloon'][_0x10ed('0x3d')]('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x125d72,_0x244603,_0x3357d8,_0x2ce885)=>{this[_0x10ed('0x60')]=_0x3357d8?this[_0x10ed('0x5d')](_0x3357d8):null,this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0xb8')](()=>{const _0x60b122=this[_0x10ed('0x61')]['editing'];_0x2ce885&&(_0x2ce885[_0x10ed('0x125')]['isOnRoot']?_0x60b122['view'][_0x10ed('0xb8')](_0x4f720c=>{_0x4f720c[_0x10ed('0x5')](_0x10ed('0xa3'),_0x60b122[_0x10ed('0x6c')][_0x10ed('0xc6')][_0x10ed('0x9b')](_0x2ce885[_0x10ed('0xe2')]));}):_0x60b122[_0x10ed('0xf1')]('revision:'+_0x2ce885['id'])),_0x3357d8&&(_0x3357d8[_0x10ed('0x125')][_0x10ed('0x5b')]?_0x60b122['view']['change'](_0x2865ef=>{_0x2865ef[_0x10ed('0x1e')](_0x10ed('0xa3'),_0x60b122['view']['document'][_0x10ed('0x9b')](_0x3357d8[_0x10ed('0xe2')]));}):_0x60b122[_0x10ed('0xf1')](_0x10ed('0x93')+_0x3357d8['id']));});}),this[_0x10ed('0x8a')](this['editor']['editing'][_0x10ed('0x6c')]['document'],_0x10ed('0x2e'),(_0x4e400c,_0x4e9e9d)=>{if(this['activeChange'])return;const _0x374716=this[_0x10ed('0xf0')](_0x4e9e9d[_0x10ed('0x4f')]),_0x2bcfab=this[_0x10ed('0x91')][_0x10ed('0x8f')](_0x374716);_0x2bcfab?(this[_0x10ed('0x120')]={'x':_0x4e9e9d['domEvent']['x'],'y':_0x4e9e9d[_0x10ed('0x19')]['y']},this[_0x10ed('0x60')]=this[_0x10ed('0x5d')](_0x2bcfab)):(this[_0x10ed('0x120')]=null,this[_0x10ed('0x60')]=null);}),this[_0x10ed('0x8a')](this['editor']['editing']['view']['document'],_0x10ed('0x16'),(_0x415874,_0x3139c8)=>{const _0x4fa4fc=this[_0x10ed('0xf0')](_0x3139c8['target']),_0x17472b=this['_changeIdToChange'][_0x10ed('0x8f')](_0x4fa4fc);_0x17472b?(this[_0x10ed('0x120')]={'x':_0x3139c8[_0x10ed('0x19')]['x'],'y':_0x3139c8['domEvent']['y']},_0x17472b===this[_0x10ed('0x24')]?this[_0x10ed('0x75')][_0x10ed('0x9f')]():this['activeChange']=_0x17472b):(this[_0x10ed('0x120')]=null,this['activeChange']=null);});}[_0x10ed('0xf0')](_0x19c585){do{const _0x1b6d70=_0x19c585['getAttribute'](_0x10ed('0x95'));if(_0x1b6d70)return _0x1b6d70;_0x19c585=_0x19c585[_0x10ed('0x67')];}while(_0x19c585);return null;}[_0x10ed('0x30')](){this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0xb8')](_0x368af4=>{for(const _0x57f193 of this[_0x10ed('0x61')][_0x10ed('0x49')][_0x10ed('0x10d')])_0x368af4['removeMarker'](_0x57f193);});}}function et(_0x47b805,_0x41b59c){return(_0x50030e,_0x4d3608,_0x13abdb)=>{if(!_0x13abdb[_0x10ed('0xbc')][_0x10ed('0xd2')](_0x4d3608['markerRange'],_0x50030e['name']))return;const _0x340d05=_0x4d3608[_0x10ed('0x11e')]['getWalker'](),_0x1f1ced=_0x4d3608['markerRange'][_0x10ed('0xf2')],_0x1dcbd9=_0x47b805[_0x10ed('0x49')][_0x10ed('0x81')];let _0x30ac3e=null,_0x5baff9=null,_0x50045d=!0x1,_0x2f456f=!0x1;for(const _0xc72a34 of _0x340d05){const _0x2447c5=_0xc72a34[_0x10ed('0x84')];_0x50045d=_0x50045d||_0x1dcbd9[_0x10ed('0x11')](_0x2447c5);const _0x39c751=_0x13abdb[_0x10ed('0x5c')]['toViewElement'](_0x2447c5);if(_0x39c751&&_0x39c751[_0x10ed('0x4c')](_0x10ed('0xfa')))return;_0x10ed('0x118')==_0xc72a34['type']&&(_0x1dcbd9['isBlock'](_0x2447c5)&&!_0x1dcbd9['isLimit'](_0x2447c5)&&(_0x2447c5[_0x10ed('0xa7')]||_0x1f1ced[_0x10ed('0x42')]?_0x30ac3e&&_0x30ac3e[_0x10ed('0x67')]==_0x2447c5||(_0x30ac3e=_0x2447c5,_0x3383cd(_0xc72a34[_0x10ed('0x10b')]),_0x2f456f=!0x0):_0x5baff9=_0x5baff9||_0xc72a34[_0x10ed('0x10b')]));}function _0x3383cd(_0x36eba4){const _0x1d9aa2=_0x13abdb[_0x10ed('0x5c')][_0x10ed('0x7d')](_0x36eba4),_0x2023b4=_0x13abdb['writer'][_0x10ed('0x31')](_0x10ed('0x36'),{'class':_0x10ed('0xa5')+_0x41b59c});_0x13abdb[_0x10ed('0xe4')][_0x10ed('0xd')](_0x1d9aa2,_0x2023b4),_0x13abdb[_0x10ed('0x5c')][_0x10ed('0x110')](_0x2023b4,_0x4d3608[_0x10ed('0xad')]);}_0x50045d||_0x2f456f||!_0x5baff9||_0x3383cd(_0x5baff9);};}export class RestoreRevisionCommand extends _0x46c3fd{constructor(_0x4b53e5){super(_0x4b53e5);const _0x347192=_0x4b53e5[_0x10ed('0x52')]['get'](d);this[_0x10ed('0x94')]=!0x1,this['listenTo'](_0x347192,_0x10ed('0xc1'),()=>this[_0x10ed('0xc')]()),this['listenTo'](_0x347192,_0x10ed('0x70'),()=>this[_0x10ed('0xc')]());}[_0x10ed('0xbd')](){const _0x235f49=this[_0x10ed('0x61')],_0x52282b=_0x235f49[_0x10ed('0x52')][_0x10ed('0x8f')](d),_0x4066a1=_0x52282b[_0x10ed('0x1d')]?_0x52282b[_0x10ed('0xd1')]['newRevisionId']:null;_0x235f49[_0x10ed('0x27')][_0x10ed('0x8f')]('revisionHistory')[_0x10ed('0xf3')](_0x4066a1);}[_0x10ed('0xc')](){const {isReady:_0x2a8cfb,isEnabled:_0x4a91d2}=this[_0x10ed('0x61')][_0x10ed('0x52')]['get'](d);this[_0x10ed('0x12')]=_0x2a8cfb&&_0x4a91d2;}}export class ShowChangeCommand extends _0x46c3fd{constructor(_0x196802,{direction:_0x1d1b7a}){super(_0x196802);const _0x291308=_0x196802[_0x10ed('0x52')][_0x10ed('0x8f')](d);this['affectsData']=!0x1,this[_0x10ed('0x87')]=_0x10ed('0x4a')===_0x1d1b7a?0x1:-0x1,this['listenTo'](_0x291308,_0x10ed('0xc1'),()=>this[_0x10ed('0xc')]()),this[_0x10ed('0x8a')](_0x291308,_0x10ed('0x70'),()=>this['refresh']()),this[_0x10ed('0x8a')](_0x291308,_0x10ed('0xd5'),()=>this[_0x10ed('0xc')]());}[_0x10ed('0xbd')](){const _0x41e810=this['editor'],_0x565ac6=_0x41e810[_0x10ed('0x52')]['get'](d),{isNavigationMode:_0x29e630,currentChangeNumber:_0xb8374a}=_0x565ac6;let _0x5baec9;if(_0x565ac6['activeChange']=_0x29e630?_0x565ac6[_0x10ed('0xd1')][_0x10ed('0x6b')][_0x10ed('0x8f')](_0xb8374a+this[_0x10ed('0x87')]):_0x565ac6[_0x10ed('0xd1')][_0x10ed('0x6b')][_0x10ed('0xd6')],_0x565ac6[_0x10ed('0x24')]['data'][_0x10ed('0x5b')])_0x5baec9=_0x41e810[_0x10ed('0x78')][_0x10ed('0x6c')][_0x10ed('0x72')](_0x565ac6['activeChange'][_0x10ed('0xe2')]);else{const _0x4d7a43=_0x41e810[_0x10ed('0x49')]['markers'][_0x10ed('0x8f')](_0x10ed('0x93')+_0x565ac6[_0x10ed('0x24')]['id']);_0x5baec9=_0x4d02c5(_0x41e810['editing'],_0x4d7a43);}_0x320b83({'target':_0x5baec9,'viewportOffset':0x28});}[_0x10ed('0xc')](){const {isNavigationMode:_0x1d0437,currentChangeNumber:_0x4743a0,numberOfChanges:_0x51a67c,isReady:_0x5a8355,isEnabled:_0x59c3e3}=this[_0x10ed('0x61')][_0x10ed('0x52')][_0x10ed('0x8f')](d);this['isEnabled']=!!(_0x59c3e3&&_0x5a8355&&_0x51a67c)&&(!_0x1d0437||(0x1===this['_step']?_0x4743a0<_0x51a67c-0x1:_0x4743a0>0x0));}}
23
+ const _0xb233=['change:isReady','createAttributeElement','name','restoreRevision','attribute:vid','element:pre','isContent','_processTape','roots','forceDisabled','revisionHistory','_findChangeIdFromDomTarget','isEnabled','error','editingDowncast','children','bottom','revision-comment:','splice','getRevisionRootsAttributes','concat','end','revision','stop','POSITIVE_INFINITY','markerToHighlight','upcast','_initInteractions','getWalker','highest','index','parent','dataToMarker','diffData','includes','createPositionFromPath','writer','attachChange','get','getRootNames','_changeIdToChange','high','editor','ck-revision-history-root-remove','isAdded','refresh','target','nextSibling','insertion','_refreshStartEndIndex','element','has','adapter','view','revisionHistoryAttachChange','removeMarker','addHighlight','createRevision','isBefore','remove','abs','_removeUnsupportedChanges','repository','deletion','findIndex','data-change-id','hasAttribute','from','isLimit','span','_appendChild','dataDowncast','revision-viewer','bind','split','numberOfChanges','rootName','showStack','_sortAndFilterDiffChanges','revisionHistoryLabel','then','sort','low','_getViewForChange','isAtEnd','previousPosition','addMarker:revision','_activeViewTarget','elementEnd','isAttached','mousedown','markerNameToElements','isBlock','execute','checkAttribute','isOnRoot','side','oldRevisionId','_markMismatchedRemovedTags','isAfter','getAttributes','merge','viewItem','_setDistance','currentChangeNumber','change','done','enqueueChange','isInline','activeView','isReady','suggestion:','revision-end','_removeRevisionMarkers','_removeMissingPairs','config','isEqual','indexOf','downcastDispatcher','getChild','deletions','addMarker:revision-suggestion:deletion','ck-suggestion-preview-marker-','markerRange','commands','isAddSuggestion','range','elementToAttribute','revision-suggestion:','all','_joinTapes','comment','_step','test','removeMarker:revision','change:activeChange','forEach','revision-suggestion','_makeModelFromViewString','shift','_cleanMarkers','insertions','left','offsetSize','toModel','getDomRoot','markerToData','addRevision','startIndex','for','toData','getRoot','text','consumable','ck-suggestion-marker--active','pluginName','catch','isRemoved','ck-revision-history-root-add','ck-suggestion-marker','data-revision-','loadRevisionData','hasClass','affectsData','code','removeClass','userId','consume','mapper','diff','change:isEnabled','getRevision','restoreRevisionCallback','useFillerType','clear','filter','init','slice','createRangeIn','data','find','changes','WidgetToolbarRepository','getClientRects','add','nodeAfter','pairId','document','_makeTape','nextPosition','elementStart','observeMarkers','getItems','requires','_changeView','string','_balloon','attributes','isRemoveSuggestion','markersEnd','_makeModelFromTape','conversion','change:activeView','revision:','getAttribute','_getChangeFromId','start','_setChanges','_getDiff','editing','vid_end','_getViewObj','unbindElementFromMarkerName','ck-editor__editable__overlay','createRange','item','maxOffset','showNextChange','wrap','_setConversion','addMarker:revision-suggestion:insertion','_threeWayMerge','attributesAfter','map','processor','authors','uiElement','suggestion','markersStart','_markMarkers','listenTo','selection','detachRoot','modelRange','addClass','compare','unshift','destroy','isNavigationMode','isObject','bindElementToMarker','isAtStart','endIndex','RevisionsRepository','_fixObsoleteTags','_data','markers','_cleanUp','_getRevisionsRange','domConverter','schema','type','-new','locale','set','length','getIndex','activeChange','isCollapsed','object','vid','markerName','softBreak','insert','marked','startsWith','ck-suggestion-marker-','plugins','push','reconvertMarker','vid_start','delete','level','model','next','_markSuggestions','createUIElement','_markInsertions','_update','ck-revision-history-root--active','isIncorrect','keys','isSuggestion','getCustomProperty','distance','setAttribute','toViewPosition','first','changeId','domEvent','RevisionViewer'];(function(_0x2d735b,_0xb23323){const _0x234b76=function(_0x1d74ad){while(--_0x1d74ad){_0x2d735b['push'](_0x2d735b['shift']());}};_0x234b76(++_0xb23323);}(_0xb233,0x123));const _0x234b=function(_0x2d735b,_0xb23323){_0x2d735b=_0x2d735b-0x0;let _0x234b76=_0xb233[_0x2d735b];return _0x234b76;};import{Plugin as _0x2e0c8d,Command as _0x349962}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x46ecbd}from'ckeditor5/src/utils';import{ContextualBalloon as _0x28bc6c}from'ckeditor5/src/ui';import{DocumentFragment as _0x5611e1,Element as _0x30e2cd,Text as _0x5bcfa1,ViewDocumentFragment as _0x561f79,ViewText as _0x524404,ViewElement as _0x68b40a,ViewContainerElement as _0x4b94fa,ViewAttributeElement as _0x19e4b2,ViewEmptyElement as _0x21a0e2,ViewRawElement as _0x50f20a,ViewUIElement as _0x922b7a}from'ckeditor5/src/engine';import{Users as _0x2cd8b7,getMarkerDomElement as _0x1d3894}from'ckeditor5-collaboration/src/collaboration-core';import _0x3d3978 from'./ui/revisionviewer/changedetailsview';import _0x2055b9 from'./revisionsrepository';import _0x5656c0 from'./changeitem';import{default as _0x2e9d2b}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x28b9ba}from'lodash-es';const tt={'c':_0x4b94fa,'a':_0x19e4b2,'e':_0x21a0e2,'r':_0x50f20a,'u':_0x922b7a};export default class d extends _0x2e0c8d{static get[_0x234b('0x9b')](){return _0x234b('0x122');}static get[_0x234b('0xc1')](){return[_0x2cd8b7,_0x28bc6c,_0x2055b9];}constructor(_0xb3e726){super(_0xb3e726),this[_0x234b('0x3e')]=this[_0x234b('0x2a')][_0x234b('0x10b')]['get'](_0x234b('0xf3')),this[_0x234b('0xfe')](_0x234b('0x101'),null),this['set'](_0x234b('0x6d'),null),this[_0x234b('0x57')]=null,this[_0x234b('0xfe')](_0x234b('0xa9'),null),this[_0x234b('0xfe')](_0x234b('0x6e'),!0x1),this['set']('isEnabled',!0x0),this['on'](_0x234b('0xaa'),(_0x5607d1,_0x4cee4b,_0xf7bc3a)=>{this[_0x234b('0x101')]=null,this['activeView']=null,this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0x69')](_0x2e2649=>{for(const _0x40ebe8 of this['editor'][_0x234b('0xd1')][_0x234b('0x35')]['document'][_0x234b('0x8')])_0xf7bc3a?_0x2e2649[_0x234b('0xa5')](_0x234b('0xd5'),_0x40ebe8):_0x2e2649[_0x234b('0xea')]('ck-editor__editable__overlay',_0x40ebe8);});}),this[_0x234b('0x49')](_0x234b('0xee'))['to'](this,_0x234b('0x101'),_0x287940=>null!==_0x287940),this[_0x234b('0x49')](_0x234b('0x68'))['to'](this,'isReady',this,'diff',this,_0x234b('0x101'),(_0x5ef7db,_0x460153,_0x22b7d0)=>_0x5ef7db&&_0x22b7d0?_0x460153[_0x234b('0xb5')]['getIndex'](_0x22b7d0):0x0),this['bind'](_0x234b('0x4b'))['to'](this,_0x234b('0x6e'),this,_0x234b('0xa9'),(_0x396516,_0x245fc4)=>_0x396516?_0x245fc4['changes'][_0x234b('0xff')]:0x0),this[_0x234b('0xc2')]=null,this[_0x234b('0x28')]=new Map(),this[_0x234b('0x34')]=null,this['_balloon']=this[_0x234b('0x2a')]['plugins'][_0x234b('0x26')](_0x28bc6c);}[_0x234b('0xb0')](){const _0x12b66a=this[_0x234b('0x2a')],_0x266ce9=new ShowChangeCommand(_0x12b66a,{'direction':'backward'}),_0x1681c5=new ShowChangeCommand(_0x12b66a,{'direction':'forward'});(_0x12b66a[_0x234b('0x7c')]['add']('showPreviousChange',_0x266ce9),_0x12b66a[_0x234b('0x7c')]['add'](_0x234b('0xd9'),_0x1681c5),_0x12b66a[_0x234b('0x7c')][_0x234b('0xb8')](_0x234b('0x3'),new RestoreRevisionCommand(_0x12b66a)),this['on']('change:numberOfChanges',()=>{_0x266ce9[_0x234b('0x2d')](),_0x1681c5[_0x234b('0x2d')]();}),this[_0x234b('0xdb')](),this[_0x234b('0x1b')](),_0x12b66a['enableReadOnlyMode']('revision-viewer'),_0x12b66a['plugins'][_0x234b('0x33')]('WidgetToolbarRepository'))&&_0x12b66a['plugins'][_0x234b('0x26')](_0x234b('0xb6'))[_0x234b('0x9')](_0x234b('0x48'));}async['getRevisionData'](_0x1f2d0f){await this[_0x234b('0xa1')](_0x1f2d0f);const _0x35ca52={};for(const _0x32ec75 in _0x1f2d0f['diffData']){if(_0x1f2d0f[_0x234b('0x21')][_0x32ec75][_0x234b('0x25')]&&!_0x1f2d0f[_0x234b('0x21')][_0x32ec75]['attachChange'][_0x234b('0x59')])continue;const _0x41afd3=this[_0x234b('0x71')](JSON['parse'](_0x1f2d0f[_0x234b('0x21')][_0x32ec75][_0x234b('0x8d')])),_0xb1d4ee=this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')]['document'],_0x1f1b13=new _0x561f79(_0xb1d4ee,_0x41afd3['map'](_0x966b73=>this['_getViewObj'](_0x966b73)));this[_0x234b('0x2a')][_0x234b('0xb3')][_0x234b('0xe0')]['useFillerType'](_0x234b('0x108')),_0x35ca52[_0x32ec75]=this[_0x234b('0x2a')][_0x234b('0xb3')][_0x234b('0xe0')][_0x234b('0x96')](_0x1f1b13),this[_0x234b('0x2a')][_0x234b('0xb3')][_0x234b('0xe0')][_0x234b('0xad')]('default');}return _0x35ca52;}async[_0x234b('0x13')](_0x506e0d){await this[_0x234b('0xa1')](_0x506e0d);const _0x5c544a={};for(const _0x26eaf0 in _0x506e0d[_0x234b('0x21')])_0x506e0d[_0x234b('0x21')][_0x26eaf0][_0x234b('0x25')]&&!_0x506e0d[_0x234b('0x21')][_0x26eaf0]['attachChange']['isAttached']||(_0x5c544a[_0x26eaf0]=_0x506e0d['diffData'][_0x26eaf0][_0x234b('0xde')]||{});return _0x5c544a;}['_removeRevisionMarkers'](_0x44112e){return(_0x44112e=_0x44112e[_0x234b('0xaf')](_0x9a799=>!_0x9a799[_0x234b('0x2')]||'revision-start'!==_0x9a799[_0x234b('0x2')]&&_0x234b('0x70')!==_0x9a799[_0x234b('0x2')]))['forEach'](_0x479954=>{_0x234b('0xc3')!=typeof _0x479954&&(_0x479954['children']=this[_0x234b('0x71')](_0x479954['children']),_0x479954[_0x234b('0xc5')]=_0x479954[_0x234b('0xc5')][_0x234b('0xaf')](_0x2f8867=>!_0x2f8867[0x0][_0x234b('0x109')](_0x234b('0xa0'))));}),_0x44112e;}async[_0x234b('0xeb')](_0x24e4c1,_0x568d39,_0x1e4855=!0x1){if(!this[_0x234b('0xc')])return;const _0x27d9be=this[_0x234b('0xa9')],_0x4c73e8=this[_0x234b('0x3e')],_0x13fd60=_0x234b('0xc3')==typeof _0x24e4c1?_0x4c73e8[_0x234b('0xab')](_0x24e4c1):_0x24e4c1,_0xf4576f=_0x234b('0xc3')==typeof _0x568d39?_0x4c73e8[_0x234b('0xab')](_0x568d39):_0x568d39,_0x51ae97=_0x13fd60['id'],_0x54d2d3=_0xf4576f?_0xf4576f['id']:null;if(!_0x1e4855&&this[_0x234b('0xa9')]&&this[_0x234b('0xa9')]['newRevisionId']===_0x51ae97&&this[_0x234b('0xa9')][_0x234b('0x61')]===_0x54d2d3)return Promise['resolve']();this['isReady']=!0x1,this[_0x234b('0x6d')]=null,this[_0x234b('0x101')]=null,this['diff']=new _0x2e9d2b(_0x51ae97,_0x54d2d3);const _0x51cc22=this[_0x234b('0xf8')](_0x13fd60,_0xf4576f,!0x0)[_0x234b('0xdf')](_0x3f8ad4=>this['loadRevisionData'](_0x3f8ad4));return _0x51cc22['push'](new Promise(_0x4146a5=>{setTimeout(_0x4146a5,0x14);})),Promise[_0x234b('0x81')](_0x51cc22)['then'](()=>{if(!this[_0x234b('0xc')])return;this[_0x234b('0xf7')]();const _0x5ac68e=this[_0x234b('0xd0')](_0x51ae97,_0x54d2d3);for(const _0x1de02c of _0x5ac68e[_0x234b('0xb5')])this[_0x234b('0x28')][_0x234b('0xfe')](_0x1de02c['id'],_0x1de02c);this['editor'][_0x234b('0x111')][_0x234b('0x6b')]({'isUndoable':!0x1},_0x52c274=>{for(const _0x1451f8 of this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0xbb')][_0x234b('0x27')]())_0x52c274['detachRoot'](_0x1451f8);for(const _0x4ebe66 of Object[_0x234b('0x119')](_0x5ac68e['model'])){const _0x1437ed=_0x52c274['addRoot'](_0x4ebe66);for(const _0x4b50f6 of Object['keys'](_0x5ac68e[_0x234b('0xc5')][_0x4ebe66]))_0x52c274['setAttribute'](_0x4b50f6,_0x5ac68e[_0x234b('0xc5')][_0x4ebe66][_0x4b50f6],_0x1437ed);_0x52c274['insert'](_0x5ac68e[_0x234b('0x111')][_0x4ebe66],_0x1437ed,0x0);}}),this[_0x234b('0xa9')][_0x234b('0xcf')](this[_0x234b('0x4e')](_0x5ac68e[_0x234b('0xb5')])),this[_0x234b('0x6e')]=!0x0;})[_0x234b('0x9c')](_0x102280=>{console[_0x234b('0xd')](_0x102280),this[_0x234b('0xf7')](),_0x27d9be&&(this['diff']=_0x27d9be),this[_0x234b('0x6e')]=!0x0;});}['addRevisionData'](_0x346ece,_0x277c6c){const _0x2a0183=this[_0x234b('0x3e')][_0x234b('0x39')](_0x346ece);return _0x2a0183['on'](_0x234b('0x116'),(_0x407534,_0x3b1492,_0x14b73d)=>_0x277c6c(_0x3b1492,_0x14b73d,_0x2a0183)),this[_0x234b('0x3e')][_0x234b('0x93')](_0x2a0183),_0x2a0183;}[_0x234b('0xa1')](_0x2458a1){if(!_0x2458a1||_0x2458a1['diffData'])return Promise['resolve']();{const _0x221b07=this[_0x234b('0x2a')][_0x234b('0x73')][_0x234b('0x26')]('collaboration.channelId');return this['adapter'][_0x234b('0xab')]({'channelId':_0x221b07,'revisionId':_0x2458a1['id']})[_0x234b('0x50')](_0x59f23b=>{_0x2458a1[_0x234b('0x116')]({'diffData':_0x59f23b['diffData']},!0x0);});}}[_0x234b('0xf7')](){this[_0x234b('0x101')]=null,this['_cleanMarkers'](),this[_0x234b('0xc2')]&&this[_0x234b('0xc2')][_0x234b('0xed')](),this[_0x234b('0xc2')]=null,this['_changeIdToChange'][_0x234b('0xae')](),this[_0x234b('0x2a')]['model'][_0x234b('0x6b')]({'isUndoable':!0x1},_0x466a37=>{for(const _0x4b26d8 of this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0xbb')][_0x234b('0x27')]())_0x466a37[_0x234b('0xe8')](_0x4b26d8);});}[_0x234b('0x4e')](_0x1fe1ce){const _0x5b2159=[],_0x5b6cc6=new Map();for(const _0xbf1e2b of this['editor'][_0x234b('0x111')][_0x234b('0xbb')][_0x234b('0x27')]()){const _0x14eaac=this['editor'][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0x91')](_0xbf1e2b);if(!_0x14eaac)continue;const _0x3d2a33=_0x14eaac[_0x234b('0xb7')]()['item'](0x0);_0x3d2a33&&(_0x5b2159[_0x234b('0x10c')](_0xbf1e2b),_0x5b6cc6['set'](_0xbf1e2b,_0x3d2a33));}return _0x5b2159[_0x234b('0x51')]((_0x24cc86,_0x26ede5)=>{const _0x34cadd=_0x5b6cc6[_0x234b('0x26')](_0x24cc86),_0xe8abe2=_0x5b6cc6[_0x234b('0x26')](_0x26ede5);return _0x34cadd['y']-_0xe8abe2['y']||_0x34cadd['x']-_0xe8abe2['x'];}),(_0x1fe1ce=_0x1fe1ce['filter'](_0x2c96c9=>_0x5b2159['includes'](_0x2c96c9[_0x234b('0x4c')])))[_0x234b('0x51')]((_0x3b18d0,_0xd92641)=>_0x5b2159[_0x234b('0x75')](_0x3b18d0[_0x234b('0x4c')])-_0x5b2159['indexOf'](_0xd92641[_0x234b('0x4c')])),_0x1fe1ce;}['_makeTape'](_0x5f9226){const _0x533db1=Array['from'](_0x5f9226[_0x234b('0xf6')])[_0x234b('0xaf')](([_0x5ea261,_0x133e2c])=>_0x5ea261[_0x234b('0x109')]('revision:')&&!_0x133e2c[_0x234b('0x102')]),_0x51b135=Array[_0x234b('0x43')](this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0xb2')](_0x5f9226)[_0x234b('0x1c')]({'singleCharacters':!0x0}));if(0x0!=_0x533db1[_0x234b('0xff')])for(const _0x32d7c7 of _0x51b135){const [_0x7f129a,_0x5b6c17]=_0x533db1[0x0],[,_0x339ea8,_0x425fb9]=_0x7f129a[_0x234b('0x4a')](':');if(_0x5b6c17[_0x234b('0x15')][_0x234b('0x74')](_0x32d7c7['nextPosition'])&&_0x533db1[_0x234b('0x8b')](),(_0x32d7c7[_0x234b('0x55')]['isEqual'](_0x5b6c17[_0x234b('0xce')])||_0x32d7c7[_0x234b('0x55')][_0x234b('0x63')](_0x5b6c17[_0x234b('0xce')]))&&(_0x234b('0x30')==_0x339ea8?_0x32d7c7[_0x234b('0x2c')]={'userId':_0x425fb9}:'deletion'==_0x339ea8&&(_0x32d7c7[_0x234b('0x9d')]={'userId':_0x425fb9})),0x0==_0x533db1[_0x234b('0xff')])break;}return _0x51b135;}[_0x234b('0x31')](_0x189763){const _0x4789fc=new Map();for(let _0x4b0aad=0x0;_0x4b0aad<_0x189763[_0x234b('0xff')];_0x4b0aad++)_0x234b('0x98')===_0x189763[_0x4b0aad][_0x234b('0xfb')]?(_0x189763[_0x4b0aad][_0x234b('0xd7')][_0x234b('0x94')]=_0x4b0aad,_0x189763[_0x4b0aad]['item'][_0x234b('0xf2')]=_0x4b0aad):('elementStart'===_0x189763[_0x4b0aad][_0x234b('0xfb')]?_0x189763[_0x4b0aad][_0x234b('0xd7')][_0x234b('0x94')]=_0x4b0aad:_0x234b('0x58')===_0x189763[_0x4b0aad][_0x234b('0xfb')]&&(_0x189763[_0x4b0aad]['item']['endIndex']=_0x4b0aad),_0x4789fc[_0x234b('0xfe')](_0x189763[_0x4b0aad]['id'],_0x4b0aad));for(const _0x4ec4ae of _0x4789fc['values']())_0x234b('0xbe')===_0x189763[_0x4ec4ae][_0x234b('0xfb')]?_0x189763[_0x4ec4ae][_0x234b('0xd7')][_0x234b('0xf2')]=_0x4789fc[_0x234b('0x26')](_0x189763[_0x4ec4ae][_0x234b('0xba')]):_0x234b('0x58')===_0x189763[_0x4ec4ae][_0x234b('0xfb')]&&(_0x189763[_0x4ec4ae][_0x234b('0xd7')][_0x234b('0x94')]=_0x4789fc[_0x234b('0x26')](_0x189763[_0x4ec4ae]['pairId']));}[_0x234b('0x7')](_0x32207c){for(let _0x47c24c=0x0;_0x47c24c<_0x32207c[_0x234b('0xff')];_0x47c24c++){if(_0x234b('0xbe')===_0x32207c[_0x47c24c][_0x234b('0xfb')])_0x32207c[_0x47c24c][_0x234b('0xd7')][_0x234b('0x94')]=_0x47c24c;else{if(_0x234b('0x58')===_0x32207c[_0x47c24c]['type']){_0x32207c[_0x47c24c][_0x234b('0xd7')]['endIndex']=_0x47c24c;const _0x28ad84=_0x32207c[_0x47c24c][_0x234b('0xd7')][_0x234b('0x94')];_0x32207c[_0x28ad84][_0x234b('0xba')]=_0x32207c[_0x47c24c]['id'],_0x32207c[_0x47c24c][_0x234b('0xba')]=_0x32207c[_0x28ad84]['id'];}else _0x32207c[_0x47c24c][_0x234b('0xd7')][_0x234b('0x94')]=_0x47c24c,_0x32207c[_0x47c24c][_0x234b('0xd7')][_0x234b('0xf2')]=_0x47c24c,_0x32207c[_0x47c24c][_0x234b('0xba')]=null;}_0x32207c[_0x47c24c][_0x234b('0xe4')]||(_0x32207c[_0x47c24c][_0x234b('0xe4')]=[],_0x32207c[_0x47c24c][_0x234b('0xc7')]=[]);}}[_0x234b('0x115')](_0x562f78,_0x2e7e73){const _0x572d10=_0x562f78[_0x234b('0xaf')](_0x54fa4a=>!_0x54fa4a['isAdded']);for(let _0x12f0a3=0x0;_0x12f0a3<_0x2e7e73[_0x234b('0xff')];_0x12f0a3++)_0x2e7e73[_0x12f0a3][_0x234b('0x2c')]&&(_0x572d10[_0x12f0a3][_0x234b('0x2c')]=_0x2e7e73[_0x12f0a3]['isAdded']);}['_makeModelFromViewString'](_0x21e7ba){const _0x340d94=JSON['parse'](_0x21e7ba),_0x623bca=this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0xbb')],_0xd7aecd=new _0x561f79(_0x623bca,_0x340d94[_0x234b('0xdf')](_0x1f5e98=>this[_0x234b('0xd3')](_0x1f5e98)));return this[_0x234b('0x2a')][_0x234b('0xb3')][_0x234b('0x90')](_0xd7aecd);}['_getViewObj'](_0x170f25){const _0xaaf21e=this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0xbb')];if('string'==typeof _0x170f25)return new _0x524404(_0xaaf21e,_0x170f25);{const _0x1bb17a=_0x170f25[_0x234b('0xf')][_0x234b('0xdf')](_0x186c15=>this[_0x234b('0xd3')](_0x186c15));return new(tt[_0x170f25[(_0x234b('0xfb'))]]||_0x68b40a)(_0xaaf21e,_0x170f25[_0x234b('0x2')],_0x170f25[_0x234b('0xc5')],_0x1bb17a);}}['_getDiff'](_0x3754b7,_0x363284=null){const _0x5c7ced=this['repository'][_0x234b('0xab')](_0x3754b7),_0x1c8bad=_0x363284?this[_0x234b('0x3e')][_0x234b('0xab')](_0x363284):null,_0x4e409f=this[_0x234b('0xf8')](_0x5c7ced,_0x1c8bad),_0x2362c5=_0x4e409f[_0x4e409f[_0x234b('0xff')]-0x1],_0xe3b5a2=new Map(),_0x4bdd4f={'model':{},'attributes':{},'changes':[]},_0x46a910=new Set(),_0x588155=new Map();for(let _0x2cd68b=_0x4e409f['length']-0x1;_0x2cd68b>=0x0;_0x2cd68b--){const _0x23bb6b=_0x4e409f[_0x2cd68b];for(const _0x3f63a8 of Object['keys'](_0x23bb6b[_0x234b('0x21')]))if(_0x23bb6b['diffData'][_0x3f63a8]['attachChange']){const _0x40461e=_0x23bb6b[_0x234b('0x21')][_0x3f63a8][_0x234b('0x25')];_0x40461e[_0x234b('0x59')]?(_0x46a910[_0x234b('0xb8')](_0x3f63a8),_0x588155[_0x234b('0x33')](_0x3f63a8)&&_0x588155[_0x234b('0x26')](_0x3f63a8)['userId']==_0x40461e[_0x234b('0xa6')]?_0x588155[_0x234b('0x10f')](_0x3f63a8):_0x588155['set'](_0x3f63a8,_0x40461e)):_0x588155['has'](_0x3f63a8)?(_0x46a910[_0x234b('0x10f')](_0x3f63a8),_0x588155[_0x234b('0x10f')](_0x3f63a8)):(_0x46a910['add'](_0x3f63a8),_0x588155[_0x234b('0xfe')](_0x3f63a8,_0x40461e));}else _0x46a910[_0x234b('0xb8')](_0x3f63a8);}for(const _0x2a4ee9 of _0x46a910){const _0xe4da4f=_0x588155[_0x234b('0x33')](_0x2a4ee9)&&!_0x588155[_0x234b('0x26')](_0x2a4ee9)[_0x234b('0x59')];let _0x5093a7=_0xe4da4f?_0x4e409f[_0x234b('0xff')]-0x1:0x0;const _0x35d14a=_0xe4da4f?-0x1:0x1;for(;_0x4e409f[_0x5093a7];){const _0x32880c=_0x4e409f[_0x5093a7];if(_0x32880c['diffData'][_0x2a4ee9]){const _0x31ea1f=_0xe4da4f?_0x32880c[_0x234b('0x21')][_0x2a4ee9]['attributesBefore']:_0x32880c[_0x234b('0x21')][_0x2a4ee9]['attributesAfter'];_0x4bdd4f['attributes'][_0x2a4ee9]=_0x31ea1f?_0x28b9ba(_0x31ea1f):{};break;}_0x5093a7+=_0x35d14a;}}for(const _0x2bc356 of _0x4e409f){_0x2bc356[_0x234b('0x111')]={};for(const _0x3e359a of _0x2bc356[_0x234b('0xe1')])_0xe3b5a2['set'](_0x3e359a['id'],_0x3e359a);for(const _0x1c55e9 of _0x46a910){const _0x21db5d=_0x2bc356[_0x234b('0x21')][_0x1c55e9]?_0x2bc356['diffData'][_0x1c55e9][_0x234b('0x8d')]:'[]',_0x426650=_0x2bc356[_0x234b('0x21')][_0x1c55e9]?_0x2bc356[_0x234b('0x21')][_0x1c55e9]['deletions']:'[]';_0x2bc356[_0x234b('0x111')][_0x1c55e9]={'insertions':this[_0x234b('0x8a')](_0x21db5d),'deletions':this[_0x234b('0x8a')](_0x426650)};}}for(const _0x258bf2 of _0x46a910){let _0x34b2b2=null,_0x5e0a3d=0x0;const _0x522ded=new Map(Array[_0x234b('0x43')](_0x5c7ced[_0x234b('0x111')][_0x258bf2][_0x234b('0x8d')][_0x234b('0xf6')])['filter'](([_0x76eaec])=>!_0x76eaec[_0x234b('0x109')](_0x234b('0xcb'))));let _0x3dabad=0x0;for(const _0x4b49da of _0x4e409f){const _0x69bafd=this[_0x234b('0xbc')](_0x4b49da['model'][_0x258bf2][_0x234b('0x8d')]);_0x4b49da==_0x5c7ced?(_0x34b2b2=_0x69bafd,_0x5e0a3d=_0x34b2b2[_0x234b('0xff')],_0x34b2b2['forEach'](_0x5519df=>{_0x5519df['id']=_0x3dabad++;}),this[_0x234b('0x7')](_0x34b2b2)):this['_markInsertions'](_0x34b2b2,_0x69bafd);const _0x551a2b=_0x34b2b2[_0x234b('0xaf')](_0x46133d=>!_0x46133d[_0x234b('0x2c')])[_0x234b('0xdf')](_0x42caf0=>_0x42caf0['id']);let _0x3d5577=0x0;const _0x933c40=this['_makeTape'](_0x4b49da[_0x234b('0x111')][_0x258bf2][_0x234b('0x78')]);_0x933c40[_0x234b('0x88')](_0xc58518=>{_0xc58518[_0x234b('0x9d')]?_0xc58518['id']=_0x5e0a3d++:_0xc58518['id']=_0x551a2b[_0x3d5577++];}),this['_processTape'](_0x933c40),this[_0x234b('0x67')](_0x34b2b2,_0x234b('0x2c')),this[_0x234b('0x67')](_0x933c40,'isRemoved'),_0x4b49da==_0x5c7ced&&this[_0x234b('0xe5')](_0x34b2b2,_0x522ded),_0x34b2b2=this[_0x234b('0x82')](_0x34b2b2,_0x933c40),this[_0x234b('0x31')](_0x34b2b2),this[_0x234b('0x67')](_0x34b2b2,_0x234b('0x9d'));}_0x34b2b2=_0x34b2b2[_0x234b('0xaf')](_0x9d902a=>!(_0x9d902a[_0x234b('0x2c')]&&_0x9d902a[_0x234b('0x9d')]));const _0xaf4397=new Map(_0x2362c5['model'][_0x258bf2][_0x234b('0x78')][_0x234b('0xf6')]),_0x44ab19=new Set(_0x522ded[_0x234b('0x119')]());for(const _0x4d059e of _0xaf4397[_0x234b('0x119')]())_0x44ab19[_0x234b('0x10f')](_0x4d059e);this['_markSuggestions'](_0x34b2b2,_0x44ab19),this['_fixObsoleteTags'](_0x34b2b2),_0x34b2b2=this[_0x234b('0x72')](_0x34b2b2),_0x34b2b2=this['_markMismatchedRemovedTags'](_0x34b2b2),_0x34b2b2=this[_0x234b('0x3d')](_0x34b2b2);const {root:_0x34f1b8,changes:_0x181900}=this[_0x234b('0xc8')](_0x34b2b2,_0xe3b5a2,_0x258bf2);_0x4bdd4f[_0x234b('0x111')][_0x258bf2]=_0x34f1b8;const _0x33b5d5=_0x588155[_0x234b('0x26')](_0x258bf2);if(_0x33b5d5){const _0x270677=_0xe3b5a2['get'](_0x33b5d5['userId']),_0x145175=new _0x5656c0({'author':_0x270677,'type':_0x33b5d5['isAttached']?_0x234b('0xb8'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x258bf2});_0x181900[_0x234b('0xec')](_0x145175),_0x4bdd4f[_0x234b('0xc5')][_0x258bf2][_0x234b('0x36')]=_0x145175['id'];}_0x4bdd4f[_0x234b('0xb5')]=_0x4bdd4f['changes'][_0x234b('0x14')](_0x181900);}return _0x4bdd4f;}['_markMarkers'](_0x319c28,_0x29ecc9){for(let _0x574438=0x0;_0x574438<_0x319c28[_0x234b('0xff')];_0x574438++)for(const [_0x93be27,_0x5f5a66]of _0x29ecc9)_0x5f5a66[_0x234b('0xce')][_0x234b('0x74')](_0x319c28[_0x574438][_0x234b('0x55')])&&_0x319c28[_0x574438][_0x234b('0xe4')][_0x234b('0x10c')](_0x93be27),_0x5f5a66[_0x234b('0x15')][_0x234b('0x74')](_0x319c28[_0x574438][_0x234b('0xbd')])&&_0x319c28[_0x574438][_0x234b('0xc7')]['push'](_0x93be27);}[_0x234b('0x82')](_0x12e97d,_0x4c4d82){let _0x593c3a=[],_0x42845f=0x0,_0x3613e4=0x0;for(;_0x42845f<_0x12e97d[_0x234b('0xff')]||_0x3613e4<_0x4c4d82[_0x234b('0xff')];){const _0xefc53f=_0x12e97d[_0x42845f]||{},_0x1b2d16=_0x4c4d82[_0x3613e4]||{};if(_0xefc53f['id']==_0x1b2d16['id'])_0x42845f++,_0x3613e4++,_0x593c3a[_0x234b('0x10c')](_0xefc53f);else{if(_0x1b2d16[_0x234b('0x9d')]&&_0xefc53f['isAdded']){const {commonTape:_0x58de7f,iEnd:_0xad94ac,jEnd:_0x3511f3}=this['_threeWayMerge'](_0x12e97d,_0x42845f,_0x4c4d82,_0x3613e4);_0x593c3a=_0x593c3a[_0x234b('0x14')](_0x58de7f),_0x42845f=_0xad94ac,_0x3613e4=_0x3511f3;}else _0x1b2d16[_0x234b('0x9d')]?(_0x3613e4++,_0x593c3a[_0x234b('0x10c')](_0x1b2d16)):(_0x42845f++,_0x593c3a[_0x234b('0x10c')](_0xefc53f));}}return _0x593c3a;}[_0x234b('0x113')](_0xc2ee8e,_0x3de6d9){const _0x1a4c95=[];for(let _0x38b8c6=0x0;_0x38b8c6<_0xc2ee8e['length'];_0x38b8c6++){for(let _0x3c7d38=0x0;_0x3c7d38<_0xc2ee8e[_0x38b8c6][_0x234b('0xe4')]['length'];_0x3c7d38++){const _0x2ffedc=_0xc2ee8e[_0x38b8c6][_0x234b('0xe4')][_0x3c7d38];if(!_0x3de6d9['has'](_0x2ffedc))continue;const {group:_0x5ae783,type:_0x43b1c4,authorId:_0x53f03b}=_0x993aa7(_0x2ffedc);'revision-suggestion'!=_0x5ae783||_0x234b('0x30')!=_0x43b1c4&&_0x234b('0x3f')!=_0x43b1c4||(_0x1a4c95[_0x234b('0xec')]({'type':_0x43b1c4,'name':_0x2ffedc,'userId':_0x53f03b}),_0xc2ee8e[_0x38b8c6][_0x234b('0xe4')]['splice'](_0x3c7d38,0x1),_0x3c7d38--);}_0x590b03(_0xc2ee8e[_0x38b8c6]);for(let _0x1d613a=0x0;_0x1d613a<_0xc2ee8e[_0x38b8c6][_0x234b('0xc7')]['length'];_0x1d613a++){const _0x1f3035=_0xc2ee8e[_0x38b8c6][_0x234b('0xc7')][_0x1d613a];if(!_0x3de6d9[_0x234b('0x33')](_0x1f3035))continue;const {group:_0x17f723,type:_0x546bee}=_0x993aa7(_0x1f3035);if(_0x234b('0x89')!=_0x17f723||'insertion'!=_0x546bee&&_0x234b('0x3f')!=_0x546bee)continue;_0xc2ee8e[_0x38b8c6][_0x234b('0xc7')]['splice'](_0x1d613a,0x1),_0x1d613a--;const _0x1eca38=_0x1a4c95[_0x234b('0x40')](_0x177674=>_0x177674[_0x234b('0x2')]==_0x1f3035);_0x1eca38>-0x1&&_0x1a4c95['splice'](_0x1eca38,0x1);}}function _0x993aa7(_0x53ea60){const _0x3da905=_0x53ea60[_0x234b('0x4a')](':');return{'group':_0x3da905[0x0],'type':_0x3da905[0x1],'subType':_0x3da905['length']>=0x5?_0x3da905[0x2]:null,'id':_0x3da905[_0x234b('0xff')]<0x5?_0x3da905[0x2]:_0x3da905[0x3],'authorId':_0x3da905[_0x234b('0xff')]<0x5?_0x3da905[0x3]:_0x3da905[0x4],'markerCount':0x6==_0x3da905[_0x234b('0xff')]?_0x3da905[0x5]:null};}function _0x590b03(_0x18856e){for(let _0x2afe1e=0x0;_0x2afe1e<_0x1a4c95[_0x234b('0xff')];_0x2afe1e++){if(_0x18856e[_0x234b('0x2c')]&&_0x234b('0x30')==_0x1a4c95[_0x2afe1e][_0x234b('0xfb')])return _0x18856e[_0x234b('0x7d')]=_0x1a4c95[_0x2afe1e],void delete _0x18856e[_0x234b('0x2c')];if(!_0x18856e['isAdded']&&!_0x18856e['isRemoved']&&_0x234b('0x3f')==_0x1a4c95[_0x2afe1e][_0x234b('0xfb')])return void(_0x18856e['isRemoveSuggestion']=_0x1a4c95[_0x2afe1e]);}}}[_0x234b('0x67')](_0x3206f7,_0x52cd1d){let _0x4dc33e=0x0,_0x433ddb=!0x1;const _0x200b89=new Map();for(const _0x320d14 of _0x3206f7)_0x320d14[_0x52cd1d]?_0x433ddb&&(_0x4dc33e++,_0x433ddb=!0x1):(_0x4dc33e++,_0x433ddb=!0x0),_0x200b89['set'](_0x320d14['id'],_0x4dc33e);for(let _0x283491=0x0;_0x283491<_0x3206f7[_0x234b('0xff')];_0x283491++){if(_0x234b('0x9d')==_0x52cd1d&&_0x3206f7[_0x283491][_0x234b('0x2c')]||'isAdded'==_0x52cd1d&&_0x3206f7[_0x283491][_0x234b('0x9d')])continue;if('text'==_0x3206f7[_0x283491][_0x234b('0xfb')]){_0x3206f7[_0x283491][_0x234b('0x11c')]=0x0;continue;}const _0x3446e3=_0x200b89[_0x234b('0x26')](_0x3206f7[_0x283491][_0x234b('0xba')]),_0x562670=_0x200b89[_0x234b('0x26')](_0x3206f7[_0x283491]['id']);_0x3206f7[_0x283491]['distance']=_0x3446e3-_0x562670;}}[_0x234b('0xf8')](_0x4f46cd,_0x5a94f6,_0x4dfc69=!0x1){const _0x59ddd8=[];let _0x47508d=this[_0x234b('0x3e')][_0x234b('0x100')](_0x4f46cd),_0x2c610f=this[_0x234b('0x3e')][_0x234b('0x100')](_0x5a94f6);for(-0x1==_0x2c610f&&(_0x2c610f=this[_0x234b('0x3e')]['_revisions'][_0x234b('0xff')],_0x4dfc69=!0x1);_0x47508d<_0x2c610f;)_0x59ddd8[_0x234b('0x10c')](this[_0x234b('0x3e')][_0x234b('0xab')](_0x47508d)),_0x47508d++;return _0x4dfc69&&_0x59ddd8[_0x234b('0x10c')](this[_0x234b('0x3e')][_0x234b('0xab')](_0x47508d)),_0x59ddd8;}[_0x234b('0xdd')](_0xdacf50,_0x519c7b,_0x1f51d0,_0x356b7d){const _0x193390=this[_0x234b('0x2a')]['model'][_0x234b('0xfa')];let _0x2903c7=_0x519c7b;for(;_0xdacf50[_0x2903c7]&&_0xdacf50[_0x2903c7][_0x234b('0x2c')];)_0x2903c7++;let _0x3eb93d=_0x356b7d;for(;_0x1f51d0[_0x3eb93d]&&_0x1f51d0[_0x3eb93d][_0x234b('0x9d')];)_0x3eb93d++;_0x21d794(_0xdacf50,_0x519c7b,_0x2903c7),_0x21d794(_0x1f51d0,_0x356b7d,_0x3eb93d);const _0x3332c6=_0x1f51d0[_0x234b('0xb1')](_0x356b7d,_0x3eb93d)['concat'](_0xdacf50[_0x234b('0xb1')](_0x519c7b,_0x2903c7));return _0x3332c6[_0x234b('0x51')]((_0x359bce,_0x426d52)=>_0x359bce[_0x234b('0x60')]!=_0x426d52[_0x234b('0x60')]?_0x359bce['side']-_0x426d52['side']:_0x359bce['level']!=_0x426d52['level']?_0x359bce[_0x234b('0x110')]-_0x426d52['level']:_0x359bce['distance']!=_0x426d52[_0x234b('0x11c')]?_0x426d52[_0x234b('0x11c')]-_0x359bce[_0x234b('0x11c')]:!!_0x359bce[_0x234b('0x2c')]!=!!_0x426d52[_0x234b('0x2c')]?-0x1==_0x359bce[_0x234b('0x60')]||0x0==_0x359bce[_0x234b('0x60')]?_0x359bce['isAdded']?-0x1:0x1:_0x359bce[_0x234b('0x2c')]?0x1:-0x1:_0x359bce[_0x234b('0x1e')]-_0x426d52[_0x234b('0x1e')]),{'commonTape':_0x3332c6,'iEnd':_0x2903c7,'jEnd':_0x3eb93d};function _0x21d794(_0xe7c91e,_0x57bc84,_0x3ef6e7){let _0x568537=-0x1,_0x2e3b6a=Number[_0x234b('0x18')],_0x520cd1=!0x0;for(let _0xf8dc13=_0x57bc84;_0xf8dc13<_0x3ef6e7;_0xf8dc13++)if(_0x193390[_0x234b('0x6c')](_0xe7c91e[_0xf8dc13][_0x234b('0xd7')])||(_0x520cd1=!0x1),_0xe7c91e[_0xf8dc13][_0x234b('0xd7')][_0x234b('0x94')]<_0x57bc84&&(_0x568537=_0xf8dc13),_0xe7c91e[_0xf8dc13][_0x234b('0xd7')]['endIndex']>=_0x3ef6e7){_0x2e3b6a=_0xf8dc13;break;}_0x520cd1&&(_0x568537=_0x3ef6e7-0x1);for(let _0x1b5b51=_0x57bc84;_0x1b5b51<_0x3ef6e7;_0x1b5b51++)_0xe7c91e[_0x1b5b51][_0x234b('0x60')]=_0x1b5b51<=_0x568537?-0x1:_0x1b5b51<_0x2e3b6a?0x0:0x1,_0xe7c91e[_0x1b5b51][_0x234b('0x1e')]=_0x1b5b51;let _0x224ea5=0x0;for(let _0x2bfe64=_0x57bc84;_0x2bfe64<=_0x568537;_0x2bfe64++)0x0==_0xe7c91e[_0x2bfe64][_0x234b('0x11c')]?_0xe7c91e[_0x2bfe64]['level']=_0x224ea5:(_0x224ea5++,_0xe7c91e[_0x2bfe64][_0x234b('0x110')]=_0x224ea5,_0x224ea5++);for(let _0x1695ff=_0x57bc84;_0x1695ff<_0x3ef6e7;_0x1695ff++)0x0==_0xe7c91e[_0x1695ff][_0x234b('0x60')]&&(_0xe7c91e[_0x1695ff][_0x234b('0x110')]=_0x224ea5);_0x224ea5=0x0;for(let _0x34c5fb=_0x3ef6e7-0x1;_0x34c5fb>=_0x2e3b6a;_0x34c5fb--)0x0==_0xe7c91e[_0x34c5fb][_0x234b('0x11c')]?_0xe7c91e[_0x34c5fb][_0x234b('0x110')]=_0x224ea5:(_0x224ea5--,_0xe7c91e[_0x34c5fb][_0x234b('0x110')]=_0x224ea5,_0x224ea5--);}}[_0x234b('0xf4')](_0xff4e62){const _0x359697=new Map(),_0x136e2f=this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0xfa')];for(let _0x5ac80e=0x1;_0x5ac80e<_0xff4e62[_0x234b('0xff')];_0x5ac80e++){let _0x5e4586,_0x3db19f,_0x23880e;const _0x499ebd=_0xff4e62[_0x5ac80e],_0x2ea360=_0xff4e62[_0x5ac80e-0x1];if(_0x234b('0x98')==_0x499ebd['type'])continue;if(_0x499ebd[_0x234b('0xfb')]!=_0x2ea360[_0x234b('0xfb')])continue;if(!_0x136e2f['isBlock'](_0x2ea360['item'])||_0x136e2f[_0x234b('0x44')](_0x2ea360[_0x234b('0xd7')]))continue;if(!_0x136e2f[_0x234b('0x5c')](_0x499ebd[_0x234b('0xd7')])||_0x136e2f['isLimit'](_0x499ebd[_0x234b('0xd7')]))continue;if((_0xff4e62[_0x5ac80e][_0x234b('0x2c')]||_0xff4e62[_0x5ac80e]['isAddSuggestion'])&&_0xff4e62[_0x5ac80e-0x1][_0x234b('0x9d')])_0x5e4586=_0xff4e62[_0x5ac80e],_0x3db19f=_0xff4e62[_0x5ac80e-0x1],_0x23880e=_0x5ac80e-0x1;else{if(!_0xff4e62[_0x5ac80e][_0x234b('0x9d')]||!_0xff4e62[_0x5ac80e-0x1][_0x234b('0x2c')]&&!_0xff4e62[_0x5ac80e-0x1]['isAddSuggestion'])continue;_0x5e4586=_0xff4e62[_0x5ac80e-0x1],_0x3db19f=_0xff4e62[_0x5ac80e],_0x23880e=_0x5ac80e;}const _0x3d1476=_0x5e4586[_0x234b('0x110')]==_0x3db19f[_0x234b('0x110')],_0xf5f2d0=Math['abs'](_0x5e4586[_0x234b('0x110')])<Math[_0x234b('0x3c')](_0x3db19f[_0x234b('0x110')])&&0x0==_0x3db19f[_0x234b('0x11c')];(_0x3d1476||_0xf5f2d0)&&(_0x359697[_0x234b('0xfe')](_0x3db19f['id'],_0x5e4586['id']),_0xff4e62[_0x234b('0x12')](_0x23880e,0x1),_0x5ac80e--,_0x5e4586['isAdded']=!0x1);}for(let _0x4cd791=0x0;_0x4cd791<_0xff4e62[_0x234b('0xff')];_0x4cd791++)_0x359697[_0x234b('0x33')](_0xff4e62[_0x4cd791][_0x234b('0xba')])&&(_0xff4e62[_0x4cd791]['pairId']=_0x359697[_0x234b('0x26')](_0xff4e62[_0x4cd791][_0x234b('0xba')]));}['_removeMissingPairs'](_0x4cedea){const _0x330080=new Set(_0x4cedea[_0x234b('0xdf')](_0x1917d9=>_0x1917d9['id']));for(let _0x3bf2c2=0x0;_0x3bf2c2<_0x4cedea['length'];_0x3bf2c2++)_0x330080[_0x234b('0x33')](_0x4cedea[_0x3bf2c2][_0x234b('0xba')])||0x0==_0x4cedea[_0x3bf2c2][_0x234b('0x11c')]||(_0x4cedea[_0x3bf2c2][_0x234b('0x118')]=!0x0);return _0x4cedea[_0x234b('0xaf')](_0x49a1ce=>!_0x49a1ce[_0x234b('0x118')]);}[_0x234b('0x62')](_0x1a2fcf){const _0xb54ae7=new Set();for(let _0x8397a9=0x0;_0x8397a9<_0x1a2fcf[_0x234b('0xff')];_0x8397a9++){if(_0xb54ae7[_0x234b('0x33')](_0x1a2fcf[_0x8397a9]['id'])&&_0x1a2fcf[_0x8397a9]['isRemoved']&&(_0x1a2fcf[_0x8397a9][_0x234b('0x118')]=!0x0),_0x1a2fcf[_0x8397a9][_0x234b('0x118')])continue;if(0x0==_0x1a2fcf[_0x8397a9][_0x234b('0x11c')])continue;if(_0x234b('0xbe')!=_0x1a2fcf[_0x8397a9][_0x234b('0xfb')])continue;if(null==_0x1a2fcf[_0x8397a9][_0x234b('0xba')])continue;let _0x1af4da=_0x8397a9+0x1,_0xb68286=0x0;for(;_0x1a2fcf[_0x1af4da]['id']!=_0x1a2fcf[_0x8397a9][_0x234b('0xba')];)_0x234b('0xbe')==_0x1a2fcf[_0x1af4da]['type']?_0xb68286++:_0x234b('0x58')==_0x1a2fcf[_0x1af4da][_0x234b('0xfb')]&&_0xb68286--,_0x1af4da++;if(0x0!=_0xb68286){if(_0x1a2fcf[_0x8397a9][_0x234b('0x9d')])_0x1a2fcf[_0x8397a9][_0x234b('0x118')]=!0x0;else for(;_0x1af4da!=_0x8397a9;)_0x1a2fcf[_0x1af4da][_0x234b('0x9d')]&&0x0!=_0x1a2fcf[_0x1af4da][_0x234b('0x11c')]&&(_0x1a2fcf[_0x1af4da][_0x234b('0x118')]=!0x0,_0xb54ae7[_0x234b('0xb8')](_0x1a2fcf[_0x1af4da]['pairId'])),_0x1af4da--;}}return _0x1a2fcf[_0x234b('0xaf')](_0x1a3798=>!_0x1a3798[_0x234b('0x118')]);}[_0x234b('0x3d')](_0x1a4342){const _0x352e44=this['editor']['model'][_0x234b('0xfa')];for(let _0xb30fc8=0x0;_0xb30fc8<_0x1a4342[_0x234b('0xff')];_0xb30fc8++){if(!(_0x1a4342[_0xb30fc8]['isAdded']||_0x1a4342[_0xb30fc8]['isAddSuggestion']||_0x1a4342[_0xb30fc8][_0x234b('0x9d')]||_0x1a4342[_0xb30fc8][_0x234b('0xc6')]))continue;if(0x0==_0x1a4342[_0xb30fc8][_0x234b('0x11c')])continue;const _0x2f42f4=_0x1a4342[_0xb30fc8][_0x234b('0xd7')];_0x352e44['isBlock'](_0x2f42f4)||_0x352e44['isLimit'](_0x2f42f4)||(_0x1a4342[_0xb30fc8][_0x234b('0x2c')]&&delete _0x1a4342[_0xb30fc8][_0x234b('0x2c')],_0x1a4342[_0xb30fc8][_0x234b('0x7d')]&&delete _0x1a4342[_0xb30fc8][_0x234b('0x7d')],_0x1a4342[_0xb30fc8]['isRemoveSuggestion']&&delete _0x1a4342[_0xb30fc8][_0x234b('0xc6')],_0x1a4342[_0xb30fc8][_0x234b('0x9d')]&&(_0x1a4342[_0xb30fc8]['isIncorrect']=!0x0));}return _0x1a4342[_0x234b('0xaf')](_0x1e13da=>!_0x1e13da[_0x234b('0x118')]);}[_0x234b('0xc8')](_0x29d353,_0xfe1aa2,_0x38a3de){const _0xe1301a=new _0x5611e1(),_0x5055c4=[],_0x4de747=new Map(),_0x327ae4=this[_0x234b('0x2a')]['model'],_0xce8471=_0x327ae4[_0x234b('0xfa')],_0x566703=[_0xe1301a],_0x884428={},_0x52d387={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x35a86d=null;const _0x46cc60=[0x0];for(let _0x4273ff=0x0;_0x4273ff<_0x29d353['length'];_0x4273ff++){let _0x10d688,_0xa63869;if(_0x234b('0xbe')===_0x29d353[_0x4273ff][_0x234b('0xfb')]){_0x10d688=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60);const _0x223f16=new _0x30e2cd(_0x29d353[_0x4273ff][_0x234b('0xd7')][_0x234b('0x2')],_0x29d353[_0x4273ff][_0x234b('0xd7')][_0x234b('0x64')]());_0x566703[0x0][_0x234b('0x46')](_0x223f16),_0x46cc60[_0x234b('0x10c')](0x0),_0x566703['unshift'](_0x223f16),_0xa63869=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60),_0x35a86d=null;}else{if(_0x234b('0x58')===_0x29d353[_0x4273ff][_0x234b('0xfb')])_0x566703[_0x234b('0x8b')](),_0x10d688=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60),_0x46cc60['pop'](),_0x46cc60[_0x46cc60[_0x234b('0xff')]-0x1]++,_0xa63869=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60),_0x35a86d=null;else{if(_0x10d688=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60),_0x35a86d&&_0x5b9029(_0x35a86d,_0x29d353[_0x4273ff][_0x234b('0xd7')]))_0x35a86d[_0x234b('0xf5')]+=_0x29d353[_0x4273ff][_0x234b('0xd7')][_0x234b('0xb3')];else{const _0x144ca6=new _0x5bcfa1(_0x29d353[_0x4273ff][_0x234b('0xd7')]['data'],_0x29d353[_0x4273ff][_0x234b('0xd7')][_0x234b('0x64')]());_0x566703[0x0][_0x234b('0x46')](_0x144ca6),_0x35a86d=_0x144ca6;}_0x46cc60[_0x46cc60['length']-0x1]+=_0x29d353[_0x4273ff][_0x234b('0xd7')][_0x234b('0x8f')],_0xa63869=_0x327ae4[_0x234b('0x23')](_0xe1301a,_0x46cc60);}}for(const _0x509f20 of _0x29d353[_0x4273ff][_0x234b('0xe4')])_0x4de747[_0x234b('0xfe')](_0x509f20,{'start':_0x10d688,'end':null});_0x5bf409('isRemoveSuggestion',_0x4273ff,_0x10d688,_0xa63869),_0x5bf409(_0x234b('0x7d'),_0x4273ff,_0x10d688,_0xa63869),_0x5bf409(_0x234b('0x9d'),_0x4273ff,_0x10d688,_0xa63869),_0x5bf409(_0x234b('0x2c'),_0x4273ff,_0x10d688,_0xa63869);for(const _0x17320c of _0x29d353[_0x4273ff][_0x234b('0xc7')]){_0x4de747[_0x234b('0x26')](_0x17320c)['end']=_0xa63869;}}for(const [_0x485ab6,_0x1c39ea]of _0x4de747){const _0x4fa36b=this[_0x234b('0x2a')]['model'][_0x234b('0xd6')](_0x1c39ea['start'],_0x1c39ea[_0x234b('0x15')]);_0xe1301a['markers'][_0x234b('0xfe')](_0x485ab6,_0x4fa36b);}return _0x5055c4[_0x234b('0x51')]((_0x4449c4,_0x7e66b6)=>{const _0x556bf5=_0xe1301a['markers'][_0x234b('0x26')](_0x234b('0xcb')+_0x4449c4['id']),_0x5237c8=_0xe1301a[_0x234b('0xf6')]['get']('revision:'+_0x7e66b6['id']);return _0x556bf5['start']['isBefore'](_0x5237c8[_0x234b('0xce')])?-0x1:_0x556bf5[_0x234b('0xce')][_0x234b('0x63')](_0x5237c8[_0x234b('0xce')])?0x1:_0x556bf5[_0x234b('0x15')][_0x234b('0x3a')](_0x5237c8[_0x234b('0x15')])?-0x1:_0x556bf5[_0x234b('0x15')][_0x234b('0x63')](_0x5237c8[_0x234b('0x15')])?0x1:_0x234b('0xb8')===_0x4449c4['type']?-0x1:0x1;}),{'root':_0xe1301a,'changes':_0x5055c4};function _0x5bf409(_0x4d304f,_0x463f7a,_0x3aab35,_0x1fc1b1){const _0x5a05cc=!!_0x29d353[_0x463f7a][_0x4d304f],_0x3a8383=_0x5a05cc?_0x29d353[_0x463f7a][_0x4d304f][_0x234b('0xa6')]:null,_0x4fda59=_0x463f7a===_0x29d353[_0x234b('0xff')]-0x1,_0x25bc1f=_0x52d387[_0x4d304f][0x0],_0x59cc4a=_0xce8471[_0x234b('0xef')](_0x29d353[_0x463f7a]['item']);!_0x884428[_0x4d304f]&&_0x5a05cc?_0x884428[_0x4d304f]={'start':_0x3aab35,'tapeItem':_0x29d353[_0x463f7a],'userId':_0x3a8383,'type':_0x4d304f}:_0x884428[_0x4d304f]&&!_0x5a05cc?(_0x884428[_0x4d304f][_0x234b('0x15')]=_0x3aab35,_0x2a3c07(_0x884428[_0x4d304f]),_0x884428[_0x4d304f]=null):_0x884428[_0x4d304f]&&_0x5a05cc&&_0x884428[_0x4d304f][_0x234b('0xa6')]!==_0x3a8383&&(_0x884428[_0x4d304f][_0x234b('0x15')]=_0x3aab35,_0x25bc1f&&_0x25bc1f[_0x234b('0xa6')]===_0x884428[_0x4d304f][_0x234b('0xa6')]||_0x2a3c07(_0x884428[_0x4d304f]),_0x884428[_0x4d304f]={'start':_0x3aab35,'tapeItem':_0x29d353[_0x463f7a],'userId':_0x3a8383,'type':_0x4d304f}),_0x884428[_0x4d304f]&&_0x59cc4a&&('elementStart'!==_0x29d353[_0x463f7a][_0x234b('0xfb')]||_0x25bc1f&&_0x25bc1f[_0x234b('0xa6')]===_0x3a8383||_0x52d387[_0x4d304f][_0x234b('0xec')]({'userId':_0x3a8383,'object':_0x29d353[_0x463f7a][_0x234b('0xd7')],'change':_0x884428[_0x4d304f]}),_0x234b('0x58')===_0x29d353[_0x463f7a]['type']&&_0x25bc1f&&_0x25bc1f[_0x234b('0x103')]===_0x29d353[_0x463f7a][_0x234b('0xd7')]&&(_0x52d387[_0x4d304f][_0x234b('0x8b')](),_0x884428[_0x4d304f]=_0x25bc1f[_0x234b('0x69')])),_0x884428[_0x4d304f]&&_0x4fda59&&(_0x884428[_0x4d304f]['end']=_0x1fc1b1,_0x2a3c07(_0x884428[_0x4d304f]),_0x884428[_0x4d304f]=null);}function _0x2a3c07({start:_0x4dc165,end:_0x14808c,tapeItem:_0x51b39a,userId:_0x115b6f,type:_0x597e83}){const _0x3e66cd=_0x51b39a['item'],_0x5d646c=_0x327ae4['schema']['isBlock'](_0x3e66cd)&&!_0x327ae4['schema'][_0x234b('0x44')](_0x3e66cd),_0x3c41e0=_0x4dc165[_0x234b('0xb9')]==_0x14808c['parent']&&_0x14808c[_0x234b('0xf1')];if(_0x5d646c&&_0x3c41e0)return;const _0x3a5414=_0x327ae4[_0x234b('0xd6')](_0x4dc165,_0x14808c),_0x1c1822=_0xfe1aa2[_0x234b('0x26')](_0x115b6f),_0xeaa320=new _0x5656c0({'author':_0x1c1822,'type':_0x234b('0x2c')==_0x597e83||_0x234b('0x7d')==_0x597e83?_0x234b('0xb8'):'remove','data':{'isSuggestion':_0x234b('0x7d')==_0x597e83||_0x234b('0xc6')==_0x597e83},'createdAt':new Date(),'rootName':_0x38a3de});_0x5055c4[_0x234b('0x10c')](_0xeaa320),_0xe1301a[_0x234b('0xf6')][_0x234b('0xfe')](_0x234b('0xcb')+_0xeaa320['id'],_0x3a5414);}function _0x5b9029(_0x133f14,_0x4dfaa9){const _0x24ba15=_0x133f14[_0x234b('0x64')](),_0x27205f=_0x4dfaa9[_0x234b('0x64')]();for(const _0x12b490 of _0x24ba15){if(_0x12b490[0x1]!==_0x4dfaa9[_0x234b('0xcc')](_0x12b490[0x0]))return!0x1;_0x27205f[_0x234b('0x112')]();}return _0x27205f[_0x234b('0x112')]()[_0x234b('0x6a')];}}[_0x234b('0xdb')](){this['editor'][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0x1a'))[_0x234b('0x20')]({'view':_0x234b('0x16')}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0xe'))['markerToHighlight']({'model':_0x234b('0x16'),'view':_0x34d7dd=>{const _0xd33a10=_0x34d7dd[_0x234b('0x105')][_0x234b('0x4a')](':')[0x1],_0x24a8e1=this['_getChangeFromId'](_0xd33a10);if(!_0x24a8e1)return null;const _0x15ab34='add'==_0x24a8e1[_0x234b('0xfb')]?_0x234b('0x30'):_0x234b('0x3f'),_0x5e44ca=[_0x234b('0x9f'),_0x234b('0x10a')+_0x15ab34];return _0x24a8e1[_0x234b('0xb3')][_0x234b('0x11a')]&&_0x5e44ca[_0x234b('0x10c')](_0x234b('0x10a')+_0x15ab34+_0x234b('0xfc')),this[_0x234b('0x101')]==_0x24a8e1&&_0x5e44ca[_0x234b('0x10c')](_0x234b('0x9a')),{'classes':_0x5e44ca,'attributes':{'data-change-id':_0xd33a10}};}}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0x1a'))['add'](_0x11c17b=>{_0x11c17b['on'](_0x234b('0x5'),(_0x38b42a,_0x2e4d11,_0x29a3f)=>{const _0x24f349=_0x2e4d11[_0x234b('0x66')][_0x234b('0x77')](0x0);if(!_0x24f349||!_0x24f349['is'](_0x234b('0x32'),_0x234b('0xa4')))return;if(!_0x29a3f['consumable'][_0x234b('0xa7')](_0x24f349,{'attributes':[_0x234b('0x10e'),_0x234b('0xd2')]}))return;const _0x44e6c7=_0x2e4d11[_0x234b('0xe9')][_0x234b('0xce')]['nodeAfter'];_0x29a3f[_0x234b('0x24')][_0x234b('0x11d')]('vid_start',_0x24f349['getAttribute']('vid_start'),_0x44e6c7),_0x29a3f[_0x234b('0x24')][_0x234b('0x11d')](_0x234b('0xd2'),_0x24f349[_0x234b('0xcc')](_0x234b('0xd2')),_0x44e6c7);},{'priority':_0x234b('0x52')});}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0x1a'))[_0x234b('0xb8')](_0x5afd26=>{_0x5afd26['on'](_0x234b('0x32'),(_0x5c0558,_0x1e68df,_0x2ff815)=>{if(!_0x2ff815[_0x234b('0x99')][_0x234b('0xa7')](_0x1e68df['viewItem'],{'attributes':['vid_start',_0x234b('0xd2')]}))return;if(_0x1e68df['modelRange']['isCollapsed'])return;const _0x2c39ca=_0x1e68df['modelRange'][_0x234b('0xce')][_0x234b('0xb9')];_0x2c39ca[_0x234b('0x42')](_0x234b('0x10e'))||_0x2c39ca[_0x234b('0x42')](_0x234b('0x104'))||(_0x2ff815[_0x234b('0x24')][_0x234b('0x11d')]('vid_start',_0x1e68df[_0x234b('0x66')][_0x234b('0xcc')](_0x234b('0x10e')),_0x2c39ca),_0x2ff815['writer'][_0x234b('0x11d')](_0x234b('0xd2'),_0x1e68df[_0x234b('0x66')][_0x234b('0xcc')](_0x234b('0xd2')),_0x2c39ca));},{'priority':_0x234b('0x52')});}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0x1a'))[_0x234b('0x7f')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x234b('0x104'),'value':_0x4eabdd=>_0x4eabdd[_0x234b('0xcc')](_0x234b('0x104'))}}),this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0xfa')]['on'](_0x234b('0x5e'),(_0x51d636,[,_0xbd6151])=>{[_0x234b('0x10e'),_0x234b('0xd2'),_0x234b('0x104')][_0x234b('0x22')](_0xbd6151)&&(_0x51d636['return']=!0x0,_0x51d636[_0x234b('0x17')]());},{'priority':_0x234b('0x1d')}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')]('dataDowncast')[_0x234b('0xb8')](_0x5440e8=>{_0x5440e8['on'](_0x234b('0x4'),(_0xa85408,_0x4e6bf5,_0x598aea)=>{if('\x20'!=_0x4e6bf5[_0x234b('0xd7')]['data']||_0x4e6bf5['item'][_0x234b('0x1f')][_0x234b('0xd8')]>0x1)return;if(!_0x598aea[_0x234b('0x99')][_0x234b('0xa7')](_0x4e6bf5[_0x234b('0xd7')],_0xa85408[_0x234b('0x2')]))return;const _0x263477=_0x598aea[_0x234b('0x24')],_0xa726d0=_0x598aea[_0x234b('0xa8')]['toViewRange'](_0x4e6bf5[_0x234b('0x7e')]);_0x263477[_0x234b('0xda')](_0xa726d0,_0x263477[_0x234b('0x1')](_0x234b('0x45')));});}),this[_0x234b('0x2a')]['conversion'][_0x234b('0x95')](_0x234b('0x47'))[_0x234b('0x92')]({'model':_0x234b('0x16')}),this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x76')]['on'](_0x234b('0x56'),function(_0xdae6ac){const _0x37e292=_0xdae6ac['plugins'][_0x234b('0x26')](_0x234b('0x122'));return(_0x3e532f,_0x2d305c,_0xfa4530)=>{const _0x643514=_0x2d305c[_0x234b('0x105')][_0x234b('0x4a')](':')[0x1],_0x219383=_0x37e292[_0x234b('0xcd')](_0x643514);if(!_0x219383)return null;const _0x1a82ba=_0x234b('0xb8')==_0x219383[_0x234b('0xfb')]?_0x234b('0x4a'):'merge';if(!_0xfa4530[_0x234b('0x99')]['test'](_0x2d305c['markerRange'],_0x3e532f['name']))return;const _0x553991=_0x2d305c[_0x234b('0x7b')][_0x234b('0x1c')](),_0x327d22=_0x2d305c[_0x234b('0x7b')][_0x234b('0xce')],_0x20fade=_0xdae6ac['model'][_0x234b('0xfa')];let _0x18a2e7=null,_0x211959=null,_0x12e7a0=!0x1,_0x26e154=!0x1;for(const _0x5b73d6 of _0x553991){const _0x33e992=_0x5b73d6[_0x234b('0xd7')];_0x12e7a0=_0x12e7a0||_0x20fade['isContent'](_0x33e992);const _0x111778=_0xfa4530[_0x234b('0xa8')]['toViewElement'](_0x33e992);if(_0x111778&&_0x111778[_0x234b('0x11b')](_0x234b('0x38')))return;_0x234b('0x58')==_0x5b73d6['type']&&(_0x20fade[_0x234b('0x5c')](_0x33e992)&&!_0x20fade['isLimit'](_0x33e992)&&(_0x33e992[_0x234b('0x2f')]||_0x327d22['isAtEnd']?_0x18a2e7&&_0x18a2e7['parent']==_0x33e992||(_0x18a2e7=_0x33e992,_0xca04c7(_0x5b73d6['previousPosition']),_0x26e154=!0x0):_0x211959=_0x211959||_0x5b73d6['previousPosition']));}function _0xca04c7(_0x1cd058){const _0x30d593=_0xfa4530[_0x234b('0x24')]['createUIElement'](_0x234b('0x45'),{'class':_0x234b('0x10a')+_0x1a82ba}),_0x13e17b=_0xfa4530['mapper'][_0x234b('0x11e')](_0x1cd058);_0x219383[_0x234b('0xb3')]['isSuggestion']&&_0xfa4530[_0x234b('0x24')][_0x234b('0xea')](_0x234b('0x10a')+_0x1a82ba+_0x234b('0xfc'),_0x30d593),_0x37e292[_0x234b('0x101')]==_0x219383&&_0xfa4530[_0x234b('0x24')][_0x234b('0xea')](_0x234b('0x9a'),_0x30d593),_0xfa4530[_0x234b('0x24')][_0x234b('0x107')](_0x13e17b,_0x30d593),_0xfa4530[_0x234b('0xa8')][_0x234b('0xf0')](_0x30d593,_0x2d305c['markerName']);}_0x12e7a0||_0x26e154||!_0x211959||_0xca04c7(_0x211959);};}(this['editor']),{'priority':_0x234b('0x29')}),this[_0x234b('0x2a')][_0x234b('0xd1')]['downcastDispatcher']['on'](_0x234b('0x86'),(_0x466c52,_0xea034f,_0x4a67ed)=>{const _0x59bf8e=_0x4a67ed[_0x234b('0xa8')]['markerNameToElements'](_0xea034f['markerName']);if(_0x59bf8e)for(const _0x20e8cf of _0x59bf8e)(_0x20e8cf[_0x234b('0xa2')]('ck-suggestion-marker-split')||_0x20e8cf[_0x234b('0xa2')]('ck-suggestion-marker-merge'))&&(_0x4a67ed['mapper'][_0x234b('0xd4')](_0x20e8cf,_0xea034f[_0x234b('0x105')]),_0x4a67ed[_0x234b('0x24')]['remove'](_0x20e8cf));},{'priority':_0x234b('0x29')}),this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x76')]['on'](_0x234b('0x56'),(_0x10d482,_0xaa7930,_0x3e3ace)=>{const _0x766a8b=_0xaa7930[_0x234b('0x105')][_0x234b('0x4a')](':')[0x1],_0x35379d=this['_getChangeFromId'](_0x766a8b);if(!_0x35379d)return null;const _0x5dcd18=_0x234b('0xb8')==_0x35379d[_0x234b('0xfb')]?'split':_0x234b('0x65');if(_0x3e3ace[_0x234b('0x99')][_0x234b('0x85')](_0xaa7930[_0x234b('0x7b')],_0x10d482['name']))for(const _0x5d45a8 of _0xaa7930[_0x234b('0x7b')][_0x234b('0xc0')]()){if(!_0x5d45a8['is'](_0x234b('0x32'),_0x234b('0x106')))continue;const _0x2e8698=_0x3e3ace[_0x234b('0x24')][_0x234b('0x114')](_0x234b('0x45'),{'class':_0x234b('0x10a')+_0x5dcd18}),_0x278070=_0x3e3ace['mapper'][_0x234b('0x11e')](this[_0x234b('0x2a')][_0x234b('0x111')]['createPositionBefore'](_0x5d45a8));_0x35379d['data']['isSuggestion']&&_0x3e3ace[_0x234b('0x24')][_0x234b('0xea')]('ck-suggestion-marker-'+_0x5dcd18+_0x234b('0xfc'),_0x2e8698),this['activeChange']==_0x35379d&&_0x3e3ace[_0x234b('0x24')][_0x234b('0xea')](_0x234b('0x9a'),_0x2e8698),_0x3e3ace[_0x234b('0x24')][_0x234b('0x107')](_0x278070,_0x2e8698),_0x3e3ace['mapper']['bindElementToMarker'](_0x2e8698,_0xaa7930['markerName']);}},{'priority':_0x234b('0x29')}),this['editor'][_0x234b('0x111')][_0x234b('0xbb')]['on'](_0x234b('0x69'),()=>{this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0x69')](_0x19f667=>{for(const _0x425563 of this[_0x234b('0x2a')][_0x234b('0x111')]['document'][_0x234b('0x27')]()){const _0x2ca774=this[_0x234b('0x2a')][_0x234b('0x111')]['document']['getRoot'](_0x425563),_0x5c505c=this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0xbb')][_0x234b('0x97')](_0x425563);if(_0x5c505c){const _0x458d79=_0x2ca774[_0x234b('0xcc')](_0x234b('0x36'));if(_0x19f667['removeAttribute'](_0x234b('0x41'),_0x5c505c),_0x19f667[_0x234b('0xa5')](_0x234b('0x9e'),_0x5c505c),_0x19f667[_0x234b('0xa5')](_0x234b('0x2b'),_0x5c505c),_0x19f667['removeClass'](_0x234b('0x117'),_0x5c505c),_0x458d79){const _0x571298=this[_0x234b('0xcd')](_0x458d79);if(!_0x571298)return null;_0x19f667[_0x234b('0x11d')](_0x234b('0x41'),_0x458d79,_0x5c505c),_0x19f667['addClass']('ck-revision-history-root-'+_0x571298[_0x234b('0xfb')],_0x5c505c),this[_0x234b('0x101')]==_0x571298&&_0x19f667[_0x234b('0xea')](_0x234b('0x117'),_0x5c505c);}}}});}),this['editor']['conversion']['for'](_0x234b('0x1a'))[_0x234b('0x20')]({'view':_0x234b('0x83'),'model':_0x589b38=>_0x234b('0x11')+_0x589b38,'converterPriority':_0x234b('0x1d')}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')]('upcast')[_0x234b('0x20')]({'view':_0x234b('0xe3'),'model':_0x1ee07f=>_0x234b('0x80')+_0x1ee07f,'converterPriority':_0x234b('0x1d')}),this[_0x234b('0x2a')]['conversion'][_0x234b('0x95')]('dataDowncast')[_0x234b('0x92')]({'model':_0x234b('0x89'),'view':_0x36841b=>({'name':_0x234b('0x6f')+_0x36841b,'group':_0x234b('0x89')}),'converterPriority':_0x234b('0x1d')}),this[_0x234b('0x2a')][_0x234b('0xc9')][_0x234b('0x95')](_0x234b('0xe'))[_0x234b('0x19')]({'model':_0x234b('0x89'),'view':_0x543f5b=>{const _0xa4d937=_0x543f5b[_0x234b('0x105')][_0x234b('0x4a')](':')[0x1];return _0x234b('0x30')!=_0xa4d937&&_0x234b('0x3f')!=_0xa4d937?null:{'classes':['ck-suggestion-preview-marker',_0x234b('0x7a')+_0xa4d937]};}}),this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x76')]['on'](_0x234b('0x79'),et(this[_0x234b('0x2a')],_0x234b('0x65')),{'priority':_0x234b('0x29')}),this['editor'][_0x234b('0xd1')][_0x234b('0x76')]['on'](_0x234b('0xdc'),et(this[_0x234b('0x2a')],'split'),{'priority':_0x234b('0x29')}),this[_0x234b('0x2a')]['editing'][_0x234b('0x76')]['on']('removeMarker:revision-suggestion',(_0xcaa285,_0x58421e,_0x38fc3d)=>{const _0x5bb839=_0x38fc3d[_0x234b('0xa8')][_0x234b('0x5b')](_0x58421e[_0x234b('0x105')]);if(_0x5bb839)for(const _0x256d02 of _0x5bb839)_0x256d02['is'](_0x234b('0xe2'))&&(_0x38fc3d[_0x234b('0xa8')][_0x234b('0xd4')](_0x256d02,_0x58421e['markerName']),_0x38fc3d[_0x234b('0x24')][_0x234b('0x3b')](_0x256d02));},{'priority':_0x234b('0x29')});}[_0x234b('0xcd')](_0x3eeb93){return this['_changeIdToChange'][_0x234b('0x26')](_0x3eeb93);}[_0x234b('0x53')](_0x3d5ffc){return this[_0x234b('0xc2')]&&this[_0x234b('0xc2')][_0x234b('0xed')](),this[_0x234b('0xc2')]=new _0x3d3978(this[_0x234b('0x2a')][_0x234b('0xfd')],_0x3d5ffc),this[_0x234b('0xc2')];}[_0x234b('0x1b')](){this['editor'][_0x234b('0x111')][_0x234b('0xbb')][_0x234b('0xe7')][_0x234b('0xbf')](_0x234b('0x16')),this['on'](_0x234b('0xca'),(_0x2b1bf7,_0x49eab0,_0x435933,_0x39cf3e)=>{_0x39cf3e&&this['_balloon'][_0x234b('0x3b')](_0x39cf3e),_0x435933&&(this[_0x234b('0xc4')][_0x234b('0xb8')]({'view':_0x435933,'stackId':_0x234b('0x4f'),'position':{'target':()=>{const _0x557327=this[_0x234b('0x2a')][_0x234b('0xd1')],_0x343af1=this[_0x234b('0xcd')](_0x435933[_0x234b('0x120')]);let _0x680095;if(_0x343af1[_0x234b('0xb3')][_0x234b('0x5f')]){const _0x2b53f5=_0x557327[_0x234b('0x35')][_0x234b('0x91')](_0x343af1[_0x234b('0x4c')]);_0x680095=Array[_0x234b('0x43')](_0x2b53f5[_0x234b('0xb7')]());}else{const _0x43df5d=this['editor'][_0x234b('0x111')][_0x234b('0xf6')][_0x234b('0x26')](_0x234b('0xcb')+_0x435933[_0x234b('0x120')]);_0x680095=Array[_0x234b('0x43')](_0x557327[_0x234b('0xa8')]['markerNameToElements'](_0x43df5d[_0x234b('0x2')]))['map'](_0x5df3ed=>_0x557327[_0x234b('0x35')][_0x234b('0xf9')]['mapViewToDom'](_0x5df3ed))['map'](_0x412a1c=>Array[_0x234b('0x43')](_0x412a1c[_0x234b('0xb7')]()))['flat']();}if(!this[_0x234b('0x57')])return _0x680095[0x0];return _0x680095[_0x234b('0xb4')](_0x141c8d=>_0x141c8d['top']-0x3<=this[_0x234b('0x57')]['y']&&_0x141c8d[_0x234b('0x10')]+0x3>=this[_0x234b('0x57')]['y']&&_0x141c8d[_0x234b('0x8e')]-0x3<=this[_0x234b('0x57')]['x']&&_0x141c8d['right']+0x3>=this['_activeViewTarget']['x'])||_0x680095[0x0];}}}),this['_balloon'][_0x234b('0x4d')](_0x234b('0x4f')));}),this['on'](_0x234b('0x87'),(_0x5bdf66,_0xbae009,_0x3c2a93,_0x2dc6a7)=>{this['activeView']=_0x3c2a93?this[_0x234b('0x53')](_0x3c2a93):null,this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0x69')](()=>{const _0xb6023d=this[_0x234b('0x2a')]['editing'];_0x2dc6a7&&(_0x2dc6a7['data']['isOnRoot']?_0xb6023d[_0x234b('0x35')][_0x234b('0x69')](_0x177877=>{_0x177877[_0x234b('0xa5')](_0x234b('0x117'),_0xb6023d['view'][_0x234b('0xbb')][_0x234b('0x97')](_0x2dc6a7[_0x234b('0x4c')]));}):_0xb6023d['reconvertMarker'](_0x234b('0xcb')+_0x2dc6a7['id'])),_0x3c2a93&&(_0x3c2a93[_0x234b('0xb3')]['isOnRoot']?_0xb6023d[_0x234b('0x35')][_0x234b('0x69')](_0x2080b1=>{_0x2080b1[_0x234b('0xea')](_0x234b('0x117'),_0xb6023d['view']['document'][_0x234b('0x97')](_0x3c2a93[_0x234b('0x4c')]));}):_0xb6023d[_0x234b('0x10d')](_0x234b('0xcb')+_0x3c2a93['id']));});}),this[_0x234b('0xe6')](this['editor'][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0xbb')],'mouseover',(_0x4f927c,_0x5e1a33)=>{if(this['activeChange'])return;const _0x4086db=this[_0x234b('0xb')](_0x5e1a33[_0x234b('0x2e')]),_0x4b5bd7=this[_0x234b('0x28')][_0x234b('0x26')](_0x4086db);_0x4b5bd7?(this[_0x234b('0x57')]={'x':_0x5e1a33['domEvent']['x'],'y':_0x5e1a33[_0x234b('0x121')]['y']},this[_0x234b('0x6d')]=this['_getViewForChange'](_0x4b5bd7)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this[_0x234b('0x2a')][_0x234b('0xd1')][_0x234b('0x35')][_0x234b('0xbb')],_0x234b('0x5a'),(_0x5cd2a2,_0xdc1a17)=>{const _0x453324=this['_findChangeIdFromDomTarget'](_0xdc1a17[_0x234b('0x2e')]),_0x1cafef=this[_0x234b('0x28')][_0x234b('0x26')](_0x453324);_0x1cafef?(this[_0x234b('0x57')]={'x':_0xdc1a17[_0x234b('0x121')]['x'],'y':_0xdc1a17[_0x234b('0x121')]['y']},_0x1cafef===this[_0x234b('0x101')]?this['_balloon']['updatePosition']():this['activeChange']=_0x1cafef):(this[_0x234b('0x57')]=null,this['activeChange']=null);});}[_0x234b('0xb')](_0x1b93e6){do{const _0xc9e3e1=_0x1b93e6['getAttribute'](_0x234b('0x41'));if(_0xc9e3e1)return _0xc9e3e1;_0x1b93e6=_0x1b93e6[_0x234b('0x1f')];}while(_0x1b93e6);return null;}[_0x234b('0x8c')](){this[_0x234b('0x2a')][_0x234b('0x111')][_0x234b('0x69')](_0x36adb9=>{for(const _0x3d6440 of this[_0x234b('0x2a')]['model'][_0x234b('0xf6')])_0x36adb9[_0x234b('0x37')](_0x3d6440);});}}function et(_0x588aa6,_0xee45bd){return(_0x5efd2f,_0x15840c,_0x25eac0)=>{if(!_0x25eac0[_0x234b('0x99')][_0x234b('0x85')](_0x15840c[_0x234b('0x7b')],_0x5efd2f[_0x234b('0x2')]))return;const _0x54ec82=_0x15840c[_0x234b('0x7b')]['getWalker'](),_0x1004b5=_0x15840c['markerRange'][_0x234b('0xce')],_0x41ee5a=_0x588aa6[_0x234b('0x111')][_0x234b('0xfa')];let _0x5dc804=null,_0x2f06a0=null,_0x4e2638=!0x1,_0x21368a=!0x1;for(const _0x2a784c of _0x54ec82){const _0x14749b=_0x2a784c[_0x234b('0xd7')];_0x4e2638=_0x4e2638||_0x41ee5a[_0x234b('0x6')](_0x14749b);const _0xaa8d61=_0x25eac0[_0x234b('0xa8')]['toViewElement'](_0x14749b);if(_0xaa8d61&&_0xaa8d61[_0x234b('0x11b')]('addHighlight'))return;_0x234b('0x58')==_0x2a784c['type']&&(_0x41ee5a[_0x234b('0x5c')](_0x14749b)&&!_0x41ee5a[_0x234b('0x44')](_0x14749b)&&(_0x14749b[_0x234b('0x2f')]||_0x1004b5[_0x234b('0x54')]?_0x5dc804&&_0x5dc804[_0x234b('0x1f')]==_0x14749b||(_0x5dc804=_0x14749b,_0x584711(_0x2a784c[_0x234b('0x55')]),_0x21368a=!0x0):_0x2f06a0=_0x2f06a0||_0x2a784c[_0x234b('0x55')]));}function _0x584711(_0xf4d798){const _0xea41bf=_0x25eac0['mapper'][_0x234b('0x11e')](_0xf4d798),_0x5dc5de=_0x25eac0[_0x234b('0x24')][_0x234b('0x114')](_0x234b('0x45'),{'class':'ck-suggestion-preview-marker-'+_0xee45bd});_0x25eac0[_0x234b('0x24')]['insert'](_0xea41bf,_0x5dc5de),_0x25eac0[_0x234b('0xa8')]['bindElementToMarker'](_0x5dc5de,_0x15840c[_0x234b('0x105')]);}_0x4e2638||_0x21368a||!_0x2f06a0||_0x584711(_0x2f06a0);};}export class RestoreRevisionCommand extends _0x349962{constructor(_0x5f103b){super(_0x5f103b);const _0x47a4a5=_0x5f103b['plugins'][_0x234b('0x26')](d);this[_0x234b('0xa3')]=!0x1,this[_0x234b('0xe6')](_0x47a4a5,'change:isReady',()=>this[_0x234b('0x2d')]()),this[_0x234b('0xe6')](_0x47a4a5,_0x234b('0xaa'),()=>this['refresh']());}['execute'](){const _0x19e3b7=this[_0x234b('0x2a')],_0x5e111c=_0x19e3b7[_0x234b('0x10b')]['get'](d),_0x549bae=_0x5e111c[_0x234b('0x6e')]?_0x5e111c[_0x234b('0xa9')]['newRevisionId']:null;_0x19e3b7['config'][_0x234b('0x26')](_0x234b('0xa'))[_0x234b('0xac')](_0x549bae);}['refresh'](){const {isReady:_0x127141,isEnabled:_0x2869b6}=this[_0x234b('0x2a')][_0x234b('0x10b')][_0x234b('0x26')](d);this[_0x234b('0xc')]=_0x127141&&_0x2869b6;}}export class ShowChangeCommand extends _0x349962{constructor(_0xb76121,{direction:_0x258abd}){super(_0xb76121);const _0x2fa319=_0xb76121[_0x234b('0x10b')][_0x234b('0x26')](d);this[_0x234b('0xa3')]=!0x1,this[_0x234b('0x84')]='forward'===_0x258abd?0x1:-0x1,this[_0x234b('0xe6')](_0x2fa319,_0x234b('0x0'),()=>this[_0x234b('0x2d')]()),this[_0x234b('0xe6')](_0x2fa319,_0x234b('0xaa'),()=>this[_0x234b('0x2d')]()),this['listenTo'](_0x2fa319,_0x234b('0x87'),()=>this[_0x234b('0x2d')]());}[_0x234b('0x5d')](){const _0x179954=this['editor'],_0x3a928c=_0x179954[_0x234b('0x10b')]['get'](d),{isNavigationMode:_0x25a373,currentChangeNumber:_0x589198}=_0x3a928c;let _0x306334;if(_0x3a928c[_0x234b('0x101')]=_0x25a373?_0x3a928c['diff'][_0x234b('0xb5')][_0x234b('0x26')](_0x589198+this[_0x234b('0x84')]):_0x3a928c[_0x234b('0xa9')]['changes'][_0x234b('0x11f')],_0x3a928c[_0x234b('0x101')][_0x234b('0xb3')][_0x234b('0x5f')])_0x306334=_0x179954[_0x234b('0xd1')][_0x234b('0x35')]['getDomRoot'](_0x3a928c[_0x234b('0x101')][_0x234b('0x4c')]);else{const _0x276a24=_0x179954[_0x234b('0x111')][_0x234b('0xf6')][_0x234b('0x26')]('revision:'+_0x3a928c['activeChange']['id']);_0x306334=_0x1d3894(_0x179954[_0x234b('0xd1')],_0x276a24);}_0x46ecbd({'target':_0x306334,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x19eb8b,currentChangeNumber:_0x1acbc3,numberOfChanges:_0x1f350e,isReady:_0x277825,isEnabled:_0x391c8b}=this[_0x234b('0x2a')][_0x234b('0x10b')][_0x234b('0x26')](d);this['isEnabled']=!!(_0x391c8b&&_0x277825&&_0x1f350e)&&(!_0x19eb8b||(0x1===this['_step']?_0x1acbc3<_0x1f350e-0x1:_0x1acbc3>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5de1=['change:isActionsDropdownOpen','first','_action','isVisible','listenTo','action','add','isActionsDropdownOpen','name','source','map','items','button','execute','class','model','isReady','isOpen','threeVerticalDots','listView','Compare\x20against\x20selected','function','Restore\x20this\x20revision','bind','ck-revision-history-sidebar__revision__actions','bindTemplate','children','stopPropagation','find','panelPosition','buttonView','isEnabled'];(function(_0x3cd57c,_0x5de1cf){const _0x134ef8=function(_0x288a1b){while(--_0x288a1b){_0x3cd57c['push'](_0x3cd57c['shift']());}};_0x134ef8(++_0x5de1cf);}(_0x5de1,0x163));const _0x134e=function(_0x3cd57c,_0x5de1cf){_0x3cd57c=_0x3cd57c-0x0;let _0x134ef8=_0x5de1[_0x3cd57c];return _0x134ef8;};import{Collection as _0x326ea2}from'ckeditor5/src/utils';import{icons as _0x21825c}from'ckeditor5/src/core';import{Model as _0x5a6a2a,addListToDropdown as _0x384a12,createDropdown as _0x47f338}from'ckeditor5/src/ui';import{getTranslation as _0x727a6f}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x4fcddf,_0x1d0c24){const _0x311953=_0x4fcddf[_0x134e('0x16')],_0x5768e8=_0x4fcddf['locale'],_0x17a17b=_0x47f338(_0x5768e8);_0x17a17b[_0x134e('0x1a')]='sw';const _0x4c8690=function(_0x563f9e,_0x58d580){const _0x32e9e0=function(_0x4d96ac,_0x4e1f7d){const _0x29cc23=_0x4d96ac['locale'],_0x27eebb={'Compare\x20against\x20selected':_0x727a6f(_0x29cc23,_0x134e('0x11')),'Name\x20this\x20revision':_0x727a6f(_0x29cc23,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x727a6f(_0x29cc23,_0x134e('0x13'))};return _0x4e1f7d[_0x134e('0x7')](_0x48b220=>{const _0x360507=_0x27eebb[_0x48b220[_0x134e('0x5')]];return _0x360507&&_0x360507!==_0x48b220[_0x134e('0x5')]&&(_0x48b220['name']=_0x360507),_0x48b220;});}(_0x563f9e,_0x58d580),_0x2ea24f=new _0x326ea2();for(const _0x461ad3 of _0x32e9e0){const _0x42cc1c={'type':_0x134e('0x9'),'model':new _0x5a6a2a({'label':_0x461ad3[_0x134e('0x5')],'class':_0x461ad3[_0x134e('0xb')],'withText':!0x0,'_action':_0x461ad3[_0x134e('0x2')]})};_0x42cc1c[_0x134e('0xc')][_0x134e('0x14')](_0x134e('0x1c'))['to'](_0x563f9e,_0x134e('0x4'),_0x183980=>_0x134e('0x12')!=typeof _0x461ad3['isEnabled']||(!_0x183980||_0x461ad3[_0x134e('0x1c')](_0x563f9e))),_0x2ea24f[_0x134e('0x3')](_0x42cc1c);}return _0x2ea24f;}(_0x4fcddf,_0x1d0c24);return _0x4fcddf[_0x134e('0x14')](_0x134e('0x4'))['to'](_0x17a17b,_0x134e('0xe')),_0x17a17b[_0x134e('0x1b')]['set']({'label':_0x727a6f(_0x5768e8,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x21825c[_0x134e('0xf')]}),_0x17a17b['extendTemplate']({'attributes':{'class':[_0x134e('0x15'),_0x311953['if'](_0x134e('0x4'),'ck-on')]},'on':{'click':_0x311953['to'](_0x1ecc01=>_0x1ecc01[_0x134e('0x18')]())}}),_0x17a17b['on'](_0x134e('0xa'),_0x466ae4=>{_0x4fcddf[_0x134e('0xd')]&&_0x134e('0x12')==typeof _0x466ae4[_0x134e('0x6')][_0x134e('0x1f')]&&_0x466ae4[_0x134e('0x6')]['_action'](_0x4fcddf);}),_0x384a12(_0x17a17b,_0x4c8690),_0x17a17b[_0x134e('0x1')](_0x4fcddf,_0x134e('0x1d'),(_0x323c20,_0x3b4488,_0x1c9e7f)=>{if(_0x1c9e7f)for(const _0x43a55c of _0x17a17b[_0x134e('0x10')][_0x134e('0x8')]){const _0x542270=_0x43a55c[_0x134e('0x17')][_0x134e('0x1e')],_0x19e477=_0x1d0c24[_0x134e('0x19')](_0x3cb0d8=>_0x3cb0d8[_0x134e('0x2')]===_0x542270['_action'])[_0x134e('0x0')];_0x43a55c[_0x134e('0x0')]=void 0x0===_0x19e477||_0x19e477(_0x4fcddf);}}),_0x17a17b;}
23
+ const _0x392c=['class','first','execute','find','add','function','listenTo','children','action','items','threeVerticalDots','change:isActionsDropdownOpen','panelPosition','isVisible','name','stopPropagation','set','isOpen','Name\x20this\x20revision','listView','isActionsDropdownOpen','button','buttonView','ck-revision-history-sidebar__revision__actions','Restore\x20this\x20revision','locale','source','bind','bindTemplate','isReady','_action','isEnabled'];(function(_0x579b1b,_0x392c5d){const _0x501cbb=function(_0x1d105e){while(--_0x1d105e){_0x579b1b['push'](_0x579b1b['shift']());}};_0x501cbb(++_0x392c5d);}(_0x392c,0x1d4));const _0x501c=function(_0x579b1b,_0x392c5d){_0x579b1b=_0x579b1b-0x0;let _0x501cbb=_0x392c[_0x579b1b];return _0x501cbb;};import{Collection as _0x2e126b}from'ckeditor5/src/utils';import{icons as _0x1130d8}from'ckeditor5/src/core';import{Model as _0x59a1e1,addListToDropdown as _0x1bc17e,createDropdown as _0x383949}from'ckeditor5/src/ui';import{getTranslation as _0x4f11ac}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x48e23b,_0x4e02cb){const _0x98131c=_0x48e23b[_0x501c('0x8')],_0x451b6a=_0x48e23b[_0x501c('0x5')],_0x56d868=_0x383949(_0x451b6a);_0x56d868[_0x501c('0x18')]='sw';const _0x2f7abe=function(_0x294615,_0x3defd7){const _0x120894=function(_0x40a1af,_0x139f7f){const _0x229252=_0x40a1af['locale'],_0x46178e={'Compare\x20against\x20selected':_0x4f11ac(_0x229252,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x4f11ac(_0x229252,_0x501c('0x1e')),'Restore\x20this\x20revision':_0x4f11ac(_0x229252,_0x501c('0x4'))};return _0x139f7f['map'](_0x43cac8=>{const _0x4992c9=_0x46178e[_0x43cac8['name']];return _0x4992c9&&_0x4992c9!==_0x43cac8[_0x501c('0x1a')]&&(_0x43cac8[_0x501c('0x1a')]=_0x4992c9),_0x43cac8;});}(_0x294615,_0x3defd7),_0x14b9ea=new _0x2e126b();for(const _0x742309 of _0x120894){const _0x36a947={'type':_0x501c('0x1'),'model':new _0x59a1e1({'label':_0x742309[_0x501c('0x1a')],'class':_0x742309[_0x501c('0xc')],'withText':!0x0,'_action':_0x742309['action']})};_0x36a947['model']['bind'](_0x501c('0xb'))['to'](_0x294615,_0x501c('0x0'),_0x6ce7ed=>_0x501c('0x11')!=typeof _0x742309[_0x501c('0xb')]||(!_0x6ce7ed||_0x742309[_0x501c('0xb')](_0x294615))),_0x14b9ea[_0x501c('0x10')](_0x36a947);}return _0x14b9ea;}(_0x48e23b,_0x4e02cb);return _0x48e23b[_0x501c('0x7')](_0x501c('0x0'))['to'](_0x56d868,_0x501c('0x1d')),_0x56d868[_0x501c('0x2')][_0x501c('0x1c')]({'label':_0x4f11ac(_0x451b6a,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1130d8[_0x501c('0x16')]}),_0x56d868['extendTemplate']({'attributes':{'class':[_0x501c('0x3'),_0x98131c['if'](_0x501c('0x0'),'ck-on')]},'on':{'click':_0x98131c['to'](_0x50dc92=>_0x50dc92[_0x501c('0x1b')]())}}),_0x56d868['on'](_0x501c('0xe'),_0x2ff21d=>{_0x48e23b[_0x501c('0x9')]&&'function'==typeof _0x2ff21d[_0x501c('0x6')][_0x501c('0xa')]&&_0x2ff21d[_0x501c('0x6')][_0x501c('0xa')](_0x48e23b);}),_0x1bc17e(_0x56d868,_0x2f7abe),_0x56d868[_0x501c('0x12')](_0x48e23b,_0x501c('0x17'),(_0x3613bc,_0x2a74ed,_0xe5fe0d)=>{if(_0xe5fe0d)for(const _0x133352 of _0x56d868[_0x501c('0x1f')][_0x501c('0x15')]){const _0xb9a91e=_0x133352[_0x501c('0x13')][_0x501c('0xd')],_0xc114e7=_0x4e02cb[_0x501c('0xf')](_0x120af1=>_0x120af1[_0x501c('0x14')]===_0xb9a91e[_0x501c('0xa')])[_0x501c('0x19')];_0x133352[_0x501c('0x19')]=void 0x0===_0xc114e7||_0xc114e7(_0x48e23b);}}),_0x56d868;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d9f=['span','Revision\x20creator','set','setTemplate','name','push','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author_creator','ck-revision-history-sidebar__revision-author__name'];(function(_0x314989,_0x3d9fef){const _0x3c89d2=function(_0xafb01f){while(--_0xafb01f){_0x314989['push'](_0x314989['shift']());}};_0x3c89d2(++_0x3d9fef);}(_0x3d9f,0x133));const _0x3c89=function(_0x314989,_0x3d9fef){_0x314989=_0x314989-0x0;let _0x3c89d2=_0x3d9f[_0x314989];return _0x3c89d2;};import{View as _0x55768e,IconView as _0x2cb4bb}from'ckeditor5/src/ui';import{getTranslation as _0x31d8f5}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x57b78b from'../../../theme/icons/user.svg';export default class ti extends _0x55768e{constructor(_0x56675b,_0x56922d,_0x3bb583){super(_0x56675b);const _0x373d41=new _0x2cb4bb();_0x373d41[_0x3c89('0x5')]({'content':_0x57b78b,'viewBox':_0x3c89('0x9')});const _0x51ef79=['ck',_0x3c89('0x0')];_0x3bb583&&_0x51ef79[_0x3c89('0x8')](_0x3c89('0x1'));const _0x37d58b=[{'tag':_0x3c89('0x3'),'attributes':{'class':['ck',_0x3c89('0x2')],'title':_0x31d8f5(_0x56675b,_0x3bb583?_0x3c89('0x4'):'Revision\x20author')},'children':[_0x373d41,_0x56922d[_0x3c89('0x7')]]}];this[_0x3c89('0x6')]({'tag':'li','attributes':{'class':_0x51ef79},'children':_0x37d58b});}}
23
+ const _0x4a0a=['Revision\x20author','name','setTemplate','Revision\x20creator','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author__name','span'];(function(_0x5efb5c,_0x4a0a1b){const _0x210b24=function(_0x3e9823){while(--_0x3e9823){_0x5efb5c['push'](_0x5efb5c['shift']());}};_0x210b24(++_0x4a0a1b);}(_0x4a0a,0x1f3));const _0x210b=function(_0x5efb5c,_0x4a0a1b){_0x5efb5c=_0x5efb5c-0x0;let _0x210b24=_0x4a0a[_0x5efb5c];return _0x210b24;};import{View as _0x565772,IconView as _0x7ba919}from'ckeditor5/src/ui';import{getTranslation as _0x45dd9d}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x35ce93 from'../../../theme/icons/user.svg';export default class ti extends _0x565772{constructor(_0x1cbe96,_0x6ac0bf,_0xaa7377){super(_0x1cbe96);const _0x22c59e=new _0x7ba919();_0x22c59e['set']({'content':_0x35ce93,'viewBox':'0\x200\x2011\x2010'});const _0x21e033=['ck',_0x210b('0x2')];_0xaa7377&&_0x21e033['push']('ck-revision-history-sidebar__revision-author_creator');const _0xdfabaa=[{'tag':_0x210b('0x4'),'attributes':{'class':['ck',_0x210b('0x3')],'title':_0x45dd9d(_0x1cbe96,_0xaa7377?_0x210b('0x1'):_0x210b('0x5'))},'children':[_0x22c59e,_0x6ac0bf[_0x210b('0x6')]]}];this[_0x210b('0x0')]({'tag':'li','attributes':{'class':_0x21e033},'children':_0xdfabaa});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1daf=['extendTemplate','span','ck-revision-history-sidebar__revision-name'];(function(_0x4aeeee,_0x1daf3e){var _0x1708d9=function(_0x395767){while(--_0x395767){_0x4aeeee['push'](_0x4aeeee['shift']());}};_0x1708d9(++_0x1daf3e);}(_0x1daf,0x19f));var _0x1708=function(_0x4aeeee,_0x1daf3e){_0x4aeeee=_0x4aeeee-0x0;var _0x1708d9=_0x1daf[_0x4aeeee];return _0x1708d9;};import{LabeledFieldView as _0x599cd9}from'ckeditor5/src/ui';import{getTranslation as _0x406400}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x599cd9{constructor(_0x59e7a2,_0x526a5f){super(_0x59e7a2,_0x526a5f),this['set']({'label':_0x406400(_0x59e7a2,'Revision\x20name')}),this[_0x1708('0x2')]({'tag':_0x1708('0x0'),'attributes':{'class':[_0x1708('0x1')]}});}}
23
+ var _0x2a8e=['extendTemplate','ck-revision-history-sidebar__revision-name','set','Revision\x20name'];(function(_0xd320b2,_0x2a8e60){var _0x565158=function(_0x572357){while(--_0x572357){_0xd320b2['push'](_0xd320b2['shift']());}};_0x565158(++_0x2a8e60);}(_0x2a8e,0x9b));var _0x5651=function(_0xd320b2,_0x2a8e60){_0xd320b2=_0xd320b2-0x0;var _0x565158=_0x2a8e[_0xd320b2];return _0x565158;};import{LabeledFieldView as _0x51fe15}from'ckeditor5/src/ui';import{getTranslation as _0x1f538e}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x51fe15{constructor(_0x2efdb7,_0x354a0a){super(_0x2efdb7,_0x354a0a),this[_0x5651('0x3')]({'label':_0x1f538e(_0x2efdb7,_0x5651('0x0'))}),this[_0x5651('0x1')]({'tag':'span','attributes':{'class':[_0x5651('0x2')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e29=['ck-revision-history-sidebar__revision-wrapper','bind','ck-revision-history-sidebar__revision__date','unhighlight','isReady','span','fire','createdAt','set','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision','uiLanguage','isSelected','revisionNameView','isEnabled','name','srcElement','unshift','ck-revision-history-sidebar__revision-authors','length','highlight','listenTo','value','.ck-thread__remove-confirm','creator','setTemplate','_createdAtFormatted','ck-reset','ck-revision-history-sidebar__actions_dropdown_open','element','div','placeholder','220','map','isHighlighted','fieldView','revisionActionsView','from','ck-revision-history-sidebar__revision__controls-wrapper','authors'];(function(_0x2c4e5e,_0x3e2947){const _0x1f7416=function(_0x541fa9){while(--_0x541fa9){_0x2c4e5e['push'](_0x2c4e5e['shift']());}};_0x1f7416(++_0x3e2947);}(_0x3e29,0x11e));const _0x1f74=function(_0x2c4e5e,_0x3e2947){_0x2c4e5e=_0x2c4e5e-0x0;let _0x1f7416=_0x3e29[_0x2c4e5e];return _0x1f7416;};import{View as _0x154321,createLabeledInputText as _0x3b775f}from'ckeditor5/src/ui';import{ConfirmMixin as _0x33d01c}from'ckeditor5-collaboration/src/collaboration-core';import _0x5b5459 from'./revisionnameview';import _0x16f37a from'./revisionauthorview';import{dateToPrettyFormat as _0x482cd3}from'./utils';import{createActionsDropdownView as _0x45c2ca}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x33d01c(_0x154321){constructor(_0x2b9e4c,_0x93d780,_0x2ba0c6){super(_0x2b9e4c);const _0x4f87d9=this['bindTemplate'],_0x3cfa87=function(_0x686855,_0xe4792d){const _0x1aaf23=Array[_0x1f74('0x1f')](_0xe4792d[_0x1f74('0x21')])['filter'](_0x14804b=>_0x14804b!=_0xe4792d[_0x1f74('0x12')]);return _0xe4792d[_0x1f74('0x12')]&&_0x1aaf23[_0x1f74('0xb')](_0xe4792d[_0x1f74('0x12')]),_0x1aaf23[_0x1f74('0x1b')](_0x1cc7f5=>new _0x16f37a(_0x686855,_0x1cc7f5,_0x1cc7f5==_0xe4792d[_0x1f74('0x12')]));}(_0x2b9e4c,_0x93d780);this['id']=_0x93d780['id'],this['_revision']=_0x93d780,this[_0x1f74('0x23')]('name',_0x1f74('0x1'))['to'](_0x93d780),this[_0x1f74('0x23')](_0x1f74('0x14'))['to'](this,_0x1f74('0x1'),_0x37de61=>_0x37de61?_0x482cd3(_0x2b9e4c[_0x1f74('0x5')],_0x37de61):void 0x0),this[_0x1f74('0x2')](_0x1f74('0x6'),!0x1),this[_0x1f74('0x2')]('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this[_0x1f74('0x2')](_0x1f74('0x26'),!0x1),this['set'](_0x1f74('0x8'),!0x1),this[_0x1f74('0x7')]=new _0x5b5459(_0x2b9e4c,_0x3b775f),this[_0x1f74('0x7')][_0x1f74('0x1d')]['extendTemplate']({'attributes':{'maxlength':_0x1f74('0x1a')}}),this[_0x1f74('0x7')][_0x1f74('0x1d')][_0x1f74('0x23')]('value',_0x1f74('0x19'))['to'](this,_0x1f74('0x9'),'_createdAtFormatted'),this[_0x1f74('0x7')][_0x1f74('0x23')](_0x1f74('0x8'))['to'](this,_0x1f74('0x6'),this,_0x1f74('0x8'),(_0x23c5bb,_0x4d98cd)=>_0x23c5bb&&_0x4d98cd),this[_0x1f74('0x1e')]=_0x2ba0c6&&_0x2ba0c6[_0x1f74('0xd')]?_0x45c2ca(this,_0x2ba0c6):'',this[_0x1f74('0x1e')]&&this['revisionActionsView'][_0x1f74('0x23')](_0x1f74('0x8'))['to'](this),this[_0x1f74('0x13')]({'tag':_0x1f74('0x18'),'attributes':{'class':['ck','ck-reset',_0x1f74('0x22'),_0x4f87d9['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck',_0x1f74('0x15'),_0x1f74('0x4'),_0x4f87d9['if']('isEnabled','ck-disabled',_0x5a1932=>!_0x5a1932),_0x4f87d9['if'](_0x1f74('0x6'),_0x1f74('0x3')),_0x4f87d9['if'](_0x1f74('0x1c'),'ck-revision-history-sidebar__revision_highlighted'),_0x4f87d9['if']('isActionsDropdownOpen',_0x1f74('0x16'))]},'children':[this[_0x1f74('0x7')],{'tag':_0x1f74('0x27'),'attributes':{'class':['ck',_0x1f74('0x24')]},'children':[{'text':_0x4f87d9['to']('_createdAtFormatted')}]},{'tag':_0x1f74('0x18'),'attributes':{'class':['ck',_0x1f74('0x20')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x1f74('0xc')]},'children':_0x3cfa87}]},this[_0x1f74('0x1e')]],'on':{'click':_0x4f87d9['to'](_0x1c846d=>{_0x1c846d[_0x1f74('0xa')]['closest'](_0x1f74('0x11'))||this[_0x1f74('0x26')]&&this[_0x1f74('0x8')]&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x17664e=this[_0x1f74('0x7')]['fieldView'][_0x1f74('0x17')];this[_0x1f74('0xf')](_0x17664e,'change',()=>{this[_0x1f74('0x0')]('setName',{'id':this['id'],'name':_0x17664e[_0x1f74('0x10')]});});}['select'](){this[_0x1f74('0x6')]=!0x0;}['deselect'](){this[_0x1f74('0x6')]=!0x1;}[_0x1f74('0xe')](){this[_0x1f74('0x1c')]=!0x0;}[_0x1f74('0x25')](){this[_0x1f74('0x1c')]=!0x1;}}
23
+ const _0x4ac5=['name','ck-disabled','span','isEnabled','ck-revision-history-sidebar__revision__date','bindTemplate','render','length','from','isHighlighted','isReady','value','set','setTemplate','isSelected','element','ck-revision-history-sidebar__revision','220','_createdAtFormatted','div','extendTemplate','ck-revision-history-sidebar__revision_selected','revisionNameView','highlight','ck-reset','revisionActionsView','.ck-thread__remove-confirm','fire','ck-revision-history-sidebar__revision__controls-wrapper','placeholder','select','closest','bind','srcElement','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','_revision','isActionsDropdownOpen','creator','fieldView','map','deselect','createdAt','ck-revision-history-sidebar__revision_highlighted','ck-revision-history-sidebar__actions_dropdown_open','unshift'];(function(_0x2db954,_0x4ac583){const _0x29c3ca=function(_0x12808c){while(--_0x12808c){_0x2db954['push'](_0x2db954['shift']());}};_0x29c3ca(++_0x4ac583);}(_0x4ac5,0x124));const _0x29c3=function(_0x2db954,_0x4ac583){_0x2db954=_0x2db954-0x0;let _0x29c3ca=_0x4ac5[_0x2db954];return _0x29c3ca;};import{View as _0x3210dc,createLabeledInputText as _0x2ca384}from'ckeditor5/src/ui';import{ConfirmMixin as _0xc6ea05}from'ckeditor5-collaboration/src/collaboration-core';import _0x3da5c9 from'./revisionnameview';import _0x193724 from'./revisionauthorview';import{dateToPrettyFormat as _0x34be19}from'./utils';import{createActionsDropdownView as _0x58068e}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0xc6ea05(_0x3210dc){constructor(_0x3a5620,_0x5359c9,_0x31cd45){super(_0x3a5620);const _0x3d1019=this[_0x29c3('0x23')],_0x293277=function(_0x6a25e3,_0x36896a){const _0xd40618=Array[_0x29c3('0x26')](_0x36896a['authors'])['filter'](_0x3fedc1=>_0x3fedc1!=_0x36896a[_0x29c3('0x16')]);return _0x36896a[_0x29c3('0x16')]&&_0xd40618[_0x29c3('0x1d')](_0x36896a[_0x29c3('0x16')]),_0xd40618[_0x29c3('0x18')](_0x19de39=>new _0x193724(_0x6a25e3,_0x19de39,_0x19de39==_0x36896a[_0x29c3('0x16')]));}(_0x3a5620,_0x5359c9);this['id']=_0x5359c9['id'],this[_0x29c3('0x14')]=_0x5359c9,this['bind'](_0x29c3('0x1e'),_0x29c3('0x1a'))['to'](_0x5359c9),this['bind']('_createdAtFormatted')['to'](this,_0x29c3('0x1a'),_0x37835b=>_0x37835b?_0x34be19(_0x3a5620['uiLanguage'],_0x37835b):void 0x0),this['set'](_0x29c3('0x2c'),!0x1),this[_0x29c3('0x2a')]('isHighlighted',!0x1),this[_0x29c3('0x2a')]('isActionsDropdownOpen',!0x1),this[_0x29c3('0x2a')]('isReady',!0x1),this[_0x29c3('0x2a')](_0x29c3('0x21'),!0x1),this[_0x29c3('0x6')]=new _0x3da5c9(_0x3a5620,_0x2ca384),this[_0x29c3('0x6')][_0x29c3('0x17')][_0x29c3('0x4')]({'attributes':{'maxlength':_0x29c3('0x1')}}),this[_0x29c3('0x6')][_0x29c3('0x17')]['bind'](_0x29c3('0x29'),_0x29c3('0xd'))['to'](this,_0x29c3('0x1e'),_0x29c3('0x2')),this[_0x29c3('0x6')][_0x29c3('0x10')](_0x29c3('0x21'))['to'](this,_0x29c3('0x2c'),this,_0x29c3('0x21'),(_0xb3bead,_0x246b63)=>_0xb3bead&&_0x246b63),this[_0x29c3('0x9')]=_0x31cd45&&_0x31cd45[_0x29c3('0x25')]?_0x58068e(this,_0x31cd45):'',this[_0x29c3('0x9')]&&this[_0x29c3('0x9')][_0x29c3('0x10')](_0x29c3('0x21'))['to'](this),this[_0x29c3('0x2b')]({'tag':_0x29c3('0x3'),'attributes':{'class':['ck',_0x29c3('0x8'),'ck-revision-history-sidebar__revision-wrapper',_0x3d1019['if']('isConfirm',_0x29c3('0x13'))]},'children':[{'tag':_0x29c3('0x3'),'attributes':{'class':['ck',_0x29c3('0x8'),_0x29c3('0x0'),_0x3d1019['if'](_0x29c3('0x21'),_0x29c3('0x1f'),_0xe9f546=>!_0xe9f546),_0x3d1019['if'](_0x29c3('0x2c'),_0x29c3('0x5')),_0x3d1019['if'](_0x29c3('0x27'),_0x29c3('0x1b')),_0x3d1019['if'](_0x29c3('0x15'),_0x29c3('0x1c'))]},'children':[this['revisionNameView'],{'tag':_0x29c3('0x20'),'attributes':{'class':['ck',_0x29c3('0x22')]},'children':[{'text':_0x3d1019['to'](_0x29c3('0x2'))}]},{'tag':_0x29c3('0x3'),'attributes':{'class':['ck',_0x29c3('0xc')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x29c3('0x12')]},'children':_0x293277}]},this[_0x29c3('0x9')]],'on':{'click':_0x3d1019['to'](_0x424792=>{_0x424792[_0x29c3('0x11')][_0x29c3('0xf')](_0x29c3('0xa'))||this[_0x29c3('0x28')]&&this[_0x29c3('0x21')]&&this[_0x29c3('0xb')]('select',{'id':this['id']});})}}]});}['render'](){super[_0x29c3('0x24')]();const _0x28c945=this[_0x29c3('0x6')][_0x29c3('0x17')][_0x29c3('0x2d')];this['listenTo'](_0x28c945,'change',()=>{this[_0x29c3('0xb')]('setName',{'id':this['id'],'name':_0x28c945[_0x29c3('0x29')]});});}[_0x29c3('0xe')](){this[_0x29c3('0x2c')]=!0x0;}[_0x29c3('0x19')](){this[_0x29c3('0x2c')]=!0x1;}[_0x29c3('0x7')](){this[_0x29c3('0x27')]=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x44e2=['span','_isCollapsed','set','true','toggle','ck-revision-history-sidebar__subrevision-collapser__inner','isVisible','ck-hidden','click','bindTemplate','setTemplate'];(function(_0x3566eb,_0x44e2d7){const _0x115665=function(_0x36294f){while(--_0x36294f){_0x3566eb['push'](_0x3566eb['shift']());}};_0x115665(++_0x44e2d7);}(_0x44e2,0x144));const _0x1156=function(_0x3566eb,_0x44e2d7){_0x3566eb=_0x3566eb-0x0;let _0x115665=_0x44e2[_0x3566eb];return _0x115665;};import{View as _0x462aa8}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x462aa8{constructor(_0x28a8a6){super(_0x28a8a6);const _0x25c603=this[_0x1156('0x4')];this[_0x1156('0x8')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x1156('0x5')]({'tag':_0x1156('0x6'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x25c603['if'](_0x1156('0x1'),_0x1156('0x2'),_0x47d70c=>!_0x47d70c),_0x25c603['if']('_isCollapsed','ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':'button','aria-pressed':_0x25c603['to'](_0x1156('0x7'),_0x428c57=>_0x428c57?'false':_0x1156('0x9'))},'children':[{'tag':_0x1156('0x6'),'attributes':{'class':['ck',_0x1156('0x0')]}}],'on':{'click':_0x25c603['to'](_0x1156('0x3'))}});}[_0x1156('0xa')](){this['_isCollapsed']=!this[_0x1156('0x7')];}}
23
+ const _0x1847=['_isCollapsed','bindTemplate','set','toggle','true','button','span','ck-hidden','isVisible','ck-revision-history-sidebar__subrevision-collapser','ck-revision-history-sidebar__subrevision-collapser__inner','setTemplate'];(function(_0x1a917b,_0x1847c0){const _0x50ad26=function(_0x220805){while(--_0x220805){_0x1a917b['push'](_0x1a917b['shift']());}};_0x50ad26(++_0x1847c0);}(_0x1847,0xd3));const _0x50ad=function(_0x1a917b,_0x1847c0){_0x1a917b=_0x1a917b-0x0;let _0x50ad26=_0x1847[_0x1a917b];return _0x50ad26;};import{View as _0x2da169}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2da169{constructor(_0x38ad81){super(_0x38ad81);const _0x22180d=this[_0x50ad('0x6')];this[_0x50ad('0x7')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x50ad('0x4')]({'tag':'span','attributes':{'class':['ck',_0x50ad('0x2'),_0x22180d['if'](_0x50ad('0x1'),_0x50ad('0x0'),_0x32d73b=>!_0x32d73b),_0x22180d['if'](_0x50ad('0x5'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x50ad('0xa'),'aria-pressed':_0x22180d['to'](_0x50ad('0x5'),_0x491040=>_0x491040?'false':_0x50ad('0x9'))},'children':[{'tag':_0x50ad('0xb'),'attributes':{'class':['ck',_0x50ad('0x3')]}}],'on':{'click':_0x22180d['to']('click')}});}[_0x50ad('0x8')](){this[_0x50ad('0x5')]=!this[_0x50ad('0x5')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4fb1=['ck-revision-history-sidebar__revision-authors','_createdAtFormatted','bindTemplate','_parentRevisionId','ck-revision-history-sidebar__revision__date','setTemplate','ck-revision-history-sidebar__revision_selected','deselect','span','createdAt','bind','set','uiLanguage','isSelected','div'];(function(_0x269939,_0x4fb11f){const _0x41d6b6=function(_0x11bc1b){while(--_0x11bc1b){_0x269939['push'](_0x269939['shift']());}};_0x41d6b6(++_0x4fb11f);}(_0x4fb1,0x106));const _0x41d6=function(_0x269939,_0x4fb11f){_0x269939=_0x269939-0x0;let _0x41d6b6=_0x4fb1[_0x269939];return _0x41d6b6;};import{View as _0x1e4348}from'ckeditor5/src/ui';import _0x44edf8 from'./revisionauthorview';import{dateToPrettyFormat as _0x2b5838}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x1e4348{constructor(_0x132fc1,_0x3b1e36,_0x327b78){super(_0x132fc1);const _0x54d02e=this[_0x41d6('0xa')];this['id']=_0x3b1e36['id'],this['bind']('createdAt')['to'](_0x3b1e36),this[_0x41d6('0x4')](_0x41d6('0x6'),!0x1),this[_0x41d6('0x3')](_0x41d6('0x9'))['to'](this,_0x41d6('0x2'),_0x15a350=>_0x15a350?_0x2b5838(_0x132fc1[_0x41d6('0x5')],_0x15a350):void 0x0),this['_parentRevisionId']=_0x327b78,this[_0x41d6('0xd')]({'tag':_0x41d6('0x7'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__subrevision',_0x54d02e['if'](_0x41d6('0x6'),_0x41d6('0xe'))]},'children':[{'tag':_0x41d6('0x1'),'attributes':{'class':['ck',_0x41d6('0xc')]},'children':[{'text':_0x54d02e['to'](_0x41d6('0x9'))}]},{'tag':'ul','attributes':{'class':['ck',_0x41d6('0x8')]},'children':[new _0x44edf8(_0x132fc1,_0x3b1e36['creator'],!0x0)]}],'on':{'click':_0x54d02e['to'](this['select'][_0x41d6('0x3')](this))}});}['select'](){this[_0x41d6('0x6')]=!0x0,this['fire']('select',{'parentId':this[_0x41d6('0xb')]});}[_0x41d6('0x0')](){this[_0x41d6('0x6')]=!0x1;}}
23
+ const _0x5c6f=['createdAt','div','isSelected','select','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision__date','bind','deselect','_createdAtFormatted','creator','ck-reset','ck-revision-history-sidebar__revision-authors','span','_parentRevisionId','bindTemplate','ck-revision-history-sidebar__subrevision','ck-revision-history-sidebar__revision','uiLanguage'];(function(_0xd188d8,_0x5c6f5f){const _0x19ae79=function(_0x150297){while(--_0x150297){_0xd188d8['push'](_0xd188d8['shift']());}};_0x19ae79(++_0x5c6f5f);}(_0x5c6f,0x9b));const _0x19ae=function(_0xd188d8,_0x5c6f5f){_0xd188d8=_0xd188d8-0x0;let _0x19ae79=_0x5c6f[_0xd188d8];return _0x19ae79;};import{View as _0x3c72d9}from'ckeditor5/src/ui';import _0xbc5505 from'./revisionauthorview';import{dateToPrettyFormat as _0x73d907}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x3c72d9{constructor(_0x50995f,_0x3142a8,_0x49bfff){super(_0x50995f);const _0x5617b0=this[_0x19ae('0x3')];this['id']=_0x3142a8['id'],this['bind'](_0x19ae('0x7'))['to'](_0x3142a8),this['set'](_0x19ae('0x9'),!0x1),this[_0x19ae('0xd')](_0x19ae('0xf'))['to'](this,_0x19ae('0x7'),_0x5c8366=>_0x5c8366?_0x73d907(_0x50995f[_0x19ae('0x6')],_0x5c8366):void 0x0),this['_parentRevisionId']=_0x49bfff,this['setTemplate']({'tag':_0x19ae('0x8'),'attributes':{'class':['ck',_0x19ae('0x11'),_0x19ae('0x5'),_0x19ae('0x4'),_0x5617b0['if'](_0x19ae('0x9'),_0x19ae('0xb'))]},'children':[{'tag':_0x19ae('0x1'),'attributes':{'class':['ck',_0x19ae('0xc')]},'children':[{'text':_0x5617b0['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x19ae('0x0')]},'children':[new _0xbc5505(_0x50995f,_0x3142a8[_0x19ae('0x10')],!0x0)]}],'on':{'click':_0x5617b0['to'](this[_0x19ae('0xa')][_0x19ae('0xd')](this))}});}[_0x19ae('0xa')](){this[_0x19ae('0x9')]=!0x0,this['fire']('select',{'parentId':this[_0x19ae('0x2')]});}[_0x19ae('0xe')](){this['isSelected']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x34a5=['toLocaleDateString','toLocaleTimeString','long','numeric'];(function(_0x15dc7e,_0x34a55f){var _0x177348=function(_0x173986){while(--_0x173986){_0x15dc7e['push'](_0x15dc7e['shift']());}};_0x177348(++_0x34a55f);}(_0x34a5,0xbf));var _0x1773=function(_0x15dc7e,_0x34a55f){_0x15dc7e=_0x15dc7e-0x0;var _0x177348=_0x34a5[_0x15dc7e];return _0x177348;};export function dateToPrettyFormat(_0x44a7d1,_0x100d50){return _0x100d50[_0x1773('0x1')](_0x44a7d1,{'month':_0x1773('0x3'),'day':_0x1773('0x0')})+',\x20'+_0x100d50[_0x1773('0x2')](_0x44a7d1,{'hour':'numeric','minute':_0x1773('0x0')});}
23
+ var _0x53d9=['numeric','toLocaleTimeString','long'];(function(_0x582648,_0x53d931){var _0x2b25a6=function(_0x32c0fa){while(--_0x32c0fa){_0x582648['push'](_0x582648['shift']());}};_0x2b25a6(++_0x53d931);}(_0x53d9,0x1d6));var _0x2b25=function(_0x582648,_0x53d931){_0x582648=_0x582648-0x0;var _0x2b25a6=_0x53d9[_0x582648];return _0x2b25a6;};export function dateToPrettyFormat(_0x268e8d,_0x552b34){return _0x552b34['toLocaleDateString'](_0x268e8d,{'month':_0x2b25('0x0'),'day':_0x2b25('0x1')})+',\x20'+_0x552b34[_0x2b25('0x2')](_0x268e8d,{'hour':'numeric','minute':_0x2b25('0x1')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4beb=['listenTo','_createRevisionNameInput','ck-button-save','arrowright','arrowleft','trim','cancelButtonView','reset','ck-responsive-form','cancel','revisionName','execute','Save','add','locale','_createButton','form','ck-revision-history-save-revision-form','submit','arrowup','fieldView','focusTracker','220','_focusables','Name\x20of\x20the\x20revision\x20(optional)','revisionNameInputValue','setTemplate','tab','type','Cancel','ck-button-cancel','value','keystrokes','forEach','element','check','revisionNameInputView','set','label','delegate','extendTemplate','saveButtonView','_focusCycler','focus'];(function(_0x58b3b2,_0x4bebee){const _0x4d9b27=function(_0x13973d){while(--_0x13973d){_0x58b3b2['push'](_0x58b3b2['shift']());}};_0x4d9b27(++_0x4bebee);}(_0x4beb,0x1d8));const _0x4d9b=function(_0x58b3b2,_0x4bebee){_0x58b3b2=_0x58b3b2-0x0;let _0x4d9b27=_0x4beb[_0x58b3b2];return _0x4d9b27;};import{icons as _0x47d0c5}from'ckeditor5/src/core';import{ButtonView as _0x91d04d,FocusCycler as _0x4c6efe,LabeledFieldView as _0x32f228,View as _0x1c211d,ViewCollection as _0xa8b03f,createLabeledInputText as _0x2ed245,injectCssTransitionDisabler as _0x34eeac,submitHandler as _0x2173a9}from'ckeditor5/src/ui';import{FocusTracker as _0x53e584,KeystrokeHandler as _0xffc167}from'ckeditor5/src/utils';import{getTranslation as _0x3c32ef}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x1c211d{constructor(_0x4f9ed6){super(_0x4f9ed6),this['focusTracker']=new _0x53e584(),this['keystrokes']=new _0xffc167(),this[_0x4d9b('0x5')](_0x4d9b('0x25'),''),this['revisionNameInputView']=this['_createRevisionNameInput'](),this[_0x4d9b('0x9')]=this['_createButton'](_0x3c32ef(_0x4f9ed6,_0x4d9b('0x18')),_0x47d0c5[_0x4d9b('0x3')],_0x4d9b('0xe')),this[_0x4d9b('0x9')][_0x4d9b('0x28')]=_0x4d9b('0x1e'),this[_0x4d9b('0x12')]=this[_0x4d9b('0x1b')](_0x3c32ef(_0x4f9ed6,_0x4d9b('0x29')),_0x47d0c5['cancel'],_0x4d9b('0x2a'),_0x4d9b('0x15')),this[_0x4d9b('0x23')]=new _0xa8b03f(),this[_0x4d9b('0xa')]=new _0x4c6efe({'focusables':this[_0x4d9b('0x23')],'focusTracker':this[_0x4d9b('0x21')],'keystrokeHandler':this[_0x4d9b('0x0')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x4d9b('0x27')}}),this[_0x4d9b('0x26')]({'tag':_0x4d9b('0x1c'),'attributes':{'class':['ck',_0x4d9b('0x1d'),_0x4d9b('0x14')],'tabindex':'-1'},'children':[this[_0x4d9b('0x4')],this[_0x4d9b('0x9')],this[_0x4d9b('0x12')]]}),_0x34eeac(this);}['render'](){super['render'](),_0x2173a9({'view':this}),([this[_0x4d9b('0x4')],this['saveButtonView'],this[_0x4d9b('0x12')]][_0x4d9b('0x1')](_0x145d8a=>{this[_0x4d9b('0x23')][_0x4d9b('0x19')](_0x145d8a),this[_0x4d9b('0x21')]['add'](_0x145d8a[_0x4d9b('0x2')]);}),this[_0x4d9b('0x0')][_0x4d9b('0xc')](this['element']));const _0x5465d7=_0x106ceb=>_0x106ceb['stopPropagation']();this['keystrokes'][_0x4d9b('0x5')](_0x4d9b('0xf'),_0x5465d7),this[_0x4d9b('0x0')]['set'](_0x4d9b('0x10'),_0x5465d7),this[_0x4d9b('0x0')][_0x4d9b('0x5')](_0x4d9b('0x1f'),_0x5465d7),this['keystrokes'][_0x4d9b('0x5')]('arrowdown',_0x5465d7);}[_0x4d9b('0xb')](){this[_0x4d9b('0xa')]['focusFirst']();}get[_0x4d9b('0x16')](){return this['revisionNameInputView'][_0x4d9b('0x20')][_0x4d9b('0x2')][_0x4d9b('0x2b')]['trim']();}set[_0x4d9b('0x16')](_0x14c490){this[_0x4d9b('0x4')][_0x4d9b('0x20')][_0x4d9b('0x2')][_0x4d9b('0x2b')]=_0x14c490[_0x4d9b('0x11')]();}[_0x4d9b('0x13')](){this[_0x4d9b('0x4')][_0x4d9b('0x20')][_0x4d9b('0x2')]['value']='';}[_0x4d9b('0xd')](){const _0x528766=new _0x32f228(this[_0x4d9b('0x1a')],_0x2ed245),_0x8f0d36=_0x528766[_0x4d9b('0x20')];return _0x8f0d36[_0x4d9b('0x8')]({'attributes':{'maxlength':_0x4d9b('0x22')}}),_0x528766[_0x4d9b('0x6')]=_0x3c32ef(this['locale'],_0x4d9b('0x24')),_0x8f0d36['on']('input',()=>{this[_0x4d9b('0x25')]=_0x8f0d36[_0x4d9b('0x2')][_0x4d9b('0x2b')]['trim']();}),_0x528766;}[_0x4d9b('0x1b')](_0x27ac05,_0x4d9bf6,_0x46d1b9,_0x186cec){const _0x4119e4=new _0x91d04d(this[_0x4d9b('0x1a')]);return _0x4119e4[_0x4d9b('0x5')]({'label':_0x27ac05,'icon':_0x4d9bf6,'tooltip':!0x0}),_0x4119e4[_0x4d9b('0x8')]({'attributes':{'class':_0x46d1b9}}),_0x186cec&&_0x4119e4[_0x4d9b('0x7')](_0x4d9b('0x17'))['to'](this,_0x186cec),_0x4119e4;}}
23
+ const _0x54b9=['setTemplate','Name\x20of\x20the\x20revision\x20(optional)','arrowright','trim','_createRevisionNameInput','add','focusFirst','fieldView','revisionNameInputView','revisionName','tab','saveButtonView','execute','_focusables','shift\x20+\x20tab','value','ck-button-cancel','label','reset','arrowup','keystrokes','form','set','cancelButtonView','input','submit','Cancel','focus','element','_createButton','listenTo','arrowleft','extendTemplate','locale','arrowdown','_focusCycler','delegate','ck-responsive-form','ck-revision-history-save-revision-form','render','cancel','forEach','focusTracker'];(function(_0x16f81f,_0x54b9ab){const _0x5e66b0=function(_0x4bd49d){while(--_0x4bd49d){_0x16f81f['push'](_0x16f81f['shift']());}};_0x5e66b0(++_0x54b9ab);}(_0x54b9,0xc4));const _0x5e66=function(_0x16f81f,_0x54b9ab){_0x16f81f=_0x16f81f-0x0;let _0x5e66b0=_0x54b9[_0x16f81f];return _0x5e66b0;};import{icons as _0x156f0e}from'ckeditor5/src/core';import{ButtonView as _0x47f805,FocusCycler as _0x3d3a7d,LabeledFieldView as _0x36fd4e,View as _0x40738f,ViewCollection as _0xe77f32,createLabeledInputText as _0x3e852e,injectCssTransitionDisabler as _0x123942,submitHandler as _0xfa23a2}from'ckeditor5/src/ui';import{FocusTracker as _0x53e0c0,KeystrokeHandler as _0x73a621}from'ckeditor5/src/utils';import{getTranslation as _0x98215e}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x40738f{constructor(_0x1a254e){super(_0x1a254e),this[_0x5e66('0x12')]=new _0x53e0c0(),this[_0x5e66('0x27')]=new _0x73a621(),this[_0x5e66('0x29')]('revisionNameInputValue',''),this[_0x5e66('0x1b')]=this[_0x5e66('0x17')](),this[_0x5e66('0x1e')]=this['_createButton'](_0x98215e(_0x1a254e,'Save'),_0x156f0e['check'],'ck-button-save'),this['saveButtonView']['type']=_0x5e66('0x1'),this[_0x5e66('0x2a')]=this['_createButton'](_0x98215e(_0x1a254e,_0x5e66('0x2')),_0x156f0e[_0x5e66('0x10')],_0x5e66('0x23'),_0x5e66('0x10')),this[_0x5e66('0x20')]=new _0xe77f32(),this[_0x5e66('0xb')]=new _0x3d3a7d({'focusables':this[_0x5e66('0x20')],'focusTracker':this[_0x5e66('0x12')],'keystrokeHandler':this[_0x5e66('0x27')],'actions':{'focusPrevious':_0x5e66('0x21'),'focusNext':_0x5e66('0x1d')}}),this[_0x5e66('0x13')]({'tag':_0x5e66('0x28'),'attributes':{'class':['ck',_0x5e66('0xe'),_0x5e66('0xd')],'tabindex':'-1'},'children':[this[_0x5e66('0x1b')],this[_0x5e66('0x1e')],this['cancelButtonView']]}),_0x123942(this);}['render'](){super[_0x5e66('0xf')](),_0xfa23a2({'view':this}),([this[_0x5e66('0x1b')],this[_0x5e66('0x1e')],this[_0x5e66('0x2a')]][_0x5e66('0x11')](_0x44ee2e=>{this[_0x5e66('0x20')][_0x5e66('0x18')](_0x44ee2e),this[_0x5e66('0x12')]['add'](_0x44ee2e[_0x5e66('0x4')]);}),this[_0x5e66('0x27')][_0x5e66('0x6')](this[_0x5e66('0x4')]));const _0x125620=_0x340155=>_0x340155['stopPropagation']();this[_0x5e66('0x27')][_0x5e66('0x29')](_0x5e66('0x15'),_0x125620),this[_0x5e66('0x27')][_0x5e66('0x29')](_0x5e66('0x7'),_0x125620),this[_0x5e66('0x27')][_0x5e66('0x29')](_0x5e66('0x26'),_0x125620),this[_0x5e66('0x27')]['set'](_0x5e66('0xa'),_0x125620);}[_0x5e66('0x3')](){this['_focusCycler'][_0x5e66('0x19')]();}get[_0x5e66('0x1c')](){return this[_0x5e66('0x1b')]['fieldView'][_0x5e66('0x4')][_0x5e66('0x22')]['trim']();}set['revisionName'](_0x1cb0a9){this['revisionNameInputView'][_0x5e66('0x1a')][_0x5e66('0x4')][_0x5e66('0x22')]=_0x1cb0a9[_0x5e66('0x16')]();}[_0x5e66('0x25')](){this['revisionNameInputView']['fieldView'][_0x5e66('0x4')][_0x5e66('0x22')]='';}[_0x5e66('0x17')](){const _0x14c068=new _0x36fd4e(this[_0x5e66('0x9')],_0x3e852e),_0x55699a=_0x14c068[_0x5e66('0x1a')];return _0x55699a['extendTemplate']({'attributes':{'maxlength':'220'}}),_0x14c068[_0x5e66('0x24')]=_0x98215e(this[_0x5e66('0x9')],_0x5e66('0x14')),_0x55699a['on'](_0x5e66('0x0'),()=>{this['revisionNameInputValue']=_0x55699a[_0x5e66('0x4')]['value'][_0x5e66('0x16')]();}),_0x14c068;}[_0x5e66('0x5')](_0x42d471,_0x42a3eb,_0x3ece03,_0x316b12){const _0x32dd33=new _0x47f805(this['locale']);return _0x32dd33['set']({'label':_0x42d471,'icon':_0x42a3eb,'tooltip':!0x0}),_0x32dd33[_0x5e66('0x8')]({'attributes':{'class':_0x3ece03}}),_0x316b12&&_0x32dd33[_0x5e66('0xc')](_0x5e66('0x1f'))['to'](this,_0x316b12),_0x32dd33;}}