@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231213.0 → 0.0.0-nightly-20231215.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27ab=['target','index','isInline','revision-viewer','ck-revision-history-root-','offsetSize','nextSibling','addMarker:revision-suggestion:insertion','createAttributeElement','concat','markersEnd','config','_data','nodeAfter','isAddSuggestion','_cleanUp','getAttributes','_revisions','adapter','authors','startIndex','toData','ck-suggestion-marker--active','execute','bottom','error','_cleanMarkers','_makeTape','oldRevisionId','insert','addClass','-new','for','data-change-id','setAttribute','vid','deletion','activeChange','requires','diff','currentChangeNumber','updatePosition','keys','level','viewItem','left','observeMarkers','useFillerType','includes','processor','ck-revision-history-root-add','commands','unshift','showNextChange','createPositionFromPath','first','_findChangeIdFromDomTarget','elementToAttribute','isBlock','pop','data','hasClass','findIndex','clear','forEach','downcastDispatcher','revision-suggestion:','vid_end','previousPosition','rootName','ck-revision-history-root--active','_getChangeFromId','RevisionViewer','repository','toViewElement','_getDiff','_refreshStartEndIndex','_changeIdToChange','ck-suggestion-preview-marker-','_getRevisionsRange','bindElementToMarker','length','checkAttribute','change:isEnabled','_activeViewTarget','markerName','_markSuggestions','_removeUnsupportedChanges','attributesAfter','from','isContent','getRevision','distance','then','getIndex','attachChange','sort','slice','forceDisabled','upcast','remove','pairId','elementEnd','text','createUIElement','item','unbindElementFromMarkerName','markerToHighlight','ck-editor__editable__overlay','editor','data-revision-','indexOf','createRevision','insertions','change:activeView','deletions','children','range','mapper','revision:','backward','wrap','_balloon','toViewPosition','change:numberOfChanges','numberOfChanges','_initInteractions','_getViewObj','removeClass','object','nextPosition','_processTape','addMarker:revision-suggestion:deletion','enqueueChange','addRevisionData','elementStart','abs','ck-suggestion-marker-split','compare','isIncorrect','softBreak','_getViewForChange','reconvertMarker','test','change','markerRange','getItems','ck-suggestion-preview-marker','getDomRoot','isAtStart','all','addRoot','bind','_makeModelFromTape','diffData','refresh','revision','_step','span','consumable','isRemoved','delete','getRootNames','uiElement','isObject','document','removeMarker:revision','editing','loadRevisionData','toModel','filter','_threeWayMerge','high','addMarker:revision','revisionHistoryLabel','highest','detachRoot','userId','element','low','revision-start','createRange','isAfter','plugins','listenTo','addRevision','markerNameToElements','right','schema','name','hasAttribute','showPreviousChange','getChild','collaboration.channelId','_removeMissingPairs','maxOffset','dataDowncast','restoreRevision','_markMismatchedRemovedTags','parse','revision-suggestion','string','attributes','modelRange','top','model','change:isReady','getRoot','isLimit','markers','get','insertion','_removeRevisionMarkers','isSuggestion','isAttached','conversion','isEqual','_update','pluginName','parent','removeMarker:revision-suggestion','isOnRoot','map','newRevisionId','locale','vid_start','start','getWalker','next','createRangeIn','flat','_setChanges','_setDistance','writer','getClientRects','split','view','markerToData','side','stop','isCollapsed','destroy','element:pre','resolve','mouseover','revision-comment:','revision-end','_joinTapes','isRemoveSuggestion','end','consume','_sortAndFilterDiffChanges','isReady','getAttribute','changeId','markersStart','forward','isAtEnd','shift','_setConversion','mapViewToDom','ck-suggestion-marker-','_markInsertions','revisionHistoryAttachChange','attributesBefore','endIndex','isAdded','change:activeChange','has','activeView','getCustomProperty','attribute:vid','WidgetToolbarRepository','enableReadOnlyMode','type','add','domEvent','push','createPositionBefore','_markMarkers','startsWith','merge','return','isEnabled','set','changes','_fixObsoleteTags','_makeModelFromViewString','getRevisionData','_changeView','affectsData','dataToMarker','splice'];(function(_0x305b3b,_0x27ab27){const _0x20221b=function(_0x18f338){while(--_0x18f338){_0x305b3b['push'](_0x305b3b['shift']());}};_0x20221b(++_0x27ab27);}(_0x27ab,0x12f));const _0x2022=function(_0x305b3b,_0x27ab27){_0x305b3b=_0x305b3b-0x0;let _0x20221b=_0x27ab[_0x305b3b];return _0x20221b;};import{Plugin as _0x2cc1f8,Command as _0x356bbb}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x5ce67b}from'ckeditor5/src/utils';import{ContextualBalloon as _0x390cce}from'ckeditor5/src/ui';import{DocumentFragment as _0x197c08,Element as _0x479e62,Text as _0x5fa407,ViewDocumentFragment as _0x4b1a00,ViewText as _0x4a8b84,ViewElement as _0x3d4192,ViewContainerElement as _0x5d522a,ViewAttributeElement as _0x12e6ca,ViewEmptyElement as _0x29a267,ViewRawElement as _0xc3ef03,ViewUIElement as _0x1855af}from'ckeditor5/src/engine';import{Users as _0x101cf8,getMarkerDomElement as _0x842571}from'ckeditor5-collaboration/src/collaboration-core';import _0x1beb22 from'./ui/revisionviewer/changedetailsview';import _0x25ac15 from'./revisionsrepository';import _0x130e94 from'./changeitem';import{default as _0x220120}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x247f68}from'lodash-es';const tt={'c':_0x5d522a,'a':_0x12e6ca,'e':_0x29a267,'r':_0xc3ef03,'u':_0x1855af};export default class d extends _0x2cc1f8{static get[_0x2022('0xd0')](){return _0x2022('0x3e');}static get[_0x2022('0x1c')](){return[_0x101cf8,_0x390cce,_0x25ac15];}constructor(_0x171c6b){super(_0x171c6b),this['repository']=this[_0x2022('0x63')][_0x2022('0xad')]['get']('RevisionsRepository'),this['set'](_0x2022('0x1b'),null),this[_0x2022('0x112')](_0x2022('0x103'),null),this[_0x2022('0x4a')]=null,this['set'](_0x2022('0x1d'),null),this['set'](_0x2022('0xf2'),!0x1),this[_0x2022('0x112')](_0x2022('0x111'),!0x0),this['on'](_0x2022('0x49'),(_0x55b608,_0x327b4f,_0x2c1b39)=>{this['activeChange']=null,this[_0x2022('0x103')]=null,this['editor'][_0x2022('0x9d')][_0x2022('0xe2')][_0x2022('0x86')](_0x12a718=>{for(const _0x1d361a of this['editor']['editing']['view'][_0x2022('0x9b')]['roots'])_0x2c1b39?_0x12a718[_0x2022('0x76')](_0x2022('0x62'),_0x1d361a):_0x12a718[_0x2022('0x14')](_0x2022('0x62'),_0x1d361a);});}),this[_0x2022('0x8e')]('isNavigationMode')['to'](this,'activeChange',_0x4a6652=>null!==_0x4a6652),this[_0x2022('0x8e')](_0x2022('0x1e'))['to'](this,_0x2022('0xf2'),this,_0x2022('0x1d'),this,_0x2022('0x1b'),(_0x293a3e,_0x54c80f,_0x44a4d7)=>_0x293a3e&&_0x44a4d7?_0x54c80f[_0x2022('0x113')][_0x2022('0x54')](_0x44a4d7):0x0),this[_0x2022('0x8e')](_0x2022('0x73'))['to'](this,_0x2022('0xf2'),this,'diff',(_0x3e0046,_0x52a5f8)=>_0x3e0046?_0x52a5f8[_0x2022('0x113')][_0x2022('0x47')]:0x0),this['_changeView']=null,this[_0x2022('0x43')]=new Map(),this[_0x2022('0x8')]=null,this[_0x2022('0x70')]=this[_0x2022('0x63')][_0x2022('0xad')][_0x2022('0xc8')](_0x390cce);}['init'](){const _0x1db915=this[_0x2022('0x63')],_0x167ece=new ShowChangeCommand(_0x1db915,{'direction':_0x2022('0x6e')}),_0x2f1645=new ShowChangeCommand(_0x1db915,{'direction':_0x2022('0xf6')});(_0x1db915[_0x2022('0x29')][_0x2022('0x109')](_0x2022('0xb5'),_0x167ece),_0x1db915[_0x2022('0x29')][_0x2022('0x109')](_0x2022('0x2b'),_0x2f1645),_0x1db915[_0x2022('0x29')][_0x2022('0x109')](_0x2022('0xbb'),new RestoreRevisionCommand(_0x1db915)),this['on'](_0x2022('0x72'),()=>{_0x167ece[_0x2022('0x91')](),_0x2f1645[_0x2022('0x91')]();}),this[_0x2022('0xf9')](),this[_0x2022('0x74')](),_0x1db915[_0x2022('0x107')](_0x2022('0x11e')),_0x1db915['plugins'][_0x2022('0x102')](_0x2022('0x106')))&&_0x1db915[_0x2022('0xad')][_0x2022('0xc8')](_0x2022('0x106'))[_0x2022('0x58')](_0x2022('0x11e'));}async[_0x2022('0x116')](_0x84db4d){await this[_0x2022('0x9e')](_0x84db4d);const _0x572da3={};for(const _0x1bf031 in _0x84db4d[_0x2022('0x90')]){if(_0x84db4d[_0x2022('0x90')][_0x1bf031][_0x2022('0x55')]&&!_0x84db4d['diffData'][_0x1bf031]['attachChange'][_0x2022('0xcc')])continue;const _0x59b301=this[_0x2022('0xca')](JSON[_0x2022('0xbd')](_0x84db4d[_0x2022('0x90')][_0x1bf031][_0x2022('0x67')])),_0x38ae31=this[_0x2022('0x63')][_0x2022('0x9d')][_0x2022('0xe2')]['document'],_0x3ca9de=new _0x4b1a00(_0x38ae31,_0x59b301[_0x2022('0xd4')](_0x3d4958=>this[_0x2022('0x75')](_0x3d4958)));this[_0x2022('0x63')]['data'][_0x2022('0x27')][_0x2022('0x25')]('marked'),_0x572da3[_0x1bf031]=this[_0x2022('0x63')][_0x2022('0x32')]['processor'][_0x2022('0xb')](_0x3ca9de),this[_0x2022('0x63')][_0x2022('0x32')]['processor'][_0x2022('0x25')]('default');}return _0x572da3;}async['getRevisionRootsAttributes'](_0x11780a){await this[_0x2022('0x9e')](_0x11780a);const _0x3918d7={};for(const _0x5adfeb in _0x11780a[_0x2022('0x90')])_0x11780a[_0x2022('0x90')][_0x5adfeb][_0x2022('0x55')]&&!_0x11780a[_0x2022('0x90')][_0x5adfeb][_0x2022('0x55')][_0x2022('0xcc')]||(_0x3918d7[_0x5adfeb]=_0x11780a['diffData'][_0x5adfeb]['attributesAfter']||{});return _0x3918d7;}['_removeRevisionMarkers'](_0x3fc7e1){return(_0x3fc7e1=_0x3fc7e1[_0x2022('0xa0')](_0x5ac409=>!_0x5ac409[_0x2022('0xb3')]||_0x2022('0xaa')!==_0x5ac409['name']&&_0x2022('0xec')!==_0x5ac409[_0x2022('0xb3')]))[_0x2022('0x36')](_0x3add74=>{_0x2022('0xbf')!=typeof _0x3add74&&(_0x3add74[_0x2022('0x6a')]=this[_0x2022('0xca')](_0x3add74['children']),_0x3add74[_0x2022('0xc0')]=_0x3add74[_0x2022('0xc0')]['filter'](_0xe5c93e=>!_0xe5c93e[0x0][_0x2022('0x10e')](_0x2022('0x64'))));}),_0x3fc7e1;}async[_0x2022('0x80')](_0x1e251f,_0x4c4ada,_0x20b634=!0x1){if(!this['isEnabled'])return;const _0x3c1653=this[_0x2022('0x1d')],_0x71a32b=this['repository'],_0x398793='string'==typeof _0x1e251f?_0x71a32b[_0x2022('0x51')](_0x1e251f):_0x1e251f,_0x15efb8=_0x2022('0xbf')==typeof _0x4c4ada?_0x71a32b[_0x2022('0x51')](_0x4c4ada):_0x4c4ada,_0x1d8f9f=_0x398793['id'],_0x35742a=_0x15efb8?_0x15efb8['id']:null;if(!_0x20b634&&this[_0x2022('0x1d')]&&this['diff'][_0x2022('0xd5')]===_0x1d8f9f&&this[_0x2022('0x1d')][_0x2022('0x12')]===_0x35742a)return Promise[_0x2022('0xe9')]();this['isReady']=!0x1,this[_0x2022('0x103')]=null,this[_0x2022('0x1b')]=null,this['diff']=new _0x220120(_0x1d8f9f,_0x35742a);const _0xc21473=this[_0x2022('0x45')](_0x398793,_0x15efb8,!0x0)[_0x2022('0xd4')](_0x3a8b53=>this[_0x2022('0x9e')](_0x3a8b53));return _0xc21473[_0x2022('0x10b')](new Promise(_0x3ebf9f=>{setTimeout(_0x3ebf9f,0x14);})),Promise[_0x2022('0x8c')](_0xc21473)[_0x2022('0x53')](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x47c5e3=this[_0x2022('0x41')](_0x1d8f9f,_0x35742a);for(const _0x232a5b of _0x47c5e3[_0x2022('0x113')])this[_0x2022('0x43')][_0x2022('0x112')](_0x232a5b['id'],_0x232a5b);this['editor'][_0x2022('0xc3')][_0x2022('0x7b')]({'isUndoable':!0x1},_0x35d9c8=>{for(const _0x445a98 of this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0x9b')][_0x2022('0x98')]())_0x35d9c8[_0x2022('0xa6')](_0x445a98);for(const _0x46af89 of Object[_0x2022('0x20')](_0x47c5e3['model'])){const _0x194804=_0x35d9c8[_0x2022('0x8d')](_0x46af89);for(const _0x1e6e21 of Object['keys'](_0x47c5e3['attributes'][_0x46af89]))_0x35d9c8[_0x2022('0x18')](_0x1e6e21,_0x47c5e3[_0x2022('0xc0')][_0x46af89][_0x1e6e21],_0x194804);_0x35d9c8[_0x2022('0x13')](_0x47c5e3['model'][_0x46af89],_0x194804,0x0);}}),this[_0x2022('0x1d')][_0x2022('0xdd')](this[_0x2022('0xf1')](_0x47c5e3[_0x2022('0x113')])),this[_0x2022('0xf2')]=!0x0;})['catch'](_0x2268e6=>{console[_0x2022('0xf')](_0x2268e6),this['_cleanUp'](),_0x3c1653&&(this[_0x2022('0x1d')]=_0x3c1653),this['isReady']=!0x0;});}[_0x2022('0x7c')](_0x5774af,_0x1d2810){const _0x593db8=this[_0x2022('0x3f')][_0x2022('0x66')](_0x5774af);return _0x593db8['on'](_0x2022('0xcf'),(_0x31c0a8,_0x150419,_0x565456)=>_0x1d2810(_0x150419,_0x565456,_0x593db8)),this[_0x2022('0x3f')][_0x2022('0xaf')](_0x593db8),_0x593db8;}['loadRevisionData'](_0x163164){if(!_0x163164||_0x163164[_0x2022('0x90')])return Promise[_0x2022('0xe9')]();{const _0xfb1f6d=this[_0x2022('0x63')]['config'][_0x2022('0xc8')](_0x2022('0xb7'));return this[_0x2022('0x8')]['getRevision']({'channelId':_0xfb1f6d,'revisionId':_0x163164['id']})[_0x2022('0x53')](_0x5881be=>{_0x163164[_0x2022('0xcf')]({'diffData':_0x5881be[_0x2022('0x90')]},!0x0);});}}[_0x2022('0x5')](){this[_0x2022('0x1b')]=null,this['_cleanMarkers'](),this[_0x2022('0x117')]&&this['_changeView'][_0x2022('0xe7')](),this['_changeView']=null,this[_0x2022('0x43')][_0x2022('0x35')](),this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0x7b')]({'isUndoable':!0x1},_0x307f85=>{for(const _0x12838b of this['editor'][_0x2022('0xc3')]['document'][_0x2022('0x98')]())_0x307f85[_0x2022('0xa6')](_0x12838b);});}[_0x2022('0xf1')](_0x29069b){const _0x39b404=[],_0x41fb88=new Map();for(const _0xcb5d07 of this['editor'][_0x2022('0xc3')][_0x2022('0x9b')][_0x2022('0x98')]()){const _0x22f199=this['editor'][_0x2022('0x9d')][_0x2022('0xe2')]['getDomRoot'](_0xcb5d07);if(!_0x22f199)continue;const _0x24661c=_0x22f199[_0x2022('0xe0')]()[_0x2022('0x5f')](0x0);_0x24661c&&(_0x39b404['push'](_0xcb5d07),_0x41fb88[_0x2022('0x112')](_0xcb5d07,_0x24661c));}return _0x39b404[_0x2022('0x56')]((_0x9d0725,_0x394bf7)=>{const _0x267e8b=_0x41fb88[_0x2022('0xc8')](_0x9d0725),_0x32c2bd=_0x41fb88['get'](_0x394bf7);return _0x267e8b['y']-_0x32c2bd['y']||_0x267e8b['x']-_0x32c2bd['x'];}),(_0x29069b=_0x29069b['filter'](_0x1cdec4=>_0x39b404['includes'](_0x1cdec4['rootName'])))['sort']((_0x2cd9e2,_0x82f8fa)=>_0x39b404[_0x2022('0x65')](_0x2cd9e2['rootName'])-_0x39b404['indexOf'](_0x82f8fa[_0x2022('0x3b')])),_0x29069b;}[_0x2022('0x11')](_0x46e2ba){const _0x2a7a76=Array[_0x2022('0x4f')](_0x46e2ba[_0x2022('0xc7')])[_0x2022('0xa0')](([_0xc98a90,_0x2af25e])=>_0xc98a90[_0x2022('0x10e')]('revision:')&&!_0x2af25e['isCollapsed']),_0x99b9e=Array[_0x2022('0x4f')](this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0xdb')](_0x46e2ba)[_0x2022('0xd9')]({'singleCharacters':!0x0}));if(0x0!=_0x2a7a76[_0x2022('0x47')])for(const _0x1a4edc of _0x99b9e){const [_0x488a1c,_0x2db063]=_0x2a7a76[0x0],[,_0x539ae9,_0x2ee097]=_0x488a1c[_0x2022('0xe1')](':');if(_0x2db063['end'][_0x2022('0xce')](_0x1a4edc[_0x2022('0x78')])&&_0x2a7a76[_0x2022('0xf8')](),(_0x1a4edc['previousPosition'][_0x2022('0xce')](_0x2db063[_0x2022('0xd8')])||_0x1a4edc[_0x2022('0x3a')][_0x2022('0xac')](_0x2db063['start']))&&('insertion'==_0x539ae9?_0x1a4edc[_0x2022('0x100')]={'userId':_0x2ee097}:_0x2022('0x1a')==_0x539ae9&&(_0x1a4edc[_0x2022('0x96')]={'userId':_0x2ee097})),0x0==_0x2a7a76[_0x2022('0x47')])break;}return _0x99b9e;}[_0x2022('0x42')](_0x384ddc){const _0x46786c=new Map();for(let _0x3c0143=0x0;_0x3c0143<_0x384ddc[_0x2022('0x47')];_0x3c0143++)'text'===_0x384ddc[_0x3c0143][_0x2022('0x108')]?(_0x384ddc[_0x3c0143][_0x2022('0x5f')]['startIndex']=_0x3c0143,_0x384ddc[_0x3c0143]['item'][_0x2022('0xff')]=_0x3c0143):('elementStart'===_0x384ddc[_0x3c0143][_0x2022('0x108')]?_0x384ddc[_0x3c0143][_0x2022('0x5f')][_0x2022('0xa')]=_0x3c0143:_0x2022('0x5c')===_0x384ddc[_0x3c0143]['type']&&(_0x384ddc[_0x3c0143]['item'][_0x2022('0xff')]=_0x3c0143),_0x46786c[_0x2022('0x112')](_0x384ddc[_0x3c0143]['id'],_0x3c0143));for(const _0x3db377 of _0x46786c['values']())_0x2022('0x7d')===_0x384ddc[_0x3db377][_0x2022('0x108')]?_0x384ddc[_0x3db377]['item'][_0x2022('0xff')]=_0x46786c['get'](_0x384ddc[_0x3db377][_0x2022('0x5b')]):_0x2022('0x5c')===_0x384ddc[_0x3db377][_0x2022('0x108')]&&(_0x384ddc[_0x3db377]['item'][_0x2022('0xa')]=_0x46786c[_0x2022('0xc8')](_0x384ddc[_0x3db377][_0x2022('0x5b')]));}[_0x2022('0x79')](_0x4fa05c){for(let _0x6b896e=0x0;_0x6b896e<_0x4fa05c[_0x2022('0x47')];_0x6b896e++){if(_0x2022('0x7d')===_0x4fa05c[_0x6b896e][_0x2022('0x108')])_0x4fa05c[_0x6b896e][_0x2022('0x5f')]['startIndex']=_0x6b896e;else{if(_0x2022('0x5c')===_0x4fa05c[_0x6b896e]['type']){_0x4fa05c[_0x6b896e][_0x2022('0x5f')][_0x2022('0xff')]=_0x6b896e;const _0x32d80e=_0x4fa05c[_0x6b896e][_0x2022('0x5f')][_0x2022('0xa')];_0x4fa05c[_0x32d80e][_0x2022('0x5b')]=_0x4fa05c[_0x6b896e]['id'],_0x4fa05c[_0x6b896e]['pairId']=_0x4fa05c[_0x32d80e]['id'];}else _0x4fa05c[_0x6b896e][_0x2022('0x5f')][_0x2022('0xa')]=_0x6b896e,_0x4fa05c[_0x6b896e][_0x2022('0x5f')]['endIndex']=_0x6b896e,_0x4fa05c[_0x6b896e][_0x2022('0x5b')]=null;}_0x4fa05c[_0x6b896e][_0x2022('0xf5')]||(_0x4fa05c[_0x6b896e][_0x2022('0xf5')]=[],_0x4fa05c[_0x6b896e]['markersEnd']=[]);}}[_0x2022('0xfc')](_0x365d6a,_0x2a21bd){const _0x1c6af6=_0x365d6a[_0x2022('0xa0')](_0x5ec798=>!_0x5ec798[_0x2022('0x100')]);for(let _0x4866d6=0x0;_0x4866d6<_0x2a21bd[_0x2022('0x47')];_0x4866d6++)_0x2a21bd[_0x4866d6][_0x2022('0x100')]&&(_0x1c6af6[_0x4866d6][_0x2022('0x100')]=_0x2a21bd[_0x4866d6][_0x2022('0x100')]);}[_0x2022('0x115')](_0x364dd3){const _0x191456=JSON['parse'](_0x364dd3),_0x20fe3b=this[_0x2022('0x63')]['editing'][_0x2022('0xe2')][_0x2022('0x9b')],_0x521a7c=new _0x4b1a00(_0x20fe3b,_0x191456[_0x2022('0xd4')](_0x536d05=>this[_0x2022('0x75')](_0x536d05)));return this[_0x2022('0x63')][_0x2022('0x32')][_0x2022('0x9f')](_0x521a7c);}[_0x2022('0x75')](_0x3510a4){const _0x6d049e=this[_0x2022('0x63')][_0x2022('0x9d')]['view'][_0x2022('0x9b')];if(_0x2022('0xbf')==typeof _0x3510a4)return new _0x4a8b84(_0x6d049e,_0x3510a4);{const _0x3baa23=_0x3510a4[_0x2022('0x6a')]['map'](_0x50a6ae=>this[_0x2022('0x75')](_0x50a6ae));return new(tt[_0x3510a4['type']]||_0x3d4192)(_0x6d049e,_0x3510a4['name'],_0x3510a4[_0x2022('0xc0')],_0x3baa23);}}[_0x2022('0x41')](_0x2c7e09,_0x435718=null){const _0x57a2b0=this[_0x2022('0x3f')]['getRevision'](_0x2c7e09),_0x516685=_0x435718?this[_0x2022('0x3f')]['getRevision'](_0x435718):null,_0x3fbffc=this[_0x2022('0x45')](_0x57a2b0,_0x516685),_0xdd12d9=_0x3fbffc[_0x3fbffc[_0x2022('0x47')]-0x1],_0x50de58=new Map(),_0x30b676={'model':{},'attributes':{},'changes':[]},_0x394da8=new Set(),_0x55e998=new Map();for(let _0x4c93dc=_0x3fbffc[_0x2022('0x47')]-0x1;_0x4c93dc>=0x0;_0x4c93dc--){const _0xe0a4e1=_0x3fbffc[_0x4c93dc];for(const _0x2250f6 of Object[_0x2022('0x20')](_0xe0a4e1[_0x2022('0x90')]))if(_0xe0a4e1[_0x2022('0x90')][_0x2250f6]['attachChange']){const _0x3e80d5=_0xe0a4e1[_0x2022('0x90')][_0x2250f6][_0x2022('0x55')];_0x3e80d5[_0x2022('0xcc')]?(_0x394da8['add'](_0x2250f6),_0x55e998['has'](_0x2250f6)&&_0x55e998[_0x2022('0xc8')](_0x2250f6)['userId']==_0x3e80d5['userId']?_0x55e998['delete'](_0x2250f6):_0x55e998[_0x2022('0x112')](_0x2250f6,_0x3e80d5)):_0x55e998['has'](_0x2250f6)?(_0x394da8[_0x2022('0x97')](_0x2250f6),_0x55e998[_0x2022('0x97')](_0x2250f6)):(_0x394da8[_0x2022('0x109')](_0x2250f6),_0x55e998['set'](_0x2250f6,_0x3e80d5));}else _0x394da8[_0x2022('0x109')](_0x2250f6);}for(const _0x5f4bc1 of _0x394da8){const _0x128c8c=_0x55e998['has'](_0x5f4bc1)&&!_0x55e998[_0x2022('0xc8')](_0x5f4bc1)[_0x2022('0xcc')];let _0x354d9d=_0x128c8c?_0x3fbffc['length']-0x1:0x0;const _0xbf720d=_0x128c8c?-0x1:0x1;for(;_0x3fbffc[_0x354d9d];){const _0x494b19=_0x3fbffc[_0x354d9d];if(_0x494b19[_0x2022('0x90')][_0x5f4bc1]){const _0x58e7c2=_0x128c8c?_0x494b19[_0x2022('0x90')][_0x5f4bc1][_0x2022('0xfe')]:_0x494b19['diffData'][_0x5f4bc1][_0x2022('0x4e')];_0x30b676[_0x2022('0xc0')][_0x5f4bc1]=_0x58e7c2?_0x247f68(_0x58e7c2):{};break;}_0x354d9d+=_0xbf720d;}}for(const _0x5d3d1d of _0x3fbffc){_0x5d3d1d[_0x2022('0xc3')]={};for(const _0x593224 of _0x5d3d1d[_0x2022('0x9')])_0x50de58[_0x2022('0x112')](_0x593224['id'],_0x593224);for(const _0x1f9844 of _0x394da8){const _0x5b6f6f=_0x5d3d1d[_0x2022('0x90')][_0x1f9844]?_0x5d3d1d[_0x2022('0x90')][_0x1f9844][_0x2022('0x67')]:'[]',_0x5030a4=_0x5d3d1d[_0x2022('0x90')][_0x1f9844]?_0x5d3d1d[_0x2022('0x90')][_0x1f9844][_0x2022('0x69')]:'[]';_0x5d3d1d['model'][_0x1f9844]={'insertions':this[_0x2022('0x115')](_0x5b6f6f),'deletions':this[_0x2022('0x115')](_0x5030a4)};}}for(const _0xc35daf of _0x394da8){let _0x493002=null,_0x2aec75=0x0;const _0x3d868b=new Map(Array['from'](_0x57a2b0[_0x2022('0xc3')][_0xc35daf][_0x2022('0x67')][_0x2022('0xc7')])[_0x2022('0xa0')](([_0x473a40])=>!_0x473a40[_0x2022('0x10e')]('revision:')));let _0x1a66bf=0x0;for(const _0x4d1d5f of _0x3fbffc){const _0xc308c5=this['_makeTape'](_0x4d1d5f['model'][_0xc35daf][_0x2022('0x67')]);_0x4d1d5f==_0x57a2b0?(_0x493002=_0xc308c5,_0x2aec75=_0x493002[_0x2022('0x47')],_0x493002[_0x2022('0x36')](_0x391173=>{_0x391173['id']=_0x1a66bf++;}),this[_0x2022('0x79')](_0x493002)):this['_markInsertions'](_0x493002,_0xc308c5);const _0x395a2f=_0x493002[_0x2022('0xa0')](_0x5207f5=>!_0x5207f5[_0x2022('0x100')])['map'](_0x1f8fb2=>_0x1f8fb2['id']);let _0x230c18=0x0;const _0x43914c=this['_makeTape'](_0x4d1d5f[_0x2022('0xc3')][_0xc35daf][_0x2022('0x69')]);_0x43914c[_0x2022('0x36')](_0x5ab177=>{_0x5ab177[_0x2022('0x96')]?_0x5ab177['id']=_0x2aec75++:_0x5ab177['id']=_0x395a2f[_0x230c18++];}),this[_0x2022('0x79')](_0x43914c),this[_0x2022('0xde')](_0x493002,_0x2022('0x100')),this[_0x2022('0xde')](_0x43914c,_0x2022('0x96')),_0x4d1d5f==_0x57a2b0&&this[_0x2022('0x10d')](_0x493002,_0x3d868b),_0x493002=this[_0x2022('0xed')](_0x493002,_0x43914c),this[_0x2022('0x42')](_0x493002),this['_setDistance'](_0x493002,'isRemoved');}_0x493002=_0x493002[_0x2022('0xa0')](_0x4b60ed=>!(_0x4b60ed['isAdded']&&_0x4b60ed[_0x2022('0x96')]));const _0x39938d=new Map(_0xdd12d9[_0x2022('0xc3')][_0xc35daf]['deletions']['markers']),_0x121b14=new Set(_0x3d868b[_0x2022('0x20')]());for(const _0x3ef6cf of _0x39938d['keys']())_0x121b14[_0x2022('0x97')](_0x3ef6cf);this[_0x2022('0x4c')](_0x493002,_0x121b14),this[_0x2022('0x114')](_0x493002),_0x493002=this[_0x2022('0xb8')](_0x493002),_0x493002=this['_markMismatchedRemovedTags'](_0x493002),_0x493002=this['_removeUnsupportedChanges'](_0x493002);const {root:_0x3fd51b,changes:_0x47bade}=this[_0x2022('0x8f')](_0x493002,_0x50de58,_0xc35daf);_0x30b676[_0x2022('0xc3')][_0xc35daf]=_0x3fd51b;const _0x51495a=_0x55e998['get'](_0xc35daf);if(_0x51495a){const _0x29b6bc=_0x50de58[_0x2022('0xc8')](_0x51495a[_0x2022('0xa7')]),_0x1233af=new _0x130e94({'author':_0x29b6bc,'type':_0x51495a[_0x2022('0xcc')]?_0x2022('0x109'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xc35daf});_0x47bade[_0x2022('0x2a')](_0x1233af),_0x30b676[_0x2022('0xc0')][_0xc35daf][_0x2022('0xfd')]=_0x1233af['id'];}_0x30b676['changes']=_0x30b676[_0x2022('0x113')][_0x2022('0x124')](_0x47bade);}return _0x30b676;}[_0x2022('0x10d')](_0x479b8f,_0x1d9949){for(let _0x4b304c=0x0;_0x4b304c<_0x479b8f['length'];_0x4b304c++)for(const [_0x19aa9d,_0x43eb03]of _0x1d9949)_0x43eb03['start'][_0x2022('0xce')](_0x479b8f[_0x4b304c][_0x2022('0x3a')])&&_0x479b8f[_0x4b304c][_0x2022('0xf5')][_0x2022('0x10b')](_0x19aa9d),_0x43eb03[_0x2022('0xef')][_0x2022('0xce')](_0x479b8f[_0x4b304c][_0x2022('0x78')])&&_0x479b8f[_0x4b304c]['markersEnd'][_0x2022('0x10b')](_0x19aa9d);}[_0x2022('0xed')](_0x1eb268,_0x133ad6){let _0x4b1c89=[],_0x52c847=0x0,_0x105a39=0x0;for(;_0x52c847<_0x1eb268['length']||_0x105a39<_0x133ad6[_0x2022('0x47')];){const _0x492e3a=_0x1eb268[_0x52c847]||{},_0x536731=_0x133ad6[_0x105a39]||{};if(_0x492e3a['id']==_0x536731['id'])_0x52c847++,_0x105a39++,_0x4b1c89[_0x2022('0x10b')](_0x492e3a);else{if(_0x536731[_0x2022('0x96')]&&_0x492e3a[_0x2022('0x100')]){const {commonTape:_0x640173,iEnd:_0x3a815d,jEnd:_0x3cc7d0}=this[_0x2022('0xa1')](_0x1eb268,_0x52c847,_0x133ad6,_0x105a39);_0x4b1c89=_0x4b1c89[_0x2022('0x124')](_0x640173),_0x52c847=_0x3a815d,_0x105a39=_0x3cc7d0;}else _0x536731[_0x2022('0x96')]?(_0x105a39++,_0x4b1c89[_0x2022('0x10b')](_0x536731)):(_0x52c847++,_0x4b1c89['push'](_0x492e3a));}}return _0x4b1c89;}[_0x2022('0x4c')](_0x3f2374,_0x4b58c2){const _0x59337c=[];for(let _0x4aa450=0x0;_0x4aa450<_0x3f2374[_0x2022('0x47')];_0x4aa450++){for(let _0x4ce8e1=0x0;_0x4ce8e1<_0x3f2374[_0x4aa450]['markersStart'][_0x2022('0x47')];_0x4ce8e1++){const _0x593cec=_0x3f2374[_0x4aa450][_0x2022('0xf5')][_0x4ce8e1];if(!_0x4b58c2[_0x2022('0x102')](_0x593cec))continue;const {group:_0x52c1ed,type:_0x1630ae,authorId:_0x14239e}=_0x1d81ca(_0x593cec);_0x2022('0xbe')!=_0x52c1ed||'insertion'!=_0x1630ae&&_0x2022('0x1a')!=_0x1630ae||(_0x59337c[_0x2022('0x2a')]({'type':_0x1630ae,'name':_0x593cec,'userId':_0x14239e}),_0x3f2374[_0x4aa450][_0x2022('0xf5')][_0x2022('0x11a')](_0x4ce8e1,0x1),_0x4ce8e1--);}_0x200e0f(_0x3f2374[_0x4aa450]);for(let _0x382f49=0x0;_0x382f49<_0x3f2374[_0x4aa450][_0x2022('0x0')][_0x2022('0x47')];_0x382f49++){const _0x3e269a=_0x3f2374[_0x4aa450][_0x2022('0x0')][_0x382f49];if(!_0x4b58c2[_0x2022('0x102')](_0x3e269a))continue;const {group:_0x333cf3,type:_0xf19db1}=_0x1d81ca(_0x3e269a);if(_0x2022('0xbe')!=_0x333cf3||_0x2022('0xc9')!=_0xf19db1&&'deletion'!=_0xf19db1)continue;_0x3f2374[_0x4aa450][_0x2022('0x0')][_0x2022('0x11a')](_0x382f49,0x1),_0x382f49--;const _0x2d329a=_0x59337c[_0x2022('0x34')](_0x5022bd=>_0x5022bd[_0x2022('0xb3')]==_0x3e269a);_0x2d329a>-0x1&&_0x59337c[_0x2022('0x11a')](_0x2d329a,0x1);}}function _0x1d81ca(_0x94622f){const _0x27bd4d=_0x94622f['split'](':');return{'group':_0x27bd4d[0x0],'type':_0x27bd4d[0x1],'subType':_0x27bd4d[_0x2022('0x47')]>=0x5?_0x27bd4d[0x2]:null,'id':_0x27bd4d['length']<0x5?_0x27bd4d[0x2]:_0x27bd4d[0x3],'authorId':_0x27bd4d['length']<0x5?_0x27bd4d[0x3]:_0x27bd4d[0x4],'markerCount':0x6==_0x27bd4d[_0x2022('0x47')]?_0x27bd4d[0x5]:null};}function _0x200e0f(_0x2ab715){for(let _0xc9b7e5=0x0;_0xc9b7e5<_0x59337c['length'];_0xc9b7e5++){if(_0x2ab715[_0x2022('0x100')]&&_0x2022('0xc9')==_0x59337c[_0xc9b7e5][_0x2022('0x108')])return _0x2ab715[_0x2022('0x4')]=_0x59337c[_0xc9b7e5],void delete _0x2ab715[_0x2022('0x100')];if(!_0x2ab715['isAdded']&&!_0x2ab715[_0x2022('0x96')]&&'deletion'==_0x59337c[_0xc9b7e5][_0x2022('0x108')])return void(_0x2ab715['isRemoveSuggestion']=_0x59337c[_0xc9b7e5]);}}}[_0x2022('0xde')](_0x14a536,_0xe31ce4){let _0x4fe744=0x0,_0xe843c0=!0x1;const _0x366cae=new Map();for(const _0x5693d2 of _0x14a536)_0x5693d2[_0xe31ce4]?_0xe843c0&&(_0x4fe744++,_0xe843c0=!0x1):(_0x4fe744++,_0xe843c0=!0x0),_0x366cae[_0x2022('0x112')](_0x5693d2['id'],_0x4fe744);for(let _0x3dab9f=0x0;_0x3dab9f<_0x14a536['length'];_0x3dab9f++){if(_0x2022('0x96')==_0xe31ce4&&_0x14a536[_0x3dab9f][_0x2022('0x100')]||_0x2022('0x100')==_0xe31ce4&&_0x14a536[_0x3dab9f]['isRemoved'])continue;if(_0x2022('0x5d')==_0x14a536[_0x3dab9f][_0x2022('0x108')]){_0x14a536[_0x3dab9f]['distance']=0x0;continue;}const _0x1f3070=_0x366cae[_0x2022('0xc8')](_0x14a536[_0x3dab9f][_0x2022('0x5b')]),_0x5b8f56=_0x366cae[_0x2022('0xc8')](_0x14a536[_0x3dab9f]['id']);_0x14a536[_0x3dab9f]['distance']=_0x1f3070-_0x5b8f56;}}[_0x2022('0x45')](_0x39be3d,_0x45a4cc,_0x4025a1=!0x1){const _0x486860=[];let _0x18541b=this['repository'][_0x2022('0x54')](_0x39be3d),_0x4e1968=this[_0x2022('0x3f')][_0x2022('0x54')](_0x45a4cc);for(-0x1==_0x4e1968&&(_0x4e1968=this[_0x2022('0x3f')][_0x2022('0x7')][_0x2022('0x47')],_0x4025a1=!0x1);_0x18541b<_0x4e1968;)_0x486860['push'](this[_0x2022('0x3f')][_0x2022('0x51')](_0x18541b)),_0x18541b++;return _0x4025a1&&_0x486860[_0x2022('0x10b')](this['repository'][_0x2022('0x51')](_0x18541b)),_0x486860;}[_0x2022('0xa1')](_0x329d95,_0x46f90e,_0x4a3734,_0x2bd7f7){const _0x3d60b1=this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0xb2')];let _0x3c5307=_0x46f90e;for(;_0x329d95[_0x3c5307]&&_0x329d95[_0x3c5307][_0x2022('0x100')];)_0x3c5307++;let _0x35b17e=_0x2bd7f7;for(;_0x4a3734[_0x35b17e]&&_0x4a3734[_0x35b17e][_0x2022('0x96')];)_0x35b17e++;_0x20f57d(_0x329d95,_0x46f90e,_0x3c5307),_0x20f57d(_0x4a3734,_0x2bd7f7,_0x35b17e);const _0xc45c3f=_0x4a3734[_0x2022('0x57')](_0x2bd7f7,_0x35b17e)['concat'](_0x329d95[_0x2022('0x57')](_0x46f90e,_0x3c5307));return _0xc45c3f['sort']((_0x233a1c,_0x56a4a5)=>_0x233a1c[_0x2022('0xe4')]!=_0x56a4a5[_0x2022('0xe4')]?_0x233a1c[_0x2022('0xe4')]-_0x56a4a5[_0x2022('0xe4')]:_0x233a1c['level']!=_0x56a4a5[_0x2022('0x21')]?_0x233a1c[_0x2022('0x21')]-_0x56a4a5[_0x2022('0x21')]:_0x233a1c['distance']!=_0x56a4a5[_0x2022('0x52')]?_0x56a4a5[_0x2022('0x52')]-_0x233a1c[_0x2022('0x52')]:!!_0x233a1c[_0x2022('0x100')]!=!!_0x56a4a5[_0x2022('0x100')]?-0x1==_0x233a1c[_0x2022('0xe4')]||0x0==_0x233a1c['side']?_0x233a1c[_0x2022('0x100')]?-0x1:0x1:_0x233a1c[_0x2022('0x100')]?0x1:-0x1:_0x233a1c['index']-_0x56a4a5[_0x2022('0x11c')]),{'commonTape':_0xc45c3f,'iEnd':_0x3c5307,'jEnd':_0x35b17e};function _0x20f57d(_0x4e6a44,_0x277a57,_0x521d17){let _0x4edf02=-0x1,_0xf7e2e2=Number['POSITIVE_INFINITY'],_0x482a91=!0x0;for(let _0x74f5b8=_0x277a57;_0x74f5b8<_0x521d17;_0x74f5b8++)if(_0x3d60b1[_0x2022('0x11d')](_0x4e6a44[_0x74f5b8][_0x2022('0x5f')])||(_0x482a91=!0x1),_0x4e6a44[_0x74f5b8][_0x2022('0x5f')][_0x2022('0xa')]<_0x277a57&&(_0x4edf02=_0x74f5b8),_0x4e6a44[_0x74f5b8][_0x2022('0x5f')][_0x2022('0xff')]>=_0x521d17){_0xf7e2e2=_0x74f5b8;break;}_0x482a91&&(_0x4edf02=_0x521d17-0x1);for(let _0x1c2137=_0x277a57;_0x1c2137<_0x521d17;_0x1c2137++)_0x4e6a44[_0x1c2137][_0x2022('0xe4')]=_0x1c2137<=_0x4edf02?-0x1:_0x1c2137<_0xf7e2e2?0x0:0x1,_0x4e6a44[_0x1c2137][_0x2022('0x11c')]=_0x1c2137;let _0x49f7c4=0x0;for(let _0x42cc3d=_0x277a57;_0x42cc3d<=_0x4edf02;_0x42cc3d++)0x0==_0x4e6a44[_0x42cc3d][_0x2022('0x52')]?_0x4e6a44[_0x42cc3d]['level']=_0x49f7c4:(_0x49f7c4++,_0x4e6a44[_0x42cc3d]['level']=_0x49f7c4,_0x49f7c4++);for(let _0x194d25=_0x277a57;_0x194d25<_0x521d17;_0x194d25++)0x0==_0x4e6a44[_0x194d25]['side']&&(_0x4e6a44[_0x194d25]['level']=_0x49f7c4);_0x49f7c4=0x0;for(let _0x2d5083=_0x521d17-0x1;_0x2d5083>=_0xf7e2e2;_0x2d5083--)0x0==_0x4e6a44[_0x2d5083][_0x2022('0x52')]?_0x4e6a44[_0x2d5083][_0x2022('0x21')]=_0x49f7c4:(_0x49f7c4--,_0x4e6a44[_0x2d5083][_0x2022('0x21')]=_0x49f7c4,_0x49f7c4--);}}[_0x2022('0x114')](_0xbabd7e){const _0x47b58d=new Map(),_0x4f9bab=this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0xb2')];for(let _0x17b9df=0x1;_0x17b9df<_0xbabd7e[_0x2022('0x47')];_0x17b9df++){let _0xc39626,_0x58bf24,_0xf642bb;const _0x2e8a80=_0xbabd7e[_0x17b9df],_0x516655=_0xbabd7e[_0x17b9df-0x1];if(_0x2022('0x5d')==_0x2e8a80[_0x2022('0x108')])continue;if(_0x2e8a80['type']!=_0x516655[_0x2022('0x108')])continue;if(!_0x4f9bab[_0x2022('0x30')](_0x516655[_0x2022('0x5f')])||_0x4f9bab['isLimit'](_0x516655[_0x2022('0x5f')]))continue;if(!_0x4f9bab[_0x2022('0x30')](_0x2e8a80[_0x2022('0x5f')])||_0x4f9bab[_0x2022('0xc6')](_0x2e8a80[_0x2022('0x5f')]))continue;if((_0xbabd7e[_0x17b9df]['isAdded']||_0xbabd7e[_0x17b9df][_0x2022('0x4')])&&_0xbabd7e[_0x17b9df-0x1]['isRemoved'])_0xc39626=_0xbabd7e[_0x17b9df],_0x58bf24=_0xbabd7e[_0x17b9df-0x1],_0xf642bb=_0x17b9df-0x1;else{if(!_0xbabd7e[_0x17b9df][_0x2022('0x96')]||!_0xbabd7e[_0x17b9df-0x1][_0x2022('0x100')]&&!_0xbabd7e[_0x17b9df-0x1][_0x2022('0x4')])continue;_0xc39626=_0xbabd7e[_0x17b9df-0x1],_0x58bf24=_0xbabd7e[_0x17b9df],_0xf642bb=_0x17b9df;}const _0x3bc156=_0xc39626[_0x2022('0x21')]==_0x58bf24[_0x2022('0x21')],_0x5597bb=Math[_0x2022('0x7e')](_0xc39626[_0x2022('0x21')])<Math[_0x2022('0x7e')](_0x58bf24[_0x2022('0x21')])&&0x0==_0x58bf24[_0x2022('0x52')];(_0x3bc156||_0x5597bb)&&(_0x47b58d[_0x2022('0x112')](_0x58bf24['id'],_0xc39626['id']),_0xbabd7e[_0x2022('0x11a')](_0xf642bb,0x1),_0x17b9df--,_0xc39626[_0x2022('0x100')]=!0x1);}for(let _0x3a1266=0x0;_0x3a1266<_0xbabd7e[_0x2022('0x47')];_0x3a1266++)_0x47b58d[_0x2022('0x102')](_0xbabd7e[_0x3a1266][_0x2022('0x5b')])&&(_0xbabd7e[_0x3a1266]['pairId']=_0x47b58d[_0x2022('0xc8')](_0xbabd7e[_0x3a1266][_0x2022('0x5b')]));}[_0x2022('0xb8')](_0x1ec699){const _0xfc68b=new Set(_0x1ec699[_0x2022('0xd4')](_0x30cc2f=>_0x30cc2f['id']));for(let _0x109b37=0x0;_0x109b37<_0x1ec699['length'];_0x109b37++)_0xfc68b[_0x2022('0x102')](_0x1ec699[_0x109b37][_0x2022('0x5b')])||0x0==_0x1ec699[_0x109b37][_0x2022('0x52')]||(_0x1ec699[_0x109b37][_0x2022('0x81')]=!0x0);return _0x1ec699[_0x2022('0xa0')](_0x4486ea=>!_0x4486ea[_0x2022('0x81')]);}[_0x2022('0xbc')](_0x8cf395){const _0x1a6a02=new Set();for(let _0x199c10=0x0;_0x199c10<_0x8cf395[_0x2022('0x47')];_0x199c10++){if(_0x1a6a02['has'](_0x8cf395[_0x199c10]['id'])&&_0x8cf395[_0x199c10][_0x2022('0x96')]&&(_0x8cf395[_0x199c10]['isIncorrect']=!0x0),_0x8cf395[_0x199c10][_0x2022('0x81')])continue;if(0x0==_0x8cf395[_0x199c10][_0x2022('0x52')])continue;if('elementStart'!=_0x8cf395[_0x199c10][_0x2022('0x108')])continue;if(null==_0x8cf395[_0x199c10][_0x2022('0x5b')])continue;let _0xee37d5=_0x199c10+0x1,_0x4f0753=0x0;for(;_0x8cf395[_0xee37d5]['id']!=_0x8cf395[_0x199c10][_0x2022('0x5b')];)'elementStart'==_0x8cf395[_0xee37d5][_0x2022('0x108')]?_0x4f0753++:_0x2022('0x5c')==_0x8cf395[_0xee37d5][_0x2022('0x108')]&&_0x4f0753--,_0xee37d5++;if(0x0!=_0x4f0753){if(_0x8cf395[_0x199c10][_0x2022('0x96')])_0x8cf395[_0x199c10]['isIncorrect']=!0x0;else for(;_0xee37d5!=_0x199c10;)_0x8cf395[_0xee37d5][_0x2022('0x96')]&&0x0!=_0x8cf395[_0xee37d5][_0x2022('0x52')]&&(_0x8cf395[_0xee37d5][_0x2022('0x81')]=!0x0,_0x1a6a02[_0x2022('0x109')](_0x8cf395[_0xee37d5]['pairId'])),_0xee37d5--;}}return _0x8cf395[_0x2022('0xa0')](_0x1ad6f0=>!_0x1ad6f0['isIncorrect']);}[_0x2022('0x4d')](_0x3c6099){const _0x298e9c=this[_0x2022('0x63')][_0x2022('0xc3')]['schema'];for(let _0xb083d8=0x0;_0xb083d8<_0x3c6099[_0x2022('0x47')];_0xb083d8++){if(!(_0x3c6099[_0xb083d8][_0x2022('0x100')]||_0x3c6099[_0xb083d8][_0x2022('0x4')]||_0x3c6099[_0xb083d8][_0x2022('0x96')]||_0x3c6099[_0xb083d8][_0x2022('0xee')]))continue;if(0x0==_0x3c6099[_0xb083d8][_0x2022('0x52')])continue;const _0x29fd5b=_0x3c6099[_0xb083d8]['item'];_0x298e9c[_0x2022('0x30')](_0x29fd5b)||_0x298e9c[_0x2022('0xc6')](_0x29fd5b)||(_0x3c6099[_0xb083d8]['isAdded']&&delete _0x3c6099[_0xb083d8][_0x2022('0x100')],_0x3c6099[_0xb083d8][_0x2022('0x4')]&&delete _0x3c6099[_0xb083d8][_0x2022('0x4')],_0x3c6099[_0xb083d8][_0x2022('0xee')]&&delete _0x3c6099[_0xb083d8][_0x2022('0xee')],_0x3c6099[_0xb083d8][_0x2022('0x96')]&&(_0x3c6099[_0xb083d8][_0x2022('0x81')]=!0x0));}return _0x3c6099[_0x2022('0xa0')](_0x25c82a=>!_0x25c82a[_0x2022('0x81')]);}[_0x2022('0x8f')](_0x3e3acf,_0x1f410b,_0x40c9d6){const _0x23b2ca=new _0x197c08(),_0x300564=[],_0x242814=new Map(),_0x127d99=this[_0x2022('0x63')]['model'],_0x4236aa=_0x127d99[_0x2022('0xb2')],_0x145d73=[_0x23b2ca],_0x315cb2={},_0x59592b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x347733=null;const _0x117f33=[0x0];for(let _0x1aa575=0x0;_0x1aa575<_0x3e3acf['length'];_0x1aa575++){let _0x25b5e7,_0x21c44c;if(_0x2022('0x7d')===_0x3e3acf[_0x1aa575][_0x2022('0x108')]){_0x25b5e7=_0x127d99[_0x2022('0x2c')](_0x23b2ca,_0x117f33);const _0x33607d=new _0x479e62(_0x3e3acf[_0x1aa575]['item']['name'],_0x3e3acf[_0x1aa575][_0x2022('0x5f')][_0x2022('0x6')]());_0x145d73[0x0]['_appendChild'](_0x33607d),_0x117f33[_0x2022('0x10b')](0x0),_0x145d73[_0x2022('0x2a')](_0x33607d),_0x21c44c=_0x127d99[_0x2022('0x2c')](_0x23b2ca,_0x117f33),_0x347733=null;}else{if('elementEnd'===_0x3e3acf[_0x1aa575][_0x2022('0x108')])_0x145d73[_0x2022('0xf8')](),_0x25b5e7=_0x127d99[_0x2022('0x2c')](_0x23b2ca,_0x117f33),_0x117f33[_0x2022('0x31')](),_0x117f33[_0x117f33['length']-0x1]++,_0x21c44c=_0x127d99[_0x2022('0x2c')](_0x23b2ca,_0x117f33),_0x347733=null;else{if(_0x25b5e7=_0x127d99[_0x2022('0x2c')](_0x23b2ca,_0x117f33),_0x347733&&_0x4ea275(_0x347733,_0x3e3acf[_0x1aa575][_0x2022('0x5f')]))_0x347733[_0x2022('0x2')]+=_0x3e3acf[_0x1aa575][_0x2022('0x5f')]['data'];else{const _0x11062f=new _0x5fa407(_0x3e3acf[_0x1aa575]['item']['data'],_0x3e3acf[_0x1aa575][_0x2022('0x5f')][_0x2022('0x6')]());_0x145d73[0x0]['_appendChild'](_0x11062f),_0x347733=_0x11062f;}_0x117f33[_0x117f33[_0x2022('0x47')]-0x1]+=_0x3e3acf[_0x1aa575][_0x2022('0x5f')][_0x2022('0x120')],_0x21c44c=_0x127d99[_0x2022('0x2c')](_0x23b2ca,_0x117f33);}}for(const _0x3ec486 of _0x3e3acf[_0x1aa575][_0x2022('0xf5')])_0x242814['set'](_0x3ec486,{'start':_0x25b5e7,'end':null});_0xc07ad1(_0x2022('0xee'),_0x1aa575,_0x25b5e7,_0x21c44c),_0xc07ad1('isAddSuggestion',_0x1aa575,_0x25b5e7,_0x21c44c),_0xc07ad1(_0x2022('0x96'),_0x1aa575,_0x25b5e7,_0x21c44c),_0xc07ad1('isAdded',_0x1aa575,_0x25b5e7,_0x21c44c);for(const _0x55b576 of _0x3e3acf[_0x1aa575][_0x2022('0x0')]){_0x242814[_0x2022('0xc8')](_0x55b576)[_0x2022('0xef')]=_0x21c44c;}}for(const [_0x1684d7,_0x2a037d]of _0x242814){const _0x293a7d=this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0xab')](_0x2a037d[_0x2022('0xd8')],_0x2a037d[_0x2022('0xef')]);_0x23b2ca[_0x2022('0xc7')]['set'](_0x1684d7,_0x293a7d);}return _0x300564['sort']((_0x71b1f,_0x5de845)=>{const _0x57a181=_0x23b2ca[_0x2022('0xc7')][_0x2022('0xc8')]('revision:'+_0x71b1f['id']),_0x1b6c31=_0x23b2ca[_0x2022('0xc7')][_0x2022('0xc8')](_0x2022('0x6d')+_0x5de845['id']);return _0x57a181[_0x2022('0xd8')]['isBefore'](_0x1b6c31['start'])?-0x1:_0x57a181[_0x2022('0xd8')][_0x2022('0xac')](_0x1b6c31[_0x2022('0xd8')])?0x1:_0x57a181[_0x2022('0xef')]['isBefore'](_0x1b6c31[_0x2022('0xef')])?-0x1:_0x57a181[_0x2022('0xef')][_0x2022('0xac')](_0x1b6c31[_0x2022('0xef')])?0x1:_0x2022('0x109')===_0x71b1f[_0x2022('0x108')]?-0x1:0x1;}),{'root':_0x23b2ca,'changes':_0x300564};function _0xc07ad1(_0x1f9a7b,_0x30c82e,_0x3495ee,_0x5eea2e){const _0x1825b6=!!_0x3e3acf[_0x30c82e][_0x1f9a7b],_0x2ac324=_0x1825b6?_0x3e3acf[_0x30c82e][_0x1f9a7b][_0x2022('0xa7')]:null,_0x6d314c=_0x30c82e===_0x3e3acf[_0x2022('0x47')]-0x1,_0x46d0f6=_0x59592b[_0x1f9a7b][0x0],_0x1f14d4=_0x4236aa[_0x2022('0x9a')](_0x3e3acf[_0x30c82e][_0x2022('0x5f')]);!_0x315cb2[_0x1f9a7b]&&_0x1825b6?_0x315cb2[_0x1f9a7b]={'start':_0x3495ee,'tapeItem':_0x3e3acf[_0x30c82e],'userId':_0x2ac324,'type':_0x1f9a7b}:_0x315cb2[_0x1f9a7b]&&!_0x1825b6?(_0x315cb2[_0x1f9a7b][_0x2022('0xef')]=_0x3495ee,_0x487749(_0x315cb2[_0x1f9a7b]),_0x315cb2[_0x1f9a7b]=null):_0x315cb2[_0x1f9a7b]&&_0x1825b6&&_0x315cb2[_0x1f9a7b]['userId']!==_0x2ac324&&(_0x315cb2[_0x1f9a7b]['end']=_0x3495ee,_0x46d0f6&&_0x46d0f6[_0x2022('0xa7')]===_0x315cb2[_0x1f9a7b][_0x2022('0xa7')]||_0x487749(_0x315cb2[_0x1f9a7b]),_0x315cb2[_0x1f9a7b]={'start':_0x3495ee,'tapeItem':_0x3e3acf[_0x30c82e],'userId':_0x2ac324,'type':_0x1f9a7b}),_0x315cb2[_0x1f9a7b]&&_0x1f14d4&&(_0x2022('0x7d')!==_0x3e3acf[_0x30c82e][_0x2022('0x108')]||_0x46d0f6&&_0x46d0f6['userId']===_0x2ac324||_0x59592b[_0x1f9a7b][_0x2022('0x2a')]({'userId':_0x2ac324,'object':_0x3e3acf[_0x30c82e]['item'],'change':_0x315cb2[_0x1f9a7b]}),_0x2022('0x5c')===_0x3e3acf[_0x30c82e][_0x2022('0x108')]&&_0x46d0f6&&_0x46d0f6[_0x2022('0x77')]===_0x3e3acf[_0x30c82e][_0x2022('0x5f')]&&(_0x59592b[_0x1f9a7b][_0x2022('0xf8')](),_0x315cb2[_0x1f9a7b]=_0x46d0f6[_0x2022('0x86')])),_0x315cb2[_0x1f9a7b]&&_0x6d314c&&(_0x315cb2[_0x1f9a7b][_0x2022('0xef')]=_0x5eea2e,_0x487749(_0x315cb2[_0x1f9a7b]),_0x315cb2[_0x1f9a7b]=null);}function _0x487749({start:_0x418bc8,end:_0x14ae73,tapeItem:_0x1c8347,userId:_0xd1921a,type:_0xe765c6}){const _0x20bec9=_0x1c8347['item'],_0xd0f9b7=_0x127d99[_0x2022('0xb2')][_0x2022('0x30')](_0x20bec9)&&!_0x127d99[_0x2022('0xb2')][_0x2022('0xc6')](_0x20bec9),_0x41ffe9=_0x418bc8[_0x2022('0x3')]==_0x14ae73['parent']&&_0x14ae73[_0x2022('0x8b')];if(_0xd0f9b7&&_0x41ffe9)return;const _0x3393ee=_0x127d99[_0x2022('0xab')](_0x418bc8,_0x14ae73),_0x281179=_0x1f410b[_0x2022('0xc8')](_0xd1921a),_0x913b85=new _0x130e94({'author':_0x281179,'type':_0x2022('0x100')==_0xe765c6||_0x2022('0x4')==_0xe765c6?_0x2022('0x109'):_0x2022('0x5a'),'data':{'isSuggestion':_0x2022('0x4')==_0xe765c6||_0x2022('0xee')==_0xe765c6},'createdAt':new Date(),'rootName':_0x40c9d6});_0x300564[_0x2022('0x10b')](_0x913b85),_0x23b2ca[_0x2022('0xc7')][_0x2022('0x112')](_0x2022('0x6d')+_0x913b85['id'],_0x3393ee);}function _0x4ea275(_0x235d4c,_0x141f32){const _0x4aac81=_0x235d4c[_0x2022('0x6')](),_0x2118b7=_0x141f32[_0x2022('0x6')]();for(const _0x1569a0 of _0x4aac81){if(_0x1569a0[0x1]!==_0x141f32['getAttribute'](_0x1569a0[0x0]))return!0x1;_0x2118b7[_0x2022('0xda')]();}return _0x2118b7['next']()['done'];}}[_0x2022('0xf9')](){this[_0x2022('0x63')]['conversion'][_0x2022('0x16')](_0x2022('0x59'))['dataToMarker']({'view':_0x2022('0x92')}),this[_0x2022('0x63')][_0x2022('0xcd')][_0x2022('0x16')]('editingDowncast')[_0x2022('0x61')]({'model':_0x2022('0x92'),'view':_0x52f2fd=>{const _0x29a840=_0x52f2fd[_0x2022('0x4b')]['split'](':')[0x1],_0x36e783=this[_0x2022('0x3d')](_0x29a840);if(!_0x36e783)return null;const _0x283840=_0x2022('0x109')==_0x36e783[_0x2022('0x108')]?_0x2022('0xc9'):'deletion',_0x39ac31=['ck-suggestion-marker',_0x2022('0xfb')+_0x283840];return _0x36e783[_0x2022('0x32')][_0x2022('0xcb')]&&_0x39ac31[_0x2022('0x10b')]('ck-suggestion-marker-'+_0x283840+_0x2022('0x15')),this[_0x2022('0x1b')]==_0x36e783&&_0x39ac31['push'](_0x2022('0xc')),{'classes':_0x39ac31,'attributes':{'data-change-id':_0x29a840}};}}),this[_0x2022('0x63')][_0x2022('0xcd')]['for']('upcast')[_0x2022('0x109')](_0x3d1329=>{_0x3d1329['on'](_0x2022('0xe8'),(_0x4552bd,_0x627a19,_0x3b89b1)=>{const _0x44d098=_0x627a19['viewItem'][_0x2022('0xb6')](0x0);if(!_0x44d098||!_0x44d098['is'](_0x2022('0xa8'),'code'))return;if(!_0x3b89b1[_0x2022('0x95')][_0x2022('0xf0')](_0x44d098,{'attributes':[_0x2022('0xd7'),_0x2022('0x39')]}))return;const _0x1361e6=_0x627a19[_0x2022('0xc1')][_0x2022('0xd8')]['nodeAfter'];_0x3b89b1[_0x2022('0xdf')][_0x2022('0x18')](_0x2022('0xd7'),_0x44d098['getAttribute'](_0x2022('0xd7')),_0x1361e6),_0x3b89b1[_0x2022('0xdf')]['setAttribute']('vid_end',_0x44d098[_0x2022('0xf3')](_0x2022('0x39')),_0x1361e6);},{'priority':_0x2022('0xa9')});}),this[_0x2022('0x63')][_0x2022('0xcd')][_0x2022('0x16')]('upcast')['add'](_0x5d5ecb=>{_0x5d5ecb['on']('element',(_0x3aabd8,_0x4e51c9,_0x327369)=>{if(!_0x327369[_0x2022('0x95')][_0x2022('0xf0')](_0x4e51c9[_0x2022('0x22')],{'attributes':[_0x2022('0xd7'),'vid_end']}))return;if(_0x4e51c9[_0x2022('0xc1')][_0x2022('0xe6')])return;const _0x782940=_0x4e51c9[_0x2022('0xc1')][_0x2022('0xd8')]['nodeAfter'];_0x782940['hasAttribute'](_0x2022('0xd7'))||_0x782940[_0x2022('0xb4')](_0x2022('0x19'))||(_0x327369[_0x2022('0xdf')]['setAttribute'](_0x2022('0xd7'),_0x4e51c9['viewItem'][_0x2022('0xf3')](_0x2022('0xd7')),_0x782940),_0x327369[_0x2022('0xdf')][_0x2022('0x18')](_0x2022('0x39'),_0x4e51c9[_0x2022('0x22')][_0x2022('0xf3')]('vid_end'),_0x782940));},{'priority':_0x2022('0xa9')});}),this[_0x2022('0x63')]['conversion'][_0x2022('0x16')](_0x2022('0x59'))[_0x2022('0x2f')]({'view':{'name':_0x2022('0x94'),'attributes':{'vid':!0x0}},'model':{'key':_0x2022('0x19'),'value':_0x228b94=>_0x228b94[_0x2022('0xf3')](_0x2022('0x19'))}}),this[_0x2022('0x63')]['model']['schema']['on'](_0x2022('0x48'),(_0x2d84b8,[,_0x17526f])=>{[_0x2022('0xd7'),_0x2022('0x39'),_0x2022('0x19')][_0x2022('0x26')](_0x17526f)&&(_0x2d84b8[_0x2022('0x110')]=!0x0,_0x2d84b8[_0x2022('0xe5')]());},{'priority':_0x2022('0xa5')}),this[_0x2022('0x63')][_0x2022('0xcd')]['for'](_0x2022('0xba'))[_0x2022('0x109')](_0x5886d3=>{_0x5886d3['on'](_0x2022('0x105'),(_0x3d3009,_0xd9946e,_0x5267ea)=>{if('\x20'!=_0xd9946e[_0x2022('0x5f')][_0x2022('0x32')]||_0xd9946e[_0x2022('0x5f')]['parent'][_0x2022('0xb9')]>0x1)return;if(!_0x5267ea[_0x2022('0x95')]['consume'](_0xd9946e[_0x2022('0x5f')],_0x3d3009['name']))return;const _0x65238=_0x5267ea[_0x2022('0xdf')],_0x151324=_0x5267ea[_0x2022('0x6c')]['toViewRange'](_0xd9946e[_0x2022('0x6b')]);_0x65238[_0x2022('0x6f')](_0x151324,_0x65238[_0x2022('0x123')]('span'));});}),this[_0x2022('0x63')]['conversion'][_0x2022('0x16')](_0x2022('0xba'))[_0x2022('0xe3')]({'model':_0x2022('0x92')}),this[_0x2022('0x63')][_0x2022('0x9d')]['downcastDispatcher']['on']('addMarker:revision',function(_0x2cde7){const _0x4da292=_0x2cde7['plugins'][_0x2022('0xc8')](_0x2022('0x3e'));return(_0xb9399c,_0x8986d9,_0x17dc57)=>{const _0x11b036=_0x8986d9['markerName'][_0x2022('0xe1')](':')[0x1],_0x46f3c9=_0x4da292[_0x2022('0x3d')](_0x11b036);if(!_0x46f3c9)return null;const _0x4df02c=_0x2022('0x109')==_0x46f3c9[_0x2022('0x108')]?_0x2022('0xe1'):_0x2022('0x10f');if(!_0x17dc57[_0x2022('0x95')][_0x2022('0x85')](_0x8986d9['markerRange'],_0xb9399c[_0x2022('0xb3')]))return;const _0x18d3ba=_0x8986d9[_0x2022('0x87')][_0x2022('0xd9')](),_0x10b70c=_0x8986d9[_0x2022('0x87')][_0x2022('0xd8')],_0x14eef4=_0x2cde7[_0x2022('0xc3')][_0x2022('0xb2')];let _0x445f6d=null,_0x1027ef=null,_0x5759be=!0x1,_0x328a68=!0x1;for(const _0x541173 of _0x18d3ba){const _0x1036b5=_0x541173[_0x2022('0x5f')];_0x5759be=_0x5759be||_0x14eef4[_0x2022('0x50')](_0x1036b5);const _0x83a958=_0x17dc57['mapper'][_0x2022('0x40')](_0x1036b5);if(_0x83a958&&_0x83a958[_0x2022('0x104')]('addHighlight'))return;_0x2022('0x5c')==_0x541173[_0x2022('0x108')]&&(_0x14eef4[_0x2022('0x30')](_0x1036b5)&&!_0x14eef4[_0x2022('0xc6')](_0x1036b5)&&(_0x1036b5[_0x2022('0x121')]||_0x10b70c[_0x2022('0xf7')]?_0x445f6d&&_0x445f6d[_0x2022('0xd1')]==_0x1036b5||(_0x445f6d=_0x1036b5,_0x1b3f37(_0x541173[_0x2022('0x3a')]),_0x328a68=!0x0):_0x1027ef=_0x1027ef||_0x541173[_0x2022('0x3a')]));}function _0x1b3f37(_0x3b8ab0){const _0x64c73=_0x17dc57[_0x2022('0xdf')][_0x2022('0x5e')](_0x2022('0x94'),{'class':_0x2022('0xfb')+_0x4df02c}),_0x21d919=_0x17dc57[_0x2022('0x6c')][_0x2022('0x71')](_0x3b8ab0);_0x46f3c9[_0x2022('0x32')]['isSuggestion']&&_0x17dc57[_0x2022('0xdf')][_0x2022('0x14')]('ck-suggestion-marker-'+_0x4df02c+_0x2022('0x15'),_0x64c73),_0x4da292[_0x2022('0x1b')]==_0x46f3c9&&_0x17dc57[_0x2022('0xdf')][_0x2022('0x14')]('ck-suggestion-marker--active',_0x64c73),_0x17dc57[_0x2022('0xdf')][_0x2022('0x13')](_0x21d919,_0x64c73),_0x17dc57[_0x2022('0x6c')][_0x2022('0x46')](_0x64c73,_0x8986d9[_0x2022('0x4b')]);}_0x5759be||_0x328a68||!_0x1027ef||_0x1b3f37(_0x1027ef);};}(this[_0x2022('0x63')]),{'priority':_0x2022('0xa2')}),this[_0x2022('0x63')]['editing'][_0x2022('0x37')]['on'](_0x2022('0x9c'),(_0x1d370c,_0xd2209e,_0x194f79)=>{const _0x1cb40f=_0x194f79[_0x2022('0x6c')][_0x2022('0xb0')](_0xd2209e[_0x2022('0x4b')]);if(_0x1cb40f)for(const _0x13ab47 of _0x1cb40f)(_0x13ab47[_0x2022('0x33')](_0x2022('0x7f'))||_0x13ab47[_0x2022('0x33')]('ck-suggestion-marker-merge'))&&(_0x194f79[_0x2022('0x6c')]['unbindElementFromMarkerName'](_0x13ab47,_0xd2209e['markerName']),_0x194f79[_0x2022('0xdf')][_0x2022('0x5a')](_0x13ab47));},{'priority':_0x2022('0xa2')}),this[_0x2022('0x63')][_0x2022('0x9d')]['downcastDispatcher']['on'](_0x2022('0xa3'),(_0x7c49d0,_0x58e1d0,_0x2b4228)=>{const _0x168d97=_0x58e1d0['markerName'][_0x2022('0xe1')](':')[0x1],_0x144bc4=this[_0x2022('0x3d')](_0x168d97);if(!_0x144bc4)return null;const _0x159bca=_0x2022('0x109')==_0x144bc4[_0x2022('0x108')]?_0x2022('0xe1'):'merge';if(_0x2b4228[_0x2022('0x95')][_0x2022('0x85')](_0x58e1d0['markerRange'],_0x7c49d0[_0x2022('0xb3')]))for(const _0x2d86aa of _0x58e1d0['markerRange'][_0x2022('0x88')]()){if(!_0x2d86aa['is'](_0x2022('0xa8'),_0x2022('0x82')))continue;const _0x2402c8=_0x2b4228['writer'][_0x2022('0x5e')](_0x2022('0x94'),{'class':_0x2022('0xfb')+_0x159bca}),_0x534440=_0x2b4228[_0x2022('0x6c')][_0x2022('0x71')](this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0x10c')](_0x2d86aa));_0x144bc4[_0x2022('0x32')][_0x2022('0xcb')]&&_0x2b4228[_0x2022('0xdf')][_0x2022('0x14')](_0x2022('0xfb')+_0x159bca+_0x2022('0x15'),_0x2402c8),this[_0x2022('0x1b')]==_0x144bc4&&_0x2b4228[_0x2022('0xdf')]['addClass'](_0x2022('0xc'),_0x2402c8),_0x2b4228[_0x2022('0xdf')][_0x2022('0x13')](_0x534440,_0x2402c8),_0x2b4228[_0x2022('0x6c')]['bindElementToMarker'](_0x2402c8,_0x58e1d0[_0x2022('0x4b')]);}},{'priority':_0x2022('0xa2')}),this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0x9b')]['on']('change',()=>{this[_0x2022('0x63')][_0x2022('0x9d')]['view'][_0x2022('0x86')](_0x5797ce=>{for(const _0x21d440 of this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0x9b')][_0x2022('0x98')]()){const _0x4b9dfa=this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0x9b')][_0x2022('0xc5')](_0x21d440),_0x6a7e01=this['editor'][_0x2022('0x9d')][_0x2022('0xe2')][_0x2022('0x9b')]['getRoot'](_0x21d440);if(_0x6a7e01){const _0x2a1bec=_0x4b9dfa['getAttribute'](_0x2022('0xfd'));if(_0x5797ce['removeAttribute'](_0x2022('0x17'),_0x6a7e01),_0x5797ce[_0x2022('0x76')](_0x2022('0x28'),_0x6a7e01),_0x5797ce[_0x2022('0x76')]('ck-revision-history-root-remove',_0x6a7e01),_0x5797ce[_0x2022('0x76')](_0x2022('0x3c'),_0x6a7e01),_0x2a1bec){const _0x3f75d3=this[_0x2022('0x3d')](_0x2a1bec);if(!_0x3f75d3)return null;_0x5797ce[_0x2022('0x18')](_0x2022('0x17'),_0x2a1bec,_0x6a7e01),_0x5797ce['addClass'](_0x2022('0x11f')+_0x3f75d3[_0x2022('0x108')],_0x6a7e01),this[_0x2022('0x1b')]==_0x3f75d3&&_0x5797ce[_0x2022('0x14')](_0x2022('0x3c'),_0x6a7e01);}}}});}),this[_0x2022('0x63')][_0x2022('0xcd')][_0x2022('0x16')](_0x2022('0x59'))[_0x2022('0x119')]({'view':'comment','model':_0xd12ed9=>_0x2022('0xeb')+_0xd12ed9,'converterPriority':'highest'}),this[_0x2022('0x63')][_0x2022('0xcd')][_0x2022('0x16')]('upcast')[_0x2022('0x119')]({'view':'suggestion','model':_0x3af11a=>_0x2022('0x38')+_0x3af11a,'converterPriority':_0x2022('0xa5')}),this[_0x2022('0x63')][_0x2022('0xcd')]['for']('dataDowncast')[_0x2022('0xe3')]({'model':'revision-suggestion','view':_0x510049=>({'name':'suggestion:'+_0x510049,'group':_0x2022('0xbe')}),'converterPriority':_0x2022('0xa5')}),this[_0x2022('0x63')][_0x2022('0xcd')][_0x2022('0x16')]('editingDowncast')[_0x2022('0x61')]({'model':_0x2022('0xbe'),'view':_0x14783b=>{const _0x1eaaba=_0x14783b['markerName'][_0x2022('0xe1')](':')[0x1];return _0x2022('0xc9')!=_0x1eaaba&&_0x2022('0x1a')!=_0x1eaaba?null:{'classes':[_0x2022('0x89'),_0x2022('0x44')+_0x1eaaba]};}}),this['editor'][_0x2022('0x9d')][_0x2022('0x37')]['on'](_0x2022('0x7a'),et(this[_0x2022('0x63')],_0x2022('0x10f')),{'priority':_0x2022('0xa2')}),this[_0x2022('0x63')][_0x2022('0x9d')][_0x2022('0x37')]['on'](_0x2022('0x122'),et(this[_0x2022('0x63')],_0x2022('0xe1')),{'priority':_0x2022('0xa2')}),this[_0x2022('0x63')][_0x2022('0x9d')][_0x2022('0x37')]['on'](_0x2022('0xd2'),(_0x3fa606,_0x2ab38a,_0x27dede)=>{const _0x4bc2da=_0x27dede[_0x2022('0x6c')][_0x2022('0xb0')](_0x2ab38a[_0x2022('0x4b')]);if(_0x4bc2da)for(const _0x39d22b of _0x4bc2da)_0x39d22b['is'](_0x2022('0x99'))&&(_0x27dede['mapper'][_0x2022('0x60')](_0x39d22b,_0x2ab38a[_0x2022('0x4b')]),_0x27dede[_0x2022('0xdf')][_0x2022('0x5a')](_0x39d22b));},{'priority':_0x2022('0xa2')});}[_0x2022('0x3d')](_0x3f2752){return this[_0x2022('0x43')][_0x2022('0xc8')](_0x3f2752);}[_0x2022('0x83')](_0x398f0d){return this[_0x2022('0x117')]&&this[_0x2022('0x117')]['destroy'](),this['_changeView']=new _0x1beb22(this['editor'][_0x2022('0xd6')],_0x398f0d),this[_0x2022('0x117')];}['_initInteractions'](){this['editor'][_0x2022('0xc3')][_0x2022('0x9b')]['selection'][_0x2022('0x24')](_0x2022('0x92')),this['on'](_0x2022('0x68'),(_0x54b171,_0x200d6f,_0x4abebb,_0x2869e7)=>{_0x2869e7&&this[_0x2022('0x70')][_0x2022('0x5a')](_0x2869e7),_0x4abebb&&(this[_0x2022('0x70')]['add']({'view':_0x4abebb,'stackId':_0x2022('0xa4'),'position':{'target':()=>{const _0x55ce82=this[_0x2022('0x63')][_0x2022('0x9d')],_0x1f2de6=this[_0x2022('0x3d')](_0x4abebb[_0x2022('0xf4')]);let _0x1d1859;if(_0x1f2de6[_0x2022('0x32')][_0x2022('0xd3')]){const _0x55ec03=_0x55ce82['view']['getDomRoot'](_0x1f2de6[_0x2022('0x3b')]);_0x1d1859=Array[_0x2022('0x4f')](_0x55ec03['getClientRects']());}else{const _0x5b7d74=this[_0x2022('0x63')][_0x2022('0xc3')]['markers'][_0x2022('0xc8')](_0x2022('0x6d')+_0x4abebb[_0x2022('0xf4')]);_0x1d1859=Array[_0x2022('0x4f')](_0x55ce82[_0x2022('0x6c')]['markerNameToElements'](_0x5b7d74[_0x2022('0xb3')]))[_0x2022('0xd4')](_0x48614c=>_0x55ce82[_0x2022('0xe2')]['domConverter'][_0x2022('0xfa')](_0x48614c))['map'](_0x13a81a=>Array[_0x2022('0x4f')](_0x13a81a[_0x2022('0xe0')]()))[_0x2022('0xdc')]();}if(!this[_0x2022('0x4a')])return _0x1d1859[0x0];return _0x1d1859['find'](_0x4575b6=>_0x4575b6[_0x2022('0xc2')]-0x3<=this[_0x2022('0x4a')]['y']&&_0x4575b6[_0x2022('0xe')]+0x3>=this[_0x2022('0x4a')]['y']&&_0x4575b6[_0x2022('0x23')]-0x3<=this[_0x2022('0x4a')]['x']&&_0x4575b6[_0x2022('0xb1')]+0x3>=this[_0x2022('0x4a')]['x'])||_0x1d1859[0x0];}}}),this[_0x2022('0x70')]['showStack'](_0x2022('0xa4')));}),this['on'](_0x2022('0x101'),(_0x3adf4a,_0x146452,_0x10b536,_0x23228f)=>{this['activeView']=_0x10b536?this[_0x2022('0x83')](_0x10b536):null,this[_0x2022('0x63')]['model'][_0x2022('0x86')](()=>{const _0x15bef5=this['editor'][_0x2022('0x9d')];_0x23228f&&(_0x23228f[_0x2022('0x32')][_0x2022('0xd3')]?_0x15bef5['view']['change'](_0x1297c9=>{_0x1297c9[_0x2022('0x76')](_0x2022('0x3c'),_0x15bef5['view'][_0x2022('0x9b')]['getRoot'](_0x23228f[_0x2022('0x3b')]));}):_0x15bef5[_0x2022('0x84')]('revision:'+_0x23228f['id'])),_0x10b536&&(_0x10b536[_0x2022('0x32')][_0x2022('0xd3')]?_0x15bef5['view'][_0x2022('0x86')](_0x40c289=>{_0x40c289[_0x2022('0x14')]('ck-revision-history-root--active',_0x15bef5[_0x2022('0xe2')][_0x2022('0x9b')]['getRoot'](_0x10b536[_0x2022('0x3b')]));}):_0x15bef5[_0x2022('0x84')](_0x2022('0x6d')+_0x10b536['id']));});}),this[_0x2022('0xae')](this['editor'][_0x2022('0x9d')]['view']['document'],_0x2022('0xea'),(_0x2b4d3b,_0x25f811)=>{if(this[_0x2022('0x1b')])return;const _0x52f5a8=this[_0x2022('0x2e')](_0x25f811[_0x2022('0x11b')]),_0x11d813=this[_0x2022('0x43')][_0x2022('0xc8')](_0x52f5a8);_0x11d813?(this[_0x2022('0x4a')]={'x':_0x25f811[_0x2022('0x10a')]['x'],'y':_0x25f811[_0x2022('0x10a')]['y']},this[_0x2022('0x103')]=this['_getViewForChange'](_0x11d813)):(this[_0x2022('0x4a')]=null,this[_0x2022('0x103')]=null);}),this[_0x2022('0xae')](this[_0x2022('0x63')][_0x2022('0x9d')][_0x2022('0xe2')][_0x2022('0x9b')],'mousedown',(_0x40129b,_0x3e9a78)=>{const _0x3f96a5=this[_0x2022('0x2e')](_0x3e9a78['target']),_0x421e9b=this['_changeIdToChange']['get'](_0x3f96a5);_0x421e9b?(this[_0x2022('0x4a')]={'x':_0x3e9a78[_0x2022('0x10a')]['x'],'y':_0x3e9a78[_0x2022('0x10a')]['y']},_0x421e9b===this[_0x2022('0x1b')]?this['_balloon'][_0x2022('0x1f')]():this[_0x2022('0x1b')]=_0x421e9b):(this[_0x2022('0x4a')]=null,this[_0x2022('0x1b')]=null);});}[_0x2022('0x2e')](_0x1d4699){do{const _0x1baa19=_0x1d4699['getAttribute'](_0x2022('0x17'));if(_0x1baa19)return _0x1baa19;_0x1d4699=_0x1d4699['parent'];}while(_0x1d4699);return null;}[_0x2022('0x10')](){this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0x86')](_0x264906=>{for(const _0x467b4b of this['editor']['model'][_0x2022('0xc7')])_0x264906['removeMarker'](_0x467b4b);});}}function et(_0xdd5a9a,_0x4c66c9){return(_0x242300,_0x5f0041,_0x13a9d2)=>{if(!_0x13a9d2[_0x2022('0x95')][_0x2022('0x85')](_0x5f0041[_0x2022('0x87')],_0x242300[_0x2022('0xb3')]))return;const _0xf2a766=_0x5f0041[_0x2022('0x87')][_0x2022('0xd9')](),_0x3b3301=_0x5f0041[_0x2022('0x87')][_0x2022('0xd8')],_0x1cfc9a=_0xdd5a9a[_0x2022('0xc3')][_0x2022('0xb2')];let _0x33b74f=null,_0x17f63d=null,_0x2dc9ef=!0x1,_0x4bfa0b=!0x1;for(const _0x5108a0 of _0xf2a766){const _0x561a93=_0x5108a0[_0x2022('0x5f')];_0x2dc9ef=_0x2dc9ef||_0x1cfc9a['isContent'](_0x561a93);const _0x296da4=_0x13a9d2[_0x2022('0x6c')][_0x2022('0x40')](_0x561a93);if(_0x296da4&&_0x296da4['getCustomProperty']('addHighlight'))return;_0x2022('0x5c')==_0x5108a0['type']&&(_0x1cfc9a[_0x2022('0x30')](_0x561a93)&&!_0x1cfc9a['isLimit'](_0x561a93)&&(_0x561a93[_0x2022('0x121')]||_0x3b3301[_0x2022('0xf7')]?_0x33b74f&&_0x33b74f['parent']==_0x561a93||(_0x33b74f=_0x561a93,_0x339645(_0x5108a0['previousPosition']),_0x4bfa0b=!0x0):_0x17f63d=_0x17f63d||_0x5108a0[_0x2022('0x3a')]));}function _0x339645(_0x4c19d1){const _0x4a1852=_0x13a9d2[_0x2022('0x6c')]['toViewPosition'](_0x4c19d1),_0x14a716=_0x13a9d2[_0x2022('0xdf')][_0x2022('0x5e')](_0x2022('0x94'),{'class':_0x2022('0x44')+_0x4c66c9});_0x13a9d2[_0x2022('0xdf')]['insert'](_0x4a1852,_0x14a716),_0x13a9d2['mapper'][_0x2022('0x46')](_0x14a716,_0x5f0041[_0x2022('0x4b')]);}_0x2dc9ef||_0x4bfa0b||!_0x17f63d||_0x339645(_0x17f63d);};}export class RestoreRevisionCommand extends _0x356bbb{constructor(_0x43147c){super(_0x43147c);const _0x1217df=_0x43147c['plugins'][_0x2022('0xc8')](d);this[_0x2022('0x118')]=!0x1,this['listenTo'](_0x1217df,_0x2022('0xc4'),()=>this[_0x2022('0x91')]()),this[_0x2022('0xae')](_0x1217df,_0x2022('0x49'),()=>this[_0x2022('0x91')]());}['execute'](){const _0x3c66ab=this[_0x2022('0x63')],_0x26f447=_0x3c66ab[_0x2022('0xad')][_0x2022('0xc8')](d),_0x1ee7cd=_0x26f447[_0x2022('0xf2')]?_0x26f447[_0x2022('0x1d')][_0x2022('0xd5')]:null;_0x3c66ab[_0x2022('0x1')][_0x2022('0xc8')]('revisionHistory')['restoreRevisionCallback'](_0x1ee7cd);}[_0x2022('0x91')](){const {isReady:_0x3b493f,isEnabled:_0x1949da}=this['editor'][_0x2022('0xad')][_0x2022('0xc8')](d);this[_0x2022('0x111')]=_0x3b493f&&_0x1949da;}}export class ShowChangeCommand extends _0x356bbb{constructor(_0xb37ca8,{direction:_0x5ee352}){super(_0xb37ca8);const _0x43d360=_0xb37ca8[_0x2022('0xad')][_0x2022('0xc8')](d);this[_0x2022('0x118')]=!0x1,this[_0x2022('0x93')]=_0x2022('0xf6')===_0x5ee352?0x1:-0x1,this[_0x2022('0xae')](_0x43d360,_0x2022('0xc4'),()=>this['refresh']()),this['listenTo'](_0x43d360,'change:isEnabled',()=>this[_0x2022('0x91')]()),this[_0x2022('0xae')](_0x43d360,_0x2022('0x101'),()=>this[_0x2022('0x91')]());}[_0x2022('0xd')](){const _0x1d3358=this[_0x2022('0x63')],_0x189b72=_0x1d3358[_0x2022('0xad')][_0x2022('0xc8')](d),{isNavigationMode:_0x3a93e0,currentChangeNumber:_0x1a35a}=_0x189b72;let _0x8e3ba0;if(_0x189b72[_0x2022('0x1b')]=_0x3a93e0?_0x189b72[_0x2022('0x1d')][_0x2022('0x113')][_0x2022('0xc8')](_0x1a35a+this['_step']):_0x189b72['diff'][_0x2022('0x113')][_0x2022('0x2d')],_0x189b72[_0x2022('0x1b')][_0x2022('0x32')][_0x2022('0xd3')])_0x8e3ba0=_0x1d3358[_0x2022('0x9d')][_0x2022('0xe2')][_0x2022('0x8a')](_0x189b72[_0x2022('0x1b')][_0x2022('0x3b')]);else{const _0x17f3eb=_0x1d3358[_0x2022('0xc3')][_0x2022('0xc7')]['get']('revision:'+_0x189b72['activeChange']['id']);_0x8e3ba0=_0x842571(_0x1d3358[_0x2022('0x9d')],_0x17f3eb);}_0x5ce67b({'target':_0x8e3ba0,'viewportOffset':0x28});}[_0x2022('0x91')](){const {isNavigationMode:_0x1045f2,currentChangeNumber:_0x2453a2,numberOfChanges:_0x1cd02a,isReady:_0x231c67,isEnabled:_0x5e144c}=this['editor'][_0x2022('0xad')]['get'](d);this['isEnabled']=!!(_0x5e144c&&_0x231c67&&_0x1cd02a)&&(!_0x1045f2||(0x1===this['_step']?_0x2453a2<_0x1cd02a-0x1:_0x2453a2>0x0));}}
23
+ const _0x5347=['endIndex','revision-suggestion:','_setDistance','revision-comment:','restoreRevision','rootName','removeClass','hasAttribute','getCustomProperty','insert','span','forEach','domEvent','_getViewObj','_markInsertions','_markMarkers','revisionHistoryLabel','getItems','distance','revisionHistoryAttachChange','detachRoot','insertions','WidgetToolbarRepository','parent','shift','editing','RevisionViewer','maxOffset','consume','change:isEnabled','indexOf','isAddSuggestion','changes','_markSuggestions','item','processor','isIncorrect','writer','startsWith','next','forceDisabled','conversion','insertion','attributes','bindElementToMarker','markerName','bottom','level','checkAttribute','_getChangeFromId','ck-editor__editable__overlay','return','revision-suggestion','error','markerToHighlight','attributesBefore','ck-suggestion-marker-','getDomRoot','push','keys','repository','newRevisionId','markersStart','attributesAfter','findIndex','commands','getClientRects','nextSibling','createRangeIn','suggestion','removeMarker:revision','model','createPositionBefore','uiElement','toModel','activeView','getChild','code','_data','editor','userId','pairId','from','change','viewItem','for','isEqual','isRemoveSuggestion','execute','split','index','changeId','ck-revision-history-root--active','text','reconvertMarker','_markMismatchedRemovedTags','getRevisionData','compare','vid_start','object','enqueueChange','isBlock','unshift','name','createPositionFromPath','delete','hasClass','deletions','set','getAttribute','destroy','setAttribute','elementStart','isBefore','isRemoved','revision-start','_update','getWalker','map','resolve','change:numberOfChanges','consumable','nextPosition','removeMarker:revision-suggestion','addClass','ck-suggestion-marker-split','left','ck-suggestion-marker--active','comment','data','deletion','start','revision-viewer','type','slice','has','_findChangeIdFromDomTarget','vid_end','config','_joinTapes','_processTape','parse','isOnRoot','isContent','getRootNames','offsetSize','_getDiff','element:pre','unbindElementFromMarkerName','schema','domConverter','removeMarker','markers','length','diffData','removeAttribute','_threeWayMerge','_balloon','revision','isSuggestion','mapper','find','_makeModelFromViewString','filter','side','_changeView','isAfter','document','oldRevisionId','loadRevisionData','includes','abs','change:isReady','collaboration.channelId','revision:','addRevision','toViewPosition','_cleanUp','_initInteractions','upcast','_makeModelFromTape','data-change-id','merge','wrap','forward','_fixObsoleteTags','activeChange','markerRange','_removeUnsupportedChanges','diff','_makeTape','addMarker:revision','listenTo','remove','ck-revision-history-root-','default','_getRevisionsRange','addRevisionData','getRoot','high','isAtEnd','clear','refresh','startIndex','isAtStart','add','view','restoreRevisionCallback','markerToData','ck-revision-history-root-add','revisionHistory','createRange','modelRange','-new','_sortAndFilterDiffChanges','isCollapsed','_getViewForChange','mapViewToDom','affectsData','markersEnd','element','downcastDispatcher','_removeRevisionMarkers','revision-end','_setConversion','mousedown','updatePosition','isAttached','string','getIndex','change:activeChange','ck-suggestion-preview-marker','end','bind','children','highest','locale','isReady','addRoot','all','RevisionsRepository','low','useFillerType','done','ck-suggestion-marker-merge','elementEnd','isLimit','isInline','adapter','currentChangeNumber','_setChanges','get','ck-revision-history-root-remove','concat','isEnabled','_removeMissingPairs','addMarker:revision-suggestion:insertion','splice','editingDowncast','attachChange','_changeIdToChange','plugins','nodeAfter','createUIElement','addMarker:revision-suggestion:deletion','_activeViewTarget','change:activeView','marked','range','_appendChild','flat','then','data-revision-','authors','toViewElement','getAttributes','test','addHighlight','getRevision','_refreshStartEndIndex','ck-suggestion-preview-marker-','previousPosition','dataDowncast','sort','_cleanMarkers','ck-suggestion-marker','POSITIVE_INFINITY','softBreak','roots','top','isAdded','_step','pop','stop','showPreviousChange','vid','markerNameToElements'];(function(_0x1d1126,_0x5347d1){const _0x598925=function(_0x3d1dec){while(--_0x3d1dec){_0x1d1126['push'](_0x1d1126['shift']());}};_0x598925(++_0x5347d1);}(_0x5347,0xde));const _0x5989=function(_0x1d1126,_0x5347d1){_0x1d1126=_0x1d1126-0x0;let _0x598925=_0x5347[_0x1d1126];return _0x598925;};import{Plugin as _0x134e88,Command as _0x3d4b20}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x5cf0d1}from'ckeditor5/src/utils';import{ContextualBalloon as _0x2a17ce}from'ckeditor5/src/ui';import{DocumentFragment as _0xc66f45,Element as _0xcf83e4,Text as _0x16f66b,ViewDocumentFragment as _0x28deba,ViewText as _0x1377c3,ViewElement as _0x4e72fa,ViewContainerElement as _0x3aa904,ViewAttributeElement as _0x4f1c19,ViewEmptyElement as _0x248db1,ViewRawElement as _0xc0127a,ViewUIElement as _0x24b365}from'ckeditor5/src/engine';import{Users as _0x41b2c7,getMarkerDomElement as _0x272b66}from'ckeditor5-collaboration/src/collaboration-core';import _0x4b9da8 from'./ui/revisionviewer/changedetailsview';import _0x122e19 from'./revisionsrepository';import _0x389466 from'./changeitem';import{default as _0x3b0e06}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x21e9ac}from'lodash-es';const tt={'c':_0x3aa904,'a':_0x4f1c19,'e':_0x248db1,'r':_0xc0127a,'u':_0x24b365};export default class d extends _0x134e88{static get['pluginName'](){return _0x5989('0x65');}static get['requires'](){return[_0x41b2c7,_0x2a17ce,_0x122e19];}constructor(_0x39b02d){super(_0x39b02d),this[_0x5989('0x87')]=this[_0x5989('0x9a')][_0x5989('0x27')][_0x5989('0x1d')](_0x5989('0x12')),this[_0x5989('0xb7')](_0x5989('0x105'),null),this[_0x5989('0xb7')](_0x5989('0x96'),null),this[_0x5989('0x2b')]=null,this[_0x5989('0xb7')](_0x5989('0x108'),null),this[_0x5989('0xb7')](_0x5989('0xf'),!0x1),this[_0x5989('0xb7')]('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1026a3,_0x4b03f5,_0x4e9fdb)=>{this['activeChange']=null,this[_0x5989('0x96')]=null,this[_0x5989('0x9a')][_0x5989('0x64')][_0x5989('0x119')][_0x5989('0x9e')](_0x11bf55=>{for(const _0x1e7e84 of this[_0x5989('0x9a')][_0x5989('0x64')][_0x5989('0x119')][_0x5989('0xf2')][_0x5989('0x42')])_0x4e9fdb?_0x11bf55[_0x5989('0x51')](_0x5989('0x7d'),_0x1e7e84):_0x11bf55[_0x5989('0xc7')]('ck-editor__editable__overlay',_0x1e7e84);});}),this['bind']('isNavigationMode')['to'](this,_0x5989('0x105'),_0x5568ba=>null!==_0x5568ba),this[_0x5989('0xb')](_0x5989('0x1b'))['to'](this,_0x5989('0xf'),this,_0x5989('0x108'),this,_0x5989('0x105'),(_0x5e5537,_0x1e892d,_0x3ac1ae)=>_0x5e5537&&_0x3ac1ae?_0x1e892d[_0x5989('0x6b')][_0x5989('0x7')](_0x3ac1ae):0x0),this[_0x5989('0xb')]('numberOfChanges')['to'](this,_0x5989('0xf'),this,_0x5989('0x108'),(_0x409a6a,_0x50f726)=>_0x409a6a?_0x50f726[_0x5989('0x6b')][_0x5989('0xe4')]:0x0),this[_0x5989('0xf0')]=null,this['_changeIdToChange']=new Map(),this[_0x5989('0x1a')]=null,this['_balloon']=this[_0x5989('0x9a')][_0x5989('0x27')][_0x5989('0x1d')](_0x2a17ce);}['init'](){const _0x5b25bc=this[_0x5989('0x9a')],_0x42b509=new ShowChangeCommand(_0x5b25bc,{'direction':'backward'}),_0x4aa10c=new ShowChangeCommand(_0x5b25bc,{'direction':_0x5989('0x103')});(_0x5b25bc[_0x5989('0x8c')][_0x5989('0x118')](_0x5989('0x48'),_0x42b509),_0x5b25bc['commands'][_0x5989('0x118')]('showNextChange',_0x4aa10c),_0x5b25bc[_0x5989('0x8c')][_0x5989('0x118')](_0x5989('0x4f'),new RestoreRevisionCommand(_0x5b25bc)),this['on'](_0x5989('0xc3'),()=>{_0x42b509[_0x5989('0x115')](),_0x4aa10c[_0x5989('0x115')]();}),this[_0x5989('0x2')](),this['_initInteractions'](),_0x5b25bc['enableReadOnlyMode'](_0x5989('0xcf')),_0x5b25bc[_0x5989('0x27')][_0x5989('0xd2')]('WidgetToolbarRepository'))&&_0x5b25bc['plugins'][_0x5989('0x1d')](_0x5989('0x61'))[_0x5989('0x73')](_0x5989('0xcf'));}async[_0x5989('0xab')](_0x5d565c){await this[_0x5989('0xf4')](_0x5d565c);const _0x2c407a={};for(const _0x4e6a56 in _0x5d565c[_0x5989('0xe5')]){if(_0x5d565c[_0x5989('0xe5')][_0x4e6a56][_0x5989('0x25')]&&!_0x5d565c[_0x5989('0xe5')][_0x4e6a56][_0x5989('0x25')][_0x5989('0x5')])continue;const _0x583b03=this[_0x5989('0x0')](JSON['parse'](_0x5d565c[_0x5989('0xe5')][_0x4e6a56]['insertions'])),_0x117a00=this[_0x5989('0x9a')][_0x5989('0x64')][_0x5989('0x119')][_0x5989('0xf2')],_0x1271b9=new _0x28deba(_0x117a00,_0x583b03[_0x5989('0xc1')](_0x3b5680=>this[_0x5989('0x58')](_0x3b5680)));this[_0x5989('0x9a')][_0x5989('0xcc')][_0x5989('0x6e')]['useFillerType'](_0x5989('0x2d')),_0x2c407a[_0x4e6a56]=this[_0x5989('0x9a')][_0x5989('0xcc')][_0x5989('0x6e')]['toData'](_0x1271b9),this[_0x5989('0x9a')]['data']['processor'][_0x5989('0x14')](_0x5989('0x10e'));}return _0x2c407a;}async['getRevisionRootsAttributes'](_0x407ee8){await this['loadRevisionData'](_0x407ee8);const _0x4c307c={};for(const _0x18fbf9 in _0x407ee8[_0x5989('0xe5')])_0x407ee8[_0x5989('0xe5')][_0x18fbf9][_0x5989('0x25')]&&!_0x407ee8[_0x5989('0xe5')][_0x18fbf9]['attachChange']['isAttached']||(_0x4c307c[_0x18fbf9]=_0x407ee8[_0x5989('0xe5')][_0x18fbf9][_0x5989('0x8a')]||{});return _0x4c307c;}['_removeRevisionMarkers'](_0x3e4a5f){return(_0x3e4a5f=_0x3e4a5f[_0x5989('0xee')](_0x19d725=>!_0x19d725[_0x5989('0xb2')]||_0x5989('0xbe')!==_0x19d725[_0x5989('0xb2')]&&_0x5989('0x1')!==_0x19d725['name']))[_0x5989('0x56')](_0x4f3cf4=>{'string'!=typeof _0x4f3cf4&&(_0x4f3cf4['children']=this[_0x5989('0x0')](_0x4f3cf4[_0x5989('0xc')]),_0x4f3cf4[_0x5989('0x76')]=_0x4f3cf4[_0x5989('0x76')][_0x5989('0xee')](_0x5c3722=>!_0x5c3722[0x0][_0x5989('0x71')](_0x5989('0x32'))));}),_0x3e4a5f;}async[_0x5989('0xac')](_0x1c3d2d,_0x460be9,_0x39b694=!0x1){if(!this[_0x5989('0x20')])return;const _0x1063ed=this['diff'],_0x447c21=this[_0x5989('0x87')],_0x355566=_0x5989('0x6')==typeof _0x1c3d2d?_0x447c21[_0x5989('0x38')](_0x1c3d2d):_0x1c3d2d,_0x366247=_0x5989('0x6')==typeof _0x460be9?_0x447c21[_0x5989('0x38')](_0x460be9):_0x460be9,_0x294de1=_0x355566['id'],_0x4d3b4f=_0x366247?_0x366247['id']:null;if(!_0x39b694&&this[_0x5989('0x108')]&&this[_0x5989('0x108')][_0x5989('0x88')]===_0x294de1&&this[_0x5989('0x108')][_0x5989('0xf3')]===_0x4d3b4f)return Promise[_0x5989('0xc2')]();this[_0x5989('0xf')]=!0x1,this[_0x5989('0x96')]=null,this[_0x5989('0x105')]=null,this[_0x5989('0x108')]=new _0x3b0e06(_0x294de1,_0x4d3b4f);const _0x5ef247=this[_0x5989('0x10f')](_0x355566,_0x366247,!0x0)[_0x5989('0xc1')](_0x335e52=>this['loadRevisionData'](_0x335e52));return _0x5ef247[_0x5989('0x85')](new Promise(_0x3a0cd2=>{setTimeout(_0x3a0cd2,0x14);})),Promise[_0x5989('0x11')](_0x5ef247)[_0x5989('0x31')](()=>{if(!this['isEnabled'])return;this[_0x5989('0xfc')]();const _0x2aabc8=this[_0x5989('0xdd')](_0x294de1,_0x4d3b4f);for(const _0x4103b4 of _0x2aabc8[_0x5989('0x6b')])this[_0x5989('0x26')][_0x5989('0xb7')](_0x4103b4['id'],_0x4103b4);this[_0x5989('0x9a')][_0x5989('0x92')][_0x5989('0xaf')]({'isUndoable':!0x1},_0x439e32=>{for(const _0x178d3f of this[_0x5989('0x9a')][_0x5989('0x92')][_0x5989('0xf2')][_0x5989('0xdb')]())_0x439e32[_0x5989('0x5f')](_0x178d3f);for(const _0x199081 of Object[_0x5989('0x86')](_0x2aabc8[_0x5989('0x92')])){const _0x3642d7=_0x439e32[_0x5989('0x10')](_0x199081);for(const _0x518dc2 of Object['keys'](_0x2aabc8['attributes'][_0x199081]))_0x439e32[_0x5989('0xba')](_0x518dc2,_0x2aabc8[_0x5989('0x76')][_0x199081][_0x518dc2],_0x3642d7);_0x439e32[_0x5989('0x54')](_0x2aabc8[_0x5989('0x92')][_0x199081],_0x3642d7,0x0);}}),this['diff'][_0x5989('0x1c')](this[_0x5989('0x121')](_0x2aabc8[_0x5989('0x6b')])),this[_0x5989('0xf')]=!0x0;})['catch'](_0x31a36c=>{console[_0x5989('0x80')](_0x31a36c),this['_cleanUp'](),_0x1063ed&&(this[_0x5989('0x108')]=_0x1063ed),this[_0x5989('0xf')]=!0x0;});}[_0x5989('0x110')](_0x2ad305,_0xcc77c){const _0x6246c9=this[_0x5989('0x87')]['createRevision'](_0x2ad305);return _0x6246c9['on'](_0x5989('0xbf'),(_0xdc104,_0x38248b,_0x573383)=>_0xcc77c(_0x38248b,_0x573383,_0x6246c9)),this['repository'][_0x5989('0xfa')](_0x6246c9),_0x6246c9;}[_0x5989('0xf4')](_0x10f505){if(!_0x10f505||_0x10f505[_0x5989('0xe5')])return Promise[_0x5989('0xc2')]();{const _0x5836eb=this['editor'][_0x5989('0xd5')][_0x5989('0x1d')](_0x5989('0xf8'));return this[_0x5989('0x1a')]['getRevision']({'channelId':_0x5836eb,'revisionId':_0x10f505['id']})[_0x5989('0x31')](_0x249e62=>{_0x10f505[_0x5989('0xbf')]({'diffData':_0x249e62['diffData']},!0x0);});}}[_0x5989('0xfc')](){this['activeChange']=null,this['_cleanMarkers'](),this[_0x5989('0xf0')]&&this[_0x5989('0xf0')][_0x5989('0xb9')](),this['_changeView']=null,this[_0x5989('0x26')][_0x5989('0x114')](),this['editor'][_0x5989('0x92')][_0x5989('0xaf')]({'isUndoable':!0x1},_0x10fa12=>{for(const _0x23102f of this[_0x5989('0x9a')][_0x5989('0x92')]['document'][_0x5989('0xdb')]())_0x10fa12[_0x5989('0x5f')](_0x23102f);});}['_sortAndFilterDiffChanges'](_0x4b25aa){const _0x2ac936=[],_0x353fe1=new Map();for(const _0x106539 of this[_0x5989('0x9a')][_0x5989('0x92')][_0x5989('0xf2')][_0x5989('0xdb')]()){const _0x48e241=this['editor'][_0x5989('0x64')][_0x5989('0x119')][_0x5989('0x84')](_0x106539);if(!_0x48e241)continue;const _0x157add=_0x48e241[_0x5989('0x8d')]()['item'](0x0);_0x157add&&(_0x2ac936[_0x5989('0x85')](_0x106539),_0x353fe1[_0x5989('0xb7')](_0x106539,_0x157add));}return _0x2ac936[_0x5989('0x3d')]((_0x211a3b,_0x20687d)=>{const _0x365000=_0x353fe1['get'](_0x211a3b),_0x2c7181=_0x353fe1[_0x5989('0x1d')](_0x20687d);return _0x365000['y']-_0x2c7181['y']||_0x365000['x']-_0x2c7181['x'];}),(_0x4b25aa=_0x4b25aa['filter'](_0x1a90cb=>_0x2ac936[_0x5989('0xf5')](_0x1a90cb[_0x5989('0x50')])))[_0x5989('0x3d')]((_0x1dbbcb,_0x3fd233)=>_0x2ac936[_0x5989('0x69')](_0x1dbbcb['rootName'])-_0x2ac936[_0x5989('0x69')](_0x3fd233[_0x5989('0x50')])),_0x4b25aa;}[_0x5989('0x109')](_0x417d1b){const _0x513146=Array[_0x5989('0x9d')](_0x417d1b[_0x5989('0xe3')])['filter'](([_0x44da3d,_0x2587fa])=>_0x44da3d[_0x5989('0x71')](_0x5989('0xf9'))&&!_0x2587fa[_0x5989('0x122')]),_0x1e4065=Array[_0x5989('0x9d')](this['editor'][_0x5989('0x92')][_0x5989('0x8f')](_0x417d1b)[_0x5989('0xc0')]({'singleCharacters':!0x0}));if(0x0!=_0x513146['length'])for(const _0x5af7c8 of _0x1e4065){const [_0x3bb7fe,_0x11278d]=_0x513146[0x0],[,_0x444f66,_0x4d2102]=_0x3bb7fe['split'](':');if(_0x11278d[_0x5989('0xa')]['isEqual'](_0x5af7c8[_0x5989('0xc5')])&&_0x513146[_0x5989('0x63')](),(_0x5af7c8[_0x5989('0x3b')]['isEqual'](_0x11278d[_0x5989('0xce')])||_0x5af7c8[_0x5989('0x3b')][_0x5989('0xf1')](_0x11278d[_0x5989('0xce')]))&&(_0x5989('0x75')==_0x444f66?_0x5af7c8[_0x5989('0x44')]={'userId':_0x4d2102}:_0x5989('0xcd')==_0x444f66&&(_0x5af7c8[_0x5989('0xbd')]={'userId':_0x4d2102})),0x0==_0x513146['length'])break;}return _0x1e4065;}[_0x5989('0x39')](_0x90b126){const _0x493be4=new Map();for(let _0x596349=0x0;_0x596349<_0x90b126[_0x5989('0xe4')];_0x596349++)_0x5989('0xa8')===_0x90b126[_0x596349][_0x5989('0xd0')]?(_0x90b126[_0x596349][_0x5989('0x6d')][_0x5989('0x116')]=_0x596349,_0x90b126[_0x596349]['item'][_0x5989('0x4b')]=_0x596349):(_0x5989('0xbb')===_0x90b126[_0x596349][_0x5989('0xd0')]?_0x90b126[_0x596349][_0x5989('0x6d')][_0x5989('0x116')]=_0x596349:_0x5989('0x17')===_0x90b126[_0x596349][_0x5989('0xd0')]&&(_0x90b126[_0x596349][_0x5989('0x6d')][_0x5989('0x4b')]=_0x596349),_0x493be4[_0x5989('0xb7')](_0x90b126[_0x596349]['id'],_0x596349));for(const _0x51a5ea of _0x493be4['values']())_0x5989('0xbb')===_0x90b126[_0x51a5ea][_0x5989('0xd0')]?_0x90b126[_0x51a5ea]['item'][_0x5989('0x4b')]=_0x493be4['get'](_0x90b126[_0x51a5ea][_0x5989('0x9c')]):_0x5989('0x17')===_0x90b126[_0x51a5ea]['type']&&(_0x90b126[_0x51a5ea][_0x5989('0x6d')][_0x5989('0x116')]=_0x493be4[_0x5989('0x1d')](_0x90b126[_0x51a5ea][_0x5989('0x9c')]));}[_0x5989('0xd7')](_0x10a496){for(let _0x402610=0x0;_0x402610<_0x10a496['length'];_0x402610++){if(_0x5989('0xbb')===_0x10a496[_0x402610][_0x5989('0xd0')])_0x10a496[_0x402610]['item'][_0x5989('0x116')]=_0x402610;else{if(_0x5989('0x17')===_0x10a496[_0x402610][_0x5989('0xd0')]){_0x10a496[_0x402610][_0x5989('0x6d')][_0x5989('0x4b')]=_0x402610;const _0x3a97c7=_0x10a496[_0x402610][_0x5989('0x6d')][_0x5989('0x116')];_0x10a496[_0x3a97c7]['pairId']=_0x10a496[_0x402610]['id'],_0x10a496[_0x402610][_0x5989('0x9c')]=_0x10a496[_0x3a97c7]['id'];}else _0x10a496[_0x402610]['item'][_0x5989('0x116')]=_0x402610,_0x10a496[_0x402610][_0x5989('0x6d')][_0x5989('0x4b')]=_0x402610,_0x10a496[_0x402610][_0x5989('0x9c')]=null;}_0x10a496[_0x402610][_0x5989('0x89')]||(_0x10a496[_0x402610][_0x5989('0x89')]=[],_0x10a496[_0x402610][_0x5989('0x126')]=[]);}}[_0x5989('0x59')](_0x20fb36,_0x41689a){const _0x501d3a=_0x20fb36[_0x5989('0xee')](_0x2de3d6=>!_0x2de3d6[_0x5989('0x44')]);for(let _0x422dcc=0x0;_0x422dcc<_0x41689a[_0x5989('0xe4')];_0x422dcc++)_0x41689a[_0x422dcc]['isAdded']&&(_0x501d3a[_0x422dcc]['isAdded']=_0x41689a[_0x422dcc][_0x5989('0x44')]);}[_0x5989('0xed')](_0x3b5f19){const _0x510c33=JSON[_0x5989('0xd8')](_0x3b5f19),_0x278b7c=this[_0x5989('0x9a')][_0x5989('0x64')]['view'][_0x5989('0xf2')],_0x5c2616=new _0x28deba(_0x278b7c,_0x510c33[_0x5989('0xc1')](_0x3d1176=>this[_0x5989('0x58')](_0x3d1176)));return this['editor'][_0x5989('0xcc')][_0x5989('0x95')](_0x5c2616);}[_0x5989('0x58')](_0x4ba7dc){const _0x10f081=this[_0x5989('0x9a')][_0x5989('0x64')][_0x5989('0x119')][_0x5989('0xf2')];if(_0x5989('0x6')==typeof _0x4ba7dc)return new _0x1377c3(_0x10f081,_0x4ba7dc);{const _0x24a9c0=_0x4ba7dc['children'][_0x5989('0xc1')](_0x2890ba=>this['_getViewObj'](_0x2890ba));return new(tt[_0x4ba7dc[(_0x5989('0xd0'))]]||_0x4e72fa)(_0x10f081,_0x4ba7dc['name'],_0x4ba7dc['attributes'],_0x24a9c0);}}[_0x5989('0xdd')](_0x5b5e15,_0x3e236d=null){const _0x31db0d=this['repository'][_0x5989('0x38')](_0x5b5e15),_0x90ba75=_0x3e236d?this[_0x5989('0x87')]['getRevision'](_0x3e236d):null,_0x2881e1=this[_0x5989('0x10f')](_0x31db0d,_0x90ba75),_0x11d615=_0x2881e1[_0x2881e1[_0x5989('0xe4')]-0x1],_0x22803b=new Map(),_0x1eb004={'model':{},'attributes':{},'changes':[]},_0x452926=new Set(),_0x286bb8=new Map();for(let _0x1e9b4d=_0x2881e1[_0x5989('0xe4')]-0x1;_0x1e9b4d>=0x0;_0x1e9b4d--){const _0x272ffa=_0x2881e1[_0x1e9b4d];for(const _0x1fefea of Object[_0x5989('0x86')](_0x272ffa['diffData']))if(_0x272ffa[_0x5989('0xe5')][_0x1fefea][_0x5989('0x25')]){const _0x3f9b59=_0x272ffa[_0x5989('0xe5')][_0x1fefea][_0x5989('0x25')];_0x3f9b59['isAttached']?(_0x452926['add'](_0x1fefea),_0x286bb8[_0x5989('0xd2')](_0x1fefea)&&_0x286bb8['get'](_0x1fefea)['userId']==_0x3f9b59['userId']?_0x286bb8[_0x5989('0xb4')](_0x1fefea):_0x286bb8[_0x5989('0xb7')](_0x1fefea,_0x3f9b59)):_0x286bb8[_0x5989('0xd2')](_0x1fefea)?(_0x452926[_0x5989('0xb4')](_0x1fefea),_0x286bb8['delete'](_0x1fefea)):(_0x452926[_0x5989('0x118')](_0x1fefea),_0x286bb8[_0x5989('0xb7')](_0x1fefea,_0x3f9b59));}else _0x452926['add'](_0x1fefea);}for(const _0x18d647 of _0x452926){const _0x166645=_0x286bb8[_0x5989('0xd2')](_0x18d647)&&!_0x286bb8[_0x5989('0x1d')](_0x18d647)[_0x5989('0x5')];let _0x56d2cb=_0x166645?_0x2881e1[_0x5989('0xe4')]-0x1:0x0;const _0x441320=_0x166645?-0x1:0x1;for(;_0x2881e1[_0x56d2cb];){const _0x2a56ed=_0x2881e1[_0x56d2cb];if(_0x2a56ed['diffData'][_0x18d647]){const _0x3e5727=_0x166645?_0x2a56ed[_0x5989('0xe5')][_0x18d647][_0x5989('0x82')]:_0x2a56ed[_0x5989('0xe5')][_0x18d647]['attributesAfter'];_0x1eb004['attributes'][_0x18d647]=_0x3e5727?_0x21e9ac(_0x3e5727):{};break;}_0x56d2cb+=_0x441320;}}for(const _0x1cebfe of _0x2881e1){_0x1cebfe[_0x5989('0x92')]={};for(const _0x475d5b of _0x1cebfe[_0x5989('0x33')])_0x22803b[_0x5989('0xb7')](_0x475d5b['id'],_0x475d5b);for(const _0x4c5aaf of _0x452926){const _0x1d3b6e=_0x1cebfe[_0x5989('0xe5')][_0x4c5aaf]?_0x1cebfe[_0x5989('0xe5')][_0x4c5aaf]['insertions']:'[]',_0x210044=_0x1cebfe[_0x5989('0xe5')][_0x4c5aaf]?_0x1cebfe[_0x5989('0xe5')][_0x4c5aaf][_0x5989('0xb6')]:'[]';_0x1cebfe[_0x5989('0x92')][_0x4c5aaf]={'insertions':this['_makeModelFromViewString'](_0x1d3b6e),'deletions':this[_0x5989('0xed')](_0x210044)};}}for(const _0x513745 of _0x452926){let _0x23959b=null,_0x522381=0x0;const _0x50c073=new Map(Array[_0x5989('0x9d')](_0x31db0d['model'][_0x513745][_0x5989('0x60')][_0x5989('0xe3')])[_0x5989('0xee')](([_0x484470])=>!_0x484470[_0x5989('0x71')](_0x5989('0xf9'))));let _0x230b13=0x0;for(const _0x1f15c8 of _0x2881e1){const _0x20b90e=this[_0x5989('0x109')](_0x1f15c8[_0x5989('0x92')][_0x513745][_0x5989('0x60')]);_0x1f15c8==_0x31db0d?(_0x23959b=_0x20b90e,_0x522381=_0x23959b['length'],_0x23959b[_0x5989('0x56')](_0x35fe1c=>{_0x35fe1c['id']=_0x230b13++;}),this[_0x5989('0xd7')](_0x23959b)):this[_0x5989('0x59')](_0x23959b,_0x20b90e);const _0x5d2f8d=_0x23959b[_0x5989('0xee')](_0x40f912=>!_0x40f912[_0x5989('0x44')])[_0x5989('0xc1')](_0xc3889c=>_0xc3889c['id']);let _0x328b68=0x0;const _0x25e2eb=this[_0x5989('0x109')](_0x1f15c8[_0x5989('0x92')][_0x513745][_0x5989('0xb6')]);_0x25e2eb[_0x5989('0x56')](_0x1e7073=>{_0x1e7073[_0x5989('0xbd')]?_0x1e7073['id']=_0x522381++:_0x1e7073['id']=_0x5d2f8d[_0x328b68++];}),this[_0x5989('0xd7')](_0x25e2eb),this[_0x5989('0x4d')](_0x23959b,_0x5989('0x44')),this['_setDistance'](_0x25e2eb,_0x5989('0xbd')),_0x1f15c8==_0x31db0d&&this[_0x5989('0x5a')](_0x23959b,_0x50c073),_0x23959b=this[_0x5989('0xd6')](_0x23959b,_0x25e2eb),this[_0x5989('0x39')](_0x23959b),this['_setDistance'](_0x23959b,'isRemoved');}_0x23959b=_0x23959b['filter'](_0x29a6e0=>!(_0x29a6e0['isAdded']&&_0x29a6e0[_0x5989('0xbd')]));const _0x59fe74=new Map(_0x11d615[_0x5989('0x92')][_0x513745][_0x5989('0xb6')]['markers']),_0x1e8915=new Set(_0x50c073[_0x5989('0x86')]());for(const _0xd5d325 of _0x59fe74[_0x5989('0x86')]())_0x1e8915[_0x5989('0xb4')](_0xd5d325);this['_markSuggestions'](_0x23959b,_0x1e8915),this[_0x5989('0x104')](_0x23959b),_0x23959b=this[_0x5989('0x21')](_0x23959b),_0x23959b=this[_0x5989('0xaa')](_0x23959b),_0x23959b=this[_0x5989('0x107')](_0x23959b);const {root:_0x56c41a,changes:_0x3f7222}=this[_0x5989('0xff')](_0x23959b,_0x22803b,_0x513745);_0x1eb004[_0x5989('0x92')][_0x513745]=_0x56c41a;const _0x3e37e4=_0x286bb8[_0x5989('0x1d')](_0x513745);if(_0x3e37e4){const _0x1c2725=_0x22803b[_0x5989('0x1d')](_0x3e37e4[_0x5989('0x9b')]),_0x46f33=new _0x389466({'author':_0x1c2725,'type':_0x3e37e4[_0x5989('0x5')]?_0x5989('0x118'):_0x5989('0x10c'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x513745});_0x3f7222[_0x5989('0xb1')](_0x46f33),_0x1eb004['attributes'][_0x513745][_0x5989('0x5e')]=_0x46f33['id'];}_0x1eb004['changes']=_0x1eb004['changes'][_0x5989('0x1f')](_0x3f7222);}return _0x1eb004;}[_0x5989('0x5a')](_0x5f19c1,_0x48c8d){for(let _0x90fde2=0x0;_0x90fde2<_0x5f19c1[_0x5989('0xe4')];_0x90fde2++)for(const [_0x26beda,_0x45cc69]of _0x48c8d)_0x45cc69[_0x5989('0xce')][_0x5989('0xa1')](_0x5f19c1[_0x90fde2][_0x5989('0x3b')])&&_0x5f19c1[_0x90fde2][_0x5989('0x89')][_0x5989('0x85')](_0x26beda),_0x45cc69['end'][_0x5989('0xa1')](_0x5f19c1[_0x90fde2][_0x5989('0xc5')])&&_0x5f19c1[_0x90fde2][_0x5989('0x126')][_0x5989('0x85')](_0x26beda);}['_joinTapes'](_0x4b053e,_0x2ff50c){let _0x1718e6=[],_0x5f1585=0x0,_0x57b51f=0x0;for(;_0x5f1585<_0x4b053e[_0x5989('0xe4')]||_0x57b51f<_0x2ff50c[_0x5989('0xe4')];){const _0x43cde2=_0x4b053e[_0x5f1585]||{},_0x5419d4=_0x2ff50c[_0x57b51f]||{};if(_0x43cde2['id']==_0x5419d4['id'])_0x5f1585++,_0x57b51f++,_0x1718e6[_0x5989('0x85')](_0x43cde2);else{if(_0x5419d4['isRemoved']&&_0x43cde2[_0x5989('0x44')]){const {commonTape:_0x32d3e1,iEnd:_0x24b435,jEnd:_0x35ce06}=this['_threeWayMerge'](_0x4b053e,_0x5f1585,_0x2ff50c,_0x57b51f);_0x1718e6=_0x1718e6[_0x5989('0x1f')](_0x32d3e1),_0x5f1585=_0x24b435,_0x57b51f=_0x35ce06;}else _0x5419d4[_0x5989('0xbd')]?(_0x57b51f++,_0x1718e6[_0x5989('0x85')](_0x5419d4)):(_0x5f1585++,_0x1718e6[_0x5989('0x85')](_0x43cde2));}}return _0x1718e6;}[_0x5989('0x6c')](_0x49e2b3,_0x11401e){const _0x459dd2=[];for(let _0x3498ed=0x0;_0x3498ed<_0x49e2b3[_0x5989('0xe4')];_0x3498ed++){for(let _0x5c4a20=0x0;_0x5c4a20<_0x49e2b3[_0x3498ed][_0x5989('0x89')][_0x5989('0xe4')];_0x5c4a20++){const _0x10962d=_0x49e2b3[_0x3498ed][_0x5989('0x89')][_0x5c4a20];if(!_0x11401e[_0x5989('0xd2')](_0x10962d))continue;const {group:_0x26d5dc,type:_0x3afe61,authorId:_0x3b13d7}=_0x4c5426(_0x10962d);_0x5989('0x7f')!=_0x26d5dc||_0x5989('0x75')!=_0x3afe61&&_0x5989('0xcd')!=_0x3afe61||(_0x459dd2['unshift']({'type':_0x3afe61,'name':_0x10962d,'userId':_0x3b13d7}),_0x49e2b3[_0x3498ed][_0x5989('0x89')]['splice'](_0x5c4a20,0x1),_0x5c4a20--);}_0x41b2a0(_0x49e2b3[_0x3498ed]);for(let _0x28a130=0x0;_0x28a130<_0x49e2b3[_0x3498ed]['markersEnd'][_0x5989('0xe4')];_0x28a130++){const _0x56737b=_0x49e2b3[_0x3498ed][_0x5989('0x126')][_0x28a130];if(!_0x11401e[_0x5989('0xd2')](_0x56737b))continue;const {group:_0x3abe78,type:_0x24410f}=_0x4c5426(_0x56737b);if(_0x5989('0x7f')!=_0x3abe78||_0x5989('0x75')!=_0x24410f&&_0x5989('0xcd')!=_0x24410f)continue;_0x49e2b3[_0x3498ed][_0x5989('0x126')][_0x5989('0x23')](_0x28a130,0x1),_0x28a130--;const _0x54c332=_0x459dd2[_0x5989('0x8b')](_0x2ffc80=>_0x2ffc80['name']==_0x56737b);_0x54c332>-0x1&&_0x459dd2[_0x5989('0x23')](_0x54c332,0x1);}}function _0x4c5426(_0x2981c8){const _0x4dbef7=_0x2981c8[_0x5989('0xa4')](':');return{'group':_0x4dbef7[0x0],'type':_0x4dbef7[0x1],'subType':_0x4dbef7['length']>=0x5?_0x4dbef7[0x2]:null,'id':_0x4dbef7[_0x5989('0xe4')]<0x5?_0x4dbef7[0x2]:_0x4dbef7[0x3],'authorId':_0x4dbef7['length']<0x5?_0x4dbef7[0x3]:_0x4dbef7[0x4],'markerCount':0x6==_0x4dbef7[_0x5989('0xe4')]?_0x4dbef7[0x5]:null};}function _0x41b2a0(_0x37587b){for(let _0x59e42b=0x0;_0x59e42b<_0x459dd2[_0x5989('0xe4')];_0x59e42b++){if(_0x37587b[_0x5989('0x44')]&&'insertion'==_0x459dd2[_0x59e42b][_0x5989('0xd0')])return _0x37587b[_0x5989('0x6a')]=_0x459dd2[_0x59e42b],void delete _0x37587b['isAdded'];if(!_0x37587b['isAdded']&&!_0x37587b[_0x5989('0xbd')]&&_0x5989('0xcd')==_0x459dd2[_0x59e42b][_0x5989('0xd0')])return void(_0x37587b[_0x5989('0xa2')]=_0x459dd2[_0x59e42b]);}}}[_0x5989('0x4d')](_0x2d3d25,_0x386503){let _0x23e12d=0x0,_0x2b87ff=!0x1;const _0x53128b=new Map();for(const _0x89d513 of _0x2d3d25)_0x89d513[_0x386503]?_0x2b87ff&&(_0x23e12d++,_0x2b87ff=!0x1):(_0x23e12d++,_0x2b87ff=!0x0),_0x53128b[_0x5989('0xb7')](_0x89d513['id'],_0x23e12d);for(let _0x280777=0x0;_0x280777<_0x2d3d25[_0x5989('0xe4')];_0x280777++){if(_0x5989('0xbd')==_0x386503&&_0x2d3d25[_0x280777][_0x5989('0x44')]||_0x5989('0x44')==_0x386503&&_0x2d3d25[_0x280777][_0x5989('0xbd')])continue;if(_0x5989('0xa8')==_0x2d3d25[_0x280777]['type']){_0x2d3d25[_0x280777]['distance']=0x0;continue;}const _0x249f1c=_0x53128b['get'](_0x2d3d25[_0x280777][_0x5989('0x9c')]),_0x2b6b5a=_0x53128b['get'](_0x2d3d25[_0x280777]['id']);_0x2d3d25[_0x280777][_0x5989('0x5d')]=_0x249f1c-_0x2b6b5a;}}['_getRevisionsRange'](_0x510a42,_0x1d65ec,_0x342c1f=!0x1){const _0x58c33e=[];let _0x29ac75=this['repository'][_0x5989('0x7')](_0x510a42),_0x3d75ea=this['repository']['getIndex'](_0x1d65ec);for(-0x1==_0x3d75ea&&(_0x3d75ea=this[_0x5989('0x87')]['_revisions'][_0x5989('0xe4')],_0x342c1f=!0x1);_0x29ac75<_0x3d75ea;)_0x58c33e['push'](this[_0x5989('0x87')][_0x5989('0x38')](_0x29ac75)),_0x29ac75++;return _0x342c1f&&_0x58c33e[_0x5989('0x85')](this[_0x5989('0x87')]['getRevision'](_0x29ac75)),_0x58c33e;}[_0x5989('0xe7')](_0xd8fadf,_0x2f0203,_0x2c6626,_0x59d503){const _0x1ab309=this[_0x5989('0x9a')][_0x5989('0x92')][_0x5989('0xe0')];let _0x1404d4=_0x2f0203;for(;_0xd8fadf[_0x1404d4]&&_0xd8fadf[_0x1404d4][_0x5989('0x44')];)_0x1404d4++;let _0x813ec5=_0x59d503;for(;_0x2c6626[_0x813ec5]&&_0x2c6626[_0x813ec5]['isRemoved'];)_0x813ec5++;_0x18ebcd(_0xd8fadf,_0x2f0203,_0x1404d4),_0x18ebcd(_0x2c6626,_0x59d503,_0x813ec5);const _0x21a82f=_0x2c6626['slice'](_0x59d503,_0x813ec5)[_0x5989('0x1f')](_0xd8fadf[_0x5989('0xd1')](_0x2f0203,_0x1404d4));return _0x21a82f[_0x5989('0x3d')]((_0x57ab51,_0x2c0c2b)=>_0x57ab51[_0x5989('0xef')]!=_0x2c0c2b[_0x5989('0xef')]?_0x57ab51[_0x5989('0xef')]-_0x2c0c2b[_0x5989('0xef')]:_0x57ab51[_0x5989('0x7a')]!=_0x2c0c2b[_0x5989('0x7a')]?_0x57ab51[_0x5989('0x7a')]-_0x2c0c2b['level']:_0x57ab51['distance']!=_0x2c0c2b[_0x5989('0x5d')]?_0x2c0c2b['distance']-_0x57ab51[_0x5989('0x5d')]:!!_0x57ab51[_0x5989('0x44')]!=!!_0x2c0c2b['isAdded']?-0x1==_0x57ab51[_0x5989('0xef')]||0x0==_0x57ab51[_0x5989('0xef')]?_0x57ab51[_0x5989('0x44')]?-0x1:0x1:_0x57ab51[_0x5989('0x44')]?0x1:-0x1:_0x57ab51[_0x5989('0xa5')]-_0x2c0c2b[_0x5989('0xa5')]),{'commonTape':_0x21a82f,'iEnd':_0x1404d4,'jEnd':_0x813ec5};function _0x18ebcd(_0x1a8257,_0x1f985a,_0x2e7266){let _0x3797c3=-0x1,_0x2c4a6b=Number[_0x5989('0x40')],_0x2fee25=!0x0;for(let _0x249a58=_0x1f985a;_0x249a58<_0x2e7266;_0x249a58++)if(_0x1ab309[_0x5989('0x19')](_0x1a8257[_0x249a58][_0x5989('0x6d')])||(_0x2fee25=!0x1),_0x1a8257[_0x249a58]['item'][_0x5989('0x116')]<_0x1f985a&&(_0x3797c3=_0x249a58),_0x1a8257[_0x249a58][_0x5989('0x6d')][_0x5989('0x4b')]>=_0x2e7266){_0x2c4a6b=_0x249a58;break;}_0x2fee25&&(_0x3797c3=_0x2e7266-0x1);for(let _0x12fa80=_0x1f985a;_0x12fa80<_0x2e7266;_0x12fa80++)_0x1a8257[_0x12fa80][_0x5989('0xef')]=_0x12fa80<=_0x3797c3?-0x1:_0x12fa80<_0x2c4a6b?0x0:0x1,_0x1a8257[_0x12fa80][_0x5989('0xa5')]=_0x12fa80;let _0x26a423=0x0;for(let _0x1283c6=_0x1f985a;_0x1283c6<=_0x3797c3;_0x1283c6++)0x0==_0x1a8257[_0x1283c6]['distance']?_0x1a8257[_0x1283c6][_0x5989('0x7a')]=_0x26a423:(_0x26a423++,_0x1a8257[_0x1283c6][_0x5989('0x7a')]=_0x26a423,_0x26a423++);for(let _0x29af74=_0x1f985a;_0x29af74<_0x2e7266;_0x29af74++)0x0==_0x1a8257[_0x29af74]['side']&&(_0x1a8257[_0x29af74]['level']=_0x26a423);_0x26a423=0x0;for(let _0x14c33c=_0x2e7266-0x1;_0x14c33c>=_0x2c4a6b;_0x14c33c--)0x0==_0x1a8257[_0x14c33c]['distance']?_0x1a8257[_0x14c33c][_0x5989('0x7a')]=_0x26a423:(_0x26a423--,_0x1a8257[_0x14c33c][_0x5989('0x7a')]=_0x26a423,_0x26a423--);}}[_0x5989('0x104')](_0x2f794e){const _0x194508=new Map(),_0x59fc26=this[_0x5989('0x9a')][_0x5989('0x92')][_0x5989('0xe0')];for(let _0x4b9fcc=0x1;_0x4b9fcc<_0x2f794e[_0x5989('0xe4')];_0x4b9fcc++){let _0x9bb74,_0x150557,_0x5857bc;const _0x1b9d24=_0x2f794e[_0x4b9fcc],_0x54c8ff=_0x2f794e[_0x4b9fcc-0x1];if('text'==_0x1b9d24['type'])continue;if(_0x1b9d24[_0x5989('0xd0')]!=_0x54c8ff['type'])continue;if(!_0x59fc26[_0x5989('0xb0')](_0x54c8ff[_0x5989('0x6d')])||_0x59fc26['isLimit'](_0x54c8ff[_0x5989('0x6d')]))continue;if(!_0x59fc26[_0x5989('0xb0')](_0x1b9d24[_0x5989('0x6d')])||_0x59fc26[_0x5989('0x18')](_0x1b9d24[_0x5989('0x6d')]))continue;if((_0x2f794e[_0x4b9fcc]['isAdded']||_0x2f794e[_0x4b9fcc][_0x5989('0x6a')])&&_0x2f794e[_0x4b9fcc-0x1]['isRemoved'])_0x9bb74=_0x2f794e[_0x4b9fcc],_0x150557=_0x2f794e[_0x4b9fcc-0x1],_0x5857bc=_0x4b9fcc-0x1;else{if(!_0x2f794e[_0x4b9fcc][_0x5989('0xbd')]||!_0x2f794e[_0x4b9fcc-0x1]['isAdded']&&!_0x2f794e[_0x4b9fcc-0x1][_0x5989('0x6a')])continue;_0x9bb74=_0x2f794e[_0x4b9fcc-0x1],_0x150557=_0x2f794e[_0x4b9fcc],_0x5857bc=_0x4b9fcc;}const _0x1ee1f6=_0x9bb74['level']==_0x150557[_0x5989('0x7a')],_0x4c5156=Math[_0x5989('0xf6')](_0x9bb74[_0x5989('0x7a')])<Math[_0x5989('0xf6')](_0x150557[_0x5989('0x7a')])&&0x0==_0x150557[_0x5989('0x5d')];(_0x1ee1f6||_0x4c5156)&&(_0x194508[_0x5989('0xb7')](_0x150557['id'],_0x9bb74['id']),_0x2f794e[_0x5989('0x23')](_0x5857bc,0x1),_0x4b9fcc--,_0x9bb74[_0x5989('0x44')]=!0x1);}for(let _0x49acf3=0x0;_0x49acf3<_0x2f794e[_0x5989('0xe4')];_0x49acf3++)_0x194508[_0x5989('0xd2')](_0x2f794e[_0x49acf3][_0x5989('0x9c')])&&(_0x2f794e[_0x49acf3][_0x5989('0x9c')]=_0x194508[_0x5989('0x1d')](_0x2f794e[_0x49acf3]['pairId']));}[_0x5989('0x21')](_0x25adc1){const _0x21e8ca=new Set(_0x25adc1[_0x5989('0xc1')](_0x462048=>_0x462048['id']));for(let _0x60f0e9=0x0;_0x60f0e9<_0x25adc1[_0x5989('0xe4')];_0x60f0e9++)_0x21e8ca[_0x5989('0xd2')](_0x25adc1[_0x60f0e9][_0x5989('0x9c')])||0x0==_0x25adc1[_0x60f0e9][_0x5989('0x5d')]||(_0x25adc1[_0x60f0e9][_0x5989('0x6f')]=!0x0);return _0x25adc1['filter'](_0x52de8f=>!_0x52de8f[_0x5989('0x6f')]);}[_0x5989('0xaa')](_0x5effc5){const _0x254ff3=new Set();for(let _0x2c0180=0x0;_0x2c0180<_0x5effc5[_0x5989('0xe4')];_0x2c0180++){if(_0x254ff3[_0x5989('0xd2')](_0x5effc5[_0x2c0180]['id'])&&_0x5effc5[_0x2c0180][_0x5989('0xbd')]&&(_0x5effc5[_0x2c0180][_0x5989('0x6f')]=!0x0),_0x5effc5[_0x2c0180]['isIncorrect'])continue;if(0x0==_0x5effc5[_0x2c0180][_0x5989('0x5d')])continue;if(_0x5989('0xbb')!=_0x5effc5[_0x2c0180][_0x5989('0xd0')])continue;if(null==_0x5effc5[_0x2c0180][_0x5989('0x9c')])continue;let _0x431f7e=_0x2c0180+0x1,_0x4fda5d=0x0;for(;_0x5effc5[_0x431f7e]['id']!=_0x5effc5[_0x2c0180][_0x5989('0x9c')];)'elementStart'==_0x5effc5[_0x431f7e]['type']?_0x4fda5d++:'elementEnd'==_0x5effc5[_0x431f7e][_0x5989('0xd0')]&&_0x4fda5d--,_0x431f7e++;if(0x0!=_0x4fda5d){if(_0x5effc5[_0x2c0180][_0x5989('0xbd')])_0x5effc5[_0x2c0180][_0x5989('0x6f')]=!0x0;else for(;_0x431f7e!=_0x2c0180;)_0x5effc5[_0x431f7e][_0x5989('0xbd')]&&0x0!=_0x5effc5[_0x431f7e][_0x5989('0x5d')]&&(_0x5effc5[_0x431f7e][_0x5989('0x6f')]=!0x0,_0x254ff3[_0x5989('0x118')](_0x5effc5[_0x431f7e][_0x5989('0x9c')])),_0x431f7e--;}}return _0x5effc5[_0x5989('0xee')](_0x343b36=>!_0x343b36[_0x5989('0x6f')]);}[_0x5989('0x107')](_0x48cc5d){const _0x287d50=this[_0x5989('0x9a')][_0x5989('0x92')][_0x5989('0xe0')];for(let _0x334e2=0x0;_0x334e2<_0x48cc5d[_0x5989('0xe4')];_0x334e2++){if(!(_0x48cc5d[_0x334e2][_0x5989('0x44')]||_0x48cc5d[_0x334e2][_0x5989('0x6a')]||_0x48cc5d[_0x334e2][_0x5989('0xbd')]||_0x48cc5d[_0x334e2][_0x5989('0xa2')]))continue;if(0x0==_0x48cc5d[_0x334e2][_0x5989('0x5d')])continue;const _0x5ae669=_0x48cc5d[_0x334e2]['item'];_0x287d50[_0x5989('0xb0')](_0x5ae669)||_0x287d50[_0x5989('0x18')](_0x5ae669)||(_0x48cc5d[_0x334e2]['isAdded']&&delete _0x48cc5d[_0x334e2][_0x5989('0x44')],_0x48cc5d[_0x334e2][_0x5989('0x6a')]&&delete _0x48cc5d[_0x334e2][_0x5989('0x6a')],_0x48cc5d[_0x334e2][_0x5989('0xa2')]&&delete _0x48cc5d[_0x334e2][_0x5989('0xa2')],_0x48cc5d[_0x334e2]['isRemoved']&&(_0x48cc5d[_0x334e2][_0x5989('0x6f')]=!0x0));}return _0x48cc5d['filter'](_0x484fa4=>!_0x484fa4['isIncorrect']);}['_makeModelFromTape'](_0x256721,_0x402967,_0x49b69f){const _0x56f099=new _0xc66f45(),_0x3347f0=[],_0x13901a=new Map(),_0x1d95c4=this[_0x5989('0x9a')][_0x5989('0x92')],_0x5b9226=_0x1d95c4[_0x5989('0xe0')],_0x44d055=[_0x56f099],_0x14c1b0={},_0x4c2be1={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x20a845=null;const _0x5ea085=[0x0];for(let _0x11409e=0x0;_0x11409e<_0x256721['length'];_0x11409e++){let _0x14399d,_0x16ee17;if(_0x5989('0xbb')===_0x256721[_0x11409e]['type']){_0x14399d=_0x1d95c4['createPositionFromPath'](_0x56f099,_0x5ea085);const _0x206553=new _0xcf83e4(_0x256721[_0x11409e][_0x5989('0x6d')][_0x5989('0xb2')],_0x256721[_0x11409e][_0x5989('0x6d')][_0x5989('0x35')]());_0x44d055[0x0][_0x5989('0x2f')](_0x206553),_0x5ea085[_0x5989('0x85')](0x0),_0x44d055[_0x5989('0xb1')](_0x206553),_0x16ee17=_0x1d95c4[_0x5989('0xb3')](_0x56f099,_0x5ea085),_0x20a845=null;}else{if(_0x5989('0x17')===_0x256721[_0x11409e][_0x5989('0xd0')])_0x44d055[_0x5989('0x63')](),_0x14399d=_0x1d95c4[_0x5989('0xb3')](_0x56f099,_0x5ea085),_0x5ea085[_0x5989('0x46')](),_0x5ea085[_0x5ea085[_0x5989('0xe4')]-0x1]++,_0x16ee17=_0x1d95c4[_0x5989('0xb3')](_0x56f099,_0x5ea085),_0x20a845=null;else{if(_0x14399d=_0x1d95c4[_0x5989('0xb3')](_0x56f099,_0x5ea085),_0x20a845&&_0x5d1814(_0x20a845,_0x256721[_0x11409e][_0x5989('0x6d')]))_0x20a845[_0x5989('0x99')]+=_0x256721[_0x11409e][_0x5989('0x6d')][_0x5989('0xcc')];else{const _0x154f39=new _0x16f66b(_0x256721[_0x11409e][_0x5989('0x6d')][_0x5989('0xcc')],_0x256721[_0x11409e][_0x5989('0x6d')]['getAttributes']());_0x44d055[0x0]['_appendChild'](_0x154f39),_0x20a845=_0x154f39;}_0x5ea085[_0x5ea085[_0x5989('0xe4')]-0x1]+=_0x256721[_0x11409e][_0x5989('0x6d')][_0x5989('0xdc')],_0x16ee17=_0x1d95c4[_0x5989('0xb3')](_0x56f099,_0x5ea085);}}for(const _0x30e9e7 of _0x256721[_0x11409e][_0x5989('0x89')])_0x13901a[_0x5989('0xb7')](_0x30e9e7,{'start':_0x14399d,'end':null});_0x23a530(_0x5989('0xa2'),_0x11409e,_0x14399d,_0x16ee17),_0x23a530(_0x5989('0x6a'),_0x11409e,_0x14399d,_0x16ee17),_0x23a530(_0x5989('0xbd'),_0x11409e,_0x14399d,_0x16ee17),_0x23a530(_0x5989('0x44'),_0x11409e,_0x14399d,_0x16ee17);for(const _0x7684fe of _0x256721[_0x11409e][_0x5989('0x126')]){_0x13901a['get'](_0x7684fe)[_0x5989('0xa')]=_0x16ee17;}}for(const [_0x178cc5,_0x3edbfb]of _0x13901a){const _0x189dbb=this[_0x5989('0x9a')][_0x5989('0x92')][_0x5989('0x11e')](_0x3edbfb[_0x5989('0xce')],_0x3edbfb[_0x5989('0xa')]);_0x56f099[_0x5989('0xe3')][_0x5989('0xb7')](_0x178cc5,_0x189dbb);}return _0x3347f0[_0x5989('0x3d')]((_0x41a5f8,_0x575cd6)=>{const _0x153a06=_0x56f099[_0x5989('0xe3')][_0x5989('0x1d')](_0x5989('0xf9')+_0x41a5f8['id']),_0x447459=_0x56f099[_0x5989('0xe3')]['get']('revision:'+_0x575cd6['id']);return _0x153a06[_0x5989('0xce')][_0x5989('0xbc')](_0x447459['start'])?-0x1:_0x153a06['start'][_0x5989('0xf1')](_0x447459[_0x5989('0xce')])?0x1:_0x153a06['end'][_0x5989('0xbc')](_0x447459['end'])?-0x1:_0x153a06['end']['isAfter'](_0x447459[_0x5989('0xa')])?0x1:'add'===_0x41a5f8[_0x5989('0xd0')]?-0x1:0x1;}),{'root':_0x56f099,'changes':_0x3347f0};function _0x23a530(_0x17574e,_0x58ab5d,_0x598cbe,_0xcde9f2){const _0xe7332a=!!_0x256721[_0x58ab5d][_0x17574e],_0x4c18ce=_0xe7332a?_0x256721[_0x58ab5d][_0x17574e][_0x5989('0x9b')]:null,_0x5d3a57=_0x58ab5d===_0x256721[_0x5989('0xe4')]-0x1,_0x4f4d84=_0x4c2be1[_0x17574e][0x0],_0x199ac8=_0x5b9226['isObject'](_0x256721[_0x58ab5d][_0x5989('0x6d')]);!_0x14c1b0[_0x17574e]&&_0xe7332a?_0x14c1b0[_0x17574e]={'start':_0x598cbe,'tapeItem':_0x256721[_0x58ab5d],'userId':_0x4c18ce,'type':_0x17574e}:_0x14c1b0[_0x17574e]&&!_0xe7332a?(_0x14c1b0[_0x17574e][_0x5989('0xa')]=_0x598cbe,_0x2837ab(_0x14c1b0[_0x17574e]),_0x14c1b0[_0x17574e]=null):_0x14c1b0[_0x17574e]&&_0xe7332a&&_0x14c1b0[_0x17574e][_0x5989('0x9b')]!==_0x4c18ce&&(_0x14c1b0[_0x17574e][_0x5989('0xa')]=_0x598cbe,_0x4f4d84&&_0x4f4d84[_0x5989('0x9b')]===_0x14c1b0[_0x17574e]['userId']||_0x2837ab(_0x14c1b0[_0x17574e]),_0x14c1b0[_0x17574e]={'start':_0x598cbe,'tapeItem':_0x256721[_0x58ab5d],'userId':_0x4c18ce,'type':_0x17574e}),_0x14c1b0[_0x17574e]&&_0x199ac8&&(_0x5989('0xbb')!==_0x256721[_0x58ab5d][_0x5989('0xd0')]||_0x4f4d84&&_0x4f4d84[_0x5989('0x9b')]===_0x4c18ce||_0x4c2be1[_0x17574e]['unshift']({'userId':_0x4c18ce,'object':_0x256721[_0x58ab5d][_0x5989('0x6d')],'change':_0x14c1b0[_0x17574e]}),_0x5989('0x17')===_0x256721[_0x58ab5d]['type']&&_0x4f4d84&&_0x4f4d84[_0x5989('0xae')]===_0x256721[_0x58ab5d][_0x5989('0x6d')]&&(_0x4c2be1[_0x17574e][_0x5989('0x63')](),_0x14c1b0[_0x17574e]=_0x4f4d84[_0x5989('0x9e')])),_0x14c1b0[_0x17574e]&&_0x5d3a57&&(_0x14c1b0[_0x17574e][_0x5989('0xa')]=_0xcde9f2,_0x2837ab(_0x14c1b0[_0x17574e]),_0x14c1b0[_0x17574e]=null);}function _0x2837ab({start:_0x4cadb8,end:_0x3c701a,tapeItem:_0x4be47f,userId:_0x4d8ce1,type:_0x2b6c12}){const _0x27c1fb=_0x4be47f[_0x5989('0x6d')],_0x35fd58=_0x1d95c4[_0x5989('0xe0')][_0x5989('0xb0')](_0x27c1fb)&&!_0x1d95c4[_0x5989('0xe0')][_0x5989('0x18')](_0x27c1fb),_0x5e1b79=_0x4cadb8[_0x5989('0x28')]==_0x3c701a[_0x5989('0x62')]&&_0x3c701a[_0x5989('0x117')];if(_0x35fd58&&_0x5e1b79)return;const _0x4f03b5=_0x1d95c4['createRange'](_0x4cadb8,_0x3c701a),_0x44fc37=_0x402967[_0x5989('0x1d')](_0x4d8ce1),_0x3e3df9=new _0x389466({'author':_0x44fc37,'type':'isAdded'==_0x2b6c12||_0x5989('0x6a')==_0x2b6c12?_0x5989('0x118'):_0x5989('0x10c'),'data':{'isSuggestion':_0x5989('0x6a')==_0x2b6c12||_0x5989('0xa2')==_0x2b6c12},'createdAt':new Date(),'rootName':_0x49b69f});_0x3347f0[_0x5989('0x85')](_0x3e3df9),_0x56f099['markers'][_0x5989('0xb7')](_0x5989('0xf9')+_0x3e3df9['id'],_0x4f03b5);}function _0x5d1814(_0x29d88e,_0x1d6839){const _0x41da8f=_0x29d88e['getAttributes'](),_0x62c852=_0x1d6839['getAttributes']();for(const _0x2e9474 of _0x41da8f){if(_0x2e9474[0x1]!==_0x1d6839[_0x5989('0xb8')](_0x2e9474[0x0]))return!0x1;_0x62c852[_0x5989('0x72')]();}return _0x62c852[_0x5989('0x72')]()[_0x5989('0x15')];}}[_0x5989('0x2')](){this[_0x5989('0x9a')]['conversion'][_0x5989('0xa0')](_0x5989('0xfe'))['dataToMarker']({'view':_0x5989('0xe9')}),this['editor'][_0x5989('0x74')][_0x5989('0xa0')](_0x5989('0x24'))[_0x5989('0x81')]({'model':_0x5989('0xe9'),'view':_0x2cfab2=>{const _0x254e41=_0x2cfab2['markerName']['split'](':')[0x1],_0x4d24bc=this['_getChangeFromId'](_0x254e41);if(!_0x4d24bc)return null;const _0x5b321e=_0x5989('0x118')==_0x4d24bc[_0x5989('0xd0')]?'insertion':_0x5989('0xcd'),_0x57d487=[_0x5989('0x3f'),_0x5989('0x83')+_0x5b321e];return _0x4d24bc[_0x5989('0xcc')][_0x5989('0xea')]&&_0x57d487['push'](_0x5989('0x83')+_0x5b321e+'-new'),this[_0x5989('0x105')]==_0x4d24bc&&_0x57d487[_0x5989('0x85')]('ck-suggestion-marker--active'),{'classes':_0x57d487,'attributes':{'data-change-id':_0x254e41}};}}),this[_0x5989('0x9a')][_0x5989('0x74')][_0x5989('0xa0')](_0x5989('0xfe'))['add'](_0x355de6=>{_0x355de6['on'](_0x5989('0xde'),(_0x24672c,_0x53854e,_0x7db77c)=>{const _0x48795d=_0x53854e[_0x5989('0x9f')][_0x5989('0x97')](0x0);if(!_0x48795d||!_0x48795d['is']('element',_0x5989('0x98')))return;if(!_0x7db77c[_0x5989('0xc4')][_0x5989('0x67')](_0x48795d,{'attributes':[_0x5989('0xad'),_0x5989('0xd4')]}))return;const _0x2a2a4a=_0x53854e['modelRange'][_0x5989('0xce')][_0x5989('0x28')];_0x7db77c[_0x5989('0x70')]['setAttribute'](_0x5989('0xad'),_0x48795d[_0x5989('0xb8')](_0x5989('0xad')),_0x2a2a4a),_0x7db77c['writer']['setAttribute'](_0x5989('0xd4'),_0x48795d[_0x5989('0xb8')](_0x5989('0xd4')),_0x2a2a4a);},{'priority':_0x5989('0x13')});}),this[_0x5989('0x9a')][_0x5989('0x74')][_0x5989('0xa0')](_0x5989('0xfe'))[_0x5989('0x118')](_0x34d767=>{_0x34d767['on']('element',(_0x1c8967,_0x36afd5,_0x20973f)=>{if(!_0x20973f['consumable'][_0x5989('0x67')](_0x36afd5[_0x5989('0x9f')],{'attributes':[_0x5989('0xad'),'vid_end']}))return;if(_0x36afd5[_0x5989('0x11f')][_0x5989('0x122')])return;const _0x4aa724=_0x36afd5[_0x5989('0x11f')][_0x5989('0xce')]['nodeAfter'];_0x4aa724[_0x5989('0x52')](_0x5989('0xad'))||_0x4aa724['hasAttribute'](_0x5989('0x49'))||(_0x20973f[_0x5989('0x70')]['setAttribute'](_0x5989('0xad'),_0x36afd5[_0x5989('0x9f')][_0x5989('0xb8')](_0x5989('0xad')),_0x4aa724),_0x20973f[_0x5989('0x70')][_0x5989('0xba')](_0x5989('0xd4'),_0x36afd5['viewItem']['getAttribute'](_0x5989('0xd4')),_0x4aa724));},{'priority':_0x5989('0x13')});}),this[_0x5989('0x9a')]['conversion'][_0x5989('0xa0')](_0x5989('0xfe'))['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2d547e=>_0x2d547e[_0x5989('0xb8')](_0x5989('0x49'))}}),this[_0x5989('0x9a')][_0x5989('0x92')][_0x5989('0xe0')]['on'](_0x5989('0x7b'),(_0x51c7cc,[,_0x24893a])=>{[_0x5989('0xad'),'vid_end','vid'][_0x5989('0xf5')](_0x24893a)&&(_0x51c7cc[_0x5989('0x7e')]=!0x0,_0x51c7cc[_0x5989('0x47')]());},{'priority':_0x5989('0xd')}),this['editor'][_0x5989('0x74')]['for']('dataDowncast')[_0x5989('0x118')](_0x1cba5=>{_0x1cba5['on']('attribute:vid',(_0x579561,_0x4f5ecb,_0x127a68)=>{if('\x20'!=_0x4f5ecb['item'][_0x5989('0xcc')]||_0x4f5ecb[_0x5989('0x6d')][_0x5989('0x62')][_0x5989('0x66')]>0x1)return;if(!_0x127a68[_0x5989('0xc4')][_0x5989('0x67')](_0x4f5ecb[_0x5989('0x6d')],_0x579561[_0x5989('0xb2')]))return;const _0x4d92ac=_0x127a68['writer'],_0xed6768=_0x127a68[_0x5989('0xeb')]['toViewRange'](_0x4f5ecb[_0x5989('0x2e')]);_0x4d92ac[_0x5989('0x102')](_0xed6768,_0x4d92ac['createAttributeElement']('span'));});}),this[_0x5989('0x9a')]['conversion'][_0x5989('0xa0')](_0x5989('0x3c'))[_0x5989('0x11b')]({'model':_0x5989('0xe9')}),this['editor'][_0x5989('0x64')]['downcastDispatcher']['on'](_0x5989('0x10a'),function(_0x4eb325){const _0x29dc91=_0x4eb325[_0x5989('0x27')][_0x5989('0x1d')](_0x5989('0x65'));return(_0x3e0f0c,_0x5e70e9,_0x266803)=>{const _0x28efc7=_0x5e70e9['markerName']['split'](':')[0x1],_0xc054a1=_0x29dc91[_0x5989('0x7c')](_0x28efc7);if(!_0xc054a1)return null;const _0x23b92c=_0x5989('0x118')==_0xc054a1[_0x5989('0xd0')]?_0x5989('0xa4'):_0x5989('0x101');if(!_0x266803['consumable']['test'](_0x5e70e9[_0x5989('0x106')],_0x3e0f0c[_0x5989('0xb2')]))return;const _0x43d2af=_0x5e70e9['markerRange'][_0x5989('0xc0')](),_0x3e02b5=_0x5e70e9['markerRange'][_0x5989('0xce')],_0x463510=_0x4eb325[_0x5989('0x92')]['schema'];let _0x201748=null,_0x364ce1=null,_0xdda5d9=!0x1,_0x417bdc=!0x1;for(const _0x2d38d9 of _0x43d2af){const _0x79d27=_0x2d38d9['item'];_0xdda5d9=_0xdda5d9||_0x463510[_0x5989('0xda')](_0x79d27);const _0x1267d5=_0x266803[_0x5989('0xeb')]['toViewElement'](_0x79d27);if(_0x1267d5&&_0x1267d5[_0x5989('0x53')](_0x5989('0x37')))return;'elementEnd'==_0x2d38d9['type']&&(_0x463510[_0x5989('0xb0')](_0x79d27)&&!_0x463510[_0x5989('0x18')](_0x79d27)&&(_0x79d27[_0x5989('0x8e')]||_0x3e02b5[_0x5989('0x113')]?_0x201748&&_0x201748[_0x5989('0x62')]==_0x79d27||(_0x201748=_0x79d27,_0xf01b31(_0x2d38d9[_0x5989('0x3b')]),_0x417bdc=!0x0):_0x364ce1=_0x364ce1||_0x2d38d9[_0x5989('0x3b')]));}function _0xf01b31(_0x2dba00){const _0x5744b2=_0x266803[_0x5989('0x70')]['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x23b92c}),_0x19cced=_0x266803[_0x5989('0xeb')][_0x5989('0xfb')](_0x2dba00);_0xc054a1['data'][_0x5989('0xea')]&&_0x266803[_0x5989('0x70')]['addClass'](_0x5989('0x83')+_0x23b92c+_0x5989('0x120'),_0x5744b2),_0x29dc91[_0x5989('0x105')]==_0xc054a1&&_0x266803['writer'][_0x5989('0xc7')](_0x5989('0xca'),_0x5744b2),_0x266803['writer'][_0x5989('0x54')](_0x19cced,_0x5744b2),_0x266803['mapper'][_0x5989('0x77')](_0x5744b2,_0x5e70e9[_0x5989('0x78')]);}_0xdda5d9||_0x417bdc||!_0x364ce1||_0xf01b31(_0x364ce1);};}(this[_0x5989('0x9a')]),{'priority':'high'}),this['editor'][_0x5989('0x64')][_0x5989('0x128')]['on'](_0x5989('0x91'),(_0xaebcf6,_0x478bac,_0x594115)=>{const _0x4a0bed=_0x594115[_0x5989('0xeb')][_0x5989('0x4a')](_0x478bac['markerName']);if(_0x4a0bed)for(const _0x13b6b7 of _0x4a0bed)(_0x13b6b7[_0x5989('0xb5')](_0x5989('0xc8'))||_0x13b6b7[_0x5989('0xb5')](_0x5989('0x16')))&&(_0x594115[_0x5989('0xeb')][_0x5989('0xdf')](_0x13b6b7,_0x478bac[_0x5989('0x78')]),_0x594115[_0x5989('0x70')][_0x5989('0x10c')](_0x13b6b7));},{'priority':_0x5989('0x112')}),this[_0x5989('0x9a')][_0x5989('0x64')][_0x5989('0x128')]['on']('addMarker:revision',(_0x4fd6a8,_0x171b9,_0x1d0208)=>{const _0x1ef66b=_0x171b9[_0x5989('0x78')][_0x5989('0xa4')](':')[0x1],_0x15d470=this[_0x5989('0x7c')](_0x1ef66b);if(!_0x15d470)return null;const _0x36cd23=_0x5989('0x118')==_0x15d470['type']?_0x5989('0xa4'):_0x5989('0x101');if(_0x1d0208[_0x5989('0xc4')]['test'](_0x171b9[_0x5989('0x106')],_0x4fd6a8[_0x5989('0xb2')]))for(const _0x3fcab4 of _0x171b9[_0x5989('0x106')][_0x5989('0x5c')]()){if(!_0x3fcab4['is'](_0x5989('0x127'),_0x5989('0x41')))continue;const _0x288ae7=_0x1d0208['writer'][_0x5989('0x29')](_0x5989('0x55'),{'class':_0x5989('0x83')+_0x36cd23}),_0x47fdb4=_0x1d0208[_0x5989('0xeb')][_0x5989('0xfb')](this['editor'][_0x5989('0x92')][_0x5989('0x93')](_0x3fcab4));_0x15d470[_0x5989('0xcc')][_0x5989('0xea')]&&_0x1d0208[_0x5989('0x70')][_0x5989('0xc7')](_0x5989('0x83')+_0x36cd23+_0x5989('0x120'),_0x288ae7),this[_0x5989('0x105')]==_0x15d470&&_0x1d0208[_0x5989('0x70')][_0x5989('0xc7')]('ck-suggestion-marker--active',_0x288ae7),_0x1d0208[_0x5989('0x70')][_0x5989('0x54')](_0x47fdb4,_0x288ae7),_0x1d0208[_0x5989('0xeb')][_0x5989('0x77')](_0x288ae7,_0x171b9[_0x5989('0x78')]);}},{'priority':_0x5989('0x112')}),this[_0x5989('0x9a')]['model'][_0x5989('0xf2')]['on'](_0x5989('0x9e'),()=>{this[_0x5989('0x9a')]['editing'][_0x5989('0x119')][_0x5989('0x9e')](_0x4d4cd8=>{for(const _0xe988e0 of this[_0x5989('0x9a')][_0x5989('0x92')][_0x5989('0xf2')][_0x5989('0xdb')]()){const _0x4b69d5=this[_0x5989('0x9a')][_0x5989('0x92')][_0x5989('0xf2')]['getRoot'](_0xe988e0),_0x2cdc9e=this[_0x5989('0x9a')][_0x5989('0x64')][_0x5989('0x119')][_0x5989('0xf2')][_0x5989('0x111')](_0xe988e0);if(_0x2cdc9e){const _0x17abb1=_0x4b69d5[_0x5989('0xb8')](_0x5989('0x5e'));if(_0x4d4cd8[_0x5989('0xe6')](_0x5989('0x100'),_0x2cdc9e),_0x4d4cd8[_0x5989('0x51')](_0x5989('0x11c'),_0x2cdc9e),_0x4d4cd8[_0x5989('0x51')](_0x5989('0x1e'),_0x2cdc9e),_0x4d4cd8[_0x5989('0x51')](_0x5989('0xa7'),_0x2cdc9e),_0x17abb1){const _0x2174a9=this['_getChangeFromId'](_0x17abb1);if(!_0x2174a9)return null;_0x4d4cd8[_0x5989('0xba')](_0x5989('0x100'),_0x17abb1,_0x2cdc9e),_0x4d4cd8[_0x5989('0xc7')](_0x5989('0x10d')+_0x2174a9[_0x5989('0xd0')],_0x2cdc9e),this[_0x5989('0x105')]==_0x2174a9&&_0x4d4cd8[_0x5989('0xc7')](_0x5989('0xa7'),_0x2cdc9e);}}}});}),this[_0x5989('0x9a')][_0x5989('0x74')][_0x5989('0xa0')](_0x5989('0xfe'))['dataToMarker']({'view':_0x5989('0xcb'),'model':_0x448a4e=>_0x5989('0x4e')+_0x448a4e,'converterPriority':_0x5989('0xd')}),this[_0x5989('0x9a')][_0x5989('0x74')][_0x5989('0xa0')](_0x5989('0xfe'))['dataToMarker']({'view':_0x5989('0x90'),'model':_0x9acacc=>_0x5989('0x4c')+_0x9acacc,'converterPriority':_0x5989('0xd')}),this[_0x5989('0x9a')][_0x5989('0x74')]['for']('dataDowncast')[_0x5989('0x11b')]({'model':_0x5989('0x7f'),'view':_0x1bd2cc=>({'name':'suggestion:'+_0x1bd2cc,'group':_0x5989('0x7f')}),'converterPriority':'highest'}),this[_0x5989('0x9a')][_0x5989('0x74')][_0x5989('0xa0')]('editingDowncast')[_0x5989('0x81')]({'model':_0x5989('0x7f'),'view':_0x237534=>{const _0x5bbd4b=_0x237534[_0x5989('0x78')][_0x5989('0xa4')](':')[0x1];return _0x5989('0x75')!=_0x5bbd4b&&_0x5989('0xcd')!=_0x5bbd4b?null:{'classes':[_0x5989('0x9'),'ck-suggestion-preview-marker-'+_0x5bbd4b]};}}),this['editor'][_0x5989('0x64')]['downcastDispatcher']['on'](_0x5989('0x2a'),et(this[_0x5989('0x9a')],'merge'),{'priority':_0x5989('0x112')}),this[_0x5989('0x9a')]['editing'][_0x5989('0x128')]['on'](_0x5989('0x22'),et(this['editor'],'split'),{'priority':_0x5989('0x112')}),this[_0x5989('0x9a')][_0x5989('0x64')][_0x5989('0x128')]['on'](_0x5989('0xc6'),(_0xbfd98a,_0x48f46f,_0x27e7c2)=>{const _0x4a3873=_0x27e7c2['mapper']['markerNameToElements'](_0x48f46f[_0x5989('0x78')]);if(_0x4a3873)for(const _0x10e03d of _0x4a3873)_0x10e03d['is'](_0x5989('0x94'))&&(_0x27e7c2[_0x5989('0xeb')]['unbindElementFromMarkerName'](_0x10e03d,_0x48f46f['markerName']),_0x27e7c2[_0x5989('0x70')][_0x5989('0x10c')](_0x10e03d));},{'priority':_0x5989('0x112')});}[_0x5989('0x7c')](_0x49a72e){return this[_0x5989('0x26')][_0x5989('0x1d')](_0x49a72e);}[_0x5989('0x123')](_0x269387){return this[_0x5989('0xf0')]&&this[_0x5989('0xf0')][_0x5989('0xb9')](),this[_0x5989('0xf0')]=new _0x4b9da8(this[_0x5989('0x9a')][_0x5989('0xe')],_0x269387),this[_0x5989('0xf0')];}[_0x5989('0xfd')](){this['editor'][_0x5989('0x92')][_0x5989('0xf2')]['selection']['observeMarkers'](_0x5989('0xe9')),this['on'](_0x5989('0x2c'),(_0x16ce88,_0x441e61,_0xdad4a3,_0x17d55f)=>{_0x17d55f&&this['_balloon'][_0x5989('0x10c')](_0x17d55f),_0xdad4a3&&(this[_0x5989('0xe8')][_0x5989('0x118')]({'view':_0xdad4a3,'stackId':_0x5989('0x5b'),'position':{'target':()=>{const _0x58f81b=this[_0x5989('0x9a')]['editing'],_0x512004=this['_getChangeFromId'](_0xdad4a3[_0x5989('0xa6')]);let _0x6c8ea4;if(_0x512004['data'][_0x5989('0xd9')]){const _0x486b17=_0x58f81b[_0x5989('0x119')][_0x5989('0x84')](_0x512004[_0x5989('0x50')]);_0x6c8ea4=Array[_0x5989('0x9d')](_0x486b17['getClientRects']());}else{const _0x16e392=this[_0x5989('0x9a')][_0x5989('0x92')][_0x5989('0xe3')][_0x5989('0x1d')]('revision:'+_0xdad4a3[_0x5989('0xa6')]);_0x6c8ea4=Array[_0x5989('0x9d')](_0x58f81b[_0x5989('0xeb')]['markerNameToElements'](_0x16e392[_0x5989('0xb2')]))['map'](_0x212831=>_0x58f81b[_0x5989('0x119')][_0x5989('0xe1')][_0x5989('0x124')](_0x212831))['map'](_0x59bc58=>Array[_0x5989('0x9d')](_0x59bc58[_0x5989('0x8d')]()))[_0x5989('0x30')]();}if(!this[_0x5989('0x2b')])return _0x6c8ea4[0x0];return _0x6c8ea4[_0x5989('0xec')](_0x54ddaf=>_0x54ddaf[_0x5989('0x43')]-0x3<=this[_0x5989('0x2b')]['y']&&_0x54ddaf[_0x5989('0x79')]+0x3>=this[_0x5989('0x2b')]['y']&&_0x54ddaf[_0x5989('0xc9')]-0x3<=this['_activeViewTarget']['x']&&_0x54ddaf['right']+0x3>=this[_0x5989('0x2b')]['x'])||_0x6c8ea4[0x0];}}}),this[_0x5989('0xe8')]['showStack'](_0x5989('0x5b')));}),this['on']('change:activeChange',(_0xfd1d09,_0x2322f5,_0x3ac927,_0x20bd5a)=>{this[_0x5989('0x96')]=_0x3ac927?this[_0x5989('0x123')](_0x3ac927):null,this[_0x5989('0x9a')]['model'][_0x5989('0x9e')](()=>{const _0x28a71c=this['editor'][_0x5989('0x64')];_0x20bd5a&&(_0x20bd5a[_0x5989('0xcc')][_0x5989('0xd9')]?_0x28a71c[_0x5989('0x119')][_0x5989('0x9e')](_0x489208=>{_0x489208[_0x5989('0x51')](_0x5989('0xa7'),_0x28a71c['view']['document'][_0x5989('0x111')](_0x20bd5a[_0x5989('0x50')]));}):_0x28a71c[_0x5989('0xa9')](_0x5989('0xf9')+_0x20bd5a['id'])),_0x3ac927&&(_0x3ac927['data'][_0x5989('0xd9')]?_0x28a71c[_0x5989('0x119')][_0x5989('0x9e')](_0x53f55e=>{_0x53f55e[_0x5989('0xc7')]('ck-revision-history-root--active',_0x28a71c[_0x5989('0x119')][_0x5989('0xf2')][_0x5989('0x111')](_0x3ac927[_0x5989('0x50')]));}):_0x28a71c[_0x5989('0xa9')](_0x5989('0xf9')+_0x3ac927['id']));});}),this['listenTo'](this['editor'][_0x5989('0x64')][_0x5989('0x119')]['document'],'mouseover',(_0x4c85ba,_0x30d040)=>{if(this[_0x5989('0x105')])return;const _0x431df3=this[_0x5989('0xd3')](_0x30d040['target']),_0x4e9276=this['_changeIdToChange'][_0x5989('0x1d')](_0x431df3);_0x4e9276?(this[_0x5989('0x2b')]={'x':_0x30d040[_0x5989('0x57')]['x'],'y':_0x30d040[_0x5989('0x57')]['y']},this['activeView']=this[_0x5989('0x123')](_0x4e9276)):(this[_0x5989('0x2b')]=null,this[_0x5989('0x96')]=null);}),this[_0x5989('0x10b')](this[_0x5989('0x9a')][_0x5989('0x64')][_0x5989('0x119')][_0x5989('0xf2')],_0x5989('0x3'),(_0x2c3ca8,_0x4be9ae)=>{const _0x5bcf04=this[_0x5989('0xd3')](_0x4be9ae['target']),_0x39ca62=this[_0x5989('0x26')][_0x5989('0x1d')](_0x5bcf04);_0x39ca62?(this[_0x5989('0x2b')]={'x':_0x4be9ae[_0x5989('0x57')]['x'],'y':_0x4be9ae[_0x5989('0x57')]['y']},_0x39ca62===this[_0x5989('0x105')]?this[_0x5989('0xe8')][_0x5989('0x4')]():this[_0x5989('0x105')]=_0x39ca62):(this[_0x5989('0x2b')]=null,this[_0x5989('0x105')]=null);});}[_0x5989('0xd3')](_0x92ead0){do{const _0x1ab26b=_0x92ead0[_0x5989('0xb8')]('data-change-id');if(_0x1ab26b)return _0x1ab26b;_0x92ead0=_0x92ead0[_0x5989('0x62')];}while(_0x92ead0);return null;}[_0x5989('0x3e')](){this[_0x5989('0x9a')]['model'][_0x5989('0x9e')](_0x2db352=>{for(const _0x3fdde4 of this['editor']['model'][_0x5989('0xe3')])_0x2db352[_0x5989('0xe2')](_0x3fdde4);});}}function et(_0x3e3c88,_0x332da1){return(_0xaf6838,_0x42039b,_0x55a3fd)=>{if(!_0x55a3fd[_0x5989('0xc4')][_0x5989('0x36')](_0x42039b[_0x5989('0x106')],_0xaf6838[_0x5989('0xb2')]))return;const _0x5274a8=_0x42039b[_0x5989('0x106')][_0x5989('0xc0')](),_0x880973=_0x42039b['markerRange']['start'],_0x27185f=_0x3e3c88[_0x5989('0x92')]['schema'];let _0x4a3bde=null,_0x618dcb=null,_0x405a25=!0x1,_0x3ea186=!0x1;for(const _0x33a70e of _0x5274a8){const _0x2b2748=_0x33a70e[_0x5989('0x6d')];_0x405a25=_0x405a25||_0x27185f[_0x5989('0xda')](_0x2b2748);const _0x22ddf4=_0x55a3fd[_0x5989('0xeb')][_0x5989('0x34')](_0x2b2748);if(_0x22ddf4&&_0x22ddf4['getCustomProperty'](_0x5989('0x37')))return;_0x5989('0x17')==_0x33a70e[_0x5989('0xd0')]&&(_0x27185f[_0x5989('0xb0')](_0x2b2748)&&!_0x27185f[_0x5989('0x18')](_0x2b2748)&&(_0x2b2748['nextSibling']||_0x880973[_0x5989('0x113')]?_0x4a3bde&&_0x4a3bde[_0x5989('0x62')]==_0x2b2748||(_0x4a3bde=_0x2b2748,_0x1c6910(_0x33a70e['previousPosition']),_0x3ea186=!0x0):_0x618dcb=_0x618dcb||_0x33a70e['previousPosition']));}function _0x1c6910(_0x235b9f){const _0x2adad5=_0x55a3fd[_0x5989('0xeb')][_0x5989('0xfb')](_0x235b9f),_0x30dd52=_0x55a3fd[_0x5989('0x70')][_0x5989('0x29')](_0x5989('0x55'),{'class':_0x5989('0x3a')+_0x332da1});_0x55a3fd['writer'][_0x5989('0x54')](_0x2adad5,_0x30dd52),_0x55a3fd['mapper'][_0x5989('0x77')](_0x30dd52,_0x42039b['markerName']);}_0x405a25||_0x3ea186||!_0x618dcb||_0x1c6910(_0x618dcb);};}export class RestoreRevisionCommand extends _0x3d4b20{constructor(_0x1e0223){super(_0x1e0223);const _0x353dae=_0x1e0223[_0x5989('0x27')][_0x5989('0x1d')](d);this[_0x5989('0x125')]=!0x1,this[_0x5989('0x10b')](_0x353dae,_0x5989('0xf7'),()=>this['refresh']()),this[_0x5989('0x10b')](_0x353dae,_0x5989('0x68'),()=>this[_0x5989('0x115')]());}[_0x5989('0xa3')](){const _0x2b5a66=this[_0x5989('0x9a')],_0x24fc4f=_0x2b5a66[_0x5989('0x27')][_0x5989('0x1d')](d),_0x5d65ac=_0x24fc4f[_0x5989('0xf')]?_0x24fc4f['diff'][_0x5989('0x88')]:null;_0x2b5a66[_0x5989('0xd5')][_0x5989('0x1d')](_0x5989('0x11d'))[_0x5989('0x11a')](_0x5d65ac);}['refresh'](){const {isReady:_0xb81446,isEnabled:_0x4a2d9d}=this[_0x5989('0x9a')]['plugins'][_0x5989('0x1d')](d);this[_0x5989('0x20')]=_0xb81446&&_0x4a2d9d;}}export class ShowChangeCommand extends _0x3d4b20{constructor(_0x1d3ed9,{direction:_0x36c728}){super(_0x1d3ed9);const _0x79faf2=_0x1d3ed9[_0x5989('0x27')][_0x5989('0x1d')](d);this[_0x5989('0x125')]=!0x1,this[_0x5989('0x45')]=_0x5989('0x103')===_0x36c728?0x1:-0x1,this[_0x5989('0x10b')](_0x79faf2,'change:isReady',()=>this['refresh']()),this[_0x5989('0x10b')](_0x79faf2,_0x5989('0x68'),()=>this[_0x5989('0x115')]()),this['listenTo'](_0x79faf2,_0x5989('0x8'),()=>this['refresh']());}[_0x5989('0xa3')](){const _0x42fc16=this[_0x5989('0x9a')],_0x37fb4f=_0x42fc16[_0x5989('0x27')][_0x5989('0x1d')](d),{isNavigationMode:_0x102af3,currentChangeNumber:_0x132156}=_0x37fb4f;let _0x307ce1;if(_0x37fb4f[_0x5989('0x105')]=_0x102af3?_0x37fb4f[_0x5989('0x108')][_0x5989('0x6b')][_0x5989('0x1d')](_0x132156+this['_step']):_0x37fb4f[_0x5989('0x108')][_0x5989('0x6b')]['first'],_0x37fb4f['activeChange'][_0x5989('0xcc')][_0x5989('0xd9')])_0x307ce1=_0x42fc16['editing']['view'][_0x5989('0x84')](_0x37fb4f[_0x5989('0x105')]['rootName']);else{const _0x190817=_0x42fc16[_0x5989('0x92')][_0x5989('0xe3')][_0x5989('0x1d')]('revision:'+_0x37fb4f[_0x5989('0x105')]['id']);_0x307ce1=_0x272b66(_0x42fc16[_0x5989('0x64')],_0x190817);}_0x5cf0d1({'target':_0x307ce1,'viewportOffset':0x28});}[_0x5989('0x115')](){const {isNavigationMode:_0x2b4d9b,currentChangeNumber:_0xf98b75,numberOfChanges:_0x49bc6c,isReady:_0x26d9fe,isEnabled:_0x12f506}=this['editor'][_0x5989('0x27')][_0x5989('0x1d')](d);this[_0x5989('0x20')]=!!(_0x12f506&&_0x26d9fe&&_0x49bc6c)&&(!_0x2b4d9b||(0x1===this[_0x5989('0x45')]?_0xf98b75<_0x49bc6c-0x1:_0xf98b75>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4cf5=['Name\x20this\x20revision','isVisible','name','isActionsDropdownOpen','source','items','bind','ck-on','isEnabled','Restore\x20this\x20revision','execute','first','function','ck-revision-history-sidebar__revision__actions','isOpen','change:isActionsDropdownOpen','extendTemplate','stopPropagation','children','add','action','bindTemplate','_action','locale','Show\x20more\x20items'];(function(_0x2fefd3,_0x4cf5f2){const _0x23557f=function(_0x4659ce){while(--_0x4659ce){_0x2fefd3['push'](_0x2fefd3['shift']());}};_0x23557f(++_0x4cf5f2);}(_0x4cf5,0x70));const _0x2355=function(_0x2fefd3,_0x4cf5f2){_0x2fefd3=_0x2fefd3-0x0;let _0x23557f=_0x4cf5[_0x2fefd3];return _0x23557f;};import{Collection as _0x6aa23d}from'ckeditor5/src/utils';import{icons as _0x1ab18c}from'ckeditor5/src/core';import{Model as _0xd64452,addListToDropdown as _0x4dc229,createDropdown as _0x40fcf4}from'ckeditor5/src/ui';import{getTranslation as _0x20178b}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x42e5bd,_0x53ac98){const _0x1acadf=_0x42e5bd[_0x2355('0x9')],_0x32d368=_0x42e5bd[_0x2355('0xb')],_0x40d4ca=_0x40fcf4(_0x32d368);_0x40d4ca['panelPosition']='sw';const _0x5b11f2=function(_0xd842aa,_0x200800){const _0x56d9fd=function(_0xe72b72,_0x1b2eff){const _0x20e3ef=_0xe72b72[_0x2355('0xb')],_0x5dde1e={'Compare\x20against\x20selected':_0x20178b(_0x20e3ef,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x20178b(_0x20e3ef,_0x2355('0xd')),'Restore\x20this\x20revision':_0x20178b(_0x20e3ef,_0x2355('0x16'))};return _0x1b2eff['map'](_0x9cf2cc=>{const _0x3cf0af=_0x5dde1e[_0x9cf2cc['name']];return _0x3cf0af&&_0x3cf0af!==_0x9cf2cc[_0x2355('0xf')]&&(_0x9cf2cc[_0x2355('0xf')]=_0x3cf0af),_0x9cf2cc;});}(_0xd842aa,_0x200800),_0x4bc598=new _0x6aa23d();for(const _0x53c0e0 of _0x56d9fd){const _0x2a4cbe={'type':'button','model':new _0xd64452({'label':_0x53c0e0['name'],'class':_0x53c0e0['class'],'withText':!0x0,'_action':_0x53c0e0['action']})};_0x2a4cbe['model'][_0x2355('0x13')](_0x2355('0x15'))['to'](_0xd842aa,_0x2355('0x10'),_0x2544dd=>_0x2355('0x0')!=typeof _0x53c0e0['isEnabled']||(!_0x2544dd||_0x53c0e0[_0x2355('0x15')](_0xd842aa))),_0x4bc598[_0x2355('0x7')](_0x2a4cbe);}return _0x4bc598;}(_0x42e5bd,_0x53ac98);return _0x42e5bd[_0x2355('0x13')](_0x2355('0x10'))['to'](_0x40d4ca,_0x2355('0x2')),_0x40d4ca['buttonView']['set']({'label':_0x20178b(_0x32d368,_0x2355('0xc')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1ab18c['threeVerticalDots']}),_0x40d4ca[_0x2355('0x4')]({'attributes':{'class':[_0x2355('0x1'),_0x1acadf['if'](_0x2355('0x10'),_0x2355('0x14'))]},'on':{'click':_0x1acadf['to'](_0xdb0b61=>_0xdb0b61[_0x2355('0x5')]())}}),_0x40d4ca['on'](_0x2355('0x17'),_0x3254a7=>{_0x42e5bd['isReady']&&'function'==typeof _0x3254a7['source'][_0x2355('0xa')]&&_0x3254a7[_0x2355('0x11')]['_action'](_0x42e5bd);}),_0x4dc229(_0x40d4ca,_0x5b11f2),_0x40d4ca['listenTo'](_0x42e5bd,_0x2355('0x3'),(_0x100ba6,_0x541c21,_0x34f649)=>{if(_0x34f649)for(const _0x27dee5 of _0x40d4ca['listView'][_0x2355('0x12')]){const _0x449a17=_0x27dee5[_0x2355('0x6')][_0x2355('0x18')],_0x57fc52=_0x53ac98['find'](_0x35059b=>_0x35059b[_0x2355('0x8')]===_0x449a17['_action'])[_0x2355('0xe')];_0x27dee5[_0x2355('0xe')]=void 0x0===_0x57fc52||_0x57fc52(_0x42e5bd);}}),_0x40d4ca;}
23
+ const _0x16ed=['panelPosition','threeVerticalDots','button','set','locale','listenTo','Compare\x20against\x20selected','listView','stopPropagation','ck-on','children','source','items','Restore\x20this\x20revision','extendTemplate','add','first','name','isEnabled','isReady','Show\x20more\x20items','_action','bind','class','model','isActionsDropdownOpen','execute','action','function','bindTemplate','isVisible','map','buttonView','ck-revision-history-sidebar__revision__actions','change:isActionsDropdownOpen'];(function(_0xa3dda6,_0x16ed4f){const _0x277947=function(_0x420dfa){while(--_0x420dfa){_0xa3dda6['push'](_0xa3dda6['shift']());}};_0x277947(++_0x16ed4f);}(_0x16ed,0x8f));const _0x2779=function(_0xa3dda6,_0x16ed4f){_0xa3dda6=_0xa3dda6-0x0;let _0x277947=_0x16ed[_0xa3dda6];return _0x277947;};import{Collection as _0x33bd42}from'ckeditor5/src/utils';import{icons as _0x41b544}from'ckeditor5/src/core';import{Model as _0x522c32,addListToDropdown as _0x135280,createDropdown as _0x230b38}from'ckeditor5/src/ui';import{getTranslation as _0x339830}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x3b0c3c,_0x478742){const _0x2917d1=_0x3b0c3c[_0x2779('0x1a')],_0x574f3f=_0x3b0c3c['locale'],_0x33582f=_0x230b38(_0x574f3f);_0x33582f[_0x2779('0x20')]='sw';const _0x59b51b=function(_0x22c1e4,_0x2b5d9d){const _0x5b5b28=function(_0xd5d3c,_0x2fe33b){const _0xff7817=_0xd5d3c[_0x2779('0x1')],_0x308033={'Compare\x20against\x20selected':_0x339830(_0xff7817,_0x2779('0x3')),'Name\x20this\x20revision':_0x339830(_0xff7817,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x339830(_0xff7817,_0x2779('0xa'))};return _0x2fe33b[_0x2779('0x1c')](_0x5aa5ec=>{const _0x338194=_0x308033[_0x5aa5ec['name']];return _0x338194&&_0x338194!==_0x5aa5ec[_0x2779('0xe')]&&(_0x5aa5ec[_0x2779('0xe')]=_0x338194),_0x5aa5ec;});}(_0x22c1e4,_0x2b5d9d),_0x51d8bd=new _0x33bd42();for(const _0x445c62 of _0x5b5b28){const _0xc33dfd={'type':_0x2779('0x22'),'model':new _0x522c32({'label':_0x445c62[_0x2779('0xe')],'class':_0x445c62[_0x2779('0x14')],'withText':!0x0,'_action':_0x445c62['action']})};_0xc33dfd[_0x2779('0x15')]['bind'](_0x2779('0xf'))['to'](_0x22c1e4,_0x2779('0x16'),_0x2b381b=>'function'!=typeof _0x445c62[_0x2779('0xf')]||(!_0x2b381b||_0x445c62['isEnabled'](_0x22c1e4))),_0x51d8bd[_0x2779('0xc')](_0xc33dfd);}return _0x51d8bd;}(_0x3b0c3c,_0x478742);return _0x3b0c3c[_0x2779('0x13')](_0x2779('0x16'))['to'](_0x33582f,'isOpen'),_0x33582f[_0x2779('0x1d')][_0x2779('0x0')]({'label':_0x339830(_0x574f3f,_0x2779('0x11')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x41b544[_0x2779('0x21')]}),_0x33582f[_0x2779('0xb')]({'attributes':{'class':[_0x2779('0x1e'),_0x2917d1['if'](_0x2779('0x16'),_0x2779('0x6'))]},'on':{'click':_0x2917d1['to'](_0x385169=>_0x385169[_0x2779('0x5')]())}}),_0x33582f['on'](_0x2779('0x17'),_0xe9b04c=>{_0x3b0c3c[_0x2779('0x10')]&&_0x2779('0x19')==typeof _0xe9b04c[_0x2779('0x8')][_0x2779('0x12')]&&_0xe9b04c[_0x2779('0x8')][_0x2779('0x12')](_0x3b0c3c);}),_0x135280(_0x33582f,_0x59b51b),_0x33582f[_0x2779('0x2')](_0x3b0c3c,_0x2779('0x1f'),(_0x22acac,_0x3e30ee,_0x4ce971)=>{if(_0x4ce971)for(const _0x23c1bc of _0x33582f[_0x2779('0x4')][_0x2779('0x9')]){const _0x1c301b=_0x23c1bc[_0x2779('0x7')][_0x2779('0xd')],_0x29f315=_0x478742['find'](_0x26d83c=>_0x26d83c[_0x2779('0x18')]===_0x1c301b[_0x2779('0x12')])[_0x2779('0x1b')];_0x23c1bc[_0x2779('0x1b')]=void 0x0===_0x29f315||_0x29f315(_0x3b0c3c);}}),_0x33582f;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a98=['Revision\x20creator','ck-revision-history-sidebar__revision-author__name','set','setTemplate','name','push','span','ck-revision-history-sidebar__revision-author_creator','Revision\x20author','0\x200\x2011\x2010'];(function(_0x1449e6,_0x2a989b){const _0x23c840=function(_0x136228){while(--_0x136228){_0x1449e6['push'](_0x1449e6['shift']());}};_0x23c840(++_0x2a989b);}(_0x2a98,0xb9));const _0x23c8=function(_0x1449e6,_0x2a989b){_0x1449e6=_0x1449e6-0x0;let _0x23c840=_0x2a98[_0x1449e6];return _0x23c840;};import{View as _0x2b4ae8,IconView as _0x312638}from'ckeditor5/src/ui';import{getTranslation as _0x15aba6}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x235a1e from'../../../theme/icons/user.svg';export default class ti extends _0x2b4ae8{constructor(_0x417c94,_0x3b7a95,_0x1e2fc6){super(_0x417c94);const _0x519f92=new _0x312638();_0x519f92[_0x23c8('0x7')]({'content':_0x235a1e,'viewBox':_0x23c8('0x4')});const _0x188d28=['ck','ck-revision-history-sidebar__revision-author'];_0x1e2fc6&&_0x188d28[_0x23c8('0x0')](_0x23c8('0x2'));const _0xe402dc=[{'tag':_0x23c8('0x1'),'attributes':{'class':['ck',_0x23c8('0x6')],'title':_0x15aba6(_0x417c94,_0x1e2fc6?_0x23c8('0x5'):_0x23c8('0x3'))},'children':[_0x519f92,_0x3b7a95[_0x23c8('0x9')]]}];this[_0x23c8('0x8')]({'tag':'li','attributes':{'class':_0x188d28},'children':_0xe402dc});}}
23
+ const _0x29de=['name','ck-revision-history-sidebar__revision-author','0\x200\x2011\x2010','set','ck-revision-history-sidebar__revision-author_creator','push','Revision\x20author','setTemplate','span','ck-revision-history-sidebar__revision-author__name'];(function(_0x56fde9,_0x29de33){const _0x355afa=function(_0xf1ec3){while(--_0xf1ec3){_0x56fde9['push'](_0x56fde9['shift']());}};_0x355afa(++_0x29de33);}(_0x29de,0x1d1));const _0x355a=function(_0x56fde9,_0x29de33){_0x56fde9=_0x56fde9-0x0;let _0x355afa=_0x29de[_0x56fde9];return _0x355afa;};import{View as _0x3f4447,IconView as _0x5f5b45}from'ckeditor5/src/ui';import{getTranslation as _0x4fd130}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x471b2c from'../../../theme/icons/user.svg';export default class ti extends _0x3f4447{constructor(_0x2d909b,_0x54544a,_0x1491bc){super(_0x2d909b);const _0x22174e=new _0x5f5b45();_0x22174e[_0x355a('0x8')]({'content':_0x471b2c,'viewBox':_0x355a('0x7')});const _0x81680b=['ck',_0x355a('0x6')];_0x1491bc&&_0x81680b[_0x355a('0x0')](_0x355a('0x9'));const _0xe1188c=[{'tag':_0x355a('0x3'),'attributes':{'class':['ck',_0x355a('0x4')],'title':_0x4fd130(_0x2d909b,_0x1491bc?'Revision\x20creator':_0x355a('0x1'))},'children':[_0x22174e,_0x54544a[_0x355a('0x5')]]}];this[_0x355a('0x2')]({'tag':'li','attributes':{'class':_0x81680b},'children':_0xe1188c});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x22d4=['Revision\x20name','ck-revision-history-sidebar__revision-name','extendTemplate','span'];(function(_0x4eccc7,_0x22d40c){var _0x14027c=function(_0x40c550){while(--_0x40c550){_0x4eccc7['push'](_0x4eccc7['shift']());}};_0x14027c(++_0x22d40c);}(_0x22d4,0x1af));var _0x1402=function(_0x4eccc7,_0x22d40c){_0x4eccc7=_0x4eccc7-0x0;var _0x14027c=_0x22d4[_0x4eccc7];return _0x14027c;};import{LabeledFieldView as _0x15ba9b}from'ckeditor5/src/ui';import{getTranslation as _0x1ffaa5}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x15ba9b{constructor(_0x4745b2,_0x5722f2){super(_0x4745b2,_0x5722f2),this['set']({'label':_0x1ffaa5(_0x4745b2,_0x1402('0x1'))}),this[_0x1402('0x3')]({'tag':_0x1402('0x0'),'attributes':{'class':[_0x1402('0x2')]}});}}
23
+ var _0x3d94=['span','ck-revision-history-sidebar__revision-name','extendTemplate','Revision\x20name'];(function(_0x3449e4,_0x3d9410){var _0x185b4a=function(_0x471da1){while(--_0x471da1){_0x3449e4['push'](_0x3449e4['shift']());}};_0x185b4a(++_0x3d9410);}(_0x3d94,0x13f));var _0x185b=function(_0x3449e4,_0x3d9410){_0x3449e4=_0x3449e4-0x0;var _0x185b4a=_0x3d94[_0x3449e4];return _0x185b4a;};import{LabeledFieldView as _0x469039}from'ckeditor5/src/ui';import{getTranslation as _0x789116}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x469039{constructor(_0x25de2c,_0x40bc2f){super(_0x25de2c,_0x40bc2f),this['set']({'label':_0x789116(_0x25de2c,_0x185b('0x0'))}),this[_0x185b('0x3')]({'tag':_0x185b('0x1'),'attributes':{'class':[_0x185b('0x2')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x45fe=['ck-disabled','bind','isEnabled','div','srcElement','extendTemplate','ck-reset','listenTo','fieldView','value','ck-revision-history-sidebar__actions_dropdown_open','fire','isActionsDropdownOpen','ck-revision-history-sidebar__revision__date','span','isSelected','ck-revision-history-sidebar__revision_selected','setTemplate','bindTemplate','set','render','unshift','select','authors','ck-revision-history-sidebar__revision_highlighted','deselect','length','closest','placeholder','setName','_revision','element','revisionActionsView','ck-revision-history-sidebar__revision-authors','revisionNameView','.ck-thread__remove-confirm','isConfirm','isReady','_createdAtFormatted','creator','ck-revision-history-sidebar__revision__controls-wrapper','isHighlighted','map','220','name','createdAt','from','unhighlight'];(function(_0x106028,_0x45fe57){const _0x138905=function(_0x259b10){while(--_0x259b10){_0x106028['push'](_0x106028['shift']());}};_0x138905(++_0x45fe57);}(_0x45fe,0xa8));const _0x1389=function(_0x106028,_0x45fe57){_0x106028=_0x106028-0x0;let _0x138905=_0x45fe[_0x106028];return _0x138905;};import{View as _0x2fd9ba,createLabeledInputText as _0x40b507}from'ckeditor5/src/ui';import{ConfirmMixin as _0x4a79d3}from'ckeditor5-collaboration/src/collaboration-core';import _0x4c3411 from'./revisionnameview';import _0xc4b4d3 from'./revisionauthorview';import{dateToPrettyFormat as _0x3bc51f}from'./utils';import{createActionsDropdownView as _0x329c2b}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x4a79d3(_0x2fd9ba){constructor(_0xd67df,_0xe756d8,_0x1542f4){super(_0xd67df);const _0x16f5e9=this[_0x1389('0x2a')],_0x32771c=function(_0x33ae45,_0x544e90){const _0x37d9c7=Array[_0x1389('0x16')](_0x544e90[_0x1389('0x2f')])['filter'](_0x2bd435=>_0x2bd435!=_0x544e90[_0x1389('0xf')]);return _0x544e90[_0x1389('0xf')]&&_0x37d9c7[_0x1389('0x2d')](_0x544e90[_0x1389('0xf')]),_0x37d9c7[_0x1389('0x12')](_0x5ed717=>new _0xc4b4d3(_0x33ae45,_0x5ed717,_0x5ed717==_0x544e90[_0x1389('0xf')]));}(_0xd67df,_0xe756d8);this['id']=_0xe756d8['id'],this[_0x1389('0x6')]=_0xe756d8,this[_0x1389('0x19')](_0x1389('0x14'),_0x1389('0x15'))['to'](_0xe756d8),this[_0x1389('0x19')](_0x1389('0xe'))['to'](this,_0x1389('0x15'),_0x31b363=>_0x31b363?_0x3bc51f(_0xd67df['uiLanguage'],_0x31b363):void 0x0),this[_0x1389('0x2b')](_0x1389('0x27'),!0x1),this[_0x1389('0x2b')](_0x1389('0x11'),!0x1),this[_0x1389('0x2b')](_0x1389('0x24'),!0x1),this[_0x1389('0x2b')](_0x1389('0xd'),!0x1),this[_0x1389('0x2b')](_0x1389('0x1a'),!0x1),this['revisionNameView']=new _0x4c3411(_0xd67df,_0x40b507),this['revisionNameView'][_0x1389('0x20')][_0x1389('0x1d')]({'attributes':{'maxlength':_0x1389('0x13')}}),this[_0x1389('0xa')][_0x1389('0x20')]['bind'](_0x1389('0x21'),_0x1389('0x4'))['to'](this,_0x1389('0x14'),_0x1389('0xe')),this[_0x1389('0xa')][_0x1389('0x19')](_0x1389('0x1a'))['to'](this,_0x1389('0x27'),this,'isEnabled',(_0x52d722,_0x31cc2f)=>_0x52d722&&_0x31cc2f),this['revisionActionsView']=_0x1542f4&&_0x1542f4[_0x1389('0x2')]?_0x329c2b(this,_0x1542f4):'',this['revisionActionsView']&&this[_0x1389('0x8')][_0x1389('0x19')](_0x1389('0x1a'))['to'](this),this[_0x1389('0x29')]({'tag':_0x1389('0x1b'),'attributes':{'class':['ck',_0x1389('0x1e'),'ck-revision-history-sidebar__revision-wrapper',_0x16f5e9['if'](_0x1389('0xc'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':_0x1389('0x1b'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x16f5e9['if'](_0x1389('0x1a'),_0x1389('0x18'),_0x357adc=>!_0x357adc),_0x16f5e9['if']('isSelected',_0x1389('0x28')),_0x16f5e9['if'](_0x1389('0x11'),_0x1389('0x0')),_0x16f5e9['if']('isActionsDropdownOpen',_0x1389('0x22'))]},'children':[this[_0x1389('0xa')],{'tag':_0x1389('0x26'),'attributes':{'class':['ck',_0x1389('0x25')]},'children':[{'text':_0x16f5e9['to'](_0x1389('0xe'))}]},{'tag':'div','attributes':{'class':['ck',_0x1389('0x10')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x1389('0x9')]},'children':_0x32771c}]},this[_0x1389('0x8')]],'on':{'click':_0x16f5e9['to'](_0x5e353c=>{_0x5e353c[_0x1389('0x1c')][_0x1389('0x3')](_0x1389('0xb'))||this[_0x1389('0xd')]&&this[_0x1389('0x1a')]&&this[_0x1389('0x23')](_0x1389('0x2e'),{'id':this['id']});})}}]});}[_0x1389('0x2c')](){super[_0x1389('0x2c')]();const _0xd5c0bf=this[_0x1389('0xa')]['fieldView'][_0x1389('0x7')];this[_0x1389('0x1f')](_0xd5c0bf,'change',()=>{this[_0x1389('0x23')](_0x1389('0x5'),{'id':this['id'],'name':_0xd5c0bf[_0x1389('0x21')]});});}[_0x1389('0x2e')](){this[_0x1389('0x27')]=!0x0;}[_0x1389('0x1')](){this['isSelected']=!0x1;}['highlight'](){this[_0x1389('0x11')]=!0x0;}[_0x1389('0x17')](){this[_0x1389('0x11')]=!0x1;}}
23
+ const _0x122d=['highlight','createdAt','isHighlighted','isConfirm','render','uiLanguage','fieldView','set','setTemplate','revisionActionsView','bind','_createdAtFormatted','unhighlight','ck-revision-history-sidebar__revision__controls-wrapper','isEnabled','listenTo','name','placeholder','from','deselect','filter','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision_selected','map','change','isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open','ck-revision-history-sidebar__revision-wrapper','srcElement','unshift','isSelected','value','closest','div','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision_highlighted','fire','select','setName','isReady','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-reset','creator','bindTemplate','revisionNameView','ck-revision-history-sidebar__revision-authors'];(function(_0x287493,_0x122db6){const _0x45959c=function(_0x303962){while(--_0x303962){_0x287493['push'](_0x287493['shift']());}};_0x45959c(++_0x122db6);}(_0x122d,0x10e));const _0x4595=function(_0x287493,_0x122db6){_0x287493=_0x287493-0x0;let _0x45959c=_0x122d[_0x287493];return _0x45959c;};import{View as _0x33af40,createLabeledInputText as _0x2e8304}from'ckeditor5/src/ui';import{ConfirmMixin as _0x51fc56}from'ckeditor5-collaboration/src/collaboration-core';import _0x20b073 from'./revisionnameview';import _0x4feda3 from'./revisionauthorview';import{dateToPrettyFormat as _0x1d2747}from'./utils';import{createActionsDropdownView as _0x2e3ccd}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x51fc56(_0x33af40){constructor(_0x24aba7,_0x5b4585,_0x3f9e1c){super(_0x24aba7);const _0x2f8576=this[_0x4595('0x3')],_0x17790d=function(_0x5b7507,_0x5c9fed){const _0x517155=Array[_0x4595('0x18')](_0x5c9fed['authors'])[_0x4595('0x1a')](_0x561718=>_0x561718!=_0x5c9fed[_0x4595('0x2')]);return _0x5c9fed['creator']&&_0x517155[_0x4595('0x23')](_0x5c9fed[_0x4595('0x2')]),_0x517155[_0x4595('0x1d')](_0x1ccab2=>new _0x4feda3(_0x5b7507,_0x1ccab2,_0x1ccab2==_0x5c9fed['creator']));}(_0x24aba7,_0x5b4585);this['id']=_0x5b4585['id'],this['_revision']=_0x5b4585,this[_0x4595('0x10')](_0x4595('0x16'),_0x4595('0x7'))['to'](_0x5b4585),this[_0x4595('0x10')]('_createdAtFormatted')['to'](this,_0x4595('0x7'),_0x2c06e4=>_0x2c06e4?_0x1d2747(_0x24aba7[_0x4595('0xb')],_0x2c06e4):void 0x0),this[_0x4595('0xd')](_0x4595('0x24'),!0x1),this[_0x4595('0xd')](_0x4595('0x8'),!0x1),this[_0x4595('0xd')](_0x4595('0x1f'),!0x1),this[_0x4595('0xd')]('isReady',!0x1),this['set']('isEnabled',!0x1),this[_0x4595('0x4')]=new _0x20b073(_0x24aba7,_0x2e8304),this['revisionNameView'][_0x4595('0xc')]['extendTemplate']({'attributes':{'maxlength':'220'}}),this[_0x4595('0x4')][_0x4595('0xc')][_0x4595('0x10')](_0x4595('0x25'),_0x4595('0x17'))['to'](this,_0x4595('0x16'),_0x4595('0x11')),this['revisionNameView'][_0x4595('0x10')](_0x4595('0x14'))['to'](this,_0x4595('0x24'),this,'isEnabled',(_0x211835,_0x47a650)=>_0x211835&&_0x47a650),this['revisionActionsView']=_0x3f9e1c&&_0x3f9e1c['length']?_0x2e3ccd(this,_0x3f9e1c):'',this[_0x4595('0xf')]&&this[_0x4595('0xf')][_0x4595('0x10')](_0x4595('0x14'))['to'](this),this[_0x4595('0xe')]({'tag':'div','attributes':{'class':['ck',_0x4595('0x1'),_0x4595('0x21'),_0x2f8576['if'](_0x4595('0x9'),_0x4595('0x0'))]},'children':[{'tag':_0x4595('0x27'),'attributes':{'class':['ck',_0x4595('0x1'),_0x4595('0x28'),_0x2f8576['if'](_0x4595('0x14'),'ck-disabled',_0x1f2c14=>!_0x1f2c14),_0x2f8576['if'](_0x4595('0x24'),_0x4595('0x1c')),_0x2f8576['if']('isHighlighted',_0x4595('0x29')),_0x2f8576['if'](_0x4595('0x1f'),_0x4595('0x20'))]},'children':[this[_0x4595('0x4')],{'tag':'span','attributes':{'class':['ck',_0x4595('0x1b')]},'children':[{'text':_0x2f8576['to'](_0x4595('0x11'))}]},{'tag':_0x4595('0x27'),'attributes':{'class':['ck',_0x4595('0x13')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x4595('0x5')]},'children':_0x17790d}]},this['revisionActionsView']],'on':{'click':_0x2f8576['to'](_0x366d5a=>{_0x366d5a[_0x4595('0x22')][_0x4595('0x26')]('.ck-thread__remove-confirm')||this[_0x4595('0x2d')]&&this['isEnabled']&&this[_0x4595('0x2a')](_0x4595('0x2b'),{'id':this['id']});})}}]});}[_0x4595('0xa')](){super[_0x4595('0xa')]();const _0x30c674=this[_0x4595('0x4')][_0x4595('0xc')]['element'];this[_0x4595('0x15')](_0x30c674,_0x4595('0x1e'),()=>{this[_0x4595('0x2a')](_0x4595('0x2c'),{'id':this['id'],'name':_0x30c674[_0x4595('0x25')]});});}[_0x4595('0x2b')](){this[_0x4595('0x24')]=!0x0;}[_0x4595('0x19')](){this[_0x4595('0x24')]=!0x1;}[_0x4595('0x6')](){this['isHighlighted']=!0x0;}[_0x4595('0x12')](){this[_0x4595('0x8')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ec6=['false','ck-revision-history-sidebar__subrevision-collapser','_isCollapsed','bindTemplate','click','toggle','isVisible','set','ck-revision-history-sidebar__subrevision-collapser_collapsed','ck-revision-history-sidebar__subrevision-collapser__inner','button'];(function(_0x299d4d,_0x4ec6a9){const _0xbf3a71=function(_0x136960){while(--_0x136960){_0x299d4d['push'](_0x299d4d['shift']());}};_0xbf3a71(++_0x4ec6a9);}(_0x4ec6,0x112));const _0xbf3a=function(_0x299d4d,_0x4ec6a9){_0x299d4d=_0x299d4d-0x0;let _0xbf3a71=_0x4ec6[_0x299d4d];return _0xbf3a71;};import{View as _0x3c54ed}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x3c54ed{constructor(_0x39befb){super(_0x39befb);const _0x50ba65=this[_0xbf3a('0x4')];this[_0xbf3a('0x8')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':'span','attributes':{'class':['ck',_0xbf3a('0x2'),_0x50ba65['if'](_0xbf3a('0x7'),'ck-hidden',_0x12ba0c=>!_0x12ba0c),_0x50ba65['if'](_0xbf3a('0x3'),_0xbf3a('0x9'))],'role':_0xbf3a('0x0'),'aria-pressed':_0x50ba65['to'](_0xbf3a('0x3'),_0x48e443=>_0x48e443?_0xbf3a('0x1'):'true')},'children':[{'tag':'span','attributes':{'class':['ck',_0xbf3a('0xa')]}}],'on':{'click':_0x50ba65['to'](_0xbf3a('0x5'))}});}[_0xbf3a('0x6')](){this[_0xbf3a('0x3')]=!this[_0xbf3a('0x3')];}}
23
+ const _0xd33a=['set','setTemplate','bindTemplate','true','click','ck-hidden','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser','false','ck-revision-history-sidebar__subrevision-collapser__inner','ck-revision-history-sidebar__subrevision-collapser_collapsed','span'];(function(_0x32da7e,_0xd33aed){const _0x2dbeaa=function(_0x4075b6){while(--_0x4075b6){_0x32da7e['push'](_0x32da7e['shift']());}};_0x2dbeaa(++_0xd33aed);}(_0xd33a,0x139));const _0x2dbe=function(_0x32da7e,_0xd33aed){_0x32da7e=_0x32da7e-0x0;let _0x2dbeaa=_0xd33a[_0x32da7e];return _0x2dbeaa;};import{View as _0x5bb2d4}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x5bb2d4{constructor(_0xf11604){super(_0xf11604);const _0x1485b5=this[_0x2dbe('0x1')];this[_0x2dbe('0xb')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x2dbe('0x0')]({'tag':_0x2dbe('0xa'),'attributes':{'class':['ck',_0x2dbe('0x6'),_0x1485b5['if']('isVisible',_0x2dbe('0x4'),_0x33903b=>!_0x33903b),_0x1485b5['if'](_0x2dbe('0x5'),_0x2dbe('0x9'))],'role':'button','aria-pressed':_0x1485b5['to'](_0x2dbe('0x5'),_0x36afea=>_0x36afea?_0x2dbe('0x7'):_0x2dbe('0x2'))},'children':[{'tag':_0x2dbe('0xa'),'attributes':{'class':['ck',_0x2dbe('0x8')]}}],'on':{'click':_0x1485b5['to'](_0x2dbe('0x3'))}});}['toggle'](){this[_0x2dbe('0x5')]=!this[_0x2dbe('0x5')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5cec=['set','isSelected','select','bindTemplate','deselect','ck-revision-history-sidebar__revision-authors','bind','span','ck-revision-history-sidebar__revision__date','createdAt','creator','_createdAtFormatted','_parentRevisionId','ck-revision-history-sidebar__subrevision'];(function(_0x2ebcaf,_0x5cec9b){const _0x481313=function(_0xb86c56){while(--_0xb86c56){_0x2ebcaf['push'](_0x2ebcaf['shift']());}};_0x481313(++_0x5cec9b);}(_0x5cec,0x128));const _0x4813=function(_0x2ebcaf,_0x5cec9b){_0x2ebcaf=_0x2ebcaf-0x0;let _0x481313=_0x5cec[_0x2ebcaf];return _0x481313;};import{View as _0x218561}from'ckeditor5/src/ui';import _0x139844 from'./revisionauthorview';import{dateToPrettyFormat as _0xb17c46}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x218561{constructor(_0x30ad5f,_0xe94ec0,_0x1d4393){super(_0x30ad5f);const _0x1d1713=this[_0x4813('0x1')];this['id']=_0xe94ec0['id'],this[_0x4813('0x4')](_0x4813('0x7'))['to'](_0xe94ec0),this[_0x4813('0xc')](_0x4813('0xd'),!0x1),this[_0x4813('0x4')](_0x4813('0x9'))['to'](this,_0x4813('0x7'),_0x289a5d=>_0x289a5d?_0xb17c46(_0x30ad5f['uiLanguage'],_0x289a5d):void 0x0),this[_0x4813('0xa')]=_0x1d4393,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4813('0xb'),_0x1d1713['if'](_0x4813('0xd'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x4813('0x5'),'attributes':{'class':['ck',_0x4813('0x6')]},'children':[{'text':_0x1d1713['to'](_0x4813('0x9'))}]},{'tag':'ul','attributes':{'class':['ck',_0x4813('0x3')]},'children':[new _0x139844(_0x30ad5f,_0xe94ec0[_0x4813('0x8')],!0x0)]}],'on':{'click':_0x1d1713['to'](this['select'][_0x4813('0x4')](this))}});}['select'](){this['isSelected']=!0x0,this['fire'](_0x4813('0x0'),{'parentId':this['_parentRevisionId']});}[_0x4813('0x2')](){this[_0x4813('0xd')]=!0x1;}}
23
+ const _0x4ec8=['_createdAtFormatted','deselect','bind','bindTemplate','_parentRevisionId','div','uiLanguage','ck-reset','span','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision__date','creator','set','select','isSelected','fire','setTemplate'];(function(_0x25caaa,_0x4ec866){const _0x3825b1=function(_0x55825b){while(--_0x55825b){_0x25caaa['push'](_0x25caaa['shift']());}};_0x3825b1(++_0x4ec866);}(_0x4ec8,0x102));const _0x3825=function(_0x25caaa,_0x4ec866){_0x25caaa=_0x25caaa-0x0;let _0x3825b1=_0x4ec8[_0x25caaa];return _0x3825b1;};import{View as _0x176082}from'ckeditor5/src/ui';import _0x140ced from'./revisionauthorview';import{dateToPrettyFormat as _0x240e17}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x176082{constructor(_0x5496e5,_0x406c10,_0x430b61){super(_0x5496e5);const _0x112605=this[_0x3825('0x0')];this['id']=_0x406c10['id'],this['bind']('createdAt')['to'](_0x406c10),this[_0x3825('0x9')](_0x3825('0xb'),!0x1),this[_0x3825('0x10')]('_createdAtFormatted')['to'](this,'createdAt',_0xf8405e=>_0xf8405e?_0x240e17(_0x5496e5[_0x3825('0x3')],_0xf8405e):void 0x0),this[_0x3825('0x1')]=_0x430b61,this[_0x3825('0xd')]({'tag':_0x3825('0x2'),'attributes':{'class':['ck',_0x3825('0x4'),'ck-revision-history-sidebar__revision','ck-revision-history-sidebar__subrevision',_0x112605['if']('isSelected','ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x3825('0x5'),'attributes':{'class':['ck',_0x3825('0x7')]},'children':[{'text':_0x112605['to'](_0x3825('0xe'))}]},{'tag':'ul','attributes':{'class':['ck',_0x3825('0x6')]},'children':[new _0x140ced(_0x5496e5,_0x406c10[_0x3825('0x8')],!0x0)]}],'on':{'click':_0x112605['to'](this[_0x3825('0xa')][_0x3825('0x10')](this))}});}[_0x3825('0xa')](){this[_0x3825('0xb')]=!0x0,this[_0x3825('0xc')](_0x3825('0xa'),{'parentId':this['_parentRevisionId']});}[_0x3825('0xf')](){this[_0x3825('0xb')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2694=['numeric','toLocaleDateString','toLocaleTimeString','long'];(function(_0x19e0ba,_0x26948f){var _0x5c6de8=function(_0x59d47a){while(--_0x59d47a){_0x19e0ba['push'](_0x19e0ba['shift']());}};_0x5c6de8(++_0x26948f);}(_0x2694,0xd0));var _0x5c6d=function(_0x19e0ba,_0x26948f){_0x19e0ba=_0x19e0ba-0x0;var _0x5c6de8=_0x2694[_0x19e0ba];return _0x5c6de8;};export function dateToPrettyFormat(_0x234446,_0x14dfd6){return _0x14dfd6[_0x5c6d('0x1')](_0x234446,{'month':_0x5c6d('0x3'),'day':'numeric'})+',\x20'+_0x14dfd6[_0x5c6d('0x2')](_0x234446,{'hour':_0x5c6d('0x0'),'minute':'numeric'});}
23
+ var _0x13d2=['toLocaleTimeString','numeric'];(function(_0x316171,_0x13d204){var _0xc0da16=function(_0x513e79){while(--_0x513e79){_0x316171['push'](_0x316171['shift']());}};_0xc0da16(++_0x13d204);}(_0x13d2,0x133));var _0xc0da=function(_0x316171,_0x13d204){_0x316171=_0x316171-0x0;var _0xc0da16=_0x13d2[_0x316171];return _0xc0da16;};export function dateToPrettyFormat(_0x514b93,_0x40ec31){return _0x40ec31['toLocaleDateString'](_0x514b93,{'month':'long','day':_0xc0da('0x0')})+',\x20'+_0x40ec31[_0xc0da('0x1')](_0x514b93,{'hour':_0xc0da('0x0'),'minute':_0xc0da('0x0')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x139c=['element','tab','execute','value','ck-revision-history-save-revision-form','shift\x20+\x20tab','check','add','cancelButtonView','set','focusTracker','revisionName','trim','revisionNameInputView','setTemplate','forEach','cancel','keystrokes','Cancel','saveButtonView','fieldView','locale','render','label','reset','listenTo','ck-responsive-form','_focusCycler','ck-button-cancel','_focusables','submit','extendTemplate','220','_createButton','arrowleft','arrowright','revisionNameInputValue','focusFirst','arrowdown','arrowup','focus'];(function(_0x2e8147,_0x139c15){const _0x13867e=function(_0x132777){while(--_0x132777){_0x2e8147['push'](_0x2e8147['shift']());}};_0x13867e(++_0x139c15);}(_0x139c,0x127));const _0x1386=function(_0x2e8147,_0x139c15){_0x2e8147=_0x2e8147-0x0;let _0x13867e=_0x139c[_0x2e8147];return _0x13867e;};import{icons as _0x960af1}from'ckeditor5/src/core';import{ButtonView as _0x41d5ee,FocusCycler as _0x539798,LabeledFieldView as _0x24cc26,View as _0x2f5ad2,ViewCollection as _0x46dca3,createLabeledInputText as _0x537c5f,injectCssTransitionDisabler as _0x514e28,submitHandler as _0x801fdc}from'ckeditor5/src/ui';import{FocusTracker as _0x5ecded,KeystrokeHandler as _0x399290}from'ckeditor5/src/utils';import{getTranslation as _0x5ba461}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x2f5ad2{constructor(_0x311a90){super(_0x311a90),this['focusTracker']=new _0x5ecded(),this['keystrokes']=new _0x399290(),this['set'](_0x1386('0x1c'),''),this[_0x1386('0x5')]=this['_createRevisionNameInput'](),this[_0x1386('0xb')]=this[_0x1386('0x19')](_0x5ba461(_0x311a90,'Save'),_0x960af1[_0x1386('0x27')],'ck-button-save'),this[_0x1386('0xb')]['type']=_0x1386('0x16'),this[_0x1386('0x0')]=this[_0x1386('0x19')](_0x5ba461(_0x311a90,_0x1386('0xa')),_0x960af1[_0x1386('0x8')],_0x1386('0x14'),'cancel'),this[_0x1386('0x15')]=new _0x46dca3(),this['_focusCycler']=new _0x539798({'focusables':this[_0x1386('0x15')],'focusTracker':this[_0x1386('0x2')],'keystrokeHandler':this[_0x1386('0x9')],'actions':{'focusPrevious':_0x1386('0x26'),'focusNext':_0x1386('0x22')}}),this[_0x1386('0x6')]({'tag':'form','attributes':{'class':['ck',_0x1386('0x25'),_0x1386('0x12')],'tabindex':'-1'},'children':[this[_0x1386('0x5')],this[_0x1386('0xb')],this['cancelButtonView']]}),_0x514e28(this);}[_0x1386('0xe')](){super[_0x1386('0xe')](),_0x801fdc({'view':this}),([this[_0x1386('0x5')],this['saveButtonView'],this[_0x1386('0x0')]][_0x1386('0x7')](_0x5c1b44=>{this['_focusables'][_0x1386('0x28')](_0x5c1b44),this[_0x1386('0x2')][_0x1386('0x28')](_0x5c1b44[_0x1386('0x21')]);}),this[_0x1386('0x9')][_0x1386('0x11')](this[_0x1386('0x21')]));const _0x3ec1e5=_0x4f1227=>_0x4f1227['stopPropagation']();this[_0x1386('0x9')][_0x1386('0x1')](_0x1386('0x1b'),_0x3ec1e5),this[_0x1386('0x9')]['set'](_0x1386('0x1a'),_0x3ec1e5),this[_0x1386('0x9')]['set'](_0x1386('0x1f'),_0x3ec1e5),this[_0x1386('0x9')][_0x1386('0x1')](_0x1386('0x1e'),_0x3ec1e5);}[_0x1386('0x20')](){this[_0x1386('0x13')][_0x1386('0x1d')]();}get['revisionName'](){return this[_0x1386('0x5')][_0x1386('0xc')]['element'][_0x1386('0x24')][_0x1386('0x4')]();}set[_0x1386('0x3')](_0x4995c5){this[_0x1386('0x5')][_0x1386('0xc')][_0x1386('0x21')]['value']=_0x4995c5[_0x1386('0x4')]();}[_0x1386('0x10')](){this[_0x1386('0x5')][_0x1386('0xc')][_0x1386('0x21')]['value']='';}['_createRevisionNameInput'](){const _0x4475ed=new _0x24cc26(this[_0x1386('0xd')],_0x537c5f),_0x40a6c9=_0x4475ed['fieldView'];return _0x40a6c9[_0x1386('0x17')]({'attributes':{'maxlength':_0x1386('0x18')}}),_0x4475ed[_0x1386('0xf')]=_0x5ba461(this[_0x1386('0xd')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x40a6c9['on']('input',()=>{this['revisionNameInputValue']=_0x40a6c9[_0x1386('0x21')][_0x1386('0x24')][_0x1386('0x4')]();}),_0x4475ed;}[_0x1386('0x19')](_0x336099,_0x4c217f,_0x40cbb6,_0x5c2b85){const _0x2fee4f=new _0x41d5ee(this['locale']);return _0x2fee4f[_0x1386('0x1')]({'label':_0x336099,'icon':_0x4c217f,'tooltip':!0x0}),_0x2fee4f[_0x1386('0x17')]({'attributes':{'class':_0x40cbb6}}),_0x5c2b85&&_0x2fee4f['delegate'](_0x1386('0x23'))['to'](this,_0x5c2b85),_0x2fee4f;}}
23
+ const _0x4564=['render','ck-button-save','fieldView','type','keystrokes','tab','stopPropagation','Save','check','set','_focusCycler','saveButtonView','ck-revision-history-save-revision-form','forEach','label','focusFirst','execute','Cancel','focusTracker','trim','reset','extendTemplate','_createButton','submit','element','_createRevisionNameInput','revisionNameInputView','Name\x20of\x20the\x20revision\x20(optional)','cancelButtonView','ck-button-cancel','arrowleft','revisionName','revisionNameInputValue','locale','add','cancel','input','_focusables','value','delegate'];(function(_0x8a7dc7,_0x456428){const _0x35a4be=function(_0x583e65){while(--_0x583e65){_0x8a7dc7['push'](_0x8a7dc7['shift']());}};_0x35a4be(++_0x456428);}(_0x4564,0x88));const _0x35a4=function(_0x8a7dc7,_0x456428){_0x8a7dc7=_0x8a7dc7-0x0;let _0x35a4be=_0x4564[_0x8a7dc7];return _0x35a4be;};import{icons as _0x120f65}from'ckeditor5/src/core';import{ButtonView as _0x1f181a,FocusCycler as _0x2732d9,LabeledFieldView as _0x22e875,View as _0x3213ac,ViewCollection as _0x40dce7,createLabeledInputText as _0x39c260,injectCssTransitionDisabler as _0x380e84,submitHandler as _0x2f385e}from'ckeditor5/src/ui';import{FocusTracker as _0x2f03a4,KeystrokeHandler as _0x5527d5}from'ckeditor5/src/utils';import{getTranslation as _0x53127a}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x3213ac{constructor(_0x48cc47){super(_0x48cc47),this['focusTracker']=new _0x2f03a4(),this['keystrokes']=new _0x5527d5(),this[_0x35a4('0x21')](_0x35a4('0x10'),''),this['revisionNameInputView']=this['_createRevisionNameInput'](),this[_0x35a4('0x23')]=this[_0x35a4('0x6')](_0x53127a(_0x48cc47,_0x35a4('0x1f')),_0x120f65[_0x35a4('0x20')],_0x35a4('0x19')),this[_0x35a4('0x23')][_0x35a4('0x1b')]=_0x35a4('0x7'),this['cancelButtonView']=this[_0x35a4('0x6')](_0x53127a(_0x48cc47,_0x35a4('0x1')),_0x120f65[_0x35a4('0x13')],_0x35a4('0xd'),_0x35a4('0x13')),this[_0x35a4('0x15')]=new _0x40dce7(),this[_0x35a4('0x22')]=new _0x2732d9({'focusables':this[_0x35a4('0x15')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x35a4('0x1c')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x35a4('0x1d')}}),this['setTemplate']({'tag':'form','attributes':{'class':['ck',_0x35a4('0x24'),'ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView'],this['saveButtonView'],this['cancelButtonView']]}),_0x380e84(this);}[_0x35a4('0x18')](){super[_0x35a4('0x18')](),_0x2f385e({'view':this}),([this['revisionNameInputView'],this[_0x35a4('0x23')],this[_0x35a4('0xc')]][_0x35a4('0x25')](_0x3bd32c=>{this['_focusables'][_0x35a4('0x12')](_0x3bd32c),this[_0x35a4('0x2')]['add'](_0x3bd32c[_0x35a4('0x8')]);}),this[_0x35a4('0x1c')]['listenTo'](this['element']));const _0x3aa7f5=_0xce2db7=>_0xce2db7[_0x35a4('0x1e')]();this[_0x35a4('0x1c')][_0x35a4('0x21')]('arrowright',_0x3aa7f5),this[_0x35a4('0x1c')]['set'](_0x35a4('0xe'),_0x3aa7f5),this['keystrokes'][_0x35a4('0x21')]('arrowup',_0x3aa7f5),this['keystrokes'][_0x35a4('0x21')]('arrowdown',_0x3aa7f5);}['focus'](){this[_0x35a4('0x22')][_0x35a4('0x27')]();}get[_0x35a4('0xf')](){return this[_0x35a4('0xa')][_0x35a4('0x1a')][_0x35a4('0x8')][_0x35a4('0x16')][_0x35a4('0x3')]();}set[_0x35a4('0xf')](_0x5d5498){this[_0x35a4('0xa')]['fieldView']['element']['value']=_0x5d5498[_0x35a4('0x3')]();}[_0x35a4('0x4')](){this[_0x35a4('0xa')][_0x35a4('0x1a')][_0x35a4('0x8')]['value']='';}[_0x35a4('0x9')](){const _0x12f0c8=new _0x22e875(this[_0x35a4('0x11')],_0x39c260),_0x2bc66b=_0x12f0c8[_0x35a4('0x1a')];return _0x2bc66b[_0x35a4('0x5')]({'attributes':{'maxlength':'220'}}),_0x12f0c8[_0x35a4('0x26')]=_0x53127a(this[_0x35a4('0x11')],_0x35a4('0xb')),_0x2bc66b['on'](_0x35a4('0x14'),()=>{this[_0x35a4('0x10')]=_0x2bc66b[_0x35a4('0x8')][_0x35a4('0x16')][_0x35a4('0x3')]();}),_0x12f0c8;}[_0x35a4('0x6')](_0x28c977,_0x5df990,_0x3f311e,_0x565c84){const _0x357a18=new _0x1f181a(this[_0x35a4('0x11')]);return _0x357a18[_0x35a4('0x21')]({'label':_0x28c977,'icon':_0x5df990,'tooltip':!0x0}),_0x357a18[_0x35a4('0x5')]({'attributes':{'class':_0x3f311e}}),_0x565c84&&_0x357a18[_0x35a4('0x17')](_0x35a4('0x0'))['to'](this,_0x565c84),_0x357a18;}}