@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231030.0 → 0.0.0-nightly-20231101.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 _0x1bd0=['RevisionViewer','mousedown','_appendChild','pairId','isBlock','markerNameToElements','concat','insertion','ck-suggestion-marker','span','markerToData','indexOf','revision-start','_markInsertions','_data','right','isObject','createPositionBefore','updatePosition','attributes','elementStart','parse','createRange','toViewPosition','side','ck-editor__editable__overlay','consume','isAttached','_makeModelFromTape','element','_setConversion','roots','_setDistance','createAttributeElement','removeAttribute','_setChanges','getCustomProperty','_processTape','addMarker:revision-suggestion:deletion','vid','_cleanMarkers','_getDiff','string','diff','vid_end','isReady','nodeAfter','children','reconvertMarker','code','_changeIdToChange','index','checkAttribute','editingDowncast','then','deletion','_cleanUp','toModel','_joinTapes','_refreshStartEndIndex','markerRange','sort','showStack','_getViewObj','split','listenTo','splice','target','hasAttribute','values','_removeUnsupportedChanges','isNavigationMode','ck-suggestion-preview-marker','start','processor','revision:','markersEnd','dataToMarker','ck-suggestion-marker--active','getRevision','viewItem','isRemoved','mapper','length','done','activeChange','getIndex','keys','nextPosition','activeView','element:pre','toViewRange','revision-suggestion','isEnabled','isAfter','model','revisionHistoryAttachChange','isCollapsed','range','isIncorrect','removeClass','repository','isEqual','elementToAttribute','addHighlight','oldRevisionId','get','data-revision-','type','domEvent','addMarker:revision-suggestion:insertion','refresh','change:activeChange','RevisionsRepository','from','view','_balloon','changeId','merge','dataDowncast','setAttribute','POSITIVE_INFINITY','adapter','editor','diffData','_getRevisionsRange','revision-suggestion:','stop','error','addRoot','isAddSuggestion','_removeMissingPairs','flat','init','ck-revision-history-root--active','maxOffset','revision-viewer','_findChangeIdFromDomTarget','isAdded','-new','next','name','startIndex','newRevisionId','map','getClientRects','_update','getRoot','getRootNames','addRevision','delete','compare','change:isReady','return','insert','nextSibling','top','ck-suggestion-preview-marker-','enableReadOnlyMode','high','elementEnd','data-change-id','pluginName','abs','enqueueChange','collaboration.channelId','unshift','revision-end','conversion','useFillerType','schema','attributesAfter','backward','WidgetToolbarRepository','has','offsetSize','getWalker','text','change','distance','isBefore','upcast','isAtStart','numberOfChanges','data','revisionHistoryLabel','modelRange','revision-comment:','_markMismatchedRemovedTags','createPositionFromPath','detachRoot','userId','revision','_removeRevisionMarkers','_getViewForChange','isOnRoot','end','unbindElementFromMarkerName','_makeModelFromViewString','bottom','object','ck-suggestion-marker-merge','change:activeView','writer','filter','_fixObsoleteTags','downcastDispatcher','bindElementToMarker','ck-suggestion-marker-','isSuggestion','removeMarker:revision-suggestion','isLimit','consumable','previousPosition','removeMarker:revision','getRevisionRootsAttributes','document','plugins','destroy','_markMarkers','forward','_markSuggestions','loadRevisionData','commands','getChild','suggestion:','attachChange','rootName','ck-revision-history-root-remove','attributesBefore','level','observeMarkers','forEach','highest','changes','getItems','toViewElement','_initInteractions','addMarker:revision','item','set','default','first','resolve','getAttributes','add','isRemoveSuggestion','findIndex','toData','_activeViewTarget','editing','getDomRoot','markerToHighlight','all','uiElement','getRevisionData','_step','createRangeIn','createRevision','catch','softBreak','createUIElement','parent','config','addClass','markerName','low','remove','selection','_revisions','_threeWayMerge','requires','showPreviousChange','_changeView','mapViewToDom','bind','showNextChange','hasClass','ck-revision-history-root-add','forceDisabled','markersStart','vid_start','comment','test','ck-revision-history-root-','change:isEnabled','_getChangeFromId','deletions','markers','restoreRevisionCallback','affectsData','for','ck-suggestion-marker-split','insertions','revisionHistory','push','getAttribute','shift','endIndex','authors','execute','change:numberOfChanges'];(function(_0x422878,_0x1bd0c3){const _0x5eb61f=function(_0x5f08ac){while(--_0x5f08ac){_0x422878['push'](_0x422878['shift']());}};_0x5eb61f(++_0x1bd0c3);}(_0x1bd0,0x17a));const _0x5eb6=function(_0x422878,_0x1bd0c3){_0x422878=_0x422878-0x0;let _0x5eb61f=_0x1bd0[_0x422878];return _0x5eb61f;};import{Plugin as _0x5325cf,Command as _0x17001f}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x198d78}from'ckeditor5/src/utils';import{ContextualBalloon as _0x115b34}from'ckeditor5/src/ui';import{DocumentFragment as _0x308b28,Element as _0x1f2448,Text as _0x37f40e,ViewDocumentFragment as _0x610417,ViewText as _0x2c4a06,ViewElement as _0x38a0de,ViewContainerElement as _0x4517ed,ViewAttributeElement as _0x5bce6e,ViewEmptyElement as _0x436934,ViewRawElement as _0x221a2f,ViewUIElement as _0x19a2f1}from'ckeditor5/src/engine';import{Users as _0x8f1fcd,getMarkerDomElement as _0x363016}from'ckeditor5-collaboration/src/collaboration-core';import _0x1eabbc from'./ui/revisionviewer/changedetailsview';import _0x5dd569 from'./revisionsrepository';import _0x3aa243 from'./changeitem';import{default as _0x5c35d8}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x1e9154}from'lodash-es';const tt={'c':_0x4517ed,'a':_0x5bce6e,'e':_0x436934,'r':_0x221a2f,'u':_0x19a2f1};export default class d extends _0x5325cf{static get[_0x5eb6('0x56')](){return _0x5eb6('0xe2');}static get[_0x5eb6('0xc3')](){return[_0x8f1fcd,_0x115b34,_0x5dd569];}constructor(_0x322440){super(_0x322440),this[_0x5eb6('0x19')]=this[_0x5eb6('0x2f')]['plugins']['get'](_0x5eb6('0x25')),this['set'](_0x5eb6('0x9'),null),this[_0x5eb6('0xa4')]('activeView',null),this['_activeViewTarget']=null,this[_0x5eb6('0xa4')](_0x5eb6('0x10d'),null),this[_0x5eb6('0xa4')](_0x5eb6('0x10f'),!0x1),this[_0x5eb6('0xa4')](_0x5eb6('0x11'),!0x0),this['on'](_0x5eb6('0xd1'),(_0x215f5b,_0x494b19,_0x43ba04)=>{this[_0x5eb6('0x9')]=null,this[_0x5eb6('0xd')]=null,this[_0x5eb6('0x2f')][_0x5eb6('0xae')][_0x5eb6('0x27')]['change'](_0x59e679=>{for(const _0x17b7e0 of this[_0x5eb6('0x2f')][_0x5eb6('0xae')]['view'][_0x5eb6('0x8c')][_0x5eb6('0x101')])_0x43ba04?_0x59e679['removeClass'](_0x5eb6('0xfb'),_0x17b7e0):_0x59e679[_0x5eb6('0xbc')](_0x5eb6('0xfb'),_0x17b7e0);});}),this[_0x5eb6('0xc7')](_0x5eb6('0x129'))['to'](this,'activeChange',_0x3a215b=>null!==_0x3a215b),this['bind']('currentChangeNumber')['to'](this,_0x5eb6('0x10f'),this,_0x5eb6('0x10d'),this,_0x5eb6('0x9'),(_0x3fc651,_0x3d25b9,_0x270701)=>_0x3fc651&&_0x270701?_0x3d25b9[_0x5eb6('0x9e')][_0x5eb6('0xa')](_0x270701):0x0),this['bind'](_0x5eb6('0x6b'))['to'](this,_0x5eb6('0x10f'),this,_0x5eb6('0x10d'),(_0x1795be,_0x11c764)=>_0x1795be?_0x11c764[_0x5eb6('0x9e')][_0x5eb6('0x7')]:0x0),this[_0x5eb6('0xc5')]=null,this[_0x5eb6('0x114')]=new Map(),this[_0x5eb6('0x2e')]=null,this['_balloon']=this[_0x5eb6('0x2f')][_0x5eb6('0x8d')][_0x5eb6('0x1e')](_0x115b34);}[_0x5eb6('0x39')](){const _0x1a8bf5=this['editor'],_0x37699b=new ShowChangeCommand(_0x1a8bf5,{'direction':_0x5eb6('0x60')}),_0x31c1dd=new ShowChangeCommand(_0x1a8bf5,{'direction':_0x5eb6('0x90')});(_0x1a8bf5[_0x5eb6('0x93')][_0x5eb6('0xa9')](_0x5eb6('0xc4'),_0x37699b),_0x1a8bf5[_0x5eb6('0x93')][_0x5eb6('0xa9')](_0x5eb6('0xc8'),_0x31c1dd),_0x1a8bf5[_0x5eb6('0x93')]['add']('restoreRevision',new RestoreRevisionCommand(_0x1a8bf5)),this['on'](_0x5eb6('0xe1'),()=>{_0x37699b[_0x5eb6('0x23')](),_0x31c1dd[_0x5eb6('0x23')]();}),this[_0x5eb6('0x100')](),this[_0x5eb6('0xa1')](),_0x1a8bf5[_0x5eb6('0x52')]('revision-viewer'),_0x1a8bf5[_0x5eb6('0x8d')][_0x5eb6('0x62')]('WidgetToolbarRepository'))&&_0x1a8bf5['plugins']['get'](_0x5eb6('0x61'))[_0x5eb6('0xcb')](_0x5eb6('0x3c'));}async[_0x5eb6('0xb3')](_0x39950c){await this[_0x5eb6('0x92')](_0x39950c);const _0x43a226={};for(const _0x1464cb in _0x39950c[_0x5eb6('0x30')]){if(_0x39950c[_0x5eb6('0x30')][_0x1464cb][_0x5eb6('0x96')]&&!_0x39950c[_0x5eb6('0x30')][_0x1464cb]['attachChange'][_0x5eb6('0xfd')])continue;const _0x58193e=this[_0x5eb6('0x75')](JSON[_0x5eb6('0xf7')](_0x39950c['diffData'][_0x1464cb][_0x5eb6('0xd9')])),_0x381de1=this[_0x5eb6('0x2f')][_0x5eb6('0xae')][_0x5eb6('0x27')][_0x5eb6('0x8c')],_0x51e6af=new _0x610417(_0x381de1,_0x58193e['map'](_0x1f4f38=>this[_0x5eb6('0x121')](_0x1f4f38)));this[_0x5eb6('0x2f')][_0x5eb6('0x6c')][_0x5eb6('0x12c')][_0x5eb6('0x5d')]('marked'),_0x43a226[_0x1464cb]=this[_0x5eb6('0x2f')][_0x5eb6('0x6c')][_0x5eb6('0x12c')][_0x5eb6('0xac')](_0x51e6af),this['editor'][_0x5eb6('0x6c')][_0x5eb6('0x12c')][_0x5eb6('0x5d')](_0x5eb6('0xa5'));}return _0x43a226;}async[_0x5eb6('0x8b')](_0x1aac4e){await this['loadRevisionData'](_0x1aac4e);const _0x1eee50={};for(const _0x4ed9e6 in _0x1aac4e[_0x5eb6('0x30')])_0x1aac4e[_0x5eb6('0x30')][_0x4ed9e6][_0x5eb6('0x96')]&&!_0x1aac4e['diffData'][_0x4ed9e6][_0x5eb6('0x96')][_0x5eb6('0xfd')]||(_0x1eee50[_0x4ed9e6]=_0x1aac4e[_0x5eb6('0x30')][_0x4ed9e6]['attributesAfter']||{});return _0x1eee50;}[_0x5eb6('0x75')](_0x1b4776){return(_0x1b4776=_0x1b4776[_0x5eb6('0x80')](_0x217612=>!_0x217612[_0x5eb6('0x41')]||_0x5eb6('0xee')!==_0x217612[_0x5eb6('0x41')]&&_0x5eb6('0x5b')!==_0x217612[_0x5eb6('0x41')]))[_0x5eb6('0x9c')](_0x116955=>{_0x5eb6('0x10c')!=typeof _0x116955&&(_0x116955[_0x5eb6('0x111')]=this['_removeRevisionMarkers'](_0x116955['children']),_0x116955['attributes']=_0x116955[_0x5eb6('0xf5')]['filter'](_0x55df42=>!_0x55df42[0x0]['startsWith'](_0x5eb6('0x1f'))));}),_0x1b4776;}async[_0x5eb6('0x4b')](_0x10f0ef,_0x11e57f,_0x265f82=!0x1){if(!this[_0x5eb6('0x11')])return;const _0x32f6f4=this[_0x5eb6('0x10d')],_0x1d2dc0=this[_0x5eb6('0x19')],_0x437f75=_0x5eb6('0x10c')==typeof _0x10f0ef?_0x1d2dc0['getRevision'](_0x10f0ef):_0x10f0ef,_0x2e22e9=_0x5eb6('0x10c')==typeof _0x11e57f?_0x1d2dc0[_0x5eb6('0x3')](_0x11e57f):_0x11e57f,_0x5a8846=_0x437f75['id'],_0x1adf85=_0x2e22e9?_0x2e22e9['id']:null;if(!_0x265f82&&this[_0x5eb6('0x10d')]&&this[_0x5eb6('0x10d')][_0x5eb6('0x43')]===_0x5a8846&&this[_0x5eb6('0x10d')][_0x5eb6('0x1d')]===_0x1adf85)return Promise['resolve']();this[_0x5eb6('0x10f')]=!0x1,this['activeView']=null,this['activeChange']=null,this[_0x5eb6('0x10d')]=new _0x5c35d8(_0x5a8846,_0x1adf85);const _0x4a926f=this[_0x5eb6('0x31')](_0x437f75,_0x2e22e9,!0x0)[_0x5eb6('0x44')](_0x495f4f=>this['loadRevisionData'](_0x495f4f));return _0x4a926f['push'](new Promise(_0x358b7e=>{setTimeout(_0x358b7e,0x14);})),Promise[_0x5eb6('0xb1')](_0x4a926f)[_0x5eb6('0x118')](()=>{if(!this[_0x5eb6('0x11')])return;this[_0x5eb6('0x11a')]();const _0x3aa94f=this[_0x5eb6('0x10b')](_0x5a8846,_0x1adf85);for(const _0x30b4ff of _0x3aa94f['changes'])this[_0x5eb6('0x114')][_0x5eb6('0xa4')](_0x30b4ff['id'],_0x30b4ff);this['editor'][_0x5eb6('0x13')][_0x5eb6('0x58')]({'isUndoable':!0x1},_0x47e2d=>{for(const _0x3b2019 of this[_0x5eb6('0x2f')][_0x5eb6('0x13')]['document'][_0x5eb6('0x48')]())_0x47e2d[_0x5eb6('0x72')](_0x3b2019);for(const _0x3443d6 of Object[_0x5eb6('0xb')](_0x3aa94f[_0x5eb6('0x13')])){const _0x455243=_0x47e2d[_0x5eb6('0x35')](_0x3443d6);for(const _0x4fcb8a of Object[_0x5eb6('0xb')](_0x3aa94f[_0x5eb6('0xf5')][_0x3443d6]))_0x47e2d[_0x5eb6('0x2c')](_0x4fcb8a,_0x3aa94f[_0x5eb6('0xf5')][_0x3443d6][_0x4fcb8a],_0x455243);_0x47e2d[_0x5eb6('0x4e')](_0x3aa94f[_0x5eb6('0x13')][_0x3443d6],_0x455243,0x0);}}),this[_0x5eb6('0x10d')][_0x5eb6('0x105')](this['_sortAndFilterDiffChanges'](_0x3aa94f['changes'])),this[_0x5eb6('0x10f')]=!0x0;})[_0x5eb6('0xb7')](_0x5116fa=>{console[_0x5eb6('0x34')](_0x5116fa),this[_0x5eb6('0x11a')](),_0x32f6f4&&(this[_0x5eb6('0x10d')]=_0x32f6f4),this[_0x5eb6('0x10f')]=!0x0;});}['addRevisionData'](_0x1e3fbe,_0x29651a){const _0x3ceb74=this['repository'][_0x5eb6('0xb6')](_0x1e3fbe);return _0x3ceb74['on'](_0x5eb6('0x46'),(_0x320bd2,_0x4157d8,_0x1c959a)=>_0x29651a(_0x4157d8,_0x1c959a,_0x3ceb74)),this[_0x5eb6('0x19')][_0x5eb6('0x49')](_0x3ceb74),_0x3ceb74;}[_0x5eb6('0x92')](_0x8d9440){if(!_0x8d9440||_0x8d9440[_0x5eb6('0x30')])return Promise[_0x5eb6('0xa7')]();{const _0xd22013=this[_0x5eb6('0x2f')][_0x5eb6('0xbb')][_0x5eb6('0x1e')](_0x5eb6('0x59'));return this[_0x5eb6('0x2e')][_0x5eb6('0x3')]({'channelId':_0xd22013,'revisionId':_0x8d9440['id']})[_0x5eb6('0x118')](_0x166aa3=>{_0x8d9440[_0x5eb6('0x46')]({'diffData':_0x166aa3[_0x5eb6('0x30')]},!0x0);});}}[_0x5eb6('0x11a')](){this[_0x5eb6('0x9')]=null,this[_0x5eb6('0x10a')](),this['_changeView']&&this[_0x5eb6('0xc5')][_0x5eb6('0x8e')](),this[_0x5eb6('0xc5')]=null,this['_changeIdToChange']['clear'](),this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x58')]({'isUndoable':!0x1},_0x59f786=>{for(const _0x38d877 of this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x8c')][_0x5eb6('0x48')]())_0x59f786[_0x5eb6('0x72')](_0x38d877);});}['_sortAndFilterDiffChanges'](_0x2b25c0){const _0xd61820=[],_0x3567b9=new Map();for(const _0xad7a47 of this[_0x5eb6('0x2f')][_0x5eb6('0x13')]['document'][_0x5eb6('0x48')]()){const _0x3aa867=this[_0x5eb6('0x2f')]['editing'][_0x5eb6('0x27')]['getDomRoot'](_0xad7a47);if(!_0x3aa867)continue;const _0x213e52=_0x3aa867['getClientRects']()['item'](0x0);_0x213e52&&(_0xd61820[_0x5eb6('0xdb')](_0xad7a47),_0x3567b9[_0x5eb6('0xa4')](_0xad7a47,_0x213e52));}return _0xd61820['sort']((_0x31429d,_0x200fd0)=>{const _0x415488=_0x3567b9['get'](_0x31429d),_0x27cc36=_0x3567b9[_0x5eb6('0x1e')](_0x200fd0);return _0x415488['y']-_0x27cc36['y']||_0x415488['x']-_0x27cc36['x'];}),(_0x2b25c0=_0x2b25c0[_0x5eb6('0x80')](_0x153f6e=>_0xd61820['includes'](_0x153f6e[_0x5eb6('0x97')])))[_0x5eb6('0x11f')]((_0x28c1c5,_0x32aff4)=>_0xd61820['indexOf'](_0x28c1c5[_0x5eb6('0x97')])-_0xd61820[_0x5eb6('0xed')](_0x32aff4[_0x5eb6('0x97')])),_0x2b25c0;}['_makeTape'](_0x18461b){const _0x128f12=Array[_0x5eb6('0x26')](_0x18461b[_0x5eb6('0xd4')])[_0x5eb6('0x80')](([_0x3a50bd,_0x2930aa])=>_0x3a50bd['startsWith'](_0x5eb6('0x12d'))&&!_0x2930aa[_0x5eb6('0x15')]),_0x42e9af=Array[_0x5eb6('0x26')](this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0xb5')](_0x18461b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x128f12[_0x5eb6('0x7')])for(const _0x492a35 of _0x42e9af){const [_0x34db0b,_0x3e100e]=_0x128f12[0x0],[,_0x392fe9,_0xfd81d4]=_0x34db0b[_0x5eb6('0x122')](':');if(_0x3e100e[_0x5eb6('0x78')][_0x5eb6('0x1a')](_0x492a35[_0x5eb6('0xc')])&&_0x128f12[_0x5eb6('0xdd')](),(_0x492a35[_0x5eb6('0x89')][_0x5eb6('0x1a')](_0x3e100e[_0x5eb6('0x12b')])||_0x492a35[_0x5eb6('0x89')]['isAfter'](_0x3e100e[_0x5eb6('0x12b')]))&&(_0x5eb6('0xe9')==_0x392fe9?_0x492a35[_0x5eb6('0x3e')]={'userId':_0xfd81d4}:_0x5eb6('0x119')==_0x392fe9&&(_0x492a35[_0x5eb6('0x5')]={'userId':_0xfd81d4})),0x0==_0x128f12['length'])break;}return _0x42e9af;}['_refreshStartEndIndex'](_0x596c5e){const _0x3be66b=new Map();for(let _0x876b4e=0x0;_0x876b4e<_0x596c5e[_0x5eb6('0x7')];_0x876b4e++)_0x5eb6('0x65')===_0x596c5e[_0x876b4e]['type']?(_0x596c5e[_0x876b4e]['item'][_0x5eb6('0x42')]=_0x876b4e,_0x596c5e[_0x876b4e][_0x5eb6('0xa3')]['endIndex']=_0x876b4e):(_0x5eb6('0xf6')===_0x596c5e[_0x876b4e][_0x5eb6('0x20')]?_0x596c5e[_0x876b4e][_0x5eb6('0xa3')][_0x5eb6('0x42')]=_0x876b4e:'elementEnd'===_0x596c5e[_0x876b4e][_0x5eb6('0x20')]&&(_0x596c5e[_0x876b4e][_0x5eb6('0xa3')][_0x5eb6('0xde')]=_0x876b4e),_0x3be66b[_0x5eb6('0xa4')](_0x596c5e[_0x876b4e]['id'],_0x876b4e));for(const _0x320ce5 of _0x3be66b[_0x5eb6('0x127')]())_0x5eb6('0xf6')===_0x596c5e[_0x320ce5][_0x5eb6('0x20')]?_0x596c5e[_0x320ce5][_0x5eb6('0xa3')][_0x5eb6('0xde')]=_0x3be66b[_0x5eb6('0x1e')](_0x596c5e[_0x320ce5][_0x5eb6('0xe5')]):_0x5eb6('0x54')===_0x596c5e[_0x320ce5][_0x5eb6('0x20')]&&(_0x596c5e[_0x320ce5][_0x5eb6('0xa3')]['startIndex']=_0x3be66b[_0x5eb6('0x1e')](_0x596c5e[_0x320ce5][_0x5eb6('0xe5')]));}[_0x5eb6('0x107')](_0x36c76b){for(let _0x5d1b6a=0x0;_0x5d1b6a<_0x36c76b[_0x5eb6('0x7')];_0x5d1b6a++){if('elementStart'===_0x36c76b[_0x5d1b6a]['type'])_0x36c76b[_0x5d1b6a][_0x5eb6('0xa3')][_0x5eb6('0x42')]=_0x5d1b6a;else{if(_0x5eb6('0x54')===_0x36c76b[_0x5d1b6a]['type']){_0x36c76b[_0x5d1b6a]['item'][_0x5eb6('0xde')]=_0x5d1b6a;const _0x133555=_0x36c76b[_0x5d1b6a]['item'][_0x5eb6('0x42')];_0x36c76b[_0x133555][_0x5eb6('0xe5')]=_0x36c76b[_0x5d1b6a]['id'],_0x36c76b[_0x5d1b6a][_0x5eb6('0xe5')]=_0x36c76b[_0x133555]['id'];}else _0x36c76b[_0x5d1b6a][_0x5eb6('0xa3')]['startIndex']=_0x5d1b6a,_0x36c76b[_0x5d1b6a]['item']['endIndex']=_0x5d1b6a,_0x36c76b[_0x5d1b6a][_0x5eb6('0xe5')]=null;}_0x36c76b[_0x5d1b6a][_0x5eb6('0xcc')]||(_0x36c76b[_0x5d1b6a][_0x5eb6('0xcc')]=[],_0x36c76b[_0x5d1b6a][_0x5eb6('0x0')]=[]);}}[_0x5eb6('0xef')](_0x4b5996,_0x2c61da){const _0x31ce8f=_0x4b5996['filter'](_0x4d00b6=>!_0x4d00b6[_0x5eb6('0x3e')]);for(let _0x3e520a=0x0;_0x3e520a<_0x2c61da[_0x5eb6('0x7')];_0x3e520a++)_0x2c61da[_0x3e520a]['isAdded']&&(_0x31ce8f[_0x3e520a][_0x5eb6('0x3e')]=_0x2c61da[_0x3e520a][_0x5eb6('0x3e')]);}[_0x5eb6('0x7a')](_0x59bdd0){const _0x17be8d=JSON[_0x5eb6('0xf7')](_0x59bdd0),_0x161eb4=this[_0x5eb6('0x2f')][_0x5eb6('0xae')][_0x5eb6('0x27')]['document'],_0x3c095a=new _0x610417(_0x161eb4,_0x17be8d[_0x5eb6('0x44')](_0x1db797=>this[_0x5eb6('0x121')](_0x1db797)));return this['editor'][_0x5eb6('0x6c')][_0x5eb6('0x11b')](_0x3c095a);}[_0x5eb6('0x121')](_0x36e2c4){const _0x1e1cba=this[_0x5eb6('0x2f')]['editing'][_0x5eb6('0x27')]['document'];if('string'==typeof _0x36e2c4)return new _0x2c4a06(_0x1e1cba,_0x36e2c4);{const _0x269ce9=_0x36e2c4[_0x5eb6('0x111')][_0x5eb6('0x44')](_0x2412d1=>this[_0x5eb6('0x121')](_0x2412d1));return new(tt[_0x36e2c4[(_0x5eb6('0x20'))]]||_0x38a0de)(_0x1e1cba,_0x36e2c4[_0x5eb6('0x41')],_0x36e2c4['attributes'],_0x269ce9);}}['_getDiff'](_0x33e521,_0x688d9f=null){const _0xe32621=this['repository'][_0x5eb6('0x3')](_0x33e521),_0x2642a9=_0x688d9f?this[_0x5eb6('0x19')]['getRevision'](_0x688d9f):null,_0x353873=this[_0x5eb6('0x31')](_0xe32621,_0x2642a9),_0x463844=_0x353873[_0x353873[_0x5eb6('0x7')]-0x1],_0x5f2b84=new Map(),_0x57cc6e={'model':{},'attributes':{},'changes':[]},_0x3f04da=new Set(),_0x246d50=new Map();for(let _0x4eb9ce=_0x353873[_0x5eb6('0x7')]-0x1;_0x4eb9ce>=0x0;_0x4eb9ce--){const _0x5b5454=_0x353873[_0x4eb9ce];for(const _0x507748 of Object['keys'](_0x5b5454[_0x5eb6('0x30')]))if(_0x5b5454[_0x5eb6('0x30')][_0x507748]['attachChange']){const _0x551f84=_0x5b5454['diffData'][_0x507748]['attachChange'];_0x551f84[_0x5eb6('0xfd')]?(_0x3f04da['add'](_0x507748),_0x246d50['has'](_0x507748)&&_0x246d50[_0x5eb6('0x1e')](_0x507748)[_0x5eb6('0x73')]==_0x551f84[_0x5eb6('0x73')]?_0x246d50[_0x5eb6('0x4a')](_0x507748):_0x246d50['set'](_0x507748,_0x551f84)):_0x246d50[_0x5eb6('0x62')](_0x507748)?(_0x3f04da[_0x5eb6('0x4a')](_0x507748),_0x246d50[_0x5eb6('0x4a')](_0x507748)):(_0x3f04da[_0x5eb6('0xa9')](_0x507748),_0x246d50[_0x5eb6('0xa4')](_0x507748,_0x551f84));}else _0x3f04da[_0x5eb6('0xa9')](_0x507748);}for(const _0x4500b0 of _0x3f04da){const _0x561657=_0x246d50['has'](_0x4500b0)&&!_0x246d50[_0x5eb6('0x1e')](_0x4500b0)[_0x5eb6('0xfd')];let _0x11915c=_0x561657?_0x353873[_0x5eb6('0x7')]-0x1:0x0;const _0x4b269c=_0x561657?-0x1:0x1;for(;_0x353873[_0x11915c];){const _0xee37a4=_0x353873[_0x11915c];if(_0xee37a4[_0x5eb6('0x30')][_0x4500b0]){const _0x521fd8=_0x561657?_0xee37a4[_0x5eb6('0x30')][_0x4500b0][_0x5eb6('0x99')]:_0xee37a4[_0x5eb6('0x30')][_0x4500b0][_0x5eb6('0x5f')];_0x57cc6e[_0x5eb6('0xf5')][_0x4500b0]=_0x521fd8?_0x1e9154(_0x521fd8):{};break;}_0x11915c+=_0x4b269c;}}for(const _0x456f50 of _0x353873){_0x456f50[_0x5eb6('0x13')]={};for(const _0x2534bb of _0x456f50[_0x5eb6('0xdf')])_0x5f2b84[_0x5eb6('0xa4')](_0x2534bb['id'],_0x2534bb);for(const _0x4edf48 of _0x3f04da){const _0x4d8c76=_0x456f50[_0x5eb6('0x30')][_0x4edf48]?_0x456f50[_0x5eb6('0x30')][_0x4edf48][_0x5eb6('0xd9')]:'[]',_0x2dc382=_0x456f50[_0x5eb6('0x30')][_0x4edf48]?_0x456f50['diffData'][_0x4edf48]['deletions']:'[]';_0x456f50[_0x5eb6('0x13')][_0x4edf48]={'insertions':this[_0x5eb6('0x7a')](_0x4d8c76),'deletions':this[_0x5eb6('0x7a')](_0x2dc382)};}}for(const _0x2bafb2 of _0x3f04da){let _0x46082d=null,_0x26cf5b=0x0;const _0x4cb9b3=new Map(Array[_0x5eb6('0x26')](_0xe32621[_0x5eb6('0x13')][_0x2bafb2][_0x5eb6('0xd9')][_0x5eb6('0xd4')])['filter'](([_0x38d6f0])=>!_0x38d6f0['startsWith'](_0x5eb6('0x12d'))));let _0x45cbca=0x0;for(const _0x4625ce of _0x353873){const _0x111274=this['_makeTape'](_0x4625ce[_0x5eb6('0x13')][_0x2bafb2][_0x5eb6('0xd9')]);_0x4625ce==_0xe32621?(_0x46082d=_0x111274,_0x26cf5b=_0x46082d[_0x5eb6('0x7')],_0x46082d[_0x5eb6('0x9c')](_0x224e81=>{_0x224e81['id']=_0x45cbca++;}),this['_processTape'](_0x46082d)):this['_markInsertions'](_0x46082d,_0x111274);const _0x230733=_0x46082d[_0x5eb6('0x80')](_0x1a88d6=>!_0x1a88d6[_0x5eb6('0x3e')])[_0x5eb6('0x44')](_0x204a34=>_0x204a34['id']);let _0x1c0c41=0x0;const _0x4bed33=this['_makeTape'](_0x4625ce[_0x5eb6('0x13')][_0x2bafb2][_0x5eb6('0xd3')]);_0x4bed33[_0x5eb6('0x9c')](_0x26ed10=>{_0x26ed10[_0x5eb6('0x5')]?_0x26ed10['id']=_0x26cf5b++:_0x26ed10['id']=_0x230733[_0x1c0c41++];}),this[_0x5eb6('0x107')](_0x4bed33),this[_0x5eb6('0x102')](_0x46082d,_0x5eb6('0x3e')),this[_0x5eb6('0x102')](_0x4bed33,'isRemoved'),_0x4625ce==_0xe32621&&this['_markMarkers'](_0x46082d,_0x4cb9b3),_0x46082d=this[_0x5eb6('0x11c')](_0x46082d,_0x4bed33),this[_0x5eb6('0x11d')](_0x46082d),this[_0x5eb6('0x102')](_0x46082d,'isRemoved');}_0x46082d=_0x46082d[_0x5eb6('0x80')](_0x2b86c8=>!(_0x2b86c8[_0x5eb6('0x3e')]&&_0x2b86c8[_0x5eb6('0x5')]));const _0x1fe20a=new Map(_0x463844[_0x5eb6('0x13')][_0x2bafb2]['deletions'][_0x5eb6('0xd4')]),_0xd2423c=new Set(_0x4cb9b3[_0x5eb6('0xb')]());for(const _0x3647ac of _0x1fe20a['keys']())_0xd2423c[_0x5eb6('0x4a')](_0x3647ac);this[_0x5eb6('0x91')](_0x46082d,_0xd2423c),this[_0x5eb6('0x81')](_0x46082d),_0x46082d=this[_0x5eb6('0x37')](_0x46082d),_0x46082d=this['_markMismatchedRemovedTags'](_0x46082d),_0x46082d=this['_removeUnsupportedChanges'](_0x46082d);const {root:_0x229dfa,changes:_0x515260}=this[_0x5eb6('0xfe')](_0x46082d,_0x5f2b84,_0x2bafb2);_0x57cc6e[_0x5eb6('0x13')][_0x2bafb2]=_0x229dfa;const _0x5776fc=_0x246d50['get'](_0x2bafb2);if(_0x5776fc){const _0x399816=_0x5f2b84[_0x5eb6('0x1e')](_0x5776fc[_0x5eb6('0x73')]),_0x45b917=new _0x3aa243({'author':_0x399816,'type':_0x5776fc[_0x5eb6('0xfd')]?_0x5eb6('0xa9'):_0x5eb6('0xbf'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2bafb2});_0x515260['unshift'](_0x45b917),_0x57cc6e[_0x5eb6('0xf5')][_0x2bafb2][_0x5eb6('0x14')]=_0x45b917['id'];}_0x57cc6e[_0x5eb6('0x9e')]=_0x57cc6e[_0x5eb6('0x9e')][_0x5eb6('0xe8')](_0x515260);}return _0x57cc6e;}[_0x5eb6('0x8f')](_0x10582a,_0x4693ea){for(let _0x50b3fe=0x0;_0x50b3fe<_0x10582a[_0x5eb6('0x7')];_0x50b3fe++)for(const [_0x156718,_0x4204ed]of _0x4693ea)_0x4204ed[_0x5eb6('0x12b')][_0x5eb6('0x1a')](_0x10582a[_0x50b3fe]['previousPosition'])&&_0x10582a[_0x50b3fe][_0x5eb6('0xcc')][_0x5eb6('0xdb')](_0x156718),_0x4204ed[_0x5eb6('0x78')][_0x5eb6('0x1a')](_0x10582a[_0x50b3fe][_0x5eb6('0xc')])&&_0x10582a[_0x50b3fe]['markersEnd']['push'](_0x156718);}[_0x5eb6('0x11c')](_0x1a06db,_0x25b623){let _0x56739b=[],_0x201dfb=0x0,_0x2ea9fa=0x0;for(;_0x201dfb<_0x1a06db[_0x5eb6('0x7')]||_0x2ea9fa<_0x25b623[_0x5eb6('0x7')];){const _0x32cf4e=_0x1a06db[_0x201dfb]||{},_0x19fc1f=_0x25b623[_0x2ea9fa]||{};if(_0x32cf4e['id']==_0x19fc1f['id'])_0x201dfb++,_0x2ea9fa++,_0x56739b['push'](_0x32cf4e);else{if(_0x19fc1f['isRemoved']&&_0x32cf4e[_0x5eb6('0x3e')]){const {commonTape:_0x212b39,iEnd:_0x14a778,jEnd:_0x4784cf}=this['_threeWayMerge'](_0x1a06db,_0x201dfb,_0x25b623,_0x2ea9fa);_0x56739b=_0x56739b[_0x5eb6('0xe8')](_0x212b39),_0x201dfb=_0x14a778,_0x2ea9fa=_0x4784cf;}else _0x19fc1f[_0x5eb6('0x5')]?(_0x2ea9fa++,_0x56739b[_0x5eb6('0xdb')](_0x19fc1f)):(_0x201dfb++,_0x56739b['push'](_0x32cf4e));}}return _0x56739b;}['_markSuggestions'](_0x407023,_0x55c4c7){const _0x24090d=[];for(let _0x35f5ec=0x0;_0x35f5ec<_0x407023[_0x5eb6('0x7')];_0x35f5ec++){for(let _0x54469a=0x0;_0x54469a<_0x407023[_0x35f5ec]['markersStart'][_0x5eb6('0x7')];_0x54469a++){const _0x5bbb0c=_0x407023[_0x35f5ec][_0x5eb6('0xcc')][_0x54469a];if(!_0x55c4c7[_0x5eb6('0x62')](_0x5bbb0c))continue;const {group:_0x27ac76,type:_0x40a70a,authorId:_0x30909d}=_0x207282(_0x5bbb0c);_0x5eb6('0x10')!=_0x27ac76||_0x5eb6('0xe9')!=_0x40a70a&&_0x5eb6('0x119')!=_0x40a70a||(_0x24090d['unshift']({'type':_0x40a70a,'name':_0x5bbb0c,'userId':_0x30909d}),_0x407023[_0x35f5ec][_0x5eb6('0xcc')][_0x5eb6('0x124')](_0x54469a,0x1),_0x54469a--);}_0xb6ccee(_0x407023[_0x35f5ec]);for(let _0x3320be=0x0;_0x3320be<_0x407023[_0x35f5ec]['markersEnd'][_0x5eb6('0x7')];_0x3320be++){const _0x3fa3ff=_0x407023[_0x35f5ec][_0x5eb6('0x0')][_0x3320be];if(!_0x55c4c7[_0x5eb6('0x62')](_0x3fa3ff))continue;const {group:_0x513ed8,type:_0x1bcd1a}=_0x207282(_0x3fa3ff);if('revision-suggestion'!=_0x513ed8||_0x5eb6('0xe9')!=_0x1bcd1a&&_0x5eb6('0x119')!=_0x1bcd1a)continue;_0x407023[_0x35f5ec][_0x5eb6('0x0')][_0x5eb6('0x124')](_0x3320be,0x1),_0x3320be--;const _0x5b0cfd=_0x24090d[_0x5eb6('0xab')](_0x426d0d=>_0x426d0d['name']==_0x3fa3ff);_0x5b0cfd>-0x1&&_0x24090d[_0x5eb6('0x124')](_0x5b0cfd,0x1);}}function _0x207282(_0x449246){const _0x457548=_0x449246[_0x5eb6('0x122')](':');return{'group':_0x457548[0x0],'type':_0x457548[0x1],'subType':_0x457548[_0x5eb6('0x7')]>=0x5?_0x457548[0x2]:null,'id':_0x457548[_0x5eb6('0x7')]<0x5?_0x457548[0x2]:_0x457548[0x3],'authorId':_0x457548[_0x5eb6('0x7')]<0x5?_0x457548[0x3]:_0x457548[0x4],'markerCount':0x6==_0x457548[_0x5eb6('0x7')]?_0x457548[0x5]:null};}function _0xb6ccee(_0x1cd24b){for(let _0x1ccf06=0x0;_0x1ccf06<_0x24090d['length'];_0x1ccf06++){if(_0x1cd24b[_0x5eb6('0x3e')]&&_0x5eb6('0xe9')==_0x24090d[_0x1ccf06][_0x5eb6('0x20')])return _0x1cd24b[_0x5eb6('0x36')]=_0x24090d[_0x1ccf06],void delete _0x1cd24b[_0x5eb6('0x3e')];if(!_0x1cd24b[_0x5eb6('0x3e')]&&!_0x1cd24b[_0x5eb6('0x5')]&&_0x5eb6('0x119')==_0x24090d[_0x1ccf06][_0x5eb6('0x20')])return void(_0x1cd24b[_0x5eb6('0xaa')]=_0x24090d[_0x1ccf06]);}}}['_setDistance'](_0x32a33b,_0x555f34){let _0x509b92=0x0,_0x31ac7c=!0x1;const _0x18d32e=new Map();for(const _0x28ed47 of _0x32a33b)_0x28ed47[_0x555f34]?_0x31ac7c&&(_0x509b92++,_0x31ac7c=!0x1):(_0x509b92++,_0x31ac7c=!0x0),_0x18d32e[_0x5eb6('0xa4')](_0x28ed47['id'],_0x509b92);for(let _0x403189=0x0;_0x403189<_0x32a33b[_0x5eb6('0x7')];_0x403189++){if(_0x5eb6('0x5')==_0x555f34&&_0x32a33b[_0x403189]['isAdded']||_0x5eb6('0x3e')==_0x555f34&&_0x32a33b[_0x403189][_0x5eb6('0x5')])continue;if('text'==_0x32a33b[_0x403189][_0x5eb6('0x20')]){_0x32a33b[_0x403189][_0x5eb6('0x67')]=0x0;continue;}const _0x18f270=_0x18d32e[_0x5eb6('0x1e')](_0x32a33b[_0x403189][_0x5eb6('0xe5')]),_0x52a492=_0x18d32e[_0x5eb6('0x1e')](_0x32a33b[_0x403189]['id']);_0x32a33b[_0x403189][_0x5eb6('0x67')]=_0x18f270-_0x52a492;}}[_0x5eb6('0x31')](_0x30cd25,_0x23073e,_0x42846d=!0x1){const _0x57cbd6=[];let _0x5e3d73=this[_0x5eb6('0x19')][_0x5eb6('0xa')](_0x30cd25),_0x524ad8=this['repository'][_0x5eb6('0xa')](_0x23073e);for(-0x1==_0x524ad8&&(_0x524ad8=this[_0x5eb6('0x19')][_0x5eb6('0xc1')][_0x5eb6('0x7')],_0x42846d=!0x1);_0x5e3d73<_0x524ad8;)_0x57cbd6[_0x5eb6('0xdb')](this[_0x5eb6('0x19')][_0x5eb6('0x3')](_0x5e3d73)),_0x5e3d73++;return _0x42846d&&_0x57cbd6[_0x5eb6('0xdb')](this[_0x5eb6('0x19')][_0x5eb6('0x3')](_0x5e3d73)),_0x57cbd6;}[_0x5eb6('0xc2')](_0x20c4a2,_0x23053b,_0x1ea177,_0x346c4a){const _0x35d099=this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x5e')];let _0x3c4202=_0x23053b;for(;_0x20c4a2[_0x3c4202]&&_0x20c4a2[_0x3c4202][_0x5eb6('0x3e')];)_0x3c4202++;let _0x82a0d1=_0x346c4a;for(;_0x1ea177[_0x82a0d1]&&_0x1ea177[_0x82a0d1]['isRemoved'];)_0x82a0d1++;_0x3b5755(_0x20c4a2,_0x23053b,_0x3c4202),_0x3b5755(_0x1ea177,_0x346c4a,_0x82a0d1);const _0x5f462b=_0x1ea177['slice'](_0x346c4a,_0x82a0d1)[_0x5eb6('0xe8')](_0x20c4a2['slice'](_0x23053b,_0x3c4202));return _0x5f462b[_0x5eb6('0x11f')]((_0x376430,_0x1c1c57)=>_0x376430[_0x5eb6('0xfa')]!=_0x1c1c57['side']?_0x376430[_0x5eb6('0xfa')]-_0x1c1c57['side']:_0x376430[_0x5eb6('0x9a')]!=_0x1c1c57[_0x5eb6('0x9a')]?_0x376430[_0x5eb6('0x9a')]-_0x1c1c57[_0x5eb6('0x9a')]:_0x376430[_0x5eb6('0x67')]!=_0x1c1c57[_0x5eb6('0x67')]?_0x1c1c57[_0x5eb6('0x67')]-_0x376430[_0x5eb6('0x67')]:!!_0x376430[_0x5eb6('0x3e')]!=!!_0x1c1c57[_0x5eb6('0x3e')]?-0x1==_0x376430[_0x5eb6('0xfa')]||0x0==_0x376430['side']?_0x376430['isAdded']?-0x1:0x1:_0x376430[_0x5eb6('0x3e')]?0x1:-0x1:_0x376430[_0x5eb6('0x115')]-_0x1c1c57[_0x5eb6('0x115')]),{'commonTape':_0x5f462b,'iEnd':_0x3c4202,'jEnd':_0x82a0d1};function _0x3b5755(_0x2cb4f4,_0x11dec8,_0x41c915){let _0x15c171=-0x1,_0x4b32cb=Number[_0x5eb6('0x2d')],_0x11e9fc=!0x0;for(let _0x136120=_0x11dec8;_0x136120<_0x41c915;_0x136120++)if(_0x35d099['isInline'](_0x2cb4f4[_0x136120][_0x5eb6('0xa3')])||(_0x11e9fc=!0x1),_0x2cb4f4[_0x136120][_0x5eb6('0xa3')][_0x5eb6('0x42')]<_0x11dec8&&(_0x15c171=_0x136120),_0x2cb4f4[_0x136120]['item'][_0x5eb6('0xde')]>=_0x41c915){_0x4b32cb=_0x136120;break;}_0x11e9fc&&(_0x15c171=_0x41c915-0x1);for(let _0xc1c5d0=_0x11dec8;_0xc1c5d0<_0x41c915;_0xc1c5d0++)_0x2cb4f4[_0xc1c5d0][_0x5eb6('0xfa')]=_0xc1c5d0<=_0x15c171?-0x1:_0xc1c5d0<_0x4b32cb?0x0:0x1,_0x2cb4f4[_0xc1c5d0]['index']=_0xc1c5d0;let _0x5a9fc1=0x0;for(let _0x2b256c=_0x11dec8;_0x2b256c<=_0x15c171;_0x2b256c++)0x0==_0x2cb4f4[_0x2b256c][_0x5eb6('0x67')]?_0x2cb4f4[_0x2b256c][_0x5eb6('0x9a')]=_0x5a9fc1:(_0x5a9fc1++,_0x2cb4f4[_0x2b256c]['level']=_0x5a9fc1,_0x5a9fc1++);for(let _0x3a1a88=_0x11dec8;_0x3a1a88<_0x41c915;_0x3a1a88++)0x0==_0x2cb4f4[_0x3a1a88][_0x5eb6('0xfa')]&&(_0x2cb4f4[_0x3a1a88][_0x5eb6('0x9a')]=_0x5a9fc1);_0x5a9fc1=0x0;for(let _0x55ba39=_0x41c915-0x1;_0x55ba39>=_0x4b32cb;_0x55ba39--)0x0==_0x2cb4f4[_0x55ba39][_0x5eb6('0x67')]?_0x2cb4f4[_0x55ba39][_0x5eb6('0x9a')]=_0x5a9fc1:(_0x5a9fc1--,_0x2cb4f4[_0x55ba39][_0x5eb6('0x9a')]=_0x5a9fc1,_0x5a9fc1--);}}[_0x5eb6('0x81')](_0x1039b1){const _0x565c6d=new Map(),_0x4fa8fc=this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x5e')];for(let _0x4ffad8=0x1;_0x4ffad8<_0x1039b1['length'];_0x4ffad8++){let _0x432a95,_0x10cd37,_0x2ccd60;const _0x5148b4=_0x1039b1[_0x4ffad8],_0x5ca5c7=_0x1039b1[_0x4ffad8-0x1];if(_0x5eb6('0x65')==_0x5148b4['type'])continue;if(_0x5148b4[_0x5eb6('0x20')]!=_0x5ca5c7[_0x5eb6('0x20')])continue;if(!_0x4fa8fc[_0x5eb6('0xe6')](_0x5ca5c7[_0x5eb6('0xa3')])||_0x4fa8fc['isLimit'](_0x5ca5c7['item']))continue;if(!_0x4fa8fc[_0x5eb6('0xe6')](_0x5148b4['item'])||_0x4fa8fc[_0x5eb6('0x87')](_0x5148b4[_0x5eb6('0xa3')]))continue;if((_0x1039b1[_0x4ffad8][_0x5eb6('0x3e')]||_0x1039b1[_0x4ffad8]['isAddSuggestion'])&&_0x1039b1[_0x4ffad8-0x1][_0x5eb6('0x5')])_0x432a95=_0x1039b1[_0x4ffad8],_0x10cd37=_0x1039b1[_0x4ffad8-0x1],_0x2ccd60=_0x4ffad8-0x1;else{if(!_0x1039b1[_0x4ffad8][_0x5eb6('0x5')]||!_0x1039b1[_0x4ffad8-0x1][_0x5eb6('0x3e')]&&!_0x1039b1[_0x4ffad8-0x1][_0x5eb6('0x36')])continue;_0x432a95=_0x1039b1[_0x4ffad8-0x1],_0x10cd37=_0x1039b1[_0x4ffad8],_0x2ccd60=_0x4ffad8;}const _0x5d3b82=_0x432a95['level']==_0x10cd37[_0x5eb6('0x9a')],_0xa896c9=Math[_0x5eb6('0x57')](_0x432a95[_0x5eb6('0x9a')])<Math[_0x5eb6('0x57')](_0x10cd37[_0x5eb6('0x9a')])&&0x0==_0x10cd37[_0x5eb6('0x67')];(_0x5d3b82||_0xa896c9)&&(_0x565c6d[_0x5eb6('0xa4')](_0x10cd37['id'],_0x432a95['id']),_0x1039b1['splice'](_0x2ccd60,0x1),_0x4ffad8--,_0x432a95[_0x5eb6('0x3e')]=!0x1);}for(let _0x112889=0x0;_0x112889<_0x1039b1[_0x5eb6('0x7')];_0x112889++)_0x565c6d[_0x5eb6('0x62')](_0x1039b1[_0x112889][_0x5eb6('0xe5')])&&(_0x1039b1[_0x112889][_0x5eb6('0xe5')]=_0x565c6d['get'](_0x1039b1[_0x112889][_0x5eb6('0xe5')]));}[_0x5eb6('0x37')](_0x330b97){const _0x194678=new Set(_0x330b97['map'](_0x3d82e3=>_0x3d82e3['id']));for(let _0x4f1c27=0x0;_0x4f1c27<_0x330b97[_0x5eb6('0x7')];_0x4f1c27++)_0x194678[_0x5eb6('0x62')](_0x330b97[_0x4f1c27][_0x5eb6('0xe5')])||0x0==_0x330b97[_0x4f1c27]['distance']||(_0x330b97[_0x4f1c27][_0x5eb6('0x17')]=!0x0);return _0x330b97[_0x5eb6('0x80')](_0x42981f=>!_0x42981f[_0x5eb6('0x17')]);}[_0x5eb6('0x70')](_0x19f2db){const _0x1dd459=new Set();for(let _0x1cb562=0x0;_0x1cb562<_0x19f2db[_0x5eb6('0x7')];_0x1cb562++){if(_0x1dd459['has'](_0x19f2db[_0x1cb562]['id'])&&_0x19f2db[_0x1cb562][_0x5eb6('0x5')]&&(_0x19f2db[_0x1cb562][_0x5eb6('0x17')]=!0x0),_0x19f2db[_0x1cb562][_0x5eb6('0x17')])continue;if(0x0==_0x19f2db[_0x1cb562]['distance'])continue;if('elementStart'!=_0x19f2db[_0x1cb562][_0x5eb6('0x20')])continue;if(null==_0x19f2db[_0x1cb562][_0x5eb6('0xe5')])continue;let _0x4a1418=_0x1cb562+0x1,_0x4fd6cc=0x0;for(;_0x19f2db[_0x4a1418]['id']!=_0x19f2db[_0x1cb562][_0x5eb6('0xe5')];)_0x5eb6('0xf6')==_0x19f2db[_0x4a1418][_0x5eb6('0x20')]?_0x4fd6cc++:_0x5eb6('0x54')==_0x19f2db[_0x4a1418][_0x5eb6('0x20')]&&_0x4fd6cc--,_0x4a1418++;if(0x0!=_0x4fd6cc){if(_0x19f2db[_0x1cb562]['isRemoved'])_0x19f2db[_0x1cb562]['isIncorrect']=!0x0;else for(;_0x4a1418!=_0x1cb562;)_0x19f2db[_0x4a1418][_0x5eb6('0x5')]&&0x0!=_0x19f2db[_0x4a1418][_0x5eb6('0x67')]&&(_0x19f2db[_0x4a1418][_0x5eb6('0x17')]=!0x0,_0x1dd459[_0x5eb6('0xa9')](_0x19f2db[_0x4a1418][_0x5eb6('0xe5')])),_0x4a1418--;}}return _0x19f2db[_0x5eb6('0x80')](_0x16731a=>!_0x16731a['isIncorrect']);}[_0x5eb6('0x128')](_0x477c13){const _0x26a772=this['editor'][_0x5eb6('0x13')][_0x5eb6('0x5e')];for(let _0x1c1066=0x0;_0x1c1066<_0x477c13[_0x5eb6('0x7')];_0x1c1066++){if(!(_0x477c13[_0x1c1066][_0x5eb6('0x3e')]||_0x477c13[_0x1c1066]['isAddSuggestion']||_0x477c13[_0x1c1066][_0x5eb6('0x5')]||_0x477c13[_0x1c1066]['isRemoveSuggestion']))continue;if(0x0==_0x477c13[_0x1c1066]['distance'])continue;const _0x20f131=_0x477c13[_0x1c1066][_0x5eb6('0xa3')];_0x26a772[_0x5eb6('0xe6')](_0x20f131)||_0x26a772[_0x5eb6('0x87')](_0x20f131)||(_0x477c13[_0x1c1066][_0x5eb6('0x3e')]&&delete _0x477c13[_0x1c1066][_0x5eb6('0x3e')],_0x477c13[_0x1c1066]['isAddSuggestion']&&delete _0x477c13[_0x1c1066][_0x5eb6('0x36')],_0x477c13[_0x1c1066]['isRemoveSuggestion']&&delete _0x477c13[_0x1c1066][_0x5eb6('0xaa')],_0x477c13[_0x1c1066]['isRemoved']&&(_0x477c13[_0x1c1066][_0x5eb6('0x17')]=!0x0));}return _0x477c13[_0x5eb6('0x80')](_0x3dbb1b=>!_0x3dbb1b[_0x5eb6('0x17')]);}[_0x5eb6('0xfe')](_0x4e84b8,_0x2868d8,_0x3fe42a){const _0x40380e=new _0x308b28(),_0x220fd3=[],_0x2ffee6=new Map(),_0x77503f=this[_0x5eb6('0x2f')][_0x5eb6('0x13')],_0x4e2955=_0x77503f[_0x5eb6('0x5e')],_0xfeb55d=[_0x40380e],_0x407862={},_0x404af4={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2ad4d4=null;const _0x22390e=[0x0];for(let _0x167cdc=0x0;_0x167cdc<_0x4e84b8[_0x5eb6('0x7')];_0x167cdc++){let _0x32dfee,_0xd8d401;if(_0x5eb6('0xf6')===_0x4e84b8[_0x167cdc][_0x5eb6('0x20')]){_0x32dfee=_0x77503f[_0x5eb6('0x71')](_0x40380e,_0x22390e);const _0x40ada5=new _0x1f2448(_0x4e84b8[_0x167cdc][_0x5eb6('0xa3')][_0x5eb6('0x41')],_0x4e84b8[_0x167cdc][_0x5eb6('0xa3')][_0x5eb6('0xa8')]());_0xfeb55d[0x0]['_appendChild'](_0x40ada5),_0x22390e[_0x5eb6('0xdb')](0x0),_0xfeb55d[_0x5eb6('0x5a')](_0x40ada5),_0xd8d401=_0x77503f[_0x5eb6('0x71')](_0x40380e,_0x22390e),_0x2ad4d4=null;}else{if(_0x5eb6('0x54')===_0x4e84b8[_0x167cdc][_0x5eb6('0x20')])_0xfeb55d['shift'](),_0x32dfee=_0x77503f[_0x5eb6('0x71')](_0x40380e,_0x22390e),_0x22390e['pop'](),_0x22390e[_0x22390e[_0x5eb6('0x7')]-0x1]++,_0xd8d401=_0x77503f[_0x5eb6('0x71')](_0x40380e,_0x22390e),_0x2ad4d4=null;else{if(_0x32dfee=_0x77503f[_0x5eb6('0x71')](_0x40380e,_0x22390e),_0x2ad4d4&&_0x1b5763(_0x2ad4d4,_0x4e84b8[_0x167cdc][_0x5eb6('0xa3')]))_0x2ad4d4[_0x5eb6('0xf0')]+=_0x4e84b8[_0x167cdc][_0x5eb6('0xa3')][_0x5eb6('0x6c')];else{const _0x449f74=new _0x37f40e(_0x4e84b8[_0x167cdc][_0x5eb6('0xa3')][_0x5eb6('0x6c')],_0x4e84b8[_0x167cdc][_0x5eb6('0xa3')]['getAttributes']());_0xfeb55d[0x0][_0x5eb6('0xe4')](_0x449f74),_0x2ad4d4=_0x449f74;}_0x22390e[_0x22390e[_0x5eb6('0x7')]-0x1]+=_0x4e84b8[_0x167cdc][_0x5eb6('0xa3')][_0x5eb6('0x63')],_0xd8d401=_0x77503f[_0x5eb6('0x71')](_0x40380e,_0x22390e);}}for(const _0x3b4e1d of _0x4e84b8[_0x167cdc][_0x5eb6('0xcc')])_0x2ffee6[_0x5eb6('0xa4')](_0x3b4e1d,{'start':_0x32dfee,'end':null});_0xb1c0af('isRemoveSuggestion',_0x167cdc,_0x32dfee,_0xd8d401),_0xb1c0af(_0x5eb6('0x36'),_0x167cdc,_0x32dfee,_0xd8d401),_0xb1c0af(_0x5eb6('0x5'),_0x167cdc,_0x32dfee,_0xd8d401),_0xb1c0af(_0x5eb6('0x3e'),_0x167cdc,_0x32dfee,_0xd8d401);for(const _0xfd755 of _0x4e84b8[_0x167cdc]['markersEnd']){_0x2ffee6[_0x5eb6('0x1e')](_0xfd755)[_0x5eb6('0x78')]=_0xd8d401;}}for(const [_0x49c2b4,_0x47bb7a]of _0x2ffee6){const _0x1a72ce=this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0xf8')](_0x47bb7a[_0x5eb6('0x12b')],_0x47bb7a['end']);_0x40380e[_0x5eb6('0xd4')][_0x5eb6('0xa4')](_0x49c2b4,_0x1a72ce);}return _0x220fd3[_0x5eb6('0x11f')]((_0x44b981,_0x697075)=>{const _0x2b12ef=_0x40380e[_0x5eb6('0xd4')]['get']('revision:'+_0x44b981['id']),_0xb0767b=_0x40380e[_0x5eb6('0xd4')]['get'](_0x5eb6('0x12d')+_0x697075['id']);return _0x2b12ef['start'][_0x5eb6('0x68')](_0xb0767b[_0x5eb6('0x12b')])?-0x1:_0x2b12ef['start'][_0x5eb6('0x12')](_0xb0767b['start'])?0x1:_0x2b12ef['end'][_0x5eb6('0x68')](_0xb0767b[_0x5eb6('0x78')])?-0x1:_0x2b12ef['end'][_0x5eb6('0x12')](_0xb0767b[_0x5eb6('0x78')])?0x1:_0x5eb6('0xa9')===_0x44b981[_0x5eb6('0x20')]?-0x1:0x1;}),{'root':_0x40380e,'changes':_0x220fd3};function _0xb1c0af(_0x1064d9,_0x2c7aaa,_0x4c28c1,_0x56e4a0){const _0x5e3efc=!!_0x4e84b8[_0x2c7aaa][_0x1064d9],_0x55af0a=_0x5e3efc?_0x4e84b8[_0x2c7aaa][_0x1064d9][_0x5eb6('0x73')]:null,_0xe27f57=_0x2c7aaa===_0x4e84b8[_0x5eb6('0x7')]-0x1,_0x2e50d2=_0x404af4[_0x1064d9][0x0],_0x3a7142=_0x4e2955[_0x5eb6('0xf2')](_0x4e84b8[_0x2c7aaa][_0x5eb6('0xa3')]);!_0x407862[_0x1064d9]&&_0x5e3efc?_0x407862[_0x1064d9]={'start':_0x4c28c1,'tapeItem':_0x4e84b8[_0x2c7aaa],'userId':_0x55af0a,'type':_0x1064d9}:_0x407862[_0x1064d9]&&!_0x5e3efc?(_0x407862[_0x1064d9][_0x5eb6('0x78')]=_0x4c28c1,_0x48d9cc(_0x407862[_0x1064d9]),_0x407862[_0x1064d9]=null):_0x407862[_0x1064d9]&&_0x5e3efc&&_0x407862[_0x1064d9][_0x5eb6('0x73')]!==_0x55af0a&&(_0x407862[_0x1064d9]['end']=_0x4c28c1,_0x2e50d2&&_0x2e50d2[_0x5eb6('0x73')]===_0x407862[_0x1064d9][_0x5eb6('0x73')]||_0x48d9cc(_0x407862[_0x1064d9]),_0x407862[_0x1064d9]={'start':_0x4c28c1,'tapeItem':_0x4e84b8[_0x2c7aaa],'userId':_0x55af0a,'type':_0x1064d9}),_0x407862[_0x1064d9]&&_0x3a7142&&(_0x5eb6('0xf6')!==_0x4e84b8[_0x2c7aaa][_0x5eb6('0x20')]||_0x2e50d2&&_0x2e50d2['userId']===_0x55af0a||_0x404af4[_0x1064d9][_0x5eb6('0x5a')]({'userId':_0x55af0a,'object':_0x4e84b8[_0x2c7aaa][_0x5eb6('0xa3')],'change':_0x407862[_0x1064d9]}),_0x5eb6('0x54')===_0x4e84b8[_0x2c7aaa][_0x5eb6('0x20')]&&_0x2e50d2&&_0x2e50d2[_0x5eb6('0x7c')]===_0x4e84b8[_0x2c7aaa][_0x5eb6('0xa3')]&&(_0x404af4[_0x1064d9]['shift'](),_0x407862[_0x1064d9]=_0x2e50d2[_0x5eb6('0x66')])),_0x407862[_0x1064d9]&&_0xe27f57&&(_0x407862[_0x1064d9]['end']=_0x56e4a0,_0x48d9cc(_0x407862[_0x1064d9]),_0x407862[_0x1064d9]=null);}function _0x48d9cc({start:_0x3c70ef,end:_0x49756f,tapeItem:_0x528d67,userId:_0x263540,type:_0x3801ef}){const _0x86c068=_0x528d67[_0x5eb6('0xa3')],_0x25c4ee=_0x77503f[_0x5eb6('0x5e')][_0x5eb6('0xe6')](_0x86c068)&&!_0x77503f['schema'][_0x5eb6('0x87')](_0x86c068),_0xe8b2b1=_0x3c70ef[_0x5eb6('0x110')]==_0x49756f['parent']&&_0x49756f[_0x5eb6('0x6a')];if(_0x25c4ee&&_0xe8b2b1)return;const _0x11f2f4=_0x77503f[_0x5eb6('0xf8')](_0x3c70ef,_0x49756f),_0x516bf5=_0x2868d8['get'](_0x263540),_0x2074ff=new _0x3aa243({'author':_0x516bf5,'type':_0x5eb6('0x3e')==_0x3801ef||_0x5eb6('0x36')==_0x3801ef?_0x5eb6('0xa9'):_0x5eb6('0xbf'),'data':{'isSuggestion':_0x5eb6('0x36')==_0x3801ef||_0x5eb6('0xaa')==_0x3801ef},'createdAt':new Date(),'rootName':_0x3fe42a});_0x220fd3[_0x5eb6('0xdb')](_0x2074ff),_0x40380e[_0x5eb6('0xd4')][_0x5eb6('0xa4')](_0x5eb6('0x12d')+_0x2074ff['id'],_0x11f2f4);}function _0x1b5763(_0x38f9fb,_0x2ab526){const _0x357e3d=_0x38f9fb['getAttributes'](),_0x139399=_0x2ab526['getAttributes']();for(const _0xc2a57f of _0x357e3d){if(_0xc2a57f[0x1]!==_0x2ab526[_0x5eb6('0xdc')](_0xc2a57f[0x0]))return!0x1;_0x139399[_0x5eb6('0x40')]();}return _0x139399['next']()[_0x5eb6('0x8')];}}[_0x5eb6('0x100')](){this[_0x5eb6('0x2f')][_0x5eb6('0x5c')][_0x5eb6('0xd7')](_0x5eb6('0x69'))[_0x5eb6('0x1')]({'view':_0x5eb6('0x74')}),this[_0x5eb6('0x2f')]['conversion'][_0x5eb6('0xd7')]('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4ca1ff=>{const _0x13b747=_0x4ca1ff[_0x5eb6('0xbd')][_0x5eb6('0x122')](':')[0x1],_0x5ab106=this['_getChangeFromId'](_0x13b747);if(!_0x5ab106)return null;const _0x18f127=_0x5eb6('0xa9')==_0x5ab106[_0x5eb6('0x20')]?'insertion':_0x5eb6('0x119'),_0x351389=[_0x5eb6('0xea'),_0x5eb6('0x84')+_0x18f127];return _0x5ab106[_0x5eb6('0x6c')]['isSuggestion']&&_0x351389[_0x5eb6('0xdb')](_0x5eb6('0x84')+_0x18f127+_0x5eb6('0x3f')),this[_0x5eb6('0x9')]==_0x5ab106&&_0x351389[_0x5eb6('0xdb')]('ck-suggestion-marker--active'),{'classes':_0x351389,'attributes':{'data-change-id':_0x13b747}};}}),this[_0x5eb6('0x2f')]['conversion'][_0x5eb6('0xd7')]('upcast')[_0x5eb6('0xa9')](_0x203b11=>{_0x203b11['on'](_0x5eb6('0xe'),(_0x58ed39,_0x5f002e,_0xa9837d)=>{const _0x41efb4=_0x5f002e['viewItem'][_0x5eb6('0x94')](0x0);if(!_0x41efb4||!_0x41efb4['is'](_0x5eb6('0xff'),_0x5eb6('0x113')))return;if(!_0xa9837d[_0x5eb6('0x88')][_0x5eb6('0xfc')](_0x41efb4,{'attributes':[_0x5eb6('0xcd'),_0x5eb6('0x10e')]}))return;const _0x390583=_0x5f002e['modelRange'][_0x5eb6('0x12b')]['nodeAfter'];_0xa9837d[_0x5eb6('0x7f')][_0x5eb6('0x2c')](_0x5eb6('0xcd'),_0x41efb4[_0x5eb6('0xdc')](_0x5eb6('0xcd')),_0x390583),_0xa9837d[_0x5eb6('0x7f')][_0x5eb6('0x2c')]('vid_end',_0x41efb4[_0x5eb6('0xdc')](_0x5eb6('0x10e')),_0x390583);},{'priority':_0x5eb6('0xbe')});}),this[_0x5eb6('0x2f')][_0x5eb6('0x5c')][_0x5eb6('0xd7')]('upcast')[_0x5eb6('0xa9')](_0x47ad6e=>{_0x47ad6e['on'](_0x5eb6('0xff'),(_0x29afe3,_0x5b81e5,_0x361f6d)=>{if(!_0x361f6d[_0x5eb6('0x88')][_0x5eb6('0xfc')](_0x5b81e5[_0x5eb6('0x4')],{'attributes':[_0x5eb6('0xcd'),_0x5eb6('0x10e')]}))return;if(_0x5b81e5['modelRange'][_0x5eb6('0x15')])return;const _0x508765=_0x5b81e5[_0x5eb6('0x6e')][_0x5eb6('0x12b')]['nodeAfter'];_0x508765[_0x5eb6('0x126')](_0x5eb6('0xcd'))||_0x508765[_0x5eb6('0x126')](_0x5eb6('0x109'))||(_0x361f6d['writer'][_0x5eb6('0x2c')](_0x5eb6('0xcd'),_0x5b81e5[_0x5eb6('0x4')]['getAttribute'](_0x5eb6('0xcd')),_0x508765),_0x361f6d[_0x5eb6('0x7f')][_0x5eb6('0x2c')](_0x5eb6('0x10e'),_0x5b81e5[_0x5eb6('0x4')]['getAttribute']('vid_end'),_0x508765));},{'priority':'low'});}),this[_0x5eb6('0x2f')][_0x5eb6('0x5c')][_0x5eb6('0xd7')](_0x5eb6('0x69'))[_0x5eb6('0x1b')]({'view':{'name':_0x5eb6('0xeb'),'attributes':{'vid':!0x0}},'model':{'key':_0x5eb6('0x109'),'value':_0x44fa32=>_0x44fa32[_0x5eb6('0xdc')](_0x5eb6('0x109'))}}),this[_0x5eb6('0x2f')]['model']['schema']['on'](_0x5eb6('0x116'),(_0x5806b8,[,_0x103c7b])=>{['vid_start','vid_end',_0x5eb6('0x109')]['includes'](_0x103c7b)&&(_0x5806b8[_0x5eb6('0x4d')]=!0x0,_0x5806b8[_0x5eb6('0x33')]());},{'priority':_0x5eb6('0x9d')}),this[_0x5eb6('0x2f')][_0x5eb6('0x5c')][_0x5eb6('0xd7')](_0x5eb6('0x2b'))['add'](_0x3a701b=>{_0x3a701b['on']('attribute:vid',(_0x1450fc,_0x54ab5a,_0x399218)=>{if('\x20'!=_0x54ab5a[_0x5eb6('0xa3')][_0x5eb6('0x6c')]||_0x54ab5a['item'][_0x5eb6('0xba')][_0x5eb6('0x3b')]>0x1)return;if(!_0x399218[_0x5eb6('0x88')][_0x5eb6('0xfc')](_0x54ab5a['item'],_0x1450fc[_0x5eb6('0x41')]))return;const _0x5843f4=_0x399218['writer'],_0x5a110c=_0x399218['mapper'][_0x5eb6('0xf')](_0x54ab5a[_0x5eb6('0x16')]);_0x5843f4['wrap'](_0x5a110c,_0x5843f4[_0x5eb6('0x103')](_0x5eb6('0xeb')));});}),this[_0x5eb6('0x2f')]['conversion'][_0x5eb6('0xd7')](_0x5eb6('0x2b'))[_0x5eb6('0xec')]({'model':_0x5eb6('0x74')}),this[_0x5eb6('0x2f')][_0x5eb6('0xae')][_0x5eb6('0x82')]['on'](_0x5eb6('0xa2'),function(_0x1a278f){const _0x1b4f04=_0x1a278f[_0x5eb6('0x8d')]['get'](_0x5eb6('0xe2'));return(_0x547b42,_0x25cb68,_0x3d7cbb)=>{const _0x312117=_0x25cb68[_0x5eb6('0xbd')][_0x5eb6('0x122')](':')[0x1],_0x10651b=_0x1b4f04[_0x5eb6('0xd2')](_0x312117);if(!_0x10651b)return null;const _0xbaab25=_0x5eb6('0xa9')==_0x10651b[_0x5eb6('0x20')]?_0x5eb6('0x122'):'merge';if(!_0x3d7cbb[_0x5eb6('0x88')]['test'](_0x25cb68[_0x5eb6('0x11e')],_0x547b42['name']))return;const _0xb67b50=_0x25cb68[_0x5eb6('0x11e')][_0x5eb6('0x64')](),_0x2ba7c5=_0x25cb68[_0x5eb6('0x11e')][_0x5eb6('0x12b')],_0x535b9b=_0x1a278f[_0x5eb6('0x13')]['schema'];let _0x3a540b=null,_0x317eef=null,_0x5f55a0=!0x1,_0x496930=!0x1;for(const _0x2ace03 of _0xb67b50){const _0x1bc84c=_0x2ace03[_0x5eb6('0xa3')];_0x5f55a0=_0x5f55a0||_0x535b9b['isContent'](_0x1bc84c);const _0x5f5056=_0x3d7cbb['mapper'][_0x5eb6('0xa0')](_0x1bc84c);if(_0x5f5056&&_0x5f5056[_0x5eb6('0x106')](_0x5eb6('0x1c')))return;_0x5eb6('0x54')==_0x2ace03[_0x5eb6('0x20')]&&(_0x535b9b[_0x5eb6('0xe6')](_0x1bc84c)&&!_0x535b9b[_0x5eb6('0x87')](_0x1bc84c)&&(_0x1bc84c[_0x5eb6('0x4f')]||_0x2ba7c5['isAtEnd']?_0x3a540b&&_0x3a540b[_0x5eb6('0xba')]==_0x1bc84c||(_0x3a540b=_0x1bc84c,_0x1ea543(_0x2ace03[_0x5eb6('0x89')]),_0x496930=!0x0):_0x317eef=_0x317eef||_0x2ace03['previousPosition']));}function _0x1ea543(_0x58aa22){const _0x2bf934=_0x3d7cbb[_0x5eb6('0x7f')][_0x5eb6('0xb9')](_0x5eb6('0xeb'),{'class':_0x5eb6('0x84')+_0xbaab25}),_0x305f7b=_0x3d7cbb['mapper']['toViewPosition'](_0x58aa22);_0x10651b[_0x5eb6('0x6c')]['isSuggestion']&&_0x3d7cbb['writer']['addClass'](_0x5eb6('0x84')+_0xbaab25+_0x5eb6('0x3f'),_0x2bf934),_0x1b4f04[_0x5eb6('0x9')]==_0x10651b&&_0x3d7cbb[_0x5eb6('0x7f')][_0x5eb6('0xbc')](_0x5eb6('0x2'),_0x2bf934),_0x3d7cbb[_0x5eb6('0x7f')][_0x5eb6('0x4e')](_0x305f7b,_0x2bf934),_0x3d7cbb['mapper']['bindElementToMarker'](_0x2bf934,_0x25cb68['markerName']);}_0x5f55a0||_0x496930||!_0x317eef||_0x1ea543(_0x317eef);};}(this[_0x5eb6('0x2f')]),{'priority':'high'}),this[_0x5eb6('0x2f')][_0x5eb6('0xae')][_0x5eb6('0x82')]['on'](_0x5eb6('0x8a'),(_0x2f6531,_0x5dd970,_0x1d6728)=>{const _0x160a9c=_0x1d6728[_0x5eb6('0x6')][_0x5eb6('0xe7')](_0x5dd970[_0x5eb6('0xbd')]);if(_0x160a9c)for(const _0x5b9b99 of _0x160a9c)(_0x5b9b99[_0x5eb6('0xc9')](_0x5eb6('0xd8'))||_0x5b9b99[_0x5eb6('0xc9')](_0x5eb6('0x7d')))&&(_0x1d6728[_0x5eb6('0x6')][_0x5eb6('0x79')](_0x5b9b99,_0x5dd970[_0x5eb6('0xbd')]),_0x1d6728[_0x5eb6('0x7f')]['remove'](_0x5b9b99));},{'priority':_0x5eb6('0x53')}),this[_0x5eb6('0x2f')][_0x5eb6('0xae')]['downcastDispatcher']['on'](_0x5eb6('0xa2'),(_0x366533,_0x3f7f3e,_0x112c91)=>{const _0x5aec27=_0x3f7f3e[_0x5eb6('0xbd')][_0x5eb6('0x122')](':')[0x1],_0x263be2=this[_0x5eb6('0xd2')](_0x5aec27);if(!_0x263be2)return null;const _0xc236dc=_0x5eb6('0xa9')==_0x263be2[_0x5eb6('0x20')]?_0x5eb6('0x122'):_0x5eb6('0x2a');if(_0x112c91['consumable'][_0x5eb6('0xcf')](_0x3f7f3e[_0x5eb6('0x11e')],_0x366533[_0x5eb6('0x41')]))for(const _0x1908eb of _0x3f7f3e['markerRange'][_0x5eb6('0x9f')]()){if(!_0x1908eb['is'](_0x5eb6('0xff'),_0x5eb6('0xb8')))continue;const _0x215fb2=_0x112c91[_0x5eb6('0x7f')][_0x5eb6('0xb9')](_0x5eb6('0xeb'),{'class':_0x5eb6('0x84')+_0xc236dc}),_0x2fed7c=_0x112c91['mapper'][_0x5eb6('0xf9')](this[_0x5eb6('0x2f')]['model'][_0x5eb6('0xf3')](_0x1908eb));_0x263be2[_0x5eb6('0x6c')][_0x5eb6('0x85')]&&_0x112c91[_0x5eb6('0x7f')]['addClass'](_0x5eb6('0x84')+_0xc236dc+_0x5eb6('0x3f'),_0x215fb2),this['activeChange']==_0x263be2&&_0x112c91[_0x5eb6('0x7f')][_0x5eb6('0xbc')]('ck-suggestion-marker--active',_0x215fb2),_0x112c91[_0x5eb6('0x7f')]['insert'](_0x2fed7c,_0x215fb2),_0x112c91[_0x5eb6('0x6')][_0x5eb6('0x83')](_0x215fb2,_0x3f7f3e['markerName']);}},{'priority':'high'}),this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x8c')]['on'](_0x5eb6('0x66'),()=>{this[_0x5eb6('0x2f')]['editing'][_0x5eb6('0x27')][_0x5eb6('0x66')](_0x541fee=>{for(const _0x129043 of this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x8c')][_0x5eb6('0x48')]()){const _0x5ba5e1=this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x8c')][_0x5eb6('0x47')](_0x129043),_0x7d588c=this['editor'][_0x5eb6('0xae')][_0x5eb6('0x27')]['document'][_0x5eb6('0x47')](_0x129043);if(_0x7d588c){const _0xa6cff3=_0x5ba5e1[_0x5eb6('0xdc')](_0x5eb6('0x14'));if(_0x541fee[_0x5eb6('0x104')](_0x5eb6('0x55'),_0x7d588c),_0x541fee['removeClass'](_0x5eb6('0xca'),_0x7d588c),_0x541fee['removeClass'](_0x5eb6('0x98'),_0x7d588c),_0x541fee[_0x5eb6('0x18')](_0x5eb6('0x3a'),_0x7d588c),_0xa6cff3){const _0x35da2e=this[_0x5eb6('0xd2')](_0xa6cff3);if(!_0x35da2e)return null;_0x541fee[_0x5eb6('0x2c')](_0x5eb6('0x55'),_0xa6cff3,_0x7d588c),_0x541fee[_0x5eb6('0xbc')](_0x5eb6('0xd0')+_0x35da2e[_0x5eb6('0x20')],_0x7d588c),this[_0x5eb6('0x9')]==_0x35da2e&&_0x541fee[_0x5eb6('0xbc')]('ck-revision-history-root--active',_0x7d588c);}}}});}),this[_0x5eb6('0x2f')][_0x5eb6('0x5c')][_0x5eb6('0xd7')](_0x5eb6('0x69'))[_0x5eb6('0x1')]({'view':_0x5eb6('0xce'),'model':_0x1f2555=>_0x5eb6('0x6f')+_0x1f2555,'converterPriority':_0x5eb6('0x9d')}),this[_0x5eb6('0x2f')][_0x5eb6('0x5c')]['for']('upcast')[_0x5eb6('0x1')]({'view':'suggestion','model':_0x1d4ffa=>_0x5eb6('0x32')+_0x1d4ffa,'converterPriority':'highest'}),this[_0x5eb6('0x2f')][_0x5eb6('0x5c')][_0x5eb6('0xd7')]('dataDowncast')[_0x5eb6('0xec')]({'model':_0x5eb6('0x10'),'view':_0x41d11e=>({'name':_0x5eb6('0x95')+_0x41d11e,'group':_0x5eb6('0x10')}),'converterPriority':_0x5eb6('0x9d')}),this['editor'][_0x5eb6('0x5c')][_0x5eb6('0xd7')](_0x5eb6('0x117'))[_0x5eb6('0xb0')]({'model':'revision-suggestion','view':_0xa787de=>{const _0x2553c4=_0xa787de[_0x5eb6('0xbd')][_0x5eb6('0x122')](':')[0x1];return _0x5eb6('0xe9')!=_0x2553c4&&_0x5eb6('0x119')!=_0x2553c4?null:{'classes':[_0x5eb6('0x12a'),_0x5eb6('0x51')+_0x2553c4]};}}),this[_0x5eb6('0x2f')]['editing'][_0x5eb6('0x82')]['on'](_0x5eb6('0x108'),et(this['editor'],_0x5eb6('0x2a')),{'priority':'high'}),this[_0x5eb6('0x2f')]['editing'][_0x5eb6('0x82')]['on'](_0x5eb6('0x22'),et(this[_0x5eb6('0x2f')],_0x5eb6('0x122')),{'priority':_0x5eb6('0x53')}),this['editor']['editing'][_0x5eb6('0x82')]['on'](_0x5eb6('0x86'),(_0x28f3ce,_0xc32aa6,_0xc1aae0)=>{const _0x3fa7a1=_0xc1aae0[_0x5eb6('0x6')][_0x5eb6('0xe7')](_0xc32aa6[_0x5eb6('0xbd')]);if(_0x3fa7a1)for(const _0x16fbac of _0x3fa7a1)_0x16fbac['is'](_0x5eb6('0xb2'))&&(_0xc1aae0[_0x5eb6('0x6')][_0x5eb6('0x79')](_0x16fbac,_0xc32aa6[_0x5eb6('0xbd')]),_0xc1aae0['writer']['remove'](_0x16fbac));},{'priority':_0x5eb6('0x53')});}[_0x5eb6('0xd2')](_0x2292a1){return this[_0x5eb6('0x114')][_0x5eb6('0x1e')](_0x2292a1);}['_getViewForChange'](_0x4dfc48){return this['_changeView']&&this[_0x5eb6('0xc5')][_0x5eb6('0x8e')](),this[_0x5eb6('0xc5')]=new _0x1eabbc(this['editor']['locale'],_0x4dfc48),this[_0x5eb6('0xc5')];}[_0x5eb6('0xa1')](){this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x8c')][_0x5eb6('0xc0')][_0x5eb6('0x9b')](_0x5eb6('0x74')),this['on'](_0x5eb6('0x7e'),(_0x3eceee,_0x1cfefe,_0x258519,_0x4456b1)=>{_0x4456b1&&this[_0x5eb6('0x28')][_0x5eb6('0xbf')](_0x4456b1),_0x258519&&(this['_balloon'][_0x5eb6('0xa9')]({'view':_0x258519,'stackId':_0x5eb6('0x6d'),'position':{'target':()=>{const _0xcb53e6=this[_0x5eb6('0x2f')]['editing'],_0x4e8751=this['_getChangeFromId'](_0x258519[_0x5eb6('0x29')]);let _0x2de0a8;if(_0x4e8751['data']['isOnRoot']){const _0x1027f4=_0xcb53e6[_0x5eb6('0x27')][_0x5eb6('0xaf')](_0x4e8751[_0x5eb6('0x97')]);_0x2de0a8=Array[_0x5eb6('0x26')](_0x1027f4[_0x5eb6('0x45')]());}else{const _0x39250f=this['editor']['model'][_0x5eb6('0xd4')][_0x5eb6('0x1e')](_0x5eb6('0x12d')+_0x258519[_0x5eb6('0x29')]);_0x2de0a8=Array[_0x5eb6('0x26')](_0xcb53e6[_0x5eb6('0x6')][_0x5eb6('0xe7')](_0x39250f[_0x5eb6('0x41')]))[_0x5eb6('0x44')](_0x2d5740=>_0xcb53e6[_0x5eb6('0x27')]['domConverter'][_0x5eb6('0xc6')](_0x2d5740))[_0x5eb6('0x44')](_0x3c0dd8=>Array[_0x5eb6('0x26')](_0x3c0dd8[_0x5eb6('0x45')]()))[_0x5eb6('0x38')]();}if(!this[_0x5eb6('0xad')])return _0x2de0a8[0x0];return _0x2de0a8['find'](_0x7e75f1=>_0x7e75f1[_0x5eb6('0x50')]-0x3<=this[_0x5eb6('0xad')]['y']&&_0x7e75f1[_0x5eb6('0x7b')]+0x3>=this[_0x5eb6('0xad')]['y']&&_0x7e75f1['left']-0x3<=this['_activeViewTarget']['x']&&_0x7e75f1[_0x5eb6('0xf1')]+0x3>=this[_0x5eb6('0xad')]['x'])||_0x2de0a8[0x0];}}}),this[_0x5eb6('0x28')][_0x5eb6('0x120')]('revisionHistoryLabel'));}),this['on'](_0x5eb6('0x24'),(_0x24edff,_0x2922ac,_0x23d57e,_0x3b0c5a)=>{this[_0x5eb6('0xd')]=_0x23d57e?this['_getViewForChange'](_0x23d57e):null,this['editor'][_0x5eb6('0x13')]['change'](()=>{const _0x48fcc4=this[_0x5eb6('0x2f')]['editing'];_0x3b0c5a&&(_0x3b0c5a[_0x5eb6('0x6c')]['isOnRoot']?_0x48fcc4[_0x5eb6('0x27')][_0x5eb6('0x66')](_0x1063f2=>{_0x1063f2['removeClass'](_0x5eb6('0x3a'),_0x48fcc4['view'][_0x5eb6('0x8c')][_0x5eb6('0x47')](_0x3b0c5a['rootName']));}):_0x48fcc4['reconvertMarker']('revision:'+_0x3b0c5a['id'])),_0x23d57e&&(_0x23d57e[_0x5eb6('0x6c')][_0x5eb6('0x77')]?_0x48fcc4[_0x5eb6('0x27')][_0x5eb6('0x66')](_0x3e37b2=>{_0x3e37b2[_0x5eb6('0xbc')](_0x5eb6('0x3a'),_0x48fcc4['view'][_0x5eb6('0x8c')][_0x5eb6('0x47')](_0x23d57e['rootName']));}):_0x48fcc4[_0x5eb6('0x112')](_0x5eb6('0x12d')+_0x23d57e['id']));});}),this[_0x5eb6('0x123')](this[_0x5eb6('0x2f')]['editing']['view'][_0x5eb6('0x8c')],'mouseover',(_0x344678,_0x306952)=>{if(this[_0x5eb6('0x9')])return;const _0x29fcc9=this[_0x5eb6('0x3d')](_0x306952[_0x5eb6('0x125')]),_0x3e0316=this[_0x5eb6('0x114')][_0x5eb6('0x1e')](_0x29fcc9);_0x3e0316?(this[_0x5eb6('0xad')]={'x':_0x306952[_0x5eb6('0x21')]['x'],'y':_0x306952[_0x5eb6('0x21')]['y']},this['activeView']=this[_0x5eb6('0x76')](_0x3e0316)):(this[_0x5eb6('0xad')]=null,this[_0x5eb6('0xd')]=null);}),this[_0x5eb6('0x123')](this[_0x5eb6('0x2f')][_0x5eb6('0xae')][_0x5eb6('0x27')][_0x5eb6('0x8c')],_0x5eb6('0xe3'),(_0x4ba545,_0x10520d)=>{const _0x4b25c7=this['_findChangeIdFromDomTarget'](_0x10520d[_0x5eb6('0x125')]),_0x2304e0=this[_0x5eb6('0x114')][_0x5eb6('0x1e')](_0x4b25c7);_0x2304e0?(this[_0x5eb6('0xad')]={'x':_0x10520d[_0x5eb6('0x21')]['x'],'y':_0x10520d[_0x5eb6('0x21')]['y']},_0x2304e0===this[_0x5eb6('0x9')]?this[_0x5eb6('0x28')][_0x5eb6('0xf4')]():this[_0x5eb6('0x9')]=_0x2304e0):(this['_activeViewTarget']=null,this[_0x5eb6('0x9')]=null);});}[_0x5eb6('0x3d')](_0x92c9f6){do{const _0x1f583f=_0x92c9f6[_0x5eb6('0xdc')](_0x5eb6('0x55'));if(_0x1f583f)return _0x1f583f;_0x92c9f6=_0x92c9f6[_0x5eb6('0xba')];}while(_0x92c9f6);return null;}[_0x5eb6('0x10a')](){this[_0x5eb6('0x2f')]['model']['change'](_0x124a85=>{for(const _0x28a26c of this[_0x5eb6('0x2f')]['model'][_0x5eb6('0xd4')])_0x124a85['removeMarker'](_0x28a26c);});}}function et(_0x183d7c,_0x36a887){return(_0x32c116,_0x4145c8,_0x92cafa)=>{if(!_0x92cafa[_0x5eb6('0x88')][_0x5eb6('0xcf')](_0x4145c8[_0x5eb6('0x11e')],_0x32c116[_0x5eb6('0x41')]))return;const _0x5a992f=_0x4145c8['markerRange'][_0x5eb6('0x64')](),_0x5344c5=_0x4145c8['markerRange'][_0x5eb6('0x12b')],_0x4a5a7a=_0x183d7c[_0x5eb6('0x13')][_0x5eb6('0x5e')];let _0x49e455=null,_0x2d68ca=null,_0x5dce2f=!0x1,_0x52f226=!0x1;for(const _0x529a89 of _0x5a992f){const _0x2c4eb0=_0x529a89[_0x5eb6('0xa3')];_0x5dce2f=_0x5dce2f||_0x4a5a7a['isContent'](_0x2c4eb0);const _0x2946f5=_0x92cafa['mapper'][_0x5eb6('0xa0')](_0x2c4eb0);if(_0x2946f5&&_0x2946f5[_0x5eb6('0x106')](_0x5eb6('0x1c')))return;_0x5eb6('0x54')==_0x529a89[_0x5eb6('0x20')]&&(_0x4a5a7a[_0x5eb6('0xe6')](_0x2c4eb0)&&!_0x4a5a7a['isLimit'](_0x2c4eb0)&&(_0x2c4eb0[_0x5eb6('0x4f')]||_0x5344c5['isAtEnd']?_0x49e455&&_0x49e455[_0x5eb6('0xba')]==_0x2c4eb0||(_0x49e455=_0x2c4eb0,_0x13b497(_0x529a89[_0x5eb6('0x89')]),_0x52f226=!0x0):_0x2d68ca=_0x2d68ca||_0x529a89[_0x5eb6('0x89')]));}function _0x13b497(_0x58d324){const _0x47c23b=_0x92cafa['mapper'][_0x5eb6('0xf9')](_0x58d324),_0x337507=_0x92cafa[_0x5eb6('0x7f')][_0x5eb6('0xb9')](_0x5eb6('0xeb'),{'class':_0x5eb6('0x51')+_0x36a887});_0x92cafa['writer']['insert'](_0x47c23b,_0x337507),_0x92cafa['mapper'][_0x5eb6('0x83')](_0x337507,_0x4145c8['markerName']);}_0x5dce2f||_0x52f226||!_0x2d68ca||_0x13b497(_0x2d68ca);};}export class RestoreRevisionCommand extends _0x17001f{constructor(_0x5a0156){super(_0x5a0156);const _0x5e6bb5=_0x5a0156[_0x5eb6('0x8d')][_0x5eb6('0x1e')](d);this[_0x5eb6('0xd6')]=!0x1,this[_0x5eb6('0x123')](_0x5e6bb5,'change:isReady',()=>this[_0x5eb6('0x23')]()),this[_0x5eb6('0x123')](_0x5e6bb5,_0x5eb6('0xd1'),()=>this[_0x5eb6('0x23')]());}[_0x5eb6('0xe0')](){const _0x4ad96f=this[_0x5eb6('0x2f')],_0x42e277=_0x4ad96f['plugins']['get'](d),_0x2dce8e=_0x42e277[_0x5eb6('0x10f')]?_0x42e277[_0x5eb6('0x10d')][_0x5eb6('0x43')]:null;_0x4ad96f[_0x5eb6('0xbb')][_0x5eb6('0x1e')](_0x5eb6('0xda'))[_0x5eb6('0xd5')](_0x2dce8e);}[_0x5eb6('0x23')](){const {isReady:_0x25e11c,isEnabled:_0x11d0c7}=this[_0x5eb6('0x2f')]['plugins'][_0x5eb6('0x1e')](d);this['isEnabled']=_0x25e11c&&_0x11d0c7;}}export class ShowChangeCommand extends _0x17001f{constructor(_0x24ebbb,{direction:_0x50319a}){super(_0x24ebbb);const _0x117710=_0x24ebbb[_0x5eb6('0x8d')]['get'](d);this[_0x5eb6('0xd6')]=!0x1,this[_0x5eb6('0xb4')]='forward'===_0x50319a?0x1:-0x1,this[_0x5eb6('0x123')](_0x117710,_0x5eb6('0x4c'),()=>this['refresh']()),this[_0x5eb6('0x123')](_0x117710,'change:isEnabled',()=>this[_0x5eb6('0x23')]()),this[_0x5eb6('0x123')](_0x117710,_0x5eb6('0x24'),()=>this[_0x5eb6('0x23')]());}['execute'](){const _0x25344d=this[_0x5eb6('0x2f')],_0x2790e2=_0x25344d[_0x5eb6('0x8d')][_0x5eb6('0x1e')](d),{isNavigationMode:_0x1ca4c5,currentChangeNumber:_0x3fb777}=_0x2790e2;let _0x539e96;if(_0x2790e2['activeChange']=_0x1ca4c5?_0x2790e2['diff']['changes']['get'](_0x3fb777+this['_step']):_0x2790e2[_0x5eb6('0x10d')]['changes'][_0x5eb6('0xa6')],_0x2790e2[_0x5eb6('0x9')][_0x5eb6('0x6c')][_0x5eb6('0x77')])_0x539e96=_0x25344d[_0x5eb6('0xae')][_0x5eb6('0x27')][_0x5eb6('0xaf')](_0x2790e2[_0x5eb6('0x9')][_0x5eb6('0x97')]);else{const _0xaf12cc=_0x25344d[_0x5eb6('0x13')][_0x5eb6('0xd4')][_0x5eb6('0x1e')](_0x5eb6('0x12d')+_0x2790e2[_0x5eb6('0x9')]['id']);_0x539e96=_0x363016(_0x25344d[_0x5eb6('0xae')],_0xaf12cc);}_0x198d78({'target':_0x539e96,'viewportOffset':0x28});}[_0x5eb6('0x23')](){const {isNavigationMode:_0x3929fb,currentChangeNumber:_0x1daf78,numberOfChanges:_0x4658f7,isReady:_0xb6f8c6,isEnabled:_0x12d948}=this['editor']['plugins'][_0x5eb6('0x1e')](d);this[_0x5eb6('0x11')]=!!(_0x12d948&&_0xb6f8c6&&_0x4658f7)&&(!_0x3929fb||(0x1===this['_step']?_0x1daf78<_0x4658f7-0x1:_0x1daf78>0x0));}}
23
+ const _0x49ed=['removeMarker','WidgetToolbarRepository','_cleanUp','diff','_setConversion','parent','revision-start','getWalker','unshift','createPositionBefore','_findChangeIdFromDomTarget','isLimit','-new','ck-suggestion-preview-marker-','changes','changeId','span','_removeUnsupportedChanges','view','shift','bindElementToMarker','isAtStart','loadRevisionData','toViewRange','isAtEnd','forEach','viewItem','useFillerType','collaboration.channelId','_markMismatchedRemovedTags','ck-revision-history-root--active','vid','end','isAttached','_cleanMarkers','setAttribute','splice','dataDowncast','addMarker:revision-suggestion:insertion','roots','set','addMarker:revision','revisionHistory','addRevision','addHighlight','catch','revision:','then','_makeModelFromTape','attributesAfter','default','children','locale','isOnRoot','upcast','getRevision','processor','change:activeView','nextSibling','isRemoveSuggestion','isReady','flat','wrap','revision-comment:','deletions','rootName','change','softBreak','distance','selection','isAdded','attachChange','schema','config','_changeIdToChange','detachRoot','endIndex','revision-suggestion','_removeMissingPairs','_getRevisionsRange','model','removeAttribute','backward','plugins','enqueueChange','editing','_markMarkers','ck-suggestion-marker','findIndex','showNextChange','_step','activeChange','createRevision','markersStart','removeMarker:revision','revisionHistoryAttachChange','error','marked','next','high','domEvent','_appendChild','_joinTapes','markerToHighlight','test','ck-revision-history-root-','level','delete','indexOf','showStack','numberOfChanges','bottom','resolve','_setChanges','ck-editor__editable__overlay','conversion','editingDowncast','insertions','createPositionFromPath','markerRange','low','addRoot','restoreRevision','_markInsertions','includes','oldRevisionId','isIncorrect','_removeRevisionMarkers','elementToAttribute','elementStart','pluginName','_getDiff','ck-suggestion-marker-split','string','from','markerName','ck-suggestion-marker--active','mapper','repository','element','init','document','isEnabled','modelRange','maxOffset','element:pre','RevisionViewer','suggestion:','isNavigationMode','change:isReady','_refreshStartEndIndex','uiElement','sort','editor','data-revision-','elementEnd','highest','listenTo','insertion','concat','ck-suggestion-marker-merge','getDomRoot','filter','newRevisionId','length','commands','isEqual','parse','ck-suggestion-preview-marker','vid_start','getRootNames','getAttribute','affectsData','right','isSuggestion','item','markerToData','showPreviousChange','_threeWayMerge','merge','isBefore','_activeViewTarget','execute','consume','remove','nextPosition','_update','createUIElement','range','attribute:vid','markersEnd','_getViewObj','_getChangeFromId','downcastDispatcher','_sortAndFilterDiffChanges','name','checkAttribute','left','get','reconvertMarker','start','data','_makeTape','getRoot','addClass','object','change:numberOfChanges','vid_end','startsWith','_markSuggestions','toModel','pairId','markers','ck-revision-history-root-add','adapter','ck-revision-history-root-remove','getClientRects','ck-suggestion-marker-','refresh','observeMarkers','removeMarker:revision-suggestion','_getViewForChange','has','_data','toViewPosition','_processTape','hasClass','forceDisabled','keys','bind','RevisionsRepository','type','map','isBlock','for','_initInteractions','getAttributes','dataToMarker','getIndex','hasAttribute','enableReadOnlyMode','target','isAddSuggestion','nodeAfter','createRangeIn','createRange','insert','_balloon','isCollapsed','startIndex','toViewElement','change:isEnabled','split','userId','toData','getCustomProperty','slice','text','getChild','activeView','side','code','isRemoved','offsetSize','destroy','add','previousPosition','addMarker:revision-suggestion:deletion','markerNameToElements','currentChangeNumber','_setDistance','diffData','revision-end','revision-viewer','top','compare','clear','revision','getRevisionRootsAttributes','_changeView','restoreRevisionCallback','_fixObsoleteTags','unbindElementFromMarkerName','abs','removeClass','_revisions','deletion','isAfter','index','isObject','attributes','revisionHistoryLabel','consumable','writer','data-change-id','push','revision-suggestion:'];(function(_0x189262,_0x49ed23){const _0xf120c6=function(_0x4017f1){while(--_0x4017f1){_0x189262['push'](_0x189262['shift']());}};_0xf120c6(++_0x49ed23);}(_0x49ed,0x6a));const _0xf120=function(_0x189262,_0x49ed23){_0x189262=_0x189262-0x0;let _0xf120c6=_0x49ed[_0x189262];return _0xf120c6;};import{Plugin as _0x2f68aa,Command as _0x3c975e}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3ffbc9}from'ckeditor5/src/utils';import{ContextualBalloon as _0x42c6be}from'ckeditor5/src/ui';import{DocumentFragment as _0x53359b,Element as _0x5d140e,Text as _0x57d44f,ViewDocumentFragment as _0x1df723,ViewText as _0x55826c,ViewElement as _0xc740e4,ViewContainerElement as _0x186255,ViewAttributeElement as _0x5f2ed2,ViewEmptyElement as _0x349638,ViewRawElement as _0x479f5d,ViewUIElement as _0x413bb0}from'ckeditor5/src/engine';import{Users as _0xe464f2,getMarkerDomElement as _0x511d68}from'ckeditor5-collaboration/src/collaboration-core';import _0x2b76d4 from'./ui/revisionviewer/changedetailsview';import _0x2db0e2 from'./revisionsrepository';import _0x2ea2e6 from'./changeitem';import{default as _0x578411}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x473e16}from'lodash-es';const tt={'c':_0x186255,'a':_0x5f2ed2,'e':_0x349638,'r':_0x479f5d,'u':_0x413bb0};export default class d extends _0x2f68aa{static get[_0xf120('0x18')](){return _0xf120('0x28');}static get['requires'](){return[_0xe464f2,_0x42c6be,_0x2db0e2];}constructor(_0x3d142e){super(_0x3d142e),this[_0xf120('0x20')]=this['editor'][_0xf120('0x112')][_0xf120('0x5c')](_0xf120('0x7c')),this[_0xf120('0xe7')](_0xf120('0x11a'),null),this[_0xf120('0xe7')](_0xf120('0x99'),null),this[_0xf120('0x4b')]=null,this[_0xf120('0xe7')]('diff',null),this[_0xf120('0xe7')](_0xf120('0xfb'),!0x1),this['set'](_0xf120('0x24'),!0x0),this['on'](_0xf120('0x91'),(_0x1d5c12,_0x26215d,_0x3a3f64)=>{this[_0xf120('0x11a')]=null,this[_0xf120('0x99')]=null,this[_0xf120('0x2f')][_0xf120('0x114')][_0xf120('0xd1')][_0xf120('0x101')](_0x3bacc4=>{for(const _0x4f532a of this[_0xf120('0x2f')][_0xf120('0x114')][_0xf120('0xd1')]['document'][_0xf120('0xe6')])_0x3a3f64?_0x3bacc4[_0xf120('0xb2')](_0xf120('0x8'),_0x4f532a):_0x3bacc4[_0xf120('0x62')](_0xf120('0x8'),_0x4f532a);});}),this[_0xf120('0x7b')](_0xf120('0x2a'))['to'](this,_0xf120('0x11a'),_0x5b4a5e=>null!==_0x5b4a5e),this[_0xf120('0x7b')](_0xf120('0xa3'))['to'](this,'isReady',this,_0xf120('0xc2'),this,'activeChange',(_0x420e8a,_0x1b4a78,_0x1d5248)=>_0x420e8a&&_0x1d5248?_0x1b4a78[_0xf120('0xcd')][_0xf120('0x84')](_0x1d5248):0x0),this[_0xf120('0x7b')](_0xf120('0x4'))['to'](this,'isReady',this,_0xf120('0xc2'),(_0x23240b,_0x4683e5)=>_0x23240b?_0x4683e5[_0xf120('0xcd')]['length']:0x0),this[_0xf120('0xad')]=null,this[_0xf120('0x109')]=new Map(),this[_0xf120('0x6c')]=null,this[_0xf120('0x8d')]=this[_0xf120('0x2f')][_0xf120('0x112')]['get'](_0x42c6be);}[_0xf120('0x22')](){const _0x330243=this[_0xf120('0x2f')],_0x15d202=new ShowChangeCommand(_0x330243,{'direction':_0xf120('0x111')}),_0x321e69=new ShowChangeCommand(_0x330243,{'direction':'forward'});(_0x330243[_0xf120('0x3b')]['add'](_0xf120('0x47'),_0x15d202),_0x330243[_0xf120('0x3b')][_0xf120('0x9f')](_0xf120('0x118'),_0x321e69),_0x330243[_0xf120('0x3b')][_0xf120('0x9f')](_0xf120('0x10'),new RestoreRevisionCommand(_0x330243)),this['on'](_0xf120('0x64'),()=>{_0x15d202[_0xf120('0x70')](),_0x321e69['refresh']();}),this[_0xf120('0xc3')](),this[_0xf120('0x81')](),_0x330243[_0xf120('0x86')]('revision-viewer'),_0x330243['plugins']['has'](_0xf120('0xc0')))&&_0x330243[_0xf120('0x112')][_0xf120('0x5c')](_0xf120('0xc0'))[_0xf120('0x79')](_0xf120('0xa7'));}async['getRevisionData'](_0x22ff42){await this[_0xf120('0xd5')](_0x22ff42);const _0x182103={};for(const _0x1fc975 in _0x22ff42[_0xf120('0xa5')]){if(_0x22ff42['diffData'][_0x1fc975][_0xf120('0x106')]&&!_0x22ff42[_0xf120('0xa5')][_0x1fc975][_0xf120('0x106')][_0xf120('0xe0')])continue;const _0x8b3b2c=this[_0xf120('0x15')](JSON[_0xf120('0x3d')](_0x22ff42['diffData'][_0x1fc975]['insertions'])),_0x2e91aa=this[_0xf120('0x2f')][_0xf120('0x114')]['view']['document'],_0x3dae12=new _0x1df723(_0x2e91aa,_0x8b3b2c[_0xf120('0x7e')](_0x23b4e4=>this[_0xf120('0x55')](_0x23b4e4)));this[_0xf120('0x2f')][_0xf120('0x5f')][_0xf120('0xf7')]['useFillerType'](_0xf120('0x120')),_0x182103[_0x1fc975]=this[_0xf120('0x2f')]['data'][_0xf120('0xf7')][_0xf120('0x94')](_0x3dae12),this[_0xf120('0x2f')][_0xf120('0x5f')][_0xf120('0xf7')][_0xf120('0xda')](_0xf120('0xf1'));}return _0x182103;}async[_0xf120('0xac')](_0x3668e0){await this[_0xf120('0xd5')](_0x3668e0);const _0xfe4e3d={};for(const _0x7e7e3 in _0x3668e0[_0xf120('0xa5')])_0x3668e0[_0xf120('0xa5')][_0x7e7e3][_0xf120('0x106')]&&!_0x3668e0['diffData'][_0x7e7e3][_0xf120('0x106')][_0xf120('0xe0')]||(_0xfe4e3d[_0x7e7e3]=_0x3668e0['diffData'][_0x7e7e3][_0xf120('0xf0')]||{});return _0xfe4e3d;}[_0xf120('0x15')](_0x1b1b4c){return(_0x1b1b4c=_0x1b1b4c[_0xf120('0x38')](_0x3ebe2a=>!_0x3ebe2a[_0xf120('0x59')]||_0xf120('0xc5')!==_0x3ebe2a[_0xf120('0x59')]&&_0xf120('0xa6')!==_0x3ebe2a[_0xf120('0x59')]))[_0xf120('0xd8')](_0x48a71a=>{'string'!=typeof _0x48a71a&&(_0x48a71a[_0xf120('0xf2')]=this['_removeRevisionMarkers'](_0x48a71a['children']),_0x48a71a['attributes']=_0x48a71a[_0xf120('0xb8')][_0xf120('0x38')](_0x30f1da=>!_0x30f1da[0x0]['startsWith'](_0xf120('0x30'))));}),_0x1b1b4c;}async[_0xf120('0xa9')](_0xf29883,_0x1cb1aa,_0x239a7e=!0x1){if(!this[_0xf120('0x24')])return;const _0x38fe0e=this[_0xf120('0xc2')],_0x5c9ace=this[_0xf120('0x20')],_0x5f1b31=_0xf120('0x1b')==typeof _0xf29883?_0x5c9ace[_0xf120('0xf6')](_0xf29883):_0xf29883,_0x1667c2=_0xf120('0x1b')==typeof _0x1cb1aa?_0x5c9ace[_0xf120('0xf6')](_0x1cb1aa):_0x1cb1aa,_0x3be5cb=_0x5f1b31['id'],_0x3258d3=_0x1667c2?_0x1667c2['id']:null;if(!_0x239a7e&&this[_0xf120('0xc2')]&&this['diff'][_0xf120('0x39')]===_0x3be5cb&&this[_0xf120('0xc2')][_0xf120('0x13')]===_0x3258d3)return Promise[_0xf120('0x6')]();this[_0xf120('0xfb')]=!0x1,this['activeView']=null,this['activeChange']=null,this[_0xf120('0xc2')]=new _0x578411(_0x3be5cb,_0x3258d3);const _0xa417fd=this[_0xf120('0x10e')](_0x5f1b31,_0x1667c2,!0x0)['map'](_0x3a98ce=>this[_0xf120('0xd5')](_0x3a98ce));return _0xa417fd[_0xf120('0xbd')](new Promise(_0x3ef857=>{setTimeout(_0x3ef857,0x14);})),Promise['all'](_0xa417fd)[_0xf120('0xee')](()=>{if(!this[_0xf120('0x24')])return;this['_cleanUp']();const _0x1f9522=this[_0xf120('0x19')](_0x3be5cb,_0x3258d3);for(const _0x2c067d of _0x1f9522['changes'])this[_0xf120('0x109')][_0xf120('0xe7')](_0x2c067d['id'],_0x2c067d);this[_0xf120('0x2f')]['model'][_0xf120('0x113')]({'isUndoable':!0x1},_0x5b2f99=>{for(const _0x3a5852 of this['editor']['model'][_0xf120('0x23')][_0xf120('0x40')]())_0x5b2f99['detachRoot'](_0x3a5852);for(const _0x1d9386 of Object[_0xf120('0x7a')](_0x1f9522[_0xf120('0x10f')])){const _0x2487ec=_0x5b2f99[_0xf120('0xf')](_0x1d9386);for(const _0xa7cd57 of Object[_0xf120('0x7a')](_0x1f9522[_0xf120('0xb8')][_0x1d9386]))_0x5b2f99[_0xf120('0xe2')](_0xa7cd57,_0x1f9522['attributes'][_0x1d9386][_0xa7cd57],_0x2487ec);_0x5b2f99[_0xf120('0x8c')](_0x1f9522[_0xf120('0x10f')][_0x1d9386],_0x2487ec,0x0);}}),this[_0xf120('0xc2')][_0xf120('0x7')](this[_0xf120('0x58')](_0x1f9522[_0xf120('0xcd')])),this[_0xf120('0xfb')]=!0x0;})[_0xf120('0xec')](_0x4532eb=>{console[_0xf120('0x11f')](_0x4532eb),this['_cleanUp'](),_0x38fe0e&&(this[_0xf120('0xc2')]=_0x38fe0e),this[_0xf120('0xfb')]=!0x0;});}['addRevisionData'](_0x245bf2,_0x5c6886){const _0x1eef60=this[_0xf120('0x20')][_0xf120('0x11b')](_0x245bf2);return _0x1eef60['on']('_update',(_0x19031c,_0x5596c1,_0x514058)=>_0x5c6886(_0x5596c1,_0x514058,_0x1eef60)),this[_0xf120('0x20')][_0xf120('0xea')](_0x1eef60),_0x1eef60;}[_0xf120('0xd5')](_0x46ae18){if(!_0x46ae18||_0x46ae18[_0xf120('0xa5')])return Promise[_0xf120('0x6')]();{const _0x52932a=this['editor'][_0xf120('0x108')][_0xf120('0x5c')](_0xf120('0xdb'));return this[_0xf120('0x6c')]['getRevision']({'channelId':_0x52932a,'revisionId':_0x46ae18['id']})[_0xf120('0xee')](_0x367868=>{_0x46ae18[_0xf120('0x50')]({'diffData':_0x367868[_0xf120('0xa5')]},!0x0);});}}[_0xf120('0xc1')](){this['activeChange']=null,this['_cleanMarkers'](),this[_0xf120('0xad')]&&this[_0xf120('0xad')]['destroy'](),this[_0xf120('0xad')]=null,this[_0xf120('0x109')][_0xf120('0xaa')](),this[_0xf120('0x2f')][_0xf120('0x10f')]['enqueueChange']({'isUndoable':!0x1},_0x260717=>{for(const _0x385b6f of this[_0xf120('0x2f')][_0xf120('0x10f')][_0xf120('0x23')][_0xf120('0x40')]())_0x260717[_0xf120('0x10a')](_0x385b6f);});}[_0xf120('0x58')](_0x13bb78){const _0x1132ca=[],_0x184fcf=new Map();for(const _0x563098 of this[_0xf120('0x2f')][_0xf120('0x10f')][_0xf120('0x23')]['getRootNames']()){const _0x58c444=this[_0xf120('0x2f')][_0xf120('0x114')][_0xf120('0xd1')][_0xf120('0x37')](_0x563098);if(!_0x58c444)continue;const _0x1bd72f=_0x58c444['getClientRects']()['item'](0x0);_0x1bd72f&&(_0x1132ca[_0xf120('0xbd')](_0x563098),_0x184fcf['set'](_0x563098,_0x1bd72f));}return _0x1132ca[_0xf120('0x2e')]((_0x17ba38,_0x576562)=>{const _0x483401=_0x184fcf[_0xf120('0x5c')](_0x17ba38),_0x389e84=_0x184fcf[_0xf120('0x5c')](_0x576562);return _0x483401['y']-_0x389e84['y']||_0x483401['x']-_0x389e84['x'];}),(_0x13bb78=_0x13bb78['filter'](_0x1b2936=>_0x1132ca[_0xf120('0x12')](_0x1b2936[_0xf120('0x100')])))[_0xf120('0x2e')]((_0x432f4b,_0x43e128)=>_0x1132ca[_0xf120('0x2')](_0x432f4b[_0xf120('0x100')])-_0x1132ca[_0xf120('0x2')](_0x43e128[_0xf120('0x100')])),_0x13bb78;}[_0xf120('0x60')](_0x2eb8a9){const _0x38da59=Array[_0xf120('0x1c')](_0x2eb8a9[_0xf120('0x6a')])[_0xf120('0x38')](([_0xb96de4,_0x2b8701])=>_0xb96de4[_0xf120('0x66')](_0xf120('0xed'))&&!_0x2b8701[_0xf120('0x8e')]),_0x44bbbc=Array[_0xf120('0x1c')](this['editor'][_0xf120('0x10f')][_0xf120('0x8a')](_0x2eb8a9)[_0xf120('0xc6')]({'singleCharacters':!0x0}));if(0x0!=_0x38da59[_0xf120('0x3a')])for(const _0x11fa00 of _0x44bbbc){const [_0x44dde9,_0x5ed598]=_0x38da59[0x0],[,_0x48c922,_0x4b6125]=_0x44dde9[_0xf120('0x92')](':');if(_0x5ed598[_0xf120('0xdf')][_0xf120('0x3c')](_0x11fa00[_0xf120('0x4f')])&&_0x38da59['shift'](),(_0x11fa00[_0xf120('0xa0')][_0xf120('0x3c')](_0x5ed598[_0xf120('0x5e')])||_0x11fa00['previousPosition'][_0xf120('0xb5')](_0x5ed598[_0xf120('0x5e')]))&&('insertion'==_0x48c922?_0x11fa00[_0xf120('0x105')]={'userId':_0x4b6125}:_0xf120('0xb4')==_0x48c922&&(_0x11fa00['isRemoved']={'userId':_0x4b6125})),0x0==_0x38da59[_0xf120('0x3a')])break;}return _0x44bbbc;}['_refreshStartEndIndex'](_0x569ffe){const _0x2881f6=new Map();for(let _0x47e8ac=0x0;_0x47e8ac<_0x569ffe[_0xf120('0x3a')];_0x47e8ac++)_0xf120('0x97')===_0x569ffe[_0x47e8ac][_0xf120('0x7d')]?(_0x569ffe[_0x47e8ac]['item'][_0xf120('0x8f')]=_0x47e8ac,_0x569ffe[_0x47e8ac][_0xf120('0x45')][_0xf120('0x10b')]=_0x47e8ac):(_0xf120('0x17')===_0x569ffe[_0x47e8ac][_0xf120('0x7d')]?_0x569ffe[_0x47e8ac][_0xf120('0x45')][_0xf120('0x8f')]=_0x47e8ac:_0xf120('0x31')===_0x569ffe[_0x47e8ac][_0xf120('0x7d')]&&(_0x569ffe[_0x47e8ac]['item'][_0xf120('0x10b')]=_0x47e8ac),_0x2881f6['set'](_0x569ffe[_0x47e8ac]['id'],_0x47e8ac));for(const _0x568c32 of _0x2881f6['values']())_0xf120('0x17')===_0x569ffe[_0x568c32][_0xf120('0x7d')]?_0x569ffe[_0x568c32][_0xf120('0x45')]['endIndex']=_0x2881f6[_0xf120('0x5c')](_0x569ffe[_0x568c32][_0xf120('0x69')]):_0xf120('0x31')===_0x569ffe[_0x568c32][_0xf120('0x7d')]&&(_0x569ffe[_0x568c32][_0xf120('0x45')]['startIndex']=_0x2881f6[_0xf120('0x5c')](_0x569ffe[_0x568c32]['pairId']));}[_0xf120('0x77')](_0x26a90a){for(let _0x54a890=0x0;_0x54a890<_0x26a90a['length'];_0x54a890++){if(_0xf120('0x17')===_0x26a90a[_0x54a890][_0xf120('0x7d')])_0x26a90a[_0x54a890][_0xf120('0x45')][_0xf120('0x8f')]=_0x54a890;else{if('elementEnd'===_0x26a90a[_0x54a890]['type']){_0x26a90a[_0x54a890][_0xf120('0x45')][_0xf120('0x10b')]=_0x54a890;const _0x411781=_0x26a90a[_0x54a890][_0xf120('0x45')][_0xf120('0x8f')];_0x26a90a[_0x411781]['pairId']=_0x26a90a[_0x54a890]['id'],_0x26a90a[_0x54a890]['pairId']=_0x26a90a[_0x411781]['id'];}else _0x26a90a[_0x54a890][_0xf120('0x45')]['startIndex']=_0x54a890,_0x26a90a[_0x54a890]['item'][_0xf120('0x10b')]=_0x54a890,_0x26a90a[_0x54a890][_0xf120('0x69')]=null;}_0x26a90a[_0x54a890]['markersStart']||(_0x26a90a[_0x54a890][_0xf120('0x11c')]=[],_0x26a90a[_0x54a890][_0xf120('0x54')]=[]);}}[_0xf120('0x11')](_0x581302,_0x362f5c){const _0x41e368=_0x581302[_0xf120('0x38')](_0x5f3293=>!_0x5f3293[_0xf120('0x105')]);for(let _0x1857e8=0x0;_0x1857e8<_0x362f5c[_0xf120('0x3a')];_0x1857e8++)_0x362f5c[_0x1857e8]['isAdded']&&(_0x41e368[_0x1857e8][_0xf120('0x105')]=_0x362f5c[_0x1857e8][_0xf120('0x105')]);}['_makeModelFromViewString'](_0x3f89e9){const _0x54d3a1=JSON[_0xf120('0x3d')](_0x3f89e9),_0x3da477=this['editor'][_0xf120('0x114')][_0xf120('0xd1')][_0xf120('0x23')],_0x2f4573=new _0x1df723(_0x3da477,_0x54d3a1[_0xf120('0x7e')](_0x30bba4=>this[_0xf120('0x55')](_0x30bba4)));return this[_0xf120('0x2f')][_0xf120('0x5f')][_0xf120('0x68')](_0x2f4573);}['_getViewObj'](_0x2e5637){const _0x23aa56=this[_0xf120('0x2f')][_0xf120('0x114')]['view'][_0xf120('0x23')];if(_0xf120('0x1b')==typeof _0x2e5637)return new _0x55826c(_0x23aa56,_0x2e5637);{const _0x36511e=_0x2e5637[_0xf120('0xf2')][_0xf120('0x7e')](_0x1275b9=>this['_getViewObj'](_0x1275b9));return new(tt[_0x2e5637[(_0xf120('0x7d'))]]||_0xc740e4)(_0x23aa56,_0x2e5637[_0xf120('0x59')],_0x2e5637[_0xf120('0xb8')],_0x36511e);}}[_0xf120('0x19')](_0x327084,_0x2f24f1=null){const _0x16d781=this[_0xf120('0x20')]['getRevision'](_0x327084),_0x35bb62=_0x2f24f1?this[_0xf120('0x20')][_0xf120('0xf6')](_0x2f24f1):null,_0x4c5e36=this[_0xf120('0x10e')](_0x16d781,_0x35bb62),_0xce3238=_0x4c5e36[_0x4c5e36[_0xf120('0x3a')]-0x1],_0x4072c6=new Map(),_0x3e72d9={'model':{},'attributes':{},'changes':[]},_0x35c39f=new Set(),_0x430fb2=new Map();for(let _0x288d31=_0x4c5e36['length']-0x1;_0x288d31>=0x0;_0x288d31--){const _0x35adf9=_0x4c5e36[_0x288d31];for(const _0x27ec34 of Object[_0xf120('0x7a')](_0x35adf9[_0xf120('0xa5')]))if(_0x35adf9[_0xf120('0xa5')][_0x27ec34][_0xf120('0x106')]){const _0x1d2e39=_0x35adf9[_0xf120('0xa5')][_0x27ec34]['attachChange'];_0x1d2e39['isAttached']?(_0x35c39f[_0xf120('0x9f')](_0x27ec34),_0x430fb2[_0xf120('0x74')](_0x27ec34)&&_0x430fb2[_0xf120('0x5c')](_0x27ec34)[_0xf120('0x93')]==_0x1d2e39[_0xf120('0x93')]?_0x430fb2[_0xf120('0x1')](_0x27ec34):_0x430fb2[_0xf120('0xe7')](_0x27ec34,_0x1d2e39)):_0x430fb2[_0xf120('0x74')](_0x27ec34)?(_0x35c39f['delete'](_0x27ec34),_0x430fb2[_0xf120('0x1')](_0x27ec34)):(_0x35c39f[_0xf120('0x9f')](_0x27ec34),_0x430fb2[_0xf120('0xe7')](_0x27ec34,_0x1d2e39));}else _0x35c39f[_0xf120('0x9f')](_0x27ec34);}for(const _0x39ae1f of _0x35c39f){const _0x41f711=_0x430fb2['has'](_0x39ae1f)&&!_0x430fb2[_0xf120('0x5c')](_0x39ae1f)['isAttached'];let _0x45de3b=_0x41f711?_0x4c5e36[_0xf120('0x3a')]-0x1:0x0;const _0x2a2489=_0x41f711?-0x1:0x1;for(;_0x4c5e36[_0x45de3b];){const _0x271b18=_0x4c5e36[_0x45de3b];if(_0x271b18[_0xf120('0xa5')][_0x39ae1f]){const _0x17604b=_0x41f711?_0x271b18[_0xf120('0xa5')][_0x39ae1f]['attributesBefore']:_0x271b18[_0xf120('0xa5')][_0x39ae1f][_0xf120('0xf0')];_0x3e72d9[_0xf120('0xb8')][_0x39ae1f]=_0x17604b?_0x473e16(_0x17604b):{};break;}_0x45de3b+=_0x2a2489;}}for(const _0x321941 of _0x4c5e36){_0x321941[_0xf120('0x10f')]={};for(const _0x4b1afd of _0x321941['authors'])_0x4072c6['set'](_0x4b1afd['id'],_0x4b1afd);for(const _0x2fb298 of _0x35c39f){const _0x1d5643=_0x321941[_0xf120('0xa5')][_0x2fb298]?_0x321941[_0xf120('0xa5')][_0x2fb298][_0xf120('0xb')]:'[]',_0x4ef0d0=_0x321941[_0xf120('0xa5')][_0x2fb298]?_0x321941[_0xf120('0xa5')][_0x2fb298][_0xf120('0xff')]:'[]';_0x321941[_0xf120('0x10f')][_0x2fb298]={'insertions':this['_makeModelFromViewString'](_0x1d5643),'deletions':this['_makeModelFromViewString'](_0x4ef0d0)};}}for(const _0x3a84e1 of _0x35c39f){let _0x4dbebc=null,_0x2f817d=0x0;const _0x5a8ddb=new Map(Array[_0xf120('0x1c')](_0x16d781['model'][_0x3a84e1][_0xf120('0xb')]['markers'])['filter'](([_0x318e81])=>!_0x318e81[_0xf120('0x66')](_0xf120('0xed'))));let _0x54fd79=0x0;for(const _0x5991da of _0x4c5e36){const _0x30c045=this[_0xf120('0x60')](_0x5991da['model'][_0x3a84e1][_0xf120('0xb')]);_0x5991da==_0x16d781?(_0x4dbebc=_0x30c045,_0x2f817d=_0x4dbebc[_0xf120('0x3a')],_0x4dbebc[_0xf120('0xd8')](_0x44b4f5=>{_0x44b4f5['id']=_0x54fd79++;}),this['_processTape'](_0x4dbebc)):this[_0xf120('0x11')](_0x4dbebc,_0x30c045);const _0x4db565=_0x4dbebc[_0xf120('0x38')](_0x1cd6b5=>!_0x1cd6b5[_0xf120('0x105')])[_0xf120('0x7e')](_0x517a87=>_0x517a87['id']);let _0x41d80a=0x0;const _0x54ed0c=this[_0xf120('0x60')](_0x5991da[_0xf120('0x10f')][_0x3a84e1][_0xf120('0xff')]);_0x54ed0c[_0xf120('0xd8')](_0x2e27fa=>{_0x2e27fa[_0xf120('0x9c')]?_0x2e27fa['id']=_0x2f817d++:_0x2e27fa['id']=_0x4db565[_0x41d80a++];}),this[_0xf120('0x77')](_0x54ed0c),this[_0xf120('0xa4')](_0x4dbebc,_0xf120('0x105')),this[_0xf120('0xa4')](_0x54ed0c,'isRemoved'),_0x5991da==_0x16d781&&this[_0xf120('0x115')](_0x4dbebc,_0x5a8ddb),_0x4dbebc=this[_0xf120('0x125')](_0x4dbebc,_0x54ed0c),this[_0xf120('0x2c')](_0x4dbebc),this['_setDistance'](_0x4dbebc,_0xf120('0x9c'));}_0x4dbebc=_0x4dbebc['filter'](_0x55f57d=>!(_0x55f57d[_0xf120('0x105')]&&_0x55f57d[_0xf120('0x9c')]));const _0x18333f=new Map(_0xce3238['model'][_0x3a84e1]['deletions'][_0xf120('0x6a')]),_0x4d5dfc=new Set(_0x5a8ddb[_0xf120('0x7a')]());for(const _0x45b21 of _0x18333f['keys']())_0x4d5dfc[_0xf120('0x1')](_0x45b21);this[_0xf120('0x67')](_0x4dbebc,_0x4d5dfc),this[_0xf120('0xaf')](_0x4dbebc),_0x4dbebc=this[_0xf120('0x10d')](_0x4dbebc),_0x4dbebc=this[_0xf120('0xdc')](_0x4dbebc),_0x4dbebc=this[_0xf120('0xd0')](_0x4dbebc);const {root:_0x4faa34,changes:_0x5684c7}=this['_makeModelFromTape'](_0x4dbebc,_0x4072c6,_0x3a84e1);_0x3e72d9['model'][_0x3a84e1]=_0x4faa34;const _0xeebc6f=_0x430fb2['get'](_0x3a84e1);if(_0xeebc6f){const _0x559623=_0x4072c6['get'](_0xeebc6f['userId']),_0x1f6ff4=new _0x2ea2e6({'author':_0x559623,'type':_0xeebc6f[_0xf120('0xe0')]?_0xf120('0x9f'):_0xf120('0x4e'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3a84e1});_0x5684c7[_0xf120('0xc7')](_0x1f6ff4),_0x3e72d9['attributes'][_0x3a84e1][_0xf120('0x11e')]=_0x1f6ff4['id'];}_0x3e72d9['changes']=_0x3e72d9[_0xf120('0xcd')]['concat'](_0x5684c7);}return _0x3e72d9;}['_markMarkers'](_0x24b14c,_0x9b023a){for(let _0x120eeb=0x0;_0x120eeb<_0x24b14c[_0xf120('0x3a')];_0x120eeb++)for(const [_0x43aa39,_0x38726a]of _0x9b023a)_0x38726a[_0xf120('0x5e')]['isEqual'](_0x24b14c[_0x120eeb]['previousPosition'])&&_0x24b14c[_0x120eeb]['markersStart'][_0xf120('0xbd')](_0x43aa39),_0x38726a[_0xf120('0xdf')]['isEqual'](_0x24b14c[_0x120eeb][_0xf120('0x4f')])&&_0x24b14c[_0x120eeb][_0xf120('0x54')][_0xf120('0xbd')](_0x43aa39);}[_0xf120('0x125')](_0xa044fb,_0x50236e){let _0xe41d78=[],_0x23e7c0=0x0,_0x2acc91=0x0;for(;_0x23e7c0<_0xa044fb['length']||_0x2acc91<_0x50236e[_0xf120('0x3a')];){const _0x5ab46e=_0xa044fb[_0x23e7c0]||{},_0x1f4c24=_0x50236e[_0x2acc91]||{};if(_0x5ab46e['id']==_0x1f4c24['id'])_0x23e7c0++,_0x2acc91++,_0xe41d78[_0xf120('0xbd')](_0x5ab46e);else{if(_0x1f4c24[_0xf120('0x9c')]&&_0x5ab46e['isAdded']){const {commonTape:_0x2a2a11,iEnd:_0x329bf5,jEnd:_0x16c283}=this[_0xf120('0x48')](_0xa044fb,_0x23e7c0,_0x50236e,_0x2acc91);_0xe41d78=_0xe41d78[_0xf120('0x35')](_0x2a2a11),_0x23e7c0=_0x329bf5,_0x2acc91=_0x16c283;}else _0x1f4c24[_0xf120('0x9c')]?(_0x2acc91++,_0xe41d78[_0xf120('0xbd')](_0x1f4c24)):(_0x23e7c0++,_0xe41d78[_0xf120('0xbd')](_0x5ab46e));}}return _0xe41d78;}['_markSuggestions'](_0x1b561c,_0x5b4a26){const _0x3520f0=[];for(let _0x438984=0x0;_0x438984<_0x1b561c[_0xf120('0x3a')];_0x438984++){for(let _0x391f90=0x0;_0x391f90<_0x1b561c[_0x438984][_0xf120('0x11c')]['length'];_0x391f90++){const _0x367650=_0x1b561c[_0x438984][_0xf120('0x11c')][_0x391f90];if(!_0x5b4a26['has'](_0x367650))continue;const {group:_0x46e220,type:_0xda20a3,authorId:_0x3b5572}=_0x16a8de(_0x367650);'revision-suggestion'!=_0x46e220||_0xf120('0x34')!=_0xda20a3&&'deletion'!=_0xda20a3||(_0x3520f0[_0xf120('0xc7')]({'type':_0xda20a3,'name':_0x367650,'userId':_0x3b5572}),_0x1b561c[_0x438984][_0xf120('0x11c')][_0xf120('0xe3')](_0x391f90,0x1),_0x391f90--);}_0x54b474(_0x1b561c[_0x438984]);for(let _0x2270da=0x0;_0x2270da<_0x1b561c[_0x438984][_0xf120('0x54')][_0xf120('0x3a')];_0x2270da++){const _0x5ddb6e=_0x1b561c[_0x438984][_0xf120('0x54')][_0x2270da];if(!_0x5b4a26['has'](_0x5ddb6e))continue;const {group:_0x1f83a4,type:_0x340f04}=_0x16a8de(_0x5ddb6e);if(_0xf120('0x10c')!=_0x1f83a4||_0xf120('0x34')!=_0x340f04&&_0xf120('0xb4')!=_0x340f04)continue;_0x1b561c[_0x438984][_0xf120('0x54')]['splice'](_0x2270da,0x1),_0x2270da--;const _0x2c3906=_0x3520f0[_0xf120('0x117')](_0x9dcdb=>_0x9dcdb['name']==_0x5ddb6e);_0x2c3906>-0x1&&_0x3520f0[_0xf120('0xe3')](_0x2c3906,0x1);}}function _0x16a8de(_0x5c69a5){const _0x3a2b14=_0x5c69a5['split'](':');return{'group':_0x3a2b14[0x0],'type':_0x3a2b14[0x1],'subType':_0x3a2b14[_0xf120('0x3a')]>=0x5?_0x3a2b14[0x2]:null,'id':_0x3a2b14[_0xf120('0x3a')]<0x5?_0x3a2b14[0x2]:_0x3a2b14[0x3],'authorId':_0x3a2b14[_0xf120('0x3a')]<0x5?_0x3a2b14[0x3]:_0x3a2b14[0x4],'markerCount':0x6==_0x3a2b14['length']?_0x3a2b14[0x5]:null};}function _0x54b474(_0x1f6f4c){for(let _0x179d2c=0x0;_0x179d2c<_0x3520f0[_0xf120('0x3a')];_0x179d2c++){if(_0x1f6f4c['isAdded']&&'insertion'==_0x3520f0[_0x179d2c]['type'])return _0x1f6f4c[_0xf120('0x88')]=_0x3520f0[_0x179d2c],void delete _0x1f6f4c[_0xf120('0x105')];if(!_0x1f6f4c[_0xf120('0x105')]&&!_0x1f6f4c[_0xf120('0x9c')]&&'deletion'==_0x3520f0[_0x179d2c][_0xf120('0x7d')])return void(_0x1f6f4c[_0xf120('0xfa')]=_0x3520f0[_0x179d2c]);}}}['_setDistance'](_0x23f435,_0x55322c){let _0x11544c=0x0,_0x27aac1=!0x1;const _0x420145=new Map();for(const _0x2d6f88 of _0x23f435)_0x2d6f88[_0x55322c]?_0x27aac1&&(_0x11544c++,_0x27aac1=!0x1):(_0x11544c++,_0x27aac1=!0x0),_0x420145['set'](_0x2d6f88['id'],_0x11544c);for(let _0x1157c0=0x0;_0x1157c0<_0x23f435[_0xf120('0x3a')];_0x1157c0++){if('isRemoved'==_0x55322c&&_0x23f435[_0x1157c0][_0xf120('0x105')]||_0xf120('0x105')==_0x55322c&&_0x23f435[_0x1157c0][_0xf120('0x9c')])continue;if(_0xf120('0x97')==_0x23f435[_0x1157c0][_0xf120('0x7d')]){_0x23f435[_0x1157c0][_0xf120('0x103')]=0x0;continue;}const _0x182952=_0x420145['get'](_0x23f435[_0x1157c0][_0xf120('0x69')]),_0x4cbb53=_0x420145['get'](_0x23f435[_0x1157c0]['id']);_0x23f435[_0x1157c0][_0xf120('0x103')]=_0x182952-_0x4cbb53;}}[_0xf120('0x10e')](_0x45d29d,_0x277fdc,_0x93fedd=!0x1){const _0x3af90a=[];let _0x37cf38=this[_0xf120('0x20')][_0xf120('0x84')](_0x45d29d),_0x169524=this[_0xf120('0x20')]['getIndex'](_0x277fdc);for(-0x1==_0x169524&&(_0x169524=this['repository'][_0xf120('0xb3')][_0xf120('0x3a')],_0x93fedd=!0x1);_0x37cf38<_0x169524;)_0x3af90a[_0xf120('0xbd')](this[_0xf120('0x20')][_0xf120('0xf6')](_0x37cf38)),_0x37cf38++;return _0x93fedd&&_0x3af90a[_0xf120('0xbd')](this[_0xf120('0x20')][_0xf120('0xf6')](_0x37cf38)),_0x3af90a;}[_0xf120('0x48')](_0x162159,_0x1cca80,_0x1d44fa,_0x339eef){const _0x1596d8=this[_0xf120('0x2f')]['model'][_0xf120('0x107')];let _0x57514e=_0x1cca80;for(;_0x162159[_0x57514e]&&_0x162159[_0x57514e][_0xf120('0x105')];)_0x57514e++;let _0x5cc2cd=_0x339eef;for(;_0x1d44fa[_0x5cc2cd]&&_0x1d44fa[_0x5cc2cd][_0xf120('0x9c')];)_0x5cc2cd++;_0x4dfb5e(_0x162159,_0x1cca80,_0x57514e),_0x4dfb5e(_0x1d44fa,_0x339eef,_0x5cc2cd);const _0x43dc5e=_0x1d44fa[_0xf120('0x96')](_0x339eef,_0x5cc2cd)['concat'](_0x162159[_0xf120('0x96')](_0x1cca80,_0x57514e));return _0x43dc5e[_0xf120('0x2e')]((_0xd56c14,_0x96d353)=>_0xd56c14[_0xf120('0x9a')]!=_0x96d353[_0xf120('0x9a')]?_0xd56c14[_0xf120('0x9a')]-_0x96d353[_0xf120('0x9a')]:_0xd56c14[_0xf120('0x0')]!=_0x96d353[_0xf120('0x0')]?_0xd56c14['level']-_0x96d353[_0xf120('0x0')]:_0xd56c14[_0xf120('0x103')]!=_0x96d353[_0xf120('0x103')]?_0x96d353[_0xf120('0x103')]-_0xd56c14[_0xf120('0x103')]:!!_0xd56c14[_0xf120('0x105')]!=!!_0x96d353[_0xf120('0x105')]?-0x1==_0xd56c14['side']||0x0==_0xd56c14['side']?_0xd56c14[_0xf120('0x105')]?-0x1:0x1:_0xd56c14[_0xf120('0x105')]?0x1:-0x1:_0xd56c14[_0xf120('0xb6')]-_0x96d353['index']),{'commonTape':_0x43dc5e,'iEnd':_0x57514e,'jEnd':_0x5cc2cd};function _0x4dfb5e(_0xa4fac7,_0x1c1987,_0x359fdc){let _0x5796a5=-0x1,_0x132eec=Number['POSITIVE_INFINITY'],_0x364ac9=!0x0;for(let _0x3f6cde=_0x1c1987;_0x3f6cde<_0x359fdc;_0x3f6cde++)if(_0x1596d8['isInline'](_0xa4fac7[_0x3f6cde][_0xf120('0x45')])||(_0x364ac9=!0x1),_0xa4fac7[_0x3f6cde][_0xf120('0x45')][_0xf120('0x8f')]<_0x1c1987&&(_0x5796a5=_0x3f6cde),_0xa4fac7[_0x3f6cde][_0xf120('0x45')][_0xf120('0x10b')]>=_0x359fdc){_0x132eec=_0x3f6cde;break;}_0x364ac9&&(_0x5796a5=_0x359fdc-0x1);for(let _0x5f48ac=_0x1c1987;_0x5f48ac<_0x359fdc;_0x5f48ac++)_0xa4fac7[_0x5f48ac][_0xf120('0x9a')]=_0x5f48ac<=_0x5796a5?-0x1:_0x5f48ac<_0x132eec?0x0:0x1,_0xa4fac7[_0x5f48ac][_0xf120('0xb6')]=_0x5f48ac;let _0x1ad37d=0x0;for(let _0x1468d9=_0x1c1987;_0x1468d9<=_0x5796a5;_0x1468d9++)0x0==_0xa4fac7[_0x1468d9]['distance']?_0xa4fac7[_0x1468d9][_0xf120('0x0')]=_0x1ad37d:(_0x1ad37d++,_0xa4fac7[_0x1468d9]['level']=_0x1ad37d,_0x1ad37d++);for(let _0xdb40b7=_0x1c1987;_0xdb40b7<_0x359fdc;_0xdb40b7++)0x0==_0xa4fac7[_0xdb40b7][_0xf120('0x9a')]&&(_0xa4fac7[_0xdb40b7][_0xf120('0x0')]=_0x1ad37d);_0x1ad37d=0x0;for(let _0x5b1101=_0x359fdc-0x1;_0x5b1101>=_0x132eec;_0x5b1101--)0x0==_0xa4fac7[_0x5b1101][_0xf120('0x103')]?_0xa4fac7[_0x5b1101][_0xf120('0x0')]=_0x1ad37d:(_0x1ad37d--,_0xa4fac7[_0x5b1101][_0xf120('0x0')]=_0x1ad37d,_0x1ad37d--);}}[_0xf120('0xaf')](_0x28aced){const _0x2b15c3=new Map(),_0x2ae338=this[_0xf120('0x2f')][_0xf120('0x10f')][_0xf120('0x107')];for(let _0x56e082=0x1;_0x56e082<_0x28aced['length'];_0x56e082++){let _0x998a99,_0x11e867,_0x24b283;const _0x492a9f=_0x28aced[_0x56e082],_0x2c0009=_0x28aced[_0x56e082-0x1];if(_0xf120('0x97')==_0x492a9f[_0xf120('0x7d')])continue;if(_0x492a9f['type']!=_0x2c0009['type'])continue;if(!_0x2ae338['isBlock'](_0x2c0009['item'])||_0x2ae338[_0xf120('0xca')](_0x2c0009[_0xf120('0x45')]))continue;if(!_0x2ae338['isBlock'](_0x492a9f[_0xf120('0x45')])||_0x2ae338[_0xf120('0xca')](_0x492a9f[_0xf120('0x45')]))continue;if((_0x28aced[_0x56e082][_0xf120('0x105')]||_0x28aced[_0x56e082]['isAddSuggestion'])&&_0x28aced[_0x56e082-0x1]['isRemoved'])_0x998a99=_0x28aced[_0x56e082],_0x11e867=_0x28aced[_0x56e082-0x1],_0x24b283=_0x56e082-0x1;else{if(!_0x28aced[_0x56e082]['isRemoved']||!_0x28aced[_0x56e082-0x1]['isAdded']&&!_0x28aced[_0x56e082-0x1]['isAddSuggestion'])continue;_0x998a99=_0x28aced[_0x56e082-0x1],_0x11e867=_0x28aced[_0x56e082],_0x24b283=_0x56e082;}const _0x224ad5=_0x998a99['level']==_0x11e867[_0xf120('0x0')],_0x4ac079=Math[_0xf120('0xb1')](_0x998a99[_0xf120('0x0')])<Math[_0xf120('0xb1')](_0x11e867['level'])&&0x0==_0x11e867[_0xf120('0x103')];(_0x224ad5||_0x4ac079)&&(_0x2b15c3['set'](_0x11e867['id'],_0x998a99['id']),_0x28aced[_0xf120('0xe3')](_0x24b283,0x1),_0x56e082--,_0x998a99['isAdded']=!0x1);}for(let _0x2664d9=0x0;_0x2664d9<_0x28aced['length'];_0x2664d9++)_0x2b15c3['has'](_0x28aced[_0x2664d9][_0xf120('0x69')])&&(_0x28aced[_0x2664d9][_0xf120('0x69')]=_0x2b15c3['get'](_0x28aced[_0x2664d9]['pairId']));}[_0xf120('0x10d')](_0xe1a7a4){const _0x19159d=new Set(_0xe1a7a4[_0xf120('0x7e')](_0x4bff23=>_0x4bff23['id']));for(let _0x143fa7=0x0;_0x143fa7<_0xe1a7a4[_0xf120('0x3a')];_0x143fa7++)_0x19159d[_0xf120('0x74')](_0xe1a7a4[_0x143fa7][_0xf120('0x69')])||0x0==_0xe1a7a4[_0x143fa7][_0xf120('0x103')]||(_0xe1a7a4[_0x143fa7][_0xf120('0x14')]=!0x0);return _0xe1a7a4[_0xf120('0x38')](_0x12edc5=>!_0x12edc5[_0xf120('0x14')]);}[_0xf120('0xdc')](_0x276934){const _0x255f77=new Set();for(let _0x59ed1a=0x0;_0x59ed1a<_0x276934['length'];_0x59ed1a++){if(_0x255f77[_0xf120('0x74')](_0x276934[_0x59ed1a]['id'])&&_0x276934[_0x59ed1a][_0xf120('0x9c')]&&(_0x276934[_0x59ed1a]['isIncorrect']=!0x0),_0x276934[_0x59ed1a][_0xf120('0x14')])continue;if(0x0==_0x276934[_0x59ed1a][_0xf120('0x103')])continue;if(_0xf120('0x17')!=_0x276934[_0x59ed1a][_0xf120('0x7d')])continue;if(null==_0x276934[_0x59ed1a]['pairId'])continue;let _0x3fc64c=_0x59ed1a+0x1,_0xaa6f64=0x0;for(;_0x276934[_0x3fc64c]['id']!=_0x276934[_0x59ed1a]['pairId'];)_0xf120('0x17')==_0x276934[_0x3fc64c][_0xf120('0x7d')]?_0xaa6f64++:_0xf120('0x31')==_0x276934[_0x3fc64c][_0xf120('0x7d')]&&_0xaa6f64--,_0x3fc64c++;if(0x0!=_0xaa6f64){if(_0x276934[_0x59ed1a][_0xf120('0x9c')])_0x276934[_0x59ed1a][_0xf120('0x14')]=!0x0;else for(;_0x3fc64c!=_0x59ed1a;)_0x276934[_0x3fc64c][_0xf120('0x9c')]&&0x0!=_0x276934[_0x3fc64c][_0xf120('0x103')]&&(_0x276934[_0x3fc64c]['isIncorrect']=!0x0,_0x255f77['add'](_0x276934[_0x3fc64c][_0xf120('0x69')])),_0x3fc64c--;}}return _0x276934[_0xf120('0x38')](_0xa188ec=>!_0xa188ec['isIncorrect']);}[_0xf120('0xd0')](_0x3df70d){const _0x2a513b=this[_0xf120('0x2f')][_0xf120('0x10f')]['schema'];for(let _0x1450b4=0x0;_0x1450b4<_0x3df70d[_0xf120('0x3a')];_0x1450b4++){if(!(_0x3df70d[_0x1450b4][_0xf120('0x105')]||_0x3df70d[_0x1450b4]['isAddSuggestion']||_0x3df70d[_0x1450b4][_0xf120('0x9c')]||_0x3df70d[_0x1450b4][_0xf120('0xfa')]))continue;if(0x0==_0x3df70d[_0x1450b4][_0xf120('0x103')])continue;const _0x10691b=_0x3df70d[_0x1450b4]['item'];_0x2a513b[_0xf120('0x7f')](_0x10691b)||_0x2a513b[_0xf120('0xca')](_0x10691b)||(_0x3df70d[_0x1450b4][_0xf120('0x105')]&&delete _0x3df70d[_0x1450b4][_0xf120('0x105')],_0x3df70d[_0x1450b4][_0xf120('0x88')]&&delete _0x3df70d[_0x1450b4][_0xf120('0x88')],_0x3df70d[_0x1450b4][_0xf120('0xfa')]&&delete _0x3df70d[_0x1450b4][_0xf120('0xfa')],_0x3df70d[_0x1450b4][_0xf120('0x9c')]&&(_0x3df70d[_0x1450b4]['isIncorrect']=!0x0));}return _0x3df70d[_0xf120('0x38')](_0x49c8ab=>!_0x49c8ab[_0xf120('0x14')]);}[_0xf120('0xef')](_0x1236a4,_0x485ea6,_0x5e57db){const _0x4741cd=new _0x53359b(),_0x435c16=[],_0x10ef43=new Map(),_0x256313=this[_0xf120('0x2f')]['model'],_0x1d46f7=_0x256313['schema'],_0x19d28b=[_0x4741cd],_0x413c9a={},_0x57d0cd={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4ce793=null;const _0x4b2dda=[0x0];for(let _0x5b81ed=0x0;_0x5b81ed<_0x1236a4[_0xf120('0x3a')];_0x5b81ed++){let _0x9b353,_0x73ce7e;if(_0xf120('0x17')===_0x1236a4[_0x5b81ed]['type']){_0x9b353=_0x256313[_0xf120('0xc')](_0x4741cd,_0x4b2dda);const _0x1b2129=new _0x5d140e(_0x1236a4[_0x5b81ed][_0xf120('0x45')][_0xf120('0x59')],_0x1236a4[_0x5b81ed]['item'][_0xf120('0x82')]());_0x19d28b[0x0][_0xf120('0x124')](_0x1b2129),_0x4b2dda[_0xf120('0xbd')](0x0),_0x19d28b['unshift'](_0x1b2129),_0x73ce7e=_0x256313[_0xf120('0xc')](_0x4741cd,_0x4b2dda),_0x4ce793=null;}else{if('elementEnd'===_0x1236a4[_0x5b81ed][_0xf120('0x7d')])_0x19d28b[_0xf120('0xd2')](),_0x9b353=_0x256313[_0xf120('0xc')](_0x4741cd,_0x4b2dda),_0x4b2dda['pop'](),_0x4b2dda[_0x4b2dda[_0xf120('0x3a')]-0x1]++,_0x73ce7e=_0x256313[_0xf120('0xc')](_0x4741cd,_0x4b2dda),_0x4ce793=null;else{if(_0x9b353=_0x256313[_0xf120('0xc')](_0x4741cd,_0x4b2dda),_0x4ce793&&_0x1bd1d8(_0x4ce793,_0x1236a4[_0x5b81ed][_0xf120('0x45')]))_0x4ce793[_0xf120('0x75')]+=_0x1236a4[_0x5b81ed]['item'][_0xf120('0x5f')];else{const _0xbc1251=new _0x57d44f(_0x1236a4[_0x5b81ed][_0xf120('0x45')][_0xf120('0x5f')],_0x1236a4[_0x5b81ed][_0xf120('0x45')][_0xf120('0x82')]());_0x19d28b[0x0][_0xf120('0x124')](_0xbc1251),_0x4ce793=_0xbc1251;}_0x4b2dda[_0x4b2dda[_0xf120('0x3a')]-0x1]+=_0x1236a4[_0x5b81ed]['item'][_0xf120('0x9d')],_0x73ce7e=_0x256313[_0xf120('0xc')](_0x4741cd,_0x4b2dda);}}for(const _0x183fad of _0x1236a4[_0x5b81ed][_0xf120('0x11c')])_0x10ef43[_0xf120('0xe7')](_0x183fad,{'start':_0x9b353,'end':null});_0x26d661('isRemoveSuggestion',_0x5b81ed,_0x9b353,_0x73ce7e),_0x26d661(_0xf120('0x88'),_0x5b81ed,_0x9b353,_0x73ce7e),_0x26d661(_0xf120('0x9c'),_0x5b81ed,_0x9b353,_0x73ce7e),_0x26d661(_0xf120('0x105'),_0x5b81ed,_0x9b353,_0x73ce7e);for(const _0xb7aeed of _0x1236a4[_0x5b81ed][_0xf120('0x54')]){_0x10ef43['get'](_0xb7aeed)[_0xf120('0xdf')]=_0x73ce7e;}}for(const [_0x184123,_0x1589c2]of _0x10ef43){const _0x324c69=this['editor'][_0xf120('0x10f')][_0xf120('0x8b')](_0x1589c2[_0xf120('0x5e')],_0x1589c2[_0xf120('0xdf')]);_0x4741cd[_0xf120('0x6a')][_0xf120('0xe7')](_0x184123,_0x324c69);}return _0x435c16[_0xf120('0x2e')]((_0x1be874,_0x2aa234)=>{const _0x425ad9=_0x4741cd[_0xf120('0x6a')][_0xf120('0x5c')]('revision:'+_0x1be874['id']),_0x1903a1=_0x4741cd[_0xf120('0x6a')]['get']('revision:'+_0x2aa234['id']);return _0x425ad9[_0xf120('0x5e')][_0xf120('0x4a')](_0x1903a1[_0xf120('0x5e')])?-0x1:_0x425ad9[_0xf120('0x5e')][_0xf120('0xb5')](_0x1903a1[_0xf120('0x5e')])?0x1:_0x425ad9[_0xf120('0xdf')][_0xf120('0x4a')](_0x1903a1[_0xf120('0xdf')])?-0x1:_0x425ad9[_0xf120('0xdf')][_0xf120('0xb5')](_0x1903a1[_0xf120('0xdf')])?0x1:_0xf120('0x9f')===_0x1be874[_0xf120('0x7d')]?-0x1:0x1;}),{'root':_0x4741cd,'changes':_0x435c16};function _0x26d661(_0x1ded27,_0x291777,_0x11bc85,_0x5c83c6){const _0x184c4f=!!_0x1236a4[_0x291777][_0x1ded27],_0x1d051f=_0x184c4f?_0x1236a4[_0x291777][_0x1ded27][_0xf120('0x93')]:null,_0x3bbb18=_0x291777===_0x1236a4[_0xf120('0x3a')]-0x1,_0x4dacf9=_0x57d0cd[_0x1ded27][0x0],_0x45f264=_0x1d46f7[_0xf120('0xb7')](_0x1236a4[_0x291777]['item']);!_0x413c9a[_0x1ded27]&&_0x184c4f?_0x413c9a[_0x1ded27]={'start':_0x11bc85,'tapeItem':_0x1236a4[_0x291777],'userId':_0x1d051f,'type':_0x1ded27}:_0x413c9a[_0x1ded27]&&!_0x184c4f?(_0x413c9a[_0x1ded27][_0xf120('0xdf')]=_0x11bc85,_0x1b13d0(_0x413c9a[_0x1ded27]),_0x413c9a[_0x1ded27]=null):_0x413c9a[_0x1ded27]&&_0x184c4f&&_0x413c9a[_0x1ded27][_0xf120('0x93')]!==_0x1d051f&&(_0x413c9a[_0x1ded27]['end']=_0x11bc85,_0x4dacf9&&_0x4dacf9[_0xf120('0x93')]===_0x413c9a[_0x1ded27][_0xf120('0x93')]||_0x1b13d0(_0x413c9a[_0x1ded27]),_0x413c9a[_0x1ded27]={'start':_0x11bc85,'tapeItem':_0x1236a4[_0x291777],'userId':_0x1d051f,'type':_0x1ded27}),_0x413c9a[_0x1ded27]&&_0x45f264&&(_0xf120('0x17')!==_0x1236a4[_0x291777][_0xf120('0x7d')]||_0x4dacf9&&_0x4dacf9[_0xf120('0x93')]===_0x1d051f||_0x57d0cd[_0x1ded27][_0xf120('0xc7')]({'userId':_0x1d051f,'object':_0x1236a4[_0x291777][_0xf120('0x45')],'change':_0x413c9a[_0x1ded27]}),_0xf120('0x31')===_0x1236a4[_0x291777][_0xf120('0x7d')]&&_0x4dacf9&&_0x4dacf9[_0xf120('0x63')]===_0x1236a4[_0x291777][_0xf120('0x45')]&&(_0x57d0cd[_0x1ded27]['shift'](),_0x413c9a[_0x1ded27]=_0x4dacf9[_0xf120('0x101')])),_0x413c9a[_0x1ded27]&&_0x3bbb18&&(_0x413c9a[_0x1ded27][_0xf120('0xdf')]=_0x5c83c6,_0x1b13d0(_0x413c9a[_0x1ded27]),_0x413c9a[_0x1ded27]=null);}function _0x1b13d0({start:_0x2dff45,end:_0x6a5cd3,tapeItem:_0x350f05,userId:_0x364cd1,type:_0x43478a}){const _0xa9b04c=_0x350f05[_0xf120('0x45')],_0x3090bd=_0x256313[_0xf120('0x107')][_0xf120('0x7f')](_0xa9b04c)&&!_0x256313['schema'][_0xf120('0xca')](_0xa9b04c),_0x4c6716=_0x2dff45[_0xf120('0x89')]==_0x6a5cd3['parent']&&_0x6a5cd3[_0xf120('0xd4')];if(_0x3090bd&&_0x4c6716)return;const _0x6e54e2=_0x256313[_0xf120('0x8b')](_0x2dff45,_0x6a5cd3),_0x25b0e0=_0x485ea6[_0xf120('0x5c')](_0x364cd1),_0x5a5db6=new _0x2ea2e6({'author':_0x25b0e0,'type':_0xf120('0x105')==_0x43478a||_0xf120('0x88')==_0x43478a?_0xf120('0x9f'):_0xf120('0x4e'),'data':{'isSuggestion':_0xf120('0x88')==_0x43478a||_0xf120('0xfa')==_0x43478a},'createdAt':new Date(),'rootName':_0x5e57db});_0x435c16['push'](_0x5a5db6),_0x4741cd[_0xf120('0x6a')][_0xf120('0xe7')](_0xf120('0xed')+_0x5a5db6['id'],_0x6e54e2);}function _0x1bd1d8(_0x373aeb,_0x145633){const _0x246712=_0x373aeb['getAttributes'](),_0x5a9eec=_0x145633['getAttributes']();for(const _0x4043fe of _0x246712){if(_0x4043fe[0x1]!==_0x145633[_0xf120('0x41')](_0x4043fe[0x0]))return!0x1;_0x5a9eec[_0xf120('0x121')]();}return _0x5a9eec['next']()['done'];}}[_0xf120('0xc3')](){this[_0xf120('0x2f')][_0xf120('0x9')][_0xf120('0x80')](_0xf120('0xf5'))[_0xf120('0x83')]({'view':_0xf120('0xab')}),this[_0xf120('0x2f')][_0xf120('0x9')]['for']('editingDowncast')[_0xf120('0x126')]({'model':'revision','view':_0x3205cd=>{const _0x1bc55b=_0x3205cd[_0xf120('0x1d')][_0xf120('0x92')](':')[0x1],_0x3e53e0=this[_0xf120('0x56')](_0x1bc55b);if(!_0x3e53e0)return null;const _0x5141b4=_0xf120('0x9f')==_0x3e53e0[_0xf120('0x7d')]?'insertion':_0xf120('0xb4'),_0xed043=[_0xf120('0x116'),_0xf120('0x6f')+_0x5141b4];return _0x3e53e0[_0xf120('0x5f')][_0xf120('0x44')]&&_0xed043[_0xf120('0xbd')]('ck-suggestion-marker-'+_0x5141b4+_0xf120('0xcb')),this[_0xf120('0x11a')]==_0x3e53e0&&_0xed043[_0xf120('0xbd')](_0xf120('0x1e')),{'classes':_0xed043,'attributes':{'data-change-id':_0x1bc55b}};}}),this['editor']['conversion'][_0xf120('0x80')](_0xf120('0xf5'))[_0xf120('0x9f')](_0x31464a=>{_0x31464a['on'](_0xf120('0x27'),(_0x5e1817,_0x5738ee,_0x4784e7)=>{const _0x502f21=_0x5738ee['viewItem'][_0xf120('0x98')](0x0);if(!_0x502f21||!_0x502f21['is'](_0xf120('0x21'),_0xf120('0x9b')))return;if(!_0x4784e7['consumable']['consume'](_0x502f21,{'attributes':[_0xf120('0x3f'),_0xf120('0x65')]}))return;const _0x1834a7=_0x5738ee['modelRange'][_0xf120('0x5e')][_0xf120('0x89')];_0x4784e7['writer'][_0xf120('0xe2')](_0xf120('0x3f'),_0x502f21[_0xf120('0x41')](_0xf120('0x3f')),_0x1834a7),_0x4784e7[_0xf120('0xbb')][_0xf120('0xe2')](_0xf120('0x65'),_0x502f21[_0xf120('0x41')](_0xf120('0x65')),_0x1834a7);},{'priority':_0xf120('0xe')});}),this[_0xf120('0x2f')][_0xf120('0x9')][_0xf120('0x80')](_0xf120('0xf5'))[_0xf120('0x9f')](_0x302c3a=>{_0x302c3a['on']('element',(_0x51b384,_0x331d17,_0x1f318e)=>{if(!_0x1f318e[_0xf120('0xba')][_0xf120('0x4d')](_0x331d17[_0xf120('0xd9')],{'attributes':['vid_start','vid_end']}))return;if(_0x331d17['modelRange'][_0xf120('0x8e')])return;const _0x182d81=_0x331d17[_0xf120('0x25')][_0xf120('0x5e')][_0xf120('0x89')];_0x182d81[_0xf120('0x85')](_0xf120('0x3f'))||_0x182d81['hasAttribute']('vid')||(_0x1f318e[_0xf120('0xbb')][_0xf120('0xe2')]('vid_start',_0x331d17['viewItem']['getAttribute'](_0xf120('0x3f')),_0x182d81),_0x1f318e[_0xf120('0xbb')]['setAttribute']('vid_end',_0x331d17[_0xf120('0xd9')]['getAttribute'](_0xf120('0x65')),_0x182d81));},{'priority':'low'});}),this[_0xf120('0x2f')][_0xf120('0x9')]['for'](_0xf120('0xf5'))[_0xf120('0x16')]({'view':{'name':_0xf120('0xcf'),'attributes':{'vid':!0x0}},'model':{'key':_0xf120('0xde'),'value':_0x157f4a=>_0x157f4a[_0xf120('0x41')](_0xf120('0xde'))}}),this['editor'][_0xf120('0x10f')][_0xf120('0x107')]['on'](_0xf120('0x5a'),(_0x5beb19,[,_0x54096d])=>{[_0xf120('0x3f'),_0xf120('0x65'),_0xf120('0xde')][_0xf120('0x12')](_0x54096d)&&(_0x5beb19['return']=!0x0,_0x5beb19['stop']());},{'priority':_0xf120('0x32')}),this[_0xf120('0x2f')]['conversion']['for'](_0xf120('0xe4'))[_0xf120('0x9f')](_0x1ad68f=>{_0x1ad68f['on'](_0xf120('0x53'),(_0x39a18f,_0x713d29,_0x4919a0)=>{if('\x20'!=_0x713d29[_0xf120('0x45')][_0xf120('0x5f')]||_0x713d29['item']['parent'][_0xf120('0x26')]>0x1)return;if(!_0x4919a0[_0xf120('0xba')]['consume'](_0x713d29['item'],_0x39a18f[_0xf120('0x59')]))return;const _0x453dba=_0x4919a0['writer'],_0x5e141b=_0x4919a0[_0xf120('0x1f')][_0xf120('0xd6')](_0x713d29[_0xf120('0x52')]);_0x453dba[_0xf120('0xfd')](_0x5e141b,_0x453dba['createAttributeElement'](_0xf120('0xcf')));});}),this[_0xf120('0x2f')][_0xf120('0x9')]['for'](_0xf120('0xe4'))[_0xf120('0x46')]({'model':_0xf120('0xab')}),this[_0xf120('0x2f')][_0xf120('0x114')][_0xf120('0x57')]['on'](_0xf120('0xe8'),function(_0xe16678){const _0x3dfe0f=_0xe16678[_0xf120('0x112')]['get']('RevisionViewer');return(_0x6eeb69,_0x8dcb8e,_0x1fb245)=>{const _0x2d9715=_0x8dcb8e['markerName'][_0xf120('0x92')](':')[0x1],_0x1177d1=_0x3dfe0f['_getChangeFromId'](_0x2d9715);if(!_0x1177d1)return null;const _0x414aa7=_0xf120('0x9f')==_0x1177d1[_0xf120('0x7d')]?_0xf120('0x92'):_0xf120('0x49');if(!_0x1fb245[_0xf120('0xba')][_0xf120('0x127')](_0x8dcb8e[_0xf120('0xd')],_0x6eeb69[_0xf120('0x59')]))return;const _0x55435c=_0x8dcb8e['markerRange'][_0xf120('0xc6')](),_0x5705b8=_0x8dcb8e[_0xf120('0xd')]['start'],_0x467878=_0xe16678['model'][_0xf120('0x107')];let _0x555fd6=null,_0x571873=null,_0x31d353=!0x1,_0x329d35=!0x1;for(const _0x5a2d1d of _0x55435c){const _0x21ad8f=_0x5a2d1d['item'];_0x31d353=_0x31d353||_0x467878['isContent'](_0x21ad8f);const _0x51e2e0=_0x1fb245['mapper'][_0xf120('0x90')](_0x21ad8f);if(_0x51e2e0&&_0x51e2e0[_0xf120('0x95')](_0xf120('0xeb')))return;_0xf120('0x31')==_0x5a2d1d[_0xf120('0x7d')]&&(_0x467878[_0xf120('0x7f')](_0x21ad8f)&&!_0x467878[_0xf120('0xca')](_0x21ad8f)&&(_0x21ad8f[_0xf120('0xf9')]||_0x5705b8[_0xf120('0xd7')]?_0x555fd6&&_0x555fd6['parent']==_0x21ad8f||(_0x555fd6=_0x21ad8f,_0x2ae88e(_0x5a2d1d[_0xf120('0xa0')]),_0x329d35=!0x0):_0x571873=_0x571873||_0x5a2d1d[_0xf120('0xa0')]));}function _0x2ae88e(_0x2b06e5){const _0x35e4ca=_0x1fb245['writer'][_0xf120('0x51')]('span',{'class':_0xf120('0x6f')+_0x414aa7}),_0x2ed5ae=_0x1fb245[_0xf120('0x1f')][_0xf120('0x76')](_0x2b06e5);_0x1177d1[_0xf120('0x5f')][_0xf120('0x44')]&&_0x1fb245[_0xf120('0xbb')][_0xf120('0x62')](_0xf120('0x6f')+_0x414aa7+'-new',_0x35e4ca),_0x3dfe0f[_0xf120('0x11a')]==_0x1177d1&&_0x1fb245[_0xf120('0xbb')][_0xf120('0x62')](_0xf120('0x1e'),_0x35e4ca),_0x1fb245[_0xf120('0xbb')][_0xf120('0x8c')](_0x2ed5ae,_0x35e4ca),_0x1fb245[_0xf120('0x1f')]['bindElementToMarker'](_0x35e4ca,_0x8dcb8e[_0xf120('0x1d')]);}_0x31d353||_0x329d35||!_0x571873||_0x2ae88e(_0x571873);};}(this[_0xf120('0x2f')]),{'priority':_0xf120('0x122')}),this[_0xf120('0x2f')]['editing']['downcastDispatcher']['on'](_0xf120('0x11d'),(_0xfa1583,_0xe50333,_0x582b46)=>{const _0xc4705b=_0x582b46[_0xf120('0x1f')]['markerNameToElements'](_0xe50333[_0xf120('0x1d')]);if(_0xc4705b)for(const _0x34befc of _0xc4705b)(_0x34befc[_0xf120('0x78')](_0xf120('0x1a'))||_0x34befc[_0xf120('0x78')](_0xf120('0x36')))&&(_0x582b46[_0xf120('0x1f')][_0xf120('0xb0')](_0x34befc,_0xe50333[_0xf120('0x1d')]),_0x582b46[_0xf120('0xbb')]['remove'](_0x34befc));},{'priority':_0xf120('0x122')}),this[_0xf120('0x2f')][_0xf120('0x114')][_0xf120('0x57')]['on'](_0xf120('0xe8'),(_0x9cc2e5,_0x6aa416,_0x548c80)=>{const _0x516aa4=_0x6aa416['markerName'][_0xf120('0x92')](':')[0x1],_0x3ca814=this[_0xf120('0x56')](_0x516aa4);if(!_0x3ca814)return null;const _0x505060=_0xf120('0x9f')==_0x3ca814['type']?_0xf120('0x92'):'merge';if(_0x548c80['consumable']['test'](_0x6aa416['markerRange'],_0x9cc2e5[_0xf120('0x59')]))for(const _0x2e598f of _0x6aa416[_0xf120('0xd')]['getItems']()){if(!_0x2e598f['is']('element',_0xf120('0x102')))continue;const _0x415379=_0x548c80[_0xf120('0xbb')][_0xf120('0x51')](_0xf120('0xcf'),{'class':'ck-suggestion-marker-'+_0x505060}),_0x50cdee=_0x548c80[_0xf120('0x1f')]['toViewPosition'](this[_0xf120('0x2f')][_0xf120('0x10f')][_0xf120('0xc8')](_0x2e598f));_0x3ca814[_0xf120('0x5f')][_0xf120('0x44')]&&_0x548c80[_0xf120('0xbb')][_0xf120('0x62')](_0xf120('0x6f')+_0x505060+_0xf120('0xcb'),_0x415379),this[_0xf120('0x11a')]==_0x3ca814&&_0x548c80[_0xf120('0xbb')]['addClass'](_0xf120('0x1e'),_0x415379),_0x548c80['writer'][_0xf120('0x8c')](_0x50cdee,_0x415379),_0x548c80['mapper'][_0xf120('0xd3')](_0x415379,_0x6aa416[_0xf120('0x1d')]);}},{'priority':'high'}),this['editor'][_0xf120('0x10f')][_0xf120('0x23')]['on'](_0xf120('0x101'),()=>{this[_0xf120('0x2f')][_0xf120('0x114')][_0xf120('0xd1')][_0xf120('0x101')](_0x15a074=>{for(const _0x4e6505 of this[_0xf120('0x2f')][_0xf120('0x10f')][_0xf120('0x23')]['getRootNames']()){const _0x3f2a77=this['editor'][_0xf120('0x10f')][_0xf120('0x23')]['getRoot'](_0x4e6505),_0x443ad8=this[_0xf120('0x2f')][_0xf120('0x114')]['view'][_0xf120('0x23')][_0xf120('0x61')](_0x4e6505);if(_0x443ad8){const _0x25f7d9=_0x3f2a77[_0xf120('0x41')](_0xf120('0x11e'));if(_0x15a074[_0xf120('0x110')](_0xf120('0xbc'),_0x443ad8),_0x15a074[_0xf120('0xb2')](_0xf120('0x6b'),_0x443ad8),_0x15a074[_0xf120('0xb2')](_0xf120('0x6d'),_0x443ad8),_0x15a074[_0xf120('0xb2')](_0xf120('0xdd'),_0x443ad8),_0x25f7d9){const _0x1b61f6=this[_0xf120('0x56')](_0x25f7d9);if(!_0x1b61f6)return null;_0x15a074[_0xf120('0xe2')]('data-change-id',_0x25f7d9,_0x443ad8),_0x15a074[_0xf120('0x62')](_0xf120('0x128')+_0x1b61f6[_0xf120('0x7d')],_0x443ad8),this[_0xf120('0x11a')]==_0x1b61f6&&_0x15a074['addClass']('ck-revision-history-root--active',_0x443ad8);}}}});}),this[_0xf120('0x2f')][_0xf120('0x9')]['for']('upcast')[_0xf120('0x83')]({'view':'comment','model':_0x49244c=>_0xf120('0xfe')+_0x49244c,'converterPriority':_0xf120('0x32')}),this[_0xf120('0x2f')][_0xf120('0x9')][_0xf120('0x80')](_0xf120('0xf5'))[_0xf120('0x83')]({'view':'suggestion','model':_0x38b5ac=>_0xf120('0xbe')+_0x38b5ac,'converterPriority':_0xf120('0x32')}),this[_0xf120('0x2f')][_0xf120('0x9')][_0xf120('0x80')](_0xf120('0xe4'))[_0xf120('0x46')]({'model':_0xf120('0x10c'),'view':_0x1b24c2=>({'name':_0xf120('0x29')+_0x1b24c2,'group':_0xf120('0x10c')}),'converterPriority':_0xf120('0x32')}),this[_0xf120('0x2f')]['conversion'][_0xf120('0x80')](_0xf120('0xa'))[_0xf120('0x126')]({'model':_0xf120('0x10c'),'view':_0x24f9ed=>{const _0xf74639=_0x24f9ed['markerName'][_0xf120('0x92')](':')[0x1];return'insertion'!=_0xf74639&&_0xf120('0xb4')!=_0xf74639?null:{'classes':[_0xf120('0x3e'),_0xf120('0xcc')+_0xf74639]};}}),this[_0xf120('0x2f')][_0xf120('0x114')][_0xf120('0x57')]['on'](_0xf120('0xa1'),et(this['editor'],'merge'),{'priority':_0xf120('0x122')}),this[_0xf120('0x2f')]['editing'][_0xf120('0x57')]['on'](_0xf120('0xe5'),et(this['editor'],'split'),{'priority':_0xf120('0x122')}),this[_0xf120('0x2f')][_0xf120('0x114')][_0xf120('0x57')]['on'](_0xf120('0x72'),(_0x335f0d,_0x12a57f,_0x43db05)=>{const _0x1f80b9=_0x43db05[_0xf120('0x1f')][_0xf120('0xa2')](_0x12a57f[_0xf120('0x1d')]);if(_0x1f80b9)for(const _0x1bb0a3 of _0x1f80b9)_0x1bb0a3['is'](_0xf120('0x2d'))&&(_0x43db05['mapper'][_0xf120('0xb0')](_0x1bb0a3,_0x12a57f[_0xf120('0x1d')]),_0x43db05[_0xf120('0xbb')]['remove'](_0x1bb0a3));},{'priority':_0xf120('0x122')});}['_getChangeFromId'](_0x32be86){return this[_0xf120('0x109')][_0xf120('0x5c')](_0x32be86);}[_0xf120('0x73')](_0x25a71c){return this[_0xf120('0xad')]&&this['_changeView'][_0xf120('0x9e')](),this[_0xf120('0xad')]=new _0x2b76d4(this['editor'][_0xf120('0xf3')],_0x25a71c),this[_0xf120('0xad')];}[_0xf120('0x81')](){this[_0xf120('0x2f')][_0xf120('0x10f')][_0xf120('0x23')][_0xf120('0x104')][_0xf120('0x71')]('revision'),this['on'](_0xf120('0xf8'),(_0x44a45f,_0x2a68df,_0x480f55,_0x44c4e8)=>{_0x44c4e8&&this[_0xf120('0x8d')][_0xf120('0x4e')](_0x44c4e8),_0x480f55&&(this[_0xf120('0x8d')]['add']({'view':_0x480f55,'stackId':_0xf120('0xb9'),'position':{'target':()=>{const _0x37dd4f=this['editor'][_0xf120('0x114')],_0x402067=this[_0xf120('0x56')](_0x480f55[_0xf120('0xce')]);let _0x1156ad;if(_0x402067[_0xf120('0x5f')][_0xf120('0xf4')]){const _0x489f38=_0x37dd4f[_0xf120('0xd1')]['getDomRoot'](_0x402067[_0xf120('0x100')]);_0x1156ad=Array['from'](_0x489f38[_0xf120('0x6e')]());}else{const _0x124ece=this[_0xf120('0x2f')][_0xf120('0x10f')]['markers'][_0xf120('0x5c')](_0xf120('0xed')+_0x480f55[_0xf120('0xce')]);_0x1156ad=Array[_0xf120('0x1c')](_0x37dd4f['mapper']['markerNameToElements'](_0x124ece[_0xf120('0x59')]))[_0xf120('0x7e')](_0x34ff3d=>_0x37dd4f[_0xf120('0xd1')]['domConverter']['mapViewToDom'](_0x34ff3d))['map'](_0x3b4b55=>Array[_0xf120('0x1c')](_0x3b4b55[_0xf120('0x6e')]()))[_0xf120('0xfc')]();}if(!this['_activeViewTarget'])return _0x1156ad[0x0];return _0x1156ad['find'](_0x3b692d=>_0x3b692d[_0xf120('0xa8')]-0x3<=this['_activeViewTarget']['y']&&_0x3b692d[_0xf120('0x5')]+0x3>=this[_0xf120('0x4b')]['y']&&_0x3b692d[_0xf120('0x5b')]-0x3<=this[_0xf120('0x4b')]['x']&&_0x3b692d[_0xf120('0x43')]+0x3>=this[_0xf120('0x4b')]['x'])||_0x1156ad[0x0];}}}),this[_0xf120('0x8d')][_0xf120('0x3')](_0xf120('0xb9')));}),this['on']('change:activeChange',(_0x124053,_0x2e1786,_0x178671,_0x6d99e8)=>{this[_0xf120('0x99')]=_0x178671?this[_0xf120('0x73')](_0x178671):null,this['editor'][_0xf120('0x10f')][_0xf120('0x101')](()=>{const _0x236267=this[_0xf120('0x2f')][_0xf120('0x114')];_0x6d99e8&&(_0x6d99e8[_0xf120('0x5f')][_0xf120('0xf4')]?_0x236267[_0xf120('0xd1')][_0xf120('0x101')](_0x2ab19c=>{_0x2ab19c[_0xf120('0xb2')]('ck-revision-history-root--active',_0x236267[_0xf120('0xd1')]['document'][_0xf120('0x61')](_0x6d99e8[_0xf120('0x100')]));}):_0x236267[_0xf120('0x5d')]('revision:'+_0x6d99e8['id'])),_0x178671&&(_0x178671['data'][_0xf120('0xf4')]?_0x236267[_0xf120('0xd1')][_0xf120('0x101')](_0xa5460f=>{_0xa5460f[_0xf120('0x62')]('ck-revision-history-root--active',_0x236267[_0xf120('0xd1')][_0xf120('0x23')][_0xf120('0x61')](_0x178671[_0xf120('0x100')]));}):_0x236267[_0xf120('0x5d')](_0xf120('0xed')+_0x178671['id']));});}),this[_0xf120('0x33')](this['editor']['editing'][_0xf120('0xd1')][_0xf120('0x23')],'mouseover',(_0x3bd1d3,_0x34263b)=>{if(this[_0xf120('0x11a')])return;const _0x5ca4f6=this[_0xf120('0xc9')](_0x34263b[_0xf120('0x87')]),_0x9f16c3=this[_0xf120('0x109')]['get'](_0x5ca4f6);_0x9f16c3?(this[_0xf120('0x4b')]={'x':_0x34263b[_0xf120('0x123')]['x'],'y':_0x34263b[_0xf120('0x123')]['y']},this[_0xf120('0x99')]=this[_0xf120('0x73')](_0x9f16c3)):(this['_activeViewTarget']=null,this[_0xf120('0x99')]=null);}),this[_0xf120('0x33')](this[_0xf120('0x2f')][_0xf120('0x114')][_0xf120('0xd1')][_0xf120('0x23')],'mousedown',(_0x339b82,_0x3148da)=>{const _0x177895=this[_0xf120('0xc9')](_0x3148da[_0xf120('0x87')]),_0x4319c0=this[_0xf120('0x109')][_0xf120('0x5c')](_0x177895);_0x4319c0?(this[_0xf120('0x4b')]={'x':_0x3148da[_0xf120('0x123')]['x'],'y':_0x3148da[_0xf120('0x123')]['y']},_0x4319c0===this['activeChange']?this['_balloon']['updatePosition']():this[_0xf120('0x11a')]=_0x4319c0):(this[_0xf120('0x4b')]=null,this[_0xf120('0x11a')]=null);});}[_0xf120('0xc9')](_0x222eff){do{const _0x40323d=_0x222eff[_0xf120('0x41')](_0xf120('0xbc'));if(_0x40323d)return _0x40323d;_0x222eff=_0x222eff[_0xf120('0xc4')];}while(_0x222eff);return null;}[_0xf120('0xe1')](){this[_0xf120('0x2f')]['model'][_0xf120('0x101')](_0x485dad=>{for(const _0x1d83ae of this['editor'][_0xf120('0x10f')]['markers'])_0x485dad[_0xf120('0xbf')](_0x1d83ae);});}}function et(_0x3703ed,_0x20f753){return(_0x49695b,_0x27325c,_0x51509e)=>{if(!_0x51509e['consumable']['test'](_0x27325c[_0xf120('0xd')],_0x49695b['name']))return;const _0x307b49=_0x27325c['markerRange'][_0xf120('0xc6')](),_0x24bd83=_0x27325c['markerRange'][_0xf120('0x5e')],_0x548159=_0x3703ed[_0xf120('0x10f')][_0xf120('0x107')];let _0x1b6fcb=null,_0x7b53c9=null,_0x97db64=!0x1,_0x1b1a26=!0x1;for(const _0x149680 of _0x307b49){const _0x21ae50=_0x149680[_0xf120('0x45')];_0x97db64=_0x97db64||_0x548159['isContent'](_0x21ae50);const _0x5d2c60=_0x51509e[_0xf120('0x1f')][_0xf120('0x90')](_0x21ae50);if(_0x5d2c60&&_0x5d2c60[_0xf120('0x95')]('addHighlight'))return;_0xf120('0x31')==_0x149680[_0xf120('0x7d')]&&(_0x548159[_0xf120('0x7f')](_0x21ae50)&&!_0x548159['isLimit'](_0x21ae50)&&(_0x21ae50[_0xf120('0xf9')]||_0x24bd83['isAtEnd']?_0x1b6fcb&&_0x1b6fcb[_0xf120('0xc4')]==_0x21ae50||(_0x1b6fcb=_0x21ae50,_0x2215e0(_0x149680['previousPosition']),_0x1b1a26=!0x0):_0x7b53c9=_0x7b53c9||_0x149680[_0xf120('0xa0')]));}function _0x2215e0(_0x1dbcd6){const _0x162cdc=_0x51509e[_0xf120('0x1f')][_0xf120('0x76')](_0x1dbcd6),_0x3c8e40=_0x51509e[_0xf120('0xbb')][_0xf120('0x51')](_0xf120('0xcf'),{'class':_0xf120('0xcc')+_0x20f753});_0x51509e['writer'][_0xf120('0x8c')](_0x162cdc,_0x3c8e40),_0x51509e[_0xf120('0x1f')][_0xf120('0xd3')](_0x3c8e40,_0x27325c['markerName']);}_0x97db64||_0x1b1a26||!_0x7b53c9||_0x2215e0(_0x7b53c9);};}export class RestoreRevisionCommand extends _0x3c975e{constructor(_0x3795d6){super(_0x3795d6);const _0x58b6c5=_0x3795d6[_0xf120('0x112')][_0xf120('0x5c')](d);this[_0xf120('0x42')]=!0x1,this['listenTo'](_0x58b6c5,_0xf120('0x2b'),()=>this[_0xf120('0x70')]()),this['listenTo'](_0x58b6c5,_0xf120('0x91'),()=>this['refresh']());}[_0xf120('0x4c')](){const _0x1069a9=this[_0xf120('0x2f')],_0x295b15=_0x1069a9[_0xf120('0x112')]['get'](d),_0x2a296d=_0x295b15[_0xf120('0xfb')]?_0x295b15[_0xf120('0xc2')][_0xf120('0x39')]:null;_0x1069a9[_0xf120('0x108')][_0xf120('0x5c')](_0xf120('0xe9'))[_0xf120('0xae')](_0x2a296d);}[_0xf120('0x70')](){const {isReady:_0x4d024e,isEnabled:_0x53f696}=this[_0xf120('0x2f')][_0xf120('0x112')][_0xf120('0x5c')](d);this[_0xf120('0x24')]=_0x4d024e&&_0x53f696;}}export class ShowChangeCommand extends _0x3c975e{constructor(_0x37e10b,{direction:_0x48d705}){super(_0x37e10b);const _0x4445cc=_0x37e10b[_0xf120('0x112')][_0xf120('0x5c')](d);this[_0xf120('0x42')]=!0x1,this['_step']='forward'===_0x48d705?0x1:-0x1,this[_0xf120('0x33')](_0x4445cc,'change:isReady',()=>this[_0xf120('0x70')]()),this[_0xf120('0x33')](_0x4445cc,_0xf120('0x91'),()=>this[_0xf120('0x70')]()),this[_0xf120('0x33')](_0x4445cc,'change:activeChange',()=>this[_0xf120('0x70')]());}[_0xf120('0x4c')](){const _0x263d81=this[_0xf120('0x2f')],_0x41a292=_0x263d81['plugins'][_0xf120('0x5c')](d),{isNavigationMode:_0x57bbb7,currentChangeNumber:_0x1dd39a}=_0x41a292;let _0x2e416c;if(_0x41a292[_0xf120('0x11a')]=_0x57bbb7?_0x41a292[_0xf120('0xc2')][_0xf120('0xcd')]['get'](_0x1dd39a+this[_0xf120('0x119')]):_0x41a292[_0xf120('0xc2')][_0xf120('0xcd')]['first'],_0x41a292[_0xf120('0x11a')][_0xf120('0x5f')][_0xf120('0xf4')])_0x2e416c=_0x263d81[_0xf120('0x114')][_0xf120('0xd1')][_0xf120('0x37')](_0x41a292[_0xf120('0x11a')][_0xf120('0x100')]);else{const _0x2c94ff=_0x263d81[_0xf120('0x10f')][_0xf120('0x6a')][_0xf120('0x5c')](_0xf120('0xed')+_0x41a292[_0xf120('0x11a')]['id']);_0x2e416c=_0x511d68(_0x263d81[_0xf120('0x114')],_0x2c94ff);}_0x3ffbc9({'target':_0x2e416c,'viewportOffset':0x28});}[_0xf120('0x70')](){const {isNavigationMode:_0x1ea3c8,currentChangeNumber:_0x46ddd2,numberOfChanges:_0x262a9d,isReady:_0x520caa,isEnabled:_0x48d07f}=this[_0xf120('0x2f')][_0xf120('0x112')]['get'](d);this[_0xf120('0x24')]=!!(_0x48d07f&&_0x520caa&&_0x262a9d)&&(!_0x1ea3c8||(0x1===this[_0xf120('0x119')]?_0x46ddd2<_0x262a9d-0x1:_0x46ddd2>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x178f=['class','isOpen','set','action','find','execute','stopPropagation','name','function','buttonView','extendTemplate','map','ck-revision-history-sidebar__revision__actions','threeVerticalDots','items','first','isVisible','change:isActionsDropdownOpen','ck-on','children','Show\x20more\x20items','Compare\x20against\x20selected','locale','isActionsDropdownOpen','isReady','add','_action','bind','listView','source','bindTemplate','model','Name\x20this\x20revision','isEnabled'];(function(_0x279335,_0x178f9d){const _0x5ba0ac=function(_0x3b0c91){while(--_0x3b0c91){_0x279335['push'](_0x279335['shift']());}};_0x5ba0ac(++_0x178f9d);}(_0x178f,0x10a));const _0x5ba0=function(_0x279335,_0x178f9d){_0x279335=_0x279335-0x0;let _0x5ba0ac=_0x178f[_0x279335];return _0x5ba0ac;};import{Collection as _0x36d538}from'ckeditor5/src/utils';import{icons as _0x42195e}from'ckeditor5/src/core';import{Model as _0x448ebf,addListToDropdown as _0x54dbaf,createDropdown as _0x5dfee2}from'ckeditor5/src/ui';import{getTranslation as _0x2e29d0}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x539f4f,_0x2d5495){const _0x40dab6=_0x539f4f[_0x5ba0('0x2')],_0x10c9e8=_0x539f4f[_0x5ba0('0x1c')],_0x4fa38a=_0x5dfee2(_0x10c9e8);_0x4fa38a['panelPosition']='sw';const _0xd0b2f5=function(_0x42fbf0,_0x24a4a0){const _0x4216f3=function(_0x24ad72,_0x460793){const _0x2b13ea=_0x24ad72['locale'],_0x54fecf={'Compare\x20against\x20selected':_0x2e29d0(_0x2b13ea,_0x5ba0('0x1b')),'Name\x20this\x20revision':_0x2e29d0(_0x2b13ea,_0x5ba0('0x4')),'Restore\x20this\x20revision':_0x2e29d0(_0x2b13ea,'Restore\x20this\x20revision')};return _0x460793[_0x5ba0('0x11')](_0x6a01d=>{const _0x578fa6=_0x54fecf[_0x6a01d[_0x5ba0('0xd')]];return _0x578fa6&&_0x578fa6!==_0x6a01d[_0x5ba0('0xd')]&&(_0x6a01d['name']=_0x578fa6),_0x6a01d;});}(_0x42fbf0,_0x24a4a0),_0x1dee1d=new _0x36d538();for(const _0x348df2 of _0x4216f3){const _0x30277a={'type':'button','model':new _0x448ebf({'label':_0x348df2['name'],'class':_0x348df2[_0x5ba0('0x6')],'withText':!0x0,'_action':_0x348df2[_0x5ba0('0x9')]})};_0x30277a[_0x5ba0('0x3')]['bind']('isEnabled')['to'](_0x42fbf0,_0x5ba0('0x1d'),_0xf25d9a=>_0x5ba0('0xe')!=typeof _0x348df2[_0x5ba0('0x5')]||(!_0xf25d9a||_0x348df2[_0x5ba0('0x5')](_0x42fbf0))),_0x1dee1d[_0x5ba0('0x1f')](_0x30277a);}return _0x1dee1d;}(_0x539f4f,_0x2d5495);return _0x539f4f[_0x5ba0('0x21')](_0x5ba0('0x1d'))['to'](_0x4fa38a,_0x5ba0('0x7')),_0x4fa38a[_0x5ba0('0xf')][_0x5ba0('0x8')]({'label':_0x2e29d0(_0x10c9e8,_0x5ba0('0x1a')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x42195e[_0x5ba0('0x13')]}),_0x4fa38a[_0x5ba0('0x10')]({'attributes':{'class':[_0x5ba0('0x12'),_0x40dab6['if'](_0x5ba0('0x1d'),_0x5ba0('0x18'))]},'on':{'click':_0x40dab6['to'](_0x2f2c76=>_0x2f2c76[_0x5ba0('0xc')]())}}),_0x4fa38a['on'](_0x5ba0('0xb'),_0x36cd40=>{_0x539f4f[_0x5ba0('0x1e')]&&_0x5ba0('0xe')==typeof _0x36cd40[_0x5ba0('0x1')][_0x5ba0('0x20')]&&_0x36cd40[_0x5ba0('0x1')]['_action'](_0x539f4f);}),_0x54dbaf(_0x4fa38a,_0xd0b2f5),_0x4fa38a['listenTo'](_0x539f4f,_0x5ba0('0x17'),(_0x103cf7,_0x59bfd1,_0x5bbd65)=>{if(_0x5bbd65)for(const _0x4d531e of _0x4fa38a[_0x5ba0('0x0')][_0x5ba0('0x14')]){const _0x550bb6=_0x4d531e[_0x5ba0('0x19')][_0x5ba0('0x15')],_0x2a9635=_0x2d5495[_0x5ba0('0xa')](_0x11e295=>_0x11e295['action']===_0x550bb6['_action'])[_0x5ba0('0x16')];_0x4d531e[_0x5ba0('0x16')]=void 0x0===_0x2a9635||_0x2a9635(_0x539f4f);}}),_0x4fa38a;}
23
+ const _0x2449=['isOpen','_action','source','bindTemplate','button','isReady','stopPropagation','model','map','execute','children','listenTo','locale','isVisible','isActionsDropdownOpen','threeVerticalDots','first','set','listView','add','function','Show\x20more\x20items','ck-on','Name\x20this\x20revision','panelPosition','action','isEnabled','bind','name','find'];(function(_0x59669f,_0x24496b){const _0x105afa=function(_0x5650ca){while(--_0x5650ca){_0x59669f['push'](_0x59669f['shift']());}};_0x105afa(++_0x24496b);}(_0x2449,0x1db));const _0x105a=function(_0x59669f,_0x24496b){_0x59669f=_0x59669f-0x0;let _0x105afa=_0x2449[_0x59669f];return _0x105afa;};import{Collection as _0x168ffb}from'ckeditor5/src/utils';import{icons as _0x59785d}from'ckeditor5/src/core';import{Model as _0x48cd1f,addListToDropdown as _0x4a1e26,createDropdown as _0x265942}from'ckeditor5/src/ui';import{getTranslation as _0x4c207d}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x24379f,_0x5ac4db){const _0x4cacd8=_0x24379f[_0x105a('0x8')],_0x5e6640=_0x24379f[_0x105a('0x11')],_0x2a6a69=_0x265942(_0x5e6640);_0x2a6a69[_0x105a('0x1d')]='sw';const _0x84bc30=function(_0x356b82,_0x3ab065){const _0x512c6f=function(_0x42c4c5,_0x24958b){const _0x333423=_0x42c4c5[_0x105a('0x11')],_0x204064={'Compare\x20against\x20selected':_0x4c207d(_0x333423,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x4c207d(_0x333423,_0x105a('0x1c')),'Restore\x20this\x20revision':_0x4c207d(_0x333423,'Restore\x20this\x20revision')};return _0x24958b[_0x105a('0xd')](_0x235b43=>{const _0x24219f=_0x204064[_0x235b43[_0x105a('0x3')]];return _0x24219f&&_0x24219f!==_0x235b43['name']&&(_0x235b43[_0x105a('0x3')]=_0x24219f),_0x235b43;});}(_0x356b82,_0x3ab065),_0x170206=new _0x168ffb();for(const _0x246ec3 of _0x512c6f){const _0x1482d={'type':_0x105a('0x9'),'model':new _0x48cd1f({'label':_0x246ec3[_0x105a('0x3')],'class':_0x246ec3['class'],'withText':!0x0,'_action':_0x246ec3[_0x105a('0x0')]})};_0x1482d[_0x105a('0xc')][_0x105a('0x2')]('isEnabled')['to'](_0x356b82,_0x105a('0x13'),_0x504964=>_0x105a('0x19')!=typeof _0x246ec3['isEnabled']||(!_0x504964||_0x246ec3[_0x105a('0x1')](_0x356b82))),_0x170206[_0x105a('0x18')](_0x1482d);}return _0x170206;}(_0x24379f,_0x5ac4db);return _0x24379f[_0x105a('0x2')](_0x105a('0x13'))['to'](_0x2a6a69,_0x105a('0x5')),_0x2a6a69['buttonView'][_0x105a('0x16')]({'label':_0x4c207d(_0x5e6640,_0x105a('0x1a')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x59785d[_0x105a('0x14')]}),_0x2a6a69['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4cacd8['if'](_0x105a('0x13'),_0x105a('0x1b'))]},'on':{'click':_0x4cacd8['to'](_0x542c4a=>_0x542c4a[_0x105a('0xb')]())}}),_0x2a6a69['on'](_0x105a('0xe'),_0x47251f=>{_0x24379f[_0x105a('0xa')]&&'function'==typeof _0x47251f[_0x105a('0x7')][_0x105a('0x6')]&&_0x47251f['source'][_0x105a('0x6')](_0x24379f);}),_0x4a1e26(_0x2a6a69,_0x84bc30),_0x2a6a69[_0x105a('0x10')](_0x24379f,'change:isActionsDropdownOpen',(_0x32ecc4,_0x514e93,_0x1179e1)=>{if(_0x1179e1)for(const _0x49dbdf of _0x2a6a69[_0x105a('0x17')]['items']){const _0x406e79=_0x49dbdf[_0x105a('0xf')][_0x105a('0x15')],_0x44403c=_0x5ac4db[_0x105a('0x4')](_0x5a010f=>_0x5a010f[_0x105a('0x0')]===_0x406e79[_0x105a('0x6')])[_0x105a('0x12')];_0x49dbdf['isVisible']=void 0x0===_0x44403c||_0x44403c(_0x24379f);}}),_0x2a6a69;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x124b=['setTemplate','set','ck-revision-history-sidebar__revision-author_creator','span','name','ck-revision-history-sidebar__revision-author','Revision\x20author','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author__name'];(function(_0x5b4cd7,_0x124b55){const _0x5064d2=function(_0xf62667){while(--_0xf62667){_0x5b4cd7['push'](_0x5b4cd7['shift']());}};_0x5064d2(++_0x124b55);}(_0x124b,0x1e3));const _0x5064=function(_0x5b4cd7,_0x124b55){_0x5b4cd7=_0x5b4cd7-0x0;let _0x5064d2=_0x124b[_0x5b4cd7];return _0x5064d2;};import{View as _0x1f0563,IconView as _0x5b91ea}from'ckeditor5/src/ui';import{getTranslation as _0x415f64}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x51e2fd from'../../../theme/icons/user.svg';export default class ti extends _0x1f0563{constructor(_0x280669,_0x2b3039,_0x2c026c){super(_0x280669);const _0x4f954b=new _0x5b91ea();_0x4f954b[_0x5064('0x4')]({'content':_0x51e2fd,'viewBox':_0x5064('0x1')});const _0x2401a8=['ck',_0x5064('0x8')];_0x2c026c&&_0x2401a8['push'](_0x5064('0x5'));const _0x5f27bb=[{'tag':_0x5064('0x6'),'attributes':{'class':['ck',_0x5064('0x2')],'title':_0x415f64(_0x280669,_0x2c026c?'Revision\x20creator':_0x5064('0x0'))},'children':[_0x4f954b,_0x2b3039[_0x5064('0x7')]]}];this[_0x5064('0x3')]({'tag':'li','attributes':{'class':_0x2401a8},'children':_0x5f27bb});}}
23
+ const _0x57b1=['Revision\x20creator','span','name','0\x200\x2011\x2010','set','Revision\x20author','setTemplate','ck-revision-history-sidebar__revision-author_creator'];(function(_0x3ed33c,_0x57b139){const _0x1de80b=function(_0x27f435){while(--_0x27f435){_0x3ed33c['push'](_0x3ed33c['shift']());}};_0x1de80b(++_0x57b139);}(_0x57b1,0x16c));const _0x1de8=function(_0x3ed33c,_0x57b139){_0x3ed33c=_0x3ed33c-0x0;let _0x1de80b=_0x57b1[_0x3ed33c];return _0x1de80b;};import{View as _0x3b3bcd,IconView as _0x4647e5}from'ckeditor5/src/ui';import{getTranslation as _0x23fc97}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x1c3c7d from'../../../theme/icons/user.svg';export default class ti extends _0x3b3bcd{constructor(_0x1d992c,_0x2f21fc,_0x2db725){super(_0x1d992c);const _0x4eaf15=new _0x4647e5();_0x4eaf15[_0x1de8('0x0')]({'content':_0x1c3c7d,'viewBox':_0x1de8('0x7')});const _0x4e0ee9=['ck','ck-revision-history-sidebar__revision-author'];_0x2db725&&_0x4e0ee9['push'](_0x1de8('0x3'));const _0x473cf2=[{'tag':_0x1de8('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x23fc97(_0x1d992c,_0x2db725?_0x1de8('0x4'):_0x1de8('0x1'))},'children':[_0x4eaf15,_0x2f21fc[_0x1de8('0x6')]]}];this[_0x1de8('0x2')]({'tag':'li','attributes':{'class':_0x4e0ee9},'children':_0x473cf2});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x392f=['Revision\x20name','ck-revision-history-sidebar__revision-name','extendTemplate'];(function(_0x536a84,_0x392f9b){var _0x91b8f3=function(_0x19de1b){while(--_0x19de1b){_0x536a84['push'](_0x536a84['shift']());}};_0x91b8f3(++_0x392f9b);}(_0x392f,0x79));var _0x91b8=function(_0x536a84,_0x392f9b){_0x536a84=_0x536a84-0x0;var _0x91b8f3=_0x392f[_0x536a84];return _0x91b8f3;};import{LabeledFieldView as _0x5f53bf}from'ckeditor5/src/ui';import{getTranslation as _0x5b7893}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x5f53bf{constructor(_0x5c1d82,_0x58579a){super(_0x5c1d82,_0x58579a),this['set']({'label':_0x5b7893(_0x5c1d82,_0x91b8('0x2'))}),this[_0x91b8('0x1')]({'tag':'span','attributes':{'class':[_0x91b8('0x0')]}});}}
23
+ var _0x1875=['ck-revision-history-sidebar__revision-name','extendTemplate','set','Revision\x20name'];(function(_0x313398,_0x187521){var _0x3c660f=function(_0x32f618){while(--_0x32f618){_0x313398['push'](_0x313398['shift']());}};_0x3c660f(++_0x187521);}(_0x1875,0x132));var _0x3c66=function(_0x313398,_0x187521){_0x313398=_0x313398-0x0;var _0x3c660f=_0x1875[_0x313398];return _0x3c660f;};import{LabeledFieldView as _0x45504a}from'ckeditor5/src/ui';import{getTranslation as _0x3a5207}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x45504a{constructor(_0x5973e7,_0x39b6c5){super(_0x5973e7,_0x39b6c5),this[_0x3c66('0x0')]({'label':_0x3a5207(_0x5973e7,_0x3c66('0x1'))}),this[_0x3c66('0x3')]({'tag':'span','attributes':{'class':[_0x3c66('0x2')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4aa5=['creator','isEnabled','extendTemplate','select','map','ck-revision-history-sidebar__revision-wrapper','ck-reset','name','createdAt','closest','bind','filter','element','uiLanguage','set','bindTemplate','220','unshift','isHighlighted','value','_revision','placeholder','.ck-thread__remove-confirm','render','srcElement','ck-revision-history-sidebar__revision__controls-wrapper','fieldView','isConfirm','highlight','revisionActionsView','length','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision-authors','_createdAtFormatted','isSelected','setTemplate','ck-revision-history-sidebar__revision','revisionNameView','change','authors','fire','isActionsDropdownOpen','deselect','ck-revision-history-sidebar__actions_dropdown_open','span','ck-disabled','ck-revision-history-sidebar__revision__date','from','ck-revision-history-sidebar__revision-wrapper_confirmation_visible'];(function(_0x451a33,_0x4aa52d){const _0x273c2a=function(_0x15e882){while(--_0x15e882){_0x451a33['push'](_0x451a33['shift']());}};_0x273c2a(++_0x4aa52d);}(_0x4aa5,0x186));const _0x273c=function(_0x451a33,_0x4aa52d){_0x451a33=_0x451a33-0x0;let _0x273c2a=_0x4aa5[_0x451a33];return _0x273c2a;};import{View as _0x420f41,createLabeledInputText as _0x1d14ac}from'ckeditor5/src/ui';import{ConfirmMixin as _0x4a2d7e}from'ckeditor5-collaboration/src/collaboration-core';import _0x4822da from'./revisionnameview';import _0x4af9e1 from'./revisionauthorview';import{dateToPrettyFormat as _0x3eab0a}from'./utils';import{createActionsDropdownView as _0x249f5e}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x4a2d7e(_0x420f41){constructor(_0x36b78b,_0x1ff42e,_0x66e982){super(_0x36b78b);const _0x4df1f6=this[_0x273c('0x11')],_0xf7fed7=function(_0x57369d,_0x224cfa){const _0x807e63=Array[_0x273c('0x0')](_0x224cfa[_0x273c('0x29')])[_0x273c('0xd')](_0x2f9e48=>_0x2f9e48!=_0x224cfa[_0x273c('0x2')]);return _0x224cfa[_0x273c('0x2')]&&_0x807e63[_0x273c('0x13')](_0x224cfa[_0x273c('0x2')]),_0x807e63[_0x273c('0x6')](_0xa5d17b=>new _0x4af9e1(_0x57369d,_0xa5d17b,_0xa5d17b==_0x224cfa[_0x273c('0x2')]));}(_0x36b78b,_0x1ff42e);this['id']=_0x1ff42e['id'],this[_0x273c('0x16')]=_0x1ff42e,this[_0x273c('0xc')](_0x273c('0x9'),'createdAt')['to'](_0x1ff42e),this[_0x273c('0xc')](_0x273c('0x23'))['to'](this,_0x273c('0xa'),_0x13cede=>_0x13cede?_0x3eab0a(_0x36b78b[_0x273c('0xf')],_0x13cede):void 0x0),this['set'](_0x273c('0x24'),!0x1),this[_0x273c('0x10')](_0x273c('0x14'),!0x1),this[_0x273c('0x10')]('isActionsDropdownOpen',!0x1),this[_0x273c('0x10')]('isReady',!0x1),this['set'](_0x273c('0x3'),!0x1),this['revisionNameView']=new _0x4822da(_0x36b78b,_0x1d14ac),this[_0x273c('0x27')][_0x273c('0x1c')][_0x273c('0x4')]({'attributes':{'maxlength':_0x273c('0x12')}}),this[_0x273c('0x27')]['fieldView'][_0x273c('0xc')](_0x273c('0x15'),_0x273c('0x17'))['to'](this,'name','_createdAtFormatted'),this[_0x273c('0x27')][_0x273c('0xc')](_0x273c('0x3'))['to'](this,_0x273c('0x24'),this,'isEnabled',(_0x404b4b,_0x189799)=>_0x404b4b&&_0x189799),this['revisionActionsView']=_0x66e982&&_0x66e982[_0x273c('0x20')]?_0x249f5e(this,_0x66e982):'',this[_0x273c('0x1f')]&&this[_0x273c('0x1f')][_0x273c('0xc')](_0x273c('0x3'))['to'](this),this[_0x273c('0x25')]({'tag':'div','attributes':{'class':['ck',_0x273c('0x8'),_0x273c('0x7'),_0x4df1f6['if'](_0x273c('0x1d'),_0x273c('0x1'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x273c('0x8'),_0x273c('0x26'),_0x4df1f6['if'](_0x273c('0x3'),_0x273c('0x2f'),_0x3c838f=>!_0x3c838f),_0x4df1f6['if'](_0x273c('0x24'),_0x273c('0x21')),_0x4df1f6['if'](_0x273c('0x14'),'ck-revision-history-sidebar__revision_highlighted'),_0x4df1f6['if'](_0x273c('0x2b'),_0x273c('0x2d'))]},'children':[this[_0x273c('0x27')],{'tag':_0x273c('0x2e'),'attributes':{'class':['ck',_0x273c('0x30')]},'children':[{'text':_0x4df1f6['to'](_0x273c('0x23'))}]},{'tag':'div','attributes':{'class':['ck',_0x273c('0x1b')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x273c('0x22')]},'children':_0xf7fed7}]},this[_0x273c('0x1f')]],'on':{'click':_0x4df1f6['to'](_0x41f611=>{_0x41f611[_0x273c('0x1a')][_0x273c('0xb')](_0x273c('0x18'))||this['isReady']&&this[_0x273c('0x3')]&&this[_0x273c('0x2a')](_0x273c('0x5'),{'id':this['id']});})}}]});}[_0x273c('0x19')](){super[_0x273c('0x19')]();const _0x9d0f69=this[_0x273c('0x27')][_0x273c('0x1c')][_0x273c('0xe')];this['listenTo'](_0x9d0f69,_0x273c('0x28'),()=>{this[_0x273c('0x2a')]('setName',{'id':this['id'],'name':_0x9d0f69[_0x273c('0x15')]});});}[_0x273c('0x5')](){this[_0x273c('0x24')]=!0x0;}[_0x273c('0x2c')](){this['isSelected']=!0x1;}[_0x273c('0x1e')](){this[_0x273c('0x14')]=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}
23
+ const _0x3c96=['uiLanguage','revisionActionsView','revisionNameView','placeholder','deselect','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision-wrapper','setName','isSelected','ck-reset','extendTemplate','srcElement','name','.ck-thread__remove-confirm','highlight','_revision','bindTemplate','map','ck-disabled','span','isConfirm','isEnabled','ck-revision-history-sidebar__revision_highlighted','ck-revision-history-sidebar__revision__controls-wrapper','unshift','unhighlight','isHighlighted','ck-revision-history-sidebar__actions_dropdown_open','listenTo','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','setTemplate','bind','ck-revision-history-sidebar__revision__date','220','filter','change','div','fire','ck-revision-history-sidebar__revision-authors','isActionsDropdownOpen','authors','createdAt','creator','fieldView','isReady','render','select','_createdAtFormatted','element','set','value','closest'];(function(_0x4d0a32,_0x3c96b9){const _0x5a4579=function(_0x14ceb9){while(--_0x14ceb9){_0x4d0a32['push'](_0x4d0a32['shift']());}};_0x5a4579(++_0x3c96b9);}(_0x3c96,0x1a7));const _0x5a45=function(_0x4d0a32,_0x3c96b9){_0x4d0a32=_0x4d0a32-0x0;let _0x5a4579=_0x3c96[_0x4d0a32];return _0x5a4579;};import{View as _0x3d7635,createLabeledInputText as _0x24258b}from'ckeditor5/src/ui';import{ConfirmMixin as _0x3ab3ff}from'ckeditor5-collaboration/src/collaboration-core';import _0xc5be36 from'./revisionnameview';import _0x352999 from'./revisionauthorview';import{dateToPrettyFormat as _0x454021}from'./utils';import{createActionsDropdownView as _0x163f77}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x3ab3ff(_0x3d7635){constructor(_0x2d683a,_0x75102d,_0x150675){super(_0x2d683a);const _0x745493=this[_0x5a45('0x9')],_0x5cfcd5=function(_0x1d33eb,_0x1c3fa6){const _0x55fcb6=Array['from'](_0x1c3fa6[_0x5a45('0x21')])[_0x5a45('0x1b')](_0x3f7ea9=>_0x3f7ea9!=_0x1c3fa6[_0x5a45('0x23')]);return _0x1c3fa6[_0x5a45('0x23')]&&_0x55fcb6[_0x5a45('0x11')](_0x1c3fa6[_0x5a45('0x23')]),_0x55fcb6[_0x5a45('0xa')](_0x88a680=>new _0x352999(_0x1d33eb,_0x88a680,_0x88a680==_0x1c3fa6[_0x5a45('0x23')]));}(_0x2d683a,_0x75102d);this['id']=_0x75102d['id'],this[_0x5a45('0x8')]=_0x75102d,this[_0x5a45('0x18')](_0x5a45('0x5'),'createdAt')['to'](_0x75102d),this[_0x5a45('0x18')](_0x5a45('0x28'))['to'](this,_0x5a45('0x22'),_0x380338=>_0x380338?_0x454021(_0x2d683a[_0x5a45('0x2d')],_0x380338):void 0x0),this[_0x5a45('0x2a')](_0x5a45('0x1'),!0x1),this['set'](_0x5a45('0x13'),!0x1),this['set'](_0x5a45('0x20'),!0x1),this[_0x5a45('0x2a')](_0x5a45('0x25'),!0x1),this[_0x5a45('0x2a')](_0x5a45('0xe'),!0x1),this[_0x5a45('0x2f')]=new _0xc5be36(_0x2d683a,_0x24258b),this[_0x5a45('0x2f')][_0x5a45('0x24')][_0x5a45('0x3')]({'attributes':{'maxlength':_0x5a45('0x1a')}}),this[_0x5a45('0x2f')]['fieldView'][_0x5a45('0x18')](_0x5a45('0x2b'),_0x5a45('0x30'))['to'](this,'name',_0x5a45('0x28')),this[_0x5a45('0x2f')]['bind'](_0x5a45('0xe'))['to'](this,_0x5a45('0x1'),this,_0x5a45('0xe'),(_0x2c88b9,_0x2f3113)=>_0x2c88b9&&_0x2f3113),this[_0x5a45('0x2e')]=_0x150675&&_0x150675['length']?_0x163f77(this,_0x150675):'',this[_0x5a45('0x2e')]&&this[_0x5a45('0x2e')][_0x5a45('0x18')]('isEnabled')['to'](this),this[_0x5a45('0x17')]({'tag':'div','attributes':{'class':['ck',_0x5a45('0x2'),_0x5a45('0x33'),_0x745493['if'](_0x5a45('0xd'),_0x5a45('0x16'))]},'children':[{'tag':_0x5a45('0x1d'),'attributes':{'class':['ck',_0x5a45('0x2'),'ck-revision-history-sidebar__revision',_0x745493['if'](_0x5a45('0xe'),_0x5a45('0xb'),_0x3786dd=>!_0x3786dd),_0x745493['if'](_0x5a45('0x1'),_0x5a45('0x32')),_0x745493['if'](_0x5a45('0x13'),_0x5a45('0xf')),_0x745493['if'](_0x5a45('0x20'),_0x5a45('0x14'))]},'children':[this['revisionNameView'],{'tag':_0x5a45('0xc'),'attributes':{'class':['ck',_0x5a45('0x19')]},'children':[{'text':_0x745493['to'](_0x5a45('0x28'))}]},{'tag':_0x5a45('0x1d'),'attributes':{'class':['ck',_0x5a45('0x10')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x5a45('0x1f')]},'children':_0x5cfcd5}]},this[_0x5a45('0x2e')]],'on':{'click':_0x745493['to'](_0x3806aa=>{_0x3806aa[_0x5a45('0x4')][_0x5a45('0x2c')](_0x5a45('0x6'))||this[_0x5a45('0x25')]&&this[_0x5a45('0xe')]&&this[_0x5a45('0x1e')](_0x5a45('0x27'),{'id':this['id']});})}}]});}[_0x5a45('0x26')](){super[_0x5a45('0x26')]();const _0x15e3fc=this[_0x5a45('0x2f')][_0x5a45('0x24')][_0x5a45('0x29')];this[_0x5a45('0x15')](_0x15e3fc,_0x5a45('0x1c'),()=>{this['fire'](_0x5a45('0x0'),{'id':this['id'],'name':_0x15e3fc[_0x5a45('0x2b')]});});}[_0x5a45('0x27')](){this[_0x5a45('0x1')]=!0x0;}[_0x5a45('0x31')](){this[_0x5a45('0x1')]=!0x1;}[_0x5a45('0x7')](){this[_0x5a45('0x13')]=!0x0;}[_0x5a45('0x12')](){this[_0x5a45('0x13')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e48=['bindTemplate','true','ck-revision-history-sidebar__subrevision-collapser__inner','toggle','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser','false','button','span','ck-revision-history-sidebar__subrevision-collapser_collapsed','ck-hidden','setTemplate'];(function(_0x30c75a,_0x3e48da){const _0x5e9fc2=function(_0x3c063c){while(--_0x3c063c){_0x30c75a['push'](_0x30c75a['shift']());}};_0x5e9fc2(++_0x3e48da);}(_0x3e48,0x131));const _0x5e9f=function(_0x30c75a,_0x3e48da){_0x30c75a=_0x30c75a-0x0;let _0x5e9fc2=_0x3e48[_0x30c75a];return _0x5e9fc2;};import{View as _0x64850}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x64850{constructor(_0x304c80){super(_0x304c80);const _0x5216f0=this[_0x5e9f('0x7')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5e9f('0x6')]({'tag':_0x5e9f('0x3'),'attributes':{'class':['ck',_0x5e9f('0x0'),_0x5216f0['if']('isVisible',_0x5e9f('0x5'),_0x508412=>!_0x508412),_0x5216f0['if'](_0x5e9f('0xb'),_0x5e9f('0x4'))],'role':_0x5e9f('0x2'),'aria-pressed':_0x5216f0['to'](_0x5e9f('0xb'),_0x45d3a6=>_0x45d3a6?_0x5e9f('0x1'):_0x5e9f('0x8'))},'children':[{'tag':_0x5e9f('0x3'),'attributes':{'class':['ck',_0x5e9f('0x9')]}}],'on':{'click':_0x5216f0['to']('click')}});}[_0x5e9f('0xa')](){this[_0x5e9f('0xb')]=!this[_0x5e9f('0xb')];}}
23
+ const _0xa717=['toggle','isVisible','bindTemplate','button','true','click','false','span','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser','ck-hidden','ck-revision-history-sidebar__subrevision-collapser__inner'];(function(_0x28664c,_0xa717bb){const _0x552ce5=function(_0x1630ff){while(--_0x1630ff){_0x28664c['push'](_0x28664c['shift']());}};_0x552ce5(++_0xa717bb);}(_0xa717,0x10d));const _0x552c=function(_0x28664c,_0xa717bb){_0x28664c=_0x28664c-0x0;let _0x552ce5=_0xa717[_0x28664c];return _0x552ce5;};import{View as _0x424df1}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x424df1{constructor(_0x5f2815){super(_0x5f2815);const _0x4714c3=this[_0x552c('0x9')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':'span','attributes':{'class':['ck',_0x552c('0x4'),_0x4714c3['if'](_0x552c('0x8'),_0x552c('0x5'),_0x43f652=>!_0x43f652),_0x4714c3['if'](_0x552c('0x3'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x552c('0xa'),'aria-pressed':_0x4714c3['to'](_0x552c('0x3'),_0x3ac7fd=>_0x3ac7fd?_0x552c('0x1'):_0x552c('0xb'))},'children':[{'tag':_0x552c('0x2'),'attributes':{'class':['ck',_0x552c('0x6')]}}],'on':{'click':_0x4714c3['to'](_0x552c('0x0'))}});}[_0x552c('0x7')](){this[_0x552c('0x3')]=!this[_0x552c('0x3')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x371e=['fire','ck-revision-history-sidebar__revision-authors','_parentRevisionId','set','isSelected','bindTemplate','span','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__subrevision','div','bind','ck-reset','deselect','creator','_createdAtFormatted','select','createdAt','setTemplate'];(function(_0x3a79fc,_0x371e5e){const _0x565e76=function(_0x463d50){while(--_0x463d50){_0x3a79fc['push'](_0x3a79fc['shift']());}};_0x565e76(++_0x371e5e);}(_0x371e,0x159));const _0x565e=function(_0x3a79fc,_0x371e5e){_0x3a79fc=_0x3a79fc-0x0;let _0x565e76=_0x371e[_0x3a79fc];return _0x565e76;};import{View as _0x2c3cf0}from'ckeditor5/src/ui';import _0x4d604f from'./revisionauthorview';import{dateToPrettyFormat as _0x4c6643}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x2c3cf0{constructor(_0x3ca6df,_0x129598,_0x50a2ad){super(_0x3ca6df);const _0x5695b6=this[_0x565e('0x2')];this['id']=_0x129598['id'],this[_0x565e('0x7')](_0x565e('0xd'))['to'](_0x129598),this[_0x565e('0x0')]('isSelected',!0x1),this['bind']('_createdAtFormatted')['to'](this,_0x565e('0xd'),_0x3b7add=>_0x3b7add?_0x4c6643(_0x3ca6df['uiLanguage'],_0x3b7add):void 0x0),this[_0x565e('0x11')]=_0x50a2ad,this[_0x565e('0xe')]({'tag':_0x565e('0x6'),'attributes':{'class':['ck',_0x565e('0x8'),'ck-revision-history-sidebar__revision',_0x565e('0x5'),_0x5695b6['if']('isSelected',_0x565e('0x4'))]},'children':[{'tag':_0x565e('0x3'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x5695b6['to'](_0x565e('0xb'))}]},{'tag':'ul','attributes':{'class':['ck',_0x565e('0x10')]},'children':[new _0x4d604f(_0x3ca6df,_0x129598[_0x565e('0xa')],!0x0)]}],'on':{'click':_0x5695b6['to'](this['select']['bind'](this))}});}[_0x565e('0xc')](){this[_0x565e('0x1')]=!0x0,this[_0x565e('0xf')](_0x565e('0xc'),{'parentId':this[_0x565e('0x11')]});}[_0x565e('0x9')](){this[_0x565e('0x1')]=!0x1;}}
23
+ const _0x5d62=['bindTemplate','isSelected','div','ck-revision-history-sidebar__revision','setTemplate','_parentRevisionId','fire','creator','select','_createdAtFormatted','bind','set','ck-reset','uiLanguage','ck-revision-history-sidebar__revision-authors','createdAt','deselect'];(function(_0x104fed,_0x5d620e){const _0xabadf0=function(_0xf1ff3e){while(--_0xf1ff3e){_0x104fed['push'](_0x104fed['shift']());}};_0xabadf0(++_0x5d620e);}(_0x5d62,0xa8));const _0xabad=function(_0x104fed,_0x5d620e){_0x104fed=_0x104fed-0x0;let _0xabadf0=_0x5d62[_0x104fed];return _0xabadf0;};import{View as _0x11343d}from'ckeditor5/src/ui';import _0x476843 from'./revisionauthorview';import{dateToPrettyFormat as _0x2db364}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x11343d{constructor(_0x389cbf,_0x30212e,_0x19b62f){super(_0x389cbf);const _0x2b493f=this[_0xabad('0x2')];this['id']=_0x30212e['id'],this[_0xabad('0xc')]('createdAt')['to'](_0x30212e),this[_0xabad('0xd')]('isSelected',!0x1),this[_0xabad('0xc')](_0xabad('0xb'))['to'](this,_0xabad('0x0'),_0x39fb0d=>_0x39fb0d?_0x2db364(_0x389cbf[_0xabad('0xf')],_0x39fb0d):void 0x0),this[_0xabad('0x7')]=_0x19b62f,this[_0xabad('0x6')]({'tag':_0xabad('0x4'),'attributes':{'class':['ck',_0xabad('0xe'),_0xabad('0x5'),'ck-revision-history-sidebar__subrevision',_0x2b493f['if']('isSelected','ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x2b493f['to'](_0xabad('0xb'))}]},{'tag':'ul','attributes':{'class':['ck',_0xabad('0x10')]},'children':[new _0x476843(_0x389cbf,_0x30212e[_0xabad('0x9')],!0x0)]}],'on':{'click':_0x2b493f['to'](this[_0xabad('0xa')][_0xabad('0xc')](this))}});}[_0xabad('0xa')](){this[_0xabad('0x3')]=!0x0,this[_0xabad('0x8')](_0xabad('0xa'),{'parentId':this['_parentRevisionId']});}[_0xabad('0x1')](){this['isSelected']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x548d=['toLocaleDateString','numeric','toLocaleTimeString'];(function(_0x33c278,_0x548d3f){var _0x351ff1=function(_0x9a013b){while(--_0x9a013b){_0x33c278['push'](_0x33c278['shift']());}};_0x351ff1(++_0x548d3f);}(_0x548d,0x13d));var _0x351f=function(_0x33c278,_0x548d3f){_0x33c278=_0x33c278-0x0;var _0x351ff1=_0x548d[_0x33c278];return _0x351ff1;};export function dateToPrettyFormat(_0x4c5c2b,_0x3814c2){return _0x3814c2[_0x351f('0x1')](_0x4c5c2b,{'month':'long','day':'numeric'})+',\x20'+_0x3814c2[_0x351f('0x0')](_0x4c5c2b,{'hour':_0x351f('0x2'),'minute':_0x351f('0x2')});}
23
+ var _0x2f87=['toLocaleTimeString','numeric','long'];(function(_0x591190,_0x2f8725){var _0x2483b1=function(_0x35925e){while(--_0x35925e){_0x591190['push'](_0x591190['shift']());}};_0x2483b1(++_0x2f8725);}(_0x2f87,0x1da));var _0x2483=function(_0x591190,_0x2f8725){_0x591190=_0x591190-0x0;var _0x2483b1=_0x2f87[_0x591190];return _0x2483b1;};export function dateToPrettyFormat(_0x6843d8,_0x1f2f7d){return _0x1f2f7d['toLocaleDateString'](_0x6843d8,{'month':_0x2483('0x2'),'day':'numeric'})+',\x20'+_0x1f2f7d[_0x2483('0x0')](_0x6843d8,{'hour':_0x2483('0x1'),'minute':_0x2483('0x1')});}