@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230707.0 → 0.0.0-nightly-20230709.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 _0x5613=['markerToData','nextSibling','_activeViewTarget','enableReadOnlyMode','isBlock','viewItem','start','change:activeChange','plugins','_fixObsoleteTags','getClientRects','find','ck-suggestion-marker-split','removeClass','level','uiElement','then','shift','ck-revision-history-root-add','change:isEnabled','bind','_balloon','bindElementToMarker','activeChange','detachRoot','requires','startsWith','loadRevisionData','pluginName','_threeWayMerge','_getViewObj','currentChangeNumber','writer','userId','remove','isAttached','deletion','attributes','_setDistance','left','numberOfChanges','length','changeId','model','vid_end','createAttributeElement','span','getAttributes','data-revision-','markersEnd','markersStart','maxOffset','get','push','_cleanUp','createUIElement','roots','_cleanMarkers','stop','revisionHistoryAttachChange','revision-suggestion:','dataToMarker','getDomRoot','insertions','has','toModel','_revisions','revision-viewer','activeView','_makeModelFromTape','unshift','_getViewForChange','splice','hasAttribute','markerRange','ck-suggestion-marker','dataDowncast','keys','ck-suggestion-preview-marker','forward','hasClass','side','deletions','_markSuggestions','first','ck-revision-history-root-','isOnRoot','editingDowncast','upcast','bottom','item','pop','object','test','_changeView','insert','revisionHistoryLabel','ck-editor__editable__overlay','element','repository','includes','ck-suggestion-marker--active','-new','text','change','_joinTapes','_getChangeFromId','revisionHistory','isAtStart','data','_getRevisionsRange','name','children','markerName','for','forEach','ck-suggestion-preview-marker-','range','attributesAfter','_markMismatchedRemovedTags','_initInteractions','_markMarkers','index','string','mousedown','newRevisionId','locale','attachChange','getRootNames','createRevision','addMarker:revision-suggestion:deletion','mouseover','_getDiff','parse','getAttribute','wrap','_setChanges','clear','revision-suggestion','ck-suggestion-marker-merge','data-change-id','processor','offsetSize','_markInsertions','affectsData','editor','isRemoveSuggestion','getRevision','document','pairId','catch','target','_changeIdToChange','_step','restoreRevision','showPreviousChange','modelRange','toData','diff','ck-suggestion-marker-','getChild','suggestion','isAddSuggestion','createRange','_processTape','change:activeView','nodeAfter','_findChangeIdFromDomTarget','_makeModelFromViewString','domEvent','add','revision-end','getItems','nextPosition','_makeTape','merge','compare','rootName','isEnabled','addHighlight','insertion','top','_removeUnsupportedChanges','WidgetToolbarRepository','next','_removeRevisionMarkers','_update','_removeMissingPairs','indexOf','change:numberOfChanges','isRemoved','execute','isAfter','enqueueChange','comment','editing','markerToHighlight','elementStart','config','observeMarkers','softBreak','getRevisionData','distance','RevisionViewer','toViewPosition','addMarker:revision-suggestion:insertion','highest','view','split','downcastDispatcher','isEqual','return','revision','refresh','resolve','set','removeMarker:revision-suggestion','consumable','conversion','isBefore','isContent','isIncorrect','consume','map','addRevisionData','destroy','code','isNavigationMode','delete','markerNameToElements','_refreshStartEndIndex','from','getWalker','slice','schema','end','addMarker:revision','concat','isReady','unbindElementFromMarkerName','createPositionBefore','vid_start','isSuggestion','type','createPositionFromPath','isCollapsed','changes','high','parent','revision:','diffData','filter','toViewElement','ck-revision-history-root--active','suggestion:','setAttribute','getIndex','isLimit','commands','attribute:vid','listenTo','endIndex','abs','vid','getCustomProperty','revision-comment:','previousPosition','change:isReady','isObject','markers','POSITIVE_INFINITY','mapper','marked','isAdded','flat','_setConversion','_appendChild','mapViewToDom','getRoot','checkAttribute','sort','addClass','reconvertMarker','updatePosition','_sortAndFilterDiffChanges','low','startIndex','isAtEnd','collaboration.channelId','elementEnd','addRoot','RevisionsRepository'];(function(_0x1510b2,_0x561360){const _0x2f82fb=function(_0x82db49){while(--_0x82db49){_0x1510b2['push'](_0x1510b2['shift']());}};_0x2f82fb(++_0x561360);}(_0x5613,0xbc));const _0x2f82=function(_0x1510b2,_0x561360){_0x1510b2=_0x1510b2-0x0;let _0x2f82fb=_0x5613[_0x1510b2];return _0x2f82fb;};import{Plugin as _0x131c53,Command as _0x14ce75}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0xf5de76}from'ckeditor5/src/utils';import{ContextualBalloon as _0x103a21}from'ckeditor5/src/ui';import{DocumentFragment as _0x4e1681,Element as _0x1f608f,Text as _0x2f2a4a,ViewDocumentFragment as _0x544758,ViewText as _0x9fedc6,ViewElement as _0x562c47,ViewContainerElement as _0x4926c0,ViewAttributeElement as _0x4032e0,ViewEmptyElement as _0x45b216,ViewRawElement as _0x50ff5a,ViewUIElement as _0x5dcf7b}from'ckeditor5/src/engine';import{Users as _0x5e9989,getMarkerDomElement as _0x3ba4c6}from'ckeditor5-collaboration/src/collaboration-core';import _0x2e7d64 from'./ui/revisionviewer/changedetailsview';import _0x54a75b from'./revisionsrepository';import _0x112a6e from'./changeitem';import{default as _0x1215c6}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x871c42}from'lodash-es';const Y={'c':_0x4926c0,'a':_0x4032e0,'e':_0x45b216,'r':_0x50ff5a,'u':_0x5dcf7b};export default class d extends _0x131c53{static get[_0x2f82('0x84')](){return _0x2f82('0xf');}static get[_0x2f82('0x81')](){return[_0x5e9989,_0x103a21,_0x54a75b];}constructor(_0x30d214){super(_0x30d214),this[_0x2f82('0xcb')]=this[_0x2f82('0xf9')][_0x2f82('0x70')][_0x2f82('0x9c')](_0x2f82('0x67')),this[_0x2f82('0x1b')](_0x2f82('0x7f'),null),this[_0x2f82('0x1b')](_0x2f82('0xac'),null),this[_0x2f82('0x6a')]=null,this[_0x2f82('0x1b')](_0x2f82('0x106'),null),this['set']('isReady',!0x1),this[_0x2f82('0x1b')](_0x2f82('0x11a'),!0x0),this['on']('change:isEnabled',(_0x19593e,_0x1e16c4,_0x225961)=>{this['activeChange']=null,this[_0x2f82('0xac')]=null,this['editor'][_0x2f82('0x7')][_0x2f82('0x13')][_0x2f82('0xd0')](_0x178255=>{for(const _0x35ef73 of this[_0x2f82('0xf9')][_0x2f82('0x7')][_0x2f82('0x13')][_0x2f82('0xfc')][_0x2f82('0xa0')])_0x225961?_0x178255[_0x2f82('0x75')](_0x2f82('0xc9'),_0x35ef73):_0x178255[_0x2f82('0x5d')](_0x2f82('0xc9'),_0x35ef73);});}),this['bind'](_0x2f82('0x27'))['to'](this,_0x2f82('0x7f'),_0x1d7a69=>null!==_0x1d7a69),this[_0x2f82('0x7c')](_0x2f82('0x87'))['to'](this,'isReady',this,_0x2f82('0x106'),this,_0x2f82('0x7f'),(_0x211406,_0x6d977f,_0x4d5a04)=>_0x211406&&_0x4d5a04?_0x6d977f['changes'][_0x2f82('0x44')](_0x4d5a04):0x0),this[_0x2f82('0x7c')](_0x2f82('0x90'))['to'](this,_0x2f82('0x32'),this,_0x2f82('0x106'),(_0x34165c,_0x55101a)=>_0x34165c?_0x55101a['changes'][_0x2f82('0x91')]:0x0),this[_0x2f82('0xc6')]=null,this[_0x2f82('0x100')]=new Map(),this['adapter']=null,this[_0x2f82('0x7d')]=this['editor'][_0x2f82('0x70')][_0x2f82('0x9c')](_0x103a21);}['init'](){const _0x1bb64f=this[_0x2f82('0xf9')],_0x4605d4=new ShowChangeCommand(_0x1bb64f,{'direction':'backward'}),_0x44ee8e=new ShowChangeCommand(_0x1bb64f,{'direction':_0x2f82('0xb7')});(_0x1bb64f['commands'][_0x2f82('0x112')](_0x2f82('0x103'),_0x4605d4),_0x1bb64f[_0x2f82('0x46')][_0x2f82('0x112')]('showNextChange',_0x44ee8e),_0x1bb64f[_0x2f82('0x46')][_0x2f82('0x112')](_0x2f82('0x102'),new RestoreRevisionCommand(_0x1bb64f)),this['on'](_0x2f82('0x1'),()=>{_0x4605d4[_0x2f82('0x19')](),_0x44ee8e[_0x2f82('0x19')]();}),this[_0x2f82('0x57')](),this[_0x2f82('0xe0')](),_0x1bb64f[_0x2f82('0x6b')](_0x2f82('0xab')),_0x1bb64f[_0x2f82('0x70')]['has'](_0x2f82('0x11f')))&&_0x1bb64f[_0x2f82('0x70')][_0x2f82('0x9c')](_0x2f82('0x11f'))['forceDisabled'](_0x2f82('0xab'));}async[_0x2f82('0xd')](_0x9603e6){await this[_0x2f82('0x83')](_0x9603e6);const _0x5b4ca4={};for(const _0x2786e9 in _0x9603e6[_0x2f82('0x3e')]){if(_0x9603e6[_0x2f82('0x3e')][_0x2786e9]['attachChange']&&!_0x9603e6[_0x2f82('0x3e')][_0x2786e9]['attachChange'][_0x2f82('0x8b')])continue;const _0x3bf128=this[_0x2f82('0x121')](JSON[_0x2f82('0xed')](_0x9603e6[_0x2f82('0x3e')][_0x2786e9][_0x2f82('0xa7')])),_0x30db7d=this[_0x2f82('0xf9')][_0x2f82('0x7')][_0x2f82('0x13')][_0x2f82('0xfc')],_0x266fe5=new _0x544758(_0x30db7d,_0x3bf128[_0x2f82('0x23')](_0x1492ee=>this[_0x2f82('0x86')](_0x1492ee)));this['editor'][_0x2f82('0xd5')][_0x2f82('0xf5')]['useFillerType'](_0x2f82('0x54')),_0x5b4ca4[_0x2786e9]=this[_0x2f82('0xf9')]['data'][_0x2f82('0xf5')][_0x2f82('0x105')](_0x266fe5),this[_0x2f82('0xf9')][_0x2f82('0xd5')][_0x2f82('0xf5')]['useFillerType']('default');}return _0x5b4ca4;}async['getRevisionRootsAttributes'](_0x57ffe4){await this[_0x2f82('0x83')](_0x57ffe4);const _0x31e667={};for(const _0x35367c in _0x57ffe4[_0x2f82('0x3e')])_0x57ffe4[_0x2f82('0x3e')][_0x35367c][_0x2f82('0xe7')]&&!_0x57ffe4[_0x2f82('0x3e')][_0x35367c][_0x2f82('0xe7')][_0x2f82('0x8b')]||(_0x31e667[_0x35367c]=_0x57ffe4[_0x2f82('0x3e')][_0x35367c][_0x2f82('0xde')]||{});return _0x31e667;}['_removeRevisionMarkers'](_0x53dfe7){return(_0x53dfe7=_0x53dfe7[_0x2f82('0x3f')](_0x5a0c8b=>!_0x5a0c8b[_0x2f82('0xd7')]||'revision-start'!==_0x5a0c8b[_0x2f82('0xd7')]&&_0x2f82('0x113')!==_0x5a0c8b[_0x2f82('0xd7')]))[_0x2f82('0xdb')](_0x3fa0e6=>{_0x2f82('0xe3')!=typeof _0x3fa0e6&&(_0x3fa0e6[_0x2f82('0xd8')]=this[_0x2f82('0x121')](_0x3fa0e6[_0x2f82('0xd8')]),_0x3fa0e6[_0x2f82('0x8d')]=_0x3fa0e6[_0x2f82('0x8d')][_0x2f82('0x3f')](_0x3018c2=>!_0x3018c2[0x0][_0x2f82('0x82')](_0x2f82('0x98'))));}),_0x53dfe7;}async[_0x2f82('0x118')](_0x5ef82f,_0x50a2c7,_0x351e02=!0x1){if(!this[_0x2f82('0x11a')])return;const _0x17e1b0=this[_0x2f82('0x106')],_0x4ab4e5=this['repository'],_0x1ed685=_0x2f82('0xe3')==typeof _0x5ef82f?_0x4ab4e5[_0x2f82('0xfb')](_0x5ef82f):_0x5ef82f,_0x5352c4='string'==typeof _0x50a2c7?_0x4ab4e5['getRevision'](_0x50a2c7):_0x50a2c7,_0x23aa4d=_0x1ed685['id'],_0x54c0d9=_0x5352c4?_0x5352c4['id']:null;if(!_0x351e02&&this['diff']&&this[_0x2f82('0x106')][_0x2f82('0xe5')]===_0x23aa4d&&this['diff']['oldRevisionId']===_0x54c0d9)return Promise[_0x2f82('0x1a')]();this[_0x2f82('0x32')]=!0x1,this[_0x2f82('0xac')]=null,this[_0x2f82('0x7f')]=null,this[_0x2f82('0x106')]=new _0x1215c6(_0x23aa4d,_0x54c0d9);const _0x4d02f6=this[_0x2f82('0xd6')](_0x1ed685,_0x5352c4,!0x0)['map'](_0x5cc428=>this[_0x2f82('0x83')](_0x5cc428));return _0x4d02f6[_0x2f82('0x9d')](new Promise(_0x4ff0c8=>{setTimeout(_0x4ff0c8,0x14);})),Promise['all'](_0x4d02f6)[_0x2f82('0x78')](()=>{if(!this[_0x2f82('0x11a')])return;this[_0x2f82('0x9e')]();const _0x544c83=this[_0x2f82('0xec')](_0x23aa4d,_0x54c0d9);for(const _0x547aac of _0x544c83[_0x2f82('0x3a')])this['_changeIdToChange'][_0x2f82('0x1b')](_0x547aac['id'],_0x547aac);this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0x5')]({'isUndoable':!0x1},_0x290ea9=>{for(const _0x941646 of this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0xfc')][_0x2f82('0xe8')]())_0x290ea9[_0x2f82('0x80')](_0x941646);for(const _0x1d4dda of Object['keys'](_0x544c83['model'])){const _0xb02365=_0x290ea9[_0x2f82('0x66')](_0x1d4dda);for(const _0xf0a80f of Object[_0x2f82('0xb5')](_0x544c83['attributes'][_0x1d4dda]))_0x290ea9[_0x2f82('0x43')](_0xf0a80f,_0x544c83['attributes'][_0x1d4dda][_0xf0a80f],_0xb02365);_0x290ea9['insert'](_0x544c83[_0x2f82('0x93')][_0x1d4dda],_0xb02365,0x0);}}),this[_0x2f82('0x106')][_0x2f82('0xf0')](this[_0x2f82('0x60')](_0x544c83[_0x2f82('0x3a')])),this['isReady']=!0x0;})[_0x2f82('0xfe')](_0x5815d2=>{console['error'](_0x5815d2),this['_cleanUp'](),_0x17e1b0&&(this[_0x2f82('0x106')]=_0x17e1b0),this[_0x2f82('0x32')]=!0x0;});}[_0x2f82('0x24')](_0xc0101b,_0x1d5c8f){const _0x4b31f8=this['repository'][_0x2f82('0xe9')](_0xc0101b);return _0x4b31f8['on'](_0x2f82('0x122'),(_0x19619c,_0x15cb36,_0x1195a5)=>_0x1d5c8f(_0x15cb36,_0x1195a5,_0x4b31f8)),this['repository']['addRevision'](_0x4b31f8),_0x4b31f8;}[_0x2f82('0x83')](_0x5811bf){if(!_0x5811bf||_0x5811bf[_0x2f82('0x3e')])return Promise['resolve']();{const _0x5eb5a1=this[_0x2f82('0xf9')][_0x2f82('0xa')][_0x2f82('0x9c')](_0x2f82('0x64'));return this['adapter'][_0x2f82('0xfb')]({'channelId':_0x5eb5a1,'revisionId':_0x5811bf['id']})[_0x2f82('0x78')](_0x3684fe=>{_0x5811bf[_0x2f82('0x122')]({'diffData':_0x3684fe[_0x2f82('0x3e')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this[_0x2f82('0xa1')](),this[_0x2f82('0xc6')]&&this[_0x2f82('0xc6')][_0x2f82('0x25')](),this[_0x2f82('0xc6')]=null,this[_0x2f82('0x100')][_0x2f82('0xf1')](),this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0x5')]({'isUndoable':!0x1},_0x5c78a7=>{for(const _0x3a28d5 of this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0xfc')]['getRootNames']())_0x5c78a7[_0x2f82('0x80')](_0x3a28d5);});}[_0x2f82('0x60')](_0x154a0e){const _0x518061=[],_0x49e5a1=new Map();for(const _0x154df8 of this['editor'][_0x2f82('0x93')]['document']['getRootNames']()){const _0x56f8ec=this[_0x2f82('0xf9')]['editing'][_0x2f82('0x13')][_0x2f82('0xa6')](_0x154df8);if(!_0x56f8ec)continue;const _0x404f08=_0x56f8ec[_0x2f82('0x72')]()[_0x2f82('0xc2')](0x0);_0x404f08&&(_0x518061[_0x2f82('0x9d')](_0x154df8),_0x49e5a1[_0x2f82('0x1b')](_0x154df8,_0x404f08));}return _0x518061['sort']((_0x2cf9ae,_0x225d68)=>{const _0x2cfea3=_0x49e5a1[_0x2f82('0x9c')](_0x2cf9ae),_0x20071c=_0x49e5a1[_0x2f82('0x9c')](_0x225d68);return _0x2cfea3['y']-_0x20071c['y']||_0x2cfea3['x']-_0x20071c['x'];}),(_0x154a0e=_0x154a0e[_0x2f82('0x3f')](_0x37b69e=>_0x518061[_0x2f82('0xcc')](_0x37b69e[_0x2f82('0x119')])))['sort']((_0x430e4d,_0x2ba4f7)=>_0x518061['indexOf'](_0x430e4d[_0x2f82('0x119')])-_0x518061[_0x2f82('0x0')](_0x2ba4f7[_0x2f82('0x119')])),_0x154a0e;}['_makeTape'](_0xc52e6b){const _0x1649fd=Array[_0x2f82('0x2b')](_0xc52e6b[_0x2f82('0x51')])[_0x2f82('0x3f')](([_0x376e10,_0x325013])=>_0x376e10[_0x2f82('0x82')]('revision:')&&!_0x325013[_0x2f82('0x39')]),_0x3a377b=Array[_0x2f82('0x2b')](this[_0x2f82('0xf9')][_0x2f82('0x93')]['createRangeIn'](_0xc52e6b)[_0x2f82('0x2c')]({'singleCharacters':!0x0}));if(0x0!=_0x1649fd[_0x2f82('0x91')])for(const _0x4469ce of _0x3a377b){const [_0xfa60a5,_0x592cd6]=_0x1649fd[0x0],[,_0x378d88,_0x28299d]=_0xfa60a5[_0x2f82('0x14')](':');if(_0x592cd6[_0x2f82('0x2f')]['isEqual'](_0x4469ce[_0x2f82('0x115')])&&_0x1649fd[_0x2f82('0x79')](),(_0x4469ce[_0x2f82('0x4e')][_0x2f82('0x16')](_0x592cd6['start'])||_0x4469ce['previousPosition'][_0x2f82('0x4')](_0x592cd6['start']))&&(_0x2f82('0x11c')==_0x378d88?_0x4469ce[_0x2f82('0x55')]={'userId':_0x28299d}:_0x2f82('0x8c')==_0x378d88&&(_0x4469ce[_0x2f82('0x2')]={'userId':_0x28299d})),0x0==_0x1649fd[_0x2f82('0x91')])break;}return _0x3a377b;}[_0x2f82('0x2a')](_0x30c761){const _0x2103c6=new Map();for(let _0x15a858=0x0;_0x15a858<_0x30c761[_0x2f82('0x91')];_0x15a858++)_0x2f82('0xcf')===_0x30c761[_0x15a858][_0x2f82('0x37')]?(_0x30c761[_0x15a858][_0x2f82('0xc2')]['startIndex']=_0x15a858,_0x30c761[_0x15a858][_0x2f82('0xc2')][_0x2f82('0x49')]=_0x15a858):(_0x2f82('0x9')===_0x30c761[_0x15a858][_0x2f82('0x37')]?_0x30c761[_0x15a858][_0x2f82('0xc2')]['startIndex']=_0x15a858:'elementEnd'===_0x30c761[_0x15a858]['type']&&(_0x30c761[_0x15a858][_0x2f82('0xc2')]['endIndex']=_0x15a858),_0x2103c6['set'](_0x30c761[_0x15a858]['id'],_0x15a858));for(const _0x14f515 of _0x2103c6['values']())_0x2f82('0x9')===_0x30c761[_0x14f515]['type']?_0x30c761[_0x14f515][_0x2f82('0xc2')][_0x2f82('0x49')]=_0x2103c6[_0x2f82('0x9c')](_0x30c761[_0x14f515][_0x2f82('0xfd')]):'elementEnd'===_0x30c761[_0x14f515][_0x2f82('0x37')]&&(_0x30c761[_0x14f515][_0x2f82('0xc2')][_0x2f82('0x62')]=_0x2103c6[_0x2f82('0x9c')](_0x30c761[_0x14f515]['pairId']));}[_0x2f82('0x10c')](_0x5accd2){for(let _0x131d13=0x0;_0x131d13<_0x5accd2[_0x2f82('0x91')];_0x131d13++){if('elementStart'===_0x5accd2[_0x131d13][_0x2f82('0x37')])_0x5accd2[_0x131d13][_0x2f82('0xc2')][_0x2f82('0x62')]=_0x131d13;else{if(_0x2f82('0x65')===_0x5accd2[_0x131d13][_0x2f82('0x37')]){_0x5accd2[_0x131d13]['item'][_0x2f82('0x49')]=_0x131d13;const _0x5a982e=_0x5accd2[_0x131d13]['item'][_0x2f82('0x62')];_0x5accd2[_0x5a982e][_0x2f82('0xfd')]=_0x5accd2[_0x131d13]['id'],_0x5accd2[_0x131d13][_0x2f82('0xfd')]=_0x5accd2[_0x5a982e]['id'];}else _0x5accd2[_0x131d13][_0x2f82('0xc2')][_0x2f82('0x62')]=_0x131d13,_0x5accd2[_0x131d13][_0x2f82('0xc2')]['endIndex']=_0x131d13,_0x5accd2[_0x131d13][_0x2f82('0xfd')]=null;}_0x5accd2[_0x131d13][_0x2f82('0x9a')]||(_0x5accd2[_0x131d13][_0x2f82('0x9a')]=[],_0x5accd2[_0x131d13][_0x2f82('0x99')]=[]);}}[_0x2f82('0xf7')](_0x2da13e,_0xec4fb0){const _0xcaeb22=_0x2da13e[_0x2f82('0x3f')](_0x403aef=>!_0x403aef[_0x2f82('0x55')]);for(let _0x458e9f=0x0;_0x458e9f<_0xec4fb0['length'];_0x458e9f++)_0xec4fb0[_0x458e9f][_0x2f82('0x55')]&&(_0xcaeb22[_0x458e9f][_0x2f82('0x55')]=_0xec4fb0[_0x458e9f][_0x2f82('0x55')]);}['_makeModelFromViewString'](_0x530857){const _0x18ee26=JSON[_0x2f82('0xed')](_0x530857),_0x49bad3=this['editor'][_0x2f82('0x7')][_0x2f82('0x13')]['document'],_0x1dd97f=new _0x544758(_0x49bad3,_0x18ee26[_0x2f82('0x23')](_0x4c9972=>this[_0x2f82('0x86')](_0x4c9972)));return this[_0x2f82('0xf9')]['data'][_0x2f82('0xa9')](_0x1dd97f);}['_getViewObj'](_0x15e96a){const _0x118f89=this[_0x2f82('0xf9')][_0x2f82('0x7')][_0x2f82('0x13')][_0x2f82('0xfc')];if(_0x2f82('0xe3')==typeof _0x15e96a)return new _0x9fedc6(_0x118f89,_0x15e96a);{const _0x2870fc=_0x15e96a['children'][_0x2f82('0x23')](_0x1ca243=>this['_getViewObj'](_0x1ca243));return new(Y[_0x15e96a[(_0x2f82('0x37'))]]||_0x562c47)(_0x118f89,_0x15e96a['name'],_0x15e96a['attributes'],_0x2870fc);}}[_0x2f82('0xec')](_0x4a5bfb,_0x93ba82=null){const _0x1161a5=this[_0x2f82('0xcb')]['getRevision'](_0x4a5bfb),_0x2f9d94=_0x93ba82?this['repository'][_0x2f82('0xfb')](_0x93ba82):null,_0x4c96f1=this[_0x2f82('0xd6')](_0x1161a5,_0x2f9d94),_0x5decf6=_0x4c96f1[_0x4c96f1[_0x2f82('0x91')]-0x1],_0x9e0d16=new Map(),_0x4aaf25={'model':{},'attributes':{},'changes':[]},_0x2e614d=new Set(),_0x3f4dda=new Map();for(let _0xe624e5=_0x4c96f1[_0x2f82('0x91')]-0x1;_0xe624e5>=0x0;_0xe624e5--){const _0x268840=_0x4c96f1[_0xe624e5];for(const _0x205656 of Object[_0x2f82('0xb5')](_0x268840[_0x2f82('0x3e')]))if(_0x268840[_0x2f82('0x3e')][_0x205656][_0x2f82('0xe7')]){const _0x39365d=_0x268840['diffData'][_0x205656][_0x2f82('0xe7')];_0x39365d[_0x2f82('0x8b')]?(_0x2e614d[_0x2f82('0x112')](_0x205656),_0x3f4dda[_0x2f82('0xa8')](_0x205656)&&_0x3f4dda[_0x2f82('0x9c')](_0x205656)[_0x2f82('0x89')]==_0x39365d['userId']?_0x3f4dda[_0x2f82('0x28')](_0x205656):_0x3f4dda[_0x2f82('0x1b')](_0x205656,_0x39365d)):_0x3f4dda[_0x2f82('0xa8')](_0x205656)?(_0x2e614d[_0x2f82('0x28')](_0x205656),_0x3f4dda[_0x2f82('0x28')](_0x205656)):(_0x2e614d[_0x2f82('0x112')](_0x205656),_0x3f4dda['set'](_0x205656,_0x39365d));}else _0x2e614d['add'](_0x205656);}for(const _0x479a04 of _0x2e614d){const _0x378204=_0x3f4dda['has'](_0x479a04)&&!_0x3f4dda['get'](_0x479a04)[_0x2f82('0x8b')];let _0x2a6d9a=_0x378204?_0x4c96f1[_0x2f82('0x91')]-0x1:0x0;const _0x27de78=_0x378204?-0x1:0x1;for(;_0x4c96f1[_0x2a6d9a];){const _0x48318b=_0x4c96f1[_0x2a6d9a];if(_0x48318b[_0x2f82('0x3e')][_0x479a04]){const _0x1f356e=_0x378204?_0x48318b[_0x2f82('0x3e')][_0x479a04]['attributesBefore']:_0x48318b[_0x2f82('0x3e')][_0x479a04][_0x2f82('0xde')];_0x4aaf25[_0x2f82('0x8d')][_0x479a04]=_0x1f356e?_0x871c42(_0x1f356e):{};break;}_0x2a6d9a+=_0x27de78;}}for(const _0x34a856 of _0x4c96f1){_0x34a856[_0x2f82('0x93')]={};for(const _0x1f6119 of _0x34a856['authors'])_0x9e0d16['set'](_0x1f6119['id'],_0x1f6119);for(const _0x77caec of _0x2e614d){const _0x2b6959=_0x34a856[_0x2f82('0x3e')][_0x77caec]?_0x34a856['diffData'][_0x77caec][_0x2f82('0xa7')]:'[]',_0x4a5b30=_0x34a856[_0x2f82('0x3e')][_0x77caec]?_0x34a856[_0x2f82('0x3e')][_0x77caec][_0x2f82('0xba')]:'[]';_0x34a856[_0x2f82('0x93')][_0x77caec]={'insertions':this[_0x2f82('0x110')](_0x2b6959),'deletions':this[_0x2f82('0x110')](_0x4a5b30)};}}for(const _0x53f4d1 of _0x2e614d){let _0x3692d2=null,_0x2a90e1=0x0;const _0x1be5aa=new Map(Array[_0x2f82('0x2b')](_0x1161a5[_0x2f82('0x93')][_0x53f4d1][_0x2f82('0xa7')][_0x2f82('0x51')])[_0x2f82('0x3f')](([_0x368b0f])=>!_0x368b0f[_0x2f82('0x82')](_0x2f82('0x3d'))));let _0x251138=0x0;for(const _0x497be1 of _0x4c96f1){const _0xa2b54e=this[_0x2f82('0x116')](_0x497be1[_0x2f82('0x93')][_0x53f4d1][_0x2f82('0xa7')]);_0x497be1==_0x1161a5?(_0x3692d2=_0xa2b54e,_0x2a90e1=_0x3692d2[_0x2f82('0x91')],_0x3692d2[_0x2f82('0xdb')](_0xf826f7=>{_0xf826f7['id']=_0x251138++;}),this[_0x2f82('0x10c')](_0x3692d2)):this[_0x2f82('0xf7')](_0x3692d2,_0xa2b54e);const _0x1ef2cf=_0x3692d2[_0x2f82('0x3f')](_0x56d157=>!_0x56d157[_0x2f82('0x55')])[_0x2f82('0x23')](_0x1730b3=>_0x1730b3['id']);let _0x1fe6f8=0x0;const _0x3eeccb=this[_0x2f82('0x116')](_0x497be1['model'][_0x53f4d1][_0x2f82('0xba')]);_0x3eeccb[_0x2f82('0xdb')](_0x5145d8=>{_0x5145d8[_0x2f82('0x2')]?_0x5145d8['id']=_0x2a90e1++:_0x5145d8['id']=_0x1ef2cf[_0x1fe6f8++];}),this[_0x2f82('0x10c')](_0x3eeccb),this[_0x2f82('0x8e')](_0x3692d2,_0x2f82('0x55')),this['_setDistance'](_0x3eeccb,_0x2f82('0x2')),_0x497be1==_0x1161a5&&this['_markMarkers'](_0x3692d2,_0x1be5aa),_0x3692d2=this[_0x2f82('0xd1')](_0x3692d2,_0x3eeccb),this[_0x2f82('0x2a')](_0x3692d2),this[_0x2f82('0x8e')](_0x3692d2,_0x2f82('0x2'));}_0x3692d2=_0x3692d2[_0x2f82('0x3f')](_0x39cafc=>!(_0x39cafc[_0x2f82('0x55')]&&_0x39cafc[_0x2f82('0x2')]));const _0x3428fb=new Map(_0x5decf6[_0x2f82('0x93')][_0x53f4d1][_0x2f82('0xba')][_0x2f82('0x51')]),_0x4f2bd5=new Set(_0x1be5aa[_0x2f82('0xb5')]());for(const _0x223b04 of _0x3428fb[_0x2f82('0xb5')]())_0x4f2bd5[_0x2f82('0x28')](_0x223b04);this[_0x2f82('0xbb')](_0x3692d2,_0x4f2bd5),this['_fixObsoleteTags'](_0x3692d2),_0x3692d2=this[_0x2f82('0x123')](_0x3692d2),_0x3692d2=this[_0x2f82('0xdf')](_0x3692d2),_0x3692d2=this[_0x2f82('0x11e')](_0x3692d2);const {root:_0x5dcad3,changes:_0x2d5f4c}=this[_0x2f82('0xad')](_0x3692d2,_0x9e0d16,_0x53f4d1);_0x4aaf25[_0x2f82('0x93')][_0x53f4d1]=_0x5dcad3;const _0x3aa624=_0x3f4dda['get'](_0x53f4d1);if(_0x3aa624){const _0x5a7a15=_0x9e0d16['get'](_0x3aa624[_0x2f82('0x89')]),_0x4f93c3=new _0x112a6e({'author':_0x5a7a15,'type':_0x3aa624[_0x2f82('0x8b')]?_0x2f82('0x112'):_0x2f82('0x8a'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x53f4d1});_0x2d5f4c[_0x2f82('0xae')](_0x4f93c3),_0x4aaf25['attributes'][_0x53f4d1][_0x2f82('0xa3')]=_0x4f93c3['id'];}_0x4aaf25[_0x2f82('0x3a')]=_0x4aaf25['changes'][_0x2f82('0x31')](_0x2d5f4c);}return _0x4aaf25;}[_0x2f82('0xe1')](_0x216d6d,_0x149d5b){for(let _0x2a6cf4=0x0;_0x2a6cf4<_0x216d6d[_0x2f82('0x91')];_0x2a6cf4++)for(const [_0x15b090,_0x2594c4]of _0x149d5b)_0x2594c4['start'][_0x2f82('0x16')](_0x216d6d[_0x2a6cf4][_0x2f82('0x4e')])&&_0x216d6d[_0x2a6cf4]['markersStart'][_0x2f82('0x9d')](_0x15b090),_0x2594c4[_0x2f82('0x2f')][_0x2f82('0x16')](_0x216d6d[_0x2a6cf4][_0x2f82('0x115')])&&_0x216d6d[_0x2a6cf4][_0x2f82('0x99')][_0x2f82('0x9d')](_0x15b090);}[_0x2f82('0xd1')](_0x3ac542,_0x1500ec){let _0x8897d0=[],_0x36c11c=0x0,_0x57cc6d=0x0;for(;_0x36c11c<_0x3ac542[_0x2f82('0x91')]||_0x57cc6d<_0x1500ec[_0x2f82('0x91')];){const _0x56e44c=_0x3ac542[_0x36c11c]||{},_0x3a83c7=_0x1500ec[_0x57cc6d]||{};if(_0x56e44c['id']==_0x3a83c7['id'])_0x36c11c++,_0x57cc6d++,_0x8897d0[_0x2f82('0x9d')](_0x56e44c);else{if(_0x3a83c7[_0x2f82('0x2')]&&_0x56e44c['isAdded']){const {commonTape:_0x561302,iEnd:_0xafb488,jEnd:_0xb490af}=this['_threeWayMerge'](_0x3ac542,_0x36c11c,_0x1500ec,_0x57cc6d);_0x8897d0=_0x8897d0[_0x2f82('0x31')](_0x561302),_0x36c11c=_0xafb488,_0x57cc6d=_0xb490af;}else _0x3a83c7['isRemoved']?(_0x57cc6d++,_0x8897d0['push'](_0x3a83c7)):(_0x36c11c++,_0x8897d0[_0x2f82('0x9d')](_0x56e44c));}}return _0x8897d0;}[_0x2f82('0xbb')](_0x3467fa,_0x43a670){const _0xd23587=[];for(let _0x2a95e0=0x0;_0x2a95e0<_0x3467fa[_0x2f82('0x91')];_0x2a95e0++){for(let _0xf6adb6=0x0;_0xf6adb6<_0x3467fa[_0x2a95e0][_0x2f82('0x9a')][_0x2f82('0x91')];_0xf6adb6++){const _0x416d5b=_0x3467fa[_0x2a95e0]['markersStart'][_0xf6adb6];if(!_0x43a670[_0x2f82('0xa8')](_0x416d5b))continue;const {group:_0x335c3a,type:_0x11d01d,authorId:_0x2eeb62}=_0x58c4f8(_0x416d5b);_0x2f82('0xf2')!=_0x335c3a||_0x2f82('0x11c')!=_0x11d01d&&_0x2f82('0x8c')!=_0x11d01d||(_0xd23587[_0x2f82('0xae')]({'type':_0x11d01d,'name':_0x416d5b,'userId':_0x2eeb62}),_0x3467fa[_0x2a95e0][_0x2f82('0x9a')][_0x2f82('0xb0')](_0xf6adb6,0x1),_0xf6adb6--);}_0x1ce3b8(_0x3467fa[_0x2a95e0]);for(let _0x35bf9c=0x0;_0x35bf9c<_0x3467fa[_0x2a95e0][_0x2f82('0x99')]['length'];_0x35bf9c++){const _0x29e631=_0x3467fa[_0x2a95e0][_0x2f82('0x99')][_0x35bf9c];if(!_0x43a670[_0x2f82('0xa8')](_0x29e631))continue;const {group:_0x1ea600,type:_0x23858f}=_0x58c4f8(_0x29e631);if(_0x2f82('0xf2')!=_0x1ea600||'insertion'!=_0x23858f&&'deletion'!=_0x23858f)continue;_0x3467fa[_0x2a95e0][_0x2f82('0x99')][_0x2f82('0xb0')](_0x35bf9c,0x1),_0x35bf9c--;const _0x32e53e=_0xd23587['findIndex'](_0x41ac34=>_0x41ac34[_0x2f82('0xd7')]==_0x29e631);_0x32e53e>-0x1&&_0xd23587[_0x2f82('0xb0')](_0x32e53e,0x1);}}function _0x58c4f8(_0x40f924){const _0x23bd1d=_0x40f924['split'](':');return{'group':_0x23bd1d[0x0],'type':_0x23bd1d[0x1],'subType':_0x23bd1d[_0x2f82('0x91')]>=0x5?_0x23bd1d[0x2]:null,'id':_0x23bd1d[_0x2f82('0x91')]<0x5?_0x23bd1d[0x2]:_0x23bd1d[0x3],'authorId':_0x23bd1d[_0x2f82('0x91')]<0x5?_0x23bd1d[0x3]:_0x23bd1d[0x4],'markerCount':0x6==_0x23bd1d['length']?_0x23bd1d[0x5]:null};}function _0x1ce3b8(_0x5260da){for(let _0x17752a=0x0;_0x17752a<_0xd23587[_0x2f82('0x91')];_0x17752a++){if(_0x5260da[_0x2f82('0x55')]&&'insertion'==_0xd23587[_0x17752a]['type'])return _0x5260da[_0x2f82('0x10a')]=_0xd23587[_0x17752a],void delete _0x5260da[_0x2f82('0x55')];if(!_0x5260da['isAdded']&&!_0x5260da[_0x2f82('0x2')]&&_0x2f82('0x8c')==_0xd23587[_0x17752a][_0x2f82('0x37')])return void(_0x5260da[_0x2f82('0xfa')]=_0xd23587[_0x17752a]);}}}['_setDistance'](_0x4a406d,_0x2a5698){let _0x277496=0x0,_0x289d2b=!0x1;const _0x3915fe=new Map();for(const _0x4fec23 of _0x4a406d)_0x4fec23[_0x2a5698]?_0x289d2b&&(_0x277496++,_0x289d2b=!0x1):(_0x277496++,_0x289d2b=!0x0),_0x3915fe[_0x2f82('0x1b')](_0x4fec23['id'],_0x277496);for(let _0xb15387=0x0;_0xb15387<_0x4a406d[_0x2f82('0x91')];_0xb15387++){if(_0x2f82('0x2')==_0x2a5698&&_0x4a406d[_0xb15387][_0x2f82('0x55')]||'isAdded'==_0x2a5698&&_0x4a406d[_0xb15387]['isRemoved'])continue;if('text'==_0x4a406d[_0xb15387][_0x2f82('0x37')]){_0x4a406d[_0xb15387][_0x2f82('0xe')]=0x0;continue;}const _0x184631=_0x3915fe[_0x2f82('0x9c')](_0x4a406d[_0xb15387][_0x2f82('0xfd')]),_0xdd1537=_0x3915fe[_0x2f82('0x9c')](_0x4a406d[_0xb15387]['id']);_0x4a406d[_0xb15387]['distance']=_0x184631-_0xdd1537;}}[_0x2f82('0xd6')](_0x5c3b0f,_0x1bc239,_0x5165f6=!0x1){const _0x2444b5=[];let _0x56e947=this[_0x2f82('0xcb')][_0x2f82('0x44')](_0x5c3b0f),_0x52d503=this[_0x2f82('0xcb')][_0x2f82('0x44')](_0x1bc239);for(-0x1==_0x52d503&&(_0x52d503=this[_0x2f82('0xcb')][_0x2f82('0xaa')]['length'],_0x5165f6=!0x1);_0x56e947<_0x52d503;)_0x2444b5[_0x2f82('0x9d')](this[_0x2f82('0xcb')][_0x2f82('0xfb')](_0x56e947)),_0x56e947++;return _0x5165f6&&_0x2444b5[_0x2f82('0x9d')](this[_0x2f82('0xcb')][_0x2f82('0xfb')](_0x56e947)),_0x2444b5;}[_0x2f82('0x85')](_0x429ea0,_0x244239,_0x547179,_0x312c36){const _0x431629=this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0x2e')];let _0x478b21=_0x244239;for(;_0x429ea0[_0x478b21]&&_0x429ea0[_0x478b21][_0x2f82('0x55')];)_0x478b21++;let _0x284129=_0x312c36;for(;_0x547179[_0x284129]&&_0x547179[_0x284129][_0x2f82('0x2')];)_0x284129++;_0x524bc9(_0x429ea0,_0x244239,_0x478b21),_0x524bc9(_0x547179,_0x312c36,_0x284129);const _0x4babef=_0x547179[_0x2f82('0x2d')](_0x312c36,_0x284129)['concat'](_0x429ea0[_0x2f82('0x2d')](_0x244239,_0x478b21));return _0x4babef[_0x2f82('0x5c')]((_0x3f84da,_0x4276d0)=>_0x3f84da['side']!=_0x4276d0[_0x2f82('0xb9')]?_0x3f84da[_0x2f82('0xb9')]-_0x4276d0[_0x2f82('0xb9')]:_0x3f84da[_0x2f82('0x76')]!=_0x4276d0[_0x2f82('0x76')]?_0x3f84da['level']-_0x4276d0['level']:_0x3f84da[_0x2f82('0xe')]!=_0x4276d0[_0x2f82('0xe')]?_0x4276d0[_0x2f82('0xe')]-_0x3f84da['distance']:!!_0x3f84da[_0x2f82('0x55')]!=!!_0x4276d0['isAdded']?-0x1==_0x3f84da['side']||0x0==_0x3f84da['side']?_0x3f84da[_0x2f82('0x55')]?-0x1:0x1:_0x3f84da[_0x2f82('0x55')]?0x1:-0x1:_0x3f84da[_0x2f82('0xe2')]-_0x4276d0[_0x2f82('0xe2')]),{'commonTape':_0x4babef,'iEnd':_0x478b21,'jEnd':_0x284129};function _0x524bc9(_0x3a061f,_0x199496,_0xb49245){let _0x161fba=-0x1,_0x67dbb4=Number[_0x2f82('0x52')],_0x3ec7b5=!0x0;for(let _0x394cda=_0x199496;_0x394cda<_0xb49245;_0x394cda++)if(_0x431629['isInline'](_0x3a061f[_0x394cda][_0x2f82('0xc2')])||(_0x3ec7b5=!0x1),_0x3a061f[_0x394cda]['item'][_0x2f82('0x62')]<_0x199496&&(_0x161fba=_0x394cda),_0x3a061f[_0x394cda][_0x2f82('0xc2')][_0x2f82('0x49')]>=_0xb49245){_0x67dbb4=_0x394cda;break;}_0x3ec7b5&&(_0x161fba=_0xb49245-0x1);for(let _0x4d346e=_0x199496;_0x4d346e<_0xb49245;_0x4d346e++)_0x3a061f[_0x4d346e][_0x2f82('0xb9')]=_0x4d346e<=_0x161fba?-0x1:_0x4d346e<_0x67dbb4?0x0:0x1,_0x3a061f[_0x4d346e][_0x2f82('0xe2')]=_0x4d346e;let _0x204eec=0x0;for(let _0x1942be=_0x199496;_0x1942be<=_0x161fba;_0x1942be++)0x0==_0x3a061f[_0x1942be][_0x2f82('0xe')]?_0x3a061f[_0x1942be][_0x2f82('0x76')]=_0x204eec:(_0x204eec++,_0x3a061f[_0x1942be][_0x2f82('0x76')]=_0x204eec,_0x204eec++);for(let _0x258782=_0x199496;_0x258782<_0xb49245;_0x258782++)0x0==_0x3a061f[_0x258782]['side']&&(_0x3a061f[_0x258782][_0x2f82('0x76')]=_0x204eec);_0x204eec=0x0;for(let _0x3d4916=_0xb49245-0x1;_0x3d4916>=_0x67dbb4;_0x3d4916--)0x0==_0x3a061f[_0x3d4916][_0x2f82('0xe')]?_0x3a061f[_0x3d4916][_0x2f82('0x76')]=_0x204eec:(_0x204eec--,_0x3a061f[_0x3d4916][_0x2f82('0x76')]=_0x204eec,_0x204eec--);}}[_0x2f82('0x71')](_0x1c7f47){const _0x11062c=new Map(),_0x70c7f8=this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0x2e')];for(let _0x44c391=0x1;_0x44c391<_0x1c7f47[_0x2f82('0x91')];_0x44c391++){let _0x5a6321,_0x2f7c03,_0x2c29e0;const _0x4d2f91=_0x1c7f47[_0x44c391],_0x599c6c=_0x1c7f47[_0x44c391-0x1];if('text'==_0x4d2f91[_0x2f82('0x37')])continue;if(_0x4d2f91[_0x2f82('0x37')]!=_0x599c6c[_0x2f82('0x37')])continue;if(!_0x70c7f8[_0x2f82('0x6c')](_0x599c6c['item'])||_0x70c7f8[_0x2f82('0x45')](_0x599c6c[_0x2f82('0xc2')]))continue;if(!_0x70c7f8[_0x2f82('0x6c')](_0x4d2f91[_0x2f82('0xc2')])||_0x70c7f8[_0x2f82('0x45')](_0x4d2f91['item']))continue;if((_0x1c7f47[_0x44c391]['isAdded']||_0x1c7f47[_0x44c391]['isAddSuggestion'])&&_0x1c7f47[_0x44c391-0x1][_0x2f82('0x2')])_0x5a6321=_0x1c7f47[_0x44c391],_0x2f7c03=_0x1c7f47[_0x44c391-0x1],_0x2c29e0=_0x44c391-0x1;else{if(!_0x1c7f47[_0x44c391][_0x2f82('0x2')]||!_0x1c7f47[_0x44c391-0x1][_0x2f82('0x55')]&&!_0x1c7f47[_0x44c391-0x1]['isAddSuggestion'])continue;_0x5a6321=_0x1c7f47[_0x44c391-0x1],_0x2f7c03=_0x1c7f47[_0x44c391],_0x2c29e0=_0x44c391;}const _0x4c7524=_0x5a6321[_0x2f82('0x76')]==_0x2f7c03[_0x2f82('0x76')],_0xa627e7=Math[_0x2f82('0x4a')](_0x5a6321[_0x2f82('0x76')])<Math[_0x2f82('0x4a')](_0x2f7c03[_0x2f82('0x76')])&&0x0==_0x2f7c03[_0x2f82('0xe')];(_0x4c7524||_0xa627e7)&&(_0x11062c[_0x2f82('0x1b')](_0x2f7c03['id'],_0x5a6321['id']),_0x1c7f47[_0x2f82('0xb0')](_0x2c29e0,0x1),_0x44c391--,_0x5a6321[_0x2f82('0x55')]=!0x1);}for(let _0x323e6d=0x0;_0x323e6d<_0x1c7f47[_0x2f82('0x91')];_0x323e6d++)_0x11062c[_0x2f82('0xa8')](_0x1c7f47[_0x323e6d][_0x2f82('0xfd')])&&(_0x1c7f47[_0x323e6d][_0x2f82('0xfd')]=_0x11062c[_0x2f82('0x9c')](_0x1c7f47[_0x323e6d]['pairId']));}[_0x2f82('0x123')](_0x34b04e){const _0x1dbe2a=new Set(_0x34b04e[_0x2f82('0x23')](_0x2007ff=>_0x2007ff['id']));for(let _0x53caf6=0x0;_0x53caf6<_0x34b04e['length'];_0x53caf6++)_0x1dbe2a[_0x2f82('0xa8')](_0x34b04e[_0x53caf6][_0x2f82('0xfd')])||0x0==_0x34b04e[_0x53caf6][_0x2f82('0xe')]||(_0x34b04e[_0x53caf6]['isIncorrect']=!0x0);return _0x34b04e[_0x2f82('0x3f')](_0x22a661=>!_0x22a661['isIncorrect']);}[_0x2f82('0xdf')](_0x273550){const _0x17eee4=new Set();for(let _0x9406a0=0x0;_0x9406a0<_0x273550[_0x2f82('0x91')];_0x9406a0++){if(_0x17eee4['has'](_0x273550[_0x9406a0]['id'])&&_0x273550[_0x9406a0][_0x2f82('0x2')]&&(_0x273550[_0x9406a0][_0x2f82('0x21')]=!0x0),_0x273550[_0x9406a0][_0x2f82('0x21')])continue;if(0x0==_0x273550[_0x9406a0]['distance'])continue;if(_0x2f82('0x9')!=_0x273550[_0x9406a0][_0x2f82('0x37')])continue;if(null==_0x273550[_0x9406a0][_0x2f82('0xfd')])continue;let _0x413465=_0x9406a0+0x1,_0x408ef3=0x0;for(;_0x273550[_0x413465]['id']!=_0x273550[_0x9406a0][_0x2f82('0xfd')];)_0x2f82('0x9')==_0x273550[_0x413465][_0x2f82('0x37')]?_0x408ef3++:_0x2f82('0x65')==_0x273550[_0x413465][_0x2f82('0x37')]&&_0x408ef3--,_0x413465++;if(0x0!=_0x408ef3){if(_0x273550[_0x9406a0][_0x2f82('0x2')])_0x273550[_0x9406a0][_0x2f82('0x21')]=!0x0;else for(;_0x413465!=_0x9406a0;)_0x273550[_0x413465]['isRemoved']&&0x0!=_0x273550[_0x413465][_0x2f82('0xe')]&&(_0x273550[_0x413465]['isIncorrect']=!0x0,_0x17eee4['add'](_0x273550[_0x413465]['pairId'])),_0x413465--;}}return _0x273550[_0x2f82('0x3f')](_0x3e7102=>!_0x3e7102[_0x2f82('0x21')]);}['_removeUnsupportedChanges'](_0x66fcf8){const _0x202887=this[_0x2f82('0xf9')][_0x2f82('0x93')]['schema'];for(let _0x45b350=0x0;_0x45b350<_0x66fcf8[_0x2f82('0x91')];_0x45b350++){if(!(_0x66fcf8[_0x45b350]['isAdded']||_0x66fcf8[_0x45b350][_0x2f82('0x10a')]||_0x66fcf8[_0x45b350][_0x2f82('0x2')]||_0x66fcf8[_0x45b350][_0x2f82('0xfa')]))continue;if(0x0==_0x66fcf8[_0x45b350][_0x2f82('0xe')])continue;const _0x2d2fc7=_0x66fcf8[_0x45b350][_0x2f82('0xc2')];_0x202887['isBlock'](_0x2d2fc7)||_0x202887['isLimit'](_0x2d2fc7)||(_0x66fcf8[_0x45b350][_0x2f82('0x55')]&&delete _0x66fcf8[_0x45b350][_0x2f82('0x55')],_0x66fcf8[_0x45b350]['isAddSuggestion']&&delete _0x66fcf8[_0x45b350][_0x2f82('0x10a')],_0x66fcf8[_0x45b350]['isRemoveSuggestion']&&delete _0x66fcf8[_0x45b350][_0x2f82('0xfa')],_0x66fcf8[_0x45b350][_0x2f82('0x2')]&&(_0x66fcf8[_0x45b350][_0x2f82('0x21')]=!0x0));}return _0x66fcf8[_0x2f82('0x3f')](_0x5204aa=>!_0x5204aa['isIncorrect']);}['_makeModelFromTape'](_0x44dcb1,_0x4374a7,_0x2c39fb){const _0x12b982=new _0x4e1681(),_0x4c6b21=[],_0x2eebac=new Map(),_0x3c8abe=this[_0x2f82('0xf9')][_0x2f82('0x93')],_0x5af9aa=_0x3c8abe[_0x2f82('0x2e')],_0x126bfe=[_0x12b982],_0x5640f1={},_0x4c8941={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4208b7=null;const _0x3fd4a4=[0x0];for(let _0x5c292d=0x0;_0x5c292d<_0x44dcb1[_0x2f82('0x91')];_0x5c292d++){let _0xa80214,_0x573ea8;if('elementStart'===_0x44dcb1[_0x5c292d][_0x2f82('0x37')]){_0xa80214=_0x3c8abe[_0x2f82('0x38')](_0x12b982,_0x3fd4a4);const _0x4ec63e=new _0x1f608f(_0x44dcb1[_0x5c292d]['item'][_0x2f82('0xd7')],_0x44dcb1[_0x5c292d]['item'][_0x2f82('0x97')]());_0x126bfe[0x0][_0x2f82('0x58')](_0x4ec63e),_0x3fd4a4[_0x2f82('0x9d')](0x0),_0x126bfe[_0x2f82('0xae')](_0x4ec63e),_0x573ea8=_0x3c8abe[_0x2f82('0x38')](_0x12b982,_0x3fd4a4),_0x4208b7=null;}else{if(_0x2f82('0x65')===_0x44dcb1[_0x5c292d][_0x2f82('0x37')])_0x126bfe['shift'](),_0xa80214=_0x3c8abe[_0x2f82('0x38')](_0x12b982,_0x3fd4a4),_0x3fd4a4[_0x2f82('0xc3')](),_0x3fd4a4[_0x3fd4a4[_0x2f82('0x91')]-0x1]++,_0x573ea8=_0x3c8abe[_0x2f82('0x38')](_0x12b982,_0x3fd4a4),_0x4208b7=null;else{if(_0xa80214=_0x3c8abe[_0x2f82('0x38')](_0x12b982,_0x3fd4a4),_0x4208b7&&_0x283ac3(_0x4208b7,_0x44dcb1[_0x5c292d][_0x2f82('0xc2')]))_0x4208b7['_data']+=_0x44dcb1[_0x5c292d]['item'][_0x2f82('0xd5')];else{const _0x16e10e=new _0x2f2a4a(_0x44dcb1[_0x5c292d]['item'][_0x2f82('0xd5')],_0x44dcb1[_0x5c292d][_0x2f82('0xc2')]['getAttributes']());_0x126bfe[0x0][_0x2f82('0x58')](_0x16e10e),_0x4208b7=_0x16e10e;}_0x3fd4a4[_0x3fd4a4[_0x2f82('0x91')]-0x1]+=_0x44dcb1[_0x5c292d][_0x2f82('0xc2')][_0x2f82('0xf6')],_0x573ea8=_0x3c8abe[_0x2f82('0x38')](_0x12b982,_0x3fd4a4);}}for(const _0x91c170 of _0x44dcb1[_0x5c292d][_0x2f82('0x9a')])_0x2eebac[_0x2f82('0x1b')](_0x91c170,{'start':_0xa80214,'end':null});_0x41f22a(_0x2f82('0xfa'),_0x5c292d,_0xa80214,_0x573ea8),_0x41f22a(_0x2f82('0x10a'),_0x5c292d,_0xa80214,_0x573ea8),_0x41f22a(_0x2f82('0x2'),_0x5c292d,_0xa80214,_0x573ea8),_0x41f22a('isAdded',_0x5c292d,_0xa80214,_0x573ea8);for(const _0x12d2f2 of _0x44dcb1[_0x5c292d][_0x2f82('0x99')]){_0x2eebac['get'](_0x12d2f2)['end']=_0x573ea8;}}for(const [_0x46af31,_0xb84992]of _0x2eebac){const _0x3dff3f=this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0x10b')](_0xb84992[_0x2f82('0x6e')],_0xb84992['end']);_0x12b982['markers']['set'](_0x46af31,_0x3dff3f);}return _0x4c6b21['sort']((_0x578894,_0x3977fd)=>{const _0x2440f7=_0x12b982[_0x2f82('0x51')][_0x2f82('0x9c')]('revision:'+_0x578894['id']),_0x29039a=_0x12b982[_0x2f82('0x51')][_0x2f82('0x9c')]('revision:'+_0x3977fd['id']);return _0x2440f7['start'][_0x2f82('0x1f')](_0x29039a['start'])?-0x1:_0x2440f7['start'][_0x2f82('0x4')](_0x29039a[_0x2f82('0x6e')])?0x1:_0x2440f7[_0x2f82('0x2f')][_0x2f82('0x1f')](_0x29039a['end'])?-0x1:_0x2440f7[_0x2f82('0x2f')][_0x2f82('0x4')](_0x29039a[_0x2f82('0x2f')])?0x1:_0x2f82('0x112')===_0x578894[_0x2f82('0x37')]?-0x1:0x1;}),{'root':_0x12b982,'changes':_0x4c6b21};function _0x41f22a(_0x254aae,_0x57888e,_0x12f856,_0x38c29f){const _0x5dc648=!!_0x44dcb1[_0x57888e][_0x254aae],_0x1ba2b3=_0x5dc648?_0x44dcb1[_0x57888e][_0x254aae][_0x2f82('0x89')]:null,_0x537d59=_0x57888e===_0x44dcb1[_0x2f82('0x91')]-0x1,_0x478cac=_0x4c8941[_0x254aae][0x0],_0x2ad59f=_0x5af9aa[_0x2f82('0x50')](_0x44dcb1[_0x57888e][_0x2f82('0xc2')]);!_0x5640f1[_0x254aae]&&_0x5dc648?_0x5640f1[_0x254aae]={'start':_0x12f856,'tapeItem':_0x44dcb1[_0x57888e],'userId':_0x1ba2b3,'type':_0x254aae}:_0x5640f1[_0x254aae]&&!_0x5dc648?(_0x5640f1[_0x254aae][_0x2f82('0x2f')]=_0x12f856,_0x49a213(_0x5640f1[_0x254aae]),_0x5640f1[_0x254aae]=null):_0x5640f1[_0x254aae]&&_0x5dc648&&_0x5640f1[_0x254aae][_0x2f82('0x89')]!==_0x1ba2b3&&(_0x5640f1[_0x254aae][_0x2f82('0x2f')]=_0x12f856,_0x478cac&&_0x478cac[_0x2f82('0x89')]===_0x5640f1[_0x254aae][_0x2f82('0x89')]||_0x49a213(_0x5640f1[_0x254aae]),_0x5640f1[_0x254aae]={'start':_0x12f856,'tapeItem':_0x44dcb1[_0x57888e],'userId':_0x1ba2b3,'type':_0x254aae}),_0x5640f1[_0x254aae]&&_0x2ad59f&&(_0x2f82('0x9')!==_0x44dcb1[_0x57888e]['type']||_0x478cac&&_0x478cac[_0x2f82('0x89')]===_0x1ba2b3||_0x4c8941[_0x254aae][_0x2f82('0xae')]({'userId':_0x1ba2b3,'object':_0x44dcb1[_0x57888e][_0x2f82('0xc2')],'change':_0x5640f1[_0x254aae]}),'elementEnd'===_0x44dcb1[_0x57888e]['type']&&_0x478cac&&_0x478cac[_0x2f82('0xc4')]===_0x44dcb1[_0x57888e]['item']&&(_0x4c8941[_0x254aae][_0x2f82('0x79')](),_0x5640f1[_0x254aae]=_0x478cac[_0x2f82('0xd0')])),_0x5640f1[_0x254aae]&&_0x537d59&&(_0x5640f1[_0x254aae][_0x2f82('0x2f')]=_0x38c29f,_0x49a213(_0x5640f1[_0x254aae]),_0x5640f1[_0x254aae]=null);}function _0x49a213({start:_0x5208c3,end:_0x2299c5,tapeItem:_0x378347,userId:_0x28d0d4,type:_0x3f2d42}){const _0x41d325=_0x378347[_0x2f82('0xc2')],_0x5c09c5=_0x3c8abe[_0x2f82('0x2e')][_0x2f82('0x6c')](_0x41d325)&&!_0x3c8abe['schema'][_0x2f82('0x45')](_0x41d325),_0x29239b=_0x5208c3[_0x2f82('0x10e')]==_0x2299c5[_0x2f82('0x3c')]&&_0x2299c5[_0x2f82('0xd4')];if(_0x5c09c5&&_0x29239b)return;const _0x8b3fd4=_0x3c8abe['createRange'](_0x5208c3,_0x2299c5),_0x2559aa=_0x4374a7[_0x2f82('0x9c')](_0x28d0d4),_0x21a2cd=new _0x112a6e({'author':_0x2559aa,'type':_0x2f82('0x55')==_0x3f2d42||'isAddSuggestion'==_0x3f2d42?_0x2f82('0x112'):_0x2f82('0x8a'),'data':{'isSuggestion':_0x2f82('0x10a')==_0x3f2d42||_0x2f82('0xfa')==_0x3f2d42},'createdAt':new Date(),'rootName':_0x2c39fb});_0x4c6b21[_0x2f82('0x9d')](_0x21a2cd),_0x12b982[_0x2f82('0x51')][_0x2f82('0x1b')]('revision:'+_0x21a2cd['id'],_0x8b3fd4);}function _0x283ac3(_0x288c8b,_0x21f113){const _0x480a49=_0x288c8b['getAttributes'](),_0xd3ecc3=_0x21f113['getAttributes']();for(const _0x46e54e of _0x480a49){if(_0x46e54e[0x1]!==_0x21f113[_0x2f82('0xee')](_0x46e54e[0x0]))return!0x1;_0xd3ecc3[_0x2f82('0x120')]();}return _0xd3ecc3[_0x2f82('0x120')]()['done'];}}['_setConversion'](){this[_0x2f82('0xf9')][_0x2f82('0x1e')][_0x2f82('0xda')](_0x2f82('0xc0'))[_0x2f82('0xa5')]({'view':_0x2f82('0x18')}),this[_0x2f82('0xf9')][_0x2f82('0x1e')][_0x2f82('0xda')](_0x2f82('0xbf'))[_0x2f82('0x8')]({'model':_0x2f82('0x18'),'view':_0x1fbb18=>{const _0xd72b41=_0x1fbb18['markerName'][_0x2f82('0x14')](':')[0x1],_0x927894=this[_0x2f82('0xd2')](_0xd72b41);if(!_0x927894)return null;const _0x5836a9='add'==_0x927894['type']?_0x2f82('0x11c'):_0x2f82('0x8c'),_0x40262e=[_0x2f82('0xb3'),_0x2f82('0x107')+_0x5836a9];return _0x927894[_0x2f82('0xd5')]['isSuggestion']&&_0x40262e[_0x2f82('0x9d')](_0x2f82('0x107')+_0x5836a9+_0x2f82('0xce')),this[_0x2f82('0x7f')]==_0x927894&&_0x40262e[_0x2f82('0x9d')](_0x2f82('0xcd')),{'classes':_0x40262e,'attributes':{'data-change-id':_0xd72b41}};}}),this[_0x2f82('0xf9')][_0x2f82('0x1e')][_0x2f82('0xda')](_0x2f82('0xc0'))['add'](_0x36d046=>{_0x36d046['on']('element:pre',(_0x4b5f63,_0x39f8e2,_0x5a8676)=>{const _0x3f3f5f=_0x39f8e2[_0x2f82('0x6d')][_0x2f82('0x108')](0x0);if(!_0x3f3f5f||!_0x3f3f5f['is'](_0x2f82('0xca'),_0x2f82('0x26')))return;if(!_0x5a8676[_0x2f82('0x1d')][_0x2f82('0x22')](_0x3f3f5f,{'attributes':[_0x2f82('0x35'),_0x2f82('0x94')]}))return;const _0xc190e6=_0x39f8e2[_0x2f82('0x104')][_0x2f82('0x6e')][_0x2f82('0x10e')];_0x5a8676[_0x2f82('0x88')][_0x2f82('0x43')](_0x2f82('0x35'),_0x3f3f5f[_0x2f82('0xee')](_0x2f82('0x35')),_0xc190e6),_0x5a8676[_0x2f82('0x88')]['setAttribute'](_0x2f82('0x94'),_0x3f3f5f[_0x2f82('0xee')](_0x2f82('0x94')),_0xc190e6);},{'priority':_0x2f82('0x61')});}),this['editor'][_0x2f82('0x1e')]['for']('upcast')[_0x2f82('0x112')](_0x333503=>{_0x333503['on'](_0x2f82('0xca'),(_0x4ac6bf,_0x23f50e,_0x43321b)=>{if(!_0x43321b[_0x2f82('0x1d')][_0x2f82('0x22')](_0x23f50e[_0x2f82('0x6d')],{'attributes':['vid_start',_0x2f82('0x94')]}))return;if(_0x23f50e[_0x2f82('0x104')][_0x2f82('0x39')])return;const _0x5e36d4=_0x23f50e[_0x2f82('0x104')][_0x2f82('0x6e')]['nodeAfter'];_0x5e36d4['hasAttribute'](_0x2f82('0x35'))||_0x5e36d4[_0x2f82('0xb1')]('vid')||(_0x43321b[_0x2f82('0x88')][_0x2f82('0x43')]('vid_start',_0x23f50e['viewItem']['getAttribute'](_0x2f82('0x35')),_0x5e36d4),_0x43321b[_0x2f82('0x88')][_0x2f82('0x43')](_0x2f82('0x94'),_0x23f50e[_0x2f82('0x6d')]['getAttribute'](_0x2f82('0x94')),_0x5e36d4));},{'priority':_0x2f82('0x61')});}),this[_0x2f82('0xf9')][_0x2f82('0x1e')][_0x2f82('0xda')]('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x2f82('0x4b'),'value':_0x313cca=>_0x313cca[_0x2f82('0xee')](_0x2f82('0x4b'))}}),this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0x2e')]['on'](_0x2f82('0x5b'),(_0x3258b6,[,_0x50dc15])=>{['vid_start',_0x2f82('0x94'),'vid'][_0x2f82('0xcc')](_0x50dc15)&&(_0x3258b6[_0x2f82('0x17')]=!0x0,_0x3258b6[_0x2f82('0xa2')]());},{'priority':'highest'}),this[_0x2f82('0xf9')][_0x2f82('0x1e')][_0x2f82('0xda')](_0x2f82('0xb4'))[_0x2f82('0x112')](_0x196587=>{_0x196587['on'](_0x2f82('0x47'),(_0x271694,_0x42b848,_0x319a1e)=>{if('\x20'!=_0x42b848[_0x2f82('0xc2')][_0x2f82('0xd5')]||_0x42b848[_0x2f82('0xc2')][_0x2f82('0x3c')][_0x2f82('0x9b')]>0x1)return;if(!_0x319a1e[_0x2f82('0x1d')]['consume'](_0x42b848[_0x2f82('0xc2')],_0x271694[_0x2f82('0xd7')]))return;const _0x54fb4b=_0x319a1e[_0x2f82('0x88')],_0x384acd=_0x319a1e['mapper']['toViewRange'](_0x42b848[_0x2f82('0xdd')]);_0x54fb4b[_0x2f82('0xef')](_0x384acd,_0x54fb4b[_0x2f82('0x95')]('span'));});}),this[_0x2f82('0xf9')][_0x2f82('0x1e')][_0x2f82('0xda')]('dataDowncast')['markerToData']({'model':_0x2f82('0x18')}),this[_0x2f82('0xf9')][_0x2f82('0x7')][_0x2f82('0x15')]['on']('addMarker:revision',function(_0x4e181e){const _0x4556ae=_0x4e181e[_0x2f82('0x70')][_0x2f82('0x9c')](_0x2f82('0xf'));return(_0x16139a,_0x3d6c1c,_0x5f4483)=>{const _0x334b18=_0x3d6c1c['markerName']['split'](':')[0x1],_0x1aed96=_0x4556ae[_0x2f82('0xd2')](_0x334b18);if(!_0x1aed96)return null;const _0x40491c=_0x2f82('0x112')==_0x1aed96[_0x2f82('0x37')]?'split':_0x2f82('0x117');if(!_0x5f4483[_0x2f82('0x1d')][_0x2f82('0xc5')](_0x3d6c1c[_0x2f82('0xb2')],_0x16139a[_0x2f82('0xd7')]))return;const _0x3c74a6=_0x3d6c1c[_0x2f82('0xb2')][_0x2f82('0x2c')](),_0x3aa5a6=_0x3d6c1c[_0x2f82('0xb2')][_0x2f82('0x6e')],_0x14932c=_0x4e181e['model'][_0x2f82('0x2e')];let _0x583fdc=null,_0x2e0448=null,_0x4ec761=!0x1,_0x3543b0=!0x1;for(const _0x211a1f of _0x3c74a6){const _0x2e8d8f=_0x211a1f[_0x2f82('0xc2')];_0x4ec761=_0x4ec761||_0x14932c[_0x2f82('0x20')](_0x2e8d8f);const _0x293099=_0x5f4483['mapper'][_0x2f82('0x40')](_0x2e8d8f);if(_0x293099&&_0x293099['getCustomProperty'](_0x2f82('0x11b')))return;_0x2f82('0x65')==_0x211a1f[_0x2f82('0x37')]&&(_0x14932c[_0x2f82('0x6c')](_0x2e8d8f)&&!_0x14932c[_0x2f82('0x45')](_0x2e8d8f)&&(_0x2e8d8f['nextSibling']||_0x3aa5a6['isAtEnd']?_0x583fdc&&_0x583fdc[_0x2f82('0x3c')]==_0x2e8d8f||(_0x583fdc=_0x2e8d8f,_0x5905c1(_0x211a1f[_0x2f82('0x4e')]),_0x3543b0=!0x0):_0x2e0448=_0x2e0448||_0x211a1f[_0x2f82('0x4e')]));}function _0x5905c1(_0x41f960){const _0x4e1629=_0x5f4483['writer'][_0x2f82('0x9f')]('span',{'class':_0x2f82('0x107')+_0x40491c}),_0x2a7066=_0x5f4483[_0x2f82('0x53')][_0x2f82('0x10')](_0x41f960);_0x1aed96['data'][_0x2f82('0x36')]&&_0x5f4483[_0x2f82('0x88')][_0x2f82('0x5d')](_0x2f82('0x107')+_0x40491c+_0x2f82('0xce'),_0x4e1629),_0x4556ae[_0x2f82('0x7f')]==_0x1aed96&&_0x5f4483['writer'][_0x2f82('0x5d')]('ck-suggestion-marker--active',_0x4e1629),_0x5f4483[_0x2f82('0x88')][_0x2f82('0xc7')](_0x2a7066,_0x4e1629),_0x5f4483[_0x2f82('0x53')][_0x2f82('0x7e')](_0x4e1629,_0x3d6c1c[_0x2f82('0xd9')]);}_0x4ec761||_0x3543b0||!_0x2e0448||_0x5905c1(_0x2e0448);};}(this[_0x2f82('0xf9')]),{'priority':_0x2f82('0x3b')}),this[_0x2f82('0xf9')][_0x2f82('0x7')][_0x2f82('0x15')]['on']('removeMarker:revision',(_0x3b06da,_0x5d27a2,_0x31bd05)=>{const _0x359844=_0x31bd05[_0x2f82('0x53')][_0x2f82('0x29')](_0x5d27a2[_0x2f82('0xd9')]);if(_0x359844)for(const _0x541d9a of _0x359844)(_0x541d9a[_0x2f82('0xb8')](_0x2f82('0x74'))||_0x541d9a['hasClass'](_0x2f82('0xf3')))&&(_0x31bd05[_0x2f82('0x53')][_0x2f82('0x33')](_0x541d9a,_0x5d27a2[_0x2f82('0xd9')]),_0x31bd05[_0x2f82('0x88')][_0x2f82('0x8a')](_0x541d9a));},{'priority':'high'}),this[_0x2f82('0xf9')][_0x2f82('0x7')]['downcastDispatcher']['on'](_0x2f82('0x30'),(_0x5d4f81,_0x51998c,_0x4596ce)=>{const _0x2e2684=_0x51998c['markerName'][_0x2f82('0x14')](':')[0x1],_0x5e0e82=this[_0x2f82('0xd2')](_0x2e2684);if(!_0x5e0e82)return null;const _0x32fe8e=_0x2f82('0x112')==_0x5e0e82[_0x2f82('0x37')]?_0x2f82('0x14'):_0x2f82('0x117');if(_0x4596ce['consumable'][_0x2f82('0xc5')](_0x51998c[_0x2f82('0xb2')],_0x5d4f81[_0x2f82('0xd7')]))for(const _0x4f09c4 of _0x51998c['markerRange'][_0x2f82('0x114')]()){if(!_0x4f09c4['is'](_0x2f82('0xca'),_0x2f82('0xc')))continue;const _0x417a53=_0x4596ce[_0x2f82('0x88')][_0x2f82('0x9f')](_0x2f82('0x96'),{'class':_0x2f82('0x107')+_0x32fe8e}),_0xf92f72=_0x4596ce['mapper'][_0x2f82('0x10')](this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0x34')](_0x4f09c4));_0x5e0e82[_0x2f82('0xd5')][_0x2f82('0x36')]&&_0x4596ce[_0x2f82('0x88')]['addClass'](_0x2f82('0x107')+_0x32fe8e+_0x2f82('0xce'),_0x417a53),this[_0x2f82('0x7f')]==_0x5e0e82&&_0x4596ce[_0x2f82('0x88')]['addClass'](_0x2f82('0xcd'),_0x417a53),_0x4596ce[_0x2f82('0x88')][_0x2f82('0xc7')](_0xf92f72,_0x417a53),_0x4596ce[_0x2f82('0x53')][_0x2f82('0x7e')](_0x417a53,_0x51998c[_0x2f82('0xd9')]);}},{'priority':_0x2f82('0x3b')}),this[_0x2f82('0xf9')]['model'][_0x2f82('0xfc')]['on'](_0x2f82('0xd0'),()=>{this[_0x2f82('0xf9')][_0x2f82('0x7')][_0x2f82('0x13')]['change'](_0x183212=>{for(const _0x131662 of this['editor'][_0x2f82('0x93')]['document'][_0x2f82('0xe8')]()){const _0xfa4e61=this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0xfc')]['getRoot'](_0x131662),_0x27646d=this[_0x2f82('0xf9')][_0x2f82('0x7')][_0x2f82('0x13')][_0x2f82('0xfc')][_0x2f82('0x5a')](_0x131662);if(_0x27646d){const _0x185691=_0xfa4e61[_0x2f82('0xee')](_0x2f82('0xa3'));if(_0x183212['removeAttribute'](_0x2f82('0xf4'),_0x27646d),_0x183212[_0x2f82('0x75')](_0x2f82('0x7a'),_0x27646d),_0x183212['removeClass']('ck-revision-history-root-remove',_0x27646d),_0x183212['removeClass'](_0x2f82('0x41'),_0x27646d),_0x185691){const _0x2b54d6=this['_getChangeFromId'](_0x185691);if(!_0x2b54d6)return null;_0x183212[_0x2f82('0x43')](_0x2f82('0xf4'),_0x185691,_0x27646d),_0x183212[_0x2f82('0x5d')](_0x2f82('0xbd')+_0x2b54d6[_0x2f82('0x37')],_0x27646d),this[_0x2f82('0x7f')]==_0x2b54d6&&_0x183212[_0x2f82('0x5d')](_0x2f82('0x41'),_0x27646d);}}}});}),this[_0x2f82('0xf9')]['conversion'][_0x2f82('0xda')](_0x2f82('0xc0'))[_0x2f82('0xa5')]({'view':_0x2f82('0x6'),'model':_0x3c1335=>_0x2f82('0x4d')+_0x3c1335,'converterPriority':_0x2f82('0x12')}),this[_0x2f82('0xf9')][_0x2f82('0x1e')][_0x2f82('0xda')](_0x2f82('0xc0'))[_0x2f82('0xa5')]({'view':_0x2f82('0x109'),'model':_0x4fceed=>_0x2f82('0xa4')+_0x4fceed,'converterPriority':_0x2f82('0x12')}),this[_0x2f82('0xf9')][_0x2f82('0x1e')][_0x2f82('0xda')](_0x2f82('0xb4'))[_0x2f82('0x68')]({'model':_0x2f82('0xf2'),'view':_0x4ea899=>({'name':_0x2f82('0x42')+_0x4ea899,'group':_0x2f82('0xf2')}),'converterPriority':_0x2f82('0x12')}),this[_0x2f82('0xf9')]['conversion'][_0x2f82('0xda')](_0x2f82('0xbf'))[_0x2f82('0x8')]({'model':'revision-suggestion','view':_0x61e92e=>{const _0x311343=_0x61e92e[_0x2f82('0xd9')][_0x2f82('0x14')](':')[0x1];return'insertion'!=_0x311343&&_0x2f82('0x8c')!=_0x311343?null:{'classes':[_0x2f82('0xb6'),_0x2f82('0xdc')+_0x311343]};}}),this[_0x2f82('0xf9')]['editing'][_0x2f82('0x15')]['on'](_0x2f82('0xea'),Z(this['editor'],_0x2f82('0x117')),{'priority':'high'}),this[_0x2f82('0xf9')][_0x2f82('0x7')][_0x2f82('0x15')]['on'](_0x2f82('0x11'),Z(this[_0x2f82('0xf9')],_0x2f82('0x14')),{'priority':_0x2f82('0x3b')}),this['editor'][_0x2f82('0x7')]['downcastDispatcher']['on'](_0x2f82('0x1c'),(_0x5c51dc,_0x242b18,_0x57d5d4)=>{const _0x4aba62=_0x57d5d4['mapper']['markerNameToElements'](_0x242b18[_0x2f82('0xd9')]);if(_0x4aba62)for(const _0x235c18 of _0x4aba62)_0x235c18['is'](_0x2f82('0x77'))&&(_0x57d5d4[_0x2f82('0x53')][_0x2f82('0x33')](_0x235c18,_0x242b18[_0x2f82('0xd9')]),_0x57d5d4['writer'][_0x2f82('0x8a')](_0x235c18));},{'priority':_0x2f82('0x3b')});}[_0x2f82('0xd2')](_0x3dff4a){return this[_0x2f82('0x100')][_0x2f82('0x9c')](_0x3dff4a);}[_0x2f82('0xaf')](_0x562d5a){return this['_changeView']&&this[_0x2f82('0xc6')]['destroy'](),this[_0x2f82('0xc6')]=new _0x2e7d64(this[_0x2f82('0xf9')][_0x2f82('0xe6')],_0x562d5a),this[_0x2f82('0xc6')];}[_0x2f82('0xe0')](){this[_0x2f82('0xf9')]['model'][_0x2f82('0xfc')]['selection'][_0x2f82('0xb')](_0x2f82('0x18')),this['on'](_0x2f82('0x10d'),(_0x875d76,_0x25331d,_0x93c154,_0x47c221)=>{_0x47c221&&this[_0x2f82('0x7d')][_0x2f82('0x8a')](_0x47c221),_0x93c154&&(this[_0x2f82('0x7d')][_0x2f82('0x112')]({'view':_0x93c154,'stackId':_0x2f82('0xc8'),'position':{'target':()=>{const _0x430399=this[_0x2f82('0xf9')][_0x2f82('0x7')],_0x4d1b88=this[_0x2f82('0xd2')](_0x93c154[_0x2f82('0x92')]);let _0x51333f;if(_0x4d1b88[_0x2f82('0xd5')][_0x2f82('0xbe')]){const _0x540494=_0x430399[_0x2f82('0x13')][_0x2f82('0xa6')](_0x4d1b88[_0x2f82('0x119')]);_0x51333f=Array[_0x2f82('0x2b')](_0x540494['getClientRects']());}else{const _0x56298b=this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0x51')][_0x2f82('0x9c')](_0x2f82('0x3d')+_0x93c154[_0x2f82('0x92')]);_0x51333f=Array[_0x2f82('0x2b')](_0x430399['mapper'][_0x2f82('0x29')](_0x56298b[_0x2f82('0xd7')]))['map'](_0x3221d9=>_0x430399[_0x2f82('0x13')]['domConverter'][_0x2f82('0x59')](_0x3221d9))[_0x2f82('0x23')](_0x4209ec=>Array[_0x2f82('0x2b')](_0x4209ec[_0x2f82('0x72')]()))[_0x2f82('0x56')]();}if(!this[_0x2f82('0x6a')])return _0x51333f[0x0];return _0x51333f[_0x2f82('0x73')](_0x25da0a=>_0x25da0a[_0x2f82('0x11d')]-0x3<=this[_0x2f82('0x6a')]['y']&&_0x25da0a[_0x2f82('0xc1')]+0x3>=this[_0x2f82('0x6a')]['y']&&_0x25da0a[_0x2f82('0x8f')]-0x3<=this[_0x2f82('0x6a')]['x']&&_0x25da0a['right']+0x3>=this[_0x2f82('0x6a')]['x'])||_0x51333f[0x0];}}}),this['_balloon']['showStack'](_0x2f82('0xc8')));}),this['on'](_0x2f82('0x6f'),(_0x3441f3,_0x4173af,_0x2320e1,_0x3862bb)=>{this[_0x2f82('0xac')]=_0x2320e1?this[_0x2f82('0xaf')](_0x2320e1):null,this['editor'][_0x2f82('0x93')][_0x2f82('0xd0')](()=>{const _0x5b218b=this['editor'][_0x2f82('0x7')];_0x3862bb&&(_0x3862bb[_0x2f82('0xd5')][_0x2f82('0xbe')]?_0x5b218b['view'][_0x2f82('0xd0')](_0x2cba70=>{_0x2cba70[_0x2f82('0x75')](_0x2f82('0x41'),_0x5b218b[_0x2f82('0x13')][_0x2f82('0xfc')][_0x2f82('0x5a')](_0x3862bb[_0x2f82('0x119')]));}):_0x5b218b[_0x2f82('0x5e')](_0x2f82('0x3d')+_0x3862bb['id'])),_0x2320e1&&(_0x2320e1[_0x2f82('0xd5')][_0x2f82('0xbe')]?_0x5b218b[_0x2f82('0x13')][_0x2f82('0xd0')](_0x3ef66d=>{_0x3ef66d['addClass'](_0x2f82('0x41'),_0x5b218b[_0x2f82('0x13')][_0x2f82('0xfc')]['getRoot'](_0x2320e1['rootName']));}):_0x5b218b['reconvertMarker'](_0x2f82('0x3d')+_0x2320e1['id']));});}),this[_0x2f82('0x48')](this[_0x2f82('0xf9')][_0x2f82('0x7')][_0x2f82('0x13')][_0x2f82('0xfc')],_0x2f82('0xeb'),(_0x57e874,_0x515292)=>{if(this[_0x2f82('0x7f')])return;const _0x3fbaf2=this[_0x2f82('0x10f')](_0x515292[_0x2f82('0xff')]),_0x28d59d=this[_0x2f82('0x100')]['get'](_0x3fbaf2);_0x28d59d?(this[_0x2f82('0x6a')]={'x':_0x515292[_0x2f82('0x111')]['x'],'y':_0x515292[_0x2f82('0x111')]['y']},this[_0x2f82('0xac')]=this[_0x2f82('0xaf')](_0x28d59d)):(this[_0x2f82('0x6a')]=null,this[_0x2f82('0xac')]=null);}),this[_0x2f82('0x48')](this[_0x2f82('0xf9')][_0x2f82('0x7')][_0x2f82('0x13')][_0x2f82('0xfc')],_0x2f82('0xe4'),(_0x50254e,_0x14bd17)=>{const _0x4bb116=this[_0x2f82('0x10f')](_0x14bd17[_0x2f82('0xff')]),_0x134773=this[_0x2f82('0x100')]['get'](_0x4bb116);_0x134773?(this[_0x2f82('0x6a')]={'x':_0x14bd17[_0x2f82('0x111')]['x'],'y':_0x14bd17[_0x2f82('0x111')]['y']},_0x134773===this['activeChange']?this['_balloon'][_0x2f82('0x5f')]():this[_0x2f82('0x7f')]=_0x134773):(this[_0x2f82('0x6a')]=null,this[_0x2f82('0x7f')]=null);});}[_0x2f82('0x10f')](_0x395246){do{const _0x3a99fd=_0x395246[_0x2f82('0xee')](_0x2f82('0xf4'));if(_0x3a99fd)return _0x3a99fd;_0x395246=_0x395246[_0x2f82('0x3c')];}while(_0x395246);return null;}[_0x2f82('0xa1')](){this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0xd0')](_0x477aa5=>{for(const _0x3d9326 of this[_0x2f82('0xf9')][_0x2f82('0x93')][_0x2f82('0x51')])_0x477aa5['removeMarker'](_0x3d9326);});}}function Z(_0x308e7b,_0xc0fbe0){return(_0x303e42,_0x274046,_0x547f97)=>{if(!_0x547f97[_0x2f82('0x1d')][_0x2f82('0xc5')](_0x274046[_0x2f82('0xb2')],_0x303e42['name']))return;const _0x15c91e=_0x274046['markerRange'][_0x2f82('0x2c')](),_0x270d23=_0x274046['markerRange']['start'],_0x12a2bb=_0x308e7b[_0x2f82('0x93')][_0x2f82('0x2e')];let _0x520071=null,_0x29dc68=null,_0xb1766=!0x1,_0x1e9948=!0x1;for(const _0x11a770 of _0x15c91e){const _0x2f9a29=_0x11a770[_0x2f82('0xc2')];_0xb1766=_0xb1766||_0x12a2bb[_0x2f82('0x20')](_0x2f9a29);const _0xe99280=_0x547f97['mapper'][_0x2f82('0x40')](_0x2f9a29);if(_0xe99280&&_0xe99280[_0x2f82('0x4c')]('addHighlight'))return;_0x2f82('0x65')==_0x11a770[_0x2f82('0x37')]&&(_0x12a2bb['isBlock'](_0x2f9a29)&&!_0x12a2bb[_0x2f82('0x45')](_0x2f9a29)&&(_0x2f9a29[_0x2f82('0x69')]||_0x270d23[_0x2f82('0x63')]?_0x520071&&_0x520071[_0x2f82('0x3c')]==_0x2f9a29||(_0x520071=_0x2f9a29,_0x39702f(_0x11a770[_0x2f82('0x4e')]),_0x1e9948=!0x0):_0x29dc68=_0x29dc68||_0x11a770[_0x2f82('0x4e')]));}function _0x39702f(_0x2158c4){const _0x4b7688=_0x547f97['mapper'][_0x2f82('0x10')](_0x2158c4),_0x29c509=_0x547f97[_0x2f82('0x88')]['createUIElement'](_0x2f82('0x96'),{'class':_0x2f82('0xdc')+_0xc0fbe0});_0x547f97[_0x2f82('0x88')][_0x2f82('0xc7')](_0x4b7688,_0x29c509),_0x547f97[_0x2f82('0x53')][_0x2f82('0x7e')](_0x29c509,_0x274046[_0x2f82('0xd9')]);}_0xb1766||_0x1e9948||!_0x29dc68||_0x39702f(_0x29dc68);};}export class RestoreRevisionCommand extends _0x14ce75{constructor(_0x4e67e3){super(_0x4e67e3);const _0x1fa1bb=_0x4e67e3[_0x2f82('0x70')][_0x2f82('0x9c')](d);this[_0x2f82('0xf8')]=!0x1,this[_0x2f82('0x48')](_0x1fa1bb,_0x2f82('0x4f'),()=>this[_0x2f82('0x19')]()),this['listenTo'](_0x1fa1bb,_0x2f82('0x7b'),()=>this[_0x2f82('0x19')]());}[_0x2f82('0x3')](){const _0x3a220e=this[_0x2f82('0xf9')],_0x217fae=_0x3a220e[_0x2f82('0x70')][_0x2f82('0x9c')](d),_0x2d4633=_0x217fae[_0x2f82('0x32')]?_0x217fae[_0x2f82('0x106')]['newRevisionId']:null;_0x3a220e[_0x2f82('0xa')][_0x2f82('0x9c')](_0x2f82('0xd3'))['restoreRevisionCallback'](_0x2d4633);}[_0x2f82('0x19')](){const {isReady:_0x5a91f2,isEnabled:_0x1d5dba}=this[_0x2f82('0xf9')][_0x2f82('0x70')][_0x2f82('0x9c')](d);this[_0x2f82('0x11a')]=_0x5a91f2&&_0x1d5dba;}}export class ShowChangeCommand extends _0x14ce75{constructor(_0x836f53,{direction:_0x2547cf}){super(_0x836f53);const _0x5e4d66=_0x836f53[_0x2f82('0x70')][_0x2f82('0x9c')](d);this[_0x2f82('0xf8')]=!0x1,this[_0x2f82('0x101')]=_0x2f82('0xb7')===_0x2547cf?0x1:-0x1,this[_0x2f82('0x48')](_0x5e4d66,_0x2f82('0x4f'),()=>this[_0x2f82('0x19')]()),this[_0x2f82('0x48')](_0x5e4d66,_0x2f82('0x7b'),()=>this[_0x2f82('0x19')]());}[_0x2f82('0x3')](){const _0x18ffc7=this['editor'],_0xb384c7=_0x18ffc7[_0x2f82('0x70')][_0x2f82('0x9c')](d),{isNavigationMode:_0x629016,currentChangeNumber:_0x2bc8d8}=_0xb384c7;let _0x5dec38;if(_0xb384c7[_0x2f82('0x7f')]=_0x629016?_0xb384c7['diff'][_0x2f82('0x3a')][_0x2f82('0x9c')](_0x2bc8d8+this[_0x2f82('0x101')]):_0xb384c7[_0x2f82('0x106')][_0x2f82('0x3a')][_0x2f82('0xbc')],_0xb384c7[_0x2f82('0x7f')][_0x2f82('0xd5')][_0x2f82('0xbe')])_0x5dec38=_0x18ffc7['editing']['view'][_0x2f82('0xa6')](_0xb384c7[_0x2f82('0x7f')]['rootName']);else{const _0x3e577c=_0x18ffc7[_0x2f82('0x93')][_0x2f82('0x51')][_0x2f82('0x9c')]('revision:'+_0xb384c7[_0x2f82('0x7f')]['id']);_0x5dec38=_0x3ba4c6(_0x18ffc7[_0x2f82('0x7')],_0x3e577c);}_0xf5de76({'target':_0x5dec38,'viewportOffset':0x28});}[_0x2f82('0x19')](){const {isNavigationMode:_0x40fcf3,currentChangeNumber:_0x3d4181,numberOfChanges:_0x530b27,isReady:_0x223668,isEnabled:_0x4d4148}=this[_0x2f82('0xf9')][_0x2f82('0x70')]['get'](d);this[_0x2f82('0x11a')]=!!(_0x4d4148&&_0x223668&&_0x530b27)&&(!_0x40fcf3||(0x1===this[_0x2f82('0x101')]?_0x3d4181<_0x530b27-0x1:_0x3d4181>0x0));}}
23
+ const _0x259c=['refresh','elementToAttribute','enqueueChange','schema','values','document','_refreshStartEndIndex','getRootNames','bottom','removeMarker:revision','insertion','get','getAttributes','ck-revision-history-root--active','activeChange','removeClass','end','removeMarker:revision-suggestion','marked','-new','_removeRevisionMarkers','_getChangeFromId','next','writer','startsWith','deletions','getRevisionRootsAttributes','_getDiff','getRoot','pluginName','isRemoveSuggestion','data','changeId','ck-revision-history-root-','isEqual','consumable','ck-editor__editable__overlay','slice','bind','collaboration.channelId','isSuggestion','uiElement','roots','dataDowncast','vid_start','backward','enableReadOnlyMode','_threeWayMerge','useFillerType','insertions','createPositionBefore','_cleanUp','oldRevisionId','selection','addRevision','rootName','createPositionFromPath','markers','isCollapsed','_activeViewTarget','abs','vid_end','config','unbindElementFromMarkerName','isAttached','level','getRevisionData','diffData','view','WidgetToolbarRepository','parent','_changeIdToChange','add','side','setAttribute','push','revisionHistoryAttachChange','ck-suggestion-preview-marker-','getChild','revision-comment:','remove','_setConversion','children','forward','getIndex','data-revision-','revision-end','showNextChange','isRemoved','startIndex','markerNameToElements','markerRange','revision','editingDowncast','ck-suggestion-marker','loadRevisionData','highest','domConverter','ck-revision-history-root-remove','object','mousedown','authors','data-change-id','nextPosition','type','split','ck-suggestion-marker-merge','nextSibling','offsetSize','POSITIVE_INFINITY','span','test','addMarker:revision','markerToData','_initInteractions','createUIElement','delete','insert','addMarker:revision-suggestion:insertion','isAddSuggestion','forEach','bindElementToMarker','_setDistance','_update','compare','merge','domEvent','element:pre','keys','from','pairId','_getRevisionsRange','string','then','destroy','activeView','ck-revision-history-root-add','attributesAfter','showStack','hasClass','change:activeChange','revision:','wrap','change:activeView','high','editor','isBlock','_data','markerName','change:isEnabled','viewItem','RevisionViewer','previousPosition','deletion','addRoot','resolve','commands','nodeAfter','attributes','index','set','change','comment','dataToMarker','getAttribute','range','filter','numberOfChanges','default','markersEnd','ck-suggestion-marker--active','getCustomProperty','createRangeIn','vid','_appendChild','isEnabled','sort','target','map','_sortAndFilterDiffChanges','_cleanMarkers','code','has','toViewRange','isAfter','conversion','attribute:vid','isAtStart','elementStart','change:isReady','addHighlight','_markMarkers','reconvertMarker','getClientRects','item','_getViewObj','includes','start','distance','mapper','for','_balloon','name','isIncorrect','checkAttribute','mouseover','isNavigationMode','upcast','_makeModelFromTape','findIndex','elementEnd','getDomRoot','ck-suggestion-marker-split','removeMarker','_removeUnsupportedChanges','_getViewForChange','top','_findChangeIdFromDomTarget','userId','repository','editing','revision-suggestion','return','isLimit','toViewPosition','listenTo','processor','createAttributeElement','maxOffset','isOnRoot','plugins','text','currentChangeNumber','splice','_setChanges','toData','_revisions','removeAttribute','adapter','createRange','done','_markMismatchedRemovedTags','isAtEnd','diff','change:numberOfChanges','element','endIndex','markerToHighlight','_makeTape','getItems','revisionHistoryLabel','_changeView','shift','getWalker','catch','changes','attachChange','isObject','softBreak','newRevisionId','_fixObsoleteTags','isAdded','getRevision','_removeMissingPairs','length','right','RevisionsRepository','model','error','downcastDispatcher','first','isReady','_processTape','indexOf','observeMarkers','init','_markInsertions','ck-suggestion-marker-','modelRange','markersStart','execute','unshift','addMarker:revision-suggestion:deletion','detachRoot','hasAttribute','revisionHistory','consume','toViewElement','revision-viewer','concat','isContent','addClass','_step','_makeModelFromViewString'];(function(_0x37087c,_0x259c73){const _0x4f22c2=function(_0xf63fb0){while(--_0xf63fb0){_0x37087c['push'](_0x37087c['shift']());}};_0x4f22c2(++_0x259c73);}(_0x259c,0x14b));const _0x4f22=function(_0x37087c,_0x259c73){_0x37087c=_0x37087c-0x0;let _0x4f22c2=_0x259c[_0x37087c];return _0x4f22c2;};import{Plugin as _0x279042,Command as _0x35688b}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3c451b}from'ckeditor5/src/utils';import{ContextualBalloon as _0x15d37b}from'ckeditor5/src/ui';import{DocumentFragment as _0x448404,Element as _0x340e18,Text as _0x21d0f8,ViewDocumentFragment as _0xbcd63c,ViewText as _0x5207c2,ViewElement as _0x371eda,ViewContainerElement as _0x49d4fd,ViewAttributeElement as _0x2f3a53,ViewEmptyElement as _0x7c8eb7,ViewRawElement as _0x19772b,ViewUIElement as _0x38347b}from'ckeditor5/src/engine';import{Users as _0x34c33f,getMarkerDomElement as _0x313195}from'ckeditor5-collaboration/src/collaboration-core';import _0x249774 from'./ui/revisionviewer/changedetailsview';import _0x2e7230 from'./revisionsrepository';import _0x2f0fc5 from'./changeitem';import{default as _0x353e10}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4c96ef}from'lodash-es';const Y={'c':_0x49d4fd,'a':_0x2f3a53,'e':_0x7c8eb7,'r':_0x19772b,'u':_0x38347b};export default class d extends _0x279042{static get[_0x4f22('0x11e')](){return _0x4f22('0x72');}static get['requires'](){return[_0x34c33f,_0x15d37b,_0x2e7230];}constructor(_0x1c52ab){super(_0x1c52ab),this[_0x4f22('0xb6')]=this[_0x4f22('0x6c')][_0x4f22('0xc1')]['get'](_0x4f22('0xe5')),this[_0x4f22('0x7b')](_0x4f22('0x10f'),null),this['set'](_0x4f22('0x62'),null),this[_0x4f22('0x16')]=null,this['set'](_0x4f22('0xce'),null),this[_0x4f22('0x7b')](_0x4f22('0xea'),!0x1),this['set']('isEnabled',!0x0),this['on'](_0x4f22('0x70'),(_0x12eebf,_0x26d7cb,_0x533011)=>{this[_0x4f22('0x10f')]=null,this[_0x4f22('0x62')]=null,this[_0x4f22('0x6c')]['editing'][_0x4f22('0x1f')][_0x4f22('0x7c')](_0x3357b3=>{for(const _0x595046 of this['editor'][_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0x106')][_0x4f22('0x5')])_0x533011?_0x3357b3['removeClass'](_0x4f22('0x125'),_0x595046):_0x3357b3[_0x4f22('0xfe')](_0x4f22('0x125'),_0x595046);});}),this[_0x4f22('0x1')](_0x4f22('0xa9'))['to'](this,_0x4f22('0x10f'),_0x2c7407=>null!==_0x2c7407),this[_0x4f22('0x1')](_0x4f22('0xc3'))['to'](this,_0x4f22('0xea'),this,_0x4f22('0xce'),this,_0x4f22('0x10f'),(_0x874a2c,_0x189a71,_0x29bb40)=>_0x874a2c&&_0x29bb40?_0x189a71[_0x4f22('0xda')][_0x4f22('0x2f')](_0x29bb40):0x0),this[_0x4f22('0x1')](_0x4f22('0x82'))['to'](this,'isReady',this,_0x4f22('0xce'),(_0x3d4c35,_0x2e7c8f)=>_0x3d4c35?_0x2e7c8f[_0x4f22('0xda')][_0x4f22('0xe3')]:0x0),this[_0x4f22('0xd6')]=null,this[_0x4f22('0x22')]=new Map(),this[_0x4f22('0xc9')]=null,this[_0x4f22('0xa4')]=this['editor'][_0x4f22('0xc1')][_0x4f22('0x10c')](_0x15d37b);}[_0x4f22('0xee')](){const _0x1f0bab=this[_0x4f22('0x6c')],_0x359dac=new ShowChangeCommand(_0x1f0bab,{'direction':_0x4f22('0x8')}),_0x3b1d53=new ShowChangeCommand(_0x1f0bab,{'direction':'forward'});(_0x1f0bab['commands']['add']('showPreviousChange',_0x359dac),_0x1f0bab['commands'][_0x4f22('0x23')](_0x4f22('0x32'),_0x3b1d53),_0x1f0bab[_0x4f22('0x77')][_0x4f22('0x23')]('restoreRevision',new RestoreRevisionCommand(_0x1f0bab)),this['on'](_0x4f22('0xcf'),()=>{_0x359dac['refresh'](),_0x3b1d53['refresh']();}),this[_0x4f22('0x2c')](),this[_0x4f22('0x4d')](),_0x1f0bab[_0x4f22('0x9')](_0x4f22('0xfb')),_0x1f0bab[_0x4f22('0xc1')][_0x4f22('0x91')](_0x4f22('0x20')))&&_0x1f0bab[_0x4f22('0xc1')][_0x4f22('0x10c')](_0x4f22('0x20'))['forceDisabled'](_0x4f22('0xfb'));}async[_0x4f22('0x1d')](_0x1c24ff){await this[_0x4f22('0x3a')](_0x1c24ff);const _0x3698a1={};for(const _0x5eb89b in _0x1c24ff[_0x4f22('0x1e')]){if(_0x1c24ff[_0x4f22('0x1e')][_0x5eb89b][_0x4f22('0xdb')]&&!_0x1c24ff['diffData'][_0x5eb89b][_0x4f22('0xdb')][_0x4f22('0x1b')])continue;const _0x31e62f=this['_removeRevisionMarkers'](JSON['parse'](_0x1c24ff[_0x4f22('0x1e')][_0x5eb89b]['insertions'])),_0x4a7214=this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0x106')],_0x20c17a=new _0xbcd63c(_0x4a7214,_0x31e62f[_0x4f22('0x8d')](_0x1db344=>this[_0x4f22('0x9e')](_0x1db344)));this[_0x4f22('0x6c')][_0x4f22('0x120')][_0x4f22('0xbd')]['useFillerType'](_0x4f22('0x113')),_0x3698a1[_0x5eb89b]=this[_0x4f22('0x6c')]['data'][_0x4f22('0xbd')][_0x4f22('0xc6')](_0x20c17a),this[_0x4f22('0x6c')][_0x4f22('0x120')][_0x4f22('0xbd')][_0x4f22('0xb')](_0x4f22('0x83'));}return _0x3698a1;}async[_0x4f22('0x11b')](_0x42311d){await this[_0x4f22('0x3a')](_0x42311d);const _0x3c09a8={};for(const _0x1bb199 in _0x42311d[_0x4f22('0x1e')])_0x42311d[_0x4f22('0x1e')][_0x1bb199][_0x4f22('0xdb')]&&!_0x42311d['diffData'][_0x1bb199][_0x4f22('0xdb')][_0x4f22('0x1b')]||(_0x3c09a8[_0x1bb199]=_0x42311d[_0x4f22('0x1e')][_0x1bb199]['attributesAfter']||{});return _0x3c09a8;}[_0x4f22('0x115')](_0x40f022){return(_0x40f022=_0x40f022[_0x4f22('0x81')](_0x41e39e=>!_0x41e39e[_0x4f22('0xa5')]||'revision-start'!==_0x41e39e[_0x4f22('0xa5')]&&_0x4f22('0x31')!==_0x41e39e[_0x4f22('0xa5')]))[_0x4f22('0x53')](_0x188c96=>{_0x4f22('0x5f')!=typeof _0x188c96&&(_0x188c96['children']=this[_0x4f22('0x115')](_0x188c96[_0x4f22('0x2d')]),_0x188c96[_0x4f22('0x79')]=_0x188c96[_0x4f22('0x79')][_0x4f22('0x81')](_0x2b952f=>!_0x2b952f[0x0][_0x4f22('0x119')](_0x4f22('0x30'))));}),_0x40f022;}async[_0x4f22('0x57')](_0x341645,_0xd0cbf4,_0x2833d3=!0x1){if(!this['isEnabled'])return;const _0x3bffaf=this[_0x4f22('0xce')],_0x31b649=this['repository'],_0x595485=_0x4f22('0x5f')==typeof _0x341645?_0x31b649['getRevision'](_0x341645):_0x341645,_0x326ae4='string'==typeof _0xd0cbf4?_0x31b649[_0x4f22('0xe1')](_0xd0cbf4):_0xd0cbf4,_0x4e017c=_0x595485['id'],_0x3068ad=_0x326ae4?_0x326ae4['id']:null;if(!_0x2833d3&&this[_0x4f22('0xce')]&&this[_0x4f22('0xce')][_0x4f22('0xde')]===_0x4e017c&&this[_0x4f22('0xce')][_0x4f22('0xf')]===_0x3068ad)return Promise[_0x4f22('0x76')]();this['isReady']=!0x1,this[_0x4f22('0x62')]=null,this[_0x4f22('0x10f')]=null,this[_0x4f22('0xce')]=new _0x353e10(_0x4e017c,_0x3068ad);const _0x13cf55=this[_0x4f22('0x5e')](_0x595485,_0x326ae4,!0x0)[_0x4f22('0x8d')](_0x5d16d8=>this[_0x4f22('0x3a')](_0x5d16d8));return _0x13cf55[_0x4f22('0x26')](new Promise(_0xfa997c=>{setTimeout(_0xfa997c,0x14);})),Promise['all'](_0x13cf55)[_0x4f22('0x60')](()=>{if(!this[_0x4f22('0x8a')])return;this[_0x4f22('0xe')]();const _0x4a6244=this[_0x4f22('0x11c')](_0x4e017c,_0x3068ad);for(const _0x2dec33 of _0x4a6244[_0x4f22('0xda')])this[_0x4f22('0x22')][_0x4f22('0x7b')](_0x2dec33['id'],_0x2dec33);this[_0x4f22('0x6c')]['model'][_0x4f22('0x103')]({'isUndoable':!0x1},_0x35ec39=>{for(const _0x2e8004 of this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x106')][_0x4f22('0x108')]())_0x35ec39['detachRoot'](_0x2e8004);for(const _0x377e71 of Object[_0x4f22('0x5b')](_0x4a6244['model'])){const _0x51096b=_0x35ec39[_0x4f22('0x75')](_0x377e71);for(const _0x16afa5 of Object[_0x4f22('0x5b')](_0x4a6244[_0x4f22('0x79')][_0x377e71]))_0x35ec39[_0x4f22('0x25')](_0x16afa5,_0x4a6244['attributes'][_0x377e71][_0x16afa5],_0x51096b);_0x35ec39[_0x4f22('0x50')](_0x4a6244[_0x4f22('0xe6')][_0x377e71],_0x51096b,0x0);}}),this['diff'][_0x4f22('0xc5')](this[_0x4f22('0x8e')](_0x4a6244[_0x4f22('0xda')])),this[_0x4f22('0xea')]=!0x0;})[_0x4f22('0xd9')](_0x4b4002=>{console[_0x4f22('0xe7')](_0x4b4002),this[_0x4f22('0xe')](),_0x3bffaf&&(this[_0x4f22('0xce')]=_0x3bffaf),this[_0x4f22('0xea')]=!0x0;});}['addRevisionData'](_0x52e4f3,_0x14f073){const _0x51e5a3=this['repository']['createRevision'](_0x52e4f3);return _0x51e5a3['on'](_0x4f22('0x56'),(_0x4f5284,_0x5582f7,_0x357c5e)=>_0x14f073(_0x5582f7,_0x357c5e,_0x51e5a3)),this[_0x4f22('0xb6')][_0x4f22('0x11')](_0x51e5a3),_0x51e5a3;}[_0x4f22('0x3a')](_0x4cfdfb){if(!_0x4cfdfb||_0x4cfdfb['diffData'])return Promise[_0x4f22('0x76')]();{const _0x46c0e3=this['editor'][_0x4f22('0x19')][_0x4f22('0x10c')](_0x4f22('0x2'));return this[_0x4f22('0xc9')][_0x4f22('0xe1')]({'channelId':_0x46c0e3,'revisionId':_0x4cfdfb['id']})[_0x4f22('0x60')](_0x973190=>{_0x4cfdfb[_0x4f22('0x56')]({'diffData':_0x973190[_0x4f22('0x1e')]},!0x0);});}}['_cleanUp'](){this[_0x4f22('0x10f')]=null,this['_cleanMarkers'](),this['_changeView']&&this[_0x4f22('0xd6')][_0x4f22('0x61')](),this[_0x4f22('0xd6')]=null,this['_changeIdToChange']['clear'](),this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x103')]({'isUndoable':!0x1},_0x28683c=>{for(const _0x4c3128 of this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x106')][_0x4f22('0x108')]())_0x28683c[_0x4f22('0xf6')](_0x4c3128);});}[_0x4f22('0x8e')](_0x147158){const _0x3949f2=[],_0x549010=new Map();for(const _0x15f98e of this['editor']['model']['document']['getRootNames']()){const _0x16419a=this[_0x4f22('0x6c')][_0x4f22('0xb7')]['view'][_0x4f22('0xae')](_0x15f98e);if(!_0x16419a)continue;const _0x52d4a9=_0x16419a[_0x4f22('0x9c')]()[_0x4f22('0x9d')](0x0);_0x52d4a9&&(_0x3949f2[_0x4f22('0x26')](_0x15f98e),_0x549010[_0x4f22('0x7b')](_0x15f98e,_0x52d4a9));}return _0x3949f2[_0x4f22('0x8b')]((_0x57c0f2,_0x5dfdf4)=>{const _0x5e99ab=_0x549010[_0x4f22('0x10c')](_0x57c0f2),_0x1406d3=_0x549010[_0x4f22('0x10c')](_0x5dfdf4);return _0x5e99ab['y']-_0x1406d3['y']||_0x5e99ab['x']-_0x1406d3['x'];}),(_0x147158=_0x147158[_0x4f22('0x81')](_0x5692a3=>_0x3949f2['includes'](_0x5692a3['rootName'])))[_0x4f22('0x8b')]((_0x26d373,_0x5198af)=>_0x3949f2[_0x4f22('0xec')](_0x26d373[_0x4f22('0x12')])-_0x3949f2['indexOf'](_0x5198af['rootName'])),_0x147158;}[_0x4f22('0xd3')](_0x5785b0){const _0x1f97e8=Array[_0x4f22('0x5c')](_0x5785b0['markers'])[_0x4f22('0x81')](([_0xe32195,_0x252fb2])=>_0xe32195[_0x4f22('0x119')](_0x4f22('0x68'))&&!_0x252fb2[_0x4f22('0x15')]),_0x249491=Array['from'](this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x87')](_0x5785b0)[_0x4f22('0xd8')]({'singleCharacters':!0x0}));if(0x0!=_0x1f97e8[_0x4f22('0xe3')])for(const _0x5cd368 of _0x249491){const [_0x377cf1,_0x1c15f4]=_0x1f97e8[0x0],[,_0x52f7ba,_0x494389]=_0x377cf1[_0x4f22('0x44')](':');if(_0x1c15f4[_0x4f22('0x111')][_0x4f22('0x123')](_0x5cd368[_0x4f22('0x42')])&&_0x1f97e8[_0x4f22('0xd7')](),(_0x5cd368[_0x4f22('0x73')][_0x4f22('0x123')](_0x1c15f4[_0x4f22('0xa0')])||_0x5cd368[_0x4f22('0x73')]['isAfter'](_0x1c15f4[_0x4f22('0xa0')]))&&(_0x4f22('0x10b')==_0x52f7ba?_0x5cd368[_0x4f22('0xe0')]={'userId':_0x494389}:_0x4f22('0x74')==_0x52f7ba&&(_0x5cd368[_0x4f22('0x33')]={'userId':_0x494389})),0x0==_0x1f97e8[_0x4f22('0xe3')])break;}return _0x249491;}[_0x4f22('0x107')](_0x5cef78){const _0x25c8cc=new Map();for(let _0x1102ba=0x0;_0x1102ba<_0x5cef78[_0x4f22('0xe3')];_0x1102ba++)_0x4f22('0xc2')===_0x5cef78[_0x1102ba][_0x4f22('0x43')]?(_0x5cef78[_0x1102ba][_0x4f22('0x9d')][_0x4f22('0x34')]=_0x1102ba,_0x5cef78[_0x1102ba][_0x4f22('0x9d')][_0x4f22('0xd1')]=_0x1102ba):(_0x4f22('0x97')===_0x5cef78[_0x1102ba][_0x4f22('0x43')]?_0x5cef78[_0x1102ba][_0x4f22('0x9d')]['startIndex']=_0x1102ba:_0x4f22('0xad')===_0x5cef78[_0x1102ba]['type']&&(_0x5cef78[_0x1102ba][_0x4f22('0x9d')]['endIndex']=_0x1102ba),_0x25c8cc[_0x4f22('0x7b')](_0x5cef78[_0x1102ba]['id'],_0x1102ba));for(const _0x527c0a of _0x25c8cc[_0x4f22('0x105')]())'elementStart'===_0x5cef78[_0x527c0a][_0x4f22('0x43')]?_0x5cef78[_0x527c0a]['item'][_0x4f22('0xd1')]=_0x25c8cc[_0x4f22('0x10c')](_0x5cef78[_0x527c0a][_0x4f22('0x5d')]):_0x4f22('0xad')===_0x5cef78[_0x527c0a][_0x4f22('0x43')]&&(_0x5cef78[_0x527c0a][_0x4f22('0x9d')][_0x4f22('0x34')]=_0x25c8cc[_0x4f22('0x10c')](_0x5cef78[_0x527c0a][_0x4f22('0x5d')]));}[_0x4f22('0xeb')](_0x441884){for(let _0x190e4e=0x0;_0x190e4e<_0x441884['length'];_0x190e4e++){if(_0x4f22('0x97')===_0x441884[_0x190e4e][_0x4f22('0x43')])_0x441884[_0x190e4e][_0x4f22('0x9d')][_0x4f22('0x34')]=_0x190e4e;else{if('elementEnd'===_0x441884[_0x190e4e][_0x4f22('0x43')]){_0x441884[_0x190e4e][_0x4f22('0x9d')][_0x4f22('0xd1')]=_0x190e4e;const _0x450a4e=_0x441884[_0x190e4e][_0x4f22('0x9d')]['startIndex'];_0x441884[_0x450a4e]['pairId']=_0x441884[_0x190e4e]['id'],_0x441884[_0x190e4e]['pairId']=_0x441884[_0x450a4e]['id'];}else _0x441884[_0x190e4e]['item'][_0x4f22('0x34')]=_0x190e4e,_0x441884[_0x190e4e][_0x4f22('0x9d')][_0x4f22('0xd1')]=_0x190e4e,_0x441884[_0x190e4e][_0x4f22('0x5d')]=null;}_0x441884[_0x190e4e][_0x4f22('0xf2')]||(_0x441884[_0x190e4e][_0x4f22('0xf2')]=[],_0x441884[_0x190e4e][_0x4f22('0x84')]=[]);}}[_0x4f22('0xef')](_0x3bf566,_0x38a12f){const _0x5a1e4f=_0x3bf566[_0x4f22('0x81')](_0x17fda1=>!_0x17fda1[_0x4f22('0xe0')]);for(let _0x4f7bcc=0x0;_0x4f7bcc<_0x38a12f['length'];_0x4f7bcc++)_0x38a12f[_0x4f7bcc]['isAdded']&&(_0x5a1e4f[_0x4f7bcc][_0x4f22('0xe0')]=_0x38a12f[_0x4f7bcc][_0x4f22('0xe0')]);}[_0x4f22('0x100')](_0x10083f){const _0x2ed796=JSON['parse'](_0x10083f),_0x19458b=this['editor'][_0x4f22('0xb7')]['view'][_0x4f22('0x106')],_0x574cae=new _0xbcd63c(_0x19458b,_0x2ed796['map'](_0xfba7e5=>this[_0x4f22('0x9e')](_0xfba7e5)));return this[_0x4f22('0x6c')][_0x4f22('0x120')]['toModel'](_0x574cae);}[_0x4f22('0x9e')](_0x213bce){const _0x49875c=this[_0x4f22('0x6c')]['editing'][_0x4f22('0x1f')][_0x4f22('0x106')];if(_0x4f22('0x5f')==typeof _0x213bce)return new _0x5207c2(_0x49875c,_0x213bce);{const _0x4595fa=_0x213bce[_0x4f22('0x2d')]['map'](_0x8753c9=>this[_0x4f22('0x9e')](_0x8753c9));return new(Y[_0x213bce['type']]||_0x371eda)(_0x49875c,_0x213bce[_0x4f22('0xa5')],_0x213bce['attributes'],_0x4595fa);}}[_0x4f22('0x11c')](_0x373463,_0x533996=null){const _0x4b5f24=this['repository'][_0x4f22('0xe1')](_0x373463),_0x49c007=_0x533996?this[_0x4f22('0xb6')][_0x4f22('0xe1')](_0x533996):null,_0x548ee1=this[_0x4f22('0x5e')](_0x4b5f24,_0x49c007),_0x333752=_0x548ee1[_0x548ee1[_0x4f22('0xe3')]-0x1],_0x38970d=new Map(),_0x5f2406={'model':{},'attributes':{},'changes':[]},_0x3e4f91=new Set(),_0xaef6b2=new Map();for(let _0x3b1775=_0x548ee1[_0x4f22('0xe3')]-0x1;_0x3b1775>=0x0;_0x3b1775--){const _0x1fc355=_0x548ee1[_0x3b1775];for(const _0x296e32 of Object[_0x4f22('0x5b')](_0x1fc355[_0x4f22('0x1e')]))if(_0x1fc355[_0x4f22('0x1e')][_0x296e32]['attachChange']){const _0x2ff47e=_0x1fc355['diffData'][_0x296e32]['attachChange'];_0x2ff47e['isAttached']?(_0x3e4f91['add'](_0x296e32),_0xaef6b2[_0x4f22('0x91')](_0x296e32)&&_0xaef6b2[_0x4f22('0x10c')](_0x296e32)['userId']==_0x2ff47e['userId']?_0xaef6b2[_0x4f22('0x4f')](_0x296e32):_0xaef6b2[_0x4f22('0x7b')](_0x296e32,_0x2ff47e)):_0xaef6b2[_0x4f22('0x91')](_0x296e32)?(_0x3e4f91[_0x4f22('0x4f')](_0x296e32),_0xaef6b2['delete'](_0x296e32)):(_0x3e4f91['add'](_0x296e32),_0xaef6b2[_0x4f22('0x7b')](_0x296e32,_0x2ff47e));}else _0x3e4f91['add'](_0x296e32);}for(const _0x4a6297 of _0x3e4f91){const _0x4498e4=_0xaef6b2[_0x4f22('0x91')](_0x4a6297)&&!_0xaef6b2[_0x4f22('0x10c')](_0x4a6297)[_0x4f22('0x1b')];let _0x84c577=_0x4498e4?_0x548ee1[_0x4f22('0xe3')]-0x1:0x0;const _0x5993be=_0x4498e4?-0x1:0x1;for(;_0x548ee1[_0x84c577];){const _0x5dbeb2=_0x548ee1[_0x84c577];if(_0x5dbeb2['diffData'][_0x4a6297]){const _0x5e99bb=_0x4498e4?_0x5dbeb2[_0x4f22('0x1e')][_0x4a6297]['attributesBefore']:_0x5dbeb2['diffData'][_0x4a6297][_0x4f22('0x64')];_0x5f2406['attributes'][_0x4a6297]=_0x5e99bb?_0x4c96ef(_0x5e99bb):{};break;}_0x84c577+=_0x5993be;}}for(const _0xc42ba4 of _0x548ee1){_0xc42ba4[_0x4f22('0xe6')]={};for(const _0x5694d of _0xc42ba4[_0x4f22('0x40')])_0x38970d[_0x4f22('0x7b')](_0x5694d['id'],_0x5694d);for(const _0x53464a of _0x3e4f91){const _0x3c1f80=_0xc42ba4[_0x4f22('0x1e')][_0x53464a]?_0xc42ba4[_0x4f22('0x1e')][_0x53464a][_0x4f22('0xc')]:'[]',_0x5b30b8=_0xc42ba4[_0x4f22('0x1e')][_0x53464a]?_0xc42ba4[_0x4f22('0x1e')][_0x53464a]['deletions']:'[]';_0xc42ba4[_0x4f22('0xe6')][_0x53464a]={'insertions':this['_makeModelFromViewString'](_0x3c1f80),'deletions':this[_0x4f22('0x100')](_0x5b30b8)};}}for(const _0x1a6ee0 of _0x3e4f91){let _0x551b3b=null,_0x382ab2=0x0;const _0x5ca079=new Map(Array[_0x4f22('0x5c')](_0x4b5f24[_0x4f22('0xe6')][_0x1a6ee0][_0x4f22('0xc')][_0x4f22('0x14')])[_0x4f22('0x81')](([_0x28dfa5])=>!_0x28dfa5[_0x4f22('0x119')](_0x4f22('0x68'))));let _0x4b66b4=0x0;for(const _0x516f64 of _0x548ee1){const _0x1952c9=this[_0x4f22('0xd3')](_0x516f64[_0x4f22('0xe6')][_0x1a6ee0][_0x4f22('0xc')]);_0x516f64==_0x4b5f24?(_0x551b3b=_0x1952c9,_0x382ab2=_0x551b3b[_0x4f22('0xe3')],_0x551b3b[_0x4f22('0x53')](_0x19de66=>{_0x19de66['id']=_0x4b66b4++;}),this['_processTape'](_0x551b3b)):this['_markInsertions'](_0x551b3b,_0x1952c9);const _0x3776e6=_0x551b3b[_0x4f22('0x81')](_0x556cd7=>!_0x556cd7[_0x4f22('0xe0')])[_0x4f22('0x8d')](_0x2e87c4=>_0x2e87c4['id']);let _0x178967=0x0;const _0x48d4fd=this['_makeTape'](_0x516f64[_0x4f22('0xe6')][_0x1a6ee0][_0x4f22('0x11a')]);_0x48d4fd['forEach'](_0x2678ac=>{_0x2678ac['isRemoved']?_0x2678ac['id']=_0x382ab2++:_0x2678ac['id']=_0x3776e6[_0x178967++];}),this[_0x4f22('0xeb')](_0x48d4fd),this[_0x4f22('0x55')](_0x551b3b,_0x4f22('0xe0')),this['_setDistance'](_0x48d4fd,_0x4f22('0x33')),_0x516f64==_0x4b5f24&&this[_0x4f22('0x9a')](_0x551b3b,_0x5ca079),_0x551b3b=this['_joinTapes'](_0x551b3b,_0x48d4fd),this[_0x4f22('0x107')](_0x551b3b),this['_setDistance'](_0x551b3b,_0x4f22('0x33'));}_0x551b3b=_0x551b3b[_0x4f22('0x81')](_0x7b1765=>!(_0x7b1765[_0x4f22('0xe0')]&&_0x7b1765[_0x4f22('0x33')]));const _0x217bea=new Map(_0x333752['model'][_0x1a6ee0]['deletions'][_0x4f22('0x14')]),_0x26303c=new Set(_0x5ca079[_0x4f22('0x5b')]());for(const _0x11d194 of _0x217bea[_0x4f22('0x5b')]())_0x26303c[_0x4f22('0x4f')](_0x11d194);this['_markSuggestions'](_0x551b3b,_0x26303c),this[_0x4f22('0xdf')](_0x551b3b),_0x551b3b=this['_removeMissingPairs'](_0x551b3b),_0x551b3b=this[_0x4f22('0xcc')](_0x551b3b),_0x551b3b=this[_0x4f22('0xb1')](_0x551b3b);const {root:_0x26a6d,changes:_0x3922e1}=this['_makeModelFromTape'](_0x551b3b,_0x38970d,_0x1a6ee0);_0x5f2406[_0x4f22('0xe6')][_0x1a6ee0]=_0x26a6d;const _0x366c7f=_0xaef6b2[_0x4f22('0x10c')](_0x1a6ee0);if(_0x366c7f){const _0x2d1b29=_0x38970d[_0x4f22('0x10c')](_0x366c7f[_0x4f22('0xb5')]),_0x1c6d93=new _0x2f0fc5({'author':_0x2d1b29,'type':_0x366c7f[_0x4f22('0x1b')]?'add':_0x4f22('0x2b'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1a6ee0});_0x3922e1[_0x4f22('0xf4')](_0x1c6d93),_0x5f2406[_0x4f22('0x79')][_0x1a6ee0][_0x4f22('0x27')]=_0x1c6d93['id'];}_0x5f2406[_0x4f22('0xda')]=_0x5f2406[_0x4f22('0xda')][_0x4f22('0xfc')](_0x3922e1);}return _0x5f2406;}[_0x4f22('0x9a')](_0x482df4,_0x36edad){for(let _0xe2bd37=0x0;_0xe2bd37<_0x482df4['length'];_0xe2bd37++)for(const [_0x5e500b,_0x13be3a]of _0x36edad)_0x13be3a[_0x4f22('0xa0')]['isEqual'](_0x482df4[_0xe2bd37]['previousPosition'])&&_0x482df4[_0xe2bd37][_0x4f22('0xf2')][_0x4f22('0x26')](_0x5e500b),_0x13be3a['end'][_0x4f22('0x123')](_0x482df4[_0xe2bd37][_0x4f22('0x42')])&&_0x482df4[_0xe2bd37][_0x4f22('0x84')]['push'](_0x5e500b);}['_joinTapes'](_0x5854d6,_0x44be03){let _0x594e11=[],_0x3474a7=0x0,_0x1cd7f7=0x0;for(;_0x3474a7<_0x5854d6[_0x4f22('0xe3')]||_0x1cd7f7<_0x44be03[_0x4f22('0xe3')];){const _0x4af272=_0x5854d6[_0x3474a7]||{},_0x5032cf=_0x44be03[_0x1cd7f7]||{};if(_0x4af272['id']==_0x5032cf['id'])_0x3474a7++,_0x1cd7f7++,_0x594e11['push'](_0x4af272);else{if(_0x5032cf[_0x4f22('0x33')]&&_0x4af272['isAdded']){const {commonTape:_0x16bee7,iEnd:_0x2f5a80,jEnd:_0x5e6a92}=this[_0x4f22('0xa')](_0x5854d6,_0x3474a7,_0x44be03,_0x1cd7f7);_0x594e11=_0x594e11['concat'](_0x16bee7),_0x3474a7=_0x2f5a80,_0x1cd7f7=_0x5e6a92;}else _0x5032cf[_0x4f22('0x33')]?(_0x1cd7f7++,_0x594e11['push'](_0x5032cf)):(_0x3474a7++,_0x594e11['push'](_0x4af272));}}return _0x594e11;}['_markSuggestions'](_0x3be9e2,_0x737483){const _0x3acb97=[];for(let _0x5e33a4=0x0;_0x5e33a4<_0x3be9e2[_0x4f22('0xe3')];_0x5e33a4++){for(let _0x2e2128=0x0;_0x2e2128<_0x3be9e2[_0x5e33a4][_0x4f22('0xf2')][_0x4f22('0xe3')];_0x2e2128++){const _0x343795=_0x3be9e2[_0x5e33a4][_0x4f22('0xf2')][_0x2e2128];if(!_0x737483[_0x4f22('0x91')](_0x343795))continue;const {group:_0xe167c3,type:_0x213a85,authorId:_0x165890}=_0x2adccb(_0x343795);_0x4f22('0xb8')!=_0xe167c3||_0x4f22('0x10b')!=_0x213a85&&_0x4f22('0x74')!=_0x213a85||(_0x3acb97['unshift']({'type':_0x213a85,'name':_0x343795,'userId':_0x165890}),_0x3be9e2[_0x5e33a4][_0x4f22('0xf2')][_0x4f22('0xc4')](_0x2e2128,0x1),_0x2e2128--);}_0xf198e4(_0x3be9e2[_0x5e33a4]);for(let _0x1fff23=0x0;_0x1fff23<_0x3be9e2[_0x5e33a4][_0x4f22('0x84')][_0x4f22('0xe3')];_0x1fff23++){const _0x374737=_0x3be9e2[_0x5e33a4]['markersEnd'][_0x1fff23];if(!_0x737483[_0x4f22('0x91')](_0x374737))continue;const {group:_0x435b76,type:_0x4f522b}=_0x2adccb(_0x374737);if(_0x4f22('0xb8')!=_0x435b76||_0x4f22('0x10b')!=_0x4f522b&&_0x4f22('0x74')!=_0x4f522b)continue;_0x3be9e2[_0x5e33a4][_0x4f22('0x84')][_0x4f22('0xc4')](_0x1fff23,0x1),_0x1fff23--;const _0x1f40b4=_0x3acb97[_0x4f22('0xac')](_0x565996=>_0x565996[_0x4f22('0xa5')]==_0x374737);_0x1f40b4>-0x1&&_0x3acb97['splice'](_0x1f40b4,0x1);}}function _0x2adccb(_0x2db3a4){const _0x2259a7=_0x2db3a4[_0x4f22('0x44')](':');return{'group':_0x2259a7[0x0],'type':_0x2259a7[0x1],'subType':_0x2259a7[_0x4f22('0xe3')]>=0x5?_0x2259a7[0x2]:null,'id':_0x2259a7[_0x4f22('0xe3')]<0x5?_0x2259a7[0x2]:_0x2259a7[0x3],'authorId':_0x2259a7[_0x4f22('0xe3')]<0x5?_0x2259a7[0x3]:_0x2259a7[0x4],'markerCount':0x6==_0x2259a7[_0x4f22('0xe3')]?_0x2259a7[0x5]:null};}function _0xf198e4(_0x186ed4){for(let _0x128bb6=0x0;_0x128bb6<_0x3acb97[_0x4f22('0xe3')];_0x128bb6++){if(_0x186ed4[_0x4f22('0xe0')]&&_0x4f22('0x10b')==_0x3acb97[_0x128bb6][_0x4f22('0x43')])return _0x186ed4['isAddSuggestion']=_0x3acb97[_0x128bb6],void delete _0x186ed4[_0x4f22('0xe0')];if(!_0x186ed4[_0x4f22('0xe0')]&&!_0x186ed4[_0x4f22('0x33')]&&_0x4f22('0x74')==_0x3acb97[_0x128bb6][_0x4f22('0x43')])return void(_0x186ed4[_0x4f22('0x11f')]=_0x3acb97[_0x128bb6]);}}}[_0x4f22('0x55')](_0x355f21,_0x183ae4){let _0x435bba=0x0,_0x56fe7f=!0x1;const _0xdd2e7b=new Map();for(const _0x2741e0 of _0x355f21)_0x2741e0[_0x183ae4]?_0x56fe7f&&(_0x435bba++,_0x56fe7f=!0x1):(_0x435bba++,_0x56fe7f=!0x0),_0xdd2e7b[_0x4f22('0x7b')](_0x2741e0['id'],_0x435bba);for(let _0xee8ef7=0x0;_0xee8ef7<_0x355f21['length'];_0xee8ef7++){if(_0x4f22('0x33')==_0x183ae4&&_0x355f21[_0xee8ef7][_0x4f22('0xe0')]||'isAdded'==_0x183ae4&&_0x355f21[_0xee8ef7][_0x4f22('0x33')])continue;if(_0x4f22('0xc2')==_0x355f21[_0xee8ef7][_0x4f22('0x43')]){_0x355f21[_0xee8ef7][_0x4f22('0xa1')]=0x0;continue;}const _0x34da0d=_0xdd2e7b[_0x4f22('0x10c')](_0x355f21[_0xee8ef7][_0x4f22('0x5d')]),_0x2c8487=_0xdd2e7b[_0x4f22('0x10c')](_0x355f21[_0xee8ef7]['id']);_0x355f21[_0xee8ef7][_0x4f22('0xa1')]=_0x34da0d-_0x2c8487;}}['_getRevisionsRange'](_0xededc4,_0x1fed71,_0x1c227d=!0x1){const _0x27ecdb=[];let _0x5cf6e9=this['repository'][_0x4f22('0x2f')](_0xededc4),_0x40e7bf=this[_0x4f22('0xb6')][_0x4f22('0x2f')](_0x1fed71);for(-0x1==_0x40e7bf&&(_0x40e7bf=this[_0x4f22('0xb6')][_0x4f22('0xc7')]['length'],_0x1c227d=!0x1);_0x5cf6e9<_0x40e7bf;)_0x27ecdb[_0x4f22('0x26')](this['repository'][_0x4f22('0xe1')](_0x5cf6e9)),_0x5cf6e9++;return _0x1c227d&&_0x27ecdb[_0x4f22('0x26')](this['repository']['getRevision'](_0x5cf6e9)),_0x27ecdb;}[_0x4f22('0xa')](_0x176834,_0x59d643,_0x1b122f,_0x15c3de){const _0x3250e9=this['editor']['model'][_0x4f22('0x104')];let _0x41f863=_0x59d643;for(;_0x176834[_0x41f863]&&_0x176834[_0x41f863][_0x4f22('0xe0')];)_0x41f863++;let _0x43b3ff=_0x15c3de;for(;_0x1b122f[_0x43b3ff]&&_0x1b122f[_0x43b3ff]['isRemoved'];)_0x43b3ff++;_0x320dfb(_0x176834,_0x59d643,_0x41f863),_0x320dfb(_0x1b122f,_0x15c3de,_0x43b3ff);const _0x5df12e=_0x1b122f['slice'](_0x15c3de,_0x43b3ff)[_0x4f22('0xfc')](_0x176834[_0x4f22('0x0')](_0x59d643,_0x41f863));return _0x5df12e[_0x4f22('0x8b')]((_0x25eee9,_0x230164)=>_0x25eee9[_0x4f22('0x24')]!=_0x230164['side']?_0x25eee9[_0x4f22('0x24')]-_0x230164['side']:_0x25eee9[_0x4f22('0x1c')]!=_0x230164['level']?_0x25eee9[_0x4f22('0x1c')]-_0x230164[_0x4f22('0x1c')]:_0x25eee9[_0x4f22('0xa1')]!=_0x230164[_0x4f22('0xa1')]?_0x230164[_0x4f22('0xa1')]-_0x25eee9['distance']:!!_0x25eee9['isAdded']!=!!_0x230164['isAdded']?-0x1==_0x25eee9['side']||0x0==_0x25eee9[_0x4f22('0x24')]?_0x25eee9[_0x4f22('0xe0')]?-0x1:0x1:_0x25eee9[_0x4f22('0xe0')]?0x1:-0x1:_0x25eee9['index']-_0x230164[_0x4f22('0x7a')]),{'commonTape':_0x5df12e,'iEnd':_0x41f863,'jEnd':_0x43b3ff};function _0x320dfb(_0x26fb25,_0x2fae27,_0x1e6081){let _0x57874c=-0x1,_0x2e845c=Number[_0x4f22('0x48')],_0x1976e9=!0x0;for(let _0xb92e30=_0x2fae27;_0xb92e30<_0x1e6081;_0xb92e30++)if(_0x3250e9['isInline'](_0x26fb25[_0xb92e30][_0x4f22('0x9d')])||(_0x1976e9=!0x1),_0x26fb25[_0xb92e30][_0x4f22('0x9d')][_0x4f22('0x34')]<_0x2fae27&&(_0x57874c=_0xb92e30),_0x26fb25[_0xb92e30][_0x4f22('0x9d')][_0x4f22('0xd1')]>=_0x1e6081){_0x2e845c=_0xb92e30;break;}_0x1976e9&&(_0x57874c=_0x1e6081-0x1);for(let _0x3c25a4=_0x2fae27;_0x3c25a4<_0x1e6081;_0x3c25a4++)_0x26fb25[_0x3c25a4][_0x4f22('0x24')]=_0x3c25a4<=_0x57874c?-0x1:_0x3c25a4<_0x2e845c?0x0:0x1,_0x26fb25[_0x3c25a4][_0x4f22('0x7a')]=_0x3c25a4;let _0x28babb=0x0;for(let _0x4a181d=_0x2fae27;_0x4a181d<=_0x57874c;_0x4a181d++)0x0==_0x26fb25[_0x4a181d][_0x4f22('0xa1')]?_0x26fb25[_0x4a181d]['level']=_0x28babb:(_0x28babb++,_0x26fb25[_0x4a181d][_0x4f22('0x1c')]=_0x28babb,_0x28babb++);for(let _0x1b2298=_0x2fae27;_0x1b2298<_0x1e6081;_0x1b2298++)0x0==_0x26fb25[_0x1b2298]['side']&&(_0x26fb25[_0x1b2298][_0x4f22('0x1c')]=_0x28babb);_0x28babb=0x0;for(let _0x2474a0=_0x1e6081-0x1;_0x2474a0>=_0x2e845c;_0x2474a0--)0x0==_0x26fb25[_0x2474a0][_0x4f22('0xa1')]?_0x26fb25[_0x2474a0]['level']=_0x28babb:(_0x28babb--,_0x26fb25[_0x2474a0]['level']=_0x28babb,_0x28babb--);}}['_fixObsoleteTags'](_0x2bafe4){const _0x3c14e5=new Map(),_0x4d2bb1=this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x104')];for(let _0x41e03f=0x1;_0x41e03f<_0x2bafe4[_0x4f22('0xe3')];_0x41e03f++){let _0xa73dfc,_0x177089,_0x30ca68;const _0x1c0e9b=_0x2bafe4[_0x41e03f],_0x3d5a8b=_0x2bafe4[_0x41e03f-0x1];if(_0x4f22('0xc2')==_0x1c0e9b[_0x4f22('0x43')])continue;if(_0x1c0e9b[_0x4f22('0x43')]!=_0x3d5a8b['type'])continue;if(!_0x4d2bb1[_0x4f22('0x6d')](_0x3d5a8b['item'])||_0x4d2bb1['isLimit'](_0x3d5a8b['item']))continue;if(!_0x4d2bb1['isBlock'](_0x1c0e9b[_0x4f22('0x9d')])||_0x4d2bb1[_0x4f22('0xba')](_0x1c0e9b['item']))continue;if((_0x2bafe4[_0x41e03f]['isAdded']||_0x2bafe4[_0x41e03f][_0x4f22('0x52')])&&_0x2bafe4[_0x41e03f-0x1][_0x4f22('0x33')])_0xa73dfc=_0x2bafe4[_0x41e03f],_0x177089=_0x2bafe4[_0x41e03f-0x1],_0x30ca68=_0x41e03f-0x1;else{if(!_0x2bafe4[_0x41e03f][_0x4f22('0x33')]||!_0x2bafe4[_0x41e03f-0x1][_0x4f22('0xe0')]&&!_0x2bafe4[_0x41e03f-0x1][_0x4f22('0x52')])continue;_0xa73dfc=_0x2bafe4[_0x41e03f-0x1],_0x177089=_0x2bafe4[_0x41e03f],_0x30ca68=_0x41e03f;}const _0xe9ece8=_0xa73dfc[_0x4f22('0x1c')]==_0x177089[_0x4f22('0x1c')],_0xcc4458=Math[_0x4f22('0x17')](_0xa73dfc[_0x4f22('0x1c')])<Math[_0x4f22('0x17')](_0x177089[_0x4f22('0x1c')])&&0x0==_0x177089[_0x4f22('0xa1')];(_0xe9ece8||_0xcc4458)&&(_0x3c14e5[_0x4f22('0x7b')](_0x177089['id'],_0xa73dfc['id']),_0x2bafe4[_0x4f22('0xc4')](_0x30ca68,0x1),_0x41e03f--,_0xa73dfc['isAdded']=!0x1);}for(let _0x215470=0x0;_0x215470<_0x2bafe4['length'];_0x215470++)_0x3c14e5[_0x4f22('0x91')](_0x2bafe4[_0x215470]['pairId'])&&(_0x2bafe4[_0x215470][_0x4f22('0x5d')]=_0x3c14e5[_0x4f22('0x10c')](_0x2bafe4[_0x215470][_0x4f22('0x5d')]));}[_0x4f22('0xe2')](_0x20eebe){const _0x915bd7=new Set(_0x20eebe[_0x4f22('0x8d')](_0x52f6be=>_0x52f6be['id']));for(let _0x4cde0b=0x0;_0x4cde0b<_0x20eebe[_0x4f22('0xe3')];_0x4cde0b++)_0x915bd7['has'](_0x20eebe[_0x4cde0b][_0x4f22('0x5d')])||0x0==_0x20eebe[_0x4cde0b]['distance']||(_0x20eebe[_0x4cde0b][_0x4f22('0xa6')]=!0x0);return _0x20eebe[_0x4f22('0x81')](_0x2b3bea=>!_0x2b3bea['isIncorrect']);}[_0x4f22('0xcc')](_0x4660bb){const _0x426815=new Set();for(let _0x31342d=0x0;_0x31342d<_0x4660bb[_0x4f22('0xe3')];_0x31342d++){if(_0x426815['has'](_0x4660bb[_0x31342d]['id'])&&_0x4660bb[_0x31342d][_0x4f22('0x33')]&&(_0x4660bb[_0x31342d][_0x4f22('0xa6')]=!0x0),_0x4660bb[_0x31342d][_0x4f22('0xa6')])continue;if(0x0==_0x4660bb[_0x31342d]['distance'])continue;if(_0x4f22('0x97')!=_0x4660bb[_0x31342d][_0x4f22('0x43')])continue;if(null==_0x4660bb[_0x31342d][_0x4f22('0x5d')])continue;let _0x14f713=_0x31342d+0x1,_0x127c81=0x0;for(;_0x4660bb[_0x14f713]['id']!=_0x4660bb[_0x31342d][_0x4f22('0x5d')];)_0x4f22('0x97')==_0x4660bb[_0x14f713][_0x4f22('0x43')]?_0x127c81++:'elementEnd'==_0x4660bb[_0x14f713]['type']&&_0x127c81--,_0x14f713++;if(0x0!=_0x127c81){if(_0x4660bb[_0x31342d][_0x4f22('0x33')])_0x4660bb[_0x31342d][_0x4f22('0xa6')]=!0x0;else for(;_0x14f713!=_0x31342d;)_0x4660bb[_0x14f713][_0x4f22('0x33')]&&0x0!=_0x4660bb[_0x14f713][_0x4f22('0xa1')]&&(_0x4660bb[_0x14f713][_0x4f22('0xa6')]=!0x0,_0x426815[_0x4f22('0x23')](_0x4660bb[_0x14f713][_0x4f22('0x5d')])),_0x14f713--;}}return _0x4660bb[_0x4f22('0x81')](_0x163d74=>!_0x163d74['isIncorrect']);}[_0x4f22('0xb1')](_0x186de2){const _0x1f2775=this[_0x4f22('0x6c')][_0x4f22('0xe6')]['schema'];for(let _0x1bbffc=0x0;_0x1bbffc<_0x186de2['length'];_0x1bbffc++){if(!(_0x186de2[_0x1bbffc][_0x4f22('0xe0')]||_0x186de2[_0x1bbffc]['isAddSuggestion']||_0x186de2[_0x1bbffc][_0x4f22('0x33')]||_0x186de2[_0x1bbffc]['isRemoveSuggestion']))continue;if(0x0==_0x186de2[_0x1bbffc][_0x4f22('0xa1')])continue;const _0x465f44=_0x186de2[_0x1bbffc][_0x4f22('0x9d')];_0x1f2775[_0x4f22('0x6d')](_0x465f44)||_0x1f2775['isLimit'](_0x465f44)||(_0x186de2[_0x1bbffc]['isAdded']&&delete _0x186de2[_0x1bbffc][_0x4f22('0xe0')],_0x186de2[_0x1bbffc][_0x4f22('0x52')]&&delete _0x186de2[_0x1bbffc]['isAddSuggestion'],_0x186de2[_0x1bbffc][_0x4f22('0x11f')]&&delete _0x186de2[_0x1bbffc][_0x4f22('0x11f')],_0x186de2[_0x1bbffc][_0x4f22('0x33')]&&(_0x186de2[_0x1bbffc][_0x4f22('0xa6')]=!0x0));}return _0x186de2[_0x4f22('0x81')](_0x2de353=>!_0x2de353[_0x4f22('0xa6')]);}[_0x4f22('0xab')](_0x344747,_0x5a945a,_0x301e1a){const _0x2f181a=new _0x448404(),_0x1aac78=[],_0x1220db=new Map(),_0x288f9f=this[_0x4f22('0x6c')][_0x4f22('0xe6')],_0x373cc8=_0x288f9f[_0x4f22('0x104')],_0x1dc7b8=[_0x2f181a],_0x3c5a21={},_0x501cc2={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3fe734=null;const _0x194126=[0x0];for(let _0x25f807=0x0;_0x25f807<_0x344747[_0x4f22('0xe3')];_0x25f807++){let _0x30b13a,_0x2e6ad9;if(_0x4f22('0x97')===_0x344747[_0x25f807][_0x4f22('0x43')]){_0x30b13a=_0x288f9f[_0x4f22('0x13')](_0x2f181a,_0x194126);const _0x58d76f=new _0x340e18(_0x344747[_0x25f807]['item'][_0x4f22('0xa5')],_0x344747[_0x25f807][_0x4f22('0x9d')]['getAttributes']());_0x1dc7b8[0x0][_0x4f22('0x89')](_0x58d76f),_0x194126[_0x4f22('0x26')](0x0),_0x1dc7b8['unshift'](_0x58d76f),_0x2e6ad9=_0x288f9f[_0x4f22('0x13')](_0x2f181a,_0x194126),_0x3fe734=null;}else{if('elementEnd'===_0x344747[_0x25f807][_0x4f22('0x43')])_0x1dc7b8[_0x4f22('0xd7')](),_0x30b13a=_0x288f9f['createPositionFromPath'](_0x2f181a,_0x194126),_0x194126['pop'](),_0x194126[_0x194126[_0x4f22('0xe3')]-0x1]++,_0x2e6ad9=_0x288f9f[_0x4f22('0x13')](_0x2f181a,_0x194126),_0x3fe734=null;else{if(_0x30b13a=_0x288f9f[_0x4f22('0x13')](_0x2f181a,_0x194126),_0x3fe734&&_0x4f2dd6(_0x3fe734,_0x344747[_0x25f807][_0x4f22('0x9d')]))_0x3fe734[_0x4f22('0x6e')]+=_0x344747[_0x25f807][_0x4f22('0x9d')][_0x4f22('0x120')];else{const _0x3caf6d=new _0x21d0f8(_0x344747[_0x25f807][_0x4f22('0x9d')][_0x4f22('0x120')],_0x344747[_0x25f807][_0x4f22('0x9d')][_0x4f22('0x10d')]());_0x1dc7b8[0x0][_0x4f22('0x89')](_0x3caf6d),_0x3fe734=_0x3caf6d;}_0x194126[_0x194126[_0x4f22('0xe3')]-0x1]+=_0x344747[_0x25f807][_0x4f22('0x9d')][_0x4f22('0x47')],_0x2e6ad9=_0x288f9f[_0x4f22('0x13')](_0x2f181a,_0x194126);}}for(const _0x3038c5 of _0x344747[_0x25f807]['markersStart'])_0x1220db[_0x4f22('0x7b')](_0x3038c5,{'start':_0x30b13a,'end':null});_0x2e8e22(_0x4f22('0x11f'),_0x25f807,_0x30b13a,_0x2e6ad9),_0x2e8e22('isAddSuggestion',_0x25f807,_0x30b13a,_0x2e6ad9),_0x2e8e22(_0x4f22('0x33'),_0x25f807,_0x30b13a,_0x2e6ad9),_0x2e8e22(_0x4f22('0xe0'),_0x25f807,_0x30b13a,_0x2e6ad9);for(const _0x242ae2 of _0x344747[_0x25f807][_0x4f22('0x84')]){_0x1220db[_0x4f22('0x10c')](_0x242ae2)[_0x4f22('0x111')]=_0x2e6ad9;}}for(const [_0x58b2cc,_0x17eeae]of _0x1220db){const _0x65d9e=this[_0x4f22('0x6c')]['model'][_0x4f22('0xca')](_0x17eeae[_0x4f22('0xa0')],_0x17eeae[_0x4f22('0x111')]);_0x2f181a['markers'][_0x4f22('0x7b')](_0x58b2cc,_0x65d9e);}return _0x1aac78[_0x4f22('0x8b')]((_0xf51ea,_0x415d33)=>{const _0x1953c5=_0x2f181a['markers'][_0x4f22('0x10c')](_0x4f22('0x68')+_0xf51ea['id']),_0xef17cf=_0x2f181a[_0x4f22('0x14')]['get']('revision:'+_0x415d33['id']);return _0x1953c5[_0x4f22('0xa0')]['isBefore'](_0xef17cf[_0x4f22('0xa0')])?-0x1:_0x1953c5[_0x4f22('0xa0')]['isAfter'](_0xef17cf[_0x4f22('0xa0')])?0x1:_0x1953c5['end']['isBefore'](_0xef17cf['end'])?-0x1:_0x1953c5[_0x4f22('0x111')][_0x4f22('0x93')](_0xef17cf[_0x4f22('0x111')])?0x1:_0x4f22('0x23')===_0xf51ea[_0x4f22('0x43')]?-0x1:0x1;}),{'root':_0x2f181a,'changes':_0x1aac78};function _0x2e8e22(_0x3317c4,_0x5494e1,_0x29100c,_0x5b607e){const _0x36def9=!!_0x344747[_0x5494e1][_0x3317c4],_0xd0858a=_0x36def9?_0x344747[_0x5494e1][_0x3317c4][_0x4f22('0xb5')]:null,_0x2197d2=_0x5494e1===_0x344747[_0x4f22('0xe3')]-0x1,_0x46d21d=_0x501cc2[_0x3317c4][0x0],_0x3d0609=_0x373cc8[_0x4f22('0xdc')](_0x344747[_0x5494e1][_0x4f22('0x9d')]);!_0x3c5a21[_0x3317c4]&&_0x36def9?_0x3c5a21[_0x3317c4]={'start':_0x29100c,'tapeItem':_0x344747[_0x5494e1],'userId':_0xd0858a,'type':_0x3317c4}:_0x3c5a21[_0x3317c4]&&!_0x36def9?(_0x3c5a21[_0x3317c4][_0x4f22('0x111')]=_0x29100c,_0x5eb8fd(_0x3c5a21[_0x3317c4]),_0x3c5a21[_0x3317c4]=null):_0x3c5a21[_0x3317c4]&&_0x36def9&&_0x3c5a21[_0x3317c4]['userId']!==_0xd0858a&&(_0x3c5a21[_0x3317c4][_0x4f22('0x111')]=_0x29100c,_0x46d21d&&_0x46d21d['userId']===_0x3c5a21[_0x3317c4][_0x4f22('0xb5')]||_0x5eb8fd(_0x3c5a21[_0x3317c4]),_0x3c5a21[_0x3317c4]={'start':_0x29100c,'tapeItem':_0x344747[_0x5494e1],'userId':_0xd0858a,'type':_0x3317c4}),_0x3c5a21[_0x3317c4]&&_0x3d0609&&(_0x4f22('0x97')!==_0x344747[_0x5494e1][_0x4f22('0x43')]||_0x46d21d&&_0x46d21d[_0x4f22('0xb5')]===_0xd0858a||_0x501cc2[_0x3317c4][_0x4f22('0xf4')]({'userId':_0xd0858a,'object':_0x344747[_0x5494e1][_0x4f22('0x9d')],'change':_0x3c5a21[_0x3317c4]}),_0x4f22('0xad')===_0x344747[_0x5494e1]['type']&&_0x46d21d&&_0x46d21d[_0x4f22('0x3e')]===_0x344747[_0x5494e1][_0x4f22('0x9d')]&&(_0x501cc2[_0x3317c4][_0x4f22('0xd7')](),_0x3c5a21[_0x3317c4]=_0x46d21d['change'])),_0x3c5a21[_0x3317c4]&&_0x2197d2&&(_0x3c5a21[_0x3317c4]['end']=_0x5b607e,_0x5eb8fd(_0x3c5a21[_0x3317c4]),_0x3c5a21[_0x3317c4]=null);}function _0x5eb8fd({start:_0x4a3c53,end:_0xa51cf7,tapeItem:_0xa4492d,userId:_0x242ad3,type:_0x280af9}){const _0x3e21e5=_0xa4492d['item'],_0x9f58e2=_0x288f9f[_0x4f22('0x104')][_0x4f22('0x6d')](_0x3e21e5)&&!_0x288f9f[_0x4f22('0x104')][_0x4f22('0xba')](_0x3e21e5),_0x43a6d0=_0x4a3c53[_0x4f22('0x78')]==_0xa51cf7['parent']&&_0xa51cf7[_0x4f22('0x96')];if(_0x9f58e2&&_0x43a6d0)return;const _0x404d25=_0x288f9f[_0x4f22('0xca')](_0x4a3c53,_0xa51cf7),_0x21a161=_0x5a945a[_0x4f22('0x10c')](_0x242ad3),_0x233db8=new _0x2f0fc5({'author':_0x21a161,'type':_0x4f22('0xe0')==_0x280af9||'isAddSuggestion'==_0x280af9?_0x4f22('0x23'):_0x4f22('0x2b'),'data':{'isSuggestion':_0x4f22('0x52')==_0x280af9||_0x4f22('0x11f')==_0x280af9},'createdAt':new Date(),'rootName':_0x301e1a});_0x1aac78['push'](_0x233db8),_0x2f181a[_0x4f22('0x14')][_0x4f22('0x7b')](_0x4f22('0x68')+_0x233db8['id'],_0x404d25);}function _0x4f2dd6(_0x37b11f,_0x1d2234){const _0x546c0f=_0x37b11f['getAttributes'](),_0xa02aad=_0x1d2234[_0x4f22('0x10d')]();for(const _0x2b5521 of _0x546c0f){if(_0x2b5521[0x1]!==_0x1d2234['getAttribute'](_0x2b5521[0x0]))return!0x1;_0xa02aad['next']();}return _0xa02aad[_0x4f22('0x117')]()[_0x4f22('0xcb')];}}[_0x4f22('0x2c')](){this['editor'][_0x4f22('0x94')][_0x4f22('0xa3')](_0x4f22('0xaa'))[_0x4f22('0x7e')]({'view':_0x4f22('0x37')}),this[_0x4f22('0x6c')]['conversion'][_0x4f22('0xa3')](_0x4f22('0x38'))['markerToHighlight']({'model':_0x4f22('0x37'),'view':_0x4ccf36=>{const _0x48993a=_0x4ccf36['markerName'][_0x4f22('0x44')](':')[0x1],_0x22fe6f=this[_0x4f22('0x116')](_0x48993a);if(!_0x22fe6f)return null;const _0x55a8c1='add'==_0x22fe6f[_0x4f22('0x43')]?'insertion':'deletion',_0x349b40=[_0x4f22('0x39'),_0x4f22('0xf0')+_0x55a8c1];return _0x22fe6f[_0x4f22('0x120')][_0x4f22('0x3')]&&_0x349b40[_0x4f22('0x26')](_0x4f22('0xf0')+_0x55a8c1+_0x4f22('0x114')),this[_0x4f22('0x10f')]==_0x22fe6f&&_0x349b40[_0x4f22('0x26')](_0x4f22('0x85')),{'classes':_0x349b40,'attributes':{'data-change-id':_0x48993a}};}}),this['editor'][_0x4f22('0x94')][_0x4f22('0xa3')]('upcast')[_0x4f22('0x23')](_0x10ffb8=>{_0x10ffb8['on'](_0x4f22('0x5a'),(_0x3b5dfa,_0x2e29c8,_0x2a1a04)=>{const _0x22bae8=_0x2e29c8[_0x4f22('0x71')][_0x4f22('0x29')](0x0);if(!_0x22bae8||!_0x22bae8['is'](_0x4f22('0xd0'),_0x4f22('0x90')))return;if(!_0x2a1a04[_0x4f22('0x124')][_0x4f22('0xf9')](_0x22bae8,{'attributes':[_0x4f22('0x7'),'vid_end']}))return;const _0x5ce5b2=_0x2e29c8[_0x4f22('0xf1')][_0x4f22('0xa0')][_0x4f22('0x78')];_0x2a1a04[_0x4f22('0x118')][_0x4f22('0x25')]('vid_start',_0x22bae8['getAttribute'](_0x4f22('0x7')),_0x5ce5b2),_0x2a1a04['writer'][_0x4f22('0x25')]('vid_end',_0x22bae8[_0x4f22('0x7f')]('vid_end'),_0x5ce5b2);},{'priority':'low'});}),this[_0x4f22('0x6c')][_0x4f22('0x94')][_0x4f22('0xa3')]('upcast')[_0x4f22('0x23')](_0x438f08=>{_0x438f08['on'](_0x4f22('0xd0'),(_0x28a728,_0x4cabbc,_0x113ebb)=>{if(!_0x113ebb[_0x4f22('0x124')]['consume'](_0x4cabbc[_0x4f22('0x71')],{'attributes':[_0x4f22('0x7'),_0x4f22('0x18')]}))return;if(_0x4cabbc[_0x4f22('0xf1')]['isCollapsed'])return;const _0x26829e=_0x4cabbc[_0x4f22('0xf1')][_0x4f22('0xa0')]['nodeAfter'];_0x26829e[_0x4f22('0xf7')]('vid_start')||_0x26829e[_0x4f22('0xf7')](_0x4f22('0x88'))||(_0x113ebb[_0x4f22('0x118')]['setAttribute'](_0x4f22('0x7'),_0x4cabbc[_0x4f22('0x71')][_0x4f22('0x7f')](_0x4f22('0x7')),_0x26829e),_0x113ebb[_0x4f22('0x118')]['setAttribute'](_0x4f22('0x18'),_0x4cabbc[_0x4f22('0x71')][_0x4f22('0x7f')]('vid_end'),_0x26829e));},{'priority':'low'});}),this[_0x4f22('0x6c')][_0x4f22('0x94')][_0x4f22('0xa3')](_0x4f22('0xaa'))[_0x4f22('0x102')]({'view':{'name':_0x4f22('0x49'),'attributes':{'vid':!0x0}},'model':{'key':_0x4f22('0x88'),'value':_0x3886c8=>_0x3886c8['getAttribute'](_0x4f22('0x88'))}}),this['editor'][_0x4f22('0xe6')][_0x4f22('0x104')]['on'](_0x4f22('0xa7'),(_0x2e3b7d,[,_0x31e541])=>{['vid_start',_0x4f22('0x18'),'vid'][_0x4f22('0x9f')](_0x31e541)&&(_0x2e3b7d[_0x4f22('0xb9')]=!0x0,_0x2e3b7d['stop']());},{'priority':_0x4f22('0x3b')}),this[_0x4f22('0x6c')]['conversion'][_0x4f22('0xa3')](_0x4f22('0x6'))[_0x4f22('0x23')](_0x340063=>{_0x340063['on'](_0x4f22('0x95'),(_0x826ebb,_0x121503,_0x2f8e1a)=>{if('\x20'!=_0x121503[_0x4f22('0x9d')]['data']||_0x121503['item']['parent'][_0x4f22('0xbf')]>0x1)return;if(!_0x2f8e1a[_0x4f22('0x124')]['consume'](_0x121503[_0x4f22('0x9d')],_0x826ebb['name']))return;const _0x23eda3=_0x2f8e1a[_0x4f22('0x118')],_0x2c7cda=_0x2f8e1a['mapper'][_0x4f22('0x92')](_0x121503[_0x4f22('0x80')]);_0x23eda3[_0x4f22('0x69')](_0x2c7cda,_0x23eda3[_0x4f22('0xbe')](_0x4f22('0x49')));});}),this[_0x4f22('0x6c')][_0x4f22('0x94')][_0x4f22('0xa3')]('dataDowncast')[_0x4f22('0x4c')]({'model':_0x4f22('0x37')}),this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0xe8')]['on'](_0x4f22('0x4b'),function(_0x19585e){const _0x35f3d8=_0x19585e['plugins'][_0x4f22('0x10c')](_0x4f22('0x72'));return(_0xa6b8b7,_0x345f65,_0x4f1ad3)=>{const _0x3e0f95=_0x345f65[_0x4f22('0x6f')][_0x4f22('0x44')](':')[0x1],_0x32b2e4=_0x35f3d8[_0x4f22('0x116')](_0x3e0f95);if(!_0x32b2e4)return null;const _0x5ca7d9=_0x4f22('0x23')==_0x32b2e4['type']?_0x4f22('0x44'):_0x4f22('0x58');if(!_0x4f1ad3[_0x4f22('0x124')][_0x4f22('0x4a')](_0x345f65[_0x4f22('0x36')],_0xa6b8b7[_0x4f22('0xa5')]))return;const _0x4ecdb7=_0x345f65[_0x4f22('0x36')][_0x4f22('0xd8')](),_0x1501ba=_0x345f65[_0x4f22('0x36')][_0x4f22('0xa0')],_0x17d7cf=_0x19585e['model'][_0x4f22('0x104')];let _0x397386=null,_0x30bf78=null,_0x4ebe78=!0x1,_0x332f65=!0x1;for(const _0x142d61 of _0x4ecdb7){const _0x5d5716=_0x142d61[_0x4f22('0x9d')];_0x4ebe78=_0x4ebe78||_0x17d7cf[_0x4f22('0xfd')](_0x5d5716);const _0x1870b4=_0x4f1ad3[_0x4f22('0xa2')]['toViewElement'](_0x5d5716);if(_0x1870b4&&_0x1870b4['getCustomProperty'](_0x4f22('0x99')))return;'elementEnd'==_0x142d61[_0x4f22('0x43')]&&(_0x17d7cf['isBlock'](_0x5d5716)&&!_0x17d7cf[_0x4f22('0xba')](_0x5d5716)&&(_0x5d5716[_0x4f22('0x46')]||_0x1501ba[_0x4f22('0xcd')]?_0x397386&&_0x397386[_0x4f22('0x21')]==_0x5d5716||(_0x397386=_0x5d5716,_0x24e527(_0x142d61['previousPosition']),_0x332f65=!0x0):_0x30bf78=_0x30bf78||_0x142d61['previousPosition']));}function _0x24e527(_0x2db218){const _0x33ba1a=_0x4f1ad3['writer'][_0x4f22('0x4e')](_0x4f22('0x49'),{'class':_0x4f22('0xf0')+_0x5ca7d9}),_0x3043d1=_0x4f1ad3['mapper'][_0x4f22('0xbb')](_0x2db218);_0x32b2e4[_0x4f22('0x120')][_0x4f22('0x3')]&&_0x4f1ad3[_0x4f22('0x118')][_0x4f22('0xfe')](_0x4f22('0xf0')+_0x5ca7d9+_0x4f22('0x114'),_0x33ba1a),_0x35f3d8[_0x4f22('0x10f')]==_0x32b2e4&&_0x4f1ad3[_0x4f22('0x118')]['addClass'](_0x4f22('0x85'),_0x33ba1a),_0x4f1ad3[_0x4f22('0x118')][_0x4f22('0x50')](_0x3043d1,_0x33ba1a),_0x4f1ad3[_0x4f22('0xa2')][_0x4f22('0x54')](_0x33ba1a,_0x345f65[_0x4f22('0x6f')]);}_0x4ebe78||_0x332f65||!_0x30bf78||_0x24e527(_0x30bf78);};}(this[_0x4f22('0x6c')]),{'priority':_0x4f22('0x6b')}),this[_0x4f22('0x6c')]['editing'][_0x4f22('0xe8')]['on'](_0x4f22('0x10a'),(_0x4934ca,_0x37c2ed,_0x14fc5a)=>{const _0x11da56=_0x14fc5a[_0x4f22('0xa2')]['markerNameToElements'](_0x37c2ed['markerName']);if(_0x11da56)for(const _0xadef02 of _0x11da56)(_0xadef02[_0x4f22('0x66')](_0x4f22('0xaf'))||_0xadef02[_0x4f22('0x66')](_0x4f22('0x45')))&&(_0x14fc5a[_0x4f22('0xa2')][_0x4f22('0x1a')](_0xadef02,_0x37c2ed[_0x4f22('0x6f')]),_0x14fc5a[_0x4f22('0x118')][_0x4f22('0x2b')](_0xadef02));},{'priority':_0x4f22('0x6b')}),this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0xe8')]['on'](_0x4f22('0x4b'),(_0x5a7caa,_0x26f91d,_0x18666f)=>{const _0x58bf3f=_0x26f91d['markerName'][_0x4f22('0x44')](':')[0x1],_0x4e173c=this[_0x4f22('0x116')](_0x58bf3f);if(!_0x4e173c)return null;const _0x3961cc=_0x4f22('0x23')==_0x4e173c[_0x4f22('0x43')]?_0x4f22('0x44'):'merge';if(_0x18666f[_0x4f22('0x124')][_0x4f22('0x4a')](_0x26f91d[_0x4f22('0x36')],_0x5a7caa[_0x4f22('0xa5')]))for(const _0x29e99d of _0x26f91d[_0x4f22('0x36')][_0x4f22('0xd4')]()){if(!_0x29e99d['is']('element',_0x4f22('0xdd')))continue;const _0xf6d6af=_0x18666f[_0x4f22('0x118')][_0x4f22('0x4e')]('span',{'class':_0x4f22('0xf0')+_0x3961cc}),_0x35418b=_0x18666f['mapper']['toViewPosition'](this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0xd')](_0x29e99d));_0x4e173c[_0x4f22('0x120')][_0x4f22('0x3')]&&_0x18666f[_0x4f22('0x118')][_0x4f22('0xfe')](_0x4f22('0xf0')+_0x3961cc+_0x4f22('0x114'),_0xf6d6af),this[_0x4f22('0x10f')]==_0x4e173c&&_0x18666f[_0x4f22('0x118')]['addClass']('ck-suggestion-marker--active',_0xf6d6af),_0x18666f['writer'][_0x4f22('0x50')](_0x35418b,_0xf6d6af),_0x18666f[_0x4f22('0xa2')][_0x4f22('0x54')](_0xf6d6af,_0x26f91d[_0x4f22('0x6f')]);}},{'priority':_0x4f22('0x6b')}),this[_0x4f22('0x6c')][_0x4f22('0xe6')]['document']['on'](_0x4f22('0x7c'),()=>{this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0x7c')](_0xe01fc2=>{for(const _0x3364dd of this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x106')][_0x4f22('0x108')]()){const _0x275419=this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x106')][_0x4f22('0x11d')](_0x3364dd),_0x951a71=this['editor'][_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0x106')][_0x4f22('0x11d')](_0x3364dd);if(_0x951a71){const _0x2bc6f3=_0x275419['getAttribute'](_0x4f22('0x27'));if(_0xe01fc2[_0x4f22('0xc8')](_0x4f22('0x41'),_0x951a71),_0xe01fc2[_0x4f22('0x110')](_0x4f22('0x63'),_0x951a71),_0xe01fc2[_0x4f22('0x110')](_0x4f22('0x3d'),_0x951a71),_0xe01fc2['removeClass'](_0x4f22('0x10e'),_0x951a71),_0x2bc6f3){const _0x587329=this['_getChangeFromId'](_0x2bc6f3);if(!_0x587329)return null;_0xe01fc2[_0x4f22('0x25')](_0x4f22('0x41'),_0x2bc6f3,_0x951a71),_0xe01fc2[_0x4f22('0xfe')](_0x4f22('0x122')+_0x587329[_0x4f22('0x43')],_0x951a71),this['activeChange']==_0x587329&&_0xe01fc2[_0x4f22('0xfe')](_0x4f22('0x10e'),_0x951a71);}}}});}),this[_0x4f22('0x6c')][_0x4f22('0x94')]['for'](_0x4f22('0xaa'))[_0x4f22('0x7e')]({'view':_0x4f22('0x7d'),'model':_0x3e8be9=>_0x4f22('0x2a')+_0x3e8be9,'converterPriority':'highest'}),this[_0x4f22('0x6c')][_0x4f22('0x94')][_0x4f22('0xa3')](_0x4f22('0xaa'))['dataToMarker']({'view':'suggestion','model':_0x2134a6=>'revision-suggestion:'+_0x2134a6,'converterPriority':_0x4f22('0x3b')}),this[_0x4f22('0x6c')][_0x4f22('0x94')]['for'](_0x4f22('0x6'))[_0x4f22('0x4c')]({'model':_0x4f22('0xb8'),'view':_0xb9c967=>({'name':'suggestion:'+_0xb9c967,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor'][_0x4f22('0x94')][_0x4f22('0xa3')](_0x4f22('0x38'))[_0x4f22('0xd2')]({'model':_0x4f22('0xb8'),'view':_0x50fca6=>{const _0x40959f=_0x50fca6[_0x4f22('0x6f')]['split'](':')[0x1];return _0x4f22('0x10b')!=_0x40959f&&'deletion'!=_0x40959f?null:{'classes':['ck-suggestion-preview-marker',_0x4f22('0x28')+_0x40959f]};}}),this[_0x4f22('0x6c')]['editing'][_0x4f22('0xe8')]['on'](_0x4f22('0xf5'),Z(this[_0x4f22('0x6c')],_0x4f22('0x58')),{'priority':_0x4f22('0x6b')}),this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0xe8')]['on'](_0x4f22('0x51'),Z(this[_0x4f22('0x6c')],_0x4f22('0x44')),{'priority':_0x4f22('0x6b')}),this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0xe8')]['on'](_0x4f22('0x112'),(_0xa1b7e8,_0x2b9315,_0x53c38c)=>{const _0x2359a2=_0x53c38c[_0x4f22('0xa2')]['markerNameToElements'](_0x2b9315[_0x4f22('0x6f')]);if(_0x2359a2)for(const _0x12bb38 of _0x2359a2)_0x12bb38['is'](_0x4f22('0x4'))&&(_0x53c38c[_0x4f22('0xa2')][_0x4f22('0x1a')](_0x12bb38,_0x2b9315[_0x4f22('0x6f')]),_0x53c38c[_0x4f22('0x118')]['remove'](_0x12bb38));},{'priority':_0x4f22('0x6b')});}[_0x4f22('0x116')](_0x297b21){return this[_0x4f22('0x22')][_0x4f22('0x10c')](_0x297b21);}['_getViewForChange'](_0x236b75){return this[_0x4f22('0xd6')]&&this['_changeView'][_0x4f22('0x61')](),this[_0x4f22('0xd6')]=new _0x249774(this[_0x4f22('0x6c')]['locale'],_0x236b75),this[_0x4f22('0xd6')];}[_0x4f22('0x4d')](){this[_0x4f22('0x6c')]['model'][_0x4f22('0x106')][_0x4f22('0x10')][_0x4f22('0xed')](_0x4f22('0x37')),this['on'](_0x4f22('0x6a'),(_0x121a0b,_0xf201ca,_0x5a5ea5,_0x56c4fa)=>{_0x56c4fa&&this[_0x4f22('0xa4')][_0x4f22('0x2b')](_0x56c4fa),_0x5a5ea5&&(this[_0x4f22('0xa4')][_0x4f22('0x23')]({'view':_0x5a5ea5,'stackId':_0x4f22('0xd5'),'position':{'target':()=>{const _0x1e7510=this['editor'][_0x4f22('0xb7')],_0x50c6d7=this[_0x4f22('0x116')](_0x5a5ea5[_0x4f22('0x121')]);let _0x219456;if(_0x50c6d7[_0x4f22('0x120')][_0x4f22('0xc0')]){const _0x464c3f=_0x1e7510[_0x4f22('0x1f')][_0x4f22('0xae')](_0x50c6d7[_0x4f22('0x12')]);_0x219456=Array[_0x4f22('0x5c')](_0x464c3f[_0x4f22('0x9c')]());}else{const _0x394ca9=this[_0x4f22('0x6c')][_0x4f22('0xe6')]['markers'][_0x4f22('0x10c')](_0x4f22('0x68')+_0x5a5ea5[_0x4f22('0x121')]);_0x219456=Array[_0x4f22('0x5c')](_0x1e7510['mapper'][_0x4f22('0x35')](_0x394ca9[_0x4f22('0xa5')]))[_0x4f22('0x8d')](_0x4c5d2b=>_0x1e7510[_0x4f22('0x1f')][_0x4f22('0x3c')]['mapViewToDom'](_0x4c5d2b))[_0x4f22('0x8d')](_0x3495f3=>Array[_0x4f22('0x5c')](_0x3495f3[_0x4f22('0x9c')]()))['flat']();}if(!this[_0x4f22('0x16')])return _0x219456[0x0];return _0x219456['find'](_0x5cb08b=>_0x5cb08b[_0x4f22('0xb3')]-0x3<=this['_activeViewTarget']['y']&&_0x5cb08b[_0x4f22('0x109')]+0x3>=this[_0x4f22('0x16')]['y']&&_0x5cb08b['left']-0x3<=this[_0x4f22('0x16')]['x']&&_0x5cb08b[_0x4f22('0xe4')]+0x3>=this[_0x4f22('0x16')]['x'])||_0x219456[0x0];}}}),this[_0x4f22('0xa4')][_0x4f22('0x65')](_0x4f22('0xd5')));}),this['on'](_0x4f22('0x67'),(_0x200318,_0x262213,_0x27259a,_0x475618)=>{this['activeView']=_0x27259a?this[_0x4f22('0xb2')](_0x27259a):null,this[_0x4f22('0x6c')][_0x4f22('0xe6')][_0x4f22('0x7c')](()=>{const _0x68459e=this[_0x4f22('0x6c')][_0x4f22('0xb7')];_0x475618&&(_0x475618[_0x4f22('0x120')][_0x4f22('0xc0')]?_0x68459e[_0x4f22('0x1f')][_0x4f22('0x7c')](_0x5ebd04=>{_0x5ebd04[_0x4f22('0x110')](_0x4f22('0x10e'),_0x68459e['view'][_0x4f22('0x106')]['getRoot'](_0x475618[_0x4f22('0x12')]));}):_0x68459e[_0x4f22('0x9b')](_0x4f22('0x68')+_0x475618['id'])),_0x27259a&&(_0x27259a[_0x4f22('0x120')]['isOnRoot']?_0x68459e['view'][_0x4f22('0x7c')](_0x46ca9e=>{_0x46ca9e[_0x4f22('0xfe')](_0x4f22('0x10e'),_0x68459e[_0x4f22('0x1f')][_0x4f22('0x106')]['getRoot'](_0x27259a[_0x4f22('0x12')]));}):_0x68459e[_0x4f22('0x9b')]('revision:'+_0x27259a['id']));});}),this[_0x4f22('0xbc')](this[_0x4f22('0x6c')][_0x4f22('0xb7')]['view'][_0x4f22('0x106')],_0x4f22('0xa8'),(_0x2d11af,_0x1c0820)=>{if(this[_0x4f22('0x10f')])return;const _0x392171=this[_0x4f22('0xb4')](_0x1c0820[_0x4f22('0x8c')]),_0x58e69c=this[_0x4f22('0x22')][_0x4f22('0x10c')](_0x392171);_0x58e69c?(this[_0x4f22('0x16')]={'x':_0x1c0820[_0x4f22('0x59')]['x'],'y':_0x1c0820[_0x4f22('0x59')]['y']},this['activeView']=this[_0x4f22('0xb2')](_0x58e69c)):(this[_0x4f22('0x16')]=null,this[_0x4f22('0x62')]=null);}),this[_0x4f22('0xbc')](this[_0x4f22('0x6c')][_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0x106')],_0x4f22('0x3f'),(_0x5daa67,_0x7c1602)=>{const _0x1ba3c0=this[_0x4f22('0xb4')](_0x7c1602[_0x4f22('0x8c')]),_0x27c96c=this['_changeIdToChange']['get'](_0x1ba3c0);_0x27c96c?(this[_0x4f22('0x16')]={'x':_0x7c1602[_0x4f22('0x59')]['x'],'y':_0x7c1602[_0x4f22('0x59')]['y']},_0x27c96c===this[_0x4f22('0x10f')]?this['_balloon']['updatePosition']():this[_0x4f22('0x10f')]=_0x27c96c):(this[_0x4f22('0x16')]=null,this[_0x4f22('0x10f')]=null);});}[_0x4f22('0xb4')](_0x2188a8){do{const _0x28a4aa=_0x2188a8[_0x4f22('0x7f')](_0x4f22('0x41'));if(_0x28a4aa)return _0x28a4aa;_0x2188a8=_0x2188a8[_0x4f22('0x21')];}while(_0x2188a8);return null;}[_0x4f22('0x8f')](){this['editor'][_0x4f22('0xe6')][_0x4f22('0x7c')](_0x4ee7b0=>{for(const _0x1c1b17 of this[_0x4f22('0x6c')]['model'][_0x4f22('0x14')])_0x4ee7b0[_0x4f22('0xb0')](_0x1c1b17);});}}function Z(_0x1f8614,_0x47352e){return(_0x5bfb10,_0xedceb4,_0x5258dd)=>{if(!_0x5258dd[_0x4f22('0x124')]['test'](_0xedceb4['markerRange'],_0x5bfb10[_0x4f22('0xa5')]))return;const _0xf07e36=_0xedceb4[_0x4f22('0x36')][_0x4f22('0xd8')](),_0x2cd068=_0xedceb4['markerRange'][_0x4f22('0xa0')],_0x20eebf=_0x1f8614[_0x4f22('0xe6')][_0x4f22('0x104')];let _0x1a8885=null,_0x5a6777=null,_0x597c81=!0x1,_0x1a1008=!0x1;for(const _0x38efcc of _0xf07e36){const _0x5a35bc=_0x38efcc[_0x4f22('0x9d')];_0x597c81=_0x597c81||_0x20eebf[_0x4f22('0xfd')](_0x5a35bc);const _0x3924a2=_0x5258dd[_0x4f22('0xa2')][_0x4f22('0xfa')](_0x5a35bc);if(_0x3924a2&&_0x3924a2[_0x4f22('0x86')](_0x4f22('0x99')))return;_0x4f22('0xad')==_0x38efcc[_0x4f22('0x43')]&&(_0x20eebf[_0x4f22('0x6d')](_0x5a35bc)&&!_0x20eebf['isLimit'](_0x5a35bc)&&(_0x5a35bc[_0x4f22('0x46')]||_0x2cd068[_0x4f22('0xcd')]?_0x1a8885&&_0x1a8885[_0x4f22('0x21')]==_0x5a35bc||(_0x1a8885=_0x5a35bc,_0x46f242(_0x38efcc['previousPosition']),_0x1a1008=!0x0):_0x5a6777=_0x5a6777||_0x38efcc[_0x4f22('0x73')]));}function _0x46f242(_0x141311){const _0x578ab6=_0x5258dd[_0x4f22('0xa2')][_0x4f22('0xbb')](_0x141311),_0x3b3e3b=_0x5258dd[_0x4f22('0x118')]['createUIElement'](_0x4f22('0x49'),{'class':_0x4f22('0x28')+_0x47352e});_0x5258dd[_0x4f22('0x118')][_0x4f22('0x50')](_0x578ab6,_0x3b3e3b),_0x5258dd['mapper'][_0x4f22('0x54')](_0x3b3e3b,_0xedceb4[_0x4f22('0x6f')]);}_0x597c81||_0x1a1008||!_0x5a6777||_0x46f242(_0x5a6777);};}export class RestoreRevisionCommand extends _0x35688b{constructor(_0xf403fc){super(_0xf403fc);const _0x2925c4=_0xf403fc[_0x4f22('0xc1')]['get'](d);this['affectsData']=!0x1,this[_0x4f22('0xbc')](_0x2925c4,_0x4f22('0x98'),()=>this[_0x4f22('0x101')]()),this['listenTo'](_0x2925c4,_0x4f22('0x70'),()=>this[_0x4f22('0x101')]());}[_0x4f22('0xf3')](){const _0x50c39a=this[_0x4f22('0x6c')],_0x36b7a1=_0x50c39a[_0x4f22('0xc1')]['get'](d),_0xd4d6ec=_0x36b7a1[_0x4f22('0xea')]?_0x36b7a1[_0x4f22('0xce')][_0x4f22('0xde')]:null;_0x50c39a[_0x4f22('0x19')]['get'](_0x4f22('0xf8'))['restoreRevisionCallback'](_0xd4d6ec);}[_0x4f22('0x101')](){const {isReady:_0x26703d,isEnabled:_0x598af4}=this[_0x4f22('0x6c')][_0x4f22('0xc1')][_0x4f22('0x10c')](d);this[_0x4f22('0x8a')]=_0x26703d&&_0x598af4;}}export class ShowChangeCommand extends _0x35688b{constructor(_0x486481,{direction:_0x2d65b9}){super(_0x486481);const _0x5a308d=_0x486481[_0x4f22('0xc1')][_0x4f22('0x10c')](d);this['affectsData']=!0x1,this[_0x4f22('0xff')]=_0x4f22('0x2e')===_0x2d65b9?0x1:-0x1,this['listenTo'](_0x5a308d,_0x4f22('0x98'),()=>this[_0x4f22('0x101')]()),this[_0x4f22('0xbc')](_0x5a308d,_0x4f22('0x70'),()=>this[_0x4f22('0x101')]());}[_0x4f22('0xf3')](){const _0x2b3b29=this[_0x4f22('0x6c')],_0x555b70=_0x2b3b29[_0x4f22('0xc1')][_0x4f22('0x10c')](d),{isNavigationMode:_0x1f7ac1,currentChangeNumber:_0xfe4bcc}=_0x555b70;let _0x17b714;if(_0x555b70['activeChange']=_0x1f7ac1?_0x555b70[_0x4f22('0xce')]['changes'][_0x4f22('0x10c')](_0xfe4bcc+this['_step']):_0x555b70[_0x4f22('0xce')][_0x4f22('0xda')][_0x4f22('0xe9')],_0x555b70[_0x4f22('0x10f')][_0x4f22('0x120')][_0x4f22('0xc0')])_0x17b714=_0x2b3b29[_0x4f22('0xb7')][_0x4f22('0x1f')][_0x4f22('0xae')](_0x555b70[_0x4f22('0x10f')][_0x4f22('0x12')]);else{const _0x2c89f6=_0x2b3b29[_0x4f22('0xe6')][_0x4f22('0x14')][_0x4f22('0x10c')](_0x4f22('0x68')+_0x555b70[_0x4f22('0x10f')]['id']);_0x17b714=_0x313195(_0x2b3b29['editing'],_0x2c89f6);}_0x3c451b({'target':_0x17b714,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x59fb4c,currentChangeNumber:_0x2544c7,numberOfChanges:_0x3f129b,isReady:_0x1bda5f,isEnabled:_0x34e593}=this[_0x4f22('0x6c')][_0x4f22('0xc1')][_0x4f22('0x10c')](d);this[_0x4f22('0x8a')]=!!(_0x34e593&&_0x1bda5f&&_0x3f129b)&&(!_0x59fb4c||(0x1===this[_0x4f22('0xff')]?_0x2544c7<_0x3f129b-0x1:_0x2544c7>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe06d=['name','threeVerticalDots','class','bindTemplate','isReady','locale','stopPropagation','bind','children','Compare\x20against\x20selected','button','first','add','_action','isActionsDropdownOpen','listView','ck-revision-history-sidebar__revision__actions','isVisible','Name\x20this\x20revision','execute','source','map','Restore\x20this\x20revision','isEnabled','items','isOpen','action','Show\x20more\x20items','function','model','listenTo','set'];(function(_0x12ba42,_0xe06d8f){const _0x107175=function(_0x134f23){while(--_0x134f23){_0x12ba42['push'](_0x12ba42['shift']());}};_0x107175(++_0xe06d8f);}(_0xe06d,0xb2));const _0x1071=function(_0x12ba42,_0xe06d8f){_0x12ba42=_0x12ba42-0x0;let _0x107175=_0xe06d[_0x12ba42];return _0x107175;};import{Collection as _0x426964}from'ckeditor5/src/utils';import{icons as _0x10c74c}from'ckeditor5/src/core';import{Model as _0x90c29c,addListToDropdown as _0x12051e,createDropdown as _0x4cbee3}from'ckeditor5/src/ui';import{getTranslation as _0x3d529f}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x52cfd,_0x260525){const _0x24171f=_0x52cfd[_0x1071('0x11')],_0x558a4e=_0x52cfd[_0x1071('0x13')],_0x32355e=_0x4cbee3(_0x558a4e);_0x32355e['panelPosition']='sw';const _0x208594=function(_0x29dabf,_0x5d9cfd){const _0x642df=function(_0x53dd1b,_0x25c3a3){const _0x5daa5a=_0x53dd1b[_0x1071('0x13')],_0x53f796={'Compare\x20against\x20selected':_0x3d529f(_0x5daa5a,_0x1071('0x17')),'Name\x20this\x20revision':_0x3d529f(_0x5daa5a,_0x1071('0x0')),'Restore\x20this\x20revision':_0x3d529f(_0x5daa5a,_0x1071('0x4'))};return _0x25c3a3[_0x1071('0x3')](_0x43c473=>{const _0x4e1f0b=_0x53f796[_0x43c473['name']];return _0x4e1f0b&&_0x4e1f0b!==_0x43c473[_0x1071('0xe')]&&(_0x43c473[_0x1071('0xe')]=_0x4e1f0b),_0x43c473;});}(_0x29dabf,_0x5d9cfd),_0x50cbb2=new _0x426964();for(const _0x3c4f6c of _0x642df){const _0x13117a={'type':_0x1071('0x18'),'model':new _0x90c29c({'label':_0x3c4f6c[_0x1071('0xe')],'class':_0x3c4f6c[_0x1071('0x10')],'withText':!0x0,'_action':_0x3c4f6c[_0x1071('0x8')]})};_0x13117a[_0x1071('0xb')]['bind'](_0x1071('0x5'))['to'](_0x29dabf,_0x1071('0x1c'),_0x1af0b6=>_0x1071('0xa')!=typeof _0x3c4f6c[_0x1071('0x5')]||(!_0x1af0b6||_0x3c4f6c[_0x1071('0x5')](_0x29dabf))),_0x50cbb2[_0x1071('0x1a')](_0x13117a);}return _0x50cbb2;}(_0x52cfd,_0x260525);return _0x52cfd[_0x1071('0x15')](_0x1071('0x1c'))['to'](_0x32355e,_0x1071('0x7')),_0x32355e['buttonView'][_0x1071('0xd')]({'label':_0x3d529f(_0x558a4e,_0x1071('0x9')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x10c74c[_0x1071('0xf')]}),_0x32355e['extendTemplate']({'attributes':{'class':[_0x1071('0x1e'),_0x24171f['if'](_0x1071('0x1c'),'ck-on')]},'on':{'click':_0x24171f['to'](_0x158ade=>_0x158ade[_0x1071('0x14')]())}}),_0x32355e['on'](_0x1071('0x1'),_0x4c1086=>{_0x52cfd[_0x1071('0x12')]&&_0x1071('0xa')==typeof _0x4c1086[_0x1071('0x2')][_0x1071('0x1b')]&&_0x4c1086[_0x1071('0x2')][_0x1071('0x1b')](_0x52cfd);}),_0x12051e(_0x32355e,_0x208594),_0x32355e[_0x1071('0xc')](_0x52cfd,'change:isActionsDropdownOpen',(_0x305ec1,_0x1ef8c6,_0x578b3b)=>{if(_0x578b3b)for(const _0x4b9250 of _0x32355e[_0x1071('0x1d')][_0x1071('0x6')]){const _0x5510c5=_0x4b9250[_0x1071('0x16')][_0x1071('0x19')],_0x1fe120=_0x260525['find'](_0x50d11c=>_0x50d11c[_0x1071('0x8')]===_0x5510c5[_0x1071('0x1b')])[_0x1071('0x1f')];_0x4b9250[_0x1071('0x1f')]=void 0x0===_0x1fe120||_0x1fe120(_0x52cfd);}}),_0x32355e;}
23
+ const _0x1327=['bindTemplate','extendTemplate','buttonView','isEnabled','_action','ck-on','isReady','isActionsDropdownOpen','first','items','isOpen','listView','change:isActionsDropdownOpen','source','map','button','action','locale','listenTo','function','execute','class','ck-revision-history-sidebar__revision__actions','set','name','model','isVisible'];(function(_0x2d5dbe,_0x13275c){const _0x4cc089=function(_0x396561){while(--_0x396561){_0x2d5dbe['push'](_0x2d5dbe['shift']());}};_0x4cc089(++_0x13275c);}(_0x1327,0x122));const _0x4cc0=function(_0x2d5dbe,_0x13275c){_0x2d5dbe=_0x2d5dbe-0x0;let _0x4cc089=_0x1327[_0x2d5dbe];return _0x4cc089;};import{Collection as _0x2f3d82}from'ckeditor5/src/utils';import{icons as _0x8ce893}from'ckeditor5/src/core';import{Model as _0x1d9ba0,addListToDropdown as _0x15a5be,createDropdown as _0x4197c6}from'ckeditor5/src/ui';import{getTranslation as _0x2a0534}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x3139bf,_0x54e3ab){const _0x54cd3c=_0x3139bf[_0x4cc0('0x7')],_0x5a0679=_0x3139bf[_0x4cc0('0x18')],_0x31963b=_0x4197c6(_0x5a0679);_0x31963b['panelPosition']='sw';const _0x38bb0e=function(_0x145685,_0xbd794b){const _0x5856bc=function(_0x22cb01,_0x162044){const _0x17aa24=_0x22cb01[_0x4cc0('0x18')],_0x202f6f={'Compare\x20against\x20selected':_0x2a0534(_0x17aa24,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x2a0534(_0x17aa24,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x2a0534(_0x17aa24,'Restore\x20this\x20revision')};return _0x162044[_0x4cc0('0x15')](_0x56c0bb=>{const _0x333a11=_0x202f6f[_0x56c0bb['name']];return _0x333a11&&_0x333a11!==_0x56c0bb[_0x4cc0('0x4')]&&(_0x56c0bb[_0x4cc0('0x4')]=_0x333a11),_0x56c0bb;});}(_0x145685,_0xbd794b),_0x62d5a3=new _0x2f3d82();for(const _0x38a8a9 of _0x5856bc){const _0x5c4d62={'type':_0x4cc0('0x16'),'model':new _0x1d9ba0({'label':_0x38a8a9['name'],'class':_0x38a8a9[_0x4cc0('0x1')],'withText':!0x0,'_action':_0x38a8a9[_0x4cc0('0x17')]})};_0x5c4d62[_0x4cc0('0x5')]['bind'](_0x4cc0('0xa'))['to'](_0x145685,_0x4cc0('0xe'),_0x31bf11=>_0x4cc0('0x1a')!=typeof _0x38a8a9[_0x4cc0('0xa')]||(!_0x31bf11||_0x38a8a9['isEnabled'](_0x145685))),_0x62d5a3['add'](_0x5c4d62);}return _0x62d5a3;}(_0x3139bf,_0x54e3ab);return _0x3139bf['bind']('isActionsDropdownOpen')['to'](_0x31963b,_0x4cc0('0x11')),_0x31963b[_0x4cc0('0x9')][_0x4cc0('0x3')]({'label':_0x2a0534(_0x5a0679,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x8ce893['threeVerticalDots']}),_0x31963b[_0x4cc0('0x8')]({'attributes':{'class':[_0x4cc0('0x2'),_0x54cd3c['if'](_0x4cc0('0xe'),_0x4cc0('0xc'))]},'on':{'click':_0x54cd3c['to'](_0x49e893=>_0x49e893['stopPropagation']())}}),_0x31963b['on'](_0x4cc0('0x0'),_0x44362f=>{_0x3139bf[_0x4cc0('0xd')]&&_0x4cc0('0x1a')==typeof _0x44362f[_0x4cc0('0x14')][_0x4cc0('0xb')]&&_0x44362f[_0x4cc0('0x14')][_0x4cc0('0xb')](_0x3139bf);}),_0x15a5be(_0x31963b,_0x38bb0e),_0x31963b[_0x4cc0('0x19')](_0x3139bf,_0x4cc0('0x13'),(_0x451c56,_0x4a0107,_0x483637)=>{if(_0x483637)for(const _0x4d3fc6 of _0x31963b[_0x4cc0('0x12')][_0x4cc0('0x10')]){const _0x1e16e4=_0x4d3fc6['children'][_0x4cc0('0xf')],_0x3357c2=_0x54e3ab['find'](_0x186434=>_0x186434[_0x4cc0('0x17')]===_0x1e16e4[_0x4cc0('0xb')])[_0x4cc0('0x6')];_0x4d3fc6[_0x4cc0('0x6')]=void 0x0===_0x3357c2||_0x3357c2(_0x3139bf);}}),_0x31963b;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb6c1=['Revision\x20creator','ck-revision-history-sidebar__revision-author__name','Revision\x20author','push','setTemplate','name'];(function(_0x4d885d,_0xb6c13e){const _0x299200=function(_0x2387f4){while(--_0x2387f4){_0x4d885d['push'](_0x4d885d['shift']());}};_0x299200(++_0xb6c13e);}(_0xb6c1,0x78));const _0x2992=function(_0x4d885d,_0xb6c13e){_0x4d885d=_0x4d885d-0x0;let _0x299200=_0xb6c1[_0x4d885d];return _0x299200;};import{View as _0x3872fa,IconView as _0x174544}from'ckeditor5/src/ui';import{getTranslation as _0x2adff0}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x52304c from'../../../theme/icons/user.svg';export default class ti extends _0x3872fa{constructor(_0x147985,_0x51b379,_0x2c0620){super(_0x147985);const _0x29a403=new _0x174544();_0x29a403['set']({'content':_0x52304c,'viewBox':'0\x200\x2011\x2010'});const _0x575c29=['ck','ck-revision-history-sidebar__revision-author'];_0x2c0620&&_0x575c29[_0x2992('0x3')]('ck-revision-history-sidebar__revision-author_creator');const _0xf80f11=[{'tag':'span','attributes':{'class':['ck',_0x2992('0x1')],'title':_0x2adff0(_0x147985,_0x2c0620?_0x2992('0x0'):_0x2992('0x2'))},'children':[_0x29a403,_0x51b379[_0x2992('0x5')]]}];this[_0x2992('0x4')]({'tag':'li','attributes':{'class':_0x575c29},'children':_0xf80f11});}}
23
+ const _0xa769=['Revision\x20creator','push','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author_creator','setTemplate','ck-revision-history-sidebar__revision-author__name','set','span'];(function(_0x4823d1,_0xa76913){const _0x29b1c9=function(_0x1f3da7){while(--_0x1f3da7){_0x4823d1['push'](_0x4823d1['shift']());}};_0x29b1c9(++_0xa76913);}(_0xa769,0x193));const _0x29b1=function(_0x4823d1,_0xa76913){_0x4823d1=_0x4823d1-0x0;let _0x29b1c9=_0xa769[_0x4823d1];return _0x29b1c9;};import{View as _0x3155ae,IconView as _0x31f582}from'ckeditor5/src/ui';import{getTranslation as _0x5bfaed}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x112e88 from'../../../theme/icons/user.svg';export default class ti extends _0x3155ae{constructor(_0x463e08,_0x3044b8,_0x22b445){super(_0x463e08);const _0x30f74c=new _0x31f582();_0x30f74c[_0x29b1('0x3')]({'content':_0x112e88,'viewBox':'0\x200\x2011\x2010'});const _0x54ddfc=['ck',_0x29b1('0x7')];_0x22b445&&_0x54ddfc[_0x29b1('0x6')](_0x29b1('0x0'));const _0x4d8a4c=[{'tag':_0x29b1('0x4'),'attributes':{'class':['ck',_0x29b1('0x2')],'title':_0x5bfaed(_0x463e08,_0x22b445?_0x29b1('0x5'):'Revision\x20author')},'children':[_0x30f74c,_0x3044b8['name']]}];this[_0x29b1('0x1')]({'tag':'li','attributes':{'class':_0x54ddfc},'children':_0x4d8a4c});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x977a=['span','extendTemplate','set','Revision\x20name','ck-revision-history-sidebar__revision-name'];(function(_0x4185ec,_0x977a60){var _0x571a6b=function(_0x3788e8){while(--_0x3788e8){_0x4185ec['push'](_0x4185ec['shift']());}};_0x571a6b(++_0x977a60);}(_0x977a,0x75));var _0x571a=function(_0x4185ec,_0x977a60){_0x4185ec=_0x4185ec-0x0;var _0x571a6b=_0x977a[_0x4185ec];return _0x571a6b;};import{LabeledFieldView as _0x148882}from'ckeditor5/src/ui';import{getTranslation as _0x917094}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x148882{constructor(_0x223eba,_0x4416dd){super(_0x223eba,_0x4416dd),this[_0x571a('0x0')]({'label':_0x917094(_0x223eba,_0x571a('0x1'))}),this[_0x571a('0x4')]({'tag':_0x571a('0x3'),'attributes':{'class':[_0x571a('0x2')]}});}}
23
+ var _0x2831=['set','span','Revision\x20name','extendTemplate'];(function(_0x5f57be,_0x2831a7){var _0x3e7905=function(_0x277a3b){while(--_0x277a3b){_0x5f57be['push'](_0x5f57be['shift']());}};_0x3e7905(++_0x2831a7);}(_0x2831,0x1f4));var _0x3e79=function(_0x5f57be,_0x2831a7){_0x5f57be=_0x5f57be-0x0;var _0x3e7905=_0x2831[_0x5f57be];return _0x3e7905;};import{LabeledFieldView as _0x2834ff}from'ckeditor5/src/ui';import{getTranslation as _0x26f4f0}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x2834ff{constructor(_0x5e6bb8,_0x41b110){super(_0x5e6bb8,_0x41b110),this[_0x3e79('0x0')]({'label':_0x26f4f0(_0x5e6bb8,_0x3e79('0x2'))}),this[_0x3e79('0x3')]({'tag':_0x3e79('0x1'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xccd1=['extendTemplate','ck-revision-history-sidebar__revision__date','div','highlight','isEnabled','unhighlight','name','isActionsDropdownOpen','srcElement','isHighlighted','unshift','ck-revision-history-sidebar__revision_selected','createdAt','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','fire','fieldView','ck-revision-history-sidebar__actions_dropdown_open','bind','isSelected','creator','placeholder','map','setTemplate','select','closest','listenTo','_createdAtFormatted','deselect','ck-reset','ck-revision-history-sidebar__revision','uiLanguage','ck-disabled','change','bindTemplate','revisionActionsView','span','filter','revisionNameView','ck-revision-history-sidebar__revision-wrapper','render','isReady','ck-revision-history-sidebar__revision_highlighted','220','value','ck-revision-history-sidebar__revision__controls-wrapper','set'];(function(_0xb8c7ca,_0xccd1c){const _0x13226e=function(_0x34d104){while(--_0x34d104){_0xb8c7ca['push'](_0xb8c7ca['shift']());}};_0x13226e(++_0xccd1c);}(_0xccd1,0x94));const _0x1322=function(_0xb8c7ca,_0xccd1c){_0xb8c7ca=_0xb8c7ca-0x0;let _0x13226e=_0xccd1[_0xb8c7ca];return _0x13226e;};import{View as _0x37cddf,createLabeledInputText as _0x389d98}from'ckeditor5/src/ui';import{ConfirmMixin as _0x705a6a}from'ckeditor5-collaboration/src/collaboration-core';import _0x2dc520 from'./revisionnameview';import _0x4e4329 from'./revisionauthorview';import{dateToPrettyFormat as _0x128a4b}from'./utils';import{createActionsDropdownView as _0xcd67ed}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x705a6a(_0x37cddf){constructor(_0x2b555d,_0x5d10f9,_0x32e36b){super(_0x2b555d);const _0x4267c8=this[_0x1322('0x17')],_0x198f68=function(_0xc251a8,_0x2bc0e2){const _0x35f21b=Array['from'](_0x2bc0e2['authors'])[_0x1322('0x1a')](_0x21261b=>_0x21261b!=_0x2bc0e2[_0x1322('0x9')]);return _0x2bc0e2[_0x1322('0x9')]&&_0x35f21b[_0x1322('0x0')](_0x2bc0e2[_0x1322('0x9')]),_0x35f21b[_0x1322('0xb')](_0x139548=>new _0x4e4329(_0xc251a8,_0x139548,_0x139548==_0x2bc0e2['creator']));}(_0x2b555d,_0x5d10f9);this['id']=_0x5d10f9['id'],this['_revision']=_0x5d10f9,this['bind'](_0x1322('0x2a'),_0x1322('0x2'))['to'](_0x5d10f9),this[_0x1322('0x7')](_0x1322('0x10'))['to'](this,_0x1322('0x2'),_0x251674=>_0x251674?_0x128a4b(_0x2b555d[_0x1322('0x14')],_0x251674):void 0x0),this[_0x1322('0x23')](_0x1322('0x8'),!0x1),this[_0x1322('0x23')](_0x1322('0x2d'),!0x1),this[_0x1322('0x23')]('isActionsDropdownOpen',!0x1),this['set'](_0x1322('0x1e'),!0x1),this[_0x1322('0x23')](_0x1322('0x28'),!0x1),this[_0x1322('0x1b')]=new _0x2dc520(_0x2b555d,_0x389d98),this['revisionNameView']['fieldView'][_0x1322('0x24')]({'attributes':{'maxlength':_0x1322('0x20')}}),this[_0x1322('0x1b')]['fieldView'][_0x1322('0x7')](_0x1322('0x21'),_0x1322('0xa'))['to'](this,_0x1322('0x2a'),'_createdAtFormatted'),this[_0x1322('0x1b')][_0x1322('0x7')](_0x1322('0x28'))['to'](this,_0x1322('0x8'),this,_0x1322('0x28'),(_0x33fbde,_0xd95d64)=>_0x33fbde&&_0xd95d64),this['revisionActionsView']=_0x32e36b&&_0x32e36b['length']?_0xcd67ed(this,_0x32e36b):'',this[_0x1322('0x18')]&&this[_0x1322('0x18')]['bind'](_0x1322('0x28'))['to'](this),this[_0x1322('0xc')]({'tag':_0x1322('0x26'),'attributes':{'class':['ck',_0x1322('0x12'),_0x1322('0x1c'),_0x4267c8['if']('isConfirm',_0x1322('0x3'))]},'children':[{'tag':_0x1322('0x26'),'attributes':{'class':['ck',_0x1322('0x12'),_0x1322('0x13'),_0x4267c8['if'](_0x1322('0x28'),_0x1322('0x15'),_0x3117a4=>!_0x3117a4),_0x4267c8['if'](_0x1322('0x8'),_0x1322('0x1')),_0x4267c8['if'](_0x1322('0x2d'),_0x1322('0x1f')),_0x4267c8['if'](_0x1322('0x2b'),_0x1322('0x6'))]},'children':[this[_0x1322('0x1b')],{'tag':_0x1322('0x19'),'attributes':{'class':['ck',_0x1322('0x25')]},'children':[{'text':_0x4267c8['to'](_0x1322('0x10'))}]},{'tag':_0x1322('0x26'),'attributes':{'class':['ck',_0x1322('0x22')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x198f68}]},this[_0x1322('0x18')]],'on':{'click':_0x4267c8['to'](_0x45ad45=>{_0x45ad45[_0x1322('0x2c')][_0x1322('0xe')]('.ck-thread__remove-confirm')||this[_0x1322('0x1e')]&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}[_0x1322('0x1d')](){super[_0x1322('0x1d')]();const _0x150d72=this[_0x1322('0x1b')][_0x1322('0x5')]['element'];this[_0x1322('0xf')](_0x150d72,_0x1322('0x16'),()=>{this[_0x1322('0x4')]('setName',{'id':this['id'],'name':_0x150d72[_0x1322('0x21')]});});}[_0x1322('0xd')](){this[_0x1322('0x8')]=!0x0;}[_0x1322('0x11')](){this[_0x1322('0x8')]=!0x1;}[_0x1322('0x27')](){this['isHighlighted']=!0x0;}[_0x1322('0x29')](){this[_0x1322('0x2d')]=!0x1;}}
23
+ const _0x5476=['fieldView','bindTemplate','deselect','set','unshift','placeholder','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','div','createdAt','revisionNameView','from','filter','setTemplate','ck-disabled','length','render','authors','listenTo','highlight','unhighlight','uiLanguage','isSelected','select','ck-revision-history-sidebar__actions_dropdown_open','map','span','ck-revision-history-sidebar__revision__date','creator','isHighlighted','bind','revisionActionsView','isActionsDropdownOpen','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision-authors','.ck-thread__remove-confirm','isEnabled','extendTemplate','ck-revision-history-sidebar__revision__controls-wrapper','closest','element','setName','fire','name','change','ck-revision-history-sidebar__revision_highlighted','220','_createdAtFormatted','value'];(function(_0xa38b69,_0x547650){const _0xbdc77f=function(_0x2486d7){while(--_0x2486d7){_0xa38b69['push'](_0xa38b69['shift']());}};_0xbdc77f(++_0x547650);}(_0x5476,0x8e));const _0xbdc7=function(_0xa38b69,_0x547650){_0xa38b69=_0xa38b69-0x0;let _0xbdc77f=_0x5476[_0xa38b69];return _0xbdc77f;};import{View as _0x49e9c1,createLabeledInputText as _0x2fab31}from'ckeditor5/src/ui';import{ConfirmMixin as _0x5d3f10}from'ckeditor5-collaboration/src/collaboration-core';import _0x3a0907 from'./revisionnameview';import _0x4798b2 from'./revisionauthorview';import{dateToPrettyFormat as _0x12659d}from'./utils';import{createActionsDropdownView as _0x4a85c9}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x5d3f10(_0x49e9c1){constructor(_0x3d53f2,_0x297cc0,_0x2101d1){super(_0x3d53f2);const _0x6e13f9=this[_0xbdc7('0x3')],_0x25425e=function(_0x15179c,_0x37b172){const _0x38ac67=Array[_0xbdc7('0xc')](_0x37b172[_0xbdc7('0x12')])[_0xbdc7('0xd')](_0x691c76=>_0x691c76!=_0x37b172[_0xbdc7('0x1d')]);return _0x37b172[_0xbdc7('0x1d')]&&_0x38ac67[_0xbdc7('0x6')](_0x37b172[_0xbdc7('0x1d')]),_0x38ac67[_0xbdc7('0x1a')](_0xb7949b=>new _0x4798b2(_0x15179c,_0xb7949b,_0xb7949b==_0x37b172[_0xbdc7('0x1d')]));}(_0x3d53f2,_0x297cc0);this['id']=_0x297cc0['id'],this['_revision']=_0x297cc0,this[_0xbdc7('0x1f')](_0xbdc7('0x2c'),_0xbdc7('0xa'))['to'](_0x297cc0),this[_0xbdc7('0x1f')](_0xbdc7('0x0'))['to'](this,_0xbdc7('0xa'),_0x42a889=>_0x42a889?_0x12659d(_0x3d53f2[_0xbdc7('0x16')],_0x42a889):void 0x0),this[_0xbdc7('0x5')]('isSelected',!0x1),this[_0xbdc7('0x5')](_0xbdc7('0x1e'),!0x1),this[_0xbdc7('0x5')](_0xbdc7('0x21'),!0x1),this[_0xbdc7('0x5')]('isReady',!0x1),this[_0xbdc7('0x5')]('isEnabled',!0x1),this['revisionNameView']=new _0x3a0907(_0x3d53f2,_0x2fab31),this[_0xbdc7('0xb')][_0xbdc7('0x2')][_0xbdc7('0x26')]({'attributes':{'maxlength':_0xbdc7('0x2f')}}),this[_0xbdc7('0xb')][_0xbdc7('0x2')]['bind'](_0xbdc7('0x1'),_0xbdc7('0x7'))['to'](this,_0xbdc7('0x2c'),_0xbdc7('0x0')),this[_0xbdc7('0xb')]['bind']('isEnabled')['to'](this,_0xbdc7('0x17'),this,_0xbdc7('0x25'),(_0x2df6c6,_0x4a03f8)=>_0x2df6c6&&_0x4a03f8),this['revisionActionsView']=_0x2101d1&&_0x2101d1[_0xbdc7('0x10')]?_0x4a85c9(this,_0x2101d1):'',this['revisionActionsView']&&this[_0xbdc7('0x20')][_0xbdc7('0x1f')](_0xbdc7('0x25'))['to'](this),this[_0xbdc7('0xe')]({'tag':_0xbdc7('0x9'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x6e13f9['if']('isConfirm',_0xbdc7('0x8'))]},'children':[{'tag':_0xbdc7('0x9'),'attributes':{'class':['ck','ck-reset',_0xbdc7('0x22'),_0x6e13f9['if']('isEnabled',_0xbdc7('0xf'),_0x395f87=>!_0x395f87),_0x6e13f9['if'](_0xbdc7('0x17'),'ck-revision-history-sidebar__revision_selected'),_0x6e13f9['if'](_0xbdc7('0x1e'),_0xbdc7('0x2e')),_0x6e13f9['if'](_0xbdc7('0x21'),_0xbdc7('0x19'))]},'children':[this[_0xbdc7('0xb')],{'tag':_0xbdc7('0x1b'),'attributes':{'class':['ck',_0xbdc7('0x1c')]},'children':[{'text':_0x6e13f9['to'](_0xbdc7('0x0'))}]},{'tag':_0xbdc7('0x9'),'attributes':{'class':['ck',_0xbdc7('0x27')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0xbdc7('0x23')]},'children':_0x25425e}]},this[_0xbdc7('0x20')]],'on':{'click':_0x6e13f9['to'](_0x23728f=>{_0x23728f['srcElement'][_0xbdc7('0x28')](_0xbdc7('0x24'))||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}[_0xbdc7('0x11')](){super[_0xbdc7('0x11')]();const _0x1f1d1c=this['revisionNameView'][_0xbdc7('0x2')][_0xbdc7('0x29')];this[_0xbdc7('0x13')](_0x1f1d1c,_0xbdc7('0x2d'),()=>{this[_0xbdc7('0x2b')](_0xbdc7('0x2a'),{'id':this['id'],'name':_0x1f1d1c[_0xbdc7('0x1')]});});}[_0xbdc7('0x18')](){this[_0xbdc7('0x17')]=!0x0;}[_0xbdc7('0x4')](){this[_0xbdc7('0x17')]=!0x1;}[_0xbdc7('0x14')](){this[_0xbdc7('0x1e')]=!0x0;}[_0xbdc7('0x15')](){this[_0xbdc7('0x1e')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3650=['toggle','span','set','click','isVisible','button','ck-revision-history-sidebar__subrevision-collapser__inner','true','_isCollapsed','false','ck-revision-history-sidebar__subrevision-collapser','bindTemplate'];(function(_0x13b69e,_0x365009){const _0x5ecb49=function(_0x107a74){while(--_0x107a74){_0x13b69e['push'](_0x13b69e['shift']());}};_0x5ecb49(++_0x365009);}(_0x3650,0xb6));const _0x5ecb=function(_0x13b69e,_0x365009){_0x13b69e=_0x13b69e-0x0;let _0x5ecb49=_0x3650[_0x13b69e];return _0x5ecb49;};import{View as _0x2b1ed5}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2b1ed5{constructor(_0x3a75d0){super(_0x3a75d0);const _0x2ad876=this[_0x5ecb('0x9')];this[_0x5ecb('0x0')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x5ecb('0xb'),'attributes':{'class':['ck',_0x5ecb('0x8'),_0x2ad876['if'](_0x5ecb('0x2'),'ck-hidden',_0x3c2a87=>!_0x3c2a87),_0x2ad876['if'](_0x5ecb('0x6'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x5ecb('0x3'),'aria-pressed':_0x2ad876['to'](_0x5ecb('0x6'),_0x5d8fec=>_0x5d8fec?_0x5ecb('0x7'):_0x5ecb('0x5'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x5ecb('0x4')]}}],'on':{'click':_0x2ad876['to'](_0x5ecb('0x1'))}});}[_0x5ecb('0xa')](){this[_0x5ecb('0x6')]=!this[_0x5ecb('0x6')];}}
23
+ const _0x1fe8=['bindTemplate','false','button','click','ck-revision-history-sidebar__subrevision-collapser__inner','span','ck-hidden','isVisible','_isCollapsed','set'];(function(_0x344593,_0x1fe855){const _0x1250ae=function(_0x43382b){while(--_0x43382b){_0x344593['push'](_0x344593['shift']());}};_0x1250ae(++_0x1fe855);}(_0x1fe8,0x13f));const _0x1250=function(_0x344593,_0x1fe855){_0x344593=_0x344593-0x0;let _0x1250ae=_0x1fe8[_0x344593];return _0x1250ae;};import{View as _0xbb756b}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0xbb756b{constructor(_0x29cd94){super(_0x29cd94);const _0x2ad937=this[_0x1250('0x1')];this[_0x1250('0x0')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x1250('0x6'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x2ad937['if'](_0x1250('0x8'),_0x1250('0x7'),_0x3445ff=>!_0x3445ff),_0x2ad937['if'](_0x1250('0x9'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x1250('0x3'),'aria-pressed':_0x2ad937['to'](_0x1250('0x9'),_0xdf2fad=>_0xdf2fad?_0x1250('0x2'):'true')},'children':[{'tag':_0x1250('0x6'),'attributes':{'class':['ck',_0x1250('0x5')]}}],'on':{'click':_0x2ad937['to'](_0x1250('0x4'))}});}['toggle'](){this[_0x1250('0x9')]=!this[_0x1250('0x9')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43c3=['fire','bindTemplate','span','ck-revision-history-sidebar__revision__date','select','ck-revision-history-sidebar__revision','ck-reset','isSelected','div','ck-revision-history-sidebar__revision_selected','uiLanguage','_createdAtFormatted','creator','_parentRevisionId','bind','deselect','createdAt'];(function(_0x2786e6,_0x43c3a1){const _0x142e03=function(_0xf999b5){while(--_0xf999b5){_0x2786e6['push'](_0x2786e6['shift']());}};_0x142e03(++_0x43c3a1);}(_0x43c3,0x10a));const _0x142e=function(_0x2786e6,_0x43c3a1){_0x2786e6=_0x2786e6-0x0;let _0x142e03=_0x43c3[_0x2786e6];return _0x142e03;};import{View as _0xa3fdf}from'ckeditor5/src/ui';import _0x719fe9 from'./revisionauthorview';import{dateToPrettyFormat as _0x116b73}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0xa3fdf{constructor(_0x49cf7b,_0x38da03,_0x27cee5){super(_0x49cf7b);const _0x25149c=this[_0x142e('0x7')];this['id']=_0x38da03['id'],this['bind'](_0x142e('0x5'))['to'](_0x38da03),this['set']('isSelected',!0x1),this['bind'](_0x142e('0x0'))['to'](this,'createdAt',_0x2d657b=>_0x2d657b?_0x116b73(_0x49cf7b[_0x142e('0x10')],_0x2d657b):void 0x0),this[_0x142e('0x2')]=_0x27cee5,this['setTemplate']({'tag':_0x142e('0xe'),'attributes':{'class':['ck',_0x142e('0xc'),_0x142e('0xb'),'ck-revision-history-sidebar__subrevision',_0x25149c['if']('isSelected',_0x142e('0xf'))]},'children':[{'tag':_0x142e('0x8'),'attributes':{'class':['ck',_0x142e('0x9')]},'children':[{'text':_0x25149c['to'](_0x142e('0x0'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x719fe9(_0x49cf7b,_0x38da03[_0x142e('0x1')],!0x0)]}],'on':{'click':_0x25149c['to'](this['select'][_0x142e('0x3')](this))}});}[_0x142e('0xa')](){this[_0x142e('0xd')]=!0x0,this[_0x142e('0x6')](_0x142e('0xa'),{'parentId':this[_0x142e('0x2')]});}[_0x142e('0x4')](){this['isSelected']=!0x1;}}
23
+ const _0x452d=['ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__subrevision','ck-revision-history-sidebar__revision','uiLanguage','span','fire','_createdAtFormatted','bindTemplate','isSelected','creator','bind','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision__date','_parentRevisionId','set','select','deselect','setTemplate'];(function(_0x2aee1a,_0x452d77){const _0x45a360=function(_0x514610){while(--_0x514610){_0x2aee1a['push'](_0x2aee1a['shift']());}};_0x45a360(++_0x452d77);}(_0x452d,0x118));const _0x45a3=function(_0x2aee1a,_0x452d77){_0x2aee1a=_0x2aee1a-0x0;let _0x45a360=_0x452d[_0x2aee1a];return _0x45a360;};import{View as _0xc72a5f}from'ckeditor5/src/ui';import _0x8d4faf from'./revisionauthorview';import{dateToPrettyFormat as _0x2665d6}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0xc72a5f{constructor(_0x375dc3,_0x43eeee,_0x3a1c83){super(_0x375dc3);const _0x514ed7=this[_0x45a3('0xf')];this['id']=_0x43eeee['id'],this['bind']('createdAt')['to'](_0x43eeee),this[_0x45a3('0x4')](_0x45a3('0x10'),!0x1),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4cf7f7=>_0x4cf7f7?_0x2665d6(_0x375dc3[_0x45a3('0xb')],_0x4cf7f7):void 0x0),this[_0x45a3('0x3')]=_0x3a1c83,this[_0x45a3('0x7')]({'tag':'div','attributes':{'class':['ck','ck-reset',_0x45a3('0xa'),_0x45a3('0x9'),_0x514ed7['if'](_0x45a3('0x10'),_0x45a3('0x1'))]},'children':[{'tag':_0x45a3('0xc'),'attributes':{'class':['ck',_0x45a3('0x2')]},'children':[{'text':_0x514ed7['to'](_0x45a3('0xe'))}]},{'tag':'ul','attributes':{'class':['ck',_0x45a3('0x8')]},'children':[new _0x8d4faf(_0x375dc3,_0x43eeee[_0x45a3('0x11')],!0x0)]}],'on':{'click':_0x514ed7['to'](this[_0x45a3('0x5')][_0x45a3('0x0')](this))}});}[_0x45a3('0x5')](){this[_0x45a3('0x10')]=!0x0,this[_0x45a3('0xd')](_0x45a3('0x5'),{'parentId':this[_0x45a3('0x3')]});}[_0x45a3('0x6')](){this[_0x45a3('0x10')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xc0ea=['toLocaleTimeString','numeric'];(function(_0x43742b,_0xc0ead7){var _0x3f35a4=function(_0x51459f){while(--_0x51459f){_0x43742b['push'](_0x43742b['shift']());}};_0x3f35a4(++_0xc0ead7);}(_0xc0ea,0x17f));var _0x3f35=function(_0x43742b,_0xc0ead7){_0x43742b=_0x43742b-0x0;var _0x3f35a4=_0xc0ea[_0x43742b];return _0x3f35a4;};export function dateToPrettyFormat(_0x338b7b,_0x4f57e8){return _0x4f57e8['toLocaleDateString'](_0x338b7b,{'month':'long','day':_0x3f35('0x0')})+',\x20'+_0x4f57e8[_0x3f35('0x1')](_0x338b7b,{'hour':'numeric','minute':_0x3f35('0x0')});}
23
+ var _0x43f8=['toLocaleTimeString','numeric','long'];(function(_0x36bacb,_0x43f890){var _0x7252d9=function(_0x10232b){while(--_0x10232b){_0x36bacb['push'](_0x36bacb['shift']());}};_0x7252d9(++_0x43f890);}(_0x43f8,0x14a));var _0x7252=function(_0x36bacb,_0x43f890){_0x36bacb=_0x36bacb-0x0;var _0x7252d9=_0x43f8[_0x36bacb];return _0x7252d9;};export function dateToPrettyFormat(_0x298194,_0x572dd8){return _0x572dd8['toLocaleDateString'](_0x298194,{'month':_0x7252('0x2'),'day':_0x7252('0x1')})+',\x20'+_0x572dd8[_0x7252('0x0')](_0x298194,{'hour':_0x7252('0x1'),'minute':_0x7252('0x1')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3afa=['set','delegate','_createRevisionNameInput','Save','arrowleft','tab','revisionName','cancelButtonView','listenTo','reset','value','check','locale','fieldView','cancel','_focusables','saveButtonView','_focusCycler','Name\x20of\x20the\x20revision\x20(optional)','render','ck-button-save','type','keystrokes','ck-responsive-form','add','focusTracker','ck-button-cancel','arrowup','revisionNameInputView','trim','arrowdown','forEach','Cancel','focus','input','element','stopPropagation','revisionNameInputValue','execute','_createButton','focusFirst','ck-revision-history-save-revision-form','label','setTemplate','shift\x20+\x20tab'];(function(_0x50a156,_0x3afa62){const _0xaba3c4=function(_0x461b71){while(--_0x461b71){_0x50a156['push'](_0x50a156['shift']());}};_0xaba3c4(++_0x3afa62);}(_0x3afa,0x1b7));const _0xaba3=function(_0x50a156,_0x3afa62){_0x50a156=_0x50a156-0x0;let _0xaba3c4=_0x3afa[_0x50a156];return _0xaba3c4;};import{icons as _0x12b3fe}from'ckeditor5/src/core';import{ButtonView as _0x585282,FocusCycler as _0x8b4aeb,LabeledFieldView as _0x5a6892,View as _0x5985a6,ViewCollection as _0x4fd8da,createLabeledInputText as _0x52aec9,injectCssTransitionDisabler as _0x2c72cf,submitHandler as _0x28a7e9}from'ckeditor5/src/ui';import{FocusTracker as _0x42974d,KeystrokeHandler as _0x1d5b39}from'ckeditor5/src/utils';import{getTranslation as _0xfc2bdc}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class bt extends _0x5985a6{constructor(_0x2a0337){super(_0x2a0337),this['focusTracker']=new _0x42974d(),this[_0xaba3('0x21')]=new _0x1d5b39(),this[_0xaba3('0xb')]('revisionNameInputValue',''),this[_0xaba3('0x27')]=this[_0xaba3('0xd')](),this['saveButtonView']=this[_0xaba3('0x5')](_0xfc2bdc(_0x2a0337,_0xaba3('0xe')),_0x12b3fe[_0xaba3('0x16')],_0xaba3('0x1f')),this[_0xaba3('0x1b')][_0xaba3('0x20')]='submit',this['cancelButtonView']=this[_0xaba3('0x5')](_0xfc2bdc(_0x2a0337,_0xaba3('0x2b')),_0x12b3fe['cancel'],_0xaba3('0x25'),_0xaba3('0x19')),this[_0xaba3('0x1a')]=new _0x4fd8da(),this[_0xaba3('0x1c')]=new _0x8b4aeb({'focusables':this[_0xaba3('0x1a')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0xaba3('0x21')],'actions':{'focusPrevious':_0xaba3('0xa'),'focusNext':_0xaba3('0x10')}}),this[_0xaba3('0x9')]({'tag':'form','attributes':{'class':['ck',_0xaba3('0x7'),_0xaba3('0x22')],'tabindex':'-1'},'children':[this[_0xaba3('0x27')],this[_0xaba3('0x1b')],this[_0xaba3('0x12')]]}),_0x2c72cf(this);}['render'](){super[_0xaba3('0x1e')](),_0x28a7e9({'view':this}),([this['revisionNameInputView'],this['saveButtonView'],this[_0xaba3('0x12')]][_0xaba3('0x2a')](_0x571306=>{this[_0xaba3('0x1a')]['add'](_0x571306),this[_0xaba3('0x24')][_0xaba3('0x23')](_0x571306[_0xaba3('0x1')]);}),this[_0xaba3('0x21')][_0xaba3('0x13')](this['element']));const _0x20d062=_0x4d1ebc=>_0x4d1ebc[_0xaba3('0x2')]();this[_0xaba3('0x21')][_0xaba3('0xb')]('arrowright',_0x20d062),this[_0xaba3('0x21')][_0xaba3('0xb')](_0xaba3('0xf'),_0x20d062),this[_0xaba3('0x21')][_0xaba3('0xb')](_0xaba3('0x26'),_0x20d062),this[_0xaba3('0x21')][_0xaba3('0xb')](_0xaba3('0x29'),_0x20d062);}[_0xaba3('0x2c')](){this[_0xaba3('0x1c')][_0xaba3('0x6')]();}get['revisionName'](){return this[_0xaba3('0x27')]['fieldView'][_0xaba3('0x1')][_0xaba3('0x15')][_0xaba3('0x28')]();}set[_0xaba3('0x11')](_0x1ebc24){this['revisionNameInputView'][_0xaba3('0x18')][_0xaba3('0x1')][_0xaba3('0x15')]=_0x1ebc24[_0xaba3('0x28')]();}[_0xaba3('0x14')](){this[_0xaba3('0x27')]['fieldView'][_0xaba3('0x1')][_0xaba3('0x15')]='';}[_0xaba3('0xd')](){const _0x2e896a=new _0x5a6892(this[_0xaba3('0x17')],_0x52aec9),_0xa0dff1=_0x2e896a[_0xaba3('0x18')];return _0xa0dff1['extendTemplate']({'attributes':{'maxlength':'220'}}),_0x2e896a[_0xaba3('0x8')]=_0xfc2bdc(this[_0xaba3('0x17')],_0xaba3('0x1d')),_0xa0dff1['on'](_0xaba3('0x0'),()=>{this[_0xaba3('0x3')]=_0xa0dff1[_0xaba3('0x1')][_0xaba3('0x15')][_0xaba3('0x28')]();}),_0x2e896a;}['_createButton'](_0x2ab816,_0x547af8,_0x4ef1ec,_0x4f2244){const _0x3dc42a=new _0x585282(this[_0xaba3('0x17')]);return _0x3dc42a['set']({'label':_0x2ab816,'icon':_0x547af8,'tooltip':!0x0}),_0x3dc42a['extendTemplate']({'attributes':{'class':_0x4ef1ec}}),_0x4f2244&&_0x3dc42a[_0xaba3('0xc')](_0xaba3('0x4'))['to'](this,_0x4f2244),_0x3dc42a;}}
23
+ const _0x52ae=['listenTo','execute','reset','keystrokes','_focusCycler','ck-responsive-form','saveButtonView','cancelButtonView','Save','value','input','revisionName','fieldView','set','forEach','220','_createButton','submit','focus','type','cancel','arrowleft','stopPropagation','tab','label','trim','add','element','revisionNameInputValue','focusTracker','arrowright','setTemplate','ck-button-cancel','ck-revision-history-save-revision-form','revisionNameInputView','locale','_focusables','render','extendTemplate','_createRevisionNameInput'];(function(_0x1fe5f5,_0x52ae69){const _0x27690b=function(_0xfdf869){while(--_0xfdf869){_0x1fe5f5['push'](_0x1fe5f5['shift']());}};_0x27690b(++_0x52ae69);}(_0x52ae,0x6c));const _0x2769=function(_0x1fe5f5,_0x52ae69){_0x1fe5f5=_0x1fe5f5-0x0;let _0x27690b=_0x52ae[_0x1fe5f5];return _0x27690b;};import{icons as _0x11fb3f}from'ckeditor5/src/core';import{ButtonView as _0x22db60,FocusCycler as _0x22fc75,LabeledFieldView as _0x5b1850,View as _0x435bdb,ViewCollection as _0x26b4fb,createLabeledInputText as _0x4989aa,injectCssTransitionDisabler as _0x923df0,submitHandler as _0x2a1c63}from'ckeditor5/src/ui';import{FocusTracker as _0x3c1bae,KeystrokeHandler as _0x32bc89}from'ckeditor5/src/utils';import{getTranslation as _0x123abb}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class bt extends _0x435bdb{constructor(_0x4f9be3){super(_0x4f9be3),this['focusTracker']=new _0x3c1bae(),this['keystrokes']=new _0x32bc89(),this[_0x2769('0x19')](_0x2769('0x0'),''),this['revisionNameInputView']=this['_createRevisionNameInput'](),this[_0x2769('0x12')]=this['_createButton'](_0x123abb(_0x4f9be3,_0x2769('0x14')),_0x11fb3f['check'],'ck-button-save'),this[_0x2769('0x12')][_0x2769('0x1f')]=_0x2769('0x1d'),this[_0x2769('0x13')]=this[_0x2769('0x1c')](_0x123abb(_0x4f9be3,'Cancel'),_0x11fb3f['cancel'],_0x2769('0x4'),_0x2769('0x20')),this[_0x2769('0x8')]=new _0x26b4fb(),this[_0x2769('0x10')]=new _0x22fc75({'focusables':this[_0x2769('0x8')],'focusTracker':this[_0x2769('0x1')],'keystrokeHandler':this[_0x2769('0xf')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x2769('0x23')}}),this[_0x2769('0x3')]({'tag':'form','attributes':{'class':['ck',_0x2769('0x5'),_0x2769('0x11')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x2769('0x12')],this[_0x2769('0x13')]]}),_0x923df0(this);}[_0x2769('0x9')](){super['render'](),_0x2a1c63({'view':this}),([this[_0x2769('0x6')],this[_0x2769('0x12')],this[_0x2769('0x13')]][_0x2769('0x1a')](_0x17fac7=>{this[_0x2769('0x8')]['add'](_0x17fac7),this[_0x2769('0x1')][_0x2769('0x26')](_0x17fac7[_0x2769('0x27')]);}),this[_0x2769('0xf')][_0x2769('0xc')](this['element']));const _0x313be5=_0x9a3746=>_0x9a3746[_0x2769('0x22')]();this[_0x2769('0xf')][_0x2769('0x19')](_0x2769('0x2'),_0x313be5),this[_0x2769('0xf')][_0x2769('0x19')](_0x2769('0x21'),_0x313be5),this[_0x2769('0xf')][_0x2769('0x19')]('arrowup',_0x313be5),this[_0x2769('0xf')][_0x2769('0x19')]('arrowdown',_0x313be5);}[_0x2769('0x1e')](){this['_focusCycler']['focusFirst']();}get[_0x2769('0x17')](){return this[_0x2769('0x6')]['fieldView'][_0x2769('0x27')][_0x2769('0x15')][_0x2769('0x25')]();}set[_0x2769('0x17')](_0x429d19){this[_0x2769('0x6')][_0x2769('0x18')][_0x2769('0x27')][_0x2769('0x15')]=_0x429d19[_0x2769('0x25')]();}[_0x2769('0xe')](){this[_0x2769('0x6')][_0x2769('0x18')][_0x2769('0x27')][_0x2769('0x15')]='';}[_0x2769('0xb')](){const _0x2edfde=new _0x5b1850(this[_0x2769('0x7')],_0x4989aa),_0x48a27c=_0x2edfde[_0x2769('0x18')];return _0x48a27c[_0x2769('0xa')]({'attributes':{'maxlength':_0x2769('0x1b')}}),_0x2edfde[_0x2769('0x24')]=_0x123abb(this[_0x2769('0x7')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x48a27c['on'](_0x2769('0x16'),()=>{this[_0x2769('0x0')]=_0x48a27c[_0x2769('0x27')][_0x2769('0x15')][_0x2769('0x25')]();}),_0x2edfde;}[_0x2769('0x1c')](_0x580787,_0x3e4ecd,_0x8c87d5,_0x53d065){const _0x3447ee=new _0x22db60(this[_0x2769('0x7')]);return _0x3447ee['set']({'label':_0x580787,'icon':_0x3e4ecd,'tooltip':!0x0}),_0x3447ee[_0x2769('0xa')]({'attributes':{'class':_0x8c87d5}}),_0x53d065&&_0x3447ee['delegate'](_0x2769('0xd'))['to'](this,_0x53d065),_0x3447ee;}}