@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240201.0 → 0.0.0-nightly-20240203.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 +5 -5
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.d.ts +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 _0x2649=['model','_setChanges','ck-revision-history-root-remove','offsetSize','modelRange','findIndex','forEach','_changeIdToChange','refresh','softBreak','_cleanMarkers','_makeModelFromTape','-new','diffData','revision-comment:','toModel','_appendChild','enableReadOnlyMode','end','vid_end','wrap','isContent','error','nextSibling','getRevision','vid_start','listenTo','deletions','revision-end','isEqual','rootName','splice','markersStart','useFillerType','parent','high','POSITIVE_INFINITY','change:isReady','attributes','keys','isAfter','element:pre','_getRevisionsRange','locale','_revisions','observeMarkers','elementEnd','index','restoreRevisionCallback','_getChangeFromId','authors','done','_update','deletion','parse','diff','insertions','suggestion:','ck-suggestion-marker-split','pop','data','resolve','restoreRevision','loadRevisionData','_markSuggestions','destroy','element','_setConversion','processor','getDomRoot','_activeViewTarget','for','revision:','_cleanUp','level','viewItem','insertion','getWalker','isNavigationMode','getIndex','commands','ck-suggestion-preview-marker-','editingDowncast','ck-revision-history-root-','left','updatePosition','_removeMissingPairs','_data','isCollapsed','range','includes','activeChange','isAtEnd','showNextChange','WidgetToolbarRepository','dataDowncast','flat','toViewElement','markerNameToElements','schema','createPositionBefore','addMarker:revision-suggestion:deletion','ck-revision-history-root-add','showStack','getRevisionRootsAttributes','pairId','remove','hasClass','comment','domEvent','_threeWayMerge','editor','low','isLimit','ck-suggestion-marker-merge','forceDisabled','removeMarker','consumable','set','enqueueChange','markerName','downcastDispatcher','children','attributesBefore','startIndex','text','isObject','unshift','revision-viewer','indexOf','mousedown','startsWith','from','item','_getViewObj','push','shift','_refreshStartEndIndex','upcast','clear','createRevision','_setDistance','consume','revisionHistoryAttachChange','markers','side','conversion','_getDiff','_changeView','editing','compare','document','isBlock','_getViewForChange','_markMarkers','insert','createUIElement','revisionHistory','attachChange','_removeRevisionMarkers','right','isAdded','mouseover','removeMarker:revision-suggestion','backward','RevisionViewer','mapViewToDom','nextPosition','change:isEnabled','view','currentChangeNumber','addRevisionData','oldRevisionId','length','isEnabled','markerToData','values','attributesAfter','revision','distance','getRootNames','userId','isOnRoot','change','attribute:vid','target','addRevision','_step','dataToMarker','span','createRangeIn','data-change-id','get','slice','type','markerRange','catch','_makeModelFromViewString','addRoot','highest','createRange','delete','repository','toViewPosition','concat','_fixObsoleteTags','activeView','default','createPositionFromPath','removeClass','split','isAttached','bind','has','ck-editor__editable__overlay','revision-start','code','isRemoved','all','adapter','ck-revision-history-root--active','isBefore','changeId','mapper','find','_markInsertions','isRemoveSuggestion','getRevisionData','nodeAfter','_makeTape','getAttributes','setAttribute','checkAttribute','addClass','numberOfChanges','merge','ck-suggestion-marker','add','start','map','revisionHistoryLabel','_processTape','domConverter','ck-suggestion-marker-','abs','bindElementToMarker','previousPosition','newRevisionId','changes','filter','markersEnd','getCustomProperty','change:activeChange','reconvertMarker','pluginName','_removeUnsupportedChanges','bottom','isIncorrect','_balloon','uiElement','writer','maxOffset','removeAttribute','execute','string','test','isAddSuggestion','toData','addMarker:revision','unbindElementFromMarkerName','_markMismatchedRemovedTags','sort','isInline','showPreviousChange','getAttribute','elementToAttribute','elementStart','affectsData','plugins','isReady','endIndex','name','getItems','addHighlight','vid','getRoot','then','_sortAndFilterDiffChanges','config','_findChangeIdFromDomTarget','revision-suggestion'];(function(_0xfa2be5,_0x26494e){const _0xeb7d72=function(_0x2c9f62){while(--_0x2c9f62){_0xfa2be5['push'](_0xfa2be5['shift']());}};_0xeb7d72(++_0x26494e);}(_0x2649,0xa5));const _0xeb7d=function(_0xfa2be5,_0x26494e){_0xfa2be5=_0xfa2be5-0x0;let _0xeb7d72=_0x2649[_0xfa2be5];return _0xeb7d72;};import{Plugin as _0x2cdec0,Command as _0x45f7a9}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x7cc601}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x438a8a}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x5604cc,Element as _0x1cc4ae,Text as _0x3bd1f2,ViewDocumentFragment as _0x387dcb,ViewText as _0x2d39e5,ViewElement as _0x15953e,ViewContainerElement as _0x4c25b8,ViewAttributeElement as _0x3a3bdb,ViewEmptyElement as _0x2980a9,ViewRawElement as _0xc85b94,ViewUIElement as _0x47707a}from'ckeditor5/src/engine.js';import{Users as _0x12edd1,getMarkerDomElement as _0x4ea41f}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x172e38 from'./ui/revisionviewer/changedetailsview.js';import _0x4c4a32 from'./revisionsrepository.js';import _0x3bc349 from'./changeitem.js';import{default as _0x5892e4}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x440dc}from'lodash-es';const tt={'c':_0x4c25b8,'a':_0x3a3bdb,'e':_0x2980a9,'r':_0xc85b94,'u':_0x47707a};export default class d extends _0x2cdec0{static get[_0xeb7d('0x59')](){return _0xeb7d('0x0');}static get['requires'](){return[_0x12edd1,_0x438a8a,_0x4c4a32];}constructor(_0x3e38eb){super(_0x3e38eb),this[_0xeb7d('0x25')]=this[_0xeb7d('0xed')]['plugins']['get']('RevisionsRepository'),this[_0xeb7d('0xf4')](_0xeb7d('0xd9'),null),this[_0xeb7d('0xf4')](_0xeb7d('0x29'),null),this[_0xeb7d('0xc4')]=null,this[_0xeb7d('0xf4')](_0xeb7d('0xb5'),null),this[_0xeb7d('0xf4')](_0xeb7d('0x72'),!0x1),this[_0xeb7d('0xf4')](_0xeb7d('0x9'),!0x0),this['on'](_0xeb7d('0x3'),(_0x3975e2,_0x59c7f0,_0x495401)=>{this[_0xeb7d('0xd9')]=null,this['activeView']=null,this[_0xeb7d('0xed')][_0xeb7d('0x113')][_0xeb7d('0x4')][_0xeb7d('0x12')](_0xece6c6=>{for(const _0x49a621 of this[_0xeb7d('0xed')][_0xeb7d('0x113')][_0xeb7d('0x4')]['document']['roots'])_0x495401?_0xece6c6[_0xeb7d('0x2c')](_0xeb7d('0x31'),_0x49a621):_0xece6c6[_0xeb7d('0x44')](_0xeb7d('0x31'),_0x49a621);});}),this['bind'](_0xeb7d('0xcc'))['to'](this,_0xeb7d('0xd9'),_0x591796=>null!==_0x591796),this[_0xeb7d('0x2f')](_0xeb7d('0x5'))['to'](this,_0xeb7d('0x72'),this,_0xeb7d('0xb5'),this,_0xeb7d('0xd9'),(_0x2fbe1f,_0x34282c,_0x4843c3)=>_0x2fbe1f&&_0x4843c3?_0x34282c[_0xeb7d('0x53')][_0xeb7d('0xcd')](_0x4843c3):0x0),this['bind'](_0xeb7d('0x45'))['to'](this,_0xeb7d('0x72'),this,_0xeb7d('0xb5'),(_0x2b1b70,_0xef051d)=>_0x2b1b70?_0xef051d[_0xeb7d('0x53')][_0xeb7d('0x8')]:0x0),this[_0xeb7d('0x112')]=null,this[_0xeb7d('0x85')]=new Map(),this[_0xeb7d('0x36')]=null,this[_0xeb7d('0x5d')]=this['editor'][_0xeb7d('0x71')][_0xeb7d('0x1b')](_0x438a8a);}['init'](){const _0xde3bca=this[_0xeb7d('0xed')],_0x16dadb=new ShowChangeCommand(_0xde3bca,{'direction':_0xeb7d('0x122')}),_0x25e4f4=new ShowChangeCommand(_0xde3bca,{'direction':'forward'});(_0xde3bca[_0xeb7d('0xce')][_0xeb7d('0x48')](_0xeb7d('0x6c'),_0x16dadb),_0xde3bca['commands']['add'](_0xeb7d('0xdb'),_0x25e4f4),_0xde3bca[_0xeb7d('0xce')][_0xeb7d('0x48')](_0xeb7d('0xbc'),new RestoreRevisionCommand(_0xde3bca)),this['on']('change:numberOfChanges',()=>{_0x16dadb[_0xeb7d('0x86')](),_0x25e4f4[_0xeb7d('0x86')]();}),this[_0xeb7d('0xc1')](),this['_initInteractions'](),_0xde3bca[_0xeb7d('0x8f')](_0xeb7d('0xfe')),_0xde3bca[_0xeb7d('0x71')][_0xeb7d('0x30')](_0xeb7d('0xdc')))&&_0xde3bca['plugins']['get']('WidgetToolbarRepository')[_0xeb7d('0xf1')](_0xeb7d('0xfe'));}async[_0xeb7d('0x3e')](_0x34afc2){await this[_0xeb7d('0xbd')](_0x34afc2);const _0x228871={};for(const _0x5e1d45 in _0x34afc2[_0xeb7d('0x8b')]){if(_0x34afc2['diffData'][_0x5e1d45][_0xeb7d('0x11c')]&&!_0x34afc2[_0xeb7d('0x8b')][_0x5e1d45][_0xeb7d('0x11c')][_0xeb7d('0x2e')])continue;const _0x1ef4f0=this[_0xeb7d('0x11d')](JSON[_0xeb7d('0xb4')](_0x34afc2[_0xeb7d('0x8b')][_0x5e1d45]['insertions'])),_0x478730=this[_0xeb7d('0xed')][_0xeb7d('0x113')][_0xeb7d('0x4')]['document'],_0xb45012=new _0x387dcb(_0x478730,_0x1ef4f0['map'](_0x36c4c5=>this[_0xeb7d('0x104')](_0x36c4c5)));this[_0xeb7d('0xed')][_0xeb7d('0xba')][_0xeb7d('0xc2')][_0xeb7d('0x9f')]('marked'),_0x228871[_0x5e1d45]=this[_0xeb7d('0xed')][_0xeb7d('0xba')][_0xeb7d('0xc2')][_0xeb7d('0x66')](_0xb45012),this[_0xeb7d('0xed')][_0xeb7d('0xba')]['processor'][_0xeb7d('0x9f')](_0xeb7d('0x2a'));}return _0x228871;}async[_0xeb7d('0xe6')](_0x119761){await this[_0xeb7d('0xbd')](_0x119761);const _0x178965={};for(const _0xb8526d in _0x119761[_0xeb7d('0x8b')])_0x119761[_0xeb7d('0x8b')][_0xb8526d]['attachChange']&&!_0x119761[_0xeb7d('0x8b')][_0xb8526d][_0xeb7d('0x11c')][_0xeb7d('0x2e')]||(_0x178965[_0xb8526d]=_0x119761[_0xeb7d('0x8b')][_0xb8526d][_0xeb7d('0xc')]||{});return _0x178965;}[_0xeb7d('0x11d')](_0x2ae939){return(_0x2ae939=_0x2ae939[_0xeb7d('0x54')](_0x1d14a9=>!_0x1d14a9[_0xeb7d('0x74')]||_0xeb7d('0x32')!==_0x1d14a9[_0xeb7d('0x74')]&&_0xeb7d('0x9a')!==_0x1d14a9[_0xeb7d('0x74')]))[_0xeb7d('0x84')](_0x707dff=>{_0xeb7d('0x63')!=typeof _0x707dff&&(_0x707dff[_0xeb7d('0xf8')]=this[_0xeb7d('0x11d')](_0x707dff[_0xeb7d('0xf8')]),_0x707dff['attributes']=_0x707dff['attributes']['filter'](_0x2ec94f=>!_0x2ec94f[0x0][_0xeb7d('0x101')]('data-revision-')));}),_0x2ae939;}async[_0xeb7d('0x114')](_0x155f01,_0x23ef90,_0x58f864=!0x1){if(!this[_0xeb7d('0x9')])return;const _0x1b6fb6=this[_0xeb7d('0xb5')],_0x183a88=this[_0xeb7d('0x25')],_0x5cc62b=_0xeb7d('0x63')==typeof _0x155f01?_0x183a88[_0xeb7d('0x96')](_0x155f01):_0x155f01,_0x5ef1d9='string'==typeof _0x23ef90?_0x183a88[_0xeb7d('0x96')](_0x23ef90):_0x23ef90,_0x1368cc=_0x5cc62b['id'],_0x553fb2=_0x5ef1d9?_0x5ef1d9['id']:null;if(!_0x58f864&&this[_0xeb7d('0xb5')]&&this['diff'][_0xeb7d('0x52')]===_0x1368cc&&this['diff'][_0xeb7d('0x7')]===_0x553fb2)return Promise[_0xeb7d('0xbb')]();this[_0xeb7d('0x72')]=!0x1,this[_0xeb7d('0x29')]=null,this[_0xeb7d('0xd9')]=null,this[_0xeb7d('0xb5')]=new _0x5892e4(_0x1368cc,_0x553fb2);const _0x55b112=this[_0xeb7d('0xa8')](_0x5cc62b,_0x5ef1d9,!0x0)[_0xeb7d('0x4a')](_0xe32b75=>this['loadRevisionData'](_0xe32b75));return _0x55b112[_0xeb7d('0x105')](new Promise(_0x1ca307=>{setTimeout(_0x1ca307,0x14);})),Promise[_0xeb7d('0x35')](_0x55b112)[_0xeb7d('0x79')](()=>{if(!this[_0xeb7d('0x9')])return;this[_0xeb7d('0xc7')]();const _0x11a9c7=this[_0xeb7d('0x111')](_0x1368cc,_0x553fb2);for(const _0x2b4092 of _0x11a9c7[_0xeb7d('0x53')])this[_0xeb7d('0x85')]['set'](_0x2b4092['id'],_0x2b4092);this[_0xeb7d('0xed')][_0xeb7d('0x7e')][_0xeb7d('0xf5')]({'isUndoable':!0x1},_0x549a6c=>{for(const _0x4a613a of this[_0xeb7d('0xed')]['model'][_0xeb7d('0x115')][_0xeb7d('0xf')]())_0x549a6c['detachRoot'](_0x4a613a);for(const _0x759103 of Object['keys'](_0x11a9c7[_0xeb7d('0x7e')])){const _0x4541ee=_0x549a6c[_0xeb7d('0x21')](_0x759103);for(const _0x13aa33 of Object[_0xeb7d('0xa5')](_0x11a9c7['attributes'][_0x759103]))_0x549a6c[_0xeb7d('0x42')](_0x13aa33,_0x11a9c7[_0xeb7d('0xa4')][_0x759103][_0x13aa33],_0x4541ee);_0x549a6c[_0xeb7d('0x119')](_0x11a9c7['model'][_0x759103],_0x4541ee,0x0);}}),this[_0xeb7d('0xb5')][_0xeb7d('0x7f')](this[_0xeb7d('0x7a')](_0x11a9c7[_0xeb7d('0x53')])),this[_0xeb7d('0x72')]=!0x0;})[_0xeb7d('0x1f')](_0x3df7ce=>{console[_0xeb7d('0x94')](_0x3df7ce),this['_cleanUp'](),_0x1b6fb6&&(this[_0xeb7d('0xb5')]=_0x1b6fb6),this['isReady']=!0x0;});}[_0xeb7d('0x6')](_0x3657c7,_0x4d5b93){const _0x53a07c=this[_0xeb7d('0x25')][_0xeb7d('0x10a')](_0x3657c7);return _0x53a07c['on']('_update',(_0x48859d,_0x494d47,_0x2f63fd)=>_0x4d5b93(_0x494d47,_0x2f63fd,_0x53a07c)),this[_0xeb7d('0x25')][_0xeb7d('0x15')](_0x53a07c),_0x53a07c;}[_0xeb7d('0xbd')](_0x5e49f8){if(!_0x5e49f8||_0x5e49f8[_0xeb7d('0x8b')])return Promise[_0xeb7d('0xbb')]();{const _0x3a2493=this[_0xeb7d('0xed')]['config'][_0xeb7d('0x1b')]('collaboration.channelId');return this[_0xeb7d('0x36')]['getRevision']({'channelId':_0x3a2493,'revisionId':_0x5e49f8['id']})[_0xeb7d('0x79')](_0x3c602a=>{_0x5e49f8[_0xeb7d('0xb2')]({'diffData':_0x3c602a[_0xeb7d('0x8b')]},!0x0);});}}[_0xeb7d('0xc7')](){this['activeChange']=null,this[_0xeb7d('0x88')](),this[_0xeb7d('0x112')]&&this[_0xeb7d('0x112')][_0xeb7d('0xbf')](),this['_changeView']=null,this[_0xeb7d('0x85')][_0xeb7d('0x109')](),this[_0xeb7d('0xed')][_0xeb7d('0x7e')]['enqueueChange']({'isUndoable':!0x1},_0x1153da=>{for(const _0x2aeeca of this[_0xeb7d('0xed')][_0xeb7d('0x7e')]['document'][_0xeb7d('0xf')]())_0x1153da['detachRoot'](_0x2aeeca);});}['_sortAndFilterDiffChanges'](_0x591ba8){const _0x4612ff=[],_0x355cb2=new Map();for(const _0x11110e of this['editor'][_0xeb7d('0x7e')][_0xeb7d('0x115')]['getRootNames']()){const _0x3b7372=this[_0xeb7d('0xed')][_0xeb7d('0x113')][_0xeb7d('0x4')][_0xeb7d('0xc3')](_0x11110e);if(!_0x3b7372)continue;const _0x125bca=_0x3b7372['getClientRects']()[_0xeb7d('0x103')](0x0);_0x125bca&&(_0x4612ff[_0xeb7d('0x105')](_0x11110e),_0x355cb2['set'](_0x11110e,_0x125bca));}return _0x4612ff[_0xeb7d('0x6a')]((_0x1586dc,_0x405746)=>{const _0x449b4d=_0x355cb2[_0xeb7d('0x1b')](_0x1586dc),_0x2d1abe=_0x355cb2[_0xeb7d('0x1b')](_0x405746);return _0x449b4d['y']-_0x2d1abe['y']||_0x449b4d['x']-_0x2d1abe['x'];}),(_0x591ba8=_0x591ba8[_0xeb7d('0x54')](_0x29c154=>_0x4612ff[_0xeb7d('0xd8')](_0x29c154[_0xeb7d('0x9c')])))['sort']((_0x955718,_0x1e6e7e)=>_0x4612ff[_0xeb7d('0xff')](_0x955718['rootName'])-_0x4612ff[_0xeb7d('0xff')](_0x1e6e7e['rootName'])),_0x591ba8;}[_0xeb7d('0x40')](_0x6ebd23){const _0x846290=Array['from'](_0x6ebd23[_0xeb7d('0x10e')])[_0xeb7d('0x54')](([_0x865fe4,_0x18221f])=>_0x865fe4[_0xeb7d('0x101')](_0xeb7d('0xc6'))&&!_0x18221f[_0xeb7d('0xd6')]),_0x1f8613=Array[_0xeb7d('0x102')](this['editor']['model'][_0xeb7d('0x19')](_0x6ebd23)[_0xeb7d('0xcb')]({'singleCharacters':!0x0}));if(0x0!=_0x846290[_0xeb7d('0x8')])for(const _0x4277e1 of _0x1f8613){const [_0x5196f7,_0x4a10c7]=_0x846290[0x0],[,_0x2a8f88,_0x11c034]=_0x5196f7[_0xeb7d('0x2d')](':');if(_0x4a10c7['end'][_0xeb7d('0x9b')](_0x4277e1[_0xeb7d('0x2')])&&_0x846290[_0xeb7d('0x106')](),(_0x4277e1['previousPosition'][_0xeb7d('0x9b')](_0x4a10c7[_0xeb7d('0x49')])||_0x4277e1[_0xeb7d('0x51')][_0xeb7d('0xa6')](_0x4a10c7[_0xeb7d('0x49')]))&&(_0xeb7d('0xca')==_0x2a8f88?_0x4277e1[_0xeb7d('0x11f')]={'userId':_0x11c034}:_0xeb7d('0xb3')==_0x2a8f88&&(_0x4277e1[_0xeb7d('0x34')]={'userId':_0x11c034})),0x0==_0x846290[_0xeb7d('0x8')])break;}return _0x1f8613;}[_0xeb7d('0x107')](_0x36a175){const _0x5863ea=new Map();for(let _0x47a0b1=0x0;_0x47a0b1<_0x36a175[_0xeb7d('0x8')];_0x47a0b1++)_0xeb7d('0xfb')===_0x36a175[_0x47a0b1][_0xeb7d('0x1d')]?(_0x36a175[_0x47a0b1]['item'][_0xeb7d('0xfa')]=_0x47a0b1,_0x36a175[_0x47a0b1][_0xeb7d('0x103')]['endIndex']=_0x47a0b1):(_0xeb7d('0x6f')===_0x36a175[_0x47a0b1][_0xeb7d('0x1d')]?_0x36a175[_0x47a0b1]['item'][_0xeb7d('0xfa')]=_0x47a0b1:'elementEnd'===_0x36a175[_0x47a0b1][_0xeb7d('0x1d')]&&(_0x36a175[_0x47a0b1][_0xeb7d('0x103')][_0xeb7d('0x73')]=_0x47a0b1),_0x5863ea[_0xeb7d('0xf4')](_0x36a175[_0x47a0b1]['id'],_0x47a0b1));for(const _0x45eecd of _0x5863ea[_0xeb7d('0xb')]())'elementStart'===_0x36a175[_0x45eecd]['type']?_0x36a175[_0x45eecd][_0xeb7d('0x103')][_0xeb7d('0x73')]=_0x5863ea[_0xeb7d('0x1b')](_0x36a175[_0x45eecd][_0xeb7d('0xe7')]):_0xeb7d('0xac')===_0x36a175[_0x45eecd][_0xeb7d('0x1d')]&&(_0x36a175[_0x45eecd][_0xeb7d('0x103')][_0xeb7d('0xfa')]=_0x5863ea['get'](_0x36a175[_0x45eecd]['pairId']));}[_0xeb7d('0x4c')](_0x17b81d){for(let _0x49a294=0x0;_0x49a294<_0x17b81d['length'];_0x49a294++){if('elementStart'===_0x17b81d[_0x49a294]['type'])_0x17b81d[_0x49a294][_0xeb7d('0x103')][_0xeb7d('0xfa')]=_0x49a294;else{if(_0xeb7d('0xac')===_0x17b81d[_0x49a294][_0xeb7d('0x1d')]){_0x17b81d[_0x49a294]['item']['endIndex']=_0x49a294;const _0x2d598d=_0x17b81d[_0x49a294]['item'][_0xeb7d('0xfa')];_0x17b81d[_0x2d598d][_0xeb7d('0xe7')]=_0x17b81d[_0x49a294]['id'],_0x17b81d[_0x49a294][_0xeb7d('0xe7')]=_0x17b81d[_0x2d598d]['id'];}else _0x17b81d[_0x49a294][_0xeb7d('0x103')][_0xeb7d('0xfa')]=_0x49a294,_0x17b81d[_0x49a294][_0xeb7d('0x103')][_0xeb7d('0x73')]=_0x49a294,_0x17b81d[_0x49a294][_0xeb7d('0xe7')]=null;}_0x17b81d[_0x49a294][_0xeb7d('0x9e')]||(_0x17b81d[_0x49a294][_0xeb7d('0x9e')]=[],_0x17b81d[_0x49a294][_0xeb7d('0x55')]=[]);}}[_0xeb7d('0x3c')](_0x3dd355,_0x4a6270){const _0x26a7f6=_0x3dd355[_0xeb7d('0x54')](_0xe70ffb=>!_0xe70ffb[_0xeb7d('0x11f')]);for(let _0x1f1f2f=0x0;_0x1f1f2f<_0x4a6270['length'];_0x1f1f2f++)_0x4a6270[_0x1f1f2f][_0xeb7d('0x11f')]&&(_0x26a7f6[_0x1f1f2f]['isAdded']=_0x4a6270[_0x1f1f2f][_0xeb7d('0x11f')]);}[_0xeb7d('0x20')](_0x2551d7){const _0x439b13=JSON[_0xeb7d('0xb4')](_0x2551d7),_0x1430ac=this['editor']['editing'][_0xeb7d('0x4')][_0xeb7d('0x115')],_0x1588be=new _0x387dcb(_0x1430ac,_0x439b13[_0xeb7d('0x4a')](_0x420785=>this[_0xeb7d('0x104')](_0x420785)));return this[_0xeb7d('0xed')][_0xeb7d('0xba')][_0xeb7d('0x8d')](_0x1588be);}[_0xeb7d('0x104')](_0x575382){const _0x4e081d=this[_0xeb7d('0xed')][_0xeb7d('0x113')][_0xeb7d('0x4')][_0xeb7d('0x115')];if(_0xeb7d('0x63')==typeof _0x575382)return new _0x2d39e5(_0x4e081d,_0x575382);{const _0x58ebed=_0x575382[_0xeb7d('0xf8')][_0xeb7d('0x4a')](_0x5a1907=>this['_getViewObj'](_0x5a1907));return new(tt[_0x575382[(_0xeb7d('0x1d'))]]||_0x15953e)(_0x4e081d,_0x575382[_0xeb7d('0x74')],_0x575382[_0xeb7d('0xa4')],_0x58ebed);}}[_0xeb7d('0x111')](_0x55e462,_0x11d526=null){const _0x17451f=this[_0xeb7d('0x25')][_0xeb7d('0x96')](_0x55e462),_0x5a5c5d=_0x11d526?this['repository'][_0xeb7d('0x96')](_0x11d526):null,_0x1d823c=this[_0xeb7d('0xa8')](_0x17451f,_0x5a5c5d),_0x5856f7=_0x1d823c[_0x1d823c[_0xeb7d('0x8')]-0x1],_0x155da4=new Map(),_0xc26316={'model':{},'attributes':{},'changes':[]},_0x377040=new Set(),_0x264057=new Map();for(let _0x167150=_0x1d823c['length']-0x1;_0x167150>=0x0;_0x167150--){const _0x5973c6=_0x1d823c[_0x167150];for(const _0x162201 of Object[_0xeb7d('0xa5')](_0x5973c6[_0xeb7d('0x8b')]))if(_0x5973c6[_0xeb7d('0x8b')][_0x162201]['attachChange']){const _0x326d95=_0x5973c6[_0xeb7d('0x8b')][_0x162201]['attachChange'];_0x326d95['isAttached']?(_0x377040[_0xeb7d('0x48')](_0x162201),_0x264057[_0xeb7d('0x30')](_0x162201)&&_0x264057['get'](_0x162201)[_0xeb7d('0x10')]==_0x326d95[_0xeb7d('0x10')]?_0x264057[_0xeb7d('0x24')](_0x162201):_0x264057[_0xeb7d('0xf4')](_0x162201,_0x326d95)):_0x264057['has'](_0x162201)?(_0x377040[_0xeb7d('0x24')](_0x162201),_0x264057[_0xeb7d('0x24')](_0x162201)):(_0x377040[_0xeb7d('0x48')](_0x162201),_0x264057[_0xeb7d('0xf4')](_0x162201,_0x326d95));}else _0x377040[_0xeb7d('0x48')](_0x162201);}for(const _0x2721ec of _0x377040){const _0x3f5071=_0x264057['has'](_0x2721ec)&&!_0x264057['get'](_0x2721ec)[_0xeb7d('0x2e')];let _0x7a4625=_0x3f5071?_0x1d823c[_0xeb7d('0x8')]-0x1:0x0;const _0x1a6957=_0x3f5071?-0x1:0x1;for(;_0x1d823c[_0x7a4625];){const _0x10eede=_0x1d823c[_0x7a4625];if(_0x10eede[_0xeb7d('0x8b')][_0x2721ec]){const _0x44b669=_0x3f5071?_0x10eede[_0xeb7d('0x8b')][_0x2721ec][_0xeb7d('0xf9')]:_0x10eede['diffData'][_0x2721ec][_0xeb7d('0xc')];_0xc26316[_0xeb7d('0xa4')][_0x2721ec]=_0x44b669?_0x440dc(_0x44b669):{};break;}_0x7a4625+=_0x1a6957;}}for(const _0x4bdecb of _0x1d823c){_0x4bdecb['model']={};for(const _0x57020c of _0x4bdecb[_0xeb7d('0xb0')])_0x155da4['set'](_0x57020c['id'],_0x57020c);for(const _0x26c83a of _0x377040){const _0x2ccf5e=_0x4bdecb[_0xeb7d('0x8b')][_0x26c83a]?_0x4bdecb['diffData'][_0x26c83a][_0xeb7d('0xb6')]:'[]',_0x1fed82=_0x4bdecb['diffData'][_0x26c83a]?_0x4bdecb[_0xeb7d('0x8b')][_0x26c83a][_0xeb7d('0x99')]:'[]';_0x4bdecb[_0xeb7d('0x7e')][_0x26c83a]={'insertions':this[_0xeb7d('0x20')](_0x2ccf5e),'deletions':this[_0xeb7d('0x20')](_0x1fed82)};}}for(const _0x2496f0 of _0x377040){let _0x1c19bc=null,_0x1811f5=0x0;const _0x17e070=new Map(Array[_0xeb7d('0x102')](_0x17451f[_0xeb7d('0x7e')][_0x2496f0][_0xeb7d('0xb6')][_0xeb7d('0x10e')])[_0xeb7d('0x54')](([_0x1f7e08])=>!_0x1f7e08[_0xeb7d('0x101')](_0xeb7d('0xc6'))));let _0x34e9bd=0x0;for(const _0x56fa0a of _0x1d823c){const _0x1e4196=this[_0xeb7d('0x40')](_0x56fa0a[_0xeb7d('0x7e')][_0x2496f0][_0xeb7d('0xb6')]);_0x56fa0a==_0x17451f?(_0x1c19bc=_0x1e4196,_0x1811f5=_0x1c19bc['length'],_0x1c19bc['forEach'](_0x25f5d6=>{_0x25f5d6['id']=_0x34e9bd++;}),this['_processTape'](_0x1c19bc)):this['_markInsertions'](_0x1c19bc,_0x1e4196);const _0x1fb037=_0x1c19bc['filter'](_0x658c6c=>!_0x658c6c[_0xeb7d('0x11f')])[_0xeb7d('0x4a')](_0xe9a01=>_0xe9a01['id']);let _0xd76c53=0x0;const _0x5d4ff5=this[_0xeb7d('0x40')](_0x56fa0a['model'][_0x2496f0][_0xeb7d('0x99')]);_0x5d4ff5['forEach'](_0x2239f3=>{_0x2239f3[_0xeb7d('0x34')]?_0x2239f3['id']=_0x1811f5++:_0x2239f3['id']=_0x1fb037[_0xd76c53++];}),this['_processTape'](_0x5d4ff5),this['_setDistance'](_0x1c19bc,_0xeb7d('0x11f')),this[_0xeb7d('0x10b')](_0x5d4ff5,_0xeb7d('0x34')),_0x56fa0a==_0x17451f&&this['_markMarkers'](_0x1c19bc,_0x17e070),_0x1c19bc=this['_joinTapes'](_0x1c19bc,_0x5d4ff5),this[_0xeb7d('0x107')](_0x1c19bc),this[_0xeb7d('0x10b')](_0x1c19bc,_0xeb7d('0x34'));}_0x1c19bc=_0x1c19bc[_0xeb7d('0x54')](_0x39687c=>!(_0x39687c[_0xeb7d('0x11f')]&&_0x39687c[_0xeb7d('0x34')]));const _0x498167=new Map(_0x5856f7[_0xeb7d('0x7e')][_0x2496f0][_0xeb7d('0x99')]['markers']),_0x52cb3d=new Set(_0x17e070[_0xeb7d('0xa5')]());for(const _0x313085 of _0x498167[_0xeb7d('0xa5')]())_0x52cb3d[_0xeb7d('0x24')](_0x313085);this['_markSuggestions'](_0x1c19bc,_0x52cb3d),this[_0xeb7d('0x28')](_0x1c19bc),_0x1c19bc=this[_0xeb7d('0xd4')](_0x1c19bc),_0x1c19bc=this['_markMismatchedRemovedTags'](_0x1c19bc),_0x1c19bc=this[_0xeb7d('0x5a')](_0x1c19bc);const {root:_0x5e9615,changes:_0x2abe25}=this[_0xeb7d('0x89')](_0x1c19bc,_0x155da4,_0x2496f0);_0xc26316['model'][_0x2496f0]=_0x5e9615;const _0x58eaf0=_0x264057['get'](_0x2496f0);if(_0x58eaf0){const _0x261f09=_0x155da4[_0xeb7d('0x1b')](_0x58eaf0[_0xeb7d('0x10')]),_0x350fcb=new _0x3bc349({'author':_0x261f09,'type':_0x58eaf0[_0xeb7d('0x2e')]?_0xeb7d('0x48'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2496f0});_0x2abe25[_0xeb7d('0xfd')](_0x350fcb),_0xc26316[_0xeb7d('0xa4')][_0x2496f0][_0xeb7d('0x10d')]=_0x350fcb['id'];}_0xc26316[_0xeb7d('0x53')]=_0xc26316[_0xeb7d('0x53')][_0xeb7d('0x27')](_0x2abe25);}return _0xc26316;}[_0xeb7d('0x118')](_0xbf3747,_0x5460ed){for(let _0x731075=0x0;_0x731075<_0xbf3747[_0xeb7d('0x8')];_0x731075++)for(const [_0x216e37,_0x4283d5]of _0x5460ed)_0x4283d5[_0xeb7d('0x49')]['isEqual'](_0xbf3747[_0x731075][_0xeb7d('0x51')])&&_0xbf3747[_0x731075][_0xeb7d('0x9e')][_0xeb7d('0x105')](_0x216e37),_0x4283d5[_0xeb7d('0x90')][_0xeb7d('0x9b')](_0xbf3747[_0x731075]['nextPosition'])&&_0xbf3747[_0x731075][_0xeb7d('0x55')][_0xeb7d('0x105')](_0x216e37);}['_joinTapes'](_0x50f4cc,_0x9f5eec){let _0x51990c=[],_0x273c13=0x0,_0x21cec1=0x0;for(;_0x273c13<_0x50f4cc[_0xeb7d('0x8')]||_0x21cec1<_0x9f5eec[_0xeb7d('0x8')];){const _0x5156e7=_0x50f4cc[_0x273c13]||{},_0x424f42=_0x9f5eec[_0x21cec1]||{};if(_0x5156e7['id']==_0x424f42['id'])_0x273c13++,_0x21cec1++,_0x51990c['push'](_0x5156e7);else{if(_0x424f42[_0xeb7d('0x34')]&&_0x5156e7[_0xeb7d('0x11f')]){const {commonTape:_0xe6fb82,iEnd:_0x758cf9,jEnd:_0x392325}=this['_threeWayMerge'](_0x50f4cc,_0x273c13,_0x9f5eec,_0x21cec1);_0x51990c=_0x51990c[_0xeb7d('0x27')](_0xe6fb82),_0x273c13=_0x758cf9,_0x21cec1=_0x392325;}else _0x424f42['isRemoved']?(_0x21cec1++,_0x51990c[_0xeb7d('0x105')](_0x424f42)):(_0x273c13++,_0x51990c['push'](_0x5156e7));}}return _0x51990c;}[_0xeb7d('0xbe')](_0x287d00,_0x105c0c){const _0x1d620a=[];for(let _0x1d9663=0x0;_0x1d9663<_0x287d00[_0xeb7d('0x8')];_0x1d9663++){for(let _0x2ee4cb=0x0;_0x2ee4cb<_0x287d00[_0x1d9663][_0xeb7d('0x9e')][_0xeb7d('0x8')];_0x2ee4cb++){const _0x120083=_0x287d00[_0x1d9663][_0xeb7d('0x9e')][_0x2ee4cb];if(!_0x105c0c[_0xeb7d('0x30')](_0x120083))continue;const {group:_0x1809f8,type:_0x4923a7,authorId:_0x54b72b}=_0x5ceaf3(_0x120083);_0xeb7d('0x7d')!=_0x1809f8||_0xeb7d('0xca')!=_0x4923a7&&_0xeb7d('0xb3')!=_0x4923a7||(_0x1d620a[_0xeb7d('0xfd')]({'type':_0x4923a7,'name':_0x120083,'userId':_0x54b72b}),_0x287d00[_0x1d9663][_0xeb7d('0x9e')][_0xeb7d('0x9d')](_0x2ee4cb,0x1),_0x2ee4cb--);}_0xe54f1e(_0x287d00[_0x1d9663]);for(let _0x10c186=0x0;_0x10c186<_0x287d00[_0x1d9663][_0xeb7d('0x55')]['length'];_0x10c186++){const _0x3e13a4=_0x287d00[_0x1d9663]['markersEnd'][_0x10c186];if(!_0x105c0c[_0xeb7d('0x30')](_0x3e13a4))continue;const {group:_0x293039,type:_0x51db0b}=_0x5ceaf3(_0x3e13a4);if(_0xeb7d('0x7d')!=_0x293039||_0xeb7d('0xca')!=_0x51db0b&&_0xeb7d('0xb3')!=_0x51db0b)continue;_0x287d00[_0x1d9663][_0xeb7d('0x55')]['splice'](_0x10c186,0x1),_0x10c186--;const _0x34db97=_0x1d620a[_0xeb7d('0x83')](_0x41cb28=>_0x41cb28['name']==_0x3e13a4);_0x34db97>-0x1&&_0x1d620a[_0xeb7d('0x9d')](_0x34db97,0x1);}}function _0x5ceaf3(_0x27e9be){const _0x470661=_0x27e9be[_0xeb7d('0x2d')](':');return{'group':_0x470661[0x0],'type':_0x470661[0x1],'subType':_0x470661[_0xeb7d('0x8')]>=0x5?_0x470661[0x2]:null,'id':_0x470661[_0xeb7d('0x8')]<0x5?_0x470661[0x2]:_0x470661[0x3],'authorId':_0x470661[_0xeb7d('0x8')]<0x5?_0x470661[0x3]:_0x470661[0x4],'markerCount':0x6==_0x470661[_0xeb7d('0x8')]?_0x470661[0x5]:null};}function _0xe54f1e(_0x51e9f0){for(let _0x1e518=0x0;_0x1e518<_0x1d620a[_0xeb7d('0x8')];_0x1e518++){if(_0x51e9f0[_0xeb7d('0x11f')]&&_0xeb7d('0xca')==_0x1d620a[_0x1e518]['type'])return _0x51e9f0[_0xeb7d('0x65')]=_0x1d620a[_0x1e518],void delete _0x51e9f0[_0xeb7d('0x11f')];if(!_0x51e9f0[_0xeb7d('0x11f')]&&!_0x51e9f0[_0xeb7d('0x34')]&&_0xeb7d('0xb3')==_0x1d620a[_0x1e518][_0xeb7d('0x1d')])return void(_0x51e9f0[_0xeb7d('0x3d')]=_0x1d620a[_0x1e518]);}}}[_0xeb7d('0x10b')](_0x512817,_0x7fef51){let _0x4b9989=0x0,_0x3bea33=!0x1;const _0x50ca39=new Map();for(const _0x53a32d of _0x512817)_0x53a32d[_0x7fef51]?_0x3bea33&&(_0x4b9989++,_0x3bea33=!0x1):(_0x4b9989++,_0x3bea33=!0x0),_0x50ca39['set'](_0x53a32d['id'],_0x4b9989);for(let _0x3d2967=0x0;_0x3d2967<_0x512817[_0xeb7d('0x8')];_0x3d2967++){if(_0xeb7d('0x34')==_0x7fef51&&_0x512817[_0x3d2967][_0xeb7d('0x11f')]||'isAdded'==_0x7fef51&&_0x512817[_0x3d2967]['isRemoved'])continue;if('text'==_0x512817[_0x3d2967][_0xeb7d('0x1d')]){_0x512817[_0x3d2967][_0xeb7d('0xe')]=0x0;continue;}const _0x3a20e1=_0x50ca39['get'](_0x512817[_0x3d2967][_0xeb7d('0xe7')]),_0x1ac8b3=_0x50ca39[_0xeb7d('0x1b')](_0x512817[_0x3d2967]['id']);_0x512817[_0x3d2967][_0xeb7d('0xe')]=_0x3a20e1-_0x1ac8b3;}}[_0xeb7d('0xa8')](_0x38dcc2,_0x436ded,_0x36535d=!0x1){const _0x534f87=[];let _0x2cea3e=this[_0xeb7d('0x25')][_0xeb7d('0xcd')](_0x38dcc2),_0x351e36=this[_0xeb7d('0x25')][_0xeb7d('0xcd')](_0x436ded);for(-0x1==_0x351e36&&(_0x351e36=this[_0xeb7d('0x25')][_0xeb7d('0xaa')]['length'],_0x36535d=!0x1);_0x2cea3e<_0x351e36;)_0x534f87['push'](this['repository'][_0xeb7d('0x96')](_0x2cea3e)),_0x2cea3e++;return _0x36535d&&_0x534f87[_0xeb7d('0x105')](this[_0xeb7d('0x25')]['getRevision'](_0x2cea3e)),_0x534f87;}[_0xeb7d('0xec')](_0x314243,_0x58cdf8,_0x4e08b1,_0x24f1e9){const _0x1b22c7=this[_0xeb7d('0xed')]['model'][_0xeb7d('0xe1')];let _0x461084=_0x58cdf8;for(;_0x314243[_0x461084]&&_0x314243[_0x461084][_0xeb7d('0x11f')];)_0x461084++;let _0x587bf7=_0x24f1e9;for(;_0x4e08b1[_0x587bf7]&&_0x4e08b1[_0x587bf7][_0xeb7d('0x34')];)_0x587bf7++;_0x3fc954(_0x314243,_0x58cdf8,_0x461084),_0x3fc954(_0x4e08b1,_0x24f1e9,_0x587bf7);const _0x124d56=_0x4e08b1[_0xeb7d('0x1c')](_0x24f1e9,_0x587bf7)[_0xeb7d('0x27')](_0x314243[_0xeb7d('0x1c')](_0x58cdf8,_0x461084));return _0x124d56[_0xeb7d('0x6a')]((_0x21ad58,_0x31b838)=>_0x21ad58[_0xeb7d('0x10f')]!=_0x31b838[_0xeb7d('0x10f')]?_0x21ad58[_0xeb7d('0x10f')]-_0x31b838[_0xeb7d('0x10f')]:_0x21ad58[_0xeb7d('0xc8')]!=_0x31b838['level']?_0x21ad58[_0xeb7d('0xc8')]-_0x31b838[_0xeb7d('0xc8')]:_0x21ad58[_0xeb7d('0xe')]!=_0x31b838['distance']?_0x31b838[_0xeb7d('0xe')]-_0x21ad58[_0xeb7d('0xe')]:!!_0x21ad58[_0xeb7d('0x11f')]!=!!_0x31b838['isAdded']?-0x1==_0x21ad58[_0xeb7d('0x10f')]||0x0==_0x21ad58['side']?_0x21ad58[_0xeb7d('0x11f')]?-0x1:0x1:_0x21ad58['isAdded']?0x1:-0x1:_0x21ad58[_0xeb7d('0xad')]-_0x31b838['index']),{'commonTape':_0x124d56,'iEnd':_0x461084,'jEnd':_0x587bf7};function _0x3fc954(_0x2984e6,_0x2e9de3,_0x3c3a03){let _0x861b61=-0x1,_0x1ad5cc=Number[_0xeb7d('0xa2')],_0x19869b=!0x0;for(let _0x1657c4=_0x2e9de3;_0x1657c4<_0x3c3a03;_0x1657c4++)if(_0x1b22c7[_0xeb7d('0x6b')](_0x2984e6[_0x1657c4]['item'])||(_0x19869b=!0x1),_0x2984e6[_0x1657c4]['item'][_0xeb7d('0xfa')]<_0x2e9de3&&(_0x861b61=_0x1657c4),_0x2984e6[_0x1657c4]['item']['endIndex']>=_0x3c3a03){_0x1ad5cc=_0x1657c4;break;}_0x19869b&&(_0x861b61=_0x3c3a03-0x1);for(let _0x33ab9a=_0x2e9de3;_0x33ab9a<_0x3c3a03;_0x33ab9a++)_0x2984e6[_0x33ab9a]['side']=_0x33ab9a<=_0x861b61?-0x1:_0x33ab9a<_0x1ad5cc?0x0:0x1,_0x2984e6[_0x33ab9a]['index']=_0x33ab9a;let _0x7b9212=0x0;for(let _0x2d4df5=_0x2e9de3;_0x2d4df5<=_0x861b61;_0x2d4df5++)0x0==_0x2984e6[_0x2d4df5][_0xeb7d('0xe')]?_0x2984e6[_0x2d4df5]['level']=_0x7b9212:(_0x7b9212++,_0x2984e6[_0x2d4df5][_0xeb7d('0xc8')]=_0x7b9212,_0x7b9212++);for(let _0x2d55a2=_0x2e9de3;_0x2d55a2<_0x3c3a03;_0x2d55a2++)0x0==_0x2984e6[_0x2d55a2]['side']&&(_0x2984e6[_0x2d55a2][_0xeb7d('0xc8')]=_0x7b9212);_0x7b9212=0x0;for(let _0x21e7e2=_0x3c3a03-0x1;_0x21e7e2>=_0x1ad5cc;_0x21e7e2--)0x0==_0x2984e6[_0x21e7e2][_0xeb7d('0xe')]?_0x2984e6[_0x21e7e2][_0xeb7d('0xc8')]=_0x7b9212:(_0x7b9212--,_0x2984e6[_0x21e7e2][_0xeb7d('0xc8')]=_0x7b9212,_0x7b9212--);}}[_0xeb7d('0x28')](_0x151c47){const _0x285047=new Map(),_0x13d990=this[_0xeb7d('0xed')][_0xeb7d('0x7e')][_0xeb7d('0xe1')];for(let _0x314d64=0x1;_0x314d64<_0x151c47[_0xeb7d('0x8')];_0x314d64++){let _0x3d5996,_0x10bfc6,_0xf3e637;const _0x456e40=_0x151c47[_0x314d64],_0x58e304=_0x151c47[_0x314d64-0x1];if(_0xeb7d('0xfb')==_0x456e40[_0xeb7d('0x1d')])continue;if(_0x456e40['type']!=_0x58e304[_0xeb7d('0x1d')])continue;if(!_0x13d990['isBlock'](_0x58e304[_0xeb7d('0x103')])||_0x13d990[_0xeb7d('0xef')](_0x58e304['item']))continue;if(!_0x13d990[_0xeb7d('0x116')](_0x456e40['item'])||_0x13d990[_0xeb7d('0xef')](_0x456e40[_0xeb7d('0x103')]))continue;if((_0x151c47[_0x314d64]['isAdded']||_0x151c47[_0x314d64][_0xeb7d('0x65')])&&_0x151c47[_0x314d64-0x1]['isRemoved'])_0x3d5996=_0x151c47[_0x314d64],_0x10bfc6=_0x151c47[_0x314d64-0x1],_0xf3e637=_0x314d64-0x1;else{if(!_0x151c47[_0x314d64][_0xeb7d('0x34')]||!_0x151c47[_0x314d64-0x1][_0xeb7d('0x11f')]&&!_0x151c47[_0x314d64-0x1][_0xeb7d('0x65')])continue;_0x3d5996=_0x151c47[_0x314d64-0x1],_0x10bfc6=_0x151c47[_0x314d64],_0xf3e637=_0x314d64;}const _0x1c94cc=_0x3d5996['level']==_0x10bfc6[_0xeb7d('0xc8')],_0x55f791=Math['abs'](_0x3d5996[_0xeb7d('0xc8')])<Math[_0xeb7d('0x4f')](_0x10bfc6[_0xeb7d('0xc8')])&&0x0==_0x10bfc6[_0xeb7d('0xe')];(_0x1c94cc||_0x55f791)&&(_0x285047[_0xeb7d('0xf4')](_0x10bfc6['id'],_0x3d5996['id']),_0x151c47['splice'](_0xf3e637,0x1),_0x314d64--,_0x3d5996['isAdded']=!0x1);}for(let _0x1e493a=0x0;_0x1e493a<_0x151c47[_0xeb7d('0x8')];_0x1e493a++)_0x285047[_0xeb7d('0x30')](_0x151c47[_0x1e493a][_0xeb7d('0xe7')])&&(_0x151c47[_0x1e493a]['pairId']=_0x285047[_0xeb7d('0x1b')](_0x151c47[_0x1e493a][_0xeb7d('0xe7')]));}[_0xeb7d('0xd4')](_0x3073af){const _0x1ba6c3=new Set(_0x3073af[_0xeb7d('0x4a')](_0x30db30=>_0x30db30['id']));for(let _0x5766a7=0x0;_0x5766a7<_0x3073af['length'];_0x5766a7++)_0x1ba6c3[_0xeb7d('0x30')](_0x3073af[_0x5766a7][_0xeb7d('0xe7')])||0x0==_0x3073af[_0x5766a7][_0xeb7d('0xe')]||(_0x3073af[_0x5766a7]['isIncorrect']=!0x0);return _0x3073af[_0xeb7d('0x54')](_0xa7b5c1=>!_0xa7b5c1[_0xeb7d('0x5c')]);}[_0xeb7d('0x69')](_0x14ab67){const _0x184bed=new Set();for(let _0x51b7e4=0x0;_0x51b7e4<_0x14ab67['length'];_0x51b7e4++){if(_0x184bed['has'](_0x14ab67[_0x51b7e4]['id'])&&_0x14ab67[_0x51b7e4][_0xeb7d('0x34')]&&(_0x14ab67[_0x51b7e4][_0xeb7d('0x5c')]=!0x0),_0x14ab67[_0x51b7e4][_0xeb7d('0x5c')])continue;if(0x0==_0x14ab67[_0x51b7e4][_0xeb7d('0xe')])continue;if(_0xeb7d('0x6f')!=_0x14ab67[_0x51b7e4][_0xeb7d('0x1d')])continue;if(null==_0x14ab67[_0x51b7e4][_0xeb7d('0xe7')])continue;let _0x310c3c=_0x51b7e4+0x1,_0x3187c6=0x0;for(;_0x14ab67[_0x310c3c]['id']!=_0x14ab67[_0x51b7e4]['pairId'];)'elementStart'==_0x14ab67[_0x310c3c][_0xeb7d('0x1d')]?_0x3187c6++:_0xeb7d('0xac')==_0x14ab67[_0x310c3c][_0xeb7d('0x1d')]&&_0x3187c6--,_0x310c3c++;if(0x0!=_0x3187c6){if(_0x14ab67[_0x51b7e4][_0xeb7d('0x34')])_0x14ab67[_0x51b7e4][_0xeb7d('0x5c')]=!0x0;else for(;_0x310c3c!=_0x51b7e4;)_0x14ab67[_0x310c3c][_0xeb7d('0x34')]&&0x0!=_0x14ab67[_0x310c3c][_0xeb7d('0xe')]&&(_0x14ab67[_0x310c3c][_0xeb7d('0x5c')]=!0x0,_0x184bed[_0xeb7d('0x48')](_0x14ab67[_0x310c3c][_0xeb7d('0xe7')])),_0x310c3c--;}}return _0x14ab67[_0xeb7d('0x54')](_0x480fd3=>!_0x480fd3[_0xeb7d('0x5c')]);}[_0xeb7d('0x5a')](_0x10a417){const _0x788f6c=this[_0xeb7d('0xed')][_0xeb7d('0x7e')]['schema'];for(let _0x5aec29=0x0;_0x5aec29<_0x10a417[_0xeb7d('0x8')];_0x5aec29++){if(!(_0x10a417[_0x5aec29][_0xeb7d('0x11f')]||_0x10a417[_0x5aec29]['isAddSuggestion']||_0x10a417[_0x5aec29][_0xeb7d('0x34')]||_0x10a417[_0x5aec29]['isRemoveSuggestion']))continue;if(0x0==_0x10a417[_0x5aec29]['distance'])continue;const _0x21d384=_0x10a417[_0x5aec29]['item'];_0x788f6c[_0xeb7d('0x116')](_0x21d384)||_0x788f6c['isLimit'](_0x21d384)||(_0x10a417[_0x5aec29][_0xeb7d('0x11f')]&&delete _0x10a417[_0x5aec29]['isAdded'],_0x10a417[_0x5aec29]['isAddSuggestion']&&delete _0x10a417[_0x5aec29][_0xeb7d('0x65')],_0x10a417[_0x5aec29][_0xeb7d('0x3d')]&&delete _0x10a417[_0x5aec29][_0xeb7d('0x3d')],_0x10a417[_0x5aec29][_0xeb7d('0x34')]&&(_0x10a417[_0x5aec29][_0xeb7d('0x5c')]=!0x0));}return _0x10a417[_0xeb7d('0x54')](_0x100f1e=>!_0x100f1e[_0xeb7d('0x5c')]);}[_0xeb7d('0x89')](_0x40d3f7,_0x3cf644,_0x346b73){const _0x4fbeb9=new _0x5604cc(),_0x210e58=[],_0x110556=new Map(),_0x22a957=this[_0xeb7d('0xed')][_0xeb7d('0x7e')],_0x3f3aec=_0x22a957[_0xeb7d('0xe1')],_0x4677d7=[_0x4fbeb9],_0x2cfea4={},_0x264d4b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x42c9db=null;const _0x3dee38=[0x0];for(let _0x54755b=0x0;_0x54755b<_0x40d3f7[_0xeb7d('0x8')];_0x54755b++){let _0x1888e0,_0x6418cb;if('elementStart'===_0x40d3f7[_0x54755b][_0xeb7d('0x1d')]){_0x1888e0=_0x22a957[_0xeb7d('0x2b')](_0x4fbeb9,_0x3dee38);const _0x1f595e=new _0x1cc4ae(_0x40d3f7[_0x54755b]['item']['name'],_0x40d3f7[_0x54755b][_0xeb7d('0x103')]['getAttributes']());_0x4677d7[0x0][_0xeb7d('0x8e')](_0x1f595e),_0x3dee38[_0xeb7d('0x105')](0x0),_0x4677d7[_0xeb7d('0xfd')](_0x1f595e),_0x6418cb=_0x22a957['createPositionFromPath'](_0x4fbeb9,_0x3dee38),_0x42c9db=null;}else{if('elementEnd'===_0x40d3f7[_0x54755b]['type'])_0x4677d7[_0xeb7d('0x106')](),_0x1888e0=_0x22a957[_0xeb7d('0x2b')](_0x4fbeb9,_0x3dee38),_0x3dee38[_0xeb7d('0xb9')](),_0x3dee38[_0x3dee38[_0xeb7d('0x8')]-0x1]++,_0x6418cb=_0x22a957[_0xeb7d('0x2b')](_0x4fbeb9,_0x3dee38),_0x42c9db=null;else{if(_0x1888e0=_0x22a957[_0xeb7d('0x2b')](_0x4fbeb9,_0x3dee38),_0x42c9db&&_0x217cfe(_0x42c9db,_0x40d3f7[_0x54755b][_0xeb7d('0x103')]))_0x42c9db[_0xeb7d('0xd5')]+=_0x40d3f7[_0x54755b][_0xeb7d('0x103')][_0xeb7d('0xba')];else{const _0x18ef5c=new _0x3bd1f2(_0x40d3f7[_0x54755b][_0xeb7d('0x103')][_0xeb7d('0xba')],_0x40d3f7[_0x54755b][_0xeb7d('0x103')]['getAttributes']());_0x4677d7[0x0][_0xeb7d('0x8e')](_0x18ef5c),_0x42c9db=_0x18ef5c;}_0x3dee38[_0x3dee38[_0xeb7d('0x8')]-0x1]+=_0x40d3f7[_0x54755b][_0xeb7d('0x103')][_0xeb7d('0x81')],_0x6418cb=_0x22a957[_0xeb7d('0x2b')](_0x4fbeb9,_0x3dee38);}}for(const _0x195611 of _0x40d3f7[_0x54755b][_0xeb7d('0x9e')])_0x110556['set'](_0x195611,{'start':_0x1888e0,'end':null});_0x248e86(_0xeb7d('0x3d'),_0x54755b,_0x1888e0,_0x6418cb),_0x248e86(_0xeb7d('0x65'),_0x54755b,_0x1888e0,_0x6418cb),_0x248e86(_0xeb7d('0x34'),_0x54755b,_0x1888e0,_0x6418cb),_0x248e86(_0xeb7d('0x11f'),_0x54755b,_0x1888e0,_0x6418cb);for(const _0xe154b4 of _0x40d3f7[_0x54755b]['markersEnd']){_0x110556[_0xeb7d('0x1b')](_0xe154b4)[_0xeb7d('0x90')]=_0x6418cb;}}for(const [_0x37d030,_0x292153]of _0x110556){const _0x206b91=this['editor'][_0xeb7d('0x7e')][_0xeb7d('0x23')](_0x292153[_0xeb7d('0x49')],_0x292153[_0xeb7d('0x90')]);_0x4fbeb9[_0xeb7d('0x10e')][_0xeb7d('0xf4')](_0x37d030,_0x206b91);}return _0x210e58['sort']((_0x1c3761,_0x51f98f)=>{const _0x13da5e=_0x4fbeb9['markers'][_0xeb7d('0x1b')](_0xeb7d('0xc6')+_0x1c3761['id']),_0x11be30=_0x4fbeb9[_0xeb7d('0x10e')][_0xeb7d('0x1b')](_0xeb7d('0xc6')+_0x51f98f['id']);return _0x13da5e['start'][_0xeb7d('0x38')](_0x11be30[_0xeb7d('0x49')])?-0x1:_0x13da5e[_0xeb7d('0x49')]['isAfter'](_0x11be30[_0xeb7d('0x49')])?0x1:_0x13da5e[_0xeb7d('0x90')][_0xeb7d('0x38')](_0x11be30[_0xeb7d('0x90')])?-0x1:_0x13da5e[_0xeb7d('0x90')][_0xeb7d('0xa6')](_0x11be30[_0xeb7d('0x90')])?0x1:_0xeb7d('0x48')===_0x1c3761[_0xeb7d('0x1d')]?-0x1:0x1;}),{'root':_0x4fbeb9,'changes':_0x210e58};function _0x248e86(_0x3de180,_0x4123e6,_0x2d936c,_0x539fc5){const _0x4463b6=!!_0x40d3f7[_0x4123e6][_0x3de180],_0x20a7d5=_0x4463b6?_0x40d3f7[_0x4123e6][_0x3de180][_0xeb7d('0x10')]:null,_0x5b5c83=_0x4123e6===_0x40d3f7[_0xeb7d('0x8')]-0x1,_0x1046dc=_0x264d4b[_0x3de180][0x0],_0x37b659=_0x3f3aec[_0xeb7d('0xfc')](_0x40d3f7[_0x4123e6][_0xeb7d('0x103')]);!_0x2cfea4[_0x3de180]&&_0x4463b6?_0x2cfea4[_0x3de180]={'start':_0x2d936c,'tapeItem':_0x40d3f7[_0x4123e6],'userId':_0x20a7d5,'type':_0x3de180}:_0x2cfea4[_0x3de180]&&!_0x4463b6?(_0x2cfea4[_0x3de180][_0xeb7d('0x90')]=_0x2d936c,_0x5204c8(_0x2cfea4[_0x3de180]),_0x2cfea4[_0x3de180]=null):_0x2cfea4[_0x3de180]&&_0x4463b6&&_0x2cfea4[_0x3de180]['userId']!==_0x20a7d5&&(_0x2cfea4[_0x3de180][_0xeb7d('0x90')]=_0x2d936c,_0x1046dc&&_0x1046dc[_0xeb7d('0x10')]===_0x2cfea4[_0x3de180][_0xeb7d('0x10')]||_0x5204c8(_0x2cfea4[_0x3de180]),_0x2cfea4[_0x3de180]={'start':_0x2d936c,'tapeItem':_0x40d3f7[_0x4123e6],'userId':_0x20a7d5,'type':_0x3de180}),_0x2cfea4[_0x3de180]&&_0x37b659&&(_0xeb7d('0x6f')!==_0x40d3f7[_0x4123e6][_0xeb7d('0x1d')]||_0x1046dc&&_0x1046dc[_0xeb7d('0x10')]===_0x20a7d5||_0x264d4b[_0x3de180]['unshift']({'userId':_0x20a7d5,'object':_0x40d3f7[_0x4123e6][_0xeb7d('0x103')],'change':_0x2cfea4[_0x3de180]}),_0xeb7d('0xac')===_0x40d3f7[_0x4123e6][_0xeb7d('0x1d')]&&_0x1046dc&&_0x1046dc['object']===_0x40d3f7[_0x4123e6][_0xeb7d('0x103')]&&(_0x264d4b[_0x3de180][_0xeb7d('0x106')](),_0x2cfea4[_0x3de180]=_0x1046dc[_0xeb7d('0x12')])),_0x2cfea4[_0x3de180]&&_0x5b5c83&&(_0x2cfea4[_0x3de180][_0xeb7d('0x90')]=_0x539fc5,_0x5204c8(_0x2cfea4[_0x3de180]),_0x2cfea4[_0x3de180]=null);}function _0x5204c8({start:_0x5e8bbf,end:_0x4391e0,tapeItem:_0x48e975,userId:_0x2b82dd,type:_0x4f3b6c}){const _0x39c20e=_0x48e975[_0xeb7d('0x103')],_0x4478ed=_0x22a957[_0xeb7d('0xe1')]['isBlock'](_0x39c20e)&&!_0x22a957[_0xeb7d('0xe1')][_0xeb7d('0xef')](_0x39c20e),_0x582ba8=_0x5e8bbf['nodeAfter']==_0x4391e0[_0xeb7d('0xa0')]&&_0x4391e0['isAtStart'];if(_0x4478ed&&_0x582ba8)return;const _0x59b6b8=_0x22a957['createRange'](_0x5e8bbf,_0x4391e0),_0x5b428c=_0x3cf644[_0xeb7d('0x1b')](_0x2b82dd),_0x23796d=new _0x3bc349({'author':_0x5b428c,'type':'isAdded'==_0x4f3b6c||_0xeb7d('0x65')==_0x4f3b6c?'add':_0xeb7d('0xe8'),'data':{'isSuggestion':_0xeb7d('0x65')==_0x4f3b6c||_0xeb7d('0x3d')==_0x4f3b6c},'createdAt':new Date(),'rootName':_0x346b73});_0x210e58[_0xeb7d('0x105')](_0x23796d),_0x4fbeb9[_0xeb7d('0x10e')]['set'](_0xeb7d('0xc6')+_0x23796d['id'],_0x59b6b8);}function _0x217cfe(_0x21886c,_0x490e26){const _0x53b187=_0x21886c[_0xeb7d('0x41')](),_0xf0dc0a=_0x490e26[_0xeb7d('0x41')]();for(const _0x56bd45 of _0x53b187){if(_0x56bd45[0x1]!==_0x490e26['getAttribute'](_0x56bd45[0x0]))return!0x1;_0xf0dc0a['next']();}return _0xf0dc0a['next']()[_0xeb7d('0xb1')];}}[_0xeb7d('0xc1')](){this[_0xeb7d('0xed')]['conversion']['for'](_0xeb7d('0x108'))[_0xeb7d('0x17')]({'view':'revision'}),this[_0xeb7d('0xed')][_0xeb7d('0x110')][_0xeb7d('0xc5')](_0xeb7d('0xd0'))['markerToHighlight']({'model':_0xeb7d('0xd'),'view':_0x1cd149=>{const _0x2ae026=_0x1cd149['markerName'][_0xeb7d('0x2d')](':')[0x1],_0x53ca0c=this[_0xeb7d('0xaf')](_0x2ae026);if(!_0x53ca0c)return null;const _0xc70bc7=_0xeb7d('0x48')==_0x53ca0c[_0xeb7d('0x1d')]?'insertion':'deletion',_0x1fd3ca=[_0xeb7d('0x47'),_0xeb7d('0x4e')+_0xc70bc7];return _0x53ca0c['data']['isSuggestion']&&_0x1fd3ca['push'](_0xeb7d('0x4e')+_0xc70bc7+_0xeb7d('0x8a')),this[_0xeb7d('0xd9')]==_0x53ca0c&&_0x1fd3ca[_0xeb7d('0x105')]('ck-suggestion-marker--active'),{'classes':_0x1fd3ca,'attributes':{'data-change-id':_0x2ae026}};}}),this['editor'][_0xeb7d('0x110')]['for'](_0xeb7d('0x108'))[_0xeb7d('0x48')](_0xe544c8=>{_0xe544c8['on'](_0xeb7d('0xa7'),(_0x4140b1,_0x4f8992,_0x5cb22b)=>{const _0x18956a=_0x4f8992[_0xeb7d('0xc9')]['getChild'](0x0);if(!_0x18956a||!_0x18956a['is']('element',_0xeb7d('0x33')))return;if(!_0x5cb22b['consumable'][_0xeb7d('0x10c')](_0x18956a,{'attributes':['vid_start',_0xeb7d('0x91')]}))return;const _0x4eff47=_0x4f8992[_0xeb7d('0x82')][_0xeb7d('0x49')][_0xeb7d('0x3f')];_0x5cb22b[_0xeb7d('0x5f')]['setAttribute'](_0xeb7d('0x97'),_0x18956a[_0xeb7d('0x6d')](_0xeb7d('0x97')),_0x4eff47),_0x5cb22b[_0xeb7d('0x5f')]['setAttribute']('vid_end',_0x18956a[_0xeb7d('0x6d')]('vid_end'),_0x4eff47);},{'priority':_0xeb7d('0xee')});}),this[_0xeb7d('0xed')][_0xeb7d('0x110')][_0xeb7d('0xc5')]('upcast')[_0xeb7d('0x48')](_0x431887=>{_0x431887['on'](_0xeb7d('0xc0'),(_0x175184,_0x534e93,_0xd6bb40)=>{if(!_0xd6bb40['consumable'][_0xeb7d('0x10c')](_0x534e93[_0xeb7d('0xc9')],{'attributes':[_0xeb7d('0x97'),_0xeb7d('0x91')]}))return;if(_0x534e93[_0xeb7d('0x82')][_0xeb7d('0xd6')])return;const _0x5bfef9=_0x534e93[_0xeb7d('0x82')]['start'][_0xeb7d('0x3f')];_0x5bfef9['hasAttribute'](_0xeb7d('0x97'))||_0x5bfef9['hasAttribute'](_0xeb7d('0x77'))||(_0xd6bb40[_0xeb7d('0x5f')][_0xeb7d('0x42')](_0xeb7d('0x97'),_0x534e93[_0xeb7d('0xc9')][_0xeb7d('0x6d')](_0xeb7d('0x97')),_0x5bfef9),_0xd6bb40[_0xeb7d('0x5f')][_0xeb7d('0x42')]('vid_end',_0x534e93['viewItem']['getAttribute']('vid_end'),_0x5bfef9));},{'priority':_0xeb7d('0xee')});}),this['editor']['conversion'][_0xeb7d('0xc5')](_0xeb7d('0x108'))[_0xeb7d('0x6e')]({'view':{'name':_0xeb7d('0x18'),'attributes':{'vid':!0x0}},'model':{'key':_0xeb7d('0x77'),'value':_0x105a18=>_0x105a18[_0xeb7d('0x6d')](_0xeb7d('0x77'))}}),this[_0xeb7d('0xed')]['model'][_0xeb7d('0xe1')]['on'](_0xeb7d('0x43'),(_0x44027c,[,_0x2c108f])=>{[_0xeb7d('0x97'),'vid_end',_0xeb7d('0x77')][_0xeb7d('0xd8')](_0x2c108f)&&(_0x44027c['return']=!0x0,_0x44027c['stop']());},{'priority':'highest'}),this[_0xeb7d('0xed')][_0xeb7d('0x110')]['for'](_0xeb7d('0xdd'))['add'](_0x2845e0=>{_0x2845e0['on'](_0xeb7d('0x13'),(_0x5227c7,_0x283976,_0x443fe6)=>{if('\x20'!=_0x283976['item'][_0xeb7d('0xba')]||_0x283976[_0xeb7d('0x103')][_0xeb7d('0xa0')][_0xeb7d('0x60')]>0x1)return;if(!_0x443fe6[_0xeb7d('0xf3')][_0xeb7d('0x10c')](_0x283976[_0xeb7d('0x103')],_0x5227c7[_0xeb7d('0x74')]))return;const _0x402730=_0x443fe6[_0xeb7d('0x5f')],_0x3c4be9=_0x443fe6[_0xeb7d('0x3a')]['toViewRange'](_0x283976[_0xeb7d('0xd7')]);_0x402730[_0xeb7d('0x92')](_0x3c4be9,_0x402730['createAttributeElement']('span'));});}),this[_0xeb7d('0xed')][_0xeb7d('0x110')][_0xeb7d('0xc5')](_0xeb7d('0xdd'))[_0xeb7d('0xa')]({'model':'revision'}),this[_0xeb7d('0xed')][_0xeb7d('0x113')][_0xeb7d('0xf7')]['on']('addMarker:revision',function(_0x518f46){const _0x13830a=_0x518f46[_0xeb7d('0x71')]['get'](_0xeb7d('0x0'));return(_0x2fc834,_0x49a5df,_0x1142b3)=>{const _0x2e1a3f=_0x49a5df[_0xeb7d('0xf6')][_0xeb7d('0x2d')](':')[0x1],_0x5c05df=_0x13830a[_0xeb7d('0xaf')](_0x2e1a3f);if(!_0x5c05df)return null;const _0x4c415b=_0xeb7d('0x48')==_0x5c05df[_0xeb7d('0x1d')]?'split':_0xeb7d('0x46');if(!_0x1142b3[_0xeb7d('0xf3')]['test'](_0x49a5df[_0xeb7d('0x1e')],_0x2fc834[_0xeb7d('0x74')]))return;const _0x224aa4=_0x49a5df[_0xeb7d('0x1e')][_0xeb7d('0xcb')](),_0x46874f=_0x49a5df[_0xeb7d('0x1e')][_0xeb7d('0x49')],_0x5c9f9d=_0x518f46[_0xeb7d('0x7e')][_0xeb7d('0xe1')];let _0x5338cf=null,_0x23d391=null,_0x42891b=!0x1,_0x12b391=!0x1;for(const _0x2288d0 of _0x224aa4){const _0x92e1d2=_0x2288d0[_0xeb7d('0x103')];_0x42891b=_0x42891b||_0x5c9f9d['isContent'](_0x92e1d2);const _0x10095a=_0x1142b3[_0xeb7d('0x3a')]['toViewElement'](_0x92e1d2);if(_0x10095a&&_0x10095a[_0xeb7d('0x56')](_0xeb7d('0x76')))return;_0xeb7d('0xac')==_0x2288d0[_0xeb7d('0x1d')]&&(_0x5c9f9d['isBlock'](_0x92e1d2)&&!_0x5c9f9d[_0xeb7d('0xef')](_0x92e1d2)&&(_0x92e1d2[_0xeb7d('0x95')]||_0x46874f[_0xeb7d('0xda')]?_0x5338cf&&_0x5338cf['parent']==_0x92e1d2||(_0x5338cf=_0x92e1d2,_0x99f264(_0x2288d0[_0xeb7d('0x51')]),_0x12b391=!0x0):_0x23d391=_0x23d391||_0x2288d0[_0xeb7d('0x51')]));}function _0x99f264(_0x598da6){const _0x1378ed=_0x1142b3[_0xeb7d('0x5f')][_0xeb7d('0x11a')](_0xeb7d('0x18'),{'class':'ck-suggestion-marker-'+_0x4c415b}),_0x369583=_0x1142b3[_0xeb7d('0x3a')][_0xeb7d('0x26')](_0x598da6);_0x5c05df[_0xeb7d('0xba')]['isSuggestion']&&_0x1142b3[_0xeb7d('0x5f')][_0xeb7d('0x44')](_0xeb7d('0x4e')+_0x4c415b+_0xeb7d('0x8a'),_0x1378ed),_0x13830a[_0xeb7d('0xd9')]==_0x5c05df&&_0x1142b3['writer'][_0xeb7d('0x44')]('ck-suggestion-marker--active',_0x1378ed),_0x1142b3[_0xeb7d('0x5f')][_0xeb7d('0x119')](_0x369583,_0x1378ed),_0x1142b3[_0xeb7d('0x3a')][_0xeb7d('0x50')](_0x1378ed,_0x49a5df[_0xeb7d('0xf6')]);}_0x42891b||_0x12b391||!_0x23d391||_0x99f264(_0x23d391);};}(this[_0xeb7d('0xed')]),{'priority':'high'}),this[_0xeb7d('0xed')]['editing'][_0xeb7d('0xf7')]['on']('removeMarker:revision',(_0x6a81f0,_0x3fff19,_0x560740)=>{const _0x4d0187=_0x560740[_0xeb7d('0x3a')]['markerNameToElements'](_0x3fff19[_0xeb7d('0xf6')]);if(_0x4d0187)for(const _0x209da8 of _0x4d0187)(_0x209da8[_0xeb7d('0xe9')](_0xeb7d('0xb8'))||_0x209da8[_0xeb7d('0xe9')](_0xeb7d('0xf0')))&&(_0x560740[_0xeb7d('0x3a')]['unbindElementFromMarkerName'](_0x209da8,_0x3fff19[_0xeb7d('0xf6')]),_0x560740[_0xeb7d('0x5f')][_0xeb7d('0xe8')](_0x209da8));},{'priority':_0xeb7d('0xa1')}),this[_0xeb7d('0xed')][_0xeb7d('0x113')]['downcastDispatcher']['on'](_0xeb7d('0x67'),(_0x226a64,_0x5c3549,_0x4216c2)=>{const _0x275cdf=_0x5c3549[_0xeb7d('0xf6')][_0xeb7d('0x2d')](':')[0x1],_0x43e9c2=this['_getChangeFromId'](_0x275cdf);if(!_0x43e9c2)return null;const _0x50afaf='add'==_0x43e9c2['type']?_0xeb7d('0x2d'):_0xeb7d('0x46');if(_0x4216c2[_0xeb7d('0xf3')][_0xeb7d('0x64')](_0x5c3549[_0xeb7d('0x1e')],_0x226a64[_0xeb7d('0x74')]))for(const _0x5631b9 of _0x5c3549[_0xeb7d('0x1e')][_0xeb7d('0x75')]()){if(!_0x5631b9['is'](_0xeb7d('0xc0'),_0xeb7d('0x87')))continue;const _0x1578c3=_0x4216c2[_0xeb7d('0x5f')]['createUIElement'](_0xeb7d('0x18'),{'class':'ck-suggestion-marker-'+_0x50afaf}),_0x4c22d3=_0x4216c2['mapper'][_0xeb7d('0x26')](this[_0xeb7d('0xed')]['model'][_0xeb7d('0xe2')](_0x5631b9));_0x43e9c2[_0xeb7d('0xba')]['isSuggestion']&&_0x4216c2[_0xeb7d('0x5f')]['addClass']('ck-suggestion-marker-'+_0x50afaf+_0xeb7d('0x8a'),_0x1578c3),this[_0xeb7d('0xd9')]==_0x43e9c2&&_0x4216c2[_0xeb7d('0x5f')][_0xeb7d('0x44')]('ck-suggestion-marker--active',_0x1578c3),_0x4216c2['writer'][_0xeb7d('0x119')](_0x4c22d3,_0x1578c3),_0x4216c2['mapper'][_0xeb7d('0x50')](_0x1578c3,_0x5c3549[_0xeb7d('0xf6')]);}},{'priority':'high'}),this[_0xeb7d('0xed')]['model'][_0xeb7d('0x115')]['on'](_0xeb7d('0x12'),()=>{this[_0xeb7d('0xed')][_0xeb7d('0x113')]['view'][_0xeb7d('0x12')](_0x3c85a1=>{for(const _0x2b1051 of this[_0xeb7d('0xed')]['model'][_0xeb7d('0x115')][_0xeb7d('0xf')]()){const _0x28afbf=this[_0xeb7d('0xed')][_0xeb7d('0x7e')][_0xeb7d('0x115')]['getRoot'](_0x2b1051),_0x1a80df=this['editor']['editing']['view'][_0xeb7d('0x115')]['getRoot'](_0x2b1051);if(_0x1a80df){const _0x344df3=_0x28afbf['getAttribute'](_0xeb7d('0x10d'));if(_0x3c85a1[_0xeb7d('0x61')]('data-change-id',_0x1a80df),_0x3c85a1[_0xeb7d('0x2c')](_0xeb7d('0xe4'),_0x1a80df),_0x3c85a1['removeClass'](_0xeb7d('0x80'),_0x1a80df),_0x3c85a1['removeClass'](_0xeb7d('0x37'),_0x1a80df),_0x344df3){const _0x1a57a0=this['_getChangeFromId'](_0x344df3);if(!_0x1a57a0)return null;_0x3c85a1['setAttribute'](_0xeb7d('0x1a'),_0x344df3,_0x1a80df),_0x3c85a1[_0xeb7d('0x44')](_0xeb7d('0xd1')+_0x1a57a0[_0xeb7d('0x1d')],_0x1a80df),this[_0xeb7d('0xd9')]==_0x1a57a0&&_0x3c85a1[_0xeb7d('0x44')](_0xeb7d('0x37'),_0x1a80df);}}}});}),this[_0xeb7d('0xed')][_0xeb7d('0x110')]['for'](_0xeb7d('0x108'))[_0xeb7d('0x17')]({'view':_0xeb7d('0xea'),'model':_0x5b6c30=>_0xeb7d('0x8c')+_0x5b6c30,'converterPriority':_0xeb7d('0x22')}),this[_0xeb7d('0xed')][_0xeb7d('0x110')][_0xeb7d('0xc5')](_0xeb7d('0x108'))['dataToMarker']({'view':'suggestion','model':_0x460554=>'revision-suggestion:'+_0x460554,'converterPriority':_0xeb7d('0x22')}),this['editor'][_0xeb7d('0x110')]['for'](_0xeb7d('0xdd'))[_0xeb7d('0xa')]({'model':_0xeb7d('0x7d'),'view':_0x2a9844=>({'name':_0xeb7d('0xb7')+_0x2a9844,'group':'revision-suggestion'}),'converterPriority':_0xeb7d('0x22')}),this[_0xeb7d('0xed')][_0xeb7d('0x110')][_0xeb7d('0xc5')]('editingDowncast')['markerToHighlight']({'model':_0xeb7d('0x7d'),'view':_0x178375=>{const _0x5a4c2f=_0x178375['markerName'][_0xeb7d('0x2d')](':')[0x1];return _0xeb7d('0xca')!=_0x5a4c2f&&_0xeb7d('0xb3')!=_0x5a4c2f?null:{'classes':['ck-suggestion-preview-marker',_0xeb7d('0xcf')+_0x5a4c2f]};}}),this[_0xeb7d('0xed')]['editing'][_0xeb7d('0xf7')]['on'](_0xeb7d('0xe3'),et(this[_0xeb7d('0xed')],_0xeb7d('0x46')),{'priority':_0xeb7d('0xa1')}),this['editor']['editing'][_0xeb7d('0xf7')]['on']('addMarker:revision-suggestion:insertion',et(this[_0xeb7d('0xed')],_0xeb7d('0x2d')),{'priority':_0xeb7d('0xa1')}),this[_0xeb7d('0xed')][_0xeb7d('0x113')][_0xeb7d('0xf7')]['on'](_0xeb7d('0x121'),(_0x5a1b65,_0x15ba9d,_0x1f0585)=>{const _0x4b4f5e=_0x1f0585[_0xeb7d('0x3a')][_0xeb7d('0xe0')](_0x15ba9d[_0xeb7d('0xf6')]);if(_0x4b4f5e)for(const _0x32d5f6 of _0x4b4f5e)_0x32d5f6['is'](_0xeb7d('0x5e'))&&(_0x1f0585[_0xeb7d('0x3a')][_0xeb7d('0x68')](_0x32d5f6,_0x15ba9d[_0xeb7d('0xf6')]),_0x1f0585[_0xeb7d('0x5f')]['remove'](_0x32d5f6));},{'priority':_0xeb7d('0xa1')});}['_getChangeFromId'](_0x1a4377){return this[_0xeb7d('0x85')]['get'](_0x1a4377);}[_0xeb7d('0x117')](_0x19723d){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new _0x172e38(this[_0xeb7d('0xed')][_0xeb7d('0xa9')],_0x19723d),this['_changeView'];}['_initInteractions'](){this[_0xeb7d('0xed')]['model'][_0xeb7d('0x115')]['selection'][_0xeb7d('0xab')](_0xeb7d('0xd')),this['on']('change:activeView',(_0x3f7700,_0x4e3ab1,_0x38c7a1,_0x4668b0)=>{_0x4668b0&&this[_0xeb7d('0x5d')][_0xeb7d('0xe8')](_0x4668b0),_0x38c7a1&&(this[_0xeb7d('0x5d')][_0xeb7d('0x48')]({'view':_0x38c7a1,'stackId':_0xeb7d('0x4b'),'position':{'target':()=>{const _0x5c89df=this['editor']['editing'],_0x4f25a9=this[_0xeb7d('0xaf')](_0x38c7a1[_0xeb7d('0x39')]);let _0x2eff7e;if(_0x4f25a9[_0xeb7d('0xba')][_0xeb7d('0x11')]){const _0x3f90ea=_0x5c89df[_0xeb7d('0x4')][_0xeb7d('0xc3')](_0x4f25a9['rootName']);_0x2eff7e=Array[_0xeb7d('0x102')](_0x3f90ea['getClientRects']());}else{const _0x4c92a4=this[_0xeb7d('0xed')][_0xeb7d('0x7e')]['markers'][_0xeb7d('0x1b')]('revision:'+_0x38c7a1[_0xeb7d('0x39')]);_0x2eff7e=Array[_0xeb7d('0x102')](_0x5c89df[_0xeb7d('0x3a')][_0xeb7d('0xe0')](_0x4c92a4[_0xeb7d('0x74')]))[_0xeb7d('0x4a')](_0x433267=>_0x5c89df[_0xeb7d('0x4')][_0xeb7d('0x4d')][_0xeb7d('0x1')](_0x433267))[_0xeb7d('0x4a')](_0x135196=>Array['from'](_0x135196['getClientRects']()))[_0xeb7d('0xde')]();}if(!this[_0xeb7d('0xc4')])return _0x2eff7e[0x0];return _0x2eff7e[_0xeb7d('0x3b')](_0x35ba0f=>_0x35ba0f['top']-0x3<=this[_0xeb7d('0xc4')]['y']&&_0x35ba0f[_0xeb7d('0x5b')]+0x3>=this[_0xeb7d('0xc4')]['y']&&_0x35ba0f[_0xeb7d('0xd2')]-0x3<=this[_0xeb7d('0xc4')]['x']&&_0x35ba0f[_0xeb7d('0x11e')]+0x3>=this[_0xeb7d('0xc4')]['x'])||_0x2eff7e[0x0];}}}),this[_0xeb7d('0x5d')][_0xeb7d('0xe5')](_0xeb7d('0x4b')));}),this['on'](_0xeb7d('0x57'),(_0x28dfc0,_0xa885b3,_0x7b963d,_0x52a892)=>{this['activeView']=_0x7b963d?this[_0xeb7d('0x117')](_0x7b963d):null,this['editor'][_0xeb7d('0x7e')]['change'](()=>{const _0x56108f=this[_0xeb7d('0xed')]['editing'];_0x52a892&&(_0x52a892[_0xeb7d('0xba')][_0xeb7d('0x11')]?_0x56108f[_0xeb7d('0x4')][_0xeb7d('0x12')](_0xe9d6c5=>{_0xe9d6c5[_0xeb7d('0x2c')](_0xeb7d('0x37'),_0x56108f[_0xeb7d('0x4')][_0xeb7d('0x115')]['getRoot'](_0x52a892[_0xeb7d('0x9c')]));}):_0x56108f[_0xeb7d('0x58')]('revision:'+_0x52a892['id'])),_0x7b963d&&(_0x7b963d[_0xeb7d('0xba')][_0xeb7d('0x11')]?_0x56108f[_0xeb7d('0x4')]['change'](_0x4afa3f=>{_0x4afa3f[_0xeb7d('0x44')](_0xeb7d('0x37'),_0x56108f[_0xeb7d('0x4')][_0xeb7d('0x115')][_0xeb7d('0x78')](_0x7b963d[_0xeb7d('0x9c')]));}):_0x56108f[_0xeb7d('0x58')](_0xeb7d('0xc6')+_0x7b963d['id']));});}),this[_0xeb7d('0x98')](this[_0xeb7d('0xed')]['editing'][_0xeb7d('0x4')][_0xeb7d('0x115')],_0xeb7d('0x120'),(_0x155c00,_0x2e4cf1)=>{if(this[_0xeb7d('0xd9')])return;const _0x2f70b0=this['_findChangeIdFromDomTarget'](_0x2e4cf1['target']),_0x53b75f=this['_changeIdToChange']['get'](_0x2f70b0);_0x53b75f?(this[_0xeb7d('0xc4')]={'x':_0x2e4cf1[_0xeb7d('0xeb')]['x'],'y':_0x2e4cf1[_0xeb7d('0xeb')]['y']},this[_0xeb7d('0x29')]=this['_getViewForChange'](_0x53b75f)):(this[_0xeb7d('0xc4')]=null,this[_0xeb7d('0x29')]=null);}),this[_0xeb7d('0x98')](this['editor'][_0xeb7d('0x113')][_0xeb7d('0x4')][_0xeb7d('0x115')],_0xeb7d('0x100'),(_0xb80828,_0x5d8650)=>{const _0x6bec8c=this[_0xeb7d('0x7c')](_0x5d8650[_0xeb7d('0x14')]),_0x56a1f8=this[_0xeb7d('0x85')][_0xeb7d('0x1b')](_0x6bec8c);_0x56a1f8?(this['_activeViewTarget']={'x':_0x5d8650[_0xeb7d('0xeb')]['x'],'y':_0x5d8650[_0xeb7d('0xeb')]['y']},_0x56a1f8===this[_0xeb7d('0xd9')]?this['_balloon'][_0xeb7d('0xd3')]():this[_0xeb7d('0xd9')]=_0x56a1f8):(this[_0xeb7d('0xc4')]=null,this[_0xeb7d('0xd9')]=null);});}[_0xeb7d('0x7c')](_0x43a716){do{const _0x235134=_0x43a716[_0xeb7d('0x6d')]('data-change-id');if(_0x235134)return _0x235134;_0x43a716=_0x43a716[_0xeb7d('0xa0')];}while(_0x43a716);return null;}[_0xeb7d('0x88')](){this[_0xeb7d('0xed')][_0xeb7d('0x7e')][_0xeb7d('0x12')](_0x229b05=>{for(const _0x1688c1 of this[_0xeb7d('0xed')]['model'][_0xeb7d('0x10e')])_0x229b05[_0xeb7d('0xf2')](_0x1688c1);});}}function et(_0x272c89,_0x5190fd){return(_0x2f665b,_0x49ddfd,_0x2065a1)=>{if(!_0x2065a1['consumable']['test'](_0x49ddfd[_0xeb7d('0x1e')],_0x2f665b[_0xeb7d('0x74')]))return;const _0x5de844=_0x49ddfd[_0xeb7d('0x1e')][_0xeb7d('0xcb')](),_0x41058f=_0x49ddfd[_0xeb7d('0x1e')][_0xeb7d('0x49')],_0x12af04=_0x272c89['model'][_0xeb7d('0xe1')];let _0x467d95=null,_0x14f17f=null,_0x222e0e=!0x1,_0xbaa493=!0x1;for(const _0x4f8682 of _0x5de844){const _0x26f288=_0x4f8682['item'];_0x222e0e=_0x222e0e||_0x12af04[_0xeb7d('0x93')](_0x26f288);const _0x2c184e=_0x2065a1[_0xeb7d('0x3a')][_0xeb7d('0xdf')](_0x26f288);if(_0x2c184e&&_0x2c184e[_0xeb7d('0x56')](_0xeb7d('0x76')))return;_0xeb7d('0xac')==_0x4f8682['type']&&(_0x12af04['isBlock'](_0x26f288)&&!_0x12af04[_0xeb7d('0xef')](_0x26f288)&&(_0x26f288[_0xeb7d('0x95')]||_0x41058f[_0xeb7d('0xda')]?_0x467d95&&_0x467d95[_0xeb7d('0xa0')]==_0x26f288||(_0x467d95=_0x26f288,_0x5942ff(_0x4f8682[_0xeb7d('0x51')]),_0xbaa493=!0x0):_0x14f17f=_0x14f17f||_0x4f8682['previousPosition']));}function _0x5942ff(_0x53328f){const _0x4338f0=_0x2065a1['mapper'][_0xeb7d('0x26')](_0x53328f),_0x535169=_0x2065a1['writer'][_0xeb7d('0x11a')](_0xeb7d('0x18'),{'class':_0xeb7d('0xcf')+_0x5190fd});_0x2065a1[_0xeb7d('0x5f')][_0xeb7d('0x119')](_0x4338f0,_0x535169),_0x2065a1[_0xeb7d('0x3a')]['bindElementToMarker'](_0x535169,_0x49ddfd[_0xeb7d('0xf6')]);}_0x222e0e||_0xbaa493||!_0x14f17f||_0x5942ff(_0x14f17f);};}export class RestoreRevisionCommand extends _0x45f7a9{constructor(_0xb5c9fa){super(_0xb5c9fa);const _0x13546=_0xb5c9fa[_0xeb7d('0x71')]['get'](d);this[_0xeb7d('0x70')]=!0x1,this['listenTo'](_0x13546,_0xeb7d('0xa3'),()=>this[_0xeb7d('0x86')]()),this[_0xeb7d('0x98')](_0x13546,'change:isEnabled',()=>this['refresh']());}[_0xeb7d('0x62')](){const _0x4bb097=this[_0xeb7d('0xed')],_0x1f198f=_0x4bb097[_0xeb7d('0x71')][_0xeb7d('0x1b')](d),_0x2c3956=_0x1f198f[_0xeb7d('0x72')]?_0x1f198f[_0xeb7d('0xb5')][_0xeb7d('0x52')]:null;_0x4bb097[_0xeb7d('0x7b')][_0xeb7d('0x1b')](_0xeb7d('0x11b'))[_0xeb7d('0xae')](_0x2c3956);}[_0xeb7d('0x86')](){const {isReady:_0x427b3a,isEnabled:_0x235f63}=this['editor'][_0xeb7d('0x71')][_0xeb7d('0x1b')](d);this[_0xeb7d('0x9')]=_0x427b3a&&_0x235f63;}}export class ShowChangeCommand extends _0x45f7a9{constructor(_0x5246bb,{direction:_0x244ce5}){super(_0x5246bb);const _0x523be4=_0x5246bb[_0xeb7d('0x71')][_0xeb7d('0x1b')](d);this[_0xeb7d('0x70')]=!0x1,this['_step']='forward'===_0x244ce5?0x1:-0x1,this[_0xeb7d('0x98')](_0x523be4,_0xeb7d('0xa3'),()=>this[_0xeb7d('0x86')]()),this[_0xeb7d('0x98')](_0x523be4,'change:isEnabled',()=>this[_0xeb7d('0x86')]()),this[_0xeb7d('0x98')](_0x523be4,'change:activeChange',()=>this[_0xeb7d('0x86')]());}['execute'](){const _0x3f605c=this[_0xeb7d('0xed')],_0x374396=_0x3f605c[_0xeb7d('0x71')][_0xeb7d('0x1b')](d),{isNavigationMode:_0x22fc9f,currentChangeNumber:_0x41e66a}=_0x374396;let _0x56239a;if(_0x374396[_0xeb7d('0xd9')]=_0x22fc9f?_0x374396[_0xeb7d('0xb5')][_0xeb7d('0x53')][_0xeb7d('0x1b')](_0x41e66a+this[_0xeb7d('0x16')]):_0x374396['diff']['changes']['first'],_0x374396[_0xeb7d('0xd9')][_0xeb7d('0xba')][_0xeb7d('0x11')])_0x56239a=_0x3f605c[_0xeb7d('0x113')][_0xeb7d('0x4')][_0xeb7d('0xc3')](_0x374396[_0xeb7d('0xd9')][_0xeb7d('0x9c')]);else{const _0x52ac33=_0x3f605c['model'][_0xeb7d('0x10e')][_0xeb7d('0x1b')](_0xeb7d('0xc6')+_0x374396[_0xeb7d('0xd9')]['id']);_0x56239a=_0x4ea41f(_0x3f605c['editing'],_0x52ac33);}_0x7cc601({'target':_0x56239a,'viewportOffset':0x28});}[_0xeb7d('0x86')](){const {isNavigationMode:_0x3f575f,currentChangeNumber:_0x322f41,numberOfChanges:_0x1ca16c,isReady:_0xa81d8e,isEnabled:_0x368ecd}=this[_0xeb7d('0xed')]['plugins'][_0xeb7d('0x1b')](d);this['isEnabled']=!!(_0x368ecd&&_0xa81d8e&&_0x1ca16c)&&(!_0x3f575f||(0x1===this[_0xeb7d('0x16')]?_0x322f41<_0x1ca16c-0x1:_0x322f41>0x0));}}
|
|
23
|
+
const _0xeaa2=['isRemoveSuggestion','isSuggestion','suggestion:','unshift','compare','_removeUnsupportedChanges','_findChangeIdFromDomTarget','shift','getItems','enqueueChange','enableReadOnlyMode','isAtStart','vid_end','WidgetToolbarRepository','toViewPosition','deletions','endIndex','ck-suggestion-marker-merge','backward','consume','get','data-change-id','insert','getClientRects','revision-suggestion','POSITIVE_INFINITY','checkAttribute','isAttached','_sortAndFilterDiffChanges','createRangeIn','numberOfChanges','ck-suggestion-marker','downcastDispatcher','startIndex','nextPosition','_removeMissingPairs','consumable','getRevisionData','name','range','schema','change:activeView','hasClass','viewItem','config','done','text','roots','revision','revision-comment:','previousPosition','pluginName','_fixObsoleteTags','_cleanUp','catch','change','init','set','mouseover','addMarker:revision-suggestion:insertion','pairId','bindElementToMarker','editing','editor','ck-editor__editable__overlay','change:numberOfChanges','slice','model','isIncorrect','abs','getCustomProperty','indexOf','span','createPositionBefore','unbindElementFromMarkerName','pop','side','_removeRevisionMarkers','ck-suggestion-marker-split','ck-suggestion-preview-marker','diff','changeId','addMarker:revision','addRevision','_processTape','refresh','nextSibling','adapter','userId','length','resolve','attachChange','removeClass','detachRoot','markerName','getAttributes','writer','isRemoved','distance','newRevisionId','_getViewForChange','vid_start','ck-revision-history-root-add','next','high','element','children','collaboration.channelId','test','add','delete','for','mapViewToDom','bind','change:activeChange','processor','item','_threeWayMerge','revisionHistoryLabel','attributes','bottom','_getViewObj','isBlock','_cleanMarkers','highest','offsetSize','listenTo','attribute:vid','revisionHistoryAttachChange','addMarker:revision-suggestion:deletion','top','includes','isAddSuggestion','getRootNames','softBreak','wrap','target','createUIElement','removeMarker','getRevision','from','isCollapsed','revision-suggestion:','ck-suggestion-preview-marker-','map','keys','parent','view','loadRevisionData','mousedown','forEach','isEqual','getDomRoot','_makeModelFromViewString','stop','remove','domEvent','_changeIdToChange','data','level','modelRange','_changeView','rootName','RevisionsRepository','plugins','_getRevisionsRange','affectsData','upcast','getRoot','observeMarkers','createAttributeElement','_initInteractions','_joinTapes','showStack','oldRevisionId','default','has','isAdded','startsWith','ck-suggestion-marker-','markerNameToElements','ck-revision-history-root-remove','forceDisabled','push','right','toModel','editingDowncast','_markMismatchedRemovedTags','split','return','commands','isReady','_markMarkers','flat','insertion','revision-end','getWalker','dataDowncast','ck-revision-history-root-','markers','isAtEnd','-new','mapper','index','change:isEnabled','domConverter','isAfter','end','document','restoreRevision','createRange','execute','_balloon','ck-revision-history-root--active','showPreviousChange','createPositionFromPath','_markSuggestions','locale','selection','_setConversion','concat','toViewRange','then','isNavigationMode','_refreshStartEndIndex','getAttribute','marked','error','_getChangeFromId','destroy','string','repository','low','type','element:pre','change:isReady','sort','_appendChild','_data','markersEnd','addRevisionData','_makeModelFromTape','isEnabled','conversion','deletion','revision:','changes','splice','insertions','all','getChild','markerToHighlight','nodeAfter','elementStart','addHighlight','removeMarker:revision-suggestion','activeChange','revision-viewer','_markInsertions','attributesBefore','diffData','ck-suggestion-marker--active','hasAttribute','setAttribute','markerToData','getIndex','toViewElement','clear','merge','isBefore','suggestion','start','_makeTape','_activeViewTarget','updatePosition','isOnRoot','showNextChange','attributesAfter','isContent','dataToMarker','maxOffset','forward','_getDiff','elementEnd','markerRange','markersStart','activeView','getRevisionRootsAttributes','RevisionViewer','_step','restoreRevisionCallback','parse','_setDistance','filter','isLimit','uiElement','addClass','vid','useFillerType','object','reconvertMarker'];(function(_0x45ffa,_0xeaa293){const _0x59f69d=function(_0x3a1bd1){while(--_0x3a1bd1){_0x45ffa['push'](_0x45ffa['shift']());}};_0x59f69d(++_0xeaa293);}(_0xeaa2,0x65));const _0x59f6=function(_0x45ffa,_0xeaa293){_0x45ffa=_0x45ffa-0x0;let _0x59f69d=_0xeaa2[_0x45ffa];return _0x59f69d;};import{Plugin as _0x46a91c,Command as _0x5e8b59}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x3b15ae}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0xefe336}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x29151e,Element as _0x2d9a61,Text as _0x509178,ViewDocumentFragment as _0x3925ef,ViewText as _0x59bd71,ViewElement as _0xfb73e3,ViewContainerElement as _0x47a98c,ViewAttributeElement as _0x191dfd,ViewEmptyElement as _0x76d4bd,ViewRawElement as _0x5034c0,ViewUIElement as _0x1d85e0}from'ckeditor5/src/engine.js';import{Users as _0x16029d,getMarkerDomElement as _0x44109a}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x4e1609 from'./ui/revisionviewer/changedetailsview.js';import _0x315e5d from'./revisionsrepository.js';import _0x344f57 from'./changeitem.js';import{default as _0x1c5865}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x36b8e1}from'lodash-es';const tt={'c':_0x47a98c,'a':_0x191dfd,'e':_0x76d4bd,'r':_0x5034c0,'u':_0x1d85e0};export default class d extends _0x46a91c{static get[_0x59f6('0xfb')](){return _0x59f6('0xbb');}static get['requires'](){return[_0x16029d,_0xefe336,_0x315e5d];}constructor(_0x454887){super(_0x454887),this['repository']=this[_0x59f6('0x107')][_0x59f6('0x3f')][_0x59f6('0xdc')](_0x59f6('0x3e')),this[_0x59f6('0x101')]('activeChange',null),this[_0x59f6('0x101')](_0x59f6('0xb9'),null),this['_activeViewTarget']=null,this['set']('diff',null),this['set'](_0x59f6('0x5a'),!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x31f8cf,_0x4e7544,_0x1ddb8f)=>{this[_0x59f6('0x9b')]=null,this[_0x59f6('0xb9')]=null,this[_0x59f6('0x107')]['editing']['view']['change'](_0xa0c773=>{for(const _0x565332 of this['editor']['editing'][_0x59f6('0x2e')][_0x59f6('0x6b')][_0x59f6('0xf7')])_0x1ddb8f?_0xa0c773[_0x59f6('0x124')]('ck-editor__editable__overlay',_0x565332):_0xa0c773[_0x59f6('0xc3')](_0x59f6('0x108'),_0x565332);});}),this[_0x59f6('0xc')](_0x59f6('0x7a'))['to'](this,_0x59f6('0x9b'),_0x4036d2=>null!==_0x4036d2),this[_0x59f6('0xc')]('currentChangeNumber')['to'](this,_0x59f6('0x5a'),this,_0x59f6('0x118'),this,'activeChange',(_0x14198c,_0x379e2a,_0x21aac4)=>_0x14198c&&_0x21aac4?_0x379e2a['changes'][_0x59f6('0xa4')](_0x21aac4):0x0),this[_0x59f6('0xc')](_0x59f6('0xe6'))['to'](this,_0x59f6('0x5a'),this,_0x59f6('0x118'),(_0x1852b8,_0x480766)=>_0x1852b8?_0x480766[_0x59f6('0x91')][_0x59f6('0x121')]:0x0),this[_0x59f6('0x3c')]=null,this[_0x59f6('0x38')]=new Map(),this['adapter']=null,this[_0x59f6('0x6f')]=this[_0x59f6('0x107')][_0x59f6('0x3f')][_0x59f6('0xdc')](_0xefe336);}[_0x59f6('0x100')](){const _0xde5b22=this[_0x59f6('0x107')],_0x52e233=new ShowChangeCommand(_0xde5b22,{'direction':_0x59f6('0xda')}),_0x548c71=new ShowChangeCommand(_0xde5b22,{'direction':_0x59f6('0xb4')});(_0xde5b22['commands']['add'](_0x59f6('0x71'),_0x52e233),_0xde5b22[_0x59f6('0x59')][_0x59f6('0x8')](_0x59f6('0xaf'),_0x548c71),_0xde5b22[_0x59f6('0x59')][_0x59f6('0x8')](_0x59f6('0x6c'),new RestoreRevisionCommand(_0xde5b22)),this['on'](_0x59f6('0x109'),()=>{_0x52e233['refresh'](),_0x548c71['refresh']();}),this['_setConversion'](),this[_0x59f6('0x46')](),_0xde5b22[_0x59f6('0xd2')]('revision-viewer'),_0xde5b22[_0x59f6('0x3f')][_0x59f6('0x4b')](_0x59f6('0xd5')))&&_0xde5b22['plugins'][_0x59f6('0xdc')]('WidgetToolbarRepository')[_0x59f6('0x51')](_0x59f6('0x9c'));}async[_0x59f6('0xed')](_0x35739a){await this['loadRevisionData'](_0x35739a);const _0x1d12d8={};for(const _0x410651 in _0x35739a[_0x59f6('0x9f')]){if(_0x35739a['diffData'][_0x410651][_0x59f6('0x123')]&&!_0x35739a['diffData'][_0x410651]['attachChange'][_0x59f6('0xe3')])continue;const _0x5ece47=this[_0x59f6('0x115')](JSON[_0x59f6('0xbe')](_0x35739a['diffData'][_0x410651][_0x59f6('0x93')])),_0xe4cc9b=this[_0x59f6('0x107')][_0x59f6('0x106')][_0x59f6('0x2e')][_0x59f6('0x6b')],_0x95606c=new _0x3925ef(_0xe4cc9b,_0x5ece47['map'](_0x989ae6=>this[_0x59f6('0x14')](_0x989ae6)));this[_0x59f6('0x107')][_0x59f6('0x39')]['processor'][_0x59f6('0xc5')](_0x59f6('0x7d')),_0x1d12d8[_0x410651]=this[_0x59f6('0x107')][_0x59f6('0x39')][_0x59f6('0xe')]['toData'](_0x95606c),this[_0x59f6('0x107')]['data'][_0x59f6('0xe')][_0x59f6('0xc5')](_0x59f6('0x4a'));}return _0x1d12d8;}async[_0x59f6('0xba')](_0x429c25){await this[_0x59f6('0x2f')](_0x429c25);const _0x5106eb={};for(const _0x5619fd in _0x429c25[_0x59f6('0x9f')])_0x429c25[_0x59f6('0x9f')][_0x5619fd][_0x59f6('0x123')]&&!_0x429c25['diffData'][_0x5619fd]['attachChange'][_0x59f6('0xe3')]||(_0x5106eb[_0x5619fd]=_0x429c25[_0x59f6('0x9f')][_0x5619fd][_0x59f6('0xb0')]||{});return _0x5106eb;}[_0x59f6('0x115')](_0x1a709a){return(_0x1a709a=_0x1a709a[_0x59f6('0xc0')](_0x59eec9=>!_0x59eec9[_0x59f6('0xee')]||'revision-start'!==_0x59eec9['name']&&_0x59f6('0x5e')!==_0x59eec9[_0x59f6('0xee')]))[_0x59f6('0x31')](_0x48166a=>{_0x59f6('0x81')!=typeof _0x48166a&&(_0x48166a[_0x59f6('0x5')]=this['_removeRevisionMarkers'](_0x48166a['children']),_0x48166a[_0x59f6('0x12')]=_0x48166a[_0x59f6('0x12')][_0x59f6('0xc0')](_0x8c1a22=>!_0x8c1a22[0x0][_0x59f6('0x4d')]('data-revision-')));}),_0x1a709a;}async[_0x59f6('0xcc')](_0x43041c,_0x2edcd5,_0x59b41d=!0x1){if(!this[_0x59f6('0x8d')])return;const _0x39fbe9=this['diff'],_0x12b5b7=this['repository'],_0x4380e8='string'==typeof _0x43041c?_0x12b5b7[_0x59f6('0x26')](_0x43041c):_0x43041c,_0x45865d=_0x59f6('0x81')==typeof _0x2edcd5?_0x12b5b7[_0x59f6('0x26')](_0x2edcd5):_0x2edcd5,_0x462b9c=_0x4380e8['id'],_0x563405=_0x45865d?_0x45865d['id']:null;if(!_0x59b41d&&this[_0x59f6('0x118')]&&this[_0x59f6('0x118')][_0x59f6('0x12b')]===_0x462b9c&&this['diff'][_0x59f6('0x49')]===_0x563405)return Promise[_0x59f6('0x122')]();this[_0x59f6('0x5a')]=!0x1,this[_0x59f6('0xb9')]=null,this[_0x59f6('0x9b')]=null,this[_0x59f6('0x118')]=new _0x1c5865(_0x462b9c,_0x563405);const _0x23d941=this[_0x59f6('0x40')](_0x4380e8,_0x45865d,!0x0)[_0x59f6('0x2b')](_0xf5c2eb=>this['loadRevisionData'](_0xf5c2eb));return _0x23d941[_0x59f6('0x52')](new Promise(_0xbd6edd=>{setTimeout(_0xbd6edd,0x14);})),Promise[_0x59f6('0x94')](_0x23d941)[_0x59f6('0x79')](()=>{if(!this[_0x59f6('0x8d')])return;this['_cleanUp']();const _0x551eb8=this[_0x59f6('0xb5')](_0x462b9c,_0x563405);for(const _0x1d10d3 of _0x551eb8[_0x59f6('0x91')])this['_changeIdToChange'][_0x59f6('0x101')](_0x1d10d3['id'],_0x1d10d3);this[_0x59f6('0x107')][_0x59f6('0x10b')]['enqueueChange']({'isUndoable':!0x1},_0x1ba168=>{for(const _0x5d6071 of this['editor'][_0x59f6('0x10b')][_0x59f6('0x6b')][_0x59f6('0x20')]())_0x1ba168['detachRoot'](_0x5d6071);for(const _0x19fc34 of Object[_0x59f6('0x2c')](_0x551eb8[_0x59f6('0x10b')])){const _0xaf1fff=_0x1ba168['addRoot'](_0x19fc34);for(const _0x672df8 of Object['keys'](_0x551eb8[_0x59f6('0x12')][_0x19fc34]))_0x1ba168[_0x59f6('0xa2')](_0x672df8,_0x551eb8[_0x59f6('0x12')][_0x19fc34][_0x672df8],_0xaf1fff);_0x1ba168[_0x59f6('0xde')](_0x551eb8[_0x59f6('0x10b')][_0x19fc34],_0xaf1fff,0x0);}}),this[_0x59f6('0x118')]['_setChanges'](this['_sortAndFilterDiffChanges'](_0x551eb8['changes'])),this['isReady']=!0x0;})[_0x59f6('0xfe')](_0x14eb51=>{console[_0x59f6('0x7e')](_0x14eb51),this[_0x59f6('0xfd')](),_0x39fbe9&&(this['diff']=_0x39fbe9),this['isReady']=!0x0;});}[_0x59f6('0x8b')](_0x295d9d,_0x3d4a61){const _0x5de26b=this[_0x59f6('0x82')]['createRevision'](_0x295d9d);return _0x5de26b['on']('_update',(_0x4be05c,_0x17f6a7,_0x5865c4)=>_0x3d4a61(_0x17f6a7,_0x5865c4,_0x5de26b)),this[_0x59f6('0x82')][_0x59f6('0x11b')](_0x5de26b),_0x5de26b;}[_0x59f6('0x2f')](_0x21392c){if(!_0x21392c||_0x21392c[_0x59f6('0x9f')])return Promise[_0x59f6('0x122')]();{const _0x5aee67=this['editor'][_0x59f6('0xf4')][_0x59f6('0xdc')](_0x59f6('0x6'));return this[_0x59f6('0x11f')][_0x59f6('0x26')]({'channelId':_0x5aee67,'revisionId':_0x21392c['id']})[_0x59f6('0x79')](_0xef58e3=>{_0x21392c['_update']({'diffData':_0xef58e3[_0x59f6('0x9f')]},!0x0);});}}['_cleanUp'](){this[_0x59f6('0x9b')]=null,this['_cleanMarkers'](),this[_0x59f6('0x3c')]&&this[_0x59f6('0x3c')][_0x59f6('0x80')](),this[_0x59f6('0x3c')]=null,this['_changeIdToChange'][_0x59f6('0xa6')](),this[_0x59f6('0x107')]['model'][_0x59f6('0xd1')]({'isUndoable':!0x1},_0xc77a88=>{for(const _0x42bafb of this[_0x59f6('0x107')]['model']['document'][_0x59f6('0x20')]())_0xc77a88[_0x59f6('0x125')](_0x42bafb);});}[_0x59f6('0xe4')](_0x3768de){const _0x5dd00f=[],_0x4db00b=new Map();for(const _0x29c182 of this[_0x59f6('0x107')][_0x59f6('0x10b')][_0x59f6('0x6b')][_0x59f6('0x20')]()){const _0x4c2fb1=this[_0x59f6('0x107')][_0x59f6('0x106')][_0x59f6('0x2e')]['getDomRoot'](_0x29c182);if(!_0x4c2fb1)continue;const _0xa90716=_0x4c2fb1[_0x59f6('0xdf')]()[_0x59f6('0xf')](0x0);_0xa90716&&(_0x5dd00f[_0x59f6('0x52')](_0x29c182),_0x4db00b[_0x59f6('0x101')](_0x29c182,_0xa90716));}return _0x5dd00f[_0x59f6('0x87')]((_0x8e4375,_0x5b13b6)=>{const _0x4e068d=_0x4db00b['get'](_0x8e4375),_0x19b9e4=_0x4db00b[_0x59f6('0xdc')](_0x5b13b6);return _0x4e068d['y']-_0x19b9e4['y']||_0x4e068d['x']-_0x19b9e4['x'];}),(_0x3768de=_0x3768de[_0x59f6('0xc0')](_0x413182=>_0x5dd00f['includes'](_0x413182[_0x59f6('0x3d')])))[_0x59f6('0x87')]((_0x37c891,_0x3fad45)=>_0x5dd00f[_0x59f6('0x10f')](_0x37c891[_0x59f6('0x3d')])-_0x5dd00f['indexOf'](_0x3fad45['rootName'])),_0x3768de;}[_0x59f6('0xab')](_0x112e36){const _0x24b487=Array['from'](_0x112e36[_0x59f6('0x62')])['filter'](([_0xdadb54,_0x2cd502])=>_0xdadb54[_0x59f6('0x4d')](_0x59f6('0x90'))&&!_0x2cd502[_0x59f6('0x28')]),_0x37ebca=Array[_0x59f6('0x27')](this[_0x59f6('0x107')][_0x59f6('0x10b')][_0x59f6('0xe5')](_0x112e36)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x24b487['length'])for(const _0x5f4c8c of _0x37ebca){const [_0x18f9b7,_0x873b13]=_0x24b487[0x0],[,_0xdcd00c,_0x4c2c3c]=_0x18f9b7[_0x59f6('0x57')](':');if(_0x873b13['end'][_0x59f6('0x32')](_0x5f4c8c['nextPosition'])&&_0x24b487[_0x59f6('0xcf')](),(_0x5f4c8c[_0x59f6('0xfa')]['isEqual'](_0x873b13['start'])||_0x5f4c8c[_0x59f6('0xfa')][_0x59f6('0x69')](_0x873b13[_0x59f6('0xaa')]))&&(_0x59f6('0x5d')==_0xdcd00c?_0x5f4c8c[_0x59f6('0x4c')]={'userId':_0x4c2c3c}:_0x59f6('0x8f')==_0xdcd00c&&(_0x5f4c8c[_0x59f6('0x129')]={'userId':_0x4c2c3c})),0x0==_0x24b487[_0x59f6('0x121')])break;}return _0x37ebca;}[_0x59f6('0x7b')](_0xcad22c){const _0x2e5c4d=new Map();for(let _0x27c19b=0x0;_0x27c19b<_0xcad22c[_0x59f6('0x121')];_0x27c19b++)_0x59f6('0xf6')===_0xcad22c[_0x27c19b][_0x59f6('0x84')]?(_0xcad22c[_0x27c19b][_0x59f6('0xf')]['startIndex']=_0x27c19b,_0xcad22c[_0x27c19b][_0x59f6('0xf')]['endIndex']=_0x27c19b):(_0x59f6('0x98')===_0xcad22c[_0x27c19b][_0x59f6('0x84')]?_0xcad22c[_0x27c19b]['item'][_0x59f6('0xe9')]=_0x27c19b:_0x59f6('0xb6')===_0xcad22c[_0x27c19b]['type']&&(_0xcad22c[_0x27c19b][_0x59f6('0xf')][_0x59f6('0xd8')]=_0x27c19b),_0x2e5c4d['set'](_0xcad22c[_0x27c19b]['id'],_0x27c19b));for(const _0x47dcc6 of _0x2e5c4d['values']())_0x59f6('0x98')===_0xcad22c[_0x47dcc6][_0x59f6('0x84')]?_0xcad22c[_0x47dcc6][_0x59f6('0xf')]['endIndex']=_0x2e5c4d[_0x59f6('0xdc')](_0xcad22c[_0x47dcc6][_0x59f6('0x104')]):_0x59f6('0xb6')===_0xcad22c[_0x47dcc6][_0x59f6('0x84')]&&(_0xcad22c[_0x47dcc6][_0x59f6('0xf')][_0x59f6('0xe9')]=_0x2e5c4d[_0x59f6('0xdc')](_0xcad22c[_0x47dcc6][_0x59f6('0x104')]));}[_0x59f6('0x11c')](_0x216dca){for(let _0x145bce=0x0;_0x145bce<_0x216dca['length'];_0x145bce++){if(_0x59f6('0x98')===_0x216dca[_0x145bce][_0x59f6('0x84')])_0x216dca[_0x145bce][_0x59f6('0xf')][_0x59f6('0xe9')]=_0x145bce;else{if('elementEnd'===_0x216dca[_0x145bce]['type']){_0x216dca[_0x145bce][_0x59f6('0xf')][_0x59f6('0xd8')]=_0x145bce;const _0x161617=_0x216dca[_0x145bce][_0x59f6('0xf')][_0x59f6('0xe9')];_0x216dca[_0x161617][_0x59f6('0x104')]=_0x216dca[_0x145bce]['id'],_0x216dca[_0x145bce][_0x59f6('0x104')]=_0x216dca[_0x161617]['id'];}else _0x216dca[_0x145bce][_0x59f6('0xf')][_0x59f6('0xe9')]=_0x145bce,_0x216dca[_0x145bce][_0x59f6('0xf')]['endIndex']=_0x145bce,_0x216dca[_0x145bce][_0x59f6('0x104')]=null;}_0x216dca[_0x145bce][_0x59f6('0xb8')]||(_0x216dca[_0x145bce][_0x59f6('0xb8')]=[],_0x216dca[_0x145bce]['markersEnd']=[]);}}[_0x59f6('0x9d')](_0x2e762a,_0x522096){const _0x42510d=_0x2e762a['filter'](_0x22d4b6=>!_0x22d4b6[_0x59f6('0x4c')]);for(let _0x5c6383=0x0;_0x5c6383<_0x522096['length'];_0x5c6383++)_0x522096[_0x5c6383]['isAdded']&&(_0x42510d[_0x5c6383][_0x59f6('0x4c')]=_0x522096[_0x5c6383][_0x59f6('0x4c')]);}['_makeModelFromViewString'](_0x5c208c){const _0x44d449=JSON[_0x59f6('0xbe')](_0x5c208c),_0x461e9f=this[_0x59f6('0x107')][_0x59f6('0x106')][_0x59f6('0x2e')][_0x59f6('0x6b')],_0x20b99d=new _0x3925ef(_0x461e9f,_0x44d449[_0x59f6('0x2b')](_0x449866=>this[_0x59f6('0x14')](_0x449866)));return this[_0x59f6('0x107')][_0x59f6('0x39')][_0x59f6('0x54')](_0x20b99d);}[_0x59f6('0x14')](_0x2ace81){const _0x124e67=this[_0x59f6('0x107')][_0x59f6('0x106')][_0x59f6('0x2e')][_0x59f6('0x6b')];if(_0x59f6('0x81')==typeof _0x2ace81)return new _0x59bd71(_0x124e67,_0x2ace81);{const _0x517169=_0x2ace81[_0x59f6('0x5')][_0x59f6('0x2b')](_0x36bd72=>this[_0x59f6('0x14')](_0x36bd72));return new(tt[_0x2ace81[(_0x59f6('0x84'))]]||_0xfb73e3)(_0x124e67,_0x2ace81[_0x59f6('0xee')],_0x2ace81['attributes'],_0x517169);}}[_0x59f6('0xb5')](_0x19b592,_0x3d95d1=null){const _0x2dd3cf=this[_0x59f6('0x82')][_0x59f6('0x26')](_0x19b592),_0x173e0b=_0x3d95d1?this[_0x59f6('0x82')][_0x59f6('0x26')](_0x3d95d1):null,_0x1aa8de=this[_0x59f6('0x40')](_0x2dd3cf,_0x173e0b),_0x288ed2=_0x1aa8de[_0x1aa8de[_0x59f6('0x121')]-0x1],_0x2ca78e=new Map(),_0x3f7c18={'model':{},'attributes':{},'changes':[]},_0xab63ef=new Set(),_0x32a1bc=new Map();for(let _0x314746=_0x1aa8de[_0x59f6('0x121')]-0x1;_0x314746>=0x0;_0x314746--){const _0xa2f5af=_0x1aa8de[_0x314746];for(const _0x394afd of Object[_0x59f6('0x2c')](_0xa2f5af[_0x59f6('0x9f')]))if(_0xa2f5af['diffData'][_0x394afd]['attachChange']){const _0x39fd74=_0xa2f5af[_0x59f6('0x9f')][_0x394afd][_0x59f6('0x123')];_0x39fd74[_0x59f6('0xe3')]?(_0xab63ef[_0x59f6('0x8')](_0x394afd),_0x32a1bc[_0x59f6('0x4b')](_0x394afd)&&_0x32a1bc[_0x59f6('0xdc')](_0x394afd)[_0x59f6('0x120')]==_0x39fd74[_0x59f6('0x120')]?_0x32a1bc[_0x59f6('0x9')](_0x394afd):_0x32a1bc[_0x59f6('0x101')](_0x394afd,_0x39fd74)):_0x32a1bc[_0x59f6('0x4b')](_0x394afd)?(_0xab63ef['delete'](_0x394afd),_0x32a1bc['delete'](_0x394afd)):(_0xab63ef[_0x59f6('0x8')](_0x394afd),_0x32a1bc[_0x59f6('0x101')](_0x394afd,_0x39fd74));}else _0xab63ef['add'](_0x394afd);}for(const _0x2a6b81 of _0xab63ef){const _0x2fe304=_0x32a1bc[_0x59f6('0x4b')](_0x2a6b81)&&!_0x32a1bc[_0x59f6('0xdc')](_0x2a6b81)[_0x59f6('0xe3')];let _0x287fcd=_0x2fe304?_0x1aa8de[_0x59f6('0x121')]-0x1:0x0;const _0x3838b5=_0x2fe304?-0x1:0x1;for(;_0x1aa8de[_0x287fcd];){const _0x1a5b4a=_0x1aa8de[_0x287fcd];if(_0x1a5b4a[_0x59f6('0x9f')][_0x2a6b81]){const _0x1b6ebd=_0x2fe304?_0x1a5b4a['diffData'][_0x2a6b81][_0x59f6('0x9e')]:_0x1a5b4a['diffData'][_0x2a6b81][_0x59f6('0xb0')];_0x3f7c18['attributes'][_0x2a6b81]=_0x1b6ebd?_0x36b8e1(_0x1b6ebd):{};break;}_0x287fcd+=_0x3838b5;}}for(const _0x43ff7e of _0x1aa8de){_0x43ff7e[_0x59f6('0x10b')]={};for(const _0x4c43f0 of _0x43ff7e['authors'])_0x2ca78e[_0x59f6('0x101')](_0x4c43f0['id'],_0x4c43f0);for(const _0x3b1703 of _0xab63ef){const _0x389a7b=_0x43ff7e[_0x59f6('0x9f')][_0x3b1703]?_0x43ff7e[_0x59f6('0x9f')][_0x3b1703][_0x59f6('0x93')]:'[]',_0x547026=_0x43ff7e[_0x59f6('0x9f')][_0x3b1703]?_0x43ff7e[_0x59f6('0x9f')][_0x3b1703][_0x59f6('0xd7')]:'[]';_0x43ff7e['model'][_0x3b1703]={'insertions':this[_0x59f6('0x34')](_0x389a7b),'deletions':this['_makeModelFromViewString'](_0x547026)};}}for(const _0x51cd5f of _0xab63ef){let _0xe1589a=null,_0x32d4cd=0x0;const _0x384d7c=new Map(Array[_0x59f6('0x27')](_0x2dd3cf[_0x59f6('0x10b')][_0x51cd5f][_0x59f6('0x93')][_0x59f6('0x62')])[_0x59f6('0xc0')](([_0x56d879])=>!_0x56d879[_0x59f6('0x4d')]('revision:')));let _0x318d98=0x0;for(const _0x34c0f1 of _0x1aa8de){const _0x2d73da=this[_0x59f6('0xab')](_0x34c0f1[_0x59f6('0x10b')][_0x51cd5f]['insertions']);_0x34c0f1==_0x2dd3cf?(_0xe1589a=_0x2d73da,_0x32d4cd=_0xe1589a[_0x59f6('0x121')],_0xe1589a[_0x59f6('0x31')](_0x53062d=>{_0x53062d['id']=_0x318d98++;}),this[_0x59f6('0x11c')](_0xe1589a)):this[_0x59f6('0x9d')](_0xe1589a,_0x2d73da);const _0x5f535c=_0xe1589a[_0x59f6('0xc0')](_0x4c6f31=>!_0x4c6f31['isAdded'])['map'](_0x408a80=>_0x408a80['id']);let _0x166936=0x0;const _0x4a13c6=this[_0x59f6('0xab')](_0x34c0f1[_0x59f6('0x10b')][_0x51cd5f][_0x59f6('0xd7')]);_0x4a13c6['forEach'](_0x3b6f44=>{_0x3b6f44[_0x59f6('0x129')]?_0x3b6f44['id']=_0x32d4cd++:_0x3b6f44['id']=_0x5f535c[_0x166936++];}),this[_0x59f6('0x11c')](_0x4a13c6),this[_0x59f6('0xbf')](_0xe1589a,'isAdded'),this['_setDistance'](_0x4a13c6,'isRemoved'),_0x34c0f1==_0x2dd3cf&&this['_markMarkers'](_0xe1589a,_0x384d7c),_0xe1589a=this[_0x59f6('0x47')](_0xe1589a,_0x4a13c6),this[_0x59f6('0x7b')](_0xe1589a),this[_0x59f6('0xbf')](_0xe1589a,_0x59f6('0x129'));}_0xe1589a=_0xe1589a[_0x59f6('0xc0')](_0x5da1f9=>!(_0x5da1f9['isAdded']&&_0x5da1f9[_0x59f6('0x129')]));const _0x88c259=new Map(_0x288ed2['model'][_0x51cd5f][_0x59f6('0xd7')]['markers']),_0x4e49c1=new Set(_0x384d7c[_0x59f6('0x2c')]());for(const _0x228ac1 of _0x88c259[_0x59f6('0x2c')]())_0x4e49c1[_0x59f6('0x9')](_0x228ac1);this[_0x59f6('0x73')](_0xe1589a,_0x4e49c1),this['_fixObsoleteTags'](_0xe1589a),_0xe1589a=this['_removeMissingPairs'](_0xe1589a),_0xe1589a=this[_0x59f6('0x56')](_0xe1589a),_0xe1589a=this[_0x59f6('0xcd')](_0xe1589a);const {root:_0x20aa8c,changes:_0x3abe19}=this[_0x59f6('0x8c')](_0xe1589a,_0x2ca78e,_0x51cd5f);_0x3f7c18['model'][_0x51cd5f]=_0x20aa8c;const _0x1ffa26=_0x32a1bc['get'](_0x51cd5f);if(_0x1ffa26){const _0x3a97d6=_0x2ca78e['get'](_0x1ffa26[_0x59f6('0x120')]),_0x3d2bfd=new _0x344f57({'author':_0x3a97d6,'type':_0x1ffa26[_0x59f6('0xe3')]?_0x59f6('0x8'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x51cd5f});_0x3abe19[_0x59f6('0xcb')](_0x3d2bfd),_0x3f7c18[_0x59f6('0x12')][_0x51cd5f][_0x59f6('0x1b')]=_0x3d2bfd['id'];}_0x3f7c18[_0x59f6('0x91')]=_0x3f7c18[_0x59f6('0x91')][_0x59f6('0x77')](_0x3abe19);}return _0x3f7c18;}[_0x59f6('0x5b')](_0x487ef3,_0x78d57d){for(let _0x3c042a=0x0;_0x3c042a<_0x487ef3[_0x59f6('0x121')];_0x3c042a++)for(const [_0x101498,_0xecbab3]of _0x78d57d)_0xecbab3[_0x59f6('0xaa')][_0x59f6('0x32')](_0x487ef3[_0x3c042a][_0x59f6('0xfa')])&&_0x487ef3[_0x3c042a][_0x59f6('0xb8')][_0x59f6('0x52')](_0x101498),_0xecbab3[_0x59f6('0x6a')][_0x59f6('0x32')](_0x487ef3[_0x3c042a][_0x59f6('0xea')])&&_0x487ef3[_0x3c042a][_0x59f6('0x8a')]['push'](_0x101498);}[_0x59f6('0x47')](_0x3c05a5,_0x513dc7){let _0x5266cf=[],_0x38f196=0x0,_0x4eb1a4=0x0;for(;_0x38f196<_0x3c05a5['length']||_0x4eb1a4<_0x513dc7[_0x59f6('0x121')];){const _0x19d2aa=_0x3c05a5[_0x38f196]||{},_0x387fc9=_0x513dc7[_0x4eb1a4]||{};if(_0x19d2aa['id']==_0x387fc9['id'])_0x38f196++,_0x4eb1a4++,_0x5266cf['push'](_0x19d2aa);else{if(_0x387fc9[_0x59f6('0x129')]&&_0x19d2aa[_0x59f6('0x4c')]){const {commonTape:_0x53dad1,iEnd:_0xef596d,jEnd:_0x77aeca}=this[_0x59f6('0x10')](_0x3c05a5,_0x38f196,_0x513dc7,_0x4eb1a4);_0x5266cf=_0x5266cf[_0x59f6('0x77')](_0x53dad1),_0x38f196=_0xef596d,_0x4eb1a4=_0x77aeca;}else _0x387fc9[_0x59f6('0x129')]?(_0x4eb1a4++,_0x5266cf['push'](_0x387fc9)):(_0x38f196++,_0x5266cf['push'](_0x19d2aa));}}return _0x5266cf;}[_0x59f6('0x73')](_0x112c69,_0x47ea92){const _0x5a0c2a=[];for(let _0x3f1910=0x0;_0x3f1910<_0x112c69[_0x59f6('0x121')];_0x3f1910++){for(let _0x32c9fd=0x0;_0x32c9fd<_0x112c69[_0x3f1910][_0x59f6('0xb8')][_0x59f6('0x121')];_0x32c9fd++){const _0x5c4909=_0x112c69[_0x3f1910]['markersStart'][_0x32c9fd];if(!_0x47ea92[_0x59f6('0x4b')](_0x5c4909))continue;const {group:_0x39950e,type:_0x2f015d,authorId:_0x553290}=_0x46af00(_0x5c4909);_0x59f6('0xe0')!=_0x39950e||_0x59f6('0x5d')!=_0x2f015d&&'deletion'!=_0x2f015d||(_0x5a0c2a[_0x59f6('0xcb')]({'type':_0x2f015d,'name':_0x5c4909,'userId':_0x553290}),_0x112c69[_0x3f1910][_0x59f6('0xb8')][_0x59f6('0x92')](_0x32c9fd,0x1),_0x32c9fd--);}_0x226820(_0x112c69[_0x3f1910]);for(let _0x268229=0x0;_0x268229<_0x112c69[_0x3f1910]['markersEnd'][_0x59f6('0x121')];_0x268229++){const _0x4e447f=_0x112c69[_0x3f1910]['markersEnd'][_0x268229];if(!_0x47ea92['has'](_0x4e447f))continue;const {group:_0x3113ee,type:_0xa6d553}=_0x46af00(_0x4e447f);if(_0x59f6('0xe0')!=_0x3113ee||_0x59f6('0x5d')!=_0xa6d553&&_0x59f6('0x8f')!=_0xa6d553)continue;_0x112c69[_0x3f1910][_0x59f6('0x8a')]['splice'](_0x268229,0x1),_0x268229--;const _0x1021d6=_0x5a0c2a['findIndex'](_0x309cba=>_0x309cba[_0x59f6('0xee')]==_0x4e447f);_0x1021d6>-0x1&&_0x5a0c2a['splice'](_0x1021d6,0x1);}}function _0x46af00(_0x315b3c){const _0x1f2499=_0x315b3c[_0x59f6('0x57')](':');return{'group':_0x1f2499[0x0],'type':_0x1f2499[0x1],'subType':_0x1f2499[_0x59f6('0x121')]>=0x5?_0x1f2499[0x2]:null,'id':_0x1f2499[_0x59f6('0x121')]<0x5?_0x1f2499[0x2]:_0x1f2499[0x3],'authorId':_0x1f2499[_0x59f6('0x121')]<0x5?_0x1f2499[0x3]:_0x1f2499[0x4],'markerCount':0x6==_0x1f2499['length']?_0x1f2499[0x5]:null};}function _0x226820(_0x5795d1){for(let _0x3fad9f=0x0;_0x3fad9f<_0x5a0c2a[_0x59f6('0x121')];_0x3fad9f++){if(_0x5795d1[_0x59f6('0x4c')]&&_0x59f6('0x5d')==_0x5a0c2a[_0x3fad9f][_0x59f6('0x84')])return _0x5795d1[_0x59f6('0x1f')]=_0x5a0c2a[_0x3fad9f],void delete _0x5795d1[_0x59f6('0x4c')];if(!_0x5795d1['isAdded']&&!_0x5795d1[_0x59f6('0x129')]&&'deletion'==_0x5a0c2a[_0x3fad9f][_0x59f6('0x84')])return void(_0x5795d1[_0x59f6('0xc8')]=_0x5a0c2a[_0x3fad9f]);}}}[_0x59f6('0xbf')](_0x4c7bc8,_0x1dd35a){let _0x5c3795=0x0,_0xd87fe9=!0x1;const _0x57fd8a=new Map();for(const _0x413858 of _0x4c7bc8)_0x413858[_0x1dd35a]?_0xd87fe9&&(_0x5c3795++,_0xd87fe9=!0x1):(_0x5c3795++,_0xd87fe9=!0x0),_0x57fd8a['set'](_0x413858['id'],_0x5c3795);for(let _0x5d16ad=0x0;_0x5d16ad<_0x4c7bc8['length'];_0x5d16ad++){if(_0x59f6('0x129')==_0x1dd35a&&_0x4c7bc8[_0x5d16ad]['isAdded']||_0x59f6('0x4c')==_0x1dd35a&&_0x4c7bc8[_0x5d16ad][_0x59f6('0x129')])continue;if(_0x59f6('0xf6')==_0x4c7bc8[_0x5d16ad][_0x59f6('0x84')]){_0x4c7bc8[_0x5d16ad]['distance']=0x0;continue;}const _0x33298d=_0x57fd8a['get'](_0x4c7bc8[_0x5d16ad]['pairId']),_0x183bcf=_0x57fd8a[_0x59f6('0xdc')](_0x4c7bc8[_0x5d16ad]['id']);_0x4c7bc8[_0x5d16ad][_0x59f6('0x12a')]=_0x33298d-_0x183bcf;}}[_0x59f6('0x40')](_0x9b80fb,_0x54706a,_0x3a1d5f=!0x1){const _0xc729b8=[];let _0x505618=this[_0x59f6('0x82')]['getIndex'](_0x9b80fb),_0x8a3940=this[_0x59f6('0x82')]['getIndex'](_0x54706a);for(-0x1==_0x8a3940&&(_0x8a3940=this[_0x59f6('0x82')]['_revisions'][_0x59f6('0x121')],_0x3a1d5f=!0x1);_0x505618<_0x8a3940;)_0xc729b8[_0x59f6('0x52')](this['repository'][_0x59f6('0x26')](_0x505618)),_0x505618++;return _0x3a1d5f&&_0xc729b8[_0x59f6('0x52')](this[_0x59f6('0x82')][_0x59f6('0x26')](_0x505618)),_0xc729b8;}['_threeWayMerge'](_0x358591,_0x36662a,_0x3056eb,_0x25d2d2){const _0x18bf0c=this[_0x59f6('0x107')]['model']['schema'];let _0x348935=_0x36662a;for(;_0x358591[_0x348935]&&_0x358591[_0x348935][_0x59f6('0x4c')];)_0x348935++;let _0x4a650f=_0x25d2d2;for(;_0x3056eb[_0x4a650f]&&_0x3056eb[_0x4a650f][_0x59f6('0x129')];)_0x4a650f++;_0x121f58(_0x358591,_0x36662a,_0x348935),_0x121f58(_0x3056eb,_0x25d2d2,_0x4a650f);const _0x410aab=_0x3056eb[_0x59f6('0x10a')](_0x25d2d2,_0x4a650f)[_0x59f6('0x77')](_0x358591['slice'](_0x36662a,_0x348935));return _0x410aab[_0x59f6('0x87')]((_0xa0ba47,_0x45213a)=>_0xa0ba47[_0x59f6('0x114')]!=_0x45213a[_0x59f6('0x114')]?_0xa0ba47[_0x59f6('0x114')]-_0x45213a[_0x59f6('0x114')]:_0xa0ba47[_0x59f6('0x3a')]!=_0x45213a[_0x59f6('0x3a')]?_0xa0ba47[_0x59f6('0x3a')]-_0x45213a[_0x59f6('0x3a')]:_0xa0ba47[_0x59f6('0x12a')]!=_0x45213a[_0x59f6('0x12a')]?_0x45213a[_0x59f6('0x12a')]-_0xa0ba47[_0x59f6('0x12a')]:!!_0xa0ba47['isAdded']!=!!_0x45213a[_0x59f6('0x4c')]?-0x1==_0xa0ba47[_0x59f6('0x114')]||0x0==_0xa0ba47[_0x59f6('0x114')]?_0xa0ba47['isAdded']?-0x1:0x1:_0xa0ba47[_0x59f6('0x4c')]?0x1:-0x1:_0xa0ba47[_0x59f6('0x66')]-_0x45213a[_0x59f6('0x66')]),{'commonTape':_0x410aab,'iEnd':_0x348935,'jEnd':_0x4a650f};function _0x121f58(_0x1fc245,_0x136a5f,_0x295386){let _0x38270e=-0x1,_0x376824=Number[_0x59f6('0xe1')],_0x55e391=!0x0;for(let _0x3599ac=_0x136a5f;_0x3599ac<_0x295386;_0x3599ac++)if(_0x18bf0c['isInline'](_0x1fc245[_0x3599ac][_0x59f6('0xf')])||(_0x55e391=!0x1),_0x1fc245[_0x3599ac][_0x59f6('0xf')]['startIndex']<_0x136a5f&&(_0x38270e=_0x3599ac),_0x1fc245[_0x3599ac][_0x59f6('0xf')]['endIndex']>=_0x295386){_0x376824=_0x3599ac;break;}_0x55e391&&(_0x38270e=_0x295386-0x1);for(let _0x432686=_0x136a5f;_0x432686<_0x295386;_0x432686++)_0x1fc245[_0x432686][_0x59f6('0x114')]=_0x432686<=_0x38270e?-0x1:_0x432686<_0x376824?0x0:0x1,_0x1fc245[_0x432686][_0x59f6('0x66')]=_0x432686;let _0x4a1a98=0x0;for(let _0x8ba521=_0x136a5f;_0x8ba521<=_0x38270e;_0x8ba521++)0x0==_0x1fc245[_0x8ba521]['distance']?_0x1fc245[_0x8ba521]['level']=_0x4a1a98:(_0x4a1a98++,_0x1fc245[_0x8ba521][_0x59f6('0x3a')]=_0x4a1a98,_0x4a1a98++);for(let _0x372bfd=_0x136a5f;_0x372bfd<_0x295386;_0x372bfd++)0x0==_0x1fc245[_0x372bfd][_0x59f6('0x114')]&&(_0x1fc245[_0x372bfd][_0x59f6('0x3a')]=_0x4a1a98);_0x4a1a98=0x0;for(let _0x386630=_0x295386-0x1;_0x386630>=_0x376824;_0x386630--)0x0==_0x1fc245[_0x386630]['distance']?_0x1fc245[_0x386630]['level']=_0x4a1a98:(_0x4a1a98--,_0x1fc245[_0x386630][_0x59f6('0x3a')]=_0x4a1a98,_0x4a1a98--);}}[_0x59f6('0xfc')](_0x5f0ee4){const _0x480f7b=new Map(),_0x1b19e0=this['editor'][_0x59f6('0x10b')][_0x59f6('0xf0')];for(let _0x55df3c=0x1;_0x55df3c<_0x5f0ee4[_0x59f6('0x121')];_0x55df3c++){let _0x3d74fc,_0x5abf46,_0x25e288;const _0x3cc54c=_0x5f0ee4[_0x55df3c],_0x928d4d=_0x5f0ee4[_0x55df3c-0x1];if(_0x59f6('0xf6')==_0x3cc54c[_0x59f6('0x84')])continue;if(_0x3cc54c[_0x59f6('0x84')]!=_0x928d4d[_0x59f6('0x84')])continue;if(!_0x1b19e0[_0x59f6('0x15')](_0x928d4d[_0x59f6('0xf')])||_0x1b19e0[_0x59f6('0xc1')](_0x928d4d[_0x59f6('0xf')]))continue;if(!_0x1b19e0[_0x59f6('0x15')](_0x3cc54c[_0x59f6('0xf')])||_0x1b19e0[_0x59f6('0xc1')](_0x3cc54c[_0x59f6('0xf')]))continue;if((_0x5f0ee4[_0x55df3c]['isAdded']||_0x5f0ee4[_0x55df3c][_0x59f6('0x1f')])&&_0x5f0ee4[_0x55df3c-0x1][_0x59f6('0x129')])_0x3d74fc=_0x5f0ee4[_0x55df3c],_0x5abf46=_0x5f0ee4[_0x55df3c-0x1],_0x25e288=_0x55df3c-0x1;else{if(!_0x5f0ee4[_0x55df3c][_0x59f6('0x129')]||!_0x5f0ee4[_0x55df3c-0x1][_0x59f6('0x4c')]&&!_0x5f0ee4[_0x55df3c-0x1][_0x59f6('0x1f')])continue;_0x3d74fc=_0x5f0ee4[_0x55df3c-0x1],_0x5abf46=_0x5f0ee4[_0x55df3c],_0x25e288=_0x55df3c;}const _0x1d3379=_0x3d74fc[_0x59f6('0x3a')]==_0x5abf46[_0x59f6('0x3a')],_0x510bee=Math[_0x59f6('0x10d')](_0x3d74fc[_0x59f6('0x3a')])<Math[_0x59f6('0x10d')](_0x5abf46[_0x59f6('0x3a')])&&0x0==_0x5abf46[_0x59f6('0x12a')];(_0x1d3379||_0x510bee)&&(_0x480f7b[_0x59f6('0x101')](_0x5abf46['id'],_0x3d74fc['id']),_0x5f0ee4['splice'](_0x25e288,0x1),_0x55df3c--,_0x3d74fc['isAdded']=!0x1);}for(let _0x1a4742=0x0;_0x1a4742<_0x5f0ee4[_0x59f6('0x121')];_0x1a4742++)_0x480f7b[_0x59f6('0x4b')](_0x5f0ee4[_0x1a4742][_0x59f6('0x104')])&&(_0x5f0ee4[_0x1a4742][_0x59f6('0x104')]=_0x480f7b[_0x59f6('0xdc')](_0x5f0ee4[_0x1a4742][_0x59f6('0x104')]));}[_0x59f6('0xeb')](_0x5b475b){const _0x5f3207=new Set(_0x5b475b[_0x59f6('0x2b')](_0x492e1a=>_0x492e1a['id']));for(let _0x328c9c=0x0;_0x328c9c<_0x5b475b[_0x59f6('0x121')];_0x328c9c++)_0x5f3207['has'](_0x5b475b[_0x328c9c][_0x59f6('0x104')])||0x0==_0x5b475b[_0x328c9c]['distance']||(_0x5b475b[_0x328c9c]['isIncorrect']=!0x0);return _0x5b475b[_0x59f6('0xc0')](_0x2a761a=>!_0x2a761a[_0x59f6('0x10c')]);}['_markMismatchedRemovedTags'](_0x272c22){const _0x475874=new Set();for(let _0x1cbbd0=0x0;_0x1cbbd0<_0x272c22[_0x59f6('0x121')];_0x1cbbd0++){if(_0x475874[_0x59f6('0x4b')](_0x272c22[_0x1cbbd0]['id'])&&_0x272c22[_0x1cbbd0][_0x59f6('0x129')]&&(_0x272c22[_0x1cbbd0][_0x59f6('0x10c')]=!0x0),_0x272c22[_0x1cbbd0][_0x59f6('0x10c')])continue;if(0x0==_0x272c22[_0x1cbbd0][_0x59f6('0x12a')])continue;if(_0x59f6('0x98')!=_0x272c22[_0x1cbbd0]['type'])continue;if(null==_0x272c22[_0x1cbbd0][_0x59f6('0x104')])continue;let _0xc1e018=_0x1cbbd0+0x1,_0x149a60=0x0;for(;_0x272c22[_0xc1e018]['id']!=_0x272c22[_0x1cbbd0]['pairId'];)_0x59f6('0x98')==_0x272c22[_0xc1e018]['type']?_0x149a60++:'elementEnd'==_0x272c22[_0xc1e018][_0x59f6('0x84')]&&_0x149a60--,_0xc1e018++;if(0x0!=_0x149a60){if(_0x272c22[_0x1cbbd0][_0x59f6('0x129')])_0x272c22[_0x1cbbd0][_0x59f6('0x10c')]=!0x0;else for(;_0xc1e018!=_0x1cbbd0;)_0x272c22[_0xc1e018][_0x59f6('0x129')]&&0x0!=_0x272c22[_0xc1e018][_0x59f6('0x12a')]&&(_0x272c22[_0xc1e018]['isIncorrect']=!0x0,_0x475874[_0x59f6('0x8')](_0x272c22[_0xc1e018][_0x59f6('0x104')])),_0xc1e018--;}}return _0x272c22[_0x59f6('0xc0')](_0x3dbfc4=>!_0x3dbfc4[_0x59f6('0x10c')]);}[_0x59f6('0xcd')](_0x568ec6){const _0x4ca613=this[_0x59f6('0x107')][_0x59f6('0x10b')][_0x59f6('0xf0')];for(let _0x259d4d=0x0;_0x259d4d<_0x568ec6[_0x59f6('0x121')];_0x259d4d++){if(!(_0x568ec6[_0x259d4d][_0x59f6('0x4c')]||_0x568ec6[_0x259d4d][_0x59f6('0x1f')]||_0x568ec6[_0x259d4d]['isRemoved']||_0x568ec6[_0x259d4d]['isRemoveSuggestion']))continue;if(0x0==_0x568ec6[_0x259d4d][_0x59f6('0x12a')])continue;const _0x39bff4=_0x568ec6[_0x259d4d][_0x59f6('0xf')];_0x4ca613[_0x59f6('0x15')](_0x39bff4)||_0x4ca613['isLimit'](_0x39bff4)||(_0x568ec6[_0x259d4d][_0x59f6('0x4c')]&&delete _0x568ec6[_0x259d4d][_0x59f6('0x4c')],_0x568ec6[_0x259d4d][_0x59f6('0x1f')]&&delete _0x568ec6[_0x259d4d]['isAddSuggestion'],_0x568ec6[_0x259d4d][_0x59f6('0xc8')]&&delete _0x568ec6[_0x259d4d][_0x59f6('0xc8')],_0x568ec6[_0x259d4d][_0x59f6('0x129')]&&(_0x568ec6[_0x259d4d][_0x59f6('0x10c')]=!0x0));}return _0x568ec6[_0x59f6('0xc0')](_0x344b99=>!_0x344b99[_0x59f6('0x10c')]);}[_0x59f6('0x8c')](_0x52714f,_0x463e61,_0x3b1d91){const _0x53cd91=new _0x29151e(),_0x1519e7=[],_0x33f29c=new Map(),_0x262d5e=this[_0x59f6('0x107')][_0x59f6('0x10b')],_0x240bea=_0x262d5e[_0x59f6('0xf0')],_0x5c343f=[_0x53cd91],_0x2c10d5={},_0xe4e5dc={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5dc5ee=null;const _0x539288=[0x0];for(let _0x2a9ef2=0x0;_0x2a9ef2<_0x52714f[_0x59f6('0x121')];_0x2a9ef2++){let _0x39a534,_0x573b66;if(_0x59f6('0x98')===_0x52714f[_0x2a9ef2][_0x59f6('0x84')]){_0x39a534=_0x262d5e[_0x59f6('0x72')](_0x53cd91,_0x539288);const _0x3da8e3=new _0x2d9a61(_0x52714f[_0x2a9ef2][_0x59f6('0xf')]['name'],_0x52714f[_0x2a9ef2][_0x59f6('0xf')]['getAttributes']());_0x5c343f[0x0]['_appendChild'](_0x3da8e3),_0x539288['push'](0x0),_0x5c343f[_0x59f6('0xcb')](_0x3da8e3),_0x573b66=_0x262d5e['createPositionFromPath'](_0x53cd91,_0x539288),_0x5dc5ee=null;}else{if('elementEnd'===_0x52714f[_0x2a9ef2][_0x59f6('0x84')])_0x5c343f[_0x59f6('0xcf')](),_0x39a534=_0x262d5e[_0x59f6('0x72')](_0x53cd91,_0x539288),_0x539288[_0x59f6('0x113')](),_0x539288[_0x539288[_0x59f6('0x121')]-0x1]++,_0x573b66=_0x262d5e[_0x59f6('0x72')](_0x53cd91,_0x539288),_0x5dc5ee=null;else{if(_0x39a534=_0x262d5e['createPositionFromPath'](_0x53cd91,_0x539288),_0x5dc5ee&&_0x22030f(_0x5dc5ee,_0x52714f[_0x2a9ef2][_0x59f6('0xf')]))_0x5dc5ee[_0x59f6('0x89')]+=_0x52714f[_0x2a9ef2][_0x59f6('0xf')]['data'];else{const _0x49723d=new _0x509178(_0x52714f[_0x2a9ef2][_0x59f6('0xf')]['data'],_0x52714f[_0x2a9ef2][_0x59f6('0xf')][_0x59f6('0x127')]());_0x5c343f[0x0][_0x59f6('0x88')](_0x49723d),_0x5dc5ee=_0x49723d;}_0x539288[_0x539288[_0x59f6('0x121')]-0x1]+=_0x52714f[_0x2a9ef2]['item'][_0x59f6('0x18')],_0x573b66=_0x262d5e[_0x59f6('0x72')](_0x53cd91,_0x539288);}}for(const _0x270785 of _0x52714f[_0x2a9ef2][_0x59f6('0xb8')])_0x33f29c[_0x59f6('0x101')](_0x270785,{'start':_0x39a534,'end':null});_0x23887f(_0x59f6('0xc8'),_0x2a9ef2,_0x39a534,_0x573b66),_0x23887f('isAddSuggestion',_0x2a9ef2,_0x39a534,_0x573b66),_0x23887f(_0x59f6('0x129'),_0x2a9ef2,_0x39a534,_0x573b66),_0x23887f(_0x59f6('0x4c'),_0x2a9ef2,_0x39a534,_0x573b66);for(const _0x224cdf of _0x52714f[_0x2a9ef2]['markersEnd']){_0x33f29c[_0x59f6('0xdc')](_0x224cdf)['end']=_0x573b66;}}for(const [_0x2ef336,_0x3ff1ce]of _0x33f29c){const _0x5d217b=this[_0x59f6('0x107')][_0x59f6('0x10b')][_0x59f6('0x6d')](_0x3ff1ce[_0x59f6('0xaa')],_0x3ff1ce[_0x59f6('0x6a')]);_0x53cd91[_0x59f6('0x62')][_0x59f6('0x101')](_0x2ef336,_0x5d217b);}return _0x1519e7[_0x59f6('0x87')]((_0x16d15a,_0x1d306d)=>{const _0x25f378=_0x53cd91[_0x59f6('0x62')][_0x59f6('0xdc')](_0x59f6('0x90')+_0x16d15a['id']),_0x1e231a=_0x53cd91[_0x59f6('0x62')][_0x59f6('0xdc')](_0x59f6('0x90')+_0x1d306d['id']);return _0x25f378[_0x59f6('0xaa')][_0x59f6('0xa8')](_0x1e231a['start'])?-0x1:_0x25f378[_0x59f6('0xaa')]['isAfter'](_0x1e231a[_0x59f6('0xaa')])?0x1:_0x25f378['end']['isBefore'](_0x1e231a[_0x59f6('0x6a')])?-0x1:_0x25f378[_0x59f6('0x6a')]['isAfter'](_0x1e231a[_0x59f6('0x6a')])?0x1:_0x59f6('0x8')===_0x16d15a[_0x59f6('0x84')]?-0x1:0x1;}),{'root':_0x53cd91,'changes':_0x1519e7};function _0x23887f(_0x38803c,_0x13c7f7,_0x129e24,_0xc70d3b){const _0x1e663f=!!_0x52714f[_0x13c7f7][_0x38803c],_0xa7f06=_0x1e663f?_0x52714f[_0x13c7f7][_0x38803c][_0x59f6('0x120')]:null,_0x167ba0=_0x13c7f7===_0x52714f[_0x59f6('0x121')]-0x1,_0x5cf3e8=_0xe4e5dc[_0x38803c][0x0],_0xe45f47=_0x240bea['isObject'](_0x52714f[_0x13c7f7][_0x59f6('0xf')]);!_0x2c10d5[_0x38803c]&&_0x1e663f?_0x2c10d5[_0x38803c]={'start':_0x129e24,'tapeItem':_0x52714f[_0x13c7f7],'userId':_0xa7f06,'type':_0x38803c}:_0x2c10d5[_0x38803c]&&!_0x1e663f?(_0x2c10d5[_0x38803c][_0x59f6('0x6a')]=_0x129e24,_0x229a51(_0x2c10d5[_0x38803c]),_0x2c10d5[_0x38803c]=null):_0x2c10d5[_0x38803c]&&_0x1e663f&&_0x2c10d5[_0x38803c][_0x59f6('0x120')]!==_0xa7f06&&(_0x2c10d5[_0x38803c][_0x59f6('0x6a')]=_0x129e24,_0x5cf3e8&&_0x5cf3e8[_0x59f6('0x120')]===_0x2c10d5[_0x38803c][_0x59f6('0x120')]||_0x229a51(_0x2c10d5[_0x38803c]),_0x2c10d5[_0x38803c]={'start':_0x129e24,'tapeItem':_0x52714f[_0x13c7f7],'userId':_0xa7f06,'type':_0x38803c}),_0x2c10d5[_0x38803c]&&_0xe45f47&&('elementStart'!==_0x52714f[_0x13c7f7][_0x59f6('0x84')]||_0x5cf3e8&&_0x5cf3e8['userId']===_0xa7f06||_0xe4e5dc[_0x38803c][_0x59f6('0xcb')]({'userId':_0xa7f06,'object':_0x52714f[_0x13c7f7][_0x59f6('0xf')],'change':_0x2c10d5[_0x38803c]}),_0x59f6('0xb6')===_0x52714f[_0x13c7f7][_0x59f6('0x84')]&&_0x5cf3e8&&_0x5cf3e8[_0x59f6('0xc6')]===_0x52714f[_0x13c7f7][_0x59f6('0xf')]&&(_0xe4e5dc[_0x38803c][_0x59f6('0xcf')](),_0x2c10d5[_0x38803c]=_0x5cf3e8[_0x59f6('0xff')])),_0x2c10d5[_0x38803c]&&_0x167ba0&&(_0x2c10d5[_0x38803c][_0x59f6('0x6a')]=_0xc70d3b,_0x229a51(_0x2c10d5[_0x38803c]),_0x2c10d5[_0x38803c]=null);}function _0x229a51({start:_0x242792,end:_0x16c4bd,tapeItem:_0x49937f,userId:_0x58bb38,type:_0x5d67c0}){const _0x1f6347=_0x49937f[_0x59f6('0xf')],_0xb8ef7=_0x262d5e[_0x59f6('0xf0')][_0x59f6('0x15')](_0x1f6347)&&!_0x262d5e[_0x59f6('0xf0')][_0x59f6('0xc1')](_0x1f6347),_0x5e28d7=_0x242792[_0x59f6('0x97')]==_0x16c4bd[_0x59f6('0x2d')]&&_0x16c4bd[_0x59f6('0xd3')];if(_0xb8ef7&&_0x5e28d7)return;const _0x35b1e7=_0x262d5e[_0x59f6('0x6d')](_0x242792,_0x16c4bd),_0x438329=_0x463e61[_0x59f6('0xdc')](_0x58bb38),_0x174211=new _0x344f57({'author':_0x438329,'type':'isAdded'==_0x5d67c0||_0x59f6('0x1f')==_0x5d67c0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5d67c0||_0x59f6('0xc8')==_0x5d67c0},'createdAt':new Date(),'rootName':_0x3b1d91});_0x1519e7[_0x59f6('0x52')](_0x174211),_0x53cd91[_0x59f6('0x62')][_0x59f6('0x101')](_0x59f6('0x90')+_0x174211['id'],_0x35b1e7);}function _0x22030f(_0x53cd92,_0x58beef){const _0x4a49a4=_0x53cd92[_0x59f6('0x127')](),_0x4a8e23=_0x58beef['getAttributes']();for(const _0x5252c2 of _0x4a49a4){if(_0x5252c2[0x1]!==_0x58beef[_0x59f6('0x7c')](_0x5252c2[0x0]))return!0x1;_0x4a8e23[_0x59f6('0x2')]();}return _0x4a8e23[_0x59f6('0x2')]()[_0x59f6('0xf5')];}}[_0x59f6('0x76')](){this[_0x59f6('0x107')][_0x59f6('0x8e')]['for'](_0x59f6('0x42'))[_0x59f6('0xb2')]({'view':_0x59f6('0xf8')}),this[_0x59f6('0x107')]['conversion']['for'](_0x59f6('0x55'))['markerToHighlight']({'model':'revision','view':_0xa88290=>{const _0x561998=_0xa88290[_0x59f6('0x126')]['split'](':')[0x1],_0x2eb715=this[_0x59f6('0x7f')](_0x561998);if(!_0x2eb715)return null;const _0x541c46=_0x59f6('0x8')==_0x2eb715[_0x59f6('0x84')]?'insertion':'deletion',_0x1011b2=[_0x59f6('0xe7'),_0x59f6('0x4e')+_0x541c46];return _0x2eb715[_0x59f6('0x39')][_0x59f6('0xc9')]&&_0x1011b2[_0x59f6('0x52')](_0x59f6('0x4e')+_0x541c46+_0x59f6('0x64')),this['activeChange']==_0x2eb715&&_0x1011b2['push']('ck-suggestion-marker--active'),{'classes':_0x1011b2,'attributes':{'data-change-id':_0x561998}};}}),this[_0x59f6('0x107')]['conversion'][_0x59f6('0xa')](_0x59f6('0x42'))[_0x59f6('0x8')](_0x10500d=>{_0x10500d['on'](_0x59f6('0x85'),(_0x37c1e3,_0x4ba7fa,_0x3b729d)=>{const _0x4a884e=_0x4ba7fa['viewItem'][_0x59f6('0x95')](0x0);if(!_0x4a884e||!_0x4a884e['is'](_0x59f6('0x4'),'code'))return;if(!_0x3b729d['consumable'][_0x59f6('0xdb')](_0x4a884e,{'attributes':[_0x59f6('0x0'),_0x59f6('0xd4')]}))return;const _0xc8f824=_0x4ba7fa[_0x59f6('0x3b')][_0x59f6('0xaa')]['nodeAfter'];_0x3b729d[_0x59f6('0x128')][_0x59f6('0xa2')](_0x59f6('0x0'),_0x4a884e[_0x59f6('0x7c')](_0x59f6('0x0')),_0xc8f824),_0x3b729d[_0x59f6('0x128')][_0x59f6('0xa2')]('vid_end',_0x4a884e['getAttribute'](_0x59f6('0xd4')),_0xc8f824);},{'priority':_0x59f6('0x83')});}),this[_0x59f6('0x107')][_0x59f6('0x8e')]['for'](_0x59f6('0x42'))[_0x59f6('0x8')](_0x23fb1e=>{_0x23fb1e['on'](_0x59f6('0x4'),(_0x1da6fc,_0x15c386,_0x5f2cf8)=>{if(!_0x5f2cf8['consumable'][_0x59f6('0xdb')](_0x15c386[_0x59f6('0xf3')],{'attributes':[_0x59f6('0x0'),_0x59f6('0xd4')]}))return;if(_0x15c386['modelRange'][_0x59f6('0x28')])return;const _0x37b84a=_0x15c386['modelRange'][_0x59f6('0xaa')][_0x59f6('0x97')];_0x37b84a[_0x59f6('0xa1')](_0x59f6('0x0'))||_0x37b84a['hasAttribute']('vid')||(_0x5f2cf8['writer'][_0x59f6('0xa2')]('vid_start',_0x15c386[_0x59f6('0xf3')][_0x59f6('0x7c')](_0x59f6('0x0')),_0x37b84a),_0x5f2cf8['writer'][_0x59f6('0xa2')](_0x59f6('0xd4'),_0x15c386[_0x59f6('0xf3')][_0x59f6('0x7c')](_0x59f6('0xd4')),_0x37b84a));},{'priority':_0x59f6('0x83')});}),this[_0x59f6('0x107')][_0x59f6('0x8e')]['for'](_0x59f6('0x42'))['elementToAttribute']({'view':{'name':_0x59f6('0x110'),'attributes':{'vid':!0x0}},'model':{'key':_0x59f6('0xc4'),'value':_0x53f3b7=>_0x53f3b7[_0x59f6('0x7c')](_0x59f6('0xc4'))}}),this[_0x59f6('0x107')]['model'][_0x59f6('0xf0')]['on'](_0x59f6('0xe2'),(_0x5b03f8,[,_0x1723e3])=>{[_0x59f6('0x0'),'vid_end',_0x59f6('0xc4')][_0x59f6('0x1e')](_0x1723e3)&&(_0x5b03f8[_0x59f6('0x58')]=!0x0,_0x5b03f8[_0x59f6('0x35')]());},{'priority':_0x59f6('0x17')}),this[_0x59f6('0x107')][_0x59f6('0x8e')][_0x59f6('0xa')](_0x59f6('0x60'))['add'](_0x3b6822=>{_0x3b6822['on'](_0x59f6('0x1a'),(_0x37fa80,_0xd50598,_0x47f0eb)=>{if('\x20'!=_0xd50598[_0x59f6('0xf')][_0x59f6('0x39')]||_0xd50598[_0x59f6('0xf')][_0x59f6('0x2d')][_0x59f6('0xb3')]>0x1)return;if(!_0x47f0eb[_0x59f6('0xec')][_0x59f6('0xdb')](_0xd50598[_0x59f6('0xf')],_0x37fa80[_0x59f6('0xee')]))return;const _0x430db5=_0x47f0eb[_0x59f6('0x128')],_0x5bbce5=_0x47f0eb[_0x59f6('0x65')][_0x59f6('0x78')](_0xd50598[_0x59f6('0xef')]);_0x430db5[_0x59f6('0x22')](_0x5bbce5,_0x430db5[_0x59f6('0x45')](_0x59f6('0x110')));});}),this[_0x59f6('0x107')][_0x59f6('0x8e')][_0x59f6('0xa')](_0x59f6('0x60'))['markerToData']({'model':_0x59f6('0xf8')}),this[_0x59f6('0x107')][_0x59f6('0x106')][_0x59f6('0xe8')]['on'](_0x59f6('0x11a'),function(_0x1a2f65){const _0x5dadc0=_0x1a2f65[_0x59f6('0x3f')]['get'](_0x59f6('0xbb'));return(_0x5622be,_0x399558,_0x4d65c9)=>{const _0x529972=_0x399558[_0x59f6('0x126')][_0x59f6('0x57')](':')[0x1],_0x4b2bae=_0x5dadc0['_getChangeFromId'](_0x529972);if(!_0x4b2bae)return null;const _0x18f2ea=_0x59f6('0x8')==_0x4b2bae[_0x59f6('0x84')]?_0x59f6('0x57'):_0x59f6('0xa7');if(!_0x4d65c9[_0x59f6('0xec')]['test'](_0x399558[_0x59f6('0xb7')],_0x5622be[_0x59f6('0xee')]))return;const _0x4151f5=_0x399558[_0x59f6('0xb7')][_0x59f6('0x5f')](),_0x1a940e=_0x399558[_0x59f6('0xb7')][_0x59f6('0xaa')],_0x4c68d5=_0x1a2f65['model'][_0x59f6('0xf0')];let _0x1eb3a8=null,_0x42f357=null,_0x2e82eb=!0x1,_0x3a84ed=!0x1;for(const _0x285580 of _0x4151f5){const _0x55dfb0=_0x285580[_0x59f6('0xf')];_0x2e82eb=_0x2e82eb||_0x4c68d5[_0x59f6('0xb1')](_0x55dfb0);const _0x5c6a14=_0x4d65c9[_0x59f6('0x65')][_0x59f6('0xa5')](_0x55dfb0);if(_0x5c6a14&&_0x5c6a14[_0x59f6('0x10e')]('addHighlight'))return;_0x59f6('0xb6')==_0x285580[_0x59f6('0x84')]&&(_0x4c68d5[_0x59f6('0x15')](_0x55dfb0)&&!_0x4c68d5[_0x59f6('0xc1')](_0x55dfb0)&&(_0x55dfb0[_0x59f6('0x11e')]||_0x1a940e[_0x59f6('0x63')]?_0x1eb3a8&&_0x1eb3a8[_0x59f6('0x2d')]==_0x55dfb0||(_0x1eb3a8=_0x55dfb0,_0x1eff50(_0x285580[_0x59f6('0xfa')]),_0x3a84ed=!0x0):_0x42f357=_0x42f357||_0x285580[_0x59f6('0xfa')]));}function _0x1eff50(_0xa24e3c){const _0x5071b5=_0x4d65c9[_0x59f6('0x128')][_0x59f6('0x24')](_0x59f6('0x110'),{'class':_0x59f6('0x4e')+_0x18f2ea}),_0x5275c5=_0x4d65c9[_0x59f6('0x65')][_0x59f6('0xd6')](_0xa24e3c);_0x4b2bae['data'][_0x59f6('0xc9')]&&_0x4d65c9[_0x59f6('0x128')][_0x59f6('0xc3')](_0x59f6('0x4e')+_0x18f2ea+_0x59f6('0x64'),_0x5071b5),_0x5dadc0[_0x59f6('0x9b')]==_0x4b2bae&&_0x4d65c9['writer']['addClass'](_0x59f6('0xa0'),_0x5071b5),_0x4d65c9[_0x59f6('0x128')]['insert'](_0x5275c5,_0x5071b5),_0x4d65c9[_0x59f6('0x65')][_0x59f6('0x105')](_0x5071b5,_0x399558[_0x59f6('0x126')]);}_0x2e82eb||_0x3a84ed||!_0x42f357||_0x1eff50(_0x42f357);};}(this[_0x59f6('0x107')]),{'priority':_0x59f6('0x3')}),this[_0x59f6('0x107')][_0x59f6('0x106')]['downcastDispatcher']['on']('removeMarker:revision',(_0x44ddc3,_0xa457eb,_0x56ad19)=>{const _0x292a23=_0x56ad19[_0x59f6('0x65')][_0x59f6('0x4f')](_0xa457eb['markerName']);if(_0x292a23)for(const _0x4ccc65 of _0x292a23)(_0x4ccc65[_0x59f6('0xf2')](_0x59f6('0x116'))||_0x4ccc65[_0x59f6('0xf2')](_0x59f6('0xd9')))&&(_0x56ad19['mapper'][_0x59f6('0x112')](_0x4ccc65,_0xa457eb[_0x59f6('0x126')]),_0x56ad19[_0x59f6('0x128')]['remove'](_0x4ccc65));},{'priority':_0x59f6('0x3')}),this['editor'][_0x59f6('0x106')][_0x59f6('0xe8')]['on'](_0x59f6('0x11a'),(_0x5d8697,_0x6c9da5,_0x347398)=>{const _0x2563ea=_0x6c9da5[_0x59f6('0x126')][_0x59f6('0x57')](':')[0x1],_0x5e9025=this[_0x59f6('0x7f')](_0x2563ea);if(!_0x5e9025)return null;const _0x3a5ab5=_0x59f6('0x8')==_0x5e9025[_0x59f6('0x84')]?'split':_0x59f6('0xa7');if(_0x347398['consumable'][_0x59f6('0x7')](_0x6c9da5[_0x59f6('0xb7')],_0x5d8697[_0x59f6('0xee')]))for(const _0x27be4b of _0x6c9da5['markerRange'][_0x59f6('0xd0')]()){if(!_0x27be4b['is'](_0x59f6('0x4'),_0x59f6('0x21')))continue;const _0x488d89=_0x347398['writer'][_0x59f6('0x24')]('span',{'class':_0x59f6('0x4e')+_0x3a5ab5}),_0x15df66=_0x347398[_0x59f6('0x65')][_0x59f6('0xd6')](this[_0x59f6('0x107')][_0x59f6('0x10b')][_0x59f6('0x111')](_0x27be4b));_0x5e9025['data']['isSuggestion']&&_0x347398[_0x59f6('0x128')][_0x59f6('0xc3')](_0x59f6('0x4e')+_0x3a5ab5+_0x59f6('0x64'),_0x488d89),this[_0x59f6('0x9b')]==_0x5e9025&&_0x347398[_0x59f6('0x128')][_0x59f6('0xc3')](_0x59f6('0xa0'),_0x488d89),_0x347398[_0x59f6('0x128')][_0x59f6('0xde')](_0x15df66,_0x488d89),_0x347398[_0x59f6('0x65')]['bindElementToMarker'](_0x488d89,_0x6c9da5['markerName']);}},{'priority':_0x59f6('0x3')}),this[_0x59f6('0x107')][_0x59f6('0x10b')][_0x59f6('0x6b')]['on'](_0x59f6('0xff'),()=>{this['editor'][_0x59f6('0x106')][_0x59f6('0x2e')][_0x59f6('0xff')](_0x249a6d=>{for(const _0x3a94c1 of this['editor'][_0x59f6('0x10b')][_0x59f6('0x6b')][_0x59f6('0x20')]()){const _0x45ffb2=this[_0x59f6('0x107')]['model']['document']['getRoot'](_0x3a94c1),_0x1d2d6c=this['editor'][_0x59f6('0x106')]['view'][_0x59f6('0x6b')][_0x59f6('0x43')](_0x3a94c1);if(_0x1d2d6c){const _0x329850=_0x45ffb2['getAttribute']('revisionHistoryAttachChange');if(_0x249a6d['removeAttribute'](_0x59f6('0xdd'),_0x1d2d6c),_0x249a6d[_0x59f6('0x124')](_0x59f6('0x1'),_0x1d2d6c),_0x249a6d[_0x59f6('0x124')](_0x59f6('0x50'),_0x1d2d6c),_0x249a6d[_0x59f6('0x124')]('ck-revision-history-root--active',_0x1d2d6c),_0x329850){const _0x473351=this[_0x59f6('0x7f')](_0x329850);if(!_0x473351)return null;_0x249a6d[_0x59f6('0xa2')](_0x59f6('0xdd'),_0x329850,_0x1d2d6c),_0x249a6d[_0x59f6('0xc3')](_0x59f6('0x61')+_0x473351[_0x59f6('0x84')],_0x1d2d6c),this[_0x59f6('0x9b')]==_0x473351&&_0x249a6d[_0x59f6('0xc3')]('ck-revision-history-root--active',_0x1d2d6c);}}}});}),this['editor'][_0x59f6('0x8e')][_0x59f6('0xa')](_0x59f6('0x42'))[_0x59f6('0xb2')]({'view':'comment','model':_0x46201a=>_0x59f6('0xf9')+_0x46201a,'converterPriority':_0x59f6('0x17')}),this['editor'][_0x59f6('0x8e')][_0x59f6('0xa')](_0x59f6('0x42'))[_0x59f6('0xb2')]({'view':_0x59f6('0xa9'),'model':_0x132829=>_0x59f6('0x29')+_0x132829,'converterPriority':_0x59f6('0x17')}),this[_0x59f6('0x107')][_0x59f6('0x8e')][_0x59f6('0xa')]('dataDowncast')[_0x59f6('0xa3')]({'model':_0x59f6('0xe0'),'view':_0x33635d=>({'name':_0x59f6('0xca')+_0x33635d,'group':_0x59f6('0xe0')}),'converterPriority':_0x59f6('0x17')}),this[_0x59f6('0x107')][_0x59f6('0x8e')][_0x59f6('0xa')](_0x59f6('0x55'))[_0x59f6('0x96')]({'model':_0x59f6('0xe0'),'view':_0x459366=>{const _0xe05324=_0x459366['markerName'][_0x59f6('0x57')](':')[0x1];return _0x59f6('0x5d')!=_0xe05324&&_0x59f6('0x8f')!=_0xe05324?null:{'classes':[_0x59f6('0x117'),_0x59f6('0x2a')+_0xe05324]};}}),this['editor'][_0x59f6('0x106')]['downcastDispatcher']['on'](_0x59f6('0x1c'),et(this['editor'],'merge'),{'priority':_0x59f6('0x3')}),this[_0x59f6('0x107')][_0x59f6('0x106')][_0x59f6('0xe8')]['on'](_0x59f6('0x103'),et(this[_0x59f6('0x107')],_0x59f6('0x57')),{'priority':_0x59f6('0x3')}),this['editor'][_0x59f6('0x106')]['downcastDispatcher']['on'](_0x59f6('0x9a'),(_0x567f6f,_0x3c07a3,_0x1b8dfc)=>{const _0x3e6eaf=_0x1b8dfc[_0x59f6('0x65')][_0x59f6('0x4f')](_0x3c07a3[_0x59f6('0x126')]);if(_0x3e6eaf)for(const _0x3a0fcd of _0x3e6eaf)_0x3a0fcd['is'](_0x59f6('0xc2'))&&(_0x1b8dfc[_0x59f6('0x65')]['unbindElementFromMarkerName'](_0x3a0fcd,_0x3c07a3[_0x59f6('0x126')]),_0x1b8dfc['writer']['remove'](_0x3a0fcd));},{'priority':_0x59f6('0x3')});}[_0x59f6('0x7f')](_0x4b30fb){return this[_0x59f6('0x38')][_0x59f6('0xdc')](_0x4b30fb);}[_0x59f6('0x12c')](_0x189d00){return this['_changeView']&&this[_0x59f6('0x3c')][_0x59f6('0x80')](),this['_changeView']=new _0x4e1609(this[_0x59f6('0x107')][_0x59f6('0x74')],_0x189d00),this[_0x59f6('0x3c')];}['_initInteractions'](){this[_0x59f6('0x107')][_0x59f6('0x10b')][_0x59f6('0x6b')][_0x59f6('0x75')][_0x59f6('0x44')](_0x59f6('0xf8')),this['on'](_0x59f6('0xf1'),(_0x5c2ce6,_0x3866de,_0x2d05cf,_0x4e89d5)=>{_0x4e89d5&&this[_0x59f6('0x6f')][_0x59f6('0x36')](_0x4e89d5),_0x2d05cf&&(this['_balloon'][_0x59f6('0x8')]({'view':_0x2d05cf,'stackId':_0x59f6('0x11'),'position':{'target':()=>{const _0x35af5d=this[_0x59f6('0x107')][_0x59f6('0x106')],_0x32e003=this[_0x59f6('0x7f')](_0x2d05cf[_0x59f6('0x119')]);let _0xcc0023;if(_0x32e003[_0x59f6('0x39')][_0x59f6('0xae')]){const _0x59686f=_0x35af5d[_0x59f6('0x2e')][_0x59f6('0x33')](_0x32e003['rootName']);_0xcc0023=Array['from'](_0x59686f[_0x59f6('0xdf')]());}else{const _0x368236=this[_0x59f6('0x107')]['model']['markers'][_0x59f6('0xdc')](_0x59f6('0x90')+_0x2d05cf[_0x59f6('0x119')]);_0xcc0023=Array[_0x59f6('0x27')](_0x35af5d[_0x59f6('0x65')]['markerNameToElements'](_0x368236[_0x59f6('0xee')]))[_0x59f6('0x2b')](_0xb6248b=>_0x35af5d[_0x59f6('0x2e')][_0x59f6('0x68')][_0x59f6('0xb')](_0xb6248b))[_0x59f6('0x2b')](_0xac4579=>Array['from'](_0xac4579[_0x59f6('0xdf')]()))[_0x59f6('0x5c')]();}if(!this[_0x59f6('0xac')])return _0xcc0023[0x0];return _0xcc0023['find'](_0x13369e=>_0x13369e[_0x59f6('0x1d')]-0x3<=this['_activeViewTarget']['y']&&_0x13369e[_0x59f6('0x13')]+0x3>=this[_0x59f6('0xac')]['y']&&_0x13369e['left']-0x3<=this[_0x59f6('0xac')]['x']&&_0x13369e[_0x59f6('0x53')]+0x3>=this[_0x59f6('0xac')]['x'])||_0xcc0023[0x0];}}}),this[_0x59f6('0x6f')][_0x59f6('0x48')](_0x59f6('0x11')));}),this['on'](_0x59f6('0xd'),(_0x2ccc2d,_0x22459d,_0x19ad2a,_0x1f328b)=>{this[_0x59f6('0xb9')]=_0x19ad2a?this[_0x59f6('0x12c')](_0x19ad2a):null,this[_0x59f6('0x107')][_0x59f6('0x10b')][_0x59f6('0xff')](()=>{const _0x11965e=this['editor'][_0x59f6('0x106')];_0x1f328b&&(_0x1f328b[_0x59f6('0x39')]['isOnRoot']?_0x11965e[_0x59f6('0x2e')][_0x59f6('0xff')](_0x34bf29=>{_0x34bf29[_0x59f6('0x124')](_0x59f6('0x70'),_0x11965e['view'][_0x59f6('0x6b')][_0x59f6('0x43')](_0x1f328b['rootName']));}):_0x11965e[_0x59f6('0xc7')](_0x59f6('0x90')+_0x1f328b['id'])),_0x19ad2a&&(_0x19ad2a[_0x59f6('0x39')][_0x59f6('0xae')]?_0x11965e[_0x59f6('0x2e')]['change'](_0x52bd2f=>{_0x52bd2f[_0x59f6('0xc3')](_0x59f6('0x70'),_0x11965e[_0x59f6('0x2e')][_0x59f6('0x6b')]['getRoot'](_0x19ad2a[_0x59f6('0x3d')]));}):_0x11965e[_0x59f6('0xc7')]('revision:'+_0x19ad2a['id']));});}),this[_0x59f6('0x19')](this['editor']['editing'][_0x59f6('0x2e')]['document'],_0x59f6('0x102'),(_0x400d50,_0x3ed961)=>{if(this[_0x59f6('0x9b')])return;const _0x5d36f9=this[_0x59f6('0xce')](_0x3ed961[_0x59f6('0x23')]),_0x42389c=this[_0x59f6('0x38')][_0x59f6('0xdc')](_0x5d36f9);_0x42389c?(this[_0x59f6('0xac')]={'x':_0x3ed961['domEvent']['x'],'y':_0x3ed961[_0x59f6('0x37')]['y']},this[_0x59f6('0xb9')]=this[_0x59f6('0x12c')](_0x42389c)):(this[_0x59f6('0xac')]=null,this[_0x59f6('0xb9')]=null);}),this[_0x59f6('0x19')](this[_0x59f6('0x107')][_0x59f6('0x106')][_0x59f6('0x2e')][_0x59f6('0x6b')],_0x59f6('0x30'),(_0x2e4bcd,_0x2ca631)=>{const _0x1b8afd=this[_0x59f6('0xce')](_0x2ca631['target']),_0x4ae923=this['_changeIdToChange'][_0x59f6('0xdc')](_0x1b8afd);_0x4ae923?(this['_activeViewTarget']={'x':_0x2ca631[_0x59f6('0x37')]['x'],'y':_0x2ca631[_0x59f6('0x37')]['y']},_0x4ae923===this[_0x59f6('0x9b')]?this[_0x59f6('0x6f')][_0x59f6('0xad')]():this['activeChange']=_0x4ae923):(this[_0x59f6('0xac')]=null,this[_0x59f6('0x9b')]=null);});}[_0x59f6('0xce')](_0x32ecf2){do{const _0x524669=_0x32ecf2[_0x59f6('0x7c')](_0x59f6('0xdd'));if(_0x524669)return _0x524669;_0x32ecf2=_0x32ecf2[_0x59f6('0x2d')];}while(_0x32ecf2);return null;}[_0x59f6('0x16')](){this[_0x59f6('0x107')]['model'][_0x59f6('0xff')](_0x103f44=>{for(const _0x5069ca of this['editor'][_0x59f6('0x10b')]['markers'])_0x103f44[_0x59f6('0x25')](_0x5069ca);});}}function et(_0x4d4dd1,_0x5a27a9){return(_0x3caf1d,_0x5dff12,_0x98538e)=>{if(!_0x98538e[_0x59f6('0xec')][_0x59f6('0x7')](_0x5dff12[_0x59f6('0xb7')],_0x3caf1d['name']))return;const _0x7bc1ba=_0x5dff12[_0x59f6('0xb7')][_0x59f6('0x5f')](),_0x3b9b26=_0x5dff12[_0x59f6('0xb7')][_0x59f6('0xaa')],_0x6f4f9=_0x4d4dd1['model'][_0x59f6('0xf0')];let _0x28c702=null,_0x57ed4b=null,_0x4bb478=!0x1,_0x110f37=!0x1;for(const _0x44d610 of _0x7bc1ba){const _0x1027fd=_0x44d610['item'];_0x4bb478=_0x4bb478||_0x6f4f9['isContent'](_0x1027fd);const _0x488e40=_0x98538e[_0x59f6('0x65')]['toViewElement'](_0x1027fd);if(_0x488e40&&_0x488e40[_0x59f6('0x10e')](_0x59f6('0x99')))return;'elementEnd'==_0x44d610[_0x59f6('0x84')]&&(_0x6f4f9[_0x59f6('0x15')](_0x1027fd)&&!_0x6f4f9['isLimit'](_0x1027fd)&&(_0x1027fd[_0x59f6('0x11e')]||_0x3b9b26[_0x59f6('0x63')]?_0x28c702&&_0x28c702[_0x59f6('0x2d')]==_0x1027fd||(_0x28c702=_0x1027fd,_0x1126b2(_0x44d610[_0x59f6('0xfa')]),_0x110f37=!0x0):_0x57ed4b=_0x57ed4b||_0x44d610[_0x59f6('0xfa')]));}function _0x1126b2(_0x456e3e){const _0x3b4ac7=_0x98538e[_0x59f6('0x65')]['toViewPosition'](_0x456e3e),_0x4218a6=_0x98538e['writer'][_0x59f6('0x24')](_0x59f6('0x110'),{'class':_0x59f6('0x2a')+_0x5a27a9});_0x98538e['writer'][_0x59f6('0xde')](_0x3b4ac7,_0x4218a6),_0x98538e[_0x59f6('0x65')]['bindElementToMarker'](_0x4218a6,_0x5dff12['markerName']);}_0x4bb478||_0x110f37||!_0x57ed4b||_0x1126b2(_0x57ed4b);};}export class RestoreRevisionCommand extends _0x5e8b59{constructor(_0x51c284){super(_0x51c284);const _0x536e24=_0x51c284['plugins'][_0x59f6('0xdc')](d);this[_0x59f6('0x41')]=!0x1,this[_0x59f6('0x19')](_0x536e24,_0x59f6('0x86'),()=>this[_0x59f6('0x11d')]()),this[_0x59f6('0x19')](_0x536e24,_0x59f6('0x67'),()=>this[_0x59f6('0x11d')]());}[_0x59f6('0x6e')](){const _0x1fdc68=this[_0x59f6('0x107')],_0x49262d=_0x1fdc68[_0x59f6('0x3f')][_0x59f6('0xdc')](d),_0x18a571=_0x49262d[_0x59f6('0x5a')]?_0x49262d[_0x59f6('0x118')][_0x59f6('0x12b')]:null;_0x1fdc68[_0x59f6('0xf4')]['get']('revisionHistory')[_0x59f6('0xbd')](_0x18a571);}['refresh'](){const {isReady:_0x34f175,isEnabled:_0x5a777c}=this[_0x59f6('0x107')][_0x59f6('0x3f')][_0x59f6('0xdc')](d);this['isEnabled']=_0x34f175&&_0x5a777c;}}export class ShowChangeCommand extends _0x5e8b59{constructor(_0x4393a9,{direction:_0x163be9}){super(_0x4393a9);const _0x3e8beb=_0x4393a9[_0x59f6('0x3f')][_0x59f6('0xdc')](d);this[_0x59f6('0x41')]=!0x1,this[_0x59f6('0xbc')]=_0x59f6('0xb4')===_0x163be9?0x1:-0x1,this[_0x59f6('0x19')](_0x3e8beb,_0x59f6('0x86'),()=>this[_0x59f6('0x11d')]()),this['listenTo'](_0x3e8beb,_0x59f6('0x67'),()=>this[_0x59f6('0x11d')]()),this[_0x59f6('0x19')](_0x3e8beb,_0x59f6('0xd'),()=>this[_0x59f6('0x11d')]());}['execute'](){const _0x546d48=this[_0x59f6('0x107')],_0x143a8e=_0x546d48[_0x59f6('0x3f')][_0x59f6('0xdc')](d),{isNavigationMode:_0x11eeba,currentChangeNumber:_0x298824}=_0x143a8e;let _0x172269;if(_0x143a8e[_0x59f6('0x9b')]=_0x11eeba?_0x143a8e[_0x59f6('0x118')]['changes'][_0x59f6('0xdc')](_0x298824+this[_0x59f6('0xbc')]):_0x143a8e[_0x59f6('0x118')][_0x59f6('0x91')]['first'],_0x143a8e['activeChange'][_0x59f6('0x39')][_0x59f6('0xae')])_0x172269=_0x546d48[_0x59f6('0x106')][_0x59f6('0x2e')][_0x59f6('0x33')](_0x143a8e[_0x59f6('0x9b')][_0x59f6('0x3d')]);else{const _0x51881f=_0x546d48['model'][_0x59f6('0x62')][_0x59f6('0xdc')](_0x59f6('0x90')+_0x143a8e[_0x59f6('0x9b')]['id']);_0x172269=_0x44109a(_0x546d48[_0x59f6('0x106')],_0x51881f);}_0x3b15ae({'target':_0x172269,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2f9bf5,currentChangeNumber:_0x58953f,numberOfChanges:_0x810007,isReady:_0x3be06f,isEnabled:_0x40b5a2}=this[_0x59f6('0x107')]['plugins'][_0x59f6('0xdc')](d);this[_0x59f6('0x8d')]=!!(_0x40b5a2&&_0x3be06f&&_0x810007)&&(!_0x2f9bf5||(0x1===this['_step']?_0x58953f<_0x810007-0x1:_0x58953f>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5252=['ck-on','model','isVisible','class','bind','action','add','Name\x20this\x20revision','locale','_action','children','isEnabled','items','extendTemplate','listView','threeVerticalDots','first','Compare\x20against\x20selected','set','ck-revision-history-sidebar__revision__actions','isOpen','change:isActionsDropdownOpen','stopPropagation','name','isActionsDropdownOpen','map','execute','function','source','bindTemplate','listenTo','Restore\x20this\x20revision','button','find','panelPosition'];(function(_0x490d04,_0x5252a3){const _0x146b34=function(_0x540254){while(--_0x540254){_0x490d04['push'](_0x490d04['shift']());}};_0x146b34(++_0x5252a3);}(_0x5252,0x77));const _0x146b=function(_0x490d04,_0x5252a3){_0x490d04=_0x490d04-0x0;let _0x146b34=_0x5252[_0x490d04];return _0x146b34;};import{Collection as _0x4e2e97}from'ckeditor5/src/utils.js';import{icons as _0x6acfed}from'ckeditor5/src/core.js';import{ViewModel as _0x5b445d,addListToDropdown as _0xe736dd,createDropdown as _0x19e9cc}from'ckeditor5/src/ui.js';import{getTranslation as _0x31cd2c}from'../../utils/common-translations.js';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x1311a2,_0xfd9bf5){const _0x579708=_0x1311a2[_0x146b('0xf')],_0x2be423=_0x1311a2[_0x146b('0x1d')],_0x171803=_0x19e9cc(_0x2be423);_0x171803[_0x146b('0x14')]='sw';const _0x42199c=function(_0x55f1ad,_0x2939cb){const _0x185dc9=function(_0x4d633a,_0x18e6f8){const _0x158081=_0x4d633a[_0x146b('0x1d')],_0x1ca354={'Compare\x20against\x20selected':_0x31cd2c(_0x158081,_0x146b('0x3')),'Name\x20this\x20revision':_0x31cd2c(_0x158081,_0x146b('0x1c')),'Restore\x20this\x20revision':_0x31cd2c(_0x158081,_0x146b('0x11'))};return _0x18e6f8[_0x146b('0xb')](_0x42fc81=>{const _0x192ed3=_0x1ca354[_0x42fc81[_0x146b('0x9')]];return _0x192ed3&&_0x192ed3!==_0x42fc81[_0x146b('0x9')]&&(_0x42fc81[_0x146b('0x9')]=_0x192ed3),_0x42fc81;});}(_0x55f1ad,_0x2939cb),_0x38f569=new _0x4e2e97();for(const _0x11aa90 of _0x185dc9){const _0x198af0={'type':_0x146b('0x12'),'model':new _0x5b445d({'label':_0x11aa90['name'],'class':_0x11aa90[_0x146b('0x18')],'withText':!0x0,'_action':_0x11aa90['action']})};_0x198af0[_0x146b('0x16')][_0x146b('0x19')](_0x146b('0x20'))['to'](_0x55f1ad,'isActionsDropdownOpen',_0x1b52e5=>'function'!=typeof _0x11aa90[_0x146b('0x20')]||(!_0x1b52e5||_0x11aa90[_0x146b('0x20')](_0x55f1ad))),_0x38f569[_0x146b('0x1b')](_0x198af0);}return _0x38f569;}(_0x1311a2,_0xfd9bf5);return _0x1311a2['bind'](_0x146b('0xa'))['to'](_0x171803,_0x146b('0x6')),_0x171803['buttonView'][_0x146b('0x4')]({'label':_0x31cd2c(_0x2be423,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x6acfed[_0x146b('0x1')]}),_0x171803[_0x146b('0x22')]({'attributes':{'class':[_0x146b('0x5'),_0x579708['if'](_0x146b('0xa'),_0x146b('0x15'))]},'on':{'click':_0x579708['to'](_0x587ea1=>_0x587ea1[_0x146b('0x8')]())}}),_0x171803['on'](_0x146b('0xc'),_0x243f0f=>{_0x1311a2['isReady']&&_0x146b('0xd')==typeof _0x243f0f[_0x146b('0xe')][_0x146b('0x1e')]&&_0x243f0f[_0x146b('0xe')][_0x146b('0x1e')](_0x1311a2);}),_0xe736dd(_0x171803,_0x42199c),_0x171803[_0x146b('0x10')](_0x1311a2,_0x146b('0x7'),(_0x26f662,_0x6e1206,_0x2176d5)=>{if(_0x2176d5)for(const _0x5df59e of _0x171803[_0x146b('0x0')][_0x146b('0x21')]){const _0x456ebd=_0x5df59e[_0x146b('0x1f')][_0x146b('0x2')],_0x11b440=_0xfd9bf5[_0x146b('0x13')](_0x1f5752=>_0x1f5752[_0x146b('0x1a')]===_0x456ebd[_0x146b('0x1e')])[_0x146b('0x17')];_0x5df59e['isVisible']=void 0x0===_0x11b440||_0x11b440(_0x1311a2);}}),_0x171803;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25a9=['ck-revision-history-sidebar__revision-author_creator','ck-revision-history-sidebar__revision-author__name','ck-revision-history-sidebar__revision-author','Revision\x20creator','Revision\x20author','span','0\x200\x2011\x2010','set','setTemplate'];(function(_0x582c84,_0x25a95b){const _0x3dd28e=function(_0x308914){while(--_0x308914){_0x582c84['push'](_0x582c84['shift']());}};_0x3dd28e(++_0x25a95b);}(_0x25a9,0x1d6));const _0x3dd2=function(_0x582c84,_0x25a95b){_0x582c84=_0x582c84-0x0;let _0x3dd28e=_0x25a9[_0x582c84];return _0x3dd28e;};import{View as _0x2323fe,IconView as _0x4ef3a8}from'ckeditor5/src/ui.js';import{getTranslation as _0x53c276}from'../../utils/common-translations.js';import'../../../theme/revision/revisionauthor.css';import _0x3cd0bb from'../../../theme/icons/user.svg';export default class ti extends _0x2323fe{constructor(_0x5b82df,_0x391409,_0x589257){super(_0x5b82df);const _0x2f83f0=new _0x4ef3a8();_0x2f83f0[_0x3dd2('0x5')]({'content':_0x3cd0bb,'viewBox':_0x3dd2('0x4')});const _0x28c558=['ck',_0x3dd2('0x0')];_0x589257&&_0x28c558['push'](_0x3dd2('0x7'));const _0xacf34c=[{'tag':_0x3dd2('0x3'),'attributes':{'class':['ck',_0x3dd2('0x8')],'title':_0x53c276(_0x5b82df,_0x589257?_0x3dd2('0x1'):_0x3dd2('0x2'))},'children':[_0x2f83f0,_0x391409['name']]}];this[_0x3dd2('0x6')]({'tag':'li','attributes':{'class':_0x28c558},'children':_0xacf34c});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x40be=['span','ck-revision-history-sidebar__revision-name','set','extendTemplate'];(function(_0x50ad44,_0x40be85){var _0x21746d=function(_0x455a72){while(--_0x455a72){_0x50ad44['push'](_0x50ad44['shift']());}};_0x21746d(++_0x40be85);}(_0x40be,0x1b7));var _0x2174=function(_0x50ad44,_0x40be85){_0x50ad44=_0x50ad44-0x0;var _0x21746d=_0x40be[_0x50ad44];return _0x21746d;};import{LabeledFieldView as _0x159165}from'ckeditor5/src/ui.js';import{getTranslation as _0x45e64a}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';export default class is extends _0x159165{constructor(_0x3d53c6,_0x2c7749){super(_0x3d53c6,_0x2c7749),this[_0x2174('0x3')]({'label':_0x45e64a(_0x3d53c6,'Revision\x20name')}),this[_0x2174('0x0')]({'tag':_0x2174('0x1'),'attributes':{'class':[_0x2174('0x2')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f56=['map','value','length','createdAt','setTemplate','placeholder','listenTo','isActionsDropdownOpen','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','name','unhighlight','srcElement','select','revisionActionsView','unshift','isReady','revisionNameView','ck-revision-history-sidebar__revision_highlighted','closest','render','isConfirm','change','element','highlight','fieldView','creator','isEnabled','_revision','set','isHighlighted','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision__date','filter','deselect','isSelected','ck-revision-history-sidebar__actions_dropdown_open','setName','div','.ck-thread__remove-confirm','bind','extendTemplate','from','ck-reset'];(function(_0x57df48,_0x5f569f){const _0x582fba=function(_0xebb8a8){while(--_0xebb8a8){_0x57df48['push'](_0x57df48['shift']());}};_0x582fba(++_0x5f569f);}(_0x5f56,0x1d5));const _0x582f=function(_0x57df48,_0x5f569f){_0x57df48=_0x57df48-0x0;let _0x582fba=_0x5f56[_0x57df48];return _0x582fba;};import{View as _0x4a2bf5,createLabeledInputText as _0x490250}from'ckeditor5/src/ui.js';import{ConfirmMixin as _0x70b814}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x359352 from'./revisionnameview.js';import _0x223859 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x10e400}from'./utils.js';import{createActionsDropdownView as _0x503d59}from'./createrevisionactionsdropdown.js';import'../../../theme/revision/revision.css';export default class ai extends _0x70b814(_0x4a2bf5){constructor(_0xc379f,_0x2eff2c,_0x4f4bdb){super(_0xc379f);const _0x34ddb4=this['bindTemplate'],_0x585289=function(_0x27f907,_0x40dd87){const _0x963ec2=Array[_0x582f('0x2')](_0x40dd87['authors'])[_0x582f('0x24')](_0x55c873=>_0x55c873!=_0x40dd87['creator']);return _0x40dd87[_0x582f('0x1d')]&&_0x963ec2[_0x582f('0x12')](_0x40dd87['creator']),_0x963ec2[_0x582f('0x4')](_0x340e91=>new _0x223859(_0x27f907,_0x340e91,_0x340e91==_0x40dd87[_0x582f('0x1d')]));}(_0xc379f,_0x2eff2c);this['id']=_0x2eff2c['id'],this[_0x582f('0x1f')]=_0x2eff2c,this[_0x582f('0x0')](_0x582f('0xd'),_0x582f('0x7'))['to'](_0x2eff2c),this[_0x582f('0x0')]('_createdAtFormatted')['to'](this,'createdAt',_0x4fc13c=>_0x4fc13c?_0x10e400(_0xc379f['uiLanguage'],_0x4fc13c):void 0x0),this[_0x582f('0x20')](_0x582f('0x26'),!0x1),this[_0x582f('0x20')]('isHighlighted',!0x1),this['set'](_0x582f('0xb'),!0x1),this[_0x582f('0x20')](_0x582f('0x13'),!0x1),this[_0x582f('0x20')]('isEnabled',!0x1),this['revisionNameView']=new _0x359352(_0xc379f,_0x490250),this[_0x582f('0x14')]['fieldView'][_0x582f('0x1')]({'attributes':{'maxlength':'220'}}),this[_0x582f('0x14')]['fieldView'][_0x582f('0x0')](_0x582f('0x5'),_0x582f('0x9'))['to'](this,'name','_createdAtFormatted'),this[_0x582f('0x14')][_0x582f('0x0')](_0x582f('0x1e'))['to'](this,_0x582f('0x26'),this,_0x582f('0x1e'),(_0x5d25eb,_0x1ea9ab)=>_0x5d25eb&&_0x1ea9ab),this[_0x582f('0x11')]=_0x4f4bdb&&_0x4f4bdb[_0x582f('0x6')]?_0x503d59(this,_0x4f4bdb):'',this['revisionActionsView']&&this[_0x582f('0x11')][_0x582f('0x0')]('isEnabled')['to'](this),this[_0x582f('0x8')]({'tag':_0x582f('0x29'),'attributes':{'class':['ck',_0x582f('0x3'),'ck-revision-history-sidebar__revision-wrapper',_0x34ddb4['if'](_0x582f('0x18'),_0x582f('0xc'))]},'children':[{'tag':_0x582f('0x29'),'attributes':{'class':['ck','ck-reset',_0x582f('0x22'),_0x34ddb4['if'](_0x582f('0x1e'),'ck-disabled',_0x4e4510=>!_0x4e4510),_0x34ddb4['if'](_0x582f('0x26'),'ck-revision-history-sidebar__revision_selected'),_0x34ddb4['if'](_0x582f('0x21'),_0x582f('0x15')),_0x34ddb4['if'](_0x582f('0xb'),_0x582f('0x27'))]},'children':[this[_0x582f('0x14')],{'tag':'span','attributes':{'class':['ck',_0x582f('0x23')]},'children':[{'text':_0x34ddb4['to']('_createdAtFormatted')}]},{'tag':_0x582f('0x29'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x585289}]},this['revisionActionsView']],'on':{'click':_0x34ddb4['to'](_0x520c65=>{_0x520c65[_0x582f('0xf')][_0x582f('0x16')](_0x582f('0x2a'))||this[_0x582f('0x13')]&&this[_0x582f('0x1e')]&&this['fire'](_0x582f('0x10'),{'id':this['id']});})}}]});}['render'](){super[_0x582f('0x17')]();const _0x240f8f=this[_0x582f('0x14')][_0x582f('0x1c')][_0x582f('0x1a')];this[_0x582f('0xa')](_0x240f8f,_0x582f('0x19'),()=>{this['fire'](_0x582f('0x28'),{'id':this['id'],'name':_0x240f8f[_0x582f('0x5')]});});}[_0x582f('0x10')](){this['isSelected']=!0x0;}[_0x582f('0x25')](){this['isSelected']=!0x1;}[_0x582f('0x1b')](){this[_0x582f('0x21')]=!0x0;}[_0x582f('0xe')](){this[_0x582f('0x21')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2546=['ck-revision-history-sidebar__subrevision-collapser__inner','_isCollapsed','true','span','ck-hidden','ck-revision-history-sidebar__subrevision-collapser','bindTemplate','ck-revision-history-sidebar__subrevision-collapser_collapsed','click','setTemplate','isVisible','button','set','toggle','false'];(function(_0x35a072,_0x254678){const _0x4eb98f=function(_0x5847d3){while(--_0x5847d3){_0x35a072['push'](_0x35a072['shift']());}};_0x4eb98f(++_0x254678);}(_0x2546,0x145));const _0x4eb9=function(_0x35a072,_0x254678){_0x35a072=_0x35a072-0x0;let _0x4eb98f=_0x2546[_0x35a072];return _0x4eb98f;};import{View as _0x468177}from'ckeditor5/src/ui.js';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x468177{constructor(_0x22449f){super(_0x22449f);const _0x1b60ee=this[_0x4eb9('0xb')];this[_0x4eb9('0x2')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x4eb9('0xe')]({'tag':_0x4eb9('0x8'),'attributes':{'class':['ck',_0x4eb9('0xa'),_0x1b60ee['if'](_0x4eb9('0x0'),_0x4eb9('0x9'),_0x29fc18=>!_0x29fc18),_0x1b60ee['if'](_0x4eb9('0x6'),_0x4eb9('0xc'))],'role':_0x4eb9('0x1'),'aria-pressed':_0x1b60ee['to'](_0x4eb9('0x6'),_0x239bb4=>_0x239bb4?_0x4eb9('0x4'):_0x4eb9('0x7'))},'children':[{'tag':_0x4eb9('0x8'),'attributes':{'class':['ck',_0x4eb9('0x5')]}}],'on':{'click':_0x1b60ee['to'](_0x4eb9('0xd'))}});}[_0x4eb9('0x3')](){this[_0x4eb9('0x6')]=!this[_0x4eb9('0x6')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x27f9=['fire','createdAt','ck-revision-history-sidebar__subrevision','ck-revision-history-sidebar__revision__date','_parentRevisionId','set','ck-revision-history-sidebar__revision','deselect','select','ck-reset','setTemplate','bind','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision_selected','div','isSelected','uiLanguage'];(function(_0x106a98,_0x27f9d4){const _0x392297=function(_0x1288c8){while(--_0x1288c8){_0x106a98['push'](_0x106a98['shift']());}};_0x392297(++_0x27f9d4);}(_0x27f9,0xa8));const _0x3922=function(_0x106a98,_0x27f9d4){_0x106a98=_0x106a98-0x0;let _0x392297=_0x27f9[_0x106a98];return _0x392297;};import{View as _0x350f09}from'ckeditor5/src/ui.js';import _0x4b9f9d from'./revisionauthorview.js';import{dateToPrettyFormat as _0x307eb2}from'./utils.js';import'../../../theme/revision/subrevision.css';export default class ts extends _0x350f09{constructor(_0x3e2ed0,_0x37fc33,_0x10dca3){super(_0x3e2ed0);const _0x6bb857=this['bindTemplate'];this['id']=_0x37fc33['id'],this[_0x3922('0xd')](_0x3922('0x3'))['to'](_0x37fc33),this[_0x3922('0x7')](_0x3922('0x0'),!0x1),this[_0x3922('0xd')]('_createdAtFormatted')['to'](this,_0x3922('0x3'),_0x5df305=>_0x5df305?_0x307eb2(_0x3e2ed0[_0x3922('0x1')],_0x5df305):void 0x0),this[_0x3922('0x6')]=_0x10dca3,this[_0x3922('0xc')]({'tag':_0x3922('0x10'),'attributes':{'class':['ck',_0x3922('0xb'),_0x3922('0x8'),_0x3922('0x4'),_0x6bb857['if'](_0x3922('0x0'),_0x3922('0xf'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x3922('0x5')]},'children':[{'text':_0x6bb857['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x3922('0xe')]},'children':[new _0x4b9f9d(_0x3e2ed0,_0x37fc33['creator'],!0x0)]}],'on':{'click':_0x6bb857['to'](this[_0x3922('0xa')]['bind'](this))}});}[_0x3922('0xa')](){this['isSelected']=!0x0,this[_0x3922('0x2')](_0x3922('0xa'),{'parentId':this[_0x3922('0x6')]});}[_0x3922('0x9')](){this[_0x3922('0x0')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x32c3=['numeric','toLocaleTimeString','long','toLocaleDateString'];(function(_0x3152e3,_0x32c353){var _0x53b626=function(_0x1d8695){while(--_0x1d8695){_0x3152e3['push'](_0x3152e3['shift']());}};_0x53b626(++_0x32c353);}(_0x32c3,0x133));var _0x53b6=function(_0x3152e3,_0x32c353){_0x3152e3=_0x3152e3-0x0;var _0x53b626=_0x32c3[_0x3152e3];return _0x53b626;};export function dateToPrettyFormat(_0x5250ee,_0x49ad45){return _0x49ad45[_0x53b6('0x0')](_0x5250ee,{'month':_0x53b6('0x3'),'day':_0x53b6('0x1')})+',\x20'+_0x49ad45[_0x53b6('0x2')](_0x5250ee,{'hour':'numeric','minute':_0x53b6('0x1')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x520a=['_createButton','cancel','focusFirst','Cancel','arrowup','tab','Name\x20of\x20the\x20revision\x20(optional)','listenTo','trim','locale','focusTracker','ck-button-save','focus','value','check','220','Save','_focusCycler','ck-responsive-form','shift\x20+\x20tab','forEach','revisionName','form','execute','stopPropagation','element','label','keystrokes','revisionNameInputValue','reset','cancelButtonView','arrowdown','extendTemplate','setTemplate','revisionNameInputView','ck-button-cancel','arrowleft','set','saveButtonView','_focusables','_createRevisionNameInput','input','fieldView','add','render','ck-revision-history-save-revision-form'];(function(_0x50dbfa,_0x520a0d){const _0x1d09ce=function(_0x38658){while(--_0x38658){_0x50dbfa['push'](_0x50dbfa['shift']());}};_0x1d09ce(++_0x520a0d);}(_0x520a,0x1b7));const _0x1d09=function(_0x50dbfa,_0x520a0d){_0x50dbfa=_0x50dbfa-0x0;let _0x1d09ce=_0x520a[_0x50dbfa];return _0x1d09ce;};import{icons as _0x3a2e64}from'ckeditor5/src/core.js';import{ButtonView as _0x3238ea,FocusCycler as _0x4ddfea,LabeledFieldView as _0x6ac25f,View as _0x567290,ViewCollection as _0x1fba69,createLabeledInputText as _0x36586,injectCssTransitionDisabler as _0x4e52e5,submitHandler as _0x417ada}from'ckeditor5/src/ui.js';import{FocusTracker as _0x4e51d4,KeystrokeHandler as _0x552cf8}from'ckeditor5/src/utils.js';import{getTranslation as _0x340ef5}from'../../utils/common-translations.js';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x567290{constructor(_0x1b6fb5){super(_0x1b6fb5),this[_0x1d09('0x1f')]=new _0x4e51d4(),this[_0x1d09('0x2')]=new _0x552cf8(),this[_0x1d09('0xc')]('revisionNameInputValue',''),this[_0x1d09('0x9')]=this[_0x1d09('0xf')](),this['saveButtonView']=this[_0x1d09('0x15')](_0x340ef5(_0x1b6fb5,_0x1d09('0x25')),_0x3a2e64[_0x1d09('0x23')],_0x1d09('0x20')),this[_0x1d09('0xd')]['type']='submit',this[_0x1d09('0x5')]=this[_0x1d09('0x15')](_0x340ef5(_0x1b6fb5,_0x1d09('0x18')),_0x3a2e64[_0x1d09('0x16')],_0x1d09('0xa'),_0x1d09('0x16')),this[_0x1d09('0xe')]=new _0x1fba69(),this[_0x1d09('0x26')]=new _0x4ddfea({'focusables':this[_0x1d09('0xe')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x1d09('0x2')],'actions':{'focusPrevious':_0x1d09('0x28'),'focusNext':_0x1d09('0x1a')}}),this[_0x1d09('0x8')]({'tag':_0x1d09('0x2b'),'attributes':{'class':['ck',_0x1d09('0x14'),_0x1d09('0x27')],'tabindex':'-1'},'children':[this[_0x1d09('0x9')],this[_0x1d09('0xd')],this[_0x1d09('0x5')]]}),_0x4e52e5(this);}[_0x1d09('0x13')](){super[_0x1d09('0x13')](),_0x417ada({'view':this}),([this['revisionNameInputView'],this[_0x1d09('0xd')],this[_0x1d09('0x5')]][_0x1d09('0x29')](_0x222e98=>{this['_focusables'][_0x1d09('0x12')](_0x222e98),this[_0x1d09('0x1f')][_0x1d09('0x12')](_0x222e98[_0x1d09('0x0')]);}),this['keystrokes'][_0x1d09('0x1c')](this['element']));const _0x190643=_0x256784=>_0x256784[_0x1d09('0x2d')]();this[_0x1d09('0x2')]['set']('arrowright',_0x190643),this['keystrokes'][_0x1d09('0xc')](_0x1d09('0xb'),_0x190643),this[_0x1d09('0x2')][_0x1d09('0xc')](_0x1d09('0x19'),_0x190643),this[_0x1d09('0x2')][_0x1d09('0xc')](_0x1d09('0x6'),_0x190643);}[_0x1d09('0x21')](){this[_0x1d09('0x26')][_0x1d09('0x17')]();}get[_0x1d09('0x2a')](){return this['revisionNameInputView']['fieldView']['element'][_0x1d09('0x22')][_0x1d09('0x1d')]();}set[_0x1d09('0x2a')](_0xfbfd9b){this[_0x1d09('0x9')][_0x1d09('0x11')][_0x1d09('0x0')][_0x1d09('0x22')]=_0xfbfd9b[_0x1d09('0x1d')]();}[_0x1d09('0x4')](){this[_0x1d09('0x9')][_0x1d09('0x11')][_0x1d09('0x0')][_0x1d09('0x22')]='';}[_0x1d09('0xf')](){const _0x259f9b=new _0x6ac25f(this[_0x1d09('0x1e')],_0x36586),_0x4ca2eb=_0x259f9b[_0x1d09('0x11')];return _0x4ca2eb[_0x1d09('0x7')]({'attributes':{'maxlength':_0x1d09('0x24')}}),_0x259f9b[_0x1d09('0x1')]=_0x340ef5(this[_0x1d09('0x1e')],_0x1d09('0x1b')),_0x4ca2eb['on'](_0x1d09('0x10'),()=>{this[_0x1d09('0x3')]=_0x4ca2eb[_0x1d09('0x0')][_0x1d09('0x22')][_0x1d09('0x1d')]();}),_0x259f9b;}[_0x1d09('0x15')](_0xd8ab8f,_0x4e2e94,_0xbc9d84,_0x379e00){const _0x1a04b5=new _0x3238ea(this['locale']);return _0x1a04b5[_0x1d09('0xc')]({'label':_0xd8ab8f,'icon':_0x4e2e94,'tooltip':!0x0}),_0x1a04b5[_0x1d09('0x7')]({'attributes':{'class':_0xbc9d84}}),_0x379e00&&_0x1a04b5['delegate'](_0x1d09('0x2c'))['to'](this,_0x379e00),_0x1a04b5;}}
|