@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240117.0 → 0.0.0-nightly-20240119.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 _0x1af1=['indexOf','activeChange','text','uiElement','isAddSuggestion','consumable','add','end','_joinTapes','pairId','_getViewForChange','addRevisionData','isReady','revision','userId','deletion','getRoot','change:isEnabled','toViewElement','document','split','element','_getViewObj','_update','suggestion','bind','catch','ck-revision-history-root-','ck-suggestion-marker-merge','_markMismatchedRemovedTags','isIncorrect','change:numberOfChanges','splice','insert','showNextChange','startIndex','error','collaboration.channelId','_threeWayMerge','getChild','delete','nextPosition','first','roots','POSITIVE_INFINITY','default','rootName','RevisionsRepository','high','addRevision','revision-suggestion:','sort','_data','refresh','markersStart','changes','markersEnd','listenTo','useFillerType','highest','activeView','isEnabled','getRevisionRootsAttributes','maxOffset','low','getRevision','requires','length','attributesBefore','_step','attributesAfter','isEqual','markerToHighlight','startsWith','target','endIndex','ck-suggestion-preview-marker','deletions','_markMarkers','isCollapsed','createPositionBefore','createRevision','_initInteractions','wrap','loadRevisionData','elementToAttribute','_setConversion','compare','_makeTape','showPreviousChange','ck-suggestion-marker--active','_activeViewTarget','offsetSize','_cleanUp','name','setAttribute','removeMarker','revisionHistoryLabel','isSuggestion','test','start','has','getRevisionData','authors','checkAttribute','isInline','map','forceDisabled','change:isReady','insertions','markerName','mousedown','bindElementToMarker','code','values','destroy','getDomRoot','_processTape','isLimit','_refreshStartEndIndex','isAtEnd','removeMarker:revision','attribute:vid','_appendChild','isOnRoot','getAttribute','change:activeView','abs','string','enableReadOnlyMode','modelRange','_changeIdToChange','isAfter','then','observeMarkers','merge','ck-suggestion-marker-','vid_start','getRootNames','elementEnd','diffData','concat','createAttributeElement','slice','RevisionViewer','shift','previousPosition','removeClass','_setDistance','ck-suggestion-preview-marker-','from','markerRange','reconvertMarker','forward','hasAttribute','editor','index','_fixObsoleteTags','getCustomProperty','upcast','addClass','addMarker:revision-suggestion:insertion','isAtStart','revision-comment:','_cleanMarkers','_balloon','backward','isAttached','ck-revision-history-root--active','restoreRevisionCallback','_makeModelFromTape','revision-end','range','type','nodeAfter','toViewRange','editingDowncast','isBlock','domEvent','locale','updatePosition','createPositionFromPath','showStack','parent','viewItem','enqueueChange','processor','change','right','suggestion:','done','hasClass','addHighlight','push','createRange','change:activeChange','commands','insertion','numberOfChanges','isRemoveSuggestion','conversion','markerToData','downcastDispatcher','nextSibling','changeId','_sortAndFilterDiffChanges','writer','addRoot','ck-suggestion-marker','dataToMarker','elementStart','for','remove','selection','left','get','_getDiff','dataDowncast','isRemoved','vid_end','item','isObject','isBefore','revision-suggestion','schema','isAdded','-new','_markSuggestions','set','execute','createUIElement','side','unshift','data-revision-','forEach','oldRevisionId','mapViewToDom','mapper','getIndex','restoreRevision','affectsData','data-change-id','revision:','addMarker:revision-suggestion:deletion','_makeModelFromViewString','repository','keys','getAttributes','attributes','_removeUnsupportedChanges','all','markers','ck-revision-history-root-remove','stop','attachChange','createRangeIn','level','addMarker:revision','model','isContent','revision-viewer','pop','getWalker','removeAttribute','plugins','find','view','return','span','filter','_removeRevisionMarkers','removeMarker:revision-suggestion','_findChangeIdFromDomTarget','distance','_markInsertions','resolve','object','ck-editor__editable__overlay','parse','markerNameToElements','consume','editing','_getChangeFromId','data','toViewPosition','newRevisionId','bottom','_getRevisionsRange','diff','WidgetToolbarRepository','children','includes','_removeMissingPairs','vid','revisionHistoryAttachChange','_changeView','ck-suggestion-marker-split','pluginName','flat','init'];(function(_0x14739e,_0x1af144){const _0x39b47c=function(_0x514a1c){while(--_0x514a1c){_0x14739e['push'](_0x14739e['shift']());}};_0x39b47c(++_0x1af144);}(_0x1af1,0xb9));const _0x39b4=function(_0x14739e,_0x1af144){_0x14739e=_0x14739e-0x0;let _0x39b47c=_0x1af1[_0x14739e];return _0x39b47c;};import{Plugin as _0x567ba9,Command as _0x238989}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x396f9e}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x1d4974}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x1eb8c7,Element as _0x449a01,Text as _0x58de0d,ViewDocumentFragment as _0x31be0b,ViewText as _0x3d0d3a,ViewElement as _0x18e596,ViewContainerElement as _0x343511,ViewAttributeElement as _0x4009e7,ViewEmptyElement as _0xd3580c,ViewRawElement as _0x2cadbe,ViewUIElement as _0x5062ef}from'ckeditor5/src/engine.js';import{Users as _0x14dee3,getMarkerDomElement as _0x57e0bc}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x17a49f from'./ui/revisionviewer/changedetailsview.js';import _0x3aeac7 from'./revisionsrepository.js';import _0x104c6d from'./changeitem.js';import{default as _0x2083c5}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0xdc49c9}from'lodash-es';const tt={'c':_0x343511,'a':_0x4009e7,'e':_0xd3580c,'r':_0x2cadbe,'u':_0x5062ef};export default class d extends _0x567ba9{static get[_0x39b4('0x70')](){return'RevisionViewer';}static get[_0x39b4('0xb5')](){return[_0x14dee3,_0x1d4974,_0x3aeac7];}constructor(_0x4d9d21){super(_0x4d9d21),this[_0x39b4('0x3c')]=this[_0x39b4('0x10e')][_0x39b4('0x4f')][_0x39b4('0x1e')](_0x39b4('0xa2')),this[_0x39b4('0x2b')](_0x39b4('0x74'),null),this[_0x39b4('0x2b')](_0x39b4('0xaf'),null),this[_0x39b4('0xce')]=null,this[_0x39b4('0x2b')](_0x39b4('0x67'),null),this[_0x39b4('0x2b')](_0x39b4('0x7f'),!0x1),this[_0x39b4('0x2b')](_0x39b4('0xb0'),!0x0),this['on'](_0x39b4('0x84'),(_0x4d5f37,_0x3e7b71,_0x7589b1)=>{this[_0x39b4('0x74')]=null,this['activeView']=null,this[_0x39b4('0x10e')][_0x39b4('0x60')][_0x39b4('0x51')][_0x39b4('0x2')](_0x1a1552=>{for(const _0x5f2303 of this[_0x39b4('0x10e')][_0x39b4('0x60')][_0x39b4('0x51')][_0x39b4('0x86')][_0x39b4('0x9e')])_0x7589b1?_0x1a1552[_0x39b4('0x106')](_0x39b4('0x5c'),_0x5f2303):_0x1a1552[_0x39b4('0x113')](_0x39b4('0x5c'),_0x5f2303);});}),this[_0x39b4('0x8c')]('isNavigationMode')['to'](this,'activeChange',_0x95e947=>null!==_0x95e947),this[_0x39b4('0x8c')]('currentChangeNumber')['to'](this,_0x39b4('0x7f'),this,_0x39b4('0x67'),this,_0x39b4('0x74'),(_0x50dca6,_0x381823,_0x4dadfc)=>_0x50dca6&&_0x4dadfc?_0x381823['changes'][_0x39b4('0x35')](_0x4dadfc):0x0),this[_0x39b4('0x8c')](_0x39b4('0xd'))['to'](this,_0x39b4('0x7f'),this,_0x39b4('0x67'),(_0x1535d9,_0x2b4349)=>_0x1535d9?_0x2b4349[_0x39b4('0xaa')][_0x39b4('0xb6')]:0x0),this['_changeView']=null,this[_0x39b4('0xf6')]=new Map(),this['adapter']=null,this['_balloon']=this[_0x39b4('0x10e')][_0x39b4('0x4f')][_0x39b4('0x1e')](_0x1d4974);}[_0x39b4('0x72')](){const _0x2bbecc=this[_0x39b4('0x10e')],_0x5e7ddf=new ShowChangeCommand(_0x2bbecc,{'direction':_0x39b4('0x119')}),_0x4d97da=new ShowChangeCommand(_0x2bbecc,{'direction':_0x39b4('0x10c')});(_0x2bbecc[_0x39b4('0xb')][_0x39b4('0x79')](_0x39b4('0xcc'),_0x5e7ddf),_0x2bbecc['commands'][_0x39b4('0x79')](_0x39b4('0x95'),_0x4d97da),_0x2bbecc[_0x39b4('0xb')]['add'](_0x39b4('0x36'),new RestoreRevisionCommand(_0x2bbecc)),this['on'](_0x39b4('0x92'),()=>{_0x5e7ddf[_0x39b4('0xa8')](),_0x4d97da[_0x39b4('0xa8')]();}),this[_0x39b4('0xc9')](),this[_0x39b4('0xc5')](),_0x2bbecc[_0x39b4('0xf4')](_0x39b4('0x4b')),_0x2bbecc['plugins'][_0x39b4('0xd8')](_0x39b4('0x68')))&&_0x2bbecc[_0x39b4('0x4f')][_0x39b4('0x1e')](_0x39b4('0x68'))[_0x39b4('0xde')](_0x39b4('0x4b'));}async[_0x39b4('0xd9')](_0x58965f){await this[_0x39b4('0xc7')](_0x58965f);const _0x5f550b={};for(const _0x2b269d in _0x58965f[_0x39b4('0xff')]){if(_0x58965f[_0x39b4('0xff')][_0x2b269d][_0x39b4('0x45')]&&!_0x58965f['diffData'][_0x2b269d][_0x39b4('0x45')]['isAttached'])continue;const _0x175e9a=this[_0x39b4('0x55')](JSON[_0x39b4('0x5d')](_0x58965f[_0x39b4('0xff')][_0x2b269d][_0x39b4('0xe0')])),_0x348ed6=this[_0x39b4('0x10e')][_0x39b4('0x60')][_0x39b4('0x51')][_0x39b4('0x86')],_0x49986a=new _0x31be0b(_0x348ed6,_0x175e9a[_0x39b4('0xdd')](_0x41f744=>this[_0x39b4('0x89')](_0x41f744)));this[_0x39b4('0x10e')]['data']['processor']['useFillerType']('marked'),_0x5f550b[_0x2b269d]=this[_0x39b4('0x10e')][_0x39b4('0x62')][_0x39b4('0x1')]['toData'](_0x49986a),this[_0x39b4('0x10e')][_0x39b4('0x62')]['processor'][_0x39b4('0xad')](_0x39b4('0xa0'));}return _0x5f550b;}async[_0x39b4('0xb1')](_0x20794c){await this[_0x39b4('0xc7')](_0x20794c);const _0x305554={};for(const _0x1c2e5a in _0x20794c[_0x39b4('0xff')])_0x20794c[_0x39b4('0xff')][_0x1c2e5a][_0x39b4('0x45')]&&!_0x20794c[_0x39b4('0xff')][_0x1c2e5a][_0x39b4('0x45')][_0x39b4('0x11a')]||(_0x305554[_0x1c2e5a]=_0x20794c[_0x39b4('0xff')][_0x1c2e5a][_0x39b4('0xb9')]||{});return _0x305554;}[_0x39b4('0x55')](_0x65e944){return(_0x65e944=_0x65e944[_0x39b4('0x54')](_0x2f6583=>!_0x2f6583[_0x39b4('0xd1')]||'revision-start'!==_0x2f6583[_0x39b4('0xd1')]&&_0x39b4('0x11e')!==_0x2f6583['name']))[_0x39b4('0x31')](_0x2a6a67=>{_0x39b4('0xf3')!=typeof _0x2a6a67&&(_0x2a6a67[_0x39b4('0x69')]=this[_0x39b4('0x55')](_0x2a6a67[_0x39b4('0x69')]),_0x2a6a67[_0x39b4('0x3f')]=_0x2a6a67[_0x39b4('0x3f')][_0x39b4('0x54')](_0x45a1dc=>!_0x45a1dc[0x0]['startsWith'](_0x39b4('0x30'))));}),_0x65e944;}async[_0x39b4('0xca')](_0x3d4980,_0x191758,_0x160220=!0x1){if(!this[_0x39b4('0xb0')])return;const _0x28c7e3=this[_0x39b4('0x67')],_0x452bd9=this[_0x39b4('0x3c')],_0x34737d='string'==typeof _0x3d4980?_0x452bd9[_0x39b4('0xb4')](_0x3d4980):_0x3d4980,_0x2e7365=_0x39b4('0xf3')==typeof _0x191758?_0x452bd9[_0x39b4('0xb4')](_0x191758):_0x191758,_0x52293e=_0x34737d['id'],_0x5c2d42=_0x2e7365?_0x2e7365['id']:null;if(!_0x160220&&this['diff']&&this[_0x39b4('0x67')][_0x39b4('0x64')]===_0x52293e&&this[_0x39b4('0x67')][_0x39b4('0x32')]===_0x5c2d42)return Promise[_0x39b4('0x5a')]();this['isReady']=!0x1,this[_0x39b4('0xaf')]=null,this['activeChange']=null,this[_0x39b4('0x67')]=new _0x2083c5(_0x52293e,_0x5c2d42);const _0x1a4e05=this[_0x39b4('0x66')](_0x34737d,_0x2e7365,!0x0)[_0x39b4('0xdd')](_0x612757=>this[_0x39b4('0xc7')](_0x612757));return _0x1a4e05[_0x39b4('0x8')](new Promise(_0x51266b=>{setTimeout(_0x51266b,0x14);})),Promise[_0x39b4('0x41')](_0x1a4e05)[_0x39b4('0xf8')](()=>{if(!this['isEnabled'])return;this[_0x39b4('0xd0')]();const _0x2664ac=this['_getDiff'](_0x52293e,_0x5c2d42);for(const _0x48ba01 of _0x2664ac['changes'])this[_0x39b4('0xf6')][_0x39b4('0x2b')](_0x48ba01['id'],_0x48ba01);this[_0x39b4('0x10e')][_0x39b4('0x49')]['enqueueChange']({'isUndoable':!0x1},_0x313ff9=>{for(const _0x5c5880 of this[_0x39b4('0x10e')][_0x39b4('0x49')][_0x39b4('0x86')]['getRootNames']())_0x313ff9['detachRoot'](_0x5c5880);for(const _0x15af09 of Object[_0x39b4('0x3d')](_0x2664ac[_0x39b4('0x49')])){const _0x2cf445=_0x313ff9[_0x39b4('0x16')](_0x15af09);for(const _0x522de4 of Object[_0x39b4('0x3d')](_0x2664ac[_0x39b4('0x3f')][_0x15af09]))_0x313ff9[_0x39b4('0xd2')](_0x522de4,_0x2664ac[_0x39b4('0x3f')][_0x15af09][_0x522de4],_0x2cf445);_0x313ff9[_0x39b4('0x94')](_0x2664ac['model'][_0x15af09],_0x2cf445,0x0);}}),this['diff']['_setChanges'](this[_0x39b4('0x14')](_0x2664ac['changes'])),this['isReady']=!0x0;})[_0x39b4('0x8d')](_0x454310=>{console[_0x39b4('0x97')](_0x454310),this['_cleanUp'](),_0x28c7e3&&(this[_0x39b4('0x67')]=_0x28c7e3),this[_0x39b4('0x7f')]=!0x0;});}[_0x39b4('0x7e')](_0x368078,_0x4950af){const _0x1f151e=this[_0x39b4('0x3c')][_0x39b4('0xc4')](_0x368078);return _0x1f151e['on']('_update',(_0x2e8d4d,_0x171219,_0xc07ba)=>_0x4950af(_0x171219,_0xc07ba,_0x1f151e)),this[_0x39b4('0x3c')][_0x39b4('0xa4')](_0x1f151e),_0x1f151e;}[_0x39b4('0xc7')](_0xc3f323){if(!_0xc3f323||_0xc3f323['diffData'])return Promise[_0x39b4('0x5a')]();{const _0x5a1855=this[_0x39b4('0x10e')]['config']['get'](_0x39b4('0x98'));return this['adapter'][_0x39b4('0xb4')]({'channelId':_0x5a1855,'revisionId':_0xc3f323['id']})['then'](_0x16a9e0=>{_0xc3f323[_0x39b4('0x8a')]({'diffData':_0x16a9e0[_0x39b4('0xff')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this[_0x39b4('0x117')](),this['_changeView']&&this[_0x39b4('0x6e')][_0x39b4('0xe6')](),this[_0x39b4('0x6e')]=null,this[_0x39b4('0xf6')]['clear'](),this['editor']['model'][_0x39b4('0x0')]({'isUndoable':!0x1},_0x30b872=>{for(const _0x1585b5 of this[_0x39b4('0x10e')][_0x39b4('0x49')]['document'][_0x39b4('0xfd')]())_0x30b872['detachRoot'](_0x1585b5);});}[_0x39b4('0x14')](_0x2f1955){const _0xe4fa49=[],_0x5753fa=new Map();for(const _0x25aa75 of this[_0x39b4('0x10e')]['model']['document'][_0x39b4('0xfd')]()){const _0x4be8d7=this[_0x39b4('0x10e')][_0x39b4('0x60')][_0x39b4('0x51')][_0x39b4('0xe7')](_0x25aa75);if(!_0x4be8d7)continue;const _0x5b639e=_0x4be8d7['getClientRects']()['item'](0x0);_0x5b639e&&(_0xe4fa49[_0x39b4('0x8')](_0x25aa75),_0x5753fa[_0x39b4('0x2b')](_0x25aa75,_0x5b639e));}return _0xe4fa49[_0x39b4('0xa6')]((_0x52b987,_0x3e7d3d)=>{const _0x62071c=_0x5753fa[_0x39b4('0x1e')](_0x52b987),_0x580d6e=_0x5753fa[_0x39b4('0x1e')](_0x3e7d3d);return _0x62071c['y']-_0x580d6e['y']||_0x62071c['x']-_0x580d6e['x'];}),(_0x2f1955=_0x2f1955[_0x39b4('0x54')](_0x310dd7=>_0xe4fa49[_0x39b4('0x6a')](_0x310dd7[_0x39b4('0xa1')])))['sort']((_0x4e3138,_0x3d63ac)=>_0xe4fa49[_0x39b4('0x73')](_0x4e3138['rootName'])-_0xe4fa49['indexOf'](_0x3d63ac[_0x39b4('0xa1')])),_0x2f1955;}[_0x39b4('0xcb')](_0xf08742){const _0x35c064=Array[_0x39b4('0x109')](_0xf08742['markers'])['filter'](([_0x59453a,_0x1d5a6e])=>_0x59453a[_0x39b4('0xbc')]('revision:')&&!_0x1d5a6e[_0x39b4('0xc2')]),_0x31969c=Array[_0x39b4('0x109')](this[_0x39b4('0x10e')][_0x39b4('0x49')][_0x39b4('0x46')](_0xf08742)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x35c064[_0x39b4('0xb6')])for(const _0x50e956 of _0x31969c){const [_0x8152ae,_0x3b8a9e]=_0x35c064[0x0],[,_0x381a76,_0x334ae5]=_0x8152ae[_0x39b4('0x87')](':');if(_0x3b8a9e[_0x39b4('0x7a')][_0x39b4('0xba')](_0x50e956[_0x39b4('0x9c')])&&_0x35c064[_0x39b4('0x104')](),(_0x50e956['previousPosition'][_0x39b4('0xba')](_0x3b8a9e[_0x39b4('0xd7')])||_0x50e956[_0x39b4('0x105')][_0x39b4('0xf7')](_0x3b8a9e['start']))&&('insertion'==_0x381a76?_0x50e956[_0x39b4('0x28')]={'userId':_0x334ae5}:'deletion'==_0x381a76&&(_0x50e956['isRemoved']={'userId':_0x334ae5})),0x0==_0x35c064[_0x39b4('0xb6')])break;}return _0x31969c;}[_0x39b4('0xea')](_0x1b5833){const _0x58f9a7=new Map();for(let _0x2b2dd4=0x0;_0x2b2dd4<_0x1b5833[_0x39b4('0xb6')];_0x2b2dd4++)'text'===_0x1b5833[_0x2b2dd4]['type']?(_0x1b5833[_0x2b2dd4][_0x39b4('0x23')]['startIndex']=_0x2b2dd4,_0x1b5833[_0x2b2dd4]['item'][_0x39b4('0xbe')]=_0x2b2dd4):(_0x39b4('0x19')===_0x1b5833[_0x2b2dd4][_0x39b4('0x120')]?_0x1b5833[_0x2b2dd4][_0x39b4('0x23')]['startIndex']=_0x2b2dd4:_0x39b4('0xfe')===_0x1b5833[_0x2b2dd4]['type']&&(_0x1b5833[_0x2b2dd4][_0x39b4('0x23')]['endIndex']=_0x2b2dd4),_0x58f9a7[_0x39b4('0x2b')](_0x1b5833[_0x2b2dd4]['id'],_0x2b2dd4));for(const _0x5d102d of _0x58f9a7[_0x39b4('0xe5')]())_0x39b4('0x19')===_0x1b5833[_0x5d102d][_0x39b4('0x120')]?_0x1b5833[_0x5d102d][_0x39b4('0x23')]['endIndex']=_0x58f9a7[_0x39b4('0x1e')](_0x1b5833[_0x5d102d]['pairId']):_0x39b4('0xfe')===_0x1b5833[_0x5d102d][_0x39b4('0x120')]&&(_0x1b5833[_0x5d102d][_0x39b4('0x23')]['startIndex']=_0x58f9a7['get'](_0x1b5833[_0x5d102d][_0x39b4('0x7c')]));}['_processTape'](_0x2fbdd0){for(let _0x241610=0x0;_0x241610<_0x2fbdd0[_0x39b4('0xb6')];_0x241610++){if(_0x39b4('0x19')===_0x2fbdd0[_0x241610][_0x39b4('0x120')])_0x2fbdd0[_0x241610][_0x39b4('0x23')][_0x39b4('0x96')]=_0x241610;else{if('elementEnd'===_0x2fbdd0[_0x241610][_0x39b4('0x120')]){_0x2fbdd0[_0x241610][_0x39b4('0x23')]['endIndex']=_0x241610;const _0x3d2e0b=_0x2fbdd0[_0x241610][_0x39b4('0x23')][_0x39b4('0x96')];_0x2fbdd0[_0x3d2e0b][_0x39b4('0x7c')]=_0x2fbdd0[_0x241610]['id'],_0x2fbdd0[_0x241610]['pairId']=_0x2fbdd0[_0x3d2e0b]['id'];}else _0x2fbdd0[_0x241610][_0x39b4('0x23')][_0x39b4('0x96')]=_0x241610,_0x2fbdd0[_0x241610]['item'][_0x39b4('0xbe')]=_0x241610,_0x2fbdd0[_0x241610]['pairId']=null;}_0x2fbdd0[_0x241610][_0x39b4('0xa9')]||(_0x2fbdd0[_0x241610][_0x39b4('0xa9')]=[],_0x2fbdd0[_0x241610][_0x39b4('0xab')]=[]);}}['_markInsertions'](_0x14b04e,_0x2c579f){const _0x5111b7=_0x14b04e[_0x39b4('0x54')](_0x34f6bb=>!_0x34f6bb['isAdded']);for(let _0x3e73b6=0x0;_0x3e73b6<_0x2c579f['length'];_0x3e73b6++)_0x2c579f[_0x3e73b6][_0x39b4('0x28')]&&(_0x5111b7[_0x3e73b6][_0x39b4('0x28')]=_0x2c579f[_0x3e73b6][_0x39b4('0x28')]);}[_0x39b4('0x3b')](_0x4a1832){const _0x35d14d=JSON[_0x39b4('0x5d')](_0x4a1832),_0x1e7930=this[_0x39b4('0x10e')][_0x39b4('0x60')][_0x39b4('0x51')][_0x39b4('0x86')],_0xd55437=new _0x31be0b(_0x1e7930,_0x35d14d[_0x39b4('0xdd')](_0x3bec1f=>this[_0x39b4('0x89')](_0x3bec1f)));return this['editor']['data']['toModel'](_0xd55437);}[_0x39b4('0x89')](_0xc210b5){const _0x23c283=this[_0x39b4('0x10e')][_0x39b4('0x60')][_0x39b4('0x51')][_0x39b4('0x86')];if(_0x39b4('0xf3')==typeof _0xc210b5)return new _0x3d0d3a(_0x23c283,_0xc210b5);{const _0x51fb76=_0xc210b5[_0x39b4('0x69')][_0x39b4('0xdd')](_0x22d54c=>this[_0x39b4('0x89')](_0x22d54c));return new(tt[_0xc210b5[(_0x39b4('0x120'))]]||_0x18e596)(_0x23c283,_0xc210b5['name'],_0xc210b5[_0x39b4('0x3f')],_0x51fb76);}}[_0x39b4('0x1f')](_0x17da50,_0x39d626=null){const _0x262a11=this['repository'][_0x39b4('0xb4')](_0x17da50),_0x19b6fd=_0x39d626?this['repository']['getRevision'](_0x39d626):null,_0x422abe=this['_getRevisionsRange'](_0x262a11,_0x19b6fd),_0x15945d=_0x422abe[_0x422abe[_0x39b4('0xb6')]-0x1],_0x5e3100=new Map(),_0x32d08a={'model':{},'attributes':{},'changes':[]},_0x58f820=new Set(),_0x52583b=new Map();for(let _0x1b0994=_0x422abe[_0x39b4('0xb6')]-0x1;_0x1b0994>=0x0;_0x1b0994--){const _0x135700=_0x422abe[_0x1b0994];for(const _0x142110 of Object[_0x39b4('0x3d')](_0x135700[_0x39b4('0xff')]))if(_0x135700[_0x39b4('0xff')][_0x142110][_0x39b4('0x45')]){const _0x5113ab=_0x135700[_0x39b4('0xff')][_0x142110][_0x39b4('0x45')];_0x5113ab[_0x39b4('0x11a')]?(_0x58f820['add'](_0x142110),_0x52583b[_0x39b4('0xd8')](_0x142110)&&_0x52583b[_0x39b4('0x1e')](_0x142110)['userId']==_0x5113ab[_0x39b4('0x81')]?_0x52583b['delete'](_0x142110):_0x52583b['set'](_0x142110,_0x5113ab)):_0x52583b[_0x39b4('0xd8')](_0x142110)?(_0x58f820[_0x39b4('0x9b')](_0x142110),_0x52583b[_0x39b4('0x9b')](_0x142110)):(_0x58f820[_0x39b4('0x79')](_0x142110),_0x52583b[_0x39b4('0x2b')](_0x142110,_0x5113ab));}else _0x58f820[_0x39b4('0x79')](_0x142110);}for(const _0x33d17b of _0x58f820){const _0x11e04a=_0x52583b[_0x39b4('0xd8')](_0x33d17b)&&!_0x52583b['get'](_0x33d17b)[_0x39b4('0x11a')];let _0x166c35=_0x11e04a?_0x422abe[_0x39b4('0xb6')]-0x1:0x0;const _0x3f5040=_0x11e04a?-0x1:0x1;for(;_0x422abe[_0x166c35];){const _0x433361=_0x422abe[_0x166c35];if(_0x433361[_0x39b4('0xff')][_0x33d17b]){const _0x70213c=_0x11e04a?_0x433361['diffData'][_0x33d17b][_0x39b4('0xb7')]:_0x433361[_0x39b4('0xff')][_0x33d17b][_0x39b4('0xb9')];_0x32d08a[_0x39b4('0x3f')][_0x33d17b]=_0x70213c?_0xdc49c9(_0x70213c):{};break;}_0x166c35+=_0x3f5040;}}for(const _0x3569c6 of _0x422abe){_0x3569c6[_0x39b4('0x49')]={};for(const _0x5826c3 of _0x3569c6[_0x39b4('0xda')])_0x5e3100['set'](_0x5826c3['id'],_0x5826c3);for(const _0x4fc39c of _0x58f820){const _0x2afbf0=_0x3569c6[_0x39b4('0xff')][_0x4fc39c]?_0x3569c6['diffData'][_0x4fc39c]['insertions']:'[]',_0x353d7c=_0x3569c6[_0x39b4('0xff')][_0x4fc39c]?_0x3569c6[_0x39b4('0xff')][_0x4fc39c]['deletions']:'[]';_0x3569c6[_0x39b4('0x49')][_0x4fc39c]={'insertions':this[_0x39b4('0x3b')](_0x2afbf0),'deletions':this['_makeModelFromViewString'](_0x353d7c)};}}for(const _0x389405 of _0x58f820){let _0x479993=null,_0x274993=0x0;const _0x35b3b5=new Map(Array['from'](_0x262a11[_0x39b4('0x49')][_0x389405][_0x39b4('0xe0')][_0x39b4('0x42')])[_0x39b4('0x54')](([_0x5b8793])=>!_0x5b8793[_0x39b4('0xbc')](_0x39b4('0x39'))));let _0x26e37e=0x0;for(const _0x2bde04 of _0x422abe){const _0x29257b=this[_0x39b4('0xcb')](_0x2bde04[_0x39b4('0x49')][_0x389405][_0x39b4('0xe0')]);_0x2bde04==_0x262a11?(_0x479993=_0x29257b,_0x274993=_0x479993['length'],_0x479993[_0x39b4('0x31')](_0x39b95a=>{_0x39b95a['id']=_0x26e37e++;}),this[_0x39b4('0xe8')](_0x479993)):this[_0x39b4('0x59')](_0x479993,_0x29257b);const _0x1ee397=_0x479993[_0x39b4('0x54')](_0x2ac290=>!_0x2ac290[_0x39b4('0x28')])[_0x39b4('0xdd')](_0x5d1f0c=>_0x5d1f0c['id']);let _0x3acb88=0x0;const _0x4c78dc=this[_0x39b4('0xcb')](_0x2bde04[_0x39b4('0x49')][_0x389405][_0x39b4('0xc0')]);_0x4c78dc[_0x39b4('0x31')](_0x547fc1=>{_0x547fc1[_0x39b4('0x21')]?_0x547fc1['id']=_0x274993++:_0x547fc1['id']=_0x1ee397[_0x3acb88++];}),this['_processTape'](_0x4c78dc),this['_setDistance'](_0x479993,_0x39b4('0x28')),this[_0x39b4('0x107')](_0x4c78dc,'isRemoved'),_0x2bde04==_0x262a11&&this[_0x39b4('0xc1')](_0x479993,_0x35b3b5),_0x479993=this[_0x39b4('0x7b')](_0x479993,_0x4c78dc),this[_0x39b4('0xea')](_0x479993),this[_0x39b4('0x107')](_0x479993,_0x39b4('0x21'));}_0x479993=_0x479993['filter'](_0x222288=>!(_0x222288[_0x39b4('0x28')]&&_0x222288[_0x39b4('0x21')]));const _0x153bf7=new Map(_0x15945d[_0x39b4('0x49')][_0x389405][_0x39b4('0xc0')][_0x39b4('0x42')]),_0x4b28ba=new Set(_0x35b3b5[_0x39b4('0x3d')]());for(const _0x31cdd1 of _0x153bf7['keys']())_0x4b28ba[_0x39b4('0x9b')](_0x31cdd1);this['_markSuggestions'](_0x479993,_0x4b28ba),this['_fixObsoleteTags'](_0x479993),_0x479993=this[_0x39b4('0x6b')](_0x479993),_0x479993=this[_0x39b4('0x90')](_0x479993),_0x479993=this[_0x39b4('0x40')](_0x479993);const {root:_0x3e9a13,changes:_0x111ba5}=this[_0x39b4('0x11d')](_0x479993,_0x5e3100,_0x389405);_0x32d08a[_0x39b4('0x49')][_0x389405]=_0x3e9a13;const _0x47e32f=_0x52583b[_0x39b4('0x1e')](_0x389405);if(_0x47e32f){const _0x1dc239=_0x5e3100[_0x39b4('0x1e')](_0x47e32f[_0x39b4('0x81')]),_0x1b136c=new _0x104c6d({'author':_0x1dc239,'type':_0x47e32f['isAttached']?_0x39b4('0x79'):_0x39b4('0x1b'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x389405});_0x111ba5[_0x39b4('0x2f')](_0x1b136c),_0x32d08a[_0x39b4('0x3f')][_0x389405][_0x39b4('0x6d')]=_0x1b136c['id'];}_0x32d08a[_0x39b4('0xaa')]=_0x32d08a[_0x39b4('0xaa')][_0x39b4('0x100')](_0x111ba5);}return _0x32d08a;}['_markMarkers'](_0x5301f3,_0x54079c){for(let _0x471174=0x0;_0x471174<_0x5301f3[_0x39b4('0xb6')];_0x471174++)for(const [_0x3670d7,_0x363c19]of _0x54079c)_0x363c19['start'][_0x39b4('0xba')](_0x5301f3[_0x471174][_0x39b4('0x105')])&&_0x5301f3[_0x471174][_0x39b4('0xa9')][_0x39b4('0x8')](_0x3670d7),_0x363c19['end'][_0x39b4('0xba')](_0x5301f3[_0x471174][_0x39b4('0x9c')])&&_0x5301f3[_0x471174][_0x39b4('0xab')][_0x39b4('0x8')](_0x3670d7);}[_0x39b4('0x7b')](_0x108831,_0x13d673){let _0x350903=[],_0x2ca012=0x0,_0x3ae73b=0x0;for(;_0x2ca012<_0x108831['length']||_0x3ae73b<_0x13d673[_0x39b4('0xb6')];){const _0x2537a7=_0x108831[_0x2ca012]||{},_0x13bb46=_0x13d673[_0x3ae73b]||{};if(_0x2537a7['id']==_0x13bb46['id'])_0x2ca012++,_0x3ae73b++,_0x350903['push'](_0x2537a7);else{if(_0x13bb46[_0x39b4('0x21')]&&_0x2537a7['isAdded']){const {commonTape:_0x3a60f9,iEnd:_0x555359,jEnd:_0x3e2850}=this['_threeWayMerge'](_0x108831,_0x2ca012,_0x13d673,_0x3ae73b);_0x350903=_0x350903[_0x39b4('0x100')](_0x3a60f9),_0x2ca012=_0x555359,_0x3ae73b=_0x3e2850;}else _0x13bb46[_0x39b4('0x21')]?(_0x3ae73b++,_0x350903[_0x39b4('0x8')](_0x13bb46)):(_0x2ca012++,_0x350903[_0x39b4('0x8')](_0x2537a7));}}return _0x350903;}[_0x39b4('0x2a')](_0x5e5fbc,_0x1fffa5){const _0x4eeb4c=[];for(let _0x3d0ee3=0x0;_0x3d0ee3<_0x5e5fbc[_0x39b4('0xb6')];_0x3d0ee3++){for(let _0x1b6f6d=0x0;_0x1b6f6d<_0x5e5fbc[_0x3d0ee3][_0x39b4('0xa9')][_0x39b4('0xb6')];_0x1b6f6d++){const _0x4b0bf0=_0x5e5fbc[_0x3d0ee3]['markersStart'][_0x1b6f6d];if(!_0x1fffa5[_0x39b4('0xd8')](_0x4b0bf0))continue;const {group:_0x308df1,type:_0x239b40,authorId:_0x281f70}=_0x535471(_0x4b0bf0);_0x39b4('0x26')!=_0x308df1||_0x39b4('0xc')!=_0x239b40&&'deletion'!=_0x239b40||(_0x4eeb4c[_0x39b4('0x2f')]({'type':_0x239b40,'name':_0x4b0bf0,'userId':_0x281f70}),_0x5e5fbc[_0x3d0ee3][_0x39b4('0xa9')][_0x39b4('0x93')](_0x1b6f6d,0x1),_0x1b6f6d--);}_0x50aa45(_0x5e5fbc[_0x3d0ee3]);for(let _0x5bb6b0=0x0;_0x5bb6b0<_0x5e5fbc[_0x3d0ee3][_0x39b4('0xab')]['length'];_0x5bb6b0++){const _0x4b03bf=_0x5e5fbc[_0x3d0ee3][_0x39b4('0xab')][_0x5bb6b0];if(!_0x1fffa5[_0x39b4('0xd8')](_0x4b03bf))continue;const {group:_0x1855f7,type:_0x3dd9b9}=_0x535471(_0x4b03bf);if('revision-suggestion'!=_0x1855f7||_0x39b4('0xc')!=_0x3dd9b9&&_0x39b4('0x82')!=_0x3dd9b9)continue;_0x5e5fbc[_0x3d0ee3][_0x39b4('0xab')][_0x39b4('0x93')](_0x5bb6b0,0x1),_0x5bb6b0--;const _0x3a6c71=_0x4eeb4c['findIndex'](_0x45f820=>_0x45f820[_0x39b4('0xd1')]==_0x4b03bf);_0x3a6c71>-0x1&&_0x4eeb4c[_0x39b4('0x93')](_0x3a6c71,0x1);}}function _0x535471(_0x6f2c1a){const _0x3fd4e0=_0x6f2c1a[_0x39b4('0x87')](':');return{'group':_0x3fd4e0[0x0],'type':_0x3fd4e0[0x1],'subType':_0x3fd4e0[_0x39b4('0xb6')]>=0x5?_0x3fd4e0[0x2]:null,'id':_0x3fd4e0[_0x39b4('0xb6')]<0x5?_0x3fd4e0[0x2]:_0x3fd4e0[0x3],'authorId':_0x3fd4e0[_0x39b4('0xb6')]<0x5?_0x3fd4e0[0x3]:_0x3fd4e0[0x4],'markerCount':0x6==_0x3fd4e0[_0x39b4('0xb6')]?_0x3fd4e0[0x5]:null};}function _0x50aa45(_0xa30e10){for(let _0x1594ff=0x0;_0x1594ff<_0x4eeb4c[_0x39b4('0xb6')];_0x1594ff++){if(_0xa30e10[_0x39b4('0x28')]&&'insertion'==_0x4eeb4c[_0x1594ff][_0x39b4('0x120')])return _0xa30e10['isAddSuggestion']=_0x4eeb4c[_0x1594ff],void delete _0xa30e10[_0x39b4('0x28')];if(!_0xa30e10['isAdded']&&!_0xa30e10[_0x39b4('0x21')]&&_0x39b4('0x82')==_0x4eeb4c[_0x1594ff][_0x39b4('0x120')])return void(_0xa30e10[_0x39b4('0xe')]=_0x4eeb4c[_0x1594ff]);}}}[_0x39b4('0x107')](_0x480c21,_0x216d47){let _0x54a253=0x0,_0x5cd97f=!0x1;const _0xb263fb=new Map();for(const _0x5a009b of _0x480c21)_0x5a009b[_0x216d47]?_0x5cd97f&&(_0x54a253++,_0x5cd97f=!0x1):(_0x54a253++,_0x5cd97f=!0x0),_0xb263fb[_0x39b4('0x2b')](_0x5a009b['id'],_0x54a253);for(let _0x1fe36d=0x0;_0x1fe36d<_0x480c21['length'];_0x1fe36d++){if(_0x39b4('0x21')==_0x216d47&&_0x480c21[_0x1fe36d][_0x39b4('0x28')]||_0x39b4('0x28')==_0x216d47&&_0x480c21[_0x1fe36d][_0x39b4('0x21')])continue;if('text'==_0x480c21[_0x1fe36d][_0x39b4('0x120')]){_0x480c21[_0x1fe36d]['distance']=0x0;continue;}const _0x5d6a4a=_0xb263fb[_0x39b4('0x1e')](_0x480c21[_0x1fe36d][_0x39b4('0x7c')]),_0x234e16=_0xb263fb[_0x39b4('0x1e')](_0x480c21[_0x1fe36d]['id']);_0x480c21[_0x1fe36d][_0x39b4('0x58')]=_0x5d6a4a-_0x234e16;}}[_0x39b4('0x66')](_0x3376c1,_0x203b2b,_0x3d2e33=!0x1){const _0x205e47=[];let _0x1cd838=this[_0x39b4('0x3c')][_0x39b4('0x35')](_0x3376c1),_0x57e02f=this['repository'][_0x39b4('0x35')](_0x203b2b);for(-0x1==_0x57e02f&&(_0x57e02f=this['repository']['_revisions'][_0x39b4('0xb6')],_0x3d2e33=!0x1);_0x1cd838<_0x57e02f;)_0x205e47['push'](this['repository'][_0x39b4('0xb4')](_0x1cd838)),_0x1cd838++;return _0x3d2e33&&_0x205e47[_0x39b4('0x8')](this[_0x39b4('0x3c')][_0x39b4('0xb4')](_0x1cd838)),_0x205e47;}[_0x39b4('0x99')](_0x41ab76,_0xc7aace,_0x33471d,_0x4270f4){const _0x28773d=this['editor'][_0x39b4('0x49')][_0x39b4('0x27')];let _0x324fa9=_0xc7aace;for(;_0x41ab76[_0x324fa9]&&_0x41ab76[_0x324fa9][_0x39b4('0x28')];)_0x324fa9++;let _0x37ad12=_0x4270f4;for(;_0x33471d[_0x37ad12]&&_0x33471d[_0x37ad12][_0x39b4('0x21')];)_0x37ad12++;_0xe981f4(_0x41ab76,_0xc7aace,_0x324fa9),_0xe981f4(_0x33471d,_0x4270f4,_0x37ad12);const _0x4338e6=_0x33471d[_0x39b4('0x102')](_0x4270f4,_0x37ad12)[_0x39b4('0x100')](_0x41ab76[_0x39b4('0x102')](_0xc7aace,_0x324fa9));return _0x4338e6[_0x39b4('0xa6')]((_0x9d6602,_0x444ffe)=>_0x9d6602['side']!=_0x444ffe[_0x39b4('0x2e')]?_0x9d6602[_0x39b4('0x2e')]-_0x444ffe[_0x39b4('0x2e')]:_0x9d6602[_0x39b4('0x47')]!=_0x444ffe[_0x39b4('0x47')]?_0x9d6602[_0x39b4('0x47')]-_0x444ffe[_0x39b4('0x47')]:_0x9d6602[_0x39b4('0x58')]!=_0x444ffe[_0x39b4('0x58')]?_0x444ffe[_0x39b4('0x58')]-_0x9d6602['distance']:!!_0x9d6602[_0x39b4('0x28')]!=!!_0x444ffe[_0x39b4('0x28')]?-0x1==_0x9d6602[_0x39b4('0x2e')]||0x0==_0x9d6602[_0x39b4('0x2e')]?_0x9d6602['isAdded']?-0x1:0x1:_0x9d6602[_0x39b4('0x28')]?0x1:-0x1:_0x9d6602[_0x39b4('0x10f')]-_0x444ffe[_0x39b4('0x10f')]),{'commonTape':_0x4338e6,'iEnd':_0x324fa9,'jEnd':_0x37ad12};function _0xe981f4(_0x28b23a,_0x5a446b,_0x3e0d2d){let _0x3f54f7=-0x1,_0x11a21d=Number[_0x39b4('0x9f')],_0x21499f=!0x0;for(let _0x313785=_0x5a446b;_0x313785<_0x3e0d2d;_0x313785++)if(_0x28773d[_0x39b4('0xdc')](_0x28b23a[_0x313785][_0x39b4('0x23')])||(_0x21499f=!0x1),_0x28b23a[_0x313785][_0x39b4('0x23')]['startIndex']<_0x5a446b&&(_0x3f54f7=_0x313785),_0x28b23a[_0x313785][_0x39b4('0x23')][_0x39b4('0xbe')]>=_0x3e0d2d){_0x11a21d=_0x313785;break;}_0x21499f&&(_0x3f54f7=_0x3e0d2d-0x1);for(let _0x129a3c=_0x5a446b;_0x129a3c<_0x3e0d2d;_0x129a3c++)_0x28b23a[_0x129a3c]['side']=_0x129a3c<=_0x3f54f7?-0x1:_0x129a3c<_0x11a21d?0x0:0x1,_0x28b23a[_0x129a3c][_0x39b4('0x10f')]=_0x129a3c;let _0x10277d=0x0;for(let _0x236166=_0x5a446b;_0x236166<=_0x3f54f7;_0x236166++)0x0==_0x28b23a[_0x236166][_0x39b4('0x58')]?_0x28b23a[_0x236166][_0x39b4('0x47')]=_0x10277d:(_0x10277d++,_0x28b23a[_0x236166][_0x39b4('0x47')]=_0x10277d,_0x10277d++);for(let _0x29e568=_0x5a446b;_0x29e568<_0x3e0d2d;_0x29e568++)0x0==_0x28b23a[_0x29e568][_0x39b4('0x2e')]&&(_0x28b23a[_0x29e568][_0x39b4('0x47')]=_0x10277d);_0x10277d=0x0;for(let _0x60e4d4=_0x3e0d2d-0x1;_0x60e4d4>=_0x11a21d;_0x60e4d4--)0x0==_0x28b23a[_0x60e4d4]['distance']?_0x28b23a[_0x60e4d4][_0x39b4('0x47')]=_0x10277d:(_0x10277d--,_0x28b23a[_0x60e4d4][_0x39b4('0x47')]=_0x10277d,_0x10277d--);}}[_0x39b4('0x110')](_0x125446){const _0x52e972=new Map(),_0x403ccf=this[_0x39b4('0x10e')]['model'][_0x39b4('0x27')];for(let _0x14ee25=0x1;_0x14ee25<_0x125446['length'];_0x14ee25++){let _0x295e8c,_0x5a6cda,_0xd7900d;const _0x5e8b3b=_0x125446[_0x14ee25],_0x55ddc4=_0x125446[_0x14ee25-0x1];if(_0x39b4('0x75')==_0x5e8b3b[_0x39b4('0x120')])continue;if(_0x5e8b3b[_0x39b4('0x120')]!=_0x55ddc4['type'])continue;if(!_0x403ccf[_0x39b4('0x124')](_0x55ddc4['item'])||_0x403ccf['isLimit'](_0x55ddc4[_0x39b4('0x23')]))continue;if(!_0x403ccf['isBlock'](_0x5e8b3b[_0x39b4('0x23')])||_0x403ccf[_0x39b4('0xe9')](_0x5e8b3b[_0x39b4('0x23')]))continue;if((_0x125446[_0x14ee25][_0x39b4('0x28')]||_0x125446[_0x14ee25][_0x39b4('0x77')])&&_0x125446[_0x14ee25-0x1]['isRemoved'])_0x295e8c=_0x125446[_0x14ee25],_0x5a6cda=_0x125446[_0x14ee25-0x1],_0xd7900d=_0x14ee25-0x1;else{if(!_0x125446[_0x14ee25]['isRemoved']||!_0x125446[_0x14ee25-0x1][_0x39b4('0x28')]&&!_0x125446[_0x14ee25-0x1][_0x39b4('0x77')])continue;_0x295e8c=_0x125446[_0x14ee25-0x1],_0x5a6cda=_0x125446[_0x14ee25],_0xd7900d=_0x14ee25;}const _0x4bf4a6=_0x295e8c[_0x39b4('0x47')]==_0x5a6cda['level'],_0x3b37be=Math[_0x39b4('0xf2')](_0x295e8c[_0x39b4('0x47')])<Math[_0x39b4('0xf2')](_0x5a6cda['level'])&&0x0==_0x5a6cda['distance'];(_0x4bf4a6||_0x3b37be)&&(_0x52e972[_0x39b4('0x2b')](_0x5a6cda['id'],_0x295e8c['id']),_0x125446['splice'](_0xd7900d,0x1),_0x14ee25--,_0x295e8c[_0x39b4('0x28')]=!0x1);}for(let _0x22e843=0x0;_0x22e843<_0x125446[_0x39b4('0xb6')];_0x22e843++)_0x52e972[_0x39b4('0xd8')](_0x125446[_0x22e843][_0x39b4('0x7c')])&&(_0x125446[_0x22e843][_0x39b4('0x7c')]=_0x52e972['get'](_0x125446[_0x22e843]['pairId']));}[_0x39b4('0x6b')](_0x59beb9){const _0x9ea651=new Set(_0x59beb9['map'](_0xa05014=>_0xa05014['id']));for(let _0x28ab54=0x0;_0x28ab54<_0x59beb9['length'];_0x28ab54++)_0x9ea651['has'](_0x59beb9[_0x28ab54][_0x39b4('0x7c')])||0x0==_0x59beb9[_0x28ab54]['distance']||(_0x59beb9[_0x28ab54][_0x39b4('0x91')]=!0x0);return _0x59beb9[_0x39b4('0x54')](_0x110e7c=>!_0x110e7c['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2b1d1e){const _0x1f3cd4=new Set();for(let _0x366c67=0x0;_0x366c67<_0x2b1d1e[_0x39b4('0xb6')];_0x366c67++){if(_0x1f3cd4[_0x39b4('0xd8')](_0x2b1d1e[_0x366c67]['id'])&&_0x2b1d1e[_0x366c67]['isRemoved']&&(_0x2b1d1e[_0x366c67]['isIncorrect']=!0x0),_0x2b1d1e[_0x366c67][_0x39b4('0x91')])continue;if(0x0==_0x2b1d1e[_0x366c67][_0x39b4('0x58')])continue;if(_0x39b4('0x19')!=_0x2b1d1e[_0x366c67]['type'])continue;if(null==_0x2b1d1e[_0x366c67]['pairId'])continue;let _0x5bd4bf=_0x366c67+0x1,_0x33c59d=0x0;for(;_0x2b1d1e[_0x5bd4bf]['id']!=_0x2b1d1e[_0x366c67][_0x39b4('0x7c')];)_0x39b4('0x19')==_0x2b1d1e[_0x5bd4bf]['type']?_0x33c59d++:_0x39b4('0xfe')==_0x2b1d1e[_0x5bd4bf][_0x39b4('0x120')]&&_0x33c59d--,_0x5bd4bf++;if(0x0!=_0x33c59d){if(_0x2b1d1e[_0x366c67][_0x39b4('0x21')])_0x2b1d1e[_0x366c67][_0x39b4('0x91')]=!0x0;else for(;_0x5bd4bf!=_0x366c67;)_0x2b1d1e[_0x5bd4bf][_0x39b4('0x21')]&&0x0!=_0x2b1d1e[_0x5bd4bf][_0x39b4('0x58')]&&(_0x2b1d1e[_0x5bd4bf][_0x39b4('0x91')]=!0x0,_0x1f3cd4[_0x39b4('0x79')](_0x2b1d1e[_0x5bd4bf]['pairId'])),_0x5bd4bf--;}}return _0x2b1d1e['filter'](_0x197699=>!_0x197699[_0x39b4('0x91')]);}['_removeUnsupportedChanges'](_0x467158){const _0x106633=this[_0x39b4('0x10e')][_0x39b4('0x49')][_0x39b4('0x27')];for(let _0xed2185=0x0;_0xed2185<_0x467158[_0x39b4('0xb6')];_0xed2185++){if(!(_0x467158[_0xed2185][_0x39b4('0x28')]||_0x467158[_0xed2185][_0x39b4('0x77')]||_0x467158[_0xed2185]['isRemoved']||_0x467158[_0xed2185][_0x39b4('0xe')]))continue;if(0x0==_0x467158[_0xed2185][_0x39b4('0x58')])continue;const _0x20f509=_0x467158[_0xed2185][_0x39b4('0x23')];_0x106633['isBlock'](_0x20f509)||_0x106633[_0x39b4('0xe9')](_0x20f509)||(_0x467158[_0xed2185][_0x39b4('0x28')]&&delete _0x467158[_0xed2185][_0x39b4('0x28')],_0x467158[_0xed2185][_0x39b4('0x77')]&&delete _0x467158[_0xed2185][_0x39b4('0x77')],_0x467158[_0xed2185][_0x39b4('0xe')]&&delete _0x467158[_0xed2185]['isRemoveSuggestion'],_0x467158[_0xed2185]['isRemoved']&&(_0x467158[_0xed2185][_0x39b4('0x91')]=!0x0));}return _0x467158[_0x39b4('0x54')](_0x22a989=>!_0x22a989[_0x39b4('0x91')]);}[_0x39b4('0x11d')](_0x57e783,_0x125a10,_0x20aa32){const _0x3ae8ac=new _0x1eb8c7(),_0x7fb39f=[],_0x78050a=new Map(),_0x9f0387=this[_0x39b4('0x10e')][_0x39b4('0x49')],_0x17a3de=_0x9f0387[_0x39b4('0x27')],_0x2728b6=[_0x3ae8ac],_0x2fadb9={},_0x49a13b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4eb79d=null;const _0x2317d4=[0x0];for(let _0x29a58f=0x0;_0x29a58f<_0x57e783['length'];_0x29a58f++){let _0x400706,_0x4e4b98;if('elementStart'===_0x57e783[_0x29a58f][_0x39b4('0x120')]){_0x400706=_0x9f0387[_0x39b4('0x128')](_0x3ae8ac,_0x2317d4);const _0x4ecc73=new _0x449a01(_0x57e783[_0x29a58f]['item'][_0x39b4('0xd1')],_0x57e783[_0x29a58f][_0x39b4('0x23')][_0x39b4('0x3e')]());_0x2728b6[0x0][_0x39b4('0xee')](_0x4ecc73),_0x2317d4[_0x39b4('0x8')](0x0),_0x2728b6[_0x39b4('0x2f')](_0x4ecc73),_0x4e4b98=_0x9f0387[_0x39b4('0x128')](_0x3ae8ac,_0x2317d4),_0x4eb79d=null;}else{if('elementEnd'===_0x57e783[_0x29a58f][_0x39b4('0x120')])_0x2728b6['shift'](),_0x400706=_0x9f0387[_0x39b4('0x128')](_0x3ae8ac,_0x2317d4),_0x2317d4[_0x39b4('0x4c')](),_0x2317d4[_0x2317d4[_0x39b4('0xb6')]-0x1]++,_0x4e4b98=_0x9f0387[_0x39b4('0x128')](_0x3ae8ac,_0x2317d4),_0x4eb79d=null;else{if(_0x400706=_0x9f0387[_0x39b4('0x128')](_0x3ae8ac,_0x2317d4),_0x4eb79d&&_0x1c21bd(_0x4eb79d,_0x57e783[_0x29a58f][_0x39b4('0x23')]))_0x4eb79d[_0x39b4('0xa7')]+=_0x57e783[_0x29a58f][_0x39b4('0x23')][_0x39b4('0x62')];else{const _0x219483=new _0x58de0d(_0x57e783[_0x29a58f]['item'][_0x39b4('0x62')],_0x57e783[_0x29a58f][_0x39b4('0x23')][_0x39b4('0x3e')]());_0x2728b6[0x0][_0x39b4('0xee')](_0x219483),_0x4eb79d=_0x219483;}_0x2317d4[_0x2317d4[_0x39b4('0xb6')]-0x1]+=_0x57e783[_0x29a58f][_0x39b4('0x23')][_0x39b4('0xcf')],_0x4e4b98=_0x9f0387[_0x39b4('0x128')](_0x3ae8ac,_0x2317d4);}}for(const _0x1704b6 of _0x57e783[_0x29a58f][_0x39b4('0xa9')])_0x78050a[_0x39b4('0x2b')](_0x1704b6,{'start':_0x400706,'end':null});_0x54de5a(_0x39b4('0xe'),_0x29a58f,_0x400706,_0x4e4b98),_0x54de5a(_0x39b4('0x77'),_0x29a58f,_0x400706,_0x4e4b98),_0x54de5a(_0x39b4('0x21'),_0x29a58f,_0x400706,_0x4e4b98),_0x54de5a(_0x39b4('0x28'),_0x29a58f,_0x400706,_0x4e4b98);for(const _0x3fa339 of _0x57e783[_0x29a58f][_0x39b4('0xab')]){_0x78050a[_0x39b4('0x1e')](_0x3fa339)[_0x39b4('0x7a')]=_0x4e4b98;}}for(const [_0x963612,_0x17f148]of _0x78050a){const _0x762980=this[_0x39b4('0x10e')]['model'][_0x39b4('0x9')](_0x17f148[_0x39b4('0xd7')],_0x17f148[_0x39b4('0x7a')]);_0x3ae8ac[_0x39b4('0x42')][_0x39b4('0x2b')](_0x963612,_0x762980);}return _0x7fb39f['sort']((_0x51dad8,_0x28fc7b)=>{const _0x454704=_0x3ae8ac['markers'][_0x39b4('0x1e')](_0x39b4('0x39')+_0x51dad8['id']),_0x57a89d=_0x3ae8ac[_0x39b4('0x42')][_0x39b4('0x1e')](_0x39b4('0x39')+_0x28fc7b['id']);return _0x454704[_0x39b4('0xd7')]['isBefore'](_0x57a89d[_0x39b4('0xd7')])?-0x1:_0x454704[_0x39b4('0xd7')][_0x39b4('0xf7')](_0x57a89d[_0x39b4('0xd7')])?0x1:_0x454704[_0x39b4('0x7a')][_0x39b4('0x25')](_0x57a89d[_0x39b4('0x7a')])?-0x1:_0x454704[_0x39b4('0x7a')][_0x39b4('0xf7')](_0x57a89d[_0x39b4('0x7a')])?0x1:'add'===_0x51dad8['type']?-0x1:0x1;}),{'root':_0x3ae8ac,'changes':_0x7fb39f};function _0x54de5a(_0x17c50b,_0x4bcbbb,_0x53b0be,_0xe13738){const _0x3ca7de=!!_0x57e783[_0x4bcbbb][_0x17c50b],_0x7c77c7=_0x3ca7de?_0x57e783[_0x4bcbbb][_0x17c50b][_0x39b4('0x81')]:null,_0x3a6cac=_0x4bcbbb===_0x57e783[_0x39b4('0xb6')]-0x1,_0x461ea6=_0x49a13b[_0x17c50b][0x0],_0x3e42b2=_0x17a3de[_0x39b4('0x24')](_0x57e783[_0x4bcbbb][_0x39b4('0x23')]);!_0x2fadb9[_0x17c50b]&&_0x3ca7de?_0x2fadb9[_0x17c50b]={'start':_0x53b0be,'tapeItem':_0x57e783[_0x4bcbbb],'userId':_0x7c77c7,'type':_0x17c50b}:_0x2fadb9[_0x17c50b]&&!_0x3ca7de?(_0x2fadb9[_0x17c50b][_0x39b4('0x7a')]=_0x53b0be,_0x3d0dd9(_0x2fadb9[_0x17c50b]),_0x2fadb9[_0x17c50b]=null):_0x2fadb9[_0x17c50b]&&_0x3ca7de&&_0x2fadb9[_0x17c50b][_0x39b4('0x81')]!==_0x7c77c7&&(_0x2fadb9[_0x17c50b]['end']=_0x53b0be,_0x461ea6&&_0x461ea6[_0x39b4('0x81')]===_0x2fadb9[_0x17c50b][_0x39b4('0x81')]||_0x3d0dd9(_0x2fadb9[_0x17c50b]),_0x2fadb9[_0x17c50b]={'start':_0x53b0be,'tapeItem':_0x57e783[_0x4bcbbb],'userId':_0x7c77c7,'type':_0x17c50b}),_0x2fadb9[_0x17c50b]&&_0x3e42b2&&(_0x39b4('0x19')!==_0x57e783[_0x4bcbbb][_0x39b4('0x120')]||_0x461ea6&&_0x461ea6['userId']===_0x7c77c7||_0x49a13b[_0x17c50b]['unshift']({'userId':_0x7c77c7,'object':_0x57e783[_0x4bcbbb][_0x39b4('0x23')],'change':_0x2fadb9[_0x17c50b]}),_0x39b4('0xfe')===_0x57e783[_0x4bcbbb][_0x39b4('0x120')]&&_0x461ea6&&_0x461ea6[_0x39b4('0x5b')]===_0x57e783[_0x4bcbbb][_0x39b4('0x23')]&&(_0x49a13b[_0x17c50b][_0x39b4('0x104')](),_0x2fadb9[_0x17c50b]=_0x461ea6['change'])),_0x2fadb9[_0x17c50b]&&_0x3a6cac&&(_0x2fadb9[_0x17c50b]['end']=_0xe13738,_0x3d0dd9(_0x2fadb9[_0x17c50b]),_0x2fadb9[_0x17c50b]=null);}function _0x3d0dd9({start:_0x2e7552,end:_0x1dea93,tapeItem:_0x53f1f3,userId:_0x1c1536,type:_0x26a1a8}){const _0x2cca0d=_0x53f1f3['item'],_0x4745b3=_0x9f0387[_0x39b4('0x27')][_0x39b4('0x124')](_0x2cca0d)&&!_0x9f0387[_0x39b4('0x27')][_0x39b4('0xe9')](_0x2cca0d),_0x43d95=_0x2e7552[_0x39b4('0x121')]==_0x1dea93['parent']&&_0x1dea93[_0x39b4('0x115')];if(_0x4745b3&&_0x43d95)return;const _0x4154ee=_0x9f0387[_0x39b4('0x9')](_0x2e7552,_0x1dea93),_0x42dcf4=_0x125a10[_0x39b4('0x1e')](_0x1c1536),_0x2ab142=new _0x104c6d({'author':_0x42dcf4,'type':_0x39b4('0x28')==_0x26a1a8||_0x39b4('0x77')==_0x26a1a8?_0x39b4('0x79'):'remove','data':{'isSuggestion':'isAddSuggestion'==_0x26a1a8||'isRemoveSuggestion'==_0x26a1a8},'createdAt':new Date(),'rootName':_0x20aa32});_0x7fb39f[_0x39b4('0x8')](_0x2ab142),_0x3ae8ac[_0x39b4('0x42')][_0x39b4('0x2b')]('revision:'+_0x2ab142['id'],_0x4154ee);}function _0x1c21bd(_0x5887c3,_0xd27312){const _0xcf99bf=_0x5887c3[_0x39b4('0x3e')](),_0x70af18=_0xd27312[_0x39b4('0x3e')]();for(const _0x4eef5c of _0xcf99bf){if(_0x4eef5c[0x1]!==_0xd27312[_0x39b4('0xf0')](_0x4eef5c[0x0]))return!0x1;_0x70af18['next']();}return _0x70af18['next']()[_0x39b4('0x5')];}}[_0x39b4('0xc9')](){this[_0x39b4('0x10e')][_0x39b4('0xf')][_0x39b4('0x1a')]('upcast')['dataToMarker']({'view':_0x39b4('0x80')}),this['editor'][_0x39b4('0xf')][_0x39b4('0x1a')](_0x39b4('0x123'))[_0x39b4('0xbb')]({'model':_0x39b4('0x80'),'view':_0x110552=>{const _0x546274=_0x110552[_0x39b4('0xe1')][_0x39b4('0x87')](':')[0x1],_0x472f16=this[_0x39b4('0x61')](_0x546274);if(!_0x472f16)return null;const _0x1362bd=_0x39b4('0x79')==_0x472f16[_0x39b4('0x120')]?_0x39b4('0xc'):_0x39b4('0x82'),_0x1cd8ce=[_0x39b4('0x17'),_0x39b4('0xfb')+_0x1362bd];return _0x472f16[_0x39b4('0x62')][_0x39b4('0xd5')]&&_0x1cd8ce['push'](_0x39b4('0xfb')+_0x1362bd+_0x39b4('0x29')),this[_0x39b4('0x74')]==_0x472f16&&_0x1cd8ce[_0x39b4('0x8')]('ck-suggestion-marker--active'),{'classes':_0x1cd8ce,'attributes':{'data-change-id':_0x546274}};}}),this[_0x39b4('0x10e')]['conversion'][_0x39b4('0x1a')]('upcast')['add'](_0x2602fa=>{_0x2602fa['on']('element:pre',(_0x4a53b0,_0x11ac54,_0x5001e8)=>{const _0x36d25f=_0x11ac54['viewItem'][_0x39b4('0x9a')](0x0);if(!_0x36d25f||!_0x36d25f['is'](_0x39b4('0x88'),_0x39b4('0xe4')))return;if(!_0x5001e8[_0x39b4('0x78')][_0x39b4('0x5f')](_0x36d25f,{'attributes':['vid_start','vid_end']}))return;const _0x493051=_0x11ac54[_0x39b4('0xf5')]['start'][_0x39b4('0x121')];_0x5001e8[_0x39b4('0x15')][_0x39b4('0xd2')](_0x39b4('0xfc'),_0x36d25f[_0x39b4('0xf0')](_0x39b4('0xfc')),_0x493051),_0x5001e8[_0x39b4('0x15')][_0x39b4('0xd2')](_0x39b4('0x22'),_0x36d25f[_0x39b4('0xf0')](_0x39b4('0x22')),_0x493051);},{'priority':_0x39b4('0xb3')});}),this['editor']['conversion'][_0x39b4('0x1a')]('upcast')[_0x39b4('0x79')](_0xed9717=>{_0xed9717['on'](_0x39b4('0x88'),(_0x3c258c,_0x2c5179,_0x3999c5)=>{if(!_0x3999c5[_0x39b4('0x78')][_0x39b4('0x5f')](_0x2c5179['viewItem'],{'attributes':['vid_start',_0x39b4('0x22')]}))return;if(_0x2c5179['modelRange']['isCollapsed'])return;const _0x6f5185=_0x2c5179[_0x39b4('0xf5')][_0x39b4('0xd7')][_0x39b4('0x121')];_0x6f5185[_0x39b4('0x10d')](_0x39b4('0xfc'))||_0x6f5185[_0x39b4('0x10d')]('vid')||(_0x3999c5[_0x39b4('0x15')][_0x39b4('0xd2')]('vid_start',_0x2c5179[_0x39b4('0x12b')][_0x39b4('0xf0')](_0x39b4('0xfc')),_0x6f5185),_0x3999c5[_0x39b4('0x15')][_0x39b4('0xd2')](_0x39b4('0x22'),_0x2c5179[_0x39b4('0x12b')][_0x39b4('0xf0')](_0x39b4('0x22')),_0x6f5185));},{'priority':_0x39b4('0xb3')});}),this[_0x39b4('0x10e')][_0x39b4('0xf')][_0x39b4('0x1a')]('upcast')[_0x39b4('0xc8')]({'view':{'name':_0x39b4('0x53'),'attributes':{'vid':!0x0}},'model':{'key':_0x39b4('0x6c'),'value':_0x399afc=>_0x399afc[_0x39b4('0xf0')](_0x39b4('0x6c'))}}),this['editor'][_0x39b4('0x49')][_0x39b4('0x27')]['on'](_0x39b4('0xdb'),(_0x412242,[,_0x4bb8fc])=>{[_0x39b4('0xfc'),_0x39b4('0x22'),_0x39b4('0x6c')][_0x39b4('0x6a')](_0x4bb8fc)&&(_0x412242[_0x39b4('0x52')]=!0x0,_0x412242[_0x39b4('0x44')]());},{'priority':_0x39b4('0xae')}),this[_0x39b4('0x10e')][_0x39b4('0xf')]['for'](_0x39b4('0x20'))[_0x39b4('0x79')](_0x22986a=>{_0x22986a['on'](_0x39b4('0xed'),(_0x3d3f3a,_0x134770,_0x184f9c)=>{if('\x20'!=_0x134770[_0x39b4('0x23')][_0x39b4('0x62')]||_0x134770[_0x39b4('0x23')][_0x39b4('0x12a')][_0x39b4('0xb2')]>0x1)return;if(!_0x184f9c[_0x39b4('0x78')][_0x39b4('0x5f')](_0x134770[_0x39b4('0x23')],_0x3d3f3a[_0x39b4('0xd1')]))return;const _0xbbdac8=_0x184f9c[_0x39b4('0x15')],_0x1caaf7=_0x184f9c[_0x39b4('0x34')][_0x39b4('0x122')](_0x134770[_0x39b4('0x11f')]);_0xbbdac8[_0x39b4('0xc6')](_0x1caaf7,_0xbbdac8[_0x39b4('0x101')](_0x39b4('0x53')));});}),this['editor'][_0x39b4('0xf')]['for'](_0x39b4('0x20'))[_0x39b4('0x10')]({'model':_0x39b4('0x80')}),this['editor'][_0x39b4('0x60')][_0x39b4('0x11')]['on'](_0x39b4('0x48'),function(_0x56100a){const _0x471eb9=_0x56100a['plugins'][_0x39b4('0x1e')](_0x39b4('0x103'));return(_0x4d4157,_0x3f2150,_0x8798a4)=>{const _0x40fba3=_0x3f2150['markerName']['split'](':')[0x1],_0x10ad62=_0x471eb9[_0x39b4('0x61')](_0x40fba3);if(!_0x10ad62)return null;const _0x137687=_0x39b4('0x79')==_0x10ad62['type']?_0x39b4('0x87'):_0x39b4('0xfa');if(!_0x8798a4['consumable'][_0x39b4('0xd6')](_0x3f2150['markerRange'],_0x4d4157[_0x39b4('0xd1')]))return;const _0x23ccb8=_0x3f2150['markerRange']['getWalker'](),_0x5bc60e=_0x3f2150[_0x39b4('0x10a')][_0x39b4('0xd7')],_0x4c5bab=_0x56100a[_0x39b4('0x49')][_0x39b4('0x27')];let _0x4e53e8=null,_0x5dffaf=null,_0x9b79a3=!0x1,_0x324121=!0x1;for(const _0x5a1870 of _0x23ccb8){const _0x2984e6=_0x5a1870[_0x39b4('0x23')];_0x9b79a3=_0x9b79a3||_0x4c5bab[_0x39b4('0x4a')](_0x2984e6);const _0x209dae=_0x8798a4[_0x39b4('0x34')][_0x39b4('0x85')](_0x2984e6);if(_0x209dae&&_0x209dae[_0x39b4('0x111')](_0x39b4('0x7')))return;'elementEnd'==_0x5a1870[_0x39b4('0x120')]&&(_0x4c5bab[_0x39b4('0x124')](_0x2984e6)&&!_0x4c5bab['isLimit'](_0x2984e6)&&(_0x2984e6[_0x39b4('0x12')]||_0x5bc60e[_0x39b4('0xeb')]?_0x4e53e8&&_0x4e53e8[_0x39b4('0x12a')]==_0x2984e6||(_0x4e53e8=_0x2984e6,_0x48e064(_0x5a1870[_0x39b4('0x105')]),_0x324121=!0x0):_0x5dffaf=_0x5dffaf||_0x5a1870[_0x39b4('0x105')]));}function _0x48e064(_0x3f2faf){const _0x459688=_0x8798a4[_0x39b4('0x15')][_0x39b4('0x2d')](_0x39b4('0x53'),{'class':_0x39b4('0xfb')+_0x137687}),_0x1ef80b=_0x8798a4['mapper'][_0x39b4('0x63')](_0x3f2faf);_0x10ad62[_0x39b4('0x62')]['isSuggestion']&&_0x8798a4[_0x39b4('0x15')][_0x39b4('0x113')](_0x39b4('0xfb')+_0x137687+_0x39b4('0x29'),_0x459688),_0x471eb9[_0x39b4('0x74')]==_0x10ad62&&_0x8798a4['writer']['addClass']('ck-suggestion-marker--active',_0x459688),_0x8798a4[_0x39b4('0x15')][_0x39b4('0x94')](_0x1ef80b,_0x459688),_0x8798a4[_0x39b4('0x34')]['bindElementToMarker'](_0x459688,_0x3f2150[_0x39b4('0xe1')]);}_0x9b79a3||_0x324121||!_0x5dffaf||_0x48e064(_0x5dffaf);};}(this[_0x39b4('0x10e')]),{'priority':'high'}),this[_0x39b4('0x10e')]['editing']['downcastDispatcher']['on'](_0x39b4('0xec'),(_0xae567a,_0x51c35b,_0x3826cb)=>{const _0x13040d=_0x3826cb['mapper'][_0x39b4('0x5e')](_0x51c35b[_0x39b4('0xe1')]);if(_0x13040d)for(const _0x1e7014 of _0x13040d)(_0x1e7014[_0x39b4('0x6')](_0x39b4('0x6f'))||_0x1e7014['hasClass'](_0x39b4('0x8f')))&&(_0x3826cb[_0x39b4('0x34')]['unbindElementFromMarkerName'](_0x1e7014,_0x51c35b['markerName']),_0x3826cb[_0x39b4('0x15')][_0x39b4('0x1b')](_0x1e7014));},{'priority':'high'}),this[_0x39b4('0x10e')][_0x39b4('0x60')][_0x39b4('0x11')]['on'](_0x39b4('0x48'),(_0x23a172,_0x48fd9d,_0x520572)=>{const _0xe5943f=_0x48fd9d['markerName'][_0x39b4('0x87')](':')[0x1],_0x4f21fa=this[_0x39b4('0x61')](_0xe5943f);if(!_0x4f21fa)return null;const _0x2b6c93=_0x39b4('0x79')==_0x4f21fa[_0x39b4('0x120')]?_0x39b4('0x87'):_0x39b4('0xfa');if(_0x520572['consumable'][_0x39b4('0xd6')](_0x48fd9d[_0x39b4('0x10a')],_0x23a172['name']))for(const _0x9cc3fd of _0x48fd9d[_0x39b4('0x10a')]['getItems']()){if(!_0x9cc3fd['is'](_0x39b4('0x88'),'softBreak'))continue;const _0xc82c74=_0x520572[_0x39b4('0x15')][_0x39b4('0x2d')]('span',{'class':_0x39b4('0xfb')+_0x2b6c93}),_0x2f8f73=_0x520572['mapper']['toViewPosition'](this[_0x39b4('0x10e')]['model'][_0x39b4('0xc3')](_0x9cc3fd));_0x4f21fa[_0x39b4('0x62')][_0x39b4('0xd5')]&&_0x520572[_0x39b4('0x15')]['addClass'](_0x39b4('0xfb')+_0x2b6c93+_0x39b4('0x29'),_0xc82c74),this[_0x39b4('0x74')]==_0x4f21fa&&_0x520572[_0x39b4('0x15')][_0x39b4('0x113')](_0x39b4('0xcd'),_0xc82c74),_0x520572[_0x39b4('0x15')]['insert'](_0x2f8f73,_0xc82c74),_0x520572['mapper'][_0x39b4('0xe3')](_0xc82c74,_0x48fd9d[_0x39b4('0xe1')]);}},{'priority':_0x39b4('0xa3')}),this[_0x39b4('0x10e')]['model']['document']['on']('change',()=>{this['editor']['editing']['view'][_0x39b4('0x2')](_0x94b999=>{for(const _0x2c1716 of this[_0x39b4('0x10e')][_0x39b4('0x49')][_0x39b4('0x86')][_0x39b4('0xfd')]()){const _0x5b5d31=this[_0x39b4('0x10e')]['model'][_0x39b4('0x86')][_0x39b4('0x83')](_0x2c1716),_0x1f7ddd=this[_0x39b4('0x10e')]['editing'][_0x39b4('0x51')][_0x39b4('0x86')][_0x39b4('0x83')](_0x2c1716);if(_0x1f7ddd){const _0x4e6d77=_0x5b5d31[_0x39b4('0xf0')](_0x39b4('0x6d'));if(_0x94b999[_0x39b4('0x4e')](_0x39b4('0x38'),_0x1f7ddd),_0x94b999[_0x39b4('0x106')]('ck-revision-history-root-add',_0x1f7ddd),_0x94b999['removeClass'](_0x39b4('0x43'),_0x1f7ddd),_0x94b999[_0x39b4('0x106')](_0x39b4('0x11b'),_0x1f7ddd),_0x4e6d77){const _0x1cd2a4=this[_0x39b4('0x61')](_0x4e6d77);if(!_0x1cd2a4)return null;_0x94b999['setAttribute'](_0x39b4('0x38'),_0x4e6d77,_0x1f7ddd),_0x94b999['addClass'](_0x39b4('0x8e')+_0x1cd2a4['type'],_0x1f7ddd),this[_0x39b4('0x74')]==_0x1cd2a4&&_0x94b999['addClass'](_0x39b4('0x11b'),_0x1f7ddd);}}}});}),this['editor'][_0x39b4('0xf')][_0x39b4('0x1a')]('upcast')['dataToMarker']({'view':'comment','model':_0x180925=>_0x39b4('0x116')+_0x180925,'converterPriority':_0x39b4('0xae')}),this[_0x39b4('0x10e')][_0x39b4('0xf')][_0x39b4('0x1a')](_0x39b4('0x112'))[_0x39b4('0x18')]({'view':_0x39b4('0x8b'),'model':_0x40d1b7=>_0x39b4('0xa5')+_0x40d1b7,'converterPriority':_0x39b4('0xae')}),this[_0x39b4('0x10e')][_0x39b4('0xf')]['for'](_0x39b4('0x20'))[_0x39b4('0x10')]({'model':_0x39b4('0x26'),'view':_0x1b09af=>({'name':_0x39b4('0x4')+_0x1b09af,'group':'revision-suggestion'}),'converterPriority':_0x39b4('0xae')}),this[_0x39b4('0x10e')]['conversion']['for'](_0x39b4('0x123'))[_0x39b4('0xbb')]({'model':_0x39b4('0x26'),'view':_0x44c4cc=>{const _0x2d6d45=_0x44c4cc[_0x39b4('0xe1')][_0x39b4('0x87')](':')[0x1];return _0x39b4('0xc')!=_0x2d6d45&&_0x39b4('0x82')!=_0x2d6d45?null:{'classes':[_0x39b4('0xbf'),_0x39b4('0x108')+_0x2d6d45]};}}),this[_0x39b4('0x10e')][_0x39b4('0x60')][_0x39b4('0x11')]['on'](_0x39b4('0x3a'),et(this[_0x39b4('0x10e')],_0x39b4('0xfa')),{'priority':'high'}),this[_0x39b4('0x10e')]['editing'][_0x39b4('0x11')]['on'](_0x39b4('0x114'),et(this[_0x39b4('0x10e')],_0x39b4('0x87')),{'priority':_0x39b4('0xa3')}),this[_0x39b4('0x10e')][_0x39b4('0x60')][_0x39b4('0x11')]['on'](_0x39b4('0x56'),(_0x2b69df,_0x587b50,_0x825be9)=>{const _0x31093e=_0x825be9[_0x39b4('0x34')]['markerNameToElements'](_0x587b50[_0x39b4('0xe1')]);if(_0x31093e)for(const _0x18c4b2 of _0x31093e)_0x18c4b2['is'](_0x39b4('0x76'))&&(_0x825be9['mapper']['unbindElementFromMarkerName'](_0x18c4b2,_0x587b50[_0x39b4('0xe1')]),_0x825be9[_0x39b4('0x15')][_0x39b4('0x1b')](_0x18c4b2));},{'priority':_0x39b4('0xa3')});}[_0x39b4('0x61')](_0x591962){return this[_0x39b4('0xf6')][_0x39b4('0x1e')](_0x591962);}[_0x39b4('0x7d')](_0x59f9b4){return this['_changeView']&&this[_0x39b4('0x6e')][_0x39b4('0xe6')](),this[_0x39b4('0x6e')]=new _0x17a49f(this[_0x39b4('0x10e')][_0x39b4('0x126')],_0x59f9b4),this['_changeView'];}[_0x39b4('0xc5')](){this[_0x39b4('0x10e')][_0x39b4('0x49')][_0x39b4('0x86')][_0x39b4('0x1c')][_0x39b4('0xf9')]('revision'),this['on'](_0x39b4('0xf1'),(_0x784e39,_0x102cb5,_0x411a77,_0x247e07)=>{_0x247e07&&this[_0x39b4('0x118')][_0x39b4('0x1b')](_0x247e07),_0x411a77&&(this[_0x39b4('0x118')][_0x39b4('0x79')]({'view':_0x411a77,'stackId':_0x39b4('0xd4'),'position':{'target':()=>{const _0xbf79a8=this[_0x39b4('0x10e')][_0x39b4('0x60')],_0x56121c=this['_getChangeFromId'](_0x411a77[_0x39b4('0x13')]);let _0x246000;if(_0x56121c[_0x39b4('0x62')]['isOnRoot']){const _0xc4fc8e=_0xbf79a8[_0x39b4('0x51')][_0x39b4('0xe7')](_0x56121c['rootName']);_0x246000=Array[_0x39b4('0x109')](_0xc4fc8e['getClientRects']());}else{const _0x4edfd4=this[_0x39b4('0x10e')][_0x39b4('0x49')][_0x39b4('0x42')][_0x39b4('0x1e')](_0x39b4('0x39')+_0x411a77[_0x39b4('0x13')]);_0x246000=Array[_0x39b4('0x109')](_0xbf79a8[_0x39b4('0x34')][_0x39b4('0x5e')](_0x4edfd4[_0x39b4('0xd1')]))[_0x39b4('0xdd')](_0x48c1b9=>_0xbf79a8[_0x39b4('0x51')]['domConverter'][_0x39b4('0x33')](_0x48c1b9))[_0x39b4('0xdd')](_0x50e4a2=>Array[_0x39b4('0x109')](_0x50e4a2['getClientRects']()))[_0x39b4('0x71')]();}if(!this[_0x39b4('0xce')])return _0x246000[0x0];return _0x246000[_0x39b4('0x50')](_0x3b42c2=>_0x3b42c2['top']-0x3<=this[_0x39b4('0xce')]['y']&&_0x3b42c2[_0x39b4('0x65')]+0x3>=this['_activeViewTarget']['y']&&_0x3b42c2[_0x39b4('0x1d')]-0x3<=this['_activeViewTarget']['x']&&_0x3b42c2[_0x39b4('0x3')]+0x3>=this[_0x39b4('0xce')]['x'])||_0x246000[0x0];}}}),this[_0x39b4('0x118')][_0x39b4('0x129')](_0x39b4('0xd4')));}),this['on'](_0x39b4('0xa'),(_0x310d32,_0x31b6bf,_0x35d7aa,_0x527bfa)=>{this[_0x39b4('0xaf')]=_0x35d7aa?this['_getViewForChange'](_0x35d7aa):null,this['editor'][_0x39b4('0x49')][_0x39b4('0x2')](()=>{const _0x4a5429=this['editor'][_0x39b4('0x60')];_0x527bfa&&(_0x527bfa['data'][_0x39b4('0xef')]?_0x4a5429[_0x39b4('0x51')][_0x39b4('0x2')](_0x250acc=>{_0x250acc[_0x39b4('0x106')]('ck-revision-history-root--active',_0x4a5429['view'][_0x39b4('0x86')][_0x39b4('0x83')](_0x527bfa[_0x39b4('0xa1')]));}):_0x4a5429[_0x39b4('0x10b')](_0x39b4('0x39')+_0x527bfa['id'])),_0x35d7aa&&(_0x35d7aa[_0x39b4('0x62')][_0x39b4('0xef')]?_0x4a5429[_0x39b4('0x51')][_0x39b4('0x2')](_0x14d6ee=>{_0x14d6ee[_0x39b4('0x113')](_0x39b4('0x11b'),_0x4a5429[_0x39b4('0x51')]['document'][_0x39b4('0x83')](_0x35d7aa[_0x39b4('0xa1')]));}):_0x4a5429[_0x39b4('0x10b')](_0x39b4('0x39')+_0x35d7aa['id']));});}),this[_0x39b4('0xac')](this['editor']['editing']['view'][_0x39b4('0x86')],'mouseover',(_0x4d609c,_0xb88774)=>{if(this[_0x39b4('0x74')])return;const _0x430cdf=this['_findChangeIdFromDomTarget'](_0xb88774[_0x39b4('0xbd')]),_0x13b7f8=this[_0x39b4('0xf6')]['get'](_0x430cdf);_0x13b7f8?(this[_0x39b4('0xce')]={'x':_0xb88774[_0x39b4('0x125')]['x'],'y':_0xb88774[_0x39b4('0x125')]['y']},this[_0x39b4('0xaf')]=this['_getViewForChange'](_0x13b7f8)):(this[_0x39b4('0xce')]=null,this[_0x39b4('0xaf')]=null);}),this[_0x39b4('0xac')](this['editor'][_0x39b4('0x60')][_0x39b4('0x51')]['document'],_0x39b4('0xe2'),(_0x3308f8,_0x4c6dbd)=>{const _0x9b69e2=this['_findChangeIdFromDomTarget'](_0x4c6dbd[_0x39b4('0xbd')]),_0x4d128b=this[_0x39b4('0xf6')][_0x39b4('0x1e')](_0x9b69e2);_0x4d128b?(this[_0x39b4('0xce')]={'x':_0x4c6dbd['domEvent']['x'],'y':_0x4c6dbd[_0x39b4('0x125')]['y']},_0x4d128b===this[_0x39b4('0x74')]?this['_balloon'][_0x39b4('0x127')]():this[_0x39b4('0x74')]=_0x4d128b):(this['_activeViewTarget']=null,this['activeChange']=null);});}[_0x39b4('0x57')](_0x582f0d){do{const _0x4bcbff=_0x582f0d[_0x39b4('0xf0')](_0x39b4('0x38'));if(_0x4bcbff)return _0x4bcbff;_0x582f0d=_0x582f0d[_0x39b4('0x12a')];}while(_0x582f0d);return null;}['_cleanMarkers'](){this['editor'][_0x39b4('0x49')][_0x39b4('0x2')](_0x1ac9cd=>{for(const _0x26df89 of this[_0x39b4('0x10e')][_0x39b4('0x49')]['markers'])_0x1ac9cd[_0x39b4('0xd3')](_0x26df89);});}}function et(_0x445799,_0x59fe9c){return(_0x2d4075,_0x21764c,_0x285828)=>{if(!_0x285828[_0x39b4('0x78')][_0x39b4('0xd6')](_0x21764c[_0x39b4('0x10a')],_0x2d4075[_0x39b4('0xd1')]))return;const _0x2f96df=_0x21764c['markerRange'][_0x39b4('0x4d')](),_0x1c947e=_0x21764c[_0x39b4('0x10a')][_0x39b4('0xd7')],_0x3622bb=_0x445799[_0x39b4('0x49')][_0x39b4('0x27')];let _0x4c2cc3=null,_0x5a1e90=null,_0x976d7e=!0x1,_0x28e88d=!0x1;for(const _0x551bd5 of _0x2f96df){const _0xb4d4dc=_0x551bd5['item'];_0x976d7e=_0x976d7e||_0x3622bb[_0x39b4('0x4a')](_0xb4d4dc);const _0x519313=_0x285828[_0x39b4('0x34')]['toViewElement'](_0xb4d4dc);if(_0x519313&&_0x519313['getCustomProperty']('addHighlight'))return;_0x39b4('0xfe')==_0x551bd5['type']&&(_0x3622bb[_0x39b4('0x124')](_0xb4d4dc)&&!_0x3622bb[_0x39b4('0xe9')](_0xb4d4dc)&&(_0xb4d4dc[_0x39b4('0x12')]||_0x1c947e[_0x39b4('0xeb')]?_0x4c2cc3&&_0x4c2cc3[_0x39b4('0x12a')]==_0xb4d4dc||(_0x4c2cc3=_0xb4d4dc,_0x162ffb(_0x551bd5[_0x39b4('0x105')]),_0x28e88d=!0x0):_0x5a1e90=_0x5a1e90||_0x551bd5[_0x39b4('0x105')]));}function _0x162ffb(_0x8d92ec){const _0x3c9d55=_0x285828[_0x39b4('0x34')]['toViewPosition'](_0x8d92ec),_0x4f2df3=_0x285828[_0x39b4('0x15')][_0x39b4('0x2d')](_0x39b4('0x53'),{'class':_0x39b4('0x108')+_0x59fe9c});_0x285828['writer']['insert'](_0x3c9d55,_0x4f2df3),_0x285828[_0x39b4('0x34')][_0x39b4('0xe3')](_0x4f2df3,_0x21764c[_0x39b4('0xe1')]);}_0x976d7e||_0x28e88d||!_0x5a1e90||_0x162ffb(_0x5a1e90);};}export class RestoreRevisionCommand extends _0x238989{constructor(_0x2d461e){super(_0x2d461e);const _0x47386f=_0x2d461e[_0x39b4('0x4f')][_0x39b4('0x1e')](d);this[_0x39b4('0x37')]=!0x1,this[_0x39b4('0xac')](_0x47386f,_0x39b4('0xdf'),()=>this[_0x39b4('0xa8')]()),this[_0x39b4('0xac')](_0x47386f,'change:isEnabled',()=>this['refresh']());}[_0x39b4('0x2c')](){const _0x3d8576=this[_0x39b4('0x10e')],_0x3045fd=_0x3d8576[_0x39b4('0x4f')][_0x39b4('0x1e')](d),_0x3a018f=_0x3045fd[_0x39b4('0x7f')]?_0x3045fd[_0x39b4('0x67')]['newRevisionId']:null;_0x3d8576['config']['get']('revisionHistory')[_0x39b4('0x11c')](_0x3a018f);}[_0x39b4('0xa8')](){const {isReady:_0x69dd80,isEnabled:_0x3fc3f7}=this['editor']['plugins']['get'](d);this[_0x39b4('0xb0')]=_0x69dd80&&_0x3fc3f7;}}export class ShowChangeCommand extends _0x238989{constructor(_0x42b80e,{direction:_0xa0b934}){super(_0x42b80e);const _0x48326a=_0x42b80e[_0x39b4('0x4f')][_0x39b4('0x1e')](d);this[_0x39b4('0x37')]=!0x1,this[_0x39b4('0xb8')]='forward'===_0xa0b934?0x1:-0x1,this['listenTo'](_0x48326a,_0x39b4('0xdf'),()=>this[_0x39b4('0xa8')]()),this[_0x39b4('0xac')](_0x48326a,_0x39b4('0x84'),()=>this[_0x39b4('0xa8')]()),this['listenTo'](_0x48326a,_0x39b4('0xa'),()=>this[_0x39b4('0xa8')]());}[_0x39b4('0x2c')](){const _0x4d4c0f=this[_0x39b4('0x10e')],_0x9da805=_0x4d4c0f['plugins'][_0x39b4('0x1e')](d),{isNavigationMode:_0x1cb194,currentChangeNumber:_0x55d26a}=_0x9da805;let _0x136898;if(_0x9da805['activeChange']=_0x1cb194?_0x9da805[_0x39b4('0x67')]['changes']['get'](_0x55d26a+this[_0x39b4('0xb8')]):_0x9da805[_0x39b4('0x67')][_0x39b4('0xaa')][_0x39b4('0x9d')],_0x9da805[_0x39b4('0x74')][_0x39b4('0x62')][_0x39b4('0xef')])_0x136898=_0x4d4c0f[_0x39b4('0x60')]['view'][_0x39b4('0xe7')](_0x9da805['activeChange'][_0x39b4('0xa1')]);else{const _0x334c6e=_0x4d4c0f[_0x39b4('0x49')]['markers'][_0x39b4('0x1e')](_0x39b4('0x39')+_0x9da805['activeChange']['id']);_0x136898=_0x57e0bc(_0x4d4c0f['editing'],_0x334c6e);}_0x396f9e({'target':_0x136898,'viewportOffset':0x28});}[_0x39b4('0xa8')](){const {isNavigationMode:_0x2b4875,currentChangeNumber:_0x428359,numberOfChanges:_0x34ba14,isReady:_0x4aa405,isEnabled:_0x3ca3ad}=this[_0x39b4('0x10e')][_0x39b4('0x4f')][_0x39b4('0x1e')](d);this[_0x39b4('0xb0')]=!!(_0x3ca3ad&&_0x4aa405&&_0x34ba14)&&(!_0x2b4875||(0x1===this[_0x39b4('0xb8')]?_0x428359<_0x34ba14-0x1:_0x428359>0x0));}}
|
|
23
|
+
const _0x4b14=['_makeModelFromTape','-new','adapter','_fixObsoleteTags','endIndex','isEnabled','observeMarkers','findIndex','getRoot','splice','refresh','forceDisabled','suggestion:','data-revision-','RevisionViewer','getChild','markerToHighlight','isSuggestion','mousedown','push','element:pre','softBreak','domConverter','remove','POSITIVE_INFINITY','_removeMissingPairs','processor','code','_refreshStartEndIndex','isObject','_setDistance','addClass','sort','_threeWayMerge','view','ck-suggestion-marker-merge','stop','_getViewObj','_markInsertions','vid','selection','authors','editingDowncast','isAdded','editing','text','detachRoot','vid_end','ck-revision-history-root-add','_changeView','marked','isAtEnd','ck-suggestion-marker-','hasClass','listenTo','createPositionFromPath','revision-end','shift','change:isEnabled','markersEnd','_cleanMarkers','from','_getDiff','clear','changes','indexOf','dataToMarker','viewItem','flat','highest','activeChange','getCustomProperty','currentChangeNumber','get','start','_removeRevisionMarkers','isNavigationMode','_setConversion','schema','conversion','restoreRevisionCallback','dataDowncast','isIncorrect','addRevisionData','split','bind','_balloon','wrap','nodeAfter','createUIElement','deletion','requires','default','isOnRoot','type','_markMismatchedRemovedTags','parent','startIndex','mapper','isRemoved','enqueueChange','consumable','markerRange','removeAttribute','createAttributeElement','downcastDispatcher','isContent','createPositionBefore','markerNameToElements','attributesAfter','userId','ck-revision-history-root-','resolve','newRevisionId','has','nextPosition','revision-start','_makeTape','diff','updatePosition','change:activeChange','reconvertMarker','getClientRects','setAttribute','getRootNames','toModel','insertions','insertion','values','side','isAtStart','name','execute','test','isReady','roots','length','numberOfChanges','ck-suggestion-marker','_removeUnsupportedChanges','slice','toViewElement','pop','revisionHistoryAttachChange','ck-editor__editable__overlay','attribute:vid','isLimit','ck-suggestion-preview-marker-','destroy','getRevisionData','domEvent','getIndex','target','editor','revisionHistoryLabel','maxOffset','_initInteractions','low','next','_setChanges','_joinTapes','span','_update','isBlock','markers','removeMarker','catch','includes','affectsData','isRemoveSuggestion','loadRevisionData','getItems','_step','activeView','deletions','level','elementEnd','distance','delete','ck-revision-history-root-remove','_changeIdToChange','commands','attachChange','data-change-id','WidgetToolbarRepository','then','addHighlight','useFillerType','writer','elementToAttribute','change:isReady','showStack','_processTape','ck-suggestion-marker--active','_getViewForChange','previousPosition','_cleanUp','isBefore','forward','unshift','modelRange','revision:','repository','attributesBefore','getAttributes','restoreRevision','ck-revision-history-root--active','addMarker:revision','revision-suggestion:','backward','_markMarkers','oldRevisionId','getWalker','toViewPosition','getAttribute','isEqual','done','error','changeId','revision','markerToData','_sortAndFilterDiffChanges','_getRevisionsRange','_activeViewTarget','return','element','showPreviousChange','unbindElementFromMarkerName','hasAttribute','_markSuggestions','forEach','left','index','insert','consume','merge','revision-viewer','nextSibling','addMarker:revision-suggestion:insertion','isAddSuggestion','children','getRevisionRootsAttributes','config','keys','document','createRevision','suggestion','markerName','getRevision','isInline','vid_start','abs','isAttached','toData','_makeModelFromViewString','_getChangeFromId','addRoot','elementStart','set','_data','data','addRevision','all','attributes','change','concat','diffData','init','end','rootName','pairId','plugins','mouseover','checkAttribute','mapViewToDom','startsWith','map','isAfter','model','bindElementToMarker','for','revision-suggestion','upcast','_findChangeIdFromDomTarget','item','compare','markersStart','removeClass','RevisionsRepository','filter','_appendChild','high','string','getDomRoot','add'];(function(_0x364af0,_0x4b14a7){const _0x77fa0e=function(_0x5df149){while(--_0x5df149){_0x364af0['push'](_0x364af0['shift']());}};_0x77fa0e(++_0x4b14a7);}(_0x4b14,0x148));const _0x77fa=function(_0x364af0,_0x4b14a7){_0x364af0=_0x364af0-0x0;let _0x77fa0e=_0x4b14[_0x364af0];return _0x77fa0e;};import{Plugin as _0x144429,Command as _0x2dba10}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0xa130cd}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x4aa106}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x301f71,Element as _0x3725a2,Text as _0x174716,ViewDocumentFragment as _0x1ca79f,ViewText as _0x2e3bf4,ViewElement as _0x581f3f,ViewContainerElement as _0xc248fc,ViewAttributeElement as _0x1a02f1,ViewEmptyElement as _0x10c893,ViewRawElement as _0x12153c,ViewUIElement as _0x5110a1}from'ckeditor5/src/engine.js';import{Users as _0x3b41dc,getMarkerDomElement as _0x443d60}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x3f6844 from'./ui/revisionviewer/changedetailsview.js';import _0x16234f from'./revisionsrepository.js';import _0x2494ad from'./changeitem.js';import{default as _0x44d172}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x4f931b}from'lodash-es';const tt={'c':_0xc248fc,'a':_0x1a02f1,'e':_0x10c893,'r':_0x12153c,'u':_0x5110a1};export default class d extends _0x144429{static get['pluginName'](){return _0x77fa('0x114');}static get[_0x77fa('0x3a')](){return[_0x3b41dc,_0x4aa106,_0x16234f];}constructor(_0x5941d9){super(_0x5941d9),this[_0x77fa('0xa9')]=this[_0x77fa('0x78')][_0x77fa('0xee')][_0x77fa('0x28')](_0x77fa('0xff')),this[_0x77fa('0xe1')](_0x77fa('0x25'),null),this['set'](_0x77fa('0x8c'),null),this['_activeViewTarget']=null,this[_0x77fa('0xe1')](_0x77fa('0x55'),null),this[_0x77fa('0xe1')](_0x77fa('0x65'),!0x1),this[_0x77fa('0xe1')](_0x77fa('0x10b'),!0x0),this['on'](_0x77fa('0x19'),(_0x34de0d,_0x95679a,_0x15813f)=>{this['activeChange']=null,this[_0x77fa('0x8c')]=null,this[_0x77fa('0x78')][_0x77fa('0xb')]['view']['change'](_0x5eef72=>{for(const _0x3ab40d of this['editor'][_0x77fa('0xb')][_0x77fa('0x1')][_0x77fa('0xd3')][_0x77fa('0x66')])_0x15813f?_0x5eef72['removeClass'](_0x77fa('0x6f'),_0x3ab40d):_0x5eef72['addClass'](_0x77fa('0x6f'),_0x3ab40d);});}),this[_0x77fa('0x34')](_0x77fa('0x2b'))['to'](this,'activeChange',_0x1594e9=>null!==_0x1594e9),this['bind'](_0x77fa('0x27'))['to'](this,_0x77fa('0x65'),this,_0x77fa('0x55'),this,_0x77fa('0x25'),(_0x47d2af,_0x5c63f5,_0x2c9fdf)=>_0x47d2af&&_0x2c9fdf?_0x5c63f5[_0x77fa('0x1f')][_0x77fa('0x76')](_0x2c9fdf):0x0),this[_0x77fa('0x34')](_0x77fa('0x68'))['to'](this,_0x77fa('0x65'),this,'diff',(_0x2780ba,_0x2368c6)=>_0x2780ba?_0x2368c6[_0x77fa('0x1f')][_0x77fa('0x67')]:0x0),this['_changeView']=null,this[_0x77fa('0x93')]=new Map(),this[_0x77fa('0x108')]=null,this[_0x77fa('0x35')]=this['editor'][_0x77fa('0xee')]['get'](_0x4aa106);}[_0x77fa('0xea')](){const _0x85c542=this[_0x77fa('0x78')],_0x4f6b03=new ShowChangeCommand(_0x85c542,{'direction':_0x77fa('0xb0')}),_0x1315ce=new ShowChangeCommand(_0x85c542,{'direction':_0x77fa('0xa5')});(_0x85c542[_0x77fa('0x94')][_0x77fa('0x105')](_0x77fa('0xc1'),_0x4f6b03),_0x85c542['commands'][_0x77fa('0x105')]('showNextChange',_0x1315ce),_0x85c542[_0x77fa('0x94')]['add'](_0x77fa('0xac'),new RestoreRevisionCommand(_0x85c542)),this['on']('change:numberOfChanges',()=>{_0x4f6b03[_0x77fa('0x110')](),_0x1315ce[_0x77fa('0x110')]();}),this['_setConversion'](),this[_0x77fa('0x7b')](),_0x85c542['enableReadOnlyMode'](_0x77fa('0xcb')),_0x85c542[_0x77fa('0xee')]['has']('WidgetToolbarRepository'))&&_0x85c542['plugins'][_0x77fa('0x28')](_0x77fa('0x97'))[_0x77fa('0x111')](_0x77fa('0xcb'));}async[_0x77fa('0x74')](_0x1da91b){await this[_0x77fa('0x89')](_0x1da91b);const _0x2c9d93={};for(const _0x4ae7a9 in _0x1da91b[_0x77fa('0xe9')]){if(_0x1da91b['diffData'][_0x4ae7a9][_0x77fa('0x95')]&&!_0x1da91b[_0x77fa('0xe9')][_0x4ae7a9][_0x77fa('0x95')][_0x77fa('0xdb')])continue;const _0x24a6a1=this[_0x77fa('0x2a')](JSON['parse'](_0x1da91b[_0x77fa('0xe9')][_0x4ae7a9][_0x77fa('0x5d')])),_0x42cf13=this['editor'][_0x77fa('0xb')][_0x77fa('0x1')][_0x77fa('0xd3')],_0x5ac3b7=new _0x1ca79f(_0x42cf13,_0x24a6a1[_0x77fa('0xf3')](_0x484928=>this[_0x77fa('0x4')](_0x484928)));this[_0x77fa('0x78')]['data'][_0x77fa('0x120')][_0x77fa('0x9a')](_0x77fa('0x11')),_0x2c9d93[_0x4ae7a9]=this[_0x77fa('0x78')][_0x77fa('0xe3')]['processor'][_0x77fa('0xdc')](_0x5ac3b7),this[_0x77fa('0x78')][_0x77fa('0xe3')]['processor']['useFillerType'](_0x77fa('0x3b'));}return _0x2c9d93;}async[_0x77fa('0xd0')](_0x2557a0){await this[_0x77fa('0x89')](_0x2557a0);const _0x4ddb6c={};for(const _0x4f7a1c in _0x2557a0[_0x77fa('0xe9')])_0x2557a0[_0x77fa('0xe9')][_0x4f7a1c][_0x77fa('0x95')]&&!_0x2557a0['diffData'][_0x4f7a1c]['attachChange'][_0x77fa('0xdb')]||(_0x4ddb6c[_0x4f7a1c]=_0x2557a0['diffData'][_0x4f7a1c][_0x77fa('0x4c')]||{});return _0x4ddb6c;}[_0x77fa('0x2a')](_0x3b3550){return(_0x3b3550=_0x3b3550[_0x77fa('0x100')](_0x141747=>!_0x141747['name']||_0x77fa('0x53')!==_0x141747[_0x77fa('0x62')]&&_0x77fa('0x17')!==_0x141747[_0x77fa('0x62')]))[_0x77fa('0xc5')](_0x207918=>{_0x77fa('0x103')!=typeof _0x207918&&(_0x207918['children']=this[_0x77fa('0x2a')](_0x207918['children']),_0x207918['attributes']=_0x207918[_0x77fa('0xe6')][_0x77fa('0x100')](_0xc9d01=>!_0xc9d01[0x0][_0x77fa('0xf2')](_0x77fa('0x113'))));}),_0x3b3550;}async[_0x77fa('0xfc')](_0x23f3e7,_0x22abd4,_0x53d9eb=!0x1){if(!this[_0x77fa('0x10b')])return;const _0x584596=this[_0x77fa('0x55')],_0x2ce8e8=this[_0x77fa('0xa9')],_0x1c40df=_0x77fa('0x103')==typeof _0x23f3e7?_0x2ce8e8[_0x77fa('0xd7')](_0x23f3e7):_0x23f3e7,_0x25353e=_0x77fa('0x103')==typeof _0x22abd4?_0x2ce8e8['getRevision'](_0x22abd4):_0x22abd4,_0x3ef657=_0x1c40df['id'],_0x1d0f05=_0x25353e?_0x25353e['id']:null;if(!_0x53d9eb&&this[_0x77fa('0x55')]&&this[_0x77fa('0x55')][_0x77fa('0x50')]===_0x3ef657&&this['diff'][_0x77fa('0xb2')]===_0x1d0f05)return Promise[_0x77fa('0x4f')]();this[_0x77fa('0x65')]=!0x1,this[_0x77fa('0x8c')]=null,this[_0x77fa('0x25')]=null,this[_0x77fa('0x55')]=new _0x44d172(_0x3ef657,_0x1d0f05);const _0xb36f48=this['_getRevisionsRange'](_0x1c40df,_0x25353e,!0x0)[_0x77fa('0xf3')](_0x546c7d=>this[_0x77fa('0x89')](_0x546c7d));return _0xb36f48[_0x77fa('0x119')](new Promise(_0x2df0eb=>{setTimeout(_0x2df0eb,0x14);})),Promise[_0x77fa('0xe5')](_0xb36f48)['then'](()=>{if(!this[_0x77fa('0x10b')])return;this[_0x77fa('0xa3')]();const _0xc916e=this[_0x77fa('0x1d')](_0x3ef657,_0x1d0f05);for(const _0x17ae64 of _0xc916e[_0x77fa('0x1f')])this[_0x77fa('0x93')]['set'](_0x17ae64['id'],_0x17ae64);this[_0x77fa('0x78')][_0x77fa('0xf5')]['enqueueChange']({'isUndoable':!0x1},_0x277352=>{for(const _0x1fe054 of this[_0x77fa('0x78')][_0x77fa('0xf5')][_0x77fa('0xd3')][_0x77fa('0x5b')]())_0x277352[_0x77fa('0xd')](_0x1fe054);for(const _0x5e0bcd of Object[_0x77fa('0xd2')](_0xc916e['model'])){const _0x526ded=_0x277352[_0x77fa('0xdf')](_0x5e0bcd);for(const _0x562057 of Object[_0x77fa('0xd2')](_0xc916e[_0x77fa('0xe6')][_0x5e0bcd]))_0x277352[_0x77fa('0x5a')](_0x562057,_0xc916e[_0x77fa('0xe6')][_0x5e0bcd][_0x562057],_0x526ded);_0x277352[_0x77fa('0xc8')](_0xc916e['model'][_0x5e0bcd],_0x526ded,0x0);}}),this[_0x77fa('0x55')][_0x77fa('0x7e')](this['_sortAndFilterDiffChanges'](_0xc916e[_0x77fa('0x1f')])),this[_0x77fa('0x65')]=!0x0;})[_0x77fa('0x85')](_0x3bef1e=>{console[_0x77fa('0xb8')](_0x3bef1e),this[_0x77fa('0xa3')](),_0x584596&&(this[_0x77fa('0x55')]=_0x584596),this['isReady']=!0x0;});}[_0x77fa('0x32')](_0x4bc9e5,_0xa6330c){const _0x3dfdb3=this[_0x77fa('0xa9')][_0x77fa('0xd4')](_0x4bc9e5);return _0x3dfdb3['on'](_0x77fa('0x81'),(_0x221f8f,_0x163d82,_0x35e665)=>_0xa6330c(_0x163d82,_0x35e665,_0x3dfdb3)),this[_0x77fa('0xa9')][_0x77fa('0xe4')](_0x3dfdb3),_0x3dfdb3;}[_0x77fa('0x89')](_0x314019){if(!_0x314019||_0x314019[_0x77fa('0xe9')])return Promise[_0x77fa('0x4f')]();{const _0x506dfe=this[_0x77fa('0x78')][_0x77fa('0xd1')][_0x77fa('0x28')]('collaboration.channelId');return this[_0x77fa('0x108')][_0x77fa('0xd7')]({'channelId':_0x506dfe,'revisionId':_0x314019['id']})[_0x77fa('0x98')](_0x4a1a0b=>{_0x314019[_0x77fa('0x81')]({'diffData':_0x4a1a0b[_0x77fa('0xe9')]},!0x0);});}}['_cleanUp'](){this[_0x77fa('0x25')]=null,this[_0x77fa('0x1b')](),this[_0x77fa('0x10')]&&this[_0x77fa('0x10')][_0x77fa('0x73')](),this[_0x77fa('0x10')]=null,this[_0x77fa('0x93')][_0x77fa('0x1e')](),this[_0x77fa('0x78')]['model'][_0x77fa('0x43')]({'isUndoable':!0x1},_0x5735ee=>{for(const _0x465188 of this[_0x77fa('0x78')][_0x77fa('0xf5')][_0x77fa('0xd3')]['getRootNames']())_0x5735ee['detachRoot'](_0x465188);});}[_0x77fa('0xbc')](_0x22f710){const _0x565a00=[],_0x1664fc=new Map();for(const _0x365290 of this[_0x77fa('0x78')][_0x77fa('0xf5')][_0x77fa('0xd3')][_0x77fa('0x5b')]()){const _0x26134b=this['editor']['editing'][_0x77fa('0x1')][_0x77fa('0x104')](_0x365290);if(!_0x26134b)continue;const _0x4bea70=_0x26134b[_0x77fa('0x59')]()['item'](0x0);_0x4bea70&&(_0x565a00[_0x77fa('0x119')](_0x365290),_0x1664fc['set'](_0x365290,_0x4bea70));}return _0x565a00[_0x77fa('0x126')]((_0x4c9a3a,_0x9f9d5b)=>{const _0x58457c=_0x1664fc[_0x77fa('0x28')](_0x4c9a3a),_0x2b4e73=_0x1664fc['get'](_0x9f9d5b);return _0x58457c['y']-_0x2b4e73['y']||_0x58457c['x']-_0x2b4e73['x'];}),(_0x22f710=_0x22f710['filter'](_0x58f0b6=>_0x565a00[_0x77fa('0x86')](_0x58f0b6[_0x77fa('0xec')])))[_0x77fa('0x126')]((_0x12b6dd,_0x5cf41f)=>_0x565a00[_0x77fa('0x20')](_0x12b6dd[_0x77fa('0xec')])-_0x565a00[_0x77fa('0x20')](_0x5cf41f[_0x77fa('0xec')])),_0x22f710;}[_0x77fa('0x54')](_0x17416b){const _0x47b218=Array['from'](_0x17416b[_0x77fa('0x83')])[_0x77fa('0x100')](([_0xd45776,_0x39f83f])=>_0xd45776[_0x77fa('0xf2')]('revision:')&&!_0x39f83f['isCollapsed']),_0x5860b0=Array[_0x77fa('0x1c')](this[_0x77fa('0x78')][_0x77fa('0xf5')]['createRangeIn'](_0x17416b)[_0x77fa('0xb3')]({'singleCharacters':!0x0}));if(0x0!=_0x47b218['length'])for(const _0x38a2a9 of _0x5860b0){const [_0x47e774,_0x2d0228]=_0x47b218[0x0],[,_0x4f55b1,_0x234fa4]=_0x47e774[_0x77fa('0x33')](':');if(_0x2d0228['end']['isEqual'](_0x38a2a9[_0x77fa('0x52')])&&_0x47b218[_0x77fa('0x18')](),(_0x38a2a9[_0x77fa('0xa2')][_0x77fa('0xb6')](_0x2d0228['start'])||_0x38a2a9['previousPosition'][_0x77fa('0xf4')](_0x2d0228[_0x77fa('0x29')]))&&(_0x77fa('0x5e')==_0x4f55b1?_0x38a2a9[_0x77fa('0xa')]={'userId':_0x234fa4}:_0x77fa('0x39')==_0x4f55b1&&(_0x38a2a9['isRemoved']={'userId':_0x234fa4})),0x0==_0x47b218[_0x77fa('0x67')])break;}return _0x5860b0;}[_0x77fa('0x122')](_0x311282){const _0x2d7a4b=new Map();for(let _0x516472=0x0;_0x516472<_0x311282[_0x77fa('0x67')];_0x516472++)_0x77fa('0xc')===_0x311282[_0x516472][_0x77fa('0x3d')]?(_0x311282[_0x516472][_0x77fa('0xfb')][_0x77fa('0x40')]=_0x516472,_0x311282[_0x516472][_0x77fa('0xfb')]['endIndex']=_0x516472):('elementStart'===_0x311282[_0x516472][_0x77fa('0x3d')]?_0x311282[_0x516472][_0x77fa('0xfb')][_0x77fa('0x40')]=_0x516472:_0x77fa('0x8f')===_0x311282[_0x516472][_0x77fa('0x3d')]&&(_0x311282[_0x516472][_0x77fa('0xfb')]['endIndex']=_0x516472),_0x2d7a4b['set'](_0x311282[_0x516472]['id'],_0x516472));for(const _0x398560 of _0x2d7a4b[_0x77fa('0x5f')]())_0x77fa('0xe0')===_0x311282[_0x398560]['type']?_0x311282[_0x398560][_0x77fa('0xfb')][_0x77fa('0x10a')]=_0x2d7a4b['get'](_0x311282[_0x398560][_0x77fa('0xed')]):_0x77fa('0x8f')===_0x311282[_0x398560][_0x77fa('0x3d')]&&(_0x311282[_0x398560][_0x77fa('0xfb')][_0x77fa('0x40')]=_0x2d7a4b[_0x77fa('0x28')](_0x311282[_0x398560][_0x77fa('0xed')]));}[_0x77fa('0x9f')](_0x421af4){for(let _0x5a63e3=0x0;_0x5a63e3<_0x421af4[_0x77fa('0x67')];_0x5a63e3++){if(_0x77fa('0xe0')===_0x421af4[_0x5a63e3][_0x77fa('0x3d')])_0x421af4[_0x5a63e3]['item'][_0x77fa('0x40')]=_0x5a63e3;else{if(_0x77fa('0x8f')===_0x421af4[_0x5a63e3]['type']){_0x421af4[_0x5a63e3][_0x77fa('0xfb')][_0x77fa('0x10a')]=_0x5a63e3;const _0x47f4d3=_0x421af4[_0x5a63e3]['item']['startIndex'];_0x421af4[_0x47f4d3][_0x77fa('0xed')]=_0x421af4[_0x5a63e3]['id'],_0x421af4[_0x5a63e3]['pairId']=_0x421af4[_0x47f4d3]['id'];}else _0x421af4[_0x5a63e3]['item'][_0x77fa('0x40')]=_0x5a63e3,_0x421af4[_0x5a63e3][_0x77fa('0xfb')][_0x77fa('0x10a')]=_0x5a63e3,_0x421af4[_0x5a63e3][_0x77fa('0xed')]=null;}_0x421af4[_0x5a63e3][_0x77fa('0xfd')]||(_0x421af4[_0x5a63e3][_0x77fa('0xfd')]=[],_0x421af4[_0x5a63e3][_0x77fa('0x1a')]=[]);}}[_0x77fa('0x5')](_0x3245ef,_0x20c095){const _0xeecf73=_0x3245ef[_0x77fa('0x100')](_0x2c9a84=>!_0x2c9a84[_0x77fa('0xa')]);for(let _0x393a49=0x0;_0x393a49<_0x20c095[_0x77fa('0x67')];_0x393a49++)_0x20c095[_0x393a49]['isAdded']&&(_0xeecf73[_0x393a49][_0x77fa('0xa')]=_0x20c095[_0x393a49][_0x77fa('0xa')]);}[_0x77fa('0xdd')](_0x2f2d05){const _0x4b39c5=JSON['parse'](_0x2f2d05),_0x1a79f0=this[_0x77fa('0x78')][_0x77fa('0xb')][_0x77fa('0x1')]['document'],_0x1ff59a=new _0x1ca79f(_0x1a79f0,_0x4b39c5[_0x77fa('0xf3')](_0x365e14=>this['_getViewObj'](_0x365e14)));return this['editor'][_0x77fa('0xe3')][_0x77fa('0x5c')](_0x1ff59a);}[_0x77fa('0x4')](_0x53a9f7){const _0x2206e5=this['editor'][_0x77fa('0xb')]['view']['document'];if(_0x77fa('0x103')==typeof _0x53a9f7)return new _0x2e3bf4(_0x2206e5,_0x53a9f7);{const _0x1f6dc4=_0x53a9f7[_0x77fa('0xcf')][_0x77fa('0xf3')](_0x13c0de=>this['_getViewObj'](_0x13c0de));return new(tt[_0x53a9f7[(_0x77fa('0x3d'))]]||_0x581f3f)(_0x2206e5,_0x53a9f7['name'],_0x53a9f7[_0x77fa('0xe6')],_0x1f6dc4);}}[_0x77fa('0x1d')](_0x471736,_0x5e8532=null){const _0x1925d2=this['repository'][_0x77fa('0xd7')](_0x471736),_0x17cc01=_0x5e8532?this[_0x77fa('0xa9')][_0x77fa('0xd7')](_0x5e8532):null,_0x1f685a=this[_0x77fa('0xbd')](_0x1925d2,_0x17cc01),_0x194cee=_0x1f685a[_0x1f685a['length']-0x1],_0x5966fc=new Map(),_0x396833={'model':{},'attributes':{},'changes':[]},_0x44af10=new Set(),_0x135645=new Map();for(let _0x264561=_0x1f685a[_0x77fa('0x67')]-0x1;_0x264561>=0x0;_0x264561--){const _0x2f4bdb=_0x1f685a[_0x264561];for(const _0x4f51e7 of Object['keys'](_0x2f4bdb[_0x77fa('0xe9')]))if(_0x2f4bdb['diffData'][_0x4f51e7][_0x77fa('0x95')]){const _0x35aa4b=_0x2f4bdb[_0x77fa('0xe9')][_0x4f51e7][_0x77fa('0x95')];_0x35aa4b['isAttached']?(_0x44af10[_0x77fa('0x105')](_0x4f51e7),_0x135645[_0x77fa('0x51')](_0x4f51e7)&&_0x135645[_0x77fa('0x28')](_0x4f51e7)[_0x77fa('0x4d')]==_0x35aa4b[_0x77fa('0x4d')]?_0x135645[_0x77fa('0x91')](_0x4f51e7):_0x135645[_0x77fa('0xe1')](_0x4f51e7,_0x35aa4b)):_0x135645[_0x77fa('0x51')](_0x4f51e7)?(_0x44af10['delete'](_0x4f51e7),_0x135645[_0x77fa('0x91')](_0x4f51e7)):(_0x44af10[_0x77fa('0x105')](_0x4f51e7),_0x135645[_0x77fa('0xe1')](_0x4f51e7,_0x35aa4b));}else _0x44af10[_0x77fa('0x105')](_0x4f51e7);}for(const _0x220ad5 of _0x44af10){const _0x174ad8=_0x135645[_0x77fa('0x51')](_0x220ad5)&&!_0x135645[_0x77fa('0x28')](_0x220ad5)[_0x77fa('0xdb')];let _0x2805bb=_0x174ad8?_0x1f685a['length']-0x1:0x0;const _0x4c6532=_0x174ad8?-0x1:0x1;for(;_0x1f685a[_0x2805bb];){const _0x1bde88=_0x1f685a[_0x2805bb];if(_0x1bde88['diffData'][_0x220ad5]){const _0x43c828=_0x174ad8?_0x1bde88['diffData'][_0x220ad5][_0x77fa('0xaa')]:_0x1bde88[_0x77fa('0xe9')][_0x220ad5][_0x77fa('0x4c')];_0x396833[_0x77fa('0xe6')][_0x220ad5]=_0x43c828?_0x4f931b(_0x43c828):{};break;}_0x2805bb+=_0x4c6532;}}for(const _0x26cbfd of _0x1f685a){_0x26cbfd[_0x77fa('0xf5')]={};for(const _0x5e18e7 of _0x26cbfd[_0x77fa('0x8')])_0x5966fc[_0x77fa('0xe1')](_0x5e18e7['id'],_0x5e18e7);for(const _0x57fedb of _0x44af10){const _0x5ab8fb=_0x26cbfd[_0x77fa('0xe9')][_0x57fedb]?_0x26cbfd[_0x77fa('0xe9')][_0x57fedb]['insertions']:'[]',_0x342f49=_0x26cbfd[_0x77fa('0xe9')][_0x57fedb]?_0x26cbfd['diffData'][_0x57fedb][_0x77fa('0x8d')]:'[]';_0x26cbfd[_0x77fa('0xf5')][_0x57fedb]={'insertions':this[_0x77fa('0xdd')](_0x5ab8fb),'deletions':this['_makeModelFromViewString'](_0x342f49)};}}for(const _0x4daa68 of _0x44af10){let _0x475474=null,_0x4eb8b0=0x0;const _0x5f26ec=new Map(Array[_0x77fa('0x1c')](_0x1925d2[_0x77fa('0xf5')][_0x4daa68][_0x77fa('0x5d')][_0x77fa('0x83')])[_0x77fa('0x100')](([_0x2617ef])=>!_0x2617ef[_0x77fa('0xf2')](_0x77fa('0xa8'))));let _0x306beb=0x0;for(const _0x302fbc of _0x1f685a){const _0x205cc4=this[_0x77fa('0x54')](_0x302fbc['model'][_0x4daa68][_0x77fa('0x5d')]);_0x302fbc==_0x1925d2?(_0x475474=_0x205cc4,_0x4eb8b0=_0x475474['length'],_0x475474[_0x77fa('0xc5')](_0x1abac7=>{_0x1abac7['id']=_0x306beb++;}),this[_0x77fa('0x9f')](_0x475474)):this[_0x77fa('0x5')](_0x475474,_0x205cc4);const _0x311048=_0x475474['filter'](_0x28b5be=>!_0x28b5be[_0x77fa('0xa')])[_0x77fa('0xf3')](_0x4d5d02=>_0x4d5d02['id']);let _0x10168e=0x0;const _0x30f010=this[_0x77fa('0x54')](_0x302fbc[_0x77fa('0xf5')][_0x4daa68][_0x77fa('0x8d')]);_0x30f010[_0x77fa('0xc5')](_0x74f567=>{_0x74f567[_0x77fa('0x42')]?_0x74f567['id']=_0x4eb8b0++:_0x74f567['id']=_0x311048[_0x10168e++];}),this[_0x77fa('0x9f')](_0x30f010),this[_0x77fa('0x124')](_0x475474,_0x77fa('0xa')),this['_setDistance'](_0x30f010,'isRemoved'),_0x302fbc==_0x1925d2&&this[_0x77fa('0xb1')](_0x475474,_0x5f26ec),_0x475474=this['_joinTapes'](_0x475474,_0x30f010),this[_0x77fa('0x122')](_0x475474),this[_0x77fa('0x124')](_0x475474,_0x77fa('0x42'));}_0x475474=_0x475474['filter'](_0x296631=>!(_0x296631[_0x77fa('0xa')]&&_0x296631[_0x77fa('0x42')]));const _0x22ccbd=new Map(_0x194cee['model'][_0x4daa68][_0x77fa('0x8d')][_0x77fa('0x83')]),_0x3e1856=new Set(_0x5f26ec[_0x77fa('0xd2')]());for(const _0x27599f of _0x22ccbd['keys']())_0x3e1856['delete'](_0x27599f);this['_markSuggestions'](_0x475474,_0x3e1856),this[_0x77fa('0x109')](_0x475474),_0x475474=this[_0x77fa('0x11f')](_0x475474),_0x475474=this[_0x77fa('0x3e')](_0x475474),_0x475474=this[_0x77fa('0x6a')](_0x475474);const {root:_0x5f2ea0,changes:_0x18c49d}=this['_makeModelFromTape'](_0x475474,_0x5966fc,_0x4daa68);_0x396833[_0x77fa('0xf5')][_0x4daa68]=_0x5f2ea0;const _0x5b5189=_0x135645[_0x77fa('0x28')](_0x4daa68);if(_0x5b5189){const _0x2a2f4e=_0x5966fc[_0x77fa('0x28')](_0x5b5189[_0x77fa('0x4d')]),_0x1c5a5d=new _0x2494ad({'author':_0x2a2f4e,'type':_0x5b5189[_0x77fa('0xdb')]?_0x77fa('0x105'):_0x77fa('0x11d'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4daa68});_0x18c49d[_0x77fa('0xa6')](_0x1c5a5d),_0x396833[_0x77fa('0xe6')][_0x4daa68][_0x77fa('0x6e')]=_0x1c5a5d['id'];}_0x396833[_0x77fa('0x1f')]=_0x396833[_0x77fa('0x1f')]['concat'](_0x18c49d);}return _0x396833;}[_0x77fa('0xb1')](_0x7fd7c5,_0x14ad33){for(let _0x32d2e0=0x0;_0x32d2e0<_0x7fd7c5['length'];_0x32d2e0++)for(const [_0x3a2b08,_0xca5a04]of _0x14ad33)_0xca5a04[_0x77fa('0x29')][_0x77fa('0xb6')](_0x7fd7c5[_0x32d2e0][_0x77fa('0xa2')])&&_0x7fd7c5[_0x32d2e0][_0x77fa('0xfd')][_0x77fa('0x119')](_0x3a2b08),_0xca5a04[_0x77fa('0xeb')][_0x77fa('0xb6')](_0x7fd7c5[_0x32d2e0][_0x77fa('0x52')])&&_0x7fd7c5[_0x32d2e0][_0x77fa('0x1a')][_0x77fa('0x119')](_0x3a2b08);}[_0x77fa('0x7f')](_0x2102a2,_0x2131ac){let _0x1f40e1=[],_0x13c554=0x0,_0x4018c7=0x0;for(;_0x13c554<_0x2102a2[_0x77fa('0x67')]||_0x4018c7<_0x2131ac[_0x77fa('0x67')];){const _0xd790f8=_0x2102a2[_0x13c554]||{},_0x3c1c67=_0x2131ac[_0x4018c7]||{};if(_0xd790f8['id']==_0x3c1c67['id'])_0x13c554++,_0x4018c7++,_0x1f40e1['push'](_0xd790f8);else{if(_0x3c1c67[_0x77fa('0x42')]&&_0xd790f8[_0x77fa('0xa')]){const {commonTape:_0x271419,iEnd:_0x57d06d,jEnd:_0x16e29a}=this[_0x77fa('0x0')](_0x2102a2,_0x13c554,_0x2131ac,_0x4018c7);_0x1f40e1=_0x1f40e1[_0x77fa('0xe8')](_0x271419),_0x13c554=_0x57d06d,_0x4018c7=_0x16e29a;}else _0x3c1c67['isRemoved']?(_0x4018c7++,_0x1f40e1[_0x77fa('0x119')](_0x3c1c67)):(_0x13c554++,_0x1f40e1[_0x77fa('0x119')](_0xd790f8));}}return _0x1f40e1;}[_0x77fa('0xc4')](_0x1177cf,_0x1efaaf){const _0x12bfa0=[];for(let _0xdef173=0x0;_0xdef173<_0x1177cf[_0x77fa('0x67')];_0xdef173++){for(let _0x4f67c8=0x0;_0x4f67c8<_0x1177cf[_0xdef173][_0x77fa('0xfd')][_0x77fa('0x67')];_0x4f67c8++){const _0xc40d5c=_0x1177cf[_0xdef173][_0x77fa('0xfd')][_0x4f67c8];if(!_0x1efaaf[_0x77fa('0x51')](_0xc40d5c))continue;const {group:_0x481cbe,type:_0x9f6ff3,authorId:_0x549d5b}=_0x1bcce9(_0xc40d5c);_0x77fa('0xf8')!=_0x481cbe||_0x77fa('0x5e')!=_0x9f6ff3&&_0x77fa('0x39')!=_0x9f6ff3||(_0x12bfa0[_0x77fa('0xa6')]({'type':_0x9f6ff3,'name':_0xc40d5c,'userId':_0x549d5b}),_0x1177cf[_0xdef173]['markersStart'][_0x77fa('0x10f')](_0x4f67c8,0x1),_0x4f67c8--);}_0x1792a6(_0x1177cf[_0xdef173]);for(let _0x3a0fa8=0x0;_0x3a0fa8<_0x1177cf[_0xdef173][_0x77fa('0x1a')]['length'];_0x3a0fa8++){const _0x5bd4a9=_0x1177cf[_0xdef173][_0x77fa('0x1a')][_0x3a0fa8];if(!_0x1efaaf[_0x77fa('0x51')](_0x5bd4a9))continue;const {group:_0x367046,type:_0x43006f}=_0x1bcce9(_0x5bd4a9);if(_0x77fa('0xf8')!=_0x367046||'insertion'!=_0x43006f&&'deletion'!=_0x43006f)continue;_0x1177cf[_0xdef173]['markersEnd'][_0x77fa('0x10f')](_0x3a0fa8,0x1),_0x3a0fa8--;const _0xdfd690=_0x12bfa0[_0x77fa('0x10d')](_0x57777c=>_0x57777c['name']==_0x5bd4a9);_0xdfd690>-0x1&&_0x12bfa0[_0x77fa('0x10f')](_0xdfd690,0x1);}}function _0x1bcce9(_0x2864ec){const _0x29a4e0=_0x2864ec[_0x77fa('0x33')](':');return{'group':_0x29a4e0[0x0],'type':_0x29a4e0[0x1],'subType':_0x29a4e0[_0x77fa('0x67')]>=0x5?_0x29a4e0[0x2]:null,'id':_0x29a4e0['length']<0x5?_0x29a4e0[0x2]:_0x29a4e0[0x3],'authorId':_0x29a4e0['length']<0x5?_0x29a4e0[0x3]:_0x29a4e0[0x4],'markerCount':0x6==_0x29a4e0['length']?_0x29a4e0[0x5]:null};}function _0x1792a6(_0x1ebcc1){for(let _0x4341ca=0x0;_0x4341ca<_0x12bfa0[_0x77fa('0x67')];_0x4341ca++){if(_0x1ebcc1[_0x77fa('0xa')]&&_0x77fa('0x5e')==_0x12bfa0[_0x4341ca][_0x77fa('0x3d')])return _0x1ebcc1['isAddSuggestion']=_0x12bfa0[_0x4341ca],void delete _0x1ebcc1[_0x77fa('0xa')];if(!_0x1ebcc1[_0x77fa('0xa')]&&!_0x1ebcc1[_0x77fa('0x42')]&&_0x77fa('0x39')==_0x12bfa0[_0x4341ca]['type'])return void(_0x1ebcc1[_0x77fa('0x88')]=_0x12bfa0[_0x4341ca]);}}}[_0x77fa('0x124')](_0x3cad0a,_0x3d7604){let _0x12cb19=0x0,_0x2fd040=!0x1;const _0x96a8f9=new Map();for(const _0x1066fc of _0x3cad0a)_0x1066fc[_0x3d7604]?_0x2fd040&&(_0x12cb19++,_0x2fd040=!0x1):(_0x12cb19++,_0x2fd040=!0x0),_0x96a8f9[_0x77fa('0xe1')](_0x1066fc['id'],_0x12cb19);for(let _0x10a570=0x0;_0x10a570<_0x3cad0a[_0x77fa('0x67')];_0x10a570++){if(_0x77fa('0x42')==_0x3d7604&&_0x3cad0a[_0x10a570]['isAdded']||'isAdded'==_0x3d7604&&_0x3cad0a[_0x10a570]['isRemoved'])continue;if(_0x77fa('0xc')==_0x3cad0a[_0x10a570][_0x77fa('0x3d')]){_0x3cad0a[_0x10a570]['distance']=0x0;continue;}const _0x270d05=_0x96a8f9[_0x77fa('0x28')](_0x3cad0a[_0x10a570][_0x77fa('0xed')]),_0x593ce1=_0x96a8f9[_0x77fa('0x28')](_0x3cad0a[_0x10a570]['id']);_0x3cad0a[_0x10a570][_0x77fa('0x90')]=_0x270d05-_0x593ce1;}}[_0x77fa('0xbd')](_0x17a1f4,_0x25a683,_0x3a7141=!0x1){const _0x295309=[];let _0x1b33c7=this[_0x77fa('0xa9')]['getIndex'](_0x17a1f4),_0x706242=this[_0x77fa('0xa9')][_0x77fa('0x76')](_0x25a683);for(-0x1==_0x706242&&(_0x706242=this[_0x77fa('0xa9')]['_revisions']['length'],_0x3a7141=!0x1);_0x1b33c7<_0x706242;)_0x295309[_0x77fa('0x119')](this[_0x77fa('0xa9')][_0x77fa('0xd7')](_0x1b33c7)),_0x1b33c7++;return _0x3a7141&&_0x295309[_0x77fa('0x119')](this[_0x77fa('0xa9')][_0x77fa('0xd7')](_0x1b33c7)),_0x295309;}[_0x77fa('0x0')](_0x29bce8,_0x25a26e,_0x33e19b,_0x26deea){const _0x51b8a3=this[_0x77fa('0x78')][_0x77fa('0xf5')][_0x77fa('0x2d')];let _0x28b5fb=_0x25a26e;for(;_0x29bce8[_0x28b5fb]&&_0x29bce8[_0x28b5fb]['isAdded'];)_0x28b5fb++;let _0x5b4ce2=_0x26deea;for(;_0x33e19b[_0x5b4ce2]&&_0x33e19b[_0x5b4ce2][_0x77fa('0x42')];)_0x5b4ce2++;_0x3b65be(_0x29bce8,_0x25a26e,_0x28b5fb),_0x3b65be(_0x33e19b,_0x26deea,_0x5b4ce2);const _0x431cb1=_0x33e19b['slice'](_0x26deea,_0x5b4ce2)[_0x77fa('0xe8')](_0x29bce8[_0x77fa('0x6b')](_0x25a26e,_0x28b5fb));return _0x431cb1[_0x77fa('0x126')]((_0x5430f1,_0x40ad24)=>_0x5430f1[_0x77fa('0x60')]!=_0x40ad24[_0x77fa('0x60')]?_0x5430f1[_0x77fa('0x60')]-_0x40ad24[_0x77fa('0x60')]:_0x5430f1[_0x77fa('0x8e')]!=_0x40ad24[_0x77fa('0x8e')]?_0x5430f1[_0x77fa('0x8e')]-_0x40ad24['level']:_0x5430f1[_0x77fa('0x90')]!=_0x40ad24[_0x77fa('0x90')]?_0x40ad24[_0x77fa('0x90')]-_0x5430f1['distance']:!!_0x5430f1[_0x77fa('0xa')]!=!!_0x40ad24[_0x77fa('0xa')]?-0x1==_0x5430f1[_0x77fa('0x60')]||0x0==_0x5430f1[_0x77fa('0x60')]?_0x5430f1[_0x77fa('0xa')]?-0x1:0x1:_0x5430f1['isAdded']?0x1:-0x1:_0x5430f1[_0x77fa('0xc7')]-_0x40ad24[_0x77fa('0xc7')]),{'commonTape':_0x431cb1,'iEnd':_0x28b5fb,'jEnd':_0x5b4ce2};function _0x3b65be(_0x5ca127,_0x3b1ce3,_0x5115b0){let _0x4c7bac=-0x1,_0x274a28=Number[_0x77fa('0x11e')],_0x544c40=!0x0;for(let _0x4b140e=_0x3b1ce3;_0x4b140e<_0x5115b0;_0x4b140e++)if(_0x51b8a3[_0x77fa('0xd8')](_0x5ca127[_0x4b140e][_0x77fa('0xfb')])||(_0x544c40=!0x1),_0x5ca127[_0x4b140e][_0x77fa('0xfb')]['startIndex']<_0x3b1ce3&&(_0x4c7bac=_0x4b140e),_0x5ca127[_0x4b140e][_0x77fa('0xfb')]['endIndex']>=_0x5115b0){_0x274a28=_0x4b140e;break;}_0x544c40&&(_0x4c7bac=_0x5115b0-0x1);for(let _0x1dc1b4=_0x3b1ce3;_0x1dc1b4<_0x5115b0;_0x1dc1b4++)_0x5ca127[_0x1dc1b4]['side']=_0x1dc1b4<=_0x4c7bac?-0x1:_0x1dc1b4<_0x274a28?0x0:0x1,_0x5ca127[_0x1dc1b4][_0x77fa('0xc7')]=_0x1dc1b4;let _0x148090=0x0;for(let _0x435568=_0x3b1ce3;_0x435568<=_0x4c7bac;_0x435568++)0x0==_0x5ca127[_0x435568][_0x77fa('0x90')]?_0x5ca127[_0x435568][_0x77fa('0x8e')]=_0x148090:(_0x148090++,_0x5ca127[_0x435568][_0x77fa('0x8e')]=_0x148090,_0x148090++);for(let _0x27f560=_0x3b1ce3;_0x27f560<_0x5115b0;_0x27f560++)0x0==_0x5ca127[_0x27f560]['side']&&(_0x5ca127[_0x27f560]['level']=_0x148090);_0x148090=0x0;for(let _0x4eeef7=_0x5115b0-0x1;_0x4eeef7>=_0x274a28;_0x4eeef7--)0x0==_0x5ca127[_0x4eeef7]['distance']?_0x5ca127[_0x4eeef7][_0x77fa('0x8e')]=_0x148090:(_0x148090--,_0x5ca127[_0x4eeef7][_0x77fa('0x8e')]=_0x148090,_0x148090--);}}[_0x77fa('0x109')](_0x58efb1){const _0x21f825=new Map(),_0x4b9559=this[_0x77fa('0x78')][_0x77fa('0xf5')][_0x77fa('0x2d')];for(let _0x2ae770=0x1;_0x2ae770<_0x58efb1['length'];_0x2ae770++){let _0x4126d1,_0x50ae98,_0x227f19;const _0xd73743=_0x58efb1[_0x2ae770],_0x3d1d69=_0x58efb1[_0x2ae770-0x1];if('text'==_0xd73743[_0x77fa('0x3d')])continue;if(_0xd73743['type']!=_0x3d1d69[_0x77fa('0x3d')])continue;if(!_0x4b9559[_0x77fa('0x82')](_0x3d1d69[_0x77fa('0xfb')])||_0x4b9559[_0x77fa('0x71')](_0x3d1d69[_0x77fa('0xfb')]))continue;if(!_0x4b9559[_0x77fa('0x82')](_0xd73743[_0x77fa('0xfb')])||_0x4b9559[_0x77fa('0x71')](_0xd73743[_0x77fa('0xfb')]))continue;if((_0x58efb1[_0x2ae770][_0x77fa('0xa')]||_0x58efb1[_0x2ae770][_0x77fa('0xce')])&&_0x58efb1[_0x2ae770-0x1][_0x77fa('0x42')])_0x4126d1=_0x58efb1[_0x2ae770],_0x50ae98=_0x58efb1[_0x2ae770-0x1],_0x227f19=_0x2ae770-0x1;else{if(!_0x58efb1[_0x2ae770]['isRemoved']||!_0x58efb1[_0x2ae770-0x1]['isAdded']&&!_0x58efb1[_0x2ae770-0x1]['isAddSuggestion'])continue;_0x4126d1=_0x58efb1[_0x2ae770-0x1],_0x50ae98=_0x58efb1[_0x2ae770],_0x227f19=_0x2ae770;}const _0x1a01d0=_0x4126d1[_0x77fa('0x8e')]==_0x50ae98[_0x77fa('0x8e')],_0x2687af=Math[_0x77fa('0xda')](_0x4126d1[_0x77fa('0x8e')])<Math[_0x77fa('0xda')](_0x50ae98['level'])&&0x0==_0x50ae98[_0x77fa('0x90')];(_0x1a01d0||_0x2687af)&&(_0x21f825[_0x77fa('0xe1')](_0x50ae98['id'],_0x4126d1['id']),_0x58efb1[_0x77fa('0x10f')](_0x227f19,0x1),_0x2ae770--,_0x4126d1[_0x77fa('0xa')]=!0x1);}for(let _0x5b7964=0x0;_0x5b7964<_0x58efb1[_0x77fa('0x67')];_0x5b7964++)_0x21f825[_0x77fa('0x51')](_0x58efb1[_0x5b7964][_0x77fa('0xed')])&&(_0x58efb1[_0x5b7964][_0x77fa('0xed')]=_0x21f825[_0x77fa('0x28')](_0x58efb1[_0x5b7964][_0x77fa('0xed')]));}[_0x77fa('0x11f')](_0x269898){const _0x24e73a=new Set(_0x269898[_0x77fa('0xf3')](_0xa2678d=>_0xa2678d['id']));for(let _0x17223=0x0;_0x17223<_0x269898[_0x77fa('0x67')];_0x17223++)_0x24e73a[_0x77fa('0x51')](_0x269898[_0x17223][_0x77fa('0xed')])||0x0==_0x269898[_0x17223][_0x77fa('0x90')]||(_0x269898[_0x17223][_0x77fa('0x31')]=!0x0);return _0x269898[_0x77fa('0x100')](_0x1846f2=>!_0x1846f2[_0x77fa('0x31')]);}[_0x77fa('0x3e')](_0xafcebb){const _0xc96a89=new Set();for(let _0x555fce=0x0;_0x555fce<_0xafcebb[_0x77fa('0x67')];_0x555fce++){if(_0xc96a89['has'](_0xafcebb[_0x555fce]['id'])&&_0xafcebb[_0x555fce]['isRemoved']&&(_0xafcebb[_0x555fce][_0x77fa('0x31')]=!0x0),_0xafcebb[_0x555fce]['isIncorrect'])continue;if(0x0==_0xafcebb[_0x555fce][_0x77fa('0x90')])continue;if(_0x77fa('0xe0')!=_0xafcebb[_0x555fce][_0x77fa('0x3d')])continue;if(null==_0xafcebb[_0x555fce][_0x77fa('0xed')])continue;let _0x4fc4dc=_0x555fce+0x1,_0x29bb3c=0x0;for(;_0xafcebb[_0x4fc4dc]['id']!=_0xafcebb[_0x555fce]['pairId'];)_0x77fa('0xe0')==_0xafcebb[_0x4fc4dc]['type']?_0x29bb3c++:_0x77fa('0x8f')==_0xafcebb[_0x4fc4dc][_0x77fa('0x3d')]&&_0x29bb3c--,_0x4fc4dc++;if(0x0!=_0x29bb3c){if(_0xafcebb[_0x555fce][_0x77fa('0x42')])_0xafcebb[_0x555fce][_0x77fa('0x31')]=!0x0;else for(;_0x4fc4dc!=_0x555fce;)_0xafcebb[_0x4fc4dc][_0x77fa('0x42')]&&0x0!=_0xafcebb[_0x4fc4dc][_0x77fa('0x90')]&&(_0xafcebb[_0x4fc4dc][_0x77fa('0x31')]=!0x0,_0xc96a89['add'](_0xafcebb[_0x4fc4dc][_0x77fa('0xed')])),_0x4fc4dc--;}}return _0xafcebb[_0x77fa('0x100')](_0x337d59=>!_0x337d59['isIncorrect']);}[_0x77fa('0x6a')](_0x16e5bb){const _0x52cc88=this[_0x77fa('0x78')][_0x77fa('0xf5')][_0x77fa('0x2d')];for(let _0x276d34=0x0;_0x276d34<_0x16e5bb[_0x77fa('0x67')];_0x276d34++){if(!(_0x16e5bb[_0x276d34][_0x77fa('0xa')]||_0x16e5bb[_0x276d34][_0x77fa('0xce')]||_0x16e5bb[_0x276d34][_0x77fa('0x42')]||_0x16e5bb[_0x276d34]['isRemoveSuggestion']))continue;if(0x0==_0x16e5bb[_0x276d34][_0x77fa('0x90')])continue;const _0x5b8bd6=_0x16e5bb[_0x276d34]['item'];_0x52cc88[_0x77fa('0x82')](_0x5b8bd6)||_0x52cc88[_0x77fa('0x71')](_0x5b8bd6)||(_0x16e5bb[_0x276d34]['isAdded']&&delete _0x16e5bb[_0x276d34]['isAdded'],_0x16e5bb[_0x276d34][_0x77fa('0xce')]&&delete _0x16e5bb[_0x276d34][_0x77fa('0xce')],_0x16e5bb[_0x276d34]['isRemoveSuggestion']&&delete _0x16e5bb[_0x276d34][_0x77fa('0x88')],_0x16e5bb[_0x276d34][_0x77fa('0x42')]&&(_0x16e5bb[_0x276d34][_0x77fa('0x31')]=!0x0));}return _0x16e5bb['filter'](_0x42e80d=>!_0x42e80d[_0x77fa('0x31')]);}[_0x77fa('0x106')](_0x55351b,_0x1d113d,_0x577e18){const _0x52adb4=new _0x301f71(),_0x2cf965=[],_0x1f8541=new Map(),_0x290b06=this['editor']['model'],_0x3e7803=_0x290b06['schema'],_0x55ef5f=[_0x52adb4],_0x884d08={},_0x31aff3={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x143c05=null;const _0x766702=[0x0];for(let _0x47bf46=0x0;_0x47bf46<_0x55351b[_0x77fa('0x67')];_0x47bf46++){let _0x1a9025,_0x1cccb2;if('elementStart'===_0x55351b[_0x47bf46][_0x77fa('0x3d')]){_0x1a9025=_0x290b06[_0x77fa('0x16')](_0x52adb4,_0x766702);const _0x209f17=new _0x3725a2(_0x55351b[_0x47bf46][_0x77fa('0xfb')]['name'],_0x55351b[_0x47bf46][_0x77fa('0xfb')]['getAttributes']());_0x55ef5f[0x0][_0x77fa('0x101')](_0x209f17),_0x766702[_0x77fa('0x119')](0x0),_0x55ef5f[_0x77fa('0xa6')](_0x209f17),_0x1cccb2=_0x290b06[_0x77fa('0x16')](_0x52adb4,_0x766702),_0x143c05=null;}else{if(_0x77fa('0x8f')===_0x55351b[_0x47bf46][_0x77fa('0x3d')])_0x55ef5f[_0x77fa('0x18')](),_0x1a9025=_0x290b06[_0x77fa('0x16')](_0x52adb4,_0x766702),_0x766702[_0x77fa('0x6d')](),_0x766702[_0x766702[_0x77fa('0x67')]-0x1]++,_0x1cccb2=_0x290b06['createPositionFromPath'](_0x52adb4,_0x766702),_0x143c05=null;else{if(_0x1a9025=_0x290b06[_0x77fa('0x16')](_0x52adb4,_0x766702),_0x143c05&&_0x52515e(_0x143c05,_0x55351b[_0x47bf46][_0x77fa('0xfb')]))_0x143c05[_0x77fa('0xe2')]+=_0x55351b[_0x47bf46][_0x77fa('0xfb')][_0x77fa('0xe3')];else{const _0x493f5b=new _0x174716(_0x55351b[_0x47bf46]['item'][_0x77fa('0xe3')],_0x55351b[_0x47bf46][_0x77fa('0xfb')][_0x77fa('0xab')]());_0x55ef5f[0x0][_0x77fa('0x101')](_0x493f5b),_0x143c05=_0x493f5b;}_0x766702[_0x766702[_0x77fa('0x67')]-0x1]+=_0x55351b[_0x47bf46][_0x77fa('0xfb')]['offsetSize'],_0x1cccb2=_0x290b06[_0x77fa('0x16')](_0x52adb4,_0x766702);}}for(const _0x2f339c of _0x55351b[_0x47bf46]['markersStart'])_0x1f8541[_0x77fa('0xe1')](_0x2f339c,{'start':_0x1a9025,'end':null});_0x2dd2fa('isRemoveSuggestion',_0x47bf46,_0x1a9025,_0x1cccb2),_0x2dd2fa(_0x77fa('0xce'),_0x47bf46,_0x1a9025,_0x1cccb2),_0x2dd2fa('isRemoved',_0x47bf46,_0x1a9025,_0x1cccb2),_0x2dd2fa(_0x77fa('0xa'),_0x47bf46,_0x1a9025,_0x1cccb2);for(const _0x37de9c of _0x55351b[_0x47bf46][_0x77fa('0x1a')]){_0x1f8541[_0x77fa('0x28')](_0x37de9c)['end']=_0x1cccb2;}}for(const [_0x4cb5db,_0x1f4c8b]of _0x1f8541){const _0x32536d=this['editor'][_0x77fa('0xf5')]['createRange'](_0x1f4c8b['start'],_0x1f4c8b[_0x77fa('0xeb')]);_0x52adb4['markers'][_0x77fa('0xe1')](_0x4cb5db,_0x32536d);}return _0x2cf965[_0x77fa('0x126')]((_0x25a03c,_0x37ef85)=>{const _0x467416=_0x52adb4[_0x77fa('0x83')][_0x77fa('0x28')](_0x77fa('0xa8')+_0x25a03c['id']),_0x4e07f7=_0x52adb4[_0x77fa('0x83')]['get'](_0x77fa('0xa8')+_0x37ef85['id']);return _0x467416['start']['isBefore'](_0x4e07f7[_0x77fa('0x29')])?-0x1:_0x467416[_0x77fa('0x29')][_0x77fa('0xf4')](_0x4e07f7[_0x77fa('0x29')])?0x1:_0x467416[_0x77fa('0xeb')][_0x77fa('0xa4')](_0x4e07f7[_0x77fa('0xeb')])?-0x1:_0x467416[_0x77fa('0xeb')][_0x77fa('0xf4')](_0x4e07f7[_0x77fa('0xeb')])?0x1:_0x77fa('0x105')===_0x25a03c[_0x77fa('0x3d')]?-0x1:0x1;}),{'root':_0x52adb4,'changes':_0x2cf965};function _0x2dd2fa(_0x39f1a0,_0x28fddc,_0x4af469,_0x37710b){const _0x199e33=!!_0x55351b[_0x28fddc][_0x39f1a0],_0x564c70=_0x199e33?_0x55351b[_0x28fddc][_0x39f1a0]['userId']:null,_0x53569f=_0x28fddc===_0x55351b[_0x77fa('0x67')]-0x1,_0x1bcaee=_0x31aff3[_0x39f1a0][0x0],_0x25aeb6=_0x3e7803[_0x77fa('0x123')](_0x55351b[_0x28fddc][_0x77fa('0xfb')]);!_0x884d08[_0x39f1a0]&&_0x199e33?_0x884d08[_0x39f1a0]={'start':_0x4af469,'tapeItem':_0x55351b[_0x28fddc],'userId':_0x564c70,'type':_0x39f1a0}:_0x884d08[_0x39f1a0]&&!_0x199e33?(_0x884d08[_0x39f1a0][_0x77fa('0xeb')]=_0x4af469,_0x1b7dc1(_0x884d08[_0x39f1a0]),_0x884d08[_0x39f1a0]=null):_0x884d08[_0x39f1a0]&&_0x199e33&&_0x884d08[_0x39f1a0]['userId']!==_0x564c70&&(_0x884d08[_0x39f1a0]['end']=_0x4af469,_0x1bcaee&&_0x1bcaee['userId']===_0x884d08[_0x39f1a0][_0x77fa('0x4d')]||_0x1b7dc1(_0x884d08[_0x39f1a0]),_0x884d08[_0x39f1a0]={'start':_0x4af469,'tapeItem':_0x55351b[_0x28fddc],'userId':_0x564c70,'type':_0x39f1a0}),_0x884d08[_0x39f1a0]&&_0x25aeb6&&('elementStart'!==_0x55351b[_0x28fddc][_0x77fa('0x3d')]||_0x1bcaee&&_0x1bcaee[_0x77fa('0x4d')]===_0x564c70||_0x31aff3[_0x39f1a0][_0x77fa('0xa6')]({'userId':_0x564c70,'object':_0x55351b[_0x28fddc]['item'],'change':_0x884d08[_0x39f1a0]}),_0x77fa('0x8f')===_0x55351b[_0x28fddc][_0x77fa('0x3d')]&&_0x1bcaee&&_0x1bcaee['object']===_0x55351b[_0x28fddc][_0x77fa('0xfb')]&&(_0x31aff3[_0x39f1a0][_0x77fa('0x18')](),_0x884d08[_0x39f1a0]=_0x1bcaee[_0x77fa('0xe7')])),_0x884d08[_0x39f1a0]&&_0x53569f&&(_0x884d08[_0x39f1a0][_0x77fa('0xeb')]=_0x37710b,_0x1b7dc1(_0x884d08[_0x39f1a0]),_0x884d08[_0x39f1a0]=null);}function _0x1b7dc1({start:_0x39fbfe,end:_0x1a7e3a,tapeItem:_0x2cb04b,userId:_0x268666,type:_0x3b546c}){const _0x162285=_0x2cb04b[_0x77fa('0xfb')],_0xf2ac9e=_0x290b06[_0x77fa('0x2d')][_0x77fa('0x82')](_0x162285)&&!_0x290b06[_0x77fa('0x2d')][_0x77fa('0x71')](_0x162285),_0x4b5d58=_0x39fbfe['nodeAfter']==_0x1a7e3a['parent']&&_0x1a7e3a[_0x77fa('0x61')];if(_0xf2ac9e&&_0x4b5d58)return;const _0x20285f=_0x290b06['createRange'](_0x39fbfe,_0x1a7e3a),_0x1ee33f=_0x1d113d[_0x77fa('0x28')](_0x268666),_0x2a3134=new _0x2494ad({'author':_0x1ee33f,'type':'isAdded'==_0x3b546c||_0x77fa('0xce')==_0x3b546c?_0x77fa('0x105'):_0x77fa('0x11d'),'data':{'isSuggestion':_0x77fa('0xce')==_0x3b546c||_0x77fa('0x88')==_0x3b546c},'createdAt':new Date(),'rootName':_0x577e18});_0x2cf965[_0x77fa('0x119')](_0x2a3134),_0x52adb4[_0x77fa('0x83')][_0x77fa('0xe1')](_0x77fa('0xa8')+_0x2a3134['id'],_0x20285f);}function _0x52515e(_0x1ddba6,_0x3fdfdd){const _0x94ffd1=_0x1ddba6['getAttributes'](),_0x1138ba=_0x3fdfdd[_0x77fa('0xab')]();for(const _0x2ec900 of _0x94ffd1){if(_0x2ec900[0x1]!==_0x3fdfdd[_0x77fa('0xb5')](_0x2ec900[0x0]))return!0x1;_0x1138ba[_0x77fa('0x7d')]();}return _0x1138ba['next']()[_0x77fa('0xb7')];}}[_0x77fa('0x2c')](){this['editor'][_0x77fa('0x2e')][_0x77fa('0xf7')](_0x77fa('0xf9'))[_0x77fa('0x21')]({'view':_0x77fa('0xba')}),this[_0x77fa('0x78')][_0x77fa('0x2e')][_0x77fa('0xf7')](_0x77fa('0x9'))['markerToHighlight']({'model':'revision','view':_0x228795=>{const _0x4f3d0=_0x228795[_0x77fa('0xd6')][_0x77fa('0x33')](':')[0x1],_0x488d83=this[_0x77fa('0xde')](_0x4f3d0);if(!_0x488d83)return null;const _0x4a8e1e=_0x77fa('0x105')==_0x488d83[_0x77fa('0x3d')]?'insertion':_0x77fa('0x39'),_0x53764d=[_0x77fa('0x69'),_0x77fa('0x13')+_0x4a8e1e];return _0x488d83['data'][_0x77fa('0x117')]&&_0x53764d['push'](_0x77fa('0x13')+_0x4a8e1e+_0x77fa('0x107')),this[_0x77fa('0x25')]==_0x488d83&&_0x53764d['push']('ck-suggestion-marker--active'),{'classes':_0x53764d,'attributes':{'data-change-id':_0x4f3d0}};}}),this['editor'][_0x77fa('0x2e')][_0x77fa('0xf7')](_0x77fa('0xf9'))['add'](_0x30f902=>{_0x30f902['on'](_0x77fa('0x11a'),(_0x1969db,_0x4807a5,_0x46b1f7)=>{const _0x1f6079=_0x4807a5[_0x77fa('0x22')][_0x77fa('0x115')](0x0);if(!_0x1f6079||!_0x1f6079['is']('element',_0x77fa('0x121')))return;if(!_0x46b1f7[_0x77fa('0x44')]['consume'](_0x1f6079,{'attributes':[_0x77fa('0xd9'),_0x77fa('0xe')]}))return;const _0x3aff0d=_0x4807a5[_0x77fa('0xa7')]['start'][_0x77fa('0x37')];_0x46b1f7[_0x77fa('0x9b')][_0x77fa('0x5a')](_0x77fa('0xd9'),_0x1f6079[_0x77fa('0xb5')](_0x77fa('0xd9')),_0x3aff0d),_0x46b1f7[_0x77fa('0x9b')][_0x77fa('0x5a')](_0x77fa('0xe'),_0x1f6079['getAttribute'](_0x77fa('0xe')),_0x3aff0d);},{'priority':'low'});}),this[_0x77fa('0x78')][_0x77fa('0x2e')]['for'](_0x77fa('0xf9'))['add'](_0x421c8a=>{_0x421c8a['on']('element',(_0x1db002,_0x1edeb8,_0x5f2245)=>{if(!_0x5f2245['consumable']['consume'](_0x1edeb8[_0x77fa('0x22')],{'attributes':[_0x77fa('0xd9'),_0x77fa('0xe')]}))return;if(_0x1edeb8[_0x77fa('0xa7')]['isCollapsed'])return;const _0x1f8ea6=_0x1edeb8[_0x77fa('0xa7')][_0x77fa('0x29')][_0x77fa('0x37')];_0x1f8ea6[_0x77fa('0xc3')]('vid_start')||_0x1f8ea6[_0x77fa('0xc3')](_0x77fa('0x6'))||(_0x5f2245['writer']['setAttribute'](_0x77fa('0xd9'),_0x1edeb8[_0x77fa('0x22')][_0x77fa('0xb5')](_0x77fa('0xd9')),_0x1f8ea6),_0x5f2245[_0x77fa('0x9b')]['setAttribute'](_0x77fa('0xe'),_0x1edeb8['viewItem'][_0x77fa('0xb5')](_0x77fa('0xe')),_0x1f8ea6));},{'priority':_0x77fa('0x7c')});}),this['editor'][_0x77fa('0x2e')][_0x77fa('0xf7')]('upcast')[_0x77fa('0x9c')]({'view':{'name':_0x77fa('0x80'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4f99cd=>_0x4f99cd[_0x77fa('0xb5')](_0x77fa('0x6'))}}),this['editor'][_0x77fa('0xf5')][_0x77fa('0x2d')]['on'](_0x77fa('0xf0'),(_0x21078a,[,_0x28653e])=>{[_0x77fa('0xd9'),'vid_end','vid'][_0x77fa('0x86')](_0x28653e)&&(_0x21078a[_0x77fa('0xbf')]=!0x0,_0x21078a[_0x77fa('0x3')]());},{'priority':_0x77fa('0x24')}),this[_0x77fa('0x78')][_0x77fa('0x2e')][_0x77fa('0xf7')](_0x77fa('0x30'))['add'](_0x1842ec=>{_0x1842ec['on'](_0x77fa('0x70'),(_0x5ba750,_0x5d851f,_0x55634f)=>{if('\x20'!=_0x5d851f['item'][_0x77fa('0xe3')]||_0x5d851f[_0x77fa('0xfb')][_0x77fa('0x3f')][_0x77fa('0x7a')]>0x1)return;if(!_0x55634f[_0x77fa('0x44')][_0x77fa('0xc9')](_0x5d851f['item'],_0x5ba750[_0x77fa('0x62')]))return;const _0x270346=_0x55634f[_0x77fa('0x9b')],_0x4285f4=_0x55634f['mapper']['toViewRange'](_0x5d851f['range']);_0x270346[_0x77fa('0x36')](_0x4285f4,_0x270346[_0x77fa('0x47')](_0x77fa('0x80')));});}),this['editor'][_0x77fa('0x2e')][_0x77fa('0xf7')](_0x77fa('0x30'))[_0x77fa('0xbb')]({'model':'revision'}),this['editor']['editing'][_0x77fa('0x48')]['on'](_0x77fa('0xae'),function(_0x30209a){const _0x4d678d=_0x30209a[_0x77fa('0xee')][_0x77fa('0x28')](_0x77fa('0x114'));return(_0x52dd4c,_0x55e5b8,_0x5cbba1)=>{const _0x5c32b0=_0x55e5b8[_0x77fa('0xd6')][_0x77fa('0x33')](':')[0x1],_0x7c3025=_0x4d678d['_getChangeFromId'](_0x5c32b0);if(!_0x7c3025)return null;const _0x37ce68=_0x77fa('0x105')==_0x7c3025[_0x77fa('0x3d')]?'split':_0x77fa('0xca');if(!_0x5cbba1['consumable'][_0x77fa('0x64')](_0x55e5b8['markerRange'],_0x52dd4c['name']))return;const _0x14c6bb=_0x55e5b8[_0x77fa('0x45')][_0x77fa('0xb3')](),_0x1148a7=_0x55e5b8['markerRange'][_0x77fa('0x29')],_0x4e2d4c=_0x30209a[_0x77fa('0xf5')][_0x77fa('0x2d')];let _0x348621=null,_0x2b26b7=null,_0x9c9850=!0x1,_0x8cb0be=!0x1;for(const _0x178fee of _0x14c6bb){const _0x4e22bf=_0x178fee[_0x77fa('0xfb')];_0x9c9850=_0x9c9850||_0x4e2d4c[_0x77fa('0x49')](_0x4e22bf);const _0x2a02a6=_0x5cbba1[_0x77fa('0x41')]['toViewElement'](_0x4e22bf);if(_0x2a02a6&&_0x2a02a6[_0x77fa('0x26')](_0x77fa('0x99')))return;'elementEnd'==_0x178fee[_0x77fa('0x3d')]&&(_0x4e2d4c[_0x77fa('0x82')](_0x4e22bf)&&!_0x4e2d4c[_0x77fa('0x71')](_0x4e22bf)&&(_0x4e22bf[_0x77fa('0xcc')]||_0x1148a7[_0x77fa('0x12')]?_0x348621&&_0x348621['parent']==_0x4e22bf||(_0x348621=_0x4e22bf,_0x33bd5f(_0x178fee[_0x77fa('0xa2')]),_0x8cb0be=!0x0):_0x2b26b7=_0x2b26b7||_0x178fee['previousPosition']));}function _0x33bd5f(_0x395d5b){const _0x28b7eb=_0x5cbba1['writer']['createUIElement'](_0x77fa('0x80'),{'class':_0x77fa('0x13')+_0x37ce68}),_0x256abb=_0x5cbba1[_0x77fa('0x41')][_0x77fa('0xb4')](_0x395d5b);_0x7c3025['data']['isSuggestion']&&_0x5cbba1[_0x77fa('0x9b')][_0x77fa('0x125')](_0x77fa('0x13')+_0x37ce68+_0x77fa('0x107'),_0x28b7eb),_0x4d678d[_0x77fa('0x25')]==_0x7c3025&&_0x5cbba1['writer'][_0x77fa('0x125')](_0x77fa('0xa0'),_0x28b7eb),_0x5cbba1[_0x77fa('0x9b')][_0x77fa('0xc8')](_0x256abb,_0x28b7eb),_0x5cbba1[_0x77fa('0x41')]['bindElementToMarker'](_0x28b7eb,_0x55e5b8[_0x77fa('0xd6')]);}_0x9c9850||_0x8cb0be||!_0x2b26b7||_0x33bd5f(_0x2b26b7);};}(this['editor']),{'priority':_0x77fa('0x102')}),this[_0x77fa('0x78')][_0x77fa('0xb')][_0x77fa('0x48')]['on']('removeMarker:revision',(_0x57c5ef,_0x4cfadf,_0x3dc360)=>{const _0x4058d3=_0x3dc360['mapper'][_0x77fa('0x4b')](_0x4cfadf[_0x77fa('0xd6')]);if(_0x4058d3)for(const _0x28ff55 of _0x4058d3)(_0x28ff55[_0x77fa('0x14')]('ck-suggestion-marker-split')||_0x28ff55[_0x77fa('0x14')](_0x77fa('0x2')))&&(_0x3dc360['mapper'][_0x77fa('0xc2')](_0x28ff55,_0x4cfadf['markerName']),_0x3dc360[_0x77fa('0x9b')][_0x77fa('0x11d')](_0x28ff55));},{'priority':_0x77fa('0x102')}),this[_0x77fa('0x78')][_0x77fa('0xb')][_0x77fa('0x48')]['on'](_0x77fa('0xae'),(_0x119e97,_0x3ecf93,_0x215b05)=>{const _0x2ceaea=_0x3ecf93[_0x77fa('0xd6')][_0x77fa('0x33')](':')[0x1],_0x2706df=this[_0x77fa('0xde')](_0x2ceaea);if(!_0x2706df)return null;const _0x15b86e=_0x77fa('0x105')==_0x2706df[_0x77fa('0x3d')]?_0x77fa('0x33'):_0x77fa('0xca');if(_0x215b05[_0x77fa('0x44')][_0x77fa('0x64')](_0x3ecf93['markerRange'],_0x119e97[_0x77fa('0x62')]))for(const _0x525ddf of _0x3ecf93[_0x77fa('0x45')][_0x77fa('0x8a')]()){if(!_0x525ddf['is'](_0x77fa('0xc0'),_0x77fa('0x11b')))continue;const _0x691c8=_0x215b05[_0x77fa('0x9b')][_0x77fa('0x38')](_0x77fa('0x80'),{'class':_0x77fa('0x13')+_0x15b86e}),_0x3a2ee5=_0x215b05[_0x77fa('0x41')][_0x77fa('0xb4')](this[_0x77fa('0x78')]['model'][_0x77fa('0x4a')](_0x525ddf));_0x2706df[_0x77fa('0xe3')]['isSuggestion']&&_0x215b05[_0x77fa('0x9b')][_0x77fa('0x125')]('ck-suggestion-marker-'+_0x15b86e+'-new',_0x691c8),this[_0x77fa('0x25')]==_0x2706df&&_0x215b05[_0x77fa('0x9b')]['addClass']('ck-suggestion-marker--active',_0x691c8),_0x215b05[_0x77fa('0x9b')][_0x77fa('0xc8')](_0x3a2ee5,_0x691c8),_0x215b05[_0x77fa('0x41')][_0x77fa('0xf6')](_0x691c8,_0x3ecf93['markerName']);}},{'priority':_0x77fa('0x102')}),this[_0x77fa('0x78')][_0x77fa('0xf5')][_0x77fa('0xd3')]['on'](_0x77fa('0xe7'),()=>{this[_0x77fa('0x78')][_0x77fa('0xb')][_0x77fa('0x1')][_0x77fa('0xe7')](_0x23051b=>{for(const _0x124abc of this[_0x77fa('0x78')][_0x77fa('0xf5')]['document'][_0x77fa('0x5b')]()){const _0x93efb2=this[_0x77fa('0x78')]['model'][_0x77fa('0xd3')][_0x77fa('0x10e')](_0x124abc),_0xc3361c=this[_0x77fa('0x78')][_0x77fa('0xb')][_0x77fa('0x1')][_0x77fa('0xd3')]['getRoot'](_0x124abc);if(_0xc3361c){const _0x2cdd48=_0x93efb2[_0x77fa('0xb5')](_0x77fa('0x6e'));if(_0x23051b[_0x77fa('0x46')]('data-change-id',_0xc3361c),_0x23051b[_0x77fa('0xfe')](_0x77fa('0xf'),_0xc3361c),_0x23051b['removeClass'](_0x77fa('0x92'),_0xc3361c),_0x23051b['removeClass'](_0x77fa('0xad'),_0xc3361c),_0x2cdd48){const _0x513fb0=this[_0x77fa('0xde')](_0x2cdd48);if(!_0x513fb0)return null;_0x23051b[_0x77fa('0x5a')](_0x77fa('0x96'),_0x2cdd48,_0xc3361c),_0x23051b[_0x77fa('0x125')](_0x77fa('0x4e')+_0x513fb0[_0x77fa('0x3d')],_0xc3361c),this[_0x77fa('0x25')]==_0x513fb0&&_0x23051b['addClass'](_0x77fa('0xad'),_0xc3361c);}}}});}),this[_0x77fa('0x78')][_0x77fa('0x2e')]['for'](_0x77fa('0xf9'))['dataToMarker']({'view':'comment','model':_0x381cad=>'revision-comment:'+_0x381cad,'converterPriority':_0x77fa('0x24')}),this[_0x77fa('0x78')][_0x77fa('0x2e')][_0x77fa('0xf7')](_0x77fa('0xf9'))[_0x77fa('0x21')]({'view':_0x77fa('0xd5'),'model':_0x5e3c59=>_0x77fa('0xaf')+_0x5e3c59,'converterPriority':'highest'}),this[_0x77fa('0x78')][_0x77fa('0x2e')]['for'](_0x77fa('0x30'))[_0x77fa('0xbb')]({'model':_0x77fa('0xf8'),'view':_0xcbb6e2=>({'name':_0x77fa('0x112')+_0xcbb6e2,'group':_0x77fa('0xf8')}),'converterPriority':_0x77fa('0x24')}),this[_0x77fa('0x78')][_0x77fa('0x2e')][_0x77fa('0xf7')]('editingDowncast')[_0x77fa('0x116')]({'model':_0x77fa('0xf8'),'view':_0x3d71e4=>{const _0x4c59f5=_0x3d71e4[_0x77fa('0xd6')][_0x77fa('0x33')](':')[0x1];return _0x77fa('0x5e')!=_0x4c59f5&&_0x77fa('0x39')!=_0x4c59f5?null:{'classes':['ck-suggestion-preview-marker',_0x77fa('0x72')+_0x4c59f5]};}}),this[_0x77fa('0x78')][_0x77fa('0xb')][_0x77fa('0x48')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x77fa('0x78')],_0x77fa('0xca')),{'priority':_0x77fa('0x102')}),this['editor'][_0x77fa('0xb')][_0x77fa('0x48')]['on'](_0x77fa('0xcd'),et(this[_0x77fa('0x78')],_0x77fa('0x33')),{'priority':_0x77fa('0x102')}),this[_0x77fa('0x78')][_0x77fa('0xb')][_0x77fa('0x48')]['on']('removeMarker:revision-suggestion',(_0x199c7f,_0x3138e2,_0x151655)=>{const _0x2f8c0b=_0x151655[_0x77fa('0x41')][_0x77fa('0x4b')](_0x3138e2[_0x77fa('0xd6')]);if(_0x2f8c0b)for(const _0x1f9f34 of _0x2f8c0b)_0x1f9f34['is']('uiElement')&&(_0x151655[_0x77fa('0x41')]['unbindElementFromMarkerName'](_0x1f9f34,_0x3138e2[_0x77fa('0xd6')]),_0x151655[_0x77fa('0x9b')][_0x77fa('0x11d')](_0x1f9f34));},{'priority':'high'});}[_0x77fa('0xde')](_0x59b8c5){return this[_0x77fa('0x93')][_0x77fa('0x28')](_0x59b8c5);}['_getViewForChange'](_0x3b273a){return this['_changeView']&&this[_0x77fa('0x10')][_0x77fa('0x73')](),this[_0x77fa('0x10')]=new _0x3f6844(this[_0x77fa('0x78')]['locale'],_0x3b273a),this[_0x77fa('0x10')];}[_0x77fa('0x7b')](){this[_0x77fa('0x78')][_0x77fa('0xf5')][_0x77fa('0xd3')][_0x77fa('0x7')][_0x77fa('0x10c')]('revision'),this['on']('change:activeView',(_0x28bd71,_0x59fc0b,_0x4ecf55,_0x49c191)=>{_0x49c191&&this[_0x77fa('0x35')][_0x77fa('0x11d')](_0x49c191),_0x4ecf55&&(this[_0x77fa('0x35')]['add']({'view':_0x4ecf55,'stackId':_0x77fa('0x79'),'position':{'target':()=>{const _0x33b905=this[_0x77fa('0x78')][_0x77fa('0xb')],_0x2d095e=this[_0x77fa('0xde')](_0x4ecf55[_0x77fa('0xb9')]);let _0x2c8b8b;if(_0x2d095e[_0x77fa('0xe3')][_0x77fa('0x3c')]){const _0x15c90b=_0x33b905['view'][_0x77fa('0x104')](_0x2d095e[_0x77fa('0xec')]);_0x2c8b8b=Array['from'](_0x15c90b[_0x77fa('0x59')]());}else{const _0x116b97=this[_0x77fa('0x78')]['model'][_0x77fa('0x83')][_0x77fa('0x28')]('revision:'+_0x4ecf55['changeId']);_0x2c8b8b=Array[_0x77fa('0x1c')](_0x33b905[_0x77fa('0x41')][_0x77fa('0x4b')](_0x116b97[_0x77fa('0x62')]))[_0x77fa('0xf3')](_0x4e8895=>_0x33b905[_0x77fa('0x1')][_0x77fa('0x11c')][_0x77fa('0xf1')](_0x4e8895))[_0x77fa('0xf3')](_0x21e02e=>Array[_0x77fa('0x1c')](_0x21e02e[_0x77fa('0x59')]()))[_0x77fa('0x23')]();}if(!this[_0x77fa('0xbe')])return _0x2c8b8b[0x0];return _0x2c8b8b['find'](_0x4c4447=>_0x4c4447['top']-0x3<=this[_0x77fa('0xbe')]['y']&&_0x4c4447['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4c4447[_0x77fa('0xc6')]-0x3<=this[_0x77fa('0xbe')]['x']&&_0x4c4447['right']+0x3>=this[_0x77fa('0xbe')]['x'])||_0x2c8b8b[0x0];}}}),this[_0x77fa('0x35')][_0x77fa('0x9e')]('revisionHistoryLabel'));}),this['on'](_0x77fa('0x57'),(_0x103c72,_0x3eb2b1,_0x23f38d,_0x4c6b69)=>{this[_0x77fa('0x8c')]=_0x23f38d?this[_0x77fa('0xa1')](_0x23f38d):null,this['editor'][_0x77fa('0xf5')][_0x77fa('0xe7')](()=>{const _0x119bf5=this[_0x77fa('0x78')][_0x77fa('0xb')];_0x4c6b69&&(_0x4c6b69[_0x77fa('0xe3')][_0x77fa('0x3c')]?_0x119bf5[_0x77fa('0x1')][_0x77fa('0xe7')](_0x366eb5=>{_0x366eb5['removeClass'](_0x77fa('0xad'),_0x119bf5[_0x77fa('0x1')][_0x77fa('0xd3')][_0x77fa('0x10e')](_0x4c6b69['rootName']));}):_0x119bf5[_0x77fa('0x58')](_0x77fa('0xa8')+_0x4c6b69['id'])),_0x23f38d&&(_0x23f38d[_0x77fa('0xe3')]['isOnRoot']?_0x119bf5[_0x77fa('0x1')]['change'](_0x30926e=>{_0x30926e[_0x77fa('0x125')](_0x77fa('0xad'),_0x119bf5['view'][_0x77fa('0xd3')]['getRoot'](_0x23f38d[_0x77fa('0xec')]));}):_0x119bf5[_0x77fa('0x58')](_0x77fa('0xa8')+_0x23f38d['id']));});}),this[_0x77fa('0x15')](this['editor'][_0x77fa('0xb')][_0x77fa('0x1')][_0x77fa('0xd3')],_0x77fa('0xef'),(_0x8c2b07,_0x386f08)=>{if(this[_0x77fa('0x25')])return;const _0x5db7b4=this[_0x77fa('0xfa')](_0x386f08[_0x77fa('0x77')]),_0x719c1a=this[_0x77fa('0x93')][_0x77fa('0x28')](_0x5db7b4);_0x719c1a?(this[_0x77fa('0xbe')]={'x':_0x386f08[_0x77fa('0x75')]['x'],'y':_0x386f08[_0x77fa('0x75')]['y']},this[_0x77fa('0x8c')]=this['_getViewForChange'](_0x719c1a)):(this[_0x77fa('0xbe')]=null,this[_0x77fa('0x8c')]=null);}),this[_0x77fa('0x15')](this[_0x77fa('0x78')][_0x77fa('0xb')][_0x77fa('0x1')][_0x77fa('0xd3')],_0x77fa('0x118'),(_0x38a848,_0x56e286)=>{const _0x3b69b8=this[_0x77fa('0xfa')](_0x56e286['target']),_0xa7c4e9=this['_changeIdToChange'][_0x77fa('0x28')](_0x3b69b8);_0xa7c4e9?(this[_0x77fa('0xbe')]={'x':_0x56e286[_0x77fa('0x75')]['x'],'y':_0x56e286[_0x77fa('0x75')]['y']},_0xa7c4e9===this['activeChange']?this[_0x77fa('0x35')][_0x77fa('0x56')]():this[_0x77fa('0x25')]=_0xa7c4e9):(this['_activeViewTarget']=null,this[_0x77fa('0x25')]=null);});}['_findChangeIdFromDomTarget'](_0x357226){do{const _0x330cac=_0x357226[_0x77fa('0xb5')](_0x77fa('0x96'));if(_0x330cac)return _0x330cac;_0x357226=_0x357226[_0x77fa('0x3f')];}while(_0x357226);return null;}[_0x77fa('0x1b')](){this[_0x77fa('0x78')][_0x77fa('0xf5')][_0x77fa('0xe7')](_0x1463d1=>{for(const _0x473cd5 of this[_0x77fa('0x78')][_0x77fa('0xf5')]['markers'])_0x1463d1[_0x77fa('0x84')](_0x473cd5);});}}function et(_0x169585,_0x572e8c){return(_0x3c0eeb,_0x395023,_0x145386)=>{if(!_0x145386[_0x77fa('0x44')][_0x77fa('0x64')](_0x395023[_0x77fa('0x45')],_0x3c0eeb[_0x77fa('0x62')]))return;const _0x4d3a61=_0x395023[_0x77fa('0x45')][_0x77fa('0xb3')](),_0x299b18=_0x395023[_0x77fa('0x45')][_0x77fa('0x29')],_0x28b7a0=_0x169585[_0x77fa('0xf5')][_0x77fa('0x2d')];let _0xfb8050=null,_0x4921b6=null,_0x9fe205=!0x1,_0x6bace5=!0x1;for(const _0x92dc8c of _0x4d3a61){const _0x53c956=_0x92dc8c['item'];_0x9fe205=_0x9fe205||_0x28b7a0['isContent'](_0x53c956);const _0x38c90f=_0x145386[_0x77fa('0x41')][_0x77fa('0x6c')](_0x53c956);if(_0x38c90f&&_0x38c90f[_0x77fa('0x26')](_0x77fa('0x99')))return;'elementEnd'==_0x92dc8c[_0x77fa('0x3d')]&&(_0x28b7a0[_0x77fa('0x82')](_0x53c956)&&!_0x28b7a0[_0x77fa('0x71')](_0x53c956)&&(_0x53c956[_0x77fa('0xcc')]||_0x299b18[_0x77fa('0x12')]?_0xfb8050&&_0xfb8050[_0x77fa('0x3f')]==_0x53c956||(_0xfb8050=_0x53c956,_0x3d83e4(_0x92dc8c[_0x77fa('0xa2')]),_0x6bace5=!0x0):_0x4921b6=_0x4921b6||_0x92dc8c['previousPosition']));}function _0x3d83e4(_0x9bf20f){const _0x4745e5=_0x145386[_0x77fa('0x41')]['toViewPosition'](_0x9bf20f),_0xf03391=_0x145386[_0x77fa('0x9b')]['createUIElement']('span',{'class':_0x77fa('0x72')+_0x572e8c});_0x145386['writer']['insert'](_0x4745e5,_0xf03391),_0x145386[_0x77fa('0x41')][_0x77fa('0xf6')](_0xf03391,_0x395023[_0x77fa('0xd6')]);}_0x9fe205||_0x6bace5||!_0x4921b6||_0x3d83e4(_0x4921b6);};}export class RestoreRevisionCommand extends _0x2dba10{constructor(_0xce6dae){super(_0xce6dae);const _0x1cdd3d=_0xce6dae[_0x77fa('0xee')][_0x77fa('0x28')](d);this[_0x77fa('0x87')]=!0x1,this[_0x77fa('0x15')](_0x1cdd3d,_0x77fa('0x9d'),()=>this[_0x77fa('0x110')]()),this[_0x77fa('0x15')](_0x1cdd3d,_0x77fa('0x19'),()=>this[_0x77fa('0x110')]());}[_0x77fa('0x63')](){const _0x2e0e14=this[_0x77fa('0x78')],_0x1523b2=_0x2e0e14[_0x77fa('0xee')][_0x77fa('0x28')](d),_0x26adec=_0x1523b2['isReady']?_0x1523b2[_0x77fa('0x55')][_0x77fa('0x50')]:null;_0x2e0e14[_0x77fa('0xd1')]['get']('revisionHistory')[_0x77fa('0x2f')](_0x26adec);}[_0x77fa('0x110')](){const {isReady:_0x31f1fd,isEnabled:_0x9522cb}=this[_0x77fa('0x78')][_0x77fa('0xee')][_0x77fa('0x28')](d);this['isEnabled']=_0x31f1fd&&_0x9522cb;}}export class ShowChangeCommand extends _0x2dba10{constructor(_0x3b0737,{direction:_0x1895d8}){super(_0x3b0737);const _0x5e7e77=_0x3b0737[_0x77fa('0xee')]['get'](d);this[_0x77fa('0x87')]=!0x1,this['_step']=_0x77fa('0xa5')===_0x1895d8?0x1:-0x1,this[_0x77fa('0x15')](_0x5e7e77,_0x77fa('0x9d'),()=>this[_0x77fa('0x110')]()),this[_0x77fa('0x15')](_0x5e7e77,_0x77fa('0x19'),()=>this[_0x77fa('0x110')]()),this[_0x77fa('0x15')](_0x5e7e77,'change:activeChange',()=>this[_0x77fa('0x110')]());}[_0x77fa('0x63')](){const _0x3a3659=this[_0x77fa('0x78')],_0x3214e4=_0x3a3659[_0x77fa('0xee')][_0x77fa('0x28')](d),{isNavigationMode:_0x128c9a,currentChangeNumber:_0x10ae0e}=_0x3214e4;let _0x570433;if(_0x3214e4[_0x77fa('0x25')]=_0x128c9a?_0x3214e4[_0x77fa('0x55')][_0x77fa('0x1f')][_0x77fa('0x28')](_0x10ae0e+this[_0x77fa('0x8b')]):_0x3214e4[_0x77fa('0x55')][_0x77fa('0x1f')]['first'],_0x3214e4[_0x77fa('0x25')][_0x77fa('0xe3')]['isOnRoot'])_0x570433=_0x3a3659[_0x77fa('0xb')][_0x77fa('0x1')]['getDomRoot'](_0x3214e4[_0x77fa('0x25')][_0x77fa('0xec')]);else{const _0x5a9f22=_0x3a3659[_0x77fa('0xf5')][_0x77fa('0x83')][_0x77fa('0x28')](_0x77fa('0xa8')+_0x3214e4[_0x77fa('0x25')]['id']);_0x570433=_0x443d60(_0x3a3659[_0x77fa('0xb')],_0x5a9f22);}_0xa130cd({'target':_0x570433,'viewportOffset':0x28});}[_0x77fa('0x110')](){const {isNavigationMode:_0x56f4a,currentChangeNumber:_0x27758c,numberOfChanges:_0x19ec24,isReady:_0x33414b,isEnabled:_0x22e197}=this[_0x77fa('0x78')][_0x77fa('0xee')][_0x77fa('0x28')](d);this['isEnabled']=!!(_0x22e197&&_0x33414b&&_0x19ec24)&&(!_0x56f4a||(0x1===this[_0x77fa('0x8b')]?_0x27758c<_0x19ec24-0x1:_0x27758c>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x605a=['find','source','isEnabled','first','ck-revision-history-sidebar__revision__actions','execute','children','_action','bindTemplate','extendTemplate','bind','function','Show\x20more\x20items','name','locale','model','items','isVisible','isOpen','listView','isReady','action','class','map','isActionsDropdownOpen','stopPropagation','listenTo','panelPosition','Compare\x20against\x20selected','set','add'];(function(_0xdd7b64,_0x605ad){const _0x46987c=function(_0x1439e5){while(--_0x1439e5){_0xdd7b64['push'](_0xdd7b64['shift']());}};_0x46987c(++_0x605ad);}(_0x605a,0x9e));const _0x4698=function(_0xdd7b64,_0x605ad){_0xdd7b64=_0xdd7b64-0x0;let _0x46987c=_0x605a[_0xdd7b64];return _0x46987c;};import{Collection as _0x1b53a0}from'ckeditor5/src/utils.js';import{icons as _0x2471ef}from'ckeditor5/src/core.js';import{ViewModel as _0x485951,addListToDropdown as _0x396e49,createDropdown as _0x12d1ce}from'ckeditor5/src/ui.js';import{getTranslation as _0x571bcf}from'../../utils/common-translations.js';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x318b16,_0x31a6b1){const _0x18e71b=_0x318b16[_0x4698('0x5')],_0x569b0c=_0x318b16[_0x4698('0xb')],_0x380847=_0x12d1ce(_0x569b0c);_0x380847[_0x4698('0x18')]='sw';const _0x5e3ffa=function(_0x1d3c70,_0x54f8bf){const _0x44ea72=function(_0x43dae3,_0x40c038){const _0x22affd=_0x43dae3['locale'],_0x127084={'Compare\x20against\x20selected':_0x571bcf(_0x22affd,_0x4698('0x19')),'Name\x20this\x20revision':_0x571bcf(_0x22affd,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x571bcf(_0x22affd,'Restore\x20this\x20revision')};return _0x40c038[_0x4698('0x14')](_0x4a70e0=>{const _0x5f13eb=_0x127084[_0x4a70e0[_0x4698('0xa')]];return _0x5f13eb&&_0x5f13eb!==_0x4a70e0[_0x4698('0xa')]&&(_0x4a70e0['name']=_0x5f13eb),_0x4a70e0;});}(_0x1d3c70,_0x54f8bf),_0xcb2ab6=new _0x1b53a0();for(const _0x7bd5c4 of _0x44ea72){const _0x4d4b65={'type':'button','model':new _0x485951({'label':_0x7bd5c4[_0x4698('0xa')],'class':_0x7bd5c4[_0x4698('0x13')],'withText':!0x0,'_action':_0x7bd5c4[_0x4698('0x12')]})};_0x4d4b65[_0x4698('0xc')]['bind'](_0x4698('0x1e'))['to'](_0x1d3c70,'isActionsDropdownOpen',_0x161c46=>'function'!=typeof _0x7bd5c4[_0x4698('0x1e')]||(!_0x161c46||_0x7bd5c4['isEnabled'](_0x1d3c70))),_0xcb2ab6[_0x4698('0x1b')](_0x4d4b65);}return _0xcb2ab6;}(_0x318b16,_0x31a6b1);return _0x318b16[_0x4698('0x7')](_0x4698('0x15'))['to'](_0x380847,_0x4698('0xf')),_0x380847['buttonView'][_0x4698('0x1a')]({'label':_0x571bcf(_0x569b0c,_0x4698('0x9')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2471ef['threeVerticalDots']}),_0x380847[_0x4698('0x6')]({'attributes':{'class':[_0x4698('0x1'),_0x18e71b['if'](_0x4698('0x15'),'ck-on')]},'on':{'click':_0x18e71b['to'](_0x4ba62d=>_0x4ba62d[_0x4698('0x16')]())}}),_0x380847['on'](_0x4698('0x2'),_0x1756ca=>{_0x318b16[_0x4698('0x11')]&&_0x4698('0x8')==typeof _0x1756ca[_0x4698('0x1d')][_0x4698('0x4')]&&_0x1756ca[_0x4698('0x1d')][_0x4698('0x4')](_0x318b16);}),_0x396e49(_0x380847,_0x5e3ffa),_0x380847[_0x4698('0x17')](_0x318b16,'change:isActionsDropdownOpen',(_0x4a524a,_0x371397,_0x2daac6)=>{if(_0x2daac6)for(const _0x115ccb of _0x380847[_0x4698('0x10')][_0x4698('0xd')]){const _0x5c58dc=_0x115ccb[_0x4698('0x3')][_0x4698('0x0')],_0xd0ea4d=_0x31a6b1[_0x4698('0x1c')](_0x283ca3=>_0x283ca3[_0x4698('0x12')]===_0x5c58dc[_0x4698('0x4')])[_0x4698('0xe')];_0x115ccb['isVisible']=void 0x0===_0xd0ea4d||_0xd0ea4d(_0x318b16);}}),_0x380847;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20d6=['0\x200\x2011\x2010','push','Revision\x20author','ck-revision-history-sidebar__revision-author','set','ck-revision-history-sidebar__revision-author_creator','Revision\x20creator','name'];(function(_0x14c9c2,_0x20d60c){const _0x14ade5=function(_0x3ea014){while(--_0x3ea014){_0x14c9c2['push'](_0x14c9c2['shift']());}};_0x14ade5(++_0x20d60c);}(_0x20d6,0xbb));const _0x14ad=function(_0x14c9c2,_0x20d60c){_0x14c9c2=_0x14c9c2-0x0;let _0x14ade5=_0x20d6[_0x14c9c2];return _0x14ade5;};import{View as _0x3cbb7d,IconView as _0x1fb6dd}from'ckeditor5/src/ui.js';import{getTranslation as _0x369439}from'../../utils/common-translations.js';import'../../../theme/revision/revisionauthor.css';import _0x15da4b from'../../../theme/icons/user.svg';export default class ti extends _0x3cbb7d{constructor(_0x50e402,_0x4b2c04,_0x2cfce6){super(_0x50e402);const _0x2c7008=new _0x1fb6dd();_0x2c7008[_0x14ad('0x1')]({'content':_0x15da4b,'viewBox':_0x14ad('0x5')});const _0x4ce174=['ck',_0x14ad('0x0')];_0x2cfce6&&_0x4ce174[_0x14ad('0x6')](_0x14ad('0x2'));const _0x2309db=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x369439(_0x50e402,_0x2cfce6?_0x14ad('0x3'):_0x14ad('0x7'))},'children':[_0x2c7008,_0x4b2c04[_0x14ad('0x4')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4ce174},'children':_0x2309db});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x26ac=['set','ck-revision-history-sidebar__revision-name'];(function(_0xebdb7d,_0x26ac89){var _0x594cf0=function(_0x46b986){while(--_0x46b986){_0xebdb7d['push'](_0xebdb7d['shift']());}};_0x594cf0(++_0x26ac89);}(_0x26ac,0xa1));var _0x594c=function(_0xebdb7d,_0x26ac89){_0xebdb7d=_0xebdb7d-0x0;var _0x594cf0=_0x26ac[_0xebdb7d];return _0x594cf0;};import{LabeledFieldView as _0x21d2b8}from'ckeditor5/src/ui.js';import{getTranslation as _0x47bfc2}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';export default class is extends _0x21d2b8{constructor(_0xe37e44,_0x546e17){super(_0xe37e44,_0x546e17),this[_0x594c('0x1')]({'label':_0x47bfc2(_0xe37e44,'Revision\x20name')}),this['extendTemplate']({'tag':'span','attributes':{'class':[_0x594c('0x0')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26da=['extendTemplate','from','select','isEnabled','creator','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__revision-wrapper','220','change','_createdAtFormatted','ck-disabled','uiLanguage','bindTemplate','filter','highlight','ck-revision-history-sidebar__revision_highlighted','ck-reset','fieldView','srcElement','placeholder','revisionActionsView','ck-revision-history-sidebar__actions_dropdown_open','ck-revision-history-sidebar__revision_selected','isActionsDropdownOpen','unshift','isReady','value','createdAt','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision__controls-wrapper','unhighlight','render','authors','revisionNameView','bind','map','setName','name','set','closest','isHighlighted','div','fire','isSelected'];(function(_0x1f2e74,_0x26da2e){const _0x1954a9=function(_0x13237b){while(--_0x13237b){_0x1f2e74['push'](_0x1f2e74['shift']());}};_0x1954a9(++_0x26da2e);}(_0x26da,0xe7));const _0x1954=function(_0x1f2e74,_0x26da2e){_0x1f2e74=_0x1f2e74-0x0;let _0x1954a9=_0x26da[_0x1f2e74];return _0x1954a9;};import{View as _0x4bab38,createLabeledInputText as _0x462c7d}from'ckeditor5/src/ui.js';import{ConfirmMixin as _0x43b1e0}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x3c9991 from'./revisionnameview.js';import _0x14593c from'./revisionauthorview.js';import{dateToPrettyFormat as _0x32ec02}from'./utils.js';import{createActionsDropdownView as _0x1c4642}from'./createrevisionactionsdropdown.js';import'../../../theme/revision/revision.css';export default class ai extends _0x43b1e0(_0x4bab38){constructor(_0x206c8c,_0x55929e,_0x1c1451){super(_0x206c8c);const _0x2cf696=this[_0x1954('0x1')],_0x19d150=function(_0x23191f,_0x458b1a){const _0x295f47=Array[_0x1954('0x22')](_0x458b1a[_0x1954('0x15')])[_0x1954('0x2')](_0x3d186c=>_0x3d186c!=_0x458b1a[_0x1954('0x25')]);return _0x458b1a['creator']&&_0x295f47[_0x1954('0xd')](_0x458b1a[_0x1954('0x25')]),_0x295f47[_0x1954('0x18')](_0x41c5b4=>new _0x14593c(_0x23191f,_0x41c5b4,_0x41c5b4==_0x458b1a[_0x1954('0x25')]));}(_0x206c8c,_0x55929e);this['id']=_0x55929e['id'],this['_revision']=_0x55929e,this[_0x1954('0x17')](_0x1954('0x1a'),_0x1954('0x10'))['to'](_0x55929e),this[_0x1954('0x17')](_0x1954('0x2a'))['to'](this,_0x1954('0x10'),_0x41213e=>_0x41213e?_0x32ec02(_0x206c8c[_0x1954('0x0')],_0x41213e):void 0x0),this[_0x1954('0x1b')](_0x1954('0x20'),!0x1),this[_0x1954('0x1b')]('isHighlighted',!0x1),this[_0x1954('0x1b')](_0x1954('0xc'),!0x1),this[_0x1954('0x1b')](_0x1954('0xe'),!0x1),this[_0x1954('0x1b')](_0x1954('0x24'),!0x1),this[_0x1954('0x16')]=new _0x3c9991(_0x206c8c,_0x462c7d),this['revisionNameView'][_0x1954('0x6')][_0x1954('0x21')]({'attributes':{'maxlength':_0x1954('0x28')}}),this[_0x1954('0x16')][_0x1954('0x6')][_0x1954('0x17')](_0x1954('0xf'),_0x1954('0x8'))['to'](this,_0x1954('0x1a'),'_createdAtFormatted'),this[_0x1954('0x16')][_0x1954('0x17')](_0x1954('0x24'))['to'](this,_0x1954('0x20'),this,_0x1954('0x24'),(_0x25db1a,_0x1886b0)=>_0x25db1a&&_0x1886b0),this[_0x1954('0x9')]=_0x1c1451&&_0x1c1451['length']?_0x1c4642(this,_0x1c1451):'',this['revisionActionsView']&&this[_0x1954('0x9')][_0x1954('0x17')](_0x1954('0x24'))['to'](this),this['setTemplate']({'tag':_0x1954('0x1e'),'attributes':{'class':['ck',_0x1954('0x5'),_0x1954('0x27'),_0x2cf696['if']('isConfirm',_0x1954('0x26'))]},'children':[{'tag':_0x1954('0x1e'),'attributes':{'class':['ck',_0x1954('0x5'),'ck-revision-history-sidebar__revision',_0x2cf696['if']('isEnabled',_0x1954('0x2b'),_0x21aa1e=>!_0x21aa1e),_0x2cf696['if']('isSelected',_0x1954('0xb')),_0x2cf696['if'](_0x1954('0x1d'),_0x1954('0x4')),_0x2cf696['if']('isActionsDropdownOpen',_0x1954('0xa'))]},'children':[this[_0x1954('0x16')],{'tag':'span','attributes':{'class':['ck',_0x1954('0x11')]},'children':[{'text':_0x2cf696['to'](_0x1954('0x2a'))}]},{'tag':_0x1954('0x1e'),'attributes':{'class':['ck',_0x1954('0x12')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x19d150}]},this[_0x1954('0x9')]],'on':{'click':_0x2cf696['to'](_0x170741=>{_0x170741[_0x1954('0x7')][_0x1954('0x1c')]('.ck-thread__remove-confirm')||this[_0x1954('0xe')]&&this[_0x1954('0x24')]&&this[_0x1954('0x1f')](_0x1954('0x23'),{'id':this['id']});})}}]});}['render'](){super[_0x1954('0x14')]();const _0x442c22=this[_0x1954('0x16')][_0x1954('0x6')]['element'];this['listenTo'](_0x442c22,_0x1954('0x29'),()=>{this[_0x1954('0x1f')](_0x1954('0x19'),{'id':this['id'],'name':_0x442c22['value']});});}[_0x1954('0x23')](){this[_0x1954('0x20')]=!0x0;}['deselect'](){this[_0x1954('0x20')]=!0x1;}[_0x1954('0x3')](){this[_0x1954('0x1d')]=!0x0;}[_0x1954('0x13')](){this[_0x1954('0x1d')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f94=['toggle','span','ck-revision-history-sidebar__subrevision-collapser_collapsed','_isCollapsed','set','setTemplate','button','ck-revision-history-sidebar__subrevision-collapser__inner','click','true','bindTemplate'];(function(_0x27914c,_0x4f9437){const _0x3d2f74=function(_0x4fe7f9){while(--_0x4fe7f9){_0x27914c['push'](_0x27914c['shift']());}};_0x3d2f74(++_0x4f9437);}(_0x4f94,0x10a));const _0x3d2f=function(_0x27914c,_0x4f9437){_0x27914c=_0x27914c-0x0;let _0x3d2f74=_0x4f94[_0x27914c];return _0x3d2f74;};import{View as _0x439b5b}from'ckeditor5/src/ui.js';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x439b5b{constructor(_0x24cb63){super(_0x24cb63);const _0x211e93=this[_0x3d2f('0x8')];this[_0x3d2f('0x2')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x3d2f('0x3')]({'tag':_0x3d2f('0xa'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x211e93['if']('isVisible','ck-hidden',_0x8ff8af=>!_0x8ff8af),_0x211e93['if']('_isCollapsed',_0x3d2f('0x0'))],'role':_0x3d2f('0x4'),'aria-pressed':_0x211e93['to'](_0x3d2f('0x1'),_0x4d75e6=>_0x4d75e6?'false':_0x3d2f('0x7'))},'children':[{'tag':_0x3d2f('0xa'),'attributes':{'class':['ck',_0x3d2f('0x5')]}}],'on':{'click':_0x211e93['to'](_0x3d2f('0x6'))}});}[_0x3d2f('0x9')](){this[_0x3d2f('0x1')]=!this[_0x3d2f('0x1')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc0fa=['setTemplate','bindTemplate','deselect','ck-revision-history-sidebar__revision','ck-reset','ck-revision-history-sidebar__revision_selected','div','bind','uiLanguage','_createdAtFormatted','createdAt','span','ck-revision-history-sidebar__revision__date','fire','ck-revision-history-sidebar__subrevision','isSelected','select'];(function(_0x31ffc0,_0xc0fa08){const _0x2f9585=function(_0x5bb13b){while(--_0x5bb13b){_0x31ffc0['push'](_0x31ffc0['shift']());}};_0x2f9585(++_0xc0fa08);}(_0xc0fa,0x136));const _0x2f95=function(_0x31ffc0,_0xc0fa08){_0x31ffc0=_0x31ffc0-0x0;let _0x2f9585=_0xc0fa[_0x31ffc0];return _0x2f9585;};import{View as _0x4fd060}from'ckeditor5/src/ui.js';import _0x3de810 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x103ae4}from'./utils.js';import'../../../theme/revision/subrevision.css';export default class ts extends _0x4fd060{constructor(_0x5cd74b,_0xd2bf1c,_0x5a2d44){super(_0x5cd74b);const _0x525738=this[_0x2f95('0xe')];this['id']=_0xd2bf1c['id'],this[_0x2f95('0x3')](_0x2f95('0x6'))['to'](_0xd2bf1c),this['set'](_0x2f95('0xb'),!0x1),this[_0x2f95('0x3')](_0x2f95('0x5'))['to'](this,_0x2f95('0x6'),_0x363365=>_0x363365?_0x103ae4(_0x5cd74b[_0x2f95('0x4')],_0x363365):void 0x0),this['_parentRevisionId']=_0x5a2d44,this[_0x2f95('0xd')]({'tag':_0x2f95('0x2'),'attributes':{'class':['ck',_0x2f95('0x0'),_0x2f95('0x10'),_0x2f95('0xa'),_0x525738['if'](_0x2f95('0xb'),_0x2f95('0x1'))]},'children':[{'tag':_0x2f95('0x7'),'attributes':{'class':['ck',_0x2f95('0x8')]},'children':[{'text':_0x525738['to'](_0x2f95('0x5'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x3de810(_0x5cd74b,_0xd2bf1c['creator'],!0x0)]}],'on':{'click':_0x525738['to'](this['select'][_0x2f95('0x3')](this))}});}[_0x2f95('0xc')](){this['isSelected']=!0x0,this[_0x2f95('0x9')](_0x2f95('0xc'),{'parentId':this['_parentRevisionId']});}[_0x2f95('0xf')](){this[_0x2f95('0xb')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1a0c=['numeric','toLocaleTimeString'];(function(_0x3f2220,_0x1a0c64){var _0x563461=function(_0x9cebc8){while(--_0x9cebc8){_0x3f2220['push'](_0x3f2220['shift']());}};_0x563461(++_0x1a0c64);}(_0x1a0c,0x16d));var _0x5634=function(_0x3f2220,_0x1a0c64){_0x3f2220=_0x3f2220-0x0;var _0x563461=_0x1a0c[_0x3f2220];return _0x563461;};export function dateToPrettyFormat(_0x1423ba,_0x1672c1){return _0x1672c1['toLocaleDateString'](_0x1423ba,{'month':'long','day':_0x5634('0x1')})+',\x20'+_0x1672c1[_0x5634('0x0')](_0x1423ba,{'hour':'numeric','minute':_0x5634('0x1')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x35ab=['ck-revision-history-save-revision-form','revisionName','_focusables','add','cancelButtonView','locale','focusTracker','tab','ck-button-save','setTemplate','Cancel','cancel','_createButton','label','keystrokes','focusFirst','arrowright','arrowleft','stopPropagation','listenTo','input','saveButtonView','set','forEach','check','value','fieldView','shift\x20+\x20tab','220','element','reset','trim','focus','_createRevisionNameInput','arrowup','extendTemplate','execute','render','ck-button-cancel','_focusCycler','revisionNameInputValue','revisionNameInputView','arrowdown'];(function(_0x5c99e6,_0x35aba2){const _0x53edfd=function(_0x39da44){while(--_0x39da44){_0x5c99e6['push'](_0x5c99e6['shift']());}};_0x53edfd(++_0x35aba2);}(_0x35ab,0x1e9));const _0x53ed=function(_0x5c99e6,_0x35aba2){_0x5c99e6=_0x5c99e6-0x0;let _0x53edfd=_0x35ab[_0x5c99e6];return _0x53edfd;};import{icons as _0x8d2ff0}from'ckeditor5/src/core.js';import{ButtonView as _0x55601a,FocusCycler as _0x4c5037,LabeledFieldView as _0x3273bd,View as _0x479735,ViewCollection as _0x5d1bb1,createLabeledInputText as _0x5d056f,injectCssTransitionDisabler as _0x56a9a8,submitHandler as _0x143979}from'ckeditor5/src/ui.js';import{FocusTracker as _0x3176e3,KeystrokeHandler as _0x5a6c78}from'ckeditor5/src/utils.js';import{getTranslation as _0x24d308}from'../../utils/common-translations.js';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x479735{constructor(_0x36554a){super(_0x36554a),this[_0x53ed('0x21')]=new _0x3176e3(),this['keystrokes']=new _0x5a6c78(),this[_0x53ed('0x6')](_0x53ed('0x18'),''),this[_0x53ed('0x19')]=this[_0x53ed('0x11')](),this[_0x53ed('0x5')]=this[_0x53ed('0x27')](_0x24d308(_0x36554a,'Save'),_0x8d2ff0[_0x53ed('0x8')],_0x53ed('0x23')),this[_0x53ed('0x5')]['type']='submit',this[_0x53ed('0x1f')]=this[_0x53ed('0x27')](_0x24d308(_0x36554a,_0x53ed('0x25')),_0x8d2ff0['cancel'],_0x53ed('0x16'),_0x53ed('0x26')),this[_0x53ed('0x1d')]=new _0x5d1bb1(),this['_focusCycler']=new _0x4c5037({'focusables':this[_0x53ed('0x1d')],'focusTracker':this[_0x53ed('0x21')],'keystrokeHandler':this[_0x53ed('0x29')],'actions':{'focusPrevious':_0x53ed('0xb'),'focusNext':_0x53ed('0x22')}}),this[_0x53ed('0x24')]({'tag':'form','attributes':{'class':['ck',_0x53ed('0x1b'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x53ed('0x19')],this[_0x53ed('0x5')],this[_0x53ed('0x1f')]]}),_0x56a9a8(this);}[_0x53ed('0x15')](){super[_0x53ed('0x15')](),_0x143979({'view':this}),([this[_0x53ed('0x19')],this[_0x53ed('0x5')],this[_0x53ed('0x1f')]][_0x53ed('0x7')](_0x82decd=>{this[_0x53ed('0x1d')]['add'](_0x82decd),this[_0x53ed('0x21')][_0x53ed('0x1e')](_0x82decd['element']);}),this[_0x53ed('0x29')][_0x53ed('0x3')](this[_0x53ed('0xd')]));const _0xcf8b4c=_0x4ff1d3=>_0x4ff1d3[_0x53ed('0x2')]();this['keystrokes']['set'](_0x53ed('0x0'),_0xcf8b4c),this[_0x53ed('0x29')]['set'](_0x53ed('0x1'),_0xcf8b4c),this['keystrokes'][_0x53ed('0x6')](_0x53ed('0x12'),_0xcf8b4c),this[_0x53ed('0x29')][_0x53ed('0x6')](_0x53ed('0x1a'),_0xcf8b4c);}[_0x53ed('0x10')](){this[_0x53ed('0x17')][_0x53ed('0x2a')]();}get[_0x53ed('0x1c')](){return this[_0x53ed('0x19')][_0x53ed('0xa')][_0x53ed('0xd')][_0x53ed('0x9')][_0x53ed('0xf')]();}set[_0x53ed('0x1c')](_0x3a722e){this['revisionNameInputView'][_0x53ed('0xa')]['element']['value']=_0x3a722e[_0x53ed('0xf')]();}[_0x53ed('0xe')](){this[_0x53ed('0x19')][_0x53ed('0xa')][_0x53ed('0xd')]['value']='';}[_0x53ed('0x11')](){const _0x2d13d7=new _0x3273bd(this[_0x53ed('0x20')],_0x5d056f),_0x36120d=_0x2d13d7['fieldView'];return _0x36120d['extendTemplate']({'attributes':{'maxlength':_0x53ed('0xc')}}),_0x2d13d7[_0x53ed('0x28')]=_0x24d308(this[_0x53ed('0x20')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x36120d['on'](_0x53ed('0x4'),()=>{this[_0x53ed('0x18')]=_0x36120d[_0x53ed('0xd')]['value'][_0x53ed('0xf')]();}),_0x2d13d7;}[_0x53ed('0x27')](_0x4471d,_0x418c88,_0x4c9886,_0x1bb75f){const _0x5b9e9b=new _0x55601a(this[_0x53ed('0x20')]);return _0x5b9e9b[_0x53ed('0x6')]({'label':_0x4471d,'icon':_0x418c88,'tooltip':!0x0}),_0x5b9e9b[_0x53ed('0x13')]({'attributes':{'class':_0x4c9886}}),_0x1bb75f&&_0x5b9e9b['delegate'](_0x53ed('0x14'))['to'](this,_0x1bb75f),_0x5b9e9b;}}
|