@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230811.0 → 0.0.0-nightly-20230812.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 _0x397e=['modelRange','_cleanMarkers','ck-revision-history-root-','bindElementToMarker','indexOf','ck-editor__editable__overlay','split','_revisions','revision','isInline','_balloon','sort','isAfter','toViewPosition','affectsData','flat','getChild','_threeWayMerge','from','mouseover','isSuggestion','elementStart','ck-suggestion-preview-marker','ck-revision-history-root-add','createRevision','_processTape','newRevisionId','toViewRange','index','currentChangeNumber','catch','_activeViewTarget','revision-start','forward','abs','resolve','start','markersStart','isAddSuggestion','nextPosition','concat','suggestion:','text','element:pre','consume','isBlock','data','isOnRoot','commands','showNextChange','revisionHistoryLabel','insertion','_markSuggestions','maxOffset','elementEnd','_cleanUp','markersEnd','schema','useFillerType','_changeView','revision-suggestion:','isAttached','-new','editing','isRemoveSuggestion','attributesAfter','delete','error','shift','compare','numberOfChanges','map','attribute:vid','getRoot','listenTo','ck-suggestion-preview-marker-','restoreRevision','_sortAndFilterDiffChanges','for','deletions','isCollapsed','item','done','writer','left','_getViewObj','activeView','previousPosition','enableReadOnlyMode','startsWith','createRangeIn','bind','addMarker:revision-suggestion:insertion','filter','isLimit','toModel','domEvent','test','isEqual','_update','hasClass','_initInteractions','children','element','ck-revision-history-root-remove','upcast','insert','isNavigationMode','revision-end','first','high','clear','ck-revision-history-root--active','markerToHighlight','side','has','ck-suggestion-marker-','_setChanges','diff','right','addMarker:revision-suggestion:deletion','addRevisionData','plugins','_appendChild','refresh','detachRoot','data-revision-','processor','distance','_makeModelFromTape','viewItem','changeId','hasAttribute','RevisionViewer','unbindElementFromMarkerName','isAdded','_removeRevisionMarkers','document','change:isReady','keys','POSITIVE_INFINITY','view','addHighlight','insertions','attributes','addClass','_joinTapes','_step','mapper','parent','code','target','isIncorrect','revision-comment:','domConverter','execute','pop','nodeAfter','return','offsetSize','getWalker','removeClass','model','consumable','diffData','_makeModelFromViewString','change:activeChange','getDomRoot','length','next','startIndex','_markInsertions','activeChange','vid_end','markerName','add','getRootNames','_changeIdToChange','pairId','vid','find','restoreRevisionCallback','_fixObsoleteTags','getClientRects','type','enqueueChange','addRoot','isRemoved','nextSibling','merge','adapter','highest','low','downcastDispatcher','change:isEnabled','config','findIndex','get','setAttribute','set','showStack','end','parse','getIndex','userId','forceDisabled','all','getItems','markerNameToElements','ck-suggestion-marker-merge','isEnabled','markerRange','revisionHistory','softBreak','attachChange','data-change-id','uiElement','push','vid_start','WidgetToolbarRepository','bottom','init','change','forEach','_removeMissingPairs','rootName','deletion','addMarker:revision','reconvertMarker','changes','level','slice','_setDistance','getRevision','_getDiff','toViewElement','string','revision-viewer','mousedown','change:activeView','endIndex','locale','revision-suggestion','ck-suggestion-marker--active','editingDowncast','span','remove','stop','createPositionFromPath','getAttributes','top','oldRevisionId','markers','_getViewForChange','createUIElement','_markMarkers','authors','wrap','createAttributeElement','destroy','unshift','splice','getAttribute','_getChangeFromId','collaboration.channelId','revisionHistoryAttachChange','editor','_markMismatchedRemovedTags','name','isReady','revision:','then','change:numberOfChanges','_setConversion','showPreviousChange','dataDowncast','isAtStart','isAtEnd','getRevisionRootsAttributes','markerToData','dataToMarker','repository','conversion','roots','toData','_removeUnsupportedChanges','_makeTape','ck-suggestion-marker-split','getCustomProperty','_findChangeIdFromDomTarget','comment','includes','loadRevisionData'];(function(_0x4cd812,_0x397ef7){const _0x5f56eb=function(_0x2d4061){while(--_0x2d4061){_0x4cd812['push'](_0x4cd812['shift']());}};_0x5f56eb(++_0x397ef7);}(_0x397e,0x1a7));const _0x5f56=function(_0x4cd812,_0x397ef7){_0x4cd812=_0x4cd812-0x0;let _0x5f56eb=_0x397e[_0x4cd812];return _0x5f56eb;};import{Plugin as _0x5e3775,Command as _0x14259b}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x455a82}from'ckeditor5/src/utils';import{ContextualBalloon as _0x38ab13}from'ckeditor5/src/ui';import{DocumentFragment as _0x2dd089,Element as _0x33325d,Text as _0x3840ba,ViewDocumentFragment as _0x2d9ce0,ViewText as _0x1cd1ec,ViewElement as _0x119151,ViewContainerElement as _0xcd952c,ViewAttributeElement as _0x5e4e34,ViewEmptyElement as _0x165648,ViewRawElement as _0x39344b,ViewUIElement as _0x310436}from'ckeditor5/src/engine';import{Users as _0x26dad2,getMarkerDomElement as _0x43e17b}from'ckeditor5-collaboration/src/collaboration-core';import _0x3a00c8 from'./ui/revisionviewer/changedetailsview';import _0x2f3486 from'./revisionsrepository';import _0x3348ea from'./changeitem';import{default as _0xe16e1c}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x413fed}from'lodash-es';const tt={'c':_0xcd952c,'a':_0x5e4e34,'e':_0x165648,'r':_0x39344b,'u':_0x310436};export default class d extends _0x5e3775{static get['pluginName'](){return _0x5f56('0x3');}static get['requires'](){return[_0x26dad2,_0x38ab13,_0x2f3486];}constructor(_0x12e070){super(_0x12e070),this[_0x5f56('0x97')]=this[_0x5f56('0x88')]['plugins'][_0x5f56('0x43')]('RevisionsRepository'),this[_0x5f56('0x45')](_0x5f56('0x2a'),null),this[_0x5f56('0x45')](_0x5f56('0xf9'),null),this[_0x5f56('0xc2')]=null,this[_0x5f56('0x45')]('diff',null),this[_0x5f56('0x45')](_0x5f56('0x8b'),!0x1),this[_0x5f56('0x45')](_0x5f56('0x50'),!0x0),this['on'](_0x5f56('0x40'),(_0x411913,_0x568d6d,_0xc5831c)=>{this[_0x5f56('0x2a')]=null,this['activeView']=null,this[_0x5f56('0x88')][_0x5f56('0xe2')][_0x5f56('0xb')]['change'](_0x551320=>{for(const _0x278ccf of this[_0x5f56('0x88')][_0x5f56('0xe2')][_0x5f56('0xb')][_0x5f56('0x7')][_0x5f56('0x99')])_0xc5831c?_0x551320[_0x5f56('0x1f')]('ck-editor__editable__overlay',_0x278ccf):_0x551320[_0x5f56('0xf')](_0x5f56('0xa8'),_0x278ccf);});}),this['bind'](_0x5f56('0x10e'))['to'](this,'activeChange',_0x2bf6b4=>null!==_0x2bf6b4),this['bind'](_0x5f56('0xc0'))['to'](this,_0x5f56('0x8b'),this,_0x5f56('0x119'),this,_0x5f56('0x2a'),(_0x1e6bfb,_0x2b863d,_0xf6614b)=>_0x1e6bfb&&_0xf6614b?_0x2b863d[_0x5f56('0x63')][_0x5f56('0x49')](_0xf6614b):0x0),this[_0x5f56('0xfe')](_0x5f56('0xe9'))['to'](this,_0x5f56('0x8b'),this,_0x5f56('0x119'),(_0x56de28,_0x3d8417)=>_0x56de28?_0x3d8417[_0x5f56('0x63')][_0x5f56('0x26')]:0x0),this[_0x5f56('0xde')]=null,this[_0x5f56('0x2f')]=new Map(),this[_0x5f56('0x3c')]=null,this['_balloon']=this['editor'][_0x5f56('0x11d')][_0x5f56('0x43')](_0x38ab13);}[_0x5f56('0x5b')](){const _0x4f67bd=this[_0x5f56('0x88')],_0x1cf2f5=new ShowChangeCommand(_0x4f67bd,{'direction':'backward'}),_0x590451=new ShowChangeCommand(_0x4f67bd,{'direction':_0x5f56('0xc4')});(_0x4f67bd['commands']['add'](_0x5f56('0x90'),_0x1cf2f5),_0x4f67bd['commands'][_0x5f56('0x2d')](_0x5f56('0xd4'),_0x590451),_0x4f67bd[_0x5f56('0xd3')][_0x5f56('0x2d')](_0x5f56('0xef'),new RestoreRevisionCommand(_0x4f67bd)),this['on'](_0x5f56('0x8e'),()=>{_0x1cf2f5[_0x5f56('0x11f')](),_0x590451[_0x5f56('0x11f')]();}),this[_0x5f56('0x8f')](),this['_initInteractions'](),_0x4f67bd[_0x5f56('0xfb')](_0x5f56('0x6b')),_0x4f67bd['plugins'][_0x5f56('0x116')](_0x5f56('0x59')))&&_0x4f67bd[_0x5f56('0x11d')]['get'](_0x5f56('0x59'))[_0x5f56('0x4b')]('revision-viewer');}async['getRevisionData'](_0x2d4e8d){await this[_0x5f56('0xa2')](_0x2d4e8d);const _0xe5cb4a={};for(const _0x3b6736 in _0x2d4e8d[_0x5f56('0x22')]){if(_0x2d4e8d['diffData'][_0x3b6736][_0x5f56('0x54')]&&!_0x2d4e8d[_0x5f56('0x22')][_0x3b6736][_0x5f56('0x54')][_0x5f56('0xe0')])continue;const _0x1f564c=this[_0x5f56('0x6')](JSON[_0x5f56('0x48')](_0x2d4e8d[_0x5f56('0x22')][_0x3b6736][_0x5f56('0xd')])),_0x4fb574=this[_0x5f56('0x88')]['editing'][_0x5f56('0xb')][_0x5f56('0x7')],_0x1f623d=new _0x2d9ce0(_0x4fb574,_0x1f564c[_0x5f56('0xea')](_0x4b3f43=>this[_0x5f56('0xf8')](_0x4b3f43)));this[_0x5f56('0x88')][_0x5f56('0xd1')]['processor']['useFillerType']('marked'),_0xe5cb4a[_0x3b6736]=this['editor']['data']['processor'][_0x5f56('0x9a')](_0x1f623d),this['editor'][_0x5f56('0xd1')][_0x5f56('0x122')][_0x5f56('0xdd')]('default');}return _0xe5cb4a;}async[_0x5f56('0x94')](_0x55ae0b){await this[_0x5f56('0xa2')](_0x55ae0b);const _0x818fcd={};for(const _0x249362 in _0x55ae0b[_0x5f56('0x22')])_0x55ae0b[_0x5f56('0x22')][_0x249362]['attachChange']&&!_0x55ae0b[_0x5f56('0x22')][_0x249362][_0x5f56('0x54')][_0x5f56('0xe0')]||(_0x818fcd[_0x249362]=_0x55ae0b[_0x5f56('0x22')][_0x249362][_0x5f56('0xe4')]||{});return _0x818fcd;}['_removeRevisionMarkers'](_0x311eb4){return(_0x311eb4=_0x311eb4[_0x5f56('0x100')](_0x132424=>!_0x132424[_0x5f56('0x8a')]||_0x5f56('0xc3')!==_0x132424['name']&&_0x5f56('0x10f')!==_0x132424[_0x5f56('0x8a')]))[_0x5f56('0x5d')](_0x1e4b18=>{_0x5f56('0x6a')!=typeof _0x1e4b18&&(_0x1e4b18[_0x5f56('0x109')]=this[_0x5f56('0x6')](_0x1e4b18[_0x5f56('0x109')]),_0x1e4b18[_0x5f56('0xe')]=_0x1e4b18['attributes']['filter'](_0x27e114=>!_0x27e114[0x0][_0x5f56('0xfc')](_0x5f56('0x121'))));}),_0x311eb4;}async[_0x5f56('0xe8')](_0x42ba2b,_0xc14e58,_0xa701cb=!0x1){if(!this[_0x5f56('0x50')])return;const _0x51d66d=this['diff'],_0x55e3d5=this[_0x5f56('0x97')],_0x1d3e73=_0x5f56('0x6a')==typeof _0x42ba2b?_0x55e3d5[_0x5f56('0x67')](_0x42ba2b):_0x42ba2b,_0x154f52=_0x5f56('0x6a')==typeof _0xc14e58?_0x55e3d5[_0x5f56('0x67')](_0xc14e58):_0xc14e58,_0x2f6907=_0x1d3e73['id'],_0x1b75db=_0x154f52?_0x154f52['id']:null;if(!_0xa701cb&&this[_0x5f56('0x119')]&&this[_0x5f56('0x119')][_0x5f56('0xbd')]===_0x2f6907&&this[_0x5f56('0x119')][_0x5f56('0x79')]===_0x1b75db)return Promise[_0x5f56('0xc6')]();this['isReady']=!0x1,this['activeView']=null,this[_0x5f56('0x2a')]=null,this[_0x5f56('0x119')]=new _0xe16e1c(_0x2f6907,_0x1b75db);const _0x18214e=this['_getRevisionsRange'](_0x1d3e73,_0x154f52,!0x0)['map'](_0xfc2021=>this['loadRevisionData'](_0xfc2021));return _0x18214e[_0x5f56('0x57')](new Promise(_0x21045b=>{setTimeout(_0x21045b,0x14);})),Promise[_0x5f56('0x4c')](_0x18214e)[_0x5f56('0x8d')](()=>{if(!this[_0x5f56('0x50')])return;this[_0x5f56('0xda')]();const _0x1781e0=this[_0x5f56('0x68')](_0x2f6907,_0x1b75db);for(const _0x1b075a of _0x1781e0[_0x5f56('0x63')])this[_0x5f56('0x2f')][_0x5f56('0x45')](_0x1b075a['id'],_0x1b075a);this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0x37')]({'isUndoable':!0x1},_0x135660=>{for(const _0x30a672 of this['editor'][_0x5f56('0x20')][_0x5f56('0x7')][_0x5f56('0x2e')]())_0x135660[_0x5f56('0x120')](_0x30a672);for(const _0x278696 of Object['keys'](_0x1781e0[_0x5f56('0x20')])){const _0x4e1d90=_0x135660[_0x5f56('0x38')](_0x278696);for(const _0x2f59f0 of Object[_0x5f56('0x9')](_0x1781e0[_0x5f56('0xe')][_0x278696]))_0x135660[_0x5f56('0x44')](_0x2f59f0,_0x1781e0['attributes'][_0x278696][_0x2f59f0],_0x4e1d90);_0x135660[_0x5f56('0x10d')](_0x1781e0['model'][_0x278696],_0x4e1d90,0x0);}}),this[_0x5f56('0x119')][_0x5f56('0x118')](this[_0x5f56('0xf0')](_0x1781e0[_0x5f56('0x63')])),this['isReady']=!0x0;})[_0x5f56('0xc1')](_0x3ae99a=>{console[_0x5f56('0xe6')](_0x3ae99a),this[_0x5f56('0xda')](),_0x51d66d&&(this[_0x5f56('0x119')]=_0x51d66d),this[_0x5f56('0x8b')]=!0x0;});}[_0x5f56('0x11c')](_0x21c268,_0x1a406a){const _0x587e72=this[_0x5f56('0x97')][_0x5f56('0xbb')](_0x21c268);return _0x587e72['on']('_update',(_0x2c262c,_0x5c92e6,_0x6ea07b)=>_0x1a406a(_0x5c92e6,_0x6ea07b,_0x587e72)),this[_0x5f56('0x97')]['addRevision'](_0x587e72),_0x587e72;}[_0x5f56('0xa2')](_0x515e58){if(!_0x515e58||_0x515e58[_0x5f56('0x22')])return Promise['resolve']();{const _0x4660b8=this['editor'][_0x5f56('0x41')][_0x5f56('0x43')](_0x5f56('0x86'));return this[_0x5f56('0x3c')][_0x5f56('0x67')]({'channelId':_0x4660b8,'revisionId':_0x515e58['id']})[_0x5f56('0x8d')](_0x4cc305=>{_0x515e58[_0x5f56('0x106')]({'diffData':_0x4cc305['diffData']},!0x0);});}}[_0x5f56('0xda')](){this['activeChange']=null,this[_0x5f56('0xa4')](),this[_0x5f56('0xde')]&&this[_0x5f56('0xde')][_0x5f56('0x81')](),this[_0x5f56('0xde')]=null,this[_0x5f56('0x2f')][_0x5f56('0x112')](),this[_0x5f56('0x88')][_0x5f56('0x20')]['enqueueChange']({'isUndoable':!0x1},_0x3113e0=>{for(const _0x585d3b of this['editor'][_0x5f56('0x20')][_0x5f56('0x7')][_0x5f56('0x2e')]())_0x3113e0[_0x5f56('0x120')](_0x585d3b);});}[_0x5f56('0xf0')](_0x3d94d0){const _0x27c440=[],_0x528ed6=new Map();for(const _0x3d865c of this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0x7')][_0x5f56('0x2e')]()){const _0x4d6b21=this[_0x5f56('0x88')]['editing'][_0x5f56('0xb')][_0x5f56('0x25')](_0x3d865c);if(!_0x4d6b21)continue;const _0x417cd6=_0x4d6b21[_0x5f56('0x35')]()[_0x5f56('0xf4')](0x0);_0x417cd6&&(_0x27c440['push'](_0x3d865c),_0x528ed6[_0x5f56('0x45')](_0x3d865c,_0x417cd6));}return _0x27c440[_0x5f56('0xae')]((_0x214df9,_0x5b5f5b)=>{const _0x2398c6=_0x528ed6[_0x5f56('0x43')](_0x214df9),_0x1e2dcd=_0x528ed6[_0x5f56('0x43')](_0x5b5f5b);return _0x2398c6['y']-_0x1e2dcd['y']||_0x2398c6['x']-_0x1e2dcd['x'];}),(_0x3d94d0=_0x3d94d0['filter'](_0x49d375=>_0x27c440[_0x5f56('0xa1')](_0x49d375[_0x5f56('0x5f')])))[_0x5f56('0xae')]((_0x464726,_0x215854)=>_0x27c440[_0x5f56('0xa7')](_0x464726[_0x5f56('0x5f')])-_0x27c440[_0x5f56('0xa7')](_0x215854['rootName'])),_0x3d94d0;}[_0x5f56('0x9c')](_0x494b25){const _0x2d51e3=Array[_0x5f56('0xb5')](_0x494b25['markers'])[_0x5f56('0x100')](([_0x3e80fc,_0x5b0493])=>_0x3e80fc['startsWith']('revision:')&&!_0x5b0493[_0x5f56('0xf3')]),_0x3d414e=Array[_0x5f56('0xb5')](this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0xfd')](_0x494b25)[_0x5f56('0x1e')]({'singleCharacters':!0x0}));if(0x0!=_0x2d51e3[_0x5f56('0x26')])for(const _0xd9c778 of _0x3d414e){const [_0x5b67d0,_0xaf8667]=_0x2d51e3[0x0],[,_0x24787f,_0x544d3d]=_0x5b67d0[_0x5f56('0xa9')](':');if(_0xaf8667[_0x5f56('0x47')][_0x5f56('0x105')](_0xd9c778[_0x5f56('0xca')])&&_0x2d51e3[_0x5f56('0xe7')](),(_0xd9c778['previousPosition'][_0x5f56('0x105')](_0xaf8667['start'])||_0xd9c778['previousPosition'][_0x5f56('0xaf')](_0xaf8667[_0x5f56('0xc7')]))&&(_0x5f56('0xd6')==_0x24787f?_0xd9c778[_0x5f56('0x5')]={'userId':_0x544d3d}:'deletion'==_0x24787f&&(_0xd9c778[_0x5f56('0x39')]={'userId':_0x544d3d})),0x0==_0x2d51e3[_0x5f56('0x26')])break;}return _0x3d414e;}['_refreshStartEndIndex'](_0x264815){const _0x2c2813=new Map();for(let _0x4bf6f1=0x0;_0x4bf6f1<_0x264815['length'];_0x4bf6f1++)_0x5f56('0xcd')===_0x264815[_0x4bf6f1][_0x5f56('0x36')]?(_0x264815[_0x4bf6f1][_0x5f56('0xf4')][_0x5f56('0x28')]=_0x4bf6f1,_0x264815[_0x4bf6f1]['item']['endIndex']=_0x4bf6f1):('elementStart'===_0x264815[_0x4bf6f1][_0x5f56('0x36')]?_0x264815[_0x4bf6f1][_0x5f56('0xf4')][_0x5f56('0x28')]=_0x4bf6f1:_0x5f56('0xd9')===_0x264815[_0x4bf6f1][_0x5f56('0x36')]&&(_0x264815[_0x4bf6f1][_0x5f56('0xf4')][_0x5f56('0x6e')]=_0x4bf6f1),_0x2c2813['set'](_0x264815[_0x4bf6f1]['id'],_0x4bf6f1));for(const _0x2b90da of _0x2c2813['values']())_0x5f56('0xb8')===_0x264815[_0x2b90da][_0x5f56('0x36')]?_0x264815[_0x2b90da][_0x5f56('0xf4')][_0x5f56('0x6e')]=_0x2c2813[_0x5f56('0x43')](_0x264815[_0x2b90da][_0x5f56('0x30')]):_0x5f56('0xd9')===_0x264815[_0x2b90da]['type']&&(_0x264815[_0x2b90da][_0x5f56('0xf4')][_0x5f56('0x28')]=_0x2c2813[_0x5f56('0x43')](_0x264815[_0x2b90da][_0x5f56('0x30')]));}[_0x5f56('0xbc')](_0x15e190){for(let _0x11ba2b=0x0;_0x11ba2b<_0x15e190[_0x5f56('0x26')];_0x11ba2b++){if(_0x5f56('0xb8')===_0x15e190[_0x11ba2b][_0x5f56('0x36')])_0x15e190[_0x11ba2b]['item']['startIndex']=_0x11ba2b;else{if('elementEnd'===_0x15e190[_0x11ba2b]['type']){_0x15e190[_0x11ba2b][_0x5f56('0xf4')][_0x5f56('0x6e')]=_0x11ba2b;const _0x2cd40f=_0x15e190[_0x11ba2b][_0x5f56('0xf4')][_0x5f56('0x28')];_0x15e190[_0x2cd40f][_0x5f56('0x30')]=_0x15e190[_0x11ba2b]['id'],_0x15e190[_0x11ba2b][_0x5f56('0x30')]=_0x15e190[_0x2cd40f]['id'];}else _0x15e190[_0x11ba2b][_0x5f56('0xf4')][_0x5f56('0x28')]=_0x11ba2b,_0x15e190[_0x11ba2b][_0x5f56('0xf4')][_0x5f56('0x6e')]=_0x11ba2b,_0x15e190[_0x11ba2b]['pairId']=null;}_0x15e190[_0x11ba2b][_0x5f56('0xc8')]||(_0x15e190[_0x11ba2b][_0x5f56('0xc8')]=[],_0x15e190[_0x11ba2b][_0x5f56('0xdb')]=[]);}}['_markInsertions'](_0x3627f5,_0x1abfc1){const _0x1ca9fe=_0x3627f5['filter'](_0x28334f=>!_0x28334f[_0x5f56('0x5')]);for(let _0x46c672=0x0;_0x46c672<_0x1abfc1[_0x5f56('0x26')];_0x46c672++)_0x1abfc1[_0x46c672][_0x5f56('0x5')]&&(_0x1ca9fe[_0x46c672]['isAdded']=_0x1abfc1[_0x46c672][_0x5f56('0x5')]);}[_0x5f56('0x23')](_0x53eba8){const _0x3fffbc=JSON['parse'](_0x53eba8),_0x205990=this['editor'][_0x5f56('0xe2')][_0x5f56('0xb')][_0x5f56('0x7')],_0x13d417=new _0x2d9ce0(_0x205990,_0x3fffbc[_0x5f56('0xea')](_0x47caf4=>this[_0x5f56('0xf8')](_0x47caf4)));return this['editor'][_0x5f56('0xd1')][_0x5f56('0x102')](_0x13d417);}['_getViewObj'](_0x4f2eec){const _0x5e1fb9=this[_0x5f56('0x88')][_0x5f56('0xe2')][_0x5f56('0xb')][_0x5f56('0x7')];if(_0x5f56('0x6a')==typeof _0x4f2eec)return new _0x1cd1ec(_0x5e1fb9,_0x4f2eec);{const _0x5a48e0=_0x4f2eec[_0x5f56('0x109')][_0x5f56('0xea')](_0x63df2a=>this['_getViewObj'](_0x63df2a));return new(tt[_0x4f2eec['type']]||_0x119151)(_0x5e1fb9,_0x4f2eec[_0x5f56('0x8a')],_0x4f2eec['attributes'],_0x5a48e0);}}[_0x5f56('0x68')](_0x185a38,_0xb0de78=null){const _0xf24dd3=this[_0x5f56('0x97')][_0x5f56('0x67')](_0x185a38),_0x1caed6=_0xb0de78?this[_0x5f56('0x97')][_0x5f56('0x67')](_0xb0de78):null,_0x182b89=this['_getRevisionsRange'](_0xf24dd3,_0x1caed6),_0xff95fd=_0x182b89[_0x182b89['length']-0x1],_0xdb4a7f=new Map(),_0x1c006e={'model':{},'attributes':{},'changes':[]},_0x2b2be3=new Set(),_0x8d000d=new Map();for(let _0x1bf6ca=_0x182b89[_0x5f56('0x26')]-0x1;_0x1bf6ca>=0x0;_0x1bf6ca--){const _0x5c9750=_0x182b89[_0x1bf6ca];for(const _0x275c48 of Object['keys'](_0x5c9750['diffData']))if(_0x5c9750[_0x5f56('0x22')][_0x275c48][_0x5f56('0x54')]){const _0x360a8e=_0x5c9750[_0x5f56('0x22')][_0x275c48][_0x5f56('0x54')];_0x360a8e[_0x5f56('0xe0')]?(_0x2b2be3[_0x5f56('0x2d')](_0x275c48),_0x8d000d[_0x5f56('0x116')](_0x275c48)&&_0x8d000d['get'](_0x275c48)[_0x5f56('0x4a')]==_0x360a8e[_0x5f56('0x4a')]?_0x8d000d[_0x5f56('0xe5')](_0x275c48):_0x8d000d[_0x5f56('0x45')](_0x275c48,_0x360a8e)):_0x8d000d[_0x5f56('0x116')](_0x275c48)?(_0x2b2be3[_0x5f56('0xe5')](_0x275c48),_0x8d000d[_0x5f56('0xe5')](_0x275c48)):(_0x2b2be3[_0x5f56('0x2d')](_0x275c48),_0x8d000d['set'](_0x275c48,_0x360a8e));}else _0x2b2be3[_0x5f56('0x2d')](_0x275c48);}for(const _0x33838b of _0x2b2be3){const _0x344a61=_0x8d000d['has'](_0x33838b)&&!_0x8d000d[_0x5f56('0x43')](_0x33838b)[_0x5f56('0xe0')];let _0x3a6481=_0x344a61?_0x182b89[_0x5f56('0x26')]-0x1:0x0;const _0x2a675e=_0x344a61?-0x1:0x1;for(;_0x182b89[_0x3a6481];){const _0x119095=_0x182b89[_0x3a6481];if(_0x119095[_0x5f56('0x22')][_0x33838b]){const _0x101b56=_0x344a61?_0x119095[_0x5f56('0x22')][_0x33838b]['attributesBefore']:_0x119095[_0x5f56('0x22')][_0x33838b][_0x5f56('0xe4')];_0x1c006e[_0x5f56('0xe')][_0x33838b]=_0x101b56?_0x413fed(_0x101b56):{};break;}_0x3a6481+=_0x2a675e;}}for(const _0x51f5c8 of _0x182b89){_0x51f5c8[_0x5f56('0x20')]={};for(const _0x4603f5 of _0x51f5c8[_0x5f56('0x7e')])_0xdb4a7f['set'](_0x4603f5['id'],_0x4603f5);for(const _0xf81b81 of _0x2b2be3){const _0x488707=_0x51f5c8[_0x5f56('0x22')][_0xf81b81]?_0x51f5c8['diffData'][_0xf81b81][_0x5f56('0xd')]:'[]',_0x20cfd0=_0x51f5c8[_0x5f56('0x22')][_0xf81b81]?_0x51f5c8['diffData'][_0xf81b81][_0x5f56('0xf2')]:'[]';_0x51f5c8[_0x5f56('0x20')][_0xf81b81]={'insertions':this[_0x5f56('0x23')](_0x488707),'deletions':this['_makeModelFromViewString'](_0x20cfd0)};}}for(const _0xe1d8e5 of _0x2b2be3){let _0x2672a0=null,_0x59860c=0x0;const _0x40901a=new Map(Array['from'](_0xf24dd3[_0x5f56('0x20')][_0xe1d8e5][_0x5f56('0xd')][_0x5f56('0x7a')])[_0x5f56('0x100')](([_0x1fa14c])=>!_0x1fa14c[_0x5f56('0xfc')]('revision:')));let _0x52befe=0x0;for(const _0x2779cd of _0x182b89){const _0x36cc72=this[_0x5f56('0x9c')](_0x2779cd[_0x5f56('0x20')][_0xe1d8e5][_0x5f56('0xd')]);_0x2779cd==_0xf24dd3?(_0x2672a0=_0x36cc72,_0x59860c=_0x2672a0[_0x5f56('0x26')],_0x2672a0['forEach'](_0x1fe845=>{_0x1fe845['id']=_0x52befe++;}),this[_0x5f56('0xbc')](_0x2672a0)):this[_0x5f56('0x29')](_0x2672a0,_0x36cc72);const _0x93a445=_0x2672a0['filter'](_0x194ea2=>!_0x194ea2[_0x5f56('0x5')])[_0x5f56('0xea')](_0x45dcf1=>_0x45dcf1['id']);let _0x2796d7=0x0;const _0x1afec3=this['_makeTape'](_0x2779cd['model'][_0xe1d8e5][_0x5f56('0xf2')]);_0x1afec3[_0x5f56('0x5d')](_0x4aea69=>{_0x4aea69[_0x5f56('0x39')]?_0x4aea69['id']=_0x59860c++:_0x4aea69['id']=_0x93a445[_0x2796d7++];}),this['_processTape'](_0x1afec3),this[_0x5f56('0x66')](_0x2672a0,'isAdded'),this['_setDistance'](_0x1afec3,_0x5f56('0x39')),_0x2779cd==_0xf24dd3&&this[_0x5f56('0x7d')](_0x2672a0,_0x40901a),_0x2672a0=this[_0x5f56('0x10')](_0x2672a0,_0x1afec3),this['_refreshStartEndIndex'](_0x2672a0),this[_0x5f56('0x66')](_0x2672a0,_0x5f56('0x39'));}_0x2672a0=_0x2672a0[_0x5f56('0x100')](_0x283bf5=>!(_0x283bf5['isAdded']&&_0x283bf5['isRemoved']));const _0x2d0497=new Map(_0xff95fd[_0x5f56('0x20')][_0xe1d8e5][_0x5f56('0xf2')][_0x5f56('0x7a')]),_0x40ebec=new Set(_0x40901a[_0x5f56('0x9')]());for(const _0x287a2f of _0x2d0497['keys']())_0x40ebec['delete'](_0x287a2f);this['_markSuggestions'](_0x2672a0,_0x40ebec),this[_0x5f56('0x34')](_0x2672a0),_0x2672a0=this[_0x5f56('0x5e')](_0x2672a0),_0x2672a0=this[_0x5f56('0x89')](_0x2672a0),_0x2672a0=this['_removeUnsupportedChanges'](_0x2672a0);const {root:_0x21ff87,changes:_0x4216ac}=this[_0x5f56('0x124')](_0x2672a0,_0xdb4a7f,_0xe1d8e5);_0x1c006e[_0x5f56('0x20')][_0xe1d8e5]=_0x21ff87;const _0x198a03=_0x8d000d[_0x5f56('0x43')](_0xe1d8e5);if(_0x198a03){const _0x554b52=_0xdb4a7f[_0x5f56('0x43')](_0x198a03[_0x5f56('0x4a')]),_0x56e6e6=new _0x3348ea({'author':_0x554b52,'type':_0x198a03[_0x5f56('0xe0')]?_0x5f56('0x2d'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xe1d8e5});_0x4216ac['unshift'](_0x56e6e6),_0x1c006e[_0x5f56('0xe')][_0xe1d8e5][_0x5f56('0x87')]=_0x56e6e6['id'];}_0x1c006e['changes']=_0x1c006e[_0x5f56('0x63')][_0x5f56('0xcb')](_0x4216ac);}return _0x1c006e;}['_markMarkers'](_0x4008ef,_0x544561){for(let _0x10f08b=0x0;_0x10f08b<_0x4008ef[_0x5f56('0x26')];_0x10f08b++)for(const [_0x3931d2,_0x4081fd]of _0x544561)_0x4081fd[_0x5f56('0xc7')][_0x5f56('0x105')](_0x4008ef[_0x10f08b]['previousPosition'])&&_0x4008ef[_0x10f08b][_0x5f56('0xc8')]['push'](_0x3931d2),_0x4081fd[_0x5f56('0x47')][_0x5f56('0x105')](_0x4008ef[_0x10f08b][_0x5f56('0xca')])&&_0x4008ef[_0x10f08b]['markersEnd']['push'](_0x3931d2);}[_0x5f56('0x10')](_0x18ca1d,_0xb8845){let _0x45711b=[],_0x3d2910=0x0,_0x31de2b=0x0;for(;_0x3d2910<_0x18ca1d[_0x5f56('0x26')]||_0x31de2b<_0xb8845[_0x5f56('0x26')];){const _0x24cb74=_0x18ca1d[_0x3d2910]||{},_0x56c954=_0xb8845[_0x31de2b]||{};if(_0x24cb74['id']==_0x56c954['id'])_0x3d2910++,_0x31de2b++,_0x45711b[_0x5f56('0x57')](_0x24cb74);else{if(_0x56c954[_0x5f56('0x39')]&&_0x24cb74[_0x5f56('0x5')]){const {commonTape:_0x12d1b4,iEnd:_0xa6aa1d,jEnd:_0x3b67f7}=this[_0x5f56('0xb4')](_0x18ca1d,_0x3d2910,_0xb8845,_0x31de2b);_0x45711b=_0x45711b[_0x5f56('0xcb')](_0x12d1b4),_0x3d2910=_0xa6aa1d,_0x31de2b=_0x3b67f7;}else _0x56c954[_0x5f56('0x39')]?(_0x31de2b++,_0x45711b['push'](_0x56c954)):(_0x3d2910++,_0x45711b['push'](_0x24cb74));}}return _0x45711b;}[_0x5f56('0xd7')](_0x2cac46,_0x4156d9){const _0x5e7ad9=[];for(let _0x361a66=0x0;_0x361a66<_0x2cac46['length'];_0x361a66++){for(let _0x4aa114=0x0;_0x4aa114<_0x2cac46[_0x361a66][_0x5f56('0xc8')]['length'];_0x4aa114++){const _0x124906=_0x2cac46[_0x361a66][_0x5f56('0xc8')][_0x4aa114];if(!_0x4156d9['has'](_0x124906))continue;const {group:_0x162906,type:_0x2a36c2,authorId:_0x1bc4f7}=_0x40fd91(_0x124906);_0x5f56('0x70')!=_0x162906||_0x5f56('0xd6')!=_0x2a36c2&&_0x5f56('0x60')!=_0x2a36c2||(_0x5e7ad9['unshift']({'type':_0x2a36c2,'name':_0x124906,'userId':_0x1bc4f7}),_0x2cac46[_0x361a66]['markersStart'][_0x5f56('0x83')](_0x4aa114,0x1),_0x4aa114--);}_0xc73d31(_0x2cac46[_0x361a66]);for(let _0x2aa8c7=0x0;_0x2aa8c7<_0x2cac46[_0x361a66][_0x5f56('0xdb')][_0x5f56('0x26')];_0x2aa8c7++){const _0x497a8d=_0x2cac46[_0x361a66][_0x5f56('0xdb')][_0x2aa8c7];if(!_0x4156d9[_0x5f56('0x116')](_0x497a8d))continue;const {group:_0x22dd6e,type:_0x1e283c}=_0x40fd91(_0x497a8d);if(_0x5f56('0x70')!=_0x22dd6e||'insertion'!=_0x1e283c&&_0x5f56('0x60')!=_0x1e283c)continue;_0x2cac46[_0x361a66]['markersEnd'][_0x5f56('0x83')](_0x2aa8c7,0x1),_0x2aa8c7--;const _0x47ccfa=_0x5e7ad9[_0x5f56('0x42')](_0x7f3261=>_0x7f3261[_0x5f56('0x8a')]==_0x497a8d);_0x47ccfa>-0x1&&_0x5e7ad9['splice'](_0x47ccfa,0x1);}}function _0x40fd91(_0x5558c8){const _0x41d17f=_0x5558c8[_0x5f56('0xa9')](':');return{'group':_0x41d17f[0x0],'type':_0x41d17f[0x1],'subType':_0x41d17f[_0x5f56('0x26')]>=0x5?_0x41d17f[0x2]:null,'id':_0x41d17f['length']<0x5?_0x41d17f[0x2]:_0x41d17f[0x3],'authorId':_0x41d17f[_0x5f56('0x26')]<0x5?_0x41d17f[0x3]:_0x41d17f[0x4],'markerCount':0x6==_0x41d17f[_0x5f56('0x26')]?_0x41d17f[0x5]:null};}function _0xc73d31(_0x279453){for(let _0x4bb4bf=0x0;_0x4bb4bf<_0x5e7ad9[_0x5f56('0x26')];_0x4bb4bf++){if(_0x279453[_0x5f56('0x5')]&&_0x5f56('0xd6')==_0x5e7ad9[_0x4bb4bf]['type'])return _0x279453['isAddSuggestion']=_0x5e7ad9[_0x4bb4bf],void delete _0x279453[_0x5f56('0x5')];if(!_0x279453[_0x5f56('0x5')]&&!_0x279453['isRemoved']&&'deletion'==_0x5e7ad9[_0x4bb4bf][_0x5f56('0x36')])return void(_0x279453[_0x5f56('0xe3')]=_0x5e7ad9[_0x4bb4bf]);}}}[_0x5f56('0x66')](_0x189168,_0x5ab3f5){let _0x3ab354=0x0,_0x35d142=!0x1;const _0x61411f=new Map();for(const _0x156c5d of _0x189168)_0x156c5d[_0x5ab3f5]?_0x35d142&&(_0x3ab354++,_0x35d142=!0x1):(_0x3ab354++,_0x35d142=!0x0),_0x61411f['set'](_0x156c5d['id'],_0x3ab354);for(let _0x193cc5=0x0;_0x193cc5<_0x189168[_0x5f56('0x26')];_0x193cc5++){if(_0x5f56('0x39')==_0x5ab3f5&&_0x189168[_0x193cc5]['isAdded']||_0x5f56('0x5')==_0x5ab3f5&&_0x189168[_0x193cc5][_0x5f56('0x39')])continue;if(_0x5f56('0xcd')==_0x189168[_0x193cc5]['type']){_0x189168[_0x193cc5]['distance']=0x0;continue;}const _0x5910d1=_0x61411f[_0x5f56('0x43')](_0x189168[_0x193cc5]['pairId']),_0xc90977=_0x61411f[_0x5f56('0x43')](_0x189168[_0x193cc5]['id']);_0x189168[_0x193cc5]['distance']=_0x5910d1-_0xc90977;}}['_getRevisionsRange'](_0x1b84e8,_0x7aff19,_0x64d96c=!0x1){const _0x40260d=[];let _0x3c1b50=this[_0x5f56('0x97')]['getIndex'](_0x1b84e8),_0x23f45d=this[_0x5f56('0x97')][_0x5f56('0x49')](_0x7aff19);for(-0x1==_0x23f45d&&(_0x23f45d=this[_0x5f56('0x97')][_0x5f56('0xaa')]['length'],_0x64d96c=!0x1);_0x3c1b50<_0x23f45d;)_0x40260d[_0x5f56('0x57')](this[_0x5f56('0x97')][_0x5f56('0x67')](_0x3c1b50)),_0x3c1b50++;return _0x64d96c&&_0x40260d[_0x5f56('0x57')](this['repository'][_0x5f56('0x67')](_0x3c1b50)),_0x40260d;}['_threeWayMerge'](_0x54fcba,_0x1b7757,_0x55757c,_0x262a2a){const _0x1d6595=this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0xdc')];let _0x4b7ca8=_0x1b7757;for(;_0x54fcba[_0x4b7ca8]&&_0x54fcba[_0x4b7ca8][_0x5f56('0x5')];)_0x4b7ca8++;let _0x260f2c=_0x262a2a;for(;_0x55757c[_0x260f2c]&&_0x55757c[_0x260f2c][_0x5f56('0x39')];)_0x260f2c++;_0x42e74f(_0x54fcba,_0x1b7757,_0x4b7ca8),_0x42e74f(_0x55757c,_0x262a2a,_0x260f2c);const _0x41746e=_0x55757c[_0x5f56('0x65')](_0x262a2a,_0x260f2c)['concat'](_0x54fcba[_0x5f56('0x65')](_0x1b7757,_0x4b7ca8));return _0x41746e[_0x5f56('0xae')]((_0x30927f,_0x4a9fab)=>_0x30927f['side']!=_0x4a9fab['side']?_0x30927f[_0x5f56('0x115')]-_0x4a9fab[_0x5f56('0x115')]:_0x30927f[_0x5f56('0x64')]!=_0x4a9fab[_0x5f56('0x64')]?_0x30927f[_0x5f56('0x64')]-_0x4a9fab['level']:_0x30927f[_0x5f56('0x123')]!=_0x4a9fab['distance']?_0x4a9fab[_0x5f56('0x123')]-_0x30927f[_0x5f56('0x123')]:!!_0x30927f['isAdded']!=!!_0x4a9fab[_0x5f56('0x5')]?-0x1==_0x30927f[_0x5f56('0x115')]||0x0==_0x30927f[_0x5f56('0x115')]?_0x30927f['isAdded']?-0x1:0x1:_0x30927f[_0x5f56('0x5')]?0x1:-0x1:_0x30927f[_0x5f56('0xbf')]-_0x4a9fab[_0x5f56('0xbf')]),{'commonTape':_0x41746e,'iEnd':_0x4b7ca8,'jEnd':_0x260f2c};function _0x42e74f(_0x5999fc,_0x42315f,_0x1477b5){let _0x232f05=-0x1,_0x2f1c78=Number[_0x5f56('0xa')],_0x349950=!0x0;for(let _0x33f89c=_0x42315f;_0x33f89c<_0x1477b5;_0x33f89c++)if(_0x1d6595[_0x5f56('0xac')](_0x5999fc[_0x33f89c]['item'])||(_0x349950=!0x1),_0x5999fc[_0x33f89c][_0x5f56('0xf4')]['startIndex']<_0x42315f&&(_0x232f05=_0x33f89c),_0x5999fc[_0x33f89c][_0x5f56('0xf4')][_0x5f56('0x6e')]>=_0x1477b5){_0x2f1c78=_0x33f89c;break;}_0x349950&&(_0x232f05=_0x1477b5-0x1);for(let _0x3904c9=_0x42315f;_0x3904c9<_0x1477b5;_0x3904c9++)_0x5999fc[_0x3904c9][_0x5f56('0x115')]=_0x3904c9<=_0x232f05?-0x1:_0x3904c9<_0x2f1c78?0x0:0x1,_0x5999fc[_0x3904c9][_0x5f56('0xbf')]=_0x3904c9;let _0x2d7fe1=0x0;for(let _0x12691d=_0x42315f;_0x12691d<=_0x232f05;_0x12691d++)0x0==_0x5999fc[_0x12691d]['distance']?_0x5999fc[_0x12691d][_0x5f56('0x64')]=_0x2d7fe1:(_0x2d7fe1++,_0x5999fc[_0x12691d]['level']=_0x2d7fe1,_0x2d7fe1++);for(let _0x2a2bc7=_0x42315f;_0x2a2bc7<_0x1477b5;_0x2a2bc7++)0x0==_0x5999fc[_0x2a2bc7][_0x5f56('0x115')]&&(_0x5999fc[_0x2a2bc7][_0x5f56('0x64')]=_0x2d7fe1);_0x2d7fe1=0x0;for(let _0x53455b=_0x1477b5-0x1;_0x53455b>=_0x2f1c78;_0x53455b--)0x0==_0x5999fc[_0x53455b][_0x5f56('0x123')]?_0x5999fc[_0x53455b][_0x5f56('0x64')]=_0x2d7fe1:(_0x2d7fe1--,_0x5999fc[_0x53455b]['level']=_0x2d7fe1,_0x2d7fe1--);}}[_0x5f56('0x34')](_0x27ca97){const _0x40f118=new Map(),_0xbb9fbe=this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0xdc')];for(let _0x159051=0x1;_0x159051<_0x27ca97[_0x5f56('0x26')];_0x159051++){let _0xf13c5d,_0x217de6,_0x2ba13b;const _0x277ce2=_0x27ca97[_0x159051],_0x41106c=_0x27ca97[_0x159051-0x1];if(_0x5f56('0xcd')==_0x277ce2[_0x5f56('0x36')])continue;if(_0x277ce2['type']!=_0x41106c['type'])continue;if(!_0xbb9fbe[_0x5f56('0xd0')](_0x41106c[_0x5f56('0xf4')])||_0xbb9fbe[_0x5f56('0x101')](_0x41106c[_0x5f56('0xf4')]))continue;if(!_0xbb9fbe[_0x5f56('0xd0')](_0x277ce2['item'])||_0xbb9fbe[_0x5f56('0x101')](_0x277ce2[_0x5f56('0xf4')]))continue;if((_0x27ca97[_0x159051][_0x5f56('0x5')]||_0x27ca97[_0x159051][_0x5f56('0xc9')])&&_0x27ca97[_0x159051-0x1][_0x5f56('0x39')])_0xf13c5d=_0x27ca97[_0x159051],_0x217de6=_0x27ca97[_0x159051-0x1],_0x2ba13b=_0x159051-0x1;else{if(!_0x27ca97[_0x159051]['isRemoved']||!_0x27ca97[_0x159051-0x1][_0x5f56('0x5')]&&!_0x27ca97[_0x159051-0x1][_0x5f56('0xc9')])continue;_0xf13c5d=_0x27ca97[_0x159051-0x1],_0x217de6=_0x27ca97[_0x159051],_0x2ba13b=_0x159051;}const _0x50202f=_0xf13c5d[_0x5f56('0x64')]==_0x217de6[_0x5f56('0x64')],_0x3c36f3=Math['abs'](_0xf13c5d[_0x5f56('0x64')])<Math[_0x5f56('0xc5')](_0x217de6[_0x5f56('0x64')])&&0x0==_0x217de6[_0x5f56('0x123')];(_0x50202f||_0x3c36f3)&&(_0x40f118['set'](_0x217de6['id'],_0xf13c5d['id']),_0x27ca97[_0x5f56('0x83')](_0x2ba13b,0x1),_0x159051--,_0xf13c5d[_0x5f56('0x5')]=!0x1);}for(let _0xbc2061=0x0;_0xbc2061<_0x27ca97[_0x5f56('0x26')];_0xbc2061++)_0x40f118[_0x5f56('0x116')](_0x27ca97[_0xbc2061][_0x5f56('0x30')])&&(_0x27ca97[_0xbc2061][_0x5f56('0x30')]=_0x40f118[_0x5f56('0x43')](_0x27ca97[_0xbc2061][_0x5f56('0x30')]));}[_0x5f56('0x5e')](_0x3dc124){const _0x1e4602=new Set(_0x3dc124['map'](_0x270ec8=>_0x270ec8['id']));for(let _0x26d7a3=0x0;_0x26d7a3<_0x3dc124[_0x5f56('0x26')];_0x26d7a3++)_0x1e4602[_0x5f56('0x116')](_0x3dc124[_0x26d7a3][_0x5f56('0x30')])||0x0==_0x3dc124[_0x26d7a3][_0x5f56('0x123')]||(_0x3dc124[_0x26d7a3][_0x5f56('0x16')]=!0x0);return _0x3dc124['filter'](_0x15c8b9=>!_0x15c8b9[_0x5f56('0x16')]);}[_0x5f56('0x89')](_0x41eaf3){const _0x39da05=new Set();for(let _0x59e923=0x0;_0x59e923<_0x41eaf3[_0x5f56('0x26')];_0x59e923++){if(_0x39da05[_0x5f56('0x116')](_0x41eaf3[_0x59e923]['id'])&&_0x41eaf3[_0x59e923][_0x5f56('0x39')]&&(_0x41eaf3[_0x59e923][_0x5f56('0x16')]=!0x0),_0x41eaf3[_0x59e923]['isIncorrect'])continue;if(0x0==_0x41eaf3[_0x59e923][_0x5f56('0x123')])continue;if('elementStart'!=_0x41eaf3[_0x59e923][_0x5f56('0x36')])continue;if(null==_0x41eaf3[_0x59e923][_0x5f56('0x30')])continue;let _0x2ee31a=_0x59e923+0x1,_0x3047cc=0x0;for(;_0x41eaf3[_0x2ee31a]['id']!=_0x41eaf3[_0x59e923][_0x5f56('0x30')];)'elementStart'==_0x41eaf3[_0x2ee31a][_0x5f56('0x36')]?_0x3047cc++:_0x5f56('0xd9')==_0x41eaf3[_0x2ee31a]['type']&&_0x3047cc--,_0x2ee31a++;if(0x0!=_0x3047cc){if(_0x41eaf3[_0x59e923][_0x5f56('0x39')])_0x41eaf3[_0x59e923][_0x5f56('0x16')]=!0x0;else for(;_0x2ee31a!=_0x59e923;)_0x41eaf3[_0x2ee31a][_0x5f56('0x39')]&&0x0!=_0x41eaf3[_0x2ee31a][_0x5f56('0x123')]&&(_0x41eaf3[_0x2ee31a][_0x5f56('0x16')]=!0x0,_0x39da05[_0x5f56('0x2d')](_0x41eaf3[_0x2ee31a][_0x5f56('0x30')])),_0x2ee31a--;}}return _0x41eaf3[_0x5f56('0x100')](_0x3d1fa0=>!_0x3d1fa0[_0x5f56('0x16')]);}[_0x5f56('0x9b')](_0x25f1ef){const _0x495972=this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0xdc')];for(let _0x320304=0x0;_0x320304<_0x25f1ef['length'];_0x320304++){if(!(_0x25f1ef[_0x320304][_0x5f56('0x5')]||_0x25f1ef[_0x320304][_0x5f56('0xc9')]||_0x25f1ef[_0x320304][_0x5f56('0x39')]||_0x25f1ef[_0x320304][_0x5f56('0xe3')]))continue;if(0x0==_0x25f1ef[_0x320304]['distance'])continue;const _0x2a13eb=_0x25f1ef[_0x320304]['item'];_0x495972[_0x5f56('0xd0')](_0x2a13eb)||_0x495972[_0x5f56('0x101')](_0x2a13eb)||(_0x25f1ef[_0x320304][_0x5f56('0x5')]&&delete _0x25f1ef[_0x320304]['isAdded'],_0x25f1ef[_0x320304]['isAddSuggestion']&&delete _0x25f1ef[_0x320304][_0x5f56('0xc9')],_0x25f1ef[_0x320304]['isRemoveSuggestion']&&delete _0x25f1ef[_0x320304][_0x5f56('0xe3')],_0x25f1ef[_0x320304][_0x5f56('0x39')]&&(_0x25f1ef[_0x320304][_0x5f56('0x16')]=!0x0));}return _0x25f1ef['filter'](_0x3951c6=>!_0x3951c6['isIncorrect']);}['_makeModelFromTape'](_0x4389ea,_0x3c0901,_0x3108e3){const _0x10163a=new _0x2dd089(),_0x56c193=[],_0x3aca30=new Map(),_0x5afb84=this[_0x5f56('0x88')][_0x5f56('0x20')],_0x1af381=_0x5afb84[_0x5f56('0xdc')],_0xa82261=[_0x10163a],_0x4589d3={},_0x5f2e81={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x921040=null;const _0x45336c=[0x0];for(let _0x5a601c=0x0;_0x5a601c<_0x4389ea['length'];_0x5a601c++){let _0x21fe4c,_0x2a687f;if(_0x5f56('0xb8')===_0x4389ea[_0x5a601c][_0x5f56('0x36')]){_0x21fe4c=_0x5afb84[_0x5f56('0x76')](_0x10163a,_0x45336c);const _0x14c427=new _0x33325d(_0x4389ea[_0x5a601c][_0x5f56('0xf4')][_0x5f56('0x8a')],_0x4389ea[_0x5a601c][_0x5f56('0xf4')][_0x5f56('0x77')]());_0xa82261[0x0][_0x5f56('0x11e')](_0x14c427),_0x45336c['push'](0x0),_0xa82261['unshift'](_0x14c427),_0x2a687f=_0x5afb84[_0x5f56('0x76')](_0x10163a,_0x45336c),_0x921040=null;}else{if(_0x5f56('0xd9')===_0x4389ea[_0x5a601c][_0x5f56('0x36')])_0xa82261[_0x5f56('0xe7')](),_0x21fe4c=_0x5afb84[_0x5f56('0x76')](_0x10163a,_0x45336c),_0x45336c[_0x5f56('0x1a')](),_0x45336c[_0x45336c[_0x5f56('0x26')]-0x1]++,_0x2a687f=_0x5afb84[_0x5f56('0x76')](_0x10163a,_0x45336c),_0x921040=null;else{if(_0x21fe4c=_0x5afb84[_0x5f56('0x76')](_0x10163a,_0x45336c),_0x921040&&_0x171a31(_0x921040,_0x4389ea[_0x5a601c]['item']))_0x921040['_data']+=_0x4389ea[_0x5a601c][_0x5f56('0xf4')][_0x5f56('0xd1')];else{const _0x415d96=new _0x3840ba(_0x4389ea[_0x5a601c][_0x5f56('0xf4')]['data'],_0x4389ea[_0x5a601c]['item']['getAttributes']());_0xa82261[0x0][_0x5f56('0x11e')](_0x415d96),_0x921040=_0x415d96;}_0x45336c[_0x45336c[_0x5f56('0x26')]-0x1]+=_0x4389ea[_0x5a601c][_0x5f56('0xf4')][_0x5f56('0x1d')],_0x2a687f=_0x5afb84['createPositionFromPath'](_0x10163a,_0x45336c);}}for(const _0x272ae4 of _0x4389ea[_0x5a601c][_0x5f56('0xc8')])_0x3aca30[_0x5f56('0x45')](_0x272ae4,{'start':_0x21fe4c,'end':null});_0x57e0db(_0x5f56('0xe3'),_0x5a601c,_0x21fe4c,_0x2a687f),_0x57e0db(_0x5f56('0xc9'),_0x5a601c,_0x21fe4c,_0x2a687f),_0x57e0db(_0x5f56('0x39'),_0x5a601c,_0x21fe4c,_0x2a687f),_0x57e0db(_0x5f56('0x5'),_0x5a601c,_0x21fe4c,_0x2a687f);for(const _0x5c7d7b of _0x4389ea[_0x5a601c][_0x5f56('0xdb')]){_0x3aca30[_0x5f56('0x43')](_0x5c7d7b)[_0x5f56('0x47')]=_0x2a687f;}}for(const [_0x15eef2,_0x2ad660]of _0x3aca30){const _0x4c9897=this[_0x5f56('0x88')][_0x5f56('0x20')]['createRange'](_0x2ad660[_0x5f56('0xc7')],_0x2ad660[_0x5f56('0x47')]);_0x10163a[_0x5f56('0x7a')][_0x5f56('0x45')](_0x15eef2,_0x4c9897);}return _0x56c193[_0x5f56('0xae')]((_0x3d743d,_0x2ed00f)=>{const _0x553513=_0x10163a['markers'][_0x5f56('0x43')](_0x5f56('0x8c')+_0x3d743d['id']),_0x400642=_0x10163a[_0x5f56('0x7a')][_0x5f56('0x43')]('revision:'+_0x2ed00f['id']);return _0x553513[_0x5f56('0xc7')]['isBefore'](_0x400642[_0x5f56('0xc7')])?-0x1:_0x553513['start'][_0x5f56('0xaf')](_0x400642[_0x5f56('0xc7')])?0x1:_0x553513[_0x5f56('0x47')]['isBefore'](_0x400642[_0x5f56('0x47')])?-0x1:_0x553513[_0x5f56('0x47')][_0x5f56('0xaf')](_0x400642[_0x5f56('0x47')])?0x1:_0x5f56('0x2d')===_0x3d743d[_0x5f56('0x36')]?-0x1:0x1;}),{'root':_0x10163a,'changes':_0x56c193};function _0x57e0db(_0x1dbb82,_0x10acf2,_0x524760,_0xb23b0f){const _0x444a30=!!_0x4389ea[_0x10acf2][_0x1dbb82],_0x5df634=_0x444a30?_0x4389ea[_0x10acf2][_0x1dbb82][_0x5f56('0x4a')]:null,_0x21d78b=_0x10acf2===_0x4389ea[_0x5f56('0x26')]-0x1,_0x16d84a=_0x5f2e81[_0x1dbb82][0x0],_0x425c55=_0x1af381['isObject'](_0x4389ea[_0x10acf2][_0x5f56('0xf4')]);!_0x4589d3[_0x1dbb82]&&_0x444a30?_0x4589d3[_0x1dbb82]={'start':_0x524760,'tapeItem':_0x4389ea[_0x10acf2],'userId':_0x5df634,'type':_0x1dbb82}:_0x4589d3[_0x1dbb82]&&!_0x444a30?(_0x4589d3[_0x1dbb82]['end']=_0x524760,_0x65bab3(_0x4589d3[_0x1dbb82]),_0x4589d3[_0x1dbb82]=null):_0x4589d3[_0x1dbb82]&&_0x444a30&&_0x4589d3[_0x1dbb82][_0x5f56('0x4a')]!==_0x5df634&&(_0x4589d3[_0x1dbb82][_0x5f56('0x47')]=_0x524760,_0x16d84a&&_0x16d84a[_0x5f56('0x4a')]===_0x4589d3[_0x1dbb82][_0x5f56('0x4a')]||_0x65bab3(_0x4589d3[_0x1dbb82]),_0x4589d3[_0x1dbb82]={'start':_0x524760,'tapeItem':_0x4389ea[_0x10acf2],'userId':_0x5df634,'type':_0x1dbb82}),_0x4589d3[_0x1dbb82]&&_0x425c55&&(_0x5f56('0xb8')!==_0x4389ea[_0x10acf2][_0x5f56('0x36')]||_0x16d84a&&_0x16d84a['userId']===_0x5df634||_0x5f2e81[_0x1dbb82][_0x5f56('0x82')]({'userId':_0x5df634,'object':_0x4389ea[_0x10acf2]['item'],'change':_0x4589d3[_0x1dbb82]}),_0x5f56('0xd9')===_0x4389ea[_0x10acf2][_0x5f56('0x36')]&&_0x16d84a&&_0x16d84a['object']===_0x4389ea[_0x10acf2][_0x5f56('0xf4')]&&(_0x5f2e81[_0x1dbb82]['shift'](),_0x4589d3[_0x1dbb82]=_0x16d84a[_0x5f56('0x5c')])),_0x4589d3[_0x1dbb82]&&_0x21d78b&&(_0x4589d3[_0x1dbb82][_0x5f56('0x47')]=_0xb23b0f,_0x65bab3(_0x4589d3[_0x1dbb82]),_0x4589d3[_0x1dbb82]=null);}function _0x65bab3({start:_0xdeeba7,end:_0x585609,tapeItem:_0x81eca5,userId:_0x1dc269,type:_0x551e07}){const _0xc93a2e=_0x81eca5[_0x5f56('0xf4')],_0x48bb17=_0x5afb84['schema'][_0x5f56('0xd0')](_0xc93a2e)&&!_0x5afb84[_0x5f56('0xdc')][_0x5f56('0x101')](_0xc93a2e),_0x20b5ce=_0xdeeba7[_0x5f56('0x1b')]==_0x585609['parent']&&_0x585609[_0x5f56('0x92')];if(_0x48bb17&&_0x20b5ce)return;const _0x29201a=_0x5afb84['createRange'](_0xdeeba7,_0x585609),_0x3db4cc=_0x3c0901[_0x5f56('0x43')](_0x1dc269),_0x2808d9=new _0x3348ea({'author':_0x3db4cc,'type':_0x5f56('0x5')==_0x551e07||_0x5f56('0xc9')==_0x551e07?'add':'remove','data':{'isSuggestion':_0x5f56('0xc9')==_0x551e07||_0x5f56('0xe3')==_0x551e07},'createdAt':new Date(),'rootName':_0x3108e3});_0x56c193['push'](_0x2808d9),_0x10163a[_0x5f56('0x7a')]['set'](_0x5f56('0x8c')+_0x2808d9['id'],_0x29201a);}function _0x171a31(_0x5fca0e,_0x1c74fa){const _0x1e0e2b=_0x5fca0e[_0x5f56('0x77')](),_0x573542=_0x1c74fa[_0x5f56('0x77')]();for(const _0x2f90fc of _0x1e0e2b){if(_0x2f90fc[0x1]!==_0x1c74fa[_0x5f56('0x84')](_0x2f90fc[0x0]))return!0x1;_0x573542[_0x5f56('0x27')]();}return _0x573542[_0x5f56('0x27')]()[_0x5f56('0xf5')];}}[_0x5f56('0x8f')](){this['editor'][_0x5f56('0x98')][_0x5f56('0xf1')](_0x5f56('0x10c'))[_0x5f56('0x96')]({'view':_0x5f56('0xab')}),this[_0x5f56('0x88')][_0x5f56('0x98')]['for'](_0x5f56('0x72'))['markerToHighlight']({'model':_0x5f56('0xab'),'view':_0x594db7=>{const _0x15bb77=_0x594db7[_0x5f56('0x2c')][_0x5f56('0xa9')](':')[0x1],_0x470e10=this['_getChangeFromId'](_0x15bb77);if(!_0x470e10)return null;const _0x4524c4=_0x5f56('0x2d')==_0x470e10[_0x5f56('0x36')]?'insertion':_0x5f56('0x60'),_0xe4757c=['ck-suggestion-marker',_0x5f56('0x117')+_0x4524c4];return _0x470e10[_0x5f56('0xd1')][_0x5f56('0xb7')]&&_0xe4757c[_0x5f56('0x57')](_0x5f56('0x117')+_0x4524c4+_0x5f56('0xe1')),this[_0x5f56('0x2a')]==_0x470e10&&_0xe4757c[_0x5f56('0x57')](_0x5f56('0x71')),{'classes':_0xe4757c,'attributes':{'data-change-id':_0x15bb77}};}}),this['editor']['conversion'][_0x5f56('0xf1')]('upcast')['add'](_0x2e1243=>{_0x2e1243['on'](_0x5f56('0xce'),(_0x582489,_0x28ceaf,_0x42946b)=>{const _0x37c699=_0x28ceaf[_0x5f56('0x0')][_0x5f56('0xb3')](0x0);if(!_0x37c699||!_0x37c699['is'](_0x5f56('0x10a'),_0x5f56('0x14')))return;if(!_0x42946b[_0x5f56('0x21')][_0x5f56('0xcf')](_0x37c699,{'attributes':[_0x5f56('0x58'),_0x5f56('0x2b')]}))return;const _0x3d1d0f=_0x28ceaf['modelRange'][_0x5f56('0xc7')][_0x5f56('0x1b')];_0x42946b['writer'][_0x5f56('0x44')](_0x5f56('0x58'),_0x37c699[_0x5f56('0x84')](_0x5f56('0x58')),_0x3d1d0f),_0x42946b[_0x5f56('0xf6')][_0x5f56('0x44')](_0x5f56('0x2b'),_0x37c699[_0x5f56('0x84')]('vid_end'),_0x3d1d0f);},{'priority':_0x5f56('0x3e')});}),this[_0x5f56('0x88')][_0x5f56('0x98')][_0x5f56('0xf1')](_0x5f56('0x10c'))[_0x5f56('0x2d')](_0x289215=>{_0x289215['on'](_0x5f56('0x10a'),(_0x1e9bdf,_0x119301,_0x4fe5d8)=>{if(!_0x4fe5d8[_0x5f56('0x21')][_0x5f56('0xcf')](_0x119301[_0x5f56('0x0')],{'attributes':[_0x5f56('0x58'),_0x5f56('0x2b')]}))return;if(_0x119301[_0x5f56('0xa3')][_0x5f56('0xf3')])return;const _0x11aab6=_0x119301[_0x5f56('0xa3')][_0x5f56('0xc7')][_0x5f56('0x1b')];_0x11aab6[_0x5f56('0x2')](_0x5f56('0x58'))||_0x11aab6[_0x5f56('0x2')](_0x5f56('0x31'))||(_0x4fe5d8[_0x5f56('0xf6')][_0x5f56('0x44')](_0x5f56('0x58'),_0x119301[_0x5f56('0x0')][_0x5f56('0x84')](_0x5f56('0x58')),_0x11aab6),_0x4fe5d8[_0x5f56('0xf6')]['setAttribute'](_0x5f56('0x2b'),_0x119301[_0x5f56('0x0')][_0x5f56('0x84')]('vid_end'),_0x11aab6));},{'priority':'low'});}),this['editor'][_0x5f56('0x98')]['for'](_0x5f56('0x10c'))['elementToAttribute']({'view':{'name':_0x5f56('0x73'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x27f92b=>_0x27f92b[_0x5f56('0x84')]('vid')}}),this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0xdc')]['on']('checkAttribute',(_0x4f3a8d,[,_0x48a7c2])=>{['vid_start',_0x5f56('0x2b'),_0x5f56('0x31')][_0x5f56('0xa1')](_0x48a7c2)&&(_0x4f3a8d[_0x5f56('0x1c')]=!0x0,_0x4f3a8d[_0x5f56('0x75')]());},{'priority':_0x5f56('0x3d')}),this[_0x5f56('0x88')]['conversion'][_0x5f56('0xf1')](_0x5f56('0x91'))[_0x5f56('0x2d')](_0x12619f=>{_0x12619f['on'](_0x5f56('0xeb'),(_0x1ac025,_0x52dbfe,_0x25e952)=>{if('\x20'!=_0x52dbfe['item'][_0x5f56('0xd1')]||_0x52dbfe[_0x5f56('0xf4')][_0x5f56('0x13')][_0x5f56('0xd8')]>0x1)return;if(!_0x25e952[_0x5f56('0x21')][_0x5f56('0xcf')](_0x52dbfe[_0x5f56('0xf4')],_0x1ac025['name']))return;const _0xdc66a5=_0x25e952['writer'],_0x51110b=_0x25e952['mapper'][_0x5f56('0xbe')](_0x52dbfe['range']);_0xdc66a5[_0x5f56('0x7f')](_0x51110b,_0xdc66a5[_0x5f56('0x80')](_0x5f56('0x73')));});}),this[_0x5f56('0x88')][_0x5f56('0x98')][_0x5f56('0xf1')](_0x5f56('0x91'))['markerToData']({'model':_0x5f56('0xab')}),this[_0x5f56('0x88')][_0x5f56('0xe2')][_0x5f56('0x3f')]['on'](_0x5f56('0x61'),function(_0x2f8e70){const _0x422a0a=_0x2f8e70[_0x5f56('0x11d')][_0x5f56('0x43')]('RevisionViewer');return(_0x4b17a3,_0x3fe722,_0x4fbd25)=>{const _0x1d37b2=_0x3fe722[_0x5f56('0x2c')]['split'](':')[0x1],_0x1d222a=_0x422a0a[_0x5f56('0x85')](_0x1d37b2);if(!_0x1d222a)return null;const _0x5ab115='add'==_0x1d222a[_0x5f56('0x36')]?'split':_0x5f56('0x3b');if(!_0x4fbd25[_0x5f56('0x21')][_0x5f56('0x104')](_0x3fe722[_0x5f56('0x51')],_0x4b17a3[_0x5f56('0x8a')]))return;const _0x28070d=_0x3fe722[_0x5f56('0x51')]['getWalker'](),_0x4c5584=_0x3fe722[_0x5f56('0x51')][_0x5f56('0xc7')],_0x5dcb32=_0x2f8e70[_0x5f56('0x20')][_0x5f56('0xdc')];let _0x563b62=null,_0x5b7e03=null,_0x24a4c8=!0x1,_0x322d30=!0x1;for(const _0x502cf1 of _0x28070d){const _0x563684=_0x502cf1['item'];_0x24a4c8=_0x24a4c8||_0x5dcb32['isContent'](_0x563684);const _0x4d98a3=_0x4fbd25[_0x5f56('0x12')]['toViewElement'](_0x563684);if(_0x4d98a3&&_0x4d98a3['getCustomProperty'](_0x5f56('0xc')))return;_0x5f56('0xd9')==_0x502cf1[_0x5f56('0x36')]&&(_0x5dcb32[_0x5f56('0xd0')](_0x563684)&&!_0x5dcb32[_0x5f56('0x101')](_0x563684)&&(_0x563684[_0x5f56('0x3a')]||_0x4c5584[_0x5f56('0x93')]?_0x563b62&&_0x563b62['parent']==_0x563684||(_0x563b62=_0x563684,_0x21b42c(_0x502cf1['previousPosition']),_0x322d30=!0x0):_0x5b7e03=_0x5b7e03||_0x502cf1[_0x5f56('0xfa')]));}function _0x21b42c(_0x3bdf27){const _0x5b2eef=_0x4fbd25[_0x5f56('0xf6')]['createUIElement'](_0x5f56('0x73'),{'class':'ck-suggestion-marker-'+_0x5ab115}),_0x14f936=_0x4fbd25[_0x5f56('0x12')]['toViewPosition'](_0x3bdf27);_0x1d222a[_0x5f56('0xd1')][_0x5f56('0xb7')]&&_0x4fbd25['writer'][_0x5f56('0xf')]('ck-suggestion-marker-'+_0x5ab115+_0x5f56('0xe1'),_0x5b2eef),_0x422a0a[_0x5f56('0x2a')]==_0x1d222a&&_0x4fbd25['writer'][_0x5f56('0xf')](_0x5f56('0x71'),_0x5b2eef),_0x4fbd25['writer'][_0x5f56('0x10d')](_0x14f936,_0x5b2eef),_0x4fbd25[_0x5f56('0x12')][_0x5f56('0xa6')](_0x5b2eef,_0x3fe722['markerName']);}_0x24a4c8||_0x322d30||!_0x5b7e03||_0x21b42c(_0x5b7e03);};}(this['editor']),{'priority':_0x5f56('0x111')}),this[_0x5f56('0x88')]['editing'][_0x5f56('0x3f')]['on']('removeMarker:revision',(_0xc454e6,_0x48934e,_0x50f357)=>{const _0xa7feed=_0x50f357[_0x5f56('0x12')]['markerNameToElements'](_0x48934e[_0x5f56('0x2c')]);if(_0xa7feed)for(const _0x425325 of _0xa7feed)(_0x425325[_0x5f56('0x107')](_0x5f56('0x9d'))||_0x425325[_0x5f56('0x107')](_0x5f56('0x4f')))&&(_0x50f357['mapper'][_0x5f56('0x4')](_0x425325,_0x48934e[_0x5f56('0x2c')]),_0x50f357[_0x5f56('0xf6')]['remove'](_0x425325));},{'priority':'high'}),this[_0x5f56('0x88')][_0x5f56('0xe2')][_0x5f56('0x3f')]['on'](_0x5f56('0x61'),(_0x5c7cc0,_0x4a7d55,_0x50cbf2)=>{const _0x49b0df=_0x4a7d55['markerName'][_0x5f56('0xa9')](':')[0x1],_0x5de801=this['_getChangeFromId'](_0x49b0df);if(!_0x5de801)return null;const _0x1043b5=_0x5f56('0x2d')==_0x5de801['type']?_0x5f56('0xa9'):_0x5f56('0x3b');if(_0x50cbf2[_0x5f56('0x21')][_0x5f56('0x104')](_0x4a7d55[_0x5f56('0x51')],_0x5c7cc0['name']))for(const _0x3bd9f9 of _0x4a7d55[_0x5f56('0x51')][_0x5f56('0x4d')]()){if(!_0x3bd9f9['is'](_0x5f56('0x10a'),_0x5f56('0x53')))continue;const _0x79f52e=_0x50cbf2[_0x5f56('0xf6')]['createUIElement'](_0x5f56('0x73'),{'class':_0x5f56('0x117')+_0x1043b5}),_0x114df3=_0x50cbf2[_0x5f56('0x12')][_0x5f56('0xb0')](this['editor']['model']['createPositionBefore'](_0x3bd9f9));_0x5de801[_0x5f56('0xd1')]['isSuggestion']&&_0x50cbf2['writer'][_0x5f56('0xf')](_0x5f56('0x117')+_0x1043b5+_0x5f56('0xe1'),_0x79f52e),this['activeChange']==_0x5de801&&_0x50cbf2[_0x5f56('0xf6')]['addClass']('ck-suggestion-marker--active',_0x79f52e),_0x50cbf2[_0x5f56('0xf6')][_0x5f56('0x10d')](_0x114df3,_0x79f52e),_0x50cbf2[_0x5f56('0x12')][_0x5f56('0xa6')](_0x79f52e,_0x4a7d55['markerName']);}},{'priority':_0x5f56('0x111')}),this[_0x5f56('0x88')]['model']['document']['on'](_0x5f56('0x5c'),()=>{this['editor'][_0x5f56('0xe2')][_0x5f56('0xb')][_0x5f56('0x5c')](_0x965850=>{for(const _0x558bf0 of this[_0x5f56('0x88')][_0x5f56('0x20')]['document']['getRootNames']()){const _0x3cbb10=this[_0x5f56('0x88')][_0x5f56('0x20')]['document'][_0x5f56('0xec')](_0x558bf0),_0x53ed49=this[_0x5f56('0x88')]['editing'][_0x5f56('0xb')][_0x5f56('0x7')][_0x5f56('0xec')](_0x558bf0);if(_0x53ed49){const _0x49c441=_0x3cbb10[_0x5f56('0x84')]('revisionHistoryAttachChange');if(_0x965850['removeAttribute'](_0x5f56('0x55'),_0x53ed49),_0x965850[_0x5f56('0x1f')](_0x5f56('0xba'),_0x53ed49),_0x965850['removeClass'](_0x5f56('0x10b'),_0x53ed49),_0x965850[_0x5f56('0x1f')]('ck-revision-history-root--active',_0x53ed49),_0x49c441){const _0x2bf07f=this['_getChangeFromId'](_0x49c441);if(!_0x2bf07f)return null;_0x965850[_0x5f56('0x44')]('data-change-id',_0x49c441,_0x53ed49),_0x965850[_0x5f56('0xf')](_0x5f56('0xa5')+_0x2bf07f[_0x5f56('0x36')],_0x53ed49),this['activeChange']==_0x2bf07f&&_0x965850[_0x5f56('0xf')]('ck-revision-history-root--active',_0x53ed49);}}}});}),this[_0x5f56('0x88')][_0x5f56('0x98')][_0x5f56('0xf1')](_0x5f56('0x10c'))[_0x5f56('0x96')]({'view':_0x5f56('0xa0'),'model':_0x19a9bd=>_0x5f56('0x17')+_0x19a9bd,'converterPriority':_0x5f56('0x3d')}),this[_0x5f56('0x88')][_0x5f56('0x98')]['for'](_0x5f56('0x10c'))['dataToMarker']({'view':'suggestion','model':_0x5ac50c=>_0x5f56('0xdf')+_0x5ac50c,'converterPriority':_0x5f56('0x3d')}),this['editor'][_0x5f56('0x98')][_0x5f56('0xf1')](_0x5f56('0x91'))[_0x5f56('0x95')]({'model':_0x5f56('0x70'),'view':_0x20726b=>({'name':_0x5f56('0xcc')+_0x20726b,'group':_0x5f56('0x70')}),'converterPriority':_0x5f56('0x3d')}),this[_0x5f56('0x88')][_0x5f56('0x98')][_0x5f56('0xf1')]('editingDowncast')[_0x5f56('0x114')]({'model':_0x5f56('0x70'),'view':_0xf7575b=>{const _0x497517=_0xf7575b['markerName'][_0x5f56('0xa9')](':')[0x1];return'insertion'!=_0x497517&&_0x5f56('0x60')!=_0x497517?null:{'classes':[_0x5f56('0xb9'),_0x5f56('0xee')+_0x497517]};}}),this['editor']['editing'][_0x5f56('0x3f')]['on'](_0x5f56('0x11b'),et(this[_0x5f56('0x88')],_0x5f56('0x3b')),{'priority':'high'}),this[_0x5f56('0x88')][_0x5f56('0xe2')]['downcastDispatcher']['on'](_0x5f56('0xff'),et(this[_0x5f56('0x88')],'split'),{'priority':_0x5f56('0x111')}),this[_0x5f56('0x88')]['editing'][_0x5f56('0x3f')]['on']('removeMarker:revision-suggestion',(_0x3b0ebe,_0x2f10b6,_0x300fe3)=>{const _0x547f2a=_0x300fe3[_0x5f56('0x12')]['markerNameToElements'](_0x2f10b6[_0x5f56('0x2c')]);if(_0x547f2a)for(const _0x41abbe of _0x547f2a)_0x41abbe['is'](_0x5f56('0x56'))&&(_0x300fe3[_0x5f56('0x12')][_0x5f56('0x4')](_0x41abbe,_0x2f10b6[_0x5f56('0x2c')]),_0x300fe3['writer'][_0x5f56('0x74')](_0x41abbe));},{'priority':_0x5f56('0x111')});}[_0x5f56('0x85')](_0x1ad6f4){return this['_changeIdToChange'][_0x5f56('0x43')](_0x1ad6f4);}[_0x5f56('0x7b')](_0xecbc32){return this[_0x5f56('0xde')]&&this[_0x5f56('0xde')][_0x5f56('0x81')](),this['_changeView']=new _0x3a00c8(this[_0x5f56('0x88')][_0x5f56('0x6f')],_0xecbc32),this[_0x5f56('0xde')];}[_0x5f56('0x108')](){this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0x7')]['selection']['observeMarkers'](_0x5f56('0xab')),this['on'](_0x5f56('0x6d'),(_0x237fdd,_0x23b1d0,_0x28f592,_0x32f4f7)=>{_0x32f4f7&&this[_0x5f56('0xad')]['remove'](_0x32f4f7),_0x28f592&&(this[_0x5f56('0xad')][_0x5f56('0x2d')]({'view':_0x28f592,'stackId':_0x5f56('0xd5'),'position':{'target':()=>{const _0x5b030a=this[_0x5f56('0x88')][_0x5f56('0xe2')],_0x264216=this['_getChangeFromId'](_0x28f592[_0x5f56('0x1')]);let _0x20a91f;if(_0x264216[_0x5f56('0xd1')][_0x5f56('0xd2')]){const _0x2b588d=_0x5b030a[_0x5f56('0xb')][_0x5f56('0x25')](_0x264216[_0x5f56('0x5f')]);_0x20a91f=Array[_0x5f56('0xb5')](_0x2b588d['getClientRects']());}else{const _0x1d5358=this[_0x5f56('0x88')]['model'][_0x5f56('0x7a')][_0x5f56('0x43')]('revision:'+_0x28f592['changeId']);_0x20a91f=Array[_0x5f56('0xb5')](_0x5b030a[_0x5f56('0x12')][_0x5f56('0x4e')](_0x1d5358['name']))['map'](_0x4c4a76=>_0x5b030a[_0x5f56('0xb')][_0x5f56('0x18')]['mapViewToDom'](_0x4c4a76))[_0x5f56('0xea')](_0x13fe67=>Array['from'](_0x13fe67[_0x5f56('0x35')]()))[_0x5f56('0xb2')]();}if(!this[_0x5f56('0xc2')])return _0x20a91f[0x0];return _0x20a91f[_0x5f56('0x32')](_0xdcabd4=>_0xdcabd4[_0x5f56('0x78')]-0x3<=this['_activeViewTarget']['y']&&_0xdcabd4[_0x5f56('0x5a')]+0x3>=this[_0x5f56('0xc2')]['y']&&_0xdcabd4[_0x5f56('0xf7')]-0x3<=this['_activeViewTarget']['x']&&_0xdcabd4[_0x5f56('0x11a')]+0x3>=this[_0x5f56('0xc2')]['x'])||_0x20a91f[0x0];}}}),this['_balloon'][_0x5f56('0x46')](_0x5f56('0xd5')));}),this['on']('change:activeChange',(_0x4c04e0,_0x3fb728,_0x5ece2b,_0x194384)=>{this[_0x5f56('0xf9')]=_0x5ece2b?this[_0x5f56('0x7b')](_0x5ece2b):null,this[_0x5f56('0x88')][_0x5f56('0x20')][_0x5f56('0x5c')](()=>{const _0x27d61e=this[_0x5f56('0x88')][_0x5f56('0xe2')];_0x194384&&(_0x194384[_0x5f56('0xd1')][_0x5f56('0xd2')]?_0x27d61e[_0x5f56('0xb')][_0x5f56('0x5c')](_0x54901e=>{_0x54901e[_0x5f56('0x1f')](_0x5f56('0x113'),_0x27d61e[_0x5f56('0xb')][_0x5f56('0x7')]['getRoot'](_0x194384[_0x5f56('0x5f')]));}):_0x27d61e[_0x5f56('0x62')](_0x5f56('0x8c')+_0x194384['id'])),_0x5ece2b&&(_0x5ece2b[_0x5f56('0xd1')]['isOnRoot']?_0x27d61e['view']['change'](_0x4eae71=>{_0x4eae71[_0x5f56('0xf')]('ck-revision-history-root--active',_0x27d61e[_0x5f56('0xb')][_0x5f56('0x7')]['getRoot'](_0x5ece2b[_0x5f56('0x5f')]));}):_0x27d61e[_0x5f56('0x62')](_0x5f56('0x8c')+_0x5ece2b['id']));});}),this[_0x5f56('0xed')](this['editor']['editing'][_0x5f56('0xb')][_0x5f56('0x7')],_0x5f56('0xb6'),(_0x114ba4,_0x33c80b)=>{if(this[_0x5f56('0x2a')])return;const _0x1cbbba=this['_findChangeIdFromDomTarget'](_0x33c80b[_0x5f56('0x15')]),_0x304cdd=this['_changeIdToChange'][_0x5f56('0x43')](_0x1cbbba);_0x304cdd?(this['_activeViewTarget']={'x':_0x33c80b['domEvent']['x'],'y':_0x33c80b['domEvent']['y']},this['activeView']=this[_0x5f56('0x7b')](_0x304cdd)):(this[_0x5f56('0xc2')]=null,this[_0x5f56('0xf9')]=null);}),this['listenTo'](this['editor'][_0x5f56('0xe2')]['view']['document'],_0x5f56('0x6c'),(_0x298940,_0x224325)=>{const _0x34f18f=this[_0x5f56('0x9f')](_0x224325[_0x5f56('0x15')]),_0xc0e4c6=this[_0x5f56('0x2f')][_0x5f56('0x43')](_0x34f18f);_0xc0e4c6?(this[_0x5f56('0xc2')]={'x':_0x224325[_0x5f56('0x103')]['x'],'y':_0x224325[_0x5f56('0x103')]['y']},_0xc0e4c6===this[_0x5f56('0x2a')]?this[_0x5f56('0xad')]['updatePosition']():this[_0x5f56('0x2a')]=_0xc0e4c6):(this[_0x5f56('0xc2')]=null,this[_0x5f56('0x2a')]=null);});}['_findChangeIdFromDomTarget'](_0x1933c8){do{const _0x413f4b=_0x1933c8[_0x5f56('0x84')](_0x5f56('0x55'));if(_0x413f4b)return _0x413f4b;_0x1933c8=_0x1933c8[_0x5f56('0x13')];}while(_0x1933c8);return null;}[_0x5f56('0xa4')](){this['editor'][_0x5f56('0x20')][_0x5f56('0x5c')](_0x6d211f=>{for(const _0xd98461 of this['editor'][_0x5f56('0x20')][_0x5f56('0x7a')])_0x6d211f['removeMarker'](_0xd98461);});}}function et(_0x13e6ce,_0x2c7946){return(_0x3a494f,_0x3cf5b0,_0x4d9ff8)=>{if(!_0x4d9ff8[_0x5f56('0x21')][_0x5f56('0x104')](_0x3cf5b0[_0x5f56('0x51')],_0x3a494f[_0x5f56('0x8a')]))return;const _0x1d9660=_0x3cf5b0[_0x5f56('0x51')][_0x5f56('0x1e')](),_0x3ca6d6=_0x3cf5b0[_0x5f56('0x51')][_0x5f56('0xc7')],_0x3911e6=_0x13e6ce[_0x5f56('0x20')]['schema'];let _0x183e7e=null,_0x467196=null,_0x40794f=!0x1,_0x16a2e5=!0x1;for(const _0xcae28e of _0x1d9660){const _0x2eb172=_0xcae28e[_0x5f56('0xf4')];_0x40794f=_0x40794f||_0x3911e6['isContent'](_0x2eb172);const _0x4d7aff=_0x4d9ff8[_0x5f56('0x12')][_0x5f56('0x69')](_0x2eb172);if(_0x4d7aff&&_0x4d7aff[_0x5f56('0x9e')]('addHighlight'))return;'elementEnd'==_0xcae28e['type']&&(_0x3911e6['isBlock'](_0x2eb172)&&!_0x3911e6[_0x5f56('0x101')](_0x2eb172)&&(_0x2eb172['nextSibling']||_0x3ca6d6[_0x5f56('0x93')]?_0x183e7e&&_0x183e7e[_0x5f56('0x13')]==_0x2eb172||(_0x183e7e=_0x2eb172,_0x50e0e2(_0xcae28e[_0x5f56('0xfa')]),_0x16a2e5=!0x0):_0x467196=_0x467196||_0xcae28e[_0x5f56('0xfa')]));}function _0x50e0e2(_0x1df923){const _0x3f84f=_0x4d9ff8[_0x5f56('0x12')][_0x5f56('0xb0')](_0x1df923),_0x26f480=_0x4d9ff8[_0x5f56('0xf6')][_0x5f56('0x7c')](_0x5f56('0x73'),{'class':_0x5f56('0xee')+_0x2c7946});_0x4d9ff8[_0x5f56('0xf6')][_0x5f56('0x10d')](_0x3f84f,_0x26f480),_0x4d9ff8[_0x5f56('0x12')][_0x5f56('0xa6')](_0x26f480,_0x3cf5b0['markerName']);}_0x40794f||_0x16a2e5||!_0x467196||_0x50e0e2(_0x467196);};}export class RestoreRevisionCommand extends _0x14259b{constructor(_0x52b2c4){super(_0x52b2c4);const _0x2a49c9=_0x52b2c4[_0x5f56('0x11d')][_0x5f56('0x43')](d);this[_0x5f56('0xb1')]=!0x1,this['listenTo'](_0x2a49c9,_0x5f56('0x8'),()=>this['refresh']()),this[_0x5f56('0xed')](_0x2a49c9,_0x5f56('0x40'),()=>this[_0x5f56('0x11f')]());}[_0x5f56('0x19')](){const _0x5609fc=this[_0x5f56('0x88')],_0x48540d=_0x5609fc[_0x5f56('0x11d')][_0x5f56('0x43')](d),_0x56be13=_0x48540d[_0x5f56('0x8b')]?_0x48540d[_0x5f56('0x119')][_0x5f56('0xbd')]:null;_0x5609fc[_0x5f56('0x41')][_0x5f56('0x43')](_0x5f56('0x52'))[_0x5f56('0x33')](_0x56be13);}[_0x5f56('0x11f')](){const {isReady:_0x11f824,isEnabled:_0x30fd51}=this[_0x5f56('0x88')][_0x5f56('0x11d')][_0x5f56('0x43')](d);this['isEnabled']=_0x11f824&&_0x30fd51;}}export class ShowChangeCommand extends _0x14259b{constructor(_0x44e7f4,{direction:_0x3c7a87}){super(_0x44e7f4);const _0x51dc77=_0x44e7f4['plugins'][_0x5f56('0x43')](d);this[_0x5f56('0xb1')]=!0x1,this['_step']=_0x5f56('0xc4')===_0x3c7a87?0x1:-0x1,this[_0x5f56('0xed')](_0x51dc77,_0x5f56('0x8'),()=>this[_0x5f56('0x11f')]()),this[_0x5f56('0xed')](_0x51dc77,_0x5f56('0x40'),()=>this['refresh']()),this['listenTo'](_0x51dc77,_0x5f56('0x24'),()=>this['refresh']());}['execute'](){const _0x1b7a6f=this[_0x5f56('0x88')],_0x4ba9a2=_0x1b7a6f[_0x5f56('0x11d')]['get'](d),{isNavigationMode:_0x7d2c7b,currentChangeNumber:_0x493a79}=_0x4ba9a2;let _0x55dc7b;if(_0x4ba9a2[_0x5f56('0x2a')]=_0x7d2c7b?_0x4ba9a2[_0x5f56('0x119')][_0x5f56('0x63')][_0x5f56('0x43')](_0x493a79+this[_0x5f56('0x11')]):_0x4ba9a2['diff'][_0x5f56('0x63')][_0x5f56('0x110')],_0x4ba9a2[_0x5f56('0x2a')][_0x5f56('0xd1')]['isOnRoot'])_0x55dc7b=_0x1b7a6f[_0x5f56('0xe2')][_0x5f56('0xb')][_0x5f56('0x25')](_0x4ba9a2[_0x5f56('0x2a')][_0x5f56('0x5f')]);else{const _0xefc275=_0x1b7a6f[_0x5f56('0x20')][_0x5f56('0x7a')][_0x5f56('0x43')](_0x5f56('0x8c')+_0x4ba9a2['activeChange']['id']);_0x55dc7b=_0x43e17b(_0x1b7a6f[_0x5f56('0xe2')],_0xefc275);}_0x455a82({'target':_0x55dc7b,'viewportOffset':0x28});}[_0x5f56('0x11f')](){const {isNavigationMode:_0x1da2eb,currentChangeNumber:_0x4a2796,numberOfChanges:_0x3ac77e,isReady:_0x33e973,isEnabled:_0x31fb0b}=this[_0x5f56('0x88')][_0x5f56('0x11d')]['get'](d);this['isEnabled']=!!(_0x31fb0b&&_0x33e973&&_0x3ac77e)&&(!_0x1da2eb||(0x1===this[_0x5f56('0x11')]?_0x4a2796<_0x3ac77e-0x1:_0x4a2796>0x0));}}
23
+ const _0x247b=['flat','_markInsertions','isOnRoot','isAfter','isInline','pairId','offsetSize','vid_start','_changeView','restoreRevision','mousedown','addClass','_setChanges','elementEnd','from','ck-suggestion-marker--active','writer','addMarker:revision','getCustomProperty','checkAttribute','createPositionFromPath','config','split','data','ck-editor__editable__overlay','bindElementToMarker','isContent','suggestion:','addRoot','_removeUnsupportedChanges','values','markersEnd','vid_end','high','isAtEnd','item','isAdded','_step','upcast','slice','indexOf','attributes','execute','mapViewToDom','forEach','data-revision-','getAttribute','resolve','detachRoot','affectsData','change:isReady','clear','addRevision','getRootNames','parent','filter','changeId','plugins','forceDisabled','isCollapsed','unshift','_refreshStartEndIndex','modelRange','change:activeView','userId','markerNameToElements','_setConversion','getWalker','remove','_fixObsoleteTags','_removeRevisionMarkers','all','isBlock','_getViewForChange','isLimit','toViewElement','element','bind','map','markers','element:pre','changes','toViewPosition','-new','_getViewObj','insert','selection','consume','splice','_makeModelFromViewString','push','getRevisionData','viewItem','downcastDispatcher','getIndex','error','start','consumable','repository','nextSibling','ck-revision-history-root-','_findChangeIdFromDomTarget','wrap','conversion','model','document','keys','deletion','locale','default','mapper','maxOffset','_update','ck-suggestion-marker-merge','addHighlight','data-change-id','elementStart','markerToData','next','_processTape','revisionHistory','_joinTapes','observeMarkers','diff','object','name','concat','first','createUIElement','_initInteractions','markerToHighlight','_markSuggestions','ck-revision-history-root-remove','processor','delete','RevisionViewer','get','editingDowncast','getClientRects','change','elementToAttribute','ck-suggestion-preview-marker-','index','comment','ck-suggestion-marker-','requires','removeMarker:revision-suggestion','startIndex','WidgetToolbarRepository','revision-comment:','collaboration.channelId','markersStart','ck-revision-history-root-add','isBefore','listenTo','editor','_markMismatchedRemovedTags','span','_makeModelFromTape','attributesAfter','isRemoveSuggestion','_getChangeFromId','schema','type','updatePosition','_markMarkers','pop','useFillerType','hasClass','forward','_setDistance','highest','stop','insertions','enqueueChange','_activeViewTarget','distance','setAttribute','revision-suggestion:','mouseover','test','getRoot','editing','end','isSuggestion','diffData','restoreRevisionCallback','currentChangeNumber','createRevision','enableReadOnlyMode','authors','isAtStart','showNextChange','refresh','isEqual','removeClass','hasAttribute','createAttributeElement','newRevisionId','change:activeChange','isIncorrect','markerName','_balloon','activeChange','revisionHistoryLabel','level','roots','showStack','_cleanUp','set','isReady','_removeMissingPairs','_getRevisionsRange','revision','_makeTape','children','addMarker:revision-suggestion:insertion','parse','isEnabled','startsWith','getChild','right','markerRange','insertion','revision-viewer','init','_appendChild','ck-revision-history-root--active','createRange','sort','bottom','revision:','previousPosition','domConverter','ck-suggestion-preview-marker','_getDiff','isRemoved','rootName','POSITIVE_INFINITY','merge','abs','_changeIdToChange','getRevision','string','getDomRoot','adapter','destroy','text','toViewRange','activeView','_sortAndFilterDiffChanges','_cleanMarkers','pluginName','change:isEnabled','toData','add','oldRevisionId','ck-suggestion-marker','includes','attachChange','view','has','done','nodeAfter','findIndex','loadRevisionData','shift','deletions','endIndex','nextPosition','length','then','for','revision-suggestion','code','left','_data','reconvertMarker','isAddSuggestion','getItems','getAttributes','domEvent','revision-end','dataDowncast','_threeWayMerge','revisionHistoryAttachChange','dataToMarker','side','isAttached','commands'];(function(_0x47dcd7,_0x247b56){const _0x344a07=function(_0x1e1195){while(--_0x1e1195){_0x47dcd7['push'](_0x47dcd7['shift']());}};_0x344a07(++_0x247b56);}(_0x247b,0x192));const _0x344a=function(_0x47dcd7,_0x247b56){_0x47dcd7=_0x47dcd7-0x0;let _0x344a07=_0x247b[_0x47dcd7];return _0x344a07;};import{Plugin as _0x125709,Command as _0x25f1d2}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x273ccb}from'ckeditor5/src/utils';import{ContextualBalloon as _0x1d8589}from'ckeditor5/src/ui';import{DocumentFragment as _0x36fc70,Element as _0x526e46,Text as _0x5b86a7,ViewDocumentFragment as _0x4a90fe,ViewText as _0x59aa6b,ViewElement as _0x3bbedb,ViewContainerElement as _0x1f1c8b,ViewAttributeElement as _0x37172e,ViewEmptyElement as _0x17ed00,ViewRawElement as _0xdb0d64,ViewUIElement as _0xf2892d}from'ckeditor5/src/engine';import{Users as _0x1ab42c,getMarkerDomElement as _0x292d23}from'ckeditor5-collaboration/src/collaboration-core';import _0x365704 from'./ui/revisionviewer/changedetailsview';import _0x26e6fb from'./revisionsrepository';import _0x21e000 from'./changeitem';import{default as _0x303b71}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x230284}from'lodash-es';const tt={'c':_0x1f1c8b,'a':_0x37172e,'e':_0x17ed00,'r':_0xdb0d64,'u':_0xf2892d};export default class d extends _0x125709{static get[_0x344a('0x8c')](){return _0x344a('0x17');}static get[_0x344a('0x21')](){return[_0x1ab42c,_0x1d8589,_0x26e6fb];}constructor(_0x2d5cc4){super(_0x2d5cc4),this[_0x344a('0x114')]=this['editor']['plugins'][_0x344a('0x18')]('RevisionsRepository'),this[_0x344a('0x61')](_0x344a('0x5b'),null),this[_0x344a('0x61')](_0x344a('0x89'),null),this[_0x344a('0x3f')]=null,this[_0x344a('0x61')](_0x344a('0xb'),null),this[_0x344a('0x61')](_0x344a('0x62'),!0x1),this[_0x344a('0x61')](_0x344a('0x6a'),!0x0),this['on']('change:isEnabled',(_0x401697,_0x5c8ca9,_0x3921dc)=>{this['activeChange']=null,this['activeView']=null,this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x94')][_0x344a('0x1b')](_0x37f10a=>{for(const _0x35b550 of this[_0x344a('0x2b')][_0x344a('0x46')]['view'][_0x344a('0x11b')][_0x344a('0x5e')])_0x3921dc?_0x37f10a[_0x344a('0x53')]('ck-editor__editable__overlay',_0x35b550):_0x37f10a[_0x344a('0xbd')](_0x344a('0xca'),_0x35b550);});}),this[_0x344a('0xff')]('isNavigationMode')['to'](this,_0x344a('0x5b'),_0x51c162=>null!==_0x51c162),this[_0x344a('0xff')](_0x344a('0x4b'))['to'](this,_0x344a('0x62'),this,'diff',this,'activeChange',(_0x51e040,_0x123886,_0x41276e)=>_0x51e040&&_0x41276e?_0x123886['changes'][_0x344a('0x110')](_0x41276e):0x0),this[_0x344a('0xff')]('numberOfChanges')['to'](this,_0x344a('0x62'),this,_0x344a('0xb'),(_0x30d068,_0x16b763)=>_0x30d068?_0x16b763['changes'][_0x344a('0x9e')]:0x0),this[_0x344a('0xba')]=null,this[_0x344a('0x81')]=new Map(),this[_0x344a('0x85')]=null,this[_0x344a('0x5a')]=this[_0x344a('0x2b')][_0x344a('0xeb')]['get'](_0x1d8589);}[_0x344a('0x71')](){const _0x92320d=this[_0x344a('0x2b')],_0x437b9d=new ShowChangeCommand(_0x92320d,{'direction':'backward'}),_0x38490a=new ShowChangeCommand(_0x92320d,{'direction':_0x344a('0x39')});(_0x92320d[_0x344a('0xb1')][_0x344a('0x8f')]('showPreviousChange',_0x437b9d),_0x92320d['commands'][_0x344a('0x8f')](_0x344a('0x50'),_0x38490a),_0x92320d['commands'][_0x344a('0x8f')](_0x344a('0xbb'),new RestoreRevisionCommand(_0x92320d)),this['on']('change:numberOfChanges',()=>{_0x437b9d[_0x344a('0x51')](),_0x38490a[_0x344a('0x51')]();}),this[_0x344a('0xf4')](),this[_0x344a('0x11')](),_0x92320d[_0x344a('0x4d')](_0x344a('0x70')),_0x92320d['plugins'][_0x344a('0x95')](_0x344a('0x24')))&&_0x92320d['plugins'][_0x344a('0x18')]('WidgetToolbarRepository')[_0x344a('0xec')](_0x344a('0x70'));}async[_0x344a('0x10d')](_0x8a6b94){await this[_0x344a('0x99')](_0x8a6b94);const _0x31f9a1={};for(const _0x99e55d in _0x8a6b94[_0x344a('0x49')]){if(_0x8a6b94[_0x344a('0x49')][_0x99e55d][_0x344a('0x93')]&&!_0x8a6b94[_0x344a('0x49')][_0x99e55d][_0x344a('0x93')][_0x344a('0xb0')])continue;const _0x18ed0b=this['_removeRevisionMarkers'](JSON[_0x344a('0x69')](_0x8a6b94[_0x344a('0x49')][_0x99e55d][_0x344a('0x3d')])),_0x4352c9=this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x94')][_0x344a('0x11b')],_0x14d606=new _0x4a90fe(_0x4352c9,_0x18ed0b['map'](_0x2c7a51=>this[_0x344a('0x106')](_0x2c7a51)));this[_0x344a('0x2b')][_0x344a('0xc9')][_0x344a('0x15')][_0x344a('0x37')]('marked'),_0x31f9a1[_0x99e55d]=this[_0x344a('0x2b')][_0x344a('0xc9')]['processor'][_0x344a('0x8e')](_0x14d606),this['editor'][_0x344a('0xc9')][_0x344a('0x15')][_0x344a('0x37')](_0x344a('0x11f'));}return _0x31f9a1;}async['getRevisionRootsAttributes'](_0x4541da){await this[_0x344a('0x99')](_0x4541da);const _0x451268={};for(const _0x14c370 in _0x4541da['diffData'])_0x4541da[_0x344a('0x49')][_0x14c370][_0x344a('0x93')]&&!_0x4541da['diffData'][_0x14c370][_0x344a('0x93')][_0x344a('0xb0')]||(_0x451268[_0x14c370]=_0x4541da[_0x344a('0x49')][_0x14c370][_0x344a('0x2f')]||{});return _0x451268;}[_0x344a('0xf8')](_0xedfc9e){return(_0xedfc9e=_0xedfc9e[_0x344a('0xe9')](_0x4d0052=>!_0x4d0052['name']||'revision-start'!==_0x4d0052[_0x344a('0xd')]&&_0x344a('0xaa')!==_0x4d0052['name']))[_0x344a('0xde')](_0x129b64=>{_0x344a('0x83')!=typeof _0x129b64&&(_0x129b64['children']=this[_0x344a('0xf8')](_0x129b64[_0x344a('0x67')]),_0x129b64[_0x344a('0xdb')]=_0x129b64[_0x344a('0xdb')]['filter'](_0x3a15a0=>!_0x3a15a0[0x0]['startsWith'](_0x344a('0xdf'))));}),_0xedfc9e;}async['compare'](_0x18108e,_0x3e52e9,_0x3385d7=!0x1){if(!this['isEnabled'])return;const _0x3af6ce=this['diff'],_0x4abfc0=this['repository'],_0x597af8=_0x344a('0x83')==typeof _0x18108e?_0x4abfc0[_0x344a('0x82')](_0x18108e):_0x18108e,_0x5982ba=_0x344a('0x83')==typeof _0x3e52e9?_0x4abfc0['getRevision'](_0x3e52e9):_0x3e52e9,_0x3fcbd3=_0x597af8['id'],_0x41aa31=_0x5982ba?_0x5982ba['id']:null;if(!_0x3385d7&&this[_0x344a('0xb')]&&this[_0x344a('0xb')][_0x344a('0x56')]===_0x3fcbd3&&this[_0x344a('0xb')][_0x344a('0x90')]===_0x41aa31)return Promise[_0x344a('0xe1')]();this[_0x344a('0x62')]=!0x1,this[_0x344a('0x89')]=null,this['activeChange']=null,this['diff']=new _0x303b71(_0x3fcbd3,_0x41aa31);const _0x361e9f=this[_0x344a('0x64')](_0x597af8,_0x5982ba,!0x0)[_0x344a('0x100')](_0x2951d7=>this[_0x344a('0x99')](_0x2951d7));return _0x361e9f['push'](new Promise(_0x2326f1=>{setTimeout(_0x2326f1,0x14);})),Promise[_0x344a('0xf9')](_0x361e9f)[_0x344a('0x9f')](()=>{if(!this[_0x344a('0x6a')])return;this[_0x344a('0x60')]();const _0x4399a7=this[_0x344a('0x7b')](_0x3fcbd3,_0x41aa31);for(const _0x57b97e of _0x4399a7[_0x344a('0x103')])this['_changeIdToChange'][_0x344a('0x61')](_0x57b97e['id'],_0x57b97e);this[_0x344a('0x2b')]['model']['enqueueChange']({'isUndoable':!0x1},_0x310124=>{for(const _0x126e27 of this[_0x344a('0x2b')]['model'][_0x344a('0x11b')][_0x344a('0xe7')]())_0x310124[_0x344a('0xe2')](_0x126e27);for(const _0x43ec80 of Object['keys'](_0x4399a7['model'])){const _0x44f9c7=_0x310124[_0x344a('0xce')](_0x43ec80);for(const _0x1c1238 of Object[_0x344a('0x11c')](_0x4399a7['attributes'][_0x43ec80]))_0x310124['setAttribute'](_0x1c1238,_0x4399a7[_0x344a('0xdb')][_0x43ec80][_0x1c1238],_0x44f9c7);_0x310124['insert'](_0x4399a7[_0x344a('0x11a')][_0x43ec80],_0x44f9c7,0x0);}}),this[_0x344a('0xb')][_0x344a('0xbe')](this[_0x344a('0x8a')](_0x4399a7[_0x344a('0x103')])),this['isReady']=!0x0;})['catch'](_0x4cd741=>{console[_0x344a('0x111')](_0x4cd741),this[_0x344a('0x60')](),_0x3af6ce&&(this[_0x344a('0xb')]=_0x3af6ce),this[_0x344a('0x62')]=!0x0;});}['addRevisionData'](_0x5ac4d0,_0x3e2eee){const _0x4b66b0=this[_0x344a('0x114')][_0x344a('0x4c')](_0x5ac4d0);return _0x4b66b0['on'](_0x344a('0x0'),(_0x1b3b4e,_0x5a8a9c,_0x840392)=>_0x3e2eee(_0x5a8a9c,_0x840392,_0x4b66b0)),this[_0x344a('0x114')][_0x344a('0xe6')](_0x4b66b0),_0x4b66b0;}[_0x344a('0x99')](_0x29ec18){if(!_0x29ec18||_0x29ec18[_0x344a('0x49')])return Promise[_0x344a('0xe1')]();{const _0xa1cc0a=this[_0x344a('0x2b')][_0x344a('0xc7')]['get'](_0x344a('0x26'));return this[_0x344a('0x85')][_0x344a('0x82')]({'channelId':_0xa1cc0a,'revisionId':_0x29ec18['id']})[_0x344a('0x9f')](_0x6cc2a5=>{_0x29ec18[_0x344a('0x0')]({'diffData':_0x6cc2a5[_0x344a('0x49')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this[_0x344a('0x8b')](),this[_0x344a('0xba')]&&this[_0x344a('0xba')][_0x344a('0x86')](),this[_0x344a('0xba')]=null,this[_0x344a('0x81')][_0x344a('0xe5')](),this[_0x344a('0x2b')][_0x344a('0x11a')][_0x344a('0x3e')]({'isUndoable':!0x1},_0x3768ff=>{for(const _0x458d37 of this['editor'][_0x344a('0x11a')][_0x344a('0x11b')][_0x344a('0xe7')]())_0x3768ff[_0x344a('0xe2')](_0x458d37);});}[_0x344a('0x8a')](_0x51ebe4){const _0x46573a=[],_0x476240=new Map();for(const _0x2648d8 of this['editor'][_0x344a('0x11a')][_0x344a('0x11b')][_0x344a('0xe7')]()){const _0x1ed54e=this[_0x344a('0x2b')][_0x344a('0x46')]['view'][_0x344a('0x84')](_0x2648d8);if(!_0x1ed54e)continue;const _0x43531b=_0x1ed54e['getClientRects']()[_0x344a('0xd5')](0x0);_0x43531b&&(_0x46573a[_0x344a('0x10c')](_0x2648d8),_0x476240[_0x344a('0x61')](_0x2648d8,_0x43531b));}return _0x46573a['sort']((_0x50299b,_0x30691b)=>{const _0xbd70c8=_0x476240[_0x344a('0x18')](_0x50299b),_0x289d5b=_0x476240['get'](_0x30691b);return _0xbd70c8['y']-_0x289d5b['y']||_0xbd70c8['x']-_0x289d5b['x'];}),(_0x51ebe4=_0x51ebe4[_0x344a('0xe9')](_0x2e33c9=>_0x46573a[_0x344a('0x92')](_0x2e33c9['rootName'])))[_0x344a('0x75')]((_0x4b7811,_0x4fc134)=>_0x46573a[_0x344a('0xda')](_0x4b7811[_0x344a('0x7d')])-_0x46573a[_0x344a('0xda')](_0x4fc134['rootName'])),_0x51ebe4;}[_0x344a('0x66')](_0xffca05){const _0xbd2357=Array[_0x344a('0xc0')](_0xffca05[_0x344a('0x101')])[_0x344a('0xe9')](([_0xf9d2fb,_0x26d9ca])=>_0xf9d2fb[_0x344a('0x6b')](_0x344a('0x77'))&&!_0x26d9ca[_0x344a('0xed')]),_0x3ec77e=Array['from'](this['editor'][_0x344a('0x11a')]['createRangeIn'](_0xffca05)[_0x344a('0xf5')]({'singleCharacters':!0x0}));if(0x0!=_0xbd2357[_0x344a('0x9e')])for(const _0x2d4907 of _0x3ec77e){const [_0x59ec85,_0x55a1ce]=_0xbd2357[0x0],[,_0x4ef1d5,_0x17cd94]=_0x59ec85[_0x344a('0xc8')](':');if(_0x55a1ce[_0x344a('0x47')][_0x344a('0x52')](_0x2d4907['nextPosition'])&&_0xbd2357[_0x344a('0x9a')](),(_0x2d4907['previousPosition'][_0x344a('0x52')](_0x55a1ce[_0x344a('0x112')])||_0x2d4907['previousPosition'][_0x344a('0xb5')](_0x55a1ce[_0x344a('0x112')]))&&(_0x344a('0x6f')==_0x4ef1d5?_0x2d4907['isAdded']={'userId':_0x17cd94}:_0x344a('0x11d')==_0x4ef1d5&&(_0x2d4907[_0x344a('0x7c')]={'userId':_0x17cd94})),0x0==_0xbd2357['length'])break;}return _0x3ec77e;}['_refreshStartEndIndex'](_0x59b30a){const _0x16a621=new Map();for(let _0x5274fd=0x0;_0x5274fd<_0x59b30a[_0x344a('0x9e')];_0x5274fd++)'text'===_0x59b30a[_0x5274fd][_0x344a('0x33')]?(_0x59b30a[_0x5274fd][_0x344a('0xd5')][_0x344a('0x23')]=_0x5274fd,_0x59b30a[_0x5274fd][_0x344a('0xd5')][_0x344a('0x9c')]=_0x5274fd):('elementStart'===_0x59b30a[_0x5274fd]['type']?_0x59b30a[_0x5274fd][_0x344a('0xd5')][_0x344a('0x23')]=_0x5274fd:_0x344a('0xbf')===_0x59b30a[_0x5274fd]['type']&&(_0x59b30a[_0x5274fd][_0x344a('0xd5')][_0x344a('0x9c')]=_0x5274fd),_0x16a621[_0x344a('0x61')](_0x59b30a[_0x5274fd]['id'],_0x5274fd));for(const _0xb36314 of _0x16a621[_0x344a('0xd0')]())'elementStart'===_0x59b30a[_0xb36314][_0x344a('0x33')]?_0x59b30a[_0xb36314][_0x344a('0xd5')]['endIndex']=_0x16a621[_0x344a('0x18')](_0x59b30a[_0xb36314][_0x344a('0xb7')]):'elementEnd'===_0x59b30a[_0xb36314]['type']&&(_0x59b30a[_0xb36314][_0x344a('0xd5')][_0x344a('0x23')]=_0x16a621['get'](_0x59b30a[_0xb36314][_0x344a('0xb7')]));}[_0x344a('0x7')](_0x11685a){for(let _0x35a85b=0x0;_0x35a85b<_0x11685a['length'];_0x35a85b++){if(_0x344a('0x4')===_0x11685a[_0x35a85b]['type'])_0x11685a[_0x35a85b][_0x344a('0xd5')][_0x344a('0x23')]=_0x35a85b;else{if(_0x344a('0xbf')===_0x11685a[_0x35a85b][_0x344a('0x33')]){_0x11685a[_0x35a85b][_0x344a('0xd5')][_0x344a('0x9c')]=_0x35a85b;const _0x30e993=_0x11685a[_0x35a85b][_0x344a('0xd5')][_0x344a('0x23')];_0x11685a[_0x30e993][_0x344a('0xb7')]=_0x11685a[_0x35a85b]['id'],_0x11685a[_0x35a85b][_0x344a('0xb7')]=_0x11685a[_0x30e993]['id'];}else _0x11685a[_0x35a85b][_0x344a('0xd5')][_0x344a('0x23')]=_0x35a85b,_0x11685a[_0x35a85b][_0x344a('0xd5')][_0x344a('0x9c')]=_0x35a85b,_0x11685a[_0x35a85b][_0x344a('0xb7')]=null;}_0x11685a[_0x35a85b][_0x344a('0x27')]||(_0x11685a[_0x35a85b]['markersStart']=[],_0x11685a[_0x35a85b][_0x344a('0xd1')]=[]);}}[_0x344a('0xb3')](_0x1c0313,_0x491e6b){const _0x4a642b=_0x1c0313[_0x344a('0xe9')](_0x1c8ce8=>!_0x1c8ce8[_0x344a('0xd6')]);for(let _0x496e2d=0x0;_0x496e2d<_0x491e6b[_0x344a('0x9e')];_0x496e2d++)_0x491e6b[_0x496e2d][_0x344a('0xd6')]&&(_0x4a642b[_0x496e2d][_0x344a('0xd6')]=_0x491e6b[_0x496e2d][_0x344a('0xd6')]);}['_makeModelFromViewString'](_0x108bcb){const _0x336bb0=JSON[_0x344a('0x69')](_0x108bcb),_0x4ab74d=this['editor']['editing'][_0x344a('0x94')][_0x344a('0x11b')],_0x541cf6=new _0x4a90fe(_0x4ab74d,_0x336bb0[_0x344a('0x100')](_0xe00890=>this[_0x344a('0x106')](_0xe00890)));return this[_0x344a('0x2b')][_0x344a('0xc9')]['toModel'](_0x541cf6);}[_0x344a('0x106')](_0x3bbc73){const _0x2f5787=this[_0x344a('0x2b')]['editing'][_0x344a('0x94')]['document'];if(_0x344a('0x83')==typeof _0x3bbc73)return new _0x59aa6b(_0x2f5787,_0x3bbc73);{const _0x125df2=_0x3bbc73[_0x344a('0x67')]['map'](_0x54ddde=>this['_getViewObj'](_0x54ddde));return new(tt[_0x3bbc73[(_0x344a('0x33'))]]||_0x3bbedb)(_0x2f5787,_0x3bbc73['name'],_0x3bbc73[_0x344a('0xdb')],_0x125df2);}}[_0x344a('0x7b')](_0x238c3d,_0x2e4c82=null){const _0x5214fd=this['repository'][_0x344a('0x82')](_0x238c3d),_0x505031=_0x2e4c82?this[_0x344a('0x114')][_0x344a('0x82')](_0x2e4c82):null,_0x5621ea=this[_0x344a('0x64')](_0x5214fd,_0x505031),_0x20bc8c=_0x5621ea[_0x5621ea['length']-0x1],_0x361f05=new Map(),_0x9379cd={'model':{},'attributes':{},'changes':[]},_0x40a99=new Set(),_0x2843b4=new Map();for(let _0x32af75=_0x5621ea[_0x344a('0x9e')]-0x1;_0x32af75>=0x0;_0x32af75--){const _0xfef470=_0x5621ea[_0x32af75];for(const _0x2f628a of Object['keys'](_0xfef470[_0x344a('0x49')]))if(_0xfef470[_0x344a('0x49')][_0x2f628a]['attachChange']){const _0x1423ff=_0xfef470['diffData'][_0x2f628a]['attachChange'];_0x1423ff[_0x344a('0xb0')]?(_0x40a99[_0x344a('0x8f')](_0x2f628a),_0x2843b4[_0x344a('0x95')](_0x2f628a)&&_0x2843b4[_0x344a('0x18')](_0x2f628a)[_0x344a('0xf2')]==_0x1423ff[_0x344a('0xf2')]?_0x2843b4[_0x344a('0x16')](_0x2f628a):_0x2843b4[_0x344a('0x61')](_0x2f628a,_0x1423ff)):_0x2843b4[_0x344a('0x95')](_0x2f628a)?(_0x40a99[_0x344a('0x16')](_0x2f628a),_0x2843b4['delete'](_0x2f628a)):(_0x40a99[_0x344a('0x8f')](_0x2f628a),_0x2843b4['set'](_0x2f628a,_0x1423ff));}else _0x40a99['add'](_0x2f628a);}for(const _0x13a060 of _0x40a99){const _0x22d7b5=_0x2843b4[_0x344a('0x95')](_0x13a060)&&!_0x2843b4[_0x344a('0x18')](_0x13a060)[_0x344a('0xb0')];let _0x10d1cc=_0x22d7b5?_0x5621ea[_0x344a('0x9e')]-0x1:0x0;const _0x145a19=_0x22d7b5?-0x1:0x1;for(;_0x5621ea[_0x10d1cc];){const _0x40e556=_0x5621ea[_0x10d1cc];if(_0x40e556[_0x344a('0x49')][_0x13a060]){const _0xfe0c27=_0x22d7b5?_0x40e556[_0x344a('0x49')][_0x13a060]['attributesBefore']:_0x40e556[_0x344a('0x49')][_0x13a060][_0x344a('0x2f')];_0x9379cd[_0x344a('0xdb')][_0x13a060]=_0xfe0c27?_0x230284(_0xfe0c27):{};break;}_0x10d1cc+=_0x145a19;}}for(const _0x342150 of _0x5621ea){_0x342150[_0x344a('0x11a')]={};for(const _0x5e54a7 of _0x342150[_0x344a('0x4e')])_0x361f05[_0x344a('0x61')](_0x5e54a7['id'],_0x5e54a7);for(const _0x84e0af of _0x40a99){const _0x4a7854=_0x342150['diffData'][_0x84e0af]?_0x342150['diffData'][_0x84e0af][_0x344a('0x3d')]:'[]',_0x241c6c=_0x342150[_0x344a('0x49')][_0x84e0af]?_0x342150['diffData'][_0x84e0af][_0x344a('0x9b')]:'[]';_0x342150['model'][_0x84e0af]={'insertions':this[_0x344a('0x10b')](_0x4a7854),'deletions':this[_0x344a('0x10b')](_0x241c6c)};}}for(const _0x3e83e0 of _0x40a99){let _0x45f483=null,_0x1108eb=0x0;const _0x573708=new Map(Array[_0x344a('0xc0')](_0x5214fd[_0x344a('0x11a')][_0x3e83e0][_0x344a('0x3d')][_0x344a('0x101')])[_0x344a('0xe9')](([_0x1e1944])=>!_0x1e1944[_0x344a('0x6b')]('revision:')));let _0x5c2cec=0x0;for(const _0xf3eb2e of _0x5621ea){const _0x4155d7=this[_0x344a('0x66')](_0xf3eb2e[_0x344a('0x11a')][_0x3e83e0]['insertions']);_0xf3eb2e==_0x5214fd?(_0x45f483=_0x4155d7,_0x1108eb=_0x45f483[_0x344a('0x9e')],_0x45f483[_0x344a('0xde')](_0x296475=>{_0x296475['id']=_0x5c2cec++;}),this['_processTape'](_0x45f483)):this[_0x344a('0xb3')](_0x45f483,_0x4155d7);const _0x3f2b3b=_0x45f483[_0x344a('0xe9')](_0x362349=>!_0x362349[_0x344a('0xd6')])[_0x344a('0x100')](_0x474813=>_0x474813['id']);let _0x37200a=0x0;const _0x157fe9=this['_makeTape'](_0xf3eb2e[_0x344a('0x11a')][_0x3e83e0][_0x344a('0x9b')]);_0x157fe9[_0x344a('0xde')](_0x1281f9=>{_0x1281f9[_0x344a('0x7c')]?_0x1281f9['id']=_0x1108eb++:_0x1281f9['id']=_0x3f2b3b[_0x37200a++];}),this[_0x344a('0x7')](_0x157fe9),this[_0x344a('0x3a')](_0x45f483,_0x344a('0xd6')),this[_0x344a('0x3a')](_0x157fe9,_0x344a('0x7c')),_0xf3eb2e==_0x5214fd&&this['_markMarkers'](_0x45f483,_0x573708),_0x45f483=this[_0x344a('0x9')](_0x45f483,_0x157fe9),this[_0x344a('0xef')](_0x45f483),this[_0x344a('0x3a')](_0x45f483,_0x344a('0x7c'));}_0x45f483=_0x45f483[_0x344a('0xe9')](_0x2f50ff=>!(_0x2f50ff[_0x344a('0xd6')]&&_0x2f50ff[_0x344a('0x7c')]));const _0x4a0d6b=new Map(_0x20bc8c[_0x344a('0x11a')][_0x3e83e0][_0x344a('0x9b')]['markers']),_0x1c8379=new Set(_0x573708['keys']());for(const _0x3a922d of _0x4a0d6b[_0x344a('0x11c')]())_0x1c8379[_0x344a('0x16')](_0x3a922d);this[_0x344a('0x13')](_0x45f483,_0x1c8379),this['_fixObsoleteTags'](_0x45f483),_0x45f483=this[_0x344a('0x63')](_0x45f483),_0x45f483=this[_0x344a('0x2c')](_0x45f483),_0x45f483=this[_0x344a('0xcf')](_0x45f483);const {root:_0x4492e2,changes:_0x382199}=this[_0x344a('0x2e')](_0x45f483,_0x361f05,_0x3e83e0);_0x9379cd[_0x344a('0x11a')][_0x3e83e0]=_0x4492e2;const _0x24cc28=_0x2843b4[_0x344a('0x18')](_0x3e83e0);if(_0x24cc28){const _0x17fbae=_0x361f05[_0x344a('0x18')](_0x24cc28[_0x344a('0xf2')]),_0x10f016=new _0x21e000({'author':_0x17fbae,'type':_0x24cc28['isAttached']?_0x344a('0x8f'):_0x344a('0xf6'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3e83e0});_0x382199['unshift'](_0x10f016),_0x9379cd[_0x344a('0xdb')][_0x3e83e0]['revisionHistoryAttachChange']=_0x10f016['id'];}_0x9379cd[_0x344a('0x103')]=_0x9379cd[_0x344a('0x103')][_0x344a('0xe')](_0x382199);}return _0x9379cd;}[_0x344a('0x35')](_0x5e3de7,_0xb376a1){for(let _0x583cfd=0x0;_0x583cfd<_0x5e3de7[_0x344a('0x9e')];_0x583cfd++)for(const [_0x102761,_0x1b9337]of _0xb376a1)_0x1b9337[_0x344a('0x112')][_0x344a('0x52')](_0x5e3de7[_0x583cfd][_0x344a('0x78')])&&_0x5e3de7[_0x583cfd][_0x344a('0x27')][_0x344a('0x10c')](_0x102761),_0x1b9337[_0x344a('0x47')][_0x344a('0x52')](_0x5e3de7[_0x583cfd][_0x344a('0x9d')])&&_0x5e3de7[_0x583cfd][_0x344a('0xd1')][_0x344a('0x10c')](_0x102761);}[_0x344a('0x9')](_0x1e30af,_0x43e7f0){let _0x4b5f3b=[],_0x309a1a=0x0,_0x5a1957=0x0;for(;_0x309a1a<_0x1e30af[_0x344a('0x9e')]||_0x5a1957<_0x43e7f0[_0x344a('0x9e')];){const _0x584ceb=_0x1e30af[_0x309a1a]||{},_0x1dded4=_0x43e7f0[_0x5a1957]||{};if(_0x584ceb['id']==_0x1dded4['id'])_0x309a1a++,_0x5a1957++,_0x4b5f3b['push'](_0x584ceb);else{if(_0x1dded4[_0x344a('0x7c')]&&_0x584ceb[_0x344a('0xd6')]){const {commonTape:_0x1b1e5a,iEnd:_0x25eab9,jEnd:_0x427e59}=this[_0x344a('0xac')](_0x1e30af,_0x309a1a,_0x43e7f0,_0x5a1957);_0x4b5f3b=_0x4b5f3b[_0x344a('0xe')](_0x1b1e5a),_0x309a1a=_0x25eab9,_0x5a1957=_0x427e59;}else _0x1dded4[_0x344a('0x7c')]?(_0x5a1957++,_0x4b5f3b[_0x344a('0x10c')](_0x1dded4)):(_0x309a1a++,_0x4b5f3b[_0x344a('0x10c')](_0x584ceb));}}return _0x4b5f3b;}[_0x344a('0x13')](_0xde8af0,_0x485b6c){const _0x150208=[];for(let _0x3548cc=0x0;_0x3548cc<_0xde8af0[_0x344a('0x9e')];_0x3548cc++){for(let _0x18e5d7=0x0;_0x18e5d7<_0xde8af0[_0x3548cc][_0x344a('0x27')][_0x344a('0x9e')];_0x18e5d7++){const _0xc97ab6=_0xde8af0[_0x3548cc][_0x344a('0x27')][_0x18e5d7];if(!_0x485b6c[_0x344a('0x95')](_0xc97ab6))continue;const {group:_0x223069,type:_0x58185b,authorId:_0x1d81e5}=_0x4108d3(_0xc97ab6);_0x344a('0xa1')!=_0x223069||_0x344a('0x6f')!=_0x58185b&&_0x344a('0x11d')!=_0x58185b||(_0x150208['unshift']({'type':_0x58185b,'name':_0xc97ab6,'userId':_0x1d81e5}),_0xde8af0[_0x3548cc][_0x344a('0x27')][_0x344a('0x10a')](_0x18e5d7,0x1),_0x18e5d7--);}_0x46af70(_0xde8af0[_0x3548cc]);for(let _0x649abc=0x0;_0x649abc<_0xde8af0[_0x3548cc][_0x344a('0xd1')][_0x344a('0x9e')];_0x649abc++){const _0x4c5814=_0xde8af0[_0x3548cc][_0x344a('0xd1')][_0x649abc];if(!_0x485b6c['has'](_0x4c5814))continue;const {group:_0x4b351a,type:_0x2807c6}=_0x4108d3(_0x4c5814);if(_0x344a('0xa1')!=_0x4b351a||'insertion'!=_0x2807c6&&_0x344a('0x11d')!=_0x2807c6)continue;_0xde8af0[_0x3548cc][_0x344a('0xd1')][_0x344a('0x10a')](_0x649abc,0x1),_0x649abc--;const _0x4ca528=_0x150208[_0x344a('0x98')](_0x5a5fd9=>_0x5a5fd9[_0x344a('0xd')]==_0x4c5814);_0x4ca528>-0x1&&_0x150208[_0x344a('0x10a')](_0x4ca528,0x1);}}function _0x4108d3(_0x30a173){const _0x4b265b=_0x30a173[_0x344a('0xc8')](':');return{'group':_0x4b265b[0x0],'type':_0x4b265b[0x1],'subType':_0x4b265b[_0x344a('0x9e')]>=0x5?_0x4b265b[0x2]:null,'id':_0x4b265b[_0x344a('0x9e')]<0x5?_0x4b265b[0x2]:_0x4b265b[0x3],'authorId':_0x4b265b[_0x344a('0x9e')]<0x5?_0x4b265b[0x3]:_0x4b265b[0x4],'markerCount':0x6==_0x4b265b['length']?_0x4b265b[0x5]:null};}function _0x46af70(_0x1f837d){for(let _0x5002bc=0x0;_0x5002bc<_0x150208[_0x344a('0x9e')];_0x5002bc++){if(_0x1f837d[_0x344a('0xd6')]&&_0x344a('0x6f')==_0x150208[_0x5002bc][_0x344a('0x33')])return _0x1f837d[_0x344a('0xa6')]=_0x150208[_0x5002bc],void delete _0x1f837d[_0x344a('0xd6')];if(!_0x1f837d[_0x344a('0xd6')]&&!_0x1f837d[_0x344a('0x7c')]&&_0x344a('0x11d')==_0x150208[_0x5002bc][_0x344a('0x33')])return void(_0x1f837d[_0x344a('0x30')]=_0x150208[_0x5002bc]);}}}[_0x344a('0x3a')](_0x16fa86,_0x162c0e){let _0x17459b=0x0,_0x3cdb1b=!0x1;const _0x29a314=new Map();for(const _0x580175 of _0x16fa86)_0x580175[_0x162c0e]?_0x3cdb1b&&(_0x17459b++,_0x3cdb1b=!0x1):(_0x17459b++,_0x3cdb1b=!0x0),_0x29a314[_0x344a('0x61')](_0x580175['id'],_0x17459b);for(let _0x52d16e=0x0;_0x52d16e<_0x16fa86[_0x344a('0x9e')];_0x52d16e++){if(_0x344a('0x7c')==_0x162c0e&&_0x16fa86[_0x52d16e][_0x344a('0xd6')]||_0x344a('0xd6')==_0x162c0e&&_0x16fa86[_0x52d16e]['isRemoved'])continue;if(_0x344a('0x87')==_0x16fa86[_0x52d16e][_0x344a('0x33')]){_0x16fa86[_0x52d16e][_0x344a('0x40')]=0x0;continue;}const _0x340dbb=_0x29a314[_0x344a('0x18')](_0x16fa86[_0x52d16e][_0x344a('0xb7')]),_0x4e498b=_0x29a314[_0x344a('0x18')](_0x16fa86[_0x52d16e]['id']);_0x16fa86[_0x52d16e][_0x344a('0x40')]=_0x340dbb-_0x4e498b;}}['_getRevisionsRange'](_0x4ba85e,_0x565780,_0x4343e4=!0x1){const _0x58a7c3=[];let _0x12656c=this[_0x344a('0x114')][_0x344a('0x110')](_0x4ba85e),_0x5938f0=this[_0x344a('0x114')][_0x344a('0x110')](_0x565780);for(-0x1==_0x5938f0&&(_0x5938f0=this['repository']['_revisions'][_0x344a('0x9e')],_0x4343e4=!0x1);_0x12656c<_0x5938f0;)_0x58a7c3['push'](this[_0x344a('0x114')]['getRevision'](_0x12656c)),_0x12656c++;return _0x4343e4&&_0x58a7c3[_0x344a('0x10c')](this[_0x344a('0x114')][_0x344a('0x82')](_0x12656c)),_0x58a7c3;}[_0x344a('0xac')](_0x1733df,_0x489db2,_0x1056b5,_0x23a2e5){const _0x36f7a6=this[_0x344a('0x2b')][_0x344a('0x11a')][_0x344a('0x32')];let _0x623dad=_0x489db2;for(;_0x1733df[_0x623dad]&&_0x1733df[_0x623dad][_0x344a('0xd6')];)_0x623dad++;let _0x1d69ea=_0x23a2e5;for(;_0x1056b5[_0x1d69ea]&&_0x1056b5[_0x1d69ea][_0x344a('0x7c')];)_0x1d69ea++;_0x10fe1d(_0x1733df,_0x489db2,_0x623dad),_0x10fe1d(_0x1056b5,_0x23a2e5,_0x1d69ea);const _0x3f5186=_0x1056b5[_0x344a('0xd9')](_0x23a2e5,_0x1d69ea)[_0x344a('0xe')](_0x1733df[_0x344a('0xd9')](_0x489db2,_0x623dad));return _0x3f5186[_0x344a('0x75')]((_0x47445e,_0x2d34b4)=>_0x47445e['side']!=_0x2d34b4[_0x344a('0xaf')]?_0x47445e[_0x344a('0xaf')]-_0x2d34b4[_0x344a('0xaf')]:_0x47445e['level']!=_0x2d34b4[_0x344a('0x5d')]?_0x47445e[_0x344a('0x5d')]-_0x2d34b4[_0x344a('0x5d')]:_0x47445e[_0x344a('0x40')]!=_0x2d34b4[_0x344a('0x40')]?_0x2d34b4['distance']-_0x47445e[_0x344a('0x40')]:!!_0x47445e[_0x344a('0xd6')]!=!!_0x2d34b4['isAdded']?-0x1==_0x47445e[_0x344a('0xaf')]||0x0==_0x47445e[_0x344a('0xaf')]?_0x47445e[_0x344a('0xd6')]?-0x1:0x1:_0x47445e[_0x344a('0xd6')]?0x1:-0x1:_0x47445e[_0x344a('0x1e')]-_0x2d34b4['index']),{'commonTape':_0x3f5186,'iEnd':_0x623dad,'jEnd':_0x1d69ea};function _0x10fe1d(_0x2e27a9,_0x5c51e7,_0x4b0482){let _0x5144d4=-0x1,_0x16e8f3=Number[_0x344a('0x7e')],_0x1a265d=!0x0;for(let _0x3cf73a=_0x5c51e7;_0x3cf73a<_0x4b0482;_0x3cf73a++)if(_0x36f7a6[_0x344a('0xb6')](_0x2e27a9[_0x3cf73a]['item'])||(_0x1a265d=!0x1),_0x2e27a9[_0x3cf73a]['item']['startIndex']<_0x5c51e7&&(_0x5144d4=_0x3cf73a),_0x2e27a9[_0x3cf73a][_0x344a('0xd5')][_0x344a('0x9c')]>=_0x4b0482){_0x16e8f3=_0x3cf73a;break;}_0x1a265d&&(_0x5144d4=_0x4b0482-0x1);for(let _0x586cff=_0x5c51e7;_0x586cff<_0x4b0482;_0x586cff++)_0x2e27a9[_0x586cff][_0x344a('0xaf')]=_0x586cff<=_0x5144d4?-0x1:_0x586cff<_0x16e8f3?0x0:0x1,_0x2e27a9[_0x586cff]['index']=_0x586cff;let _0x517582=0x0;for(let _0x47e898=_0x5c51e7;_0x47e898<=_0x5144d4;_0x47e898++)0x0==_0x2e27a9[_0x47e898][_0x344a('0x40')]?_0x2e27a9[_0x47e898]['level']=_0x517582:(_0x517582++,_0x2e27a9[_0x47e898][_0x344a('0x5d')]=_0x517582,_0x517582++);for(let _0x41b4a2=_0x5c51e7;_0x41b4a2<_0x4b0482;_0x41b4a2++)0x0==_0x2e27a9[_0x41b4a2][_0x344a('0xaf')]&&(_0x2e27a9[_0x41b4a2][_0x344a('0x5d')]=_0x517582);_0x517582=0x0;for(let _0x4c0316=_0x4b0482-0x1;_0x4c0316>=_0x16e8f3;_0x4c0316--)0x0==_0x2e27a9[_0x4c0316][_0x344a('0x40')]?_0x2e27a9[_0x4c0316][_0x344a('0x5d')]=_0x517582:(_0x517582--,_0x2e27a9[_0x4c0316][_0x344a('0x5d')]=_0x517582,_0x517582--);}}[_0x344a('0xf7')](_0x164d56){const _0x1b6c08=new Map(),_0x2bf35d=this[_0x344a('0x2b')]['model'][_0x344a('0x32')];for(let _0x47a3b6=0x1;_0x47a3b6<_0x164d56[_0x344a('0x9e')];_0x47a3b6++){let _0x5a5331,_0x120ea9,_0x598648;const _0x36016b=_0x164d56[_0x47a3b6],_0x3b2840=_0x164d56[_0x47a3b6-0x1];if(_0x344a('0x87')==_0x36016b[_0x344a('0x33')])continue;if(_0x36016b[_0x344a('0x33')]!=_0x3b2840['type'])continue;if(!_0x2bf35d[_0x344a('0xfa')](_0x3b2840[_0x344a('0xd5')])||_0x2bf35d['isLimit'](_0x3b2840[_0x344a('0xd5')]))continue;if(!_0x2bf35d[_0x344a('0xfa')](_0x36016b[_0x344a('0xd5')])||_0x2bf35d[_0x344a('0xfc')](_0x36016b[_0x344a('0xd5')]))continue;if((_0x164d56[_0x47a3b6][_0x344a('0xd6')]||_0x164d56[_0x47a3b6][_0x344a('0xa6')])&&_0x164d56[_0x47a3b6-0x1][_0x344a('0x7c')])_0x5a5331=_0x164d56[_0x47a3b6],_0x120ea9=_0x164d56[_0x47a3b6-0x1],_0x598648=_0x47a3b6-0x1;else{if(!_0x164d56[_0x47a3b6][_0x344a('0x7c')]||!_0x164d56[_0x47a3b6-0x1][_0x344a('0xd6')]&&!_0x164d56[_0x47a3b6-0x1][_0x344a('0xa6')])continue;_0x5a5331=_0x164d56[_0x47a3b6-0x1],_0x120ea9=_0x164d56[_0x47a3b6],_0x598648=_0x47a3b6;}const _0x2a9abc=_0x5a5331['level']==_0x120ea9['level'],_0x220268=Math[_0x344a('0x80')](_0x5a5331['level'])<Math[_0x344a('0x80')](_0x120ea9[_0x344a('0x5d')])&&0x0==_0x120ea9['distance'];(_0x2a9abc||_0x220268)&&(_0x1b6c08[_0x344a('0x61')](_0x120ea9['id'],_0x5a5331['id']),_0x164d56[_0x344a('0x10a')](_0x598648,0x1),_0x47a3b6--,_0x5a5331[_0x344a('0xd6')]=!0x1);}for(let _0x4c1e0e=0x0;_0x4c1e0e<_0x164d56[_0x344a('0x9e')];_0x4c1e0e++)_0x1b6c08['has'](_0x164d56[_0x4c1e0e]['pairId'])&&(_0x164d56[_0x4c1e0e][_0x344a('0xb7')]=_0x1b6c08[_0x344a('0x18')](_0x164d56[_0x4c1e0e]['pairId']));}[_0x344a('0x63')](_0xb90187){const _0x474114=new Set(_0xb90187['map'](_0x4190cf=>_0x4190cf['id']));for(let _0x388d25=0x0;_0x388d25<_0xb90187[_0x344a('0x9e')];_0x388d25++)_0x474114[_0x344a('0x95')](_0xb90187[_0x388d25]['pairId'])||0x0==_0xb90187[_0x388d25][_0x344a('0x40')]||(_0xb90187[_0x388d25][_0x344a('0x58')]=!0x0);return _0xb90187[_0x344a('0xe9')](_0x232319=>!_0x232319[_0x344a('0x58')]);}[_0x344a('0x2c')](_0x3a044a){const _0xbf841=new Set();for(let _0x5e4be0=0x0;_0x5e4be0<_0x3a044a[_0x344a('0x9e')];_0x5e4be0++){if(_0xbf841[_0x344a('0x95')](_0x3a044a[_0x5e4be0]['id'])&&_0x3a044a[_0x5e4be0][_0x344a('0x7c')]&&(_0x3a044a[_0x5e4be0][_0x344a('0x58')]=!0x0),_0x3a044a[_0x5e4be0][_0x344a('0x58')])continue;if(0x0==_0x3a044a[_0x5e4be0][_0x344a('0x40')])continue;if(_0x344a('0x4')!=_0x3a044a[_0x5e4be0][_0x344a('0x33')])continue;if(null==_0x3a044a[_0x5e4be0]['pairId'])continue;let _0x2e43f2=_0x5e4be0+0x1,_0x10526a=0x0;for(;_0x3a044a[_0x2e43f2]['id']!=_0x3a044a[_0x5e4be0][_0x344a('0xb7')];)_0x344a('0x4')==_0x3a044a[_0x2e43f2]['type']?_0x10526a++:_0x344a('0xbf')==_0x3a044a[_0x2e43f2][_0x344a('0x33')]&&_0x10526a--,_0x2e43f2++;if(0x0!=_0x10526a){if(_0x3a044a[_0x5e4be0]['isRemoved'])_0x3a044a[_0x5e4be0][_0x344a('0x58')]=!0x0;else for(;_0x2e43f2!=_0x5e4be0;)_0x3a044a[_0x2e43f2][_0x344a('0x7c')]&&0x0!=_0x3a044a[_0x2e43f2]['distance']&&(_0x3a044a[_0x2e43f2][_0x344a('0x58')]=!0x0,_0xbf841[_0x344a('0x8f')](_0x3a044a[_0x2e43f2][_0x344a('0xb7')])),_0x2e43f2--;}}return _0x3a044a[_0x344a('0xe9')](_0x39cc47=>!_0x39cc47['isIncorrect']);}[_0x344a('0xcf')](_0x4555f0){const _0x21d260=this['editor'][_0x344a('0x11a')]['schema'];for(let _0x4e8569=0x0;_0x4e8569<_0x4555f0[_0x344a('0x9e')];_0x4e8569++){if(!(_0x4555f0[_0x4e8569][_0x344a('0xd6')]||_0x4555f0[_0x4e8569][_0x344a('0xa6')]||_0x4555f0[_0x4e8569][_0x344a('0x7c')]||_0x4555f0[_0x4e8569][_0x344a('0x30')]))continue;if(0x0==_0x4555f0[_0x4e8569]['distance'])continue;const _0xe5ff07=_0x4555f0[_0x4e8569][_0x344a('0xd5')];_0x21d260['isBlock'](_0xe5ff07)||_0x21d260[_0x344a('0xfc')](_0xe5ff07)||(_0x4555f0[_0x4e8569][_0x344a('0xd6')]&&delete _0x4555f0[_0x4e8569][_0x344a('0xd6')],_0x4555f0[_0x4e8569]['isAddSuggestion']&&delete _0x4555f0[_0x4e8569][_0x344a('0xa6')],_0x4555f0[_0x4e8569][_0x344a('0x30')]&&delete _0x4555f0[_0x4e8569][_0x344a('0x30')],_0x4555f0[_0x4e8569][_0x344a('0x7c')]&&(_0x4555f0[_0x4e8569][_0x344a('0x58')]=!0x0));}return _0x4555f0[_0x344a('0xe9')](_0x591868=>!_0x591868['isIncorrect']);}[_0x344a('0x2e')](_0x26d81c,_0x1b42c4,_0x1eeec3){const _0x20302f=new _0x36fc70(),_0x16dd30=[],_0x39b4f2=new Map(),_0x13f273=this['editor'][_0x344a('0x11a')],_0x43dca7=_0x13f273['schema'],_0x124b86=[_0x20302f],_0x23c92d={},_0x309db5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2f4ce6=null;const _0x2970f9=[0x0];for(let _0x207bec=0x0;_0x207bec<_0x26d81c[_0x344a('0x9e')];_0x207bec++){let _0x4737e5,_0x116267;if(_0x344a('0x4')===_0x26d81c[_0x207bec][_0x344a('0x33')]){_0x4737e5=_0x13f273[_0x344a('0xc6')](_0x20302f,_0x2970f9);const _0x248811=new _0x526e46(_0x26d81c[_0x207bec][_0x344a('0xd5')][_0x344a('0xd')],_0x26d81c[_0x207bec][_0x344a('0xd5')][_0x344a('0xa8')]());_0x124b86[0x0][_0x344a('0x72')](_0x248811),_0x2970f9['push'](0x0),_0x124b86[_0x344a('0xee')](_0x248811),_0x116267=_0x13f273[_0x344a('0xc6')](_0x20302f,_0x2970f9),_0x2f4ce6=null;}else{if(_0x344a('0xbf')===_0x26d81c[_0x207bec]['type'])_0x124b86['shift'](),_0x4737e5=_0x13f273[_0x344a('0xc6')](_0x20302f,_0x2970f9),_0x2970f9[_0x344a('0x36')](),_0x2970f9[_0x2970f9[_0x344a('0x9e')]-0x1]++,_0x116267=_0x13f273[_0x344a('0xc6')](_0x20302f,_0x2970f9),_0x2f4ce6=null;else{if(_0x4737e5=_0x13f273[_0x344a('0xc6')](_0x20302f,_0x2970f9),_0x2f4ce6&&_0x5ed225(_0x2f4ce6,_0x26d81c[_0x207bec][_0x344a('0xd5')]))_0x2f4ce6[_0x344a('0xa4')]+=_0x26d81c[_0x207bec]['item'][_0x344a('0xc9')];else{const _0x2d374c=new _0x5b86a7(_0x26d81c[_0x207bec][_0x344a('0xd5')][_0x344a('0xc9')],_0x26d81c[_0x207bec][_0x344a('0xd5')][_0x344a('0xa8')]());_0x124b86[0x0][_0x344a('0x72')](_0x2d374c),_0x2f4ce6=_0x2d374c;}_0x2970f9[_0x2970f9[_0x344a('0x9e')]-0x1]+=_0x26d81c[_0x207bec]['item'][_0x344a('0xb8')],_0x116267=_0x13f273['createPositionFromPath'](_0x20302f,_0x2970f9);}}for(const _0x3f463a of _0x26d81c[_0x207bec][_0x344a('0x27')])_0x39b4f2[_0x344a('0x61')](_0x3f463a,{'start':_0x4737e5,'end':null});_0x57f018('isRemoveSuggestion',_0x207bec,_0x4737e5,_0x116267),_0x57f018(_0x344a('0xa6'),_0x207bec,_0x4737e5,_0x116267),_0x57f018(_0x344a('0x7c'),_0x207bec,_0x4737e5,_0x116267),_0x57f018(_0x344a('0xd6'),_0x207bec,_0x4737e5,_0x116267);for(const _0x4b63af of _0x26d81c[_0x207bec][_0x344a('0xd1')]){_0x39b4f2[_0x344a('0x18')](_0x4b63af)[_0x344a('0x47')]=_0x116267;}}for(const [_0x305a60,_0x53a0df]of _0x39b4f2){const _0x1a4aab=this[_0x344a('0x2b')][_0x344a('0x11a')]['createRange'](_0x53a0df[_0x344a('0x112')],_0x53a0df[_0x344a('0x47')]);_0x20302f[_0x344a('0x101')][_0x344a('0x61')](_0x305a60,_0x1a4aab);}return _0x16dd30['sort']((_0x4b3bba,_0x56b339)=>{const _0x166365=_0x20302f['markers'][_0x344a('0x18')](_0x344a('0x77')+_0x4b3bba['id']),_0x4e8757=_0x20302f[_0x344a('0x101')]['get'](_0x344a('0x77')+_0x56b339['id']);return _0x166365['start'][_0x344a('0x29')](_0x4e8757[_0x344a('0x112')])?-0x1:_0x166365[_0x344a('0x112')][_0x344a('0xb5')](_0x4e8757[_0x344a('0x112')])?0x1:_0x166365['end'][_0x344a('0x29')](_0x4e8757['end'])?-0x1:_0x166365[_0x344a('0x47')][_0x344a('0xb5')](_0x4e8757[_0x344a('0x47')])?0x1:'add'===_0x4b3bba[_0x344a('0x33')]?-0x1:0x1;}),{'root':_0x20302f,'changes':_0x16dd30};function _0x57f018(_0x4a311d,_0x2cdebe,_0x160042,_0x370bd5){const _0x2ffda0=!!_0x26d81c[_0x2cdebe][_0x4a311d],_0x218786=_0x2ffda0?_0x26d81c[_0x2cdebe][_0x4a311d][_0x344a('0xf2')]:null,_0x2b8197=_0x2cdebe===_0x26d81c[_0x344a('0x9e')]-0x1,_0x37efda=_0x309db5[_0x4a311d][0x0],_0x3a5304=_0x43dca7['isObject'](_0x26d81c[_0x2cdebe][_0x344a('0xd5')]);!_0x23c92d[_0x4a311d]&&_0x2ffda0?_0x23c92d[_0x4a311d]={'start':_0x160042,'tapeItem':_0x26d81c[_0x2cdebe],'userId':_0x218786,'type':_0x4a311d}:_0x23c92d[_0x4a311d]&&!_0x2ffda0?(_0x23c92d[_0x4a311d][_0x344a('0x47')]=_0x160042,_0x4d8675(_0x23c92d[_0x4a311d]),_0x23c92d[_0x4a311d]=null):_0x23c92d[_0x4a311d]&&_0x2ffda0&&_0x23c92d[_0x4a311d][_0x344a('0xf2')]!==_0x218786&&(_0x23c92d[_0x4a311d][_0x344a('0x47')]=_0x160042,_0x37efda&&_0x37efda[_0x344a('0xf2')]===_0x23c92d[_0x4a311d][_0x344a('0xf2')]||_0x4d8675(_0x23c92d[_0x4a311d]),_0x23c92d[_0x4a311d]={'start':_0x160042,'tapeItem':_0x26d81c[_0x2cdebe],'userId':_0x218786,'type':_0x4a311d}),_0x23c92d[_0x4a311d]&&_0x3a5304&&(_0x344a('0x4')!==_0x26d81c[_0x2cdebe][_0x344a('0x33')]||_0x37efda&&_0x37efda[_0x344a('0xf2')]===_0x218786||_0x309db5[_0x4a311d][_0x344a('0xee')]({'userId':_0x218786,'object':_0x26d81c[_0x2cdebe][_0x344a('0xd5')],'change':_0x23c92d[_0x4a311d]}),'elementEnd'===_0x26d81c[_0x2cdebe][_0x344a('0x33')]&&_0x37efda&&_0x37efda[_0x344a('0xc')]===_0x26d81c[_0x2cdebe][_0x344a('0xd5')]&&(_0x309db5[_0x4a311d][_0x344a('0x9a')](),_0x23c92d[_0x4a311d]=_0x37efda['change'])),_0x23c92d[_0x4a311d]&&_0x2b8197&&(_0x23c92d[_0x4a311d][_0x344a('0x47')]=_0x370bd5,_0x4d8675(_0x23c92d[_0x4a311d]),_0x23c92d[_0x4a311d]=null);}function _0x4d8675({start:_0x399759,end:_0x31a088,tapeItem:_0x4e22cd,userId:_0x20f0c5,type:_0x599762}){const _0x10b4bb=_0x4e22cd[_0x344a('0xd5')],_0x1f2c78=_0x13f273['schema']['isBlock'](_0x10b4bb)&&!_0x13f273[_0x344a('0x32')][_0x344a('0xfc')](_0x10b4bb),_0x5f3326=_0x399759['nodeAfter']==_0x31a088[_0x344a('0xe8')]&&_0x31a088[_0x344a('0x4f')];if(_0x1f2c78&&_0x5f3326)return;const _0x176f66=_0x13f273[_0x344a('0x74')](_0x399759,_0x31a088),_0xba3001=_0x1b42c4[_0x344a('0x18')](_0x20f0c5),_0x4e113a=new _0x21e000({'author':_0xba3001,'type':'isAdded'==_0x599762||_0x344a('0xa6')==_0x599762?_0x344a('0x8f'):'remove','data':{'isSuggestion':_0x344a('0xa6')==_0x599762||_0x344a('0x30')==_0x599762},'createdAt':new Date(),'rootName':_0x1eeec3});_0x16dd30['push'](_0x4e113a),_0x20302f['markers'][_0x344a('0x61')]('revision:'+_0x4e113a['id'],_0x176f66);}function _0x5ed225(_0xf594cb,_0x16fe45){const _0x1e19e0=_0xf594cb[_0x344a('0xa8')](),_0x2f71c1=_0x16fe45['getAttributes']();for(const _0xb8fe76 of _0x1e19e0){if(_0xb8fe76[0x1]!==_0x16fe45[_0x344a('0xe0')](_0xb8fe76[0x0]))return!0x1;_0x2f71c1['next']();}return _0x2f71c1[_0x344a('0x6')]()[_0x344a('0x96')];}}[_0x344a('0xf4')](){this['editor'][_0x344a('0x119')][_0x344a('0xa0')](_0x344a('0xd8'))[_0x344a('0xae')]({'view':_0x344a('0x65')}),this['editor']['conversion'][_0x344a('0xa0')]('editingDowncast')['markerToHighlight']({'model':_0x344a('0x65'),'view':_0x330155=>{const _0x1ec82f=_0x330155['markerName'][_0x344a('0xc8')](':')[0x1],_0x2fd6bc=this[_0x344a('0x31')](_0x1ec82f);if(!_0x2fd6bc)return null;const _0x552746=_0x344a('0x8f')==_0x2fd6bc[_0x344a('0x33')]?_0x344a('0x6f'):_0x344a('0x11d'),_0x2c74cb=[_0x344a('0x91'),_0x344a('0x20')+_0x552746];return _0x2fd6bc[_0x344a('0xc9')][_0x344a('0x48')]&&_0x2c74cb[_0x344a('0x10c')](_0x344a('0x20')+_0x552746+_0x344a('0x105')),this[_0x344a('0x5b')]==_0x2fd6bc&&_0x2c74cb[_0x344a('0x10c')](_0x344a('0xc1')),{'classes':_0x2c74cb,'attributes':{'data-change-id':_0x1ec82f}};}}),this[_0x344a('0x2b')][_0x344a('0x119')][_0x344a('0xa0')](_0x344a('0xd8'))['add'](_0x59e634=>{_0x59e634['on'](_0x344a('0x102'),(_0xdad9ee,_0x286aa5,_0xad70bd)=>{const _0x46583c=_0x286aa5['viewItem'][_0x344a('0x6c')](0x0);if(!_0x46583c||!_0x46583c['is'](_0x344a('0xfe'),_0x344a('0xa2')))return;if(!_0xad70bd[_0x344a('0x113')][_0x344a('0x109')](_0x46583c,{'attributes':['vid_start',_0x344a('0xd2')]}))return;const _0x524489=_0x286aa5[_0x344a('0xf0')][_0x344a('0x112')][_0x344a('0x97')];_0xad70bd[_0x344a('0xc2')][_0x344a('0x41')](_0x344a('0xb9'),_0x46583c[_0x344a('0xe0')](_0x344a('0xb9')),_0x524489),_0xad70bd['writer'][_0x344a('0x41')](_0x344a('0xd2'),_0x46583c[_0x344a('0xe0')](_0x344a('0xd2')),_0x524489);},{'priority':'low'});}),this[_0x344a('0x2b')][_0x344a('0x119')][_0x344a('0xa0')](_0x344a('0xd8'))[_0x344a('0x8f')](_0xe1a0e0=>{_0xe1a0e0['on'](_0x344a('0xfe'),(_0x236330,_0x1a856c,_0x146891)=>{if(!_0x146891['consumable'][_0x344a('0x109')](_0x1a856c[_0x344a('0x10e')],{'attributes':['vid_start','vid_end']}))return;if(_0x1a856c['modelRange']['isCollapsed'])return;const _0x399535=_0x1a856c['modelRange'][_0x344a('0x112')][_0x344a('0x97')];_0x399535[_0x344a('0x54')](_0x344a('0xb9'))||_0x399535['hasAttribute']('vid')||(_0x146891['writer'][_0x344a('0x41')](_0x344a('0xb9'),_0x1a856c[_0x344a('0x10e')][_0x344a('0xe0')](_0x344a('0xb9')),_0x399535),_0x146891[_0x344a('0xc2')][_0x344a('0x41')](_0x344a('0xd2'),_0x1a856c['viewItem']['getAttribute'](_0x344a('0xd2')),_0x399535));},{'priority':'low'});}),this['editor']['conversion'][_0x344a('0xa0')](_0x344a('0xd8'))[_0x344a('0x1c')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xb5b9d8=>_0xb5b9d8[_0x344a('0xe0')]('vid')}}),this[_0x344a('0x2b')][_0x344a('0x11a')][_0x344a('0x32')]['on'](_0x344a('0xc5'),(_0x43f345,[,_0x569798])=>{[_0x344a('0xb9'),_0x344a('0xd2'),'vid'][_0x344a('0x92')](_0x569798)&&(_0x43f345['return']=!0x0,_0x43f345[_0x344a('0x3c')]());},{'priority':_0x344a('0x3b')}),this[_0x344a('0x2b')][_0x344a('0x119')][_0x344a('0xa0')](_0x344a('0xab'))['add'](_0x1e5413=>{_0x1e5413['on']('attribute:vid',(_0xe6d61b,_0x1f3f4d,_0x200621)=>{if('\x20'!=_0x1f3f4d['item']['data']||_0x1f3f4d[_0x344a('0xd5')]['parent'][_0x344a('0x121')]>0x1)return;if(!_0x200621['consumable']['consume'](_0x1f3f4d[_0x344a('0xd5')],_0xe6d61b[_0x344a('0xd')]))return;const _0x447d65=_0x200621[_0x344a('0xc2')],_0x903f9c=_0x200621[_0x344a('0x120')][_0x344a('0x88')](_0x1f3f4d['range']);_0x447d65[_0x344a('0x118')](_0x903f9c,_0x447d65[_0x344a('0x55')]('span'));});}),this[_0x344a('0x2b')]['conversion'][_0x344a('0xa0')]('dataDowncast')[_0x344a('0x5')]({'model':'revision'}),this[_0x344a('0x2b')]['editing'][_0x344a('0x10f')]['on'](_0x344a('0xc3'),function(_0x238178){const _0x5fe191=_0x238178[_0x344a('0xeb')][_0x344a('0x18')](_0x344a('0x17'));return(_0x2b5afb,_0x47e22d,_0xdacde)=>{const _0xb458ca=_0x47e22d[_0x344a('0x59')][_0x344a('0xc8')](':')[0x1],_0x444742=_0x5fe191[_0x344a('0x31')](_0xb458ca);if(!_0x444742)return null;const _0x10c68e=_0x344a('0x8f')==_0x444742[_0x344a('0x33')]?'split':_0x344a('0x7f');if(!_0xdacde[_0x344a('0x113')][_0x344a('0x44')](_0x47e22d[_0x344a('0x6e')],_0x2b5afb[_0x344a('0xd')]))return;const _0x21b7c1=_0x47e22d[_0x344a('0x6e')][_0x344a('0xf5')](),_0x58495c=_0x47e22d[_0x344a('0x6e')][_0x344a('0x112')],_0x2437d5=_0x238178['model'][_0x344a('0x32')];let _0x29383b=null,_0xa44044=null,_0x4cfcc7=!0x1,_0x413720=!0x1;for(const _0x17da0f of _0x21b7c1){const _0x2a78a1=_0x17da0f[_0x344a('0xd5')];_0x4cfcc7=_0x4cfcc7||_0x2437d5[_0x344a('0xcc')](_0x2a78a1);const _0x142d57=_0xdacde['mapper'][_0x344a('0xfd')](_0x2a78a1);if(_0x142d57&&_0x142d57[_0x344a('0xc4')](_0x344a('0x2')))return;_0x344a('0xbf')==_0x17da0f[_0x344a('0x33')]&&(_0x2437d5[_0x344a('0xfa')](_0x2a78a1)&&!_0x2437d5[_0x344a('0xfc')](_0x2a78a1)&&(_0x2a78a1[_0x344a('0x115')]||_0x58495c[_0x344a('0xd4')]?_0x29383b&&_0x29383b['parent']==_0x2a78a1||(_0x29383b=_0x2a78a1,_0x2176e2(_0x17da0f[_0x344a('0x78')]),_0x413720=!0x0):_0xa44044=_0xa44044||_0x17da0f['previousPosition']));}function _0x2176e2(_0x2fca25){const _0x314697=_0xdacde[_0x344a('0xc2')][_0x344a('0x10')]('span',{'class':_0x344a('0x20')+_0x10c68e}),_0x4ca59b=_0xdacde['mapper'][_0x344a('0x104')](_0x2fca25);_0x444742[_0x344a('0xc9')]['isSuggestion']&&_0xdacde[_0x344a('0xc2')][_0x344a('0xbd')](_0x344a('0x20')+_0x10c68e+_0x344a('0x105'),_0x314697),_0x5fe191[_0x344a('0x5b')]==_0x444742&&_0xdacde['writer'][_0x344a('0xbd')](_0x344a('0xc1'),_0x314697),_0xdacde['writer'][_0x344a('0x107')](_0x4ca59b,_0x314697),_0xdacde[_0x344a('0x120')][_0x344a('0xcb')](_0x314697,_0x47e22d[_0x344a('0x59')]);}_0x4cfcc7||_0x413720||!_0xa44044||_0x2176e2(_0xa44044);};}(this[_0x344a('0x2b')]),{'priority':_0x344a('0xd3')}),this['editor']['editing'][_0x344a('0x10f')]['on']('removeMarker:revision',(_0x27db82,_0x3c72d0,_0x3d48ce)=>{const _0x1fabc7=_0x3d48ce['mapper'][_0x344a('0xf3')](_0x3c72d0['markerName']);if(_0x1fabc7)for(const _0x3ebbb8 of _0x1fabc7)(_0x3ebbb8[_0x344a('0x38')]('ck-suggestion-marker-split')||_0x3ebbb8[_0x344a('0x38')](_0x344a('0x1')))&&(_0x3d48ce[_0x344a('0x120')]['unbindElementFromMarkerName'](_0x3ebbb8,_0x3c72d0[_0x344a('0x59')]),_0x3d48ce[_0x344a('0xc2')][_0x344a('0xf6')](_0x3ebbb8));},{'priority':'high'}),this[_0x344a('0x2b')]['editing'][_0x344a('0x10f')]['on'](_0x344a('0xc3'),(_0x30fde7,_0x31feb1,_0x3d7f09)=>{const _0x72a17f=_0x31feb1['markerName']['split'](':')[0x1],_0x4a20ca=this[_0x344a('0x31')](_0x72a17f);if(!_0x4a20ca)return null;const _0x1ad7b9=_0x344a('0x8f')==_0x4a20ca['type']?_0x344a('0xc8'):_0x344a('0x7f');if(_0x3d7f09[_0x344a('0x113')][_0x344a('0x44')](_0x31feb1[_0x344a('0x6e')],_0x30fde7[_0x344a('0xd')]))for(const _0x41592f of _0x31feb1[_0x344a('0x6e')][_0x344a('0xa7')]()){if(!_0x41592f['is'](_0x344a('0xfe'),'softBreak'))continue;const _0x27ed36=_0x3d7f09[_0x344a('0xc2')]['createUIElement']('span',{'class':_0x344a('0x20')+_0x1ad7b9}),_0x5b2b22=_0x3d7f09[_0x344a('0x120')][_0x344a('0x104')](this[_0x344a('0x2b')]['model']['createPositionBefore'](_0x41592f));_0x4a20ca[_0x344a('0xc9')][_0x344a('0x48')]&&_0x3d7f09['writer'][_0x344a('0xbd')](_0x344a('0x20')+_0x1ad7b9+_0x344a('0x105'),_0x27ed36),this['activeChange']==_0x4a20ca&&_0x3d7f09[_0x344a('0xc2')][_0x344a('0xbd')](_0x344a('0xc1'),_0x27ed36),_0x3d7f09[_0x344a('0xc2')][_0x344a('0x107')](_0x5b2b22,_0x27ed36),_0x3d7f09[_0x344a('0x120')]['bindElementToMarker'](_0x27ed36,_0x31feb1['markerName']);}},{'priority':_0x344a('0xd3')}),this[_0x344a('0x2b')]['model']['document']['on'](_0x344a('0x1b'),()=>{this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x94')][_0x344a('0x1b')](_0x3c8323=>{for(const _0x57d95c of this[_0x344a('0x2b')]['model'][_0x344a('0x11b')][_0x344a('0xe7')]()){const _0x5d489b=this[_0x344a('0x2b')][_0x344a('0x11a')]['document'][_0x344a('0x45')](_0x57d95c),_0x1e9592=this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x94')][_0x344a('0x11b')][_0x344a('0x45')](_0x57d95c);if(_0x1e9592){const _0x92d596=_0x5d489b[_0x344a('0xe0')](_0x344a('0xad'));if(_0x3c8323['removeAttribute'](_0x344a('0x3'),_0x1e9592),_0x3c8323[_0x344a('0x53')](_0x344a('0x28'),_0x1e9592),_0x3c8323[_0x344a('0x53')](_0x344a('0x14'),_0x1e9592),_0x3c8323[_0x344a('0x53')]('ck-revision-history-root--active',_0x1e9592),_0x92d596){const _0x4105bf=this[_0x344a('0x31')](_0x92d596);if(!_0x4105bf)return null;_0x3c8323[_0x344a('0x41')](_0x344a('0x3'),_0x92d596,_0x1e9592),_0x3c8323[_0x344a('0xbd')](_0x344a('0x116')+_0x4105bf[_0x344a('0x33')],_0x1e9592),this[_0x344a('0x5b')]==_0x4105bf&&_0x3c8323['addClass'](_0x344a('0x73'),_0x1e9592);}}}});}),this[_0x344a('0x2b')]['conversion'][_0x344a('0xa0')](_0x344a('0xd8'))[_0x344a('0xae')]({'view':_0x344a('0x1f'),'model':_0x2e4912=>_0x344a('0x25')+_0x2e4912,'converterPriority':_0x344a('0x3b')}),this[_0x344a('0x2b')][_0x344a('0x119')][_0x344a('0xa0')](_0x344a('0xd8'))[_0x344a('0xae')]({'view':'suggestion','model':_0x2eef29=>_0x344a('0x42')+_0x2eef29,'converterPriority':_0x344a('0x3b')}),this[_0x344a('0x2b')][_0x344a('0x119')][_0x344a('0xa0')]('dataDowncast')[_0x344a('0x5')]({'model':_0x344a('0xa1'),'view':_0x361249=>({'name':_0x344a('0xcd')+_0x361249,'group':_0x344a('0xa1')}),'converterPriority':_0x344a('0x3b')}),this['editor'][_0x344a('0x119')]['for'](_0x344a('0x19'))[_0x344a('0x12')]({'model':_0x344a('0xa1'),'view':_0x1cf9bb=>{const _0x34e7fa=_0x1cf9bb['markerName'][_0x344a('0xc8')](':')[0x1];return _0x344a('0x6f')!=_0x34e7fa&&_0x344a('0x11d')!=_0x34e7fa?null:{'classes':[_0x344a('0x7a'),_0x344a('0x1d')+_0x34e7fa]};}}),this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x10f')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x344a('0x2b')],_0x344a('0x7f')),{'priority':_0x344a('0xd3')}),this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x10f')]['on'](_0x344a('0x68'),et(this['editor'],_0x344a('0xc8')),{'priority':_0x344a('0xd3')}),this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x10f')]['on'](_0x344a('0x22'),(_0x57ea2b,_0x2f1a66,_0x31b431)=>{const _0x118066=_0x31b431['mapper'][_0x344a('0xf3')](_0x2f1a66['markerName']);if(_0x118066)for(const _0x11f654 of _0x118066)_0x11f654['is']('uiElement')&&(_0x31b431[_0x344a('0x120')]['unbindElementFromMarkerName'](_0x11f654,_0x2f1a66[_0x344a('0x59')]),_0x31b431[_0x344a('0xc2')][_0x344a('0xf6')](_0x11f654));},{'priority':_0x344a('0xd3')});}[_0x344a('0x31')](_0x1d8c17){return this[_0x344a('0x81')]['get'](_0x1d8c17);}['_getViewForChange'](_0x2bec66){return this[_0x344a('0xba')]&&this[_0x344a('0xba')]['destroy'](),this[_0x344a('0xba')]=new _0x365704(this[_0x344a('0x2b')][_0x344a('0x11e')],_0x2bec66),this[_0x344a('0xba')];}[_0x344a('0x11')](){this[_0x344a('0x2b')][_0x344a('0x11a')][_0x344a('0x11b')][_0x344a('0x108')][_0x344a('0xa')]('revision'),this['on'](_0x344a('0xf1'),(_0x28110c,_0x1c1007,_0x22081f,_0x467e18)=>{_0x467e18&&this[_0x344a('0x5a')]['remove'](_0x467e18),_0x22081f&&(this[_0x344a('0x5a')][_0x344a('0x8f')]({'view':_0x22081f,'stackId':_0x344a('0x5c'),'position':{'target':()=>{const _0x4dd5e8=this['editor']['editing'],_0x4b480e=this[_0x344a('0x31')](_0x22081f['changeId']);let _0x1f6837;if(_0x4b480e[_0x344a('0xc9')]['isOnRoot']){const _0x56743c=_0x4dd5e8[_0x344a('0x94')][_0x344a('0x84')](_0x4b480e[_0x344a('0x7d')]);_0x1f6837=Array[_0x344a('0xc0')](_0x56743c[_0x344a('0x1a')]());}else{const _0xdf6d56=this[_0x344a('0x2b')][_0x344a('0x11a')][_0x344a('0x101')][_0x344a('0x18')](_0x344a('0x77')+_0x22081f[_0x344a('0xea')]);_0x1f6837=Array[_0x344a('0xc0')](_0x4dd5e8[_0x344a('0x120')][_0x344a('0xf3')](_0xdf6d56[_0x344a('0xd')]))[_0x344a('0x100')](_0x185403=>_0x4dd5e8[_0x344a('0x94')][_0x344a('0x79')][_0x344a('0xdd')](_0x185403))[_0x344a('0x100')](_0x395cea=>Array[_0x344a('0xc0')](_0x395cea[_0x344a('0x1a')]()))[_0x344a('0xb2')]();}if(!this[_0x344a('0x3f')])return _0x1f6837[0x0];return _0x1f6837['find'](_0x5bdfaf=>_0x5bdfaf['top']-0x3<=this[_0x344a('0x3f')]['y']&&_0x5bdfaf[_0x344a('0x76')]+0x3>=this[_0x344a('0x3f')]['y']&&_0x5bdfaf[_0x344a('0xa3')]-0x3<=this[_0x344a('0x3f')]['x']&&_0x5bdfaf[_0x344a('0x6d')]+0x3>=this[_0x344a('0x3f')]['x'])||_0x1f6837[0x0];}}}),this[_0x344a('0x5a')][_0x344a('0x5f')](_0x344a('0x5c')));}),this['on'](_0x344a('0x57'),(_0x1e126a,_0x32f929,_0x35fbf6,_0xecbdc4)=>{this[_0x344a('0x89')]=_0x35fbf6?this['_getViewForChange'](_0x35fbf6):null,this[_0x344a('0x2b')][_0x344a('0x11a')][_0x344a('0x1b')](()=>{const _0x46a5ba=this[_0x344a('0x2b')][_0x344a('0x46')];_0xecbdc4&&(_0xecbdc4[_0x344a('0xc9')][_0x344a('0xb4')]?_0x46a5ba[_0x344a('0x94')]['change'](_0x33ed33=>{_0x33ed33[_0x344a('0x53')]('ck-revision-history-root--active',_0x46a5ba[_0x344a('0x94')][_0x344a('0x11b')][_0x344a('0x45')](_0xecbdc4[_0x344a('0x7d')]));}):_0x46a5ba[_0x344a('0xa5')]('revision:'+_0xecbdc4['id'])),_0x35fbf6&&(_0x35fbf6[_0x344a('0xc9')][_0x344a('0xb4')]?_0x46a5ba['view'][_0x344a('0x1b')](_0x5985f3=>{_0x5985f3[_0x344a('0xbd')]('ck-revision-history-root--active',_0x46a5ba[_0x344a('0x94')][_0x344a('0x11b')][_0x344a('0x45')](_0x35fbf6[_0x344a('0x7d')]));}):_0x46a5ba[_0x344a('0xa5')](_0x344a('0x77')+_0x35fbf6['id']));});}),this[_0x344a('0x2a')](this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x94')][_0x344a('0x11b')],_0x344a('0x43'),(_0x527726,_0x2f0274)=>{if(this[_0x344a('0x5b')])return;const _0x376c49=this[_0x344a('0x117')](_0x2f0274['target']),_0x57a5c4=this[_0x344a('0x81')]['get'](_0x376c49);_0x57a5c4?(this[_0x344a('0x3f')]={'x':_0x2f0274[_0x344a('0xa9')]['x'],'y':_0x2f0274[_0x344a('0xa9')]['y']},this['activeView']=this[_0x344a('0xfb')](_0x57a5c4)):(this[_0x344a('0x3f')]=null,this[_0x344a('0x89')]=null);}),this['listenTo'](this[_0x344a('0x2b')][_0x344a('0x46')]['view'][_0x344a('0x11b')],_0x344a('0xbc'),(_0xac6a45,_0x1b8a90)=>{const _0x1ae012=this[_0x344a('0x117')](_0x1b8a90['target']),_0x5e185c=this['_changeIdToChange'][_0x344a('0x18')](_0x1ae012);_0x5e185c?(this[_0x344a('0x3f')]={'x':_0x1b8a90['domEvent']['x'],'y':_0x1b8a90[_0x344a('0xa9')]['y']},_0x5e185c===this[_0x344a('0x5b')]?this[_0x344a('0x5a')][_0x344a('0x34')]():this[_0x344a('0x5b')]=_0x5e185c):(this[_0x344a('0x3f')]=null,this[_0x344a('0x5b')]=null);});}[_0x344a('0x117')](_0x34f839){do{const _0x576164=_0x34f839[_0x344a('0xe0')](_0x344a('0x3'));if(_0x576164)return _0x576164;_0x34f839=_0x34f839[_0x344a('0xe8')];}while(_0x34f839);return null;}[_0x344a('0x8b')](){this[_0x344a('0x2b')][_0x344a('0x11a')]['change'](_0x4b99dd=>{for(const _0x39265e of this[_0x344a('0x2b')][_0x344a('0x11a')][_0x344a('0x101')])_0x4b99dd['removeMarker'](_0x39265e);});}}function et(_0x51816c,_0x32b729){return(_0x5dd146,_0x20909a,_0x27be8e)=>{if(!_0x27be8e['consumable'][_0x344a('0x44')](_0x20909a[_0x344a('0x6e')],_0x5dd146[_0x344a('0xd')]))return;const _0x1db6bc=_0x20909a['markerRange']['getWalker'](),_0x4c8d39=_0x20909a['markerRange'][_0x344a('0x112')],_0xfa4abd=_0x51816c[_0x344a('0x11a')][_0x344a('0x32')];let _0x370d79=null,_0xa81492=null,_0x2785d4=!0x1,_0x3760a9=!0x1;for(const _0x32a35e of _0x1db6bc){const _0xc6460d=_0x32a35e[_0x344a('0xd5')];_0x2785d4=_0x2785d4||_0xfa4abd[_0x344a('0xcc')](_0xc6460d);const _0xe68b1b=_0x27be8e[_0x344a('0x120')]['toViewElement'](_0xc6460d);if(_0xe68b1b&&_0xe68b1b[_0x344a('0xc4')](_0x344a('0x2')))return;_0x344a('0xbf')==_0x32a35e[_0x344a('0x33')]&&(_0xfa4abd['isBlock'](_0xc6460d)&&!_0xfa4abd[_0x344a('0xfc')](_0xc6460d)&&(_0xc6460d[_0x344a('0x115')]||_0x4c8d39['isAtEnd']?_0x370d79&&_0x370d79['parent']==_0xc6460d||(_0x370d79=_0xc6460d,_0x4bdf58(_0x32a35e['previousPosition']),_0x3760a9=!0x0):_0xa81492=_0xa81492||_0x32a35e[_0x344a('0x78')]));}function _0x4bdf58(_0x4c7148){const _0x39a108=_0x27be8e[_0x344a('0x120')][_0x344a('0x104')](_0x4c7148),_0x15d918=_0x27be8e[_0x344a('0xc2')][_0x344a('0x10')](_0x344a('0x2d'),{'class':'ck-suggestion-preview-marker-'+_0x32b729});_0x27be8e[_0x344a('0xc2')]['insert'](_0x39a108,_0x15d918),_0x27be8e[_0x344a('0x120')][_0x344a('0xcb')](_0x15d918,_0x20909a['markerName']);}_0x2785d4||_0x3760a9||!_0xa81492||_0x4bdf58(_0xa81492);};}export class RestoreRevisionCommand extends _0x25f1d2{constructor(_0x3138b3){super(_0x3138b3);const _0x183dfe=_0x3138b3[_0x344a('0xeb')][_0x344a('0x18')](d);this['affectsData']=!0x1,this['listenTo'](_0x183dfe,_0x344a('0xe4'),()=>this[_0x344a('0x51')]()),this[_0x344a('0x2a')](_0x183dfe,_0x344a('0x8d'),()=>this[_0x344a('0x51')]());}[_0x344a('0xdc')](){const _0x915209=this[_0x344a('0x2b')],_0x310895=_0x915209[_0x344a('0xeb')][_0x344a('0x18')](d),_0x3fdd12=_0x310895[_0x344a('0x62')]?_0x310895[_0x344a('0xb')][_0x344a('0x56')]:null;_0x915209[_0x344a('0xc7')][_0x344a('0x18')](_0x344a('0x8'))[_0x344a('0x4a')](_0x3fdd12);}[_0x344a('0x51')](){const {isReady:_0x14fb3d,isEnabled:_0x3c9a2a}=this[_0x344a('0x2b')]['plugins']['get'](d);this[_0x344a('0x6a')]=_0x14fb3d&&_0x3c9a2a;}}export class ShowChangeCommand extends _0x25f1d2{constructor(_0x5ba594,{direction:_0x5d0bc5}){super(_0x5ba594);const _0x46aba5=_0x5ba594[_0x344a('0xeb')]['get'](d);this[_0x344a('0xe3')]=!0x1,this[_0x344a('0xd7')]=_0x344a('0x39')===_0x5d0bc5?0x1:-0x1,this[_0x344a('0x2a')](_0x46aba5,'change:isReady',()=>this[_0x344a('0x51')]()),this[_0x344a('0x2a')](_0x46aba5,'change:isEnabled',()=>this[_0x344a('0x51')]()),this[_0x344a('0x2a')](_0x46aba5,_0x344a('0x57'),()=>this[_0x344a('0x51')]());}[_0x344a('0xdc')](){const _0x45f5ec=this[_0x344a('0x2b')],_0x124b42=_0x45f5ec['plugins']['get'](d),{isNavigationMode:_0x507039,currentChangeNumber:_0x6f380a}=_0x124b42;let _0x54705a;if(_0x124b42[_0x344a('0x5b')]=_0x507039?_0x124b42['diff']['changes'][_0x344a('0x18')](_0x6f380a+this[_0x344a('0xd7')]):_0x124b42['diff'][_0x344a('0x103')][_0x344a('0xf')],_0x124b42[_0x344a('0x5b')][_0x344a('0xc9')][_0x344a('0xb4')])_0x54705a=_0x45f5ec[_0x344a('0x46')][_0x344a('0x94')][_0x344a('0x84')](_0x124b42['activeChange'][_0x344a('0x7d')]);else{const _0xcbfd32=_0x45f5ec[_0x344a('0x11a')][_0x344a('0x101')][_0x344a('0x18')](_0x344a('0x77')+_0x124b42[_0x344a('0x5b')]['id']);_0x54705a=_0x292d23(_0x45f5ec[_0x344a('0x46')],_0xcbfd32);}_0x273ccb({'target':_0x54705a,'viewportOffset':0x28});}[_0x344a('0x51')](){const {isNavigationMode:_0x2309ec,currentChangeNumber:_0x3a905f,numberOfChanges:_0x2a4016,isReady:_0x4422da,isEnabled:_0x2f34d5}=this['editor'][_0x344a('0xeb')][_0x344a('0x18')](d);this[_0x344a('0x6a')]=!!(_0x2f34d5&&_0x4422da&&_0x2a4016)&&(!_0x2309ec||(0x1===this[_0x344a('0xd7')]?_0x3a905f<_0x2a4016-0x1:_0x3a905f>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8117=['source','threeVerticalDots','isActionsDropdownOpen','bindTemplate','class','button','first','ck-on','function','find','bind','Name\x20this\x20revision','ck-revision-history-sidebar__revision__actions','listenTo','Compare\x20against\x20selected','items','Show\x20more\x20items','model','add','panelPosition','isVisible','isReady','action','change:isActionsDropdownOpen','isEnabled','name','children','Restore\x20this\x20revision','set','isOpen','locale','map','buttonView','_action'];(function(_0x2d806b,_0x81176e){const _0x1308d0=function(_0x4676ce){while(--_0x4676ce){_0x2d806b['push'](_0x2d806b['shift']());}};_0x1308d0(++_0x81176e);}(_0x8117,0x123));const _0x1308=function(_0x2d806b,_0x81176e){_0x2d806b=_0x2d806b-0x0;let _0x1308d0=_0x8117[_0x2d806b];return _0x1308d0;};import{Collection as _0x4765a6}from'ckeditor5/src/utils';import{icons as _0x4bbad9}from'ckeditor5/src/core';import{Model as _0x1ae7cd,addListToDropdown as _0x270320,createDropdown as _0x393b1b}from'ckeditor5/src/ui';import{getTranslation as _0x594b21}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x2ee79b,_0x493cef){const _0x2c2101=_0x2ee79b[_0x1308('0x12')],_0x25b9fb=_0x2ee79b[_0x1308('0xb')],_0x565444=_0x393b1b(_0x25b9fb);_0x565444[_0x1308('0x0')]='sw';const _0x37cbb1=function(_0xad669b,_0x1de375){const _0xf8321d=function(_0xfa9ff5,_0x2bf5bc){const _0xb4a6a=_0xfa9ff5[_0x1308('0xb')],_0x1e4939={'Compare\x20against\x20selected':_0x594b21(_0xb4a6a,_0x1308('0x1d')),'Name\x20this\x20revision':_0x594b21(_0xb4a6a,_0x1308('0x1a')),'Restore\x20this\x20revision':_0x594b21(_0xb4a6a,_0x1308('0x8'))};return _0x2bf5bc[_0x1308('0xc')](_0x5dc6a4=>{const _0xd83e70=_0x1e4939[_0x5dc6a4[_0x1308('0x6')]];return _0xd83e70&&_0xd83e70!==_0x5dc6a4[_0x1308('0x6')]&&(_0x5dc6a4[_0x1308('0x6')]=_0xd83e70),_0x5dc6a4;});}(_0xad669b,_0x1de375),_0x353755=new _0x4765a6();for(const _0x55be37 of _0xf8321d){const _0x2ffb60={'type':_0x1308('0x14'),'model':new _0x1ae7cd({'label':_0x55be37[_0x1308('0x6')],'class':_0x55be37[_0x1308('0x13')],'withText':!0x0,'_action':_0x55be37[_0x1308('0x3')]})};_0x2ffb60[_0x1308('0x20')][_0x1308('0x19')](_0x1308('0x5'))['to'](_0xad669b,'isActionsDropdownOpen',_0x596fd1=>_0x1308('0x17')!=typeof _0x55be37['isEnabled']||(!_0x596fd1||_0x55be37[_0x1308('0x5')](_0xad669b))),_0x353755[_0x1308('0x21')](_0x2ffb60);}return _0x353755;}(_0x2ee79b,_0x493cef);return _0x2ee79b[_0x1308('0x19')](_0x1308('0x11'))['to'](_0x565444,_0x1308('0xa')),_0x565444[_0x1308('0xd')][_0x1308('0x9')]({'label':_0x594b21(_0x25b9fb,_0x1308('0x1f')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4bbad9[_0x1308('0x10')]}),_0x565444['extendTemplate']({'attributes':{'class':[_0x1308('0x1b'),_0x2c2101['if']('isActionsDropdownOpen',_0x1308('0x16'))]},'on':{'click':_0x2c2101['to'](_0x3a1017=>_0x3a1017['stopPropagation']())}}),_0x565444['on']('execute',_0x312404=>{_0x2ee79b[_0x1308('0x2')]&&'function'==typeof _0x312404['source'][_0x1308('0xe')]&&_0x312404[_0x1308('0xf')]['_action'](_0x2ee79b);}),_0x270320(_0x565444,_0x37cbb1),_0x565444[_0x1308('0x1c')](_0x2ee79b,_0x1308('0x4'),(_0x522e73,_0x2d9f59,_0x28f7e7)=>{if(_0x28f7e7)for(const _0x18748b of _0x565444['listView'][_0x1308('0x1e')]){const _0x51e99e=_0x18748b[_0x1308('0x7')][_0x1308('0x15')],_0x157082=_0x493cef[_0x1308('0x18')](_0x56443f=>_0x56443f[_0x1308('0x3')]===_0x51e99e[_0x1308('0xe')])['isVisible'];_0x18748b[_0x1308('0x1')]=void 0x0===_0x157082||_0x157082(_0x2ee79b);}}),_0x565444;}
23
+ const _0x1ebe=['map','items','_action','listView','add','threeVerticalDots','Show\x20more\x20items','Restore\x20this\x20revision','Compare\x20against\x20selected','locale','isVisible','class','listenTo','name','children','bindTemplate','isOpen','Name\x20this\x20revision','ck-revision-history-sidebar__revision__actions','isEnabled','panelPosition','stopPropagation','buttonView','function','change:isActionsDropdownOpen','bind','action','source','extendTemplate','isActionsDropdownOpen'];(function(_0x27d576,_0x1ebe44){const _0x53fb82=function(_0x3573fc){while(--_0x3573fc){_0x27d576['push'](_0x27d576['shift']());}};_0x53fb82(++_0x1ebe44);}(_0x1ebe,0x10b));const _0x53fb=function(_0x27d576,_0x1ebe44){_0x27d576=_0x27d576-0x0;let _0x53fb82=_0x1ebe[_0x27d576];return _0x53fb82;};import{Collection as _0x106042}from'ckeditor5/src/utils';import{icons as _0x479c55}from'ckeditor5/src/core';import{Model as _0x5afa01,addListToDropdown as _0xbbd9b9,createDropdown as _0x598f43}from'ckeditor5/src/ui';import{getTranslation as _0x3403ce}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0xaa7202,_0x7767af){const _0x2a2aae=_0xaa7202[_0x53fb('0x12')],_0x25d557=_0xaa7202[_0x53fb('0xc')],_0x1b952d=_0x598f43(_0x25d557);_0x1b952d[_0x53fb('0x17')]='sw';const _0x5ce2e8=function(_0x5d8588,_0x320120){const _0x2cd2df=function(_0x43844b,_0x23f2de){const _0xf2ab7c=_0x43844b['locale'],_0x1e7b81={'Compare\x20against\x20selected':_0x3403ce(_0xf2ab7c,_0x53fb('0xb')),'Name\x20this\x20revision':_0x3403ce(_0xf2ab7c,_0x53fb('0x14')),'Restore\x20this\x20revision':_0x3403ce(_0xf2ab7c,_0x53fb('0xa'))};return _0x23f2de[_0x53fb('0x3')](_0x3e54d3=>{const _0x5bee51=_0x1e7b81[_0x3e54d3['name']];return _0x5bee51&&_0x5bee51!==_0x3e54d3['name']&&(_0x3e54d3[_0x53fb('0x10')]=_0x5bee51),_0x3e54d3;});}(_0x5d8588,_0x320120),_0x2a4fbd=new _0x106042();for(const _0x45daea of _0x2cd2df){const _0x4bda4c={'type':'button','model':new _0x5afa01({'label':_0x45daea['name'],'class':_0x45daea[_0x53fb('0xe')],'withText':!0x0,'_action':_0x45daea['action']})};_0x4bda4c['model'][_0x53fb('0x1c')](_0x53fb('0x16'))['to'](_0x5d8588,'isActionsDropdownOpen',_0x15da7b=>'function'!=typeof _0x45daea[_0x53fb('0x16')]||(!_0x15da7b||_0x45daea[_0x53fb('0x16')](_0x5d8588))),_0x2a4fbd[_0x53fb('0x7')](_0x4bda4c);}return _0x2a4fbd;}(_0xaa7202,_0x7767af);return _0xaa7202[_0x53fb('0x1c')](_0x53fb('0x2'))['to'](_0x1b952d,_0x53fb('0x13')),_0x1b952d[_0x53fb('0x19')]['set']({'label':_0x3403ce(_0x25d557,_0x53fb('0x9')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x479c55[_0x53fb('0x8')]}),_0x1b952d[_0x53fb('0x1')]({'attributes':{'class':[_0x53fb('0x15'),_0x2a2aae['if'](_0x53fb('0x2'),'ck-on')]},'on':{'click':_0x2a2aae['to'](_0x382d12=>_0x382d12[_0x53fb('0x18')]())}}),_0x1b952d['on']('execute',_0x5316bc=>{_0xaa7202['isReady']&&_0x53fb('0x1a')==typeof _0x5316bc[_0x53fb('0x0')]['_action']&&_0x5316bc[_0x53fb('0x0')][_0x53fb('0x5')](_0xaa7202);}),_0xbbd9b9(_0x1b952d,_0x5ce2e8),_0x1b952d[_0x53fb('0xf')](_0xaa7202,_0x53fb('0x1b'),(_0x72c252,_0x2bf25b,_0x2d2df2)=>{if(_0x2d2df2)for(const _0x358725 of _0x1b952d[_0x53fb('0x6')][_0x53fb('0x4')]){const _0xb46a37=_0x358725[_0x53fb('0x11')]['first'],_0x4f99f2=_0x7767af['find'](_0x357baf=>_0x357baf[_0x53fb('0x1d')]===_0xb46a37[_0x53fb('0x5')])[_0x53fb('0xd')];_0x358725['isVisible']=void 0x0===_0x4f99f2||_0x4f99f2(_0xaa7202);}}),_0x1b952d;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x59c2=['name','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author','set','Revision\x20creator','Revision\x20author'];(function(_0x48b524,_0x59c2f9){const _0x36ab3c=function(_0x36c34f){while(--_0x36c34f){_0x48b524['push'](_0x48b524['shift']());}};_0x36ab3c(++_0x59c2f9);}(_0x59c2,0x195));const _0x36ab=function(_0x48b524,_0x59c2f9){_0x48b524=_0x48b524-0x0;let _0x36ab3c=_0x59c2[_0x48b524];return _0x36ab3c;};import{View as _0x102ced,IconView as _0xceaef6}from'ckeditor5/src/ui';import{getTranslation as _0x29ac21}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x3f5338 from'../../../theme/icons/user.svg';export default class ti extends _0x102ced{constructor(_0x4e3acd,_0x5f423b,_0x45e828){super(_0x4e3acd);const _0x581200=new _0xceaef6();_0x581200[_0x36ab('0x0')]({'content':_0x3f5338,'viewBox':_0x36ab('0x4')});const _0xd7dbc2=['ck',_0x36ab('0x5')];_0x45e828&&_0xd7dbc2['push']('ck-revision-history-sidebar__revision-author_creator');const _0x57abce=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x29ac21(_0x4e3acd,_0x45e828?_0x36ab('0x1'):_0x36ab('0x2'))},'children':[_0x581200,_0x5f423b[_0x36ab('0x3')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xd7dbc2},'children':_0x57abce});}}
23
+ const _0x48f0=['span','ck-revision-history-sidebar__revision-author','push','ck-revision-history-sidebar__revision-author__name','ck-revision-history-sidebar__revision-author_creator','setTemplate','name','set','Revision\x20creator','Revision\x20author'];(function(_0x8f426f,_0x48f00f){const _0x24fecb=function(_0x4ee58f){while(--_0x4ee58f){_0x8f426f['push'](_0x8f426f['shift']());}};_0x24fecb(++_0x48f00f);}(_0x48f0,0x89));const _0x24fe=function(_0x8f426f,_0x48f00f){_0x8f426f=_0x8f426f-0x0;let _0x24fecb=_0x48f0[_0x8f426f];return _0x24fecb;};import{View as _0x3479df,IconView as _0xf20a69}from'ckeditor5/src/ui';import{getTranslation as _0x548f63}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x1c1cf2 from'../../../theme/icons/user.svg';export default class ti extends _0x3479df{constructor(_0x422f3b,_0x48fcb4,_0x298795){super(_0x422f3b);const _0x3799ed=new _0xf20a69();_0x3799ed[_0x24fe('0x0')]({'content':_0x1c1cf2,'viewBox':'0\x200\x2011\x2010'});const _0x5ee352=['ck',_0x24fe('0x4')];_0x298795&&_0x5ee352[_0x24fe('0x5')](_0x24fe('0x7'));const _0x231fa1=[{'tag':_0x24fe('0x3'),'attributes':{'class':['ck',_0x24fe('0x6')],'title':_0x548f63(_0x422f3b,_0x298795?_0x24fe('0x1'):_0x24fe('0x2'))},'children':[_0x3799ed,_0x48fcb4[_0x24fe('0x9')]]}];this[_0x24fe('0x8')]({'tag':'li','attributes':{'class':_0x5ee352},'children':_0x231fa1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2c5b=['ck-revision-history-sidebar__revision-name','span'];(function(_0x276c46,_0x2c5bc2){var _0x1760bd=function(_0x3750ae){while(--_0x3750ae){_0x276c46['push'](_0x276c46['shift']());}};_0x1760bd(++_0x2c5bc2);}(_0x2c5b,0x109));var _0x1760=function(_0x276c46,_0x2c5bc2){_0x276c46=_0x276c46-0x0;var _0x1760bd=_0x2c5b[_0x276c46];return _0x1760bd;};import{LabeledFieldView as _0x57303b}from'ckeditor5/src/ui';import{getTranslation as _0x24c93f}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x57303b{constructor(_0x4dc402,_0x33834f){super(_0x4dc402,_0x33834f),this['set']({'label':_0x24c93f(_0x4dc402,'Revision\x20name')}),this['extendTemplate']({'tag':_0x1760('0x0'),'attributes':{'class':[_0x1760('0x1')]}});}}
23
+ var _0x2833=['set','span','ck-revision-history-sidebar__revision-name','Revision\x20name','extendTemplate'];(function(_0x36591e,_0x2833cf){var _0xa1e8b8=function(_0x892e96){while(--_0x892e96){_0x36591e['push'](_0x36591e['shift']());}};_0xa1e8b8(++_0x2833cf);}(_0x2833,0x148));var _0xa1e8=function(_0x36591e,_0x2833cf){_0x36591e=_0x36591e-0x0;var _0xa1e8b8=_0x2833[_0x36591e];return _0xa1e8b8;};import{LabeledFieldView as _0x103ca6}from'ckeditor5/src/ui';import{getTranslation as _0x83923}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x103ca6{constructor(_0xced30b,_0x337fde){super(_0xced30b,_0x337fde),this[_0xa1e8('0x2')]({'label':_0x83923(_0xced30b,_0xa1e8('0x0'))}),this[_0xa1e8('0x1')]({'tag':_0xa1e8('0x3'),'attributes':{'class':[_0xa1e8('0x4')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2330=['ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','isConfirm','ck-revision-history-sidebar__revision__date','isHighlighted','revisionNameView','span','authors','revisionActionsView','bindTemplate','select','isSelected','creator','filter','createdAt','ck-reset','placeholder','from','listenTo','setTemplate','unshift','.ck-thread__remove-confirm','ck-revision-history-sidebar__revision__controls-wrapper','isActionsDropdownOpen','highlight','render','extendTemplate','value','fire','set','bind','isEnabled','ck-revision-history-sidebar__actions_dropdown_open','uiLanguage','element','fieldView','closest','change','_createdAtFormatted','srcElement','ck-revision-history-sidebar__revision','map','name','div','ck-revision-history-sidebar__revision-wrapper','deselect','ck-disabled'];(function(_0x152f0d,_0x2330e4){const _0x10384b=function(_0x4beeba){while(--_0x4beeba){_0x152f0d['push'](_0x152f0d['shift']());}};_0x10384b(++_0x2330e4);}(_0x2330,0xbd));const _0x1038=function(_0x152f0d,_0x2330e4){_0x152f0d=_0x152f0d-0x0;let _0x10384b=_0x2330[_0x152f0d];return _0x10384b;};import{View as _0x42d547,createLabeledInputText as _0xb89a9d}from'ckeditor5/src/ui';import{ConfirmMixin as _0x40bb18}from'ckeditor5-collaboration/src/collaboration-core';import _0x23febc from'./revisionnameview';import _0x11c188 from'./revisionauthorview';import{dateToPrettyFormat as _0x4950d5}from'./utils';import{createActionsDropdownView as _0x504691}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x40bb18(_0x42d547){constructor(_0x3c9ca9,_0xd8564,_0x4dd3d2){super(_0x3c9ca9);const _0x524954=this[_0x1038('0x8')],_0x54d453=function(_0x1acf35,_0x12b3f7){const _0x103aeb=Array[_0x1038('0x10')](_0x12b3f7[_0x1038('0x6')])[_0x1038('0xc')](_0x28c080=>_0x28c080!=_0x12b3f7[_0x1038('0xb')]);return _0x12b3f7['creator']&&_0x103aeb[_0x1038('0x13')](_0x12b3f7[_0x1038('0xb')]),_0x103aeb[_0x1038('0x28')](_0x3cb5a3=>new _0x11c188(_0x1acf35,_0x3cb5a3,_0x3cb5a3==_0x12b3f7[_0x1038('0xb')]));}(_0x3c9ca9,_0xd8564);this['id']=_0xd8564['id'],this['_revision']=_0xd8564,this['bind'](_0x1038('0x29'),_0x1038('0xd'))['to'](_0xd8564),this[_0x1038('0x1d')](_0x1038('0x25'))['to'](this,'createdAt',_0x457abb=>_0x457abb?_0x4950d5(_0x3c9ca9[_0x1038('0x20')],_0x457abb):void 0x0),this[_0x1038('0x1c')](_0x1038('0xa'),!0x1),this[_0x1038('0x1c')](_0x1038('0x3'),!0x1),this[_0x1038('0x1c')](_0x1038('0x16'),!0x1),this[_0x1038('0x1c')]('isReady',!0x1),this[_0x1038('0x1c')](_0x1038('0x1e'),!0x1),this[_0x1038('0x4')]=new _0x23febc(_0x3c9ca9,_0xb89a9d),this['revisionNameView']['fieldView'][_0x1038('0x19')]({'attributes':{'maxlength':'220'}}),this[_0x1038('0x4')][_0x1038('0x22')][_0x1038('0x1d')](_0x1038('0x1a'),_0x1038('0xf'))['to'](this,'name',_0x1038('0x25')),this[_0x1038('0x4')][_0x1038('0x1d')](_0x1038('0x1e'))['to'](this,_0x1038('0xa'),this,'isEnabled',(_0x55699b,_0x186e45)=>_0x55699b&&_0x186e45),this[_0x1038('0x7')]=_0x4dd3d2&&_0x4dd3d2['length']?_0x504691(this,_0x4dd3d2):'',this[_0x1038('0x7')]&&this['revisionActionsView'][_0x1038('0x1d')](_0x1038('0x1e'))['to'](this),this[_0x1038('0x12')]({'tag':_0x1038('0x2a'),'attributes':{'class':['ck','ck-reset',_0x1038('0x2b'),_0x524954['if'](_0x1038('0x1'),_0x1038('0x0'))]},'children':[{'tag':_0x1038('0x2a'),'attributes':{'class':['ck',_0x1038('0xe'),_0x1038('0x27'),_0x524954['if'](_0x1038('0x1e'),_0x1038('0x2d'),_0x365ffe=>!_0x365ffe),_0x524954['if'](_0x1038('0xa'),'ck-revision-history-sidebar__revision_selected'),_0x524954['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x524954['if'](_0x1038('0x16'),_0x1038('0x1f'))]},'children':[this['revisionNameView'],{'tag':_0x1038('0x5'),'attributes':{'class':['ck',_0x1038('0x2')]},'children':[{'text':_0x524954['to'](_0x1038('0x25'))}]},{'tag':_0x1038('0x2a'),'attributes':{'class':['ck',_0x1038('0x15')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x1038('0x2e')]},'children':_0x54d453}]},this['revisionActionsView']],'on':{'click':_0x524954['to'](_0x58b0ba=>{_0x58b0ba[_0x1038('0x26')][_0x1038('0x23')](_0x1038('0x14'))||this['isReady']&&this['isEnabled']&&this[_0x1038('0x1b')](_0x1038('0x9'),{'id':this['id']});})}}]});}['render'](){super[_0x1038('0x18')]();const _0x34bc2d=this[_0x1038('0x4')][_0x1038('0x22')][_0x1038('0x21')];this[_0x1038('0x11')](_0x34bc2d,_0x1038('0x24'),()=>{this[_0x1038('0x1b')]('setName',{'id':this['id'],'name':_0x34bc2d[_0x1038('0x1a')]});});}[_0x1038('0x9')](){this[_0x1038('0xa')]=!0x0;}[_0x1038('0x2c')](){this[_0x1038('0xa')]=!0x1;}[_0x1038('0x17')](){this[_0x1038('0x3')]=!0x0;}['unhighlight'](){this[_0x1038('0x3')]=!0x1;}}
23
+ const _0x5b55=['authors','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__revision','setTemplate','deselect','creator','map','srcElement','ck-disabled','unshift','value','revisionNameView','bindTemplate','fieldView','isConfirm','isReady','createdAt','from','div','closest','_revision','isActionsDropdownOpen','extendTemplate','ck-revision-history-sidebar__actions_dropdown_open','revisionActionsView','change','ck-revision-history-sidebar__revision_selected','ck-reset','set','isEnabled','render','unhighlight','ck-revision-history-sidebar__revision__date','bind','isSelected','fire','name','isHighlighted','setName','placeholder','highlight','_createdAtFormatted','220','select','listenTo'];(function(_0x2c9275,_0x5b55d5){const _0x2df0b1=function(_0x1bb7c2){while(--_0x1bb7c2){_0x2c9275['push'](_0x2c9275['shift']());}};_0x2df0b1(++_0x5b55d5);}(_0x5b55,0x11f));const _0x2df0=function(_0x2c9275,_0x5b55d5){_0x2c9275=_0x2c9275-0x0;let _0x2df0b1=_0x5b55[_0x2c9275];return _0x2df0b1;};import{View as _0x1c1b48,createLabeledInputText as _0x3b26d2}from'ckeditor5/src/ui';import{ConfirmMixin as _0x3ae8f5}from'ckeditor5-collaboration/src/collaboration-core';import _0x16d591 from'./revisionnameview';import _0x2ec080 from'./revisionauthorview';import{dateToPrettyFormat as _0x5cca99}from'./utils';import{createActionsDropdownView as _0x54d728}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x3ae8f5(_0x1c1b48){constructor(_0x3e175d,_0x57922d,_0x515f15){super(_0x3e175d);const _0xcdbf07=this[_0x2df0('0x28')],_0x1d26cd=function(_0x315c46,_0x32e022){const _0x4329af=Array[_0x2df0('0x0')](_0x32e022[_0x2df0('0x1c')])['filter'](_0x258336=>_0x258336!=_0x32e022['creator']);return _0x32e022[_0x2df0('0x21')]&&_0x4329af[_0x2df0('0x25')](_0x32e022['creator']),_0x4329af[_0x2df0('0x22')](_0x372dce=>new _0x2ec080(_0x315c46,_0x372dce,_0x372dce==_0x32e022['creator']));}(_0x3e175d,_0x57922d);this['id']=_0x57922d['id'],this[_0x2df0('0x3')]=_0x57922d,this[_0x2df0('0x10')](_0x2df0('0x13'),_0x2df0('0x2c'))['to'](_0x57922d),this[_0x2df0('0x10')](_0x2df0('0x18'))['to'](this,'createdAt',_0x2b3251=>_0x2b3251?_0x5cca99(_0x3e175d['uiLanguage'],_0x2b3251):void 0x0),this[_0x2df0('0xb')](_0x2df0('0x11'),!0x1),this[_0x2df0('0xb')]('isHighlighted',!0x1),this[_0x2df0('0xb')](_0x2df0('0x4'),!0x1),this['set'](_0x2df0('0x2b'),!0x1),this[_0x2df0('0xb')]('isEnabled',!0x1),this['revisionNameView']=new _0x16d591(_0x3e175d,_0x3b26d2),this['revisionNameView'][_0x2df0('0x29')][_0x2df0('0x5')]({'attributes':{'maxlength':_0x2df0('0x19')}}),this[_0x2df0('0x27')][_0x2df0('0x29')][_0x2df0('0x10')]('value',_0x2df0('0x16'))['to'](this,_0x2df0('0x13'),_0x2df0('0x18')),this[_0x2df0('0x27')][_0x2df0('0x10')](_0x2df0('0xc'))['to'](this,_0x2df0('0x11'),this,_0x2df0('0xc'),(_0x850115,_0x2529e6)=>_0x850115&&_0x2529e6),this['revisionActionsView']=_0x515f15&&_0x515f15['length']?_0x54d728(this,_0x515f15):'',this[_0x2df0('0x7')]&&this['revisionActionsView'][_0x2df0('0x10')](_0x2df0('0xc'))['to'](this),this[_0x2df0('0x1f')]({'tag':_0x2df0('0x1'),'attributes':{'class':['ck',_0x2df0('0xa'),_0x2df0('0x1d'),_0xcdbf07['if'](_0x2df0('0x2a'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck',_0x2df0('0xa'),_0x2df0('0x1e'),_0xcdbf07['if']('isEnabled',_0x2df0('0x24'),_0x128373=>!_0x128373),_0xcdbf07['if'](_0x2df0('0x11'),_0x2df0('0x9')),_0xcdbf07['if'](_0x2df0('0x14'),'ck-revision-history-sidebar__revision_highlighted'),_0xcdbf07['if'](_0x2df0('0x4'),_0x2df0('0x6'))]},'children':[this[_0x2df0('0x27')],{'tag':'span','attributes':{'class':['ck',_0x2df0('0xf')]},'children':[{'text':_0xcdbf07['to'](_0x2df0('0x18'))}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x1d26cd}]},this[_0x2df0('0x7')]],'on':{'click':_0xcdbf07['to'](_0x43b801=>{_0x43b801[_0x2df0('0x23')][_0x2df0('0x2')]('.ck-thread__remove-confirm')||this['isReady']&&this[_0x2df0('0xc')]&&this[_0x2df0('0x12')]('select',{'id':this['id']});})}}]});}['render'](){super[_0x2df0('0xd')]();const _0x36186e=this[_0x2df0('0x27')][_0x2df0('0x29')]['element'];this[_0x2df0('0x1b')](_0x36186e,_0x2df0('0x8'),()=>{this['fire'](_0x2df0('0x15'),{'id':this['id'],'name':_0x36186e[_0x2df0('0x26')]});});}[_0x2df0('0x1a')](){this['isSelected']=!0x0;}[_0x2df0('0x20')](){this[_0x2df0('0x11')]=!0x1;}[_0x2df0('0x17')](){this['isHighlighted']=!0x0;}[_0x2df0('0xe')](){this['isHighlighted']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2258=['ck-revision-history-sidebar__subrevision-collapser__inner','toggle','isVisible','setTemplate','_isCollapsed','click','button','bindTemplate','true','ck-hidden','false','ck-revision-history-sidebar__subrevision-collapser','set'];(function(_0x25be16,_0x225875){const _0x153c69=function(_0x263c12){while(--_0x263c12){_0x25be16['push'](_0x25be16['shift']());}};_0x153c69(++_0x225875);}(_0x2258,0x102));const _0x153c=function(_0x25be16,_0x225875){_0x25be16=_0x25be16-0x0;let _0x153c69=_0x2258[_0x25be16];return _0x153c69;};import{View as _0x529f65}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x529f65{constructor(_0x53ed61){super(_0x53ed61);const _0x349449=this[_0x153c('0x9')];this[_0x153c('0x1')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x153c('0x5')]({'tag':'span','attributes':{'class':['ck',_0x153c('0x0'),_0x349449['if'](_0x153c('0x4'),_0x153c('0xb'),_0x545593=>!_0x545593),_0x349449['if'](_0x153c('0x6'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x153c('0x8'),'aria-pressed':_0x349449['to']('_isCollapsed',_0x235980=>_0x235980?_0x153c('0xc'):_0x153c('0xa'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x153c('0x2')]}}],'on':{'click':_0x349449['to'](_0x153c('0x7'))}});}[_0x153c('0x3')](){this[_0x153c('0x6')]=!this[_0x153c('0x6')];}}
23
+ const _0x39cb=['bindTemplate','button','true','set','click','setTemplate','false','ck-revision-history-sidebar__subrevision-collapser','isVisible','ck-revision-history-sidebar__subrevision-collapser__inner','span','_isCollapsed'];(function(_0x572f54,_0x39cb15){const _0x527080=function(_0x15365a){while(--_0x15365a){_0x572f54['push'](_0x572f54['shift']());}};_0x527080(++_0x39cb15);}(_0x39cb,0x1d2));const _0x5270=function(_0x572f54,_0x39cb15){_0x572f54=_0x572f54-0x0;let _0x527080=_0x39cb[_0x572f54];return _0x527080;};import{View as _0x534068}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x534068{constructor(_0x4e42ea){super(_0x4e42ea);const _0xfa5fba=this[_0x5270('0x2')];this[_0x5270('0x5')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5270('0x7')]({'tag':_0x5270('0x0'),'attributes':{'class':['ck',_0x5270('0x9'),_0xfa5fba['if'](_0x5270('0xa'),'ck-hidden',_0x4b4ef6=>!_0x4b4ef6),_0xfa5fba['if']('_isCollapsed','ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x5270('0x3'),'aria-pressed':_0xfa5fba['to'](_0x5270('0x1'),_0x26f20d=>_0x26f20d?_0x5270('0x8'):_0x5270('0x4'))},'children':[{'tag':_0x5270('0x0'),'attributes':{'class':['ck',_0x5270('0xb')]}}],'on':{'click':_0xfa5fba['to'](_0x5270('0x6'))}});}['toggle'](){this[_0x5270('0x1')]=!this[_0x5270('0x1')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7547=['select','ck-revision-history-sidebar__subrevision','_createdAtFormatted','bindTemplate','bind','fire','isSelected','_parentRevisionId','span','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision__date','createdAt','set','div'];(function(_0x24f836,_0x754741){const _0x10886e=function(_0x34f207){while(--_0x34f207){_0x24f836['push'](_0x24f836['shift']());}};_0x10886e(++_0x754741);}(_0x7547,0xff));const _0x1088=function(_0x24f836,_0x754741){_0x24f836=_0x24f836-0x0;let _0x10886e=_0x7547[_0x24f836];return _0x10886e;};import{View as _0xef5dbc}from'ckeditor5/src/ui';import _0x13dabe from'./revisionauthorview';import{dateToPrettyFormat as _0x38d1fb}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0xef5dbc{constructor(_0x567455,_0x6cc58a,_0x28086f){super(_0x567455);const _0x5c699a=this[_0x1088('0x0')];this['id']=_0x6cc58a['id'],this[_0x1088('0x1')](_0x1088('0x8'))['to'](_0x6cc58a),this[_0x1088('0x9')](_0x1088('0x3'),!0x1),this['bind'](_0x1088('0xd'))['to'](this,_0x1088('0x8'),_0x1c6c1f=>_0x1c6c1f?_0x38d1fb(_0x567455['uiLanguage'],_0x1c6c1f):void 0x0),this[_0x1088('0x4')]=_0x28086f,this['setTemplate']({'tag':_0x1088('0xa'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1088('0xc'),_0x5c699a['if'](_0x1088('0x3'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x1088('0x5'),'attributes':{'class':['ck',_0x1088('0x7')]},'children':[{'text':_0x5c699a['to'](_0x1088('0xd'))}]},{'tag':'ul','attributes':{'class':['ck',_0x1088('0x6')]},'children':[new _0x13dabe(_0x567455,_0x6cc58a['creator'],!0x0)]}],'on':{'click':_0x5c699a['to'](this['select'][_0x1088('0x1')](this))}});}[_0x1088('0xb')](){this[_0x1088('0x3')]=!0x0,this[_0x1088('0x2')](_0x1088('0xb'),{'parentId':this[_0x1088('0x4')]});}['deselect'](){this['isSelected']=!0x1;}}
23
+ const _0xfa40=['ck-revision-history-sidebar__revision-authors','bind','div','createdAt','select','ck-reset','ck-revision-history-sidebar__subrevision','span','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision__date','bindTemplate','creator','set','_createdAtFormatted','setTemplate','fire','_parentRevisionId','deselect','uiLanguage','isSelected'];(function(_0xb3adcb,_0xfa4058){const _0x5383aa=function(_0x5734bf){while(--_0x5734bf){_0xb3adcb['push'](_0xb3adcb['shift']());}};_0x5383aa(++_0xfa4058);}(_0xfa40,0x93));const _0x5383=function(_0xb3adcb,_0xfa4058){_0xb3adcb=_0xb3adcb-0x0;let _0x5383aa=_0xfa40[_0xb3adcb];return _0x5383aa;};import{View as _0x51a7d3}from'ckeditor5/src/ui';import _0x424ca6 from'./revisionauthorview';import{dateToPrettyFormat as _0x4fcab8}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x51a7d3{constructor(_0x4d4b48,_0x32b9e4,_0x36a116){super(_0x4d4b48);const _0x454a38=this[_0x5383('0x3')];this['id']=_0x32b9e4['id'],this[_0x5383('0xe')](_0x5383('0x10'))['to'](_0x32b9e4),this[_0x5383('0x5')](_0x5383('0xc'),!0x1),this[_0x5383('0xe')](_0x5383('0x6'))['to'](this,_0x5383('0x10'),_0x50939c=>_0x50939c?_0x4fcab8(_0x4d4b48[_0x5383('0xb')],_0x50939c):void 0x0),this[_0x5383('0x9')]=_0x36a116,this[_0x5383('0x7')]({'tag':_0x5383('0xf'),'attributes':{'class':['ck',_0x5383('0x12'),'ck-revision-history-sidebar__revision',_0x5383('0x13'),_0x454a38['if']('isSelected',_0x5383('0x1'))]},'children':[{'tag':_0x5383('0x0'),'attributes':{'class':['ck',_0x5383('0x2')]},'children':[{'text':_0x454a38['to'](_0x5383('0x6'))}]},{'tag':'ul','attributes':{'class':['ck',_0x5383('0xd')]},'children':[new _0x424ca6(_0x4d4b48,_0x32b9e4[_0x5383('0x4')],!0x0)]}],'on':{'click':_0x454a38['to'](this[_0x5383('0x11')][_0x5383('0xe')](this))}});}[_0x5383('0x11')](){this[_0x5383('0xc')]=!0x0,this[_0x5383('0x8')]('select',{'parentId':this[_0x5383('0x9')]});}[_0x5383('0xa')](){this[_0x5383('0xc')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x178e=['toLocaleTimeString','toLocaleDateString','long','numeric'];(function(_0x2230a6,_0x178eb5){var _0x2da4d6=function(_0x5084a7){while(--_0x5084a7){_0x2230a6['push'](_0x2230a6['shift']());}};_0x2da4d6(++_0x178eb5);}(_0x178e,0xf3));var _0x2da4=function(_0x2230a6,_0x178eb5){_0x2230a6=_0x2230a6-0x0;var _0x2da4d6=_0x178e[_0x2230a6];return _0x2da4d6;};export function dateToPrettyFormat(_0x2c9388,_0x1324ec){return _0x1324ec[_0x2da4('0x2')](_0x2c9388,{'month':_0x2da4('0x3'),'day':_0x2da4('0x0')})+',\x20'+_0x1324ec[_0x2da4('0x1')](_0x2c9388,{'hour':'numeric','minute':_0x2da4('0x0')});}
23
+ var _0x4f0f=['toLocaleTimeString','long','toLocaleDateString','numeric'];(function(_0x229b02,_0x4f0f1f){var _0x77639a=function(_0xbdeaf4){while(--_0xbdeaf4){_0x229b02['push'](_0x229b02['shift']());}};_0x77639a(++_0x4f0f1f);}(_0x4f0f,0xf5));var _0x7763=function(_0x229b02,_0x4f0f1f){_0x229b02=_0x229b02-0x0;var _0x77639a=_0x4f0f[_0x229b02];return _0x77639a;};export function dateToPrettyFormat(_0x2ea7aa,_0x459e10){return _0x459e10[_0x7763('0x1')](_0x2ea7aa,{'month':_0x7763('0x0'),'day':_0x7763('0x2')})+',\x20'+_0x459e10[_0x7763('0x3')](_0x2ea7aa,{'hour':_0x7763('0x2'),'minute':_0x7763('0x2')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13e3=['keystrokes','revisionName','cancelButtonView','ck-responsive-form','_focusCycler','fieldView','add','_createButton','render','form','Save','forEach','_focusables','revisionNameInputValue','revisionNameInputView','tab','ck-revision-history-save-revision-form','focusTracker','ck-button-save','type','label','locale','_createRevisionNameInput','trim','saveButtonView','element','submit','listenTo','extendTemplate','ck-button-cancel','input','setTemplate','set','stopPropagation','shift\x20+\x20tab','arrowleft','220','check','focusFirst','value','arrowright','cancel','delegate','Cancel','Name\x20of\x20the\x20revision\x20(optional)'];(function(_0xac75c5,_0x13e36d){const _0x1dfcb4=function(_0x39d06b){while(--_0x39d06b){_0xac75c5['push'](_0xac75c5['shift']());}};_0x1dfcb4(++_0x13e36d);}(_0x13e3,0x91));const _0x1dfc=function(_0xac75c5,_0x13e36d){_0xac75c5=_0xac75c5-0x0;let _0x1dfcb4=_0x13e3[_0xac75c5];return _0x1dfcb4;};import{icons as _0x94e75}from'ckeditor5/src/core';import{ButtonView as _0x111fda,FocusCycler as _0x2c1db7,LabeledFieldView as _0x94a6fa,View as _0xd3889f,ViewCollection as _0x2a8bb7,createLabeledInputText as _0x328927,injectCssTransitionDisabler as _0x466162,submitHandler as _0x2280b5}from'ckeditor5/src/ui';import{FocusTracker as _0x4aa7c9,KeystrokeHandler as _0x43546b}from'ckeditor5/src/utils';import{getTranslation as _0x4071d5}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class xt extends _0xd3889f{constructor(_0x402ecd){super(_0x402ecd),this[_0x1dfc('0x7')]=new _0x4aa7c9(),this[_0x1dfc('0x23')]=new _0x43546b(),this[_0x1dfc('0x16')](_0x1dfc('0x3'),''),this[_0x1dfc('0x4')]=this[_0x1dfc('0xc')](),this[_0x1dfc('0xe')]=this[_0x1dfc('0x2a')](_0x4071d5(_0x402ecd,_0x1dfc('0x0')),_0x94e75[_0x1dfc('0x1b')],_0x1dfc('0x8')),this[_0x1dfc('0xe')][_0x1dfc('0x9')]=_0x1dfc('0x10'),this[_0x1dfc('0x25')]=this[_0x1dfc('0x2a')](_0x4071d5(_0x402ecd,_0x1dfc('0x21')),_0x94e75['cancel'],_0x1dfc('0x13'),_0x1dfc('0x1f')),this[_0x1dfc('0x2')]=new _0x2a8bb7(),this[_0x1dfc('0x27')]=new _0x2c1db7({'focusables':this[_0x1dfc('0x2')],'focusTracker':this[_0x1dfc('0x7')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x1dfc('0x18'),'focusNext':_0x1dfc('0x5')}}),this[_0x1dfc('0x15')]({'tag':_0x1dfc('0x2c'),'attributes':{'class':['ck',_0x1dfc('0x6'),_0x1dfc('0x26')],'tabindex':'-1'},'children':[this[_0x1dfc('0x4')],this[_0x1dfc('0xe')],this[_0x1dfc('0x25')]]}),_0x466162(this);}[_0x1dfc('0x2b')](){super['render'](),_0x2280b5({'view':this}),([this[_0x1dfc('0x4')],this['saveButtonView'],this[_0x1dfc('0x25')]][_0x1dfc('0x1')](_0x3c0998=>{this[_0x1dfc('0x2')][_0x1dfc('0x29')](_0x3c0998),this[_0x1dfc('0x7')][_0x1dfc('0x29')](_0x3c0998['element']);}),this['keystrokes'][_0x1dfc('0x11')](this[_0x1dfc('0xf')]));const _0xb61c6e=_0x259d71=>_0x259d71[_0x1dfc('0x17')]();this[_0x1dfc('0x23')][_0x1dfc('0x16')](_0x1dfc('0x1e'),_0xb61c6e),this[_0x1dfc('0x23')][_0x1dfc('0x16')](_0x1dfc('0x19'),_0xb61c6e),this[_0x1dfc('0x23')][_0x1dfc('0x16')]('arrowup',_0xb61c6e),this[_0x1dfc('0x23')][_0x1dfc('0x16')]('arrowdown',_0xb61c6e);}['focus'](){this[_0x1dfc('0x27')][_0x1dfc('0x1c')]();}get[_0x1dfc('0x24')](){return this['revisionNameInputView']['fieldView'][_0x1dfc('0xf')][_0x1dfc('0x1d')][_0x1dfc('0xd')]();}set['revisionName'](_0x4df341){this[_0x1dfc('0x4')][_0x1dfc('0x28')][_0x1dfc('0xf')][_0x1dfc('0x1d')]=_0x4df341[_0x1dfc('0xd')]();}['reset'](){this[_0x1dfc('0x4')][_0x1dfc('0x28')][_0x1dfc('0xf')][_0x1dfc('0x1d')]='';}[_0x1dfc('0xc')](){const _0x2e26c1=new _0x94a6fa(this['locale'],_0x328927),_0x52009d=_0x2e26c1['fieldView'];return _0x52009d[_0x1dfc('0x12')]({'attributes':{'maxlength':_0x1dfc('0x1a')}}),_0x2e26c1[_0x1dfc('0xa')]=_0x4071d5(this['locale'],_0x1dfc('0x22')),_0x52009d['on'](_0x1dfc('0x14'),()=>{this['revisionNameInputValue']=_0x52009d[_0x1dfc('0xf')][_0x1dfc('0x1d')][_0x1dfc('0xd')]();}),_0x2e26c1;}[_0x1dfc('0x2a')](_0xfbc3e4,_0x20f8b7,_0x224e16,_0x21b7f4){const _0x53f84d=new _0x111fda(this[_0x1dfc('0xb')]);return _0x53f84d['set']({'label':_0xfbc3e4,'icon':_0x20f8b7,'tooltip':!0x0}),_0x53f84d['extendTemplate']({'attributes':{'class':_0x224e16}}),_0x21b7f4&&_0x53f84d[_0x1dfc('0x20')]('execute')['to'](this,_0x21b7f4),_0x53f84d;}}
23
+ const _0x48a1=['ck-revision-history-save-revision-form','keystrokes','value','trim','delegate','fieldView','render','ck-button-save','Save','_createButton','cancel','_createRevisionNameInput','forEach','revisionName','revisionNameInputView','reset','form','element','locale','220','setTemplate','set','extendTemplate','cancelButtonView','submit','ck-button-cancel','Name\x20of\x20the\x20revision\x20(optional)','shift\x20+\x20tab','_focusables','focusTracker','type','saveButtonView','listenTo','revisionNameInputValue','add','arrowup','arrowright','check','focus','focusFirst','ck-responsive-form','_focusCycler','arrowdown','arrowleft'];(function(_0x20262c,_0x48a17d){const _0x466083=function(_0x283188){while(--_0x283188){_0x20262c['push'](_0x20262c['shift']());}};_0x466083(++_0x48a17d);}(_0x48a1,0xeb));const _0x4660=function(_0x20262c,_0x48a17d){_0x20262c=_0x20262c-0x0;let _0x466083=_0x48a1[_0x20262c];return _0x466083;};import{icons as _0x4e70e1}from'ckeditor5/src/core';import{ButtonView as _0x579a48,FocusCycler as _0x21a49b,LabeledFieldView as _0x1294d0,View as _0x2d6ac8,ViewCollection as _0x1995d4,createLabeledInputText as _0x5ebbf5,injectCssTransitionDisabler as _0x2e406d,submitHandler as _0x36c171}from'ckeditor5/src/ui';import{FocusTracker as _0x2ea00b,KeystrokeHandler as _0x97b223}from'ckeditor5/src/utils';import{getTranslation as _0x2a7f05}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x2d6ac8{constructor(_0x18fb12){super(_0x18fb12),this[_0x4660('0xe')]=new _0x2ea00b(),this[_0x4660('0x1e')]=new _0x97b223(),this[_0x4660('0x6')]('revisionNameInputValue',''),this[_0x4660('0x2b')]=this[_0x4660('0x28')](),this[_0x4660('0x10')]=this[_0x4660('0x26')](_0x2a7f05(_0x18fb12,_0x4660('0x25')),_0x4e70e1[_0x4660('0x16')],_0x4660('0x24')),this['saveButtonView'][_0x4660('0xf')]=_0x4660('0x9'),this['cancelButtonView']=this[_0x4660('0x26')](_0x2a7f05(_0x18fb12,'Cancel'),_0x4e70e1['cancel'],_0x4660('0xa'),_0x4660('0x27')),this[_0x4660('0xd')]=new _0x1995d4(),this[_0x4660('0x1a')]=new _0x21a49b({'focusables':this[_0x4660('0xd')],'focusTracker':this[_0x4660('0xe')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x4660('0xc'),'focusNext':'tab'}}),this[_0x4660('0x5')]({'tag':_0x4660('0x1'),'attributes':{'class':['ck',_0x4660('0x1d'),_0x4660('0x19')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x4660('0x10')],this[_0x4660('0x8')]]}),_0x2e406d(this);}[_0x4660('0x23')](){super[_0x4660('0x23')](),_0x36c171({'view':this}),([this['revisionNameInputView'],this[_0x4660('0x10')],this['cancelButtonView']][_0x4660('0x29')](_0x46b5ba=>{this[_0x4660('0xd')]['add'](_0x46b5ba),this[_0x4660('0xe')][_0x4660('0x13')](_0x46b5ba[_0x4660('0x2')]);}),this[_0x4660('0x1e')][_0x4660('0x11')](this['element']));const _0x483228=_0x18cab9=>_0x18cab9['stopPropagation']();this[_0x4660('0x1e')]['set'](_0x4660('0x15'),_0x483228),this[_0x4660('0x1e')][_0x4660('0x6')](_0x4660('0x1c'),_0x483228),this[_0x4660('0x1e')][_0x4660('0x6')](_0x4660('0x14'),_0x483228),this[_0x4660('0x1e')]['set'](_0x4660('0x1b'),_0x483228);}[_0x4660('0x17')](){this[_0x4660('0x1a')][_0x4660('0x18')]();}get['revisionName'](){return this[_0x4660('0x2b')][_0x4660('0x22')][_0x4660('0x2')][_0x4660('0x1f')]['trim']();}set[_0x4660('0x2a')](_0x4c3a12){this[_0x4660('0x2b')][_0x4660('0x22')][_0x4660('0x2')][_0x4660('0x1f')]=_0x4c3a12[_0x4660('0x20')]();}[_0x4660('0x0')](){this['revisionNameInputView'][_0x4660('0x22')][_0x4660('0x2')]['value']='';}[_0x4660('0x28')](){const _0x1b4b4b=new _0x1294d0(this[_0x4660('0x3')],_0x5ebbf5),_0xf7dcc7=_0x1b4b4b[_0x4660('0x22')];return _0xf7dcc7[_0x4660('0x7')]({'attributes':{'maxlength':_0x4660('0x4')}}),_0x1b4b4b['label']=_0x2a7f05(this[_0x4660('0x3')],_0x4660('0xb')),_0xf7dcc7['on']('input',()=>{this[_0x4660('0x12')]=_0xf7dcc7[_0x4660('0x2')][_0x4660('0x1f')][_0x4660('0x20')]();}),_0x1b4b4b;}['_createButton'](_0xff08fb,_0x2bbf61,_0x1e84e3,_0x33e143){const _0x306506=new _0x579a48(this['locale']);return _0x306506['set']({'label':_0xff08fb,'icon':_0x2bbf61,'tooltip':!0x0}),_0x306506['extendTemplate']({'attributes':{'class':_0x1e84e3}}),_0x33e143&&_0x306506[_0x4660('0x21')]('execute')['to'](this,_0x33e143),_0x306506;}}