@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230814.0 → 0.0.0-nightly-20230816.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 _0x247b=['flat','_markInsertions','isOnRoot','isAfter','isInline','pairId','offsetSize','vid_start','_changeView','restoreRevision','mousedown','addClass','_setChanges','elementEnd','from','ck-suggestion-marker--active','writer','addMarker:revision','getCustomProperty','checkAttribute','createPositionFromPath','config','split','data','ck-editor__editable__overlay','bindElementToMarker','isContent','suggestion:','addRoot','_removeUnsupportedChanges','values','markersEnd','vid_end','high','isAtEnd','item','isAdded','_step','upcast','slice','indexOf','attributes','execute','mapViewToDom','forEach','data-revision-','getAttribute','resolve','detachRoot','affectsData','change:isReady','clear','addRevision','getRootNames','parent','filter','changeId','plugins','forceDisabled','isCollapsed','unshift','_refreshStartEndIndex','modelRange','change:activeView','userId','markerNameToElements','_setConversion','getWalker','remove','_fixObsoleteTags','_removeRevisionMarkers','all','isBlock','_getViewForChange','isLimit','toViewElement','element','bind','map','markers','element:pre','changes','toViewPosition','-new','_getViewObj','insert','selection','consume','splice','_makeModelFromViewString','push','getRevisionData','viewItem','downcastDispatcher','getIndex','error','start','consumable','repository','nextSibling','ck-revision-history-root-','_findChangeIdFromDomTarget','wrap','conversion','model','document','keys','deletion','locale','default','mapper','maxOffset','_update','ck-suggestion-marker-merge','addHighlight','data-change-id','elementStart','markerToData','next','_processTape','revisionHistory','_joinTapes','observeMarkers','diff','object','name','concat','first','createUIElement','_initInteractions','markerToHighlight','_markSuggestions','ck-revision-history-root-remove','processor','delete','RevisionViewer','get','editingDowncast','getClientRects','change','elementToAttribute','ck-suggestion-preview-marker-','index','comment','ck-suggestion-marker-','requires','removeMarker:revision-suggestion','startIndex','WidgetToolbarRepository','revision-comment:','collaboration.channelId','markersStart','ck-revision-history-root-add','isBefore','listenTo','editor','_markMismatchedRemovedTags','span','_makeModelFromTape','attributesAfter','isRemoveSuggestion','_getChangeFromId','schema','type','updatePosition','_markMarkers','pop','useFillerType','hasClass','forward','_setDistance','highest','stop','insertions','enqueueChange','_activeViewTarget','distance','setAttribute','revision-suggestion:','mouseover','test','getRoot','editing','end','isSuggestion','diffData','restoreRevisionCallback','currentChangeNumber','createRevision','enableReadOnlyMode','authors','isAtStart','showNextChange','refresh','isEqual','removeClass','hasAttribute','createAttributeElement','newRevisionId','change:activeChange','isIncorrect','markerName','_balloon','activeChange','revisionHistoryLabel','level','roots','showStack','_cleanUp','set','isReady','_removeMissingPairs','_getRevisionsRange','revision','_makeTape','children','addMarker:revision-suggestion:insertion','parse','isEnabled','startsWith','getChild','right','markerRange','insertion','revision-viewer','init','_appendChild','ck-revision-history-root--active','createRange','sort','bottom','revision:','previousPosition','domConverter','ck-suggestion-preview-marker','_getDiff','isRemoved','rootName','POSITIVE_INFINITY','merge','abs','_changeIdToChange','getRevision','string','getDomRoot','adapter','destroy','text','toViewRange','activeView','_sortAndFilterDiffChanges','_cleanMarkers','pluginName','change:isEnabled','toData','add','oldRevisionId','ck-suggestion-marker','includes','attachChange','view','has','done','nodeAfter','findIndex','loadRevisionData','shift','deletions','endIndex','nextPosition','length','then','for','revision-suggestion','code','left','_data','reconvertMarker','isAddSuggestion','getItems','getAttributes','domEvent','revision-end','dataDowncast','_threeWayMerge','revisionHistoryAttachChange','dataToMarker','side','isAttached','commands'];(function(_0x47dcd7,_0x247b56){const _0x344a07=function(_0x1e1195){while(--_0x1e1195){_0x47dcd7['push'](_0x47dcd7['shift']());}};_0x344a07(++_0x247b56);}(_0x247b,0x192));const _0x344a=function(_0x47dcd7,_0x247b56){_0x47dcd7=_0x47dcd7-0x0;let _0x344a07=_0x247b[_0x47dcd7];return _0x344a07;};import{Plugin as _0x125709,Command as _0x25f1d2}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x273ccb}from'ckeditor5/src/utils';import{ContextualBalloon as _0x1d8589}from'ckeditor5/src/ui';import{DocumentFragment as _0x36fc70,Element as _0x526e46,Text as _0x5b86a7,ViewDocumentFragment as _0x4a90fe,ViewText as _0x59aa6b,ViewElement as _0x3bbedb,ViewContainerElement as _0x1f1c8b,ViewAttributeElement as _0x37172e,ViewEmptyElement as _0x17ed00,ViewRawElement as _0xdb0d64,ViewUIElement as _0xf2892d}from'ckeditor5/src/engine';import{Users as _0x1ab42c,getMarkerDomElement as _0x292d23}from'ckeditor5-collaboration/src/collaboration-core';import _0x365704 from'./ui/revisionviewer/changedetailsview';import _0x26e6fb from'./revisionsrepository';import _0x21e000 from'./changeitem';import{default as _0x303b71}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x230284}from'lodash-es';const tt={'c':_0x1f1c8b,'a':_0x37172e,'e':_0x17ed00,'r':_0xdb0d64,'u':_0xf2892d};export default class d extends _0x125709{static get[_0x344a('0x8c')](){return _0x344a('0x17');}static get[_0x344a('0x21')](){return[_0x1ab42c,_0x1d8589,_0x26e6fb];}constructor(_0x2d5cc4){super(_0x2d5cc4),this[_0x344a('0x114')]=this['editor']['plugins'][_0x344a('0x18')]('RevisionsRepository'),this[_0x344a('0x61')](_0x344a('0x5b'),null),this[_0x344a('0x61')](_0x344a('0x89'),null),this[_0x344a('0x3f')]=null,this[_0x344a('0x61')](_0x344a('0xb'),null),this[_0x344a('0x61')](_0x344a('0x62'),!0x1),this[_0x344a('0x61')](_0x344a('0x6a'),!0x0),this['on']('change:isEnabled',(_0x401697,_0x5c8ca9,_0x3921dc)=>{this['activeChange']=null,this['activeView']=null,this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x94')][_0x344a('0x1b')](_0x37f10a=>{for(const _0x35b550 of this[_0x344a('0x2b')][_0x344a('0x46')]['view'][_0x344a('0x11b')][_0x344a('0x5e')])_0x3921dc?_0x37f10a[_0x344a('0x53')]('ck-editor__editable__overlay',_0x35b550):_0x37f10a[_0x344a('0xbd')](_0x344a('0xca'),_0x35b550);});}),this[_0x344a('0xff')]('isNavigationMode')['to'](this,_0x344a('0x5b'),_0x51c162=>null!==_0x51c162),this[_0x344a('0xff')](_0x344a('0x4b'))['to'](this,_0x344a('0x62'),this,'diff',this,'activeChange',(_0x51e040,_0x123886,_0x41276e)=>_0x51e040&&_0x41276e?_0x123886['changes'][_0x344a('0x110')](_0x41276e):0x0),this[_0x344a('0xff')]('numberOfChanges')['to'](this,_0x344a('0x62'),this,_0x344a('0xb'),(_0x30d068,_0x16b763)=>_0x30d068?_0x16b763['changes'][_0x344a('0x9e')]:0x0),this[_0x344a('0xba')]=null,this[_0x344a('0x81')]=new Map(),this[_0x344a('0x85')]=null,this[_0x344a('0x5a')]=this[_0x344a('0x2b')][_0x344a('0xeb')]['get'](_0x1d8589);}[_0x344a('0x71')](){const _0x92320d=this[_0x344a('0x2b')],_0x437b9d=new ShowChangeCommand(_0x92320d,{'direction':'backward'}),_0x38490a=new ShowChangeCommand(_0x92320d,{'direction':_0x344a('0x39')});(_0x92320d[_0x344a('0xb1')][_0x344a('0x8f')]('showPreviousChange',_0x437b9d),_0x92320d['commands'][_0x344a('0x8f')](_0x344a('0x50'),_0x38490a),_0x92320d['commands'][_0x344a('0x8f')](_0x344a('0xbb'),new RestoreRevisionCommand(_0x92320d)),this['on']('change:numberOfChanges',()=>{_0x437b9d[_0x344a('0x51')](),_0x38490a[_0x344a('0x51')]();}),this[_0x344a('0xf4')](),this[_0x344a('0x11')](),_0x92320d[_0x344a('0x4d')](_0x344a('0x70')),_0x92320d['plugins'][_0x344a('0x95')](_0x344a('0x24')))&&_0x92320d['plugins'][_0x344a('0x18')]('WidgetToolbarRepository')[_0x344a('0xec')](_0x344a('0x70'));}async[_0x344a('0x10d')](_0x8a6b94){await this[_0x344a('0x99')](_0x8a6b94);const _0x31f9a1={};for(const _0x99e55d in _0x8a6b94[_0x344a('0x49')]){if(_0x8a6b94[_0x344a('0x49')][_0x99e55d][_0x344a('0x93')]&&!_0x8a6b94[_0x344a('0x49')][_0x99e55d][_0x344a('0x93')][_0x344a('0xb0')])continue;const _0x18ed0b=this['_removeRevisionMarkers'](JSON[_0x344a('0x69')](_0x8a6b94[_0x344a('0x49')][_0x99e55d][_0x344a('0x3d')])),_0x4352c9=this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x94')][_0x344a('0x11b')],_0x14d606=new _0x4a90fe(_0x4352c9,_0x18ed0b['map'](_0x2c7a51=>this[_0x344a('0x106')](_0x2c7a51)));this[_0x344a('0x2b')][_0x344a('0xc9')][_0x344a('0x15')][_0x344a('0x37')]('marked'),_0x31f9a1[_0x99e55d]=this[_0x344a('0x2b')][_0x344a('0xc9')]['processor'][_0x344a('0x8e')](_0x14d606),this['editor'][_0x344a('0xc9')][_0x344a('0x15')][_0x344a('0x37')](_0x344a('0x11f'));}return _0x31f9a1;}async['getRevisionRootsAttributes'](_0x4541da){await this[_0x344a('0x99')](_0x4541da);const _0x451268={};for(const _0x14c370 in _0x4541da['diffData'])_0x4541da[_0x344a('0x49')][_0x14c370][_0x344a('0x93')]&&!_0x4541da['diffData'][_0x14c370][_0x344a('0x93')][_0x344a('0xb0')]||(_0x451268[_0x14c370]=_0x4541da[_0x344a('0x49')][_0x14c370][_0x344a('0x2f')]||{});return _0x451268;}[_0x344a('0xf8')](_0xedfc9e){return(_0xedfc9e=_0xedfc9e[_0x344a('0xe9')](_0x4d0052=>!_0x4d0052['name']||'revision-start'!==_0x4d0052[_0x344a('0xd')]&&_0x344a('0xaa')!==_0x4d0052['name']))[_0x344a('0xde')](_0x129b64=>{_0x344a('0x83')!=typeof _0x129b64&&(_0x129b64['children']=this[_0x344a('0xf8')](_0x129b64[_0x344a('0x67')]),_0x129b64[_0x344a('0xdb')]=_0x129b64[_0x344a('0xdb')]['filter'](_0x3a15a0=>!_0x3a15a0[0x0]['startsWith'](_0x344a('0xdf'))));}),_0xedfc9e;}async['compare'](_0x18108e,_0x3e52e9,_0x3385d7=!0x1){if(!this['isEnabled'])return;const _0x3af6ce=this['diff'],_0x4abfc0=this['repository'],_0x597af8=_0x344a('0x83')==typeof _0x18108e?_0x4abfc0[_0x344a('0x82')](_0x18108e):_0x18108e,_0x5982ba=_0x344a('0x83')==typeof _0x3e52e9?_0x4abfc0['getRevision'](_0x3e52e9):_0x3e52e9,_0x3fcbd3=_0x597af8['id'],_0x41aa31=_0x5982ba?_0x5982ba['id']:null;if(!_0x3385d7&&this[_0x344a('0xb')]&&this[_0x344a('0xb')][_0x344a('0x56')]===_0x3fcbd3&&this[_0x344a('0xb')][_0x344a('0x90')]===_0x41aa31)return Promise[_0x344a('0xe1')]();this[_0x344a('0x62')]=!0x1,this[_0x344a('0x89')]=null,this['activeChange']=null,this['diff']=new _0x303b71(_0x3fcbd3,_0x41aa31);const _0x361e9f=this[_0x344a('0x64')](_0x597af8,_0x5982ba,!0x0)[_0x344a('0x100')](_0x2951d7=>this[_0x344a('0x99')](_0x2951d7));return _0x361e9f['push'](new Promise(_0x2326f1=>{setTimeout(_0x2326f1,0x14);})),Promise[_0x344a('0xf9')](_0x361e9f)[_0x344a('0x9f')](()=>{if(!this[_0x344a('0x6a')])return;this[_0x344a('0x60')]();const _0x4399a7=this[_0x344a('0x7b')](_0x3fcbd3,_0x41aa31);for(const _0x57b97e of _0x4399a7[_0x344a('0x103')])this['_changeIdToChange'][_0x344a('0x61')](_0x57b97e['id'],_0x57b97e);this[_0x344a('0x2b')]['model']['enqueueChange']({'isUndoable':!0x1},_0x310124=>{for(const _0x126e27 of this[_0x344a('0x2b')]['model'][_0x344a('0x11b')][_0x344a('0xe7')]())_0x310124[_0x344a('0xe2')](_0x126e27);for(const _0x43ec80 of Object['keys'](_0x4399a7['model'])){const _0x44f9c7=_0x310124[_0x344a('0xce')](_0x43ec80);for(const _0x1c1238 of Object[_0x344a('0x11c')](_0x4399a7['attributes'][_0x43ec80]))_0x310124['setAttribute'](_0x1c1238,_0x4399a7[_0x344a('0xdb')][_0x43ec80][_0x1c1238],_0x44f9c7);_0x310124['insert'](_0x4399a7[_0x344a('0x11a')][_0x43ec80],_0x44f9c7,0x0);}}),this[_0x344a('0xb')][_0x344a('0xbe')](this[_0x344a('0x8a')](_0x4399a7[_0x344a('0x103')])),this['isReady']=!0x0;})['catch'](_0x4cd741=>{console[_0x344a('0x111')](_0x4cd741),this[_0x344a('0x60')](),_0x3af6ce&&(this[_0x344a('0xb')]=_0x3af6ce),this[_0x344a('0x62')]=!0x0;});}['addRevisionData'](_0x5ac4d0,_0x3e2eee){const _0x4b66b0=this[_0x344a('0x114')][_0x344a('0x4c')](_0x5ac4d0);return _0x4b66b0['on'](_0x344a('0x0'),(_0x1b3b4e,_0x5a8a9c,_0x840392)=>_0x3e2eee(_0x5a8a9c,_0x840392,_0x4b66b0)),this[_0x344a('0x114')][_0x344a('0xe6')](_0x4b66b0),_0x4b66b0;}[_0x344a('0x99')](_0x29ec18){if(!_0x29ec18||_0x29ec18[_0x344a('0x49')])return Promise[_0x344a('0xe1')]();{const _0xa1cc0a=this[_0x344a('0x2b')][_0x344a('0xc7')]['get'](_0x344a('0x26'));return this[_0x344a('0x85')][_0x344a('0x82')]({'channelId':_0xa1cc0a,'revisionId':_0x29ec18['id']})[_0x344a('0x9f')](_0x6cc2a5=>{_0x29ec18[_0x344a('0x0')]({'diffData':_0x6cc2a5[_0x344a('0x49')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this[_0x344a('0x8b')](),this[_0x344a('0xba')]&&this[_0x344a('0xba')][_0x344a('0x86')](),this[_0x344a('0xba')]=null,this[_0x344a('0x81')][_0x344a('0xe5')](),this[_0x344a('0x2b')][_0x344a('0x11a')][_0x344a('0x3e')]({'isUndoable':!0x1},_0x3768ff=>{for(const _0x458d37 of this['editor'][_0x344a('0x11a')][_0x344a('0x11b')][_0x344a('0xe7')]())_0x3768ff[_0x344a('0xe2')](_0x458d37);});}[_0x344a('0x8a')](_0x51ebe4){const _0x46573a=[],_0x476240=new Map();for(const _0x2648d8 of this['editor'][_0x344a('0x11a')][_0x344a('0x11b')][_0x344a('0xe7')]()){const _0x1ed54e=this[_0x344a('0x2b')][_0x344a('0x46')]['view'][_0x344a('0x84')](_0x2648d8);if(!_0x1ed54e)continue;const _0x43531b=_0x1ed54e['getClientRects']()[_0x344a('0xd5')](0x0);_0x43531b&&(_0x46573a[_0x344a('0x10c')](_0x2648d8),_0x476240[_0x344a('0x61')](_0x2648d8,_0x43531b));}return _0x46573a['sort']((_0x50299b,_0x30691b)=>{const _0xbd70c8=_0x476240[_0x344a('0x18')](_0x50299b),_0x289d5b=_0x476240['get'](_0x30691b);return _0xbd70c8['y']-_0x289d5b['y']||_0xbd70c8['x']-_0x289d5b['x'];}),(_0x51ebe4=_0x51ebe4[_0x344a('0xe9')](_0x2e33c9=>_0x46573a[_0x344a('0x92')](_0x2e33c9['rootName'])))[_0x344a('0x75')]((_0x4b7811,_0x4fc134)=>_0x46573a[_0x344a('0xda')](_0x4b7811[_0x344a('0x7d')])-_0x46573a[_0x344a('0xda')](_0x4fc134['rootName'])),_0x51ebe4;}[_0x344a('0x66')](_0xffca05){const _0xbd2357=Array[_0x344a('0xc0')](_0xffca05[_0x344a('0x101')])[_0x344a('0xe9')](([_0xf9d2fb,_0x26d9ca])=>_0xf9d2fb[_0x344a('0x6b')](_0x344a('0x77'))&&!_0x26d9ca[_0x344a('0xed')]),_0x3ec77e=Array['from'](this['editor'][_0x344a('0x11a')]['createRangeIn'](_0xffca05)[_0x344a('0xf5')]({'singleCharacters':!0x0}));if(0x0!=_0xbd2357[_0x344a('0x9e')])for(const _0x2d4907 of _0x3ec77e){const [_0x59ec85,_0x55a1ce]=_0xbd2357[0x0],[,_0x4ef1d5,_0x17cd94]=_0x59ec85[_0x344a('0xc8')](':');if(_0x55a1ce[_0x344a('0x47')][_0x344a('0x52')](_0x2d4907['nextPosition'])&&_0xbd2357[_0x344a('0x9a')](),(_0x2d4907['previousPosition'][_0x344a('0x52')](_0x55a1ce[_0x344a('0x112')])||_0x2d4907['previousPosition'][_0x344a('0xb5')](_0x55a1ce[_0x344a('0x112')]))&&(_0x344a('0x6f')==_0x4ef1d5?_0x2d4907['isAdded']={'userId':_0x17cd94}:_0x344a('0x11d')==_0x4ef1d5&&(_0x2d4907[_0x344a('0x7c')]={'userId':_0x17cd94})),0x0==_0xbd2357['length'])break;}return _0x3ec77e;}['_refreshStartEndIndex'](_0x59b30a){const _0x16a621=new Map();for(let _0x5274fd=0x0;_0x5274fd<_0x59b30a[_0x344a('0x9e')];_0x5274fd++)'text'===_0x59b30a[_0x5274fd][_0x344a('0x33')]?(_0x59b30a[_0x5274fd][_0x344a('0xd5')][_0x344a('0x23')]=_0x5274fd,_0x59b30a[_0x5274fd][_0x344a('0xd5')][_0x344a('0x9c')]=_0x5274fd):('elementStart'===_0x59b30a[_0x5274fd]['type']?_0x59b30a[_0x5274fd][_0x344a('0xd5')][_0x344a('0x23')]=_0x5274fd:_0x344a('0xbf')===_0x59b30a[_0x5274fd]['type']&&(_0x59b30a[_0x5274fd][_0x344a('0xd5')][_0x344a('0x9c')]=_0x5274fd),_0x16a621[_0x344a('0x61')](_0x59b30a[_0x5274fd]['id'],_0x5274fd));for(const _0xb36314 of _0x16a621[_0x344a('0xd0')]())'elementStart'===_0x59b30a[_0xb36314][_0x344a('0x33')]?_0x59b30a[_0xb36314][_0x344a('0xd5')]['endIndex']=_0x16a621[_0x344a('0x18')](_0x59b30a[_0xb36314][_0x344a('0xb7')]):'elementEnd'===_0x59b30a[_0xb36314]['type']&&(_0x59b30a[_0xb36314][_0x344a('0xd5')][_0x344a('0x23')]=_0x16a621['get'](_0x59b30a[_0xb36314][_0x344a('0xb7')]));}[_0x344a('0x7')](_0x11685a){for(let _0x35a85b=0x0;_0x35a85b<_0x11685a['length'];_0x35a85b++){if(_0x344a('0x4')===_0x11685a[_0x35a85b]['type'])_0x11685a[_0x35a85b][_0x344a('0xd5')][_0x344a('0x23')]=_0x35a85b;else{if(_0x344a('0xbf')===_0x11685a[_0x35a85b][_0x344a('0x33')]){_0x11685a[_0x35a85b][_0x344a('0xd5')][_0x344a('0x9c')]=_0x35a85b;const _0x30e993=_0x11685a[_0x35a85b][_0x344a('0xd5')][_0x344a('0x23')];_0x11685a[_0x30e993][_0x344a('0xb7')]=_0x11685a[_0x35a85b]['id'],_0x11685a[_0x35a85b][_0x344a('0xb7')]=_0x11685a[_0x30e993]['id'];}else _0x11685a[_0x35a85b][_0x344a('0xd5')][_0x344a('0x23')]=_0x35a85b,_0x11685a[_0x35a85b][_0x344a('0xd5')][_0x344a('0x9c')]=_0x35a85b,_0x11685a[_0x35a85b][_0x344a('0xb7')]=null;}_0x11685a[_0x35a85b][_0x344a('0x27')]||(_0x11685a[_0x35a85b]['markersStart']=[],_0x11685a[_0x35a85b][_0x344a('0xd1')]=[]);}}[_0x344a('0xb3')](_0x1c0313,_0x491e6b){const _0x4a642b=_0x1c0313[_0x344a('0xe9')](_0x1c8ce8=>!_0x1c8ce8[_0x344a('0xd6')]);for(let _0x496e2d=0x0;_0x496e2d<_0x491e6b[_0x344a('0x9e')];_0x496e2d++)_0x491e6b[_0x496e2d][_0x344a('0xd6')]&&(_0x4a642b[_0x496e2d][_0x344a('0xd6')]=_0x491e6b[_0x496e2d][_0x344a('0xd6')]);}['_makeModelFromViewString'](_0x108bcb){const _0x336bb0=JSON[_0x344a('0x69')](_0x108bcb),_0x4ab74d=this['editor']['editing'][_0x344a('0x94')][_0x344a('0x11b')],_0x541cf6=new _0x4a90fe(_0x4ab74d,_0x336bb0[_0x344a('0x100')](_0xe00890=>this[_0x344a('0x106')](_0xe00890)));return this[_0x344a('0x2b')][_0x344a('0xc9')]['toModel'](_0x541cf6);}[_0x344a('0x106')](_0x3bbc73){const _0x2f5787=this[_0x344a('0x2b')]['editing'][_0x344a('0x94')]['document'];if(_0x344a('0x83')==typeof _0x3bbc73)return new _0x59aa6b(_0x2f5787,_0x3bbc73);{const _0x125df2=_0x3bbc73[_0x344a('0x67')]['map'](_0x54ddde=>this['_getViewObj'](_0x54ddde));return new(tt[_0x3bbc73[(_0x344a('0x33'))]]||_0x3bbedb)(_0x2f5787,_0x3bbc73['name'],_0x3bbc73[_0x344a('0xdb')],_0x125df2);}}[_0x344a('0x7b')](_0x238c3d,_0x2e4c82=null){const _0x5214fd=this['repository'][_0x344a('0x82')](_0x238c3d),_0x505031=_0x2e4c82?this[_0x344a('0x114')][_0x344a('0x82')](_0x2e4c82):null,_0x5621ea=this[_0x344a('0x64')](_0x5214fd,_0x505031),_0x20bc8c=_0x5621ea[_0x5621ea['length']-0x1],_0x361f05=new Map(),_0x9379cd={'model':{},'attributes':{},'changes':[]},_0x40a99=new Set(),_0x2843b4=new Map();for(let _0x32af75=_0x5621ea[_0x344a('0x9e')]-0x1;_0x32af75>=0x0;_0x32af75--){const _0xfef470=_0x5621ea[_0x32af75];for(const _0x2f628a of Object['keys'](_0xfef470[_0x344a('0x49')]))if(_0xfef470[_0x344a('0x49')][_0x2f628a]['attachChange']){const _0x1423ff=_0xfef470['diffData'][_0x2f628a]['attachChange'];_0x1423ff[_0x344a('0xb0')]?(_0x40a99[_0x344a('0x8f')](_0x2f628a),_0x2843b4[_0x344a('0x95')](_0x2f628a)&&_0x2843b4[_0x344a('0x18')](_0x2f628a)[_0x344a('0xf2')]==_0x1423ff[_0x344a('0xf2')]?_0x2843b4[_0x344a('0x16')](_0x2f628a):_0x2843b4[_0x344a('0x61')](_0x2f628a,_0x1423ff)):_0x2843b4[_0x344a('0x95')](_0x2f628a)?(_0x40a99[_0x344a('0x16')](_0x2f628a),_0x2843b4['delete'](_0x2f628a)):(_0x40a99[_0x344a('0x8f')](_0x2f628a),_0x2843b4['set'](_0x2f628a,_0x1423ff));}else _0x40a99['add'](_0x2f628a);}for(const _0x13a060 of _0x40a99){const _0x22d7b5=_0x2843b4[_0x344a('0x95')](_0x13a060)&&!_0x2843b4[_0x344a('0x18')](_0x13a060)[_0x344a('0xb0')];let _0x10d1cc=_0x22d7b5?_0x5621ea[_0x344a('0x9e')]-0x1:0x0;const _0x145a19=_0x22d7b5?-0x1:0x1;for(;_0x5621ea[_0x10d1cc];){const _0x40e556=_0x5621ea[_0x10d1cc];if(_0x40e556[_0x344a('0x49')][_0x13a060]){const _0xfe0c27=_0x22d7b5?_0x40e556[_0x344a('0x49')][_0x13a060]['attributesBefore']:_0x40e556[_0x344a('0x49')][_0x13a060][_0x344a('0x2f')];_0x9379cd[_0x344a('0xdb')][_0x13a060]=_0xfe0c27?_0x230284(_0xfe0c27):{};break;}_0x10d1cc+=_0x145a19;}}for(const _0x342150 of _0x5621ea){_0x342150[_0x344a('0x11a')]={};for(const _0x5e54a7 of _0x342150[_0x344a('0x4e')])_0x361f05[_0x344a('0x61')](_0x5e54a7['id'],_0x5e54a7);for(const _0x84e0af of _0x40a99){const _0x4a7854=_0x342150['diffData'][_0x84e0af]?_0x342150['diffData'][_0x84e0af][_0x344a('0x3d')]:'[]',_0x241c6c=_0x342150[_0x344a('0x49')][_0x84e0af]?_0x342150['diffData'][_0x84e0af][_0x344a('0x9b')]:'[]';_0x342150['model'][_0x84e0af]={'insertions':this[_0x344a('0x10b')](_0x4a7854),'deletions':this[_0x344a('0x10b')](_0x241c6c)};}}for(const _0x3e83e0 of _0x40a99){let _0x45f483=null,_0x1108eb=0x0;const _0x573708=new Map(Array[_0x344a('0xc0')](_0x5214fd[_0x344a('0x11a')][_0x3e83e0][_0x344a('0x3d')][_0x344a('0x101')])[_0x344a('0xe9')](([_0x1e1944])=>!_0x1e1944[_0x344a('0x6b')]('revision:')));let _0x5c2cec=0x0;for(const _0xf3eb2e of _0x5621ea){const _0x4155d7=this[_0x344a('0x66')](_0xf3eb2e[_0x344a('0x11a')][_0x3e83e0]['insertions']);_0xf3eb2e==_0x5214fd?(_0x45f483=_0x4155d7,_0x1108eb=_0x45f483[_0x344a('0x9e')],_0x45f483[_0x344a('0xde')](_0x296475=>{_0x296475['id']=_0x5c2cec++;}),this['_processTape'](_0x45f483)):this[_0x344a('0xb3')](_0x45f483,_0x4155d7);const _0x3f2b3b=_0x45f483[_0x344a('0xe9')](_0x362349=>!_0x362349[_0x344a('0xd6')])[_0x344a('0x100')](_0x474813=>_0x474813['id']);let _0x37200a=0x0;const _0x157fe9=this['_makeTape'](_0xf3eb2e[_0x344a('0x11a')][_0x3e83e0][_0x344a('0x9b')]);_0x157fe9[_0x344a('0xde')](_0x1281f9=>{_0x1281f9[_0x344a('0x7c')]?_0x1281f9['id']=_0x1108eb++:_0x1281f9['id']=_0x3f2b3b[_0x37200a++];}),this[_0x344a('0x7')](_0x157fe9),this[_0x344a('0x3a')](_0x45f483,_0x344a('0xd6')),this[_0x344a('0x3a')](_0x157fe9,_0x344a('0x7c')),_0xf3eb2e==_0x5214fd&&this['_markMarkers'](_0x45f483,_0x573708),_0x45f483=this[_0x344a('0x9')](_0x45f483,_0x157fe9),this[_0x344a('0xef')](_0x45f483),this[_0x344a('0x3a')](_0x45f483,_0x344a('0x7c'));}_0x45f483=_0x45f483[_0x344a('0xe9')](_0x2f50ff=>!(_0x2f50ff[_0x344a('0xd6')]&&_0x2f50ff[_0x344a('0x7c')]));const _0x4a0d6b=new Map(_0x20bc8c[_0x344a('0x11a')][_0x3e83e0][_0x344a('0x9b')]['markers']),_0x1c8379=new Set(_0x573708['keys']());for(const _0x3a922d of _0x4a0d6b[_0x344a('0x11c')]())_0x1c8379[_0x344a('0x16')](_0x3a922d);this[_0x344a('0x13')](_0x45f483,_0x1c8379),this['_fixObsoleteTags'](_0x45f483),_0x45f483=this[_0x344a('0x63')](_0x45f483),_0x45f483=this[_0x344a('0x2c')](_0x45f483),_0x45f483=this[_0x344a('0xcf')](_0x45f483);const {root:_0x4492e2,changes:_0x382199}=this[_0x344a('0x2e')](_0x45f483,_0x361f05,_0x3e83e0);_0x9379cd[_0x344a('0x11a')][_0x3e83e0]=_0x4492e2;const _0x24cc28=_0x2843b4[_0x344a('0x18')](_0x3e83e0);if(_0x24cc28){const _0x17fbae=_0x361f05[_0x344a('0x18')](_0x24cc28[_0x344a('0xf2')]),_0x10f016=new _0x21e000({'author':_0x17fbae,'type':_0x24cc28['isAttached']?_0x344a('0x8f'):_0x344a('0xf6'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3e83e0});_0x382199['unshift'](_0x10f016),_0x9379cd[_0x344a('0xdb')][_0x3e83e0]['revisionHistoryAttachChange']=_0x10f016['id'];}_0x9379cd[_0x344a('0x103')]=_0x9379cd[_0x344a('0x103')][_0x344a('0xe')](_0x382199);}return _0x9379cd;}[_0x344a('0x35')](_0x5e3de7,_0xb376a1){for(let _0x583cfd=0x0;_0x583cfd<_0x5e3de7[_0x344a('0x9e')];_0x583cfd++)for(const [_0x102761,_0x1b9337]of _0xb376a1)_0x1b9337[_0x344a('0x112')][_0x344a('0x52')](_0x5e3de7[_0x583cfd][_0x344a('0x78')])&&_0x5e3de7[_0x583cfd][_0x344a('0x27')][_0x344a('0x10c')](_0x102761),_0x1b9337[_0x344a('0x47')][_0x344a('0x52')](_0x5e3de7[_0x583cfd][_0x344a('0x9d')])&&_0x5e3de7[_0x583cfd][_0x344a('0xd1')][_0x344a('0x10c')](_0x102761);}[_0x344a('0x9')](_0x1e30af,_0x43e7f0){let _0x4b5f3b=[],_0x309a1a=0x0,_0x5a1957=0x0;for(;_0x309a1a<_0x1e30af[_0x344a('0x9e')]||_0x5a1957<_0x43e7f0[_0x344a('0x9e')];){const _0x584ceb=_0x1e30af[_0x309a1a]||{},_0x1dded4=_0x43e7f0[_0x5a1957]||{};if(_0x584ceb['id']==_0x1dded4['id'])_0x309a1a++,_0x5a1957++,_0x4b5f3b['push'](_0x584ceb);else{if(_0x1dded4[_0x344a('0x7c')]&&_0x584ceb[_0x344a('0xd6')]){const {commonTape:_0x1b1e5a,iEnd:_0x25eab9,jEnd:_0x427e59}=this[_0x344a('0xac')](_0x1e30af,_0x309a1a,_0x43e7f0,_0x5a1957);_0x4b5f3b=_0x4b5f3b[_0x344a('0xe')](_0x1b1e5a),_0x309a1a=_0x25eab9,_0x5a1957=_0x427e59;}else _0x1dded4[_0x344a('0x7c')]?(_0x5a1957++,_0x4b5f3b[_0x344a('0x10c')](_0x1dded4)):(_0x309a1a++,_0x4b5f3b[_0x344a('0x10c')](_0x584ceb));}}return _0x4b5f3b;}[_0x344a('0x13')](_0xde8af0,_0x485b6c){const _0x150208=[];for(let _0x3548cc=0x0;_0x3548cc<_0xde8af0[_0x344a('0x9e')];_0x3548cc++){for(let _0x18e5d7=0x0;_0x18e5d7<_0xde8af0[_0x3548cc][_0x344a('0x27')][_0x344a('0x9e')];_0x18e5d7++){const _0xc97ab6=_0xde8af0[_0x3548cc][_0x344a('0x27')][_0x18e5d7];if(!_0x485b6c[_0x344a('0x95')](_0xc97ab6))continue;const {group:_0x223069,type:_0x58185b,authorId:_0x1d81e5}=_0x4108d3(_0xc97ab6);_0x344a('0xa1')!=_0x223069||_0x344a('0x6f')!=_0x58185b&&_0x344a('0x11d')!=_0x58185b||(_0x150208['unshift']({'type':_0x58185b,'name':_0xc97ab6,'userId':_0x1d81e5}),_0xde8af0[_0x3548cc][_0x344a('0x27')][_0x344a('0x10a')](_0x18e5d7,0x1),_0x18e5d7--);}_0x46af70(_0xde8af0[_0x3548cc]);for(let _0x649abc=0x0;_0x649abc<_0xde8af0[_0x3548cc][_0x344a('0xd1')][_0x344a('0x9e')];_0x649abc++){const _0x4c5814=_0xde8af0[_0x3548cc][_0x344a('0xd1')][_0x649abc];if(!_0x485b6c['has'](_0x4c5814))continue;const {group:_0x4b351a,type:_0x2807c6}=_0x4108d3(_0x4c5814);if(_0x344a('0xa1')!=_0x4b351a||'insertion'!=_0x2807c6&&_0x344a('0x11d')!=_0x2807c6)continue;_0xde8af0[_0x3548cc][_0x344a('0xd1')][_0x344a('0x10a')](_0x649abc,0x1),_0x649abc--;const _0x4ca528=_0x150208[_0x344a('0x98')](_0x5a5fd9=>_0x5a5fd9[_0x344a('0xd')]==_0x4c5814);_0x4ca528>-0x1&&_0x150208[_0x344a('0x10a')](_0x4ca528,0x1);}}function _0x4108d3(_0x30a173){const _0x4b265b=_0x30a173[_0x344a('0xc8')](':');return{'group':_0x4b265b[0x0],'type':_0x4b265b[0x1],'subType':_0x4b265b[_0x344a('0x9e')]>=0x5?_0x4b265b[0x2]:null,'id':_0x4b265b[_0x344a('0x9e')]<0x5?_0x4b265b[0x2]:_0x4b265b[0x3],'authorId':_0x4b265b[_0x344a('0x9e')]<0x5?_0x4b265b[0x3]:_0x4b265b[0x4],'markerCount':0x6==_0x4b265b['length']?_0x4b265b[0x5]:null};}function _0x46af70(_0x1f837d){for(let _0x5002bc=0x0;_0x5002bc<_0x150208[_0x344a('0x9e')];_0x5002bc++){if(_0x1f837d[_0x344a('0xd6')]&&_0x344a('0x6f')==_0x150208[_0x5002bc][_0x344a('0x33')])return _0x1f837d[_0x344a('0xa6')]=_0x150208[_0x5002bc],void delete _0x1f837d[_0x344a('0xd6')];if(!_0x1f837d[_0x344a('0xd6')]&&!_0x1f837d[_0x344a('0x7c')]&&_0x344a('0x11d')==_0x150208[_0x5002bc][_0x344a('0x33')])return void(_0x1f837d[_0x344a('0x30')]=_0x150208[_0x5002bc]);}}}[_0x344a('0x3a')](_0x16fa86,_0x162c0e){let _0x17459b=0x0,_0x3cdb1b=!0x1;const _0x29a314=new Map();for(const _0x580175 of _0x16fa86)_0x580175[_0x162c0e]?_0x3cdb1b&&(_0x17459b++,_0x3cdb1b=!0x1):(_0x17459b++,_0x3cdb1b=!0x0),_0x29a314[_0x344a('0x61')](_0x580175['id'],_0x17459b);for(let _0x52d16e=0x0;_0x52d16e<_0x16fa86[_0x344a('0x9e')];_0x52d16e++){if(_0x344a('0x7c')==_0x162c0e&&_0x16fa86[_0x52d16e][_0x344a('0xd6')]||_0x344a('0xd6')==_0x162c0e&&_0x16fa86[_0x52d16e]['isRemoved'])continue;if(_0x344a('0x87')==_0x16fa86[_0x52d16e][_0x344a('0x33')]){_0x16fa86[_0x52d16e][_0x344a('0x40')]=0x0;continue;}const _0x340dbb=_0x29a314[_0x344a('0x18')](_0x16fa86[_0x52d16e][_0x344a('0xb7')]),_0x4e498b=_0x29a314[_0x344a('0x18')](_0x16fa86[_0x52d16e]['id']);_0x16fa86[_0x52d16e][_0x344a('0x40')]=_0x340dbb-_0x4e498b;}}['_getRevisionsRange'](_0x4ba85e,_0x565780,_0x4343e4=!0x1){const _0x58a7c3=[];let _0x12656c=this[_0x344a('0x114')][_0x344a('0x110')](_0x4ba85e),_0x5938f0=this[_0x344a('0x114')][_0x344a('0x110')](_0x565780);for(-0x1==_0x5938f0&&(_0x5938f0=this['repository']['_revisions'][_0x344a('0x9e')],_0x4343e4=!0x1);_0x12656c<_0x5938f0;)_0x58a7c3['push'](this[_0x344a('0x114')]['getRevision'](_0x12656c)),_0x12656c++;return _0x4343e4&&_0x58a7c3[_0x344a('0x10c')](this[_0x344a('0x114')][_0x344a('0x82')](_0x12656c)),_0x58a7c3;}[_0x344a('0xac')](_0x1733df,_0x489db2,_0x1056b5,_0x23a2e5){const _0x36f7a6=this[_0x344a('0x2b')][_0x344a('0x11a')][_0x344a('0x32')];let _0x623dad=_0x489db2;for(;_0x1733df[_0x623dad]&&_0x1733df[_0x623dad][_0x344a('0xd6')];)_0x623dad++;let _0x1d69ea=_0x23a2e5;for(;_0x1056b5[_0x1d69ea]&&_0x1056b5[_0x1d69ea][_0x344a('0x7c')];)_0x1d69ea++;_0x10fe1d(_0x1733df,_0x489db2,_0x623dad),_0x10fe1d(_0x1056b5,_0x23a2e5,_0x1d69ea);const _0x3f5186=_0x1056b5[_0x344a('0xd9')](_0x23a2e5,_0x1d69ea)[_0x344a('0xe')](_0x1733df[_0x344a('0xd9')](_0x489db2,_0x623dad));return _0x3f5186[_0x344a('0x75')]((_0x47445e,_0x2d34b4)=>_0x47445e['side']!=_0x2d34b4[_0x344a('0xaf')]?_0x47445e[_0x344a('0xaf')]-_0x2d34b4[_0x344a('0xaf')]:_0x47445e['level']!=_0x2d34b4[_0x344a('0x5d')]?_0x47445e[_0x344a('0x5d')]-_0x2d34b4[_0x344a('0x5d')]:_0x47445e[_0x344a('0x40')]!=_0x2d34b4[_0x344a('0x40')]?_0x2d34b4['distance']-_0x47445e[_0x344a('0x40')]:!!_0x47445e[_0x344a('0xd6')]!=!!_0x2d34b4['isAdded']?-0x1==_0x47445e[_0x344a('0xaf')]||0x0==_0x47445e[_0x344a('0xaf')]?_0x47445e[_0x344a('0xd6')]?-0x1:0x1:_0x47445e[_0x344a('0xd6')]?0x1:-0x1:_0x47445e[_0x344a('0x1e')]-_0x2d34b4['index']),{'commonTape':_0x3f5186,'iEnd':_0x623dad,'jEnd':_0x1d69ea};function _0x10fe1d(_0x2e27a9,_0x5c51e7,_0x4b0482){let _0x5144d4=-0x1,_0x16e8f3=Number[_0x344a('0x7e')],_0x1a265d=!0x0;for(let _0x3cf73a=_0x5c51e7;_0x3cf73a<_0x4b0482;_0x3cf73a++)if(_0x36f7a6[_0x344a('0xb6')](_0x2e27a9[_0x3cf73a]['item'])||(_0x1a265d=!0x1),_0x2e27a9[_0x3cf73a]['item']['startIndex']<_0x5c51e7&&(_0x5144d4=_0x3cf73a),_0x2e27a9[_0x3cf73a][_0x344a('0xd5')][_0x344a('0x9c')]>=_0x4b0482){_0x16e8f3=_0x3cf73a;break;}_0x1a265d&&(_0x5144d4=_0x4b0482-0x1);for(let _0x586cff=_0x5c51e7;_0x586cff<_0x4b0482;_0x586cff++)_0x2e27a9[_0x586cff][_0x344a('0xaf')]=_0x586cff<=_0x5144d4?-0x1:_0x586cff<_0x16e8f3?0x0:0x1,_0x2e27a9[_0x586cff]['index']=_0x586cff;let _0x517582=0x0;for(let _0x47e898=_0x5c51e7;_0x47e898<=_0x5144d4;_0x47e898++)0x0==_0x2e27a9[_0x47e898][_0x344a('0x40')]?_0x2e27a9[_0x47e898]['level']=_0x517582:(_0x517582++,_0x2e27a9[_0x47e898][_0x344a('0x5d')]=_0x517582,_0x517582++);for(let _0x41b4a2=_0x5c51e7;_0x41b4a2<_0x4b0482;_0x41b4a2++)0x0==_0x2e27a9[_0x41b4a2][_0x344a('0xaf')]&&(_0x2e27a9[_0x41b4a2][_0x344a('0x5d')]=_0x517582);_0x517582=0x0;for(let _0x4c0316=_0x4b0482-0x1;_0x4c0316>=_0x16e8f3;_0x4c0316--)0x0==_0x2e27a9[_0x4c0316][_0x344a('0x40')]?_0x2e27a9[_0x4c0316][_0x344a('0x5d')]=_0x517582:(_0x517582--,_0x2e27a9[_0x4c0316][_0x344a('0x5d')]=_0x517582,_0x517582--);}}[_0x344a('0xf7')](_0x164d56){const _0x1b6c08=new Map(),_0x2bf35d=this[_0x344a('0x2b')]['model'][_0x344a('0x32')];for(let _0x47a3b6=0x1;_0x47a3b6<_0x164d56[_0x344a('0x9e')];_0x47a3b6++){let _0x5a5331,_0x120ea9,_0x598648;const _0x36016b=_0x164d56[_0x47a3b6],_0x3b2840=_0x164d56[_0x47a3b6-0x1];if(_0x344a('0x87')==_0x36016b[_0x344a('0x33')])continue;if(_0x36016b[_0x344a('0x33')]!=_0x3b2840['type'])continue;if(!_0x2bf35d[_0x344a('0xfa')](_0x3b2840[_0x344a('0xd5')])||_0x2bf35d['isLimit'](_0x3b2840[_0x344a('0xd5')]))continue;if(!_0x2bf35d[_0x344a('0xfa')](_0x36016b[_0x344a('0xd5')])||_0x2bf35d[_0x344a('0xfc')](_0x36016b[_0x344a('0xd5')]))continue;if((_0x164d56[_0x47a3b6][_0x344a('0xd6')]||_0x164d56[_0x47a3b6][_0x344a('0xa6')])&&_0x164d56[_0x47a3b6-0x1][_0x344a('0x7c')])_0x5a5331=_0x164d56[_0x47a3b6],_0x120ea9=_0x164d56[_0x47a3b6-0x1],_0x598648=_0x47a3b6-0x1;else{if(!_0x164d56[_0x47a3b6][_0x344a('0x7c')]||!_0x164d56[_0x47a3b6-0x1][_0x344a('0xd6')]&&!_0x164d56[_0x47a3b6-0x1][_0x344a('0xa6')])continue;_0x5a5331=_0x164d56[_0x47a3b6-0x1],_0x120ea9=_0x164d56[_0x47a3b6],_0x598648=_0x47a3b6;}const _0x2a9abc=_0x5a5331['level']==_0x120ea9['level'],_0x220268=Math[_0x344a('0x80')](_0x5a5331['level'])<Math[_0x344a('0x80')](_0x120ea9[_0x344a('0x5d')])&&0x0==_0x120ea9['distance'];(_0x2a9abc||_0x220268)&&(_0x1b6c08[_0x344a('0x61')](_0x120ea9['id'],_0x5a5331['id']),_0x164d56[_0x344a('0x10a')](_0x598648,0x1),_0x47a3b6--,_0x5a5331[_0x344a('0xd6')]=!0x1);}for(let _0x4c1e0e=0x0;_0x4c1e0e<_0x164d56[_0x344a('0x9e')];_0x4c1e0e++)_0x1b6c08['has'](_0x164d56[_0x4c1e0e]['pairId'])&&(_0x164d56[_0x4c1e0e][_0x344a('0xb7')]=_0x1b6c08[_0x344a('0x18')](_0x164d56[_0x4c1e0e]['pairId']));}[_0x344a('0x63')](_0xb90187){const _0x474114=new Set(_0xb90187['map'](_0x4190cf=>_0x4190cf['id']));for(let _0x388d25=0x0;_0x388d25<_0xb90187[_0x344a('0x9e')];_0x388d25++)_0x474114[_0x344a('0x95')](_0xb90187[_0x388d25]['pairId'])||0x0==_0xb90187[_0x388d25][_0x344a('0x40')]||(_0xb90187[_0x388d25][_0x344a('0x58')]=!0x0);return _0xb90187[_0x344a('0xe9')](_0x232319=>!_0x232319[_0x344a('0x58')]);}[_0x344a('0x2c')](_0x3a044a){const _0xbf841=new Set();for(let _0x5e4be0=0x0;_0x5e4be0<_0x3a044a[_0x344a('0x9e')];_0x5e4be0++){if(_0xbf841[_0x344a('0x95')](_0x3a044a[_0x5e4be0]['id'])&&_0x3a044a[_0x5e4be0][_0x344a('0x7c')]&&(_0x3a044a[_0x5e4be0][_0x344a('0x58')]=!0x0),_0x3a044a[_0x5e4be0][_0x344a('0x58')])continue;if(0x0==_0x3a044a[_0x5e4be0][_0x344a('0x40')])continue;if(_0x344a('0x4')!=_0x3a044a[_0x5e4be0][_0x344a('0x33')])continue;if(null==_0x3a044a[_0x5e4be0]['pairId'])continue;let _0x2e43f2=_0x5e4be0+0x1,_0x10526a=0x0;for(;_0x3a044a[_0x2e43f2]['id']!=_0x3a044a[_0x5e4be0][_0x344a('0xb7')];)_0x344a('0x4')==_0x3a044a[_0x2e43f2]['type']?_0x10526a++:_0x344a('0xbf')==_0x3a044a[_0x2e43f2][_0x344a('0x33')]&&_0x10526a--,_0x2e43f2++;if(0x0!=_0x10526a){if(_0x3a044a[_0x5e4be0]['isRemoved'])_0x3a044a[_0x5e4be0][_0x344a('0x58')]=!0x0;else for(;_0x2e43f2!=_0x5e4be0;)_0x3a044a[_0x2e43f2][_0x344a('0x7c')]&&0x0!=_0x3a044a[_0x2e43f2]['distance']&&(_0x3a044a[_0x2e43f2][_0x344a('0x58')]=!0x0,_0xbf841[_0x344a('0x8f')](_0x3a044a[_0x2e43f2][_0x344a('0xb7')])),_0x2e43f2--;}}return _0x3a044a[_0x344a('0xe9')](_0x39cc47=>!_0x39cc47['isIncorrect']);}[_0x344a('0xcf')](_0x4555f0){const _0x21d260=this['editor'][_0x344a('0x11a')]['schema'];for(let _0x4e8569=0x0;_0x4e8569<_0x4555f0[_0x344a('0x9e')];_0x4e8569++){if(!(_0x4555f0[_0x4e8569][_0x344a('0xd6')]||_0x4555f0[_0x4e8569][_0x344a('0xa6')]||_0x4555f0[_0x4e8569][_0x344a('0x7c')]||_0x4555f0[_0x4e8569][_0x344a('0x30')]))continue;if(0x0==_0x4555f0[_0x4e8569]['distance'])continue;const _0xe5ff07=_0x4555f0[_0x4e8569][_0x344a('0xd5')];_0x21d260['isBlock'](_0xe5ff07)||_0x21d260[_0x344a('0xfc')](_0xe5ff07)||(_0x4555f0[_0x4e8569][_0x344a('0xd6')]&&delete _0x4555f0[_0x4e8569][_0x344a('0xd6')],_0x4555f0[_0x4e8569]['isAddSuggestion']&&delete _0x4555f0[_0x4e8569][_0x344a('0xa6')],_0x4555f0[_0x4e8569][_0x344a('0x30')]&&delete _0x4555f0[_0x4e8569][_0x344a('0x30')],_0x4555f0[_0x4e8569][_0x344a('0x7c')]&&(_0x4555f0[_0x4e8569][_0x344a('0x58')]=!0x0));}return _0x4555f0[_0x344a('0xe9')](_0x591868=>!_0x591868['isIncorrect']);}[_0x344a('0x2e')](_0x26d81c,_0x1b42c4,_0x1eeec3){const _0x20302f=new _0x36fc70(),_0x16dd30=[],_0x39b4f2=new Map(),_0x13f273=this['editor'][_0x344a('0x11a')],_0x43dca7=_0x13f273['schema'],_0x124b86=[_0x20302f],_0x23c92d={},_0x309db5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2f4ce6=null;const _0x2970f9=[0x0];for(let _0x207bec=0x0;_0x207bec<_0x26d81c[_0x344a('0x9e')];_0x207bec++){let _0x4737e5,_0x116267;if(_0x344a('0x4')===_0x26d81c[_0x207bec][_0x344a('0x33')]){_0x4737e5=_0x13f273[_0x344a('0xc6')](_0x20302f,_0x2970f9);const _0x248811=new _0x526e46(_0x26d81c[_0x207bec][_0x344a('0xd5')][_0x344a('0xd')],_0x26d81c[_0x207bec][_0x344a('0xd5')][_0x344a('0xa8')]());_0x124b86[0x0][_0x344a('0x72')](_0x248811),_0x2970f9['push'](0x0),_0x124b86[_0x344a('0xee')](_0x248811),_0x116267=_0x13f273[_0x344a('0xc6')](_0x20302f,_0x2970f9),_0x2f4ce6=null;}else{if(_0x344a('0xbf')===_0x26d81c[_0x207bec]['type'])_0x124b86['shift'](),_0x4737e5=_0x13f273[_0x344a('0xc6')](_0x20302f,_0x2970f9),_0x2970f9[_0x344a('0x36')](),_0x2970f9[_0x2970f9[_0x344a('0x9e')]-0x1]++,_0x116267=_0x13f273[_0x344a('0xc6')](_0x20302f,_0x2970f9),_0x2f4ce6=null;else{if(_0x4737e5=_0x13f273[_0x344a('0xc6')](_0x20302f,_0x2970f9),_0x2f4ce6&&_0x5ed225(_0x2f4ce6,_0x26d81c[_0x207bec][_0x344a('0xd5')]))_0x2f4ce6[_0x344a('0xa4')]+=_0x26d81c[_0x207bec]['item'][_0x344a('0xc9')];else{const _0x2d374c=new _0x5b86a7(_0x26d81c[_0x207bec][_0x344a('0xd5')][_0x344a('0xc9')],_0x26d81c[_0x207bec][_0x344a('0xd5')][_0x344a('0xa8')]());_0x124b86[0x0][_0x344a('0x72')](_0x2d374c),_0x2f4ce6=_0x2d374c;}_0x2970f9[_0x2970f9[_0x344a('0x9e')]-0x1]+=_0x26d81c[_0x207bec]['item'][_0x344a('0xb8')],_0x116267=_0x13f273['createPositionFromPath'](_0x20302f,_0x2970f9);}}for(const _0x3f463a of _0x26d81c[_0x207bec][_0x344a('0x27')])_0x39b4f2[_0x344a('0x61')](_0x3f463a,{'start':_0x4737e5,'end':null});_0x57f018('isRemoveSuggestion',_0x207bec,_0x4737e5,_0x116267),_0x57f018(_0x344a('0xa6'),_0x207bec,_0x4737e5,_0x116267),_0x57f018(_0x344a('0x7c'),_0x207bec,_0x4737e5,_0x116267),_0x57f018(_0x344a('0xd6'),_0x207bec,_0x4737e5,_0x116267);for(const _0x4b63af of _0x26d81c[_0x207bec][_0x344a('0xd1')]){_0x39b4f2[_0x344a('0x18')](_0x4b63af)[_0x344a('0x47')]=_0x116267;}}for(const [_0x305a60,_0x53a0df]of _0x39b4f2){const _0x1a4aab=this[_0x344a('0x2b')][_0x344a('0x11a')]['createRange'](_0x53a0df[_0x344a('0x112')],_0x53a0df[_0x344a('0x47')]);_0x20302f[_0x344a('0x101')][_0x344a('0x61')](_0x305a60,_0x1a4aab);}return _0x16dd30['sort']((_0x4b3bba,_0x56b339)=>{const _0x166365=_0x20302f['markers'][_0x344a('0x18')](_0x344a('0x77')+_0x4b3bba['id']),_0x4e8757=_0x20302f[_0x344a('0x101')]['get'](_0x344a('0x77')+_0x56b339['id']);return _0x166365['start'][_0x344a('0x29')](_0x4e8757[_0x344a('0x112')])?-0x1:_0x166365[_0x344a('0x112')][_0x344a('0xb5')](_0x4e8757[_0x344a('0x112')])?0x1:_0x166365['end'][_0x344a('0x29')](_0x4e8757['end'])?-0x1:_0x166365[_0x344a('0x47')][_0x344a('0xb5')](_0x4e8757[_0x344a('0x47')])?0x1:'add'===_0x4b3bba[_0x344a('0x33')]?-0x1:0x1;}),{'root':_0x20302f,'changes':_0x16dd30};function _0x57f018(_0x4a311d,_0x2cdebe,_0x160042,_0x370bd5){const _0x2ffda0=!!_0x26d81c[_0x2cdebe][_0x4a311d],_0x218786=_0x2ffda0?_0x26d81c[_0x2cdebe][_0x4a311d][_0x344a('0xf2')]:null,_0x2b8197=_0x2cdebe===_0x26d81c[_0x344a('0x9e')]-0x1,_0x37efda=_0x309db5[_0x4a311d][0x0],_0x3a5304=_0x43dca7['isObject'](_0x26d81c[_0x2cdebe][_0x344a('0xd5')]);!_0x23c92d[_0x4a311d]&&_0x2ffda0?_0x23c92d[_0x4a311d]={'start':_0x160042,'tapeItem':_0x26d81c[_0x2cdebe],'userId':_0x218786,'type':_0x4a311d}:_0x23c92d[_0x4a311d]&&!_0x2ffda0?(_0x23c92d[_0x4a311d][_0x344a('0x47')]=_0x160042,_0x4d8675(_0x23c92d[_0x4a311d]),_0x23c92d[_0x4a311d]=null):_0x23c92d[_0x4a311d]&&_0x2ffda0&&_0x23c92d[_0x4a311d][_0x344a('0xf2')]!==_0x218786&&(_0x23c92d[_0x4a311d][_0x344a('0x47')]=_0x160042,_0x37efda&&_0x37efda[_0x344a('0xf2')]===_0x23c92d[_0x4a311d][_0x344a('0xf2')]||_0x4d8675(_0x23c92d[_0x4a311d]),_0x23c92d[_0x4a311d]={'start':_0x160042,'tapeItem':_0x26d81c[_0x2cdebe],'userId':_0x218786,'type':_0x4a311d}),_0x23c92d[_0x4a311d]&&_0x3a5304&&(_0x344a('0x4')!==_0x26d81c[_0x2cdebe][_0x344a('0x33')]||_0x37efda&&_0x37efda[_0x344a('0xf2')]===_0x218786||_0x309db5[_0x4a311d][_0x344a('0xee')]({'userId':_0x218786,'object':_0x26d81c[_0x2cdebe][_0x344a('0xd5')],'change':_0x23c92d[_0x4a311d]}),'elementEnd'===_0x26d81c[_0x2cdebe][_0x344a('0x33')]&&_0x37efda&&_0x37efda[_0x344a('0xc')]===_0x26d81c[_0x2cdebe][_0x344a('0xd5')]&&(_0x309db5[_0x4a311d][_0x344a('0x9a')](),_0x23c92d[_0x4a311d]=_0x37efda['change'])),_0x23c92d[_0x4a311d]&&_0x2b8197&&(_0x23c92d[_0x4a311d][_0x344a('0x47')]=_0x370bd5,_0x4d8675(_0x23c92d[_0x4a311d]),_0x23c92d[_0x4a311d]=null);}function _0x4d8675({start:_0x399759,end:_0x31a088,tapeItem:_0x4e22cd,userId:_0x20f0c5,type:_0x599762}){const _0x10b4bb=_0x4e22cd[_0x344a('0xd5')],_0x1f2c78=_0x13f273['schema']['isBlock'](_0x10b4bb)&&!_0x13f273[_0x344a('0x32')][_0x344a('0xfc')](_0x10b4bb),_0x5f3326=_0x399759['nodeAfter']==_0x31a088[_0x344a('0xe8')]&&_0x31a088[_0x344a('0x4f')];if(_0x1f2c78&&_0x5f3326)return;const _0x176f66=_0x13f273[_0x344a('0x74')](_0x399759,_0x31a088),_0xba3001=_0x1b42c4[_0x344a('0x18')](_0x20f0c5),_0x4e113a=new _0x21e000({'author':_0xba3001,'type':'isAdded'==_0x599762||_0x344a('0xa6')==_0x599762?_0x344a('0x8f'):'remove','data':{'isSuggestion':_0x344a('0xa6')==_0x599762||_0x344a('0x30')==_0x599762},'createdAt':new Date(),'rootName':_0x1eeec3});_0x16dd30['push'](_0x4e113a),_0x20302f['markers'][_0x344a('0x61')]('revision:'+_0x4e113a['id'],_0x176f66);}function _0x5ed225(_0xf594cb,_0x16fe45){const _0x1e19e0=_0xf594cb[_0x344a('0xa8')](),_0x2f71c1=_0x16fe45['getAttributes']();for(const _0xb8fe76 of _0x1e19e0){if(_0xb8fe76[0x1]!==_0x16fe45[_0x344a('0xe0')](_0xb8fe76[0x0]))return!0x1;_0x2f71c1['next']();}return _0x2f71c1[_0x344a('0x6')]()[_0x344a('0x96')];}}[_0x344a('0xf4')](){this['editor'][_0x344a('0x119')][_0x344a('0xa0')](_0x344a('0xd8'))[_0x344a('0xae')]({'view':_0x344a('0x65')}),this['editor']['conversion'][_0x344a('0xa0')]('editingDowncast')['markerToHighlight']({'model':_0x344a('0x65'),'view':_0x330155=>{const _0x1ec82f=_0x330155['markerName'][_0x344a('0xc8')](':')[0x1],_0x2fd6bc=this[_0x344a('0x31')](_0x1ec82f);if(!_0x2fd6bc)return null;const _0x552746=_0x344a('0x8f')==_0x2fd6bc[_0x344a('0x33')]?_0x344a('0x6f'):_0x344a('0x11d'),_0x2c74cb=[_0x344a('0x91'),_0x344a('0x20')+_0x552746];return _0x2fd6bc[_0x344a('0xc9')][_0x344a('0x48')]&&_0x2c74cb[_0x344a('0x10c')](_0x344a('0x20')+_0x552746+_0x344a('0x105')),this[_0x344a('0x5b')]==_0x2fd6bc&&_0x2c74cb[_0x344a('0x10c')](_0x344a('0xc1')),{'classes':_0x2c74cb,'attributes':{'data-change-id':_0x1ec82f}};}}),this[_0x344a('0x2b')][_0x344a('0x119')][_0x344a('0xa0')](_0x344a('0xd8'))['add'](_0x59e634=>{_0x59e634['on'](_0x344a('0x102'),(_0xdad9ee,_0x286aa5,_0xad70bd)=>{const _0x46583c=_0x286aa5['viewItem'][_0x344a('0x6c')](0x0);if(!_0x46583c||!_0x46583c['is'](_0x344a('0xfe'),_0x344a('0xa2')))return;if(!_0xad70bd[_0x344a('0x113')][_0x344a('0x109')](_0x46583c,{'attributes':['vid_start',_0x344a('0xd2')]}))return;const _0x524489=_0x286aa5[_0x344a('0xf0')][_0x344a('0x112')][_0x344a('0x97')];_0xad70bd[_0x344a('0xc2')][_0x344a('0x41')](_0x344a('0xb9'),_0x46583c[_0x344a('0xe0')](_0x344a('0xb9')),_0x524489),_0xad70bd['writer'][_0x344a('0x41')](_0x344a('0xd2'),_0x46583c[_0x344a('0xe0')](_0x344a('0xd2')),_0x524489);},{'priority':'low'});}),this[_0x344a('0x2b')][_0x344a('0x119')][_0x344a('0xa0')](_0x344a('0xd8'))[_0x344a('0x8f')](_0xe1a0e0=>{_0xe1a0e0['on'](_0x344a('0xfe'),(_0x236330,_0x1a856c,_0x146891)=>{if(!_0x146891['consumable'][_0x344a('0x109')](_0x1a856c[_0x344a('0x10e')],{'attributes':['vid_start','vid_end']}))return;if(_0x1a856c['modelRange']['isCollapsed'])return;const _0x399535=_0x1a856c['modelRange'][_0x344a('0x112')][_0x344a('0x97')];_0x399535[_0x344a('0x54')](_0x344a('0xb9'))||_0x399535['hasAttribute']('vid')||(_0x146891['writer'][_0x344a('0x41')](_0x344a('0xb9'),_0x1a856c[_0x344a('0x10e')][_0x344a('0xe0')](_0x344a('0xb9')),_0x399535),_0x146891[_0x344a('0xc2')][_0x344a('0x41')](_0x344a('0xd2'),_0x1a856c['viewItem']['getAttribute'](_0x344a('0xd2')),_0x399535));},{'priority':'low'});}),this['editor']['conversion'][_0x344a('0xa0')](_0x344a('0xd8'))[_0x344a('0x1c')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xb5b9d8=>_0xb5b9d8[_0x344a('0xe0')]('vid')}}),this[_0x344a('0x2b')][_0x344a('0x11a')][_0x344a('0x32')]['on'](_0x344a('0xc5'),(_0x43f345,[,_0x569798])=>{[_0x344a('0xb9'),_0x344a('0xd2'),'vid'][_0x344a('0x92')](_0x569798)&&(_0x43f345['return']=!0x0,_0x43f345[_0x344a('0x3c')]());},{'priority':_0x344a('0x3b')}),this[_0x344a('0x2b')][_0x344a('0x119')][_0x344a('0xa0')](_0x344a('0xab'))['add'](_0x1e5413=>{_0x1e5413['on']('attribute:vid',(_0xe6d61b,_0x1f3f4d,_0x200621)=>{if('\x20'!=_0x1f3f4d['item']['data']||_0x1f3f4d[_0x344a('0xd5')]['parent'][_0x344a('0x121')]>0x1)return;if(!_0x200621['consumable']['consume'](_0x1f3f4d[_0x344a('0xd5')],_0xe6d61b[_0x344a('0xd')]))return;const _0x447d65=_0x200621[_0x344a('0xc2')],_0x903f9c=_0x200621[_0x344a('0x120')][_0x344a('0x88')](_0x1f3f4d['range']);_0x447d65[_0x344a('0x118')](_0x903f9c,_0x447d65[_0x344a('0x55')]('span'));});}),this[_0x344a('0x2b')]['conversion'][_0x344a('0xa0')]('dataDowncast')[_0x344a('0x5')]({'model':'revision'}),this[_0x344a('0x2b')]['editing'][_0x344a('0x10f')]['on'](_0x344a('0xc3'),function(_0x238178){const _0x5fe191=_0x238178[_0x344a('0xeb')][_0x344a('0x18')](_0x344a('0x17'));return(_0x2b5afb,_0x47e22d,_0xdacde)=>{const _0xb458ca=_0x47e22d[_0x344a('0x59')][_0x344a('0xc8')](':')[0x1],_0x444742=_0x5fe191[_0x344a('0x31')](_0xb458ca);if(!_0x444742)return null;const _0x10c68e=_0x344a('0x8f')==_0x444742[_0x344a('0x33')]?'split':_0x344a('0x7f');if(!_0xdacde[_0x344a('0x113')][_0x344a('0x44')](_0x47e22d[_0x344a('0x6e')],_0x2b5afb[_0x344a('0xd')]))return;const _0x21b7c1=_0x47e22d[_0x344a('0x6e')][_0x344a('0xf5')](),_0x58495c=_0x47e22d[_0x344a('0x6e')][_0x344a('0x112')],_0x2437d5=_0x238178['model'][_0x344a('0x32')];let _0x29383b=null,_0xa44044=null,_0x4cfcc7=!0x1,_0x413720=!0x1;for(const _0x17da0f of _0x21b7c1){const _0x2a78a1=_0x17da0f[_0x344a('0xd5')];_0x4cfcc7=_0x4cfcc7||_0x2437d5[_0x344a('0xcc')](_0x2a78a1);const _0x142d57=_0xdacde['mapper'][_0x344a('0xfd')](_0x2a78a1);if(_0x142d57&&_0x142d57[_0x344a('0xc4')](_0x344a('0x2')))return;_0x344a('0xbf')==_0x17da0f[_0x344a('0x33')]&&(_0x2437d5[_0x344a('0xfa')](_0x2a78a1)&&!_0x2437d5[_0x344a('0xfc')](_0x2a78a1)&&(_0x2a78a1[_0x344a('0x115')]||_0x58495c[_0x344a('0xd4')]?_0x29383b&&_0x29383b['parent']==_0x2a78a1||(_0x29383b=_0x2a78a1,_0x2176e2(_0x17da0f[_0x344a('0x78')]),_0x413720=!0x0):_0xa44044=_0xa44044||_0x17da0f['previousPosition']));}function _0x2176e2(_0x2fca25){const _0x314697=_0xdacde[_0x344a('0xc2')][_0x344a('0x10')]('span',{'class':_0x344a('0x20')+_0x10c68e}),_0x4ca59b=_0xdacde['mapper'][_0x344a('0x104')](_0x2fca25);_0x444742[_0x344a('0xc9')]['isSuggestion']&&_0xdacde[_0x344a('0xc2')][_0x344a('0xbd')](_0x344a('0x20')+_0x10c68e+_0x344a('0x105'),_0x314697),_0x5fe191[_0x344a('0x5b')]==_0x444742&&_0xdacde['writer'][_0x344a('0xbd')](_0x344a('0xc1'),_0x314697),_0xdacde['writer'][_0x344a('0x107')](_0x4ca59b,_0x314697),_0xdacde[_0x344a('0x120')][_0x344a('0xcb')](_0x314697,_0x47e22d[_0x344a('0x59')]);}_0x4cfcc7||_0x413720||!_0xa44044||_0x2176e2(_0xa44044);};}(this[_0x344a('0x2b')]),{'priority':_0x344a('0xd3')}),this['editor']['editing'][_0x344a('0x10f')]['on']('removeMarker:revision',(_0x27db82,_0x3c72d0,_0x3d48ce)=>{const _0x1fabc7=_0x3d48ce['mapper'][_0x344a('0xf3')](_0x3c72d0['markerName']);if(_0x1fabc7)for(const _0x3ebbb8 of _0x1fabc7)(_0x3ebbb8[_0x344a('0x38')]('ck-suggestion-marker-split')||_0x3ebbb8[_0x344a('0x38')](_0x344a('0x1')))&&(_0x3d48ce[_0x344a('0x120')]['unbindElementFromMarkerName'](_0x3ebbb8,_0x3c72d0[_0x344a('0x59')]),_0x3d48ce[_0x344a('0xc2')][_0x344a('0xf6')](_0x3ebbb8));},{'priority':'high'}),this[_0x344a('0x2b')]['editing'][_0x344a('0x10f')]['on'](_0x344a('0xc3'),(_0x30fde7,_0x31feb1,_0x3d7f09)=>{const _0x72a17f=_0x31feb1['markerName']['split'](':')[0x1],_0x4a20ca=this[_0x344a('0x31')](_0x72a17f);if(!_0x4a20ca)return null;const _0x1ad7b9=_0x344a('0x8f')==_0x4a20ca['type']?_0x344a('0xc8'):_0x344a('0x7f');if(_0x3d7f09[_0x344a('0x113')][_0x344a('0x44')](_0x31feb1[_0x344a('0x6e')],_0x30fde7[_0x344a('0xd')]))for(const _0x41592f of _0x31feb1[_0x344a('0x6e')][_0x344a('0xa7')]()){if(!_0x41592f['is'](_0x344a('0xfe'),'softBreak'))continue;const _0x27ed36=_0x3d7f09[_0x344a('0xc2')]['createUIElement']('span',{'class':_0x344a('0x20')+_0x1ad7b9}),_0x5b2b22=_0x3d7f09[_0x344a('0x120')][_0x344a('0x104')](this[_0x344a('0x2b')]['model']['createPositionBefore'](_0x41592f));_0x4a20ca[_0x344a('0xc9')][_0x344a('0x48')]&&_0x3d7f09['writer'][_0x344a('0xbd')](_0x344a('0x20')+_0x1ad7b9+_0x344a('0x105'),_0x27ed36),this['activeChange']==_0x4a20ca&&_0x3d7f09[_0x344a('0xc2')][_0x344a('0xbd')](_0x344a('0xc1'),_0x27ed36),_0x3d7f09[_0x344a('0xc2')][_0x344a('0x107')](_0x5b2b22,_0x27ed36),_0x3d7f09[_0x344a('0x120')]['bindElementToMarker'](_0x27ed36,_0x31feb1['markerName']);}},{'priority':_0x344a('0xd3')}),this[_0x344a('0x2b')]['model']['document']['on'](_0x344a('0x1b'),()=>{this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x94')][_0x344a('0x1b')](_0x3c8323=>{for(const _0x57d95c of this[_0x344a('0x2b')]['model'][_0x344a('0x11b')][_0x344a('0xe7')]()){const _0x5d489b=this[_0x344a('0x2b')][_0x344a('0x11a')]['document'][_0x344a('0x45')](_0x57d95c),_0x1e9592=this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x94')][_0x344a('0x11b')][_0x344a('0x45')](_0x57d95c);if(_0x1e9592){const _0x92d596=_0x5d489b[_0x344a('0xe0')](_0x344a('0xad'));if(_0x3c8323['removeAttribute'](_0x344a('0x3'),_0x1e9592),_0x3c8323[_0x344a('0x53')](_0x344a('0x28'),_0x1e9592),_0x3c8323[_0x344a('0x53')](_0x344a('0x14'),_0x1e9592),_0x3c8323[_0x344a('0x53')]('ck-revision-history-root--active',_0x1e9592),_0x92d596){const _0x4105bf=this[_0x344a('0x31')](_0x92d596);if(!_0x4105bf)return null;_0x3c8323[_0x344a('0x41')](_0x344a('0x3'),_0x92d596,_0x1e9592),_0x3c8323[_0x344a('0xbd')](_0x344a('0x116')+_0x4105bf[_0x344a('0x33')],_0x1e9592),this[_0x344a('0x5b')]==_0x4105bf&&_0x3c8323['addClass'](_0x344a('0x73'),_0x1e9592);}}}});}),this[_0x344a('0x2b')]['conversion'][_0x344a('0xa0')](_0x344a('0xd8'))[_0x344a('0xae')]({'view':_0x344a('0x1f'),'model':_0x2e4912=>_0x344a('0x25')+_0x2e4912,'converterPriority':_0x344a('0x3b')}),this[_0x344a('0x2b')][_0x344a('0x119')][_0x344a('0xa0')](_0x344a('0xd8'))[_0x344a('0xae')]({'view':'suggestion','model':_0x2eef29=>_0x344a('0x42')+_0x2eef29,'converterPriority':_0x344a('0x3b')}),this[_0x344a('0x2b')][_0x344a('0x119')][_0x344a('0xa0')]('dataDowncast')[_0x344a('0x5')]({'model':_0x344a('0xa1'),'view':_0x361249=>({'name':_0x344a('0xcd')+_0x361249,'group':_0x344a('0xa1')}),'converterPriority':_0x344a('0x3b')}),this['editor'][_0x344a('0x119')]['for'](_0x344a('0x19'))[_0x344a('0x12')]({'model':_0x344a('0xa1'),'view':_0x1cf9bb=>{const _0x34e7fa=_0x1cf9bb['markerName'][_0x344a('0xc8')](':')[0x1];return _0x344a('0x6f')!=_0x34e7fa&&_0x344a('0x11d')!=_0x34e7fa?null:{'classes':[_0x344a('0x7a'),_0x344a('0x1d')+_0x34e7fa]};}}),this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x10f')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x344a('0x2b')],_0x344a('0x7f')),{'priority':_0x344a('0xd3')}),this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x10f')]['on'](_0x344a('0x68'),et(this['editor'],_0x344a('0xc8')),{'priority':_0x344a('0xd3')}),this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x10f')]['on'](_0x344a('0x22'),(_0x57ea2b,_0x2f1a66,_0x31b431)=>{const _0x118066=_0x31b431['mapper'][_0x344a('0xf3')](_0x2f1a66['markerName']);if(_0x118066)for(const _0x11f654 of _0x118066)_0x11f654['is']('uiElement')&&(_0x31b431[_0x344a('0x120')]['unbindElementFromMarkerName'](_0x11f654,_0x2f1a66[_0x344a('0x59')]),_0x31b431[_0x344a('0xc2')][_0x344a('0xf6')](_0x11f654));},{'priority':_0x344a('0xd3')});}[_0x344a('0x31')](_0x1d8c17){return this[_0x344a('0x81')]['get'](_0x1d8c17);}['_getViewForChange'](_0x2bec66){return this[_0x344a('0xba')]&&this[_0x344a('0xba')]['destroy'](),this[_0x344a('0xba')]=new _0x365704(this[_0x344a('0x2b')][_0x344a('0x11e')],_0x2bec66),this[_0x344a('0xba')];}[_0x344a('0x11')](){this[_0x344a('0x2b')][_0x344a('0x11a')][_0x344a('0x11b')][_0x344a('0x108')][_0x344a('0xa')]('revision'),this['on'](_0x344a('0xf1'),(_0x28110c,_0x1c1007,_0x22081f,_0x467e18)=>{_0x467e18&&this[_0x344a('0x5a')]['remove'](_0x467e18),_0x22081f&&(this[_0x344a('0x5a')][_0x344a('0x8f')]({'view':_0x22081f,'stackId':_0x344a('0x5c'),'position':{'target':()=>{const _0x4dd5e8=this['editor']['editing'],_0x4b480e=this[_0x344a('0x31')](_0x22081f['changeId']);let _0x1f6837;if(_0x4b480e[_0x344a('0xc9')]['isOnRoot']){const _0x56743c=_0x4dd5e8[_0x344a('0x94')][_0x344a('0x84')](_0x4b480e[_0x344a('0x7d')]);_0x1f6837=Array[_0x344a('0xc0')](_0x56743c[_0x344a('0x1a')]());}else{const _0xdf6d56=this[_0x344a('0x2b')][_0x344a('0x11a')][_0x344a('0x101')][_0x344a('0x18')](_0x344a('0x77')+_0x22081f[_0x344a('0xea')]);_0x1f6837=Array[_0x344a('0xc0')](_0x4dd5e8[_0x344a('0x120')][_0x344a('0xf3')](_0xdf6d56[_0x344a('0xd')]))[_0x344a('0x100')](_0x185403=>_0x4dd5e8[_0x344a('0x94')][_0x344a('0x79')][_0x344a('0xdd')](_0x185403))[_0x344a('0x100')](_0x395cea=>Array[_0x344a('0xc0')](_0x395cea[_0x344a('0x1a')]()))[_0x344a('0xb2')]();}if(!this[_0x344a('0x3f')])return _0x1f6837[0x0];return _0x1f6837['find'](_0x5bdfaf=>_0x5bdfaf['top']-0x3<=this[_0x344a('0x3f')]['y']&&_0x5bdfaf[_0x344a('0x76')]+0x3>=this[_0x344a('0x3f')]['y']&&_0x5bdfaf[_0x344a('0xa3')]-0x3<=this[_0x344a('0x3f')]['x']&&_0x5bdfaf[_0x344a('0x6d')]+0x3>=this[_0x344a('0x3f')]['x'])||_0x1f6837[0x0];}}}),this[_0x344a('0x5a')][_0x344a('0x5f')](_0x344a('0x5c')));}),this['on'](_0x344a('0x57'),(_0x1e126a,_0x32f929,_0x35fbf6,_0xecbdc4)=>{this[_0x344a('0x89')]=_0x35fbf6?this['_getViewForChange'](_0x35fbf6):null,this[_0x344a('0x2b')][_0x344a('0x11a')][_0x344a('0x1b')](()=>{const _0x46a5ba=this[_0x344a('0x2b')][_0x344a('0x46')];_0xecbdc4&&(_0xecbdc4[_0x344a('0xc9')][_0x344a('0xb4')]?_0x46a5ba[_0x344a('0x94')]['change'](_0x33ed33=>{_0x33ed33[_0x344a('0x53')]('ck-revision-history-root--active',_0x46a5ba[_0x344a('0x94')][_0x344a('0x11b')][_0x344a('0x45')](_0xecbdc4[_0x344a('0x7d')]));}):_0x46a5ba[_0x344a('0xa5')]('revision:'+_0xecbdc4['id'])),_0x35fbf6&&(_0x35fbf6[_0x344a('0xc9')][_0x344a('0xb4')]?_0x46a5ba['view'][_0x344a('0x1b')](_0x5985f3=>{_0x5985f3[_0x344a('0xbd')]('ck-revision-history-root--active',_0x46a5ba[_0x344a('0x94')][_0x344a('0x11b')][_0x344a('0x45')](_0x35fbf6[_0x344a('0x7d')]));}):_0x46a5ba[_0x344a('0xa5')](_0x344a('0x77')+_0x35fbf6['id']));});}),this[_0x344a('0x2a')](this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x94')][_0x344a('0x11b')],_0x344a('0x43'),(_0x527726,_0x2f0274)=>{if(this[_0x344a('0x5b')])return;const _0x376c49=this[_0x344a('0x117')](_0x2f0274['target']),_0x57a5c4=this[_0x344a('0x81')]['get'](_0x376c49);_0x57a5c4?(this[_0x344a('0x3f')]={'x':_0x2f0274[_0x344a('0xa9')]['x'],'y':_0x2f0274[_0x344a('0xa9')]['y']},this['activeView']=this[_0x344a('0xfb')](_0x57a5c4)):(this[_0x344a('0x3f')]=null,this[_0x344a('0x89')]=null);}),this['listenTo'](this[_0x344a('0x2b')][_0x344a('0x46')]['view'][_0x344a('0x11b')],_0x344a('0xbc'),(_0xac6a45,_0x1b8a90)=>{const _0x1ae012=this[_0x344a('0x117')](_0x1b8a90['target']),_0x5e185c=this['_changeIdToChange'][_0x344a('0x18')](_0x1ae012);_0x5e185c?(this[_0x344a('0x3f')]={'x':_0x1b8a90['domEvent']['x'],'y':_0x1b8a90[_0x344a('0xa9')]['y']},_0x5e185c===this[_0x344a('0x5b')]?this[_0x344a('0x5a')][_0x344a('0x34')]():this[_0x344a('0x5b')]=_0x5e185c):(this[_0x344a('0x3f')]=null,this[_0x344a('0x5b')]=null);});}[_0x344a('0x117')](_0x34f839){do{const _0x576164=_0x34f839[_0x344a('0xe0')](_0x344a('0x3'));if(_0x576164)return _0x576164;_0x34f839=_0x34f839[_0x344a('0xe8')];}while(_0x34f839);return null;}[_0x344a('0x8b')](){this[_0x344a('0x2b')][_0x344a('0x11a')]['change'](_0x4b99dd=>{for(const _0x39265e of this[_0x344a('0x2b')][_0x344a('0x11a')][_0x344a('0x101')])_0x4b99dd['removeMarker'](_0x39265e);});}}function et(_0x51816c,_0x32b729){return(_0x5dd146,_0x20909a,_0x27be8e)=>{if(!_0x27be8e['consumable'][_0x344a('0x44')](_0x20909a[_0x344a('0x6e')],_0x5dd146[_0x344a('0xd')]))return;const _0x1db6bc=_0x20909a['markerRange']['getWalker'](),_0x4c8d39=_0x20909a['markerRange'][_0x344a('0x112')],_0xfa4abd=_0x51816c[_0x344a('0x11a')][_0x344a('0x32')];let _0x370d79=null,_0xa81492=null,_0x2785d4=!0x1,_0x3760a9=!0x1;for(const _0x32a35e of _0x1db6bc){const _0xc6460d=_0x32a35e[_0x344a('0xd5')];_0x2785d4=_0x2785d4||_0xfa4abd[_0x344a('0xcc')](_0xc6460d);const _0xe68b1b=_0x27be8e[_0x344a('0x120')]['toViewElement'](_0xc6460d);if(_0xe68b1b&&_0xe68b1b[_0x344a('0xc4')](_0x344a('0x2')))return;_0x344a('0xbf')==_0x32a35e[_0x344a('0x33')]&&(_0xfa4abd['isBlock'](_0xc6460d)&&!_0xfa4abd[_0x344a('0xfc')](_0xc6460d)&&(_0xc6460d[_0x344a('0x115')]||_0x4c8d39['isAtEnd']?_0x370d79&&_0x370d79['parent']==_0xc6460d||(_0x370d79=_0xc6460d,_0x4bdf58(_0x32a35e['previousPosition']),_0x3760a9=!0x0):_0xa81492=_0xa81492||_0x32a35e[_0x344a('0x78')]));}function _0x4bdf58(_0x4c7148){const _0x39a108=_0x27be8e[_0x344a('0x120')][_0x344a('0x104')](_0x4c7148),_0x15d918=_0x27be8e[_0x344a('0xc2')][_0x344a('0x10')](_0x344a('0x2d'),{'class':'ck-suggestion-preview-marker-'+_0x32b729});_0x27be8e[_0x344a('0xc2')]['insert'](_0x39a108,_0x15d918),_0x27be8e[_0x344a('0x120')][_0x344a('0xcb')](_0x15d918,_0x20909a['markerName']);}_0x2785d4||_0x3760a9||!_0xa81492||_0x4bdf58(_0xa81492);};}export class RestoreRevisionCommand extends _0x25f1d2{constructor(_0x3138b3){super(_0x3138b3);const _0x183dfe=_0x3138b3[_0x344a('0xeb')][_0x344a('0x18')](d);this['affectsData']=!0x1,this['listenTo'](_0x183dfe,_0x344a('0xe4'),()=>this[_0x344a('0x51')]()),this[_0x344a('0x2a')](_0x183dfe,_0x344a('0x8d'),()=>this[_0x344a('0x51')]());}[_0x344a('0xdc')](){const _0x915209=this[_0x344a('0x2b')],_0x310895=_0x915209[_0x344a('0xeb')][_0x344a('0x18')](d),_0x3fdd12=_0x310895[_0x344a('0x62')]?_0x310895[_0x344a('0xb')][_0x344a('0x56')]:null;_0x915209[_0x344a('0xc7')][_0x344a('0x18')](_0x344a('0x8'))[_0x344a('0x4a')](_0x3fdd12);}[_0x344a('0x51')](){const {isReady:_0x14fb3d,isEnabled:_0x3c9a2a}=this[_0x344a('0x2b')]['plugins']['get'](d);this[_0x344a('0x6a')]=_0x14fb3d&&_0x3c9a2a;}}export class ShowChangeCommand extends _0x25f1d2{constructor(_0x5ba594,{direction:_0x5d0bc5}){super(_0x5ba594);const _0x46aba5=_0x5ba594[_0x344a('0xeb')]['get'](d);this[_0x344a('0xe3')]=!0x1,this[_0x344a('0xd7')]=_0x344a('0x39')===_0x5d0bc5?0x1:-0x1,this[_0x344a('0x2a')](_0x46aba5,'change:isReady',()=>this[_0x344a('0x51')]()),this[_0x344a('0x2a')](_0x46aba5,'change:isEnabled',()=>this[_0x344a('0x51')]()),this[_0x344a('0x2a')](_0x46aba5,_0x344a('0x57'),()=>this[_0x344a('0x51')]());}[_0x344a('0xdc')](){const _0x45f5ec=this[_0x344a('0x2b')],_0x124b42=_0x45f5ec['plugins']['get'](d),{isNavigationMode:_0x507039,currentChangeNumber:_0x6f380a}=_0x124b42;let _0x54705a;if(_0x124b42[_0x344a('0x5b')]=_0x507039?_0x124b42['diff']['changes'][_0x344a('0x18')](_0x6f380a+this[_0x344a('0xd7')]):_0x124b42['diff'][_0x344a('0x103')][_0x344a('0xf')],_0x124b42[_0x344a('0x5b')][_0x344a('0xc9')][_0x344a('0xb4')])_0x54705a=_0x45f5ec[_0x344a('0x46')][_0x344a('0x94')][_0x344a('0x84')](_0x124b42['activeChange'][_0x344a('0x7d')]);else{const _0xcbfd32=_0x45f5ec[_0x344a('0x11a')][_0x344a('0x101')][_0x344a('0x18')](_0x344a('0x77')+_0x124b42[_0x344a('0x5b')]['id']);_0x54705a=_0x292d23(_0x45f5ec[_0x344a('0x46')],_0xcbfd32);}_0x273ccb({'target':_0x54705a,'viewportOffset':0x28});}[_0x344a('0x51')](){const {isNavigationMode:_0x2309ec,currentChangeNumber:_0x3a905f,numberOfChanges:_0x2a4016,isReady:_0x4422da,isEnabled:_0x2f34d5}=this['editor'][_0x344a('0xeb')][_0x344a('0x18')](d);this[_0x344a('0x6a')]=!!(_0x2f34d5&&_0x4422da&&_0x2a4016)&&(!_0x2309ec||(0x1===this[_0x344a('0xd7')]?_0x3a905f<_0x2a4016-0x1:_0x3a905f>0x0));}}
23
+ const _0x50ee=['reconvertMarker','sort','endIndex','dataToMarker','hasClass','right','values','_markMarkers','vid','forceDisabled','attributesBefore','add','_threeWayMerge','_removeRevisionMarkers','_refreshStartEndIndex','requires','modelRange','execute','filter','markerToData','mapper','editing','_getDiff','domEvent','revision:','revisionHistoryLabel','enableReadOnlyMode','_removeMissingPairs','restoreRevision','code','_appendChild','addRevision','isBlock','changes','repository','delete','rootName','showNextChange','roots','activeView','isAttached','ck-revision-history-root-add','_findChangeIdFromDomTarget','_getRevisionsRange','_setChanges','_changeIdToChange','change','createAttributeElement','flat','conversion','config','ck-editor__editable__overlay','authors','clear','revision-end','addMarker:revision-suggestion:insertion','_data','markers','toViewPosition','_getViewForChange','set','element','backward','getWalker','changeId','getAttributes','suggestion','isIncorrect','createRange','remove','loadRevisionData','_update','markerNameToElements','ck-suggestion-marker','deletions','_setConversion','revision-comment:','start','level','toViewElement','span','top','bindElementToMarker','change:isReady','showPreviousChange','_markSuggestions','createPositionBefore','_processTape','bottom','addClass','commands','attributes','isRemoved','document','unshift','findIndex','getRevision','isSuggestion','ck-suggestion-marker-merge','length','getIndex','getCustomProperty','viewItem','_setDistance','revision-suggestion','getRevisionData','schema','dataDowncast','isNavigationMode','startsWith','index','_activeViewTarget','addMarker:revision-suggestion:deletion','RevisionsRepository','RevisionViewer','suggestion:','numberOfChanges','includes','_joinTapes','has','from','pluginName','left','domConverter','writer','previousPosition','insertion','processor','_makeModelFromTape','revisionHistory','elementEnd','isCollapsed','isReady','addRevisionData','diff','markerToHighlight','children','next','revision-suggestion:','revision-viewer','isInline','unbindElementFromMarkerName','test','return','markerRange','nextSibling','listenTo','merge','isAdded','isEqual','markersStart','mapViewToDom','enqueueChange','ck-suggestion-preview-marker-','createPositionFromPath','isAfter','downcastDispatcher','attributesAfter','map','addMarker:revision','type','done','_getViewObj','push','_revisions','ck-revision-history-root--active','revisionHistoryAttachChange','mouseover','newRevisionId','collaboration.channelId','deletion','model','getClientRects','high','revision','isAtStart','-new','end','abs','_cleanMarkers','indexOf','getChild','getRootNames','ck-suggestion-preview-marker','element:pre','concat','find','for','useFillerType','editor','uiElement','slice','removeClass','isEnabled','_getChangeFromId','parent','detachRoot','nextPosition','isObject','_makeTape','_changeView','_initInteractions','pairId','isAtEnd','_markMismatchedRemovedTags','splice','getRoot','split','getRevisionRootsAttributes','_markInsertions','restoreRevisionCallback','affectsData','observeMarkers','markerName','side','refresh','isLimit','keys','bind','diffData','toModel','marked','editingDowncast','shift','nodeAfter','userId','ck-suggestion-marker-split','getAttribute','resolve','isRemoveSuggestion','distance','error','checkAttribute','isOnRoot','plugins','WidgetToolbarRepository','data','change:activeChange','createRangeIn','string','item','elementStart','_cleanUp','createRevision','startIndex','ck-suggestion-marker--active','_sortAndFilterDiffChanges','markersEnd','toViewRange','then','insert','_makeModelFromViewString','insertions','attachChange','view','setAttribute','mousedown','currentChangeNumber','createUIElement','addHighlight','consumable','consume','activeChange','parse','data-change-id','vid_end','_fixObsoleteTags','_balloon','removeMarker','_removeUnsupportedChanges','_step','object','highest','text','removeMarker:revision','data-revision-','updatePosition','vid_start','getDomRoot','isAddSuggestion','upcast','change:isEnabled','name','ck-suggestion-marker-','isContent','offsetSize','get'];(function(_0x1c504e,_0x50ee55){const _0x401fdc=function(_0x114045){while(--_0x114045){_0x1c504e['push'](_0x1c504e['shift']());}};_0x401fdc(++_0x50ee55);}(_0x50ee,0x6b));const _0x401f=function(_0x1c504e,_0x50ee55){_0x1c504e=_0x1c504e-0x0;let _0x401fdc=_0x50ee[_0x1c504e];return _0x401fdc;};import{Plugin as _0x2f78c1,Command as _0x4d8cb9}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x4c597a}from'ckeditor5/src/utils';import{ContextualBalloon as _0x40545e}from'ckeditor5/src/ui';import{DocumentFragment as _0x4d57ae,Element as _0x596da7,Text as _0x36f440,ViewDocumentFragment as _0x3a7bca,ViewText as _0x1eda4c,ViewElement as _0x58e33a,ViewContainerElement as _0x33f19d,ViewAttributeElement as _0x563441,ViewEmptyElement as _0x56fe8d,ViewRawElement as _0x350424,ViewUIElement as _0x10e25e}from'ckeditor5/src/engine';import{Users as _0x1bbfc4,getMarkerDomElement as _0x2b38af}from'ckeditor5-collaboration/src/collaboration-core';import _0x315e58 from'./ui/revisionviewer/changedetailsview';import _0x2087c3 from'./revisionsrepository';import _0x59d887 from'./changeitem';import{default as _0x4e99eb}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x428693}from'lodash-es';const tt={'c':_0x33f19d,'a':_0x563441,'e':_0x56fe8d,'r':_0x350424,'u':_0x10e25e};export default class d extends _0x2f78c1{static get[_0x401f('0xe')](){return _0x401f('0x7');}static get[_0x401f('0xc3')](){return[_0x1bbfc4,_0x40545e,_0x2087c3];}constructor(_0x270f4b){super(_0x270f4b),this[_0x401f('0xd6')]=this[_0x401f('0x52')]['plugins'][_0x401f('0xb3')](_0x401f('0x6')),this[_0x401f('0xf0')](_0x401f('0x9b'),null),this[_0x401f('0xf0')]('activeView',null),this[_0x401f('0x4')]=null,this[_0x401f('0xf0')]('diff',null),this[_0x401f('0xf0')](_0x401f('0x19'),!0x1),this[_0x401f('0xf0')](_0x401f('0x56'),!0x0),this['on'](_0x401f('0xae'),(_0x259766,_0x364ace,_0xd72257)=>{this['activeChange']=null,this[_0x401f('0xdb')]=null,this['editor']['editing'][_0x401f('0x93')]['change'](_0x273c09=>{for(const _0x306a4d of this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x93')][_0x401f('0x111')][_0x401f('0xda')])_0xd72257?_0x273c09[_0x401f('0x55')](_0x401f('0xe7'),_0x306a4d):_0x273c09['addClass']('ck-editor__editable__overlay',_0x306a4d);});}),this['bind'](_0x401f('0x1'))['to'](this,'activeChange',_0x41569b=>null!==_0x41569b),this[_0x401f('0x6f')](_0x401f('0x96'))['to'](this,_0x401f('0x19'),this,_0x401f('0x1b'),this,_0x401f('0x9b'),(_0x12fb21,_0x2fff02,_0x57e462)=>_0x12fb21&&_0x57e462?_0x2fff02[_0x401f('0xd5')][_0x401f('0x118')](_0x57e462):0x0),this[_0x401f('0x6f')](_0x401f('0x9'))['to'](this,_0x401f('0x19'),this,_0x401f('0x1b'),(_0x36c7fd,_0x232898)=>_0x36c7fd?_0x232898['changes'][_0x401f('0x117')]:0x0),this[_0x401f('0x5d')]=null,this[_0x401f('0xe1')]=new Map(),this['adapter']=null,this['_balloon']=this[_0x401f('0x52')][_0x401f('0x7f')]['get'](_0x40545e);}['init'](){const _0x654bd5=this[_0x401f('0x52')],_0x10a1e0=new ShowChangeCommand(_0x654bd5,{'direction':_0x401f('0xf2')}),_0x546de5=new ShowChangeCommand(_0x654bd5,{'direction':'forward'});(_0x654bd5[_0x401f('0x10e')][_0x401f('0xbf')](_0x401f('0x108'),_0x10a1e0),_0x654bd5[_0x401f('0x10e')][_0x401f('0xbf')](_0x401f('0xd9'),_0x546de5),_0x654bd5[_0x401f('0x10e')][_0x401f('0xbf')](_0x401f('0xd0'),new RestoreRevisionCommand(_0x654bd5)),this['on']('change:numberOfChanges',()=>{_0x10a1e0[_0x401f('0x6c')](),_0x546de5[_0x401f('0x6c')]();}),this[_0x401f('0xff')](),this[_0x401f('0x5e')](),_0x654bd5[_0x401f('0xce')](_0x401f('0x20')),_0x654bd5[_0x401f('0x7f')][_0x401f('0xc')](_0x401f('0x80')))&&_0x654bd5['plugins'][_0x401f('0xb3')]('WidgetToolbarRepository')[_0x401f('0xbd')]('revision-viewer');}async[_0x401f('0x11d')](_0x2816ef){await this[_0x401f('0xfa')](_0x2816ef);const _0x303f79={};for(const _0x1294cd in _0x2816ef[_0x401f('0x70')]){if(_0x2816ef[_0x401f('0x70')][_0x1294cd][_0x401f('0x92')]&&!_0x2816ef['diffData'][_0x1294cd][_0x401f('0x92')][_0x401f('0xdc')])continue;const _0x4a4740=this[_0x401f('0xc1')](JSON[_0x401f('0x9c')](_0x2816ef[_0x401f('0x70')][_0x1294cd][_0x401f('0x91')])),_0x454173=this['editor'][_0x401f('0xc9')][_0x401f('0x93')]['document'],_0x50cd69=new _0x3a7bca(_0x454173,_0x4a4740['map'](_0x3f3701=>this['_getViewObj'](_0x3f3701)));this[_0x401f('0x52')]['data'][_0x401f('0x14')][_0x401f('0x51')](_0x401f('0x72')),_0x303f79[_0x1294cd]=this[_0x401f('0x52')][_0x401f('0x81')][_0x401f('0x14')]['toData'](_0x50cd69),this[_0x401f('0x52')][_0x401f('0x81')][_0x401f('0x14')]['useFillerType']('default');}return _0x303f79;}async[_0x401f('0x65')](_0x1f6f00){await this[_0x401f('0xfa')](_0x1f6f00);const _0x42fe54={};for(const _0x5de03e in _0x1f6f00['diffData'])_0x1f6f00['diffData'][_0x5de03e][_0x401f('0x92')]&&!_0x1f6f00[_0x401f('0x70')][_0x5de03e]['attachChange'][_0x401f('0xdc')]||(_0x42fe54[_0x5de03e]=_0x1f6f00[_0x401f('0x70')][_0x5de03e][_0x401f('0x32')]||{});return _0x42fe54;}[_0x401f('0xc1')](_0x177180){return(_0x177180=_0x177180[_0x401f('0xc6')](_0x123771=>!_0x123771[_0x401f('0xaf')]||'revision-start'!==_0x123771['name']&&_0x401f('0xea')!==_0x123771[_0x401f('0xaf')]))['forEach'](_0x196231=>{'string'!=typeof _0x196231&&(_0x196231[_0x401f('0x1d')]=this[_0x401f('0xc1')](_0x196231['children']),_0x196231[_0x401f('0x10f')]=_0x196231[_0x401f('0x10f')]['filter'](_0x20fa5e=>!_0x20fa5e[0x0][_0x401f('0x2')](_0x401f('0xa8'))));}),_0x177180;}async['compare'](_0x5b1439,_0x430f54,_0x318e99=!0x1){if(!this['isEnabled'])return;const _0x27cc3d=this[_0x401f('0x1b')],_0x2e1d64=this[_0x401f('0xd6')],_0x4994b2=_0x401f('0x84')==typeof _0x5b1439?_0x2e1d64[_0x401f('0x114')](_0x5b1439):_0x5b1439,_0x5d24e2='string'==typeof _0x430f54?_0x2e1d64[_0x401f('0x114')](_0x430f54):_0x430f54,_0x1a0b81=_0x4994b2['id'],_0x1ffbb=_0x5d24e2?_0x5d24e2['id']:null;if(!_0x318e99&&this['diff']&&this[_0x401f('0x1b')][_0x401f('0x3d')]===_0x1a0b81&&this[_0x401f('0x1b')]['oldRevisionId']===_0x1ffbb)return Promise['resolve']();this[_0x401f('0x19')]=!0x1,this[_0x401f('0xdb')]=null,this[_0x401f('0x9b')]=null,this[_0x401f('0x1b')]=new _0x4e99eb(_0x1a0b81,_0x1ffbb);const _0x5e979b=this[_0x401f('0xdf')](_0x4994b2,_0x5d24e2,!0x0)['map'](_0xf7f4f0=>this['loadRevisionData'](_0xf7f4f0));return _0x5e979b[_0x401f('0x38')](new Promise(_0x2214a8=>{setTimeout(_0x2214a8,0x14);})),Promise['all'](_0x5e979b)[_0x401f('0x8e')](()=>{if(!this[_0x401f('0x56')])return;this[_0x401f('0x87')]();const _0x3e00fb=this['_getDiff'](_0x1a0b81,_0x1ffbb);for(const _0x88700c of _0x3e00fb[_0x401f('0xd5')])this['_changeIdToChange'][_0x401f('0xf0')](_0x88700c['id'],_0x88700c);this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0x2d')]({'isUndoable':!0x1},_0x5b71d1=>{for(const _0x90c33 of this[_0x401f('0x52')][_0x401f('0x40')]['document'][_0x401f('0x4b')]())_0x5b71d1[_0x401f('0x59')](_0x90c33);for(const _0x67ddc8 of Object[_0x401f('0x6e')](_0x3e00fb['model'])){const _0x31a4bc=_0x5b71d1['addRoot'](_0x67ddc8);for(const _0x4ff144 of Object['keys'](_0x3e00fb[_0x401f('0x10f')][_0x67ddc8]))_0x5b71d1['setAttribute'](_0x4ff144,_0x3e00fb[_0x401f('0x10f')][_0x67ddc8][_0x4ff144],_0x31a4bc);_0x5b71d1[_0x401f('0x8f')](_0x3e00fb['model'][_0x67ddc8],_0x31a4bc,0x0);}}),this[_0x401f('0x1b')][_0x401f('0xe0')](this[_0x401f('0x8b')](_0x3e00fb[_0x401f('0xd5')])),this[_0x401f('0x19')]=!0x0;})['catch'](_0x5b2c37=>{console[_0x401f('0x7c')](_0x5b2c37),this['_cleanUp'](),_0x27cc3d&&(this[_0x401f('0x1b')]=_0x27cc3d),this['isReady']=!0x0;});}[_0x401f('0x1a')](_0x3be2c5,_0x15ab5f){const _0x8911f=this['repository'][_0x401f('0x88')](_0x3be2c5);return _0x8911f['on']('_update',(_0x1bc7e4,_0x2761d7,_0x2448ef)=>_0x15ab5f(_0x2761d7,_0x2448ef,_0x8911f)),this['repository'][_0x401f('0xd3')](_0x8911f),_0x8911f;}[_0x401f('0xfa')](_0x43f8cb){if(!_0x43f8cb||_0x43f8cb[_0x401f('0x70')])return Promise[_0x401f('0x79')]();{const _0x5596e5=this[_0x401f('0x52')][_0x401f('0xe6')][_0x401f('0xb3')](_0x401f('0x3e'));return this['adapter'][_0x401f('0x114')]({'channelId':_0x5596e5,'revisionId':_0x43f8cb['id']})[_0x401f('0x8e')](_0x32c89f=>{_0x43f8cb[_0x401f('0xfb')]({'diffData':_0x32c89f[_0x401f('0x70')]},!0x0);});}}['_cleanUp'](){this[_0x401f('0x9b')]=null,this[_0x401f('0x48')](),this[_0x401f('0x5d')]&&this['_changeView']['destroy'](),this[_0x401f('0x5d')]=null,this[_0x401f('0xe1')][_0x401f('0xe9')](),this[_0x401f('0x52')]['model'][_0x401f('0x2d')]({'isUndoable':!0x1},_0x117900=>{for(const _0x497b5d of this[_0x401f('0x52')]['model'][_0x401f('0x111')]['getRootNames']())_0x117900[_0x401f('0x59')](_0x497b5d);});}['_sortAndFilterDiffChanges'](_0x614c1c){const _0x235a31=[],_0x463336=new Map();for(const _0x1349a9 of this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0x111')][_0x401f('0x4b')]()){const _0x2f05b7=this[_0x401f('0x52')][_0x401f('0xc9')]['view'][_0x401f('0xab')](_0x1349a9);if(!_0x2f05b7)continue;const _0x555fd1=_0x2f05b7[_0x401f('0x41')]()[_0x401f('0x85')](0x0);_0x555fd1&&(_0x235a31[_0x401f('0x38')](_0x1349a9),_0x463336[_0x401f('0xf0')](_0x1349a9,_0x555fd1));}return _0x235a31[_0x401f('0xb5')]((_0x257fc8,_0x4c251c)=>{const _0xd86a3a=_0x463336[_0x401f('0xb3')](_0x257fc8),_0x4a2861=_0x463336[_0x401f('0xb3')](_0x4c251c);return _0xd86a3a['y']-_0x4a2861['y']||_0xd86a3a['x']-_0x4a2861['x'];}),(_0x614c1c=_0x614c1c[_0x401f('0xc6')](_0x3cec70=>_0x235a31[_0x401f('0xa')](_0x3cec70[_0x401f('0xd8')])))[_0x401f('0xb5')]((_0xddeaf7,_0x189593)=>_0x235a31['indexOf'](_0xddeaf7['rootName'])-_0x235a31[_0x401f('0x49')](_0x189593[_0x401f('0xd8')])),_0x614c1c;}[_0x401f('0x5c')](_0x2d5f62){const _0xf1b232=Array[_0x401f('0xd')](_0x2d5f62[_0x401f('0xed')])['filter'](([_0xdff279,_0x259a6f])=>_0xdff279[_0x401f('0x2')](_0x401f('0xcc'))&&!_0x259a6f[_0x401f('0x18')]),_0x94ba0f=Array[_0x401f('0xd')](this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0x83')](_0x2d5f62)[_0x401f('0xf3')]({'singleCharacters':!0x0}));if(0x0!=_0xf1b232[_0x401f('0x117')])for(const _0x1cc545 of _0x94ba0f){const [_0xbb16cc,_0x3e0804]=_0xf1b232[0x0],[,_0x48159a,_0x556c4b]=_0xbb16cc[_0x401f('0x64')](':');if(_0x3e0804['end']['isEqual'](_0x1cc545['nextPosition'])&&_0xf1b232[_0x401f('0x74')](),(_0x1cc545[_0x401f('0x12')][_0x401f('0x2a')](_0x3e0804['start'])||_0x1cc545[_0x401f('0x12')][_0x401f('0x30')](_0x3e0804[_0x401f('0x101')]))&&(_0x401f('0x13')==_0x48159a?_0x1cc545[_0x401f('0x29')]={'userId':_0x556c4b}:'deletion'==_0x48159a&&(_0x1cc545['isRemoved']={'userId':_0x556c4b})),0x0==_0xf1b232[_0x401f('0x117')])break;}return _0x94ba0f;}[_0x401f('0xc2')](_0x2c42db){const _0x360774=new Map();for(let _0x5979c0=0x0;_0x5979c0<_0x2c42db[_0x401f('0x117')];_0x5979c0++)'text'===_0x2c42db[_0x5979c0]['type']?(_0x2c42db[_0x5979c0][_0x401f('0x85')][_0x401f('0x89')]=_0x5979c0,_0x2c42db[_0x5979c0][_0x401f('0x85')]['endIndex']=_0x5979c0):(_0x401f('0x86')===_0x2c42db[_0x5979c0][_0x401f('0x35')]?_0x2c42db[_0x5979c0]['item'][_0x401f('0x89')]=_0x5979c0:_0x401f('0x17')===_0x2c42db[_0x5979c0][_0x401f('0x35')]&&(_0x2c42db[_0x5979c0][_0x401f('0x85')][_0x401f('0xb6')]=_0x5979c0),_0x360774[_0x401f('0xf0')](_0x2c42db[_0x5979c0]['id'],_0x5979c0));for(const _0xfe0da4 of _0x360774[_0x401f('0xba')]())_0x401f('0x86')===_0x2c42db[_0xfe0da4][_0x401f('0x35')]?_0x2c42db[_0xfe0da4]['item'][_0x401f('0xb6')]=_0x360774[_0x401f('0xb3')](_0x2c42db[_0xfe0da4][_0x401f('0x5f')]):_0x401f('0x17')===_0x2c42db[_0xfe0da4]['type']&&(_0x2c42db[_0xfe0da4][_0x401f('0x85')][_0x401f('0x89')]=_0x360774[_0x401f('0xb3')](_0x2c42db[_0xfe0da4][_0x401f('0x5f')]));}[_0x401f('0x10b')](_0x8f91a6){for(let _0x3c2f4b=0x0;_0x3c2f4b<_0x8f91a6[_0x401f('0x117')];_0x3c2f4b++){if(_0x401f('0x86')===_0x8f91a6[_0x3c2f4b]['type'])_0x8f91a6[_0x3c2f4b][_0x401f('0x85')][_0x401f('0x89')]=_0x3c2f4b;else{if(_0x401f('0x17')===_0x8f91a6[_0x3c2f4b]['type']){_0x8f91a6[_0x3c2f4b][_0x401f('0x85')][_0x401f('0xb6')]=_0x3c2f4b;const _0x50fbb1=_0x8f91a6[_0x3c2f4b][_0x401f('0x85')][_0x401f('0x89')];_0x8f91a6[_0x50fbb1][_0x401f('0x5f')]=_0x8f91a6[_0x3c2f4b]['id'],_0x8f91a6[_0x3c2f4b][_0x401f('0x5f')]=_0x8f91a6[_0x50fbb1]['id'];}else _0x8f91a6[_0x3c2f4b]['item'][_0x401f('0x89')]=_0x3c2f4b,_0x8f91a6[_0x3c2f4b]['item'][_0x401f('0xb6')]=_0x3c2f4b,_0x8f91a6[_0x3c2f4b]['pairId']=null;}_0x8f91a6[_0x3c2f4b]['markersStart']||(_0x8f91a6[_0x3c2f4b][_0x401f('0x2b')]=[],_0x8f91a6[_0x3c2f4b][_0x401f('0x8c')]=[]);}}[_0x401f('0x66')](_0x5b0093,_0xfc4b33){const _0x2ac775=_0x5b0093[_0x401f('0xc6')](_0x241425=>!_0x241425[_0x401f('0x29')]);for(let _0xe44451=0x0;_0xe44451<_0xfc4b33['length'];_0xe44451++)_0xfc4b33[_0xe44451][_0x401f('0x29')]&&(_0x2ac775[_0xe44451][_0x401f('0x29')]=_0xfc4b33[_0xe44451][_0x401f('0x29')]);}[_0x401f('0x90')](_0x77b713){const _0x5d08be=JSON[_0x401f('0x9c')](_0x77b713),_0x3a7247=this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x93')]['document'],_0x5185e0=new _0x3a7bca(_0x3a7247,_0x5d08be[_0x401f('0x33')](_0x1412f6=>this[_0x401f('0x37')](_0x1412f6)));return this[_0x401f('0x52')]['data'][_0x401f('0x71')](_0x5185e0);}[_0x401f('0x37')](_0x4f289c){const _0x2c4966=this[_0x401f('0x52')]['editing'][_0x401f('0x93')][_0x401f('0x111')];if(_0x401f('0x84')==typeof _0x4f289c)return new _0x1eda4c(_0x2c4966,_0x4f289c);{const _0x5ed778=_0x4f289c['children'][_0x401f('0x33')](_0x93b079=>this[_0x401f('0x37')](_0x93b079));return new(tt[_0x4f289c[(_0x401f('0x35'))]]||_0x58e33a)(_0x2c4966,_0x4f289c['name'],_0x4f289c['attributes'],_0x5ed778);}}[_0x401f('0xca')](_0x210683,_0x221495=null){const _0x11f19d=this[_0x401f('0xd6')][_0x401f('0x114')](_0x210683),_0x2219c8=_0x221495?this[_0x401f('0xd6')][_0x401f('0x114')](_0x221495):null,_0x267d12=this[_0x401f('0xdf')](_0x11f19d,_0x2219c8),_0x5cb9a0=_0x267d12[_0x267d12['length']-0x1],_0x247c3b=new Map(),_0x55e69d={'model':{},'attributes':{},'changes':[]},_0x13e732=new Set(),_0xfe9dae=new Map();for(let _0x3da583=_0x267d12[_0x401f('0x117')]-0x1;_0x3da583>=0x0;_0x3da583--){const _0x497078=_0x267d12[_0x3da583];for(const _0x24f917 of Object[_0x401f('0x6e')](_0x497078[_0x401f('0x70')]))if(_0x497078[_0x401f('0x70')][_0x24f917][_0x401f('0x92')]){const _0x54ab33=_0x497078[_0x401f('0x70')][_0x24f917][_0x401f('0x92')];_0x54ab33[_0x401f('0xdc')]?(_0x13e732[_0x401f('0xbf')](_0x24f917),_0xfe9dae[_0x401f('0xc')](_0x24f917)&&_0xfe9dae[_0x401f('0xb3')](_0x24f917)['userId']==_0x54ab33['userId']?_0xfe9dae[_0x401f('0xd7')](_0x24f917):_0xfe9dae[_0x401f('0xf0')](_0x24f917,_0x54ab33)):_0xfe9dae[_0x401f('0xc')](_0x24f917)?(_0x13e732['delete'](_0x24f917),_0xfe9dae[_0x401f('0xd7')](_0x24f917)):(_0x13e732['add'](_0x24f917),_0xfe9dae[_0x401f('0xf0')](_0x24f917,_0x54ab33));}else _0x13e732[_0x401f('0xbf')](_0x24f917);}for(const _0x19c9bf of _0x13e732){const _0x4f88cc=_0xfe9dae['has'](_0x19c9bf)&&!_0xfe9dae[_0x401f('0xb3')](_0x19c9bf)[_0x401f('0xdc')];let _0x273a7c=_0x4f88cc?_0x267d12[_0x401f('0x117')]-0x1:0x0;const _0x57cf88=_0x4f88cc?-0x1:0x1;for(;_0x267d12[_0x273a7c];){const _0x4d752f=_0x267d12[_0x273a7c];if(_0x4d752f[_0x401f('0x70')][_0x19c9bf]){const _0x5d3a26=_0x4f88cc?_0x4d752f[_0x401f('0x70')][_0x19c9bf][_0x401f('0xbe')]:_0x4d752f[_0x401f('0x70')][_0x19c9bf][_0x401f('0x32')];_0x55e69d[_0x401f('0x10f')][_0x19c9bf]=_0x5d3a26?_0x428693(_0x5d3a26):{};break;}_0x273a7c+=_0x57cf88;}}for(const _0x1f4ac1 of _0x267d12){_0x1f4ac1[_0x401f('0x40')]={};for(const _0x224ae4 of _0x1f4ac1[_0x401f('0xe8')])_0x247c3b['set'](_0x224ae4['id'],_0x224ae4);for(const _0x28b41e of _0x13e732){const _0x4f7df6=_0x1f4ac1['diffData'][_0x28b41e]?_0x1f4ac1[_0x401f('0x70')][_0x28b41e][_0x401f('0x91')]:'[]',_0x116104=_0x1f4ac1[_0x401f('0x70')][_0x28b41e]?_0x1f4ac1[_0x401f('0x70')][_0x28b41e][_0x401f('0xfe')]:'[]';_0x1f4ac1[_0x401f('0x40')][_0x28b41e]={'insertions':this['_makeModelFromViewString'](_0x4f7df6),'deletions':this['_makeModelFromViewString'](_0x116104)};}}for(const _0x4feeb0 of _0x13e732){let _0x25dd86=null,_0x1b25d2=0x0;const _0x576491=new Map(Array[_0x401f('0xd')](_0x11f19d[_0x401f('0x40')][_0x4feeb0][_0x401f('0x91')][_0x401f('0xed')])[_0x401f('0xc6')](([_0x429f81])=>!_0x429f81['startsWith']('revision:')));let _0x4c5c82=0x0;for(const _0x23ff09 of _0x267d12){const _0x5740e2=this[_0x401f('0x5c')](_0x23ff09[_0x401f('0x40')][_0x4feeb0][_0x401f('0x91')]);_0x23ff09==_0x11f19d?(_0x25dd86=_0x5740e2,_0x1b25d2=_0x25dd86[_0x401f('0x117')],_0x25dd86['forEach'](_0x55e5ca=>{_0x55e5ca['id']=_0x4c5c82++;}),this[_0x401f('0x10b')](_0x25dd86)):this[_0x401f('0x66')](_0x25dd86,_0x5740e2);const _0xfa09bb=_0x25dd86['filter'](_0x4e34c5=>!_0x4e34c5[_0x401f('0x29')])['map'](_0x5b0758=>_0x5b0758['id']);let _0x38183e=0x0;const _0x5459bf=this['_makeTape'](_0x23ff09['model'][_0x4feeb0][_0x401f('0xfe')]);_0x5459bf['forEach'](_0x434bad=>{_0x434bad['isRemoved']?_0x434bad['id']=_0x1b25d2++:_0x434bad['id']=_0xfa09bb[_0x38183e++];}),this[_0x401f('0x10b')](_0x5459bf),this['_setDistance'](_0x25dd86,'isAdded'),this['_setDistance'](_0x5459bf,_0x401f('0x110')),_0x23ff09==_0x11f19d&&this[_0x401f('0xbb')](_0x25dd86,_0x576491),_0x25dd86=this[_0x401f('0xb')](_0x25dd86,_0x5459bf),this[_0x401f('0xc2')](_0x25dd86),this[_0x401f('0x11b')](_0x25dd86,_0x401f('0x110'));}_0x25dd86=_0x25dd86[_0x401f('0xc6')](_0x309969=>!(_0x309969[_0x401f('0x29')]&&_0x309969[_0x401f('0x110')]));const _0x276b8a=new Map(_0x5cb9a0[_0x401f('0x40')][_0x4feeb0][_0x401f('0xfe')][_0x401f('0xed')]),_0x316a76=new Set(_0x576491[_0x401f('0x6e')]());for(const _0x10194f of _0x276b8a[_0x401f('0x6e')]())_0x316a76['delete'](_0x10194f);this[_0x401f('0x109')](_0x25dd86,_0x316a76),this[_0x401f('0x9f')](_0x25dd86),_0x25dd86=this[_0x401f('0xcf')](_0x25dd86),_0x25dd86=this[_0x401f('0x61')](_0x25dd86),_0x25dd86=this['_removeUnsupportedChanges'](_0x25dd86);const {root:_0x1ddb26,changes:_0x2a885d}=this['_makeModelFromTape'](_0x25dd86,_0x247c3b,_0x4feeb0);_0x55e69d[_0x401f('0x40')][_0x4feeb0]=_0x1ddb26;const _0x1ad4cf=_0xfe9dae[_0x401f('0xb3')](_0x4feeb0);if(_0x1ad4cf){const _0x42ac99=_0x247c3b[_0x401f('0xb3')](_0x1ad4cf['userId']),_0x423e9e=new _0x59d887({'author':_0x42ac99,'type':_0x1ad4cf[_0x401f('0xdc')]?_0x401f('0xbf'):_0x401f('0xf9'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4feeb0});_0x2a885d[_0x401f('0x112')](_0x423e9e),_0x55e69d[_0x401f('0x10f')][_0x4feeb0][_0x401f('0x3b')]=_0x423e9e['id'];}_0x55e69d[_0x401f('0xd5')]=_0x55e69d['changes'][_0x401f('0x4e')](_0x2a885d);}return _0x55e69d;}[_0x401f('0xbb')](_0x537a5e,_0x2605e9){for(let _0xe8ce24=0x0;_0xe8ce24<_0x537a5e[_0x401f('0x117')];_0xe8ce24++)for(const [_0x540d6c,_0x270a37]of _0x2605e9)_0x270a37[_0x401f('0x101')][_0x401f('0x2a')](_0x537a5e[_0xe8ce24][_0x401f('0x12')])&&_0x537a5e[_0xe8ce24]['markersStart'][_0x401f('0x38')](_0x540d6c),_0x270a37['end'][_0x401f('0x2a')](_0x537a5e[_0xe8ce24][_0x401f('0x5a')])&&_0x537a5e[_0xe8ce24][_0x401f('0x8c')][_0x401f('0x38')](_0x540d6c);}[_0x401f('0xb')](_0x1247ec,_0x1c1537){let _0x3c2a8a=[],_0x5cd45c=0x0,_0x1dcb66=0x0;for(;_0x5cd45c<_0x1247ec[_0x401f('0x117')]||_0x1dcb66<_0x1c1537['length'];){const _0x29ac51=_0x1247ec[_0x5cd45c]||{},_0x96913c=_0x1c1537[_0x1dcb66]||{};if(_0x29ac51['id']==_0x96913c['id'])_0x5cd45c++,_0x1dcb66++,_0x3c2a8a[_0x401f('0x38')](_0x29ac51);else{if(_0x96913c['isRemoved']&&_0x29ac51[_0x401f('0x29')]){const {commonTape:_0x14178c,iEnd:_0x1457be,jEnd:_0x29256a}=this[_0x401f('0xc0')](_0x1247ec,_0x5cd45c,_0x1c1537,_0x1dcb66);_0x3c2a8a=_0x3c2a8a[_0x401f('0x4e')](_0x14178c),_0x5cd45c=_0x1457be,_0x1dcb66=_0x29256a;}else _0x96913c['isRemoved']?(_0x1dcb66++,_0x3c2a8a['push'](_0x96913c)):(_0x5cd45c++,_0x3c2a8a[_0x401f('0x38')](_0x29ac51));}}return _0x3c2a8a;}[_0x401f('0x109')](_0x53cdb6,_0x234c1f){const _0x47cdf8=[];for(let _0x111905=0x0;_0x111905<_0x53cdb6['length'];_0x111905++){for(let _0x12925f=0x0;_0x12925f<_0x53cdb6[_0x111905][_0x401f('0x2b')][_0x401f('0x117')];_0x12925f++){const _0x705a80=_0x53cdb6[_0x111905][_0x401f('0x2b')][_0x12925f];if(!_0x234c1f[_0x401f('0xc')](_0x705a80))continue;const {group:_0x1caa11,type:_0x2c337f,authorId:_0x40e16c}=_0x51a15a(_0x705a80);'revision-suggestion'!=_0x1caa11||'insertion'!=_0x2c337f&&_0x401f('0x3f')!=_0x2c337f||(_0x47cdf8[_0x401f('0x112')]({'type':_0x2c337f,'name':_0x705a80,'userId':_0x40e16c}),_0x53cdb6[_0x111905][_0x401f('0x2b')][_0x401f('0x62')](_0x12925f,0x1),_0x12925f--);}_0x33a1f1(_0x53cdb6[_0x111905]);for(let _0x10693d=0x0;_0x10693d<_0x53cdb6[_0x111905][_0x401f('0x8c')][_0x401f('0x117')];_0x10693d++){const _0x48d9f9=_0x53cdb6[_0x111905][_0x401f('0x8c')][_0x10693d];if(!_0x234c1f[_0x401f('0xc')](_0x48d9f9))continue;const {group:_0xe52f63,type:_0x454901}=_0x51a15a(_0x48d9f9);if(_0x401f('0x11c')!=_0xe52f63||_0x401f('0x13')!=_0x454901&&_0x401f('0x3f')!=_0x454901)continue;_0x53cdb6[_0x111905][_0x401f('0x8c')]['splice'](_0x10693d,0x1),_0x10693d--;const _0xcfc8b=_0x47cdf8[_0x401f('0x113')](_0x3ea4fe=>_0x3ea4fe[_0x401f('0xaf')]==_0x48d9f9);_0xcfc8b>-0x1&&_0x47cdf8[_0x401f('0x62')](_0xcfc8b,0x1);}}function _0x51a15a(_0x52786a){const _0xe0cef4=_0x52786a[_0x401f('0x64')](':');return{'group':_0xe0cef4[0x0],'type':_0xe0cef4[0x1],'subType':_0xe0cef4[_0x401f('0x117')]>=0x5?_0xe0cef4[0x2]:null,'id':_0xe0cef4['length']<0x5?_0xe0cef4[0x2]:_0xe0cef4[0x3],'authorId':_0xe0cef4['length']<0x5?_0xe0cef4[0x3]:_0xe0cef4[0x4],'markerCount':0x6==_0xe0cef4[_0x401f('0x117')]?_0xe0cef4[0x5]:null};}function _0x33a1f1(_0x3b945b){for(let _0x4eb5c6=0x0;_0x4eb5c6<_0x47cdf8[_0x401f('0x117')];_0x4eb5c6++){if(_0x3b945b[_0x401f('0x29')]&&_0x401f('0x13')==_0x47cdf8[_0x4eb5c6][_0x401f('0x35')])return _0x3b945b[_0x401f('0xac')]=_0x47cdf8[_0x4eb5c6],void delete _0x3b945b[_0x401f('0x29')];if(!_0x3b945b[_0x401f('0x29')]&&!_0x3b945b['isRemoved']&&'deletion'==_0x47cdf8[_0x4eb5c6][_0x401f('0x35')])return void(_0x3b945b[_0x401f('0x7a')]=_0x47cdf8[_0x4eb5c6]);}}}['_setDistance'](_0x1ec75f,_0x4b8075){let _0x49f9d9=0x0,_0x2209a9=!0x1;const _0x5636fe=new Map();for(const _0x5f26f5 of _0x1ec75f)_0x5f26f5[_0x4b8075]?_0x2209a9&&(_0x49f9d9++,_0x2209a9=!0x1):(_0x49f9d9++,_0x2209a9=!0x0),_0x5636fe[_0x401f('0xf0')](_0x5f26f5['id'],_0x49f9d9);for(let _0xe504a0=0x0;_0xe504a0<_0x1ec75f['length'];_0xe504a0++){if(_0x401f('0x110')==_0x4b8075&&_0x1ec75f[_0xe504a0][_0x401f('0x29')]||_0x401f('0x29')==_0x4b8075&&_0x1ec75f[_0xe504a0][_0x401f('0x110')])continue;if(_0x401f('0xa6')==_0x1ec75f[_0xe504a0][_0x401f('0x35')]){_0x1ec75f[_0xe504a0][_0x401f('0x7b')]=0x0;continue;}const _0x3014c0=_0x5636fe[_0x401f('0xb3')](_0x1ec75f[_0xe504a0]['pairId']),_0x295edd=_0x5636fe[_0x401f('0xb3')](_0x1ec75f[_0xe504a0]['id']);_0x1ec75f[_0xe504a0][_0x401f('0x7b')]=_0x3014c0-_0x295edd;}}[_0x401f('0xdf')](_0x5f54b8,_0xfca3b3,_0x7c9005=!0x1){const _0x53627c=[];let _0x1f0d84=this['repository']['getIndex'](_0x5f54b8),_0x359731=this[_0x401f('0xd6')][_0x401f('0x118')](_0xfca3b3);for(-0x1==_0x359731&&(_0x359731=this['repository'][_0x401f('0x39')][_0x401f('0x117')],_0x7c9005=!0x1);_0x1f0d84<_0x359731;)_0x53627c['push'](this['repository'][_0x401f('0x114')](_0x1f0d84)),_0x1f0d84++;return _0x7c9005&&_0x53627c[_0x401f('0x38')](this[_0x401f('0xd6')]['getRevision'](_0x1f0d84)),_0x53627c;}['_threeWayMerge'](_0x123e23,_0x4c9dd8,_0x22f2de,_0x5e6eeb){const _0x13981c=this[_0x401f('0x52')][_0x401f('0x40')]['schema'];let _0x7f6dbb=_0x4c9dd8;for(;_0x123e23[_0x7f6dbb]&&_0x123e23[_0x7f6dbb][_0x401f('0x29')];)_0x7f6dbb++;let _0x49e858=_0x5e6eeb;for(;_0x22f2de[_0x49e858]&&_0x22f2de[_0x49e858][_0x401f('0x110')];)_0x49e858++;_0x1d535d(_0x123e23,_0x4c9dd8,_0x7f6dbb),_0x1d535d(_0x22f2de,_0x5e6eeb,_0x49e858);const _0xd99a36=_0x22f2de[_0x401f('0x54')](_0x5e6eeb,_0x49e858)[_0x401f('0x4e')](_0x123e23[_0x401f('0x54')](_0x4c9dd8,_0x7f6dbb));return _0xd99a36[_0x401f('0xb5')]((_0x1a2e25,_0x28b7c1)=>_0x1a2e25[_0x401f('0x6b')]!=_0x28b7c1['side']?_0x1a2e25['side']-_0x28b7c1[_0x401f('0x6b')]:_0x1a2e25[_0x401f('0x102')]!=_0x28b7c1['level']?_0x1a2e25[_0x401f('0x102')]-_0x28b7c1[_0x401f('0x102')]:_0x1a2e25[_0x401f('0x7b')]!=_0x28b7c1[_0x401f('0x7b')]?_0x28b7c1['distance']-_0x1a2e25[_0x401f('0x7b')]:!!_0x1a2e25[_0x401f('0x29')]!=!!_0x28b7c1[_0x401f('0x29')]?-0x1==_0x1a2e25[_0x401f('0x6b')]||0x0==_0x1a2e25[_0x401f('0x6b')]?_0x1a2e25[_0x401f('0x29')]?-0x1:0x1:_0x1a2e25['isAdded']?0x1:-0x1:_0x1a2e25[_0x401f('0x3')]-_0x28b7c1[_0x401f('0x3')]),{'commonTape':_0xd99a36,'iEnd':_0x7f6dbb,'jEnd':_0x49e858};function _0x1d535d(_0x465a81,_0x11f231,_0x71c2b0){let _0x4a6efe=-0x1,_0x328884=Number['POSITIVE_INFINITY'],_0x145ef1=!0x0;for(let _0x5990f6=_0x11f231;_0x5990f6<_0x71c2b0;_0x5990f6++)if(_0x13981c[_0x401f('0x21')](_0x465a81[_0x5990f6][_0x401f('0x85')])||(_0x145ef1=!0x1),_0x465a81[_0x5990f6][_0x401f('0x85')]['startIndex']<_0x11f231&&(_0x4a6efe=_0x5990f6),_0x465a81[_0x5990f6][_0x401f('0x85')][_0x401f('0xb6')]>=_0x71c2b0){_0x328884=_0x5990f6;break;}_0x145ef1&&(_0x4a6efe=_0x71c2b0-0x1);for(let _0x1819e3=_0x11f231;_0x1819e3<_0x71c2b0;_0x1819e3++)_0x465a81[_0x1819e3][_0x401f('0x6b')]=_0x1819e3<=_0x4a6efe?-0x1:_0x1819e3<_0x328884?0x0:0x1,_0x465a81[_0x1819e3][_0x401f('0x3')]=_0x1819e3;let _0x42dda4=0x0;for(let _0x441d64=_0x11f231;_0x441d64<=_0x4a6efe;_0x441d64++)0x0==_0x465a81[_0x441d64][_0x401f('0x7b')]?_0x465a81[_0x441d64]['level']=_0x42dda4:(_0x42dda4++,_0x465a81[_0x441d64][_0x401f('0x102')]=_0x42dda4,_0x42dda4++);for(let _0x20bbce=_0x11f231;_0x20bbce<_0x71c2b0;_0x20bbce++)0x0==_0x465a81[_0x20bbce][_0x401f('0x6b')]&&(_0x465a81[_0x20bbce][_0x401f('0x102')]=_0x42dda4);_0x42dda4=0x0;for(let _0x4a642a=_0x71c2b0-0x1;_0x4a642a>=_0x328884;_0x4a642a--)0x0==_0x465a81[_0x4a642a]['distance']?_0x465a81[_0x4a642a]['level']=_0x42dda4:(_0x42dda4--,_0x465a81[_0x4a642a][_0x401f('0x102')]=_0x42dda4,_0x42dda4--);}}[_0x401f('0x9f')](_0x51ef10){const _0x57e2dc=new Map(),_0x518de4=this[_0x401f('0x52')][_0x401f('0x40')]['schema'];for(let _0x39ff60=0x1;_0x39ff60<_0x51ef10[_0x401f('0x117')];_0x39ff60++){let _0x5b1a3f,_0x65a3,_0x2663f0;const _0x465713=_0x51ef10[_0x39ff60],_0x4f6f32=_0x51ef10[_0x39ff60-0x1];if('text'==_0x465713[_0x401f('0x35')])continue;if(_0x465713[_0x401f('0x35')]!=_0x4f6f32[_0x401f('0x35')])continue;if(!_0x518de4[_0x401f('0xd4')](_0x4f6f32['item'])||_0x518de4['isLimit'](_0x4f6f32[_0x401f('0x85')]))continue;if(!_0x518de4[_0x401f('0xd4')](_0x465713[_0x401f('0x85')])||_0x518de4[_0x401f('0x6d')](_0x465713[_0x401f('0x85')]))continue;if((_0x51ef10[_0x39ff60][_0x401f('0x29')]||_0x51ef10[_0x39ff60][_0x401f('0xac')])&&_0x51ef10[_0x39ff60-0x1][_0x401f('0x110')])_0x5b1a3f=_0x51ef10[_0x39ff60],_0x65a3=_0x51ef10[_0x39ff60-0x1],_0x2663f0=_0x39ff60-0x1;else{if(!_0x51ef10[_0x39ff60][_0x401f('0x110')]||!_0x51ef10[_0x39ff60-0x1][_0x401f('0x29')]&&!_0x51ef10[_0x39ff60-0x1][_0x401f('0xac')])continue;_0x5b1a3f=_0x51ef10[_0x39ff60-0x1],_0x65a3=_0x51ef10[_0x39ff60],_0x2663f0=_0x39ff60;}const _0x39162f=_0x5b1a3f[_0x401f('0x102')]==_0x65a3[_0x401f('0x102')],_0x53cf08=Math[_0x401f('0x47')](_0x5b1a3f[_0x401f('0x102')])<Math[_0x401f('0x47')](_0x65a3['level'])&&0x0==_0x65a3['distance'];(_0x39162f||_0x53cf08)&&(_0x57e2dc[_0x401f('0xf0')](_0x65a3['id'],_0x5b1a3f['id']),_0x51ef10['splice'](_0x2663f0,0x1),_0x39ff60--,_0x5b1a3f[_0x401f('0x29')]=!0x1);}for(let _0x4f4398=0x0;_0x4f4398<_0x51ef10[_0x401f('0x117')];_0x4f4398++)_0x57e2dc[_0x401f('0xc')](_0x51ef10[_0x4f4398][_0x401f('0x5f')])&&(_0x51ef10[_0x4f4398][_0x401f('0x5f')]=_0x57e2dc[_0x401f('0xb3')](_0x51ef10[_0x4f4398][_0x401f('0x5f')]));}[_0x401f('0xcf')](_0x38c34c){const _0x50e0f3=new Set(_0x38c34c[_0x401f('0x33')](_0x23b696=>_0x23b696['id']));for(let _0x39d84a=0x0;_0x39d84a<_0x38c34c[_0x401f('0x117')];_0x39d84a++)_0x50e0f3['has'](_0x38c34c[_0x39d84a]['pairId'])||0x0==_0x38c34c[_0x39d84a][_0x401f('0x7b')]||(_0x38c34c[_0x39d84a][_0x401f('0xf7')]=!0x0);return _0x38c34c['filter'](_0x13f040=>!_0x13f040['isIncorrect']);}[_0x401f('0x61')](_0xc84770){const _0x37a2c0=new Set();for(let _0x796233=0x0;_0x796233<_0xc84770[_0x401f('0x117')];_0x796233++){if(_0x37a2c0['has'](_0xc84770[_0x796233]['id'])&&_0xc84770[_0x796233][_0x401f('0x110')]&&(_0xc84770[_0x796233][_0x401f('0xf7')]=!0x0),_0xc84770[_0x796233]['isIncorrect'])continue;if(0x0==_0xc84770[_0x796233][_0x401f('0x7b')])continue;if(_0x401f('0x86')!=_0xc84770[_0x796233]['type'])continue;if(null==_0xc84770[_0x796233][_0x401f('0x5f')])continue;let _0x18e840=_0x796233+0x1,_0x3c3516=0x0;for(;_0xc84770[_0x18e840]['id']!=_0xc84770[_0x796233]['pairId'];)'elementStart'==_0xc84770[_0x18e840][_0x401f('0x35')]?_0x3c3516++:_0x401f('0x17')==_0xc84770[_0x18e840][_0x401f('0x35')]&&_0x3c3516--,_0x18e840++;if(0x0!=_0x3c3516){if(_0xc84770[_0x796233][_0x401f('0x110')])_0xc84770[_0x796233][_0x401f('0xf7')]=!0x0;else for(;_0x18e840!=_0x796233;)_0xc84770[_0x18e840][_0x401f('0x110')]&&0x0!=_0xc84770[_0x18e840][_0x401f('0x7b')]&&(_0xc84770[_0x18e840][_0x401f('0xf7')]=!0x0,_0x37a2c0[_0x401f('0xbf')](_0xc84770[_0x18e840]['pairId'])),_0x18e840--;}}return _0xc84770[_0x401f('0xc6')](_0x28db53=>!_0x28db53['isIncorrect']);}[_0x401f('0xa2')](_0xc14519){const _0x5bb7e8=this[_0x401f('0x52')]['model'][_0x401f('0x11e')];for(let _0x5078a0=0x0;_0x5078a0<_0xc14519[_0x401f('0x117')];_0x5078a0++){if(!(_0xc14519[_0x5078a0][_0x401f('0x29')]||_0xc14519[_0x5078a0][_0x401f('0xac')]||_0xc14519[_0x5078a0][_0x401f('0x110')]||_0xc14519[_0x5078a0]['isRemoveSuggestion']))continue;if(0x0==_0xc14519[_0x5078a0][_0x401f('0x7b')])continue;const _0x4518bd=_0xc14519[_0x5078a0][_0x401f('0x85')];_0x5bb7e8['isBlock'](_0x4518bd)||_0x5bb7e8[_0x401f('0x6d')](_0x4518bd)||(_0xc14519[_0x5078a0][_0x401f('0x29')]&&delete _0xc14519[_0x5078a0][_0x401f('0x29')],_0xc14519[_0x5078a0]['isAddSuggestion']&&delete _0xc14519[_0x5078a0][_0x401f('0xac')],_0xc14519[_0x5078a0][_0x401f('0x7a')]&&delete _0xc14519[_0x5078a0][_0x401f('0x7a')],_0xc14519[_0x5078a0][_0x401f('0x110')]&&(_0xc14519[_0x5078a0][_0x401f('0xf7')]=!0x0));}return _0xc14519[_0x401f('0xc6')](_0x2d7b15=>!_0x2d7b15['isIncorrect']);}[_0x401f('0x15')](_0x397685,_0x2c317c,_0x404824){const _0x1163ed=new _0x4d57ae(),_0x5283cb=[],_0x4eab23=new Map(),_0x5d6b7f=this['editor'][_0x401f('0x40')],_0x139625=_0x5d6b7f[_0x401f('0x11e')],_0x35715b=[_0x1163ed],_0x122ff1={},_0x216221={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1870ed=null;const _0x4e04e6=[0x0];for(let _0x1f6640=0x0;_0x1f6640<_0x397685[_0x401f('0x117')];_0x1f6640++){let _0x1969c8,_0x2f40d7;if(_0x401f('0x86')===_0x397685[_0x1f6640][_0x401f('0x35')]){_0x1969c8=_0x5d6b7f[_0x401f('0x2f')](_0x1163ed,_0x4e04e6);const _0x333f2d=new _0x596da7(_0x397685[_0x1f6640][_0x401f('0x85')][_0x401f('0xaf')],_0x397685[_0x1f6640][_0x401f('0x85')][_0x401f('0xf5')]());_0x35715b[0x0][_0x401f('0xd2')](_0x333f2d),_0x4e04e6[_0x401f('0x38')](0x0),_0x35715b[_0x401f('0x112')](_0x333f2d),_0x2f40d7=_0x5d6b7f[_0x401f('0x2f')](_0x1163ed,_0x4e04e6),_0x1870ed=null;}else{if('elementEnd'===_0x397685[_0x1f6640]['type'])_0x35715b[_0x401f('0x74')](),_0x1969c8=_0x5d6b7f[_0x401f('0x2f')](_0x1163ed,_0x4e04e6),_0x4e04e6['pop'](),_0x4e04e6[_0x4e04e6[_0x401f('0x117')]-0x1]++,_0x2f40d7=_0x5d6b7f['createPositionFromPath'](_0x1163ed,_0x4e04e6),_0x1870ed=null;else{if(_0x1969c8=_0x5d6b7f[_0x401f('0x2f')](_0x1163ed,_0x4e04e6),_0x1870ed&&_0xdd9690(_0x1870ed,_0x397685[_0x1f6640][_0x401f('0x85')]))_0x1870ed[_0x401f('0xec')]+=_0x397685[_0x1f6640][_0x401f('0x85')][_0x401f('0x81')];else{const _0x3f7f83=new _0x36f440(_0x397685[_0x1f6640]['item'][_0x401f('0x81')],_0x397685[_0x1f6640][_0x401f('0x85')]['getAttributes']());_0x35715b[0x0][_0x401f('0xd2')](_0x3f7f83),_0x1870ed=_0x3f7f83;}_0x4e04e6[_0x4e04e6[_0x401f('0x117')]-0x1]+=_0x397685[_0x1f6640][_0x401f('0x85')][_0x401f('0xb2')],_0x2f40d7=_0x5d6b7f['createPositionFromPath'](_0x1163ed,_0x4e04e6);}}for(const _0x419328 of _0x397685[_0x1f6640][_0x401f('0x2b')])_0x4eab23['set'](_0x419328,{'start':_0x1969c8,'end':null});_0x28d996(_0x401f('0x7a'),_0x1f6640,_0x1969c8,_0x2f40d7),_0x28d996(_0x401f('0xac'),_0x1f6640,_0x1969c8,_0x2f40d7),_0x28d996(_0x401f('0x110'),_0x1f6640,_0x1969c8,_0x2f40d7),_0x28d996(_0x401f('0x29'),_0x1f6640,_0x1969c8,_0x2f40d7);for(const _0x26796e of _0x397685[_0x1f6640][_0x401f('0x8c')]){_0x4eab23[_0x401f('0xb3')](_0x26796e)['end']=_0x2f40d7;}}for(const [_0x3ec828,_0x305ce3]of _0x4eab23){const _0x2a80b4=this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0xf8')](_0x305ce3[_0x401f('0x101')],_0x305ce3[_0x401f('0x46')]);_0x1163ed['markers'][_0x401f('0xf0')](_0x3ec828,_0x2a80b4);}return _0x5283cb[_0x401f('0xb5')]((_0x422f5f,_0x38a072)=>{const _0x30a78b=_0x1163ed[_0x401f('0xed')][_0x401f('0xb3')](_0x401f('0xcc')+_0x422f5f['id']),_0x40efe3=_0x1163ed[_0x401f('0xed')][_0x401f('0xb3')]('revision:'+_0x38a072['id']);return _0x30a78b[_0x401f('0x101')]['isBefore'](_0x40efe3[_0x401f('0x101')])?-0x1:_0x30a78b[_0x401f('0x101')][_0x401f('0x30')](_0x40efe3[_0x401f('0x101')])?0x1:_0x30a78b[_0x401f('0x46')]['isBefore'](_0x40efe3[_0x401f('0x46')])?-0x1:_0x30a78b[_0x401f('0x46')][_0x401f('0x30')](_0x40efe3[_0x401f('0x46')])?0x1:'add'===_0x422f5f[_0x401f('0x35')]?-0x1:0x1;}),{'root':_0x1163ed,'changes':_0x5283cb};function _0x28d996(_0x570bce,_0x4cec31,_0x360a07,_0x1bb451){const _0x2be068=!!_0x397685[_0x4cec31][_0x570bce],_0x35c5b1=_0x2be068?_0x397685[_0x4cec31][_0x570bce][_0x401f('0x76')]:null,_0x23fbbd=_0x4cec31===_0x397685[_0x401f('0x117')]-0x1,_0x3e6a54=_0x216221[_0x570bce][0x0],_0x3936b6=_0x139625[_0x401f('0x5b')](_0x397685[_0x4cec31][_0x401f('0x85')]);!_0x122ff1[_0x570bce]&&_0x2be068?_0x122ff1[_0x570bce]={'start':_0x360a07,'tapeItem':_0x397685[_0x4cec31],'userId':_0x35c5b1,'type':_0x570bce}:_0x122ff1[_0x570bce]&&!_0x2be068?(_0x122ff1[_0x570bce]['end']=_0x360a07,_0xbeaeab(_0x122ff1[_0x570bce]),_0x122ff1[_0x570bce]=null):_0x122ff1[_0x570bce]&&_0x2be068&&_0x122ff1[_0x570bce][_0x401f('0x76')]!==_0x35c5b1&&(_0x122ff1[_0x570bce]['end']=_0x360a07,_0x3e6a54&&_0x3e6a54[_0x401f('0x76')]===_0x122ff1[_0x570bce][_0x401f('0x76')]||_0xbeaeab(_0x122ff1[_0x570bce]),_0x122ff1[_0x570bce]={'start':_0x360a07,'tapeItem':_0x397685[_0x4cec31],'userId':_0x35c5b1,'type':_0x570bce}),_0x122ff1[_0x570bce]&&_0x3936b6&&(_0x401f('0x86')!==_0x397685[_0x4cec31][_0x401f('0x35')]||_0x3e6a54&&_0x3e6a54[_0x401f('0x76')]===_0x35c5b1||_0x216221[_0x570bce][_0x401f('0x112')]({'userId':_0x35c5b1,'object':_0x397685[_0x4cec31][_0x401f('0x85')],'change':_0x122ff1[_0x570bce]}),'elementEnd'===_0x397685[_0x4cec31]['type']&&_0x3e6a54&&_0x3e6a54[_0x401f('0xa4')]===_0x397685[_0x4cec31][_0x401f('0x85')]&&(_0x216221[_0x570bce]['shift'](),_0x122ff1[_0x570bce]=_0x3e6a54['change'])),_0x122ff1[_0x570bce]&&_0x23fbbd&&(_0x122ff1[_0x570bce][_0x401f('0x46')]=_0x1bb451,_0xbeaeab(_0x122ff1[_0x570bce]),_0x122ff1[_0x570bce]=null);}function _0xbeaeab({start:_0x967eea,end:_0x518272,tapeItem:_0x389677,userId:_0x235c6e,type:_0x338e09}){const _0x206f20=_0x389677[_0x401f('0x85')],_0x19b229=_0x5d6b7f[_0x401f('0x11e')][_0x401f('0xd4')](_0x206f20)&&!_0x5d6b7f[_0x401f('0x11e')][_0x401f('0x6d')](_0x206f20),_0x11f167=_0x967eea[_0x401f('0x75')]==_0x518272[_0x401f('0x58')]&&_0x518272[_0x401f('0x44')];if(_0x19b229&&_0x11f167)return;const _0x3460a8=_0x5d6b7f[_0x401f('0xf8')](_0x967eea,_0x518272),_0x506da4=_0x2c317c[_0x401f('0xb3')](_0x235c6e),_0x5f185a=new _0x59d887({'author':_0x506da4,'type':_0x401f('0x29')==_0x338e09||_0x401f('0xac')==_0x338e09?_0x401f('0xbf'):'remove','data':{'isSuggestion':_0x401f('0xac')==_0x338e09||_0x401f('0x7a')==_0x338e09},'createdAt':new Date(),'rootName':_0x404824});_0x5283cb['push'](_0x5f185a),_0x1163ed['markers'][_0x401f('0xf0')](_0x401f('0xcc')+_0x5f185a['id'],_0x3460a8);}function _0xdd9690(_0x5a0093,_0x258d89){const _0x19bc30=_0x5a0093[_0x401f('0xf5')](),_0x26db8a=_0x258d89['getAttributes']();for(const _0x449ab6 of _0x19bc30){if(_0x449ab6[0x1]!==_0x258d89[_0x401f('0x78')](_0x449ab6[0x0]))return!0x1;_0x26db8a[_0x401f('0x1e')]();}return _0x26db8a['next']()[_0x401f('0x36')];}}[_0x401f('0xff')](){this['editor'][_0x401f('0xe5')][_0x401f('0x50')](_0x401f('0xad'))[_0x401f('0xb7')]({'view':_0x401f('0x43')}),this[_0x401f('0x52')]['conversion'][_0x401f('0x50')](_0x401f('0x73'))[_0x401f('0x1c')]({'model':_0x401f('0x43'),'view':_0x347199=>{const _0x563bad=_0x347199[_0x401f('0x6a')][_0x401f('0x64')](':')[0x1],_0x461623=this['_getChangeFromId'](_0x563bad);if(!_0x461623)return null;const _0x25fe5c=_0x401f('0xbf')==_0x461623['type']?_0x401f('0x13'):_0x401f('0x3f'),_0x46634e=[_0x401f('0xfd'),_0x401f('0xb0')+_0x25fe5c];return _0x461623[_0x401f('0x81')][_0x401f('0x115')]&&_0x46634e['push']('ck-suggestion-marker-'+_0x25fe5c+_0x401f('0x45')),this[_0x401f('0x9b')]==_0x461623&&_0x46634e[_0x401f('0x38')]('ck-suggestion-marker--active'),{'classes':_0x46634e,'attributes':{'data-change-id':_0x563bad}};}}),this[_0x401f('0x52')][_0x401f('0xe5')]['for'](_0x401f('0xad'))[_0x401f('0xbf')](_0x132292=>{_0x132292['on'](_0x401f('0x4d'),(_0xf5a1bc,_0x483df4,_0x167400)=>{const _0x518c8e=_0x483df4[_0x401f('0x11a')][_0x401f('0x4a')](0x0);if(!_0x518c8e||!_0x518c8e['is'](_0x401f('0xf1'),_0x401f('0xd1')))return;if(!_0x167400[_0x401f('0x99')][_0x401f('0x9a')](_0x518c8e,{'attributes':[_0x401f('0xaa'),_0x401f('0x9e')]}))return;const _0x592013=_0x483df4[_0x401f('0xc4')]['start']['nodeAfter'];_0x167400[_0x401f('0x11')][_0x401f('0x94')]('vid_start',_0x518c8e[_0x401f('0x78')](_0x401f('0xaa')),_0x592013),_0x167400['writer'][_0x401f('0x94')]('vid_end',_0x518c8e[_0x401f('0x78')](_0x401f('0x9e')),_0x592013);},{'priority':'low'});}),this['editor'][_0x401f('0xe5')]['for'](_0x401f('0xad'))[_0x401f('0xbf')](_0x42866f=>{_0x42866f['on']('element',(_0x74ee9a,_0x5c2c63,_0x36d5f4)=>{if(!_0x36d5f4[_0x401f('0x99')][_0x401f('0x9a')](_0x5c2c63[_0x401f('0x11a')],{'attributes':[_0x401f('0xaa'),'vid_end']}))return;if(_0x5c2c63['modelRange'][_0x401f('0x18')])return;const _0x37859f=_0x5c2c63['modelRange'][_0x401f('0x101')][_0x401f('0x75')];_0x37859f['hasAttribute'](_0x401f('0xaa'))||_0x37859f['hasAttribute'](_0x401f('0xbc'))||(_0x36d5f4[_0x401f('0x11')][_0x401f('0x94')](_0x401f('0xaa'),_0x5c2c63[_0x401f('0x11a')][_0x401f('0x78')](_0x401f('0xaa')),_0x37859f),_0x36d5f4['writer'][_0x401f('0x94')](_0x401f('0x9e'),_0x5c2c63[_0x401f('0x11a')][_0x401f('0x78')](_0x401f('0x9e')),_0x37859f));},{'priority':'low'});}),this[_0x401f('0x52')][_0x401f('0xe5')][_0x401f('0x50')]('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x55c5b1=>_0x55c5b1[_0x401f('0x78')](_0x401f('0xbc'))}}),this[_0x401f('0x52')]['model'][_0x401f('0x11e')]['on'](_0x401f('0x7d'),(_0x861a3b,[,_0x4226fe])=>{['vid_start',_0x401f('0x9e'),_0x401f('0xbc')][_0x401f('0xa')](_0x4226fe)&&(_0x861a3b[_0x401f('0x24')]=!0x0,_0x861a3b['stop']());},{'priority':_0x401f('0xa5')}),this[_0x401f('0x52')][_0x401f('0xe5')][_0x401f('0x50')](_0x401f('0x0'))[_0x401f('0xbf')](_0x3c5ef1=>{_0x3c5ef1['on']('attribute:vid',(_0x2c78ff,_0x59833c,_0xdd6e1e)=>{if('\x20'!=_0x59833c[_0x401f('0x85')][_0x401f('0x81')]||_0x59833c[_0x401f('0x85')]['parent']['maxOffset']>0x1)return;if(!_0xdd6e1e[_0x401f('0x99')]['consume'](_0x59833c[_0x401f('0x85')],_0x2c78ff[_0x401f('0xaf')]))return;const _0x36790d=_0xdd6e1e['writer'],_0x4b7b76=_0xdd6e1e[_0x401f('0xc8')][_0x401f('0x8d')](_0x59833c['range']);_0x36790d['wrap'](_0x4b7b76,_0x36790d[_0x401f('0xe3')]('span'));});}),this[_0x401f('0x52')][_0x401f('0xe5')][_0x401f('0x50')]('dataDowncast')[_0x401f('0xc7')]({'model':_0x401f('0x43')}),this[_0x401f('0x52')]['editing'][_0x401f('0x31')]['on'](_0x401f('0x34'),function(_0xa626f){const _0x4e4da8=_0xa626f[_0x401f('0x7f')]['get'](_0x401f('0x7'));return(_0x105e5d,_0x536686,_0x184a35)=>{const _0x364cd9=_0x536686[_0x401f('0x6a')]['split'](':')[0x1],_0x304ddc=_0x4e4da8[_0x401f('0x57')](_0x364cd9);if(!_0x304ddc)return null;const _0x2d087b='add'==_0x304ddc[_0x401f('0x35')]?_0x401f('0x64'):'merge';if(!_0x184a35[_0x401f('0x99')][_0x401f('0x23')](_0x536686[_0x401f('0x25')],_0x105e5d['name']))return;const _0x21629a=_0x536686[_0x401f('0x25')][_0x401f('0xf3')](),_0x5b803d=_0x536686[_0x401f('0x25')]['start'],_0xb4b944=_0xa626f[_0x401f('0x40')][_0x401f('0x11e')];let _0x631a4a=null,_0x5ab460=null,_0x2d5175=!0x1,_0x31a5b3=!0x1;for(const _0x19c6da of _0x21629a){const _0x2c99e1=_0x19c6da[_0x401f('0x85')];_0x2d5175=_0x2d5175||_0xb4b944[_0x401f('0xb1')](_0x2c99e1);const _0x1c537b=_0x184a35[_0x401f('0xc8')][_0x401f('0x103')](_0x2c99e1);if(_0x1c537b&&_0x1c537b['getCustomProperty'](_0x401f('0x98')))return;_0x401f('0x17')==_0x19c6da[_0x401f('0x35')]&&(_0xb4b944[_0x401f('0xd4')](_0x2c99e1)&&!_0xb4b944[_0x401f('0x6d')](_0x2c99e1)&&(_0x2c99e1[_0x401f('0x26')]||_0x5b803d[_0x401f('0x60')]?_0x631a4a&&_0x631a4a[_0x401f('0x58')]==_0x2c99e1||(_0x631a4a=_0x2c99e1,_0x12c9ba(_0x19c6da['previousPosition']),_0x31a5b3=!0x0):_0x5ab460=_0x5ab460||_0x19c6da[_0x401f('0x12')]));}function _0x12c9ba(_0x2d7c93){const _0x1d1dd9=_0x184a35['writer'][_0x401f('0x97')](_0x401f('0x104'),{'class':'ck-suggestion-marker-'+_0x2d087b}),_0x5330e5=_0x184a35['mapper'][_0x401f('0xee')](_0x2d7c93);_0x304ddc['data'][_0x401f('0x115')]&&_0x184a35[_0x401f('0x11')][_0x401f('0x10d')](_0x401f('0xb0')+_0x2d087b+'-new',_0x1d1dd9),_0x4e4da8[_0x401f('0x9b')]==_0x304ddc&&_0x184a35[_0x401f('0x11')][_0x401f('0x10d')](_0x401f('0x8a'),_0x1d1dd9),_0x184a35['writer'][_0x401f('0x8f')](_0x5330e5,_0x1d1dd9),_0x184a35[_0x401f('0xc8')][_0x401f('0x106')](_0x1d1dd9,_0x536686[_0x401f('0x6a')]);}_0x2d5175||_0x31a5b3||!_0x5ab460||_0x12c9ba(_0x5ab460);};}(this[_0x401f('0x52')]),{'priority':'high'}),this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x31')]['on'](_0x401f('0xa7'),(_0x4dac48,_0xb62cdb,_0x2e9cf9)=>{const _0x73e767=_0x2e9cf9[_0x401f('0xc8')][_0x401f('0xfc')](_0xb62cdb['markerName']);if(_0x73e767)for(const _0x5d0f89 of _0x73e767)(_0x5d0f89[_0x401f('0xb8')](_0x401f('0x77'))||_0x5d0f89[_0x401f('0xb8')](_0x401f('0x116')))&&(_0x2e9cf9[_0x401f('0xc8')]['unbindElementFromMarkerName'](_0x5d0f89,_0xb62cdb[_0x401f('0x6a')]),_0x2e9cf9['writer'][_0x401f('0xf9')](_0x5d0f89));},{'priority':_0x401f('0x42')}),this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x31')]['on'](_0x401f('0x34'),(_0x2712f0,_0x42af78,_0x1b678f)=>{const _0x4c56ef=_0x42af78[_0x401f('0x6a')]['split'](':')[0x1],_0x4f3c40=this[_0x401f('0x57')](_0x4c56ef);if(!_0x4f3c40)return null;const _0x5ec920='add'==_0x4f3c40[_0x401f('0x35')]?_0x401f('0x64'):_0x401f('0x28');if(_0x1b678f[_0x401f('0x99')][_0x401f('0x23')](_0x42af78[_0x401f('0x25')],_0x2712f0[_0x401f('0xaf')]))for(const _0x3af900 of _0x42af78['markerRange']['getItems']()){if(!_0x3af900['is'](_0x401f('0xf1'),'softBreak'))continue;const _0x103e95=_0x1b678f[_0x401f('0x11')][_0x401f('0x97')]('span',{'class':_0x401f('0xb0')+_0x5ec920}),_0x29c6c6=_0x1b678f['mapper'][_0x401f('0xee')](this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0x10a')](_0x3af900));_0x4f3c40[_0x401f('0x81')][_0x401f('0x115')]&&_0x1b678f[_0x401f('0x11')][_0x401f('0x10d')]('ck-suggestion-marker-'+_0x5ec920+'-new',_0x103e95),this['activeChange']==_0x4f3c40&&_0x1b678f[_0x401f('0x11')]['addClass'](_0x401f('0x8a'),_0x103e95),_0x1b678f[_0x401f('0x11')][_0x401f('0x8f')](_0x29c6c6,_0x103e95),_0x1b678f['mapper'][_0x401f('0x106')](_0x103e95,_0x42af78[_0x401f('0x6a')]);}},{'priority':_0x401f('0x42')}),this[_0x401f('0x52')][_0x401f('0x40')]['document']['on']('change',()=>{this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x93')]['change'](_0x2e5be2=>{for(const _0x19dfdf of this[_0x401f('0x52')]['model'][_0x401f('0x111')][_0x401f('0x4b')]()){const _0xfe83c8=this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0x111')]['getRoot'](_0x19dfdf),_0x5ac629=this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x93')][_0x401f('0x111')]['getRoot'](_0x19dfdf);if(_0x5ac629){const _0x2c7ce5=_0xfe83c8[_0x401f('0x78')]('revisionHistoryAttachChange');if(_0x2e5be2['removeAttribute'](_0x401f('0x9d'),_0x5ac629),_0x2e5be2[_0x401f('0x55')](_0x401f('0xdd'),_0x5ac629),_0x2e5be2[_0x401f('0x55')]('ck-revision-history-root-remove',_0x5ac629),_0x2e5be2[_0x401f('0x55')](_0x401f('0x3a'),_0x5ac629),_0x2c7ce5){const _0x9f055b=this[_0x401f('0x57')](_0x2c7ce5);if(!_0x9f055b)return null;_0x2e5be2[_0x401f('0x94')]('data-change-id',_0x2c7ce5,_0x5ac629),_0x2e5be2[_0x401f('0x10d')]('ck-revision-history-root-'+_0x9f055b[_0x401f('0x35')],_0x5ac629),this['activeChange']==_0x9f055b&&_0x2e5be2['addClass'](_0x401f('0x3a'),_0x5ac629);}}}});}),this[_0x401f('0x52')]['conversion']['for'](_0x401f('0xad'))[_0x401f('0xb7')]({'view':'comment','model':_0x272c54=>_0x401f('0x100')+_0x272c54,'converterPriority':_0x401f('0xa5')}),this[_0x401f('0x52')][_0x401f('0xe5')][_0x401f('0x50')]('upcast')[_0x401f('0xb7')]({'view':_0x401f('0xf6'),'model':_0x23db11=>_0x401f('0x1f')+_0x23db11,'converterPriority':'highest'}),this['editor'][_0x401f('0xe5')][_0x401f('0x50')]('dataDowncast')[_0x401f('0xc7')]({'model':_0x401f('0x11c'),'view':_0x4daa8=>({'name':_0x401f('0x8')+_0x4daa8,'group':_0x401f('0x11c')}),'converterPriority':_0x401f('0xa5')}),this[_0x401f('0x52')]['conversion']['for'](_0x401f('0x73'))[_0x401f('0x1c')]({'model':'revision-suggestion','view':_0x485267=>{const _0x19a7cb=_0x485267[_0x401f('0x6a')]['split'](':')[0x1];return _0x401f('0x13')!=_0x19a7cb&&_0x401f('0x3f')!=_0x19a7cb?null:{'classes':[_0x401f('0x4c'),'ck-suggestion-preview-marker-'+_0x19a7cb]};}}),this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x31')]['on'](_0x401f('0x5'),et(this[_0x401f('0x52')],_0x401f('0x28')),{'priority':_0x401f('0x42')}),this['editor'][_0x401f('0xc9')][_0x401f('0x31')]['on'](_0x401f('0xeb'),et(this['editor'],'split'),{'priority':_0x401f('0x42')}),this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x31')]['on']('removeMarker:revision-suggestion',(_0x2b8737,_0x31daa4,_0x4ca2d8)=>{const _0xdcad59=_0x4ca2d8['mapper'][_0x401f('0xfc')](_0x31daa4['markerName']);if(_0xdcad59)for(const _0x13c382 of _0xdcad59)_0x13c382['is'](_0x401f('0x53'))&&(_0x4ca2d8[_0x401f('0xc8')][_0x401f('0x22')](_0x13c382,_0x31daa4['markerName']),_0x4ca2d8[_0x401f('0x11')][_0x401f('0xf9')](_0x13c382));},{'priority':'high'});}[_0x401f('0x57')](_0x3ab4d5){return this[_0x401f('0xe1')][_0x401f('0xb3')](_0x3ab4d5);}[_0x401f('0xef')](_0x512166){return this[_0x401f('0x5d')]&&this['_changeView']['destroy'](),this[_0x401f('0x5d')]=new _0x315e58(this[_0x401f('0x52')]['locale'],_0x512166),this[_0x401f('0x5d')];}[_0x401f('0x5e')](){this[_0x401f('0x52')][_0x401f('0x40')]['document']['selection'][_0x401f('0x69')]('revision'),this['on']('change:activeView',(_0x34f9fd,_0x43dee1,_0x16ca85,_0x49ef3d)=>{_0x49ef3d&&this['_balloon'][_0x401f('0xf9')](_0x49ef3d),_0x16ca85&&(this[_0x401f('0xa0')][_0x401f('0xbf')]({'view':_0x16ca85,'stackId':_0x401f('0xcd'),'position':{'target':()=>{const _0x519e47=this['editor'][_0x401f('0xc9')],_0x38cb97=this[_0x401f('0x57')](_0x16ca85[_0x401f('0xf4')]);let _0x39b903;if(_0x38cb97['data'][_0x401f('0x7e')]){const _0x30e0d0=_0x519e47[_0x401f('0x93')]['getDomRoot'](_0x38cb97[_0x401f('0xd8')]);_0x39b903=Array[_0x401f('0xd')](_0x30e0d0[_0x401f('0x41')]());}else{const _0x3b435e=this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0xed')][_0x401f('0xb3')](_0x401f('0xcc')+_0x16ca85[_0x401f('0xf4')]);_0x39b903=Array[_0x401f('0xd')](_0x519e47[_0x401f('0xc8')][_0x401f('0xfc')](_0x3b435e[_0x401f('0xaf')]))[_0x401f('0x33')](_0x49a5ee=>_0x519e47[_0x401f('0x93')][_0x401f('0x10')][_0x401f('0x2c')](_0x49a5ee))[_0x401f('0x33')](_0x18d2ec=>Array[_0x401f('0xd')](_0x18d2ec['getClientRects']()))[_0x401f('0xe4')]();}if(!this[_0x401f('0x4')])return _0x39b903[0x0];return _0x39b903[_0x401f('0x4f')](_0x4348d0=>_0x4348d0[_0x401f('0x105')]-0x3<=this[_0x401f('0x4')]['y']&&_0x4348d0[_0x401f('0x10c')]+0x3>=this[_0x401f('0x4')]['y']&&_0x4348d0[_0x401f('0xf')]-0x3<=this[_0x401f('0x4')]['x']&&_0x4348d0[_0x401f('0xb9')]+0x3>=this[_0x401f('0x4')]['x'])||_0x39b903[0x0];}}}),this[_0x401f('0xa0')]['showStack'](_0x401f('0xcd')));}),this['on'](_0x401f('0x82'),(_0x20f641,_0x5caa20,_0x14d248,_0x231463)=>{this[_0x401f('0xdb')]=_0x14d248?this['_getViewForChange'](_0x14d248):null,this[_0x401f('0x52')]['model'][_0x401f('0xe2')](()=>{const _0x2892d7=this['editor'][_0x401f('0xc9')];_0x231463&&(_0x231463[_0x401f('0x81')][_0x401f('0x7e')]?_0x2892d7['view'][_0x401f('0xe2')](_0x3b1a86=>{_0x3b1a86['removeClass'](_0x401f('0x3a'),_0x2892d7[_0x401f('0x93')][_0x401f('0x111')][_0x401f('0x63')](_0x231463[_0x401f('0xd8')]));}):_0x2892d7['reconvertMarker'](_0x401f('0xcc')+_0x231463['id'])),_0x14d248&&(_0x14d248[_0x401f('0x81')]['isOnRoot']?_0x2892d7[_0x401f('0x93')][_0x401f('0xe2')](_0x1afced=>{_0x1afced['addClass'](_0x401f('0x3a'),_0x2892d7[_0x401f('0x93')]['document']['getRoot'](_0x14d248['rootName']));}):_0x2892d7[_0x401f('0xb4')](_0x401f('0xcc')+_0x14d248['id']));});}),this['listenTo'](this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x93')][_0x401f('0x111')],_0x401f('0x3c'),(_0x507c91,_0x29b8e8)=>{if(this[_0x401f('0x9b')])return;const _0x20ead2=this[_0x401f('0xde')](_0x29b8e8['target']),_0xb930fa=this[_0x401f('0xe1')][_0x401f('0xb3')](_0x20ead2);_0xb930fa?(this[_0x401f('0x4')]={'x':_0x29b8e8[_0x401f('0xcb')]['x'],'y':_0x29b8e8[_0x401f('0xcb')]['y']},this['activeView']=this[_0x401f('0xef')](_0xb930fa)):(this[_0x401f('0x4')]=null,this[_0x401f('0xdb')]=null);}),this['listenTo'](this['editor'][_0x401f('0xc9')][_0x401f('0x93')]['document'],_0x401f('0x95'),(_0x5f3314,_0x3e0f30)=>{const _0x2c4553=this[_0x401f('0xde')](_0x3e0f30['target']),_0x4c5f83=this['_changeIdToChange'][_0x401f('0xb3')](_0x2c4553);_0x4c5f83?(this[_0x401f('0x4')]={'x':_0x3e0f30[_0x401f('0xcb')]['x'],'y':_0x3e0f30[_0x401f('0xcb')]['y']},_0x4c5f83===this['activeChange']?this[_0x401f('0xa0')][_0x401f('0xa9')]():this[_0x401f('0x9b')]=_0x4c5f83):(this[_0x401f('0x4')]=null,this[_0x401f('0x9b')]=null);});}['_findChangeIdFromDomTarget'](_0x3939cd){do{const _0x1e41bb=_0x3939cd[_0x401f('0x78')]('data-change-id');if(_0x1e41bb)return _0x1e41bb;_0x3939cd=_0x3939cd[_0x401f('0x58')];}while(_0x3939cd);return null;}[_0x401f('0x48')](){this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0xe2')](_0x17e4d7=>{for(const _0x281939 of this['editor'][_0x401f('0x40')][_0x401f('0xed')])_0x17e4d7[_0x401f('0xa1')](_0x281939);});}}function et(_0x3738a4,_0x543792){return(_0x5efafe,_0x55df51,_0x5476b7)=>{if(!_0x5476b7['consumable'][_0x401f('0x23')](_0x55df51[_0x401f('0x25')],_0x5efafe[_0x401f('0xaf')]))return;const _0x1c0cc9=_0x55df51[_0x401f('0x25')]['getWalker'](),_0x36f410=_0x55df51[_0x401f('0x25')][_0x401f('0x101')],_0x200e91=_0x3738a4[_0x401f('0x40')][_0x401f('0x11e')];let _0x166390=null,_0x3ae569=null,_0x47c5fb=!0x1,_0x12bf8f=!0x1;for(const _0x3a4fa5 of _0x1c0cc9){const _0x523514=_0x3a4fa5[_0x401f('0x85')];_0x47c5fb=_0x47c5fb||_0x200e91[_0x401f('0xb1')](_0x523514);const _0x28c7f6=_0x5476b7['mapper'][_0x401f('0x103')](_0x523514);if(_0x28c7f6&&_0x28c7f6[_0x401f('0x119')](_0x401f('0x98')))return;_0x401f('0x17')==_0x3a4fa5['type']&&(_0x200e91['isBlock'](_0x523514)&&!_0x200e91[_0x401f('0x6d')](_0x523514)&&(_0x523514[_0x401f('0x26')]||_0x36f410['isAtEnd']?_0x166390&&_0x166390[_0x401f('0x58')]==_0x523514||(_0x166390=_0x523514,_0x1a8576(_0x3a4fa5[_0x401f('0x12')]),_0x12bf8f=!0x0):_0x3ae569=_0x3ae569||_0x3a4fa5[_0x401f('0x12')]));}function _0x1a8576(_0x263c20){const _0x2ff18f=_0x5476b7[_0x401f('0xc8')][_0x401f('0xee')](_0x263c20),_0x5c0f6d=_0x5476b7[_0x401f('0x11')][_0x401f('0x97')](_0x401f('0x104'),{'class':_0x401f('0x2e')+_0x543792});_0x5476b7[_0x401f('0x11')][_0x401f('0x8f')](_0x2ff18f,_0x5c0f6d),_0x5476b7[_0x401f('0xc8')][_0x401f('0x106')](_0x5c0f6d,_0x55df51['markerName']);}_0x47c5fb||_0x12bf8f||!_0x3ae569||_0x1a8576(_0x3ae569);};}export class RestoreRevisionCommand extends _0x4d8cb9{constructor(_0x5db051){super(_0x5db051);const _0x367d62=_0x5db051[_0x401f('0x7f')]['get'](d);this[_0x401f('0x68')]=!0x1,this['listenTo'](_0x367d62,_0x401f('0x107'),()=>this[_0x401f('0x6c')]()),this[_0x401f('0x27')](_0x367d62,_0x401f('0xae'),()=>this[_0x401f('0x6c')]());}['execute'](){const _0x2d3e8b=this[_0x401f('0x52')],_0x12e0df=_0x2d3e8b['plugins'][_0x401f('0xb3')](d),_0xc944f8=_0x12e0df[_0x401f('0x19')]?_0x12e0df['diff'][_0x401f('0x3d')]:null;_0x2d3e8b[_0x401f('0xe6')][_0x401f('0xb3')](_0x401f('0x16'))[_0x401f('0x67')](_0xc944f8);}[_0x401f('0x6c')](){const {isReady:_0x147790,isEnabled:_0x3df6df}=this[_0x401f('0x52')][_0x401f('0x7f')]['get'](d);this[_0x401f('0x56')]=_0x147790&&_0x3df6df;}}export class ShowChangeCommand extends _0x4d8cb9{constructor(_0x22fb26,{direction:_0x52a172}){super(_0x22fb26);const _0x21577b=_0x22fb26[_0x401f('0x7f')][_0x401f('0xb3')](d);this['affectsData']=!0x1,this[_0x401f('0xa3')]='forward'===_0x52a172?0x1:-0x1,this[_0x401f('0x27')](_0x21577b,'change:isReady',()=>this[_0x401f('0x6c')]()),this['listenTo'](_0x21577b,_0x401f('0xae'),()=>this['refresh']()),this[_0x401f('0x27')](_0x21577b,_0x401f('0x82'),()=>this[_0x401f('0x6c')]());}[_0x401f('0xc5')](){const _0x258ae4=this[_0x401f('0x52')],_0x15bdd2=_0x258ae4[_0x401f('0x7f')][_0x401f('0xb3')](d),{isNavigationMode:_0xd3b821,currentChangeNumber:_0x1346b2}=_0x15bdd2;let _0x57574b;if(_0x15bdd2[_0x401f('0x9b')]=_0xd3b821?_0x15bdd2[_0x401f('0x1b')]['changes']['get'](_0x1346b2+this[_0x401f('0xa3')]):_0x15bdd2[_0x401f('0x1b')][_0x401f('0xd5')]['first'],_0x15bdd2[_0x401f('0x9b')][_0x401f('0x81')][_0x401f('0x7e')])_0x57574b=_0x258ae4[_0x401f('0xc9')][_0x401f('0x93')][_0x401f('0xab')](_0x15bdd2['activeChange'][_0x401f('0xd8')]);else{const _0xfce9ac=_0x258ae4['model'][_0x401f('0xed')][_0x401f('0xb3')](_0x401f('0xcc')+_0x15bdd2[_0x401f('0x9b')]['id']);_0x57574b=_0x2b38af(_0x258ae4[_0x401f('0xc9')],_0xfce9ac);}_0x4c597a({'target':_0x57574b,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x461fe6,currentChangeNumber:_0x2075c2,numberOfChanges:_0x3e4a05,isReady:_0x5e01bd,isEnabled:_0x1f8123}=this[_0x401f('0x52')]['plugins'][_0x401f('0xb3')](d);this[_0x401f('0x56')]=!!(_0x1f8123&&_0x5e01bd&&_0x3e4a05)&&(!_0x461fe6||(0x1===this[_0x401f('0xa3')]?_0x2075c2<_0x3e4a05-0x1:_0x2075c2>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ebe=['map','items','_action','listView','add','threeVerticalDots','Show\x20more\x20items','Restore\x20this\x20revision','Compare\x20against\x20selected','locale','isVisible','class','listenTo','name','children','bindTemplate','isOpen','Name\x20this\x20revision','ck-revision-history-sidebar__revision__actions','isEnabled','panelPosition','stopPropagation','buttonView','function','change:isActionsDropdownOpen','bind','action','source','extendTemplate','isActionsDropdownOpen'];(function(_0x27d576,_0x1ebe44){const _0x53fb82=function(_0x3573fc){while(--_0x3573fc){_0x27d576['push'](_0x27d576['shift']());}};_0x53fb82(++_0x1ebe44);}(_0x1ebe,0x10b));const _0x53fb=function(_0x27d576,_0x1ebe44){_0x27d576=_0x27d576-0x0;let _0x53fb82=_0x1ebe[_0x27d576];return _0x53fb82;};import{Collection as _0x106042}from'ckeditor5/src/utils';import{icons as _0x479c55}from'ckeditor5/src/core';import{Model as _0x5afa01,addListToDropdown as _0xbbd9b9,createDropdown as _0x598f43}from'ckeditor5/src/ui';import{getTranslation as _0x3403ce}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0xaa7202,_0x7767af){const _0x2a2aae=_0xaa7202[_0x53fb('0x12')],_0x25d557=_0xaa7202[_0x53fb('0xc')],_0x1b952d=_0x598f43(_0x25d557);_0x1b952d[_0x53fb('0x17')]='sw';const _0x5ce2e8=function(_0x5d8588,_0x320120){const _0x2cd2df=function(_0x43844b,_0x23f2de){const _0xf2ab7c=_0x43844b['locale'],_0x1e7b81={'Compare\x20against\x20selected':_0x3403ce(_0xf2ab7c,_0x53fb('0xb')),'Name\x20this\x20revision':_0x3403ce(_0xf2ab7c,_0x53fb('0x14')),'Restore\x20this\x20revision':_0x3403ce(_0xf2ab7c,_0x53fb('0xa'))};return _0x23f2de[_0x53fb('0x3')](_0x3e54d3=>{const _0x5bee51=_0x1e7b81[_0x3e54d3['name']];return _0x5bee51&&_0x5bee51!==_0x3e54d3['name']&&(_0x3e54d3[_0x53fb('0x10')]=_0x5bee51),_0x3e54d3;});}(_0x5d8588,_0x320120),_0x2a4fbd=new _0x106042();for(const _0x45daea of _0x2cd2df){const _0x4bda4c={'type':'button','model':new _0x5afa01({'label':_0x45daea['name'],'class':_0x45daea[_0x53fb('0xe')],'withText':!0x0,'_action':_0x45daea['action']})};_0x4bda4c['model'][_0x53fb('0x1c')](_0x53fb('0x16'))['to'](_0x5d8588,'isActionsDropdownOpen',_0x15da7b=>'function'!=typeof _0x45daea[_0x53fb('0x16')]||(!_0x15da7b||_0x45daea[_0x53fb('0x16')](_0x5d8588))),_0x2a4fbd[_0x53fb('0x7')](_0x4bda4c);}return _0x2a4fbd;}(_0xaa7202,_0x7767af);return _0xaa7202[_0x53fb('0x1c')](_0x53fb('0x2'))['to'](_0x1b952d,_0x53fb('0x13')),_0x1b952d[_0x53fb('0x19')]['set']({'label':_0x3403ce(_0x25d557,_0x53fb('0x9')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x479c55[_0x53fb('0x8')]}),_0x1b952d[_0x53fb('0x1')]({'attributes':{'class':[_0x53fb('0x15'),_0x2a2aae['if'](_0x53fb('0x2'),'ck-on')]},'on':{'click':_0x2a2aae['to'](_0x382d12=>_0x382d12[_0x53fb('0x18')]())}}),_0x1b952d['on']('execute',_0x5316bc=>{_0xaa7202['isReady']&&_0x53fb('0x1a')==typeof _0x5316bc[_0x53fb('0x0')]['_action']&&_0x5316bc[_0x53fb('0x0')][_0x53fb('0x5')](_0xaa7202);}),_0xbbd9b9(_0x1b952d,_0x5ce2e8),_0x1b952d[_0x53fb('0xf')](_0xaa7202,_0x53fb('0x1b'),(_0x72c252,_0x2bf25b,_0x2d2df2)=>{if(_0x2d2df2)for(const _0x358725 of _0x1b952d[_0x53fb('0x6')][_0x53fb('0x4')]){const _0xb46a37=_0x358725[_0x53fb('0x11')]['first'],_0x4f99f2=_0x7767af['find'](_0x357baf=>_0x357baf[_0x53fb('0x1d')]===_0xb46a37[_0x53fb('0x5')])[_0x53fb('0xd')];_0x358725['isVisible']=void 0x0===_0x4f99f2||_0x4f99f2(_0xaa7202);}}),_0x1b952d;}
23
+ const _0x516a=['isEnabled','threeVerticalDots','isActionsDropdownOpen','function','button','change:isActionsDropdownOpen','ck-revision-history-sidebar__revision__actions','locale','class','name','first','buttonView','bind','execute','ck-on','find','listView','model','source','isVisible','_action','Show\x20more\x20items','isReady','isOpen','panelPosition','items','action','Compare\x20against\x20selected'];(function(_0x24f704,_0x516a15){const _0x5783b5=function(_0x59423a){while(--_0x59423a){_0x24f704['push'](_0x24f704['shift']());}};_0x5783b5(++_0x516a15);}(_0x516a,0xff));const _0x5783=function(_0x24f704,_0x516a15){_0x24f704=_0x24f704-0x0;let _0x5783b5=_0x516a[_0x24f704];return _0x5783b5;};import{Collection as _0x564b77}from'ckeditor5/src/utils';import{icons as _0x241ade}from'ckeditor5/src/core';import{Model as _0x171dfb,addListToDropdown as _0x227c99,createDropdown as _0x2ad2e3}from'ckeditor5/src/ui';import{getTranslation as _0x3f35b6}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x269e64,_0x43f4ed){const _0x291691=_0x269e64['bindTemplate'],_0x2d22b9=_0x269e64[_0x5783('0x4')],_0x1bbd13=_0x2ad2e3(_0x2d22b9);_0x1bbd13[_0x5783('0x15')]='sw';const _0x3ee8b1=function(_0x21fb76,_0x3b2405){const _0x35bf14=function(_0x4da6a4,_0x430291){const _0x306641=_0x4da6a4['locale'],_0x596637={'Compare\x20against\x20selected':_0x3f35b6(_0x306641,_0x5783('0x18')),'Name\x20this\x20revision':_0x3f35b6(_0x306641,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x3f35b6(_0x306641,'Restore\x20this\x20revision')};return _0x430291['map'](_0xea29b1=>{const _0xb57dc4=_0x596637[_0xea29b1[_0x5783('0x6')]];return _0xb57dc4&&_0xb57dc4!==_0xea29b1[_0x5783('0x6')]&&(_0xea29b1['name']=_0xb57dc4),_0xea29b1;});}(_0x21fb76,_0x3b2405),_0xa9a07f=new _0x564b77();for(const _0x3e2c2f of _0x35bf14){const _0x5d0b8b={'type':_0x5783('0x1'),'model':new _0x171dfb({'label':_0x3e2c2f[_0x5783('0x6')],'class':_0x3e2c2f[_0x5783('0x5')],'withText':!0x0,'_action':_0x3e2c2f[_0x5783('0x17')]})};_0x5d0b8b[_0x5783('0xe')][_0x5783('0x9')](_0x5783('0x19'))['to'](_0x21fb76,_0x5783('0x1b'),_0x1f3076=>_0x5783('0x0')!=typeof _0x3e2c2f['isEnabled']||(!_0x1f3076||_0x3e2c2f['isEnabled'](_0x21fb76))),_0xa9a07f['add'](_0x5d0b8b);}return _0xa9a07f;}(_0x269e64,_0x43f4ed);return _0x269e64[_0x5783('0x9')](_0x5783('0x1b'))['to'](_0x1bbd13,_0x5783('0x14')),_0x1bbd13[_0x5783('0x8')]['set']({'label':_0x3f35b6(_0x2d22b9,_0x5783('0x12')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x241ade[_0x5783('0x1a')]}),_0x1bbd13['extendTemplate']({'attributes':{'class':[_0x5783('0x3'),_0x291691['if'](_0x5783('0x1b'),_0x5783('0xb'))]},'on':{'click':_0x291691['to'](_0x4e8b73=>_0x4e8b73['stopPropagation']())}}),_0x1bbd13['on'](_0x5783('0xa'),_0xc3a6f6=>{_0x269e64[_0x5783('0x13')]&&_0x5783('0x0')==typeof _0xc3a6f6[_0x5783('0xf')][_0x5783('0x11')]&&_0xc3a6f6[_0x5783('0xf')]['_action'](_0x269e64);}),_0x227c99(_0x1bbd13,_0x3ee8b1),_0x1bbd13['listenTo'](_0x269e64,_0x5783('0x2'),(_0x5a2957,_0x30f4be,_0x115c42)=>{if(_0x115c42)for(const _0x39e5a1 of _0x1bbd13[_0x5783('0xd')][_0x5783('0x16')]){const _0x4247ae=_0x39e5a1['children'][_0x5783('0x7')],_0x914388=_0x43f4ed[_0x5783('0xc')](_0x3079f2=>_0x3079f2[_0x5783('0x17')]===_0x4247ae['_action'])[_0x5783('0x10')];_0x39e5a1[_0x5783('0x10')]=void 0x0===_0x914388||_0x914388(_0x269e64);}}),_0x1bbd13;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48f0=['span','ck-revision-history-sidebar__revision-author','push','ck-revision-history-sidebar__revision-author__name','ck-revision-history-sidebar__revision-author_creator','setTemplate','name','set','Revision\x20creator','Revision\x20author'];(function(_0x8f426f,_0x48f00f){const _0x24fecb=function(_0x4ee58f){while(--_0x4ee58f){_0x8f426f['push'](_0x8f426f['shift']());}};_0x24fecb(++_0x48f00f);}(_0x48f0,0x89));const _0x24fe=function(_0x8f426f,_0x48f00f){_0x8f426f=_0x8f426f-0x0;let _0x24fecb=_0x48f0[_0x8f426f];return _0x24fecb;};import{View as _0x3479df,IconView as _0xf20a69}from'ckeditor5/src/ui';import{getTranslation as _0x548f63}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x1c1cf2 from'../../../theme/icons/user.svg';export default class ti extends _0x3479df{constructor(_0x422f3b,_0x48fcb4,_0x298795){super(_0x422f3b);const _0x3799ed=new _0xf20a69();_0x3799ed[_0x24fe('0x0')]({'content':_0x1c1cf2,'viewBox':'0\x200\x2011\x2010'});const _0x5ee352=['ck',_0x24fe('0x4')];_0x298795&&_0x5ee352[_0x24fe('0x5')](_0x24fe('0x7'));const _0x231fa1=[{'tag':_0x24fe('0x3'),'attributes':{'class':['ck',_0x24fe('0x6')],'title':_0x548f63(_0x422f3b,_0x298795?_0x24fe('0x1'):_0x24fe('0x2'))},'children':[_0x3799ed,_0x48fcb4[_0x24fe('0x9')]]}];this[_0x24fe('0x8')]({'tag':'li','attributes':{'class':_0x5ee352},'children':_0x231fa1});}}
23
+ const _0xfee3=['set','ck-revision-history-sidebar__revision-author__name','setTemplate','push','ck-revision-history-sidebar__revision-author','name','Revision\x20creator','span','Revision\x20author'];(function(_0x2e0c8e,_0xfee3e8){const _0x48fca8=function(_0x54bd8a){while(--_0x54bd8a){_0x2e0c8e['push'](_0x2e0c8e['shift']());}};_0x48fca8(++_0xfee3e8);}(_0xfee3,0x70));const _0x48fc=function(_0x2e0c8e,_0xfee3e8){_0x2e0c8e=_0x2e0c8e-0x0;let _0x48fca8=_0xfee3[_0x2e0c8e];return _0x48fca8;};import{View as _0x11553a,IconView as _0x573407}from'ckeditor5/src/ui';import{getTranslation as _0x385008}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x459323 from'../../../theme/icons/user.svg';export default class ti extends _0x11553a{constructor(_0x3ddb9b,_0x509d51,_0x591450){super(_0x3ddb9b);const _0x28d38a=new _0x573407();_0x28d38a[_0x48fc('0x5')]({'content':_0x459323,'viewBox':'0\x200\x2011\x2010'});const _0x5cf580=['ck',_0x48fc('0x0')];_0x591450&&_0x5cf580[_0x48fc('0x8')]('ck-revision-history-sidebar__revision-author_creator');const _0x2d70cc=[{'tag':_0x48fc('0x3'),'attributes':{'class':['ck',_0x48fc('0x6')],'title':_0x385008(_0x3ddb9b,_0x591450?_0x48fc('0x2'):_0x48fc('0x4'))},'children':[_0x28d38a,_0x509d51[_0x48fc('0x1')]]}];this[_0x48fc('0x7')]({'tag':'li','attributes':{'class':_0x5cf580},'children':_0x2d70cc});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2833=['set','span','ck-revision-history-sidebar__revision-name','Revision\x20name','extendTemplate'];(function(_0x36591e,_0x2833cf){var _0xa1e8b8=function(_0x892e96){while(--_0x892e96){_0x36591e['push'](_0x36591e['shift']());}};_0xa1e8b8(++_0x2833cf);}(_0x2833,0x148));var _0xa1e8=function(_0x36591e,_0x2833cf){_0x36591e=_0x36591e-0x0;var _0xa1e8b8=_0x2833[_0x36591e];return _0xa1e8b8;};import{LabeledFieldView as _0x103ca6}from'ckeditor5/src/ui';import{getTranslation as _0x83923}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x103ca6{constructor(_0xced30b,_0x337fde){super(_0xced30b,_0x337fde),this[_0xa1e8('0x2')]({'label':_0x83923(_0xced30b,_0xa1e8('0x0'))}),this[_0xa1e8('0x1')]({'tag':_0xa1e8('0x3'),'attributes':{'class':[_0xa1e8('0x4')]}});}}
23
+ var _0xb08b=['span','Revision\x20name','set','extendTemplate'];(function(_0x1bdf46,_0xb08b5e){var _0x2f0f9f=function(_0x1212d7){while(--_0x1212d7){_0x1bdf46['push'](_0x1bdf46['shift']());}};_0x2f0f9f(++_0xb08b5e);}(_0xb08b,0xd9));var _0x2f0f=function(_0x1bdf46,_0xb08b5e){_0x1bdf46=_0x1bdf46-0x0;var _0x2f0f9f=_0xb08b[_0x1bdf46];return _0x2f0f9f;};import{LabeledFieldView as _0x284ba9}from'ckeditor5/src/ui';import{getTranslation as _0x5bdb2b}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x284ba9{constructor(_0xd19b65,_0x28e123){super(_0xd19b65,_0x28e123),this[_0x2f0f('0x1')]({'label':_0x5bdb2b(_0xd19b65,_0x2f0f('0x0'))}),this[_0x2f0f('0x2')]({'tag':_0x2f0f('0x3'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b55=['authors','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__revision','setTemplate','deselect','creator','map','srcElement','ck-disabled','unshift','value','revisionNameView','bindTemplate','fieldView','isConfirm','isReady','createdAt','from','div','closest','_revision','isActionsDropdownOpen','extendTemplate','ck-revision-history-sidebar__actions_dropdown_open','revisionActionsView','change','ck-revision-history-sidebar__revision_selected','ck-reset','set','isEnabled','render','unhighlight','ck-revision-history-sidebar__revision__date','bind','isSelected','fire','name','isHighlighted','setName','placeholder','highlight','_createdAtFormatted','220','select','listenTo'];(function(_0x2c9275,_0x5b55d5){const _0x2df0b1=function(_0x1bb7c2){while(--_0x1bb7c2){_0x2c9275['push'](_0x2c9275['shift']());}};_0x2df0b1(++_0x5b55d5);}(_0x5b55,0x11f));const _0x2df0=function(_0x2c9275,_0x5b55d5){_0x2c9275=_0x2c9275-0x0;let _0x2df0b1=_0x5b55[_0x2c9275];return _0x2df0b1;};import{View as _0x1c1b48,createLabeledInputText as _0x3b26d2}from'ckeditor5/src/ui';import{ConfirmMixin as _0x3ae8f5}from'ckeditor5-collaboration/src/collaboration-core';import _0x16d591 from'./revisionnameview';import _0x2ec080 from'./revisionauthorview';import{dateToPrettyFormat as _0x5cca99}from'./utils';import{createActionsDropdownView as _0x54d728}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x3ae8f5(_0x1c1b48){constructor(_0x3e175d,_0x57922d,_0x515f15){super(_0x3e175d);const _0xcdbf07=this[_0x2df0('0x28')],_0x1d26cd=function(_0x315c46,_0x32e022){const _0x4329af=Array[_0x2df0('0x0')](_0x32e022[_0x2df0('0x1c')])['filter'](_0x258336=>_0x258336!=_0x32e022['creator']);return _0x32e022[_0x2df0('0x21')]&&_0x4329af[_0x2df0('0x25')](_0x32e022['creator']),_0x4329af[_0x2df0('0x22')](_0x372dce=>new _0x2ec080(_0x315c46,_0x372dce,_0x372dce==_0x32e022['creator']));}(_0x3e175d,_0x57922d);this['id']=_0x57922d['id'],this[_0x2df0('0x3')]=_0x57922d,this[_0x2df0('0x10')](_0x2df0('0x13'),_0x2df0('0x2c'))['to'](_0x57922d),this[_0x2df0('0x10')](_0x2df0('0x18'))['to'](this,'createdAt',_0x2b3251=>_0x2b3251?_0x5cca99(_0x3e175d['uiLanguage'],_0x2b3251):void 0x0),this[_0x2df0('0xb')](_0x2df0('0x11'),!0x1),this[_0x2df0('0xb')]('isHighlighted',!0x1),this[_0x2df0('0xb')](_0x2df0('0x4'),!0x1),this['set'](_0x2df0('0x2b'),!0x1),this[_0x2df0('0xb')]('isEnabled',!0x1),this['revisionNameView']=new _0x16d591(_0x3e175d,_0x3b26d2),this['revisionNameView'][_0x2df0('0x29')][_0x2df0('0x5')]({'attributes':{'maxlength':_0x2df0('0x19')}}),this[_0x2df0('0x27')][_0x2df0('0x29')][_0x2df0('0x10')]('value',_0x2df0('0x16'))['to'](this,_0x2df0('0x13'),_0x2df0('0x18')),this[_0x2df0('0x27')][_0x2df0('0x10')](_0x2df0('0xc'))['to'](this,_0x2df0('0x11'),this,_0x2df0('0xc'),(_0x850115,_0x2529e6)=>_0x850115&&_0x2529e6),this['revisionActionsView']=_0x515f15&&_0x515f15['length']?_0x54d728(this,_0x515f15):'',this[_0x2df0('0x7')]&&this['revisionActionsView'][_0x2df0('0x10')](_0x2df0('0xc'))['to'](this),this[_0x2df0('0x1f')]({'tag':_0x2df0('0x1'),'attributes':{'class':['ck',_0x2df0('0xa'),_0x2df0('0x1d'),_0xcdbf07['if'](_0x2df0('0x2a'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck',_0x2df0('0xa'),_0x2df0('0x1e'),_0xcdbf07['if']('isEnabled',_0x2df0('0x24'),_0x128373=>!_0x128373),_0xcdbf07['if'](_0x2df0('0x11'),_0x2df0('0x9')),_0xcdbf07['if'](_0x2df0('0x14'),'ck-revision-history-sidebar__revision_highlighted'),_0xcdbf07['if'](_0x2df0('0x4'),_0x2df0('0x6'))]},'children':[this[_0x2df0('0x27')],{'tag':'span','attributes':{'class':['ck',_0x2df0('0xf')]},'children':[{'text':_0xcdbf07['to'](_0x2df0('0x18'))}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x1d26cd}]},this[_0x2df0('0x7')]],'on':{'click':_0xcdbf07['to'](_0x43b801=>{_0x43b801[_0x2df0('0x23')][_0x2df0('0x2')]('.ck-thread__remove-confirm')||this['isReady']&&this[_0x2df0('0xc')]&&this[_0x2df0('0x12')]('select',{'id':this['id']});})}}]});}['render'](){super[_0x2df0('0xd')]();const _0x36186e=this[_0x2df0('0x27')][_0x2df0('0x29')]['element'];this[_0x2df0('0x1b')](_0x36186e,_0x2df0('0x8'),()=>{this['fire'](_0x2df0('0x15'),{'id':this['id'],'name':_0x36186e[_0x2df0('0x26')]});});}[_0x2df0('0x1a')](){this['isSelected']=!0x0;}[_0x2df0('0x20')](){this[_0x2df0('0x11')]=!0x1;}[_0x2df0('0x17')](){this['isHighlighted']=!0x0;}[_0x2df0('0xe')](){this['isHighlighted']=!0x1;}}
23
+ const _0x18c5=['ck-revision-history-sidebar__revision-authors','ck-disabled','ck-reset','name','filter','select','fire','isSelected','extendTemplate','fieldView','render','setTemplate','_revision','deselect','ck-revision-history-sidebar__revision_selected','element','span','bind','creator','ck-revision-history-sidebar__revision__controls-wrapper','_createdAtFormatted','closest','setName','set','220','div','uiLanguage','isEnabled','placeholder','revisionNameView','from','isHighlighted','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision-wrapper','unshift','authors','revisionActionsView','unhighlight','isReady','isActionsDropdownOpen','change','srcElement','createdAt','.ck-thread__remove-confirm','ck-revision-history-sidebar__revision_highlighted','value'];(function(_0x18035d,_0x18c5d5){const _0x38ebc7=function(_0x1fd443){while(--_0x1fd443){_0x18035d['push'](_0x18035d['shift']());}};_0x38ebc7(++_0x18c5d5);}(_0x18c5,0x6a));const _0x38eb=function(_0x18035d,_0x18c5d5){_0x18035d=_0x18035d-0x0;let _0x38ebc7=_0x18c5[_0x18035d];return _0x38ebc7;};import{View as _0x3b136a,createLabeledInputText as _0x4f55dd}from'ckeditor5/src/ui';import{ConfirmMixin as _0x31ba44}from'ckeditor5-collaboration/src/collaboration-core';import _0x2ff25b from'./revisionnameview';import _0x465e10 from'./revisionauthorview';import{dateToPrettyFormat as _0xb5ddc0}from'./utils';import{createActionsDropdownView as _0x4c2f7d}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x31ba44(_0x3b136a){constructor(_0x43c62d,_0x4dc420,_0x352ace){super(_0x43c62d);const _0x4163b5=this['bindTemplate'],_0x30cf03=function(_0x36b932,_0x411c65){const _0x3f9d18=Array[_0x38eb('0x12')](_0x411c65[_0x38eb('0x18')])[_0x38eb('0x27')](_0x2dbe6c=>_0x2dbe6c!=_0x411c65['creator']);return _0x411c65[_0x38eb('0x6')]&&_0x3f9d18[_0x38eb('0x17')](_0x411c65[_0x38eb('0x6')]),_0x3f9d18['map'](_0x32f7de=>new _0x465e10(_0x36b932,_0x32f7de,_0x32f7de==_0x411c65['creator']));}(_0x43c62d,_0x4dc420);this['id']=_0x4dc420['id'],this[_0x38eb('0x0')]=_0x4dc420,this[_0x38eb('0x5')](_0x38eb('0x26'),_0x38eb('0x1f'))['to'](_0x4dc420),this[_0x38eb('0x5')]('_createdAtFormatted')['to'](this,_0x38eb('0x1f'),_0x212ca5=>_0x212ca5?_0xb5ddc0(_0x43c62d[_0x38eb('0xe')],_0x212ca5):void 0x0),this[_0x38eb('0xb')](_0x38eb('0x2a'),!0x1),this[_0x38eb('0xb')](_0x38eb('0x13'),!0x1),this[_0x38eb('0xb')](_0x38eb('0x1c'),!0x1),this[_0x38eb('0xb')](_0x38eb('0x1b'),!0x1),this[_0x38eb('0xb')](_0x38eb('0xf'),!0x1),this['revisionNameView']=new _0x2ff25b(_0x43c62d,_0x4f55dd),this['revisionNameView'][_0x38eb('0x2c')][_0x38eb('0x2b')]({'attributes':{'maxlength':_0x38eb('0xc')}}),this[_0x38eb('0x11')][_0x38eb('0x2c')][_0x38eb('0x5')](_0x38eb('0x22'),_0x38eb('0x10'))['to'](this,'name','_createdAtFormatted'),this['revisionNameView'][_0x38eb('0x5')]('isEnabled')['to'](this,_0x38eb('0x2a'),this,_0x38eb('0xf'),(_0x1a46ed,_0x224b8d)=>_0x1a46ed&&_0x224b8d),this['revisionActionsView']=_0x352ace&&_0x352ace['length']?_0x4c2f7d(this,_0x352ace):'',this[_0x38eb('0x19')]&&this[_0x38eb('0x19')][_0x38eb('0x5')](_0x38eb('0xf'))['to'](this),this[_0x38eb('0x2e')]({'tag':'div','attributes':{'class':['ck',_0x38eb('0x25'),_0x38eb('0x16'),_0x4163b5['if']('isConfirm',_0x38eb('0x14'))]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4163b5['if'](_0x38eb('0xf'),_0x38eb('0x24'),_0x44d4b2=>!_0x44d4b2),_0x4163b5['if'](_0x38eb('0x2a'),_0x38eb('0x2')),_0x4163b5['if'](_0x38eb('0x13'),_0x38eb('0x21')),_0x4163b5['if'](_0x38eb('0x1c'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x38eb('0x11')],{'tag':_0x38eb('0x4'),'attributes':{'class':['ck',_0x38eb('0x15')]},'children':[{'text':_0x4163b5['to'](_0x38eb('0x8'))}]},{'tag':_0x38eb('0xd'),'attributes':{'class':['ck',_0x38eb('0x7')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x38eb('0x23')]},'children':_0x30cf03}]},this[_0x38eb('0x19')]],'on':{'click':_0x4163b5['to'](_0x1376ff=>{_0x1376ff[_0x38eb('0x1e')][_0x38eb('0x9')](_0x38eb('0x20'))||this[_0x38eb('0x1b')]&&this[_0x38eb('0xf')]&&this[_0x38eb('0x29')](_0x38eb('0x28'),{'id':this['id']});})}}]});}['render'](){super[_0x38eb('0x2d')]();const _0x126888=this[_0x38eb('0x11')][_0x38eb('0x2c')][_0x38eb('0x3')];this['listenTo'](_0x126888,_0x38eb('0x1d'),()=>{this[_0x38eb('0x29')](_0x38eb('0xa'),{'id':this['id'],'name':_0x126888[_0x38eb('0x22')]});});}[_0x38eb('0x28')](){this[_0x38eb('0x2a')]=!0x0;}[_0x38eb('0x1')](){this['isSelected']=!0x1;}['highlight'](){this[_0x38eb('0x13')]=!0x0;}[_0x38eb('0x1a')](){this[_0x38eb('0x13')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39cb=['bindTemplate','button','true','set','click','setTemplate','false','ck-revision-history-sidebar__subrevision-collapser','isVisible','ck-revision-history-sidebar__subrevision-collapser__inner','span','_isCollapsed'];(function(_0x572f54,_0x39cb15){const _0x527080=function(_0x15365a){while(--_0x15365a){_0x572f54['push'](_0x572f54['shift']());}};_0x527080(++_0x39cb15);}(_0x39cb,0x1d2));const _0x5270=function(_0x572f54,_0x39cb15){_0x572f54=_0x572f54-0x0;let _0x527080=_0x39cb[_0x572f54];return _0x527080;};import{View as _0x534068}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x534068{constructor(_0x4e42ea){super(_0x4e42ea);const _0xfa5fba=this[_0x5270('0x2')];this[_0x5270('0x5')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5270('0x7')]({'tag':_0x5270('0x0'),'attributes':{'class':['ck',_0x5270('0x9'),_0xfa5fba['if'](_0x5270('0xa'),'ck-hidden',_0x4b4ef6=>!_0x4b4ef6),_0xfa5fba['if']('_isCollapsed','ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x5270('0x3'),'aria-pressed':_0xfa5fba['to'](_0x5270('0x1'),_0x26f20d=>_0x26f20d?_0x5270('0x8'):_0x5270('0x4'))},'children':[{'tag':_0x5270('0x0'),'attributes':{'class':['ck',_0x5270('0xb')]}}],'on':{'click':_0xfa5fba['to'](_0x5270('0x6'))}});}['toggle'](){this[_0x5270('0x1')]=!this[_0x5270('0x1')];}}
23
+ const _0x84db=['set','ck-revision-history-sidebar__subrevision-collapser__inner','button','ck-hidden','span','_isCollapsed','setTemplate','ck-revision-history-sidebar__subrevision-collapser_collapsed','false','bindTemplate','ck-revision-history-sidebar__subrevision-collapser','true','isVisible'];(function(_0x2fe1d7,_0x84dbf){const _0x31306c=function(_0x4d516f){while(--_0x4d516f){_0x2fe1d7['push'](_0x2fe1d7['shift']());}};_0x31306c(++_0x84dbf);}(_0x84db,0x12d));const _0x3130=function(_0x2fe1d7,_0x84dbf){_0x2fe1d7=_0x2fe1d7-0x0;let _0x31306c=_0x84db[_0x2fe1d7];return _0x31306c;};import{View as _0xaa476d}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0xaa476d{constructor(_0x32a8a6){super(_0x32a8a6);const _0x45efd8=this[_0x3130('0x7')];this[_0x3130('0xb')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x3130('0x4')]({'tag':'span','attributes':{'class':['ck',_0x3130('0x8'),_0x45efd8['if'](_0x3130('0xa'),_0x3130('0x1'),_0x4631ce=>!_0x4631ce),_0x45efd8['if'](_0x3130('0x3'),_0x3130('0x5'))],'role':_0x3130('0x0'),'aria-pressed':_0x45efd8['to'](_0x3130('0x3'),_0x456ea5=>_0x456ea5?_0x3130('0x6'):_0x3130('0x9'))},'children':[{'tag':_0x3130('0x2'),'attributes':{'class':['ck',_0x3130('0xc')]}}],'on':{'click':_0x45efd8['to']('click')}});}['toggle'](){this[_0x3130('0x3')]=!this[_0x3130('0x3')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xfa40=['ck-revision-history-sidebar__revision-authors','bind','div','createdAt','select','ck-reset','ck-revision-history-sidebar__subrevision','span','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision__date','bindTemplate','creator','set','_createdAtFormatted','setTemplate','fire','_parentRevisionId','deselect','uiLanguage','isSelected'];(function(_0xb3adcb,_0xfa4058){const _0x5383aa=function(_0x5734bf){while(--_0x5734bf){_0xb3adcb['push'](_0xb3adcb['shift']());}};_0x5383aa(++_0xfa4058);}(_0xfa40,0x93));const _0x5383=function(_0xb3adcb,_0xfa4058){_0xb3adcb=_0xb3adcb-0x0;let _0x5383aa=_0xfa40[_0xb3adcb];return _0x5383aa;};import{View as _0x51a7d3}from'ckeditor5/src/ui';import _0x424ca6 from'./revisionauthorview';import{dateToPrettyFormat as _0x4fcab8}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x51a7d3{constructor(_0x4d4b48,_0x32b9e4,_0x36a116){super(_0x4d4b48);const _0x454a38=this[_0x5383('0x3')];this['id']=_0x32b9e4['id'],this[_0x5383('0xe')](_0x5383('0x10'))['to'](_0x32b9e4),this[_0x5383('0x5')](_0x5383('0xc'),!0x1),this[_0x5383('0xe')](_0x5383('0x6'))['to'](this,_0x5383('0x10'),_0x50939c=>_0x50939c?_0x4fcab8(_0x4d4b48[_0x5383('0xb')],_0x50939c):void 0x0),this[_0x5383('0x9')]=_0x36a116,this[_0x5383('0x7')]({'tag':_0x5383('0xf'),'attributes':{'class':['ck',_0x5383('0x12'),'ck-revision-history-sidebar__revision',_0x5383('0x13'),_0x454a38['if']('isSelected',_0x5383('0x1'))]},'children':[{'tag':_0x5383('0x0'),'attributes':{'class':['ck',_0x5383('0x2')]},'children':[{'text':_0x454a38['to'](_0x5383('0x6'))}]},{'tag':'ul','attributes':{'class':['ck',_0x5383('0xd')]},'children':[new _0x424ca6(_0x4d4b48,_0x32b9e4[_0x5383('0x4')],!0x0)]}],'on':{'click':_0x454a38['to'](this[_0x5383('0x11')][_0x5383('0xe')](this))}});}[_0x5383('0x11')](){this[_0x5383('0xc')]=!0x0,this[_0x5383('0x8')]('select',{'parentId':this[_0x5383('0x9')]});}[_0x5383('0xa')](){this[_0x5383('0xc')]=!0x1;}}
23
+ const _0x6783=['bind','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision-authors','isSelected','createdAt','select','fire','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__subrevision','setTemplate','div','deselect','span','bindTemplate','_parentRevisionId','_createdAtFormatted'];(function(_0x538cfa,_0x678306){const _0x36ad19=function(_0x4deed6){while(--_0x4deed6){_0x538cfa['push'](_0x538cfa['shift']());}};_0x36ad19(++_0x678306);}(_0x6783,0x1c3));const _0x36ad=function(_0x538cfa,_0x678306){_0x538cfa=_0x538cfa-0x0;let _0x36ad19=_0x6783[_0x538cfa];return _0x36ad19;};import{View as _0x38d86e}from'ckeditor5/src/ui';import _0x750a from'./revisionauthorview';import{dateToPrettyFormat as _0x2d75d4}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x38d86e{constructor(_0x4765f6,_0xd99498,_0x12c81f){super(_0x4765f6);const _0x48c3e1=this[_0x36ad('0xa')];this['id']=_0xd99498['id'],this['bind']('createdAt')['to'](_0xd99498),this['set'](_0x36ad('0x0'),!0x1),this['bind'](_0x36ad('0xc'))['to'](this,_0x36ad('0x1'),_0x3f34dd=>_0x3f34dd?_0x2d75d4(_0x4765f6['uiLanguage'],_0x3f34dd):void 0x0),this[_0x36ad('0xb')]=_0x12c81f,this[_0x36ad('0x6')]({'tag':_0x36ad('0x7'),'attributes':{'class':['ck','ck-reset',_0x36ad('0x4'),_0x36ad('0x5'),_0x48c3e1['if'](_0x36ad('0x0'),_0x36ad('0xe'))]},'children':[{'tag':_0x36ad('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x48c3e1['to'](_0x36ad('0xc'))}]},{'tag':'ul','attributes':{'class':['ck',_0x36ad('0xf')]},'children':[new _0x750a(_0x4765f6,_0xd99498['creator'],!0x0)]}],'on':{'click':_0x48c3e1['to'](this[_0x36ad('0x2')][_0x36ad('0xd')](this))}});}['select'](){this['isSelected']=!0x0,this[_0x36ad('0x3')](_0x36ad('0x2'),{'parentId':this['_parentRevisionId']});}[_0x36ad('0x8')](){this[_0x36ad('0x0')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4f0f=['toLocaleTimeString','long','toLocaleDateString','numeric'];(function(_0x229b02,_0x4f0f1f){var _0x77639a=function(_0xbdeaf4){while(--_0xbdeaf4){_0x229b02['push'](_0x229b02['shift']());}};_0x77639a(++_0x4f0f1f);}(_0x4f0f,0xf5));var _0x7763=function(_0x229b02,_0x4f0f1f){_0x229b02=_0x229b02-0x0;var _0x77639a=_0x4f0f[_0x229b02];return _0x77639a;};export function dateToPrettyFormat(_0x2ea7aa,_0x459e10){return _0x459e10[_0x7763('0x1')](_0x2ea7aa,{'month':_0x7763('0x0'),'day':_0x7763('0x2')})+',\x20'+_0x459e10[_0x7763('0x3')](_0x2ea7aa,{'hour':_0x7763('0x2'),'minute':_0x7763('0x2')});}
23
+ var _0x42b4=['toLocaleDateString','toLocaleTimeString','long','numeric'];(function(_0x48dd12,_0x42b4ea){var _0x1fc314=function(_0x1b3852){while(--_0x1b3852){_0x48dd12['push'](_0x48dd12['shift']());}};_0x1fc314(++_0x42b4ea);}(_0x42b4,0x196));var _0x1fc3=function(_0x48dd12,_0x42b4ea){_0x48dd12=_0x48dd12-0x0;var _0x1fc314=_0x42b4[_0x48dd12];return _0x1fc314;};export function dateToPrettyFormat(_0x2588ca,_0x5aa3f2){return _0x5aa3f2[_0x1fc3('0x2')](_0x2588ca,{'month':_0x1fc3('0x0'),'day':_0x1fc3('0x1')})+',\x20'+_0x5aa3f2[_0x1fc3('0x3')](_0x2588ca,{'hour':_0x1fc3('0x1'),'minute':_0x1fc3('0x1')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48a1=['ck-revision-history-save-revision-form','keystrokes','value','trim','delegate','fieldView','render','ck-button-save','Save','_createButton','cancel','_createRevisionNameInput','forEach','revisionName','revisionNameInputView','reset','form','element','locale','220','setTemplate','set','extendTemplate','cancelButtonView','submit','ck-button-cancel','Name\x20of\x20the\x20revision\x20(optional)','shift\x20+\x20tab','_focusables','focusTracker','type','saveButtonView','listenTo','revisionNameInputValue','add','arrowup','arrowright','check','focus','focusFirst','ck-responsive-form','_focusCycler','arrowdown','arrowleft'];(function(_0x20262c,_0x48a17d){const _0x466083=function(_0x283188){while(--_0x283188){_0x20262c['push'](_0x20262c['shift']());}};_0x466083(++_0x48a17d);}(_0x48a1,0xeb));const _0x4660=function(_0x20262c,_0x48a17d){_0x20262c=_0x20262c-0x0;let _0x466083=_0x48a1[_0x20262c];return _0x466083;};import{icons as _0x4e70e1}from'ckeditor5/src/core';import{ButtonView as _0x579a48,FocusCycler as _0x21a49b,LabeledFieldView as _0x1294d0,View as _0x2d6ac8,ViewCollection as _0x1995d4,createLabeledInputText as _0x5ebbf5,injectCssTransitionDisabler as _0x2e406d,submitHandler as _0x36c171}from'ckeditor5/src/ui';import{FocusTracker as _0x2ea00b,KeystrokeHandler as _0x97b223}from'ckeditor5/src/utils';import{getTranslation as _0x2a7f05}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x2d6ac8{constructor(_0x18fb12){super(_0x18fb12),this[_0x4660('0xe')]=new _0x2ea00b(),this[_0x4660('0x1e')]=new _0x97b223(),this[_0x4660('0x6')]('revisionNameInputValue',''),this[_0x4660('0x2b')]=this[_0x4660('0x28')](),this[_0x4660('0x10')]=this[_0x4660('0x26')](_0x2a7f05(_0x18fb12,_0x4660('0x25')),_0x4e70e1[_0x4660('0x16')],_0x4660('0x24')),this['saveButtonView'][_0x4660('0xf')]=_0x4660('0x9'),this['cancelButtonView']=this[_0x4660('0x26')](_0x2a7f05(_0x18fb12,'Cancel'),_0x4e70e1['cancel'],_0x4660('0xa'),_0x4660('0x27')),this[_0x4660('0xd')]=new _0x1995d4(),this[_0x4660('0x1a')]=new _0x21a49b({'focusables':this[_0x4660('0xd')],'focusTracker':this[_0x4660('0xe')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x4660('0xc'),'focusNext':'tab'}}),this[_0x4660('0x5')]({'tag':_0x4660('0x1'),'attributes':{'class':['ck',_0x4660('0x1d'),_0x4660('0x19')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x4660('0x10')],this[_0x4660('0x8')]]}),_0x2e406d(this);}[_0x4660('0x23')](){super[_0x4660('0x23')](),_0x36c171({'view':this}),([this['revisionNameInputView'],this[_0x4660('0x10')],this['cancelButtonView']][_0x4660('0x29')](_0x46b5ba=>{this[_0x4660('0xd')]['add'](_0x46b5ba),this[_0x4660('0xe')][_0x4660('0x13')](_0x46b5ba[_0x4660('0x2')]);}),this[_0x4660('0x1e')][_0x4660('0x11')](this['element']));const _0x483228=_0x18cab9=>_0x18cab9['stopPropagation']();this[_0x4660('0x1e')]['set'](_0x4660('0x15'),_0x483228),this[_0x4660('0x1e')][_0x4660('0x6')](_0x4660('0x1c'),_0x483228),this[_0x4660('0x1e')][_0x4660('0x6')](_0x4660('0x14'),_0x483228),this[_0x4660('0x1e')]['set'](_0x4660('0x1b'),_0x483228);}[_0x4660('0x17')](){this[_0x4660('0x1a')][_0x4660('0x18')]();}get['revisionName'](){return this[_0x4660('0x2b')][_0x4660('0x22')][_0x4660('0x2')][_0x4660('0x1f')]['trim']();}set[_0x4660('0x2a')](_0x4c3a12){this[_0x4660('0x2b')][_0x4660('0x22')][_0x4660('0x2')][_0x4660('0x1f')]=_0x4c3a12[_0x4660('0x20')]();}[_0x4660('0x0')](){this['revisionNameInputView'][_0x4660('0x22')][_0x4660('0x2')]['value']='';}[_0x4660('0x28')](){const _0x1b4b4b=new _0x1294d0(this[_0x4660('0x3')],_0x5ebbf5),_0xf7dcc7=_0x1b4b4b[_0x4660('0x22')];return _0xf7dcc7[_0x4660('0x7')]({'attributes':{'maxlength':_0x4660('0x4')}}),_0x1b4b4b['label']=_0x2a7f05(this[_0x4660('0x3')],_0x4660('0xb')),_0xf7dcc7['on']('input',()=>{this[_0x4660('0x12')]=_0xf7dcc7[_0x4660('0x2')][_0x4660('0x1f')][_0x4660('0x20')]();}),_0x1b4b4b;}['_createButton'](_0xff08fb,_0x2bbf61,_0x1e84e3,_0x33e143){const _0x306506=new _0x579a48(this['locale']);return _0x306506['set']({'label':_0xff08fb,'icon':_0x2bbf61,'tooltip':!0x0}),_0x306506['extendTemplate']({'attributes':{'class':_0x1e84e3}}),_0x33e143&&_0x306506[_0x4660('0x21')]('execute')['to'](this,_0x33e143),_0x306506;}}
23
+ const _0x56d9=['arrowleft','check','value','listenTo','_focusables','ck-button-cancel','extendTemplate','revisionNameInputValue','type','Cancel','revisionNameInputView','Save','revisionName','focus','cancelButtonView','cancel','focusFirst','shift\x20+\x20tab','arrowdown','add','saveButtonView','element','input','focusTracker','keystrokes','delegate','render','_createButton','reset','label','tab','Name\x20of\x20the\x20revision\x20(optional)','locale','setTemplate','execute','arrowright','trim','arrowup','_focusCycler','fieldView','_createRevisionNameInput','form','ck-responsive-form','set'];(function(_0x338c4c,_0x56d9e6){const _0x125171=function(_0x15186a){while(--_0x15186a){_0x338c4c['push'](_0x338c4c['shift']());}};_0x125171(++_0x56d9e6);}(_0x56d9,0x13c));const _0x1251=function(_0x338c4c,_0x56d9e6){_0x338c4c=_0x338c4c-0x0;let _0x125171=_0x56d9[_0x338c4c];return _0x125171;};import{icons as _0x3ad22d}from'ckeditor5/src/core';import{ButtonView as _0x1aaafe,FocusCycler as _0x2ca463,LabeledFieldView as _0xc94ef4,View as _0xedfbb,ViewCollection as _0xd424fe,createLabeledInputText as _0x412b14,injectCssTransitionDisabler as _0x20994f,submitHandler as _0x5934c7}from'ckeditor5/src/ui';import{FocusTracker as _0x189ff3,KeystrokeHandler as _0x5613d1}from'ckeditor5/src/utils';import{getTranslation as _0x567692}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0xedfbb{constructor(_0x4a4231){super(_0x4a4231),this[_0x1251('0xf')]=new _0x189ff3(),this['keystrokes']=new _0x5613d1(),this[_0x1251('0x23')](_0x1251('0x2b'),''),this[_0x1251('0x2')]=this[_0x1251('0x20')](),this['saveButtonView']=this[_0x1251('0x13')](_0x567692(_0x4a4231,_0x1251('0x3')),_0x3ad22d[_0x1251('0x25')],'ck-button-save'),this[_0x1251('0xc')][_0x1251('0x0')]='submit',this[_0x1251('0x6')]=this['_createButton'](_0x567692(_0x4a4231,_0x1251('0x1')),_0x3ad22d[_0x1251('0x7')],_0x1251('0x29'),_0x1251('0x7')),this['_focusables']=new _0xd424fe(),this[_0x1251('0x1e')]=new _0x2ca463({'focusables':this['_focusables'],'focusTracker':this[_0x1251('0xf')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x1251('0x9'),'focusNext':_0x1251('0x16')}}),this[_0x1251('0x19')]({'tag':_0x1251('0x21'),'attributes':{'class':['ck','ck-revision-history-save-revision-form',_0x1251('0x22')],'tabindex':'-1'},'children':[this[_0x1251('0x2')],this[_0x1251('0xc')],this[_0x1251('0x6')]]}),_0x20994f(this);}[_0x1251('0x12')](){super[_0x1251('0x12')](),_0x5934c7({'view':this}),([this[_0x1251('0x2')],this[_0x1251('0xc')],this[_0x1251('0x6')]]['forEach'](_0x214a7a=>{this[_0x1251('0x28')][_0x1251('0xb')](_0x214a7a),this[_0x1251('0xf')][_0x1251('0xb')](_0x214a7a[_0x1251('0xd')]);}),this['keystrokes'][_0x1251('0x27')](this['element']));const _0x39c00f=_0x3f66ef=>_0x3f66ef['stopPropagation']();this[_0x1251('0x10')]['set'](_0x1251('0x1b'),_0x39c00f),this['keystrokes'][_0x1251('0x23')](_0x1251('0x24'),_0x39c00f),this[_0x1251('0x10')][_0x1251('0x23')](_0x1251('0x1d'),_0x39c00f),this[_0x1251('0x10')][_0x1251('0x23')](_0x1251('0xa'),_0x39c00f);}[_0x1251('0x5')](){this['_focusCycler'][_0x1251('0x8')]();}get[_0x1251('0x4')](){return this[_0x1251('0x2')][_0x1251('0x1f')][_0x1251('0xd')][_0x1251('0x26')][_0x1251('0x1c')]();}set['revisionName'](_0x549ba9){this['revisionNameInputView'][_0x1251('0x1f')][_0x1251('0xd')]['value']=_0x549ba9[_0x1251('0x1c')]();}[_0x1251('0x14')](){this[_0x1251('0x2')][_0x1251('0x1f')][_0x1251('0xd')][_0x1251('0x26')]='';}[_0x1251('0x20')](){const _0x49837f=new _0xc94ef4(this['locale'],_0x412b14),_0x2c392d=_0x49837f[_0x1251('0x1f')];return _0x2c392d['extendTemplate']({'attributes':{'maxlength':'220'}}),_0x49837f[_0x1251('0x15')]=_0x567692(this[_0x1251('0x18')],_0x1251('0x17')),_0x2c392d['on'](_0x1251('0xe'),()=>{this[_0x1251('0x2b')]=_0x2c392d[_0x1251('0xd')]['value'][_0x1251('0x1c')]();}),_0x49837f;}[_0x1251('0x13')](_0x1a150c,_0x2b1119,_0x25c216,_0x41de00){const _0x56ea5e=new _0x1aaafe(this[_0x1251('0x18')]);return _0x56ea5e[_0x1251('0x23')]({'label':_0x1a150c,'icon':_0x2b1119,'tooltip':!0x0}),_0x56ea5e[_0x1251('0x2a')]({'attributes':{'class':_0x25c216}}),_0x41de00&&_0x56ea5e[_0x1251('0x11')](_0x1251('0x1a'))['to'](this,_0x41de00),_0x56ea5e;}}