@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231017.0 → 0.0.0-nightly-20231019.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 _0x1e5b=['getAttributes','text','getChild','conversion','revision-suggestion','_markSuggestions','ck-revision-history-root-add','isAdded','startIndex','removeAttribute','_refreshStartEndIndex','consume','right','rootName','adapter','_appendChild','all','revision-viewer','_markMismatchedRemovedTags','change:isEnabled','repository','createUIElement','modelRange','addHighlight','getClientRects','revision-end','ck-editor__editable__overlay','markerName','execute','getRoot','activeView','refresh','ck-suggestion-marker','attributes','toData','parse','mapper','unbindElementFromMarkerName','low','elementStart','getItems','change:activeChange','length','forward','POSITIVE_INFINITY','highest','distance','remove','isInline','shift','done','getRootNames','_initInteractions','revisionHistoryLabel','isAfter','deletions','map','ck-revision-history-root-remove','sort','_getViewObj','item','previousPosition','delete','ck-suggestion-marker-','offsetSize','restoreRevision','revisionHistoryAttachChange','insertions','data-change-id','_setConversion','revision-suggestion:','getRevision','nextSibling','insert','consumable','toViewRange','removeMarker','attributesBefore','data','first','ck-suggestion-marker--active','next','get','push','listenTo','element:pre','isRemoved','upcast','dataDowncast','changes','error','values','removeMarker:revision','_removeMissingPairs','editingDowncast','loadRevisionData','createRangeIn','_getRevisionsRange','add','vid','showPreviousChange','uiElement','schema','children','updatePosition','markerNameToElements','_threeWayMerge','addMarker:revision','default','selection','getAttribute','_markInsertions','top','side','suggestion:','test','unshift','activeChange','RevisionViewer','writer','hasAttribute','changeId','stop','endIndex','affectsData','WidgetToolbarRepository','downcastDispatcher','diff','_sortAndFilterDiffChanges','_removeRevisionMarkers','bottom','abs','isReady','createPositionFromPath','ck-revision-history-root-','hasClass','string','isLimit','config','_cleanUp','markerToHighlight','editor','change:activeView','startsWith','createPositionBefore','mapViewToDom','parent','isContent','start','_balloon','collaboration.channelId','nodeAfter','_makeModelFromViewString','roots','isBefore','checkAttribute','end','revision:','_fixObsoleteTags','editing','mouseover','_markMarkers','toViewPosition','marked','insertion','includes','markersEnd','_setChanges','filter','change','isBlock','isAddSuggestion','attributesAfter','_findChangeIdFromDomTarget','removeMarker:revision-suggestion','domEvent','vid_end','elementToAttribute','markerToData','-new','_processTape','dataToMarker','restoreRevisionCallback','split','isSuggestion','attribute:vid','deletion','index','pluginName','vid_start','high','document','getIndex','locale','code','_makeTape','forceDisabled','isAttached','reconvertMarker','elementEnd','isEnabled','createRevision','_getDiff','mousedown','userId','getRevisionRootsAttributes','attachChange','showNextChange','compare','_data','slice','concat','addMarker:revision-suggestion:deletion','requires','_removeUnsupportedChanges','useFillerType','data-revision-','plugins','pop','resolve','getWalker','_makeModelFromTape','numberOfChanges','removeClass','isOnRoot','_setDistance','has','observeMarkers','softBreak','ck-suggestion-marker-split','ck-revision-history-root--active','_getViewForChange','name','RevisionsRepository','revisionHistory','createRange','type','_update','set','markerRange','isIncorrect','newRevisionId','isAtEnd','view','diffData','bindElementToMarker','then','detachRoot','forEach','model','viewItem','processor','_activeViewTarget','isNavigationMode','addRoot','addClass','markersStart','_step','from','toViewElement','for','destroy','keys','_getChangeFromId','clear','oldRevisionId','isRemoveSuggestion','getDomRoot','_changeView','setAttribute','addRevision','suggestion','revision-start','bind','wrap','level','toModel','revision','commands','getCustomProperty','nextPosition','element','_joinTapes','pairId','_cleanMarkers','isEqual','_changeIdToChange','span','merge','object','markers'];(function(_0x51640c,_0x1e5b5d){const _0x48dbba=function(_0x34da7a){while(--_0x34da7a){_0x51640c['push'](_0x51640c['shift']());}};_0x48dbba(++_0x1e5b5d);}(_0x1e5b,0x1ba));const _0x48db=function(_0x51640c,_0x1e5b5d){_0x51640c=_0x51640c-0x0;let _0x48dbba=_0x1e5b[_0x51640c];return _0x48dbba;};import{Plugin as _0x5bc0ff,Command as _0x28f02b}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x46b1aa}from'ckeditor5/src/utils';import{ContextualBalloon as _0x4e383d}from'ckeditor5/src/ui';import{DocumentFragment as _0x489477,Element as _0x3294a3,Text as _0xb4ccc7,ViewDocumentFragment as _0x69a544,ViewText as _0x4973e7,ViewElement as _0x461813,ViewContainerElement as _0x228da0,ViewAttributeElement as _0x5e0814,ViewEmptyElement as _0x137acf,ViewRawElement as _0x174b99,ViewUIElement as _0x3153b5}from'ckeditor5/src/engine';import{Users as _0x1be1b8,getMarkerDomElement as _0x15e21b}from'ckeditor5-collaboration/src/collaboration-core';import _0x138681 from'./ui/revisionviewer/changedetailsview';import _0x53c1c2 from'./revisionsrepository';import _0x265e6d from'./changeitem';import{default as _0x252790}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x58dbae}from'lodash-es';const tt={'c':_0x228da0,'a':_0x5e0814,'e':_0x137acf,'r':_0x174b99,'u':_0x3153b5};export default class d extends _0x5bc0ff{static get[_0x48db('0x25')](){return _0x48db('0x102');}static get[_0x48db('0x3e')](){return[_0x1be1b8,_0x4e383d,_0x53c1c2];}constructor(_0x50d981){super(_0x50d981),this[_0x48db('0xa0')]=this[_0x48db('0x119')]['plugins'][_0x48db('0xde')](_0x48db('0x52')),this[_0x48db('0x57')](_0x48db('0x101'),null),this[_0x48db('0x57')](_0x48db('0xaa'),null),this[_0x48db('0x65')]=null,this[_0x48db('0x57')](_0x48db('0x10b'),null),this[_0x48db('0x57')](_0x48db('0x110'),!0x1),this[_0x48db('0x57')](_0x48db('0x31'),!0x0),this['on'](_0x48db('0x9f'),(_0x4b222b,_0x552531,_0x3d8db5)=>{this['activeChange']=null,this[_0x48db('0xaa')]=null,this[_0x48db('0x119')][_0x48db('0x8')]['view'][_0x48db('0x12')](_0x73c432=>{for(const _0x2fd641 of this[_0x48db('0x119')][_0x48db('0x8')]['view'][_0x48db('0x28')][_0x48db('0x2')])_0x3d8db5?_0x73c432['removeClass']('ck-editor__editable__overlay',_0x2fd641):_0x73c432[_0x48db('0x68')](_0x48db('0xa6'),_0x2fd641);});}),this[_0x48db('0x7a')](_0x48db('0x66'))['to'](this,'activeChange',_0x2019bc=>null!==_0x2019bc),this[_0x48db('0x7a')]('currentChangeNumber')['to'](this,'isReady',this,_0x48db('0x10b'),this,_0x48db('0x101'),(_0x31d5e3,_0x5f6c26,_0x23d325)=>_0x31d5e3&&_0x23d325?_0x5f6c26[_0x48db('0xe5')][_0x48db('0x29')](_0x23d325):0x0),this['bind'](_0x48db('0x47'))['to'](this,_0x48db('0x110'),this,_0x48db('0x10b'),(_0x86e3ee,_0x4630e4)=>_0x86e3ee?_0x4630e4[_0x48db('0xe5')][_0x48db('0xb6')]:0x0),this[_0x48db('0x75')]=null,this[_0x48db('0x87')]=new Map(),this[_0x48db('0x9a')]=null,this[_0x48db('0x121')]=this[_0x48db('0x119')][_0x48db('0x42')]['get'](_0x4e383d);}['init'](){const _0x1ff7f7=this[_0x48db('0x119')],_0x49d5c5=new ShowChangeCommand(_0x1ff7f7,{'direction':'backward'}),_0x306fa2=new ShowChangeCommand(_0x1ff7f7,{'direction':_0x48db('0xb7')});(_0x1ff7f7[_0x48db('0x7f')][_0x48db('0xee')](_0x48db('0xf0'),_0x49d5c5),_0x1ff7f7[_0x48db('0x7f')][_0x48db('0xee')](_0x48db('0x38'),_0x306fa2),_0x1ff7f7[_0x48db('0x7f')][_0x48db('0xee')](_0x48db('0xcd'),new RestoreRevisionCommand(_0x1ff7f7)),this['on']('change:numberOfChanges',()=>{_0x49d5c5[_0x48db('0xab')](),_0x306fa2[_0x48db('0xab')]();}),this['_setConversion'](),this[_0x48db('0xc0')](),_0x1ff7f7['enableReadOnlyMode'](_0x48db('0x9d')),_0x1ff7f7['plugins']['has'](_0x48db('0x109')))&&_0x1ff7f7[_0x48db('0x42')]['get'](_0x48db('0x109'))[_0x48db('0x2d')]('revision-viewer');}async['getRevisionData'](_0x45c6d5){await this[_0x48db('0xeb')](_0x45c6d5);const _0x4a6489={};for(const _0x12018c in _0x45c6d5[_0x48db('0x5d')]){if(_0x45c6d5[_0x48db('0x5d')][_0x12018c]['attachChange']&&!_0x45c6d5['diffData'][_0x12018c][_0x48db('0x37')]['isAttached'])continue;const _0x30cae5=this[_0x48db('0x10d')](JSON[_0x48db('0xaf')](_0x45c6d5['diffData'][_0x12018c][_0x48db('0xcf')])),_0x4a8574=this['editor']['editing'][_0x48db('0x5c')][_0x48db('0x28')],_0x266798=new _0x69a544(_0x4a8574,_0x30cae5[_0x48db('0xc4')](_0x3fea52=>this[_0x48db('0xc7')](_0x3fea52)));this[_0x48db('0x119')][_0x48db('0xda')][_0x48db('0x64')][_0x48db('0x40')](_0x48db('0xc')),_0x4a6489[_0x12018c]=this['editor'][_0x48db('0xda')]['processor'][_0x48db('0xae')](_0x266798),this[_0x48db('0x119')][_0x48db('0xda')][_0x48db('0x64')][_0x48db('0x40')](_0x48db('0xf8'));}return _0x4a6489;}async[_0x48db('0x36')](_0x56f20d){await this[_0x48db('0xeb')](_0x56f20d);const _0x35575f={};for(const _0x521267 in _0x56f20d[_0x48db('0x5d')])_0x56f20d[_0x48db('0x5d')][_0x521267]['attachChange']&&!_0x56f20d[_0x48db('0x5d')][_0x521267][_0x48db('0x37')][_0x48db('0x2e')]||(_0x35575f[_0x521267]=_0x56f20d[_0x48db('0x5d')][_0x521267]['attributesAfter']||{});return _0x35575f;}[_0x48db('0x10d')](_0x1da059){return(_0x1da059=_0x1da059['filter'](_0x2f5400=>!_0x2f5400[_0x48db('0x51')]||_0x48db('0x79')!==_0x2f5400['name']&&_0x48db('0xa5')!==_0x2f5400['name']))[_0x48db('0x61')](_0xe48fd3=>{_0x48db('0x114')!=typeof _0xe48fd3&&(_0xe48fd3['children']=this[_0x48db('0x10d')](_0xe48fd3[_0x48db('0xf3')]),_0xe48fd3['attributes']=_0xe48fd3['attributes'][_0x48db('0x11')](_0x538c11=>!_0x538c11[0x0][_0x48db('0x11b')](_0x48db('0x41'))));}),_0x1da059;}async[_0x48db('0x39')](_0x19aceb,_0x1eaf83,_0x571a79=!0x1){if(!this[_0x48db('0x31')])return;const _0x49b576=this[_0x48db('0x10b')],_0xce61c0=this['repository'],_0x3517a3=_0x48db('0x114')==typeof _0x19aceb?_0xce61c0['getRevision'](_0x19aceb):_0x19aceb,_0x2505d4=_0x48db('0x114')==typeof _0x1eaf83?_0xce61c0[_0x48db('0xd3')](_0x1eaf83):_0x1eaf83,_0x332993=_0x3517a3['id'],_0x1f3ae7=_0x2505d4?_0x2505d4['id']:null;if(!_0x571a79&&this[_0x48db('0x10b')]&&this['diff'][_0x48db('0x5a')]===_0x332993&&this['diff'][_0x48db('0x72')]===_0x1f3ae7)return Promise[_0x48db('0x44')]();this[_0x48db('0x110')]=!0x1,this[_0x48db('0xaa')]=null,this['activeChange']=null,this[_0x48db('0x10b')]=new _0x252790(_0x332993,_0x1f3ae7);const _0x465a45=this[_0x48db('0xed')](_0x3517a3,_0x2505d4,!0x0)['map'](_0x2ec625=>this[_0x48db('0xeb')](_0x2ec625));return _0x465a45[_0x48db('0xdf')](new Promise(_0x956fc2=>{setTimeout(_0x956fc2,0x14);})),Promise[_0x48db('0x9c')](_0x465a45)[_0x48db('0x5f')](()=>{if(!this['isEnabled'])return;this[_0x48db('0x117')]();const _0x33af3d=this['_getDiff'](_0x332993,_0x1f3ae7);for(const _0x543d4c of _0x33af3d['changes'])this['_changeIdToChange']['set'](_0x543d4c['id'],_0x543d4c);this[_0x48db('0x119')][_0x48db('0x62')]['enqueueChange']({'isUndoable':!0x1},_0x15b40e=>{for(const _0x47905f of this[_0x48db('0x119')][_0x48db('0x62')][_0x48db('0x28')]['getRootNames']())_0x15b40e[_0x48db('0x60')](_0x47905f);for(const _0x31398b of Object[_0x48db('0x6f')](_0x33af3d[_0x48db('0x62')])){const _0x508c3c=_0x15b40e[_0x48db('0x67')](_0x31398b);for(const _0x28e996 of Object[_0x48db('0x6f')](_0x33af3d['attributes'][_0x31398b]))_0x15b40e[_0x48db('0x76')](_0x28e996,_0x33af3d[_0x48db('0xad')][_0x31398b][_0x28e996],_0x508c3c);_0x15b40e[_0x48db('0xd5')](_0x33af3d[_0x48db('0x62')][_0x31398b],_0x508c3c,0x0);}}),this[_0x48db('0x10b')][_0x48db('0x10')](this[_0x48db('0x10c')](_0x33af3d['changes'])),this[_0x48db('0x110')]=!0x0;})['catch'](_0x36ea15=>{console[_0x48db('0xe6')](_0x36ea15),this[_0x48db('0x117')](),_0x49b576&&(this['diff']=_0x49b576),this[_0x48db('0x110')]=!0x0;});}['addRevisionData'](_0x2bc569,_0x2f518c){const _0xe3e5ce=this['repository'][_0x48db('0x32')](_0x2bc569);return _0xe3e5ce['on'](_0x48db('0x56'),(_0x41a9b1,_0x30bf0c,_0x500f55)=>_0x2f518c(_0x30bf0c,_0x500f55,_0xe3e5ce)),this[_0x48db('0xa0')][_0x48db('0x77')](_0xe3e5ce),_0xe3e5ce;}['loadRevisionData'](_0x2e067c){if(!_0x2e067c||_0x2e067c[_0x48db('0x5d')])return Promise['resolve']();{const _0x85f53a=this['editor'][_0x48db('0x116')][_0x48db('0xde')](_0x48db('0x122'));return this[_0x48db('0x9a')][_0x48db('0xd3')]({'channelId':_0x85f53a,'revisionId':_0x2e067c['id']})['then'](_0x21e1cc=>{_0x2e067c[_0x48db('0x56')]({'diffData':_0x21e1cc[_0x48db('0x5d')]},!0x0);});}}[_0x48db('0x117')](){this[_0x48db('0x101')]=null,this[_0x48db('0x85')](),this[_0x48db('0x75')]&&this[_0x48db('0x75')][_0x48db('0x6e')](),this['_changeView']=null,this[_0x48db('0x87')][_0x48db('0x71')](),this[_0x48db('0x119')][_0x48db('0x62')]['enqueueChange']({'isUndoable':!0x1},_0x2358fe=>{for(const _0x4ef8a9 of this[_0x48db('0x119')][_0x48db('0x62')][_0x48db('0x28')][_0x48db('0xbf')]())_0x2358fe['detachRoot'](_0x4ef8a9);});}[_0x48db('0x10c')](_0x213631){const _0x3347a5=[],_0x5498f4=new Map();for(const _0x3f17e5 of this[_0x48db('0x119')]['model'][_0x48db('0x28')][_0x48db('0xbf')]()){const _0x5181d7=this[_0x48db('0x119')]['editing'][_0x48db('0x5c')]['getDomRoot'](_0x3f17e5);if(!_0x5181d7)continue;const _0x5c8b3b=_0x5181d7[_0x48db('0xa4')]()[_0x48db('0xc8')](0x0);_0x5c8b3b&&(_0x3347a5[_0x48db('0xdf')](_0x3f17e5),_0x5498f4['set'](_0x3f17e5,_0x5c8b3b));}return _0x3347a5[_0x48db('0xc6')]((_0x582c9a,_0x4a02d4)=>{const _0x382464=_0x5498f4[_0x48db('0xde')](_0x582c9a),_0x3b38d4=_0x5498f4[_0x48db('0xde')](_0x4a02d4);return _0x382464['y']-_0x3b38d4['y']||_0x382464['x']-_0x3b38d4['x'];}),(_0x213631=_0x213631[_0x48db('0x11')](_0x450b4e=>_0x3347a5['includes'](_0x450b4e[_0x48db('0x99')])))[_0x48db('0xc6')]((_0x2c07c6,_0x16e539)=>_0x3347a5['indexOf'](_0x2c07c6[_0x48db('0x99')])-_0x3347a5['indexOf'](_0x16e539['rootName'])),_0x213631;}[_0x48db('0x2c')](_0x4999a6){const _0x501cf8=Array['from'](_0x4999a6['markers'])['filter'](([_0x54183f,_0x2a508b])=>_0x54183f[_0x48db('0x11b')](_0x48db('0x6'))&&!_0x2a508b['isCollapsed']),_0x37f875=Array['from'](this[_0x48db('0x119')][_0x48db('0x62')][_0x48db('0xec')](_0x4999a6)[_0x48db('0x45')]({'singleCharacters':!0x0}));if(0x0!=_0x501cf8['length'])for(const _0x548d2d of _0x37f875){const [_0xaf50de,_0xc0e381]=_0x501cf8[0x0],[,_0x30d8a1,_0x412419]=_0xaf50de[_0x48db('0x20')](':');if(_0xc0e381['end'][_0x48db('0x86')](_0x548d2d['nextPosition'])&&_0x501cf8[_0x48db('0xbd')](),(_0x548d2d[_0x48db('0xc9')][_0x48db('0x86')](_0xc0e381[_0x48db('0x120')])||_0x548d2d[_0x48db('0xc9')][_0x48db('0xc2')](_0xc0e381[_0x48db('0x120')]))&&(_0x48db('0xd')==_0x30d8a1?_0x548d2d[_0x48db('0x93')]={'userId':_0x412419}:_0x48db('0x23')==_0x30d8a1&&(_0x548d2d[_0x48db('0xe2')]={'userId':_0x412419})),0x0==_0x501cf8['length'])break;}return _0x37f875;}[_0x48db('0x96')](_0x2df0e6){const _0x174c10=new Map();for(let _0x58486c=0x0;_0x58486c<_0x2df0e6[_0x48db('0xb6')];_0x58486c++)_0x48db('0x8d')===_0x2df0e6[_0x58486c][_0x48db('0x55')]?(_0x2df0e6[_0x58486c][_0x48db('0xc8')][_0x48db('0x94')]=_0x58486c,_0x2df0e6[_0x58486c][_0x48db('0xc8')][_0x48db('0x107')]=_0x58486c):(_0x48db('0xb3')===_0x2df0e6[_0x58486c]['type']?_0x2df0e6[_0x58486c][_0x48db('0xc8')]['startIndex']=_0x58486c:_0x48db('0x30')===_0x2df0e6[_0x58486c]['type']&&(_0x2df0e6[_0x58486c][_0x48db('0xc8')][_0x48db('0x107')]=_0x58486c),_0x174c10[_0x48db('0x57')](_0x2df0e6[_0x58486c]['id'],_0x58486c));for(const _0x3cd0a5 of _0x174c10[_0x48db('0xe7')]())_0x48db('0xb3')===_0x2df0e6[_0x3cd0a5][_0x48db('0x55')]?_0x2df0e6[_0x3cd0a5][_0x48db('0xc8')][_0x48db('0x107')]=_0x174c10[_0x48db('0xde')](_0x2df0e6[_0x3cd0a5][_0x48db('0x84')]):_0x48db('0x30')===_0x2df0e6[_0x3cd0a5]['type']&&(_0x2df0e6[_0x3cd0a5]['item']['startIndex']=_0x174c10[_0x48db('0xde')](_0x2df0e6[_0x3cd0a5]['pairId']));}[_0x48db('0x1d')](_0x170957){for(let _0x56cf05=0x0;_0x56cf05<_0x170957[_0x48db('0xb6')];_0x56cf05++){if('elementStart'===_0x170957[_0x56cf05][_0x48db('0x55')])_0x170957[_0x56cf05][_0x48db('0xc8')][_0x48db('0x94')]=_0x56cf05;else{if('elementEnd'===_0x170957[_0x56cf05]['type']){_0x170957[_0x56cf05][_0x48db('0xc8')][_0x48db('0x107')]=_0x56cf05;const _0x309cc3=_0x170957[_0x56cf05][_0x48db('0xc8')][_0x48db('0x94')];_0x170957[_0x309cc3]['pairId']=_0x170957[_0x56cf05]['id'],_0x170957[_0x56cf05][_0x48db('0x84')]=_0x170957[_0x309cc3]['id'];}else _0x170957[_0x56cf05][_0x48db('0xc8')]['startIndex']=_0x56cf05,_0x170957[_0x56cf05][_0x48db('0xc8')][_0x48db('0x107')]=_0x56cf05,_0x170957[_0x56cf05]['pairId']=null;}_0x170957[_0x56cf05][_0x48db('0x69')]||(_0x170957[_0x56cf05]['markersStart']=[],_0x170957[_0x56cf05][_0x48db('0xf')]=[]);}}[_0x48db('0xfb')](_0x229e46,_0x5a9fee){const _0x277746=_0x229e46[_0x48db('0x11')](_0x3015d7=>!_0x3015d7[_0x48db('0x93')]);for(let _0xc8a981=0x0;_0xc8a981<_0x5a9fee[_0x48db('0xb6')];_0xc8a981++)_0x5a9fee[_0xc8a981][_0x48db('0x93')]&&(_0x277746[_0xc8a981][_0x48db('0x93')]=_0x5a9fee[_0xc8a981][_0x48db('0x93')]);}['_makeModelFromViewString'](_0x3885f4){const _0x1f3698=JSON['parse'](_0x3885f4),_0x14163e=this[_0x48db('0x119')][_0x48db('0x8')]['view']['document'],_0x5be8eb=new _0x69a544(_0x14163e,_0x1f3698[_0x48db('0xc4')](_0x30505a=>this[_0x48db('0xc7')](_0x30505a)));return this['editor'][_0x48db('0xda')][_0x48db('0x7d')](_0x5be8eb);}[_0x48db('0xc7')](_0x221ce2){const _0x38199d=this[_0x48db('0x119')][_0x48db('0x8')]['view'][_0x48db('0x28')];if(_0x48db('0x114')==typeof _0x221ce2)return new _0x4973e7(_0x38199d,_0x221ce2);{const _0x5e7025=_0x221ce2['children'][_0x48db('0xc4')](_0x552032=>this[_0x48db('0xc7')](_0x552032));return new(tt[_0x221ce2['type']]||_0x461813)(_0x38199d,_0x221ce2[_0x48db('0x51')],_0x221ce2[_0x48db('0xad')],_0x5e7025);}}[_0x48db('0x33')](_0x274758,_0x19f86e=null){const _0x5c8a44=this[_0x48db('0xa0')][_0x48db('0xd3')](_0x274758),_0x432c7f=_0x19f86e?this[_0x48db('0xa0')]['getRevision'](_0x19f86e):null,_0x2ff499=this['_getRevisionsRange'](_0x5c8a44,_0x432c7f),_0x165d1d=_0x2ff499[_0x2ff499[_0x48db('0xb6')]-0x1],_0x270190=new Map(),_0x261b9a={'model':{},'attributes':{},'changes':[]},_0x579079=new Set(),_0x2039e8=new Map();for(let _0x2543d9=_0x2ff499[_0x48db('0xb6')]-0x1;_0x2543d9>=0x0;_0x2543d9--){const _0x2b186b=_0x2ff499[_0x2543d9];for(const _0x326d7b of Object['keys'](_0x2b186b[_0x48db('0x5d')]))if(_0x2b186b['diffData'][_0x326d7b]['attachChange']){const _0x5d22f9=_0x2b186b[_0x48db('0x5d')][_0x326d7b][_0x48db('0x37')];_0x5d22f9[_0x48db('0x2e')]?(_0x579079[_0x48db('0xee')](_0x326d7b),_0x2039e8['has'](_0x326d7b)&&_0x2039e8['get'](_0x326d7b)[_0x48db('0x35')]==_0x5d22f9[_0x48db('0x35')]?_0x2039e8[_0x48db('0xca')](_0x326d7b):_0x2039e8[_0x48db('0x57')](_0x326d7b,_0x5d22f9)):_0x2039e8[_0x48db('0x4b')](_0x326d7b)?(_0x579079[_0x48db('0xca')](_0x326d7b),_0x2039e8['delete'](_0x326d7b)):(_0x579079['add'](_0x326d7b),_0x2039e8[_0x48db('0x57')](_0x326d7b,_0x5d22f9));}else _0x579079[_0x48db('0xee')](_0x326d7b);}for(const _0x113244 of _0x579079){const _0x4cf642=_0x2039e8[_0x48db('0x4b')](_0x113244)&&!_0x2039e8[_0x48db('0xde')](_0x113244)['isAttached'];let _0x4e6c5e=_0x4cf642?_0x2ff499[_0x48db('0xb6')]-0x1:0x0;const _0xbc862e=_0x4cf642?-0x1:0x1;for(;_0x2ff499[_0x4e6c5e];){const _0x356851=_0x2ff499[_0x4e6c5e];if(_0x356851[_0x48db('0x5d')][_0x113244]){const _0x3cf24b=_0x4cf642?_0x356851[_0x48db('0x5d')][_0x113244][_0x48db('0xd9')]:_0x356851[_0x48db('0x5d')][_0x113244][_0x48db('0x15')];_0x261b9a[_0x48db('0xad')][_0x113244]=_0x3cf24b?_0x58dbae(_0x3cf24b):{};break;}_0x4e6c5e+=_0xbc862e;}}for(const _0x35cb18 of _0x2ff499){_0x35cb18['model']={};for(const _0x42c626 of _0x35cb18['authors'])_0x270190[_0x48db('0x57')](_0x42c626['id'],_0x42c626);for(const _0x2024b0 of _0x579079){const _0x529522=_0x35cb18[_0x48db('0x5d')][_0x2024b0]?_0x35cb18[_0x48db('0x5d')][_0x2024b0]['insertions']:'[]',_0x9fb50e=_0x35cb18[_0x48db('0x5d')][_0x2024b0]?_0x35cb18[_0x48db('0x5d')][_0x2024b0][_0x48db('0xc3')]:'[]';_0x35cb18[_0x48db('0x62')][_0x2024b0]={'insertions':this[_0x48db('0x1')](_0x529522),'deletions':this['_makeModelFromViewString'](_0x9fb50e)};}}for(const _0x133f8d of _0x579079){let _0x3acf25=null,_0x22ba35=0x0;const _0x3cad3f=new Map(Array[_0x48db('0x6b')](_0x5c8a44[_0x48db('0x62')][_0x133f8d][_0x48db('0xcf')][_0x48db('0x8b')])[_0x48db('0x11')](([_0x5c96ac])=>!_0x5c96ac['startsWith'](_0x48db('0x6'))));let _0x522a36=0x0;for(const _0x56b58a of _0x2ff499){const _0x7cc9c7=this['_makeTape'](_0x56b58a[_0x48db('0x62')][_0x133f8d][_0x48db('0xcf')]);_0x56b58a==_0x5c8a44?(_0x3acf25=_0x7cc9c7,_0x22ba35=_0x3acf25[_0x48db('0xb6')],_0x3acf25[_0x48db('0x61')](_0x2a0c56=>{_0x2a0c56['id']=_0x522a36++;}),this[_0x48db('0x1d')](_0x3acf25)):this['_markInsertions'](_0x3acf25,_0x7cc9c7);const _0x58a67e=_0x3acf25[_0x48db('0x11')](_0x3c1f26=>!_0x3c1f26[_0x48db('0x93')])[_0x48db('0xc4')](_0x76d314=>_0x76d314['id']);let _0x292cc0=0x0;const _0x1787f8=this[_0x48db('0x2c')](_0x56b58a[_0x48db('0x62')][_0x133f8d][_0x48db('0xc3')]);_0x1787f8[_0x48db('0x61')](_0x248945=>{_0x248945['isRemoved']?_0x248945['id']=_0x22ba35++:_0x248945['id']=_0x58a67e[_0x292cc0++];}),this['_processTape'](_0x1787f8),this['_setDistance'](_0x3acf25,'isAdded'),this[_0x48db('0x4a')](_0x1787f8,_0x48db('0xe2')),_0x56b58a==_0x5c8a44&&this[_0x48db('0xa')](_0x3acf25,_0x3cad3f),_0x3acf25=this[_0x48db('0x83')](_0x3acf25,_0x1787f8),this[_0x48db('0x96')](_0x3acf25),this[_0x48db('0x4a')](_0x3acf25,_0x48db('0xe2'));}_0x3acf25=_0x3acf25[_0x48db('0x11')](_0x216f40=>!(_0x216f40[_0x48db('0x93')]&&_0x216f40[_0x48db('0xe2')]));const _0x8c54c1=new Map(_0x165d1d[_0x48db('0x62')][_0x133f8d][_0x48db('0xc3')][_0x48db('0x8b')]),_0x5cc99a=new Set(_0x3cad3f[_0x48db('0x6f')]());for(const _0x16d3b6 of _0x8c54c1[_0x48db('0x6f')]())_0x5cc99a[_0x48db('0xca')](_0x16d3b6);this[_0x48db('0x91')](_0x3acf25,_0x5cc99a),this['_fixObsoleteTags'](_0x3acf25),_0x3acf25=this[_0x48db('0xe9')](_0x3acf25),_0x3acf25=this[_0x48db('0x9e')](_0x3acf25),_0x3acf25=this['_removeUnsupportedChanges'](_0x3acf25);const {root:_0x5f1ca7,changes:_0x2d5c3c}=this[_0x48db('0x46')](_0x3acf25,_0x270190,_0x133f8d);_0x261b9a[_0x48db('0x62')][_0x133f8d]=_0x5f1ca7;const _0x286ffa=_0x2039e8[_0x48db('0xde')](_0x133f8d);if(_0x286ffa){const _0x46cd6b=_0x270190[_0x48db('0xde')](_0x286ffa[_0x48db('0x35')]),_0x411f3e=new _0x265e6d({'author':_0x46cd6b,'type':_0x286ffa[_0x48db('0x2e')]?_0x48db('0xee'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x133f8d});_0x2d5c3c['unshift'](_0x411f3e),_0x261b9a[_0x48db('0xad')][_0x133f8d][_0x48db('0xce')]=_0x411f3e['id'];}_0x261b9a[_0x48db('0xe5')]=_0x261b9a[_0x48db('0xe5')][_0x48db('0x3c')](_0x2d5c3c);}return _0x261b9a;}[_0x48db('0xa')](_0x40495c,_0x4ad722){for(let _0x5307cf=0x0;_0x5307cf<_0x40495c[_0x48db('0xb6')];_0x5307cf++)for(const [_0x5b1e8e,_0x2d8cee]of _0x4ad722)_0x2d8cee[_0x48db('0x120')][_0x48db('0x86')](_0x40495c[_0x5307cf][_0x48db('0xc9')])&&_0x40495c[_0x5307cf][_0x48db('0x69')][_0x48db('0xdf')](_0x5b1e8e),_0x2d8cee[_0x48db('0x5')][_0x48db('0x86')](_0x40495c[_0x5307cf][_0x48db('0x81')])&&_0x40495c[_0x5307cf][_0x48db('0xf')][_0x48db('0xdf')](_0x5b1e8e);}[_0x48db('0x83')](_0x5650dc,_0x31385a){let _0x1c173c=[],_0xcded59=0x0,_0x1a09a8=0x0;for(;_0xcded59<_0x5650dc[_0x48db('0xb6')]||_0x1a09a8<_0x31385a['length'];){const _0x5c0346=_0x5650dc[_0xcded59]||{},_0x337098=_0x31385a[_0x1a09a8]||{};if(_0x5c0346['id']==_0x337098['id'])_0xcded59++,_0x1a09a8++,_0x1c173c[_0x48db('0xdf')](_0x5c0346);else{if(_0x337098['isRemoved']&&_0x5c0346[_0x48db('0x93')]){const {commonTape:_0x55ba36,iEnd:_0x9156d9,jEnd:_0x21a1c3}=this[_0x48db('0xf6')](_0x5650dc,_0xcded59,_0x31385a,_0x1a09a8);_0x1c173c=_0x1c173c[_0x48db('0x3c')](_0x55ba36),_0xcded59=_0x9156d9,_0x1a09a8=_0x21a1c3;}else _0x337098[_0x48db('0xe2')]?(_0x1a09a8++,_0x1c173c[_0x48db('0xdf')](_0x337098)):(_0xcded59++,_0x1c173c[_0x48db('0xdf')](_0x5c0346));}}return _0x1c173c;}[_0x48db('0x91')](_0x8c77fc,_0x345650){const _0x53e444=[];for(let _0x5ac852=0x0;_0x5ac852<_0x8c77fc[_0x48db('0xb6')];_0x5ac852++){for(let _0x436738=0x0;_0x436738<_0x8c77fc[_0x5ac852][_0x48db('0x69')][_0x48db('0xb6')];_0x436738++){const _0x6347da=_0x8c77fc[_0x5ac852][_0x48db('0x69')][_0x436738];if(!_0x345650['has'](_0x6347da))continue;const {group:_0x15ace0,type:_0x4ee840,authorId:_0x372b25}=_0xfd0106(_0x6347da);_0x48db('0x90')!=_0x15ace0||'insertion'!=_0x4ee840&&_0x48db('0x23')!=_0x4ee840||(_0x53e444[_0x48db('0x100')]({'type':_0x4ee840,'name':_0x6347da,'userId':_0x372b25}),_0x8c77fc[_0x5ac852][_0x48db('0x69')]['splice'](_0x436738,0x1),_0x436738--);}_0x3292cb(_0x8c77fc[_0x5ac852]);for(let _0x1cb7fc=0x0;_0x1cb7fc<_0x8c77fc[_0x5ac852][_0x48db('0xf')]['length'];_0x1cb7fc++){const _0x8fd7a5=_0x8c77fc[_0x5ac852]['markersEnd'][_0x1cb7fc];if(!_0x345650[_0x48db('0x4b')](_0x8fd7a5))continue;const {group:_0xac010a,type:_0x16d889}=_0xfd0106(_0x8fd7a5);if(_0x48db('0x90')!=_0xac010a||_0x48db('0xd')!=_0x16d889&&_0x48db('0x23')!=_0x16d889)continue;_0x8c77fc[_0x5ac852][_0x48db('0xf')]['splice'](_0x1cb7fc,0x1),_0x1cb7fc--;const _0x31a0b0=_0x53e444['findIndex'](_0x3ac8e6=>_0x3ac8e6[_0x48db('0x51')]==_0x8fd7a5);_0x31a0b0>-0x1&&_0x53e444['splice'](_0x31a0b0,0x1);}}function _0xfd0106(_0x333a04){const _0x292285=_0x333a04[_0x48db('0x20')](':');return{'group':_0x292285[0x0],'type':_0x292285[0x1],'subType':_0x292285['length']>=0x5?_0x292285[0x2]:null,'id':_0x292285[_0x48db('0xb6')]<0x5?_0x292285[0x2]:_0x292285[0x3],'authorId':_0x292285[_0x48db('0xb6')]<0x5?_0x292285[0x3]:_0x292285[0x4],'markerCount':0x6==_0x292285[_0x48db('0xb6')]?_0x292285[0x5]:null};}function _0x3292cb(_0x17e06b){for(let _0x4df7aa=0x0;_0x4df7aa<_0x53e444[_0x48db('0xb6')];_0x4df7aa++){if(_0x17e06b[_0x48db('0x93')]&&'insertion'==_0x53e444[_0x4df7aa][_0x48db('0x55')])return _0x17e06b[_0x48db('0x14')]=_0x53e444[_0x4df7aa],void delete _0x17e06b[_0x48db('0x93')];if(!_0x17e06b[_0x48db('0x93')]&&!_0x17e06b[_0x48db('0xe2')]&&_0x48db('0x23')==_0x53e444[_0x4df7aa][_0x48db('0x55')])return void(_0x17e06b[_0x48db('0x73')]=_0x53e444[_0x4df7aa]);}}}[_0x48db('0x4a')](_0x1579f1,_0x2ca497){let _0x10ee07=0x0,_0x30ecdd=!0x1;const _0x16c017=new Map();for(const _0x19e83b of _0x1579f1)_0x19e83b[_0x2ca497]?_0x30ecdd&&(_0x10ee07++,_0x30ecdd=!0x1):(_0x10ee07++,_0x30ecdd=!0x0),_0x16c017['set'](_0x19e83b['id'],_0x10ee07);for(let _0x3fecab=0x0;_0x3fecab<_0x1579f1[_0x48db('0xb6')];_0x3fecab++){if(_0x48db('0xe2')==_0x2ca497&&_0x1579f1[_0x3fecab][_0x48db('0x93')]||_0x48db('0x93')==_0x2ca497&&_0x1579f1[_0x3fecab]['isRemoved'])continue;if('text'==_0x1579f1[_0x3fecab]['type']){_0x1579f1[_0x3fecab][_0x48db('0xba')]=0x0;continue;}const _0x4fc8df=_0x16c017[_0x48db('0xde')](_0x1579f1[_0x3fecab]['pairId']),_0x2bfe1d=_0x16c017[_0x48db('0xde')](_0x1579f1[_0x3fecab]['id']);_0x1579f1[_0x3fecab][_0x48db('0xba')]=_0x4fc8df-_0x2bfe1d;}}[_0x48db('0xed')](_0x17923c,_0x21d7db,_0x487e31=!0x1){const _0xd5dfe3=[];let _0x57b9d0=this[_0x48db('0xa0')][_0x48db('0x29')](_0x17923c),_0x47c96b=this[_0x48db('0xa0')][_0x48db('0x29')](_0x21d7db);for(-0x1==_0x47c96b&&(_0x47c96b=this[_0x48db('0xa0')]['_revisions'][_0x48db('0xb6')],_0x487e31=!0x1);_0x57b9d0<_0x47c96b;)_0xd5dfe3['push'](this[_0x48db('0xa0')][_0x48db('0xd3')](_0x57b9d0)),_0x57b9d0++;return _0x487e31&&_0xd5dfe3['push'](this[_0x48db('0xa0')][_0x48db('0xd3')](_0x57b9d0)),_0xd5dfe3;}[_0x48db('0xf6')](_0x4a409f,_0x5c79c8,_0xec0345,_0x563e2a){const _0x130219=this['editor'][_0x48db('0x62')][_0x48db('0xf2')];let _0x4b5cdd=_0x5c79c8;for(;_0x4a409f[_0x4b5cdd]&&_0x4a409f[_0x4b5cdd]['isAdded'];)_0x4b5cdd++;let _0x21b211=_0x563e2a;for(;_0xec0345[_0x21b211]&&_0xec0345[_0x21b211][_0x48db('0xe2')];)_0x21b211++;_0x3e1392(_0x4a409f,_0x5c79c8,_0x4b5cdd),_0x3e1392(_0xec0345,_0x563e2a,_0x21b211);const _0x5dcfa4=_0xec0345[_0x48db('0x3b')](_0x563e2a,_0x21b211)[_0x48db('0x3c')](_0x4a409f[_0x48db('0x3b')](_0x5c79c8,_0x4b5cdd));return _0x5dcfa4['sort']((_0x45bbe7,_0x4fcbeb)=>_0x45bbe7[_0x48db('0xfd')]!=_0x4fcbeb['side']?_0x45bbe7[_0x48db('0xfd')]-_0x4fcbeb[_0x48db('0xfd')]:_0x45bbe7[_0x48db('0x7c')]!=_0x4fcbeb[_0x48db('0x7c')]?_0x45bbe7['level']-_0x4fcbeb[_0x48db('0x7c')]:_0x45bbe7[_0x48db('0xba')]!=_0x4fcbeb[_0x48db('0xba')]?_0x4fcbeb[_0x48db('0xba')]-_0x45bbe7[_0x48db('0xba')]:!!_0x45bbe7['isAdded']!=!!_0x4fcbeb['isAdded']?-0x1==_0x45bbe7['side']||0x0==_0x45bbe7[_0x48db('0xfd')]?_0x45bbe7[_0x48db('0x93')]?-0x1:0x1:_0x45bbe7[_0x48db('0x93')]?0x1:-0x1:_0x45bbe7[_0x48db('0x24')]-_0x4fcbeb[_0x48db('0x24')]),{'commonTape':_0x5dcfa4,'iEnd':_0x4b5cdd,'jEnd':_0x21b211};function _0x3e1392(_0x35ba35,_0xb9d0f,_0x36ce61){let _0xcf42b2=-0x1,_0x37db82=Number[_0x48db('0xb8')],_0x47973e=!0x0;for(let _0x2e2ac3=_0xb9d0f;_0x2e2ac3<_0x36ce61;_0x2e2ac3++)if(_0x130219[_0x48db('0xbc')](_0x35ba35[_0x2e2ac3][_0x48db('0xc8')])||(_0x47973e=!0x1),_0x35ba35[_0x2e2ac3][_0x48db('0xc8')][_0x48db('0x94')]<_0xb9d0f&&(_0xcf42b2=_0x2e2ac3),_0x35ba35[_0x2e2ac3][_0x48db('0xc8')][_0x48db('0x107')]>=_0x36ce61){_0x37db82=_0x2e2ac3;break;}_0x47973e&&(_0xcf42b2=_0x36ce61-0x1);for(let _0x2a7d2=_0xb9d0f;_0x2a7d2<_0x36ce61;_0x2a7d2++)_0x35ba35[_0x2a7d2][_0x48db('0xfd')]=_0x2a7d2<=_0xcf42b2?-0x1:_0x2a7d2<_0x37db82?0x0:0x1,_0x35ba35[_0x2a7d2][_0x48db('0x24')]=_0x2a7d2;let _0x466c6f=0x0;for(let _0x4e8e8e=_0xb9d0f;_0x4e8e8e<=_0xcf42b2;_0x4e8e8e++)0x0==_0x35ba35[_0x4e8e8e][_0x48db('0xba')]?_0x35ba35[_0x4e8e8e]['level']=_0x466c6f:(_0x466c6f++,_0x35ba35[_0x4e8e8e][_0x48db('0x7c')]=_0x466c6f,_0x466c6f++);for(let _0x33f822=_0xb9d0f;_0x33f822<_0x36ce61;_0x33f822++)0x0==_0x35ba35[_0x33f822][_0x48db('0xfd')]&&(_0x35ba35[_0x33f822][_0x48db('0x7c')]=_0x466c6f);_0x466c6f=0x0;for(let _0x2a70a1=_0x36ce61-0x1;_0x2a70a1>=_0x37db82;_0x2a70a1--)0x0==_0x35ba35[_0x2a70a1][_0x48db('0xba')]?_0x35ba35[_0x2a70a1][_0x48db('0x7c')]=_0x466c6f:(_0x466c6f--,_0x35ba35[_0x2a70a1]['level']=_0x466c6f,_0x466c6f--);}}[_0x48db('0x7')](_0x13dffd){const _0x2d9296=new Map(),_0x3ec712=this[_0x48db('0x119')][_0x48db('0x62')]['schema'];for(let _0x52199a=0x1;_0x52199a<_0x13dffd[_0x48db('0xb6')];_0x52199a++){let _0x42dfeb,_0x5039fb,_0x290c74;const _0xdb50b7=_0x13dffd[_0x52199a],_0x53b2a5=_0x13dffd[_0x52199a-0x1];if(_0x48db('0x8d')==_0xdb50b7[_0x48db('0x55')])continue;if(_0xdb50b7[_0x48db('0x55')]!=_0x53b2a5[_0x48db('0x55')])continue;if(!_0x3ec712[_0x48db('0x13')](_0x53b2a5[_0x48db('0xc8')])||_0x3ec712['isLimit'](_0x53b2a5[_0x48db('0xc8')]))continue;if(!_0x3ec712[_0x48db('0x13')](_0xdb50b7[_0x48db('0xc8')])||_0x3ec712[_0x48db('0x115')](_0xdb50b7['item']))continue;if((_0x13dffd[_0x52199a][_0x48db('0x93')]||_0x13dffd[_0x52199a][_0x48db('0x14')])&&_0x13dffd[_0x52199a-0x1][_0x48db('0xe2')])_0x42dfeb=_0x13dffd[_0x52199a],_0x5039fb=_0x13dffd[_0x52199a-0x1],_0x290c74=_0x52199a-0x1;else{if(!_0x13dffd[_0x52199a][_0x48db('0xe2')]||!_0x13dffd[_0x52199a-0x1][_0x48db('0x93')]&&!_0x13dffd[_0x52199a-0x1]['isAddSuggestion'])continue;_0x42dfeb=_0x13dffd[_0x52199a-0x1],_0x5039fb=_0x13dffd[_0x52199a],_0x290c74=_0x52199a;}const _0x507316=_0x42dfeb[_0x48db('0x7c')]==_0x5039fb['level'],_0x3ebc80=Math[_0x48db('0x10f')](_0x42dfeb['level'])<Math[_0x48db('0x10f')](_0x5039fb['level'])&&0x0==_0x5039fb[_0x48db('0xba')];(_0x507316||_0x3ebc80)&&(_0x2d9296[_0x48db('0x57')](_0x5039fb['id'],_0x42dfeb['id']),_0x13dffd['splice'](_0x290c74,0x1),_0x52199a--,_0x42dfeb[_0x48db('0x93')]=!0x1);}for(let _0x829d9f=0x0;_0x829d9f<_0x13dffd[_0x48db('0xb6')];_0x829d9f++)_0x2d9296['has'](_0x13dffd[_0x829d9f][_0x48db('0x84')])&&(_0x13dffd[_0x829d9f][_0x48db('0x84')]=_0x2d9296[_0x48db('0xde')](_0x13dffd[_0x829d9f][_0x48db('0x84')]));}[_0x48db('0xe9')](_0x436a4e){const _0x1a7062=new Set(_0x436a4e['map'](_0x402090=>_0x402090['id']));for(let _0x3124c6=0x0;_0x3124c6<_0x436a4e[_0x48db('0xb6')];_0x3124c6++)_0x1a7062['has'](_0x436a4e[_0x3124c6][_0x48db('0x84')])||0x0==_0x436a4e[_0x3124c6]['distance']||(_0x436a4e[_0x3124c6][_0x48db('0x59')]=!0x0);return _0x436a4e[_0x48db('0x11')](_0xb0245a=>!_0xb0245a[_0x48db('0x59')]);}[_0x48db('0x9e')](_0x36f8f3){const _0x5e5da7=new Set();for(let _0x1c5566=0x0;_0x1c5566<_0x36f8f3['length'];_0x1c5566++){if(_0x5e5da7[_0x48db('0x4b')](_0x36f8f3[_0x1c5566]['id'])&&_0x36f8f3[_0x1c5566][_0x48db('0xe2')]&&(_0x36f8f3[_0x1c5566][_0x48db('0x59')]=!0x0),_0x36f8f3[_0x1c5566][_0x48db('0x59')])continue;if(0x0==_0x36f8f3[_0x1c5566][_0x48db('0xba')])continue;if('elementStart'!=_0x36f8f3[_0x1c5566][_0x48db('0x55')])continue;if(null==_0x36f8f3[_0x1c5566]['pairId'])continue;let _0x5c1aa6=_0x1c5566+0x1,_0x42bedb=0x0;for(;_0x36f8f3[_0x5c1aa6]['id']!=_0x36f8f3[_0x1c5566][_0x48db('0x84')];)_0x48db('0xb3')==_0x36f8f3[_0x5c1aa6]['type']?_0x42bedb++:_0x48db('0x30')==_0x36f8f3[_0x5c1aa6][_0x48db('0x55')]&&_0x42bedb--,_0x5c1aa6++;if(0x0!=_0x42bedb){if(_0x36f8f3[_0x1c5566][_0x48db('0xe2')])_0x36f8f3[_0x1c5566]['isIncorrect']=!0x0;else for(;_0x5c1aa6!=_0x1c5566;)_0x36f8f3[_0x5c1aa6][_0x48db('0xe2')]&&0x0!=_0x36f8f3[_0x5c1aa6][_0x48db('0xba')]&&(_0x36f8f3[_0x5c1aa6][_0x48db('0x59')]=!0x0,_0x5e5da7[_0x48db('0xee')](_0x36f8f3[_0x5c1aa6][_0x48db('0x84')])),_0x5c1aa6--;}}return _0x36f8f3['filter'](_0x130773=>!_0x130773[_0x48db('0x59')]);}[_0x48db('0x3f')](_0x21eec7){const _0x4a0994=this['editor'][_0x48db('0x62')][_0x48db('0xf2')];for(let _0x5abafc=0x0;_0x5abafc<_0x21eec7['length'];_0x5abafc++){if(!(_0x21eec7[_0x5abafc][_0x48db('0x93')]||_0x21eec7[_0x5abafc][_0x48db('0x14')]||_0x21eec7[_0x5abafc][_0x48db('0xe2')]||_0x21eec7[_0x5abafc][_0x48db('0x73')]))continue;if(0x0==_0x21eec7[_0x5abafc][_0x48db('0xba')])continue;const _0x45cced=_0x21eec7[_0x5abafc]['item'];_0x4a0994[_0x48db('0x13')](_0x45cced)||_0x4a0994[_0x48db('0x115')](_0x45cced)||(_0x21eec7[_0x5abafc][_0x48db('0x93')]&&delete _0x21eec7[_0x5abafc]['isAdded'],_0x21eec7[_0x5abafc][_0x48db('0x14')]&&delete _0x21eec7[_0x5abafc][_0x48db('0x14')],_0x21eec7[_0x5abafc][_0x48db('0x73')]&&delete _0x21eec7[_0x5abafc][_0x48db('0x73')],_0x21eec7[_0x5abafc][_0x48db('0xe2')]&&(_0x21eec7[_0x5abafc]['isIncorrect']=!0x0));}return _0x21eec7[_0x48db('0x11')](_0x6d02e4=>!_0x6d02e4['isIncorrect']);}[_0x48db('0x46')](_0x4bff99,_0xf1a30c,_0x906c72){const _0x7f03be=new _0x489477(),_0x28aad6=[],_0xf66174=new Map(),_0x1f367f=this[_0x48db('0x119')][_0x48db('0x62')],_0x285a6f=_0x1f367f['schema'],_0x4b67dc=[_0x7f03be],_0xeb69a8={},_0x106376={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1d0b12=null;const _0x5b0b07=[0x0];for(let _0x3938eb=0x0;_0x3938eb<_0x4bff99[_0x48db('0xb6')];_0x3938eb++){let _0x34fd33,_0x1810c0;if('elementStart'===_0x4bff99[_0x3938eb][_0x48db('0x55')]){_0x34fd33=_0x1f367f['createPositionFromPath'](_0x7f03be,_0x5b0b07);const _0x480635=new _0x3294a3(_0x4bff99[_0x3938eb][_0x48db('0xc8')][_0x48db('0x51')],_0x4bff99[_0x3938eb][_0x48db('0xc8')][_0x48db('0x8c')]());_0x4b67dc[0x0][_0x48db('0x9b')](_0x480635),_0x5b0b07[_0x48db('0xdf')](0x0),_0x4b67dc[_0x48db('0x100')](_0x480635),_0x1810c0=_0x1f367f['createPositionFromPath'](_0x7f03be,_0x5b0b07),_0x1d0b12=null;}else{if(_0x48db('0x30')===_0x4bff99[_0x3938eb][_0x48db('0x55')])_0x4b67dc['shift'](),_0x34fd33=_0x1f367f[_0x48db('0x111')](_0x7f03be,_0x5b0b07),_0x5b0b07[_0x48db('0x43')](),_0x5b0b07[_0x5b0b07['length']-0x1]++,_0x1810c0=_0x1f367f['createPositionFromPath'](_0x7f03be,_0x5b0b07),_0x1d0b12=null;else{if(_0x34fd33=_0x1f367f[_0x48db('0x111')](_0x7f03be,_0x5b0b07),_0x1d0b12&&_0x1acc4a(_0x1d0b12,_0x4bff99[_0x3938eb][_0x48db('0xc8')]))_0x1d0b12[_0x48db('0x3a')]+=_0x4bff99[_0x3938eb][_0x48db('0xc8')]['data'];else{const _0x287246=new _0xb4ccc7(_0x4bff99[_0x3938eb][_0x48db('0xc8')][_0x48db('0xda')],_0x4bff99[_0x3938eb][_0x48db('0xc8')]['getAttributes']());_0x4b67dc[0x0][_0x48db('0x9b')](_0x287246),_0x1d0b12=_0x287246;}_0x5b0b07[_0x5b0b07[_0x48db('0xb6')]-0x1]+=_0x4bff99[_0x3938eb][_0x48db('0xc8')][_0x48db('0xcc')],_0x1810c0=_0x1f367f[_0x48db('0x111')](_0x7f03be,_0x5b0b07);}}for(const _0x5550bc of _0x4bff99[_0x3938eb][_0x48db('0x69')])_0xf66174[_0x48db('0x57')](_0x5550bc,{'start':_0x34fd33,'end':null});_0x2757b2('isRemoveSuggestion',_0x3938eb,_0x34fd33,_0x1810c0),_0x2757b2(_0x48db('0x14'),_0x3938eb,_0x34fd33,_0x1810c0),_0x2757b2(_0x48db('0xe2'),_0x3938eb,_0x34fd33,_0x1810c0),_0x2757b2('isAdded',_0x3938eb,_0x34fd33,_0x1810c0);for(const _0x158342 of _0x4bff99[_0x3938eb][_0x48db('0xf')]){_0xf66174[_0x48db('0xde')](_0x158342)[_0x48db('0x5')]=_0x1810c0;}}for(const [_0x4a5042,_0x142a7]of _0xf66174){const _0x3cb1ba=this[_0x48db('0x119')][_0x48db('0x62')][_0x48db('0x54')](_0x142a7['start'],_0x142a7['end']);_0x7f03be[_0x48db('0x8b')][_0x48db('0x57')](_0x4a5042,_0x3cb1ba);}return _0x28aad6['sort']((_0x5b823e,_0x7f6eac)=>{const _0x48c7ba=_0x7f03be[_0x48db('0x8b')][_0x48db('0xde')](_0x48db('0x6')+_0x5b823e['id']),_0xd1ca89=_0x7f03be[_0x48db('0x8b')][_0x48db('0xde')](_0x48db('0x6')+_0x7f6eac['id']);return _0x48c7ba[_0x48db('0x120')][_0x48db('0x3')](_0xd1ca89[_0x48db('0x120')])?-0x1:_0x48c7ba['start'][_0x48db('0xc2')](_0xd1ca89[_0x48db('0x120')])?0x1:_0x48c7ba[_0x48db('0x5')]['isBefore'](_0xd1ca89[_0x48db('0x5')])?-0x1:_0x48c7ba[_0x48db('0x5')][_0x48db('0xc2')](_0xd1ca89[_0x48db('0x5')])?0x1:_0x48db('0xee')===_0x5b823e[_0x48db('0x55')]?-0x1:0x1;}),{'root':_0x7f03be,'changes':_0x28aad6};function _0x2757b2(_0x1efd10,_0x425b9f,_0x143ed5,_0x52608a){const _0xcf6bf2=!!_0x4bff99[_0x425b9f][_0x1efd10],_0x16e8a2=_0xcf6bf2?_0x4bff99[_0x425b9f][_0x1efd10][_0x48db('0x35')]:null,_0x58a170=_0x425b9f===_0x4bff99[_0x48db('0xb6')]-0x1,_0x1323b3=_0x106376[_0x1efd10][0x0],_0x36a4f7=_0x285a6f['isObject'](_0x4bff99[_0x425b9f][_0x48db('0xc8')]);!_0xeb69a8[_0x1efd10]&&_0xcf6bf2?_0xeb69a8[_0x1efd10]={'start':_0x143ed5,'tapeItem':_0x4bff99[_0x425b9f],'userId':_0x16e8a2,'type':_0x1efd10}:_0xeb69a8[_0x1efd10]&&!_0xcf6bf2?(_0xeb69a8[_0x1efd10]['end']=_0x143ed5,_0x4bcab8(_0xeb69a8[_0x1efd10]),_0xeb69a8[_0x1efd10]=null):_0xeb69a8[_0x1efd10]&&_0xcf6bf2&&_0xeb69a8[_0x1efd10][_0x48db('0x35')]!==_0x16e8a2&&(_0xeb69a8[_0x1efd10][_0x48db('0x5')]=_0x143ed5,_0x1323b3&&_0x1323b3[_0x48db('0x35')]===_0xeb69a8[_0x1efd10]['userId']||_0x4bcab8(_0xeb69a8[_0x1efd10]),_0xeb69a8[_0x1efd10]={'start':_0x143ed5,'tapeItem':_0x4bff99[_0x425b9f],'userId':_0x16e8a2,'type':_0x1efd10}),_0xeb69a8[_0x1efd10]&&_0x36a4f7&&('elementStart'!==_0x4bff99[_0x425b9f][_0x48db('0x55')]||_0x1323b3&&_0x1323b3[_0x48db('0x35')]===_0x16e8a2||_0x106376[_0x1efd10][_0x48db('0x100')]({'userId':_0x16e8a2,'object':_0x4bff99[_0x425b9f][_0x48db('0xc8')],'change':_0xeb69a8[_0x1efd10]}),'elementEnd'===_0x4bff99[_0x425b9f][_0x48db('0x55')]&&_0x1323b3&&_0x1323b3[_0x48db('0x8a')]===_0x4bff99[_0x425b9f][_0x48db('0xc8')]&&(_0x106376[_0x1efd10][_0x48db('0xbd')](),_0xeb69a8[_0x1efd10]=_0x1323b3[_0x48db('0x12')])),_0xeb69a8[_0x1efd10]&&_0x58a170&&(_0xeb69a8[_0x1efd10]['end']=_0x52608a,_0x4bcab8(_0xeb69a8[_0x1efd10]),_0xeb69a8[_0x1efd10]=null);}function _0x4bcab8({start:_0x55a0f6,end:_0x2a1542,tapeItem:_0x2025d7,userId:_0x5c08ef,type:_0x2e7ff8}){const _0xd6905f=_0x2025d7[_0x48db('0xc8')],_0x3b4e81=_0x1f367f[_0x48db('0xf2')]['isBlock'](_0xd6905f)&&!_0x1f367f[_0x48db('0xf2')][_0x48db('0x115')](_0xd6905f),_0x4918b6=_0x55a0f6[_0x48db('0x0')]==_0x2a1542[_0x48db('0x11e')]&&_0x2a1542['isAtStart'];if(_0x3b4e81&&_0x4918b6)return;const _0x329ace=_0x1f367f[_0x48db('0x54')](_0x55a0f6,_0x2a1542),_0x1555b7=_0xf1a30c['get'](_0x5c08ef),_0x17de43=new _0x265e6d({'author':_0x1555b7,'type':'isAdded'==_0x2e7ff8||_0x48db('0x14')==_0x2e7ff8?_0x48db('0xee'):_0x48db('0xbb'),'data':{'isSuggestion':_0x48db('0x14')==_0x2e7ff8||'isRemoveSuggestion'==_0x2e7ff8},'createdAt':new Date(),'rootName':_0x906c72});_0x28aad6[_0x48db('0xdf')](_0x17de43),_0x7f03be[_0x48db('0x8b')][_0x48db('0x57')](_0x48db('0x6')+_0x17de43['id'],_0x329ace);}function _0x1acc4a(_0x428da9,_0x4db5a0){const _0x32f133=_0x428da9[_0x48db('0x8c')](),_0x55b6f3=_0x4db5a0[_0x48db('0x8c')]();for(const _0x4a0922 of _0x32f133){if(_0x4a0922[0x1]!==_0x4db5a0[_0x48db('0xfa')](_0x4a0922[0x0]))return!0x1;_0x55b6f3[_0x48db('0xdd')]();}return _0x55b6f3['next']()[_0x48db('0xbe')];}}[_0x48db('0xd1')](){this[_0x48db('0x119')][_0x48db('0x8f')]['for'](_0x48db('0xe3'))[_0x48db('0x1e')]({'view':_0x48db('0x7e')}),this[_0x48db('0x119')][_0x48db('0x8f')][_0x48db('0x6d')](_0x48db('0xea'))[_0x48db('0x118')]({'model':_0x48db('0x7e'),'view':_0x3b05cb=>{const _0x374482=_0x3b05cb[_0x48db('0xa7')][_0x48db('0x20')](':')[0x1],_0x428d9c=this[_0x48db('0x70')](_0x374482);if(!_0x428d9c)return null;const _0x32245e=_0x48db('0xee')==_0x428d9c[_0x48db('0x55')]?'insertion':_0x48db('0x23'),_0x1ecc8a=[_0x48db('0xac'),_0x48db('0xcb')+_0x32245e];return _0x428d9c[_0x48db('0xda')][_0x48db('0x21')]&&_0x1ecc8a[_0x48db('0xdf')](_0x48db('0xcb')+_0x32245e+_0x48db('0x1c')),this[_0x48db('0x101')]==_0x428d9c&&_0x1ecc8a[_0x48db('0xdf')](_0x48db('0xdc')),{'classes':_0x1ecc8a,'attributes':{'data-change-id':_0x374482}};}}),this[_0x48db('0x119')][_0x48db('0x8f')][_0x48db('0x6d')](_0x48db('0xe3'))[_0x48db('0xee')](_0x39980b=>{_0x39980b['on'](_0x48db('0xe1'),(_0x54fd00,_0x48a126,_0x5b2583)=>{const _0xf33267=_0x48a126[_0x48db('0x63')][_0x48db('0x8e')](0x0);if(!_0xf33267||!_0xf33267['is'](_0x48db('0x82'),_0x48db('0x2b')))return;if(!_0x5b2583['consumable']['consume'](_0xf33267,{'attributes':[_0x48db('0x26'),_0x48db('0x19')]}))return;const _0x2a31ee=_0x48a126['modelRange'][_0x48db('0x120')]['nodeAfter'];_0x5b2583['writer']['setAttribute'](_0x48db('0x26'),_0xf33267[_0x48db('0xfa')](_0x48db('0x26')),_0x2a31ee),_0x5b2583['writer']['setAttribute'](_0x48db('0x19'),_0xf33267['getAttribute'](_0x48db('0x19')),_0x2a31ee);},{'priority':'low'});}),this['editor'][_0x48db('0x8f')][_0x48db('0x6d')](_0x48db('0xe3'))[_0x48db('0xee')](_0x16bae2=>{_0x16bae2['on'](_0x48db('0x82'),(_0x4b63e2,_0x2d0c63,_0x13cd5a)=>{if(!_0x13cd5a[_0x48db('0xd6')]['consume'](_0x2d0c63[_0x48db('0x63')],{'attributes':[_0x48db('0x26'),_0x48db('0x19')]}))return;if(_0x2d0c63[_0x48db('0xa2')]['isCollapsed'])return;const _0x19f2b5=_0x2d0c63[_0x48db('0xa2')]['start'][_0x48db('0x0')];_0x19f2b5['hasAttribute'](_0x48db('0x26'))||_0x19f2b5[_0x48db('0x104')](_0x48db('0xef'))||(_0x13cd5a[_0x48db('0x103')][_0x48db('0x76')](_0x48db('0x26'),_0x2d0c63[_0x48db('0x63')][_0x48db('0xfa')](_0x48db('0x26')),_0x19f2b5),_0x13cd5a['writer']['setAttribute']('vid_end',_0x2d0c63[_0x48db('0x63')][_0x48db('0xfa')](_0x48db('0x19')),_0x19f2b5));},{'priority':_0x48db('0xb2')});}),this['editor'][_0x48db('0x8f')]['for'](_0x48db('0xe3'))[_0x48db('0x1a')]({'view':{'name':_0x48db('0x88'),'attributes':{'vid':!0x0}},'model':{'key':_0x48db('0xef'),'value':_0x36b216=>_0x36b216[_0x48db('0xfa')](_0x48db('0xef'))}}),this['editor'][_0x48db('0x62')][_0x48db('0xf2')]['on'](_0x48db('0x4'),(_0x5662db,[,_0x466959])=>{[_0x48db('0x26'),'vid_end',_0x48db('0xef')][_0x48db('0xe')](_0x466959)&&(_0x5662db['return']=!0x0,_0x5662db[_0x48db('0x106')]());},{'priority':_0x48db('0xb9')}),this['editor']['conversion'][_0x48db('0x6d')](_0x48db('0xe4'))[_0x48db('0xee')](_0x1b6a83=>{_0x1b6a83['on'](_0x48db('0x22'),(_0x2efa5a,_0x106b1b,_0x52082e)=>{if('\x20'!=_0x106b1b[_0x48db('0xc8')]['data']||_0x106b1b['item'][_0x48db('0x11e')]['maxOffset']>0x1)return;if(!_0x52082e['consumable'][_0x48db('0x97')](_0x106b1b[_0x48db('0xc8')],_0x2efa5a['name']))return;const _0x34dbb1=_0x52082e[_0x48db('0x103')],_0x53758f=_0x52082e[_0x48db('0xb0')][_0x48db('0xd7')](_0x106b1b['range']);_0x34dbb1[_0x48db('0x7b')](_0x53758f,_0x34dbb1['createAttributeElement'](_0x48db('0x88')));});}),this[_0x48db('0x119')][_0x48db('0x8f')]['for']('dataDowncast')[_0x48db('0x1b')]({'model':'revision'}),this[_0x48db('0x119')][_0x48db('0x8')][_0x48db('0x10a')]['on']('addMarker:revision',function(_0x4ee3d7){const _0x442a6f=_0x4ee3d7[_0x48db('0x42')][_0x48db('0xde')]('RevisionViewer');return(_0x401b9a,_0x330df3,_0x3f9390)=>{const _0x3a280b=_0x330df3['markerName'][_0x48db('0x20')](':')[0x1],_0x238718=_0x442a6f[_0x48db('0x70')](_0x3a280b);if(!_0x238718)return null;const _0x27e999=_0x48db('0xee')==_0x238718[_0x48db('0x55')]?_0x48db('0x20'):_0x48db('0x89');if(!_0x3f9390['consumable'][_0x48db('0xff')](_0x330df3[_0x48db('0x58')],_0x401b9a['name']))return;const _0x524865=_0x330df3[_0x48db('0x58')][_0x48db('0x45')](),_0x1b0186=_0x330df3[_0x48db('0x58')][_0x48db('0x120')],_0x6a7698=_0x4ee3d7[_0x48db('0x62')][_0x48db('0xf2')];let _0x2deecb=null,_0x51cec0=null,_0x19a2f5=!0x1,_0x4265ee=!0x1;for(const _0xf04816 of _0x524865){const _0x3606ee=_0xf04816[_0x48db('0xc8')];_0x19a2f5=_0x19a2f5||_0x6a7698[_0x48db('0x11f')](_0x3606ee);const _0x4cbba4=_0x3f9390[_0x48db('0xb0')][_0x48db('0x6c')](_0x3606ee);if(_0x4cbba4&&_0x4cbba4[_0x48db('0x80')](_0x48db('0xa3')))return;_0x48db('0x30')==_0xf04816[_0x48db('0x55')]&&(_0x6a7698[_0x48db('0x13')](_0x3606ee)&&!_0x6a7698[_0x48db('0x115')](_0x3606ee)&&(_0x3606ee['nextSibling']||_0x1b0186[_0x48db('0x5b')]?_0x2deecb&&_0x2deecb[_0x48db('0x11e')]==_0x3606ee||(_0x2deecb=_0x3606ee,_0x51a884(_0xf04816[_0x48db('0xc9')]),_0x4265ee=!0x0):_0x51cec0=_0x51cec0||_0xf04816[_0x48db('0xc9')]));}function _0x51a884(_0x4af2e9){const _0x175359=_0x3f9390[_0x48db('0x103')][_0x48db('0xa1')]('span',{'class':_0x48db('0xcb')+_0x27e999}),_0x42549b=_0x3f9390['mapper'][_0x48db('0xb')](_0x4af2e9);_0x238718[_0x48db('0xda')][_0x48db('0x21')]&&_0x3f9390[_0x48db('0x103')]['addClass']('ck-suggestion-marker-'+_0x27e999+'-new',_0x175359),_0x442a6f[_0x48db('0x101')]==_0x238718&&_0x3f9390[_0x48db('0x103')]['addClass']('ck-suggestion-marker--active',_0x175359),_0x3f9390[_0x48db('0x103')][_0x48db('0xd5')](_0x42549b,_0x175359),_0x3f9390[_0x48db('0xb0')]['bindElementToMarker'](_0x175359,_0x330df3[_0x48db('0xa7')]);}_0x19a2f5||_0x4265ee||!_0x51cec0||_0x51a884(_0x51cec0);};}(this[_0x48db('0x119')]),{'priority':_0x48db('0x27')}),this[_0x48db('0x119')][_0x48db('0x8')]['downcastDispatcher']['on'](_0x48db('0xe8'),(_0x17f4c6,_0x44f43c,_0x5ef6a5)=>{const _0x4c326c=_0x5ef6a5['mapper']['markerNameToElements'](_0x44f43c['markerName']);if(_0x4c326c)for(const _0x366768 of _0x4c326c)(_0x366768['hasClass'](_0x48db('0x4e'))||_0x366768[_0x48db('0x113')]('ck-suggestion-marker-merge'))&&(_0x5ef6a5['mapper'][_0x48db('0xb1')](_0x366768,_0x44f43c['markerName']),_0x5ef6a5[_0x48db('0x103')][_0x48db('0xbb')](_0x366768));},{'priority':_0x48db('0x27')}),this[_0x48db('0x119')][_0x48db('0x8')][_0x48db('0x10a')]['on'](_0x48db('0xf7'),(_0x50c079,_0x1a4adf,_0x3ad504)=>{const _0x1c9fda=_0x1a4adf[_0x48db('0xa7')]['split'](':')[0x1],_0x570530=this[_0x48db('0x70')](_0x1c9fda);if(!_0x570530)return null;const _0x59451c=_0x48db('0xee')==_0x570530[_0x48db('0x55')]?_0x48db('0x20'):_0x48db('0x89');if(_0x3ad504['consumable'][_0x48db('0xff')](_0x1a4adf['markerRange'],_0x50c079[_0x48db('0x51')]))for(const _0x2795f7 of _0x1a4adf[_0x48db('0x58')][_0x48db('0xb4')]()){if(!_0x2795f7['is'](_0x48db('0x82'),_0x48db('0x4d')))continue;const _0x173b0a=_0x3ad504[_0x48db('0x103')][_0x48db('0xa1')](_0x48db('0x88'),{'class':_0x48db('0xcb')+_0x59451c}),_0x4214ce=_0x3ad504[_0x48db('0xb0')][_0x48db('0xb')](this[_0x48db('0x119')][_0x48db('0x62')][_0x48db('0x11c')](_0x2795f7));_0x570530[_0x48db('0xda')][_0x48db('0x21')]&&_0x3ad504[_0x48db('0x103')][_0x48db('0x68')](_0x48db('0xcb')+_0x59451c+_0x48db('0x1c'),_0x173b0a),this[_0x48db('0x101')]==_0x570530&&_0x3ad504[_0x48db('0x103')]['addClass'](_0x48db('0xdc'),_0x173b0a),_0x3ad504[_0x48db('0x103')]['insert'](_0x4214ce,_0x173b0a),_0x3ad504['mapper'][_0x48db('0x5e')](_0x173b0a,_0x1a4adf[_0x48db('0xa7')]);}},{'priority':_0x48db('0x27')}),this[_0x48db('0x119')][_0x48db('0x62')][_0x48db('0x28')]['on'](_0x48db('0x12'),()=>{this['editor']['editing'][_0x48db('0x5c')][_0x48db('0x12')](_0x361236=>{for(const _0x250629 of this[_0x48db('0x119')]['model'][_0x48db('0x28')][_0x48db('0xbf')]()){const _0x372526=this['editor'][_0x48db('0x62')]['document'][_0x48db('0xa9')](_0x250629),_0x3e17ae=this[_0x48db('0x119')][_0x48db('0x8')][_0x48db('0x5c')][_0x48db('0x28')]['getRoot'](_0x250629);if(_0x3e17ae){const _0x1c410e=_0x372526[_0x48db('0xfa')](_0x48db('0xce'));if(_0x361236[_0x48db('0x95')]('data-change-id',_0x3e17ae),_0x361236[_0x48db('0x48')](_0x48db('0x92'),_0x3e17ae),_0x361236[_0x48db('0x48')](_0x48db('0xc5'),_0x3e17ae),_0x361236[_0x48db('0x48')](_0x48db('0x4f'),_0x3e17ae),_0x1c410e){const _0x50b944=this[_0x48db('0x70')](_0x1c410e);if(!_0x50b944)return null;_0x361236[_0x48db('0x76')](_0x48db('0xd0'),_0x1c410e,_0x3e17ae),_0x361236[_0x48db('0x68')](_0x48db('0x112')+_0x50b944[_0x48db('0x55')],_0x3e17ae),this[_0x48db('0x101')]==_0x50b944&&_0x361236[_0x48db('0x68')](_0x48db('0x4f'),_0x3e17ae);}}}});}),this[_0x48db('0x119')][_0x48db('0x8f')][_0x48db('0x6d')](_0x48db('0xe3'))['dataToMarker']({'view':'comment','model':_0x3e19b2=>'revision-comment:'+_0x3e19b2,'converterPriority':_0x48db('0xb9')}),this[_0x48db('0x119')]['conversion'][_0x48db('0x6d')](_0x48db('0xe3'))['dataToMarker']({'view':_0x48db('0x78'),'model':_0x2c34ef=>_0x48db('0xd2')+_0x2c34ef,'converterPriority':'highest'}),this[_0x48db('0x119')][_0x48db('0x8f')][_0x48db('0x6d')]('dataDowncast')[_0x48db('0x1b')]({'model':_0x48db('0x90'),'view':_0x4ee370=>({'name':_0x48db('0xfe')+_0x4ee370,'group':_0x48db('0x90')}),'converterPriority':'highest'}),this[_0x48db('0x119')][_0x48db('0x8f')]['for'](_0x48db('0xea'))[_0x48db('0x118')]({'model':'revision-suggestion','view':_0x491f4b=>{const _0x4f91d7=_0x491f4b[_0x48db('0xa7')]['split'](':')[0x1];return _0x48db('0xd')!=_0x4f91d7&&_0x48db('0x23')!=_0x4f91d7?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4f91d7]};}}),this[_0x48db('0x119')][_0x48db('0x8')][_0x48db('0x10a')]['on'](_0x48db('0x3d'),et(this['editor'],_0x48db('0x89')),{'priority':_0x48db('0x27')}),this[_0x48db('0x119')][_0x48db('0x8')][_0x48db('0x10a')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x48db('0x119')],_0x48db('0x20')),{'priority':_0x48db('0x27')}),this['editor'][_0x48db('0x8')]['downcastDispatcher']['on'](_0x48db('0x17'),(_0x552ff0,_0x1bd163,_0x3133ec)=>{const _0x42a6c9=_0x3133ec[_0x48db('0xb0')][_0x48db('0xf5')](_0x1bd163[_0x48db('0xa7')]);if(_0x42a6c9)for(const _0x8c2b3c of _0x42a6c9)_0x8c2b3c['is'](_0x48db('0xf1'))&&(_0x3133ec[_0x48db('0xb0')][_0x48db('0xb1')](_0x8c2b3c,_0x1bd163[_0x48db('0xa7')]),_0x3133ec[_0x48db('0x103')][_0x48db('0xbb')](_0x8c2b3c));},{'priority':_0x48db('0x27')});}[_0x48db('0x70')](_0x36cf7f){return this[_0x48db('0x87')][_0x48db('0xde')](_0x36cf7f);}[_0x48db('0x50')](_0x18f145){return this[_0x48db('0x75')]&&this[_0x48db('0x75')][_0x48db('0x6e')](),this[_0x48db('0x75')]=new _0x138681(this[_0x48db('0x119')][_0x48db('0x2a')],_0x18f145),this[_0x48db('0x75')];}[_0x48db('0xc0')](){this[_0x48db('0x119')]['model'][_0x48db('0x28')][_0x48db('0xf9')][_0x48db('0x4c')](_0x48db('0x7e')),this['on'](_0x48db('0x11a'),(_0x40769e,_0x40133a,_0x39749c,_0x14a55b)=>{_0x14a55b&&this[_0x48db('0x121')][_0x48db('0xbb')](_0x14a55b),_0x39749c&&(this['_balloon']['add']({'view':_0x39749c,'stackId':_0x48db('0xc1'),'position':{'target':()=>{const _0x4c7ba0=this[_0x48db('0x119')][_0x48db('0x8')],_0xa12500=this['_getChangeFromId'](_0x39749c[_0x48db('0x105')]);let _0x589302;if(_0xa12500[_0x48db('0xda')][_0x48db('0x49')]){const _0x46f19f=_0x4c7ba0[_0x48db('0x5c')][_0x48db('0x74')](_0xa12500[_0x48db('0x99')]);_0x589302=Array[_0x48db('0x6b')](_0x46f19f[_0x48db('0xa4')]());}else{const _0x3a3227=this['editor'][_0x48db('0x62')][_0x48db('0x8b')][_0x48db('0xde')](_0x48db('0x6')+_0x39749c[_0x48db('0x105')]);_0x589302=Array[_0x48db('0x6b')](_0x4c7ba0[_0x48db('0xb0')][_0x48db('0xf5')](_0x3a3227['name']))[_0x48db('0xc4')](_0xa8d161=>_0x4c7ba0[_0x48db('0x5c')]['domConverter'][_0x48db('0x11d')](_0xa8d161))[_0x48db('0xc4')](_0x4bd563=>Array[_0x48db('0x6b')](_0x4bd563[_0x48db('0xa4')]()))['flat']();}if(!this['_activeViewTarget'])return _0x589302[0x0];return _0x589302['find'](_0xb79937=>_0xb79937[_0x48db('0xfc')]-0x3<=this[_0x48db('0x65')]['y']&&_0xb79937[_0x48db('0x10e')]+0x3>=this['_activeViewTarget']['y']&&_0xb79937['left']-0x3<=this[_0x48db('0x65')]['x']&&_0xb79937[_0x48db('0x98')]+0x3>=this[_0x48db('0x65')]['x'])||_0x589302[0x0];}}}),this[_0x48db('0x121')]['showStack'](_0x48db('0xc1')));}),this['on']('change:activeChange',(_0x512a18,_0x3e62ac,_0x141fb3,_0xf7136c)=>{this['activeView']=_0x141fb3?this[_0x48db('0x50')](_0x141fb3):null,this[_0x48db('0x119')]['model'][_0x48db('0x12')](()=>{const _0x38177f=this[_0x48db('0x119')]['editing'];_0xf7136c&&(_0xf7136c[_0x48db('0xda')][_0x48db('0x49')]?_0x38177f[_0x48db('0x5c')][_0x48db('0x12')](_0x4f5dcf=>{_0x4f5dcf[_0x48db('0x48')](_0x48db('0x4f'),_0x38177f[_0x48db('0x5c')]['document']['getRoot'](_0xf7136c['rootName']));}):_0x38177f[_0x48db('0x2f')]('revision:'+_0xf7136c['id'])),_0x141fb3&&(_0x141fb3[_0x48db('0xda')][_0x48db('0x49')]?_0x38177f[_0x48db('0x5c')][_0x48db('0x12')](_0x417422=>{_0x417422[_0x48db('0x68')](_0x48db('0x4f'),_0x38177f[_0x48db('0x5c')][_0x48db('0x28')]['getRoot'](_0x141fb3[_0x48db('0x99')]));}):_0x38177f['reconvertMarker'](_0x48db('0x6')+_0x141fb3['id']));});}),this[_0x48db('0xe0')](this[_0x48db('0x119')][_0x48db('0x8')]['view'][_0x48db('0x28')],_0x48db('0x9'),(_0x5bfe43,_0x4d21ff)=>{if(this['activeChange'])return;const _0x3405d1=this[_0x48db('0x16')](_0x4d21ff['target']),_0xf18bce=this[_0x48db('0x87')][_0x48db('0xde')](_0x3405d1);_0xf18bce?(this[_0x48db('0x65')]={'x':_0x4d21ff[_0x48db('0x18')]['x'],'y':_0x4d21ff[_0x48db('0x18')]['y']},this['activeView']=this[_0x48db('0x50')](_0xf18bce)):(this[_0x48db('0x65')]=null,this['activeView']=null);}),this[_0x48db('0xe0')](this['editor'][_0x48db('0x8')][_0x48db('0x5c')][_0x48db('0x28')],_0x48db('0x34'),(_0x2cf617,_0xedb964)=>{const _0x5aca35=this[_0x48db('0x16')](_0xedb964['target']),_0x4c3ac2=this['_changeIdToChange'][_0x48db('0xde')](_0x5aca35);_0x4c3ac2?(this['_activeViewTarget']={'x':_0xedb964[_0x48db('0x18')]['x'],'y':_0xedb964['domEvent']['y']},_0x4c3ac2===this[_0x48db('0x101')]?this[_0x48db('0x121')][_0x48db('0xf4')]():this[_0x48db('0x101')]=_0x4c3ac2):(this[_0x48db('0x65')]=null,this[_0x48db('0x101')]=null);});}[_0x48db('0x16')](_0x5b63a6){do{const _0x287c6c=_0x5b63a6['getAttribute']('data-change-id');if(_0x287c6c)return _0x287c6c;_0x5b63a6=_0x5b63a6[_0x48db('0x11e')];}while(_0x5b63a6);return null;}['_cleanMarkers'](){this[_0x48db('0x119')][_0x48db('0x62')]['change'](_0x24d8db=>{for(const _0x3b330e of this[_0x48db('0x119')][_0x48db('0x62')][_0x48db('0x8b')])_0x24d8db[_0x48db('0xd8')](_0x3b330e);});}}function et(_0x5a3aba,_0xbb9cab){return(_0x804a70,_0x2fae5b,_0x51bd87)=>{if(!_0x51bd87['consumable'][_0x48db('0xff')](_0x2fae5b[_0x48db('0x58')],_0x804a70[_0x48db('0x51')]))return;const _0x942477=_0x2fae5b['markerRange'][_0x48db('0x45')](),_0x607aff=_0x2fae5b[_0x48db('0x58')][_0x48db('0x120')],_0x823243=_0x5a3aba['model'][_0x48db('0xf2')];let _0x21f27b=null,_0x197a09=null,_0x32a823=!0x1,_0x5ef382=!0x1;for(const _0x80e34 of _0x942477){const _0x1c18e6=_0x80e34['item'];_0x32a823=_0x32a823||_0x823243[_0x48db('0x11f')](_0x1c18e6);const _0x19d7d0=_0x51bd87[_0x48db('0xb0')][_0x48db('0x6c')](_0x1c18e6);if(_0x19d7d0&&_0x19d7d0[_0x48db('0x80')](_0x48db('0xa3')))return;_0x48db('0x30')==_0x80e34[_0x48db('0x55')]&&(_0x823243[_0x48db('0x13')](_0x1c18e6)&&!_0x823243[_0x48db('0x115')](_0x1c18e6)&&(_0x1c18e6[_0x48db('0xd4')]||_0x607aff[_0x48db('0x5b')]?_0x21f27b&&_0x21f27b['parent']==_0x1c18e6||(_0x21f27b=_0x1c18e6,_0x4f3246(_0x80e34[_0x48db('0xc9')]),_0x5ef382=!0x0):_0x197a09=_0x197a09||_0x80e34[_0x48db('0xc9')]));}function _0x4f3246(_0x3d3ef9){const _0x37f113=_0x51bd87[_0x48db('0xb0')][_0x48db('0xb')](_0x3d3ef9),_0xcb3e9f=_0x51bd87[_0x48db('0x103')][_0x48db('0xa1')](_0x48db('0x88'),{'class':'ck-suggestion-preview-marker-'+_0xbb9cab});_0x51bd87[_0x48db('0x103')][_0x48db('0xd5')](_0x37f113,_0xcb3e9f),_0x51bd87[_0x48db('0xb0')][_0x48db('0x5e')](_0xcb3e9f,_0x2fae5b[_0x48db('0xa7')]);}_0x32a823||_0x5ef382||!_0x197a09||_0x4f3246(_0x197a09);};}export class RestoreRevisionCommand extends _0x28f02b{constructor(_0x47d924){super(_0x47d924);const _0x43ce20=_0x47d924['plugins'][_0x48db('0xde')](d);this[_0x48db('0x108')]=!0x1,this[_0x48db('0xe0')](_0x43ce20,'change:isReady',()=>this['refresh']()),this[_0x48db('0xe0')](_0x43ce20,_0x48db('0x9f'),()=>this[_0x48db('0xab')]());}[_0x48db('0xa8')](){const _0x1ad191=this[_0x48db('0x119')],_0x575e44=_0x1ad191[_0x48db('0x42')][_0x48db('0xde')](d),_0x9a6143=_0x575e44[_0x48db('0x110')]?_0x575e44[_0x48db('0x10b')][_0x48db('0x5a')]:null;_0x1ad191['config'][_0x48db('0xde')](_0x48db('0x53'))[_0x48db('0x1f')](_0x9a6143);}[_0x48db('0xab')](){const {isReady:_0x472458,isEnabled:_0x121fb2}=this[_0x48db('0x119')][_0x48db('0x42')]['get'](d);this[_0x48db('0x31')]=_0x472458&&_0x121fb2;}}export class ShowChangeCommand extends _0x28f02b{constructor(_0x582ce1,{direction:_0x4b745a}){super(_0x582ce1);const _0x5b967d=_0x582ce1[_0x48db('0x42')]['get'](d);this[_0x48db('0x108')]=!0x1,this['_step']=_0x48db('0xb7')===_0x4b745a?0x1:-0x1,this[_0x48db('0xe0')](_0x5b967d,'change:isReady',()=>this[_0x48db('0xab')]()),this[_0x48db('0xe0')](_0x5b967d,_0x48db('0x9f'),()=>this[_0x48db('0xab')]()),this[_0x48db('0xe0')](_0x5b967d,_0x48db('0xb5'),()=>this[_0x48db('0xab')]());}[_0x48db('0xa8')](){const _0x3e0693=this[_0x48db('0x119')],_0x12f4e6=_0x3e0693[_0x48db('0x42')][_0x48db('0xde')](d),{isNavigationMode:_0x30148f,currentChangeNumber:_0x34c2ff}=_0x12f4e6;let _0x522f56;if(_0x12f4e6[_0x48db('0x101')]=_0x30148f?_0x12f4e6['diff']['changes'][_0x48db('0xde')](_0x34c2ff+this[_0x48db('0x6a')]):_0x12f4e6['diff'][_0x48db('0xe5')][_0x48db('0xdb')],_0x12f4e6[_0x48db('0x101')][_0x48db('0xda')][_0x48db('0x49')])_0x522f56=_0x3e0693[_0x48db('0x8')]['view'][_0x48db('0x74')](_0x12f4e6[_0x48db('0x101')][_0x48db('0x99')]);else{const _0x5ce795=_0x3e0693[_0x48db('0x62')][_0x48db('0x8b')][_0x48db('0xde')](_0x48db('0x6')+_0x12f4e6['activeChange']['id']);_0x522f56=_0x15e21b(_0x3e0693['editing'],_0x5ce795);}_0x46b1aa({'target':_0x522f56,'viewportOffset':0x28});}[_0x48db('0xab')](){const {isNavigationMode:_0xc31926,currentChangeNumber:_0x4b53dc,numberOfChanges:_0x5c4d2a,isReady:_0x1da595,isEnabled:_0x388e1e}=this[_0x48db('0x119')][_0x48db('0x42')][_0x48db('0xde')](d);this[_0x48db('0x31')]=!!(_0x388e1e&&_0x1da595&&_0x5c4d2a)&&(!_0xc31926||(0x1===this['_step']?_0x4b53dc<_0x5c4d2a-0x1:_0x4b53dc>0x0));}}
23
+ const _0x2058=['conversion','view','_threeWayMerge','POSITIVE_INFINITY','addClass','_changeIdToChange','_changeView','revision-suggestion','parent','data-change-id','_revisions','elementStart','ck-suggestion-preview-marker-','getItems','currentChangeNumber','sort','getRoot','startIndex','element','indexOf','loadRevisionData','_balloon','getRevisionData','markerName','_removeRevisionMarkers','consumable','adapter','isAttached','nextPosition','change:numberOfChanges','target','_getViewForChange','isBlock','isReady','getCustomProperty','getRevision','processor','removeClass','attachChange','comment','first','revision-suggestion:','marked','editingDowncast','forEach','mapViewToDom','_fixObsoleteTags','type','isOnRoot','_step','hasAttribute','checkAttribute','setAttribute','isAtEnd','reconvertMarker','modelRange','deletions','_processTape','splice','bottom','resolve','code','has','left','removeMarker:revision','element:pre','roots','compare','done','parse','collaboration.channelId','change:isReady','revision','merge','isNavigationMode','wrap','_makeTape','isAdded','startsWith','ck-suggestion-preview-marker','rootName','destroy','schema','low','isAddSuggestion','for','addMarker:revision','slice','diff','_markMarkers','revisionHistoryLabel','config','split','end','toViewRange','index','createPositionBefore','showPreviousChange','deletion','_cleanUp','_cleanMarkers','insertion','useFillerType','unbindElementFromMarkerName','createRange','ck-suggestion-marker-merge','addMarker:revision-suggestion:insertion','ck-editor__editable__overlay','_setDistance','span','_makeModelFromViewString','suggestion:','removeMarker','newRevisionId','values','createRangeIn','_findChangeIdFromDomTarget','side','detachRoot','shift','RevisionViewer','getClientRects','get','_markMismatchedRemovedTags','markerRange','endIndex','find','mapper','unshift','oldRevisionId','getRevisionRootsAttributes','revision:','downcastDispatcher','ck-suggestion-marker-','includes','isRemoveSuggestion','add','isRemoved','mousedown','bindElementToMarker','isEnabled','push','addHighlight','_markInsertions','markerToData','removeAttribute','dataToMarker','pairId','changes','getIndex','return','item','_data','insert','createPositionFromPath','diffData','_markSuggestions','isIncorrect','_setChanges','clear','toViewPosition','isCollapsed','markerToHighlight','flat','activeView','attributesAfter','change:isEnabled','mouseover','right','_update','distance','WidgetToolbarRepository','next','default','_activeViewTarget','addMarker:revision-suggestion:deletion','isSuggestion','editing','hasClass','high','previousPosition','_sortAndFilterDiffChanges','insertions','markerNameToElements','filter','text','observeMarkers','restoreRevision','listenTo','isAfter','refresh','domEvent','nodeAfter','_removeUnsupportedChanges','changeId','writer','getChild','suggestion','forceDisabled','elementEnd','isEqual','model','isBefore','_makeModelFromTape','data','toModel','level','_getRevisionsRange','markersStart','affectsData','highest','repository','attributesBefore','_appendChild','change:activeView','isObject','toViewElement','vid_end','then','start','length','removeMarker:revision-suggestion','markersEnd','getRootNames','enableReadOnlyMode','_removeMissingPairs','ck-suggestion-marker-split','string','_joinTapes','vid_start','_getViewObj','isLimit','plugins','getDomRoot','change:activeChange','getAttributes','abs','name','ck-revision-history-root--active','keys','showStack','revisionHistoryAttachChange','set','_getChangeFromId','_refreshStartEndIndex','addRoot','getWalker','addRevision','revision-viewer','_setConversion','showNextChange','-new','concat','isAtStart','elementToAttribute','viewItem','isContent','attribute:vid','_getDiff','map','from','authors','requires','children','editor','userId','commands','activeChange','vid','consume','isInline','remove','getAttribute','upcast','delete','error','enqueueChange','dataDowncast','attributes','createUIElement','createAttributeElement','markers','nextSibling','change','ck-suggestion-marker--active','forward','revision-comment:','document'];(function(_0x573872,_0x205895){const _0x4cae7e=function(_0x1b8eaa){while(--_0x1b8eaa){_0x573872['push'](_0x573872['shift']());}};_0x4cae7e(++_0x205895);}(_0x2058,0x1d2));const _0x4cae=function(_0x573872,_0x205895){_0x573872=_0x573872-0x0;let _0x4cae7e=_0x2058[_0x573872];return _0x4cae7e;};import{Plugin as _0x3312f7,Command as _0x6aaecc}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x275eab}from'ckeditor5/src/utils';import{ContextualBalloon as _0x4ccb97}from'ckeditor5/src/ui';import{DocumentFragment as _0x1c5439,Element as _0x48363b,Text as _0x5b4aab,ViewDocumentFragment as _0x59097e,ViewText as _0x4d154a,ViewElement as _0x3fc0db,ViewContainerElement as _0x3ff8b4,ViewAttributeElement as _0x258169,ViewEmptyElement as _0x5df84a,ViewRawElement as _0x4e99bf,ViewUIElement as _0x51400b}from'ckeditor5/src/engine';import{Users as _0x4c8fc8,getMarkerDomElement as _0x41668f}from'ckeditor5-collaboration/src/collaboration-core';import _0x2aa001 from'./ui/revisionviewer/changedetailsview';import _0x5b0719 from'./revisionsrepository';import _0x2d657f from'./changeitem';import{default as _0x4d7ec0}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x31bbc2}from'lodash-es';const tt={'c':_0x3ff8b4,'a':_0x258169,'e':_0x5df84a,'r':_0x4e99bf,'u':_0x51400b};export default class d extends _0x3312f7{static get['pluginName'](){return _0x4cae('0xe6');}static get[_0x4cae('0x54')](){return[_0x4c8fc8,_0x4ccb97,_0x5b0719];}constructor(_0xdb42cf){super(_0xdb42cf),this[_0x4cae('0x21')]=this[_0x4cae('0x56')][_0x4cae('0x36')][_0x4cae('0xe8')]('RevisionsRepository'),this['set']('activeChange',null),this['set'](_0x4cae('0x112'),null),this[_0x4cae('0x11c')]=null,this[_0x4cae('0x40')](_0x4cae('0xc6'),null),this['set'](_0x4cae('0x8f'),!0x1),this[_0x4cae('0x40')]('isEnabled',!0x0),this['on'](_0x4cae('0x114'),(_0x236d61,_0x3ae15b,_0x8e3473)=>{this[_0x4cae('0x59')]=null,this[_0x4cae('0x112')]=null,this['editor']['editing']['view'][_0x4cae('0x69')](_0xf56491=>{for(const _0x5d170e of this[_0x4cae('0x56')][_0x4cae('0x11f')][_0x4cae('0x6f')][_0x4cae('0x6d')][_0x4cae('0xb0')])_0x8e3473?_0xf56491[_0x4cae('0x93')](_0x4cae('0xd9'),_0x5d170e):_0xf56491[_0x4cae('0x72')](_0x4cae('0xd9'),_0x5d170e);});}),this['bind'](_0x4cae('0xb8'))['to'](this,_0x4cae('0x59'),_0x48c6c1=>null!==_0x48c6c1),this['bind'](_0x4cae('0x7c'))['to'](this,_0x4cae('0x8f'),this,_0x4cae('0xc6'),this,_0x4cae('0x59'),(_0x472450,_0x576261,_0x42a178)=>_0x472450&&_0x42a178?_0x576261[_0x4cae('0x102')]['getIndex'](_0x42a178):0x0),this['bind']('numberOfChanges')['to'](this,_0x4cae('0x8f'),this,'diff',(_0x29b33b,_0x4ac747)=>_0x29b33b?_0x4ac747['changes'][_0x4cae('0x2a')]:0x0),this[_0x4cae('0x74')]=null,this[_0x4cae('0x73')]=new Map(),this[_0x4cae('0x88')]=null,this[_0x4cae('0x83')]=this[_0x4cae('0x56')][_0x4cae('0x36')][_0x4cae('0xe8')](_0x4ccb97);}['init'](){const _0x49c1c0=this[_0x4cae('0x56')],_0x31d3cb=new ShowChangeCommand(_0x49c1c0,{'direction':'backward'}),_0x2b6121=new ShowChangeCommand(_0x49c1c0,{'direction':_0x4cae('0x6b')});(_0x49c1c0[_0x4cae('0x58')][_0x4cae('0xf6')](_0x4cae('0xcf'),_0x31d3cb),_0x49c1c0['commands'][_0x4cae('0xf6')](_0x4cae('0x48'),_0x2b6121),_0x49c1c0[_0x4cae('0x58')]['add'](_0x4cae('0x9'),new RestoreRevisionCommand(_0x49c1c0)),this['on'](_0x4cae('0x8b'),()=>{_0x31d3cb['refresh'](),_0x2b6121['refresh']();}),this[_0x4cae('0x47')](),this['_initInteractions'](),_0x49c1c0[_0x4cae('0x2e')](_0x4cae('0x46')),_0x49c1c0[_0x4cae('0x36')][_0x4cae('0xac')]('WidgetToolbarRepository'))&&_0x49c1c0[_0x4cae('0x36')]['get'](_0x4cae('0x119'))[_0x4cae('0x14')]('revision-viewer');}async[_0x4cae('0x84')](_0x231f16){await this[_0x4cae('0x82')](_0x231f16);const _0x296d12={};for(const _0x1ac49f in _0x231f16[_0x4cae('0x109')]){if(_0x231f16[_0x4cae('0x109')][_0x1ac49f][_0x4cae('0x94')]&&!_0x231f16[_0x4cae('0x109')][_0x1ac49f]['attachChange']['isAttached'])continue;const _0x509b60=this[_0x4cae('0x86')](JSON['parse'](_0x231f16[_0x4cae('0x109')][_0x1ac49f]['insertions'])),_0x580bb1=this[_0x4cae('0x56')][_0x4cae('0x11f')][_0x4cae('0x6f')][_0x4cae('0x6d')],_0x3bfa62=new _0x59097e(_0x580bb1,_0x509b60['map'](_0x139707=>this[_0x4cae('0x34')](_0x139707)));this[_0x4cae('0x56')][_0x4cae('0x1a')][_0x4cae('0x92')][_0x4cae('0xd4')](_0x4cae('0x98')),_0x296d12[_0x1ac49f]=this['editor'][_0x4cae('0x1a')][_0x4cae('0x92')]['toData'](_0x3bfa62),this['editor'][_0x4cae('0x1a')]['processor'][_0x4cae('0xd4')](_0x4cae('0x11b'));}return _0x296d12;}async[_0x4cae('0xf0')](_0x1db74f){await this[_0x4cae('0x82')](_0x1db74f);const _0x57c72b={};for(const _0x488593 in _0x1db74f[_0x4cae('0x109')])_0x1db74f[_0x4cae('0x109')][_0x488593][_0x4cae('0x94')]&&!_0x1db74f[_0x4cae('0x109')][_0x488593]['attachChange'][_0x4cae('0x89')]||(_0x57c72b[_0x488593]=_0x1db74f[_0x4cae('0x109')][_0x488593][_0x4cae('0x113')]||{});return _0x57c72b;}['_removeRevisionMarkers'](_0x48dd26){return(_0x48dd26=_0x48dd26['filter'](_0x10af1d=>!_0x10af1d[_0x4cae('0x3b')]||'revision-start'!==_0x10af1d[_0x4cae('0x3b')]&&'revision-end'!==_0x10af1d[_0x4cae('0x3b')]))[_0x4cae('0x9a')](_0x27fc3c=>{'string'!=typeof _0x27fc3c&&(_0x27fc3c[_0x4cae('0x55')]=this[_0x4cae('0x86')](_0x27fc3c['children']),_0x27fc3c[_0x4cae('0x64')]=_0x27fc3c['attributes'][_0x4cae('0x6')](_0x142aa8=>!_0x142aa8[0x0][_0x4cae('0xbc')]('data-revision-')));}),_0x48dd26;}async[_0x4cae('0xb1')](_0x2af203,_0x291713,_0x4c61f7=!0x1){if(!this[_0x4cae('0xfa')])return;const _0x1d418b=this['diff'],_0x46ca0e=this[_0x4cae('0x21')],_0x31b348=_0x4cae('0x31')==typeof _0x2af203?_0x46ca0e[_0x4cae('0x91')](_0x2af203):_0x2af203,_0xcebc3f=_0x4cae('0x31')==typeof _0x291713?_0x46ca0e[_0x4cae('0x91')](_0x291713):_0x291713,_0x188b17=_0x31b348['id'],_0x8c3b2c=_0xcebc3f?_0xcebc3f['id']:null;if(!_0x4c61f7&&this[_0x4cae('0xc6')]&&this[_0x4cae('0xc6')]['newRevisionId']===_0x188b17&&this['diff'][_0x4cae('0xef')]===_0x8c3b2c)return Promise[_0x4cae('0xaa')]();this[_0x4cae('0x8f')]=!0x1,this[_0x4cae('0x112')]=null,this[_0x4cae('0x59')]=null,this[_0x4cae('0xc6')]=new _0x4d7ec0(_0x188b17,_0x8c3b2c);const _0xa0f44c=this['_getRevisionsRange'](_0x31b348,_0xcebc3f,!0x0)[_0x4cae('0x51')](_0x1982df=>this[_0x4cae('0x82')](_0x1982df));return _0xa0f44c[_0x4cae('0xfb')](new Promise(_0x2f36ae=>{setTimeout(_0x2f36ae,0x14);})),Promise['all'](_0xa0f44c)[_0x4cae('0x28')](()=>{if(!this[_0x4cae('0xfa')])return;this['_cleanUp']();const _0x11c5c2=this[_0x4cae('0x50')](_0x188b17,_0x8c3b2c);for(const _0x251f89 of _0x11c5c2['changes'])this[_0x4cae('0x73')][_0x4cae('0x40')](_0x251f89['id'],_0x251f89);this[_0x4cae('0x56')][_0x4cae('0x17')][_0x4cae('0x62')]({'isUndoable':!0x1},_0x549a2e=>{for(const _0x5f21e3 of this['editor']['model'][_0x4cae('0x6d')][_0x4cae('0x2d')]())_0x549a2e[_0x4cae('0xe4')](_0x5f21e3);for(const _0x2cbe74 of Object[_0x4cae('0x3d')](_0x11c5c2[_0x4cae('0x17')])){const _0x4b05a7=_0x549a2e[_0x4cae('0x43')](_0x2cbe74);for(const _0x56f786 of Object[_0x4cae('0x3d')](_0x11c5c2[_0x4cae('0x64')][_0x2cbe74]))_0x549a2e[_0x4cae('0xa2')](_0x56f786,_0x11c5c2[_0x4cae('0x64')][_0x2cbe74][_0x56f786],_0x4b05a7);_0x549a2e[_0x4cae('0x107')](_0x11c5c2['model'][_0x2cbe74],_0x4b05a7,0x0);}}),this[_0x4cae('0xc6')][_0x4cae('0x10c')](this[_0x4cae('0x3')](_0x11c5c2[_0x4cae('0x102')])),this[_0x4cae('0x8f')]=!0x0;})['catch'](_0x24458c=>{console[_0x4cae('0x61')](_0x24458c),this[_0x4cae('0xd1')](),_0x1d418b&&(this[_0x4cae('0xc6')]=_0x1d418b),this[_0x4cae('0x8f')]=!0x0;});}['addRevisionData'](_0xf07281,_0x57efec){const _0x2d3730=this['repository']['createRevision'](_0xf07281);return _0x2d3730['on']('_update',(_0x4afd50,_0x2222e3,_0x4ca263)=>_0x57efec(_0x2222e3,_0x4ca263,_0x2d3730)),this[_0x4cae('0x21')][_0x4cae('0x45')](_0x2d3730),_0x2d3730;}[_0x4cae('0x82')](_0x5a7ed1){if(!_0x5a7ed1||_0x5a7ed1['diffData'])return Promise[_0x4cae('0xaa')]();{const _0x15e69c=this['editor'][_0x4cae('0xc9')]['get'](_0x4cae('0xb4'));return this[_0x4cae('0x88')]['getRevision']({'channelId':_0x15e69c,'revisionId':_0x5a7ed1['id']})[_0x4cae('0x28')](_0x308d2f=>{_0x5a7ed1[_0x4cae('0x117')]({'diffData':_0x308d2f[_0x4cae('0x109')]},!0x0);});}}[_0x4cae('0xd1')](){this['activeChange']=null,this['_cleanMarkers'](),this[_0x4cae('0x74')]&&this[_0x4cae('0x74')][_0x4cae('0xbf')](),this[_0x4cae('0x74')]=null,this[_0x4cae('0x73')][_0x4cae('0x10d')](),this[_0x4cae('0x56')][_0x4cae('0x17')][_0x4cae('0x62')]({'isUndoable':!0x1},_0x16a6b8=>{for(const _0x4c9ce6 of this['editor'][_0x4cae('0x17')][_0x4cae('0x6d')][_0x4cae('0x2d')]())_0x16a6b8[_0x4cae('0xe4')](_0x4c9ce6);});}[_0x4cae('0x3')](_0x495860){const _0x40f90e=[],_0x4257f1=new Map();for(const _0xdc7971 of this[_0x4cae('0x56')][_0x4cae('0x17')]['document']['getRootNames']()){const _0x937396=this['editor'][_0x4cae('0x11f')][_0x4cae('0x6f')][_0x4cae('0x37')](_0xdc7971);if(!_0x937396)continue;const _0x574e02=_0x937396[_0x4cae('0xe7')]()['item'](0x0);_0x574e02&&(_0x40f90e[_0x4cae('0xfb')](_0xdc7971),_0x4257f1['set'](_0xdc7971,_0x574e02));}return _0x40f90e[_0x4cae('0x7d')]((_0xc091cf,_0x1c9280)=>{const _0x5bac79=_0x4257f1['get'](_0xc091cf),_0x8b0a9f=_0x4257f1[_0x4cae('0xe8')](_0x1c9280);return _0x5bac79['y']-_0x8b0a9f['y']||_0x5bac79['x']-_0x8b0a9f['x'];}),(_0x495860=_0x495860[_0x4cae('0x6')](_0x329312=>_0x40f90e[_0x4cae('0xf4')](_0x329312['rootName'])))[_0x4cae('0x7d')]((_0x57f678,_0x1e09b7)=>_0x40f90e[_0x4cae('0x81')](_0x57f678[_0x4cae('0xbe')])-_0x40f90e[_0x4cae('0x81')](_0x1e09b7[_0x4cae('0xbe')])),_0x495860;}[_0x4cae('0xba')](_0x9b7893){const _0x44609=Array[_0x4cae('0x52')](_0x9b7893['markers'])[_0x4cae('0x6')](([_0x13fae3,_0x497c1e])=>_0x13fae3[_0x4cae('0xbc')](_0x4cae('0xf1'))&&!_0x497c1e[_0x4cae('0x10f')]),_0x1ddb52=Array[_0x4cae('0x52')](this[_0x4cae('0x56')][_0x4cae('0x17')][_0x4cae('0xe1')](_0x9b7893)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x44609[_0x4cae('0x2a')])for(const _0x45af99 of _0x1ddb52){const [_0x447249,_0x7e3dd7]=_0x44609[0x0],[,_0x380da6,_0x50f8e5]=_0x447249[_0x4cae('0xca')](':');if(_0x7e3dd7[_0x4cae('0xcb')][_0x4cae('0x16')](_0x45af99['nextPosition'])&&_0x44609['shift'](),(_0x45af99[_0x4cae('0x2')][_0x4cae('0x16')](_0x7e3dd7[_0x4cae('0x29')])||_0x45af99[_0x4cae('0x2')][_0x4cae('0xb')](_0x7e3dd7[_0x4cae('0x29')]))&&(_0x4cae('0xd3')==_0x380da6?_0x45af99['isAdded']={'userId':_0x50f8e5}:_0x4cae('0xd0')==_0x380da6&&(_0x45af99[_0x4cae('0xf7')]={'userId':_0x50f8e5})),0x0==_0x44609[_0x4cae('0x2a')])break;}return _0x1ddb52;}['_refreshStartEndIndex'](_0x22f137){const _0x295eaf=new Map();for(let _0x38316e=0x0;_0x38316e<_0x22f137[_0x4cae('0x2a')];_0x38316e++)_0x4cae('0x7')===_0x22f137[_0x38316e][_0x4cae('0x9d')]?(_0x22f137[_0x38316e][_0x4cae('0x105')][_0x4cae('0x7f')]=_0x38316e,_0x22f137[_0x38316e]['item'][_0x4cae('0xeb')]=_0x38316e):(_0x4cae('0x79')===_0x22f137[_0x38316e][_0x4cae('0x9d')]?_0x22f137[_0x38316e][_0x4cae('0x105')][_0x4cae('0x7f')]=_0x38316e:_0x4cae('0x15')===_0x22f137[_0x38316e][_0x4cae('0x9d')]&&(_0x22f137[_0x38316e][_0x4cae('0x105')]['endIndex']=_0x38316e),_0x295eaf[_0x4cae('0x40')](_0x22f137[_0x38316e]['id'],_0x38316e));for(const _0x2fc4a4 of _0x295eaf[_0x4cae('0xe0')]())'elementStart'===_0x22f137[_0x2fc4a4][_0x4cae('0x9d')]?_0x22f137[_0x2fc4a4][_0x4cae('0x105')]['endIndex']=_0x295eaf[_0x4cae('0xe8')](_0x22f137[_0x2fc4a4]['pairId']):_0x4cae('0x15')===_0x22f137[_0x2fc4a4]['type']&&(_0x22f137[_0x2fc4a4]['item'][_0x4cae('0x7f')]=_0x295eaf[_0x4cae('0xe8')](_0x22f137[_0x2fc4a4]['pairId']));}[_0x4cae('0xa7')](_0x3e2eb7){for(let _0xf47f9b=0x0;_0xf47f9b<_0x3e2eb7['length'];_0xf47f9b++){if(_0x4cae('0x79')===_0x3e2eb7[_0xf47f9b]['type'])_0x3e2eb7[_0xf47f9b]['item']['startIndex']=_0xf47f9b;else{if(_0x4cae('0x15')===_0x3e2eb7[_0xf47f9b][_0x4cae('0x9d')]){_0x3e2eb7[_0xf47f9b][_0x4cae('0x105')][_0x4cae('0xeb')]=_0xf47f9b;const _0x17ba58=_0x3e2eb7[_0xf47f9b][_0x4cae('0x105')][_0x4cae('0x7f')];_0x3e2eb7[_0x17ba58][_0x4cae('0x101')]=_0x3e2eb7[_0xf47f9b]['id'],_0x3e2eb7[_0xf47f9b][_0x4cae('0x101')]=_0x3e2eb7[_0x17ba58]['id'];}else _0x3e2eb7[_0xf47f9b]['item']['startIndex']=_0xf47f9b,_0x3e2eb7[_0xf47f9b]['item']['endIndex']=_0xf47f9b,_0x3e2eb7[_0xf47f9b]['pairId']=null;}_0x3e2eb7[_0xf47f9b][_0x4cae('0x1e')]||(_0x3e2eb7[_0xf47f9b][_0x4cae('0x1e')]=[],_0x3e2eb7[_0xf47f9b][_0x4cae('0x2c')]=[]);}}[_0x4cae('0xfd')](_0x437400,_0x2ec651){const _0x237b8c=_0x437400[_0x4cae('0x6')](_0x190d50=>!_0x190d50[_0x4cae('0xbb')]);for(let _0x32cd25=0x0;_0x32cd25<_0x2ec651[_0x4cae('0x2a')];_0x32cd25++)_0x2ec651[_0x32cd25][_0x4cae('0xbb')]&&(_0x237b8c[_0x32cd25]['isAdded']=_0x2ec651[_0x32cd25]['isAdded']);}[_0x4cae('0xdc')](_0x5d616f){const _0x4d4fbc=JSON[_0x4cae('0xb3')](_0x5d616f),_0x3a1876=this[_0x4cae('0x56')][_0x4cae('0x11f')][_0x4cae('0x6f')]['document'],_0x26d11e=new _0x59097e(_0x3a1876,_0x4d4fbc[_0x4cae('0x51')](_0x5d3bed=>this[_0x4cae('0x34')](_0x5d3bed)));return this['editor']['data'][_0x4cae('0x1b')](_0x26d11e);}['_getViewObj'](_0x42018a){const _0x301ed2=this['editor'][_0x4cae('0x11f')]['view'][_0x4cae('0x6d')];if('string'==typeof _0x42018a)return new _0x4d154a(_0x301ed2,_0x42018a);{const _0x5cc147=_0x42018a[_0x4cae('0x55')]['map'](_0x13cfa3=>this[_0x4cae('0x34')](_0x13cfa3));return new(tt[_0x42018a[(_0x4cae('0x9d'))]]||_0x3fc0db)(_0x301ed2,_0x42018a[_0x4cae('0x3b')],_0x42018a[_0x4cae('0x64')],_0x5cc147);}}[_0x4cae('0x50')](_0x4fb2ba,_0x1d5ff9=null){const _0x593c64=this[_0x4cae('0x21')][_0x4cae('0x91')](_0x4fb2ba),_0x490c7f=_0x1d5ff9?this[_0x4cae('0x21')]['getRevision'](_0x1d5ff9):null,_0x155d27=this['_getRevisionsRange'](_0x593c64,_0x490c7f),_0x5b058d=_0x155d27[_0x155d27[_0x4cae('0x2a')]-0x1],_0x48e93b=new Map(),_0x33407d={'model':{},'attributes':{},'changes':[]},_0x567684=new Set(),_0x5666e8=new Map();for(let _0x2174e1=_0x155d27[_0x4cae('0x2a')]-0x1;_0x2174e1>=0x0;_0x2174e1--){const _0x134ddf=_0x155d27[_0x2174e1];for(const _0x4fee8f of Object['keys'](_0x134ddf['diffData']))if(_0x134ddf[_0x4cae('0x109')][_0x4fee8f][_0x4cae('0x94')]){const _0x589435=_0x134ddf[_0x4cae('0x109')][_0x4fee8f][_0x4cae('0x94')];_0x589435['isAttached']?(_0x567684['add'](_0x4fee8f),_0x5666e8[_0x4cae('0xac')](_0x4fee8f)&&_0x5666e8[_0x4cae('0xe8')](_0x4fee8f)[_0x4cae('0x57')]==_0x589435[_0x4cae('0x57')]?_0x5666e8['delete'](_0x4fee8f):_0x5666e8['set'](_0x4fee8f,_0x589435)):_0x5666e8[_0x4cae('0xac')](_0x4fee8f)?(_0x567684[_0x4cae('0x60')](_0x4fee8f),_0x5666e8[_0x4cae('0x60')](_0x4fee8f)):(_0x567684['add'](_0x4fee8f),_0x5666e8[_0x4cae('0x40')](_0x4fee8f,_0x589435));}else _0x567684[_0x4cae('0xf6')](_0x4fee8f);}for(const _0x1cc32a of _0x567684){const _0x576d12=_0x5666e8[_0x4cae('0xac')](_0x1cc32a)&&!_0x5666e8['get'](_0x1cc32a)[_0x4cae('0x89')];let _0x21a300=_0x576d12?_0x155d27[_0x4cae('0x2a')]-0x1:0x0;const _0x23774d=_0x576d12?-0x1:0x1;for(;_0x155d27[_0x21a300];){const _0x3902e6=_0x155d27[_0x21a300];if(_0x3902e6[_0x4cae('0x109')][_0x1cc32a]){const _0x23869c=_0x576d12?_0x3902e6[_0x4cae('0x109')][_0x1cc32a][_0x4cae('0x22')]:_0x3902e6[_0x4cae('0x109')][_0x1cc32a][_0x4cae('0x113')];_0x33407d[_0x4cae('0x64')][_0x1cc32a]=_0x23869c?_0x31bbc2(_0x23869c):{};break;}_0x21a300+=_0x23774d;}}for(const _0x346757 of _0x155d27){_0x346757[_0x4cae('0x17')]={};for(const _0x49530f of _0x346757[_0x4cae('0x53')])_0x48e93b[_0x4cae('0x40')](_0x49530f['id'],_0x49530f);for(const _0xb9b63d of _0x567684){const _0x162918=_0x346757['diffData'][_0xb9b63d]?_0x346757[_0x4cae('0x109')][_0xb9b63d][_0x4cae('0x4')]:'[]',_0x3e9142=_0x346757['diffData'][_0xb9b63d]?_0x346757[_0x4cae('0x109')][_0xb9b63d][_0x4cae('0xa6')]:'[]';_0x346757[_0x4cae('0x17')][_0xb9b63d]={'insertions':this['_makeModelFromViewString'](_0x162918),'deletions':this['_makeModelFromViewString'](_0x3e9142)};}}for(const _0x14f81c of _0x567684){let _0x2bcbe9=null,_0x2cd8ce=0x0;const _0x352540=new Map(Array[_0x4cae('0x52')](_0x593c64['model'][_0x14f81c]['insertions'][_0x4cae('0x67')])[_0x4cae('0x6')](([_0x336b83])=>!_0x336b83[_0x4cae('0xbc')](_0x4cae('0xf1'))));let _0x27fc18=0x0;for(const _0x51331a of _0x155d27){const _0x1ff894=this['_makeTape'](_0x51331a[_0x4cae('0x17')][_0x14f81c][_0x4cae('0x4')]);_0x51331a==_0x593c64?(_0x2bcbe9=_0x1ff894,_0x2cd8ce=_0x2bcbe9[_0x4cae('0x2a')],_0x2bcbe9['forEach'](_0x24e24f=>{_0x24e24f['id']=_0x27fc18++;}),this[_0x4cae('0xa7')](_0x2bcbe9)):this[_0x4cae('0xfd')](_0x2bcbe9,_0x1ff894);const _0x5d2513=_0x2bcbe9['filter'](_0x4fcbc9=>!_0x4fcbc9[_0x4cae('0xbb')])[_0x4cae('0x51')](_0x7860c1=>_0x7860c1['id']);let _0x315a79=0x0;const _0x4880a2=this[_0x4cae('0xba')](_0x51331a['model'][_0x14f81c][_0x4cae('0xa6')]);_0x4880a2['forEach'](_0x36f9cb=>{_0x36f9cb[_0x4cae('0xf7')]?_0x36f9cb['id']=_0x2cd8ce++:_0x36f9cb['id']=_0x5d2513[_0x315a79++];}),this[_0x4cae('0xa7')](_0x4880a2),this['_setDistance'](_0x2bcbe9,_0x4cae('0xbb')),this[_0x4cae('0xda')](_0x4880a2,_0x4cae('0xf7')),_0x51331a==_0x593c64&&this[_0x4cae('0xc7')](_0x2bcbe9,_0x352540),_0x2bcbe9=this['_joinTapes'](_0x2bcbe9,_0x4880a2),this[_0x4cae('0x42')](_0x2bcbe9),this[_0x4cae('0xda')](_0x2bcbe9,_0x4cae('0xf7'));}_0x2bcbe9=_0x2bcbe9[_0x4cae('0x6')](_0x2d98d4=>!(_0x2d98d4[_0x4cae('0xbb')]&&_0x2d98d4['isRemoved']));const _0x3b764c=new Map(_0x5b058d[_0x4cae('0x17')][_0x14f81c][_0x4cae('0xa6')][_0x4cae('0x67')]),_0x3fa81f=new Set(_0x352540[_0x4cae('0x3d')]());for(const _0x40407a of _0x3b764c[_0x4cae('0x3d')]())_0x3fa81f['delete'](_0x40407a);this[_0x4cae('0x10a')](_0x2bcbe9,_0x3fa81f),this[_0x4cae('0x9c')](_0x2bcbe9),_0x2bcbe9=this[_0x4cae('0x2f')](_0x2bcbe9),_0x2bcbe9=this[_0x4cae('0xe9')](_0x2bcbe9),_0x2bcbe9=this[_0x4cae('0xf')](_0x2bcbe9);const {root:_0x2b3c85,changes:_0x2321b0}=this[_0x4cae('0x19')](_0x2bcbe9,_0x48e93b,_0x14f81c);_0x33407d[_0x4cae('0x17')][_0x14f81c]=_0x2b3c85;const _0x546f62=_0x5666e8[_0x4cae('0xe8')](_0x14f81c);if(_0x546f62){const _0x1a5d77=_0x48e93b['get'](_0x546f62[_0x4cae('0x57')]),_0x5c1234=new _0x2d657f({'author':_0x1a5d77,'type':_0x546f62[_0x4cae('0x89')]?_0x4cae('0xf6'):_0x4cae('0x5d'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x14f81c});_0x2321b0['unshift'](_0x5c1234),_0x33407d[_0x4cae('0x64')][_0x14f81c][_0x4cae('0x3f')]=_0x5c1234['id'];}_0x33407d[_0x4cae('0x102')]=_0x33407d[_0x4cae('0x102')]['concat'](_0x2321b0);}return _0x33407d;}[_0x4cae('0xc7')](_0x516785,_0x310bdc){for(let _0x1acce6=0x0;_0x1acce6<_0x516785[_0x4cae('0x2a')];_0x1acce6++)for(const [_0x58b78d,_0x77079f]of _0x310bdc)_0x77079f['start'][_0x4cae('0x16')](_0x516785[_0x1acce6][_0x4cae('0x2')])&&_0x516785[_0x1acce6][_0x4cae('0x1e')][_0x4cae('0xfb')](_0x58b78d),_0x77079f['end'][_0x4cae('0x16')](_0x516785[_0x1acce6][_0x4cae('0x8a')])&&_0x516785[_0x1acce6][_0x4cae('0x2c')]['push'](_0x58b78d);}[_0x4cae('0x32')](_0x47fd48,_0x439543){let _0x7aa96e=[],_0x4f2898=0x0,_0x42fb72=0x0;for(;_0x4f2898<_0x47fd48[_0x4cae('0x2a')]||_0x42fb72<_0x439543[_0x4cae('0x2a')];){const _0x464817=_0x47fd48[_0x4f2898]||{},_0x1d1b1e=_0x439543[_0x42fb72]||{};if(_0x464817['id']==_0x1d1b1e['id'])_0x4f2898++,_0x42fb72++,_0x7aa96e['push'](_0x464817);else{if(_0x1d1b1e[_0x4cae('0xf7')]&&_0x464817['isAdded']){const {commonTape:_0x2da196,iEnd:_0x4e59eb,jEnd:_0x4274c1}=this[_0x4cae('0x70')](_0x47fd48,_0x4f2898,_0x439543,_0x42fb72);_0x7aa96e=_0x7aa96e[_0x4cae('0x4a')](_0x2da196),_0x4f2898=_0x4e59eb,_0x42fb72=_0x4274c1;}else _0x1d1b1e[_0x4cae('0xf7')]?(_0x42fb72++,_0x7aa96e[_0x4cae('0xfb')](_0x1d1b1e)):(_0x4f2898++,_0x7aa96e[_0x4cae('0xfb')](_0x464817));}}return _0x7aa96e;}[_0x4cae('0x10a')](_0x187f70,_0x268be1){const _0x36b890=[];for(let _0x1d7e42=0x0;_0x1d7e42<_0x187f70['length'];_0x1d7e42++){for(let _0x41a182=0x0;_0x41a182<_0x187f70[_0x1d7e42][_0x4cae('0x1e')][_0x4cae('0x2a')];_0x41a182++){const _0x465ede=_0x187f70[_0x1d7e42][_0x4cae('0x1e')][_0x41a182];if(!_0x268be1[_0x4cae('0xac')](_0x465ede))continue;const {group:_0x19b54b,type:_0xb1e171,authorId:_0x408cf9}=_0x293e48(_0x465ede);_0x4cae('0x75')!=_0x19b54b||'insertion'!=_0xb1e171&&_0x4cae('0xd0')!=_0xb1e171||(_0x36b890[_0x4cae('0xee')]({'type':_0xb1e171,'name':_0x465ede,'userId':_0x408cf9}),_0x187f70[_0x1d7e42][_0x4cae('0x1e')][_0x4cae('0xa8')](_0x41a182,0x1),_0x41a182--);}_0xe305f1(_0x187f70[_0x1d7e42]);for(let _0x5683c5=0x0;_0x5683c5<_0x187f70[_0x1d7e42]['markersEnd'][_0x4cae('0x2a')];_0x5683c5++){const _0x37cb7f=_0x187f70[_0x1d7e42][_0x4cae('0x2c')][_0x5683c5];if(!_0x268be1[_0x4cae('0xac')](_0x37cb7f))continue;const {group:_0x330bc5,type:_0xb607aa}=_0x293e48(_0x37cb7f);if(_0x4cae('0x75')!=_0x330bc5||_0x4cae('0xd3')!=_0xb607aa&&'deletion'!=_0xb607aa)continue;_0x187f70[_0x1d7e42][_0x4cae('0x2c')][_0x4cae('0xa8')](_0x5683c5,0x1),_0x5683c5--;const _0x29fa45=_0x36b890['findIndex'](_0x91c912=>_0x91c912[_0x4cae('0x3b')]==_0x37cb7f);_0x29fa45>-0x1&&_0x36b890[_0x4cae('0xa8')](_0x29fa45,0x1);}}function _0x293e48(_0x2b082c){const _0xf242f8=_0x2b082c['split'](':');return{'group':_0xf242f8[0x0],'type':_0xf242f8[0x1],'subType':_0xf242f8[_0x4cae('0x2a')]>=0x5?_0xf242f8[0x2]:null,'id':_0xf242f8[_0x4cae('0x2a')]<0x5?_0xf242f8[0x2]:_0xf242f8[0x3],'authorId':_0xf242f8[_0x4cae('0x2a')]<0x5?_0xf242f8[0x3]:_0xf242f8[0x4],'markerCount':0x6==_0xf242f8[_0x4cae('0x2a')]?_0xf242f8[0x5]:null};}function _0xe305f1(_0x39b6cb){for(let _0x226bdf=0x0;_0x226bdf<_0x36b890[_0x4cae('0x2a')];_0x226bdf++){if(_0x39b6cb[_0x4cae('0xbb')]&&_0x4cae('0xd3')==_0x36b890[_0x226bdf][_0x4cae('0x9d')])return _0x39b6cb[_0x4cae('0xc2')]=_0x36b890[_0x226bdf],void delete _0x39b6cb['isAdded'];if(!_0x39b6cb[_0x4cae('0xbb')]&&!_0x39b6cb[_0x4cae('0xf7')]&&_0x4cae('0xd0')==_0x36b890[_0x226bdf][_0x4cae('0x9d')])return void(_0x39b6cb[_0x4cae('0xf5')]=_0x36b890[_0x226bdf]);}}}[_0x4cae('0xda')](_0x2df8e0,_0x95709){let _0xf20cc1=0x0,_0x5ddae3=!0x1;const _0x390203=new Map();for(const _0x2eb7aa of _0x2df8e0)_0x2eb7aa[_0x95709]?_0x5ddae3&&(_0xf20cc1++,_0x5ddae3=!0x1):(_0xf20cc1++,_0x5ddae3=!0x0),_0x390203[_0x4cae('0x40')](_0x2eb7aa['id'],_0xf20cc1);for(let _0x22ca8e=0x0;_0x22ca8e<_0x2df8e0[_0x4cae('0x2a')];_0x22ca8e++){if(_0x4cae('0xf7')==_0x95709&&_0x2df8e0[_0x22ca8e][_0x4cae('0xbb')]||'isAdded'==_0x95709&&_0x2df8e0[_0x22ca8e]['isRemoved'])continue;if(_0x4cae('0x7')==_0x2df8e0[_0x22ca8e][_0x4cae('0x9d')]){_0x2df8e0[_0x22ca8e][_0x4cae('0x118')]=0x0;continue;}const _0x3f8f50=_0x390203[_0x4cae('0xe8')](_0x2df8e0[_0x22ca8e]['pairId']),_0x1b1964=_0x390203[_0x4cae('0xe8')](_0x2df8e0[_0x22ca8e]['id']);_0x2df8e0[_0x22ca8e][_0x4cae('0x118')]=_0x3f8f50-_0x1b1964;}}[_0x4cae('0x1d')](_0x2f5e2f,_0x56fc1e,_0xd05c9a=!0x1){const _0x78a8a1=[];let _0x1e0734=this[_0x4cae('0x21')][_0x4cae('0x103')](_0x2f5e2f),_0x26d948=this[_0x4cae('0x21')][_0x4cae('0x103')](_0x56fc1e);for(-0x1==_0x26d948&&(_0x26d948=this[_0x4cae('0x21')][_0x4cae('0x78')][_0x4cae('0x2a')],_0xd05c9a=!0x1);_0x1e0734<_0x26d948;)_0x78a8a1[_0x4cae('0xfb')](this['repository'][_0x4cae('0x91')](_0x1e0734)),_0x1e0734++;return _0xd05c9a&&_0x78a8a1[_0x4cae('0xfb')](this[_0x4cae('0x21')][_0x4cae('0x91')](_0x1e0734)),_0x78a8a1;}[_0x4cae('0x70')](_0x35ec06,_0x2f60c4,_0xa51b35,_0x1c42d0){const _0x1e68d3=this['editor'][_0x4cae('0x17')][_0x4cae('0xc0')];let _0x56636c=_0x2f60c4;for(;_0x35ec06[_0x56636c]&&_0x35ec06[_0x56636c][_0x4cae('0xbb')];)_0x56636c++;let _0x3ac38b=_0x1c42d0;for(;_0xa51b35[_0x3ac38b]&&_0xa51b35[_0x3ac38b]['isRemoved'];)_0x3ac38b++;_0x425fe8(_0x35ec06,_0x2f60c4,_0x56636c),_0x425fe8(_0xa51b35,_0x1c42d0,_0x3ac38b);const _0x25fc05=_0xa51b35[_0x4cae('0xc5')](_0x1c42d0,_0x3ac38b)[_0x4cae('0x4a')](_0x35ec06[_0x4cae('0xc5')](_0x2f60c4,_0x56636c));return _0x25fc05[_0x4cae('0x7d')]((_0x25a343,_0x28a617)=>_0x25a343[_0x4cae('0xe3')]!=_0x28a617[_0x4cae('0xe3')]?_0x25a343[_0x4cae('0xe3')]-_0x28a617[_0x4cae('0xe3')]:_0x25a343[_0x4cae('0x1c')]!=_0x28a617[_0x4cae('0x1c')]?_0x25a343['level']-_0x28a617[_0x4cae('0x1c')]:_0x25a343[_0x4cae('0x118')]!=_0x28a617['distance']?_0x28a617['distance']-_0x25a343[_0x4cae('0x118')]:!!_0x25a343[_0x4cae('0xbb')]!=!!_0x28a617[_0x4cae('0xbb')]?-0x1==_0x25a343[_0x4cae('0xe3')]||0x0==_0x25a343[_0x4cae('0xe3')]?_0x25a343[_0x4cae('0xbb')]?-0x1:0x1:_0x25a343['isAdded']?0x1:-0x1:_0x25a343[_0x4cae('0xcd')]-_0x28a617[_0x4cae('0xcd')]),{'commonTape':_0x25fc05,'iEnd':_0x56636c,'jEnd':_0x3ac38b};function _0x425fe8(_0xb069df,_0x3a5eb2,_0x1ed488){let _0x2328dc=-0x1,_0x136fa3=Number[_0x4cae('0x71')],_0x5d6488=!0x0;for(let _0x1bbe80=_0x3a5eb2;_0x1bbe80<_0x1ed488;_0x1bbe80++)if(_0x1e68d3[_0x4cae('0x5c')](_0xb069df[_0x1bbe80][_0x4cae('0x105')])||(_0x5d6488=!0x1),_0xb069df[_0x1bbe80][_0x4cae('0x105')][_0x4cae('0x7f')]<_0x3a5eb2&&(_0x2328dc=_0x1bbe80),_0xb069df[_0x1bbe80][_0x4cae('0x105')][_0x4cae('0xeb')]>=_0x1ed488){_0x136fa3=_0x1bbe80;break;}_0x5d6488&&(_0x2328dc=_0x1ed488-0x1);for(let _0x1627fd=_0x3a5eb2;_0x1627fd<_0x1ed488;_0x1627fd++)_0xb069df[_0x1627fd][_0x4cae('0xe3')]=_0x1627fd<=_0x2328dc?-0x1:_0x1627fd<_0x136fa3?0x0:0x1,_0xb069df[_0x1627fd][_0x4cae('0xcd')]=_0x1627fd;let _0x423c60=0x0;for(let _0x1586b5=_0x3a5eb2;_0x1586b5<=_0x2328dc;_0x1586b5++)0x0==_0xb069df[_0x1586b5][_0x4cae('0x118')]?_0xb069df[_0x1586b5][_0x4cae('0x1c')]=_0x423c60:(_0x423c60++,_0xb069df[_0x1586b5][_0x4cae('0x1c')]=_0x423c60,_0x423c60++);for(let _0x13010b=_0x3a5eb2;_0x13010b<_0x1ed488;_0x13010b++)0x0==_0xb069df[_0x13010b][_0x4cae('0xe3')]&&(_0xb069df[_0x13010b][_0x4cae('0x1c')]=_0x423c60);_0x423c60=0x0;for(let _0x6cf85=_0x1ed488-0x1;_0x6cf85>=_0x136fa3;_0x6cf85--)0x0==_0xb069df[_0x6cf85]['distance']?_0xb069df[_0x6cf85]['level']=_0x423c60:(_0x423c60--,_0xb069df[_0x6cf85]['level']=_0x423c60,_0x423c60--);}}[_0x4cae('0x9c')](_0x113484){const _0x526653=new Map(),_0x271e7c=this[_0x4cae('0x56')][_0x4cae('0x17')][_0x4cae('0xc0')];for(let _0x675f52=0x1;_0x675f52<_0x113484[_0x4cae('0x2a')];_0x675f52++){let _0x30653a,_0x309f6d,_0x5185df;const _0x181e3d=_0x113484[_0x675f52],_0x34ed73=_0x113484[_0x675f52-0x1];if(_0x4cae('0x7')==_0x181e3d['type'])continue;if(_0x181e3d['type']!=_0x34ed73[_0x4cae('0x9d')])continue;if(!_0x271e7c[_0x4cae('0x8e')](_0x34ed73[_0x4cae('0x105')])||_0x271e7c[_0x4cae('0x35')](_0x34ed73[_0x4cae('0x105')]))continue;if(!_0x271e7c[_0x4cae('0x8e')](_0x181e3d[_0x4cae('0x105')])||_0x271e7c['isLimit'](_0x181e3d[_0x4cae('0x105')]))continue;if((_0x113484[_0x675f52][_0x4cae('0xbb')]||_0x113484[_0x675f52]['isAddSuggestion'])&&_0x113484[_0x675f52-0x1][_0x4cae('0xf7')])_0x30653a=_0x113484[_0x675f52],_0x309f6d=_0x113484[_0x675f52-0x1],_0x5185df=_0x675f52-0x1;else{if(!_0x113484[_0x675f52][_0x4cae('0xf7')]||!_0x113484[_0x675f52-0x1][_0x4cae('0xbb')]&&!_0x113484[_0x675f52-0x1][_0x4cae('0xc2')])continue;_0x30653a=_0x113484[_0x675f52-0x1],_0x309f6d=_0x113484[_0x675f52],_0x5185df=_0x675f52;}const _0x1fc10b=_0x30653a[_0x4cae('0x1c')]==_0x309f6d[_0x4cae('0x1c')],_0x18d2ea=Math['abs'](_0x30653a[_0x4cae('0x1c')])<Math[_0x4cae('0x3a')](_0x309f6d[_0x4cae('0x1c')])&&0x0==_0x309f6d['distance'];(_0x1fc10b||_0x18d2ea)&&(_0x526653[_0x4cae('0x40')](_0x309f6d['id'],_0x30653a['id']),_0x113484['splice'](_0x5185df,0x1),_0x675f52--,_0x30653a[_0x4cae('0xbb')]=!0x1);}for(let _0x3c9a34=0x0;_0x3c9a34<_0x113484[_0x4cae('0x2a')];_0x3c9a34++)_0x526653[_0x4cae('0xac')](_0x113484[_0x3c9a34][_0x4cae('0x101')])&&(_0x113484[_0x3c9a34][_0x4cae('0x101')]=_0x526653[_0x4cae('0xe8')](_0x113484[_0x3c9a34][_0x4cae('0x101')]));}[_0x4cae('0x2f')](_0x4442d1){const _0x35884e=new Set(_0x4442d1[_0x4cae('0x51')](_0x55d940=>_0x55d940['id']));for(let _0x563eaf=0x0;_0x563eaf<_0x4442d1['length'];_0x563eaf++)_0x35884e['has'](_0x4442d1[_0x563eaf]['pairId'])||0x0==_0x4442d1[_0x563eaf]['distance']||(_0x4442d1[_0x563eaf][_0x4cae('0x10b')]=!0x0);return _0x4442d1[_0x4cae('0x6')](_0x3b5cb6=>!_0x3b5cb6[_0x4cae('0x10b')]);}['_markMismatchedRemovedTags'](_0x167aec){const _0x110880=new Set();for(let _0x5401c7=0x0;_0x5401c7<_0x167aec[_0x4cae('0x2a')];_0x5401c7++){if(_0x110880['has'](_0x167aec[_0x5401c7]['id'])&&_0x167aec[_0x5401c7][_0x4cae('0xf7')]&&(_0x167aec[_0x5401c7][_0x4cae('0x10b')]=!0x0),_0x167aec[_0x5401c7][_0x4cae('0x10b')])continue;if(0x0==_0x167aec[_0x5401c7][_0x4cae('0x118')])continue;if(_0x4cae('0x79')!=_0x167aec[_0x5401c7][_0x4cae('0x9d')])continue;if(null==_0x167aec[_0x5401c7][_0x4cae('0x101')])continue;let _0x2ac949=_0x5401c7+0x1,_0x102996=0x0;for(;_0x167aec[_0x2ac949]['id']!=_0x167aec[_0x5401c7][_0x4cae('0x101')];)_0x4cae('0x79')==_0x167aec[_0x2ac949][_0x4cae('0x9d')]?_0x102996++:_0x4cae('0x15')==_0x167aec[_0x2ac949][_0x4cae('0x9d')]&&_0x102996--,_0x2ac949++;if(0x0!=_0x102996){if(_0x167aec[_0x5401c7][_0x4cae('0xf7')])_0x167aec[_0x5401c7][_0x4cae('0x10b')]=!0x0;else for(;_0x2ac949!=_0x5401c7;)_0x167aec[_0x2ac949]['isRemoved']&&0x0!=_0x167aec[_0x2ac949][_0x4cae('0x118')]&&(_0x167aec[_0x2ac949][_0x4cae('0x10b')]=!0x0,_0x110880[_0x4cae('0xf6')](_0x167aec[_0x2ac949][_0x4cae('0x101')])),_0x2ac949--;}}return _0x167aec[_0x4cae('0x6')](_0x48cc82=>!_0x48cc82[_0x4cae('0x10b')]);}[_0x4cae('0xf')](_0xf57dc3){const _0x2248d3=this[_0x4cae('0x56')]['model']['schema'];for(let _0x4a70af=0x0;_0x4a70af<_0xf57dc3['length'];_0x4a70af++){if(!(_0xf57dc3[_0x4a70af]['isAdded']||_0xf57dc3[_0x4a70af]['isAddSuggestion']||_0xf57dc3[_0x4a70af]['isRemoved']||_0xf57dc3[_0x4a70af][_0x4cae('0xf5')]))continue;if(0x0==_0xf57dc3[_0x4a70af][_0x4cae('0x118')])continue;const _0x608cc9=_0xf57dc3[_0x4a70af][_0x4cae('0x105')];_0x2248d3['isBlock'](_0x608cc9)||_0x2248d3[_0x4cae('0x35')](_0x608cc9)||(_0xf57dc3[_0x4a70af][_0x4cae('0xbb')]&&delete _0xf57dc3[_0x4a70af][_0x4cae('0xbb')],_0xf57dc3[_0x4a70af]['isAddSuggestion']&&delete _0xf57dc3[_0x4a70af][_0x4cae('0xc2')],_0xf57dc3[_0x4a70af][_0x4cae('0xf5')]&&delete _0xf57dc3[_0x4a70af]['isRemoveSuggestion'],_0xf57dc3[_0x4a70af]['isRemoved']&&(_0xf57dc3[_0x4a70af][_0x4cae('0x10b')]=!0x0));}return _0xf57dc3[_0x4cae('0x6')](_0x5c53ff=>!_0x5c53ff[_0x4cae('0x10b')]);}['_makeModelFromTape'](_0x56a986,_0x32e8cc,_0x10efe9){const _0x1e3813=new _0x1c5439(),_0x39255b=[],_0x3fe5c5=new Map(),_0xe5a3c5=this[_0x4cae('0x56')]['model'],_0x5bdb9b=_0xe5a3c5[_0x4cae('0xc0')],_0x31b541=[_0x1e3813],_0x572722={},_0x16d2d9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x47123d=null;const _0x36a767=[0x0];for(let _0x2799fc=0x0;_0x2799fc<_0x56a986['length'];_0x2799fc++){let _0x2adacf,_0x56ac6a;if(_0x4cae('0x79')===_0x56a986[_0x2799fc][_0x4cae('0x9d')]){_0x2adacf=_0xe5a3c5[_0x4cae('0x108')](_0x1e3813,_0x36a767);const _0x21300c=new _0x48363b(_0x56a986[_0x2799fc][_0x4cae('0x105')][_0x4cae('0x3b')],_0x56a986[_0x2799fc][_0x4cae('0x105')][_0x4cae('0x39')]());_0x31b541[0x0][_0x4cae('0x23')](_0x21300c),_0x36a767['push'](0x0),_0x31b541[_0x4cae('0xee')](_0x21300c),_0x56ac6a=_0xe5a3c5[_0x4cae('0x108')](_0x1e3813,_0x36a767),_0x47123d=null;}else{if(_0x4cae('0x15')===_0x56a986[_0x2799fc][_0x4cae('0x9d')])_0x31b541[_0x4cae('0xe5')](),_0x2adacf=_0xe5a3c5[_0x4cae('0x108')](_0x1e3813,_0x36a767),_0x36a767['pop'](),_0x36a767[_0x36a767['length']-0x1]++,_0x56ac6a=_0xe5a3c5[_0x4cae('0x108')](_0x1e3813,_0x36a767),_0x47123d=null;else{if(_0x2adacf=_0xe5a3c5[_0x4cae('0x108')](_0x1e3813,_0x36a767),_0x47123d&&_0x594fc5(_0x47123d,_0x56a986[_0x2799fc]['item']))_0x47123d[_0x4cae('0x106')]+=_0x56a986[_0x2799fc]['item'][_0x4cae('0x1a')];else{const _0x23899a=new _0x5b4aab(_0x56a986[_0x2799fc][_0x4cae('0x105')][_0x4cae('0x1a')],_0x56a986[_0x2799fc][_0x4cae('0x105')][_0x4cae('0x39')]());_0x31b541[0x0][_0x4cae('0x23')](_0x23899a),_0x47123d=_0x23899a;}_0x36a767[_0x36a767[_0x4cae('0x2a')]-0x1]+=_0x56a986[_0x2799fc][_0x4cae('0x105')]['offsetSize'],_0x56ac6a=_0xe5a3c5[_0x4cae('0x108')](_0x1e3813,_0x36a767);}}for(const _0x483a6e of _0x56a986[_0x2799fc][_0x4cae('0x1e')])_0x3fe5c5[_0x4cae('0x40')](_0x483a6e,{'start':_0x2adacf,'end':null});_0x54b8d3(_0x4cae('0xf5'),_0x2799fc,_0x2adacf,_0x56ac6a),_0x54b8d3(_0x4cae('0xc2'),_0x2799fc,_0x2adacf,_0x56ac6a),_0x54b8d3('isRemoved',_0x2799fc,_0x2adacf,_0x56ac6a),_0x54b8d3(_0x4cae('0xbb'),_0x2799fc,_0x2adacf,_0x56ac6a);for(const _0xc57c75 of _0x56a986[_0x2799fc]['markersEnd']){_0x3fe5c5[_0x4cae('0xe8')](_0xc57c75)[_0x4cae('0xcb')]=_0x56ac6a;}}for(const [_0x9f332b,_0x578297]of _0x3fe5c5){const _0x16e615=this[_0x4cae('0x56')][_0x4cae('0x17')][_0x4cae('0xd6')](_0x578297['start'],_0x578297[_0x4cae('0xcb')]);_0x1e3813[_0x4cae('0x67')][_0x4cae('0x40')](_0x9f332b,_0x16e615);}return _0x39255b[_0x4cae('0x7d')]((_0x193a40,_0x3a0798)=>{const _0x126bc0=_0x1e3813['markers'][_0x4cae('0xe8')]('revision:'+_0x193a40['id']),_0x56656b=_0x1e3813['markers']['get'](_0x4cae('0xf1')+_0x3a0798['id']);return _0x126bc0['start'][_0x4cae('0x18')](_0x56656b[_0x4cae('0x29')])?-0x1:_0x126bc0[_0x4cae('0x29')][_0x4cae('0xb')](_0x56656b[_0x4cae('0x29')])?0x1:_0x126bc0[_0x4cae('0xcb')]['isBefore'](_0x56656b[_0x4cae('0xcb')])?-0x1:_0x126bc0[_0x4cae('0xcb')][_0x4cae('0xb')](_0x56656b[_0x4cae('0xcb')])?0x1:'add'===_0x193a40['type']?-0x1:0x1;}),{'root':_0x1e3813,'changes':_0x39255b};function _0x54b8d3(_0x387904,_0x1b667d,_0x4e31c4,_0x1a27a1){const _0x3a92e2=!!_0x56a986[_0x1b667d][_0x387904],_0x4d2aad=_0x3a92e2?_0x56a986[_0x1b667d][_0x387904][_0x4cae('0x57')]:null,_0x49c4f3=_0x1b667d===_0x56a986[_0x4cae('0x2a')]-0x1,_0x3c7306=_0x16d2d9[_0x387904][0x0],_0x32acdf=_0x5bdb9b[_0x4cae('0x25')](_0x56a986[_0x1b667d][_0x4cae('0x105')]);!_0x572722[_0x387904]&&_0x3a92e2?_0x572722[_0x387904]={'start':_0x4e31c4,'tapeItem':_0x56a986[_0x1b667d],'userId':_0x4d2aad,'type':_0x387904}:_0x572722[_0x387904]&&!_0x3a92e2?(_0x572722[_0x387904]['end']=_0x4e31c4,_0x13d325(_0x572722[_0x387904]),_0x572722[_0x387904]=null):_0x572722[_0x387904]&&_0x3a92e2&&_0x572722[_0x387904][_0x4cae('0x57')]!==_0x4d2aad&&(_0x572722[_0x387904]['end']=_0x4e31c4,_0x3c7306&&_0x3c7306[_0x4cae('0x57')]===_0x572722[_0x387904][_0x4cae('0x57')]||_0x13d325(_0x572722[_0x387904]),_0x572722[_0x387904]={'start':_0x4e31c4,'tapeItem':_0x56a986[_0x1b667d],'userId':_0x4d2aad,'type':_0x387904}),_0x572722[_0x387904]&&_0x32acdf&&('elementStart'!==_0x56a986[_0x1b667d]['type']||_0x3c7306&&_0x3c7306['userId']===_0x4d2aad||_0x16d2d9[_0x387904][_0x4cae('0xee')]({'userId':_0x4d2aad,'object':_0x56a986[_0x1b667d]['item'],'change':_0x572722[_0x387904]}),_0x4cae('0x15')===_0x56a986[_0x1b667d][_0x4cae('0x9d')]&&_0x3c7306&&_0x3c7306['object']===_0x56a986[_0x1b667d][_0x4cae('0x105')]&&(_0x16d2d9[_0x387904]['shift'](),_0x572722[_0x387904]=_0x3c7306[_0x4cae('0x69')])),_0x572722[_0x387904]&&_0x49c4f3&&(_0x572722[_0x387904][_0x4cae('0xcb')]=_0x1a27a1,_0x13d325(_0x572722[_0x387904]),_0x572722[_0x387904]=null);}function _0x13d325({start:_0x21dd00,end:_0x11b937,tapeItem:_0x15f046,userId:_0x7f5b7f,type:_0x40ba93}){const _0x225dd2=_0x15f046['item'],_0x18b465=_0xe5a3c5['schema'][_0x4cae('0x8e')](_0x225dd2)&&!_0xe5a3c5[_0x4cae('0xc0')][_0x4cae('0x35')](_0x225dd2),_0x26eb32=_0x21dd00['nodeAfter']==_0x11b937['parent']&&_0x11b937[_0x4cae('0x4b')];if(_0x18b465&&_0x26eb32)return;const _0x5e6684=_0xe5a3c5[_0x4cae('0xd6')](_0x21dd00,_0x11b937),_0x42d77a=_0x32e8cc[_0x4cae('0xe8')](_0x7f5b7f),_0x180355=new _0x2d657f({'author':_0x42d77a,'type':_0x4cae('0xbb')==_0x40ba93||_0x4cae('0xc2')==_0x40ba93?'add':'remove','data':{'isSuggestion':_0x4cae('0xc2')==_0x40ba93||_0x4cae('0xf5')==_0x40ba93},'createdAt':new Date(),'rootName':_0x10efe9});_0x39255b[_0x4cae('0xfb')](_0x180355),_0x1e3813[_0x4cae('0x67')]['set']('revision:'+_0x180355['id'],_0x5e6684);}function _0x594fc5(_0xd03074,_0x34270a){const _0x88fd79=_0xd03074[_0x4cae('0x39')](),_0x177b87=_0x34270a[_0x4cae('0x39')]();for(const _0x2a3896 of _0x88fd79){if(_0x2a3896[0x1]!==_0x34270a[_0x4cae('0x5e')](_0x2a3896[0x0]))return!0x1;_0x177b87[_0x4cae('0x11a')]();}return _0x177b87[_0x4cae('0x11a')]()[_0x4cae('0xb2')];}}['_setConversion'](){this[_0x4cae('0x56')][_0x4cae('0x6e')][_0x4cae('0xc3')](_0x4cae('0x5f'))['dataToMarker']({'view':_0x4cae('0xb6')}),this[_0x4cae('0x56')][_0x4cae('0x6e')][_0x4cae('0xc3')](_0x4cae('0x99'))[_0x4cae('0x110')]({'model':_0x4cae('0xb6'),'view':_0x3e4a36=>{const _0x2c616=_0x3e4a36[_0x4cae('0x85')][_0x4cae('0xca')](':')[0x1],_0x4aab7e=this[_0x4cae('0x41')](_0x2c616);if(!_0x4aab7e)return null;const _0x38a767=_0x4cae('0xf6')==_0x4aab7e[_0x4cae('0x9d')]?_0x4cae('0xd3'):_0x4cae('0xd0'),_0x75207a=['ck-suggestion-marker',_0x4cae('0xf3')+_0x38a767];return _0x4aab7e[_0x4cae('0x1a')][_0x4cae('0x11e')]&&_0x75207a[_0x4cae('0xfb')](_0x4cae('0xf3')+_0x38a767+_0x4cae('0x49')),this[_0x4cae('0x59')]==_0x4aab7e&&_0x75207a[_0x4cae('0xfb')](_0x4cae('0x6a')),{'classes':_0x75207a,'attributes':{'data-change-id':_0x2c616}};}}),this[_0x4cae('0x56')][_0x4cae('0x6e')][_0x4cae('0xc3')](_0x4cae('0x5f'))['add'](_0x4e7178=>{_0x4e7178['on'](_0x4cae('0xaf'),(_0x5f1027,_0x49c8e1,_0x3cf44a)=>{const _0x421c5b=_0x49c8e1[_0x4cae('0x4d')][_0x4cae('0x12')](0x0);if(!_0x421c5b||!_0x421c5b['is'](_0x4cae('0x80'),_0x4cae('0xab')))return;if(!_0x3cf44a[_0x4cae('0x87')][_0x4cae('0x5b')](_0x421c5b,{'attributes':[_0x4cae('0x33'),_0x4cae('0x27')]}))return;const _0x4f34c2=_0x49c8e1[_0x4cae('0xa5')][_0x4cae('0x29')][_0x4cae('0xe')];_0x3cf44a[_0x4cae('0x11')][_0x4cae('0xa2')]('vid_start',_0x421c5b[_0x4cae('0x5e')](_0x4cae('0x33')),_0x4f34c2),_0x3cf44a[_0x4cae('0x11')][_0x4cae('0xa2')](_0x4cae('0x27'),_0x421c5b[_0x4cae('0x5e')](_0x4cae('0x27')),_0x4f34c2);},{'priority':_0x4cae('0xc1')});}),this[_0x4cae('0x56')][_0x4cae('0x6e')][_0x4cae('0xc3')](_0x4cae('0x5f'))[_0x4cae('0xf6')](_0xdfb1f1=>{_0xdfb1f1['on'](_0x4cae('0x80'),(_0x1d43b5,_0x2b6586,_0x397632)=>{if(!_0x397632[_0x4cae('0x87')][_0x4cae('0x5b')](_0x2b6586['viewItem'],{'attributes':[_0x4cae('0x33'),_0x4cae('0x27')]}))return;if(_0x2b6586[_0x4cae('0xa5')][_0x4cae('0x10f')])return;const _0x1e6f7b=_0x2b6586[_0x4cae('0xa5')][_0x4cae('0x29')]['nodeAfter'];_0x1e6f7b[_0x4cae('0xa0')]('vid_start')||_0x1e6f7b[_0x4cae('0xa0')](_0x4cae('0x5a'))||(_0x397632['writer'][_0x4cae('0xa2')](_0x4cae('0x33'),_0x2b6586[_0x4cae('0x4d')][_0x4cae('0x5e')](_0x4cae('0x33')),_0x1e6f7b),_0x397632[_0x4cae('0x11')][_0x4cae('0xa2')](_0x4cae('0x27'),_0x2b6586['viewItem']['getAttribute'](_0x4cae('0x27')),_0x1e6f7b));},{'priority':_0x4cae('0xc1')});}),this[_0x4cae('0x56')]['conversion'][_0x4cae('0xc3')](_0x4cae('0x5f'))[_0x4cae('0x4c')]({'view':{'name':_0x4cae('0xdb'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5c154f=>_0x5c154f[_0x4cae('0x5e')](_0x4cae('0x5a'))}}),this[_0x4cae('0x56')][_0x4cae('0x17')][_0x4cae('0xc0')]['on'](_0x4cae('0xa1'),(_0x333dbc,[,_0x48679e])=>{[_0x4cae('0x33'),_0x4cae('0x27'),_0x4cae('0x5a')][_0x4cae('0xf4')](_0x48679e)&&(_0x333dbc[_0x4cae('0x104')]=!0x0,_0x333dbc['stop']());},{'priority':'highest'}),this[_0x4cae('0x56')][_0x4cae('0x6e')][_0x4cae('0xc3')](_0x4cae('0x63'))[_0x4cae('0xf6')](_0x305067=>{_0x305067['on'](_0x4cae('0x4f'),(_0x517f7c,_0x41aad8,_0x38683d)=>{if('\x20'!=_0x41aad8[_0x4cae('0x105')][_0x4cae('0x1a')]||_0x41aad8['item'][_0x4cae('0x76')]['maxOffset']>0x1)return;if(!_0x38683d[_0x4cae('0x87')][_0x4cae('0x5b')](_0x41aad8[_0x4cae('0x105')],_0x517f7c['name']))return;const _0x42d040=_0x38683d[_0x4cae('0x11')],_0x5a4470=_0x38683d[_0x4cae('0xed')][_0x4cae('0xcc')](_0x41aad8['range']);_0x42d040[_0x4cae('0xb9')](_0x5a4470,_0x42d040[_0x4cae('0x66')](_0x4cae('0xdb')));});}),this[_0x4cae('0x56')]['conversion'][_0x4cae('0xc3')](_0x4cae('0x63'))[_0x4cae('0xfe')]({'model':'revision'}),this[_0x4cae('0x56')][_0x4cae('0x11f')][_0x4cae('0xf2')]['on'](_0x4cae('0xc4'),function(_0x4b34c8){const _0x1365d9=_0x4b34c8['plugins']['get'](_0x4cae('0xe6'));return(_0x16b688,_0x566805,_0x3a9d65)=>{const _0x317362=_0x566805[_0x4cae('0x85')][_0x4cae('0xca')](':')[0x1],_0x2e8c82=_0x1365d9['_getChangeFromId'](_0x317362);if(!_0x2e8c82)return null;const _0x1ea819=_0x4cae('0xf6')==_0x2e8c82[_0x4cae('0x9d')]?_0x4cae('0xca'):_0x4cae('0xb7');if(!_0x3a9d65[_0x4cae('0x87')]['test'](_0x566805[_0x4cae('0xea')],_0x16b688['name']))return;const _0x1dd655=_0x566805[_0x4cae('0xea')][_0x4cae('0x44')](),_0x46d68f=_0x566805[_0x4cae('0xea')][_0x4cae('0x29')],_0x21998c=_0x4b34c8[_0x4cae('0x17')][_0x4cae('0xc0')];let _0x49f8c2=null,_0x5da16e=null,_0x56c934=!0x1,_0x3af804=!0x1;for(const _0x424566 of _0x1dd655){const _0x1e8973=_0x424566[_0x4cae('0x105')];_0x56c934=_0x56c934||_0x21998c[_0x4cae('0x4e')](_0x1e8973);const _0x2d3d01=_0x3a9d65[_0x4cae('0xed')][_0x4cae('0x26')](_0x1e8973);if(_0x2d3d01&&_0x2d3d01[_0x4cae('0x90')](_0x4cae('0xfc')))return;_0x4cae('0x15')==_0x424566[_0x4cae('0x9d')]&&(_0x21998c[_0x4cae('0x8e')](_0x1e8973)&&!_0x21998c[_0x4cae('0x35')](_0x1e8973)&&(_0x1e8973[_0x4cae('0x68')]||_0x46d68f[_0x4cae('0xa3')]?_0x49f8c2&&_0x49f8c2[_0x4cae('0x76')]==_0x1e8973||(_0x49f8c2=_0x1e8973,_0x28f7ac(_0x424566[_0x4cae('0x2')]),_0x3af804=!0x0):_0x5da16e=_0x5da16e||_0x424566[_0x4cae('0x2')]));}function _0x28f7ac(_0x5d7f7b){const _0x112fdd=_0x3a9d65['writer'][_0x4cae('0x65')](_0x4cae('0xdb'),{'class':_0x4cae('0xf3')+_0x1ea819}),_0x45db04=_0x3a9d65[_0x4cae('0xed')][_0x4cae('0x10e')](_0x5d7f7b);_0x2e8c82[_0x4cae('0x1a')][_0x4cae('0x11e')]&&_0x3a9d65[_0x4cae('0x11')][_0x4cae('0x72')](_0x4cae('0xf3')+_0x1ea819+_0x4cae('0x49'),_0x112fdd),_0x1365d9[_0x4cae('0x59')]==_0x2e8c82&&_0x3a9d65['writer'][_0x4cae('0x72')](_0x4cae('0x6a'),_0x112fdd),_0x3a9d65[_0x4cae('0x11')][_0x4cae('0x107')](_0x45db04,_0x112fdd),_0x3a9d65['mapper'][_0x4cae('0xf9')](_0x112fdd,_0x566805[_0x4cae('0x85')]);}_0x56c934||_0x3af804||!_0x5da16e||_0x28f7ac(_0x5da16e);};}(this[_0x4cae('0x56')]),{'priority':_0x4cae('0x1')}),this[_0x4cae('0x56')][_0x4cae('0x11f')][_0x4cae('0xf2')]['on'](_0x4cae('0xae'),(_0x2f34ca,_0x479b7a,_0x41b688)=>{const _0x12c674=_0x41b688[_0x4cae('0xed')][_0x4cae('0x5')](_0x479b7a[_0x4cae('0x85')]);if(_0x12c674)for(const _0x552644 of _0x12c674)(_0x552644[_0x4cae('0x0')](_0x4cae('0x30'))||_0x552644['hasClass'](_0x4cae('0xd7')))&&(_0x41b688[_0x4cae('0xed')][_0x4cae('0xd5')](_0x552644,_0x479b7a[_0x4cae('0x85')]),_0x41b688['writer'][_0x4cae('0x5d')](_0x552644));},{'priority':'high'}),this[_0x4cae('0x56')]['editing'][_0x4cae('0xf2')]['on'](_0x4cae('0xc4'),(_0x56da61,_0xc8b080,_0x518d93)=>{const _0x35cc53=_0xc8b080['markerName'][_0x4cae('0xca')](':')[0x1],_0x4c8cad=this['_getChangeFromId'](_0x35cc53);if(!_0x4c8cad)return null;const _0x499abd='add'==_0x4c8cad['type']?'split':'merge';if(_0x518d93[_0x4cae('0x87')]['test'](_0xc8b080['markerRange'],_0x56da61[_0x4cae('0x3b')]))for(const _0x4b9bd9 of _0xc8b080[_0x4cae('0xea')][_0x4cae('0x7b')]()){if(!_0x4b9bd9['is'](_0x4cae('0x80'),'softBreak'))continue;const _0x4cfcb5=_0x518d93[_0x4cae('0x11')][_0x4cae('0x65')](_0x4cae('0xdb'),{'class':_0x4cae('0xf3')+_0x499abd}),_0x2d52e3=_0x518d93[_0x4cae('0xed')][_0x4cae('0x10e')](this[_0x4cae('0x56')]['model'][_0x4cae('0xce')](_0x4b9bd9));_0x4c8cad[_0x4cae('0x1a')][_0x4cae('0x11e')]&&_0x518d93[_0x4cae('0x11')][_0x4cae('0x72')]('ck-suggestion-marker-'+_0x499abd+_0x4cae('0x49'),_0x4cfcb5),this[_0x4cae('0x59')]==_0x4c8cad&&_0x518d93[_0x4cae('0x11')][_0x4cae('0x72')](_0x4cae('0x6a'),_0x4cfcb5),_0x518d93[_0x4cae('0x11')][_0x4cae('0x107')](_0x2d52e3,_0x4cfcb5),_0x518d93[_0x4cae('0xed')][_0x4cae('0xf9')](_0x4cfcb5,_0xc8b080['markerName']);}},{'priority':_0x4cae('0x1')}),this['editor'][_0x4cae('0x17')][_0x4cae('0x6d')]['on']('change',()=>{this['editor'][_0x4cae('0x11f')][_0x4cae('0x6f')][_0x4cae('0x69')](_0x3ffa4a=>{for(const _0x5d4819 of this[_0x4cae('0x56')][_0x4cae('0x17')]['document'][_0x4cae('0x2d')]()){const _0x16ec81=this[_0x4cae('0x56')]['model'][_0x4cae('0x6d')][_0x4cae('0x7e')](_0x5d4819),_0x30cbb3=this[_0x4cae('0x56')][_0x4cae('0x11f')][_0x4cae('0x6f')][_0x4cae('0x6d')]['getRoot'](_0x5d4819);if(_0x30cbb3){const _0xe78dc9=_0x16ec81['getAttribute'](_0x4cae('0x3f'));if(_0x3ffa4a[_0x4cae('0xff')]('data-change-id',_0x30cbb3),_0x3ffa4a[_0x4cae('0x93')]('ck-revision-history-root-add',_0x30cbb3),_0x3ffa4a[_0x4cae('0x93')]('ck-revision-history-root-remove',_0x30cbb3),_0x3ffa4a[_0x4cae('0x93')](_0x4cae('0x3c'),_0x30cbb3),_0xe78dc9){const _0x5c4346=this['_getChangeFromId'](_0xe78dc9);if(!_0x5c4346)return null;_0x3ffa4a['setAttribute'](_0x4cae('0x77'),_0xe78dc9,_0x30cbb3),_0x3ffa4a[_0x4cae('0x72')]('ck-revision-history-root-'+_0x5c4346[_0x4cae('0x9d')],_0x30cbb3),this[_0x4cae('0x59')]==_0x5c4346&&_0x3ffa4a[_0x4cae('0x72')]('ck-revision-history-root--active',_0x30cbb3);}}}});}),this[_0x4cae('0x56')][_0x4cae('0x6e')][_0x4cae('0xc3')]('upcast')['dataToMarker']({'view':_0x4cae('0x95'),'model':_0x16dfea=>_0x4cae('0x6c')+_0x16dfea,'converterPriority':_0x4cae('0x20')}),this['editor'][_0x4cae('0x6e')][_0x4cae('0xc3')](_0x4cae('0x5f'))[_0x4cae('0x100')]({'view':_0x4cae('0x13'),'model':_0x33370c=>_0x4cae('0x97')+_0x33370c,'converterPriority':_0x4cae('0x20')}),this['editor'][_0x4cae('0x6e')][_0x4cae('0xc3')](_0x4cae('0x63'))['markerToData']({'model':_0x4cae('0x75'),'view':_0x4a195e=>({'name':_0x4cae('0xdd')+_0x4a195e,'group':_0x4cae('0x75')}),'converterPriority':_0x4cae('0x20')}),this[_0x4cae('0x56')][_0x4cae('0x6e')]['for'](_0x4cae('0x99'))[_0x4cae('0x110')]({'model':_0x4cae('0x75'),'view':_0x4c82bc=>{const _0x124f09=_0x4c82bc['markerName'][_0x4cae('0xca')](':')[0x1];return _0x4cae('0xd3')!=_0x124f09&&_0x4cae('0xd0')!=_0x124f09?null:{'classes':[_0x4cae('0xbd'),_0x4cae('0x7a')+_0x124f09]};}}),this[_0x4cae('0x56')]['editing'][_0x4cae('0xf2')]['on'](_0x4cae('0x11d'),et(this[_0x4cae('0x56')],_0x4cae('0xb7')),{'priority':'high'}),this[_0x4cae('0x56')][_0x4cae('0x11f')][_0x4cae('0xf2')]['on'](_0x4cae('0xd8'),et(this['editor'],_0x4cae('0xca')),{'priority':_0x4cae('0x1')}),this[_0x4cae('0x56')][_0x4cae('0x11f')]['downcastDispatcher']['on'](_0x4cae('0x2b'),(_0x2f0ff3,_0x2f7d8b,_0x4b528f)=>{const _0x4a314c=_0x4b528f[_0x4cae('0xed')][_0x4cae('0x5')](_0x2f7d8b[_0x4cae('0x85')]);if(_0x4a314c)for(const _0x2604ce of _0x4a314c)_0x2604ce['is']('uiElement')&&(_0x4b528f[_0x4cae('0xed')][_0x4cae('0xd5')](_0x2604ce,_0x2f7d8b['markerName']),_0x4b528f[_0x4cae('0x11')][_0x4cae('0x5d')](_0x2604ce));},{'priority':_0x4cae('0x1')});}[_0x4cae('0x41')](_0x300057){return this['_changeIdToChange'][_0x4cae('0xe8')](_0x300057);}[_0x4cae('0x8d')](_0x3fd916){return this['_changeView']&&this[_0x4cae('0x74')][_0x4cae('0xbf')](),this[_0x4cae('0x74')]=new _0x2aa001(this[_0x4cae('0x56')]['locale'],_0x3fd916),this[_0x4cae('0x74')];}['_initInteractions'](){this[_0x4cae('0x56')][_0x4cae('0x17')][_0x4cae('0x6d')]['selection'][_0x4cae('0x8')](_0x4cae('0xb6')),this['on'](_0x4cae('0x24'),(_0x4dd010,_0x519ea5,_0x506b29,_0x508e28)=>{_0x508e28&&this[_0x4cae('0x83')][_0x4cae('0x5d')](_0x508e28),_0x506b29&&(this[_0x4cae('0x83')][_0x4cae('0xf6')]({'view':_0x506b29,'stackId':_0x4cae('0xc8'),'position':{'target':()=>{const _0x15ef21=this[_0x4cae('0x56')][_0x4cae('0x11f')],_0x35cffe=this[_0x4cae('0x41')](_0x506b29[_0x4cae('0x10')]);let _0x1d3d2b;if(_0x35cffe[_0x4cae('0x1a')][_0x4cae('0x9e')]){const _0x206e29=_0x15ef21['view']['getDomRoot'](_0x35cffe[_0x4cae('0xbe')]);_0x1d3d2b=Array[_0x4cae('0x52')](_0x206e29[_0x4cae('0xe7')]());}else{const _0x444eb6=this['editor']['model'][_0x4cae('0x67')][_0x4cae('0xe8')](_0x4cae('0xf1')+_0x506b29[_0x4cae('0x10')]);_0x1d3d2b=Array[_0x4cae('0x52')](_0x15ef21[_0x4cae('0xed')][_0x4cae('0x5')](_0x444eb6[_0x4cae('0x3b')]))[_0x4cae('0x51')](_0x2b5cf8=>_0x15ef21[_0x4cae('0x6f')]['domConverter'][_0x4cae('0x9b')](_0x2b5cf8))['map'](_0x54f9d3=>Array[_0x4cae('0x52')](_0x54f9d3[_0x4cae('0xe7')]()))[_0x4cae('0x111')]();}if(!this[_0x4cae('0x11c')])return _0x1d3d2b[0x0];return _0x1d3d2b[_0x4cae('0xec')](_0x1099cd=>_0x1099cd['top']-0x3<=this[_0x4cae('0x11c')]['y']&&_0x1099cd[_0x4cae('0xa9')]+0x3>=this[_0x4cae('0x11c')]['y']&&_0x1099cd[_0x4cae('0xad')]-0x3<=this[_0x4cae('0x11c')]['x']&&_0x1099cd[_0x4cae('0x116')]+0x3>=this[_0x4cae('0x11c')]['x'])||_0x1d3d2b[0x0];}}}),this[_0x4cae('0x83')][_0x4cae('0x3e')](_0x4cae('0xc8')));}),this['on']('change:activeChange',(_0x27c065,_0x30580e,_0x21c32c,_0x4ff9df)=>{this[_0x4cae('0x112')]=_0x21c32c?this[_0x4cae('0x8d')](_0x21c32c):null,this[_0x4cae('0x56')][_0x4cae('0x17')][_0x4cae('0x69')](()=>{const _0x4e5c73=this[_0x4cae('0x56')][_0x4cae('0x11f')];_0x4ff9df&&(_0x4ff9df[_0x4cae('0x1a')][_0x4cae('0x9e')]?_0x4e5c73['view'][_0x4cae('0x69')](_0x5d7d8a=>{_0x5d7d8a['removeClass'](_0x4cae('0x3c'),_0x4e5c73[_0x4cae('0x6f')]['document'][_0x4cae('0x7e')](_0x4ff9df[_0x4cae('0xbe')]));}):_0x4e5c73[_0x4cae('0xa4')]('revision:'+_0x4ff9df['id'])),_0x21c32c&&(_0x21c32c[_0x4cae('0x1a')][_0x4cae('0x9e')]?_0x4e5c73['view']['change'](_0x41a3e1=>{_0x41a3e1[_0x4cae('0x72')]('ck-revision-history-root--active',_0x4e5c73['view'][_0x4cae('0x6d')][_0x4cae('0x7e')](_0x21c32c[_0x4cae('0xbe')]));}):_0x4e5c73[_0x4cae('0xa4')](_0x4cae('0xf1')+_0x21c32c['id']));});}),this[_0x4cae('0xa')](this[_0x4cae('0x56')]['editing']['view'][_0x4cae('0x6d')],_0x4cae('0x115'),(_0x398894,_0x9c8e03)=>{if(this[_0x4cae('0x59')])return;const _0x1f6bdf=this['_findChangeIdFromDomTarget'](_0x9c8e03[_0x4cae('0x8c')]),_0x1418f1=this[_0x4cae('0x73')][_0x4cae('0xe8')](_0x1f6bdf);_0x1418f1?(this[_0x4cae('0x11c')]={'x':_0x9c8e03[_0x4cae('0xd')]['x'],'y':_0x9c8e03[_0x4cae('0xd')]['y']},this[_0x4cae('0x112')]=this['_getViewForChange'](_0x1418f1)):(this[_0x4cae('0x11c')]=null,this[_0x4cae('0x112')]=null);}),this[_0x4cae('0xa')](this[_0x4cae('0x56')]['editing']['view']['document'],_0x4cae('0xf8'),(_0x544fdb,_0x11d342)=>{const _0x5a7eef=this['_findChangeIdFromDomTarget'](_0x11d342[_0x4cae('0x8c')]),_0x9af6b4=this[_0x4cae('0x73')][_0x4cae('0xe8')](_0x5a7eef);_0x9af6b4?(this[_0x4cae('0x11c')]={'x':_0x11d342[_0x4cae('0xd')]['x'],'y':_0x11d342['domEvent']['y']},_0x9af6b4===this[_0x4cae('0x59')]?this[_0x4cae('0x83')]['updatePosition']():this[_0x4cae('0x59')]=_0x9af6b4):(this[_0x4cae('0x11c')]=null,this[_0x4cae('0x59')]=null);});}[_0x4cae('0xe2')](_0x1cbbeb){do{const _0x330e71=_0x1cbbeb['getAttribute'](_0x4cae('0x77'));if(_0x330e71)return _0x330e71;_0x1cbbeb=_0x1cbbeb['parent'];}while(_0x1cbbeb);return null;}[_0x4cae('0xd2')](){this['editor'][_0x4cae('0x17')][_0x4cae('0x69')](_0x10a851=>{for(const _0x4ddb06 of this[_0x4cae('0x56')][_0x4cae('0x17')][_0x4cae('0x67')])_0x10a851[_0x4cae('0xde')](_0x4ddb06);});}}function et(_0x33294c,_0x299553){return(_0x14e7da,_0x37ce28,_0x4b5f60)=>{if(!_0x4b5f60[_0x4cae('0x87')]['test'](_0x37ce28[_0x4cae('0xea')],_0x14e7da[_0x4cae('0x3b')]))return;const _0x3de6dc=_0x37ce28[_0x4cae('0xea')][_0x4cae('0x44')](),_0x5df7d8=_0x37ce28[_0x4cae('0xea')]['start'],_0x1bf84d=_0x33294c['model'][_0x4cae('0xc0')];let _0x2ea872=null,_0x5c0214=null,_0x2ee6d5=!0x1,_0x26635f=!0x1;for(const _0xd1f975 of _0x3de6dc){const _0x4b9294=_0xd1f975[_0x4cae('0x105')];_0x2ee6d5=_0x2ee6d5||_0x1bf84d[_0x4cae('0x4e')](_0x4b9294);const _0x5d74c5=_0x4b5f60[_0x4cae('0xed')][_0x4cae('0x26')](_0x4b9294);if(_0x5d74c5&&_0x5d74c5['getCustomProperty'](_0x4cae('0xfc')))return;_0x4cae('0x15')==_0xd1f975[_0x4cae('0x9d')]&&(_0x1bf84d[_0x4cae('0x8e')](_0x4b9294)&&!_0x1bf84d[_0x4cae('0x35')](_0x4b9294)&&(_0x4b9294[_0x4cae('0x68')]||_0x5df7d8[_0x4cae('0xa3')]?_0x2ea872&&_0x2ea872[_0x4cae('0x76')]==_0x4b9294||(_0x2ea872=_0x4b9294,_0x48b03d(_0xd1f975['previousPosition']),_0x26635f=!0x0):_0x5c0214=_0x5c0214||_0xd1f975[_0x4cae('0x2')]));}function _0x48b03d(_0xe39207){const _0x25ee8b=_0x4b5f60['mapper'][_0x4cae('0x10e')](_0xe39207),_0x2e8c36=_0x4b5f60[_0x4cae('0x11')][_0x4cae('0x65')](_0x4cae('0xdb'),{'class':_0x4cae('0x7a')+_0x299553});_0x4b5f60[_0x4cae('0x11')][_0x4cae('0x107')](_0x25ee8b,_0x2e8c36),_0x4b5f60[_0x4cae('0xed')][_0x4cae('0xf9')](_0x2e8c36,_0x37ce28[_0x4cae('0x85')]);}_0x2ee6d5||_0x26635f||!_0x5c0214||_0x48b03d(_0x5c0214);};}export class RestoreRevisionCommand extends _0x6aaecc{constructor(_0x1079ad){super(_0x1079ad);const _0x5a593d=_0x1079ad['plugins']['get'](d);this[_0x4cae('0x1f')]=!0x1,this['listenTo'](_0x5a593d,'change:isReady',()=>this['refresh']()),this[_0x4cae('0xa')](_0x5a593d,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5c3e12=this[_0x4cae('0x56')],_0x579865=_0x5c3e12[_0x4cae('0x36')]['get'](d),_0x32f168=_0x579865[_0x4cae('0x8f')]?_0x579865[_0x4cae('0xc6')][_0x4cae('0xdf')]:null;_0x5c3e12[_0x4cae('0xc9')][_0x4cae('0xe8')]('revisionHistory')['restoreRevisionCallback'](_0x32f168);}['refresh'](){const {isReady:_0x562f0e,isEnabled:_0x31b895}=this[_0x4cae('0x56')][_0x4cae('0x36')][_0x4cae('0xe8')](d);this[_0x4cae('0xfa')]=_0x562f0e&&_0x31b895;}}export class ShowChangeCommand extends _0x6aaecc{constructor(_0x2db20b,{direction:_0x2ef99d}){super(_0x2db20b);const _0x170a64=_0x2db20b['plugins'][_0x4cae('0xe8')](d);this[_0x4cae('0x1f')]=!0x1,this[_0x4cae('0x9f')]=_0x4cae('0x6b')===_0x2ef99d?0x1:-0x1,this[_0x4cae('0xa')](_0x170a64,_0x4cae('0xb5'),()=>this[_0x4cae('0xc')]()),this[_0x4cae('0xa')](_0x170a64,_0x4cae('0x114'),()=>this[_0x4cae('0xc')]()),this['listenTo'](_0x170a64,_0x4cae('0x38'),()=>this['refresh']());}['execute'](){const _0x2467d7=this[_0x4cae('0x56')],_0x4f42c0=_0x2467d7[_0x4cae('0x36')][_0x4cae('0xe8')](d),{isNavigationMode:_0x17256c,currentChangeNumber:_0x19b3fd}=_0x4f42c0;let _0x2ca98a;if(_0x4f42c0[_0x4cae('0x59')]=_0x17256c?_0x4f42c0[_0x4cae('0xc6')][_0x4cae('0x102')][_0x4cae('0xe8')](_0x19b3fd+this['_step']):_0x4f42c0[_0x4cae('0xc6')][_0x4cae('0x102')][_0x4cae('0x96')],_0x4f42c0[_0x4cae('0x59')][_0x4cae('0x1a')][_0x4cae('0x9e')])_0x2ca98a=_0x2467d7['editing']['view']['getDomRoot'](_0x4f42c0[_0x4cae('0x59')][_0x4cae('0xbe')]);else{const _0x547c44=_0x2467d7[_0x4cae('0x17')][_0x4cae('0x67')][_0x4cae('0xe8')](_0x4cae('0xf1')+_0x4f42c0[_0x4cae('0x59')]['id']);_0x2ca98a=_0x41668f(_0x2467d7[_0x4cae('0x11f')],_0x547c44);}_0x275eab({'target':_0x2ca98a,'viewportOffset':0x28});}[_0x4cae('0xc')](){const {isNavigationMode:_0x55fff7,currentChangeNumber:_0x514ce8,numberOfChanges:_0x41b29d,isReady:_0x33dd17,isEnabled:_0x4ceca7}=this['editor']['plugins']['get'](d);this[_0x4cae('0xfa')]=!!(_0x4ceca7&&_0x33dd17&&_0x41b29d)&&(!_0x55fff7||(0x1===this['_step']?_0x514ce8<_0x41b29d-0x1:_0x514ce8>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ca5=['action','isVisible','items','map','bind','listView','source','class','locale','button','extendTemplate','set','ck-on','isReady','first','children','function','buttonView','name','panelPosition','Show\x20more\x20items','threeVerticalDots','bindTemplate','Name\x20this\x20revision','ck-revision-history-sidebar__revision__actions','isEnabled','listenTo','Restore\x20this\x20revision','_action','change:isActionsDropdownOpen','isActionsDropdownOpen','stopPropagation'];(function(_0x258dc0,_0x5ca5e2){const _0x30ca9d=function(_0x21a3a3){while(--_0x21a3a3){_0x258dc0['push'](_0x258dc0['shift']());}};_0x30ca9d(++_0x5ca5e2);}(_0x5ca5,0x101));const _0x30ca=function(_0x258dc0,_0x5ca5e2){_0x258dc0=_0x258dc0-0x0;let _0x30ca9d=_0x5ca5[_0x258dc0];return _0x30ca9d;};import{Collection as _0x4e5e8f}from'ckeditor5/src/utils';import{icons as _0x31daf4}from'ckeditor5/src/core';import{Model as _0x4e4347,addListToDropdown as _0x2091a3,createDropdown as _0x369607}from'ckeditor5/src/ui';import{getTranslation as _0xc82a9b}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x44df91,_0x48bbed){const _0x3a273c=_0x44df91[_0x30ca('0x15')],_0x29a750=_0x44df91[_0x30ca('0x7')],_0x1352fe=_0x369607(_0x29a750);_0x1352fe[_0x30ca('0x12')]='sw';const _0x157592=function(_0x28171d,_0x3e19f8){const _0x3f47b7=function(_0x57d8b1,_0x1e2eac){const _0x27faa0=_0x57d8b1['locale'],_0x23b987={'Compare\x20against\x20selected':_0xc82a9b(_0x27faa0,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0xc82a9b(_0x27faa0,_0x30ca('0x16')),'Restore\x20this\x20revision':_0xc82a9b(_0x27faa0,_0x30ca('0x1a'))};return _0x1e2eac[_0x30ca('0x2')](_0x29438c=>{const _0x18b8a4=_0x23b987[_0x29438c[_0x30ca('0x11')]];return _0x18b8a4&&_0x18b8a4!==_0x29438c[_0x30ca('0x11')]&&(_0x29438c[_0x30ca('0x11')]=_0x18b8a4),_0x29438c;});}(_0x28171d,_0x3e19f8),_0x5d0011=new _0x4e5e8f();for(const _0x3d553e of _0x3f47b7){const _0x576d44={'type':_0x30ca('0x8'),'model':new _0x4e4347({'label':_0x3d553e[_0x30ca('0x11')],'class':_0x3d553e[_0x30ca('0x6')],'withText':!0x0,'_action':_0x3d553e[_0x30ca('0x1f')]})};_0x576d44['model'][_0x30ca('0x3')](_0x30ca('0x18'))['to'](_0x28171d,_0x30ca('0x1d'),_0x5d48eb=>'function'!=typeof _0x3d553e[_0x30ca('0x18')]||(!_0x5d48eb||_0x3d553e[_0x30ca('0x18')](_0x28171d))),_0x5d0011['add'](_0x576d44);}return _0x5d0011;}(_0x44df91,_0x48bbed);return _0x44df91[_0x30ca('0x3')](_0x30ca('0x1d'))['to'](_0x1352fe,'isOpen'),_0x1352fe[_0x30ca('0x10')][_0x30ca('0xa')]({'label':_0xc82a9b(_0x29a750,_0x30ca('0x13')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x31daf4[_0x30ca('0x14')]}),_0x1352fe[_0x30ca('0x9')]({'attributes':{'class':[_0x30ca('0x17'),_0x3a273c['if'](_0x30ca('0x1d'),_0x30ca('0xb'))]},'on':{'click':_0x3a273c['to'](_0x4ff3da=>_0x4ff3da[_0x30ca('0x1e')]())}}),_0x1352fe['on']('execute',_0x21ca0a=>{_0x44df91[_0x30ca('0xc')]&&_0x30ca('0xf')==typeof _0x21ca0a[_0x30ca('0x5')]['_action']&&_0x21ca0a[_0x30ca('0x5')]['_action'](_0x44df91);}),_0x2091a3(_0x1352fe,_0x157592),_0x1352fe[_0x30ca('0x19')](_0x44df91,_0x30ca('0x1c'),(_0x48614b,_0x3de00d,_0x35697c)=>{if(_0x35697c)for(const _0x4813d3 of _0x1352fe[_0x30ca('0x4')][_0x30ca('0x1')]){const _0x24dd1d=_0x4813d3[_0x30ca('0xe')][_0x30ca('0xd')],_0x1f4132=_0x48bbed['find'](_0x704a4f=>_0x704a4f[_0x30ca('0x1f')]===_0x24dd1d[_0x30ca('0x1b')])['isVisible'];_0x4813d3[_0x30ca('0x0')]=void 0x0===_0x1f4132||_0x1f4132(_0x44df91);}}),_0x1352fe;}
23
+ const _0x6aaa=['map','locale','change:isActionsDropdownOpen','children','ck-on','action','buttonView','isOpen','Name\x20this\x20revision','first','Show\x20more\x20items','isReady','stopPropagation','isEnabled','find','set','Restore\x20this\x20revision','ck-revision-history-sidebar__revision__actions','source','bind','name','model','bindTemplate','listenTo','isVisible','class','_action','Compare\x20against\x20selected','isActionsDropdownOpen','extendTemplate','function','execute'];(function(_0x24c27b,_0x6aaad9){const _0x2ab470=function(_0x35bd8f){while(--_0x35bd8f){_0x24c27b['push'](_0x24c27b['shift']());}};_0x2ab470(++_0x6aaad9);}(_0x6aaa,0xfe));const _0x2ab4=function(_0x24c27b,_0x6aaad9){_0x24c27b=_0x24c27b-0x0;let _0x2ab470=_0x6aaa[_0x24c27b];return _0x2ab470;};import{Collection as _0x23b8b1}from'ckeditor5/src/utils';import{icons as _0x129dfb}from'ckeditor5/src/core';import{Model as _0x1ed166,addListToDropdown as _0x270da5,createDropdown as _0x1af637}from'ckeditor5/src/ui';import{getTranslation as _0x576533}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x37eecb,_0x856f6b){const _0x2b7c56=_0x37eecb[_0x2ab4('0x18')],_0x4a3fde=_0x37eecb['locale'],_0x3ed7c9=_0x1af637(_0x4a3fde);_0x3ed7c9['panelPosition']='sw';const _0x51830b=function(_0x284a7a,_0x127507){const _0x440d71=function(_0x173fec,_0x4df878){const _0x483912=_0x173fec[_0x2ab4('0x3')],_0x53b2f5={'Compare\x20against\x20selected':_0x576533(_0x483912,_0x2ab4('0x1d')),'Name\x20this\x20revision':_0x576533(_0x483912,_0x2ab4('0xa')),'Restore\x20this\x20revision':_0x576533(_0x483912,_0x2ab4('0x12'))};return _0x4df878[_0x2ab4('0x2')](_0xa6b887=>{const _0x483682=_0x53b2f5[_0xa6b887[_0x2ab4('0x16')]];return _0x483682&&_0x483682!==_0xa6b887[_0x2ab4('0x16')]&&(_0xa6b887[_0x2ab4('0x16')]=_0x483682),_0xa6b887;});}(_0x284a7a,_0x127507),_0x4a83cf=new _0x23b8b1();for(const _0x11b989 of _0x440d71){const _0x281e2f={'type':'button','model':new _0x1ed166({'label':_0x11b989[_0x2ab4('0x16')],'class':_0x11b989[_0x2ab4('0x1b')],'withText':!0x0,'_action':_0x11b989[_0x2ab4('0x7')]})};_0x281e2f[_0x2ab4('0x17')]['bind'](_0x2ab4('0xf'))['to'](_0x284a7a,_0x2ab4('0x1e'),_0x600903=>_0x2ab4('0x0')!=typeof _0x11b989[_0x2ab4('0xf')]||(!_0x600903||_0x11b989['isEnabled'](_0x284a7a))),_0x4a83cf['add'](_0x281e2f);}return _0x4a83cf;}(_0x37eecb,_0x856f6b);return _0x37eecb[_0x2ab4('0x15')](_0x2ab4('0x1e'))['to'](_0x3ed7c9,_0x2ab4('0x9')),_0x3ed7c9[_0x2ab4('0x8')][_0x2ab4('0x11')]({'label':_0x576533(_0x4a3fde,_0x2ab4('0xc')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x129dfb['threeVerticalDots']}),_0x3ed7c9[_0x2ab4('0x1f')]({'attributes':{'class':[_0x2ab4('0x13'),_0x2b7c56['if'](_0x2ab4('0x1e'),_0x2ab4('0x6'))]},'on':{'click':_0x2b7c56['to'](_0x501b3c=>_0x501b3c[_0x2ab4('0xe')]())}}),_0x3ed7c9['on'](_0x2ab4('0x1'),_0x5cd09c=>{_0x37eecb[_0x2ab4('0xd')]&&_0x2ab4('0x0')==typeof _0x5cd09c['source'][_0x2ab4('0x1c')]&&_0x5cd09c[_0x2ab4('0x14')]['_action'](_0x37eecb);}),_0x270da5(_0x3ed7c9,_0x51830b),_0x3ed7c9[_0x2ab4('0x19')](_0x37eecb,_0x2ab4('0x4'),(_0x1eba50,_0x54a8d6,_0x1be3e9)=>{if(_0x1be3e9)for(const _0x2fede2 of _0x3ed7c9['listView']['items']){const _0x50fc6f=_0x2fede2[_0x2ab4('0x5')][_0x2ab4('0xb')],_0x35f2e5=_0x856f6b[_0x2ab4('0x10')](_0x2854c9=>_0x2854c9['action']===_0x50fc6f[_0x2ab4('0x1c')])[_0x2ab4('0x1a')];_0x2fede2[_0x2ab4('0x1a')]=void 0x0===_0x35f2e5||_0x35f2e5(_0x37eecb);}}),_0x3ed7c9;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4993=['ck-revision-history-sidebar__revision-author__name','set','Revision\x20creator','ck-revision-history-sidebar__revision-author','name','push','0\x200\x2011\x2010'];(function(_0x359f2b,_0x49930a){const _0x12b37e=function(_0x5f2fd5){while(--_0x5f2fd5){_0x359f2b['push'](_0x359f2b['shift']());}};_0x12b37e(++_0x49930a);}(_0x4993,0x72));const _0x12b3=function(_0x359f2b,_0x49930a){_0x359f2b=_0x359f2b-0x0;let _0x12b37e=_0x4993[_0x359f2b];return _0x12b37e;};import{View as _0x1b38c9,IconView as _0x48671e}from'ckeditor5/src/ui';import{getTranslation as _0x7c95ab}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x133f74 from'../../../theme/icons/user.svg';export default class ti extends _0x1b38c9{constructor(_0x5caede,_0x45c705,_0x24a2a4){super(_0x5caede);const _0x47c380=new _0x48671e();_0x47c380[_0x12b3('0x6')]({'content':_0x133f74,'viewBox':_0x12b3('0x4')});const _0x1ae216=['ck',_0x12b3('0x1')];_0x24a2a4&&_0x1ae216[_0x12b3('0x3')]('ck-revision-history-sidebar__revision-author_creator');const _0x2e4302=[{'tag':'span','attributes':{'class':['ck',_0x12b3('0x5')],'title':_0x7c95ab(_0x5caede,_0x24a2a4?_0x12b3('0x0'):'Revision\x20author')},'children':[_0x47c380,_0x45c705[_0x12b3('0x2')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1ae216},'children':_0x2e4302});}}
23
+ const _0x2325=['ck-revision-history-sidebar__revision-author_creator','push','name','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author__name','span'];(function(_0x222de1,_0x2325b0){const _0x5b6aab=function(_0x50f1bd){while(--_0x50f1bd){_0x222de1['push'](_0x222de1['shift']());}};_0x5b6aab(++_0x2325b0);}(_0x2325,0x6c));const _0x5b6a=function(_0x222de1,_0x2325b0){_0x222de1=_0x222de1-0x0;let _0x5b6aab=_0x2325[_0x222de1];return _0x5b6aab;};import{View as _0x48bdd1,IconView as _0x919dde}from'ckeditor5/src/ui';import{getTranslation as _0x536cd3}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x4a798d from'../../../theme/icons/user.svg';export default class ti extends _0x48bdd1{constructor(_0x3ce5d1,_0x4fa91a,_0x252aaa){super(_0x3ce5d1);const _0x24a3dc=new _0x919dde();_0x24a3dc['set']({'content':_0x4a798d,'viewBox':_0x5b6a('0x0')});const _0x5c230f=['ck',_0x5b6a('0x1')];_0x252aaa&&_0x5c230f[_0x5b6a('0x5')](_0x5b6a('0x4'));const _0x408a06=[{'tag':_0x5b6a('0x3'),'attributes':{'class':['ck',_0x5b6a('0x2')],'title':_0x536cd3(_0x3ce5d1,_0x252aaa?'Revision\x20creator':'Revision\x20author')},'children':[_0x24a3dc,_0x4fa91a[_0x5b6a('0x6')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5c230f},'children':_0x408a06});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x10cc=['span','set','extendTemplate'];(function(_0x4baa0d,_0x10cce5){var _0x355690=function(_0xa8760e){while(--_0xa8760e){_0x4baa0d['push'](_0x4baa0d['shift']());}};_0x355690(++_0x10cce5);}(_0x10cc,0x1a2));var _0x3556=function(_0x4baa0d,_0x10cce5){_0x4baa0d=_0x4baa0d-0x0;var _0x355690=_0x10cc[_0x4baa0d];return _0x355690;};import{LabeledFieldView as _0xfcefa2}from'ckeditor5/src/ui';import{getTranslation as _0x2c63b7}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0xfcefa2{constructor(_0x52dbbc,_0x2f5e73){super(_0x52dbbc,_0x2f5e73),this[_0x3556('0x0')]({'label':_0x2c63b7(_0x52dbbc,'Revision\x20name')}),this[_0x3556('0x1')]({'tag':_0x3556('0x2'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
23
+ var _0x3e75=['ck-revision-history-sidebar__revision-name','set','Revision\x20name','extendTemplate','span'];(function(_0x26f387,_0x3e756d){var _0x3e35c8=function(_0x228538){while(--_0x228538){_0x26f387['push'](_0x26f387['shift']());}};_0x3e35c8(++_0x3e756d);}(_0x3e75,0x107));var _0x3e35=function(_0x26f387,_0x3e756d){_0x26f387=_0x26f387-0x0;var _0x3e35c8=_0x3e75[_0x26f387];return _0x3e35c8;};import{LabeledFieldView as _0x367a94}from'ckeditor5/src/ui';import{getTranslation as _0x46e5c1}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x367a94{constructor(_0x2fdf6d,_0x14244c){super(_0x2fdf6d,_0x14244c),this[_0x3e35('0x3')]({'label':_0x46e5c1(_0x2fdf6d,_0x3e35('0x4'))}),this[_0x3e35('0x0')]({'tag':_0x3e35('0x1'),'attributes':{'class':[_0x3e35('0x2')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x58d8=['ck-revision-history-sidebar__revision','authors','length','createdAt','element','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','220','unshift','from','ck-reset','creator','render','uiLanguage','ck-revision-history-sidebar__revision__controls-wrapper','unhighlight','_createdAtFormatted','placeholder','change','fire','set','_revision','name','fieldView','.ck-thread__remove-confirm','ck-disabled','closest','filter','revisionActionsView','div','highlight','value','isSelected','setName','extendTemplate','ck-revision-history-sidebar__revision_selected','bind','srcElement','ck-revision-history-sidebar__revision-wrapper','isActionsDropdownOpen','select','isEnabled','isHighlighted','isConfirm','map','revisionNameView','isReady','setTemplate','ck-revision-history-sidebar__actions_dropdown_open','ck-revision-history-sidebar__revision-authors','listenTo'];(function(_0x95521,_0x58d8b6){const _0x3bd168=function(_0x18c9bf){while(--_0x18c9bf){_0x95521['push'](_0x95521['shift']());}};_0x3bd168(++_0x58d8b6);}(_0x58d8,0x66));const _0x3bd1=function(_0x95521,_0x58d8b6){_0x95521=_0x95521-0x0;let _0x3bd168=_0x58d8[_0x95521];return _0x3bd168;};import{View as _0x1e2bfd,createLabeledInputText as _0x4308b0}from'ckeditor5/src/ui';import{ConfirmMixin as _0x972798}from'ckeditor5-collaboration/src/collaboration-core';import _0x37fba8 from'./revisionnameview';import _0x4b000a from'./revisionauthorview';import{dateToPrettyFormat as _0x1bb1e2}from'./utils';import{createActionsDropdownView as _0x22b78f}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x972798(_0x1e2bfd){constructor(_0xd30490,_0x3bec34,_0x3a4697){super(_0xd30490);const _0x48a5ba=this['bindTemplate'],_0x2507e0=function(_0x2d0db1,_0x614725){const _0x5c06cd=Array[_0x3bd1('0x6')](_0x614725[_0x3bd1('0x31')])[_0x3bd1('0x18')](_0x327f1b=>_0x327f1b!=_0x614725['creator']);return _0x614725[_0x3bd1('0x8')]&&_0x5c06cd[_0x3bd1('0x5')](_0x614725['creator']),_0x5c06cd[_0x3bd1('0x29')](_0x3cff55=>new _0x4b000a(_0x2d0db1,_0x3cff55,_0x3cff55==_0x614725[_0x3bd1('0x8')]));}(_0xd30490,_0x3bec34);this['id']=_0x3bec34['id'],this[_0x3bd1('0x12')]=_0x3bec34,this[_0x3bd1('0x21')](_0x3bd1('0x13'),_0x3bd1('0x1'))['to'](_0x3bec34),this[_0x3bd1('0x21')](_0x3bd1('0xd'))['to'](this,'createdAt',_0x512cc0=>_0x512cc0?_0x1bb1e2(_0xd30490[_0x3bd1('0xa')],_0x512cc0):void 0x0),this[_0x3bd1('0x11')](_0x3bd1('0x1d'),!0x1),this[_0x3bd1('0x11')](_0x3bd1('0x27'),!0x1),this['set'](_0x3bd1('0x24'),!0x1),this[_0x3bd1('0x11')](_0x3bd1('0x2b'),!0x1),this[_0x3bd1('0x11')](_0x3bd1('0x26'),!0x1),this[_0x3bd1('0x2a')]=new _0x37fba8(_0xd30490,_0x4308b0),this[_0x3bd1('0x2a')][_0x3bd1('0x14')][_0x3bd1('0x1f')]({'attributes':{'maxlength':_0x3bd1('0x4')}}),this[_0x3bd1('0x2a')][_0x3bd1('0x14')]['bind'](_0x3bd1('0x1c'),_0x3bd1('0xe'))['to'](this,_0x3bd1('0x13'),_0x3bd1('0xd')),this[_0x3bd1('0x2a')][_0x3bd1('0x21')](_0x3bd1('0x26'))['to'](this,_0x3bd1('0x1d'),this,'isEnabled',(_0x501b3d,_0x2e57d6)=>_0x501b3d&&_0x2e57d6),this[_0x3bd1('0x19')]=_0x3a4697&&_0x3a4697[_0x3bd1('0x0')]?_0x22b78f(this,_0x3a4697):'',this[_0x3bd1('0x19')]&&this[_0x3bd1('0x19')][_0x3bd1('0x21')](_0x3bd1('0x26'))['to'](this),this[_0x3bd1('0x2c')]({'tag':'div','attributes':{'class':['ck',_0x3bd1('0x7'),_0x3bd1('0x23'),_0x48a5ba['if'](_0x3bd1('0x28'),_0x3bd1('0x3'))]},'children':[{'tag':_0x3bd1('0x1a'),'attributes':{'class':['ck',_0x3bd1('0x7'),_0x3bd1('0x30'),_0x48a5ba['if'](_0x3bd1('0x26'),_0x3bd1('0x16'),_0x4e5844=>!_0x4e5844),_0x48a5ba['if'](_0x3bd1('0x1d'),_0x3bd1('0x20')),_0x48a5ba['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x48a5ba['if']('isActionsDropdownOpen',_0x3bd1('0x2d'))]},'children':[this[_0x3bd1('0x2a')],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x48a5ba['to'](_0x3bd1('0xd'))}]},{'tag':_0x3bd1('0x1a'),'attributes':{'class':['ck',_0x3bd1('0xb')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x3bd1('0x2e')]},'children':_0x2507e0}]},this[_0x3bd1('0x19')]],'on':{'click':_0x48a5ba['to'](_0x37e749=>{_0x37e749[_0x3bd1('0x22')][_0x3bd1('0x17')](_0x3bd1('0x15'))||this['isReady']&&this[_0x3bd1('0x26')]&&this[_0x3bd1('0x10')](_0x3bd1('0x25'),{'id':this['id']});})}}]});}[_0x3bd1('0x9')](){super[_0x3bd1('0x9')]();const _0x234afb=this[_0x3bd1('0x2a')][_0x3bd1('0x14')][_0x3bd1('0x2')];this[_0x3bd1('0x2f')](_0x234afb,_0x3bd1('0xf'),()=>{this[_0x3bd1('0x10')](_0x3bd1('0x1e'),{'id':this['id'],'name':_0x234afb['value']});});}[_0x3bd1('0x25')](){this[_0x3bd1('0x1d')]=!0x0;}['deselect'](){this['isSelected']=!0x1;}[_0x3bd1('0x1b')](){this['isHighlighted']=!0x0;}[_0x3bd1('0xc')](){this[_0x3bd1('0x27')]=!0x1;}}
23
+ const _0x3d49=['createdAt','placeholder','set','revisionActionsView','ck-reset','setName','map','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision__controls-wrapper','bindTemplate','deselect','revisionNameView','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','change','ck-revision-history-sidebar__actions_dropdown_open','isReady','select','element','authors','_createdAtFormatted','bind','extendTemplate','filter','isEnabled','value','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision_highlighted','creator','unshift','isSelected','div','fieldView','ck-revision-history-sidebar__revision-authors','isActionsDropdownOpen','name','isHighlighted','closest','uiLanguage','render'];(function(_0xc7f5a1,_0x3d499a){const _0x27ad73=function(_0x50591e){while(--_0x50591e){_0xc7f5a1['push'](_0xc7f5a1['shift']());}};_0x27ad73(++_0x3d499a);}(_0x3d49,0x98));const _0x27ad=function(_0xc7f5a1,_0x3d499a){_0xc7f5a1=_0xc7f5a1-0x0;let _0x27ad73=_0x3d49[_0xc7f5a1];return _0x27ad73;};import{View as _0x288a3c,createLabeledInputText as _0x3921b9}from'ckeditor5/src/ui';import{ConfirmMixin as _0x16ee6}from'ckeditor5-collaboration/src/collaboration-core';import _0x2bd263 from'./revisionnameview';import _0x1828a4 from'./revisionauthorview';import{dateToPrettyFormat as _0x5c1608}from'./utils';import{createActionsDropdownView as _0x2a2009}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x16ee6(_0x288a3c){constructor(_0x22ba3e,_0x2538eb,_0x2eccc3){super(_0x22ba3e);const _0x5ebbe7=this[_0x27ad('0xd')],_0x50f3a4=function(_0x4295f1,_0x328de1){const _0x53a5a6=Array['from'](_0x328de1[_0x27ad('0x16')])[_0x27ad('0x1a')](_0x44460a=>_0x44460a!=_0x328de1[_0x27ad('0x1f')]);return _0x328de1['creator']&&_0x53a5a6[_0x27ad('0x20')](_0x328de1[_0x27ad('0x1f')]),_0x53a5a6[_0x27ad('0xa')](_0x181c6c=>new _0x1828a4(_0x4295f1,_0x181c6c,_0x181c6c==_0x328de1[_0x27ad('0x1f')]));}(_0x22ba3e,_0x2538eb);this['id']=_0x2538eb['id'],this['_revision']=_0x2538eb,this[_0x27ad('0x18')](_0x27ad('0x26'),_0x27ad('0x4'))['to'](_0x2538eb),this['bind'](_0x27ad('0x17'))['to'](this,'createdAt',_0x940fd9=>_0x940fd9?_0x5c1608(_0x22ba3e[_0x27ad('0x2')],_0x940fd9):void 0x0),this[_0x27ad('0x6')]('isSelected',!0x1),this[_0x27ad('0x6')]('isHighlighted',!0x1),this[_0x27ad('0x6')](_0x27ad('0x25'),!0x1),this[_0x27ad('0x6')](_0x27ad('0x13'),!0x1),this[_0x27ad('0x6')]('isEnabled',!0x1),this['revisionNameView']=new _0x2bd263(_0x22ba3e,_0x3921b9),this['revisionNameView'][_0x27ad('0x23')][_0x27ad('0x19')]({'attributes':{'maxlength':'220'}}),this[_0x27ad('0xf')][_0x27ad('0x23')][_0x27ad('0x18')](_0x27ad('0x1c'),_0x27ad('0x5'))['to'](this,_0x27ad('0x26'),_0x27ad('0x17')),this[_0x27ad('0xf')][_0x27ad('0x18')](_0x27ad('0x1b'))['to'](this,_0x27ad('0x21'),this,'isEnabled',(_0x2284ad,_0x7138e6)=>_0x2284ad&&_0x7138e6),this[_0x27ad('0x7')]=_0x2eccc3&&_0x2eccc3['length']?_0x2a2009(this,_0x2eccc3):'',this['revisionActionsView']&&this[_0x27ad('0x7')][_0x27ad('0x18')]('isEnabled')['to'](this),this['setTemplate']({'tag':_0x27ad('0x22'),'attributes':{'class':['ck',_0x27ad('0x8'),'ck-revision-history-sidebar__revision-wrapper',_0x5ebbe7['if']('isConfirm',_0x27ad('0x10'))]},'children':[{'tag':_0x27ad('0x22'),'attributes':{'class':['ck','ck-reset',_0x27ad('0x1d'),_0x5ebbe7['if'](_0x27ad('0x1b'),'ck-disabled',_0x3abb68=>!_0x3abb68),_0x5ebbe7['if'](_0x27ad('0x21'),_0x27ad('0xb')),_0x5ebbe7['if'](_0x27ad('0x0'),_0x27ad('0x1e')),_0x5ebbe7['if'](_0x27ad('0x25'),_0x27ad('0x12'))]},'children':[this[_0x27ad('0xf')],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x5ebbe7['to'](_0x27ad('0x17'))}]},{'tag':'div','attributes':{'class':['ck',_0x27ad('0xc')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x27ad('0x24')]},'children':_0x50f3a4}]},this[_0x27ad('0x7')]],'on':{'click':_0x5ebbe7['to'](_0x49c82b=>{_0x49c82b['srcElement'][_0x27ad('0x1')]('.ck-thread__remove-confirm')||this[_0x27ad('0x13')]&&this[_0x27ad('0x1b')]&&this['fire'](_0x27ad('0x14'),{'id':this['id']});})}}]});}[_0x27ad('0x3')](){super[_0x27ad('0x3')]();const _0x4e49bc=this[_0x27ad('0xf')]['fieldView'][_0x27ad('0x15')];this['listenTo'](_0x4e49bc,_0x27ad('0x11'),()=>{this['fire'](_0x27ad('0x9'),{'id':this['id'],'name':_0x4e49bc[_0x27ad('0x1c')]});});}[_0x27ad('0x14')](){this[_0x27ad('0x21')]=!0x0;}[_0x27ad('0xe')](){this[_0x27ad('0x21')]=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this[_0x27ad('0x0')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x11f9=['button','ck-revision-history-sidebar__subrevision-collapser','bindTemplate','ck-hidden','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser__inner','click','set','isVisible','true','span','toggle'];(function(_0x54ff64,_0x11f971){const _0xd7c52e=function(_0x101c19){while(--_0x101c19){_0x54ff64['push'](_0x54ff64['shift']());}};_0xd7c52e(++_0x11f971);}(_0x11f9,0x1c9));const _0xd7c5=function(_0x54ff64,_0x11f971){_0x54ff64=_0x54ff64-0x0;let _0xd7c52e=_0x11f9[_0x54ff64];return _0xd7c52e;};import{View as _0x436b2b}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x436b2b{constructor(_0x17caa9){super(_0x17caa9);const _0x5c67d6=this[_0xd7c5('0x1')];this[_0xd7c5('0x6')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0xd7c5('0x9'),'attributes':{'class':['ck',_0xd7c5('0x0'),_0x5c67d6['if'](_0xd7c5('0x7'),_0xd7c5('0x2'),_0x179065=>!_0x179065),_0x5c67d6['if']('_isCollapsed','ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0xd7c5('0xb'),'aria-pressed':_0x5c67d6['to']('_isCollapsed',_0x28072f=>_0x28072f?'false':_0xd7c5('0x8'))},'children':[{'tag':_0xd7c5('0x9'),'attributes':{'class':['ck',_0xd7c5('0x4')]}}],'on':{'click':_0x5c67d6['to'](_0xd7c5('0x5'))}});}[_0xd7c5('0xa')](){this[_0xd7c5('0x3')]=!this[_0xd7c5('0x3')];}}
23
+ const _0x4898=['setTemplate','ck-revision-history-sidebar__subrevision-collapser','isVisible','true','_isCollapsed','button','set','false','span','ck-hidden','ck-revision-history-sidebar__subrevision-collapser_collapsed'];(function(_0x295696,_0x489883){const _0x91cbc=function(_0x1b3cec){while(--_0x1b3cec){_0x295696['push'](_0x295696['shift']());}};_0x91cbc(++_0x489883);}(_0x4898,0x111));const _0x91cb=function(_0x295696,_0x489883){_0x295696=_0x295696-0x0;let _0x91cbc=_0x4898[_0x295696];return _0x91cbc;};import{View as _0xe2d6d8}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0xe2d6d8{constructor(_0x1f9ea2){super(_0x1f9ea2);const _0x253ca9=this['bindTemplate'];this[_0x91cb('0x8')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x91cb('0x2')]({'tag':'span','attributes':{'class':['ck',_0x91cb('0x3'),_0x253ca9['if'](_0x91cb('0x4'),_0x91cb('0x0'),_0x586ae5=>!_0x586ae5),_0x253ca9['if']('_isCollapsed',_0x91cb('0x1'))],'role':_0x91cb('0x7'),'aria-pressed':_0x253ca9['to'](_0x91cb('0x6'),_0x5242d7=>_0x5242d7?_0x91cb('0x9'):_0x91cb('0x5'))},'children':[{'tag':_0x91cb('0xa'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x253ca9['to']('click')}});}['toggle'](){this['_isCollapsed']=!this[_0x91cb('0x6')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46ee=['creator','createdAt','bind','deselect','setTemplate','ck-revision-history-sidebar__revision_selected','bindTemplate','div','ck-revision-history-sidebar__revision-authors','span','_createdAtFormatted','ck-revision-history-sidebar__revision__date','uiLanguage','isSelected','ck-reset','select','set'];(function(_0x516373,_0x46eeca){const _0x3d8f45=function(_0x316f04){while(--_0x316f04){_0x516373['push'](_0x516373['shift']());}};_0x3d8f45(++_0x46eeca);}(_0x46ee,0x1ba));const _0x3d8f=function(_0x516373,_0x46eeca){_0x516373=_0x516373-0x0;let _0x3d8f45=_0x46ee[_0x516373];return _0x3d8f45;};import{View as _0x2fbef0}from'ckeditor5/src/ui';import _0x3a5bdb from'./revisionauthorview';import{dateToPrettyFormat as _0x254608}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x2fbef0{constructor(_0x46fb75,_0x1ecfb6,_0x2e0b49){super(_0x46fb75);const _0x3045cf=this[_0x3d8f('0x6')];this['id']=_0x1ecfb6['id'],this['bind'](_0x3d8f('0x1'))['to'](_0x1ecfb6),this[_0x3d8f('0x10')](_0x3d8f('0xd'),!0x1),this[_0x3d8f('0x2')]('_createdAtFormatted')['to'](this,_0x3d8f('0x1'),_0x3d5cf0=>_0x3d5cf0?_0x254608(_0x46fb75[_0x3d8f('0xc')],_0x3d5cf0):void 0x0),this['_parentRevisionId']=_0x2e0b49,this[_0x3d8f('0x4')]({'tag':_0x3d8f('0x7'),'attributes':{'class':['ck',_0x3d8f('0xe'),'ck-revision-history-sidebar__revision','ck-revision-history-sidebar__subrevision',_0x3045cf['if'](_0x3d8f('0xd'),_0x3d8f('0x5'))]},'children':[{'tag':_0x3d8f('0x9'),'attributes':{'class':['ck',_0x3d8f('0xb')]},'children':[{'text':_0x3045cf['to'](_0x3d8f('0xa'))}]},{'tag':'ul','attributes':{'class':['ck',_0x3d8f('0x8')]},'children':[new _0x3a5bdb(_0x46fb75,_0x1ecfb6[_0x3d8f('0x0')],!0x0)]}],'on':{'click':_0x3045cf['to'](this[_0x3d8f('0xf')][_0x3d8f('0x2')](this))}});}[_0x3d8f('0xf')](){this['isSelected']=!0x0,this['fire'](_0x3d8f('0xf'),{'parentId':this['_parentRevisionId']});}[_0x3d8f('0x3')](){this[_0x3d8f('0xd')]=!0x1;}}
23
+ const _0x5e36=['span','_parentRevisionId','ck-revision-history-sidebar__revision-authors','createdAt','bind','bindTemplate','creator','ck-revision-history-sidebar__subrevision','_createdAtFormatted','isSelected','fire','select','deselect','setTemplate'];(function(_0x1ca23a,_0x5e36c2){const _0x1c46e4=function(_0x3d3936){while(--_0x3d3936){_0x1ca23a['push'](_0x1ca23a['shift']());}};_0x1c46e4(++_0x5e36c2);}(_0x5e36,0xdc));const _0x1c46=function(_0x1ca23a,_0x5e36c2){_0x1ca23a=_0x1ca23a-0x0;let _0x1c46e4=_0x5e36[_0x1ca23a];return _0x1c46e4;};import{View as _0x1aeb06}from'ckeditor5/src/ui';import _0x9ce74b from'./revisionauthorview';import{dateToPrettyFormat as _0x5f4206}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x1aeb06{constructor(_0x34d896,_0x1c9943,_0x370e26){super(_0x34d896);const _0x143c4d=this[_0x1c46('0x9')];this['id']=_0x1c9943['id'],this[_0x1c46('0x8')](_0x1c46('0x7'))['to'](_0x1c9943),this['set'](_0x1c46('0xd'),!0x1),this[_0x1c46('0x8')](_0x1c46('0xc'))['to'](this,_0x1c46('0x7'),_0x4d1885=>_0x4d1885?_0x5f4206(_0x34d896['uiLanguage'],_0x4d1885):void 0x0),this[_0x1c46('0x5')]=_0x370e26,this[_0x1c46('0x3')]({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1c46('0xb'),_0x143c4d['if'](_0x1c46('0xd'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x1c46('0x4'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x143c4d['to'](_0x1c46('0xc'))}]},{'tag':'ul','attributes':{'class':['ck',_0x1c46('0x6')]},'children':[new _0x9ce74b(_0x34d896,_0x1c9943[_0x1c46('0xa')],!0x0)]}],'on':{'click':_0x143c4d['to'](this[_0x1c46('0x1')]['bind'](this))}});}['select'](){this[_0x1c46('0xd')]=!0x0,this[_0x1c46('0x0')]('select',{'parentId':this[_0x1c46('0x5')]});}[_0x1c46('0x2')](){this['isSelected']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x31df=['numeric','toLocaleTimeString','toLocaleDateString'];(function(_0x38db43,_0x31dfda){var _0x81f444=function(_0x53eb3f){while(--_0x53eb3f){_0x38db43['push'](_0x38db43['shift']());}};_0x81f444(++_0x31dfda);}(_0x31df,0x153));var _0x81f4=function(_0x38db43,_0x31dfda){_0x38db43=_0x38db43-0x0;var _0x81f444=_0x31df[_0x38db43];return _0x81f444;};export function dateToPrettyFormat(_0xc2874f,_0x420782){return _0x420782[_0x81f4('0x2')](_0xc2874f,{'month':'long','day':_0x81f4('0x0')})+',\x20'+_0x420782[_0x81f4('0x1')](_0xc2874f,{'hour':'numeric','minute':_0x81f4('0x0')});}
23
+ var _0x248a=['numeric','toLocaleDateString','toLocaleTimeString'];(function(_0x207933,_0x248ae7){var _0x3626fa=function(_0x4e5f54){while(--_0x4e5f54){_0x207933['push'](_0x207933['shift']());}};_0x3626fa(++_0x248ae7);}(_0x248a,0xec));var _0x3626=function(_0x207933,_0x248ae7){_0x207933=_0x207933-0x0;var _0x3626fa=_0x248a[_0x207933];return _0x3626fa;};export function dateToPrettyFormat(_0x5ef78b,_0xdcf76b){return _0xdcf76b[_0x3626('0x2')](_0x5ef78b,{'month':'long','day':_0x3626('0x1')})+',\x20'+_0xdcf76b[_0x3626('0x0')](_0x5ef78b,{'hour':'numeric','minute':_0x3626('0x1')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x453b=['220','arrowleft','set','arrowdown','tab','trim','locale','listenTo','ck-revision-history-save-revision-form','_createButton','cancelButtonView','input','_focusables','check','ck-button-save','revisionName','revisionNameInputView','label','_createRevisionNameInput','revisionNameInputValue','form','submit','_focusCycler','focusTracker','add','forEach','Cancel','stopPropagation','value','execute','render','element','fieldView','arrowright','keystrokes','cancel','Name\x20of\x20the\x20revision\x20(optional)','focus','setTemplate','arrowup','saveButtonView'];(function(_0x23bb60,_0x453b42){const _0xc5abb3=function(_0x4e5a8e){while(--_0x4e5a8e){_0x23bb60['push'](_0x23bb60['shift']());}};_0xc5abb3(++_0x453b42);}(_0x453b,0xfa));const _0xc5ab=function(_0x23bb60,_0x453b42){_0x23bb60=_0x23bb60-0x0;let _0xc5abb3=_0x453b[_0x23bb60];return _0xc5abb3;};import{icons as _0x4992da}from'ckeditor5/src/core';import{ButtonView as _0x3d3615,FocusCycler as _0x40b2c8,LabeledFieldView as _0x45eac7,View as _0x36aca2,ViewCollection as _0x22108d,createLabeledInputText as _0x85fc04,injectCssTransitionDisabler as _0x261c04,submitHandler as _0x534242}from'ckeditor5/src/ui';import{FocusTracker as _0x5ad574,KeystrokeHandler as _0x4f7b18}from'ckeditor5/src/utils';import{getTranslation as _0x40f7db}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x36aca2{constructor(_0x4ac2f5){super(_0x4ac2f5),this[_0xc5ab('0x13')]=new _0x5ad574(),this[_0xc5ab('0x1e')]=new _0x4f7b18(),this['set'](_0xc5ab('0xf'),''),this[_0xc5ab('0xc')]=this[_0xc5ab('0xe')](),this[_0xc5ab('0x24')]=this[_0xc5ab('0x5')](_0x40f7db(_0x4ac2f5,'Save'),_0x4992da[_0xc5ab('0x9')],_0xc5ab('0xa')),this[_0xc5ab('0x24')]['type']=_0xc5ab('0x11'),this[_0xc5ab('0x6')]=this[_0xc5ab('0x5')](_0x40f7db(_0x4ac2f5,_0xc5ab('0x16')),_0x4992da[_0xc5ab('0x1f')],'ck-button-cancel',_0xc5ab('0x1f')),this[_0xc5ab('0x8')]=new _0x22108d(),this[_0xc5ab('0x12')]=new _0x40b2c8({'focusables':this[_0xc5ab('0x8')],'focusTracker':this[_0xc5ab('0x13')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0xc5ab('0x0')}}),this[_0xc5ab('0x22')]({'tag':_0xc5ab('0x10'),'attributes':{'class':['ck',_0xc5ab('0x4'),'ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0xc5ab('0x24')],this['cancelButtonView']]}),_0x261c04(this);}[_0xc5ab('0x1a')](){super[_0xc5ab('0x1a')](),_0x534242({'view':this}),([this[_0xc5ab('0xc')],this[_0xc5ab('0x24')],this[_0xc5ab('0x6')]][_0xc5ab('0x15')](_0x3a06d6=>{this['_focusables']['add'](_0x3a06d6),this[_0xc5ab('0x13')][_0xc5ab('0x14')](_0x3a06d6[_0xc5ab('0x1b')]);}),this[_0xc5ab('0x1e')][_0xc5ab('0x3')](this['element']));const _0x51339c=_0x12eb8a=>_0x12eb8a[_0xc5ab('0x17')]();this[_0xc5ab('0x1e')][_0xc5ab('0x27')](_0xc5ab('0x1d'),_0x51339c),this['keystrokes'][_0xc5ab('0x27')](_0xc5ab('0x26'),_0x51339c),this[_0xc5ab('0x1e')]['set'](_0xc5ab('0x23'),_0x51339c),this[_0xc5ab('0x1e')][_0xc5ab('0x27')](_0xc5ab('0x28'),_0x51339c);}[_0xc5ab('0x21')](){this[_0xc5ab('0x12')]['focusFirst']();}get['revisionName'](){return this[_0xc5ab('0xc')][_0xc5ab('0x1c')][_0xc5ab('0x1b')][_0xc5ab('0x18')]['trim']();}set[_0xc5ab('0xb')](_0x5e6168){this[_0xc5ab('0xc')][_0xc5ab('0x1c')][_0xc5ab('0x1b')][_0xc5ab('0x18')]=_0x5e6168[_0xc5ab('0x1')]();}['reset'](){this[_0xc5ab('0xc')][_0xc5ab('0x1c')][_0xc5ab('0x1b')]['value']='';}[_0xc5ab('0xe')](){const _0xdae54b=new _0x45eac7(this[_0xc5ab('0x2')],_0x85fc04),_0x167428=_0xdae54b[_0xc5ab('0x1c')];return _0x167428['extendTemplate']({'attributes':{'maxlength':_0xc5ab('0x25')}}),_0xdae54b[_0xc5ab('0xd')]=_0x40f7db(this[_0xc5ab('0x2')],_0xc5ab('0x20')),_0x167428['on'](_0xc5ab('0x7'),()=>{this['revisionNameInputValue']=_0x167428['element'][_0xc5ab('0x18')][_0xc5ab('0x1')]();}),_0xdae54b;}[_0xc5ab('0x5')](_0x6b84d0,_0x249ddf,_0x146796,_0x30b590){const _0x5456e2=new _0x3d3615(this[_0xc5ab('0x2')]);return _0x5456e2[_0xc5ab('0x27')]({'label':_0x6b84d0,'icon':_0x249ddf,'tooltip':!0x0}),_0x5456e2['extendTemplate']({'attributes':{'class':_0x146796}}),_0x30b590&&_0x5456e2['delegate'](_0xc5ab('0x19'))['to'](this,_0x30b590),_0x5456e2;}}
23
+ const _0x5522=['revisionNameInputValue','220','saveButtonView','value','tab','Cancel','extendTemplate','_createButton','keystrokes','revisionName','ck-responsive-form','_focusables','arrowdown','focusFirst','_createRevisionNameInput','revisionNameInputView','cancel','cancelButtonView','focus','form','check','trim','add','input','listenTo','execute','ck-revision-history-save-revision-form','render','ck-button-cancel','stopPropagation','focusTracker','locale','element','Save','_focusCycler','fieldView','label','set'];(function(_0x507e77,_0x552263){const _0x59c8c3=function(_0x9f7d2d){while(--_0x9f7d2d){_0x507e77['push'](_0x507e77['shift']());}};_0x59c8c3(++_0x552263);}(_0x5522,0x1b6));const _0x59c8=function(_0x507e77,_0x552263){_0x507e77=_0x507e77-0x0;let _0x59c8c3=_0x5522[_0x507e77];return _0x59c8c3;};import{icons as _0x18272c}from'ckeditor5/src/core';import{ButtonView as _0x460eca,FocusCycler as _0x2f7d9d,LabeledFieldView as _0x1a1a75,View as _0x24bed2,ViewCollection as _0x59bacd,createLabeledInputText as _0x5191d3,injectCssTransitionDisabler as _0x31ebfd,submitHandler as _0x50a08c}from'ckeditor5/src/ui';import{FocusTracker as _0x4f7f9c,KeystrokeHandler as _0x1e25a7}from'ckeditor5/src/utils';import{getTranslation as _0x1d671d}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x24bed2{constructor(_0x5e6f03){super(_0x5e6f03),this[_0x59c8('0xa')]=new _0x4f7f9c(),this[_0x59c8('0x1a')]=new _0x1e25a7(),this[_0x59c8('0x11')]('revisionNameInputValue',''),this[_0x59c8('0x21')]=this['_createRevisionNameInput'](),this[_0x59c8('0x14')]=this[_0x59c8('0x19')](_0x1d671d(_0x5e6f03,_0x59c8('0xd')),_0x18272c[_0x59c8('0x0')],'ck-button-save'),this[_0x59c8('0x14')]['type']='submit',this['cancelButtonView']=this[_0x59c8('0x19')](_0x1d671d(_0x5e6f03,_0x59c8('0x17')),_0x18272c['cancel'],_0x59c8('0x8'),_0x59c8('0x22')),this[_0x59c8('0x1d')]=new _0x59bacd(),this[_0x59c8('0xe')]=new _0x2f7d9d({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x59c8('0x1a')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x59c8('0x16')}}),this['setTemplate']({'tag':_0x59c8('0x25'),'attributes':{'class':['ck',_0x59c8('0x6'),_0x59c8('0x1c')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x59c8('0x14')],this[_0x59c8('0x23')]]}),_0x31ebfd(this);}[_0x59c8('0x7')](){super[_0x59c8('0x7')](),_0x50a08c({'view':this}),([this[_0x59c8('0x21')],this[_0x59c8('0x14')],this[_0x59c8('0x23')]]['forEach'](_0x48abe8=>{this[_0x59c8('0x1d')]['add'](_0x48abe8),this[_0x59c8('0xa')][_0x59c8('0x2')](_0x48abe8['element']);}),this[_0x59c8('0x1a')][_0x59c8('0x4')](this['element']));const _0x1315fc=_0x4637ad=>_0x4637ad[_0x59c8('0x9')]();this['keystrokes'][_0x59c8('0x11')]('arrowright',_0x1315fc),this['keystrokes'][_0x59c8('0x11')]('arrowleft',_0x1315fc),this['keystrokes'][_0x59c8('0x11')]('arrowup',_0x1315fc),this[_0x59c8('0x1a')][_0x59c8('0x11')](_0x59c8('0x1e'),_0x1315fc);}[_0x59c8('0x24')](){this[_0x59c8('0xe')][_0x59c8('0x1f')]();}get['revisionName'](){return this[_0x59c8('0x21')][_0x59c8('0xf')][_0x59c8('0xc')][_0x59c8('0x15')]['trim']();}set[_0x59c8('0x1b')](_0x4e8fdc){this[_0x59c8('0x21')][_0x59c8('0xf')][_0x59c8('0xc')][_0x59c8('0x15')]=_0x4e8fdc[_0x59c8('0x1')]();}['reset'](){this[_0x59c8('0x21')][_0x59c8('0xf')]['element']['value']='';}[_0x59c8('0x20')](){const _0x5108a3=new _0x1a1a75(this[_0x59c8('0xb')],_0x5191d3),_0x1dbac5=_0x5108a3['fieldView'];return _0x1dbac5[_0x59c8('0x18')]({'attributes':{'maxlength':_0x59c8('0x13')}}),_0x5108a3[_0x59c8('0x10')]=_0x1d671d(this['locale'],'Name\x20of\x20the\x20revision\x20(optional)'),_0x1dbac5['on'](_0x59c8('0x3'),()=>{this[_0x59c8('0x12')]=_0x1dbac5['element']['value'][_0x59c8('0x1')]();}),_0x5108a3;}[_0x59c8('0x19')](_0xc7edba,_0x30d412,_0x10d950,_0x32d989){const _0x2947c3=new _0x460eca(this[_0x59c8('0xb')]);return _0x2947c3[_0x59c8('0x11')]({'label':_0xc7edba,'icon':_0x30d412,'tooltip':!0x0}),_0x2947c3[_0x59c8('0x18')]({'attributes':{'class':_0x10d950}}),_0x32d989&&_0x2947c3['delegate'](_0x59c8('0x5'))['to'](this,_0x32d989),_0x2947c3;}}