@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230816.0 → 0.0.0-nightly-20230818.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x50ee=['reconvertMarker','sort','endIndex','dataToMarker','hasClass','right','values','_markMarkers','vid','forceDisabled','attributesBefore','add','_threeWayMerge','_removeRevisionMarkers','_refreshStartEndIndex','requires','modelRange','execute','filter','markerToData','mapper','editing','_getDiff','domEvent','revision:','revisionHistoryLabel','enableReadOnlyMode','_removeMissingPairs','restoreRevision','code','_appendChild','addRevision','isBlock','changes','repository','delete','rootName','showNextChange','roots','activeView','isAttached','ck-revision-history-root-add','_findChangeIdFromDomTarget','_getRevisionsRange','_setChanges','_changeIdToChange','change','createAttributeElement','flat','conversion','config','ck-editor__editable__overlay','authors','clear','revision-end','addMarker:revision-suggestion:insertion','_data','markers','toViewPosition','_getViewForChange','set','element','backward','getWalker','changeId','getAttributes','suggestion','isIncorrect','createRange','remove','loadRevisionData','_update','markerNameToElements','ck-suggestion-marker','deletions','_setConversion','revision-comment:','start','level','toViewElement','span','top','bindElementToMarker','change:isReady','showPreviousChange','_markSuggestions','createPositionBefore','_processTape','bottom','addClass','commands','attributes','isRemoved','document','unshift','findIndex','getRevision','isSuggestion','ck-suggestion-marker-merge','length','getIndex','getCustomProperty','viewItem','_setDistance','revision-suggestion','getRevisionData','schema','dataDowncast','isNavigationMode','startsWith','index','_activeViewTarget','addMarker:revision-suggestion:deletion','RevisionsRepository','RevisionViewer','suggestion:','numberOfChanges','includes','_joinTapes','has','from','pluginName','left','domConverter','writer','previousPosition','insertion','processor','_makeModelFromTape','revisionHistory','elementEnd','isCollapsed','isReady','addRevisionData','diff','markerToHighlight','children','next','revision-suggestion:','revision-viewer','isInline','unbindElementFromMarkerName','test','return','markerRange','nextSibling','listenTo','merge','isAdded','isEqual','markersStart','mapViewToDom','enqueueChange','ck-suggestion-preview-marker-','createPositionFromPath','isAfter','downcastDispatcher','attributesAfter','map','addMarker:revision','type','done','_getViewObj','push','_revisions','ck-revision-history-root--active','revisionHistoryAttachChange','mouseover','newRevisionId','collaboration.channelId','deletion','model','getClientRects','high','revision','isAtStart','-new','end','abs','_cleanMarkers','indexOf','getChild','getRootNames','ck-suggestion-preview-marker','element:pre','concat','find','for','useFillerType','editor','uiElement','slice','removeClass','isEnabled','_getChangeFromId','parent','detachRoot','nextPosition','isObject','_makeTape','_changeView','_initInteractions','pairId','isAtEnd','_markMismatchedRemovedTags','splice','getRoot','split','getRevisionRootsAttributes','_markInsertions','restoreRevisionCallback','affectsData','observeMarkers','markerName','side','refresh','isLimit','keys','bind','diffData','toModel','marked','editingDowncast','shift','nodeAfter','userId','ck-suggestion-marker-split','getAttribute','resolve','isRemoveSuggestion','distance','error','checkAttribute','isOnRoot','plugins','WidgetToolbarRepository','data','change:activeChange','createRangeIn','string','item','elementStart','_cleanUp','createRevision','startIndex','ck-suggestion-marker--active','_sortAndFilterDiffChanges','markersEnd','toViewRange','then','insert','_makeModelFromViewString','insertions','attachChange','view','setAttribute','mousedown','currentChangeNumber','createUIElement','addHighlight','consumable','consume','activeChange','parse','data-change-id','vid_end','_fixObsoleteTags','_balloon','removeMarker','_removeUnsupportedChanges','_step','object','highest','text','removeMarker:revision','data-revision-','updatePosition','vid_start','getDomRoot','isAddSuggestion','upcast','change:isEnabled','name','ck-suggestion-marker-','isContent','offsetSize','get'];(function(_0x1c504e,_0x50ee55){const _0x401fdc=function(_0x114045){while(--_0x114045){_0x1c504e['push'](_0x1c504e['shift']());}};_0x401fdc(++_0x50ee55);}(_0x50ee,0x6b));const _0x401f=function(_0x1c504e,_0x50ee55){_0x1c504e=_0x1c504e-0x0;let _0x401fdc=_0x50ee[_0x1c504e];return _0x401fdc;};import{Plugin as _0x2f78c1,Command as _0x4d8cb9}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x4c597a}from'ckeditor5/src/utils';import{ContextualBalloon as _0x40545e}from'ckeditor5/src/ui';import{DocumentFragment as _0x4d57ae,Element as _0x596da7,Text as _0x36f440,ViewDocumentFragment as _0x3a7bca,ViewText as _0x1eda4c,ViewElement as _0x58e33a,ViewContainerElement as _0x33f19d,ViewAttributeElement as _0x563441,ViewEmptyElement as _0x56fe8d,ViewRawElement as _0x350424,ViewUIElement as _0x10e25e}from'ckeditor5/src/engine';import{Users as _0x1bbfc4,getMarkerDomElement as _0x2b38af}from'ckeditor5-collaboration/src/collaboration-core';import _0x315e58 from'./ui/revisionviewer/changedetailsview';import _0x2087c3 from'./revisionsrepository';import _0x59d887 from'./changeitem';import{default as _0x4e99eb}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x428693}from'lodash-es';const tt={'c':_0x33f19d,'a':_0x563441,'e':_0x56fe8d,'r':_0x350424,'u':_0x10e25e};export default class d extends _0x2f78c1{static get[_0x401f('0xe')](){return _0x401f('0x7');}static get[_0x401f('0xc3')](){return[_0x1bbfc4,_0x40545e,_0x2087c3];}constructor(_0x270f4b){super(_0x270f4b),this[_0x401f('0xd6')]=this[_0x401f('0x52')]['plugins'][_0x401f('0xb3')](_0x401f('0x6')),this[_0x401f('0xf0')](_0x401f('0x9b'),null),this[_0x401f('0xf0')]('activeView',null),this[_0x401f('0x4')]=null,this[_0x401f('0xf0')]('diff',null),this[_0x401f('0xf0')](_0x401f('0x19'),!0x1),this[_0x401f('0xf0')](_0x401f('0x56'),!0x0),this['on'](_0x401f('0xae'),(_0x259766,_0x364ace,_0xd72257)=>{this['activeChange']=null,this[_0x401f('0xdb')]=null,this['editor']['editing'][_0x401f('0x93')]['change'](_0x273c09=>{for(const _0x306a4d of this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x93')][_0x401f('0x111')][_0x401f('0xda')])_0xd72257?_0x273c09[_0x401f('0x55')](_0x401f('0xe7'),_0x306a4d):_0x273c09['addClass']('ck-editor__editable__overlay',_0x306a4d);});}),this['bind'](_0x401f('0x1'))['to'](this,'activeChange',_0x41569b=>null!==_0x41569b),this[_0x401f('0x6f')](_0x401f('0x96'))['to'](this,_0x401f('0x19'),this,_0x401f('0x1b'),this,_0x401f('0x9b'),(_0x12fb21,_0x2fff02,_0x57e462)=>_0x12fb21&&_0x57e462?_0x2fff02[_0x401f('0xd5')][_0x401f('0x118')](_0x57e462):0x0),this[_0x401f('0x6f')](_0x401f('0x9'))['to'](this,_0x401f('0x19'),this,_0x401f('0x1b'),(_0x36c7fd,_0x232898)=>_0x36c7fd?_0x232898['changes'][_0x401f('0x117')]:0x0),this[_0x401f('0x5d')]=null,this[_0x401f('0xe1')]=new Map(),this['adapter']=null,this['_balloon']=this[_0x401f('0x52')][_0x401f('0x7f')]['get'](_0x40545e);}['init'](){const _0x654bd5=this[_0x401f('0x52')],_0x10a1e0=new ShowChangeCommand(_0x654bd5,{'direction':_0x401f('0xf2')}),_0x546de5=new ShowChangeCommand(_0x654bd5,{'direction':'forward'});(_0x654bd5[_0x401f('0x10e')][_0x401f('0xbf')](_0x401f('0x108'),_0x10a1e0),_0x654bd5[_0x401f('0x10e')][_0x401f('0xbf')](_0x401f('0xd9'),_0x546de5),_0x654bd5[_0x401f('0x10e')][_0x401f('0xbf')](_0x401f('0xd0'),new RestoreRevisionCommand(_0x654bd5)),this['on']('change:numberOfChanges',()=>{_0x10a1e0[_0x401f('0x6c')](),_0x546de5[_0x401f('0x6c')]();}),this[_0x401f('0xff')](),this[_0x401f('0x5e')](),_0x654bd5[_0x401f('0xce')](_0x401f('0x20')),_0x654bd5[_0x401f('0x7f')][_0x401f('0xc')](_0x401f('0x80')))&&_0x654bd5['plugins'][_0x401f('0xb3')]('WidgetToolbarRepository')[_0x401f('0xbd')]('revision-viewer');}async[_0x401f('0x11d')](_0x2816ef){await this[_0x401f('0xfa')](_0x2816ef);const _0x303f79={};for(const _0x1294cd in _0x2816ef[_0x401f('0x70')]){if(_0x2816ef[_0x401f('0x70')][_0x1294cd][_0x401f('0x92')]&&!_0x2816ef['diffData'][_0x1294cd][_0x401f('0x92')][_0x401f('0xdc')])continue;const _0x4a4740=this[_0x401f('0xc1')](JSON[_0x401f('0x9c')](_0x2816ef[_0x401f('0x70')][_0x1294cd][_0x401f('0x91')])),_0x454173=this['editor'][_0x401f('0xc9')][_0x401f('0x93')]['document'],_0x50cd69=new _0x3a7bca(_0x454173,_0x4a4740['map'](_0x3f3701=>this['_getViewObj'](_0x3f3701)));this[_0x401f('0x52')]['data'][_0x401f('0x14')][_0x401f('0x51')](_0x401f('0x72')),_0x303f79[_0x1294cd]=this[_0x401f('0x52')][_0x401f('0x81')][_0x401f('0x14')]['toData'](_0x50cd69),this[_0x401f('0x52')][_0x401f('0x81')][_0x401f('0x14')]['useFillerType']('default');}return _0x303f79;}async[_0x401f('0x65')](_0x1f6f00){await this[_0x401f('0xfa')](_0x1f6f00);const _0x42fe54={};for(const _0x5de03e in _0x1f6f00['diffData'])_0x1f6f00['diffData'][_0x5de03e][_0x401f('0x92')]&&!_0x1f6f00[_0x401f('0x70')][_0x5de03e]['attachChange'][_0x401f('0xdc')]||(_0x42fe54[_0x5de03e]=_0x1f6f00[_0x401f('0x70')][_0x5de03e][_0x401f('0x32')]||{});return _0x42fe54;}[_0x401f('0xc1')](_0x177180){return(_0x177180=_0x177180[_0x401f('0xc6')](_0x123771=>!_0x123771[_0x401f('0xaf')]||'revision-start'!==_0x123771['name']&&_0x401f('0xea')!==_0x123771[_0x401f('0xaf')]))['forEach'](_0x196231=>{'string'!=typeof _0x196231&&(_0x196231[_0x401f('0x1d')]=this[_0x401f('0xc1')](_0x196231['children']),_0x196231[_0x401f('0x10f')]=_0x196231[_0x401f('0x10f')]['filter'](_0x20fa5e=>!_0x20fa5e[0x0][_0x401f('0x2')](_0x401f('0xa8'))));}),_0x177180;}async['compare'](_0x5b1439,_0x430f54,_0x318e99=!0x1){if(!this['isEnabled'])return;const _0x27cc3d=this[_0x401f('0x1b')],_0x2e1d64=this[_0x401f('0xd6')],_0x4994b2=_0x401f('0x84')==typeof _0x5b1439?_0x2e1d64[_0x401f('0x114')](_0x5b1439):_0x5b1439,_0x5d24e2='string'==typeof _0x430f54?_0x2e1d64[_0x401f('0x114')](_0x430f54):_0x430f54,_0x1a0b81=_0x4994b2['id'],_0x1ffbb=_0x5d24e2?_0x5d24e2['id']:null;if(!_0x318e99&&this['diff']&&this[_0x401f('0x1b')][_0x401f('0x3d')]===_0x1a0b81&&this[_0x401f('0x1b')]['oldRevisionId']===_0x1ffbb)return Promise['resolve']();this[_0x401f('0x19')]=!0x1,this[_0x401f('0xdb')]=null,this[_0x401f('0x9b')]=null,this[_0x401f('0x1b')]=new _0x4e99eb(_0x1a0b81,_0x1ffbb);const _0x5e979b=this[_0x401f('0xdf')](_0x4994b2,_0x5d24e2,!0x0)['map'](_0xf7f4f0=>this['loadRevisionData'](_0xf7f4f0));return _0x5e979b[_0x401f('0x38')](new Promise(_0x2214a8=>{setTimeout(_0x2214a8,0x14);})),Promise['all'](_0x5e979b)[_0x401f('0x8e')](()=>{if(!this[_0x401f('0x56')])return;this[_0x401f('0x87')]();const _0x3e00fb=this['_getDiff'](_0x1a0b81,_0x1ffbb);for(const _0x88700c of _0x3e00fb[_0x401f('0xd5')])this['_changeIdToChange'][_0x401f('0xf0')](_0x88700c['id'],_0x88700c);this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0x2d')]({'isUndoable':!0x1},_0x5b71d1=>{for(const _0x90c33 of this[_0x401f('0x52')][_0x401f('0x40')]['document'][_0x401f('0x4b')]())_0x5b71d1[_0x401f('0x59')](_0x90c33);for(const _0x67ddc8 of Object[_0x401f('0x6e')](_0x3e00fb['model'])){const _0x31a4bc=_0x5b71d1['addRoot'](_0x67ddc8);for(const _0x4ff144 of Object['keys'](_0x3e00fb[_0x401f('0x10f')][_0x67ddc8]))_0x5b71d1['setAttribute'](_0x4ff144,_0x3e00fb[_0x401f('0x10f')][_0x67ddc8][_0x4ff144],_0x31a4bc);_0x5b71d1[_0x401f('0x8f')](_0x3e00fb['model'][_0x67ddc8],_0x31a4bc,0x0);}}),this[_0x401f('0x1b')][_0x401f('0xe0')](this[_0x401f('0x8b')](_0x3e00fb[_0x401f('0xd5')])),this[_0x401f('0x19')]=!0x0;})['catch'](_0x5b2c37=>{console[_0x401f('0x7c')](_0x5b2c37),this['_cleanUp'](),_0x27cc3d&&(this[_0x401f('0x1b')]=_0x27cc3d),this['isReady']=!0x0;});}[_0x401f('0x1a')](_0x3be2c5,_0x15ab5f){const _0x8911f=this['repository'][_0x401f('0x88')](_0x3be2c5);return _0x8911f['on']('_update',(_0x1bc7e4,_0x2761d7,_0x2448ef)=>_0x15ab5f(_0x2761d7,_0x2448ef,_0x8911f)),this['repository'][_0x401f('0xd3')](_0x8911f),_0x8911f;}[_0x401f('0xfa')](_0x43f8cb){if(!_0x43f8cb||_0x43f8cb[_0x401f('0x70')])return Promise[_0x401f('0x79')]();{const _0x5596e5=this[_0x401f('0x52')][_0x401f('0xe6')][_0x401f('0xb3')](_0x401f('0x3e'));return this['adapter'][_0x401f('0x114')]({'channelId':_0x5596e5,'revisionId':_0x43f8cb['id']})[_0x401f('0x8e')](_0x32c89f=>{_0x43f8cb[_0x401f('0xfb')]({'diffData':_0x32c89f[_0x401f('0x70')]},!0x0);});}}['_cleanUp'](){this[_0x401f('0x9b')]=null,this[_0x401f('0x48')](),this[_0x401f('0x5d')]&&this['_changeView']['destroy'](),this[_0x401f('0x5d')]=null,this[_0x401f('0xe1')][_0x401f('0xe9')](),this[_0x401f('0x52')]['model'][_0x401f('0x2d')]({'isUndoable':!0x1},_0x117900=>{for(const _0x497b5d of this[_0x401f('0x52')]['model'][_0x401f('0x111')]['getRootNames']())_0x117900[_0x401f('0x59')](_0x497b5d);});}['_sortAndFilterDiffChanges'](_0x614c1c){const _0x235a31=[],_0x463336=new Map();for(const _0x1349a9 of this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0x111')][_0x401f('0x4b')]()){const _0x2f05b7=this[_0x401f('0x52')][_0x401f('0xc9')]['view'][_0x401f('0xab')](_0x1349a9);if(!_0x2f05b7)continue;const _0x555fd1=_0x2f05b7[_0x401f('0x41')]()[_0x401f('0x85')](0x0);_0x555fd1&&(_0x235a31[_0x401f('0x38')](_0x1349a9),_0x463336[_0x401f('0xf0')](_0x1349a9,_0x555fd1));}return _0x235a31[_0x401f('0xb5')]((_0x257fc8,_0x4c251c)=>{const _0xd86a3a=_0x463336[_0x401f('0xb3')](_0x257fc8),_0x4a2861=_0x463336[_0x401f('0xb3')](_0x4c251c);return _0xd86a3a['y']-_0x4a2861['y']||_0xd86a3a['x']-_0x4a2861['x'];}),(_0x614c1c=_0x614c1c[_0x401f('0xc6')](_0x3cec70=>_0x235a31[_0x401f('0xa')](_0x3cec70[_0x401f('0xd8')])))[_0x401f('0xb5')]((_0xddeaf7,_0x189593)=>_0x235a31['indexOf'](_0xddeaf7['rootName'])-_0x235a31[_0x401f('0x49')](_0x189593[_0x401f('0xd8')])),_0x614c1c;}[_0x401f('0x5c')](_0x2d5f62){const _0xf1b232=Array[_0x401f('0xd')](_0x2d5f62[_0x401f('0xed')])['filter'](([_0xdff279,_0x259a6f])=>_0xdff279[_0x401f('0x2')](_0x401f('0xcc'))&&!_0x259a6f[_0x401f('0x18')]),_0x94ba0f=Array[_0x401f('0xd')](this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0x83')](_0x2d5f62)[_0x401f('0xf3')]({'singleCharacters':!0x0}));if(0x0!=_0xf1b232[_0x401f('0x117')])for(const _0x1cc545 of _0x94ba0f){const [_0xbb16cc,_0x3e0804]=_0xf1b232[0x0],[,_0x48159a,_0x556c4b]=_0xbb16cc[_0x401f('0x64')](':');if(_0x3e0804['end']['isEqual'](_0x1cc545['nextPosition'])&&_0xf1b232[_0x401f('0x74')](),(_0x1cc545[_0x401f('0x12')][_0x401f('0x2a')](_0x3e0804['start'])||_0x1cc545[_0x401f('0x12')][_0x401f('0x30')](_0x3e0804[_0x401f('0x101')]))&&(_0x401f('0x13')==_0x48159a?_0x1cc545[_0x401f('0x29')]={'userId':_0x556c4b}:'deletion'==_0x48159a&&(_0x1cc545['isRemoved']={'userId':_0x556c4b})),0x0==_0xf1b232[_0x401f('0x117')])break;}return _0x94ba0f;}[_0x401f('0xc2')](_0x2c42db){const _0x360774=new Map();for(let _0x5979c0=0x0;_0x5979c0<_0x2c42db[_0x401f('0x117')];_0x5979c0++)'text'===_0x2c42db[_0x5979c0]['type']?(_0x2c42db[_0x5979c0][_0x401f('0x85')][_0x401f('0x89')]=_0x5979c0,_0x2c42db[_0x5979c0][_0x401f('0x85')]['endIndex']=_0x5979c0):(_0x401f('0x86')===_0x2c42db[_0x5979c0][_0x401f('0x35')]?_0x2c42db[_0x5979c0]['item'][_0x401f('0x89')]=_0x5979c0:_0x401f('0x17')===_0x2c42db[_0x5979c0][_0x401f('0x35')]&&(_0x2c42db[_0x5979c0][_0x401f('0x85')][_0x401f('0xb6')]=_0x5979c0),_0x360774[_0x401f('0xf0')](_0x2c42db[_0x5979c0]['id'],_0x5979c0));for(const _0xfe0da4 of _0x360774[_0x401f('0xba')]())_0x401f('0x86')===_0x2c42db[_0xfe0da4][_0x401f('0x35')]?_0x2c42db[_0xfe0da4]['item'][_0x401f('0xb6')]=_0x360774[_0x401f('0xb3')](_0x2c42db[_0xfe0da4][_0x401f('0x5f')]):_0x401f('0x17')===_0x2c42db[_0xfe0da4]['type']&&(_0x2c42db[_0xfe0da4][_0x401f('0x85')][_0x401f('0x89')]=_0x360774[_0x401f('0xb3')](_0x2c42db[_0xfe0da4][_0x401f('0x5f')]));}[_0x401f('0x10b')](_0x8f91a6){for(let _0x3c2f4b=0x0;_0x3c2f4b<_0x8f91a6[_0x401f('0x117')];_0x3c2f4b++){if(_0x401f('0x86')===_0x8f91a6[_0x3c2f4b]['type'])_0x8f91a6[_0x3c2f4b][_0x401f('0x85')][_0x401f('0x89')]=_0x3c2f4b;else{if(_0x401f('0x17')===_0x8f91a6[_0x3c2f4b]['type']){_0x8f91a6[_0x3c2f4b][_0x401f('0x85')][_0x401f('0xb6')]=_0x3c2f4b;const _0x50fbb1=_0x8f91a6[_0x3c2f4b][_0x401f('0x85')][_0x401f('0x89')];_0x8f91a6[_0x50fbb1][_0x401f('0x5f')]=_0x8f91a6[_0x3c2f4b]['id'],_0x8f91a6[_0x3c2f4b][_0x401f('0x5f')]=_0x8f91a6[_0x50fbb1]['id'];}else _0x8f91a6[_0x3c2f4b]['item'][_0x401f('0x89')]=_0x3c2f4b,_0x8f91a6[_0x3c2f4b]['item'][_0x401f('0xb6')]=_0x3c2f4b,_0x8f91a6[_0x3c2f4b]['pairId']=null;}_0x8f91a6[_0x3c2f4b]['markersStart']||(_0x8f91a6[_0x3c2f4b][_0x401f('0x2b')]=[],_0x8f91a6[_0x3c2f4b][_0x401f('0x8c')]=[]);}}[_0x401f('0x66')](_0x5b0093,_0xfc4b33){const _0x2ac775=_0x5b0093[_0x401f('0xc6')](_0x241425=>!_0x241425[_0x401f('0x29')]);for(let _0xe44451=0x0;_0xe44451<_0xfc4b33['length'];_0xe44451++)_0xfc4b33[_0xe44451][_0x401f('0x29')]&&(_0x2ac775[_0xe44451][_0x401f('0x29')]=_0xfc4b33[_0xe44451][_0x401f('0x29')]);}[_0x401f('0x90')](_0x77b713){const _0x5d08be=JSON[_0x401f('0x9c')](_0x77b713),_0x3a7247=this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x93')]['document'],_0x5185e0=new _0x3a7bca(_0x3a7247,_0x5d08be[_0x401f('0x33')](_0x1412f6=>this[_0x401f('0x37')](_0x1412f6)));return this[_0x401f('0x52')]['data'][_0x401f('0x71')](_0x5185e0);}[_0x401f('0x37')](_0x4f289c){const _0x2c4966=this[_0x401f('0x52')]['editing'][_0x401f('0x93')][_0x401f('0x111')];if(_0x401f('0x84')==typeof _0x4f289c)return new _0x1eda4c(_0x2c4966,_0x4f289c);{const _0x5ed778=_0x4f289c['children'][_0x401f('0x33')](_0x93b079=>this[_0x401f('0x37')](_0x93b079));return new(tt[_0x4f289c[(_0x401f('0x35'))]]||_0x58e33a)(_0x2c4966,_0x4f289c['name'],_0x4f289c['attributes'],_0x5ed778);}}[_0x401f('0xca')](_0x210683,_0x221495=null){const _0x11f19d=this[_0x401f('0xd6')][_0x401f('0x114')](_0x210683),_0x2219c8=_0x221495?this[_0x401f('0xd6')][_0x401f('0x114')](_0x221495):null,_0x267d12=this[_0x401f('0xdf')](_0x11f19d,_0x2219c8),_0x5cb9a0=_0x267d12[_0x267d12['length']-0x1],_0x247c3b=new Map(),_0x55e69d={'model':{},'attributes':{},'changes':[]},_0x13e732=new Set(),_0xfe9dae=new Map();for(let _0x3da583=_0x267d12[_0x401f('0x117')]-0x1;_0x3da583>=0x0;_0x3da583--){const _0x497078=_0x267d12[_0x3da583];for(const _0x24f917 of Object[_0x401f('0x6e')](_0x497078[_0x401f('0x70')]))if(_0x497078[_0x401f('0x70')][_0x24f917][_0x401f('0x92')]){const _0x54ab33=_0x497078[_0x401f('0x70')][_0x24f917][_0x401f('0x92')];_0x54ab33[_0x401f('0xdc')]?(_0x13e732[_0x401f('0xbf')](_0x24f917),_0xfe9dae[_0x401f('0xc')](_0x24f917)&&_0xfe9dae[_0x401f('0xb3')](_0x24f917)['userId']==_0x54ab33['userId']?_0xfe9dae[_0x401f('0xd7')](_0x24f917):_0xfe9dae[_0x401f('0xf0')](_0x24f917,_0x54ab33)):_0xfe9dae[_0x401f('0xc')](_0x24f917)?(_0x13e732['delete'](_0x24f917),_0xfe9dae[_0x401f('0xd7')](_0x24f917)):(_0x13e732['add'](_0x24f917),_0xfe9dae[_0x401f('0xf0')](_0x24f917,_0x54ab33));}else _0x13e732[_0x401f('0xbf')](_0x24f917);}for(const _0x19c9bf of _0x13e732){const _0x4f88cc=_0xfe9dae['has'](_0x19c9bf)&&!_0xfe9dae[_0x401f('0xb3')](_0x19c9bf)[_0x401f('0xdc')];let _0x273a7c=_0x4f88cc?_0x267d12[_0x401f('0x117')]-0x1:0x0;const _0x57cf88=_0x4f88cc?-0x1:0x1;for(;_0x267d12[_0x273a7c];){const _0x4d752f=_0x267d12[_0x273a7c];if(_0x4d752f[_0x401f('0x70')][_0x19c9bf]){const _0x5d3a26=_0x4f88cc?_0x4d752f[_0x401f('0x70')][_0x19c9bf][_0x401f('0xbe')]:_0x4d752f[_0x401f('0x70')][_0x19c9bf][_0x401f('0x32')];_0x55e69d[_0x401f('0x10f')][_0x19c9bf]=_0x5d3a26?_0x428693(_0x5d3a26):{};break;}_0x273a7c+=_0x57cf88;}}for(const _0x1f4ac1 of _0x267d12){_0x1f4ac1[_0x401f('0x40')]={};for(const _0x224ae4 of _0x1f4ac1[_0x401f('0xe8')])_0x247c3b['set'](_0x224ae4['id'],_0x224ae4);for(const _0x28b41e of _0x13e732){const _0x4f7df6=_0x1f4ac1['diffData'][_0x28b41e]?_0x1f4ac1[_0x401f('0x70')][_0x28b41e][_0x401f('0x91')]:'[]',_0x116104=_0x1f4ac1[_0x401f('0x70')][_0x28b41e]?_0x1f4ac1[_0x401f('0x70')][_0x28b41e][_0x401f('0xfe')]:'[]';_0x1f4ac1[_0x401f('0x40')][_0x28b41e]={'insertions':this['_makeModelFromViewString'](_0x4f7df6),'deletions':this['_makeModelFromViewString'](_0x116104)};}}for(const _0x4feeb0 of _0x13e732){let _0x25dd86=null,_0x1b25d2=0x0;const _0x576491=new Map(Array[_0x401f('0xd')](_0x11f19d[_0x401f('0x40')][_0x4feeb0][_0x401f('0x91')][_0x401f('0xed')])[_0x401f('0xc6')](([_0x429f81])=>!_0x429f81['startsWith']('revision:')));let _0x4c5c82=0x0;for(const _0x23ff09 of _0x267d12){const _0x5740e2=this[_0x401f('0x5c')](_0x23ff09[_0x401f('0x40')][_0x4feeb0][_0x401f('0x91')]);_0x23ff09==_0x11f19d?(_0x25dd86=_0x5740e2,_0x1b25d2=_0x25dd86[_0x401f('0x117')],_0x25dd86['forEach'](_0x55e5ca=>{_0x55e5ca['id']=_0x4c5c82++;}),this[_0x401f('0x10b')](_0x25dd86)):this[_0x401f('0x66')](_0x25dd86,_0x5740e2);const _0xfa09bb=_0x25dd86['filter'](_0x4e34c5=>!_0x4e34c5[_0x401f('0x29')])['map'](_0x5b0758=>_0x5b0758['id']);let _0x38183e=0x0;const _0x5459bf=this['_makeTape'](_0x23ff09['model'][_0x4feeb0][_0x401f('0xfe')]);_0x5459bf['forEach'](_0x434bad=>{_0x434bad['isRemoved']?_0x434bad['id']=_0x1b25d2++:_0x434bad['id']=_0xfa09bb[_0x38183e++];}),this[_0x401f('0x10b')](_0x5459bf),this['_setDistance'](_0x25dd86,'isAdded'),this['_setDistance'](_0x5459bf,_0x401f('0x110')),_0x23ff09==_0x11f19d&&this[_0x401f('0xbb')](_0x25dd86,_0x576491),_0x25dd86=this[_0x401f('0xb')](_0x25dd86,_0x5459bf),this[_0x401f('0xc2')](_0x25dd86),this[_0x401f('0x11b')](_0x25dd86,_0x401f('0x110'));}_0x25dd86=_0x25dd86[_0x401f('0xc6')](_0x309969=>!(_0x309969[_0x401f('0x29')]&&_0x309969[_0x401f('0x110')]));const _0x276b8a=new Map(_0x5cb9a0[_0x401f('0x40')][_0x4feeb0][_0x401f('0xfe')][_0x401f('0xed')]),_0x316a76=new Set(_0x576491[_0x401f('0x6e')]());for(const _0x10194f of _0x276b8a[_0x401f('0x6e')]())_0x316a76['delete'](_0x10194f);this[_0x401f('0x109')](_0x25dd86,_0x316a76),this[_0x401f('0x9f')](_0x25dd86),_0x25dd86=this[_0x401f('0xcf')](_0x25dd86),_0x25dd86=this[_0x401f('0x61')](_0x25dd86),_0x25dd86=this['_removeUnsupportedChanges'](_0x25dd86);const {root:_0x1ddb26,changes:_0x2a885d}=this['_makeModelFromTape'](_0x25dd86,_0x247c3b,_0x4feeb0);_0x55e69d[_0x401f('0x40')][_0x4feeb0]=_0x1ddb26;const _0x1ad4cf=_0xfe9dae[_0x401f('0xb3')](_0x4feeb0);if(_0x1ad4cf){const _0x42ac99=_0x247c3b[_0x401f('0xb3')](_0x1ad4cf['userId']),_0x423e9e=new _0x59d887({'author':_0x42ac99,'type':_0x1ad4cf[_0x401f('0xdc')]?_0x401f('0xbf'):_0x401f('0xf9'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4feeb0});_0x2a885d[_0x401f('0x112')](_0x423e9e),_0x55e69d[_0x401f('0x10f')][_0x4feeb0][_0x401f('0x3b')]=_0x423e9e['id'];}_0x55e69d[_0x401f('0xd5')]=_0x55e69d['changes'][_0x401f('0x4e')](_0x2a885d);}return _0x55e69d;}[_0x401f('0xbb')](_0x537a5e,_0x2605e9){for(let _0xe8ce24=0x0;_0xe8ce24<_0x537a5e[_0x401f('0x117')];_0xe8ce24++)for(const [_0x540d6c,_0x270a37]of _0x2605e9)_0x270a37[_0x401f('0x101')][_0x401f('0x2a')](_0x537a5e[_0xe8ce24][_0x401f('0x12')])&&_0x537a5e[_0xe8ce24]['markersStart'][_0x401f('0x38')](_0x540d6c),_0x270a37['end'][_0x401f('0x2a')](_0x537a5e[_0xe8ce24][_0x401f('0x5a')])&&_0x537a5e[_0xe8ce24][_0x401f('0x8c')][_0x401f('0x38')](_0x540d6c);}[_0x401f('0xb')](_0x1247ec,_0x1c1537){let _0x3c2a8a=[],_0x5cd45c=0x0,_0x1dcb66=0x0;for(;_0x5cd45c<_0x1247ec[_0x401f('0x117')]||_0x1dcb66<_0x1c1537['length'];){const _0x29ac51=_0x1247ec[_0x5cd45c]||{},_0x96913c=_0x1c1537[_0x1dcb66]||{};if(_0x29ac51['id']==_0x96913c['id'])_0x5cd45c++,_0x1dcb66++,_0x3c2a8a[_0x401f('0x38')](_0x29ac51);else{if(_0x96913c['isRemoved']&&_0x29ac51[_0x401f('0x29')]){const {commonTape:_0x14178c,iEnd:_0x1457be,jEnd:_0x29256a}=this[_0x401f('0xc0')](_0x1247ec,_0x5cd45c,_0x1c1537,_0x1dcb66);_0x3c2a8a=_0x3c2a8a[_0x401f('0x4e')](_0x14178c),_0x5cd45c=_0x1457be,_0x1dcb66=_0x29256a;}else _0x96913c['isRemoved']?(_0x1dcb66++,_0x3c2a8a['push'](_0x96913c)):(_0x5cd45c++,_0x3c2a8a[_0x401f('0x38')](_0x29ac51));}}return _0x3c2a8a;}[_0x401f('0x109')](_0x53cdb6,_0x234c1f){const _0x47cdf8=[];for(let _0x111905=0x0;_0x111905<_0x53cdb6['length'];_0x111905++){for(let _0x12925f=0x0;_0x12925f<_0x53cdb6[_0x111905][_0x401f('0x2b')][_0x401f('0x117')];_0x12925f++){const _0x705a80=_0x53cdb6[_0x111905][_0x401f('0x2b')][_0x12925f];if(!_0x234c1f[_0x401f('0xc')](_0x705a80))continue;const {group:_0x1caa11,type:_0x2c337f,authorId:_0x40e16c}=_0x51a15a(_0x705a80);'revision-suggestion'!=_0x1caa11||'insertion'!=_0x2c337f&&_0x401f('0x3f')!=_0x2c337f||(_0x47cdf8[_0x401f('0x112')]({'type':_0x2c337f,'name':_0x705a80,'userId':_0x40e16c}),_0x53cdb6[_0x111905][_0x401f('0x2b')][_0x401f('0x62')](_0x12925f,0x1),_0x12925f--);}_0x33a1f1(_0x53cdb6[_0x111905]);for(let _0x10693d=0x0;_0x10693d<_0x53cdb6[_0x111905][_0x401f('0x8c')][_0x401f('0x117')];_0x10693d++){const _0x48d9f9=_0x53cdb6[_0x111905][_0x401f('0x8c')][_0x10693d];if(!_0x234c1f[_0x401f('0xc')](_0x48d9f9))continue;const {group:_0xe52f63,type:_0x454901}=_0x51a15a(_0x48d9f9);if(_0x401f('0x11c')!=_0xe52f63||_0x401f('0x13')!=_0x454901&&_0x401f('0x3f')!=_0x454901)continue;_0x53cdb6[_0x111905][_0x401f('0x8c')]['splice'](_0x10693d,0x1),_0x10693d--;const _0xcfc8b=_0x47cdf8[_0x401f('0x113')](_0x3ea4fe=>_0x3ea4fe[_0x401f('0xaf')]==_0x48d9f9);_0xcfc8b>-0x1&&_0x47cdf8[_0x401f('0x62')](_0xcfc8b,0x1);}}function _0x51a15a(_0x52786a){const _0xe0cef4=_0x52786a[_0x401f('0x64')](':');return{'group':_0xe0cef4[0x0],'type':_0xe0cef4[0x1],'subType':_0xe0cef4[_0x401f('0x117')]>=0x5?_0xe0cef4[0x2]:null,'id':_0xe0cef4['length']<0x5?_0xe0cef4[0x2]:_0xe0cef4[0x3],'authorId':_0xe0cef4['length']<0x5?_0xe0cef4[0x3]:_0xe0cef4[0x4],'markerCount':0x6==_0xe0cef4[_0x401f('0x117')]?_0xe0cef4[0x5]:null};}function _0x33a1f1(_0x3b945b){for(let _0x4eb5c6=0x0;_0x4eb5c6<_0x47cdf8[_0x401f('0x117')];_0x4eb5c6++){if(_0x3b945b[_0x401f('0x29')]&&_0x401f('0x13')==_0x47cdf8[_0x4eb5c6][_0x401f('0x35')])return _0x3b945b[_0x401f('0xac')]=_0x47cdf8[_0x4eb5c6],void delete _0x3b945b[_0x401f('0x29')];if(!_0x3b945b[_0x401f('0x29')]&&!_0x3b945b['isRemoved']&&'deletion'==_0x47cdf8[_0x4eb5c6][_0x401f('0x35')])return void(_0x3b945b[_0x401f('0x7a')]=_0x47cdf8[_0x4eb5c6]);}}}['_setDistance'](_0x1ec75f,_0x4b8075){let _0x49f9d9=0x0,_0x2209a9=!0x1;const _0x5636fe=new Map();for(const _0x5f26f5 of _0x1ec75f)_0x5f26f5[_0x4b8075]?_0x2209a9&&(_0x49f9d9++,_0x2209a9=!0x1):(_0x49f9d9++,_0x2209a9=!0x0),_0x5636fe[_0x401f('0xf0')](_0x5f26f5['id'],_0x49f9d9);for(let _0xe504a0=0x0;_0xe504a0<_0x1ec75f['length'];_0xe504a0++){if(_0x401f('0x110')==_0x4b8075&&_0x1ec75f[_0xe504a0][_0x401f('0x29')]||_0x401f('0x29')==_0x4b8075&&_0x1ec75f[_0xe504a0][_0x401f('0x110')])continue;if(_0x401f('0xa6')==_0x1ec75f[_0xe504a0][_0x401f('0x35')]){_0x1ec75f[_0xe504a0][_0x401f('0x7b')]=0x0;continue;}const _0x3014c0=_0x5636fe[_0x401f('0xb3')](_0x1ec75f[_0xe504a0]['pairId']),_0x295edd=_0x5636fe[_0x401f('0xb3')](_0x1ec75f[_0xe504a0]['id']);_0x1ec75f[_0xe504a0][_0x401f('0x7b')]=_0x3014c0-_0x295edd;}}[_0x401f('0xdf')](_0x5f54b8,_0xfca3b3,_0x7c9005=!0x1){const _0x53627c=[];let _0x1f0d84=this['repository']['getIndex'](_0x5f54b8),_0x359731=this[_0x401f('0xd6')][_0x401f('0x118')](_0xfca3b3);for(-0x1==_0x359731&&(_0x359731=this['repository'][_0x401f('0x39')][_0x401f('0x117')],_0x7c9005=!0x1);_0x1f0d84<_0x359731;)_0x53627c['push'](this['repository'][_0x401f('0x114')](_0x1f0d84)),_0x1f0d84++;return _0x7c9005&&_0x53627c[_0x401f('0x38')](this[_0x401f('0xd6')]['getRevision'](_0x1f0d84)),_0x53627c;}['_threeWayMerge'](_0x123e23,_0x4c9dd8,_0x22f2de,_0x5e6eeb){const _0x13981c=this[_0x401f('0x52')][_0x401f('0x40')]['schema'];let _0x7f6dbb=_0x4c9dd8;for(;_0x123e23[_0x7f6dbb]&&_0x123e23[_0x7f6dbb][_0x401f('0x29')];)_0x7f6dbb++;let _0x49e858=_0x5e6eeb;for(;_0x22f2de[_0x49e858]&&_0x22f2de[_0x49e858][_0x401f('0x110')];)_0x49e858++;_0x1d535d(_0x123e23,_0x4c9dd8,_0x7f6dbb),_0x1d535d(_0x22f2de,_0x5e6eeb,_0x49e858);const _0xd99a36=_0x22f2de[_0x401f('0x54')](_0x5e6eeb,_0x49e858)[_0x401f('0x4e')](_0x123e23[_0x401f('0x54')](_0x4c9dd8,_0x7f6dbb));return _0xd99a36[_0x401f('0xb5')]((_0x1a2e25,_0x28b7c1)=>_0x1a2e25[_0x401f('0x6b')]!=_0x28b7c1['side']?_0x1a2e25['side']-_0x28b7c1[_0x401f('0x6b')]:_0x1a2e25[_0x401f('0x102')]!=_0x28b7c1['level']?_0x1a2e25[_0x401f('0x102')]-_0x28b7c1[_0x401f('0x102')]:_0x1a2e25[_0x401f('0x7b')]!=_0x28b7c1[_0x401f('0x7b')]?_0x28b7c1['distance']-_0x1a2e25[_0x401f('0x7b')]:!!_0x1a2e25[_0x401f('0x29')]!=!!_0x28b7c1[_0x401f('0x29')]?-0x1==_0x1a2e25[_0x401f('0x6b')]||0x0==_0x1a2e25[_0x401f('0x6b')]?_0x1a2e25[_0x401f('0x29')]?-0x1:0x1:_0x1a2e25['isAdded']?0x1:-0x1:_0x1a2e25[_0x401f('0x3')]-_0x28b7c1[_0x401f('0x3')]),{'commonTape':_0xd99a36,'iEnd':_0x7f6dbb,'jEnd':_0x49e858};function _0x1d535d(_0x465a81,_0x11f231,_0x71c2b0){let _0x4a6efe=-0x1,_0x328884=Number['POSITIVE_INFINITY'],_0x145ef1=!0x0;for(let _0x5990f6=_0x11f231;_0x5990f6<_0x71c2b0;_0x5990f6++)if(_0x13981c[_0x401f('0x21')](_0x465a81[_0x5990f6][_0x401f('0x85')])||(_0x145ef1=!0x1),_0x465a81[_0x5990f6][_0x401f('0x85')]['startIndex']<_0x11f231&&(_0x4a6efe=_0x5990f6),_0x465a81[_0x5990f6][_0x401f('0x85')][_0x401f('0xb6')]>=_0x71c2b0){_0x328884=_0x5990f6;break;}_0x145ef1&&(_0x4a6efe=_0x71c2b0-0x1);for(let _0x1819e3=_0x11f231;_0x1819e3<_0x71c2b0;_0x1819e3++)_0x465a81[_0x1819e3][_0x401f('0x6b')]=_0x1819e3<=_0x4a6efe?-0x1:_0x1819e3<_0x328884?0x0:0x1,_0x465a81[_0x1819e3][_0x401f('0x3')]=_0x1819e3;let _0x42dda4=0x0;for(let _0x441d64=_0x11f231;_0x441d64<=_0x4a6efe;_0x441d64++)0x0==_0x465a81[_0x441d64][_0x401f('0x7b')]?_0x465a81[_0x441d64]['level']=_0x42dda4:(_0x42dda4++,_0x465a81[_0x441d64][_0x401f('0x102')]=_0x42dda4,_0x42dda4++);for(let _0x20bbce=_0x11f231;_0x20bbce<_0x71c2b0;_0x20bbce++)0x0==_0x465a81[_0x20bbce][_0x401f('0x6b')]&&(_0x465a81[_0x20bbce][_0x401f('0x102')]=_0x42dda4);_0x42dda4=0x0;for(let _0x4a642a=_0x71c2b0-0x1;_0x4a642a>=_0x328884;_0x4a642a--)0x0==_0x465a81[_0x4a642a]['distance']?_0x465a81[_0x4a642a]['level']=_0x42dda4:(_0x42dda4--,_0x465a81[_0x4a642a][_0x401f('0x102')]=_0x42dda4,_0x42dda4--);}}[_0x401f('0x9f')](_0x51ef10){const _0x57e2dc=new Map(),_0x518de4=this[_0x401f('0x52')][_0x401f('0x40')]['schema'];for(let _0x39ff60=0x1;_0x39ff60<_0x51ef10[_0x401f('0x117')];_0x39ff60++){let _0x5b1a3f,_0x65a3,_0x2663f0;const _0x465713=_0x51ef10[_0x39ff60],_0x4f6f32=_0x51ef10[_0x39ff60-0x1];if('text'==_0x465713[_0x401f('0x35')])continue;if(_0x465713[_0x401f('0x35')]!=_0x4f6f32[_0x401f('0x35')])continue;if(!_0x518de4[_0x401f('0xd4')](_0x4f6f32['item'])||_0x518de4['isLimit'](_0x4f6f32[_0x401f('0x85')]))continue;if(!_0x518de4[_0x401f('0xd4')](_0x465713[_0x401f('0x85')])||_0x518de4[_0x401f('0x6d')](_0x465713[_0x401f('0x85')]))continue;if((_0x51ef10[_0x39ff60][_0x401f('0x29')]||_0x51ef10[_0x39ff60][_0x401f('0xac')])&&_0x51ef10[_0x39ff60-0x1][_0x401f('0x110')])_0x5b1a3f=_0x51ef10[_0x39ff60],_0x65a3=_0x51ef10[_0x39ff60-0x1],_0x2663f0=_0x39ff60-0x1;else{if(!_0x51ef10[_0x39ff60][_0x401f('0x110')]||!_0x51ef10[_0x39ff60-0x1][_0x401f('0x29')]&&!_0x51ef10[_0x39ff60-0x1][_0x401f('0xac')])continue;_0x5b1a3f=_0x51ef10[_0x39ff60-0x1],_0x65a3=_0x51ef10[_0x39ff60],_0x2663f0=_0x39ff60;}const _0x39162f=_0x5b1a3f[_0x401f('0x102')]==_0x65a3[_0x401f('0x102')],_0x53cf08=Math[_0x401f('0x47')](_0x5b1a3f[_0x401f('0x102')])<Math[_0x401f('0x47')](_0x65a3['level'])&&0x0==_0x65a3['distance'];(_0x39162f||_0x53cf08)&&(_0x57e2dc[_0x401f('0xf0')](_0x65a3['id'],_0x5b1a3f['id']),_0x51ef10['splice'](_0x2663f0,0x1),_0x39ff60--,_0x5b1a3f[_0x401f('0x29')]=!0x1);}for(let _0x4f4398=0x0;_0x4f4398<_0x51ef10[_0x401f('0x117')];_0x4f4398++)_0x57e2dc[_0x401f('0xc')](_0x51ef10[_0x4f4398][_0x401f('0x5f')])&&(_0x51ef10[_0x4f4398][_0x401f('0x5f')]=_0x57e2dc[_0x401f('0xb3')](_0x51ef10[_0x4f4398][_0x401f('0x5f')]));}[_0x401f('0xcf')](_0x38c34c){const _0x50e0f3=new Set(_0x38c34c[_0x401f('0x33')](_0x23b696=>_0x23b696['id']));for(let _0x39d84a=0x0;_0x39d84a<_0x38c34c[_0x401f('0x117')];_0x39d84a++)_0x50e0f3['has'](_0x38c34c[_0x39d84a]['pairId'])||0x0==_0x38c34c[_0x39d84a][_0x401f('0x7b')]||(_0x38c34c[_0x39d84a][_0x401f('0xf7')]=!0x0);return _0x38c34c['filter'](_0x13f040=>!_0x13f040['isIncorrect']);}[_0x401f('0x61')](_0xc84770){const _0x37a2c0=new Set();for(let _0x796233=0x0;_0x796233<_0xc84770[_0x401f('0x117')];_0x796233++){if(_0x37a2c0['has'](_0xc84770[_0x796233]['id'])&&_0xc84770[_0x796233][_0x401f('0x110')]&&(_0xc84770[_0x796233][_0x401f('0xf7')]=!0x0),_0xc84770[_0x796233]['isIncorrect'])continue;if(0x0==_0xc84770[_0x796233][_0x401f('0x7b')])continue;if(_0x401f('0x86')!=_0xc84770[_0x796233]['type'])continue;if(null==_0xc84770[_0x796233][_0x401f('0x5f')])continue;let _0x18e840=_0x796233+0x1,_0x3c3516=0x0;for(;_0xc84770[_0x18e840]['id']!=_0xc84770[_0x796233]['pairId'];)'elementStart'==_0xc84770[_0x18e840][_0x401f('0x35')]?_0x3c3516++:_0x401f('0x17')==_0xc84770[_0x18e840][_0x401f('0x35')]&&_0x3c3516--,_0x18e840++;if(0x0!=_0x3c3516){if(_0xc84770[_0x796233][_0x401f('0x110')])_0xc84770[_0x796233][_0x401f('0xf7')]=!0x0;else for(;_0x18e840!=_0x796233;)_0xc84770[_0x18e840][_0x401f('0x110')]&&0x0!=_0xc84770[_0x18e840][_0x401f('0x7b')]&&(_0xc84770[_0x18e840][_0x401f('0xf7')]=!0x0,_0x37a2c0[_0x401f('0xbf')](_0xc84770[_0x18e840]['pairId'])),_0x18e840--;}}return _0xc84770[_0x401f('0xc6')](_0x28db53=>!_0x28db53['isIncorrect']);}[_0x401f('0xa2')](_0xc14519){const _0x5bb7e8=this[_0x401f('0x52')]['model'][_0x401f('0x11e')];for(let _0x5078a0=0x0;_0x5078a0<_0xc14519[_0x401f('0x117')];_0x5078a0++){if(!(_0xc14519[_0x5078a0][_0x401f('0x29')]||_0xc14519[_0x5078a0][_0x401f('0xac')]||_0xc14519[_0x5078a0][_0x401f('0x110')]||_0xc14519[_0x5078a0]['isRemoveSuggestion']))continue;if(0x0==_0xc14519[_0x5078a0][_0x401f('0x7b')])continue;const _0x4518bd=_0xc14519[_0x5078a0][_0x401f('0x85')];_0x5bb7e8['isBlock'](_0x4518bd)||_0x5bb7e8[_0x401f('0x6d')](_0x4518bd)||(_0xc14519[_0x5078a0][_0x401f('0x29')]&&delete _0xc14519[_0x5078a0][_0x401f('0x29')],_0xc14519[_0x5078a0]['isAddSuggestion']&&delete _0xc14519[_0x5078a0][_0x401f('0xac')],_0xc14519[_0x5078a0][_0x401f('0x7a')]&&delete _0xc14519[_0x5078a0][_0x401f('0x7a')],_0xc14519[_0x5078a0][_0x401f('0x110')]&&(_0xc14519[_0x5078a0][_0x401f('0xf7')]=!0x0));}return _0xc14519[_0x401f('0xc6')](_0x2d7b15=>!_0x2d7b15['isIncorrect']);}[_0x401f('0x15')](_0x397685,_0x2c317c,_0x404824){const _0x1163ed=new _0x4d57ae(),_0x5283cb=[],_0x4eab23=new Map(),_0x5d6b7f=this['editor'][_0x401f('0x40')],_0x139625=_0x5d6b7f[_0x401f('0x11e')],_0x35715b=[_0x1163ed],_0x122ff1={},_0x216221={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1870ed=null;const _0x4e04e6=[0x0];for(let _0x1f6640=0x0;_0x1f6640<_0x397685[_0x401f('0x117')];_0x1f6640++){let _0x1969c8,_0x2f40d7;if(_0x401f('0x86')===_0x397685[_0x1f6640][_0x401f('0x35')]){_0x1969c8=_0x5d6b7f[_0x401f('0x2f')](_0x1163ed,_0x4e04e6);const _0x333f2d=new _0x596da7(_0x397685[_0x1f6640][_0x401f('0x85')][_0x401f('0xaf')],_0x397685[_0x1f6640][_0x401f('0x85')][_0x401f('0xf5')]());_0x35715b[0x0][_0x401f('0xd2')](_0x333f2d),_0x4e04e6[_0x401f('0x38')](0x0),_0x35715b[_0x401f('0x112')](_0x333f2d),_0x2f40d7=_0x5d6b7f[_0x401f('0x2f')](_0x1163ed,_0x4e04e6),_0x1870ed=null;}else{if('elementEnd'===_0x397685[_0x1f6640]['type'])_0x35715b[_0x401f('0x74')](),_0x1969c8=_0x5d6b7f[_0x401f('0x2f')](_0x1163ed,_0x4e04e6),_0x4e04e6['pop'](),_0x4e04e6[_0x4e04e6[_0x401f('0x117')]-0x1]++,_0x2f40d7=_0x5d6b7f['createPositionFromPath'](_0x1163ed,_0x4e04e6),_0x1870ed=null;else{if(_0x1969c8=_0x5d6b7f[_0x401f('0x2f')](_0x1163ed,_0x4e04e6),_0x1870ed&&_0xdd9690(_0x1870ed,_0x397685[_0x1f6640][_0x401f('0x85')]))_0x1870ed[_0x401f('0xec')]+=_0x397685[_0x1f6640][_0x401f('0x85')][_0x401f('0x81')];else{const _0x3f7f83=new _0x36f440(_0x397685[_0x1f6640]['item'][_0x401f('0x81')],_0x397685[_0x1f6640][_0x401f('0x85')]['getAttributes']());_0x35715b[0x0][_0x401f('0xd2')](_0x3f7f83),_0x1870ed=_0x3f7f83;}_0x4e04e6[_0x4e04e6[_0x401f('0x117')]-0x1]+=_0x397685[_0x1f6640][_0x401f('0x85')][_0x401f('0xb2')],_0x2f40d7=_0x5d6b7f['createPositionFromPath'](_0x1163ed,_0x4e04e6);}}for(const _0x419328 of _0x397685[_0x1f6640][_0x401f('0x2b')])_0x4eab23['set'](_0x419328,{'start':_0x1969c8,'end':null});_0x28d996(_0x401f('0x7a'),_0x1f6640,_0x1969c8,_0x2f40d7),_0x28d996(_0x401f('0xac'),_0x1f6640,_0x1969c8,_0x2f40d7),_0x28d996(_0x401f('0x110'),_0x1f6640,_0x1969c8,_0x2f40d7),_0x28d996(_0x401f('0x29'),_0x1f6640,_0x1969c8,_0x2f40d7);for(const _0x26796e of _0x397685[_0x1f6640][_0x401f('0x8c')]){_0x4eab23[_0x401f('0xb3')](_0x26796e)['end']=_0x2f40d7;}}for(const [_0x3ec828,_0x305ce3]of _0x4eab23){const _0x2a80b4=this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0xf8')](_0x305ce3[_0x401f('0x101')],_0x305ce3[_0x401f('0x46')]);_0x1163ed['markers'][_0x401f('0xf0')](_0x3ec828,_0x2a80b4);}return _0x5283cb[_0x401f('0xb5')]((_0x422f5f,_0x38a072)=>{const _0x30a78b=_0x1163ed[_0x401f('0xed')][_0x401f('0xb3')](_0x401f('0xcc')+_0x422f5f['id']),_0x40efe3=_0x1163ed[_0x401f('0xed')][_0x401f('0xb3')]('revision:'+_0x38a072['id']);return _0x30a78b[_0x401f('0x101')]['isBefore'](_0x40efe3[_0x401f('0x101')])?-0x1:_0x30a78b[_0x401f('0x101')][_0x401f('0x30')](_0x40efe3[_0x401f('0x101')])?0x1:_0x30a78b[_0x401f('0x46')]['isBefore'](_0x40efe3[_0x401f('0x46')])?-0x1:_0x30a78b[_0x401f('0x46')][_0x401f('0x30')](_0x40efe3[_0x401f('0x46')])?0x1:'add'===_0x422f5f[_0x401f('0x35')]?-0x1:0x1;}),{'root':_0x1163ed,'changes':_0x5283cb};function _0x28d996(_0x570bce,_0x4cec31,_0x360a07,_0x1bb451){const _0x2be068=!!_0x397685[_0x4cec31][_0x570bce],_0x35c5b1=_0x2be068?_0x397685[_0x4cec31][_0x570bce][_0x401f('0x76')]:null,_0x23fbbd=_0x4cec31===_0x397685[_0x401f('0x117')]-0x1,_0x3e6a54=_0x216221[_0x570bce][0x0],_0x3936b6=_0x139625[_0x401f('0x5b')](_0x397685[_0x4cec31][_0x401f('0x85')]);!_0x122ff1[_0x570bce]&&_0x2be068?_0x122ff1[_0x570bce]={'start':_0x360a07,'tapeItem':_0x397685[_0x4cec31],'userId':_0x35c5b1,'type':_0x570bce}:_0x122ff1[_0x570bce]&&!_0x2be068?(_0x122ff1[_0x570bce]['end']=_0x360a07,_0xbeaeab(_0x122ff1[_0x570bce]),_0x122ff1[_0x570bce]=null):_0x122ff1[_0x570bce]&&_0x2be068&&_0x122ff1[_0x570bce][_0x401f('0x76')]!==_0x35c5b1&&(_0x122ff1[_0x570bce]['end']=_0x360a07,_0x3e6a54&&_0x3e6a54[_0x401f('0x76')]===_0x122ff1[_0x570bce][_0x401f('0x76')]||_0xbeaeab(_0x122ff1[_0x570bce]),_0x122ff1[_0x570bce]={'start':_0x360a07,'tapeItem':_0x397685[_0x4cec31],'userId':_0x35c5b1,'type':_0x570bce}),_0x122ff1[_0x570bce]&&_0x3936b6&&(_0x401f('0x86')!==_0x397685[_0x4cec31][_0x401f('0x35')]||_0x3e6a54&&_0x3e6a54[_0x401f('0x76')]===_0x35c5b1||_0x216221[_0x570bce][_0x401f('0x112')]({'userId':_0x35c5b1,'object':_0x397685[_0x4cec31][_0x401f('0x85')],'change':_0x122ff1[_0x570bce]}),'elementEnd'===_0x397685[_0x4cec31]['type']&&_0x3e6a54&&_0x3e6a54[_0x401f('0xa4')]===_0x397685[_0x4cec31][_0x401f('0x85')]&&(_0x216221[_0x570bce]['shift'](),_0x122ff1[_0x570bce]=_0x3e6a54['change'])),_0x122ff1[_0x570bce]&&_0x23fbbd&&(_0x122ff1[_0x570bce][_0x401f('0x46')]=_0x1bb451,_0xbeaeab(_0x122ff1[_0x570bce]),_0x122ff1[_0x570bce]=null);}function _0xbeaeab({start:_0x967eea,end:_0x518272,tapeItem:_0x389677,userId:_0x235c6e,type:_0x338e09}){const _0x206f20=_0x389677[_0x401f('0x85')],_0x19b229=_0x5d6b7f[_0x401f('0x11e')][_0x401f('0xd4')](_0x206f20)&&!_0x5d6b7f[_0x401f('0x11e')][_0x401f('0x6d')](_0x206f20),_0x11f167=_0x967eea[_0x401f('0x75')]==_0x518272[_0x401f('0x58')]&&_0x518272[_0x401f('0x44')];if(_0x19b229&&_0x11f167)return;const _0x3460a8=_0x5d6b7f[_0x401f('0xf8')](_0x967eea,_0x518272),_0x506da4=_0x2c317c[_0x401f('0xb3')](_0x235c6e),_0x5f185a=new _0x59d887({'author':_0x506da4,'type':_0x401f('0x29')==_0x338e09||_0x401f('0xac')==_0x338e09?_0x401f('0xbf'):'remove','data':{'isSuggestion':_0x401f('0xac')==_0x338e09||_0x401f('0x7a')==_0x338e09},'createdAt':new Date(),'rootName':_0x404824});_0x5283cb['push'](_0x5f185a),_0x1163ed['markers'][_0x401f('0xf0')](_0x401f('0xcc')+_0x5f185a['id'],_0x3460a8);}function _0xdd9690(_0x5a0093,_0x258d89){const _0x19bc30=_0x5a0093[_0x401f('0xf5')](),_0x26db8a=_0x258d89['getAttributes']();for(const _0x449ab6 of _0x19bc30){if(_0x449ab6[0x1]!==_0x258d89[_0x401f('0x78')](_0x449ab6[0x0]))return!0x1;_0x26db8a[_0x401f('0x1e')]();}return _0x26db8a['next']()[_0x401f('0x36')];}}[_0x401f('0xff')](){this['editor'][_0x401f('0xe5')][_0x401f('0x50')](_0x401f('0xad'))[_0x401f('0xb7')]({'view':_0x401f('0x43')}),this[_0x401f('0x52')]['conversion'][_0x401f('0x50')](_0x401f('0x73'))[_0x401f('0x1c')]({'model':_0x401f('0x43'),'view':_0x347199=>{const _0x563bad=_0x347199[_0x401f('0x6a')][_0x401f('0x64')](':')[0x1],_0x461623=this['_getChangeFromId'](_0x563bad);if(!_0x461623)return null;const _0x25fe5c=_0x401f('0xbf')==_0x461623['type']?_0x401f('0x13'):_0x401f('0x3f'),_0x46634e=[_0x401f('0xfd'),_0x401f('0xb0')+_0x25fe5c];return _0x461623[_0x401f('0x81')][_0x401f('0x115')]&&_0x46634e['push']('ck-suggestion-marker-'+_0x25fe5c+_0x401f('0x45')),this[_0x401f('0x9b')]==_0x461623&&_0x46634e[_0x401f('0x38')]('ck-suggestion-marker--active'),{'classes':_0x46634e,'attributes':{'data-change-id':_0x563bad}};}}),this[_0x401f('0x52')][_0x401f('0xe5')]['for'](_0x401f('0xad'))[_0x401f('0xbf')](_0x132292=>{_0x132292['on'](_0x401f('0x4d'),(_0xf5a1bc,_0x483df4,_0x167400)=>{const _0x518c8e=_0x483df4[_0x401f('0x11a')][_0x401f('0x4a')](0x0);if(!_0x518c8e||!_0x518c8e['is'](_0x401f('0xf1'),_0x401f('0xd1')))return;if(!_0x167400[_0x401f('0x99')][_0x401f('0x9a')](_0x518c8e,{'attributes':[_0x401f('0xaa'),_0x401f('0x9e')]}))return;const _0x592013=_0x483df4[_0x401f('0xc4')]['start']['nodeAfter'];_0x167400[_0x401f('0x11')][_0x401f('0x94')]('vid_start',_0x518c8e[_0x401f('0x78')](_0x401f('0xaa')),_0x592013),_0x167400['writer'][_0x401f('0x94')]('vid_end',_0x518c8e[_0x401f('0x78')](_0x401f('0x9e')),_0x592013);},{'priority':'low'});}),this['editor'][_0x401f('0xe5')]['for'](_0x401f('0xad'))[_0x401f('0xbf')](_0x42866f=>{_0x42866f['on']('element',(_0x74ee9a,_0x5c2c63,_0x36d5f4)=>{if(!_0x36d5f4[_0x401f('0x99')][_0x401f('0x9a')](_0x5c2c63[_0x401f('0x11a')],{'attributes':[_0x401f('0xaa'),'vid_end']}))return;if(_0x5c2c63['modelRange'][_0x401f('0x18')])return;const _0x37859f=_0x5c2c63['modelRange'][_0x401f('0x101')][_0x401f('0x75')];_0x37859f['hasAttribute'](_0x401f('0xaa'))||_0x37859f['hasAttribute'](_0x401f('0xbc'))||(_0x36d5f4[_0x401f('0x11')][_0x401f('0x94')](_0x401f('0xaa'),_0x5c2c63[_0x401f('0x11a')][_0x401f('0x78')](_0x401f('0xaa')),_0x37859f),_0x36d5f4['writer'][_0x401f('0x94')](_0x401f('0x9e'),_0x5c2c63[_0x401f('0x11a')][_0x401f('0x78')](_0x401f('0x9e')),_0x37859f));},{'priority':'low'});}),this[_0x401f('0x52')][_0x401f('0xe5')][_0x401f('0x50')]('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x55c5b1=>_0x55c5b1[_0x401f('0x78')](_0x401f('0xbc'))}}),this[_0x401f('0x52')]['model'][_0x401f('0x11e')]['on'](_0x401f('0x7d'),(_0x861a3b,[,_0x4226fe])=>{['vid_start',_0x401f('0x9e'),_0x401f('0xbc')][_0x401f('0xa')](_0x4226fe)&&(_0x861a3b[_0x401f('0x24')]=!0x0,_0x861a3b['stop']());},{'priority':_0x401f('0xa5')}),this[_0x401f('0x52')][_0x401f('0xe5')][_0x401f('0x50')](_0x401f('0x0'))[_0x401f('0xbf')](_0x3c5ef1=>{_0x3c5ef1['on']('attribute:vid',(_0x2c78ff,_0x59833c,_0xdd6e1e)=>{if('\x20'!=_0x59833c[_0x401f('0x85')][_0x401f('0x81')]||_0x59833c[_0x401f('0x85')]['parent']['maxOffset']>0x1)return;if(!_0xdd6e1e[_0x401f('0x99')]['consume'](_0x59833c[_0x401f('0x85')],_0x2c78ff[_0x401f('0xaf')]))return;const _0x36790d=_0xdd6e1e['writer'],_0x4b7b76=_0xdd6e1e[_0x401f('0xc8')][_0x401f('0x8d')](_0x59833c['range']);_0x36790d['wrap'](_0x4b7b76,_0x36790d[_0x401f('0xe3')]('span'));});}),this[_0x401f('0x52')][_0x401f('0xe5')][_0x401f('0x50')]('dataDowncast')[_0x401f('0xc7')]({'model':_0x401f('0x43')}),this[_0x401f('0x52')]['editing'][_0x401f('0x31')]['on'](_0x401f('0x34'),function(_0xa626f){const _0x4e4da8=_0xa626f[_0x401f('0x7f')]['get'](_0x401f('0x7'));return(_0x105e5d,_0x536686,_0x184a35)=>{const _0x364cd9=_0x536686[_0x401f('0x6a')]['split'](':')[0x1],_0x304ddc=_0x4e4da8[_0x401f('0x57')](_0x364cd9);if(!_0x304ddc)return null;const _0x2d087b='add'==_0x304ddc[_0x401f('0x35')]?_0x401f('0x64'):'merge';if(!_0x184a35[_0x401f('0x99')][_0x401f('0x23')](_0x536686[_0x401f('0x25')],_0x105e5d['name']))return;const _0x21629a=_0x536686[_0x401f('0x25')][_0x401f('0xf3')](),_0x5b803d=_0x536686[_0x401f('0x25')]['start'],_0xb4b944=_0xa626f[_0x401f('0x40')][_0x401f('0x11e')];let _0x631a4a=null,_0x5ab460=null,_0x2d5175=!0x1,_0x31a5b3=!0x1;for(const _0x19c6da of _0x21629a){const _0x2c99e1=_0x19c6da[_0x401f('0x85')];_0x2d5175=_0x2d5175||_0xb4b944[_0x401f('0xb1')](_0x2c99e1);const _0x1c537b=_0x184a35[_0x401f('0xc8')][_0x401f('0x103')](_0x2c99e1);if(_0x1c537b&&_0x1c537b['getCustomProperty'](_0x401f('0x98')))return;_0x401f('0x17')==_0x19c6da[_0x401f('0x35')]&&(_0xb4b944[_0x401f('0xd4')](_0x2c99e1)&&!_0xb4b944[_0x401f('0x6d')](_0x2c99e1)&&(_0x2c99e1[_0x401f('0x26')]||_0x5b803d[_0x401f('0x60')]?_0x631a4a&&_0x631a4a[_0x401f('0x58')]==_0x2c99e1||(_0x631a4a=_0x2c99e1,_0x12c9ba(_0x19c6da['previousPosition']),_0x31a5b3=!0x0):_0x5ab460=_0x5ab460||_0x19c6da[_0x401f('0x12')]));}function _0x12c9ba(_0x2d7c93){const _0x1d1dd9=_0x184a35['writer'][_0x401f('0x97')](_0x401f('0x104'),{'class':'ck-suggestion-marker-'+_0x2d087b}),_0x5330e5=_0x184a35['mapper'][_0x401f('0xee')](_0x2d7c93);_0x304ddc['data'][_0x401f('0x115')]&&_0x184a35[_0x401f('0x11')][_0x401f('0x10d')](_0x401f('0xb0')+_0x2d087b+'-new',_0x1d1dd9),_0x4e4da8[_0x401f('0x9b')]==_0x304ddc&&_0x184a35[_0x401f('0x11')][_0x401f('0x10d')](_0x401f('0x8a'),_0x1d1dd9),_0x184a35['writer'][_0x401f('0x8f')](_0x5330e5,_0x1d1dd9),_0x184a35[_0x401f('0xc8')][_0x401f('0x106')](_0x1d1dd9,_0x536686[_0x401f('0x6a')]);}_0x2d5175||_0x31a5b3||!_0x5ab460||_0x12c9ba(_0x5ab460);};}(this[_0x401f('0x52')]),{'priority':'high'}),this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x31')]['on'](_0x401f('0xa7'),(_0x4dac48,_0xb62cdb,_0x2e9cf9)=>{const _0x73e767=_0x2e9cf9[_0x401f('0xc8')][_0x401f('0xfc')](_0xb62cdb['markerName']);if(_0x73e767)for(const _0x5d0f89 of _0x73e767)(_0x5d0f89[_0x401f('0xb8')](_0x401f('0x77'))||_0x5d0f89[_0x401f('0xb8')](_0x401f('0x116')))&&(_0x2e9cf9[_0x401f('0xc8')]['unbindElementFromMarkerName'](_0x5d0f89,_0xb62cdb[_0x401f('0x6a')]),_0x2e9cf9['writer'][_0x401f('0xf9')](_0x5d0f89));},{'priority':_0x401f('0x42')}),this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x31')]['on'](_0x401f('0x34'),(_0x2712f0,_0x42af78,_0x1b678f)=>{const _0x4c56ef=_0x42af78[_0x401f('0x6a')]['split'](':')[0x1],_0x4f3c40=this[_0x401f('0x57')](_0x4c56ef);if(!_0x4f3c40)return null;const _0x5ec920='add'==_0x4f3c40[_0x401f('0x35')]?_0x401f('0x64'):_0x401f('0x28');if(_0x1b678f[_0x401f('0x99')][_0x401f('0x23')](_0x42af78[_0x401f('0x25')],_0x2712f0[_0x401f('0xaf')]))for(const _0x3af900 of _0x42af78['markerRange']['getItems']()){if(!_0x3af900['is'](_0x401f('0xf1'),'softBreak'))continue;const _0x103e95=_0x1b678f[_0x401f('0x11')][_0x401f('0x97')]('span',{'class':_0x401f('0xb0')+_0x5ec920}),_0x29c6c6=_0x1b678f['mapper'][_0x401f('0xee')](this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0x10a')](_0x3af900));_0x4f3c40[_0x401f('0x81')][_0x401f('0x115')]&&_0x1b678f[_0x401f('0x11')][_0x401f('0x10d')]('ck-suggestion-marker-'+_0x5ec920+'-new',_0x103e95),this['activeChange']==_0x4f3c40&&_0x1b678f[_0x401f('0x11')]['addClass'](_0x401f('0x8a'),_0x103e95),_0x1b678f[_0x401f('0x11')][_0x401f('0x8f')](_0x29c6c6,_0x103e95),_0x1b678f['mapper'][_0x401f('0x106')](_0x103e95,_0x42af78[_0x401f('0x6a')]);}},{'priority':_0x401f('0x42')}),this[_0x401f('0x52')][_0x401f('0x40')]['document']['on']('change',()=>{this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x93')]['change'](_0x2e5be2=>{for(const _0x19dfdf of this[_0x401f('0x52')]['model'][_0x401f('0x111')][_0x401f('0x4b')]()){const _0xfe83c8=this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0x111')]['getRoot'](_0x19dfdf),_0x5ac629=this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x93')][_0x401f('0x111')]['getRoot'](_0x19dfdf);if(_0x5ac629){const _0x2c7ce5=_0xfe83c8[_0x401f('0x78')]('revisionHistoryAttachChange');if(_0x2e5be2['removeAttribute'](_0x401f('0x9d'),_0x5ac629),_0x2e5be2[_0x401f('0x55')](_0x401f('0xdd'),_0x5ac629),_0x2e5be2[_0x401f('0x55')]('ck-revision-history-root-remove',_0x5ac629),_0x2e5be2[_0x401f('0x55')](_0x401f('0x3a'),_0x5ac629),_0x2c7ce5){const _0x9f055b=this[_0x401f('0x57')](_0x2c7ce5);if(!_0x9f055b)return null;_0x2e5be2[_0x401f('0x94')]('data-change-id',_0x2c7ce5,_0x5ac629),_0x2e5be2[_0x401f('0x10d')]('ck-revision-history-root-'+_0x9f055b[_0x401f('0x35')],_0x5ac629),this['activeChange']==_0x9f055b&&_0x2e5be2['addClass'](_0x401f('0x3a'),_0x5ac629);}}}});}),this[_0x401f('0x52')]['conversion']['for'](_0x401f('0xad'))[_0x401f('0xb7')]({'view':'comment','model':_0x272c54=>_0x401f('0x100')+_0x272c54,'converterPriority':_0x401f('0xa5')}),this[_0x401f('0x52')][_0x401f('0xe5')][_0x401f('0x50')]('upcast')[_0x401f('0xb7')]({'view':_0x401f('0xf6'),'model':_0x23db11=>_0x401f('0x1f')+_0x23db11,'converterPriority':'highest'}),this['editor'][_0x401f('0xe5')][_0x401f('0x50')]('dataDowncast')[_0x401f('0xc7')]({'model':_0x401f('0x11c'),'view':_0x4daa8=>({'name':_0x401f('0x8')+_0x4daa8,'group':_0x401f('0x11c')}),'converterPriority':_0x401f('0xa5')}),this[_0x401f('0x52')]['conversion']['for'](_0x401f('0x73'))[_0x401f('0x1c')]({'model':'revision-suggestion','view':_0x485267=>{const _0x19a7cb=_0x485267[_0x401f('0x6a')]['split'](':')[0x1];return _0x401f('0x13')!=_0x19a7cb&&_0x401f('0x3f')!=_0x19a7cb?null:{'classes':[_0x401f('0x4c'),'ck-suggestion-preview-marker-'+_0x19a7cb]};}}),this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x31')]['on'](_0x401f('0x5'),et(this[_0x401f('0x52')],_0x401f('0x28')),{'priority':_0x401f('0x42')}),this['editor'][_0x401f('0xc9')][_0x401f('0x31')]['on'](_0x401f('0xeb'),et(this['editor'],'split'),{'priority':_0x401f('0x42')}),this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x31')]['on']('removeMarker:revision-suggestion',(_0x2b8737,_0x31daa4,_0x4ca2d8)=>{const _0xdcad59=_0x4ca2d8['mapper'][_0x401f('0xfc')](_0x31daa4['markerName']);if(_0xdcad59)for(const _0x13c382 of _0xdcad59)_0x13c382['is'](_0x401f('0x53'))&&(_0x4ca2d8[_0x401f('0xc8')][_0x401f('0x22')](_0x13c382,_0x31daa4['markerName']),_0x4ca2d8[_0x401f('0x11')][_0x401f('0xf9')](_0x13c382));},{'priority':'high'});}[_0x401f('0x57')](_0x3ab4d5){return this[_0x401f('0xe1')][_0x401f('0xb3')](_0x3ab4d5);}[_0x401f('0xef')](_0x512166){return this[_0x401f('0x5d')]&&this['_changeView']['destroy'](),this[_0x401f('0x5d')]=new _0x315e58(this[_0x401f('0x52')]['locale'],_0x512166),this[_0x401f('0x5d')];}[_0x401f('0x5e')](){this[_0x401f('0x52')][_0x401f('0x40')]['document']['selection'][_0x401f('0x69')]('revision'),this['on']('change:activeView',(_0x34f9fd,_0x43dee1,_0x16ca85,_0x49ef3d)=>{_0x49ef3d&&this['_balloon'][_0x401f('0xf9')](_0x49ef3d),_0x16ca85&&(this[_0x401f('0xa0')][_0x401f('0xbf')]({'view':_0x16ca85,'stackId':_0x401f('0xcd'),'position':{'target':()=>{const _0x519e47=this['editor'][_0x401f('0xc9')],_0x38cb97=this[_0x401f('0x57')](_0x16ca85[_0x401f('0xf4')]);let _0x39b903;if(_0x38cb97['data'][_0x401f('0x7e')]){const _0x30e0d0=_0x519e47[_0x401f('0x93')]['getDomRoot'](_0x38cb97[_0x401f('0xd8')]);_0x39b903=Array[_0x401f('0xd')](_0x30e0d0[_0x401f('0x41')]());}else{const _0x3b435e=this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0xed')][_0x401f('0xb3')](_0x401f('0xcc')+_0x16ca85[_0x401f('0xf4')]);_0x39b903=Array[_0x401f('0xd')](_0x519e47[_0x401f('0xc8')][_0x401f('0xfc')](_0x3b435e[_0x401f('0xaf')]))[_0x401f('0x33')](_0x49a5ee=>_0x519e47[_0x401f('0x93')][_0x401f('0x10')][_0x401f('0x2c')](_0x49a5ee))[_0x401f('0x33')](_0x18d2ec=>Array[_0x401f('0xd')](_0x18d2ec['getClientRects']()))[_0x401f('0xe4')]();}if(!this[_0x401f('0x4')])return _0x39b903[0x0];return _0x39b903[_0x401f('0x4f')](_0x4348d0=>_0x4348d0[_0x401f('0x105')]-0x3<=this[_0x401f('0x4')]['y']&&_0x4348d0[_0x401f('0x10c')]+0x3>=this[_0x401f('0x4')]['y']&&_0x4348d0[_0x401f('0xf')]-0x3<=this[_0x401f('0x4')]['x']&&_0x4348d0[_0x401f('0xb9')]+0x3>=this[_0x401f('0x4')]['x'])||_0x39b903[0x0];}}}),this[_0x401f('0xa0')]['showStack'](_0x401f('0xcd')));}),this['on'](_0x401f('0x82'),(_0x20f641,_0x5caa20,_0x14d248,_0x231463)=>{this[_0x401f('0xdb')]=_0x14d248?this['_getViewForChange'](_0x14d248):null,this[_0x401f('0x52')]['model'][_0x401f('0xe2')](()=>{const _0x2892d7=this['editor'][_0x401f('0xc9')];_0x231463&&(_0x231463[_0x401f('0x81')][_0x401f('0x7e')]?_0x2892d7['view'][_0x401f('0xe2')](_0x3b1a86=>{_0x3b1a86['removeClass'](_0x401f('0x3a'),_0x2892d7[_0x401f('0x93')][_0x401f('0x111')][_0x401f('0x63')](_0x231463[_0x401f('0xd8')]));}):_0x2892d7['reconvertMarker'](_0x401f('0xcc')+_0x231463['id'])),_0x14d248&&(_0x14d248[_0x401f('0x81')]['isOnRoot']?_0x2892d7[_0x401f('0x93')][_0x401f('0xe2')](_0x1afced=>{_0x1afced['addClass'](_0x401f('0x3a'),_0x2892d7[_0x401f('0x93')]['document']['getRoot'](_0x14d248['rootName']));}):_0x2892d7[_0x401f('0xb4')](_0x401f('0xcc')+_0x14d248['id']));});}),this['listenTo'](this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x93')][_0x401f('0x111')],_0x401f('0x3c'),(_0x507c91,_0x29b8e8)=>{if(this[_0x401f('0x9b')])return;const _0x20ead2=this[_0x401f('0xde')](_0x29b8e8['target']),_0xb930fa=this[_0x401f('0xe1')][_0x401f('0xb3')](_0x20ead2);_0xb930fa?(this[_0x401f('0x4')]={'x':_0x29b8e8[_0x401f('0xcb')]['x'],'y':_0x29b8e8[_0x401f('0xcb')]['y']},this['activeView']=this[_0x401f('0xef')](_0xb930fa)):(this[_0x401f('0x4')]=null,this[_0x401f('0xdb')]=null);}),this['listenTo'](this['editor'][_0x401f('0xc9')][_0x401f('0x93')]['document'],_0x401f('0x95'),(_0x5f3314,_0x3e0f30)=>{const _0x2c4553=this[_0x401f('0xde')](_0x3e0f30['target']),_0x4c5f83=this['_changeIdToChange'][_0x401f('0xb3')](_0x2c4553);_0x4c5f83?(this[_0x401f('0x4')]={'x':_0x3e0f30[_0x401f('0xcb')]['x'],'y':_0x3e0f30[_0x401f('0xcb')]['y']},_0x4c5f83===this['activeChange']?this[_0x401f('0xa0')][_0x401f('0xa9')]():this[_0x401f('0x9b')]=_0x4c5f83):(this[_0x401f('0x4')]=null,this[_0x401f('0x9b')]=null);});}['_findChangeIdFromDomTarget'](_0x3939cd){do{const _0x1e41bb=_0x3939cd[_0x401f('0x78')]('data-change-id');if(_0x1e41bb)return _0x1e41bb;_0x3939cd=_0x3939cd[_0x401f('0x58')];}while(_0x3939cd);return null;}[_0x401f('0x48')](){this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0xe2')](_0x17e4d7=>{for(const _0x281939 of this['editor'][_0x401f('0x40')][_0x401f('0xed')])_0x17e4d7[_0x401f('0xa1')](_0x281939);});}}function et(_0x3738a4,_0x543792){return(_0x5efafe,_0x55df51,_0x5476b7)=>{if(!_0x5476b7['consumable'][_0x401f('0x23')](_0x55df51[_0x401f('0x25')],_0x5efafe[_0x401f('0xaf')]))return;const _0x1c0cc9=_0x55df51[_0x401f('0x25')]['getWalker'](),_0x36f410=_0x55df51[_0x401f('0x25')][_0x401f('0x101')],_0x200e91=_0x3738a4[_0x401f('0x40')][_0x401f('0x11e')];let _0x166390=null,_0x3ae569=null,_0x47c5fb=!0x1,_0x12bf8f=!0x1;for(const _0x3a4fa5 of _0x1c0cc9){const _0x523514=_0x3a4fa5[_0x401f('0x85')];_0x47c5fb=_0x47c5fb||_0x200e91[_0x401f('0xb1')](_0x523514);const _0x28c7f6=_0x5476b7['mapper'][_0x401f('0x103')](_0x523514);if(_0x28c7f6&&_0x28c7f6[_0x401f('0x119')](_0x401f('0x98')))return;_0x401f('0x17')==_0x3a4fa5['type']&&(_0x200e91['isBlock'](_0x523514)&&!_0x200e91[_0x401f('0x6d')](_0x523514)&&(_0x523514[_0x401f('0x26')]||_0x36f410['isAtEnd']?_0x166390&&_0x166390[_0x401f('0x58')]==_0x523514||(_0x166390=_0x523514,_0x1a8576(_0x3a4fa5[_0x401f('0x12')]),_0x12bf8f=!0x0):_0x3ae569=_0x3ae569||_0x3a4fa5[_0x401f('0x12')]));}function _0x1a8576(_0x263c20){const _0x2ff18f=_0x5476b7[_0x401f('0xc8')][_0x401f('0xee')](_0x263c20),_0x5c0f6d=_0x5476b7[_0x401f('0x11')][_0x401f('0x97')](_0x401f('0x104'),{'class':_0x401f('0x2e')+_0x543792});_0x5476b7[_0x401f('0x11')][_0x401f('0x8f')](_0x2ff18f,_0x5c0f6d),_0x5476b7[_0x401f('0xc8')][_0x401f('0x106')](_0x5c0f6d,_0x55df51['markerName']);}_0x47c5fb||_0x12bf8f||!_0x3ae569||_0x1a8576(_0x3ae569);};}export class RestoreRevisionCommand extends _0x4d8cb9{constructor(_0x5db051){super(_0x5db051);const _0x367d62=_0x5db051[_0x401f('0x7f')]['get'](d);this[_0x401f('0x68')]=!0x1,this['listenTo'](_0x367d62,_0x401f('0x107'),()=>this[_0x401f('0x6c')]()),this[_0x401f('0x27')](_0x367d62,_0x401f('0xae'),()=>this[_0x401f('0x6c')]());}['execute'](){const _0x2d3e8b=this[_0x401f('0x52')],_0x12e0df=_0x2d3e8b['plugins'][_0x401f('0xb3')](d),_0xc944f8=_0x12e0df[_0x401f('0x19')]?_0x12e0df['diff'][_0x401f('0x3d')]:null;_0x2d3e8b[_0x401f('0xe6')][_0x401f('0xb3')](_0x401f('0x16'))[_0x401f('0x67')](_0xc944f8);}[_0x401f('0x6c')](){const {isReady:_0x147790,isEnabled:_0x3df6df}=this[_0x401f('0x52')][_0x401f('0x7f')]['get'](d);this[_0x401f('0x56')]=_0x147790&&_0x3df6df;}}export class ShowChangeCommand extends _0x4d8cb9{constructor(_0x22fb26,{direction:_0x52a172}){super(_0x22fb26);const _0x21577b=_0x22fb26[_0x401f('0x7f')][_0x401f('0xb3')](d);this['affectsData']=!0x1,this[_0x401f('0xa3')]='forward'===_0x52a172?0x1:-0x1,this[_0x401f('0x27')](_0x21577b,'change:isReady',()=>this[_0x401f('0x6c')]()),this['listenTo'](_0x21577b,_0x401f('0xae'),()=>this['refresh']()),this[_0x401f('0x27')](_0x21577b,_0x401f('0x82'),()=>this[_0x401f('0x6c')]());}[_0x401f('0xc5')](){const _0x258ae4=this[_0x401f('0x52')],_0x15bdd2=_0x258ae4[_0x401f('0x7f')][_0x401f('0xb3')](d),{isNavigationMode:_0xd3b821,currentChangeNumber:_0x1346b2}=_0x15bdd2;let _0x57574b;if(_0x15bdd2[_0x401f('0x9b')]=_0xd3b821?_0x15bdd2[_0x401f('0x1b')]['changes']['get'](_0x1346b2+this[_0x401f('0xa3')]):_0x15bdd2[_0x401f('0x1b')][_0x401f('0xd5')]['first'],_0x15bdd2[_0x401f('0x9b')][_0x401f('0x81')][_0x401f('0x7e')])_0x57574b=_0x258ae4[_0x401f('0xc9')][_0x401f('0x93')][_0x401f('0xab')](_0x15bdd2['activeChange'][_0x401f('0xd8')]);else{const _0xfce9ac=_0x258ae4['model'][_0x401f('0xed')][_0x401f('0xb3')](_0x401f('0xcc')+_0x15bdd2[_0x401f('0x9b')]['id']);_0x57574b=_0x2b38af(_0x258ae4[_0x401f('0xc9')],_0xfce9ac);}_0x4c597a({'target':_0x57574b,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x461fe6,currentChangeNumber:_0x2075c2,numberOfChanges:_0x3e4a05,isReady:_0x5e01bd,isEnabled:_0x1f8123}=this[_0x401f('0x52')]['plugins'][_0x401f('0xb3')](d);this[_0x401f('0x56')]=!!(_0x1f8123&&_0x5e01bd&&_0x3e4a05)&&(!_0x461fe6||(0x1===this[_0x401f('0xa3')]?_0x2075c2<_0x3e4a05-0x1:_0x2075c2>0x0));}}
23
+ const _0xd7d1=['toViewPosition','_cleanUp','consumable','_markInsertions','shift','set','numberOfChanges','_markMismatchedRemovedTags','getDomRoot','model','_markSuggestions','isAtEnd','compare','schema','forEach','isRemoveSuggestion','_getRevisionsRange','getRevision','add','_makeModelFromViewString','clear','isEqual','revision','processor','activeView','conversion','change:activeChange','length','toModel','_getViewForChange','mapViewToDom','getClientRects','_changeView','then','plugins','_removeUnsupportedChanges','softBreak','hasAttribute','ck-revision-history-root--active','unbindElementFromMarkerName','_getViewObj','name','code','activeChange','attachChange','left','init','userId','getRevisionData','checkAttribute','createUIElement','refresh','map','from','hasClass','isReady','createPositionBefore','range','target','sort','ck-suggestion-marker--active','done','startIndex','isNavigationMode','addRevisionData','string','_makeTape','WidgetToolbarRepository','markers','resolve','isCollapsed','writer','object','level','data-revision-','createRevision','nextSibling','element','markerRange','uiElement','addHighlight','forceDisabled','span','showNextChange','suggestion','flat','next','change:isReady','revision-viewer','revisionHistoryLabel','all','revision-comment:','detachRoot','vid','elementStart','splice','keys','mouseover','end','low','nodeAfter','insertion','isAttached','collaboration.channelId','restoreRevision','_makeModelFromTape','useFillerType','removeMarker','pairId','_appendChild','getChild','_activeViewTarget','ck-suggestion-preview-marker-','isAtStart','elementEnd','getIndex','affectsData','revision-suggestion:','domConverter','toData','loadRevisionData','_initInteractions','previousPosition','endIndex','right','isSuggestion','_setDistance','rootName','_removeMissingPairs','distance','side','changes','_fixObsoleteTags','slice','parse','isOnRoot','diffData','isAddSuggestion','get','editingDowncast','isAfter','revision-suggestion','createPositionFromPath','push','view','_markMarkers','ck-suggestion-preview-marker','split','attributesBefore','insertions','_changeIdToChange','bindElementToMarker','data','_update','adapter','_refreshStartEndIndex','bottom','item','revisionHistory','for','concat','setAttribute','ck-suggestion-marker-split','changeId','values','ck-suggestion-marker-','delete','isContent','_threeWayMerge','execute','getCustomProperty','remove','showStack','document','enableReadOnlyMode','isBlock','RevisionsRepository','destroy','_joinTapes','_data','_setConversion','marked','getRoot','find','newRevisionId','getItems','mapper','change:isEnabled','config','merge','unshift','_revisions','markerNameToElements','dataDowncast','-new','repository','ck-editor__editable__overlay','markerToData','highest','getAttribute','ck-suggestion-marker','addRoot','markersEnd','error','startsWith','has','bind','deletions','children','nextPosition','consume','editing','_cleanMarkers','upcast','authors','attributes','commands','return','isBefore','isRemoved','revisionHistoryAttachChange','selection','roots','reconvertMarker','isAdded','createRange','filter','POSITIVE_INFINITY','markerName','enqueueChange','data-change-id','index','listenTo','offsetSize','test','parent','isInline','_setChanges','RevisionViewer','vid_end','editor','_getChangeFromId','isEnabled','high','viewItem','getWalker','downcastDispatcher','addMarker:revision','removeClass','isIncorrect','getAttributes','deletion','toViewElement','_processTape','revision:','getRootNames','catch','change','wrap','addClass','markersStart','vid_start','currentChangeNumber','modelRange','markerToHighlight','text','ck-revision-history-root-add','_sortAndFilterDiffChanges','mousedown','backward','domEvent','attributesAfter','locale','indexOf','_removeRevisionMarkers','start','insert','_step','abs','isLimit','attribute:vid','type','_balloon','dataToMarker','diff','addMarker:revision-suggestion:insertion'];(function(_0x4ec448,_0xd7d107){const _0x3bc164=function(_0x17797c){while(--_0x17797c){_0x4ec448['push'](_0x4ec448['shift']());}};_0x3bc164(++_0xd7d107);}(_0xd7d1,0x1af));const _0x3bc1=function(_0x4ec448,_0xd7d107){_0x4ec448=_0x4ec448-0x0;let _0x3bc164=_0xd7d1[_0x4ec448];return _0x3bc164;};import{Plugin as _0x92dd13,Command as _0x484f37}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x23e2a0}from'ckeditor5/src/utils';import{ContextualBalloon as _0x1a4322}from'ckeditor5/src/ui';import{DocumentFragment as _0x111441,Element as _0x6329a5,Text as _0x1fd28b,ViewDocumentFragment as _0x42248a,ViewText as _0x679ba5,ViewElement as _0x184656,ViewContainerElement as _0x19b6be,ViewAttributeElement as _0x8e8bde,ViewEmptyElement as _0x32c15c,ViewRawElement as _0x32b0b0,ViewUIElement as _0x56cce6}from'ckeditor5/src/engine';import{Users as _0x128512,getMarkerDomElement as _0x1340aa}from'ckeditor5-collaboration/src/collaboration-core';import _0x44934d from'./ui/revisionviewer/changedetailsview';import _0x361e7e from'./revisionsrepository';import _0x28f86b from'./changeitem';import{default as _0x210a4a}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4c670b}from'lodash-es';const tt={'c':_0x19b6be,'a':_0x8e8bde,'e':_0x32c15c,'r':_0x32b0b0,'u':_0x56cce6};export default class d extends _0x92dd13{static get['pluginName'](){return _0x3bc1('0x5d');}static get['requires'](){return[_0x128512,_0x1a4322,_0x361e7e];}constructor(_0x430d15){super(_0x430d15),this[_0x3bc1('0x32')]=this[_0x3bc1('0x5f')][_0x3bc1('0xaf')][_0x3bc1('0x117')](_0x3bc1('0x1f')),this[_0x3bc1('0x92')](_0x3bc1('0xb8'),null),this['set']('activeView',null),this[_0x3bc1('0xfc')]=null,this[_0x3bc1('0x92')]('diff',null),this[_0x3bc1('0x92')](_0x3bc1('0xc4'),!0x1),this[_0x3bc1('0x92')]('isEnabled',!0x0),this['on'](_0x3bc1('0x2a'),(_0x327794,_0x388527,_0x3ebd05)=>{this['activeChange']=null,this[_0x3bc1('0xa5')]=null,this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x70')](_0x9a8426=>{for(const _0x727fa0 of this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x1c')][_0x3bc1('0x4d')])_0x3ebd05?_0x9a8426[_0x3bc1('0x67')](_0x3bc1('0x33'),_0x727fa0):_0x9a8426[_0x3bc1('0x72')](_0x3bc1('0x33'),_0x727fa0);});}),this['bind'](_0x3bc1('0xcc'))['to'](this,_0x3bc1('0xb8'),_0x1c7294=>null!==_0x1c7294),this[_0x3bc1('0x3d')](_0x3bc1('0x75'))['to'](this,'isReady',this,_0x3bc1('0x8b'),this,_0x3bc1('0xb8'),(_0x57cccb,_0x143206,_0x2b76a1)=>_0x57cccb&&_0x2b76a1?_0x143206['changes'][_0x3bc1('0x100')](_0x2b76a1):0x0),this[_0x3bc1('0x3d')](_0x3bc1('0x93'))['to'](this,_0x3bc1('0xc4'),this,_0x3bc1('0x8b'),(_0x4eb346,_0x460227)=>_0x4eb346?_0x460227[_0x3bc1('0x110')][_0x3bc1('0xa8')]:0x0),this[_0x3bc1('0xad')]=null,this[_0x3bc1('0x5')]=new Map(),this[_0x3bc1('0x9')]=null,this[_0x3bc1('0x89')]=this[_0x3bc1('0x5f')]['plugins'][_0x3bc1('0x117')](_0x1a4322);}[_0x3bc1('0xbb')](){const _0x3bbd16=this['editor'],_0xc72be5=new ShowChangeCommand(_0x3bbd16,{'direction':_0x3bc1('0x7c')}),_0x401860=new ShowChangeCommand(_0x3bbd16,{'direction':'forward'});(_0x3bbd16['commands'][_0x3bc1('0x9f')]('showPreviousChange',_0xc72be5),_0x3bbd16[_0x3bc1('0x47')][_0x3bc1('0x9f')](_0x3bc1('0xe0'),_0x401860),_0x3bbd16[_0x3bc1('0x47')][_0x3bc1('0x9f')](_0x3bc1('0xf5'),new RestoreRevisionCommand(_0x3bbd16)),this['on']('change:numberOfChanges',()=>{_0xc72be5['refresh'](),_0x401860['refresh']();}),this[_0x3bc1('0x23')](),this[_0x3bc1('0x106')](),_0x3bbd16[_0x3bc1('0x1d')](_0x3bc1('0xe5')),_0x3bbd16[_0x3bc1('0xaf')]['has'](_0x3bc1('0xd0')))&&_0x3bbd16[_0x3bc1('0xaf')][_0x3bc1('0x117')](_0x3bc1('0xd0'))[_0x3bc1('0xde')]('revision-viewer');}async[_0x3bc1('0xbd')](_0x290dc0){await this['loadRevisionData'](_0x290dc0);const _0x5698b6={};for(const _0x212aa6 in _0x290dc0[_0x3bc1('0x115')]){if(_0x290dc0[_0x3bc1('0x115')][_0x212aa6][_0x3bc1('0xb9')]&&!_0x290dc0[_0x3bc1('0x115')][_0x212aa6]['attachChange'][_0x3bc1('0xf3')])continue;const _0x4b3239=this[_0x3bc1('0x81')](JSON[_0x3bc1('0x113')](_0x290dc0[_0x3bc1('0x115')][_0x212aa6][_0x3bc1('0x4')])),_0x3dda83=this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x1c')],_0x3bc37c=new _0x42248a(_0x3dda83,_0x4b3239[_0x3bc1('0xc1')](_0x160486=>this['_getViewObj'](_0x160486)));this['editor']['data'][_0x3bc1('0xa4')]['useFillerType'](_0x3bc1('0x24')),_0x5698b6[_0x212aa6]=this['editor'][_0x3bc1('0x7')][_0x3bc1('0xa4')][_0x3bc1('0x104')](_0x3bc37c),this[_0x3bc1('0x5f')][_0x3bc1('0x7')][_0x3bc1('0xa4')][_0x3bc1('0xf7')]('default');}return _0x5698b6;}async['getRevisionRootsAttributes'](_0x432ff1){await this[_0x3bc1('0x105')](_0x432ff1);const _0x34ef08={};for(const _0x10de5a in _0x432ff1['diffData'])_0x432ff1['diffData'][_0x10de5a][_0x3bc1('0xb9')]&&!_0x432ff1[_0x3bc1('0x115')][_0x10de5a][_0x3bc1('0xb9')][_0x3bc1('0xf3')]||(_0x34ef08[_0x10de5a]=_0x432ff1[_0x3bc1('0x115')][_0x10de5a]['attributesAfter']||{});return _0x34ef08;}[_0x3bc1('0x81')](_0x41c4ae){return(_0x41c4ae=_0x41c4ae[_0x3bc1('0x51')](_0x569c62=>!_0x569c62[_0x3bc1('0xb6')]||'revision-start'!==_0x569c62[_0x3bc1('0xb6')]&&'revision-end'!==_0x569c62[_0x3bc1('0xb6')]))['forEach'](_0x4a6a74=>{_0x3bc1('0xce')!=typeof _0x4a6a74&&(_0x4a6a74[_0x3bc1('0x3f')]=this[_0x3bc1('0x81')](_0x4a6a74[_0x3bc1('0x3f')]),_0x4a6a74[_0x3bc1('0x46')]=_0x4a6a74[_0x3bc1('0x46')][_0x3bc1('0x51')](_0x473df4=>!_0x473df4[0x0][_0x3bc1('0x3b')](_0x3bc1('0xd7'))));}),_0x41c4ae;}async[_0x3bc1('0x99')](_0x5796a9,_0x13b2a9,_0x22adcd=!0x1){if(!this[_0x3bc1('0x61')])return;const _0x5edc23=this[_0x3bc1('0x8b')],_0x292ca0=this[_0x3bc1('0x32')],_0x142742=_0x3bc1('0xce')==typeof _0x5796a9?_0x292ca0[_0x3bc1('0x9e')](_0x5796a9):_0x5796a9,_0x41929c=_0x3bc1('0xce')==typeof _0x13b2a9?_0x292ca0[_0x3bc1('0x9e')](_0x13b2a9):_0x13b2a9,_0x345104=_0x142742['id'],_0x4c5255=_0x41929c?_0x41929c['id']:null;if(!_0x22adcd&&this[_0x3bc1('0x8b')]&&this[_0x3bc1('0x8b')][_0x3bc1('0x27')]===_0x345104&&this[_0x3bc1('0x8b')]['oldRevisionId']===_0x4c5255)return Promise[_0x3bc1('0xd2')]();this[_0x3bc1('0xc4')]=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new _0x210a4a(_0x345104,_0x4c5255);const _0x310c64=this[_0x3bc1('0x9d')](_0x142742,_0x41929c,!0x0)[_0x3bc1('0xc1')](_0xa3b091=>this[_0x3bc1('0x105')](_0xa3b091));return _0x310c64[_0x3bc1('0x11c')](new Promise(_0x2dcfd1=>{setTimeout(_0x2dcfd1,0x14);})),Promise[_0x3bc1('0xe7')](_0x310c64)[_0x3bc1('0xae')](()=>{if(!this['isEnabled'])return;this[_0x3bc1('0x8e')]();const _0x312899=this['_getDiff'](_0x345104,_0x4c5255);for(const _0x3d6593 of _0x312899['changes'])this[_0x3bc1('0x5')][_0x3bc1('0x92')](_0x3d6593['id'],_0x3d6593);this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['enqueueChange']({'isUndoable':!0x1},_0x1963a7=>{for(const _0x1417ff of this[_0x3bc1('0x5f')]['model'][_0x3bc1('0x1c')][_0x3bc1('0x6e')]())_0x1963a7[_0x3bc1('0xe9')](_0x1417ff);for(const _0x2dfd7c of Object[_0x3bc1('0xed')](_0x312899[_0x3bc1('0x96')])){const _0x3e5b2b=_0x1963a7[_0x3bc1('0x38')](_0x2dfd7c);for(const _0x1a2243 of Object[_0x3bc1('0xed')](_0x312899['attributes'][_0x2dfd7c]))_0x1963a7['setAttribute'](_0x1a2243,_0x312899[_0x3bc1('0x46')][_0x2dfd7c][_0x1a2243],_0x3e5b2b);_0x1963a7['insert'](_0x312899['model'][_0x2dfd7c],_0x3e5b2b,0x0);}}),this[_0x3bc1('0x8b')][_0x3bc1('0x5c')](this[_0x3bc1('0x7a')](_0x312899['changes'])),this['isReady']=!0x0;})[_0x3bc1('0x6f')](_0x3b6c36=>{console[_0x3bc1('0x3a')](_0x3b6c36),this['_cleanUp'](),_0x5edc23&&(this[_0x3bc1('0x8b')]=_0x5edc23),this[_0x3bc1('0xc4')]=!0x0;});}[_0x3bc1('0xcd')](_0x3640d7,_0x146288){const _0x1b88ff=this[_0x3bc1('0x32')][_0x3bc1('0xd8')](_0x3640d7);return _0x1b88ff['on'](_0x3bc1('0x8'),(_0xb0fe09,_0x5a35db,_0x489a15)=>_0x146288(_0x5a35db,_0x489a15,_0x1b88ff)),this['repository']['addRevision'](_0x1b88ff),_0x1b88ff;}[_0x3bc1('0x105')](_0x15029f){if(!_0x15029f||_0x15029f[_0x3bc1('0x115')])return Promise[_0x3bc1('0xd2')]();{const _0x13b082=this['editor'][_0x3bc1('0x2b')][_0x3bc1('0x117')](_0x3bc1('0xf4'));return this[_0x3bc1('0x9')][_0x3bc1('0x9e')]({'channelId':_0x13b082,'revisionId':_0x15029f['id']})[_0x3bc1('0xae')](_0x4d0aeb=>{_0x15029f[_0x3bc1('0x8')]({'diffData':_0x4d0aeb[_0x3bc1('0x115')]},!0x0);});}}[_0x3bc1('0x8e')](){this[_0x3bc1('0xb8')]=null,this['_cleanMarkers'](),this[_0x3bc1('0xad')]&&this[_0x3bc1('0xad')][_0x3bc1('0x20')](),this[_0x3bc1('0xad')]=null,this[_0x3bc1('0x5')][_0x3bc1('0xa1')](),this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0x54')]({'isUndoable':!0x1},_0x954a74=>{for(const _0x1b25ae of this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0x1c')][_0x3bc1('0x6e')]())_0x954a74[_0x3bc1('0xe9')](_0x1b25ae);});}[_0x3bc1('0x7a')](_0x5cfcda){const _0x372ba6=[],_0x48f330=new Map();for(const _0x10bc6b of this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0x1c')][_0x3bc1('0x6e')]()){const _0x8df368=this[_0x3bc1('0x5f')]['editing'][_0x3bc1('0x11d')][_0x3bc1('0x95')](_0x10bc6b);if(!_0x8df368)continue;const _0x5654ea=_0x8df368['getClientRects']()[_0x3bc1('0xc')](0x0);_0x5654ea&&(_0x372ba6[_0x3bc1('0x11c')](_0x10bc6b),_0x48f330[_0x3bc1('0x92')](_0x10bc6b,_0x5654ea));}return _0x372ba6['sort']((_0xd51cb5,_0x26d1d0)=>{const _0x32b02e=_0x48f330[_0x3bc1('0x117')](_0xd51cb5),_0x2931a1=_0x48f330[_0x3bc1('0x117')](_0x26d1d0);return _0x32b02e['y']-_0x2931a1['y']||_0x32b02e['x']-_0x2931a1['x'];}),(_0x5cfcda=_0x5cfcda[_0x3bc1('0x51')](_0x4e5a48=>_0x372ba6['includes'](_0x4e5a48[_0x3bc1('0x10c')])))[_0x3bc1('0xc8')]((_0x2b60fa,_0x5b4068)=>_0x372ba6['indexOf'](_0x2b60fa['rootName'])-_0x372ba6[_0x3bc1('0x80')](_0x5b4068[_0x3bc1('0x10c')])),_0x5cfcda;}[_0x3bc1('0xcf')](_0x215f9f){const _0x3da36c=Array[_0x3bc1('0xc2')](_0x215f9f['markers'])[_0x3bc1('0x51')](([_0x5d6e80,_0x2513bd])=>_0x5d6e80[_0x3bc1('0x3b')](_0x3bc1('0x6d'))&&!_0x2513bd[_0x3bc1('0xd3')]),_0x510fd1=Array['from'](this[_0x3bc1('0x5f')]['model']['createRangeIn'](_0x215f9f)[_0x3bc1('0x64')]({'singleCharacters':!0x0}));if(0x0!=_0x3da36c[_0x3bc1('0xa8')])for(const _0xa8875d of _0x510fd1){const [_0x297c79,_0x12e9dd]=_0x3da36c[0x0],[,_0x54cc60,_0x464d21]=_0x297c79[_0x3bc1('0x2')](':');if(_0x12e9dd[_0x3bc1('0xef')][_0x3bc1('0xa2')](_0xa8875d['nextPosition'])&&_0x3da36c[_0x3bc1('0x91')](),(_0xa8875d[_0x3bc1('0x107')][_0x3bc1('0xa2')](_0x12e9dd[_0x3bc1('0x82')])||_0xa8875d['previousPosition'][_0x3bc1('0x119')](_0x12e9dd[_0x3bc1('0x82')]))&&(_0x3bc1('0xf2')==_0x54cc60?_0xa8875d['isAdded']={'userId':_0x464d21}:_0x3bc1('0x6a')==_0x54cc60&&(_0xa8875d[_0x3bc1('0x4a')]={'userId':_0x464d21})),0x0==_0x3da36c[_0x3bc1('0xa8')])break;}return _0x510fd1;}[_0x3bc1('0xa')](_0x275da3){const _0x3f8bf3=new Map();for(let _0x4c3d37=0x0;_0x4c3d37<_0x275da3[_0x3bc1('0xa8')];_0x4c3d37++)_0x3bc1('0x78')===_0x275da3[_0x4c3d37]['type']?(_0x275da3[_0x4c3d37][_0x3bc1('0xc')][_0x3bc1('0xcb')]=_0x4c3d37,_0x275da3[_0x4c3d37][_0x3bc1('0xc')][_0x3bc1('0x108')]=_0x4c3d37):(_0x3bc1('0xeb')===_0x275da3[_0x4c3d37][_0x3bc1('0x88')]?_0x275da3[_0x4c3d37]['item'][_0x3bc1('0xcb')]=_0x4c3d37:_0x3bc1('0xff')===_0x275da3[_0x4c3d37][_0x3bc1('0x88')]&&(_0x275da3[_0x4c3d37][_0x3bc1('0xc')][_0x3bc1('0x108')]=_0x4c3d37),_0x3f8bf3[_0x3bc1('0x92')](_0x275da3[_0x4c3d37]['id'],_0x4c3d37));for(const _0x474f9 of _0x3f8bf3[_0x3bc1('0x13')]())_0x3bc1('0xeb')===_0x275da3[_0x474f9][_0x3bc1('0x88')]?_0x275da3[_0x474f9][_0x3bc1('0xc')][_0x3bc1('0x108')]=_0x3f8bf3[_0x3bc1('0x117')](_0x275da3[_0x474f9][_0x3bc1('0xf9')]):_0x3bc1('0xff')===_0x275da3[_0x474f9][_0x3bc1('0x88')]&&(_0x275da3[_0x474f9][_0x3bc1('0xc')][_0x3bc1('0xcb')]=_0x3f8bf3[_0x3bc1('0x117')](_0x275da3[_0x474f9][_0x3bc1('0xf9')]));}['_processTape'](_0x27089a){for(let _0x591845=0x0;_0x591845<_0x27089a['length'];_0x591845++){if(_0x3bc1('0xeb')===_0x27089a[_0x591845][_0x3bc1('0x88')])_0x27089a[_0x591845][_0x3bc1('0xc')]['startIndex']=_0x591845;else{if(_0x3bc1('0xff')===_0x27089a[_0x591845][_0x3bc1('0x88')]){_0x27089a[_0x591845][_0x3bc1('0xc')]['endIndex']=_0x591845;const _0x14f1a2=_0x27089a[_0x591845][_0x3bc1('0xc')][_0x3bc1('0xcb')];_0x27089a[_0x14f1a2][_0x3bc1('0xf9')]=_0x27089a[_0x591845]['id'],_0x27089a[_0x591845][_0x3bc1('0xf9')]=_0x27089a[_0x14f1a2]['id'];}else _0x27089a[_0x591845][_0x3bc1('0xc')][_0x3bc1('0xcb')]=_0x591845,_0x27089a[_0x591845][_0x3bc1('0xc')][_0x3bc1('0x108')]=_0x591845,_0x27089a[_0x591845][_0x3bc1('0xf9')]=null;}_0x27089a[_0x591845][_0x3bc1('0x73')]||(_0x27089a[_0x591845][_0x3bc1('0x73')]=[],_0x27089a[_0x591845][_0x3bc1('0x39')]=[]);}}[_0x3bc1('0x90')](_0x51d908,_0xfd21f2){const _0x18500f=_0x51d908[_0x3bc1('0x51')](_0x5dd08d=>!_0x5dd08d[_0x3bc1('0x4f')]);for(let _0x43d56a=0x0;_0x43d56a<_0xfd21f2[_0x3bc1('0xa8')];_0x43d56a++)_0xfd21f2[_0x43d56a][_0x3bc1('0x4f')]&&(_0x18500f[_0x43d56a][_0x3bc1('0x4f')]=_0xfd21f2[_0x43d56a][_0x3bc1('0x4f')]);}[_0x3bc1('0xa0')](_0x5f551c){const _0x2ad62e=JSON[_0x3bc1('0x113')](_0x5f551c),_0x5dc178=this[_0x3bc1('0x5f')][_0x3bc1('0x42')]['view'][_0x3bc1('0x1c')],_0x118e55=new _0x42248a(_0x5dc178,_0x2ad62e[_0x3bc1('0xc1')](_0x59b6c4=>this[_0x3bc1('0xb5')](_0x59b6c4)));return this[_0x3bc1('0x5f')]['data'][_0x3bc1('0xa9')](_0x118e55);}[_0x3bc1('0xb5')](_0x5af161){const _0x1ebf50=this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x1c')];if(_0x3bc1('0xce')==typeof _0x5af161)return new _0x679ba5(_0x1ebf50,_0x5af161);{const _0x3018fc=_0x5af161[_0x3bc1('0x3f')]['map'](_0x35f354=>this['_getViewObj'](_0x35f354));return new(tt[_0x5af161[(_0x3bc1('0x88'))]]||_0x184656)(_0x1ebf50,_0x5af161[_0x3bc1('0xb6')],_0x5af161[_0x3bc1('0x46')],_0x3018fc);}}['_getDiff'](_0x27ae75,_0x4356a9=null){const _0x3e0b0a=this['repository'][_0x3bc1('0x9e')](_0x27ae75),_0x1fcabb=_0x4356a9?this[_0x3bc1('0x32')][_0x3bc1('0x9e')](_0x4356a9):null,_0x16a15a=this[_0x3bc1('0x9d')](_0x3e0b0a,_0x1fcabb),_0x5303ea=_0x16a15a[_0x16a15a[_0x3bc1('0xa8')]-0x1],_0x4f269b=new Map(),_0x17a8c7={'model':{},'attributes':{},'changes':[]},_0x47cd1c=new Set(),_0xf45022=new Map();for(let _0x396f9c=_0x16a15a[_0x3bc1('0xa8')]-0x1;_0x396f9c>=0x0;_0x396f9c--){const _0x17bde9=_0x16a15a[_0x396f9c];for(const _0x2105f3 of Object[_0x3bc1('0xed')](_0x17bde9[_0x3bc1('0x115')]))if(_0x17bde9[_0x3bc1('0x115')][_0x2105f3]['attachChange']){const _0x308cd7=_0x17bde9[_0x3bc1('0x115')][_0x2105f3][_0x3bc1('0xb9')];_0x308cd7['isAttached']?(_0x47cd1c[_0x3bc1('0x9f')](_0x2105f3),_0xf45022[_0x3bc1('0x3c')](_0x2105f3)&&_0xf45022[_0x3bc1('0x117')](_0x2105f3)[_0x3bc1('0xbc')]==_0x308cd7[_0x3bc1('0xbc')]?_0xf45022[_0x3bc1('0x15')](_0x2105f3):_0xf45022[_0x3bc1('0x92')](_0x2105f3,_0x308cd7)):_0xf45022[_0x3bc1('0x3c')](_0x2105f3)?(_0x47cd1c['delete'](_0x2105f3),_0xf45022[_0x3bc1('0x15')](_0x2105f3)):(_0x47cd1c[_0x3bc1('0x9f')](_0x2105f3),_0xf45022[_0x3bc1('0x92')](_0x2105f3,_0x308cd7));}else _0x47cd1c[_0x3bc1('0x9f')](_0x2105f3);}for(const _0x4cacd4 of _0x47cd1c){const _0x3a897b=_0xf45022[_0x3bc1('0x3c')](_0x4cacd4)&&!_0xf45022[_0x3bc1('0x117')](_0x4cacd4)['isAttached'];let _0x1a4c06=_0x3a897b?_0x16a15a[_0x3bc1('0xa8')]-0x1:0x0;const _0x26ec1e=_0x3a897b?-0x1:0x1;for(;_0x16a15a[_0x1a4c06];){const _0x1b84b9=_0x16a15a[_0x1a4c06];if(_0x1b84b9['diffData'][_0x4cacd4]){const _0x172435=_0x3a897b?_0x1b84b9['diffData'][_0x4cacd4][_0x3bc1('0x3')]:_0x1b84b9['diffData'][_0x4cacd4][_0x3bc1('0x7e')];_0x17a8c7[_0x3bc1('0x46')][_0x4cacd4]=_0x172435?_0x4c670b(_0x172435):{};break;}_0x1a4c06+=_0x26ec1e;}}for(const _0x150d1c of _0x16a15a){_0x150d1c[_0x3bc1('0x96')]={};for(const _0x30040a of _0x150d1c[_0x3bc1('0x45')])_0x4f269b[_0x3bc1('0x92')](_0x30040a['id'],_0x30040a);for(const _0x2bd8df of _0x47cd1c){const _0x33de7e=_0x150d1c[_0x3bc1('0x115')][_0x2bd8df]?_0x150d1c[_0x3bc1('0x115')][_0x2bd8df][_0x3bc1('0x4')]:'[]',_0x2f0821=_0x150d1c[_0x3bc1('0x115')][_0x2bd8df]?_0x150d1c['diffData'][_0x2bd8df][_0x3bc1('0x3e')]:'[]';_0x150d1c[_0x3bc1('0x96')][_0x2bd8df]={'insertions':this[_0x3bc1('0xa0')](_0x33de7e),'deletions':this['_makeModelFromViewString'](_0x2f0821)};}}for(const _0x50bcc4 of _0x47cd1c){let _0x1b4010=null,_0x5b5d67=0x0;const _0x2fe265=new Map(Array[_0x3bc1('0xc2')](_0x3e0b0a['model'][_0x50bcc4]['insertions'][_0x3bc1('0xd1')])[_0x3bc1('0x51')](([_0x54a843])=>!_0x54a843['startsWith'](_0x3bc1('0x6d'))));let _0x225bcd=0x0;for(const _0x2935c1 of _0x16a15a){const _0x413527=this['_makeTape'](_0x2935c1[_0x3bc1('0x96')][_0x50bcc4][_0x3bc1('0x4')]);_0x2935c1==_0x3e0b0a?(_0x1b4010=_0x413527,_0x5b5d67=_0x1b4010[_0x3bc1('0xa8')],_0x1b4010[_0x3bc1('0x9b')](_0x292155=>{_0x292155['id']=_0x225bcd++;}),this[_0x3bc1('0x6c')](_0x1b4010)):this['_markInsertions'](_0x1b4010,_0x413527);const _0x863586=_0x1b4010[_0x3bc1('0x51')](_0x35304e=>!_0x35304e['isAdded'])[_0x3bc1('0xc1')](_0x52a6ed=>_0x52a6ed['id']);let _0x1964fd=0x0;const _0x2fdba1=this[_0x3bc1('0xcf')](_0x2935c1[_0x3bc1('0x96')][_0x50bcc4][_0x3bc1('0x3e')]);_0x2fdba1[_0x3bc1('0x9b')](_0x2c68db=>{_0x2c68db['isRemoved']?_0x2c68db['id']=_0x5b5d67++:_0x2c68db['id']=_0x863586[_0x1964fd++];}),this[_0x3bc1('0x6c')](_0x2fdba1),this[_0x3bc1('0x10b')](_0x1b4010,'isAdded'),this[_0x3bc1('0x10b')](_0x2fdba1,_0x3bc1('0x4a')),_0x2935c1==_0x3e0b0a&&this[_0x3bc1('0x0')](_0x1b4010,_0x2fe265),_0x1b4010=this[_0x3bc1('0x21')](_0x1b4010,_0x2fdba1),this[_0x3bc1('0xa')](_0x1b4010),this['_setDistance'](_0x1b4010,_0x3bc1('0x4a'));}_0x1b4010=_0x1b4010['filter'](_0x5b4b32=>!(_0x5b4b32['isAdded']&&_0x5b4b32['isRemoved']));const _0x566419=new Map(_0x5303ea[_0x3bc1('0x96')][_0x50bcc4][_0x3bc1('0x3e')][_0x3bc1('0xd1')]),_0x522d21=new Set(_0x2fe265[_0x3bc1('0xed')]());for(const _0x4b86bf of _0x566419[_0x3bc1('0xed')]())_0x522d21[_0x3bc1('0x15')](_0x4b86bf);this['_markSuggestions'](_0x1b4010,_0x522d21),this[_0x3bc1('0x111')](_0x1b4010),_0x1b4010=this[_0x3bc1('0x10d')](_0x1b4010),_0x1b4010=this['_markMismatchedRemovedTags'](_0x1b4010),_0x1b4010=this['_removeUnsupportedChanges'](_0x1b4010);const {root:_0x3ca1af,changes:_0x5d6053}=this[_0x3bc1('0xf6')](_0x1b4010,_0x4f269b,_0x50bcc4);_0x17a8c7[_0x3bc1('0x96')][_0x50bcc4]=_0x3ca1af;const _0x591572=_0xf45022[_0x3bc1('0x117')](_0x50bcc4);if(_0x591572){const _0x3b0389=_0x4f269b[_0x3bc1('0x117')](_0x591572[_0x3bc1('0xbc')]),_0x596c67=new _0x28f86b({'author':_0x3b0389,'type':_0x591572[_0x3bc1('0xf3')]?_0x3bc1('0x9f'):_0x3bc1('0x1a'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x50bcc4});_0x5d6053[_0x3bc1('0x2d')](_0x596c67),_0x17a8c7[_0x3bc1('0x46')][_0x50bcc4]['revisionHistoryAttachChange']=_0x596c67['id'];}_0x17a8c7[_0x3bc1('0x110')]=_0x17a8c7['changes'][_0x3bc1('0xf')](_0x5d6053);}return _0x17a8c7;}[_0x3bc1('0x0')](_0x215268,_0x37a317){for(let _0x38a7f9=0x0;_0x38a7f9<_0x215268['length'];_0x38a7f9++)for(const [_0xc11435,_0xea5245]of _0x37a317)_0xea5245[_0x3bc1('0x82')][_0x3bc1('0xa2')](_0x215268[_0x38a7f9][_0x3bc1('0x107')])&&_0x215268[_0x38a7f9]['markersStart'][_0x3bc1('0x11c')](_0xc11435),_0xea5245[_0x3bc1('0xef')]['isEqual'](_0x215268[_0x38a7f9][_0x3bc1('0x40')])&&_0x215268[_0x38a7f9][_0x3bc1('0x39')]['push'](_0xc11435);}[_0x3bc1('0x21')](_0xa0824f,_0x188db0){let _0x4a503e=[],_0x9ad945=0x0,_0x409f0a=0x0;for(;_0x9ad945<_0xa0824f[_0x3bc1('0xa8')]||_0x409f0a<_0x188db0[_0x3bc1('0xa8')];){const _0xdafd7d=_0xa0824f[_0x9ad945]||{},_0x3f1302=_0x188db0[_0x409f0a]||{};if(_0xdafd7d['id']==_0x3f1302['id'])_0x9ad945++,_0x409f0a++,_0x4a503e['push'](_0xdafd7d);else{if(_0x3f1302['isRemoved']&&_0xdafd7d[_0x3bc1('0x4f')]){const {commonTape:_0x2ffc61,iEnd:_0x5c5558,jEnd:_0x5ebb80}=this[_0x3bc1('0x17')](_0xa0824f,_0x9ad945,_0x188db0,_0x409f0a);_0x4a503e=_0x4a503e['concat'](_0x2ffc61),_0x9ad945=_0x5c5558,_0x409f0a=_0x5ebb80;}else _0x3f1302['isRemoved']?(_0x409f0a++,_0x4a503e[_0x3bc1('0x11c')](_0x3f1302)):(_0x9ad945++,_0x4a503e[_0x3bc1('0x11c')](_0xdafd7d));}}return _0x4a503e;}[_0x3bc1('0x97')](_0x228c2f,_0xbe17ee){const _0x490595=[];for(let _0x40b66d=0x0;_0x40b66d<_0x228c2f[_0x3bc1('0xa8')];_0x40b66d++){for(let _0x587c65=0x0;_0x587c65<_0x228c2f[_0x40b66d]['markersStart'][_0x3bc1('0xa8')];_0x587c65++){const _0x493a3e=_0x228c2f[_0x40b66d]['markersStart'][_0x587c65];if(!_0xbe17ee[_0x3bc1('0x3c')](_0x493a3e))continue;const {group:_0x44c07c,type:_0x27fe62,authorId:_0x21b56d}=_0x514063(_0x493a3e);'revision-suggestion'!=_0x44c07c||'insertion'!=_0x27fe62&&'deletion'!=_0x27fe62||(_0x490595[_0x3bc1('0x2d')]({'type':_0x27fe62,'name':_0x493a3e,'userId':_0x21b56d}),_0x228c2f[_0x40b66d][_0x3bc1('0x73')][_0x3bc1('0xec')](_0x587c65,0x1),_0x587c65--);}_0x50643a(_0x228c2f[_0x40b66d]);for(let _0x11847e=0x0;_0x11847e<_0x228c2f[_0x40b66d][_0x3bc1('0x39')]['length'];_0x11847e++){const _0x2c9a72=_0x228c2f[_0x40b66d][_0x3bc1('0x39')][_0x11847e];if(!_0xbe17ee[_0x3bc1('0x3c')](_0x2c9a72))continue;const {group:_0x5a6b90,type:_0x369ff7}=_0x514063(_0x2c9a72);if(_0x3bc1('0x11a')!=_0x5a6b90||'insertion'!=_0x369ff7&&_0x3bc1('0x6a')!=_0x369ff7)continue;_0x228c2f[_0x40b66d]['markersEnd'][_0x3bc1('0xec')](_0x11847e,0x1),_0x11847e--;const _0x433edd=_0x490595['findIndex'](_0x31ecd2=>_0x31ecd2['name']==_0x2c9a72);_0x433edd>-0x1&&_0x490595['splice'](_0x433edd,0x1);}}function _0x514063(_0x248865){const _0x109e50=_0x248865[_0x3bc1('0x2')](':');return{'group':_0x109e50[0x0],'type':_0x109e50[0x1],'subType':_0x109e50[_0x3bc1('0xa8')]>=0x5?_0x109e50[0x2]:null,'id':_0x109e50['length']<0x5?_0x109e50[0x2]:_0x109e50[0x3],'authorId':_0x109e50[_0x3bc1('0xa8')]<0x5?_0x109e50[0x3]:_0x109e50[0x4],'markerCount':0x6==_0x109e50['length']?_0x109e50[0x5]:null};}function _0x50643a(_0xbab19){for(let _0xb92374=0x0;_0xb92374<_0x490595[_0x3bc1('0xa8')];_0xb92374++){if(_0xbab19[_0x3bc1('0x4f')]&&_0x3bc1('0xf2')==_0x490595[_0xb92374][_0x3bc1('0x88')])return _0xbab19[_0x3bc1('0x116')]=_0x490595[_0xb92374],void delete _0xbab19[_0x3bc1('0x4f')];if(!_0xbab19['isAdded']&&!_0xbab19[_0x3bc1('0x4a')]&&_0x3bc1('0x6a')==_0x490595[_0xb92374][_0x3bc1('0x88')])return void(_0xbab19[_0x3bc1('0x9c')]=_0x490595[_0xb92374]);}}}[_0x3bc1('0x10b')](_0x54470c,_0x6a8e09){let _0x4b09a2=0x0,_0x1de569=!0x1;const _0x6d0a53=new Map();for(const _0x3519ad of _0x54470c)_0x3519ad[_0x6a8e09]?_0x1de569&&(_0x4b09a2++,_0x1de569=!0x1):(_0x4b09a2++,_0x1de569=!0x0),_0x6d0a53[_0x3bc1('0x92')](_0x3519ad['id'],_0x4b09a2);for(let _0x276915=0x0;_0x276915<_0x54470c[_0x3bc1('0xa8')];_0x276915++){if(_0x3bc1('0x4a')==_0x6a8e09&&_0x54470c[_0x276915]['isAdded']||_0x3bc1('0x4f')==_0x6a8e09&&_0x54470c[_0x276915][_0x3bc1('0x4a')])continue;if(_0x3bc1('0x78')==_0x54470c[_0x276915][_0x3bc1('0x88')]){_0x54470c[_0x276915][_0x3bc1('0x10e')]=0x0;continue;}const _0x48e7d=_0x6d0a53[_0x3bc1('0x117')](_0x54470c[_0x276915][_0x3bc1('0xf9')]),_0x59254e=_0x6d0a53[_0x3bc1('0x117')](_0x54470c[_0x276915]['id']);_0x54470c[_0x276915][_0x3bc1('0x10e')]=_0x48e7d-_0x59254e;}}['_getRevisionsRange'](_0x36e871,_0x43f0fa,_0x5ea1d4=!0x1){const _0x5adac0=[];let _0x4eed79=this[_0x3bc1('0x32')][_0x3bc1('0x100')](_0x36e871),_0x166bb0=this['repository']['getIndex'](_0x43f0fa);for(-0x1==_0x166bb0&&(_0x166bb0=this['repository'][_0x3bc1('0x2e')]['length'],_0x5ea1d4=!0x1);_0x4eed79<_0x166bb0;)_0x5adac0[_0x3bc1('0x11c')](this[_0x3bc1('0x32')]['getRevision'](_0x4eed79)),_0x4eed79++;return _0x5ea1d4&&_0x5adac0['push'](this['repository'][_0x3bc1('0x9e')](_0x4eed79)),_0x5adac0;}[_0x3bc1('0x17')](_0xee4a69,_0x3b2868,_0x67614e,_0x5c9896){const _0x3804df=this['editor'][_0x3bc1('0x96')][_0x3bc1('0x9a')];let _0x4b0fc7=_0x3b2868;for(;_0xee4a69[_0x4b0fc7]&&_0xee4a69[_0x4b0fc7][_0x3bc1('0x4f')];)_0x4b0fc7++;let _0x85139f=_0x5c9896;for(;_0x67614e[_0x85139f]&&_0x67614e[_0x85139f]['isRemoved'];)_0x85139f++;_0x3c8638(_0xee4a69,_0x3b2868,_0x4b0fc7),_0x3c8638(_0x67614e,_0x5c9896,_0x85139f);const _0xa7a529=_0x67614e[_0x3bc1('0x112')](_0x5c9896,_0x85139f)['concat'](_0xee4a69[_0x3bc1('0x112')](_0x3b2868,_0x4b0fc7));return _0xa7a529[_0x3bc1('0xc8')]((_0x36fc8d,_0x3522a0)=>_0x36fc8d[_0x3bc1('0x10f')]!=_0x3522a0[_0x3bc1('0x10f')]?_0x36fc8d['side']-_0x3522a0[_0x3bc1('0x10f')]:_0x36fc8d[_0x3bc1('0xd6')]!=_0x3522a0[_0x3bc1('0xd6')]?_0x36fc8d[_0x3bc1('0xd6')]-_0x3522a0['level']:_0x36fc8d[_0x3bc1('0x10e')]!=_0x3522a0[_0x3bc1('0x10e')]?_0x3522a0[_0x3bc1('0x10e')]-_0x36fc8d['distance']:!!_0x36fc8d[_0x3bc1('0x4f')]!=!!_0x3522a0['isAdded']?-0x1==_0x36fc8d['side']||0x0==_0x36fc8d[_0x3bc1('0x10f')]?_0x36fc8d['isAdded']?-0x1:0x1:_0x36fc8d[_0x3bc1('0x4f')]?0x1:-0x1:_0x36fc8d[_0x3bc1('0x56')]-_0x3522a0['index']),{'commonTape':_0xa7a529,'iEnd':_0x4b0fc7,'jEnd':_0x85139f};function _0x3c8638(_0x370779,_0x10ac75,_0x5a5deb){let _0x11d5e0=-0x1,_0x113a65=Number[_0x3bc1('0x52')],_0x46c373=!0x0;for(let _0x52c812=_0x10ac75;_0x52c812<_0x5a5deb;_0x52c812++)if(_0x3804df[_0x3bc1('0x5b')](_0x370779[_0x52c812][_0x3bc1('0xc')])||(_0x46c373=!0x1),_0x370779[_0x52c812][_0x3bc1('0xc')][_0x3bc1('0xcb')]<_0x10ac75&&(_0x11d5e0=_0x52c812),_0x370779[_0x52c812][_0x3bc1('0xc')][_0x3bc1('0x108')]>=_0x5a5deb){_0x113a65=_0x52c812;break;}_0x46c373&&(_0x11d5e0=_0x5a5deb-0x1);for(let _0x5f5d41=_0x10ac75;_0x5f5d41<_0x5a5deb;_0x5f5d41++)_0x370779[_0x5f5d41][_0x3bc1('0x10f')]=_0x5f5d41<=_0x11d5e0?-0x1:_0x5f5d41<_0x113a65?0x0:0x1,_0x370779[_0x5f5d41]['index']=_0x5f5d41;let _0x2842c4=0x0;for(let _0x14ce2c=_0x10ac75;_0x14ce2c<=_0x11d5e0;_0x14ce2c++)0x0==_0x370779[_0x14ce2c][_0x3bc1('0x10e')]?_0x370779[_0x14ce2c][_0x3bc1('0xd6')]=_0x2842c4:(_0x2842c4++,_0x370779[_0x14ce2c][_0x3bc1('0xd6')]=_0x2842c4,_0x2842c4++);for(let _0x58031f=_0x10ac75;_0x58031f<_0x5a5deb;_0x58031f++)0x0==_0x370779[_0x58031f]['side']&&(_0x370779[_0x58031f][_0x3bc1('0xd6')]=_0x2842c4);_0x2842c4=0x0;for(let _0x253e70=_0x5a5deb-0x1;_0x253e70>=_0x113a65;_0x253e70--)0x0==_0x370779[_0x253e70][_0x3bc1('0x10e')]?_0x370779[_0x253e70][_0x3bc1('0xd6')]=_0x2842c4:(_0x2842c4--,_0x370779[_0x253e70][_0x3bc1('0xd6')]=_0x2842c4,_0x2842c4--);}}[_0x3bc1('0x111')](_0x2ab1d1){const _0x19bc53=new Map(),_0x4e2870=this[_0x3bc1('0x5f')]['model']['schema'];for(let _0xd341a1=0x1;_0xd341a1<_0x2ab1d1[_0x3bc1('0xa8')];_0xd341a1++){let _0x33ac5a,_0x1d88e5,_0x2e08c6;const _0x6b2f49=_0x2ab1d1[_0xd341a1],_0x32c7ec=_0x2ab1d1[_0xd341a1-0x1];if(_0x3bc1('0x78')==_0x6b2f49[_0x3bc1('0x88')])continue;if(_0x6b2f49[_0x3bc1('0x88')]!=_0x32c7ec[_0x3bc1('0x88')])continue;if(!_0x4e2870[_0x3bc1('0x1e')](_0x32c7ec[_0x3bc1('0xc')])||_0x4e2870[_0x3bc1('0x86')](_0x32c7ec[_0x3bc1('0xc')]))continue;if(!_0x4e2870[_0x3bc1('0x1e')](_0x6b2f49[_0x3bc1('0xc')])||_0x4e2870['isLimit'](_0x6b2f49[_0x3bc1('0xc')]))continue;if((_0x2ab1d1[_0xd341a1][_0x3bc1('0x4f')]||_0x2ab1d1[_0xd341a1][_0x3bc1('0x116')])&&_0x2ab1d1[_0xd341a1-0x1][_0x3bc1('0x4a')])_0x33ac5a=_0x2ab1d1[_0xd341a1],_0x1d88e5=_0x2ab1d1[_0xd341a1-0x1],_0x2e08c6=_0xd341a1-0x1;else{if(!_0x2ab1d1[_0xd341a1][_0x3bc1('0x4a')]||!_0x2ab1d1[_0xd341a1-0x1][_0x3bc1('0x4f')]&&!_0x2ab1d1[_0xd341a1-0x1][_0x3bc1('0x116')])continue;_0x33ac5a=_0x2ab1d1[_0xd341a1-0x1],_0x1d88e5=_0x2ab1d1[_0xd341a1],_0x2e08c6=_0xd341a1;}const _0x139ba2=_0x33ac5a[_0x3bc1('0xd6')]==_0x1d88e5[_0x3bc1('0xd6')],_0x28092f=Math[_0x3bc1('0x85')](_0x33ac5a['level'])<Math[_0x3bc1('0x85')](_0x1d88e5['level'])&&0x0==_0x1d88e5[_0x3bc1('0x10e')];(_0x139ba2||_0x28092f)&&(_0x19bc53[_0x3bc1('0x92')](_0x1d88e5['id'],_0x33ac5a['id']),_0x2ab1d1[_0x3bc1('0xec')](_0x2e08c6,0x1),_0xd341a1--,_0x33ac5a[_0x3bc1('0x4f')]=!0x1);}for(let _0x486d67=0x0;_0x486d67<_0x2ab1d1['length'];_0x486d67++)_0x19bc53['has'](_0x2ab1d1[_0x486d67][_0x3bc1('0xf9')])&&(_0x2ab1d1[_0x486d67][_0x3bc1('0xf9')]=_0x19bc53[_0x3bc1('0x117')](_0x2ab1d1[_0x486d67][_0x3bc1('0xf9')]));}[_0x3bc1('0x10d')](_0x4a05cb){const _0x3e0d2a=new Set(_0x4a05cb['map'](_0x4a153f=>_0x4a153f['id']));for(let _0x3b8a59=0x0;_0x3b8a59<_0x4a05cb[_0x3bc1('0xa8')];_0x3b8a59++)_0x3e0d2a[_0x3bc1('0x3c')](_0x4a05cb[_0x3b8a59][_0x3bc1('0xf9')])||0x0==_0x4a05cb[_0x3b8a59][_0x3bc1('0x10e')]||(_0x4a05cb[_0x3b8a59]['isIncorrect']=!0x0);return _0x4a05cb[_0x3bc1('0x51')](_0x8360ae=>!_0x8360ae['isIncorrect']);}[_0x3bc1('0x94')](_0x2f3add){const _0xe633dd=new Set();for(let _0x2be8b8=0x0;_0x2be8b8<_0x2f3add['length'];_0x2be8b8++){if(_0xe633dd[_0x3bc1('0x3c')](_0x2f3add[_0x2be8b8]['id'])&&_0x2f3add[_0x2be8b8][_0x3bc1('0x4a')]&&(_0x2f3add[_0x2be8b8]['isIncorrect']=!0x0),_0x2f3add[_0x2be8b8][_0x3bc1('0x68')])continue;if(0x0==_0x2f3add[_0x2be8b8][_0x3bc1('0x10e')])continue;if(_0x3bc1('0xeb')!=_0x2f3add[_0x2be8b8][_0x3bc1('0x88')])continue;if(null==_0x2f3add[_0x2be8b8][_0x3bc1('0xf9')])continue;let _0x3197c2=_0x2be8b8+0x1,_0x285150=0x0;for(;_0x2f3add[_0x3197c2]['id']!=_0x2f3add[_0x2be8b8][_0x3bc1('0xf9')];)_0x3bc1('0xeb')==_0x2f3add[_0x3197c2]['type']?_0x285150++:'elementEnd'==_0x2f3add[_0x3197c2][_0x3bc1('0x88')]&&_0x285150--,_0x3197c2++;if(0x0!=_0x285150){if(_0x2f3add[_0x2be8b8]['isRemoved'])_0x2f3add[_0x2be8b8][_0x3bc1('0x68')]=!0x0;else for(;_0x3197c2!=_0x2be8b8;)_0x2f3add[_0x3197c2][_0x3bc1('0x4a')]&&0x0!=_0x2f3add[_0x3197c2][_0x3bc1('0x10e')]&&(_0x2f3add[_0x3197c2][_0x3bc1('0x68')]=!0x0,_0xe633dd[_0x3bc1('0x9f')](_0x2f3add[_0x3197c2][_0x3bc1('0xf9')])),_0x3197c2--;}}return _0x2f3add['filter'](_0x107bf2=>!_0x107bf2[_0x3bc1('0x68')]);}[_0x3bc1('0xb0')](_0x2aa02a){const _0x4bb7c0=this['editor'][_0x3bc1('0x96')][_0x3bc1('0x9a')];for(let _0x34db51=0x0;_0x34db51<_0x2aa02a[_0x3bc1('0xa8')];_0x34db51++){if(!(_0x2aa02a[_0x34db51][_0x3bc1('0x4f')]||_0x2aa02a[_0x34db51][_0x3bc1('0x116')]||_0x2aa02a[_0x34db51][_0x3bc1('0x4a')]||_0x2aa02a[_0x34db51][_0x3bc1('0x9c')]))continue;if(0x0==_0x2aa02a[_0x34db51][_0x3bc1('0x10e')])continue;const _0x4c3c14=_0x2aa02a[_0x34db51][_0x3bc1('0xc')];_0x4bb7c0['isBlock'](_0x4c3c14)||_0x4bb7c0[_0x3bc1('0x86')](_0x4c3c14)||(_0x2aa02a[_0x34db51]['isAdded']&&delete _0x2aa02a[_0x34db51][_0x3bc1('0x4f')],_0x2aa02a[_0x34db51]['isAddSuggestion']&&delete _0x2aa02a[_0x34db51][_0x3bc1('0x116')],_0x2aa02a[_0x34db51]['isRemoveSuggestion']&&delete _0x2aa02a[_0x34db51][_0x3bc1('0x9c')],_0x2aa02a[_0x34db51][_0x3bc1('0x4a')]&&(_0x2aa02a[_0x34db51][_0x3bc1('0x68')]=!0x0));}return _0x2aa02a[_0x3bc1('0x51')](_0x3ae074=>!_0x3ae074[_0x3bc1('0x68')]);}[_0x3bc1('0xf6')](_0x1a5608,_0x145bd3,_0xd78e20){const _0x233b33=new _0x111441(),_0x4312d8=[],_0x56219a=new Map(),_0x59133e=this[_0x3bc1('0x5f')][_0x3bc1('0x96')],_0x2c2810=_0x59133e[_0x3bc1('0x9a')],_0x1ed306=[_0x233b33],_0x1d7490={},_0x47650a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xa3af25=null;const _0x1c3e7c=[0x0];for(let _0x232bee=0x0;_0x232bee<_0x1a5608[_0x3bc1('0xa8')];_0x232bee++){let _0x236e73,_0x4d1d69;if('elementStart'===_0x1a5608[_0x232bee]['type']){_0x236e73=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c);const _0x449432=new _0x6329a5(_0x1a5608[_0x232bee][_0x3bc1('0xc')][_0x3bc1('0xb6')],_0x1a5608[_0x232bee]['item'][_0x3bc1('0x69')]());_0x1ed306[0x0][_0x3bc1('0xfa')](_0x449432),_0x1c3e7c['push'](0x0),_0x1ed306[_0x3bc1('0x2d')](_0x449432),_0x4d1d69=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c),_0xa3af25=null;}else{if(_0x3bc1('0xff')===_0x1a5608[_0x232bee]['type'])_0x1ed306[_0x3bc1('0x91')](),_0x236e73=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c),_0x1c3e7c['pop'](),_0x1c3e7c[_0x1c3e7c['length']-0x1]++,_0x4d1d69=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c),_0xa3af25=null;else{if(_0x236e73=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c),_0xa3af25&&_0x27fff3(_0xa3af25,_0x1a5608[_0x232bee][_0x3bc1('0xc')]))_0xa3af25[_0x3bc1('0x22')]+=_0x1a5608[_0x232bee][_0x3bc1('0xc')][_0x3bc1('0x7')];else{const _0x169b4=new _0x1fd28b(_0x1a5608[_0x232bee][_0x3bc1('0xc')][_0x3bc1('0x7')],_0x1a5608[_0x232bee][_0x3bc1('0xc')][_0x3bc1('0x69')]());_0x1ed306[0x0]['_appendChild'](_0x169b4),_0xa3af25=_0x169b4;}_0x1c3e7c[_0x1c3e7c[_0x3bc1('0xa8')]-0x1]+=_0x1a5608[_0x232bee][_0x3bc1('0xc')][_0x3bc1('0x58')],_0x4d1d69=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c);}}for(const _0x6606da of _0x1a5608[_0x232bee][_0x3bc1('0x73')])_0x56219a[_0x3bc1('0x92')](_0x6606da,{'start':_0x236e73,'end':null});_0x2d7448(_0x3bc1('0x9c'),_0x232bee,_0x236e73,_0x4d1d69),_0x2d7448(_0x3bc1('0x116'),_0x232bee,_0x236e73,_0x4d1d69),_0x2d7448(_0x3bc1('0x4a'),_0x232bee,_0x236e73,_0x4d1d69),_0x2d7448(_0x3bc1('0x4f'),_0x232bee,_0x236e73,_0x4d1d69);for(const _0x31fc98 of _0x1a5608[_0x232bee][_0x3bc1('0x39')]){_0x56219a[_0x3bc1('0x117')](_0x31fc98)['end']=_0x4d1d69;}}for(const [_0x64578f,_0x541b49]of _0x56219a){const _0x1bd1c6=this['editor'][_0x3bc1('0x96')][_0x3bc1('0x50')](_0x541b49['start'],_0x541b49[_0x3bc1('0xef')]);_0x233b33[_0x3bc1('0xd1')][_0x3bc1('0x92')](_0x64578f,_0x1bd1c6);}return _0x4312d8[_0x3bc1('0xc8')]((_0x262b64,_0x1e97e2)=>{const _0x543a57=_0x233b33[_0x3bc1('0xd1')][_0x3bc1('0x117')](_0x3bc1('0x6d')+_0x262b64['id']),_0x366065=_0x233b33[_0x3bc1('0xd1')][_0x3bc1('0x117')](_0x3bc1('0x6d')+_0x1e97e2['id']);return _0x543a57[_0x3bc1('0x82')][_0x3bc1('0x49')](_0x366065['start'])?-0x1:_0x543a57[_0x3bc1('0x82')][_0x3bc1('0x119')](_0x366065['start'])?0x1:_0x543a57['end'][_0x3bc1('0x49')](_0x366065['end'])?-0x1:_0x543a57[_0x3bc1('0xef')][_0x3bc1('0x119')](_0x366065[_0x3bc1('0xef')])?0x1:'add'===_0x262b64[_0x3bc1('0x88')]?-0x1:0x1;}),{'root':_0x233b33,'changes':_0x4312d8};function _0x2d7448(_0x1edc2f,_0xea406f,_0x495ae4,_0x1767d5){const _0x3b1371=!!_0x1a5608[_0xea406f][_0x1edc2f],_0x32a4e2=_0x3b1371?_0x1a5608[_0xea406f][_0x1edc2f][_0x3bc1('0xbc')]:null,_0x6f3d52=_0xea406f===_0x1a5608['length']-0x1,_0xa17e50=_0x47650a[_0x1edc2f][0x0],_0x2482d6=_0x2c2810['isObject'](_0x1a5608[_0xea406f][_0x3bc1('0xc')]);!_0x1d7490[_0x1edc2f]&&_0x3b1371?_0x1d7490[_0x1edc2f]={'start':_0x495ae4,'tapeItem':_0x1a5608[_0xea406f],'userId':_0x32a4e2,'type':_0x1edc2f}:_0x1d7490[_0x1edc2f]&&!_0x3b1371?(_0x1d7490[_0x1edc2f][_0x3bc1('0xef')]=_0x495ae4,_0x40728f(_0x1d7490[_0x1edc2f]),_0x1d7490[_0x1edc2f]=null):_0x1d7490[_0x1edc2f]&&_0x3b1371&&_0x1d7490[_0x1edc2f][_0x3bc1('0xbc')]!==_0x32a4e2&&(_0x1d7490[_0x1edc2f][_0x3bc1('0xef')]=_0x495ae4,_0xa17e50&&_0xa17e50[_0x3bc1('0xbc')]===_0x1d7490[_0x1edc2f][_0x3bc1('0xbc')]||_0x40728f(_0x1d7490[_0x1edc2f]),_0x1d7490[_0x1edc2f]={'start':_0x495ae4,'tapeItem':_0x1a5608[_0xea406f],'userId':_0x32a4e2,'type':_0x1edc2f}),_0x1d7490[_0x1edc2f]&&_0x2482d6&&(_0x3bc1('0xeb')!==_0x1a5608[_0xea406f][_0x3bc1('0x88')]||_0xa17e50&&_0xa17e50[_0x3bc1('0xbc')]===_0x32a4e2||_0x47650a[_0x1edc2f][_0x3bc1('0x2d')]({'userId':_0x32a4e2,'object':_0x1a5608[_0xea406f]['item'],'change':_0x1d7490[_0x1edc2f]}),_0x3bc1('0xff')===_0x1a5608[_0xea406f][_0x3bc1('0x88')]&&_0xa17e50&&_0xa17e50[_0x3bc1('0xd5')]===_0x1a5608[_0xea406f][_0x3bc1('0xc')]&&(_0x47650a[_0x1edc2f][_0x3bc1('0x91')](),_0x1d7490[_0x1edc2f]=_0xa17e50[_0x3bc1('0x70')])),_0x1d7490[_0x1edc2f]&&_0x6f3d52&&(_0x1d7490[_0x1edc2f]['end']=_0x1767d5,_0x40728f(_0x1d7490[_0x1edc2f]),_0x1d7490[_0x1edc2f]=null);}function _0x40728f({start:_0x12795e,end:_0x433fa0,tapeItem:_0x1f92d8,userId:_0x4c750c,type:_0x592a4c}){const _0x41ed69=_0x1f92d8['item'],_0x46c0b2=_0x59133e[_0x3bc1('0x9a')][_0x3bc1('0x1e')](_0x41ed69)&&!_0x59133e[_0x3bc1('0x9a')]['isLimit'](_0x41ed69),_0x38977e=_0x12795e[_0x3bc1('0xf1')]==_0x433fa0[_0x3bc1('0x5a')]&&_0x433fa0[_0x3bc1('0xfe')];if(_0x46c0b2&&_0x38977e)return;const _0x3ecde1=_0x59133e['createRange'](_0x12795e,_0x433fa0),_0x60f2e0=_0x145bd3[_0x3bc1('0x117')](_0x4c750c),_0x3d9cec=new _0x28f86b({'author':_0x60f2e0,'type':_0x3bc1('0x4f')==_0x592a4c||_0x3bc1('0x116')==_0x592a4c?_0x3bc1('0x9f'):_0x3bc1('0x1a'),'data':{'isSuggestion':'isAddSuggestion'==_0x592a4c||'isRemoveSuggestion'==_0x592a4c},'createdAt':new Date(),'rootName':_0xd78e20});_0x4312d8[_0x3bc1('0x11c')](_0x3d9cec),_0x233b33[_0x3bc1('0xd1')][_0x3bc1('0x92')](_0x3bc1('0x6d')+_0x3d9cec['id'],_0x3ecde1);}function _0x27fff3(_0x1f34d0,_0x964e4d){const _0xa398c2=_0x1f34d0[_0x3bc1('0x69')](),_0x34b250=_0x964e4d['getAttributes']();for(const _0x476495 of _0xa398c2){if(_0x476495[0x1]!==_0x964e4d[_0x3bc1('0x36')](_0x476495[0x0]))return!0x1;_0x34b250[_0x3bc1('0xe3')]();}return _0x34b250[_0x3bc1('0xe3')]()[_0x3bc1('0xca')];}}[_0x3bc1('0x23')](){this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x44'))[_0x3bc1('0x8a')]({'view':_0x3bc1('0xa3')}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')]['for'](_0x3bc1('0x118'))['markerToHighlight']({'model':'revision','view':_0x5d2594=>{const _0x3a6508=_0x5d2594['markerName']['split'](':')[0x1],_0x50b18b=this['_getChangeFromId'](_0x3a6508);if(!_0x50b18b)return null;const _0x3dafd8=_0x3bc1('0x9f')==_0x50b18b[_0x3bc1('0x88')]?_0x3bc1('0xf2'):'deletion',_0x1429f9=[_0x3bc1('0x37'),'ck-suggestion-marker-'+_0x3dafd8];return _0x50b18b[_0x3bc1('0x7')][_0x3bc1('0x10a')]&&_0x1429f9['push'](_0x3bc1('0x14')+_0x3dafd8+_0x3bc1('0x31')),this[_0x3bc1('0xb8')]==_0x50b18b&&_0x1429f9[_0x3bc1('0x11c')](_0x3bc1('0xc9')),{'classes':_0x1429f9,'attributes':{'data-change-id':_0x3a6508}};}}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x44'))[_0x3bc1('0x9f')](_0x45fcdf=>{_0x45fcdf['on']('element:pre',(_0x301210,_0x12a186,_0x45576c)=>{const _0x35b9cf=_0x12a186[_0x3bc1('0x63')][_0x3bc1('0xfb')](0x0);if(!_0x35b9cf||!_0x35b9cf['is'](_0x3bc1('0xda'),_0x3bc1('0xb7')))return;if(!_0x45576c[_0x3bc1('0x8f')][_0x3bc1('0x41')](_0x35b9cf,{'attributes':[_0x3bc1('0x74'),_0x3bc1('0x5e')]}))return;const _0x1e66fa=_0x12a186['modelRange'][_0x3bc1('0x82')][_0x3bc1('0xf1')];_0x45576c[_0x3bc1('0xd4')][_0x3bc1('0x10')](_0x3bc1('0x74'),_0x35b9cf[_0x3bc1('0x36')](_0x3bc1('0x74')),_0x1e66fa),_0x45576c['writer'][_0x3bc1('0x10')](_0x3bc1('0x5e'),_0x35b9cf[_0x3bc1('0x36')](_0x3bc1('0x5e')),_0x1e66fa);},{'priority':_0x3bc1('0xf0')});}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x44'))['add'](_0x539def=>{_0x539def['on']('element',(_0x5dc332,_0x1a515f,_0x37e4f2)=>{if(!_0x37e4f2['consumable'][_0x3bc1('0x41')](_0x1a515f['viewItem'],{'attributes':[_0x3bc1('0x74'),_0x3bc1('0x5e')]}))return;if(_0x1a515f[_0x3bc1('0x76')][_0x3bc1('0xd3')])return;const _0x4d4965=_0x1a515f[_0x3bc1('0x76')][_0x3bc1('0x82')]['nodeAfter'];_0x4d4965[_0x3bc1('0xb2')](_0x3bc1('0x74'))||_0x4d4965[_0x3bc1('0xb2')]('vid')||(_0x37e4f2[_0x3bc1('0xd4')][_0x3bc1('0x10')](_0x3bc1('0x74'),_0x1a515f[_0x3bc1('0x63')][_0x3bc1('0x36')](_0x3bc1('0x74')),_0x4d4965),_0x37e4f2['writer']['setAttribute'](_0x3bc1('0x5e'),_0x1a515f[_0x3bc1('0x63')][_0x3bc1('0x36')]('vid_end'),_0x4d4965));},{'priority':_0x3bc1('0xf0')});}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x44'))['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x552a85=>_0x552a85[_0x3bc1('0x36')]('vid')}}),this['editor'][_0x3bc1('0x96')][_0x3bc1('0x9a')]['on'](_0x3bc1('0xbe'),(_0x4ab610,[,_0x3e8602])=>{[_0x3bc1('0x74'),_0x3bc1('0x5e'),_0x3bc1('0xea')]['includes'](_0x3e8602)&&(_0x4ab610[_0x3bc1('0x48')]=!0x0,_0x4ab610['stop']());},{'priority':'highest'}),this[_0x3bc1('0x5f')]['conversion'][_0x3bc1('0xe')](_0x3bc1('0x30'))[_0x3bc1('0x9f')](_0x2e64a9=>{_0x2e64a9['on'](_0x3bc1('0x87'),(_0x1a85e7,_0x2f05f3,_0x3a6bcb)=>{if('\x20'!=_0x2f05f3[_0x3bc1('0xc')][_0x3bc1('0x7')]||_0x2f05f3[_0x3bc1('0xc')]['parent']['maxOffset']>0x1)return;if(!_0x3a6bcb[_0x3bc1('0x8f')][_0x3bc1('0x41')](_0x2f05f3['item'],_0x1a85e7[_0x3bc1('0xb6')]))return;const _0x38f411=_0x3a6bcb[_0x3bc1('0xd4')],_0x231127=_0x3a6bcb[_0x3bc1('0x29')]['toViewRange'](_0x2f05f3[_0x3bc1('0xc6')]);_0x38f411[_0x3bc1('0x71')](_0x231127,_0x38f411['createAttributeElement'](_0x3bc1('0xdf')));});}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x30'))[_0x3bc1('0x34')]({'model':_0x3bc1('0xa3')}),this[_0x3bc1('0x5f')]['editing']['downcastDispatcher']['on'](_0x3bc1('0x66'),function(_0x528169){const _0x29977a=_0x528169[_0x3bc1('0xaf')][_0x3bc1('0x117')](_0x3bc1('0x5d'));return(_0x8c2bf0,_0x473967,_0x33ad36)=>{const _0x2cfdc8=_0x473967['markerName'][_0x3bc1('0x2')](':')[0x1],_0x436739=_0x29977a[_0x3bc1('0x60')](_0x2cfdc8);if(!_0x436739)return null;const _0x5b85ec='add'==_0x436739[_0x3bc1('0x88')]?_0x3bc1('0x2'):'merge';if(!_0x33ad36[_0x3bc1('0x8f')][_0x3bc1('0x59')](_0x473967[_0x3bc1('0xdb')],_0x8c2bf0[_0x3bc1('0xb6')]))return;const _0x1252f5=_0x473967['markerRange'][_0x3bc1('0x64')](),_0x5e486a=_0x473967[_0x3bc1('0xdb')]['start'],_0x36f53c=_0x528169['model']['schema'];let _0x319bcd=null,_0x5d1e3e=null,_0x45609a=!0x1,_0x1ebd72=!0x1;for(const _0x13097a of _0x1252f5){const _0xae206=_0x13097a[_0x3bc1('0xc')];_0x45609a=_0x45609a||_0x36f53c['isContent'](_0xae206);const _0x787092=_0x33ad36[_0x3bc1('0x29')][_0x3bc1('0x6b')](_0xae206);if(_0x787092&&_0x787092[_0x3bc1('0x19')](_0x3bc1('0xdd')))return;_0x3bc1('0xff')==_0x13097a['type']&&(_0x36f53c[_0x3bc1('0x1e')](_0xae206)&&!_0x36f53c['isLimit'](_0xae206)&&(_0xae206['nextSibling']||_0x5e486a[_0x3bc1('0x98')]?_0x319bcd&&_0x319bcd[_0x3bc1('0x5a')]==_0xae206||(_0x319bcd=_0xae206,_0x9a9e91(_0x13097a[_0x3bc1('0x107')]),_0x1ebd72=!0x0):_0x5d1e3e=_0x5d1e3e||_0x13097a['previousPosition']));}function _0x9a9e91(_0x42d1f4){const _0x15c04d=_0x33ad36[_0x3bc1('0xd4')][_0x3bc1('0xbf')](_0x3bc1('0xdf'),{'class':_0x3bc1('0x14')+_0x5b85ec}),_0x3973ba=_0x33ad36[_0x3bc1('0x29')][_0x3bc1('0x8d')](_0x42d1f4);_0x436739[_0x3bc1('0x7')]['isSuggestion']&&_0x33ad36[_0x3bc1('0xd4')]['addClass']('ck-suggestion-marker-'+_0x5b85ec+_0x3bc1('0x31'),_0x15c04d),_0x29977a[_0x3bc1('0xb8')]==_0x436739&&_0x33ad36[_0x3bc1('0xd4')]['addClass'](_0x3bc1('0xc9'),_0x15c04d),_0x33ad36[_0x3bc1('0xd4')][_0x3bc1('0x83')](_0x3973ba,_0x15c04d),_0x33ad36[_0x3bc1('0x29')]['bindElementToMarker'](_0x15c04d,_0x473967[_0x3bc1('0x53')]);}_0x45609a||_0x1ebd72||!_0x5d1e3e||_0x9a9e91(_0x5d1e3e);};}(this['editor']),{'priority':'high'}),this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x65')]['on']('removeMarker:revision',(_0x59e318,_0x179bd5,_0x3d1f8b)=>{const _0x14f7c2=_0x3d1f8b[_0x3bc1('0x29')][_0x3bc1('0x2f')](_0x179bd5[_0x3bc1('0x53')]);if(_0x14f7c2)for(const _0x27e8ee of _0x14f7c2)(_0x27e8ee[_0x3bc1('0xc3')](_0x3bc1('0x11'))||_0x27e8ee['hasClass']('ck-suggestion-marker-merge'))&&(_0x3d1f8b['mapper'][_0x3bc1('0xb4')](_0x27e8ee,_0x179bd5['markerName']),_0x3d1f8b[_0x3bc1('0xd4')]['remove'](_0x27e8ee));},{'priority':_0x3bc1('0x62')}),this[_0x3bc1('0x5f')][_0x3bc1('0x42')]['downcastDispatcher']['on'](_0x3bc1('0x66'),(_0x3c8f9d,_0x39ec00,_0x292bed)=>{const _0x3c9ad4=_0x39ec00[_0x3bc1('0x53')]['split'](':')[0x1],_0x20f67f=this[_0x3bc1('0x60')](_0x3c9ad4);if(!_0x20f67f)return null;const _0x61c5f9=_0x3bc1('0x9f')==_0x20f67f[_0x3bc1('0x88')]?_0x3bc1('0x2'):_0x3bc1('0x2c');if(_0x292bed[_0x3bc1('0x8f')][_0x3bc1('0x59')](_0x39ec00[_0x3bc1('0xdb')],_0x3c8f9d[_0x3bc1('0xb6')]))for(const _0x41917c of _0x39ec00[_0x3bc1('0xdb')][_0x3bc1('0x28')]()){if(!_0x41917c['is'](_0x3bc1('0xda'),_0x3bc1('0xb1')))continue;const _0x318dd5=_0x292bed[_0x3bc1('0xd4')][_0x3bc1('0xbf')](_0x3bc1('0xdf'),{'class':_0x3bc1('0x14')+_0x61c5f9}),_0x2f8c16=_0x292bed[_0x3bc1('0x29')][_0x3bc1('0x8d')](this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0xc5')](_0x41917c));_0x20f67f[_0x3bc1('0x7')][_0x3bc1('0x10a')]&&_0x292bed[_0x3bc1('0xd4')][_0x3bc1('0x72')]('ck-suggestion-marker-'+_0x61c5f9+_0x3bc1('0x31'),_0x318dd5),this[_0x3bc1('0xb8')]==_0x20f67f&&_0x292bed['writer'][_0x3bc1('0x72')](_0x3bc1('0xc9'),_0x318dd5),_0x292bed[_0x3bc1('0xd4')][_0x3bc1('0x83')](_0x2f8c16,_0x318dd5),_0x292bed[_0x3bc1('0x29')][_0x3bc1('0x6')](_0x318dd5,_0x39ec00[_0x3bc1('0x53')]);}},{'priority':'high'}),this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['document']['on'](_0x3bc1('0x70'),()=>{this['editor'][_0x3bc1('0x42')][_0x3bc1('0x11d')]['change'](_0x22ce1c=>{for(const _0x31a933 of this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['document'][_0x3bc1('0x6e')]()){const _0x551f08=this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0x1c')]['getRoot'](_0x31a933),_0x1d08b8=this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')]['document'][_0x3bc1('0x25')](_0x31a933);if(_0x1d08b8){const _0x241845=_0x551f08[_0x3bc1('0x36')](_0x3bc1('0x4b'));if(_0x22ce1c['removeAttribute']('data-change-id',_0x1d08b8),_0x22ce1c['removeClass'](_0x3bc1('0x79'),_0x1d08b8),_0x22ce1c[_0x3bc1('0x67')]('ck-revision-history-root-remove',_0x1d08b8),_0x22ce1c['removeClass'](_0x3bc1('0xb3'),_0x1d08b8),_0x241845){const _0x43f8a5=this[_0x3bc1('0x60')](_0x241845);if(!_0x43f8a5)return null;_0x22ce1c['setAttribute'](_0x3bc1('0x55'),_0x241845,_0x1d08b8),_0x22ce1c[_0x3bc1('0x72')]('ck-revision-history-root-'+_0x43f8a5[_0x3bc1('0x88')],_0x1d08b8),this[_0x3bc1('0xb8')]==_0x43f8a5&&_0x22ce1c[_0x3bc1('0x72')](_0x3bc1('0xb3'),_0x1d08b8);}}}});}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')]['for']('upcast')[_0x3bc1('0x8a')]({'view':'comment','model':_0x5717b0=>_0x3bc1('0xe8')+_0x5717b0,'converterPriority':_0x3bc1('0x35')}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x44'))['dataToMarker']({'view':_0x3bc1('0xe1'),'model':_0xcc70ed=>_0x3bc1('0x102')+_0xcc70ed,'converterPriority':_0x3bc1('0x35')}),this['editor'][_0x3bc1('0xa6')]['for'](_0x3bc1('0x30'))['markerToData']({'model':_0x3bc1('0x11a'),'view':_0x59ab80=>({'name':'suggestion:'+_0x59ab80,'group':_0x3bc1('0x11a')}),'converterPriority':_0x3bc1('0x35')}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x118'))[_0x3bc1('0x77')]({'model':_0x3bc1('0x11a'),'view':_0x30b8c2=>{const _0x57eba7=_0x30b8c2[_0x3bc1('0x53')][_0x3bc1('0x2')](':')[0x1];return _0x3bc1('0xf2')!=_0x57eba7&&_0x3bc1('0x6a')!=_0x57eba7?null:{'classes':[_0x3bc1('0x1'),_0x3bc1('0xfd')+_0x57eba7]};}}),this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x65')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x3bc1('0x5f')],'merge'),{'priority':_0x3bc1('0x62')}),this[_0x3bc1('0x5f')][_0x3bc1('0x42')]['downcastDispatcher']['on'](_0x3bc1('0x8c'),et(this[_0x3bc1('0x5f')],_0x3bc1('0x2')),{'priority':_0x3bc1('0x62')}),this[_0x3bc1('0x5f')]['editing'][_0x3bc1('0x65')]['on']('removeMarker:revision-suggestion',(_0x424845,_0x214d37,_0x525c55)=>{const _0x14804e=_0x525c55[_0x3bc1('0x29')][_0x3bc1('0x2f')](_0x214d37[_0x3bc1('0x53')]);if(_0x14804e)for(const _0x22a1a8 of _0x14804e)_0x22a1a8['is'](_0x3bc1('0xdc'))&&(_0x525c55[_0x3bc1('0x29')]['unbindElementFromMarkerName'](_0x22a1a8,_0x214d37[_0x3bc1('0x53')]),_0x525c55[_0x3bc1('0xd4')]['remove'](_0x22a1a8));},{'priority':_0x3bc1('0x62')});}['_getChangeFromId'](_0x58252f){return this[_0x3bc1('0x5')][_0x3bc1('0x117')](_0x58252f);}['_getViewForChange'](_0x28a39a){return this[_0x3bc1('0xad')]&&this[_0x3bc1('0xad')][_0x3bc1('0x20')](),this[_0x3bc1('0xad')]=new _0x44934d(this['editor'][_0x3bc1('0x7f')],_0x28a39a),this[_0x3bc1('0xad')];}[_0x3bc1('0x106')](){this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['document'][_0x3bc1('0x4c')]['observeMarkers'](_0x3bc1('0xa3')),this['on']('change:activeView',(_0x30afc8,_0xd8187,_0x22c00e,_0x4b779e)=>{_0x4b779e&&this[_0x3bc1('0x89')][_0x3bc1('0x1a')](_0x4b779e),_0x22c00e&&(this[_0x3bc1('0x89')][_0x3bc1('0x9f')]({'view':_0x22c00e,'stackId':_0x3bc1('0xe6'),'position':{'target':()=>{const _0x474a7e=this[_0x3bc1('0x5f')]['editing'],_0x196f36=this[_0x3bc1('0x60')](_0x22c00e[_0x3bc1('0x12')]);let _0x39d5d6;if(_0x196f36['data'][_0x3bc1('0x114')]){const _0x55f401=_0x474a7e[_0x3bc1('0x11d')]['getDomRoot'](_0x196f36[_0x3bc1('0x10c')]);_0x39d5d6=Array['from'](_0x55f401[_0x3bc1('0xac')]());}else{const _0x18b25f=this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0xd1')][_0x3bc1('0x117')](_0x3bc1('0x6d')+_0x22c00e[_0x3bc1('0x12')]);_0x39d5d6=Array[_0x3bc1('0xc2')](_0x474a7e[_0x3bc1('0x29')][_0x3bc1('0x2f')](_0x18b25f[_0x3bc1('0xb6')]))[_0x3bc1('0xc1')](_0x59171e=>_0x474a7e[_0x3bc1('0x11d')][_0x3bc1('0x103')][_0x3bc1('0xab')](_0x59171e))[_0x3bc1('0xc1')](_0x1f464b=>Array[_0x3bc1('0xc2')](_0x1f464b[_0x3bc1('0xac')]()))[_0x3bc1('0xe2')]();}if(!this[_0x3bc1('0xfc')])return _0x39d5d6[0x0];return _0x39d5d6[_0x3bc1('0x26')](_0x59d19e=>_0x59d19e['top']-0x3<=this[_0x3bc1('0xfc')]['y']&&_0x59d19e[_0x3bc1('0xb')]+0x3>=this[_0x3bc1('0xfc')]['y']&&_0x59d19e[_0x3bc1('0xba')]-0x3<=this[_0x3bc1('0xfc')]['x']&&_0x59d19e[_0x3bc1('0x109')]+0x3>=this[_0x3bc1('0xfc')]['x'])||_0x39d5d6[0x0];}}}),this[_0x3bc1('0x89')][_0x3bc1('0x1b')]('revisionHistoryLabel'));}),this['on'](_0x3bc1('0xa7'),(_0x4be7b9,_0x592399,_0x218c3e,_0x42c099)=>{this['activeView']=_0x218c3e?this[_0x3bc1('0xaa')](_0x218c3e):null,this[_0x3bc1('0x5f')]['model']['change'](()=>{const _0x5c39cc=this['editor'][_0x3bc1('0x42')];_0x42c099&&(_0x42c099['data'][_0x3bc1('0x114')]?_0x5c39cc[_0x3bc1('0x11d')][_0x3bc1('0x70')](_0x167c4b=>{_0x167c4b[_0x3bc1('0x67')](_0x3bc1('0xb3'),_0x5c39cc[_0x3bc1('0x11d')][_0x3bc1('0x1c')][_0x3bc1('0x25')](_0x42c099[_0x3bc1('0x10c')]));}):_0x5c39cc[_0x3bc1('0x4e')](_0x3bc1('0x6d')+_0x42c099['id'])),_0x218c3e&&(_0x218c3e[_0x3bc1('0x7')]['isOnRoot']?_0x5c39cc[_0x3bc1('0x11d')][_0x3bc1('0x70')](_0x1e9ba2=>{_0x1e9ba2[_0x3bc1('0x72')](_0x3bc1('0xb3'),_0x5c39cc[_0x3bc1('0x11d')][_0x3bc1('0x1c')][_0x3bc1('0x25')](_0x218c3e[_0x3bc1('0x10c')]));}):_0x5c39cc[_0x3bc1('0x4e')]('revision:'+_0x218c3e['id']));});}),this[_0x3bc1('0x57')](this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x1c')],_0x3bc1('0xee'),(_0x2d235b,_0x39db5d)=>{if(this[_0x3bc1('0xb8')])return;const _0x565ab6=this['_findChangeIdFromDomTarget'](_0x39db5d[_0x3bc1('0xc7')]),_0x3dfc2e=this[_0x3bc1('0x5')]['get'](_0x565ab6);_0x3dfc2e?(this['_activeViewTarget']={'x':_0x39db5d[_0x3bc1('0x7d')]['x'],'y':_0x39db5d['domEvent']['y']},this[_0x3bc1('0xa5')]=this[_0x3bc1('0xaa')](_0x3dfc2e)):(this[_0x3bc1('0xfc')]=null,this['activeView']=null);}),this[_0x3bc1('0x57')](this[_0x3bc1('0x5f')]['editing']['view'][_0x3bc1('0x1c')],_0x3bc1('0x7b'),(_0x18d2a3,_0x2c8d0f)=>{const _0x58a85e=this['_findChangeIdFromDomTarget'](_0x2c8d0f[_0x3bc1('0xc7')]),_0x1c205b=this['_changeIdToChange'][_0x3bc1('0x117')](_0x58a85e);_0x1c205b?(this[_0x3bc1('0xfc')]={'x':_0x2c8d0f[_0x3bc1('0x7d')]['x'],'y':_0x2c8d0f[_0x3bc1('0x7d')]['y']},_0x1c205b===this[_0x3bc1('0xb8')]?this[_0x3bc1('0x89')]['updatePosition']():this['activeChange']=_0x1c205b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x475427){do{const _0x4ac670=_0x475427['getAttribute'](_0x3bc1('0x55'));if(_0x4ac670)return _0x4ac670;_0x475427=_0x475427[_0x3bc1('0x5a')];}while(_0x475427);return null;}[_0x3bc1('0x43')](){this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['change'](_0x3c0253=>{for(const _0x2a79ca of this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['markers'])_0x3c0253[_0x3bc1('0xf8')](_0x2a79ca);});}}function et(_0x172fce,_0x593898){return(_0x5988c3,_0x2312d0,_0x291f18)=>{if(!_0x291f18[_0x3bc1('0x8f')][_0x3bc1('0x59')](_0x2312d0[_0x3bc1('0xdb')],_0x5988c3['name']))return;const _0x5ec43b=_0x2312d0[_0x3bc1('0xdb')][_0x3bc1('0x64')](),_0x24f9ba=_0x2312d0[_0x3bc1('0xdb')]['start'],_0x258614=_0x172fce['model'][_0x3bc1('0x9a')];let _0x2396d1=null,_0x431a85=null,_0x28bb21=!0x1,_0x264049=!0x1;for(const _0x189850 of _0x5ec43b){const _0x51f52d=_0x189850[_0x3bc1('0xc')];_0x28bb21=_0x28bb21||_0x258614[_0x3bc1('0x16')](_0x51f52d);const _0x2271a8=_0x291f18[_0x3bc1('0x29')][_0x3bc1('0x6b')](_0x51f52d);if(_0x2271a8&&_0x2271a8[_0x3bc1('0x19')](_0x3bc1('0xdd')))return;'elementEnd'==_0x189850[_0x3bc1('0x88')]&&(_0x258614[_0x3bc1('0x1e')](_0x51f52d)&&!_0x258614[_0x3bc1('0x86')](_0x51f52d)&&(_0x51f52d[_0x3bc1('0xd9')]||_0x24f9ba[_0x3bc1('0x98')]?_0x2396d1&&_0x2396d1[_0x3bc1('0x5a')]==_0x51f52d||(_0x2396d1=_0x51f52d,_0x3d78ec(_0x189850[_0x3bc1('0x107')]),_0x264049=!0x0):_0x431a85=_0x431a85||_0x189850[_0x3bc1('0x107')]));}function _0x3d78ec(_0x2e4798){const _0x4952f2=_0x291f18[_0x3bc1('0x29')][_0x3bc1('0x8d')](_0x2e4798),_0x193d30=_0x291f18[_0x3bc1('0xd4')][_0x3bc1('0xbf')](_0x3bc1('0xdf'),{'class':_0x3bc1('0xfd')+_0x593898});_0x291f18['writer'][_0x3bc1('0x83')](_0x4952f2,_0x193d30),_0x291f18[_0x3bc1('0x29')]['bindElementToMarker'](_0x193d30,_0x2312d0['markerName']);}_0x28bb21||_0x264049||!_0x431a85||_0x3d78ec(_0x431a85);};}export class RestoreRevisionCommand extends _0x484f37{constructor(_0x1bfc13){super(_0x1bfc13);const _0x320004=_0x1bfc13[_0x3bc1('0xaf')][_0x3bc1('0x117')](d);this[_0x3bc1('0x101')]=!0x1,this[_0x3bc1('0x57')](_0x320004,_0x3bc1('0xe4'),()=>this[_0x3bc1('0xc0')]()),this[_0x3bc1('0x57')](_0x320004,_0x3bc1('0x2a'),()=>this['refresh']());}['execute'](){const _0x19efc7=this['editor'],_0x124e5d=_0x19efc7[_0x3bc1('0xaf')][_0x3bc1('0x117')](d),_0x1b2b6b=_0x124e5d[_0x3bc1('0xc4')]?_0x124e5d[_0x3bc1('0x8b')][_0x3bc1('0x27')]:null;_0x19efc7[_0x3bc1('0x2b')][_0x3bc1('0x117')](_0x3bc1('0xd'))['restoreRevisionCallback'](_0x1b2b6b);}[_0x3bc1('0xc0')](){const {isReady:_0x3e7094,isEnabled:_0x9a19f1}=this[_0x3bc1('0x5f')][_0x3bc1('0xaf')]['get'](d);this[_0x3bc1('0x61')]=_0x3e7094&&_0x9a19f1;}}export class ShowChangeCommand extends _0x484f37{constructor(_0x16e669,{direction:_0x157b93}){super(_0x16e669);const _0x565b48=_0x16e669[_0x3bc1('0xaf')][_0x3bc1('0x117')](d);this[_0x3bc1('0x101')]=!0x1,this[_0x3bc1('0x84')]='forward'===_0x157b93?0x1:-0x1,this[_0x3bc1('0x57')](_0x565b48,_0x3bc1('0xe4'),()=>this[_0x3bc1('0xc0')]()),this[_0x3bc1('0x57')](_0x565b48,'change:isEnabled',()=>this[_0x3bc1('0xc0')]()),this['listenTo'](_0x565b48,_0x3bc1('0xa7'),()=>this['refresh']());}[_0x3bc1('0x18')](){const _0x5eec64=this[_0x3bc1('0x5f')],_0x399773=_0x5eec64[_0x3bc1('0xaf')][_0x3bc1('0x117')](d),{isNavigationMode:_0x5bac03,currentChangeNumber:_0x59e13f}=_0x399773;let _0x473aac;if(_0x399773[_0x3bc1('0xb8')]=_0x5bac03?_0x399773[_0x3bc1('0x8b')]['changes'][_0x3bc1('0x117')](_0x59e13f+this['_step']):_0x399773[_0x3bc1('0x8b')][_0x3bc1('0x110')]['first'],_0x399773[_0x3bc1('0xb8')][_0x3bc1('0x7')][_0x3bc1('0x114')])_0x473aac=_0x5eec64[_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x95')](_0x399773[_0x3bc1('0xb8')][_0x3bc1('0x10c')]);else{const _0x217efa=_0x5eec64[_0x3bc1('0x96')][_0x3bc1('0xd1')][_0x3bc1('0x117')](_0x3bc1('0x6d')+_0x399773[_0x3bc1('0xb8')]['id']);_0x473aac=_0x1340aa(_0x5eec64[_0x3bc1('0x42')],_0x217efa);}_0x23e2a0({'target':_0x473aac,'viewportOffset':0x28});}[_0x3bc1('0xc0')](){const {isNavigationMode:_0x2f2acd,currentChangeNumber:_0x3d9d55,numberOfChanges:_0x28b4b2,isReady:_0x3db022,isEnabled:_0xaaca10}=this[_0x3bc1('0x5f')][_0x3bc1('0xaf')][_0x3bc1('0x117')](d);this[_0x3bc1('0x61')]=!!(_0xaaca10&&_0x3db022&&_0x28b4b2)&&(!_0x2f2acd||(0x1===this['_step']?_0x3d9d55<_0x28b4b2-0x1:_0x3d9d55>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x516a=['isEnabled','threeVerticalDots','isActionsDropdownOpen','function','button','change:isActionsDropdownOpen','ck-revision-history-sidebar__revision__actions','locale','class','name','first','buttonView','bind','execute','ck-on','find','listView','model','source','isVisible','_action','Show\x20more\x20items','isReady','isOpen','panelPosition','items','action','Compare\x20against\x20selected'];(function(_0x24f704,_0x516a15){const _0x5783b5=function(_0x59423a){while(--_0x59423a){_0x24f704['push'](_0x24f704['shift']());}};_0x5783b5(++_0x516a15);}(_0x516a,0xff));const _0x5783=function(_0x24f704,_0x516a15){_0x24f704=_0x24f704-0x0;let _0x5783b5=_0x516a[_0x24f704];return _0x5783b5;};import{Collection as _0x564b77}from'ckeditor5/src/utils';import{icons as _0x241ade}from'ckeditor5/src/core';import{Model as _0x171dfb,addListToDropdown as _0x227c99,createDropdown as _0x2ad2e3}from'ckeditor5/src/ui';import{getTranslation as _0x3f35b6}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x269e64,_0x43f4ed){const _0x291691=_0x269e64['bindTemplate'],_0x2d22b9=_0x269e64[_0x5783('0x4')],_0x1bbd13=_0x2ad2e3(_0x2d22b9);_0x1bbd13[_0x5783('0x15')]='sw';const _0x3ee8b1=function(_0x21fb76,_0x3b2405){const _0x35bf14=function(_0x4da6a4,_0x430291){const _0x306641=_0x4da6a4['locale'],_0x596637={'Compare\x20against\x20selected':_0x3f35b6(_0x306641,_0x5783('0x18')),'Name\x20this\x20revision':_0x3f35b6(_0x306641,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x3f35b6(_0x306641,'Restore\x20this\x20revision')};return _0x430291['map'](_0xea29b1=>{const _0xb57dc4=_0x596637[_0xea29b1[_0x5783('0x6')]];return _0xb57dc4&&_0xb57dc4!==_0xea29b1[_0x5783('0x6')]&&(_0xea29b1['name']=_0xb57dc4),_0xea29b1;});}(_0x21fb76,_0x3b2405),_0xa9a07f=new _0x564b77();for(const _0x3e2c2f of _0x35bf14){const _0x5d0b8b={'type':_0x5783('0x1'),'model':new _0x171dfb({'label':_0x3e2c2f[_0x5783('0x6')],'class':_0x3e2c2f[_0x5783('0x5')],'withText':!0x0,'_action':_0x3e2c2f[_0x5783('0x17')]})};_0x5d0b8b[_0x5783('0xe')][_0x5783('0x9')](_0x5783('0x19'))['to'](_0x21fb76,_0x5783('0x1b'),_0x1f3076=>_0x5783('0x0')!=typeof _0x3e2c2f['isEnabled']||(!_0x1f3076||_0x3e2c2f['isEnabled'](_0x21fb76))),_0xa9a07f['add'](_0x5d0b8b);}return _0xa9a07f;}(_0x269e64,_0x43f4ed);return _0x269e64[_0x5783('0x9')](_0x5783('0x1b'))['to'](_0x1bbd13,_0x5783('0x14')),_0x1bbd13[_0x5783('0x8')]['set']({'label':_0x3f35b6(_0x2d22b9,_0x5783('0x12')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x241ade[_0x5783('0x1a')]}),_0x1bbd13['extendTemplate']({'attributes':{'class':[_0x5783('0x3'),_0x291691['if'](_0x5783('0x1b'),_0x5783('0xb'))]},'on':{'click':_0x291691['to'](_0x4e8b73=>_0x4e8b73['stopPropagation']())}}),_0x1bbd13['on'](_0x5783('0xa'),_0xc3a6f6=>{_0x269e64[_0x5783('0x13')]&&_0x5783('0x0')==typeof _0xc3a6f6[_0x5783('0xf')][_0x5783('0x11')]&&_0xc3a6f6[_0x5783('0xf')]['_action'](_0x269e64);}),_0x227c99(_0x1bbd13,_0x3ee8b1),_0x1bbd13['listenTo'](_0x269e64,_0x5783('0x2'),(_0x5a2957,_0x30f4be,_0x115c42)=>{if(_0x115c42)for(const _0x39e5a1 of _0x1bbd13[_0x5783('0xd')][_0x5783('0x16')]){const _0x4247ae=_0x39e5a1['children'][_0x5783('0x7')],_0x914388=_0x43f4ed[_0x5783('0xc')](_0x3079f2=>_0x3079f2[_0x5783('0x17')]===_0x4247ae['_action'])[_0x5783('0x10')];_0x39e5a1[_0x5783('0x10')]=void 0x0===_0x914388||_0x914388(_0x269e64);}}),_0x1bbd13;}
23
+ const _0x2e56=['locale','first','function','threeVerticalDots','children','add','_action','stopPropagation','source','ck-on','button','listenTo','Name\x20this\x20revision','Show\x20more\x20items','action','class','execute','listView','Compare\x20against\x20selected','map','isActionsDropdownOpen','extendTemplate','isEnabled','name','set','bindTemplate','isReady','items','buttonView','find','isVisible','Restore\x20this\x20revision'];(function(_0x3ad791,_0x2e56f8){const _0x12ac82=function(_0xd1996b){while(--_0xd1996b){_0x3ad791['push'](_0x3ad791['shift']());}};_0x12ac82(++_0x2e56f8);}(_0x2e56,0x15b));const _0x12ac=function(_0x3ad791,_0x2e56f8){_0x3ad791=_0x3ad791-0x0;let _0x12ac82=_0x2e56[_0x3ad791];return _0x12ac82;};import{Collection as _0x516647}from'ckeditor5/src/utils';import{icons as _0x3167da}from'ckeditor5/src/core';import{Model as _0x59b0a3,addListToDropdown as _0x19ed29,createDropdown as _0x47c57a}from'ckeditor5/src/ui';import{getTranslation as _0x358cd4}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x5917d5,_0xd1d2da){const _0x58766c=_0x5917d5[_0x12ac('0x1e')],_0x4304a0=_0x5917d5['locale'],_0x26deed=_0x47c57a(_0x4304a0);_0x26deed['panelPosition']='sw';const _0x3c573a=function(_0x2e7a7c,_0x52234e){const _0x24e822=function(_0x54a3f0,_0x216538){const _0x13c659=_0x54a3f0[_0x12ac('0x5')],_0x5b7b69={'Compare\x20against\x20selected':_0x358cd4(_0x13c659,_0x12ac('0x17')),'Name\x20this\x20revision':_0x358cd4(_0x13c659,_0x12ac('0x11')),'Restore\x20this\x20revision':_0x358cd4(_0x13c659,_0x12ac('0x4'))};return _0x216538[_0x12ac('0x18')](_0x1db264=>{const _0x3cd475=_0x5b7b69[_0x1db264['name']];return _0x3cd475&&_0x3cd475!==_0x1db264[_0x12ac('0x1c')]&&(_0x1db264['name']=_0x3cd475),_0x1db264;});}(_0x2e7a7c,_0x52234e),_0x163b59=new _0x516647();for(const _0x5da4b5 of _0x24e822){const _0x20f9a8={'type':_0x12ac('0xf'),'model':new _0x59b0a3({'label':_0x5da4b5[_0x12ac('0x1c')],'class':_0x5da4b5[_0x12ac('0x14')],'withText':!0x0,'_action':_0x5da4b5[_0x12ac('0x13')]})};_0x20f9a8['model']['bind'](_0x12ac('0x1b'))['to'](_0x2e7a7c,_0x12ac('0x19'),_0x15e190=>'function'!=typeof _0x5da4b5[_0x12ac('0x1b')]||(!_0x15e190||_0x5da4b5[_0x12ac('0x1b')](_0x2e7a7c))),_0x163b59[_0x12ac('0xa')](_0x20f9a8);}return _0x163b59;}(_0x5917d5,_0xd1d2da);return _0x5917d5['bind'](_0x12ac('0x19'))['to'](_0x26deed,'isOpen'),_0x26deed[_0x12ac('0x1')][_0x12ac('0x1d')]({'label':_0x358cd4(_0x4304a0,_0x12ac('0x12')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3167da[_0x12ac('0x8')]}),_0x26deed[_0x12ac('0x1a')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x58766c['if'](_0x12ac('0x19'),_0x12ac('0xe'))]},'on':{'click':_0x58766c['to'](_0x3d270b=>_0x3d270b[_0x12ac('0xc')]())}}),_0x26deed['on'](_0x12ac('0x15'),_0x2f77c1=>{_0x5917d5[_0x12ac('0x1f')]&&_0x12ac('0x7')==typeof _0x2f77c1[_0x12ac('0xd')][_0x12ac('0xb')]&&_0x2f77c1[_0x12ac('0xd')][_0x12ac('0xb')](_0x5917d5);}),_0x19ed29(_0x26deed,_0x3c573a),_0x26deed[_0x12ac('0x10')](_0x5917d5,'change:isActionsDropdownOpen',(_0x42bc4a,_0x46a6d6,_0x2b7538)=>{if(_0x2b7538)for(const _0x462ce6 of _0x26deed[_0x12ac('0x16')][_0x12ac('0x0')]){const _0x5d2234=_0x462ce6[_0x12ac('0x9')][_0x12ac('0x6')],_0x1f3d48=_0xd1d2da[_0x12ac('0x2')](_0x3c096d=>_0x3c096d[_0x12ac('0x13')]===_0x5d2234[_0x12ac('0xb')])[_0x12ac('0x3')];_0x462ce6['isVisible']=void 0x0===_0x1f3d48||_0x1f3d48(_0x5917d5);}}),_0x26deed;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xfee3=['set','ck-revision-history-sidebar__revision-author__name','setTemplate','push','ck-revision-history-sidebar__revision-author','name','Revision\x20creator','span','Revision\x20author'];(function(_0x2e0c8e,_0xfee3e8){const _0x48fca8=function(_0x54bd8a){while(--_0x54bd8a){_0x2e0c8e['push'](_0x2e0c8e['shift']());}};_0x48fca8(++_0xfee3e8);}(_0xfee3,0x70));const _0x48fc=function(_0x2e0c8e,_0xfee3e8){_0x2e0c8e=_0x2e0c8e-0x0;let _0x48fca8=_0xfee3[_0x2e0c8e];return _0x48fca8;};import{View as _0x11553a,IconView as _0x573407}from'ckeditor5/src/ui';import{getTranslation as _0x385008}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x459323 from'../../../theme/icons/user.svg';export default class ti extends _0x11553a{constructor(_0x3ddb9b,_0x509d51,_0x591450){super(_0x3ddb9b);const _0x28d38a=new _0x573407();_0x28d38a[_0x48fc('0x5')]({'content':_0x459323,'viewBox':'0\x200\x2011\x2010'});const _0x5cf580=['ck',_0x48fc('0x0')];_0x591450&&_0x5cf580[_0x48fc('0x8')]('ck-revision-history-sidebar__revision-author_creator');const _0x2d70cc=[{'tag':_0x48fc('0x3'),'attributes':{'class':['ck',_0x48fc('0x6')],'title':_0x385008(_0x3ddb9b,_0x591450?_0x48fc('0x2'):_0x48fc('0x4'))},'children':[_0x28d38a,_0x509d51[_0x48fc('0x1')]]}];this[_0x48fc('0x7')]({'tag':'li','attributes':{'class':_0x5cf580},'children':_0x2d70cc});}}
23
+ const _0x52fd=['setTemplate','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author','span','push','Revision\x20creator','set','Revision\x20author','name'];(function(_0x17ec92,_0x52fdf7){const _0x37bf2a=function(_0x1c881a){while(--_0x1c881a){_0x17ec92['push'](_0x17ec92['shift']());}};_0x37bf2a(++_0x52fdf7);}(_0x52fd,0xc8));const _0x37bf=function(_0x17ec92,_0x52fdf7){_0x17ec92=_0x17ec92-0x0;let _0x37bf2a=_0x52fd[_0x17ec92];return _0x37bf2a;};import{View as _0x22fc38,IconView as _0x2e0cc0}from'ckeditor5/src/ui';import{getTranslation as _0x50bb83}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x5d8255 from'../../../theme/icons/user.svg';export default class ti extends _0x22fc38{constructor(_0x5baed3,_0x220e77,_0x2c8dc8){super(_0x5baed3);const _0xaf0390=new _0x2e0cc0();_0xaf0390[_0x37bf('0x4')]({'content':_0x5d8255,'viewBox':_0x37bf('0x8')});const _0x9d0314=['ck',_0x37bf('0x0')];_0x2c8dc8&&_0x9d0314[_0x37bf('0x2')]('ck-revision-history-sidebar__revision-author_creator');const _0x16b43a=[{'tag':_0x37bf('0x1'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x50bb83(_0x5baed3,_0x2c8dc8?_0x37bf('0x3'):_0x37bf('0x5'))},'children':[_0xaf0390,_0x220e77[_0x37bf('0x6')]]}];this[_0x37bf('0x7')]({'tag':'li','attributes':{'class':_0x9d0314},'children':_0x16b43a});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xb08b=['span','Revision\x20name','set','extendTemplate'];(function(_0x1bdf46,_0xb08b5e){var _0x2f0f9f=function(_0x1212d7){while(--_0x1212d7){_0x1bdf46['push'](_0x1bdf46['shift']());}};_0x2f0f9f(++_0xb08b5e);}(_0xb08b,0xd9));var _0x2f0f=function(_0x1bdf46,_0xb08b5e){_0x1bdf46=_0x1bdf46-0x0;var _0x2f0f9f=_0xb08b[_0x1bdf46];return _0x2f0f9f;};import{LabeledFieldView as _0x284ba9}from'ckeditor5/src/ui';import{getTranslation as _0x5bdb2b}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x284ba9{constructor(_0xd19b65,_0x28e123){super(_0xd19b65,_0x28e123),this[_0x2f0f('0x1')]({'label':_0x5bdb2b(_0xd19b65,_0x2f0f('0x0'))}),this[_0x2f0f('0x2')]({'tag':_0x2f0f('0x3'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
23
+ var _0x16e4=['span','extendTemplate','ck-revision-history-sidebar__revision-name','Revision\x20name'];(function(_0x4526dd,_0x16e456){var _0x27c01a=function(_0xedbe5e){while(--_0xedbe5e){_0x4526dd['push'](_0x4526dd['shift']());}};_0x27c01a(++_0x16e456);}(_0x16e4,0x186));var _0x27c0=function(_0x4526dd,_0x16e456){_0x4526dd=_0x4526dd-0x0;var _0x27c01a=_0x16e4[_0x4526dd];return _0x27c01a;};import{LabeledFieldView as _0x513c5f}from'ckeditor5/src/ui';import{getTranslation as _0x47a2ae}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x513c5f{constructor(_0x2b8dd9,_0x24a8ac){super(_0x2b8dd9,_0x24a8ac),this['set']({'label':_0x47a2ae(_0x2b8dd9,_0x27c0('0x1'))}),this[_0x27c0('0x3')]({'tag':_0x27c0('0x2'),'attributes':{'class':[_0x27c0('0x0')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18c5=['ck-revision-history-sidebar__revision-authors','ck-disabled','ck-reset','name','filter','select','fire','isSelected','extendTemplate','fieldView','render','setTemplate','_revision','deselect','ck-revision-history-sidebar__revision_selected','element','span','bind','creator','ck-revision-history-sidebar__revision__controls-wrapper','_createdAtFormatted','closest','setName','set','220','div','uiLanguage','isEnabled','placeholder','revisionNameView','from','isHighlighted','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision-wrapper','unshift','authors','revisionActionsView','unhighlight','isReady','isActionsDropdownOpen','change','srcElement','createdAt','.ck-thread__remove-confirm','ck-revision-history-sidebar__revision_highlighted','value'];(function(_0x18035d,_0x18c5d5){const _0x38ebc7=function(_0x1fd443){while(--_0x1fd443){_0x18035d['push'](_0x18035d['shift']());}};_0x38ebc7(++_0x18c5d5);}(_0x18c5,0x6a));const _0x38eb=function(_0x18035d,_0x18c5d5){_0x18035d=_0x18035d-0x0;let _0x38ebc7=_0x18c5[_0x18035d];return _0x38ebc7;};import{View as _0x3b136a,createLabeledInputText as _0x4f55dd}from'ckeditor5/src/ui';import{ConfirmMixin as _0x31ba44}from'ckeditor5-collaboration/src/collaboration-core';import _0x2ff25b from'./revisionnameview';import _0x465e10 from'./revisionauthorview';import{dateToPrettyFormat as _0xb5ddc0}from'./utils';import{createActionsDropdownView as _0x4c2f7d}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x31ba44(_0x3b136a){constructor(_0x43c62d,_0x4dc420,_0x352ace){super(_0x43c62d);const _0x4163b5=this['bindTemplate'],_0x30cf03=function(_0x36b932,_0x411c65){const _0x3f9d18=Array[_0x38eb('0x12')](_0x411c65[_0x38eb('0x18')])[_0x38eb('0x27')](_0x2dbe6c=>_0x2dbe6c!=_0x411c65['creator']);return _0x411c65[_0x38eb('0x6')]&&_0x3f9d18[_0x38eb('0x17')](_0x411c65[_0x38eb('0x6')]),_0x3f9d18['map'](_0x32f7de=>new _0x465e10(_0x36b932,_0x32f7de,_0x32f7de==_0x411c65['creator']));}(_0x43c62d,_0x4dc420);this['id']=_0x4dc420['id'],this[_0x38eb('0x0')]=_0x4dc420,this[_0x38eb('0x5')](_0x38eb('0x26'),_0x38eb('0x1f'))['to'](_0x4dc420),this[_0x38eb('0x5')]('_createdAtFormatted')['to'](this,_0x38eb('0x1f'),_0x212ca5=>_0x212ca5?_0xb5ddc0(_0x43c62d[_0x38eb('0xe')],_0x212ca5):void 0x0),this[_0x38eb('0xb')](_0x38eb('0x2a'),!0x1),this[_0x38eb('0xb')](_0x38eb('0x13'),!0x1),this[_0x38eb('0xb')](_0x38eb('0x1c'),!0x1),this[_0x38eb('0xb')](_0x38eb('0x1b'),!0x1),this[_0x38eb('0xb')](_0x38eb('0xf'),!0x1),this['revisionNameView']=new _0x2ff25b(_0x43c62d,_0x4f55dd),this['revisionNameView'][_0x38eb('0x2c')][_0x38eb('0x2b')]({'attributes':{'maxlength':_0x38eb('0xc')}}),this[_0x38eb('0x11')][_0x38eb('0x2c')][_0x38eb('0x5')](_0x38eb('0x22'),_0x38eb('0x10'))['to'](this,'name','_createdAtFormatted'),this['revisionNameView'][_0x38eb('0x5')]('isEnabled')['to'](this,_0x38eb('0x2a'),this,_0x38eb('0xf'),(_0x1a46ed,_0x224b8d)=>_0x1a46ed&&_0x224b8d),this['revisionActionsView']=_0x352ace&&_0x352ace['length']?_0x4c2f7d(this,_0x352ace):'',this[_0x38eb('0x19')]&&this[_0x38eb('0x19')][_0x38eb('0x5')](_0x38eb('0xf'))['to'](this),this[_0x38eb('0x2e')]({'tag':'div','attributes':{'class':['ck',_0x38eb('0x25'),_0x38eb('0x16'),_0x4163b5['if']('isConfirm',_0x38eb('0x14'))]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4163b5['if'](_0x38eb('0xf'),_0x38eb('0x24'),_0x44d4b2=>!_0x44d4b2),_0x4163b5['if'](_0x38eb('0x2a'),_0x38eb('0x2')),_0x4163b5['if'](_0x38eb('0x13'),_0x38eb('0x21')),_0x4163b5['if'](_0x38eb('0x1c'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x38eb('0x11')],{'tag':_0x38eb('0x4'),'attributes':{'class':['ck',_0x38eb('0x15')]},'children':[{'text':_0x4163b5['to'](_0x38eb('0x8'))}]},{'tag':_0x38eb('0xd'),'attributes':{'class':['ck',_0x38eb('0x7')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x38eb('0x23')]},'children':_0x30cf03}]},this[_0x38eb('0x19')]],'on':{'click':_0x4163b5['to'](_0x1376ff=>{_0x1376ff[_0x38eb('0x1e')][_0x38eb('0x9')](_0x38eb('0x20'))||this[_0x38eb('0x1b')]&&this[_0x38eb('0xf')]&&this[_0x38eb('0x29')](_0x38eb('0x28'),{'id':this['id']});})}}]});}['render'](){super[_0x38eb('0x2d')]();const _0x126888=this[_0x38eb('0x11')][_0x38eb('0x2c')][_0x38eb('0x3')];this['listenTo'](_0x126888,_0x38eb('0x1d'),()=>{this[_0x38eb('0x29')](_0x38eb('0xa'),{'id':this['id'],'name':_0x126888[_0x38eb('0x22')]});});}[_0x38eb('0x28')](){this[_0x38eb('0x2a')]=!0x0;}[_0x38eb('0x1')](){this['isSelected']=!0x1;}['highlight'](){this[_0x38eb('0x13')]=!0x0;}[_0x38eb('0x1a')](){this[_0x38eb('0x13')]=!0x1;}}
23
+ const _0x1258=['ck-reset','createdAt','revisionNameView','unhighlight','isConfirm','map','ck-revision-history-sidebar__revision_selected','isHighlighted','highlight','ck-revision-history-sidebar__revision-wrapper','element','value','creator','placeholder','isEnabled','isSelected','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision','render','length','change','set','setTemplate','ck-revision-history-sidebar__revision_highlighted','220','deselect','_createdAtFormatted','from','unshift','authors','srcElement','closest','fire','uiLanguage','revisionActionsView','ck-disabled','select','name','isReady','bind','ck-revision-history-sidebar__revision-authors','fieldView','div','span','ck-revision-history-sidebar__revision-wrapper_confirmation_visible'];(function(_0x1f498b,_0x1258b6){const _0x46dfa4=function(_0xc8fef2){while(--_0xc8fef2){_0x1f498b['push'](_0x1f498b['shift']());}};_0x46dfa4(++_0x1258b6);}(_0x1258,0xe7));const _0x46df=function(_0x1f498b,_0x1258b6){_0x1f498b=_0x1f498b-0x0;let _0x46dfa4=_0x1258[_0x1f498b];return _0x46dfa4;};import{View as _0x43bc8f,createLabeledInputText as _0x2bce51}from'ckeditor5/src/ui';import{ConfirmMixin as _0x18c755}from'ckeditor5-collaboration/src/collaboration-core';import _0x6d61f from'./revisionnameview';import _0x4b8878 from'./revisionauthorview';import{dateToPrettyFormat as _0x2ac97a}from'./utils';import{createActionsDropdownView as _0xf84094}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x18c755(_0x43bc8f){constructor(_0x3d9965,_0x2d7b2a,_0x28a3f0){super(_0x3d9965);const _0x3e02f3=this['bindTemplate'],_0x5e3aa5=function(_0x5ee778,_0x1887a5){const _0x10d4c4=Array[_0x46df('0x15')](_0x1887a5[_0x46df('0x17')])['filter'](_0x2acab8=>_0x2acab8!=_0x1887a5[_0x46df('0x6')]);return _0x1887a5['creator']&&_0x10d4c4[_0x46df('0x16')](_0x1887a5['creator']),_0x10d4c4[_0x46df('0x2c')](_0x43eb40=>new _0x4b8878(_0x5ee778,_0x43eb40,_0x43eb40==_0x1887a5['creator']));}(_0x3d9965,_0x2d7b2a);this['id']=_0x2d7b2a['id'],this['_revision']=_0x2d7b2a,this[_0x46df('0x21')](_0x46df('0x1f'),_0x46df('0x28'))['to'](_0x2d7b2a),this['bind'](_0x46df('0x14'))['to'](this,'createdAt',_0x187745=>_0x187745?_0x2ac97a(_0x3d9965[_0x46df('0x1b')],_0x187745):void 0x0),this[_0x46df('0xf')](_0x46df('0x9'),!0x1),this[_0x46df('0xf')](_0x46df('0x1'),!0x1),this[_0x46df('0xf')]('isActionsDropdownOpen',!0x1),this[_0x46df('0xf')](_0x46df('0x20'),!0x1),this[_0x46df('0xf')](_0x46df('0x8'),!0x1),this[_0x46df('0x29')]=new _0x6d61f(_0x3d9965,_0x2bce51),this[_0x46df('0x29')][_0x46df('0x23')]['extendTemplate']({'attributes':{'maxlength':_0x46df('0x12')}}),this[_0x46df('0x29')][_0x46df('0x23')][_0x46df('0x21')]('value',_0x46df('0x7'))['to'](this,_0x46df('0x1f'),_0x46df('0x14')),this[_0x46df('0x29')][_0x46df('0x21')](_0x46df('0x8'))['to'](this,_0x46df('0x9'),this,_0x46df('0x8'),(_0x3afd97,_0x2e39e1)=>_0x3afd97&&_0x2e39e1),this['revisionActionsView']=_0x28a3f0&&_0x28a3f0[_0x46df('0xd')]?_0xf84094(this,_0x28a3f0):'',this['revisionActionsView']&&this[_0x46df('0x1c')][_0x46df('0x21')](_0x46df('0x8'))['to'](this),this[_0x46df('0x10')]({'tag':_0x46df('0x24'),'attributes':{'class':['ck',_0x46df('0x27'),_0x46df('0x3'),_0x3e02f3['if'](_0x46df('0x2b'),_0x46df('0x26'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x46df('0x27'),_0x46df('0xb'),_0x3e02f3['if'](_0x46df('0x8'),_0x46df('0x1d'),_0x172f58=>!_0x172f58),_0x3e02f3['if'](_0x46df('0x9'),_0x46df('0x0')),_0x3e02f3['if'](_0x46df('0x1'),_0x46df('0x11')),_0x3e02f3['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x46df('0x29')],{'tag':_0x46df('0x25'),'attributes':{'class':['ck',_0x46df('0xa')]},'children':[{'text':_0x3e02f3['to'](_0x46df('0x14'))}]},{'tag':_0x46df('0x24'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck',_0x46df('0x22')]},'children':_0x5e3aa5}]},this['revisionActionsView']],'on':{'click':_0x3e02f3['to'](_0x25d2a5=>{_0x25d2a5[_0x46df('0x18')][_0x46df('0x19')]('.ck-thread__remove-confirm')||this[_0x46df('0x20')]&&this['isEnabled']&&this[_0x46df('0x1a')](_0x46df('0x1e'),{'id':this['id']});})}}]});}[_0x46df('0xc')](){super['render']();const _0x5ad6d4=this[_0x46df('0x29')]['fieldView'][_0x46df('0x4')];this['listenTo'](_0x5ad6d4,_0x46df('0xe'),()=>{this[_0x46df('0x1a')]('setName',{'id':this['id'],'name':_0x5ad6d4[_0x46df('0x5')]});});}['select'](){this[_0x46df('0x9')]=!0x0;}[_0x46df('0x13')](){this[_0x46df('0x9')]=!0x1;}[_0x46df('0x2')](){this[_0x46df('0x1')]=!0x0;}[_0x46df('0x2a')](){this[_0x46df('0x1')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x84db=['set','ck-revision-history-sidebar__subrevision-collapser__inner','button','ck-hidden','span','_isCollapsed','setTemplate','ck-revision-history-sidebar__subrevision-collapser_collapsed','false','bindTemplate','ck-revision-history-sidebar__subrevision-collapser','true','isVisible'];(function(_0x2fe1d7,_0x84dbf){const _0x31306c=function(_0x4d516f){while(--_0x4d516f){_0x2fe1d7['push'](_0x2fe1d7['shift']());}};_0x31306c(++_0x84dbf);}(_0x84db,0x12d));const _0x3130=function(_0x2fe1d7,_0x84dbf){_0x2fe1d7=_0x2fe1d7-0x0;let _0x31306c=_0x84db[_0x2fe1d7];return _0x31306c;};import{View as _0xaa476d}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0xaa476d{constructor(_0x32a8a6){super(_0x32a8a6);const _0x45efd8=this[_0x3130('0x7')];this[_0x3130('0xb')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x3130('0x4')]({'tag':'span','attributes':{'class':['ck',_0x3130('0x8'),_0x45efd8['if'](_0x3130('0xa'),_0x3130('0x1'),_0x4631ce=>!_0x4631ce),_0x45efd8['if'](_0x3130('0x3'),_0x3130('0x5'))],'role':_0x3130('0x0'),'aria-pressed':_0x45efd8['to'](_0x3130('0x3'),_0x456ea5=>_0x456ea5?_0x3130('0x6'):_0x3130('0x9'))},'children':[{'tag':_0x3130('0x2'),'attributes':{'class':['ck',_0x3130('0xc')]}}],'on':{'click':_0x45efd8['to']('click')}});}['toggle'](){this[_0x3130('0x3')]=!this[_0x3130('0x3')];}}
23
+ const _0x4caa=['toggle','_isCollapsed','isVisible','bindTemplate','span','set','ck-hidden','ck-revision-history-sidebar__subrevision-collapser__inner','ck-revision-history-sidebar__subrevision-collapser_collapsed','button'];(function(_0x43dfcd,_0x4caa90){const _0x4527b2=function(_0x587b8e){while(--_0x587b8e){_0x43dfcd['push'](_0x43dfcd['shift']());}};_0x4527b2(++_0x4caa90);}(_0x4caa,0x181));const _0x4527=function(_0x43dfcd,_0x4caa90){_0x43dfcd=_0x43dfcd-0x0;let _0x4527b2=_0x4caa[_0x43dfcd];return _0x4527b2;};import{View as _0x4cd06f}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x4cd06f{constructor(_0x5e9037){super(_0x5e9037);const _0x462f66=this[_0x4527('0x8')];this[_0x4527('0x0')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x4527('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x462f66['if'](_0x4527('0x7'),_0x4527('0x1'),_0x5a5c8b=>!_0x5a5c8b),_0x462f66['if']('_isCollapsed',_0x4527('0x3'))],'role':_0x4527('0x4'),'aria-pressed':_0x462f66['to'](_0x4527('0x6'),_0x571f33=>_0x571f33?'false':'true')},'children':[{'tag':_0x4527('0x9'),'attributes':{'class':['ck',_0x4527('0x2')]}}],'on':{'click':_0x462f66['to']('click')}});}[_0x4527('0x5')](){this[_0x4527('0x6')]=!this[_0x4527('0x6')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6783=['bind','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision-authors','isSelected','createdAt','select','fire','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__subrevision','setTemplate','div','deselect','span','bindTemplate','_parentRevisionId','_createdAtFormatted'];(function(_0x538cfa,_0x678306){const _0x36ad19=function(_0x4deed6){while(--_0x4deed6){_0x538cfa['push'](_0x538cfa['shift']());}};_0x36ad19(++_0x678306);}(_0x6783,0x1c3));const _0x36ad=function(_0x538cfa,_0x678306){_0x538cfa=_0x538cfa-0x0;let _0x36ad19=_0x6783[_0x538cfa];return _0x36ad19;};import{View as _0x38d86e}from'ckeditor5/src/ui';import _0x750a from'./revisionauthorview';import{dateToPrettyFormat as _0x2d75d4}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x38d86e{constructor(_0x4765f6,_0xd99498,_0x12c81f){super(_0x4765f6);const _0x48c3e1=this[_0x36ad('0xa')];this['id']=_0xd99498['id'],this['bind']('createdAt')['to'](_0xd99498),this['set'](_0x36ad('0x0'),!0x1),this['bind'](_0x36ad('0xc'))['to'](this,_0x36ad('0x1'),_0x3f34dd=>_0x3f34dd?_0x2d75d4(_0x4765f6['uiLanguage'],_0x3f34dd):void 0x0),this[_0x36ad('0xb')]=_0x12c81f,this[_0x36ad('0x6')]({'tag':_0x36ad('0x7'),'attributes':{'class':['ck','ck-reset',_0x36ad('0x4'),_0x36ad('0x5'),_0x48c3e1['if'](_0x36ad('0x0'),_0x36ad('0xe'))]},'children':[{'tag':_0x36ad('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x48c3e1['to'](_0x36ad('0xc'))}]},{'tag':'ul','attributes':{'class':['ck',_0x36ad('0xf')]},'children':[new _0x750a(_0x4765f6,_0xd99498['creator'],!0x0)]}],'on':{'click':_0x48c3e1['to'](this[_0x36ad('0x2')][_0x36ad('0xd')](this))}});}['select'](){this['isSelected']=!0x0,this[_0x36ad('0x3')](_0x36ad('0x2'),{'parentId':this['_parentRevisionId']});}[_0x36ad('0x8')](){this[_0x36ad('0x0')]=!0x1;}}
23
+ const _0x1716=['ck-reset','select','deselect','_createdAtFormatted','bindTemplate','isSelected','bind','ck-revision-history-sidebar__revision-authors','_parentRevisionId','creator','ck-revision-history-sidebar__subrevision','createdAt','uiLanguage','ck-revision-history-sidebar__revision__date'];(function(_0x46ab93,_0x171631){const _0x3ab549=function(_0x2b5165){while(--_0x2b5165){_0x46ab93['push'](_0x46ab93['shift']());}};_0x3ab549(++_0x171631);}(_0x1716,0x18d));const _0x3ab5=function(_0x46ab93,_0x171631){_0x46ab93=_0x46ab93-0x0;let _0x3ab549=_0x1716[_0x46ab93];return _0x3ab549;};import{View as _0x30a7a3}from'ckeditor5/src/ui';import _0x52bbd3 from'./revisionauthorview';import{dateToPrettyFormat as _0x452d75}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x30a7a3{constructor(_0x225c77,_0x3022ea,_0x18275f){super(_0x225c77);const _0x247341=this[_0x3ab5('0xd')];this['id']=_0x3022ea['id'],this[_0x3ab5('0x1')](_0x3ab5('0x6'))['to'](_0x3022ea),this['set']('isSelected',!0x1),this[_0x3ab5('0x1')](_0x3ab5('0xc'))['to'](this,_0x3ab5('0x6'),_0x1f68d1=>_0x1f68d1?_0x452d75(_0x225c77[_0x3ab5('0x7')],_0x1f68d1):void 0x0),this['_parentRevisionId']=_0x18275f,this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x3ab5('0x9'),'ck-revision-history-sidebar__revision',_0x3ab5('0x5'),_0x247341['if'](_0x3ab5('0x0'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x3ab5('0x8')]},'children':[{'text':_0x247341['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x3ab5('0x2')]},'children':[new _0x52bbd3(_0x225c77,_0x3022ea[_0x3ab5('0x4')],!0x0)]}],'on':{'click':_0x247341['to'](this[_0x3ab5('0xa')]['bind'](this))}});}['select'](){this[_0x3ab5('0x0')]=!0x0,this['fire'](_0x3ab5('0xa'),{'parentId':this[_0x3ab5('0x3')]});}[_0x3ab5('0xb')](){this[_0x3ab5('0x0')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x42b4=['toLocaleDateString','toLocaleTimeString','long','numeric'];(function(_0x48dd12,_0x42b4ea){var _0x1fc314=function(_0x1b3852){while(--_0x1b3852){_0x48dd12['push'](_0x48dd12['shift']());}};_0x1fc314(++_0x42b4ea);}(_0x42b4,0x196));var _0x1fc3=function(_0x48dd12,_0x42b4ea){_0x48dd12=_0x48dd12-0x0;var _0x1fc314=_0x42b4[_0x48dd12];return _0x1fc314;};export function dateToPrettyFormat(_0x2588ca,_0x5aa3f2){return _0x5aa3f2[_0x1fc3('0x2')](_0x2588ca,{'month':_0x1fc3('0x0'),'day':_0x1fc3('0x1')})+',\x20'+_0x5aa3f2[_0x1fc3('0x3')](_0x2588ca,{'hour':_0x1fc3('0x1'),'minute':_0x1fc3('0x1')});}
23
+ var _0xd2e7=['long','numeric','toLocaleDateString'];(function(_0x104f18,_0xd2e7a2){var _0x2c69f1=function(_0xfcad44){while(--_0xfcad44){_0x104f18['push'](_0x104f18['shift']());}};_0x2c69f1(++_0xd2e7a2);}(_0xd2e7,0xa8));var _0x2c69=function(_0x104f18,_0xd2e7a2){_0x104f18=_0x104f18-0x0;var _0x2c69f1=_0xd2e7[_0x104f18];return _0x2c69f1;};export function dateToPrettyFormat(_0x3ec817,_0x167525){return _0x167525[_0x2c69('0x2')](_0x3ec817,{'month':_0x2c69('0x0'),'day':_0x2c69('0x1')})+',\x20'+_0x167525['toLocaleTimeString'](_0x3ec817,{'hour':_0x2c69('0x1'),'minute':_0x2c69('0x1')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x56d9=['arrowleft','check','value','listenTo','_focusables','ck-button-cancel','extendTemplate','revisionNameInputValue','type','Cancel','revisionNameInputView','Save','revisionName','focus','cancelButtonView','cancel','focusFirst','shift\x20+\x20tab','arrowdown','add','saveButtonView','element','input','focusTracker','keystrokes','delegate','render','_createButton','reset','label','tab','Name\x20of\x20the\x20revision\x20(optional)','locale','setTemplate','execute','arrowright','trim','arrowup','_focusCycler','fieldView','_createRevisionNameInput','form','ck-responsive-form','set'];(function(_0x338c4c,_0x56d9e6){const _0x125171=function(_0x15186a){while(--_0x15186a){_0x338c4c['push'](_0x338c4c['shift']());}};_0x125171(++_0x56d9e6);}(_0x56d9,0x13c));const _0x1251=function(_0x338c4c,_0x56d9e6){_0x338c4c=_0x338c4c-0x0;let _0x125171=_0x56d9[_0x338c4c];return _0x125171;};import{icons as _0x3ad22d}from'ckeditor5/src/core';import{ButtonView as _0x1aaafe,FocusCycler as _0x2ca463,LabeledFieldView as _0xc94ef4,View as _0xedfbb,ViewCollection as _0xd424fe,createLabeledInputText as _0x412b14,injectCssTransitionDisabler as _0x20994f,submitHandler as _0x5934c7}from'ckeditor5/src/ui';import{FocusTracker as _0x189ff3,KeystrokeHandler as _0x5613d1}from'ckeditor5/src/utils';import{getTranslation as _0x567692}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0xedfbb{constructor(_0x4a4231){super(_0x4a4231),this[_0x1251('0xf')]=new _0x189ff3(),this['keystrokes']=new _0x5613d1(),this[_0x1251('0x23')](_0x1251('0x2b'),''),this[_0x1251('0x2')]=this[_0x1251('0x20')](),this['saveButtonView']=this[_0x1251('0x13')](_0x567692(_0x4a4231,_0x1251('0x3')),_0x3ad22d[_0x1251('0x25')],'ck-button-save'),this[_0x1251('0xc')][_0x1251('0x0')]='submit',this[_0x1251('0x6')]=this['_createButton'](_0x567692(_0x4a4231,_0x1251('0x1')),_0x3ad22d[_0x1251('0x7')],_0x1251('0x29'),_0x1251('0x7')),this['_focusables']=new _0xd424fe(),this[_0x1251('0x1e')]=new _0x2ca463({'focusables':this['_focusables'],'focusTracker':this[_0x1251('0xf')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x1251('0x9'),'focusNext':_0x1251('0x16')}}),this[_0x1251('0x19')]({'tag':_0x1251('0x21'),'attributes':{'class':['ck','ck-revision-history-save-revision-form',_0x1251('0x22')],'tabindex':'-1'},'children':[this[_0x1251('0x2')],this[_0x1251('0xc')],this[_0x1251('0x6')]]}),_0x20994f(this);}[_0x1251('0x12')](){super[_0x1251('0x12')](),_0x5934c7({'view':this}),([this[_0x1251('0x2')],this[_0x1251('0xc')],this[_0x1251('0x6')]]['forEach'](_0x214a7a=>{this[_0x1251('0x28')][_0x1251('0xb')](_0x214a7a),this[_0x1251('0xf')][_0x1251('0xb')](_0x214a7a[_0x1251('0xd')]);}),this['keystrokes'][_0x1251('0x27')](this['element']));const _0x39c00f=_0x3f66ef=>_0x3f66ef['stopPropagation']();this[_0x1251('0x10')]['set'](_0x1251('0x1b'),_0x39c00f),this['keystrokes'][_0x1251('0x23')](_0x1251('0x24'),_0x39c00f),this[_0x1251('0x10')][_0x1251('0x23')](_0x1251('0x1d'),_0x39c00f),this[_0x1251('0x10')][_0x1251('0x23')](_0x1251('0xa'),_0x39c00f);}[_0x1251('0x5')](){this['_focusCycler'][_0x1251('0x8')]();}get[_0x1251('0x4')](){return this[_0x1251('0x2')][_0x1251('0x1f')][_0x1251('0xd')][_0x1251('0x26')][_0x1251('0x1c')]();}set['revisionName'](_0x549ba9){this['revisionNameInputView'][_0x1251('0x1f')][_0x1251('0xd')]['value']=_0x549ba9[_0x1251('0x1c')]();}[_0x1251('0x14')](){this[_0x1251('0x2')][_0x1251('0x1f')][_0x1251('0xd')][_0x1251('0x26')]='';}[_0x1251('0x20')](){const _0x49837f=new _0xc94ef4(this['locale'],_0x412b14),_0x2c392d=_0x49837f[_0x1251('0x1f')];return _0x2c392d['extendTemplate']({'attributes':{'maxlength':'220'}}),_0x49837f[_0x1251('0x15')]=_0x567692(this[_0x1251('0x18')],_0x1251('0x17')),_0x2c392d['on'](_0x1251('0xe'),()=>{this[_0x1251('0x2b')]=_0x2c392d[_0x1251('0xd')]['value'][_0x1251('0x1c')]();}),_0x49837f;}[_0x1251('0x13')](_0x1a150c,_0x2b1119,_0x25c216,_0x41de00){const _0x56ea5e=new _0x1aaafe(this[_0x1251('0x18')]);return _0x56ea5e[_0x1251('0x23')]({'label':_0x1a150c,'icon':_0x2b1119,'tooltip':!0x0}),_0x56ea5e[_0x1251('0x2a')]({'attributes':{'class':_0x25c216}}),_0x41de00&&_0x56ea5e[_0x1251('0x11')](_0x1251('0x1a'))['to'](this,_0x41de00),_0x56ea5e;}}
23
+ const _0x4985=['220','cancelButtonView','focusTracker','focusFirst','Cancel','locale','arrowdown','execute','revisionName','tab','add','revisionNameInputValue','extendTemplate','element','set','_focusables','form','focus','shift\x20+\x20tab','_createButton','render','reset','saveButtonView','fieldView','revisionNameInputView','_focusCycler','input','ck-responsive-form','_createRevisionNameInput','check','ck-button-save','Save','arrowup','keystrokes','trim','label','value','ck-button-cancel','Name\x20of\x20the\x20revision\x20(optional)','forEach','ck-revision-history-save-revision-form','submit','cancel'];(function(_0x5de08e,_0x4985f7){const _0x22e6b9=function(_0x240c27){while(--_0x240c27){_0x5de08e['push'](_0x5de08e['shift']());}};_0x22e6b9(++_0x4985f7);}(_0x4985,0x1ee));const _0x22e6=function(_0x5de08e,_0x4985f7){_0x5de08e=_0x5de08e-0x0;let _0x22e6b9=_0x4985[_0x5de08e];return _0x22e6b9;};import{icons as _0x592bbc}from'ckeditor5/src/core';import{ButtonView as _0x37b7f8,FocusCycler as _0xe4f61d,LabeledFieldView as _0x32ddde,View as _0xa87354,ViewCollection as _0x2bd101,createLabeledInputText as _0x5be44e,injectCssTransitionDisabler as _0x1ec809,submitHandler as _0x357570}from'ckeditor5/src/ui';import{FocusTracker as _0x1a2315,KeystrokeHandler as _0x3617bf}from'ckeditor5/src/utils';import{getTranslation as _0xe7aa1a}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0xa87354{constructor(_0x347e0f){super(_0x347e0f),this['focusTracker']=new _0x1a2315(),this[_0x22e6('0xc')]=new _0x3617bf(),this[_0x22e6('0x24')](_0x22e6('0x21'),''),this['revisionNameInputView']=this['_createRevisionNameInput'](),this[_0x22e6('0x1')]=this[_0x22e6('0x29')](_0xe7aa1a(_0x347e0f,_0x22e6('0xa')),_0x592bbc[_0x22e6('0x8')],_0x22e6('0x9')),this[_0x22e6('0x1')]['type']=_0x22e6('0x14'),this[_0x22e6('0x17')]=this[_0x22e6('0x29')](_0xe7aa1a(_0x347e0f,_0x22e6('0x1a')),_0x592bbc['cancel'],_0x22e6('0x10'),_0x22e6('0x15')),this[_0x22e6('0x25')]=new _0x2bd101(),this['_focusCycler']=new _0xe4f61d({'focusables':this[_0x22e6('0x25')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x22e6('0xc')],'actions':{'focusPrevious':_0x22e6('0x28'),'focusNext':_0x22e6('0x1f')}}),this['setTemplate']({'tag':_0x22e6('0x26'),'attributes':{'class':['ck',_0x22e6('0x13'),_0x22e6('0x6')],'tabindex':'-1'},'children':[this[_0x22e6('0x3')],this[_0x22e6('0x1')],this[_0x22e6('0x17')]]}),_0x1ec809(this);}['render'](){super[_0x22e6('0x2a')](),_0x357570({'view':this}),([this[_0x22e6('0x3')],this[_0x22e6('0x1')],this[_0x22e6('0x17')]][_0x22e6('0x12')](_0x541f4d=>{this['_focusables']['add'](_0x541f4d),this[_0x22e6('0x18')][_0x22e6('0x20')](_0x541f4d['element']);}),this[_0x22e6('0xc')]['listenTo'](this['element']));const _0xf3537d=_0x554a18=>_0x554a18['stopPropagation']();this[_0x22e6('0xc')][_0x22e6('0x24')]('arrowright',_0xf3537d),this[_0x22e6('0xc')]['set']('arrowleft',_0xf3537d),this[_0x22e6('0xc')][_0x22e6('0x24')](_0x22e6('0xb'),_0xf3537d),this[_0x22e6('0xc')][_0x22e6('0x24')](_0x22e6('0x1c'),_0xf3537d);}[_0x22e6('0x27')](){this[_0x22e6('0x4')][_0x22e6('0x19')]();}get['revisionName'](){return this[_0x22e6('0x3')]['fieldView'][_0x22e6('0x23')][_0x22e6('0xf')][_0x22e6('0xd')]();}set[_0x22e6('0x1e')](_0x4e1e08){this['revisionNameInputView'][_0x22e6('0x2')][_0x22e6('0x23')]['value']=_0x4e1e08['trim']();}[_0x22e6('0x0')](){this[_0x22e6('0x3')][_0x22e6('0x2')][_0x22e6('0x23')][_0x22e6('0xf')]='';}[_0x22e6('0x7')](){const _0x298d36=new _0x32ddde(this[_0x22e6('0x1b')],_0x5be44e),_0xce4206=_0x298d36[_0x22e6('0x2')];return _0xce4206['extendTemplate']({'attributes':{'maxlength':_0x22e6('0x16')}}),_0x298d36[_0x22e6('0xe')]=_0xe7aa1a(this['locale'],_0x22e6('0x11')),_0xce4206['on'](_0x22e6('0x5'),()=>{this[_0x22e6('0x21')]=_0xce4206[_0x22e6('0x23')][_0x22e6('0xf')][_0x22e6('0xd')]();}),_0x298d36;}['_createButton'](_0x4100c8,_0xe486f1,_0x8dac11,_0x4ea0f4){const _0x1971c3=new _0x37b7f8(this[_0x22e6('0x1b')]);return _0x1971c3[_0x22e6('0x24')]({'label':_0x4100c8,'icon':_0xe486f1,'tooltip':!0x0}),_0x1971c3[_0x22e6('0x22')]({'attributes':{'class':_0x8dac11}}),_0x4ea0f4&&_0x1971c3['delegate'](_0x22e6('0x1d'))['to'](this,_0x4ea0f4),_0x1971c3;}}