@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240125.0 → 0.0.0-nightly-20240127.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 +5 -5
  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 _0x2673=['detachRoot','newRevisionId','vid_start','level','isLimit','split','clear','authors','_data','insert','isEqual','pop','getIndex','removeAttribute','return','getDomRoot','hasClass','dataDowncast','from','listenTo','ck-revision-history-root-add','_changeIdToChange','init','highest','_appendChild','top','_removeMissingPairs','plugins','domConverter','createUIElement','start','change:activeChange','markerToData','resolve','remove','bottom','isSuggestion','change:isEnabled','modelRange','checkAttribute','affectsData','_update','isOnRoot','requires','processor','_markSuggestions','upcast','_markMismatchedRemovedTags','ck-editor__editable__overlay','enableReadOnlyMode','createRange','conversion','indexOf','revision-suggestion','range','_sortAndFilterDiffChanges','endIndex','RevisionsRepository','toData','downcastDispatcher','isEnabled','getItems','change:numberOfChanges','side','vid','ck-suggestion-marker--active','numberOfChanges','hasAttribute','removeMarker:revision-suggestion','delete','repository','getAttribute','has','enqueueChange','revision','isCollapsed','_cleanUp','forceDisabled','domEvent','revision-suggestion:','index','addMarker:revision','roots','toViewPosition','distance','_getViewObj','high','marked','editingDowncast','viewItem','then','useFillerType','isAfter','mouseover','model','for','done','_getRevisionsRange','splice','isNavigationMode','userId','shift','vid_end','unshift','_makeModelFromTape','uiElement','refresh','get','isIncorrect','removeMarker:revision','revisionHistoryAttachChange','next','rootName','isRemoveSuggestion','consume','sort','_findChangeIdFromDomTarget','code','getAttributes','restoreRevision','getRootNames','suggestion:','dataToMarker','isReady','change:activeView','ck-suggestion-marker-','_setDistance','ck-suggestion-marker-merge','getClientRects','activeView','forward','addRevisionData','execute','nodeAfter','isBlock','parse','insertion','nextSibling','startsWith','_processTape','target','mapper','-new','map','addHighlight','consumable','locale','markerName','_fixObsoleteTags','isAtStart','forEach','children','attachChange','isAddSuggestion','_step','elementEnd','toViewRange','changeId','commands','elementToAttribute','config','isContent','startIndex','document','markerNameToElements','_makeTape','markerRange','observeMarkers','abs','toViewElement','getRevisionData','_activeViewTarget','push','keys','data-revision-','set','removeClass','softBreak','parent','attributesBefore','activeChange','bindElementToMarker','length','slice','addMarker:revision-suggestion:deletion','error','test','markersStart','addRoot','toModel','elementStart','_refreshStartEndIndex','markersEnd','find','attributes','first','item','nextPosition','_balloon','restoreRevisionCallback','reconvertMarker','suggestion','setAttribute','ck-revision-history-root--active','createAttributeElement','data-change-id','schema','data','isAdded','name','adapter','maxOffset','_cleanMarkers','isRemoved','isAttached','WidgetToolbarRepository','concat','attribute:vid','changes','all','revision-start','_removeUnsupportedChanges','ck-revision-history-root-remove','getWalker','writer','deletion','_changeView','wrap','revision-end','markerToHighlight','string','editing','ck-suggestion-preview-marker','showPreviousChange','removeMarker','_getViewForChange','pairId','revisionHistoryLabel','compare','getChild','getCustomProperty','destroy','merge','left','offsetSize','catch','insertions','RevisionViewer','editor','createPositionFromPath','createRevision','mapViewToDom','ck-suggestion-marker-split','diffData','getRoot','showNextChange','filter','addClass','view','collaboration.channelId','change','getRevision','markers','_removeRevisionMarkers','bind','revision-comment:','element','revisionHistory','_getChangeFromId','diff','addMarker:revision-suggestion:insertion','isInline','type','_setChanges','span','default','_markInsertions','_markMarkers','pluginName','add','loadRevisionData','previousPosition','revision-viewer','end','includes','_makeModelFromViewString','revision:'];(function(_0x497ee5,_0x26739c){const _0x52792a=function(_0x171923){while(--_0x171923){_0x497ee5['push'](_0x497ee5['shift']());}};_0x52792a(++_0x26739c);}(_0x2673,0x199));const _0x5279=function(_0x497ee5,_0x26739c){_0x497ee5=_0x497ee5-0x0;let _0x52792a=_0x2673[_0x497ee5];return _0x52792a;};import{Plugin as _0x56fb61,Command as _0x113455}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x33d52d}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x26fbf5}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x365d5e,Element as _0x35edab,Text as _0x332f37,ViewDocumentFragment as _0xa4eac6,ViewText as _0x2f792b,ViewElement as _0x4f4a84,ViewContainerElement as _0x28f750,ViewAttributeElement as _0x38ca71,ViewEmptyElement as _0x1d563d,ViewRawElement as _0x106bf2,ViewUIElement as _0x1cd42d}from'ckeditor5/src/engine.js';import{Users as _0x587a05,getMarkerDomElement as _0x3a8ef3}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x45e674 from'./ui/revisionviewer/changedetailsview.js';import _0x2460fd from'./revisionsrepository.js';import _0xf556c2 from'./changeitem.js';import{default as _0x57c75d}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x29b2d5}from'lodash-es';const tt={'c':_0x28f750,'a':_0x38ca71,'e':_0x1d563d,'r':_0x106bf2,'u':_0x1cd42d};export default class d extends _0x56fb61{static get[_0x5279('0x9c')](){return _0x5279('0x7d');}static get[_0x5279('0xd0')](){return[_0x587a05,_0x26fbf5,_0x2460fd];}constructor(_0x6e388){super(_0x6e388),this[_0x5279('0xeb')]=this['editor']['plugins'][_0x5279('0x110')](_0x5279('0xde')),this[_0x5279('0x35')](_0x5279('0x3a'),null),this[_0x5279('0x35')](_0x5279('0x7'),null),this['_activeViewTarget']=null,this['set'](_0x5279('0x93'),null),this[_0x5279('0x35')](_0x5279('0x1'),!0x1),this[_0x5279('0x35')](_0x5279('0xe1'),!0x0),this['on'](_0x5279('0xca'),(_0x34d5af,_0x3e5db4,_0x363eeb)=>{this[_0x5279('0x3a')]=null,this[_0x5279('0x7')]=null,this[_0x5279('0x7e')][_0x5279('0x6d')]['view']['change'](_0x329c84=>{for(const _0x5074ae of this[_0x5279('0x7e')][_0x5279('0x6d')][_0x5279('0x88')][_0x5279('0x29')][_0x5279('0xf7')])_0x363eeb?_0x329c84[_0x5279('0x36')](_0x5279('0xd5'),_0x5074ae):_0x329c84['addClass'](_0x5279('0xd5'),_0x5074ae);});}),this[_0x5279('0x8e')](_0x5279('0x108'))['to'](this,'activeChange',_0x3cbe9f=>null!==_0x3cbe9f),this[_0x5279('0x8e')]('currentChangeNumber')['to'](this,'isReady',this,'diff',this,_0x5279('0x3a'),(_0x435511,_0x3c1b4a,_0xd39f73)=>_0x435511&&_0xd39f73?_0x3c1b4a[_0x5279('0x60')][_0x5279('0xb1')](_0xd39f73):0x0),this['bind'](_0x5279('0xe7'))['to'](this,_0x5279('0x1'),this,_0x5279('0x93'),(_0x17a1a3,_0x6a60c8)=>_0x17a1a3?_0x6a60c8['changes'][_0x5279('0x3c')]:0x0),this[_0x5279('0x68')]=null,this[_0x5279('0xba')]=new Map(),this[_0x5279('0x58')]=null,this['_balloon']=this[_0x5279('0x7e')][_0x5279('0xc0')][_0x5279('0x110')](_0x26fbf5);}[_0x5279('0xbb')](){const _0x23bcb4=this['editor'],_0x26602b=new ShowChangeCommand(_0x23bcb4,{'direction':'backward'}),_0x280631=new ShowChangeCommand(_0x23bcb4,{'direction':_0x5279('0x8')});(_0x23bcb4[_0x5279('0x24')]['add'](_0x5279('0x6f'),_0x26602b),_0x23bcb4[_0x5279('0x24')][_0x5279('0x9d')](_0x5279('0x85'),_0x280631),_0x23bcb4[_0x5279('0x24')]['add'](_0x5279('0x11c'),new RestoreRevisionCommand(_0x23bcb4)),this['on'](_0x5279('0xe3'),()=>{_0x26602b[_0x5279('0x10f')](),_0x280631[_0x5279('0x10f')]();}),this['_setConversion'](),this['_initInteractions'](),_0x23bcb4[_0x5279('0xd6')](_0x5279('0xa0')),_0x23bcb4['plugins'][_0x5279('0xed')](_0x5279('0x5d')))&&_0x23bcb4['plugins'][_0x5279('0x110')]('WidgetToolbarRepository')[_0x5279('0xf2')]('revision-viewer');}async[_0x5279('0x30')](_0x27ac38){await this[_0x5279('0x9e')](_0x27ac38);const _0x555a89={};for(const _0x167d35 in _0x27ac38[_0x5279('0x83')]){if(_0x27ac38[_0x5279('0x83')][_0x167d35]['attachChange']&&!_0x27ac38['diffData'][_0x167d35][_0x5279('0x1e')]['isAttached'])continue;const _0x3b286d=this[_0x5279('0x8d')](JSON[_0x5279('0xd')](_0x27ac38['diffData'][_0x167d35][_0x5279('0x7c')])),_0x26bd49=this[_0x5279('0x7e')][_0x5279('0x6d')]['view'][_0x5279('0x29')],_0x3e08a4=new _0xa4eac6(_0x26bd49,_0x3b286d['map'](_0x259aa2=>this[_0x5279('0xfa')](_0x259aa2)));this['editor'][_0x5279('0x55')][_0x5279('0xd1')][_0x5279('0x100')](_0x5279('0xfc')),_0x555a89[_0x167d35]=this[_0x5279('0x7e')][_0x5279('0x55')][_0x5279('0xd1')][_0x5279('0xdf')](_0x3e08a4),this[_0x5279('0x7e')][_0x5279('0x55')]['processor'][_0x5279('0x100')](_0x5279('0x99'));}return _0x555a89;}async['getRevisionRootsAttributes'](_0x35e997){await this[_0x5279('0x9e')](_0x35e997);const _0x59e996={};for(const _0x21e3bd in _0x35e997['diffData'])_0x35e997['diffData'][_0x21e3bd][_0x5279('0x1e')]&&!_0x35e997[_0x5279('0x83')][_0x21e3bd]['attachChange'][_0x5279('0x5c')]||(_0x59e996[_0x21e3bd]=_0x35e997[_0x5279('0x83')][_0x21e3bd]['attributesAfter']||{});return _0x59e996;}[_0x5279('0x8d')](_0x1aa001){return(_0x1aa001=_0x1aa001[_0x5279('0x86')](_0x3ce1c5=>!_0x3ce1c5[_0x5279('0x57')]||_0x5279('0x62')!==_0x3ce1c5['name']&&_0x5279('0x6a')!==_0x3ce1c5[_0x5279('0x57')]))['forEach'](_0x38d987=>{_0x5279('0x6c')!=typeof _0x38d987&&(_0x38d987[_0x5279('0x1d')]=this[_0x5279('0x8d')](_0x38d987['children']),_0x38d987[_0x5279('0x48')]=_0x38d987[_0x5279('0x48')][_0x5279('0x86')](_0x520ec6=>!_0x520ec6[0x0][_0x5279('0x10')](_0x5279('0x34'))));}),_0x1aa001;}async[_0x5279('0x74')](_0x4c0282,_0xabd852,_0x4c90f4=!0x1){if(!this[_0x5279('0xe1')])return;const _0x1fd572=this['diff'],_0x4a3d3d=this[_0x5279('0xeb')],_0x1788c0=_0x5279('0x6c')==typeof _0x4c0282?_0x4a3d3d[_0x5279('0x8b')](_0x4c0282):_0x4c0282,_0x4c6985=_0x5279('0x6c')==typeof _0xabd852?_0x4a3d3d[_0x5279('0x8b')](_0xabd852):_0xabd852,_0x2377b3=_0x1788c0['id'],_0x53593b=_0x4c6985?_0x4c6985['id']:null;if(!_0x4c90f4&&this[_0x5279('0x93')]&&this[_0x5279('0x93')][_0x5279('0xa6')]===_0x2377b3&&this[_0x5279('0x93')]['oldRevisionId']===_0x53593b)return Promise[_0x5279('0xc6')]();this[_0x5279('0x1')]=!0x1,this[_0x5279('0x7')]=null,this['activeChange']=null,this[_0x5279('0x93')]=new _0x57c75d(_0x2377b3,_0x53593b);const _0x3e91df=this[_0x5279('0x106')](_0x1788c0,_0x4c6985,!0x0)[_0x5279('0x15')](_0x1bf226=>this[_0x5279('0x9e')](_0x1bf226));return _0x3e91df[_0x5279('0x32')](new Promise(_0x4debf8=>{setTimeout(_0x4debf8,0x14);})),Promise[_0x5279('0x61')](_0x3e91df)[_0x5279('0xff')](()=>{if(!this['isEnabled'])return;this[_0x5279('0xf1')]();const _0x2c51a7=this['_getDiff'](_0x2377b3,_0x53593b);for(const _0x477a43 of _0x2c51a7[_0x5279('0x60')])this[_0x5279('0xba')][_0x5279('0x35')](_0x477a43['id'],_0x477a43);this[_0x5279('0x7e')][_0x5279('0x103')][_0x5279('0xee')]({'isUndoable':!0x1},_0x520a29=>{for(const _0x17b12d of this['editor'][_0x5279('0x103')][_0x5279('0x29')][_0x5279('0x11d')]())_0x520a29['detachRoot'](_0x17b12d);for(const _0x224d57 of Object[_0x5279('0x33')](_0x2c51a7[_0x5279('0x103')])){const _0x22ccd4=_0x520a29[_0x5279('0x42')](_0x224d57);for(const _0x49049f of Object[_0x5279('0x33')](_0x2c51a7['attributes'][_0x224d57]))_0x520a29['setAttribute'](_0x49049f,_0x2c51a7[_0x5279('0x48')][_0x224d57][_0x49049f],_0x22ccd4);_0x520a29[_0x5279('0xae')](_0x2c51a7[_0x5279('0x103')][_0x224d57],_0x22ccd4,0x0);}}),this['diff'][_0x5279('0x97')](this[_0x5279('0xdc')](_0x2c51a7['changes'])),this[_0x5279('0x1')]=!0x0;})[_0x5279('0x7b')](_0x167fae=>{console[_0x5279('0x3f')](_0x167fae),this['_cleanUp'](),_0x1fd572&&(this[_0x5279('0x93')]=_0x1fd572),this[_0x5279('0x1')]=!0x0;});}[_0x5279('0x9')](_0x4d7d97,_0xb986d4){const _0x4754db=this[_0x5279('0xeb')][_0x5279('0x80')](_0x4d7d97);return _0x4754db['on'](_0x5279('0xce'),(_0x404058,_0x2e57e7,_0x415439)=>_0xb986d4(_0x2e57e7,_0x415439,_0x4754db)),this[_0x5279('0xeb')]['addRevision'](_0x4754db),_0x4754db;}[_0x5279('0x9e')](_0x1f1a5f){if(!_0x1f1a5f||_0x1f1a5f[_0x5279('0x83')])return Promise[_0x5279('0xc6')]();{const _0x26139d=this[_0x5279('0x7e')]['config'][_0x5279('0x110')](_0x5279('0x89'));return this[_0x5279('0x58')]['getRevision']({'channelId':_0x26139d,'revisionId':_0x1f1a5f['id']})['then'](_0x2d7658=>{_0x1f1a5f['_update']({'diffData':_0x2d7658[_0x5279('0x83')]},!0x0);});}}['_cleanUp'](){this[_0x5279('0x3a')]=null,this[_0x5279('0x5a')](),this[_0x5279('0x68')]&&this[_0x5279('0x68')][_0x5279('0x77')](),this[_0x5279('0x68')]=null,this['_changeIdToChange'][_0x5279('0xab')](),this[_0x5279('0x7e')][_0x5279('0x103')][_0x5279('0xee')]({'isUndoable':!0x1},_0x368bcb=>{for(const _0x5c3df7 of this[_0x5279('0x7e')]['model'][_0x5279('0x29')][_0x5279('0x11d')]())_0x368bcb[_0x5279('0xa5')](_0x5c3df7);});}['_sortAndFilterDiffChanges'](_0x4a3eaa){const _0x1c4681=[],_0x4b5637=new Map();for(const _0xf41587 of this[_0x5279('0x7e')][_0x5279('0x103')][_0x5279('0x29')][_0x5279('0x11d')]()){const _0x4647b1=this['editor'][_0x5279('0x6d')][_0x5279('0x88')][_0x5279('0xb4')](_0xf41587);if(!_0x4647b1)continue;const _0x2fd3f0=_0x4647b1['getClientRects']()[_0x5279('0x4a')](0x0);_0x2fd3f0&&(_0x1c4681[_0x5279('0x32')](_0xf41587),_0x4b5637['set'](_0xf41587,_0x2fd3f0));}return _0x1c4681[_0x5279('0x118')]((_0x2600c2,_0x2909f1)=>{const _0x2bcba1=_0x4b5637['get'](_0x2600c2),_0x80a5f=_0x4b5637[_0x5279('0x110')](_0x2909f1);return _0x2bcba1['y']-_0x80a5f['y']||_0x2bcba1['x']-_0x80a5f['x'];}),(_0x4a3eaa=_0x4a3eaa['filter'](_0x1e895b=>_0x1c4681[_0x5279('0xa2')](_0x1e895b[_0x5279('0x115')])))[_0x5279('0x118')]((_0xd5944,_0x36899d)=>_0x1c4681[_0x5279('0xd9')](_0xd5944[_0x5279('0x115')])-_0x1c4681[_0x5279('0xd9')](_0x36899d[_0x5279('0x115')])),_0x4a3eaa;}[_0x5279('0x2b')](_0xcc0862){const _0xc2d75=Array['from'](_0xcc0862[_0x5279('0x8c')])['filter'](([_0x4be03b,_0x150ac9])=>_0x4be03b[_0x5279('0x10')](_0x5279('0xa4'))&&!_0x150ac9[_0x5279('0xf0')]),_0x2480e1=Array['from'](this[_0x5279('0x7e')][_0x5279('0x103')]['createRangeIn'](_0xcc0862)[_0x5279('0x65')]({'singleCharacters':!0x0}));if(0x0!=_0xc2d75['length'])for(const _0x3a0d04 of _0x2480e1){const [_0x2b5262,_0x535c27]=_0xc2d75[0x0],[,_0x142ba1,_0x4d0d89]=_0x2b5262[_0x5279('0xaa')](':');if(_0x535c27['end'][_0x5279('0xaf')](_0x3a0d04[_0x5279('0x4b')])&&_0xc2d75[_0x5279('0x10a')](),(_0x3a0d04['previousPosition']['isEqual'](_0x535c27[_0x5279('0xc3')])||_0x3a0d04['previousPosition'][_0x5279('0x101')](_0x535c27[_0x5279('0xc3')]))&&(_0x5279('0xe')==_0x142ba1?_0x3a0d04[_0x5279('0x56')]={'userId':_0x4d0d89}:_0x5279('0x67')==_0x142ba1&&(_0x3a0d04['isRemoved']={'userId':_0x4d0d89})),0x0==_0xc2d75[_0x5279('0x3c')])break;}return _0x2480e1;}[_0x5279('0x45')](_0x369503){const _0xa6ef85=new Map();for(let _0x3cb7a2=0x0;_0x3cb7a2<_0x369503[_0x5279('0x3c')];_0x3cb7a2++)'text'===_0x369503[_0x3cb7a2][_0x5279('0x96')]?(_0x369503[_0x3cb7a2][_0x5279('0x4a')][_0x5279('0x28')]=_0x3cb7a2,_0x369503[_0x3cb7a2][_0x5279('0x4a')][_0x5279('0xdd')]=_0x3cb7a2):(_0x5279('0x44')===_0x369503[_0x3cb7a2][_0x5279('0x96')]?_0x369503[_0x3cb7a2][_0x5279('0x4a')]['startIndex']=_0x3cb7a2:'elementEnd'===_0x369503[_0x3cb7a2][_0x5279('0x96')]&&(_0x369503[_0x3cb7a2]['item'][_0x5279('0xdd')]=_0x3cb7a2),_0xa6ef85['set'](_0x369503[_0x3cb7a2]['id'],_0x3cb7a2));for(const _0x429c56 of _0xa6ef85['values']())'elementStart'===_0x369503[_0x429c56][_0x5279('0x96')]?_0x369503[_0x429c56][_0x5279('0x4a')][_0x5279('0xdd')]=_0xa6ef85[_0x5279('0x110')](_0x369503[_0x429c56][_0x5279('0x72')]):'elementEnd'===_0x369503[_0x429c56][_0x5279('0x96')]&&(_0x369503[_0x429c56]['item'][_0x5279('0x28')]=_0xa6ef85[_0x5279('0x110')](_0x369503[_0x429c56][_0x5279('0x72')]));}['_processTape'](_0x31ceb2){for(let _0x8741b0=0x0;_0x8741b0<_0x31ceb2[_0x5279('0x3c')];_0x8741b0++){if('elementStart'===_0x31ceb2[_0x8741b0][_0x5279('0x96')])_0x31ceb2[_0x8741b0][_0x5279('0x4a')]['startIndex']=_0x8741b0;else{if(_0x5279('0x21')===_0x31ceb2[_0x8741b0]['type']){_0x31ceb2[_0x8741b0][_0x5279('0x4a')][_0x5279('0xdd')]=_0x8741b0;const _0x2454f9=_0x31ceb2[_0x8741b0]['item'][_0x5279('0x28')];_0x31ceb2[_0x2454f9][_0x5279('0x72')]=_0x31ceb2[_0x8741b0]['id'],_0x31ceb2[_0x8741b0][_0x5279('0x72')]=_0x31ceb2[_0x2454f9]['id'];}else _0x31ceb2[_0x8741b0]['item']['startIndex']=_0x8741b0,_0x31ceb2[_0x8741b0][_0x5279('0x4a')][_0x5279('0xdd')]=_0x8741b0,_0x31ceb2[_0x8741b0][_0x5279('0x72')]=null;}_0x31ceb2[_0x8741b0][_0x5279('0x41')]||(_0x31ceb2[_0x8741b0]['markersStart']=[],_0x31ceb2[_0x8741b0][_0x5279('0x46')]=[]);}}[_0x5279('0x9a')](_0x170f0b,_0x588f37){const _0xe3feae=_0x170f0b['filter'](_0x32d6f0=>!_0x32d6f0[_0x5279('0x56')]);for(let _0x45cd25=0x0;_0x45cd25<_0x588f37[_0x5279('0x3c')];_0x45cd25++)_0x588f37[_0x45cd25]['isAdded']&&(_0xe3feae[_0x45cd25][_0x5279('0x56')]=_0x588f37[_0x45cd25][_0x5279('0x56')]);}[_0x5279('0xa3')](_0x556879){const _0x1424cb=JSON[_0x5279('0xd')](_0x556879),_0x258761=this[_0x5279('0x7e')][_0x5279('0x6d')][_0x5279('0x88')][_0x5279('0x29')],_0x5a4806=new _0xa4eac6(_0x258761,_0x1424cb[_0x5279('0x15')](_0x24181d=>this[_0x5279('0xfa')](_0x24181d)));return this[_0x5279('0x7e')][_0x5279('0x55')][_0x5279('0x43')](_0x5a4806);}['_getViewObj'](_0x1eaca1){const _0x1fcd58=this[_0x5279('0x7e')][_0x5279('0x6d')][_0x5279('0x88')][_0x5279('0x29')];if('string'==typeof _0x1eaca1)return new _0x2f792b(_0x1fcd58,_0x1eaca1);{const _0x8a990=_0x1eaca1['children'][_0x5279('0x15')](_0x710d90=>this[_0x5279('0xfa')](_0x710d90));return new(tt[_0x1eaca1[(_0x5279('0x96'))]]||_0x4f4a84)(_0x1fcd58,_0x1eaca1['name'],_0x1eaca1['attributes'],_0x8a990);}}['_getDiff'](_0x2bb413,_0x356b33=null){const _0x26ca78=this[_0x5279('0xeb')][_0x5279('0x8b')](_0x2bb413),_0xb0e5c9=_0x356b33?this[_0x5279('0xeb')][_0x5279('0x8b')](_0x356b33):null,_0x6f2690=this[_0x5279('0x106')](_0x26ca78,_0xb0e5c9),_0xf1b189=_0x6f2690[_0x6f2690[_0x5279('0x3c')]-0x1],_0x339063=new Map(),_0x561a0c={'model':{},'attributes':{},'changes':[]},_0x3b8a60=new Set(),_0x54f767=new Map();for(let _0x3aa033=_0x6f2690['length']-0x1;_0x3aa033>=0x0;_0x3aa033--){const _0xbdfcb2=_0x6f2690[_0x3aa033];for(const _0x49d06b of Object['keys'](_0xbdfcb2[_0x5279('0x83')]))if(_0xbdfcb2[_0x5279('0x83')][_0x49d06b]['attachChange']){const _0x3e2545=_0xbdfcb2[_0x5279('0x83')][_0x49d06b][_0x5279('0x1e')];_0x3e2545[_0x5279('0x5c')]?(_0x3b8a60[_0x5279('0x9d')](_0x49d06b),_0x54f767['has'](_0x49d06b)&&_0x54f767['get'](_0x49d06b)[_0x5279('0x109')]==_0x3e2545[_0x5279('0x109')]?_0x54f767['delete'](_0x49d06b):_0x54f767[_0x5279('0x35')](_0x49d06b,_0x3e2545)):_0x54f767[_0x5279('0xed')](_0x49d06b)?(_0x3b8a60[_0x5279('0xea')](_0x49d06b),_0x54f767[_0x5279('0xea')](_0x49d06b)):(_0x3b8a60[_0x5279('0x9d')](_0x49d06b),_0x54f767['set'](_0x49d06b,_0x3e2545));}else _0x3b8a60[_0x5279('0x9d')](_0x49d06b);}for(const _0x2b890e of _0x3b8a60){const _0x5d41d0=_0x54f767['has'](_0x2b890e)&&!_0x54f767[_0x5279('0x110')](_0x2b890e)[_0x5279('0x5c')];let _0xdf6fe2=_0x5d41d0?_0x6f2690[_0x5279('0x3c')]-0x1:0x0;const _0x14ec4c=_0x5d41d0?-0x1:0x1;for(;_0x6f2690[_0xdf6fe2];){const _0x4495f2=_0x6f2690[_0xdf6fe2];if(_0x4495f2[_0x5279('0x83')][_0x2b890e]){const _0x4e947e=_0x5d41d0?_0x4495f2['diffData'][_0x2b890e][_0x5279('0x39')]:_0x4495f2[_0x5279('0x83')][_0x2b890e]['attributesAfter'];_0x561a0c[_0x5279('0x48')][_0x2b890e]=_0x4e947e?_0x29b2d5(_0x4e947e):{};break;}_0xdf6fe2+=_0x14ec4c;}}for(const _0x3b04e5 of _0x6f2690){_0x3b04e5[_0x5279('0x103')]={};for(const _0x499e09 of _0x3b04e5[_0x5279('0xac')])_0x339063[_0x5279('0x35')](_0x499e09['id'],_0x499e09);for(const _0x240aa7 of _0x3b8a60){const _0x5a19b7=_0x3b04e5[_0x5279('0x83')][_0x240aa7]?_0x3b04e5[_0x5279('0x83')][_0x240aa7]['insertions']:'[]',_0x2f048b=_0x3b04e5[_0x5279('0x83')][_0x240aa7]?_0x3b04e5['diffData'][_0x240aa7]['deletions']:'[]';_0x3b04e5[_0x5279('0x103')][_0x240aa7]={'insertions':this[_0x5279('0xa3')](_0x5a19b7),'deletions':this['_makeModelFromViewString'](_0x2f048b)};}}for(const _0x631898 of _0x3b8a60){let _0x52e733=null,_0x1f389d=0x0;const _0x5b1c80=new Map(Array[_0x5279('0xb7')](_0x26ca78['model'][_0x631898][_0x5279('0x7c')][_0x5279('0x8c')])[_0x5279('0x86')](([_0x2e59a2])=>!_0x2e59a2[_0x5279('0x10')](_0x5279('0xa4'))));let _0x65dad2=0x0;for(const _0x65043f of _0x6f2690){const _0x32c248=this[_0x5279('0x2b')](_0x65043f[_0x5279('0x103')][_0x631898][_0x5279('0x7c')]);_0x65043f==_0x26ca78?(_0x52e733=_0x32c248,_0x1f389d=_0x52e733[_0x5279('0x3c')],_0x52e733['forEach'](_0x133849=>{_0x133849['id']=_0x65dad2++;}),this[_0x5279('0x11')](_0x52e733)):this[_0x5279('0x9a')](_0x52e733,_0x32c248);const _0x102240=_0x52e733[_0x5279('0x86')](_0x197b9e=>!_0x197b9e[_0x5279('0x56')])[_0x5279('0x15')](_0x1ddd83=>_0x1ddd83['id']);let _0x3840c6=0x0;const _0x3d1d05=this['_makeTape'](_0x65043f[_0x5279('0x103')][_0x631898]['deletions']);_0x3d1d05[_0x5279('0x1c')](_0x2bcdd4=>{_0x2bcdd4[_0x5279('0x5b')]?_0x2bcdd4['id']=_0x1f389d++:_0x2bcdd4['id']=_0x102240[_0x3840c6++];}),this[_0x5279('0x11')](_0x3d1d05),this[_0x5279('0x4')](_0x52e733,'isAdded'),this[_0x5279('0x4')](_0x3d1d05,_0x5279('0x5b')),_0x65043f==_0x26ca78&&this['_markMarkers'](_0x52e733,_0x5b1c80),_0x52e733=this['_joinTapes'](_0x52e733,_0x3d1d05),this[_0x5279('0x45')](_0x52e733),this[_0x5279('0x4')](_0x52e733,_0x5279('0x5b'));}_0x52e733=_0x52e733[_0x5279('0x86')](_0x43a1e5=>!(_0x43a1e5['isAdded']&&_0x43a1e5[_0x5279('0x5b')]));const _0x43e59b=new Map(_0xf1b189[_0x5279('0x103')][_0x631898]['deletions'][_0x5279('0x8c')]),_0x4bf456=new Set(_0x5b1c80[_0x5279('0x33')]());for(const _0x3f5e5b of _0x43e59b[_0x5279('0x33')]())_0x4bf456[_0x5279('0xea')](_0x3f5e5b);this['_markSuggestions'](_0x52e733,_0x4bf456),this[_0x5279('0x1a')](_0x52e733),_0x52e733=this[_0x5279('0xbf')](_0x52e733),_0x52e733=this[_0x5279('0xd4')](_0x52e733),_0x52e733=this['_removeUnsupportedChanges'](_0x52e733);const {root:_0x273c90,changes:_0x29d2a2}=this[_0x5279('0x10d')](_0x52e733,_0x339063,_0x631898);_0x561a0c[_0x5279('0x103')][_0x631898]=_0x273c90;const _0x4b93b4=_0x54f767[_0x5279('0x110')](_0x631898);if(_0x4b93b4){const _0x20698e=_0x339063[_0x5279('0x110')](_0x4b93b4[_0x5279('0x109')]),_0x1cf1b0=new _0xf556c2({'author':_0x20698e,'type':_0x4b93b4[_0x5279('0x5c')]?_0x5279('0x9d'):_0x5279('0xc7'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x631898});_0x29d2a2[_0x5279('0x10c')](_0x1cf1b0),_0x561a0c['attributes'][_0x631898][_0x5279('0x113')]=_0x1cf1b0['id'];}_0x561a0c['changes']=_0x561a0c[_0x5279('0x60')][_0x5279('0x5e')](_0x29d2a2);}return _0x561a0c;}[_0x5279('0x9b')](_0x41b5da,_0x56a6f9){for(let _0x2f57c1=0x0;_0x2f57c1<_0x41b5da[_0x5279('0x3c')];_0x2f57c1++)for(const [_0x1b5be7,_0x3c8079]of _0x56a6f9)_0x3c8079[_0x5279('0xc3')][_0x5279('0xaf')](_0x41b5da[_0x2f57c1][_0x5279('0x9f')])&&_0x41b5da[_0x2f57c1][_0x5279('0x41')]['push'](_0x1b5be7),_0x3c8079[_0x5279('0xa1')][_0x5279('0xaf')](_0x41b5da[_0x2f57c1][_0x5279('0x4b')])&&_0x41b5da[_0x2f57c1][_0x5279('0x46')][_0x5279('0x32')](_0x1b5be7);}['_joinTapes'](_0x5e9f2b,_0x20179e){let _0x355ef9=[],_0x54bac0=0x0,_0x41f098=0x0;for(;_0x54bac0<_0x5e9f2b[_0x5279('0x3c')]||_0x41f098<_0x20179e['length'];){const _0x2e1018=_0x5e9f2b[_0x54bac0]||{},_0x5b4fb4=_0x20179e[_0x41f098]||{};if(_0x2e1018['id']==_0x5b4fb4['id'])_0x54bac0++,_0x41f098++,_0x355ef9[_0x5279('0x32')](_0x2e1018);else{if(_0x5b4fb4['isRemoved']&&_0x2e1018[_0x5279('0x56')]){const {commonTape:_0x26bbc4,iEnd:_0x1b3d89,jEnd:_0x563370}=this['_threeWayMerge'](_0x5e9f2b,_0x54bac0,_0x20179e,_0x41f098);_0x355ef9=_0x355ef9[_0x5279('0x5e')](_0x26bbc4),_0x54bac0=_0x1b3d89,_0x41f098=_0x563370;}else _0x5b4fb4[_0x5279('0x5b')]?(_0x41f098++,_0x355ef9[_0x5279('0x32')](_0x5b4fb4)):(_0x54bac0++,_0x355ef9[_0x5279('0x32')](_0x2e1018));}}return _0x355ef9;}[_0x5279('0xd2')](_0x48b400,_0x1d76df){const _0x177b60=[];for(let _0x229f33=0x0;_0x229f33<_0x48b400[_0x5279('0x3c')];_0x229f33++){for(let _0x1119ef=0x0;_0x1119ef<_0x48b400[_0x229f33]['markersStart']['length'];_0x1119ef++){const _0x4230aa=_0x48b400[_0x229f33][_0x5279('0x41')][_0x1119ef];if(!_0x1d76df[_0x5279('0xed')](_0x4230aa))continue;const {group:_0xf3c31f,type:_0x258a44,authorId:_0x2e72dc}=_0x17c444(_0x4230aa);'revision-suggestion'!=_0xf3c31f||_0x5279('0xe')!=_0x258a44&&_0x5279('0x67')!=_0x258a44||(_0x177b60[_0x5279('0x10c')]({'type':_0x258a44,'name':_0x4230aa,'userId':_0x2e72dc}),_0x48b400[_0x229f33][_0x5279('0x41')][_0x5279('0x107')](_0x1119ef,0x1),_0x1119ef--);}_0x13f4bc(_0x48b400[_0x229f33]);for(let _0x2d44bc=0x0;_0x2d44bc<_0x48b400[_0x229f33][_0x5279('0x46')][_0x5279('0x3c')];_0x2d44bc++){const _0x815cb6=_0x48b400[_0x229f33][_0x5279('0x46')][_0x2d44bc];if(!_0x1d76df[_0x5279('0xed')](_0x815cb6))continue;const {group:_0x5c0cd6,type:_0x3dcffe}=_0x17c444(_0x815cb6);if(_0x5279('0xda')!=_0x5c0cd6||_0x5279('0xe')!=_0x3dcffe&&_0x5279('0x67')!=_0x3dcffe)continue;_0x48b400[_0x229f33][_0x5279('0x46')][_0x5279('0x107')](_0x2d44bc,0x1),_0x2d44bc--;const _0x8f8579=_0x177b60['findIndex'](_0x52cbda=>_0x52cbda['name']==_0x815cb6);_0x8f8579>-0x1&&_0x177b60[_0x5279('0x107')](_0x8f8579,0x1);}}function _0x17c444(_0x4934ce){const _0x2c859b=_0x4934ce[_0x5279('0xaa')](':');return{'group':_0x2c859b[0x0],'type':_0x2c859b[0x1],'subType':_0x2c859b[_0x5279('0x3c')]>=0x5?_0x2c859b[0x2]:null,'id':_0x2c859b['length']<0x5?_0x2c859b[0x2]:_0x2c859b[0x3],'authorId':_0x2c859b[_0x5279('0x3c')]<0x5?_0x2c859b[0x3]:_0x2c859b[0x4],'markerCount':0x6==_0x2c859b[_0x5279('0x3c')]?_0x2c859b[0x5]:null};}function _0x13f4bc(_0x5109dd){for(let _0x46c9ca=0x0;_0x46c9ca<_0x177b60[_0x5279('0x3c')];_0x46c9ca++){if(_0x5109dd[_0x5279('0x56')]&&'insertion'==_0x177b60[_0x46c9ca]['type'])return _0x5109dd[_0x5279('0x1f')]=_0x177b60[_0x46c9ca],void delete _0x5109dd[_0x5279('0x56')];if(!_0x5109dd[_0x5279('0x56')]&&!_0x5109dd[_0x5279('0x5b')]&&_0x5279('0x67')==_0x177b60[_0x46c9ca][_0x5279('0x96')])return void(_0x5109dd['isRemoveSuggestion']=_0x177b60[_0x46c9ca]);}}}[_0x5279('0x4')](_0x246a2d,_0x1f34ff){let _0x2e24bb=0x0,_0x49a2be=!0x1;const _0x13b88f=new Map();for(const _0x44c09f of _0x246a2d)_0x44c09f[_0x1f34ff]?_0x49a2be&&(_0x2e24bb++,_0x49a2be=!0x1):(_0x2e24bb++,_0x49a2be=!0x0),_0x13b88f['set'](_0x44c09f['id'],_0x2e24bb);for(let _0x5446b4=0x0;_0x5446b4<_0x246a2d[_0x5279('0x3c')];_0x5446b4++){if(_0x5279('0x5b')==_0x1f34ff&&_0x246a2d[_0x5446b4]['isAdded']||'isAdded'==_0x1f34ff&&_0x246a2d[_0x5446b4][_0x5279('0x5b')])continue;if('text'==_0x246a2d[_0x5446b4][_0x5279('0x96')]){_0x246a2d[_0x5446b4]['distance']=0x0;continue;}const _0x5a968e=_0x13b88f[_0x5279('0x110')](_0x246a2d[_0x5446b4][_0x5279('0x72')]),_0x2d680c=_0x13b88f[_0x5279('0x110')](_0x246a2d[_0x5446b4]['id']);_0x246a2d[_0x5446b4][_0x5279('0xf9')]=_0x5a968e-_0x2d680c;}}['_getRevisionsRange'](_0x5b36c9,_0x20668c,_0x278a45=!0x1){const _0x27a785=[];let _0x146f12=this[_0x5279('0xeb')][_0x5279('0xb1')](_0x5b36c9),_0x2aea1b=this[_0x5279('0xeb')][_0x5279('0xb1')](_0x20668c);for(-0x1==_0x2aea1b&&(_0x2aea1b=this[_0x5279('0xeb')]['_revisions'][_0x5279('0x3c')],_0x278a45=!0x1);_0x146f12<_0x2aea1b;)_0x27a785[_0x5279('0x32')](this['repository'][_0x5279('0x8b')](_0x146f12)),_0x146f12++;return _0x278a45&&_0x27a785[_0x5279('0x32')](this['repository'][_0x5279('0x8b')](_0x146f12)),_0x27a785;}['_threeWayMerge'](_0xba28af,_0x3e169a,_0x5b19e0,_0x1ebbc0){const _0x1007ef=this[_0x5279('0x7e')][_0x5279('0x103')][_0x5279('0x54')];let _0x7f94e9=_0x3e169a;for(;_0xba28af[_0x7f94e9]&&_0xba28af[_0x7f94e9][_0x5279('0x56')];)_0x7f94e9++;let _0x3697d8=_0x1ebbc0;for(;_0x5b19e0[_0x3697d8]&&_0x5b19e0[_0x3697d8][_0x5279('0x5b')];)_0x3697d8++;_0x5b7333(_0xba28af,_0x3e169a,_0x7f94e9),_0x5b7333(_0x5b19e0,_0x1ebbc0,_0x3697d8);const _0x288588=_0x5b19e0[_0x5279('0x3d')](_0x1ebbc0,_0x3697d8)[_0x5279('0x5e')](_0xba28af[_0x5279('0x3d')](_0x3e169a,_0x7f94e9));return _0x288588[_0x5279('0x118')]((_0x2f1bd9,_0x35599c)=>_0x2f1bd9['side']!=_0x35599c[_0x5279('0xe4')]?_0x2f1bd9[_0x5279('0xe4')]-_0x35599c[_0x5279('0xe4')]:_0x2f1bd9['level']!=_0x35599c[_0x5279('0xa8')]?_0x2f1bd9[_0x5279('0xa8')]-_0x35599c['level']:_0x2f1bd9[_0x5279('0xf9')]!=_0x35599c['distance']?_0x35599c[_0x5279('0xf9')]-_0x2f1bd9['distance']:!!_0x2f1bd9['isAdded']!=!!_0x35599c['isAdded']?-0x1==_0x2f1bd9['side']||0x0==_0x2f1bd9[_0x5279('0xe4')]?_0x2f1bd9['isAdded']?-0x1:0x1:_0x2f1bd9['isAdded']?0x1:-0x1:_0x2f1bd9[_0x5279('0xf5')]-_0x35599c['index']),{'commonTape':_0x288588,'iEnd':_0x7f94e9,'jEnd':_0x3697d8};function _0x5b7333(_0x174c09,_0x3dbed4,_0x52ccc8){let _0x258bea=-0x1,_0x5af724=Number['POSITIVE_INFINITY'],_0x449017=!0x0;for(let _0x46362d=_0x3dbed4;_0x46362d<_0x52ccc8;_0x46362d++)if(_0x1007ef[_0x5279('0x95')](_0x174c09[_0x46362d][_0x5279('0x4a')])||(_0x449017=!0x1),_0x174c09[_0x46362d][_0x5279('0x4a')][_0x5279('0x28')]<_0x3dbed4&&(_0x258bea=_0x46362d),_0x174c09[_0x46362d][_0x5279('0x4a')][_0x5279('0xdd')]>=_0x52ccc8){_0x5af724=_0x46362d;break;}_0x449017&&(_0x258bea=_0x52ccc8-0x1);for(let _0x4a2e81=_0x3dbed4;_0x4a2e81<_0x52ccc8;_0x4a2e81++)_0x174c09[_0x4a2e81][_0x5279('0xe4')]=_0x4a2e81<=_0x258bea?-0x1:_0x4a2e81<_0x5af724?0x0:0x1,_0x174c09[_0x4a2e81][_0x5279('0xf5')]=_0x4a2e81;let _0x43eae5=0x0;for(let _0x475121=_0x3dbed4;_0x475121<=_0x258bea;_0x475121++)0x0==_0x174c09[_0x475121]['distance']?_0x174c09[_0x475121][_0x5279('0xa8')]=_0x43eae5:(_0x43eae5++,_0x174c09[_0x475121][_0x5279('0xa8')]=_0x43eae5,_0x43eae5++);for(let _0x2aedc6=_0x3dbed4;_0x2aedc6<_0x52ccc8;_0x2aedc6++)0x0==_0x174c09[_0x2aedc6][_0x5279('0xe4')]&&(_0x174c09[_0x2aedc6][_0x5279('0xa8')]=_0x43eae5);_0x43eae5=0x0;for(let _0x58fa0a=_0x52ccc8-0x1;_0x58fa0a>=_0x5af724;_0x58fa0a--)0x0==_0x174c09[_0x58fa0a][_0x5279('0xf9')]?_0x174c09[_0x58fa0a][_0x5279('0xa8')]=_0x43eae5:(_0x43eae5--,_0x174c09[_0x58fa0a][_0x5279('0xa8')]=_0x43eae5,_0x43eae5--);}}['_fixObsoleteTags'](_0x39e664){const _0x211dc1=new Map(),_0x41601e=this['editor']['model']['schema'];for(let _0x56d9e0=0x1;_0x56d9e0<_0x39e664['length'];_0x56d9e0++){let _0x44be74,_0x2fbaab,_0x261d1d;const _0x361f08=_0x39e664[_0x56d9e0],_0xce6806=_0x39e664[_0x56d9e0-0x1];if('text'==_0x361f08['type'])continue;if(_0x361f08[_0x5279('0x96')]!=_0xce6806[_0x5279('0x96')])continue;if(!_0x41601e[_0x5279('0xc')](_0xce6806[_0x5279('0x4a')])||_0x41601e[_0x5279('0xa9')](_0xce6806['item']))continue;if(!_0x41601e[_0x5279('0xc')](_0x361f08[_0x5279('0x4a')])||_0x41601e[_0x5279('0xa9')](_0x361f08[_0x5279('0x4a')]))continue;if((_0x39e664[_0x56d9e0][_0x5279('0x56')]||_0x39e664[_0x56d9e0][_0x5279('0x1f')])&&_0x39e664[_0x56d9e0-0x1][_0x5279('0x5b')])_0x44be74=_0x39e664[_0x56d9e0],_0x2fbaab=_0x39e664[_0x56d9e0-0x1],_0x261d1d=_0x56d9e0-0x1;else{if(!_0x39e664[_0x56d9e0]['isRemoved']||!_0x39e664[_0x56d9e0-0x1][_0x5279('0x56')]&&!_0x39e664[_0x56d9e0-0x1][_0x5279('0x1f')])continue;_0x44be74=_0x39e664[_0x56d9e0-0x1],_0x2fbaab=_0x39e664[_0x56d9e0],_0x261d1d=_0x56d9e0;}const _0x231c57=_0x44be74['level']==_0x2fbaab[_0x5279('0xa8')],_0x238b49=Math[_0x5279('0x2e')](_0x44be74[_0x5279('0xa8')])<Math[_0x5279('0x2e')](_0x2fbaab[_0x5279('0xa8')])&&0x0==_0x2fbaab['distance'];(_0x231c57||_0x238b49)&&(_0x211dc1['set'](_0x2fbaab['id'],_0x44be74['id']),_0x39e664['splice'](_0x261d1d,0x1),_0x56d9e0--,_0x44be74[_0x5279('0x56')]=!0x1);}for(let _0x535728=0x0;_0x535728<_0x39e664[_0x5279('0x3c')];_0x535728++)_0x211dc1[_0x5279('0xed')](_0x39e664[_0x535728][_0x5279('0x72')])&&(_0x39e664[_0x535728][_0x5279('0x72')]=_0x211dc1[_0x5279('0x110')](_0x39e664[_0x535728][_0x5279('0x72')]));}[_0x5279('0xbf')](_0x25610f){const _0x129f35=new Set(_0x25610f['map'](_0xe7e8b4=>_0xe7e8b4['id']));for(let _0x54e283=0x0;_0x54e283<_0x25610f[_0x5279('0x3c')];_0x54e283++)_0x129f35[_0x5279('0xed')](_0x25610f[_0x54e283][_0x5279('0x72')])||0x0==_0x25610f[_0x54e283]['distance']||(_0x25610f[_0x54e283][_0x5279('0x111')]=!0x0);return _0x25610f[_0x5279('0x86')](_0x357a07=>!_0x357a07[_0x5279('0x111')]);}[_0x5279('0xd4')](_0x5daeca){const _0x580653=new Set();for(let _0xb03684=0x0;_0xb03684<_0x5daeca[_0x5279('0x3c')];_0xb03684++){if(_0x580653[_0x5279('0xed')](_0x5daeca[_0xb03684]['id'])&&_0x5daeca[_0xb03684][_0x5279('0x5b')]&&(_0x5daeca[_0xb03684][_0x5279('0x111')]=!0x0),_0x5daeca[_0xb03684][_0x5279('0x111')])continue;if(0x0==_0x5daeca[_0xb03684][_0x5279('0xf9')])continue;if(_0x5279('0x44')!=_0x5daeca[_0xb03684][_0x5279('0x96')])continue;if(null==_0x5daeca[_0xb03684]['pairId'])continue;let _0x5a5286=_0xb03684+0x1,_0x401240=0x0;for(;_0x5daeca[_0x5a5286]['id']!=_0x5daeca[_0xb03684][_0x5279('0x72')];)_0x5279('0x44')==_0x5daeca[_0x5a5286][_0x5279('0x96')]?_0x401240++:'elementEnd'==_0x5daeca[_0x5a5286][_0x5279('0x96')]&&_0x401240--,_0x5a5286++;if(0x0!=_0x401240){if(_0x5daeca[_0xb03684][_0x5279('0x5b')])_0x5daeca[_0xb03684][_0x5279('0x111')]=!0x0;else for(;_0x5a5286!=_0xb03684;)_0x5daeca[_0x5a5286][_0x5279('0x5b')]&&0x0!=_0x5daeca[_0x5a5286][_0x5279('0xf9')]&&(_0x5daeca[_0x5a5286][_0x5279('0x111')]=!0x0,_0x580653[_0x5279('0x9d')](_0x5daeca[_0x5a5286]['pairId'])),_0x5a5286--;}}return _0x5daeca[_0x5279('0x86')](_0x2a0468=>!_0x2a0468[_0x5279('0x111')]);}[_0x5279('0x63')](_0x9ef5){const _0x313e52=this[_0x5279('0x7e')]['model'][_0x5279('0x54')];for(let _0x135fc2=0x0;_0x135fc2<_0x9ef5[_0x5279('0x3c')];_0x135fc2++){if(!(_0x9ef5[_0x135fc2]['isAdded']||_0x9ef5[_0x135fc2][_0x5279('0x1f')]||_0x9ef5[_0x135fc2]['isRemoved']||_0x9ef5[_0x135fc2][_0x5279('0x116')]))continue;if(0x0==_0x9ef5[_0x135fc2][_0x5279('0xf9')])continue;const _0x3cfb49=_0x9ef5[_0x135fc2][_0x5279('0x4a')];_0x313e52[_0x5279('0xc')](_0x3cfb49)||_0x313e52['isLimit'](_0x3cfb49)||(_0x9ef5[_0x135fc2]['isAdded']&&delete _0x9ef5[_0x135fc2]['isAdded'],_0x9ef5[_0x135fc2][_0x5279('0x1f')]&&delete _0x9ef5[_0x135fc2][_0x5279('0x1f')],_0x9ef5[_0x135fc2][_0x5279('0x116')]&&delete _0x9ef5[_0x135fc2][_0x5279('0x116')],_0x9ef5[_0x135fc2][_0x5279('0x5b')]&&(_0x9ef5[_0x135fc2]['isIncorrect']=!0x0));}return _0x9ef5['filter'](_0x34e552=>!_0x34e552['isIncorrect']);}[_0x5279('0x10d')](_0x5a89c2,_0x5bcc03,_0x3c387f){const _0x489d28=new _0x365d5e(),_0x10c9d1=[],_0x3f1601=new Map(),_0x3a597f=this[_0x5279('0x7e')][_0x5279('0x103')],_0x5ac13a=_0x3a597f['schema'],_0x5417d7=[_0x489d28],_0x3f0a8c={},_0x1ac4db={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x63bf92=null;const _0x176c27=[0x0];for(let _0x3314bb=0x0;_0x3314bb<_0x5a89c2[_0x5279('0x3c')];_0x3314bb++){let _0x285b46,_0x156708;if(_0x5279('0x44')===_0x5a89c2[_0x3314bb]['type']){_0x285b46=_0x3a597f[_0x5279('0x7f')](_0x489d28,_0x176c27);const _0x14318b=new _0x35edab(_0x5a89c2[_0x3314bb][_0x5279('0x4a')]['name'],_0x5a89c2[_0x3314bb][_0x5279('0x4a')][_0x5279('0x11b')]());_0x5417d7[0x0][_0x5279('0xbd')](_0x14318b),_0x176c27['push'](0x0),_0x5417d7[_0x5279('0x10c')](_0x14318b),_0x156708=_0x3a597f[_0x5279('0x7f')](_0x489d28,_0x176c27),_0x63bf92=null;}else{if(_0x5279('0x21')===_0x5a89c2[_0x3314bb][_0x5279('0x96')])_0x5417d7[_0x5279('0x10a')](),_0x285b46=_0x3a597f[_0x5279('0x7f')](_0x489d28,_0x176c27),_0x176c27[_0x5279('0xb0')](),_0x176c27[_0x176c27[_0x5279('0x3c')]-0x1]++,_0x156708=_0x3a597f[_0x5279('0x7f')](_0x489d28,_0x176c27),_0x63bf92=null;else{if(_0x285b46=_0x3a597f[_0x5279('0x7f')](_0x489d28,_0x176c27),_0x63bf92&&_0x5ce200(_0x63bf92,_0x5a89c2[_0x3314bb][_0x5279('0x4a')]))_0x63bf92[_0x5279('0xad')]+=_0x5a89c2[_0x3314bb][_0x5279('0x4a')][_0x5279('0x55')];else{const _0x491da3=new _0x332f37(_0x5a89c2[_0x3314bb][_0x5279('0x4a')][_0x5279('0x55')],_0x5a89c2[_0x3314bb][_0x5279('0x4a')][_0x5279('0x11b')]());_0x5417d7[0x0]['_appendChild'](_0x491da3),_0x63bf92=_0x491da3;}_0x176c27[_0x176c27[_0x5279('0x3c')]-0x1]+=_0x5a89c2[_0x3314bb][_0x5279('0x4a')][_0x5279('0x7a')],_0x156708=_0x3a597f[_0x5279('0x7f')](_0x489d28,_0x176c27);}}for(const _0x152614 of _0x5a89c2[_0x3314bb][_0x5279('0x41')])_0x3f1601[_0x5279('0x35')](_0x152614,{'start':_0x285b46,'end':null});_0x3905d1('isRemoveSuggestion',_0x3314bb,_0x285b46,_0x156708),_0x3905d1(_0x5279('0x1f'),_0x3314bb,_0x285b46,_0x156708),_0x3905d1(_0x5279('0x5b'),_0x3314bb,_0x285b46,_0x156708),_0x3905d1(_0x5279('0x56'),_0x3314bb,_0x285b46,_0x156708);for(const _0x573bf7 of _0x5a89c2[_0x3314bb][_0x5279('0x46')]){_0x3f1601['get'](_0x573bf7)[_0x5279('0xa1')]=_0x156708;}}for(const [_0x32dd6c,_0x325fe5]of _0x3f1601){const _0x44a19c=this[_0x5279('0x7e')][_0x5279('0x103')][_0x5279('0xd7')](_0x325fe5[_0x5279('0xc3')],_0x325fe5[_0x5279('0xa1')]);_0x489d28[_0x5279('0x8c')][_0x5279('0x35')](_0x32dd6c,_0x44a19c);}return _0x10c9d1[_0x5279('0x118')]((_0x36caa8,_0x30dff7)=>{const _0x4ccdb8=_0x489d28[_0x5279('0x8c')][_0x5279('0x110')](_0x5279('0xa4')+_0x36caa8['id']),_0x31ef48=_0x489d28[_0x5279('0x8c')]['get'](_0x5279('0xa4')+_0x30dff7['id']);return _0x4ccdb8[_0x5279('0xc3')]['isBefore'](_0x31ef48[_0x5279('0xc3')])?-0x1:_0x4ccdb8['start'][_0x5279('0x101')](_0x31ef48[_0x5279('0xc3')])?0x1:_0x4ccdb8[_0x5279('0xa1')]['isBefore'](_0x31ef48[_0x5279('0xa1')])?-0x1:_0x4ccdb8[_0x5279('0xa1')][_0x5279('0x101')](_0x31ef48[_0x5279('0xa1')])?0x1:_0x5279('0x9d')===_0x36caa8['type']?-0x1:0x1;}),{'root':_0x489d28,'changes':_0x10c9d1};function _0x3905d1(_0x295581,_0x3d3ce5,_0x1310b1,_0x1182aa){const _0x11ff59=!!_0x5a89c2[_0x3d3ce5][_0x295581],_0x50a92a=_0x11ff59?_0x5a89c2[_0x3d3ce5][_0x295581]['userId']:null,_0xd50689=_0x3d3ce5===_0x5a89c2['length']-0x1,_0x505fc5=_0x1ac4db[_0x295581][0x0],_0x2fae60=_0x5ac13a['isObject'](_0x5a89c2[_0x3d3ce5]['item']);!_0x3f0a8c[_0x295581]&&_0x11ff59?_0x3f0a8c[_0x295581]={'start':_0x1310b1,'tapeItem':_0x5a89c2[_0x3d3ce5],'userId':_0x50a92a,'type':_0x295581}:_0x3f0a8c[_0x295581]&&!_0x11ff59?(_0x3f0a8c[_0x295581]['end']=_0x1310b1,_0x439219(_0x3f0a8c[_0x295581]),_0x3f0a8c[_0x295581]=null):_0x3f0a8c[_0x295581]&&_0x11ff59&&_0x3f0a8c[_0x295581]['userId']!==_0x50a92a&&(_0x3f0a8c[_0x295581]['end']=_0x1310b1,_0x505fc5&&_0x505fc5[_0x5279('0x109')]===_0x3f0a8c[_0x295581]['userId']||_0x439219(_0x3f0a8c[_0x295581]),_0x3f0a8c[_0x295581]={'start':_0x1310b1,'tapeItem':_0x5a89c2[_0x3d3ce5],'userId':_0x50a92a,'type':_0x295581}),_0x3f0a8c[_0x295581]&&_0x2fae60&&('elementStart'!==_0x5a89c2[_0x3d3ce5][_0x5279('0x96')]||_0x505fc5&&_0x505fc5[_0x5279('0x109')]===_0x50a92a||_0x1ac4db[_0x295581][_0x5279('0x10c')]({'userId':_0x50a92a,'object':_0x5a89c2[_0x3d3ce5][_0x5279('0x4a')],'change':_0x3f0a8c[_0x295581]}),_0x5279('0x21')===_0x5a89c2[_0x3d3ce5][_0x5279('0x96')]&&_0x505fc5&&_0x505fc5['object']===_0x5a89c2[_0x3d3ce5]['item']&&(_0x1ac4db[_0x295581]['shift'](),_0x3f0a8c[_0x295581]=_0x505fc5[_0x5279('0x8a')])),_0x3f0a8c[_0x295581]&&_0xd50689&&(_0x3f0a8c[_0x295581]['end']=_0x1182aa,_0x439219(_0x3f0a8c[_0x295581]),_0x3f0a8c[_0x295581]=null);}function _0x439219({start:_0x2a12cc,end:_0x23034e,tapeItem:_0x574503,userId:_0x483152,type:_0x5622d2}){const _0xa00060=_0x574503[_0x5279('0x4a')],_0x4ecf09=_0x3a597f[_0x5279('0x54')][_0x5279('0xc')](_0xa00060)&&!_0x3a597f[_0x5279('0x54')][_0x5279('0xa9')](_0xa00060),_0x433241=_0x2a12cc[_0x5279('0xb')]==_0x23034e[_0x5279('0x38')]&&_0x23034e[_0x5279('0x1b')];if(_0x4ecf09&&_0x433241)return;const _0xeac7a3=_0x3a597f[_0x5279('0xd7')](_0x2a12cc,_0x23034e),_0x5c8f94=_0x5bcc03[_0x5279('0x110')](_0x483152),_0x2f90b5=new _0xf556c2({'author':_0x5c8f94,'type':_0x5279('0x56')==_0x5622d2||_0x5279('0x1f')==_0x5622d2?_0x5279('0x9d'):_0x5279('0xc7'),'data':{'isSuggestion':_0x5279('0x1f')==_0x5622d2||_0x5279('0x116')==_0x5622d2},'createdAt':new Date(),'rootName':_0x3c387f});_0x10c9d1[_0x5279('0x32')](_0x2f90b5),_0x489d28[_0x5279('0x8c')]['set'](_0x5279('0xa4')+_0x2f90b5['id'],_0xeac7a3);}function _0x5ce200(_0x13d1c5,_0x4fcb96){const _0x12a004=_0x13d1c5['getAttributes'](),_0x1853a6=_0x4fcb96[_0x5279('0x11b')]();for(const _0x29b6a3 of _0x12a004){if(_0x29b6a3[0x1]!==_0x4fcb96[_0x5279('0xec')](_0x29b6a3[0x0]))return!0x1;_0x1853a6[_0x5279('0x114')]();}return _0x1853a6[_0x5279('0x114')]()[_0x5279('0x105')];}}['_setConversion'](){this[_0x5279('0x7e')]['conversion'][_0x5279('0x104')]('upcast')[_0x5279('0x0')]({'view':_0x5279('0xef')}),this[_0x5279('0x7e')]['conversion'][_0x5279('0x104')](_0x5279('0xfd'))[_0x5279('0x6b')]({'model':_0x5279('0xef'),'view':_0x234fd3=>{const _0x590ad6=_0x234fd3['markerName']['split'](':')[0x1],_0x2b2ddf=this[_0x5279('0x92')](_0x590ad6);if(!_0x2b2ddf)return null;const _0x495540=_0x5279('0x9d')==_0x2b2ddf[_0x5279('0x96')]?_0x5279('0xe'):_0x5279('0x67'),_0x565653=['ck-suggestion-marker',_0x5279('0x3')+_0x495540];return _0x2b2ddf[_0x5279('0x55')][_0x5279('0xc9')]&&_0x565653[_0x5279('0x32')](_0x5279('0x3')+_0x495540+_0x5279('0x14')),this[_0x5279('0x3a')]==_0x2b2ddf&&_0x565653[_0x5279('0x32')](_0x5279('0xe6')),{'classes':_0x565653,'attributes':{'data-change-id':_0x590ad6}};}}),this[_0x5279('0x7e')][_0x5279('0xd8')][_0x5279('0x104')](_0x5279('0xd3'))[_0x5279('0x9d')](_0x571694=>{_0x571694['on']('element:pre',(_0x5a64f4,_0x51197f,_0x86d54a)=>{const _0x19116f=_0x51197f['viewItem'][_0x5279('0x75')](0x0);if(!_0x19116f||!_0x19116f['is'](_0x5279('0x90'),_0x5279('0x11a')))return;if(!_0x86d54a['consumable'][_0x5279('0x117')](_0x19116f,{'attributes':[_0x5279('0xa7'),_0x5279('0x10b')]}))return;const _0x65e12b=_0x51197f[_0x5279('0xcb')][_0x5279('0xc3')][_0x5279('0xb')];_0x86d54a[_0x5279('0x66')]['setAttribute']('vid_start',_0x19116f['getAttribute'](_0x5279('0xa7')),_0x65e12b),_0x86d54a[_0x5279('0x66')][_0x5279('0x50')](_0x5279('0x10b'),_0x19116f[_0x5279('0xec')](_0x5279('0x10b')),_0x65e12b);},{'priority':'low'});}),this[_0x5279('0x7e')][_0x5279('0xd8')][_0x5279('0x104')]('upcast')['add'](_0x15f095=>{_0x15f095['on'](_0x5279('0x90'),(_0x1d95dd,_0x4d2477,_0x243c29)=>{if(!_0x243c29[_0x5279('0x17')]['consume'](_0x4d2477[_0x5279('0xfe')],{'attributes':['vid_start','vid_end']}))return;if(_0x4d2477['modelRange'][_0x5279('0xf0')])return;const _0x156486=_0x4d2477['modelRange']['start'][_0x5279('0xb')];_0x156486['hasAttribute'](_0x5279('0xa7'))||_0x156486[_0x5279('0xe8')](_0x5279('0xe5'))||(_0x243c29[_0x5279('0x66')]['setAttribute'](_0x5279('0xa7'),_0x4d2477[_0x5279('0xfe')][_0x5279('0xec')]('vid_start'),_0x156486),_0x243c29[_0x5279('0x66')][_0x5279('0x50')](_0x5279('0x10b'),_0x4d2477[_0x5279('0xfe')]['getAttribute']('vid_end'),_0x156486));},{'priority':'low'});}),this[_0x5279('0x7e')][_0x5279('0xd8')]['for'](_0x5279('0xd3'))[_0x5279('0x25')]({'view':{'name':_0x5279('0x98'),'attributes':{'vid':!0x0}},'model':{'key':_0x5279('0xe5'),'value':_0x2b4b93=>_0x2b4b93[_0x5279('0xec')](_0x5279('0xe5'))}}),this[_0x5279('0x7e')][_0x5279('0x103')]['schema']['on'](_0x5279('0xcc'),(_0x44dcaf,[,_0x5b698e])=>{[_0x5279('0xa7'),_0x5279('0x10b'),_0x5279('0xe5')][_0x5279('0xa2')](_0x5b698e)&&(_0x44dcaf[_0x5279('0xb3')]=!0x0,_0x44dcaf['stop']());},{'priority':_0x5279('0xbc')}),this[_0x5279('0x7e')]['conversion'][_0x5279('0x104')](_0x5279('0xb6'))['add'](_0x3ce84b=>{_0x3ce84b['on'](_0x5279('0x5f'),(_0x2d1fcf,_0x171efd,_0x446e78)=>{if('\x20'!=_0x171efd['item']['data']||_0x171efd[_0x5279('0x4a')][_0x5279('0x38')][_0x5279('0x59')]>0x1)return;if(!_0x446e78[_0x5279('0x17')][_0x5279('0x117')](_0x171efd[_0x5279('0x4a')],_0x2d1fcf[_0x5279('0x57')]))return;const _0x1bbfa9=_0x446e78[_0x5279('0x66')],_0x4c34d0=_0x446e78[_0x5279('0x13')][_0x5279('0x22')](_0x171efd[_0x5279('0xdb')]);_0x1bbfa9[_0x5279('0x69')](_0x4c34d0,_0x1bbfa9[_0x5279('0x52')](_0x5279('0x98')));});}),this['editor'][_0x5279('0xd8')][_0x5279('0x104')](_0x5279('0xb6'))['markerToData']({'model':_0x5279('0xef')}),this[_0x5279('0x7e')]['editing'][_0x5279('0xe0')]['on'](_0x5279('0xf6'),function(_0x1bf3b2){const _0x3f5b2e=_0x1bf3b2[_0x5279('0xc0')][_0x5279('0x110')]('RevisionViewer');return(_0x15ae80,_0xdb29b4,_0x210db7)=>{const _0x1c58f9=_0xdb29b4['markerName']['split'](':')[0x1],_0x1221b5=_0x3f5b2e['_getChangeFromId'](_0x1c58f9);if(!_0x1221b5)return null;const _0x40e98a=_0x5279('0x9d')==_0x1221b5[_0x5279('0x96')]?_0x5279('0xaa'):_0x5279('0x78');if(!_0x210db7[_0x5279('0x17')][_0x5279('0x40')](_0xdb29b4[_0x5279('0x2c')],_0x15ae80['name']))return;const _0x2ac009=_0xdb29b4['markerRange'][_0x5279('0x65')](),_0x3e43ce=_0xdb29b4[_0x5279('0x2c')][_0x5279('0xc3')],_0x3498eb=_0x1bf3b2[_0x5279('0x103')][_0x5279('0x54')];let _0x43cef7=null,_0x409c76=null,_0x30b270=!0x1,_0x5c2962=!0x1;for(const _0x564458 of _0x2ac009){const _0x45b634=_0x564458[_0x5279('0x4a')];_0x30b270=_0x30b270||_0x3498eb[_0x5279('0x27')](_0x45b634);const _0x474a71=_0x210db7[_0x5279('0x13')][_0x5279('0x2f')](_0x45b634);if(_0x474a71&&_0x474a71[_0x5279('0x76')](_0x5279('0x16')))return;_0x5279('0x21')==_0x564458[_0x5279('0x96')]&&(_0x3498eb[_0x5279('0xc')](_0x45b634)&&!_0x3498eb[_0x5279('0xa9')](_0x45b634)&&(_0x45b634[_0x5279('0xf')]||_0x3e43ce['isAtEnd']?_0x43cef7&&_0x43cef7[_0x5279('0x38')]==_0x45b634||(_0x43cef7=_0x45b634,_0x363d75(_0x564458[_0x5279('0x9f')]),_0x5c2962=!0x0):_0x409c76=_0x409c76||_0x564458[_0x5279('0x9f')]));}function _0x363d75(_0x2461ee){const _0x32115f=_0x210db7[_0x5279('0x66')]['createUIElement'](_0x5279('0x98'),{'class':'ck-suggestion-marker-'+_0x40e98a}),_0x184e03=_0x210db7['mapper'][_0x5279('0xf8')](_0x2461ee);_0x1221b5['data'][_0x5279('0xc9')]&&_0x210db7[_0x5279('0x66')]['addClass'](_0x5279('0x3')+_0x40e98a+_0x5279('0x14'),_0x32115f),_0x3f5b2e['activeChange']==_0x1221b5&&_0x210db7[_0x5279('0x66')][_0x5279('0x87')](_0x5279('0xe6'),_0x32115f),_0x210db7[_0x5279('0x66')][_0x5279('0xae')](_0x184e03,_0x32115f),_0x210db7['mapper'][_0x5279('0x3b')](_0x32115f,_0xdb29b4['markerName']);}_0x30b270||_0x5c2962||!_0x409c76||_0x363d75(_0x409c76);};}(this[_0x5279('0x7e')]),{'priority':_0x5279('0xfb')}),this[_0x5279('0x7e')][_0x5279('0x6d')]['downcastDispatcher']['on'](_0x5279('0x112'),(_0x58f71f,_0x50e508,_0x38f22d)=>{const _0x2009d4=_0x38f22d['mapper'][_0x5279('0x2a')](_0x50e508[_0x5279('0x19')]);if(_0x2009d4)for(const _0x5846c9 of _0x2009d4)(_0x5846c9[_0x5279('0xb5')](_0x5279('0x82'))||_0x5846c9[_0x5279('0xb5')](_0x5279('0x5')))&&(_0x38f22d['mapper']['unbindElementFromMarkerName'](_0x5846c9,_0x50e508[_0x5279('0x19')]),_0x38f22d[_0x5279('0x66')]['remove'](_0x5846c9));},{'priority':'high'}),this[_0x5279('0x7e')][_0x5279('0x6d')][_0x5279('0xe0')]['on'](_0x5279('0xf6'),(_0x299b59,_0x50e51f,_0x530082)=>{const _0x473db2=_0x50e51f[_0x5279('0x19')][_0x5279('0xaa')](':')[0x1],_0x2b8c77=this[_0x5279('0x92')](_0x473db2);if(!_0x2b8c77)return null;const _0x3e9dbe=_0x5279('0x9d')==_0x2b8c77[_0x5279('0x96')]?_0x5279('0xaa'):_0x5279('0x78');if(_0x530082['consumable'][_0x5279('0x40')](_0x50e51f[_0x5279('0x2c')],_0x299b59['name']))for(const _0x19a119 of _0x50e51f[_0x5279('0x2c')][_0x5279('0xe2')]()){if(!_0x19a119['is']('element',_0x5279('0x37')))continue;const _0x34323e=_0x530082[_0x5279('0x66')][_0x5279('0xc2')](_0x5279('0x98'),{'class':_0x5279('0x3')+_0x3e9dbe}),_0x1679b9=_0x530082[_0x5279('0x13')][_0x5279('0xf8')](this[_0x5279('0x7e')][_0x5279('0x103')]['createPositionBefore'](_0x19a119));_0x2b8c77[_0x5279('0x55')][_0x5279('0xc9')]&&_0x530082[_0x5279('0x66')]['addClass'](_0x5279('0x3')+_0x3e9dbe+_0x5279('0x14'),_0x34323e),this[_0x5279('0x3a')]==_0x2b8c77&&_0x530082[_0x5279('0x66')][_0x5279('0x87')](_0x5279('0xe6'),_0x34323e),_0x530082[_0x5279('0x66')][_0x5279('0xae')](_0x1679b9,_0x34323e),_0x530082['mapper']['bindElementToMarker'](_0x34323e,_0x50e51f[_0x5279('0x19')]);}},{'priority':_0x5279('0xfb')}),this[_0x5279('0x7e')][_0x5279('0x103')]['document']['on'](_0x5279('0x8a'),()=>{this['editor']['editing']['view'][_0x5279('0x8a')](_0x1aa930=>{for(const _0x340d4e of this[_0x5279('0x7e')][_0x5279('0x103')][_0x5279('0x29')][_0x5279('0x11d')]()){const _0x5d3775=this[_0x5279('0x7e')][_0x5279('0x103')]['document']['getRoot'](_0x340d4e),_0x14457f=this[_0x5279('0x7e')][_0x5279('0x6d')]['view']['document'][_0x5279('0x84')](_0x340d4e);if(_0x14457f){const _0x2f10ad=_0x5d3775[_0x5279('0xec')]('revisionHistoryAttachChange');if(_0x1aa930[_0x5279('0xb2')]('data-change-id',_0x14457f),_0x1aa930[_0x5279('0x36')](_0x5279('0xb9'),_0x14457f),_0x1aa930[_0x5279('0x36')](_0x5279('0x64'),_0x14457f),_0x1aa930[_0x5279('0x36')](_0x5279('0x51'),_0x14457f),_0x2f10ad){const _0x12855d=this[_0x5279('0x92')](_0x2f10ad);if(!_0x12855d)return null;_0x1aa930[_0x5279('0x50')](_0x5279('0x53'),_0x2f10ad,_0x14457f),_0x1aa930[_0x5279('0x87')]('ck-revision-history-root-'+_0x12855d[_0x5279('0x96')],_0x14457f),this[_0x5279('0x3a')]==_0x12855d&&_0x1aa930[_0x5279('0x87')](_0x5279('0x51'),_0x14457f);}}}});}),this[_0x5279('0x7e')]['conversion'][_0x5279('0x104')](_0x5279('0xd3'))[_0x5279('0x0')]({'view':'comment','model':_0x3b75b0=>_0x5279('0x8f')+_0x3b75b0,'converterPriority':_0x5279('0xbc')}),this[_0x5279('0x7e')][_0x5279('0xd8')][_0x5279('0x104')]('upcast')[_0x5279('0x0')]({'view':_0x5279('0x4f'),'model':_0x562d3d=>_0x5279('0xf4')+_0x562d3d,'converterPriority':'highest'}),this[_0x5279('0x7e')][_0x5279('0xd8')][_0x5279('0x104')](_0x5279('0xb6'))[_0x5279('0xc5')]({'model':_0x5279('0xda'),'view':_0x362a54=>({'name':_0x5279('0x11e')+_0x362a54,'group':_0x5279('0xda')}),'converterPriority':_0x5279('0xbc')}),this[_0x5279('0x7e')][_0x5279('0xd8')][_0x5279('0x104')](_0x5279('0xfd'))[_0x5279('0x6b')]({'model':_0x5279('0xda'),'view':_0x4523f7=>{const _0xa0c44e=_0x4523f7[_0x5279('0x19')][_0x5279('0xaa')](':')[0x1];return _0x5279('0xe')!=_0xa0c44e&&_0x5279('0x67')!=_0xa0c44e?null:{'classes':[_0x5279('0x6e'),'ck-suggestion-preview-marker-'+_0xa0c44e]};}}),this[_0x5279('0x7e')]['editing'][_0x5279('0xe0')]['on'](_0x5279('0x3e'),et(this[_0x5279('0x7e')],'merge'),{'priority':_0x5279('0xfb')}),this[_0x5279('0x7e')][_0x5279('0x6d')][_0x5279('0xe0')]['on'](_0x5279('0x94'),et(this['editor'],_0x5279('0xaa')),{'priority':_0x5279('0xfb')}),this[_0x5279('0x7e')][_0x5279('0x6d')][_0x5279('0xe0')]['on'](_0x5279('0xe9'),(_0x359a10,_0x2631e6,_0x3fe986)=>{const _0x3aa4f6=_0x3fe986[_0x5279('0x13')][_0x5279('0x2a')](_0x2631e6[_0x5279('0x19')]);if(_0x3aa4f6)for(const _0x5d0a46 of _0x3aa4f6)_0x5d0a46['is'](_0x5279('0x10e'))&&(_0x3fe986['mapper']['unbindElementFromMarkerName'](_0x5d0a46,_0x2631e6[_0x5279('0x19')]),_0x3fe986[_0x5279('0x66')][_0x5279('0xc7')](_0x5d0a46));},{'priority':_0x5279('0xfb')});}['_getChangeFromId'](_0x49e78b){return this[_0x5279('0xba')][_0x5279('0x110')](_0x49e78b);}[_0x5279('0x71')](_0x518241){return this[_0x5279('0x68')]&&this[_0x5279('0x68')][_0x5279('0x77')](),this[_0x5279('0x68')]=new _0x45e674(this['editor'][_0x5279('0x18')],_0x518241),this[_0x5279('0x68')];}['_initInteractions'](){this[_0x5279('0x7e')][_0x5279('0x103')][_0x5279('0x29')]['selection'][_0x5279('0x2d')](_0x5279('0xef')),this['on'](_0x5279('0x2'),(_0x138a4e,_0x4b4506,_0x1aab2a,_0x5bffcb)=>{_0x5bffcb&&this[_0x5279('0x4c')][_0x5279('0xc7')](_0x5bffcb),_0x1aab2a&&(this[_0x5279('0x4c')]['add']({'view':_0x1aab2a,'stackId':_0x5279('0x73'),'position':{'target':()=>{const _0xbfed97=this[_0x5279('0x7e')][_0x5279('0x6d')],_0x32cf76=this[_0x5279('0x92')](_0x1aab2a[_0x5279('0x23')]);let _0x5c91c5;if(_0x32cf76['data'][_0x5279('0xcf')]){const _0x268d46=_0xbfed97['view']['getDomRoot'](_0x32cf76[_0x5279('0x115')]);_0x5c91c5=Array[_0x5279('0xb7')](_0x268d46[_0x5279('0x6')]());}else{const _0x29c7f4=this[_0x5279('0x7e')]['model'][_0x5279('0x8c')][_0x5279('0x110')]('revision:'+_0x1aab2a[_0x5279('0x23')]);_0x5c91c5=Array[_0x5279('0xb7')](_0xbfed97[_0x5279('0x13')][_0x5279('0x2a')](_0x29c7f4['name']))[_0x5279('0x15')](_0x4c7f04=>_0xbfed97[_0x5279('0x88')][_0x5279('0xc1')][_0x5279('0x81')](_0x4c7f04))[_0x5279('0x15')](_0x4db93f=>Array[_0x5279('0xb7')](_0x4db93f[_0x5279('0x6')]()))['flat']();}if(!this['_activeViewTarget'])return _0x5c91c5[0x0];return _0x5c91c5[_0x5279('0x47')](_0x34a7b0=>_0x34a7b0[_0x5279('0xbe')]-0x3<=this['_activeViewTarget']['y']&&_0x34a7b0[_0x5279('0xc8')]+0x3>=this[_0x5279('0x31')]['y']&&_0x34a7b0[_0x5279('0x79')]-0x3<=this['_activeViewTarget']['x']&&_0x34a7b0['right']+0x3>=this[_0x5279('0x31')]['x'])||_0x5c91c5[0x0];}}}),this[_0x5279('0x4c')]['showStack'](_0x5279('0x73')));}),this['on']('change:activeChange',(_0x10e595,_0xa33646,_0x4446f9,_0x4232ca)=>{this[_0x5279('0x7')]=_0x4446f9?this[_0x5279('0x71')](_0x4446f9):null,this['editor']['model']['change'](()=>{const _0x4f1c9f=this['editor'][_0x5279('0x6d')];_0x4232ca&&(_0x4232ca[_0x5279('0x55')][_0x5279('0xcf')]?_0x4f1c9f['view'][_0x5279('0x8a')](_0xb928f8=>{_0xb928f8[_0x5279('0x36')](_0x5279('0x51'),_0x4f1c9f[_0x5279('0x88')][_0x5279('0x29')][_0x5279('0x84')](_0x4232ca['rootName']));}):_0x4f1c9f[_0x5279('0x4e')](_0x5279('0xa4')+_0x4232ca['id'])),_0x4446f9&&(_0x4446f9['data'][_0x5279('0xcf')]?_0x4f1c9f['view'][_0x5279('0x8a')](_0x57d2de=>{_0x57d2de[_0x5279('0x87')](_0x5279('0x51'),_0x4f1c9f[_0x5279('0x88')][_0x5279('0x29')][_0x5279('0x84')](_0x4446f9[_0x5279('0x115')]));}):_0x4f1c9f[_0x5279('0x4e')]('revision:'+_0x4446f9['id']));});}),this['listenTo'](this[_0x5279('0x7e')][_0x5279('0x6d')][_0x5279('0x88')][_0x5279('0x29')],_0x5279('0x102'),(_0x50f17c,_0x4f8d0e)=>{if(this[_0x5279('0x3a')])return;const _0x8dba29=this[_0x5279('0x119')](_0x4f8d0e[_0x5279('0x12')]),_0x184c31=this[_0x5279('0xba')]['get'](_0x8dba29);_0x184c31?(this[_0x5279('0x31')]={'x':_0x4f8d0e['domEvent']['x'],'y':_0x4f8d0e[_0x5279('0xf3')]['y']},this[_0x5279('0x7')]=this[_0x5279('0x71')](_0x184c31)):(this[_0x5279('0x31')]=null,this['activeView']=null);}),this[_0x5279('0xb8')](this[_0x5279('0x7e')][_0x5279('0x6d')][_0x5279('0x88')][_0x5279('0x29')],'mousedown',(_0x444cef,_0x4e65bc)=>{const _0x3e6f1f=this[_0x5279('0x119')](_0x4e65bc[_0x5279('0x12')]),_0x5220e3=this[_0x5279('0xba')][_0x5279('0x110')](_0x3e6f1f);_0x5220e3?(this['_activeViewTarget']={'x':_0x4e65bc['domEvent']['x'],'y':_0x4e65bc[_0x5279('0xf3')]['y']},_0x5220e3===this[_0x5279('0x3a')]?this[_0x5279('0x4c')]['updatePosition']():this['activeChange']=_0x5220e3):(this[_0x5279('0x31')]=null,this[_0x5279('0x3a')]=null);});}[_0x5279('0x119')](_0x5bb94f){do{const _0x26f816=_0x5bb94f[_0x5279('0xec')](_0x5279('0x53'));if(_0x26f816)return _0x26f816;_0x5bb94f=_0x5bb94f[_0x5279('0x38')];}while(_0x5bb94f);return null;}[_0x5279('0x5a')](){this[_0x5279('0x7e')][_0x5279('0x103')][_0x5279('0x8a')](_0x25f986=>{for(const _0x481b8e of this[_0x5279('0x7e')][_0x5279('0x103')][_0x5279('0x8c')])_0x25f986[_0x5279('0x70')](_0x481b8e);});}}function et(_0x333d54,_0x55ace6){return(_0x11a52f,_0x463866,_0x3f86b1)=>{if(!_0x3f86b1[_0x5279('0x17')][_0x5279('0x40')](_0x463866[_0x5279('0x2c')],_0x11a52f[_0x5279('0x57')]))return;const _0x4ba212=_0x463866[_0x5279('0x2c')][_0x5279('0x65')](),_0xc8e8c6=_0x463866[_0x5279('0x2c')][_0x5279('0xc3')],_0x328a9f=_0x333d54[_0x5279('0x103')][_0x5279('0x54')];let _0x588c99=null,_0x46df6f=null,_0x296a8f=!0x1,_0x1fc028=!0x1;for(const _0x52871c of _0x4ba212){const _0x4ade6c=_0x52871c[_0x5279('0x4a')];_0x296a8f=_0x296a8f||_0x328a9f[_0x5279('0x27')](_0x4ade6c);const _0x2a44f5=_0x3f86b1['mapper']['toViewElement'](_0x4ade6c);if(_0x2a44f5&&_0x2a44f5[_0x5279('0x76')](_0x5279('0x16')))return;_0x5279('0x21')==_0x52871c['type']&&(_0x328a9f[_0x5279('0xc')](_0x4ade6c)&&!_0x328a9f[_0x5279('0xa9')](_0x4ade6c)&&(_0x4ade6c['nextSibling']||_0xc8e8c6['isAtEnd']?_0x588c99&&_0x588c99['parent']==_0x4ade6c||(_0x588c99=_0x4ade6c,_0x5b7122(_0x52871c[_0x5279('0x9f')]),_0x1fc028=!0x0):_0x46df6f=_0x46df6f||_0x52871c[_0x5279('0x9f')]));}function _0x5b7122(_0x873add){const _0x141245=_0x3f86b1[_0x5279('0x13')][_0x5279('0xf8')](_0x873add),_0x37e8fd=_0x3f86b1[_0x5279('0x66')][_0x5279('0xc2')]('span',{'class':'ck-suggestion-preview-marker-'+_0x55ace6});_0x3f86b1[_0x5279('0x66')]['insert'](_0x141245,_0x37e8fd),_0x3f86b1[_0x5279('0x13')]['bindElementToMarker'](_0x37e8fd,_0x463866['markerName']);}_0x296a8f||_0x1fc028||!_0x46df6f||_0x5b7122(_0x46df6f);};}export class RestoreRevisionCommand extends _0x113455{constructor(_0x2bf595){super(_0x2bf595);const _0x28e45f=_0x2bf595[_0x5279('0xc0')][_0x5279('0x110')](d);this[_0x5279('0xcd')]=!0x1,this[_0x5279('0xb8')](_0x28e45f,'change:isReady',()=>this[_0x5279('0x10f')]()),this['listenTo'](_0x28e45f,_0x5279('0xca'),()=>this[_0x5279('0x10f')]());}[_0x5279('0xa')](){const _0x752383=this[_0x5279('0x7e')],_0x5162a3=_0x752383[_0x5279('0xc0')][_0x5279('0x110')](d),_0x5a5056=_0x5162a3['isReady']?_0x5162a3[_0x5279('0x93')][_0x5279('0xa6')]:null;_0x752383[_0x5279('0x26')][_0x5279('0x110')](_0x5279('0x91'))[_0x5279('0x4d')](_0x5a5056);}[_0x5279('0x10f')](){const {isReady:_0x1f8c73,isEnabled:_0x17bba3}=this['editor']['plugins'][_0x5279('0x110')](d);this[_0x5279('0xe1')]=_0x1f8c73&&_0x17bba3;}}export class ShowChangeCommand extends _0x113455{constructor(_0x5846ae,{direction:_0x3f530a}){super(_0x5846ae);const _0x5957c8=_0x5846ae[_0x5279('0xc0')][_0x5279('0x110')](d);this['affectsData']=!0x1,this[_0x5279('0x20')]=_0x5279('0x8')===_0x3f530a?0x1:-0x1,this[_0x5279('0xb8')](_0x5957c8,'change:isReady',()=>this[_0x5279('0x10f')]()),this[_0x5279('0xb8')](_0x5957c8,_0x5279('0xca'),()=>this[_0x5279('0x10f')]()),this[_0x5279('0xb8')](_0x5957c8,_0x5279('0xc4'),()=>this['refresh']());}[_0x5279('0xa')](){const _0x3cd6eb=this['editor'],_0x28c31d=_0x3cd6eb[_0x5279('0xc0')]['get'](d),{isNavigationMode:_0x580e6c,currentChangeNumber:_0x14e528}=_0x28c31d;let _0xdfdbde;if(_0x28c31d[_0x5279('0x3a')]=_0x580e6c?_0x28c31d[_0x5279('0x93')][_0x5279('0x60')]['get'](_0x14e528+this['_step']):_0x28c31d[_0x5279('0x93')][_0x5279('0x60')][_0x5279('0x49')],_0x28c31d['activeChange']['data'][_0x5279('0xcf')])_0xdfdbde=_0x3cd6eb['editing']['view']['getDomRoot'](_0x28c31d[_0x5279('0x3a')][_0x5279('0x115')]);else{const _0x3e08df=_0x3cd6eb['model'][_0x5279('0x8c')][_0x5279('0x110')]('revision:'+_0x28c31d[_0x5279('0x3a')]['id']);_0xdfdbde=_0x3a8ef3(_0x3cd6eb[_0x5279('0x6d')],_0x3e08df);}_0x33d52d({'target':_0xdfdbde,'viewportOffset':0x28});}[_0x5279('0x10f')](){const {isNavigationMode:_0x10ab2b,currentChangeNumber:_0x1db553,numberOfChanges:_0x40a2b4,isReady:_0x5044bd,isEnabled:_0x89b821}=this['editor'][_0x5279('0xc0')][_0x5279('0x110')](d);this[_0x5279('0xe1')]=!!(_0x89b821&&_0x5044bd&&_0x40a2b4)&&(!_0x10ab2b||(0x1===this[_0x5279('0x20')]?_0x1db553<_0x40a2b4-0x1:_0x1db553>0x0));}}
23
+ const _0x5f07=['_removeMissingPairs','editingDowncast','shift','first','startsWith','parent','enqueueChange','attributes','_changeView','authors','has','_getViewObj','top','_cleanUp','_balloon','sort','createUIElement','isEqual','_setConversion','editing','repository','domEvent','enableReadOnlyMode','listenTo','marked','ck-suggestion-marker--active','revision-suggestion:','consumable','isOnRoot','index','addRevisionData','get','_changeIdToChange','vid','newRevisionId','next','abs','children','ck-revision-history-root-add','revisionHistoryAttachChange','_makeModelFromViewString','showNextChange','isReady','_markMarkers','isBlock','getRevisionData','toViewElement','start','find','_appendChild','name','mousedown','_removeRevisionMarkers','_removeUnsupportedChanges','addHighlight','isRemoved','isEnabled','_update','collaboration.channelId','createRange','document','getAttribute','keys','error','isCollapsed','distance','getRoot','addMarker:revision','startIndex','highest','adapter','object','mapper','all','change:isEnabled','getCustomProperty','isAddSuggestion','unbindElementFromMarkerName','setAttribute','add','_getChangeFromId','_getViewForChange','forEach','revision-comment:','_markInsertions','addMarker:revision-suggestion:insertion','ck-editor__editable__overlay','revisionHistoryLabel','_makeTape','affectsData','return','left','merge','nextPosition','elementToAttribute','conversion','getRootNames','destroy','isAtEnd','loadRevisionData','markers','toViewPosition','slice','ck-revision-history-root--active','right','schema','insertions','isNavigationMode','markersEnd','nodeAfter','_threeWayMerge','removeMarker:revision-suggestion','wrap','addMarker:revision-suggestion:deletion','bind','markerToData','activeChange','removeMarker','deletions','createAttributeElement','length','_initInteractions','RevisionsRepository','change','userId','getClientRects','isAttached','map','getRevisionRootsAttributes','forward','includes','offsetSize','ck-suggestion-marker-split','upcast','indexOf','filter','_getDiff','_makeModelFromTape','compare','restoreRevision','low','writer','isBefore','_activeViewTarget','useFillerType','isAdded','from','ck-suggestion-marker-merge','revision-suggestion','_findChangeIdFromDomTarget','isAfter','data','item','_markSuggestions','revision-end','hasClass','unshift','changes','changeId','domConverter','previousPosition','uiElement','type','removeClass','WidgetToolbarRepository','element:pre','change:activeChange','push','createPositionFromPath','suggestion:','softBreak','view','downcastDispatcher','pluginName','maxOffset','stop','backward','refresh','getIndex','revision-viewer','nextSibling','_setDistance','diffData','target','deletion','isSuggestion','isContent','text','config','model','rootName','getAttributes','addClass','_markMismatchedRemovedTags','values','done','processor','elementEnd','attributesBefore','dataDowncast','consume','string','for','_data','test','toData','currentChangeNumber','showPreviousChange','-new','markerRange','revision','insertion','markerNameToElements','_cleanMarkers','_processTape','high','resolve','pairId','ck-suggestion-marker','clear','revisionHistory','markerName','element','span','isObject','addRevision','suggestion','addRoot','delete','isInline','level','revision-start','set','ck-revision-history-root-','concat','isLimit','reconvertMarker','modelRange','viewItem','isIncorrect','getChild','ck-suggestion-preview-marker-','toViewRange','default','execute','markersStart','bindElementToMarker','commands','end','parse','mouseover','endIndex','vid_start','insert','showStack','checkAttribute','_sortAndFilterDiffChanges','POSITIVE_INFINITY','getDomRoot','code','diff','_joinTapes','dataToMarker','split','revision:','attachChange','hasAttribute','catch','splice','_step','side','then','change:numberOfChanges','ck-suggestion-marker-','_fixObsoleteTags','vid_end','activeView','plugins','oldRevisionId','getWalker','getRevision','selection','remove','_getRevisionsRange','detachRoot','change:isReady','editor','isRemoveSuggestion','elementStart'];(function(_0x6699ca,_0x5f07f6){const _0x353037=function(_0x3e51a6){while(--_0x3e51a6){_0x6699ca['push'](_0x6699ca['shift']());}};_0x353037(++_0x5f07f6);}(_0x5f07,0x7e));const _0x3530=function(_0x6699ca,_0x5f07f6){_0x6699ca=_0x6699ca-0x0;let _0x353037=_0x5f07[_0x6699ca];return _0x353037;};import{Plugin as _0x5b0ff6,Command as _0x346961}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x11d83f}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x3957c4}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x4979a3,Element as _0x3a563a,Text as _0x2a94dd,ViewDocumentFragment as _0x51d369,ViewText as _0x1b9783,ViewElement as _0x5e509c,ViewContainerElement as _0x49720b,ViewAttributeElement as _0x548b55,ViewEmptyElement as _0x47abc2,ViewRawElement as _0x28e7ac,ViewUIElement as _0x1fab77}from'ckeditor5/src/engine.js';import{Users as _0x115596,getMarkerDomElement as _0x4630dd}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x4de4eb from'./ui/revisionviewer/changedetailsview.js';import _0x32c6e4 from'./revisionsrepository.js';import _0x793295 from'./changeitem.js';import{default as _0x5ed6b5}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x370b3f}from'lodash-es';const tt={'c':_0x49720b,'a':_0x548b55,'e':_0x47abc2,'r':_0x28e7ac,'u':_0x1fab77};export default class d extends _0x5b0ff6{static get[_0x3530('0x2f')](){return'RevisionViewer';}static get['requires'](){return[_0x115596,_0x3957c4,_0x32c6e4];}constructor(_0x572bb1){super(_0x572bb1),this[_0x3530('0xb7')]=this[_0x3530('0xa0')][_0x3530('0x97')][_0x3530('0xc2')](_0x3530('0x11d')),this[_0x3530('0x6a')](_0x3530('0x117'),null),this[_0x3530('0x6a')](_0x3530('0x96'),null),this['_activeViewTarget']=null,this[_0x3530('0x6a')](_0x3530('0x86'),null),this[_0x3530('0x6a')](_0x3530('0xcd'),!0x1),this['set'](_0x3530('0xdb'),!0x0),this['on'](_0x3530('0xed'),(_0x2f2e5a,_0x4f115a,_0x162a99)=>{this[_0x3530('0x117')]=null,this[_0x3530('0x96')]=null,this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2d')]['change'](_0x4f7ba3=>{for(const _0x4fc3d0 of this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2d')]['document']['roots'])_0x162a99?_0x4f7ba3[_0x3530('0x25')](_0x3530('0xf9'),_0x4fc3d0):_0x4f7ba3[_0x3530('0x42')](_0x3530('0xf9'),_0x4fc3d0);});}),this[_0x3530('0x115')](_0x3530('0x10e'))['to'](this,_0x3530('0x117'),_0x2e731a=>null!==_0x2e731a),this['bind'](_0x3530('0x50'))['to'](this,'isReady',this,'diff',this,_0x3530('0x117'),(_0x53c8ff,_0x51932c,_0x42bec7)=>_0x53c8ff&&_0x42bec7?_0x51932c[_0x3530('0x1f')][_0x3530('0x34')](_0x42bec7):0x0),this['bind']('numberOfChanges')['to'](this,_0x3530('0xcd'),this,_0x3530('0x86'),(_0x29aebe,_0x3a51d0)=>_0x29aebe?_0x3a51d0[_0x3530('0x1f')][_0x3530('0x11b')]:0x0),this['_changeView']=null,this[_0x3530('0xc3')]=new Map(),this['adapter']=null,this[_0x3530('0xb1')]=this[_0x3530('0xa0')][_0x3530('0x97')][_0x3530('0xc2')](_0x3957c4);}['init'](){const _0x4def3b=this[_0x3530('0xa0')],_0x318c15=new ShowChangeCommand(_0x4def3b,{'direction':_0x3530('0x32')}),_0x3318eb=new ShowChangeCommand(_0x4def3b,{'direction':'forward'});(_0x4def3b[_0x3530('0x79')][_0x3530('0xf2')](_0x3530('0x51'),_0x318c15),_0x4def3b['commands'][_0x3530('0xf2')](_0x3530('0xcc'),_0x3318eb),_0x4def3b[_0x3530('0x79')]['add'](_0x3530('0xd'),new RestoreRevisionCommand(_0x4def3b)),this['on'](_0x3530('0x92'),()=>{_0x318c15[_0x3530('0x33')](),_0x3318eb['refresh']();}),this[_0x3530('0xb5')](),this[_0x3530('0x11c')](),_0x4def3b[_0x3530('0xb9')](_0x3530('0x35')),_0x4def3b['plugins']['has'](_0x3530('0x26')))&&_0x4def3b[_0x3530('0x97')][_0x3530('0xc2')](_0x3530('0x26'))['forceDisabled'](_0x3530('0x35'));}async[_0x3530('0xd0')](_0x2ee2d4){await this[_0x3530('0x106')](_0x2ee2d4);const _0x24e464={};for(const _0x5c2c4b in _0x2ee2d4['diffData']){if(_0x2ee2d4[_0x3530('0x38')][_0x5c2c4b][_0x3530('0x8b')]&&!_0x2ee2d4[_0x3530('0x38')][_0x5c2c4b]['attachChange']['isAttached'])continue;const _0x3e6a15=this[_0x3530('0xd7')](JSON[_0x3530('0x7b')](_0x2ee2d4[_0x3530('0x38')][_0x5c2c4b][_0x3530('0x10d')])),_0xe97a05=this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2d')]['document'],_0x576c3d=new _0x51d369(_0xe97a05,_0x3e6a15['map'](_0x27df9a=>this[_0x3530('0xae')](_0x27df9a)));this[_0x3530('0xa0')][_0x3530('0x19')][_0x3530('0x46')][_0x3530('0x12')](_0x3530('0xbb')),_0x24e464[_0x5c2c4b]=this[_0x3530('0xa0')]['data'][_0x3530('0x46')][_0x3530('0x4f')](_0x576c3d),this[_0x3530('0xa0')][_0x3530('0x19')][_0x3530('0x46')]['useFillerType'](_0x3530('0x75'));}return _0x24e464;}async[_0x3530('0x2')](_0x46827b){await this[_0x3530('0x106')](_0x46827b);const _0x57518c={};for(const _0x2ed4f8 in _0x46827b[_0x3530('0x38')])_0x46827b['diffData'][_0x2ed4f8][_0x3530('0x8b')]&&!_0x46827b[_0x3530('0x38')][_0x2ed4f8][_0x3530('0x8b')]['isAttached']||(_0x57518c[_0x2ed4f8]=_0x46827b[_0x3530('0x38')][_0x2ed4f8]['attributesAfter']||{});return _0x57518c;}[_0x3530('0xd7')](_0x206c0c){return(_0x206c0c=_0x206c0c[_0x3530('0x9')](_0x524be0=>!_0x524be0['name']||_0x3530('0x69')!==_0x524be0[_0x3530('0xd5')]&&_0x3530('0x1c')!==_0x524be0[_0x3530('0xd5')]))['forEach'](_0x4eb2ac=>{_0x3530('0x4b')!=typeof _0x4eb2ac&&(_0x4eb2ac[_0x3530('0xc8')]=this[_0x3530('0xd7')](_0x4eb2ac[_0x3530('0xc8')]),_0x4eb2ac['attributes']=_0x4eb2ac[_0x3530('0xaa')][_0x3530('0x9')](_0x41f38c=>!_0x41f38c[0x0][_0x3530('0xa7')]('data-revision-')));}),_0x206c0c;}async[_0x3530('0xc')](_0x2a635a,_0xde84aa,_0x571206=!0x1){if(!this['isEnabled'])return;const _0x3e1fef=this[_0x3530('0x86')],_0x3400fc=this[_0x3530('0xb7')],_0x196c6a=_0x3530('0x4b')==typeof _0x2a635a?_0x3400fc[_0x3530('0x9a')](_0x2a635a):_0x2a635a,_0x310585=_0x3530('0x4b')==typeof _0xde84aa?_0x3400fc[_0x3530('0x9a')](_0xde84aa):_0xde84aa,_0x48354e=_0x196c6a['id'],_0x2b45db=_0x310585?_0x310585['id']:null;if(!_0x571206&&this[_0x3530('0x86')]&&this[_0x3530('0x86')][_0x3530('0xc5')]===_0x48354e&&this[_0x3530('0x86')][_0x3530('0x98')]===_0x2b45db)return Promise[_0x3530('0x5a')]();this[_0x3530('0xcd')]=!0x1,this[_0x3530('0x96')]=null,this['activeChange']=null,this['diff']=new _0x5ed6b5(_0x48354e,_0x2b45db);const _0x5901d0=this[_0x3530('0x9d')](_0x196c6a,_0x310585,!0x0)[_0x3530('0x1')](_0x34a708=>this['loadRevisionData'](_0x34a708));return _0x5901d0[_0x3530('0x29')](new Promise(_0x1b6f35=>{setTimeout(_0x1b6f35,0x14);})),Promise[_0x3530('0xec')](_0x5901d0)['then'](()=>{if(!this[_0x3530('0xdb')])return;this[_0x3530('0xb0')]();const _0x10ad87=this['_getDiff'](_0x48354e,_0x2b45db);for(const _0x14f3ab of _0x10ad87[_0x3530('0x1f')])this[_0x3530('0xc3')][_0x3530('0x6a')](_0x14f3ab['id'],_0x14f3ab);this[_0x3530('0xa0')][_0x3530('0x3f')]['enqueueChange']({'isUndoable':!0x1},_0x902932=>{for(const _0x285eea of this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0xdf')][_0x3530('0x103')]())_0x902932[_0x3530('0x9e')](_0x285eea);for(const _0x43693d of Object[_0x3530('0xe1')](_0x10ad87[_0x3530('0x3f')])){const _0x42958c=_0x902932[_0x3530('0x65')](_0x43693d);for(const _0x4dd83e of Object[_0x3530('0xe1')](_0x10ad87['attributes'][_0x43693d]))_0x902932['setAttribute'](_0x4dd83e,_0x10ad87[_0x3530('0xaa')][_0x43693d][_0x4dd83e],_0x42958c);_0x902932['insert'](_0x10ad87['model'][_0x43693d],_0x42958c,0x0);}}),this[_0x3530('0x86')]['_setChanges'](this[_0x3530('0x82')](_0x10ad87[_0x3530('0x1f')])),this['isReady']=!0x0;})[_0x3530('0x8d')](_0x5006e1=>{console[_0x3530('0xe2')](_0x5006e1),this[_0x3530('0xb0')](),_0x3e1fef&&(this[_0x3530('0x86')]=_0x3e1fef),this[_0x3530('0xcd')]=!0x0;});}[_0x3530('0xc1')](_0x378bba,_0x3fde4d){const _0x451af9=this[_0x3530('0xb7')]['createRevision'](_0x378bba);return _0x451af9['on'](_0x3530('0xdc'),(_0x32417a,_0x3750b3,_0x1fb27c)=>_0x3fde4d(_0x3750b3,_0x1fb27c,_0x451af9)),this[_0x3530('0xb7')][_0x3530('0x63')](_0x451af9),_0x451af9;}[_0x3530('0x106')](_0x88b04a){if(!_0x88b04a||_0x88b04a['diffData'])return Promise[_0x3530('0x5a')]();{const _0x69603=this[_0x3530('0xa0')]['config'][_0x3530('0xc2')](_0x3530('0xdd'));return this[_0x3530('0xe9')][_0x3530('0x9a')]({'channelId':_0x69603,'revisionId':_0x88b04a['id']})[_0x3530('0x91')](_0x42f604=>{_0x88b04a['_update']({'diffData':_0x42f604[_0x3530('0x38')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this[_0x3530('0x57')](),this[_0x3530('0xab')]&&this['_changeView'][_0x3530('0x104')](),this[_0x3530('0xab')]=null,this[_0x3530('0xc3')][_0x3530('0x5d')](),this['editor'][_0x3530('0x3f')][_0x3530('0xa9')]({'isUndoable':!0x1},_0x2a0b14=>{for(const _0x173041 of this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0xdf')][_0x3530('0x103')]())_0x2a0b14['detachRoot'](_0x173041);});}[_0x3530('0x82')](_0x2dc57f){const _0x58d735=[],_0xb09d1=new Map();for(const _0x5111a6 of this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0xdf')][_0x3530('0x103')]()){const _0x500086=this[_0x3530('0xa0')]['editing']['view'][_0x3530('0x84')](_0x5111a6);if(!_0x500086)continue;const _0xca6acf=_0x500086[_0x3530('0x120')]()[_0x3530('0x1a')](0x0);_0xca6acf&&(_0x58d735[_0x3530('0x29')](_0x5111a6),_0xb09d1['set'](_0x5111a6,_0xca6acf));}return _0x58d735['sort']((_0x3624b3,_0x2caf2b)=>{const _0x1ac672=_0xb09d1[_0x3530('0xc2')](_0x3624b3),_0x51dc2c=_0xb09d1['get'](_0x2caf2b);return _0x1ac672['y']-_0x51dc2c['y']||_0x1ac672['x']-_0x51dc2c['x'];}),(_0x2dc57f=_0x2dc57f[_0x3530('0x9')](_0x1bf215=>_0x58d735[_0x3530('0x4')](_0x1bf215[_0x3530('0x40')])))[_0x3530('0xb2')]((_0x108336,_0x35c800)=>_0x58d735[_0x3530('0x8')](_0x108336[_0x3530('0x40')])-_0x58d735[_0x3530('0x8')](_0x35c800[_0x3530('0x40')])),_0x2dc57f;}[_0x3530('0xfb')](_0x19c1ea){const _0x2665ba=Array[_0x3530('0x14')](_0x19c1ea[_0x3530('0x107')])[_0x3530('0x9')](([_0x3b0a17,_0x4f5b2b])=>_0x3b0a17[_0x3530('0xa7')](_0x3530('0x8a'))&&!_0x4f5b2b[_0x3530('0xe3')]),_0x1bff9b=Array[_0x3530('0x14')](this[_0x3530('0xa0')][_0x3530('0x3f')]['createRangeIn'](_0x19c1ea)[_0x3530('0x99')]({'singleCharacters':!0x0}));if(0x0!=_0x2665ba[_0x3530('0x11b')])for(const _0xa18fa2 of _0x1bff9b){const [_0x273a4b,_0x10c8d5]=_0x2665ba[0x0],[,_0x4b67db,_0x14c044]=_0x273a4b[_0x3530('0x89')](':');if(_0x10c8d5[_0x3530('0x7a')]['isEqual'](_0xa18fa2[_0x3530('0x100')])&&_0x2665ba[_0x3530('0xa5')](),(_0xa18fa2[_0x3530('0x22')][_0x3530('0xb4')](_0x10c8d5['start'])||_0xa18fa2[_0x3530('0x22')][_0x3530('0x18')](_0x10c8d5[_0x3530('0xd2')]))&&(_0x3530('0x55')==_0x4b67db?_0xa18fa2[_0x3530('0x13')]={'userId':_0x14c044}:'deletion'==_0x4b67db&&(_0xa18fa2[_0x3530('0xda')]={'userId':_0x14c044})),0x0==_0x2665ba['length'])break;}return _0x1bff9b;}['_refreshStartEndIndex'](_0x2873a8){const _0x56e89d=new Map();for(let _0x4550bb=0x0;_0x4550bb<_0x2873a8[_0x3530('0x11b')];_0x4550bb++)_0x3530('0x3d')===_0x2873a8[_0x4550bb][_0x3530('0x24')]?(_0x2873a8[_0x4550bb][_0x3530('0x1a')]['startIndex']=_0x4550bb,_0x2873a8[_0x4550bb][_0x3530('0x1a')][_0x3530('0x7d')]=_0x4550bb):('elementStart'===_0x2873a8[_0x4550bb][_0x3530('0x24')]?_0x2873a8[_0x4550bb][_0x3530('0x1a')][_0x3530('0xe7')]=_0x4550bb:_0x3530('0x47')===_0x2873a8[_0x4550bb]['type']&&(_0x2873a8[_0x4550bb][_0x3530('0x1a')]['endIndex']=_0x4550bb),_0x56e89d['set'](_0x2873a8[_0x4550bb]['id'],_0x4550bb));for(const _0x412aaa of _0x56e89d[_0x3530('0x44')]())_0x3530('0xa2')===_0x2873a8[_0x412aaa][_0x3530('0x24')]?_0x2873a8[_0x412aaa][_0x3530('0x1a')][_0x3530('0x7d')]=_0x56e89d[_0x3530('0xc2')](_0x2873a8[_0x412aaa][_0x3530('0x5b')]):'elementEnd'===_0x2873a8[_0x412aaa]['type']&&(_0x2873a8[_0x412aaa]['item'][_0x3530('0xe7')]=_0x56e89d[_0x3530('0xc2')](_0x2873a8[_0x412aaa]['pairId']));}['_processTape'](_0x4c7424){for(let _0x3ea8f0=0x0;_0x3ea8f0<_0x4c7424[_0x3530('0x11b')];_0x3ea8f0++){if(_0x3530('0xa2')===_0x4c7424[_0x3ea8f0][_0x3530('0x24')])_0x4c7424[_0x3ea8f0]['item'][_0x3530('0xe7')]=_0x3ea8f0;else{if(_0x3530('0x47')===_0x4c7424[_0x3ea8f0][_0x3530('0x24')]){_0x4c7424[_0x3ea8f0][_0x3530('0x1a')][_0x3530('0x7d')]=_0x3ea8f0;const _0x4bb87b=_0x4c7424[_0x3ea8f0][_0x3530('0x1a')][_0x3530('0xe7')];_0x4c7424[_0x4bb87b]['pairId']=_0x4c7424[_0x3ea8f0]['id'],_0x4c7424[_0x3ea8f0][_0x3530('0x5b')]=_0x4c7424[_0x4bb87b]['id'];}else _0x4c7424[_0x3ea8f0][_0x3530('0x1a')][_0x3530('0xe7')]=_0x3ea8f0,_0x4c7424[_0x3ea8f0]['item'][_0x3530('0x7d')]=_0x3ea8f0,_0x4c7424[_0x3ea8f0]['pairId']=null;}_0x4c7424[_0x3ea8f0]['markersStart']||(_0x4c7424[_0x3ea8f0][_0x3530('0x77')]=[],_0x4c7424[_0x3ea8f0]['markersEnd']=[]);}}[_0x3530('0xf7')](_0x25aa9b,_0x2d7d26){const _0x225af2=_0x25aa9b['filter'](_0x3a97f7=>!_0x3a97f7[_0x3530('0x13')]);for(let _0x12f6b6=0x0;_0x12f6b6<_0x2d7d26[_0x3530('0x11b')];_0x12f6b6++)_0x2d7d26[_0x12f6b6][_0x3530('0x13')]&&(_0x225af2[_0x12f6b6][_0x3530('0x13')]=_0x2d7d26[_0x12f6b6]['isAdded']);}['_makeModelFromViewString'](_0x11d11d){const _0x3b0880=JSON[_0x3530('0x7b')](_0x11d11d),_0x57c23f=this[_0x3530('0xa0')]['editing'][_0x3530('0x2d')][_0x3530('0xdf')],_0x2c7810=new _0x51d369(_0x57c23f,_0x3b0880[_0x3530('0x1')](_0x32c35a=>this[_0x3530('0xae')](_0x32c35a)));return this[_0x3530('0xa0')][_0x3530('0x19')]['toModel'](_0x2c7810);}[_0x3530('0xae')](_0x30b671){const _0x4cfec4=this[_0x3530('0xa0')][_0x3530('0xb6')]['view'][_0x3530('0xdf')];if(_0x3530('0x4b')==typeof _0x30b671)return new _0x1b9783(_0x4cfec4,_0x30b671);{const _0x55470a=_0x30b671[_0x3530('0xc8')][_0x3530('0x1')](_0xf1ba0e=>this[_0x3530('0xae')](_0xf1ba0e));return new(tt[_0x30b671[(_0x3530('0x24'))]]||_0x5e509c)(_0x4cfec4,_0x30b671[_0x3530('0xd5')],_0x30b671['attributes'],_0x55470a);}}[_0x3530('0xa')](_0x42ccf7,_0x5cab8a=null){const _0x12d8cd=this[_0x3530('0xb7')][_0x3530('0x9a')](_0x42ccf7),_0x13da79=_0x5cab8a?this['repository']['getRevision'](_0x5cab8a):null,_0x36bc3a=this[_0x3530('0x9d')](_0x12d8cd,_0x13da79),_0x3c053d=_0x36bc3a[_0x36bc3a['length']-0x1],_0x2b7301=new Map(),_0x269f09={'model':{},'attributes':{},'changes':[]},_0x3c32e7=new Set(),_0x341c5b=new Map();for(let _0x233cb0=_0x36bc3a[_0x3530('0x11b')]-0x1;_0x233cb0>=0x0;_0x233cb0--){const _0x94f21e=_0x36bc3a[_0x233cb0];for(const _0x4fbfa3 of Object[_0x3530('0xe1')](_0x94f21e[_0x3530('0x38')]))if(_0x94f21e[_0x3530('0x38')][_0x4fbfa3][_0x3530('0x8b')]){const _0x38d0a0=_0x94f21e[_0x3530('0x38')][_0x4fbfa3][_0x3530('0x8b')];_0x38d0a0[_0x3530('0x0')]?(_0x3c32e7[_0x3530('0xf2')](_0x4fbfa3),_0x341c5b[_0x3530('0xad')](_0x4fbfa3)&&_0x341c5b['get'](_0x4fbfa3)[_0x3530('0x11f')]==_0x38d0a0['userId']?_0x341c5b[_0x3530('0x66')](_0x4fbfa3):_0x341c5b[_0x3530('0x6a')](_0x4fbfa3,_0x38d0a0)):_0x341c5b[_0x3530('0xad')](_0x4fbfa3)?(_0x3c32e7['delete'](_0x4fbfa3),_0x341c5b[_0x3530('0x66')](_0x4fbfa3)):(_0x3c32e7[_0x3530('0xf2')](_0x4fbfa3),_0x341c5b[_0x3530('0x6a')](_0x4fbfa3,_0x38d0a0));}else _0x3c32e7['add'](_0x4fbfa3);}for(const _0xb89b6f of _0x3c32e7){const _0x25afa0=_0x341c5b[_0x3530('0xad')](_0xb89b6f)&&!_0x341c5b[_0x3530('0xc2')](_0xb89b6f)[_0x3530('0x0')];let _0x1fc490=_0x25afa0?_0x36bc3a[_0x3530('0x11b')]-0x1:0x0;const _0x261b65=_0x25afa0?-0x1:0x1;for(;_0x36bc3a[_0x1fc490];){const _0xf77521=_0x36bc3a[_0x1fc490];if(_0xf77521[_0x3530('0x38')][_0xb89b6f]){const _0x5e4d08=_0x25afa0?_0xf77521[_0x3530('0x38')][_0xb89b6f][_0x3530('0x48')]:_0xf77521[_0x3530('0x38')][_0xb89b6f]['attributesAfter'];_0x269f09[_0x3530('0xaa')][_0xb89b6f]=_0x5e4d08?_0x370b3f(_0x5e4d08):{};break;}_0x1fc490+=_0x261b65;}}for(const _0x524dd9 of _0x36bc3a){_0x524dd9[_0x3530('0x3f')]={};for(const _0x407801 of _0x524dd9[_0x3530('0xac')])_0x2b7301[_0x3530('0x6a')](_0x407801['id'],_0x407801);for(const _0x5916a9 of _0x3c32e7){const _0x1636fc=_0x524dd9[_0x3530('0x38')][_0x5916a9]?_0x524dd9[_0x3530('0x38')][_0x5916a9]['insertions']:'[]',_0x4b180e=_0x524dd9['diffData'][_0x5916a9]?_0x524dd9['diffData'][_0x5916a9][_0x3530('0x119')]:'[]';_0x524dd9[_0x3530('0x3f')][_0x5916a9]={'insertions':this[_0x3530('0xcb')](_0x1636fc),'deletions':this[_0x3530('0xcb')](_0x4b180e)};}}for(const _0x127dff of _0x3c32e7){let _0x59e59b=null,_0x132203=0x0;const _0xb93ae5=new Map(Array['from'](_0x12d8cd[_0x3530('0x3f')][_0x127dff][_0x3530('0x10d')]['markers'])[_0x3530('0x9')](([_0x40debb])=>!_0x40debb[_0x3530('0xa7')](_0x3530('0x8a'))));let _0x26e7e7=0x0;for(const _0x38a169 of _0x36bc3a){const _0x2d5f4d=this[_0x3530('0xfb')](_0x38a169[_0x3530('0x3f')][_0x127dff][_0x3530('0x10d')]);_0x38a169==_0x12d8cd?(_0x59e59b=_0x2d5f4d,_0x132203=_0x59e59b[_0x3530('0x11b')],_0x59e59b['forEach'](_0x1f6a6e=>{_0x1f6a6e['id']=_0x26e7e7++;}),this[_0x3530('0x58')](_0x59e59b)):this[_0x3530('0xf7')](_0x59e59b,_0x2d5f4d);const _0x4e5d5c=_0x59e59b[_0x3530('0x9')](_0x2121bf=>!_0x2121bf[_0x3530('0x13')])[_0x3530('0x1')](_0x308647=>_0x308647['id']);let _0x442fe7=0x0;const _0x4e1573=this[_0x3530('0xfb')](_0x38a169[_0x3530('0x3f')][_0x127dff][_0x3530('0x119')]);_0x4e1573[_0x3530('0xf5')](_0x2d34de=>{_0x2d34de[_0x3530('0xda')]?_0x2d34de['id']=_0x132203++:_0x2d34de['id']=_0x4e5d5c[_0x442fe7++];}),this['_processTape'](_0x4e1573),this[_0x3530('0x37')](_0x59e59b,_0x3530('0x13')),this[_0x3530('0x37')](_0x4e1573,_0x3530('0xda')),_0x38a169==_0x12d8cd&&this['_markMarkers'](_0x59e59b,_0xb93ae5),_0x59e59b=this['_joinTapes'](_0x59e59b,_0x4e1573),this['_refreshStartEndIndex'](_0x59e59b),this[_0x3530('0x37')](_0x59e59b,_0x3530('0xda'));}_0x59e59b=_0x59e59b[_0x3530('0x9')](_0x580ab1=>!(_0x580ab1[_0x3530('0x13')]&&_0x580ab1[_0x3530('0xda')]));const _0x2defe0=new Map(_0x3c053d[_0x3530('0x3f')][_0x127dff][_0x3530('0x119')][_0x3530('0x107')]),_0x3020bb=new Set(_0xb93ae5[_0x3530('0xe1')]());for(const _0x1d8382 of _0x2defe0[_0x3530('0xe1')]())_0x3020bb[_0x3530('0x66')](_0x1d8382);this[_0x3530('0x1b')](_0x59e59b,_0x3020bb),this[_0x3530('0x94')](_0x59e59b),_0x59e59b=this['_removeMissingPairs'](_0x59e59b),_0x59e59b=this[_0x3530('0x43')](_0x59e59b),_0x59e59b=this[_0x3530('0xd8')](_0x59e59b);const {root:_0x2242f4,changes:_0xeefb5a}=this[_0x3530('0xb')](_0x59e59b,_0x2b7301,_0x127dff);_0x269f09[_0x3530('0x3f')][_0x127dff]=_0x2242f4;const _0x1ee00b=_0x341c5b[_0x3530('0xc2')](_0x127dff);if(_0x1ee00b){const _0x53f8d8=_0x2b7301['get'](_0x1ee00b['userId']),_0x1dce7f=new _0x793295({'author':_0x53f8d8,'type':_0x1ee00b[_0x3530('0x0')]?_0x3530('0xf2'):_0x3530('0x9c'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x127dff});_0xeefb5a[_0x3530('0x1e')](_0x1dce7f),_0x269f09[_0x3530('0xaa')][_0x127dff][_0x3530('0xca')]=_0x1dce7f['id'];}_0x269f09['changes']=_0x269f09[_0x3530('0x1f')][_0x3530('0x6c')](_0xeefb5a);}return _0x269f09;}[_0x3530('0xce')](_0x4ab8e8,_0x4445fa){for(let _0x24149f=0x0;_0x24149f<_0x4ab8e8[_0x3530('0x11b')];_0x24149f++)for(const [_0x599f1b,_0x47e43e]of _0x4445fa)_0x47e43e['start'][_0x3530('0xb4')](_0x4ab8e8[_0x24149f]['previousPosition'])&&_0x4ab8e8[_0x24149f][_0x3530('0x77')][_0x3530('0x29')](_0x599f1b),_0x47e43e[_0x3530('0x7a')]['isEqual'](_0x4ab8e8[_0x24149f]['nextPosition'])&&_0x4ab8e8[_0x24149f][_0x3530('0x10f')][_0x3530('0x29')](_0x599f1b);}[_0x3530('0x87')](_0x42a584,_0x5a5152){let _0x36c362=[],_0x4fa901=0x0,_0x5a87e5=0x0;for(;_0x4fa901<_0x42a584[_0x3530('0x11b')]||_0x5a87e5<_0x5a5152[_0x3530('0x11b')];){const _0x54e36b=_0x42a584[_0x4fa901]||{},_0x4cdbd7=_0x5a5152[_0x5a87e5]||{};if(_0x54e36b['id']==_0x4cdbd7['id'])_0x4fa901++,_0x5a87e5++,_0x36c362[_0x3530('0x29')](_0x54e36b);else{if(_0x4cdbd7[_0x3530('0xda')]&&_0x54e36b['isAdded']){const {commonTape:_0x532bce,iEnd:_0x3cc1d4,jEnd:_0x527dad}=this[_0x3530('0x111')](_0x42a584,_0x4fa901,_0x5a5152,_0x5a87e5);_0x36c362=_0x36c362[_0x3530('0x6c')](_0x532bce),_0x4fa901=_0x3cc1d4,_0x5a87e5=_0x527dad;}else _0x4cdbd7['isRemoved']?(_0x5a87e5++,_0x36c362[_0x3530('0x29')](_0x4cdbd7)):(_0x4fa901++,_0x36c362[_0x3530('0x29')](_0x54e36b));}}return _0x36c362;}[_0x3530('0x1b')](_0x245db3,_0x4076a1){const _0x3017f7=[];for(let _0x4ba37a=0x0;_0x4ba37a<_0x245db3[_0x3530('0x11b')];_0x4ba37a++){for(let _0x51f4a1=0x0;_0x51f4a1<_0x245db3[_0x4ba37a]['markersStart'][_0x3530('0x11b')];_0x51f4a1++){const _0x3c469b=_0x245db3[_0x4ba37a][_0x3530('0x77')][_0x51f4a1];if(!_0x4076a1['has'](_0x3c469b))continue;const {group:_0xdbb4be,type:_0x2836d6,authorId:_0x41ae6c}=_0x46d389(_0x3c469b);'revision-suggestion'!=_0xdbb4be||'insertion'!=_0x2836d6&&_0x3530('0x3a')!=_0x2836d6||(_0x3017f7['unshift']({'type':_0x2836d6,'name':_0x3c469b,'userId':_0x41ae6c}),_0x245db3[_0x4ba37a][_0x3530('0x77')][_0x3530('0x8e')](_0x51f4a1,0x1),_0x51f4a1--);}_0x435279(_0x245db3[_0x4ba37a]);for(let _0x2581c1=0x0;_0x2581c1<_0x245db3[_0x4ba37a][_0x3530('0x10f')][_0x3530('0x11b')];_0x2581c1++){const _0x23a3d2=_0x245db3[_0x4ba37a][_0x3530('0x10f')][_0x2581c1];if(!_0x4076a1['has'](_0x23a3d2))continue;const {group:_0x1eecef,type:_0x3af700}=_0x46d389(_0x23a3d2);if(_0x3530('0x16')!=_0x1eecef||_0x3530('0x55')!=_0x3af700&&'deletion'!=_0x3af700)continue;_0x245db3[_0x4ba37a]['markersEnd'][_0x3530('0x8e')](_0x2581c1,0x1),_0x2581c1--;const _0x4ab239=_0x3017f7['findIndex'](_0x4011ca=>_0x4011ca[_0x3530('0xd5')]==_0x23a3d2);_0x4ab239>-0x1&&_0x3017f7[_0x3530('0x8e')](_0x4ab239,0x1);}}function _0x46d389(_0x283a1d){const _0x8ff5f5=_0x283a1d[_0x3530('0x89')](':');return{'group':_0x8ff5f5[0x0],'type':_0x8ff5f5[0x1],'subType':_0x8ff5f5[_0x3530('0x11b')]>=0x5?_0x8ff5f5[0x2]:null,'id':_0x8ff5f5['length']<0x5?_0x8ff5f5[0x2]:_0x8ff5f5[0x3],'authorId':_0x8ff5f5[_0x3530('0x11b')]<0x5?_0x8ff5f5[0x3]:_0x8ff5f5[0x4],'markerCount':0x6==_0x8ff5f5['length']?_0x8ff5f5[0x5]:null};}function _0x435279(_0x258837){for(let _0x13b71c=0x0;_0x13b71c<_0x3017f7[_0x3530('0x11b')];_0x13b71c++){if(_0x258837['isAdded']&&_0x3530('0x55')==_0x3017f7[_0x13b71c]['type'])return _0x258837['isAddSuggestion']=_0x3017f7[_0x13b71c],void delete _0x258837[_0x3530('0x13')];if(!_0x258837[_0x3530('0x13')]&&!_0x258837[_0x3530('0xda')]&&_0x3530('0x3a')==_0x3017f7[_0x13b71c][_0x3530('0x24')])return void(_0x258837[_0x3530('0xa1')]=_0x3017f7[_0x13b71c]);}}}['_setDistance'](_0x18bf00,_0x5e69d8){let _0x262cb6=0x0,_0x564ff9=!0x1;const _0x3049ad=new Map();for(const _0x2cd91c of _0x18bf00)_0x2cd91c[_0x5e69d8]?_0x564ff9&&(_0x262cb6++,_0x564ff9=!0x1):(_0x262cb6++,_0x564ff9=!0x0),_0x3049ad[_0x3530('0x6a')](_0x2cd91c['id'],_0x262cb6);for(let _0x27babd=0x0;_0x27babd<_0x18bf00[_0x3530('0x11b')];_0x27babd++){if('isRemoved'==_0x5e69d8&&_0x18bf00[_0x27babd][_0x3530('0x13')]||_0x3530('0x13')==_0x5e69d8&&_0x18bf00[_0x27babd][_0x3530('0xda')])continue;if('text'==_0x18bf00[_0x27babd][_0x3530('0x24')]){_0x18bf00[_0x27babd][_0x3530('0xe4')]=0x0;continue;}const _0x2ed781=_0x3049ad[_0x3530('0xc2')](_0x18bf00[_0x27babd][_0x3530('0x5b')]),_0x1c3f8c=_0x3049ad[_0x3530('0xc2')](_0x18bf00[_0x27babd]['id']);_0x18bf00[_0x27babd][_0x3530('0xe4')]=_0x2ed781-_0x1c3f8c;}}['_getRevisionsRange'](_0x11f22f,_0xe5ffe5,_0x1acff9=!0x1){const _0x5e32f0=[];let _0x4a18b4=this[_0x3530('0xb7')][_0x3530('0x34')](_0x11f22f),_0x343a9a=this[_0x3530('0xb7')][_0x3530('0x34')](_0xe5ffe5);for(-0x1==_0x343a9a&&(_0x343a9a=this[_0x3530('0xb7')]['_revisions'][_0x3530('0x11b')],_0x1acff9=!0x1);_0x4a18b4<_0x343a9a;)_0x5e32f0['push'](this[_0x3530('0xb7')][_0x3530('0x9a')](_0x4a18b4)),_0x4a18b4++;return _0x1acff9&&_0x5e32f0['push'](this[_0x3530('0xb7')][_0x3530('0x9a')](_0x4a18b4)),_0x5e32f0;}[_0x3530('0x111')](_0x56d53b,_0x68735e,_0x2a92c4,_0x5a7418){const _0x2259b0=this['editor'][_0x3530('0x3f')]['schema'];let _0x3a5bfb=_0x68735e;for(;_0x56d53b[_0x3a5bfb]&&_0x56d53b[_0x3a5bfb][_0x3530('0x13')];)_0x3a5bfb++;let _0x5e07bd=_0x5a7418;for(;_0x2a92c4[_0x5e07bd]&&_0x2a92c4[_0x5e07bd][_0x3530('0xda')];)_0x5e07bd++;_0x4aeb3a(_0x56d53b,_0x68735e,_0x3a5bfb),_0x4aeb3a(_0x2a92c4,_0x5a7418,_0x5e07bd);const _0x475b4e=_0x2a92c4[_0x3530('0x109')](_0x5a7418,_0x5e07bd)['concat'](_0x56d53b[_0x3530('0x109')](_0x68735e,_0x3a5bfb));return _0x475b4e[_0x3530('0xb2')]((_0x1821b3,_0x2e5575)=>_0x1821b3['side']!=_0x2e5575['side']?_0x1821b3['side']-_0x2e5575[_0x3530('0x90')]:_0x1821b3[_0x3530('0x68')]!=_0x2e5575['level']?_0x1821b3[_0x3530('0x68')]-_0x2e5575[_0x3530('0x68')]:_0x1821b3[_0x3530('0xe4')]!=_0x2e5575['distance']?_0x2e5575['distance']-_0x1821b3['distance']:!!_0x1821b3[_0x3530('0x13')]!=!!_0x2e5575[_0x3530('0x13')]?-0x1==_0x1821b3[_0x3530('0x90')]||0x0==_0x1821b3[_0x3530('0x90')]?_0x1821b3[_0x3530('0x13')]?-0x1:0x1:_0x1821b3[_0x3530('0x13')]?0x1:-0x1:_0x1821b3[_0x3530('0xc0')]-_0x2e5575[_0x3530('0xc0')]),{'commonTape':_0x475b4e,'iEnd':_0x3a5bfb,'jEnd':_0x5e07bd};function _0x4aeb3a(_0x486784,_0x1a8161,_0x2f8caf){let _0x4deca9=-0x1,_0x1fdc04=Number[_0x3530('0x83')],_0x53a7fa=!0x0;for(let _0x51eece=_0x1a8161;_0x51eece<_0x2f8caf;_0x51eece++)if(_0x2259b0[_0x3530('0x67')](_0x486784[_0x51eece][_0x3530('0x1a')])||(_0x53a7fa=!0x1),_0x486784[_0x51eece][_0x3530('0x1a')][_0x3530('0xe7')]<_0x1a8161&&(_0x4deca9=_0x51eece),_0x486784[_0x51eece]['item'][_0x3530('0x7d')]>=_0x2f8caf){_0x1fdc04=_0x51eece;break;}_0x53a7fa&&(_0x4deca9=_0x2f8caf-0x1);for(let _0x3a28f5=_0x1a8161;_0x3a28f5<_0x2f8caf;_0x3a28f5++)_0x486784[_0x3a28f5]['side']=_0x3a28f5<=_0x4deca9?-0x1:_0x3a28f5<_0x1fdc04?0x0:0x1,_0x486784[_0x3a28f5][_0x3530('0xc0')]=_0x3a28f5;let _0x3e3420=0x0;for(let _0x25c664=_0x1a8161;_0x25c664<=_0x4deca9;_0x25c664++)0x0==_0x486784[_0x25c664][_0x3530('0xe4')]?_0x486784[_0x25c664][_0x3530('0x68')]=_0x3e3420:(_0x3e3420++,_0x486784[_0x25c664][_0x3530('0x68')]=_0x3e3420,_0x3e3420++);for(let _0x29ed63=_0x1a8161;_0x29ed63<_0x2f8caf;_0x29ed63++)0x0==_0x486784[_0x29ed63]['side']&&(_0x486784[_0x29ed63][_0x3530('0x68')]=_0x3e3420);_0x3e3420=0x0;for(let _0x3ac8ce=_0x2f8caf-0x1;_0x3ac8ce>=_0x1fdc04;_0x3ac8ce--)0x0==_0x486784[_0x3ac8ce][_0x3530('0xe4')]?_0x486784[_0x3ac8ce][_0x3530('0x68')]=_0x3e3420:(_0x3e3420--,_0x486784[_0x3ac8ce][_0x3530('0x68')]=_0x3e3420,_0x3e3420--);}}['_fixObsoleteTags'](_0x4a3dfb){const _0x5cc7b7=new Map(),_0xfc8a2d=this['editor']['model'][_0x3530('0x10c')];for(let _0xde95ad=0x1;_0xde95ad<_0x4a3dfb[_0x3530('0x11b')];_0xde95ad++){let _0x15f7a7,_0x40eaa3,_0x4b3e4a;const _0x2ae113=_0x4a3dfb[_0xde95ad],_0x4092a0=_0x4a3dfb[_0xde95ad-0x1];if(_0x3530('0x3d')==_0x2ae113['type'])continue;if(_0x2ae113[_0x3530('0x24')]!=_0x4092a0['type'])continue;if(!_0xfc8a2d[_0x3530('0xcf')](_0x4092a0['item'])||_0xfc8a2d[_0x3530('0x6d')](_0x4092a0[_0x3530('0x1a')]))continue;if(!_0xfc8a2d[_0x3530('0xcf')](_0x2ae113[_0x3530('0x1a')])||_0xfc8a2d[_0x3530('0x6d')](_0x2ae113[_0x3530('0x1a')]))continue;if((_0x4a3dfb[_0xde95ad]['isAdded']||_0x4a3dfb[_0xde95ad][_0x3530('0xef')])&&_0x4a3dfb[_0xde95ad-0x1]['isRemoved'])_0x15f7a7=_0x4a3dfb[_0xde95ad],_0x40eaa3=_0x4a3dfb[_0xde95ad-0x1],_0x4b3e4a=_0xde95ad-0x1;else{if(!_0x4a3dfb[_0xde95ad][_0x3530('0xda')]||!_0x4a3dfb[_0xde95ad-0x1][_0x3530('0x13')]&&!_0x4a3dfb[_0xde95ad-0x1][_0x3530('0xef')])continue;_0x15f7a7=_0x4a3dfb[_0xde95ad-0x1],_0x40eaa3=_0x4a3dfb[_0xde95ad],_0x4b3e4a=_0xde95ad;}const _0x4d146f=_0x15f7a7['level']==_0x40eaa3[_0x3530('0x68')],_0x420ab9=Math[_0x3530('0xc7')](_0x15f7a7[_0x3530('0x68')])<Math[_0x3530('0xc7')](_0x40eaa3[_0x3530('0x68')])&&0x0==_0x40eaa3[_0x3530('0xe4')];(_0x4d146f||_0x420ab9)&&(_0x5cc7b7[_0x3530('0x6a')](_0x40eaa3['id'],_0x15f7a7['id']),_0x4a3dfb[_0x3530('0x8e')](_0x4b3e4a,0x1),_0xde95ad--,_0x15f7a7[_0x3530('0x13')]=!0x1);}for(let _0x2f8ade=0x0;_0x2f8ade<_0x4a3dfb[_0x3530('0x11b')];_0x2f8ade++)_0x5cc7b7['has'](_0x4a3dfb[_0x2f8ade][_0x3530('0x5b')])&&(_0x4a3dfb[_0x2f8ade][_0x3530('0x5b')]=_0x5cc7b7[_0x3530('0xc2')](_0x4a3dfb[_0x2f8ade][_0x3530('0x5b')]));}[_0x3530('0xa3')](_0x485b27){const _0x40f684=new Set(_0x485b27[_0x3530('0x1')](_0x58201c=>_0x58201c['id']));for(let _0x5bd269=0x0;_0x5bd269<_0x485b27[_0x3530('0x11b')];_0x5bd269++)_0x40f684[_0x3530('0xad')](_0x485b27[_0x5bd269][_0x3530('0x5b')])||0x0==_0x485b27[_0x5bd269][_0x3530('0xe4')]||(_0x485b27[_0x5bd269][_0x3530('0x71')]=!0x0);return _0x485b27[_0x3530('0x9')](_0x1ca741=>!_0x1ca741[_0x3530('0x71')]);}['_markMismatchedRemovedTags'](_0x5ab350){const _0x12bac7=new Set();for(let _0x473b34=0x0;_0x473b34<_0x5ab350['length'];_0x473b34++){if(_0x12bac7[_0x3530('0xad')](_0x5ab350[_0x473b34]['id'])&&_0x5ab350[_0x473b34]['isRemoved']&&(_0x5ab350[_0x473b34]['isIncorrect']=!0x0),_0x5ab350[_0x473b34][_0x3530('0x71')])continue;if(0x0==_0x5ab350[_0x473b34][_0x3530('0xe4')])continue;if('elementStart'!=_0x5ab350[_0x473b34]['type'])continue;if(null==_0x5ab350[_0x473b34]['pairId'])continue;let _0x31ee50=_0x473b34+0x1,_0x23c3e4=0x0;for(;_0x5ab350[_0x31ee50]['id']!=_0x5ab350[_0x473b34]['pairId'];)_0x3530('0xa2')==_0x5ab350[_0x31ee50][_0x3530('0x24')]?_0x23c3e4++:_0x3530('0x47')==_0x5ab350[_0x31ee50][_0x3530('0x24')]&&_0x23c3e4--,_0x31ee50++;if(0x0!=_0x23c3e4){if(_0x5ab350[_0x473b34][_0x3530('0xda')])_0x5ab350[_0x473b34][_0x3530('0x71')]=!0x0;else for(;_0x31ee50!=_0x473b34;)_0x5ab350[_0x31ee50][_0x3530('0xda')]&&0x0!=_0x5ab350[_0x31ee50][_0x3530('0xe4')]&&(_0x5ab350[_0x31ee50][_0x3530('0x71')]=!0x0,_0x12bac7[_0x3530('0xf2')](_0x5ab350[_0x31ee50][_0x3530('0x5b')])),_0x31ee50--;}}return _0x5ab350[_0x3530('0x9')](_0x3a307a=>!_0x3a307a['isIncorrect']);}[_0x3530('0xd8')](_0x400532){const _0x17fb6f=this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0x10c')];for(let _0x3b8e5c=0x0;_0x3b8e5c<_0x400532[_0x3530('0x11b')];_0x3b8e5c++){if(!(_0x400532[_0x3b8e5c][_0x3530('0x13')]||_0x400532[_0x3b8e5c][_0x3530('0xef')]||_0x400532[_0x3b8e5c][_0x3530('0xda')]||_0x400532[_0x3b8e5c]['isRemoveSuggestion']))continue;if(0x0==_0x400532[_0x3b8e5c][_0x3530('0xe4')])continue;const _0x228b61=_0x400532[_0x3b8e5c]['item'];_0x17fb6f['isBlock'](_0x228b61)||_0x17fb6f[_0x3530('0x6d')](_0x228b61)||(_0x400532[_0x3b8e5c][_0x3530('0x13')]&&delete _0x400532[_0x3b8e5c][_0x3530('0x13')],_0x400532[_0x3b8e5c]['isAddSuggestion']&&delete _0x400532[_0x3b8e5c][_0x3530('0xef')],_0x400532[_0x3b8e5c][_0x3530('0xa1')]&&delete _0x400532[_0x3b8e5c][_0x3530('0xa1')],_0x400532[_0x3b8e5c]['isRemoved']&&(_0x400532[_0x3b8e5c][_0x3530('0x71')]=!0x0));}return _0x400532[_0x3530('0x9')](_0x1ee63d=>!_0x1ee63d['isIncorrect']);}[_0x3530('0xb')](_0x4a05fa,_0x46f3e1,_0x5bdd82){const _0x5b5955=new _0x4979a3(),_0x1146ed=[],_0x5d0fb3=new Map(),_0x2a8330=this[_0x3530('0xa0')][_0x3530('0x3f')],_0x2e3a8e=_0x2a8330[_0x3530('0x10c')],_0x2d95dc=[_0x5b5955],_0x1acd9e={},_0x1d5278={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x45aba0=null;const _0x370154=[0x0];for(let _0x169d76=0x0;_0x169d76<_0x4a05fa[_0x3530('0x11b')];_0x169d76++){let _0x2f0beb,_0x3a89bc;if('elementStart'===_0x4a05fa[_0x169d76][_0x3530('0x24')]){_0x2f0beb=_0x2a8330['createPositionFromPath'](_0x5b5955,_0x370154);const _0x159a1a=new _0x3a563a(_0x4a05fa[_0x169d76]['item'][_0x3530('0xd5')],_0x4a05fa[_0x169d76]['item'][_0x3530('0x41')]());_0x2d95dc[0x0][_0x3530('0xd4')](_0x159a1a),_0x370154['push'](0x0),_0x2d95dc[_0x3530('0x1e')](_0x159a1a),_0x3a89bc=_0x2a8330[_0x3530('0x2a')](_0x5b5955,_0x370154),_0x45aba0=null;}else{if(_0x3530('0x47')===_0x4a05fa[_0x169d76][_0x3530('0x24')])_0x2d95dc[_0x3530('0xa5')](),_0x2f0beb=_0x2a8330['createPositionFromPath'](_0x5b5955,_0x370154),_0x370154['pop'](),_0x370154[_0x370154[_0x3530('0x11b')]-0x1]++,_0x3a89bc=_0x2a8330['createPositionFromPath'](_0x5b5955,_0x370154),_0x45aba0=null;else{if(_0x2f0beb=_0x2a8330['createPositionFromPath'](_0x5b5955,_0x370154),_0x45aba0&&_0x377393(_0x45aba0,_0x4a05fa[_0x169d76][_0x3530('0x1a')]))_0x45aba0[_0x3530('0x4d')]+=_0x4a05fa[_0x169d76][_0x3530('0x1a')]['data'];else{const _0x5a33b8=new _0x2a94dd(_0x4a05fa[_0x169d76]['item'][_0x3530('0x19')],_0x4a05fa[_0x169d76][_0x3530('0x1a')][_0x3530('0x41')]());_0x2d95dc[0x0][_0x3530('0xd4')](_0x5a33b8),_0x45aba0=_0x5a33b8;}_0x370154[_0x370154[_0x3530('0x11b')]-0x1]+=_0x4a05fa[_0x169d76][_0x3530('0x1a')][_0x3530('0x5')],_0x3a89bc=_0x2a8330['createPositionFromPath'](_0x5b5955,_0x370154);}}for(const _0x1514ea of _0x4a05fa[_0x169d76][_0x3530('0x77')])_0x5d0fb3[_0x3530('0x6a')](_0x1514ea,{'start':_0x2f0beb,'end':null});_0x4944cd(_0x3530('0xa1'),_0x169d76,_0x2f0beb,_0x3a89bc),_0x4944cd(_0x3530('0xef'),_0x169d76,_0x2f0beb,_0x3a89bc),_0x4944cd(_0x3530('0xda'),_0x169d76,_0x2f0beb,_0x3a89bc),_0x4944cd(_0x3530('0x13'),_0x169d76,_0x2f0beb,_0x3a89bc);for(const _0x419a05 of _0x4a05fa[_0x169d76][_0x3530('0x10f')]){_0x5d0fb3[_0x3530('0xc2')](_0x419a05)['end']=_0x3a89bc;}}for(const [_0x5cfd73,_0x41f2b0]of _0x5d0fb3){const _0x29e913=this['editor'][_0x3530('0x3f')][_0x3530('0xde')](_0x41f2b0['start'],_0x41f2b0['end']);_0x5b5955['markers']['set'](_0x5cfd73,_0x29e913);}return _0x1146ed[_0x3530('0xb2')]((_0x17b05f,_0x25aeee)=>{const _0x38bb52=_0x5b5955[_0x3530('0x107')][_0x3530('0xc2')]('revision:'+_0x17b05f['id']),_0x5eb7de=_0x5b5955[_0x3530('0x107')][_0x3530('0xc2')]('revision:'+_0x25aeee['id']);return _0x38bb52[_0x3530('0xd2')][_0x3530('0x10')](_0x5eb7de[_0x3530('0xd2')])?-0x1:_0x38bb52[_0x3530('0xd2')][_0x3530('0x18')](_0x5eb7de[_0x3530('0xd2')])?0x1:_0x38bb52[_0x3530('0x7a')][_0x3530('0x10')](_0x5eb7de[_0x3530('0x7a')])?-0x1:_0x38bb52['end']['isAfter'](_0x5eb7de['end'])?0x1:_0x3530('0xf2')===_0x17b05f[_0x3530('0x24')]?-0x1:0x1;}),{'root':_0x5b5955,'changes':_0x1146ed};function _0x4944cd(_0x15796b,_0x3f6ad4,_0x16108f,_0x5e9420){const _0x2b6a05=!!_0x4a05fa[_0x3f6ad4][_0x15796b],_0x2b056f=_0x2b6a05?_0x4a05fa[_0x3f6ad4][_0x15796b]['userId']:null,_0x5e7e6e=_0x3f6ad4===_0x4a05fa[_0x3530('0x11b')]-0x1,_0x515b17=_0x1d5278[_0x15796b][0x0],_0x236181=_0x2e3a8e[_0x3530('0x62')](_0x4a05fa[_0x3f6ad4][_0x3530('0x1a')]);!_0x1acd9e[_0x15796b]&&_0x2b6a05?_0x1acd9e[_0x15796b]={'start':_0x16108f,'tapeItem':_0x4a05fa[_0x3f6ad4],'userId':_0x2b056f,'type':_0x15796b}:_0x1acd9e[_0x15796b]&&!_0x2b6a05?(_0x1acd9e[_0x15796b][_0x3530('0x7a')]=_0x16108f,_0x36afe4(_0x1acd9e[_0x15796b]),_0x1acd9e[_0x15796b]=null):_0x1acd9e[_0x15796b]&&_0x2b6a05&&_0x1acd9e[_0x15796b][_0x3530('0x11f')]!==_0x2b056f&&(_0x1acd9e[_0x15796b][_0x3530('0x7a')]=_0x16108f,_0x515b17&&_0x515b17[_0x3530('0x11f')]===_0x1acd9e[_0x15796b]['userId']||_0x36afe4(_0x1acd9e[_0x15796b]),_0x1acd9e[_0x15796b]={'start':_0x16108f,'tapeItem':_0x4a05fa[_0x3f6ad4],'userId':_0x2b056f,'type':_0x15796b}),_0x1acd9e[_0x15796b]&&_0x236181&&(_0x3530('0xa2')!==_0x4a05fa[_0x3f6ad4]['type']||_0x515b17&&_0x515b17[_0x3530('0x11f')]===_0x2b056f||_0x1d5278[_0x15796b][_0x3530('0x1e')]({'userId':_0x2b056f,'object':_0x4a05fa[_0x3f6ad4]['item'],'change':_0x1acd9e[_0x15796b]}),_0x3530('0x47')===_0x4a05fa[_0x3f6ad4][_0x3530('0x24')]&&_0x515b17&&_0x515b17[_0x3530('0xea')]===_0x4a05fa[_0x3f6ad4][_0x3530('0x1a')]&&(_0x1d5278[_0x15796b][_0x3530('0xa5')](),_0x1acd9e[_0x15796b]=_0x515b17[_0x3530('0x11e')])),_0x1acd9e[_0x15796b]&&_0x5e7e6e&&(_0x1acd9e[_0x15796b]['end']=_0x5e9420,_0x36afe4(_0x1acd9e[_0x15796b]),_0x1acd9e[_0x15796b]=null);}function _0x36afe4({start:_0x3ca2f0,end:_0x3f6143,tapeItem:_0x3988f2,userId:_0x4ff057,type:_0x2740ce}){const _0x5961b4=_0x3988f2[_0x3530('0x1a')],_0x5abb0b=_0x2a8330[_0x3530('0x10c')][_0x3530('0xcf')](_0x5961b4)&&!_0x2a8330[_0x3530('0x10c')]['isLimit'](_0x5961b4),_0x1bc9f4=_0x3ca2f0[_0x3530('0x110')]==_0x3f6143['parent']&&_0x3f6143['isAtStart'];if(_0x5abb0b&&_0x1bc9f4)return;const _0x5ee027=_0x2a8330['createRange'](_0x3ca2f0,_0x3f6143),_0xc89338=_0x46f3e1[_0x3530('0xc2')](_0x4ff057),_0x520f49=new _0x793295({'author':_0xc89338,'type':_0x3530('0x13')==_0x2740ce||_0x3530('0xef')==_0x2740ce?'add':_0x3530('0x9c'),'data':{'isSuggestion':_0x3530('0xef')==_0x2740ce||_0x3530('0xa1')==_0x2740ce},'createdAt':new Date(),'rootName':_0x5bdd82});_0x1146ed[_0x3530('0x29')](_0x520f49),_0x5b5955['markers'][_0x3530('0x6a')](_0x3530('0x8a')+_0x520f49['id'],_0x5ee027);}function _0x377393(_0x4eba6f,_0x35ae63){const _0x161f1d=_0x4eba6f['getAttributes'](),_0x3c9696=_0x35ae63[_0x3530('0x41')]();for(const _0x4c1d40 of _0x161f1d){if(_0x4c1d40[0x1]!==_0x35ae63['getAttribute'](_0x4c1d40[0x0]))return!0x1;_0x3c9696[_0x3530('0xc6')]();}return _0x3c9696[_0x3530('0xc6')]()[_0x3530('0x45')];}}[_0x3530('0xb5')](){this[_0x3530('0xa0')][_0x3530('0x102')][_0x3530('0x4c')](_0x3530('0x7'))[_0x3530('0x88')]({'view':_0x3530('0x54')}),this[_0x3530('0xa0')][_0x3530('0x102')]['for'](_0x3530('0xa4'))['markerToHighlight']({'model':_0x3530('0x54'),'view':_0x5ef9ff=>{const _0xf83308=_0x5ef9ff['markerName'][_0x3530('0x89')](':')[0x1],_0x1ffc10=this[_0x3530('0xf3')](_0xf83308);if(!_0x1ffc10)return null;const _0x273120=_0x3530('0xf2')==_0x1ffc10['type']?_0x3530('0x55'):_0x3530('0x3a'),_0x2b4304=[_0x3530('0x5c'),_0x3530('0x93')+_0x273120];return _0x1ffc10[_0x3530('0x19')][_0x3530('0x3b')]&&_0x2b4304[_0x3530('0x29')](_0x3530('0x93')+_0x273120+_0x3530('0x52')),this[_0x3530('0x117')]==_0x1ffc10&&_0x2b4304[_0x3530('0x29')](_0x3530('0xbc')),{'classes':_0x2b4304,'attributes':{'data-change-id':_0xf83308}};}}),this[_0x3530('0xa0')][_0x3530('0x102')][_0x3530('0x4c')](_0x3530('0x7'))[_0x3530('0xf2')](_0xf0fb3f=>{_0xf0fb3f['on'](_0x3530('0x27'),(_0x5dc271,_0x43a8fa,_0x310b3e)=>{const _0x30f6c3=_0x43a8fa[_0x3530('0x70')][_0x3530('0x72')](0x0);if(!_0x30f6c3||!_0x30f6c3['is'](_0x3530('0x60'),_0x3530('0x85')))return;if(!_0x310b3e[_0x3530('0xbe')]['consume'](_0x30f6c3,{'attributes':[_0x3530('0x7e'),_0x3530('0x95')]}))return;const _0x187c8c=_0x43a8fa['modelRange']['start']['nodeAfter'];_0x310b3e['writer'][_0x3530('0xf1')](_0x3530('0x7e'),_0x30f6c3['getAttribute'](_0x3530('0x7e')),_0x187c8c),_0x310b3e[_0x3530('0xf')]['setAttribute'](_0x3530('0x95'),_0x30f6c3['getAttribute'](_0x3530('0x95')),_0x187c8c);},{'priority':_0x3530('0xe')});}),this['editor'][_0x3530('0x102')]['for'](_0x3530('0x7'))['add'](_0x1c9093=>{_0x1c9093['on'](_0x3530('0x60'),(_0x30a19f,_0x21f578,_0x2e3912)=>{if(!_0x2e3912['consumable'][_0x3530('0x4a')](_0x21f578[_0x3530('0x70')],{'attributes':['vid_start',_0x3530('0x95')]}))return;if(_0x21f578['modelRange'][_0x3530('0xe3')])return;const _0x416b1b=_0x21f578[_0x3530('0x6f')][_0x3530('0xd2')][_0x3530('0x110')];_0x416b1b[_0x3530('0x8c')]('vid_start')||_0x416b1b[_0x3530('0x8c')]('vid')||(_0x2e3912[_0x3530('0xf')][_0x3530('0xf1')](_0x3530('0x7e'),_0x21f578[_0x3530('0x70')][_0x3530('0xe0')](_0x3530('0x7e')),_0x416b1b),_0x2e3912[_0x3530('0xf')][_0x3530('0xf1')]('vid_end',_0x21f578[_0x3530('0x70')][_0x3530('0xe0')]('vid_end'),_0x416b1b));},{'priority':_0x3530('0xe')});}),this[_0x3530('0xa0')][_0x3530('0x102')]['for'](_0x3530('0x7'))[_0x3530('0x101')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x350b36=>_0x350b36[_0x3530('0xe0')](_0x3530('0xc4'))}}),this['editor'][_0x3530('0x3f')]['schema']['on'](_0x3530('0x81'),(_0x1d136c,[,_0x54a56b])=>{[_0x3530('0x7e'),'vid_end',_0x3530('0xc4')][_0x3530('0x4')](_0x54a56b)&&(_0x1d136c[_0x3530('0xfd')]=!0x0,_0x1d136c[_0x3530('0x31')]());},{'priority':'highest'}),this[_0x3530('0xa0')][_0x3530('0x102')][_0x3530('0x4c')](_0x3530('0x49'))[_0x3530('0xf2')](_0x4782ca=>{_0x4782ca['on']('attribute:vid',(_0x21111d,_0xccfdb2,_0x14692b)=>{if('\x20'!=_0xccfdb2[_0x3530('0x1a')][_0x3530('0x19')]||_0xccfdb2['item'][_0x3530('0xa8')][_0x3530('0x30')]>0x1)return;if(!_0x14692b['consumable']['consume'](_0xccfdb2[_0x3530('0x1a')],_0x21111d[_0x3530('0xd5')]))return;const _0x4333dd=_0x14692b['writer'],_0x1fd5e8=_0x14692b[_0x3530('0xeb')][_0x3530('0x74')](_0xccfdb2['range']);_0x4333dd[_0x3530('0x113')](_0x1fd5e8,_0x4333dd[_0x3530('0x11a')]('span'));});}),this[_0x3530('0xa0')]['conversion']['for'](_0x3530('0x49'))[_0x3530('0x116')]({'model':_0x3530('0x54')}),this['editor'][_0x3530('0xb6')][_0x3530('0x2e')]['on'](_0x3530('0xe6'),function(_0xb8fde7){const _0x5cf19f=_0xb8fde7['plugins'][_0x3530('0xc2')]('RevisionViewer');return(_0x535ea7,_0x475239,_0x2caf52)=>{const _0x3775a4=_0x475239[_0x3530('0x5f')][_0x3530('0x89')](':')[0x1],_0x4305ee=_0x5cf19f[_0x3530('0xf3')](_0x3775a4);if(!_0x4305ee)return null;const _0x2ba6e5='add'==_0x4305ee[_0x3530('0x24')]?_0x3530('0x89'):_0x3530('0xff');if(!_0x2caf52['consumable'][_0x3530('0x4e')](_0x475239['markerRange'],_0x535ea7['name']))return;const _0x22f64f=_0x475239[_0x3530('0x53')][_0x3530('0x99')](),_0x2ae8f4=_0x475239[_0x3530('0x53')][_0x3530('0xd2')],_0x1be173=_0xb8fde7[_0x3530('0x3f')][_0x3530('0x10c')];let _0x437355=null,_0x5f53bc=null,_0x144006=!0x1,_0x2454f8=!0x1;for(const _0x344063 of _0x22f64f){const _0xe69e3c=_0x344063['item'];_0x144006=_0x144006||_0x1be173['isContent'](_0xe69e3c);const _0x5eb0f7=_0x2caf52['mapper'][_0x3530('0xd1')](_0xe69e3c);if(_0x5eb0f7&&_0x5eb0f7[_0x3530('0xee')](_0x3530('0xd9')))return;_0x3530('0x47')==_0x344063[_0x3530('0x24')]&&(_0x1be173[_0x3530('0xcf')](_0xe69e3c)&&!_0x1be173['isLimit'](_0xe69e3c)&&(_0xe69e3c[_0x3530('0x36')]||_0x2ae8f4[_0x3530('0x105')]?_0x437355&&_0x437355['parent']==_0xe69e3c||(_0x437355=_0xe69e3c,_0x57ba87(_0x344063[_0x3530('0x22')]),_0x2454f8=!0x0):_0x5f53bc=_0x5f53bc||_0x344063[_0x3530('0x22')]));}function _0x57ba87(_0x1f772b){const _0x1ad502=_0x2caf52[_0x3530('0xf')][_0x3530('0xb3')]('span',{'class':'ck-suggestion-marker-'+_0x2ba6e5}),_0x26f98d=_0x2caf52[_0x3530('0xeb')]['toViewPosition'](_0x1f772b);_0x4305ee[_0x3530('0x19')]['isSuggestion']&&_0x2caf52[_0x3530('0xf')][_0x3530('0x42')](_0x3530('0x93')+_0x2ba6e5+_0x3530('0x52'),_0x1ad502),_0x5cf19f[_0x3530('0x117')]==_0x4305ee&&_0x2caf52[_0x3530('0xf')][_0x3530('0x42')](_0x3530('0xbc'),_0x1ad502),_0x2caf52['writer']['insert'](_0x26f98d,_0x1ad502),_0x2caf52[_0x3530('0xeb')][_0x3530('0x78')](_0x1ad502,_0x475239[_0x3530('0x5f')]);}_0x144006||_0x2454f8||!_0x5f53bc||_0x57ba87(_0x5f53bc);};}(this['editor']),{'priority':_0x3530('0x59')}),this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2e')]['on']('removeMarker:revision',(_0x1d8d99,_0x441097,_0x4fb7ff)=>{const _0xd3c2bd=_0x4fb7ff[_0x3530('0xeb')][_0x3530('0x56')](_0x441097[_0x3530('0x5f')]);if(_0xd3c2bd)for(const _0x2ea36b of _0xd3c2bd)(_0x2ea36b[_0x3530('0x1d')](_0x3530('0x6'))||_0x2ea36b['hasClass'](_0x3530('0x15')))&&(_0x4fb7ff[_0x3530('0xeb')]['unbindElementFromMarkerName'](_0x2ea36b,_0x441097[_0x3530('0x5f')]),_0x4fb7ff[_0x3530('0xf')][_0x3530('0x9c')](_0x2ea36b));},{'priority':_0x3530('0x59')}),this[_0x3530('0xa0')][_0x3530('0xb6')]['downcastDispatcher']['on']('addMarker:revision',(_0x2b2399,_0x587f43,_0x42d5ad)=>{const _0x440e12=_0x587f43[_0x3530('0x5f')][_0x3530('0x89')](':')[0x1],_0x4a3c65=this[_0x3530('0xf3')](_0x440e12);if(!_0x4a3c65)return null;const _0x25fde9=_0x3530('0xf2')==_0x4a3c65[_0x3530('0x24')]?_0x3530('0x89'):_0x3530('0xff');if(_0x42d5ad['consumable'][_0x3530('0x4e')](_0x587f43['markerRange'],_0x2b2399[_0x3530('0xd5')]))for(const _0x1a466e of _0x587f43[_0x3530('0x53')]['getItems']()){if(!_0x1a466e['is'](_0x3530('0x60'),_0x3530('0x2c')))continue;const _0x1de424=_0x42d5ad[_0x3530('0xf')][_0x3530('0xb3')]('span',{'class':_0x3530('0x93')+_0x25fde9}),_0x3150e0=_0x42d5ad['mapper'][_0x3530('0x108')](this['editor'][_0x3530('0x3f')]['createPositionBefore'](_0x1a466e));_0x4a3c65[_0x3530('0x19')][_0x3530('0x3b')]&&_0x42d5ad['writer'][_0x3530('0x42')](_0x3530('0x93')+_0x25fde9+_0x3530('0x52'),_0x1de424),this[_0x3530('0x117')]==_0x4a3c65&&_0x42d5ad['writer']['addClass'](_0x3530('0xbc'),_0x1de424),_0x42d5ad[_0x3530('0xf')]['insert'](_0x3150e0,_0x1de424),_0x42d5ad[_0x3530('0xeb')][_0x3530('0x78')](_0x1de424,_0x587f43[_0x3530('0x5f')]);}},{'priority':_0x3530('0x59')}),this['editor']['model'][_0x3530('0xdf')]['on'](_0x3530('0x11e'),()=>{this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2d')][_0x3530('0x11e')](_0x283757=>{for(const _0xbb9966 of this['editor'][_0x3530('0x3f')][_0x3530('0xdf')][_0x3530('0x103')]()){const _0x40cb6c=this['editor'][_0x3530('0x3f')][_0x3530('0xdf')]['getRoot'](_0xbb9966),_0x396400=this[_0x3530('0xa0')][_0x3530('0xb6')]['view'][_0x3530('0xdf')]['getRoot'](_0xbb9966);if(_0x396400){const _0x384a30=_0x40cb6c[_0x3530('0xe0')]('revisionHistoryAttachChange');if(_0x283757['removeAttribute']('data-change-id',_0x396400),_0x283757['removeClass'](_0x3530('0xc9'),_0x396400),_0x283757[_0x3530('0x25')]('ck-revision-history-root-remove',_0x396400),_0x283757['removeClass'](_0x3530('0x10a'),_0x396400),_0x384a30){const _0x5aeceb=this[_0x3530('0xf3')](_0x384a30);if(!_0x5aeceb)return null;_0x283757[_0x3530('0xf1')]('data-change-id',_0x384a30,_0x396400),_0x283757[_0x3530('0x42')](_0x3530('0x6b')+_0x5aeceb[_0x3530('0x24')],_0x396400),this[_0x3530('0x117')]==_0x5aeceb&&_0x283757[_0x3530('0x42')]('ck-revision-history-root--active',_0x396400);}}}});}),this[_0x3530('0xa0')][_0x3530('0x102')]['for'](_0x3530('0x7'))[_0x3530('0x88')]({'view':'comment','model':_0x54feae=>_0x3530('0xf6')+_0x54feae,'converterPriority':_0x3530('0xe8')}),this['editor'][_0x3530('0x102')]['for']('upcast')[_0x3530('0x88')]({'view':_0x3530('0x64'),'model':_0x457601=>_0x3530('0xbd')+_0x457601,'converterPriority':_0x3530('0xe8')}),this[_0x3530('0xa0')][_0x3530('0x102')]['for'](_0x3530('0x49'))[_0x3530('0x116')]({'model':'revision-suggestion','view':_0x346fa9=>({'name':_0x3530('0x2b')+_0x346fa9,'group':_0x3530('0x16')}),'converterPriority':_0x3530('0xe8')}),this[_0x3530('0xa0')][_0x3530('0x102')][_0x3530('0x4c')](_0x3530('0xa4'))['markerToHighlight']({'model':_0x3530('0x16'),'view':_0x28c2f9=>{const _0x49663b=_0x28c2f9[_0x3530('0x5f')][_0x3530('0x89')](':')[0x1];return _0x3530('0x55')!=_0x49663b&&_0x3530('0x3a')!=_0x49663b?null:{'classes':['ck-suggestion-preview-marker',_0x3530('0x73')+_0x49663b]};}}),this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2e')]['on'](_0x3530('0x114'),et(this[_0x3530('0xa0')],_0x3530('0xff')),{'priority':_0x3530('0x59')}),this[_0x3530('0xa0')][_0x3530('0xb6')]['downcastDispatcher']['on'](_0x3530('0xf8'),et(this[_0x3530('0xa0')],_0x3530('0x89')),{'priority':'high'}),this['editor'][_0x3530('0xb6')][_0x3530('0x2e')]['on'](_0x3530('0x112'),(_0x145525,_0x389637,_0x44dc22)=>{const _0x354e63=_0x44dc22[_0x3530('0xeb')][_0x3530('0x56')](_0x389637[_0x3530('0x5f')]);if(_0x354e63)for(const _0x5ec3e1 of _0x354e63)_0x5ec3e1['is'](_0x3530('0x23'))&&(_0x44dc22['mapper'][_0x3530('0xf0')](_0x5ec3e1,_0x389637[_0x3530('0x5f')]),_0x44dc22[_0x3530('0xf')][_0x3530('0x9c')](_0x5ec3e1));},{'priority':'high'});}['_getChangeFromId'](_0x28d880){return this[_0x3530('0xc3')][_0x3530('0xc2')](_0x28d880);}[_0x3530('0xf4')](_0x5ebd09){return this[_0x3530('0xab')]&&this['_changeView'][_0x3530('0x104')](),this['_changeView']=new _0x4de4eb(this[_0x3530('0xa0')]['locale'],_0x5ebd09),this['_changeView'];}['_initInteractions'](){this['editor']['model'][_0x3530('0xdf')][_0x3530('0x9b')]['observeMarkers'](_0x3530('0x54')),this['on']('change:activeView',(_0x236b1f,_0x1c22b0,_0x35d372,_0x2a2ea9)=>{_0x2a2ea9&&this[_0x3530('0xb1')][_0x3530('0x9c')](_0x2a2ea9),_0x35d372&&(this[_0x3530('0xb1')][_0x3530('0xf2')]({'view':_0x35d372,'stackId':_0x3530('0xfa'),'position':{'target':()=>{const _0x1cbc30=this[_0x3530('0xa0')][_0x3530('0xb6')],_0x5a5bc1=this['_getChangeFromId'](_0x35d372[_0x3530('0x20')]);let _0x35724b;if(_0x5a5bc1[_0x3530('0x19')][_0x3530('0xbf')]){const _0xf8a75=_0x1cbc30[_0x3530('0x2d')][_0x3530('0x84')](_0x5a5bc1[_0x3530('0x40')]);_0x35724b=Array['from'](_0xf8a75[_0x3530('0x120')]());}else{const _0x120eb7=this[_0x3530('0xa0')][_0x3530('0x3f')]['markers'][_0x3530('0xc2')]('revision:'+_0x35d372['changeId']);_0x35724b=Array[_0x3530('0x14')](_0x1cbc30['mapper'][_0x3530('0x56')](_0x120eb7[_0x3530('0xd5')]))['map'](_0x341e7f=>_0x1cbc30[_0x3530('0x2d')][_0x3530('0x21')]['mapViewToDom'](_0x341e7f))[_0x3530('0x1')](_0x413a05=>Array[_0x3530('0x14')](_0x413a05[_0x3530('0x120')]()))['flat']();}if(!this['_activeViewTarget'])return _0x35724b[0x0];return _0x35724b[_0x3530('0xd3')](_0x2f43cc=>_0x2f43cc[_0x3530('0xaf')]-0x3<=this[_0x3530('0x11')]['y']&&_0x2f43cc['bottom']+0x3>=this[_0x3530('0x11')]['y']&&_0x2f43cc[_0x3530('0xfe')]-0x3<=this[_0x3530('0x11')]['x']&&_0x2f43cc[_0x3530('0x10b')]+0x3>=this[_0x3530('0x11')]['x'])||_0x35724b[0x0];}}}),this[_0x3530('0xb1')][_0x3530('0x80')](_0x3530('0xfa')));}),this['on'](_0x3530('0x28'),(_0x520e2f,_0x309680,_0x2d820b,_0xc6083)=>{this['activeView']=_0x2d820b?this[_0x3530('0xf4')](_0x2d820b):null,this[_0x3530('0xa0')][_0x3530('0x3f')]['change'](()=>{const _0x21ce49=this['editor'][_0x3530('0xb6')];_0xc6083&&(_0xc6083[_0x3530('0x19')][_0x3530('0xbf')]?_0x21ce49[_0x3530('0x2d')][_0x3530('0x11e')](_0x5ec1b5=>{_0x5ec1b5[_0x3530('0x25')]('ck-revision-history-root--active',_0x21ce49[_0x3530('0x2d')][_0x3530('0xdf')][_0x3530('0xe5')](_0xc6083[_0x3530('0x40')]));}):_0x21ce49[_0x3530('0x6e')](_0x3530('0x8a')+_0xc6083['id'])),_0x2d820b&&(_0x2d820b[_0x3530('0x19')][_0x3530('0xbf')]?_0x21ce49[_0x3530('0x2d')][_0x3530('0x11e')](_0xb4e3f7=>{_0xb4e3f7[_0x3530('0x42')](_0x3530('0x10a'),_0x21ce49['view']['document'][_0x3530('0xe5')](_0x2d820b[_0x3530('0x40')]));}):_0x21ce49['reconvertMarker'](_0x3530('0x8a')+_0x2d820b['id']));});}),this[_0x3530('0xba')](this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2d')]['document'],_0x3530('0x7c'),(_0x265a4c,_0x543d58)=>{if(this[_0x3530('0x117')])return;const _0x7dcbcd=this[_0x3530('0x17')](_0x543d58['target']),_0x2198f9=this[_0x3530('0xc3')][_0x3530('0xc2')](_0x7dcbcd);_0x2198f9?(this[_0x3530('0x11')]={'x':_0x543d58['domEvent']['x'],'y':_0x543d58['domEvent']['y']},this['activeView']=this[_0x3530('0xf4')](_0x2198f9)):(this[_0x3530('0x11')]=null,this[_0x3530('0x96')]=null);}),this['listenTo'](this['editor'][_0x3530('0xb6')]['view'][_0x3530('0xdf')],_0x3530('0xd6'),(_0x443135,_0x328c2d)=>{const _0x21f942=this['_findChangeIdFromDomTarget'](_0x328c2d[_0x3530('0x39')]),_0x4a2bac=this['_changeIdToChange'][_0x3530('0xc2')](_0x21f942);_0x4a2bac?(this[_0x3530('0x11')]={'x':_0x328c2d[_0x3530('0xb8')]['x'],'y':_0x328c2d['domEvent']['y']},_0x4a2bac===this['activeChange']?this[_0x3530('0xb1')]['updatePosition']():this[_0x3530('0x117')]=_0x4a2bac):(this[_0x3530('0x11')]=null,this[_0x3530('0x117')]=null);});}['_findChangeIdFromDomTarget'](_0x2ab6de){do{const _0x42c67a=_0x2ab6de[_0x3530('0xe0')]('data-change-id');if(_0x42c67a)return _0x42c67a;_0x2ab6de=_0x2ab6de['parent'];}while(_0x2ab6de);return null;}[_0x3530('0x57')](){this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0x11e')](_0xfbc2dc=>{for(const _0x338e2f of this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0x107')])_0xfbc2dc[_0x3530('0x118')](_0x338e2f);});}}function et(_0x404b22,_0x29f2df){return(_0x1de3c5,_0x49fc57,_0x4af3d0)=>{if(!_0x4af3d0[_0x3530('0xbe')][_0x3530('0x4e')](_0x49fc57[_0x3530('0x53')],_0x1de3c5['name']))return;const _0x5f559a=_0x49fc57[_0x3530('0x53')][_0x3530('0x99')](),_0x412c25=_0x49fc57['markerRange'][_0x3530('0xd2')],_0x4fcc46=_0x404b22[_0x3530('0x3f')][_0x3530('0x10c')];let _0x2b4713=null,_0x3d0d62=null,_0x202346=!0x1,_0x196fad=!0x1;for(const _0x381f91 of _0x5f559a){const _0x5bf403=_0x381f91['item'];_0x202346=_0x202346||_0x4fcc46[_0x3530('0x3c')](_0x5bf403);const _0x4270e7=_0x4af3d0[_0x3530('0xeb')]['toViewElement'](_0x5bf403);if(_0x4270e7&&_0x4270e7['getCustomProperty'](_0x3530('0xd9')))return;_0x3530('0x47')==_0x381f91[_0x3530('0x24')]&&(_0x4fcc46['isBlock'](_0x5bf403)&&!_0x4fcc46[_0x3530('0x6d')](_0x5bf403)&&(_0x5bf403['nextSibling']||_0x412c25[_0x3530('0x105')]?_0x2b4713&&_0x2b4713['parent']==_0x5bf403||(_0x2b4713=_0x5bf403,_0x34c587(_0x381f91[_0x3530('0x22')]),_0x196fad=!0x0):_0x3d0d62=_0x3d0d62||_0x381f91['previousPosition']));}function _0x34c587(_0x1940c8){const _0x120604=_0x4af3d0[_0x3530('0xeb')][_0x3530('0x108')](_0x1940c8),_0x3a4013=_0x4af3d0[_0x3530('0xf')][_0x3530('0xb3')](_0x3530('0x61'),{'class':_0x3530('0x73')+_0x29f2df});_0x4af3d0['writer'][_0x3530('0x7f')](_0x120604,_0x3a4013),_0x4af3d0['mapper']['bindElementToMarker'](_0x3a4013,_0x49fc57['markerName']);}_0x202346||_0x196fad||!_0x3d0d62||_0x34c587(_0x3d0d62);};}export class RestoreRevisionCommand extends _0x346961{constructor(_0x5cba7a){super(_0x5cba7a);const _0xa6bc1c=_0x5cba7a[_0x3530('0x97')][_0x3530('0xc2')](d);this[_0x3530('0xfc')]=!0x1,this[_0x3530('0xba')](_0xa6bc1c,_0x3530('0x9f'),()=>this['refresh']()),this[_0x3530('0xba')](_0xa6bc1c,_0x3530('0xed'),()=>this[_0x3530('0x33')]());}[_0x3530('0x76')](){const _0x54a93b=this[_0x3530('0xa0')],_0x80ef95=_0x54a93b[_0x3530('0x97')][_0x3530('0xc2')](d),_0x1ac6fe=_0x80ef95[_0x3530('0xcd')]?_0x80ef95['diff'][_0x3530('0xc5')]:null;_0x54a93b[_0x3530('0x3e')][_0x3530('0xc2')](_0x3530('0x5e'))['restoreRevisionCallback'](_0x1ac6fe);}['refresh'](){const {isReady:_0x100647,isEnabled:_0x3a3ae0}=this[_0x3530('0xa0')][_0x3530('0x97')][_0x3530('0xc2')](d);this[_0x3530('0xdb')]=_0x100647&&_0x3a3ae0;}}export class ShowChangeCommand extends _0x346961{constructor(_0x432a0c,{direction:_0x3d2597}){super(_0x432a0c);const _0x47c04f=_0x432a0c[_0x3530('0x97')]['get'](d);this[_0x3530('0xfc')]=!0x1,this[_0x3530('0x8f')]=_0x3530('0x3')===_0x3d2597?0x1:-0x1,this[_0x3530('0xba')](_0x47c04f,_0x3530('0x9f'),()=>this[_0x3530('0x33')]()),this['listenTo'](_0x47c04f,_0x3530('0xed'),()=>this[_0x3530('0x33')]()),this['listenTo'](_0x47c04f,_0x3530('0x28'),()=>this[_0x3530('0x33')]());}[_0x3530('0x76')](){const _0x11a523=this[_0x3530('0xa0')],_0x1e0dad=_0x11a523[_0x3530('0x97')][_0x3530('0xc2')](d),{isNavigationMode:_0x5cd7e1,currentChangeNumber:_0x5b69f0}=_0x1e0dad;let _0x1b8231;if(_0x1e0dad[_0x3530('0x117')]=_0x5cd7e1?_0x1e0dad[_0x3530('0x86')][_0x3530('0x1f')][_0x3530('0xc2')](_0x5b69f0+this[_0x3530('0x8f')]):_0x1e0dad[_0x3530('0x86')][_0x3530('0x1f')][_0x3530('0xa6')],_0x1e0dad['activeChange'][_0x3530('0x19')]['isOnRoot'])_0x1b8231=_0x11a523['editing']['view'][_0x3530('0x84')](_0x1e0dad[_0x3530('0x117')]['rootName']);else{const _0x289570=_0x11a523[_0x3530('0x3f')][_0x3530('0x107')][_0x3530('0xc2')](_0x3530('0x8a')+_0x1e0dad['activeChange']['id']);_0x1b8231=_0x4630dd(_0x11a523[_0x3530('0xb6')],_0x289570);}_0x11d83f({'target':_0x1b8231,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1c0bfc,currentChangeNumber:_0x3ddc1f,numberOfChanges:_0x57efa3,isReady:_0x441a42,isEnabled:_0x37b866}=this['editor']['plugins'][_0x3530('0xc2')](d);this['isEnabled']=!!(_0x37b866&&_0x441a42&&_0x57efa3)&&(!_0x1c0bfc||(0x1===this[_0x3530('0x8f')]?_0x3ddc1f<_0x57efa3-0x1:_0x3ddc1f>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x30f0=['buttonView','threeVerticalDots','_action','bind','ck-revision-history-sidebar__revision__actions','source','change:isActionsDropdownOpen','Show\x20more\x20items','class','action','map','model','first','extendTemplate','isActionsDropdownOpen','set','locale','children','execute','isEnabled','Restore\x20this\x20revision','listView','Name\x20this\x20revision','isReady','name','function','bindTemplate','find','stopPropagation','Compare\x20against\x20selected','ck-on'];(function(_0x36f35e,_0x30f04b){const _0x36a8ac=function(_0x508df7){while(--_0x508df7){_0x36f35e['push'](_0x36f35e['shift']());}};_0x36a8ac(++_0x30f04b);}(_0x30f0,0x14b));const _0x36a8=function(_0x36f35e,_0x30f04b){_0x36f35e=_0x36f35e-0x0;let _0x36a8ac=_0x30f0[_0x36f35e];return _0x36a8ac;};import{Collection as _0xcf07be}from'ckeditor5/src/utils.js';import{icons as _0x5281f1}from'ckeditor5/src/core.js';import{ViewModel as _0x24edd0,addListToDropdown as _0x47c885,createDropdown as _0x2e09e1}from'ckeditor5/src/ui.js';import{getTranslation as _0x209084}from'../../utils/common-translations.js';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x100be3,_0x103589){const _0x50f7b2=_0x100be3[_0x36a8('0x5')],_0x296171=_0x100be3[_0x36a8('0x1a')],_0x224915=_0x2e09e1(_0x296171);_0x224915['panelPosition']='sw';const _0x3d6165=function(_0x6306c0,_0x40f61e){const _0xcf394b=function(_0x22611d,_0x5c9d34){const _0x1fb8fa=_0x22611d[_0x36a8('0x1a')],_0x1fe54c={'Compare\x20against\x20selected':_0x209084(_0x1fb8fa,_0x36a8('0x8')),'Name\x20this\x20revision':_0x209084(_0x1fb8fa,_0x36a8('0x1')),'Restore\x20this\x20revision':_0x209084(_0x1fb8fa,_0x36a8('0x1e'))};return _0x5c9d34[_0x36a8('0x14')](_0x4f15cb=>{const _0x3c3569=_0x1fe54c[_0x4f15cb['name']];return _0x3c3569&&_0x3c3569!==_0x4f15cb['name']&&(_0x4f15cb[_0x36a8('0x3')]=_0x3c3569),_0x4f15cb;});}(_0x6306c0,_0x40f61e),_0xffe394=new _0xcf07be();for(const _0xa466ca of _0xcf394b){const _0x7af554={'type':'button','model':new _0x24edd0({'label':_0xa466ca[_0x36a8('0x3')],'class':_0xa466ca[_0x36a8('0x12')],'withText':!0x0,'_action':_0xa466ca[_0x36a8('0x13')]})};_0x7af554[_0x36a8('0x15')][_0x36a8('0xd')]('isEnabled')['to'](_0x6306c0,_0x36a8('0x18'),_0xa3322a=>_0x36a8('0x4')!=typeof _0xa466ca[_0x36a8('0x1d')]||(!_0xa3322a||_0xa466ca[_0x36a8('0x1d')](_0x6306c0))),_0xffe394['add'](_0x7af554);}return _0xffe394;}(_0x100be3,_0x103589);return _0x100be3[_0x36a8('0xd')](_0x36a8('0x18'))['to'](_0x224915,'isOpen'),_0x224915[_0x36a8('0xa')][_0x36a8('0x19')]({'label':_0x209084(_0x296171,_0x36a8('0x11')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5281f1[_0x36a8('0xb')]}),_0x224915[_0x36a8('0x17')]({'attributes':{'class':[_0x36a8('0xe'),_0x50f7b2['if'](_0x36a8('0x18'),_0x36a8('0x9'))]},'on':{'click':_0x50f7b2['to'](_0xe5674f=>_0xe5674f[_0x36a8('0x7')]())}}),_0x224915['on'](_0x36a8('0x1c'),_0x1f23bb=>{_0x100be3[_0x36a8('0x2')]&&'function'==typeof _0x1f23bb[_0x36a8('0xf')]['_action']&&_0x1f23bb[_0x36a8('0xf')][_0x36a8('0xc')](_0x100be3);}),_0x47c885(_0x224915,_0x3d6165),_0x224915['listenTo'](_0x100be3,_0x36a8('0x10'),(_0x1f09e1,_0xb42e,_0x5dca74)=>{if(_0x5dca74)for(const _0x25418a of _0x224915[_0x36a8('0x0')]['items']){const _0xa7b5ba=_0x25418a[_0x36a8('0x1b')][_0x36a8('0x16')],_0x913166=_0x103589[_0x36a8('0x6')](_0x42365e=>_0x42365e['action']===_0xa7b5ba[_0x36a8('0xc')])['isVisible'];_0x25418a['isVisible']=void 0x0===_0x913166||_0x913166(_0x100be3);}}),_0x224915;}
23
+ const _0x1c0a=['buttonView','Show\x20more\x20items','action','first','extendTemplate','button','function','source','Compare\x20against\x20selected','isReady','find','Name\x20this\x20revision','stopPropagation','execute','listenTo','_action','isActionsDropdownOpen','locale','listView','bindTemplate','threeVerticalDots','isVisible','isEnabled','items','bind','map','change:isActionsDropdownOpen','name'];(function(_0x1b61ca,_0x1c0a71){const _0x41e283=function(_0x99264){while(--_0x99264){_0x1b61ca['push'](_0x1b61ca['shift']());}};_0x41e283(++_0x1c0a71);}(_0x1c0a,0x6b));const _0x41e2=function(_0x1b61ca,_0x1c0a71){_0x1b61ca=_0x1b61ca-0x0;let _0x41e283=_0x1c0a[_0x1b61ca];return _0x41e283;};import{Collection as _0x5e1965}from'ckeditor5/src/utils.js';import{icons as _0x152a66}from'ckeditor5/src/core.js';import{ViewModel as _0xa136e1,addListToDropdown as _0x5cc0f2,createDropdown as _0x4def5b}from'ckeditor5/src/ui.js';import{getTranslation as _0x2291b8}from'../../utils/common-translations.js';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x1cb804,_0x518a5a){const _0x8244b5=_0x1cb804[_0x41e2('0x18')],_0x23e4d2=_0x1cb804[_0x41e2('0x16')],_0x503f3b=_0x4def5b(_0x23e4d2);_0x503f3b['panelPosition']='sw';const _0x1b0306=function(_0x1f6234,_0x335d7c){const _0x342976=function(_0x76772,_0x36ce80){const _0x517091=_0x76772[_0x41e2('0x16')],_0x3dd47d={'Compare\x20against\x20selected':_0x2291b8(_0x517091,_0x41e2('0xd')),'Name\x20this\x20revision':_0x2291b8(_0x517091,_0x41e2('0x10')),'Restore\x20this\x20revision':_0x2291b8(_0x517091,'Restore\x20this\x20revision')};return _0x36ce80[_0x41e2('0x2')](_0x322ee8=>{const _0x4d0a74=_0x3dd47d[_0x322ee8[_0x41e2('0x4')]];return _0x4d0a74&&_0x4d0a74!==_0x322ee8[_0x41e2('0x4')]&&(_0x322ee8['name']=_0x4d0a74),_0x322ee8;});}(_0x1f6234,_0x335d7c),_0x5c9b6a=new _0x5e1965();for(const _0x2f2c5b of _0x342976){const _0x4dd309={'type':_0x41e2('0xa'),'model':new _0xa136e1({'label':_0x2f2c5b[_0x41e2('0x4')],'class':_0x2f2c5b['class'],'withText':!0x0,'_action':_0x2f2c5b[_0x41e2('0x7')]})};_0x4dd309['model']['bind'](_0x41e2('0x1b'))['to'](_0x1f6234,_0x41e2('0x15'),_0x51de5c=>_0x41e2('0xb')!=typeof _0x2f2c5b[_0x41e2('0x1b')]||(!_0x51de5c||_0x2f2c5b[_0x41e2('0x1b')](_0x1f6234))),_0x5c9b6a['add'](_0x4dd309);}return _0x5c9b6a;}(_0x1cb804,_0x518a5a);return _0x1cb804[_0x41e2('0x1')]('isActionsDropdownOpen')['to'](_0x503f3b,'isOpen'),_0x503f3b[_0x41e2('0x5')]['set']({'label':_0x2291b8(_0x23e4d2,_0x41e2('0x6')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x152a66[_0x41e2('0x19')]}),_0x503f3b[_0x41e2('0x9')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x8244b5['if'](_0x41e2('0x15'),'ck-on')]},'on':{'click':_0x8244b5['to'](_0x49aaab=>_0x49aaab[_0x41e2('0x11')]())}}),_0x503f3b['on'](_0x41e2('0x12'),_0x4f7413=>{_0x1cb804[_0x41e2('0xe')]&&_0x41e2('0xb')==typeof _0x4f7413[_0x41e2('0xc')][_0x41e2('0x14')]&&_0x4f7413[_0x41e2('0xc')][_0x41e2('0x14')](_0x1cb804);}),_0x5cc0f2(_0x503f3b,_0x1b0306),_0x503f3b[_0x41e2('0x13')](_0x1cb804,_0x41e2('0x3'),(_0x522f1c,_0x42e993,_0x549342)=>{if(_0x549342)for(const _0x4d8a6d of _0x503f3b[_0x41e2('0x17')][_0x41e2('0x0')]){const _0x16709e=_0x4d8a6d['children'][_0x41e2('0x8')],_0x427fe3=_0x518a5a[_0x41e2('0xf')](_0x3c1354=>_0x3c1354['action']===_0x16709e[_0x41e2('0x14')])[_0x41e2('0x1a')];_0x4d8a6d['isVisible']=void 0x0===_0x427fe3||_0x427fe3(_0x1cb804);}}),_0x503f3b;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x22b7=['Revision\x20creator','setTemplate','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author__name','set','0\x200\x2011\x2010','span','name','ck-revision-history-sidebar__revision-author_creator'];(function(_0x494eac,_0x22b751){const _0x297d8b=function(_0x4287c4){while(--_0x4287c4){_0x494eac['push'](_0x494eac['shift']());}};_0x297d8b(++_0x22b751);}(_0x22b7,0x198));const _0x297d=function(_0x494eac,_0x22b751){_0x494eac=_0x494eac-0x0;let _0x297d8b=_0x22b7[_0x494eac];return _0x297d8b;};import{View as _0x259048,IconView as _0x124e0d}from'ckeditor5/src/ui.js';import{getTranslation as _0x5c5607}from'../../utils/common-translations.js';import'../../../theme/revision/revisionauthor.css';import _0x61983b from'../../../theme/icons/user.svg';export default class ti extends _0x259048{constructor(_0x2364ff,_0x29eb83,_0x2a3d7d){super(_0x2364ff);const _0x34e884=new _0x124e0d();_0x34e884[_0x297d('0x1')]({'content':_0x61983b,'viewBox':_0x297d('0x2')});const _0x2894aa=['ck',_0x297d('0x8')];_0x2a3d7d&&_0x2894aa['push'](_0x297d('0x5'));const _0x5d6902=[{'tag':_0x297d('0x3'),'attributes':{'class':['ck',_0x297d('0x0')],'title':_0x5c5607(_0x2364ff,_0x2a3d7d?_0x297d('0x6'):'Revision\x20author')},'children':[_0x34e884,_0x29eb83[_0x297d('0x4')]]}];this[_0x297d('0x7')]({'tag':'li','attributes':{'class':_0x2894aa},'children':_0x5d6902});}}
23
+ const _0x293f=['ck-revision-history-sidebar__revision-author','name','Revision\x20creator','setTemplate','set','push','ck-revision-history-sidebar__revision-author_creator','Revision\x20author','0\x200\x2011\x2010'];(function(_0x139282,_0x293f5d){const _0x4c32a8=function(_0x5cb37b){while(--_0x5cb37b){_0x139282['push'](_0x139282['shift']());}};_0x4c32a8(++_0x293f5d);}(_0x293f,0xb6));const _0x4c32=function(_0x139282,_0x293f5d){_0x139282=_0x139282-0x0;let _0x4c32a8=_0x293f[_0x139282];return _0x4c32a8;};import{View as _0x3a9002,IconView as _0x26240c}from'ckeditor5/src/ui.js';import{getTranslation as _0x592c6a}from'../../utils/common-translations.js';import'../../../theme/revision/revisionauthor.css';import _0x55c3c from'../../../theme/icons/user.svg';export default class ti extends _0x3a9002{constructor(_0x157e67,_0x462686,_0x45ac99){super(_0x157e67);const _0x41078a=new _0x26240c();_0x41078a[_0x4c32('0x2')]({'content':_0x55c3c,'viewBox':_0x4c32('0x6')});const _0x11c598=['ck',_0x4c32('0x7')];_0x45ac99&&_0x11c598[_0x4c32('0x3')](_0x4c32('0x4'));const _0x52f1d4=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x592c6a(_0x157e67,_0x45ac99?_0x4c32('0x0'):_0x4c32('0x5'))},'children':[_0x41078a,_0x462686[_0x4c32('0x8')]]}];this[_0x4c32('0x1')]({'tag':'li','attributes':{'class':_0x11c598},'children':_0x52f1d4});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x563a=['set','extendTemplate','ck-revision-history-sidebar__revision-name','span'];(function(_0x487729,_0x563a3b){var _0x5370e6=function(_0x32a490){while(--_0x32a490){_0x487729['push'](_0x487729['shift']());}};_0x5370e6(++_0x563a3b);}(_0x563a,0x194));var _0x5370=function(_0x487729,_0x563a3b){_0x487729=_0x487729-0x0;var _0x5370e6=_0x563a[_0x487729];return _0x5370e6;};import{LabeledFieldView as _0x3950e8}from'ckeditor5/src/ui.js';import{getTranslation as _0x30c83f}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';export default class is extends _0x3950e8{constructor(_0x2d8ace,_0x3e951e){super(_0x2d8ace,_0x3e951e),this[_0x5370('0x0')]({'label':_0x30c83f(_0x2d8ace,'Revision\x20name')}),this[_0x5370('0x1')]({'tag':_0x5370('0x3'),'attributes':{'class':[_0x5370('0x2')]}});}}
23
+ var _0x509f=['span','set','ck-revision-history-sidebar__revision-name','extendTemplate','Revision\x20name'];(function(_0x6847ec,_0x509f65){var _0x29be4d=function(_0x2f0d5f){while(--_0x2f0d5f){_0x6847ec['push'](_0x6847ec['shift']());}};_0x29be4d(++_0x509f65);}(_0x509f,0x7f));var _0x29be=function(_0x6847ec,_0x509f65){_0x6847ec=_0x6847ec-0x0;var _0x29be4d=_0x509f[_0x6847ec];return _0x29be4d;};import{LabeledFieldView as _0x185310}from'ckeditor5/src/ui.js';import{getTranslation as _0x32e348}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';export default class is extends _0x185310{constructor(_0x30b73d,_0x224c58){super(_0x30b73d,_0x224c58),this[_0x29be('0x4')]({'label':_0x32e348(_0x30b73d,_0x29be('0x2'))}),this[_0x29be('0x1')]({'tag':_0x29be('0x3'),'attributes':{'class':[_0x29be('0x0')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa020=['span','unshift','createdAt','deselect','ck-revision-history-sidebar__revision__date','set','div','ck-revision-history-sidebar__revision-wrapper','isEnabled','value','revisionNameView','extendTemplate','render','setTemplate','.ck-thread__remove-confirm','highlight','isReady','map','isSelected','bind','ck-revision-history-sidebar__actions_dropdown_open','uiLanguage','change','listenTo','creator','ck-reset','closest','ck-revision-history-sidebar__revision_selected','name','select','fieldView','isHighlighted','placeholder','element','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','authors','_revision','ck-revision-history-sidebar__revision-authors','revisionActionsView','fire','isActionsDropdownOpen','_createdAtFormatted','from','ck-revision-history-sidebar__revision__controls-wrapper','filter'];(function(_0x4946b9,_0xa02018){const _0x4ec2fa=function(_0x1f3de8){while(--_0x1f3de8){_0x4946b9['push'](_0x4946b9['shift']());}};_0x4ec2fa(++_0xa02018);}(_0xa020,0x198));const _0x4ec2=function(_0x4946b9,_0xa02018){_0x4946b9=_0x4946b9-0x0;let _0x4ec2fa=_0xa020[_0x4946b9];return _0x4ec2fa;};import{View as _0xa9cac3,createLabeledInputText as _0x2e5bb5}from'ckeditor5/src/ui.js';import{ConfirmMixin as _0x44d44e}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x49eec0 from'./revisionnameview.js';import _0x41c299 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x2ecd83}from'./utils.js';import{createActionsDropdownView as _0x43461e}from'./createrevisionactionsdropdown.js';import'../../../theme/revision/revision.css';export default class ai extends _0x44d44e(_0xa9cac3){constructor(_0x3751d1,_0x5ae914,_0x5d2327){super(_0x3751d1);const _0xa87f93=this['bindTemplate'],_0x1391ca=function(_0x36a618,_0x4f569e){const _0x4e38f5=Array[_0x4ec2('0x27')](_0x4f569e[_0x4ec2('0x20')])[_0x4ec2('0x29')](_0x3dfc4d=>_0x3dfc4d!=_0x4f569e['creator']);return _0x4f569e[_0x4ec2('0x15')]&&_0x4e38f5[_0x4ec2('0x2b')](_0x4f569e['creator']),_0x4e38f5[_0x4ec2('0xe')](_0x1e6195=>new _0x41c299(_0x36a618,_0x1e6195,_0x1e6195==_0x4f569e[_0x4ec2('0x15')]));}(_0x3751d1,_0x5ae914);this['id']=_0x5ae914['id'],this[_0x4ec2('0x21')]=_0x5ae914,this[_0x4ec2('0x10')](_0x4ec2('0x19'),_0x4ec2('0x2c'))['to'](_0x5ae914),this[_0x4ec2('0x10')]('_createdAtFormatted')['to'](this,'createdAt',_0x210220=>_0x210220?_0x2ecd83(_0x3751d1[_0x4ec2('0x12')],_0x210220):void 0x0),this['set'](_0x4ec2('0xf'),!0x1),this['set'](_0x4ec2('0x1c'),!0x1),this[_0x4ec2('0x2')]('isActionsDropdownOpen',!0x1),this[_0x4ec2('0x2')](_0x4ec2('0xd'),!0x1),this[_0x4ec2('0x2')]('isEnabled',!0x1),this[_0x4ec2('0x7')]=new _0x49eec0(_0x3751d1,_0x2e5bb5),this['revisionNameView'][_0x4ec2('0x1b')][_0x4ec2('0x8')]({'attributes':{'maxlength':'220'}}),this[_0x4ec2('0x7')][_0x4ec2('0x1b')][_0x4ec2('0x10')]('value',_0x4ec2('0x1d'))['to'](this,'name',_0x4ec2('0x26')),this['revisionNameView']['bind'](_0x4ec2('0x5'))['to'](this,'isSelected',this,'isEnabled',(_0x21c26d,_0x8bb47d)=>_0x21c26d&&_0x8bb47d),this[_0x4ec2('0x23')]=_0x5d2327&&_0x5d2327['length']?_0x43461e(this,_0x5d2327):'',this[_0x4ec2('0x23')]&&this['revisionActionsView']['bind'](_0x4ec2('0x5'))['to'](this),this[_0x4ec2('0xa')]({'tag':'div','attributes':{'class':['ck','ck-reset',_0x4ec2('0x4'),_0xa87f93['if']('isConfirm',_0x4ec2('0x1f'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x4ec2('0x16'),'ck-revision-history-sidebar__revision',_0xa87f93['if'](_0x4ec2('0x5'),'ck-disabled',_0x5a2871=>!_0x5a2871),_0xa87f93['if']('isSelected',_0x4ec2('0x18')),_0xa87f93['if'](_0x4ec2('0x1c'),'ck-revision-history-sidebar__revision_highlighted'),_0xa87f93['if'](_0x4ec2('0x25'),_0x4ec2('0x11'))]},'children':[this[_0x4ec2('0x7')],{'tag':_0x4ec2('0x2a'),'attributes':{'class':['ck',_0x4ec2('0x1')]},'children':[{'text':_0xa87f93['to'](_0x4ec2('0x26'))}]},{'tag':_0x4ec2('0x3'),'attributes':{'class':['ck',_0x4ec2('0x28')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x4ec2('0x22')]},'children':_0x1391ca}]},this[_0x4ec2('0x23')]],'on':{'click':_0xa87f93['to'](_0x3c300f=>{_0x3c300f['srcElement'][_0x4ec2('0x17')](_0x4ec2('0xb'))||this[_0x4ec2('0xd')]&&this['isEnabled']&&this[_0x4ec2('0x24')]('select',{'id':this['id']});})}}]});}[_0x4ec2('0x9')](){super[_0x4ec2('0x9')]();const _0x28da67=this[_0x4ec2('0x7')][_0x4ec2('0x1b')][_0x4ec2('0x1e')];this[_0x4ec2('0x14')](_0x28da67,_0x4ec2('0x13'),()=>{this[_0x4ec2('0x24')]('setName',{'id':this['id'],'name':_0x28da67[_0x4ec2('0x6')]});});}[_0x4ec2('0x1a')](){this[_0x4ec2('0xf')]=!0x0;}[_0x4ec2('0x0')](){this[_0x4ec2('0xf')]=!0x1;}[_0x4ec2('0xc')](){this[_0x4ec2('0x1c')]=!0x0;}['unhighlight'](){this[_0x4ec2('0x1c')]=!0x1;}}
23
+ const _0x35b1=['ck-revision-history-sidebar__revision__date','change','setTemplate','creator','set','ck-revision-history-sidebar__revision-wrapper','ck-reset','bind','isHighlighted','fieldView','highlight','select','isEnabled','from','srcElement','isReady','_createdAtFormatted','createdAt','bindTemplate','name','ck-revision-history-sidebar__revision','_revision','element','ck-revision-history-sidebar__revision_selected','isSelected','authors','div','ck-revision-history-sidebar__revision-authors','uiLanguage','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','fire','ck-revision-history-sidebar__revision__controls-wrapper','unhighlight','.ck-thread__remove-confirm','revisionActionsView','value','ck-revision-history-sidebar__actions_dropdown_open','isActionsDropdownOpen','render','revisionNameView','isConfirm','filter','closest'];(function(_0x46fde5,_0x35b16f){const _0x41e997=function(_0x1e8001){while(--_0x1e8001){_0x46fde5['push'](_0x46fde5['shift']());}};_0x41e997(++_0x35b16f);}(_0x35b1,0x18e));const _0x41e9=function(_0x46fde5,_0x35b16f){_0x46fde5=_0x46fde5-0x0;let _0x41e997=_0x35b1[_0x46fde5];return _0x41e997;};import{View as _0x79998b,createLabeledInputText as _0x3ee10a}from'ckeditor5/src/ui.js';import{ConfirmMixin as _0x974918}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2a1418 from'./revisionnameview.js';import _0x52aa82 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x1811bd}from'./utils.js';import{createActionsDropdownView as _0x1587f7}from'./createrevisionactionsdropdown.js';import'../../../theme/revision/revision.css';export default class ai extends _0x974918(_0x79998b){constructor(_0x40b9fc,_0xf362d7,_0x514421){super(_0x40b9fc);const _0x3fb02e=this[_0x41e9('0x7')],_0x125ac3=function(_0x31a4c1,_0x17aabd){const _0x27a72d=Array[_0x41e9('0x2')](_0x17aabd[_0x41e9('0xe')])[_0x41e9('0x1e')](_0x113eb9=>_0x113eb9!=_0x17aabd['creator']);return _0x17aabd[_0x41e9('0x23')]&&_0x27a72d['unshift'](_0x17aabd[_0x41e9('0x23')]),_0x27a72d['map'](_0x36f27b=>new _0x52aa82(_0x31a4c1,_0x36f27b,_0x36f27b==_0x17aabd[_0x41e9('0x23')]));}(_0x40b9fc,_0xf362d7);this['id']=_0xf362d7['id'],this[_0x41e9('0xa')]=_0xf362d7,this[_0x41e9('0x27')](_0x41e9('0x8'),'createdAt')['to'](_0xf362d7),this[_0x41e9('0x27')](_0x41e9('0x5'))['to'](this,_0x41e9('0x6'),_0x100fa3=>_0x100fa3?_0x1811bd(_0x40b9fc[_0x41e9('0x11')],_0x100fa3):void 0x0),this[_0x41e9('0x24')](_0x41e9('0xd'),!0x1),this['set'](_0x41e9('0x28'),!0x1),this[_0x41e9('0x24')](_0x41e9('0x1a'),!0x1),this[_0x41e9('0x24')](_0x41e9('0x4'),!0x1),this['set']('isEnabled',!0x1),this[_0x41e9('0x1c')]=new _0x2a1418(_0x40b9fc,_0x3ee10a),this['revisionNameView'][_0x41e9('0x29')]['extendTemplate']({'attributes':{'maxlength':'220'}}),this[_0x41e9('0x1c')]['fieldView'][_0x41e9('0x27')](_0x41e9('0x18'),'placeholder')['to'](this,_0x41e9('0x8'),_0x41e9('0x5')),this['revisionNameView'][_0x41e9('0x27')](_0x41e9('0x1'))['to'](this,_0x41e9('0xd'),this,_0x41e9('0x1'),(_0x24ae8f,_0x23f810)=>_0x24ae8f&&_0x23f810),this[_0x41e9('0x17')]=_0x514421&&_0x514421['length']?_0x1587f7(this,_0x514421):'',this[_0x41e9('0x17')]&&this[_0x41e9('0x17')][_0x41e9('0x27')](_0x41e9('0x1'))['to'](this),this[_0x41e9('0x22')]({'tag':'div','attributes':{'class':['ck',_0x41e9('0x26'),_0x41e9('0x25'),_0x3fb02e['if'](_0x41e9('0x1d'),_0x41e9('0x12'))]},'children':[{'tag':_0x41e9('0xf'),'attributes':{'class':['ck',_0x41e9('0x26'),_0x41e9('0x9'),_0x3fb02e['if'](_0x41e9('0x1'),'ck-disabled',_0x2606c3=>!_0x2606c3),_0x3fb02e['if'](_0x41e9('0xd'),_0x41e9('0xc')),_0x3fb02e['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3fb02e['if'](_0x41e9('0x1a'),_0x41e9('0x19'))]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck',_0x41e9('0x20')]},'children':[{'text':_0x3fb02e['to'](_0x41e9('0x5'))}]},{'tag':'div','attributes':{'class':['ck',_0x41e9('0x14')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x41e9('0x10')]},'children':_0x125ac3}]},this[_0x41e9('0x17')]],'on':{'click':_0x3fb02e['to'](_0x4ade2e=>{_0x4ade2e[_0x41e9('0x3')][_0x41e9('0x1f')](_0x41e9('0x16'))||this[_0x41e9('0x4')]&&this[_0x41e9('0x1')]&&this['fire']('select',{'id':this['id']});})}}]});}[_0x41e9('0x1b')](){super[_0x41e9('0x1b')]();const _0x299910=this[_0x41e9('0x1c')][_0x41e9('0x29')][_0x41e9('0xb')];this['listenTo'](_0x299910,_0x41e9('0x21'),()=>{this[_0x41e9('0x13')]('setName',{'id':this['id'],'name':_0x299910[_0x41e9('0x18')]});});}[_0x41e9('0x0')](){this['isSelected']=!0x0;}['deselect'](){this[_0x41e9('0xd')]=!0x1;}[_0x41e9('0x2a')](){this[_0x41e9('0x28')]=!0x0;}[_0x41e9('0x15')](){this[_0x41e9('0x28')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8475=['ck-revision-history-sidebar__subrevision-collapser_collapsed','isVisible','bindTemplate','true','span','button','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser','set','false','setTemplate'];(function(_0x550d43,_0x847586){const _0x5005eb=function(_0x2006ca){while(--_0x2006ca){_0x550d43['push'](_0x550d43['shift']());}};_0x5005eb(++_0x847586);}(_0x8475,0x1c9));const _0x5005=function(_0x550d43,_0x847586){_0x550d43=_0x550d43-0x0;let _0x5005eb=_0x8475[_0x550d43];return _0x5005eb;};import{View as _0x2accf3}from'ckeditor5/src/ui.js';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2accf3{constructor(_0x434fee){super(_0x434fee);const _0x1e49d8=this[_0x5005('0x7')];this[_0x5005('0x2')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5005('0x4')]({'tag':_0x5005('0x9'),'attributes':{'class':['ck',_0x5005('0x1'),_0x1e49d8['if'](_0x5005('0x6'),'ck-hidden',_0x5f4132=>!_0x5f4132),_0x1e49d8['if'](_0x5005('0x0'),_0x5005('0x5'))],'role':_0x5005('0xa'),'aria-pressed':_0x1e49d8['to'](_0x5005('0x0'),_0x276703=>_0x276703?_0x5005('0x3'):_0x5005('0x8'))},'children':[{'tag':_0x5005('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x1e49d8['to']('click')}});}['toggle'](){this['_isCollapsed']=!this[_0x5005('0x0')];}}
23
+ const _0x2ad1=['click','true','false','ck-revision-history-sidebar__subrevision-collapser__inner','set','span','ck-revision-history-sidebar__subrevision-collapser','toggle','_isCollapsed','button','isVisible'];(function(_0x3ed913,_0x2ad1ee){const _0x3fab15=function(_0x24fb11){while(--_0x24fb11){_0x3ed913['push'](_0x3ed913['shift']());}};_0x3fab15(++_0x2ad1ee);}(_0x2ad1,0x16c));const _0x3fab=function(_0x3ed913,_0x2ad1ee){_0x3ed913=_0x3ed913-0x0;let _0x3fab15=_0x2ad1[_0x3ed913];return _0x3fab15;};import{View as _0x5ece6f}from'ckeditor5/src/ui.js';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x5ece6f{constructor(_0x475f2c){super(_0x475f2c);const _0x5dc3f1=this['bindTemplate'];this[_0x3fab('0x3')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x3fab('0x4'),'attributes':{'class':['ck',_0x3fab('0x5'),_0x5dc3f1['if'](_0x3fab('0x9'),'ck-hidden',_0x14949f=>!_0x14949f),_0x5dc3f1['if'](_0x3fab('0x7'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x3fab('0x8'),'aria-pressed':_0x5dc3f1['to']('_isCollapsed',_0x2cb748=>_0x2cb748?_0x3fab('0x1'):_0x3fab('0x0'))},'children':[{'tag':_0x3fab('0x4'),'attributes':{'class':['ck',_0x3fab('0x2')]}}],'on':{'click':_0x5dc3f1['to'](_0x3fab('0xa'))}});}[_0x3fab('0x6')](){this[_0x3fab('0x7')]=!this[_0x3fab('0x7')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a9a=['uiLanguage','bindTemplate','ck-revision-history-sidebar__revision-authors','setTemplate','creator','isSelected','ck-revision-history-sidebar__revision','fire','bind','div','span','ck-revision-history-sidebar__subrevision','_parentRevisionId','select','_createdAtFormatted','ck-revision-history-sidebar__revision__date'];(function(_0x4ac17f,_0x2a9a43){const _0x125650=function(_0x5293a8){while(--_0x5293a8){_0x4ac17f['push'](_0x4ac17f['shift']());}};_0x125650(++_0x2a9a43);}(_0x2a9a,0x19e));const _0x1256=function(_0x4ac17f,_0x2a9a43){_0x4ac17f=_0x4ac17f-0x0;let _0x125650=_0x2a9a[_0x4ac17f];return _0x125650;};import{View as _0x1488e0}from'ckeditor5/src/ui.js';import _0x3ce396 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x3d2a1f}from'./utils.js';import'../../../theme/revision/subrevision.css';export default class ts extends _0x1488e0{constructor(_0x3452d7,_0xb29e43,_0x495a46){super(_0x3452d7);const _0x4529bd=this[_0x1256('0x3')];this['id']=_0xb29e43['id'],this['bind']('createdAt')['to'](_0xb29e43),this['set'](_0x1256('0x7'),!0x1),this[_0x1256('0xa')](_0x1256('0x0'))['to'](this,'createdAt',_0x5393b2=>_0x5393b2?_0x3d2a1f(_0x3452d7[_0x1256('0x2')],_0x5393b2):void 0x0),this[_0x1256('0xe')]=_0x495a46,this[_0x1256('0x5')]({'tag':_0x1256('0xb'),'attributes':{'class':['ck','ck-reset',_0x1256('0x8'),_0x1256('0xd'),_0x4529bd['if']('isSelected','ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x1256('0xc'),'attributes':{'class':['ck',_0x1256('0x1')]},'children':[{'text':_0x4529bd['to'](_0x1256('0x0'))}]},{'tag':'ul','attributes':{'class':['ck',_0x1256('0x4')]},'children':[new _0x3ce396(_0x3452d7,_0xb29e43[_0x1256('0x6')],!0x0)]}],'on':{'click':_0x4529bd['to'](this[_0x1256('0xf')][_0x1256('0xa')](this))}});}[_0x1256('0xf')](){this[_0x1256('0x7')]=!0x0,this[_0x1256('0x9')](_0x1256('0xf'),{'parentId':this['_parentRevisionId']});}['deselect'](){this['isSelected']=!0x1;}}
23
+ const _0x35b3=['ck-revision-history-sidebar__subrevision','fire','ck-revision-history-sidebar__revision__date','isSelected','bindTemplate','uiLanguage','select','ck-reset','bind','_createdAtFormatted','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision-authors','set','ck-revision-history-sidebar__revision_selected','creator','div'];(function(_0x54a617,_0x35b341){const _0x42fa32=function(_0x296a32){while(--_0x296a32){_0x54a617['push'](_0x54a617['shift']());}};_0x42fa32(++_0x35b341);}(_0x35b3,0x1c7));const _0x42fa=function(_0x54a617,_0x35b341){_0x54a617=_0x54a617-0x0;let _0x42fa32=_0x35b3[_0x54a617];return _0x42fa32;};import{View as _0x272d96}from'ckeditor5/src/ui.js';import _0x3a62b4 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x408eb1}from'./utils.js';import'../../../theme/revision/subrevision.css';export default class ts extends _0x272d96{constructor(_0x2bafb9,_0x1d1487,_0x2da033){super(_0x2bafb9);const _0x32405b=this[_0x42fa('0xd')];this['id']=_0x1d1487['id'],this[_0x42fa('0x1')]('createdAt')['to'](_0x1d1487),this[_0x42fa('0x5')](_0x42fa('0xc'),!0x1),this[_0x42fa('0x1')](_0x42fa('0x2'))['to'](this,'createdAt',_0x39010d=>_0x39010d?_0x408eb1(_0x2bafb9[_0x42fa('0xe')],_0x39010d):void 0x0),this['_parentRevisionId']=_0x2da033,this['setTemplate']({'tag':_0x42fa('0x8'),'attributes':{'class':['ck',_0x42fa('0x0'),_0x42fa('0x3'),_0x42fa('0x9'),_0x32405b['if'](_0x42fa('0xc'),_0x42fa('0x6'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x42fa('0xb')]},'children':[{'text':_0x32405b['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x42fa('0x4')]},'children':[new _0x3a62b4(_0x2bafb9,_0x1d1487[_0x42fa('0x7')],!0x0)]}],'on':{'click':_0x32405b['to'](this[_0x42fa('0xf')][_0x42fa('0x1')](this))}});}[_0x42fa('0xf')](){this[_0x42fa('0xc')]=!0x0,this[_0x42fa('0xa')](_0x42fa('0xf'),{'parentId':this['_parentRevisionId']});}['deselect'](){this['isSelected']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2b00=['long','numeric'];(function(_0x458114,_0x2b007f){var _0x117bc1=function(_0x2911f6){while(--_0x2911f6){_0x458114['push'](_0x458114['shift']());}};_0x117bc1(++_0x2b007f);}(_0x2b00,0x188));var _0x117b=function(_0x458114,_0x2b007f){_0x458114=_0x458114-0x0;var _0x117bc1=_0x2b00[_0x458114];return _0x117bc1;};export function dateToPrettyFormat(_0xc3d7bf,_0x13987a){return _0x13987a['toLocaleDateString'](_0xc3d7bf,{'month':_0x117b('0x0'),'day':'numeric'})+',\x20'+_0x13987a['toLocaleTimeString'](_0xc3d7bf,{'hour':_0x117b('0x1'),'minute':'numeric'});}
23
+ var _0x1694=['numeric','long','toLocaleDateString'];(function(_0x1856ba,_0x169491){var _0x4803f7=function(_0x38dd98){while(--_0x38dd98){_0x1856ba['push'](_0x1856ba['shift']());}};_0x4803f7(++_0x169491);}(_0x1694,0xca));var _0x4803=function(_0x1856ba,_0x169491){_0x1856ba=_0x1856ba-0x0;var _0x4803f7=_0x1694[_0x1856ba];return _0x4803f7;};export function dateToPrettyFormat(_0x5c91e1,_0x52af1e){return _0x52af1e[_0x4803('0x1')](_0x5c91e1,{'month':_0x4803('0x0'),'day':_0x4803('0x2')})+',\x20'+_0x52af1e['toLocaleTimeString'](_0x5c91e1,{'hour':'numeric','minute':'numeric'});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x55ec=['trim','_focusCycler','keystrokes','focusFirst','forEach','shift\x20+\x20tab','saveButtonView','type','tab','set','listenTo','cancelButtonView','setTemplate','delegate','fieldView','Cancel','_createButton','revisionNameInputView','cancel','check','extendTemplate','revisionName','focus','add','Name\x20of\x20the\x20revision\x20(optional)','locale','focusTracker','execute','Save','ck-button-cancel','element','_createRevisionNameInput','value','arrowdown','label','arrowup','revisionNameInputValue','reset','render','_focusables'];(function(_0x3f3f94,_0x55ec5c){const _0x437063=function(_0x5bda73){while(--_0x5bda73){_0x3f3f94['push'](_0x3f3f94['shift']());}};_0x437063(++_0x55ec5c);}(_0x55ec,0x74));const _0x4370=function(_0x3f3f94,_0x55ec5c){_0x3f3f94=_0x3f3f94-0x0;let _0x437063=_0x55ec[_0x3f3f94];return _0x437063;};import{icons as _0x5d62bc}from'ckeditor5/src/core.js';import{ButtonView as _0x2139e0,FocusCycler as _0x262029,LabeledFieldView as _0x290a83,View as _0x3295bc,ViewCollection as _0x2274a1,createLabeledInputText as _0x5e84a0,injectCssTransitionDisabler as _0x41148d,submitHandler as _0x417f2b}from'ckeditor5/src/ui.js';import{FocusTracker as _0x3391fc,KeystrokeHandler as _0xb84fda}from'ckeditor5/src/utils.js';import{getTranslation as _0xd5f15}from'../../utils/common-translations.js';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x3295bc{constructor(_0x2468ff){super(_0x2468ff),this[_0x4370('0x1e')]=new _0x3391fc(),this[_0x4370('0x6')]=new _0xb84fda(),this[_0x4370('0xd')](_0x4370('0x0'),''),this[_0x4370('0x15')]=this[_0x4370('0x23')](),this[_0x4370('0xa')]=this[_0x4370('0x14')](_0xd5f15(_0x2468ff,_0x4370('0x20')),_0x5d62bc[_0x4370('0x17')],'ck-button-save'),this['saveButtonView'][_0x4370('0xb')]='submit',this[_0x4370('0xf')]=this['_createButton'](_0xd5f15(_0x2468ff,_0x4370('0x13')),_0x5d62bc[_0x4370('0x16')],_0x4370('0x21'),_0x4370('0x16')),this[_0x4370('0x3')]=new _0x2274a1(),this[_0x4370('0x5')]=new _0x262029({'focusables':this[_0x4370('0x3')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x4370('0x6')],'actions':{'focusPrevious':_0x4370('0x9'),'focusNext':_0x4370('0xc')}}),this[_0x4370('0x10')]({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x4370('0xa')],this[_0x4370('0xf')]]}),_0x41148d(this);}[_0x4370('0x2')](){super['render'](),_0x417f2b({'view':this}),([this[_0x4370('0x15')],this['saveButtonView'],this[_0x4370('0xf')]][_0x4370('0x8')](_0x4e4497=>{this[_0x4370('0x3')][_0x4370('0x1b')](_0x4e4497),this['focusTracker'][_0x4370('0x1b')](_0x4e4497[_0x4370('0x22')]);}),this[_0x4370('0x6')][_0x4370('0xe')](this[_0x4370('0x22')]));const _0x533c48=_0x38ce03=>_0x38ce03['stopPropagation']();this[_0x4370('0x6')][_0x4370('0xd')]('arrowright',_0x533c48),this[_0x4370('0x6')][_0x4370('0xd')]('arrowleft',_0x533c48),this[_0x4370('0x6')]['set'](_0x4370('0x27'),_0x533c48),this[_0x4370('0x6')][_0x4370('0xd')](_0x4370('0x25'),_0x533c48);}[_0x4370('0x1a')](){this[_0x4370('0x5')][_0x4370('0x7')]();}get[_0x4370('0x19')](){return this['revisionNameInputView'][_0x4370('0x12')][_0x4370('0x22')][_0x4370('0x24')][_0x4370('0x4')]();}set['revisionName'](_0x129820){this[_0x4370('0x15')][_0x4370('0x12')][_0x4370('0x22')][_0x4370('0x24')]=_0x129820[_0x4370('0x4')]();}[_0x4370('0x1')](){this['revisionNameInputView'][_0x4370('0x12')][_0x4370('0x22')][_0x4370('0x24')]='';}[_0x4370('0x23')](){const _0x37620c=new _0x290a83(this[_0x4370('0x1d')],_0x5e84a0),_0x25bf7b=_0x37620c[_0x4370('0x12')];return _0x25bf7b['extendTemplate']({'attributes':{'maxlength':'220'}}),_0x37620c[_0x4370('0x26')]=_0xd5f15(this[_0x4370('0x1d')],_0x4370('0x1c')),_0x25bf7b['on']('input',()=>{this[_0x4370('0x0')]=_0x25bf7b[_0x4370('0x22')][_0x4370('0x24')][_0x4370('0x4')]();}),_0x37620c;}['_createButton'](_0x3fdcb7,_0x35c851,_0x15252c,_0x51b067){const _0x107733=new _0x2139e0(this[_0x4370('0x1d')]);return _0x107733['set']({'label':_0x3fdcb7,'icon':_0x35c851,'tooltip':!0x0}),_0x107733[_0x4370('0x18')]({'attributes':{'class':_0x15252c}}),_0x51b067&&_0x107733[_0x4370('0x11')](_0x4370('0x1f'))['to'](this,_0x51b067),_0x107733;}}
23
+ const _0xe184=['reset','render','fieldView','ck-button-cancel','arrowup','check','arrowdown','_createRevisionNameInput','keystrokes','shift\x20+\x20tab','saveButtonView','submit','revisionNameInputValue','stopPropagation','form','add','set','revisionName','arrowleft','input','tab','execute','locale','value','focusFirst','trim','_focusables','element','Cancel','focusTracker','delegate','revisionNameInputView','Name\x20of\x20the\x20revision\x20(optional)','cancel','220','ck-revision-history-save-revision-form','_createButton'];(function(_0x37ce93,_0xe18464){const _0x199d79=function(_0x40c216){while(--_0x40c216){_0x37ce93['push'](_0x37ce93['shift']());}};_0x199d79(++_0xe18464);}(_0xe184,0x14e));const _0x199d=function(_0x37ce93,_0xe18464){_0x37ce93=_0x37ce93-0x0;let _0x199d79=_0xe184[_0x37ce93];return _0x199d79;};import{icons as _0x5e3e80}from'ckeditor5/src/core.js';import{ButtonView as _0x2dc569,FocusCycler as _0x4ad69e,LabeledFieldView as _0x81f9de,View as _0x5575ea,ViewCollection as _0x44933d,createLabeledInputText as _0x5a13d2,injectCssTransitionDisabler as _0x16569e,submitHandler as _0x4c90a6}from'ckeditor5/src/ui.js';import{FocusTracker as _0x2e5695,KeystrokeHandler as _0xf8d163}from'ckeditor5/src/utils.js';import{getTranslation as _0x7278df}from'../../utils/common-translations.js';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x5575ea{constructor(_0x2d62ab){super(_0x2d62ab),this[_0x199d('0x1c')]=new _0x2e5695(),this[_0x199d('0x7')]=new _0xf8d163(),this[_0x199d('0xf')](_0x199d('0xb'),''),this['revisionNameInputView']=this[_0x199d('0x6')](),this[_0x199d('0x9')]=this[_0x199d('0x23')](_0x7278df(_0x2d62ab,'Save'),_0x5e3e80[_0x199d('0x4')],'ck-button-save'),this[_0x199d('0x9')]['type']=_0x199d('0xa'),this['cancelButtonView']=this[_0x199d('0x23')](_0x7278df(_0x2d62ab,_0x199d('0x1b')),_0x5e3e80[_0x199d('0x20')],_0x199d('0x2'),_0x199d('0x20')),this[_0x199d('0x19')]=new _0x44933d(),this['_focusCycler']=new _0x4ad69e({'focusables':this[_0x199d('0x19')],'focusTracker':this[_0x199d('0x1c')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x199d('0x8'),'focusNext':_0x199d('0x13')}}),this['setTemplate']({'tag':_0x199d('0xd'),'attributes':{'class':['ck',_0x199d('0x22'),'ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView'],this['saveButtonView'],this['cancelButtonView']]}),_0x16569e(this);}[_0x199d('0x0')](){super['render'](),_0x4c90a6({'view':this}),([this['revisionNameInputView'],this[_0x199d('0x9')],this['cancelButtonView']]['forEach'](_0x47a9a0=>{this[_0x199d('0x19')][_0x199d('0xe')](_0x47a9a0),this[_0x199d('0x1c')]['add'](_0x47a9a0[_0x199d('0x1a')]);}),this[_0x199d('0x7')]['listenTo'](this[_0x199d('0x1a')]));const _0x2d5fc3=_0x1a5172=>_0x1a5172[_0x199d('0xc')]();this[_0x199d('0x7')][_0x199d('0xf')]('arrowright',_0x2d5fc3),this[_0x199d('0x7')][_0x199d('0xf')](_0x199d('0x11'),_0x2d5fc3),this[_0x199d('0x7')][_0x199d('0xf')](_0x199d('0x3'),_0x2d5fc3),this[_0x199d('0x7')][_0x199d('0xf')](_0x199d('0x5'),_0x2d5fc3);}['focus'](){this['_focusCycler'][_0x199d('0x17')]();}get['revisionName'](){return this['revisionNameInputView'][_0x199d('0x1')][_0x199d('0x1a')]['value'][_0x199d('0x18')]();}set[_0x199d('0x10')](_0x5a7878){this[_0x199d('0x1e')]['fieldView'][_0x199d('0x1a')][_0x199d('0x16')]=_0x5a7878['trim']();}[_0x199d('0x24')](){this[_0x199d('0x1e')]['fieldView']['element'][_0x199d('0x16')]='';}['_createRevisionNameInput'](){const _0x1f0ce5=new _0x81f9de(this[_0x199d('0x15')],_0x5a13d2),_0x16f0d1=_0x1f0ce5[_0x199d('0x1')];return _0x16f0d1['extendTemplate']({'attributes':{'maxlength':_0x199d('0x21')}}),_0x1f0ce5['label']=_0x7278df(this[_0x199d('0x15')],_0x199d('0x1f')),_0x16f0d1['on'](_0x199d('0x12'),()=>{this[_0x199d('0xb')]=_0x16f0d1[_0x199d('0x1a')]['value'][_0x199d('0x18')]();}),_0x1f0ce5;}[_0x199d('0x23')](_0x571c50,_0x29bfa6,_0x59f7ee,_0x414924){const _0x41b979=new _0x2dc569(this['locale']);return _0x41b979[_0x199d('0xf')]({'label':_0x571c50,'icon':_0x29bfa6,'tooltip':!0x0}),_0x41b979['extendTemplate']({'attributes':{'class':_0x59f7ee}}),_0x414924&&_0x41b979[_0x199d('0x1d')](_0x199d('0x14'))['to'](this,_0x414924),_0x41b979;}}