@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230721.0 → 0.0.0-nightly-20230722.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 _0x51b7=['changes','isAtStart','vid','isAfter','isOnRoot','hasClass','nodeAfter','keys','children','adapter','requires','processor','schema','findIndex','insert','parse','ck-revision-history-root--active','userId','_update','_threeWayMerge','addRevision','downcastDispatcher','_refreshStartEndIndex','data','indexOf','writer','revision-start','enqueueChange','activeChange','suggestion:','revision-suggestion','isInline','splice','_markInsertions','change:activeView','_markSuggestions','bindElementToMarker','selection','compare','then','side','_markMarkers','createPositionFromPath','isAttached','createRangeIn','WidgetToolbarRepository','forward','_getViewObj','getIndex','attributesBefore','find','checkAttribute','changeId','values','highest','flat','getRoot','filter','string','next','error','shift','ck-suggestion-marker','editor','mouseover','addRoot','push','code','revision','revision-viewer','isSuggestion','set','showPreviousChange','execute','_makeTape','_processTape','addMarker:revision','showStack','_getRevisionsRange','ck-suggestion-marker-','updatePosition','isBefore','unshift','addRevisionData','commands','ck-revision-history-root-','isRemoveSuggestion','slice','getChild','domEvent','item','markerName','affectsData','startIndex','uiElement','parent','get','getWalker','data-change-id','_removeUnsupportedChanges','createUIElement','isIncorrect','toViewElement','addHighlight','_makeModelFromTape','attributes','merge','includes','revision:','elementToAttribute','_revisions','_makeModelFromViewString','insertions','distance','removeAttribute','from','isAdded','enableReadOnlyMode','model','isObject','_getDiff','end','upcast','destroy','backward','maxOffset','domConverter','forceDisabled','change:numberOfChanges','attribute:vid','split','restoreRevision','viewItem','getDomRoot','getRootNames','_removeRevisionMarkers','removeMarker:revision-suggestion','revision-comment:','change:isReady','consume','unbindElementFromMarkerName','change:isEnabled','isLimit','low','ck-suggestion-marker--active','modelRange','getItems','getRevisionRootsAttributes','diff','_balloon','detachRoot','length','newRevisionId','plugins','delete','POSITIVE_INFINITY','add','done','markerNameToElements','test','view','document','getAttribute','revisionHistoryAttachChange','nextSibling','_setConversion','listenTo','_setChanges','elementStart','createRevision','vid_start','revisionHistoryLabel','ck-suggestion-marker-merge','clear','elementEnd','suggestion','_findChangeIdFromDomTarget','activeView','toViewPosition','markersStart','map','wrap','conversion','isAtEnd','isEnabled','getClientRects','createPositionBefore','_joinTapes','concat','createRange','consumable','remove','deletions','start','type','bottom','span','nextPosition','ck-revision-history-root-add','object','_changeIdToChange','sort','previousPosition','comment','attachChange','_fixObsoleteTags','editingDowncast','oldRevisionId','toViewRange','addClass','default','_setDistance','isContent','level','_step','diffData','stop','element','isRemoved','useFillerType','_initInteractions','createAttributeElement','ck-revision-history-root-remove','markerRange','pairId','resolve','all','init','ck-editor__editable__overlay','observeMarkers','_activeViewTarget','removeClass','name','config','getRevision','repository','isBlock','target','isAddSuggestion','isReady','deletion','first','getCustomProperty','change:activeChange','startsWith','_getChangeFromId','restoreRevisionCallback','showNextChange','markerToData','mapper','marked','getRevisionData','markersEnd','rootName','collaboration.channelId','_changeView','attributesAfter','markerToHighlight','removeMarker','RevisionViewer','for','change','numberOfChanges','reconvertMarker','_removeMissingPairs','getAttributes','high','endIndex','text','insertion','_cleanMarkers','markers','_cleanUp','isEqual','forEach','element:pre','revision-suggestion:','left','bind','revisionHistory','hasAttribute','has','_markMismatchedRemovedTags','_sortAndFilterDiffChanges','_appendChild','dataDowncast','editing','ck-suggestion-preview-marker-','right','loadRevisionData','return','vid_end','range','addMarker:revision-suggestion:deletion','RevisionsRepository','pluginName','refresh','index','abs','_data','-new','setAttribute','_getViewForChange','softBreak'];(function(_0x1475bf,_0x51b771){const _0x1eb776=function(_0x10c631){while(--_0x10c631){_0x1475bf['push'](_0x1475bf['shift']());}};_0x1eb776(++_0x51b771);}(_0x51b7,0xb9));const _0x1eb7=function(_0x1475bf,_0x51b771){_0x1475bf=_0x1475bf-0x0;let _0x1eb776=_0x51b7[_0x1475bf];return _0x1eb776;};import{Plugin as _0x4e01f2,Command as _0x1b9488}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x31f9c3}from'ckeditor5/src/utils';import{ContextualBalloon as _0x472063}from'ckeditor5/src/ui';import{DocumentFragment as _0x49eb37,Element as _0x2eb7dd,Text as _0x2bb13a,ViewDocumentFragment as _0x4d64c6,ViewText as _0x4ed475,ViewElement as _0x476983,ViewContainerElement as _0x50fc99,ViewAttributeElement as _0x34ac1e,ViewEmptyElement as _0x3aa67c,ViewRawElement as _0x4b85fc,ViewUIElement as _0x3907ae}from'ckeditor5/src/engine';import{Users as _0x4ed9cb,getMarkerDomElement as _0x549ae7}from'ckeditor5-collaboration/src/collaboration-core';import _0x790867 from'./ui/revisionviewer/changedetailsview';import _0x1749d9 from'./revisionsrepository';import _0x2aab27 from'./changeitem';import{default as _0x62e71a}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x522e3c}from'lodash-es';const tt={'c':_0x50fc99,'a':_0x34ac1e,'e':_0x3aa67c,'r':_0x4b85fc,'u':_0x3907ae};export default class d extends _0x4e01f2{static get[_0x1eb7('0x6e')](){return _0x1eb7('0x4a');}static get[_0x1eb7('0x81')](){return[_0x4ed9cb,_0x472063,_0x1749d9];}constructor(_0x272627){super(_0x272627),this[_0x1eb7('0x32')]=this[_0x1eb7('0xb6')][_0x1eb7('0x110')][_0x1eb7('0xd7')](_0x1eb7('0x6d')),this['set'](_0x1eb7('0x93'),null),this['set']('activeView',null),this[_0x1eb7('0x2d')]=null,this['set'](_0x1eb7('0x10b'),null),this[_0x1eb7('0xbe')](_0x1eb7('0x36'),!0x1),this[_0x1eb7('0xbe')](_0x1eb7('0x12f'),!0x0),this['on'](_0x1eb7('0x104'),(_0x4549c4,_0x359220,_0x21fa4d)=>{this['activeChange']=null,this[_0x1eb7('0x128')]=null,this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')][_0x1eb7('0x4c')](_0x75c0fa=>{for(const _0x1222f2 of this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')]['document']['roots'])_0x21fa4d?_0x75c0fa[_0x1eb7('0x2e')](_0x1eb7('0x2b'),_0x1222f2):_0x75c0fa[_0x1eb7('0x18')]('ck-editor__editable__overlay',_0x1222f2);});}),this[_0x1eb7('0x5d')]('isNavigationMode')['to'](this,_0x1eb7('0x93'),_0x28b0c1=>null!==_0x28b0c1),this[_0x1eb7('0x5d')]('currentChangeNumber')['to'](this,_0x1eb7('0x36'),this,_0x1eb7('0x10b'),this,_0x1eb7('0x93'),(_0x3f6caf,_0x3a15bf,_0x3dff8b)=>_0x3f6caf&&_0x3dff8b?_0x3a15bf[_0x1eb7('0x77')][_0x1eb7('0xa7')](_0x3dff8b):0x0),this[_0x1eb7('0x5d')](_0x1eb7('0x4d'))['to'](this,_0x1eb7('0x36'),this,'diff',(_0xd7bb7f,_0x2c0235)=>_0xd7bb7f?_0x2c0235[_0x1eb7('0x77')][_0x1eb7('0x10e')]:0x0),this[_0x1eb7('0x46')]=null,this[_0x1eb7('0xf')]=new Map(),this['adapter']=null,this[_0x1eb7('0x10c')]=this[_0x1eb7('0xb6')][_0x1eb7('0x110')][_0x1eb7('0xd7')](_0x472063);}[_0x1eb7('0x2a')](){const _0x2b7cbd=this['editor'],_0x2aaa05=new ShowChangeCommand(_0x2b7cbd,{'direction':_0x1eb7('0xf3')}),_0x4189e8=new ShowChangeCommand(_0x2b7cbd,{'direction':'forward'});(_0x2b7cbd[_0x1eb7('0xcb')][_0x1eb7('0x113')](_0x1eb7('0xbf'),_0x2aaa05),_0x2b7cbd[_0x1eb7('0xcb')][_0x1eb7('0x113')](_0x1eb7('0x3e'),_0x4189e8),_0x2b7cbd[_0x1eb7('0xcb')]['add'](_0x1eb7('0xfa'),new RestoreRevisionCommand(_0x2b7cbd)),this['on'](_0x1eb7('0xf7'),()=>{_0x2aaa05[_0x1eb7('0x6f')](),_0x4189e8[_0x1eb7('0x6f')]();}),this[_0x1eb7('0x11c')](),this[_0x1eb7('0x23')](),_0x2b7cbd[_0x1eb7('0xec')]('revision-viewer'),_0x2b7cbd[_0x1eb7('0x110')][_0x1eb7('0x60')](_0x1eb7('0xa4')))&&_0x2b7cbd['plugins'][_0x1eb7('0xd7')]('WidgetToolbarRepository')[_0x1eb7('0xf6')](_0x1eb7('0xbc'));}async[_0x1eb7('0x42')](_0x2abb0b){await this['loadRevisionData'](_0x2abb0b);const _0x651f04={};for(const _0x519308 in _0x2abb0b[_0x1eb7('0x1e')]){if(_0x2abb0b[_0x1eb7('0x1e')][_0x519308][_0x1eb7('0x13')]&&!_0x2abb0b[_0x1eb7('0x1e')][_0x519308][_0x1eb7('0x13')][_0x1eb7('0xa2')])continue;const _0x240a04=this['_removeRevisionMarkers'](JSON[_0x1eb7('0x86')](_0x2abb0b[_0x1eb7('0x1e')][_0x519308][_0x1eb7('0xe7')])),_0x58c9e6=this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')]['document'],_0x229763=new _0x4d64c6(_0x58c9e6,_0x240a04['map'](_0x221422=>this[_0x1eb7('0xa6')](_0x221422)));this[_0x1eb7('0xb6')]['data'][_0x1eb7('0x82')][_0x1eb7('0x22')](_0x1eb7('0x41')),_0x651f04[_0x519308]=this[_0x1eb7('0xb6')][_0x1eb7('0x8e')][_0x1eb7('0x82')]['toData'](_0x229763),this[_0x1eb7('0xb6')]['data'][_0x1eb7('0x82')][_0x1eb7('0x22')](_0x1eb7('0x19'));}return _0x651f04;}async[_0x1eb7('0x10a')](_0x524a37){await this[_0x1eb7('0x68')](_0x524a37);const _0x4383e1={};for(const _0x11378a in _0x524a37[_0x1eb7('0x1e')])_0x524a37[_0x1eb7('0x1e')][_0x11378a][_0x1eb7('0x13')]&&!_0x524a37[_0x1eb7('0x1e')][_0x11378a][_0x1eb7('0x13')][_0x1eb7('0xa2')]||(_0x4383e1[_0x11378a]=_0x524a37[_0x1eb7('0x1e')][_0x11378a]['attributesAfter']||{});return _0x4383e1;}['_removeRevisionMarkers'](_0x13ed99){return(_0x13ed99=_0x13ed99[_0x1eb7('0xb0')](_0x1ff7b1=>!_0x1ff7b1[_0x1eb7('0x2f')]||_0x1eb7('0x91')!==_0x1ff7b1[_0x1eb7('0x2f')]&&'revision-end'!==_0x1ff7b1['name']))['forEach'](_0x2a6791=>{_0x1eb7('0xb1')!=typeof _0x2a6791&&(_0x2a6791[_0x1eb7('0x7f')]=this[_0x1eb7('0xfe')](_0x2a6791[_0x1eb7('0x7f')]),_0x2a6791['attributes']=_0x2a6791[_0x1eb7('0xe0')]['filter'](_0x195241=>!_0x195241[0x0][_0x1eb7('0x3b')]('data-revision-')));}),_0x13ed99;}async[_0x1eb7('0x9d')](_0x38e920,_0x235c51,_0x51e1cd=!0x1){if(!this[_0x1eb7('0x12f')])return;const _0x2954b6=this[_0x1eb7('0x10b')],_0x110cd9=this[_0x1eb7('0x32')],_0x465954=_0x1eb7('0xb1')==typeof _0x38e920?_0x110cd9['getRevision'](_0x38e920):_0x38e920,_0x2648a4=_0x1eb7('0xb1')==typeof _0x235c51?_0x110cd9['getRevision'](_0x235c51):_0x235c51,_0x4a51f9=_0x465954['id'],_0x55b725=_0x2648a4?_0x2648a4['id']:null;if(!_0x51e1cd&&this[_0x1eb7('0x10b')]&&this[_0x1eb7('0x10b')][_0x1eb7('0x10f')]===_0x4a51f9&&this[_0x1eb7('0x10b')][_0x1eb7('0x16')]===_0x55b725)return Promise[_0x1eb7('0x28')]();this['isReady']=!0x1,this[_0x1eb7('0x128')]=null,this[_0x1eb7('0x93')]=null,this[_0x1eb7('0x10b')]=new _0x62e71a(_0x4a51f9,_0x55b725);const _0x4a6590=this[_0x1eb7('0xc5')](_0x465954,_0x2648a4,!0x0)[_0x1eb7('0x12b')](_0x16a50c=>this[_0x1eb7('0x68')](_0x16a50c));return _0x4a6590['push'](new Promise(_0x2d10e7=>{setTimeout(_0x2d10e7,0x14);})),Promise[_0x1eb7('0x29')](_0x4a6590)['then'](()=>{if(!this[_0x1eb7('0x12f')])return;this[_0x1eb7('0x57')]();const _0x4efc08=this[_0x1eb7('0xef')](_0x4a51f9,_0x55b725);for(const _0x4239e0 of _0x4efc08[_0x1eb7('0x77')])this['_changeIdToChange'][_0x1eb7('0xbe')](_0x4239e0['id'],_0x4239e0);this[_0x1eb7('0xb6')][_0x1eb7('0xed')]['enqueueChange']({'isUndoable':!0x1},_0x3d3744=>{for(const _0x4752c2 of this['editor'][_0x1eb7('0xed')]['document']['getRootNames']())_0x3d3744[_0x1eb7('0x10d')](_0x4752c2);for(const _0x3aff7f of Object[_0x1eb7('0x7e')](_0x4efc08[_0x1eb7('0xed')])){const _0x5a127c=_0x3d3744[_0x1eb7('0xb8')](_0x3aff7f);for(const _0x13c874 of Object[_0x1eb7('0x7e')](_0x4efc08[_0x1eb7('0xe0')][_0x3aff7f]))_0x3d3744[_0x1eb7('0x74')](_0x13c874,_0x4efc08[_0x1eb7('0xe0')][_0x3aff7f][_0x13c874],_0x5a127c);_0x3d3744[_0x1eb7('0x85')](_0x4efc08['model'][_0x3aff7f],_0x5a127c,0x0);}}),this[_0x1eb7('0x10b')][_0x1eb7('0x11e')](this[_0x1eb7('0x62')](_0x4efc08[_0x1eb7('0x77')])),this[_0x1eb7('0x36')]=!0x0;})['catch'](_0x48e0ff=>{console[_0x1eb7('0xb3')](_0x48e0ff),this['_cleanUp'](),_0x2954b6&&(this[_0x1eb7('0x10b')]=_0x2954b6),this[_0x1eb7('0x36')]=!0x0;});}[_0x1eb7('0xca')](_0x1fe596,_0x3f13a2){const _0x4e9391=this[_0x1eb7('0x32')][_0x1eb7('0x120')](_0x1fe596);return _0x4e9391['on'](_0x1eb7('0x89'),(_0x25a5e6,_0x229c1a,_0x5b1ce2)=>_0x3f13a2(_0x229c1a,_0x5b1ce2,_0x4e9391)),this['repository'][_0x1eb7('0x8b')](_0x4e9391),_0x4e9391;}[_0x1eb7('0x68')](_0x3b5ec6){if(!_0x3b5ec6||_0x3b5ec6['diffData'])return Promise[_0x1eb7('0x28')]();{const _0x476553=this[_0x1eb7('0xb6')][_0x1eb7('0x30')][_0x1eb7('0xd7')](_0x1eb7('0x45'));return this[_0x1eb7('0x80')][_0x1eb7('0x31')]({'channelId':_0x476553,'revisionId':_0x3b5ec6['id']})[_0x1eb7('0x9e')](_0x20e10d=>{_0x3b5ec6[_0x1eb7('0x89')]({'diffData':_0x20e10d[_0x1eb7('0x1e')]},!0x0);});}}[_0x1eb7('0x57')](){this[_0x1eb7('0x93')]=null,this[_0x1eb7('0x55')](),this[_0x1eb7('0x46')]&&this[_0x1eb7('0x46')][_0x1eb7('0xf2')](),this['_changeView']=null,this[_0x1eb7('0xf')][_0x1eb7('0x124')](),this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x92')]({'isUndoable':!0x1},_0x5e97c2=>{for(const _0x50bfbb of this['editor'][_0x1eb7('0xed')][_0x1eb7('0x118')][_0x1eb7('0xfd')]())_0x5e97c2[_0x1eb7('0x10d')](_0x50bfbb);});}[_0x1eb7('0x62')](_0x29dcdd){const _0x491ca1=[],_0x33b98d=new Map();for(const _0x3a8a25 of this['editor'][_0x1eb7('0xed')][_0x1eb7('0x118')][_0x1eb7('0xfd')]()){const _0x36f970=this['editor'][_0x1eb7('0x65')][_0x1eb7('0x117')][_0x1eb7('0xfc')](_0x3a8a25);if(!_0x36f970)continue;const _0x37d6ab=_0x36f970['getClientRects']()['item'](0x0);_0x37d6ab&&(_0x491ca1['push'](_0x3a8a25),_0x33b98d[_0x1eb7('0xbe')](_0x3a8a25,_0x37d6ab));}return _0x491ca1[_0x1eb7('0x10')]((_0x37b8a0,_0x786bb1)=>{const _0x139029=_0x33b98d[_0x1eb7('0xd7')](_0x37b8a0),_0x3c5882=_0x33b98d['get'](_0x786bb1);return _0x139029['y']-_0x3c5882['y']||_0x139029['x']-_0x3c5882['x'];}),(_0x29dcdd=_0x29dcdd[_0x1eb7('0xb0')](_0x38f81f=>_0x491ca1[_0x1eb7('0xe2')](_0x38f81f[_0x1eb7('0x44')])))[_0x1eb7('0x10')]((_0x3758e4,_0x580e31)=>_0x491ca1[_0x1eb7('0x8f')](_0x3758e4['rootName'])-_0x491ca1['indexOf'](_0x580e31[_0x1eb7('0x44')])),_0x29dcdd;}[_0x1eb7('0xc1')](_0xf5b5b9){const _0x3e4def=Array[_0x1eb7('0xea')](_0xf5b5b9['markers'])['filter'](([_0x4833cd,_0x43811b])=>_0x4833cd['startsWith'](_0x1eb7('0xe3'))&&!_0x43811b['isCollapsed']),_0x27c08e=Array[_0x1eb7('0xea')](this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0xa3')](_0xf5b5b9)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3e4def['length'])for(const _0x28e552 of _0x27c08e){const [_0x3b0ccf,_0x3ef4c1]=_0x3e4def[0x0],[,_0x135cc7,_0x1a8551]=_0x3b0ccf['split'](':');if(_0x3ef4c1['end']['isEqual'](_0x28e552[_0x1eb7('0xc')])&&_0x3e4def[_0x1eb7('0xb4')](),(_0x28e552[_0x1eb7('0x11')]['isEqual'](_0x3ef4c1[_0x1eb7('0x8')])||_0x28e552[_0x1eb7('0x11')][_0x1eb7('0x7a')](_0x3ef4c1['start']))&&(_0x1eb7('0x54')==_0x135cc7?_0x28e552[_0x1eb7('0xeb')]={'userId':_0x1a8551}:_0x1eb7('0x37')==_0x135cc7&&(_0x28e552[_0x1eb7('0x21')]={'userId':_0x1a8551})),0x0==_0x3e4def[_0x1eb7('0x10e')])break;}return _0x27c08e;}[_0x1eb7('0x8d')](_0x25fcc7){const _0xc80ba0=new Map();for(let _0x2efae2=0x0;_0x2efae2<_0x25fcc7[_0x1eb7('0x10e')];_0x2efae2++)_0x1eb7('0x53')===_0x25fcc7[_0x2efae2]['type']?(_0x25fcc7[_0x2efae2][_0x1eb7('0xd1')][_0x1eb7('0xd4')]=_0x2efae2,_0x25fcc7[_0x2efae2]['item']['endIndex']=_0x2efae2):('elementStart'===_0x25fcc7[_0x2efae2]['type']?_0x25fcc7[_0x2efae2]['item'][_0x1eb7('0xd4')]=_0x2efae2:_0x1eb7('0x125')===_0x25fcc7[_0x2efae2][_0x1eb7('0x9')]&&(_0x25fcc7[_0x2efae2][_0x1eb7('0xd1')][_0x1eb7('0x52')]=_0x2efae2),_0xc80ba0[_0x1eb7('0xbe')](_0x25fcc7[_0x2efae2]['id'],_0x2efae2));for(const _0x51b0e1 of _0xc80ba0[_0x1eb7('0xac')]())_0x1eb7('0x11f')===_0x25fcc7[_0x51b0e1][_0x1eb7('0x9')]?_0x25fcc7[_0x51b0e1][_0x1eb7('0xd1')]['endIndex']=_0xc80ba0[_0x1eb7('0xd7')](_0x25fcc7[_0x51b0e1]['pairId']):_0x1eb7('0x125')===_0x25fcc7[_0x51b0e1][_0x1eb7('0x9')]&&(_0x25fcc7[_0x51b0e1][_0x1eb7('0xd1')][_0x1eb7('0xd4')]=_0xc80ba0['get'](_0x25fcc7[_0x51b0e1][_0x1eb7('0x27')]));}[_0x1eb7('0xc2')](_0x11fe5a){for(let _0x141043=0x0;_0x141043<_0x11fe5a['length'];_0x141043++){if(_0x1eb7('0x11f')===_0x11fe5a[_0x141043][_0x1eb7('0x9')])_0x11fe5a[_0x141043][_0x1eb7('0xd1')][_0x1eb7('0xd4')]=_0x141043;else{if(_0x1eb7('0x125')===_0x11fe5a[_0x141043][_0x1eb7('0x9')]){_0x11fe5a[_0x141043][_0x1eb7('0xd1')][_0x1eb7('0x52')]=_0x141043;const _0x2cc802=_0x11fe5a[_0x141043][_0x1eb7('0xd1')][_0x1eb7('0xd4')];_0x11fe5a[_0x2cc802]['pairId']=_0x11fe5a[_0x141043]['id'],_0x11fe5a[_0x141043][_0x1eb7('0x27')]=_0x11fe5a[_0x2cc802]['id'];}else _0x11fe5a[_0x141043][_0x1eb7('0xd1')][_0x1eb7('0xd4')]=_0x141043,_0x11fe5a[_0x141043][_0x1eb7('0xd1')]['endIndex']=_0x141043,_0x11fe5a[_0x141043]['pairId']=null;}_0x11fe5a[_0x141043][_0x1eb7('0x12a')]||(_0x11fe5a[_0x141043]['markersStart']=[],_0x11fe5a[_0x141043][_0x1eb7('0x43')]=[]);}}[_0x1eb7('0x98')](_0x36f872,_0x34742f){const _0x69109=_0x36f872[_0x1eb7('0xb0')](_0x49ef05=>!_0x49ef05[_0x1eb7('0xeb')]);for(let _0x2735d9=0x0;_0x2735d9<_0x34742f['length'];_0x2735d9++)_0x34742f[_0x2735d9][_0x1eb7('0xeb')]&&(_0x69109[_0x2735d9][_0x1eb7('0xeb')]=_0x34742f[_0x2735d9][_0x1eb7('0xeb')]);}[_0x1eb7('0xe6')](_0x3d6b10){const _0x4a5e4a=JSON['parse'](_0x3d6b10),_0x3dfcbe=this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')]['document'],_0x1d4aa3=new _0x4d64c6(_0x3dfcbe,_0x4a5e4a[_0x1eb7('0x12b')](_0xf0cbc2=>this[_0x1eb7('0xa6')](_0xf0cbc2)));return this[_0x1eb7('0xb6')][_0x1eb7('0x8e')]['toModel'](_0x1d4aa3);}[_0x1eb7('0xa6')](_0x1b1859){const _0x29d9a5=this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')][_0x1eb7('0x118')];if(_0x1eb7('0xb1')==typeof _0x1b1859)return new _0x4ed475(_0x29d9a5,_0x1b1859);{const _0x69cf3f=_0x1b1859[_0x1eb7('0x7f')][_0x1eb7('0x12b')](_0x296ff0=>this['_getViewObj'](_0x296ff0));return new(tt[_0x1b1859['type']]||_0x476983)(_0x29d9a5,_0x1b1859[_0x1eb7('0x2f')],_0x1b1859['attributes'],_0x69cf3f);}}['_getDiff'](_0x57e2d9,_0x26f332=null){const _0x441c5f=this['repository']['getRevision'](_0x57e2d9),_0x3eb708=_0x26f332?this[_0x1eb7('0x32')][_0x1eb7('0x31')](_0x26f332):null,_0x4a211b=this[_0x1eb7('0xc5')](_0x441c5f,_0x3eb708),_0x1345fe=_0x4a211b[_0x4a211b['length']-0x1],_0x55360f=new Map(),_0x228ad2={'model':{},'attributes':{},'changes':[]},_0x140fcf=new Set(),_0x318614=new Map();for(let _0x13c614=_0x4a211b[_0x1eb7('0x10e')]-0x1;_0x13c614>=0x0;_0x13c614--){const _0x417f03=_0x4a211b[_0x13c614];for(const _0xc62eaf of Object['keys'](_0x417f03[_0x1eb7('0x1e')]))if(_0x417f03[_0x1eb7('0x1e')][_0xc62eaf][_0x1eb7('0x13')]){const _0x52e2b9=_0x417f03[_0x1eb7('0x1e')][_0xc62eaf]['attachChange'];_0x52e2b9[_0x1eb7('0xa2')]?(_0x140fcf['add'](_0xc62eaf),_0x318614[_0x1eb7('0x60')](_0xc62eaf)&&_0x318614[_0x1eb7('0xd7')](_0xc62eaf)[_0x1eb7('0x88')]==_0x52e2b9[_0x1eb7('0x88')]?_0x318614[_0x1eb7('0x111')](_0xc62eaf):_0x318614[_0x1eb7('0xbe')](_0xc62eaf,_0x52e2b9)):_0x318614['has'](_0xc62eaf)?(_0x140fcf['delete'](_0xc62eaf),_0x318614['delete'](_0xc62eaf)):(_0x140fcf['add'](_0xc62eaf),_0x318614[_0x1eb7('0xbe')](_0xc62eaf,_0x52e2b9));}else _0x140fcf[_0x1eb7('0x113')](_0xc62eaf);}for(const _0x3127bb of _0x140fcf){const _0x3f0dc4=_0x318614[_0x1eb7('0x60')](_0x3127bb)&&!_0x318614[_0x1eb7('0xd7')](_0x3127bb)[_0x1eb7('0xa2')];let _0x1fab46=_0x3f0dc4?_0x4a211b[_0x1eb7('0x10e')]-0x1:0x0;const _0x3d2bc1=_0x3f0dc4?-0x1:0x1;for(;_0x4a211b[_0x1fab46];){const _0x1c2696=_0x4a211b[_0x1fab46];if(_0x1c2696[_0x1eb7('0x1e')][_0x3127bb]){const _0x50f9a9=_0x3f0dc4?_0x1c2696[_0x1eb7('0x1e')][_0x3127bb][_0x1eb7('0xa8')]:_0x1c2696[_0x1eb7('0x1e')][_0x3127bb][_0x1eb7('0x47')];_0x228ad2[_0x1eb7('0xe0')][_0x3127bb]=_0x50f9a9?_0x522e3c(_0x50f9a9):{};break;}_0x1fab46+=_0x3d2bc1;}}for(const _0xe2de12 of _0x4a211b){_0xe2de12['model']={};for(const _0xf04d99 of _0xe2de12['authors'])_0x55360f[_0x1eb7('0xbe')](_0xf04d99['id'],_0xf04d99);for(const _0x359f45 of _0x140fcf){const _0x37cc23=_0xe2de12[_0x1eb7('0x1e')][_0x359f45]?_0xe2de12['diffData'][_0x359f45][_0x1eb7('0xe7')]:'[]',_0x1c9ff7=_0xe2de12[_0x1eb7('0x1e')][_0x359f45]?_0xe2de12[_0x1eb7('0x1e')][_0x359f45][_0x1eb7('0x7')]:'[]';_0xe2de12[_0x1eb7('0xed')][_0x359f45]={'insertions':this['_makeModelFromViewString'](_0x37cc23),'deletions':this['_makeModelFromViewString'](_0x1c9ff7)};}}for(const _0x440191 of _0x140fcf){let _0x1a411c=null,_0x2e1d90=0x0;const _0x3b9e10=new Map(Array[_0x1eb7('0xea')](_0x441c5f[_0x1eb7('0xed')][_0x440191][_0x1eb7('0xe7')][_0x1eb7('0x56')])[_0x1eb7('0xb0')](([_0x24c126])=>!_0x24c126[_0x1eb7('0x3b')](_0x1eb7('0xe3'))));let _0x3a6080=0x0;for(const _0x3aa3ff of _0x4a211b){const _0x15a9ab=this[_0x1eb7('0xc1')](_0x3aa3ff[_0x1eb7('0xed')][_0x440191][_0x1eb7('0xe7')]);_0x3aa3ff==_0x441c5f?(_0x1a411c=_0x15a9ab,_0x2e1d90=_0x1a411c[_0x1eb7('0x10e')],_0x1a411c[_0x1eb7('0x59')](_0x419b0c=>{_0x419b0c['id']=_0x3a6080++;}),this['_processTape'](_0x1a411c)):this['_markInsertions'](_0x1a411c,_0x15a9ab);const _0x243db2=_0x1a411c['filter'](_0x575a8b=>!_0x575a8b[_0x1eb7('0xeb')])[_0x1eb7('0x12b')](_0x4f2880=>_0x4f2880['id']);let _0x201a44=0x0;const _0x360635=this[_0x1eb7('0xc1')](_0x3aa3ff[_0x1eb7('0xed')][_0x440191][_0x1eb7('0x7')]);_0x360635[_0x1eb7('0x59')](_0x19bd1e=>{_0x19bd1e[_0x1eb7('0x21')]?_0x19bd1e['id']=_0x2e1d90++:_0x19bd1e['id']=_0x243db2[_0x201a44++];}),this['_processTape'](_0x360635),this[_0x1eb7('0x1a')](_0x1a411c,_0x1eb7('0xeb')),this[_0x1eb7('0x1a')](_0x360635,_0x1eb7('0x21')),_0x3aa3ff==_0x441c5f&&this[_0x1eb7('0xa0')](_0x1a411c,_0x3b9e10),_0x1a411c=this[_0x1eb7('0x2')](_0x1a411c,_0x360635),this[_0x1eb7('0x8d')](_0x1a411c),this[_0x1eb7('0x1a')](_0x1a411c,_0x1eb7('0x21'));}_0x1a411c=_0x1a411c[_0x1eb7('0xb0')](_0x3faedb=>!(_0x3faedb[_0x1eb7('0xeb')]&&_0x3faedb['isRemoved']));const _0x31939a=new Map(_0x1345fe[_0x1eb7('0xed')][_0x440191][_0x1eb7('0x7')][_0x1eb7('0x56')]),_0x121a75=new Set(_0x3b9e10[_0x1eb7('0x7e')]());for(const _0x2c4726 of _0x31939a['keys']())_0x121a75[_0x1eb7('0x111')](_0x2c4726);this[_0x1eb7('0x9a')](_0x1a411c,_0x121a75),this[_0x1eb7('0x14')](_0x1a411c),_0x1a411c=this['_removeMissingPairs'](_0x1a411c),_0x1a411c=this[_0x1eb7('0x61')](_0x1a411c),_0x1a411c=this[_0x1eb7('0xda')](_0x1a411c);const {root:_0x221eb8,changes:_0xe6a864}=this['_makeModelFromTape'](_0x1a411c,_0x55360f,_0x440191);_0x228ad2[_0x1eb7('0xed')][_0x440191]=_0x221eb8;const _0xdad3d4=_0x318614['get'](_0x440191);if(_0xdad3d4){const _0x30efdb=_0x55360f[_0x1eb7('0xd7')](_0xdad3d4[_0x1eb7('0x88')]),_0x3b13f0=new _0x2aab27({'author':_0x30efdb,'type':_0xdad3d4[_0x1eb7('0xa2')]?_0x1eb7('0x113'):_0x1eb7('0x6'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x440191});_0xe6a864[_0x1eb7('0xc9')](_0x3b13f0),_0x228ad2[_0x1eb7('0xe0')][_0x440191][_0x1eb7('0x11a')]=_0x3b13f0['id'];}_0x228ad2[_0x1eb7('0x77')]=_0x228ad2[_0x1eb7('0x77')][_0x1eb7('0x3')](_0xe6a864);}return _0x228ad2;}['_markMarkers'](_0x5e4116,_0x54f342){for(let _0x1f2633=0x0;_0x1f2633<_0x5e4116[_0x1eb7('0x10e')];_0x1f2633++)for(const [_0x45fa0f,_0x534d73]of _0x54f342)_0x534d73[_0x1eb7('0x8')][_0x1eb7('0x58')](_0x5e4116[_0x1f2633][_0x1eb7('0x11')])&&_0x5e4116[_0x1f2633][_0x1eb7('0x12a')][_0x1eb7('0xb9')](_0x45fa0f),_0x534d73[_0x1eb7('0xf0')][_0x1eb7('0x58')](_0x5e4116[_0x1f2633][_0x1eb7('0xc')])&&_0x5e4116[_0x1f2633][_0x1eb7('0x43')]['push'](_0x45fa0f);}[_0x1eb7('0x2')](_0x46e0e4,_0x480565){let _0xac20a6=[],_0x78befd=0x0,_0x4a7720=0x0;for(;_0x78befd<_0x46e0e4['length']||_0x4a7720<_0x480565[_0x1eb7('0x10e')];){const _0x370e82=_0x46e0e4[_0x78befd]||{},_0x300634=_0x480565[_0x4a7720]||{};if(_0x370e82['id']==_0x300634['id'])_0x78befd++,_0x4a7720++,_0xac20a6[_0x1eb7('0xb9')](_0x370e82);else{if(_0x300634[_0x1eb7('0x21')]&&_0x370e82['isAdded']){const {commonTape:_0x568930,iEnd:_0x32fd4b,jEnd:_0x2dbe26}=this[_0x1eb7('0x8a')](_0x46e0e4,_0x78befd,_0x480565,_0x4a7720);_0xac20a6=_0xac20a6[_0x1eb7('0x3')](_0x568930),_0x78befd=_0x32fd4b,_0x4a7720=_0x2dbe26;}else _0x300634[_0x1eb7('0x21')]?(_0x4a7720++,_0xac20a6[_0x1eb7('0xb9')](_0x300634)):(_0x78befd++,_0xac20a6[_0x1eb7('0xb9')](_0x370e82));}}return _0xac20a6;}[_0x1eb7('0x9a')](_0x131db0,_0x1b4101){const _0x3837a1=[];for(let _0x17f749=0x0;_0x17f749<_0x131db0[_0x1eb7('0x10e')];_0x17f749++){for(let _0x15d0bc=0x0;_0x15d0bc<_0x131db0[_0x17f749]['markersStart'][_0x1eb7('0x10e')];_0x15d0bc++){const _0x2dad32=_0x131db0[_0x17f749][_0x1eb7('0x12a')][_0x15d0bc];if(!_0x1b4101[_0x1eb7('0x60')](_0x2dad32))continue;const {group:_0x2a7f50,type:_0x2bed8,authorId:_0x4c4021}=_0x857b3(_0x2dad32);_0x1eb7('0x95')!=_0x2a7f50||'insertion'!=_0x2bed8&&_0x1eb7('0x37')!=_0x2bed8||(_0x3837a1[_0x1eb7('0xc9')]({'type':_0x2bed8,'name':_0x2dad32,'userId':_0x4c4021}),_0x131db0[_0x17f749][_0x1eb7('0x12a')][_0x1eb7('0x97')](_0x15d0bc,0x1),_0x15d0bc--);}_0x1fec70(_0x131db0[_0x17f749]);for(let _0x1d94b6=0x0;_0x1d94b6<_0x131db0[_0x17f749][_0x1eb7('0x43')][_0x1eb7('0x10e')];_0x1d94b6++){const _0x3629c6=_0x131db0[_0x17f749][_0x1eb7('0x43')][_0x1d94b6];if(!_0x1b4101[_0x1eb7('0x60')](_0x3629c6))continue;const {group:_0x56b3d9,type:_0x3936cc}=_0x857b3(_0x3629c6);if('revision-suggestion'!=_0x56b3d9||'insertion'!=_0x3936cc&&_0x1eb7('0x37')!=_0x3936cc)continue;_0x131db0[_0x17f749][_0x1eb7('0x43')][_0x1eb7('0x97')](_0x1d94b6,0x1),_0x1d94b6--;const _0x353273=_0x3837a1[_0x1eb7('0x84')](_0x41073c=>_0x41073c['name']==_0x3629c6);_0x353273>-0x1&&_0x3837a1[_0x1eb7('0x97')](_0x353273,0x1);}}function _0x857b3(_0x3217e6){const _0x26170b=_0x3217e6['split'](':');return{'group':_0x26170b[0x0],'type':_0x26170b[0x1],'subType':_0x26170b[_0x1eb7('0x10e')]>=0x5?_0x26170b[0x2]:null,'id':_0x26170b[_0x1eb7('0x10e')]<0x5?_0x26170b[0x2]:_0x26170b[0x3],'authorId':_0x26170b[_0x1eb7('0x10e')]<0x5?_0x26170b[0x3]:_0x26170b[0x4],'markerCount':0x6==_0x26170b[_0x1eb7('0x10e')]?_0x26170b[0x5]:null};}function _0x1fec70(_0x573b22){for(let _0x5bddf7=0x0;_0x5bddf7<_0x3837a1['length'];_0x5bddf7++){if(_0x573b22[_0x1eb7('0xeb')]&&'insertion'==_0x3837a1[_0x5bddf7][_0x1eb7('0x9')])return _0x573b22[_0x1eb7('0x35')]=_0x3837a1[_0x5bddf7],void delete _0x573b22[_0x1eb7('0xeb')];if(!_0x573b22[_0x1eb7('0xeb')]&&!_0x573b22[_0x1eb7('0x21')]&&_0x1eb7('0x37')==_0x3837a1[_0x5bddf7][_0x1eb7('0x9')])return void(_0x573b22['isRemoveSuggestion']=_0x3837a1[_0x5bddf7]);}}}[_0x1eb7('0x1a')](_0x22f484,_0x4a6cd3){let _0x374625=0x0,_0x456c47=!0x1;const _0x1a4a66=new Map();for(const _0x31ec65 of _0x22f484)_0x31ec65[_0x4a6cd3]?_0x456c47&&(_0x374625++,_0x456c47=!0x1):(_0x374625++,_0x456c47=!0x0),_0x1a4a66[_0x1eb7('0xbe')](_0x31ec65['id'],_0x374625);for(let _0x541eba=0x0;_0x541eba<_0x22f484[_0x1eb7('0x10e')];_0x541eba++){if('isRemoved'==_0x4a6cd3&&_0x22f484[_0x541eba][_0x1eb7('0xeb')]||_0x1eb7('0xeb')==_0x4a6cd3&&_0x22f484[_0x541eba][_0x1eb7('0x21')])continue;if(_0x1eb7('0x53')==_0x22f484[_0x541eba][_0x1eb7('0x9')]){_0x22f484[_0x541eba][_0x1eb7('0xe8')]=0x0;continue;}const _0x5d8ddb=_0x1a4a66[_0x1eb7('0xd7')](_0x22f484[_0x541eba][_0x1eb7('0x27')]),_0x5f5bfa=_0x1a4a66[_0x1eb7('0xd7')](_0x22f484[_0x541eba]['id']);_0x22f484[_0x541eba][_0x1eb7('0xe8')]=_0x5d8ddb-_0x5f5bfa;}}[_0x1eb7('0xc5')](_0x5f264f,_0xe50a14,_0x14a438=!0x1){const _0x55b4e1=[];let _0x1535cf=this[_0x1eb7('0x32')][_0x1eb7('0xa7')](_0x5f264f),_0x5db581=this['repository'][_0x1eb7('0xa7')](_0xe50a14);for(-0x1==_0x5db581&&(_0x5db581=this[_0x1eb7('0x32')][_0x1eb7('0xe5')][_0x1eb7('0x10e')],_0x14a438=!0x1);_0x1535cf<_0x5db581;)_0x55b4e1['push'](this[_0x1eb7('0x32')][_0x1eb7('0x31')](_0x1535cf)),_0x1535cf++;return _0x14a438&&_0x55b4e1[_0x1eb7('0xb9')](this[_0x1eb7('0x32')][_0x1eb7('0x31')](_0x1535cf)),_0x55b4e1;}[_0x1eb7('0x8a')](_0x57d954,_0x11402c,_0x437414,_0x2fec74){const _0x4b8838=this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x83')];let _0x19a6a9=_0x11402c;for(;_0x57d954[_0x19a6a9]&&_0x57d954[_0x19a6a9][_0x1eb7('0xeb')];)_0x19a6a9++;let _0x546921=_0x2fec74;for(;_0x437414[_0x546921]&&_0x437414[_0x546921][_0x1eb7('0x21')];)_0x546921++;_0xf76aee(_0x57d954,_0x11402c,_0x19a6a9),_0xf76aee(_0x437414,_0x2fec74,_0x546921);const _0x176aae=_0x437414[_0x1eb7('0xce')](_0x2fec74,_0x546921)[_0x1eb7('0x3')](_0x57d954[_0x1eb7('0xce')](_0x11402c,_0x19a6a9));return _0x176aae[_0x1eb7('0x10')]((_0x55ad40,_0x447af7)=>_0x55ad40[_0x1eb7('0x9f')]!=_0x447af7[_0x1eb7('0x9f')]?_0x55ad40[_0x1eb7('0x9f')]-_0x447af7[_0x1eb7('0x9f')]:_0x55ad40['level']!=_0x447af7[_0x1eb7('0x1c')]?_0x55ad40[_0x1eb7('0x1c')]-_0x447af7[_0x1eb7('0x1c')]:_0x55ad40[_0x1eb7('0xe8')]!=_0x447af7['distance']?_0x447af7['distance']-_0x55ad40['distance']:!!_0x55ad40[_0x1eb7('0xeb')]!=!!_0x447af7[_0x1eb7('0xeb')]?-0x1==_0x55ad40['side']||0x0==_0x55ad40[_0x1eb7('0x9f')]?_0x55ad40[_0x1eb7('0xeb')]?-0x1:0x1:_0x55ad40[_0x1eb7('0xeb')]?0x1:-0x1:_0x55ad40[_0x1eb7('0x70')]-_0x447af7['index']),{'commonTape':_0x176aae,'iEnd':_0x19a6a9,'jEnd':_0x546921};function _0xf76aee(_0x410234,_0x4aeed3,_0x1b26a1){let _0x7ac168=-0x1,_0x33c0f5=Number[_0x1eb7('0x112')],_0x1b3714=!0x0;for(let _0x550475=_0x4aeed3;_0x550475<_0x1b26a1;_0x550475++)if(_0x4b8838[_0x1eb7('0x96')](_0x410234[_0x550475][_0x1eb7('0xd1')])||(_0x1b3714=!0x1),_0x410234[_0x550475][_0x1eb7('0xd1')][_0x1eb7('0xd4')]<_0x4aeed3&&(_0x7ac168=_0x550475),_0x410234[_0x550475][_0x1eb7('0xd1')][_0x1eb7('0x52')]>=_0x1b26a1){_0x33c0f5=_0x550475;break;}_0x1b3714&&(_0x7ac168=_0x1b26a1-0x1);for(let _0x5c5c9b=_0x4aeed3;_0x5c5c9b<_0x1b26a1;_0x5c5c9b++)_0x410234[_0x5c5c9b][_0x1eb7('0x9f')]=_0x5c5c9b<=_0x7ac168?-0x1:_0x5c5c9b<_0x33c0f5?0x0:0x1,_0x410234[_0x5c5c9b][_0x1eb7('0x70')]=_0x5c5c9b;let _0x1296b5=0x0;for(let _0x9e2a87=_0x4aeed3;_0x9e2a87<=_0x7ac168;_0x9e2a87++)0x0==_0x410234[_0x9e2a87][_0x1eb7('0xe8')]?_0x410234[_0x9e2a87][_0x1eb7('0x1c')]=_0x1296b5:(_0x1296b5++,_0x410234[_0x9e2a87][_0x1eb7('0x1c')]=_0x1296b5,_0x1296b5++);for(let _0x38dbe8=_0x4aeed3;_0x38dbe8<_0x1b26a1;_0x38dbe8++)0x0==_0x410234[_0x38dbe8][_0x1eb7('0x9f')]&&(_0x410234[_0x38dbe8][_0x1eb7('0x1c')]=_0x1296b5);_0x1296b5=0x0;for(let _0x168b3e=_0x1b26a1-0x1;_0x168b3e>=_0x33c0f5;_0x168b3e--)0x0==_0x410234[_0x168b3e][_0x1eb7('0xe8')]?_0x410234[_0x168b3e][_0x1eb7('0x1c')]=_0x1296b5:(_0x1296b5--,_0x410234[_0x168b3e][_0x1eb7('0x1c')]=_0x1296b5,_0x1296b5--);}}['_fixObsoleteTags'](_0x58ee32){const _0x33e6ee=new Map(),_0x5061cb=this['editor'][_0x1eb7('0xed')][_0x1eb7('0x83')];for(let _0x4dc266=0x1;_0x4dc266<_0x58ee32[_0x1eb7('0x10e')];_0x4dc266++){let _0x4016fb,_0x10493c,_0x75edc6;const _0x55343c=_0x58ee32[_0x4dc266],_0x2d89ba=_0x58ee32[_0x4dc266-0x1];if(_0x1eb7('0x53')==_0x55343c[_0x1eb7('0x9')])continue;if(_0x55343c[_0x1eb7('0x9')]!=_0x2d89ba[_0x1eb7('0x9')])continue;if(!_0x5061cb[_0x1eb7('0x33')](_0x2d89ba['item'])||_0x5061cb[_0x1eb7('0x105')](_0x2d89ba['item']))continue;if(!_0x5061cb['isBlock'](_0x55343c['item'])||_0x5061cb[_0x1eb7('0x105')](_0x55343c[_0x1eb7('0xd1')]))continue;if((_0x58ee32[_0x4dc266][_0x1eb7('0xeb')]||_0x58ee32[_0x4dc266][_0x1eb7('0x35')])&&_0x58ee32[_0x4dc266-0x1]['isRemoved'])_0x4016fb=_0x58ee32[_0x4dc266],_0x10493c=_0x58ee32[_0x4dc266-0x1],_0x75edc6=_0x4dc266-0x1;else{if(!_0x58ee32[_0x4dc266][_0x1eb7('0x21')]||!_0x58ee32[_0x4dc266-0x1][_0x1eb7('0xeb')]&&!_0x58ee32[_0x4dc266-0x1][_0x1eb7('0x35')])continue;_0x4016fb=_0x58ee32[_0x4dc266-0x1],_0x10493c=_0x58ee32[_0x4dc266],_0x75edc6=_0x4dc266;}const _0x4bae3e=_0x4016fb[_0x1eb7('0x1c')]==_0x10493c[_0x1eb7('0x1c')],_0x1d46d0=Math[_0x1eb7('0x71')](_0x4016fb[_0x1eb7('0x1c')])<Math[_0x1eb7('0x71')](_0x10493c[_0x1eb7('0x1c')])&&0x0==_0x10493c['distance'];(_0x4bae3e||_0x1d46d0)&&(_0x33e6ee['set'](_0x10493c['id'],_0x4016fb['id']),_0x58ee32['splice'](_0x75edc6,0x1),_0x4dc266--,_0x4016fb[_0x1eb7('0xeb')]=!0x1);}for(let _0x125eb4=0x0;_0x125eb4<_0x58ee32[_0x1eb7('0x10e')];_0x125eb4++)_0x33e6ee[_0x1eb7('0x60')](_0x58ee32[_0x125eb4][_0x1eb7('0x27')])&&(_0x58ee32[_0x125eb4]['pairId']=_0x33e6ee[_0x1eb7('0xd7')](_0x58ee32[_0x125eb4][_0x1eb7('0x27')]));}[_0x1eb7('0x4f')](_0x540b04){const _0x27c133=new Set(_0x540b04[_0x1eb7('0x12b')](_0x482ba7=>_0x482ba7['id']));for(let _0x5ab089=0x0;_0x5ab089<_0x540b04[_0x1eb7('0x10e')];_0x5ab089++)_0x27c133[_0x1eb7('0x60')](_0x540b04[_0x5ab089][_0x1eb7('0x27')])||0x0==_0x540b04[_0x5ab089][_0x1eb7('0xe8')]||(_0x540b04[_0x5ab089]['isIncorrect']=!0x0);return _0x540b04[_0x1eb7('0xb0')](_0x36d3ac=>!_0x36d3ac[_0x1eb7('0xdc')]);}[_0x1eb7('0x61')](_0x4d75b8){const _0xbb2b6=new Set();for(let _0x528d4c=0x0;_0x528d4c<_0x4d75b8[_0x1eb7('0x10e')];_0x528d4c++){if(_0xbb2b6[_0x1eb7('0x60')](_0x4d75b8[_0x528d4c]['id'])&&_0x4d75b8[_0x528d4c][_0x1eb7('0x21')]&&(_0x4d75b8[_0x528d4c]['isIncorrect']=!0x0),_0x4d75b8[_0x528d4c][_0x1eb7('0xdc')])continue;if(0x0==_0x4d75b8[_0x528d4c][_0x1eb7('0xe8')])continue;if(_0x1eb7('0x11f')!=_0x4d75b8[_0x528d4c]['type'])continue;if(null==_0x4d75b8[_0x528d4c][_0x1eb7('0x27')])continue;let _0x28db6e=_0x528d4c+0x1,_0x411a26=0x0;for(;_0x4d75b8[_0x28db6e]['id']!=_0x4d75b8[_0x528d4c]['pairId'];)_0x1eb7('0x11f')==_0x4d75b8[_0x28db6e]['type']?_0x411a26++:_0x1eb7('0x125')==_0x4d75b8[_0x28db6e][_0x1eb7('0x9')]&&_0x411a26--,_0x28db6e++;if(0x0!=_0x411a26){if(_0x4d75b8[_0x528d4c]['isRemoved'])_0x4d75b8[_0x528d4c][_0x1eb7('0xdc')]=!0x0;else for(;_0x28db6e!=_0x528d4c;)_0x4d75b8[_0x28db6e]['isRemoved']&&0x0!=_0x4d75b8[_0x28db6e][_0x1eb7('0xe8')]&&(_0x4d75b8[_0x28db6e][_0x1eb7('0xdc')]=!0x0,_0xbb2b6['add'](_0x4d75b8[_0x28db6e][_0x1eb7('0x27')])),_0x28db6e--;}}return _0x4d75b8[_0x1eb7('0xb0')](_0x102298=>!_0x102298[_0x1eb7('0xdc')]);}[_0x1eb7('0xda')](_0x767e94){const _0x510e3c=this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x83')];for(let _0x29a065=0x0;_0x29a065<_0x767e94[_0x1eb7('0x10e')];_0x29a065++){if(!(_0x767e94[_0x29a065][_0x1eb7('0xeb')]||_0x767e94[_0x29a065]['isAddSuggestion']||_0x767e94[_0x29a065][_0x1eb7('0x21')]||_0x767e94[_0x29a065][_0x1eb7('0xcd')]))continue;if(0x0==_0x767e94[_0x29a065][_0x1eb7('0xe8')])continue;const _0x22337f=_0x767e94[_0x29a065][_0x1eb7('0xd1')];_0x510e3c[_0x1eb7('0x33')](_0x22337f)||_0x510e3c['isLimit'](_0x22337f)||(_0x767e94[_0x29a065][_0x1eb7('0xeb')]&&delete _0x767e94[_0x29a065]['isAdded'],_0x767e94[_0x29a065]['isAddSuggestion']&&delete _0x767e94[_0x29a065][_0x1eb7('0x35')],_0x767e94[_0x29a065][_0x1eb7('0xcd')]&&delete _0x767e94[_0x29a065][_0x1eb7('0xcd')],_0x767e94[_0x29a065][_0x1eb7('0x21')]&&(_0x767e94[_0x29a065][_0x1eb7('0xdc')]=!0x0));}return _0x767e94['filter'](_0x18e01f=>!_0x18e01f[_0x1eb7('0xdc')]);}[_0x1eb7('0xdf')](_0x4690f8,_0x7a52f7,_0x4cb3b1){const _0x2ae210=new _0x49eb37(),_0x5783e7=[],_0x2d94bf=new Map(),_0x47f322=this['editor'][_0x1eb7('0xed')],_0x47026a=_0x47f322[_0x1eb7('0x83')],_0x4ffcae=[_0x2ae210],_0x3cc630={},_0x4d6b22={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3f8217=null;const _0x121aba=[0x0];for(let _0x58fa43=0x0;_0x58fa43<_0x4690f8[_0x1eb7('0x10e')];_0x58fa43++){let _0x369712,_0x408bfb;if(_0x1eb7('0x11f')===_0x4690f8[_0x58fa43][_0x1eb7('0x9')]){_0x369712=_0x47f322[_0x1eb7('0xa1')](_0x2ae210,_0x121aba);const _0x4721b7=new _0x2eb7dd(_0x4690f8[_0x58fa43]['item'][_0x1eb7('0x2f')],_0x4690f8[_0x58fa43][_0x1eb7('0xd1')][_0x1eb7('0x50')]());_0x4ffcae[0x0][_0x1eb7('0x63')](_0x4721b7),_0x121aba[_0x1eb7('0xb9')](0x0),_0x4ffcae[_0x1eb7('0xc9')](_0x4721b7),_0x408bfb=_0x47f322[_0x1eb7('0xa1')](_0x2ae210,_0x121aba),_0x3f8217=null;}else{if(_0x1eb7('0x125')===_0x4690f8[_0x58fa43]['type'])_0x4ffcae[_0x1eb7('0xb4')](),_0x369712=_0x47f322[_0x1eb7('0xa1')](_0x2ae210,_0x121aba),_0x121aba['pop'](),_0x121aba[_0x121aba['length']-0x1]++,_0x408bfb=_0x47f322['createPositionFromPath'](_0x2ae210,_0x121aba),_0x3f8217=null;else{if(_0x369712=_0x47f322['createPositionFromPath'](_0x2ae210,_0x121aba),_0x3f8217&&_0x2b6cbe(_0x3f8217,_0x4690f8[_0x58fa43][_0x1eb7('0xd1')]))_0x3f8217[_0x1eb7('0x72')]+=_0x4690f8[_0x58fa43]['item'][_0x1eb7('0x8e')];else{const _0x543d56=new _0x2bb13a(_0x4690f8[_0x58fa43][_0x1eb7('0xd1')][_0x1eb7('0x8e')],_0x4690f8[_0x58fa43]['item'][_0x1eb7('0x50')]());_0x4ffcae[0x0][_0x1eb7('0x63')](_0x543d56),_0x3f8217=_0x543d56;}_0x121aba[_0x121aba[_0x1eb7('0x10e')]-0x1]+=_0x4690f8[_0x58fa43][_0x1eb7('0xd1')]['offsetSize'],_0x408bfb=_0x47f322[_0x1eb7('0xa1')](_0x2ae210,_0x121aba);}}for(const _0x5c5349 of _0x4690f8[_0x58fa43][_0x1eb7('0x12a')])_0x2d94bf[_0x1eb7('0xbe')](_0x5c5349,{'start':_0x369712,'end':null});_0x4896ae(_0x1eb7('0xcd'),_0x58fa43,_0x369712,_0x408bfb),_0x4896ae(_0x1eb7('0x35'),_0x58fa43,_0x369712,_0x408bfb),_0x4896ae(_0x1eb7('0x21'),_0x58fa43,_0x369712,_0x408bfb),_0x4896ae('isAdded',_0x58fa43,_0x369712,_0x408bfb);for(const _0x42206d of _0x4690f8[_0x58fa43][_0x1eb7('0x43')]){_0x2d94bf[_0x1eb7('0xd7')](_0x42206d)[_0x1eb7('0xf0')]=_0x408bfb;}}for(const [_0x22e508,_0x132309]of _0x2d94bf){const _0xe0ae0a=this[_0x1eb7('0xb6')]['model'][_0x1eb7('0x4')](_0x132309[_0x1eb7('0x8')],_0x132309[_0x1eb7('0xf0')]);_0x2ae210[_0x1eb7('0x56')][_0x1eb7('0xbe')](_0x22e508,_0xe0ae0a);}return _0x5783e7[_0x1eb7('0x10')]((_0x112159,_0x308e23)=>{const _0x25ee72=_0x2ae210[_0x1eb7('0x56')][_0x1eb7('0xd7')](_0x1eb7('0xe3')+_0x112159['id']),_0x5737d4=_0x2ae210['markers'][_0x1eb7('0xd7')](_0x1eb7('0xe3')+_0x308e23['id']);return _0x25ee72[_0x1eb7('0x8')][_0x1eb7('0xc8')](_0x5737d4[_0x1eb7('0x8')])?-0x1:_0x25ee72[_0x1eb7('0x8')][_0x1eb7('0x7a')](_0x5737d4[_0x1eb7('0x8')])?0x1:_0x25ee72[_0x1eb7('0xf0')][_0x1eb7('0xc8')](_0x5737d4[_0x1eb7('0xf0')])?-0x1:_0x25ee72[_0x1eb7('0xf0')]['isAfter'](_0x5737d4[_0x1eb7('0xf0')])?0x1:_0x1eb7('0x113')===_0x112159[_0x1eb7('0x9')]?-0x1:0x1;}),{'root':_0x2ae210,'changes':_0x5783e7};function _0x4896ae(_0x141532,_0x3e100e,_0x46fcf5,_0x429a64){const _0x375559=!!_0x4690f8[_0x3e100e][_0x141532],_0x24aa14=_0x375559?_0x4690f8[_0x3e100e][_0x141532][_0x1eb7('0x88')]:null,_0x252d3e=_0x3e100e===_0x4690f8[_0x1eb7('0x10e')]-0x1,_0x2742a9=_0x4d6b22[_0x141532][0x0],_0x465799=_0x47026a[_0x1eb7('0xee')](_0x4690f8[_0x3e100e][_0x1eb7('0xd1')]);!_0x3cc630[_0x141532]&&_0x375559?_0x3cc630[_0x141532]={'start':_0x46fcf5,'tapeItem':_0x4690f8[_0x3e100e],'userId':_0x24aa14,'type':_0x141532}:_0x3cc630[_0x141532]&&!_0x375559?(_0x3cc630[_0x141532][_0x1eb7('0xf0')]=_0x46fcf5,_0x170ca3(_0x3cc630[_0x141532]),_0x3cc630[_0x141532]=null):_0x3cc630[_0x141532]&&_0x375559&&_0x3cc630[_0x141532][_0x1eb7('0x88')]!==_0x24aa14&&(_0x3cc630[_0x141532]['end']=_0x46fcf5,_0x2742a9&&_0x2742a9[_0x1eb7('0x88')]===_0x3cc630[_0x141532][_0x1eb7('0x88')]||_0x170ca3(_0x3cc630[_0x141532]),_0x3cc630[_0x141532]={'start':_0x46fcf5,'tapeItem':_0x4690f8[_0x3e100e],'userId':_0x24aa14,'type':_0x141532}),_0x3cc630[_0x141532]&&_0x465799&&(_0x1eb7('0x11f')!==_0x4690f8[_0x3e100e][_0x1eb7('0x9')]||_0x2742a9&&_0x2742a9[_0x1eb7('0x88')]===_0x24aa14||_0x4d6b22[_0x141532]['unshift']({'userId':_0x24aa14,'object':_0x4690f8[_0x3e100e][_0x1eb7('0xd1')],'change':_0x3cc630[_0x141532]}),_0x1eb7('0x125')===_0x4690f8[_0x3e100e][_0x1eb7('0x9')]&&_0x2742a9&&_0x2742a9[_0x1eb7('0xe')]===_0x4690f8[_0x3e100e][_0x1eb7('0xd1')]&&(_0x4d6b22[_0x141532][_0x1eb7('0xb4')](),_0x3cc630[_0x141532]=_0x2742a9['change'])),_0x3cc630[_0x141532]&&_0x252d3e&&(_0x3cc630[_0x141532][_0x1eb7('0xf0')]=_0x429a64,_0x170ca3(_0x3cc630[_0x141532]),_0x3cc630[_0x141532]=null);}function _0x170ca3({start:_0x47728c,end:_0x321663,tapeItem:_0x46440f,userId:_0x43a614,type:_0x1f62c9}){const _0x29b7a3=_0x46440f['item'],_0x1fa535=_0x47f322[_0x1eb7('0x83')][_0x1eb7('0x33')](_0x29b7a3)&&!_0x47f322[_0x1eb7('0x83')][_0x1eb7('0x105')](_0x29b7a3),_0xa7c6bd=_0x47728c[_0x1eb7('0x7d')]==_0x321663['parent']&&_0x321663[_0x1eb7('0x78')];if(_0x1fa535&&_0xa7c6bd)return;const _0x586bff=_0x47f322['createRange'](_0x47728c,_0x321663),_0x590a15=_0x7a52f7[_0x1eb7('0xd7')](_0x43a614),_0x13f81e=new _0x2aab27({'author':_0x590a15,'type':'isAdded'==_0x1f62c9||_0x1eb7('0x35')==_0x1f62c9?'add':'remove','data':{'isSuggestion':_0x1eb7('0x35')==_0x1f62c9||_0x1eb7('0xcd')==_0x1f62c9},'createdAt':new Date(),'rootName':_0x4cb3b1});_0x5783e7[_0x1eb7('0xb9')](_0x13f81e),_0x2ae210[_0x1eb7('0x56')][_0x1eb7('0xbe')](_0x1eb7('0xe3')+_0x13f81e['id'],_0x586bff);}function _0x2b6cbe(_0x24ee63,_0x40eb58){const _0x5f26bf=_0x24ee63[_0x1eb7('0x50')](),_0x4ce396=_0x40eb58[_0x1eb7('0x50')]();for(const _0x2713dd of _0x5f26bf){if(_0x2713dd[0x1]!==_0x40eb58[_0x1eb7('0x119')](_0x2713dd[0x0]))return!0x1;_0x4ce396['next']();}return _0x4ce396[_0x1eb7('0xb2')]()[_0x1eb7('0x114')];}}[_0x1eb7('0x11c')](){this[_0x1eb7('0xb6')][_0x1eb7('0x12d')]['for'](_0x1eb7('0xf1'))['dataToMarker']({'view':_0x1eb7('0xbb')}),this[_0x1eb7('0xb6')][_0x1eb7('0x12d')][_0x1eb7('0x4b')](_0x1eb7('0x15'))[_0x1eb7('0x48')]({'model':_0x1eb7('0xbb'),'view':_0x41ad02=>{const _0x9de775=_0x41ad02['markerName'][_0x1eb7('0xf9')](':')[0x1],_0x42cc32=this[_0x1eb7('0x3c')](_0x9de775);if(!_0x42cc32)return null;const _0x256e7f=_0x1eb7('0x113')==_0x42cc32['type']?_0x1eb7('0x54'):_0x1eb7('0x37'),_0x55b0dc=[_0x1eb7('0xb5'),'ck-suggestion-marker-'+_0x256e7f];return _0x42cc32[_0x1eb7('0x8e')][_0x1eb7('0xbd')]&&_0x55b0dc[_0x1eb7('0xb9')](_0x1eb7('0xc6')+_0x256e7f+'-new'),this[_0x1eb7('0x93')]==_0x42cc32&&_0x55b0dc['push'](_0x1eb7('0x107')),{'classes':_0x55b0dc,'attributes':{'data-change-id':_0x9de775}};}}),this[_0x1eb7('0xb6')]['conversion']['for'](_0x1eb7('0xf1'))[_0x1eb7('0x113')](_0x4b00b5=>{_0x4b00b5['on'](_0x1eb7('0x5a'),(_0x4769e3,_0xbe2384,_0x4843f3)=>{const _0x42b3e0=_0xbe2384[_0x1eb7('0xfb')][_0x1eb7('0xcf')](0x0);if(!_0x42b3e0||!_0x42b3e0['is'](_0x1eb7('0x20'),_0x1eb7('0xba')))return;if(!_0x4843f3[_0x1eb7('0x5')][_0x1eb7('0x102')](_0x42b3e0,{'attributes':[_0x1eb7('0x121'),_0x1eb7('0x6a')]}))return;const _0x286ba2=_0xbe2384['modelRange'][_0x1eb7('0x8')][_0x1eb7('0x7d')];_0x4843f3['writer'][_0x1eb7('0x74')](_0x1eb7('0x121'),_0x42b3e0[_0x1eb7('0x119')](_0x1eb7('0x121')),_0x286ba2),_0x4843f3['writer'][_0x1eb7('0x74')]('vid_end',_0x42b3e0[_0x1eb7('0x119')]('vid_end'),_0x286ba2);},{'priority':'low'});}),this[_0x1eb7('0xb6')][_0x1eb7('0x12d')][_0x1eb7('0x4b')](_0x1eb7('0xf1'))['add'](_0x2fc75a=>{_0x2fc75a['on'](_0x1eb7('0x20'),(_0x2e5f4f,_0x5eb9e3,_0x6c6391)=>{if(!_0x6c6391['consumable'][_0x1eb7('0x102')](_0x5eb9e3[_0x1eb7('0xfb')],{'attributes':[_0x1eb7('0x121'),_0x1eb7('0x6a')]}))return;if(_0x5eb9e3[_0x1eb7('0x108')]['isCollapsed'])return;const _0x1757c2=_0x5eb9e3[_0x1eb7('0x108')][_0x1eb7('0x8')][_0x1eb7('0x7d')];_0x1757c2[_0x1eb7('0x5f')]('vid_start')||_0x1757c2[_0x1eb7('0x5f')](_0x1eb7('0x79'))||(_0x6c6391[_0x1eb7('0x90')][_0x1eb7('0x74')](_0x1eb7('0x121'),_0x5eb9e3[_0x1eb7('0xfb')][_0x1eb7('0x119')](_0x1eb7('0x121')),_0x1757c2),_0x6c6391[_0x1eb7('0x90')][_0x1eb7('0x74')]('vid_end',_0x5eb9e3[_0x1eb7('0xfb')][_0x1eb7('0x119')](_0x1eb7('0x6a')),_0x1757c2));},{'priority':_0x1eb7('0x106')});}),this[_0x1eb7('0xb6')][_0x1eb7('0x12d')][_0x1eb7('0x4b')](_0x1eb7('0xf1'))[_0x1eb7('0xe4')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x1eb7('0x79'),'value':_0x4676af=>_0x4676af[_0x1eb7('0x119')](_0x1eb7('0x79'))}}),this[_0x1eb7('0xb6')][_0x1eb7('0xed')]['schema']['on'](_0x1eb7('0xaa'),(_0x489260,[,_0x56b13f])=>{['vid_start','vid_end','vid'][_0x1eb7('0xe2')](_0x56b13f)&&(_0x489260[_0x1eb7('0x69')]=!0x0,_0x489260[_0x1eb7('0x1f')]());},{'priority':_0x1eb7('0xad')}),this[_0x1eb7('0xb6')]['conversion'][_0x1eb7('0x4b')](_0x1eb7('0x64'))[_0x1eb7('0x113')](_0x37bd1b=>{_0x37bd1b['on'](_0x1eb7('0xf8'),(_0x8ca9d1,_0x4eb043,_0x59ff39)=>{if('\x20'!=_0x4eb043[_0x1eb7('0xd1')][_0x1eb7('0x8e')]||_0x4eb043[_0x1eb7('0xd1')][_0x1eb7('0xd6')][_0x1eb7('0xf4')]>0x1)return;if(!_0x59ff39['consumable'][_0x1eb7('0x102')](_0x4eb043[_0x1eb7('0xd1')],_0x8ca9d1['name']))return;const _0x47191b=_0x59ff39[_0x1eb7('0x90')],_0x958f13=_0x59ff39[_0x1eb7('0x40')][_0x1eb7('0x17')](_0x4eb043[_0x1eb7('0x6b')]);_0x47191b[_0x1eb7('0x12c')](_0x958f13,_0x47191b[_0x1eb7('0x24')](_0x1eb7('0xb')));});}),this[_0x1eb7('0xb6')][_0x1eb7('0x12d')][_0x1eb7('0x4b')](_0x1eb7('0x64'))[_0x1eb7('0x3f')]({'model':_0x1eb7('0xbb')}),this[_0x1eb7('0xb6')]['editing'][_0x1eb7('0x8c')]['on']('addMarker:revision',function(_0x2a89f6){const _0x5386a0=_0x2a89f6[_0x1eb7('0x110')][_0x1eb7('0xd7')](_0x1eb7('0x4a'));return(_0x37a5c5,_0x9f08f9,_0xe02b0a)=>{const _0x349a1e=_0x9f08f9[_0x1eb7('0xd2')][_0x1eb7('0xf9')](':')[0x1],_0x63572c=_0x5386a0[_0x1eb7('0x3c')](_0x349a1e);if(!_0x63572c)return null;const _0x4e4498=_0x1eb7('0x113')==_0x63572c['type']?_0x1eb7('0xf9'):_0x1eb7('0xe1');if(!_0xe02b0a['consumable'][_0x1eb7('0x116')](_0x9f08f9['markerRange'],_0x37a5c5[_0x1eb7('0x2f')]))return;const _0xe940c3=_0x9f08f9['markerRange'][_0x1eb7('0xd8')](),_0x2ad2c4=_0x9f08f9[_0x1eb7('0x26')][_0x1eb7('0x8')],_0x49167b=_0x2a89f6[_0x1eb7('0xed')][_0x1eb7('0x83')];let _0x3a2195=null,_0x2910b0=null,_0x217d9e=!0x1,_0x26b795=!0x1;for(const _0x3b7546 of _0xe940c3){const _0xd3d08d=_0x3b7546[_0x1eb7('0xd1')];_0x217d9e=_0x217d9e||_0x49167b[_0x1eb7('0x1b')](_0xd3d08d);const _0x38256e=_0xe02b0a[_0x1eb7('0x40')][_0x1eb7('0xdd')](_0xd3d08d);if(_0x38256e&&_0x38256e[_0x1eb7('0x39')](_0x1eb7('0xde')))return;'elementEnd'==_0x3b7546[_0x1eb7('0x9')]&&(_0x49167b[_0x1eb7('0x33')](_0xd3d08d)&&!_0x49167b[_0x1eb7('0x105')](_0xd3d08d)&&(_0xd3d08d['nextSibling']||_0x2ad2c4[_0x1eb7('0x12e')]?_0x3a2195&&_0x3a2195[_0x1eb7('0xd6')]==_0xd3d08d||(_0x3a2195=_0xd3d08d,_0x39e0c9(_0x3b7546[_0x1eb7('0x11')]),_0x26b795=!0x0):_0x2910b0=_0x2910b0||_0x3b7546['previousPosition']));}function _0x39e0c9(_0x5ea56e){const _0xd75b9b=_0xe02b0a[_0x1eb7('0x90')][_0x1eb7('0xdb')](_0x1eb7('0xb'),{'class':_0x1eb7('0xc6')+_0x4e4498}),_0x185295=_0xe02b0a['mapper'][_0x1eb7('0x129')](_0x5ea56e);_0x63572c[_0x1eb7('0x8e')][_0x1eb7('0xbd')]&&_0xe02b0a[_0x1eb7('0x90')][_0x1eb7('0x18')](_0x1eb7('0xc6')+_0x4e4498+_0x1eb7('0x73'),_0xd75b9b),_0x5386a0[_0x1eb7('0x93')]==_0x63572c&&_0xe02b0a[_0x1eb7('0x90')][_0x1eb7('0x18')](_0x1eb7('0x107'),_0xd75b9b),_0xe02b0a['writer']['insert'](_0x185295,_0xd75b9b),_0xe02b0a[_0x1eb7('0x40')]['bindElementToMarker'](_0xd75b9b,_0x9f08f9['markerName']);}_0x217d9e||_0x26b795||!_0x2910b0||_0x39e0c9(_0x2910b0);};}(this['editor']),{'priority':_0x1eb7('0x51')}),this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x8c')]['on']('removeMarker:revision',(_0x10c591,_0x9bd281,_0x4d73df)=>{const _0x39cd8e=_0x4d73df['mapper'][_0x1eb7('0x115')](_0x9bd281[_0x1eb7('0xd2')]);if(_0x39cd8e)for(const _0x54d822 of _0x39cd8e)(_0x54d822[_0x1eb7('0x7c')]('ck-suggestion-marker-split')||_0x54d822[_0x1eb7('0x7c')](_0x1eb7('0x123')))&&(_0x4d73df[_0x1eb7('0x40')][_0x1eb7('0x103')](_0x54d822,_0x9bd281[_0x1eb7('0xd2')]),_0x4d73df[_0x1eb7('0x90')]['remove'](_0x54d822));},{'priority':_0x1eb7('0x51')}),this[_0x1eb7('0xb6')][_0x1eb7('0x65')]['downcastDispatcher']['on'](_0x1eb7('0xc3'),(_0xd73dcb,_0x150d7c,_0x576974)=>{const _0x30e5fe=_0x150d7c[_0x1eb7('0xd2')][_0x1eb7('0xf9')](':')[0x1],_0x438940=this[_0x1eb7('0x3c')](_0x30e5fe);if(!_0x438940)return null;const _0x12f22f=_0x1eb7('0x113')==_0x438940[_0x1eb7('0x9')]?_0x1eb7('0xf9'):'merge';if(_0x576974[_0x1eb7('0x5')][_0x1eb7('0x116')](_0x150d7c['markerRange'],_0xd73dcb['name']))for(const _0x2bf3d8 of _0x150d7c[_0x1eb7('0x26')][_0x1eb7('0x109')]()){if(!_0x2bf3d8['is'](_0x1eb7('0x20'),_0x1eb7('0x76')))continue;const _0x461a89=_0x576974[_0x1eb7('0x90')]['createUIElement'](_0x1eb7('0xb'),{'class':'ck-suggestion-marker-'+_0x12f22f}),_0x30793f=_0x576974[_0x1eb7('0x40')][_0x1eb7('0x129')](this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x1')](_0x2bf3d8));_0x438940[_0x1eb7('0x8e')][_0x1eb7('0xbd')]&&_0x576974[_0x1eb7('0x90')][_0x1eb7('0x18')](_0x1eb7('0xc6')+_0x12f22f+'-new',_0x461a89),this[_0x1eb7('0x93')]==_0x438940&&_0x576974[_0x1eb7('0x90')][_0x1eb7('0x18')](_0x1eb7('0x107'),_0x461a89),_0x576974[_0x1eb7('0x90')][_0x1eb7('0x85')](_0x30793f,_0x461a89),_0x576974[_0x1eb7('0x40')][_0x1eb7('0x9b')](_0x461a89,_0x150d7c['markerName']);}},{'priority':_0x1eb7('0x51')}),this[_0x1eb7('0xb6')][_0x1eb7('0xed')]['document']['on'](_0x1eb7('0x4c'),()=>{this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')]['change'](_0x3661fc=>{for(const _0x3a3e01 of this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x118')][_0x1eb7('0xfd')]()){const _0x4f2460=this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x118')][_0x1eb7('0xaf')](_0x3a3e01),_0x424f9e=this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')][_0x1eb7('0x118')]['getRoot'](_0x3a3e01);if(_0x424f9e){const _0x68f464=_0x4f2460[_0x1eb7('0x119')](_0x1eb7('0x11a'));if(_0x3661fc[_0x1eb7('0xe9')](_0x1eb7('0xd9'),_0x424f9e),_0x3661fc[_0x1eb7('0x2e')](_0x1eb7('0xd'),_0x424f9e),_0x3661fc['removeClass'](_0x1eb7('0x25'),_0x424f9e),_0x3661fc['removeClass'](_0x1eb7('0x87'),_0x424f9e),_0x68f464){const _0x47f057=this['_getChangeFromId'](_0x68f464);if(!_0x47f057)return null;_0x3661fc['setAttribute']('data-change-id',_0x68f464,_0x424f9e),_0x3661fc[_0x1eb7('0x18')](_0x1eb7('0xcc')+_0x47f057[_0x1eb7('0x9')],_0x424f9e),this[_0x1eb7('0x93')]==_0x47f057&&_0x3661fc[_0x1eb7('0x18')](_0x1eb7('0x87'),_0x424f9e);}}}});}),this['editor'][_0x1eb7('0x12d')][_0x1eb7('0x4b')](_0x1eb7('0xf1'))['dataToMarker']({'view':_0x1eb7('0x12'),'model':_0x4dfeac=>_0x1eb7('0x100')+_0x4dfeac,'converterPriority':_0x1eb7('0xad')}),this[_0x1eb7('0xb6')][_0x1eb7('0x12d')]['for']('upcast')['dataToMarker']({'view':_0x1eb7('0x126'),'model':_0x5b8923=>_0x1eb7('0x5b')+_0x5b8923,'converterPriority':_0x1eb7('0xad')}),this[_0x1eb7('0xb6')][_0x1eb7('0x12d')][_0x1eb7('0x4b')](_0x1eb7('0x64'))[_0x1eb7('0x3f')]({'model':_0x1eb7('0x95'),'view':_0x3a2f83=>({'name':_0x1eb7('0x94')+_0x3a2f83,'group':_0x1eb7('0x95')}),'converterPriority':_0x1eb7('0xad')}),this['editor'][_0x1eb7('0x12d')][_0x1eb7('0x4b')](_0x1eb7('0x15'))[_0x1eb7('0x48')]({'model':'revision-suggestion','view':_0x1e8f9e=>{const _0x11add3=_0x1e8f9e[_0x1eb7('0xd2')][_0x1eb7('0xf9')](':')[0x1];return _0x1eb7('0x54')!=_0x11add3&&_0x1eb7('0x37')!=_0x11add3?null:{'classes':['ck-suggestion-preview-marker',_0x1eb7('0x66')+_0x11add3]};}}),this[_0x1eb7('0xb6')]['editing'][_0x1eb7('0x8c')]['on'](_0x1eb7('0x6c'),et(this[_0x1eb7('0xb6')],'merge'),{'priority':_0x1eb7('0x51')}),this[_0x1eb7('0xb6')]['editing'][_0x1eb7('0x8c')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x1eb7('0xb6')],_0x1eb7('0xf9')),{'priority':_0x1eb7('0x51')}),this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x8c')]['on'](_0x1eb7('0xff'),(_0x3c1759,_0x146f56,_0xed0b39)=>{const _0x15ac6b=_0xed0b39[_0x1eb7('0x40')][_0x1eb7('0x115')](_0x146f56[_0x1eb7('0xd2')]);if(_0x15ac6b)for(const _0x61b2f4 of _0x15ac6b)_0x61b2f4['is'](_0x1eb7('0xd5'))&&(_0xed0b39[_0x1eb7('0x40')][_0x1eb7('0x103')](_0x61b2f4,_0x146f56[_0x1eb7('0xd2')]),_0xed0b39[_0x1eb7('0x90')][_0x1eb7('0x6')](_0x61b2f4));},{'priority':_0x1eb7('0x51')});}[_0x1eb7('0x3c')](_0x57b006){return this[_0x1eb7('0xf')]['get'](_0x57b006);}[_0x1eb7('0x75')](_0x31226d){return this[_0x1eb7('0x46')]&&this[_0x1eb7('0x46')][_0x1eb7('0xf2')](),this[_0x1eb7('0x46')]=new _0x790867(this[_0x1eb7('0xb6')]['locale'],_0x31226d),this[_0x1eb7('0x46')];}[_0x1eb7('0x23')](){this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x118')][_0x1eb7('0x9c')][_0x1eb7('0x2c')](_0x1eb7('0xbb')),this['on'](_0x1eb7('0x99'),(_0x35fd2e,_0x38acea,_0x557be1,_0x3fc0ae)=>{_0x3fc0ae&&this[_0x1eb7('0x10c')]['remove'](_0x3fc0ae),_0x557be1&&(this['_balloon'][_0x1eb7('0x113')]({'view':_0x557be1,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x47e5f9=this[_0x1eb7('0xb6')][_0x1eb7('0x65')],_0x38bfa9=this[_0x1eb7('0x3c')](_0x557be1[_0x1eb7('0xab')]);let _0x187f13;if(_0x38bfa9[_0x1eb7('0x8e')]['isOnRoot']){const _0x1cea7a=_0x47e5f9[_0x1eb7('0x117')]['getDomRoot'](_0x38bfa9[_0x1eb7('0x44')]);_0x187f13=Array[_0x1eb7('0xea')](_0x1cea7a[_0x1eb7('0x0')]());}else{const _0x47ef8f=this['editor']['model'][_0x1eb7('0x56')]['get'](_0x1eb7('0xe3')+_0x557be1['changeId']);_0x187f13=Array['from'](_0x47e5f9[_0x1eb7('0x40')]['markerNameToElements'](_0x47ef8f[_0x1eb7('0x2f')]))[_0x1eb7('0x12b')](_0x4e58c4=>_0x47e5f9['view'][_0x1eb7('0xf5')]['mapViewToDom'](_0x4e58c4))[_0x1eb7('0x12b')](_0x43a063=>Array[_0x1eb7('0xea')](_0x43a063[_0x1eb7('0x0')]()))[_0x1eb7('0xae')]();}if(!this[_0x1eb7('0x2d')])return _0x187f13[0x0];return _0x187f13[_0x1eb7('0xa9')](_0x9f93b5=>_0x9f93b5['top']-0x3<=this[_0x1eb7('0x2d')]['y']&&_0x9f93b5[_0x1eb7('0xa')]+0x3>=this['_activeViewTarget']['y']&&_0x9f93b5[_0x1eb7('0x5c')]-0x3<=this[_0x1eb7('0x2d')]['x']&&_0x9f93b5[_0x1eb7('0x67')]+0x3>=this[_0x1eb7('0x2d')]['x'])||_0x187f13[0x0];}}}),this[_0x1eb7('0x10c')][_0x1eb7('0xc4')](_0x1eb7('0x122')));}),this['on'](_0x1eb7('0x3a'),(_0x22c322,_0x280d71,_0xa5867b,_0x144a21)=>{this['activeView']=_0xa5867b?this[_0x1eb7('0x75')](_0xa5867b):null,this['editor']['model'][_0x1eb7('0x4c')](()=>{const _0x1999ed=this['editor'][_0x1eb7('0x65')];_0x144a21&&(_0x144a21[_0x1eb7('0x8e')][_0x1eb7('0x7b')]?_0x1999ed[_0x1eb7('0x117')]['change'](_0x24603f=>{_0x24603f[_0x1eb7('0x2e')]('ck-revision-history-root--active',_0x1999ed[_0x1eb7('0x117')][_0x1eb7('0x118')]['getRoot'](_0x144a21[_0x1eb7('0x44')]));}):_0x1999ed[_0x1eb7('0x4e')](_0x1eb7('0xe3')+_0x144a21['id'])),_0xa5867b&&(_0xa5867b['data'][_0x1eb7('0x7b')]?_0x1999ed[_0x1eb7('0x117')][_0x1eb7('0x4c')](_0x545771=>{_0x545771[_0x1eb7('0x18')](_0x1eb7('0x87'),_0x1999ed[_0x1eb7('0x117')]['document'][_0x1eb7('0xaf')](_0xa5867b[_0x1eb7('0x44')]));}):_0x1999ed['reconvertMarker'](_0x1eb7('0xe3')+_0xa5867b['id']));});}),this[_0x1eb7('0x11d')](this[_0x1eb7('0xb6')][_0x1eb7('0x65')]['view']['document'],_0x1eb7('0xb7'),(_0x480bcc,_0x36de42)=>{if(this[_0x1eb7('0x93')])return;const _0x2936c9=this[_0x1eb7('0x127')](_0x36de42[_0x1eb7('0x34')]),_0x4146e5=this[_0x1eb7('0xf')][_0x1eb7('0xd7')](_0x2936c9);_0x4146e5?(this['_activeViewTarget']={'x':_0x36de42['domEvent']['x'],'y':_0x36de42[_0x1eb7('0xd0')]['y']},this[_0x1eb7('0x128')]=this[_0x1eb7('0x75')](_0x4146e5)):(this[_0x1eb7('0x2d')]=null,this[_0x1eb7('0x128')]=null);}),this[_0x1eb7('0x11d')](this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')][_0x1eb7('0x118')],'mousedown',(_0x3506f0,_0x117f76)=>{const _0x26a375=this[_0x1eb7('0x127')](_0x117f76[_0x1eb7('0x34')]),_0x124c33=this[_0x1eb7('0xf')][_0x1eb7('0xd7')](_0x26a375);_0x124c33?(this['_activeViewTarget']={'x':_0x117f76[_0x1eb7('0xd0')]['x'],'y':_0x117f76[_0x1eb7('0xd0')]['y']},_0x124c33===this['activeChange']?this['_balloon'][_0x1eb7('0xc7')]():this[_0x1eb7('0x93')]=_0x124c33):(this[_0x1eb7('0x2d')]=null,this[_0x1eb7('0x93')]=null);});}[_0x1eb7('0x127')](_0x1ac0ef){do{const _0x5efa95=_0x1ac0ef[_0x1eb7('0x119')](_0x1eb7('0xd9'));if(_0x5efa95)return _0x5efa95;_0x1ac0ef=_0x1ac0ef[_0x1eb7('0xd6')];}while(_0x1ac0ef);return null;}[_0x1eb7('0x55')](){this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x4c')](_0x5b4347=>{for(const _0x503120 of this['editor'][_0x1eb7('0xed')]['markers'])_0x5b4347[_0x1eb7('0x49')](_0x503120);});}}function et(_0x1512e8,_0x5ad39e){return(_0xfba98a,_0x2dc5b0,_0xb537a9)=>{if(!_0xb537a9[_0x1eb7('0x5')]['test'](_0x2dc5b0[_0x1eb7('0x26')],_0xfba98a[_0x1eb7('0x2f')]))return;const _0x9725c1=_0x2dc5b0['markerRange'][_0x1eb7('0xd8')](),_0x4c6e44=_0x2dc5b0['markerRange'][_0x1eb7('0x8')],_0x3566b1=_0x1512e8[_0x1eb7('0xed')]['schema'];let _0x5278ff=null,_0x45b189=null,_0x249ec4=!0x1,_0x181423=!0x1;for(const _0x2e4b4d of _0x9725c1){const _0x595b8e=_0x2e4b4d[_0x1eb7('0xd1')];_0x249ec4=_0x249ec4||_0x3566b1[_0x1eb7('0x1b')](_0x595b8e);const _0x420684=_0xb537a9[_0x1eb7('0x40')]['toViewElement'](_0x595b8e);if(_0x420684&&_0x420684[_0x1eb7('0x39')]('addHighlight'))return;'elementEnd'==_0x2e4b4d[_0x1eb7('0x9')]&&(_0x3566b1[_0x1eb7('0x33')](_0x595b8e)&&!_0x3566b1[_0x1eb7('0x105')](_0x595b8e)&&(_0x595b8e[_0x1eb7('0x11b')]||_0x4c6e44[_0x1eb7('0x12e')]?_0x5278ff&&_0x5278ff[_0x1eb7('0xd6')]==_0x595b8e||(_0x5278ff=_0x595b8e,_0x4e2fe4(_0x2e4b4d[_0x1eb7('0x11')]),_0x181423=!0x0):_0x45b189=_0x45b189||_0x2e4b4d[_0x1eb7('0x11')]));}function _0x4e2fe4(_0x14c83d){const _0x5ec501=_0xb537a9[_0x1eb7('0x40')][_0x1eb7('0x129')](_0x14c83d),_0x124437=_0xb537a9[_0x1eb7('0x90')][_0x1eb7('0xdb')](_0x1eb7('0xb'),{'class':'ck-suggestion-preview-marker-'+_0x5ad39e});_0xb537a9['writer'][_0x1eb7('0x85')](_0x5ec501,_0x124437),_0xb537a9[_0x1eb7('0x40')][_0x1eb7('0x9b')](_0x124437,_0x2dc5b0[_0x1eb7('0xd2')]);}_0x249ec4||_0x181423||!_0x45b189||_0x4e2fe4(_0x45b189);};}export class RestoreRevisionCommand extends _0x1b9488{constructor(_0x5df9da){super(_0x5df9da);const _0x563f9d=_0x5df9da['plugins']['get'](d);this[_0x1eb7('0xd3')]=!0x1,this[_0x1eb7('0x11d')](_0x563f9d,_0x1eb7('0x101'),()=>this[_0x1eb7('0x6f')]()),this[_0x1eb7('0x11d')](_0x563f9d,_0x1eb7('0x104'),()=>this[_0x1eb7('0x6f')]());}[_0x1eb7('0xc0')](){const _0x5537ef=this[_0x1eb7('0xb6')],_0x526eae=_0x5537ef[_0x1eb7('0x110')][_0x1eb7('0xd7')](d),_0x34a43a=_0x526eae[_0x1eb7('0x36')]?_0x526eae[_0x1eb7('0x10b')][_0x1eb7('0x10f')]:null;_0x5537ef[_0x1eb7('0x30')][_0x1eb7('0xd7')](_0x1eb7('0x5e'))[_0x1eb7('0x3d')](_0x34a43a);}[_0x1eb7('0x6f')](){const {isReady:_0x50fe10,isEnabled:_0x47f37d}=this[_0x1eb7('0xb6')]['plugins'][_0x1eb7('0xd7')](d);this['isEnabled']=_0x50fe10&&_0x47f37d;}}export class ShowChangeCommand extends _0x1b9488{constructor(_0x8d21a5,{direction:_0x1aeec7}){super(_0x8d21a5);const _0x568c70=_0x8d21a5[_0x1eb7('0x110')][_0x1eb7('0xd7')](d);this['affectsData']=!0x1,this[_0x1eb7('0x1d')]=_0x1eb7('0xa5')===_0x1aeec7?0x1:-0x1,this['listenTo'](_0x568c70,_0x1eb7('0x101'),()=>this[_0x1eb7('0x6f')]()),this['listenTo'](_0x568c70,'change:isEnabled',()=>this[_0x1eb7('0x6f')]());}[_0x1eb7('0xc0')](){const _0x31d272=this['editor'],_0x310e75=_0x31d272[_0x1eb7('0x110')][_0x1eb7('0xd7')](d),{isNavigationMode:_0x332077,currentChangeNumber:_0x41d5e4}=_0x310e75;let _0x503134;if(_0x310e75[_0x1eb7('0x93')]=_0x332077?_0x310e75[_0x1eb7('0x10b')][_0x1eb7('0x77')]['get'](_0x41d5e4+this[_0x1eb7('0x1d')]):_0x310e75[_0x1eb7('0x10b')]['changes'][_0x1eb7('0x38')],_0x310e75[_0x1eb7('0x93')]['data'][_0x1eb7('0x7b')])_0x503134=_0x31d272[_0x1eb7('0x65')][_0x1eb7('0x117')][_0x1eb7('0xfc')](_0x310e75[_0x1eb7('0x93')][_0x1eb7('0x44')]);else{const _0x501f4a=_0x31d272[_0x1eb7('0xed')][_0x1eb7('0x56')][_0x1eb7('0xd7')](_0x1eb7('0xe3')+_0x310e75['activeChange']['id']);_0x503134=_0x549ae7(_0x31d272[_0x1eb7('0x65')],_0x501f4a);}_0x31f9c3({'target':_0x503134,'viewportOffset':0x28});}[_0x1eb7('0x6f')](){const {isNavigationMode:_0x411abc,currentChangeNumber:_0x45cc3c,numberOfChanges:_0x21fa8f,isReady:_0x514188,isEnabled:_0x3154fe}=this['editor'][_0x1eb7('0x110')]['get'](d);this[_0x1eb7('0x12f')]=!!(_0x3154fe&&_0x514188&&_0x21fa8f)&&(!_0x411abc||(0x1===this[_0x1eb7('0x1d')]?_0x45cc3c<_0x21fa8f-0x1:_0x45cc3c>0x0));}}
|
|
23
|
+
const _0x28d3=['change:isEnabled','push','plugins','_data','consumable','_markMarkers','suggestion','change:activeView','getRootNames','delete','bottom','forEach','_joinTapes','dataDowncast','resolve','_markMismatchedRemovedTags','_activeViewTarget','observeMarkers','editingDowncast','bind','_makeModelFromViewString','getAttributes','revision:','toViewPosition','ck-revision-history-root-add','revision-comment:','side','start','nextPosition','marked','_balloon','toData','roots','createRange','return','affectsData','getIndex','isReady','from','markerToData','item','all','writer','commands','_changeIdToChange','name','removeMarker:revision-suggestion','detachRoot','mousedown','addRevisionData','softBreak','map','slice','indexOf','viewItem','isOnRoot','insert','showNextChange','isAfter','getRoot','_removeRevisionMarkers','isRemoved','shift','_changeView','add','_setConversion','_fixObsoleteTags','element','isEqual','changeId','values','getRevisionRootsAttributes','default','restoreRevision','markerRange','ck-editor__editable__overlay','then','removeAttribute','insertions','_getRevisionsRange','editing','startsWith','uiElement','type','createRevision','set','data-change-id','_sortAndFilterDiffChanges','markerNameToElements','get','ck-suggestion-marker-split','find','comment','vid_start','markersStart','concat','getAttribute','code','toModel','_getDiff','remove','isRemoveSuggestion','enableReadOnlyMode','parse','deletions','model','activeChange','clear','isCollapsed','_processTape','elementEnd','_findChangeIdFromDomTarget','attribute:vid','markers','previousPosition','selection','restoreRevisionCallback','_setDistance','RevisionViewer','consume','_appendChild','dataToMarker','ck-suggestion-marker','revision-suggestion','getClientRects','removeMarker','domConverter','_initInteractions','keys','ck-revision-history-root-','mapper','span','_getViewObj','isBlock','_markSuggestions','attachChange','createPositionBefore','ck-suggestion-marker--active','backward','end','processor','revision-viewer','target','low','hasClass','getWalker','attributesBefore','parent','unbindElementFromMarkerName','right','_getChangeFromId','_revisions','level','removeMarker:revision','rootName','catch','_step','string','ck-suggestion-marker-merge','view','activeView','_markInsertions','_cleanMarkers','_getViewForChange','data','getChild','distance','maxOffset','data-revision-','unshift','addMarker:revision-suggestion:deletion','useFillerType','change','collaboration.channelId','test','insertion','left','listenTo','for','isAtStart','change:activeChange','checkAttribute','changes','addHighlight','revision-start','range','highest','init','splice','pairId','isAtEnd','removeClass','modelRange','elementToAttribute','markersEnd','change:isReady','isIncorrect','_setChanges','domEvent','oldRevisionId','getRevision','upcast','ck-suggestion-preview-marker-','isContent','diff','has','editor','children','refresh','reconvertMarker','attributes','_refreshStartEndIndex','addClass','isBefore','revisionHistory','addMarker:revision-suggestion:insertion','high','createPositionFromPath','downcastDispatcher','-new','newRevisionId','sort','startIndex','userId','document','merge','conversion','_makeModelFromTape','_cleanUp','nextSibling','forward','isSuggestion','adapter','currentChangeNumber','schema','isEnabled','createUIElement','attributesAfter','abs','stop','toViewElement','_update','markerName','isAdded','index','revision','length','ck-revision-history-root-remove','bindElementToMarker','text','setAttribute','findIndex','getDomRoot','filter','split','isLimit','_threeWayMerge','config','deletion','repository','flat','RevisionsRepository','markerToHighlight','vid','_makeTape','loadRevisionData','endIndex','_removeUnsupportedChanges','nodeAfter','hasAttribute','forceDisabled','ck-suggestion-marker-','isAddSuggestion','ck-revision-history-root--active','diffData','isAttached','elementStart','top','error','WidgetToolbarRepository','requires','vid_end','getCustomProperty'];(function(_0x29a3be,_0x28d3c6){const _0x437941=function(_0x336734){while(--_0x336734){_0x29a3be['push'](_0x29a3be['shift']());}};_0x437941(++_0x28d3c6);}(_0x28d3,0x113));const _0x4379=function(_0x29a3be,_0x28d3c6){_0x29a3be=_0x29a3be-0x0;let _0x437941=_0x28d3[_0x29a3be];return _0x437941;};import{Plugin as _0xe575c4,Command as _0xa6b9bf}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x4c40f1}from'ckeditor5/src/utils';import{ContextualBalloon as _0x60829a}from'ckeditor5/src/ui';import{DocumentFragment as _0x25cde0,Element as _0x528850,Text as _0x3160ef,ViewDocumentFragment as _0x3fe579,ViewText as _0x4c3b47,ViewElement as _0x203973,ViewContainerElement as _0x3a951d,ViewAttributeElement as _0x52ded2,ViewEmptyElement as _0x48a6fc,ViewRawElement as _0x16a67d,ViewUIElement as _0x385a6a}from'ckeditor5/src/engine';import{Users as _0x10c1ce,getMarkerDomElement as _0x42256b}from'ckeditor5-collaboration/src/collaboration-core';import _0x531d7c from'./ui/revisionviewer/changedetailsview';import _0x2bc5f3 from'./revisionsrepository';import _0x352d9d from'./changeitem';import{default as _0x21aaeb}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4815aa}from'lodash-es';const tt={'c':_0x3a951d,'a':_0x52ded2,'e':_0x48a6fc,'r':_0x16a67d,'u':_0x385a6a};export default class d extends _0xe575c4{static get['pluginName'](){return _0x4379('0x7e');}static get[_0x4379('0x5')](){return[_0x10c1ce,_0x60829a,_0x2bc5f3];}constructor(_0x17095f){super(_0x17095f),this['repository']=this[_0x4379('0xd6')][_0x4379('0xa')][_0x4379('0x61')](_0x4379('0x10d')),this[_0x4379('0x5d')](_0x4379('0x72'),null),this[_0x4379('0x5d')](_0x4379('0xa8'),null),this[_0x4379('0x18')]=null,this['set'](_0x4379('0xd4'),null),this[_0x4379('0x5d')](_0x4379('0x2d'),!0x1),this[_0x4379('0x5d')](_0x4379('0xf3'),!0x0),this['on']('change:isEnabled',(_0x48caba,_0x251458,_0x386f36)=>{this[_0x4379('0x72')]=null,this['activeView']=null,this[_0x4379('0xd6')][_0x4379('0x58')]['view'][_0x4379('0xb4')](_0x66937=>{for(const _0x1dca65 of this[_0x4379('0xd6')][_0x4379('0x58')][_0x4379('0xa7')][_0x4379('0xe8')][_0x4379('0x28')])_0x386f36?_0x66937['removeClass'](_0x4379('0x53'),_0x1dca65):_0x66937[_0x4379('0xdc')](_0x4379('0x53'),_0x1dca65);});}),this[_0x4379('0x1b')]('isNavigationMode')['to'](this,_0x4379('0x72'),_0x459d36=>null!==_0x459d36),this[_0x4379('0x1b')](_0x4379('0xf1'))['to'](this,_0x4379('0x2d'),this,_0x4379('0xd4'),this,_0x4379('0x72'),(_0x44b200,_0x4c0e3c,_0x904b75)=>_0x44b200&&_0x904b75?_0x4c0e3c['changes'][_0x4379('0x2c')](_0x904b75):0x0),this[_0x4379('0x1b')]('numberOfChanges')['to'](this,'isReady',this,_0x4379('0xd4'),(_0x2f23ec,_0x588e65)=>_0x2f23ec?_0x588e65[_0x4379('0xbe')][_0x4379('0xfe')]:0x0),this[_0x4379('0x47')]=null,this[_0x4379('0x34')]=new Map(),this[_0x4379('0xf0')]=null,this['_balloon']=this[_0x4379('0xd6')][_0x4379('0xa')]['get'](_0x60829a);}[_0x4379('0xc3')](){const _0x49c219=this[_0x4379('0xd6')],_0x1568c5=new ShowChangeCommand(_0x49c219,{'direction':_0x4379('0x92')}),_0x1e94e4=new ShowChangeCommand(_0x49c219,{'direction':_0x4379('0xee')});(_0x49c219['commands'][_0x4379('0x48')]('showPreviousChange',_0x1568c5),_0x49c219[_0x4379('0x33')][_0x4379('0x48')](_0x4379('0x41'),_0x1e94e4),_0x49c219['commands'][_0x4379('0x48')](_0x4379('0x51'),new RestoreRevisionCommand(_0x49c219)),this['on']('change:numberOfChanges',()=>{_0x1568c5['refresh'](),_0x1e94e4['refresh']();}),this[_0x4379('0x49')](),this[_0x4379('0x87')](),_0x49c219[_0x4379('0x6e')](_0x4379('0x95')),_0x49c219[_0x4379('0xa')][_0x4379('0xd5')]('WidgetToolbarRepository'))&&_0x49c219['plugins'][_0x4379('0x61')](_0x4379('0x4'))[_0x4379('0x116')](_0x4379('0x95'));}async['getRevisionData'](_0x46c11e){await this['loadRevisionData'](_0x46c11e);const _0x30ea41={};for(const _0x4dd2b5 in _0x46c11e[_0x4379('0x11a')]){if(_0x46c11e[_0x4379('0x11a')][_0x4dd2b5]['attachChange']&&!_0x46c11e[_0x4379('0x11a')][_0x4dd2b5][_0x4379('0x8f')][_0x4379('0x0')])continue;const _0x3b11b3=this[_0x4379('0x44')](JSON['parse'](_0x46c11e[_0x4379('0x11a')][_0x4dd2b5]['insertions'])),_0x3232b7=this[_0x4379('0xd6')][_0x4379('0x58')][_0x4379('0xa7')][_0x4379('0xe8')],_0x512ea1=new _0x3fe579(_0x3232b7,_0x3b11b3[_0x4379('0x3b')](_0x364e83=>this[_0x4379('0x8c')](_0x364e83)));this[_0x4379('0xd6')][_0x4379('0xac')]['processor'][_0x4379('0xb3')](_0x4379('0x25')),_0x30ea41[_0x4dd2b5]=this[_0x4379('0xd6')]['data'][_0x4379('0x94')][_0x4379('0x27')](_0x512ea1),this[_0x4379('0xd6')][_0x4379('0xac')]['processor']['useFillerType'](_0x4379('0x50'));}return _0x30ea41;}async[_0x4379('0x4f')](_0x58b8ad){await this[_0x4379('0x111')](_0x58b8ad);const _0x360826={};for(const _0x19a15b in _0x58b8ad['diffData'])_0x58b8ad[_0x4379('0x11a')][_0x19a15b][_0x4379('0x8f')]&&!_0x58b8ad[_0x4379('0x11a')][_0x19a15b][_0x4379('0x8f')][_0x4379('0x0')]||(_0x360826[_0x19a15b]=_0x58b8ad['diffData'][_0x19a15b][_0x4379('0xf5')]||{});return _0x360826;}['_removeRevisionMarkers'](_0x4520df){return(_0x4520df=_0x4520df[_0x4379('0x105')](_0x3f95fb=>!_0x3f95fb[_0x4379('0x35')]||_0x4379('0xc0')!==_0x3f95fb[_0x4379('0x35')]&&'revision-end'!==_0x3f95fb[_0x4379('0x35')]))[_0x4379('0x13')](_0x10b10d=>{_0x4379('0xa5')!=typeof _0x10b10d&&(_0x10b10d['children']=this[_0x4379('0x44')](_0x10b10d['children']),_0x10b10d[_0x4379('0xda')]=_0x10b10d[_0x4379('0xda')][_0x4379('0x105')](_0x49aea4=>!_0x49aea4[0x0]['startsWith'](_0x4379('0xb0'))));}),_0x4520df;}async['compare'](_0x1adfc3,_0x5e39da,_0x3e67f6=!0x1){if(!this[_0x4379('0xf3')])return;const _0x1ee71f=this['diff'],_0x39905a=this[_0x4379('0x10b')],_0x26c2bc=_0x4379('0xa5')==typeof _0x1adfc3?_0x39905a[_0x4379('0xd0')](_0x1adfc3):_0x1adfc3,_0x4fd2a5='string'==typeof _0x5e39da?_0x39905a[_0x4379('0xd0')](_0x5e39da):_0x5e39da,_0x1ec5ce=_0x26c2bc['id'],_0x46d05a=_0x4fd2a5?_0x4fd2a5['id']:null;if(!_0x3e67f6&&this[_0x4379('0xd4')]&&this[_0x4379('0xd4')][_0x4379('0xe4')]===_0x1ec5ce&&this[_0x4379('0xd4')][_0x4379('0xcf')]===_0x46d05a)return Promise[_0x4379('0x16')]();this[_0x4379('0x2d')]=!0x1,this[_0x4379('0xa8')]=null,this[_0x4379('0x72')]=null,this['diff']=new _0x21aaeb(_0x1ec5ce,_0x46d05a);const _0x300fa1=this['_getRevisionsRange'](_0x26c2bc,_0x4fd2a5,!0x0)['map'](_0x1fdf6a=>this[_0x4379('0x111')](_0x1fdf6a));return _0x300fa1[_0x4379('0x9')](new Promise(_0x428a92=>{setTimeout(_0x428a92,0x14);})),Promise[_0x4379('0x31')](_0x300fa1)[_0x4379('0x54')](()=>{if(!this['isEnabled'])return;this[_0x4379('0xec')]();const _0x14d23b=this[_0x4379('0x6b')](_0x1ec5ce,_0x46d05a);for(const _0x2da8a4 of _0x14d23b[_0x4379('0xbe')])this[_0x4379('0x34')][_0x4379('0x5d')](_0x2da8a4['id'],_0x2da8a4);this['editor'][_0x4379('0x71')]['enqueueChange']({'isUndoable':!0x1},_0x30aa26=>{for(const _0x36afc9 of this[_0x4379('0xd6')]['model'][_0x4379('0xe8')][_0x4379('0x10')]())_0x30aa26[_0x4379('0x37')](_0x36afc9);for(const _0x5e9d5d of Object[_0x4379('0x88')](_0x14d23b[_0x4379('0x71')])){const _0x208d67=_0x30aa26['addRoot'](_0x5e9d5d);for(const _0x1034db of Object[_0x4379('0x88')](_0x14d23b[_0x4379('0xda')][_0x5e9d5d]))_0x30aa26['setAttribute'](_0x1034db,_0x14d23b[_0x4379('0xda')][_0x5e9d5d][_0x1034db],_0x208d67);_0x30aa26[_0x4379('0x40')](_0x14d23b['model'][_0x5e9d5d],_0x208d67,0x0);}}),this[_0x4379('0xd4')][_0x4379('0xcd')](this[_0x4379('0x5f')](_0x14d23b[_0x4379('0xbe')])),this['isReady']=!0x0;})[_0x4379('0xa3')](_0x436a5f=>{console[_0x4379('0x3')](_0x436a5f),this[_0x4379('0xec')](),_0x1ee71f&&(this['diff']=_0x1ee71f),this[_0x4379('0x2d')]=!0x0;});}[_0x4379('0x39')](_0x3c693c,_0x1eb7da){const _0x1f8aec=this[_0x4379('0x10b')][_0x4379('0x5c')](_0x3c693c);return _0x1f8aec['on'](_0x4379('0xf9'),(_0x280859,_0x462c6d,_0x33921c)=>_0x1eb7da(_0x462c6d,_0x33921c,_0x1f8aec)),this[_0x4379('0x10b')]['addRevision'](_0x1f8aec),_0x1f8aec;}[_0x4379('0x111')](_0x43c5d9){if(!_0x43c5d9||_0x43c5d9[_0x4379('0x11a')])return Promise[_0x4379('0x16')]();{const _0x543ed8=this[_0x4379('0xd6')]['config'][_0x4379('0x61')](_0x4379('0xb5'));return this[_0x4379('0xf0')][_0x4379('0xd0')]({'channelId':_0x543ed8,'revisionId':_0x43c5d9['id']})['then'](_0xb2eb1=>{_0x43c5d9[_0x4379('0xf9')]({'diffData':_0xb2eb1['diffData']},!0x0);});}}[_0x4379('0xec')](){this[_0x4379('0x72')]=null,this[_0x4379('0xaa')](),this[_0x4379('0x47')]&&this[_0x4379('0x47')]['destroy'](),this[_0x4379('0x47')]=null,this[_0x4379('0x34')][_0x4379('0x73')](),this[_0x4379('0xd6')][_0x4379('0x71')]['enqueueChange']({'isUndoable':!0x1},_0x4a36de=>{for(const _0x589137 of this[_0x4379('0xd6')][_0x4379('0x71')][_0x4379('0xe8')][_0x4379('0x10')]())_0x4a36de['detachRoot'](_0x589137);});}[_0x4379('0x5f')](_0x1b54ae){const _0x5afbd5=[],_0x45ef03=new Map();for(const _0x27427c of this[_0x4379('0xd6')][_0x4379('0x71')][_0x4379('0xe8')][_0x4379('0x10')]()){const _0xde7851=this[_0x4379('0xd6')]['editing'][_0x4379('0xa7')][_0x4379('0x104')](_0x27427c);if(!_0xde7851)continue;const _0x161981=_0xde7851['getClientRects']()[_0x4379('0x30')](0x0);_0x161981&&(_0x5afbd5[_0x4379('0x9')](_0x27427c),_0x45ef03[_0x4379('0x5d')](_0x27427c,_0x161981));}return _0x5afbd5[_0x4379('0xe5')]((_0x195d6a,_0x4cb0f0)=>{const _0x445878=_0x45ef03['get'](_0x195d6a),_0x18bdae=_0x45ef03['get'](_0x4cb0f0);return _0x445878['y']-_0x18bdae['y']||_0x445878['x']-_0x18bdae['x'];}),(_0x1b54ae=_0x1b54ae[_0x4379('0x105')](_0x21322e=>_0x5afbd5['includes'](_0x21322e['rootName'])))['sort']((_0x58853a,_0x52a531)=>_0x5afbd5[_0x4379('0x3d')](_0x58853a['rootName'])-_0x5afbd5[_0x4379('0x3d')](_0x52a531[_0x4379('0xa2')])),_0x1b54ae;}[_0x4379('0x110')](_0x568c5b){const _0x4de221=Array[_0x4379('0x2e')](_0x568c5b[_0x4379('0x79')])[_0x4379('0x105')](([_0x4a97ad,_0x1b6d4d])=>_0x4a97ad[_0x4379('0x59')](_0x4379('0x1e'))&&!_0x1b6d4d[_0x4379('0x74')]),_0x365fc9=Array[_0x4379('0x2e')](this['editor'][_0x4379('0x71')]['createRangeIn'](_0x568c5b)[_0x4379('0x99')]({'singleCharacters':!0x0}));if(0x0!=_0x4de221[_0x4379('0xfe')])for(const _0x38be71 of _0x365fc9){const [_0x5e38ba,_0x421753]=_0x4de221[0x0],[,_0x180d3c,_0x252357]=_0x5e38ba[_0x4379('0x106')](':');if(_0x421753['end'][_0x4379('0x4c')](_0x38be71['nextPosition'])&&_0x4de221[_0x4379('0x46')](),(_0x38be71[_0x4379('0x7a')][_0x4379('0x4c')](_0x421753[_0x4379('0x23')])||_0x38be71[_0x4379('0x7a')][_0x4379('0x42')](_0x421753[_0x4379('0x23')]))&&(_0x4379('0xb7')==_0x180d3c?_0x38be71[_0x4379('0xfb')]={'userId':_0x252357}:_0x4379('0x10a')==_0x180d3c&&(_0x38be71['isRemoved']={'userId':_0x252357})),0x0==_0x4de221[_0x4379('0xfe')])break;}return _0x365fc9;}[_0x4379('0xdb')](_0x2e42d1){const _0x11b203=new Map();for(let _0x35f800=0x0;_0x35f800<_0x2e42d1['length'];_0x35f800++)_0x4379('0x101')===_0x2e42d1[_0x35f800][_0x4379('0x5b')]?(_0x2e42d1[_0x35f800][_0x4379('0x30')][_0x4379('0xe6')]=_0x35f800,_0x2e42d1[_0x35f800]['item'][_0x4379('0x112')]=_0x35f800):(_0x4379('0x1')===_0x2e42d1[_0x35f800][_0x4379('0x5b')]?_0x2e42d1[_0x35f800][_0x4379('0x30')]['startIndex']=_0x35f800:_0x4379('0x76')===_0x2e42d1[_0x35f800][_0x4379('0x5b')]&&(_0x2e42d1[_0x35f800][_0x4379('0x30')][_0x4379('0x112')]=_0x35f800),_0x11b203['set'](_0x2e42d1[_0x35f800]['id'],_0x35f800));for(const _0x8da2d9 of _0x11b203[_0x4379('0x4e')]())_0x4379('0x1')===_0x2e42d1[_0x8da2d9][_0x4379('0x5b')]?_0x2e42d1[_0x8da2d9]['item'][_0x4379('0x112')]=_0x11b203[_0x4379('0x61')](_0x2e42d1[_0x8da2d9][_0x4379('0xc5')]):_0x4379('0x76')===_0x2e42d1[_0x8da2d9][_0x4379('0x5b')]&&(_0x2e42d1[_0x8da2d9][_0x4379('0x30')]['startIndex']=_0x11b203[_0x4379('0x61')](_0x2e42d1[_0x8da2d9][_0x4379('0xc5')]));}[_0x4379('0x75')](_0x3fb7b1){for(let _0x392524=0x0;_0x392524<_0x3fb7b1[_0x4379('0xfe')];_0x392524++){if(_0x4379('0x1')===_0x3fb7b1[_0x392524][_0x4379('0x5b')])_0x3fb7b1[_0x392524][_0x4379('0x30')]['startIndex']=_0x392524;else{if(_0x4379('0x76')===_0x3fb7b1[_0x392524]['type']){_0x3fb7b1[_0x392524][_0x4379('0x30')][_0x4379('0x112')]=_0x392524;const _0x1af26c=_0x3fb7b1[_0x392524]['item']['startIndex'];_0x3fb7b1[_0x1af26c][_0x4379('0xc5')]=_0x3fb7b1[_0x392524]['id'],_0x3fb7b1[_0x392524][_0x4379('0xc5')]=_0x3fb7b1[_0x1af26c]['id'];}else _0x3fb7b1[_0x392524][_0x4379('0x30')]['startIndex']=_0x392524,_0x3fb7b1[_0x392524]['item'][_0x4379('0x112')]=_0x392524,_0x3fb7b1[_0x392524][_0x4379('0xc5')]=null;}_0x3fb7b1[_0x392524][_0x4379('0x66')]||(_0x3fb7b1[_0x392524][_0x4379('0x66')]=[],_0x3fb7b1[_0x392524][_0x4379('0xca')]=[]);}}['_markInsertions'](_0x2f975a,_0x55a154){const _0x549159=_0x2f975a[_0x4379('0x105')](_0x4c42ec=>!_0x4c42ec[_0x4379('0xfb')]);for(let _0xdaea9f=0x0;_0xdaea9f<_0x55a154['length'];_0xdaea9f++)_0x55a154[_0xdaea9f][_0x4379('0xfb')]&&(_0x549159[_0xdaea9f][_0x4379('0xfb')]=_0x55a154[_0xdaea9f][_0x4379('0xfb')]);}[_0x4379('0x1c')](_0x18988a){const _0x460bed=JSON[_0x4379('0x6f')](_0x18988a),_0x1281c2=this['editor']['editing'][_0x4379('0xa7')]['document'],_0x5c1ba4=new _0x3fe579(_0x1281c2,_0x460bed[_0x4379('0x3b')](_0x573616=>this[_0x4379('0x8c')](_0x573616)));return this[_0x4379('0xd6')][_0x4379('0xac')][_0x4379('0x6a')](_0x5c1ba4);}[_0x4379('0x8c')](_0x1c35ee){const _0x3e6303=this[_0x4379('0xd6')][_0x4379('0x58')][_0x4379('0xa7')][_0x4379('0xe8')];if(_0x4379('0xa5')==typeof _0x1c35ee)return new _0x4c3b47(_0x3e6303,_0x1c35ee);{const _0x14d4f4=_0x1c35ee[_0x4379('0xd7')][_0x4379('0x3b')](_0x1db070=>this['_getViewObj'](_0x1db070));return new(tt[_0x1c35ee['type']]||_0x203973)(_0x3e6303,_0x1c35ee['name'],_0x1c35ee[_0x4379('0xda')],_0x14d4f4);}}['_getDiff'](_0x519462,_0x442362=null){const _0x111b8d=this['repository']['getRevision'](_0x519462),_0x3204d1=_0x442362?this[_0x4379('0x10b')]['getRevision'](_0x442362):null,_0x2b8a2a=this[_0x4379('0x57')](_0x111b8d,_0x3204d1),_0xfc16e2=_0x2b8a2a[_0x2b8a2a['length']-0x1],_0x22d0d8=new Map(),_0x17ac31={'model':{},'attributes':{},'changes':[]},_0x48c1a7=new Set(),_0x5319db=new Map();for(let _0x518ebe=_0x2b8a2a[_0x4379('0xfe')]-0x1;_0x518ebe>=0x0;_0x518ebe--){const _0x26b396=_0x2b8a2a[_0x518ebe];for(const _0x2885e9 of Object[_0x4379('0x88')](_0x26b396[_0x4379('0x11a')]))if(_0x26b396[_0x4379('0x11a')][_0x2885e9][_0x4379('0x8f')]){const _0x5b01cd=_0x26b396['diffData'][_0x2885e9][_0x4379('0x8f')];_0x5b01cd[_0x4379('0x0')]?(_0x48c1a7['add'](_0x2885e9),_0x5319db[_0x4379('0xd5')](_0x2885e9)&&_0x5319db[_0x4379('0x61')](_0x2885e9)['userId']==_0x5b01cd[_0x4379('0xe7')]?_0x5319db['delete'](_0x2885e9):_0x5319db[_0x4379('0x5d')](_0x2885e9,_0x5b01cd)):_0x5319db[_0x4379('0xd5')](_0x2885e9)?(_0x48c1a7[_0x4379('0x11')](_0x2885e9),_0x5319db[_0x4379('0x11')](_0x2885e9)):(_0x48c1a7['add'](_0x2885e9),_0x5319db[_0x4379('0x5d')](_0x2885e9,_0x5b01cd));}else _0x48c1a7[_0x4379('0x48')](_0x2885e9);}for(const _0x5ce7d9 of _0x48c1a7){const _0x28f5d2=_0x5319db[_0x4379('0xd5')](_0x5ce7d9)&&!_0x5319db[_0x4379('0x61')](_0x5ce7d9)['isAttached'];let _0x32d776=_0x28f5d2?_0x2b8a2a[_0x4379('0xfe')]-0x1:0x0;const _0x7a4cea=_0x28f5d2?-0x1:0x1;for(;_0x2b8a2a[_0x32d776];){const _0x3999f0=_0x2b8a2a[_0x32d776];if(_0x3999f0[_0x4379('0x11a')][_0x5ce7d9]){const _0x157953=_0x28f5d2?_0x3999f0['diffData'][_0x5ce7d9][_0x4379('0x9a')]:_0x3999f0[_0x4379('0x11a')][_0x5ce7d9]['attributesAfter'];_0x17ac31[_0x4379('0xda')][_0x5ce7d9]=_0x157953?_0x4815aa(_0x157953):{};break;}_0x32d776+=_0x7a4cea;}}for(const _0x48de19 of _0x2b8a2a){_0x48de19[_0x4379('0x71')]={};for(const _0x4e59ce of _0x48de19['authors'])_0x22d0d8[_0x4379('0x5d')](_0x4e59ce['id'],_0x4e59ce);for(const _0x28f8cc of _0x48c1a7){const _0x4c6939=_0x48de19[_0x4379('0x11a')][_0x28f8cc]?_0x48de19[_0x4379('0x11a')][_0x28f8cc][_0x4379('0x56')]:'[]',_0x16a59a=_0x48de19['diffData'][_0x28f8cc]?_0x48de19[_0x4379('0x11a')][_0x28f8cc][_0x4379('0x70')]:'[]';_0x48de19[_0x4379('0x71')][_0x28f8cc]={'insertions':this[_0x4379('0x1c')](_0x4c6939),'deletions':this['_makeModelFromViewString'](_0x16a59a)};}}for(const _0x4fad08 of _0x48c1a7){let _0x12abd7=null,_0x1741f5=0x0;const _0x1b8780=new Map(Array[_0x4379('0x2e')](_0x111b8d[_0x4379('0x71')][_0x4fad08][_0x4379('0x56')][_0x4379('0x79')])[_0x4379('0x105')](([_0x5a73c9])=>!_0x5a73c9[_0x4379('0x59')]('revision:')));let _0x3ce7d9=0x0;for(const _0x582492 of _0x2b8a2a){const _0x1d7fac=this[_0x4379('0x110')](_0x582492[_0x4379('0x71')][_0x4fad08][_0x4379('0x56')]);_0x582492==_0x111b8d?(_0x12abd7=_0x1d7fac,_0x1741f5=_0x12abd7[_0x4379('0xfe')],_0x12abd7['forEach'](_0x8fa03e=>{_0x8fa03e['id']=_0x3ce7d9++;}),this[_0x4379('0x75')](_0x12abd7)):this[_0x4379('0xa9')](_0x12abd7,_0x1d7fac);const _0x4b13b3=_0x12abd7[_0x4379('0x105')](_0x5b7946=>!_0x5b7946[_0x4379('0xfb')])[_0x4379('0x3b')](_0x42181d=>_0x42181d['id']);let _0x43080e=0x0;const _0xb580d9=this[_0x4379('0x110')](_0x582492[_0x4379('0x71')][_0x4fad08][_0x4379('0x70')]);_0xb580d9[_0x4379('0x13')](_0x15d838=>{_0x15d838[_0x4379('0x45')]?_0x15d838['id']=_0x1741f5++:_0x15d838['id']=_0x4b13b3[_0x43080e++];}),this[_0x4379('0x75')](_0xb580d9),this['_setDistance'](_0x12abd7,_0x4379('0xfb')),this['_setDistance'](_0xb580d9,_0x4379('0x45')),_0x582492==_0x111b8d&&this['_markMarkers'](_0x12abd7,_0x1b8780),_0x12abd7=this[_0x4379('0x14')](_0x12abd7,_0xb580d9),this[_0x4379('0xdb')](_0x12abd7),this[_0x4379('0x7d')](_0x12abd7,_0x4379('0x45'));}_0x12abd7=_0x12abd7[_0x4379('0x105')](_0x23e04b=>!(_0x23e04b['isAdded']&&_0x23e04b[_0x4379('0x45')]));const _0x45b0ea=new Map(_0xfc16e2[_0x4379('0x71')][_0x4fad08][_0x4379('0x70')]['markers']),_0x365b0a=new Set(_0x1b8780[_0x4379('0x88')]());for(const _0x311bca of _0x45b0ea[_0x4379('0x88')]())_0x365b0a['delete'](_0x311bca);this[_0x4379('0x8e')](_0x12abd7,_0x365b0a),this[_0x4379('0x4a')](_0x12abd7),_0x12abd7=this['_removeMissingPairs'](_0x12abd7),_0x12abd7=this[_0x4379('0x17')](_0x12abd7),_0x12abd7=this[_0x4379('0x113')](_0x12abd7);const {root:_0x4dc3ec,changes:_0x3e5113}=this[_0x4379('0xeb')](_0x12abd7,_0x22d0d8,_0x4fad08);_0x17ac31[_0x4379('0x71')][_0x4fad08]=_0x4dc3ec;const _0x1d03e9=_0x5319db[_0x4379('0x61')](_0x4fad08);if(_0x1d03e9){const _0x587e34=_0x22d0d8[_0x4379('0x61')](_0x1d03e9[_0x4379('0xe7')]),_0x32a4c2=new _0x352d9d({'author':_0x587e34,'type':_0x1d03e9[_0x4379('0x0')]?'add':_0x4379('0x6c'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4fad08});_0x3e5113['unshift'](_0x32a4c2),_0x17ac31['attributes'][_0x4fad08]['revisionHistoryAttachChange']=_0x32a4c2['id'];}_0x17ac31['changes']=_0x17ac31[_0x4379('0xbe')][_0x4379('0x67')](_0x3e5113);}return _0x17ac31;}[_0x4379('0xd')](_0x1c4dc3,_0x29c9e4){for(let _0x4c5840=0x0;_0x4c5840<_0x1c4dc3[_0x4379('0xfe')];_0x4c5840++)for(const [_0x198288,_0x24db7a]of _0x29c9e4)_0x24db7a['start'][_0x4379('0x4c')](_0x1c4dc3[_0x4c5840]['previousPosition'])&&_0x1c4dc3[_0x4c5840][_0x4379('0x66')]['push'](_0x198288),_0x24db7a['end']['isEqual'](_0x1c4dc3[_0x4c5840][_0x4379('0x24')])&&_0x1c4dc3[_0x4c5840][_0x4379('0xca')][_0x4379('0x9')](_0x198288);}[_0x4379('0x14')](_0x4bedca,_0x4460fc){let _0x3c5350=[],_0x5571b2=0x0,_0x5eb4ec=0x0;for(;_0x5571b2<_0x4bedca[_0x4379('0xfe')]||_0x5eb4ec<_0x4460fc['length'];){const _0x3b52b1=_0x4bedca[_0x5571b2]||{},_0x569721=_0x4460fc[_0x5eb4ec]||{};if(_0x3b52b1['id']==_0x569721['id'])_0x5571b2++,_0x5eb4ec++,_0x3c5350[_0x4379('0x9')](_0x3b52b1);else{if(_0x569721[_0x4379('0x45')]&&_0x3b52b1[_0x4379('0xfb')]){const {commonTape:_0x239605,iEnd:_0x447999,jEnd:_0xed9ead}=this[_0x4379('0x108')](_0x4bedca,_0x5571b2,_0x4460fc,_0x5eb4ec);_0x3c5350=_0x3c5350[_0x4379('0x67')](_0x239605),_0x5571b2=_0x447999,_0x5eb4ec=_0xed9ead;}else _0x569721[_0x4379('0x45')]?(_0x5eb4ec++,_0x3c5350['push'](_0x569721)):(_0x5571b2++,_0x3c5350['push'](_0x3b52b1));}}return _0x3c5350;}['_markSuggestions'](_0x2258c7,_0xdbbed1){const _0x22b90d=[];for(let _0x287167=0x0;_0x287167<_0x2258c7[_0x4379('0xfe')];_0x287167++){for(let _0x4d491d=0x0;_0x4d491d<_0x2258c7[_0x287167]['markersStart']['length'];_0x4d491d++){const _0x177fe8=_0x2258c7[_0x287167][_0x4379('0x66')][_0x4d491d];if(!_0xdbbed1[_0x4379('0xd5')](_0x177fe8))continue;const {group:_0x162f4a,type:_0x428ee1,authorId:_0x5a72bb}=_0x4e7377(_0x177fe8);_0x4379('0x83')!=_0x162f4a||_0x4379('0xb7')!=_0x428ee1&&_0x4379('0x10a')!=_0x428ee1||(_0x22b90d[_0x4379('0xb1')]({'type':_0x428ee1,'name':_0x177fe8,'userId':_0x5a72bb}),_0x2258c7[_0x287167][_0x4379('0x66')][_0x4379('0xc4')](_0x4d491d,0x1),_0x4d491d--);}_0x1df5a7(_0x2258c7[_0x287167]);for(let _0x44c460=0x0;_0x44c460<_0x2258c7[_0x287167][_0x4379('0xca')][_0x4379('0xfe')];_0x44c460++){const _0x326e2f=_0x2258c7[_0x287167][_0x4379('0xca')][_0x44c460];if(!_0xdbbed1[_0x4379('0xd5')](_0x326e2f))continue;const {group:_0x289fbf,type:_0x24a9ca}=_0x4e7377(_0x326e2f);if(_0x4379('0x83')!=_0x289fbf||'insertion'!=_0x24a9ca&&_0x4379('0x10a')!=_0x24a9ca)continue;_0x2258c7[_0x287167]['markersEnd'][_0x4379('0xc4')](_0x44c460,0x1),_0x44c460--;const _0x52c070=_0x22b90d[_0x4379('0x103')](_0x544dca=>_0x544dca[_0x4379('0x35')]==_0x326e2f);_0x52c070>-0x1&&_0x22b90d['splice'](_0x52c070,0x1);}}function _0x4e7377(_0x406e0b){const _0x452193=_0x406e0b[_0x4379('0x106')](':');return{'group':_0x452193[0x0],'type':_0x452193[0x1],'subType':_0x452193['length']>=0x5?_0x452193[0x2]:null,'id':_0x452193[_0x4379('0xfe')]<0x5?_0x452193[0x2]:_0x452193[0x3],'authorId':_0x452193[_0x4379('0xfe')]<0x5?_0x452193[0x3]:_0x452193[0x4],'markerCount':0x6==_0x452193['length']?_0x452193[0x5]:null};}function _0x1df5a7(_0x4641b4){for(let _0x532c82=0x0;_0x532c82<_0x22b90d[_0x4379('0xfe')];_0x532c82++){if(_0x4641b4[_0x4379('0xfb')]&&_0x4379('0xb7')==_0x22b90d[_0x532c82]['type'])return _0x4641b4[_0x4379('0x118')]=_0x22b90d[_0x532c82],void delete _0x4641b4[_0x4379('0xfb')];if(!_0x4641b4[_0x4379('0xfb')]&&!_0x4641b4[_0x4379('0x45')]&&'deletion'==_0x22b90d[_0x532c82][_0x4379('0x5b')])return void(_0x4641b4[_0x4379('0x6d')]=_0x22b90d[_0x532c82]);}}}['_setDistance'](_0x33c4ff,_0x4bc81d){let _0x45c7da=0x0,_0x26c7aa=!0x1;const _0x198795=new Map();for(const _0xbb5a34 of _0x33c4ff)_0xbb5a34[_0x4bc81d]?_0x26c7aa&&(_0x45c7da++,_0x26c7aa=!0x1):(_0x45c7da++,_0x26c7aa=!0x0),_0x198795['set'](_0xbb5a34['id'],_0x45c7da);for(let _0x1b39a3=0x0;_0x1b39a3<_0x33c4ff[_0x4379('0xfe')];_0x1b39a3++){if('isRemoved'==_0x4bc81d&&_0x33c4ff[_0x1b39a3]['isAdded']||_0x4379('0xfb')==_0x4bc81d&&_0x33c4ff[_0x1b39a3][_0x4379('0x45')])continue;if(_0x4379('0x101')==_0x33c4ff[_0x1b39a3][_0x4379('0x5b')]){_0x33c4ff[_0x1b39a3][_0x4379('0xae')]=0x0;continue;}const _0x2a3292=_0x198795['get'](_0x33c4ff[_0x1b39a3][_0x4379('0xc5')]),_0x143d42=_0x198795[_0x4379('0x61')](_0x33c4ff[_0x1b39a3]['id']);_0x33c4ff[_0x1b39a3][_0x4379('0xae')]=_0x2a3292-_0x143d42;}}[_0x4379('0x57')](_0x4e4540,_0x1db802,_0xc51528=!0x1){const _0x5c5146=[];let _0x1d0532=this[_0x4379('0x10b')]['getIndex'](_0x4e4540),_0x2a3ffd=this['repository'][_0x4379('0x2c')](_0x1db802);for(-0x1==_0x2a3ffd&&(_0x2a3ffd=this['repository'][_0x4379('0x9f')][_0x4379('0xfe')],_0xc51528=!0x1);_0x1d0532<_0x2a3ffd;)_0x5c5146['push'](this[_0x4379('0x10b')][_0x4379('0xd0')](_0x1d0532)),_0x1d0532++;return _0xc51528&&_0x5c5146[_0x4379('0x9')](this['repository']['getRevision'](_0x1d0532)),_0x5c5146;}[_0x4379('0x108')](_0x4405a1,_0x264421,_0x512596,_0x2b41ac){const _0x5e71df=this['editor'][_0x4379('0x71')]['schema'];let _0x3480a3=_0x264421;for(;_0x4405a1[_0x3480a3]&&_0x4405a1[_0x3480a3][_0x4379('0xfb')];)_0x3480a3++;let _0x2bb365=_0x2b41ac;for(;_0x512596[_0x2bb365]&&_0x512596[_0x2bb365]['isRemoved'];)_0x2bb365++;_0x295fe7(_0x4405a1,_0x264421,_0x3480a3),_0x295fe7(_0x512596,_0x2b41ac,_0x2bb365);const _0x46010a=_0x512596['slice'](_0x2b41ac,_0x2bb365)[_0x4379('0x67')](_0x4405a1[_0x4379('0x3c')](_0x264421,_0x3480a3));return _0x46010a['sort']((_0x84d29e,_0x411557)=>_0x84d29e[_0x4379('0x22')]!=_0x411557[_0x4379('0x22')]?_0x84d29e[_0x4379('0x22')]-_0x411557[_0x4379('0x22')]:_0x84d29e[_0x4379('0xa0')]!=_0x411557[_0x4379('0xa0')]?_0x84d29e['level']-_0x411557[_0x4379('0xa0')]:_0x84d29e[_0x4379('0xae')]!=_0x411557[_0x4379('0xae')]?_0x411557[_0x4379('0xae')]-_0x84d29e[_0x4379('0xae')]:!!_0x84d29e[_0x4379('0xfb')]!=!!_0x411557[_0x4379('0xfb')]?-0x1==_0x84d29e[_0x4379('0x22')]||0x0==_0x84d29e[_0x4379('0x22')]?_0x84d29e[_0x4379('0xfb')]?-0x1:0x1:_0x84d29e[_0x4379('0xfb')]?0x1:-0x1:_0x84d29e['index']-_0x411557[_0x4379('0xfc')]),{'commonTape':_0x46010a,'iEnd':_0x3480a3,'jEnd':_0x2bb365};function _0x295fe7(_0xdcf4e5,_0x5261e0,_0xb9dc57){let _0x10d10a=-0x1,_0x71e3b4=Number['POSITIVE_INFINITY'],_0x42f6f2=!0x0;for(let _0x27638f=_0x5261e0;_0x27638f<_0xb9dc57;_0x27638f++)if(_0x5e71df['isInline'](_0xdcf4e5[_0x27638f][_0x4379('0x30')])||(_0x42f6f2=!0x1),_0xdcf4e5[_0x27638f]['item']['startIndex']<_0x5261e0&&(_0x10d10a=_0x27638f),_0xdcf4e5[_0x27638f]['item'][_0x4379('0x112')]>=_0xb9dc57){_0x71e3b4=_0x27638f;break;}_0x42f6f2&&(_0x10d10a=_0xb9dc57-0x1);for(let _0x50494e=_0x5261e0;_0x50494e<_0xb9dc57;_0x50494e++)_0xdcf4e5[_0x50494e][_0x4379('0x22')]=_0x50494e<=_0x10d10a?-0x1:_0x50494e<_0x71e3b4?0x0:0x1,_0xdcf4e5[_0x50494e][_0x4379('0xfc')]=_0x50494e;let _0x2de600=0x0;for(let _0x3e333b=_0x5261e0;_0x3e333b<=_0x10d10a;_0x3e333b++)0x0==_0xdcf4e5[_0x3e333b][_0x4379('0xae')]?_0xdcf4e5[_0x3e333b]['level']=_0x2de600:(_0x2de600++,_0xdcf4e5[_0x3e333b][_0x4379('0xa0')]=_0x2de600,_0x2de600++);for(let _0x397301=_0x5261e0;_0x397301<_0xb9dc57;_0x397301++)0x0==_0xdcf4e5[_0x397301][_0x4379('0x22')]&&(_0xdcf4e5[_0x397301][_0x4379('0xa0')]=_0x2de600);_0x2de600=0x0;for(let _0x56a942=_0xb9dc57-0x1;_0x56a942>=_0x71e3b4;_0x56a942--)0x0==_0xdcf4e5[_0x56a942]['distance']?_0xdcf4e5[_0x56a942]['level']=_0x2de600:(_0x2de600--,_0xdcf4e5[_0x56a942][_0x4379('0xa0')]=_0x2de600,_0x2de600--);}}['_fixObsoleteTags'](_0x5b2999){const _0x361f7f=new Map(),_0x1ef6c3=this[_0x4379('0xd6')][_0x4379('0x71')][_0x4379('0xf2')];for(let _0x2d8536=0x1;_0x2d8536<_0x5b2999[_0x4379('0xfe')];_0x2d8536++){let _0x52eeed,_0x1cda85,_0x2f8960;const _0x67dc3a=_0x5b2999[_0x2d8536],_0x562a90=_0x5b2999[_0x2d8536-0x1];if(_0x4379('0x101')==_0x67dc3a[_0x4379('0x5b')])continue;if(_0x67dc3a[_0x4379('0x5b')]!=_0x562a90[_0x4379('0x5b')])continue;if(!_0x1ef6c3['isBlock'](_0x562a90[_0x4379('0x30')])||_0x1ef6c3[_0x4379('0x107')](_0x562a90[_0x4379('0x30')]))continue;if(!_0x1ef6c3[_0x4379('0x8d')](_0x67dc3a[_0x4379('0x30')])||_0x1ef6c3['isLimit'](_0x67dc3a['item']))continue;if((_0x5b2999[_0x2d8536][_0x4379('0xfb')]||_0x5b2999[_0x2d8536]['isAddSuggestion'])&&_0x5b2999[_0x2d8536-0x1]['isRemoved'])_0x52eeed=_0x5b2999[_0x2d8536],_0x1cda85=_0x5b2999[_0x2d8536-0x1],_0x2f8960=_0x2d8536-0x1;else{if(!_0x5b2999[_0x2d8536][_0x4379('0x45')]||!_0x5b2999[_0x2d8536-0x1]['isAdded']&&!_0x5b2999[_0x2d8536-0x1][_0x4379('0x118')])continue;_0x52eeed=_0x5b2999[_0x2d8536-0x1],_0x1cda85=_0x5b2999[_0x2d8536],_0x2f8960=_0x2d8536;}const _0x1d8c7a=_0x52eeed[_0x4379('0xa0')]==_0x1cda85[_0x4379('0xa0')],_0x1ae6d7=Math[_0x4379('0xf6')](_0x52eeed[_0x4379('0xa0')])<Math[_0x4379('0xf6')](_0x1cda85[_0x4379('0xa0')])&&0x0==_0x1cda85[_0x4379('0xae')];(_0x1d8c7a||_0x1ae6d7)&&(_0x361f7f[_0x4379('0x5d')](_0x1cda85['id'],_0x52eeed['id']),_0x5b2999[_0x4379('0xc4')](_0x2f8960,0x1),_0x2d8536--,_0x52eeed[_0x4379('0xfb')]=!0x1);}for(let _0x1ecb88=0x0;_0x1ecb88<_0x5b2999[_0x4379('0xfe')];_0x1ecb88++)_0x361f7f[_0x4379('0xd5')](_0x5b2999[_0x1ecb88][_0x4379('0xc5')])&&(_0x5b2999[_0x1ecb88][_0x4379('0xc5')]=_0x361f7f[_0x4379('0x61')](_0x5b2999[_0x1ecb88]['pairId']));}['_removeMissingPairs'](_0x2789aa){const _0x10b44e=new Set(_0x2789aa[_0x4379('0x3b')](_0x1d8d4c=>_0x1d8d4c['id']));for(let _0x173e67=0x0;_0x173e67<_0x2789aa[_0x4379('0xfe')];_0x173e67++)_0x10b44e[_0x4379('0xd5')](_0x2789aa[_0x173e67][_0x4379('0xc5')])||0x0==_0x2789aa[_0x173e67]['distance']||(_0x2789aa[_0x173e67][_0x4379('0xcc')]=!0x0);return _0x2789aa[_0x4379('0x105')](_0x2fadbe=>!_0x2fadbe['isIncorrect']);}[_0x4379('0x17')](_0x4bf54e){const _0x2533d6=new Set();for(let _0x220033=0x0;_0x220033<_0x4bf54e['length'];_0x220033++){if(_0x2533d6['has'](_0x4bf54e[_0x220033]['id'])&&_0x4bf54e[_0x220033][_0x4379('0x45')]&&(_0x4bf54e[_0x220033]['isIncorrect']=!0x0),_0x4bf54e[_0x220033][_0x4379('0xcc')])continue;if(0x0==_0x4bf54e[_0x220033]['distance'])continue;if(_0x4379('0x1')!=_0x4bf54e[_0x220033][_0x4379('0x5b')])continue;if(null==_0x4bf54e[_0x220033]['pairId'])continue;let _0x353f2e=_0x220033+0x1,_0xf60d27=0x0;for(;_0x4bf54e[_0x353f2e]['id']!=_0x4bf54e[_0x220033]['pairId'];)_0x4379('0x1')==_0x4bf54e[_0x353f2e][_0x4379('0x5b')]?_0xf60d27++:_0x4379('0x76')==_0x4bf54e[_0x353f2e][_0x4379('0x5b')]&&_0xf60d27--,_0x353f2e++;if(0x0!=_0xf60d27){if(_0x4bf54e[_0x220033][_0x4379('0x45')])_0x4bf54e[_0x220033]['isIncorrect']=!0x0;else for(;_0x353f2e!=_0x220033;)_0x4bf54e[_0x353f2e][_0x4379('0x45')]&&0x0!=_0x4bf54e[_0x353f2e][_0x4379('0xae')]&&(_0x4bf54e[_0x353f2e][_0x4379('0xcc')]=!0x0,_0x2533d6[_0x4379('0x48')](_0x4bf54e[_0x353f2e][_0x4379('0xc5')])),_0x353f2e--;}}return _0x4bf54e[_0x4379('0x105')](_0xe42e2b=>!_0xe42e2b['isIncorrect']);}[_0x4379('0x113')](_0x28f3ee){const _0x1b3ab8=this[_0x4379('0xd6')][_0x4379('0x71')][_0x4379('0xf2')];for(let _0xf96102=0x0;_0xf96102<_0x28f3ee[_0x4379('0xfe')];_0xf96102++){if(!(_0x28f3ee[_0xf96102][_0x4379('0xfb')]||_0x28f3ee[_0xf96102]['isAddSuggestion']||_0x28f3ee[_0xf96102][_0x4379('0x45')]||_0x28f3ee[_0xf96102][_0x4379('0x6d')]))continue;if(0x0==_0x28f3ee[_0xf96102]['distance'])continue;const _0x1dda6a=_0x28f3ee[_0xf96102]['item'];_0x1b3ab8[_0x4379('0x8d')](_0x1dda6a)||_0x1b3ab8[_0x4379('0x107')](_0x1dda6a)||(_0x28f3ee[_0xf96102][_0x4379('0xfb')]&&delete _0x28f3ee[_0xf96102][_0x4379('0xfb')],_0x28f3ee[_0xf96102][_0x4379('0x118')]&&delete _0x28f3ee[_0xf96102][_0x4379('0x118')],_0x28f3ee[_0xf96102][_0x4379('0x6d')]&&delete _0x28f3ee[_0xf96102][_0x4379('0x6d')],_0x28f3ee[_0xf96102][_0x4379('0x45')]&&(_0x28f3ee[_0xf96102][_0x4379('0xcc')]=!0x0));}return _0x28f3ee[_0x4379('0x105')](_0x2a876b=>!_0x2a876b[_0x4379('0xcc')]);}['_makeModelFromTape'](_0x90c458,_0x13680b,_0x29f85a){const _0x519ef7=new _0x25cde0(),_0x215eb0=[],_0x476f46=new Map(),_0x87b256=this[_0x4379('0xd6')]['model'],_0x4a59e9=_0x87b256['schema'],_0x470c7a=[_0x519ef7],_0x2e71b7={},_0x45ca00={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x10f5d7=null;const _0x586256=[0x0];for(let _0x4c38ee=0x0;_0x4c38ee<_0x90c458[_0x4379('0xfe')];_0x4c38ee++){let _0xa9c7f0,_0x4c8ba7;if(_0x4379('0x1')===_0x90c458[_0x4c38ee][_0x4379('0x5b')]){_0xa9c7f0=_0x87b256[_0x4379('0xe1')](_0x519ef7,_0x586256);const _0x30cc37=new _0x528850(_0x90c458[_0x4c38ee][_0x4379('0x30')][_0x4379('0x35')],_0x90c458[_0x4c38ee]['item'][_0x4379('0x1d')]());_0x470c7a[0x0]['_appendChild'](_0x30cc37),_0x586256[_0x4379('0x9')](0x0),_0x470c7a[_0x4379('0xb1')](_0x30cc37),_0x4c8ba7=_0x87b256[_0x4379('0xe1')](_0x519ef7,_0x586256),_0x10f5d7=null;}else{if(_0x4379('0x76')===_0x90c458[_0x4c38ee][_0x4379('0x5b')])_0x470c7a[_0x4379('0x46')](),_0xa9c7f0=_0x87b256['createPositionFromPath'](_0x519ef7,_0x586256),_0x586256['pop'](),_0x586256[_0x586256['length']-0x1]++,_0x4c8ba7=_0x87b256[_0x4379('0xe1')](_0x519ef7,_0x586256),_0x10f5d7=null;else{if(_0xa9c7f0=_0x87b256['createPositionFromPath'](_0x519ef7,_0x586256),_0x10f5d7&&_0x178fbf(_0x10f5d7,_0x90c458[_0x4c38ee][_0x4379('0x30')]))_0x10f5d7[_0x4379('0xb')]+=_0x90c458[_0x4c38ee][_0x4379('0x30')][_0x4379('0xac')];else{const _0x3f3af7=new _0x3160ef(_0x90c458[_0x4c38ee]['item']['data'],_0x90c458[_0x4c38ee]['item'][_0x4379('0x1d')]());_0x470c7a[0x0][_0x4379('0x80')](_0x3f3af7),_0x10f5d7=_0x3f3af7;}_0x586256[_0x586256[_0x4379('0xfe')]-0x1]+=_0x90c458[_0x4c38ee]['item']['offsetSize'],_0x4c8ba7=_0x87b256[_0x4379('0xe1')](_0x519ef7,_0x586256);}}for(const _0x373b37 of _0x90c458[_0x4c38ee][_0x4379('0x66')])_0x476f46[_0x4379('0x5d')](_0x373b37,{'start':_0xa9c7f0,'end':null});_0xf43302(_0x4379('0x6d'),_0x4c38ee,_0xa9c7f0,_0x4c8ba7),_0xf43302(_0x4379('0x118'),_0x4c38ee,_0xa9c7f0,_0x4c8ba7),_0xf43302(_0x4379('0x45'),_0x4c38ee,_0xa9c7f0,_0x4c8ba7),_0xf43302(_0x4379('0xfb'),_0x4c38ee,_0xa9c7f0,_0x4c8ba7);for(const _0x3d3b72 of _0x90c458[_0x4c38ee]['markersEnd']){_0x476f46[_0x4379('0x61')](_0x3d3b72)[_0x4379('0x93')]=_0x4c8ba7;}}for(const [_0x9d33d5,_0x18ecfc]of _0x476f46){const _0x1000b8=this['editor'][_0x4379('0x71')][_0x4379('0x29')](_0x18ecfc[_0x4379('0x23')],_0x18ecfc['end']);_0x519ef7[_0x4379('0x79')][_0x4379('0x5d')](_0x9d33d5,_0x1000b8);}return _0x215eb0['sort']((_0x73d761,_0x2c8a7d)=>{const _0x465d7d=_0x519ef7[_0x4379('0x79')]['get'](_0x4379('0x1e')+_0x73d761['id']),_0x303c07=_0x519ef7[_0x4379('0x79')][_0x4379('0x61')]('revision:'+_0x2c8a7d['id']);return _0x465d7d['start'][_0x4379('0xdd')](_0x303c07[_0x4379('0x23')])?-0x1:_0x465d7d[_0x4379('0x23')][_0x4379('0x42')](_0x303c07['start'])?0x1:_0x465d7d[_0x4379('0x93')][_0x4379('0xdd')](_0x303c07[_0x4379('0x93')])?-0x1:_0x465d7d[_0x4379('0x93')][_0x4379('0x42')](_0x303c07[_0x4379('0x93')])?0x1:_0x4379('0x48')===_0x73d761[_0x4379('0x5b')]?-0x1:0x1;}),{'root':_0x519ef7,'changes':_0x215eb0};function _0xf43302(_0x50b9ab,_0x2ea6f1,_0x56bceb,_0x3756f5){const _0x2854f4=!!_0x90c458[_0x2ea6f1][_0x50b9ab],_0x39885b=_0x2854f4?_0x90c458[_0x2ea6f1][_0x50b9ab][_0x4379('0xe7')]:null,_0x38e118=_0x2ea6f1===_0x90c458[_0x4379('0xfe')]-0x1,_0x2e5702=_0x45ca00[_0x50b9ab][0x0],_0x2ca93a=_0x4a59e9['isObject'](_0x90c458[_0x2ea6f1]['item']);!_0x2e71b7[_0x50b9ab]&&_0x2854f4?_0x2e71b7[_0x50b9ab]={'start':_0x56bceb,'tapeItem':_0x90c458[_0x2ea6f1],'userId':_0x39885b,'type':_0x50b9ab}:_0x2e71b7[_0x50b9ab]&&!_0x2854f4?(_0x2e71b7[_0x50b9ab][_0x4379('0x93')]=_0x56bceb,_0x4aca40(_0x2e71b7[_0x50b9ab]),_0x2e71b7[_0x50b9ab]=null):_0x2e71b7[_0x50b9ab]&&_0x2854f4&&_0x2e71b7[_0x50b9ab][_0x4379('0xe7')]!==_0x39885b&&(_0x2e71b7[_0x50b9ab][_0x4379('0x93')]=_0x56bceb,_0x2e5702&&_0x2e5702[_0x4379('0xe7')]===_0x2e71b7[_0x50b9ab]['userId']||_0x4aca40(_0x2e71b7[_0x50b9ab]),_0x2e71b7[_0x50b9ab]={'start':_0x56bceb,'tapeItem':_0x90c458[_0x2ea6f1],'userId':_0x39885b,'type':_0x50b9ab}),_0x2e71b7[_0x50b9ab]&&_0x2ca93a&&(_0x4379('0x1')!==_0x90c458[_0x2ea6f1][_0x4379('0x5b')]||_0x2e5702&&_0x2e5702['userId']===_0x39885b||_0x45ca00[_0x50b9ab][_0x4379('0xb1')]({'userId':_0x39885b,'object':_0x90c458[_0x2ea6f1][_0x4379('0x30')],'change':_0x2e71b7[_0x50b9ab]}),_0x4379('0x76')===_0x90c458[_0x2ea6f1][_0x4379('0x5b')]&&_0x2e5702&&_0x2e5702['object']===_0x90c458[_0x2ea6f1][_0x4379('0x30')]&&(_0x45ca00[_0x50b9ab]['shift'](),_0x2e71b7[_0x50b9ab]=_0x2e5702[_0x4379('0xb4')])),_0x2e71b7[_0x50b9ab]&&_0x38e118&&(_0x2e71b7[_0x50b9ab]['end']=_0x3756f5,_0x4aca40(_0x2e71b7[_0x50b9ab]),_0x2e71b7[_0x50b9ab]=null);}function _0x4aca40({start:_0x4980b8,end:_0x55eabc,tapeItem:_0x50980d,userId:_0x1f2da4,type:_0x101c3d}){const _0x20123b=_0x50980d[_0x4379('0x30')],_0x1712c4=_0x87b256[_0x4379('0xf2')][_0x4379('0x8d')](_0x20123b)&&!_0x87b256[_0x4379('0xf2')]['isLimit'](_0x20123b),_0x53715f=_0x4980b8[_0x4379('0x114')]==_0x55eabc['parent']&&_0x55eabc[_0x4379('0xbb')];if(_0x1712c4&&_0x53715f)return;const _0x579aa1=_0x87b256[_0x4379('0x29')](_0x4980b8,_0x55eabc),_0x1c4759=_0x13680b['get'](_0x1f2da4),_0x36456f=new _0x352d9d({'author':_0x1c4759,'type':_0x4379('0xfb')==_0x101c3d||_0x4379('0x118')==_0x101c3d?'add':'remove','data':{'isSuggestion':_0x4379('0x118')==_0x101c3d||_0x4379('0x6d')==_0x101c3d},'createdAt':new Date(),'rootName':_0x29f85a});_0x215eb0[_0x4379('0x9')](_0x36456f),_0x519ef7[_0x4379('0x79')][_0x4379('0x5d')](_0x4379('0x1e')+_0x36456f['id'],_0x579aa1);}function _0x178fbf(_0x5359d2,_0x18b2ed){const _0x702d95=_0x5359d2[_0x4379('0x1d')](),_0xdd8208=_0x18b2ed[_0x4379('0x1d')]();for(const _0x5bca40 of _0x702d95){if(_0x5bca40[0x1]!==_0x18b2ed[_0x4379('0x68')](_0x5bca40[0x0]))return!0x1;_0xdd8208['next']();}return _0xdd8208['next']()['done'];}}[_0x4379('0x49')](){this[_0x4379('0xd6')]['conversion'][_0x4379('0xba')](_0x4379('0xd1'))[_0x4379('0x81')]({'view':_0x4379('0xfd')}),this[_0x4379('0xd6')]['conversion'][_0x4379('0xba')](_0x4379('0x1a'))['markerToHighlight']({'model':_0x4379('0xfd'),'view':_0x4d5767=>{const _0x50a343=_0x4d5767['markerName'][_0x4379('0x106')](':')[0x1],_0x5c2508=this[_0x4379('0x9e')](_0x50a343);if(!_0x5c2508)return null;const _0x4dea71=_0x4379('0x48')==_0x5c2508[_0x4379('0x5b')]?_0x4379('0xb7'):_0x4379('0x10a'),_0x4f2a3c=[_0x4379('0x82'),_0x4379('0x117')+_0x4dea71];return _0x5c2508[_0x4379('0xac')][_0x4379('0xef')]&&_0x4f2a3c[_0x4379('0x9')](_0x4379('0x117')+_0x4dea71+_0x4379('0xe3')),this['activeChange']==_0x5c2508&&_0x4f2a3c['push']('ck-suggestion-marker--active'),{'classes':_0x4f2a3c,'attributes':{'data-change-id':_0x50a343}};}}),this[_0x4379('0xd6')][_0x4379('0xea')][_0x4379('0xba')](_0x4379('0xd1'))['add'](_0x4b05ca=>{_0x4b05ca['on']('element:pre',(_0x3e4fc0,_0x211be8,_0x35d145)=>{const _0x359779=_0x211be8['viewItem'][_0x4379('0xad')](0x0);if(!_0x359779||!_0x359779['is'](_0x4379('0x4b'),_0x4379('0x69')))return;if(!_0x35d145[_0x4379('0xc')][_0x4379('0x7f')](_0x359779,{'attributes':[_0x4379('0x65'),_0x4379('0x6')]}))return;const _0x260cb4=_0x211be8['modelRange'][_0x4379('0x23')]['nodeAfter'];_0x35d145[_0x4379('0x32')][_0x4379('0x102')](_0x4379('0x65'),_0x359779['getAttribute']('vid_start'),_0x260cb4),_0x35d145[_0x4379('0x32')][_0x4379('0x102')]('vid_end',_0x359779[_0x4379('0x68')](_0x4379('0x6')),_0x260cb4);},{'priority':_0x4379('0x97')});}),this['editor'][_0x4379('0xea')][_0x4379('0xba')]('upcast')['add'](_0x19837e=>{_0x19837e['on'](_0x4379('0x4b'),(_0x4565c,_0x3966e8,_0x16a81b)=>{if(!_0x16a81b[_0x4379('0xc')]['consume'](_0x3966e8[_0x4379('0x3e')],{'attributes':['vid_start',_0x4379('0x6')]}))return;if(_0x3966e8[_0x4379('0xc8')]['isCollapsed'])return;const _0x5107ce=_0x3966e8[_0x4379('0xc8')][_0x4379('0x23')]['nodeAfter'];_0x5107ce[_0x4379('0x115')](_0x4379('0x65'))||_0x5107ce[_0x4379('0x115')]('vid')||(_0x16a81b[_0x4379('0x32')]['setAttribute'](_0x4379('0x65'),_0x3966e8['viewItem'][_0x4379('0x68')]('vid_start'),_0x5107ce),_0x16a81b[_0x4379('0x32')][_0x4379('0x102')](_0x4379('0x6'),_0x3966e8[_0x4379('0x3e')][_0x4379('0x68')](_0x4379('0x6')),_0x5107ce));},{'priority':_0x4379('0x97')});}),this[_0x4379('0xd6')][_0x4379('0xea')][_0x4379('0xba')](_0x4379('0xd1'))[_0x4379('0xc9')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x4379('0x10f'),'value':_0x5a32a5=>_0x5a32a5[_0x4379('0x68')]('vid')}}),this[_0x4379('0xd6')][_0x4379('0x71')]['schema']['on'](_0x4379('0xbd'),(_0x53b6f3,[,_0x11b7aa])=>{[_0x4379('0x65'),'vid_end',_0x4379('0x10f')]['includes'](_0x11b7aa)&&(_0x53b6f3[_0x4379('0x2a')]=!0x0,_0x53b6f3[_0x4379('0xf7')]());},{'priority':_0x4379('0xc2')}),this['editor'][_0x4379('0xea')][_0x4379('0xba')](_0x4379('0x15'))[_0x4379('0x48')](_0x404e32=>{_0x404e32['on'](_0x4379('0x78'),(_0x5246bc,_0x448f79,_0x18a808)=>{if('\x20'!=_0x448f79['item'][_0x4379('0xac')]||_0x448f79[_0x4379('0x30')][_0x4379('0x9b')][_0x4379('0xaf')]>0x1)return;if(!_0x18a808[_0x4379('0xc')]['consume'](_0x448f79['item'],_0x5246bc['name']))return;const _0xb5a204=_0x18a808['writer'],_0x3525f2=_0x18a808[_0x4379('0x8a')]['toViewRange'](_0x448f79[_0x4379('0xc1')]);_0xb5a204['wrap'](_0x3525f2,_0xb5a204['createAttributeElement'](_0x4379('0x8b')));});}),this['editor'][_0x4379('0xea')][_0x4379('0xba')](_0x4379('0x15'))[_0x4379('0x2f')]({'model':_0x4379('0xfd')}),this[_0x4379('0xd6')][_0x4379('0x58')][_0x4379('0xe2')]['on']('addMarker:revision',function(_0x23e542){const _0x2a314f=_0x23e542['plugins'][_0x4379('0x61')](_0x4379('0x7e'));return(_0xd6b02b,_0x3315be,_0x58e7a)=>{const _0x43b501=_0x3315be[_0x4379('0xfa')][_0x4379('0x106')](':')[0x1],_0x2328e8=_0x2a314f[_0x4379('0x9e')](_0x43b501);if(!_0x2328e8)return null;const _0x1d2c99=_0x4379('0x48')==_0x2328e8[_0x4379('0x5b')]?_0x4379('0x106'):_0x4379('0xe9');if(!_0x58e7a[_0x4379('0xc')][_0x4379('0xb6')](_0x3315be['markerRange'],_0xd6b02b[_0x4379('0x35')]))return;const _0x8c5640=_0x3315be[_0x4379('0x52')][_0x4379('0x99')](),_0x2c5b7f=_0x3315be['markerRange'][_0x4379('0x23')],_0x5b4725=_0x23e542[_0x4379('0x71')][_0x4379('0xf2')];let _0xee8bee=null,_0x21e26f=null,_0x736e20=!0x1,_0x33f9c5=!0x1;for(const _0x414824 of _0x8c5640){const _0x39e866=_0x414824[_0x4379('0x30')];_0x736e20=_0x736e20||_0x5b4725[_0x4379('0xd3')](_0x39e866);const _0xf26cf=_0x58e7a[_0x4379('0x8a')]['toViewElement'](_0x39e866);if(_0xf26cf&&_0xf26cf[_0x4379('0x7')](_0x4379('0xbf')))return;_0x4379('0x76')==_0x414824['type']&&(_0x5b4725['isBlock'](_0x39e866)&&!_0x5b4725['isLimit'](_0x39e866)&&(_0x39e866[_0x4379('0xed')]||_0x2c5b7f[_0x4379('0xc6')]?_0xee8bee&&_0xee8bee['parent']==_0x39e866||(_0xee8bee=_0x39e866,_0x41a2f8(_0x414824['previousPosition']),_0x33f9c5=!0x0):_0x21e26f=_0x21e26f||_0x414824[_0x4379('0x7a')]));}function _0x41a2f8(_0x4d59b9){const _0x2d8e99=_0x58e7a[_0x4379('0x32')][_0x4379('0xf4')](_0x4379('0x8b'),{'class':_0x4379('0x117')+_0x1d2c99}),_0x48b3a6=_0x58e7a[_0x4379('0x8a')][_0x4379('0x1f')](_0x4d59b9);_0x2328e8[_0x4379('0xac')][_0x4379('0xef')]&&_0x58e7a[_0x4379('0x32')][_0x4379('0xdc')]('ck-suggestion-marker-'+_0x1d2c99+_0x4379('0xe3'),_0x2d8e99),_0x2a314f[_0x4379('0x72')]==_0x2328e8&&_0x58e7a[_0x4379('0x32')][_0x4379('0xdc')](_0x4379('0x91'),_0x2d8e99),_0x58e7a[_0x4379('0x32')][_0x4379('0x40')](_0x48b3a6,_0x2d8e99),_0x58e7a[_0x4379('0x8a')]['bindElementToMarker'](_0x2d8e99,_0x3315be[_0x4379('0xfa')]);}_0x736e20||_0x33f9c5||!_0x21e26f||_0x41a2f8(_0x21e26f);};}(this[_0x4379('0xd6')]),{'priority':_0x4379('0xe0')}),this[_0x4379('0xd6')][_0x4379('0x58')][_0x4379('0xe2')]['on'](_0x4379('0xa1'),(_0x4907cf,_0x2afc5e,_0x4c5e5e)=>{const _0x4a5511=_0x4c5e5e['mapper'][_0x4379('0x60')](_0x2afc5e['markerName']);if(_0x4a5511)for(const _0x2a5ee5 of _0x4a5511)(_0x2a5ee5[_0x4379('0x98')](_0x4379('0x62'))||_0x2a5ee5[_0x4379('0x98')](_0x4379('0xa6')))&&(_0x4c5e5e[_0x4379('0x8a')][_0x4379('0x9c')](_0x2a5ee5,_0x2afc5e['markerName']),_0x4c5e5e['writer'][_0x4379('0x6c')](_0x2a5ee5));},{'priority':_0x4379('0xe0')}),this[_0x4379('0xd6')][_0x4379('0x58')]['downcastDispatcher']['on']('addMarker:revision',(_0x10bdf7,_0x3a7f98,_0x2e3390)=>{const _0x4eccda=_0x3a7f98[_0x4379('0xfa')][_0x4379('0x106')](':')[0x1],_0x3505e5=this['_getChangeFromId'](_0x4eccda);if(!_0x3505e5)return null;const _0x5a8494=_0x4379('0x48')==_0x3505e5[_0x4379('0x5b')]?_0x4379('0x106'):_0x4379('0xe9');if(_0x2e3390[_0x4379('0xc')]['test'](_0x3a7f98['markerRange'],_0x10bdf7[_0x4379('0x35')]))for(const _0x56f14d of _0x3a7f98[_0x4379('0x52')]['getItems']()){if(!_0x56f14d['is'](_0x4379('0x4b'),_0x4379('0x3a')))continue;const _0x4477f8=_0x2e3390[_0x4379('0x32')][_0x4379('0xf4')](_0x4379('0x8b'),{'class':'ck-suggestion-marker-'+_0x5a8494}),_0x4f5952=_0x2e3390[_0x4379('0x8a')][_0x4379('0x1f')](this['editor'][_0x4379('0x71')][_0x4379('0x90')](_0x56f14d));_0x3505e5[_0x4379('0xac')][_0x4379('0xef')]&&_0x2e3390[_0x4379('0x32')]['addClass'](_0x4379('0x117')+_0x5a8494+_0x4379('0xe3'),_0x4477f8),this[_0x4379('0x72')]==_0x3505e5&&_0x2e3390['writer']['addClass'](_0x4379('0x91'),_0x4477f8),_0x2e3390['writer'][_0x4379('0x40')](_0x4f5952,_0x4477f8),_0x2e3390['mapper'][_0x4379('0x100')](_0x4477f8,_0x3a7f98[_0x4379('0xfa')]);}},{'priority':'high'}),this[_0x4379('0xd6')][_0x4379('0x71')][_0x4379('0xe8')]['on'](_0x4379('0xb4'),()=>{this['editor'][_0x4379('0x58')][_0x4379('0xa7')][_0x4379('0xb4')](_0xb97fe3=>{for(const _0x22fa1e of this[_0x4379('0xd6')][_0x4379('0x71')]['document']['getRootNames']()){const _0x262b03=this['editor'][_0x4379('0x71')]['document'][_0x4379('0x43')](_0x22fa1e),_0xb62f6=this[_0x4379('0xd6')][_0x4379('0x58')][_0x4379('0xa7')][_0x4379('0xe8')][_0x4379('0x43')](_0x22fa1e);if(_0xb62f6){const _0x36827e=_0x262b03[_0x4379('0x68')]('revisionHistoryAttachChange');if(_0xb97fe3[_0x4379('0x55')]('data-change-id',_0xb62f6),_0xb97fe3[_0x4379('0xc7')](_0x4379('0x20'),_0xb62f6),_0xb97fe3['removeClass'](_0x4379('0xff'),_0xb62f6),_0xb97fe3[_0x4379('0xc7')](_0x4379('0x119'),_0xb62f6),_0x36827e){const _0x2ad120=this[_0x4379('0x9e')](_0x36827e);if(!_0x2ad120)return null;_0xb97fe3[_0x4379('0x102')](_0x4379('0x5e'),_0x36827e,_0xb62f6),_0xb97fe3[_0x4379('0xdc')](_0x4379('0x89')+_0x2ad120['type'],_0xb62f6),this[_0x4379('0x72')]==_0x2ad120&&_0xb97fe3[_0x4379('0xdc')]('ck-revision-history-root--active',_0xb62f6);}}}});}),this['editor'][_0x4379('0xea')][_0x4379('0xba')]('upcast')[_0x4379('0x81')]({'view':_0x4379('0x64'),'model':_0x4066a9=>_0x4379('0x21')+_0x4066a9,'converterPriority':'highest'}),this[_0x4379('0xd6')][_0x4379('0xea')][_0x4379('0xba')](_0x4379('0xd1'))[_0x4379('0x81')]({'view':_0x4379('0xe'),'model':_0x32a072=>'revision-suggestion:'+_0x32a072,'converterPriority':'highest'}),this['editor']['conversion'][_0x4379('0xba')](_0x4379('0x15'))[_0x4379('0x2f')]({'model':'revision-suggestion','view':_0x12d070=>({'name':'suggestion:'+_0x12d070,'group':_0x4379('0x83')}),'converterPriority':_0x4379('0xc2')}),this[_0x4379('0xd6')][_0x4379('0xea')][_0x4379('0xba')](_0x4379('0x1a'))[_0x4379('0x10e')]({'model':_0x4379('0x83'),'view':_0x87e921=>{const _0xedc8de=_0x87e921['markerName'][_0x4379('0x106')](':')[0x1];return _0x4379('0xb7')!=_0xedc8de&&_0x4379('0x10a')!=_0xedc8de?null:{'classes':['ck-suggestion-preview-marker',_0x4379('0xd2')+_0xedc8de]};}}),this['editor'][_0x4379('0x58')][_0x4379('0xe2')]['on'](_0x4379('0xb2'),et(this[_0x4379('0xd6')],_0x4379('0xe9')),{'priority':_0x4379('0xe0')}),this[_0x4379('0xd6')]['editing'][_0x4379('0xe2')]['on'](_0x4379('0xdf'),et(this['editor'],_0x4379('0x106')),{'priority':_0x4379('0xe0')}),this['editor'][_0x4379('0x58')][_0x4379('0xe2')]['on'](_0x4379('0x36'),(_0x5f5af5,_0x2385fd,_0x3965c3)=>{const _0x350463=_0x3965c3[_0x4379('0x8a')]['markerNameToElements'](_0x2385fd[_0x4379('0xfa')]);if(_0x350463)for(const _0x536b9d of _0x350463)_0x536b9d['is'](_0x4379('0x5a'))&&(_0x3965c3['mapper'][_0x4379('0x9c')](_0x536b9d,_0x2385fd[_0x4379('0xfa')]),_0x3965c3[_0x4379('0x32')][_0x4379('0x6c')](_0x536b9d));},{'priority':_0x4379('0xe0')});}[_0x4379('0x9e')](_0x10bed5){return this[_0x4379('0x34')]['get'](_0x10bed5);}['_getViewForChange'](_0x1ba7aa){return this['_changeView']&&this[_0x4379('0x47')]['destroy'](),this[_0x4379('0x47')]=new _0x531d7c(this['editor']['locale'],_0x1ba7aa),this['_changeView'];}['_initInteractions'](){this[_0x4379('0xd6')][_0x4379('0x71')][_0x4379('0xe8')][_0x4379('0x7b')][_0x4379('0x19')](_0x4379('0xfd')),this['on'](_0x4379('0xf'),(_0x32deee,_0x28597f,_0x12168f,_0x36fc6c)=>{_0x36fc6c&&this['_balloon'][_0x4379('0x6c')](_0x36fc6c),_0x12168f&&(this[_0x4379('0x26')]['add']({'view':_0x12168f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x749f7f=this[_0x4379('0xd6')][_0x4379('0x58')],_0x47eab6=this[_0x4379('0x9e')](_0x12168f[_0x4379('0x4d')]);let _0xc4f5ba;if(_0x47eab6['data'][_0x4379('0x3f')]){const _0x55da6e=_0x749f7f[_0x4379('0xa7')]['getDomRoot'](_0x47eab6[_0x4379('0xa2')]);_0xc4f5ba=Array[_0x4379('0x2e')](_0x55da6e['getClientRects']());}else{const _0x5d87e2=this[_0x4379('0xd6')]['model'][_0x4379('0x79')][_0x4379('0x61')](_0x4379('0x1e')+_0x12168f[_0x4379('0x4d')]);_0xc4f5ba=Array[_0x4379('0x2e')](_0x749f7f['mapper']['markerNameToElements'](_0x5d87e2[_0x4379('0x35')]))[_0x4379('0x3b')](_0x114e40=>_0x749f7f['view'][_0x4379('0x86')]['mapViewToDom'](_0x114e40))['map'](_0x4d03d5=>Array[_0x4379('0x2e')](_0x4d03d5[_0x4379('0x84')]()))[_0x4379('0x10c')]();}if(!this[_0x4379('0x18')])return _0xc4f5ba[0x0];return _0xc4f5ba[_0x4379('0x63')](_0x424193=>_0x424193[_0x4379('0x2')]-0x3<=this[_0x4379('0x18')]['y']&&_0x424193[_0x4379('0x12')]+0x3>=this[_0x4379('0x18')]['y']&&_0x424193[_0x4379('0xb8')]-0x3<=this[_0x4379('0x18')]['x']&&_0x424193[_0x4379('0x9d')]+0x3>=this[_0x4379('0x18')]['x'])||_0xc4f5ba[0x0];}}}),this[_0x4379('0x26')]['showStack']('revisionHistoryLabel'));}),this['on'](_0x4379('0xbc'),(_0x5ee6a2,_0x3bdc81,_0x4a8a4e,_0x41fbb9)=>{this['activeView']=_0x4a8a4e?this['_getViewForChange'](_0x4a8a4e):null,this[_0x4379('0xd6')]['model']['change'](()=>{const _0x2ceca3=this[_0x4379('0xd6')]['editing'];_0x41fbb9&&(_0x41fbb9[_0x4379('0xac')][_0x4379('0x3f')]?_0x2ceca3[_0x4379('0xa7')]['change'](_0x562a43=>{_0x562a43[_0x4379('0xc7')]('ck-revision-history-root--active',_0x2ceca3['view'][_0x4379('0xe8')][_0x4379('0x43')](_0x41fbb9[_0x4379('0xa2')]));}):_0x2ceca3[_0x4379('0xd9')]('revision:'+_0x41fbb9['id'])),_0x4a8a4e&&(_0x4a8a4e[_0x4379('0xac')][_0x4379('0x3f')]?_0x2ceca3['view'][_0x4379('0xb4')](_0x14d4bf=>{_0x14d4bf[_0x4379('0xdc')]('ck-revision-history-root--active',_0x2ceca3['view'][_0x4379('0xe8')][_0x4379('0x43')](_0x4a8a4e[_0x4379('0xa2')]));}):_0x2ceca3[_0x4379('0xd9')](_0x4379('0x1e')+_0x4a8a4e['id']));});}),this[_0x4379('0xb9')](this['editor'][_0x4379('0x58')][_0x4379('0xa7')][_0x4379('0xe8')],'mouseover',(_0xd1dfd2,_0x2d8f7f)=>{if(this[_0x4379('0x72')])return;const _0x10d632=this[_0x4379('0x77')](_0x2d8f7f[_0x4379('0x96')]),_0x904d6d=this[_0x4379('0x34')]['get'](_0x10d632);_0x904d6d?(this[_0x4379('0x18')]={'x':_0x2d8f7f['domEvent']['x'],'y':_0x2d8f7f['domEvent']['y']},this['activeView']=this[_0x4379('0xab')](_0x904d6d)):(this[_0x4379('0x18')]=null,this[_0x4379('0xa8')]=null);}),this[_0x4379('0xb9')](this[_0x4379('0xd6')][_0x4379('0x58')][_0x4379('0xa7')][_0x4379('0xe8')],_0x4379('0x38'),(_0xe07ccc,_0x56d53c)=>{const _0x4326a8=this[_0x4379('0x77')](_0x56d53c[_0x4379('0x96')]),_0x280b83=this[_0x4379('0x34')][_0x4379('0x61')](_0x4326a8);_0x280b83?(this[_0x4379('0x18')]={'x':_0x56d53c[_0x4379('0xce')]['x'],'y':_0x56d53c[_0x4379('0xce')]['y']},_0x280b83===this['activeChange']?this[_0x4379('0x26')]['updatePosition']():this[_0x4379('0x72')]=_0x280b83):(this[_0x4379('0x18')]=null,this[_0x4379('0x72')]=null);});}[_0x4379('0x77')](_0x3133ae){do{const _0x6e989a=_0x3133ae[_0x4379('0x68')](_0x4379('0x5e'));if(_0x6e989a)return _0x6e989a;_0x3133ae=_0x3133ae[_0x4379('0x9b')];}while(_0x3133ae);return null;}['_cleanMarkers'](){this['editor'][_0x4379('0x71')][_0x4379('0xb4')](_0x2e858c=>{for(const _0x325d3e of this['editor']['model'][_0x4379('0x79')])_0x2e858c[_0x4379('0x85')](_0x325d3e);});}}function et(_0x56c379,_0x520828){return(_0x74cadd,_0x31373e,_0x5a048e)=>{if(!_0x5a048e[_0x4379('0xc')][_0x4379('0xb6')](_0x31373e[_0x4379('0x52')],_0x74cadd[_0x4379('0x35')]))return;const _0x460c39=_0x31373e[_0x4379('0x52')]['getWalker'](),_0x45e536=_0x31373e[_0x4379('0x52')][_0x4379('0x23')],_0xd79e6d=_0x56c379[_0x4379('0x71')][_0x4379('0xf2')];let _0x3f6b2b=null,_0x3b77ff=null,_0x3961be=!0x1,_0x100e59=!0x1;for(const _0x1b474b of _0x460c39){const _0x3f4369=_0x1b474b[_0x4379('0x30')];_0x3961be=_0x3961be||_0xd79e6d['isContent'](_0x3f4369);const _0x341f08=_0x5a048e[_0x4379('0x8a')][_0x4379('0xf8')](_0x3f4369);if(_0x341f08&&_0x341f08[_0x4379('0x7')]('addHighlight'))return;_0x4379('0x76')==_0x1b474b['type']&&(_0xd79e6d[_0x4379('0x8d')](_0x3f4369)&&!_0xd79e6d[_0x4379('0x107')](_0x3f4369)&&(_0x3f4369[_0x4379('0xed')]||_0x45e536[_0x4379('0xc6')]?_0x3f6b2b&&_0x3f6b2b[_0x4379('0x9b')]==_0x3f4369||(_0x3f6b2b=_0x3f4369,_0x20cd4b(_0x1b474b['previousPosition']),_0x100e59=!0x0):_0x3b77ff=_0x3b77ff||_0x1b474b[_0x4379('0x7a')]));}function _0x20cd4b(_0x4884d0){const _0x12618f=_0x5a048e[_0x4379('0x8a')][_0x4379('0x1f')](_0x4884d0),_0x2f9671=_0x5a048e[_0x4379('0x32')][_0x4379('0xf4')](_0x4379('0x8b'),{'class':_0x4379('0xd2')+_0x520828});_0x5a048e[_0x4379('0x32')][_0x4379('0x40')](_0x12618f,_0x2f9671),_0x5a048e[_0x4379('0x8a')]['bindElementToMarker'](_0x2f9671,_0x31373e[_0x4379('0xfa')]);}_0x3961be||_0x100e59||!_0x3b77ff||_0x20cd4b(_0x3b77ff);};}export class RestoreRevisionCommand extends _0xa6b9bf{constructor(_0x37d980){super(_0x37d980);const _0xbed36=_0x37d980[_0x4379('0xa')][_0x4379('0x61')](d);this[_0x4379('0x2b')]=!0x1,this[_0x4379('0xb9')](_0xbed36,'change:isReady',()=>this[_0x4379('0xd8')]()),this[_0x4379('0xb9')](_0xbed36,'change:isEnabled',()=>this[_0x4379('0xd8')]());}['execute'](){const _0x152dbc=this[_0x4379('0xd6')],_0x455d77=_0x152dbc[_0x4379('0xa')][_0x4379('0x61')](d),_0x54d2c6=_0x455d77[_0x4379('0x2d')]?_0x455d77[_0x4379('0xd4')][_0x4379('0xe4')]:null;_0x152dbc[_0x4379('0x109')][_0x4379('0x61')](_0x4379('0xde'))[_0x4379('0x7c')](_0x54d2c6);}[_0x4379('0xd8')](){const {isReady:_0x1ff437,isEnabled:_0x42edc4}=this[_0x4379('0xd6')][_0x4379('0xa')]['get'](d);this['isEnabled']=_0x1ff437&&_0x42edc4;}}export class ShowChangeCommand extends _0xa6b9bf{constructor(_0x2ebdd4,{direction:_0x387e91}){super(_0x2ebdd4);const _0x3cfd71=_0x2ebdd4['plugins'][_0x4379('0x61')](d);this['affectsData']=!0x1,this[_0x4379('0xa4')]='forward'===_0x387e91?0x1:-0x1,this[_0x4379('0xb9')](_0x3cfd71,_0x4379('0xcb'),()=>this[_0x4379('0xd8')]()),this[_0x4379('0xb9')](_0x3cfd71,_0x4379('0x8'),()=>this[_0x4379('0xd8')]());}['execute'](){const _0x267829=this['editor'],_0x521d72=_0x267829[_0x4379('0xa')]['get'](d),{isNavigationMode:_0x439d92,currentChangeNumber:_0x2dc23d}=_0x521d72;let _0x45af53;if(_0x521d72[_0x4379('0x72')]=_0x439d92?_0x521d72[_0x4379('0xd4')][_0x4379('0xbe')][_0x4379('0x61')](_0x2dc23d+this['_step']):_0x521d72['diff'][_0x4379('0xbe')]['first'],_0x521d72['activeChange'][_0x4379('0xac')][_0x4379('0x3f')])_0x45af53=_0x267829['editing'][_0x4379('0xa7')][_0x4379('0x104')](_0x521d72[_0x4379('0x72')][_0x4379('0xa2')]);else{const _0x59da2d=_0x267829[_0x4379('0x71')][_0x4379('0x79')][_0x4379('0x61')]('revision:'+_0x521d72[_0x4379('0x72')]['id']);_0x45af53=_0x42256b(_0x267829['editing'],_0x59da2d);}_0x4c40f1({'target':_0x45af53,'viewportOffset':0x28});}[_0x4379('0xd8')](){const {isNavigationMode:_0x54fb14,currentChangeNumber:_0x40a006,numberOfChanges:_0x8ecac4,isReady:_0xf701d,isEnabled:_0x5a499f}=this[_0x4379('0xd6')][_0x4379('0xa')]['get'](d);this[_0x4379('0xf3')]=!!(_0x5a499f&&_0xf701d&&_0x8ecac4)&&(!_0x54fb14||(0x1===this[_0x4379('0xa4')]?_0x40a006<_0x8ecac4-0x1:_0x40a006>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x493f=['children','isActionsDropdownOpen','_action','set','locale','panelPosition','Restore\x20this\x20revision','map','threeVerticalDots','model','Name\x20this\x20revision','name','buttonView','change:isActionsDropdownOpen','class','add','isOpen','isEnabled','extendTemplate','first','isVisible','bindTemplate','execute','ck-revision-history-sidebar__revision__actions','bind','items','source','action','button','ck-on'];(function(_0x52f3eb,_0x493f75){const _0x5df5e5=function(_0x176eb3){while(--_0x176eb3){_0x52f3eb['push'](_0x52f3eb['shift']());}};_0x5df5e5(++_0x493f75);}(_0x493f,0x1c0));const _0x5df5=function(_0x52f3eb,_0x493f75){_0x52f3eb=_0x52f3eb-0x0;let _0x5df5e5=_0x493f[_0x52f3eb];return _0x5df5e5;};import{Collection as _0x114484}from'ckeditor5/src/utils';import{icons as _0x5b7446}from'ckeditor5/src/core';import{Model as _0x20ec74,addListToDropdown as _0x35422d,createDropdown as _0xc14292}from'ckeditor5/src/ui';import{getTranslation as _0x38b8f4}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x323dda,_0x5f3d34){const _0xc71103=_0x323dda[_0x5df5('0x17')],_0x24d734=_0x323dda[_0x5df5('0x6')],_0x19ef89=_0xc14292(_0x24d734);_0x19ef89[_0x5df5('0x7')]='sw';const _0x25008f=function(_0x37389a,_0x3a62c1){const _0x18305f=function(_0x51f380,_0x443e8f){const _0xacbd3f=_0x51f380['locale'],_0x54fd28={'Compare\x20against\x20selected':_0x38b8f4(_0xacbd3f,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x38b8f4(_0xacbd3f,_0x5df5('0xc')),'Restore\x20this\x20revision':_0x38b8f4(_0xacbd3f,_0x5df5('0x8'))};return _0x443e8f[_0x5df5('0x9')](_0x3b548d=>{const _0x1f2127=_0x54fd28[_0x3b548d[_0x5df5('0xd')]];return _0x1f2127&&_0x1f2127!==_0x3b548d[_0x5df5('0xd')]&&(_0x3b548d['name']=_0x1f2127),_0x3b548d;});}(_0x37389a,_0x3a62c1),_0x19bb6c=new _0x114484();for(const _0x4f128d of _0x18305f){const _0x1e91d4={'type':_0x5df5('0x0'),'model':new _0x20ec74({'label':_0x4f128d[_0x5df5('0xd')],'class':_0x4f128d[_0x5df5('0x10')],'withText':!0x0,'_action':_0x4f128d[_0x5df5('0x1d')]})};_0x1e91d4[_0x5df5('0xb')][_0x5df5('0x1a')]('isEnabled')['to'](_0x37389a,_0x5df5('0x3'),_0x2c492a=>'function'!=typeof _0x4f128d[_0x5df5('0x13')]||(!_0x2c492a||_0x4f128d[_0x5df5('0x13')](_0x37389a))),_0x19bb6c[_0x5df5('0x11')](_0x1e91d4);}return _0x19bb6c;}(_0x323dda,_0x5f3d34);return _0x323dda[_0x5df5('0x1a')](_0x5df5('0x3'))['to'](_0x19ef89,_0x5df5('0x12')),_0x19ef89[_0x5df5('0xe')][_0x5df5('0x5')]({'label':_0x38b8f4(_0x24d734,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5b7446[_0x5df5('0xa')]}),_0x19ef89[_0x5df5('0x14')]({'attributes':{'class':[_0x5df5('0x19'),_0xc71103['if']('isActionsDropdownOpen',_0x5df5('0x1'))]},'on':{'click':_0xc71103['to'](_0x47ff69=>_0x47ff69['stopPropagation']())}}),_0x19ef89['on'](_0x5df5('0x18'),_0x18ca2f=>{_0x323dda['isReady']&&'function'==typeof _0x18ca2f[_0x5df5('0x1c')][_0x5df5('0x4')]&&_0x18ca2f[_0x5df5('0x1c')][_0x5df5('0x4')](_0x323dda);}),_0x35422d(_0x19ef89,_0x25008f),_0x19ef89['listenTo'](_0x323dda,_0x5df5('0xf'),(_0x2c69f6,_0x5e4f56,_0x4cb9d9)=>{if(_0x4cb9d9)for(const _0x3b25d4 of _0x19ef89['listView'][_0x5df5('0x1b')]){const _0x24afba=_0x3b25d4[_0x5df5('0x2')][_0x5df5('0x15')],_0x34ead7=_0x5f3d34['find'](_0x4516f6=>_0x4516f6['action']===_0x24afba['_action'])[_0x5df5('0x16')];_0x3b25d4['isVisible']=void 0x0===_0x34ead7||_0x34ead7(_0x323dda);}}),_0x19ef89;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b90=['Revision\x20creator','ck-revision-history-sidebar__revision-author_creator','ck-revision-history-sidebar__revision-author__name','push','Revision\x20author','name','set','span','ck-revision-history-sidebar__revision-author','setTemplate'];(function(_0x13251e,_0x2b904a){const _0x1fb8aa=function(_0x5e4e38){while(--_0x5e4e38){_0x13251e['push'](_0x13251e['shift']());}};_0x1fb8aa(++_0x2b904a);}(_0x2b90,0xb4));const _0x1fb8=function(_0x13251e,_0x2b904a){_0x13251e=_0x13251e-0x0;let _0x1fb8aa=_0x2b90[_0x13251e];return _0x1fb8aa;};import{View as _0x4803aa,IconView as _0x10c542}from'ckeditor5/src/ui';import{getTranslation as _0x41bafd}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x4b290f from'../../../theme/icons/user.svg';export default class ti extends _0x4803aa{constructor(_0x1e06e2,_0x2ead21,_0x5d754c){super(_0x1e06e2);const _0x285a68=new _0x10c542();_0x285a68[_0x1fb8('0x6')]({'content':_0x4b290f,'viewBox':'0\x200\x2011\x2010'});const _0x1c1679=['ck',_0x1fb8('0x8')];_0x5d754c&&_0x1c1679[_0x1fb8('0x3')](_0x1fb8('0x1'));const _0x498e00=[{'tag':_0x1fb8('0x7'),'attributes':{'class':['ck',_0x1fb8('0x2')],'title':_0x41bafd(_0x1e06e2,_0x5d754c?_0x1fb8('0x0'):_0x1fb8('0x4'))},'children':[_0x285a68,_0x2ead21[_0x1fb8('0x5')]]}];this[_0x1fb8('0x9')]({'tag':'li','attributes':{'class':_0x1c1679},'children':_0x498e00});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x23d4=['set','extendTemplate'];(function(_0x248817,_0x23d478){var _0x3cf5bf=function(_0x51e37c){while(--_0x51e37c){_0x248817['push'](_0x248817['shift']());}};_0x3cf5bf(++_0x23d478);}(_0x23d4,0xfd));var _0x3cf5=function(_0x248817,_0x23d478){_0x248817=_0x248817-0x0;var _0x3cf5bf=_0x23d4[_0x248817];return _0x3cf5bf;};import{LabeledFieldView as _0x35f02e}from'ckeditor5/src/ui';import{getTranslation as _0x1fa2fb}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x35f02e{constructor(_0x232c1b,_0x5e9459){super(_0x232c1b,_0x5e9459),this[_0x3cf5('0x1')]({'label':_0x1fa2fb(_0x232c1b,'Revision\x20name')}),this[_0x3cf5('0x0')]({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bd2=['_createdAtFormatted','isActionsDropdownOpen','ck-revision-history-sidebar__revision','revisionActionsView','isSelected','createdAt','isHighlighted','isEnabled','set','fieldView','ck-revision-history-sidebar__revision__controls-wrapper','change','value','name','bind','ck-revision-history-sidebar__revision__date','bindTemplate','setTemplate','setName','render','ck-revision-history-sidebar__revision_highlighted','unshift','unhighlight','uiLanguage','closest','length','ck-revision-history-sidebar__actions_dropdown_open','creator','select','revisionNameView','from','isReady','fire','ck-revision-history-sidebar__revision-wrapper','filter','isConfirm','map','element','220','div','span','highlight','extendTemplate','deselect','ck-revision-history-sidebar__revision-authors','ck-reset'];(function(_0xe72fe9,_0x4bd299){const _0x591c2d=function(_0x381bcc){while(--_0x381bcc){_0xe72fe9['push'](_0xe72fe9['shift']());}};_0x591c2d(++_0x4bd299);}(_0x4bd2,0xa0));const _0x591c=function(_0xe72fe9,_0x4bd299){_0xe72fe9=_0xe72fe9-0x0;let _0x591c2d=_0x4bd2[_0xe72fe9];return _0x591c2d;};import{View as _0x385d30,createLabeledInputText as _0x5483b6}from'ckeditor5/src/ui';import{ConfirmMixin as _0x567fa8}from'ckeditor5-collaboration/src/collaboration-core';import _0x1d616d from'./revisionnameview';import _0x4b0eee from'./revisionauthorview';import{dateToPrettyFormat as _0x12e496}from'./utils';import{createActionsDropdownView as _0x3856ae}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x567fa8(_0x385d30){constructor(_0x393b20,_0xe069da,_0x5d5b4f){super(_0x393b20);const _0x24db21=this[_0x591c('0x28')],_0x2fff2f=function(_0x2947e5,_0x444b37){const _0x723cc0=Array[_0x591c('0x8')](_0x444b37['authors'])[_0x591c('0xc')](_0x135149=>_0x135149!=_0x444b37['creator']);return _0x444b37[_0x591c('0x5')]&&_0x723cc0[_0x591c('0x2d')](_0x444b37[_0x591c('0x5')]),_0x723cc0[_0x591c('0xe')](_0x448878=>new _0x4b0eee(_0x2947e5,_0x448878,_0x448878==_0x444b37[_0x591c('0x5')]));}(_0x393b20,_0xe069da);this['id']=_0xe069da['id'],this['_revision']=_0xe069da,this['bind'](_0x591c('0x25'),_0x591c('0x1d'))['to'](_0xe069da),this[_0x591c('0x26')](_0x591c('0x18'))['to'](this,'createdAt',_0x319303=>_0x319303?_0x12e496(_0x393b20[_0x591c('0x1')],_0x319303):void 0x0),this[_0x591c('0x20')](_0x591c('0x1c'),!0x1),this['set'](_0x591c('0x1e'),!0x1),this[_0x591c('0x20')]('isActionsDropdownOpen',!0x1),this[_0x591c('0x20')]('isReady',!0x1),this[_0x591c('0x20')](_0x591c('0x1f'),!0x1),this['revisionNameView']=new _0x1d616d(_0x393b20,_0x5483b6),this[_0x591c('0x7')][_0x591c('0x21')][_0x591c('0x14')]({'attributes':{'maxlength':_0x591c('0x10')}}),this['revisionNameView'][_0x591c('0x21')]['bind'](_0x591c('0x24'),'placeholder')['to'](this,_0x591c('0x25'),_0x591c('0x18')),this['revisionNameView'][_0x591c('0x26')](_0x591c('0x1f'))['to'](this,'isSelected',this,_0x591c('0x1f'),(_0x7ea9aa,_0x51e468)=>_0x7ea9aa&&_0x51e468),this[_0x591c('0x1b')]=_0x5d5b4f&&_0x5d5b4f[_0x591c('0x3')]?_0x3856ae(this,_0x5d5b4f):'',this[_0x591c('0x1b')]&&this['revisionActionsView'][_0x591c('0x26')]('isEnabled')['to'](this),this[_0x591c('0x29')]({'tag':_0x591c('0x11'),'attributes':{'class':['ck',_0x591c('0x17'),_0x591c('0xb'),_0x24db21['if'](_0x591c('0xd'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':_0x591c('0x11'),'attributes':{'class':['ck',_0x591c('0x17'),_0x591c('0x1a'),_0x24db21['if']('isEnabled','ck-disabled',_0x47b2b9=>!_0x47b2b9),_0x24db21['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x24db21['if'](_0x591c('0x1e'),_0x591c('0x2c')),_0x24db21['if'](_0x591c('0x19'),_0x591c('0x4'))]},'children':[this[_0x591c('0x7')],{'tag':_0x591c('0x12'),'attributes':{'class':['ck',_0x591c('0x27')]},'children':[{'text':_0x24db21['to'](_0x591c('0x18'))}]},{'tag':'div','attributes':{'class':['ck',_0x591c('0x22')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x591c('0x16')]},'children':_0x2fff2f}]},this[_0x591c('0x1b')]],'on':{'click':_0x24db21['to'](_0x586ae9=>{_0x586ae9['srcElement'][_0x591c('0x2')]('.ck-thread__remove-confirm')||this[_0x591c('0x9')]&&this[_0x591c('0x1f')]&&this[_0x591c('0xa')](_0x591c('0x6'),{'id':this['id']});})}}]});}[_0x591c('0x2b')](){super['render']();const _0x584fae=this[_0x591c('0x7')][_0x591c('0x21')][_0x591c('0xf')];this['listenTo'](_0x584fae,_0x591c('0x23'),()=>{this[_0x591c('0xa')](_0x591c('0x2a'),{'id':this['id'],'name':_0x584fae[_0x591c('0x24')]});});}[_0x591c('0x6')](){this[_0x591c('0x1c')]=!0x0;}[_0x591c('0x15')](){this[_0x591c('0x1c')]=!0x1;}[_0x591c('0x13')](){this['isHighlighted']=!0x0;}[_0x591c('0x0')](){this[_0x591c('0x1e')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55f6=['ck-revision-history-sidebar__subrevision-collapser_collapsed','set','ck-revision-history-sidebar__subrevision-collapser','isVisible','bindTemplate','ck-revision-history-sidebar__subrevision-collapser__inner','span','toggle','_isCollapsed'];(function(_0x48cd9f,_0x55f653){const _0x50f82c=function(_0x34dd75){while(--_0x34dd75){_0x48cd9f['push'](_0x48cd9f['shift']());}};_0x50f82c(++_0x55f653);}(_0x55f6,0x196));const _0x50f8=function(_0x48cd9f,_0x55f653){_0x48cd9f=_0x48cd9f-0x0;let _0x50f82c=_0x55f6[_0x48cd9f];return _0x50f82c;};import{View as _0x208bfd}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x208bfd{constructor(_0x553a35){super(_0x553a35);const _0x52d395=this[_0x50f8('0x3')];this[_0x50f8('0x0')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x50f8('0x5'),'attributes':{'class':['ck',_0x50f8('0x1'),_0x52d395['if'](_0x50f8('0x2'),'ck-hidden',_0x5382d2=>!_0x5382d2),_0x52d395['if'](_0x50f8('0x7'),_0x50f8('0x8'))],'role':'button','aria-pressed':_0x52d395['to'](_0x50f8('0x7'),_0x143727=>_0x143727?'false':'true')},'children':[{'tag':_0x50f8('0x5'),'attributes':{'class':['ck',_0x50f8('0x4')]}}],'on':{'click':_0x52d395['to']('click')}});}[_0x50f8('0x6')](){this[_0x50f8('0x7')]=!this[_0x50f8('0x7')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2923=['createdAt','_createdAtFormatted','bind','div','setTemplate','ck-revision-history-sidebar__revision','bindTemplate','isSelected','select','set','ck-reset','uiLanguage','creator','deselect'];(function(_0x55ed57,_0x292390){const _0x52c32e=function(_0x1921ea){while(--_0x1921ea){_0x55ed57['push'](_0x55ed57['shift']());}};_0x52c32e(++_0x292390);}(_0x2923,0x1cd));const _0x52c3=function(_0x55ed57,_0x292390){_0x55ed57=_0x55ed57-0x0;let _0x52c32e=_0x2923[_0x55ed57];return _0x52c32e;};import{View as _0x15998c}from'ckeditor5/src/ui';import _0x32b0a3 from'./revisionauthorview';import{dateToPrettyFormat as _0x57a414}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x15998c{constructor(_0x58c3d1,_0x8b072a,_0x3c22b6){super(_0x58c3d1);const _0x4e817e=this[_0x52c3('0x7')];this['id']=_0x8b072a['id'],this[_0x52c3('0x3')](_0x52c3('0x1'))['to'](_0x8b072a),this[_0x52c3('0xa')](_0x52c3('0x8'),!0x1),this[_0x52c3('0x3')]('_createdAtFormatted')['to'](this,_0x52c3('0x1'),_0x27c9a9=>_0x27c9a9?_0x57a414(_0x58c3d1[_0x52c3('0xc')],_0x27c9a9):void 0x0),this['_parentRevisionId']=_0x3c22b6,this[_0x52c3('0x5')]({'tag':_0x52c3('0x4'),'attributes':{'class':['ck',_0x52c3('0xb'),_0x52c3('0x6'),'ck-revision-history-sidebar__subrevision',_0x4e817e['if'](_0x52c3('0x8'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x4e817e['to'](_0x52c3('0x2'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x32b0a3(_0x58c3d1,_0x8b072a[_0x52c3('0xd')],!0x0)]}],'on':{'click':_0x4e817e['to'](this[_0x52c3('0x9')]['bind'](this))}});}[_0x52c3('0x9')](){this['isSelected']=!0x0,this['fire'](_0x52c3('0x9'),{'parentId':this['_parentRevisionId']});}[_0x52c3('0x0')](){this[_0x52c3('0x8')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5caf=['numeric','long','toLocaleDateString','toLocaleTimeString'];(function(_0x4bb129,_0x5caf91){var _0x1727d2=function(_0x4fc6e1){while(--_0x4fc6e1){_0x4bb129['push'](_0x4bb129['shift']());}};_0x1727d2(++_0x5caf91);}(_0x5caf,0x1a2));var _0x1727=function(_0x4bb129,_0x5caf91){_0x4bb129=_0x4bb129-0x0;var _0x1727d2=_0x5caf[_0x4bb129];return _0x1727d2;};export function dateToPrettyFormat(_0x49cad3,_0x5bd53e){return _0x5bd53e[_0x1727('0x0')](_0x49cad3,{'month':_0x1727('0x3'),'day':_0x1727('0x2')})+',\x20'+_0x5bd53e[_0x1727('0x1')](_0x49cad3,{'hour':_0x1727('0x2'),'minute':_0x1727('0x2')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e65=['revisionNameInputValue','delegate','trim','arrowdown','keystrokes','element','render','type','ck-button-save','set','stopPropagation','Save','focusFirst','Name\x20of\x20the\x20revision\x20(optional)','_focusCycler','execute','saveButtonView','ck-button-cancel','cancel','add','label','extendTemplate','form','_createRevisionNameInput','focusTracker','Cancel','tab','arrowup','check','revisionNameInputView','shift\x20+\x20tab','cancelButtonView','fieldView','value','submit','revisionName','_focusables','setTemplate','focus','arrowleft','ck-revision-history-save-revision-form','locale','reset'];(function(_0x3420eb,_0x1e65b7){const _0x1e63a5=function(_0x1cdb66){while(--_0x1cdb66){_0x3420eb['push'](_0x3420eb['shift']());}};_0x1e63a5(++_0x1e65b7);}(_0x1e65,0x13f));const _0x1e63=function(_0x3420eb,_0x1e65b7){_0x3420eb=_0x3420eb-0x0;let _0x1e63a5=_0x1e65[_0x3420eb];return _0x1e63a5;};import{icons as _0x4c0e8f}from'ckeditor5/src/core';import{ButtonView as _0x3b2b5f,FocusCycler as _0x4ba422,LabeledFieldView as _0x447f46,View as _0xaa03b7,ViewCollection as _0x471550,createLabeledInputText as _0x3596d9,injectCssTransitionDisabler as _0x32a811,submitHandler as _0x3a92c3}from'ckeditor5/src/ui';import{FocusTracker as _0xc70a7e,KeystrokeHandler as _0x5d22fb}from'ckeditor5/src/utils';import{getTranslation as _0x3c3428}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0xaa03b7{constructor(_0x33f0f7){super(_0x33f0f7),this[_0x1e63('0x6')]=new _0xc70a7e(),this[_0x1e63('0x1d')]=new _0x5d22fb(),this[_0x1e63('0x22')](_0x1e63('0x19'),''),this[_0x1e63('0xb')]=this[_0x1e63('0x5')](),this[_0x1e63('0x29')]=this['_createButton'](_0x3c3428(_0x33f0f7,_0x1e63('0x24')),_0x4c0e8f[_0x1e63('0xa')],_0x1e63('0x21')),this[_0x1e63('0x29')][_0x1e63('0x20')]=_0x1e63('0x10'),this[_0x1e63('0xd')]=this['_createButton'](_0x3c3428(_0x33f0f7,_0x1e63('0x7')),_0x4c0e8f[_0x1e63('0x0')],_0x1e63('0x2a'),_0x1e63('0x0')),this[_0x1e63('0x12')]=new _0x471550(),this[_0x1e63('0x27')]=new _0x4ba422({'focusables':this['_focusables'],'focusTracker':this[_0x1e63('0x6')],'keystrokeHandler':this[_0x1e63('0x1d')],'actions':{'focusPrevious':_0x1e63('0xc'),'focusNext':_0x1e63('0x8')}}),this[_0x1e63('0x13')]({'tag':_0x1e63('0x4'),'attributes':{'class':['ck',_0x1e63('0x16'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x1e63('0xb')],this[_0x1e63('0x29')],this[_0x1e63('0xd')]]}),_0x32a811(this);}[_0x1e63('0x1f')](){super[_0x1e63('0x1f')](),_0x3a92c3({'view':this}),([this[_0x1e63('0xb')],this[_0x1e63('0x29')],this[_0x1e63('0xd')]]['forEach'](_0x21df5f=>{this[_0x1e63('0x12')][_0x1e63('0x1')](_0x21df5f),this[_0x1e63('0x6')][_0x1e63('0x1')](_0x21df5f['element']);}),this[_0x1e63('0x1d')]['listenTo'](this[_0x1e63('0x1e')]));const _0x4515c3=_0x2b0b85=>_0x2b0b85[_0x1e63('0x23')]();this[_0x1e63('0x1d')][_0x1e63('0x22')]('arrowright',_0x4515c3),this[_0x1e63('0x1d')][_0x1e63('0x22')](_0x1e63('0x15'),_0x4515c3),this[_0x1e63('0x1d')]['set'](_0x1e63('0x9'),_0x4515c3),this[_0x1e63('0x1d')][_0x1e63('0x22')](_0x1e63('0x1c'),_0x4515c3);}[_0x1e63('0x14')](){this[_0x1e63('0x27')][_0x1e63('0x25')]();}get['revisionName'](){return this[_0x1e63('0xb')][_0x1e63('0xe')][_0x1e63('0x1e')][_0x1e63('0xf')][_0x1e63('0x1b')]();}set[_0x1e63('0x11')](_0x1dcef8){this[_0x1e63('0xb')][_0x1e63('0xe')][_0x1e63('0x1e')]['value']=_0x1dcef8[_0x1e63('0x1b')]();}[_0x1e63('0x18')](){this[_0x1e63('0xb')][_0x1e63('0xe')][_0x1e63('0x1e')][_0x1e63('0xf')]='';}['_createRevisionNameInput'](){const _0x580d36=new _0x447f46(this['locale'],_0x3596d9),_0x16775c=_0x580d36[_0x1e63('0xe')];return _0x16775c[_0x1e63('0x3')]({'attributes':{'maxlength':'220'}}),_0x580d36[_0x1e63('0x2')]=_0x3c3428(this[_0x1e63('0x17')],_0x1e63('0x26')),_0x16775c['on']('input',()=>{this[_0x1e63('0x19')]=_0x16775c['element'][_0x1e63('0xf')][_0x1e63('0x1b')]();}),_0x580d36;}['_createButton'](_0x469b98,_0x482d74,_0x5b481b,_0x20f1bf){const _0x1d7380=new _0x3b2b5f(this[_0x1e63('0x17')]);return _0x1d7380[_0x1e63('0x22')]({'label':_0x469b98,'icon':_0x482d74,'tooltip':!0x0}),_0x1d7380[_0x1e63('0x3')]({'attributes':{'class':_0x5b481b}}),_0x20f1bf&&_0x1d7380[_0x1e63('0x1a')](_0x1e63('0x28'))['to'](this,_0x20f1bf),_0x1d7380;}}
|