@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231010.0 → 0.0.0-nightly-20231012.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- 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 _0x5b32=['offsetSize','findIndex','comment','top','keys','_getChangeFromId','_cleanMarkers','getCustomProperty','config','restoreRevisionCallback','_sortAndFilterDiffChanges','document','concat','dataDowncast','createPositionFromPath','markerToData','index','createUIElement','isEqual','_initInteractions','getRootNames','level','ck-suggestion-marker-split','target','element','side','_markSuggestions','getWalker','toData','range','vid_end','insertion','name','first','_refreshStartEndIndex','_getRevisionsRange','activeView','_joinTapes','ck-suggestion-preview-marker','getAttributes','resolve','getIndex','ck-suggestion-marker-merge','consumable','addClass','toModel','parent','isSuggestion','children','RevisionViewer','_findChangeIdFromDomTarget','isAddSuggestion','forceDisabled','isOnRoot','isInline','getRoot','dataToMarker','_appendChild','modelRange','listenTo','startIndex','mapper','reconvertMarker','get','removeClass','getClientRects','revision-suggestion','createAttributeElement','schema','markerName','newRevisionId','isContent','refresh','catch','set','bindElementToMarker','vid_start','suggestion','for','revision-suggestion:','adapter','revisionHistoryAttachChange','_removeUnsupportedChanges','oldRevisionId','remove','uiElement','editing','_revisions','flat','bind','isRemoved','locale','add','startsWith','_makeTape','consume','isAtEnd','deletions','repository','bottom','toViewPosition','upcast','_setDistance','data-change-id','end','changes','high','distance','start','isNavigationMode','WidgetToolbarRepository','data','domConverter','revisionHistoryLabel','_balloon','nextSibling','_markInsertions','length','element:pre','ck-revision-history-root-remove','isAdded','type','backward','nodeAfter','enqueueChange','indexOf','insertions','isAfter','test','_setConversion','_getViewObj','isAtStart','selection','rootName','removeMarker:revision','markers','getAttribute','map','enableReadOnlyMode','addHighlight','_activeViewTarget','_cleanUp','data-revision-','model','domEvent','has','from','endIndex','isBlock','useFillerType','_threeWayMerge','includes','affectsData','change:isReady','unshift','_changeIdToChange','_processTape','forward','shift','elementStart','ck-revision-history-root--active','_removeRevisionMarkers','execute','code','markerNameToElements','getItems','ck-revision-history-root-add','addRevisionData','attachChange','suggestion:','downcastDispatcher','isBefore','next','_data','diff','isReady','getDomRoot','change','conversion','pairId','_fixObsoleteTags','isRemoveSuggestion','markersStart','view','addRoot','unbindElementFromMarkerName','activeChange','currentChangeNumber','requires','ck-revision-history-root-','_changeView','revision','init','commands','change:activeChange','mousedown','change:activeView','all','deletion','editingDowncast','toViewElement','createPositionBefore','_step','wrap','slice','ck-suggestion-marker--active','setAttribute','showNextChange','then','item','ck-suggestion-marker','editor','destroy','compare','_markMarkers','plugins','change:isEnabled','abs','splice','isEnabled','done','_markMismatchedRemovedTags','filter','createRange','forEach','revision:','return','softBreak','mapViewToDom','markerToHighlight','mouseover','isLimit','-new','highest','writer','getChild','previousPosition','addMarker:revision','nextPosition','text','low','attributesBefore','split','string','attributes','markersEnd','stop','object','elementEnd','isIncorrect','maxOffset','RevisionsRepository','markerRange','isAttached','diffData','_update','clear','userId','_removeMissingPairs','_setChanges','getRevision','isCollapsed','revision-comment:','viewItem','revision-viewer','loadRevisionData','getRevisionRootsAttributes','addMarker:revision-suggestion:insertion','detachRoot','delete','sort','attributesAfter','hasAttribute','changeId','_getViewForChange','vid','span','ck-suggestion-marker-','push','_makeModelFromViewString','parse','addRevision','insert','revisionHistory','ck-editor__editable__overlay','right','merge','_makeModelFromTape','processor'];(function(_0x525bb1,_0x5b328f){const _0x20bf46=function(_0x5f3b7b){while(--_0x5f3b7b){_0x525bb1['push'](_0x525bb1['shift']());}};_0x20bf46(++_0x5b328f);}(_0x5b32,0x1be));const _0x20bf=function(_0x525bb1,_0x5b328f){_0x525bb1=_0x525bb1-0x0;let _0x20bf46=_0x5b32[_0x525bb1];return _0x20bf46;};import{Plugin as _0x1f5549,Command as _0x48e309}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x98832}from'ckeditor5/src/utils';import{ContextualBalloon as _0x5ad0f0}from'ckeditor5/src/ui';import{DocumentFragment as _0x5600b3,Element as _0xf7bb48,Text as _0x43992d,ViewDocumentFragment as _0x5421bf,ViewText as _0x1017eb,ViewElement as _0x161ef3,ViewContainerElement as _0x250000,ViewAttributeElement as _0x52c04f,ViewEmptyElement as _0x27094d,ViewRawElement as _0x140c49,ViewUIElement as _0x7a41c0}from'ckeditor5/src/engine';import{Users as _0x3c7e7a,getMarkerDomElement as _0xd912bf}from'ckeditor5-collaboration/src/collaboration-core';import _0x1c09bf from'./ui/revisionviewer/changedetailsview';import _0x22a1d1 from'./revisionsrepository';import _0x45af27 from'./changeitem';import{default as _0xf859ff}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x38bd10}from'lodash-es';const tt={'c':_0x250000,'a':_0x52c04f,'e':_0x27094d,'r':_0x140c49,'u':_0x7a41c0};export default class d extends _0x1f5549{static get['pluginName'](){return _0x20bf('0xb5');}static get[_0x20bf('0x1f')](){return[_0x3c7e7a,_0x5ad0f0,_0x22a1d1];}constructor(_0x47807d){super(_0x47807d),this[_0x20bf('0xe6')]=this[_0x20bf('0x36')]['plugins'][_0x20bf('0xc3')](_0x20bf('0x5e')),this['set'](_0x20bf('0x1d'),null),this['set'](_0x20bf('0xa8'),null),this[_0x20bf('0x110')]=null,this[_0x20bf('0xce')](_0x20bf('0x11'),null),this[_0x20bf('0xce')]('isReady',!0x1),this[_0x20bf('0xce')]('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1db370,_0x5f288c,_0x3d36a4)=>{this['activeChange']=null,this[_0x20bf('0xa8')]=null,this[_0x20bf('0x36')][_0x20bf('0xda')][_0x20bf('0x1a')][_0x20bf('0x14')](_0x131748=>{for(const _0x425f55 of this[_0x20bf('0x36')][_0x20bf('0xda')][_0x20bf('0x1a')][_0x20bf('0x8f')]['roots'])_0x3d36a4?_0x131748[_0x20bf('0xc4')](_0x20bf('0x7f'),_0x425f55):_0x131748[_0x20bf('0xb0')](_0x20bf('0x7f'),_0x425f55);});}),this[_0x20bf('0xdd')](_0x20bf('0xf1'))['to'](this,'activeChange',_0x49a39c=>null!==_0x49a39c),this[_0x20bf('0xdd')](_0x20bf('0x1e'))['to'](this,'isReady',this,_0x20bf('0x11'),this,'activeChange',(_0x3d9f42,_0x172a6e,_0x47f758)=>_0x3d9f42&&_0x47f758?_0x172a6e[_0x20bf('0xed')][_0x20bf('0xad')](_0x47f758):0x0),this[_0x20bf('0xdd')]('numberOfChanges')['to'](this,_0x20bf('0x12'),this,_0x20bf('0x11'),(_0x202ca7,_0x328b86)=>_0x202ca7?_0x328b86[_0x20bf('0xed')][_0x20bf('0xf9')]:0x0),this[_0x20bf('0x21')]=null,this[_0x20bf('0x11f')]=new Map(),this[_0x20bf('0xd4')]=null,this[_0x20bf('0xf6')]=this['editor'][_0x20bf('0x3a')][_0x20bf('0xc3')](_0x5ad0f0);}[_0x20bf('0x23')](){const _0x34af69=this[_0x20bf('0x36')],_0x1c48f9=new ShowChangeCommand(_0x34af69,{'direction':_0x20bf('0xfe')}),_0x25bd45=new ShowChangeCommand(_0x34af69,{'direction':_0x20bf('0x0')});(_0x34af69[_0x20bf('0x24')][_0x20bf('0xe0')]('showPreviousChange',_0x1c48f9),_0x34af69['commands'][_0x20bf('0xe0')](_0x20bf('0x32'),_0x25bd45),_0x34af69[_0x20bf('0x24')][_0x20bf('0xe0')]('restoreRevision',new RestoreRevisionCommand(_0x34af69)),this['on']('change:numberOfChanges',()=>{_0x1c48f9[_0x20bf('0xcc')](),_0x25bd45[_0x20bf('0xcc')]();}),this[_0x20bf('0x105')](),this[_0x20bf('0x97')](),_0x34af69[_0x20bf('0x10e')]('revision-viewer'),_0x34af69[_0x20bf('0x3a')][_0x20bf('0x115')](_0x20bf('0xf2')))&&_0x34af69[_0x20bf('0x3a')][_0x20bf('0xc3')](_0x20bf('0xf2'))[_0x20bf('0xb8')](_0x20bf('0x6b'));}async['getRevisionData'](_0x49458b){await this['loadRevisionData'](_0x49458b);const _0x284a4c={};for(const _0x119470 in _0x49458b[_0x20bf('0x61')]){if(_0x49458b['diffData'][_0x119470]['attachChange']&&!_0x49458b[_0x20bf('0x61')][_0x119470][_0x20bf('0xb')][_0x20bf('0x60')])continue;const _0x4aabad=this[_0x20bf('0x4')](JSON[_0x20bf('0x7b')](_0x49458b[_0x20bf('0x61')][_0x119470]['insertions'])),_0x56f9ae=this[_0x20bf('0x36')]['editing'][_0x20bf('0x1a')]['document'],_0x436704=new _0x5421bf(_0x56f9ae,_0x4aabad[_0x20bf('0x10d')](_0x31857c=>this[_0x20bf('0x106')](_0x31857c)));this[_0x20bf('0x36')][_0x20bf('0xf3')][_0x20bf('0x83')][_0x20bf('0x119')]('marked'),_0x284a4c[_0x119470]=this[_0x20bf('0x36')][_0x20bf('0xf3')][_0x20bf('0x83')][_0x20bf('0xa0')](_0x436704),this['editor']['data'][_0x20bf('0x83')][_0x20bf('0x119')]('default');}return _0x284a4c;}async[_0x20bf('0x6d')](_0x474a5b){await this[_0x20bf('0x6c')](_0x474a5b);const _0x418d3c={};for(const _0x29bd96 in _0x474a5b[_0x20bf('0x61')])_0x474a5b['diffData'][_0x29bd96][_0x20bf('0xb')]&&!_0x474a5b[_0x20bf('0x61')][_0x29bd96][_0x20bf('0xb')][_0x20bf('0x60')]||(_0x418d3c[_0x29bd96]=_0x474a5b['diffData'][_0x29bd96]['attributesAfter']||{});return _0x418d3c;}['_removeRevisionMarkers'](_0x1e0d8a){return(_0x1e0d8a=_0x1e0d8a[_0x20bf('0x41')](_0x504662=>!_0x504662[_0x20bf('0xa4')]||'revision-start'!==_0x504662[_0x20bf('0xa4')]&&'revision-end'!==_0x504662['name']))[_0x20bf('0x43')](_0x35f203=>{_0x20bf('0x56')!=typeof _0x35f203&&(_0x35f203[_0x20bf('0xb4')]=this['_removeRevisionMarkers'](_0x35f203['children']),_0x35f203[_0x20bf('0x57')]=_0x35f203[_0x20bf('0x57')][_0x20bf('0x41')](_0x4ec497=>!_0x4ec497[0x0][_0x20bf('0xe1')](_0x20bf('0x112'))));}),_0x1e0d8a;}async[_0x20bf('0x38')](_0x5844e5,_0xe0a2b2,_0x53f4c9=!0x1){if(!this['isEnabled'])return;const _0x43c4a6=this[_0x20bf('0x11')],_0x36a917=this[_0x20bf('0xe6')],_0xbe9ddc=_0x20bf('0x56')==typeof _0x5844e5?_0x36a917['getRevision'](_0x5844e5):_0x5844e5,_0x390a55=_0x20bf('0x56')==typeof _0xe0a2b2?_0x36a917['getRevision'](_0xe0a2b2):_0xe0a2b2,_0x4bec9a=_0xbe9ddc['id'],_0x4c4f70=_0x390a55?_0x390a55['id']:null;if(!_0x53f4c9&&this[_0x20bf('0x11')]&&this[_0x20bf('0x11')]['newRevisionId']===_0x4bec9a&&this[_0x20bf('0x11')][_0x20bf('0xd7')]===_0x4c4f70)return Promise['resolve']();this['isReady']=!0x1,this[_0x20bf('0xa8')]=null,this['activeChange']=null,this['diff']=new _0xf859ff(_0x4bec9a,_0x4c4f70);const _0x2c93f9=this[_0x20bf('0xa7')](_0xbe9ddc,_0x390a55,!0x0)['map'](_0x43b5f6=>this['loadRevisionData'](_0x43b5f6));return _0x2c93f9[_0x20bf('0x79')](new Promise(_0x53848a=>{setTimeout(_0x53848a,0x14);})),Promise[_0x20bf('0x28')](_0x2c93f9)[_0x20bf('0x33')](()=>{if(!this[_0x20bf('0x3e')])return;this['_cleanUp']();const _0x1d3df3=this['_getDiff'](_0x4bec9a,_0x4c4f70);for(const _0x28791f of _0x1d3df3[_0x20bf('0xed')])this[_0x20bf('0x11f')][_0x20bf('0xce')](_0x28791f['id'],_0x28791f);this['editor'][_0x20bf('0x113')]['enqueueChange']({'isUndoable':!0x1},_0x5b02a1=>{for(const _0x4a041e of this[_0x20bf('0x36')][_0x20bf('0x113')][_0x20bf('0x8f')][_0x20bf('0x98')]())_0x5b02a1['detachRoot'](_0x4a041e);for(const _0x1aede5 of Object['keys'](_0x1d3df3[_0x20bf('0x113')])){const _0x501c0c=_0x5b02a1[_0x20bf('0x1b')](_0x1aede5);for(const _0x1375fb of Object['keys'](_0x1d3df3[_0x20bf('0x57')][_0x1aede5]))_0x5b02a1[_0x20bf('0x31')](_0x1375fb,_0x1d3df3[_0x20bf('0x57')][_0x1aede5][_0x1375fb],_0x501c0c);_0x5b02a1[_0x20bf('0x7d')](_0x1d3df3['model'][_0x1aede5],_0x501c0c,0x0);}}),this[_0x20bf('0x11')][_0x20bf('0x66')](this[_0x20bf('0x8e')](_0x1d3df3['changes'])),this['isReady']=!0x0;})[_0x20bf('0xcd')](_0x1cf004=>{console['error'](_0x1cf004),this['_cleanUp'](),_0x43c4a6&&(this[_0x20bf('0x11')]=_0x43c4a6),this[_0x20bf('0x12')]=!0x0;});}[_0x20bf('0xa')](_0x2521a9,_0x3355f8){const _0x480d2=this[_0x20bf('0xe6')]['createRevision'](_0x2521a9);return _0x480d2['on'](_0x20bf('0x62'),(_0x5e3d52,_0x345836,_0x30e1ea)=>_0x3355f8(_0x345836,_0x30e1ea,_0x480d2)),this[_0x20bf('0xe6')][_0x20bf('0x7c')](_0x480d2),_0x480d2;}[_0x20bf('0x6c')](_0x3dcfd0){if(!_0x3dcfd0||_0x3dcfd0[_0x20bf('0x61')])return Promise[_0x20bf('0xac')]();{const _0x1c0b75=this['editor']['config'][_0x20bf('0xc3')]('collaboration.channelId');return this[_0x20bf('0xd4')][_0x20bf('0x67')]({'channelId':_0x1c0b75,'revisionId':_0x3dcfd0['id']})[_0x20bf('0x33')](_0x18325f=>{_0x3dcfd0['_update']({'diffData':_0x18325f[_0x20bf('0x61')]},!0x0);});}}[_0x20bf('0x111')](){this[_0x20bf('0x1d')]=null,this[_0x20bf('0x8a')](),this[_0x20bf('0x21')]&&this[_0x20bf('0x21')]['destroy'](),this[_0x20bf('0x21')]=null,this[_0x20bf('0x11f')][_0x20bf('0x63')](),this[_0x20bf('0x36')][_0x20bf('0x113')][_0x20bf('0x100')]({'isUndoable':!0x1},_0x2846bb=>{for(const _0x9ebc5c of this[_0x20bf('0x36')]['model'][_0x20bf('0x8f')][_0x20bf('0x98')]())_0x2846bb[_0x20bf('0x6f')](_0x9ebc5c);});}[_0x20bf('0x8e')](_0x3cfe77){const _0x48f3a7=[],_0x18dc0f=new Map();for(const _0x323f25 of this['editor'][_0x20bf('0x113')][_0x20bf('0x8f')]['getRootNames']()){const _0x486b8c=this[_0x20bf('0x36')][_0x20bf('0xda')][_0x20bf('0x1a')][_0x20bf('0x13')](_0x323f25);if(!_0x486b8c)continue;const _0x7e4ef7=_0x486b8c['getClientRects']()['item'](0x0);_0x7e4ef7&&(_0x48f3a7[_0x20bf('0x79')](_0x323f25),_0x18dc0f[_0x20bf('0xce')](_0x323f25,_0x7e4ef7));}return _0x48f3a7[_0x20bf('0x71')]((_0x453fec,_0x4589e6)=>{const _0x11a3b4=_0x18dc0f[_0x20bf('0xc3')](_0x453fec),_0x17442c=_0x18dc0f['get'](_0x4589e6);return _0x11a3b4['y']-_0x17442c['y']||_0x11a3b4['x']-_0x17442c['x'];}),(_0x3cfe77=_0x3cfe77['filter'](_0x5b9cae=>_0x48f3a7[_0x20bf('0x11b')](_0x5b9cae[_0x20bf('0x109')])))[_0x20bf('0x71')]((_0x4bdf62,_0x233d7a)=>_0x48f3a7[_0x20bf('0x101')](_0x4bdf62[_0x20bf('0x109')])-_0x48f3a7[_0x20bf('0x101')](_0x233d7a[_0x20bf('0x109')])),_0x3cfe77;}[_0x20bf('0xe2')](_0x384a30){const _0x187948=Array[_0x20bf('0x116')](_0x384a30[_0x20bf('0x10b')])[_0x20bf('0x41')](([_0x30e4bd,_0x2a387e])=>_0x30e4bd[_0x20bf('0xe1')](_0x20bf('0x44'))&&!_0x2a387e[_0x20bf('0x68')]),_0x14ffc5=Array[_0x20bf('0x116')](this[_0x20bf('0x36')]['model']['createRangeIn'](_0x384a30)[_0x20bf('0x9f')]({'singleCharacters':!0x0}));if(0x0!=_0x187948[_0x20bf('0xf9')])for(const _0x118a81 of _0x14ffc5){const [_0xa6474b,_0x1dbb83]=_0x187948[0x0],[,_0x47f393,_0x5b0975]=_0xa6474b[_0x20bf('0x55')](':');if(_0x1dbb83[_0x20bf('0xec')]['isEqual'](_0x118a81[_0x20bf('0x51')])&&_0x187948['shift'](),(_0x118a81[_0x20bf('0x4f')][_0x20bf('0x96')](_0x1dbb83['start'])||_0x118a81[_0x20bf('0x4f')][_0x20bf('0x103')](_0x1dbb83[_0x20bf('0xf0')]))&&(_0x20bf('0xa3')==_0x47f393?_0x118a81[_0x20bf('0xfc')]={'userId':_0x5b0975}:'deletion'==_0x47f393&&(_0x118a81[_0x20bf('0xde')]={'userId':_0x5b0975})),0x0==_0x187948['length'])break;}return _0x14ffc5;}['_refreshStartEndIndex'](_0x50002d){const _0x51889c=new Map();for(let _0x3b4ef5=0x0;_0x3b4ef5<_0x50002d['length'];_0x3b4ef5++)_0x20bf('0x52')===_0x50002d[_0x3b4ef5]['type']?(_0x50002d[_0x3b4ef5][_0x20bf('0x34')]['startIndex']=_0x3b4ef5,_0x50002d[_0x3b4ef5]['item'][_0x20bf('0x117')]=_0x3b4ef5):(_0x20bf('0x2')===_0x50002d[_0x3b4ef5][_0x20bf('0xfd')]?_0x50002d[_0x3b4ef5][_0x20bf('0x34')][_0x20bf('0xc0')]=_0x3b4ef5:_0x20bf('0x5b')===_0x50002d[_0x3b4ef5][_0x20bf('0xfd')]&&(_0x50002d[_0x3b4ef5][_0x20bf('0x34')][_0x20bf('0x117')]=_0x3b4ef5),_0x51889c['set'](_0x50002d[_0x3b4ef5]['id'],_0x3b4ef5));for(const _0x5e07a1 of _0x51889c['values']())'elementStart'===_0x50002d[_0x5e07a1]['type']?_0x50002d[_0x5e07a1]['item'][_0x20bf('0x117')]=_0x51889c[_0x20bf('0xc3')](_0x50002d[_0x5e07a1][_0x20bf('0x16')]):_0x20bf('0x5b')===_0x50002d[_0x5e07a1][_0x20bf('0xfd')]&&(_0x50002d[_0x5e07a1][_0x20bf('0x34')][_0x20bf('0xc0')]=_0x51889c[_0x20bf('0xc3')](_0x50002d[_0x5e07a1][_0x20bf('0x16')]));}[_0x20bf('0x120')](_0x2ba03e){for(let _0x6d9aad=0x0;_0x6d9aad<_0x2ba03e[_0x20bf('0xf9')];_0x6d9aad++){if(_0x20bf('0x2')===_0x2ba03e[_0x6d9aad][_0x20bf('0xfd')])_0x2ba03e[_0x6d9aad][_0x20bf('0x34')]['startIndex']=_0x6d9aad;else{if(_0x20bf('0x5b')===_0x2ba03e[_0x6d9aad]['type']){_0x2ba03e[_0x6d9aad]['item'][_0x20bf('0x117')]=_0x6d9aad;const _0x2ebc6e=_0x2ba03e[_0x6d9aad][_0x20bf('0x34')][_0x20bf('0xc0')];_0x2ba03e[_0x2ebc6e][_0x20bf('0x16')]=_0x2ba03e[_0x6d9aad]['id'],_0x2ba03e[_0x6d9aad][_0x20bf('0x16')]=_0x2ba03e[_0x2ebc6e]['id'];}else _0x2ba03e[_0x6d9aad][_0x20bf('0x34')][_0x20bf('0xc0')]=_0x6d9aad,_0x2ba03e[_0x6d9aad][_0x20bf('0x34')]['endIndex']=_0x6d9aad,_0x2ba03e[_0x6d9aad][_0x20bf('0x16')]=null;}_0x2ba03e[_0x6d9aad][_0x20bf('0x19')]||(_0x2ba03e[_0x6d9aad][_0x20bf('0x19')]=[],_0x2ba03e[_0x6d9aad]['markersEnd']=[]);}}[_0x20bf('0xf8')](_0x1dcb60,_0x212693){const _0x438a63=_0x1dcb60['filter'](_0x5271fd=>!_0x5271fd[_0x20bf('0xfc')]);for(let _0x1cadda=0x0;_0x1cadda<_0x212693['length'];_0x1cadda++)_0x212693[_0x1cadda][_0x20bf('0xfc')]&&(_0x438a63[_0x1cadda][_0x20bf('0xfc')]=_0x212693[_0x1cadda][_0x20bf('0xfc')]);}['_makeModelFromViewString'](_0x3da0fe){const _0x3b6a97=JSON[_0x20bf('0x7b')](_0x3da0fe),_0x70a92f=this[_0x20bf('0x36')]['editing']['view']['document'],_0x35db0f=new _0x5421bf(_0x70a92f,_0x3b6a97['map'](_0x3ab7c2=>this[_0x20bf('0x106')](_0x3ab7c2)));return this[_0x20bf('0x36')]['data'][_0x20bf('0xb1')](_0x35db0f);}[_0x20bf('0x106')](_0x22befb){const _0x347e33=this[_0x20bf('0x36')]['editing'][_0x20bf('0x1a')][_0x20bf('0x8f')];if(_0x20bf('0x56')==typeof _0x22befb)return new _0x1017eb(_0x347e33,_0x22befb);{const _0x9bde61=_0x22befb[_0x20bf('0xb4')][_0x20bf('0x10d')](_0x252030=>this[_0x20bf('0x106')](_0x252030));return new(tt[_0x22befb['type']]||_0x161ef3)(_0x347e33,_0x22befb[_0x20bf('0xa4')],_0x22befb['attributes'],_0x9bde61);}}['_getDiff'](_0x31107b,_0x141469=null){const _0x103ff2=this[_0x20bf('0xe6')]['getRevision'](_0x31107b),_0x504ba2=_0x141469?this['repository'][_0x20bf('0x67')](_0x141469):null,_0x5dc3cf=this[_0x20bf('0xa7')](_0x103ff2,_0x504ba2),_0x41f9d2=_0x5dc3cf[_0x5dc3cf['length']-0x1],_0x2c6513=new Map(),_0x1242a2={'model':{},'attributes':{},'changes':[]},_0x11b2b6=new Set(),_0x3b5081=new Map();for(let _0x165523=_0x5dc3cf[_0x20bf('0xf9')]-0x1;_0x165523>=0x0;_0x165523--){const _0x1f2add=_0x5dc3cf[_0x165523];for(const _0x448ade of Object[_0x20bf('0x88')](_0x1f2add[_0x20bf('0x61')]))if(_0x1f2add['diffData'][_0x448ade][_0x20bf('0xb')]){const _0x406c47=_0x1f2add[_0x20bf('0x61')][_0x448ade][_0x20bf('0xb')];_0x406c47[_0x20bf('0x60')]?(_0x11b2b6[_0x20bf('0xe0')](_0x448ade),_0x3b5081['has'](_0x448ade)&&_0x3b5081[_0x20bf('0xc3')](_0x448ade)['userId']==_0x406c47[_0x20bf('0x64')]?_0x3b5081['delete'](_0x448ade):_0x3b5081[_0x20bf('0xce')](_0x448ade,_0x406c47)):_0x3b5081['has'](_0x448ade)?(_0x11b2b6[_0x20bf('0x70')](_0x448ade),_0x3b5081[_0x20bf('0x70')](_0x448ade)):(_0x11b2b6['add'](_0x448ade),_0x3b5081[_0x20bf('0xce')](_0x448ade,_0x406c47));}else _0x11b2b6[_0x20bf('0xe0')](_0x448ade);}for(const _0x71ffde of _0x11b2b6){const _0xadb5a=_0x3b5081[_0x20bf('0x115')](_0x71ffde)&&!_0x3b5081['get'](_0x71ffde)[_0x20bf('0x60')];let _0x9e2e57=_0xadb5a?_0x5dc3cf[_0x20bf('0xf9')]-0x1:0x0;const _0x23c620=_0xadb5a?-0x1:0x1;for(;_0x5dc3cf[_0x9e2e57];){const _0x34ec07=_0x5dc3cf[_0x9e2e57];if(_0x34ec07['diffData'][_0x71ffde]){const _0x5b9059=_0xadb5a?_0x34ec07[_0x20bf('0x61')][_0x71ffde][_0x20bf('0x54')]:_0x34ec07[_0x20bf('0x61')][_0x71ffde][_0x20bf('0x72')];_0x1242a2['attributes'][_0x71ffde]=_0x5b9059?_0x38bd10(_0x5b9059):{};break;}_0x9e2e57+=_0x23c620;}}for(const _0x4c511e of _0x5dc3cf){_0x4c511e['model']={};for(const _0x33b0db of _0x4c511e['authors'])_0x2c6513[_0x20bf('0xce')](_0x33b0db['id'],_0x33b0db);for(const _0x46f389 of _0x11b2b6){const _0x4d056c=_0x4c511e[_0x20bf('0x61')][_0x46f389]?_0x4c511e[_0x20bf('0x61')][_0x46f389][_0x20bf('0x102')]:'[]',_0x2a9b3d=_0x4c511e['diffData'][_0x46f389]?_0x4c511e[_0x20bf('0x61')][_0x46f389][_0x20bf('0xe5')]:'[]';_0x4c511e[_0x20bf('0x113')][_0x46f389]={'insertions':this[_0x20bf('0x7a')](_0x4d056c),'deletions':this[_0x20bf('0x7a')](_0x2a9b3d)};}}for(const _0x5d11af of _0x11b2b6){let _0x4dca64=null,_0x1f5a01=0x0;const _0x34a9b2=new Map(Array[_0x20bf('0x116')](_0x103ff2['model'][_0x5d11af]['insertions'][_0x20bf('0x10b')])['filter'](([_0x2d64d5])=>!_0x2d64d5[_0x20bf('0xe1')](_0x20bf('0x44'))));let _0x3c6cd1=0x0;for(const _0xe7417 of _0x5dc3cf){const _0x58343d=this['_makeTape'](_0xe7417[_0x20bf('0x113')][_0x5d11af][_0x20bf('0x102')]);_0xe7417==_0x103ff2?(_0x4dca64=_0x58343d,_0x1f5a01=_0x4dca64[_0x20bf('0xf9')],_0x4dca64[_0x20bf('0x43')](_0x1f4441=>{_0x1f4441['id']=_0x3c6cd1++;}),this[_0x20bf('0x120')](_0x4dca64)):this[_0x20bf('0xf8')](_0x4dca64,_0x58343d);const _0x128aaa=_0x4dca64['filter'](_0x723d61=>!_0x723d61['isAdded'])[_0x20bf('0x10d')](_0x24496e=>_0x24496e['id']);let _0x26c1a6=0x0;const _0x3ddaec=this[_0x20bf('0xe2')](_0xe7417[_0x20bf('0x113')][_0x5d11af][_0x20bf('0xe5')]);_0x3ddaec[_0x20bf('0x43')](_0x25f9af=>{_0x25f9af[_0x20bf('0xde')]?_0x25f9af['id']=_0x1f5a01++:_0x25f9af['id']=_0x128aaa[_0x26c1a6++];}),this['_processTape'](_0x3ddaec),this['_setDistance'](_0x4dca64,_0x20bf('0xfc')),this[_0x20bf('0xea')](_0x3ddaec,'isRemoved'),_0xe7417==_0x103ff2&&this[_0x20bf('0x39')](_0x4dca64,_0x34a9b2),_0x4dca64=this[_0x20bf('0xa9')](_0x4dca64,_0x3ddaec),this[_0x20bf('0xa6')](_0x4dca64),this['_setDistance'](_0x4dca64,'isRemoved');}_0x4dca64=_0x4dca64['filter'](_0x239bd6=>!(_0x239bd6[_0x20bf('0xfc')]&&_0x239bd6[_0x20bf('0xde')]));const _0x1b2d3b=new Map(_0x41f9d2[_0x20bf('0x113')][_0x5d11af]['deletions']['markers']),_0x2dd1ba=new Set(_0x34a9b2[_0x20bf('0x88')]());for(const _0x27f8c9 of _0x1b2d3b['keys']())_0x2dd1ba[_0x20bf('0x70')](_0x27f8c9);this['_markSuggestions'](_0x4dca64,_0x2dd1ba),this[_0x20bf('0x17')](_0x4dca64),_0x4dca64=this['_removeMissingPairs'](_0x4dca64),_0x4dca64=this[_0x20bf('0x40')](_0x4dca64),_0x4dca64=this[_0x20bf('0xd6')](_0x4dca64);const {root:_0x23c6bf,changes:_0x3cb073}=this[_0x20bf('0x82')](_0x4dca64,_0x2c6513,_0x5d11af);_0x1242a2[_0x20bf('0x113')][_0x5d11af]=_0x23c6bf;const _0x4fda98=_0x3b5081[_0x20bf('0xc3')](_0x5d11af);if(_0x4fda98){const _0x3ebf7b=_0x2c6513[_0x20bf('0xc3')](_0x4fda98[_0x20bf('0x64')]),_0x4927f4=new _0x45af27({'author':_0x3ebf7b,'type':_0x4fda98[_0x20bf('0x60')]?_0x20bf('0xe0'):_0x20bf('0xd8'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5d11af});_0x3cb073[_0x20bf('0x11e')](_0x4927f4),_0x1242a2[_0x20bf('0x57')][_0x5d11af]['revisionHistoryAttachChange']=_0x4927f4['id'];}_0x1242a2[_0x20bf('0xed')]=_0x1242a2['changes'][_0x20bf('0x90')](_0x3cb073);}return _0x1242a2;}[_0x20bf('0x39')](_0x51c129,_0x44afbb){for(let _0x2a4fb0=0x0;_0x2a4fb0<_0x51c129['length'];_0x2a4fb0++)for(const [_0x54b8d1,_0x10ec11]of _0x44afbb)_0x10ec11['start'][_0x20bf('0x96')](_0x51c129[_0x2a4fb0]['previousPosition'])&&_0x51c129[_0x2a4fb0]['markersStart'][_0x20bf('0x79')](_0x54b8d1),_0x10ec11[_0x20bf('0xec')]['isEqual'](_0x51c129[_0x2a4fb0]['nextPosition'])&&_0x51c129[_0x2a4fb0][_0x20bf('0x58')]['push'](_0x54b8d1);}[_0x20bf('0xa9')](_0x3b63bd,_0x11f584){let _0x143b8c=[],_0x5f478d=0x0,_0x14bf0e=0x0;for(;_0x5f478d<_0x3b63bd[_0x20bf('0xf9')]||_0x14bf0e<_0x11f584[_0x20bf('0xf9')];){const _0x5d4564=_0x3b63bd[_0x5f478d]||{},_0x51c48c=_0x11f584[_0x14bf0e]||{};if(_0x5d4564['id']==_0x51c48c['id'])_0x5f478d++,_0x14bf0e++,_0x143b8c[_0x20bf('0x79')](_0x5d4564);else{if(_0x51c48c[_0x20bf('0xde')]&&_0x5d4564['isAdded']){const {commonTape:_0x2051f1,iEnd:_0x43a69e,jEnd:_0x475649}=this['_threeWayMerge'](_0x3b63bd,_0x5f478d,_0x11f584,_0x14bf0e);_0x143b8c=_0x143b8c[_0x20bf('0x90')](_0x2051f1),_0x5f478d=_0x43a69e,_0x14bf0e=_0x475649;}else _0x51c48c[_0x20bf('0xde')]?(_0x14bf0e++,_0x143b8c[_0x20bf('0x79')](_0x51c48c)):(_0x5f478d++,_0x143b8c[_0x20bf('0x79')](_0x5d4564));}}return _0x143b8c;}[_0x20bf('0x9e')](_0x341335,_0x15e538){const _0x286f52=[];for(let _0x590e6a=0x0;_0x590e6a<_0x341335[_0x20bf('0xf9')];_0x590e6a++){for(let _0x3ba26c=0x0;_0x3ba26c<_0x341335[_0x590e6a][_0x20bf('0x19')][_0x20bf('0xf9')];_0x3ba26c++){const _0x5ee9c8=_0x341335[_0x590e6a]['markersStart'][_0x3ba26c];if(!_0x15e538[_0x20bf('0x115')](_0x5ee9c8))continue;const {group:_0x26090b,type:_0x2a4c61,authorId:_0x2cff41}=_0x236a6b(_0x5ee9c8);_0x20bf('0xc6')!=_0x26090b||_0x20bf('0xa3')!=_0x2a4c61&&_0x20bf('0x29')!=_0x2a4c61||(_0x286f52[_0x20bf('0x11e')]({'type':_0x2a4c61,'name':_0x5ee9c8,'userId':_0x2cff41}),_0x341335[_0x590e6a][_0x20bf('0x19')][_0x20bf('0x3d')](_0x3ba26c,0x1),_0x3ba26c--);}_0x2f2d53(_0x341335[_0x590e6a]);for(let _0x26d202=0x0;_0x26d202<_0x341335[_0x590e6a]['markersEnd'][_0x20bf('0xf9')];_0x26d202++){const _0x35ffff=_0x341335[_0x590e6a][_0x20bf('0x58')][_0x26d202];if(!_0x15e538[_0x20bf('0x115')](_0x35ffff))continue;const {group:_0xf960e4,type:_0x5448fa}=_0x236a6b(_0x35ffff);if(_0x20bf('0xc6')!=_0xf960e4||_0x20bf('0xa3')!=_0x5448fa&&_0x20bf('0x29')!=_0x5448fa)continue;_0x341335[_0x590e6a]['markersEnd'][_0x20bf('0x3d')](_0x26d202,0x1),_0x26d202--;const _0x1eba44=_0x286f52[_0x20bf('0x85')](_0xce83e0=>_0xce83e0[_0x20bf('0xa4')]==_0x35ffff);_0x1eba44>-0x1&&_0x286f52[_0x20bf('0x3d')](_0x1eba44,0x1);}}function _0x236a6b(_0x34f7ff){const _0x238aca=_0x34f7ff[_0x20bf('0x55')](':');return{'group':_0x238aca[0x0],'type':_0x238aca[0x1],'subType':_0x238aca[_0x20bf('0xf9')]>=0x5?_0x238aca[0x2]:null,'id':_0x238aca[_0x20bf('0xf9')]<0x5?_0x238aca[0x2]:_0x238aca[0x3],'authorId':_0x238aca[_0x20bf('0xf9')]<0x5?_0x238aca[0x3]:_0x238aca[0x4],'markerCount':0x6==_0x238aca['length']?_0x238aca[0x5]:null};}function _0x2f2d53(_0x512674){for(let _0x1e46c8=0x0;_0x1e46c8<_0x286f52[_0x20bf('0xf9')];_0x1e46c8++){if(_0x512674[_0x20bf('0xfc')]&&_0x20bf('0xa3')==_0x286f52[_0x1e46c8]['type'])return _0x512674['isAddSuggestion']=_0x286f52[_0x1e46c8],void delete _0x512674['isAdded'];if(!_0x512674['isAdded']&&!_0x512674[_0x20bf('0xde')]&&_0x20bf('0x29')==_0x286f52[_0x1e46c8][_0x20bf('0xfd')])return void(_0x512674['isRemoveSuggestion']=_0x286f52[_0x1e46c8]);}}}[_0x20bf('0xea')](_0x58528b,_0x3add6){let _0x14dbb6=0x0,_0x229732=!0x1;const _0x136635=new Map();for(const _0x558a22 of _0x58528b)_0x558a22[_0x3add6]?_0x229732&&(_0x14dbb6++,_0x229732=!0x1):(_0x14dbb6++,_0x229732=!0x0),_0x136635['set'](_0x558a22['id'],_0x14dbb6);for(let _0x2a88de=0x0;_0x2a88de<_0x58528b['length'];_0x2a88de++){if(_0x20bf('0xde')==_0x3add6&&_0x58528b[_0x2a88de]['isAdded']||_0x20bf('0xfc')==_0x3add6&&_0x58528b[_0x2a88de][_0x20bf('0xde')])continue;if(_0x20bf('0x52')==_0x58528b[_0x2a88de][_0x20bf('0xfd')]){_0x58528b[_0x2a88de][_0x20bf('0xef')]=0x0;continue;}const _0x2ff741=_0x136635[_0x20bf('0xc3')](_0x58528b[_0x2a88de][_0x20bf('0x16')]),_0x379f0c=_0x136635[_0x20bf('0xc3')](_0x58528b[_0x2a88de]['id']);_0x58528b[_0x2a88de][_0x20bf('0xef')]=_0x2ff741-_0x379f0c;}}[_0x20bf('0xa7')](_0x506027,_0x579c4a,_0x1c0ea0=!0x1){const _0xb504e6=[];let _0x4aee3f=this['repository']['getIndex'](_0x506027),_0x598cc0=this[_0x20bf('0xe6')][_0x20bf('0xad')](_0x579c4a);for(-0x1==_0x598cc0&&(_0x598cc0=this['repository'][_0x20bf('0xdb')][_0x20bf('0xf9')],_0x1c0ea0=!0x1);_0x4aee3f<_0x598cc0;)_0xb504e6['push'](this[_0x20bf('0xe6')]['getRevision'](_0x4aee3f)),_0x4aee3f++;return _0x1c0ea0&&_0xb504e6[_0x20bf('0x79')](this['repository'][_0x20bf('0x67')](_0x4aee3f)),_0xb504e6;}[_0x20bf('0x11a')](_0x17650a,_0x4d5b10,_0x3af90b,_0x56b112){const _0x34c762=this[_0x20bf('0x36')]['model'][_0x20bf('0xc8')];let _0x401792=_0x4d5b10;for(;_0x17650a[_0x401792]&&_0x17650a[_0x401792][_0x20bf('0xfc')];)_0x401792++;let _0x448052=_0x56b112;for(;_0x3af90b[_0x448052]&&_0x3af90b[_0x448052][_0x20bf('0xde')];)_0x448052++;_0x53be8a(_0x17650a,_0x4d5b10,_0x401792),_0x53be8a(_0x3af90b,_0x56b112,_0x448052);const _0x139061=_0x3af90b['slice'](_0x56b112,_0x448052)['concat'](_0x17650a[_0x20bf('0x2f')](_0x4d5b10,_0x401792));return _0x139061['sort']((_0x414911,_0x59ba7b)=>_0x414911[_0x20bf('0x9d')]!=_0x59ba7b[_0x20bf('0x9d')]?_0x414911[_0x20bf('0x9d')]-_0x59ba7b[_0x20bf('0x9d')]:_0x414911[_0x20bf('0x99')]!=_0x59ba7b['level']?_0x414911[_0x20bf('0x99')]-_0x59ba7b[_0x20bf('0x99')]:_0x414911[_0x20bf('0xef')]!=_0x59ba7b['distance']?_0x59ba7b[_0x20bf('0xef')]-_0x414911[_0x20bf('0xef')]:!!_0x414911[_0x20bf('0xfc')]!=!!_0x59ba7b[_0x20bf('0xfc')]?-0x1==_0x414911[_0x20bf('0x9d')]||0x0==_0x414911[_0x20bf('0x9d')]?_0x414911[_0x20bf('0xfc')]?-0x1:0x1:_0x414911[_0x20bf('0xfc')]?0x1:-0x1:_0x414911[_0x20bf('0x94')]-_0x59ba7b[_0x20bf('0x94')]),{'commonTape':_0x139061,'iEnd':_0x401792,'jEnd':_0x448052};function _0x53be8a(_0x451e52,_0x409d73,_0xd1772a){let _0x55f9c3=-0x1,_0xfa35b=Number['POSITIVE_INFINITY'],_0x9c7312=!0x0;for(let _0x541fd2=_0x409d73;_0x541fd2<_0xd1772a;_0x541fd2++)if(_0x34c762[_0x20bf('0xba')](_0x451e52[_0x541fd2]['item'])||(_0x9c7312=!0x1),_0x451e52[_0x541fd2][_0x20bf('0x34')]['startIndex']<_0x409d73&&(_0x55f9c3=_0x541fd2),_0x451e52[_0x541fd2][_0x20bf('0x34')][_0x20bf('0x117')]>=_0xd1772a){_0xfa35b=_0x541fd2;break;}_0x9c7312&&(_0x55f9c3=_0xd1772a-0x1);for(let _0x21113f=_0x409d73;_0x21113f<_0xd1772a;_0x21113f++)_0x451e52[_0x21113f][_0x20bf('0x9d')]=_0x21113f<=_0x55f9c3?-0x1:_0x21113f<_0xfa35b?0x0:0x1,_0x451e52[_0x21113f]['index']=_0x21113f;let _0x4376b1=0x0;for(let _0x301263=_0x409d73;_0x301263<=_0x55f9c3;_0x301263++)0x0==_0x451e52[_0x301263][_0x20bf('0xef')]?_0x451e52[_0x301263]['level']=_0x4376b1:(_0x4376b1++,_0x451e52[_0x301263]['level']=_0x4376b1,_0x4376b1++);for(let _0x1219f3=_0x409d73;_0x1219f3<_0xd1772a;_0x1219f3++)0x0==_0x451e52[_0x1219f3][_0x20bf('0x9d')]&&(_0x451e52[_0x1219f3][_0x20bf('0x99')]=_0x4376b1);_0x4376b1=0x0;for(let _0x11bbe8=_0xd1772a-0x1;_0x11bbe8>=_0xfa35b;_0x11bbe8--)0x0==_0x451e52[_0x11bbe8][_0x20bf('0xef')]?_0x451e52[_0x11bbe8][_0x20bf('0x99')]=_0x4376b1:(_0x4376b1--,_0x451e52[_0x11bbe8][_0x20bf('0x99')]=_0x4376b1,_0x4376b1--);}}[_0x20bf('0x17')](_0x4d19f9){const _0x2f1c56=new Map(),_0x523670=this[_0x20bf('0x36')]['model'][_0x20bf('0xc8')];for(let _0x27a5f2=0x1;_0x27a5f2<_0x4d19f9[_0x20bf('0xf9')];_0x27a5f2++){let _0x5bf453,_0x2d3fc0,_0x290770;const _0x13b9c6=_0x4d19f9[_0x27a5f2],_0x1ad827=_0x4d19f9[_0x27a5f2-0x1];if(_0x20bf('0x52')==_0x13b9c6[_0x20bf('0xfd')])continue;if(_0x13b9c6['type']!=_0x1ad827[_0x20bf('0xfd')])continue;if(!_0x523670[_0x20bf('0x118')](_0x1ad827['item'])||_0x523670[_0x20bf('0x4a')](_0x1ad827[_0x20bf('0x34')]))continue;if(!_0x523670[_0x20bf('0x118')](_0x13b9c6['item'])||_0x523670[_0x20bf('0x4a')](_0x13b9c6[_0x20bf('0x34')]))continue;if((_0x4d19f9[_0x27a5f2]['isAdded']||_0x4d19f9[_0x27a5f2]['isAddSuggestion'])&&_0x4d19f9[_0x27a5f2-0x1]['isRemoved'])_0x5bf453=_0x4d19f9[_0x27a5f2],_0x2d3fc0=_0x4d19f9[_0x27a5f2-0x1],_0x290770=_0x27a5f2-0x1;else{if(!_0x4d19f9[_0x27a5f2][_0x20bf('0xde')]||!_0x4d19f9[_0x27a5f2-0x1][_0x20bf('0xfc')]&&!_0x4d19f9[_0x27a5f2-0x1][_0x20bf('0xb7')])continue;_0x5bf453=_0x4d19f9[_0x27a5f2-0x1],_0x2d3fc0=_0x4d19f9[_0x27a5f2],_0x290770=_0x27a5f2;}const _0x3692d4=_0x5bf453[_0x20bf('0x99')]==_0x2d3fc0[_0x20bf('0x99')],_0x2184c5=Math[_0x20bf('0x3c')](_0x5bf453[_0x20bf('0x99')])<Math[_0x20bf('0x3c')](_0x2d3fc0[_0x20bf('0x99')])&&0x0==_0x2d3fc0[_0x20bf('0xef')];(_0x3692d4||_0x2184c5)&&(_0x2f1c56[_0x20bf('0xce')](_0x2d3fc0['id'],_0x5bf453['id']),_0x4d19f9[_0x20bf('0x3d')](_0x290770,0x1),_0x27a5f2--,_0x5bf453['isAdded']=!0x1);}for(let _0xd31b39=0x0;_0xd31b39<_0x4d19f9[_0x20bf('0xf9')];_0xd31b39++)_0x2f1c56[_0x20bf('0x115')](_0x4d19f9[_0xd31b39][_0x20bf('0x16')])&&(_0x4d19f9[_0xd31b39][_0x20bf('0x16')]=_0x2f1c56['get'](_0x4d19f9[_0xd31b39][_0x20bf('0x16')]));}[_0x20bf('0x65')](_0x236e9d){const _0x7937f1=new Set(_0x236e9d[_0x20bf('0x10d')](_0x542151=>_0x542151['id']));for(let _0x4c7362=0x0;_0x4c7362<_0x236e9d['length'];_0x4c7362++)_0x7937f1[_0x20bf('0x115')](_0x236e9d[_0x4c7362][_0x20bf('0x16')])||0x0==_0x236e9d[_0x4c7362]['distance']||(_0x236e9d[_0x4c7362][_0x20bf('0x5c')]=!0x0);return _0x236e9d[_0x20bf('0x41')](_0x3ecda7=>!_0x3ecda7[_0x20bf('0x5c')]);}[_0x20bf('0x40')](_0x317ad0){const _0x1dba82=new Set();for(let _0x292791=0x0;_0x292791<_0x317ad0[_0x20bf('0xf9')];_0x292791++){if(_0x1dba82['has'](_0x317ad0[_0x292791]['id'])&&_0x317ad0[_0x292791][_0x20bf('0xde')]&&(_0x317ad0[_0x292791][_0x20bf('0x5c')]=!0x0),_0x317ad0[_0x292791][_0x20bf('0x5c')])continue;if(0x0==_0x317ad0[_0x292791][_0x20bf('0xef')])continue;if(_0x20bf('0x2')!=_0x317ad0[_0x292791][_0x20bf('0xfd')])continue;if(null==_0x317ad0[_0x292791][_0x20bf('0x16')])continue;let _0x275040=_0x292791+0x1,_0x4d0c63=0x0;for(;_0x317ad0[_0x275040]['id']!=_0x317ad0[_0x292791][_0x20bf('0x16')];)_0x20bf('0x2')==_0x317ad0[_0x275040]['type']?_0x4d0c63++:_0x20bf('0x5b')==_0x317ad0[_0x275040]['type']&&_0x4d0c63--,_0x275040++;if(0x0!=_0x4d0c63){if(_0x317ad0[_0x292791][_0x20bf('0xde')])_0x317ad0[_0x292791][_0x20bf('0x5c')]=!0x0;else for(;_0x275040!=_0x292791;)_0x317ad0[_0x275040][_0x20bf('0xde')]&&0x0!=_0x317ad0[_0x275040][_0x20bf('0xef')]&&(_0x317ad0[_0x275040][_0x20bf('0x5c')]=!0x0,_0x1dba82['add'](_0x317ad0[_0x275040][_0x20bf('0x16')])),_0x275040--;}}return _0x317ad0[_0x20bf('0x41')](_0xec4ae9=>!_0xec4ae9[_0x20bf('0x5c')]);}['_removeUnsupportedChanges'](_0x19e840){const _0x377ee4=this[_0x20bf('0x36')][_0x20bf('0x113')][_0x20bf('0xc8')];for(let _0x487230=0x0;_0x487230<_0x19e840[_0x20bf('0xf9')];_0x487230++){if(!(_0x19e840[_0x487230][_0x20bf('0xfc')]||_0x19e840[_0x487230][_0x20bf('0xb7')]||_0x19e840[_0x487230][_0x20bf('0xde')]||_0x19e840[_0x487230][_0x20bf('0x18')]))continue;if(0x0==_0x19e840[_0x487230][_0x20bf('0xef')])continue;const _0xcfe21b=_0x19e840[_0x487230][_0x20bf('0x34')];_0x377ee4[_0x20bf('0x118')](_0xcfe21b)||_0x377ee4[_0x20bf('0x4a')](_0xcfe21b)||(_0x19e840[_0x487230][_0x20bf('0xfc')]&&delete _0x19e840[_0x487230][_0x20bf('0xfc')],_0x19e840[_0x487230][_0x20bf('0xb7')]&&delete _0x19e840[_0x487230][_0x20bf('0xb7')],_0x19e840[_0x487230][_0x20bf('0x18')]&&delete _0x19e840[_0x487230][_0x20bf('0x18')],_0x19e840[_0x487230][_0x20bf('0xde')]&&(_0x19e840[_0x487230][_0x20bf('0x5c')]=!0x0));}return _0x19e840[_0x20bf('0x41')](_0x23aad0=>!_0x23aad0['isIncorrect']);}[_0x20bf('0x82')](_0x261202,_0x122769,_0x57e6fe){const _0x4d5c08=new _0x5600b3(),_0x233a51=[],_0x5c5d8d=new Map(),_0x2df721=this[_0x20bf('0x36')][_0x20bf('0x113')],_0x4c1849=_0x2df721[_0x20bf('0xc8')],_0x463417=[_0x4d5c08],_0x5865f2={},_0x5dadbd={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x24cd63=null;const _0x5506dd=[0x0];for(let _0x56133e=0x0;_0x56133e<_0x261202[_0x20bf('0xf9')];_0x56133e++){let _0x29dcfd,_0x3806ac;if(_0x20bf('0x2')===_0x261202[_0x56133e][_0x20bf('0xfd')]){_0x29dcfd=_0x2df721[_0x20bf('0x92')](_0x4d5c08,_0x5506dd);const _0x4fdabf=new _0xf7bb48(_0x261202[_0x56133e][_0x20bf('0x34')][_0x20bf('0xa4')],_0x261202[_0x56133e][_0x20bf('0x34')][_0x20bf('0xab')]());_0x463417[0x0]['_appendChild'](_0x4fdabf),_0x5506dd['push'](0x0),_0x463417['unshift'](_0x4fdabf),_0x3806ac=_0x2df721[_0x20bf('0x92')](_0x4d5c08,_0x5506dd),_0x24cd63=null;}else{if(_0x20bf('0x5b')===_0x261202[_0x56133e]['type'])_0x463417[_0x20bf('0x1')](),_0x29dcfd=_0x2df721['createPositionFromPath'](_0x4d5c08,_0x5506dd),_0x5506dd['pop'](),_0x5506dd[_0x5506dd[_0x20bf('0xf9')]-0x1]++,_0x3806ac=_0x2df721['createPositionFromPath'](_0x4d5c08,_0x5506dd),_0x24cd63=null;else{if(_0x29dcfd=_0x2df721[_0x20bf('0x92')](_0x4d5c08,_0x5506dd),_0x24cd63&&_0x5f05aa(_0x24cd63,_0x261202[_0x56133e][_0x20bf('0x34')]))_0x24cd63[_0x20bf('0x10')]+=_0x261202[_0x56133e][_0x20bf('0x34')]['data'];else{const _0x309d69=new _0x43992d(_0x261202[_0x56133e][_0x20bf('0x34')][_0x20bf('0xf3')],_0x261202[_0x56133e][_0x20bf('0x34')][_0x20bf('0xab')]());_0x463417[0x0][_0x20bf('0xbd')](_0x309d69),_0x24cd63=_0x309d69;}_0x5506dd[_0x5506dd[_0x20bf('0xf9')]-0x1]+=_0x261202[_0x56133e]['item'][_0x20bf('0x84')],_0x3806ac=_0x2df721[_0x20bf('0x92')](_0x4d5c08,_0x5506dd);}}for(const _0x2b47c4 of _0x261202[_0x56133e][_0x20bf('0x19')])_0x5c5d8d['set'](_0x2b47c4,{'start':_0x29dcfd,'end':null});_0x5408b6(_0x20bf('0x18'),_0x56133e,_0x29dcfd,_0x3806ac),_0x5408b6(_0x20bf('0xb7'),_0x56133e,_0x29dcfd,_0x3806ac),_0x5408b6(_0x20bf('0xde'),_0x56133e,_0x29dcfd,_0x3806ac),_0x5408b6(_0x20bf('0xfc'),_0x56133e,_0x29dcfd,_0x3806ac);for(const _0x2e7735 of _0x261202[_0x56133e][_0x20bf('0x58')]){_0x5c5d8d[_0x20bf('0xc3')](_0x2e7735)['end']=_0x3806ac;}}for(const [_0x38c9ac,_0x227a63]of _0x5c5d8d){const _0x4724dc=this['editor'][_0x20bf('0x113')][_0x20bf('0x42')](_0x227a63[_0x20bf('0xf0')],_0x227a63[_0x20bf('0xec')]);_0x4d5c08[_0x20bf('0x10b')][_0x20bf('0xce')](_0x38c9ac,_0x4724dc);}return _0x233a51['sort']((_0x535448,_0x1434a2)=>{const _0x46ff96=_0x4d5c08[_0x20bf('0x10b')]['get']('revision:'+_0x535448['id']),_0x1aa11f=_0x4d5c08[_0x20bf('0x10b')]['get'](_0x20bf('0x44')+_0x1434a2['id']);return _0x46ff96[_0x20bf('0xf0')][_0x20bf('0xe')](_0x1aa11f[_0x20bf('0xf0')])?-0x1:_0x46ff96[_0x20bf('0xf0')][_0x20bf('0x103')](_0x1aa11f[_0x20bf('0xf0')])?0x1:_0x46ff96['end'][_0x20bf('0xe')](_0x1aa11f['end'])?-0x1:_0x46ff96[_0x20bf('0xec')][_0x20bf('0x103')](_0x1aa11f[_0x20bf('0xec')])?0x1:'add'===_0x535448[_0x20bf('0xfd')]?-0x1:0x1;}),{'root':_0x4d5c08,'changes':_0x233a51};function _0x5408b6(_0x525ed5,_0x384e91,_0x115f68,_0x55c082){const _0x1a022f=!!_0x261202[_0x384e91][_0x525ed5],_0x198fd2=_0x1a022f?_0x261202[_0x384e91][_0x525ed5][_0x20bf('0x64')]:null,_0x55569a=_0x384e91===_0x261202['length']-0x1,_0x3bb3bf=_0x5dadbd[_0x525ed5][0x0],_0x52f8a2=_0x4c1849['isObject'](_0x261202[_0x384e91][_0x20bf('0x34')]);!_0x5865f2[_0x525ed5]&&_0x1a022f?_0x5865f2[_0x525ed5]={'start':_0x115f68,'tapeItem':_0x261202[_0x384e91],'userId':_0x198fd2,'type':_0x525ed5}:_0x5865f2[_0x525ed5]&&!_0x1a022f?(_0x5865f2[_0x525ed5][_0x20bf('0xec')]=_0x115f68,_0x168125(_0x5865f2[_0x525ed5]),_0x5865f2[_0x525ed5]=null):_0x5865f2[_0x525ed5]&&_0x1a022f&&_0x5865f2[_0x525ed5]['userId']!==_0x198fd2&&(_0x5865f2[_0x525ed5]['end']=_0x115f68,_0x3bb3bf&&_0x3bb3bf[_0x20bf('0x64')]===_0x5865f2[_0x525ed5][_0x20bf('0x64')]||_0x168125(_0x5865f2[_0x525ed5]),_0x5865f2[_0x525ed5]={'start':_0x115f68,'tapeItem':_0x261202[_0x384e91],'userId':_0x198fd2,'type':_0x525ed5}),_0x5865f2[_0x525ed5]&&_0x52f8a2&&(_0x20bf('0x2')!==_0x261202[_0x384e91][_0x20bf('0xfd')]||_0x3bb3bf&&_0x3bb3bf['userId']===_0x198fd2||_0x5dadbd[_0x525ed5][_0x20bf('0x11e')]({'userId':_0x198fd2,'object':_0x261202[_0x384e91][_0x20bf('0x34')],'change':_0x5865f2[_0x525ed5]}),_0x20bf('0x5b')===_0x261202[_0x384e91][_0x20bf('0xfd')]&&_0x3bb3bf&&_0x3bb3bf[_0x20bf('0x5a')]===_0x261202[_0x384e91][_0x20bf('0x34')]&&(_0x5dadbd[_0x525ed5][_0x20bf('0x1')](),_0x5865f2[_0x525ed5]=_0x3bb3bf[_0x20bf('0x14')])),_0x5865f2[_0x525ed5]&&_0x55569a&&(_0x5865f2[_0x525ed5]['end']=_0x55c082,_0x168125(_0x5865f2[_0x525ed5]),_0x5865f2[_0x525ed5]=null);}function _0x168125({start:_0x45f6ab,end:_0x3ab7e6,tapeItem:_0x6d1431,userId:_0x186f34,type:_0x403b4a}){const _0x2fbd81=_0x6d1431[_0x20bf('0x34')],_0x5cf701=_0x2df721[_0x20bf('0xc8')][_0x20bf('0x118')](_0x2fbd81)&&!_0x2df721['schema']['isLimit'](_0x2fbd81),_0x4e3e49=_0x45f6ab[_0x20bf('0xff')]==_0x3ab7e6[_0x20bf('0xb2')]&&_0x3ab7e6[_0x20bf('0x107')];if(_0x5cf701&&_0x4e3e49)return;const _0x321ba5=_0x2df721[_0x20bf('0x42')](_0x45f6ab,_0x3ab7e6),_0x473750=_0x122769[_0x20bf('0xc3')](_0x186f34),_0x1a8260=new _0x45af27({'author':_0x473750,'type':_0x20bf('0xfc')==_0x403b4a||_0x20bf('0xb7')==_0x403b4a?'add':_0x20bf('0xd8'),'data':{'isSuggestion':_0x20bf('0xb7')==_0x403b4a||_0x20bf('0x18')==_0x403b4a},'createdAt':new Date(),'rootName':_0x57e6fe});_0x233a51[_0x20bf('0x79')](_0x1a8260),_0x4d5c08['markers']['set'](_0x20bf('0x44')+_0x1a8260['id'],_0x321ba5);}function _0x5f05aa(_0x218a71,_0x582e07){const _0x282292=_0x218a71['getAttributes'](),_0x1f80d3=_0x582e07[_0x20bf('0xab')]();for(const _0x338e80 of _0x282292){if(_0x338e80[0x1]!==_0x582e07['getAttribute'](_0x338e80[0x0]))return!0x1;_0x1f80d3['next']();}return _0x1f80d3[_0x20bf('0xf')]()[_0x20bf('0x3f')];}}[_0x20bf('0x105')](){this[_0x20bf('0x36')][_0x20bf('0x15')]['for'](_0x20bf('0xe9'))[_0x20bf('0xbc')]({'view':_0x20bf('0x22')}),this['editor'][_0x20bf('0x15')][_0x20bf('0xd2')]('editingDowncast')[_0x20bf('0x48')]({'model':'revision','view':_0x2749a7=>{const _0x2dc8ea=_0x2749a7[_0x20bf('0xc9')][_0x20bf('0x55')](':')[0x1],_0x225dd5=this['_getChangeFromId'](_0x2dc8ea);if(!_0x225dd5)return null;const _0x1de0cc=_0x20bf('0xe0')==_0x225dd5[_0x20bf('0xfd')]?_0x20bf('0xa3'):_0x20bf('0x29'),_0x2e41b6=[_0x20bf('0x35'),_0x20bf('0x78')+_0x1de0cc];return _0x225dd5[_0x20bf('0xf3')][_0x20bf('0xb3')]&&_0x2e41b6[_0x20bf('0x79')](_0x20bf('0x78')+_0x1de0cc+_0x20bf('0x4b')),this[_0x20bf('0x1d')]==_0x225dd5&&_0x2e41b6[_0x20bf('0x79')]('ck-suggestion-marker--active'),{'classes':_0x2e41b6,'attributes':{'data-change-id':_0x2dc8ea}};}}),this[_0x20bf('0x36')][_0x20bf('0x15')][_0x20bf('0xd2')]('upcast')[_0x20bf('0xe0')](_0x899518=>{_0x899518['on'](_0x20bf('0xfa'),(_0x5f5553,_0x1aed45,_0x55e4a8)=>{const _0x9082fa=_0x1aed45[_0x20bf('0x6a')][_0x20bf('0x4e')](0x0);if(!_0x9082fa||!_0x9082fa['is'](_0x20bf('0x9c'),_0x20bf('0x6')))return;if(!_0x55e4a8[_0x20bf('0xaf')][_0x20bf('0xe3')](_0x9082fa,{'attributes':[_0x20bf('0xd0'),'vid_end']}))return;const _0x5bc862=_0x1aed45[_0x20bf('0xbe')][_0x20bf('0xf0')]['nodeAfter'];_0x55e4a8[_0x20bf('0x4d')][_0x20bf('0x31')](_0x20bf('0xd0'),_0x9082fa[_0x20bf('0x10c')]('vid_start'),_0x5bc862),_0x55e4a8[_0x20bf('0x4d')]['setAttribute'](_0x20bf('0xa2'),_0x9082fa[_0x20bf('0x10c')](_0x20bf('0xa2')),_0x5bc862);},{'priority':_0x20bf('0x53')});}),this[_0x20bf('0x36')][_0x20bf('0x15')]['for'](_0x20bf('0xe9'))[_0x20bf('0xe0')](_0x83a821=>{_0x83a821['on']('element',(_0x56c89f,_0x2de912,_0x5e0c33)=>{if(!_0x5e0c33['consumable']['consume'](_0x2de912[_0x20bf('0x6a')],{'attributes':[_0x20bf('0xd0'),_0x20bf('0xa2')]}))return;if(_0x2de912['modelRange'][_0x20bf('0x68')])return;const _0x4bc4c2=_0x2de912['modelRange'][_0x20bf('0xf0')][_0x20bf('0xff')];_0x4bc4c2[_0x20bf('0x73')](_0x20bf('0xd0'))||_0x4bc4c2[_0x20bf('0x73')](_0x20bf('0x76'))||(_0x5e0c33[_0x20bf('0x4d')][_0x20bf('0x31')](_0x20bf('0xd0'),_0x2de912[_0x20bf('0x6a')][_0x20bf('0x10c')](_0x20bf('0xd0')),_0x4bc4c2),_0x5e0c33[_0x20bf('0x4d')]['setAttribute'](_0x20bf('0xa2'),_0x2de912[_0x20bf('0x6a')]['getAttribute'](_0x20bf('0xa2')),_0x4bc4c2));},{'priority':_0x20bf('0x53')});}),this[_0x20bf('0x36')][_0x20bf('0x15')][_0x20bf('0xd2')](_0x20bf('0xe9'))['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1cc5fa=>_0x1cc5fa[_0x20bf('0x10c')](_0x20bf('0x76'))}}),this['editor']['model'][_0x20bf('0xc8')]['on']('checkAttribute',(_0x3f3854,[,_0x1f3141])=>{[_0x20bf('0xd0'),'vid_end',_0x20bf('0x76')]['includes'](_0x1f3141)&&(_0x3f3854[_0x20bf('0x45')]=!0x0,_0x3f3854[_0x20bf('0x59')]());},{'priority':'highest'}),this[_0x20bf('0x36')][_0x20bf('0x15')][_0x20bf('0xd2')]('dataDowncast')['add'](_0x142df4=>{_0x142df4['on']('attribute:vid',(_0x28f6f6,_0x4d1275,_0xca3190)=>{if('\x20'!=_0x4d1275[_0x20bf('0x34')][_0x20bf('0xf3')]||_0x4d1275['item'][_0x20bf('0xb2')][_0x20bf('0x5d')]>0x1)return;if(!_0xca3190[_0x20bf('0xaf')][_0x20bf('0xe3')](_0x4d1275[_0x20bf('0x34')],_0x28f6f6['name']))return;const _0x3970c3=_0xca3190['writer'],_0x11dc4b=_0xca3190['mapper']['toViewRange'](_0x4d1275[_0x20bf('0xa1')]);_0x3970c3[_0x20bf('0x2e')](_0x11dc4b,_0x3970c3[_0x20bf('0xc7')](_0x20bf('0x77')));});}),this[_0x20bf('0x36')][_0x20bf('0x15')][_0x20bf('0xd2')](_0x20bf('0x91'))[_0x20bf('0x93')]({'model':_0x20bf('0x22')}),this[_0x20bf('0x36')]['editing']['downcastDispatcher']['on'](_0x20bf('0x50'),function(_0xdf0535){const _0x532b5f=_0xdf0535[_0x20bf('0x3a')][_0x20bf('0xc3')](_0x20bf('0xb5'));return(_0x972bfd,_0x4615a5,_0x150ff8)=>{const _0xd85606=_0x4615a5[_0x20bf('0xc9')]['split'](':')[0x1],_0x3fd800=_0x532b5f['_getChangeFromId'](_0xd85606);if(!_0x3fd800)return null;const _0x5d5ab5=_0x20bf('0xe0')==_0x3fd800[_0x20bf('0xfd')]?_0x20bf('0x55'):_0x20bf('0x81');if(!_0x150ff8[_0x20bf('0xaf')][_0x20bf('0x104')](_0x4615a5[_0x20bf('0x5f')],_0x972bfd[_0x20bf('0xa4')]))return;const _0x171963=_0x4615a5['markerRange'][_0x20bf('0x9f')](),_0x5b1d08=_0x4615a5[_0x20bf('0x5f')][_0x20bf('0xf0')],_0x245f83=_0xdf0535['model'][_0x20bf('0xc8')];let _0x25818c=null,_0x3483bd=null,_0x5199c5=!0x1,_0x4f144c=!0x1;for(const _0xe69ec of _0x171963){const _0x73b228=_0xe69ec[_0x20bf('0x34')];_0x5199c5=_0x5199c5||_0x245f83['isContent'](_0x73b228);const _0x4c322f=_0x150ff8[_0x20bf('0xc1')][_0x20bf('0x2b')](_0x73b228);if(_0x4c322f&&_0x4c322f[_0x20bf('0x8b')](_0x20bf('0x10f')))return;_0x20bf('0x5b')==_0xe69ec[_0x20bf('0xfd')]&&(_0x245f83[_0x20bf('0x118')](_0x73b228)&&!_0x245f83[_0x20bf('0x4a')](_0x73b228)&&(_0x73b228[_0x20bf('0xf7')]||_0x5b1d08[_0x20bf('0xe4')]?_0x25818c&&_0x25818c[_0x20bf('0xb2')]==_0x73b228||(_0x25818c=_0x73b228,_0x29ae71(_0xe69ec[_0x20bf('0x4f')]),_0x4f144c=!0x0):_0x3483bd=_0x3483bd||_0xe69ec[_0x20bf('0x4f')]));}function _0x29ae71(_0x45f488){const _0x60fd37=_0x150ff8[_0x20bf('0x4d')][_0x20bf('0x95')](_0x20bf('0x77'),{'class':_0x20bf('0x78')+_0x5d5ab5}),_0x51d1f3=_0x150ff8[_0x20bf('0xc1')][_0x20bf('0xe8')](_0x45f488);_0x3fd800[_0x20bf('0xf3')]['isSuggestion']&&_0x150ff8[_0x20bf('0x4d')][_0x20bf('0xb0')](_0x20bf('0x78')+_0x5d5ab5+_0x20bf('0x4b'),_0x60fd37),_0x532b5f[_0x20bf('0x1d')]==_0x3fd800&&_0x150ff8[_0x20bf('0x4d')][_0x20bf('0xb0')](_0x20bf('0x30'),_0x60fd37),_0x150ff8['writer'][_0x20bf('0x7d')](_0x51d1f3,_0x60fd37),_0x150ff8[_0x20bf('0xc1')]['bindElementToMarker'](_0x60fd37,_0x4615a5[_0x20bf('0xc9')]);}_0x5199c5||_0x4f144c||!_0x3483bd||_0x29ae71(_0x3483bd);};}(this['editor']),{'priority':_0x20bf('0xee')}),this[_0x20bf('0x36')][_0x20bf('0xda')][_0x20bf('0xd')]['on'](_0x20bf('0x10a'),(_0x18789d,_0x4c8b74,_0x52d05d)=>{const _0x1dde47=_0x52d05d[_0x20bf('0xc1')][_0x20bf('0x7')](_0x4c8b74[_0x20bf('0xc9')]);if(_0x1dde47)for(const _0x2c829e of _0x1dde47)(_0x2c829e['hasClass'](_0x20bf('0x9a'))||_0x2c829e['hasClass'](_0x20bf('0xae')))&&(_0x52d05d[_0x20bf('0xc1')][_0x20bf('0x1c')](_0x2c829e,_0x4c8b74[_0x20bf('0xc9')]),_0x52d05d[_0x20bf('0x4d')][_0x20bf('0xd8')](_0x2c829e));},{'priority':'high'}),this['editor'][_0x20bf('0xda')]['downcastDispatcher']['on']('addMarker:revision',(_0x534fb1,_0x4bf8b3,_0xa2460d)=>{const _0x26e607=_0x4bf8b3[_0x20bf('0xc9')][_0x20bf('0x55')](':')[0x1],_0x2549d7=this[_0x20bf('0x89')](_0x26e607);if(!_0x2549d7)return null;const _0x455818=_0x20bf('0xe0')==_0x2549d7[_0x20bf('0xfd')]?_0x20bf('0x55'):'merge';if(_0xa2460d['consumable'][_0x20bf('0x104')](_0x4bf8b3['markerRange'],_0x534fb1[_0x20bf('0xa4')]))for(const _0x35fe44 of _0x4bf8b3[_0x20bf('0x5f')][_0x20bf('0x8')]()){if(!_0x35fe44['is'](_0x20bf('0x9c'),_0x20bf('0x46')))continue;const _0x4fc1b9=_0xa2460d['writer'][_0x20bf('0x95')](_0x20bf('0x77'),{'class':_0x20bf('0x78')+_0x455818}),_0x148133=_0xa2460d['mapper'][_0x20bf('0xe8')](this[_0x20bf('0x36')][_0x20bf('0x113')][_0x20bf('0x2c')](_0x35fe44));_0x2549d7[_0x20bf('0xf3')][_0x20bf('0xb3')]&&_0xa2460d['writer'][_0x20bf('0xb0')](_0x20bf('0x78')+_0x455818+_0x20bf('0x4b'),_0x4fc1b9),this[_0x20bf('0x1d')]==_0x2549d7&&_0xa2460d['writer'][_0x20bf('0xb0')](_0x20bf('0x30'),_0x4fc1b9),_0xa2460d[_0x20bf('0x4d')]['insert'](_0x148133,_0x4fc1b9),_0xa2460d['mapper'][_0x20bf('0xcf')](_0x4fc1b9,_0x4bf8b3[_0x20bf('0xc9')]);}},{'priority':_0x20bf('0xee')}),this[_0x20bf('0x36')][_0x20bf('0x113')]['document']['on'](_0x20bf('0x14'),()=>{this[_0x20bf('0x36')][_0x20bf('0xda')][_0x20bf('0x1a')][_0x20bf('0x14')](_0x2ce9c9=>{for(const _0x4c3e3f of this['editor'][_0x20bf('0x113')][_0x20bf('0x8f')][_0x20bf('0x98')]()){const _0x3e5f50=this[_0x20bf('0x36')][_0x20bf('0x113')]['document'][_0x20bf('0xbb')](_0x4c3e3f),_0x8fe38f=this[_0x20bf('0x36')]['editing']['view']['document'][_0x20bf('0xbb')](_0x4c3e3f);if(_0x8fe38f){const _0x148379=_0x3e5f50[_0x20bf('0x10c')](_0x20bf('0xd5'));if(_0x2ce9c9['removeAttribute']('data-change-id',_0x8fe38f),_0x2ce9c9[_0x20bf('0xc4')](_0x20bf('0x9'),_0x8fe38f),_0x2ce9c9[_0x20bf('0xc4')](_0x20bf('0xfb'),_0x8fe38f),_0x2ce9c9[_0x20bf('0xc4')]('ck-revision-history-root--active',_0x8fe38f),_0x148379){const _0x723644=this['_getChangeFromId'](_0x148379);if(!_0x723644)return null;_0x2ce9c9[_0x20bf('0x31')]('data-change-id',_0x148379,_0x8fe38f),_0x2ce9c9[_0x20bf('0xb0')](_0x20bf('0x20')+_0x723644[_0x20bf('0xfd')],_0x8fe38f),this[_0x20bf('0x1d')]==_0x723644&&_0x2ce9c9[_0x20bf('0xb0')](_0x20bf('0x3'),_0x8fe38f);}}}});}),this[_0x20bf('0x36')][_0x20bf('0x15')][_0x20bf('0xd2')](_0x20bf('0xe9'))['dataToMarker']({'view':_0x20bf('0x86'),'model':_0x56b76e=>_0x20bf('0x69')+_0x56b76e,'converterPriority':_0x20bf('0x4c')}),this[_0x20bf('0x36')][_0x20bf('0x15')][_0x20bf('0xd2')]('upcast')['dataToMarker']({'view':_0x20bf('0xd1'),'model':_0x123af3=>_0x20bf('0xd3')+_0x123af3,'converterPriority':_0x20bf('0x4c')}),this[_0x20bf('0x36')]['conversion']['for'](_0x20bf('0x91'))[_0x20bf('0x93')]({'model':'revision-suggestion','view':_0x214cf5=>({'name':_0x20bf('0xc')+_0x214cf5,'group':'revision-suggestion'}),'converterPriority':_0x20bf('0x4c')}),this[_0x20bf('0x36')][_0x20bf('0x15')]['for'](_0x20bf('0x2a'))[_0x20bf('0x48')]({'model':_0x20bf('0xc6'),'view':_0x31c074=>{const _0x1bdb0c=_0x31c074['markerName'][_0x20bf('0x55')](':')[0x1];return _0x20bf('0xa3')!=_0x1bdb0c&&_0x20bf('0x29')!=_0x1bdb0c?null:{'classes':[_0x20bf('0xaa'),'ck-suggestion-preview-marker-'+_0x1bdb0c]};}}),this['editor'][_0x20bf('0xda')][_0x20bf('0xd')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x20bf('0x36')],_0x20bf('0x81')),{'priority':'high'}),this[_0x20bf('0x36')][_0x20bf('0xda')][_0x20bf('0xd')]['on'](_0x20bf('0x6e'),et(this[_0x20bf('0x36')],_0x20bf('0x55')),{'priority':_0x20bf('0xee')}),this[_0x20bf('0x36')][_0x20bf('0xda')]['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1974ea,_0x4bd201,_0x2f3da4)=>{const _0x552578=_0x2f3da4[_0x20bf('0xc1')]['markerNameToElements'](_0x4bd201[_0x20bf('0xc9')]);if(_0x552578)for(const _0x3be0e1 of _0x552578)_0x3be0e1['is'](_0x20bf('0xd9'))&&(_0x2f3da4[_0x20bf('0xc1')][_0x20bf('0x1c')](_0x3be0e1,_0x4bd201['markerName']),_0x2f3da4[_0x20bf('0x4d')][_0x20bf('0xd8')](_0x3be0e1));},{'priority':_0x20bf('0xee')});}[_0x20bf('0x89')](_0xbd43b2){return this['_changeIdToChange'][_0x20bf('0xc3')](_0xbd43b2);}[_0x20bf('0x75')](_0x30375f){return this[_0x20bf('0x21')]&&this[_0x20bf('0x21')][_0x20bf('0x37')](),this['_changeView']=new _0x1c09bf(this[_0x20bf('0x36')][_0x20bf('0xdf')],_0x30375f),this['_changeView'];}[_0x20bf('0x97')](){this[_0x20bf('0x36')][_0x20bf('0x113')][_0x20bf('0x8f')][_0x20bf('0x108')]['observeMarkers'](_0x20bf('0x22')),this['on'](_0x20bf('0x27'),(_0x2c6e6d,_0x1593b2,_0x5537f2,_0x3aad63)=>{_0x3aad63&&this[_0x20bf('0xf6')]['remove'](_0x3aad63),_0x5537f2&&(this[_0x20bf('0xf6')][_0x20bf('0xe0')]({'view':_0x5537f2,'stackId':_0x20bf('0xf5'),'position':{'target':()=>{const _0x59f1fe=this[_0x20bf('0x36')][_0x20bf('0xda')],_0xd03065=this[_0x20bf('0x89')](_0x5537f2[_0x20bf('0x74')]);let _0x3bba55;if(_0xd03065[_0x20bf('0xf3')][_0x20bf('0xb9')]){const _0x21a8a8=_0x59f1fe[_0x20bf('0x1a')][_0x20bf('0x13')](_0xd03065[_0x20bf('0x109')]);_0x3bba55=Array[_0x20bf('0x116')](_0x21a8a8[_0x20bf('0xc5')]());}else{const _0x1a6440=this[_0x20bf('0x36')]['model'][_0x20bf('0x10b')][_0x20bf('0xc3')]('revision:'+_0x5537f2[_0x20bf('0x74')]);_0x3bba55=Array[_0x20bf('0x116')](_0x59f1fe[_0x20bf('0xc1')]['markerNameToElements'](_0x1a6440[_0x20bf('0xa4')]))[_0x20bf('0x10d')](_0x33c6f4=>_0x59f1fe[_0x20bf('0x1a')][_0x20bf('0xf4')][_0x20bf('0x47')](_0x33c6f4))[_0x20bf('0x10d')](_0x448e42=>Array[_0x20bf('0x116')](_0x448e42[_0x20bf('0xc5')]()))[_0x20bf('0xdc')]();}if(!this[_0x20bf('0x110')])return _0x3bba55[0x0];return _0x3bba55['find'](_0x3a6bd8=>_0x3a6bd8[_0x20bf('0x87')]-0x3<=this[_0x20bf('0x110')]['y']&&_0x3a6bd8[_0x20bf('0xe7')]+0x3>=this[_0x20bf('0x110')]['y']&&_0x3a6bd8['left']-0x3<=this[_0x20bf('0x110')]['x']&&_0x3a6bd8[_0x20bf('0x80')]+0x3>=this['_activeViewTarget']['x'])||_0x3bba55[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x40c0ff,_0x47ac37,_0x2ddde0,_0x17ada9)=>{this[_0x20bf('0xa8')]=_0x2ddde0?this[_0x20bf('0x75')](_0x2ddde0):null,this[_0x20bf('0x36')]['model'][_0x20bf('0x14')](()=>{const _0xdb8e39=this[_0x20bf('0x36')][_0x20bf('0xda')];_0x17ada9&&(_0x17ada9[_0x20bf('0xf3')][_0x20bf('0xb9')]?_0xdb8e39['view'][_0x20bf('0x14')](_0x55aebf=>{_0x55aebf[_0x20bf('0xc4')](_0x20bf('0x3'),_0xdb8e39[_0x20bf('0x1a')][_0x20bf('0x8f')]['getRoot'](_0x17ada9[_0x20bf('0x109')]));}):_0xdb8e39['reconvertMarker'](_0x20bf('0x44')+_0x17ada9['id'])),_0x2ddde0&&(_0x2ddde0[_0x20bf('0xf3')][_0x20bf('0xb9')]?_0xdb8e39['view']['change'](_0xb1f107=>{_0xb1f107['addClass'](_0x20bf('0x3'),_0xdb8e39[_0x20bf('0x1a')]['document'][_0x20bf('0xbb')](_0x2ddde0[_0x20bf('0x109')]));}):_0xdb8e39[_0x20bf('0xc2')](_0x20bf('0x44')+_0x2ddde0['id']));});}),this[_0x20bf('0xbf')](this[_0x20bf('0x36')]['editing'][_0x20bf('0x1a')][_0x20bf('0x8f')],_0x20bf('0x49'),(_0x383116,_0x244235)=>{if(this[_0x20bf('0x1d')])return;const _0x134fdd=this[_0x20bf('0xb6')](_0x244235[_0x20bf('0x9b')]),_0x249b8a=this[_0x20bf('0x11f')][_0x20bf('0xc3')](_0x134fdd);_0x249b8a?(this[_0x20bf('0x110')]={'x':_0x244235['domEvent']['x'],'y':_0x244235[_0x20bf('0x114')]['y']},this[_0x20bf('0xa8')]=this[_0x20bf('0x75')](_0x249b8a)):(this[_0x20bf('0x110')]=null,this[_0x20bf('0xa8')]=null);}),this[_0x20bf('0xbf')](this['editor'][_0x20bf('0xda')][_0x20bf('0x1a')][_0x20bf('0x8f')],_0x20bf('0x26'),(_0x47e0af,_0x55b97f)=>{const _0x37c414=this[_0x20bf('0xb6')](_0x55b97f[_0x20bf('0x9b')]),_0x1463bc=this[_0x20bf('0x11f')][_0x20bf('0xc3')](_0x37c414);_0x1463bc?(this[_0x20bf('0x110')]={'x':_0x55b97f['domEvent']['x'],'y':_0x55b97f[_0x20bf('0x114')]['y']},_0x1463bc===this['activeChange']?this[_0x20bf('0xf6')]['updatePosition']():this[_0x20bf('0x1d')]=_0x1463bc):(this[_0x20bf('0x110')]=null,this[_0x20bf('0x1d')]=null);});}[_0x20bf('0xb6')](_0x17dff2){do{const _0x25af53=_0x17dff2[_0x20bf('0x10c')](_0x20bf('0xeb'));if(_0x25af53)return _0x25af53;_0x17dff2=_0x17dff2[_0x20bf('0xb2')];}while(_0x17dff2);return null;}[_0x20bf('0x8a')](){this[_0x20bf('0x36')]['model'][_0x20bf('0x14')](_0x40d856=>{for(const _0x3c1a70 of this['editor'][_0x20bf('0x113')][_0x20bf('0x10b')])_0x40d856['removeMarker'](_0x3c1a70);});}}function et(_0x4f9f56,_0x4bdc07){return(_0x1d2396,_0x3d2ae2,_0x31a6d4)=>{if(!_0x31a6d4[_0x20bf('0xaf')]['test'](_0x3d2ae2[_0x20bf('0x5f')],_0x1d2396['name']))return;const _0x5a0c55=_0x3d2ae2['markerRange'][_0x20bf('0x9f')](),_0x3a8371=_0x3d2ae2['markerRange'][_0x20bf('0xf0')],_0x20afd2=_0x4f9f56[_0x20bf('0x113')][_0x20bf('0xc8')];let _0x5d8fd4=null,_0x4d4efa=null,_0xe15e3b=!0x1,_0x3be90b=!0x1;for(const _0x3a6637 of _0x5a0c55){const _0x25b499=_0x3a6637['item'];_0xe15e3b=_0xe15e3b||_0x20afd2[_0x20bf('0xcb')](_0x25b499);const _0x16f646=_0x31a6d4['mapper'][_0x20bf('0x2b')](_0x25b499);if(_0x16f646&&_0x16f646[_0x20bf('0x8b')](_0x20bf('0x10f')))return;_0x20bf('0x5b')==_0x3a6637[_0x20bf('0xfd')]&&(_0x20afd2[_0x20bf('0x118')](_0x25b499)&&!_0x20afd2[_0x20bf('0x4a')](_0x25b499)&&(_0x25b499[_0x20bf('0xf7')]||_0x3a8371[_0x20bf('0xe4')]?_0x5d8fd4&&_0x5d8fd4['parent']==_0x25b499||(_0x5d8fd4=_0x25b499,_0x23f357(_0x3a6637[_0x20bf('0x4f')]),_0x3be90b=!0x0):_0x4d4efa=_0x4d4efa||_0x3a6637['previousPosition']));}function _0x23f357(_0x1f43ef){const _0x8bccd1=_0x31a6d4[_0x20bf('0xc1')][_0x20bf('0xe8')](_0x1f43ef),_0x11dce3=_0x31a6d4[_0x20bf('0x4d')][_0x20bf('0x95')]('span',{'class':'ck-suggestion-preview-marker-'+_0x4bdc07});_0x31a6d4[_0x20bf('0x4d')][_0x20bf('0x7d')](_0x8bccd1,_0x11dce3),_0x31a6d4[_0x20bf('0xc1')][_0x20bf('0xcf')](_0x11dce3,_0x3d2ae2['markerName']);}_0xe15e3b||_0x3be90b||!_0x4d4efa||_0x23f357(_0x4d4efa);};}export class RestoreRevisionCommand extends _0x48e309{constructor(_0x2934a1){super(_0x2934a1);const _0x3d29ba=_0x2934a1[_0x20bf('0x3a')]['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x3d29ba,_0x20bf('0x11d'),()=>this['refresh']()),this[_0x20bf('0xbf')](_0x3d29ba,_0x20bf('0x3b'),()=>this[_0x20bf('0xcc')]());}[_0x20bf('0x5')](){const _0x1d97c8=this['editor'],_0x435d60=_0x1d97c8['plugins']['get'](d),_0x1298a3=_0x435d60[_0x20bf('0x12')]?_0x435d60[_0x20bf('0x11')][_0x20bf('0xca')]:null;_0x1d97c8[_0x20bf('0x8c')]['get'](_0x20bf('0x7e'))[_0x20bf('0x8d')](_0x1298a3);}[_0x20bf('0xcc')](){const {isReady:_0x4f19ea,isEnabled:_0x5468af}=this[_0x20bf('0x36')][_0x20bf('0x3a')]['get'](d);this['isEnabled']=_0x4f19ea&&_0x5468af;}}export class ShowChangeCommand extends _0x48e309{constructor(_0x312e12,{direction:_0x15e186}){super(_0x312e12);const _0x255f8b=_0x312e12[_0x20bf('0x3a')][_0x20bf('0xc3')](d);this[_0x20bf('0x11c')]=!0x1,this['_step']=_0x20bf('0x0')===_0x15e186?0x1:-0x1,this[_0x20bf('0xbf')](_0x255f8b,_0x20bf('0x11d'),()=>this[_0x20bf('0xcc')]()),this['listenTo'](_0x255f8b,'change:isEnabled',()=>this[_0x20bf('0xcc')]()),this[_0x20bf('0xbf')](_0x255f8b,_0x20bf('0x25'),()=>this[_0x20bf('0xcc')]());}['execute'](){const _0x16b569=this['editor'],_0x1b060a=_0x16b569['plugins'][_0x20bf('0xc3')](d),{isNavigationMode:_0x5b58c4,currentChangeNumber:_0x2de763}=_0x1b060a;let _0x5b3859;if(_0x1b060a[_0x20bf('0x1d')]=_0x5b58c4?_0x1b060a[_0x20bf('0x11')][_0x20bf('0xed')][_0x20bf('0xc3')](_0x2de763+this[_0x20bf('0x2d')]):_0x1b060a[_0x20bf('0x11')][_0x20bf('0xed')][_0x20bf('0xa5')],_0x1b060a[_0x20bf('0x1d')]['data'][_0x20bf('0xb9')])_0x5b3859=_0x16b569['editing'][_0x20bf('0x1a')][_0x20bf('0x13')](_0x1b060a[_0x20bf('0x1d')][_0x20bf('0x109')]);else{const _0x53955e=_0x16b569[_0x20bf('0x113')][_0x20bf('0x10b')]['get']('revision:'+_0x1b060a[_0x20bf('0x1d')]['id']);_0x5b3859=_0xd912bf(_0x16b569['editing'],_0x53955e);}_0x98832({'target':_0x5b3859,'viewportOffset':0x28});}[_0x20bf('0xcc')](){const {isNavigationMode:_0x492038,currentChangeNumber:_0x2a7961,numberOfChanges:_0x28c291,isReady:_0x3ddf26,isEnabled:_0x4e6ca9}=this[_0x20bf('0x36')][_0x20bf('0x3a')][_0x20bf('0xc3')](d);this[_0x20bf('0x3e')]=!!(_0x4e6ca9&&_0x3ddf26&&_0x28c291)&&(!_0x492038||(0x1===this['_step']?_0x2a7961<_0x28c291-0x1:_0x2a7961>0x0));}}
|
|
23
|
+
const _0x356e=['config','getIndex','isRemoved','addClass','requires','isCollapsed','attributesBefore','push','activeView','markerToHighlight','getAttribute','merge','getWalker','top','test','isEqual','useFillerType','nextPosition','insert','repository','RevisionsRepository','elementStart','_markInsertions','nextSibling','showNextChange','return','getRoot','comment','viewItem','flat','addRevision','clear','slice','_removeMissingPairs','isContent','ck-editor__editable__overlay','createPositionBefore','code','markersStart','range','showStack','createPositionFromPath','isAfter','isAddSuggestion','revision:','end','splice','_markMismatchedRemovedTags','isRemoveSuggestion','unshift','_makeTape','removeMarker','domEvent','_setChanges','RevisionViewer','find','markersEnd','level','oldRevisionId','ck-revision-history-root--active','_threeWayMerge','text','insertions','set','changes','endIndex','isAdded','vid_start','sort','_makeModelFromViewString','_getChangeFromId','toViewElement','pairId','get','catch','pop','maxOffset','affectsData','change','_step','loadRevisionData','getRevisionData','model','element','refresh','elementEnd','modelRange','_update','length','left','isOnRoot','uiElement','_removeRevisionMarkers','unbindElementFromMarkerName','addRoot','hasClass','type','-new','distance','isBefore','getRootNames','markerName','from','elementToAttribute','_markMarkers','change:isEnabled','hasAttribute','highest','checkAttribute','change:activeView','downcastDispatcher','setAttribute','_cleanUp','item','string','createRangeIn','activeChange','start','currentChangeNumber','ck-suggestion-preview-marker','execute','change:activeChange','upcast','name','_markSuggestions','removeClass','filter','_cleanMarkers','adapter','next','attachChange','deletions','collaboration.channelId','_getDiff','previousPosition','isEnabled','delete','view','deletion','_initInteractions','ck-suggestion-preview-marker-','includes','updatePosition','all','revisionHistoryLabel','_revisions','_sortAndFilterDiffChanges','done','offsetSize','getAttributes','stop','consume','toViewPosition','addMarker:revision-suggestion:insertion','attributesAfter','findIndex','change:numberOfChanges','backward','getRevision','insertion','data-change-id','pluginName','dataToMarker','editing','isAttached','_setDistance','_getViewForChange','side','getClientRects','low','authors','newRevisionId','ck-revision-history-root-','isLimit','element:pre','add','_getRevisionsRange','getChild','createAttributeElement','enqueueChange','detachRoot','revision-suggestion','bind','addHighlight','isInline','schema','selection','for','ck-revision-history-root-add','ck-suggestion-marker-merge','_activeViewTarget','_setConversion','markerToData','_getViewObj','commands','revisionHistory','_refreshStartEndIndex','data-revision-','editor','processor','consumable','_changeView','change:isReady','forward','concat','createUIElement','parse','isAtStart','reconvertMarker','startsWith','data','nodeAfter','_removeUnsupportedChanges','locale','marked','mapper','indexOf','revision-suggestion:','vid','_fixObsoleteTags','abs','forceDisabled','_balloon','isBlock','ck-suggestion-marker-split','createRange','_changeIdToChange','error','mousedown','isSuggestion','then','userId','startIndex','diff','isReady','_findChangeIdFromDomTarget','addRevisionData','compare','suggestion','destroy','revision','editingDowncast','plugins','forEach','attribute:vid','has','WidgetToolbarRepository','writer','index','high','ck-suggestion-marker-','listenTo','attributes','restoreRevision','revision-comment:','ck-suggestion-marker','dataDowncast','isAtEnd','parent','_processTape','softBreak','keys','target','suggestion:','markers','conversion','default','addMarker:revision','resolve','isIncorrect','bindElementToMarker','revision-viewer','vid_end','right','map','markerRange','_data','rootName','getDomRoot','removeMarker:revision-suggestion','span','document','diffData','split','remove','changeId','shift','_appendChild','children','wrap','markerNameToElements'];(function(_0x37163c,_0x356e6f){const _0x121373=function(_0x4c690b){while(--_0x4c690b){_0x37163c['push'](_0x37163c['shift']());}};_0x121373(++_0x356e6f);}(_0x356e,0x14b));const _0x1213=function(_0x37163c,_0x356e6f){_0x37163c=_0x37163c-0x0;let _0x121373=_0x356e[_0x37163c];return _0x121373;};import{Plugin as _0x40ca53,Command as _0x76009b}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1162e9}from'ckeditor5/src/utils';import{ContextualBalloon as _0x7f78dc}from'ckeditor5/src/ui';import{DocumentFragment as _0x391c97,Element as _0x6e3159,Text as _0x5111e1,ViewDocumentFragment as _0x1d5f57,ViewText as _0x165698,ViewElement as _0x376922,ViewContainerElement as _0x30b460,ViewAttributeElement as _0x2aacdd,ViewEmptyElement as _0x2f0f1e,ViewRawElement as _0x54618b,ViewUIElement as _0xe5f7b7}from'ckeditor5/src/engine';import{Users as _0x355653,getMarkerDomElement as _0xb2fd99}from'ckeditor5-collaboration/src/collaboration-core';import _0x34ac4c from'./ui/revisionviewer/changedetailsview';import _0x49e3ad from'./revisionsrepository';import _0x17aba0 from'./changeitem';import{default as _0x177edb}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x5e15b4}from'lodash-es';const tt={'c':_0x30b460,'a':_0x2aacdd,'e':_0x2f0f1e,'r':_0x54618b,'u':_0xe5f7b7};export default class d extends _0x40ca53{static get[_0x1213('0x79')](){return'RevisionViewer';}static get[_0x1213('0xff')](){return[_0x355653,_0x7f78dc,_0x49e3ad];}constructor(_0x956e9b){super(_0x956e9b),this[_0x1213('0x10e')]=this[_0x1213('0x9e')]['plugins']['get'](_0x1213('0x10f')),this['set'](_0x1213('0x4c'),null),this[_0x1213('0x17')](_0x1213('0x103'),null),this[_0x1213('0x96')]=null,this[_0x1213('0x17')](_0x1213('0xc1'),null),this[_0x1213('0x17')]('isReady',!0x1),this[_0x1213('0x17')]('isEnabled',!0x0),this['on'](_0x1213('0x41'),(_0x239c59,_0x18d028,_0x41dcf9)=>{this[_0x1213('0x4c')]=null,this['activeView']=null,this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x61')][_0x1213('0x26')](_0x40dbac=>{for(const _0x2bca98 of this['editor'][_0x1213('0x7b')]['view'][_0x1213('0xf1')]['roots'])_0x41dcf9?_0x40dbac[_0x1213('0x55')]('ck-editor__editable__overlay',_0x2bca98):_0x40dbac['addClass'](_0x1213('0x11e'),_0x2bca98);});}),this[_0x1213('0x8e')]('isNavigationMode')['to'](this,_0x1213('0x4c'),_0x2ba1a7=>null!==_0x2ba1a7),this['bind'](_0x1213('0x4e'))['to'](this,_0x1213('0xc2'),this,_0x1213('0xc1'),this,'activeChange',(_0x35dba9,_0x89b00e,_0x5665c9)=>_0x35dba9&&_0x5665c9?_0x89b00e[_0x1213('0x18')][_0x1213('0xfc')](_0x5665c9):0x0),this[_0x1213('0x8e')]('numberOfChanges')['to'](this,_0x1213('0xc2'),this,_0x1213('0xc1'),(_0x37f379,_0x231892)=>_0x37f379?_0x231892[_0x1213('0x18')][_0x1213('0x30')]:0x0),this[_0x1213('0xa1')]=null,this[_0x1213('0xba')]=new Map(),this[_0x1213('0x58')]=null,this[_0x1213('0xb6')]=this[_0x1213('0x9e')][_0x1213('0xca')][_0x1213('0x21')](_0x7f78dc);}['init'](){const _0x3cb816=this[_0x1213('0x9e')],_0x4c867b=new ShowChangeCommand(_0x3cb816,{'direction':_0x1213('0x75')}),_0x1cd48a=new ShowChangeCommand(_0x3cb816,{'direction':_0x1213('0xa3')});(_0x3cb816[_0x1213('0x9a')][_0x1213('0x87')]('showPreviousChange',_0x4c867b),_0x3cb816['commands'][_0x1213('0x87')](_0x1213('0x113'),_0x1cd48a),_0x3cb816[_0x1213('0x9a')][_0x1213('0x87')](_0x1213('0xd5'),new RestoreRevisionCommand(_0x3cb816)),this['on'](_0x1213('0x74'),()=>{_0x4c867b['refresh'](),_0x1cd48a[_0x1213('0x2c')]();}),this['_setConversion'](),this['_initInteractions'](),_0x3cb816['enableReadOnlyMode'](_0x1213('0xe7')),_0x3cb816[_0x1213('0xca')][_0x1213('0xcd')](_0x1213('0xce')))&&_0x3cb816[_0x1213('0xca')][_0x1213('0x21')](_0x1213('0xce'))[_0x1213('0xb5')](_0x1213('0xe7'));}async[_0x1213('0x29')](_0x227718){await this[_0x1213('0x28')](_0x227718);const _0x2b99f1={};for(const _0x53fd6c in _0x227718[_0x1213('0xf2')]){if(_0x227718[_0x1213('0xf2')][_0x53fd6c][_0x1213('0x5a')]&&!_0x227718[_0x1213('0xf2')][_0x53fd6c][_0x1213('0x5a')]['isAttached'])continue;const _0x39adc2=this[_0x1213('0x34')](JSON[_0x1213('0xa6')](_0x227718[_0x1213('0xf2')][_0x53fd6c][_0x1213('0x16')])),_0x2e2532=this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x61')][_0x1213('0xf1')],_0x50e9d3=new _0x1d5f57(_0x2e2532,_0x39adc2[_0x1213('0xea')](_0x545407=>this[_0x1213('0x99')](_0x545407)));this[_0x1213('0x9e')][_0x1213('0xaa')][_0x1213('0x9f')][_0x1213('0x10b')](_0x1213('0xae')),_0x2b99f1[_0x53fd6c]=this['editor'][_0x1213('0xaa')]['processor']['toData'](_0x50e9d3),this[_0x1213('0x9e')][_0x1213('0xaa')][_0x1213('0x9f')][_0x1213('0x10b')](_0x1213('0xe2'));}return _0x2b99f1;}async['getRevisionRootsAttributes'](_0x383f47){await this[_0x1213('0x28')](_0x383f47);const _0x24fd71={};for(const _0x5502b8 in _0x383f47[_0x1213('0xf2')])_0x383f47['diffData'][_0x5502b8][_0x1213('0x5a')]&&!_0x383f47['diffData'][_0x5502b8][_0x1213('0x5a')][_0x1213('0x7c')]||(_0x24fd71[_0x5502b8]=_0x383f47[_0x1213('0xf2')][_0x5502b8][_0x1213('0x72')]||{});return _0x24fd71;}[_0x1213('0x34')](_0x9c4f55){return(_0x9c4f55=_0x9c4f55[_0x1213('0x56')](_0x526798=>!_0x526798[_0x1213('0x53')]||'revision-start'!==_0x526798[_0x1213('0x53')]&&'revision-end'!==_0x526798[_0x1213('0x53')]))[_0x1213('0xcb')](_0x279ef7=>{_0x1213('0x4a')!=typeof _0x279ef7&&(_0x279ef7['children']=this['_removeRevisionMarkers'](_0x279ef7['children']),_0x279ef7[_0x1213('0xd4')]=_0x279ef7['attributes'][_0x1213('0x56')](_0x335c68=>!_0x335c68[0x0][_0x1213('0xa9')](_0x1213('0x9d'))));}),_0x9c4f55;}async[_0x1213('0xc5')](_0x354cbc,_0x1b8f18,_0x238a0a=!0x1){if(!this[_0x1213('0x5f')])return;const _0x399a1d=this[_0x1213('0xc1')],_0x4c945c=this[_0x1213('0x10e')],_0x2c3641=_0x1213('0x4a')==typeof _0x354cbc?_0x4c945c['getRevision'](_0x354cbc):_0x354cbc,_0x5a501c='string'==typeof _0x1b8f18?_0x4c945c[_0x1213('0x76')](_0x1b8f18):_0x1b8f18,_0x22190d=_0x2c3641['id'],_0x5b8696=_0x5a501c?_0x5a501c['id']:null;if(!_0x238a0a&&this[_0x1213('0xc1')]&&this[_0x1213('0xc1')][_0x1213('0x83')]===_0x22190d&&this[_0x1213('0xc1')][_0x1213('0x12')]===_0x5b8696)return Promise[_0x1213('0xe4')]();this[_0x1213('0xc2')]=!0x1,this[_0x1213('0x103')]=null,this[_0x1213('0x4c')]=null,this[_0x1213('0xc1')]=new _0x177edb(_0x22190d,_0x5b8696);const _0x1a7141=this[_0x1213('0x88')](_0x2c3641,_0x5a501c,!0x0)['map'](_0xe56172=>this[_0x1213('0x28')](_0xe56172));return _0x1a7141[_0x1213('0x102')](new Promise(_0x5e5b02=>{setTimeout(_0x5e5b02,0x14);})),Promise[_0x1213('0x67')](_0x1a7141)[_0x1213('0xbe')](()=>{if(!this[_0x1213('0x5f')])return;this[_0x1213('0x48')]();const _0x30dae4=this[_0x1213('0x5d')](_0x22190d,_0x5b8696);for(const _0x58bfef of _0x30dae4[_0x1213('0x18')])this[_0x1213('0xba')]['set'](_0x58bfef['id'],_0x58bfef);this[_0x1213('0x9e')]['model'][_0x1213('0x8b')]({'isUndoable':!0x1},_0x5a81bf=>{for(const _0x2c5648 of this['editor'][_0x1213('0x2a')][_0x1213('0xf1')][_0x1213('0x3c')]())_0x5a81bf['detachRoot'](_0x2c5648);for(const _0x274cb8 of Object[_0x1213('0xdd')](_0x30dae4[_0x1213('0x2a')])){const _0x3bf811=_0x5a81bf[_0x1213('0x36')](_0x274cb8);for(const _0x4c8b1c of Object[_0x1213('0xdd')](_0x30dae4[_0x1213('0xd4')][_0x274cb8]))_0x5a81bf[_0x1213('0x47')](_0x4c8b1c,_0x30dae4['attributes'][_0x274cb8][_0x4c8b1c],_0x3bf811);_0x5a81bf[_0x1213('0x10d')](_0x30dae4['model'][_0x274cb8],_0x3bf811,0x0);}}),this[_0x1213('0xc1')][_0x1213('0xd')](this[_0x1213('0x6a')](_0x30dae4[_0x1213('0x18')])),this[_0x1213('0xc2')]=!0x0;})[_0x1213('0x22')](_0x39bad5=>{console[_0x1213('0xbb')](_0x39bad5),this['_cleanUp'](),_0x399a1d&&(this[_0x1213('0xc1')]=_0x399a1d),this[_0x1213('0xc2')]=!0x0;});}[_0x1213('0xc4')](_0x5ada96,_0x35f74d){const _0x5c9f42=this[_0x1213('0x10e')]['createRevision'](_0x5ada96);return _0x5c9f42['on'](_0x1213('0x2f'),(_0x47f0a2,_0x19cb74,_0x567f0e)=>_0x35f74d(_0x19cb74,_0x567f0e,_0x5c9f42)),this[_0x1213('0x10e')][_0x1213('0x119')](_0x5c9f42),_0x5c9f42;}[_0x1213('0x28')](_0x12a638){if(!_0x12a638||_0x12a638[_0x1213('0xf2')])return Promise[_0x1213('0xe4')]();{const _0x4aacbc=this[_0x1213('0x9e')]['config']['get'](_0x1213('0x5c'));return this[_0x1213('0x58')][_0x1213('0x76')]({'channelId':_0x4aacbc,'revisionId':_0x12a638['id']})[_0x1213('0xbe')](_0x1a055d=>{_0x12a638['_update']({'diffData':_0x1a055d['diffData']},!0x0);});}}[_0x1213('0x48')](){this[_0x1213('0x4c')]=null,this[_0x1213('0x57')](),this['_changeView']&&this[_0x1213('0xa1')]['destroy'](),this['_changeView']=null,this[_0x1213('0xba')][_0x1213('0x11a')](),this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0x8b')]({'isUndoable':!0x1},_0x31bf26=>{for(const _0x9c12d2 of this[_0x1213('0x9e')]['model'][_0x1213('0xf1')][_0x1213('0x3c')]())_0x31bf26[_0x1213('0x8c')](_0x9c12d2);});}[_0x1213('0x6a')](_0x2fda18){const _0x4e5ae3=[],_0x39b84d=new Map();for(const _0x577a2b of this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0xf1')][_0x1213('0x3c')]()){const _0x5104e2=this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x61')][_0x1213('0xee')](_0x577a2b);if(!_0x5104e2)continue;const _0x4307d7=_0x5104e2[_0x1213('0x80')]()['item'](0x0);_0x4307d7&&(_0x4e5ae3[_0x1213('0x102')](_0x577a2b),_0x39b84d[_0x1213('0x17')](_0x577a2b,_0x4307d7));}return _0x4e5ae3[_0x1213('0x1c')]((_0x2d4976,_0x181a2d)=>{const _0x43d8e8=_0x39b84d[_0x1213('0x21')](_0x2d4976),_0xbb0988=_0x39b84d[_0x1213('0x21')](_0x181a2d);return _0x43d8e8['y']-_0xbb0988['y']||_0x43d8e8['x']-_0xbb0988['x'];}),(_0x2fda18=_0x2fda18[_0x1213('0x56')](_0x3f8020=>_0x4e5ae3[_0x1213('0x65')](_0x3f8020[_0x1213('0xed')])))[_0x1213('0x1c')]((_0x5ba5bb,_0x35b5ef)=>_0x4e5ae3[_0x1213('0xb0')](_0x5ba5bb['rootName'])-_0x4e5ae3['indexOf'](_0x35b5ef['rootName'])),_0x2fda18;}[_0x1213('0xa')](_0x4422f7){const _0x3b895d=Array[_0x1213('0x3e')](_0x4422f7[_0x1213('0xe0')])[_0x1213('0x56')](([_0x4921ba,_0x56b8b6])=>_0x4921ba['startsWith'](_0x1213('0x4'))&&!_0x56b8b6[_0x1213('0x100')]),_0x53f118=Array[_0x1213('0x3e')](this['editor'][_0x1213('0x2a')][_0x1213('0x4b')](_0x4422f7)[_0x1213('0x107')]({'singleCharacters':!0x0}));if(0x0!=_0x3b895d['length'])for(const _0x520438 of _0x53f118){const [_0x2b21f3,_0x5e4e52]=_0x3b895d[0x0],[,_0x2fe327,_0x22bbde]=_0x2b21f3[_0x1213('0xf3')](':');if(_0x5e4e52[_0x1213('0x5')]['isEqual'](_0x520438[_0x1213('0x10c')])&&_0x3b895d[_0x1213('0xf6')](),(_0x520438[_0x1213('0x5e')][_0x1213('0x10a')](_0x5e4e52[_0x1213('0x4d')])||_0x520438[_0x1213('0x5e')][_0x1213('0x2')](_0x5e4e52[_0x1213('0x4d')]))&&(_0x1213('0x77')==_0x2fe327?_0x520438['isAdded']={'userId':_0x22bbde}:_0x1213('0x62')==_0x2fe327&&(_0x520438[_0x1213('0xfd')]={'userId':_0x22bbde})),0x0==_0x3b895d[_0x1213('0x30')])break;}return _0x53f118;}['_refreshStartEndIndex'](_0x5c9573){const _0x1a92f6=new Map();for(let _0x38844a=0x0;_0x38844a<_0x5c9573[_0x1213('0x30')];_0x38844a++)_0x1213('0x15')===_0x5c9573[_0x38844a][_0x1213('0x38')]?(_0x5c9573[_0x38844a]['item'][_0x1213('0xc0')]=_0x38844a,_0x5c9573[_0x38844a][_0x1213('0x49')][_0x1213('0x19')]=_0x38844a):('elementStart'===_0x5c9573[_0x38844a][_0x1213('0x38')]?_0x5c9573[_0x38844a][_0x1213('0x49')][_0x1213('0xc0')]=_0x38844a:_0x1213('0x2d')===_0x5c9573[_0x38844a]['type']&&(_0x5c9573[_0x38844a]['item'][_0x1213('0x19')]=_0x38844a),_0x1a92f6[_0x1213('0x17')](_0x5c9573[_0x38844a]['id'],_0x38844a));for(const _0x2dcbe0 of _0x1a92f6['values']())_0x1213('0x110')===_0x5c9573[_0x2dcbe0][_0x1213('0x38')]?_0x5c9573[_0x2dcbe0]['item']['endIndex']=_0x1a92f6['get'](_0x5c9573[_0x2dcbe0]['pairId']):'elementEnd'===_0x5c9573[_0x2dcbe0][_0x1213('0x38')]&&(_0x5c9573[_0x2dcbe0][_0x1213('0x49')][_0x1213('0xc0')]=_0x1a92f6[_0x1213('0x21')](_0x5c9573[_0x2dcbe0][_0x1213('0x20')]));}[_0x1213('0xdb')](_0x3d3e78){for(let _0x3cb531=0x0;_0x3cb531<_0x3d3e78[_0x1213('0x30')];_0x3cb531++){if('elementStart'===_0x3d3e78[_0x3cb531]['type'])_0x3d3e78[_0x3cb531][_0x1213('0x49')][_0x1213('0xc0')]=_0x3cb531;else{if(_0x1213('0x2d')===_0x3d3e78[_0x3cb531][_0x1213('0x38')]){_0x3d3e78[_0x3cb531][_0x1213('0x49')][_0x1213('0x19')]=_0x3cb531;const _0x3e27d3=_0x3d3e78[_0x3cb531]['item'][_0x1213('0xc0')];_0x3d3e78[_0x3e27d3][_0x1213('0x20')]=_0x3d3e78[_0x3cb531]['id'],_0x3d3e78[_0x3cb531][_0x1213('0x20')]=_0x3d3e78[_0x3e27d3]['id'];}else _0x3d3e78[_0x3cb531]['item'][_0x1213('0xc0')]=_0x3cb531,_0x3d3e78[_0x3cb531][_0x1213('0x49')][_0x1213('0x19')]=_0x3cb531,_0x3d3e78[_0x3cb531][_0x1213('0x20')]=null;}_0x3d3e78[_0x3cb531][_0x1213('0x121')]||(_0x3d3e78[_0x3cb531][_0x1213('0x121')]=[],_0x3d3e78[_0x3cb531][_0x1213('0x10')]=[]);}}['_markInsertions'](_0x5ce1a9,_0x2b778d){const _0x4523a2=_0x5ce1a9['filter'](_0x54130c=>!_0x54130c['isAdded']);for(let _0x49cd76=0x0;_0x49cd76<_0x2b778d[_0x1213('0x30')];_0x49cd76++)_0x2b778d[_0x49cd76][_0x1213('0x1a')]&&(_0x4523a2[_0x49cd76]['isAdded']=_0x2b778d[_0x49cd76][_0x1213('0x1a')]);}['_makeModelFromViewString'](_0x3f594e){const _0x4a3686=JSON[_0x1213('0xa6')](_0x3f594e),_0x165c38=this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x61')][_0x1213('0xf1')],_0x1e95df=new _0x1d5f57(_0x165c38,_0x4a3686[_0x1213('0xea')](_0x252da8=>this[_0x1213('0x99')](_0x252da8)));return this['editor'][_0x1213('0xaa')]['toModel'](_0x1e95df);}[_0x1213('0x99')](_0x418f2d){const _0x10810d=this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x61')]['document'];if('string'==typeof _0x418f2d)return new _0x165698(_0x10810d,_0x418f2d);{const _0x7adc32=_0x418f2d[_0x1213('0xf8')][_0x1213('0xea')](_0x83fe39=>this['_getViewObj'](_0x83fe39));return new(tt[_0x418f2d['type']]||_0x376922)(_0x10810d,_0x418f2d[_0x1213('0x53')],_0x418f2d[_0x1213('0xd4')],_0x7adc32);}}[_0x1213('0x5d')](_0x4e4294,_0x5819f0=null){const _0x83ceeb=this[_0x1213('0x10e')][_0x1213('0x76')](_0x4e4294),_0x432e11=_0x5819f0?this[_0x1213('0x10e')]['getRevision'](_0x5819f0):null,_0x2aa6f4=this['_getRevisionsRange'](_0x83ceeb,_0x432e11),_0x5f50ed=_0x2aa6f4[_0x2aa6f4[_0x1213('0x30')]-0x1],_0x5e107d=new Map(),_0x3c5dc8={'model':{},'attributes':{},'changes':[]},_0x3170d9=new Set(),_0x183f9b=new Map();for(let _0x4c632d=_0x2aa6f4[_0x1213('0x30')]-0x1;_0x4c632d>=0x0;_0x4c632d--){const _0x1ab0b1=_0x2aa6f4[_0x4c632d];for(const _0x3b51f8 of Object[_0x1213('0xdd')](_0x1ab0b1[_0x1213('0xf2')]))if(_0x1ab0b1['diffData'][_0x3b51f8][_0x1213('0x5a')]){const _0x6e6bd2=_0x1ab0b1[_0x1213('0xf2')][_0x3b51f8][_0x1213('0x5a')];_0x6e6bd2[_0x1213('0x7c')]?(_0x3170d9['add'](_0x3b51f8),_0x183f9b['has'](_0x3b51f8)&&_0x183f9b[_0x1213('0x21')](_0x3b51f8)[_0x1213('0xbf')]==_0x6e6bd2[_0x1213('0xbf')]?_0x183f9b['delete'](_0x3b51f8):_0x183f9b[_0x1213('0x17')](_0x3b51f8,_0x6e6bd2)):_0x183f9b[_0x1213('0xcd')](_0x3b51f8)?(_0x3170d9[_0x1213('0x60')](_0x3b51f8),_0x183f9b[_0x1213('0x60')](_0x3b51f8)):(_0x3170d9[_0x1213('0x87')](_0x3b51f8),_0x183f9b[_0x1213('0x17')](_0x3b51f8,_0x6e6bd2));}else _0x3170d9[_0x1213('0x87')](_0x3b51f8);}for(const _0x43a38f of _0x3170d9){const _0x16edc7=_0x183f9b[_0x1213('0xcd')](_0x43a38f)&&!_0x183f9b[_0x1213('0x21')](_0x43a38f)[_0x1213('0x7c')];let _0x284643=_0x16edc7?_0x2aa6f4[_0x1213('0x30')]-0x1:0x0;const _0x1080d6=_0x16edc7?-0x1:0x1;for(;_0x2aa6f4[_0x284643];){const _0x35fde1=_0x2aa6f4[_0x284643];if(_0x35fde1[_0x1213('0xf2')][_0x43a38f]){const _0x509ef4=_0x16edc7?_0x35fde1[_0x1213('0xf2')][_0x43a38f][_0x1213('0x101')]:_0x35fde1[_0x1213('0xf2')][_0x43a38f][_0x1213('0x72')];_0x3c5dc8['attributes'][_0x43a38f]=_0x509ef4?_0x5e15b4(_0x509ef4):{};break;}_0x284643+=_0x1080d6;}}for(const _0x1a96b3 of _0x2aa6f4){_0x1a96b3[_0x1213('0x2a')]={};for(const _0x1affad of _0x1a96b3[_0x1213('0x82')])_0x5e107d[_0x1213('0x17')](_0x1affad['id'],_0x1affad);for(const _0x57e5ac of _0x3170d9){const _0xd34724=_0x1a96b3['diffData'][_0x57e5ac]?_0x1a96b3[_0x1213('0xf2')][_0x57e5ac][_0x1213('0x16')]:'[]',_0x473b3c=_0x1a96b3['diffData'][_0x57e5ac]?_0x1a96b3[_0x1213('0xf2')][_0x57e5ac]['deletions']:'[]';_0x1a96b3[_0x1213('0x2a')][_0x57e5ac]={'insertions':this[_0x1213('0x1d')](_0xd34724),'deletions':this[_0x1213('0x1d')](_0x473b3c)};}}for(const _0x399b8f of _0x3170d9){let _0x2e86ae=null,_0x2ef1f9=0x0;const _0x1d722c=new Map(Array[_0x1213('0x3e')](_0x83ceeb[_0x1213('0x2a')][_0x399b8f]['insertions'][_0x1213('0xe0')])['filter'](([_0x53a3ff])=>!_0x53a3ff[_0x1213('0xa9')](_0x1213('0x4'))));let _0x16bac5=0x0;for(const _0x381dfd of _0x2aa6f4){const _0x3e8966=this[_0x1213('0xa')](_0x381dfd['model'][_0x399b8f][_0x1213('0x16')]);_0x381dfd==_0x83ceeb?(_0x2e86ae=_0x3e8966,_0x2ef1f9=_0x2e86ae[_0x1213('0x30')],_0x2e86ae[_0x1213('0xcb')](_0x286fe4=>{_0x286fe4['id']=_0x16bac5++;}),this[_0x1213('0xdb')](_0x2e86ae)):this[_0x1213('0x111')](_0x2e86ae,_0x3e8966);const _0x2768ef=_0x2e86ae[_0x1213('0x56')](_0x35469c=>!_0x35469c[_0x1213('0x1a')])['map'](_0x5d065e=>_0x5d065e['id']);let _0x277253=0x0;const _0x1b69ca=this[_0x1213('0xa')](_0x381dfd['model'][_0x399b8f][_0x1213('0x5b')]);_0x1b69ca['forEach'](_0x313052=>{_0x313052['isRemoved']?_0x313052['id']=_0x2ef1f9++:_0x313052['id']=_0x2768ef[_0x277253++];}),this['_processTape'](_0x1b69ca),this[_0x1213('0x7d')](_0x2e86ae,_0x1213('0x1a')),this[_0x1213('0x7d')](_0x1b69ca,'isRemoved'),_0x381dfd==_0x83ceeb&&this[_0x1213('0x40')](_0x2e86ae,_0x1d722c),_0x2e86ae=this['_joinTapes'](_0x2e86ae,_0x1b69ca),this[_0x1213('0x9c')](_0x2e86ae),this[_0x1213('0x7d')](_0x2e86ae,_0x1213('0xfd'));}_0x2e86ae=_0x2e86ae[_0x1213('0x56')](_0x1039ea=>!(_0x1039ea['isAdded']&&_0x1039ea[_0x1213('0xfd')]));const _0x51ddd5=new Map(_0x5f50ed[_0x1213('0x2a')][_0x399b8f]['deletions'][_0x1213('0xe0')]),_0x3fd12b=new Set(_0x1d722c['keys']());for(const _0x18df3d of _0x51ddd5[_0x1213('0xdd')]())_0x3fd12b[_0x1213('0x60')](_0x18df3d);this[_0x1213('0x54')](_0x2e86ae,_0x3fd12b),this[_0x1213('0xb3')](_0x2e86ae),_0x2e86ae=this[_0x1213('0x11c')](_0x2e86ae),_0x2e86ae=this[_0x1213('0x7')](_0x2e86ae),_0x2e86ae=this[_0x1213('0xac')](_0x2e86ae);const {root:_0x14ad02,changes:_0x34bb61}=this['_makeModelFromTape'](_0x2e86ae,_0x5e107d,_0x399b8f);_0x3c5dc8[_0x1213('0x2a')][_0x399b8f]=_0x14ad02;const _0x58f88f=_0x183f9b['get'](_0x399b8f);if(_0x58f88f){const _0x49fe8c=_0x5e107d[_0x1213('0x21')](_0x58f88f['userId']),_0x335413=new _0x17aba0({'author':_0x49fe8c,'type':_0x58f88f['isAttached']?'add':_0x1213('0xf4'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x399b8f});_0x34bb61[_0x1213('0x9')](_0x335413),_0x3c5dc8[_0x1213('0xd4')][_0x399b8f]['revisionHistoryAttachChange']=_0x335413['id'];}_0x3c5dc8[_0x1213('0x18')]=_0x3c5dc8[_0x1213('0x18')]['concat'](_0x34bb61);}return _0x3c5dc8;}[_0x1213('0x40')](_0x58d1be,_0x50c61d){for(let _0x26913c=0x0;_0x26913c<_0x58d1be[_0x1213('0x30')];_0x26913c++)for(const [_0x2bc055,_0x477b20]of _0x50c61d)_0x477b20[_0x1213('0x4d')][_0x1213('0x10a')](_0x58d1be[_0x26913c][_0x1213('0x5e')])&&_0x58d1be[_0x26913c][_0x1213('0x121')]['push'](_0x2bc055),_0x477b20[_0x1213('0x5')][_0x1213('0x10a')](_0x58d1be[_0x26913c][_0x1213('0x10c')])&&_0x58d1be[_0x26913c]['markersEnd'][_0x1213('0x102')](_0x2bc055);}['_joinTapes'](_0x4cb4cd,_0x32c687){let _0x2249ba=[],_0x249d63=0x0,_0x5f00cf=0x0;for(;_0x249d63<_0x4cb4cd[_0x1213('0x30')]||_0x5f00cf<_0x32c687[_0x1213('0x30')];){const _0x1ed817=_0x4cb4cd[_0x249d63]||{},_0x43f3a1=_0x32c687[_0x5f00cf]||{};if(_0x1ed817['id']==_0x43f3a1['id'])_0x249d63++,_0x5f00cf++,_0x2249ba[_0x1213('0x102')](_0x1ed817);else{if(_0x43f3a1['isRemoved']&&_0x1ed817['isAdded']){const {commonTape:_0x1b8775,iEnd:_0x3f69f4,jEnd:_0x41c60e}=this['_threeWayMerge'](_0x4cb4cd,_0x249d63,_0x32c687,_0x5f00cf);_0x2249ba=_0x2249ba['concat'](_0x1b8775),_0x249d63=_0x3f69f4,_0x5f00cf=_0x41c60e;}else _0x43f3a1[_0x1213('0xfd')]?(_0x5f00cf++,_0x2249ba['push'](_0x43f3a1)):(_0x249d63++,_0x2249ba['push'](_0x1ed817));}}return _0x2249ba;}[_0x1213('0x54')](_0x146b35,_0xd8eac0){const _0x13ee58=[];for(let _0x32011f=0x0;_0x32011f<_0x146b35[_0x1213('0x30')];_0x32011f++){for(let _0x37294e=0x0;_0x37294e<_0x146b35[_0x32011f][_0x1213('0x121')][_0x1213('0x30')];_0x37294e++){const _0x31854d=_0x146b35[_0x32011f][_0x1213('0x121')][_0x37294e];if(!_0xd8eac0['has'](_0x31854d))continue;const {group:_0x3f4930,type:_0x238ee7,authorId:_0x1673f6}=_0x319525(_0x31854d);_0x1213('0x8d')!=_0x3f4930||_0x1213('0x77')!=_0x238ee7&&_0x1213('0x62')!=_0x238ee7||(_0x13ee58['unshift']({'type':_0x238ee7,'name':_0x31854d,'userId':_0x1673f6}),_0x146b35[_0x32011f][_0x1213('0x121')][_0x1213('0x6')](_0x37294e,0x1),_0x37294e--);}_0x9bcc0f(_0x146b35[_0x32011f]);for(let _0x168034=0x0;_0x168034<_0x146b35[_0x32011f][_0x1213('0x10')][_0x1213('0x30')];_0x168034++){const _0x11512c=_0x146b35[_0x32011f][_0x1213('0x10')][_0x168034];if(!_0xd8eac0[_0x1213('0xcd')](_0x11512c))continue;const {group:_0x41a68e,type:_0x188d5a}=_0x319525(_0x11512c);if('revision-suggestion'!=_0x41a68e||_0x1213('0x77')!=_0x188d5a&&_0x1213('0x62')!=_0x188d5a)continue;_0x146b35[_0x32011f][_0x1213('0x10')][_0x1213('0x6')](_0x168034,0x1),_0x168034--;const _0x4a0302=_0x13ee58[_0x1213('0x73')](_0x3f9af1=>_0x3f9af1[_0x1213('0x53')]==_0x11512c);_0x4a0302>-0x1&&_0x13ee58['splice'](_0x4a0302,0x1);}}function _0x319525(_0x3ffbe4){const _0x509f1c=_0x3ffbe4['split'](':');return{'group':_0x509f1c[0x0],'type':_0x509f1c[0x1],'subType':_0x509f1c[_0x1213('0x30')]>=0x5?_0x509f1c[0x2]:null,'id':_0x509f1c[_0x1213('0x30')]<0x5?_0x509f1c[0x2]:_0x509f1c[0x3],'authorId':_0x509f1c[_0x1213('0x30')]<0x5?_0x509f1c[0x3]:_0x509f1c[0x4],'markerCount':0x6==_0x509f1c[_0x1213('0x30')]?_0x509f1c[0x5]:null};}function _0x9bcc0f(_0x1f9a78){for(let _0x247dd5=0x0;_0x247dd5<_0x13ee58[_0x1213('0x30')];_0x247dd5++){if(_0x1f9a78[_0x1213('0x1a')]&&_0x1213('0x77')==_0x13ee58[_0x247dd5][_0x1213('0x38')])return _0x1f9a78[_0x1213('0x3')]=_0x13ee58[_0x247dd5],void delete _0x1f9a78[_0x1213('0x1a')];if(!_0x1f9a78['isAdded']&&!_0x1f9a78['isRemoved']&&_0x1213('0x62')==_0x13ee58[_0x247dd5][_0x1213('0x38')])return void(_0x1f9a78[_0x1213('0x8')]=_0x13ee58[_0x247dd5]);}}}[_0x1213('0x7d')](_0x4f8fb3,_0x3858f7){let _0x51c82f=0x0,_0xdfc5e3=!0x1;const _0x4e5bdb=new Map();for(const _0x407d64 of _0x4f8fb3)_0x407d64[_0x3858f7]?_0xdfc5e3&&(_0x51c82f++,_0xdfc5e3=!0x1):(_0x51c82f++,_0xdfc5e3=!0x0),_0x4e5bdb[_0x1213('0x17')](_0x407d64['id'],_0x51c82f);for(let _0x1f6149=0x0;_0x1f6149<_0x4f8fb3['length'];_0x1f6149++){if(_0x1213('0xfd')==_0x3858f7&&_0x4f8fb3[_0x1f6149]['isAdded']||_0x1213('0x1a')==_0x3858f7&&_0x4f8fb3[_0x1f6149]['isRemoved'])continue;if(_0x1213('0x15')==_0x4f8fb3[_0x1f6149]['type']){_0x4f8fb3[_0x1f6149]['distance']=0x0;continue;}const _0x5b81df=_0x4e5bdb[_0x1213('0x21')](_0x4f8fb3[_0x1f6149][_0x1213('0x20')]),_0x59d25b=_0x4e5bdb['get'](_0x4f8fb3[_0x1f6149]['id']);_0x4f8fb3[_0x1f6149][_0x1213('0x3a')]=_0x5b81df-_0x59d25b;}}['_getRevisionsRange'](_0x42332a,_0x103944,_0xcff62=!0x1){const _0x2b1ed6=[];let _0x47ea0e=this[_0x1213('0x10e')]['getIndex'](_0x42332a),_0x158efe=this['repository'][_0x1213('0xfc')](_0x103944);for(-0x1==_0x158efe&&(_0x158efe=this[_0x1213('0x10e')][_0x1213('0x69')][_0x1213('0x30')],_0xcff62=!0x1);_0x47ea0e<_0x158efe;)_0x2b1ed6['push'](this[_0x1213('0x10e')][_0x1213('0x76')](_0x47ea0e)),_0x47ea0e++;return _0xcff62&&_0x2b1ed6[_0x1213('0x102')](this[_0x1213('0x10e')][_0x1213('0x76')](_0x47ea0e)),_0x2b1ed6;}[_0x1213('0x14')](_0xd73299,_0x2f925d,_0x29b1f4,_0x358617){const _0x55343f=this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0x91')];let _0x56fef7=_0x2f925d;for(;_0xd73299[_0x56fef7]&&_0xd73299[_0x56fef7][_0x1213('0x1a')];)_0x56fef7++;let _0x157290=_0x358617;for(;_0x29b1f4[_0x157290]&&_0x29b1f4[_0x157290]['isRemoved'];)_0x157290++;_0x5815a0(_0xd73299,_0x2f925d,_0x56fef7),_0x5815a0(_0x29b1f4,_0x358617,_0x157290);const _0x28951c=_0x29b1f4[_0x1213('0x11b')](_0x358617,_0x157290)[_0x1213('0xa4')](_0xd73299[_0x1213('0x11b')](_0x2f925d,_0x56fef7));return _0x28951c[_0x1213('0x1c')]((_0x905ac3,_0x28fb1c)=>_0x905ac3[_0x1213('0x7f')]!=_0x28fb1c[_0x1213('0x7f')]?_0x905ac3[_0x1213('0x7f')]-_0x28fb1c['side']:_0x905ac3['level']!=_0x28fb1c[_0x1213('0x11')]?_0x905ac3[_0x1213('0x11')]-_0x28fb1c[_0x1213('0x11')]:_0x905ac3['distance']!=_0x28fb1c['distance']?_0x28fb1c[_0x1213('0x3a')]-_0x905ac3[_0x1213('0x3a')]:!!_0x905ac3[_0x1213('0x1a')]!=!!_0x28fb1c['isAdded']?-0x1==_0x905ac3[_0x1213('0x7f')]||0x0==_0x905ac3[_0x1213('0x7f')]?_0x905ac3['isAdded']?-0x1:0x1:_0x905ac3['isAdded']?0x1:-0x1:_0x905ac3[_0x1213('0xd0')]-_0x28fb1c[_0x1213('0xd0')]),{'commonTape':_0x28951c,'iEnd':_0x56fef7,'jEnd':_0x157290};function _0x5815a0(_0x175f7b,_0x3f430b,_0x5b374b){let _0x589de0=-0x1,_0x2b5430=Number['POSITIVE_INFINITY'],_0x7f1dbb=!0x0;for(let _0x1feae1=_0x3f430b;_0x1feae1<_0x5b374b;_0x1feae1++)if(_0x55343f[_0x1213('0x90')](_0x175f7b[_0x1feae1]['item'])||(_0x7f1dbb=!0x1),_0x175f7b[_0x1feae1][_0x1213('0x49')][_0x1213('0xc0')]<_0x3f430b&&(_0x589de0=_0x1feae1),_0x175f7b[_0x1feae1]['item'][_0x1213('0x19')]>=_0x5b374b){_0x2b5430=_0x1feae1;break;}_0x7f1dbb&&(_0x589de0=_0x5b374b-0x1);for(let _0x5c44a1=_0x3f430b;_0x5c44a1<_0x5b374b;_0x5c44a1++)_0x175f7b[_0x5c44a1][_0x1213('0x7f')]=_0x5c44a1<=_0x589de0?-0x1:_0x5c44a1<_0x2b5430?0x0:0x1,_0x175f7b[_0x5c44a1][_0x1213('0xd0')]=_0x5c44a1;let _0x12db43=0x0;for(let _0x270040=_0x3f430b;_0x270040<=_0x589de0;_0x270040++)0x0==_0x175f7b[_0x270040][_0x1213('0x3a')]?_0x175f7b[_0x270040]['level']=_0x12db43:(_0x12db43++,_0x175f7b[_0x270040]['level']=_0x12db43,_0x12db43++);for(let _0x5982ce=_0x3f430b;_0x5982ce<_0x5b374b;_0x5982ce++)0x0==_0x175f7b[_0x5982ce]['side']&&(_0x175f7b[_0x5982ce][_0x1213('0x11')]=_0x12db43);_0x12db43=0x0;for(let _0x39108f=_0x5b374b-0x1;_0x39108f>=_0x2b5430;_0x39108f--)0x0==_0x175f7b[_0x39108f]['distance']?_0x175f7b[_0x39108f]['level']=_0x12db43:(_0x12db43--,_0x175f7b[_0x39108f][_0x1213('0x11')]=_0x12db43,_0x12db43--);}}[_0x1213('0xb3')](_0x534e1c){const _0x77bc85=new Map(),_0x54ac9c=this[_0x1213('0x9e')]['model']['schema'];for(let _0x460168=0x1;_0x460168<_0x534e1c['length'];_0x460168++){let _0x4afdd7,_0x35b030,_0x4e804e;const _0x5de581=_0x534e1c[_0x460168],_0x95fd64=_0x534e1c[_0x460168-0x1];if(_0x1213('0x15')==_0x5de581[_0x1213('0x38')])continue;if(_0x5de581[_0x1213('0x38')]!=_0x95fd64[_0x1213('0x38')])continue;if(!_0x54ac9c[_0x1213('0xb7')](_0x95fd64[_0x1213('0x49')])||_0x54ac9c[_0x1213('0x85')](_0x95fd64[_0x1213('0x49')]))continue;if(!_0x54ac9c[_0x1213('0xb7')](_0x5de581[_0x1213('0x49')])||_0x54ac9c[_0x1213('0x85')](_0x5de581[_0x1213('0x49')]))continue;if((_0x534e1c[_0x460168][_0x1213('0x1a')]||_0x534e1c[_0x460168][_0x1213('0x3')])&&_0x534e1c[_0x460168-0x1][_0x1213('0xfd')])_0x4afdd7=_0x534e1c[_0x460168],_0x35b030=_0x534e1c[_0x460168-0x1],_0x4e804e=_0x460168-0x1;else{if(!_0x534e1c[_0x460168][_0x1213('0xfd')]||!_0x534e1c[_0x460168-0x1][_0x1213('0x1a')]&&!_0x534e1c[_0x460168-0x1]['isAddSuggestion'])continue;_0x4afdd7=_0x534e1c[_0x460168-0x1],_0x35b030=_0x534e1c[_0x460168],_0x4e804e=_0x460168;}const _0x575e67=_0x4afdd7[_0x1213('0x11')]==_0x35b030[_0x1213('0x11')],_0x440b00=Math['abs'](_0x4afdd7[_0x1213('0x11')])<Math[_0x1213('0xb4')](_0x35b030[_0x1213('0x11')])&&0x0==_0x35b030['distance'];(_0x575e67||_0x440b00)&&(_0x77bc85[_0x1213('0x17')](_0x35b030['id'],_0x4afdd7['id']),_0x534e1c[_0x1213('0x6')](_0x4e804e,0x1),_0x460168--,_0x4afdd7[_0x1213('0x1a')]=!0x1);}for(let _0x37bbec=0x0;_0x37bbec<_0x534e1c[_0x1213('0x30')];_0x37bbec++)_0x77bc85['has'](_0x534e1c[_0x37bbec]['pairId'])&&(_0x534e1c[_0x37bbec][_0x1213('0x20')]=_0x77bc85[_0x1213('0x21')](_0x534e1c[_0x37bbec][_0x1213('0x20')]));}['_removeMissingPairs'](_0x3699ff){const _0x5818bb=new Set(_0x3699ff[_0x1213('0xea')](_0x5f1f32=>_0x5f1f32['id']));for(let _0x10aae2=0x0;_0x10aae2<_0x3699ff[_0x1213('0x30')];_0x10aae2++)_0x5818bb[_0x1213('0xcd')](_0x3699ff[_0x10aae2]['pairId'])||0x0==_0x3699ff[_0x10aae2][_0x1213('0x3a')]||(_0x3699ff[_0x10aae2][_0x1213('0xe5')]=!0x0);return _0x3699ff['filter'](_0x2875d7=>!_0x2875d7[_0x1213('0xe5')]);}[_0x1213('0x7')](_0x381393){const _0x2f74f4=new Set();for(let _0x4d3ab3=0x0;_0x4d3ab3<_0x381393['length'];_0x4d3ab3++){if(_0x2f74f4[_0x1213('0xcd')](_0x381393[_0x4d3ab3]['id'])&&_0x381393[_0x4d3ab3][_0x1213('0xfd')]&&(_0x381393[_0x4d3ab3][_0x1213('0xe5')]=!0x0),_0x381393[_0x4d3ab3][_0x1213('0xe5')])continue;if(0x0==_0x381393[_0x4d3ab3][_0x1213('0x3a')])continue;if(_0x1213('0x110')!=_0x381393[_0x4d3ab3]['type'])continue;if(null==_0x381393[_0x4d3ab3][_0x1213('0x20')])continue;let _0x23bfaf=_0x4d3ab3+0x1,_0x4ecdfb=0x0;for(;_0x381393[_0x23bfaf]['id']!=_0x381393[_0x4d3ab3][_0x1213('0x20')];)_0x1213('0x110')==_0x381393[_0x23bfaf]['type']?_0x4ecdfb++:_0x1213('0x2d')==_0x381393[_0x23bfaf][_0x1213('0x38')]&&_0x4ecdfb--,_0x23bfaf++;if(0x0!=_0x4ecdfb){if(_0x381393[_0x4d3ab3][_0x1213('0xfd')])_0x381393[_0x4d3ab3]['isIncorrect']=!0x0;else for(;_0x23bfaf!=_0x4d3ab3;)_0x381393[_0x23bfaf][_0x1213('0xfd')]&&0x0!=_0x381393[_0x23bfaf][_0x1213('0x3a')]&&(_0x381393[_0x23bfaf]['isIncorrect']=!0x0,_0x2f74f4[_0x1213('0x87')](_0x381393[_0x23bfaf][_0x1213('0x20')])),_0x23bfaf--;}}return _0x381393[_0x1213('0x56')](_0xcb2c1a=>!_0xcb2c1a[_0x1213('0xe5')]);}[_0x1213('0xac')](_0x789c67){const _0x34d859=this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0x91')];for(let _0x264ee0=0x0;_0x264ee0<_0x789c67[_0x1213('0x30')];_0x264ee0++){if(!(_0x789c67[_0x264ee0]['isAdded']||_0x789c67[_0x264ee0][_0x1213('0x3')]||_0x789c67[_0x264ee0][_0x1213('0xfd')]||_0x789c67[_0x264ee0]['isRemoveSuggestion']))continue;if(0x0==_0x789c67[_0x264ee0][_0x1213('0x3a')])continue;const _0x337209=_0x789c67[_0x264ee0][_0x1213('0x49')];_0x34d859['isBlock'](_0x337209)||_0x34d859['isLimit'](_0x337209)||(_0x789c67[_0x264ee0][_0x1213('0x1a')]&&delete _0x789c67[_0x264ee0][_0x1213('0x1a')],_0x789c67[_0x264ee0][_0x1213('0x3')]&&delete _0x789c67[_0x264ee0][_0x1213('0x3')],_0x789c67[_0x264ee0][_0x1213('0x8')]&&delete _0x789c67[_0x264ee0][_0x1213('0x8')],_0x789c67[_0x264ee0][_0x1213('0xfd')]&&(_0x789c67[_0x264ee0]['isIncorrect']=!0x0));}return _0x789c67['filter'](_0x448e7c=>!_0x448e7c[_0x1213('0xe5')]);}['_makeModelFromTape'](_0x39146a,_0xe92634,_0x3cac77){const _0x217390=new _0x391c97(),_0x547c0b=[],_0x5d7bd8=new Map(),_0x515ba6=this[_0x1213('0x9e')][_0x1213('0x2a')],_0x12b1ca=_0x515ba6[_0x1213('0x91')],_0x37906f=[_0x217390],_0x4c8efd={},_0xe61800={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x33178c=null;const _0x3f2ef2=[0x0];for(let _0x446cb2=0x0;_0x446cb2<_0x39146a[_0x1213('0x30')];_0x446cb2++){let _0x4deeab,_0x4000ae;if(_0x1213('0x110')===_0x39146a[_0x446cb2][_0x1213('0x38')]){_0x4deeab=_0x515ba6[_0x1213('0x1')](_0x217390,_0x3f2ef2);const _0x1a69ae=new _0x6e3159(_0x39146a[_0x446cb2][_0x1213('0x49')][_0x1213('0x53')],_0x39146a[_0x446cb2][_0x1213('0x49')][_0x1213('0x6d')]());_0x37906f[0x0][_0x1213('0xf7')](_0x1a69ae),_0x3f2ef2['push'](0x0),_0x37906f['unshift'](_0x1a69ae),_0x4000ae=_0x515ba6['createPositionFromPath'](_0x217390,_0x3f2ef2),_0x33178c=null;}else{if(_0x1213('0x2d')===_0x39146a[_0x446cb2][_0x1213('0x38')])_0x37906f[_0x1213('0xf6')](),_0x4deeab=_0x515ba6['createPositionFromPath'](_0x217390,_0x3f2ef2),_0x3f2ef2[_0x1213('0x23')](),_0x3f2ef2[_0x3f2ef2['length']-0x1]++,_0x4000ae=_0x515ba6['createPositionFromPath'](_0x217390,_0x3f2ef2),_0x33178c=null;else{if(_0x4deeab=_0x515ba6[_0x1213('0x1')](_0x217390,_0x3f2ef2),_0x33178c&&_0x231a76(_0x33178c,_0x39146a[_0x446cb2][_0x1213('0x49')]))_0x33178c[_0x1213('0xec')]+=_0x39146a[_0x446cb2][_0x1213('0x49')][_0x1213('0xaa')];else{const _0xd31c16=new _0x5111e1(_0x39146a[_0x446cb2][_0x1213('0x49')][_0x1213('0xaa')],_0x39146a[_0x446cb2][_0x1213('0x49')][_0x1213('0x6d')]());_0x37906f[0x0]['_appendChild'](_0xd31c16),_0x33178c=_0xd31c16;}_0x3f2ef2[_0x3f2ef2['length']-0x1]+=_0x39146a[_0x446cb2][_0x1213('0x49')][_0x1213('0x6c')],_0x4000ae=_0x515ba6['createPositionFromPath'](_0x217390,_0x3f2ef2);}}for(const _0x6c1a18 of _0x39146a[_0x446cb2][_0x1213('0x121')])_0x5d7bd8['set'](_0x6c1a18,{'start':_0x4deeab,'end':null});_0x3ea10f('isRemoveSuggestion',_0x446cb2,_0x4deeab,_0x4000ae),_0x3ea10f(_0x1213('0x3'),_0x446cb2,_0x4deeab,_0x4000ae),_0x3ea10f(_0x1213('0xfd'),_0x446cb2,_0x4deeab,_0x4000ae),_0x3ea10f(_0x1213('0x1a'),_0x446cb2,_0x4deeab,_0x4000ae);for(const _0x36aabd of _0x39146a[_0x446cb2][_0x1213('0x10')]){_0x5d7bd8[_0x1213('0x21')](_0x36aabd)[_0x1213('0x5')]=_0x4000ae;}}for(const [_0x13edce,_0x59b087]of _0x5d7bd8){const _0x336809=this[_0x1213('0x9e')]['model'][_0x1213('0xb9')](_0x59b087[_0x1213('0x4d')],_0x59b087[_0x1213('0x5')]);_0x217390[_0x1213('0xe0')][_0x1213('0x17')](_0x13edce,_0x336809);}return _0x547c0b[_0x1213('0x1c')]((_0x1e2b9e,_0xbc555a)=>{const _0x378599=_0x217390[_0x1213('0xe0')][_0x1213('0x21')](_0x1213('0x4')+_0x1e2b9e['id']),_0x18a689=_0x217390[_0x1213('0xe0')][_0x1213('0x21')](_0x1213('0x4')+_0xbc555a['id']);return _0x378599['start'][_0x1213('0x3b')](_0x18a689[_0x1213('0x4d')])?-0x1:_0x378599[_0x1213('0x4d')]['isAfter'](_0x18a689[_0x1213('0x4d')])?0x1:_0x378599['end']['isBefore'](_0x18a689['end'])?-0x1:_0x378599[_0x1213('0x5')][_0x1213('0x2')](_0x18a689[_0x1213('0x5')])?0x1:_0x1213('0x87')===_0x1e2b9e[_0x1213('0x38')]?-0x1:0x1;}),{'root':_0x217390,'changes':_0x547c0b};function _0x3ea10f(_0x56dd20,_0xaf2ab2,_0x462868,_0x1c58e2){const _0x504c85=!!_0x39146a[_0xaf2ab2][_0x56dd20],_0x3deffa=_0x504c85?_0x39146a[_0xaf2ab2][_0x56dd20][_0x1213('0xbf')]:null,_0x537381=_0xaf2ab2===_0x39146a[_0x1213('0x30')]-0x1,_0x500722=_0xe61800[_0x56dd20][0x0],_0x10c3bc=_0x12b1ca['isObject'](_0x39146a[_0xaf2ab2]['item']);!_0x4c8efd[_0x56dd20]&&_0x504c85?_0x4c8efd[_0x56dd20]={'start':_0x462868,'tapeItem':_0x39146a[_0xaf2ab2],'userId':_0x3deffa,'type':_0x56dd20}:_0x4c8efd[_0x56dd20]&&!_0x504c85?(_0x4c8efd[_0x56dd20]['end']=_0x462868,_0x1ad824(_0x4c8efd[_0x56dd20]),_0x4c8efd[_0x56dd20]=null):_0x4c8efd[_0x56dd20]&&_0x504c85&&_0x4c8efd[_0x56dd20]['userId']!==_0x3deffa&&(_0x4c8efd[_0x56dd20]['end']=_0x462868,_0x500722&&_0x500722[_0x1213('0xbf')]===_0x4c8efd[_0x56dd20]['userId']||_0x1ad824(_0x4c8efd[_0x56dd20]),_0x4c8efd[_0x56dd20]={'start':_0x462868,'tapeItem':_0x39146a[_0xaf2ab2],'userId':_0x3deffa,'type':_0x56dd20}),_0x4c8efd[_0x56dd20]&&_0x10c3bc&&('elementStart'!==_0x39146a[_0xaf2ab2][_0x1213('0x38')]||_0x500722&&_0x500722['userId']===_0x3deffa||_0xe61800[_0x56dd20][_0x1213('0x9')]({'userId':_0x3deffa,'object':_0x39146a[_0xaf2ab2][_0x1213('0x49')],'change':_0x4c8efd[_0x56dd20]}),_0x1213('0x2d')===_0x39146a[_0xaf2ab2][_0x1213('0x38')]&&_0x500722&&_0x500722['object']===_0x39146a[_0xaf2ab2][_0x1213('0x49')]&&(_0xe61800[_0x56dd20]['shift'](),_0x4c8efd[_0x56dd20]=_0x500722['change'])),_0x4c8efd[_0x56dd20]&&_0x537381&&(_0x4c8efd[_0x56dd20][_0x1213('0x5')]=_0x1c58e2,_0x1ad824(_0x4c8efd[_0x56dd20]),_0x4c8efd[_0x56dd20]=null);}function _0x1ad824({start:_0x4aae69,end:_0x4fab1d,tapeItem:_0x36da0f,userId:_0x40ae13,type:_0x150390}){const _0x1c6aff=_0x36da0f[_0x1213('0x49')],_0x28bb3d=_0x515ba6[_0x1213('0x91')][_0x1213('0xb7')](_0x1c6aff)&&!_0x515ba6[_0x1213('0x91')][_0x1213('0x85')](_0x1c6aff),_0x112130=_0x4aae69['nodeAfter']==_0x4fab1d['parent']&&_0x4fab1d[_0x1213('0xa7')];if(_0x28bb3d&&_0x112130)return;const _0x116e28=_0x515ba6[_0x1213('0xb9')](_0x4aae69,_0x4fab1d),_0x4e8c2b=_0xe92634[_0x1213('0x21')](_0x40ae13),_0x8467ab=new _0x17aba0({'author':_0x4e8c2b,'type':_0x1213('0x1a')==_0x150390||_0x1213('0x3')==_0x150390?_0x1213('0x87'):_0x1213('0xf4'),'data':{'isSuggestion':'isAddSuggestion'==_0x150390||_0x1213('0x8')==_0x150390},'createdAt':new Date(),'rootName':_0x3cac77});_0x547c0b[_0x1213('0x102')](_0x8467ab),_0x217390[_0x1213('0xe0')][_0x1213('0x17')](_0x1213('0x4')+_0x8467ab['id'],_0x116e28);}function _0x231a76(_0x40b509,_0x195a0d){const _0x363937=_0x40b509[_0x1213('0x6d')](),_0x14d9c9=_0x195a0d['getAttributes']();for(const _0x2d62a3 of _0x363937){if(_0x2d62a3[0x1]!==_0x195a0d[_0x1213('0x105')](_0x2d62a3[0x0]))return!0x1;_0x14d9c9[_0x1213('0x59')]();}return _0x14d9c9[_0x1213('0x59')]()[_0x1213('0x6b')];}}[_0x1213('0x97')](){this['editor'][_0x1213('0xe1')][_0x1213('0x93')](_0x1213('0x52'))[_0x1213('0x7a')]({'view':_0x1213('0xc8')}),this[_0x1213('0x9e')][_0x1213('0xe1')][_0x1213('0x93')](_0x1213('0xc9'))['markerToHighlight']({'model':_0x1213('0xc8'),'view':_0x276b60=>{const _0xdbd96c=_0x276b60[_0x1213('0x3d')]['split'](':')[0x1],_0x466016=this[_0x1213('0x1e')](_0xdbd96c);if(!_0x466016)return null;const _0x4ee597='add'==_0x466016['type']?_0x1213('0x77'):_0x1213('0x62'),_0x49ce11=[_0x1213('0xd7'),_0x1213('0xd2')+_0x4ee597];return _0x466016['data'][_0x1213('0xbd')]&&_0x49ce11['push']('ck-suggestion-marker-'+_0x4ee597+_0x1213('0x39')),this[_0x1213('0x4c')]==_0x466016&&_0x49ce11[_0x1213('0x102')]('ck-suggestion-marker--active'),{'classes':_0x49ce11,'attributes':{'data-change-id':_0xdbd96c}};}}),this['editor'][_0x1213('0xe1')][_0x1213('0x93')](_0x1213('0x52'))['add'](_0x4faf58=>{_0x4faf58['on'](_0x1213('0x86'),(_0x38ec84,_0xc983d8,_0x1e4b06)=>{const _0x9824cb=_0xc983d8[_0x1213('0x117')][_0x1213('0x89')](0x0);if(!_0x9824cb||!_0x9824cb['is']('element',_0x1213('0x120')))return;if(!_0x1e4b06[_0x1213('0xa0')][_0x1213('0x6f')](_0x9824cb,{'attributes':[_0x1213('0x1b'),_0x1213('0xe8')]}))return;const _0x2375bd=_0xc983d8[_0x1213('0x2e')][_0x1213('0x4d')][_0x1213('0xab')];_0x1e4b06[_0x1213('0xcf')]['setAttribute'](_0x1213('0x1b'),_0x9824cb[_0x1213('0x105')](_0x1213('0x1b')),_0x2375bd),_0x1e4b06[_0x1213('0xcf')][_0x1213('0x47')](_0x1213('0xe8'),_0x9824cb[_0x1213('0x105')](_0x1213('0xe8')),_0x2375bd);},{'priority':_0x1213('0x81')});}),this['editor'][_0x1213('0xe1')][_0x1213('0x93')](_0x1213('0x52'))[_0x1213('0x87')](_0x3e329b=>{_0x3e329b['on']('element',(_0x1cee03,_0x105345,_0x4b1421)=>{if(!_0x4b1421[_0x1213('0xa0')][_0x1213('0x6f')](_0x105345[_0x1213('0x117')],{'attributes':[_0x1213('0x1b'),_0x1213('0xe8')]}))return;if(_0x105345[_0x1213('0x2e')]['isCollapsed'])return;const _0x22e863=_0x105345[_0x1213('0x2e')][_0x1213('0x4d')][_0x1213('0xab')];_0x22e863['hasAttribute'](_0x1213('0x1b'))||_0x22e863[_0x1213('0x42')](_0x1213('0xb2'))||(_0x4b1421[_0x1213('0xcf')][_0x1213('0x47')](_0x1213('0x1b'),_0x105345[_0x1213('0x117')]['getAttribute'](_0x1213('0x1b')),_0x22e863),_0x4b1421['writer']['setAttribute'](_0x1213('0xe8'),_0x105345[_0x1213('0x117')][_0x1213('0x105')](_0x1213('0xe8')),_0x22e863));},{'priority':_0x1213('0x81')});}),this['editor']['conversion'][_0x1213('0x93')](_0x1213('0x52'))[_0x1213('0x3f')]({'view':{'name':_0x1213('0xf0'),'attributes':{'vid':!0x0}},'model':{'key':_0x1213('0xb2'),'value':_0x2b762b=>_0x2b762b['getAttribute'](_0x1213('0xb2'))}}),this[_0x1213('0x9e')]['model']['schema']['on'](_0x1213('0x44'),(_0x4c9c3a,[,_0x3a79fa])=>{['vid_start',_0x1213('0xe8'),_0x1213('0xb2')][_0x1213('0x65')](_0x3a79fa)&&(_0x4c9c3a[_0x1213('0x114')]=!0x0,_0x4c9c3a[_0x1213('0x6e')]());},{'priority':_0x1213('0x43')}),this[_0x1213('0x9e')][_0x1213('0xe1')][_0x1213('0x93')](_0x1213('0xd8'))[_0x1213('0x87')](_0x82a8d8=>{_0x82a8d8['on'](_0x1213('0xcc'),(_0x8b8a9c,_0x3cdb7d,_0x4f2350)=>{if('\x20'!=_0x3cdb7d[_0x1213('0x49')][_0x1213('0xaa')]||_0x3cdb7d[_0x1213('0x49')][_0x1213('0xda')][_0x1213('0x24')]>0x1)return;if(!_0x4f2350[_0x1213('0xa0')][_0x1213('0x6f')](_0x3cdb7d[_0x1213('0x49')],_0x8b8a9c[_0x1213('0x53')]))return;const _0x2a747d=_0x4f2350[_0x1213('0xcf')],_0x1012aa=_0x4f2350[_0x1213('0xaf')]['toViewRange'](_0x3cdb7d[_0x1213('0x122')]);_0x2a747d[_0x1213('0xf9')](_0x1012aa,_0x2a747d[_0x1213('0x8a')]('span'));});}),this['editor'][_0x1213('0xe1')][_0x1213('0x93')](_0x1213('0xd8'))[_0x1213('0x98')]({'model':'revision'}),this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x46')]['on'](_0x1213('0xe3'),function(_0x568a17){const _0x2e7efa=_0x568a17[_0x1213('0xca')][_0x1213('0x21')](_0x1213('0xe'));return(_0x37fd2d,_0x54c51c,_0x389001)=>{const _0x4798cf=_0x54c51c[_0x1213('0x3d')]['split'](':')[0x1],_0x238400=_0x2e7efa[_0x1213('0x1e')](_0x4798cf);if(!_0x238400)return null;const _0x411db2='add'==_0x238400['type']?'split':_0x1213('0x106');if(!_0x389001['consumable']['test'](_0x54c51c[_0x1213('0xeb')],_0x37fd2d['name']))return;const _0x542c8a=_0x54c51c[_0x1213('0xeb')][_0x1213('0x107')](),_0x576929=_0x54c51c[_0x1213('0xeb')]['start'],_0x44ed2c=_0x568a17[_0x1213('0x2a')]['schema'];let _0x582a63=null,_0x5ddac9=null,_0x5a3fb8=!0x1,_0x2bb342=!0x1;for(const _0x38b2c4 of _0x542c8a){const _0x57decf=_0x38b2c4[_0x1213('0x49')];_0x5a3fb8=_0x5a3fb8||_0x44ed2c[_0x1213('0x11d')](_0x57decf);const _0x8cecf2=_0x389001[_0x1213('0xaf')][_0x1213('0x1f')](_0x57decf);if(_0x8cecf2&&_0x8cecf2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x38b2c4[_0x1213('0x38')]&&(_0x44ed2c['isBlock'](_0x57decf)&&!_0x44ed2c[_0x1213('0x85')](_0x57decf)&&(_0x57decf[_0x1213('0x112')]||_0x576929[_0x1213('0xd9')]?_0x582a63&&_0x582a63['parent']==_0x57decf||(_0x582a63=_0x57decf,_0xa5d28e(_0x38b2c4[_0x1213('0x5e')]),_0x2bb342=!0x0):_0x5ddac9=_0x5ddac9||_0x38b2c4['previousPosition']));}function _0xa5d28e(_0x3b351f){const _0x2639a7=_0x389001[_0x1213('0xcf')]['createUIElement'](_0x1213('0xf0'),{'class':_0x1213('0xd2')+_0x411db2}),_0x2c3fe4=_0x389001['mapper'][_0x1213('0x70')](_0x3b351f);_0x238400[_0x1213('0xaa')]['isSuggestion']&&_0x389001[_0x1213('0xcf')][_0x1213('0xfe')](_0x1213('0xd2')+_0x411db2+_0x1213('0x39'),_0x2639a7),_0x2e7efa['activeChange']==_0x238400&&_0x389001[_0x1213('0xcf')][_0x1213('0xfe')]('ck-suggestion-marker--active',_0x2639a7),_0x389001[_0x1213('0xcf')][_0x1213('0x10d')](_0x2c3fe4,_0x2639a7),_0x389001['mapper'][_0x1213('0xe6')](_0x2639a7,_0x54c51c[_0x1213('0x3d')]);}_0x5a3fb8||_0x2bb342||!_0x5ddac9||_0xa5d28e(_0x5ddac9);};}(this[_0x1213('0x9e')]),{'priority':_0x1213('0xd1')}),this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x46')]['on']('removeMarker:revision',(_0x3a03ea,_0x2a892e,_0x19e51d)=>{const _0x966af8=_0x19e51d[_0x1213('0xaf')][_0x1213('0xfa')](_0x2a892e[_0x1213('0x3d')]);if(_0x966af8)for(const _0x6d7d47 of _0x966af8)(_0x6d7d47[_0x1213('0x37')](_0x1213('0xb8'))||_0x6d7d47[_0x1213('0x37')](_0x1213('0x95')))&&(_0x19e51d[_0x1213('0xaf')][_0x1213('0x35')](_0x6d7d47,_0x2a892e[_0x1213('0x3d')]),_0x19e51d[_0x1213('0xcf')][_0x1213('0xf4')](_0x6d7d47));},{'priority':_0x1213('0xd1')}),this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x46')]['on'](_0x1213('0xe3'),(_0x26c92f,_0x4d6da0,_0x24d549)=>{const _0xa3f006=_0x4d6da0[_0x1213('0x3d')][_0x1213('0xf3')](':')[0x1],_0x573506=this[_0x1213('0x1e')](_0xa3f006);if(!_0x573506)return null;const _0x4aa94d=_0x1213('0x87')==_0x573506[_0x1213('0x38')]?_0x1213('0xf3'):'merge';if(_0x24d549[_0x1213('0xa0')]['test'](_0x4d6da0[_0x1213('0xeb')],_0x26c92f['name']))for(const _0x5f0d71 of _0x4d6da0['markerRange']['getItems']()){if(!_0x5f0d71['is'](_0x1213('0x2b'),_0x1213('0xdc')))continue;const _0x10552b=_0x24d549[_0x1213('0xcf')]['createUIElement'](_0x1213('0xf0'),{'class':_0x1213('0xd2')+_0x4aa94d}),_0x2179fc=_0x24d549['mapper'][_0x1213('0x70')](this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0x11f')](_0x5f0d71));_0x573506[_0x1213('0xaa')][_0x1213('0xbd')]&&_0x24d549[_0x1213('0xcf')][_0x1213('0xfe')]('ck-suggestion-marker-'+_0x4aa94d+_0x1213('0x39'),_0x10552b),this[_0x1213('0x4c')]==_0x573506&&_0x24d549[_0x1213('0xcf')][_0x1213('0xfe')]('ck-suggestion-marker--active',_0x10552b),_0x24d549[_0x1213('0xcf')][_0x1213('0x10d')](_0x2179fc,_0x10552b),_0x24d549[_0x1213('0xaf')][_0x1213('0xe6')](_0x10552b,_0x4d6da0[_0x1213('0x3d')]);}},{'priority':_0x1213('0xd1')}),this[_0x1213('0x9e')][_0x1213('0x2a')]['document']['on']('change',()=>{this[_0x1213('0x9e')][_0x1213('0x7b')]['view']['change'](_0x47db86=>{for(const _0x22233e of this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0xf1')]['getRootNames']()){const _0x163d2d=this['editor'][_0x1213('0x2a')]['document'][_0x1213('0x115')](_0x22233e),_0xfd5747=this[_0x1213('0x9e')][_0x1213('0x7b')]['view']['document'][_0x1213('0x115')](_0x22233e);if(_0xfd5747){const _0x55592b=_0x163d2d['getAttribute']('revisionHistoryAttachChange');if(_0x47db86['removeAttribute'](_0x1213('0x78'),_0xfd5747),_0x47db86[_0x1213('0x55')](_0x1213('0x94'),_0xfd5747),_0x47db86[_0x1213('0x55')]('ck-revision-history-root-remove',_0xfd5747),_0x47db86[_0x1213('0x55')](_0x1213('0x13'),_0xfd5747),_0x55592b){const _0x31f0cf=this[_0x1213('0x1e')](_0x55592b);if(!_0x31f0cf)return null;_0x47db86[_0x1213('0x47')](_0x1213('0x78'),_0x55592b,_0xfd5747),_0x47db86[_0x1213('0xfe')](_0x1213('0x84')+_0x31f0cf[_0x1213('0x38')],_0xfd5747),this[_0x1213('0x4c')]==_0x31f0cf&&_0x47db86[_0x1213('0xfe')](_0x1213('0x13'),_0xfd5747);}}}});}),this[_0x1213('0x9e')][_0x1213('0xe1')][_0x1213('0x93')]('upcast')['dataToMarker']({'view':_0x1213('0x116'),'model':_0xcd452a=>_0x1213('0xd6')+_0xcd452a,'converterPriority':_0x1213('0x43')}),this[_0x1213('0x9e')]['conversion'][_0x1213('0x93')](_0x1213('0x52'))[_0x1213('0x7a')]({'view':_0x1213('0xc6'),'model':_0x2b01a3=>_0x1213('0xb1')+_0x2b01a3,'converterPriority':'highest'}),this[_0x1213('0x9e')][_0x1213('0xe1')]['for'](_0x1213('0xd8'))[_0x1213('0x98')]({'model':'revision-suggestion','view':_0x406929=>({'name':_0x1213('0xdf')+_0x406929,'group':_0x1213('0x8d')}),'converterPriority':'highest'}),this[_0x1213('0x9e')][_0x1213('0xe1')][_0x1213('0x93')]('editingDowncast')[_0x1213('0x104')]({'model':_0x1213('0x8d'),'view':_0x3e6253=>{const _0x235ed4=_0x3e6253[_0x1213('0x3d')][_0x1213('0xf3')](':')[0x1];return _0x1213('0x77')!=_0x235ed4&&_0x1213('0x62')!=_0x235ed4?null:{'classes':[_0x1213('0x4f'),_0x1213('0x64')+_0x235ed4]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',et(this[_0x1213('0x9e')],'merge'),{'priority':'high'}),this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x46')]['on'](_0x1213('0x71'),et(this[_0x1213('0x9e')],_0x1213('0xf3')),{'priority':_0x1213('0xd1')}),this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x46')]['on'](_0x1213('0xef'),(_0x2978f0,_0x46d830,_0x130243)=>{const _0x129454=_0x130243[_0x1213('0xaf')][_0x1213('0xfa')](_0x46d830[_0x1213('0x3d')]);if(_0x129454)for(const _0x400267 of _0x129454)_0x400267['is'](_0x1213('0x33'))&&(_0x130243['mapper'][_0x1213('0x35')](_0x400267,_0x46d830['markerName']),_0x130243[_0x1213('0xcf')][_0x1213('0xf4')](_0x400267));},{'priority':_0x1213('0xd1')});}[_0x1213('0x1e')](_0x355d2f){return this['_changeIdToChange'][_0x1213('0x21')](_0x355d2f);}[_0x1213('0x7e')](_0x323a5b){return this[_0x1213('0xa1')]&&this[_0x1213('0xa1')][_0x1213('0xc7')](),this[_0x1213('0xa1')]=new _0x34ac4c(this[_0x1213('0x9e')][_0x1213('0xad')],_0x323a5b),this[_0x1213('0xa1')];}[_0x1213('0x63')](){this[_0x1213('0x9e')][_0x1213('0x2a')]['document'][_0x1213('0x92')]['observeMarkers'](_0x1213('0xc8')),this['on'](_0x1213('0x45'),(_0x141391,_0x156295,_0x141767,_0x598dfb)=>{_0x598dfb&&this[_0x1213('0xb6')][_0x1213('0xf4')](_0x598dfb),_0x141767&&(this[_0x1213('0xb6')][_0x1213('0x87')]({'view':_0x141767,'stackId':_0x1213('0x68'),'position':{'target':()=>{const _0xf9bdd1=this[_0x1213('0x9e')]['editing'],_0x3c2113=this['_getChangeFromId'](_0x141767['changeId']);let _0x3aa45a;if(_0x3c2113['data']['isOnRoot']){const _0x9ed602=_0xf9bdd1[_0x1213('0x61')][_0x1213('0xee')](_0x3c2113[_0x1213('0xed')]);_0x3aa45a=Array[_0x1213('0x3e')](_0x9ed602[_0x1213('0x80')]());}else{const _0x1c2a8c=this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0xe0')][_0x1213('0x21')](_0x1213('0x4')+_0x141767[_0x1213('0xf5')]);_0x3aa45a=Array[_0x1213('0x3e')](_0xf9bdd1[_0x1213('0xaf')][_0x1213('0xfa')](_0x1c2a8c[_0x1213('0x53')]))[_0x1213('0xea')](_0x153449=>_0xf9bdd1[_0x1213('0x61')]['domConverter']['mapViewToDom'](_0x153449))['map'](_0x2f2e55=>Array[_0x1213('0x3e')](_0x2f2e55[_0x1213('0x80')]()))[_0x1213('0x118')]();}if(!this[_0x1213('0x96')])return _0x3aa45a[0x0];return _0x3aa45a[_0x1213('0xf')](_0x43714b=>_0x43714b[_0x1213('0x108')]-0x3<=this[_0x1213('0x96')]['y']&&_0x43714b['bottom']+0x3>=this[_0x1213('0x96')]['y']&&_0x43714b[_0x1213('0x31')]-0x3<=this[_0x1213('0x96')]['x']&&_0x43714b[_0x1213('0xe9')]+0x3>=this[_0x1213('0x96')]['x'])||_0x3aa45a[0x0];}}}),this[_0x1213('0xb6')][_0x1213('0x0')](_0x1213('0x68')));}),this['on'](_0x1213('0x51'),(_0x1cd9d2,_0x3072e5,_0x4a07a9,_0x3a235e)=>{this[_0x1213('0x103')]=_0x4a07a9?this[_0x1213('0x7e')](_0x4a07a9):null,this['editor'][_0x1213('0x2a')][_0x1213('0x26')](()=>{const _0x3a1380=this[_0x1213('0x9e')][_0x1213('0x7b')];_0x3a235e&&(_0x3a235e[_0x1213('0xaa')][_0x1213('0x32')]?_0x3a1380['view'][_0x1213('0x26')](_0x4f771a=>{_0x4f771a[_0x1213('0x55')](_0x1213('0x13'),_0x3a1380[_0x1213('0x61')][_0x1213('0xf1')]['getRoot'](_0x3a235e[_0x1213('0xed')]));}):_0x3a1380[_0x1213('0xa8')](_0x1213('0x4')+_0x3a235e['id'])),_0x4a07a9&&(_0x4a07a9[_0x1213('0xaa')]['isOnRoot']?_0x3a1380[_0x1213('0x61')][_0x1213('0x26')](_0x306637=>{_0x306637['addClass'](_0x1213('0x13'),_0x3a1380[_0x1213('0x61')][_0x1213('0xf1')]['getRoot'](_0x4a07a9[_0x1213('0xed')]));}):_0x3a1380[_0x1213('0xa8')]('revision:'+_0x4a07a9['id']));});}),this[_0x1213('0xd3')](this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x61')][_0x1213('0xf1')],'mouseover',(_0x438a64,_0x3acc01)=>{if(this[_0x1213('0x4c')])return;const _0x5cfec2=this[_0x1213('0xc3')](_0x3acc01[_0x1213('0xde')]),_0x3f9043=this[_0x1213('0xba')][_0x1213('0x21')](_0x5cfec2);_0x3f9043?(this[_0x1213('0x96')]={'x':_0x3acc01['domEvent']['x'],'y':_0x3acc01['domEvent']['y']},this[_0x1213('0x103')]=this[_0x1213('0x7e')](_0x3f9043)):(this[_0x1213('0x96')]=null,this[_0x1213('0x103')]=null);}),this['listenTo'](this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x61')][_0x1213('0xf1')],_0x1213('0xbc'),(_0x27e46a,_0x3cdda5)=>{const _0xe56dd1=this[_0x1213('0xc3')](_0x3cdda5[_0x1213('0xde')]),_0x167e7d=this[_0x1213('0xba')][_0x1213('0x21')](_0xe56dd1);_0x167e7d?(this[_0x1213('0x96')]={'x':_0x3cdda5[_0x1213('0xc')]['x'],'y':_0x3cdda5[_0x1213('0xc')]['y']},_0x167e7d===this['activeChange']?this['_balloon'][_0x1213('0x66')]():this[_0x1213('0x4c')]=_0x167e7d):(this['_activeViewTarget']=null,this[_0x1213('0x4c')]=null);});}[_0x1213('0xc3')](_0x14f6ab){do{const _0x267fd9=_0x14f6ab[_0x1213('0x105')](_0x1213('0x78'));if(_0x267fd9)return _0x267fd9;_0x14f6ab=_0x14f6ab[_0x1213('0xda')];}while(_0x14f6ab);return null;}[_0x1213('0x57')](){this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0x26')](_0xe9f1fb=>{for(const _0x15b85c of this['editor'][_0x1213('0x2a')]['markers'])_0xe9f1fb[_0x1213('0xb')](_0x15b85c);});}}function et(_0x22111a,_0x34fd20){return(_0x5df15a,_0x252562,_0x5407d9)=>{if(!_0x5407d9['consumable'][_0x1213('0x109')](_0x252562[_0x1213('0xeb')],_0x5df15a[_0x1213('0x53')]))return;const _0x481cb0=_0x252562[_0x1213('0xeb')][_0x1213('0x107')](),_0x46767c=_0x252562['markerRange'][_0x1213('0x4d')],_0x1dbbb6=_0x22111a['model'][_0x1213('0x91')];let _0x2dfe37=null,_0x887d55=null,_0x257f21=!0x1,_0x241d7b=!0x1;for(const _0x335d22 of _0x481cb0){const _0x373b28=_0x335d22[_0x1213('0x49')];_0x257f21=_0x257f21||_0x1dbbb6[_0x1213('0x11d')](_0x373b28);const _0x3a114f=_0x5407d9[_0x1213('0xaf')][_0x1213('0x1f')](_0x373b28);if(_0x3a114f&&_0x3a114f['getCustomProperty'](_0x1213('0x8f')))return;_0x1213('0x2d')==_0x335d22[_0x1213('0x38')]&&(_0x1dbbb6[_0x1213('0xb7')](_0x373b28)&&!_0x1dbbb6['isLimit'](_0x373b28)&&(_0x373b28['nextSibling']||_0x46767c[_0x1213('0xd9')]?_0x2dfe37&&_0x2dfe37[_0x1213('0xda')]==_0x373b28||(_0x2dfe37=_0x373b28,_0x10cbb2(_0x335d22[_0x1213('0x5e')]),_0x241d7b=!0x0):_0x887d55=_0x887d55||_0x335d22['previousPosition']));}function _0x10cbb2(_0x11ec5a){const _0x137b6b=_0x5407d9['mapper'][_0x1213('0x70')](_0x11ec5a),_0x4a59a9=_0x5407d9[_0x1213('0xcf')][_0x1213('0xa5')](_0x1213('0xf0'),{'class':_0x1213('0x64')+_0x34fd20});_0x5407d9[_0x1213('0xcf')][_0x1213('0x10d')](_0x137b6b,_0x4a59a9),_0x5407d9[_0x1213('0xaf')][_0x1213('0xe6')](_0x4a59a9,_0x252562[_0x1213('0x3d')]);}_0x257f21||_0x241d7b||!_0x887d55||_0x10cbb2(_0x887d55);};}export class RestoreRevisionCommand extends _0x76009b{constructor(_0x242d7e){super(_0x242d7e);const _0x9cf5fd=_0x242d7e[_0x1213('0xca')][_0x1213('0x21')](d);this[_0x1213('0x25')]=!0x1,this[_0x1213('0xd3')](_0x9cf5fd,_0x1213('0xa2'),()=>this[_0x1213('0x2c')]()),this[_0x1213('0xd3')](_0x9cf5fd,'change:isEnabled',()=>this[_0x1213('0x2c')]());}[_0x1213('0x50')](){const _0x5bbc0d=this[_0x1213('0x9e')],_0x320532=_0x5bbc0d[_0x1213('0xca')]['get'](d),_0x200140=_0x320532[_0x1213('0xc2')]?_0x320532['diff']['newRevisionId']:null;_0x5bbc0d[_0x1213('0xfb')][_0x1213('0x21')](_0x1213('0x9b'))['restoreRevisionCallback'](_0x200140);}[_0x1213('0x2c')](){const {isReady:_0x47e2d5,isEnabled:_0xf83eb2}=this[_0x1213('0x9e')][_0x1213('0xca')][_0x1213('0x21')](d);this['isEnabled']=_0x47e2d5&&_0xf83eb2;}}export class ShowChangeCommand extends _0x76009b{constructor(_0x19098a,{direction:_0x3decd5}){super(_0x19098a);const _0x477a80=_0x19098a['plugins'][_0x1213('0x21')](d);this[_0x1213('0x25')]=!0x1,this[_0x1213('0x27')]='forward'===_0x3decd5?0x1:-0x1,this[_0x1213('0xd3')](_0x477a80,_0x1213('0xa2'),()=>this[_0x1213('0x2c')]()),this[_0x1213('0xd3')](_0x477a80,_0x1213('0x41'),()=>this[_0x1213('0x2c')]()),this[_0x1213('0xd3')](_0x477a80,_0x1213('0x51'),()=>this['refresh']());}[_0x1213('0x50')](){const _0x119df5=this[_0x1213('0x9e')],_0x5342af=_0x119df5[_0x1213('0xca')][_0x1213('0x21')](d),{isNavigationMode:_0x23a814,currentChangeNumber:_0x16f2d0}=_0x5342af;let _0x4723bc;if(_0x5342af[_0x1213('0x4c')]=_0x23a814?_0x5342af[_0x1213('0xc1')][_0x1213('0x18')][_0x1213('0x21')](_0x16f2d0+this[_0x1213('0x27')]):_0x5342af[_0x1213('0xc1')][_0x1213('0x18')]['first'],_0x5342af[_0x1213('0x4c')]['data'][_0x1213('0x32')])_0x4723bc=_0x119df5[_0x1213('0x7b')][_0x1213('0x61')][_0x1213('0xee')](_0x5342af['activeChange'][_0x1213('0xed')]);else{const _0x52f5e2=_0x119df5['model'][_0x1213('0xe0')][_0x1213('0x21')](_0x1213('0x4')+_0x5342af[_0x1213('0x4c')]['id']);_0x4723bc=_0xb2fd99(_0x119df5['editing'],_0x52f5e2);}_0x1162e9({'target':_0x4723bc,'viewportOffset':0x28});}[_0x1213('0x2c')](){const {isNavigationMode:_0x3a6dab,currentChangeNumber:_0x14c000,numberOfChanges:_0x20028c,isReady:_0x549c32,isEnabled:_0x110211}=this[_0x1213('0x9e')][_0x1213('0xca')][_0x1213('0x21')](d);this['isEnabled']=!!(_0x110211&&_0x549c32&&_0x20028c)&&(!_0x3a6dab||(0x1===this[_0x1213('0x27')]?_0x14c000<_0x20028c-0x1:_0x14c000>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ecc=['function','action','find','name','extendTemplate','listenTo','isOpen','bind','buttonView','Compare\x20against\x20selected','isEnabled','source','change:isActionsDropdownOpen','execute','isVisible','_action','panelPosition','children','isActionsDropdownOpen','map','bindTemplate','locale','Name\x20this\x20revision','stopPropagation','model','class','items','set'];(function(_0x363f0b,_0x3ecc4c){const _0x35c083=function(_0x496645){while(--_0x496645){_0x363f0b['push'](_0x363f0b['shift']());}};_0x35c083(++_0x3ecc4c);}(_0x3ecc,0x148));const _0x35c0=function(_0x363f0b,_0x3ecc4c){_0x363f0b=_0x363f0b-0x0;let _0x35c083=_0x3ecc[_0x363f0b];return _0x35c083;};import{Collection as _0x2ec760}from'ckeditor5/src/utils';import{icons as _0x1f4cf4}from'ckeditor5/src/core';import{Model as _0x7944ee,addListToDropdown as _0x1219bd,createDropdown as _0x551bd3}from'ckeditor5/src/ui';import{getTranslation as _0x526d9a}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x3989ba,_0x16550b){const _0x3c794d=_0x3989ba[_0x35c0('0x0')],_0x5e7409=_0x3989ba[_0x35c0('0x1')],_0x366638=_0x551bd3(_0x5e7409);_0x366638[_0x35c0('0x18')]='sw';const _0xed2f1e=function(_0x255626,_0x45cfb9){const _0x57b639=function(_0x14968c,_0x1580e6){const _0x15198b=_0x14968c['locale'],_0x24271b={'Compare\x20against\x20selected':_0x526d9a(_0x15198b,_0x35c0('0x11')),'Name\x20this\x20revision':_0x526d9a(_0x15198b,_0x35c0('0x2')),'Restore\x20this\x20revision':_0x526d9a(_0x15198b,'Restore\x20this\x20revision')};return _0x1580e6[_0x35c0('0x1b')](_0x5c63f1=>{const _0x8417cd=_0x24271b[_0x5c63f1['name']];return _0x8417cd&&_0x8417cd!==_0x5c63f1[_0x35c0('0xb')]&&(_0x5c63f1[_0x35c0('0xb')]=_0x8417cd),_0x5c63f1;});}(_0x255626,_0x45cfb9),_0x2e7a6f=new _0x2ec760();for(const _0x5f55c8 of _0x57b639){const _0x5cebb6={'type':'button','model':new _0x7944ee({'label':_0x5f55c8[_0x35c0('0xb')],'class':_0x5f55c8[_0x35c0('0x5')],'withText':!0x0,'_action':_0x5f55c8[_0x35c0('0x9')]})};_0x5cebb6[_0x35c0('0x4')][_0x35c0('0xf')](_0x35c0('0x12'))['to'](_0x255626,'isActionsDropdownOpen',_0x40a914=>_0x35c0('0x8')!=typeof _0x5f55c8[_0x35c0('0x12')]||(!_0x40a914||_0x5f55c8[_0x35c0('0x12')](_0x255626))),_0x2e7a6f['add'](_0x5cebb6);}return _0x2e7a6f;}(_0x3989ba,_0x16550b);return _0x3989ba[_0x35c0('0xf')]('isActionsDropdownOpen')['to'](_0x366638,_0x35c0('0xe')),_0x366638[_0x35c0('0x10')][_0x35c0('0x7')]({'label':_0x526d9a(_0x5e7409,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1f4cf4['threeVerticalDots']}),_0x366638[_0x35c0('0xc')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3c794d['if'](_0x35c0('0x1a'),'ck-on')]},'on':{'click':_0x3c794d['to'](_0x57e110=>_0x57e110[_0x35c0('0x3')]())}}),_0x366638['on'](_0x35c0('0x15'),_0x309d9d=>{_0x3989ba['isReady']&&_0x35c0('0x8')==typeof _0x309d9d[_0x35c0('0x13')][_0x35c0('0x17')]&&_0x309d9d['source']['_action'](_0x3989ba);}),_0x1219bd(_0x366638,_0xed2f1e),_0x366638[_0x35c0('0xd')](_0x3989ba,_0x35c0('0x14'),(_0x47b051,_0x3a1f87,_0x1e2f94)=>{if(_0x1e2f94)for(const _0x15a402 of _0x366638['listView'][_0x35c0('0x6')]){const _0xbf5d23=_0x15a402[_0x35c0('0x19')]['first'],_0x11fd16=_0x16550b[_0x35c0('0xa')](_0x2bd606=>_0x2bd606[_0x35c0('0x9')]===_0xbf5d23[_0x35c0('0x17')])[_0x35c0('0x16')];_0x15a402['isVisible']=void 0x0===_0x11fd16||_0x11fd16(_0x3989ba);}}),_0x366638;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d74=['set','Revision\x20creator','push','ck-revision-history-sidebar__revision-author_creator','ck-revision-history-sidebar__revision-author__name','setTemplate','span','name'];(function(_0x28bf64,_0x2d74e5){const _0x591f74=function(_0x22c065){while(--_0x22c065){_0x28bf64['push'](_0x28bf64['shift']());}};_0x591f74(++_0x2d74e5);}(_0x2d74,0x10f));const _0x591f=function(_0x28bf64,_0x2d74e5){_0x28bf64=_0x28bf64-0x0;let _0x591f74=_0x2d74[_0x28bf64];return _0x591f74;};import{View as _0x36a30b,IconView as _0x4ee893}from'ckeditor5/src/ui';import{getTranslation as _0xff32ed}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x12cd61 from'../../../theme/icons/user.svg';export default class ti extends _0x36a30b{constructor(_0x17c7b9,_0x239041,_0x441fc4){super(_0x17c7b9);const _0x5be20c=new _0x4ee893();_0x5be20c[_0x591f('0x1')]({'content':_0x12cd61,'viewBox':'0\x200\x2011\x2010'});const _0x383076=['ck','ck-revision-history-sidebar__revision-author'];_0x441fc4&&_0x383076[_0x591f('0x3')](_0x591f('0x4'));const _0x3cc6ac=[{'tag':_0x591f('0x7'),'attributes':{'class':['ck',_0x591f('0x5')],'title':_0xff32ed(_0x17c7b9,_0x441fc4?_0x591f('0x2'):'Revision\x20author')},'children':[_0x5be20c,_0x239041[_0x591f('0x0')]]}];this[_0x591f('0x6')]({'tag':'li','attributes':{'class':_0x383076},'children':_0x3cc6ac});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1b84=['ck-revision-history-sidebar__revision-name','set','extendTemplate','Revision\x20name','span'];(function(_0x74e46e,_0x1b8493){var _0x1478a9=function(_0x4b484e){while(--_0x4b484e){_0x74e46e['push'](_0x74e46e['shift']());}};_0x1478a9(++_0x1b8493);}(_0x1b84,0x82));var _0x1478=function(_0x74e46e,_0x1b8493){_0x74e46e=_0x74e46e-0x0;var _0x1478a9=_0x1b84[_0x74e46e];return _0x1478a9;};import{LabeledFieldView as _0xb7cb2b}from'ckeditor5/src/ui';import{getTranslation as _0x14164e}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0xb7cb2b{constructor(_0x5dbd6d,_0x5e206d){super(_0x5dbd6d,_0x5e206d),this[_0x1478('0x1')]({'label':_0x14164e(_0x5dbd6d,_0x1478('0x3'))}),this[_0x1478('0x2')]({'tag':_0x1478('0x4'),'attributes':{'class':[_0x1478('0x0')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c9a=['listenTo','ck-revision-history-sidebar__revision','closest','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','isEnabled','select','filter','length','set','_createdAtFormatted','span','isHighlighted','isReady','srcElement','isActionsDropdownOpen','unshift','isSelected','map','value','name','element','fieldView','deselect','div','ck-revision-history-sidebar__revision__controls-wrapper','setTemplate','.ck-thread__remove-confirm','from','authors','render','extendTemplate','ck-reset','isConfirm','setName','fire','revisionActionsView','creator','ck-revision-history-sidebar__revision-authors','220','createdAt','bind','bindTemplate','ck-revision-history-sidebar__revision-wrapper','revisionNameView','ck-disabled'];(function(_0x32c8a0,_0x3c9a75){const _0x2f1a1d=function(_0x2ffee4){while(--_0x2ffee4){_0x32c8a0['push'](_0x32c8a0['shift']());}};_0x2f1a1d(++_0x3c9a75);}(_0x3c9a,0x139));const _0x2f1a=function(_0x32c8a0,_0x3c9a75){_0x32c8a0=_0x32c8a0-0x0;let _0x2f1a1d=_0x3c9a[_0x32c8a0];return _0x2f1a1d;};import{View as _0xd46608,createLabeledInputText as _0x1ede07}from'ckeditor5/src/ui';import{ConfirmMixin as _0x55d9e7}from'ckeditor5-collaboration/src/collaboration-core';import _0x4e54d6 from'./revisionnameview';import _0x9a18e3 from'./revisionauthorview';import{dateToPrettyFormat as _0x6a888b}from'./utils';import{createActionsDropdownView as _0x3c5242}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x55d9e7(_0xd46608){constructor(_0x3714e6,_0x27325b,_0x3508a1){super(_0x3714e6);const _0x4c2ec6=this[_0x2f1a('0x2b')],_0x26730f=function(_0x30cd50,_0x18c337){const _0x38b097=Array[_0x2f1a('0x1d')](_0x18c337[_0x2f1a('0x1e')])[_0x2f1a('0x8')](_0x12b2e1=>_0x12b2e1!=_0x18c337[_0x2f1a('0x26')]);return _0x18c337[_0x2f1a('0x26')]&&_0x38b097[_0x2f1a('0x11')](_0x18c337[_0x2f1a('0x26')]),_0x38b097[_0x2f1a('0x13')](_0x16922a=>new _0x9a18e3(_0x30cd50,_0x16922a,_0x16922a==_0x18c337[_0x2f1a('0x26')]));}(_0x3714e6,_0x27325b);this['id']=_0x27325b['id'],this['_revision']=_0x27325b,this[_0x2f1a('0x2a')](_0x2f1a('0x15'),_0x2f1a('0x29'))['to'](_0x27325b),this[_0x2f1a('0x2a')](_0x2f1a('0xb'))['to'](this,_0x2f1a('0x29'),_0xa9669f=>_0xa9669f?_0x6a888b(_0x3714e6['uiLanguage'],_0xa9669f):void 0x0),this[_0x2f1a('0xa')](_0x2f1a('0x12'),!0x1),this['set'](_0x2f1a('0xd'),!0x1),this[_0x2f1a('0xa')]('isActionsDropdownOpen',!0x1),this[_0x2f1a('0xa')](_0x2f1a('0xe'),!0x1),this[_0x2f1a('0xa')](_0x2f1a('0x6'),!0x1),this[_0x2f1a('0x0')]=new _0x4e54d6(_0x3714e6,_0x1ede07),this[_0x2f1a('0x0')][_0x2f1a('0x17')][_0x2f1a('0x20')]({'attributes':{'maxlength':_0x2f1a('0x28')}}),this[_0x2f1a('0x0')]['fieldView'][_0x2f1a('0x2a')]('value','placeholder')['to'](this,'name','_createdAtFormatted'),this[_0x2f1a('0x0')][_0x2f1a('0x2a')](_0x2f1a('0x6'))['to'](this,_0x2f1a('0x12'),this,_0x2f1a('0x6'),(_0x35f508,_0x288a89)=>_0x35f508&&_0x288a89),this[_0x2f1a('0x25')]=_0x3508a1&&_0x3508a1[_0x2f1a('0x9')]?_0x3c5242(this,_0x3508a1):'',this[_0x2f1a('0x25')]&&this[_0x2f1a('0x25')][_0x2f1a('0x2a')](_0x2f1a('0x6'))['to'](this),this[_0x2f1a('0x1b')]({'tag':_0x2f1a('0x19'),'attributes':{'class':['ck',_0x2f1a('0x21'),_0x2f1a('0x2c'),_0x4c2ec6['if'](_0x2f1a('0x22'),_0x2f1a('0x5'))]},'children':[{'tag':_0x2f1a('0x19'),'attributes':{'class':['ck',_0x2f1a('0x21'),_0x2f1a('0x3'),_0x4c2ec6['if']('isEnabled',_0x2f1a('0x1'),_0x31ce9a=>!_0x31ce9a),_0x4c2ec6['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x4c2ec6['if'](_0x2f1a('0xd'),'ck-revision-history-sidebar__revision_highlighted'),_0x4c2ec6['if'](_0x2f1a('0x10'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x2f1a('0x0')],{'tag':_0x2f1a('0xc'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x4c2ec6['to'](_0x2f1a('0xb'))}]},{'tag':'div','attributes':{'class':['ck',_0x2f1a('0x1a')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x2f1a('0x27')]},'children':_0x26730f}]},this[_0x2f1a('0x25')]],'on':{'click':_0x4c2ec6['to'](_0x5d1405=>{_0x5d1405[_0x2f1a('0xf')][_0x2f1a('0x4')](_0x2f1a('0x1c'))||this[_0x2f1a('0xe')]&&this[_0x2f1a('0x6')]&&this[_0x2f1a('0x24')](_0x2f1a('0x7'),{'id':this['id']});})}}]});}[_0x2f1a('0x1f')](){super[_0x2f1a('0x1f')]();const _0x4b01ff=this['revisionNameView'][_0x2f1a('0x17')][_0x2f1a('0x16')];this[_0x2f1a('0x2')](_0x4b01ff,'change',()=>{this[_0x2f1a('0x24')](_0x2f1a('0x23'),{'id':this['id'],'name':_0x4b01ff[_0x2f1a('0x14')]});});}[_0x2f1a('0x7')](){this['isSelected']=!0x0;}[_0x2f1a('0x18')](){this['isSelected']=!0x1;}['highlight'](){this[_0x2f1a('0xd')]=!0x0;}['unhighlight'](){this[_0x2f1a('0xd')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3585=['isVisible','ck-hidden','click','set','span','ck-revision-history-sidebar__subrevision-collapser','setTemplate','ck-revision-history-sidebar__subrevision-collapser_collapsed','_isCollapsed','false'];(function(_0x2dad78,_0x358598){const _0x1315d4=function(_0xb3bc3b){while(--_0xb3bc3b){_0x2dad78['push'](_0x2dad78['shift']());}};_0x1315d4(++_0x358598);}(_0x3585,0x124));const _0x1315=function(_0x2dad78,_0x358598){_0x2dad78=_0x2dad78-0x0;let _0x1315d4=_0x3585[_0x2dad78];return _0x1315d4;};import{View as _0x96397d}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x96397d{constructor(_0xfd1d1d){super(_0xfd1d1d);const _0x463d2d=this['bindTemplate'];this[_0x1315('0x1')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x1315('0x4')]({'tag':'span','attributes':{'class':['ck',_0x1315('0x3'),_0x463d2d['if'](_0x1315('0x8'),_0x1315('0x9'),_0x110e57=>!_0x110e57),_0x463d2d['if'](_0x1315('0x6'),_0x1315('0x5'))],'role':'button','aria-pressed':_0x463d2d['to']('_isCollapsed',_0x28ca7e=>_0x28ca7e?_0x1315('0x7'):'true')},'children':[{'tag':_0x1315('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x463d2d['to'](_0x1315('0x0'))}});}['toggle'](){this['_isCollapsed']=!this['_isCollapsed'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f1e=['uiLanguage','ck-revision-history-sidebar__revision-authors','set','_parentRevisionId','deselect','fire','ck-reset','createdAt','ck-revision-history-sidebar__revision','select','ck-revision-history-sidebar__revision__date','isSelected','_createdAtFormatted','creator','bind'];(function(_0x45824f,_0x5f1e10){const _0x1aab36=function(_0x46f211){while(--_0x46f211){_0x45824f['push'](_0x45824f['shift']());}};_0x1aab36(++_0x5f1e10);}(_0x5f1e,0x188));const _0x1aab=function(_0x45824f,_0x5f1e10){_0x45824f=_0x45824f-0x0;let _0x1aab36=_0x5f1e[_0x45824f];return _0x1aab36;};import{View as _0x361cf9}from'ckeditor5/src/ui';import _0x1b3851 from'./revisionauthorview';import{dateToPrettyFormat as _0x58855a}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x361cf9{constructor(_0x107c20,_0x3053ef,_0x5d8481){super(_0x107c20);const _0x1c901a=this['bindTemplate'];this['id']=_0x3053ef['id'],this[_0x1aab('0xc')](_0x1aab('0x5'))['to'](_0x3053ef),this[_0x1aab('0x0')](_0x1aab('0x9'),!0x1),this['bind'](_0x1aab('0xa'))['to'](this,_0x1aab('0x5'),_0x1b9a40=>_0x1b9a40?_0x58855a(_0x107c20[_0x1aab('0xd')],_0x1b9a40):void 0x0),this[_0x1aab('0x1')]=_0x5d8481,this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x1aab('0x4'),_0x1aab('0x6'),'ck-revision-history-sidebar__subrevision',_0x1c901a['if'](_0x1aab('0x9'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x1aab('0x8')]},'children':[{'text':_0x1c901a['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x1aab('0xe')]},'children':[new _0x1b3851(_0x107c20,_0x3053ef[_0x1aab('0xb')],!0x0)]}],'on':{'click':_0x1c901a['to'](this[_0x1aab('0x7')]['bind'](this))}});}[_0x1aab('0x7')](){this[_0x1aab('0x9')]=!0x0,this[_0x1aab('0x3')](_0x1aab('0x7'),{'parentId':this[_0x1aab('0x1')]});}[_0x1aab('0x2')](){this['isSelected']=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1f19=['toLocaleTimeString','numeric','long','toLocaleDateString'];(function(_0x505754,_0x1f199c){var _0x5a4101=function(_0x3af230){while(--_0x3af230){_0x505754['push'](_0x505754['shift']());}};_0x5a4101(++_0x1f199c);}(_0x1f19,0x1b5));var _0x5a41=function(_0x505754,_0x1f199c){_0x505754=_0x505754-0x0;var _0x5a4101=_0x1f19[_0x505754];return _0x5a4101;};export function dateToPrettyFormat(_0x3ac531,_0x255e85){return _0x255e85[_0x5a41('0x2')](_0x3ac531,{'month':_0x5a41('0x1'),'day':_0x5a41('0x0')})+',\x20'+_0x255e85[_0x5a41('0x3')](_0x3ac531,{'hour':_0x5a41('0x0'),'minute':_0x5a41('0x0')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5258=['revisionNameInputValue','add','saveButtonView','revisionNameInputView','arrowleft','_createRevisionNameInput','revisionName','render','ck-responsive-form','listenTo','delegate','_createButton','check','Name\x20of\x20the\x20revision\x20(optional)','fieldView','trim','tab','setTemplate','_focusCycler','shift\x20+\x20tab','locale','focusTracker','value','cancelButtonView','keystrokes','type','focusFirst','ck-button-cancel','set','_focusables','cancel','forEach','ck-revision-history-save-revision-form','focus','arrowup','reset','element','ck-button-save','Cancel'];(function(_0x48ce20,_0x525892){const _0x3035c2=function(_0x120116){while(--_0x120116){_0x48ce20['push'](_0x48ce20['shift']());}};_0x3035c2(++_0x525892);}(_0x5258,0x196));const _0x3035=function(_0x48ce20,_0x525892){_0x48ce20=_0x48ce20-0x0;let _0x3035c2=_0x5258[_0x48ce20];return _0x3035c2;};import{icons as _0x2ea65d}from'ckeditor5/src/core';import{ButtonView as _0x279106,FocusCycler as _0x10587a,LabeledFieldView as _0x451609,View as _0x24175c,ViewCollection as _0x2cbaf1,createLabeledInputText as _0x29d283,injectCssTransitionDisabler as _0x3ad813,submitHandler as _0x4645a4}from'ckeditor5/src/ui';import{FocusTracker as _0x217453,KeystrokeHandler as _0x2f7cef}from'ckeditor5/src/utils';import{getTranslation as _0x56ddcf}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x24175c{constructor(_0x5a27d7){super(_0x5a27d7),this[_0x3035('0x5')]=new _0x217453(),this[_0x3035('0x8')]=new _0x2f7cef(),this[_0x3035('0xc')]('revisionNameInputValue',''),this[_0x3035('0x1a')]=this['_createRevisionNameInput'](),this[_0x3035('0x19')]=this['_createButton'](_0x56ddcf(_0x5a27d7,'Save'),_0x2ea65d[_0x3035('0x23')],_0x3035('0x15')),this[_0x3035('0x19')][_0x3035('0x9')]='submit',this[_0x3035('0x7')]=this[_0x3035('0x22')](_0x56ddcf(_0x5a27d7,_0x3035('0x16')),_0x2ea65d[_0x3035('0xe')],_0x3035('0xb'),_0x3035('0xe')),this[_0x3035('0xd')]=new _0x2cbaf1(),this[_0x3035('0x2')]=new _0x10587a({'focusables':this[_0x3035('0xd')],'focusTracker':this[_0x3035('0x5')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x3035('0x3'),'focusNext':_0x3035('0x0')}}),this[_0x3035('0x1')]({'tag':'form','attributes':{'class':['ck',_0x3035('0x10'),_0x3035('0x1f')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this['saveButtonView'],this[_0x3035('0x7')]]}),_0x3ad813(this);}[_0x3035('0x1e')](){super['render'](),_0x4645a4({'view':this}),([this[_0x3035('0x1a')],this[_0x3035('0x19')],this[_0x3035('0x7')]][_0x3035('0xf')](_0x2539e4=>{this['_focusables'][_0x3035('0x18')](_0x2539e4),this[_0x3035('0x5')]['add'](_0x2539e4[_0x3035('0x14')]);}),this[_0x3035('0x8')][_0x3035('0x20')](this[_0x3035('0x14')]));const _0x4cccb8=_0x24aba3=>_0x24aba3['stopPropagation']();this[_0x3035('0x8')][_0x3035('0xc')]('arrowright',_0x4cccb8),this['keystrokes'][_0x3035('0xc')](_0x3035('0x1b'),_0x4cccb8),this[_0x3035('0x8')][_0x3035('0xc')](_0x3035('0x12'),_0x4cccb8),this[_0x3035('0x8')]['set']('arrowdown',_0x4cccb8);}[_0x3035('0x11')](){this['_focusCycler'][_0x3035('0xa')]();}get[_0x3035('0x1d')](){return this[_0x3035('0x1a')][_0x3035('0x25')][_0x3035('0x14')][_0x3035('0x6')][_0x3035('0x26')]();}set[_0x3035('0x1d')](_0x370e76){this[_0x3035('0x1a')][_0x3035('0x25')][_0x3035('0x14')]['value']=_0x370e76[_0x3035('0x26')]();}[_0x3035('0x13')](){this['revisionNameInputView']['fieldView'][_0x3035('0x14')][_0x3035('0x6')]='';}[_0x3035('0x1c')](){const _0xd5a264=new _0x451609(this[_0x3035('0x4')],_0x29d283),_0xc041f8=_0xd5a264['fieldView'];return _0xc041f8['extendTemplate']({'attributes':{'maxlength':'220'}}),_0xd5a264['label']=_0x56ddcf(this[_0x3035('0x4')],_0x3035('0x24')),_0xc041f8['on']('input',()=>{this[_0x3035('0x17')]=_0xc041f8['element'][_0x3035('0x6')][_0x3035('0x26')]();}),_0xd5a264;}[_0x3035('0x22')](_0xd45ebe,_0x35e292,_0x20c22e,_0x20fb60){const _0x2b22c4=new _0x279106(this[_0x3035('0x4')]);return _0x2b22c4[_0x3035('0xc')]({'label':_0xd45ebe,'icon':_0x35e292,'tooltip':!0x0}),_0x2b22c4['extendTemplate']({'attributes':{'class':_0x20c22e}}),_0x20fb60&&_0x2b22c4[_0x3035('0x21')]('execute')['to'](this,_0x20fb60),_0x2b22c4;}}
|