@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231205.0 → 0.0.0-nightly-20231207.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 (32) hide show
  1. package/README.md +10 -10
  2. package/build/revision-history.js +1 -1
  3. package/package.json +6 -6
  4. package/src/changeitem.js +1 -1
  5. package/src/editor/revisionviewereditor.js +1 -1
  6. package/src/editor/revisionviewereditorui.js +1 -1
  7. package/src/editor/revisionviewereditoruiview.js +1 -1
  8. package/src/revision.js +1 -1
  9. package/src/revisiondiff.js +1 -1
  10. package/src/revisionhistory.js +1 -1
  11. package/src/revisionsrepository.js +1 -1
  12. package/src/revisiontracker.js +1 -1
  13. package/src/revisionviewer.js +1 -1
  14. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  15. package/src/ui/revision/revisionauthorview.js +1 -1
  16. package/src/ui/revision/revisionnameview.js +1 -1
  17. package/src/ui/revision/revisionview.js +1 -1
  18. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  19. package/src/ui/revision/subrevisionview.js +1 -1
  20. package/src/ui/revision/utils.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  22. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  26. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  27. package/src/ui/revisionssidebar/utils.js +1 -1
  28. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  29. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  31. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  32. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36f6=['_sortAndFilterDiffChanges','requires','markerRange','markerToHighlight','attributes','filter','toViewElement','all','test','createPositionFromPath','_update','change:activeView','loadRevisionData','restoreRevisionCallback','wrap','userId','roots','_findChangeIdFromDomTarget','pairId','_setConversion','distance','startIndex','showNextChange','data','range','detachRoot','markersEnd','deletions','_changeIdToChange','revisionHistoryAttachChange','_changeView','object','createUIElement','suggestion','change:numberOfChanges','getRevision','adapter','writer','markerNameToElements','add','code','target','currentChangeNumber','toViewRange','changeId','isAttached','_step','POSITIVE_INFINITY','comment','level','getCustomProperty','nextPosition','config','getRevisionRootsAttributes','has','getAttributes','markerName','error','data-change-id','high','from','isSuggestion','viewItem','clear','element','getWalker','find','isAtEnd','schema','splice','revision-start','isOnRoot','_threeWayMerge','mouseover','attachChange','_revisions','backward','bottom','indexOf','revision-suggestion','nodeAfter','ck-suggestion-marker-split','changes','forEach','isAtStart','attributesAfter','maxOffset','modelRange','ck-revision-history-root-add','bindElementToMarker','refresh','return','change:isReady','slice','isIncorrect','conversion','ck-editor__editable__overlay','get','marked','selection','for','name','data-revision-','addMarker:revision','_markInsertions','getRevisionData','index','markers','_refreshStartEndIndex','isAfter','affectsData','ck-suggestion-marker','ck-suggestion-marker--active','vid','highest','done','_processTape','deletion','attributesBefore','checkAttribute','mousedown','upcast','sort','right','hasClass','_getRevisionsRange','removeClass','processor','insertions','offsetSize','merge','ck-suggestion-preview-marker-','_initInteractions','execute','toModel','attribute:vid','repository','endIndex','top','children','length','_balloon','suggestion:','mapViewToDom','unshift','getIndex','isAddSuggestion','_setChanges','markerToData','dataToMarker','string','removeAttribute','then','isRemoved','restoreRevision','bind','_getChangeFromId','locale','isLimit','addRevision','revisionHistoryLabel','commands','span','init','change','text','mapper','RevisionsRepository','includes','rootName','end','remove','insert','_getViewObj','createPositionBefore','ck-revision-history-root-','uiElement','forward','markersStart','start','WidgetToolbarRepository','_markSuggestions','observeMarkers','getClientRects','keys','newRevisionId','toData','_removeMissingPairs','addClass','revision-viewer','RevisionViewer','ck-revision-history-root-remove','startsWith','isEqual','consume','split','first','previousPosition','_cleanUp','listenTo','getRootNames','isCollapsed','type','push','vid_end','_makeModelFromTape','set','isBefore','_getViewForChange','setAttribute','isRemoveSuggestion','shift','document','activeChange','isObject','_markMarkers','getAttribute','_cleanMarkers','editing','getRoot','diff','updatePosition','activeView','_joinTapes','side','compare','destroy','_appendChild','isAdded','map','dataDowncast','getItems','model','_markMismatchedRemovedTags','forceDisabled','view','_getDiff','createRange','revision','concat','parent','isEnabled','domEvent','_makeModelFromViewString','elementStart','editingDowncast','toViewPosition','showStack','_setDistance','createRangeIn','getChild','_makeTape','isBlock','removeMarker:revision-suggestion','diffData','ck-suggestion-marker-merge','vid_start','_fixObsoleteTags','low','plugins','_activeViewTarget','_removeRevisionMarkers','ck-revision-history-root--active','editor','item','hasAttribute','isInline','consumable','nextSibling','downcastDispatcher','change:isEnabled','elementEnd','enqueueChange','oldRevisionId','resolve','ck-suggestion-marker-','_data','isContent','left','abs','isReady','delete','-new','isNavigationMode','enableReadOnlyMode','findIndex','unbindElementFromMarkerName','useFillerType','revision:','reconvertMarker','insertion','flat'];(function(_0x262a19,_0x36f64e){const _0x11bb5f=function(_0x3f8992){while(--_0x3f8992){_0x262a19['push'](_0x262a19['shift']());}};_0x11bb5f(++_0x36f64e);}(_0x36f6,0x6d));const _0x11bb=function(_0x262a19,_0x36f64e){_0x262a19=_0x262a19-0x0;let _0x11bb5f=_0x36f6[_0x262a19];return _0x11bb5f;};import{Plugin as _0x13488c,Command as _0x5a372b}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x5ecb13}from'ckeditor5/src/utils';import{ContextualBalloon as _0xb22e0c}from'ckeditor5/src/ui';import{DocumentFragment as _0x4679f0,Element as _0x3b7736,Text as _0x136c94,ViewDocumentFragment as _0x39daff,ViewText as _0x3494f8,ViewElement as _0x234a89,ViewContainerElement as _0x293a69,ViewAttributeElement as _0x35fac2,ViewEmptyElement as _0x3c05cf,ViewRawElement as _0x49295f,ViewUIElement as _0x3ddf84}from'ckeditor5/src/engine';import{Users as _0x142877,getMarkerDomElement as _0x30014c}from'ckeditor5-collaboration/src/collaboration-core';import _0x3a3d20 from'./ui/revisionviewer/changedetailsview';import _0x4b0e75 from'./revisionsrepository';import _0x39bcb4 from'./changeitem';import{default as _0x3c75f0}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x22dae1}from'lodash-es';const tt={'c':_0x293a69,'a':_0x35fac2,'e':_0x3c05cf,'r':_0x49295f,'u':_0x3ddf84};export default class d extends _0x13488c{static get['pluginName'](){return'RevisionViewer';}static get[_0x11bb('0xb8')](){return[_0x142877,_0xb22e0c,_0x4b0e75];}constructor(_0x36836f){super(_0x36836f),this[_0x11bb('0x1b')]=this[_0x11bb('0x9a')][_0x11bb('0x96')][_0x11bb('0x118')](_0x11bb('0x3a')),this[_0x11bb('0x61')](_0x11bb('0x68'),null),this[_0x11bb('0x61')](_0x11bb('0x71'),null),this[_0x11bb('0x97')]=null,this[_0x11bb('0x61')](_0x11bb('0x6f'),null),this[_0x11bb('0x61')](_0x11bb('0xab'),!0x1),this[_0x11bb('0x61')](_0x11bb('0x84'),!0x0),this['on'](_0x11bb('0xa1'),(_0x2117d9,_0x4d83af,_0x3ebebb)=>{this[_0x11bb('0x68')]=null,this[_0x11bb('0x71')]=null,this[_0x11bb('0x9a')][_0x11bb('0x6d')][_0x11bb('0x7e')][_0x11bb('0x37')](_0x2e5182=>{for(const _0x3453ea of this[_0x11bb('0x9a')]['editing']['view']['document'][_0x11bb('0xc7')])_0x3ebebb?_0x2e5182[_0x11bb('0x11')](_0x11bb('0x117'),_0x3453ea):_0x2e5182[_0x11bb('0x4f')]('ck-editor__editable__overlay',_0x3453ea);});}),this[_0x11bb('0x2e')](_0x11bb('0xae'))['to'](this,_0x11bb('0x68'),_0x528ea9=>null!==_0x528ea9),this['bind'](_0x11bb('0xe1'))['to'](this,_0x11bb('0xab'),this,_0x11bb('0x6f'),this,_0x11bb('0x68'),(_0x48b87d,_0xcd5bc0,_0x59db56)=>_0x48b87d&&_0x59db56?_0xcd5bc0[_0x11bb('0x109')][_0x11bb('0x24')](_0x59db56):0x0),this[_0x11bb('0x2e')]('numberOfChanges')['to'](this,_0x11bb('0xab'),this,_0x11bb('0x6f'),(_0x22792d,_0xdc7818)=>_0x22792d?_0xdc7818[_0x11bb('0x109')][_0x11bb('0x1f')]:0x0),this[_0x11bb('0xd5')]=null,this[_0x11bb('0xd3')]=new Map(),this['adapter']=null,this[_0x11bb('0x20')]=this[_0x11bb('0x9a')][_0x11bb('0x96')][_0x11bb('0x118')](_0xb22e0c);}[_0x11bb('0x36')](){const _0x42c0a0=this['editor'],_0x1ce85d=new ShowChangeCommand(_0x42c0a0,{'direction':_0x11bb('0x103')}),_0x2ff32f=new ShowChangeCommand(_0x42c0a0,{'direction':'forward'});(_0x42c0a0[_0x11bb('0x34')]['add']('showPreviousChange',_0x1ce85d),_0x42c0a0[_0x11bb('0x34')]['add'](_0x11bb('0xcd'),_0x2ff32f),_0x42c0a0[_0x11bb('0x34')][_0x11bb('0xde')](_0x11bb('0x2d'),new RestoreRevisionCommand(_0x42c0a0)),this['on'](_0x11bb('0xd9'),()=>{_0x1ce85d[_0x11bb('0x111')](),_0x2ff32f[_0x11bb('0x111')]();}),this[_0x11bb('0xca')](),this['_initInteractions'](),_0x42c0a0[_0x11bb('0xaf')](_0x11bb('0x50')),_0x42c0a0[_0x11bb('0x96')][_0x11bb('0xed')](_0x11bb('0x47')))&&_0x42c0a0[_0x11bb('0x96')]['get'](_0x11bb('0x47'))[_0x11bb('0x7d')]('revision-viewer');}async[_0x11bb('0x120')](_0x5d9cd6){await this[_0x11bb('0xc3')](_0x5d9cd6);const _0x3f335a={};for(const _0xd9e828 in _0x5d9cd6[_0x11bb('0x91')]){if(_0x5d9cd6['diffData'][_0xd9e828][_0x11bb('0x101')]&&!_0x5d9cd6[_0x11bb('0x91')][_0xd9e828]['attachChange'][_0x11bb('0xe4')])continue;const _0x4ab819=this['_removeRevisionMarkers'](JSON['parse'](_0x5d9cd6[_0x11bb('0x91')][_0xd9e828][_0x11bb('0x13')])),_0x21cff9=this['editor'][_0x11bb('0x6d')]['view']['document'],_0x20d5ae=new _0x39daff(_0x21cff9,_0x4ab819['map'](_0x3dbb90=>this[_0x11bb('0x40')](_0x3dbb90)));this['editor'][_0x11bb('0xce')][_0x11bb('0x12')]['useFillerType'](_0x11bb('0x119')),_0x3f335a[_0xd9e828]=this[_0x11bb('0x9a')][_0x11bb('0xce')][_0x11bb('0x12')][_0x11bb('0x4d')](_0x20d5ae),this[_0x11bb('0x9a')][_0x11bb('0xce')][_0x11bb('0x12')][_0x11bb('0xb2')]('default');}return _0x3f335a;}async[_0x11bb('0xec')](_0x9c3e0){await this[_0x11bb('0xc3')](_0x9c3e0);const _0x3113cd={};for(const _0x454ef2 in _0x9c3e0[_0x11bb('0x91')])_0x9c3e0[_0x11bb('0x91')][_0x454ef2][_0x11bb('0x101')]&&!_0x9c3e0[_0x11bb('0x91')][_0x454ef2][_0x11bb('0x101')][_0x11bb('0xe4')]||(_0x3113cd[_0x454ef2]=_0x9c3e0[_0x11bb('0x91')][_0x454ef2][_0x11bb('0x10c')]||{});return _0x3113cd;}[_0x11bb('0x98')](_0x4e5a09){return(_0x4e5a09=_0x4e5a09[_0x11bb('0xbc')](_0x1e2a4f=>!_0x1e2a4f[_0x11bb('0x11c')]||_0x11bb('0xfd')!==_0x1e2a4f['name']&&'revision-end'!==_0x1e2a4f[_0x11bb('0x11c')]))['forEach'](_0xdc6394=>{_0x11bb('0x29')!=typeof _0xdc6394&&(_0xdc6394[_0x11bb('0x1e')]=this[_0x11bb('0x98')](_0xdc6394[_0x11bb('0x1e')]),_0xdc6394[_0x11bb('0xbb')]=_0xdc6394[_0x11bb('0xbb')]['filter'](_0x508085=>!_0x508085[0x0][_0x11bb('0x53')](_0x11bb('0x11d'))));}),_0x4e5a09;}async[_0x11bb('0x74')](_0x720a68,_0x475b7c,_0x26d920=!0x1){if(!this['isEnabled'])return;const _0x2afaf9=this[_0x11bb('0x6f')],_0x398fd6=this['repository'],_0x57fa10='string'==typeof _0x720a68?_0x398fd6[_0x11bb('0xda')](_0x720a68):_0x720a68,_0x49d7e2=_0x11bb('0x29')==typeof _0x475b7c?_0x398fd6['getRevision'](_0x475b7c):_0x475b7c,_0x4bacd2=_0x57fa10['id'],_0x239310=_0x49d7e2?_0x49d7e2['id']:null;if(!_0x26d920&&this[_0x11bb('0x6f')]&&this['diff'][_0x11bb('0x4c')]===_0x4bacd2&&this[_0x11bb('0x6f')][_0x11bb('0xa4')]===_0x239310)return Promise[_0x11bb('0xa5')]();this[_0x11bb('0xab')]=!0x1,this[_0x11bb('0x71')]=null,this['activeChange']=null,this[_0x11bb('0x6f')]=new _0x3c75f0(_0x4bacd2,_0x239310);const _0x408120=this[_0x11bb('0x10')](_0x57fa10,_0x49d7e2,!0x0)[_0x11bb('0x78')](_0x46467e=>this[_0x11bb('0xc3')](_0x46467e));return _0x408120[_0x11bb('0x5e')](new Promise(_0x511d72=>{setTimeout(_0x511d72,0x14);})),Promise[_0x11bb('0xbe')](_0x408120)[_0x11bb('0x2b')](()=>{if(!this[_0x11bb('0x84')])return;this['_cleanUp']();const _0x3c85b7=this[_0x11bb('0x7f')](_0x4bacd2,_0x239310);for(const _0x2a6bd9 of _0x3c85b7['changes'])this[_0x11bb('0xd3')][_0x11bb('0x61')](_0x2a6bd9['id'],_0x2a6bd9);this[_0x11bb('0x9a')]['model'][_0x11bb('0xa3')]({'isUndoable':!0x1},_0x522af4=>{for(const _0x140eca of this['editor'][_0x11bb('0x7b')][_0x11bb('0x67')][_0x11bb('0x5b')]())_0x522af4[_0x11bb('0xd0')](_0x140eca);for(const _0x3c7933 of Object['keys'](_0x3c85b7[_0x11bb('0x7b')])){const _0x56a19d=_0x522af4['addRoot'](_0x3c7933);for(const _0x4339cb of Object['keys'](_0x3c85b7[_0x11bb('0xbb')][_0x3c7933]))_0x522af4['setAttribute'](_0x4339cb,_0x3c85b7[_0x11bb('0xbb')][_0x3c7933][_0x4339cb],_0x56a19d);_0x522af4[_0x11bb('0x3f')](_0x3c85b7[_0x11bb('0x7b')][_0x3c7933],_0x56a19d,0x0);}}),this[_0x11bb('0x6f')][_0x11bb('0x26')](this[_0x11bb('0xb7')](_0x3c85b7['changes'])),this[_0x11bb('0xab')]=!0x0;})['catch'](_0x263cb1=>{console[_0x11bb('0xf0')](_0x263cb1),this[_0x11bb('0x59')](),_0x2afaf9&&(this[_0x11bb('0x6f')]=_0x2afaf9),this['isReady']=!0x0;});}['addRevisionData'](_0x16619f,_0x3b73c1){const _0x3c10dd=this[_0x11bb('0x1b')]['createRevision'](_0x16619f);return _0x3c10dd['on'](_0x11bb('0xc1'),(_0x49aaf7,_0x43f5d6,_0x1aae19)=>_0x3b73c1(_0x43f5d6,_0x1aae19,_0x3c10dd)),this[_0x11bb('0x1b')][_0x11bb('0x32')](_0x3c10dd),_0x3c10dd;}[_0x11bb('0xc3')](_0x22f741){if(!_0x22f741||_0x22f741[_0x11bb('0x91')])return Promise[_0x11bb('0xa5')]();{const _0x15a660=this[_0x11bb('0x9a')][_0x11bb('0xeb')][_0x11bb('0x118')]('collaboration.channelId');return this[_0x11bb('0xdb')][_0x11bb('0xda')]({'channelId':_0x15a660,'revisionId':_0x22f741['id']})[_0x11bb('0x2b')](_0x5cfe2f=>{_0x22f741[_0x11bb('0xc1')]({'diffData':_0x5cfe2f[_0x11bb('0x91')]},!0x0);});}}[_0x11bb('0x59')](){this['activeChange']=null,this[_0x11bb('0x6c')](),this[_0x11bb('0xd5')]&&this['_changeView']['destroy'](),this[_0x11bb('0xd5')]=null,this[_0x11bb('0xd3')][_0x11bb('0xf6')](),this[_0x11bb('0x9a')]['model'][_0x11bb('0xa3')]({'isUndoable':!0x1},_0x3a6578=>{for(const _0x24215f of this[_0x11bb('0x9a')]['model'][_0x11bb('0x67')]['getRootNames']())_0x3a6578[_0x11bb('0xd0')](_0x24215f);});}[_0x11bb('0xb7')](_0x12692d){const _0x39e001=[],_0x39166f=new Map();for(const _0x529170 of this[_0x11bb('0x9a')][_0x11bb('0x7b')][_0x11bb('0x67')][_0x11bb('0x5b')]()){const _0x44b7a9=this[_0x11bb('0x9a')][_0x11bb('0x6d')]['view']['getDomRoot'](_0x529170);if(!_0x44b7a9)continue;const _0x5ad23c=_0x44b7a9['getClientRects']()['item'](0x0);_0x5ad23c&&(_0x39e001[_0x11bb('0x5e')](_0x529170),_0x39166f[_0x11bb('0x61')](_0x529170,_0x5ad23c));}return _0x39e001[_0x11bb('0xd')]((_0x19cafa,_0x353492)=>{const _0x20c104=_0x39166f[_0x11bb('0x118')](_0x19cafa),_0x31284c=_0x39166f['get'](_0x353492);return _0x20c104['y']-_0x31284c['y']||_0x20c104['x']-_0x31284c['x'];}),(_0x12692d=_0x12692d['filter'](_0x5915f4=>_0x39e001[_0x11bb('0x3b')](_0x5915f4[_0x11bb('0x3c')])))[_0x11bb('0xd')]((_0x5ae4b3,_0x1d950f)=>_0x39e001[_0x11bb('0x105')](_0x5ae4b3[_0x11bb('0x3c')])-_0x39e001[_0x11bb('0x105')](_0x1d950f[_0x11bb('0x3c')])),_0x12692d;}['_makeTape'](_0x33eff0){const _0x225f75=Array[_0x11bb('0xf3')](_0x33eff0[_0x11bb('0x122')])[_0x11bb('0xbc')](([_0x18752e,_0x530fca])=>_0x18752e['startsWith'](_0x11bb('0xb3'))&&!_0x530fca[_0x11bb('0x5c')]),_0x37e70c=Array['from'](this[_0x11bb('0x9a')]['model'][_0x11bb('0x8c')](_0x33eff0)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x225f75[_0x11bb('0x1f')])for(const _0x286229 of _0x37e70c){const [_0x468fc8,_0x4d357f]=_0x225f75[0x0],[,_0x947477,_0x401b66]=_0x468fc8[_0x11bb('0x56')](':');if(_0x4d357f[_0x11bb('0x3d')][_0x11bb('0x54')](_0x286229[_0x11bb('0xea')])&&_0x225f75['shift'](),(_0x286229[_0x11bb('0x58')][_0x11bb('0x54')](_0x4d357f[_0x11bb('0x46')])||_0x286229[_0x11bb('0x58')]['isAfter'](_0x4d357f[_0x11bb('0x46')]))&&('insertion'==_0x947477?_0x286229[_0x11bb('0x77')]={'userId':_0x401b66}:'deletion'==_0x947477&&(_0x286229[_0x11bb('0x2c')]={'userId':_0x401b66})),0x0==_0x225f75['length'])break;}return _0x37e70c;}['_refreshStartEndIndex'](_0x5882bb){const _0x487a6d=new Map();for(let _0x5224d8=0x0;_0x5224d8<_0x5882bb[_0x11bb('0x1f')];_0x5224d8++)_0x11bb('0x38')===_0x5882bb[_0x5224d8]['type']?(_0x5882bb[_0x5224d8][_0x11bb('0x9b')][_0x11bb('0xcc')]=_0x5224d8,_0x5882bb[_0x5224d8][_0x11bb('0x9b')][_0x11bb('0x1c')]=_0x5224d8):(_0x11bb('0x87')===_0x5882bb[_0x5224d8][_0x11bb('0x5d')]?_0x5882bb[_0x5224d8][_0x11bb('0x9b')]['startIndex']=_0x5224d8:_0x11bb('0xa2')===_0x5882bb[_0x5224d8][_0x11bb('0x5d')]&&(_0x5882bb[_0x5224d8]['item'][_0x11bb('0x1c')]=_0x5224d8),_0x487a6d[_0x11bb('0x61')](_0x5882bb[_0x5224d8]['id'],_0x5224d8));for(const _0xa73722 of _0x487a6d['values']())_0x11bb('0x87')===_0x5882bb[_0xa73722][_0x11bb('0x5d')]?_0x5882bb[_0xa73722][_0x11bb('0x9b')][_0x11bb('0x1c')]=_0x487a6d[_0x11bb('0x118')](_0x5882bb[_0xa73722][_0x11bb('0xc9')]):'elementEnd'===_0x5882bb[_0xa73722][_0x11bb('0x5d')]&&(_0x5882bb[_0xa73722][_0x11bb('0x9b')][_0x11bb('0xcc')]=_0x487a6d[_0x11bb('0x118')](_0x5882bb[_0xa73722]['pairId']));}[_0x11bb('0x7')](_0x27692f){for(let _0x5d46d8=0x0;_0x5d46d8<_0x27692f[_0x11bb('0x1f')];_0x5d46d8++){if(_0x11bb('0x87')===_0x27692f[_0x5d46d8]['type'])_0x27692f[_0x5d46d8][_0x11bb('0x9b')][_0x11bb('0xcc')]=_0x5d46d8;else{if(_0x11bb('0xa2')===_0x27692f[_0x5d46d8][_0x11bb('0x5d')]){_0x27692f[_0x5d46d8][_0x11bb('0x9b')][_0x11bb('0x1c')]=_0x5d46d8;const _0x906c25=_0x27692f[_0x5d46d8]['item'][_0x11bb('0xcc')];_0x27692f[_0x906c25][_0x11bb('0xc9')]=_0x27692f[_0x5d46d8]['id'],_0x27692f[_0x5d46d8][_0x11bb('0xc9')]=_0x27692f[_0x906c25]['id'];}else _0x27692f[_0x5d46d8][_0x11bb('0x9b')][_0x11bb('0xcc')]=_0x5d46d8,_0x27692f[_0x5d46d8][_0x11bb('0x9b')][_0x11bb('0x1c')]=_0x5d46d8,_0x27692f[_0x5d46d8][_0x11bb('0xc9')]=null;}_0x27692f[_0x5d46d8][_0x11bb('0x45')]||(_0x27692f[_0x5d46d8]['markersStart']=[],_0x27692f[_0x5d46d8][_0x11bb('0xd1')]=[]);}}[_0x11bb('0x11f')](_0x56ec8b,_0x8a0c00){const _0x557fd2=_0x56ec8b[_0x11bb('0xbc')](_0x820ed8=>!_0x820ed8['isAdded']);for(let _0x18f113=0x0;_0x18f113<_0x8a0c00['length'];_0x18f113++)_0x8a0c00[_0x18f113]['isAdded']&&(_0x557fd2[_0x18f113][_0x11bb('0x77')]=_0x8a0c00[_0x18f113][_0x11bb('0x77')]);}['_makeModelFromViewString'](_0x34373e){const _0x3a1540=JSON['parse'](_0x34373e),_0x5cf6b7=this['editor'][_0x11bb('0x6d')][_0x11bb('0x7e')]['document'],_0x40c464=new _0x39daff(_0x5cf6b7,_0x3a1540[_0x11bb('0x78')](_0x43e3eb=>this[_0x11bb('0x40')](_0x43e3eb)));return this[_0x11bb('0x9a')][_0x11bb('0xce')][_0x11bb('0x19')](_0x40c464);}['_getViewObj'](_0x4da4ca){const _0x10b785=this[_0x11bb('0x9a')][_0x11bb('0x6d')][_0x11bb('0x7e')]['document'];if(_0x11bb('0x29')==typeof _0x4da4ca)return new _0x3494f8(_0x10b785,_0x4da4ca);{const _0x3dd146=_0x4da4ca[_0x11bb('0x1e')][_0x11bb('0x78')](_0x5d1865=>this[_0x11bb('0x40')](_0x5d1865));return new(tt[_0x4da4ca[(_0x11bb('0x5d'))]]||_0x234a89)(_0x10b785,_0x4da4ca[_0x11bb('0x11c')],_0x4da4ca[_0x11bb('0xbb')],_0x3dd146);}}[_0x11bb('0x7f')](_0x9a2781,_0x36e64b=null){const _0x36b03a=this[_0x11bb('0x1b')][_0x11bb('0xda')](_0x9a2781),_0x5411ff=_0x36e64b?this[_0x11bb('0x1b')][_0x11bb('0xda')](_0x36e64b):null,_0x49fe43=this[_0x11bb('0x10')](_0x36b03a,_0x5411ff),_0x3a868e=_0x49fe43[_0x49fe43[_0x11bb('0x1f')]-0x1],_0x44cb32=new Map(),_0x2187f0={'model':{},'attributes':{},'changes':[]},_0x1c978b=new Set(),_0x441ef0=new Map();for(let _0x2e09ee=_0x49fe43[_0x11bb('0x1f')]-0x1;_0x2e09ee>=0x0;_0x2e09ee--){const _0x2c2e4b=_0x49fe43[_0x2e09ee];for(const _0x3ce3b9 of Object['keys'](_0x2c2e4b[_0x11bb('0x91')]))if(_0x2c2e4b[_0x11bb('0x91')][_0x3ce3b9]['attachChange']){const _0xebee76=_0x2c2e4b[_0x11bb('0x91')][_0x3ce3b9][_0x11bb('0x101')];_0xebee76[_0x11bb('0xe4')]?(_0x1c978b[_0x11bb('0xde')](_0x3ce3b9),_0x441ef0[_0x11bb('0xed')](_0x3ce3b9)&&_0x441ef0[_0x11bb('0x118')](_0x3ce3b9)[_0x11bb('0xc6')]==_0xebee76[_0x11bb('0xc6')]?_0x441ef0[_0x11bb('0xac')](_0x3ce3b9):_0x441ef0[_0x11bb('0x61')](_0x3ce3b9,_0xebee76)):_0x441ef0[_0x11bb('0xed')](_0x3ce3b9)?(_0x1c978b['delete'](_0x3ce3b9),_0x441ef0['delete'](_0x3ce3b9)):(_0x1c978b[_0x11bb('0xde')](_0x3ce3b9),_0x441ef0[_0x11bb('0x61')](_0x3ce3b9,_0xebee76));}else _0x1c978b[_0x11bb('0xde')](_0x3ce3b9);}for(const _0x2ce027 of _0x1c978b){const _0x18c3e7=_0x441ef0[_0x11bb('0xed')](_0x2ce027)&&!_0x441ef0['get'](_0x2ce027)[_0x11bb('0xe4')];let _0x1819d1=_0x18c3e7?_0x49fe43[_0x11bb('0x1f')]-0x1:0x0;const _0x569129=_0x18c3e7?-0x1:0x1;for(;_0x49fe43[_0x1819d1];){const _0x524c23=_0x49fe43[_0x1819d1];if(_0x524c23[_0x11bb('0x91')][_0x2ce027]){const _0x5c1a8f=_0x18c3e7?_0x524c23[_0x11bb('0x91')][_0x2ce027][_0x11bb('0x9')]:_0x524c23[_0x11bb('0x91')][_0x2ce027]['attributesAfter'];_0x2187f0[_0x11bb('0xbb')][_0x2ce027]=_0x5c1a8f?_0x22dae1(_0x5c1a8f):{};break;}_0x1819d1+=_0x569129;}}for(const _0x12f055 of _0x49fe43){_0x12f055[_0x11bb('0x7b')]={};for(const _0x2d4388 of _0x12f055['authors'])_0x44cb32[_0x11bb('0x61')](_0x2d4388['id'],_0x2d4388);for(const _0x28bb4b of _0x1c978b){const _0x2037c6=_0x12f055[_0x11bb('0x91')][_0x28bb4b]?_0x12f055[_0x11bb('0x91')][_0x28bb4b][_0x11bb('0x13')]:'[]',_0x4e716e=_0x12f055[_0x11bb('0x91')][_0x28bb4b]?_0x12f055[_0x11bb('0x91')][_0x28bb4b][_0x11bb('0xd2')]:'[]';_0x12f055[_0x11bb('0x7b')][_0x28bb4b]={'insertions':this[_0x11bb('0x86')](_0x2037c6),'deletions':this[_0x11bb('0x86')](_0x4e716e)};}}for(const _0x6c5422 of _0x1c978b){let _0x3b3515=null,_0x198fd5=0x0;const _0x59ffe2=new Map(Array[_0x11bb('0xf3')](_0x36b03a[_0x11bb('0x7b')][_0x6c5422][_0x11bb('0x13')][_0x11bb('0x122')])[_0x11bb('0xbc')](([_0x2bfb2c])=>!_0x2bfb2c[_0x11bb('0x53')](_0x11bb('0xb3'))));let _0x2ed8ab=0x0;for(const _0x5d0106 of _0x49fe43){const _0xe36449=this[_0x11bb('0x8e')](_0x5d0106[_0x11bb('0x7b')][_0x6c5422][_0x11bb('0x13')]);_0x5d0106==_0x36b03a?(_0x3b3515=_0xe36449,_0x198fd5=_0x3b3515['length'],_0x3b3515[_0x11bb('0x10a')](_0x4dee6=>{_0x4dee6['id']=_0x2ed8ab++;}),this[_0x11bb('0x7')](_0x3b3515)):this[_0x11bb('0x11f')](_0x3b3515,_0xe36449);const _0xac8bdf=_0x3b3515['filter'](_0x41bf43=>!_0x41bf43[_0x11bb('0x77')])[_0x11bb('0x78')](_0x17cda3=>_0x17cda3['id']);let _0x236f1e=0x0;const _0x4459ac=this['_makeTape'](_0x5d0106[_0x11bb('0x7b')][_0x6c5422]['deletions']);_0x4459ac['forEach'](_0x30e640=>{_0x30e640[_0x11bb('0x2c')]?_0x30e640['id']=_0x198fd5++:_0x30e640['id']=_0xac8bdf[_0x236f1e++];}),this[_0x11bb('0x7')](_0x4459ac),this[_0x11bb('0x8b')](_0x3b3515,_0x11bb('0x77')),this[_0x11bb('0x8b')](_0x4459ac,_0x11bb('0x2c')),_0x5d0106==_0x36b03a&&this[_0x11bb('0x6a')](_0x3b3515,_0x59ffe2),_0x3b3515=this[_0x11bb('0x72')](_0x3b3515,_0x4459ac),this[_0x11bb('0x123')](_0x3b3515),this[_0x11bb('0x8b')](_0x3b3515,_0x11bb('0x2c'));}_0x3b3515=_0x3b3515['filter'](_0x30800f=>!(_0x30800f['isAdded']&&_0x30800f['isRemoved']));const _0x5bafe7=new Map(_0x3a868e[_0x11bb('0x7b')][_0x6c5422]['deletions'][_0x11bb('0x122')]),_0x336982=new Set(_0x59ffe2[_0x11bb('0x4b')]());for(const _0x901039 of _0x5bafe7['keys']())_0x336982[_0x11bb('0xac')](_0x901039);this[_0x11bb('0x48')](_0x3b3515,_0x336982),this[_0x11bb('0x94')](_0x3b3515),_0x3b3515=this[_0x11bb('0x4e')](_0x3b3515),_0x3b3515=this[_0x11bb('0x7c')](_0x3b3515),_0x3b3515=this['_removeUnsupportedChanges'](_0x3b3515);const {root:_0xff3951,changes:_0x34c964}=this[_0x11bb('0x60')](_0x3b3515,_0x44cb32,_0x6c5422);_0x2187f0['model'][_0x6c5422]=_0xff3951;const _0xf0085=_0x441ef0['get'](_0x6c5422);if(_0xf0085){const _0x2cfe6d=_0x44cb32[_0x11bb('0x118')](_0xf0085[_0x11bb('0xc6')]),_0xc8f530=new _0x39bcb4({'author':_0x2cfe6d,'type':_0xf0085['isAttached']?_0x11bb('0xde'):_0x11bb('0x3e'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x6c5422});_0x34c964[_0x11bb('0x23')](_0xc8f530),_0x2187f0[_0x11bb('0xbb')][_0x6c5422]['revisionHistoryAttachChange']=_0xc8f530['id'];}_0x2187f0[_0x11bb('0x109')]=_0x2187f0['changes'][_0x11bb('0x82')](_0x34c964);}return _0x2187f0;}[_0x11bb('0x6a')](_0x504b5c,_0x39cdde){for(let _0x133007=0x0;_0x133007<_0x504b5c[_0x11bb('0x1f')];_0x133007++)for(const [_0x1e41a3,_0x547b20]of _0x39cdde)_0x547b20[_0x11bb('0x46')][_0x11bb('0x54')](_0x504b5c[_0x133007]['previousPosition'])&&_0x504b5c[_0x133007][_0x11bb('0x45')][_0x11bb('0x5e')](_0x1e41a3),_0x547b20[_0x11bb('0x3d')][_0x11bb('0x54')](_0x504b5c[_0x133007][_0x11bb('0xea')])&&_0x504b5c[_0x133007][_0x11bb('0xd1')][_0x11bb('0x5e')](_0x1e41a3);}[_0x11bb('0x72')](_0x1a56a2,_0x3a3c9f){let _0xd9126b=[],_0x13352d=0x0,_0x46210a=0x0;for(;_0x13352d<_0x1a56a2[_0x11bb('0x1f')]||_0x46210a<_0x3a3c9f[_0x11bb('0x1f')];){const _0x295090=_0x1a56a2[_0x13352d]||{},_0x376928=_0x3a3c9f[_0x46210a]||{};if(_0x295090['id']==_0x376928['id'])_0x13352d++,_0x46210a++,_0xd9126b[_0x11bb('0x5e')](_0x295090);else{if(_0x376928['isRemoved']&&_0x295090[_0x11bb('0x77')]){const {commonTape:_0x1c3bb8,iEnd:_0x477a41,jEnd:_0x2ecfe9}=this[_0x11bb('0xff')](_0x1a56a2,_0x13352d,_0x3a3c9f,_0x46210a);_0xd9126b=_0xd9126b['concat'](_0x1c3bb8),_0x13352d=_0x477a41,_0x46210a=_0x2ecfe9;}else _0x376928[_0x11bb('0x2c')]?(_0x46210a++,_0xd9126b[_0x11bb('0x5e')](_0x376928)):(_0x13352d++,_0xd9126b[_0x11bb('0x5e')](_0x295090));}}return _0xd9126b;}[_0x11bb('0x48')](_0x3d0343,_0x413687){const _0x559996=[];for(let _0x2ddd80=0x0;_0x2ddd80<_0x3d0343[_0x11bb('0x1f')];_0x2ddd80++){for(let _0x51a462=0x0;_0x51a462<_0x3d0343[_0x2ddd80][_0x11bb('0x45')][_0x11bb('0x1f')];_0x51a462++){const _0x531445=_0x3d0343[_0x2ddd80]['markersStart'][_0x51a462];if(!_0x413687[_0x11bb('0xed')](_0x531445))continue;const {group:_0x4a0a5a,type:_0x31457b,authorId:_0x516f57}=_0x3c26d6(_0x531445);_0x11bb('0x106')!=_0x4a0a5a||_0x11bb('0xb5')!=_0x31457b&&'deletion'!=_0x31457b||(_0x559996[_0x11bb('0x23')]({'type':_0x31457b,'name':_0x531445,'userId':_0x516f57}),_0x3d0343[_0x2ddd80][_0x11bb('0x45')][_0x11bb('0xfc')](_0x51a462,0x1),_0x51a462--);}_0x47c7c8(_0x3d0343[_0x2ddd80]);for(let _0x50befe=0x0;_0x50befe<_0x3d0343[_0x2ddd80][_0x11bb('0xd1')][_0x11bb('0x1f')];_0x50befe++){const _0x44dc45=_0x3d0343[_0x2ddd80]['markersEnd'][_0x50befe];if(!_0x413687[_0x11bb('0xed')](_0x44dc45))continue;const {group:_0x214b32,type:_0x4e6d8b}=_0x3c26d6(_0x44dc45);if(_0x11bb('0x106')!=_0x214b32||_0x11bb('0xb5')!=_0x4e6d8b&&'deletion'!=_0x4e6d8b)continue;_0x3d0343[_0x2ddd80][_0x11bb('0xd1')][_0x11bb('0xfc')](_0x50befe,0x1),_0x50befe--;const _0x2dc6d0=_0x559996[_0x11bb('0xb0')](_0x3cc743=>_0x3cc743[_0x11bb('0x11c')]==_0x44dc45);_0x2dc6d0>-0x1&&_0x559996[_0x11bb('0xfc')](_0x2dc6d0,0x1);}}function _0x3c26d6(_0x217faf){const _0x592dd8=_0x217faf['split'](':');return{'group':_0x592dd8[0x0],'type':_0x592dd8[0x1],'subType':_0x592dd8[_0x11bb('0x1f')]>=0x5?_0x592dd8[0x2]:null,'id':_0x592dd8[_0x11bb('0x1f')]<0x5?_0x592dd8[0x2]:_0x592dd8[0x3],'authorId':_0x592dd8[_0x11bb('0x1f')]<0x5?_0x592dd8[0x3]:_0x592dd8[0x4],'markerCount':0x6==_0x592dd8['length']?_0x592dd8[0x5]:null};}function _0x47c7c8(_0x1fd78c){for(let _0x2d71f4=0x0;_0x2d71f4<_0x559996['length'];_0x2d71f4++){if(_0x1fd78c[_0x11bb('0x77')]&&_0x11bb('0xb5')==_0x559996[_0x2d71f4][_0x11bb('0x5d')])return _0x1fd78c[_0x11bb('0x25')]=_0x559996[_0x2d71f4],void delete _0x1fd78c[_0x11bb('0x77')];if(!_0x1fd78c[_0x11bb('0x77')]&&!_0x1fd78c[_0x11bb('0x2c')]&&_0x11bb('0x8')==_0x559996[_0x2d71f4][_0x11bb('0x5d')])return void(_0x1fd78c['isRemoveSuggestion']=_0x559996[_0x2d71f4]);}}}[_0x11bb('0x8b')](_0x86275c,_0x916628){let _0x4c5f56=0x0,_0x2d7ee2=!0x1;const _0x2b4fab=new Map();for(const _0x56a12c of _0x86275c)_0x56a12c[_0x916628]?_0x2d7ee2&&(_0x4c5f56++,_0x2d7ee2=!0x1):(_0x4c5f56++,_0x2d7ee2=!0x0),_0x2b4fab[_0x11bb('0x61')](_0x56a12c['id'],_0x4c5f56);for(let _0xc7aa27=0x0;_0xc7aa27<_0x86275c['length'];_0xc7aa27++){if('isRemoved'==_0x916628&&_0x86275c[_0xc7aa27][_0x11bb('0x77')]||_0x11bb('0x77')==_0x916628&&_0x86275c[_0xc7aa27]['isRemoved'])continue;if('text'==_0x86275c[_0xc7aa27]['type']){_0x86275c[_0xc7aa27][_0x11bb('0xcb')]=0x0;continue;}const _0xaeb307=_0x2b4fab[_0x11bb('0x118')](_0x86275c[_0xc7aa27]['pairId']),_0xa38bab=_0x2b4fab[_0x11bb('0x118')](_0x86275c[_0xc7aa27]['id']);_0x86275c[_0xc7aa27]['distance']=_0xaeb307-_0xa38bab;}}[_0x11bb('0x10')](_0x2ac40a,_0xa1728e,_0x3bd3f6=!0x1){const _0x522f78=[];let _0x4e0cc1=this[_0x11bb('0x1b')][_0x11bb('0x24')](_0x2ac40a),_0x37cca1=this[_0x11bb('0x1b')][_0x11bb('0x24')](_0xa1728e);for(-0x1==_0x37cca1&&(_0x37cca1=this[_0x11bb('0x1b')][_0x11bb('0x102')][_0x11bb('0x1f')],_0x3bd3f6=!0x1);_0x4e0cc1<_0x37cca1;)_0x522f78[_0x11bb('0x5e')](this[_0x11bb('0x1b')]['getRevision'](_0x4e0cc1)),_0x4e0cc1++;return _0x3bd3f6&&_0x522f78[_0x11bb('0x5e')](this[_0x11bb('0x1b')][_0x11bb('0xda')](_0x4e0cc1)),_0x522f78;}[_0x11bb('0xff')](_0x4f5ffc,_0x1db6ef,_0x3f050e,_0x25c1b4){const _0x46944d=this[_0x11bb('0x9a')]['model'][_0x11bb('0xfb')];let _0x2f65b7=_0x1db6ef;for(;_0x4f5ffc[_0x2f65b7]&&_0x4f5ffc[_0x2f65b7]['isAdded'];)_0x2f65b7++;let _0x235958=_0x25c1b4;for(;_0x3f050e[_0x235958]&&_0x3f050e[_0x235958][_0x11bb('0x2c')];)_0x235958++;_0x4179ad(_0x4f5ffc,_0x1db6ef,_0x2f65b7),_0x4179ad(_0x3f050e,_0x25c1b4,_0x235958);const _0x5f1577=_0x3f050e[_0x11bb('0x114')](_0x25c1b4,_0x235958)[_0x11bb('0x82')](_0x4f5ffc['slice'](_0x1db6ef,_0x2f65b7));return _0x5f1577[_0x11bb('0xd')]((_0x56a12f,_0x41bc35)=>_0x56a12f['side']!=_0x41bc35[_0x11bb('0x73')]?_0x56a12f[_0x11bb('0x73')]-_0x41bc35[_0x11bb('0x73')]:_0x56a12f[_0x11bb('0xe8')]!=_0x41bc35['level']?_0x56a12f[_0x11bb('0xe8')]-_0x41bc35[_0x11bb('0xe8')]:_0x56a12f['distance']!=_0x41bc35[_0x11bb('0xcb')]?_0x41bc35[_0x11bb('0xcb')]-_0x56a12f[_0x11bb('0xcb')]:!!_0x56a12f[_0x11bb('0x77')]!=!!_0x41bc35['isAdded']?-0x1==_0x56a12f['side']||0x0==_0x56a12f[_0x11bb('0x73')]?_0x56a12f[_0x11bb('0x77')]?-0x1:0x1:_0x56a12f[_0x11bb('0x77')]?0x1:-0x1:_0x56a12f[_0x11bb('0x121')]-_0x41bc35['index']),{'commonTape':_0x5f1577,'iEnd':_0x2f65b7,'jEnd':_0x235958};function _0x4179ad(_0x34cf7c,_0x199bdf,_0x12e110){let _0x3cea5a=-0x1,_0x1fb438=Number[_0x11bb('0xe6')],_0x5295e8=!0x0;for(let _0x1d0633=_0x199bdf;_0x1d0633<_0x12e110;_0x1d0633++)if(_0x46944d[_0x11bb('0x9d')](_0x34cf7c[_0x1d0633][_0x11bb('0x9b')])||(_0x5295e8=!0x1),_0x34cf7c[_0x1d0633][_0x11bb('0x9b')]['startIndex']<_0x199bdf&&(_0x3cea5a=_0x1d0633),_0x34cf7c[_0x1d0633]['item'][_0x11bb('0x1c')]>=_0x12e110){_0x1fb438=_0x1d0633;break;}_0x5295e8&&(_0x3cea5a=_0x12e110-0x1);for(let _0x51ae96=_0x199bdf;_0x51ae96<_0x12e110;_0x51ae96++)_0x34cf7c[_0x51ae96][_0x11bb('0x73')]=_0x51ae96<=_0x3cea5a?-0x1:_0x51ae96<_0x1fb438?0x0:0x1,_0x34cf7c[_0x51ae96][_0x11bb('0x121')]=_0x51ae96;let _0x30a212=0x0;for(let _0x397ff1=_0x199bdf;_0x397ff1<=_0x3cea5a;_0x397ff1++)0x0==_0x34cf7c[_0x397ff1]['distance']?_0x34cf7c[_0x397ff1][_0x11bb('0xe8')]=_0x30a212:(_0x30a212++,_0x34cf7c[_0x397ff1][_0x11bb('0xe8')]=_0x30a212,_0x30a212++);for(let _0x350fb7=_0x199bdf;_0x350fb7<_0x12e110;_0x350fb7++)0x0==_0x34cf7c[_0x350fb7][_0x11bb('0x73')]&&(_0x34cf7c[_0x350fb7][_0x11bb('0xe8')]=_0x30a212);_0x30a212=0x0;for(let _0x4cd3f8=_0x12e110-0x1;_0x4cd3f8>=_0x1fb438;_0x4cd3f8--)0x0==_0x34cf7c[_0x4cd3f8][_0x11bb('0xcb')]?_0x34cf7c[_0x4cd3f8][_0x11bb('0xe8')]=_0x30a212:(_0x30a212--,_0x34cf7c[_0x4cd3f8][_0x11bb('0xe8')]=_0x30a212,_0x30a212--);}}[_0x11bb('0x94')](_0x455e35){const _0x5628f8=new Map(),_0xbf591b=this['editor'][_0x11bb('0x7b')][_0x11bb('0xfb')];for(let _0x2c4d92=0x1;_0x2c4d92<_0x455e35[_0x11bb('0x1f')];_0x2c4d92++){let _0x45f1d4,_0x5e05db,_0x2ce677;const _0x5889d1=_0x455e35[_0x2c4d92],_0x139975=_0x455e35[_0x2c4d92-0x1];if(_0x11bb('0x38')==_0x5889d1[_0x11bb('0x5d')])continue;if(_0x5889d1[_0x11bb('0x5d')]!=_0x139975[_0x11bb('0x5d')])continue;if(!_0xbf591b['isBlock'](_0x139975[_0x11bb('0x9b')])||_0xbf591b[_0x11bb('0x31')](_0x139975[_0x11bb('0x9b')]))continue;if(!_0xbf591b[_0x11bb('0x8f')](_0x5889d1['item'])||_0xbf591b[_0x11bb('0x31')](_0x5889d1[_0x11bb('0x9b')]))continue;if((_0x455e35[_0x2c4d92]['isAdded']||_0x455e35[_0x2c4d92][_0x11bb('0x25')])&&_0x455e35[_0x2c4d92-0x1][_0x11bb('0x2c')])_0x45f1d4=_0x455e35[_0x2c4d92],_0x5e05db=_0x455e35[_0x2c4d92-0x1],_0x2ce677=_0x2c4d92-0x1;else{if(!_0x455e35[_0x2c4d92][_0x11bb('0x2c')]||!_0x455e35[_0x2c4d92-0x1]['isAdded']&&!_0x455e35[_0x2c4d92-0x1][_0x11bb('0x25')])continue;_0x45f1d4=_0x455e35[_0x2c4d92-0x1],_0x5e05db=_0x455e35[_0x2c4d92],_0x2ce677=_0x2c4d92;}const _0x25f24f=_0x45f1d4[_0x11bb('0xe8')]==_0x5e05db[_0x11bb('0xe8')],_0xe74180=Math[_0x11bb('0xaa')](_0x45f1d4[_0x11bb('0xe8')])<Math[_0x11bb('0xaa')](_0x5e05db[_0x11bb('0xe8')])&&0x0==_0x5e05db[_0x11bb('0xcb')];(_0x25f24f||_0xe74180)&&(_0x5628f8[_0x11bb('0x61')](_0x5e05db['id'],_0x45f1d4['id']),_0x455e35['splice'](_0x2ce677,0x1),_0x2c4d92--,_0x45f1d4['isAdded']=!0x1);}for(let _0x2447f3=0x0;_0x2447f3<_0x455e35[_0x11bb('0x1f')];_0x2447f3++)_0x5628f8[_0x11bb('0xed')](_0x455e35[_0x2447f3][_0x11bb('0xc9')])&&(_0x455e35[_0x2447f3][_0x11bb('0xc9')]=_0x5628f8[_0x11bb('0x118')](_0x455e35[_0x2447f3][_0x11bb('0xc9')]));}[_0x11bb('0x4e')](_0x5b6fa8){const _0x4e3ff9=new Set(_0x5b6fa8[_0x11bb('0x78')](_0x1e5407=>_0x1e5407['id']));for(let _0x1c1b12=0x0;_0x1c1b12<_0x5b6fa8[_0x11bb('0x1f')];_0x1c1b12++)_0x4e3ff9[_0x11bb('0xed')](_0x5b6fa8[_0x1c1b12][_0x11bb('0xc9')])||0x0==_0x5b6fa8[_0x1c1b12][_0x11bb('0xcb')]||(_0x5b6fa8[_0x1c1b12][_0x11bb('0x115')]=!0x0);return _0x5b6fa8[_0x11bb('0xbc')](_0x1f9b71=>!_0x1f9b71[_0x11bb('0x115')]);}[_0x11bb('0x7c')](_0x3a38fa){const _0x1875f6=new Set();for(let _0x29721c=0x0;_0x29721c<_0x3a38fa[_0x11bb('0x1f')];_0x29721c++){if(_0x1875f6[_0x11bb('0xed')](_0x3a38fa[_0x29721c]['id'])&&_0x3a38fa[_0x29721c][_0x11bb('0x2c')]&&(_0x3a38fa[_0x29721c]['isIncorrect']=!0x0),_0x3a38fa[_0x29721c][_0x11bb('0x115')])continue;if(0x0==_0x3a38fa[_0x29721c][_0x11bb('0xcb')])continue;if(_0x11bb('0x87')!=_0x3a38fa[_0x29721c]['type'])continue;if(null==_0x3a38fa[_0x29721c][_0x11bb('0xc9')])continue;let _0x15387b=_0x29721c+0x1,_0x3e0184=0x0;for(;_0x3a38fa[_0x15387b]['id']!=_0x3a38fa[_0x29721c]['pairId'];)'elementStart'==_0x3a38fa[_0x15387b]['type']?_0x3e0184++:'elementEnd'==_0x3a38fa[_0x15387b]['type']&&_0x3e0184--,_0x15387b++;if(0x0!=_0x3e0184){if(_0x3a38fa[_0x29721c][_0x11bb('0x2c')])_0x3a38fa[_0x29721c][_0x11bb('0x115')]=!0x0;else for(;_0x15387b!=_0x29721c;)_0x3a38fa[_0x15387b][_0x11bb('0x2c')]&&0x0!=_0x3a38fa[_0x15387b][_0x11bb('0xcb')]&&(_0x3a38fa[_0x15387b]['isIncorrect']=!0x0,_0x1875f6[_0x11bb('0xde')](_0x3a38fa[_0x15387b][_0x11bb('0xc9')])),_0x15387b--;}}return _0x3a38fa['filter'](_0x29b900=>!_0x29b900[_0x11bb('0x115')]);}['_removeUnsupportedChanges'](_0x2047d7){const _0x2b1c1a=this[_0x11bb('0x9a')]['model']['schema'];for(let _0x447965=0x0;_0x447965<_0x2047d7[_0x11bb('0x1f')];_0x447965++){if(!(_0x2047d7[_0x447965][_0x11bb('0x77')]||_0x2047d7[_0x447965][_0x11bb('0x25')]||_0x2047d7[_0x447965][_0x11bb('0x2c')]||_0x2047d7[_0x447965][_0x11bb('0x65')]))continue;if(0x0==_0x2047d7[_0x447965][_0x11bb('0xcb')])continue;const _0x240b2f=_0x2047d7[_0x447965][_0x11bb('0x9b')];_0x2b1c1a[_0x11bb('0x8f')](_0x240b2f)||_0x2b1c1a[_0x11bb('0x31')](_0x240b2f)||(_0x2047d7[_0x447965][_0x11bb('0x77')]&&delete _0x2047d7[_0x447965][_0x11bb('0x77')],_0x2047d7[_0x447965]['isAddSuggestion']&&delete _0x2047d7[_0x447965][_0x11bb('0x25')],_0x2047d7[_0x447965][_0x11bb('0x65')]&&delete _0x2047d7[_0x447965]['isRemoveSuggestion'],_0x2047d7[_0x447965][_0x11bb('0x2c')]&&(_0x2047d7[_0x447965]['isIncorrect']=!0x0));}return _0x2047d7[_0x11bb('0xbc')](_0xa76def=>!_0xa76def[_0x11bb('0x115')]);}[_0x11bb('0x60')](_0x19dd42,_0x35f42,_0x2cef76){const _0x515ac0=new _0x4679f0(),_0x2980c7=[],_0x26c31b=new Map(),_0x688f35=this[_0x11bb('0x9a')][_0x11bb('0x7b')],_0x3fe2c3=_0x688f35[_0x11bb('0xfb')],_0x5a3ac2=[_0x515ac0],_0x551182={},_0x3ceb49={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5427cf=null;const _0x42c93a=[0x0];for(let _0xcd40b8=0x0;_0xcd40b8<_0x19dd42['length'];_0xcd40b8++){let _0x4f648e,_0x542f70;if(_0x11bb('0x87')===_0x19dd42[_0xcd40b8][_0x11bb('0x5d')]){_0x4f648e=_0x688f35[_0x11bb('0xc0')](_0x515ac0,_0x42c93a);const _0x55f894=new _0x3b7736(_0x19dd42[_0xcd40b8][_0x11bb('0x9b')][_0x11bb('0x11c')],_0x19dd42[_0xcd40b8]['item'][_0x11bb('0xee')]());_0x5a3ac2[0x0][_0x11bb('0x76')](_0x55f894),_0x42c93a[_0x11bb('0x5e')](0x0),_0x5a3ac2[_0x11bb('0x23')](_0x55f894),_0x542f70=_0x688f35['createPositionFromPath'](_0x515ac0,_0x42c93a),_0x5427cf=null;}else{if(_0x11bb('0xa2')===_0x19dd42[_0xcd40b8][_0x11bb('0x5d')])_0x5a3ac2['shift'](),_0x4f648e=_0x688f35[_0x11bb('0xc0')](_0x515ac0,_0x42c93a),_0x42c93a['pop'](),_0x42c93a[_0x42c93a[_0x11bb('0x1f')]-0x1]++,_0x542f70=_0x688f35['createPositionFromPath'](_0x515ac0,_0x42c93a),_0x5427cf=null;else{if(_0x4f648e=_0x688f35[_0x11bb('0xc0')](_0x515ac0,_0x42c93a),_0x5427cf&&_0x34c99b(_0x5427cf,_0x19dd42[_0xcd40b8][_0x11bb('0x9b')]))_0x5427cf[_0x11bb('0xa7')]+=_0x19dd42[_0xcd40b8][_0x11bb('0x9b')][_0x11bb('0xce')];else{const _0x3efe16=new _0x136c94(_0x19dd42[_0xcd40b8][_0x11bb('0x9b')][_0x11bb('0xce')],_0x19dd42[_0xcd40b8][_0x11bb('0x9b')][_0x11bb('0xee')]());_0x5a3ac2[0x0]['_appendChild'](_0x3efe16),_0x5427cf=_0x3efe16;}_0x42c93a[_0x42c93a['length']-0x1]+=_0x19dd42[_0xcd40b8][_0x11bb('0x9b')][_0x11bb('0x14')],_0x542f70=_0x688f35[_0x11bb('0xc0')](_0x515ac0,_0x42c93a);}}for(const _0x3235e1 of _0x19dd42[_0xcd40b8][_0x11bb('0x45')])_0x26c31b[_0x11bb('0x61')](_0x3235e1,{'start':_0x4f648e,'end':null});_0x2d5fba(_0x11bb('0x65'),_0xcd40b8,_0x4f648e,_0x542f70),_0x2d5fba(_0x11bb('0x25'),_0xcd40b8,_0x4f648e,_0x542f70),_0x2d5fba(_0x11bb('0x2c'),_0xcd40b8,_0x4f648e,_0x542f70),_0x2d5fba(_0x11bb('0x77'),_0xcd40b8,_0x4f648e,_0x542f70);for(const _0x4cf262 of _0x19dd42[_0xcd40b8][_0x11bb('0xd1')]){_0x26c31b['get'](_0x4cf262)[_0x11bb('0x3d')]=_0x542f70;}}for(const [_0x2552aa,_0x30687d]of _0x26c31b){const _0x54e602=this['editor'][_0x11bb('0x7b')][_0x11bb('0x80')](_0x30687d['start'],_0x30687d[_0x11bb('0x3d')]);_0x515ac0[_0x11bb('0x122')][_0x11bb('0x61')](_0x2552aa,_0x54e602);}return _0x2980c7[_0x11bb('0xd')]((_0x2911de,_0x4449fc)=>{const _0x1d4754=_0x515ac0[_0x11bb('0x122')]['get'](_0x11bb('0xb3')+_0x2911de['id']),_0x5f1342=_0x515ac0[_0x11bb('0x122')]['get']('revision:'+_0x4449fc['id']);return _0x1d4754[_0x11bb('0x46')][_0x11bb('0x62')](_0x5f1342[_0x11bb('0x46')])?-0x1:_0x1d4754[_0x11bb('0x46')][_0x11bb('0x0')](_0x5f1342['start'])?0x1:_0x1d4754[_0x11bb('0x3d')]['isBefore'](_0x5f1342[_0x11bb('0x3d')])?-0x1:_0x1d4754[_0x11bb('0x3d')][_0x11bb('0x0')](_0x5f1342[_0x11bb('0x3d')])?0x1:_0x11bb('0xde')===_0x2911de[_0x11bb('0x5d')]?-0x1:0x1;}),{'root':_0x515ac0,'changes':_0x2980c7};function _0x2d5fba(_0x39a9d1,_0x1ab699,_0x31ed55,_0x1d53b1){const _0x5e3926=!!_0x19dd42[_0x1ab699][_0x39a9d1],_0x4e9079=_0x5e3926?_0x19dd42[_0x1ab699][_0x39a9d1]['userId']:null,_0x4c29a2=_0x1ab699===_0x19dd42[_0x11bb('0x1f')]-0x1,_0x465520=_0x3ceb49[_0x39a9d1][0x0],_0x4a4de1=_0x3fe2c3[_0x11bb('0x69')](_0x19dd42[_0x1ab699][_0x11bb('0x9b')]);!_0x551182[_0x39a9d1]&&_0x5e3926?_0x551182[_0x39a9d1]={'start':_0x31ed55,'tapeItem':_0x19dd42[_0x1ab699],'userId':_0x4e9079,'type':_0x39a9d1}:_0x551182[_0x39a9d1]&&!_0x5e3926?(_0x551182[_0x39a9d1][_0x11bb('0x3d')]=_0x31ed55,_0x24c976(_0x551182[_0x39a9d1]),_0x551182[_0x39a9d1]=null):_0x551182[_0x39a9d1]&&_0x5e3926&&_0x551182[_0x39a9d1][_0x11bb('0xc6')]!==_0x4e9079&&(_0x551182[_0x39a9d1][_0x11bb('0x3d')]=_0x31ed55,_0x465520&&_0x465520[_0x11bb('0xc6')]===_0x551182[_0x39a9d1][_0x11bb('0xc6')]||_0x24c976(_0x551182[_0x39a9d1]),_0x551182[_0x39a9d1]={'start':_0x31ed55,'tapeItem':_0x19dd42[_0x1ab699],'userId':_0x4e9079,'type':_0x39a9d1}),_0x551182[_0x39a9d1]&&_0x4a4de1&&(_0x11bb('0x87')!==_0x19dd42[_0x1ab699][_0x11bb('0x5d')]||_0x465520&&_0x465520['userId']===_0x4e9079||_0x3ceb49[_0x39a9d1][_0x11bb('0x23')]({'userId':_0x4e9079,'object':_0x19dd42[_0x1ab699][_0x11bb('0x9b')],'change':_0x551182[_0x39a9d1]}),'elementEnd'===_0x19dd42[_0x1ab699][_0x11bb('0x5d')]&&_0x465520&&_0x465520[_0x11bb('0xd6')]===_0x19dd42[_0x1ab699][_0x11bb('0x9b')]&&(_0x3ceb49[_0x39a9d1][_0x11bb('0x66')](),_0x551182[_0x39a9d1]=_0x465520[_0x11bb('0x37')])),_0x551182[_0x39a9d1]&&_0x4c29a2&&(_0x551182[_0x39a9d1][_0x11bb('0x3d')]=_0x1d53b1,_0x24c976(_0x551182[_0x39a9d1]),_0x551182[_0x39a9d1]=null);}function _0x24c976({start:_0x2b5be9,end:_0x8d5c78,tapeItem:_0x28b54f,userId:_0x1ea578,type:_0x4a0cca}){const _0x603a3c=_0x28b54f[_0x11bb('0x9b')],_0x113355=_0x688f35[_0x11bb('0xfb')]['isBlock'](_0x603a3c)&&!_0x688f35[_0x11bb('0xfb')][_0x11bb('0x31')](_0x603a3c),_0xfcf2c5=_0x2b5be9[_0x11bb('0x107')]==_0x8d5c78['parent']&&_0x8d5c78[_0x11bb('0x10b')];if(_0x113355&&_0xfcf2c5)return;const _0xa399c=_0x688f35[_0x11bb('0x80')](_0x2b5be9,_0x8d5c78),_0x43cbb5=_0x35f42[_0x11bb('0x118')](_0x1ea578),_0x34cec7=new _0x39bcb4({'author':_0x43cbb5,'type':_0x11bb('0x77')==_0x4a0cca||'isAddSuggestion'==_0x4a0cca?'add':_0x11bb('0x3e'),'data':{'isSuggestion':_0x11bb('0x25')==_0x4a0cca||'isRemoveSuggestion'==_0x4a0cca},'createdAt':new Date(),'rootName':_0x2cef76});_0x2980c7[_0x11bb('0x5e')](_0x34cec7),_0x515ac0['markers'][_0x11bb('0x61')](_0x11bb('0xb3')+_0x34cec7['id'],_0xa399c);}function _0x34c99b(_0x184639,_0x492faf){const _0x299c78=_0x184639[_0x11bb('0xee')](),_0x1bf8b8=_0x492faf[_0x11bb('0xee')]();for(const _0x2ca275 of _0x299c78){if(_0x2ca275[0x1]!==_0x492faf['getAttribute'](_0x2ca275[0x0]))return!0x1;_0x1bf8b8['next']();}return _0x1bf8b8['next']()[_0x11bb('0x6')];}}[_0x11bb('0xca')](){this[_0x11bb('0x9a')][_0x11bb('0x116')][_0x11bb('0x11b')](_0x11bb('0xc'))['dataToMarker']({'view':_0x11bb('0x81')}),this[_0x11bb('0x9a')][_0x11bb('0x116')][_0x11bb('0x11b')](_0x11bb('0x88'))[_0x11bb('0xba')]({'model':_0x11bb('0x81'),'view':_0x2c9c6f=>{const _0x479690=_0x2c9c6f[_0x11bb('0xef')][_0x11bb('0x56')](':')[0x1],_0x55741f=this[_0x11bb('0x2f')](_0x479690);if(!_0x55741f)return null;const _0x1197c5=_0x11bb('0xde')==_0x55741f[_0x11bb('0x5d')]?_0x11bb('0xb5'):_0x11bb('0x8'),_0x94c634=[_0x11bb('0x2'),'ck-suggestion-marker-'+_0x1197c5];return _0x55741f[_0x11bb('0xce')][_0x11bb('0xf4')]&&_0x94c634[_0x11bb('0x5e')](_0x11bb('0xa6')+_0x1197c5+'-new'),this[_0x11bb('0x68')]==_0x55741f&&_0x94c634[_0x11bb('0x5e')](_0x11bb('0x3')),{'classes':_0x94c634,'attributes':{'data-change-id':_0x479690}};}}),this[_0x11bb('0x9a')][_0x11bb('0x116')][_0x11bb('0x11b')](_0x11bb('0xc'))[_0x11bb('0xde')](_0x1675ed=>{_0x1675ed['on']('element:pre',(_0x5b1bfc,_0x30f7fc,_0x21830b)=>{const _0x296fb9=_0x30f7fc['viewItem'][_0x11bb('0x8d')](0x0);if(!_0x296fb9||!_0x296fb9['is'](_0x11bb('0xf7'),_0x11bb('0xdf')))return;if(!_0x21830b[_0x11bb('0x9e')][_0x11bb('0x55')](_0x296fb9,{'attributes':[_0x11bb('0x93'),'vid_end']}))return;const _0x30f915=_0x30f7fc[_0x11bb('0x10e')]['start'][_0x11bb('0x107')];_0x21830b[_0x11bb('0xdc')]['setAttribute'](_0x11bb('0x93'),_0x296fb9[_0x11bb('0x6b')](_0x11bb('0x93')),_0x30f915),_0x21830b[_0x11bb('0xdc')]['setAttribute'](_0x11bb('0x5f'),_0x296fb9['getAttribute'](_0x11bb('0x5f')),_0x30f915);},{'priority':_0x11bb('0x95')});}),this[_0x11bb('0x9a')][_0x11bb('0x116')]['for'](_0x11bb('0xc'))[_0x11bb('0xde')](_0x163693=>{_0x163693['on'](_0x11bb('0xf7'),(_0x41f2ed,_0x499129,_0x599173)=>{if(!_0x599173['consumable']['consume'](_0x499129[_0x11bb('0xf5')],{'attributes':['vid_start',_0x11bb('0x5f')]}))return;if(_0x499129[_0x11bb('0x10e')][_0x11bb('0x5c')])return;const _0x486cce=_0x499129[_0x11bb('0x10e')]['start'][_0x11bb('0x107')];_0x486cce[_0x11bb('0x9c')](_0x11bb('0x93'))||_0x486cce[_0x11bb('0x9c')](_0x11bb('0x4'))||(_0x599173[_0x11bb('0xdc')][_0x11bb('0x64')](_0x11bb('0x93'),_0x499129[_0x11bb('0xf5')]['getAttribute'](_0x11bb('0x93')),_0x486cce),_0x599173[_0x11bb('0xdc')][_0x11bb('0x64')](_0x11bb('0x5f'),_0x499129[_0x11bb('0xf5')][_0x11bb('0x6b')](_0x11bb('0x5f')),_0x486cce));},{'priority':'low'});}),this['editor'][_0x11bb('0x116')][_0x11bb('0x11b')]('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x22a273=>_0x22a273[_0x11bb('0x6b')]('vid')}}),this['editor'][_0x11bb('0x7b')][_0x11bb('0xfb')]['on'](_0x11bb('0xa'),(_0xff86b1,[,_0x2ba2f6])=>{[_0x11bb('0x93'),_0x11bb('0x5f'),_0x11bb('0x4')][_0x11bb('0x3b')](_0x2ba2f6)&&(_0xff86b1[_0x11bb('0x112')]=!0x0,_0xff86b1['stop']());},{'priority':_0x11bb('0x5')}),this[_0x11bb('0x9a')]['conversion']['for'](_0x11bb('0x79'))['add'](_0x33889d=>{_0x33889d['on'](_0x11bb('0x1a'),(_0x32be65,_0x4fcd9f,_0x1d18df)=>{if('\x20'!=_0x4fcd9f[_0x11bb('0x9b')][_0x11bb('0xce')]||_0x4fcd9f[_0x11bb('0x9b')][_0x11bb('0x83')][_0x11bb('0x10d')]>0x1)return;if(!_0x1d18df[_0x11bb('0x9e')]['consume'](_0x4fcd9f['item'],_0x32be65[_0x11bb('0x11c')]))return;const _0x15ffe0=_0x1d18df[_0x11bb('0xdc')],_0x17f9cf=_0x1d18df[_0x11bb('0x39')][_0x11bb('0xe2')](_0x4fcd9f[_0x11bb('0xcf')]);_0x15ffe0[_0x11bb('0xc5')](_0x17f9cf,_0x15ffe0['createAttributeElement'](_0x11bb('0x35')));});}),this[_0x11bb('0x9a')][_0x11bb('0x116')]['for'](_0x11bb('0x79'))[_0x11bb('0x27')]({'model':_0x11bb('0x81')}),this[_0x11bb('0x9a')]['editing'][_0x11bb('0xa0')]['on'](_0x11bb('0x11e'),function(_0x1c5832){const _0x48a242=_0x1c5832['plugins'][_0x11bb('0x118')](_0x11bb('0x51'));return(_0x44a39c,_0x7e5bd5,_0x38c2de)=>{const _0x2c0cd0=_0x7e5bd5['markerName'][_0x11bb('0x56')](':')[0x1],_0xde0f43=_0x48a242['_getChangeFromId'](_0x2c0cd0);if(!_0xde0f43)return null;const _0x21fa91=_0x11bb('0xde')==_0xde0f43[_0x11bb('0x5d')]?_0x11bb('0x56'):_0x11bb('0x15');if(!_0x38c2de[_0x11bb('0x9e')][_0x11bb('0xbf')](_0x7e5bd5[_0x11bb('0xb9')],_0x44a39c[_0x11bb('0x11c')]))return;const _0x1b07a1=_0x7e5bd5[_0x11bb('0xb9')][_0x11bb('0xf8')](),_0x24ffa1=_0x7e5bd5['markerRange'][_0x11bb('0x46')],_0x4826f8=_0x1c5832['model']['schema'];let _0x389cbb=null,_0x3529b6=null,_0x6a7b93=!0x1,_0x267615=!0x1;for(const _0x3254af of _0x1b07a1){const _0x1e8a82=_0x3254af['item'];_0x6a7b93=_0x6a7b93||_0x4826f8[_0x11bb('0xa8')](_0x1e8a82);const _0x39a82b=_0x38c2de[_0x11bb('0x39')][_0x11bb('0xbd')](_0x1e8a82);if(_0x39a82b&&_0x39a82b[_0x11bb('0xe9')]('addHighlight'))return;_0x11bb('0xa2')==_0x3254af[_0x11bb('0x5d')]&&(_0x4826f8['isBlock'](_0x1e8a82)&&!_0x4826f8[_0x11bb('0x31')](_0x1e8a82)&&(_0x1e8a82[_0x11bb('0x9f')]||_0x24ffa1[_0x11bb('0xfa')]?_0x389cbb&&_0x389cbb[_0x11bb('0x83')]==_0x1e8a82||(_0x389cbb=_0x1e8a82,_0x133100(_0x3254af[_0x11bb('0x58')]),_0x267615=!0x0):_0x3529b6=_0x3529b6||_0x3254af[_0x11bb('0x58')]));}function _0x133100(_0x3fbaa8){const _0xc06cc9=_0x38c2de[_0x11bb('0xdc')][_0x11bb('0xd7')](_0x11bb('0x35'),{'class':_0x11bb('0xa6')+_0x21fa91}),_0x54ac0d=_0x38c2de[_0x11bb('0x39')]['toViewPosition'](_0x3fbaa8);_0xde0f43[_0x11bb('0xce')][_0x11bb('0xf4')]&&_0x38c2de[_0x11bb('0xdc')][_0x11bb('0x4f')]('ck-suggestion-marker-'+_0x21fa91+_0x11bb('0xad'),_0xc06cc9),_0x48a242[_0x11bb('0x68')]==_0xde0f43&&_0x38c2de[_0x11bb('0xdc')][_0x11bb('0x4f')](_0x11bb('0x3'),_0xc06cc9),_0x38c2de[_0x11bb('0xdc')][_0x11bb('0x3f')](_0x54ac0d,_0xc06cc9),_0x38c2de[_0x11bb('0x39')]['bindElementToMarker'](_0xc06cc9,_0x7e5bd5[_0x11bb('0xef')]);}_0x6a7b93||_0x267615||!_0x3529b6||_0x133100(_0x3529b6);};}(this[_0x11bb('0x9a')]),{'priority':_0x11bb('0xf2')}),this[_0x11bb('0x9a')][_0x11bb('0x6d')]['downcastDispatcher']['on']('removeMarker:revision',(_0x194fb1,_0x30a64a,_0x5a3501)=>{const _0x17ceab=_0x5a3501[_0x11bb('0x39')][_0x11bb('0xdd')](_0x30a64a[_0x11bb('0xef')]);if(_0x17ceab)for(const _0x23fddf of _0x17ceab)(_0x23fddf[_0x11bb('0xf')](_0x11bb('0x108'))||_0x23fddf[_0x11bb('0xf')](_0x11bb('0x92')))&&(_0x5a3501['mapper']['unbindElementFromMarkerName'](_0x23fddf,_0x30a64a[_0x11bb('0xef')]),_0x5a3501[_0x11bb('0xdc')][_0x11bb('0x3e')](_0x23fddf));},{'priority':_0x11bb('0xf2')}),this[_0x11bb('0x9a')]['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1d631d,_0x2cfb2b,_0x791f13)=>{const _0x530d04=_0x2cfb2b['markerName'][_0x11bb('0x56')](':')[0x1],_0x47c217=this[_0x11bb('0x2f')](_0x530d04);if(!_0x47c217)return null;const _0x4a2ff2=_0x11bb('0xde')==_0x47c217['type']?'split':_0x11bb('0x15');if(_0x791f13[_0x11bb('0x9e')][_0x11bb('0xbf')](_0x2cfb2b[_0x11bb('0xb9')],_0x1d631d[_0x11bb('0x11c')]))for(const _0x500187 of _0x2cfb2b[_0x11bb('0xb9')][_0x11bb('0x7a')]()){if(!_0x500187['is'](_0x11bb('0xf7'),'softBreak'))continue;const _0x9fa895=_0x791f13[_0x11bb('0xdc')][_0x11bb('0xd7')](_0x11bb('0x35'),{'class':_0x11bb('0xa6')+_0x4a2ff2}),_0x1572a1=_0x791f13['mapper'][_0x11bb('0x89')](this[_0x11bb('0x9a')][_0x11bb('0x7b')][_0x11bb('0x41')](_0x500187));_0x47c217['data'][_0x11bb('0xf4')]&&_0x791f13[_0x11bb('0xdc')][_0x11bb('0x4f')](_0x11bb('0xa6')+_0x4a2ff2+_0x11bb('0xad'),_0x9fa895),this[_0x11bb('0x68')]==_0x47c217&&_0x791f13[_0x11bb('0xdc')][_0x11bb('0x4f')](_0x11bb('0x3'),_0x9fa895),_0x791f13[_0x11bb('0xdc')][_0x11bb('0x3f')](_0x1572a1,_0x9fa895),_0x791f13[_0x11bb('0x39')][_0x11bb('0x110')](_0x9fa895,_0x2cfb2b['markerName']);}},{'priority':_0x11bb('0xf2')}),this[_0x11bb('0x9a')][_0x11bb('0x7b')]['document']['on'](_0x11bb('0x37'),()=>{this[_0x11bb('0x9a')]['editing'][_0x11bb('0x7e')][_0x11bb('0x37')](_0x552c51=>{for(const _0x56e1f8 of this['editor']['model'][_0x11bb('0x67')][_0x11bb('0x5b')]()){const _0x4ac659=this['editor']['model'][_0x11bb('0x67')][_0x11bb('0x6e')](_0x56e1f8),_0x3b8bc0=this[_0x11bb('0x9a')]['editing'][_0x11bb('0x7e')][_0x11bb('0x67')][_0x11bb('0x6e')](_0x56e1f8);if(_0x3b8bc0){const _0xc64a93=_0x4ac659['getAttribute'](_0x11bb('0xd4'));if(_0x552c51[_0x11bb('0x2a')](_0x11bb('0xf1'),_0x3b8bc0),_0x552c51[_0x11bb('0x11')](_0x11bb('0x10f'),_0x3b8bc0),_0x552c51[_0x11bb('0x11')](_0x11bb('0x52'),_0x3b8bc0),_0x552c51[_0x11bb('0x11')](_0x11bb('0x99'),_0x3b8bc0),_0xc64a93){const _0x1b5294=this['_getChangeFromId'](_0xc64a93);if(!_0x1b5294)return null;_0x552c51['setAttribute'](_0x11bb('0xf1'),_0xc64a93,_0x3b8bc0),_0x552c51[_0x11bb('0x4f')](_0x11bb('0x42')+_0x1b5294[_0x11bb('0x5d')],_0x3b8bc0),this[_0x11bb('0x68')]==_0x1b5294&&_0x552c51[_0x11bb('0x4f')]('ck-revision-history-root--active',_0x3b8bc0);}}}});}),this[_0x11bb('0x9a')][_0x11bb('0x116')]['for']('upcast')['dataToMarker']({'view':_0x11bb('0xe7'),'model':_0x22fe23=>'revision-comment:'+_0x22fe23,'converterPriority':_0x11bb('0x5')}),this[_0x11bb('0x9a')][_0x11bb('0x116')][_0x11bb('0x11b')](_0x11bb('0xc'))[_0x11bb('0x28')]({'view':_0x11bb('0xd8'),'model':_0x2d7677=>'revision-suggestion:'+_0x2d7677,'converterPriority':_0x11bb('0x5')}),this[_0x11bb('0x9a')][_0x11bb('0x116')][_0x11bb('0x11b')](_0x11bb('0x79'))[_0x11bb('0x27')]({'model':_0x11bb('0x106'),'view':_0x474006=>({'name':_0x11bb('0x21')+_0x474006,'group':_0x11bb('0x106')}),'converterPriority':_0x11bb('0x5')}),this[_0x11bb('0x9a')][_0x11bb('0x116')][_0x11bb('0x11b')](_0x11bb('0x88'))[_0x11bb('0xba')]({'model':_0x11bb('0x106'),'view':_0x59582b=>{const _0x41380d=_0x59582b[_0x11bb('0xef')]['split'](':')[0x1];return _0x11bb('0xb5')!=_0x41380d&&_0x11bb('0x8')!=_0x41380d?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x41380d]};}}),this[_0x11bb('0x9a')]['editing'][_0x11bb('0xa0')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x11bb('0x9a')],_0x11bb('0x15')),{'priority':_0x11bb('0xf2')}),this[_0x11bb('0x9a')][_0x11bb('0x6d')]['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',et(this[_0x11bb('0x9a')],_0x11bb('0x56')),{'priority':_0x11bb('0xf2')}),this[_0x11bb('0x9a')][_0x11bb('0x6d')]['downcastDispatcher']['on'](_0x11bb('0x90'),(_0x3a57a8,_0x26d30f,_0x4317ec)=>{const _0x2f3296=_0x4317ec[_0x11bb('0x39')]['markerNameToElements'](_0x26d30f['markerName']);if(_0x2f3296)for(const _0x355d5f of _0x2f3296)_0x355d5f['is'](_0x11bb('0x43'))&&(_0x4317ec['mapper'][_0x11bb('0xb1')](_0x355d5f,_0x26d30f['markerName']),_0x4317ec['writer'][_0x11bb('0x3e')](_0x355d5f));},{'priority':_0x11bb('0xf2')});}[_0x11bb('0x2f')](_0x43c86b){return this[_0x11bb('0xd3')][_0x11bb('0x118')](_0x43c86b);}['_getViewForChange'](_0x13b1fb){return this[_0x11bb('0xd5')]&&this[_0x11bb('0xd5')][_0x11bb('0x75')](),this['_changeView']=new _0x3a3d20(this[_0x11bb('0x9a')][_0x11bb('0x30')],_0x13b1fb),this[_0x11bb('0xd5')];}[_0x11bb('0x17')](){this['editor'][_0x11bb('0x7b')][_0x11bb('0x67')][_0x11bb('0x11a')][_0x11bb('0x49')](_0x11bb('0x81')),this['on'](_0x11bb('0xc2'),(_0x202610,_0x406384,_0x24b1a7,_0x46237a)=>{_0x46237a&&this['_balloon'][_0x11bb('0x3e')](_0x46237a),_0x24b1a7&&(this['_balloon']['add']({'view':_0x24b1a7,'stackId':_0x11bb('0x33'),'position':{'target':()=>{const _0x5dd28b=this[_0x11bb('0x9a')][_0x11bb('0x6d')],_0x46f8aa=this[_0x11bb('0x2f')](_0x24b1a7[_0x11bb('0xe3')]);let _0x4d5e21;if(_0x46f8aa[_0x11bb('0xce')][_0x11bb('0xfe')]){const _0x1f5287=_0x5dd28b[_0x11bb('0x7e')]['getDomRoot'](_0x46f8aa[_0x11bb('0x3c')]);_0x4d5e21=Array[_0x11bb('0xf3')](_0x1f5287[_0x11bb('0x4a')]());}else{const _0xbcb6ad=this[_0x11bb('0x9a')][_0x11bb('0x7b')]['markers'][_0x11bb('0x118')](_0x11bb('0xb3')+_0x24b1a7['changeId']);_0x4d5e21=Array[_0x11bb('0xf3')](_0x5dd28b['mapper']['markerNameToElements'](_0xbcb6ad[_0x11bb('0x11c')]))['map'](_0x2a6659=>_0x5dd28b[_0x11bb('0x7e')]['domConverter'][_0x11bb('0x22')](_0x2a6659))[_0x11bb('0x78')](_0x48eede=>Array[_0x11bb('0xf3')](_0x48eede[_0x11bb('0x4a')]()))[_0x11bb('0xb6')]();}if(!this[_0x11bb('0x97')])return _0x4d5e21[0x0];return _0x4d5e21[_0x11bb('0xf9')](_0x46e74e=>_0x46e74e[_0x11bb('0x1d')]-0x3<=this[_0x11bb('0x97')]['y']&&_0x46e74e[_0x11bb('0x104')]+0x3>=this['_activeViewTarget']['y']&&_0x46e74e[_0x11bb('0xa9')]-0x3<=this[_0x11bb('0x97')]['x']&&_0x46e74e[_0x11bb('0xe')]+0x3>=this[_0x11bb('0x97')]['x'])||_0x4d5e21[0x0];}}}),this['_balloon'][_0x11bb('0x8a')](_0x11bb('0x33')));}),this['on']('change:activeChange',(_0x2747cb,_0x3ede09,_0x483348,_0x3ded7a)=>{this['activeView']=_0x483348?this[_0x11bb('0x63')](_0x483348):null,this[_0x11bb('0x9a')][_0x11bb('0x7b')]['change'](()=>{const _0x44b4e9=this[_0x11bb('0x9a')][_0x11bb('0x6d')];_0x3ded7a&&(_0x3ded7a[_0x11bb('0xce')][_0x11bb('0xfe')]?_0x44b4e9[_0x11bb('0x7e')]['change'](_0x3a6a32=>{_0x3a6a32[_0x11bb('0x11')](_0x11bb('0x99'),_0x44b4e9[_0x11bb('0x7e')][_0x11bb('0x67')]['getRoot'](_0x3ded7a[_0x11bb('0x3c')]));}):_0x44b4e9[_0x11bb('0xb4')](_0x11bb('0xb3')+_0x3ded7a['id'])),_0x483348&&(_0x483348[_0x11bb('0xce')]['isOnRoot']?_0x44b4e9[_0x11bb('0x7e')][_0x11bb('0x37')](_0x595048=>{_0x595048['addClass']('ck-revision-history-root--active',_0x44b4e9[_0x11bb('0x7e')]['document'][_0x11bb('0x6e')](_0x483348[_0x11bb('0x3c')]));}):_0x44b4e9[_0x11bb('0xb4')](_0x11bb('0xb3')+_0x483348['id']));});}),this[_0x11bb('0x5a')](this[_0x11bb('0x9a')][_0x11bb('0x6d')][_0x11bb('0x7e')][_0x11bb('0x67')],_0x11bb('0x100'),(_0x10edaa,_0x5d3498)=>{if(this[_0x11bb('0x68')])return;const _0x56be1a=this[_0x11bb('0xc8')](_0x5d3498[_0x11bb('0xe0')]),_0x35648c=this[_0x11bb('0xd3')][_0x11bb('0x118')](_0x56be1a);_0x35648c?(this[_0x11bb('0x97')]={'x':_0x5d3498[_0x11bb('0x85')]['x'],'y':_0x5d3498['domEvent']['y']},this[_0x11bb('0x71')]=this['_getViewForChange'](_0x35648c)):(this[_0x11bb('0x97')]=null,this[_0x11bb('0x71')]=null);}),this[_0x11bb('0x5a')](this[_0x11bb('0x9a')][_0x11bb('0x6d')][_0x11bb('0x7e')][_0x11bb('0x67')],_0x11bb('0xb'),(_0x13ea07,_0x3994d7)=>{const _0x3562ec=this[_0x11bb('0xc8')](_0x3994d7[_0x11bb('0xe0')]),_0x4fb2ec=this[_0x11bb('0xd3')][_0x11bb('0x118')](_0x3562ec);_0x4fb2ec?(this[_0x11bb('0x97')]={'x':_0x3994d7[_0x11bb('0x85')]['x'],'y':_0x3994d7['domEvent']['y']},_0x4fb2ec===this[_0x11bb('0x68')]?this[_0x11bb('0x20')][_0x11bb('0x70')]():this[_0x11bb('0x68')]=_0x4fb2ec):(this[_0x11bb('0x97')]=null,this[_0x11bb('0x68')]=null);});}[_0x11bb('0xc8')](_0x5e479c){do{const _0x5a0c94=_0x5e479c[_0x11bb('0x6b')]('data-change-id');if(_0x5a0c94)return _0x5a0c94;_0x5e479c=_0x5e479c[_0x11bb('0x83')];}while(_0x5e479c);return null;}[_0x11bb('0x6c')](){this[_0x11bb('0x9a')][_0x11bb('0x7b')][_0x11bb('0x37')](_0x5b2911=>{for(const _0x1b0d40 of this[_0x11bb('0x9a')]['model'][_0x11bb('0x122')])_0x5b2911['removeMarker'](_0x1b0d40);});}}function et(_0x66ba84,_0x52ba18){return(_0x35ff77,_0x1a13dd,_0x17e9a6)=>{if(!_0x17e9a6[_0x11bb('0x9e')][_0x11bb('0xbf')](_0x1a13dd[_0x11bb('0xb9')],_0x35ff77[_0x11bb('0x11c')]))return;const _0x3cda5f=_0x1a13dd[_0x11bb('0xb9')][_0x11bb('0xf8')](),_0x214a3a=_0x1a13dd['markerRange'][_0x11bb('0x46')],_0xa77da7=_0x66ba84[_0x11bb('0x7b')][_0x11bb('0xfb')];let _0x1aacae=null,_0x5b53ca=null,_0x415e53=!0x1,_0x3bee14=!0x1;for(const _0x332c1a of _0x3cda5f){const _0x29e5da=_0x332c1a[_0x11bb('0x9b')];_0x415e53=_0x415e53||_0xa77da7[_0x11bb('0xa8')](_0x29e5da);const _0x1b45f0=_0x17e9a6[_0x11bb('0x39')][_0x11bb('0xbd')](_0x29e5da);if(_0x1b45f0&&_0x1b45f0[_0x11bb('0xe9')]('addHighlight'))return;_0x11bb('0xa2')==_0x332c1a['type']&&(_0xa77da7[_0x11bb('0x8f')](_0x29e5da)&&!_0xa77da7[_0x11bb('0x31')](_0x29e5da)&&(_0x29e5da[_0x11bb('0x9f')]||_0x214a3a['isAtEnd']?_0x1aacae&&_0x1aacae[_0x11bb('0x83')]==_0x29e5da||(_0x1aacae=_0x29e5da,_0x5c0bac(_0x332c1a['previousPosition']),_0x3bee14=!0x0):_0x5b53ca=_0x5b53ca||_0x332c1a['previousPosition']));}function _0x5c0bac(_0x1fd0b6){const _0x1be196=_0x17e9a6[_0x11bb('0x39')][_0x11bb('0x89')](_0x1fd0b6),_0x55482e=_0x17e9a6[_0x11bb('0xdc')]['createUIElement'](_0x11bb('0x35'),{'class':_0x11bb('0x16')+_0x52ba18});_0x17e9a6[_0x11bb('0xdc')]['insert'](_0x1be196,_0x55482e),_0x17e9a6[_0x11bb('0x39')]['bindElementToMarker'](_0x55482e,_0x1a13dd['markerName']);}_0x415e53||_0x3bee14||!_0x5b53ca||_0x5c0bac(_0x5b53ca);};}export class RestoreRevisionCommand extends _0x5a372b{constructor(_0x1b21fb){super(_0x1b21fb);const _0xa92c22=_0x1b21fb['plugins']['get'](d);this[_0x11bb('0x1')]=!0x1,this[_0x11bb('0x5a')](_0xa92c22,_0x11bb('0x113'),()=>this[_0x11bb('0x111')]()),this[_0x11bb('0x5a')](_0xa92c22,'change:isEnabled',()=>this[_0x11bb('0x111')]());}['execute'](){const _0x40c10d=this[_0x11bb('0x9a')],_0x2508a4=_0x40c10d[_0x11bb('0x96')][_0x11bb('0x118')](d),_0x1f2873=_0x2508a4[_0x11bb('0xab')]?_0x2508a4['diff']['newRevisionId']:null;_0x40c10d[_0x11bb('0xeb')][_0x11bb('0x118')]('revisionHistory')[_0x11bb('0xc4')](_0x1f2873);}[_0x11bb('0x111')](){const {isReady:_0x18a6a6,isEnabled:_0x3aa8c1}=this['editor'][_0x11bb('0x96')][_0x11bb('0x118')](d);this['isEnabled']=_0x18a6a6&&_0x3aa8c1;}}export class ShowChangeCommand extends _0x5a372b{constructor(_0x3aa45a,{direction:_0x42eea8}){super(_0x3aa45a);const _0x5025b1=_0x3aa45a[_0x11bb('0x96')][_0x11bb('0x118')](d);this['affectsData']=!0x1,this[_0x11bb('0xe5')]=_0x11bb('0x44')===_0x42eea8?0x1:-0x1,this[_0x11bb('0x5a')](_0x5025b1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5025b1,_0x11bb('0xa1'),()=>this[_0x11bb('0x111')]()),this[_0x11bb('0x5a')](_0x5025b1,'change:activeChange',()=>this['refresh']());}[_0x11bb('0x18')](){const _0x35e4e5=this[_0x11bb('0x9a')],_0x125960=_0x35e4e5['plugins'][_0x11bb('0x118')](d),{isNavigationMode:_0x30e1dd,currentChangeNumber:_0x5155d8}=_0x125960;let _0xca3723;if(_0x125960[_0x11bb('0x68')]=_0x30e1dd?_0x125960[_0x11bb('0x6f')][_0x11bb('0x109')]['get'](_0x5155d8+this[_0x11bb('0xe5')]):_0x125960['diff'][_0x11bb('0x109')][_0x11bb('0x57')],_0x125960[_0x11bb('0x68')][_0x11bb('0xce')][_0x11bb('0xfe')])_0xca3723=_0x35e4e5[_0x11bb('0x6d')]['view']['getDomRoot'](_0x125960[_0x11bb('0x68')]['rootName']);else{const _0x3a519f=_0x35e4e5['model']['markers'][_0x11bb('0x118')](_0x11bb('0xb3')+_0x125960['activeChange']['id']);_0xca3723=_0x30014c(_0x35e4e5[_0x11bb('0x6d')],_0x3a519f);}_0x5ecb13({'target':_0xca3723,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x44cd6c,currentChangeNumber:_0x695e9d,numberOfChanges:_0x21c7f3,isReady:_0x3e9a11,isEnabled:_0xb8da63}=this[_0x11bb('0x9a')]['plugins'][_0x11bb('0x118')](d);this[_0x11bb('0x84')]=!!(_0xb8da63&&_0x3e9a11&&_0x21c7f3)&&(!_0x44cd6c||(0x1===this[_0x11bb('0xe5')]?_0x695e9d<_0x21c7f3-0x1:_0x695e9d>0x0));}}
23
+ const _0x14d3=['ck-revision-history-root-','comment','marked','isBlock','markerNameToElements','editingDowncast','ck-suggestion-marker--active','view','createRange','endIndex','consumable','_cleanUp','consume','_initInteractions','_changeIdToChange','isEqual','getAttribute','createPositionBefore','side','sort','catch','flat','collaboration.channelId','_fixObsoleteTags','first','activeChange','attributesAfter','showNextChange','isRemoved','get','_joinTapes','shift','isAfter','getRevision','forward','removeClass','index','forceDisabled','getCustomProperty','ck-revision-history-root-remove','useFillerType','filter','markerRange','indexOf','createRevision','adapter','highest','createRangeIn','splice','target','ck-suggestion-marker-','data','_findChangeIdFromDomTarget','_setDistance','insertion','createPositionFromPath','upcast','isIncorrect','nodeAfter','length','refresh','vid','addMarker:revision','softBreak','vid_start','isAtEnd','_sortAndFilterDiffChanges','modelRange','commands','markers','enqueueChange','repository','toData','clear','change:numberOfChanges','add','_revisions','markerToData','ck-revision-history-root-add','isRemoveSuggestion','oldRevisionId','roots','range','revision-suggestion','_makeModelFromTape','toViewPosition','maxOffset','_makeModelFromViewString','model','getRevisionRootsAttributes','isOnRoot','element:pre','getClientRects','previousPosition','isAtStart','config','set','revision-start','execute','parse','dataDowncast','getAttributes','code','addRoot','bottom','slice','attributesBefore','_getChangeFromId','_cleanMarkers','pairId','uiElement','_markInsertions','createAttributeElement','ck-suggestion-marker','ck-suggestion-preview-marker-','isBefore','concat','mouseover','map','removeMarker','revisionHistory','markersEnd','removeMarker:revision-suggestion','newRevisionId','toViewRange','_update','schema','RevisionViewer','getRevisionData','getWalker','merge','_removeRevisionMarkers','keys','rootName','data-change-id','has','elementStart','unbindElementFromMarkerName','item','push','_removeUnsupportedChanges','diff','_appendChild','setAttribute','bind','viewItem','vid_end','revision','getRootNames','elementEnd','attributes','mapper','loadRevisionData','all','_removeMissingPairs','_threeWayMerge','next','startsWith','_markMismatchedRemovedTags','WidgetToolbarRepository','userId','numberOfChanges','editor','error','hasClass','element','findIndex','showPreviousChange','isLimit','POSITIVE_INFINITY','getRoot','enableReadOnlyMode','_getViewForChange','revision:','hasAttribute','activeView','changes','_markMarkers','revision-comment:','isObject','isCollapsed','reconvertMarker','children','suggestion','change:isEnabled','elementToAttribute','default','end','compare','nextPosition','change:isReady','showStack','_step','level','abs','_getRevisionsRange','toViewElement','requires','domEvent','editing','domConverter','revisionHistoryLabel','test','_markSuggestions','type','remove','start','text','listenTo','init','data-revision-','writer','ck-suggestion-marker-merge','getIndex','span','RevisionsRepository','suggestion:','unshift','removeMarker:revision','affectsData','done','_activeViewTarget','restoreRevisionCallback','startIndex','stop','isAttached','isAdded','addHighlight','conversion','markerToHighlight','processor','ck-editor__editable__overlay','left','pluginName','detachRoot','high','attribute:vid','revisionHistoryAttachChange','_getViewObj','locale','changeId','nextSibling','addRevisionData','attachChange','getDomRoot','isEnabled','dataToMarker','_changeView','addClass','from','diffData','_setChanges','_processTape','resolve','markersStart','split','selection','distance','change:activeChange','plugins','_data','object','ck-suggestion-preview-marker','parent','delete','change','-new','destroy','isSuggestion','_balloon','downcastDispatcher','deletion','includes','mousedown','createUIElement','for','_refreshStartEndIndex','isAddSuggestion','isContent','name','document','_makeTape','return','insert','getChild','isReady','revision-viewer','string','ck-suggestion-marker-split','deletions','bindElementToMarker','ck-revision-history-root--active','observeMarkers','insertions','forEach','pop','markerName'];(function(_0x97f971,_0x14d391){const _0x192555=function(_0x5950e2){while(--_0x5950e2){_0x97f971['push'](_0x97f971['shift']());}};_0x192555(++_0x14d391);}(_0x14d3,0x8b));const _0x1925=function(_0x97f971,_0x14d391){_0x97f971=_0x97f971-0x0;let _0x192555=_0x14d3[_0x97f971];return _0x192555;};import{Plugin as _0x4017cf,Command as _0x2b2784}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x5dd962}from'ckeditor5/src/utils';import{ContextualBalloon as _0x3615f4}from'ckeditor5/src/ui';import{DocumentFragment as _0x12449a,Element as _0x1f7d70,Text as _0x2e0e28,ViewDocumentFragment as _0x439cbb,ViewText as _0x1ce45d,ViewElement as _0x5b2eb0,ViewContainerElement as _0xe9c6bb,ViewAttributeElement as _0x2793fa,ViewEmptyElement as _0xc2f393,ViewRawElement as _0x47f86e,ViewUIElement as _0x22f86e}from'ckeditor5/src/engine';import{Users as _0x17324e,getMarkerDomElement as _0x2309da}from'ckeditor5-collaboration/src/collaboration-core';import _0x16f3cb from'./ui/revisionviewer/changedetailsview';import _0x266e32 from'./revisionsrepository';import _0x4d6880 from'./changeitem';import{default as _0x122eb2}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4ae206}from'lodash-es';const tt={'c':_0xe9c6bb,'a':_0x2793fa,'e':_0xc2f393,'r':_0x47f86e,'u':_0x22f86e};export default class d extends _0x4017cf{static get[_0x1925('0x5e')](){return'RevisionViewer';}static get[_0x1925('0x3a')](){return[_0x17324e,_0x3615f4,_0x266e32];}constructor(_0xf384b1){super(_0xf384b1),this['repository']=this[_0x1925('0x17')]['plugins']['get'](_0x1925('0x4c')),this[_0x1925('0xfe')]('activeChange',null),this[_0x1925('0xfe')](_0x1925('0x24'),null),this[_0x1925('0x52')]=null,this[_0x1925('0xfe')]('diff',null),this[_0x1925('0xfe')]('isReady',!0x1),this[_0x1925('0xfe')](_0x1925('0x6a'),!0x0),this['on'](_0x1925('0x2d'),(_0x5428a9,_0x6e4eac,_0x3330a1)=>{this[_0x1925('0xb7')]=null,this['activeView']=null,this[_0x1925('0x17')][_0x1925('0x3c')][_0x1925('0xa5')][_0x1925('0x7e')](_0x168e4c=>{for(const _0x3e1d97 of this['editor'][_0x1925('0x3c')][_0x1925('0xa5')][_0x1925('0x8d')][_0x1925('0xef')])_0x3330a1?_0x168e4c[_0x1925('0xc1')]('ck-editor__editable__overlay',_0x3e1d97):_0x168e4c[_0x1925('0x6d')](_0x1925('0x5c'),_0x3e1d97);});}),this[_0x1925('0x5')]('isNavigationMode')['to'](this,'activeChange',_0x305791=>null!==_0x305791),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2130f4,_0x3d87a3,_0x2df9c9)=>_0x2130f4&&_0x2df9c9?_0x3d87a3[_0x1925('0x25')][_0x1925('0x4a')](_0x2df9c9):0x0),this['bind'](_0x1925('0x16'))['to'](this,_0x1925('0x92'),this,_0x1925('0x2'),(_0x368b34,_0x46729d)=>_0x368b34?_0x46729d['changes'][_0x1925('0xd9')]:0x0),this[_0x1925('0x6c')]=null,this[_0x1925('0xac')]=new Map(),this[_0x1925('0xcb')]=null,this[_0x1925('0x82')]=this[_0x1925('0x17')][_0x1925('0x78')][_0x1925('0xbb')](_0x3615f4);}[_0x1925('0x46')](){const _0x3be827=this['editor'],_0x438883=new ShowChangeCommand(_0x3be827,{'direction':'backward'}),_0x2295ab=new ShowChangeCommand(_0x3be827,{'direction':_0x1925('0xc0')});(_0x3be827[_0x1925('0xe2')]['add'](_0x1925('0x1c'),_0x438883),_0x3be827['commands'][_0x1925('0xe9')](_0x1925('0xb9'),_0x2295ab),_0x3be827[_0x1925('0xe2')][_0x1925('0xe9')]('restoreRevision',new RestoreRevisionCommand(_0x3be827)),this['on'](_0x1925('0xe8'),()=>{_0x438883[_0x1925('0xda')](),_0x2295ab[_0x1925('0xda')]();}),this['_setConversion'](),this[_0x1925('0xab')](),_0x3be827[_0x1925('0x20')]('revision-viewer'),_0x3be827[_0x1925('0x78')][_0x1925('0x125')](_0x1925('0x14')))&&_0x3be827[_0x1925('0x78')][_0x1925('0xbb')](_0x1925('0x14'))[_0x1925('0xc3')](_0x1925('0x93'));}async[_0x1925('0x11e')](_0xd7f44){await this['loadRevisionData'](_0xd7f44);const _0x449ca1={};for(const _0x14dd5a in _0xd7f44[_0x1925('0x6f')]){if(_0xd7f44[_0x1925('0x6f')][_0x14dd5a][_0x1925('0x68')]&&!_0xd7f44[_0x1925('0x6f')][_0x14dd5a][_0x1925('0x68')][_0x1925('0x56')])continue;const _0x291e3e=this[_0x1925('0x121')](JSON['parse'](_0xd7f44[_0x1925('0x6f')][_0x14dd5a][_0x1925('0x9a')])),_0x27da06=this['editor'][_0x1925('0x3c')][_0x1925('0xa5')][_0x1925('0x8d')],_0x3ac896=new _0x439cbb(_0x27da06,_0x291e3e[_0x1925('0x114')](_0x4bfdd8=>this[_0x1925('0x63')](_0x4bfdd8)));this['editor'][_0x1925('0xd1')][_0x1925('0x5b')]['useFillerType'](_0x1925('0xa0')),_0x449ca1[_0x14dd5a]=this['editor']['data']['processor'][_0x1925('0xe6')](_0x3ac896),this[_0x1925('0x17')]['data'][_0x1925('0x5b')][_0x1925('0xc6')](_0x1925('0x2f'));}return _0x449ca1;}async[_0x1925('0xf7')](_0x4cfaef){await this[_0x1925('0xd')](_0x4cfaef);const _0x38c2f8={};for(const _0x1050ad in _0x4cfaef[_0x1925('0x6f')])_0x4cfaef[_0x1925('0x6f')][_0x1050ad]['attachChange']&&!_0x4cfaef[_0x1925('0x6f')][_0x1050ad][_0x1925('0x68')][_0x1925('0x56')]||(_0x38c2f8[_0x1050ad]=_0x4cfaef['diffData'][_0x1050ad][_0x1925('0xb8')]||{});return _0x38c2f8;}['_removeRevisionMarkers'](_0x458bd4){return(_0x458bd4=_0x458bd4[_0x1925('0xc7')](_0x558fe4=>!_0x558fe4[_0x1925('0x8c')]||_0x1925('0xff')!==_0x558fe4[_0x1925('0x8c')]&&'revision-end'!==_0x558fe4[_0x1925('0x8c')]))[_0x1925('0x9b')](_0x2e4d6a=>{_0x1925('0x94')!=typeof _0x2e4d6a&&(_0x2e4d6a[_0x1925('0x2b')]=this['_removeRevisionMarkers'](_0x2e4d6a['children']),_0x2e4d6a[_0x1925('0xb')]=_0x2e4d6a[_0x1925('0xb')][_0x1925('0xc7')](_0x5d96c2=>!_0x5d96c2[0x0][_0x1925('0x12')](_0x1925('0x47'))));}),_0x458bd4;}async[_0x1925('0x31')](_0x1b6695,_0x5946b8,_0x1814f9=!0x1){if(!this['isEnabled'])return;const _0x41c3dc=this[_0x1925('0x2')],_0x20eb75=this[_0x1925('0xe5')],_0x5350c1=_0x1925('0x94')==typeof _0x1b6695?_0x20eb75[_0x1925('0xbf')](_0x1b6695):_0x1b6695,_0x478118=_0x1925('0x94')==typeof _0x5946b8?_0x20eb75['getRevision'](_0x5946b8):_0x5946b8,_0x4447eb=_0x5350c1['id'],_0x3952d5=_0x478118?_0x478118['id']:null;if(!_0x1814f9&&this[_0x1925('0x2')]&&this[_0x1925('0x2')]['newRevisionId']===_0x4447eb&&this[_0x1925('0x2')][_0x1925('0xee')]===_0x3952d5)return Promise['resolve']();this[_0x1925('0x92')]=!0x1,this[_0x1925('0x24')]=null,this[_0x1925('0xb7')]=null,this[_0x1925('0x2')]=new _0x122eb2(_0x4447eb,_0x3952d5);const _0x328c67=this[_0x1925('0x38')](_0x5350c1,_0x478118,!0x0)[_0x1925('0x114')](_0x4f454b=>this['loadRevisionData'](_0x4f454b));return _0x328c67['push'](new Promise(_0x5213fa=>{setTimeout(_0x5213fa,0x14);})),Promise[_0x1925('0xe')](_0x328c67)['then'](()=>{if(!this[_0x1925('0x6a')])return;this[_0x1925('0xa9')]();const _0x26101a=this['_getDiff'](_0x4447eb,_0x3952d5);for(const _0x287dbc of _0x26101a[_0x1925('0x25')])this[_0x1925('0xac')][_0x1925('0xfe')](_0x287dbc['id'],_0x287dbc);this[_0x1925('0x17')][_0x1925('0xf6')][_0x1925('0xe4')]({'isUndoable':!0x1},_0x2e6068=>{for(const _0x1138c6 of this['editor'][_0x1925('0xf6')][_0x1925('0x8d')][_0x1925('0x9')]())_0x2e6068[_0x1925('0x5f')](_0x1138c6);for(const _0x3c0265 of Object[_0x1925('0x122')](_0x26101a[_0x1925('0xf6')])){const _0x4e5291=_0x2e6068[_0x1925('0x105')](_0x3c0265);for(const _0x29e823 of Object['keys'](_0x26101a[_0x1925('0xb')][_0x3c0265]))_0x2e6068[_0x1925('0x4')](_0x29e823,_0x26101a[_0x1925('0xb')][_0x3c0265][_0x29e823],_0x4e5291);_0x2e6068[_0x1925('0x90')](_0x26101a[_0x1925('0xf6')][_0x3c0265],_0x4e5291,0x0);}}),this[_0x1925('0x2')][_0x1925('0x70')](this['_sortAndFilterDiffChanges'](_0x26101a[_0x1925('0x25')])),this[_0x1925('0x92')]=!0x0;})[_0x1925('0xb2')](_0x10fb4c=>{console[_0x1925('0x18')](_0x10fb4c),this[_0x1925('0xa9')](),_0x41c3dc&&(this[_0x1925('0x2')]=_0x41c3dc),this[_0x1925('0x92')]=!0x0;});}[_0x1925('0x67')](_0x1676a1,_0x2d4390){const _0x140e47=this[_0x1925('0xe5')][_0x1925('0xca')](_0x1676a1);return _0x140e47['on'](_0x1925('0x11b'),(_0x13cb22,_0x12d4c3,_0x221973)=>_0x2d4390(_0x12d4c3,_0x221973,_0x140e47)),this[_0x1925('0xe5')]['addRevision'](_0x140e47),_0x140e47;}[_0x1925('0xd')](_0x576ada){if(!_0x576ada||_0x576ada[_0x1925('0x6f')])return Promise[_0x1925('0x72')]();{const _0x2fb8cc=this[_0x1925('0x17')][_0x1925('0xfd')][_0x1925('0xbb')](_0x1925('0xb4'));return this[_0x1925('0xcb')][_0x1925('0xbf')]({'channelId':_0x2fb8cc,'revisionId':_0x576ada['id']})['then'](_0x4b95c8=>{_0x576ada[_0x1925('0x11b')]({'diffData':_0x4b95c8['diffData']},!0x0);});}}[_0x1925('0xa9')](){this['activeChange']=null,this[_0x1925('0x10a')](),this[_0x1925('0x6c')]&&this[_0x1925('0x6c')][_0x1925('0x80')](),this[_0x1925('0x6c')]=null,this[_0x1925('0xac')][_0x1925('0xe7')](),this[_0x1925('0x17')]['model']['enqueueChange']({'isUndoable':!0x1},_0x484055=>{for(const _0x8ae5a7 of this['editor'][_0x1925('0xf6')][_0x1925('0x8d')][_0x1925('0x9')]())_0x484055[_0x1925('0x5f')](_0x8ae5a7);});}[_0x1925('0xe0')](_0x194dae){const _0x4d44cf=[],_0x28ca57=new Map();for(const _0x207233 of this[_0x1925('0x17')][_0x1925('0xf6')]['document'][_0x1925('0x9')]()){const _0x18b109=this['editor']['editing'][_0x1925('0xa5')][_0x1925('0x69')](_0x207233);if(!_0x18b109)continue;const _0x51e51e=_0x18b109[_0x1925('0xfa')]()[_0x1925('0x128')](0x0);_0x51e51e&&(_0x4d44cf[_0x1925('0x0')](_0x207233),_0x28ca57[_0x1925('0xfe')](_0x207233,_0x51e51e));}return _0x4d44cf[_0x1925('0xb1')]((_0x13be6e,_0x86d9a4)=>{const _0x1789c7=_0x28ca57[_0x1925('0xbb')](_0x13be6e),_0x218700=_0x28ca57[_0x1925('0xbb')](_0x86d9a4);return _0x1789c7['y']-_0x218700['y']||_0x1789c7['x']-_0x218700['x'];}),(_0x194dae=_0x194dae['filter'](_0x2cab8d=>_0x4d44cf[_0x1925('0x85')](_0x2cab8d[_0x1925('0x123')])))[_0x1925('0xb1')]((_0x4023c6,_0x3c9b72)=>_0x4d44cf[_0x1925('0xc9')](_0x4023c6['rootName'])-_0x4d44cf[_0x1925('0xc9')](_0x3c9b72[_0x1925('0x123')])),_0x194dae;}[_0x1925('0x8e')](_0xbe0add){const _0x2730d2=Array[_0x1925('0x6e')](_0xbe0add[_0x1925('0xe3')])[_0x1925('0xc7')](([_0x4ffe7b,_0x48a1f7])=>_0x4ffe7b['startsWith']('revision:')&&!_0x48a1f7[_0x1925('0x29')]),_0x5d7822=Array[_0x1925('0x6e')](this[_0x1925('0x17')][_0x1925('0xf6')][_0x1925('0xcd')](_0xbe0add)[_0x1925('0x11f')]({'singleCharacters':!0x0}));if(0x0!=_0x2730d2[_0x1925('0xd9')])for(const _0x17cbc6 of _0x5d7822){const [_0x310eaa,_0x261720]=_0x2730d2[0x0],[,_0x3d5e45,_0x2d2d5a]=_0x310eaa['split'](':');if(_0x261720[_0x1925('0x30')]['isEqual'](_0x17cbc6[_0x1925('0x32')])&&_0x2730d2['shift'](),(_0x17cbc6[_0x1925('0xfb')][_0x1925('0xad')](_0x261720[_0x1925('0x43')])||_0x17cbc6[_0x1925('0xfb')][_0x1925('0xbe')](_0x261720[_0x1925('0x43')]))&&(_0x1925('0xd4')==_0x3d5e45?_0x17cbc6['isAdded']={'userId':_0x2d2d5a}:_0x1925('0x84')==_0x3d5e45&&(_0x17cbc6[_0x1925('0xba')]={'userId':_0x2d2d5a})),0x0==_0x2730d2[_0x1925('0xd9')])break;}return _0x5d7822;}['_refreshStartEndIndex'](_0x164607){const _0x1e5cb4=new Map();for(let _0x4d1ea9=0x0;_0x4d1ea9<_0x164607[_0x1925('0xd9')];_0x4d1ea9++)_0x1925('0x44')===_0x164607[_0x4d1ea9]['type']?(_0x164607[_0x4d1ea9][_0x1925('0x128')][_0x1925('0x54')]=_0x4d1ea9,_0x164607[_0x4d1ea9][_0x1925('0x128')][_0x1925('0xa7')]=_0x4d1ea9):(_0x1925('0x126')===_0x164607[_0x4d1ea9][_0x1925('0x41')]?_0x164607[_0x4d1ea9]['item'][_0x1925('0x54')]=_0x4d1ea9:_0x1925('0xa')===_0x164607[_0x4d1ea9][_0x1925('0x41')]&&(_0x164607[_0x4d1ea9][_0x1925('0x128')]['endIndex']=_0x4d1ea9),_0x1e5cb4[_0x1925('0xfe')](_0x164607[_0x4d1ea9]['id'],_0x4d1ea9));for(const _0x31c721 of _0x1e5cb4['values']())'elementStart'===_0x164607[_0x31c721]['type']?_0x164607[_0x31c721]['item'][_0x1925('0xa7')]=_0x1e5cb4[_0x1925('0xbb')](_0x164607[_0x31c721][_0x1925('0x10b')]):_0x1925('0xa')===_0x164607[_0x31c721]['type']&&(_0x164607[_0x31c721][_0x1925('0x128')][_0x1925('0x54')]=_0x1e5cb4['get'](_0x164607[_0x31c721][_0x1925('0x10b')]));}['_processTape'](_0x6c430f){for(let _0x46fb0d=0x0;_0x46fb0d<_0x6c430f['length'];_0x46fb0d++){if(_0x1925('0x126')===_0x6c430f[_0x46fb0d][_0x1925('0x41')])_0x6c430f[_0x46fb0d][_0x1925('0x128')][_0x1925('0x54')]=_0x46fb0d;else{if(_0x1925('0xa')===_0x6c430f[_0x46fb0d][_0x1925('0x41')]){_0x6c430f[_0x46fb0d][_0x1925('0x128')][_0x1925('0xa7')]=_0x46fb0d;const _0x2f6d96=_0x6c430f[_0x46fb0d][_0x1925('0x128')][_0x1925('0x54')];_0x6c430f[_0x2f6d96][_0x1925('0x10b')]=_0x6c430f[_0x46fb0d]['id'],_0x6c430f[_0x46fb0d]['pairId']=_0x6c430f[_0x2f6d96]['id'];}else _0x6c430f[_0x46fb0d]['item'][_0x1925('0x54')]=_0x46fb0d,_0x6c430f[_0x46fb0d]['item'][_0x1925('0xa7')]=_0x46fb0d,_0x6c430f[_0x46fb0d][_0x1925('0x10b')]=null;}_0x6c430f[_0x46fb0d][_0x1925('0x73')]||(_0x6c430f[_0x46fb0d][_0x1925('0x73')]=[],_0x6c430f[_0x46fb0d][_0x1925('0x117')]=[]);}}[_0x1925('0x10d')](_0x5f2427,_0x34fcef){const _0x54ee46=_0x5f2427[_0x1925('0xc7')](_0x3f3399=>!_0x3f3399[_0x1925('0x57')]);for(let _0x1ca67b=0x0;_0x1ca67b<_0x34fcef[_0x1925('0xd9')];_0x1ca67b++)_0x34fcef[_0x1ca67b][_0x1925('0x57')]&&(_0x54ee46[_0x1ca67b][_0x1925('0x57')]=_0x34fcef[_0x1ca67b][_0x1925('0x57')]);}[_0x1925('0xf5')](_0x4a14f0){const _0x404a07=JSON[_0x1925('0x101')](_0x4a14f0),_0x19cc6e=this[_0x1925('0x17')]['editing'][_0x1925('0xa5')]['document'],_0x5c4f97=new _0x439cbb(_0x19cc6e,_0x404a07['map'](_0x1427f6=>this[_0x1925('0x63')](_0x1427f6)));return this[_0x1925('0x17')]['data']['toModel'](_0x5c4f97);}[_0x1925('0x63')](_0x29e0de){const _0x5b96cc=this['editor'][_0x1925('0x3c')][_0x1925('0xa5')][_0x1925('0x8d')];if('string'==typeof _0x29e0de)return new _0x1ce45d(_0x5b96cc,_0x29e0de);{const _0x8c4eb=_0x29e0de['children']['map'](_0x3263fa=>this[_0x1925('0x63')](_0x3263fa));return new(tt[_0x29e0de[(_0x1925('0x41'))]]||_0x5b2eb0)(_0x5b96cc,_0x29e0de[_0x1925('0x8c')],_0x29e0de[_0x1925('0xb')],_0x8c4eb);}}['_getDiff'](_0x28f050,_0x3f0c7e=null){const _0x3bded2=this['repository'][_0x1925('0xbf')](_0x28f050),_0x571011=_0x3f0c7e?this[_0x1925('0xe5')][_0x1925('0xbf')](_0x3f0c7e):null,_0x2970d2=this['_getRevisionsRange'](_0x3bded2,_0x571011),_0x16233b=_0x2970d2[_0x2970d2[_0x1925('0xd9')]-0x1],_0x518947=new Map(),_0x3eb10b={'model':{},'attributes':{},'changes':[]},_0x53521d=new Set(),_0x2d5513=new Map();for(let _0x4b280e=_0x2970d2[_0x1925('0xd9')]-0x1;_0x4b280e>=0x0;_0x4b280e--){const _0x1866f1=_0x2970d2[_0x4b280e];for(const _0x12f76c of Object[_0x1925('0x122')](_0x1866f1['diffData']))if(_0x1866f1[_0x1925('0x6f')][_0x12f76c][_0x1925('0x68')]){const _0xb55ec8=_0x1866f1[_0x1925('0x6f')][_0x12f76c][_0x1925('0x68')];_0xb55ec8[_0x1925('0x56')]?(_0x53521d[_0x1925('0xe9')](_0x12f76c),_0x2d5513[_0x1925('0x125')](_0x12f76c)&&_0x2d5513[_0x1925('0xbb')](_0x12f76c)[_0x1925('0x15')]==_0xb55ec8[_0x1925('0x15')]?_0x2d5513[_0x1925('0x7d')](_0x12f76c):_0x2d5513[_0x1925('0xfe')](_0x12f76c,_0xb55ec8)):_0x2d5513['has'](_0x12f76c)?(_0x53521d['delete'](_0x12f76c),_0x2d5513['delete'](_0x12f76c)):(_0x53521d['add'](_0x12f76c),_0x2d5513[_0x1925('0xfe')](_0x12f76c,_0xb55ec8));}else _0x53521d[_0x1925('0xe9')](_0x12f76c);}for(const _0xb1cda9 of _0x53521d){const _0x53a370=_0x2d5513[_0x1925('0x125')](_0xb1cda9)&&!_0x2d5513[_0x1925('0xbb')](_0xb1cda9)['isAttached'];let _0x512d76=_0x53a370?_0x2970d2[_0x1925('0xd9')]-0x1:0x0;const _0x31b1f8=_0x53a370?-0x1:0x1;for(;_0x2970d2[_0x512d76];){const _0x2ed9e8=_0x2970d2[_0x512d76];if(_0x2ed9e8[_0x1925('0x6f')][_0xb1cda9]){const _0x43e11b=_0x53a370?_0x2ed9e8['diffData'][_0xb1cda9][_0x1925('0x108')]:_0x2ed9e8[_0x1925('0x6f')][_0xb1cda9][_0x1925('0xb8')];_0x3eb10b[_0x1925('0xb')][_0xb1cda9]=_0x43e11b?_0x4ae206(_0x43e11b):{};break;}_0x512d76+=_0x31b1f8;}}for(const _0x558a4a of _0x2970d2){_0x558a4a[_0x1925('0xf6')]={};for(const _0x41ba3b of _0x558a4a['authors'])_0x518947[_0x1925('0xfe')](_0x41ba3b['id'],_0x41ba3b);for(const _0x26f77e of _0x53521d){const _0x35742d=_0x558a4a['diffData'][_0x26f77e]?_0x558a4a[_0x1925('0x6f')][_0x26f77e][_0x1925('0x9a')]:'[]',_0x4a774e=_0x558a4a[_0x1925('0x6f')][_0x26f77e]?_0x558a4a[_0x1925('0x6f')][_0x26f77e]['deletions']:'[]';_0x558a4a[_0x1925('0xf6')][_0x26f77e]={'insertions':this[_0x1925('0xf5')](_0x35742d),'deletions':this[_0x1925('0xf5')](_0x4a774e)};}}for(const _0x2047d2 of _0x53521d){let _0x57feca=null,_0x19537f=0x0;const _0x402f4e=new Map(Array['from'](_0x3bded2[_0x1925('0xf6')][_0x2047d2][_0x1925('0x9a')]['markers'])[_0x1925('0xc7')](([_0x5ca598])=>!_0x5ca598[_0x1925('0x12')](_0x1925('0x22'))));let _0x3b12cd=0x0;for(const _0x25f4cd of _0x2970d2){const _0x7c07d0=this[_0x1925('0x8e')](_0x25f4cd[_0x1925('0xf6')][_0x2047d2][_0x1925('0x9a')]);_0x25f4cd==_0x3bded2?(_0x57feca=_0x7c07d0,_0x19537f=_0x57feca[_0x1925('0xd9')],_0x57feca[_0x1925('0x9b')](_0x317198=>{_0x317198['id']=_0x3b12cd++;}),this[_0x1925('0x71')](_0x57feca)):this[_0x1925('0x10d')](_0x57feca,_0x7c07d0);const _0x457af0=_0x57feca[_0x1925('0xc7')](_0x4e5c85=>!_0x4e5c85[_0x1925('0x57')])['map'](_0x4ef361=>_0x4ef361['id']);let _0x1f949a=0x0;const _0x16a9f4=this[_0x1925('0x8e')](_0x25f4cd['model'][_0x2047d2]['deletions']);_0x16a9f4[_0x1925('0x9b')](_0x41a95a=>{_0x41a95a[_0x1925('0xba')]?_0x41a95a['id']=_0x19537f++:_0x41a95a['id']=_0x457af0[_0x1f949a++];}),this[_0x1925('0x71')](_0x16a9f4),this['_setDistance'](_0x57feca,_0x1925('0x57')),this[_0x1925('0xd3')](_0x16a9f4,_0x1925('0xba')),_0x25f4cd==_0x3bded2&&this[_0x1925('0x26')](_0x57feca,_0x402f4e),_0x57feca=this[_0x1925('0xbc')](_0x57feca,_0x16a9f4),this[_0x1925('0x89')](_0x57feca),this['_setDistance'](_0x57feca,_0x1925('0xba'));}_0x57feca=_0x57feca[_0x1925('0xc7')](_0x3d0a82=>!(_0x3d0a82['isAdded']&&_0x3d0a82[_0x1925('0xba')]));const _0x2ea236=new Map(_0x16233b[_0x1925('0xf6')][_0x2047d2][_0x1925('0x96')][_0x1925('0xe3')]),_0x995b9d=new Set(_0x402f4e[_0x1925('0x122')]());for(const _0x4ec689 of _0x2ea236[_0x1925('0x122')]())_0x995b9d[_0x1925('0x7d')](_0x4ec689);this[_0x1925('0x40')](_0x57feca,_0x995b9d),this[_0x1925('0xb5')](_0x57feca),_0x57feca=this[_0x1925('0xf')](_0x57feca),_0x57feca=this[_0x1925('0x13')](_0x57feca),_0x57feca=this[_0x1925('0x1')](_0x57feca);const {root:_0x2c5f75,changes:_0x294ea2}=this[_0x1925('0xf2')](_0x57feca,_0x518947,_0x2047d2);_0x3eb10b[_0x1925('0xf6')][_0x2047d2]=_0x2c5f75;const _0x55be2c=_0x2d5513[_0x1925('0xbb')](_0x2047d2);if(_0x55be2c){const _0xc9c6dc=_0x518947[_0x1925('0xbb')](_0x55be2c[_0x1925('0x15')]),_0x11080c=new _0x4d6880({'author':_0xc9c6dc,'type':_0x55be2c[_0x1925('0x56')]?_0x1925('0xe9'):_0x1925('0x42'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2047d2});_0x294ea2[_0x1925('0x4e')](_0x11080c),_0x3eb10b[_0x1925('0xb')][_0x2047d2]['revisionHistoryAttachChange']=_0x11080c['id'];}_0x3eb10b[_0x1925('0x25')]=_0x3eb10b[_0x1925('0x25')][_0x1925('0x112')](_0x294ea2);}return _0x3eb10b;}[_0x1925('0x26')](_0x5bca2b,_0x29993b){for(let _0x1536de=0x0;_0x1536de<_0x5bca2b[_0x1925('0xd9')];_0x1536de++)for(const [_0xcf9d18,_0x30489a]of _0x29993b)_0x30489a[_0x1925('0x43')][_0x1925('0xad')](_0x5bca2b[_0x1536de][_0x1925('0xfb')])&&_0x5bca2b[_0x1536de][_0x1925('0x73')][_0x1925('0x0')](_0xcf9d18),_0x30489a['end'][_0x1925('0xad')](_0x5bca2b[_0x1536de]['nextPosition'])&&_0x5bca2b[_0x1536de][_0x1925('0x117')][_0x1925('0x0')](_0xcf9d18);}[_0x1925('0xbc')](_0x5eccd0,_0x392b73){let _0x49fd1a=[],_0x912caa=0x0,_0x1631d5=0x0;for(;_0x912caa<_0x5eccd0[_0x1925('0xd9')]||_0x1631d5<_0x392b73[_0x1925('0xd9')];){const _0x4306a1=_0x5eccd0[_0x912caa]||{},_0x8d59cc=_0x392b73[_0x1631d5]||{};if(_0x4306a1['id']==_0x8d59cc['id'])_0x912caa++,_0x1631d5++,_0x49fd1a[_0x1925('0x0')](_0x4306a1);else{if(_0x8d59cc[_0x1925('0xba')]&&_0x4306a1[_0x1925('0x57')]){const {commonTape:_0x7fe895,iEnd:_0x1a4570,jEnd:_0x353650}=this[_0x1925('0x10')](_0x5eccd0,_0x912caa,_0x392b73,_0x1631d5);_0x49fd1a=_0x49fd1a[_0x1925('0x112')](_0x7fe895),_0x912caa=_0x1a4570,_0x1631d5=_0x353650;}else _0x8d59cc[_0x1925('0xba')]?(_0x1631d5++,_0x49fd1a[_0x1925('0x0')](_0x8d59cc)):(_0x912caa++,_0x49fd1a[_0x1925('0x0')](_0x4306a1));}}return _0x49fd1a;}[_0x1925('0x40')](_0x17449e,_0x345cba){const _0x21d494=[];for(let _0x18ed9e=0x0;_0x18ed9e<_0x17449e[_0x1925('0xd9')];_0x18ed9e++){for(let _0x17cdcd=0x0;_0x17cdcd<_0x17449e[_0x18ed9e]['markersStart'][_0x1925('0xd9')];_0x17cdcd++){const _0xd852b8=_0x17449e[_0x18ed9e][_0x1925('0x73')][_0x17cdcd];if(!_0x345cba[_0x1925('0x125')](_0xd852b8))continue;const {group:_0x3aa507,type:_0x10ee7a,authorId:_0x2f98cf}=_0x22d299(_0xd852b8);_0x1925('0xf1')!=_0x3aa507||'insertion'!=_0x10ee7a&&_0x1925('0x84')!=_0x10ee7a||(_0x21d494['unshift']({'type':_0x10ee7a,'name':_0xd852b8,'userId':_0x2f98cf}),_0x17449e[_0x18ed9e][_0x1925('0x73')][_0x1925('0xce')](_0x17cdcd,0x1),_0x17cdcd--);}_0xf7fce7(_0x17449e[_0x18ed9e]);for(let _0x49405f=0x0;_0x49405f<_0x17449e[_0x18ed9e]['markersEnd'][_0x1925('0xd9')];_0x49405f++){const _0x31947f=_0x17449e[_0x18ed9e][_0x1925('0x117')][_0x49405f];if(!_0x345cba[_0x1925('0x125')](_0x31947f))continue;const {group:_0x2262ad,type:_0x145173}=_0x22d299(_0x31947f);if(_0x1925('0xf1')!=_0x2262ad||_0x1925('0xd4')!=_0x145173&&_0x1925('0x84')!=_0x145173)continue;_0x17449e[_0x18ed9e][_0x1925('0x117')]['splice'](_0x49405f,0x1),_0x49405f--;const _0x420119=_0x21d494[_0x1925('0x1b')](_0x27adb8=>_0x27adb8[_0x1925('0x8c')]==_0x31947f);_0x420119>-0x1&&_0x21d494[_0x1925('0xce')](_0x420119,0x1);}}function _0x22d299(_0x43f5eb){const _0x79977e=_0x43f5eb[_0x1925('0x74')](':');return{'group':_0x79977e[0x0],'type':_0x79977e[0x1],'subType':_0x79977e[_0x1925('0xd9')]>=0x5?_0x79977e[0x2]:null,'id':_0x79977e[_0x1925('0xd9')]<0x5?_0x79977e[0x2]:_0x79977e[0x3],'authorId':_0x79977e[_0x1925('0xd9')]<0x5?_0x79977e[0x3]:_0x79977e[0x4],'markerCount':0x6==_0x79977e[_0x1925('0xd9')]?_0x79977e[0x5]:null};}function _0xf7fce7(_0xfbd674){for(let _0x5432c3=0x0;_0x5432c3<_0x21d494['length'];_0x5432c3++){if(_0xfbd674[_0x1925('0x57')]&&'insertion'==_0x21d494[_0x5432c3]['type'])return _0xfbd674['isAddSuggestion']=_0x21d494[_0x5432c3],void delete _0xfbd674[_0x1925('0x57')];if(!_0xfbd674[_0x1925('0x57')]&&!_0xfbd674[_0x1925('0xba')]&&_0x1925('0x84')==_0x21d494[_0x5432c3][_0x1925('0x41')])return void(_0xfbd674['isRemoveSuggestion']=_0x21d494[_0x5432c3]);}}}[_0x1925('0xd3')](_0x1b727b,_0x5ca1a4){let _0x557910=0x0,_0x43d1e4=!0x1;const _0x11f404=new Map();for(const _0x86ec11 of _0x1b727b)_0x86ec11[_0x5ca1a4]?_0x43d1e4&&(_0x557910++,_0x43d1e4=!0x1):(_0x557910++,_0x43d1e4=!0x0),_0x11f404[_0x1925('0xfe')](_0x86ec11['id'],_0x557910);for(let _0x45199f=0x0;_0x45199f<_0x1b727b['length'];_0x45199f++){if(_0x1925('0xba')==_0x5ca1a4&&_0x1b727b[_0x45199f][_0x1925('0x57')]||_0x1925('0x57')==_0x5ca1a4&&_0x1b727b[_0x45199f][_0x1925('0xba')])continue;if(_0x1925('0x44')==_0x1b727b[_0x45199f]['type']){_0x1b727b[_0x45199f][_0x1925('0x76')]=0x0;continue;}const _0x4d3106=_0x11f404['get'](_0x1b727b[_0x45199f][_0x1925('0x10b')]),_0x3db89c=_0x11f404[_0x1925('0xbb')](_0x1b727b[_0x45199f]['id']);_0x1b727b[_0x45199f][_0x1925('0x76')]=_0x4d3106-_0x3db89c;}}[_0x1925('0x38')](_0x5ddeb5,_0x33b2f2,_0x32650f=!0x1){const _0x272bf7=[];let _0x13731c=this[_0x1925('0xe5')][_0x1925('0x4a')](_0x5ddeb5),_0x427bd0=this[_0x1925('0xe5')][_0x1925('0x4a')](_0x33b2f2);for(-0x1==_0x427bd0&&(_0x427bd0=this[_0x1925('0xe5')][_0x1925('0xea')]['length'],_0x32650f=!0x1);_0x13731c<_0x427bd0;)_0x272bf7[_0x1925('0x0')](this['repository'][_0x1925('0xbf')](_0x13731c)),_0x13731c++;return _0x32650f&&_0x272bf7[_0x1925('0x0')](this[_0x1925('0xe5')][_0x1925('0xbf')](_0x13731c)),_0x272bf7;}[_0x1925('0x10')](_0xc0e352,_0x4b416e,_0x2ee4ae,_0x32b4b0){const _0x1ecb85=this['editor']['model'][_0x1925('0x11c')];let _0x33fd60=_0x4b416e;for(;_0xc0e352[_0x33fd60]&&_0xc0e352[_0x33fd60][_0x1925('0x57')];)_0x33fd60++;let _0x31d710=_0x32b4b0;for(;_0x2ee4ae[_0x31d710]&&_0x2ee4ae[_0x31d710][_0x1925('0xba')];)_0x31d710++;_0x27af8f(_0xc0e352,_0x4b416e,_0x33fd60),_0x27af8f(_0x2ee4ae,_0x32b4b0,_0x31d710);const _0x5ec012=_0x2ee4ae['slice'](_0x32b4b0,_0x31d710)['concat'](_0xc0e352[_0x1925('0x107')](_0x4b416e,_0x33fd60));return _0x5ec012['sort']((_0x4c6445,_0x44ffb2)=>_0x4c6445[_0x1925('0xb0')]!=_0x44ffb2[_0x1925('0xb0')]?_0x4c6445['side']-_0x44ffb2[_0x1925('0xb0')]:_0x4c6445['level']!=_0x44ffb2['level']?_0x4c6445[_0x1925('0x36')]-_0x44ffb2[_0x1925('0x36')]:_0x4c6445[_0x1925('0x76')]!=_0x44ffb2[_0x1925('0x76')]?_0x44ffb2[_0x1925('0x76')]-_0x4c6445[_0x1925('0x76')]:!!_0x4c6445[_0x1925('0x57')]!=!!_0x44ffb2[_0x1925('0x57')]?-0x1==_0x4c6445[_0x1925('0xb0')]||0x0==_0x4c6445[_0x1925('0xb0')]?_0x4c6445[_0x1925('0x57')]?-0x1:0x1:_0x4c6445['isAdded']?0x1:-0x1:_0x4c6445[_0x1925('0xc2')]-_0x44ffb2[_0x1925('0xc2')]),{'commonTape':_0x5ec012,'iEnd':_0x33fd60,'jEnd':_0x31d710};function _0x27af8f(_0x422019,_0x25e0b2,_0x3f8279){let _0x5718e0=-0x1,_0x597f2b=Number[_0x1925('0x1e')],_0x243b90=!0x0;for(let _0x4fb494=_0x25e0b2;_0x4fb494<_0x3f8279;_0x4fb494++)if(_0x1ecb85['isInline'](_0x422019[_0x4fb494][_0x1925('0x128')])||(_0x243b90=!0x1),_0x422019[_0x4fb494][_0x1925('0x128')][_0x1925('0x54')]<_0x25e0b2&&(_0x5718e0=_0x4fb494),_0x422019[_0x4fb494][_0x1925('0x128')][_0x1925('0xa7')]>=_0x3f8279){_0x597f2b=_0x4fb494;break;}_0x243b90&&(_0x5718e0=_0x3f8279-0x1);for(let _0xb52075=_0x25e0b2;_0xb52075<_0x3f8279;_0xb52075++)_0x422019[_0xb52075][_0x1925('0xb0')]=_0xb52075<=_0x5718e0?-0x1:_0xb52075<_0x597f2b?0x0:0x1,_0x422019[_0xb52075][_0x1925('0xc2')]=_0xb52075;let _0x2bed26=0x0;for(let _0x2e1ec5=_0x25e0b2;_0x2e1ec5<=_0x5718e0;_0x2e1ec5++)0x0==_0x422019[_0x2e1ec5][_0x1925('0x76')]?_0x422019[_0x2e1ec5][_0x1925('0x36')]=_0x2bed26:(_0x2bed26++,_0x422019[_0x2e1ec5]['level']=_0x2bed26,_0x2bed26++);for(let _0x19d0c5=_0x25e0b2;_0x19d0c5<_0x3f8279;_0x19d0c5++)0x0==_0x422019[_0x19d0c5]['side']&&(_0x422019[_0x19d0c5][_0x1925('0x36')]=_0x2bed26);_0x2bed26=0x0;for(let _0x408e8e=_0x3f8279-0x1;_0x408e8e>=_0x597f2b;_0x408e8e--)0x0==_0x422019[_0x408e8e][_0x1925('0x76')]?_0x422019[_0x408e8e][_0x1925('0x36')]=_0x2bed26:(_0x2bed26--,_0x422019[_0x408e8e]['level']=_0x2bed26,_0x2bed26--);}}[_0x1925('0xb5')](_0x4ee04f){const _0x30c1a0=new Map(),_0x4c64a3=this[_0x1925('0x17')][_0x1925('0xf6')][_0x1925('0x11c')];for(let _0x13c157=0x1;_0x13c157<_0x4ee04f[_0x1925('0xd9')];_0x13c157++){let _0x55a173,_0x4434f7,_0x3a160f;const _0xac1082=_0x4ee04f[_0x13c157],_0x330a8b=_0x4ee04f[_0x13c157-0x1];if('text'==_0xac1082[_0x1925('0x41')])continue;if(_0xac1082[_0x1925('0x41')]!=_0x330a8b[_0x1925('0x41')])continue;if(!_0x4c64a3[_0x1925('0xa1')](_0x330a8b[_0x1925('0x128')])||_0x4c64a3[_0x1925('0x1d')](_0x330a8b[_0x1925('0x128')]))continue;if(!_0x4c64a3[_0x1925('0xa1')](_0xac1082['item'])||_0x4c64a3[_0x1925('0x1d')](_0xac1082[_0x1925('0x128')]))continue;if((_0x4ee04f[_0x13c157][_0x1925('0x57')]||_0x4ee04f[_0x13c157][_0x1925('0x8a')])&&_0x4ee04f[_0x13c157-0x1][_0x1925('0xba')])_0x55a173=_0x4ee04f[_0x13c157],_0x4434f7=_0x4ee04f[_0x13c157-0x1],_0x3a160f=_0x13c157-0x1;else{if(!_0x4ee04f[_0x13c157]['isRemoved']||!_0x4ee04f[_0x13c157-0x1]['isAdded']&&!_0x4ee04f[_0x13c157-0x1][_0x1925('0x8a')])continue;_0x55a173=_0x4ee04f[_0x13c157-0x1],_0x4434f7=_0x4ee04f[_0x13c157],_0x3a160f=_0x13c157;}const _0x409359=_0x55a173['level']==_0x4434f7[_0x1925('0x36')],_0x2ef752=Math[_0x1925('0x37')](_0x55a173[_0x1925('0x36')])<Math[_0x1925('0x37')](_0x4434f7[_0x1925('0x36')])&&0x0==_0x4434f7[_0x1925('0x76')];(_0x409359||_0x2ef752)&&(_0x30c1a0[_0x1925('0xfe')](_0x4434f7['id'],_0x55a173['id']),_0x4ee04f[_0x1925('0xce')](_0x3a160f,0x1),_0x13c157--,_0x55a173[_0x1925('0x57')]=!0x1);}for(let _0x356d65=0x0;_0x356d65<_0x4ee04f[_0x1925('0xd9')];_0x356d65++)_0x30c1a0['has'](_0x4ee04f[_0x356d65][_0x1925('0x10b')])&&(_0x4ee04f[_0x356d65][_0x1925('0x10b')]=_0x30c1a0[_0x1925('0xbb')](_0x4ee04f[_0x356d65][_0x1925('0x10b')]));}['_removeMissingPairs'](_0x456a7c){const _0xee147e=new Set(_0x456a7c[_0x1925('0x114')](_0x17ecd5=>_0x17ecd5['id']));for(let _0x5d5a7d=0x0;_0x5d5a7d<_0x456a7c[_0x1925('0xd9')];_0x5d5a7d++)_0xee147e['has'](_0x456a7c[_0x5d5a7d][_0x1925('0x10b')])||0x0==_0x456a7c[_0x5d5a7d]['distance']||(_0x456a7c[_0x5d5a7d][_0x1925('0xd7')]=!0x0);return _0x456a7c[_0x1925('0xc7')](_0x21a654=>!_0x21a654[_0x1925('0xd7')]);}[_0x1925('0x13')](_0x418440){const _0x580ccd=new Set();for(let _0x3fb5b3=0x0;_0x3fb5b3<_0x418440[_0x1925('0xd9')];_0x3fb5b3++){if(_0x580ccd[_0x1925('0x125')](_0x418440[_0x3fb5b3]['id'])&&_0x418440[_0x3fb5b3][_0x1925('0xba')]&&(_0x418440[_0x3fb5b3]['isIncorrect']=!0x0),_0x418440[_0x3fb5b3][_0x1925('0xd7')])continue;if(0x0==_0x418440[_0x3fb5b3]['distance'])continue;if(_0x1925('0x126')!=_0x418440[_0x3fb5b3][_0x1925('0x41')])continue;if(null==_0x418440[_0x3fb5b3][_0x1925('0x10b')])continue;let _0xf58dc7=_0x3fb5b3+0x1,_0xbc56af=0x0;for(;_0x418440[_0xf58dc7]['id']!=_0x418440[_0x3fb5b3][_0x1925('0x10b')];)_0x1925('0x126')==_0x418440[_0xf58dc7][_0x1925('0x41')]?_0xbc56af++:'elementEnd'==_0x418440[_0xf58dc7][_0x1925('0x41')]&&_0xbc56af--,_0xf58dc7++;if(0x0!=_0xbc56af){if(_0x418440[_0x3fb5b3][_0x1925('0xba')])_0x418440[_0x3fb5b3][_0x1925('0xd7')]=!0x0;else for(;_0xf58dc7!=_0x3fb5b3;)_0x418440[_0xf58dc7][_0x1925('0xba')]&&0x0!=_0x418440[_0xf58dc7]['distance']&&(_0x418440[_0xf58dc7][_0x1925('0xd7')]=!0x0,_0x580ccd['add'](_0x418440[_0xf58dc7]['pairId'])),_0xf58dc7--;}}return _0x418440[_0x1925('0xc7')](_0x3d128a=>!_0x3d128a[_0x1925('0xd7')]);}[_0x1925('0x1')](_0x53a9e5){const _0x4a9877=this[_0x1925('0x17')]['model'][_0x1925('0x11c')];for(let _0x2b2cdc=0x0;_0x2b2cdc<_0x53a9e5['length'];_0x2b2cdc++){if(!(_0x53a9e5[_0x2b2cdc][_0x1925('0x57')]||_0x53a9e5[_0x2b2cdc][_0x1925('0x8a')]||_0x53a9e5[_0x2b2cdc][_0x1925('0xba')]||_0x53a9e5[_0x2b2cdc][_0x1925('0xed')]))continue;if(0x0==_0x53a9e5[_0x2b2cdc][_0x1925('0x76')])continue;const _0x31d9a0=_0x53a9e5[_0x2b2cdc][_0x1925('0x128')];_0x4a9877[_0x1925('0xa1')](_0x31d9a0)||_0x4a9877['isLimit'](_0x31d9a0)||(_0x53a9e5[_0x2b2cdc]['isAdded']&&delete _0x53a9e5[_0x2b2cdc][_0x1925('0x57')],_0x53a9e5[_0x2b2cdc]['isAddSuggestion']&&delete _0x53a9e5[_0x2b2cdc][_0x1925('0x8a')],_0x53a9e5[_0x2b2cdc]['isRemoveSuggestion']&&delete _0x53a9e5[_0x2b2cdc][_0x1925('0xed')],_0x53a9e5[_0x2b2cdc][_0x1925('0xba')]&&(_0x53a9e5[_0x2b2cdc]['isIncorrect']=!0x0));}return _0x53a9e5[_0x1925('0xc7')](_0x4fe2e5=>!_0x4fe2e5[_0x1925('0xd7')]);}[_0x1925('0xf2')](_0x555987,_0x45955,_0x2b19c3){const _0x31923a=new _0x12449a(),_0x5e3af6=[],_0x1fc743=new Map(),_0x990d11=this[_0x1925('0x17')][_0x1925('0xf6')],_0x348eb8=_0x990d11[_0x1925('0x11c')],_0xfbff89=[_0x31923a],_0x5aec12={},_0x1c5927={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4fcde5=null;const _0x109a73=[0x0];for(let _0x252dce=0x0;_0x252dce<_0x555987['length'];_0x252dce++){let _0x1c1b23,_0x49ffb1;if(_0x1925('0x126')===_0x555987[_0x252dce][_0x1925('0x41')]){_0x1c1b23=_0x990d11[_0x1925('0xd5')](_0x31923a,_0x109a73);const _0x46d4c3=new _0x1f7d70(_0x555987[_0x252dce]['item']['name'],_0x555987[_0x252dce][_0x1925('0x128')][_0x1925('0x103')]());_0xfbff89[0x0][_0x1925('0x3')](_0x46d4c3),_0x109a73[_0x1925('0x0')](0x0),_0xfbff89[_0x1925('0x4e')](_0x46d4c3),_0x49ffb1=_0x990d11[_0x1925('0xd5')](_0x31923a,_0x109a73),_0x4fcde5=null;}else{if(_0x1925('0xa')===_0x555987[_0x252dce][_0x1925('0x41')])_0xfbff89['shift'](),_0x1c1b23=_0x990d11['createPositionFromPath'](_0x31923a,_0x109a73),_0x109a73[_0x1925('0x9c')](),_0x109a73[_0x109a73[_0x1925('0xd9')]-0x1]++,_0x49ffb1=_0x990d11['createPositionFromPath'](_0x31923a,_0x109a73),_0x4fcde5=null;else{if(_0x1c1b23=_0x990d11[_0x1925('0xd5')](_0x31923a,_0x109a73),_0x4fcde5&&_0x4294e1(_0x4fcde5,_0x555987[_0x252dce][_0x1925('0x128')]))_0x4fcde5[_0x1925('0x79')]+=_0x555987[_0x252dce][_0x1925('0x128')][_0x1925('0xd1')];else{const _0x54ed52=new _0x2e0e28(_0x555987[_0x252dce][_0x1925('0x128')][_0x1925('0xd1')],_0x555987[_0x252dce][_0x1925('0x128')][_0x1925('0x103')]());_0xfbff89[0x0]['_appendChild'](_0x54ed52),_0x4fcde5=_0x54ed52;}_0x109a73[_0x109a73[_0x1925('0xd9')]-0x1]+=_0x555987[_0x252dce][_0x1925('0x128')]['offsetSize'],_0x49ffb1=_0x990d11[_0x1925('0xd5')](_0x31923a,_0x109a73);}}for(const _0x15beda of _0x555987[_0x252dce]['markersStart'])_0x1fc743[_0x1925('0xfe')](_0x15beda,{'start':_0x1c1b23,'end':null});_0x2428ee('isRemoveSuggestion',_0x252dce,_0x1c1b23,_0x49ffb1),_0x2428ee(_0x1925('0x8a'),_0x252dce,_0x1c1b23,_0x49ffb1),_0x2428ee(_0x1925('0xba'),_0x252dce,_0x1c1b23,_0x49ffb1),_0x2428ee(_0x1925('0x57'),_0x252dce,_0x1c1b23,_0x49ffb1);for(const _0xc1ce92 of _0x555987[_0x252dce][_0x1925('0x117')]){_0x1fc743['get'](_0xc1ce92)[_0x1925('0x30')]=_0x49ffb1;}}for(const [_0x21a4ef,_0x1d71ed]of _0x1fc743){const _0x4a07a5=this[_0x1925('0x17')][_0x1925('0xf6')][_0x1925('0xa6')](_0x1d71ed[_0x1925('0x43')],_0x1d71ed[_0x1925('0x30')]);_0x31923a[_0x1925('0xe3')][_0x1925('0xfe')](_0x21a4ef,_0x4a07a5);}return _0x5e3af6[_0x1925('0xb1')]((_0x298020,_0x27ebd3)=>{const _0x3302fe=_0x31923a['markers'][_0x1925('0xbb')]('revision:'+_0x298020['id']),_0x529933=_0x31923a['markers'][_0x1925('0xbb')](_0x1925('0x22')+_0x27ebd3['id']);return _0x3302fe[_0x1925('0x43')]['isBefore'](_0x529933[_0x1925('0x43')])?-0x1:_0x3302fe['start'][_0x1925('0xbe')](_0x529933[_0x1925('0x43')])?0x1:_0x3302fe[_0x1925('0x30')][_0x1925('0x111')](_0x529933['end'])?-0x1:_0x3302fe['end'][_0x1925('0xbe')](_0x529933[_0x1925('0x30')])?0x1:_0x1925('0xe9')===_0x298020['type']?-0x1:0x1;}),{'root':_0x31923a,'changes':_0x5e3af6};function _0x2428ee(_0x3a219f,_0x36f4fc,_0x1682af,_0x51ab16){const _0x20a1c3=!!_0x555987[_0x36f4fc][_0x3a219f],_0x22364f=_0x20a1c3?_0x555987[_0x36f4fc][_0x3a219f][_0x1925('0x15')]:null,_0xd92502=_0x36f4fc===_0x555987[_0x1925('0xd9')]-0x1,_0x426510=_0x1c5927[_0x3a219f][0x0],_0x1ff681=_0x348eb8[_0x1925('0x28')](_0x555987[_0x36f4fc][_0x1925('0x128')]);!_0x5aec12[_0x3a219f]&&_0x20a1c3?_0x5aec12[_0x3a219f]={'start':_0x1682af,'tapeItem':_0x555987[_0x36f4fc],'userId':_0x22364f,'type':_0x3a219f}:_0x5aec12[_0x3a219f]&&!_0x20a1c3?(_0x5aec12[_0x3a219f][_0x1925('0x30')]=_0x1682af,_0x4a0dae(_0x5aec12[_0x3a219f]),_0x5aec12[_0x3a219f]=null):_0x5aec12[_0x3a219f]&&_0x20a1c3&&_0x5aec12[_0x3a219f][_0x1925('0x15')]!==_0x22364f&&(_0x5aec12[_0x3a219f]['end']=_0x1682af,_0x426510&&_0x426510[_0x1925('0x15')]===_0x5aec12[_0x3a219f][_0x1925('0x15')]||_0x4a0dae(_0x5aec12[_0x3a219f]),_0x5aec12[_0x3a219f]={'start':_0x1682af,'tapeItem':_0x555987[_0x36f4fc],'userId':_0x22364f,'type':_0x3a219f}),_0x5aec12[_0x3a219f]&&_0x1ff681&&(_0x1925('0x126')!==_0x555987[_0x36f4fc][_0x1925('0x41')]||_0x426510&&_0x426510['userId']===_0x22364f||_0x1c5927[_0x3a219f][_0x1925('0x4e')]({'userId':_0x22364f,'object':_0x555987[_0x36f4fc][_0x1925('0x128')],'change':_0x5aec12[_0x3a219f]}),'elementEnd'===_0x555987[_0x36f4fc][_0x1925('0x41')]&&_0x426510&&_0x426510[_0x1925('0x7a')]===_0x555987[_0x36f4fc]['item']&&(_0x1c5927[_0x3a219f][_0x1925('0xbd')](),_0x5aec12[_0x3a219f]=_0x426510['change'])),_0x5aec12[_0x3a219f]&&_0xd92502&&(_0x5aec12[_0x3a219f]['end']=_0x51ab16,_0x4a0dae(_0x5aec12[_0x3a219f]),_0x5aec12[_0x3a219f]=null);}function _0x4a0dae({start:_0x22b8b6,end:_0x57c214,tapeItem:_0x8a8e78,userId:_0x37fc3a,type:_0x108e33}){const _0x3f0ed6=_0x8a8e78['item'],_0x2a6453=_0x990d11[_0x1925('0x11c')][_0x1925('0xa1')](_0x3f0ed6)&&!_0x990d11[_0x1925('0x11c')][_0x1925('0x1d')](_0x3f0ed6),_0x37dd29=_0x22b8b6[_0x1925('0xd8')]==_0x57c214[_0x1925('0x7c')]&&_0x57c214[_0x1925('0xfc')];if(_0x2a6453&&_0x37dd29)return;const _0x163e4d=_0x990d11['createRange'](_0x22b8b6,_0x57c214),_0x48147c=_0x45955['get'](_0x37fc3a),_0x286a1b=new _0x4d6880({'author':_0x48147c,'type':_0x1925('0x57')==_0x108e33||_0x1925('0x8a')==_0x108e33?_0x1925('0xe9'):_0x1925('0x42'),'data':{'isSuggestion':_0x1925('0x8a')==_0x108e33||_0x1925('0xed')==_0x108e33},'createdAt':new Date(),'rootName':_0x2b19c3});_0x5e3af6[_0x1925('0x0')](_0x286a1b),_0x31923a[_0x1925('0xe3')][_0x1925('0xfe')](_0x1925('0x22')+_0x286a1b['id'],_0x163e4d);}function _0x4294e1(_0x3fcff2,_0x42d4a5){const _0x120eb5=_0x3fcff2[_0x1925('0x103')](),_0x59e8dd=_0x42d4a5[_0x1925('0x103')]();for(const _0x35f5f9 of _0x120eb5){if(_0x35f5f9[0x1]!==_0x42d4a5[_0x1925('0xae')](_0x35f5f9[0x0]))return!0x1;_0x59e8dd[_0x1925('0x11')]();}return _0x59e8dd[_0x1925('0x11')]()[_0x1925('0x51')];}}['_setConversion'](){this[_0x1925('0x17')][_0x1925('0x59')][_0x1925('0x88')](_0x1925('0xd6'))[_0x1925('0x6b')]({'view':_0x1925('0x8')}),this['editor'][_0x1925('0x59')]['for'](_0x1925('0xa3'))[_0x1925('0x5a')]({'model':_0x1925('0x8'),'view':_0x49bf15=>{const _0x3fe703=_0x49bf15[_0x1925('0x9d')]['split'](':')[0x1],_0xdf8c64=this['_getChangeFromId'](_0x3fe703);if(!_0xdf8c64)return null;const _0x19841c=_0x1925('0xe9')==_0xdf8c64[_0x1925('0x41')]?_0x1925('0xd4'):'deletion',_0x254fb4=[_0x1925('0x10f'),'ck-suggestion-marker-'+_0x19841c];return _0xdf8c64[_0x1925('0xd1')]['isSuggestion']&&_0x254fb4[_0x1925('0x0')]('ck-suggestion-marker-'+_0x19841c+_0x1925('0x7f')),this[_0x1925('0xb7')]==_0xdf8c64&&_0x254fb4[_0x1925('0x0')](_0x1925('0xa4')),{'classes':_0x254fb4,'attributes':{'data-change-id':_0x3fe703}};}}),this[_0x1925('0x17')][_0x1925('0x59')][_0x1925('0x88')](_0x1925('0xd6'))[_0x1925('0xe9')](_0x47c2ad=>{_0x47c2ad['on'](_0x1925('0xf9'),(_0x2c152c,_0x52fbe7,_0xf4b532)=>{const _0x2ea04f=_0x52fbe7[_0x1925('0x6')][_0x1925('0x91')](0x0);if(!_0x2ea04f||!_0x2ea04f['is'](_0x1925('0x1a'),_0x1925('0x104')))return;if(!_0xf4b532[_0x1925('0xa8')][_0x1925('0xaa')](_0x2ea04f,{'attributes':[_0x1925('0xde'),_0x1925('0x7')]}))return;const _0x3b8ae7=_0x52fbe7[_0x1925('0xe1')][_0x1925('0x43')][_0x1925('0xd8')];_0xf4b532['writer']['setAttribute'](_0x1925('0xde'),_0x2ea04f['getAttribute'](_0x1925('0xde')),_0x3b8ae7),_0xf4b532[_0x1925('0x48')]['setAttribute'](_0x1925('0x7'),_0x2ea04f[_0x1925('0xae')](_0x1925('0x7')),_0x3b8ae7);},{'priority':'low'});}),this[_0x1925('0x17')][_0x1925('0x59')][_0x1925('0x88')](_0x1925('0xd6'))[_0x1925('0xe9')](_0x460c9c=>{_0x460c9c['on'](_0x1925('0x1a'),(_0x659053,_0x7618c2,_0x44c96d)=>{if(!_0x44c96d[_0x1925('0xa8')][_0x1925('0xaa')](_0x7618c2[_0x1925('0x6')],{'attributes':[_0x1925('0xde'),_0x1925('0x7')]}))return;if(_0x7618c2[_0x1925('0xe1')][_0x1925('0x29')])return;const _0x441c40=_0x7618c2[_0x1925('0xe1')]['start'][_0x1925('0xd8')];_0x441c40[_0x1925('0x23')]('vid_start')||_0x441c40[_0x1925('0x23')](_0x1925('0xdb'))||(_0x44c96d['writer'][_0x1925('0x4')](_0x1925('0xde'),_0x7618c2['viewItem']['getAttribute'](_0x1925('0xde')),_0x441c40),_0x44c96d[_0x1925('0x48')]['setAttribute'](_0x1925('0x7'),_0x7618c2[_0x1925('0x6')][_0x1925('0xae')](_0x1925('0x7')),_0x441c40));},{'priority':'low'});}),this[_0x1925('0x17')][_0x1925('0x59')][_0x1925('0x88')](_0x1925('0xd6'))[_0x1925('0x2e')]({'view':{'name':_0x1925('0x4b'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xaeb43d=>_0xaeb43d[_0x1925('0xae')]('vid')}}),this[_0x1925('0x17')]['model'][_0x1925('0x11c')]['on']('checkAttribute',(_0x2ab59b,[,_0x1db205])=>{[_0x1925('0xde'),_0x1925('0x7'),_0x1925('0xdb')][_0x1925('0x85')](_0x1db205)&&(_0x2ab59b[_0x1925('0x8f')]=!0x0,_0x2ab59b[_0x1925('0x55')]());},{'priority':_0x1925('0xcc')}),this['editor'][_0x1925('0x59')][_0x1925('0x88')](_0x1925('0x102'))[_0x1925('0xe9')](_0x1e740c=>{_0x1e740c['on'](_0x1925('0x61'),(_0x4048d6,_0x22143c,_0x485299)=>{if('\x20'!=_0x22143c['item']['data']||_0x22143c['item']['parent'][_0x1925('0xf4')]>0x1)return;if(!_0x485299[_0x1925('0xa8')][_0x1925('0xaa')](_0x22143c[_0x1925('0x128')],_0x4048d6['name']))return;const _0x1f4949=_0x485299[_0x1925('0x48')],_0x2e26cf=_0x485299[_0x1925('0xc')][_0x1925('0x11a')](_0x22143c[_0x1925('0xf0')]);_0x1f4949['wrap'](_0x2e26cf,_0x1f4949[_0x1925('0x10e')](_0x1925('0x4b')));});}),this[_0x1925('0x17')][_0x1925('0x59')]['for'](_0x1925('0x102'))[_0x1925('0xeb')]({'model':_0x1925('0x8')}),this[_0x1925('0x17')][_0x1925('0x3c')]['downcastDispatcher']['on'](_0x1925('0xdc'),function(_0x288c7d){const _0x161cc2=_0x288c7d[_0x1925('0x78')][_0x1925('0xbb')](_0x1925('0x11d'));return(_0x38a512,_0x2e99cb,_0x9d06ef)=>{const _0xd9ea75=_0x2e99cb[_0x1925('0x9d')][_0x1925('0x74')](':')[0x1],_0x17f6b9=_0x161cc2[_0x1925('0x109')](_0xd9ea75);if(!_0x17f6b9)return null;const _0x5bc428=_0x1925('0xe9')==_0x17f6b9['type']?'split':_0x1925('0x120');if(!_0x9d06ef['consumable'][_0x1925('0x3f')](_0x2e99cb[_0x1925('0xc8')],_0x38a512['name']))return;const _0x4e4134=_0x2e99cb[_0x1925('0xc8')][_0x1925('0x11f')](),_0x2c2e2f=_0x2e99cb[_0x1925('0xc8')][_0x1925('0x43')],_0x30554c=_0x288c7d[_0x1925('0xf6')][_0x1925('0x11c')];let _0xb153cc=null,_0x24a354=null,_0x128af4=!0x1,_0x11f35f=!0x1;for(const _0x25765d of _0x4e4134){const _0x209b4d=_0x25765d[_0x1925('0x128')];_0x128af4=_0x128af4||_0x30554c['isContent'](_0x209b4d);const _0x1f1533=_0x9d06ef['mapper'][_0x1925('0x39')](_0x209b4d);if(_0x1f1533&&_0x1f1533[_0x1925('0xc4')](_0x1925('0x58')))return;_0x1925('0xa')==_0x25765d[_0x1925('0x41')]&&(_0x30554c[_0x1925('0xa1')](_0x209b4d)&&!_0x30554c['isLimit'](_0x209b4d)&&(_0x209b4d[_0x1925('0x66')]||_0x2c2e2f[_0x1925('0xdf')]?_0xb153cc&&_0xb153cc[_0x1925('0x7c')]==_0x209b4d||(_0xb153cc=_0x209b4d,_0xdfa557(_0x25765d[_0x1925('0xfb')]),_0x11f35f=!0x0):_0x24a354=_0x24a354||_0x25765d[_0x1925('0xfb')]));}function _0xdfa557(_0x514bb8){const _0x32461b=_0x9d06ef[_0x1925('0x48')][_0x1925('0x87')]('span',{'class':_0x1925('0xd0')+_0x5bc428}),_0x3a91ed=_0x9d06ef[_0x1925('0xc')]['toViewPosition'](_0x514bb8);_0x17f6b9[_0x1925('0xd1')]['isSuggestion']&&_0x9d06ef[_0x1925('0x48')]['addClass'](_0x1925('0xd0')+_0x5bc428+_0x1925('0x7f'),_0x32461b),_0x161cc2[_0x1925('0xb7')]==_0x17f6b9&&_0x9d06ef[_0x1925('0x48')]['addClass']('ck-suggestion-marker--active',_0x32461b),_0x9d06ef[_0x1925('0x48')]['insert'](_0x3a91ed,_0x32461b),_0x9d06ef['mapper'][_0x1925('0x97')](_0x32461b,_0x2e99cb[_0x1925('0x9d')]);}_0x128af4||_0x11f35f||!_0x24a354||_0xdfa557(_0x24a354);};}(this[_0x1925('0x17')]),{'priority':_0x1925('0x60')}),this[_0x1925('0x17')][_0x1925('0x3c')][_0x1925('0x83')]['on'](_0x1925('0x4f'),(_0x49df24,_0x440175,_0x52ab21)=>{const _0x152feb=_0x52ab21[_0x1925('0xc')][_0x1925('0xa2')](_0x440175[_0x1925('0x9d')]);if(_0x152feb)for(const _0x179be1 of _0x152feb)(_0x179be1[_0x1925('0x19')](_0x1925('0x95'))||_0x179be1['hasClass'](_0x1925('0x49')))&&(_0x52ab21[_0x1925('0xc')][_0x1925('0x127')](_0x179be1,_0x440175[_0x1925('0x9d')]),_0x52ab21[_0x1925('0x48')][_0x1925('0x42')](_0x179be1));},{'priority':_0x1925('0x60')}),this[_0x1925('0x17')][_0x1925('0x3c')][_0x1925('0x83')]['on'](_0x1925('0xdc'),(_0x4e3351,_0x224047,_0x5c0db2)=>{const _0x4636d8=_0x224047[_0x1925('0x9d')][_0x1925('0x74')](':')[0x1],_0x941896=this[_0x1925('0x109')](_0x4636d8);if(!_0x941896)return null;const _0x4a5d7a=_0x1925('0xe9')==_0x941896[_0x1925('0x41')]?'split':_0x1925('0x120');if(_0x5c0db2[_0x1925('0xa8')]['test'](_0x224047[_0x1925('0xc8')],_0x4e3351[_0x1925('0x8c')]))for(const _0x343b06 of _0x224047[_0x1925('0xc8')]['getItems']()){if(!_0x343b06['is']('element',_0x1925('0xdd')))continue;const _0x3be678=_0x5c0db2[_0x1925('0x48')][_0x1925('0x87')](_0x1925('0x4b'),{'class':_0x1925('0xd0')+_0x4a5d7a}),_0x4d565b=_0x5c0db2[_0x1925('0xc')][_0x1925('0xf3')](this['editor']['model'][_0x1925('0xaf')](_0x343b06));_0x941896[_0x1925('0xd1')][_0x1925('0x81')]&&_0x5c0db2[_0x1925('0x48')][_0x1925('0x6d')](_0x1925('0xd0')+_0x4a5d7a+'-new',_0x3be678),this[_0x1925('0xb7')]==_0x941896&&_0x5c0db2[_0x1925('0x48')]['addClass'](_0x1925('0xa4'),_0x3be678),_0x5c0db2['writer']['insert'](_0x4d565b,_0x3be678),_0x5c0db2[_0x1925('0xc')]['bindElementToMarker'](_0x3be678,_0x224047['markerName']);}},{'priority':_0x1925('0x60')}),this[_0x1925('0x17')][_0x1925('0xf6')][_0x1925('0x8d')]['on'](_0x1925('0x7e'),()=>{this[_0x1925('0x17')][_0x1925('0x3c')][_0x1925('0xa5')]['change'](_0x539f39=>{for(const _0x8999cb of this[_0x1925('0x17')][_0x1925('0xf6')]['document'][_0x1925('0x9')]()){const _0x285993=this['editor'][_0x1925('0xf6')][_0x1925('0x8d')][_0x1925('0x1f')](_0x8999cb),_0x4a8118=this['editor'][_0x1925('0x3c')]['view']['document']['getRoot'](_0x8999cb);if(_0x4a8118){const _0x255c55=_0x285993[_0x1925('0xae')](_0x1925('0x62'));if(_0x539f39['removeAttribute'](_0x1925('0x124'),_0x4a8118),_0x539f39[_0x1925('0xc1')](_0x1925('0xec'),_0x4a8118),_0x539f39[_0x1925('0xc1')](_0x1925('0xc5'),_0x4a8118),_0x539f39[_0x1925('0xc1')](_0x1925('0x98'),_0x4a8118),_0x255c55){const _0x2c3729=this[_0x1925('0x109')](_0x255c55);if(!_0x2c3729)return null;_0x539f39[_0x1925('0x4')](_0x1925('0x124'),_0x255c55,_0x4a8118),_0x539f39[_0x1925('0x6d')](_0x1925('0x9e')+_0x2c3729[_0x1925('0x41')],_0x4a8118),this[_0x1925('0xb7')]==_0x2c3729&&_0x539f39[_0x1925('0x6d')](_0x1925('0x98'),_0x4a8118);}}}});}),this[_0x1925('0x17')]['conversion']['for'](_0x1925('0xd6'))[_0x1925('0x6b')]({'view':_0x1925('0x9f'),'model':_0xac57a2=>_0x1925('0x27')+_0xac57a2,'converterPriority':'highest'}),this[_0x1925('0x17')]['conversion'][_0x1925('0x88')](_0x1925('0xd6'))['dataToMarker']({'view':_0x1925('0x2c'),'model':_0x48ec17=>'revision-suggestion:'+_0x48ec17,'converterPriority':'highest'}),this[_0x1925('0x17')][_0x1925('0x59')][_0x1925('0x88')]('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x347dcc=>({'name':_0x1925('0x4d')+_0x347dcc,'group':_0x1925('0xf1')}),'converterPriority':_0x1925('0xcc')}),this[_0x1925('0x17')][_0x1925('0x59')][_0x1925('0x88')](_0x1925('0xa3'))['markerToHighlight']({'model':_0x1925('0xf1'),'view':_0x22ad09=>{const _0x1f8260=_0x22ad09[_0x1925('0x9d')]['split'](':')[0x1];return'insertion'!=_0x1f8260&&_0x1925('0x84')!=_0x1f8260?null:{'classes':[_0x1925('0x7b'),_0x1925('0x110')+_0x1f8260]};}}),this[_0x1925('0x17')][_0x1925('0x3c')]['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',et(this[_0x1925('0x17')],_0x1925('0x120')),{'priority':_0x1925('0x60')}),this[_0x1925('0x17')][_0x1925('0x3c')][_0x1925('0x83')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x1925('0x17')],_0x1925('0x74')),{'priority':_0x1925('0x60')}),this[_0x1925('0x17')]['editing']['downcastDispatcher']['on'](_0x1925('0x118'),(_0x559f54,_0x175d3c,_0x51b402)=>{const _0x234f8c=_0x51b402[_0x1925('0xc')][_0x1925('0xa2')](_0x175d3c['markerName']);if(_0x234f8c)for(const _0x6d0221 of _0x234f8c)_0x6d0221['is'](_0x1925('0x10c'))&&(_0x51b402['mapper']['unbindElementFromMarkerName'](_0x6d0221,_0x175d3c[_0x1925('0x9d')]),_0x51b402[_0x1925('0x48')][_0x1925('0x42')](_0x6d0221));},{'priority':'high'});}[_0x1925('0x109')](_0x2aa674){return this['_changeIdToChange']['get'](_0x2aa674);}[_0x1925('0x21')](_0x37512a){return this[_0x1925('0x6c')]&&this[_0x1925('0x6c')][_0x1925('0x80')](),this[_0x1925('0x6c')]=new _0x16f3cb(this[_0x1925('0x17')][_0x1925('0x64')],_0x37512a),this[_0x1925('0x6c')];}[_0x1925('0xab')](){this[_0x1925('0x17')][_0x1925('0xf6')][_0x1925('0x8d')][_0x1925('0x75')][_0x1925('0x99')]('revision'),this['on']('change:activeView',(_0x5abe1a,_0x1d0e71,_0x1c9338,_0x596687)=>{_0x596687&&this[_0x1925('0x82')][_0x1925('0x42')](_0x596687),_0x1c9338&&(this[_0x1925('0x82')][_0x1925('0xe9')]({'view':_0x1c9338,'stackId':_0x1925('0x3e'),'position':{'target':()=>{const _0x109a8e=this[_0x1925('0x17')][_0x1925('0x3c')],_0x141cd3=this[_0x1925('0x109')](_0x1c9338[_0x1925('0x65')]);let _0x5db131;if(_0x141cd3[_0x1925('0xd1')][_0x1925('0xf8')]){const _0x8816fa=_0x109a8e[_0x1925('0xa5')][_0x1925('0x69')](_0x141cd3[_0x1925('0x123')]);_0x5db131=Array['from'](_0x8816fa[_0x1925('0xfa')]());}else{const _0x1d453e=this[_0x1925('0x17')][_0x1925('0xf6')][_0x1925('0xe3')][_0x1925('0xbb')](_0x1925('0x22')+_0x1c9338['changeId']);_0x5db131=Array[_0x1925('0x6e')](_0x109a8e[_0x1925('0xc')][_0x1925('0xa2')](_0x1d453e[_0x1925('0x8c')]))[_0x1925('0x114')](_0x4d3764=>_0x109a8e[_0x1925('0xa5')][_0x1925('0x3d')]['mapViewToDom'](_0x4d3764))[_0x1925('0x114')](_0x9b9613=>Array['from'](_0x9b9613[_0x1925('0xfa')]()))[_0x1925('0xb3')]();}if(!this[_0x1925('0x52')])return _0x5db131[0x0];return _0x5db131['find'](_0x5c3e77=>_0x5c3e77['top']-0x3<=this['_activeViewTarget']['y']&&_0x5c3e77[_0x1925('0x106')]+0x3>=this[_0x1925('0x52')]['y']&&_0x5c3e77[_0x1925('0x5d')]-0x3<=this[_0x1925('0x52')]['x']&&_0x5c3e77['right']+0x3>=this['_activeViewTarget']['x'])||_0x5db131[0x0];}}}),this[_0x1925('0x82')][_0x1925('0x34')]('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3799dc,_0x579852,_0x5045f2,_0x368f9c)=>{this['activeView']=_0x5045f2?this[_0x1925('0x21')](_0x5045f2):null,this[_0x1925('0x17')][_0x1925('0xf6')][_0x1925('0x7e')](()=>{const _0x59b8a6=this[_0x1925('0x17')][_0x1925('0x3c')];_0x368f9c&&(_0x368f9c[_0x1925('0xd1')][_0x1925('0xf8')]?_0x59b8a6[_0x1925('0xa5')]['change'](_0x168a0f=>{_0x168a0f[_0x1925('0xc1')](_0x1925('0x98'),_0x59b8a6['view']['document'][_0x1925('0x1f')](_0x368f9c[_0x1925('0x123')]));}):_0x59b8a6[_0x1925('0x2a')](_0x1925('0x22')+_0x368f9c['id'])),_0x5045f2&&(_0x5045f2['data'][_0x1925('0xf8')]?_0x59b8a6[_0x1925('0xa5')]['change'](_0x574f3a=>{_0x574f3a[_0x1925('0x6d')](_0x1925('0x98'),_0x59b8a6[_0x1925('0xa5')][_0x1925('0x8d')][_0x1925('0x1f')](_0x5045f2[_0x1925('0x123')]));}):_0x59b8a6[_0x1925('0x2a')](_0x1925('0x22')+_0x5045f2['id']));});}),this[_0x1925('0x45')](this[_0x1925('0x17')]['editing']['view']['document'],_0x1925('0x113'),(_0x24445c,_0x2cac88)=>{if(this[_0x1925('0xb7')])return;const _0x4702c2=this[_0x1925('0xd2')](_0x2cac88[_0x1925('0xcf')]),_0x1acd1c=this[_0x1925('0xac')]['get'](_0x4702c2);_0x1acd1c?(this['_activeViewTarget']={'x':_0x2cac88[_0x1925('0x3b')]['x'],'y':_0x2cac88[_0x1925('0x3b')]['y']},this['activeView']=this[_0x1925('0x21')](_0x1acd1c)):(this['_activeViewTarget']=null,this[_0x1925('0x24')]=null);}),this[_0x1925('0x45')](this[_0x1925('0x17')][_0x1925('0x3c')][_0x1925('0xa5')][_0x1925('0x8d')],_0x1925('0x86'),(_0x4dd766,_0xeaeacf)=>{const _0x22b797=this[_0x1925('0xd2')](_0xeaeacf[_0x1925('0xcf')]),_0x49c276=this['_changeIdToChange'][_0x1925('0xbb')](_0x22b797);_0x49c276?(this[_0x1925('0x52')]={'x':_0xeaeacf[_0x1925('0x3b')]['x'],'y':_0xeaeacf[_0x1925('0x3b')]['y']},_0x49c276===this[_0x1925('0xb7')]?this[_0x1925('0x82')]['updatePosition']():this[_0x1925('0xb7')]=_0x49c276):(this[_0x1925('0x52')]=null,this[_0x1925('0xb7')]=null);});}[_0x1925('0xd2')](_0x35c767){do{const _0xfa9413=_0x35c767[_0x1925('0xae')](_0x1925('0x124'));if(_0xfa9413)return _0xfa9413;_0x35c767=_0x35c767['parent'];}while(_0x35c767);return null;}[_0x1925('0x10a')](){this[_0x1925('0x17')][_0x1925('0xf6')]['change'](_0x2a1a84=>{for(const _0x1d6ec8 of this[_0x1925('0x17')][_0x1925('0xf6')][_0x1925('0xe3')])_0x2a1a84[_0x1925('0x115')](_0x1d6ec8);});}}function et(_0x2aee5a,_0x361493){return(_0x455b66,_0x1726c5,_0x38cc82)=>{if(!_0x38cc82[_0x1925('0xa8')]['test'](_0x1726c5[_0x1925('0xc8')],_0x455b66['name']))return;const _0x22cc53=_0x1726c5[_0x1925('0xc8')][_0x1925('0x11f')](),_0x56f5cb=_0x1726c5[_0x1925('0xc8')]['start'],_0x3e1e67=_0x2aee5a[_0x1925('0xf6')][_0x1925('0x11c')];let _0x554767=null,_0x7258c7=null,_0x529cbb=!0x1,_0xcf5f12=!0x1;for(const _0x522f16 of _0x22cc53){const _0x46c68e=_0x522f16[_0x1925('0x128')];_0x529cbb=_0x529cbb||_0x3e1e67[_0x1925('0x8b')](_0x46c68e);const _0x4c8173=_0x38cc82[_0x1925('0xc')]['toViewElement'](_0x46c68e);if(_0x4c8173&&_0x4c8173[_0x1925('0xc4')](_0x1925('0x58')))return;_0x1925('0xa')==_0x522f16[_0x1925('0x41')]&&(_0x3e1e67['isBlock'](_0x46c68e)&&!_0x3e1e67[_0x1925('0x1d')](_0x46c68e)&&(_0x46c68e[_0x1925('0x66')]||_0x56f5cb[_0x1925('0xdf')]?_0x554767&&_0x554767['parent']==_0x46c68e||(_0x554767=_0x46c68e,_0x2c83ee(_0x522f16[_0x1925('0xfb')]),_0xcf5f12=!0x0):_0x7258c7=_0x7258c7||_0x522f16[_0x1925('0xfb')]));}function _0x2c83ee(_0x70b8e1){const _0x5eb86f=_0x38cc82[_0x1925('0xc')][_0x1925('0xf3')](_0x70b8e1),_0xfb1cc4=_0x38cc82[_0x1925('0x48')][_0x1925('0x87')](_0x1925('0x4b'),{'class':'ck-suggestion-preview-marker-'+_0x361493});_0x38cc82['writer']['insert'](_0x5eb86f,_0xfb1cc4),_0x38cc82[_0x1925('0xc')]['bindElementToMarker'](_0xfb1cc4,_0x1726c5['markerName']);}_0x529cbb||_0xcf5f12||!_0x7258c7||_0x2c83ee(_0x7258c7);};}export class RestoreRevisionCommand extends _0x2b2784{constructor(_0x2a21c0){super(_0x2a21c0);const _0x139a60=_0x2a21c0[_0x1925('0x78')]['get'](d);this[_0x1925('0x50')]=!0x1,this['listenTo'](_0x139a60,_0x1925('0x33'),()=>this[_0x1925('0xda')]()),this[_0x1925('0x45')](_0x139a60,'change:isEnabled',()=>this['refresh']());}[_0x1925('0x100')](){const _0x27b499=this[_0x1925('0x17')],_0x4da3cf=_0x27b499[_0x1925('0x78')][_0x1925('0xbb')](d),_0x54dfcf=_0x4da3cf[_0x1925('0x92')]?_0x4da3cf[_0x1925('0x2')][_0x1925('0x119')]:null;_0x27b499[_0x1925('0xfd')][_0x1925('0xbb')](_0x1925('0x116'))[_0x1925('0x53')](_0x54dfcf);}[_0x1925('0xda')](){const {isReady:_0x197a67,isEnabled:_0x4fdb84}=this[_0x1925('0x17')][_0x1925('0x78')]['get'](d);this['isEnabled']=_0x197a67&&_0x4fdb84;}}export class ShowChangeCommand extends _0x2b2784{constructor(_0x39c197,{direction:_0x452d30}){super(_0x39c197);const _0xd13812=_0x39c197[_0x1925('0x78')][_0x1925('0xbb')](d);this[_0x1925('0x50')]=!0x1,this['_step']=_0x1925('0xc0')===_0x452d30?0x1:-0x1,this[_0x1925('0x45')](_0xd13812,_0x1925('0x33'),()=>this[_0x1925('0xda')]()),this[_0x1925('0x45')](_0xd13812,_0x1925('0x2d'),()=>this['refresh']()),this[_0x1925('0x45')](_0xd13812,_0x1925('0x77'),()=>this[_0x1925('0xda')]());}['execute'](){const _0x503b72=this[_0x1925('0x17')],_0x4e3984=_0x503b72[_0x1925('0x78')][_0x1925('0xbb')](d),{isNavigationMode:_0x222bf7,currentChangeNumber:_0x2669b9}=_0x4e3984;let _0x3450fd;if(_0x4e3984['activeChange']=_0x222bf7?_0x4e3984[_0x1925('0x2')]['changes'][_0x1925('0xbb')](_0x2669b9+this[_0x1925('0x35')]):_0x4e3984[_0x1925('0x2')][_0x1925('0x25')][_0x1925('0xb6')],_0x4e3984[_0x1925('0xb7')][_0x1925('0xd1')][_0x1925('0xf8')])_0x3450fd=_0x503b72['editing'][_0x1925('0xa5')][_0x1925('0x69')](_0x4e3984[_0x1925('0xb7')][_0x1925('0x123')]);else{const _0x595596=_0x503b72[_0x1925('0xf6')][_0x1925('0xe3')][_0x1925('0xbb')](_0x1925('0x22')+_0x4e3984['activeChange']['id']);_0x3450fd=_0x2309da(_0x503b72[_0x1925('0x3c')],_0x595596);}_0x5dd962({'target':_0x3450fd,'viewportOffset':0x28});}[_0x1925('0xda')](){const {isNavigationMode:_0x1abca7,currentChangeNumber:_0x1c3b8c,numberOfChanges:_0x29938a,isReady:_0x7285b8,isEnabled:_0xcd65c8}=this[_0x1925('0x17')]['plugins']['get'](d);this['isEnabled']=!!(_0xcd65c8&&_0x7285b8&&_0x29938a)&&(!_0x1abca7||(0x1===this[_0x1925('0x35')]?_0x1c3b8c<_0x29938a-0x1:_0x1c3b8c>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x19c7=['Restore\x20this\x20revision','first','execute','button','ck-revision-history-sidebar__revision__actions','name','source','model','action','items','isOpen','panelPosition','add','_action','bind','Name\x20this\x20revision','isEnabled','listView','threeVerticalDots','ck-on','extendTemplate','locale','listenTo','map','isVisible','bindTemplate','class','isActionsDropdownOpen'];(function(_0x5b9a95,_0x19c7d1){const _0x571f96=function(_0x1111d9){while(--_0x1111d9){_0x5b9a95['push'](_0x5b9a95['shift']());}};_0x571f96(++_0x19c7d1);}(_0x19c7,0x1e5));const _0x571f=function(_0x5b9a95,_0x19c7d1){_0x5b9a95=_0x5b9a95-0x0;let _0x571f96=_0x19c7[_0x5b9a95];return _0x571f96;};import{Collection as _0x12e7ab}from'ckeditor5/src/utils';import{icons as _0x5162e2}from'ckeditor5/src/core';import{Model as _0xad0787,addListToDropdown as _0x148034,createDropdown as _0x400aba}from'ckeditor5/src/ui';import{getTranslation as _0x45a3ad}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x63f771,_0x3a6785){const _0xf8534b=_0x63f771[_0x571f('0x10')],_0x2f5af4=_0x63f771[_0x571f('0xc')],_0x232aa3=_0x400aba(_0x2f5af4);_0x232aa3[_0x571f('0x2')]='sw';const _0xddc093=function(_0x42158b,_0xd9cd95){const _0x369627=function(_0x1b38b6,_0x57caa7){const _0x3697d1=_0x1b38b6[_0x571f('0xc')],_0x29176a={'Compare\x20against\x20selected':_0x45a3ad(_0x3697d1,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x45a3ad(_0x3697d1,_0x571f('0x6')),'Restore\x20this\x20revision':_0x45a3ad(_0x3697d1,_0x571f('0x13'))};return _0x57caa7[_0x571f('0xe')](_0x4b1eec=>{const _0x3778bf=_0x29176a[_0x4b1eec['name']];return _0x3778bf&&_0x3778bf!==_0x4b1eec['name']&&(_0x4b1eec[_0x571f('0x18')]=_0x3778bf),_0x4b1eec;});}(_0x42158b,_0xd9cd95),_0x1034fc=new _0x12e7ab();for(const _0x3af24f of _0x369627){const _0x18990d={'type':_0x571f('0x16'),'model':new _0xad0787({'label':_0x3af24f[_0x571f('0x18')],'class':_0x3af24f[_0x571f('0x11')],'withText':!0x0,'_action':_0x3af24f['action']})};_0x18990d[_0x571f('0x1a')]['bind'](_0x571f('0x7'))['to'](_0x42158b,_0x571f('0x12'),_0x4188c5=>'function'!=typeof _0x3af24f[_0x571f('0x7')]||(!_0x4188c5||_0x3af24f[_0x571f('0x7')](_0x42158b))),_0x1034fc[_0x571f('0x3')](_0x18990d);}return _0x1034fc;}(_0x63f771,_0x3a6785);return _0x63f771[_0x571f('0x5')](_0x571f('0x12'))['to'](_0x232aa3,_0x571f('0x1')),_0x232aa3['buttonView']['set']({'label':_0x45a3ad(_0x2f5af4,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5162e2[_0x571f('0x9')]}),_0x232aa3[_0x571f('0xb')]({'attributes':{'class':[_0x571f('0x17'),_0xf8534b['if'](_0x571f('0x12'),_0x571f('0xa'))]},'on':{'click':_0xf8534b['to'](_0x19c447=>_0x19c447['stopPropagation']())}}),_0x232aa3['on'](_0x571f('0x15'),_0x171b27=>{_0x63f771['isReady']&&'function'==typeof _0x171b27['source']['_action']&&_0x171b27[_0x571f('0x19')][_0x571f('0x4')](_0x63f771);}),_0x148034(_0x232aa3,_0xddc093),_0x232aa3[_0x571f('0xd')](_0x63f771,'change:isActionsDropdownOpen',(_0x2e1c7b,_0x57a1ad,_0x39f5d5)=>{if(_0x39f5d5)for(const _0x32e88f of _0x232aa3[_0x571f('0x8')][_0x571f('0x0')]){const _0x287f8e=_0x32e88f['children'][_0x571f('0x14')],_0x162569=_0x3a6785['find'](_0x36a051=>_0x36a051[_0x571f('0x1b')]===_0x287f8e[_0x571f('0x4')])['isVisible'];_0x32e88f[_0x571f('0xf')]=void 0x0===_0x162569||_0x162569(_0x63f771);}}),_0x232aa3;}
23
+ const _0x3b0a=['isOpen','isActionsDropdownOpen','Name\x20this\x20revision','listenTo','bindTemplate','first','isEnabled','Compare\x20against\x20selected','class','buttonView','children','find','items','threeVerticalDots','stopPropagation','locale','extendTemplate','map','isReady','set','source','_action','name','function','button','execute','add','ck-revision-history-sidebar__revision__actions','ck-on','panelPosition','change:isActionsDropdownOpen','bind','action'];(function(_0x29d776,_0x3b0ac9){const _0x3517a2=function(_0xcb0c3a){while(--_0xcb0c3a){_0x29d776['push'](_0x29d776['shift']());}};_0x3517a2(++_0x3b0ac9);}(_0x3b0a,0x113));const _0x3517=function(_0x29d776,_0x3b0ac9){_0x29d776=_0x29d776-0x0;let _0x3517a2=_0x3b0a[_0x29d776];return _0x3517a2;};import{Collection as _0x2116cd}from'ckeditor5/src/utils';import{icons as _0x4ec122}from'ckeditor5/src/core';import{Model as _0x54b789,addListToDropdown as _0x148ed9,createDropdown as _0xe00ce8}from'ckeditor5/src/ui';import{getTranslation as _0x5ead89}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x7f9e61,_0x446d8b){const _0x44a3e6=_0x7f9e61[_0x3517('0x1a')],_0x5ca692=_0x7f9e61[_0x3517('0x4')],_0x25dda2=_0xe00ce8(_0x5ca692);_0x25dda2[_0x3517('0x12')]='sw';const _0x305c14=function(_0x9a5f38,_0x2a0bff){const _0x13f8d1=function(_0x2decda,_0x599742){const _0x445047=_0x2decda['locale'],_0x1aa73c={'Compare\x20against\x20selected':_0x5ead89(_0x445047,_0x3517('0x1d')),'Name\x20this\x20revision':_0x5ead89(_0x445047,_0x3517('0x18')),'Restore\x20this\x20revision':_0x5ead89(_0x445047,'Restore\x20this\x20revision')};return _0x599742[_0x3517('0x6')](_0x1b710f=>{const _0x372e20=_0x1aa73c[_0x1b710f[_0x3517('0xb')]];return _0x372e20&&_0x372e20!==_0x1b710f[_0x3517('0xb')]&&(_0x1b710f[_0x3517('0xb')]=_0x372e20),_0x1b710f;});}(_0x9a5f38,_0x2a0bff),_0x13b429=new _0x2116cd();for(const _0x1ea9cb of _0x13f8d1){const _0x1b4840={'type':_0x3517('0xd'),'model':new _0x54b789({'label':_0x1ea9cb[_0x3517('0xb')],'class':_0x1ea9cb[_0x3517('0x1e')],'withText':!0x0,'_action':_0x1ea9cb[_0x3517('0x15')]})};_0x1b4840['model'][_0x3517('0x14')](_0x3517('0x1c'))['to'](_0x9a5f38,_0x3517('0x17'),_0x4eecde=>_0x3517('0xc')!=typeof _0x1ea9cb[_0x3517('0x1c')]||(!_0x4eecde||_0x1ea9cb[_0x3517('0x1c')](_0x9a5f38))),_0x13b429[_0x3517('0xf')](_0x1b4840);}return _0x13b429;}(_0x7f9e61,_0x446d8b);return _0x7f9e61[_0x3517('0x14')](_0x3517('0x17'))['to'](_0x25dda2,_0x3517('0x16')),_0x25dda2[_0x3517('0x1f')][_0x3517('0x8')]({'label':_0x5ead89(_0x5ca692,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4ec122[_0x3517('0x2')]}),_0x25dda2[_0x3517('0x5')]({'attributes':{'class':[_0x3517('0x10'),_0x44a3e6['if'](_0x3517('0x17'),_0x3517('0x11'))]},'on':{'click':_0x44a3e6['to'](_0x1d751e=>_0x1d751e[_0x3517('0x3')]())}}),_0x25dda2['on'](_0x3517('0xe'),_0x1133d4=>{_0x7f9e61[_0x3517('0x7')]&&_0x3517('0xc')==typeof _0x1133d4[_0x3517('0x9')]['_action']&&_0x1133d4['source'][_0x3517('0xa')](_0x7f9e61);}),_0x148ed9(_0x25dda2,_0x305c14),_0x25dda2[_0x3517('0x19')](_0x7f9e61,_0x3517('0x13'),(_0x551d33,_0x3f7f47,_0x5c0368)=>{if(_0x5c0368)for(const _0x3ba610 of _0x25dda2['listView'][_0x3517('0x1')]){const _0x2b3107=_0x3ba610[_0x3517('0x20')][_0x3517('0x1b')],_0x4a07e2=_0x446d8b[_0x3517('0x0')](_0x503d36=>_0x503d36[_0x3517('0x15')]===_0x2b3107[_0x3517('0xa')])['isVisible'];_0x3ba610['isVisible']=void 0x0===_0x4a07e2||_0x4a07e2(_0x7f9e61);}}),_0x25dda2;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16cf=['Revision\x20author','set','setTemplate','push','0\x200\x2011\x2010','Revision\x20creator','ck-revision-history-sidebar__revision-author','span','ck-revision-history-sidebar__revision-author_creator'];(function(_0x239a36,_0x16cf04){const _0x50d83b=function(_0x540945){while(--_0x540945){_0x239a36['push'](_0x239a36['shift']());}};_0x50d83b(++_0x16cf04);}(_0x16cf,0xf9));const _0x50d8=function(_0x239a36,_0x16cf04){_0x239a36=_0x239a36-0x0;let _0x50d83b=_0x16cf[_0x239a36];return _0x50d83b;};import{View as _0x4e337e,IconView as _0x1f988b}from'ckeditor5/src/ui';import{getTranslation as _0x19e059}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x16e91d from'../../../theme/icons/user.svg';export default class ti extends _0x4e337e{constructor(_0x2ce07f,_0x30b8b5,_0xc9989){super(_0x2ce07f);const _0x4f718b=new _0x1f988b();_0x4f718b[_0x50d8('0x4')]({'content':_0x16e91d,'viewBox':_0x50d8('0x7')});const _0x370b96=['ck',_0x50d8('0x0')];_0xc9989&&_0x370b96[_0x50d8('0x6')](_0x50d8('0x2'));const _0x8b7a8c=[{'tag':_0x50d8('0x1'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x19e059(_0x2ce07f,_0xc9989?_0x50d8('0x8'):_0x50d8('0x3'))},'children':[_0x4f718b,_0x30b8b5['name']]}];this[_0x50d8('0x5')]({'tag':'li','attributes':{'class':_0x370b96},'children':_0x8b7a8c});}}
23
+ const _0x23d9=['span','Revision\x20creator','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author__name','ck-revision-history-sidebar__revision-author','push','setTemplate'];(function(_0xa9391b,_0x23d90a){const _0x57e72c=function(_0x3dc70a){while(--_0x3dc70a){_0xa9391b['push'](_0xa9391b['shift']());}};_0x57e72c(++_0x23d90a);}(_0x23d9,0x90));const _0x57e7=function(_0xa9391b,_0x23d90a){_0xa9391b=_0xa9391b-0x0;let _0x57e72c=_0x23d9[_0xa9391b];return _0x57e72c;};import{View as _0x3802f2,IconView as _0x57f4b9}from'ckeditor5/src/ui';import{getTranslation as _0x511cff}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x3c91d9 from'../../../theme/icons/user.svg';export default class ti extends _0x3802f2{constructor(_0x33bd21,_0x37926c,_0xb6180){super(_0x33bd21);const _0x879733=new _0x57f4b9();_0x879733['set']({'content':_0x3c91d9,'viewBox':_0x57e7('0x5')});const _0x2c3c97=['ck',_0x57e7('0x0')];_0xb6180&&_0x2c3c97[_0x57e7('0x1')]('ck-revision-history-sidebar__revision-author_creator');const _0x3b09bf=[{'tag':_0x57e7('0x3'),'attributes':{'class':['ck',_0x57e7('0x6')],'title':_0x511cff(_0x33bd21,_0xb6180?_0x57e7('0x4'):'Revision\x20author')},'children':[_0x879733,_0x37926c['name']]}];this[_0x57e7('0x2')]({'tag':'li','attributes':{'class':_0x2c3c97},'children':_0x3b09bf});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xe29c=['extendTemplate','span','set'];(function(_0x11b065,_0xe29c6f){var _0x271674=function(_0x1a8959){while(--_0x1a8959){_0x11b065['push'](_0x11b065['shift']());}};_0x271674(++_0xe29c6f);}(_0xe29c,0xae));var _0x2716=function(_0x11b065,_0xe29c6f){_0x11b065=_0x11b065-0x0;var _0x271674=_0xe29c[_0x11b065];return _0x271674;};import{LabeledFieldView as _0x454234}from'ckeditor5/src/ui';import{getTranslation as _0x237d73}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x454234{constructor(_0x4ceee1,_0x4005b6){super(_0x4ceee1,_0x4005b6),this[_0x2716('0x2')]({'label':_0x237d73(_0x4ceee1,'Revision\x20name')}),this[_0x2716('0x0')]({'tag':_0x2716('0x1'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
23
+ var _0x3aea=['Revision\x20name','set','extendTemplate'];(function(_0x440d00,_0x3aeaec){var _0x116740=function(_0x1c7e19){while(--_0x1c7e19){_0x440d00['push'](_0x440d00['shift']());}};_0x116740(++_0x3aeaec);}(_0x3aea,0x75));var _0x1167=function(_0x440d00,_0x3aeaec){_0x440d00=_0x440d00-0x0;var _0x116740=_0x3aea[_0x440d00];return _0x116740;};import{LabeledFieldView as _0x42ce86}from'ckeditor5/src/ui';import{getTranslation as _0x874bf0}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x42ce86{constructor(_0x51ddca,_0x1aad38){super(_0x51ddca,_0x1aad38),this[_0x1167('0x1')]({'label':_0x874bf0(_0x51ddca,_0x1167('0x0'))}),this[_0x1167('0x2')]({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d5e=['ck-revision-history-sidebar__revision_highlighted','set','ck-revision-history-sidebar__revision__controls-wrapper','isEnabled','bindTemplate','srcElement','ck-disabled','createdAt','length','setTemplate','fire','unshift','isSelected','map','render','select','_createdAtFormatted','name','closest','creator','isReady','isConfirm','isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open','filter','bind','extendTemplate','change','revisionActionsView','ck-revision-history-sidebar__revision','isHighlighted','value','ck-revision-history-sidebar__revision_selected','placeholder','authors','ck-reset','span','ck-revision-history-sidebar__revision__date','revisionNameView','deselect','uiLanguage','fieldView','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__revision-wrapper','div','ck-revision-history-sidebar__revision-authors'];(function(_0x94e21,_0x5d5eba){const _0x4a5264=function(_0x5b6d33){while(--_0x5b6d33){_0x94e21['push'](_0x94e21['shift']());}};_0x4a5264(++_0x5d5eba);}(_0x5d5e,0x66));const _0x4a52=function(_0x94e21,_0x5d5eba){_0x94e21=_0x94e21-0x0;let _0x4a5264=_0x5d5e[_0x94e21];return _0x4a5264;};import{View as _0xe94adb,createLabeledInputText as _0x2c91eb}from'ckeditor5/src/ui';import{ConfirmMixin as _0x115e0f}from'ckeditor5-collaboration/src/collaboration-core';import _0x175bb2 from'./revisionnameview';import _0x5edd67 from'./revisionauthorview';import{dateToPrettyFormat as _0x1b46d3}from'./utils';import{createActionsDropdownView as _0x4a727f}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x115e0f(_0xe94adb){constructor(_0x29cc31,_0x297b07,_0x3b7282){super(_0x29cc31);const _0x527c09=this[_0x4a52('0x28')],_0x1c3d31=function(_0xb2d760,_0xd6a9e6){const _0x1343cb=Array['from'](_0xd6a9e6[_0x4a52('0x18')])[_0x4a52('0xe')](_0x52ae61=>_0x52ae61!=_0xd6a9e6['creator']);return _0xd6a9e6[_0x4a52('0x9')]&&_0x1343cb[_0x4a52('0x1')](_0xd6a9e6[_0x4a52('0x9')]),_0x1343cb[_0x4a52('0x3')](_0xea6d73=>new _0x5edd67(_0xb2d760,_0xea6d73,_0xea6d73==_0xd6a9e6[_0x4a52('0x9')]));}(_0x29cc31,_0x297b07);this['id']=_0x297b07['id'],this['_revision']=_0x297b07,this[_0x4a52('0xf')](_0x4a52('0x7'),_0x4a52('0x2b'))['to'](_0x297b07),this['bind'](_0x4a52('0x6'))['to'](this,'createdAt',_0x1b9f18=>_0x1b9f18?_0x1b46d3(_0x29cc31[_0x4a52('0x1e')],_0x1b9f18):void 0x0),this[_0x4a52('0x25')]('isSelected',!0x1),this[_0x4a52('0x25')](_0x4a52('0x14'),!0x1),this[_0x4a52('0x25')](_0x4a52('0xc'),!0x1),this['set']('isReady',!0x1),this[_0x4a52('0x25')](_0x4a52('0x27'),!0x1),this[_0x4a52('0x1c')]=new _0x175bb2(_0x29cc31,_0x2c91eb),this[_0x4a52('0x1c')][_0x4a52('0x1f')][_0x4a52('0x10')]({'attributes':{'maxlength':'220'}}),this[_0x4a52('0x1c')][_0x4a52('0x1f')]['bind'](_0x4a52('0x15'),_0x4a52('0x17'))['to'](this,_0x4a52('0x7'),_0x4a52('0x6')),this[_0x4a52('0x1c')][_0x4a52('0xf')](_0x4a52('0x27'))['to'](this,_0x4a52('0x2'),this,_0x4a52('0x27'),(_0x2c6c64,_0x2110ac)=>_0x2c6c64&&_0x2110ac),this['revisionActionsView']=_0x3b7282&&_0x3b7282[_0x4a52('0x2c')]?_0x4a727f(this,_0x3b7282):'',this[_0x4a52('0x12')]&&this[_0x4a52('0x12')]['bind'](_0x4a52('0x27'))['to'](this),this[_0x4a52('0x2d')]({'tag':_0x4a52('0x22'),'attributes':{'class':['ck',_0x4a52('0x19'),_0x4a52('0x21'),_0x527c09['if'](_0x4a52('0xb'),_0x4a52('0x20'))]},'children':[{'tag':_0x4a52('0x22'),'attributes':{'class':['ck',_0x4a52('0x19'),_0x4a52('0x13'),_0x527c09['if'](_0x4a52('0x27'),_0x4a52('0x2a'),_0x56f168=>!_0x56f168),_0x527c09['if'](_0x4a52('0x2'),_0x4a52('0x16')),_0x527c09['if'](_0x4a52('0x14'),_0x4a52('0x24')),_0x527c09['if'](_0x4a52('0xc'),_0x4a52('0xd'))]},'children':[this[_0x4a52('0x1c')],{'tag':_0x4a52('0x1a'),'attributes':{'class':['ck',_0x4a52('0x1b')]},'children':[{'text':_0x527c09['to']('_createdAtFormatted')}]},{'tag':_0x4a52('0x22'),'attributes':{'class':['ck',_0x4a52('0x26')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x4a52('0x23')]},'children':_0x1c3d31}]},this[_0x4a52('0x12')]],'on':{'click':_0x527c09['to'](_0x3293fd=>{_0x3293fd[_0x4a52('0x29')][_0x4a52('0x8')]('.ck-thread__remove-confirm')||this[_0x4a52('0xa')]&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}[_0x4a52('0x4')](){super['render']();const _0x54f002=this[_0x4a52('0x1c')]['fieldView']['element'];this['listenTo'](_0x54f002,_0x4a52('0x11'),()=>{this[_0x4a52('0x0')]('setName',{'id':this['id'],'name':_0x54f002[_0x4a52('0x15')]});});}[_0x4a52('0x5')](){this[_0x4a52('0x2')]=!0x0;}[_0x4a52('0x1d')](){this[_0x4a52('0x2')]=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this[_0x4a52('0x14')]=!0x1;}}
23
+ const _0x488e=['.ck-thread__remove-confirm','bind','_revision','closest','fire','fieldView','isConfirm','setName','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__revision','placeholder','ck-revision-history-sidebar__revision__date','isSelected','unshift','creator','bindTemplate','isReady','listenTo','revisionActionsView','unhighlight','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','srcElement','setTemplate','_createdAtFormatted','select','change','filter','from','name','revisionNameView','isEnabled','value','render','span','ck-revision-history-sidebar__revision_highlighted','set','ck-revision-history-sidebar__revision_selected','isHighlighted','extendTemplate','deselect','div','map','element'];(function(_0x34b186,_0x488e82){const _0x221ef7=function(_0x1c661c){while(--_0x1c661c){_0x34b186['push'](_0x34b186['shift']());}};_0x221ef7(++_0x488e82);}(_0x488e,0x141));const _0x221e=function(_0x34b186,_0x488e82){_0x34b186=_0x34b186-0x0;let _0x221ef7=_0x488e[_0x34b186];return _0x221ef7;};import{View as _0xafcf46,createLabeledInputText as _0x56f851}from'ckeditor5/src/ui';import{ConfirmMixin as _0x1df686}from'ckeditor5-collaboration/src/collaboration-core';import _0x92092a from'./revisionnameview';import _0x1c9c54 from'./revisionauthorview';import{dateToPrettyFormat as _0x3a2f7d}from'./utils';import{createActionsDropdownView as _0x113fca}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x1df686(_0xafcf46){constructor(_0x1e3182,_0x4e2fba,_0x525ce4){super(_0x1e3182);const _0x5c6c9b=this[_0x221e('0x26')],_0x2c85a9=function(_0x1043be,_0x377427){const _0x2f57ac=Array[_0x221e('0x7')](_0x377427['authors'])[_0x221e('0x6')](_0x289282=>_0x289282!=_0x377427[_0x221e('0x25')]);return _0x377427[_0x221e('0x25')]&&_0x2f57ac[_0x221e('0x24')](_0x377427[_0x221e('0x25')]),_0x2f57ac[_0x221e('0x15')](_0x3e0977=>new _0x1c9c54(_0x1043be,_0x3e0977,_0x3e0977==_0x377427[_0x221e('0x25')]));}(_0x1e3182,_0x4e2fba);this['id']=_0x4e2fba['id'],this[_0x221e('0x19')]=_0x4e2fba,this['bind'](_0x221e('0x8'),'createdAt')['to'](_0x4e2fba),this[_0x221e('0x18')]('_createdAtFormatted')['to'](this,'createdAt',_0x1b7ba4=>_0x1b7ba4?_0x3a2f7d(_0x1e3182['uiLanguage'],_0x1b7ba4):void 0x0),this[_0x221e('0xf')](_0x221e('0x23'),!0x1),this[_0x221e('0xf')]('isHighlighted',!0x1),this[_0x221e('0xf')]('isActionsDropdownOpen',!0x1),this[_0x221e('0xf')](_0x221e('0x27'),!0x1),this[_0x221e('0xf')](_0x221e('0xa'),!0x1),this['revisionNameView']=new _0x92092a(_0x1e3182,_0x56f851),this[_0x221e('0x9')]['fieldView'][_0x221e('0x12')]({'attributes':{'maxlength':'220'}}),this[_0x221e('0x9')][_0x221e('0x1c')]['bind'](_0x221e('0xb'),_0x221e('0x21'))['to'](this,_0x221e('0x8'),_0x221e('0x3')),this[_0x221e('0x9')][_0x221e('0x18')](_0x221e('0xa'))['to'](this,_0x221e('0x23'),this,'isEnabled',(_0x5a431a,_0x192912)=>_0x5a431a&&_0x192912),this[_0x221e('0x29')]=_0x525ce4&&_0x525ce4['length']?_0x113fca(this,_0x525ce4):'',this[_0x221e('0x29')]&&this[_0x221e('0x29')]['bind'](_0x221e('0xa'))['to'](this),this[_0x221e('0x2')]({'tag':_0x221e('0x14'),'attributes':{'class':['ck','ck-reset',_0x221e('0x1f'),_0x5c6c9b['if'](_0x221e('0x1d'),_0x221e('0x0'))]},'children':[{'tag':_0x221e('0x14'),'attributes':{'class':['ck','ck-reset',_0x221e('0x20'),_0x5c6c9b['if'](_0x221e('0xa'),'ck-disabled',_0x42bebc=>!_0x42bebc),_0x5c6c9b['if'](_0x221e('0x23'),_0x221e('0x10')),_0x5c6c9b['if'](_0x221e('0x11'),_0x221e('0xe')),_0x5c6c9b['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x221e('0x9')],{'tag':_0x221e('0xd'),'attributes':{'class':['ck',_0x221e('0x22')]},'children':[{'text':_0x5c6c9b['to'](_0x221e('0x3'))}]},{'tag':_0x221e('0x14'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x2c85a9}]},this[_0x221e('0x29')]],'on':{'click':_0x5c6c9b['to'](_0x20bd84=>{_0x20bd84[_0x221e('0x1')][_0x221e('0x1a')](_0x221e('0x17'))||this['isReady']&&this[_0x221e('0xa')]&&this[_0x221e('0x1b')]('select',{'id':this['id']});})}}]});}['render'](){super[_0x221e('0xc')]();const _0xd05719=this['revisionNameView'][_0x221e('0x1c')][_0x221e('0x16')];this[_0x221e('0x28')](_0xd05719,_0x221e('0x5'),()=>{this['fire'](_0x221e('0x1e'),{'id':this['id'],'name':_0xd05719[_0x221e('0xb')]});});}[_0x221e('0x4')](){this[_0x221e('0x23')]=!0x0;}[_0x221e('0x13')](){this[_0x221e('0x23')]=!0x1;}['highlight'](){this[_0x221e('0x11')]=!0x0;}[_0x221e('0x2a')](){this[_0x221e('0x11')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36b6=['setTemplate','button','_isCollapsed','span','false','ck-revision-history-sidebar__subrevision-collapser__inner','ck-hidden','toggle','isVisible','set','ck-revision-history-sidebar__subrevision-collapser_collapsed','ck-revision-history-sidebar__subrevision-collapser','true'];(function(_0xf0592c,_0x36b6d9){const _0xe56f30=function(_0xa3943){while(--_0xa3943){_0xf0592c['push'](_0xf0592c['shift']());}};_0xe56f30(++_0x36b6d9);}(_0x36b6,0xa3));const _0xe56f=function(_0xf0592c,_0x36b6d9){_0xf0592c=_0xf0592c-0x0;let _0xe56f30=_0x36b6[_0xf0592c];return _0xe56f30;};import{View as _0x4b6402}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x4b6402{constructor(_0x206c09){super(_0x206c09);const _0x303a2a=this['bindTemplate'];this[_0xe56f('0x2')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0xe56f('0x6')]({'tag':_0xe56f('0x9'),'attributes':{'class':['ck',_0xe56f('0x4'),_0x303a2a['if'](_0xe56f('0x1'),_0xe56f('0xc'),_0x38cb16=>!_0x38cb16),_0x303a2a['if']('_isCollapsed',_0xe56f('0x3'))],'role':_0xe56f('0x7'),'aria-pressed':_0x303a2a['to'](_0xe56f('0x8'),_0x582fdb=>_0x582fdb?_0xe56f('0xa'):_0xe56f('0x5'))},'children':[{'tag':_0xe56f('0x9'),'attributes':{'class':['ck',_0xe56f('0xb')]}}],'on':{'click':_0x303a2a['to']('click')}});}[_0xe56f('0x0')](){this[_0xe56f('0x8')]=!this['_isCollapsed'];}}
23
+ const _0x5b22=['ck-hidden','_isCollapsed','click','ck-revision-history-sidebar__subrevision-collapser__inner','ck-revision-history-sidebar__subrevision-collapser_collapsed','span','bindTemplate','button','true'];(function(_0x2f65a4,_0x5b2239){const _0x1bb419=function(_0x4ef427){while(--_0x4ef427){_0x2f65a4['push'](_0x2f65a4['shift']());}};_0x1bb419(++_0x5b2239);}(_0x5b22,0x12b));const _0x1bb4=function(_0x2f65a4,_0x5b2239){_0x2f65a4=_0x2f65a4-0x0;let _0x1bb419=_0x5b22[_0x2f65a4];return _0x1bb419;};import{View as _0x3c0a86}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x3c0a86{constructor(_0x12cd4c){super(_0x12cd4c);const _0x4a1af5=this[_0x1bb4('0x4')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x1bb4('0x3'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x4a1af5['if']('isVisible',_0x1bb4('0x7'),_0x242c2c=>!_0x242c2c),_0x4a1af5['if'](_0x1bb4('0x8'),_0x1bb4('0x2'))],'role':_0x1bb4('0x5'),'aria-pressed':_0x4a1af5['to'](_0x1bb4('0x8'),_0xf0648b=>_0xf0648b?'false':_0x1bb4('0x6'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x1bb4('0x1')]}}],'on':{'click':_0x4a1af5['to'](_0x1bb4('0x0'))}});}['toggle'](){this['_isCollapsed']=!this[_0x1bb4('0x8')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3117=['div','bind','_createdAtFormatted','uiLanguage','ck-reset','isSelected','fire','_parentRevisionId','createdAt','bindTemplate','select','deselect','ck-revision-history-sidebar__revision','setTemplate','creator'];(function(_0x5252ea,_0x311751){const _0x49c9c4=function(_0x256b21){while(--_0x256b21){_0x5252ea['push'](_0x5252ea['shift']());}};_0x49c9c4(++_0x311751);}(_0x3117,0x1be));const _0x49c9=function(_0x5252ea,_0x311751){_0x5252ea=_0x5252ea-0x0;let _0x49c9c4=_0x3117[_0x5252ea];return _0x49c9c4;};import{View as _0x2b7cdf}from'ckeditor5/src/ui';import _0x5620c9 from'./revisionauthorview';import{dateToPrettyFormat as _0x40142e}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x2b7cdf{constructor(_0x33824e,_0x5c828a,_0x50d4fe){super(_0x33824e);const _0x625dfc=this[_0x49c9('0xd')];this['id']=_0x5c828a['id'],this[_0x49c9('0x5')](_0x49c9('0xc'))['to'](_0x5c828a),this['set'](_0x49c9('0x9'),!0x1),this[_0x49c9('0x5')](_0x49c9('0x6'))['to'](this,_0x49c9('0xc'),_0x38b7ab=>_0x38b7ab?_0x40142e(_0x33824e[_0x49c9('0x7')],_0x38b7ab):void 0x0),this[_0x49c9('0xb')]=_0x50d4fe,this[_0x49c9('0x2')]({'tag':_0x49c9('0x4'),'attributes':{'class':['ck',_0x49c9('0x8'),_0x49c9('0x1'),'ck-revision-history-sidebar__subrevision',_0x625dfc['if'](_0x49c9('0x9'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x625dfc['to'](_0x49c9('0x6'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x5620c9(_0x33824e,_0x5c828a[_0x49c9('0x3')],!0x0)]}],'on':{'click':_0x625dfc['to'](this['select']['bind'](this))}});}[_0x49c9('0xe')](){this[_0x49c9('0x9')]=!0x0,this[_0x49c9('0xa')](_0x49c9('0xe'),{'parentId':this['_parentRevisionId']});}[_0x49c9('0x0')](){this[_0x49c9('0x9')]=!0x1;}}
23
+ const _0x3ddd=['_createdAtFormatted','ck-revision-history-sidebar__revision__date','isSelected','fire','ck-revision-history-sidebar__revision_selected','div','span','ck-revision-history-sidebar__revision','select','bind','uiLanguage','bindTemplate','setTemplate','_parentRevisionId','ck-reset','createdAt','creator'];(function(_0x2b9496,_0x3ddd6b){const _0x4af4d=function(_0x157f54){while(--_0x157f54){_0x2b9496['push'](_0x2b9496['shift']());}};_0x4af4d(++_0x3ddd6b);}(_0x3ddd,0x11b));const _0x4af4=function(_0x2b9496,_0x3ddd6b){_0x2b9496=_0x2b9496-0x0;let _0x4af4d=_0x3ddd[_0x2b9496];return _0x4af4d;};import{View as _0x3585ff}from'ckeditor5/src/ui';import _0x2e66f1 from'./revisionauthorview';import{dateToPrettyFormat as _0x2f78da}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x3585ff{constructor(_0x317e08,_0x4a4c90,_0x5a5aba){super(_0x317e08);const _0x3664bb=this[_0x4af4('0x0')];this['id']=_0x4a4c90['id'],this['bind']('createdAt')['to'](_0x4a4c90),this['set'](_0x4af4('0x8'),!0x1),this[_0x4af4('0xf')](_0x4af4('0x6'))['to'](this,_0x4af4('0x4'),_0x3845d1=>_0x3845d1?_0x2f78da(_0x317e08[_0x4af4('0x10')],_0x3845d1):void 0x0),this['_parentRevisionId']=_0x5a5aba,this[_0x4af4('0x1')]({'tag':_0x4af4('0xb'),'attributes':{'class':['ck',_0x4af4('0x3'),_0x4af4('0xd'),'ck-revision-history-sidebar__subrevision',_0x3664bb['if'](_0x4af4('0x8'),_0x4af4('0xa'))]},'children':[{'tag':_0x4af4('0xc'),'attributes':{'class':['ck',_0x4af4('0x7')]},'children':[{'text':_0x3664bb['to'](_0x4af4('0x6'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x2e66f1(_0x317e08,_0x4a4c90[_0x4af4('0x5')],!0x0)]}],'on':{'click':_0x3664bb['to'](this['select'][_0x4af4('0xf')](this))}});}[_0x4af4('0xe')](){this['isSelected']=!0x0,this[_0x4af4('0x9')]('select',{'parentId':this[_0x4af4('0x2')]});}['deselect'](){this['isSelected']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x48de=['numeric','toLocaleTimeString','toLocaleDateString','long'];(function(_0x2cdef6,_0x48dee5){var _0x497513=function(_0x9d8eb0){while(--_0x9d8eb0){_0x2cdef6['push'](_0x2cdef6['shift']());}};_0x497513(++_0x48dee5);}(_0x48de,0x120));var _0x4975=function(_0x2cdef6,_0x48dee5){_0x2cdef6=_0x2cdef6-0x0;var _0x497513=_0x48de[_0x2cdef6];return _0x497513;};export function dateToPrettyFormat(_0x2c568f,_0x1c4780){return _0x1c4780[_0x4975('0x2')](_0x2c568f,{'month':_0x4975('0x3'),'day':_0x4975('0x0')})+',\x20'+_0x1c4780[_0x4975('0x1')](_0x2c568f,{'hour':_0x4975('0x0'),'minute':_0x4975('0x0')});}
23
+ var _0x24d2=['long','toLocaleDateString','numeric'];(function(_0xaf8e3c,_0x24d227){var _0x20817c=function(_0x16e566){while(--_0x16e566){_0xaf8e3c['push'](_0xaf8e3c['shift']());}};_0x20817c(++_0x24d227);}(_0x24d2,0x92));var _0x2081=function(_0xaf8e3c,_0x24d227){_0xaf8e3c=_0xaf8e3c-0x0;var _0x20817c=_0x24d2[_0xaf8e3c];return _0x20817c;};export function dateToPrettyFormat(_0x495238,_0x340c6c){return _0x340c6c[_0x2081('0x2')](_0x495238,{'month':_0x2081('0x1'),'day':'numeric'})+',\x20'+_0x340c6c['toLocaleTimeString'](_0x495238,{'hour':_0x2081('0x0'),'minute':'numeric'});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2fa6=['focusFirst','set','keystrokes','arrowleft','ck-revision-history-save-revision-form','Save','type','locale','reset','revisionNameInputView','revisionName','arrowright','_focusCycler','stopPropagation','cancelButtonView','label','cancel','execute','arrowup','render','_createButton','revisionNameInputValue','ck-button-cancel','saveButtonView','listenTo','add','trim','ck-button-save','element','focusTracker','arrowdown','delegate','Cancel','fieldView','_focusables','220','extendTemplate','value','submit','_createRevisionNameInput','focus','form'];(function(_0x37c434,_0x2fa631){const _0x5a28ea=function(_0x1cae31){while(--_0x1cae31){_0x37c434['push'](_0x37c434['shift']());}};_0x5a28ea(++_0x2fa631);}(_0x2fa6,0x14e));const _0x5a28=function(_0x37c434,_0x2fa631){_0x37c434=_0x37c434-0x0;let _0x5a28ea=_0x2fa6[_0x37c434];return _0x5a28ea;};import{icons as _0x52f283}from'ckeditor5/src/core';import{ButtonView as _0x1e3fef,FocusCycler as _0x543aad,LabeledFieldView as _0x2d96e3,View as _0x1e6ff5,ViewCollection as _0x348747,createLabeledInputText as _0x5a8223,injectCssTransitionDisabler as _0x35b114,submitHandler as _0x3ef2df}from'ckeditor5/src/ui';import{FocusTracker as _0x5225dc,KeystrokeHandler as _0x5181b5}from'ckeditor5/src/utils';import{getTranslation as _0x29f46b}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x1e6ff5{constructor(_0x4d802d){super(_0x4d802d),this[_0x5a28('0x1f')]=new _0x5225dc(),this[_0x5a28('0x4')]=new _0x5181b5(),this[_0x5a28('0x3')]('revisionNameInputValue',''),this[_0x5a28('0xb')]=this['_createRevisionNameInput'](),this['saveButtonView']=this[_0x5a28('0x16')](_0x29f46b(_0x4d802d,_0x5a28('0x7')),_0x52f283['check'],_0x5a28('0x1d')),this[_0x5a28('0x19')][_0x5a28('0x8')]=_0x5a28('0x28'),this[_0x5a28('0x10')]=this[_0x5a28('0x16')](_0x29f46b(_0x4d802d,_0x5a28('0x22')),_0x52f283[_0x5a28('0x12')],_0x5a28('0x18'),_0x5a28('0x12')),this[_0x5a28('0x24')]=new _0x348747(),this[_0x5a28('0xe')]=new _0x543aad({'focusables':this[_0x5a28('0x24')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x5a28('0x4')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['setTemplate']({'tag':_0x5a28('0x1'),'attributes':{'class':['ck',_0x5a28('0x6'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x5a28('0xb')],this['saveButtonView'],this[_0x5a28('0x10')]]}),_0x35b114(this);}[_0x5a28('0x15')](){super[_0x5a28('0x15')](),_0x3ef2df({'view':this}),([this[_0x5a28('0xb')],this[_0x5a28('0x19')],this['cancelButtonView']]['forEach'](_0x378569=>{this[_0x5a28('0x24')][_0x5a28('0x1b')](_0x378569),this['focusTracker']['add'](_0x378569[_0x5a28('0x1e')]);}),this[_0x5a28('0x4')][_0x5a28('0x1a')](this[_0x5a28('0x1e')]));const _0x5a5570=_0x305562=>_0x305562[_0x5a28('0xf')]();this[_0x5a28('0x4')][_0x5a28('0x3')](_0x5a28('0xd'),_0x5a5570),this['keystrokes'][_0x5a28('0x3')](_0x5a28('0x5'),_0x5a5570),this['keystrokes']['set'](_0x5a28('0x14'),_0x5a5570),this[_0x5a28('0x4')][_0x5a28('0x3')](_0x5a28('0x20'),_0x5a5570);}[_0x5a28('0x0')](){this['_focusCycler'][_0x5a28('0x2')]();}get[_0x5a28('0xc')](){return this[_0x5a28('0xb')]['fieldView'][_0x5a28('0x1e')][_0x5a28('0x27')][_0x5a28('0x1c')]();}set['revisionName'](_0x43efb7){this['revisionNameInputView'][_0x5a28('0x23')]['element'][_0x5a28('0x27')]=_0x43efb7[_0x5a28('0x1c')]();}[_0x5a28('0xa')](){this['revisionNameInputView'][_0x5a28('0x23')][_0x5a28('0x1e')][_0x5a28('0x27')]='';}[_0x5a28('0x29')](){const _0x5199fe=new _0x2d96e3(this['locale'],_0x5a8223),_0x74d41e=_0x5199fe[_0x5a28('0x23')];return _0x74d41e[_0x5a28('0x26')]({'attributes':{'maxlength':_0x5a28('0x25')}}),_0x5199fe[_0x5a28('0x11')]=_0x29f46b(this[_0x5a28('0x9')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x74d41e['on']('input',()=>{this[_0x5a28('0x17')]=_0x74d41e[_0x5a28('0x1e')][_0x5a28('0x27')][_0x5a28('0x1c')]();}),_0x5199fe;}[_0x5a28('0x16')](_0x133e4a,_0x75be74,_0x53054e,_0x134144){const _0x28ea5e=new _0x1e3fef(this[_0x5a28('0x9')]);return _0x28ea5e[_0x5a28('0x3')]({'label':_0x133e4a,'icon':_0x75be74,'tooltip':!0x0}),_0x28ea5e[_0x5a28('0x26')]({'attributes':{'class':_0x53054e}}),_0x134144&&_0x28ea5e[_0x5a28('0x21')](_0x5a28('0x13'))['to'](this,_0x134144),_0x28ea5e;}}
23
+ const _0x6407=['shift\x20+\x20tab','label','focus','ck-button-cancel','reset','220','render','listenTo','set','form','ck-revision-history-save-revision-form','Name\x20of\x20the\x20revision\x20(optional)','add','extendTemplate','revisionNameInputView','trim','_focusCycler','element','value','execute','focusTracker','cancel','ck-button-save','type','keystrokes','_createButton','ck-responsive-form','revisionName','locale','delegate','tab','cancelButtonView','revisionNameInputValue','arrowleft','saveButtonView','input','Cancel','_focusables'];(function(_0x239301,_0x6407d8){const _0x51e258=function(_0x2a3390){while(--_0x2a3390){_0x239301['push'](_0x239301['shift']());}};_0x51e258(++_0x6407d8);}(_0x6407,0xf9));const _0x51e2=function(_0x239301,_0x6407d8){_0x239301=_0x239301-0x0;let _0x51e258=_0x6407[_0x239301];return _0x51e258;};import{icons as _0x26f8db}from'ckeditor5/src/core';import{ButtonView as _0x2104c3,FocusCycler as _0x57dae3,LabeledFieldView as _0x14ec6f,View as _0x486a73,ViewCollection as _0x1da81a,createLabeledInputText as _0x3901a0,injectCssTransitionDisabler as _0x23365a,submitHandler as _0x2769bf}from'ckeditor5/src/ui';import{FocusTracker as _0x4a2e85,KeystrokeHandler as _0x19817d}from'ckeditor5/src/utils';import{getTranslation as _0x5f4456}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x486a73{constructor(_0x110995){super(_0x110995),this[_0x51e2('0x25')]=new _0x4a2e85(),this['keystrokes']=new _0x19817d(),this[_0x51e2('0x19')](_0x51e2('0xb'),''),this[_0x51e2('0x1f')]=this['_createRevisionNameInput'](),this[_0x51e2('0xd')]=this[_0x51e2('0x4')](_0x5f4456(_0x110995,'Save'),_0x26f8db['check'],_0x51e2('0x1')),this[_0x51e2('0xd')][_0x51e2('0x2')]='submit',this[_0x51e2('0xa')]=this[_0x51e2('0x4')](_0x5f4456(_0x110995,_0x51e2('0xf')),_0x26f8db['cancel'],_0x51e2('0x14'),_0x51e2('0x0')),this[_0x51e2('0x10')]=new _0x1da81a(),this[_0x51e2('0x21')]=new _0x57dae3({'focusables':this['_focusables'],'focusTracker':this[_0x51e2('0x25')],'keystrokeHandler':this[_0x51e2('0x3')],'actions':{'focusPrevious':_0x51e2('0x11'),'focusNext':_0x51e2('0x9')}}),this['setTemplate']({'tag':_0x51e2('0x1a'),'attributes':{'class':['ck',_0x51e2('0x1b'),_0x51e2('0x5')],'tabindex':'-1'},'children':[this[_0x51e2('0x1f')],this[_0x51e2('0xd')],this['cancelButtonView']]}),_0x23365a(this);}['render'](){super[_0x51e2('0x17')](),_0x2769bf({'view':this}),([this[_0x51e2('0x1f')],this[_0x51e2('0xd')],this[_0x51e2('0xa')]]['forEach'](_0xdcf9b7=>{this[_0x51e2('0x10')][_0x51e2('0x1d')](_0xdcf9b7),this[_0x51e2('0x25')][_0x51e2('0x1d')](_0xdcf9b7[_0x51e2('0x22')]);}),this[_0x51e2('0x3')][_0x51e2('0x18')](this[_0x51e2('0x22')]));const _0x3d0561=_0x3cfab1=>_0x3cfab1['stopPropagation']();this[_0x51e2('0x3')][_0x51e2('0x19')]('arrowright',_0x3d0561),this[_0x51e2('0x3')][_0x51e2('0x19')](_0x51e2('0xc'),_0x3d0561),this['keystrokes']['set']('arrowup',_0x3d0561),this[_0x51e2('0x3')][_0x51e2('0x19')]('arrowdown',_0x3d0561);}[_0x51e2('0x13')](){this[_0x51e2('0x21')]['focusFirst']();}get[_0x51e2('0x6')](){return this[_0x51e2('0x1f')]['fieldView'][_0x51e2('0x22')][_0x51e2('0x23')][_0x51e2('0x20')]();}set['revisionName'](_0xa67bb9){this[_0x51e2('0x1f')]['fieldView']['element'][_0x51e2('0x23')]=_0xa67bb9[_0x51e2('0x20')]();}[_0x51e2('0x15')](){this[_0x51e2('0x1f')]['fieldView'][_0x51e2('0x22')][_0x51e2('0x23')]='';}['_createRevisionNameInput'](){const _0x4328c3=new _0x14ec6f(this[_0x51e2('0x7')],_0x3901a0),_0x25dbcd=_0x4328c3['fieldView'];return _0x25dbcd[_0x51e2('0x1e')]({'attributes':{'maxlength':_0x51e2('0x16')}}),_0x4328c3[_0x51e2('0x12')]=_0x5f4456(this[_0x51e2('0x7')],_0x51e2('0x1c')),_0x25dbcd['on'](_0x51e2('0xe'),()=>{this[_0x51e2('0xb')]=_0x25dbcd['element'][_0x51e2('0x23')]['trim']();}),_0x4328c3;}['_createButton'](_0x10d62b,_0x59034b,_0x44d008,_0x58f31f){const _0x52bbd=new _0x2104c3(this[_0x51e2('0x7')]);return _0x52bbd['set']({'label':_0x10d62b,'icon':_0x59034b,'tooltip':!0x0}),_0x52bbd[_0x51e2('0x1e')]({'attributes':{'class':_0x44d008}}),_0x58f31f&&_0x52bbd[_0x51e2('0x8')](_0x51e2('0x24'))['to'](this,_0x58f31f),_0x52bbd;}}