@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240129.0 → 0.0.0-nightly-20240131.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.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 _0x5f07=['_removeMissingPairs','editingDowncast','shift','first','startsWith','parent','enqueueChange','attributes','_changeView','authors','has','_getViewObj','top','_cleanUp','_balloon','sort','createUIElement','isEqual','_setConversion','editing','repository','domEvent','enableReadOnlyMode','listenTo','marked','ck-suggestion-marker--active','revision-suggestion:','consumable','isOnRoot','index','addRevisionData','get','_changeIdToChange','vid','newRevisionId','next','abs','children','ck-revision-history-root-add','revisionHistoryAttachChange','_makeModelFromViewString','showNextChange','isReady','_markMarkers','isBlock','getRevisionData','toViewElement','start','find','_appendChild','name','mousedown','_removeRevisionMarkers','_removeUnsupportedChanges','addHighlight','isRemoved','isEnabled','_update','collaboration.channelId','createRange','document','getAttribute','keys','error','isCollapsed','distance','getRoot','addMarker:revision','startIndex','highest','adapter','object','mapper','all','change:isEnabled','getCustomProperty','isAddSuggestion','unbindElementFromMarkerName','setAttribute','add','_getChangeFromId','_getViewForChange','forEach','revision-comment:','_markInsertions','addMarker:revision-suggestion:insertion','ck-editor__editable__overlay','revisionHistoryLabel','_makeTape','affectsData','return','left','merge','nextPosition','elementToAttribute','conversion','getRootNames','destroy','isAtEnd','loadRevisionData','markers','toViewPosition','slice','ck-revision-history-root--active','right','schema','insertions','isNavigationMode','markersEnd','nodeAfter','_threeWayMerge','removeMarker:revision-suggestion','wrap','addMarker:revision-suggestion:deletion','bind','markerToData','activeChange','removeMarker','deletions','createAttributeElement','length','_initInteractions','RevisionsRepository','change','userId','getClientRects','isAttached','map','getRevisionRootsAttributes','forward','includes','offsetSize','ck-suggestion-marker-split','upcast','indexOf','filter','_getDiff','_makeModelFromTape','compare','restoreRevision','low','writer','isBefore','_activeViewTarget','useFillerType','isAdded','from','ck-suggestion-marker-merge','revision-suggestion','_findChangeIdFromDomTarget','isAfter','data','item','_markSuggestions','revision-end','hasClass','unshift','changes','changeId','domConverter','previousPosition','uiElement','type','removeClass','WidgetToolbarRepository','element:pre','change:activeChange','push','createPositionFromPath','suggestion:','softBreak','view','downcastDispatcher','pluginName','maxOffset','stop','backward','refresh','getIndex','revision-viewer','nextSibling','_setDistance','diffData','target','deletion','isSuggestion','isContent','text','config','model','rootName','getAttributes','addClass','_markMismatchedRemovedTags','values','done','processor','elementEnd','attributesBefore','dataDowncast','consume','string','for','_data','test','toData','currentChangeNumber','showPreviousChange','-new','markerRange','revision','insertion','markerNameToElements','_cleanMarkers','_processTape','high','resolve','pairId','ck-suggestion-marker','clear','revisionHistory','markerName','element','span','isObject','addRevision','suggestion','addRoot','delete','isInline','level','revision-start','set','ck-revision-history-root-','concat','isLimit','reconvertMarker','modelRange','viewItem','isIncorrect','getChild','ck-suggestion-preview-marker-','toViewRange','default','execute','markersStart','bindElementToMarker','commands','end','parse','mouseover','endIndex','vid_start','insert','showStack','checkAttribute','_sortAndFilterDiffChanges','POSITIVE_INFINITY','getDomRoot','code','diff','_joinTapes','dataToMarker','split','revision:','attachChange','hasAttribute','catch','splice','_step','side','then','change:numberOfChanges','ck-suggestion-marker-','_fixObsoleteTags','vid_end','activeView','plugins','oldRevisionId','getWalker','getRevision','selection','remove','_getRevisionsRange','detachRoot','change:isReady','editor','isRemoveSuggestion','elementStart'];(function(_0x6699ca,_0x5f07f6){const _0x353037=function(_0x3e51a6){while(--_0x3e51a6){_0x6699ca['push'](_0x6699ca['shift']());}};_0x353037(++_0x5f07f6);}(_0x5f07,0x7e));const _0x3530=function(_0x6699ca,_0x5f07f6){_0x6699ca=_0x6699ca-0x0;let _0x353037=_0x5f07[_0x6699ca];return _0x353037;};import{Plugin as _0x5b0ff6,Command as _0x346961}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x11d83f}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x3957c4}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x4979a3,Element as _0x3a563a,Text as _0x2a94dd,ViewDocumentFragment as _0x51d369,ViewText as _0x1b9783,ViewElement as _0x5e509c,ViewContainerElement as _0x49720b,ViewAttributeElement as _0x548b55,ViewEmptyElement as _0x47abc2,ViewRawElement as _0x28e7ac,ViewUIElement as _0x1fab77}from'ckeditor5/src/engine.js';import{Users as _0x115596,getMarkerDomElement as _0x4630dd}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x4de4eb from'./ui/revisionviewer/changedetailsview.js';import _0x32c6e4 from'./revisionsrepository.js';import _0x793295 from'./changeitem.js';import{default as _0x5ed6b5}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x370b3f}from'lodash-es';const tt={'c':_0x49720b,'a':_0x548b55,'e':_0x47abc2,'r':_0x28e7ac,'u':_0x1fab77};export default class d extends _0x5b0ff6{static get[_0x3530('0x2f')](){return'RevisionViewer';}static get['requires'](){return[_0x115596,_0x3957c4,_0x32c6e4];}constructor(_0x572bb1){super(_0x572bb1),this[_0x3530('0xb7')]=this[_0x3530('0xa0')][_0x3530('0x97')][_0x3530('0xc2')](_0x3530('0x11d')),this[_0x3530('0x6a')](_0x3530('0x117'),null),this[_0x3530('0x6a')](_0x3530('0x96'),null),this['_activeViewTarget']=null,this[_0x3530('0x6a')](_0x3530('0x86'),null),this[_0x3530('0x6a')](_0x3530('0xcd'),!0x1),this['set'](_0x3530('0xdb'),!0x0),this['on'](_0x3530('0xed'),(_0x2f2e5a,_0x4f115a,_0x162a99)=>{this[_0x3530('0x117')]=null,this[_0x3530('0x96')]=null,this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2d')]['change'](_0x4f7ba3=>{for(const _0x4fc3d0 of this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2d')]['document']['roots'])_0x162a99?_0x4f7ba3[_0x3530('0x25')](_0x3530('0xf9'),_0x4fc3d0):_0x4f7ba3[_0x3530('0x42')](_0x3530('0xf9'),_0x4fc3d0);});}),this[_0x3530('0x115')](_0x3530('0x10e'))['to'](this,_0x3530('0x117'),_0x2e731a=>null!==_0x2e731a),this['bind'](_0x3530('0x50'))['to'](this,'isReady',this,'diff',this,_0x3530('0x117'),(_0x53c8ff,_0x51932c,_0x42bec7)=>_0x53c8ff&&_0x42bec7?_0x51932c[_0x3530('0x1f')][_0x3530('0x34')](_0x42bec7):0x0),this['bind']('numberOfChanges')['to'](this,_0x3530('0xcd'),this,_0x3530('0x86'),(_0x29aebe,_0x3a51d0)=>_0x29aebe?_0x3a51d0[_0x3530('0x1f')][_0x3530('0x11b')]:0x0),this['_changeView']=null,this[_0x3530('0xc3')]=new Map(),this['adapter']=null,this[_0x3530('0xb1')]=this[_0x3530('0xa0')][_0x3530('0x97')][_0x3530('0xc2')](_0x3957c4);}['init'](){const _0x4def3b=this[_0x3530('0xa0')],_0x318c15=new ShowChangeCommand(_0x4def3b,{'direction':_0x3530('0x32')}),_0x3318eb=new ShowChangeCommand(_0x4def3b,{'direction':'forward'});(_0x4def3b[_0x3530('0x79')][_0x3530('0xf2')](_0x3530('0x51'),_0x318c15),_0x4def3b['commands'][_0x3530('0xf2')](_0x3530('0xcc'),_0x3318eb),_0x4def3b[_0x3530('0x79')]['add'](_0x3530('0xd'),new RestoreRevisionCommand(_0x4def3b)),this['on'](_0x3530('0x92'),()=>{_0x318c15[_0x3530('0x33')](),_0x3318eb['refresh']();}),this[_0x3530('0xb5')](),this[_0x3530('0x11c')](),_0x4def3b[_0x3530('0xb9')](_0x3530('0x35')),_0x4def3b['plugins']['has'](_0x3530('0x26')))&&_0x4def3b[_0x3530('0x97')][_0x3530('0xc2')](_0x3530('0x26'))['forceDisabled'](_0x3530('0x35'));}async[_0x3530('0xd0')](_0x2ee2d4){await this[_0x3530('0x106')](_0x2ee2d4);const _0x24e464={};for(const _0x5c2c4b in _0x2ee2d4['diffData']){if(_0x2ee2d4[_0x3530('0x38')][_0x5c2c4b][_0x3530('0x8b')]&&!_0x2ee2d4[_0x3530('0x38')][_0x5c2c4b]['attachChange']['isAttached'])continue;const _0x3e6a15=this[_0x3530('0xd7')](JSON[_0x3530('0x7b')](_0x2ee2d4[_0x3530('0x38')][_0x5c2c4b][_0x3530('0x10d')])),_0xe97a05=this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2d')]['document'],_0x576c3d=new _0x51d369(_0xe97a05,_0x3e6a15['map'](_0x27df9a=>this[_0x3530('0xae')](_0x27df9a)));this[_0x3530('0xa0')][_0x3530('0x19')][_0x3530('0x46')][_0x3530('0x12')](_0x3530('0xbb')),_0x24e464[_0x5c2c4b]=this[_0x3530('0xa0')]['data'][_0x3530('0x46')][_0x3530('0x4f')](_0x576c3d),this[_0x3530('0xa0')][_0x3530('0x19')][_0x3530('0x46')]['useFillerType'](_0x3530('0x75'));}return _0x24e464;}async[_0x3530('0x2')](_0x46827b){await this[_0x3530('0x106')](_0x46827b);const _0x57518c={};for(const _0x2ed4f8 in _0x46827b[_0x3530('0x38')])_0x46827b['diffData'][_0x2ed4f8][_0x3530('0x8b')]&&!_0x46827b[_0x3530('0x38')][_0x2ed4f8][_0x3530('0x8b')]['isAttached']||(_0x57518c[_0x2ed4f8]=_0x46827b[_0x3530('0x38')][_0x2ed4f8]['attributesAfter']||{});return _0x57518c;}[_0x3530('0xd7')](_0x206c0c){return(_0x206c0c=_0x206c0c[_0x3530('0x9')](_0x524be0=>!_0x524be0['name']||_0x3530('0x69')!==_0x524be0[_0x3530('0xd5')]&&_0x3530('0x1c')!==_0x524be0[_0x3530('0xd5')]))['forEach'](_0x4eb2ac=>{_0x3530('0x4b')!=typeof _0x4eb2ac&&(_0x4eb2ac[_0x3530('0xc8')]=this[_0x3530('0xd7')](_0x4eb2ac[_0x3530('0xc8')]),_0x4eb2ac['attributes']=_0x4eb2ac[_0x3530('0xaa')][_0x3530('0x9')](_0x41f38c=>!_0x41f38c[0x0][_0x3530('0xa7')]('data-revision-')));}),_0x206c0c;}async[_0x3530('0xc')](_0x2a635a,_0xde84aa,_0x571206=!0x1){if(!this['isEnabled'])return;const _0x3e1fef=this[_0x3530('0x86')],_0x3400fc=this[_0x3530('0xb7')],_0x196c6a=_0x3530('0x4b')==typeof _0x2a635a?_0x3400fc[_0x3530('0x9a')](_0x2a635a):_0x2a635a,_0x310585=_0x3530('0x4b')==typeof _0xde84aa?_0x3400fc[_0x3530('0x9a')](_0xde84aa):_0xde84aa,_0x48354e=_0x196c6a['id'],_0x2b45db=_0x310585?_0x310585['id']:null;if(!_0x571206&&this[_0x3530('0x86')]&&this[_0x3530('0x86')][_0x3530('0xc5')]===_0x48354e&&this[_0x3530('0x86')][_0x3530('0x98')]===_0x2b45db)return Promise[_0x3530('0x5a')]();this[_0x3530('0xcd')]=!0x1,this[_0x3530('0x96')]=null,this['activeChange']=null,this['diff']=new _0x5ed6b5(_0x48354e,_0x2b45db);const _0x5901d0=this[_0x3530('0x9d')](_0x196c6a,_0x310585,!0x0)[_0x3530('0x1')](_0x34a708=>this['loadRevisionData'](_0x34a708));return _0x5901d0[_0x3530('0x29')](new Promise(_0x1b6f35=>{setTimeout(_0x1b6f35,0x14);})),Promise[_0x3530('0xec')](_0x5901d0)['then'](()=>{if(!this[_0x3530('0xdb')])return;this[_0x3530('0xb0')]();const _0x10ad87=this['_getDiff'](_0x48354e,_0x2b45db);for(const _0x14f3ab of _0x10ad87[_0x3530('0x1f')])this[_0x3530('0xc3')][_0x3530('0x6a')](_0x14f3ab['id'],_0x14f3ab);this[_0x3530('0xa0')][_0x3530('0x3f')]['enqueueChange']({'isUndoable':!0x1},_0x902932=>{for(const _0x285eea of this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0xdf')][_0x3530('0x103')]())_0x902932[_0x3530('0x9e')](_0x285eea);for(const _0x43693d of Object[_0x3530('0xe1')](_0x10ad87[_0x3530('0x3f')])){const _0x42958c=_0x902932[_0x3530('0x65')](_0x43693d);for(const _0x4dd83e of Object[_0x3530('0xe1')](_0x10ad87['attributes'][_0x43693d]))_0x902932['setAttribute'](_0x4dd83e,_0x10ad87[_0x3530('0xaa')][_0x43693d][_0x4dd83e],_0x42958c);_0x902932['insert'](_0x10ad87['model'][_0x43693d],_0x42958c,0x0);}}),this[_0x3530('0x86')]['_setChanges'](this[_0x3530('0x82')](_0x10ad87[_0x3530('0x1f')])),this['isReady']=!0x0;})[_0x3530('0x8d')](_0x5006e1=>{console[_0x3530('0xe2')](_0x5006e1),this[_0x3530('0xb0')](),_0x3e1fef&&(this[_0x3530('0x86')]=_0x3e1fef),this[_0x3530('0xcd')]=!0x0;});}[_0x3530('0xc1')](_0x378bba,_0x3fde4d){const _0x451af9=this[_0x3530('0xb7')]['createRevision'](_0x378bba);return _0x451af9['on'](_0x3530('0xdc'),(_0x32417a,_0x3750b3,_0x1fb27c)=>_0x3fde4d(_0x3750b3,_0x1fb27c,_0x451af9)),this[_0x3530('0xb7')][_0x3530('0x63')](_0x451af9),_0x451af9;}[_0x3530('0x106')](_0x88b04a){if(!_0x88b04a||_0x88b04a['diffData'])return Promise[_0x3530('0x5a')]();{const _0x69603=this[_0x3530('0xa0')]['config'][_0x3530('0xc2')](_0x3530('0xdd'));return this[_0x3530('0xe9')][_0x3530('0x9a')]({'channelId':_0x69603,'revisionId':_0x88b04a['id']})[_0x3530('0x91')](_0x42f604=>{_0x88b04a['_update']({'diffData':_0x42f604[_0x3530('0x38')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this[_0x3530('0x57')](),this[_0x3530('0xab')]&&this['_changeView'][_0x3530('0x104')](),this[_0x3530('0xab')]=null,this[_0x3530('0xc3')][_0x3530('0x5d')](),this['editor'][_0x3530('0x3f')][_0x3530('0xa9')]({'isUndoable':!0x1},_0x2a0b14=>{for(const _0x173041 of this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0xdf')][_0x3530('0x103')]())_0x2a0b14['detachRoot'](_0x173041);});}[_0x3530('0x82')](_0x2dc57f){const _0x58d735=[],_0xb09d1=new Map();for(const _0x5111a6 of this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0xdf')][_0x3530('0x103')]()){const _0x500086=this[_0x3530('0xa0')]['editing']['view'][_0x3530('0x84')](_0x5111a6);if(!_0x500086)continue;const _0xca6acf=_0x500086[_0x3530('0x120')]()[_0x3530('0x1a')](0x0);_0xca6acf&&(_0x58d735[_0x3530('0x29')](_0x5111a6),_0xb09d1['set'](_0x5111a6,_0xca6acf));}return _0x58d735['sort']((_0x3624b3,_0x2caf2b)=>{const _0x1ac672=_0xb09d1[_0x3530('0xc2')](_0x3624b3),_0x51dc2c=_0xb09d1['get'](_0x2caf2b);return _0x1ac672['y']-_0x51dc2c['y']||_0x1ac672['x']-_0x51dc2c['x'];}),(_0x2dc57f=_0x2dc57f[_0x3530('0x9')](_0x1bf215=>_0x58d735[_0x3530('0x4')](_0x1bf215[_0x3530('0x40')])))[_0x3530('0xb2')]((_0x108336,_0x35c800)=>_0x58d735[_0x3530('0x8')](_0x108336[_0x3530('0x40')])-_0x58d735[_0x3530('0x8')](_0x35c800[_0x3530('0x40')])),_0x2dc57f;}[_0x3530('0xfb')](_0x19c1ea){const _0x2665ba=Array[_0x3530('0x14')](_0x19c1ea[_0x3530('0x107')])[_0x3530('0x9')](([_0x3b0a17,_0x4f5b2b])=>_0x3b0a17[_0x3530('0xa7')](_0x3530('0x8a'))&&!_0x4f5b2b[_0x3530('0xe3')]),_0x1bff9b=Array[_0x3530('0x14')](this[_0x3530('0xa0')][_0x3530('0x3f')]['createRangeIn'](_0x19c1ea)[_0x3530('0x99')]({'singleCharacters':!0x0}));if(0x0!=_0x2665ba[_0x3530('0x11b')])for(const _0xa18fa2 of _0x1bff9b){const [_0x273a4b,_0x10c8d5]=_0x2665ba[0x0],[,_0x4b67db,_0x14c044]=_0x273a4b[_0x3530('0x89')](':');if(_0x10c8d5[_0x3530('0x7a')]['isEqual'](_0xa18fa2[_0x3530('0x100')])&&_0x2665ba[_0x3530('0xa5')](),(_0xa18fa2[_0x3530('0x22')][_0x3530('0xb4')](_0x10c8d5['start'])||_0xa18fa2[_0x3530('0x22')][_0x3530('0x18')](_0x10c8d5[_0x3530('0xd2')]))&&(_0x3530('0x55')==_0x4b67db?_0xa18fa2[_0x3530('0x13')]={'userId':_0x14c044}:'deletion'==_0x4b67db&&(_0xa18fa2[_0x3530('0xda')]={'userId':_0x14c044})),0x0==_0x2665ba['length'])break;}return _0x1bff9b;}['_refreshStartEndIndex'](_0x2873a8){const _0x56e89d=new Map();for(let _0x4550bb=0x0;_0x4550bb<_0x2873a8[_0x3530('0x11b')];_0x4550bb++)_0x3530('0x3d')===_0x2873a8[_0x4550bb][_0x3530('0x24')]?(_0x2873a8[_0x4550bb][_0x3530('0x1a')]['startIndex']=_0x4550bb,_0x2873a8[_0x4550bb][_0x3530('0x1a')][_0x3530('0x7d')]=_0x4550bb):('elementStart'===_0x2873a8[_0x4550bb][_0x3530('0x24')]?_0x2873a8[_0x4550bb][_0x3530('0x1a')][_0x3530('0xe7')]=_0x4550bb:_0x3530('0x47')===_0x2873a8[_0x4550bb]['type']&&(_0x2873a8[_0x4550bb][_0x3530('0x1a')]['endIndex']=_0x4550bb),_0x56e89d['set'](_0x2873a8[_0x4550bb]['id'],_0x4550bb));for(const _0x412aaa of _0x56e89d[_0x3530('0x44')]())_0x3530('0xa2')===_0x2873a8[_0x412aaa][_0x3530('0x24')]?_0x2873a8[_0x412aaa][_0x3530('0x1a')][_0x3530('0x7d')]=_0x56e89d[_0x3530('0xc2')](_0x2873a8[_0x412aaa][_0x3530('0x5b')]):'elementEnd'===_0x2873a8[_0x412aaa]['type']&&(_0x2873a8[_0x412aaa]['item'][_0x3530('0xe7')]=_0x56e89d[_0x3530('0xc2')](_0x2873a8[_0x412aaa]['pairId']));}['_processTape'](_0x4c7424){for(let _0x3ea8f0=0x0;_0x3ea8f0<_0x4c7424[_0x3530('0x11b')];_0x3ea8f0++){if(_0x3530('0xa2')===_0x4c7424[_0x3ea8f0][_0x3530('0x24')])_0x4c7424[_0x3ea8f0]['item'][_0x3530('0xe7')]=_0x3ea8f0;else{if(_0x3530('0x47')===_0x4c7424[_0x3ea8f0][_0x3530('0x24')]){_0x4c7424[_0x3ea8f0][_0x3530('0x1a')][_0x3530('0x7d')]=_0x3ea8f0;const _0x4bb87b=_0x4c7424[_0x3ea8f0][_0x3530('0x1a')][_0x3530('0xe7')];_0x4c7424[_0x4bb87b]['pairId']=_0x4c7424[_0x3ea8f0]['id'],_0x4c7424[_0x3ea8f0][_0x3530('0x5b')]=_0x4c7424[_0x4bb87b]['id'];}else _0x4c7424[_0x3ea8f0][_0x3530('0x1a')][_0x3530('0xe7')]=_0x3ea8f0,_0x4c7424[_0x3ea8f0]['item'][_0x3530('0x7d')]=_0x3ea8f0,_0x4c7424[_0x3ea8f0]['pairId']=null;}_0x4c7424[_0x3ea8f0]['markersStart']||(_0x4c7424[_0x3ea8f0][_0x3530('0x77')]=[],_0x4c7424[_0x3ea8f0]['markersEnd']=[]);}}[_0x3530('0xf7')](_0x25aa9b,_0x2d7d26){const _0x225af2=_0x25aa9b['filter'](_0x3a97f7=>!_0x3a97f7[_0x3530('0x13')]);for(let _0x12f6b6=0x0;_0x12f6b6<_0x2d7d26[_0x3530('0x11b')];_0x12f6b6++)_0x2d7d26[_0x12f6b6][_0x3530('0x13')]&&(_0x225af2[_0x12f6b6][_0x3530('0x13')]=_0x2d7d26[_0x12f6b6]['isAdded']);}['_makeModelFromViewString'](_0x11d11d){const _0x3b0880=JSON[_0x3530('0x7b')](_0x11d11d),_0x57c23f=this[_0x3530('0xa0')]['editing'][_0x3530('0x2d')][_0x3530('0xdf')],_0x2c7810=new _0x51d369(_0x57c23f,_0x3b0880[_0x3530('0x1')](_0x32c35a=>this[_0x3530('0xae')](_0x32c35a)));return this[_0x3530('0xa0')][_0x3530('0x19')]['toModel'](_0x2c7810);}[_0x3530('0xae')](_0x30b671){const _0x4cfec4=this[_0x3530('0xa0')][_0x3530('0xb6')]['view'][_0x3530('0xdf')];if(_0x3530('0x4b')==typeof _0x30b671)return new _0x1b9783(_0x4cfec4,_0x30b671);{const _0x55470a=_0x30b671[_0x3530('0xc8')][_0x3530('0x1')](_0xf1ba0e=>this[_0x3530('0xae')](_0xf1ba0e));return new(tt[_0x30b671[(_0x3530('0x24'))]]||_0x5e509c)(_0x4cfec4,_0x30b671[_0x3530('0xd5')],_0x30b671['attributes'],_0x55470a);}}[_0x3530('0xa')](_0x42ccf7,_0x5cab8a=null){const _0x12d8cd=this[_0x3530('0xb7')][_0x3530('0x9a')](_0x42ccf7),_0x13da79=_0x5cab8a?this['repository']['getRevision'](_0x5cab8a):null,_0x36bc3a=this[_0x3530('0x9d')](_0x12d8cd,_0x13da79),_0x3c053d=_0x36bc3a[_0x36bc3a['length']-0x1],_0x2b7301=new Map(),_0x269f09={'model':{},'attributes':{},'changes':[]},_0x3c32e7=new Set(),_0x341c5b=new Map();for(let _0x233cb0=_0x36bc3a[_0x3530('0x11b')]-0x1;_0x233cb0>=0x0;_0x233cb0--){const _0x94f21e=_0x36bc3a[_0x233cb0];for(const _0x4fbfa3 of Object[_0x3530('0xe1')](_0x94f21e[_0x3530('0x38')]))if(_0x94f21e[_0x3530('0x38')][_0x4fbfa3][_0x3530('0x8b')]){const _0x38d0a0=_0x94f21e[_0x3530('0x38')][_0x4fbfa3][_0x3530('0x8b')];_0x38d0a0[_0x3530('0x0')]?(_0x3c32e7[_0x3530('0xf2')](_0x4fbfa3),_0x341c5b[_0x3530('0xad')](_0x4fbfa3)&&_0x341c5b['get'](_0x4fbfa3)[_0x3530('0x11f')]==_0x38d0a0['userId']?_0x341c5b[_0x3530('0x66')](_0x4fbfa3):_0x341c5b[_0x3530('0x6a')](_0x4fbfa3,_0x38d0a0)):_0x341c5b[_0x3530('0xad')](_0x4fbfa3)?(_0x3c32e7['delete'](_0x4fbfa3),_0x341c5b[_0x3530('0x66')](_0x4fbfa3)):(_0x3c32e7[_0x3530('0xf2')](_0x4fbfa3),_0x341c5b[_0x3530('0x6a')](_0x4fbfa3,_0x38d0a0));}else _0x3c32e7['add'](_0x4fbfa3);}for(const _0xb89b6f of _0x3c32e7){const _0x25afa0=_0x341c5b[_0x3530('0xad')](_0xb89b6f)&&!_0x341c5b[_0x3530('0xc2')](_0xb89b6f)[_0x3530('0x0')];let _0x1fc490=_0x25afa0?_0x36bc3a[_0x3530('0x11b')]-0x1:0x0;const _0x261b65=_0x25afa0?-0x1:0x1;for(;_0x36bc3a[_0x1fc490];){const _0xf77521=_0x36bc3a[_0x1fc490];if(_0xf77521[_0x3530('0x38')][_0xb89b6f]){const _0x5e4d08=_0x25afa0?_0xf77521[_0x3530('0x38')][_0xb89b6f][_0x3530('0x48')]:_0xf77521[_0x3530('0x38')][_0xb89b6f]['attributesAfter'];_0x269f09[_0x3530('0xaa')][_0xb89b6f]=_0x5e4d08?_0x370b3f(_0x5e4d08):{};break;}_0x1fc490+=_0x261b65;}}for(const _0x524dd9 of _0x36bc3a){_0x524dd9[_0x3530('0x3f')]={};for(const _0x407801 of _0x524dd9[_0x3530('0xac')])_0x2b7301[_0x3530('0x6a')](_0x407801['id'],_0x407801);for(const _0x5916a9 of _0x3c32e7){const _0x1636fc=_0x524dd9[_0x3530('0x38')][_0x5916a9]?_0x524dd9[_0x3530('0x38')][_0x5916a9]['insertions']:'[]',_0x4b180e=_0x524dd9['diffData'][_0x5916a9]?_0x524dd9['diffData'][_0x5916a9][_0x3530('0x119')]:'[]';_0x524dd9[_0x3530('0x3f')][_0x5916a9]={'insertions':this[_0x3530('0xcb')](_0x1636fc),'deletions':this[_0x3530('0xcb')](_0x4b180e)};}}for(const _0x127dff of _0x3c32e7){let _0x59e59b=null,_0x132203=0x0;const _0xb93ae5=new Map(Array['from'](_0x12d8cd[_0x3530('0x3f')][_0x127dff][_0x3530('0x10d')]['markers'])[_0x3530('0x9')](([_0x40debb])=>!_0x40debb[_0x3530('0xa7')](_0x3530('0x8a'))));let _0x26e7e7=0x0;for(const _0x38a169 of _0x36bc3a){const _0x2d5f4d=this[_0x3530('0xfb')](_0x38a169[_0x3530('0x3f')][_0x127dff][_0x3530('0x10d')]);_0x38a169==_0x12d8cd?(_0x59e59b=_0x2d5f4d,_0x132203=_0x59e59b[_0x3530('0x11b')],_0x59e59b['forEach'](_0x1f6a6e=>{_0x1f6a6e['id']=_0x26e7e7++;}),this[_0x3530('0x58')](_0x59e59b)):this[_0x3530('0xf7')](_0x59e59b,_0x2d5f4d);const _0x4e5d5c=_0x59e59b[_0x3530('0x9')](_0x2121bf=>!_0x2121bf[_0x3530('0x13')])[_0x3530('0x1')](_0x308647=>_0x308647['id']);let _0x442fe7=0x0;const _0x4e1573=this[_0x3530('0xfb')](_0x38a169[_0x3530('0x3f')][_0x127dff][_0x3530('0x119')]);_0x4e1573[_0x3530('0xf5')](_0x2d34de=>{_0x2d34de[_0x3530('0xda')]?_0x2d34de['id']=_0x132203++:_0x2d34de['id']=_0x4e5d5c[_0x442fe7++];}),this['_processTape'](_0x4e1573),this[_0x3530('0x37')](_0x59e59b,_0x3530('0x13')),this[_0x3530('0x37')](_0x4e1573,_0x3530('0xda')),_0x38a169==_0x12d8cd&&this['_markMarkers'](_0x59e59b,_0xb93ae5),_0x59e59b=this['_joinTapes'](_0x59e59b,_0x4e1573),this['_refreshStartEndIndex'](_0x59e59b),this[_0x3530('0x37')](_0x59e59b,_0x3530('0xda'));}_0x59e59b=_0x59e59b[_0x3530('0x9')](_0x580ab1=>!(_0x580ab1[_0x3530('0x13')]&&_0x580ab1[_0x3530('0xda')]));const _0x2defe0=new Map(_0x3c053d[_0x3530('0x3f')][_0x127dff][_0x3530('0x119')][_0x3530('0x107')]),_0x3020bb=new Set(_0xb93ae5[_0x3530('0xe1')]());for(const _0x1d8382 of _0x2defe0[_0x3530('0xe1')]())_0x3020bb[_0x3530('0x66')](_0x1d8382);this[_0x3530('0x1b')](_0x59e59b,_0x3020bb),this[_0x3530('0x94')](_0x59e59b),_0x59e59b=this['_removeMissingPairs'](_0x59e59b),_0x59e59b=this[_0x3530('0x43')](_0x59e59b),_0x59e59b=this[_0x3530('0xd8')](_0x59e59b);const {root:_0x2242f4,changes:_0xeefb5a}=this[_0x3530('0xb')](_0x59e59b,_0x2b7301,_0x127dff);_0x269f09[_0x3530('0x3f')][_0x127dff]=_0x2242f4;const _0x1ee00b=_0x341c5b[_0x3530('0xc2')](_0x127dff);if(_0x1ee00b){const _0x53f8d8=_0x2b7301['get'](_0x1ee00b['userId']),_0x1dce7f=new _0x793295({'author':_0x53f8d8,'type':_0x1ee00b[_0x3530('0x0')]?_0x3530('0xf2'):_0x3530('0x9c'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x127dff});_0xeefb5a[_0x3530('0x1e')](_0x1dce7f),_0x269f09[_0x3530('0xaa')][_0x127dff][_0x3530('0xca')]=_0x1dce7f['id'];}_0x269f09['changes']=_0x269f09[_0x3530('0x1f')][_0x3530('0x6c')](_0xeefb5a);}return _0x269f09;}[_0x3530('0xce')](_0x4ab8e8,_0x4445fa){for(let _0x24149f=0x0;_0x24149f<_0x4ab8e8[_0x3530('0x11b')];_0x24149f++)for(const [_0x599f1b,_0x47e43e]of _0x4445fa)_0x47e43e['start'][_0x3530('0xb4')](_0x4ab8e8[_0x24149f]['previousPosition'])&&_0x4ab8e8[_0x24149f][_0x3530('0x77')][_0x3530('0x29')](_0x599f1b),_0x47e43e[_0x3530('0x7a')]['isEqual'](_0x4ab8e8[_0x24149f]['nextPosition'])&&_0x4ab8e8[_0x24149f][_0x3530('0x10f')][_0x3530('0x29')](_0x599f1b);}[_0x3530('0x87')](_0x42a584,_0x5a5152){let _0x36c362=[],_0x4fa901=0x0,_0x5a87e5=0x0;for(;_0x4fa901<_0x42a584[_0x3530('0x11b')]||_0x5a87e5<_0x5a5152[_0x3530('0x11b')];){const _0x54e36b=_0x42a584[_0x4fa901]||{},_0x4cdbd7=_0x5a5152[_0x5a87e5]||{};if(_0x54e36b['id']==_0x4cdbd7['id'])_0x4fa901++,_0x5a87e5++,_0x36c362[_0x3530('0x29')](_0x54e36b);else{if(_0x4cdbd7[_0x3530('0xda')]&&_0x54e36b['isAdded']){const {commonTape:_0x532bce,iEnd:_0x3cc1d4,jEnd:_0x527dad}=this[_0x3530('0x111')](_0x42a584,_0x4fa901,_0x5a5152,_0x5a87e5);_0x36c362=_0x36c362[_0x3530('0x6c')](_0x532bce),_0x4fa901=_0x3cc1d4,_0x5a87e5=_0x527dad;}else _0x4cdbd7['isRemoved']?(_0x5a87e5++,_0x36c362[_0x3530('0x29')](_0x4cdbd7)):(_0x4fa901++,_0x36c362[_0x3530('0x29')](_0x54e36b));}}return _0x36c362;}[_0x3530('0x1b')](_0x245db3,_0x4076a1){const _0x3017f7=[];for(let _0x4ba37a=0x0;_0x4ba37a<_0x245db3[_0x3530('0x11b')];_0x4ba37a++){for(let _0x51f4a1=0x0;_0x51f4a1<_0x245db3[_0x4ba37a]['markersStart'][_0x3530('0x11b')];_0x51f4a1++){const _0x3c469b=_0x245db3[_0x4ba37a][_0x3530('0x77')][_0x51f4a1];if(!_0x4076a1['has'](_0x3c469b))continue;const {group:_0xdbb4be,type:_0x2836d6,authorId:_0x41ae6c}=_0x46d389(_0x3c469b);'revision-suggestion'!=_0xdbb4be||'insertion'!=_0x2836d6&&_0x3530('0x3a')!=_0x2836d6||(_0x3017f7['unshift']({'type':_0x2836d6,'name':_0x3c469b,'userId':_0x41ae6c}),_0x245db3[_0x4ba37a][_0x3530('0x77')][_0x3530('0x8e')](_0x51f4a1,0x1),_0x51f4a1--);}_0x435279(_0x245db3[_0x4ba37a]);for(let _0x2581c1=0x0;_0x2581c1<_0x245db3[_0x4ba37a][_0x3530('0x10f')][_0x3530('0x11b')];_0x2581c1++){const _0x23a3d2=_0x245db3[_0x4ba37a][_0x3530('0x10f')][_0x2581c1];if(!_0x4076a1['has'](_0x23a3d2))continue;const {group:_0x1eecef,type:_0x3af700}=_0x46d389(_0x23a3d2);if(_0x3530('0x16')!=_0x1eecef||_0x3530('0x55')!=_0x3af700&&'deletion'!=_0x3af700)continue;_0x245db3[_0x4ba37a]['markersEnd'][_0x3530('0x8e')](_0x2581c1,0x1),_0x2581c1--;const _0x4ab239=_0x3017f7['findIndex'](_0x4011ca=>_0x4011ca[_0x3530('0xd5')]==_0x23a3d2);_0x4ab239>-0x1&&_0x3017f7[_0x3530('0x8e')](_0x4ab239,0x1);}}function _0x46d389(_0x283a1d){const _0x8ff5f5=_0x283a1d[_0x3530('0x89')](':');return{'group':_0x8ff5f5[0x0],'type':_0x8ff5f5[0x1],'subType':_0x8ff5f5[_0x3530('0x11b')]>=0x5?_0x8ff5f5[0x2]:null,'id':_0x8ff5f5['length']<0x5?_0x8ff5f5[0x2]:_0x8ff5f5[0x3],'authorId':_0x8ff5f5[_0x3530('0x11b')]<0x5?_0x8ff5f5[0x3]:_0x8ff5f5[0x4],'markerCount':0x6==_0x8ff5f5['length']?_0x8ff5f5[0x5]:null};}function _0x435279(_0x258837){for(let _0x13b71c=0x0;_0x13b71c<_0x3017f7[_0x3530('0x11b')];_0x13b71c++){if(_0x258837['isAdded']&&_0x3530('0x55')==_0x3017f7[_0x13b71c]['type'])return _0x258837['isAddSuggestion']=_0x3017f7[_0x13b71c],void delete _0x258837[_0x3530('0x13')];if(!_0x258837[_0x3530('0x13')]&&!_0x258837[_0x3530('0xda')]&&_0x3530('0x3a')==_0x3017f7[_0x13b71c][_0x3530('0x24')])return void(_0x258837[_0x3530('0xa1')]=_0x3017f7[_0x13b71c]);}}}['_setDistance'](_0x18bf00,_0x5e69d8){let _0x262cb6=0x0,_0x564ff9=!0x1;const _0x3049ad=new Map();for(const _0x2cd91c of _0x18bf00)_0x2cd91c[_0x5e69d8]?_0x564ff9&&(_0x262cb6++,_0x564ff9=!0x1):(_0x262cb6++,_0x564ff9=!0x0),_0x3049ad[_0x3530('0x6a')](_0x2cd91c['id'],_0x262cb6);for(let _0x27babd=0x0;_0x27babd<_0x18bf00[_0x3530('0x11b')];_0x27babd++){if('isRemoved'==_0x5e69d8&&_0x18bf00[_0x27babd][_0x3530('0x13')]||_0x3530('0x13')==_0x5e69d8&&_0x18bf00[_0x27babd][_0x3530('0xda')])continue;if('text'==_0x18bf00[_0x27babd][_0x3530('0x24')]){_0x18bf00[_0x27babd][_0x3530('0xe4')]=0x0;continue;}const _0x2ed781=_0x3049ad[_0x3530('0xc2')](_0x18bf00[_0x27babd][_0x3530('0x5b')]),_0x1c3f8c=_0x3049ad[_0x3530('0xc2')](_0x18bf00[_0x27babd]['id']);_0x18bf00[_0x27babd][_0x3530('0xe4')]=_0x2ed781-_0x1c3f8c;}}['_getRevisionsRange'](_0x11f22f,_0xe5ffe5,_0x1acff9=!0x1){const _0x5e32f0=[];let _0x4a18b4=this[_0x3530('0xb7')][_0x3530('0x34')](_0x11f22f),_0x343a9a=this[_0x3530('0xb7')][_0x3530('0x34')](_0xe5ffe5);for(-0x1==_0x343a9a&&(_0x343a9a=this[_0x3530('0xb7')]['_revisions'][_0x3530('0x11b')],_0x1acff9=!0x1);_0x4a18b4<_0x343a9a;)_0x5e32f0['push'](this[_0x3530('0xb7')][_0x3530('0x9a')](_0x4a18b4)),_0x4a18b4++;return _0x1acff9&&_0x5e32f0['push'](this[_0x3530('0xb7')][_0x3530('0x9a')](_0x4a18b4)),_0x5e32f0;}[_0x3530('0x111')](_0x56d53b,_0x68735e,_0x2a92c4,_0x5a7418){const _0x2259b0=this['editor'][_0x3530('0x3f')]['schema'];let _0x3a5bfb=_0x68735e;for(;_0x56d53b[_0x3a5bfb]&&_0x56d53b[_0x3a5bfb][_0x3530('0x13')];)_0x3a5bfb++;let _0x5e07bd=_0x5a7418;for(;_0x2a92c4[_0x5e07bd]&&_0x2a92c4[_0x5e07bd][_0x3530('0xda')];)_0x5e07bd++;_0x4aeb3a(_0x56d53b,_0x68735e,_0x3a5bfb),_0x4aeb3a(_0x2a92c4,_0x5a7418,_0x5e07bd);const _0x475b4e=_0x2a92c4[_0x3530('0x109')](_0x5a7418,_0x5e07bd)['concat'](_0x56d53b[_0x3530('0x109')](_0x68735e,_0x3a5bfb));return _0x475b4e[_0x3530('0xb2')]((_0x1821b3,_0x2e5575)=>_0x1821b3['side']!=_0x2e5575['side']?_0x1821b3['side']-_0x2e5575[_0x3530('0x90')]:_0x1821b3[_0x3530('0x68')]!=_0x2e5575['level']?_0x1821b3[_0x3530('0x68')]-_0x2e5575[_0x3530('0x68')]:_0x1821b3[_0x3530('0xe4')]!=_0x2e5575['distance']?_0x2e5575['distance']-_0x1821b3['distance']:!!_0x1821b3[_0x3530('0x13')]!=!!_0x2e5575[_0x3530('0x13')]?-0x1==_0x1821b3[_0x3530('0x90')]||0x0==_0x1821b3[_0x3530('0x90')]?_0x1821b3[_0x3530('0x13')]?-0x1:0x1:_0x1821b3[_0x3530('0x13')]?0x1:-0x1:_0x1821b3[_0x3530('0xc0')]-_0x2e5575[_0x3530('0xc0')]),{'commonTape':_0x475b4e,'iEnd':_0x3a5bfb,'jEnd':_0x5e07bd};function _0x4aeb3a(_0x486784,_0x1a8161,_0x2f8caf){let _0x4deca9=-0x1,_0x1fdc04=Number[_0x3530('0x83')],_0x53a7fa=!0x0;for(let _0x51eece=_0x1a8161;_0x51eece<_0x2f8caf;_0x51eece++)if(_0x2259b0[_0x3530('0x67')](_0x486784[_0x51eece][_0x3530('0x1a')])||(_0x53a7fa=!0x1),_0x486784[_0x51eece][_0x3530('0x1a')][_0x3530('0xe7')]<_0x1a8161&&(_0x4deca9=_0x51eece),_0x486784[_0x51eece]['item'][_0x3530('0x7d')]>=_0x2f8caf){_0x1fdc04=_0x51eece;break;}_0x53a7fa&&(_0x4deca9=_0x2f8caf-0x1);for(let _0x3a28f5=_0x1a8161;_0x3a28f5<_0x2f8caf;_0x3a28f5++)_0x486784[_0x3a28f5]['side']=_0x3a28f5<=_0x4deca9?-0x1:_0x3a28f5<_0x1fdc04?0x0:0x1,_0x486784[_0x3a28f5][_0x3530('0xc0')]=_0x3a28f5;let _0x3e3420=0x0;for(let _0x25c664=_0x1a8161;_0x25c664<=_0x4deca9;_0x25c664++)0x0==_0x486784[_0x25c664][_0x3530('0xe4')]?_0x486784[_0x25c664][_0x3530('0x68')]=_0x3e3420:(_0x3e3420++,_0x486784[_0x25c664][_0x3530('0x68')]=_0x3e3420,_0x3e3420++);for(let _0x29ed63=_0x1a8161;_0x29ed63<_0x2f8caf;_0x29ed63++)0x0==_0x486784[_0x29ed63]['side']&&(_0x486784[_0x29ed63][_0x3530('0x68')]=_0x3e3420);_0x3e3420=0x0;for(let _0x3ac8ce=_0x2f8caf-0x1;_0x3ac8ce>=_0x1fdc04;_0x3ac8ce--)0x0==_0x486784[_0x3ac8ce][_0x3530('0xe4')]?_0x486784[_0x3ac8ce][_0x3530('0x68')]=_0x3e3420:(_0x3e3420--,_0x486784[_0x3ac8ce][_0x3530('0x68')]=_0x3e3420,_0x3e3420--);}}['_fixObsoleteTags'](_0x4a3dfb){const _0x5cc7b7=new Map(),_0xfc8a2d=this['editor']['model'][_0x3530('0x10c')];for(let _0xde95ad=0x1;_0xde95ad<_0x4a3dfb[_0x3530('0x11b')];_0xde95ad++){let _0x15f7a7,_0x40eaa3,_0x4b3e4a;const _0x2ae113=_0x4a3dfb[_0xde95ad],_0x4092a0=_0x4a3dfb[_0xde95ad-0x1];if(_0x3530('0x3d')==_0x2ae113['type'])continue;if(_0x2ae113[_0x3530('0x24')]!=_0x4092a0['type'])continue;if(!_0xfc8a2d[_0x3530('0xcf')](_0x4092a0['item'])||_0xfc8a2d[_0x3530('0x6d')](_0x4092a0[_0x3530('0x1a')]))continue;if(!_0xfc8a2d[_0x3530('0xcf')](_0x2ae113[_0x3530('0x1a')])||_0xfc8a2d[_0x3530('0x6d')](_0x2ae113[_0x3530('0x1a')]))continue;if((_0x4a3dfb[_0xde95ad]['isAdded']||_0x4a3dfb[_0xde95ad][_0x3530('0xef')])&&_0x4a3dfb[_0xde95ad-0x1]['isRemoved'])_0x15f7a7=_0x4a3dfb[_0xde95ad],_0x40eaa3=_0x4a3dfb[_0xde95ad-0x1],_0x4b3e4a=_0xde95ad-0x1;else{if(!_0x4a3dfb[_0xde95ad][_0x3530('0xda')]||!_0x4a3dfb[_0xde95ad-0x1][_0x3530('0x13')]&&!_0x4a3dfb[_0xde95ad-0x1][_0x3530('0xef')])continue;_0x15f7a7=_0x4a3dfb[_0xde95ad-0x1],_0x40eaa3=_0x4a3dfb[_0xde95ad],_0x4b3e4a=_0xde95ad;}const _0x4d146f=_0x15f7a7['level']==_0x40eaa3[_0x3530('0x68')],_0x420ab9=Math[_0x3530('0xc7')](_0x15f7a7[_0x3530('0x68')])<Math[_0x3530('0xc7')](_0x40eaa3[_0x3530('0x68')])&&0x0==_0x40eaa3[_0x3530('0xe4')];(_0x4d146f||_0x420ab9)&&(_0x5cc7b7[_0x3530('0x6a')](_0x40eaa3['id'],_0x15f7a7['id']),_0x4a3dfb[_0x3530('0x8e')](_0x4b3e4a,0x1),_0xde95ad--,_0x15f7a7[_0x3530('0x13')]=!0x1);}for(let _0x2f8ade=0x0;_0x2f8ade<_0x4a3dfb[_0x3530('0x11b')];_0x2f8ade++)_0x5cc7b7['has'](_0x4a3dfb[_0x2f8ade][_0x3530('0x5b')])&&(_0x4a3dfb[_0x2f8ade][_0x3530('0x5b')]=_0x5cc7b7[_0x3530('0xc2')](_0x4a3dfb[_0x2f8ade][_0x3530('0x5b')]));}[_0x3530('0xa3')](_0x485b27){const _0x40f684=new Set(_0x485b27[_0x3530('0x1')](_0x58201c=>_0x58201c['id']));for(let _0x5bd269=0x0;_0x5bd269<_0x485b27[_0x3530('0x11b')];_0x5bd269++)_0x40f684[_0x3530('0xad')](_0x485b27[_0x5bd269][_0x3530('0x5b')])||0x0==_0x485b27[_0x5bd269][_0x3530('0xe4')]||(_0x485b27[_0x5bd269][_0x3530('0x71')]=!0x0);return _0x485b27[_0x3530('0x9')](_0x1ca741=>!_0x1ca741[_0x3530('0x71')]);}['_markMismatchedRemovedTags'](_0x5ab350){const _0x12bac7=new Set();for(let _0x473b34=0x0;_0x473b34<_0x5ab350['length'];_0x473b34++){if(_0x12bac7[_0x3530('0xad')](_0x5ab350[_0x473b34]['id'])&&_0x5ab350[_0x473b34]['isRemoved']&&(_0x5ab350[_0x473b34]['isIncorrect']=!0x0),_0x5ab350[_0x473b34][_0x3530('0x71')])continue;if(0x0==_0x5ab350[_0x473b34][_0x3530('0xe4')])continue;if('elementStart'!=_0x5ab350[_0x473b34]['type'])continue;if(null==_0x5ab350[_0x473b34]['pairId'])continue;let _0x31ee50=_0x473b34+0x1,_0x23c3e4=0x0;for(;_0x5ab350[_0x31ee50]['id']!=_0x5ab350[_0x473b34]['pairId'];)_0x3530('0xa2')==_0x5ab350[_0x31ee50][_0x3530('0x24')]?_0x23c3e4++:_0x3530('0x47')==_0x5ab350[_0x31ee50][_0x3530('0x24')]&&_0x23c3e4--,_0x31ee50++;if(0x0!=_0x23c3e4){if(_0x5ab350[_0x473b34][_0x3530('0xda')])_0x5ab350[_0x473b34][_0x3530('0x71')]=!0x0;else for(;_0x31ee50!=_0x473b34;)_0x5ab350[_0x31ee50][_0x3530('0xda')]&&0x0!=_0x5ab350[_0x31ee50][_0x3530('0xe4')]&&(_0x5ab350[_0x31ee50][_0x3530('0x71')]=!0x0,_0x12bac7[_0x3530('0xf2')](_0x5ab350[_0x31ee50][_0x3530('0x5b')])),_0x31ee50--;}}return _0x5ab350[_0x3530('0x9')](_0x3a307a=>!_0x3a307a['isIncorrect']);}[_0x3530('0xd8')](_0x400532){const _0x17fb6f=this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0x10c')];for(let _0x3b8e5c=0x0;_0x3b8e5c<_0x400532[_0x3530('0x11b')];_0x3b8e5c++){if(!(_0x400532[_0x3b8e5c][_0x3530('0x13')]||_0x400532[_0x3b8e5c][_0x3530('0xef')]||_0x400532[_0x3b8e5c][_0x3530('0xda')]||_0x400532[_0x3b8e5c]['isRemoveSuggestion']))continue;if(0x0==_0x400532[_0x3b8e5c][_0x3530('0xe4')])continue;const _0x228b61=_0x400532[_0x3b8e5c]['item'];_0x17fb6f['isBlock'](_0x228b61)||_0x17fb6f[_0x3530('0x6d')](_0x228b61)||(_0x400532[_0x3b8e5c][_0x3530('0x13')]&&delete _0x400532[_0x3b8e5c][_0x3530('0x13')],_0x400532[_0x3b8e5c]['isAddSuggestion']&&delete _0x400532[_0x3b8e5c][_0x3530('0xef')],_0x400532[_0x3b8e5c][_0x3530('0xa1')]&&delete _0x400532[_0x3b8e5c][_0x3530('0xa1')],_0x400532[_0x3b8e5c]['isRemoved']&&(_0x400532[_0x3b8e5c][_0x3530('0x71')]=!0x0));}return _0x400532[_0x3530('0x9')](_0x1ee63d=>!_0x1ee63d['isIncorrect']);}[_0x3530('0xb')](_0x4a05fa,_0x46f3e1,_0x5bdd82){const _0x5b5955=new _0x4979a3(),_0x1146ed=[],_0x5d0fb3=new Map(),_0x2a8330=this[_0x3530('0xa0')][_0x3530('0x3f')],_0x2e3a8e=_0x2a8330[_0x3530('0x10c')],_0x2d95dc=[_0x5b5955],_0x1acd9e={},_0x1d5278={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x45aba0=null;const _0x370154=[0x0];for(let _0x169d76=0x0;_0x169d76<_0x4a05fa[_0x3530('0x11b')];_0x169d76++){let _0x2f0beb,_0x3a89bc;if('elementStart'===_0x4a05fa[_0x169d76][_0x3530('0x24')]){_0x2f0beb=_0x2a8330['createPositionFromPath'](_0x5b5955,_0x370154);const _0x159a1a=new _0x3a563a(_0x4a05fa[_0x169d76]['item'][_0x3530('0xd5')],_0x4a05fa[_0x169d76]['item'][_0x3530('0x41')]());_0x2d95dc[0x0][_0x3530('0xd4')](_0x159a1a),_0x370154['push'](0x0),_0x2d95dc[_0x3530('0x1e')](_0x159a1a),_0x3a89bc=_0x2a8330[_0x3530('0x2a')](_0x5b5955,_0x370154),_0x45aba0=null;}else{if(_0x3530('0x47')===_0x4a05fa[_0x169d76][_0x3530('0x24')])_0x2d95dc[_0x3530('0xa5')](),_0x2f0beb=_0x2a8330['createPositionFromPath'](_0x5b5955,_0x370154),_0x370154['pop'](),_0x370154[_0x370154[_0x3530('0x11b')]-0x1]++,_0x3a89bc=_0x2a8330['createPositionFromPath'](_0x5b5955,_0x370154),_0x45aba0=null;else{if(_0x2f0beb=_0x2a8330['createPositionFromPath'](_0x5b5955,_0x370154),_0x45aba0&&_0x377393(_0x45aba0,_0x4a05fa[_0x169d76][_0x3530('0x1a')]))_0x45aba0[_0x3530('0x4d')]+=_0x4a05fa[_0x169d76][_0x3530('0x1a')]['data'];else{const _0x5a33b8=new _0x2a94dd(_0x4a05fa[_0x169d76]['item'][_0x3530('0x19')],_0x4a05fa[_0x169d76][_0x3530('0x1a')][_0x3530('0x41')]());_0x2d95dc[0x0][_0x3530('0xd4')](_0x5a33b8),_0x45aba0=_0x5a33b8;}_0x370154[_0x370154[_0x3530('0x11b')]-0x1]+=_0x4a05fa[_0x169d76][_0x3530('0x1a')][_0x3530('0x5')],_0x3a89bc=_0x2a8330['createPositionFromPath'](_0x5b5955,_0x370154);}}for(const _0x1514ea of _0x4a05fa[_0x169d76][_0x3530('0x77')])_0x5d0fb3[_0x3530('0x6a')](_0x1514ea,{'start':_0x2f0beb,'end':null});_0x4944cd(_0x3530('0xa1'),_0x169d76,_0x2f0beb,_0x3a89bc),_0x4944cd(_0x3530('0xef'),_0x169d76,_0x2f0beb,_0x3a89bc),_0x4944cd(_0x3530('0xda'),_0x169d76,_0x2f0beb,_0x3a89bc),_0x4944cd(_0x3530('0x13'),_0x169d76,_0x2f0beb,_0x3a89bc);for(const _0x419a05 of _0x4a05fa[_0x169d76][_0x3530('0x10f')]){_0x5d0fb3[_0x3530('0xc2')](_0x419a05)['end']=_0x3a89bc;}}for(const [_0x5cfd73,_0x41f2b0]of _0x5d0fb3){const _0x29e913=this['editor'][_0x3530('0x3f')][_0x3530('0xde')](_0x41f2b0['start'],_0x41f2b0['end']);_0x5b5955['markers']['set'](_0x5cfd73,_0x29e913);}return _0x1146ed[_0x3530('0xb2')]((_0x17b05f,_0x25aeee)=>{const _0x38bb52=_0x5b5955[_0x3530('0x107')][_0x3530('0xc2')]('revision:'+_0x17b05f['id']),_0x5eb7de=_0x5b5955[_0x3530('0x107')][_0x3530('0xc2')]('revision:'+_0x25aeee['id']);return _0x38bb52[_0x3530('0xd2')][_0x3530('0x10')](_0x5eb7de[_0x3530('0xd2')])?-0x1:_0x38bb52[_0x3530('0xd2')][_0x3530('0x18')](_0x5eb7de[_0x3530('0xd2')])?0x1:_0x38bb52[_0x3530('0x7a')][_0x3530('0x10')](_0x5eb7de[_0x3530('0x7a')])?-0x1:_0x38bb52['end']['isAfter'](_0x5eb7de['end'])?0x1:_0x3530('0xf2')===_0x17b05f[_0x3530('0x24')]?-0x1:0x1;}),{'root':_0x5b5955,'changes':_0x1146ed};function _0x4944cd(_0x15796b,_0x3f6ad4,_0x16108f,_0x5e9420){const _0x2b6a05=!!_0x4a05fa[_0x3f6ad4][_0x15796b],_0x2b056f=_0x2b6a05?_0x4a05fa[_0x3f6ad4][_0x15796b]['userId']:null,_0x5e7e6e=_0x3f6ad4===_0x4a05fa[_0x3530('0x11b')]-0x1,_0x515b17=_0x1d5278[_0x15796b][0x0],_0x236181=_0x2e3a8e[_0x3530('0x62')](_0x4a05fa[_0x3f6ad4][_0x3530('0x1a')]);!_0x1acd9e[_0x15796b]&&_0x2b6a05?_0x1acd9e[_0x15796b]={'start':_0x16108f,'tapeItem':_0x4a05fa[_0x3f6ad4],'userId':_0x2b056f,'type':_0x15796b}:_0x1acd9e[_0x15796b]&&!_0x2b6a05?(_0x1acd9e[_0x15796b][_0x3530('0x7a')]=_0x16108f,_0x36afe4(_0x1acd9e[_0x15796b]),_0x1acd9e[_0x15796b]=null):_0x1acd9e[_0x15796b]&&_0x2b6a05&&_0x1acd9e[_0x15796b][_0x3530('0x11f')]!==_0x2b056f&&(_0x1acd9e[_0x15796b][_0x3530('0x7a')]=_0x16108f,_0x515b17&&_0x515b17[_0x3530('0x11f')]===_0x1acd9e[_0x15796b]['userId']||_0x36afe4(_0x1acd9e[_0x15796b]),_0x1acd9e[_0x15796b]={'start':_0x16108f,'tapeItem':_0x4a05fa[_0x3f6ad4],'userId':_0x2b056f,'type':_0x15796b}),_0x1acd9e[_0x15796b]&&_0x236181&&(_0x3530('0xa2')!==_0x4a05fa[_0x3f6ad4]['type']||_0x515b17&&_0x515b17[_0x3530('0x11f')]===_0x2b056f||_0x1d5278[_0x15796b][_0x3530('0x1e')]({'userId':_0x2b056f,'object':_0x4a05fa[_0x3f6ad4]['item'],'change':_0x1acd9e[_0x15796b]}),_0x3530('0x47')===_0x4a05fa[_0x3f6ad4][_0x3530('0x24')]&&_0x515b17&&_0x515b17[_0x3530('0xea')]===_0x4a05fa[_0x3f6ad4][_0x3530('0x1a')]&&(_0x1d5278[_0x15796b][_0x3530('0xa5')](),_0x1acd9e[_0x15796b]=_0x515b17[_0x3530('0x11e')])),_0x1acd9e[_0x15796b]&&_0x5e7e6e&&(_0x1acd9e[_0x15796b]['end']=_0x5e9420,_0x36afe4(_0x1acd9e[_0x15796b]),_0x1acd9e[_0x15796b]=null);}function _0x36afe4({start:_0x3ca2f0,end:_0x3f6143,tapeItem:_0x3988f2,userId:_0x4ff057,type:_0x2740ce}){const _0x5961b4=_0x3988f2[_0x3530('0x1a')],_0x5abb0b=_0x2a8330[_0x3530('0x10c')][_0x3530('0xcf')](_0x5961b4)&&!_0x2a8330[_0x3530('0x10c')]['isLimit'](_0x5961b4),_0x1bc9f4=_0x3ca2f0[_0x3530('0x110')]==_0x3f6143['parent']&&_0x3f6143['isAtStart'];if(_0x5abb0b&&_0x1bc9f4)return;const _0x5ee027=_0x2a8330['createRange'](_0x3ca2f0,_0x3f6143),_0xc89338=_0x46f3e1[_0x3530('0xc2')](_0x4ff057),_0x520f49=new _0x793295({'author':_0xc89338,'type':_0x3530('0x13')==_0x2740ce||_0x3530('0xef')==_0x2740ce?'add':_0x3530('0x9c'),'data':{'isSuggestion':_0x3530('0xef')==_0x2740ce||_0x3530('0xa1')==_0x2740ce},'createdAt':new Date(),'rootName':_0x5bdd82});_0x1146ed[_0x3530('0x29')](_0x520f49),_0x5b5955['markers'][_0x3530('0x6a')](_0x3530('0x8a')+_0x520f49['id'],_0x5ee027);}function _0x377393(_0x4eba6f,_0x35ae63){const _0x161f1d=_0x4eba6f['getAttributes'](),_0x3c9696=_0x35ae63[_0x3530('0x41')]();for(const _0x4c1d40 of _0x161f1d){if(_0x4c1d40[0x1]!==_0x35ae63['getAttribute'](_0x4c1d40[0x0]))return!0x1;_0x3c9696[_0x3530('0xc6')]();}return _0x3c9696[_0x3530('0xc6')]()[_0x3530('0x45')];}}[_0x3530('0xb5')](){this[_0x3530('0xa0')][_0x3530('0x102')][_0x3530('0x4c')](_0x3530('0x7'))[_0x3530('0x88')]({'view':_0x3530('0x54')}),this[_0x3530('0xa0')][_0x3530('0x102')]['for'](_0x3530('0xa4'))['markerToHighlight']({'model':_0x3530('0x54'),'view':_0x5ef9ff=>{const _0xf83308=_0x5ef9ff['markerName'][_0x3530('0x89')](':')[0x1],_0x1ffc10=this[_0x3530('0xf3')](_0xf83308);if(!_0x1ffc10)return null;const _0x273120=_0x3530('0xf2')==_0x1ffc10['type']?_0x3530('0x55'):_0x3530('0x3a'),_0x2b4304=[_0x3530('0x5c'),_0x3530('0x93')+_0x273120];return _0x1ffc10[_0x3530('0x19')][_0x3530('0x3b')]&&_0x2b4304[_0x3530('0x29')](_0x3530('0x93')+_0x273120+_0x3530('0x52')),this[_0x3530('0x117')]==_0x1ffc10&&_0x2b4304[_0x3530('0x29')](_0x3530('0xbc')),{'classes':_0x2b4304,'attributes':{'data-change-id':_0xf83308}};}}),this[_0x3530('0xa0')][_0x3530('0x102')][_0x3530('0x4c')](_0x3530('0x7'))[_0x3530('0xf2')](_0xf0fb3f=>{_0xf0fb3f['on'](_0x3530('0x27'),(_0x5dc271,_0x43a8fa,_0x310b3e)=>{const _0x30f6c3=_0x43a8fa[_0x3530('0x70')][_0x3530('0x72')](0x0);if(!_0x30f6c3||!_0x30f6c3['is'](_0x3530('0x60'),_0x3530('0x85')))return;if(!_0x310b3e[_0x3530('0xbe')]['consume'](_0x30f6c3,{'attributes':[_0x3530('0x7e'),_0x3530('0x95')]}))return;const _0x187c8c=_0x43a8fa['modelRange']['start']['nodeAfter'];_0x310b3e['writer'][_0x3530('0xf1')](_0x3530('0x7e'),_0x30f6c3['getAttribute'](_0x3530('0x7e')),_0x187c8c),_0x310b3e[_0x3530('0xf')]['setAttribute'](_0x3530('0x95'),_0x30f6c3['getAttribute'](_0x3530('0x95')),_0x187c8c);},{'priority':_0x3530('0xe')});}),this['editor'][_0x3530('0x102')]['for'](_0x3530('0x7'))['add'](_0x1c9093=>{_0x1c9093['on'](_0x3530('0x60'),(_0x30a19f,_0x21f578,_0x2e3912)=>{if(!_0x2e3912['consumable'][_0x3530('0x4a')](_0x21f578[_0x3530('0x70')],{'attributes':['vid_start',_0x3530('0x95')]}))return;if(_0x21f578['modelRange'][_0x3530('0xe3')])return;const _0x416b1b=_0x21f578[_0x3530('0x6f')][_0x3530('0xd2')][_0x3530('0x110')];_0x416b1b[_0x3530('0x8c')]('vid_start')||_0x416b1b[_0x3530('0x8c')]('vid')||(_0x2e3912[_0x3530('0xf')][_0x3530('0xf1')](_0x3530('0x7e'),_0x21f578[_0x3530('0x70')][_0x3530('0xe0')](_0x3530('0x7e')),_0x416b1b),_0x2e3912[_0x3530('0xf')][_0x3530('0xf1')]('vid_end',_0x21f578[_0x3530('0x70')][_0x3530('0xe0')]('vid_end'),_0x416b1b));},{'priority':_0x3530('0xe')});}),this[_0x3530('0xa0')][_0x3530('0x102')]['for'](_0x3530('0x7'))[_0x3530('0x101')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x350b36=>_0x350b36[_0x3530('0xe0')](_0x3530('0xc4'))}}),this['editor'][_0x3530('0x3f')]['schema']['on'](_0x3530('0x81'),(_0x1d136c,[,_0x54a56b])=>{[_0x3530('0x7e'),'vid_end',_0x3530('0xc4')][_0x3530('0x4')](_0x54a56b)&&(_0x1d136c[_0x3530('0xfd')]=!0x0,_0x1d136c[_0x3530('0x31')]());},{'priority':'highest'}),this[_0x3530('0xa0')][_0x3530('0x102')][_0x3530('0x4c')](_0x3530('0x49'))[_0x3530('0xf2')](_0x4782ca=>{_0x4782ca['on']('attribute:vid',(_0x21111d,_0xccfdb2,_0x14692b)=>{if('\x20'!=_0xccfdb2[_0x3530('0x1a')][_0x3530('0x19')]||_0xccfdb2['item'][_0x3530('0xa8')][_0x3530('0x30')]>0x1)return;if(!_0x14692b['consumable']['consume'](_0xccfdb2[_0x3530('0x1a')],_0x21111d[_0x3530('0xd5')]))return;const _0x4333dd=_0x14692b['writer'],_0x1fd5e8=_0x14692b[_0x3530('0xeb')][_0x3530('0x74')](_0xccfdb2['range']);_0x4333dd[_0x3530('0x113')](_0x1fd5e8,_0x4333dd[_0x3530('0x11a')]('span'));});}),this[_0x3530('0xa0')]['conversion']['for'](_0x3530('0x49'))[_0x3530('0x116')]({'model':_0x3530('0x54')}),this['editor'][_0x3530('0xb6')][_0x3530('0x2e')]['on'](_0x3530('0xe6'),function(_0xb8fde7){const _0x5cf19f=_0xb8fde7['plugins'][_0x3530('0xc2')]('RevisionViewer');return(_0x535ea7,_0x475239,_0x2caf52)=>{const _0x3775a4=_0x475239[_0x3530('0x5f')][_0x3530('0x89')](':')[0x1],_0x4305ee=_0x5cf19f[_0x3530('0xf3')](_0x3775a4);if(!_0x4305ee)return null;const _0x2ba6e5='add'==_0x4305ee[_0x3530('0x24')]?_0x3530('0x89'):_0x3530('0xff');if(!_0x2caf52['consumable'][_0x3530('0x4e')](_0x475239['markerRange'],_0x535ea7['name']))return;const _0x22f64f=_0x475239[_0x3530('0x53')][_0x3530('0x99')](),_0x2ae8f4=_0x475239[_0x3530('0x53')][_0x3530('0xd2')],_0x1be173=_0xb8fde7[_0x3530('0x3f')][_0x3530('0x10c')];let _0x437355=null,_0x5f53bc=null,_0x144006=!0x1,_0x2454f8=!0x1;for(const _0x344063 of _0x22f64f){const _0xe69e3c=_0x344063['item'];_0x144006=_0x144006||_0x1be173['isContent'](_0xe69e3c);const _0x5eb0f7=_0x2caf52['mapper'][_0x3530('0xd1')](_0xe69e3c);if(_0x5eb0f7&&_0x5eb0f7[_0x3530('0xee')](_0x3530('0xd9')))return;_0x3530('0x47')==_0x344063[_0x3530('0x24')]&&(_0x1be173[_0x3530('0xcf')](_0xe69e3c)&&!_0x1be173['isLimit'](_0xe69e3c)&&(_0xe69e3c[_0x3530('0x36')]||_0x2ae8f4[_0x3530('0x105')]?_0x437355&&_0x437355['parent']==_0xe69e3c||(_0x437355=_0xe69e3c,_0x57ba87(_0x344063[_0x3530('0x22')]),_0x2454f8=!0x0):_0x5f53bc=_0x5f53bc||_0x344063[_0x3530('0x22')]));}function _0x57ba87(_0x1f772b){const _0x1ad502=_0x2caf52[_0x3530('0xf')][_0x3530('0xb3')]('span',{'class':'ck-suggestion-marker-'+_0x2ba6e5}),_0x26f98d=_0x2caf52[_0x3530('0xeb')]['toViewPosition'](_0x1f772b);_0x4305ee[_0x3530('0x19')]['isSuggestion']&&_0x2caf52[_0x3530('0xf')][_0x3530('0x42')](_0x3530('0x93')+_0x2ba6e5+_0x3530('0x52'),_0x1ad502),_0x5cf19f[_0x3530('0x117')]==_0x4305ee&&_0x2caf52[_0x3530('0xf')][_0x3530('0x42')](_0x3530('0xbc'),_0x1ad502),_0x2caf52['writer']['insert'](_0x26f98d,_0x1ad502),_0x2caf52[_0x3530('0xeb')][_0x3530('0x78')](_0x1ad502,_0x475239[_0x3530('0x5f')]);}_0x144006||_0x2454f8||!_0x5f53bc||_0x57ba87(_0x5f53bc);};}(this['editor']),{'priority':_0x3530('0x59')}),this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2e')]['on']('removeMarker:revision',(_0x1d8d99,_0x441097,_0x4fb7ff)=>{const _0xd3c2bd=_0x4fb7ff[_0x3530('0xeb')][_0x3530('0x56')](_0x441097[_0x3530('0x5f')]);if(_0xd3c2bd)for(const _0x2ea36b of _0xd3c2bd)(_0x2ea36b[_0x3530('0x1d')](_0x3530('0x6'))||_0x2ea36b['hasClass'](_0x3530('0x15')))&&(_0x4fb7ff[_0x3530('0xeb')]['unbindElementFromMarkerName'](_0x2ea36b,_0x441097[_0x3530('0x5f')]),_0x4fb7ff[_0x3530('0xf')][_0x3530('0x9c')](_0x2ea36b));},{'priority':_0x3530('0x59')}),this[_0x3530('0xa0')][_0x3530('0xb6')]['downcastDispatcher']['on']('addMarker:revision',(_0x2b2399,_0x587f43,_0x42d5ad)=>{const _0x440e12=_0x587f43[_0x3530('0x5f')][_0x3530('0x89')](':')[0x1],_0x4a3c65=this[_0x3530('0xf3')](_0x440e12);if(!_0x4a3c65)return null;const _0x25fde9=_0x3530('0xf2')==_0x4a3c65[_0x3530('0x24')]?_0x3530('0x89'):_0x3530('0xff');if(_0x42d5ad['consumable'][_0x3530('0x4e')](_0x587f43['markerRange'],_0x2b2399[_0x3530('0xd5')]))for(const _0x1a466e of _0x587f43[_0x3530('0x53')]['getItems']()){if(!_0x1a466e['is'](_0x3530('0x60'),_0x3530('0x2c')))continue;const _0x1de424=_0x42d5ad[_0x3530('0xf')][_0x3530('0xb3')]('span',{'class':_0x3530('0x93')+_0x25fde9}),_0x3150e0=_0x42d5ad['mapper'][_0x3530('0x108')](this['editor'][_0x3530('0x3f')]['createPositionBefore'](_0x1a466e));_0x4a3c65[_0x3530('0x19')][_0x3530('0x3b')]&&_0x42d5ad['writer'][_0x3530('0x42')](_0x3530('0x93')+_0x25fde9+_0x3530('0x52'),_0x1de424),this[_0x3530('0x117')]==_0x4a3c65&&_0x42d5ad['writer']['addClass'](_0x3530('0xbc'),_0x1de424),_0x42d5ad[_0x3530('0xf')]['insert'](_0x3150e0,_0x1de424),_0x42d5ad[_0x3530('0xeb')][_0x3530('0x78')](_0x1de424,_0x587f43[_0x3530('0x5f')]);}},{'priority':_0x3530('0x59')}),this['editor']['model'][_0x3530('0xdf')]['on'](_0x3530('0x11e'),()=>{this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2d')][_0x3530('0x11e')](_0x283757=>{for(const _0xbb9966 of this['editor'][_0x3530('0x3f')][_0x3530('0xdf')][_0x3530('0x103')]()){const _0x40cb6c=this['editor'][_0x3530('0x3f')][_0x3530('0xdf')]['getRoot'](_0xbb9966),_0x396400=this[_0x3530('0xa0')][_0x3530('0xb6')]['view'][_0x3530('0xdf')]['getRoot'](_0xbb9966);if(_0x396400){const _0x384a30=_0x40cb6c[_0x3530('0xe0')]('revisionHistoryAttachChange');if(_0x283757['removeAttribute']('data-change-id',_0x396400),_0x283757['removeClass'](_0x3530('0xc9'),_0x396400),_0x283757[_0x3530('0x25')]('ck-revision-history-root-remove',_0x396400),_0x283757['removeClass'](_0x3530('0x10a'),_0x396400),_0x384a30){const _0x5aeceb=this[_0x3530('0xf3')](_0x384a30);if(!_0x5aeceb)return null;_0x283757[_0x3530('0xf1')]('data-change-id',_0x384a30,_0x396400),_0x283757[_0x3530('0x42')](_0x3530('0x6b')+_0x5aeceb[_0x3530('0x24')],_0x396400),this[_0x3530('0x117')]==_0x5aeceb&&_0x283757[_0x3530('0x42')]('ck-revision-history-root--active',_0x396400);}}}});}),this[_0x3530('0xa0')][_0x3530('0x102')]['for'](_0x3530('0x7'))[_0x3530('0x88')]({'view':'comment','model':_0x54feae=>_0x3530('0xf6')+_0x54feae,'converterPriority':_0x3530('0xe8')}),this['editor'][_0x3530('0x102')]['for']('upcast')[_0x3530('0x88')]({'view':_0x3530('0x64'),'model':_0x457601=>_0x3530('0xbd')+_0x457601,'converterPriority':_0x3530('0xe8')}),this[_0x3530('0xa0')][_0x3530('0x102')]['for'](_0x3530('0x49'))[_0x3530('0x116')]({'model':'revision-suggestion','view':_0x346fa9=>({'name':_0x3530('0x2b')+_0x346fa9,'group':_0x3530('0x16')}),'converterPriority':_0x3530('0xe8')}),this[_0x3530('0xa0')][_0x3530('0x102')][_0x3530('0x4c')](_0x3530('0xa4'))['markerToHighlight']({'model':_0x3530('0x16'),'view':_0x28c2f9=>{const _0x49663b=_0x28c2f9[_0x3530('0x5f')][_0x3530('0x89')](':')[0x1];return _0x3530('0x55')!=_0x49663b&&_0x3530('0x3a')!=_0x49663b?null:{'classes':['ck-suggestion-preview-marker',_0x3530('0x73')+_0x49663b]};}}),this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2e')]['on'](_0x3530('0x114'),et(this[_0x3530('0xa0')],_0x3530('0xff')),{'priority':_0x3530('0x59')}),this[_0x3530('0xa0')][_0x3530('0xb6')]['downcastDispatcher']['on'](_0x3530('0xf8'),et(this[_0x3530('0xa0')],_0x3530('0x89')),{'priority':'high'}),this['editor'][_0x3530('0xb6')][_0x3530('0x2e')]['on'](_0x3530('0x112'),(_0x145525,_0x389637,_0x44dc22)=>{const _0x354e63=_0x44dc22[_0x3530('0xeb')][_0x3530('0x56')](_0x389637[_0x3530('0x5f')]);if(_0x354e63)for(const _0x5ec3e1 of _0x354e63)_0x5ec3e1['is'](_0x3530('0x23'))&&(_0x44dc22['mapper'][_0x3530('0xf0')](_0x5ec3e1,_0x389637[_0x3530('0x5f')]),_0x44dc22[_0x3530('0xf')][_0x3530('0x9c')](_0x5ec3e1));},{'priority':'high'});}['_getChangeFromId'](_0x28d880){return this[_0x3530('0xc3')][_0x3530('0xc2')](_0x28d880);}[_0x3530('0xf4')](_0x5ebd09){return this[_0x3530('0xab')]&&this['_changeView'][_0x3530('0x104')](),this['_changeView']=new _0x4de4eb(this[_0x3530('0xa0')]['locale'],_0x5ebd09),this['_changeView'];}['_initInteractions'](){this['editor']['model'][_0x3530('0xdf')][_0x3530('0x9b')]['observeMarkers'](_0x3530('0x54')),this['on']('change:activeView',(_0x236b1f,_0x1c22b0,_0x35d372,_0x2a2ea9)=>{_0x2a2ea9&&this[_0x3530('0xb1')][_0x3530('0x9c')](_0x2a2ea9),_0x35d372&&(this[_0x3530('0xb1')][_0x3530('0xf2')]({'view':_0x35d372,'stackId':_0x3530('0xfa'),'position':{'target':()=>{const _0x1cbc30=this[_0x3530('0xa0')][_0x3530('0xb6')],_0x5a5bc1=this['_getChangeFromId'](_0x35d372[_0x3530('0x20')]);let _0x35724b;if(_0x5a5bc1[_0x3530('0x19')][_0x3530('0xbf')]){const _0xf8a75=_0x1cbc30[_0x3530('0x2d')][_0x3530('0x84')](_0x5a5bc1[_0x3530('0x40')]);_0x35724b=Array['from'](_0xf8a75[_0x3530('0x120')]());}else{const _0x120eb7=this[_0x3530('0xa0')][_0x3530('0x3f')]['markers'][_0x3530('0xc2')]('revision:'+_0x35d372['changeId']);_0x35724b=Array[_0x3530('0x14')](_0x1cbc30['mapper'][_0x3530('0x56')](_0x120eb7[_0x3530('0xd5')]))['map'](_0x341e7f=>_0x1cbc30[_0x3530('0x2d')][_0x3530('0x21')]['mapViewToDom'](_0x341e7f))[_0x3530('0x1')](_0x413a05=>Array[_0x3530('0x14')](_0x413a05[_0x3530('0x120')]()))['flat']();}if(!this['_activeViewTarget'])return _0x35724b[0x0];return _0x35724b[_0x3530('0xd3')](_0x2f43cc=>_0x2f43cc[_0x3530('0xaf')]-0x3<=this[_0x3530('0x11')]['y']&&_0x2f43cc['bottom']+0x3>=this[_0x3530('0x11')]['y']&&_0x2f43cc[_0x3530('0xfe')]-0x3<=this[_0x3530('0x11')]['x']&&_0x2f43cc[_0x3530('0x10b')]+0x3>=this[_0x3530('0x11')]['x'])||_0x35724b[0x0];}}}),this[_0x3530('0xb1')][_0x3530('0x80')](_0x3530('0xfa')));}),this['on'](_0x3530('0x28'),(_0x520e2f,_0x309680,_0x2d820b,_0xc6083)=>{this['activeView']=_0x2d820b?this[_0x3530('0xf4')](_0x2d820b):null,this[_0x3530('0xa0')][_0x3530('0x3f')]['change'](()=>{const _0x21ce49=this['editor'][_0x3530('0xb6')];_0xc6083&&(_0xc6083[_0x3530('0x19')][_0x3530('0xbf')]?_0x21ce49[_0x3530('0x2d')][_0x3530('0x11e')](_0x5ec1b5=>{_0x5ec1b5[_0x3530('0x25')]('ck-revision-history-root--active',_0x21ce49[_0x3530('0x2d')][_0x3530('0xdf')][_0x3530('0xe5')](_0xc6083[_0x3530('0x40')]));}):_0x21ce49[_0x3530('0x6e')](_0x3530('0x8a')+_0xc6083['id'])),_0x2d820b&&(_0x2d820b[_0x3530('0x19')][_0x3530('0xbf')]?_0x21ce49[_0x3530('0x2d')][_0x3530('0x11e')](_0xb4e3f7=>{_0xb4e3f7[_0x3530('0x42')](_0x3530('0x10a'),_0x21ce49['view']['document'][_0x3530('0xe5')](_0x2d820b[_0x3530('0x40')]));}):_0x21ce49['reconvertMarker'](_0x3530('0x8a')+_0x2d820b['id']));});}),this[_0x3530('0xba')](this[_0x3530('0xa0')][_0x3530('0xb6')][_0x3530('0x2d')]['document'],_0x3530('0x7c'),(_0x265a4c,_0x543d58)=>{if(this[_0x3530('0x117')])return;const _0x7dcbcd=this[_0x3530('0x17')](_0x543d58['target']),_0x2198f9=this[_0x3530('0xc3')][_0x3530('0xc2')](_0x7dcbcd);_0x2198f9?(this[_0x3530('0x11')]={'x':_0x543d58['domEvent']['x'],'y':_0x543d58['domEvent']['y']},this['activeView']=this[_0x3530('0xf4')](_0x2198f9)):(this[_0x3530('0x11')]=null,this[_0x3530('0x96')]=null);}),this['listenTo'](this['editor'][_0x3530('0xb6')]['view'][_0x3530('0xdf')],_0x3530('0xd6'),(_0x443135,_0x328c2d)=>{const _0x21f942=this['_findChangeIdFromDomTarget'](_0x328c2d[_0x3530('0x39')]),_0x4a2bac=this['_changeIdToChange'][_0x3530('0xc2')](_0x21f942);_0x4a2bac?(this[_0x3530('0x11')]={'x':_0x328c2d[_0x3530('0xb8')]['x'],'y':_0x328c2d['domEvent']['y']},_0x4a2bac===this['activeChange']?this[_0x3530('0xb1')]['updatePosition']():this[_0x3530('0x117')]=_0x4a2bac):(this[_0x3530('0x11')]=null,this[_0x3530('0x117')]=null);});}['_findChangeIdFromDomTarget'](_0x2ab6de){do{const _0x42c67a=_0x2ab6de[_0x3530('0xe0')]('data-change-id');if(_0x42c67a)return _0x42c67a;_0x2ab6de=_0x2ab6de['parent'];}while(_0x2ab6de);return null;}[_0x3530('0x57')](){this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0x11e')](_0xfbc2dc=>{for(const _0x338e2f of this[_0x3530('0xa0')][_0x3530('0x3f')][_0x3530('0x107')])_0xfbc2dc[_0x3530('0x118')](_0x338e2f);});}}function et(_0x404b22,_0x29f2df){return(_0x1de3c5,_0x49fc57,_0x4af3d0)=>{if(!_0x4af3d0[_0x3530('0xbe')][_0x3530('0x4e')](_0x49fc57[_0x3530('0x53')],_0x1de3c5['name']))return;const _0x5f559a=_0x49fc57[_0x3530('0x53')][_0x3530('0x99')](),_0x412c25=_0x49fc57['markerRange'][_0x3530('0xd2')],_0x4fcc46=_0x404b22[_0x3530('0x3f')][_0x3530('0x10c')];let _0x2b4713=null,_0x3d0d62=null,_0x202346=!0x1,_0x196fad=!0x1;for(const _0x381f91 of _0x5f559a){const _0x5bf403=_0x381f91['item'];_0x202346=_0x202346||_0x4fcc46[_0x3530('0x3c')](_0x5bf403);const _0x4270e7=_0x4af3d0[_0x3530('0xeb')]['toViewElement'](_0x5bf403);if(_0x4270e7&&_0x4270e7['getCustomProperty'](_0x3530('0xd9')))return;_0x3530('0x47')==_0x381f91[_0x3530('0x24')]&&(_0x4fcc46['isBlock'](_0x5bf403)&&!_0x4fcc46[_0x3530('0x6d')](_0x5bf403)&&(_0x5bf403['nextSibling']||_0x412c25[_0x3530('0x105')]?_0x2b4713&&_0x2b4713['parent']==_0x5bf403||(_0x2b4713=_0x5bf403,_0x34c587(_0x381f91[_0x3530('0x22')]),_0x196fad=!0x0):_0x3d0d62=_0x3d0d62||_0x381f91['previousPosition']));}function _0x34c587(_0x1940c8){const _0x120604=_0x4af3d0[_0x3530('0xeb')][_0x3530('0x108')](_0x1940c8),_0x3a4013=_0x4af3d0[_0x3530('0xf')][_0x3530('0xb3')](_0x3530('0x61'),{'class':_0x3530('0x73')+_0x29f2df});_0x4af3d0['writer'][_0x3530('0x7f')](_0x120604,_0x3a4013),_0x4af3d0['mapper']['bindElementToMarker'](_0x3a4013,_0x49fc57['markerName']);}_0x202346||_0x196fad||!_0x3d0d62||_0x34c587(_0x3d0d62);};}export class RestoreRevisionCommand extends _0x346961{constructor(_0x5cba7a){super(_0x5cba7a);const _0xa6bc1c=_0x5cba7a[_0x3530('0x97')][_0x3530('0xc2')](d);this[_0x3530('0xfc')]=!0x1,this[_0x3530('0xba')](_0xa6bc1c,_0x3530('0x9f'),()=>this['refresh']()),this[_0x3530('0xba')](_0xa6bc1c,_0x3530('0xed'),()=>this[_0x3530('0x33')]());}[_0x3530('0x76')](){const _0x54a93b=this[_0x3530('0xa0')],_0x80ef95=_0x54a93b[_0x3530('0x97')][_0x3530('0xc2')](d),_0x1ac6fe=_0x80ef95[_0x3530('0xcd')]?_0x80ef95['diff'][_0x3530('0xc5')]:null;_0x54a93b[_0x3530('0x3e')][_0x3530('0xc2')](_0x3530('0x5e'))['restoreRevisionCallback'](_0x1ac6fe);}['refresh'](){const {isReady:_0x100647,isEnabled:_0x3a3ae0}=this[_0x3530('0xa0')][_0x3530('0x97')][_0x3530('0xc2')](d);this[_0x3530('0xdb')]=_0x100647&&_0x3a3ae0;}}export class ShowChangeCommand extends _0x346961{constructor(_0x432a0c,{direction:_0x3d2597}){super(_0x432a0c);const _0x47c04f=_0x432a0c[_0x3530('0x97')]['get'](d);this[_0x3530('0xfc')]=!0x1,this[_0x3530('0x8f')]=_0x3530('0x3')===_0x3d2597?0x1:-0x1,this[_0x3530('0xba')](_0x47c04f,_0x3530('0x9f'),()=>this[_0x3530('0x33')]()),this['listenTo'](_0x47c04f,_0x3530('0xed'),()=>this[_0x3530('0x33')]()),this['listenTo'](_0x47c04f,_0x3530('0x28'),()=>this[_0x3530('0x33')]());}[_0x3530('0x76')](){const _0x11a523=this[_0x3530('0xa0')],_0x1e0dad=_0x11a523[_0x3530('0x97')][_0x3530('0xc2')](d),{isNavigationMode:_0x5cd7e1,currentChangeNumber:_0x5b69f0}=_0x1e0dad;let _0x1b8231;if(_0x1e0dad[_0x3530('0x117')]=_0x5cd7e1?_0x1e0dad[_0x3530('0x86')][_0x3530('0x1f')][_0x3530('0xc2')](_0x5b69f0+this[_0x3530('0x8f')]):_0x1e0dad[_0x3530('0x86')][_0x3530('0x1f')][_0x3530('0xa6')],_0x1e0dad['activeChange'][_0x3530('0x19')]['isOnRoot'])_0x1b8231=_0x11a523['editing']['view'][_0x3530('0x84')](_0x1e0dad[_0x3530('0x117')]['rootName']);else{const _0x289570=_0x11a523[_0x3530('0x3f')][_0x3530('0x107')][_0x3530('0xc2')](_0x3530('0x8a')+_0x1e0dad['activeChange']['id']);_0x1b8231=_0x4630dd(_0x11a523[_0x3530('0xb6')],_0x289570);}_0x11d83f({'target':_0x1b8231,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1c0bfc,currentChangeNumber:_0x3ddc1f,numberOfChanges:_0x57efa3,isReady:_0x441a42,isEnabled:_0x37b866}=this['editor']['plugins'][_0x3530('0xc2')](d);this['isEnabled']=!!(_0x37b866&&_0x441a42&&_0x57efa3)&&(!_0x1c0bfc||(0x1===this[_0x3530('0x8f')]?_0x3ddc1f<_0x57efa3-0x1:_0x3ddc1f>0x0));}}
|
|
23
|
+
const _0x7068=['ck-suggestion-marker-','type','nextSibling','data','processor','ck-suggestion-marker-merge','deletion','domEvent','addRoot','newRevisionId','bind','_revisions','addMarker:revision','high','getWalker','createUIElement','concat','getIndex','editor','_data','ck-suggestion-preview-marker','add','attributes','getRevision','config','_joinTapes','flat','elementStart','end','nextPosition','insertions','isCollapsed','highest','marked','markersStart','markerRange','offsetSize','_cleanMarkers','removeMarker:revision-suggestion','for','pluginName','isRemoved','sort','dataToMarker','getRevisionRootsAttributes','ck-revision-history-root--active','forward','_getViewForChange','isSuggestion','clear','push','revision-suggestion','isIncorrect','listenTo','viewItem','revisionHistoryLabel','toModel','span','currentChangeNumber','slice','_threeWayMerge','object','addClass','ck-suggestion-marker','then','deletions','markersEnd','modelRange','_markMarkers','side','removeMarker','_sortAndFilterDiffChanges','isContent','revisionHistoryAttachChange','mouseover','isAtStart','domConverter','activeChange','children','vid','activeView','restoreRevision','wrap','isNavigationMode','showStack','ck-suggestion-marker-split','map','requires','start','isObject','resolve','_cleanUp','ck-revision-history-root-','isAfter','getDomRoot','compare','has','isBlock','revision-start','document','conversion','isEqual','attributesAfter','isLimit','isOnRoot','reconvertMarker','values','rootName','detachRoot','useFillerType','_activeViewTarget','backward','_getChangeFromId','showPreviousChange','error','_getDiff','changes','elementEnd','isBefore','createRangeIn','attribute:vid','keys','abs','writer','level','isAddSuggestion','elementToAttribute','ck-suggestion-marker--active','getAttributes','findIndex','removeMarker:revision','_update','range','_appendChild','name','parent','previousPosition','isAdded','test','model','updatePosition','RevisionViewer','refresh','markers','isReady','observeMarkers','_markMismatchedRemovedTags','ck-revision-history-root-remove','_markSuggestions','isAtEnd','diff','_removeMissingPairs','startsWith','removeAttribute','_getViewObj','parse','string','addMarker:revision-suggestion:deletion','markerName','_makeTape','unbindElementFromMarkerName','roots','includes','plugins','change:isReady','vid_start','enqueueChange','changeId','next','addMarker:revision-suggestion:insertion','diffData','forceDisabled','ck-editor__editable__overlay','destroy','target','commands','_changeIdToChange','nodeAfter','revision:','adapter','execute','_balloon','_setConversion','index','revision-suggestion:','toViewPosition','markerNameToElements','createRange','authors','isEnabled','isAttached','removeClass','getRoot','locale','collaboration.channelId','revision','ck-suggestion-preview-marker-','splice','change:activeView','-new','userId','repository','toViewRange','isInline','bindElementToMarker','editingDowncast','view','hasAttribute','_removeRevisionMarkers','unshift','softBreak','change','dataDowncast','revision-comment:','comment','delete','isRemoveSuggestion','consumable','mousedown','getClientRects','pop','set','_initInteractions','element','_getRevisionsRange','hasClass','_processTape','from','item','setAttribute','forEach','addHighlight','revision-viewer','split','revisionHistory','uiElement','_markInsertions','vid_end','remove','consume','createPositionFromPath','_step','distance','_removeUnsupportedChanges','suggestion:','addRevisionData','endIndex','_makeModelFromTape','low','markerToData','element:pre','createRevision','insertion','createAttributeElement','_makeModelFromViewString','markerToHighlight','bottom','upcast','getRootNames','text','attachChange','getAttribute','top','_findChangeIdFromDomTarget','pairId','shift','change:numberOfChanges','merge','get','affectsData','startIndex','downcastDispatcher','default','selection','change:isEnabled','insert','loadRevisionData','toViewElement','all','addRevision','WidgetToolbarRepository','_changeView','showNextChange','schema','editing','_setChanges','filter','_setDistance','checkAttribute','right','change:activeChange','mapper','data-change-id','indexOf','numberOfChanges','length','mapViewToDom','_fixObsoleteTags'];(function(_0x1528a9,_0x7068bd){const _0xbd6fb8=function(_0x2e9c0d){while(--_0x2e9c0d){_0x1528a9['push'](_0x1528a9['shift']());}};_0xbd6fb8(++_0x7068bd);}(_0x7068,0xbc));const _0xbd6f=function(_0x1528a9,_0x7068bd){_0x1528a9=_0x1528a9-0x0;let _0xbd6fb8=_0x7068[_0x1528a9];return _0xbd6fb8;};import{Plugin as _0x30c5d4,Command as _0x189c95}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x2e2a34}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x287ad1}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x42903b,Element as _0x9aace8,Text as _0x6cd589,ViewDocumentFragment as _0x1cb40e,ViewText as _0x12d4b3,ViewElement as _0x108d6d,ViewContainerElement as _0x388474,ViewAttributeElement as _0x37589a,ViewEmptyElement as _0x41f711,ViewRawElement as _0x188ce0,ViewUIElement as _0x9c3142}from'ckeditor5/src/engine.js';import{Users as _0x2d3810,getMarkerDomElement as _0x17752f}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x40e82a from'./ui/revisionviewer/changedetailsview.js';import _0x4601d7 from'./revisionsrepository.js';import _0x23f678 from'./changeitem.js';import{default as _0x2f7959}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x134e14}from'lodash-es';const tt={'c':_0x388474,'a':_0x37589a,'e':_0x41f711,'r':_0x188ce0,'u':_0x9c3142};export default class d extends _0x30c5d4{static get[_0xbd6f('0x96')](){return _0xbd6f('0xfb');}static get[_0xbd6f('0xc5')](){return[_0x2d3810,_0x287ad1,_0x4601d7];}constructor(_0x175328){super(_0x175328),this[_0xbd6f('0xd')]=this[_0xbd6f('0x80')][_0xbd6f('0x111')][_0xbd6f('0x50')]('RevisionsRepository'),this['set'](_0xbd6f('0xbb'),null),this[_0xbd6f('0x21')](_0xbd6f('0xbe'),null),this['_activeViewTarget']=null,this['set'](_0xbd6f('0x104'),null),this[_0xbd6f('0x21')](_0xbd6f('0xfe'),!0x1),this[_0xbd6f('0x21')]('isEnabled',!0x0),this['on'](_0xbd6f('0x56'),(_0xcdbdff,_0x2ba0f2,_0x4bd3d6)=>{this[_0xbd6f('0xbb')]=null,this[_0xbd6f('0xbe')]=null,this[_0xbd6f('0x80')][_0xbd6f('0x60')][_0xbd6f('0x12')][_0xbd6f('0x17')](_0x31cba8=>{for(const _0x3924f6 of this[_0xbd6f('0x80')]['editing'][_0xbd6f('0x12')]['document'][_0xbd6f('0x10f')])_0x4bd3d6?_0x31cba8[_0xbd6f('0x3')](_0xbd6f('0x11a'),_0x3924f6):_0x31cba8['addClass'](_0xbd6f('0x11a'),_0x3924f6);});}),this[_0xbd6f('0x78')](_0xbd6f('0xc1'))['to'](this,_0xbd6f('0xbb'),_0x49800e=>null!==_0x49800e),this[_0xbd6f('0x78')](_0xbd6f('0xa8'))['to'](this,'isReady',this,_0xbd6f('0x104'),this,_0xbd6f('0xbb'),(_0x1623ac,_0x2060a4,_0x389c5b)=>_0x1623ac&&_0x389c5b?_0x2060a4['changes'][_0xbd6f('0x7f')](_0x389c5b):0x0),this[_0xbd6f('0x78')](_0xbd6f('0x6a'))['to'](this,_0xbd6f('0xfe'),this,_0xbd6f('0x104'),(_0x437d3c,_0x18db68)=>_0x437d3c?_0x18db68[_0xbd6f('0xe2')]['length']:0x0),this[_0xbd6f('0x5d')]=null,this[_0xbd6f('0x11e')]=new Map(),this[_0xbd6f('0x121')]=null,this[_0xbd6f('0x123')]=this['editor']['plugins']['get'](_0x287ad1);}['init'](){const _0x55f125=this[_0xbd6f('0x80')],_0x153382=new ShowChangeCommand(_0x55f125,{'direction':_0xbd6f('0xdd')}),_0x28c21c=new ShowChangeCommand(_0x55f125,{'direction':_0xbd6f('0x9c')});(_0x55f125[_0xbd6f('0x11d')]['add'](_0xbd6f('0xdf'),_0x153382),_0x55f125['commands'][_0xbd6f('0x83')](_0xbd6f('0x5e'),_0x28c21c),_0x55f125[_0xbd6f('0x11d')]['add'](_0xbd6f('0xbf'),new RestoreRevisionCommand(_0x55f125)),this['on'](_0xbd6f('0x4e'),()=>{_0x153382['refresh'](),_0x28c21c[_0xbd6f('0xfc')]();}),this[_0xbd6f('0x124')](),this['_initInteractions'](),_0x55f125['enableReadOnlyMode'](_0xbd6f('0x2c')),_0x55f125['plugins'][_0xbd6f('0xce')](_0xbd6f('0x5c')))&&_0x55f125[_0xbd6f('0x111')][_0xbd6f('0x50')](_0xbd6f('0x5c'))[_0xbd6f('0x119')](_0xbd6f('0x2c'));}async['getRevisionData'](_0x2daaec){await this[_0xbd6f('0x58')](_0x2daaec);const _0x1ab6e8={};for(const _0x480658 in _0x2daaec[_0xbd6f('0x118')]){if(_0x2daaec[_0xbd6f('0x118')][_0x480658][_0xbd6f('0x48')]&&!_0x2daaec['diffData'][_0x480658][_0xbd6f('0x48')][_0xbd6f('0x2')])continue;const _0x3b4cda=this[_0xbd6f('0x14')](JSON['parse'](_0x2daaec['diffData'][_0x480658][_0xbd6f('0x8c')])),_0x56c278=this[_0xbd6f('0x80')]['editing']['view'][_0xbd6f('0xd1')],_0x4cb458=new _0x1cb40e(_0x56c278,_0x3b4cda['map'](_0x124c92=>this[_0xbd6f('0x108')](_0x124c92)));this[_0xbd6f('0x80')]['data'][_0xbd6f('0x72')][_0xbd6f('0xdb')](_0xbd6f('0x8f')),_0x1ab6e8[_0x480658]=this[_0xbd6f('0x80')][_0xbd6f('0x71')][_0xbd6f('0x72')]['toData'](_0x4cb458),this['editor'][_0xbd6f('0x71')][_0xbd6f('0x72')][_0xbd6f('0xdb')](_0xbd6f('0x54'));}return _0x1ab6e8;}async[_0xbd6f('0x9a')](_0x44642b){await this[_0xbd6f('0x58')](_0x44642b);const _0x7d6461={};for(const _0xcf66a in _0x44642b['diffData'])_0x44642b[_0xbd6f('0x118')][_0xcf66a][_0xbd6f('0x48')]&&!_0x44642b['diffData'][_0xcf66a]['attachChange'][_0xbd6f('0x2')]||(_0x7d6461[_0xcf66a]=_0x44642b[_0xbd6f('0x118')][_0xcf66a]['attributesAfter']||{});return _0x7d6461;}[_0xbd6f('0x14')](_0x5a6906){return(_0x5a6906=_0x5a6906[_0xbd6f('0x62')](_0x1dca81=>!_0x1dca81[_0xbd6f('0xf4')]||_0xbd6f('0xd0')!==_0x1dca81[_0xbd6f('0xf4')]&&'revision-end'!==_0x1dca81[_0xbd6f('0xf4')]))[_0xbd6f('0x2a')](_0x51058b=>{'string'!=typeof _0x51058b&&(_0x51058b[_0xbd6f('0xbc')]=this[_0xbd6f('0x14')](_0x51058b['children']),_0x51058b[_0xbd6f('0x84')]=_0x51058b['attributes']['filter'](_0x421b6d=>!_0x421b6d[0x0]['startsWith']('data-revision-')));}),_0x5a6906;}async[_0xbd6f('0xcd')](_0x47a773,_0x573649,_0x369928=!0x1){if(!this['isEnabled'])return;const _0x41413e=this[_0xbd6f('0x104')],_0x23a111=this['repository'],_0x4346d8=_0xbd6f('0x10a')==typeof _0x47a773?_0x23a111[_0xbd6f('0x85')](_0x47a773):_0x47a773,_0x299cad=_0xbd6f('0x10a')==typeof _0x573649?_0x23a111[_0xbd6f('0x85')](_0x573649):_0x573649,_0x37c50d=_0x4346d8['id'],_0x11a503=_0x299cad?_0x299cad['id']:null;if(!_0x369928&&this[_0xbd6f('0x104')]&&this[_0xbd6f('0x104')]['newRevisionId']===_0x37c50d&&this['diff']['oldRevisionId']===_0x11a503)return Promise['resolve']();this[_0xbd6f('0xfe')]=!0x1,this['activeView']=null,this['activeChange']=null,this[_0xbd6f('0x104')]=new _0x2f7959(_0x37c50d,_0x11a503);const _0x4f345e=this[_0xbd6f('0x24')](_0x4346d8,_0x299cad,!0x0)[_0xbd6f('0xc4')](_0x9026b6=>this[_0xbd6f('0x58')](_0x9026b6));return _0x4f345e[_0xbd6f('0xa0')](new Promise(_0x3f44c6=>{setTimeout(_0x3f44c6,0x14);})),Promise[_0xbd6f('0x5a')](_0x4f345e)[_0xbd6f('0xae')](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3aaa9e=this['_getDiff'](_0x37c50d,_0x11a503);for(const _0x2c16fc of _0x3aaa9e[_0xbd6f('0xe2')])this['_changeIdToChange'][_0xbd6f('0x21')](_0x2c16fc['id'],_0x2c16fc);this[_0xbd6f('0x80')]['model']['enqueueChange']({'isUndoable':!0x1},_0x1e91f1=>{for(const _0x5c98a3 of this[_0xbd6f('0x80')][_0xbd6f('0xf9')]['document'][_0xbd6f('0x46')]())_0x1e91f1[_0xbd6f('0xda')](_0x5c98a3);for(const _0x45cf06 of Object['keys'](_0x3aaa9e[_0xbd6f('0xf9')])){const _0x5610f6=_0x1e91f1[_0xbd6f('0x76')](_0x45cf06);for(const _0x560ee6 of Object[_0xbd6f('0xe7')](_0x3aaa9e[_0xbd6f('0x84')][_0x45cf06]))_0x1e91f1[_0xbd6f('0x29')](_0x560ee6,_0x3aaa9e[_0xbd6f('0x84')][_0x45cf06][_0x560ee6],_0x5610f6);_0x1e91f1[_0xbd6f('0x57')](_0x3aaa9e['model'][_0x45cf06],_0x5610f6,0x0);}}),this[_0xbd6f('0x104')][_0xbd6f('0x61')](this['_sortAndFilterDiffChanges'](_0x3aaa9e['changes'])),this[_0xbd6f('0xfe')]=!0x0;})['catch'](_0x36a9f3=>{console[_0xbd6f('0xe0')](_0x36a9f3),this['_cleanUp'](),_0x41413e&&(this[_0xbd6f('0x104')]=_0x41413e),this[_0xbd6f('0xfe')]=!0x0;});}[_0xbd6f('0x39')](_0x3159bf,_0x290607){const _0x54b232=this['repository'][_0xbd6f('0x3f')](_0x3159bf);return _0x54b232['on'](_0xbd6f('0xf1'),(_0x43dfe4,_0x79cf30,_0x2fb64f)=>_0x290607(_0x79cf30,_0x2fb64f,_0x54b232)),this[_0xbd6f('0xd')][_0xbd6f('0x5b')](_0x54b232),_0x54b232;}[_0xbd6f('0x58')](_0x55ca37){if(!_0x55ca37||_0x55ca37['diffData'])return Promise[_0xbd6f('0xc8')]();{const _0xfe49eb=this[_0xbd6f('0x80')][_0xbd6f('0x86')][_0xbd6f('0x50')](_0xbd6f('0x6'));return this[_0xbd6f('0x121')][_0xbd6f('0x85')]({'channelId':_0xfe49eb,'revisionId':_0x55ca37['id']})[_0xbd6f('0xae')](_0x3a9797=>{_0x55ca37['_update']({'diffData':_0x3a9797[_0xbd6f('0x118')]},!0x0);});}}[_0xbd6f('0xc9')](){this[_0xbd6f('0xbb')]=null,this[_0xbd6f('0x93')](),this[_0xbd6f('0x5d')]&&this[_0xbd6f('0x5d')][_0xbd6f('0x11b')](),this[_0xbd6f('0x5d')]=null,this['_changeIdToChange'][_0xbd6f('0x9f')](),this[_0xbd6f('0x80')]['model'][_0xbd6f('0x114')]({'isUndoable':!0x1},_0x156b10=>{for(const _0x3f323d of this[_0xbd6f('0x80')][_0xbd6f('0xf9')][_0xbd6f('0xd1')][_0xbd6f('0x46')]())_0x156b10[_0xbd6f('0xda')](_0x3f323d);});}[_0xbd6f('0xb5')](_0x169e95){const _0x14b631=[],_0x5eab65=new Map();for(const _0x20fdff of this['editor'][_0xbd6f('0xf9')]['document'][_0xbd6f('0x46')]()){const _0x5e488e=this['editor']['editing'][_0xbd6f('0x12')][_0xbd6f('0xcc')](_0x20fdff);if(!_0x5e488e)continue;const _0x5669f0=_0x5e488e[_0xbd6f('0x1f')]()[_0xbd6f('0x28')](0x0);_0x5669f0&&(_0x14b631[_0xbd6f('0xa0')](_0x20fdff),_0x5eab65['set'](_0x20fdff,_0x5669f0));}return _0x14b631[_0xbd6f('0x98')]((_0xebdb11,_0x4a74e4)=>{const _0x30bc8c=_0x5eab65[_0xbd6f('0x50')](_0xebdb11),_0x4ae817=_0x5eab65[_0xbd6f('0x50')](_0x4a74e4);return _0x30bc8c['y']-_0x4ae817['y']||_0x30bc8c['x']-_0x4ae817['x'];}),(_0x169e95=_0x169e95[_0xbd6f('0x62')](_0x23936f=>_0x14b631[_0xbd6f('0x110')](_0x23936f[_0xbd6f('0xd9')])))[_0xbd6f('0x98')]((_0x590572,_0x29a1b2)=>_0x14b631[_0xbd6f('0x69')](_0x590572[_0xbd6f('0xd9')])-_0x14b631[_0xbd6f('0x69')](_0x29a1b2[_0xbd6f('0xd9')])),_0x169e95;}[_0xbd6f('0x10d')](_0x669ec8){const _0x516d8e=Array['from'](_0x669ec8['markers'])['filter'](([_0x31ef15,_0x314627])=>_0x31ef15['startsWith'](_0xbd6f('0x120'))&&!_0x314627[_0xbd6f('0x8d')]),_0x5cf04f=Array['from'](this['editor'][_0xbd6f('0xf9')][_0xbd6f('0xe5')](_0x669ec8)[_0xbd6f('0x7c')]({'singleCharacters':!0x0}));if(0x0!=_0x516d8e[_0xbd6f('0x6b')])for(const _0x23ac29 of _0x5cf04f){const [_0x590bd3,_0x12c98b]=_0x516d8e[0x0],[,_0x569f71,_0x434460]=_0x590bd3[_0xbd6f('0x2d')](':');if(_0x12c98b[_0xbd6f('0x8a')][_0xbd6f('0xd3')](_0x23ac29[_0xbd6f('0x8b')])&&_0x516d8e[_0xbd6f('0x4d')](),(_0x23ac29['previousPosition']['isEqual'](_0x12c98b[_0xbd6f('0xc6')])||_0x23ac29[_0xbd6f('0xf6')][_0xbd6f('0xcb')](_0x12c98b[_0xbd6f('0xc6')]))&&(_0xbd6f('0x40')==_0x569f71?_0x23ac29[_0xbd6f('0xf7')]={'userId':_0x434460}:_0xbd6f('0x74')==_0x569f71&&(_0x23ac29[_0xbd6f('0x97')]={'userId':_0x434460})),0x0==_0x516d8e[_0xbd6f('0x6b')])break;}return _0x5cf04f;}['_refreshStartEndIndex'](_0x1cfcc8){const _0x2db9c9=new Map();for(let _0x35b82d=0x0;_0x35b82d<_0x1cfcc8[_0xbd6f('0x6b')];_0x35b82d++)_0xbd6f('0x47')===_0x1cfcc8[_0x35b82d][_0xbd6f('0x6f')]?(_0x1cfcc8[_0x35b82d][_0xbd6f('0x28')][_0xbd6f('0x52')]=_0x35b82d,_0x1cfcc8[_0x35b82d][_0xbd6f('0x28')][_0xbd6f('0x3a')]=_0x35b82d):('elementStart'===_0x1cfcc8[_0x35b82d][_0xbd6f('0x6f')]?_0x1cfcc8[_0x35b82d]['item'][_0xbd6f('0x52')]=_0x35b82d:'elementEnd'===_0x1cfcc8[_0x35b82d]['type']&&(_0x1cfcc8[_0x35b82d]['item'][_0xbd6f('0x3a')]=_0x35b82d),_0x2db9c9[_0xbd6f('0x21')](_0x1cfcc8[_0x35b82d]['id'],_0x35b82d));for(const _0x2f4000 of _0x2db9c9[_0xbd6f('0xd8')]())_0xbd6f('0x89')===_0x1cfcc8[_0x2f4000][_0xbd6f('0x6f')]?_0x1cfcc8[_0x2f4000][_0xbd6f('0x28')]['endIndex']=_0x2db9c9[_0xbd6f('0x50')](_0x1cfcc8[_0x2f4000][_0xbd6f('0x4c')]):_0xbd6f('0xe3')===_0x1cfcc8[_0x2f4000][_0xbd6f('0x6f')]&&(_0x1cfcc8[_0x2f4000]['item'][_0xbd6f('0x52')]=_0x2db9c9['get'](_0x1cfcc8[_0x2f4000][_0xbd6f('0x4c')]));}['_processTape'](_0x51b42e){for(let _0x4a1bf2=0x0;_0x4a1bf2<_0x51b42e['length'];_0x4a1bf2++){if(_0xbd6f('0x89')===_0x51b42e[_0x4a1bf2]['type'])_0x51b42e[_0x4a1bf2][_0xbd6f('0x28')][_0xbd6f('0x52')]=_0x4a1bf2;else{if(_0xbd6f('0xe3')===_0x51b42e[_0x4a1bf2][_0xbd6f('0x6f')]){_0x51b42e[_0x4a1bf2][_0xbd6f('0x28')][_0xbd6f('0x3a')]=_0x4a1bf2;const _0x18bcfb=_0x51b42e[_0x4a1bf2][_0xbd6f('0x28')][_0xbd6f('0x52')];_0x51b42e[_0x18bcfb][_0xbd6f('0x4c')]=_0x51b42e[_0x4a1bf2]['id'],_0x51b42e[_0x4a1bf2][_0xbd6f('0x4c')]=_0x51b42e[_0x18bcfb]['id'];}else _0x51b42e[_0x4a1bf2][_0xbd6f('0x28')]['startIndex']=_0x4a1bf2,_0x51b42e[_0x4a1bf2][_0xbd6f('0x28')]['endIndex']=_0x4a1bf2,_0x51b42e[_0x4a1bf2]['pairId']=null;}_0x51b42e[_0x4a1bf2][_0xbd6f('0x90')]||(_0x51b42e[_0x4a1bf2][_0xbd6f('0x90')]=[],_0x51b42e[_0x4a1bf2][_0xbd6f('0xb0')]=[]);}}['_markInsertions'](_0x499a00,_0x38919d){const _0x563257=_0x499a00[_0xbd6f('0x62')](_0x3ff9f5=>!_0x3ff9f5[_0xbd6f('0xf7')]);for(let _0x30769a=0x0;_0x30769a<_0x38919d[_0xbd6f('0x6b')];_0x30769a++)_0x38919d[_0x30769a][_0xbd6f('0xf7')]&&(_0x563257[_0x30769a][_0xbd6f('0xf7')]=_0x38919d[_0x30769a][_0xbd6f('0xf7')]);}['_makeModelFromViewString'](_0x37f92b){const _0x412a63=JSON[_0xbd6f('0x109')](_0x37f92b),_0x3730fc=this['editor'][_0xbd6f('0x60')][_0xbd6f('0x12')][_0xbd6f('0xd1')],_0xe6556e=new _0x1cb40e(_0x3730fc,_0x412a63[_0xbd6f('0xc4')](_0x1b928d=>this[_0xbd6f('0x108')](_0x1b928d)));return this['editor'][_0xbd6f('0x71')][_0xbd6f('0xa6')](_0xe6556e);}[_0xbd6f('0x108')](_0x40986e){const _0x363337=this[_0xbd6f('0x80')]['editing'][_0xbd6f('0x12')][_0xbd6f('0xd1')];if(_0xbd6f('0x10a')==typeof _0x40986e)return new _0x12d4b3(_0x363337,_0x40986e);{const _0x3103ed=_0x40986e[_0xbd6f('0xbc')][_0xbd6f('0xc4')](_0x269155=>this[_0xbd6f('0x108')](_0x269155));return new(tt[_0x40986e[(_0xbd6f('0x6f'))]]||_0x108d6d)(_0x363337,_0x40986e[_0xbd6f('0xf4')],_0x40986e['attributes'],_0x3103ed);}}[_0xbd6f('0xe1')](_0x2b83dc,_0x5a6430=null){const _0x3c8db4=this[_0xbd6f('0xd')][_0xbd6f('0x85')](_0x2b83dc),_0x650bee=_0x5a6430?this[_0xbd6f('0xd')][_0xbd6f('0x85')](_0x5a6430):null,_0x6c86fc=this['_getRevisionsRange'](_0x3c8db4,_0x650bee),_0x3fff1d=_0x6c86fc[_0x6c86fc[_0xbd6f('0x6b')]-0x1],_0x400a7e=new Map(),_0x4f75a1={'model':{},'attributes':{},'changes':[]},_0x369501=new Set(),_0x2635d1=new Map();for(let _0x1ceb70=_0x6c86fc[_0xbd6f('0x6b')]-0x1;_0x1ceb70>=0x0;_0x1ceb70--){const _0x539587=_0x6c86fc[_0x1ceb70];for(const _0x3cac80 of Object[_0xbd6f('0xe7')](_0x539587[_0xbd6f('0x118')]))if(_0x539587['diffData'][_0x3cac80][_0xbd6f('0x48')]){const _0x1bfbd4=_0x539587[_0xbd6f('0x118')][_0x3cac80]['attachChange'];_0x1bfbd4[_0xbd6f('0x2')]?(_0x369501[_0xbd6f('0x83')](_0x3cac80),_0x2635d1[_0xbd6f('0xce')](_0x3cac80)&&_0x2635d1[_0xbd6f('0x50')](_0x3cac80)[_0xbd6f('0xc')]==_0x1bfbd4[_0xbd6f('0xc')]?_0x2635d1['delete'](_0x3cac80):_0x2635d1[_0xbd6f('0x21')](_0x3cac80,_0x1bfbd4)):_0x2635d1[_0xbd6f('0xce')](_0x3cac80)?(_0x369501[_0xbd6f('0x1b')](_0x3cac80),_0x2635d1[_0xbd6f('0x1b')](_0x3cac80)):(_0x369501[_0xbd6f('0x83')](_0x3cac80),_0x2635d1[_0xbd6f('0x21')](_0x3cac80,_0x1bfbd4));}else _0x369501[_0xbd6f('0x83')](_0x3cac80);}for(const _0x2ca82d of _0x369501){const _0x2f4a7a=_0x2635d1[_0xbd6f('0xce')](_0x2ca82d)&&!_0x2635d1[_0xbd6f('0x50')](_0x2ca82d)['isAttached'];let _0x2a5cbd=_0x2f4a7a?_0x6c86fc[_0xbd6f('0x6b')]-0x1:0x0;const _0x2db72b=_0x2f4a7a?-0x1:0x1;for(;_0x6c86fc[_0x2a5cbd];){const _0x3eb2d1=_0x6c86fc[_0x2a5cbd];if(_0x3eb2d1[_0xbd6f('0x118')][_0x2ca82d]){const _0x152dd3=_0x2f4a7a?_0x3eb2d1['diffData'][_0x2ca82d]['attributesBefore']:_0x3eb2d1['diffData'][_0x2ca82d][_0xbd6f('0xd4')];_0x4f75a1['attributes'][_0x2ca82d]=_0x152dd3?_0x134e14(_0x152dd3):{};break;}_0x2a5cbd+=_0x2db72b;}}for(const _0x31dc8a of _0x6c86fc){_0x31dc8a[_0xbd6f('0xf9')]={};for(const _0x593117 of _0x31dc8a[_0xbd6f('0x0')])_0x400a7e[_0xbd6f('0x21')](_0x593117['id'],_0x593117);for(const _0x160bc2 of _0x369501){const _0x542b99=_0x31dc8a[_0xbd6f('0x118')][_0x160bc2]?_0x31dc8a['diffData'][_0x160bc2][_0xbd6f('0x8c')]:'[]',_0x22a7c7=_0x31dc8a['diffData'][_0x160bc2]?_0x31dc8a[_0xbd6f('0x118')][_0x160bc2]['deletions']:'[]';_0x31dc8a[_0xbd6f('0xf9')][_0x160bc2]={'insertions':this[_0xbd6f('0x42')](_0x542b99),'deletions':this[_0xbd6f('0x42')](_0x22a7c7)};}}for(const _0x52a74c of _0x369501){let _0x45b8ac=null,_0x4ca228=0x0;const _0x59f4d5=new Map(Array[_0xbd6f('0x27')](_0x3c8db4[_0xbd6f('0xf9')][_0x52a74c]['insertions'][_0xbd6f('0xfd')])['filter'](([_0x2ef953])=>!_0x2ef953[_0xbd6f('0x106')](_0xbd6f('0x120'))));let _0x3666a1=0x0;for(const _0x336008 of _0x6c86fc){const _0x11d9b7=this[_0xbd6f('0x10d')](_0x336008[_0xbd6f('0xf9')][_0x52a74c]['insertions']);_0x336008==_0x3c8db4?(_0x45b8ac=_0x11d9b7,_0x4ca228=_0x45b8ac[_0xbd6f('0x6b')],_0x45b8ac[_0xbd6f('0x2a')](_0x5e6e5b=>{_0x5e6e5b['id']=_0x3666a1++;}),this[_0xbd6f('0x26')](_0x45b8ac)):this[_0xbd6f('0x30')](_0x45b8ac,_0x11d9b7);const _0x1f2125=_0x45b8ac[_0xbd6f('0x62')](_0xd38de3=>!_0xd38de3[_0xbd6f('0xf7')])[_0xbd6f('0xc4')](_0x319f65=>_0x319f65['id']);let _0x27977b=0x0;const _0x1b98fc=this[_0xbd6f('0x10d')](_0x336008[_0xbd6f('0xf9')][_0x52a74c][_0xbd6f('0xaf')]);_0x1b98fc[_0xbd6f('0x2a')](_0x53e85e=>{_0x53e85e['isRemoved']?_0x53e85e['id']=_0x4ca228++:_0x53e85e['id']=_0x1f2125[_0x27977b++];}),this[_0xbd6f('0x26')](_0x1b98fc),this[_0xbd6f('0x63')](_0x45b8ac,'isAdded'),this[_0xbd6f('0x63')](_0x1b98fc,'isRemoved'),_0x336008==_0x3c8db4&&this[_0xbd6f('0xb2')](_0x45b8ac,_0x59f4d5),_0x45b8ac=this[_0xbd6f('0x87')](_0x45b8ac,_0x1b98fc),this['_refreshStartEndIndex'](_0x45b8ac),this[_0xbd6f('0x63')](_0x45b8ac,_0xbd6f('0x97'));}_0x45b8ac=_0x45b8ac[_0xbd6f('0x62')](_0x209cf2=>!(_0x209cf2[_0xbd6f('0xf7')]&&_0x209cf2[_0xbd6f('0x97')]));const _0x5c8450=new Map(_0x3fff1d['model'][_0x52a74c][_0xbd6f('0xaf')][_0xbd6f('0xfd')]),_0x47867c=new Set(_0x59f4d5[_0xbd6f('0xe7')]());for(const _0x42dc52 of _0x5c8450[_0xbd6f('0xe7')]())_0x47867c['delete'](_0x42dc52);this['_markSuggestions'](_0x45b8ac,_0x47867c),this[_0xbd6f('0x6d')](_0x45b8ac),_0x45b8ac=this[_0xbd6f('0x105')](_0x45b8ac),_0x45b8ac=this['_markMismatchedRemovedTags'](_0x45b8ac),_0x45b8ac=this[_0xbd6f('0x37')](_0x45b8ac);const {root:_0x32d9f2,changes:_0x32468d}=this[_0xbd6f('0x3b')](_0x45b8ac,_0x400a7e,_0x52a74c);_0x4f75a1[_0xbd6f('0xf9')][_0x52a74c]=_0x32d9f2;const _0x4ffd6b=_0x2635d1['get'](_0x52a74c);if(_0x4ffd6b){const _0x32c928=_0x400a7e[_0xbd6f('0x50')](_0x4ffd6b[_0xbd6f('0xc')]),_0xd6f528=new _0x23f678({'author':_0x32c928,'type':_0x4ffd6b['isAttached']?'add':_0xbd6f('0x32'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x52a74c});_0x32468d[_0xbd6f('0x15')](_0xd6f528),_0x4f75a1[_0xbd6f('0x84')][_0x52a74c][_0xbd6f('0xb7')]=_0xd6f528['id'];}_0x4f75a1[_0xbd6f('0xe2')]=_0x4f75a1[_0xbd6f('0xe2')][_0xbd6f('0x7e')](_0x32468d);}return _0x4f75a1;}[_0xbd6f('0xb2')](_0x1f3f58,_0x35352d){for(let _0x1df743=0x0;_0x1df743<_0x1f3f58[_0xbd6f('0x6b')];_0x1df743++)for(const [_0x18db19,_0x110526]of _0x35352d)_0x110526[_0xbd6f('0xc6')][_0xbd6f('0xd3')](_0x1f3f58[_0x1df743]['previousPosition'])&&_0x1f3f58[_0x1df743]['markersStart'][_0xbd6f('0xa0')](_0x18db19),_0x110526['end'][_0xbd6f('0xd3')](_0x1f3f58[_0x1df743][_0xbd6f('0x8b')])&&_0x1f3f58[_0x1df743]['markersEnd'][_0xbd6f('0xa0')](_0x18db19);}[_0xbd6f('0x87')](_0x4997ac,_0x5c8d68){let _0x7e89f9=[],_0x57a1bb=0x0,_0x1152f8=0x0;for(;_0x57a1bb<_0x4997ac[_0xbd6f('0x6b')]||_0x1152f8<_0x5c8d68[_0xbd6f('0x6b')];){const _0x41f675=_0x4997ac[_0x57a1bb]||{},_0x59b405=_0x5c8d68[_0x1152f8]||{};if(_0x41f675['id']==_0x59b405['id'])_0x57a1bb++,_0x1152f8++,_0x7e89f9[_0xbd6f('0xa0')](_0x41f675);else{if(_0x59b405['isRemoved']&&_0x41f675['isAdded']){const {commonTape:_0x58d7c4,iEnd:_0x4669fa,jEnd:_0x1bed8e}=this[_0xbd6f('0xaa')](_0x4997ac,_0x57a1bb,_0x5c8d68,_0x1152f8);_0x7e89f9=_0x7e89f9['concat'](_0x58d7c4),_0x57a1bb=_0x4669fa,_0x1152f8=_0x1bed8e;}else _0x59b405[_0xbd6f('0x97')]?(_0x1152f8++,_0x7e89f9[_0xbd6f('0xa0')](_0x59b405)):(_0x57a1bb++,_0x7e89f9['push'](_0x41f675));}}return _0x7e89f9;}[_0xbd6f('0x102')](_0x37d5de,_0x44323e){const _0x530799=[];for(let _0x4b2c42=0x0;_0x4b2c42<_0x37d5de['length'];_0x4b2c42++){for(let _0x5ca0b7=0x0;_0x5ca0b7<_0x37d5de[_0x4b2c42][_0xbd6f('0x90')][_0xbd6f('0x6b')];_0x5ca0b7++){const _0x1cd628=_0x37d5de[_0x4b2c42][_0xbd6f('0x90')][_0x5ca0b7];if(!_0x44323e['has'](_0x1cd628))continue;const {group:_0x2fa6ae,type:_0x3d0915,authorId:_0x48278f}=_0x15fb82(_0x1cd628);'revision-suggestion'!=_0x2fa6ae||_0xbd6f('0x40')!=_0x3d0915&&_0xbd6f('0x74')!=_0x3d0915||(_0x530799[_0xbd6f('0x15')]({'type':_0x3d0915,'name':_0x1cd628,'userId':_0x48278f}),_0x37d5de[_0x4b2c42][_0xbd6f('0x90')]['splice'](_0x5ca0b7,0x1),_0x5ca0b7--);}_0x28f7b3(_0x37d5de[_0x4b2c42]);for(let _0x150e44=0x0;_0x150e44<_0x37d5de[_0x4b2c42][_0xbd6f('0xb0')]['length'];_0x150e44++){const _0x4955a5=_0x37d5de[_0x4b2c42][_0xbd6f('0xb0')][_0x150e44];if(!_0x44323e[_0xbd6f('0xce')](_0x4955a5))continue;const {group:_0x216d7a,type:_0x9417d4}=_0x15fb82(_0x4955a5);if(_0xbd6f('0xa1')!=_0x216d7a||_0xbd6f('0x40')!=_0x9417d4&&_0xbd6f('0x74')!=_0x9417d4)continue;_0x37d5de[_0x4b2c42][_0xbd6f('0xb0')][_0xbd6f('0x9')](_0x150e44,0x1),_0x150e44--;const _0x137ac2=_0x530799[_0xbd6f('0xef')](_0x622ad1=>_0x622ad1['name']==_0x4955a5);_0x137ac2>-0x1&&_0x530799[_0xbd6f('0x9')](_0x137ac2,0x1);}}function _0x15fb82(_0x189bc2){const _0x1987d0=_0x189bc2[_0xbd6f('0x2d')](':');return{'group':_0x1987d0[0x0],'type':_0x1987d0[0x1],'subType':_0x1987d0[_0xbd6f('0x6b')]>=0x5?_0x1987d0[0x2]:null,'id':_0x1987d0[_0xbd6f('0x6b')]<0x5?_0x1987d0[0x2]:_0x1987d0[0x3],'authorId':_0x1987d0[_0xbd6f('0x6b')]<0x5?_0x1987d0[0x3]:_0x1987d0[0x4],'markerCount':0x6==_0x1987d0[_0xbd6f('0x6b')]?_0x1987d0[0x5]:null};}function _0x28f7b3(_0x201bec){for(let _0x3b3f35=0x0;_0x3b3f35<_0x530799['length'];_0x3b3f35++){if(_0x201bec['isAdded']&&'insertion'==_0x530799[_0x3b3f35][_0xbd6f('0x6f')])return _0x201bec[_0xbd6f('0xeb')]=_0x530799[_0x3b3f35],void delete _0x201bec[_0xbd6f('0xf7')];if(!_0x201bec['isAdded']&&!_0x201bec[_0xbd6f('0x97')]&&_0xbd6f('0x74')==_0x530799[_0x3b3f35][_0xbd6f('0x6f')])return void(_0x201bec[_0xbd6f('0x1c')]=_0x530799[_0x3b3f35]);}}}['_setDistance'](_0x36c8ab,_0x299352){let _0x1063fb=0x0,_0x21ba6c=!0x1;const _0x230948=new Map();for(const _0x1a6054 of _0x36c8ab)_0x1a6054[_0x299352]?_0x21ba6c&&(_0x1063fb++,_0x21ba6c=!0x1):(_0x1063fb++,_0x21ba6c=!0x0),_0x230948[_0xbd6f('0x21')](_0x1a6054['id'],_0x1063fb);for(let _0x4454cc=0x0;_0x4454cc<_0x36c8ab[_0xbd6f('0x6b')];_0x4454cc++){if(_0xbd6f('0x97')==_0x299352&&_0x36c8ab[_0x4454cc]['isAdded']||'isAdded'==_0x299352&&_0x36c8ab[_0x4454cc][_0xbd6f('0x97')])continue;if('text'==_0x36c8ab[_0x4454cc][_0xbd6f('0x6f')]){_0x36c8ab[_0x4454cc]['distance']=0x0;continue;}const _0x3473fb=_0x230948[_0xbd6f('0x50')](_0x36c8ab[_0x4454cc][_0xbd6f('0x4c')]),_0x2eb1b3=_0x230948['get'](_0x36c8ab[_0x4454cc]['id']);_0x36c8ab[_0x4454cc][_0xbd6f('0x36')]=_0x3473fb-_0x2eb1b3;}}[_0xbd6f('0x24')](_0x302170,_0x360cb9,_0x227216=!0x1){const _0x3e0774=[];let _0x21484d=this[_0xbd6f('0xd')][_0xbd6f('0x7f')](_0x302170),_0x344a2c=this['repository'][_0xbd6f('0x7f')](_0x360cb9);for(-0x1==_0x344a2c&&(_0x344a2c=this[_0xbd6f('0xd')][_0xbd6f('0x79')][_0xbd6f('0x6b')],_0x227216=!0x1);_0x21484d<_0x344a2c;)_0x3e0774[_0xbd6f('0xa0')](this[_0xbd6f('0xd')][_0xbd6f('0x85')](_0x21484d)),_0x21484d++;return _0x227216&&_0x3e0774['push'](this[_0xbd6f('0xd')][_0xbd6f('0x85')](_0x21484d)),_0x3e0774;}['_threeWayMerge'](_0x427756,_0x33a682,_0x297eb7,_0x233d35){const _0x98b113=this[_0xbd6f('0x80')]['model']['schema'];let _0x53f941=_0x33a682;for(;_0x427756[_0x53f941]&&_0x427756[_0x53f941][_0xbd6f('0xf7')];)_0x53f941++;let _0x290afc=_0x233d35;for(;_0x297eb7[_0x290afc]&&_0x297eb7[_0x290afc][_0xbd6f('0x97')];)_0x290afc++;_0x2e6422(_0x427756,_0x33a682,_0x53f941),_0x2e6422(_0x297eb7,_0x233d35,_0x290afc);const _0x5838ad=_0x297eb7[_0xbd6f('0xa9')](_0x233d35,_0x290afc)['concat'](_0x427756[_0xbd6f('0xa9')](_0x33a682,_0x53f941));return _0x5838ad[_0xbd6f('0x98')]((_0x5cd497,_0x46dfd0)=>_0x5cd497[_0xbd6f('0xb3')]!=_0x46dfd0['side']?_0x5cd497[_0xbd6f('0xb3')]-_0x46dfd0['side']:_0x5cd497[_0xbd6f('0xea')]!=_0x46dfd0[_0xbd6f('0xea')]?_0x5cd497[_0xbd6f('0xea')]-_0x46dfd0[_0xbd6f('0xea')]:_0x5cd497[_0xbd6f('0x36')]!=_0x46dfd0[_0xbd6f('0x36')]?_0x46dfd0[_0xbd6f('0x36')]-_0x5cd497[_0xbd6f('0x36')]:!!_0x5cd497['isAdded']!=!!_0x46dfd0['isAdded']?-0x1==_0x5cd497[_0xbd6f('0xb3')]||0x0==_0x5cd497[_0xbd6f('0xb3')]?_0x5cd497['isAdded']?-0x1:0x1:_0x5cd497['isAdded']?0x1:-0x1:_0x5cd497[_0xbd6f('0x125')]-_0x46dfd0[_0xbd6f('0x125')]),{'commonTape':_0x5838ad,'iEnd':_0x53f941,'jEnd':_0x290afc};function _0x2e6422(_0x562b6e,_0x48fbb6,_0x501e32){let _0x993c0f=-0x1,_0x56a8e9=Number['POSITIVE_INFINITY'],_0x1074ea=!0x0;for(let _0x327100=_0x48fbb6;_0x327100<_0x501e32;_0x327100++)if(_0x98b113[_0xbd6f('0xf')](_0x562b6e[_0x327100]['item'])||(_0x1074ea=!0x1),_0x562b6e[_0x327100][_0xbd6f('0x28')]['startIndex']<_0x48fbb6&&(_0x993c0f=_0x327100),_0x562b6e[_0x327100][_0xbd6f('0x28')]['endIndex']>=_0x501e32){_0x56a8e9=_0x327100;break;}_0x1074ea&&(_0x993c0f=_0x501e32-0x1);for(let _0xfea12=_0x48fbb6;_0xfea12<_0x501e32;_0xfea12++)_0x562b6e[_0xfea12][_0xbd6f('0xb3')]=_0xfea12<=_0x993c0f?-0x1:_0xfea12<_0x56a8e9?0x0:0x1,_0x562b6e[_0xfea12][_0xbd6f('0x125')]=_0xfea12;let _0x4af50d=0x0;for(let _0x18ac07=_0x48fbb6;_0x18ac07<=_0x993c0f;_0x18ac07++)0x0==_0x562b6e[_0x18ac07]['distance']?_0x562b6e[_0x18ac07][_0xbd6f('0xea')]=_0x4af50d:(_0x4af50d++,_0x562b6e[_0x18ac07][_0xbd6f('0xea')]=_0x4af50d,_0x4af50d++);for(let _0x59b207=_0x48fbb6;_0x59b207<_0x501e32;_0x59b207++)0x0==_0x562b6e[_0x59b207]['side']&&(_0x562b6e[_0x59b207][_0xbd6f('0xea')]=_0x4af50d);_0x4af50d=0x0;for(let _0x44fb12=_0x501e32-0x1;_0x44fb12>=_0x56a8e9;_0x44fb12--)0x0==_0x562b6e[_0x44fb12][_0xbd6f('0x36')]?_0x562b6e[_0x44fb12][_0xbd6f('0xea')]=_0x4af50d:(_0x4af50d--,_0x562b6e[_0x44fb12]['level']=_0x4af50d,_0x4af50d--);}}[_0xbd6f('0x6d')](_0x2ddc56){const _0x10ae1a=new Map(),_0xf86b2f=this['editor'][_0xbd6f('0xf9')][_0xbd6f('0x5f')];for(let _0x5431dc=0x1;_0x5431dc<_0x2ddc56['length'];_0x5431dc++){let _0x5deb43,_0x4a230c,_0x189cdd;const _0x3812f6=_0x2ddc56[_0x5431dc],_0x18571d=_0x2ddc56[_0x5431dc-0x1];if('text'==_0x3812f6[_0xbd6f('0x6f')])continue;if(_0x3812f6['type']!=_0x18571d['type'])continue;if(!_0xf86b2f[_0xbd6f('0xcf')](_0x18571d[_0xbd6f('0x28')])||_0xf86b2f[_0xbd6f('0xd5')](_0x18571d[_0xbd6f('0x28')]))continue;if(!_0xf86b2f[_0xbd6f('0xcf')](_0x3812f6[_0xbd6f('0x28')])||_0xf86b2f[_0xbd6f('0xd5')](_0x3812f6[_0xbd6f('0x28')]))continue;if((_0x2ddc56[_0x5431dc][_0xbd6f('0xf7')]||_0x2ddc56[_0x5431dc][_0xbd6f('0xeb')])&&_0x2ddc56[_0x5431dc-0x1][_0xbd6f('0x97')])_0x5deb43=_0x2ddc56[_0x5431dc],_0x4a230c=_0x2ddc56[_0x5431dc-0x1],_0x189cdd=_0x5431dc-0x1;else{if(!_0x2ddc56[_0x5431dc][_0xbd6f('0x97')]||!_0x2ddc56[_0x5431dc-0x1][_0xbd6f('0xf7')]&&!_0x2ddc56[_0x5431dc-0x1][_0xbd6f('0xeb')])continue;_0x5deb43=_0x2ddc56[_0x5431dc-0x1],_0x4a230c=_0x2ddc56[_0x5431dc],_0x189cdd=_0x5431dc;}const _0x58eabf=_0x5deb43[_0xbd6f('0xea')]==_0x4a230c[_0xbd6f('0xea')],_0x3bce71=Math[_0xbd6f('0xe8')](_0x5deb43[_0xbd6f('0xea')])<Math[_0xbd6f('0xe8')](_0x4a230c[_0xbd6f('0xea')])&&0x0==_0x4a230c[_0xbd6f('0x36')];(_0x58eabf||_0x3bce71)&&(_0x10ae1a[_0xbd6f('0x21')](_0x4a230c['id'],_0x5deb43['id']),_0x2ddc56[_0xbd6f('0x9')](_0x189cdd,0x1),_0x5431dc--,_0x5deb43[_0xbd6f('0xf7')]=!0x1);}for(let _0x149fb6=0x0;_0x149fb6<_0x2ddc56[_0xbd6f('0x6b')];_0x149fb6++)_0x10ae1a['has'](_0x2ddc56[_0x149fb6][_0xbd6f('0x4c')])&&(_0x2ddc56[_0x149fb6][_0xbd6f('0x4c')]=_0x10ae1a[_0xbd6f('0x50')](_0x2ddc56[_0x149fb6][_0xbd6f('0x4c')]));}[_0xbd6f('0x105')](_0x5cbf9e){const _0x3e2a9e=new Set(_0x5cbf9e[_0xbd6f('0xc4')](_0x1020ec=>_0x1020ec['id']));for(let _0x2ab9a8=0x0;_0x2ab9a8<_0x5cbf9e[_0xbd6f('0x6b')];_0x2ab9a8++)_0x3e2a9e['has'](_0x5cbf9e[_0x2ab9a8][_0xbd6f('0x4c')])||0x0==_0x5cbf9e[_0x2ab9a8][_0xbd6f('0x36')]||(_0x5cbf9e[_0x2ab9a8]['isIncorrect']=!0x0);return _0x5cbf9e[_0xbd6f('0x62')](_0x340972=>!_0x340972[_0xbd6f('0xa2')]);}[_0xbd6f('0x100')](_0x241dad){const _0x1d052b=new Set();for(let _0x3bf86a=0x0;_0x3bf86a<_0x241dad['length'];_0x3bf86a++){if(_0x1d052b['has'](_0x241dad[_0x3bf86a]['id'])&&_0x241dad[_0x3bf86a][_0xbd6f('0x97')]&&(_0x241dad[_0x3bf86a][_0xbd6f('0xa2')]=!0x0),_0x241dad[_0x3bf86a][_0xbd6f('0xa2')])continue;if(0x0==_0x241dad[_0x3bf86a][_0xbd6f('0x36')])continue;if(_0xbd6f('0x89')!=_0x241dad[_0x3bf86a][_0xbd6f('0x6f')])continue;if(null==_0x241dad[_0x3bf86a][_0xbd6f('0x4c')])continue;let _0x533e64=_0x3bf86a+0x1,_0x1f0566=0x0;for(;_0x241dad[_0x533e64]['id']!=_0x241dad[_0x3bf86a][_0xbd6f('0x4c')];)_0xbd6f('0x89')==_0x241dad[_0x533e64][_0xbd6f('0x6f')]?_0x1f0566++:_0xbd6f('0xe3')==_0x241dad[_0x533e64][_0xbd6f('0x6f')]&&_0x1f0566--,_0x533e64++;if(0x0!=_0x1f0566){if(_0x241dad[_0x3bf86a]['isRemoved'])_0x241dad[_0x3bf86a][_0xbd6f('0xa2')]=!0x0;else for(;_0x533e64!=_0x3bf86a;)_0x241dad[_0x533e64][_0xbd6f('0x97')]&&0x0!=_0x241dad[_0x533e64][_0xbd6f('0x36')]&&(_0x241dad[_0x533e64]['isIncorrect']=!0x0,_0x1d052b['add'](_0x241dad[_0x533e64][_0xbd6f('0x4c')])),_0x533e64--;}}return _0x241dad['filter'](_0x176bdb=>!_0x176bdb[_0xbd6f('0xa2')]);}[_0xbd6f('0x37')](_0x3149b5){const _0x7e92b1=this['editor'][_0xbd6f('0xf9')][_0xbd6f('0x5f')];for(let _0x1901d4=0x0;_0x1901d4<_0x3149b5['length'];_0x1901d4++){if(!(_0x3149b5[_0x1901d4][_0xbd6f('0xf7')]||_0x3149b5[_0x1901d4][_0xbd6f('0xeb')]||_0x3149b5[_0x1901d4][_0xbd6f('0x97')]||_0x3149b5[_0x1901d4][_0xbd6f('0x1c')]))continue;if(0x0==_0x3149b5[_0x1901d4][_0xbd6f('0x36')])continue;const _0x56b55f=_0x3149b5[_0x1901d4][_0xbd6f('0x28')];_0x7e92b1[_0xbd6f('0xcf')](_0x56b55f)||_0x7e92b1['isLimit'](_0x56b55f)||(_0x3149b5[_0x1901d4][_0xbd6f('0xf7')]&&delete _0x3149b5[_0x1901d4][_0xbd6f('0xf7')],_0x3149b5[_0x1901d4][_0xbd6f('0xeb')]&&delete _0x3149b5[_0x1901d4][_0xbd6f('0xeb')],_0x3149b5[_0x1901d4][_0xbd6f('0x1c')]&&delete _0x3149b5[_0x1901d4][_0xbd6f('0x1c')],_0x3149b5[_0x1901d4]['isRemoved']&&(_0x3149b5[_0x1901d4]['isIncorrect']=!0x0));}return _0x3149b5[_0xbd6f('0x62')](_0x4ab3fb=>!_0x4ab3fb[_0xbd6f('0xa2')]);}[_0xbd6f('0x3b')](_0x24f758,_0x44e80c,_0x5d89a8){const _0x28a9ae=new _0x42903b(),_0x32921d=[],_0xf58723=new Map(),_0x46a9d3=this['editor']['model'],_0x11b98b=_0x46a9d3['schema'],_0x208659=[_0x28a9ae],_0x3270c1={},_0x4066c8={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x20516a=null;const _0x58cddb=[0x0];for(let _0x2216ce=0x0;_0x2216ce<_0x24f758['length'];_0x2216ce++){let _0x5e52ee,_0x2b987b;if(_0xbd6f('0x89')===_0x24f758[_0x2216ce][_0xbd6f('0x6f')]){_0x5e52ee=_0x46a9d3[_0xbd6f('0x34')](_0x28a9ae,_0x58cddb);const _0xede918=new _0x9aace8(_0x24f758[_0x2216ce][_0xbd6f('0x28')]['name'],_0x24f758[_0x2216ce][_0xbd6f('0x28')][_0xbd6f('0xee')]());_0x208659[0x0][_0xbd6f('0xf3')](_0xede918),_0x58cddb[_0xbd6f('0xa0')](0x0),_0x208659[_0xbd6f('0x15')](_0xede918),_0x2b987b=_0x46a9d3[_0xbd6f('0x34')](_0x28a9ae,_0x58cddb),_0x20516a=null;}else{if(_0xbd6f('0xe3')===_0x24f758[_0x2216ce][_0xbd6f('0x6f')])_0x208659[_0xbd6f('0x4d')](),_0x5e52ee=_0x46a9d3[_0xbd6f('0x34')](_0x28a9ae,_0x58cddb),_0x58cddb[_0xbd6f('0x20')](),_0x58cddb[_0x58cddb[_0xbd6f('0x6b')]-0x1]++,_0x2b987b=_0x46a9d3[_0xbd6f('0x34')](_0x28a9ae,_0x58cddb),_0x20516a=null;else{if(_0x5e52ee=_0x46a9d3[_0xbd6f('0x34')](_0x28a9ae,_0x58cddb),_0x20516a&&_0x8013ca(_0x20516a,_0x24f758[_0x2216ce][_0xbd6f('0x28')]))_0x20516a[_0xbd6f('0x81')]+=_0x24f758[_0x2216ce][_0xbd6f('0x28')][_0xbd6f('0x71')];else{const _0x1f935b=new _0x6cd589(_0x24f758[_0x2216ce][_0xbd6f('0x28')][_0xbd6f('0x71')],_0x24f758[_0x2216ce][_0xbd6f('0x28')][_0xbd6f('0xee')]());_0x208659[0x0][_0xbd6f('0xf3')](_0x1f935b),_0x20516a=_0x1f935b;}_0x58cddb[_0x58cddb[_0xbd6f('0x6b')]-0x1]+=_0x24f758[_0x2216ce][_0xbd6f('0x28')][_0xbd6f('0x92')],_0x2b987b=_0x46a9d3[_0xbd6f('0x34')](_0x28a9ae,_0x58cddb);}}for(const _0x191843 of _0x24f758[_0x2216ce][_0xbd6f('0x90')])_0xf58723['set'](_0x191843,{'start':_0x5e52ee,'end':null});_0x48a648('isRemoveSuggestion',_0x2216ce,_0x5e52ee,_0x2b987b),_0x48a648('isAddSuggestion',_0x2216ce,_0x5e52ee,_0x2b987b),_0x48a648(_0xbd6f('0x97'),_0x2216ce,_0x5e52ee,_0x2b987b),_0x48a648('isAdded',_0x2216ce,_0x5e52ee,_0x2b987b);for(const _0x479434 of _0x24f758[_0x2216ce][_0xbd6f('0xb0')]){_0xf58723[_0xbd6f('0x50')](_0x479434)[_0xbd6f('0x8a')]=_0x2b987b;}}for(const [_0x1190b6,_0x210ffa]of _0xf58723){const _0x33f9cd=this[_0xbd6f('0x80')][_0xbd6f('0xf9')][_0xbd6f('0x129')](_0x210ffa[_0xbd6f('0xc6')],_0x210ffa[_0xbd6f('0x8a')]);_0x28a9ae['markers'][_0xbd6f('0x21')](_0x1190b6,_0x33f9cd);}return _0x32921d['sort']((_0xb656f9,_0x19a18b)=>{const _0x5f2487=_0x28a9ae[_0xbd6f('0xfd')][_0xbd6f('0x50')](_0xbd6f('0x120')+_0xb656f9['id']),_0x4c0214=_0x28a9ae[_0xbd6f('0xfd')][_0xbd6f('0x50')](_0xbd6f('0x120')+_0x19a18b['id']);return _0x5f2487[_0xbd6f('0xc6')][_0xbd6f('0xe4')](_0x4c0214['start'])?-0x1:_0x5f2487['start']['isAfter'](_0x4c0214[_0xbd6f('0xc6')])?0x1:_0x5f2487['end']['isBefore'](_0x4c0214[_0xbd6f('0x8a')])?-0x1:_0x5f2487['end']['isAfter'](_0x4c0214[_0xbd6f('0x8a')])?0x1:_0xbd6f('0x83')===_0xb656f9['type']?-0x1:0x1;}),{'root':_0x28a9ae,'changes':_0x32921d};function _0x48a648(_0x19ba75,_0x491d82,_0x3a992e,_0x34e512){const _0xe7910=!!_0x24f758[_0x491d82][_0x19ba75],_0x5a0242=_0xe7910?_0x24f758[_0x491d82][_0x19ba75][_0xbd6f('0xc')]:null,_0x1f32ef=_0x491d82===_0x24f758[_0xbd6f('0x6b')]-0x1,_0x3f529e=_0x4066c8[_0x19ba75][0x0],_0x45d5f3=_0x11b98b[_0xbd6f('0xc7')](_0x24f758[_0x491d82][_0xbd6f('0x28')]);!_0x3270c1[_0x19ba75]&&_0xe7910?_0x3270c1[_0x19ba75]={'start':_0x3a992e,'tapeItem':_0x24f758[_0x491d82],'userId':_0x5a0242,'type':_0x19ba75}:_0x3270c1[_0x19ba75]&&!_0xe7910?(_0x3270c1[_0x19ba75][_0xbd6f('0x8a')]=_0x3a992e,_0xd37678(_0x3270c1[_0x19ba75]),_0x3270c1[_0x19ba75]=null):_0x3270c1[_0x19ba75]&&_0xe7910&&_0x3270c1[_0x19ba75][_0xbd6f('0xc')]!==_0x5a0242&&(_0x3270c1[_0x19ba75][_0xbd6f('0x8a')]=_0x3a992e,_0x3f529e&&_0x3f529e[_0xbd6f('0xc')]===_0x3270c1[_0x19ba75]['userId']||_0xd37678(_0x3270c1[_0x19ba75]),_0x3270c1[_0x19ba75]={'start':_0x3a992e,'tapeItem':_0x24f758[_0x491d82],'userId':_0x5a0242,'type':_0x19ba75}),_0x3270c1[_0x19ba75]&&_0x45d5f3&&(_0xbd6f('0x89')!==_0x24f758[_0x491d82][_0xbd6f('0x6f')]||_0x3f529e&&_0x3f529e['userId']===_0x5a0242||_0x4066c8[_0x19ba75][_0xbd6f('0x15')]({'userId':_0x5a0242,'object':_0x24f758[_0x491d82][_0xbd6f('0x28')],'change':_0x3270c1[_0x19ba75]}),_0xbd6f('0xe3')===_0x24f758[_0x491d82][_0xbd6f('0x6f')]&&_0x3f529e&&_0x3f529e[_0xbd6f('0xab')]===_0x24f758[_0x491d82][_0xbd6f('0x28')]&&(_0x4066c8[_0x19ba75][_0xbd6f('0x4d')](),_0x3270c1[_0x19ba75]=_0x3f529e[_0xbd6f('0x17')])),_0x3270c1[_0x19ba75]&&_0x1f32ef&&(_0x3270c1[_0x19ba75][_0xbd6f('0x8a')]=_0x34e512,_0xd37678(_0x3270c1[_0x19ba75]),_0x3270c1[_0x19ba75]=null);}function _0xd37678({start:_0x26ae04,end:_0x1169f5,tapeItem:_0x36b377,userId:_0x2f5cd2,type:_0x3fd5b9}){const _0x4a3011=_0x36b377['item'],_0x45a2d0=_0x46a9d3[_0xbd6f('0x5f')]['isBlock'](_0x4a3011)&&!_0x46a9d3[_0xbd6f('0x5f')][_0xbd6f('0xd5')](_0x4a3011),_0x484f1c=_0x26ae04[_0xbd6f('0x11f')]==_0x1169f5[_0xbd6f('0xf5')]&&_0x1169f5[_0xbd6f('0xb9')];if(_0x45a2d0&&_0x484f1c)return;const _0x315e25=_0x46a9d3[_0xbd6f('0x129')](_0x26ae04,_0x1169f5),_0x498088=_0x44e80c[_0xbd6f('0x50')](_0x2f5cd2),_0x4cb57f=new _0x23f678({'author':_0x498088,'type':_0xbd6f('0xf7')==_0x3fd5b9||_0xbd6f('0xeb')==_0x3fd5b9?_0xbd6f('0x83'):_0xbd6f('0x32'),'data':{'isSuggestion':'isAddSuggestion'==_0x3fd5b9||_0xbd6f('0x1c')==_0x3fd5b9},'createdAt':new Date(),'rootName':_0x5d89a8});_0x32921d[_0xbd6f('0xa0')](_0x4cb57f),_0x28a9ae['markers'][_0xbd6f('0x21')]('revision:'+_0x4cb57f['id'],_0x315e25);}function _0x8013ca(_0x25208e,_0x10bedb){const _0x1b8051=_0x25208e['getAttributes'](),_0x52a9eb=_0x10bedb['getAttributes']();for(const _0x3391c3 of _0x1b8051){if(_0x3391c3[0x1]!==_0x10bedb[_0xbd6f('0x49')](_0x3391c3[0x0]))return!0x1;_0x52a9eb[_0xbd6f('0x116')]();}return _0x52a9eb['next']()['done'];}}[_0xbd6f('0x124')](){this[_0xbd6f('0x80')][_0xbd6f('0xd2')][_0xbd6f('0x95')](_0xbd6f('0x45'))[_0xbd6f('0x99')]({'view':_0xbd6f('0x7')}),this[_0xbd6f('0x80')][_0xbd6f('0xd2')][_0xbd6f('0x95')](_0xbd6f('0x11'))[_0xbd6f('0x43')]({'model':'revision','view':_0x5ebc4b=>{const _0xef4d17=_0x5ebc4b[_0xbd6f('0x10c')][_0xbd6f('0x2d')](':')[0x1],_0x28565f=this['_getChangeFromId'](_0xef4d17);if(!_0x28565f)return null;const _0x621b96=_0xbd6f('0x83')==_0x28565f[_0xbd6f('0x6f')]?_0xbd6f('0x40'):'deletion',_0xe0d169=[_0xbd6f('0xad'),'ck-suggestion-marker-'+_0x621b96];return _0x28565f[_0xbd6f('0x71')][_0xbd6f('0x9e')]&&_0xe0d169[_0xbd6f('0xa0')](_0xbd6f('0x6e')+_0x621b96+_0xbd6f('0xb')),this['activeChange']==_0x28565f&&_0xe0d169[_0xbd6f('0xa0')](_0xbd6f('0xed')),{'classes':_0xe0d169,'attributes':{'data-change-id':_0xef4d17}};}}),this[_0xbd6f('0x80')][_0xbd6f('0xd2')][_0xbd6f('0x95')](_0xbd6f('0x45'))['add'](_0x337e60=>{_0x337e60['on'](_0xbd6f('0x3e'),(_0x13bfe4,_0x3faee1,_0x24c9b8)=>{const _0x5c9ed7=_0x3faee1[_0xbd6f('0xa4')]['getChild'](0x0);if(!_0x5c9ed7||!_0x5c9ed7['is'](_0xbd6f('0x23'),'code'))return;if(!_0x24c9b8['consumable'][_0xbd6f('0x33')](_0x5c9ed7,{'attributes':[_0xbd6f('0x113'),'vid_end']}))return;const _0x39c829=_0x3faee1[_0xbd6f('0xb1')]['start']['nodeAfter'];_0x24c9b8[_0xbd6f('0xe9')]['setAttribute'](_0xbd6f('0x113'),_0x5c9ed7[_0xbd6f('0x49')](_0xbd6f('0x113')),_0x39c829),_0x24c9b8['writer'][_0xbd6f('0x29')](_0xbd6f('0x31'),_0x5c9ed7[_0xbd6f('0x49')](_0xbd6f('0x31')),_0x39c829);},{'priority':'low'});}),this[_0xbd6f('0x80')][_0xbd6f('0xd2')][_0xbd6f('0x95')]('upcast')['add'](_0x5879e2=>{_0x5879e2['on']('element',(_0x35960a,_0x4703e6,_0x36e97d)=>{if(!_0x36e97d['consumable'][_0xbd6f('0x33')](_0x4703e6[_0xbd6f('0xa4')],{'attributes':[_0xbd6f('0x113'),_0xbd6f('0x31')]}))return;if(_0x4703e6[_0xbd6f('0xb1')][_0xbd6f('0x8d')])return;const _0xc97750=_0x4703e6[_0xbd6f('0xb1')][_0xbd6f('0xc6')]['nodeAfter'];_0xc97750[_0xbd6f('0x13')]('vid_start')||_0xc97750[_0xbd6f('0x13')](_0xbd6f('0xbd'))||(_0x36e97d[_0xbd6f('0xe9')][_0xbd6f('0x29')](_0xbd6f('0x113'),_0x4703e6[_0xbd6f('0xa4')][_0xbd6f('0x49')](_0xbd6f('0x113')),_0xc97750),_0x36e97d[_0xbd6f('0xe9')][_0xbd6f('0x29')](_0xbd6f('0x31'),_0x4703e6['viewItem'][_0xbd6f('0x49')](_0xbd6f('0x31')),_0xc97750));},{'priority':_0xbd6f('0x3c')});}),this[_0xbd6f('0x80')]['conversion'][_0xbd6f('0x95')](_0xbd6f('0x45'))[_0xbd6f('0xec')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0xbd6f('0xbd'),'value':_0x1a33a8=>_0x1a33a8['getAttribute'](_0xbd6f('0xbd'))}}),this['editor'][_0xbd6f('0xf9')]['schema']['on'](_0xbd6f('0x64'),(_0x12a493,[,_0x1fe179])=>{[_0xbd6f('0x113'),_0xbd6f('0x31'),_0xbd6f('0xbd')][_0xbd6f('0x110')](_0x1fe179)&&(_0x12a493['return']=!0x0,_0x12a493['stop']());},{'priority':_0xbd6f('0x8e')}),this[_0xbd6f('0x80')][_0xbd6f('0xd2')][_0xbd6f('0x95')](_0xbd6f('0x18'))['add'](_0x363d40=>{_0x363d40['on'](_0xbd6f('0xe6'),(_0x5a08a2,_0x3cd605,_0x4fe786)=>{if('\x20'!=_0x3cd605['item']['data']||_0x3cd605[_0xbd6f('0x28')][_0xbd6f('0xf5')]['maxOffset']>0x1)return;if(!_0x4fe786[_0xbd6f('0x1d')][_0xbd6f('0x33')](_0x3cd605[_0xbd6f('0x28')],_0x5a08a2[_0xbd6f('0xf4')]))return;const _0x20ebc1=_0x4fe786[_0xbd6f('0xe9')],_0x1f8db3=_0x4fe786[_0xbd6f('0x67')][_0xbd6f('0xe')](_0x3cd605[_0xbd6f('0xf2')]);_0x20ebc1[_0xbd6f('0xc0')](_0x1f8db3,_0x20ebc1[_0xbd6f('0x41')](_0xbd6f('0xa7')));});}),this[_0xbd6f('0x80')][_0xbd6f('0xd2')]['for'](_0xbd6f('0x18'))[_0xbd6f('0x3d')]({'model':'revision'}),this[_0xbd6f('0x80')][_0xbd6f('0x60')][_0xbd6f('0x53')]['on']('addMarker:revision',function(_0x3c726b){const _0x51d704=_0x3c726b[_0xbd6f('0x111')][_0xbd6f('0x50')]('RevisionViewer');return(_0x5cbd69,_0x4b8a46,_0x547e9c)=>{const _0x14490e=_0x4b8a46[_0xbd6f('0x10c')][_0xbd6f('0x2d')](':')[0x1],_0x163d5e=_0x51d704[_0xbd6f('0xde')](_0x14490e);if(!_0x163d5e)return null;const _0x17580a=_0xbd6f('0x83')==_0x163d5e[_0xbd6f('0x6f')]?_0xbd6f('0x2d'):_0xbd6f('0x4f');if(!_0x547e9c[_0xbd6f('0x1d')][_0xbd6f('0xf8')](_0x4b8a46[_0xbd6f('0x91')],_0x5cbd69[_0xbd6f('0xf4')]))return;const _0x2a522f=_0x4b8a46[_0xbd6f('0x91')][_0xbd6f('0x7c')](),_0xc455=_0x4b8a46['markerRange'][_0xbd6f('0xc6')],_0x595ff0=_0x3c726b['model'][_0xbd6f('0x5f')];let _0x51fb64=null,_0x42b661=null,_0x518483=!0x1,_0x182d29=!0x1;for(const _0x436b83 of _0x2a522f){const _0x2c3261=_0x436b83[_0xbd6f('0x28')];_0x518483=_0x518483||_0x595ff0[_0xbd6f('0xb6')](_0x2c3261);const _0x3adf7c=_0x547e9c[_0xbd6f('0x67')]['toViewElement'](_0x2c3261);if(_0x3adf7c&&_0x3adf7c['getCustomProperty'](_0xbd6f('0x2b')))return;'elementEnd'==_0x436b83[_0xbd6f('0x6f')]&&(_0x595ff0[_0xbd6f('0xcf')](_0x2c3261)&&!_0x595ff0['isLimit'](_0x2c3261)&&(_0x2c3261[_0xbd6f('0x70')]||_0xc455['isAtEnd']?_0x51fb64&&_0x51fb64['parent']==_0x2c3261||(_0x51fb64=_0x2c3261,_0x386b9c(_0x436b83[_0xbd6f('0xf6')]),_0x182d29=!0x0):_0x42b661=_0x42b661||_0x436b83[_0xbd6f('0xf6')]));}function _0x386b9c(_0x1660f9){const _0xba0442=_0x547e9c[_0xbd6f('0xe9')][_0xbd6f('0x7d')](_0xbd6f('0xa7'),{'class':'ck-suggestion-marker-'+_0x17580a}),_0x55c34c=_0x547e9c[_0xbd6f('0x67')]['toViewPosition'](_0x1660f9);_0x163d5e[_0xbd6f('0x71')][_0xbd6f('0x9e')]&&_0x547e9c[_0xbd6f('0xe9')]['addClass'](_0xbd6f('0x6e')+_0x17580a+_0xbd6f('0xb'),_0xba0442),_0x51d704[_0xbd6f('0xbb')]==_0x163d5e&&_0x547e9c[_0xbd6f('0xe9')][_0xbd6f('0xac')](_0xbd6f('0xed'),_0xba0442),_0x547e9c[_0xbd6f('0xe9')]['insert'](_0x55c34c,_0xba0442),_0x547e9c[_0xbd6f('0x67')][_0xbd6f('0x10')](_0xba0442,_0x4b8a46['markerName']);}_0x518483||_0x182d29||!_0x42b661||_0x386b9c(_0x42b661);};}(this[_0xbd6f('0x80')]),{'priority':_0xbd6f('0x7b')}),this[_0xbd6f('0x80')][_0xbd6f('0x60')][_0xbd6f('0x53')]['on'](_0xbd6f('0xf0'),(_0x54beec,_0xbcc9be,_0x5db0b7)=>{const _0x33bf69=_0x5db0b7[_0xbd6f('0x67')][_0xbd6f('0x128')](_0xbcc9be[_0xbd6f('0x10c')]);if(_0x33bf69)for(const _0x498f7f of _0x33bf69)(_0x498f7f[_0xbd6f('0x25')](_0xbd6f('0xc3'))||_0x498f7f[_0xbd6f('0x25')](_0xbd6f('0x73')))&&(_0x5db0b7[_0xbd6f('0x67')][_0xbd6f('0x10e')](_0x498f7f,_0xbcc9be[_0xbd6f('0x10c')]),_0x5db0b7['writer'][_0xbd6f('0x32')](_0x498f7f));},{'priority':_0xbd6f('0x7b')}),this[_0xbd6f('0x80')][_0xbd6f('0x60')]['downcastDispatcher']['on'](_0xbd6f('0x7a'),(_0x185eed,_0x52ff70,_0x594d1e)=>{const _0xcbe39b=_0x52ff70['markerName'][_0xbd6f('0x2d')](':')[0x1],_0x3ee05e=this[_0xbd6f('0xde')](_0xcbe39b);if(!_0x3ee05e)return null;const _0x280526='add'==_0x3ee05e[_0xbd6f('0x6f')]?_0xbd6f('0x2d'):_0xbd6f('0x4f');if(_0x594d1e[_0xbd6f('0x1d')][_0xbd6f('0xf8')](_0x52ff70[_0xbd6f('0x91')],_0x185eed[_0xbd6f('0xf4')]))for(const _0x23e1cd of _0x52ff70[_0xbd6f('0x91')]['getItems']()){if(!_0x23e1cd['is'](_0xbd6f('0x23'),_0xbd6f('0x16')))continue;const _0x45b65b=_0x594d1e[_0xbd6f('0xe9')]['createUIElement'](_0xbd6f('0xa7'),{'class':_0xbd6f('0x6e')+_0x280526}),_0x2e9827=_0x594d1e[_0xbd6f('0x67')]['toViewPosition'](this[_0xbd6f('0x80')]['model']['createPositionBefore'](_0x23e1cd));_0x3ee05e[_0xbd6f('0x71')]['isSuggestion']&&_0x594d1e[_0xbd6f('0xe9')][_0xbd6f('0xac')](_0xbd6f('0x6e')+_0x280526+'-new',_0x45b65b),this[_0xbd6f('0xbb')]==_0x3ee05e&&_0x594d1e['writer'][_0xbd6f('0xac')](_0xbd6f('0xed'),_0x45b65b),_0x594d1e[_0xbd6f('0xe9')]['insert'](_0x2e9827,_0x45b65b),_0x594d1e[_0xbd6f('0x67')][_0xbd6f('0x10')](_0x45b65b,_0x52ff70['markerName']);}},{'priority':_0xbd6f('0x7b')}),this['editor']['model'][_0xbd6f('0xd1')]['on'](_0xbd6f('0x17'),()=>{this['editor'][_0xbd6f('0x60')][_0xbd6f('0x12')][_0xbd6f('0x17')](_0x1f082d=>{for(const _0x3de797 of this['editor'][_0xbd6f('0xf9')]['document']['getRootNames']()){const _0x269053=this[_0xbd6f('0x80')][_0xbd6f('0xf9')]['document'][_0xbd6f('0x4')](_0x3de797),_0x59a893=this[_0xbd6f('0x80')][_0xbd6f('0x60')][_0xbd6f('0x12')][_0xbd6f('0xd1')][_0xbd6f('0x4')](_0x3de797);if(_0x59a893){const _0x3adf08=_0x269053[_0xbd6f('0x49')](_0xbd6f('0xb7'));if(_0x1f082d[_0xbd6f('0x107')](_0xbd6f('0x68'),_0x59a893),_0x1f082d[_0xbd6f('0x3')]('ck-revision-history-root-add',_0x59a893),_0x1f082d[_0xbd6f('0x3')](_0xbd6f('0x101'),_0x59a893),_0x1f082d[_0xbd6f('0x3')](_0xbd6f('0x9b'),_0x59a893),_0x3adf08){const _0x2333d4=this[_0xbd6f('0xde')](_0x3adf08);if(!_0x2333d4)return null;_0x1f082d[_0xbd6f('0x29')](_0xbd6f('0x68'),_0x3adf08,_0x59a893),_0x1f082d[_0xbd6f('0xac')](_0xbd6f('0xca')+_0x2333d4[_0xbd6f('0x6f')],_0x59a893),this['activeChange']==_0x2333d4&&_0x1f082d['addClass'](_0xbd6f('0x9b'),_0x59a893);}}}});}),this[_0xbd6f('0x80')][_0xbd6f('0xd2')][_0xbd6f('0x95')](_0xbd6f('0x45'))['dataToMarker']({'view':_0xbd6f('0x1a'),'model':_0x1b0407=>_0xbd6f('0x19')+_0x1b0407,'converterPriority':_0xbd6f('0x8e')}),this['editor']['conversion']['for'](_0xbd6f('0x45'))[_0xbd6f('0x99')]({'view':'suggestion','model':_0x3acfa4=>_0xbd6f('0x126')+_0x3acfa4,'converterPriority':'highest'}),this['editor']['conversion'][_0xbd6f('0x95')](_0xbd6f('0x18'))[_0xbd6f('0x3d')]({'model':_0xbd6f('0xa1'),'view':_0x2b6d85=>({'name':_0xbd6f('0x38')+_0x2b6d85,'group':_0xbd6f('0xa1')}),'converterPriority':_0xbd6f('0x8e')}),this[_0xbd6f('0x80')][_0xbd6f('0xd2')][_0xbd6f('0x95')](_0xbd6f('0x11'))[_0xbd6f('0x43')]({'model':'revision-suggestion','view':_0x3da01=>{const _0x3e2d36=_0x3da01[_0xbd6f('0x10c')][_0xbd6f('0x2d')](':')[0x1];return _0xbd6f('0x40')!=_0x3e2d36&&_0xbd6f('0x74')!=_0x3e2d36?null:{'classes':[_0xbd6f('0x82'),'ck-suggestion-preview-marker-'+_0x3e2d36]};}}),this[_0xbd6f('0x80')][_0xbd6f('0x60')][_0xbd6f('0x53')]['on'](_0xbd6f('0x10b'),et(this['editor'],'merge'),{'priority':_0xbd6f('0x7b')}),this['editor'][_0xbd6f('0x60')]['downcastDispatcher']['on'](_0xbd6f('0x117'),et(this[_0xbd6f('0x80')],_0xbd6f('0x2d')),{'priority':_0xbd6f('0x7b')}),this[_0xbd6f('0x80')]['editing'][_0xbd6f('0x53')]['on'](_0xbd6f('0x94'),(_0x87bee0,_0x55fb44,_0x5f2473)=>{const _0xab8471=_0x5f2473[_0xbd6f('0x67')][_0xbd6f('0x128')](_0x55fb44[_0xbd6f('0x10c')]);if(_0xab8471)for(const _0x337046 of _0xab8471)_0x337046['is'](_0xbd6f('0x2f'))&&(_0x5f2473[_0xbd6f('0x67')][_0xbd6f('0x10e')](_0x337046,_0x55fb44['markerName']),_0x5f2473[_0xbd6f('0xe9')]['remove'](_0x337046));},{'priority':_0xbd6f('0x7b')});}[_0xbd6f('0xde')](_0x965998){return this[_0xbd6f('0x11e')][_0xbd6f('0x50')](_0x965998);}['_getViewForChange'](_0x2a7a11){return this[_0xbd6f('0x5d')]&&this[_0xbd6f('0x5d')][_0xbd6f('0x11b')](),this[_0xbd6f('0x5d')]=new _0x40e82a(this[_0xbd6f('0x80')][_0xbd6f('0x5')],_0x2a7a11),this['_changeView'];}[_0xbd6f('0x22')](){this['editor']['model'][_0xbd6f('0xd1')][_0xbd6f('0x55')][_0xbd6f('0xff')](_0xbd6f('0x7')),this['on'](_0xbd6f('0xa'),(_0x4ec96e,_0x3d7606,_0x5511d4,_0x51a5cd)=>{_0x51a5cd&&this[_0xbd6f('0x123')]['remove'](_0x51a5cd),_0x5511d4&&(this[_0xbd6f('0x123')]['add']({'view':_0x5511d4,'stackId':_0xbd6f('0xa5'),'position':{'target':()=>{const _0xda0b63=this[_0xbd6f('0x80')][_0xbd6f('0x60')],_0x16950d=this[_0xbd6f('0xde')](_0x5511d4[_0xbd6f('0x115')]);let _0x3a6153;if(_0x16950d[_0xbd6f('0x71')][_0xbd6f('0xd6')]){const _0x1d42ff=_0xda0b63[_0xbd6f('0x12')][_0xbd6f('0xcc')](_0x16950d[_0xbd6f('0xd9')]);_0x3a6153=Array[_0xbd6f('0x27')](_0x1d42ff['getClientRects']());}else{const _0x13bc5b=this[_0xbd6f('0x80')][_0xbd6f('0xf9')][_0xbd6f('0xfd')]['get'](_0xbd6f('0x120')+_0x5511d4['changeId']);_0x3a6153=Array[_0xbd6f('0x27')](_0xda0b63[_0xbd6f('0x67')][_0xbd6f('0x128')](_0x13bc5b[_0xbd6f('0xf4')]))[_0xbd6f('0xc4')](_0x11143b=>_0xda0b63[_0xbd6f('0x12')][_0xbd6f('0xba')][_0xbd6f('0x6c')](_0x11143b))[_0xbd6f('0xc4')](_0x4880e5=>Array[_0xbd6f('0x27')](_0x4880e5[_0xbd6f('0x1f')]()))[_0xbd6f('0x88')]();}if(!this['_activeViewTarget'])return _0x3a6153[0x0];return _0x3a6153['find'](_0x13d06b=>_0x13d06b[_0xbd6f('0x4a')]-0x3<=this[_0xbd6f('0xdc')]['y']&&_0x13d06b[_0xbd6f('0x44')]+0x3>=this['_activeViewTarget']['y']&&_0x13d06b['left']-0x3<=this[_0xbd6f('0xdc')]['x']&&_0x13d06b[_0xbd6f('0x65')]+0x3>=this[_0xbd6f('0xdc')]['x'])||_0x3a6153[0x0];}}}),this['_balloon'][_0xbd6f('0xc2')](_0xbd6f('0xa5')));}),this['on'](_0xbd6f('0x66'),(_0x208cc7,_0x58c9fc,_0x4eeaba,_0x313826)=>{this[_0xbd6f('0xbe')]=_0x4eeaba?this[_0xbd6f('0x9d')](_0x4eeaba):null,this[_0xbd6f('0x80')][_0xbd6f('0xf9')]['change'](()=>{const _0x8d135=this[_0xbd6f('0x80')][_0xbd6f('0x60')];_0x313826&&(_0x313826[_0xbd6f('0x71')][_0xbd6f('0xd6')]?_0x8d135[_0xbd6f('0x12')][_0xbd6f('0x17')](_0x24a72b=>{_0x24a72b['removeClass'](_0xbd6f('0x9b'),_0x8d135[_0xbd6f('0x12')][_0xbd6f('0xd1')]['getRoot'](_0x313826[_0xbd6f('0xd9')]));}):_0x8d135[_0xbd6f('0xd7')](_0xbd6f('0x120')+_0x313826['id'])),_0x4eeaba&&(_0x4eeaba[_0xbd6f('0x71')][_0xbd6f('0xd6')]?_0x8d135['view'][_0xbd6f('0x17')](_0xd89a86=>{_0xd89a86[_0xbd6f('0xac')]('ck-revision-history-root--active',_0x8d135[_0xbd6f('0x12')][_0xbd6f('0xd1')][_0xbd6f('0x4')](_0x4eeaba[_0xbd6f('0xd9')]));}):_0x8d135[_0xbd6f('0xd7')](_0xbd6f('0x120')+_0x4eeaba['id']));});}),this[_0xbd6f('0xa3')](this['editor']['editing'][_0xbd6f('0x12')][_0xbd6f('0xd1')],_0xbd6f('0xb8'),(_0x194d34,_0x40bc18)=>{if(this[_0xbd6f('0xbb')])return;const _0x28896c=this[_0xbd6f('0x4b')](_0x40bc18[_0xbd6f('0x11c')]),_0x48a065=this[_0xbd6f('0x11e')][_0xbd6f('0x50')](_0x28896c);_0x48a065?(this[_0xbd6f('0xdc')]={'x':_0x40bc18[_0xbd6f('0x75')]['x'],'y':_0x40bc18['domEvent']['y']},this[_0xbd6f('0xbe')]=this[_0xbd6f('0x9d')](_0x48a065)):(this[_0xbd6f('0xdc')]=null,this[_0xbd6f('0xbe')]=null);}),this['listenTo'](this[_0xbd6f('0x80')][_0xbd6f('0x60')][_0xbd6f('0x12')][_0xbd6f('0xd1')],_0xbd6f('0x1e'),(_0x1287e1,_0x4448f8)=>{const _0x235f61=this['_findChangeIdFromDomTarget'](_0x4448f8[_0xbd6f('0x11c')]),_0xfc5686=this[_0xbd6f('0x11e')][_0xbd6f('0x50')](_0x235f61);_0xfc5686?(this[_0xbd6f('0xdc')]={'x':_0x4448f8[_0xbd6f('0x75')]['x'],'y':_0x4448f8[_0xbd6f('0x75')]['y']},_0xfc5686===this[_0xbd6f('0xbb')]?this[_0xbd6f('0x123')][_0xbd6f('0xfa')]():this[_0xbd6f('0xbb')]=_0xfc5686):(this[_0xbd6f('0xdc')]=null,this[_0xbd6f('0xbb')]=null);});}[_0xbd6f('0x4b')](_0x3f5151){do{const _0x464bc6=_0x3f5151[_0xbd6f('0x49')](_0xbd6f('0x68'));if(_0x464bc6)return _0x464bc6;_0x3f5151=_0x3f5151[_0xbd6f('0xf5')];}while(_0x3f5151);return null;}['_cleanMarkers'](){this[_0xbd6f('0x80')][_0xbd6f('0xf9')][_0xbd6f('0x17')](_0x22dfcf=>{for(const _0x172d7f of this[_0xbd6f('0x80')][_0xbd6f('0xf9')][_0xbd6f('0xfd')])_0x22dfcf[_0xbd6f('0xb4')](_0x172d7f);});}}function et(_0xe554ff,_0x44a2e6){return(_0x1f6219,_0x5530fc,_0x4b39cf)=>{if(!_0x4b39cf[_0xbd6f('0x1d')][_0xbd6f('0xf8')](_0x5530fc[_0xbd6f('0x91')],_0x1f6219[_0xbd6f('0xf4')]))return;const _0x16cd9f=_0x5530fc[_0xbd6f('0x91')][_0xbd6f('0x7c')](),_0x4d7b93=_0x5530fc['markerRange'][_0xbd6f('0xc6')],_0x6bb0ab=_0xe554ff[_0xbd6f('0xf9')][_0xbd6f('0x5f')];let _0x1c7353=null,_0x4dbf79=null,_0x3ed7bc=!0x1,_0x561609=!0x1;for(const _0x20616a of _0x16cd9f){const _0x4aa9d5=_0x20616a[_0xbd6f('0x28')];_0x3ed7bc=_0x3ed7bc||_0x6bb0ab[_0xbd6f('0xb6')](_0x4aa9d5);const _0x53cd16=_0x4b39cf['mapper'][_0xbd6f('0x59')](_0x4aa9d5);if(_0x53cd16&&_0x53cd16['getCustomProperty'](_0xbd6f('0x2b')))return;_0xbd6f('0xe3')==_0x20616a[_0xbd6f('0x6f')]&&(_0x6bb0ab[_0xbd6f('0xcf')](_0x4aa9d5)&&!_0x6bb0ab[_0xbd6f('0xd5')](_0x4aa9d5)&&(_0x4aa9d5[_0xbd6f('0x70')]||_0x4d7b93[_0xbd6f('0x103')]?_0x1c7353&&_0x1c7353[_0xbd6f('0xf5')]==_0x4aa9d5||(_0x1c7353=_0x4aa9d5,_0x1ff519(_0x20616a[_0xbd6f('0xf6')]),_0x561609=!0x0):_0x4dbf79=_0x4dbf79||_0x20616a[_0xbd6f('0xf6')]));}function _0x1ff519(_0x46c113){const _0x4c4db4=_0x4b39cf[_0xbd6f('0x67')][_0xbd6f('0x127')](_0x46c113),_0x28178b=_0x4b39cf[_0xbd6f('0xe9')]['createUIElement'](_0xbd6f('0xa7'),{'class':_0xbd6f('0x8')+_0x44a2e6});_0x4b39cf[_0xbd6f('0xe9')][_0xbd6f('0x57')](_0x4c4db4,_0x28178b),_0x4b39cf['mapper'][_0xbd6f('0x10')](_0x28178b,_0x5530fc[_0xbd6f('0x10c')]);}_0x3ed7bc||_0x561609||!_0x4dbf79||_0x1ff519(_0x4dbf79);};}export class RestoreRevisionCommand extends _0x189c95{constructor(_0x3b817e){super(_0x3b817e);const _0x1a79a9=_0x3b817e['plugins'][_0xbd6f('0x50')](d);this[_0xbd6f('0x51')]=!0x1,this[_0xbd6f('0xa3')](_0x1a79a9,_0xbd6f('0x112'),()=>this[_0xbd6f('0xfc')]()),this[_0xbd6f('0xa3')](_0x1a79a9,_0xbd6f('0x56'),()=>this[_0xbd6f('0xfc')]());}[_0xbd6f('0x122')](){const _0x13d1d1=this[_0xbd6f('0x80')],_0x4e6b36=_0x13d1d1[_0xbd6f('0x111')][_0xbd6f('0x50')](d),_0x4a3479=_0x4e6b36[_0xbd6f('0xfe')]?_0x4e6b36[_0xbd6f('0x104')][_0xbd6f('0x77')]:null;_0x13d1d1['config'][_0xbd6f('0x50')](_0xbd6f('0x2e'))['restoreRevisionCallback'](_0x4a3479);}['refresh'](){const {isReady:_0x39a89a,isEnabled:_0x34785b}=this[_0xbd6f('0x80')][_0xbd6f('0x111')][_0xbd6f('0x50')](d);this[_0xbd6f('0x1')]=_0x39a89a&&_0x34785b;}}export class ShowChangeCommand extends _0x189c95{constructor(_0x2c23b7,{direction:_0x916f54}){super(_0x2c23b7);const _0x57b1b4=_0x2c23b7[_0xbd6f('0x111')][_0xbd6f('0x50')](d);this['affectsData']=!0x1,this[_0xbd6f('0x35')]=_0xbd6f('0x9c')===_0x916f54?0x1:-0x1,this[_0xbd6f('0xa3')](_0x57b1b4,_0xbd6f('0x112'),()=>this[_0xbd6f('0xfc')]()),this['listenTo'](_0x57b1b4,_0xbd6f('0x56'),()=>this[_0xbd6f('0xfc')]()),this[_0xbd6f('0xa3')](_0x57b1b4,_0xbd6f('0x66'),()=>this['refresh']());}[_0xbd6f('0x122')](){const _0x2a7946=this['editor'],_0x286135=_0x2a7946[_0xbd6f('0x111')][_0xbd6f('0x50')](d),{isNavigationMode:_0x14bd61,currentChangeNumber:_0x5de936}=_0x286135;let _0x33d04f;if(_0x286135[_0xbd6f('0xbb')]=_0x14bd61?_0x286135[_0xbd6f('0x104')][_0xbd6f('0xe2')][_0xbd6f('0x50')](_0x5de936+this[_0xbd6f('0x35')]):_0x286135[_0xbd6f('0x104')]['changes']['first'],_0x286135[_0xbd6f('0xbb')][_0xbd6f('0x71')]['isOnRoot'])_0x33d04f=_0x2a7946[_0xbd6f('0x60')]['view'][_0xbd6f('0xcc')](_0x286135[_0xbd6f('0xbb')][_0xbd6f('0xd9')]);else{const _0x328735=_0x2a7946[_0xbd6f('0xf9')][_0xbd6f('0xfd')][_0xbd6f('0x50')]('revision:'+_0x286135[_0xbd6f('0xbb')]['id']);_0x33d04f=_0x17752f(_0x2a7946['editing'],_0x328735);}_0x2e2a34({'target':_0x33d04f,'viewportOffset':0x28});}[_0xbd6f('0xfc')](){const {isNavigationMode:_0x3059e6,currentChangeNumber:_0x429e93,numberOfChanges:_0x5171b0,isReady:_0xe7e0f,isEnabled:_0x40b8fa}=this[_0xbd6f('0x80')]['plugins']['get'](d);this[_0xbd6f('0x1')]=!!(_0x40b8fa&&_0xe7e0f&&_0x5171b0)&&(!_0x3059e6||(0x1===this[_0xbd6f('0x35')]?_0x429e93<_0x5171b0-0x1:_0x429e93>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1805=['isActionsDropdownOpen','execute','action','_action','button','children','model','items','stopPropagation','isReady','ck-revision-history-sidebar__revision__actions','isOpen','extendTemplate','Show\x20more\x20items','Compare\x20against\x20selected','threeVerticalDots','isEnabled','Restore\x20this\x20revision','listView','buttonView','bind','add','change:isActionsDropdownOpen','panelPosition','locale','find','set','isVisible','ck-on','name','function','class','map','first','source','Name\x20this\x20revision'];(function(_0x579cec,_0x180556){const _0x5862ce=function(_0x333439){while(--_0x333439){_0x579cec['push'](_0x579cec['shift']());}};_0x5862ce(++_0x180556);}(_0x1805,0x1d4));const _0x5862=function(_0x579cec,_0x180556){_0x579cec=_0x579cec-0x0;let _0x5862ce=_0x1805[_0x579cec];return _0x5862ce;};import{Collection as _0x4276f5}from'ckeditor5/src/utils.js';import{icons as _0x340da5}from'ckeditor5/src/core.js';import{ViewModel as _0xd28207,addListToDropdown as _0x5bb78f,createDropdown as _0x59c278}from'ckeditor5/src/ui.js';import{getTranslation as _0x118d3d}from'../../utils/common-translations.js';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x313add,_0x4b8e4b){const _0x49ad94=_0x313add['bindTemplate'],_0x30b5d2=_0x313add[_0x5862('0x18')],_0x4e4d7c=_0x59c278(_0x30b5d2);_0x4e4d7c[_0x5862('0x17')]='sw';const _0xcaa7fd=function(_0x247ae8,_0x314277){const _0x518d9f=function(_0x2b0b7d,_0x5a0daf){const _0x353b12=_0x2b0b7d[_0x5862('0x18')],_0x75915={'Compare\x20against\x20selected':_0x118d3d(_0x353b12,_0x5862('0xe')),'Name\x20this\x20revision':_0x118d3d(_0x353b12,_0x5862('0x23')),'Restore\x20this\x20revision':_0x118d3d(_0x353b12,_0x5862('0x11'))};return _0x5a0daf[_0x5862('0x20')](_0x2b3b30=>{const _0x5a88e8=_0x75915[_0x2b3b30[_0x5862('0x1d')]];return _0x5a88e8&&_0x5a88e8!==_0x2b3b30[_0x5862('0x1d')]&&(_0x2b3b30[_0x5862('0x1d')]=_0x5a88e8),_0x2b3b30;});}(_0x247ae8,_0x314277),_0x5b4846=new _0x4276f5();for(const _0x2b7454 of _0x518d9f){const _0x2dd2b8={'type':_0x5862('0x4'),'model':new _0xd28207({'label':_0x2b7454[_0x5862('0x1d')],'class':_0x2b7454[_0x5862('0x1f')],'withText':!0x0,'_action':_0x2b7454[_0x5862('0x2')]})};_0x2dd2b8[_0x5862('0x6')][_0x5862('0x14')]('isEnabled')['to'](_0x247ae8,_0x5862('0x0'),_0x3f96a8=>'function'!=typeof _0x2b7454[_0x5862('0x10')]||(!_0x3f96a8||_0x2b7454[_0x5862('0x10')](_0x247ae8))),_0x5b4846[_0x5862('0x15')](_0x2dd2b8);}return _0x5b4846;}(_0x313add,_0x4b8e4b);return _0x313add[_0x5862('0x14')](_0x5862('0x0'))['to'](_0x4e4d7c,_0x5862('0xb')),_0x4e4d7c[_0x5862('0x13')][_0x5862('0x1a')]({'label':_0x118d3d(_0x30b5d2,_0x5862('0xd')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x340da5[_0x5862('0xf')]}),_0x4e4d7c[_0x5862('0xc')]({'attributes':{'class':[_0x5862('0xa'),_0x49ad94['if'](_0x5862('0x0'),_0x5862('0x1c'))]},'on':{'click':_0x49ad94['to'](_0x519b05=>_0x519b05[_0x5862('0x8')]())}}),_0x4e4d7c['on'](_0x5862('0x1'),_0x10429a=>{_0x313add[_0x5862('0x9')]&&_0x5862('0x1e')==typeof _0x10429a[_0x5862('0x22')][_0x5862('0x3')]&&_0x10429a[_0x5862('0x22')][_0x5862('0x3')](_0x313add);}),_0x5bb78f(_0x4e4d7c,_0xcaa7fd),_0x4e4d7c['listenTo'](_0x313add,_0x5862('0x16'),(_0x18bc17,_0x5a6848,_0x273da8)=>{if(_0x273da8)for(const _0x1a78c7 of _0x4e4d7c[_0x5862('0x12')][_0x5862('0x7')]){const _0x1ea0d5=_0x1a78c7[_0x5862('0x5')][_0x5862('0x21')],_0x3ef3ae=_0x4b8e4b[_0x5862('0x19')](_0x1e50d4=>_0x1e50d4['action']===_0x1ea0d5[_0x5862('0x3')])[_0x5862('0x1b')];_0x1a78c7[_0x5862('0x1b')]=void 0x0===_0x3ef3ae||_0x3ef3ae(_0x313add);}}),_0x4e4d7c;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e1d=['0\x200\x2011\x2010','Revision\x20author','name','ck-revision-history-sidebar__revision-author__name','setTemplate','span','push','set','ck-revision-history-sidebar__revision-author'];(function(_0x1b5692,_0x5e1d3a){const _0x48ac93=function(_0x22f78b){while(--_0x22f78b){_0x1b5692['push'](_0x1b5692['shift']());}};_0x48ac93(++_0x5e1d3a);}(_0x5e1d,0x6b));const _0x48ac=function(_0x1b5692,_0x5e1d3a){_0x1b5692=_0x1b5692-0x0;let _0x48ac93=_0x5e1d[_0x1b5692];return _0x48ac93;};import{View as _0x2d98f2,IconView as _0x4e09af}from'ckeditor5/src/ui.js';import{getTranslation as _0x583a16}from'../../utils/common-translations.js';import'../../../theme/revision/revisionauthor.css';import _0x57d427 from'../../../theme/icons/user.svg';export default class ti extends _0x2d98f2{constructor(_0x22eb8e,_0x2a0c22,_0x76307e){super(_0x22eb8e);const _0x3616f6=new _0x4e09af();_0x3616f6[_0x48ac('0x8')]({'content':_0x57d427,'viewBox':_0x48ac('0x1')});const _0x4c6785=['ck',_0x48ac('0x0')];_0x76307e&&_0x4c6785[_0x48ac('0x7')]('ck-revision-history-sidebar__revision-author_creator');const _0x4503d2=[{'tag':_0x48ac('0x6'),'attributes':{'class':['ck',_0x48ac('0x4')],'title':_0x583a16(_0x22eb8e,_0x76307e?'Revision\x20creator':_0x48ac('0x2'))},'children':[_0x3616f6,_0x2a0c22[_0x48ac('0x3')]]}];this[_0x48ac('0x5')]({'tag':'li','attributes':{'class':_0x4c6785},'children':_0x4503d2});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xd4b6=['Revision\x20name','set','ck-revision-history-sidebar__revision-name','extendTemplate'];(function(_0x55dfd5,_0xd4b610){var _0x145892=function(_0x247f68){while(--_0x247f68){_0x55dfd5['push'](_0x55dfd5['shift']());}};_0x145892(++_0xd4b610);}(_0xd4b6,0x1cd));var _0x1458=function(_0x55dfd5,_0xd4b610){_0x55dfd5=_0x55dfd5-0x0;var _0x145892=_0xd4b6[_0x55dfd5];return _0x145892;};import{LabeledFieldView as _0x5cc671}from'ckeditor5/src/ui.js';import{getTranslation as _0xfd75c7}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';export default class is extends _0x5cc671{constructor(_0x4db50d,_0x1f054d){super(_0x4db50d,_0x1f054d),this[_0x1458('0x0')]({'label':_0xfd75c7(_0x4db50d,_0x1458('0x3'))}),this[_0x1458('0x2')]({'tag':'span','attributes':{'class':[_0x1458('0x1')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7bba=['value','isReady','div','authors','revisionActionsView','revisionNameView','name','ck-revision-history-sidebar__actions_dropdown_open','bindTemplate','setTemplate','ck-revision-history-sidebar__revision_highlighted','highlight','deselect','span','select','from','srcElement','ck-revision-history-sidebar__revision__controls-wrapper','isSelected','bind','filter','length','creator','listenTo','render','unshift','isActionsDropdownOpen','change','.ck-thread__remove-confirm','ck-disabled','_createdAtFormatted','element','isEnabled','unhighlight','placeholder','fire','fieldView','isHighlighted','set','createdAt','ck-revision-history-sidebar__revision-authors','220','extendTemplate'];(function(_0x1f15d6,_0x7bbac1){const _0x3406c0=function(_0x2e3732){while(--_0x2e3732){_0x1f15d6['push'](_0x1f15d6['shift']());}};_0x3406c0(++_0x7bbac1);}(_0x7bba,0xe6));const _0x3406=function(_0x1f15d6,_0x7bbac1){_0x1f15d6=_0x1f15d6-0x0;let _0x3406c0=_0x7bba[_0x1f15d6];return _0x3406c0;};import{View as _0x1f0f55,createLabeledInputText as _0x4ae677}from'ckeditor5/src/ui.js';import{ConfirmMixin as _0x175013}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x572766 from'./revisionnameview.js';import _0x2055df from'./revisionauthorview.js';import{dateToPrettyFormat as _0x37f55f}from'./utils.js';import{createActionsDropdownView as _0x4628c2}from'./createrevisionactionsdropdown.js';import'../../../theme/revision/revision.css';export default class ai extends _0x175013(_0x1f0f55){constructor(_0x2f75d2,_0x552f05,_0x43947c){super(_0x2f75d2);const _0x5d537f=this[_0x3406('0x24')],_0x9a96fc=function(_0x2ae5e6,_0xb7e44f){const _0x519b87=Array[_0x3406('0x0')](_0xb7e44f[_0x3406('0x1f')])[_0x3406('0x5')](_0x18aa05=>_0x18aa05!=_0xb7e44f[_0x3406('0x7')]);return _0xb7e44f[_0x3406('0x7')]&&_0x519b87[_0x3406('0xa')](_0xb7e44f[_0x3406('0x7')]),_0x519b87['map'](_0x31d363=>new _0x2055df(_0x2ae5e6,_0x31d363,_0x31d363==_0xb7e44f[_0x3406('0x7')]));}(_0x2f75d2,_0x552f05);this['id']=_0x552f05['id'],this['_revision']=_0x552f05,this['bind']('name',_0x3406('0x18'))['to'](_0x552f05),this[_0x3406('0x4')](_0x3406('0xf'))['to'](this,'createdAt',_0x5f1376=>_0x5f1376?_0x37f55f(_0x2f75d2['uiLanguage'],_0x5f1376):void 0x0),this[_0x3406('0x17')](_0x3406('0x3'),!0x1),this['set'](_0x3406('0x16'),!0x1),this['set'](_0x3406('0xb'),!0x1),this['set'](_0x3406('0x1d'),!0x1),this['set'](_0x3406('0x11'),!0x1),this[_0x3406('0x21')]=new _0x572766(_0x2f75d2,_0x4ae677),this[_0x3406('0x21')][_0x3406('0x15')][_0x3406('0x1b')]({'attributes':{'maxlength':_0x3406('0x1a')}}),this['revisionNameView']['fieldView']['bind'](_0x3406('0x1c'),_0x3406('0x13'))['to'](this,_0x3406('0x22'),_0x3406('0xf')),this[_0x3406('0x21')][_0x3406('0x4')]('isEnabled')['to'](this,_0x3406('0x3'),this,_0x3406('0x11'),(_0x45e4a0,_0x19f6ef)=>_0x45e4a0&&_0x19f6ef),this[_0x3406('0x20')]=_0x43947c&&_0x43947c[_0x3406('0x6')]?_0x4628c2(this,_0x43947c):'',this[_0x3406('0x20')]&&this[_0x3406('0x20')][_0x3406('0x4')](_0x3406('0x11'))['to'](this),this[_0x3406('0x25')]({'tag':_0x3406('0x1e'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5d537f['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':_0x3406('0x1e'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5d537f['if']('isEnabled',_0x3406('0xe'),_0x55fca8=>!_0x55fca8),_0x5d537f['if'](_0x3406('0x3'),'ck-revision-history-sidebar__revision_selected'),_0x5d537f['if'](_0x3406('0x16'),_0x3406('0x26')),_0x5d537f['if'](_0x3406('0xb'),_0x3406('0x23'))]},'children':[this['revisionNameView'],{'tag':_0x3406('0x29'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x5d537f['to']('_createdAtFormatted')}]},{'tag':_0x3406('0x1e'),'attributes':{'class':['ck',_0x3406('0x2')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x3406('0x19')]},'children':_0x9a96fc}]},this[_0x3406('0x20')]],'on':{'click':_0x5d537f['to'](_0x87a6df=>{_0x87a6df[_0x3406('0x1')]['closest'](_0x3406('0xd'))||this[_0x3406('0x1d')]&&this[_0x3406('0x11')]&&this[_0x3406('0x14')](_0x3406('0x2a'),{'id':this['id']});})}}]});}[_0x3406('0x9')](){super['render']();const _0x130e09=this[_0x3406('0x21')][_0x3406('0x15')][_0x3406('0x10')];this[_0x3406('0x8')](_0x130e09,_0x3406('0xc'),()=>{this[_0x3406('0x14')]('setName',{'id':this['id'],'name':_0x130e09['value']});});}[_0x3406('0x2a')](){this[_0x3406('0x3')]=!0x0;}[_0x3406('0x28')](){this[_0x3406('0x3')]=!0x1;}[_0x3406('0x27')](){this['isHighlighted']=!0x0;}[_0x3406('0x12')](){this['isHighlighted']=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4786=['ck-revision-history-sidebar__subrevision-collapser_collapsed','isVisible','false','_isCollapsed','set','setTemplate','span','click','toggle','ck-revision-history-sidebar__subrevision-collapser','ck-hidden','button','bindTemplate'];(function(_0x2c81f6,_0x478633){const _0x199cca=function(_0x533911){while(--_0x533911){_0x2c81f6['push'](_0x2c81f6['shift']());}};_0x199cca(++_0x478633);}(_0x4786,0x11f));const _0x199c=function(_0x2c81f6,_0x478633){_0x2c81f6=_0x2c81f6-0x0;let _0x199cca=_0x4786[_0x2c81f6];return _0x199cca;};import{View as _0x30a026}from'ckeditor5/src/ui.js';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x30a026{constructor(_0x26839a){super(_0x26839a);const _0x5c9920=this[_0x199c('0xb')];this[_0x199c('0x3')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x199c('0x4')]({'tag':_0x199c('0x5'),'attributes':{'class':['ck',_0x199c('0x8'),_0x5c9920['if'](_0x199c('0x0'),_0x199c('0x9'),_0x43f60d=>!_0x43f60d),_0x5c9920['if'](_0x199c('0x2'),_0x199c('0xc'))],'role':_0x199c('0xa'),'aria-pressed':_0x5c9920['to'](_0x199c('0x2'),_0x2b44ca=>_0x2b44ca?_0x199c('0x1'):'true')},'children':[{'tag':_0x199c('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x5c9920['to'](_0x199c('0x6'))}});}[_0x199c('0x7')](){this[_0x199c('0x2')]=!this[_0x199c('0x2')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24a5=['setTemplate','fire','_createdAtFormatted','ck-revision-history-sidebar__revision','select','_parentRevisionId','bindTemplate','bind','isSelected','ck-revision-history-sidebar__revision-authors','deselect','set','createdAt'];(function(_0x3e6b4d,_0x24a52e){const _0x1106d2=function(_0x34ed96){while(--_0x34ed96){_0x3e6b4d['push'](_0x3e6b4d['shift']());}};_0x1106d2(++_0x24a52e);}(_0x24a5,0x16a));const _0x1106=function(_0x3e6b4d,_0x24a52e){_0x3e6b4d=_0x3e6b4d-0x0;let _0x1106d2=_0x24a5[_0x3e6b4d];return _0x1106d2;};import{View as _0x4ce4af}from'ckeditor5/src/ui.js';import _0xf189d2 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x1b12b6}from'./utils.js';import'../../../theme/revision/subrevision.css';export default class ts extends _0x4ce4af{constructor(_0xb62855,_0x198081,_0x4088e9){super(_0xb62855);const _0x40d32d=this[_0x1106('0x8')];this['id']=_0x198081['id'],this[_0x1106('0x9')](_0x1106('0x1'))['to'](_0x198081),this[_0x1106('0x0')](_0x1106('0xa'),!0x1),this[_0x1106('0x9')](_0x1106('0x4'))['to'](this,_0x1106('0x1'),_0x4eaef9=>_0x4eaef9?_0x1b12b6(_0xb62855['uiLanguage'],_0x4eaef9):void 0x0),this[_0x1106('0x7')]=_0x4088e9,this[_0x1106('0x2')]({'tag':'div','attributes':{'class':['ck','ck-reset',_0x1106('0x5'),'ck-revision-history-sidebar__subrevision',_0x40d32d['if']('isSelected','ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x40d32d['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x1106('0xb')]},'children':[new _0xf189d2(_0xb62855,_0x198081['creator'],!0x0)]}],'on':{'click':_0x40d32d['to'](this[_0x1106('0x6')][_0x1106('0x9')](this))}});}[_0x1106('0x6')](){this[_0x1106('0xa')]=!0x0,this[_0x1106('0x3')]('select',{'parentId':this[_0x1106('0x7')]});}[_0x1106('0xc')](){this['isSelected']=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x55ac=['long','numeric','toLocaleTimeString','toLocaleDateString'];(function(_0x25e7b6,_0x55aca9){var _0x5a5eae=function(_0x329922){while(--_0x329922){_0x25e7b6['push'](_0x25e7b6['shift']());}};_0x5a5eae(++_0x55aca9);}(_0x55ac,0x103));var _0x5a5e=function(_0x25e7b6,_0x55aca9){_0x25e7b6=_0x25e7b6-0x0;var _0x5a5eae=_0x55ac[_0x25e7b6];return _0x5a5eae;};export function dateToPrettyFormat(_0x2fb3b4,_0x3f6380){return _0x3f6380[_0x5a5e('0x0')](_0x2fb3b4,{'month':_0x5a5e('0x1'),'day':_0x5a5e('0x2')})+',\x20'+_0x3f6380[_0x5a5e('0x3')](_0x2fb3b4,{'hour':'numeric','minute':_0x5a5e('0x2')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x208b=['delegate','focusTracker','form','focusFirst','element','label','extendTemplate','ck-button-cancel','fieldView','ck-responsive-form','setTemplate','revisionNameInputValue','render','arrowup','set','_focusables','arrowdown','submit','revisionNameInputView','arrowleft','input','_createRevisionNameInput','add','ck-button-save','value','saveButtonView','ck-revision-history-save-revision-form','cancelButtonView','_createButton','focus','tab','execute','revisionName','forEach','Name\x20of\x20the\x20revision\x20(optional)','220','reset','keystrokes','_focusCycler','trim','cancel','locale'];(function(_0x435576,_0x208b67){const _0x239856=function(_0x168d9d){while(--_0x168d9d){_0x435576['push'](_0x435576['shift']());}};_0x239856(++_0x208b67);}(_0x208b,0x17f));const _0x2398=function(_0x435576,_0x208b67){_0x435576=_0x435576-0x0;let _0x239856=_0x208b[_0x435576];return _0x239856;};import{icons as _0x5d40a9}from'ckeditor5/src/core.js';import{ButtonView as _0x128eef,FocusCycler as _0x4e8a10,LabeledFieldView as _0xbd3242,View as _0x4dadf8,ViewCollection as _0x39530c,createLabeledInputText as _0x113525,injectCssTransitionDisabler as _0x20947b,submitHandler as _0x4d6413}from'ckeditor5/src/ui.js';import{FocusTracker as _0x2baf48,KeystrokeHandler as _0x423a46}from'ckeditor5/src/utils.js';import{getTranslation as _0x1e3c1d}from'../../utils/common-translations.js';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x4dadf8{constructor(_0x2230c6){super(_0x2230c6),this[_0x2398('0x26')]=new _0x2baf48(),this[_0x2398('0x20')]=new _0x423a46(),this[_0x2398('0x9')]('revisionNameInputValue',''),this[_0x2398('0xd')]=this['_createRevisionNameInput'](),this[_0x2398('0x14')]=this[_0x2398('0x17')](_0x1e3c1d(_0x2230c6,'Save'),_0x5d40a9['check'],_0x2398('0x12')),this['saveButtonView']['type']=_0x2398('0xc'),this[_0x2398('0x16')]=this['_createButton'](_0x1e3c1d(_0x2230c6,'Cancel'),_0x5d40a9[_0x2398('0x23')],_0x2398('0x2'),_0x2398('0x23')),this[_0x2398('0xa')]=new _0x39530c(),this[_0x2398('0x21')]=new _0x4e8a10({'focusables':this[_0x2398('0xa')],'focusTracker':this[_0x2398('0x26')],'keystrokeHandler':this[_0x2398('0x20')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x2398('0x19')}}),this[_0x2398('0x5')]({'tag':_0x2398('0x27'),'attributes':{'class':['ck',_0x2398('0x15'),_0x2398('0x4')],'tabindex':'-1'},'children':[this[_0x2398('0xd')],this[_0x2398('0x14')],this[_0x2398('0x16')]]}),_0x20947b(this);}[_0x2398('0x7')](){super[_0x2398('0x7')](),_0x4d6413({'view':this}),([this[_0x2398('0xd')],this[_0x2398('0x14')],this[_0x2398('0x16')]][_0x2398('0x1c')](_0x8802c9=>{this[_0x2398('0xa')][_0x2398('0x11')](_0x8802c9),this[_0x2398('0x26')][_0x2398('0x11')](_0x8802c9[_0x2398('0x29')]);}),this[_0x2398('0x20')]['listenTo'](this[_0x2398('0x29')]));const _0x516609=_0x59f266=>_0x59f266['stopPropagation']();this[_0x2398('0x20')][_0x2398('0x9')]('arrowright',_0x516609),this['keystrokes']['set'](_0x2398('0xe'),_0x516609),this['keystrokes']['set'](_0x2398('0x8'),_0x516609),this[_0x2398('0x20')][_0x2398('0x9')](_0x2398('0xb'),_0x516609);}[_0x2398('0x18')](){this[_0x2398('0x21')][_0x2398('0x28')]();}get[_0x2398('0x1b')](){return this[_0x2398('0xd')][_0x2398('0x3')][_0x2398('0x29')][_0x2398('0x13')][_0x2398('0x22')]();}set[_0x2398('0x1b')](_0x300e55){this['revisionNameInputView'][_0x2398('0x3')]['element'][_0x2398('0x13')]=_0x300e55[_0x2398('0x22')]();}[_0x2398('0x1f')](){this[_0x2398('0xd')][_0x2398('0x3')][_0x2398('0x29')][_0x2398('0x13')]='';}[_0x2398('0x10')](){const _0x1344ae=new _0xbd3242(this['locale'],_0x113525),_0x33c118=_0x1344ae[_0x2398('0x3')];return _0x33c118[_0x2398('0x1')]({'attributes':{'maxlength':_0x2398('0x1e')}}),_0x1344ae[_0x2398('0x0')]=_0x1e3c1d(this['locale'],_0x2398('0x1d')),_0x33c118['on'](_0x2398('0xf'),()=>{this[_0x2398('0x6')]=_0x33c118[_0x2398('0x29')][_0x2398('0x13')][_0x2398('0x22')]();}),_0x1344ae;}['_createButton'](_0x243309,_0x505f96,_0xb22f9f,_0x5121bc){const _0x42e7a4=new _0x128eef(this[_0x2398('0x24')]);return _0x42e7a4[_0x2398('0x9')]({'label':_0x243309,'icon':_0x505f96,'tooltip':!0x0}),_0x42e7a4['extendTemplate']({'attributes':{'class':_0xb22f9f}}),_0x5121bc&&_0x42e7a4[_0x2398('0x25')](_0x2398('0x1a'))['to'](this,_0x5121bc),_0x42e7a4;}}
|