@ckeditor/ckeditor5-revision-history 35.2.0 → 35.2.1
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.
- package/build/revision-history.js +1 -1
- package/package.json +7 -7
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5e48=['data','markerToData','compare','toModel','level','unshift','deletions','ck-suggestion-marker-split','isReady','isContent','pop','RevisionViewer','newRevisionId','slice','listenTo','_step','change:isEnabled','plugins','startsWith','createUIElement','config','loadRevisionData','nodeAfter','test','range','dataDowncast','isEqual','forward','elementToAttribute','revisionHistory','item','restoreRevisionCallback','bind','has','_appendChild','hasClass','destroy','_removeRevisionMarkers','upcast','catch','endIndex','ck-suggestion-marker--active','insertions','_markInsertions','_markMarkers','concat','type','_refreshStartEndIndex','uiElement','markerToHighlight','viewItem','removeMarker:revision-suggestion','addRevision','revisionHistoryLabel','dataToMarker','execute','attributes','removeMarker','_makeModelFromViewString','split','createPositionBefore','model','revision-viewer','insertion','toData','_initInteractions','target','useFillerType','unbindElementFromMarkerName','revision-comment:','backward','resolve','toViewPosition','revision-suggestion:','getRootNames','bindElementToMarker','pluginName','_setConversion','element','removeMarker:revision','_threeWayMerge','markerRange','_update','document','enableReadOnlyMode','suggestion:','low','_cleanMarkers','numberOfChanges','_markSuggestions','getRevision','_processTape','_cleanUp','parse','deletion','processor','get','name','change:activeView','markerName','editor','revision-suggestion','ck-suggestion-marker','markers','changes','schema','isBlock','length','activeChange','ck-suggestion-preview-marker-','getIndex','highest','_makeModelFromTape','removeClass','markersStart','span','_getDiff','_fixObsoleteTags','forEach','userId','children','ck-suggestion-marker-merge','set','getRoot','first','-new','_getViewForChange','vid_end','refresh','_setDistance','_findChangeIdFromDomTarget','enqueueChange','diff','oldRevisionId','values','text','isEnabled','startIndex','then','elementEnd','addClass','mapper','getChild','shift','conversion','createRange','_removeMissingPairs','getAttribute','_markMismatchedRemovedTags','getAttributes','writer','stop','ck-suggestion-marker-','index','currentChangeNumber','ck-editor__editable__overlay','delete','maxOffset','createRangeIn','abs','for','addHighlight','_setData','getWalker','revision','filter','insert','done','attribute:vid','repository','vid','roots','_getChangeFromId','editing','_revisions','modelRange','_makeTape','map','_getViewObj','createPositionFromPath','commands','previousPosition','addMarker:revision-suggestion:insertion','elementStart','setData','activeView','consumable','markerNameToElements','isAdded','setAttribute','clear','_getRevisionsRange','mousedown','readOnlyMode','showPreviousChange','downcastDispatcher','high','change:activeChange','sort','toViewElement','isIncorrect','merge','view','markersEnd','change:isReadOnly','selection','marked','distance','requires','_removeUnsupportedChanges','object','start','change:numberOfChanges','from','vid_start','data-change-id','revision:','default','diffData','keys','_changeView','isObject','clearForceDisabled','addMarker:revision','toViewRange','consume','_balloon','parent','all','collaboration.channelId','ck-suggestion-preview-marker','getCustomProperty','string','revision-start','next','isCollapsed','change','softBreak','isLimit','nextSibling','data-revision-','authors','wrap','change:isReady','isRemoved','add','comment','editingDowncast','remove','isRemoveSuggestion','_joinTapes','isAddSuggestion','_target','createRevision','end','addRevisionData','revision-end','pairId','isAfter','splice','isSuggestion','side','push','_changeIdToChange'];(function(_0x104931,_0x5e48c2){const _0x1447df=function(_0x1164dc){while(--_0x1164dc){_0x104931['push'](_0x104931['shift']());}};_0x1447df(++_0x5e48c2);}(_0x5e48,0xa8));const _0x1447=function(_0x104931,_0x5e48c2){_0x104931=_0x104931-0x0;let _0x1447df=_0x5e48[_0x104931];return _0x1447df;};import{Plugin as _0x119551,Command as _0xce060f}from'ckeditor5/src/core';import{ObservableMixin as _0x14a170,mix as _0x4d7bf0,scrollViewportToShowTarget as _0x1354e1}from'ckeditor5/src/utils';import{ContextualBalloon as _0x5faf91}from'ckeditor5/src/ui';import{DocumentFragment as _0x4f3d5d,Element as _0x41d9f3,Text as _0x4243fd,ViewDocumentFragment as _0xaca2cd,ViewText as _0x4ce46f,ViewElement as _0x213d3b,ViewContainerElement as _0x3844ce,ViewAttributeElement as _0x574b15,ViewEmptyElement as _0x3af1f5,ViewRawElement as _0x1fbfc4,ViewUIElement as _0x291c78}from'ckeditor5/src/engine';import{Users as _0x49b57b,getMarkerDomElement as _0x2f5dfb}from'ckeditor5-collaboration/src/collaboration-core';import _0x30668c from'./ui/revisionviewer/changedetailsview';import _0x97c9e4 from'./revisionsrepository';import _0x5b9455 from'./changeitem';import _0x72f360 from'./revisiondiff';import'../theme/revisionviewer.css';const Y={'c':_0x3844ce,'a':_0x574b15,'e':_0x3af1f5,'r':_0x1fbfc4,'u':_0x291c78};export default class d extends _0x119551{static get[_0x1447('0xac')](){return _0x1447('0x6b');}static get[_0x1447('0x28')](){return[_0x49b57b,_0x5faf91,_0x97c9e4];}constructor(..._0x302434){super(..._0x302434),this[_0x1447('0x1')]=this['editor']['plugins'][_0x1447('0xc0')]('RevisionsRepository'),this['set'](_0x1447('0xcc'),null),this['set'](_0x1447('0x11'),null),this[_0x1447('0xda')](_0x1447('0xe4'),null),this['set'](_0x1447('0x68'),!0x1),this['set'](_0x1447('0xe8'),!0x0),this['on'](_0x1447('0x70'),(_0x32fb77,_0x42883a,_0x2f26dd)=>{this[_0x1447('0xcc')]=null,this[_0x1447('0x11')]=null,this['editor']['editing'][_0x1447('0x22')][_0x1447('0x44')](_0x390f4b=>{for(const _0x3ccf86 of this[_0x1447('0xc4')][_0x1447('0x5')][_0x1447('0x22')][_0x1447('0xb3')][_0x1447('0x3')])_0x2f26dd?_0x390f4b[_0x1447('0xd1')](_0x1447('0xfb'),_0x3ccf86):_0x390f4b['addClass']('ck-editor__editable__overlay',_0x3ccf86);});}),this['bind']('isNavigationMode')['to'](this,_0x1447('0xcc'),_0x380f23=>null!==_0x380f23),this[_0x1447('0x80')](_0x1447('0xfa'))['to'](this,_0x1447('0x68'),this,_0x1447('0xe4'),this,_0x1447('0xcc'),(_0x1fb044,_0x50270e,_0x14e0dc)=>_0x1fb044&&_0x14e0dc?_0x50270e[_0x1447('0xc8')]['getIndex'](_0x14e0dc):0x0),this[_0x1447('0x80')](_0x1447('0xb8'))['to'](this,_0x1447('0x68'),this,_0x1447('0xe4'),(_0x49974c,_0x2de182)=>_0x49974c?_0x2de182[_0x1447('0xc8')]['length']:0x0),this['_changeView']=null,this[_0x1447('0x5f')]=new Map(),this['adapter']=null,this[_0x1447('0x3a')]=this[_0x1447('0xc4')][_0x1447('0x71')][_0x1447('0xc0')](_0x5faf91);}['init'](){const _0x2b75fa=this['editor'],_0xc4a5fc=new et(_0x2b75fa,{'direction':_0x1447('0xa6')}),_0x4cf841=new et(_0x2b75fa,{'direction':_0x1447('0x7b')});_0x2b75fa[_0x1447('0xc')][_0x1447('0x4d')](_0x1447('0x1a'),_0xc4a5fc),_0x2b75fa[_0x1447('0xc')][_0x1447('0x4d')]('showNextChange',_0x4cf841),_0x2b75fa[_0x1447('0xc')]['add']('restoreRevision',new tt(_0x2b75fa)),this['on'](_0x1447('0x2c'),()=>{_0xc4a5fc[_0x1447('0xe0')](),_0x4cf841['refresh']();}),this[_0x1447('0xad')](),this['_initInteractions'](),_0x2b75fa[_0x1447('0xb4')](_0x1447('0x9e'));}async['getRevisionData'](_0x55c022){await this[_0x1447('0x75')](_0x55c022);const _0x2faf6f={};for(const _0x8c3d3a in _0x55c022['diffData']){const _0x2ea1f9=this[_0x1447('0x85')](JSON[_0x1447('0xbd')](_0x55c022[_0x1447('0x32')][_0x8c3d3a][_0x1447('0x8a')])),_0xcd6701=this[_0x1447('0xc4')]['editing'][_0x1447('0x22')][_0x1447('0xb3')],_0x9c8c9f=new _0xaca2cd(_0xcd6701,_0x2ea1f9['map'](_0x11050f=>this[_0x1447('0xa')](_0x11050f)));this[_0x1447('0xc4')]['data'][_0x1447('0xbf')][_0x1447('0xa3')](_0x1447('0x26')),_0x2faf6f[_0x8c3d3a]=this[_0x1447('0xc4')][_0x1447('0x60')][_0x1447('0xbf')][_0x1447('0xa0')](_0x9c8c9f),this[_0x1447('0xc4')][_0x1447('0x60')][_0x1447('0xbf')][_0x1447('0xa3')](_0x1447('0x31'));}return _0x2faf6f;}[_0x1447('0x85')](_0x3d8f17){return(_0x3d8f17=_0x3d8f17['filter'](_0x287726=>!_0x287726[_0x1447('0xc1')]||_0x1447('0x41')!==_0x287726[_0x1447('0xc1')]&&_0x1447('0x58')!==_0x287726[_0x1447('0xc1')]))[_0x1447('0xd6')](_0x4827a9=>{_0x1447('0x40')!=typeof _0x4827a9&&(_0x4827a9[_0x1447('0xd8')]=this[_0x1447('0x85')](_0x4827a9[_0x1447('0xd8')]),_0x4827a9['attributes']=_0x4827a9[_0x1447('0x98')][_0x1447('0x105')](_0x671c1f=>!_0x671c1f[0x0][_0x1447('0x72')](_0x1447('0x48'))));}),_0x3d8f17;}[_0x1447('0x62')](_0x5d127c,_0x8700e6,_0x5601de=!0x1){if(!this[_0x1447('0xe8')])return;const _0x5d1472=this['diff'],_0x582984=this[_0x1447('0x1')],_0x4fd6e7=_0x1447('0x40')==typeof _0x5d127c?_0x582984[_0x1447('0xba')](_0x5d127c):_0x5d127c,_0xb400bf=_0x1447('0x40')==typeof _0x8700e6?_0x582984[_0x1447('0xba')](_0x8700e6):_0x8700e6,_0x568965=_0x4fd6e7['id'],_0x469d4f=_0xb400bf?_0xb400bf['id']:null;if(!_0x5601de&&this[_0x1447('0xe4')]&&this['diff'][_0x1447('0x6c')]===_0x568965&&this[_0x1447('0xe4')][_0x1447('0xe5')]===_0x469d4f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this[_0x1447('0xcc')]=null,this['diff']=new _0x72f360(_0x568965,_0x469d4f);const _0x4a8eb4=this[_0x1447('0x17')](_0x4fd6e7,_0xb400bf,!0x0)[_0x1447('0x9')](_0x106988=>this['loadRevisionData'](_0x106988));return _0x4a8eb4[_0x1447('0x5e')](new Promise(_0x1424b9=>{setTimeout(_0x1424b9,0x14);})),Promise[_0x1447('0x3c')](_0x4a8eb4)[_0x1447('0xea')](()=>{if(!this[_0x1447('0xe8')])return;this['_cleanUp']();const _0xef5569=this[_0x1447('0xd4')](_0x568965,_0x469d4f);this[_0x1447('0xe4')][_0x1447('0x102')](_0xef5569);for(const _0x3238f8 of this[_0x1447('0xe4')][_0x1447('0xc8')])this[_0x1447('0x5f')][_0x1447('0xda')](_0x3238f8['id'],_0x3238f8);this['editor'][_0x1447('0x9d')][_0x1447('0xe3')]({'isUndoable':!0x1},_0x578ea5=>{for(const _0x57559d of Object[_0x1447('0x33')](_0xef5569[_0x1447('0x9d')])){const _0x307339=this[_0x1447('0xc4')][_0x1447('0x9d')][_0x1447('0xb3')][_0x1447('0xdb')](_0x57559d);_0x578ea5[_0x1447('0x50')](_0x578ea5['createRangeIn'](_0x307339)),_0x578ea5[_0x1447('0x106')](_0xef5569['model'][_0x57559d],_0x307339,0x0);}}),this['isReady']=!0x0;})[_0x1447('0x87')](_0xafc900=>{console['error'](_0xafc900),this[_0x1447('0xbc')](),_0x5d1472?this['diff']=_0x5d1472:this[_0x1447('0xc4')][_0x1447('0x10')]('<p></p>'),this[_0x1447('0x68')]=!0x0;});}[_0x1447('0x84')](){this[_0x1447('0x11')]=null,this[_0x1447('0x34')]&&this['_changeView'][_0x1447('0x84')]();}[_0x1447('0x57')](_0x1d5465,_0x4a6dbf){const _0x39ce9b=this['repository'][_0x1447('0x55')](_0x1d5465);return _0x39ce9b['on'](_0x1447('0xb2'),(_0x3d82a3,_0x31f7ff,_0x206e3c)=>_0x4a6dbf(_0x31f7ff,_0x206e3c,_0x39ce9b)),this[_0x1447('0x1')][_0x1447('0x94')](_0x39ce9b),_0x39ce9b;}['loadRevisionData'](_0x21b28b){if(!_0x21b28b||_0x21b28b['diffData'])return Promise[_0x1447('0xa7')]();{const _0x5c7301=this[_0x1447('0xc4')][_0x1447('0x74')][_0x1447('0xc0')](_0x1447('0x3d'));return this['adapter'][_0x1447('0xba')]({'channelId':_0x5c7301,'revisionId':_0x21b28b['id']})[_0x1447('0xea')](_0x581a11=>{_0x21b28b['_update']({'diffData':_0x581a11[_0x1447('0x32')]},!0x0);});}}['_cleanUp'](){this[_0x1447('0xcc')]=null,this[_0x1447('0xb7')](),this[_0x1447('0x34')]&&this[_0x1447('0x34')][_0x1447('0x84')](),this[_0x1447('0x34')]=null,this[_0x1447('0x5f')][_0x1447('0x16')]();}[_0x1447('0x8')](_0x1c2971){const _0x4d66e0=Array[_0x1447('0x2d')](_0x1c2971['markers'])['filter'](([_0x1dba72,_0x262476])=>_0x1dba72['startsWith'](_0x1447('0x30'))&&!_0x262476[_0x1447('0x43')]),_0x584f25=Array[_0x1447('0x2d')](this[_0x1447('0xc4')]['model'][_0x1447('0xfe')](_0x1c2971)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4d66e0[_0x1447('0xcb')])for(const _0x449d78 of _0x584f25){const [_0xfa4853,_0x550d81]=_0x4d66e0[0x0],[,_0x16f79e,_0x8ea8f4]=_0xfa4853[_0x1447('0x9b')](':');if(_0x550d81[_0x1447('0x56')]['isEqual'](_0x449d78['nextPosition'])&&_0x4d66e0[_0x1447('0xef')](),(_0x449d78[_0x1447('0xd')]['isEqual'](_0x550d81[_0x1447('0x2b')])||_0x449d78[_0x1447('0xd')][_0x1447('0x5a')](_0x550d81[_0x1447('0x2b')]))&&(_0x1447('0x9f')==_0x16f79e?_0x449d78['isAdded']={'userId':_0x8ea8f4}:'deletion'==_0x16f79e&&(_0x449d78[_0x1447('0x4c')]={'userId':_0x8ea8f4})),0x0==_0x4d66e0['length'])break;}return _0x584f25;}[_0x1447('0x8f')](_0x169dac){const _0x5ed342=new Map();for(let _0x24118d=0x0;_0x24118d<_0x169dac[_0x1447('0xcb')];_0x24118d++)'text'===_0x169dac[_0x24118d][_0x1447('0x8e')]?(_0x169dac[_0x24118d][_0x1447('0x7e')][_0x1447('0xe9')]=_0x24118d,_0x169dac[_0x24118d][_0x1447('0x7e')][_0x1447('0x88')]=_0x24118d):(_0x1447('0xf')===_0x169dac[_0x24118d][_0x1447('0x8e')]?_0x169dac[_0x24118d][_0x1447('0x7e')]['startIndex']=_0x24118d:_0x1447('0xeb')===_0x169dac[_0x24118d][_0x1447('0x8e')]&&(_0x169dac[_0x24118d][_0x1447('0x7e')][_0x1447('0x88')]=_0x24118d),_0x5ed342[_0x1447('0xda')](_0x169dac[_0x24118d]['id'],_0x24118d));for(const _0x37a620 of _0x5ed342[_0x1447('0xe6')]())_0x1447('0xf')===_0x169dac[_0x37a620][_0x1447('0x8e')]?_0x169dac[_0x37a620][_0x1447('0x7e')][_0x1447('0x88')]=_0x5ed342[_0x1447('0xc0')](_0x169dac[_0x37a620]['pairId']):'elementEnd'===_0x169dac[_0x37a620][_0x1447('0x8e')]&&(_0x169dac[_0x37a620][_0x1447('0x7e')][_0x1447('0xe9')]=_0x5ed342['get'](_0x169dac[_0x37a620][_0x1447('0x59')]));}['_processTape'](_0x23fcec){for(let _0x40de8a=0x0;_0x40de8a<_0x23fcec[_0x1447('0xcb')];_0x40de8a++){if(_0x1447('0xf')===_0x23fcec[_0x40de8a][_0x1447('0x8e')])_0x23fcec[_0x40de8a]['item'][_0x1447('0xe9')]=_0x40de8a;else{if(_0x1447('0xeb')===_0x23fcec[_0x40de8a][_0x1447('0x8e')]){_0x23fcec[_0x40de8a]['item'][_0x1447('0x88')]=_0x40de8a;const _0x4ff760=_0x23fcec[_0x40de8a][_0x1447('0x7e')][_0x1447('0xe9')];_0x23fcec[_0x4ff760][_0x1447('0x59')]=_0x23fcec[_0x40de8a]['id'],_0x23fcec[_0x40de8a][_0x1447('0x59')]=_0x23fcec[_0x4ff760]['id'];}else _0x23fcec[_0x40de8a]['item'][_0x1447('0xe9')]=_0x40de8a,_0x23fcec[_0x40de8a][_0x1447('0x7e')][_0x1447('0x88')]=_0x40de8a,_0x23fcec[_0x40de8a][_0x1447('0x59')]=null;}_0x23fcec[_0x40de8a][_0x1447('0xd2')]||(_0x23fcec[_0x40de8a]['markersStart']=[],_0x23fcec[_0x40de8a][_0x1447('0x23')]=[]);}}[_0x1447('0x8b')](_0x39a97e,_0x2308f2){const _0x2136e7=_0x39a97e[_0x1447('0x105')](_0xbc3d3c=>!_0xbc3d3c[_0x1447('0x14')]);for(let _0x4aa487=0x0;_0x4aa487<_0x2308f2[_0x1447('0xcb')];_0x4aa487++)_0x2308f2[_0x4aa487]['isAdded']&&(_0x2136e7[_0x4aa487][_0x1447('0x14')]=_0x2308f2[_0x4aa487][_0x1447('0x14')]);}[_0x1447('0x9a')](_0x1f27c1){const _0xc176b7=JSON['parse'](_0x1f27c1),_0x2a8a36=this['editor'][_0x1447('0x5')][_0x1447('0x22')]['document'],_0x26b959=new _0xaca2cd(_0x2a8a36,_0xc176b7[_0x1447('0x9')](_0x24551e=>this['_getViewObj'](_0x24551e)));return this['editor'][_0x1447('0x60')][_0x1447('0x63')](_0x26b959);}[_0x1447('0xa')](_0x79ee0c){const _0x1dda7b=this[_0x1447('0xc4')][_0x1447('0x5')][_0x1447('0x22')][_0x1447('0xb3')];if(_0x1447('0x40')==typeof _0x79ee0c)return new _0x4ce46f(_0x1dda7b,_0x79ee0c);{const _0x253ecd=_0x79ee0c[_0x1447('0xd8')]['map'](_0x48d627=>this[_0x1447('0xa')](_0x48d627));return new(Y[_0x79ee0c['type']]||_0x213d3b)(_0x1dda7b,_0x79ee0c['name'],_0x79ee0c[_0x1447('0x98')],_0x253ecd);}}[_0x1447('0xd4')](_0x30ec25,_0xd769f2=null){const _0x5b15eb=this[_0x1447('0x1')]['getRevision'](_0x30ec25),_0xb6b22c=_0xd769f2?this['repository']['getRevision'](_0xd769f2):null,_0x1947d5=this[_0x1447('0x17')](_0x5b15eb,_0xb6b22c),_0x2fe433=_0x1947d5[_0x1947d5['length']-0x1],_0x4c3124=new Map();for(const _0x24daa9 of _0x1947d5){_0x24daa9[_0x1447('0x9d')]={};for(const _0x32f90f of _0x24daa9[_0x1447('0x49')])_0x4c3124[_0x1447('0xda')](_0x32f90f['id'],_0x32f90f);for(const _0x2d4bb7 of this[_0x1447('0xc4')]['model'][_0x1447('0xb3')][_0x1447('0xaa')]())_0x24daa9[_0x1447('0x32')][_0x2d4bb7]||(_0x24daa9[_0x1447('0x32')][_0x2d4bb7]={'insertions':'[]','deletions':'[]'}),_0x24daa9[_0x1447('0x9d')][_0x2d4bb7]={'insertions':this[_0x1447('0x9a')](_0x24daa9[_0x1447('0x32')][_0x2d4bb7][_0x1447('0x8a')]),'deletions':this[_0x1447('0x9a')](_0x24daa9[_0x1447('0x32')][_0x2d4bb7][_0x1447('0x66')])};}const _0x2fd371={'model':{},'changes':[]};for(const _0x4948db of this[_0x1447('0xc4')][_0x1447('0x9d')][_0x1447('0xb3')]['getRootNames']()){let _0x2c80d7=null,_0x43b28a=0x0;const _0xee298f=new Map(Array[_0x1447('0x2d')](_0x5b15eb[_0x1447('0x9d')][_0x4948db]['insertions'][_0x1447('0xc7')])['filter'](([_0x5260b2])=>!_0x5260b2[_0x1447('0x72')](_0x1447('0x30'))));let _0x5ef2ba=0x0;for(const _0x4782e1 of _0x1947d5){const _0x35d019=this['_makeTape'](_0x4782e1[_0x1447('0x9d')][_0x4948db][_0x1447('0x8a')]);_0x4782e1==_0x5b15eb?(_0x2c80d7=_0x35d019,_0x43b28a=_0x2c80d7[_0x1447('0xcb')],_0x2c80d7[_0x1447('0xd6')](_0xaacd9c=>{_0xaacd9c['id']=_0x5ef2ba++;}),this[_0x1447('0xbb')](_0x2c80d7)):this[_0x1447('0x8b')](_0x2c80d7,_0x35d019);const _0x21954e=_0x2c80d7['filter'](_0x20d6f3=>!_0x20d6f3['isAdded'])[_0x1447('0x9')](_0x2a203e=>_0x2a203e['id']);let _0x2300b8=0x0;const _0x150ffc=this['_makeTape'](_0x4782e1[_0x1447('0x9d')][_0x4948db][_0x1447('0x66')]);_0x150ffc[_0x1447('0xd6')](_0x4ce06d=>{_0x4ce06d[_0x1447('0x4c')]?_0x4ce06d['id']=_0x43b28a++:_0x4ce06d['id']=_0x21954e[_0x2300b8++];}),this['_processTape'](_0x150ffc),this[_0x1447('0xe1')](_0x2c80d7,_0x1447('0x14')),this['_setDistance'](_0x150ffc,_0x1447('0x4c')),_0x4782e1==_0x5b15eb&&this[_0x1447('0x8c')](_0x2c80d7,_0xee298f),_0x2c80d7=this[_0x1447('0x52')](_0x2c80d7,_0x150ffc),this[_0x1447('0x8f')](_0x2c80d7),this['_setDistance'](_0x2c80d7,'isRemoved');}_0x2c80d7=_0x2c80d7[_0x1447('0x105')](_0x167bac=>!(_0x167bac[_0x1447('0x14')]&&_0x167bac['isRemoved']));const _0x8ed02e=new Map(_0x2fe433[_0x1447('0x9d')][_0x4948db][_0x1447('0x66')][_0x1447('0xc7')]),_0x16473c=new Set(_0xee298f[_0x1447('0x33')]());for(const _0x528903 of _0x8ed02e[_0x1447('0x33')]())_0x16473c[_0x1447('0xfc')](_0x528903);this[_0x1447('0xb9')](_0x2c80d7,_0x16473c),this[_0x1447('0xd5')](_0x2c80d7),_0x2c80d7=this[_0x1447('0xf2')](_0x2c80d7),_0x2c80d7=this[_0x1447('0xf4')](_0x2c80d7),_0x2c80d7=this[_0x1447('0x29')](_0x2c80d7);const {root:_0x1bdd25,changes:_0x114a2f}=this[_0x1447('0xd0')](_0x2c80d7,_0x4c3124);_0x2fd371[_0x1447('0x9d')][_0x4948db]=_0x1bdd25,_0x2fd371[_0x1447('0xc8')]=_0x2fd371['changes'][_0x1447('0x8d')](_0x114a2f);}return _0x2fd371;}[_0x1447('0x8c')](_0x4745ce,_0x1f66ba){for(let _0x22f6b4=0x0;_0x22f6b4<_0x4745ce[_0x1447('0xcb')];_0x22f6b4++)for(const [_0x4eb349,_0x3ca3c1]of _0x1f66ba)_0x3ca3c1[_0x1447('0x2b')][_0x1447('0x7a')](_0x4745ce[_0x22f6b4][_0x1447('0xd')])&&_0x4745ce[_0x22f6b4][_0x1447('0xd2')]['push'](_0x4eb349),_0x3ca3c1[_0x1447('0x56')][_0x1447('0x7a')](_0x4745ce[_0x22f6b4]['nextPosition'])&&_0x4745ce[_0x22f6b4][_0x1447('0x23')][_0x1447('0x5e')](_0x4eb349);}['_joinTapes'](_0x49c70f,_0x40d117){let _0x517c42=[],_0x27132a=0x0,_0x5af804=0x0;for(;_0x27132a<_0x49c70f[_0x1447('0xcb')]||_0x5af804<_0x40d117[_0x1447('0xcb')];){const _0x246c41=_0x49c70f[_0x27132a]||{},_0x5a4aff=_0x40d117[_0x5af804]||{};if(_0x246c41['id']==_0x5a4aff['id'])_0x27132a++,_0x5af804++,_0x517c42[_0x1447('0x5e')](_0x246c41);else{if(_0x5a4aff[_0x1447('0x4c')]&&_0x246c41['isAdded']){const {commonTape:_0x209916,iEnd:_0x220d8e,jEnd:_0x5f12ab}=this[_0x1447('0xb0')](_0x49c70f,_0x27132a,_0x40d117,_0x5af804);_0x517c42=_0x517c42[_0x1447('0x8d')](_0x209916),_0x27132a=_0x220d8e,_0x5af804=_0x5f12ab;}else _0x5a4aff['isRemoved']?(_0x5af804++,_0x517c42[_0x1447('0x5e')](_0x5a4aff)):(_0x27132a++,_0x517c42[_0x1447('0x5e')](_0x246c41));}}return _0x517c42;}['_markSuggestions'](_0x57d568,_0x36c076){const _0x59f4d3=[];for(let _0x4ece30=0x0;_0x4ece30<_0x57d568[_0x1447('0xcb')];_0x4ece30++){for(let _0x19db34=0x0;_0x19db34<_0x57d568[_0x4ece30][_0x1447('0xd2')][_0x1447('0xcb')];_0x19db34++){const _0x1d1331=_0x57d568[_0x4ece30][_0x1447('0xd2')][_0x19db34];if(!_0x36c076['has'](_0x1d1331))continue;const {group:_0x27e267,type:_0x151515,authorId:_0x367d6a}=_0x813f5f(_0x1d1331);'revision-suggestion'!=_0x27e267||_0x1447('0x9f')!=_0x151515&&_0x1447('0xbe')!=_0x151515||(_0x59f4d3['unshift']({'type':_0x151515,'name':_0x1d1331,'userId':_0x367d6a}),_0x57d568[_0x4ece30][_0x1447('0xd2')][_0x1447('0x5b')](_0x19db34,0x1),_0x19db34--);}_0xb1817b(_0x57d568[_0x4ece30]);for(let _0x392a6e=0x0;_0x392a6e<_0x57d568[_0x4ece30]['markersEnd']['length'];_0x392a6e++){const _0x1e469f=_0x57d568[_0x4ece30][_0x1447('0x23')][_0x392a6e];if(!_0x36c076['has'](_0x1e469f))continue;const {group:_0x2a1e17,type:_0x304f21}=_0x813f5f(_0x1e469f);if(_0x1447('0xc5')!=_0x2a1e17||_0x1447('0x9f')!=_0x304f21&&'deletion'!=_0x304f21)continue;_0x57d568[_0x4ece30][_0x1447('0x23')]['splice'](_0x392a6e,0x1),_0x392a6e--;const _0x1518d4=_0x59f4d3['findIndex'](_0x27617c=>_0x27617c['name']==_0x1e469f);_0x1518d4>-0x1&&_0x59f4d3[_0x1447('0x5b')](_0x1518d4,0x1);}}function _0x813f5f(_0x441171){const _0x1e8ac2=_0x441171[_0x1447('0x9b')](':');return{'group':_0x1e8ac2[0x0],'type':_0x1e8ac2[0x1],'subType':_0x1e8ac2[_0x1447('0xcb')]>=0x5?_0x1e8ac2[0x2]:null,'id':_0x1e8ac2[_0x1447('0xcb')]<0x5?_0x1e8ac2[0x2]:_0x1e8ac2[0x3],'authorId':_0x1e8ac2[_0x1447('0xcb')]<0x5?_0x1e8ac2[0x3]:_0x1e8ac2[0x4],'markerCount':0x6==_0x1e8ac2[_0x1447('0xcb')]?_0x1e8ac2[0x5]:null};}function _0xb1817b(_0x5f2666){for(let _0x5e787c=0x0;_0x5e787c<_0x59f4d3[_0x1447('0xcb')];_0x5e787c++){if(_0x5f2666['isAdded']&&_0x1447('0x9f')==_0x59f4d3[_0x5e787c][_0x1447('0x8e')])return _0x5f2666['isAddSuggestion']=_0x59f4d3[_0x5e787c],void delete _0x5f2666[_0x1447('0x14')];if(!_0x5f2666[_0x1447('0x14')]&&!_0x5f2666['isRemoved']&&_0x1447('0xbe')==_0x59f4d3[_0x5e787c][_0x1447('0x8e')])return void(_0x5f2666[_0x1447('0x51')]=_0x59f4d3[_0x5e787c]);}}}[_0x1447('0xe1')](_0x2c2fdd,_0x556589){let _0xee5955=0x0,_0x4fbda5=!0x1;const _0x1ae1ce=new Map();for(const _0x4db55a of _0x2c2fdd)_0x4db55a[_0x556589]?_0x4fbda5&&(_0xee5955++,_0x4fbda5=!0x1):(_0xee5955++,_0x4fbda5=!0x0),_0x1ae1ce[_0x1447('0xda')](_0x4db55a['id'],_0xee5955);for(let _0x219372=0x0;_0x219372<_0x2c2fdd[_0x1447('0xcb')];_0x219372++){if(_0x1447('0x4c')==_0x556589&&_0x2c2fdd[_0x219372]['isAdded']||'isAdded'==_0x556589&&_0x2c2fdd[_0x219372][_0x1447('0x4c')])continue;if(_0x1447('0xe7')==_0x2c2fdd[_0x219372][_0x1447('0x8e')]){_0x2c2fdd[_0x219372][_0x1447('0x27')]=0x0;continue;}const _0x28e92d=_0x1ae1ce[_0x1447('0xc0')](_0x2c2fdd[_0x219372][_0x1447('0x59')]),_0x1494f0=_0x1ae1ce[_0x1447('0xc0')](_0x2c2fdd[_0x219372]['id']);_0x2c2fdd[_0x219372][_0x1447('0x27')]=_0x28e92d-_0x1494f0;}}[_0x1447('0x17')](_0x499c1d,_0x1f05f9,_0x41ee3e=!0x1){const _0x333bbf=[];let _0x530558=this['repository'][_0x1447('0xce')](_0x499c1d),_0xdd03b8=this[_0x1447('0x1')]['getIndex'](_0x1f05f9);for(-0x1==_0xdd03b8&&(_0xdd03b8=this['repository'][_0x1447('0x6')]['length'],_0x41ee3e=!0x1);_0x530558<_0xdd03b8;)_0x333bbf[_0x1447('0x5e')](this['repository'][_0x1447('0xba')](_0x530558)),_0x530558++;return _0x41ee3e&&_0x333bbf[_0x1447('0x5e')](this['repository']['getRevision'](_0x530558)),_0x333bbf;}[_0x1447('0xb0')](_0x4bc32b,_0x481e75,_0x59bf94,_0x4483e8){const _0x1469d1=this[_0x1447('0xc4')][_0x1447('0x9d')]['schema'];let _0x4812ea=_0x481e75;for(;_0x4bc32b[_0x4812ea]&&_0x4bc32b[_0x4812ea][_0x1447('0x14')];)_0x4812ea++;let _0x149f6b=_0x4483e8;for(;_0x59bf94[_0x149f6b]&&_0x59bf94[_0x149f6b][_0x1447('0x4c')];)_0x149f6b++;_0x2a8da2(_0x4bc32b,_0x481e75,_0x4812ea),_0x2a8da2(_0x59bf94,_0x4483e8,_0x149f6b);const _0x46860c=_0x59bf94[_0x1447('0x6d')](_0x4483e8,_0x149f6b)['concat'](_0x4bc32b[_0x1447('0x6d')](_0x481e75,_0x4812ea));return _0x46860c[_0x1447('0x1e')]((_0x5c244d,_0x5f2a0a)=>_0x5c244d['side']!=_0x5f2a0a[_0x1447('0x5d')]?_0x5c244d[_0x1447('0x5d')]-_0x5f2a0a[_0x1447('0x5d')]:_0x5c244d[_0x1447('0x64')]!=_0x5f2a0a[_0x1447('0x64')]?_0x5c244d[_0x1447('0x64')]-_0x5f2a0a[_0x1447('0x64')]:_0x5c244d[_0x1447('0x27')]!=_0x5f2a0a['distance']?_0x5f2a0a[_0x1447('0x27')]-_0x5c244d['distance']:!!_0x5c244d[_0x1447('0x14')]!=!!_0x5f2a0a[_0x1447('0x14')]?-0x1==_0x5c244d[_0x1447('0x5d')]||0x0==_0x5c244d[_0x1447('0x5d')]?_0x5c244d[_0x1447('0x14')]?-0x1:0x1:_0x5c244d[_0x1447('0x14')]?0x1:-0x1:_0x5c244d[_0x1447('0xf9')]-_0x5f2a0a['index']),{'commonTape':_0x46860c,'iEnd':_0x4812ea,'jEnd':_0x149f6b};function _0x2a8da2(_0x4f637e,_0x5e9607,_0x318999){let _0x203d20=-0x1,_0x28bfea=Number['POSITIVE_INFINITY'],_0x4b63ce=!0x0;for(let _0x30e60b=_0x5e9607;_0x30e60b<_0x318999;_0x30e60b++)if(_0x1469d1['isInline'](_0x4f637e[_0x30e60b][_0x1447('0x7e')])||(_0x4b63ce=!0x1),_0x4f637e[_0x30e60b][_0x1447('0x7e')][_0x1447('0xe9')]<_0x5e9607&&(_0x203d20=_0x30e60b),_0x4f637e[_0x30e60b][_0x1447('0x7e')]['endIndex']>=_0x318999){_0x28bfea=_0x30e60b;break;}_0x4b63ce&&(_0x203d20=_0x318999-0x1);for(let _0x588774=_0x5e9607;_0x588774<_0x318999;_0x588774++)_0x4f637e[_0x588774]['side']=_0x588774<=_0x203d20?-0x1:_0x588774<_0x28bfea?0x0:0x1,_0x4f637e[_0x588774][_0x1447('0xf9')]=_0x588774;let _0xd08eb=0x0;for(let _0x1ef764=_0x5e9607;_0x1ef764<=_0x203d20;_0x1ef764++)0x0==_0x4f637e[_0x1ef764][_0x1447('0x27')]?_0x4f637e[_0x1ef764][_0x1447('0x64')]=_0xd08eb:(_0xd08eb++,_0x4f637e[_0x1ef764][_0x1447('0x64')]=_0xd08eb,_0xd08eb++);for(let _0x20a698=_0x5e9607;_0x20a698<_0x318999;_0x20a698++)0x0==_0x4f637e[_0x20a698]['side']&&(_0x4f637e[_0x20a698]['level']=_0xd08eb);_0xd08eb=0x0;for(let _0x32bc00=_0x318999-0x1;_0x32bc00>=_0x28bfea;_0x32bc00--)0x0==_0x4f637e[_0x32bc00]['distance']?_0x4f637e[_0x32bc00][_0x1447('0x64')]=_0xd08eb:(_0xd08eb--,_0x4f637e[_0x32bc00][_0x1447('0x64')]=_0xd08eb,_0xd08eb--);}}[_0x1447('0xd5')](_0x407be4){const _0xeb5a2f=new Map(),_0x3230c2=this[_0x1447('0xc4')][_0x1447('0x9d')][_0x1447('0xc9')];for(let _0x11570d=0x1;_0x11570d<_0x407be4['length'];_0x11570d++){let _0x484a20,_0x3c6b84,_0x2aa548;const _0x3dd50f=_0x407be4[_0x11570d],_0x5d4f8e=_0x407be4[_0x11570d-0x1];if('text'==_0x3dd50f['type'])continue;if(_0x3dd50f[_0x1447('0x8e')]!=_0x5d4f8e[_0x1447('0x8e')])continue;if(!_0x3230c2[_0x1447('0xca')](_0x5d4f8e[_0x1447('0x7e')])||_0x3230c2['isLimit'](_0x5d4f8e[_0x1447('0x7e')]))continue;if(!_0x3230c2[_0x1447('0xca')](_0x3dd50f['item'])||_0x3230c2[_0x1447('0x46')](_0x3dd50f['item']))continue;if((_0x407be4[_0x11570d]['isAdded']||_0x407be4[_0x11570d][_0x1447('0x53')])&&_0x407be4[_0x11570d-0x1][_0x1447('0x4c')])_0x484a20=_0x407be4[_0x11570d],_0x3c6b84=_0x407be4[_0x11570d-0x1],_0x2aa548=_0x11570d-0x1;else{if(!_0x407be4[_0x11570d]['isRemoved']||!_0x407be4[_0x11570d-0x1]['isAdded']&&!_0x407be4[_0x11570d-0x1][_0x1447('0x53')])continue;_0x484a20=_0x407be4[_0x11570d-0x1],_0x3c6b84=_0x407be4[_0x11570d],_0x2aa548=_0x11570d;}const _0x231a00=_0x484a20['level']==_0x3c6b84[_0x1447('0x64')],_0x545078=Math[_0x1447('0xff')](_0x484a20['level'])<Math['abs'](_0x3c6b84[_0x1447('0x64')])&&0x0==_0x3c6b84[_0x1447('0x27')];(_0x231a00||_0x545078)&&(_0xeb5a2f[_0x1447('0xda')](_0x3c6b84['id'],_0x484a20['id']),_0x407be4[_0x1447('0x5b')](_0x2aa548,0x1),_0x11570d--,_0x484a20[_0x1447('0x14')]=!0x1);}for(let _0x364659=0x0;_0x364659<_0x407be4[_0x1447('0xcb')];_0x364659++)_0xeb5a2f[_0x1447('0x81')](_0x407be4[_0x364659][_0x1447('0x59')])&&(_0x407be4[_0x364659][_0x1447('0x59')]=_0xeb5a2f['get'](_0x407be4[_0x364659][_0x1447('0x59')]));}[_0x1447('0xf2')](_0x562e2b){const _0x5bff2a=new Set(_0x562e2b[_0x1447('0x9')](_0x18ec97=>_0x18ec97['id']));for(let _0x590518=0x0;_0x590518<_0x562e2b['length'];_0x590518++)_0x5bff2a[_0x1447('0x81')](_0x562e2b[_0x590518][_0x1447('0x59')])||0x0==_0x562e2b[_0x590518][_0x1447('0x27')]||(_0x562e2b[_0x590518][_0x1447('0x20')]=!0x0);return _0x562e2b[_0x1447('0x105')](_0x5897f7=>!_0x5897f7['isIncorrect']);}[_0x1447('0xf4')](_0x268ea4){const _0x52c5d8=new Set();for(let _0x44f893=0x0;_0x44f893<_0x268ea4[_0x1447('0xcb')];_0x44f893++){if(_0x52c5d8['has'](_0x268ea4[_0x44f893]['id'])&&_0x268ea4[_0x44f893][_0x1447('0x4c')]&&(_0x268ea4[_0x44f893]['isIncorrect']=!0x0),_0x268ea4[_0x44f893][_0x1447('0x20')])continue;if(0x0==_0x268ea4[_0x44f893][_0x1447('0x27')])continue;if('elementStart'!=_0x268ea4[_0x44f893][_0x1447('0x8e')])continue;if(null==_0x268ea4[_0x44f893]['pairId'])continue;let _0x3c2f7b=_0x44f893+0x1,_0x509325=0x0;for(;_0x268ea4[_0x3c2f7b]['id']!=_0x268ea4[_0x44f893]['pairId'];)'elementStart'==_0x268ea4[_0x3c2f7b][_0x1447('0x8e')]?_0x509325++:_0x1447('0xeb')==_0x268ea4[_0x3c2f7b][_0x1447('0x8e')]&&_0x509325--,_0x3c2f7b++;if(0x0!=_0x509325){if(_0x268ea4[_0x44f893][_0x1447('0x4c')])_0x268ea4[_0x44f893][_0x1447('0x20')]=!0x0;else for(;_0x3c2f7b!=_0x44f893;)_0x268ea4[_0x3c2f7b]['isRemoved']&&0x0!=_0x268ea4[_0x3c2f7b]['distance']&&(_0x268ea4[_0x3c2f7b][_0x1447('0x20')]=!0x0,_0x52c5d8['add'](_0x268ea4[_0x3c2f7b]['pairId'])),_0x3c2f7b--;}}return _0x268ea4['filter'](_0x1c7f67=>!_0x1c7f67[_0x1447('0x20')]);}[_0x1447('0x29')](_0x14d277){const _0x232daa=this[_0x1447('0xc4')][_0x1447('0x9d')][_0x1447('0xc9')];for(let _0x97656e=0x0;_0x97656e<_0x14d277[_0x1447('0xcb')];_0x97656e++){if(!(_0x14d277[_0x97656e][_0x1447('0x14')]||_0x14d277[_0x97656e][_0x1447('0x53')]||_0x14d277[_0x97656e]['isRemoved']||_0x14d277[_0x97656e][_0x1447('0x51')]))continue;if(0x0==_0x14d277[_0x97656e][_0x1447('0x27')])continue;const _0x24df37=_0x14d277[_0x97656e][_0x1447('0x7e')];_0x232daa['isBlock'](_0x24df37)||_0x232daa['isLimit'](_0x24df37)||(_0x14d277[_0x97656e][_0x1447('0x14')]&&delete _0x14d277[_0x97656e][_0x1447('0x14')],_0x14d277[_0x97656e][_0x1447('0x53')]&&delete _0x14d277[_0x97656e][_0x1447('0x53')],_0x14d277[_0x97656e][_0x1447('0x51')]&&delete _0x14d277[_0x97656e]['isRemoveSuggestion'],_0x14d277[_0x97656e][_0x1447('0x4c')]&&(_0x14d277[_0x97656e][_0x1447('0x20')]=!0x0));}return _0x14d277[_0x1447('0x105')](_0x1ca631=>!_0x1ca631[_0x1447('0x20')]);}[_0x1447('0xd0')](_0x4e7293,_0x28eea8){const _0x954835=new _0x4f3d5d(),_0x24c262=[],_0x5f3cac=new Map(),_0x21aba5=this['editor'][_0x1447('0x9d')],_0x19d351=_0x21aba5[_0x1447('0xc9')],_0x4534b8=[_0x954835],_0x12fbab={},_0x4d37b7={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1ab496=null;const _0x42fd1e=[0x0];for(let _0xdc951=0x0;_0xdc951<_0x4e7293['length'];_0xdc951++){let _0x338fa6,_0x4d9520;if(_0x1447('0xf')===_0x4e7293[_0xdc951][_0x1447('0x8e')]){_0x338fa6=_0x21aba5[_0x1447('0xb')](_0x954835,_0x42fd1e);const _0x2d50e3=new _0x41d9f3(_0x4e7293[_0xdc951]['item']['name'],_0x4e7293[_0xdc951]['item']['getAttributes']());_0x4534b8[0x0]['_appendChild'](_0x2d50e3),_0x42fd1e[_0x1447('0x5e')](0x0),_0x4534b8[_0x1447('0x65')](_0x2d50e3),_0x4d9520=_0x21aba5[_0x1447('0xb')](_0x954835,_0x42fd1e),_0x1ab496=null;}else{if(_0x1447('0xeb')===_0x4e7293[_0xdc951][_0x1447('0x8e')])_0x4534b8[_0x1447('0xef')](),_0x338fa6=_0x21aba5[_0x1447('0xb')](_0x954835,_0x42fd1e),_0x42fd1e[_0x1447('0x6a')](),_0x42fd1e[_0x42fd1e[_0x1447('0xcb')]-0x1]++,_0x4d9520=_0x21aba5[_0x1447('0xb')](_0x954835,_0x42fd1e),_0x1ab496=null;else{if(_0x338fa6=_0x21aba5[_0x1447('0xb')](_0x954835,_0x42fd1e),_0x1ab496&&_0x5dfbd6(_0x1ab496,_0x4e7293[_0xdc951]['item']))_0x1ab496['_data']+=_0x4e7293[_0xdc951][_0x1447('0x7e')][_0x1447('0x60')];else{const _0x2f7b73=new _0x4243fd(_0x4e7293[_0xdc951]['item'][_0x1447('0x60')],_0x4e7293[_0xdc951]['item']['getAttributes']());_0x4534b8[0x0][_0x1447('0x82')](_0x2f7b73),_0x1ab496=_0x2f7b73;}_0x42fd1e[_0x42fd1e['length']-0x1]+=_0x4e7293[_0xdc951]['item']['offsetSize'],_0x4d9520=_0x21aba5[_0x1447('0xb')](_0x954835,_0x42fd1e);}}for(const _0x1e0330 of _0x4e7293[_0xdc951]['markersStart'])_0x5f3cac[_0x1447('0xda')](_0x1e0330,{'start':_0x338fa6,'end':null});_0x1f98ad('isRemoveSuggestion',_0xdc951,_0x338fa6,_0x4d9520),_0x1f98ad(_0x1447('0x53'),_0xdc951,_0x338fa6,_0x4d9520),_0x1f98ad(_0x1447('0x4c'),_0xdc951,_0x338fa6,_0x4d9520),_0x1f98ad(_0x1447('0x14'),_0xdc951,_0x338fa6,_0x4d9520);for(const _0x1c358f of _0x4e7293[_0xdc951][_0x1447('0x23')]){_0x5f3cac[_0x1447('0xc0')](_0x1c358f)[_0x1447('0x56')]=_0x4d9520;}}for(const [_0x3440ce,_0x5f1b36]of _0x5f3cac){const _0xc01644=this[_0x1447('0xc4')][_0x1447('0x9d')][_0x1447('0xf1')](_0x5f1b36[_0x1447('0x2b')],_0x5f1b36[_0x1447('0x56')]);_0x954835['markers'][_0x1447('0xda')](_0x3440ce,_0xc01644);}return _0x24c262['sort']((_0x4ad596,_0x3c46aa)=>{const _0x1b644f=_0x954835[_0x1447('0xc7')][_0x1447('0xc0')]('revision:'+_0x4ad596['id']),_0x497bb8=_0x954835[_0x1447('0xc7')][_0x1447('0xc0')](_0x1447('0x30')+_0x3c46aa['id']);return _0x1b644f['start']['isBefore'](_0x497bb8[_0x1447('0x2b')])?-0x1:_0x1b644f[_0x1447('0x2b')][_0x1447('0x5a')](_0x497bb8[_0x1447('0x2b')])?0x1:_0x1b644f['end']['isBefore'](_0x497bb8[_0x1447('0x56')])?-0x1:_0x1b644f[_0x1447('0x56')][_0x1447('0x5a')](_0x497bb8[_0x1447('0x56')])?0x1:'add'===_0x4ad596['type']?-0x1:0x1;}),{'root':_0x954835,'changes':_0x24c262};function _0x1f98ad(_0x258f6d,_0xaf7c73,_0x91fa,_0xf3cdd1){const _0x49d829=!!_0x4e7293[_0xaf7c73][_0x258f6d],_0x574e7a=_0x49d829?_0x4e7293[_0xaf7c73][_0x258f6d][_0x1447('0xd7')]:null,_0x33aae7=_0xaf7c73===_0x4e7293[_0x1447('0xcb')]-0x1,_0x4611a3=_0x4d37b7[_0x258f6d][0x0],_0x43961a=_0x19d351[_0x1447('0x35')](_0x4e7293[_0xaf7c73][_0x1447('0x7e')]);!_0x12fbab[_0x258f6d]&&_0x49d829?_0x12fbab[_0x258f6d]={'start':_0x91fa,'tapeItem':_0x4e7293[_0xaf7c73],'userId':_0x574e7a,'type':_0x258f6d}:_0x12fbab[_0x258f6d]&&!_0x49d829?(_0x12fbab[_0x258f6d][_0x1447('0x56')]=_0x91fa,_0x4d66a6(_0x12fbab[_0x258f6d]),_0x12fbab[_0x258f6d]=null):_0x12fbab[_0x258f6d]&&_0x49d829&&_0x12fbab[_0x258f6d][_0x1447('0xd7')]!==_0x574e7a&&(_0x12fbab[_0x258f6d][_0x1447('0x56')]=_0x91fa,_0x4611a3&&_0x4611a3['userId']===_0x12fbab[_0x258f6d]['userId']||_0x4d66a6(_0x12fbab[_0x258f6d]),_0x12fbab[_0x258f6d]={'start':_0x91fa,'tapeItem':_0x4e7293[_0xaf7c73],'userId':_0x574e7a,'type':_0x258f6d}),_0x12fbab[_0x258f6d]&&_0x43961a&&(_0x1447('0xf')!==_0x4e7293[_0xaf7c73][_0x1447('0x8e')]||_0x4611a3&&_0x4611a3[_0x1447('0xd7')]===_0x574e7a||_0x4d37b7[_0x258f6d][_0x1447('0x65')]({'userId':_0x574e7a,'object':_0x4e7293[_0xaf7c73][_0x1447('0x7e')],'change':_0x12fbab[_0x258f6d]}),_0x1447('0xeb')===_0x4e7293[_0xaf7c73][_0x1447('0x8e')]&&_0x4611a3&&_0x4611a3[_0x1447('0x2a')]===_0x4e7293[_0xaf7c73][_0x1447('0x7e')]&&(_0x4d37b7[_0x258f6d][_0x1447('0xef')](),_0x12fbab[_0x258f6d]=_0x4611a3[_0x1447('0x44')])),_0x12fbab[_0x258f6d]&&_0x33aae7&&(_0x12fbab[_0x258f6d][_0x1447('0x56')]=_0xf3cdd1,_0x4d66a6(_0x12fbab[_0x258f6d]),_0x12fbab[_0x258f6d]=null);}function _0x4d66a6({start:_0x36c394,end:_0x52b2d7,tapeItem:_0x26ee90,userId:_0x40bbb4,type:_0x5379aa}){const _0x4af468=_0x26ee90[_0x1447('0x7e')],_0xed67a1=_0x21aba5[_0x1447('0xc9')][_0x1447('0xca')](_0x4af468)&&!_0x21aba5[_0x1447('0xc9')]['isLimit'](_0x4af468),_0x3f41b5=_0x36c394[_0x1447('0x76')]==_0x52b2d7[_0x1447('0x3b')]&&_0x52b2d7['isAtStart'];if(_0xed67a1&&_0x3f41b5)return;const _0x4f931e=_0x21aba5[_0x1447('0xf1')](_0x36c394,_0x52b2d7),_0xb04e8a=_0x28eea8[_0x1447('0xc0')](_0x40bbb4),_0x1a0e5d=new _0x5b9455({'author':_0xb04e8a,'type':_0x1447('0x14')==_0x5379aa||_0x1447('0x53')==_0x5379aa?_0x1447('0x4d'):'remove','data':{'isSuggestion':_0x1447('0x53')==_0x5379aa||_0x1447('0x51')==_0x5379aa},'createdAt':new Date()});_0x24c262[_0x1447('0x5e')](_0x1a0e5d),_0x954835[_0x1447('0xc7')][_0x1447('0xda')]('revision:'+_0x1a0e5d['id'],_0x4f931e);}function _0x5dfbd6(_0x165af6,_0x4b134b){const _0x40a13c=_0x165af6[_0x1447('0xf5')](),_0x43452b=_0x4b134b[_0x1447('0xf5')]();for(const _0x4d4700 of _0x40a13c){if(_0x4d4700[0x1]!==_0x4b134b[_0x1447('0xf3')](_0x4d4700[0x0]))return!0x1;_0x43452b[_0x1447('0x42')]();}return _0x43452b[_0x1447('0x42')]()[_0x1447('0x107')];}}[_0x1447('0xad')](){this[_0x1447('0xc4')][_0x1447('0xf0')][_0x1447('0x100')](_0x1447('0x86'))[_0x1447('0x96')]({'view':_0x1447('0x104')}),this[_0x1447('0xc4')][_0x1447('0xf0')][_0x1447('0x100')](_0x1447('0x4f'))[_0x1447('0x91')]({'model':_0x1447('0x104'),'view':_0x109d89=>{const _0x10b913=_0x109d89[_0x1447('0xc3')][_0x1447('0x9b')](':')[0x1],_0x4cca6e=this[_0x1447('0x4')](_0x10b913);if(!_0x4cca6e)return null;const _0x1eb4f7=_0x1447('0x4d')==_0x4cca6e[_0x1447('0x8e')]?_0x1447('0x9f'):_0x1447('0xbe'),_0x4dde50=[_0x1447('0xc6'),_0x1447('0xf8')+_0x1eb4f7];return _0x4cca6e[_0x1447('0x60')][_0x1447('0x5c')]&&_0x4dde50['push'](_0x1447('0xf8')+_0x1eb4f7+_0x1447('0xdd')),this[_0x1447('0xcc')]==_0x4cca6e&&_0x4dde50[_0x1447('0x5e')](_0x1447('0x89')),{'classes':_0x4dde50,'attributes':{'data-change-id':_0x10b913}};}}),this[_0x1447('0xc4')][_0x1447('0xf0')][_0x1447('0x100')]('upcast')[_0x1447('0x4d')](_0x2ce7c7=>{_0x2ce7c7['on']('element:pre',(_0x568de3,_0x132a99,_0x517825)=>{const _0x379750=_0x132a99[_0x1447('0x92')][_0x1447('0xee')](0x0);if(!_0x379750||!_0x379750['is'](_0x1447('0xae'),'code'))return;if(!_0x517825[_0x1447('0x12')]['consume'](_0x379750,{'attributes':['vid_start',_0x1447('0xdf')]}))return;const _0x1f6892=_0x132a99['modelRange'][_0x1447('0x2b')][_0x1447('0x76')];_0x517825[_0x1447('0xf6')][_0x1447('0x15')]('vid_start',_0x379750[_0x1447('0xf3')]('vid_start'),_0x1f6892),_0x517825[_0x1447('0xf6')][_0x1447('0x15')](_0x1447('0xdf'),_0x379750[_0x1447('0xf3')](_0x1447('0xdf')),_0x1f6892);},{'priority':_0x1447('0xb6')});}),this[_0x1447('0xc4')][_0x1447('0xf0')]['for']('upcast')[_0x1447('0x4d')](_0x138cc0=>{_0x138cc0['on'](_0x1447('0xae'),(_0xac3f36,_0x410e02,_0x1679aa)=>{if(!_0x1679aa[_0x1447('0x12')]['consume'](_0x410e02[_0x1447('0x92')],{'attributes':[_0x1447('0x2e'),_0x1447('0xdf')]}))return;if(_0x410e02[_0x1447('0x7')]['isCollapsed'])return;const _0x210dd0=_0x410e02[_0x1447('0x7')][_0x1447('0x2b')][_0x1447('0x76')];_0x210dd0['hasAttribute'](_0x1447('0x2e'))||_0x210dd0['hasAttribute'](_0x1447('0x2'))||(_0x1679aa[_0x1447('0xf6')][_0x1447('0x15')](_0x1447('0x2e'),_0x410e02[_0x1447('0x92')][_0x1447('0xf3')](_0x1447('0x2e')),_0x210dd0),_0x1679aa[_0x1447('0xf6')][_0x1447('0x15')](_0x1447('0xdf'),_0x410e02[_0x1447('0x92')][_0x1447('0xf3')](_0x1447('0xdf')),_0x210dd0));},{'priority':'low'});}),this[_0x1447('0xc4')][_0x1447('0xf0')][_0x1447('0x100')](_0x1447('0x86'))[_0x1447('0x7c')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x1447('0x2'),'value':_0x48b2e9=>_0x48b2e9[_0x1447('0xf3')](_0x1447('0x2'))}}),this[_0x1447('0xc4')][_0x1447('0x9d')][_0x1447('0xc9')]['on']('checkAttribute',(_0x12a621,[,_0xdfcf13])=>{[_0x1447('0x2e'),_0x1447('0xdf'),'vid']['includes'](_0xdfcf13)&&(_0x12a621['return']=!0x0,_0x12a621[_0x1447('0xf7')]());},{'priority':_0x1447('0xcf')}),this['editor'][_0x1447('0xf0')][_0x1447('0x100')]('dataDowncast')['add'](_0xaf3ac9=>{_0xaf3ac9['on'](_0x1447('0x0'),(_0x3376a8,_0x3a7773,_0x8acf5e)=>{if('\x20'!=_0x3a7773[_0x1447('0x7e')]['data']||_0x3a7773[_0x1447('0x7e')][_0x1447('0x3b')][_0x1447('0xfd')]>0x1)return;if(!_0x8acf5e[_0x1447('0x12')][_0x1447('0x39')](_0x3a7773['item'],_0x3376a8[_0x1447('0xc1')]))return;const _0x4ac171=_0x8acf5e['writer'],_0x5aa33e=_0x8acf5e['mapper'][_0x1447('0x38')](_0x3a7773[_0x1447('0x78')]);_0x4ac171[_0x1447('0x4a')](_0x5aa33e,_0x4ac171['createAttributeElement']('span'));});}),this['editor'][_0x1447('0xf0')]['for'](_0x1447('0x79'))[_0x1447('0x61')]({'model':'revision'}),this[_0x1447('0xc4')]['editing'][_0x1447('0x1b')]['on'](_0x1447('0x37'),function(_0x25888b){const _0x338825=_0x25888b['plugins'][_0x1447('0xc0')](_0x1447('0x6b'));return(_0x36cb57,_0x11adbc,_0x2091e7)=>{const _0x5303a9=_0x11adbc[_0x1447('0xc3')][_0x1447('0x9b')](':')[0x1],_0x1a2769=_0x338825[_0x1447('0x4')](_0x5303a9);if(!_0x1a2769)return null;const _0x35a86f=_0x1447('0x4d')==_0x1a2769['type']?_0x1447('0x9b'):_0x1447('0x21');if(!_0x2091e7[_0x1447('0x12')][_0x1447('0x77')](_0x11adbc[_0x1447('0xb1')],_0x36cb57['name']))return;const _0x42005b=_0x11adbc[_0x1447('0xb1')][_0x1447('0x103')](),_0xed0458=_0x11adbc['markerRange'][_0x1447('0x2b')],_0x37e935=_0x25888b[_0x1447('0x9d')][_0x1447('0xc9')];let _0x2e7059=null,_0x4f8c2a=null,_0x506769=!0x1,_0x3e4c46=!0x1;for(const _0x1c8f56 of _0x42005b){const _0x11e0e0=_0x1c8f56[_0x1447('0x7e')];_0x506769=_0x506769||_0x37e935['isContent'](_0x11e0e0);const _0x1218cc=_0x2091e7['mapper'][_0x1447('0x1f')](_0x11e0e0);if(_0x1218cc&&_0x1218cc[_0x1447('0x3f')](_0x1447('0x101')))return;_0x1447('0xeb')==_0x1c8f56['type']&&(_0x37e935[_0x1447('0xca')](_0x11e0e0)&&!_0x37e935[_0x1447('0x46')](_0x11e0e0)&&(_0x11e0e0[_0x1447('0x47')]||_0xed0458['isAtEnd']?_0x2e7059&&_0x2e7059[_0x1447('0x3b')]==_0x11e0e0||(_0x2e7059=_0x11e0e0,_0xa9fbb8(_0x1c8f56['previousPosition']),_0x3e4c46=!0x0):_0x4f8c2a=_0x4f8c2a||_0x1c8f56[_0x1447('0xd')]));}function _0xa9fbb8(_0x44873f){const _0x29ebb4=_0x2091e7[_0x1447('0xf6')][_0x1447('0x73')](_0x1447('0xd3'),{'class':_0x1447('0xf8')+_0x35a86f}),_0x461fb5=_0x2091e7[_0x1447('0xed')][_0x1447('0xa8')](_0x44873f);_0x1a2769['data'][_0x1447('0x5c')]&&_0x2091e7[_0x1447('0xf6')]['addClass'](_0x1447('0xf8')+_0x35a86f+_0x1447('0xdd'),_0x29ebb4),_0x338825[_0x1447('0xcc')]==_0x1a2769&&_0x2091e7['writer']['addClass'](_0x1447('0x89'),_0x29ebb4),_0x2091e7['writer'][_0x1447('0x106')](_0x461fb5,_0x29ebb4),_0x2091e7[_0x1447('0xed')][_0x1447('0xab')](_0x29ebb4,_0x11adbc[_0x1447('0xc3')]);}_0x506769||_0x3e4c46||!_0x4f8c2a||_0xa9fbb8(_0x4f8c2a);};}(this[_0x1447('0xc4')]),{'priority':_0x1447('0x1c')}),this[_0x1447('0xc4')][_0x1447('0x5')][_0x1447('0x1b')]['on'](_0x1447('0xaf'),(_0x48983c,_0x2e057c,_0x55af43)=>{const _0x223c61=_0x55af43[_0x1447('0xed')][_0x1447('0x13')](_0x2e057c[_0x1447('0xc3')]);if(_0x223c61)for(const _0x445320 of _0x223c61)(_0x445320[_0x1447('0x83')](_0x1447('0x67'))||_0x445320['hasClass'](_0x1447('0xd9')))&&(_0x55af43[_0x1447('0xed')]['unbindElementFromMarkerName'](_0x445320,_0x2e057c['markerName']),_0x55af43['writer'][_0x1447('0x50')](_0x445320));},{'priority':'high'}),this[_0x1447('0xc4')][_0x1447('0x5')][_0x1447('0x1b')]['on'](_0x1447('0x37'),(_0x5cc48e,_0x20e0db,_0x18e1ba)=>{const _0x2d7910=_0x20e0db[_0x1447('0xc3')][_0x1447('0x9b')](':')[0x1],_0x526b0d=this[_0x1447('0x4')](_0x2d7910);if(!_0x526b0d)return null;const _0x30985a='add'==_0x526b0d[_0x1447('0x8e')]?_0x1447('0x9b'):'merge';if(_0x18e1ba['consumable'][_0x1447('0x77')](_0x20e0db[_0x1447('0xb1')],_0x5cc48e[_0x1447('0xc1')]))for(const _0x446074 of _0x20e0db['markerRange']['getItems']()){if(!_0x446074['is'](_0x1447('0xae'),_0x1447('0x45')))continue;const _0x175d25=_0x18e1ba['writer'][_0x1447('0x73')](_0x1447('0xd3'),{'class':'ck-suggestion-marker-'+_0x30985a}),_0x377193=_0x18e1ba[_0x1447('0xed')][_0x1447('0xa8')](this[_0x1447('0xc4')][_0x1447('0x9d')][_0x1447('0x9c')](_0x446074));_0x526b0d['data'][_0x1447('0x5c')]&&_0x18e1ba[_0x1447('0xf6')][_0x1447('0xec')](_0x1447('0xf8')+_0x30985a+_0x1447('0xdd'),_0x175d25),this['activeChange']==_0x526b0d&&_0x18e1ba[_0x1447('0xf6')][_0x1447('0xec')]('ck-suggestion-marker--active',_0x175d25),_0x18e1ba[_0x1447('0xf6')]['insert'](_0x377193,_0x175d25),_0x18e1ba['mapper'][_0x1447('0xab')](_0x175d25,_0x20e0db[_0x1447('0xc3')]);}},{'priority':'high'}),this[_0x1447('0xc4')][_0x1447('0xf0')]['for']('upcast')['dataToMarker']({'view':_0x1447('0x4e'),'model':_0x384fa1=>_0x1447('0xa5')+_0x384fa1,'converterPriority':_0x1447('0xcf')}),this[_0x1447('0xc4')][_0x1447('0xf0')][_0x1447('0x100')](_0x1447('0x86'))[_0x1447('0x96')]({'view':'suggestion','model':_0x56e5cc=>_0x1447('0xa9')+_0x56e5cc,'converterPriority':_0x1447('0xcf')}),this[_0x1447('0xc4')]['conversion'][_0x1447('0x100')](_0x1447('0x79'))[_0x1447('0x61')]({'model':_0x1447('0xc5'),'view':_0x2a61a8=>_0x1447('0xb5')+_0x2a61a8,'converterPriority':_0x1447('0xcf')}),this[_0x1447('0xc4')][_0x1447('0xf0')][_0x1447('0x100')](_0x1447('0x4f'))[_0x1447('0x91')]({'model':_0x1447('0xc5'),'view':_0x3b0dca=>{const _0x236464=_0x3b0dca[_0x1447('0xc3')][_0x1447('0x9b')](':')[0x1];return _0x1447('0x9f')!=_0x236464&&'deletion'!=_0x236464?null:{'classes':[_0x1447('0x3e'),_0x1447('0xcd')+_0x236464]};}}),this['editor']['editing'][_0x1447('0x1b')]['on']('addMarker:revision-suggestion:deletion',Z(this[_0x1447('0xc4')],_0x1447('0x21')),{'priority':_0x1447('0x1c')}),this['editor'][_0x1447('0x5')][_0x1447('0x1b')]['on'](_0x1447('0xe'),Z(this[_0x1447('0xc4')],'split'),{'priority':_0x1447('0x1c')}),this[_0x1447('0xc4')][_0x1447('0x5')][_0x1447('0x1b')]['on'](_0x1447('0x93'),(_0x1d8fdc,_0x5c6721,_0xbec626)=>{const _0x31edac=_0xbec626[_0x1447('0xed')][_0x1447('0x13')](_0x5c6721[_0x1447('0xc3')]);if(_0x31edac)for(const _0x56c6f4 of _0x31edac)_0x56c6f4['is'](_0x1447('0x90'))&&(_0xbec626[_0x1447('0xed')][_0x1447('0xa4')](_0x56c6f4,_0x5c6721[_0x1447('0xc3')]),_0xbec626[_0x1447('0xf6')][_0x1447('0x50')](_0x56c6f4));},{'priority':'high'});}['_getChangeFromId'](_0xfb791){return this['_changeIdToChange'][_0x1447('0xc0')](_0xfb791);}['_getViewForChange'](_0x5406d2){this['_changeView']&&this['_changeView'][_0x1447('0x84')](),this[_0x1447('0x34')]=new _0x30668c(this['editor']['locale'],_0x5406d2);const _0x209ff6=this[_0x1447('0xc4')][_0x1447('0x9d')][_0x1447('0xc7')][_0x1447('0xc0')](_0x1447('0x30')+_0x5406d2['id']);return this[_0x1447('0x34')][_0x1447('0x54')]=()=>_0x2f5dfb(this[_0x1447('0xc4')][_0x1447('0x5')],_0x209ff6),this[_0x1447('0x34')];}[_0x1447('0xa1')](){this[_0x1447('0xc4')][_0x1447('0x9d')][_0x1447('0xb3')][_0x1447('0x25')]['observeMarkers']('revision'),this['on'](_0x1447('0xc2'),(_0x57af32,_0x5288ad,_0x304eb5,_0xdc6959)=>{_0xdc6959&&this[_0x1447('0x3a')][_0x1447('0x50')](_0xdc6959),_0x304eb5&&(this[_0x1447('0x3a')][_0x1447('0x4d')]({'view':_0x304eb5,'stackId':_0x1447('0x95'),'position':{'target':_0x304eb5[_0x1447('0x54')]}}),this[_0x1447('0x3a')]['showStack'](_0x1447('0x95')));}),this['on'](_0x1447('0x1d'),(_0x4379e7,_0x1c6c82,_0x440cdd,_0x1e0e48)=>{this['activeView']=_0x440cdd?this[_0x1447('0xde')](_0x440cdd):null,this[_0x1447('0xc4')][_0x1447('0x9d')][_0x1447('0x44')](()=>{const _0x52fbfb=this['editor']['editing'];_0x1e0e48&&_0x52fbfb['reconvertMarker'](_0x1447('0x30')+_0x1e0e48['id']),_0x440cdd&&_0x52fbfb['reconvertMarker'](_0x1447('0x30')+_0x440cdd['id']);});}),this['listenTo'](this[_0x1447('0xc4')][_0x1447('0x5')]['view'][_0x1447('0xb3')],'mouseover',(_0x58882c,_0x159ffa)=>{if(this[_0x1447('0xcc')])return;const _0x45e271=this[_0x1447('0xe2')](_0x159ffa['target']),_0x5b7c68=this['_changeIdToChange'][_0x1447('0xc0')](_0x45e271);this[_0x1447('0x11')]=_0x5b7c68?this['_getViewForChange'](_0x5b7c68):null;}),this[_0x1447('0x6e')](this[_0x1447('0xc4')][_0x1447('0x5')][_0x1447('0x22')][_0x1447('0xb3')],_0x1447('0x18'),(_0x158128,_0x5607e3)=>{const _0x591239=this[_0x1447('0xe2')](_0x5607e3[_0x1447('0xa2')]),_0x2f7beb=this[_0x1447('0x5f')]['get'](_0x591239);this[_0x1447('0xcc')]=_0x2f7beb||null;});}['_findChangeIdFromDomTarget'](_0x5a0877){do{const _0xacc791=_0x5a0877['getAttribute'](_0x1447('0x2f'));if(_0xacc791)return _0xacc791;_0x5a0877=_0x5a0877[_0x1447('0x3b')];}while(_0x5a0877);return null;}[_0x1447('0xb7')](){this[_0x1447('0xc4')]['model']['change'](_0x27608b=>{for(const _0x18c229 of this[_0x1447('0xc4')][_0x1447('0x9d')]['markers'])_0x27608b[_0x1447('0x99')](_0x18c229);});}}function Z(_0x598635,_0x16b78b){return(_0x3defe3,_0x4cdd7a,_0x2db760)=>{if(!_0x2db760['consumable'][_0x1447('0x77')](_0x4cdd7a[_0x1447('0xb1')],_0x3defe3['name']))return;const _0x23fd3e=_0x4cdd7a[_0x1447('0xb1')][_0x1447('0x103')](),_0x2fe4e7=_0x4cdd7a['markerRange'][_0x1447('0x2b')],_0x529006=_0x598635[_0x1447('0x9d')][_0x1447('0xc9')];let _0x29e00a=null,_0x4dcc8b=null,_0x5cad2b=!0x1,_0x5a0d60=!0x1;for(const _0x41969b of _0x23fd3e){const _0x2b9ac3=_0x41969b[_0x1447('0x7e')];_0x5cad2b=_0x5cad2b||_0x529006[_0x1447('0x69')](_0x2b9ac3);const _0x52df93=_0x2db760[_0x1447('0xed')]['toViewElement'](_0x2b9ac3);if(_0x52df93&&_0x52df93[_0x1447('0x3f')](_0x1447('0x101')))return;_0x1447('0xeb')==_0x41969b[_0x1447('0x8e')]&&(_0x529006[_0x1447('0xca')](_0x2b9ac3)&&!_0x529006['isLimit'](_0x2b9ac3)&&(_0x2b9ac3[_0x1447('0x47')]||_0x2fe4e7['isAtEnd']?_0x29e00a&&_0x29e00a[_0x1447('0x3b')]==_0x2b9ac3||(_0x29e00a=_0x2b9ac3,_0x37914d(_0x41969b['previousPosition']),_0x5a0d60=!0x0):_0x4dcc8b=_0x4dcc8b||_0x41969b[_0x1447('0xd')]));}function _0x37914d(_0xcaa1d0){const _0x34673f=_0x2db760[_0x1447('0xed')][_0x1447('0xa8')](_0xcaa1d0),_0x255085=_0x2db760[_0x1447('0xf6')][_0x1447('0x73')](_0x1447('0xd3'),{'class':_0x1447('0xcd')+_0x16b78b});_0x2db760[_0x1447('0xf6')]['insert'](_0x34673f,_0x255085),_0x2db760['mapper']['bindElementToMarker'](_0x255085,_0x4cdd7a[_0x1447('0xc3')]);}_0x5cad2b||_0x5a0d60||!_0x4dcc8b||_0x37914d(_0x4dcc8b);};}_0x4d7bf0(d,_0x14a170);class tt extends _0xce060f{constructor(_0x2f5d21){super(_0x2f5d21);const _0x304533=_0x2f5d21['plugins'][_0x1447('0xc0')](d);this['stopListening'](_0x2f5d21,'change:isReadOnly'),this['clearForceDisabled']('readOnlyMode'),this[_0x1447('0x6e')](_0x304533,'change:isReady',()=>this[_0x1447('0xe0')]()),this[_0x1447('0x6e')](_0x304533,'change:isEnabled',()=>this[_0x1447('0xe0')]());}[_0x1447('0x97')](){const _0x586368=this[_0x1447('0xc4')],_0x4008dc=_0x586368[_0x1447('0x71')]['get'](d),_0x31bd7f=_0x4008dc[_0x1447('0x68')]?_0x4008dc['diff'][_0x1447('0x6c')]:null;_0x586368[_0x1447('0x74')][_0x1447('0xc0')](_0x1447('0x7d'))[_0x1447('0x7f')](_0x31bd7f);}['refresh'](){const {isReady:_0x307277,isEnabled:_0x205c1c}=this[_0x1447('0xc4')][_0x1447('0x71')]['get'](d);this[_0x1447('0xe8')]=_0x307277&&_0x205c1c;}}class et extends _0xce060f{constructor(_0x23ac60,{direction:_0x39828a}){super(_0x23ac60);const _0x2663f9=_0x23ac60['plugins'][_0x1447('0xc0')](d);this['stopListening'](_0x23ac60,_0x1447('0x24')),this[_0x1447('0x36')](_0x1447('0x19')),this['_step']='forward'===_0x39828a?0x1:-0x1,this[_0x1447('0x6e')](_0x2663f9,_0x1447('0x4b'),()=>this[_0x1447('0xe0')]()),this[_0x1447('0x6e')](_0x2663f9,_0x1447('0x70'),()=>this[_0x1447('0xe0')]());}['execute'](){const _0x58c6d2=this['editor'],_0xb99a7c=_0x58c6d2[_0x1447('0x71')]['get'](d),{isNavigationMode:_0x16b73a,currentChangeNumber:_0x184470}=_0xb99a7c;_0xb99a7c['activeChange']=_0x16b73a?_0xb99a7c['diff'][_0x1447('0xc8')]['get'](_0x184470+this[_0x1447('0x6f')]):_0xb99a7c['diff']['changes'][_0x1447('0xdc')];const _0x238f64=_0x58c6d2['model'][_0x1447('0xc7')][_0x1447('0xc0')](_0x1447('0x30')+_0xb99a7c[_0x1447('0xcc')]['id']),_0x3e23a3=_0x2f5dfb(_0x58c6d2[_0x1447('0x5')],_0x238f64);_0x1354e1({'target':_0x3e23a3,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xfc4412,currentChangeNumber:_0x1ec63a,numberOfChanges:_0x38ef4a,isReady:_0x2d75f7,isEnabled:_0x2998d3}=this['editor'][_0x1447('0x71')][_0x1447('0xc0')](d);this[_0x1447('0xe8')]=!!(_0x2998d3&&_0x2d75f7&&_0x38ef4a)&&(!_0xfc4412||(0x1===this[_0x1447('0x6f')]?_0x1ec63a<_0x38ef4a-0x1:_0x1ec63a>0x0));}}
|
|
23
|
+
const _0xc25d=['revisionHistoryLabel','marked','consumable','isAtStart','stop','data','start','loadRevisionData','POSITIVE_INFINITY','newRevisionId','addRevisionData','error','change:numberOfChanges','commands','_refreshStartEndIndex','destroy','elementEnd','revision-start','values','deletions','document','changes','vid_end','remove','_initInteractions','_cleanMarkers','keys','activeView','set','diff','side','end','next','revision-suggestion','comment','length','_findChangeIdFromDomTarget','_getRevisionsRange','getRevision','revision-viewer','-new','shift','listenTo','low','data-change-id','getItems','createRange','toModel','isIncorrect','_threeWayMerge','forward','model','oldRevisionId','setAttribute','viewItem','slice','isAtEnd','merge','clearForceDisabled','isContent','parse','range','config','mapper','markerToHighlight','isNavigationMode','maxOffset','add','filter','getRevisionData','removeMarker:revision-suggestion','bind','_setData','_appendChild','_removeMissingPairs','markerName','element','concat','vid','attributes','insert','nextSibling','insertion','level','done','pairId','_step','hasAttribute','upcast','userId','readOnlyMode','writer','index','_processTape','isInline','from','showStack','adapter','mousedown','repository','revision','editor','markerRange','change:activeChange','observeMarkers','addHighlight','isLimit','offsetSize','activeChange','authors','high','code','parent','ck-suggestion-marker--active','getChild','getIndex','removeMarker:revision','createAttributeElement','_makeModelFromViewString','plugins','createRangeIn','addMarker:revision','ck-suggestion-marker-merge','map','children','schema','_target','ck-suggestion-marker-split','markers','default','enqueueChange','delete','string','then','span','_removeUnsupportedChanges','_makeModelFromTape','pop','processor','_makeTape','distance','getAttributes','isAddSuggestion','editingDowncast','useFillerType','reconvertMarker','markerToData','previousPosition','elementToAttribute','revision:','change:isEnabled','change:isReadOnly','showPreviousChange','type','backward','_getChangeFromId','requires','bindElementToMarker','stopListening','isAfter','split','isBlock','test','attribute:vid','_joinTapes','consume','forEach','push','getRootNames','for','ck-suggestion-preview-marker-','diffData','nodeAfter','removeClass','hasClass','isRemoveSuggestion','conversion','markerNameToElements','change','toViewElement','isSuggestion','_markMismatchedRemovedTags','item','_balloon','isBefore','_update','setData','<p></p>','change:isReady','addMarker:revision-suggestion:deletion','compare','return','_markInsertions','_cleanUp','all','RevisionViewer','downcastDispatcher','name','pluginName','getWalker','_setConversion','target','isRemoved','clear','splice','text','unbindElementFromMarkerName','elementStart','deletion','mouseover','_markSuggestions','_getViewForChange','addClass','_changeIdToChange','init','createPositionFromPath','checkAttribute','_revisions','get','_changeView','uiElement','toData','isEqual','isAdded','view','vid_start','_fixObsoleteTags','markersStart','dataDowncast','data-revision-','has','ck-editor__editable__overlay','insertions','first','startsWith','collaboration.channelId','sort','_getViewObj','nextPosition','createUIElement','refresh','ck-suggestion-preview-marker','_setDistance','_getDiff','revisionHistory','_removeRevisionMarkers','element:pre','getAttribute','getRoot','endIndex','abs','toViewPosition','markersEnd','isEnabled','dataToMarker','editing','currentChangeNumber','isReady','modelRange','ck-suggestion-marker-','startIndex'];(function(_0x39b008,_0xc25d5a){const _0x362a62=function(_0xbe8236){while(--_0xbe8236){_0x39b008['push'](_0x39b008['shift']());}};_0x362a62(++_0xc25d5a);}(_0xc25d,0x156));const _0x362a=function(_0x39b008,_0xc25d5a){_0x39b008=_0x39b008-0x0;let _0x362a62=_0xc25d[_0x39b008];return _0x362a62;};import{Plugin as _0x5c70ec,Command as _0x3913a7}from'ckeditor5/src/core';import{ObservableMixin as _0x9f85d9,mix as _0x27e8c5,scrollViewportToShowTarget as _0x194198}from'ckeditor5/src/utils';import{ContextualBalloon as _0x232578}from'ckeditor5/src/ui';import{DocumentFragment as _0x3f0366,Element as _0x481ff9,Text as _0x269a36,ViewDocumentFragment as _0x18313f,ViewText as _0x3e9df7,ViewElement as _0x298d43,ViewContainerElement as _0x2a361f,ViewAttributeElement as _0x76218b,ViewEmptyElement as _0x28f004,ViewRawElement as _0x3744af,ViewUIElement as _0x5b87a1}from'ckeditor5/src/engine';import{Users as _0x5db220,getMarkerDomElement as _0x15f201}from'ckeditor5-collaboration/src/collaboration-core';import _0x4612b3 from'./ui/revisionviewer/changedetailsview';import _0x408ef3 from'./revisionsrepository';import _0x834f11 from'./changeitem';import _0x2c297d from'./revisiondiff';import'../theme/revisionviewer.css';const Y={'c':_0x2a361f,'a':_0x76218b,'e':_0x28f004,'r':_0x3744af,'u':_0x5b87a1};export default class d extends _0x5c70ec{static get[_0x362a('0x75')](){return _0x362a('0x72');}static get[_0x362a('0x4b')](){return[_0x5db220,_0x232578,_0x408ef3];}constructor(..._0x14cf77){super(..._0x14cf77),this[_0x362a('0x12')]=this[_0x362a('0x14')][_0x362a('0x26')][_0x362a('0x89')]('RevisionsRepository'),this[_0x362a('0xd0')]('activeChange',null),this[_0x362a('0xd0')](_0x362a('0xcf'),null),this[_0x362a('0xd0')]('diff',null),this[_0x362a('0xd0')]('isReady',!0x1),this[_0x362a('0xd0')](_0x362a('0xac'),!0x0),this['on']('change:isEnabled',(_0x255cf1,_0x480282,_0x202686)=>{this[_0x362a('0x1b')]=null,this[_0x362a('0xcf')]=null,this['editor'][_0x362a('0xae')]['view'][_0x362a('0x61')](_0xa72396=>{for(const _0x1a2865 of this[_0x362a('0x14')][_0x362a('0xae')][_0x362a('0x8f')][_0x362a('0xc8')]['roots'])_0x202686?_0xa72396[_0x362a('0x5c')](_0x362a('0x96'),_0x1a2865):_0xa72396[_0x362a('0x83')](_0x362a('0x96'),_0x1a2865);});}),this[_0x362a('0xfb')](_0x362a('0xf5'))['to'](this,_0x362a('0x1b'),_0x6a1b4a=>null!==_0x6a1b4a),this[_0x362a('0xfb')](_0x362a('0xaf'))['to'](this,_0x362a('0xb0'),this,_0x362a('0xd1'),this,_0x362a('0x1b'),(_0x3a3740,_0x21ab75,_0x36f462)=>_0x3a3740&&_0x36f462?_0x21ab75[_0x362a('0xc9')]['getIndex'](_0x36f462):0x0),this[_0x362a('0xfb')]('numberOfChanges')['to'](this,_0x362a('0xb0'),this,_0x362a('0xd1'),(_0x359a09,_0x5e57b5)=>_0x359a09?_0x5e57b5[_0x362a('0xc9')][_0x362a('0xd7')]:0x0),this[_0x362a('0x8a')]=null,this[_0x362a('0x84')]=new Map(),this[_0x362a('0x10')]=null,this[_0x362a('0x66')]=this[_0x362a('0x14')]['plugins'][_0x362a('0x89')](_0x232578);}[_0x362a('0x85')](){const _0x461b3e=this[_0x362a('0x14')],_0x44d92b=new et(_0x461b3e,{'direction':_0x362a('0x49')}),_0x242a14=new et(_0x461b3e,{'direction':_0x362a('0xe6')});_0x461b3e[_0x362a('0xc1')][_0x362a('0xf7')](_0x362a('0x47'),_0x44d92b),_0x461b3e[_0x362a('0xc1')]['add']('showNextChange',_0x242a14),_0x461b3e[_0x362a('0xc1')]['add']('restoreRevision',new tt(_0x461b3e)),this['on'](_0x362a('0xc0'),()=>{_0x44d92b[_0x362a('0x9f')](),_0x242a14[_0x362a('0x9f')]();}),this[_0x362a('0x77')](),this[_0x362a('0xcc')](),_0x461b3e['enableReadOnlyMode'](_0x362a('0xdb'));}async[_0x362a('0xf9')](_0x2f5e3a){await this[_0x362a('0xbb')](_0x2f5e3a);const _0x3aa2a7={};for(const _0x5cb8b1 in _0x2f5e3a[_0x362a('0x5a')]){const _0x39369a=this[_0x362a('0xa4')](JSON[_0x362a('0xf0')](_0x2f5e3a[_0x362a('0x5a')][_0x5cb8b1][_0x362a('0x97')])),_0x4a28fe=this['editor']['editing']['view'][_0x362a('0xc8')],_0x319331=new _0x18313f(_0x4a28fe,_0x39369a[_0x362a('0x2a')](_0x48d0d6=>this['_getViewObj'](_0x48d0d6)));this[_0x362a('0x14')][_0x362a('0xb9')][_0x362a('0x39')][_0x362a('0x3f')](_0x362a('0xb5')),_0x3aa2a7[_0x5cb8b1]=this[_0x362a('0x14')][_0x362a('0xb9')][_0x362a('0x39')][_0x362a('0x8c')](_0x319331),this[_0x362a('0x14')]['data'][_0x362a('0x39')]['useFillerType'](_0x362a('0x30'));}return _0x3aa2a7;}[_0x362a('0xa4')](_0x3098a5){return(_0x3098a5=_0x3098a5['filter'](_0x24a010=>!_0x24a010[_0x362a('0x74')]||_0x362a('0xc5')!==_0x24a010[_0x362a('0x74')]&&'revision-end'!==_0x24a010[_0x362a('0x74')]))[_0x362a('0x55')](_0x3edb18=>{_0x362a('0x33')!=typeof _0x3edb18&&(_0x3edb18[_0x362a('0x2b')]=this['_removeRevisionMarkers'](_0x3edb18[_0x362a('0x2b')]),_0x3edb18[_0x362a('0x103')]=_0x3edb18['attributes'][_0x362a('0xf8')](_0x1416a6=>!_0x1416a6[0x0]['startsWith'](_0x362a('0x94'))));}),_0x3098a5;}[_0x362a('0x6d')](_0x276b09,_0x15c98c,_0x2af6ff=!0x1){if(!this[_0x362a('0xac')])return;const _0x1be555=this[_0x362a('0xd1')],_0x193408=this[_0x362a('0x12')],_0x3e29c7='string'==typeof _0x276b09?_0x193408[_0x362a('0xda')](_0x276b09):_0x276b09,_0x4349e0=_0x362a('0x33')==typeof _0x15c98c?_0x193408[_0x362a('0xda')](_0x15c98c):_0x15c98c,_0x40bc63=_0x3e29c7['id'],_0x18ab5e=_0x4349e0?_0x4349e0['id']:null;if(!_0x2af6ff&&this[_0x362a('0xd1')]&&this[_0x362a('0xd1')]['newRevisionId']===_0x40bc63&&this[_0x362a('0xd1')][_0x362a('0xe8')]===_0x18ab5e)return Promise['resolve']();this[_0x362a('0xb0')]=!0x1,this[_0x362a('0xcf')]=null,this['activeChange']=null,this[_0x362a('0xd1')]=new _0x2c297d(_0x40bc63,_0x18ab5e);const _0x12a4ff=this[_0x362a('0xd9')](_0x3e29c7,_0x4349e0,!0x0)[_0x362a('0x2a')](_0x20952b=>this[_0x362a('0xbb')](_0x20952b));return _0x12a4ff[_0x362a('0x56')](new Promise(_0x36f17d=>{setTimeout(_0x36f17d,0x14);})),Promise[_0x362a('0x71')](_0x12a4ff)[_0x362a('0x34')](()=>{if(!this[_0x362a('0xac')])return;this[_0x362a('0x70')]();const _0x38ace3=this[_0x362a('0xa2')](_0x40bc63,_0x18ab5e);this[_0x362a('0xd1')][_0x362a('0xfc')](_0x38ace3);for(const _0x34afcb of this[_0x362a('0xd1')]['changes'])this[_0x362a('0x84')][_0x362a('0xd0')](_0x34afcb['id'],_0x34afcb);this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0x31')]({'isUndoable':!0x1},_0x457a7c=>{for(const _0x3516ae of Object[_0x362a('0xce')](_0x38ace3[_0x362a('0xe7')])){const _0x4ce450=this[_0x362a('0x14')]['model'][_0x362a('0xc8')][_0x362a('0xa7')](_0x3516ae);_0x457a7c[_0x362a('0xcb')](_0x457a7c[_0x362a('0x27')](_0x4ce450)),_0x457a7c['insert'](_0x38ace3[_0x362a('0xe7')][_0x3516ae],_0x4ce450,0x0);}}),this[_0x362a('0xb0')]=!0x0;})['catch'](_0x18b380=>{console[_0x362a('0xbf')](_0x18b380),this[_0x362a('0x70')](),_0x1be555?this[_0x362a('0xd1')]=_0x1be555:this[_0x362a('0x14')][_0x362a('0x69')](_0x362a('0x6a')),this[_0x362a('0xb0')]=!0x0;});}[_0x362a('0xc3')](){this['activeView']=null,this[_0x362a('0x8a')]&&this['_changeView'][_0x362a('0xc3')]();}[_0x362a('0xbe')](_0x9e9386,_0x364d3b){const _0x2b8ad3=this[_0x362a('0x12')]['createRevision'](_0x9e9386);return _0x2b8ad3['on'](_0x362a('0x68'),(_0x67089d,_0x249054,_0x471fb7)=>_0x364d3b(_0x249054,_0x471fb7,_0x2b8ad3)),this[_0x362a('0x12')]['addRevision'](_0x2b8ad3),_0x2b8ad3;}[_0x362a('0xbb')](_0x235aa3){if(!_0x235aa3||_0x235aa3['diffData'])return Promise['resolve']();{const _0xc6052f=this[_0x362a('0x14')][_0x362a('0xf2')][_0x362a('0x89')](_0x362a('0x9a'));return this['adapter'][_0x362a('0xda')]({'channelId':_0xc6052f,'revisionId':_0x235aa3['id']})[_0x362a('0x34')](_0x28e857=>{_0x235aa3[_0x362a('0x68')]({'diffData':_0x28e857[_0x362a('0x5a')]},!0x0);});}}['_cleanUp'](){this[_0x362a('0x1b')]=null,this[_0x362a('0xcd')](),this[_0x362a('0x8a')]&&this['_changeView'][_0x362a('0xc3')](),this[_0x362a('0x8a')]=null,this[_0x362a('0x84')][_0x362a('0x7a')]();}[_0x362a('0x3a')](_0x23bca5){const _0x777ce6=Array[_0x362a('0xe')](_0x23bca5['markers'])[_0x362a('0xf8')](([_0x128002,_0x5052e0])=>_0x128002[_0x362a('0x99')]('revision:')&&!_0x5052e0['isCollapsed']),_0x1478b9=Array[_0x362a('0xe')](this['editor'][_0x362a('0xe7')][_0x362a('0x27')](_0x23bca5)[_0x362a('0x76')]({'singleCharacters':!0x0}));if(0x0!=_0x777ce6[_0x362a('0xd7')])for(const _0xbfb738 of _0x1478b9){const [_0x3d0e1a,_0x21293d]=_0x777ce6[0x0],[,_0x4cb5fa,_0x58945c]=_0x3d0e1a[_0x362a('0x4f')](':');if(_0x21293d['end'][_0x362a('0x8d')](_0xbfb738[_0x362a('0x9d')])&&_0x777ce6[_0x362a('0xdd')](),(_0xbfb738['previousPosition']['isEqual'](_0x21293d[_0x362a('0xba')])||_0xbfb738['previousPosition'][_0x362a('0x4e')](_0x21293d[_0x362a('0xba')]))&&('insertion'==_0x4cb5fa?_0xbfb738[_0x362a('0x8e')]={'userId':_0x58945c}:_0x362a('0x7f')==_0x4cb5fa&&(_0xbfb738[_0x362a('0x79')]={'userId':_0x58945c})),0x0==_0x777ce6['length'])break;}return _0x1478b9;}[_0x362a('0xc2')](_0x4051ed){const _0x25dfbe=new Map();for(let _0x47661c=0x0;_0x47661c<_0x4051ed[_0x362a('0xd7')];_0x47661c++)_0x362a('0x7c')===_0x4051ed[_0x47661c][_0x362a('0x48')]?(_0x4051ed[_0x47661c][_0x362a('0x65')]['startIndex']=_0x47661c,_0x4051ed[_0x47661c][_0x362a('0x65')]['endIndex']=_0x47661c):(_0x362a('0x7e')===_0x4051ed[_0x47661c]['type']?_0x4051ed[_0x47661c][_0x362a('0x65')][_0x362a('0xb3')]=_0x47661c:'elementEnd'===_0x4051ed[_0x47661c][_0x362a('0x48')]&&(_0x4051ed[_0x47661c]['item'][_0x362a('0xa8')]=_0x47661c),_0x25dfbe[_0x362a('0xd0')](_0x4051ed[_0x47661c]['id'],_0x47661c));for(const _0x34f6e4 of _0x25dfbe[_0x362a('0xc6')]())_0x362a('0x7e')===_0x4051ed[_0x34f6e4]['type']?_0x4051ed[_0x34f6e4][_0x362a('0x65')]['endIndex']=_0x25dfbe[_0x362a('0x89')](_0x4051ed[_0x34f6e4][_0x362a('0x4')]):_0x362a('0xc4')===_0x4051ed[_0x34f6e4][_0x362a('0x48')]&&(_0x4051ed[_0x34f6e4][_0x362a('0x65')][_0x362a('0xb3')]=_0x25dfbe[_0x362a('0x89')](_0x4051ed[_0x34f6e4]['pairId']));}[_0x362a('0xc')](_0x501146){for(let _0x445f31=0x0;_0x445f31<_0x501146[_0x362a('0xd7')];_0x445f31++){if(_0x362a('0x7e')===_0x501146[_0x445f31][_0x362a('0x48')])_0x501146[_0x445f31][_0x362a('0x65')][_0x362a('0xb3')]=_0x445f31;else{if(_0x362a('0xc4')===_0x501146[_0x445f31][_0x362a('0x48')]){_0x501146[_0x445f31]['item'][_0x362a('0xa8')]=_0x445f31;const _0x2ecbda=_0x501146[_0x445f31][_0x362a('0x65')][_0x362a('0xb3')];_0x501146[_0x2ecbda][_0x362a('0x4')]=_0x501146[_0x445f31]['id'],_0x501146[_0x445f31][_0x362a('0x4')]=_0x501146[_0x2ecbda]['id'];}else _0x501146[_0x445f31]['item'][_0x362a('0xb3')]=_0x445f31,_0x501146[_0x445f31][_0x362a('0x65')]['endIndex']=_0x445f31,_0x501146[_0x445f31][_0x362a('0x4')]=null;}_0x501146[_0x445f31][_0x362a('0x92')]||(_0x501146[_0x445f31][_0x362a('0x92')]=[],_0x501146[_0x445f31][_0x362a('0xab')]=[]);}}[_0x362a('0x6f')](_0x25b29b,_0x1f2697){const _0x2a091f=_0x25b29b['filter'](_0x3a6d76=>!_0x3a6d76[_0x362a('0x8e')]);for(let _0x8c7af9=0x0;_0x8c7af9<_0x1f2697[_0x362a('0xd7')];_0x8c7af9++)_0x1f2697[_0x8c7af9][_0x362a('0x8e')]&&(_0x2a091f[_0x8c7af9]['isAdded']=_0x1f2697[_0x8c7af9][_0x362a('0x8e')]);}[_0x362a('0x25')](_0x39f6ca){const _0x490f9b=JSON['parse'](_0x39f6ca),_0x4aa5d4=this['editor'][_0x362a('0xae')][_0x362a('0x8f')][_0x362a('0xc8')],_0x1e5c1a=new _0x18313f(_0x4aa5d4,_0x490f9b[_0x362a('0x2a')](_0xf84210=>this[_0x362a('0x9c')](_0xf84210)));return this[_0x362a('0x14')]['data'][_0x362a('0xe3')](_0x1e5c1a);}['_getViewObj'](_0x59913a){const _0xaf614c=this[_0x362a('0x14')][_0x362a('0xae')][_0x362a('0x8f')][_0x362a('0xc8')];if(_0x362a('0x33')==typeof _0x59913a)return new _0x3e9df7(_0xaf614c,_0x59913a);{const _0x49a6f1=_0x59913a['children'][_0x362a('0x2a')](_0x12bd75=>this[_0x362a('0x9c')](_0x12bd75));return new(Y[_0x59913a[(_0x362a('0x48'))]]||_0x298d43)(_0xaf614c,_0x59913a[_0x362a('0x74')],_0x59913a[_0x362a('0x103')],_0x49a6f1);}}['_getDiff'](_0x1962c7,_0x510a20=null){const _0x2e9f49=this['repository'][_0x362a('0xda')](_0x1962c7),_0x23f12c=_0x510a20?this['repository']['getRevision'](_0x510a20):null,_0x442066=this[_0x362a('0xd9')](_0x2e9f49,_0x23f12c),_0x2f659f=_0x442066[_0x442066[_0x362a('0xd7')]-0x1],_0x21abd5=new Map();for(const _0x37d2ff of _0x442066){_0x37d2ff['model']={};for(const _0x54258e of _0x37d2ff[_0x362a('0x1c')])_0x21abd5['set'](_0x54258e['id'],_0x54258e);for(const _0x4e2f22 of this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0xc8')]['getRootNames']())_0x37d2ff[_0x362a('0x5a')][_0x4e2f22]||(_0x37d2ff[_0x362a('0x5a')][_0x4e2f22]={'insertions':'[]','deletions':'[]'}),_0x37d2ff[_0x362a('0xe7')][_0x4e2f22]={'insertions':this[_0x362a('0x25')](_0x37d2ff[_0x362a('0x5a')][_0x4e2f22]['insertions']),'deletions':this[_0x362a('0x25')](_0x37d2ff[_0x362a('0x5a')][_0x4e2f22][_0x362a('0xc7')])};}const _0x451217={'model':{},'changes':[]};for(const _0x42ba6f of this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0xc8')][_0x362a('0x57')]()){let _0x389c84=null,_0x58c15f=0x0;const _0x2ad7a5=new Map(Array[_0x362a('0xe')](_0x2e9f49[_0x362a('0xe7')][_0x42ba6f][_0x362a('0x97')][_0x362a('0x2f')])[_0x362a('0xf8')](([_0x5854e7])=>!_0x5854e7[_0x362a('0x99')](_0x362a('0x44'))));let _0xda4886=0x0;for(const _0x54944c of _0x442066){const _0x32918b=this[_0x362a('0x3a')](_0x54944c['model'][_0x42ba6f][_0x362a('0x97')]);_0x54944c==_0x2e9f49?(_0x389c84=_0x32918b,_0x58c15f=_0x389c84['length'],_0x389c84[_0x362a('0x55')](_0x2774b1=>{_0x2774b1['id']=_0xda4886++;}),this[_0x362a('0xc')](_0x389c84)):this[_0x362a('0x6f')](_0x389c84,_0x32918b);const _0x1c1aa7=_0x389c84[_0x362a('0xf8')](_0x2019bf=>!_0x2019bf['isAdded'])['map'](_0x21a082=>_0x21a082['id']);let _0x4414e5=0x0;const _0x125380=this[_0x362a('0x3a')](_0x54944c[_0x362a('0xe7')][_0x42ba6f][_0x362a('0xc7')]);_0x125380['forEach'](_0x57ed24=>{_0x57ed24[_0x362a('0x79')]?_0x57ed24['id']=_0x58c15f++:_0x57ed24['id']=_0x1c1aa7[_0x4414e5++];}),this['_processTape'](_0x125380),this['_setDistance'](_0x389c84,_0x362a('0x8e')),this['_setDistance'](_0x125380,'isRemoved'),_0x54944c==_0x2e9f49&&this['_markMarkers'](_0x389c84,_0x2ad7a5),_0x389c84=this[_0x362a('0x53')](_0x389c84,_0x125380),this[_0x362a('0xc2')](_0x389c84),this[_0x362a('0xa1')](_0x389c84,_0x362a('0x79'));}_0x389c84=_0x389c84['filter'](_0x3c6446=>!(_0x3c6446['isAdded']&&_0x3c6446[_0x362a('0x79')]));const _0x159978=new Map(_0x2f659f[_0x362a('0xe7')][_0x42ba6f]['deletions'][_0x362a('0x2f')]),_0x385305=new Set(_0x2ad7a5['keys']());for(const _0x4acfda of _0x159978[_0x362a('0xce')]())_0x385305[_0x362a('0x32')](_0x4acfda);this[_0x362a('0x81')](_0x389c84,_0x385305),this[_0x362a('0x91')](_0x389c84),_0x389c84=this[_0x362a('0xfe')](_0x389c84),_0x389c84=this[_0x362a('0x64')](_0x389c84),_0x389c84=this[_0x362a('0x36')](_0x389c84);const {root:_0x1adec3,changes:_0x207fd6}=this['_makeModelFromTape'](_0x389c84,_0x21abd5);_0x451217[_0x362a('0xe7')][_0x42ba6f]=_0x1adec3,_0x451217['changes']=_0x451217[_0x362a('0xc9')][_0x362a('0x101')](_0x207fd6);}return _0x451217;}['_markMarkers'](_0x1da286,_0x1b6a0b){for(let _0x25b026=0x0;_0x25b026<_0x1da286['length'];_0x25b026++)for(const [_0xbf4511,_0x3b251c]of _0x1b6a0b)_0x3b251c['start'][_0x362a('0x8d')](_0x1da286[_0x25b026]['previousPosition'])&&_0x1da286[_0x25b026]['markersStart'][_0x362a('0x56')](_0xbf4511),_0x3b251c[_0x362a('0xd3')]['isEqual'](_0x1da286[_0x25b026][_0x362a('0x9d')])&&_0x1da286[_0x25b026][_0x362a('0xab')][_0x362a('0x56')](_0xbf4511);}[_0x362a('0x53')](_0xc987de,_0x1a7efd){let _0x3e720d=[],_0x26a345=0x0,_0x5c4066=0x0;for(;_0x26a345<_0xc987de[_0x362a('0xd7')]||_0x5c4066<_0x1a7efd[_0x362a('0xd7')];){const _0xc6a9f6=_0xc987de[_0x26a345]||{},_0x4f803f=_0x1a7efd[_0x5c4066]||{};if(_0xc6a9f6['id']==_0x4f803f['id'])_0x26a345++,_0x5c4066++,_0x3e720d[_0x362a('0x56')](_0xc6a9f6);else{if(_0x4f803f[_0x362a('0x79')]&&_0xc6a9f6['isAdded']){const {commonTape:_0x7ba3ce,iEnd:_0x188cb2,jEnd:_0x28ccbe}=this['_threeWayMerge'](_0xc987de,_0x26a345,_0x1a7efd,_0x5c4066);_0x3e720d=_0x3e720d['concat'](_0x7ba3ce),_0x26a345=_0x188cb2,_0x5c4066=_0x28ccbe;}else _0x4f803f[_0x362a('0x79')]?(_0x5c4066++,_0x3e720d[_0x362a('0x56')](_0x4f803f)):(_0x26a345++,_0x3e720d['push'](_0xc6a9f6));}}return _0x3e720d;}[_0x362a('0x81')](_0x2e40c5,_0x10af9c){const _0x3697aa=[];for(let _0x523877=0x0;_0x523877<_0x2e40c5[_0x362a('0xd7')];_0x523877++){for(let _0xf5fe=0x0;_0xf5fe<_0x2e40c5[_0x523877][_0x362a('0x92')]['length'];_0xf5fe++){const _0x56cd18=_0x2e40c5[_0x523877][_0x362a('0x92')][_0xf5fe];if(!_0x10af9c[_0x362a('0x95')](_0x56cd18))continue;const {group:_0x5be362,type:_0x31e6db,authorId:_0xc1677}=_0x3a0080(_0x56cd18);_0x362a('0xd5')!=_0x5be362||_0x362a('0x1')!=_0x31e6db&&_0x362a('0x7f')!=_0x31e6db||(_0x3697aa['unshift']({'type':_0x31e6db,'name':_0x56cd18,'userId':_0xc1677}),_0x2e40c5[_0x523877]['markersStart'][_0x362a('0x7b')](_0xf5fe,0x1),_0xf5fe--);}_0x27b47f(_0x2e40c5[_0x523877]);for(let _0x4ee16c=0x0;_0x4ee16c<_0x2e40c5[_0x523877]['markersEnd'][_0x362a('0xd7')];_0x4ee16c++){const _0x24494b=_0x2e40c5[_0x523877][_0x362a('0xab')][_0x4ee16c];if(!_0x10af9c['has'](_0x24494b))continue;const {group:_0x3e6422,type:_0x45f83e}=_0x3a0080(_0x24494b);if(_0x362a('0xd5')!=_0x3e6422||_0x362a('0x1')!=_0x45f83e&&_0x362a('0x7f')!=_0x45f83e)continue;_0x2e40c5[_0x523877]['markersEnd'][_0x362a('0x7b')](_0x4ee16c,0x1),_0x4ee16c--;const _0x34ea1f=_0x3697aa['findIndex'](_0x46cb77=>_0x46cb77[_0x362a('0x74')]==_0x24494b);_0x34ea1f>-0x1&&_0x3697aa['splice'](_0x34ea1f,0x1);}}function _0x3a0080(_0x276ae9){const _0x5dd224=_0x276ae9[_0x362a('0x4f')](':');return{'group':_0x5dd224[0x0],'type':_0x5dd224[0x1],'subType':_0x5dd224[_0x362a('0xd7')]>=0x5?_0x5dd224[0x2]:null,'id':_0x5dd224[_0x362a('0xd7')]<0x5?_0x5dd224[0x2]:_0x5dd224[0x3],'authorId':_0x5dd224['length']<0x5?_0x5dd224[0x3]:_0x5dd224[0x4],'markerCount':0x6==_0x5dd224[_0x362a('0xd7')]?_0x5dd224[0x5]:null};}function _0x27b47f(_0x1d943c){for(let _0x559852=0x0;_0x559852<_0x3697aa['length'];_0x559852++){if(_0x1d943c['isAdded']&&'insertion'==_0x3697aa[_0x559852][_0x362a('0x48')])return _0x1d943c[_0x362a('0x3d')]=_0x3697aa[_0x559852],void delete _0x1d943c[_0x362a('0x8e')];if(!_0x1d943c['isAdded']&&!_0x1d943c[_0x362a('0x79')]&&_0x362a('0x7f')==_0x3697aa[_0x559852][_0x362a('0x48')])return void(_0x1d943c[_0x362a('0x5e')]=_0x3697aa[_0x559852]);}}}[_0x362a('0xa1')](_0x82aeef,_0x40aa02){let _0x1ad315=0x0,_0x408996=!0x1;const _0x8f2aca=new Map();for(const _0x2ba750 of _0x82aeef)_0x2ba750[_0x40aa02]?_0x408996&&(_0x1ad315++,_0x408996=!0x1):(_0x1ad315++,_0x408996=!0x0),_0x8f2aca['set'](_0x2ba750['id'],_0x1ad315);for(let _0x388b0f=0x0;_0x388b0f<_0x82aeef[_0x362a('0xd7')];_0x388b0f++){if(_0x362a('0x79')==_0x40aa02&&_0x82aeef[_0x388b0f]['isAdded']||_0x362a('0x8e')==_0x40aa02&&_0x82aeef[_0x388b0f][_0x362a('0x79')])continue;if(_0x362a('0x7c')==_0x82aeef[_0x388b0f][_0x362a('0x48')]){_0x82aeef[_0x388b0f][_0x362a('0x3b')]=0x0;continue;}const _0x3e362c=_0x8f2aca[_0x362a('0x89')](_0x82aeef[_0x388b0f][_0x362a('0x4')]),_0x3cb44c=_0x8f2aca[_0x362a('0x89')](_0x82aeef[_0x388b0f]['id']);_0x82aeef[_0x388b0f][_0x362a('0x3b')]=_0x3e362c-_0x3cb44c;}}['_getRevisionsRange'](_0x5a55e7,_0x4bfd63,_0x476c5e=!0x1){const _0x351d0e=[];let _0x1a3c6b=this[_0x362a('0x12')][_0x362a('0x22')](_0x5a55e7),_0x225072=this[_0x362a('0x12')]['getIndex'](_0x4bfd63);for(-0x1==_0x225072&&(_0x225072=this['repository'][_0x362a('0x88')][_0x362a('0xd7')],_0x476c5e=!0x1);_0x1a3c6b<_0x225072;)_0x351d0e[_0x362a('0x56')](this[_0x362a('0x12')][_0x362a('0xda')](_0x1a3c6b)),_0x1a3c6b++;return _0x476c5e&&_0x351d0e[_0x362a('0x56')](this[_0x362a('0x12')][_0x362a('0xda')](_0x1a3c6b)),_0x351d0e;}[_0x362a('0xe5')](_0x3e259e,_0x27ddf7,_0x49f615,_0x1a2746){const _0x4cef3a=this['editor']['model']['schema'];let _0x55fe89=_0x27ddf7;for(;_0x3e259e[_0x55fe89]&&_0x3e259e[_0x55fe89][_0x362a('0x8e')];)_0x55fe89++;let _0x4a2a6c=_0x1a2746;for(;_0x49f615[_0x4a2a6c]&&_0x49f615[_0x4a2a6c]['isRemoved'];)_0x4a2a6c++;_0x2fb91(_0x3e259e,_0x27ddf7,_0x55fe89),_0x2fb91(_0x49f615,_0x1a2746,_0x4a2a6c);const _0x21e447=_0x49f615[_0x362a('0xeb')](_0x1a2746,_0x4a2a6c)[_0x362a('0x101')](_0x3e259e[_0x362a('0xeb')](_0x27ddf7,_0x55fe89));return _0x21e447['sort']((_0x4a200e,_0x34dd43)=>_0x4a200e[_0x362a('0xd2')]!=_0x34dd43['side']?_0x4a200e['side']-_0x34dd43['side']:_0x4a200e['level']!=_0x34dd43['level']?_0x4a200e[_0x362a('0x2')]-_0x34dd43[_0x362a('0x2')]:_0x4a200e[_0x362a('0x3b')]!=_0x34dd43['distance']?_0x34dd43[_0x362a('0x3b')]-_0x4a200e[_0x362a('0x3b')]:!!_0x4a200e['isAdded']!=!!_0x34dd43['isAdded']?-0x1==_0x4a200e['side']||0x0==_0x4a200e[_0x362a('0xd2')]?_0x4a200e['isAdded']?-0x1:0x1:_0x4a200e[_0x362a('0x8e')]?0x1:-0x1:_0x4a200e[_0x362a('0xb')]-_0x34dd43[_0x362a('0xb')]),{'commonTape':_0x21e447,'iEnd':_0x55fe89,'jEnd':_0x4a2a6c};function _0x2fb91(_0x32d701,_0x1797a9,_0x358ca1){let _0x18581d=-0x1,_0x1c775a=Number[_0x362a('0xbc')],_0x1d99d7=!0x0;for(let _0x1533be=_0x1797a9;_0x1533be<_0x358ca1;_0x1533be++)if(_0x4cef3a[_0x362a('0xd')](_0x32d701[_0x1533be][_0x362a('0x65')])||(_0x1d99d7=!0x1),_0x32d701[_0x1533be][_0x362a('0x65')][_0x362a('0xb3')]<_0x1797a9&&(_0x18581d=_0x1533be),_0x32d701[_0x1533be]['item'][_0x362a('0xa8')]>=_0x358ca1){_0x1c775a=_0x1533be;break;}_0x1d99d7&&(_0x18581d=_0x358ca1-0x1);for(let _0x33eb26=_0x1797a9;_0x33eb26<_0x358ca1;_0x33eb26++)_0x32d701[_0x33eb26][_0x362a('0xd2')]=_0x33eb26<=_0x18581d?-0x1:_0x33eb26<_0x1c775a?0x0:0x1,_0x32d701[_0x33eb26][_0x362a('0xb')]=_0x33eb26;let _0x3d02ac=0x0;for(let _0x23c8fd=_0x1797a9;_0x23c8fd<=_0x18581d;_0x23c8fd++)0x0==_0x32d701[_0x23c8fd][_0x362a('0x3b')]?_0x32d701[_0x23c8fd]['level']=_0x3d02ac:(_0x3d02ac++,_0x32d701[_0x23c8fd][_0x362a('0x2')]=_0x3d02ac,_0x3d02ac++);for(let _0x13b760=_0x1797a9;_0x13b760<_0x358ca1;_0x13b760++)0x0==_0x32d701[_0x13b760]['side']&&(_0x32d701[_0x13b760][_0x362a('0x2')]=_0x3d02ac);_0x3d02ac=0x0;for(let _0x1d87a2=_0x358ca1-0x1;_0x1d87a2>=_0x1c775a;_0x1d87a2--)0x0==_0x32d701[_0x1d87a2]['distance']?_0x32d701[_0x1d87a2][_0x362a('0x2')]=_0x3d02ac:(_0x3d02ac--,_0x32d701[_0x1d87a2]['level']=_0x3d02ac,_0x3d02ac--);}}['_fixObsoleteTags'](_0xe5fe3c){const _0x2aa021=new Map(),_0x5d37dd=this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0x2c')];for(let _0x34d913=0x1;_0x34d913<_0xe5fe3c[_0x362a('0xd7')];_0x34d913++){let _0x469d6a,_0x2acb95,_0x96fc7f;const _0x13436a=_0xe5fe3c[_0x34d913],_0x4b81d6=_0xe5fe3c[_0x34d913-0x1];if(_0x362a('0x7c')==_0x13436a['type'])continue;if(_0x13436a[_0x362a('0x48')]!=_0x4b81d6[_0x362a('0x48')])continue;if(!_0x5d37dd[_0x362a('0x50')](_0x4b81d6[_0x362a('0x65')])||_0x5d37dd['isLimit'](_0x4b81d6[_0x362a('0x65')]))continue;if(!_0x5d37dd[_0x362a('0x50')](_0x13436a[_0x362a('0x65')])||_0x5d37dd[_0x362a('0x19')](_0x13436a[_0x362a('0x65')]))continue;if((_0xe5fe3c[_0x34d913][_0x362a('0x8e')]||_0xe5fe3c[_0x34d913][_0x362a('0x3d')])&&_0xe5fe3c[_0x34d913-0x1][_0x362a('0x79')])_0x469d6a=_0xe5fe3c[_0x34d913],_0x2acb95=_0xe5fe3c[_0x34d913-0x1],_0x96fc7f=_0x34d913-0x1;else{if(!_0xe5fe3c[_0x34d913]['isRemoved']||!_0xe5fe3c[_0x34d913-0x1][_0x362a('0x8e')]&&!_0xe5fe3c[_0x34d913-0x1]['isAddSuggestion'])continue;_0x469d6a=_0xe5fe3c[_0x34d913-0x1],_0x2acb95=_0xe5fe3c[_0x34d913],_0x96fc7f=_0x34d913;}const _0x162b88=_0x469d6a[_0x362a('0x2')]==_0x2acb95[_0x362a('0x2')],_0x502534=Math[_0x362a('0xa9')](_0x469d6a['level'])<Math['abs'](_0x2acb95[_0x362a('0x2')])&&0x0==_0x2acb95[_0x362a('0x3b')];(_0x162b88||_0x502534)&&(_0x2aa021[_0x362a('0xd0')](_0x2acb95['id'],_0x469d6a['id']),_0xe5fe3c[_0x362a('0x7b')](_0x96fc7f,0x1),_0x34d913--,_0x469d6a[_0x362a('0x8e')]=!0x1);}for(let _0x3dfa6e=0x0;_0x3dfa6e<_0xe5fe3c[_0x362a('0xd7')];_0x3dfa6e++)_0x2aa021[_0x362a('0x95')](_0xe5fe3c[_0x3dfa6e]['pairId'])&&(_0xe5fe3c[_0x3dfa6e][_0x362a('0x4')]=_0x2aa021['get'](_0xe5fe3c[_0x3dfa6e]['pairId']));}[_0x362a('0xfe')](_0x496f1a){const _0x1fdb19=new Set(_0x496f1a['map'](_0x451c05=>_0x451c05['id']));for(let _0x24d4cb=0x0;_0x24d4cb<_0x496f1a['length'];_0x24d4cb++)_0x1fdb19[_0x362a('0x95')](_0x496f1a[_0x24d4cb][_0x362a('0x4')])||0x0==_0x496f1a[_0x24d4cb][_0x362a('0x3b')]||(_0x496f1a[_0x24d4cb]['isIncorrect']=!0x0);return _0x496f1a['filter'](_0x17953f=>!_0x17953f[_0x362a('0xe4')]);}[_0x362a('0x64')](_0x225ba7){const _0x2cb2dd=new Set();for(let _0x50c432=0x0;_0x50c432<_0x225ba7[_0x362a('0xd7')];_0x50c432++){if(_0x2cb2dd[_0x362a('0x95')](_0x225ba7[_0x50c432]['id'])&&_0x225ba7[_0x50c432][_0x362a('0x79')]&&(_0x225ba7[_0x50c432]['isIncorrect']=!0x0),_0x225ba7[_0x50c432][_0x362a('0xe4')])continue;if(0x0==_0x225ba7[_0x50c432][_0x362a('0x3b')])continue;if(_0x362a('0x7e')!=_0x225ba7[_0x50c432]['type'])continue;if(null==_0x225ba7[_0x50c432][_0x362a('0x4')])continue;let _0x2ec21a=_0x50c432+0x1,_0x3a53b6=0x0;for(;_0x225ba7[_0x2ec21a]['id']!=_0x225ba7[_0x50c432][_0x362a('0x4')];)'elementStart'==_0x225ba7[_0x2ec21a]['type']?_0x3a53b6++:_0x362a('0xc4')==_0x225ba7[_0x2ec21a][_0x362a('0x48')]&&_0x3a53b6--,_0x2ec21a++;if(0x0!=_0x3a53b6){if(_0x225ba7[_0x50c432]['isRemoved'])_0x225ba7[_0x50c432][_0x362a('0xe4')]=!0x0;else for(;_0x2ec21a!=_0x50c432;)_0x225ba7[_0x2ec21a][_0x362a('0x79')]&&0x0!=_0x225ba7[_0x2ec21a]['distance']&&(_0x225ba7[_0x2ec21a][_0x362a('0xe4')]=!0x0,_0x2cb2dd[_0x362a('0xf7')](_0x225ba7[_0x2ec21a]['pairId'])),_0x2ec21a--;}}return _0x225ba7[_0x362a('0xf8')](_0x4be9b1=>!_0x4be9b1[_0x362a('0xe4')]);}[_0x362a('0x36')](_0x346d3a){const _0x12ceab=this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0x2c')];for(let _0x4516f8=0x0;_0x4516f8<_0x346d3a[_0x362a('0xd7')];_0x4516f8++){if(!(_0x346d3a[_0x4516f8][_0x362a('0x8e')]||_0x346d3a[_0x4516f8][_0x362a('0x3d')]||_0x346d3a[_0x4516f8]['isRemoved']||_0x346d3a[_0x4516f8][_0x362a('0x5e')]))continue;if(0x0==_0x346d3a[_0x4516f8][_0x362a('0x3b')])continue;const _0x5cdc36=_0x346d3a[_0x4516f8][_0x362a('0x65')];_0x12ceab[_0x362a('0x50')](_0x5cdc36)||_0x12ceab[_0x362a('0x19')](_0x5cdc36)||(_0x346d3a[_0x4516f8][_0x362a('0x8e')]&&delete _0x346d3a[_0x4516f8]['isAdded'],_0x346d3a[_0x4516f8]['isAddSuggestion']&&delete _0x346d3a[_0x4516f8][_0x362a('0x3d')],_0x346d3a[_0x4516f8]['isRemoveSuggestion']&&delete _0x346d3a[_0x4516f8][_0x362a('0x5e')],_0x346d3a[_0x4516f8][_0x362a('0x79')]&&(_0x346d3a[_0x4516f8]['isIncorrect']=!0x0));}return _0x346d3a[_0x362a('0xf8')](_0x3864ff=>!_0x3864ff[_0x362a('0xe4')]);}[_0x362a('0x37')](_0x298182,_0x26ab2c){const _0x576d11=new _0x3f0366(),_0x195bbc=[],_0x4a3445=new Map(),_0x4e61dd=this[_0x362a('0x14')][_0x362a('0xe7')],_0x3e72f5=_0x4e61dd[_0x362a('0x2c')],_0x3355f4=[_0x576d11],_0x2577e1={},_0x376d69={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4fe067=null;const _0x3d1b80=[0x0];for(let _0x3f9a5d=0x0;_0x3f9a5d<_0x298182[_0x362a('0xd7')];_0x3f9a5d++){let _0x430db5,_0x5d4a68;if(_0x362a('0x7e')===_0x298182[_0x3f9a5d][_0x362a('0x48')]){_0x430db5=_0x4e61dd[_0x362a('0x86')](_0x576d11,_0x3d1b80);const _0x5217c4=new _0x481ff9(_0x298182[_0x3f9a5d][_0x362a('0x65')][_0x362a('0x74')],_0x298182[_0x3f9a5d][_0x362a('0x65')]['getAttributes']());_0x3355f4[0x0]['_appendChild'](_0x5217c4),_0x3d1b80['push'](0x0),_0x3355f4['unshift'](_0x5217c4),_0x5d4a68=_0x4e61dd[_0x362a('0x86')](_0x576d11,_0x3d1b80),_0x4fe067=null;}else{if('elementEnd'===_0x298182[_0x3f9a5d][_0x362a('0x48')])_0x3355f4[_0x362a('0xdd')](),_0x430db5=_0x4e61dd[_0x362a('0x86')](_0x576d11,_0x3d1b80),_0x3d1b80[_0x362a('0x38')](),_0x3d1b80[_0x3d1b80[_0x362a('0xd7')]-0x1]++,_0x5d4a68=_0x4e61dd[_0x362a('0x86')](_0x576d11,_0x3d1b80),_0x4fe067=null;else{if(_0x430db5=_0x4e61dd[_0x362a('0x86')](_0x576d11,_0x3d1b80),_0x4fe067&&_0x38603a(_0x4fe067,_0x298182[_0x3f9a5d][_0x362a('0x65')]))_0x4fe067['_data']+=_0x298182[_0x3f9a5d][_0x362a('0x65')][_0x362a('0xb9')];else{const _0xf0c90e=new _0x269a36(_0x298182[_0x3f9a5d][_0x362a('0x65')]['data'],_0x298182[_0x3f9a5d][_0x362a('0x65')][_0x362a('0x3c')]());_0x3355f4[0x0][_0x362a('0xfd')](_0xf0c90e),_0x4fe067=_0xf0c90e;}_0x3d1b80[_0x3d1b80[_0x362a('0xd7')]-0x1]+=_0x298182[_0x3f9a5d][_0x362a('0x65')][_0x362a('0x1a')],_0x5d4a68=_0x4e61dd['createPositionFromPath'](_0x576d11,_0x3d1b80);}}for(const _0x1a4c94 of _0x298182[_0x3f9a5d]['markersStart'])_0x4a3445[_0x362a('0xd0')](_0x1a4c94,{'start':_0x430db5,'end':null});_0x386f32(_0x362a('0x5e'),_0x3f9a5d,_0x430db5,_0x5d4a68),_0x386f32('isAddSuggestion',_0x3f9a5d,_0x430db5,_0x5d4a68),_0x386f32(_0x362a('0x79'),_0x3f9a5d,_0x430db5,_0x5d4a68),_0x386f32(_0x362a('0x8e'),_0x3f9a5d,_0x430db5,_0x5d4a68);for(const _0x287740 of _0x298182[_0x3f9a5d][_0x362a('0xab')]){_0x4a3445[_0x362a('0x89')](_0x287740)[_0x362a('0xd3')]=_0x5d4a68;}}for(const [_0x40f133,_0x25cd67]of _0x4a3445){const _0x251164=this[_0x362a('0x14')][_0x362a('0xe7')]['createRange'](_0x25cd67[_0x362a('0xba')],_0x25cd67[_0x362a('0xd3')]);_0x576d11[_0x362a('0x2f')]['set'](_0x40f133,_0x251164);}return _0x195bbc[_0x362a('0x9b')]((_0x469e86,_0x10ec29)=>{const _0x31fc3d=_0x576d11[_0x362a('0x2f')][_0x362a('0x89')]('revision:'+_0x469e86['id']),_0x367315=_0x576d11[_0x362a('0x2f')][_0x362a('0x89')](_0x362a('0x44')+_0x10ec29['id']);return _0x31fc3d[_0x362a('0xba')][_0x362a('0x67')](_0x367315[_0x362a('0xba')])?-0x1:_0x31fc3d[_0x362a('0xba')]['isAfter'](_0x367315[_0x362a('0xba')])?0x1:_0x31fc3d[_0x362a('0xd3')]['isBefore'](_0x367315[_0x362a('0xd3')])?-0x1:_0x31fc3d[_0x362a('0xd3')][_0x362a('0x4e')](_0x367315[_0x362a('0xd3')])?0x1:_0x362a('0xf7')===_0x469e86[_0x362a('0x48')]?-0x1:0x1;}),{'root':_0x576d11,'changes':_0x195bbc};function _0x386f32(_0x113fc4,_0xa4c4bf,_0x20b8a6,_0x1b50bc){const _0x41476f=!!_0x298182[_0xa4c4bf][_0x113fc4],_0x17f17a=_0x41476f?_0x298182[_0xa4c4bf][_0x113fc4][_0x362a('0x8')]:null,_0x207374=_0xa4c4bf===_0x298182['length']-0x1,_0x24d80f=_0x376d69[_0x113fc4][0x0],_0x1963e2=_0x3e72f5['isObject'](_0x298182[_0xa4c4bf]['item']);!_0x2577e1[_0x113fc4]&&_0x41476f?_0x2577e1[_0x113fc4]={'start':_0x20b8a6,'tapeItem':_0x298182[_0xa4c4bf],'userId':_0x17f17a,'type':_0x113fc4}:_0x2577e1[_0x113fc4]&&!_0x41476f?(_0x2577e1[_0x113fc4][_0x362a('0xd3')]=_0x20b8a6,_0x459336(_0x2577e1[_0x113fc4]),_0x2577e1[_0x113fc4]=null):_0x2577e1[_0x113fc4]&&_0x41476f&&_0x2577e1[_0x113fc4]['userId']!==_0x17f17a&&(_0x2577e1[_0x113fc4]['end']=_0x20b8a6,_0x24d80f&&_0x24d80f[_0x362a('0x8')]===_0x2577e1[_0x113fc4][_0x362a('0x8')]||_0x459336(_0x2577e1[_0x113fc4]),_0x2577e1[_0x113fc4]={'start':_0x20b8a6,'tapeItem':_0x298182[_0xa4c4bf],'userId':_0x17f17a,'type':_0x113fc4}),_0x2577e1[_0x113fc4]&&_0x1963e2&&(_0x362a('0x7e')!==_0x298182[_0xa4c4bf][_0x362a('0x48')]||_0x24d80f&&_0x24d80f[_0x362a('0x8')]===_0x17f17a||_0x376d69[_0x113fc4]['unshift']({'userId':_0x17f17a,'object':_0x298182[_0xa4c4bf][_0x362a('0x65')],'change':_0x2577e1[_0x113fc4]}),_0x362a('0xc4')===_0x298182[_0xa4c4bf][_0x362a('0x48')]&&_0x24d80f&&_0x24d80f['object']===_0x298182[_0xa4c4bf][_0x362a('0x65')]&&(_0x376d69[_0x113fc4][_0x362a('0xdd')](),_0x2577e1[_0x113fc4]=_0x24d80f[_0x362a('0x61')])),_0x2577e1[_0x113fc4]&&_0x207374&&(_0x2577e1[_0x113fc4]['end']=_0x1b50bc,_0x459336(_0x2577e1[_0x113fc4]),_0x2577e1[_0x113fc4]=null);}function _0x459336({start:_0x132995,end:_0x3c2590,tapeItem:_0x4e075c,userId:_0x3bb167,type:_0xecbb04}){const _0x75d0bd=_0x4e075c[_0x362a('0x65')],_0x10baa1=_0x4e61dd[_0x362a('0x2c')]['isBlock'](_0x75d0bd)&&!_0x4e61dd[_0x362a('0x2c')][_0x362a('0x19')](_0x75d0bd),_0xd5b395=_0x132995[_0x362a('0x5b')]==_0x3c2590['parent']&&_0x3c2590[_0x362a('0xb7')];if(_0x10baa1&&_0xd5b395)return;const _0x2c45cc=_0x4e61dd[_0x362a('0xe2')](_0x132995,_0x3c2590),_0x134d0b=_0x26ab2c[_0x362a('0x89')](_0x3bb167),_0x2ac4d1=new _0x834f11({'author':_0x134d0b,'type':_0x362a('0x8e')==_0xecbb04||'isAddSuggestion'==_0xecbb04?_0x362a('0xf7'):_0x362a('0xcb'),'data':{'isSuggestion':'isAddSuggestion'==_0xecbb04||_0x362a('0x5e')==_0xecbb04},'createdAt':new Date()});_0x195bbc[_0x362a('0x56')](_0x2ac4d1),_0x576d11[_0x362a('0x2f')][_0x362a('0xd0')](_0x362a('0x44')+_0x2ac4d1['id'],_0x2c45cc);}function _0x38603a(_0x4bc4d0,_0x1f1fbc){const _0x4c7658=_0x4bc4d0[_0x362a('0x3c')](),_0x575ee9=_0x1f1fbc[_0x362a('0x3c')]();for(const _0x467dfa of _0x4c7658){if(_0x467dfa[0x1]!==_0x1f1fbc[_0x362a('0xa6')](_0x467dfa[0x0]))return!0x1;_0x575ee9[_0x362a('0xd4')]();}return _0x575ee9[_0x362a('0xd4')]()[_0x362a('0x3')];}}[_0x362a('0x77')](){this[_0x362a('0x14')]['conversion'][_0x362a('0x58')](_0x362a('0x7'))['dataToMarker']({'view':_0x362a('0x13')}),this['editor'][_0x362a('0x5f')][_0x362a('0x58')](_0x362a('0x3e'))[_0x362a('0xf4')]({'model':'revision','view':_0x950e0a=>{const _0x1559de=_0x950e0a['markerName'][_0x362a('0x4f')](':')[0x1],_0x480736=this[_0x362a('0x4a')](_0x1559de);if(!_0x480736)return null;const _0x409571=_0x362a('0xf7')==_0x480736['type']?_0x362a('0x1'):_0x362a('0x7f'),_0x38f905=['ck-suggestion-marker',_0x362a('0xb2')+_0x409571];return _0x480736['data'][_0x362a('0x63')]&&_0x38f905[_0x362a('0x56')]('ck-suggestion-marker-'+_0x409571+'-new'),this[_0x362a('0x1b')]==_0x480736&&_0x38f905[_0x362a('0x56')](_0x362a('0x20')),{'classes':_0x38f905,'attributes':{'data-change-id':_0x1559de}};}}),this['editor'][_0x362a('0x5f')][_0x362a('0x58')](_0x362a('0x7'))[_0x362a('0xf7')](_0x15f745=>{_0x15f745['on'](_0x362a('0xa5'),(_0x3f213f,_0x2b52b9,_0x270f3f)=>{const _0x5d72fc=_0x2b52b9['viewItem'][_0x362a('0x21')](0x0);if(!_0x5d72fc||!_0x5d72fc['is'](_0x362a('0x100'),_0x362a('0x1e')))return;if(!_0x270f3f['consumable'][_0x362a('0x54')](_0x5d72fc,{'attributes':['vid_start','vid_end']}))return;const _0x3a21a1=_0x2b52b9['modelRange'][_0x362a('0xba')][_0x362a('0x5b')];_0x270f3f[_0x362a('0xa')][_0x362a('0xe9')](_0x362a('0x90'),_0x5d72fc[_0x362a('0xa6')]('vid_start'),_0x3a21a1),_0x270f3f[_0x362a('0xa')]['setAttribute'](_0x362a('0xca'),_0x5d72fc['getAttribute'](_0x362a('0xca')),_0x3a21a1);},{'priority':_0x362a('0xdf')});}),this['editor'][_0x362a('0x5f')][_0x362a('0x58')](_0x362a('0x7'))[_0x362a('0xf7')](_0x5efec1=>{_0x5efec1['on'](_0x362a('0x100'),(_0x5a4d1c,_0x3a643e,_0x540f35)=>{if(!_0x540f35['consumable'][_0x362a('0x54')](_0x3a643e['viewItem'],{'attributes':[_0x362a('0x90'),'vid_end']}))return;if(_0x3a643e[_0x362a('0xb1')]['isCollapsed'])return;const _0x5cc993=_0x3a643e['modelRange'][_0x362a('0xba')][_0x362a('0x5b')];_0x5cc993[_0x362a('0x6')](_0x362a('0x90'))||_0x5cc993[_0x362a('0x6')]('vid')||(_0x540f35[_0x362a('0xa')][_0x362a('0xe9')](_0x362a('0x90'),_0x3a643e[_0x362a('0xea')][_0x362a('0xa6')](_0x362a('0x90')),_0x5cc993),_0x540f35['writer'][_0x362a('0xe9')](_0x362a('0xca'),_0x3a643e['viewItem'][_0x362a('0xa6')](_0x362a('0xca')),_0x5cc993));},{'priority':_0x362a('0xdf')});}),this[_0x362a('0x14')][_0x362a('0x5f')][_0x362a('0x58')](_0x362a('0x7'))[_0x362a('0x43')]({'view':{'name':_0x362a('0x35'),'attributes':{'vid':!0x0}},'model':{'key':_0x362a('0x102'),'value':_0x5e3f30=>_0x5e3f30[_0x362a('0xa6')]('vid')}}),this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0x2c')]['on'](_0x362a('0x87'),(_0x280314,[,_0x14152f])=>{[_0x362a('0x90'),_0x362a('0xca'),_0x362a('0x102')]['includes'](_0x14152f)&&(_0x280314[_0x362a('0x6e')]=!0x0,_0x280314[_0x362a('0xb8')]());},{'priority':'highest'}),this[_0x362a('0x14')][_0x362a('0x5f')][_0x362a('0x58')]('dataDowncast')[_0x362a('0xf7')](_0x2c6b2c=>{_0x2c6b2c['on'](_0x362a('0x52'),(_0x31e45e,_0x4369d1,_0x2be78c)=>{if('\x20'!=_0x4369d1['item'][_0x362a('0xb9')]||_0x4369d1[_0x362a('0x65')]['parent'][_0x362a('0xf6')]>0x1)return;if(!_0x2be78c[_0x362a('0xb6')][_0x362a('0x54')](_0x4369d1[_0x362a('0x65')],_0x31e45e[_0x362a('0x74')]))return;const _0x55b681=_0x2be78c[_0x362a('0xa')],_0x4e5f42=_0x2be78c[_0x362a('0xf3')]['toViewRange'](_0x4369d1[_0x362a('0xf1')]);_0x55b681['wrap'](_0x4e5f42,_0x55b681[_0x362a('0x24')](_0x362a('0x35')));});}),this[_0x362a('0x14')][_0x362a('0x5f')][_0x362a('0x58')]('dataDowncast')['markerToData']({'model':'revision'}),this[_0x362a('0x14')][_0x362a('0xae')][_0x362a('0x73')]['on']('addMarker:revision',function(_0x4b9a3c){const _0x19a287=_0x4b9a3c['plugins'][_0x362a('0x89')]('RevisionViewer');return(_0x57b7d3,_0x72bca2,_0x458427)=>{const _0x5cf038=_0x72bca2[_0x362a('0xff')][_0x362a('0x4f')](':')[0x1],_0x5308bb=_0x19a287[_0x362a('0x4a')](_0x5cf038);if(!_0x5308bb)return null;const _0x2016ac=_0x362a('0xf7')==_0x5308bb['type']?'split':'merge';if(!_0x458427[_0x362a('0xb6')][_0x362a('0x51')](_0x72bca2[_0x362a('0x15')],_0x57b7d3[_0x362a('0x74')]))return;const _0x210c0d=_0x72bca2[_0x362a('0x15')][_0x362a('0x76')](),_0x3f255a=_0x72bca2[_0x362a('0x15')][_0x362a('0xba')],_0x4c3f0f=_0x4b9a3c[_0x362a('0xe7')][_0x362a('0x2c')];let _0x4ad63c=null,_0xb3c901=null,_0x44de9f=!0x1,_0x37a388=!0x1;for(const _0x3b5efe of _0x210c0d){const _0x1d8fe3=_0x3b5efe[_0x362a('0x65')];_0x44de9f=_0x44de9f||_0x4c3f0f[_0x362a('0xef')](_0x1d8fe3);const _0x3b7f7b=_0x458427['mapper'][_0x362a('0x62')](_0x1d8fe3);if(_0x3b7f7b&&_0x3b7f7b['getCustomProperty']('addHighlight'))return;_0x362a('0xc4')==_0x3b5efe[_0x362a('0x48')]&&(_0x4c3f0f[_0x362a('0x50')](_0x1d8fe3)&&!_0x4c3f0f[_0x362a('0x19')](_0x1d8fe3)&&(_0x1d8fe3['nextSibling']||_0x3f255a[_0x362a('0xec')]?_0x4ad63c&&_0x4ad63c['parent']==_0x1d8fe3||(_0x4ad63c=_0x1d8fe3,_0x308272(_0x3b5efe[_0x362a('0x42')]),_0x37a388=!0x0):_0xb3c901=_0xb3c901||_0x3b5efe[_0x362a('0x42')]));}function _0x308272(_0x2d7b08){const _0x18e447=_0x458427['writer'][_0x362a('0x9e')](_0x362a('0x35'),{'class':'ck-suggestion-marker-'+_0x2016ac}),_0x61b5db=_0x458427['mapper'][_0x362a('0xaa')](_0x2d7b08);_0x5308bb[_0x362a('0xb9')][_0x362a('0x63')]&&_0x458427[_0x362a('0xa')][_0x362a('0x83')](_0x362a('0xb2')+_0x2016ac+_0x362a('0xdc'),_0x18e447),_0x19a287[_0x362a('0x1b')]==_0x5308bb&&_0x458427[_0x362a('0xa')][_0x362a('0x83')](_0x362a('0x20'),_0x18e447),_0x458427['writer'][_0x362a('0x104')](_0x61b5db,_0x18e447),_0x458427[_0x362a('0xf3')][_0x362a('0x4c')](_0x18e447,_0x72bca2[_0x362a('0xff')]);}_0x44de9f||_0x37a388||!_0xb3c901||_0x308272(_0xb3c901);};}(this[_0x362a('0x14')]),{'priority':_0x362a('0x1d')}),this[_0x362a('0x14')]['editing'][_0x362a('0x73')]['on'](_0x362a('0x23'),(_0x5e0a16,_0xf8797b,_0x284459)=>{const _0x5f0edb=_0x284459[_0x362a('0xf3')][_0x362a('0x60')](_0xf8797b[_0x362a('0xff')]);if(_0x5f0edb)for(const _0x3aaece of _0x5f0edb)(_0x3aaece[_0x362a('0x5d')](_0x362a('0x2e'))||_0x3aaece['hasClass'](_0x362a('0x29')))&&(_0x284459[_0x362a('0xf3')][_0x362a('0x7d')](_0x3aaece,_0xf8797b['markerName']),_0x284459[_0x362a('0xa')][_0x362a('0xcb')](_0x3aaece));},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on'](_0x362a('0x28'),(_0xbf292c,_0x17f979,_0x52fdcc)=>{const _0x385fa8=_0x17f979[_0x362a('0xff')][_0x362a('0x4f')](':')[0x1],_0x3e6b0c=this[_0x362a('0x4a')](_0x385fa8);if(!_0x3e6b0c)return null;const _0x314524=_0x362a('0xf7')==_0x3e6b0c[_0x362a('0x48')]?_0x362a('0x4f'):_0x362a('0xed');if(_0x52fdcc['consumable']['test'](_0x17f979[_0x362a('0x15')],_0xbf292c[_0x362a('0x74')]))for(const _0x42ffa6 of _0x17f979[_0x362a('0x15')][_0x362a('0xe1')]()){if(!_0x42ffa6['is']('element','softBreak'))continue;const _0x576e5d=_0x52fdcc[_0x362a('0xa')][_0x362a('0x9e')](_0x362a('0x35'),{'class':_0x362a('0xb2')+_0x314524}),_0x399d41=_0x52fdcc[_0x362a('0xf3')][_0x362a('0xaa')](this[_0x362a('0x14')]['model']['createPositionBefore'](_0x42ffa6));_0x3e6b0c[_0x362a('0xb9')][_0x362a('0x63')]&&_0x52fdcc[_0x362a('0xa')][_0x362a('0x83')](_0x362a('0xb2')+_0x314524+_0x362a('0xdc'),_0x576e5d),this[_0x362a('0x1b')]==_0x3e6b0c&&_0x52fdcc[_0x362a('0xa')][_0x362a('0x83')]('ck-suggestion-marker--active',_0x576e5d),_0x52fdcc[_0x362a('0xa')][_0x362a('0x104')](_0x399d41,_0x576e5d),_0x52fdcc[_0x362a('0xf3')]['bindElementToMarker'](_0x576e5d,_0x17f979['markerName']);}},{'priority':_0x362a('0x1d')}),this[_0x362a('0x14')][_0x362a('0x5f')][_0x362a('0x58')](_0x362a('0x7'))[_0x362a('0xad')]({'view':_0x362a('0xd6'),'model':_0x2e656c=>'revision-comment:'+_0x2e656c,'converterPriority':'highest'}),this[_0x362a('0x14')][_0x362a('0x5f')][_0x362a('0x58')](_0x362a('0x7'))[_0x362a('0xad')]({'view':'suggestion','model':_0x56bf3d=>'revision-suggestion:'+_0x56bf3d,'converterPriority':'highest'}),this[_0x362a('0x14')][_0x362a('0x5f')][_0x362a('0x58')](_0x362a('0x93'))[_0x362a('0x41')]({'model':_0x362a('0xd5'),'view':_0x144fbf=>'suggestion:'+_0x144fbf,'converterPriority':'highest'}),this[_0x362a('0x14')][_0x362a('0x5f')][_0x362a('0x58')]('editingDowncast')[_0x362a('0xf4')]({'model':_0x362a('0xd5'),'view':_0x4df413=>{const _0x26db38=_0x4df413[_0x362a('0xff')][_0x362a('0x4f')](':')[0x1];return _0x362a('0x1')!=_0x26db38&&_0x362a('0x7f')!=_0x26db38?null:{'classes':[_0x362a('0xa0'),'ck-suggestion-preview-marker-'+_0x26db38]};}}),this['editor'][_0x362a('0xae')][_0x362a('0x73')]['on'](_0x362a('0x6c'),Z(this[_0x362a('0x14')],_0x362a('0xed')),{'priority':_0x362a('0x1d')}),this[_0x362a('0x14')][_0x362a('0xae')]['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this[_0x362a('0x14')],_0x362a('0x4f')),{'priority':_0x362a('0x1d')}),this['editor'][_0x362a('0xae')][_0x362a('0x73')]['on'](_0x362a('0xfa'),(_0x3a0a26,_0x19958a,_0x170e7d)=>{const _0x2f5d62=_0x170e7d[_0x362a('0xf3')][_0x362a('0x60')](_0x19958a[_0x362a('0xff')]);if(_0x2f5d62)for(const _0xef4195 of _0x2f5d62)_0xef4195['is'](_0x362a('0x8b'))&&(_0x170e7d[_0x362a('0xf3')][_0x362a('0x7d')](_0xef4195,_0x19958a[_0x362a('0xff')]),_0x170e7d['writer'][_0x362a('0xcb')](_0xef4195));},{'priority':_0x362a('0x1d')});}[_0x362a('0x4a')](_0x412a50){return this[_0x362a('0x84')][_0x362a('0x89')](_0x412a50);}['_getViewForChange'](_0x16861e){this['_changeView']&&this[_0x362a('0x8a')][_0x362a('0xc3')](),this['_changeView']=new _0x4612b3(this[_0x362a('0x14')]['locale'],_0x16861e);const _0x51d776=this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0x2f')][_0x362a('0x89')](_0x362a('0x44')+_0x16861e['id']);return this[_0x362a('0x8a')][_0x362a('0x2d')]=()=>_0x15f201(this['editor']['editing'],_0x51d776),this['_changeView'];}['_initInteractions'](){this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0xc8')]['selection'][_0x362a('0x17')]('revision'),this['on']('change:activeView',(_0x2884b2,_0x3df3bd,_0x70dea6,_0x893702)=>{_0x893702&&this[_0x362a('0x66')][_0x362a('0xcb')](_0x893702),_0x70dea6&&(this[_0x362a('0x66')][_0x362a('0xf7')]({'view':_0x70dea6,'stackId':_0x362a('0xb4'),'position':{'target':_0x70dea6[_0x362a('0x2d')]}}),this[_0x362a('0x66')][_0x362a('0xf')](_0x362a('0xb4')));}),this['on'](_0x362a('0x16'),(_0x2bfb38,_0x508a3b,_0x34cddd,_0x251637)=>{this[_0x362a('0xcf')]=_0x34cddd?this['_getViewForChange'](_0x34cddd):null,this['editor'][_0x362a('0xe7')][_0x362a('0x61')](()=>{const _0x32a9ac=this[_0x362a('0x14')]['editing'];_0x251637&&_0x32a9ac[_0x362a('0x40')](_0x362a('0x44')+_0x251637['id']),_0x34cddd&&_0x32a9ac[_0x362a('0x40')]('revision:'+_0x34cddd['id']);});}),this['listenTo'](this[_0x362a('0x14')][_0x362a('0xae')][_0x362a('0x8f')][_0x362a('0xc8')],_0x362a('0x80'),(_0xef69f5,_0xa556ee)=>{if(this['activeChange'])return;const _0x534174=this[_0x362a('0xd8')](_0xa556ee[_0x362a('0x78')]),_0x5d2a7f=this['_changeIdToChange'][_0x362a('0x89')](_0x534174);this[_0x362a('0xcf')]=_0x5d2a7f?this[_0x362a('0x82')](_0x5d2a7f):null;}),this[_0x362a('0xde')](this[_0x362a('0x14')]['editing'][_0x362a('0x8f')]['document'],_0x362a('0x11'),(_0x4fa79d,_0x187585)=>{const _0x415605=this[_0x362a('0xd8')](_0x187585[_0x362a('0x78')]),_0x48d16d=this[_0x362a('0x84')]['get'](_0x415605);this['activeChange']=_0x48d16d||null;});}['_findChangeIdFromDomTarget'](_0x5048c8){do{const _0x5e998c=_0x5048c8['getAttribute'](_0x362a('0xe0'));if(_0x5e998c)return _0x5e998c;_0x5048c8=_0x5048c8['parent'];}while(_0x5048c8);return null;}[_0x362a('0xcd')](){this[_0x362a('0x14')][_0x362a('0xe7')][_0x362a('0x61')](_0x3b8ea6=>{for(const _0x25a9a3 of this[_0x362a('0x14')]['model'][_0x362a('0x2f')])_0x3b8ea6['removeMarker'](_0x25a9a3);});}}function Z(_0x108a50,_0x32f8a5){return(_0x3dce11,_0x15f4c8,_0x34e76c)=>{if(!_0x34e76c[_0x362a('0xb6')][_0x362a('0x51')](_0x15f4c8[_0x362a('0x15')],_0x3dce11[_0x362a('0x74')]))return;const _0x1a3638=_0x15f4c8[_0x362a('0x15')][_0x362a('0x76')](),_0x494b4a=_0x15f4c8['markerRange']['start'],_0x2579a9=_0x108a50[_0x362a('0xe7')]['schema'];let _0x34632f=null,_0x4532e0=null,_0x36a77f=!0x1,_0x2277fa=!0x1;for(const _0x5af600 of _0x1a3638){const _0x26581e=_0x5af600[_0x362a('0x65')];_0x36a77f=_0x36a77f||_0x2579a9['isContent'](_0x26581e);const _0x4f1064=_0x34e76c[_0x362a('0xf3')][_0x362a('0x62')](_0x26581e);if(_0x4f1064&&_0x4f1064['getCustomProperty'](_0x362a('0x18')))return;_0x362a('0xc4')==_0x5af600[_0x362a('0x48')]&&(_0x2579a9[_0x362a('0x50')](_0x26581e)&&!_0x2579a9[_0x362a('0x19')](_0x26581e)&&(_0x26581e[_0x362a('0x0')]||_0x494b4a[_0x362a('0xec')]?_0x34632f&&_0x34632f[_0x362a('0x1f')]==_0x26581e||(_0x34632f=_0x26581e,_0x4078f6(_0x5af600[_0x362a('0x42')]),_0x2277fa=!0x0):_0x4532e0=_0x4532e0||_0x5af600['previousPosition']));}function _0x4078f6(_0x274f69){const _0x5b80ec=_0x34e76c[_0x362a('0xf3')][_0x362a('0xaa')](_0x274f69),_0x2124dd=_0x34e76c[_0x362a('0xa')][_0x362a('0x9e')](_0x362a('0x35'),{'class':_0x362a('0x59')+_0x32f8a5});_0x34e76c['writer'][_0x362a('0x104')](_0x5b80ec,_0x2124dd),_0x34e76c[_0x362a('0xf3')][_0x362a('0x4c')](_0x2124dd,_0x15f4c8[_0x362a('0xff')]);}_0x36a77f||_0x2277fa||!_0x4532e0||_0x4078f6(_0x4532e0);};}_0x27e8c5(d,_0x9f85d9);class tt extends _0x3913a7{constructor(_0x3e5781){super(_0x3e5781);const _0x52c5aa=_0x3e5781[_0x362a('0x26')]['get'](d);this[_0x362a('0x4d')](_0x3e5781,_0x362a('0x46')),this[_0x362a('0xee')]('readOnlyMode'),this[_0x362a('0xde')](_0x52c5aa,_0x362a('0x6b'),()=>this[_0x362a('0x9f')]()),this['listenTo'](_0x52c5aa,_0x362a('0x45'),()=>this['refresh']());}['execute'](){const _0x41b6c0=this['editor'],_0x246e08=_0x41b6c0[_0x362a('0x26')][_0x362a('0x89')](d),_0x4cc616=_0x246e08['isReady']?_0x246e08[_0x362a('0xd1')][_0x362a('0xbd')]:null;_0x41b6c0[_0x362a('0xf2')]['get'](_0x362a('0xa3'))['restoreRevisionCallback'](_0x4cc616);}[_0x362a('0x9f')](){const {isReady:_0x48be33,isEnabled:_0x577dac}=this[_0x362a('0x14')][_0x362a('0x26')][_0x362a('0x89')](d);this[_0x362a('0xac')]=_0x48be33&&_0x577dac;}}class et extends _0x3913a7{constructor(_0x11bd73,{direction:_0x29e461}){super(_0x11bd73);const _0x3194b4=_0x11bd73[_0x362a('0x26')][_0x362a('0x89')](d);this[_0x362a('0x4d')](_0x11bd73,_0x362a('0x46')),this[_0x362a('0xee')](_0x362a('0x9')),this[_0x362a('0x5')]=_0x362a('0xe6')===_0x29e461?0x1:-0x1,this[_0x362a('0xde')](_0x3194b4,_0x362a('0x6b'),()=>this[_0x362a('0x9f')]()),this['listenTo'](_0x3194b4,_0x362a('0x45'),()=>this[_0x362a('0x9f')]());}['execute'](){const _0x3f0441=this[_0x362a('0x14')],_0x1ff626=_0x3f0441[_0x362a('0x26')]['get'](d),{isNavigationMode:_0x46394a,currentChangeNumber:_0x11a256}=_0x1ff626;_0x1ff626[_0x362a('0x1b')]=_0x46394a?_0x1ff626[_0x362a('0xd1')][_0x362a('0xc9')][_0x362a('0x89')](_0x11a256+this[_0x362a('0x5')]):_0x1ff626[_0x362a('0xd1')][_0x362a('0xc9')][_0x362a('0x98')];const _0x48803a=_0x3f0441[_0x362a('0xe7')][_0x362a('0x2f')][_0x362a('0x89')](_0x362a('0x44')+_0x1ff626[_0x362a('0x1b')]['id']),_0x488e6d=_0x15f201(_0x3f0441[_0x362a('0xae')],_0x48803a);_0x194198({'target':_0x488e6d,'viewportOffset':0x28});}[_0x362a('0x9f')](){const {isNavigationMode:_0xee3da6,currentChangeNumber:_0x393c88,numberOfChanges:_0x2edc56,isReady:_0x185851,isEnabled:_0x120dd4}=this[_0x362a('0x14')][_0x362a('0x26')][_0x362a('0x89')](d);this[_0x362a('0xac')]=!!(_0x120dd4&&_0x185851&&_0x2edc56)&&(!_0xee3da6||(0x1===this[_0x362a('0x5')]?_0x393c88<_0x2edc56-0x1:_0x393c88>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b7c=['ck-on','panelPosition','model','Show\x20more\x20items','first','locale','listenTo','button','isOpen','class','stopPropagation','bindTemplate','map','children','find','items','bind','function','action','isVisible','add','Name\x20this\x20revision','buttonView','isEnabled','_action','name','source','isReady','isActionsDropdownOpen','ck-revision-history-sidebar__revision__actions'];(function(_0x70d434,_0x1b7c26){const _0x22d23b=function(_0x1c8bf0){while(--_0x1c8bf0){_0x70d434['push'](_0x70d434['shift']());}};_0x22d23b(++_0x1b7c26);}(_0x1b7c,0x81));const _0x22d2=function(_0x70d434,_0x1b7c26){_0x70d434=_0x70d434-0x0;let _0x22d23b=_0x1b7c[_0x70d434];return _0x22d23b;};import{Collection as _0x57e16c}from'ckeditor5/src/utils';import{Model as _0x5e497e,addListToDropdown as _0x2c635a,createDropdown as _0x99a2ad}from'ckeditor5/src/ui';import{getTranslation as _0x2eb885}from'../../utils/common-translations';import _0x1c5211 from'@ckeditor/ckeditor5-core/theme/icons/three-vertical-dots.svg';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x47b109,_0x56f16b){const _0x5500b1=_0x47b109[_0x22d2('0x2')],_0x6755ae=_0x47b109[_0x22d2('0x1a')],_0x235001=_0x99a2ad(_0x6755ae);_0x235001[_0x22d2('0x16')]='sw';const _0x503b2a=function(_0x310ac1,_0x296dff){const _0x581aee=function(_0x56dd4a,_0x20f15f){const _0x4b6ef0=_0x56dd4a[_0x22d2('0x1a')],_0x2d0a41={'Compare\x20against\x20selected':_0x2eb885(_0x4b6ef0,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x2eb885(_0x4b6ef0,_0x22d2('0xc')),'Restore\x20this\x20revision':_0x2eb885(_0x4b6ef0,'Restore\x20this\x20revision')};return _0x20f15f[_0x22d2('0x3')](_0x549132=>{const _0x43471a=_0x2d0a41[_0x549132[_0x22d2('0x10')]];return _0x43471a&&_0x43471a!==_0x549132[_0x22d2('0x10')]&&(_0x549132['name']=_0x43471a),_0x549132;});}(_0x310ac1,_0x296dff),_0xe4465b=new _0x57e16c();for(const _0x50c72d of _0x581aee){const _0x3eb899={'type':_0x22d2('0x1c'),'model':new _0x5e497e({'label':_0x50c72d[_0x22d2('0x10')],'class':_0x50c72d[_0x22d2('0x0')],'withText':!0x0,'_action':_0x50c72d[_0x22d2('0x9')]})};_0x3eb899[_0x22d2('0x17')][_0x22d2('0x7')](_0x22d2('0xe'))['to'](_0x310ac1,_0x22d2('0x13'),_0x2c1e68=>'function'!=typeof _0x50c72d[_0x22d2('0xe')]||(!_0x2c1e68||_0x50c72d[_0x22d2('0xe')](_0x310ac1))),_0xe4465b[_0x22d2('0xb')](_0x3eb899);}return _0xe4465b;}(_0x47b109,_0x56f16b);return _0x47b109[_0x22d2('0x7')](_0x22d2('0x13'))['to'](_0x235001,_0x22d2('0x1d')),_0x235001[_0x22d2('0xd')]['set']({'label':_0x2eb885(_0x6755ae,_0x22d2('0x18')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1c5211}),_0x235001['extendTemplate']({'attributes':{'class':[_0x22d2('0x14'),_0x5500b1['if'](_0x22d2('0x13'),_0x22d2('0x15'))]},'on':{'click':_0x5500b1['to'](_0xd80e3e=>_0xd80e3e[_0x22d2('0x1')]())}}),_0x235001['on']('execute',_0xfef84a=>{_0x47b109[_0x22d2('0x12')]&&_0x22d2('0x8')==typeof _0xfef84a[_0x22d2('0x11')][_0x22d2('0xf')]&&_0xfef84a['source'][_0x22d2('0xf')](_0x47b109);}),_0x2c635a(_0x235001,_0x503b2a),_0x235001[_0x22d2('0x1b')](_0x47b109,'change:isActionsDropdownOpen',(_0x1df52b,_0xf77ab1,_0xd87576)=>{if(_0xd87576)for(const _0x5ec62b of _0x235001['listView'][_0x22d2('0x6')]){const _0x2c9d52=_0x5ec62b[_0x22d2('0x4')][_0x22d2('0x19')],_0x741b3e=_0x56f16b[_0x22d2('0x5')](_0x4caefb=>_0x4caefb[_0x22d2('0x9')]===_0x2c9d52[_0x22d2('0xf')])[_0x22d2('0xa')];_0x5ec62b['isVisible']=void 0x0===_0x741b3e||_0x741b3e(_0x47b109);}}),_0x235001;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1faf=['set','ck-revision-history-sidebar__revision-author__name','setTemplate','name','ck-revision-history-sidebar__revision-author_creator','Revision\x20author','0\x200\x2011\x2010','span'];(function(_0x4ffb05,_0x1faf4f){const _0x3fe2c8=function(_0x302e80){while(--_0x302e80){_0x4ffb05['push'](_0x4ffb05['shift']());}};_0x3fe2c8(++_0x1faf4f);}(_0x1faf,0x1b4));const _0x3fe2=function(_0x4ffb05,_0x1faf4f){_0x4ffb05=_0x4ffb05-0x0;let _0x3fe2c8=_0x1faf[_0x4ffb05];return _0x3fe2c8;};import{View as _0x3c949c,IconView as _0x12940d}from'ckeditor5/src/ui';import{getTranslation as _0x4f8217}from'../../utils/common-translations';import _0x15dfdd from'../../../theme/icons/user.svg';import'../../../theme/revision/revisionauthor.css';export default class ti extends _0x3c949c{constructor(_0x518324,_0x451d3f,_0x29f845){super(_0x518324);const _0x1a3ac3=new _0x12940d(_0x518324);_0x1a3ac3[_0x3fe2('0x4')]({'content':_0x15dfdd,'viewBox':_0x3fe2('0x2')});const _0x143966=['ck','ck-revision-history-sidebar__revision-author'];_0x29f845&&_0x143966['push'](_0x3fe2('0x0'));const _0x4839e6=[{'tag':_0x3fe2('0x3'),'attributes':{'class':['ck',_0x3fe2('0x5')],'title':_0x4f8217(_0x518324,_0x29f845?'Revision\x20creator':_0x3fe2('0x1'))},'children':[_0x1a3ac3,_0x451d3f[_0x3fe2('0x7')]]}];this[_0x3fe2('0x6')]({'tag':'li','attributes':{'class':_0x143966},'children':_0x4839e6});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x12bc=['set','span'];(function(_0x239944,_0x12bcf3){var _0x54dfc5=function(_0x1d65b5){while(--_0x1d65b5){_0x239944['push'](_0x239944['shift']());}};_0x54dfc5(++_0x12bcf3);}(_0x12bc,0xf9));var _0x54df=function(_0x239944,_0x12bcf3){_0x239944=_0x239944-0x0;var _0x54dfc5=_0x12bc[_0x239944];return _0x54dfc5;};import{LabeledFieldView as _0x30b2a3}from'ckeditor5/src/ui';import{getTranslation as _0x5de3bb}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class os extends _0x30b2a3{constructor(_0x22bc11,..._0x3e8847){super(_0x22bc11,..._0x3e8847),this[_0x54df('0x1')]({'label':_0x5de3bb(_0x22bc11,'Revision\x20name')}),this['extendTemplate']({'tag':_0x54df('0x0'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x64ab=['value','ck-reset','fieldView','set','deselect','revisionNameView','authors','ck-revision-history-sidebar__revision','uiLanguage','change','isReady','highlight','setTemplate','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','length','isActionsDropdownOpen','span','ck-disabled','name','fire','ck-revision-history-sidebar__revision_highlighted','bind','render','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__revision__controls-wrapper','revisionActionsView','map','.ck-thread__remove-confirm','srcElement','closest','isHighlighted','isConfirm','div','unshift','creator','isSelected','createdAt','unhighlight','_createdAtFormatted','setName','bindTemplate','ck-revision-history-sidebar__revision-authors','filter','isEnabled','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision__date','select','ck-revision-history-sidebar__actions_dropdown_open'];(function(_0x151379,_0x64ab6c){const _0x4b6413=function(_0x5414a0){while(--_0x5414a0){_0x151379['push'](_0x151379['shift']());}};_0x4b6413(++_0x64ab6c);}(_0x64ab,0xbc));const _0x4b64=function(_0x151379,_0x64ab6c){_0x151379=_0x151379-0x0;let _0x4b6413=_0x64ab[_0x151379];return _0x4b6413;};import{View as _0x219cae,createLabeledInputText as _0x1ccc4e}from'ckeditor5/src/ui';import{mix as _0x5602cf}from'ckeditor5/src/utils';import{ConfirmMixin as _0x3aec8d}from'ckeditor5-collaboration/src/collaboration-core';import _0x1d47fe from'./revisionnameview';import _0x1d6d66 from'./revisionauthorview';import{dateToPrettyFormat as _0x8ac044}from'./utils';import{createActionsDropdownView as _0x20a639}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ci extends _0x219cae{constructor(_0x5e5427,_0x187c33,_0x15a0a9){super(_0x5e5427);const _0x2f7481=this[_0x4b64('0x2c')],_0x268a8a=function(_0x33df54,_0x519998){const _0x36941a=Array['from'](_0x519998[_0x4b64('0xa')])[_0x4b64('0x2e')](_0x384853=>_0x384853!=_0x519998[_0x4b64('0x26')]);return _0x519998[_0x4b64('0x26')]&&_0x36941a[_0x4b64('0x25')](_0x519998[_0x4b64('0x26')]),_0x36941a[_0x4b64('0x1e')](_0x5b62bf=>new _0x1d6d66(_0x33df54,_0x5b62bf,_0x5b62bf==_0x519998[_0x4b64('0x26')]));}(_0x5e5427,_0x187c33);this['_revision']=_0x187c33,this['id']=_0x187c33['id'],this[_0x4b64('0x19')](_0x4b64('0x16'),_0x4b64('0x28'))['to'](_0x187c33),this[_0x4b64('0x7')](_0x4b64('0x27'),!0x1),this[_0x4b64('0x7')]('isHighlighted',!0x1),this[_0x4b64('0x7')](_0x4b64('0x13'),!0x1),this[_0x4b64('0x7')](_0x4b64('0xe'),!0x1),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3cd6b6=>_0x3cd6b6?_0x8ac044(_0x5e5427[_0x4b64('0xc')],_0x3cd6b6):null),this[_0x4b64('0x7')](_0x4b64('0x2f'),!0x1),this[_0x4b64('0x9')]=new _0x1d47fe(_0x5e5427,_0x1ccc4e),this[_0x4b64('0x9')]['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView'][_0x4b64('0x6')][_0x4b64('0x19')](_0x4b64('0x4'),'placeholder')['to'](this,_0x4b64('0x16'),_0x4b64('0x2a')),this[_0x4b64('0x9')][_0x4b64('0x19')]('isEnabled')['to'](this,_0x4b64('0x27'),this,_0x4b64('0x2f'),(_0x13349a,_0x316357)=>_0x13349a&&_0x316357),this[_0x4b64('0x1d')]=_0x15a0a9&&_0x15a0a9[_0x4b64('0x12')]?_0x20a639(this,_0x15a0a9):'',this[_0x4b64('0x1d')]['bind']('isEnabled')['to'](this),this[_0x4b64('0x10')]({'tag':_0x4b64('0x24'),'attributes':{'class':['ck',_0x4b64('0x5'),_0x4b64('0x1b'),_0x2f7481['if'](_0x4b64('0x23'),_0x4b64('0x11'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x4b64('0x5'),_0x4b64('0xb'),_0x2f7481['if'](_0x4b64('0x2f'),_0x4b64('0x15'),_0x122ebe=>!_0x122ebe),_0x2f7481['if']('isSelected',_0x4b64('0x0')),_0x2f7481['if'](_0x4b64('0x22'),_0x4b64('0x18')),_0x2f7481['if']('isActionsDropdownOpen',_0x4b64('0x3'))]},'children':[this[_0x4b64('0x9')],{'tag':_0x4b64('0x14'),'attributes':{'class':['ck',_0x4b64('0x1')]},'children':[{'text':_0x2f7481['to'](_0x4b64('0x2a'))}]},{'tag':'div','attributes':{'class':['ck',_0x4b64('0x1c')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x4b64('0x2d')]},'children':_0x268a8a}]},this[_0x4b64('0x1d')]],'on':{'click':_0x2f7481['to'](_0x1d9184=>{_0x1d9184[_0x4b64('0x20')][_0x4b64('0x21')](_0x4b64('0x1f'))||this[_0x4b64('0xe')]&&this['isEnabled']&&this[_0x4b64('0x17')](_0x4b64('0x2'),{'id':this['id']});})}}]});}[_0x4b64('0x1a')](){super['render']();const _0x4bfe09=this[_0x4b64('0x9')]['fieldView']['element'];this['listenTo'](_0x4bfe09,_0x4b64('0xd'),()=>{this[_0x4b64('0x17')](_0x4b64('0x2b'),{'id':this['id'],'name':_0x4bfe09[_0x4b64('0x4')]});});}[_0x4b64('0x2')](){this[_0x4b64('0x27')]=!0x0;}[_0x4b64('0x8')](){this[_0x4b64('0x27')]=!0x1;}[_0x4b64('0xf')](){this[_0x4b64('0x22')]=!0x0;}[_0x4b64('0x29')](){this[_0x4b64('0x22')]=!0x1;}}_0x5602cf(ci,_0x3aec8d);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8ec2=['ck-revision-history-sidebar__subrevision-collapser','bindTemplate','toggle','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser_collapsed','isVisible','span','click','true','button','setTemplate'];(function(_0x23c9a5,_0x8ec2a5){const _0x5f2a51=function(_0x451fbe){while(--_0x451fbe){_0x23c9a5['push'](_0x23c9a5['shift']());}};_0x5f2a51(++_0x8ec2a5);}(_0x8ec2,0xfa));const _0x5f2a=function(_0x23c9a5,_0x8ec2a5){_0x23c9a5=_0x23c9a5-0x0;let _0x5f2a51=_0x8ec2[_0x23c9a5];return _0x5f2a51;};import{View as _0x16ea6c}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class ls extends _0x16ea6c{constructor(_0x3116d3){super(_0x3116d3);const _0x230d51=this[_0x5f2a('0x4')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5f2a('0x2')]({'tag':_0x5f2a('0x9'),'attributes':{'class':['ck',_0x5f2a('0x3'),_0x230d51['if'](_0x5f2a('0x8'),'ck-hidden',_0x1e5ee0=>!_0x1e5ee0),_0x230d51['if'](_0x5f2a('0x6'),_0x5f2a('0x7'))],'role':_0x5f2a('0x1'),'aria-pressed':_0x230d51['to'](_0x5f2a('0x6'),_0x4090b7=>_0x4090b7?'false':_0x5f2a('0x0'))},'children':[{'tag':_0x5f2a('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x230d51['to'](_0x5f2a('0xa'))}});}[_0x5f2a('0x5')](){this[_0x5f2a('0x6')]=!this[_0x5f2a('0x6')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34da=['ck-revision-history-sidebar__subrevision','ck-revision-history-sidebar__revision__date','_createdAtFormatted','createdAt','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision','bind','span','fire','div','set','bindTemplate','isSelected','select','_parentRevisionId','setTemplate','ck-reset'];(function(_0x1ef2da,_0x34da05){const _0x43e7ef=function(_0x50c0a7){while(--_0x50c0a7){_0x1ef2da['push'](_0x1ef2da['shift']());}};_0x43e7ef(++_0x34da05);}(_0x34da,0xe6));const _0x43e7=function(_0x1ef2da,_0x34da05){_0x1ef2da=_0x1ef2da-0x0;let _0x43e7ef=_0x34da[_0x1ef2da];return _0x43e7ef;};import{View as _0x5d6c54}from'ckeditor5/src/ui';import _0x156e0b from'./revisionauthorview';import{dateToPrettyFormat as _0x3a6f1f}from'./utils';import'../../../theme/revision/subrevision.css';export default class dt extends _0x5d6c54{constructor(_0x185ca6,_0x22bf03,_0x2dd281){super(_0x185ca6);const _0x2b4a2a=this[_0x43e7('0x2')];this['id']=_0x22bf03['id'],this[_0x43e7('0xe')]('createdAt')['to'](_0x22bf03),this[_0x43e7('0x1')]('isSelected',!0x1),this[_0x43e7('0xe')]('_createdAtFormatted')['to'](this,_0x43e7('0xb'),_0x356e5e=>_0x356e5e?_0x3a6f1f(_0x185ca6['uiLanguage'],_0x356e5e):null),this[_0x43e7('0x5')]=_0x2dd281,this[_0x43e7('0x6')]({'tag':_0x43e7('0x0'),'attributes':{'class':['ck',_0x43e7('0x7'),_0x43e7('0xd'),_0x43e7('0x8'),_0x2b4a2a['if'](_0x43e7('0x3'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x43e7('0xf'),'attributes':{'class':['ck',_0x43e7('0x9')]},'children':[{'text':_0x2b4a2a['to'](_0x43e7('0xa'))}]},{'tag':'ul','attributes':{'class':['ck',_0x43e7('0xc')]},'children':[new _0x156e0b(_0x185ca6,_0x22bf03['author'],!0x0)]}],'on':{'click':_0x2b4a2a['to'](this[_0x43e7('0x4')][_0x43e7('0xe')](this))}});}[_0x43e7('0x4')](){this[_0x43e7('0x3')]=!0x0,this[_0x43e7('0x10')](_0x43e7('0x4'),{'parentId':this[_0x43e7('0x5')]});}['deselect'](){this[_0x43e7('0x3')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1de3=['toLocaleTimeString','long','numeric'];(function(_0x5cbc88,_0x1de309){var _0x14ad3c=function(_0x44661c){while(--_0x44661c){_0x5cbc88['push'](_0x5cbc88['shift']());}};_0x14ad3c(++_0x1de309);}(_0x1de3,0x1e9));var _0x14ad=function(_0x5cbc88,_0x1de309){_0x5cbc88=_0x5cbc88-0x0;var _0x14ad3c=_0x1de3[_0x5cbc88];return _0x14ad3c;};export function dateToPrettyFormat(_0x538162,_0x4297c2){return _0x4297c2['toLocaleDateString'](_0x538162,{'month':_0x14ad('0x1'),'day':_0x14ad('0x2')})+',\x20'+_0x4297c2[_0x14ad('0x0')](_0x538162,{'hour':_0x14ad('0x2'),'minute':'numeric'});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x353a=['delegate','extendTemplate','label','_createRevisionNameInput','focusTracker','execute','setTemplate','keystrokes','reset','add','revisionNameInputValue','render','forEach','ck-revision-history-save-revision-form','form','listenTo','type','Name\x20of\x20the\x20revision\x20(optional)','focus','revisionName','_focusCycler','shift\x20+\x20tab','stopPropagation','arrowleft','set','220','trim','fieldView','_focusables','Save','input','_createButton','cancel','ck-button-cancel','high','revisionNameInputView','value','locale','saveButtonView','arrowright','element','cancelButtonView','ck-button-save'];(function(_0x1266ea,_0x353a2a){const _0x49d51b=function(_0x37c802){while(--_0x37c802){_0x1266ea['push'](_0x1266ea['shift']());}};_0x49d51b(++_0x353a2a);}(_0x353a,0xb1));const _0x49d5=function(_0x1266ea,_0x353a2a){_0x1266ea=_0x1266ea-0x0;let _0x49d51b=_0x353a[_0x1266ea];return _0x49d51b;};import{ButtonView as _0x41caec,FocusCycler as _0x43d314,LabeledFieldView as _0x5712f3,View as _0x2635c0,ViewCollection as _0x460097,createLabeledInputText as _0x5ce864,injectCssTransitionDisabler as _0x3e0d35,submitHandler as _0x4eb6cd}from'ckeditor5/src/ui';import{FocusTracker as _0x279eb2,KeystrokeHandler as _0x34fed5}from'ckeditor5/src/utils';import{getTranslation as _0x41fde4}from'../../utils/common-translations';import _0x15282d from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import _0x592d28 from'@ckeditor/ckeditor5-core/theme/icons/cancel.svg';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class gt extends _0x2635c0{constructor(_0xc1220d){super(_0xc1220d),this[_0x49d5('0x2a')]=new _0x279eb2(),this['keystrokes']=new _0x34fed5(),this[_0x49d5('0x13')]('revisionNameInputValue',''),this['revisionNameInputView']=this[_0x49d5('0x29')](),this[_0x49d5('0x21')]=this[_0x49d5('0x1a')](_0x41fde4(_0xc1220d,_0x49d5('0x18')),_0x15282d,_0x49d5('0x25')),this['saveButtonView'][_0x49d5('0xb')]='submit',this[_0x49d5('0x24')]=this['_createButton'](_0x41fde4(_0xc1220d,'Cancel'),_0x592d28,_0x49d5('0x1c'),_0x49d5('0x1b')),this[_0x49d5('0x17')]=new _0x460097(),this[_0x49d5('0xf')]=new _0x43d314({'focusables':this[_0x49d5('0x17')],'focusTracker':this[_0x49d5('0x2a')],'keystrokeHandler':this[_0x49d5('0x2')],'actions':{'focusPrevious':_0x49d5('0x10'),'focusNext':'tab'}}),this[_0x49d5('0x1')]({'tag':_0x49d5('0x9'),'attributes':{'class':['ck',_0x49d5('0x8'),'ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x49d5('0x21')],this[_0x49d5('0x24')]]}),_0x3e0d35(this);}[_0x49d5('0x6')](){super[_0x49d5('0x6')](),_0x4eb6cd({'view':this}),([this['revisionNameInputView'],this['saveButtonView'],this['cancelButtonView']][_0x49d5('0x7')](_0x544337=>{this[_0x49d5('0x17')][_0x49d5('0x4')](_0x544337),this['focusTracker'][_0x49d5('0x4')](_0x544337[_0x49d5('0x23')]);}),this[_0x49d5('0x2')]['listenTo'](this['element']));const _0x568cc2=_0x1c64d1=>_0x1c64d1[_0x49d5('0x11')]();this[_0x49d5('0x2')]['set'](_0x49d5('0x22'),_0x568cc2),this['keystrokes']['set'](_0x49d5('0x12'),_0x568cc2),this[_0x49d5('0x2')][_0x49d5('0x13')]('arrowup',_0x568cc2),this[_0x49d5('0x2')][_0x49d5('0x13')]('arrowdown',_0x568cc2),this[_0x49d5('0xa')](this[_0x49d5('0x1e')][_0x49d5('0x23')],'selectstart',(_0x519a6b,_0x3df044)=>{_0x3df044[_0x49d5('0x11')]();},{'priority':_0x49d5('0x1d')});}[_0x49d5('0xd')](){this[_0x49d5('0xf')]['focusFirst']();}get['revisionName'](){return this['revisionNameInputView'][_0x49d5('0x16')][_0x49d5('0x23')][_0x49d5('0x1f')][_0x49d5('0x15')]();}set[_0x49d5('0xe')](_0x518934){this[_0x49d5('0x1e')]['fieldView'][_0x49d5('0x23')]['value']=_0x518934[_0x49d5('0x15')]();}[_0x49d5('0x3')](){this[_0x49d5('0x1e')][_0x49d5('0x16')][_0x49d5('0x23')]['value']='';}['_createRevisionNameInput'](){const _0x29d420=new _0x5712f3(this[_0x49d5('0x20')],_0x5ce864),_0x30c6f5=_0x29d420['fieldView'];return _0x30c6f5[_0x49d5('0x27')]({'attributes':{'maxlength':_0x49d5('0x14')}}),_0x29d420[_0x49d5('0x28')]=_0x41fde4(this[_0x49d5('0x20')],_0x49d5('0xc')),_0x30c6f5['on'](_0x49d5('0x19'),()=>{this[_0x49d5('0x5')]=_0x30c6f5[_0x49d5('0x23')][_0x49d5('0x1f')]['trim']();}),_0x29d420;}['_createButton'](_0x196c5a,_0x2973b2,_0x30e82f,_0x4437c7){const _0x46e82f=new _0x41caec(this['locale']);return _0x46e82f[_0x49d5('0x13')]({'label':_0x196c5a,'icon':_0x2973b2,'tooltip':!0x0}),_0x46e82f['extendTemplate']({'attributes':{'class':_0x30e82f}}),_0x4437c7&&_0x46e82f[_0x49d5('0x26')](_0x49d5('0x0'))['to'](this,_0x4437c7),_0x46e82f;}}
|